@idmwx/idmui-gl4 0.0.1 → 0.0.3

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,22 +1,22 @@
1
- var mt = Object.defineProperty;
2
- var ut = (a, e, t) => e in a ? mt(a, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : a[e] = t;
3
- var ee = (a, e, t) => (ut(a, typeof e != "symbol" ? e + "" : e, t), t);
1
+ var ut = Object.defineProperty;
2
+ var gt = (a, e, t) => e in a ? ut(a, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : a[e] = t;
3
+ var ee = (a, e, t) => (gt(a, typeof e != "symbol" ? e + "" : e, t), t);
4
4
  import { LayerHelper as Ze, CompanyHelper as $e } from "@idm-plugin/tag";
5
5
  import te from "moment";
6
- import He from "axios";
6
+ import Ne from "axios";
7
7
  import Ke from "moment-timezone";
8
- import { resolveComponent as O, openBlock as m, createElementBlock as u, createElementVNode as o, normalizeStyle as oe, createVNode as R, withCtx as Ee, normalizeClass as J, Fragment as Z, renderList as $, toDisplayString as I, createCommentVNode as q, createBlock as gt, createTextVNode as le, withDirectives as Re, createStaticVNode as yt, vShow as Fe, defineComponent as ft, withModifiers as Ve, mergeProps as Y } from "vue";
8
+ import { resolveComponent as F, openBlock as m, createElementBlock as u, createElementVNode as o, normalizeStyle as oe, createVNode as R, withCtx as Ee, normalizeClass as q, Fragment as Z, renderList as $, toDisplayString as I, createCommentVNode as J, createBlock as yt, createTextVNode as le, withDirectives as Oe, createStaticVNode as ft, vShow as Fe, defineComponent as At, withModifiers as Ve, mergeProps as Y } from "vue";
9
9
  import * as T from "@turf/turf";
10
- import At from "@mapbox/sphericalmercator";
11
- import We from "mapbox-gl";
12
- import { TropicalHelper as ct, LngLatHelper as se, LaneHelper as je } from "@idm-plugin/geo";
10
+ import wt from "@mapbox/sphericalmercator";
11
+ import ke from "mapbox-gl";
12
+ import { TropicalHelper as dt, LngLatHelper as se, LaneHelper as We } from "@idm-plugin/geo";
13
13
  import { TidesAssist as et, Meteo2Assist as Xe } from "@idm-plugin/meteo";
14
- const G = (a, e) => {
14
+ const W = (a, e) => {
15
15
  const t = a.__vccOpts || a;
16
16
  for (const [r, i] of e)
17
17
  t[r] = i;
18
18
  return t;
19
- }, wt = {
19
+ }, vt = {
20
20
  name: "IdmGlLayer",
21
21
  props: {
22
22
  map: {
@@ -195,7 +195,7 @@ const G = (a, e) => {
195
195
  async fetchMeteoSource() {
196
196
  var e;
197
197
  this.sourceList = [];
198
- let a = await He.get(`${this.gateway}/api/arc/meteo2/models`, {
198
+ let a = await Ne.get(`${this.gateway}/api/arc/meteo2/models`, {
199
199
  headers: {
200
200
  Authorization: this.token
201
201
  }
@@ -283,63 +283,63 @@ const G = (a, e) => {
283
283
  this.show3d = !this.show3d, this.$emit("3d", this.show3d);
284
284
  }
285
285
  }
286
- }, vt = { class: "idm-gl3-layer" }, bt = { class: "bar-item layer-bars" }, Lt = { class: "bar-item tool-bars" }, Ct = { class: "flex-between" }, xt = {
286
+ }, bt = { class: "idm-gl4-layer" }, Lt = { class: "bar-item layer-bars" }, Ct = { class: "bar-item tool-bars" }, xt = { class: "flex-between" }, _t = {
287
287
  key: 0,
288
288
  class: "iconfont active"
289
- }, _t = {
289
+ }, Bt = {
290
290
  key: 1,
291
291
  class: "iconfont"
292
- }, Bt = ["onClick"], It = ["onClick"], Et = {
292
+ }, It = ["onClick"], Et = ["onClick"], kt = {
293
293
  key: 0,
294
294
  class: "flex-start"
295
- }, kt = {
295
+ }, Dt = {
296
296
  key: 1,
297
297
  class: "flex-start"
298
- }, Dt = {
298
+ }, zt = {
299
299
  key: 2,
300
300
  class: "flex-start"
301
- }, zt = { class: "header-box flex-between" }, Pt = { class: "weather-layers card-bg" }, Mt = { class: "layers-title flex-between" }, St = {
301
+ }, Pt = { class: "header-box flex-between" }, Mt = { class: "weather-layers card-bg" }, St = { class: "layers-title flex-between" }, Tt = {
302
302
  key: 0,
303
303
  class: "iconfont active"
304
- }, Tt = {
304
+ }, Qt = {
305
305
  key: 1,
306
306
  class: "iconfont"
307
- }, Qt = { class: "layers-body" }, Ht = { class: "flex-start" }, Nt = ["onClick"], Rt = ["onClick"], Ft = {
307
+ }, Ht = { class: "layers-body" }, Nt = { class: "flex-start" }, Rt = ["onClick"], Ot = ["onClick"], Ft = {
308
308
  key: 0,
309
309
  class: "flex-start"
310
- }, Ot = {
310
+ }, jt = {
311
311
  key: 1,
312
312
  class: "flex-start"
313
- }, jt = {
313
+ }, Wt = {
314
314
  key: 2,
315
315
  class: "flex-start"
316
- }, Wt = ["onClick"], Gt = {
316
+ }, Gt = ["onClick"], Ut = {
317
317
  key: 0,
318
318
  class: "iconfont bookmark-icon active"
319
- }, Ut = {
319
+ }, Yt = {
320
320
  key: 1,
321
321
  class: "iconfont bookmark-icon inactive"
322
- }, Yt = { class: "other-layers card-bg" }, Kt = { class: "layers-body" }, Xt = ["onClick"], Jt = { class: "flex-start" }, qt = { class: "switch flex-center" }, Vt = {
322
+ }, Kt = { class: "other-layers card-bg" }, Xt = { class: "layers-body" }, qt = ["onClick"], Jt = { class: "flex-start" }, Vt = { class: "switch flex-center" }, Zt = {
323
323
  key: 0,
324
324
  class: "iconfont active"
325
- }, Zt = {
325
+ }, $t = {
326
326
  key: 1,
327
327
  class: "iconfont"
328
- }, $t = { class: "source-layers card-bg" }, ea = { class: "layers-body" }, ta = { key: 0 }, aa = {
328
+ }, ea = { class: "source-layers card-bg" }, ta = { class: "layers-body" }, aa = { key: 0 }, ia = {
329
329
  key: 1,
330
330
  class: "radio-tip"
331
- }, ia = {
331
+ }, ra = {
332
332
  key: 2,
333
333
  class: "radio-tip"
334
334
  };
335
- function ra(a, e, t, r, i, s) {
336
- const n = O("ElTooltip"), l = O("ElRadio"), c = O("ElRadioGroup"), p = O("ElScrollbar");
337
- return m(), u("div", vt, [
335
+ function sa(a, e, t, r, i, s) {
336
+ const n = F("ElTooltip"), l = F("ElRadio"), c = F("ElRadioGroup"), p = F("ElScrollbar");
337
+ return m(), u("div", bt, [
338
338
  o("div", {
339
339
  class: "menu-bar-box",
340
340
  style: oe({ top: t.top + 10 + "px", right: i.right + "px" })
341
341
  }, [
342
- o("div", bt, [
342
+ o("div", Lt, [
343
343
  R(n, {
344
344
  placement: "left",
345
345
  effect: "light",
@@ -348,7 +348,7 @@ function ra(a, e, t, r, i, s) {
348
348
  }, {
349
349
  default: Ee(() => [
350
350
  o("div", {
351
- class: J(t.layerToggle ? "menu-icon active" : "menu-icon"),
351
+ class: q(t.layerToggle ? "menu-icon active" : "menu-icon"),
352
352
  onClick: e[0] || (e[0] = (...h) => s.handleMenuToggle && s.handleMenuToggle(...h))
353
353
  }, e[21] || (e[21] = [
354
354
  o("span", { class: "iconfont" }, "", -1)
@@ -362,7 +362,7 @@ function ra(a, e, t, r, i, s) {
362
362
  class: "menu-bar-box",
363
363
  style: oe({ top: t.top + 160 + "px", right: i.right + "px" })
364
364
  }, [
365
- o("div", Lt, [
365
+ o("div", Ct, [
366
366
  R(n, {
367
367
  placement: "left",
368
368
  effect: "light",
@@ -371,7 +371,7 @@ function ra(a, e, t, r, i, s) {
371
371
  }, {
372
372
  default: Ee(() => [
373
373
  o("div", {
374
- class: J(i.showMeasure ? "menu-icon active" : "menu-icon"),
374
+ class: q(i.showMeasure ? "menu-icon active" : "menu-icon"),
375
375
  onClick: e[1] || (e[1] = (...h) => s.handleMeasureToggle && s.handleMeasureToggle(...h))
376
376
  }, e[22] || (e[22] = [
377
377
  o("span", { class: "iconfont" }, "", -1)
@@ -387,7 +387,7 @@ function ra(a, e, t, r, i, s) {
387
387
  }, {
388
388
  default: Ee(() => [
389
389
  o("div", {
390
- class: J(i.showPoint ? "menu-icon active" : "menu-icon"),
390
+ class: q(i.showPoint ? "menu-icon active" : "menu-icon"),
391
391
  onClick: e[2] || (e[2] = (...h) => s.handlePointToggle && s.handlePointToggle(...h))
392
392
  }, e[23] || (e[23] = [
393
393
  o("span", { class: "iconfont" }, "", -1)
@@ -403,7 +403,7 @@ function ra(a, e, t, r, i, s) {
403
403
  }, {
404
404
  default: Ee(() => [
405
405
  o("div", {
406
- class: J(i.showCoord ? "menu-icon active" : "menu-icon"),
406
+ class: q(i.showCoord ? "menu-icon active" : "menu-icon"),
407
407
  onClick: e[3] || (e[3] = (...h) => s.handleCoordToggle && s.handleCoordToggle(...h))
408
408
  }, e[24] || (e[24] = [
409
409
  o("span", { class: "iconfont" }, "", -1)
@@ -419,7 +419,7 @@ function ra(a, e, t, r, i, s) {
419
419
  }, {
420
420
  default: Ee(() => [
421
421
  o("div", {
422
- class: J(i.show3d ? "menu-icon active" : "menu-icon"),
422
+ class: q(i.show3d ? "menu-icon active" : "menu-icon"),
423
423
  onClick: e[4] || (e[4] = (...h) => s.handle3DToggle && s.handle3DToggle(...h))
424
424
  }, e[25] || (e[25] = [
425
425
  o("span", { class: "iconfont" }, "", -1)
@@ -434,68 +434,68 @@ function ra(a, e, t, r, i, s) {
434
434
  class: "active-layers",
435
435
  style: oe({ right: i.right + "px", bottom: "100px" })
436
436
  }, [
437
- o("div", Ct, [
437
+ o("div", xt, [
438
438
  e[26] || (e[26] = o("div", { style: { margin: "2px 5px" } }, "Weather Layers", -1)),
439
439
  o("div", {
440
440
  class: "switch flex-center",
441
441
  style: { "font-size": "28px", "margin-right": "0" },
442
442
  onClick: e[5] || (e[5] = (...h) => s.toggleAutoActive && s.toggleAutoActive(...h))
443
443
  }, [
444
- i.autoActive ? (m(), u("i", xt, "")) : (m(), u("i", _t, ""))
444
+ i.autoActive ? (m(), u("i", _t, "")) : (m(), u("i", Bt, ""))
445
445
  ])
446
446
  ]),
447
447
  (m(!0), u(Z, null, $(i.layers.weather.filter((h) => h.collected), (h) => (m(), u("div", {
448
448
  key: h.key,
449
- class: J(s.computeLayerClass(h, i.activeWeatherLayersCollected))
449
+ class: q(s.computeLayerClass(h, i.activeWeatherLayersCollected))
450
450
  }, [
451
451
  o("div", {
452
452
  class: "checkbox",
453
453
  onClick: (d) => s.handleClickLayer(h)
454
- }, null, 8, Bt),
454
+ }, null, 8, It),
455
455
  o("span", {
456
456
  class: "name",
457
457
  onClick: (d) => s.handleClickLayer(h)
458
- }, I(h.name), 9, It),
459
- h.key === "wind" && i.activeWeatherLayersCollected.some((d) => d.key === h.key) ? (m(), u("div", Et, [
458
+ }, I(h.name), 9, Et),
459
+ h.key === "wind" && i.activeWeatherLayersCollected.some((d) => d.key === h.key) ? (m(), u("div", kt, [
460
460
  o("i", {
461
- class: J(["iconfont sub-layer-icon", i.showWindParticleCollected ? "active" : ""]),
461
+ class: q(["iconfont sub-layer-icon", i.showWindParticleCollected ? "active" : ""]),
462
462
  onClick: e[6] || (e[6] = (d) => s.handleToggleWindParticle())
463
463
  }, "", 2),
464
464
  o("i", {
465
- class: J(["iconfont sub-layer-icon", i.showWindFeatherCollected ? "active" : ""]),
465
+ class: q(["iconfont sub-layer-icon", i.showWindFeatherCollected ? "active" : ""]),
466
466
  onClick: e[7] || (e[7] = (d) => s.handleToggleWindFeather())
467
467
  }, "", 2)
468
- ])) : q("", !0),
469
- h.key === "current" && i.activeWeatherLayersCollected.some((d) => d.key === h.key) ? (m(), u("div", kt, [
468
+ ])) : J("", !0),
469
+ h.key === "current" && i.activeWeatherLayersCollected.some((d) => d.key === h.key) ? (m(), u("div", Dt, [
470
470
  o("i", {
471
- class: J(["iconfont sub-layer-icon", i.showCurrentParticleCollected ? "active" : ""]),
471
+ class: q(["iconfont sub-layer-icon", i.showCurrentParticleCollected ? "active" : ""]),
472
472
  onClick: e[8] || (e[8] = (d) => s.handleToggleCurrentParticle())
473
473
  }, "", 2),
474
474
  o("i", {
475
- class: J(["iconfont sub-layer-icon", i.showCurrentIsobandCollected ? "active" : ""]),
475
+ class: q(["iconfont sub-layer-icon", i.showCurrentIsobandCollected ? "active" : ""]),
476
476
  onClick: e[9] || (e[9] = (d) => s.handleToggleCurrentIsoband())
477
477
  }, "", 2)
478
- ])) : q("", !0),
479
- h.key === "sig-wave-height" && i.activeWeatherLayersCollected.some((d) => d.key === h.key || d.key === "sig-wave") ? (m(), u("div", Dt, [
478
+ ])) : J("", !0),
479
+ h.key === "sig-wave-height" && i.activeWeatherLayersCollected.some((d) => d.key === h.key || d.key === "sig-wave") ? (m(), u("div", zt, [
480
480
  o("i", {
481
- class: J(["iconfont sub-layer-icon", i.activeWeatherLayers.some((d) => d.key === "sig-wave") ? "active" : ""]),
481
+ class: q(["iconfont sub-layer-icon", i.activeWeatherLayers.some((d) => d.key === "sig-wave") ? "active" : ""]),
482
482
  onClick: e[10] || (e[10] = (d) => s.handleToggleSigWaveRamp())
483
483
  }, "", 2),
484
484
  o("i", {
485
- class: J(["iconfont sub-layer-icon", i.activeWeatherLayers.some((d) => d.key === "sig-wave-height") ? "active" : ""]),
485
+ class: q(["iconfont sub-layer-icon", i.activeWeatherLayers.some((d) => d.key === "sig-wave-height") ? "active" : ""]),
486
486
  onClick: e[11] || (e[11] = (d) => s.handleToggleSigWaveHeight())
487
487
  }, "", 2)
488
- ])) : q("", !0)
488
+ ])) : J("", !0)
489
489
  ], 2))), 128))
490
- ], 4)) : q("", !0),
490
+ ], 4)) : J("", !0),
491
491
  o("div", {
492
492
  class: "available-layers flex-center",
493
493
  style: oe({ top: t.top + "px", right: t.layerToggle ? "0px" : "-240px" })
494
494
  }, [
495
495
  o("div", {
496
- class: J(["list-box", t.layerToggle ? "right-bar" : ""])
496
+ class: q(["list-box", t.layerToggle ? "right-bar" : ""])
497
497
  }, [
498
- o("div", zt, [
498
+ o("div", Pt, [
499
499
  e[27] || (e[27] = o("div", null, "Layers", -1)),
500
500
  o("div", {
501
501
  class: "iconfont close-btn",
@@ -504,70 +504,70 @@ function ra(a, e, t, r, i, s) {
504
504
  ]),
505
505
  R(p, { style: { flex: "1" } }, {
506
506
  default: Ee(() => [
507
- o("div", Pt, [
508
- o("div", Mt, [
507
+ o("div", Mt, [
508
+ o("div", St, [
509
509
  e[28] || (e[28] = o("div", null, "Weather Layers", -1)),
510
510
  o("div", {
511
511
  class: "switch flex-center",
512
512
  style: { "margin-right": "0" },
513
513
  onClick: e[13] || (e[13] = (...h) => s.toggleAutoActive && s.toggleAutoActive(...h))
514
514
  }, [
515
- i.autoActive ? (m(), u("i", St, "")) : (m(), u("i", Tt, ""))
515
+ i.autoActive ? (m(), u("i", Tt, "")) : (m(), u("i", Qt, ""))
516
516
  ])
517
517
  ]),
518
- o("div", Qt, [
518
+ o("div", Ht, [
519
519
  (m(!0), u(Z, null, $(i.layers.weather, (h) => (m(), u(Z, {
520
520
  key: h.key
521
521
  }, [
522
- h.hide ? q("", !0) : (m(), u("div", {
522
+ h.hide ? J("", !0) : (m(), u("div", {
523
523
  key: 0,
524
- class: J(s.computeLayerClass(h, i.activeWeatherLayersCollected))
524
+ class: q(s.computeLayerClass(h, i.activeWeatherLayersCollected))
525
525
  }, [
526
- o("div", Ht, [
526
+ o("div", Nt, [
527
527
  o("div", {
528
528
  class: "checkbox",
529
529
  onClick: (d) => s.handleClickLayer(h)
530
- }, null, 8, Nt),
530
+ }, null, 8, Rt),
531
531
  o("span", {
532
532
  class: "name",
533
533
  onClick: (d) => s.handleClickLayer(h)
534
- }, I(h.name), 9, Rt),
534
+ }, I(h.name), 9, Ot),
535
535
  h.key === "wind" && i.activeWeatherLayersCollected.some((d) => d.key === h.key) ? (m(), u("div", Ft, [
536
536
  o("i", {
537
- class: J(["iconfont sub-layer-icon", i.showWindParticleCollected ? "active" : ""]),
537
+ class: q(["iconfont sub-layer-icon", i.showWindParticleCollected ? "active" : ""]),
538
538
  onClick: e[14] || (e[14] = (d) => s.handleToggleWindParticle())
539
539
  }, "", 2),
540
540
  o("i", {
541
- class: J(["iconfont sub-layer-icon", i.showWindFeatherCollected ? "active" : ""]),
541
+ class: q(["iconfont sub-layer-icon", i.showWindFeatherCollected ? "active" : ""]),
542
542
  onClick: e[15] || (e[15] = (d) => s.handleToggleWindFeather())
543
543
  }, "", 2)
544
- ])) : q("", !0),
545
- h.key === "current" && i.activeWeatherLayersCollected.some((d) => d.key === h.key) ? (m(), u("div", Ot, [
544
+ ])) : J("", !0),
545
+ h.key === "current" && i.activeWeatherLayersCollected.some((d) => d.key === h.key) ? (m(), u("div", jt, [
546
546
  o("i", {
547
- class: J(["iconfont sub-layer-icon", i.showCurrentParticleCollected ? "active" : ""]),
547
+ class: q(["iconfont sub-layer-icon", i.showCurrentParticleCollected ? "active" : ""]),
548
548
  onClick: e[16] || (e[16] = (d) => s.handleToggleCurrentParticle())
549
549
  }, "", 2),
550
550
  o("i", {
551
- class: J(["iconfont sub-layer-icon", i.showCurrentIsobandCollected ? "active" : ""]),
551
+ class: q(["iconfont sub-layer-icon", i.showCurrentIsobandCollected ? "active" : ""]),
552
552
  onClick: e[17] || (e[17] = (d) => s.handleToggleCurrentIsoband())
553
553
  }, "", 2)
554
- ])) : q("", !0),
555
- h.key === "sig-wave-height" && i.activeWeatherLayersCollected.some((d) => d.key === h.key || d.key === "sig-wave") ? (m(), u("div", jt, [
554
+ ])) : J("", !0),
555
+ h.key === "sig-wave-height" && i.activeWeatherLayersCollected.some((d) => d.key === h.key || d.key === "sig-wave") ? (m(), u("div", Wt, [
556
556
  o("i", {
557
- class: J(["iconfont sub-layer-icon", i.activeWeatherLayers.some((d) => d.key === "sig-wave") ? "active" : ""]),
557
+ class: q(["iconfont sub-layer-icon", i.activeWeatherLayers.some((d) => d.key === "sig-wave") ? "active" : ""]),
558
558
  onClick: e[18] || (e[18] = (d) => s.handleToggleSigWaveRamp())
559
559
  }, "", 2),
560
560
  o("i", {
561
- class: J(["iconfont sub-layer-icon", i.activeWeatherLayers.some((d) => d.key === "sig-wave-height") ? "active" : ""]),
561
+ class: q(["iconfont sub-layer-icon", i.activeWeatherLayers.some((d) => d.key === "sig-wave-height") ? "active" : ""]),
562
562
  onClick: e[19] || (e[19] = (d) => s.handleToggleSigWaveHeight())
563
563
  }, "", 2)
564
- ])) : q("", !0)
564
+ ])) : J("", !0)
565
565
  ]),
566
566
  o("div", {
567
567
  onClick: (d) => s.handleWeatherLayerCollect(h)
568
568
  }, [
569
- h.collected ? (m(), u("i", Gt, "")) : (m(), u("i", Ut, ""))
570
- ], 8, Wt)
569
+ h.collected ? (m(), u("i", Ut, "")) : (m(), u("i", Yt, ""))
570
+ ], 8, Gt)
571
571
  ], 2))
572
572
  ], 64))), 128)),
573
573
  e[29] || (e[29] = o("div", { class: "tip flex-start" }, [
@@ -579,29 +579,29 @@ function ra(a, e, t, r, i, s) {
579
579
  ], -1))
580
580
  ])
581
581
  ]),
582
- o("div", Yt, [
582
+ o("div", Kt, [
583
583
  e[30] || (e[30] = o("div", { class: "layers-title" }, "Other Layers", -1)),
584
- o("div", Kt, [
584
+ o("div", Xt, [
585
585
  (m(!0), u(Z, null, $(i.layers.other, (h) => {
586
586
  var d;
587
587
  return m(), u("div", {
588
588
  key: h.key,
589
- class: J(["layer flex-between", s.computeLayerClass(h, i.activeOtherLayers)]),
589
+ class: q(["layer flex-between", s.computeLayerClass(h, i.activeOtherLayers)]),
590
590
  onClick: (f) => s.handleOtherLayerPick(h)
591
591
  }, [
592
592
  o("div", Jt, [
593
- o("div", qt, [
594
- (d = s.computeLayerClass(h, i.activeOtherLayers)) != null && d.includes("active") ? (m(), u("i", Vt, "")) : (m(), u("i", Zt, ""))
593
+ o("div", Vt, [
594
+ (d = s.computeLayerClass(h, i.activeOtherLayers)) != null && d.includes("active") ? (m(), u("i", Zt, "")) : (m(), u("i", $t, ""))
595
595
  ]),
596
596
  o("span", null, I(h.name), 1)
597
597
  ])
598
- ], 10, Xt);
598
+ ], 10, qt);
599
599
  }), 128))
600
600
  ])
601
601
  ]),
602
- o("div", $t, [
602
+ o("div", ea, [
603
603
  e[31] || (e[31] = o("span", { class: "layers-title" }, "Forecast Model", -1)),
604
- o("div", ea, [
604
+ o("div", ta, [
605
605
  R(c, {
606
606
  modelValue: i.source,
607
607
  "onUpdate:modelValue": e[20] || (e[20] = (h) => i.source = h),
@@ -609,7 +609,7 @@ function ra(a, e, t, r, i, s) {
609
609
  style: { width: "180px", "align-items": "flex-start" }
610
610
  }, {
611
611
  default: Ee(() => [
612
- (m(!0), u(Z, null, $(i.sourceList, (h, d) => (m(), gt(l, {
612
+ (m(!0), u(Z, null, $(i.sourceList, (h, d) => (m(), yt(l, {
613
613
  key: `source${h.name}`,
614
614
  value: h.name
615
615
  }, {
@@ -617,8 +617,8 @@ function ra(a, e, t, r, i, s) {
617
617
  var f, v, k, w, D, _;
618
618
  return [
619
619
  le(I(h.name) + " ", 1),
620
- d !== 0 ? (m(), u("span", ta, I(h.resolution) + "km " + I(h.length) + "days", 1)) : q("", !0),
621
- d === 0 ? (m(), u("div", aa, "Provides the best forecast")) : (k = (v = (f = h == null ? void 0 : h.update) == null ? void 0 : f.default) == null ? void 0 : v.meta) != null && k.initialisationTime ? (m(), u("div", ia, "Update: " + I(s.computeDateZ((_ = (D = (w = h == null ? void 0 : h.update) == null ? void 0 : w.default) == null ? void 0 : D.meta) == null ? void 0 : _.initialisationTime)), 1)) : q("", !0)
620
+ d !== 0 ? (m(), u("span", aa, I(h.resolution) + "km " + I(h.length) + "days", 1)) : J("", !0),
621
+ d === 0 ? (m(), u("div", ia, "Provides the best forecast")) : (k = (v = (f = h == null ? void 0 : h.update) == null ? void 0 : f.default) == null ? void 0 : v.meta) != null && k.initialisationTime ? (m(), u("div", ra, "Update: " + I(s.computeDateZ((_ = (D = (w = h == null ? void 0 : h.update) == null ? void 0 : w.default) == null ? void 0 : D.meta) == null ? void 0 : _.initialisationTime)), 1)) : J("", !0)
622
622
  ];
623
623
  }),
624
624
  _: 2
@@ -635,8 +635,8 @@ function ra(a, e, t, r, i, s) {
635
635
  ], 4)
636
636
  ]);
637
637
  }
638
- const sa = /* @__PURE__ */ G(wt, [["render", ra]]);
639
- const oa = {
638
+ const oa = /* @__PURE__ */ W(vt, [["render", sa]]);
639
+ const na = {
640
640
  name: "IdmWindBarb",
641
641
  props: {
642
642
  map: {
@@ -778,11 +778,11 @@ const oa = {
778
778
  }
779
779
  }
780
780
  };
781
- function na(a, e, t, r, i, s) {
781
+ function la(a, e, t, r, i, s) {
782
782
  return null;
783
783
  }
784
- const la = /* @__PURE__ */ G(oa, [["render", na]]);
785
- class tt {
784
+ const ha = /* @__PURE__ */ W(na, [["render", la]]);
785
+ class at {
786
786
  constructor(e) {
787
787
  ee(this, "map");
788
788
  ee(this, "mercator");
@@ -793,7 +793,7 @@ class tt {
793
793
  ee(this, "rampColorCanvas");
794
794
  ee(this, "particleCanvas");
795
795
  ee(this, "ratio");
796
- this.map = e, this.mercator = new At(), 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;
796
+ this.map = e, this.mercator = new wt(), 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;
797
797
  }
798
798
  /**
799
799
  * 转换为[-180, 180]的经度,且包含转换次数
@@ -865,7 +865,7 @@ class tt {
865
865
  t !== r && this.map.setLayoutProperty(this.particleLayer, "visibility", r);
866
866
  }
867
867
  }
868
- class Oe {
868
+ class je {
869
869
  /**
870
870
  * 创建着色器
871
871
  * @see https://webglfundamentals.org/webgl/lessons/zh_cn/webgl-shaders-and-glsl.html
@@ -1258,7 +1258,7 @@ ee(be, "vertexSchema", `
1258
1258
  fract(pos * 255.0),
1259
1259
  floor(pos * 255.0) / 255.0);
1260
1260
  }`);
1261
- class ha {
1261
+ class tt {
1262
1262
  constructor(e = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImNseTVudHJzYzAwNWUwbHBsZHkyaDRqczMiLCJyb2xlIjoxLCJuYW1lIjoiZmFrZUBvcm13eC5jb20iLCJwbGF0SWQiOiJnZDBtdDFkIiwiY29tcGFueSI6eyJpZCI6bnVsbCwiY2hpbGRyZW4iOltdfSwiaWF0IjoxNzIzMDI0MDI0LCJleHAiOjM5MzA1NDQwMjR9.RrKcdcMnq-FxBLJQ-i6lx2FscDE46y8EvHIemPW4HTg") {
1263
1263
  ee(this, "token");
1264
1264
  ee(this, "mapboxCustomer");
@@ -5556,7 +5556,7 @@ const ca = {
5556
5556
  type: Object
5557
5557
  },
5558
5558
  viewport: {
5559
- type: tt
5559
+ type: at
5560
5560
  },
5561
5561
  bottom: {
5562
5562
  type: String,
@@ -5573,7 +5573,7 @@ const ca = {
5573
5573
  texture: void 0,
5574
5574
  rampColor: void 0,
5575
5575
  aPositionBuffer: void 0,
5576
- webgl: new Oe(),
5576
+ webgl: new je(),
5577
5577
  etime: void 0,
5578
5578
  wrapper: void 0,
5579
5579
  animation: void 0,
@@ -5728,9 +5728,9 @@ function pa(a, e, t, r, i, s) {
5728
5728
  o("span", null, "40", -1),
5729
5729
  o("span", null, "60", -1)
5730
5730
  ]), 4)
5731
- ])) : q("", !0);
5731
+ ])) : J("", !0);
5732
5732
  }
5733
- const ma = /* @__PURE__ */ G(ca, [["render", pa], ["__scopeId", "data-v-24e5434b"]]);
5733
+ const ma = /* @__PURE__ */ W(ca, [["render", pa], ["__scopeId", "data-v-24e5434b"]]);
5734
5734
  const ua = {
5735
5735
  name: "IdmCurrent",
5736
5736
  props: {
@@ -5901,7 +5901,7 @@ const ua = {
5901
5901
  function ga(a, e, t, r, i, s) {
5902
5902
  return null;
5903
5903
  }
5904
- const ya = /* @__PURE__ */ G(ua, [["render", ga]]);
5904
+ const ya = /* @__PURE__ */ W(ua, [["render", ga]]);
5905
5905
  const fa = {
5906
5906
  name: "IdmCurrentParticle",
5907
5907
  props: {
@@ -5909,7 +5909,7 @@ const fa = {
5909
5909
  type: Object
5910
5910
  },
5911
5911
  viewport: {
5912
- type: tt
5912
+ type: at
5913
5913
  },
5914
5914
  bottom: {
5915
5915
  type: String,
@@ -5926,7 +5926,7 @@ const fa = {
5926
5926
  texture: void 0,
5927
5927
  rampColor: void 0,
5928
5928
  aPositionBuffer: void 0,
5929
- webgl: new Oe(),
5929
+ webgl: new je(),
5930
5930
  etime: void 0,
5931
5931
  wrapper: void 0,
5932
5932
  animation: void 0,
@@ -6077,9 +6077,9 @@ function wa(a, e, t, r, i, s) {
6077
6077
  o("span", null, "2", -1),
6078
6078
  o("span", null, "3.2", -1)
6079
6079
  ]), 4)
6080
- ])) : q("", !0);
6080
+ ])) : J("", !0);
6081
6081
  }
6082
- const va = /* @__PURE__ */ G(fa, [["render", wa], ["__scopeId", "data-v-02a8206f"]]);
6082
+ const va = /* @__PURE__ */ W(fa, [["render", wa], ["__scopeId", "data-v-02a8206f"]]);
6083
6083
  const ba = {
6084
6084
  name: "IdmTemp",
6085
6085
  props: {
@@ -6108,7 +6108,7 @@ const ba = {
6108
6108
  texture: void 0,
6109
6109
  rampColor: void 0,
6110
6110
  aPositionBuffer: void 0,
6111
- webgl: new Oe(),
6111
+ webgl: new je(),
6112
6112
  etime: void 0,
6113
6113
  right: 10
6114
6114
  };
@@ -6209,9 +6209,9 @@ function Ca(a, e, t, r, i, s) {
6209
6209
  o("span", null, "6", -1),
6210
6210
  o("span", null, "9", -1)
6211
6211
  ]), 4)
6212
- ])) : q("", !0);
6212
+ ])) : J("", !0);
6213
6213
  }
6214
- const xa = /* @__PURE__ */ G(ba, [["render", Ca], ["__scopeId", "data-v-cdd80281"]]), _a = {
6214
+ const xa = /* @__PURE__ */ W(ba, [["render", Ca], ["__scopeId", "data-v-cdd80281"]]), _a = {
6215
6215
  name: "IdmSigWave",
6216
6216
  props: {
6217
6217
  map: {
@@ -6336,7 +6336,7 @@ const xa = /* @__PURE__ */ G(ba, [["render", Ca], ["__scopeId", "data-v-cdd80281
6336
6336
  function Ba(a, e, t, r, i, s) {
6337
6337
  return m(), u("div");
6338
6338
  }
6339
- const Ia = /* @__PURE__ */ G(_a, [["render", Ba]]), Ea = {
6339
+ const Ia = /* @__PURE__ */ W(_a, [["render", Ba]]), Ea = {
6340
6340
  name: "IdmSwell",
6341
6341
  props: {
6342
6342
  map: {
@@ -6503,7 +6503,7 @@ const Ia = /* @__PURE__ */ G(_a, [["render", Ba]]), Ea = {
6503
6503
  function ka(a, e, t, r, i, s) {
6504
6504
  return m(), u("div");
6505
6505
  }
6506
- const Da = /* @__PURE__ */ G(Ea, [["render", ka]]), za = {
6506
+ const Da = /* @__PURE__ */ W(Ea, [["render", ka]]), za = {
6507
6507
  name: "IdmPrmsl",
6508
6508
  props: {
6509
6509
  map: {
@@ -6641,7 +6641,7 @@ const Da = /* @__PURE__ */ G(Ea, [["render", ka]]), za = {
6641
6641
  function Pa(a, e, t, r, i, s) {
6642
6642
  return m(), u("div");
6643
6643
  }
6644
- const Ma = /* @__PURE__ */ G(za, [["render", Pa]]);
6644
+ const Ma = /* @__PURE__ */ W(za, [["render", Pa]]);
6645
6645
  const Sa = {
6646
6646
  name: "IdmIceEdge",
6647
6647
  props: {
@@ -6666,7 +6666,7 @@ const Sa = {
6666
6666
  texture: void 0,
6667
6667
  rampColor: void 0,
6668
6668
  aPositionBuffer: void 0,
6669
- webgl: new Oe(),
6669
+ webgl: new je(),
6670
6670
  etime: void 0,
6671
6671
  right: 10
6672
6672
  };
@@ -6764,9 +6764,9 @@ function Qa(a, e, t, r, i, s) {
6764
6764
  o("span", null, "90", -1),
6765
6765
  o("span", null, null, -1)
6766
6766
  ]), 4)
6767
- ])) : q("", !0);
6767
+ ])) : J("", !0);
6768
6768
  }
6769
- const Ha = /* @__PURE__ */ G(Sa, [["render", Qa], ["__scopeId", "data-v-ae31802c"]]);
6769
+ const Ha = /* @__PURE__ */ W(Sa, [["render", Qa], ["__scopeId", "data-v-ae31802c"]]);
6770
6770
  const Na = {
6771
6771
  name: "IdmCover",
6772
6772
  props: {
@@ -6791,7 +6791,7 @@ const Na = {
6791
6791
  texture: void 0,
6792
6792
  rampColor: void 0,
6793
6793
  aPositionBuffer: void 0,
6794
- webgl: new Oe(),
6794
+ webgl: new je(),
6795
6795
  etime: void 0,
6796
6796
  right: 10
6797
6797
  };
@@ -6860,7 +6860,7 @@ const Na = {
6860
6860
  }
6861
6861
  }
6862
6862
  }, Ra = { key: 0 };
6863
- function Fa(a, e, t, r, i, s) {
6863
+ function Oa(a, e, t, r, i, s) {
6864
6864
  var n;
6865
6865
  return (n = t.factor) != null && n.active ? (m(), u("div", Ra, [
6866
6866
  o("div", {
@@ -6874,9 +6874,9 @@ function Fa(a, e, t, r, i, s) {
6874
6874
  o("span", null, "80", -1),
6875
6875
  o("span", null, "100", -1)
6876
6876
  ]), 4)
6877
- ])) : q("", !0);
6877
+ ])) : J("", !0);
6878
6878
  }
6879
- const Oa = /* @__PURE__ */ G(Na, [["render", Fa], ["__scopeId", "data-v-026a5595"]]);
6879
+ const Fa = /* @__PURE__ */ W(Na, [["render", Oa], ["__scopeId", "data-v-026a5595"]]);
6880
6880
  const ja = {
6881
6881
  name: "IdmThickness",
6882
6882
  props: {
@@ -6901,7 +6901,7 @@ const ja = {
6901
6901
  texture: void 0,
6902
6902
  rampColor: void 0,
6903
6903
  aPositionBuffer: void 0,
6904
- webgl: new Oe(),
6904
+ webgl: new je(),
6905
6905
  etime: void 0,
6906
6906
  right: 10
6907
6907
  };
@@ -6993,9 +6993,9 @@ function Ga(a, e, t, r, i, s) {
6993
6993
  o("span", null, "2", -1),
6994
6994
  o("span", null, "3", -1)
6995
6995
  ]), 4)
6996
- ])) : q("", !0);
6996
+ ])) : J("", !0);
6997
6997
  }
6998
- const Ua = /* @__PURE__ */ G(ja, [["render", Ga], ["__scopeId", "data-v-348d48fb"]]), Je = [
6998
+ const Ua = /* @__PURE__ */ W(ja, [["render", Ga], ["__scopeId", "data-v-348d48fb"]]), qe = [
6999
6999
  {
7000
7000
  rank: 0,
7001
7001
  name: "Best Match",
@@ -7154,7 +7154,7 @@ const Ua = /* @__PURE__ */ G(ja, [["render", Ga], ["__scopeId", "data-v-348d48fb
7154
7154
  categories: "bom_access_global",
7155
7155
  variables: "temperature_2m,relative_humidity_2m,dew_point_2m,apparent_temperature,precipitation_probability,precipitation,rain,showers,snowfall_water_equivalent,snowfall,frozen_precipitation_percent,pressure_msl,cloud_cover,visibility,wind_speed_10m,wind_u_component_10m,wind_v_component_10m,wind_direction_10m,wind_gusts_10m,cape,lifted_index,weather_code"
7156
7156
  }
7157
- ], qe = [
7157
+ ], Je = [
7158
7158
  {
7159
7159
  rank: 0,
7160
7160
  name: "Best Match",
@@ -7273,12 +7273,12 @@ const Ua = /* @__PURE__ */ G(ja, [["render", Ga], ["__scopeId", "data-v-348d48fb
7273
7273
  variables: "swell_wave_direction,swell_wave_height,swell_wave_period,swell_wave_peak_period,wave_direction,wave_height,wave_period,wind_wave_direction,wind_wave_height,wind_wave_period,wind_wave_peak_period"
7274
7274
  }
7275
7275
  ];
7276
- class ht {
7276
+ class ct {
7277
7277
  static standardWeatherModels() {
7278
- return Je.filter((e) => !e.disabled && e.alias);
7278
+ return qe.filter((e) => !e.disabled && e.alias);
7279
7279
  }
7280
7280
  static standardMarineModels() {
7281
- return qe.filter((e) => !e.disabled && e.alias);
7281
+ return Je.filter((e) => !e.disabled && e.alias);
7282
7282
  }
7283
7283
  /**
7284
7284
  * 可视化图层模式
@@ -7312,20 +7312,20 @@ class ht {
7312
7312
  e = e == null ? void 0 : e.toLowerCase(), e = e === "ec" ? "ecmwf" : e;
7313
7313
  const i = e.toLowerCase().split(","), s = [], n = [];
7314
7314
  for (const l of i) {
7315
- let c = Je.find((h) => {
7315
+ let c = qe.find((h) => {
7316
7316
  var d, f, v;
7317
7317
  return ((d = h.models) == null ? void 0 : d.includes(l)) || ((f = h.alias) == null ? void 0 : f.toLowerCase()) === l || ((v = h.name) == null ? void 0 : v.toLowerCase()) === l;
7318
- }), p = qe.find((h) => {
7318
+ }), p = Je.find((h) => {
7319
7319
  var d, f, v;
7320
7320
  return ((d = h.models) == null ? void 0 : d.includes(l)) || ((f = h.alias) == null ? void 0 : f.toLowerCase()) === l || ((v = h.name) == null ? void 0 : v.toLowerCase()) === l;
7321
7321
  });
7322
- c = c || Je.find((h) => {
7322
+ c = c || qe.find((h) => {
7323
7323
  var d, f;
7324
7324
  return ((d = h.alias) == null ? void 0 : d.toLowerCase()) === ((f = p == null ? void 0 : p.alias) == null ? void 0 : f.toLowerCase());
7325
- }), p = p || qe.find((h) => {
7325
+ }), p = p || Je.find((h) => {
7326
7326
  var d, f;
7327
7327
  return ((d = h.alias) == null ? void 0 : d.toLowerCase()) === ((f = c == null ? void 0 : c.alias) == null ? void 0 : f.toLowerCase());
7328
- }), c = c || Je[0], p = p || qe[0], s.push((t = c.models) != null && t.includes(l) ? l : c.model), n.push((r = p.models) != null && r.includes(l) ? l : p.model);
7328
+ }), c = c || qe[0], p = p || Je[0], s.push((t = c.models) != null && t.includes(l) ? l : c.model), n.push((r = p.models) != null && r.includes(l) ? l : p.model);
7329
7329
  }
7330
7330
  return {
7331
7331
  weatherModels: s.join(","),
@@ -7334,7 +7334,7 @@ class ht {
7334
7334
  }
7335
7335
  static autoPickSubCategories(e) {
7336
7336
  e = e.toUpperCase();
7337
- const t = Je.filter((s) => s.alias === e), r = qe.filter((s) => s.alias === e), i = [];
7337
+ const t = qe.filter((s) => s.alias === e), r = Je.filter((s) => s.alias === e), i = [];
7338
7338
  return t.forEach((s) => {
7339
7339
  s.categories && i.push(...s.categories.split(","));
7340
7340
  }), r.forEach((s) => {
@@ -7342,45 +7342,45 @@ class ht {
7342
7342
  }), i;
7343
7343
  }
7344
7344
  static pickHourly(e, t) {
7345
- var r, i, s, n, l, c, p, h, d, f, v, k, w, D, _, A, b, g, C, y, L, Q, M, N, E, j, U, W, pe, he, me, fe, ue, K, ae, Ae, ge, ye, Le, Ce, xe, we, _e, B, Pe, ve, Me, ke, Ne, De;
7346
- const re = typeof t == "string" ? te(t) : t, ce = e == null ? void 0 : e.weather, H = e == null ? void 0 : e.marine, Be = te((i = (r = ce == null ? void 0 : ce[0]) == null ? void 0 : r.hourly) == null ? void 0 : i.date).utc(), X = Be.clone().add((l = (n = (s = ce == null ? void 0 : ce[0]) == null ? void 0 : s.hourly) == null ? void 0 : n.time) == null ? void 0 : l.at(0), "h"), V = Be.clone().add((h = (p = (c = ce == null ? void 0 : ce[0]) == null ? void 0 : c.hourly) == null ? void 0 : p.time) == null ? void 0 : h.at(-1), "h"), Se = [];
7345
+ var r, i, s, n, l, c, p, h, d, f, v, k, w, D, _, A, b, g, C, y, L, Q, M, N, E, j, U, G, pe, he, me, fe, ue, K, ae, Ae, ge, ye, Le, Ce, xe, we, _e, B, Me, ve, Se, De, Re, ze;
7346
+ const re = typeof t == "string" ? te(t) : t, ce = e == null ? void 0 : e.weather, H = e == null ? void 0 : e.marine, Be = te((i = (r = ce == null ? void 0 : ce[0]) == null ? void 0 : r.hourly) == null ? void 0 : i.date).utc(), X = Be.clone().add((l = (n = (s = ce == null ? void 0 : ce[0]) == null ? void 0 : s.hourly) == null ? void 0 : n.time) == null ? void 0 : l.at(0), "h"), V = Be.clone().add((h = (p = (c = ce == null ? void 0 : ce[0]) == null ? void 0 : c.hourly) == null ? void 0 : p.time) == null ? void 0 : h.at(-1), "h"), Te = [];
7347
7347
  if (re.isBetween(X, V, "millisecond", "[]")) {
7348
7348
  const P = re.utc().diff(X, "h", !1);
7349
- let de, ze;
7349
+ let de, Pe;
7350
7350
  if (ce) {
7351
- let Te = 0, Qe = 0;
7351
+ let Qe = 0, He = 0;
7352
7352
  for (const z of ce) {
7353
- const F = z == null ? void 0 : z.hourly;
7353
+ const O = z == null ? void 0 : z.hourly;
7354
7354
  for (let Ie = P - (P - 1) % 3; Ie <= P; Ie++)
7355
- Te += (d = F == null ? void 0 : F.precipitation) == null ? void 0 : d.at(Ie);
7355
+ Qe += (d = O == null ? void 0 : O.precipitation) == null ? void 0 : d.at(Ie);
7356
7356
  for (let Ie = P - (P - 1) % 6; Ie <= P; Ie++)
7357
- Qe += (f = F == null ? void 0 : F.precipitation) == null ? void 0 : f.at(Ie);
7357
+ He += (f = O == null ? void 0 : O.precipitation) == null ? void 0 : f.at(Ie);
7358
7358
  de = {
7359
- temp: (v = F == null ? void 0 : F.temperature_2m) == null ? void 0 : v.at(P),
7360
- apparentTemp: (k = F == null ? void 0 : F.apparent_temperature) == null ? void 0 : k.at(P),
7361
- rh: (w = F == null ? void 0 : F.relative_humidity_2m) == null ? void 0 : w.at(P),
7362
- dp: (D = F == null ? void 0 : F.dew_point_2m) == null ? void 0 : D.at(P),
7359
+ temp: (v = O == null ? void 0 : O.temperature_2m) == null ? void 0 : v.at(P),
7360
+ apparentTemp: (k = O == null ? void 0 : O.apparent_temperature) == null ? void 0 : k.at(P),
7361
+ rh: (w = O == null ? void 0 : O.relative_humidity_2m) == null ? void 0 : w.at(P),
7362
+ dp: (D = O == null ? void 0 : O.dew_point_2m) == null ? void 0 : D.at(P),
7363
7363
  precip: {
7364
- probability: (_ = F == null ? void 0 : F.precipitation_probability) == null ? void 0 : _.at(P),
7365
- sum: (A = F == null ? void 0 : F.precipitation) == null ? void 0 : A.at(P),
7366
- sum3Hours: Math.round(Te * 100) / 100,
7367
- sum6Hours: Math.round(Qe * 100) / 100
7364
+ probability: (_ = O == null ? void 0 : O.precipitation_probability) == null ? void 0 : _.at(P),
7365
+ sum: (A = O == null ? void 0 : O.precipitation) == null ? void 0 : A.at(P),
7366
+ sum3Hours: Math.round(Qe * 100) / 100,
7367
+ sum6Hours: Math.round(He * 100) / 100
7368
7368
  },
7369
- pmsl: (b = F == null ? void 0 : F.pressure_msl) == null ? void 0 : b.at(P),
7370
- psurf: (g = F == null ? void 0 : F.surface_pressure) == null ? void 0 : g.at(P),
7371
- code: (C = F == null ? void 0 : F.weather_code) == null ? void 0 : C.at(P),
7372
- visibility: this.m2nm((y = F == null ? void 0 : F.visibility) == null ? void 0 : y.at(P)),
7369
+ pmsl: (b = O == null ? void 0 : O.pressure_msl) == null ? void 0 : b.at(P),
7370
+ psurf: (g = O == null ? void 0 : O.surface_pressure) == null ? void 0 : g.at(P),
7371
+ code: (C = O == null ? void 0 : O.weather_code) == null ? void 0 : C.at(P),
7372
+ visibility: this.m2nm((y = O == null ? void 0 : O.visibility) == null ? void 0 : y.at(P)),
7373
7373
  wind: {
7374
- speed: (L = F == null ? void 0 : F.wind_speed_10m) == null ? void 0 : L.at(P),
7375
- kts: (Q = F == null ? void 0 : F.wind_speed_10m) == null ? void 0 : Q.at(P),
7376
- degree: (M = F == null ? void 0 : F.wind_direction_10m) == null ? void 0 : M.at(P),
7377
- bearing: ((N = F == null ? void 0 : F.wind_direction_10m) == null ? void 0 : N.at(P)) !== null ? (((E = F == null ? void 0 : F.wind_direction_10m) == null ? void 0 : E.at(P)) + 180) % 360 : null,
7378
- gusts: (j = F == null ? void 0 : F.wind_gusts_10m) == null ? void 0 : j.at(P)
7374
+ speed: (L = O == null ? void 0 : O.wind_speed_10m) == null ? void 0 : L.at(P),
7375
+ kts: (Q = O == null ? void 0 : O.wind_speed_10m) == null ? void 0 : Q.at(P),
7376
+ degree: (M = O == null ? void 0 : O.wind_direction_10m) == null ? void 0 : M.at(P),
7377
+ bearing: ((N = O == null ? void 0 : O.wind_direction_10m) == null ? void 0 : N.at(P)) !== null ? (((E = O == null ? void 0 : O.wind_direction_10m) == null ? void 0 : E.at(P)) + 180) % 360 : null,
7378
+ gusts: (j = O == null ? void 0 : O.wind_gusts_10m) == null ? void 0 : j.at(P)
7379
7379
  },
7380
- isDay: (U = F == null ? void 0 : F.is_day) == null ? void 0 : U.at(P)
7380
+ isDay: (U = O == null ? void 0 : O.is_day) == null ? void 0 : U.at(P)
7381
7381
  };
7382
7382
  const { name: Ge, url: Ue, bg: Ye } = this.parseWeatherCode(de.code, de.isDay);
7383
- de.name = Ge, de.url = Ue, de.bg = Ye, de.wind.scale = this.beaufort(this.kts2ms(de.wind.kts)), de.wind.direction = this.degree2Direction(de.wind.degree), Se.push({
7383
+ de.name = Ge, de.url = Ue, de.bg = Ye, de.wind.scale = this.beaufort(this.kts2ms(de.wind.kts)), de.wind.direction = this.degree2Direction(de.wind.degree), Te.push({
7384
7384
  utc: X.add(P, "h").format(),
7385
7385
  model: z.model,
7386
7386
  weather: { ...de }
@@ -7388,13 +7388,13 @@ class ht {
7388
7388
  }
7389
7389
  }
7390
7390
  if (H) {
7391
- let Te = 0;
7392
- for (const Qe of H) {
7393
- const z = Qe == null ? void 0 : Qe.hourly;
7394
- ze = {
7391
+ let Qe = 0;
7392
+ for (const He of H) {
7393
+ const z = He == null ? void 0 : He.hourly;
7394
+ Pe = {
7395
7395
  wave: {
7396
7396
  sig: {
7397
- height: (W = z == null ? void 0 : z.wave_height) == null ? void 0 : W.at(P),
7397
+ height: (G = z == null ? void 0 : z.wave_height) == null ? void 0 : G.at(P),
7398
7398
  degree: (pe = z == null ? void 0 : z.wave_direction) == null ? void 0 : pe.at(P),
7399
7399
  bearing: ((he = z == null ? void 0 : z.wave_direction) == null ? void 0 : he.at(P)) !== null ? (((me = z == null ? void 0 : z.wave_direction) == null ? void 0 : me.at(P)) + 180) % 360 : null,
7400
7400
  period: (fe = z == null ? void 0 : z.wave_period) == null ? void 0 : fe.at(P)
@@ -7415,18 +7415,18 @@ class ht {
7415
7415
  }
7416
7416
  },
7417
7417
  current: {
7418
- speed: (Pe = z == null ? void 0 : z.ocean_current_velocity) == null ? void 0 : Pe.at(P),
7418
+ speed: (Me = z == null ? void 0 : z.ocean_current_velocity) == null ? void 0 : Me.at(P),
7419
7419
  kts: (ve = z == null ? void 0 : z.ocean_current_velocity) == null ? void 0 : ve.at(P),
7420
- degree: (Me = z == null ? void 0 : z.ocean_current_direction) == null ? void 0 : Me.at(P),
7421
- bearing: ((ke = z == null ? void 0 : z.ocean_current_direction) == null ? void 0 : ke.at(P)) ?? null
7420
+ degree: (Se = z == null ? void 0 : z.ocean_current_direction) == null ? void 0 : Se.at(P),
7421
+ bearing: ((De = z == null ? void 0 : z.ocean_current_direction) == null ? void 0 : De.at(P)) ?? null
7422
7422
  },
7423
- sst: (Ne = z == null ? void 0 : z.sea_surface_temperature) == null ? void 0 : Ne.at(P),
7424
- height: (De = z == null ? void 0 : z.sea_level_height_msl) == null ? void 0 : De.at(P)
7425
- }, ze.wave = this.parseWave(ze.wave, de == null ? void 0 : de.wind), ze.current.direction = this.degree2Direction(ze.current.degree), Object.assign(Se[Te], ze), Te++;
7423
+ sst: (Re = z == null ? void 0 : z.sea_surface_temperature) == null ? void 0 : Re.at(P),
7424
+ height: (ze = z == null ? void 0 : z.sea_level_height_msl) == null ? void 0 : ze.at(P)
7425
+ }, Pe.wave = this.parseWave(Pe.wave, de == null ? void 0 : de.wind), Pe.current.direction = this.degree2Direction(Pe.current.degree), Object.assign(Te[Qe], Pe), Qe++;
7426
7426
  }
7427
7427
  }
7428
7428
  }
7429
- return Se;
7429
+ return Te;
7430
7430
  }
7431
7431
  static toLegacy(e) {
7432
7432
  var t, r, i, s, n, l, c, p, h, d;
@@ -7451,11 +7451,11 @@ class ht {
7451
7451
  };
7452
7452
  }
7453
7453
  static pickDaily(e, t) {
7454
- var r, i, s, n, l, c, p, h, d, f, v, k, w, D, _, A, b, g, C, y, L, Q, M, N, E, j, U, W, pe, he, me, fe, ue, K, ae, Ae, ge, ye, Le, Ce, xe, we, _e, B;
7455
- const Pe = typeof t == "string" ? te(t) : t, ve = e == null ? void 0 : e.weather, Me = e == null ? void 0 : e.marine, ke = te((s = (i = (r = ve == null ? void 0 : ve[0]) == null ? void 0 : r.daily) == null ? void 0 : i.time) == null ? void 0 : s.at(0)), Ne = te((c = (l = (n = ve == null ? void 0 : ve[0]) == null ? void 0 : n.daily) == null ? void 0 : l.time) == null ? void 0 : c.at(-1)), De = [];
7456
- if (Pe.isBetween(ke, Ne, "millisecond", "[]")) {
7454
+ var r, i, s, n, l, c, p, h, d, f, v, k, w, D, _, A, b, g, C, y, L, Q, M, N, E, j, U, G, pe, he, me, fe, ue, K, ae, Ae, ge, ye, Le, Ce, xe, we, _e, B;
7455
+ const Me = typeof t == "string" ? te(t) : t, ve = e == null ? void 0 : e.weather, Se = e == null ? void 0 : e.marine, De = te((s = (i = (r = ve == null ? void 0 : ve[0]) == null ? void 0 : r.daily) == null ? void 0 : i.time) == null ? void 0 : s.at(0)), Re = te((c = (l = (n = ve == null ? void 0 : ve[0]) == null ? void 0 : n.daily) == null ? void 0 : l.time) == null ? void 0 : c.at(-1)), ze = [];
7456
+ if (Me.isBetween(De, Re, "millisecond", "[]")) {
7457
7457
  let re, ce;
7458
- const H = Pe.diff(ke, "d", !1);
7458
+ const H = Me.diff(De, "d", !1);
7459
7459
  if (ve)
7460
7460
  for (const Be of ve) {
7461
7461
  const X = Be.daily;
@@ -7491,21 +7491,21 @@ class ht {
7491
7491
  bearing: ((j = X.wind_direction_10m_dominant) == null ? void 0 : j.at(H)) !== null ? (((U = X.wind_direction_10m_dominant) == null ? void 0 : U.at(H)) + 180) % 360 : null
7492
7492
  }
7493
7493
  };
7494
- const { name: V, url: Se, bg: P } = this.parseWeatherCode(re.code, !0);
7495
- re.name = V, re.url = Se, re.bg = P, re.wind.scale = this.beaufort(this.kts2ms(re.wind.kts)), re.wind.direction = this.degree2Direction(re.wind.degree), De.push({
7496
- utc: ke.add(H, "d").utc().format(),
7494
+ const { name: V, url: Te, bg: P } = this.parseWeatherCode(re.code, !0);
7495
+ re.name = V, re.url = Te, re.bg = P, re.wind.scale = this.beaufort(this.kts2ms(re.wind.kts)), re.wind.direction = this.degree2Direction(re.wind.degree), ze.push({
7496
+ utc: De.add(H, "d").utc().format(),
7497
7497
  model: Be.model,
7498
7498
  weather: { ...re }
7499
7499
  });
7500
7500
  }
7501
- if (Me) {
7501
+ if (Se) {
7502
7502
  let Be = 0;
7503
- for (const X of Me) {
7503
+ for (const X of Se) {
7504
7504
  const V = X.daily;
7505
7505
  ce = {
7506
7506
  wave: {
7507
7507
  sig: {
7508
- height: (W = V.wave_height_max) == null ? void 0 : W.at(H),
7508
+ height: (G = V.wave_height_max) == null ? void 0 : G.at(H),
7509
7509
  degree: (pe = V.wave_direction_dominant) == null ? void 0 : pe.at(H),
7510
7510
  period: (he = V.wave_period_max) == null ? void 0 : he.at(H),
7511
7511
  bearing: ((me = V.wave_direction_dominant) == null ? void 0 : me.at(H)) !== null ? (((fe = V.wave_direction_dominant) == null ? void 0 : fe.at(H)) + 180) % 360 : null
@@ -7525,11 +7525,11 @@ class ht {
7525
7525
  bearing: ((_e = V.wind_wave_direction_dominant) == null ? void 0 : _e.at(H)) !== null ? (((B = V.wind_wave_direction_dominant) == null ? void 0 : B.at(H)) + 180) % 360 : null
7526
7526
  }
7527
7527
  }
7528
- }, ce.wave = this.parseWave(ce.wave, re == null ? void 0 : re.wind), Object.assign(De[Be], ce), Be++;
7528
+ }, ce.wave = this.parseWave(ce.wave, re == null ? void 0 : re.wind), Object.assign(ze[Be], ce), Be++;
7529
7529
  }
7530
7530
  }
7531
7531
  }
7532
- return De;
7532
+ return ze;
7533
7533
  }
7534
7534
  static parseWave(e, t) {
7535
7535
  if (e.sig.direction = this.degree2Direction(e.sig.degree), e.swell.direction = this.degree2Direction(e.swell.degree), e.wd.direction = this.degree2Direction(e.wd.degree), e.sig.scale = this.douglas(e.sig.height), e.swell.scale = this.douglas(e.swell.height), e.wd.scale = this.douglas(e.wd.height), e.sig.height === 0) {
@@ -7981,8 +7981,8 @@ const Ya = {
7981
7981
  },
7982
7982
  computeBF() {
7983
7983
  return function(a) {
7984
- const e = ht.kts2ms(a);
7985
- return ht.beaufort(e);
7984
+ const e = ct.kts2ms(a);
7985
+ return ct.beaufort(e);
7986
7986
  };
7987
7987
  },
7988
7988
  computeMovement() {
@@ -8281,7 +8281,7 @@ const Ya = {
8281
8281
  }), v = (/* @__PURE__ */ new Date()).valueOf() - (d + f), console.log("[tropical] add elapsed: ", v, ", total: ", f += v));
8282
8282
  }
8283
8283
  this.handleDrawCircle();
8284
- const h = ct.interpolate(this.tropicals, 1);
8284
+ const h = dt.interpolate(this.tropicals, 1);
8285
8285
  this.interpolateData = JSON.parse(JSON.stringify(h)), this.handleDateChange();
8286
8286
  }
8287
8287
  },
@@ -8290,7 +8290,7 @@ const Ya = {
8290
8290
  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));
8291
8291
  },
8292
8292
  handleDateChange() {
8293
- var a, e, t, r, i, s, n, l, c, p, h, d, f, v, k, w, D, _, A, b, g, C, y, L, Q, M, N, E, j, U, W, pe;
8293
+ var a, e, t, r, i, s, n, l, c, p, h, d, f, v, k, w, D, _, A, b, g, C, y, L, Q, M, N, E, j, U, G, pe;
8294
8294
  if ((a = this.interpolateMarkers) == null || a.forEach((he) => he == null ? void 0 : he.remove()), this.circleSourceData.features = [], (e = this.interpolateData) != null && e.length && this.tropicals.active) {
8295
8295
  const he = te(this.date).utc().set({ minute: 0, second: 0, millisecond: 0 }), me = this.interpolateData.filter((K) => K.properties.date === he.format() && !K.properties.disabled), fe = this.handleComputePolygons(me), ue = T.featureCollection([...me]);
8296
8296
  fe.forEach((K) => {
@@ -8329,11 +8329,11 @@ const Ya = {
8329
8329
  fill="#ffffff" p-id="18386"></path>
8330
8330
  </svg>`, ge = document.createElement("div");
8331
8331
  ge.className = "hurricane-hourly-marker", ge.innerHTML = `<div class="${K.geometry.coordinates[1] >= 0 ? "center north" : "center south"}">${Ae}</div>`;
8332
- const ye = new We.Marker(ge).setLngLat(K.geometry.coordinates).addTo(this.map);
8332
+ const ye = new ke.Marker(ge).setLngLat(K.geometry.coordinates).addTo(this.map);
8333
8333
  this.interpolateMarkers.push(ye), (U = (j = this.map) == null ? void 0 : j.getSource(this.circleSource)) == null || U.setData(this.circleSourceData);
8334
8334
  }
8335
8335
  } else
8336
- (W = this.map) != null && W.getSource(this.interpolateSource) && ((pe = this.map) == null || pe.getSource(this.interpolateSource).setData(this.empty));
8336
+ (G = this.map) != null && G.getSource(this.interpolateSource) && ((pe = this.map) == null || pe.getSource(this.interpolateSource).setData(this.empty));
8337
8337
  },
8338
8338
  handleClick(a) {
8339
8339
  var s, n, l, c, p, h, d, f;
@@ -8354,8 +8354,8 @@ const Ya = {
8354
8354
  history: (h = r[0]) == null ? void 0 : h.properties,
8355
8355
  showCircle: (f = (d = t[0]) == null ? void 0 : d.properties) == null ? void 0 : f.showCircle
8356
8356
  }, this.showTropicals = !0;
8357
- const i = document.getElementById("idm-tropical-gl3");
8358
- this.activeTropicalsMarker ? this.activeTropicalsMarker.setLngLat([a.lngLat.lng, a.lngLat.lat]) : this.activeTropicalsMarker = new We.Marker(i).setLngLat([a.lngLat.lng, a.lngLat.lat]).setOffset([220, 0]).addTo(this.map);
8357
+ const i = document.getElementById("idm-tropical-gl4");
8358
+ this.activeTropicalsMarker ? this.activeTropicalsMarker.setLngLat([a.lngLat.lng, a.lngLat.lat]) : this.activeTropicalsMarker = new ke.Marker(i).setLngLat([a.lngLat.lng, a.lngLat.lat]).setOffset([220, 0]).addTo(this.map);
8359
8359
  },
8360
8360
  handleForecastToggle(a) {
8361
8361
  var r, i, s, n, l, c;
@@ -8441,9 +8441,9 @@ const Ya = {
8441
8441
  }
8442
8442
  }
8443
8443
  }, Ka = {
8444
- id: "idm-tropical-gl3",
8445
- class: "idm-tropical-gl3"
8446
- }, Xa = { class: "header-box" }, Ja = { class: "main" }, qa = { key: 0 }, Va = { class: "sub" }, Za = {
8444
+ id: "idm-tropical-gl4",
8445
+ class: "idm-tropical-gl4"
8446
+ }, Xa = { class: "header-box" }, qa = { class: "main" }, Ja = { key: 0 }, Va = { class: "sub" }, Za = {
8447
8447
  id: "meteoBox",
8448
8448
  class: "main-box"
8449
8449
  }, $a = { class: "content" }, ei = { class: "row" }, ti = {
@@ -8464,14 +8464,14 @@ const Ya = {
8464
8464
  }, li = { class: "forecast-models" }, hi = ["onClick"], ci = { class: "more" };
8465
8465
  function di(a, e, t, r, i, s) {
8466
8466
  var n, l, c, p, h, d, f, v, k, w, D, _, A, b, g, C, y, L, Q;
8467
- return Re((m(), u("div", Ka, [
8467
+ return Oe((m(), u("div", Ka, [
8468
8468
  o("div", Xa, [
8469
8469
  o("div", {
8470
8470
  class: "iconfont close-btn",
8471
8471
  onClick: e[0] || (e[0] = (M) => i.showTropicals = !1)
8472
8472
  }, ""),
8473
- o("div", Ja, [
8474
- (l = (n = i.activeTropicals) == null ? void 0 : n.history) != null && l.level ? (m(), u("span", qa, I((p = (c = i.activeTropicals) == null ? void 0 : c.history) == null ? void 0 : p.level) + " , ", 1)) : q("", !0),
8473
+ o("div", qa, [
8474
+ (l = (n = i.activeTropicals) == null ? void 0 : n.history) != null && l.level ? (m(), u("span", Ja, I((p = (c = i.activeTropicals) == null ? void 0 : c.history) == null ? void 0 : p.level) + " , ", 1)) : J("", !0),
8475
8475
  le(I((h = i.activeTropicals) == null ? void 0 : h.name), 1)
8476
8476
  ]),
8477
8477
  o("div", Va, " Last update: " + I(s.computeTime(((f = (d = i.activeTropicals) == null ? void 0 : d.history) == null ? void 0 : f.updated) || ((w = (k = (v = i.activeTropicals) == null ? void 0 : v.forecasts) == null ? void 0 : k.filter((M) => !M.disabled)[0]) == null ? void 0 : w.date))), 1)
@@ -8504,25 +8504,25 @@ function di(a, e, t, r, i, s) {
8504
8504
  e[6] || (e[6] = o("label", { style: { width: "max-content" } }, "Forecast Models : ", -1)),
8505
8505
  o("div", li, [
8506
8506
  (m(!0), u(Z, null, $((Q = i.activeTropicals) == null ? void 0 : Q.forecasts, (M, N) => {
8507
- var E, j, U, W;
8507
+ var E, j, U, G;
8508
8508
  return m(), u("div", {
8509
8509
  key: N,
8510
- class: J([
8510
+ class: q([
8511
8511
  "model",
8512
8512
  M.disabled ? "" : "active",
8513
- N > 0 && N < ((j = (E = i.activeTropicals) == null ? void 0 : E.forecasts) == null ? void 0 : j.length) - 1 && ((W = (U = i.activeTropicals) == null ? void 0 : U.forecasts) == null ? void 0 : W.length) > 2 ? "center-child" : ""
8513
+ N > 0 && N < ((j = (E = i.activeTropicals) == null ? void 0 : E.forecasts) == null ? void 0 : j.length) - 1 && ((G = (U = i.activeTropicals) == null ? void 0 : U.forecasts) == null ? void 0 : G.length) > 2 ? "center-child" : ""
8514
8514
  ]),
8515
8515
  onClick: (pe) => s.handleForecastToggle(M)
8516
8516
  }, [
8517
8517
  o("span", {
8518
- class: J(M.model)
8518
+ class: q(M.model)
8519
8519
  }, I(M.model), 3)
8520
8520
  ], 10, hi);
8521
8521
  }), 128))
8522
8522
  ])
8523
8523
  ])
8524
8524
  ]),
8525
- e[7] || (e[7] = yt('<div class="row" style="padding:0;height:1px;margin:10px 0;background:var(--idm-black-1);" data-v-14b013a5></div><div class="row" style="padding:2px 10px;" data-v-14b013a5><div class="legend" data-v-14b013a5><div class="icon td" data-v-14b013a5></div><div class="label" data-v-14b013a5>TD</div></div><div class="legend" data-v-14b013a5><div class="icon ts" data-v-14b013a5></div><div class="label" data-v-14b013a5>TS</div></div><div class="legend" data-v-14b013a5><div class="icon sts" data-v-14b013a5></div><div class="label" data-v-14b013a5>STS</div></div><div class="legend" data-v-14b013a5><div class="icon ty" data-v-14b013a5></div><div class="label" data-v-14b013a5>TY</div></div><div class="legend" data-v-14b013a5><div class="icon sty" data-v-14b013a5></div><div class="label" data-v-14b013a5>STY</div></div><div class="legend" data-v-14b013a5><div class="icon supper-ty" data-v-14b013a5></div><div class="label" data-v-14b013a5>Super TY</div></div></div><div class="row" style="padding:2px 10px;" data-v-14b013a5><div class="legend" data-v-14b013a5><div class="icon history" data-v-14b013a5></div><div class="label" data-v-14b013a5>History</div></div><div class="legend" data-v-14b013a5><div class="icon r7" data-v-14b013a5></div><div class="label" data-v-14b013a5>35kts Radii</div></div><div class="legend" data-v-14b013a5><div class="icon r10" data-v-14b013a5></div><div class="label" data-v-14b013a5>50kts Radii</div></div></div>', 3))
8525
+ e[7] || (e[7] = ft('<div class="row" style="padding:0;height:1px;margin:10px 0;background:var(--idm-black-1);" data-v-6a684608></div><div class="row" style="padding:2px 10px;" data-v-6a684608><div class="legend" data-v-6a684608><div class="icon td" data-v-6a684608></div><div class="label" data-v-6a684608>TD</div></div><div class="legend" data-v-6a684608><div class="icon ts" data-v-6a684608></div><div class="label" data-v-6a684608>TS</div></div><div class="legend" data-v-6a684608><div class="icon sts" data-v-6a684608></div><div class="label" data-v-6a684608>STS</div></div><div class="legend" data-v-6a684608><div class="icon ty" data-v-6a684608></div><div class="label" data-v-6a684608>TY</div></div><div class="legend" data-v-6a684608><div class="icon sty" data-v-6a684608></div><div class="label" data-v-6a684608>STY</div></div><div class="legend" data-v-6a684608><div class="icon supper-ty" data-v-6a684608></div><div class="label" data-v-6a684608>Super TY</div></div></div><div class="row" style="padding:2px 10px;" data-v-6a684608><div class="legend" data-v-6a684608><div class="icon history" data-v-6a684608></div><div class="label" data-v-6a684608>History</div></div><div class="legend" data-v-6a684608><div class="icon r7" data-v-6a684608></div><div class="label" data-v-6a684608>35kts Radii</div></div><div class="legend" data-v-6a684608><div class="icon r10" data-v-6a684608></div><div class="label" data-v-6a684608>50kts Radii</div></div></div>', 3))
8526
8526
  ]),
8527
8527
  o("div", ci, [
8528
8528
  o("div", {
@@ -8535,7 +8535,7 @@ function di(a, e, t, r, i, s) {
8535
8535
  [Fe, i.showTropicals && !a.$attrs.hideTropicalsLegend]
8536
8536
  ]);
8537
8537
  }
8538
- const dt = /* @__PURE__ */ G(Ya, [["render", di], ["__scopeId", "data-v-14b013a5"]]);
8538
+ const pt = /* @__PURE__ */ W(Ya, [["render", di], ["__scopeId", "data-v-6a684608"]]);
8539
8539
  const pi = {
8540
8540
  name: "IdmPrecip3h",
8541
8541
  props: {
@@ -8564,7 +8564,7 @@ const pi = {
8564
8564
  texture: void 0,
8565
8565
  rampColor: void 0,
8566
8566
  aPositionBuffer: void 0,
8567
- webgl: new Oe(),
8567
+ webgl: new je(),
8568
8568
  etime: void 0,
8569
8569
  right: 10
8570
8570
  };
@@ -8654,9 +8654,9 @@ function ui(a, e, t, r, i, s) {
8654
8654
  o("span", null, "20", -1),
8655
8655
  o("span", null, "30", -1)
8656
8656
  ]), 4)
8657
- ])) : q("", !0);
8657
+ ])) : J("", !0);
8658
8658
  }
8659
- const gi = /* @__PURE__ */ G(pi, [["render", ui], ["__scopeId", "data-v-e83717bd"]]);
8659
+ const gi = /* @__PURE__ */ W(pi, [["render", ui], ["__scopeId", "data-v-e83717bd"]]);
8660
8660
  const yi = {
8661
8661
  name: "IdmVisibility",
8662
8662
  props: {
@@ -8685,7 +8685,7 @@ const yi = {
8685
8685
  texture: void 0,
8686
8686
  rampColor: void 0,
8687
8687
  aPositionBuffer: void 0,
8688
- webgl: new Oe(),
8688
+ webgl: new je(),
8689
8689
  etime: void 0
8690
8690
  };
8691
8691
  },
@@ -8766,9 +8766,9 @@ function Ai(a, e, t, r, i, s) {
8766
8766
  o("span", null, "3", -1),
8767
8767
  o("span", null, "9", -1)
8768
8768
  ]), 4)
8769
- ])) : q("", !0);
8769
+ ])) : J("", !0);
8770
8770
  }
8771
- const wi = /* @__PURE__ */ G(yi, [["render", Ai], ["__scopeId", "data-v-1c8a9237"]]);
8771
+ const wi = /* @__PURE__ */ W(yi, [["render", Ai], ["__scopeId", "data-v-1c8a9237"]]);
8772
8772
  const vi = {
8773
8773
  name: "IdmWaterTemp",
8774
8774
  props: {
@@ -8797,7 +8797,7 @@ const vi = {
8797
8797
  texture: void 0,
8798
8798
  rampColor: void 0,
8799
8799
  aPositionBuffer: void 0,
8800
- webgl: new Oe(),
8800
+ webgl: new je(),
8801
8801
  etime: void 0,
8802
8802
  right: 10
8803
8803
  };
@@ -8886,9 +8886,9 @@ function Li(a, e, t, r, i, s) {
8886
8886
  o("span", null, "30", -1),
8887
8887
  o("span", null, "40", -1)
8888
8888
  ]), 4)
8889
- ])) : q("", !0);
8889
+ ])) : J("", !0);
8890
8890
  }
8891
- const Ci = /* @__PURE__ */ G(vi, [["render", Li], ["__scopeId", "data-v-8974924d"]]);
8891
+ const Ci = /* @__PURE__ */ W(vi, [["render", Li], ["__scopeId", "data-v-8974924d"]]);
8892
8892
  const xi = {
8893
8893
  name: "IdmTemp",
8894
8894
  props: {
@@ -8917,7 +8917,7 @@ const xi = {
8917
8917
  texture: void 0,
8918
8918
  rampColor: void 0,
8919
8919
  aPositionBuffer: void 0,
8920
- webgl: new Oe(),
8920
+ webgl: new je(),
8921
8921
  etime: void 0,
8922
8922
  right: 10
8923
8923
  };
@@ -9011,11 +9011,11 @@ function Bi(a, e, t, r, i, s) {
9011
9011
  o("span", null, "30", -1),
9012
9012
  o("span", null, "40", -1)
9013
9013
  ]), 4)
9014
- ])) : q("", !0);
9014
+ ])) : J("", !0);
9015
9015
  }
9016
- const Ii = /* @__PURE__ */ G(xi, [["render", Bi], ["__scopeId", "data-v-d709ba86"]]);
9016
+ const Ii = /* @__PURE__ */ W(xi, [["render", Bi], ["__scopeId", "data-v-d709ba86"]]);
9017
9017
  /*! Element Plus Icons Vue v2.3.1 */
9018
- var Ei = /* @__PURE__ */ ft({
9018
+ var Ei = /* @__PURE__ */ At({
9019
9019
  name: "LocationFilled",
9020
9020
  __name: "location-filled",
9021
9021
  setup(a) {
@@ -9198,7 +9198,7 @@ const zi = {
9198
9198
  forecastDays: t ?? 7,
9199
9199
  weatherModels: i,
9200
9200
  marineModels: s
9201
- }, l = await He.post(`${this.gateway}/api/arc/meteo2/spot/forecast`, n, {
9201
+ }, l = await Ne.post(`${this.gateway}/api/arc/meteo2/spot/forecast`, n, {
9202
9202
  headers: {
9203
9203
  Authorization: this.token || this.defaultMeteoToken
9204
9204
  }
@@ -9215,7 +9215,7 @@ const zi = {
9215
9215
  pastDays: 1,
9216
9216
  weatherModels: r,
9217
9217
  marineModels: i
9218
- }, n = await He.post(`${this.gateway}/api/arc/meteo2/spot/forecast`, s, {
9218
+ }, n = await Ne.post(`${this.gateway}/api/arc/meteo2/spot/forecast`, s, {
9219
9219
  headers: {
9220
9220
  Authorization: this.token || this.defaultMeteoToken
9221
9221
  }
@@ -9225,7 +9225,7 @@ const zi = {
9225
9225
  initTableData(a) {
9226
9226
  var e, t, r, i, s, n, l, c, p;
9227
9227
  this.clearTable(), this.positionGmt = (t = (e = a == null ? void 0 : a.weather) == null ? void 0 : e[0]) == null ? void 0 : t.timezone, this.positionOffset = (i = (r = a == null ? void 0 : a.weather) == null ? void 0 : r[0]) == null ? void 0 : i.offset, this.localDate = (n = (s = Ke(this.ts)) == null ? void 0 : s.tz(this.positionGmt)) == null ? void 0 : n.format("MMM-DD/HHmm[LT]"), this.currentHourData = (l = Xe.pickHourly(a, te(this.ts))) == null ? void 0 : l[0], ((p = (c = this.currentHourData) == null ? void 0 : c.weather) == null ? void 0 : p.isDay) === 0 ? this.isDay = !1 : this.isDay = !0, this.$nextTick(() => {
9228
- var d, f, v, k, w, D, _, A, b, g, C, y, L, Q, M, N, E, j, U, W, pe, he, me, fe, ue, K, ae, Ae, ge, ye, Le, Ce, xe;
9228
+ var d, f, v, k, w, D, _, A, b, g, C, y, L, Q, M, N, E, j, U, G, pe, he, me, fe, ue, K, ae, Ae, ge, ye, Le, Ce, xe;
9229
9229
  if (!document.getElementById("meteoMainBox"))
9230
9230
  return !1;
9231
9231
  if (!this.currentHourData)
@@ -9234,7 +9234,7 @@ const zi = {
9234
9234
  const _e = Ke(this.ts).tz(this.positionGmt).add(3 * we, "h").format();
9235
9235
  this.tableData.hours.push(_e);
9236
9236
  const B = ((d = Xe.pickHourly(a, _e)) == null ? void 0 : d[0]) || {};
9237
- this.tableData.temp.push(this.roundPrecision((f = B == null ? void 0 : B.weather) == null ? void 0 : f.temp, 0) ?? "-"), this.tableData.precipProbability.push(this.roundPrecision((k = (v = B == null ? void 0 : B.weather) == null ? void 0 : v.precip) == null ? void 0 : k.probability, 0) ?? "-"), this.tableData.precip1h.push(this.roundPrecision((D = (w = B == null ? void 0 : B.weather) == null ? void 0 : w.precip) == null ? void 0 : D.sum, 0) ?? "-"), this.tableData.visibility.push(this.roundPrecision((_ = B == null ? void 0 : B.weather) == null ? void 0 : _.visibility, 0) ?? "-"), this.tableData.windSpeed.push(this.roundPrecision((b = (A = B == null ? void 0 : B.weather) == null ? void 0 : A.wind) == null ? void 0 : b.kts, 1) ?? "-"), this.tableData.windDir.push((C = (g = B == null ? void 0 : B.weather) == null ? void 0 : g.wind) == null ? void 0 : C.bearing), this.tableData.windGust.push(this.roundPrecision((L = (y = B == null ? void 0 : B.weather) == null ? void 0 : y.wind) == null ? void 0 : L.gusts, 1) ?? "-"), this.tableData.sigwaveHeight.push(this.roundPrecision((M = (Q = B == null ? void 0 : B.wave) == null ? void 0 : Q.sig) == null ? void 0 : M.height, 1) ?? "-"), this.tableData.sigwaveDir.push((E = (N = B == null ? void 0 : B.wave) == null ? void 0 : N.sig) == null ? void 0 : E.bearing), this.tableData.windwaveHeight.push(this.roundPrecision((U = (j = B == null ? void 0 : B.wave) == null ? void 0 : j.wd) == null ? void 0 : U.height, 1) ?? "-"), this.tableData.windwaveDir.push((pe = (W = B == null ? void 0 : B.wave) == null ? void 0 : W.wd) == null ? void 0 : pe.bearing), this.tableData.windwavePeriod.push(this.roundPrecision((me = (he = B == null ? void 0 : B.wave) == null ? void 0 : he.wd) == null ? void 0 : me.period, 1) ?? "-"), this.tableData.swellHeight.push(this.roundPrecision((ue = (fe = B == null ? void 0 : B.wave) == null ? void 0 : fe.swell) == null ? void 0 : ue.height, 1) ?? "-"), this.tableData.swellDir.push((ae = (K = B == null ? void 0 : B.wave) == null ? void 0 : K.swell) == null ? void 0 : ae.bearing), this.tableData.swellPeriod.push(this.roundPrecision((ge = (Ae = B == null ? void 0 : B.wave) == null ? void 0 : Ae.swell) == null ? void 0 : ge.period, 1) ?? "-"), this.tableData.currentSpeed.push(this.roundPrecision((ye = B == null ? void 0 : B.current) == null ? void 0 : ye.speed, 1) ?? "-"), this.tableData.currentDir.push((Le = B == null ? void 0 : B.current) == null ? void 0 : Le.bearing), this.tableData.seaLevel.push(this.roundPrecision(B == null ? void 0 : B.height, 1) ?? "-"), this.tableData.seaTemp.push(this.roundPrecision(B == null ? void 0 : B.sst, 0) ?? "-"), this.tableData.weatherUrls.push((Ce = B == null ? void 0 : B.weather) == null ? void 0 : Ce.url), this.tableData.weatherNames.push(((xe = B == null ? void 0 : B.weather) == null ? void 0 : xe.name) ?? "-");
9237
+ this.tableData.temp.push(this.roundPrecision((f = B == null ? void 0 : B.weather) == null ? void 0 : f.temp, 0) ?? "-"), this.tableData.precipProbability.push(this.roundPrecision((k = (v = B == null ? void 0 : B.weather) == null ? void 0 : v.precip) == null ? void 0 : k.probability, 0) ?? "-"), this.tableData.precip1h.push(this.roundPrecision((D = (w = B == null ? void 0 : B.weather) == null ? void 0 : w.precip) == null ? void 0 : D.sum, 0) ?? "-"), this.tableData.visibility.push(this.roundPrecision((_ = B == null ? void 0 : B.weather) == null ? void 0 : _.visibility, 0) ?? "-"), this.tableData.windSpeed.push(this.roundPrecision((b = (A = B == null ? void 0 : B.weather) == null ? void 0 : A.wind) == null ? void 0 : b.kts, 1) ?? "-"), this.tableData.windDir.push((C = (g = B == null ? void 0 : B.weather) == null ? void 0 : g.wind) == null ? void 0 : C.bearing), this.tableData.windGust.push(this.roundPrecision((L = (y = B == null ? void 0 : B.weather) == null ? void 0 : y.wind) == null ? void 0 : L.gusts, 1) ?? "-"), this.tableData.sigwaveHeight.push(this.roundPrecision((M = (Q = B == null ? void 0 : B.wave) == null ? void 0 : Q.sig) == null ? void 0 : M.height, 1) ?? "-"), this.tableData.sigwaveDir.push((E = (N = B == null ? void 0 : B.wave) == null ? void 0 : N.sig) == null ? void 0 : E.bearing), this.tableData.windwaveHeight.push(this.roundPrecision((U = (j = B == null ? void 0 : B.wave) == null ? void 0 : j.wd) == null ? void 0 : U.height, 1) ?? "-"), this.tableData.windwaveDir.push((pe = (G = B == null ? void 0 : B.wave) == null ? void 0 : G.wd) == null ? void 0 : pe.bearing), this.tableData.windwavePeriod.push(this.roundPrecision((me = (he = B == null ? void 0 : B.wave) == null ? void 0 : he.wd) == null ? void 0 : me.period, 1) ?? "-"), this.tableData.swellHeight.push(this.roundPrecision((ue = (fe = B == null ? void 0 : B.wave) == null ? void 0 : fe.swell) == null ? void 0 : ue.height, 1) ?? "-"), this.tableData.swellDir.push((ae = (K = B == null ? void 0 : B.wave) == null ? void 0 : K.swell) == null ? void 0 : ae.bearing), this.tableData.swellPeriod.push(this.roundPrecision((ge = (Ae = B == null ? void 0 : B.wave) == null ? void 0 : Ae.swell) == null ? void 0 : ge.period, 1) ?? "-"), this.tableData.currentSpeed.push(this.roundPrecision((ye = B == null ? void 0 : B.current) == null ? void 0 : ye.speed, 1) ?? "-"), this.tableData.currentDir.push((Le = B == null ? void 0 : B.current) == null ? void 0 : Le.bearing), this.tableData.seaLevel.push(this.roundPrecision(B == null ? void 0 : B.height, 1) ?? "-"), this.tableData.seaTemp.push(this.roundPrecision(B == null ? void 0 : B.sst, 0) ?? "-"), this.tableData.weatherUrls.push((Ce = B == null ? void 0 : B.weather) == null ? void 0 : Ce.url), this.tableData.weatherNames.push(((xe = B == null ? void 0 : B.weather) == null ? void 0 : xe.name) ?? "-");
9238
9238
  }
9239
9239
  });
9240
9240
  },
@@ -9277,7 +9277,7 @@ const zi = {
9277
9277
  forecastDays: t ?? 7,
9278
9278
  extremes: !0,
9279
9279
  heights: !1
9280
- }, s = await He.post(`${this.gateway}/api/arc/meteo2/spot/tides/forecast`, i, {
9280
+ }, s = await Ne.post(`${this.gateway}/api/arc/meteo2/spot/tides/forecast`, i, {
9281
9281
  headers: {
9282
9282
  Authorization: this.token || this.defaultMeteoToken
9283
9283
  }
@@ -9308,18 +9308,18 @@ const zi = {
9308
9308
  this.$nextTick(() => {
9309
9309
  var e;
9310
9310
  const a = document.getElementById("point-meteo");
9311
- this.point && (this.meteoMarker ? (e = this.meteoMarker) == null || e.setLngLat([this.point.lng, this.point.lat]) : this.meteoMarker = new We.Marker(a).setLngLat([this.point.lng, this.point.lat]).addTo(this.map));
9311
+ this.point && (this.meteoMarker ? (e = this.meteoMarker) == null || e.setLngLat([this.point.lng, this.point.lat]) : this.meteoMarker = new ke.Marker(a).setLngLat([this.point.lng, this.point.lat]).addTo(this.map));
9312
9312
  });
9313
9313
  }
9314
9314
  }
9315
9315
  }, Pi = {
9316
9316
  id: "point-meteo",
9317
9317
  class: "point-meteo"
9318
- }, Mi = { class: "meteo-box" }, Si = { class: "header-box flex-between" }, Ti = { class: "flex-center" }, Qi = { class: "lnglat" }, Hi = { class: "flex-center" }, Ni = { class: "summary-row flex-between" }, Ri = { class: "summary flex-center" }, Fi = ["src"], Oi = {
9318
+ }, Mi = { class: "meteo-box" }, Si = { class: "header-box flex-between" }, Ti = { class: "flex-center" }, Qi = { class: "lnglat" }, Hi = { class: "flex-center" }, Ni = { class: "summary-row flex-between" }, Ri = { class: "summary flex-center" }, Oi = ["src"], Fi = {
9319
9319
  key: 1,
9320
9320
  class: "icon flex-center",
9321
9321
  style: { "margin-right": "5px" }
9322
- }, ji = { class: "temp" }, Wi = { class: "des info" }, Gi = { class: "flex-start" }, Ui = { class: "flex-start" }, Yi = { class: "flex-start" }, Ki = { class: "date flex-col-center-end" }, Xi = { class: "" }, Ji = { class: "" }, qi = { class: "detail-box" }, Vi = { class: "menu-header flex-start" }, Zi = { class: "basic-table" }, $i = { class: "hour" }, er = { class: "hour" }, tr = { class: "icon" }, ar = ["src"], ir = { class: "text" }, rr = { class: "text" }, sr = { class: "text" }, or = { class: "text" }, nr = { class: "wave-current-table" }, lr = { class: "hour" }, hr = { class: "hour" }, cr = { class: "text" }, dr = { class: "text" }, pr = { class: "text" }, mr = { class: "text" }, ur = { class: "text" }, gr = {
9322
+ }, ji = { class: "temp" }, Wi = { class: "des info" }, Gi = { class: "flex-start" }, Ui = { class: "flex-start" }, Yi = { class: "flex-start" }, Ki = { class: "date flex-col-center-end" }, Xi = { class: "" }, qi = { class: "" }, Ji = { class: "detail-box" }, Vi = { class: "menu-header flex-start" }, Zi = { class: "basic-table" }, $i = { class: "hour" }, er = { class: "hour" }, tr = { class: "icon" }, ar = ["src"], ir = { class: "text" }, rr = { class: "text" }, sr = { class: "text" }, or = { class: "text" }, nr = { class: "wave-current-table" }, lr = { class: "hour" }, hr = { class: "hour" }, cr = { class: "text" }, dr = { class: "text" }, pr = { class: "text" }, mr = { class: "text" }, ur = { class: "text" }, gr = {
9323
9323
  class: "sea-table",
9324
9324
  style: { height: "92px" }
9325
9325
  }, yr = { class: "hour" }, fr = { class: "hour" }, Ar = { class: "text" }, wr = { class: "text" }, vr = { key: 0 }, br = { class: "tide-table flex-col-start-center" }, Lr = { class: "tr-tide flex-space" }, Cr = { class: "tr-tide flex-space" }, xr = { class: "tr-tide flex-space" }, _r = { style: { padding: "17px 10px 18px 10px" } }, Br = { class: "flex-between" }, Ir = {
@@ -9349,17 +9349,17 @@ const zi = {
9349
9349
  }, Nr = { class: "flex-between" }, Rr = {
9350
9350
  class: "flex-space",
9351
9351
  style: { flex: "1", "line-height": "30px" }
9352
- }, Fr = {
9352
+ }, Or = {
9353
9353
  class: "flex-space",
9354
9354
  style: { flex: "1", "padding-left": "30px" }
9355
- }, Or = {
9355
+ }, Fr = {
9356
9356
  key: 1,
9357
9357
  class: "main-box flex-center"
9358
9358
  };
9359
9359
  function jr(a, e, t, r, i, s) {
9360
- var p, h, d, f, v, k, w, D, _, A, b, g, C, y, L, Q, M, N, E, j, U, W, pe, he, me, fe, ue, K, ae, Ae, ge, ye, Le, Ce, xe, we, _e, B, Pe, ve, Me, ke, Ne, De, re, ce, H, Be, X, V, Se, P, de, ze, Te, Qe, z, F, Ge, Ue, Ye, Ie, ne, at, it, rt, st, ot;
9361
- const n = O("LocationFilled"), l = O("ElIcon"), c = O("ElTooltip");
9362
- return Re((m(), u("div", Pi, [
9360
+ var p, h, d, f, v, k, w, D, _, A, b, g, C, y, L, Q, M, N, E, j, U, G, pe, he, me, fe, ue, K, ae, Ae, ge, ye, Le, Ce, xe, we, _e, B, Me, ve, Se, De, Re, ze, re, ce, H, Be, X, V, Te, P, de, Pe, Qe, He, z, O, Ge, Ue, Ye, Ie, ne, it, rt, st, ot, nt;
9361
+ const n = F("LocationFilled"), l = F("ElIcon"), c = F("ElTooltip");
9362
+ return Oe((m(), u("div", Pi, [
9363
9363
  o("div", Mi, [
9364
9364
  o("div", Si, [
9365
9365
  o("div", Ti, [
@@ -9387,11 +9387,11 @@ function jr(a, e, t, r, i, s) {
9387
9387
  }, "")
9388
9388
  ])
9389
9389
  ]),
9390
- i.loading ? (m(), u("div", Or, e[42] || (e[42] = [
9390
+ i.loading ? (m(), u("div", Fr, e[42] || (e[42] = [
9391
9391
  o("img", { src: Di }, null, -1)
9392
9392
  ]))) : (m(), u("div", {
9393
9393
  key: 0,
9394
- class: J(["main-box", i.isDay ? "day-bg" : "night-bg"]),
9394
+ class: q(["main-box", i.isDay ? "day-bg" : "night-bg"]),
9395
9395
  id: "meteoMainBox"
9396
9396
  }, [
9397
9397
  o("div", Ni, [
@@ -9403,14 +9403,14 @@ function jr(a, e, t, r, i, s) {
9403
9403
  "show-after": 1e3
9404
9404
  }, {
9405
9405
  default: Ee(() => {
9406
- var x, S, nt, lt;
9406
+ var x, S, lt, ht;
9407
9407
  return [
9408
9408
  (S = (x = i.currentHourData) == null ? void 0 : x.weather) != null && S.url ? (m(), u("img", {
9409
9409
  key: 0,
9410
9410
  class: "iconfont icon",
9411
9411
  style: { "margin-right": "5px" },
9412
- src: (lt = (nt = i.currentHourData) == null ? void 0 : nt.weather) == null ? void 0 : lt.url
9413
- }, null, 8, Fi)) : (m(), u("span", Oi))
9412
+ src: (ht = (lt = i.currentHourData) == null ? void 0 : lt.weather) == null ? void 0 : ht.url
9413
+ }, null, 8, Oi)) : (m(), u("span", Fi))
9414
9414
  ];
9415
9415
  }),
9416
9416
  _: 1
@@ -9438,29 +9438,29 @@ function jr(a, e, t, r, i, s) {
9438
9438
  ]),
9439
9439
  o("div", Ki, [
9440
9440
  o("div", Xi, I(i.localDate), 1),
9441
- o("div", Ji, "( UTC " + I(i.positionOffset) + " )", 1)
9441
+ o("div", qi, "( UTC " + I(i.positionOffset) + " )", 1)
9442
9442
  ])
9443
9443
  ]),
9444
- Re(o("div", qi, [
9444
+ Oe(o("div", Ji, [
9445
9445
  o("div", Vi, [
9446
9446
  o("div", {
9447
- class: J(["menu-item", i.activeIndex === 1 ? "active" : ""]),
9447
+ class: q(["menu-item", i.activeIndex === 1 ? "active" : ""]),
9448
9448
  onClick: e[3] || (e[3] = Ve((x) => s.handleSelectTab(1), ["prevent"]))
9449
9449
  }, "Basis", 2),
9450
9450
  o("div", {
9451
- class: J(["menu-item", i.activeIndex === 2 ? "active" : ""]),
9451
+ class: q(["menu-item", i.activeIndex === 2 ? "active" : ""]),
9452
9452
  onClick: e[4] || (e[4] = Ve((x) => s.handleSelectTab(2), ["prevent"]))
9453
9453
  }, "Wave & Current", 2),
9454
9454
  o("div", {
9455
- class: J(["menu-item", i.activeIndex === 3 ? "active" : ""]),
9455
+ class: q(["menu-item", i.activeIndex === 3 ? "active" : ""]),
9456
9456
  onClick: e[5] || (e[5] = Ve((x) => s.handleSelectTab(3), ["prevent"]))
9457
9457
  }, "Sea Surface", 2),
9458
9458
  o("div", {
9459
- class: J(["menu-item", i.activeIndex === 4 ? "active" : ""]),
9459
+ class: q(["menu-item", i.activeIndex === 4 ? "active" : ""]),
9460
9460
  onClick: e[6] || (e[6] = Ve((x) => s.handleSelectTab(4), ["prevent"]))
9461
9461
  }, "Tides", 2)
9462
9462
  ]),
9463
- Re(o("table", Zi, [
9463
+ Oe(o("table", Zi, [
9464
9464
  o("tr", $i, [
9465
9465
  e[12] || (e[12] = o("th", {
9466
9466
  rowspan: "1",
@@ -9513,7 +9513,7 @@ function jr(a, e, t, r, i, s) {
9513
9513
  key: 0,
9514
9514
  class: "iconfont weather-icon",
9515
9515
  src: x
9516
- }, null, 8, ar)) : q("", !0)
9516
+ }, null, 8, ar)) : J("", !0)
9517
9517
  ]),
9518
9518
  _: 2
9519
9519
  }, 1032, ["content"])
@@ -9584,7 +9584,7 @@ function jr(a, e, t, r, i, s) {
9584
9584
  ], 512), [
9585
9585
  [Fe, i.activeIndex === 1]
9586
9586
  ]),
9587
- Re(o("table", nr, [
9587
+ Oe(o("table", nr, [
9588
9588
  o("tr", lr, [
9589
9589
  e[19] || (e[19] = o("th", {
9590
9590
  rowspan: "1",
@@ -9629,7 +9629,7 @@ function jr(a, e, t, r, i, s) {
9629
9629
  colspan: "1",
9630
9630
  key: `windSpeed${S}${x}`
9631
9631
  }, [
9632
- isNaN(i.tableData.windDir[S]) ? q("", !0) : (m(), u("span", {
9632
+ isNaN(i.tableData.windDir[S]) ? J("", !0) : (m(), u("span", {
9633
9633
  key: 0,
9634
9634
  class: "iconfont icon wind",
9635
9635
  style: oe({ display: "inline-block", transform: `rotate(${i.tableData.windDir[S]}deg)` })
@@ -9651,7 +9651,7 @@ function jr(a, e, t, r, i, s) {
9651
9651
  colspan: "1",
9652
9652
  key: `sigwaveHeight${S}${x}`
9653
9653
  }, [
9654
- isNaN(i.tableData.sigwaveDir[S]) ? q("", !0) : (m(), u("span", {
9654
+ isNaN(i.tableData.sigwaveDir[S]) ? J("", !0) : (m(), u("span", {
9655
9655
  key: 0,
9656
9656
  class: "iconfont icon sigwave",
9657
9657
  style: oe({ display: "inline-block", transform: `rotate(${i.tableData.sigwaveDir[S]}deg)` })
@@ -9673,7 +9673,7 @@ function jr(a, e, t, r, i, s) {
9673
9673
  colspan: "1",
9674
9674
  key: `windwaveHeight${S}${x}`
9675
9675
  }, [
9676
- isNaN(i.tableData.sigwaveDir[S]) ? q("", !0) : (m(), u("span", {
9676
+ isNaN(i.tableData.sigwaveDir[S]) ? J("", !0) : (m(), u("span", {
9677
9677
  key: 0,
9678
9678
  class: "iconfont icon windwave",
9679
9679
  style: oe({ display: "inline-block", transform: `rotate(${i.tableData.windwaveDir[S]}deg)` })
@@ -9695,7 +9695,7 @@ function jr(a, e, t, r, i, s) {
9695
9695
  colspan: "1",
9696
9696
  key: `swellHeight${S}${x}`
9697
9697
  }, [
9698
- isNaN(i.tableData.swellDir[S]) ? q("", !0) : (m(), u("span", {
9698
+ isNaN(i.tableData.swellDir[S]) ? J("", !0) : (m(), u("span", {
9699
9699
  key: 0,
9700
9700
  class: "iconfont icon swell",
9701
9701
  style: oe({ display: "inline-block", transform: `rotate(${i.tableData.swellDir[S]}deg)` })
@@ -9717,7 +9717,7 @@ function jr(a, e, t, r, i, s) {
9717
9717
  colspan: "1",
9718
9718
  key: `currentSpeed${S}${x}`
9719
9719
  }, [
9720
- isNaN(i.tableData.currentDir[S]) ? q("", !0) : (m(), u("span", {
9720
+ isNaN(i.tableData.currentDir[S]) ? J("", !0) : (m(), u("span", {
9721
9721
  key: 0,
9722
9722
  class: "iconfont icon current",
9723
9723
  id: "meteoGrayIcon",
@@ -9729,7 +9729,7 @@ function jr(a, e, t, r, i, s) {
9729
9729
  ], 512), [
9730
9730
  [Fe, i.activeIndex === 2]
9731
9731
  ]),
9732
- Re(o("table", gr, [
9732
+ Oe(o("table", gr, [
9733
9733
  o("tr", yr, [
9734
9734
  e[26] || (e[26] = o("th", {
9735
9735
  rowspan: "1",
@@ -9795,8 +9795,8 @@ function jr(a, e, t, r, i, s) {
9795
9795
  ]),
9796
9796
  i.activeIndex === 3 ? (m(), u("div", vr, e[30] || (e[30] = [
9797
9797
  o("p", { style: { "font-size": "12px", padding: "12px 20px 0 20px", "line-height": "16px" } }, "*Sea level height accounts for tides, barometer effects, and global variations. Based on mean sea level, accuracy is limited in coastal areas. For coastal navigation, use data from Tides Tab.", -1)
9798
- ]))) : q("", !0),
9799
- Re(o("table", br, [
9798
+ ]))) : J("", !0),
9799
+ Oe(o("table", br, [
9800
9800
  o("tr", Lr, [
9801
9801
  (m(!0), u(Z, null, $(i.tideTableData, (x, S) => (m(), u("th", {
9802
9802
  rowspan: "1",
@@ -9827,11 +9827,11 @@ function jr(a, e, t, r, i, s) {
9827
9827
  ], 512), [
9828
9828
  [Fe, ((Q = (L = i.tableData) == null ? void 0 : L.hours) == null ? void 0 : Q.length) > 0 && i.showTables]
9829
9829
  ]),
9830
- Re(o("div", _r, [
9830
+ Oe(o("div", _r, [
9831
9831
  o("div", Br, [
9832
9832
  o("div", Ir, [
9833
9833
  e[32] || (e[32] = o("div", null, "Wind", -1)),
9834
- o("div", null, I((E = (N = (M = i.currentHourData) == null ? void 0 : M.weather) == null ? void 0 : N.wind) == null ? void 0 : E.direction) + "/" + I(s.roundPrecision((W = (U = (j = i.currentHourData) == null ? void 0 : j.weather) == null ? void 0 : U.wind) == null ? void 0 : W.kts, 1)) + "kts/BF" + I((me = (he = (pe = i.currentHourData) == null ? void 0 : pe.weather) == null ? void 0 : he.wind) == null ? void 0 : me.scale) + "/" + I(s.roundPrecision((K = (ue = (fe = i.currentHourData) == null ? void 0 : fe.weather) == null ? void 0 : ue.wind) == null ? void 0 : K.gusts, 1)) + " kts", 1)
9834
+ o("div", null, I((E = (N = (M = i.currentHourData) == null ? void 0 : M.weather) == null ? void 0 : N.wind) == null ? void 0 : E.direction) + "/" + I(s.roundPrecision((G = (U = (j = i.currentHourData) == null ? void 0 : j.weather) == null ? void 0 : U.wind) == null ? void 0 : G.kts, 1)) + "kts/BF" + I((me = (he = (pe = i.currentHourData) == null ? void 0 : pe.weather) == null ? void 0 : he.wind) == null ? void 0 : me.scale) + "/" + I(s.roundPrecision((K = (ue = (fe = i.currentHourData) == null ? void 0 : fe.weather) == null ? void 0 : ue.wind) == null ? void 0 : K.gusts, 1)) + " kts", 1)
9835
9835
  ]),
9836
9836
  o("div", Er, [
9837
9837
  e[33] || (e[33] = o("div", null, "Sig wave", -1)),
@@ -9841,17 +9841,17 @@ function jr(a, e, t, r, i, s) {
9841
9841
  o("div", kr, [
9842
9842
  o("div", Dr, [
9843
9843
  e[34] || (e[34] = o("div", null, "Wind wave", -1)),
9844
- o("div", null, I((ve = (Pe = (B = i.currentHourData) == null ? void 0 : B.wave) == null ? void 0 : Pe.wd) == null ? void 0 : ve.direction) + "/" + I(s.roundPrecision((Ne = (ke = (Me = i.currentHourData) == null ? void 0 : Me.wave) == null ? void 0 : ke.wd) == null ? void 0 : Ne.height, 1)) + "m/" + I(s.roundPrecision((ce = (re = (De = i.currentHourData) == null ? void 0 : De.wave) == null ? void 0 : re.wd) == null ? void 0 : ce.period, 1)) + "s", 1)
9844
+ o("div", null, I((ve = (Me = (B = i.currentHourData) == null ? void 0 : B.wave) == null ? void 0 : Me.wd) == null ? void 0 : ve.direction) + "/" + I(s.roundPrecision((Re = (De = (Se = i.currentHourData) == null ? void 0 : Se.wave) == null ? void 0 : De.wd) == null ? void 0 : Re.height, 1)) + "m/" + I(s.roundPrecision((ce = (re = (ze = i.currentHourData) == null ? void 0 : ze.wave) == null ? void 0 : re.wd) == null ? void 0 : ce.period, 1)) + "s", 1)
9845
9845
  ]),
9846
9846
  o("div", zr, [
9847
9847
  e[35] || (e[35] = o("div", null, "Swell", -1)),
9848
- o("div", null, I((X = (Be = (H = i.currentHourData) == null ? void 0 : H.wave) == null ? void 0 : Be.swell) == null ? void 0 : X.direction) + "/" + I(s.roundPrecision((P = (Se = (V = i.currentHourData) == null ? void 0 : V.wave) == null ? void 0 : Se.swell) == null ? void 0 : P.height, 1)) + "m/" + I(s.roundPrecision((Te = (ze = (de = i.currentHourData) == null ? void 0 : de.wave) == null ? void 0 : ze.swell) == null ? void 0 : Te.period, 1)) + "s", 1)
9848
+ o("div", null, I((X = (Be = (H = i.currentHourData) == null ? void 0 : H.wave) == null ? void 0 : Be.swell) == null ? void 0 : X.direction) + "/" + I(s.roundPrecision((P = (Te = (V = i.currentHourData) == null ? void 0 : V.wave) == null ? void 0 : Te.swell) == null ? void 0 : P.height, 1)) + "m/" + I(s.roundPrecision((Qe = (Pe = (de = i.currentHourData) == null ? void 0 : de.wave) == null ? void 0 : Pe.swell) == null ? void 0 : Qe.period, 1)) + "s", 1)
9849
9849
  ])
9850
9850
  ]),
9851
9851
  o("div", Pr, [
9852
9852
  o("div", Mr, [
9853
9853
  e[36] || (e[36] = o("div", null, "Current", -1)),
9854
- o("div", null, I((z = (Qe = i.currentHourData) == null ? void 0 : Qe.current) == null ? void 0 : z.direction) + "/" + I(s.roundPrecision((Ge = (F = i.currentHourData) == null ? void 0 : F.current) == null ? void 0 : Ge.kts, 2)) + "kts", 1)
9854
+ o("div", null, I((z = (He = i.currentHourData) == null ? void 0 : He.current) == null ? void 0 : z.direction) + "/" + I(s.roundPrecision((Ge = (O = i.currentHourData) == null ? void 0 : O.current) == null ? void 0 : Ge.kts, 2)) + "kts", 1)
9855
9855
  ]),
9856
9856
  o("div", Sr, [
9857
9857
  e[37] || (e[37] = o("div", null, "Sea level", -1)),
@@ -9871,18 +9871,18 @@ function jr(a, e, t, r, i, s) {
9871
9871
  o("div", Nr, [
9872
9872
  o("div", Rr, [
9873
9873
  e[40] || (e[40] = o("div", null, "Temp", -1)),
9874
- o("div", null, I(s.roundPrecision((it = (at = i.currentHourData) == null ? void 0 : at.weather) == null ? void 0 : it.temp, 1)) + "°C", 1)
9874
+ o("div", null, I(s.roundPrecision((rt = (it = i.currentHourData) == null ? void 0 : it.weather) == null ? void 0 : rt.temp, 1)) + "°C", 1)
9875
9875
  ]),
9876
- o("div", Fr, [
9876
+ o("div", Or, [
9877
9877
  e[41] || (e[41] = o("div", null, "Precip", -1)),
9878
- o("div", null, I(s.roundPrecision((ot = (st = (rt = i.currentHourData) == null ? void 0 : rt.weather) == null ? void 0 : st.precip) == null ? void 0 : ot.sum3Hours, 1)) + "mm", 1)
9878
+ o("div", null, I(s.roundPrecision((nt = (ot = (st = i.currentHourData) == null ? void 0 : st.weather) == null ? void 0 : ot.precip) == null ? void 0 : nt.sum3Hours, 1)) + "mm", 1)
9879
9879
  ])
9880
9880
  ])
9881
9881
  ], 512), [
9882
9882
  [Fe, !i.showTables]
9883
9883
  ]),
9884
9884
  o("div", {
9885
- class: J(["more", i.isDay ? "day" : "night"]),
9885
+ class: q(["more", i.isDay ? "day" : "night"]),
9886
9886
  onClick: e[7] || (e[7] = (...x) => s.handleMeteoMore && s.handleMeteoMore(...x))
9887
9887
  }, "More >>", 2)
9888
9888
  ], 2))
@@ -9891,7 +9891,7 @@ function jr(a, e, t, r, i, s) {
9891
9891
  [Fe, i.showMeteo]
9892
9892
  ]);
9893
9893
  }
9894
- const Wr = /* @__PURE__ */ G(zi, [["render", jr], ["__scopeId", "data-v-fa02c365"]]), Gr = {
9894
+ const Wr = /* @__PURE__ */ W(zi, [["render", jr], ["__scopeId", "data-v-fa02c365"]]), Gr = {
9895
9895
  name: "IdmWarZone",
9896
9896
  props: {
9897
9897
  map: {
@@ -9987,7 +9987,7 @@ const Wr = /* @__PURE__ */ G(zi, [["render", jr], ["__scopeId", "data-v-fa02c365
9987
9987
  function Ur(a, e, t, r, i, s) {
9988
9988
  return m(), u("div");
9989
9989
  }
9990
- const Yr = /* @__PURE__ */ G(Gr, [["render", Ur]]), Kr = {
9990
+ const Yr = /* @__PURE__ */ W(Gr, [["render", Ur]]), Kr = {
9991
9991
  name: "IdmGmdssArea",
9992
9992
  props: {
9993
9993
  map: {
@@ -10113,7 +10113,7 @@ const Yr = /* @__PURE__ */ G(Gr, [["render", Ur]]), Kr = {
10113
10113
  function Xr(a, e, t, r, i, s) {
10114
10114
  return m(), u("div");
10115
10115
  }
10116
- const Jr = /* @__PURE__ */ G(Kr, [["render", Xr]]), qr = {
10116
+ const qr = /* @__PURE__ */ W(Kr, [["render", Xr]]), Jr = {
10117
10117
  name: "IdmEcaZone",
10118
10118
  props: {
10119
10119
  map: {
@@ -10210,7 +10210,7 @@ const Jr = /* @__PURE__ */ G(Kr, [["render", Xr]]), qr = {
10210
10210
  function Vr(a, e, t, r, i, s) {
10211
10211
  return m(), u("div");
10212
10212
  }
10213
- const Zr = /* @__PURE__ */ G(qr, [["render", Vr]]);
10213
+ const Zr = /* @__PURE__ */ W(Jr, [["render", Vr]]);
10214
10214
  const $r = {
10215
10215
  name: "IdmAlertZone",
10216
10216
  props: {
@@ -10253,8 +10253,8 @@ const $r = {
10253
10253
  })[0];
10254
10254
  if (t) {
10255
10255
  this.showZone = !0, this.form = { ...t.properties };
10256
- const i = document.getElementById("idm-gl3-zone-info");
10257
- this.marker ? this.marker.setLngLat([a.lngLat.lng, a.lngLat.lat]) : this.marker = new We.Marker(i).setLngLat([a.lngLat.lng, a.lngLat.lat]).setOffset([0, 0]).addTo(this.map);
10256
+ const i = document.getElementById("idm-gl4-zone-info");
10257
+ this.marker ? this.marker.setLngLat([a.lngLat.lng, a.lngLat.lat]) : this.marker = new ke.Marker(i).setLngLat([a.lngLat.lng, a.lngLat.lat]).setOffset([0, 0]).addTo(this.map);
10258
10258
  }
10259
10259
  },
10260
10260
  handleRender() {
@@ -10344,10 +10344,10 @@ const $r = {
10344
10344
  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);
10345
10345
  }
10346
10346
  }
10347
- }, es = { id: "idm-gl3-zone-info" }, ts = ["innerHTML"];
10347
+ }, es = { id: "idm-gl4-zone-info" }, ts = ["innerHTML"];
10348
10348
  function as(a, e, t, r, i, s) {
10349
10349
  var n;
10350
- return Re((m(), u("div", es, [
10350
+ return Oe((m(), u("div", es, [
10351
10351
  o("div", {
10352
10352
  class: "iconfont close",
10353
10353
  onClick: e[0] || (e[0] = (l) => i.showZone = !1)
@@ -10360,7 +10360,7 @@ function as(a, e, t, r, i, s) {
10360
10360
  [Fe, i.showZone]
10361
10361
  ]);
10362
10362
  }
10363
- const is = /* @__PURE__ */ G($r, [["render", as]]);
10363
+ const is = /* @__PURE__ */ W($r, [["render", as]]);
10364
10364
  const rs = {
10365
10365
  name: "IdmPort",
10366
10366
  props: {
@@ -10417,7 +10417,7 @@ const rs = {
10417
10417
  if (t) {
10418
10418
  this.showPort = !0, this.form = { ...t.properties }, this.form.lng = t.geometry.coordinates[0], this.form.lat = t.geometry.coordinates[1];
10419
10419
  const i = document.getElementById("port-info");
10420
- this.marker ? this.marker.setLngLat([a.lngLat.lng, a.lngLat.lat]) : this.marker = new We.Marker(i).setLngLat([a.lngLat.lng, a.lngLat.lat]).setOffset([0, -85]).addTo(this.map);
10420
+ this.marker ? this.marker.setLngLat([a.lngLat.lng, a.lngLat.lat]) : this.marker = new ke.Marker(i).setLngLat([a.lngLat.lng, a.lngLat.lat]).setOffset([0, -85]).addTo(this.map);
10421
10421
  }
10422
10422
  },
10423
10423
  handleRender() {
@@ -10464,7 +10464,7 @@ const rs = {
10464
10464
  style: { "align-items": "flex-start" }
10465
10465
  }, ds = { class: "meteo-forecast flex-end" };
10466
10466
  function ps(a, e, t, r, i, s) {
10467
- return Re((m(), u("div", ss, [
10467
+ return Oe((m(), u("div", ss, [
10468
10468
  o("div", {
10469
10469
  class: "close iconfont",
10470
10470
  onClick: e[0] || (e[0] = (n) => i.showPort = !1)
@@ -10496,7 +10496,7 @@ function ps(a, e, t, r, i, s) {
10496
10496
  [Fe, i.showPort]
10497
10497
  ]);
10498
10498
  }
10499
- const ms = /* @__PURE__ */ G(rs, [["render", ps], ["__scopeId", "data-v-2fc5fc5e"]]), us = {
10499
+ const ms = /* @__PURE__ */ W(rs, [["render", ps], ["__scopeId", "data-v-2fc5fc5e"]]), us = {
10500
10500
  name: "IdmLoadLine",
10501
10501
  props: {
10502
10502
  map: {
@@ -10572,7 +10572,7 @@ const ms = /* @__PURE__ */ G(rs, [["render", ps], ["__scopeId", "data-v-2fc5fc5e
10572
10572
  function gs(a, e, t, r, i, s) {
10573
10573
  return m(), u("div");
10574
10574
  }
10575
- const ys = /* @__PURE__ */ G(us, [["render", gs]]), fs = {
10575
+ const ys = /* @__PURE__ */ W(us, [["render", gs]]), fs = {
10576
10576
  name: "IdmTimezone",
10577
10577
  props: {
10578
10578
  map: {
@@ -10743,7 +10743,7 @@ const ys = /* @__PURE__ */ G(us, [["render", gs]]), fs = {
10743
10743
  function As(a, e, t, r, i, s) {
10744
10744
  return m(), u("div");
10745
10745
  }
10746
- const ws = /* @__PURE__ */ G(fs, [["render", As]]), vs = {
10746
+ const ws = /* @__PURE__ */ W(fs, [["render", As]]), vs = {
10747
10747
  name: "IdmVoluntaryReportingArea",
10748
10748
  props: {
10749
10749
  map: {
@@ -10837,7 +10837,7 @@ const ws = /* @__PURE__ */ G(fs, [["render", As]]), vs = {
10837
10837
  function bs(a, e, t, r, i, s) {
10838
10838
  return m(), u("div");
10839
10839
  }
10840
- const Ls = /* @__PURE__ */ G(vs, [["render", bs]]), Cs = {
10840
+ const Ls = /* @__PURE__ */ W(vs, [["render", bs]]), Cs = {
10841
10841
  name: "IdmSpecialArea",
10842
10842
  props: {
10843
10843
  map: {
@@ -10933,7 +10933,7 @@ const Ls = /* @__PURE__ */ G(vs, [["render", bs]]), Cs = {
10933
10933
  function xs(a, e, t, r, i, s) {
10934
10934
  return m(), u("div");
10935
10935
  }
10936
- const _s = /* @__PURE__ */ G(Cs, [["render", xs]]), Bs = {
10936
+ const _s = /* @__PURE__ */ W(Cs, [["render", xs]]), Bs = {
10937
10937
  name: "IdmTerminator",
10938
10938
  props: {
10939
10939
  map: {
@@ -10988,7 +10988,7 @@ const _s = /* @__PURE__ */ G(Cs, [["render", xs]]), Bs = {
10988
10988
  function Is(a, e, t, r, i, s) {
10989
10989
  return m(), u("div");
10990
10990
  }
10991
- const Es = /* @__PURE__ */ G(Bs, [["render", Is]]);
10991
+ const Es = /* @__PURE__ */ W(Bs, [["render", Is]]);
10992
10992
  const ks = {
10993
10993
  name: "IdmLatLng",
10994
10994
  props: {
@@ -11154,9 +11154,9 @@ function Ds(a, e, t, r, i, s) {
11154
11154
  o("span", null, I(i.lngLat.lat.pretty), 1),
11155
11155
  e[0] || (e[0] = o("span", null, ", ", -1)),
11156
11156
  o("span", null, I(i.lngLat.lng.pretty), 1)
11157
- ], 4)) : q("", !0);
11157
+ ], 4)) : J("", !0);
11158
11158
  }
11159
- const pt = /* @__PURE__ */ G(ks, [["render", Ds], ["__scopeId", "data-v-ad66a24c"]]), zs = {
11159
+ const mt = /* @__PURE__ */ W(ks, [["render", Ds], ["__scopeId", "data-v-ad66a24c"]]), zs = {
11160
11160
  name: "IdmMeasure",
11161
11161
  props: {
11162
11162
  map: {
@@ -11267,7 +11267,7 @@ const pt = /* @__PURE__ */ G(ks, [["render", Ds], ["__scopeId", "data-v-ad66a24c
11267
11267
  const l = this.geojson.filter((c) => c.id === e.split("-")[0])[0].features.filter((c) => c.geometry.type === "Point");
11268
11268
  if (l.length > 2 && l.filter((p) => p.properties.id === (e == null ? void 0 : e.split("-")[1]))[0]) {
11269
11269
  const p = document.createElement("div");
11270
- p.className = "point-contextmenu-marker", p.innerHTML = `<span id="del-${e}" class="del-point">Del</span>`, this.contextmenu = new We.Marker(p).setOffset([24, 0]).setLngLat([a.lngLat.lng, a.lngLat.lat]).addTo(this.map);
11270
+ p.className = "point-contextmenu-marker", p.innerHTML = `<span id="del-${e}" class="del-point">Del</span>`, this.contextmenu = new ke.Marker(p).setOffset([24, 0]).setLngLat([a.lngLat.lng, a.lngLat.lat]).addTo(this.map);
11271
11271
  }
11272
11272
  }
11273
11273
  },
@@ -11303,10 +11303,10 @@ const pt = /* @__PURE__ */ G(ks, [["render", Ds], ["__scopeId", "data-v-ad66a24c
11303
11303
  let t = 0;
11304
11304
  const r = [];
11305
11305
  for (let i = 1; i < e.length; i++) {
11306
- const s = e[i - 1], n = e[i], l = s.properties, c = { lng: s.geometry.coordinates[0], lat: s.geometry.coordinates[1] }, p = { lng: n.geometry.coordinates[0], lat: n.geometry.coordinates[1] }, h = je.calculateDistance(c, p, l.mode === "RL", 1), d = je.calculateBearing(c, p, l.mode === "RL", 2);
11306
+ const s = e[i - 1], n = e[i], l = s.properties, c = { lng: s.geometry.coordinates[0], lat: s.geometry.coordinates[1] }, p = { lng: n.geometry.coordinates[0], lat: n.geometry.coordinates[1] }, h = We.calculateDistance(c, p, l.mode === "RL", 1), d = We.calculateBearing(c, p, l.mode === "RL", 2);
11307
11307
  t = se.roundPrecision(t + h, 2);
11308
11308
  let f;
11309
- l.mode === "RL" ? f = se.convertToMonotonicLng([c, p]) : f = se.convertToMonotonicLng(je.interpolateCoordinates(c, p, 200));
11309
+ l.mode === "RL" ? f = se.convertToMonotonicLng([c, p]) : f = se.convertToMonotonicLng(We.interpolateCoordinates(c, p, 200));
11310
11310
  const v = T.lineString(f.map((k) => [k.lng, k.lat]));
11311
11311
  v.properties.dist = h, v.properties.bearing = d, v.properties.total = t, r.push(v);
11312
11312
  }
@@ -11319,17 +11319,17 @@ const pt = /* @__PURE__ */ G(ks, [["render", Ds], ["__scopeId", "data-v-ad66a24c
11319
11319
  let s, n;
11320
11320
  if (e) {
11321
11321
  const c = e.properties, p = { lng: e.geometry.coordinates[0], lat: e.geometry.coordinates[1] }, h = { lng: t.lng, lat: t.lat };
11322
- s = je.calculateDistance(p, h, c.mode === "RL", 1), n = je.calculateBearing(p, h, c.mode === "RL", 2);
11322
+ s = We.calculateDistance(p, h, c.mode === "RL", 1), n = We.calculateBearing(p, h, c.mode === "RL", 2);
11323
11323
  let d;
11324
- c.mode === "RL" ? d = se.convertToMonotonicLng([p, h]) : d = se.convertToMonotonicLng(je.interpolateCoordinates(p, h, 200));
11324
+ c.mode === "RL" ? d = se.convertToMonotonicLng([p, h]) : d = se.convertToMonotonicLng(We.interpolateCoordinates(p, h, 200));
11325
11325
  const f = T.lineString(d.map((v) => [v.lng, v.lat]));
11326
11326
  f.properties.dist = s, f.properties.bearing = n, i.features.push(f);
11327
11327
  }
11328
11328
  if (r) {
11329
11329
  const c = t.properties, p = t, h = { lng: r.geometry.coordinates[0], lat: r.geometry.coordinates[1] };
11330
- s = je.calculateDistance(p, h, c.mode === "RL", 1), n = je.calculateBearing(p, h, c.mode === "RL", 2);
11330
+ s = We.calculateDistance(p, h, c.mode === "RL", 1), n = We.calculateBearing(p, h, c.mode === "RL", 2);
11331
11331
  let d;
11332
- c.mode === "RL" ? d = se.convertToMonotonicLng([p, h]) : d = se.convertToMonotonicLng(je.interpolateCoordinates(p, h, 200));
11332
+ c.mode === "RL" ? d = se.convertToMonotonicLng([p, h]) : d = se.convertToMonotonicLng(We.interpolateCoordinates(p, h, 200));
11333
11333
  const f = T.lineString(d.map((v) => [v.lng, v.lat]));
11334
11334
  f.properties.dist = s, f.properties.bearing = n, i.features.push(f);
11335
11335
  }
@@ -11375,7 +11375,7 @@ const pt = /* @__PURE__ */ G(ks, [["render", Ds], ["__scopeId", "data-v-ad66a24c
11375
11375
  this.tipMarker._element.innerHTML = l, this.tipMarker.setLngLat([t.lng, t.lat]);
11376
11376
  else {
11377
11377
  const c = document.createElement("div");
11378
- c.className = "tip-marker", c.innerHTML = l, this.tipMarker = new We.Marker(c).setOffset([140, 0]).setLngLat([t.lng, t.lat]).addTo(this.map);
11378
+ c.className = "tip-marker", c.innerHTML = l, this.tipMarker = new ke.Marker(c).setOffset([140, 0]).setLngLat([t.lng, t.lat]).addTo(this.map);
11379
11379
  }
11380
11380
  },
11381
11381
  handleMove(a) {
@@ -11433,12 +11433,12 @@ const pt = /* @__PURE__ */ G(ks, [["render", Ds], ["__scopeId", "data-v-ad66a24c
11433
11433
  for (const n of s) {
11434
11434
  const l = document.createElement("div");
11435
11435
  l.id = `${a.id}-${n.properties.id}`, l.className = `${a.closed ? "point-marker closed" : "point-marker"}`, l.innerHTML = '<div class="marker-circle"></div>';
11436
- const c = new We.Marker({ element: l, draggable: !0, contextmenu: !0 }).setLngLat(n.geometry.coordinates).addTo(this.map);
11436
+ const c = new ke.Marker({ element: l, draggable: !0, contextmenu: !0 }).setLngLat(n.geometry.coordinates).addTo(this.map);
11437
11437
  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];
11438
11438
  }
11439
11439
  if (a.closed) {
11440
11440
  const n = s.at(-1), c = a.features.filter((h) => h.geometry.type === "LineString").at(-1), p = document.createElement("div");
11441
- p.className = "point-summary-marker", p.innerHTML = `<div id="${a.id}" class="marker-close">×</div><div class="marker-label">Total: ${c.properties.total}nm</div>`, this.closeMarkers[a.id] = new We.Marker(p).setOffset([60, 0]).setLngLat(n.geometry.coordinates).addTo(this.map);
11441
+ p.className = "point-summary-marker", p.innerHTML = `<div id="${a.id}" class="marker-close">×</div><div class="marker-label">Total: ${c.properties.total}nm</div>`, this.closeMarkers[a.id] = new ke.Marker(p).setOffset([60, 0]).setLngLat(n.geometry.coordinates).addTo(this.map);
11442
11442
  }
11443
11443
  }
11444
11444
  },
@@ -11454,7 +11454,7 @@ const pt = /* @__PURE__ */ G(ks, [["render", Ds], ["__scopeId", "data-v-ad66a24c
11454
11454
  function Ps(a, e, t, r, i, s) {
11455
11455
  return m(), u("div");
11456
11456
  }
11457
- const Ms = /* @__PURE__ */ G(zs, [["render", Ps]]);
11457
+ const Ms = /* @__PURE__ */ W(zs, [["render", Ps]]);
11458
11458
  const Ss = {
11459
11459
  name: "IdmENC",
11460
11460
  props: {
@@ -11512,7 +11512,7 @@ const Ss = {
11512
11512
  methods: {}
11513
11513
  }, Ts = { key: 0 }, Qs = { class: "bar-item" };
11514
11514
  function Hs(a, e, t, r, i, s) {
11515
- const n = O("ElTooltip");
11515
+ const n = F("ElTooltip");
11516
11516
  return t.enabled && t.permission & i.helper.LEVEL.Supper ? (m(), u("div", Ts, [
11517
11517
  o("div", {
11518
11518
  class: "menu-bar-box",
@@ -11527,7 +11527,7 @@ function Hs(a, e, t, r, i, s) {
11527
11527
  }, {
11528
11528
  default: Ee(() => [
11529
11529
  o("div", {
11530
- class: J(i.vendor === "hi" ? "menu-icon active" : "menu-icon"),
11530
+ class: q(i.vendor === "hi" ? "menu-icon active" : "menu-icon"),
11531
11531
  onClick: e[0] || (e[0] = (l) => i.vendor = "hi")
11532
11532
  }, e[2] || (e[2] = [
11533
11533
  o("span", { class: "iconfont" }, "HI", -1)
@@ -11543,7 +11543,7 @@ function Hs(a, e, t, r, i, s) {
11543
11543
  }, {
11544
11544
  default: Ee(() => [
11545
11545
  o("div", {
11546
- class: J(i.vendor === "i4" ? "menu-icon active" : "menu-icon"),
11546
+ class: q(i.vendor === "i4" ? "menu-icon active" : "menu-icon"),
11547
11547
  onClick: e[1] || (e[1] = (l) => i.vendor = "i4")
11548
11548
  }, e[3] || (e[3] = [
11549
11549
  o("span", { class: "iconfont" }, "I4", -1)
@@ -11553,9 +11553,9 @@ function Hs(a, e, t, r, i, s) {
11553
11553
  })
11554
11554
  ])
11555
11555
  ], 4)
11556
- ])) : q("", !0);
11556
+ ])) : J("", !0);
11557
11557
  }
11558
- const Ns = /* @__PURE__ */ G(Ss, [["render", Hs], ["__scopeId", "data-v-8ff97b39"]]), Rs = {
11558
+ const Ns = /* @__PURE__ */ W(Ss, [["render", Hs], ["__scopeId", "data-v-8ff97b39"]]), Rs = {
11559
11559
  name: "IdmWorld12nm",
11560
11560
  props: {
11561
11561
  map: {
@@ -11614,10 +11614,10 @@ const Ns = /* @__PURE__ */ G(Ss, [["render", Hs], ["__scopeId", "data-v-8ff97b39
11614
11614
  }
11615
11615
  }
11616
11616
  };
11617
- function Fs(a, e, t, r, i, s) {
11617
+ function Os(a, e, t, r, i, s) {
11618
11618
  return null;
11619
11619
  }
11620
- const Os = /* @__PURE__ */ G(Rs, [["render", Fs]]);
11620
+ const Fs = /* @__PURE__ */ W(Rs, [["render", Os]]);
11621
11621
  const js = {
11622
11622
  name: "IdmWorldMarine",
11623
11623
  props: {
@@ -11661,7 +11661,7 @@ const js = {
11661
11661
  function Ws(a, e, t, r, i, s) {
11662
11662
  return null;
11663
11663
  }
11664
- const Gs = /* @__PURE__ */ G(js, [["render", Ws]]), Us = {
11664
+ const Gs = /* @__PURE__ */ W(js, [["render", Ws]]), Us = {
11665
11665
  name: "IdmChinaRoute",
11666
11666
  props: {
11667
11667
  map: {
@@ -11702,12 +11702,12 @@ const Gs = /* @__PURE__ */ G(js, [["render", Ws]]), Us = {
11702
11702
  function Ys(a, e, t, r, i, s) {
11703
11703
  return null;
11704
11704
  }
11705
- const Ks = /* @__PURE__ */ G(Us, [["render", Ys]]);
11705
+ const Ks = /* @__PURE__ */ W(Us, [["render", Ys]]);
11706
11706
  const Xs = {
11707
- name: "IdmGLV2",
11707
+ name: "IdmGL4",
11708
11708
  components: {
11709
- IdmGlLayer: sa,
11710
- IdmWindBarb: la,
11709
+ IdmGlLayer: oa,
11710
+ IdmWindBarb: ha,
11711
11711
  IdmWindParticle: ma,
11712
11712
  IdmCurrents: ya,
11713
11713
  IdmCurrentParticle: va,
@@ -11716,15 +11716,15 @@ const Xs = {
11716
11716
  IdmSwell: Da,
11717
11717
  IdmPrmsl: Ma,
11718
11718
  IdmIceEdge: Ha,
11719
- IdmIceCover: Oa,
11719
+ IdmIceCover: Fa,
11720
11720
  IdmIceThickness: Ua,
11721
- IdmTropicals: dt,
11721
+ IdmTropicals: pt,
11722
11722
  IdmPrecip3h: gi,
11723
11723
  IdmVisibility: wi,
11724
11724
  IdmWaterTemp: Ci,
11725
11725
  IdmTemp: Ii,
11726
11726
  IdmWarZone: Yr,
11727
- IdmGmdssArea: Jr,
11727
+ IdmGmdssArea: qr,
11728
11728
  IdmEcaZone: Zr,
11729
11729
  IdmAlertZone: is,
11730
11730
  IdmPort: ms,
@@ -11733,11 +11733,11 @@ const Xs = {
11733
11733
  IdmVRA: Ls,
11734
11734
  IdmSpecialArea: _s,
11735
11735
  IdmTerminator: Es,
11736
- IdmLatLng: pt,
11736
+ IdmLatLng: mt,
11737
11737
  IdmMeasure: Ms,
11738
11738
  IdmPoint: Wr,
11739
11739
  IdmENC: Ns,
11740
- IdmWorld12nm: Os,
11740
+ IdmWorld12nm: Fs,
11741
11741
  IdmWorldMarine: Gs,
11742
11742
  IdmChinaRoute: Ks
11743
11743
  },
@@ -11793,7 +11793,7 @@ const Xs = {
11793
11793
  showCurrentParticle: !1,
11794
11794
  enc: "",
11795
11795
  defaultMeteoToken: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImNseTVudHJzYzAwNWUwbHBsZHkyaDRqczMiLCJyb2xlIjoxLCJuYW1lIjoiZmFrZUBvcm13eC5jb20iLCJwbGF0SWQiOiJnZDBtdDFkIiwiY29tcGFueSI6eyJpZCI6bnVsbCwiY2hpbGRyZW4iOltdfSwiaWF0IjoxNzIzMDI0MDI0LCJleHAiOjM5MzA1NDQwMjR9.RrKcdcMnq-FxBLJQ-i6lx2FscDE46y8EvHIemPW4HTg",
11796
- helper: new ha()
11796
+ helper: new tt()
11797
11797
  };
11798
11798
  },
11799
11799
  watch: {
@@ -11807,7 +11807,7 @@ const Xs = {
11807
11807
  },
11808
11808
  map: {
11809
11809
  handler() {
11810
- this.map && (this.map.on("move", this.handleMove4Weather), this.viewport = new tt(this.map), this.handleRampColorInitial());
11810
+ this.map && (this.map.on("move", this.handleMove4Weather), this.viewport = new at(this.map), this.handleRampColorInitial());
11811
11811
  },
11812
11812
  immediate: !0
11813
11813
  },
@@ -11889,7 +11889,7 @@ const Xs = {
11889
11889
  if (this.weatherWeight > 0) {
11890
11890
  let D = this.weatherWeight, _;
11891
11891
  if (a.tropicals || this.weatherWeight & 256 && (_ = this.weatherLayers.tropicals, _ && (D -= 256, _.version = Math.random() + 1)), D > 0) {
11892
- const A = this.assistGateway[Math.round(Math.random() * (this.assistGateway.length - 1))], b = await He.get(`${A}/api/arc/weather/layers2/links?l=${D}&v=${this.source}&z=${v}&bbox=${w}&t=${this.ts}`, {
11892
+ const A = this.assistGateway[Math.round(Math.random() * (this.assistGateway.length - 1))], b = await Ne.get(`${A}/api/arc/weather/layers2/links?l=${D}&v=${this.source}&z=${v}&bbox=${w}&t=${this.ts}`, {
11893
11893
  headers: {
11894
11894
  Authorization: this.token || this.defaultMeteoToken
11895
11895
  }
@@ -11898,7 +11898,7 @@ const Xs = {
11898
11898
  const g = (c = b == null ? void 0 : b.data) == null ? void 0 : c.data, C = [];
11899
11899
  for (const L in g)
11900
11900
  L !== "tropicals" && C.push(
11901
- He.get(g[L], {
11901
+ Ne.get(g[L], {
11902
11902
  headers: {
11903
11903
  Authorization: this.token || this.defaultMeteoToken,
11904
11904
  key: L
@@ -11917,14 +11917,14 @@ const Xs = {
11917
11917
  type: ((U = L == null ? void 0 : L.config) == null ? void 0 : U.responseType) === "blob" ? "image" : "json",
11918
11918
  etime: b.data.etime
11919
11919
  });
11920
- }), g.tropicals && He.get(g.tropicals, {
11920
+ }), g.tropicals && Ne.get(g.tropicals, {
11921
11921
  headers: {
11922
11922
  Authorization: this.token || this.defaultMeteoToken,
11923
11923
  key: "tropicals"
11924
11924
  }
11925
11925
  }).then((L) => {
11926
11926
  var N, E, j;
11927
- const Q = ct.convert2Geojson(((N = L == null ? void 0 : L.data) == null ? void 0 : N.data) || (L == null ? void 0 : L.data)), M = (j = (E = L == null ? void 0 : L.config) == null ? void 0 : E.headers) == null ? void 0 : j.key;
11927
+ const Q = dt.convert2Geojson(((N = L == null ? void 0 : L.data) == null ? void 0 : N.data) || (L == null ? void 0 : L.data)), M = (j = (E = L == null ? void 0 : L.config) == null ? void 0 : E.headers) == null ? void 0 : j.key;
11928
11928
  this.weatherLayers[M] = {
11929
11929
  data: Q,
11930
11930
  active: !0,
@@ -11968,7 +11968,7 @@ const Xs = {
11968
11968
  let n = !1, l = !1, c = !1, p = !1;
11969
11969
  if (this.otherWeight & 2048 && (s = this.otherWeight - 2048, n = !0), this.otherWeight & 8192 && (s = s - 8192, l = !0), this.otherWeight & 16384 && (s = s - 16384, c = !0), this.otherWeight & 32768 && (s = s - 32768, p = !0), s) {
11970
11970
  if (a.all) {
11971
- const h = this.assistGateway[Math.round(Math.random() * (this.assistGateway.length - 1))], d = await He.get(`${h}/api/arc/other/layers/links?l=${s}&t=${this.ts}`, {
11971
+ const h = this.assistGateway[Math.round(Math.random() * (this.assistGateway.length - 1))], d = await Ne.get(`${h}/api/arc/other/layers/links?l=${s}&t=${this.ts}`, {
11972
11972
  headers: {
11973
11973
  Authorization: this.token || this.defaultMeteoToken
11974
11974
  }
@@ -11977,7 +11977,7 @@ const Xs = {
11977
11977
  const f = (t = d == null ? void 0 : d.data) == null ? void 0 : t.data, v = [];
11978
11978
  for (const w in f)
11979
11979
  v.push(
11980
- He.get(f[w], {
11980
+ Ne.get(f[w], {
11981
11981
  headers: {
11982
11982
  Authorization: this.token || this.defaultMeteoToken,
11983
11983
  key: w
@@ -11992,7 +11992,7 @@ const Xs = {
11992
11992
  });
11993
11993
  }
11994
11994
  } else if (a.dayNight && s & 1024) {
11995
- const h = this.assistGateway[Math.round(Math.random() * (this.assistGateway.length - 1))], d = await He.get(`${h}/api/arc/other/layers/links?l=1024&t=${this.ts}`, {
11995
+ const h = this.assistGateway[Math.round(Math.random() * (this.assistGateway.length - 1))], d = await Ne.get(`${h}/api/arc/other/layers/links?l=1024&t=${this.ts}`, {
11996
11996
  headers: {
11997
11997
  Authorization: this.token || this.defaultMeteoToken
11998
11998
  }
@@ -12001,7 +12001,7 @@ const Xs = {
12001
12001
  const f = (i = d == null ? void 0 : d.data) == null ? void 0 : i.data, v = [];
12002
12002
  for (const w in f)
12003
12003
  v.push(
12004
- He.get(f[w], {
12004
+ Ne.get(f[w], {
12005
12005
  headers: {
12006
12006
  Authorization: this.token || this.defaultMeteoToken,
12007
12007
  key: w
@@ -12084,35 +12084,35 @@ const Xs = {
12084
12084
  var Q, M, N, E, j, U;
12085
12085
  if (i < 2) {
12086
12086
  if ((y >= 0 && y <= 360 || y >= -360 && y <= 0) && y % 10 === 0) {
12087
- const W = T.point([y, g], {
12087
+ const G = T.point([y, g], {
12088
12088
  val: ((Q = A[g].val) == null ? void 0 : Q[L]) || ((M = A[g].dir) == null ? void 0 : M[L]),
12089
12089
  spd: (N = A[g].spd) == null ? void 0 : N[L]
12090
12090
  });
12091
- _.push(W);
12091
+ _.push(G);
12092
12092
  }
12093
12093
  } else if ((y >= s && y <= 180 || y >= -180 && y <= n) && (!(i <= this.zoom) || y % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
12094
- const W = T.point([y, g], {
12094
+ const G = T.point([y, g], {
12095
12095
  val: ((E = A[g].val) == null ? void 0 : E[L]) || ((j = A[g].dir) == null ? void 0 : j[L]),
12096
12096
  spd: (U = A[g].spd) == null ? void 0 : U[L]
12097
12097
  });
12098
- _.push(W);
12098
+ _.push(G);
12099
12099
  }
12100
12100
  }) : C.forEach((y, L) => {
12101
12101
  var Q, M, N, E, j, U;
12102
12102
  if (s < 2) {
12103
12103
  if ((y >= 0 && y <= 360 || y >= -360 && y <= 0) && y % 10 === 0) {
12104
- const W = T.point([y, g], {
12104
+ const G = T.point([y, g], {
12105
12105
  val: ((Q = A[g].val) == null ? void 0 : Q[L]) || ((M = A[g].dir) == null ? void 0 : M[L]),
12106
12106
  spd: (N = A[g].spd) == null ? void 0 : N[L]
12107
12107
  });
12108
- _.push(W);
12108
+ _.push(G);
12109
12109
  }
12110
12110
  } else if (y >= s && y <= n && (!(i <= this.zoom) || y % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
12111
- const W = T.point([y, g], {
12111
+ const G = T.point([y, g], {
12112
12112
  val: ((E = A[g].val) == null ? void 0 : E[L]) || ((j = A[g].dir) == null ? void 0 : j[L]),
12113
12113
  spd: (U = A[g].spd) == null ? void 0 : U[L]
12114
12114
  });
12115
- _.push(W);
12115
+ _.push(G);
12116
12116
  }
12117
12117
  });
12118
12118
  }
@@ -12148,35 +12148,35 @@ const Xs = {
12148
12148
  var Q, M, N, E, j, U;
12149
12149
  if (i < 2) {
12150
12150
  if ((y >= 0 && y <= 360 || y >= -360 && y <= 0) && y % 10 === 0) {
12151
- const W = T.point([y, g], {
12151
+ const G = T.point([y, g], {
12152
12152
  val: ((Q = A[g].val) == null ? void 0 : Q[L]) || ((M = A[g].dir) == null ? void 0 : M[L]),
12153
12153
  spd: (N = A[g].spd) == null ? void 0 : N[L]
12154
12154
  });
12155
- _.push(W);
12155
+ _.push(G);
12156
12156
  }
12157
12157
  } else if ((y >= s && y <= 180 || y >= -180 && y <= n) && (!(i <= this.zoom) || y % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
12158
- const W = T.point([y, g], {
12158
+ const G = T.point([y, g], {
12159
12159
  val: ((E = A[g].val) == null ? void 0 : E[L]) || ((j = A[g].dir) == null ? void 0 : j[L]),
12160
12160
  spd: (U = A[g].spd) == null ? void 0 : U[L]
12161
12161
  });
12162
- _.push(W);
12162
+ _.push(G);
12163
12163
  }
12164
12164
  }) : C.forEach((y, L) => {
12165
12165
  var Q, M, N, E, j, U;
12166
12166
  if (s < 2) {
12167
12167
  if ((y >= 0 && y <= 360 || y >= -360 && y <= 0) && y % 10 === 0) {
12168
- const W = T.point([y, g], {
12168
+ const G = T.point([y, g], {
12169
12169
  val: ((Q = A[g].val) == null ? void 0 : Q[L]) || ((M = A[g].dir) == null ? void 0 : M[L]),
12170
12170
  spd: (N = A[g].spd) == null ? void 0 : N[L]
12171
12171
  });
12172
- _.push(W);
12172
+ _.push(G);
12173
12173
  }
12174
12174
  } else if (y >= s && y <= n && (!(i <= this.zoom) || y % (i < this.zoom / 2 ? 5 : 3) === 0)) {
12175
- const W = T.point([y, g], {
12175
+ const G = T.point([y, g], {
12176
12176
  val: ((E = A[g].val) == null ? void 0 : E[L]) || ((j = A[g].dir) == null ? void 0 : j[L]),
12177
12177
  spd: (U = A[g].spd) == null ? void 0 : U[L]
12178
12178
  });
12179
- _.push(W);
12179
+ _.push(G);
12180
12180
  }
12181
12181
  });
12182
12182
  }
@@ -12393,15 +12393,15 @@ const Xs = {
12393
12393
  this.$emit("toggleVersion", Math.random());
12394
12394
  }
12395
12395
  }
12396
- }, Js = {
12396
+ }, qs = {
12397
12397
  key: 0,
12398
12398
  ref: "mapGlHome",
12399
12399
  className: "map-gl-home"
12400
12400
  };
12401
- function qs(a, e, t, r, i, s) {
12402
- var ye, Le, Ce, xe, we, _e, B, Pe, ve, Me, ke, Ne, De, re, ce, H, Be, X, V, Se, P, de, ze, Te, Qe, z, F, Ge, Ue, Ye, Ie;
12403
- const n = O("IdmGlLayer"), l = O("IdmENC"), c = O("IdmWorld12nm"), p = O("IdmWorldMarine"), h = O("IdmChinaRoute"), d = O("IdmSigWave"), f = O("IdmSigWaveHeight"), v = O("IdmSwell"), k = O("IdmPrmsl"), w = O("IdmIceEdge"), D = O("IdmIceCover"), _ = O("IdmIceThickness"), A = O("IdmTropicals"), b = O("IdmCurrents"), g = O("IdmCurrentParticle"), C = O("IdmWindBarb"), y = O("IdmWindParticle"), L = O("IdmPrecip3h"), Q = O("IdmVisibility"), M = O("IdmWaterTemp"), N = O("IdmTemp"), E = O("IdmWarZone"), j = O("IdmGmdssArea"), U = O("IdmEcaZone"), W = O("IdmAlertZone"), pe = O("IdmPort"), he = O("IdmLoadLine"), me = O("IdmTimezone"), fe = O("IdmVRA"), ue = O("IdmSpecialArea"), K = O("IdmTerminator"), ae = O("IdmLatLng"), Ae = O("IdmMeasure"), ge = O("IdmPoint");
12404
- return t.map ? (m(), u("div", Js, [
12401
+ function Js(a, e, t, r, i, s) {
12402
+ var ye, Le, Ce, xe, we, _e, B, Me, ve, Se, De, Re, ze, re, ce, H, Be, X, V, Te, P, de, Pe, Qe, He, z, O, Ge, Ue, Ye, Ie;
12403
+ const n = F("IdmGlLayer"), l = F("IdmENC"), c = F("IdmWorld12nm"), p = F("IdmWorldMarine"), h = F("IdmChinaRoute"), d = F("IdmSigWave"), f = F("IdmSigWaveHeight"), v = F("IdmSwell"), k = F("IdmPrmsl"), w = F("IdmIceEdge"), D = F("IdmIceCover"), _ = F("IdmIceThickness"), A = F("IdmTropicals"), b = F("IdmCurrents"), g = F("IdmCurrentParticle"), C = F("IdmWindBarb"), y = F("IdmWindParticle"), L = F("IdmPrecip3h"), Q = F("IdmVisibility"), M = F("IdmWaterTemp"), N = F("IdmTemp"), E = F("IdmWarZone"), j = F("IdmGmdssArea"), U = F("IdmEcaZone"), G = F("IdmAlertZone"), pe = F("IdmPort"), he = F("IdmLoadLine"), me = F("IdmTimezone"), fe = F("IdmVRA"), ue = F("IdmSpecialArea"), K = F("IdmTerminator"), ae = F("IdmLatLng"), Ae = F("IdmMeasure"), ge = F("IdmPoint");
12404
+ return t.map ? (m(), u("div", qs, [
12405
12405
  R(n, Y({
12406
12406
  ref: "layer",
12407
12407
  map: t.map,
@@ -12479,7 +12479,7 @@ function qs(a, e, t, r, i, s) {
12479
12479
  }, a.$attrs), null, 16, ["map", "swell", "before-layer", "active-weather-layers"]),
12480
12480
  R(k, Y({
12481
12481
  map: t.map,
12482
- prmsl: (Pe = i.weatherLayers) == null ? void 0 : Pe.prmsl,
12482
+ prmsl: (Me = i.weatherLayers) == null ? void 0 : Me.prmsl,
12483
12483
  "before-layer": t.beforeLayer,
12484
12484
  "active-weather-layers": i.activeWeatherLayers
12485
12485
  }, a.$attrs), null, 16, ["map", "prmsl", "before-layer", "active-weather-layers"]),
@@ -12491,26 +12491,26 @@ function qs(a, e, t, r, i, s) {
12491
12491
  }, a.$attrs), null, 16, ["viewport", "factor", "toggle-version", "before-layer"]),
12492
12492
  R(D, Y({
12493
12493
  viewport: i.viewport,
12494
- factor: (Me = i.weatherLayers) == null ? void 0 : Me["ice-cover"],
12494
+ factor: (Se = i.weatherLayers) == null ? void 0 : Se["ice-cover"],
12495
12495
  "toggle-version": t.toggleVersion,
12496
12496
  "before-layer": t.beforeLayer
12497
12497
  }, a.$attrs), null, 16, ["viewport", "factor", "toggle-version", "before-layer"]),
12498
12498
  R(_, Y({
12499
12499
  viewport: i.viewport,
12500
- factor: (ke = i.weatherLayers) == null ? void 0 : ke["ice-thickness"],
12500
+ factor: (De = i.weatherLayers) == null ? void 0 : De["ice-thickness"],
12501
12501
  "toggle-version": t.toggleVersion,
12502
12502
  "before-layer": t.beforeLayer
12503
12503
  }, a.$attrs), null, 16, ["viewport", "factor", "toggle-version", "before-layer"]),
12504
12504
  R(A, Y({
12505
12505
  map: t.map,
12506
12506
  date: t.ts,
12507
- tropicals: (Ne = i.weatherLayers) == null ? void 0 : Ne.tropicals,
12507
+ tropicals: (Re = i.weatherLayers) == null ? void 0 : Re.tropicals,
12508
12508
  "before-layer": t.beforeLayer
12509
12509
  }, a.$attrs), null, 16, ["map", "date", "tropicals", "before-layer"]),
12510
12510
  R(b, Y({
12511
12511
  map: t.map,
12512
12512
  "map-projection": i.mapProjection,
12513
- current: (De = i.weatherLayers) == null ? void 0 : De.current,
12513
+ current: (ze = i.weatherLayers) == null ? void 0 : ze.current,
12514
12514
  "before-layer": t.beforeLayer,
12515
12515
  "show-current-isoband": i.showCurrentIsoband,
12516
12516
  "show-current-particle": i.showCurrentParticle,
@@ -12564,7 +12564,7 @@ function qs(a, e, t, r, i, s) {
12564
12564
  }, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
12565
12565
  R(M, Y({
12566
12566
  viewport: i.viewport,
12567
- factor: (Se = i.weatherLayers) == null ? void 0 : Se["water-temp"],
12567
+ factor: (Te = i.weatherLayers) == null ? void 0 : Te["water-temp"],
12568
12568
  "before-layer": t.beforeLayer,
12569
12569
  "toggle-version": t.toggleVersion
12570
12570
  }, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
@@ -12581,17 +12581,17 @@ function qs(a, e, t, r, i, s) {
12581
12581
  }, a.$attrs), null, 16, ["map", "zone", "before-layer"]),
12582
12582
  R(j, Y({
12583
12583
  map: t.map,
12584
- area: (ze = i.otherLayers) == null ? void 0 : ze["gmdss-areas"],
12584
+ area: (Pe = i.otherLayers) == null ? void 0 : Pe["gmdss-areas"],
12585
12585
  "before-layer": t.beforeLayer
12586
12586
  }, a.$attrs), null, 16, ["map", "area", "before-layer"]),
12587
12587
  R(U, Y({
12588
12588
  map: t.map,
12589
- zone: (Te = i.otherLayers) == null ? void 0 : Te["eca-zones"],
12589
+ zone: (Qe = i.otherLayers) == null ? void 0 : Qe["eca-zones"],
12590
12590
  "before-layer": t.beforeLayer
12591
12591
  }, a.$attrs), null, 16, ["map", "zone", "before-layer"]),
12592
- R(W, Y({
12592
+ R(G, Y({
12593
12593
  map: t.map,
12594
- zone: (Qe = i.otherLayers) == null ? void 0 : Qe["alert-zones"],
12594
+ zone: (He = i.otherLayers) == null ? void 0 : He["alert-zones"],
12595
12595
  "before-layer": t.beforeLayer
12596
12596
  }, a.$attrs), null, 16, ["map", "zone", "before-layer"]),
12597
12597
  R(pe, Y({
@@ -12602,7 +12602,7 @@ function qs(a, e, t, r, i, s) {
12602
12602
  }, a.$attrs), null, 16, ["map", "port", "before-layer", "forecast-model"]),
12603
12603
  R(he, Y({
12604
12604
  map: t.map,
12605
- line: (F = i.otherLayers) == null ? void 0 : F["load-lines"],
12605
+ line: (O = i.otherLayers) == null ? void 0 : O["load-lines"],
12606
12606
  "before-layer": t.beforeLayer
12607
12607
  }, a.$attrs), null, 16, ["map", "line", "before-layer"]),
12608
12608
  R(me, Y({
@@ -12643,21 +12643,175 @@ function qs(a, e, t, r, i, s) {
12643
12643
  gateway: i.gateway,
12644
12644
  "forecast-model": t.forecastModel
12645
12645
  }, a.$attrs), null, 16, ["map", "show", "meteo", "ts", "token", "gateway", "forecast-model"])
12646
- ], 512)) : q("", !0);
12646
+ ], 512)) : J("", !0);
12647
+ }
12648
+ const Vs = /* @__PURE__ */ W(Xs, [["render", Js]]);
12649
+ const Zs = {
12650
+ name: "MapInitial",
12651
+ components: {},
12652
+ props: {
12653
+ token: {
12654
+ type: String,
12655
+ default: ""
12656
+ }
12657
+ },
12658
+ emits: ["map"],
12659
+ data() {
12660
+ return {
12661
+ map: void 0,
12662
+ beforeLayer: "",
12663
+ //'water-outline', //country-boundaries
12664
+ helper: void 0
12665
+ };
12666
+ },
12667
+ computed: {},
12668
+ watch: {},
12669
+ mounted() {
12670
+ this.initOnlineMap();
12671
+ },
12672
+ methods: {
12673
+ async initOnlineMap() {
12674
+ this.helper = new tt(this.token), ke.accessToken = "pk.eyJ1IjoibmVhdGNoZW5oZW5nIiwiYSI6ImNsdXM3cnBmODBsemgycW1vaXc1bjV6bXMifQ.w6fqHGRbhNhLvm0LnX4ZVw";
12675
+ const a = new ke.Map({
12676
+ container: "map",
12677
+ // style: 'mapbox://styles/neatchenheng/cmd894dwn036m01rf7anc0k0d',
12678
+ style: {
12679
+ version: 8,
12680
+ name: "origin",
12681
+ lights: [],
12682
+ fog: {
12683
+ color: "#ffffff",
12684
+ range: [0.5, 10],
12685
+ "high-color": "#245cdf",
12686
+ "space-color": ["interpolate", ["linear"], ["zoom"], 4, "#010b19", 7, "#367ab9"],
12687
+ "horizon-blend": ["interpolate", ["linear"], ["zoom"], 4, 0.2, 7, 0.1],
12688
+ "star-intensity": ["interpolate", ["linear"], ["zoom"], 5, 0.35, 6, 0]
12689
+ // 'vertical-range': [0, 0],
12690
+ },
12691
+ bearing: 0,
12692
+ pitch: 1,
12693
+ sprite: "https://fontnik.idmwx.com/sprite/sprite",
12694
+ // glyphs: 'https://fontnik.idmwx.com/{fontstack}/{range}.pbf',
12695
+ glyphs: "mapbox://fonts/mapbox/{fontstack}/{range}.pbf",
12696
+ projection: {
12697
+ name: "equirectangular"
12698
+ },
12699
+ sources: {
12700
+ composite: this.helper.mapboxCustomer.source,
12701
+ i4: this.helper.i4.source,
12702
+ hi: this.helper.hi.source
12703
+ },
12704
+ layers: [
12705
+ this.helper.mapboxCustomer.layers.water,
12706
+ this.helper.i4.layer,
12707
+ this.helper.hi.layer,
12708
+ this.helper.mapboxCustomer.layers.countryBoundary,
12709
+ this.helper.mapboxCustomer.layers.waterOutline,
12710
+ this.helper.mapboxCustomer.layers.countryAdmin0Boundary,
12711
+ this.helper.mapboxCustomer.layers.countryAdmin0BoundaryDisputed,
12712
+ this.helper.mapboxCustomer.layers.countryLabel,
12713
+ this.helper.mapboxCustomer.layers.continentLabel,
12714
+ this.helper.mapboxCustomer.layers.stateLabel,
12715
+ this.helper.mapboxCustomer.layers.world12nm,
12716
+ this.helper.mapboxCustomer.layers.worldMarineLine,
12717
+ this.helper.mapboxCustomer.layers.worldMarineLabel,
12718
+ this.helper.mapboxCustomer.layers.chinaRouteLine,
12719
+ this.helper.mapboxCustomer.layers.chinaRouteFill,
12720
+ this.helper.mapboxCustomer.layers.chinaRouteLabel
12721
+ ]
12722
+ },
12723
+ minZoom: 0,
12724
+ maxZoom: 12,
12725
+ zoom: 2,
12726
+ center: [120, 30],
12727
+ dragRotate: !1,
12728
+ pitchWithRotate: !1,
12729
+ projection: "mercator",
12730
+ preserveDrawingBuffer: !0,
12731
+ fadeDuration: 300
12732
+ });
12733
+ a.dragRotate.disable(), a.on("load", () => {
12734
+ var e;
12735
+ this.map = a, this.$emit("map", this.map), console.log((e = this.map) == null ? void 0 : e.style._layers);
12736
+ });
12737
+ },
12738
+ async initOfflineMap() {
12739
+ this.helper = new tt(this.token), ke.accessToken = "pk.eyJ1IjoibmVhdGNoZW5oZW5nIiwiYSI6ImNsdXM3cnBmODBsemgycW1vaXc1bjV6bXMifQ.w6fqHGRbhNhLvm0LnX4ZVw";
12740
+ const a = new ke.Map({
12741
+ container: "map",
12742
+ style: {
12743
+ version: 8,
12744
+ name: "idm-mapbox-gl4",
12745
+ lights: [],
12746
+ fog: {
12747
+ color: "#ffffff",
12748
+ range: [0.5, 10],
12749
+ "high-color": "#245cdf",
12750
+ "space-color": ["interpolate", ["linear"], ["zoom"], 4, "#010b19", 7, "#367ab9"],
12751
+ "horizon-blend": ["interpolate", ["linear"], ["zoom"], 4, 0.2, 7, 0.1],
12752
+ "star-intensity": ["interpolate", ["linear"], ["zoom"], 5, 0.35, 6, 0]
12753
+ // 'vertical-range': [0, 0],
12754
+ },
12755
+ bearing: 0,
12756
+ pitch: 1,
12757
+ sprite: "https://fontnik.idmwx.com/sprite/sprite",
12758
+ glyphs: "https://fontnik.idmwx.com/{fontstack}/{range}.pbf",
12759
+ projection: {
12760
+ name: "equirectangular"
12761
+ },
12762
+ sources: {
12763
+ // td: this.helper.td.source,
12764
+ i4: this.helper.i4.source,
12765
+ hi: this.helper.hi.source,
12766
+ grayland: this.helper.windy.grayland.source,
12767
+ darkmap: this.helper.windy.darkmap.source,
12768
+ composite: this.helper.mapboxCustomer.source
12769
+ },
12770
+ layers: [
12771
+ // this.helper.td.layer,
12772
+ this.helper.i4.layer,
12773
+ this.helper.hi.layer,
12774
+ this.helper.windy.grayland.layer,
12775
+ this.helper.windy.darkmap.layer,
12776
+ this.helper.mapboxCustomer.layers.countryLabel
12777
+ ]
12778
+ },
12779
+ minZoom: 2,
12780
+ maxZoom: 12,
12781
+ zoom: 2,
12782
+ center: [120, 30],
12783
+ dragRotate: !1,
12784
+ pitchWithRotate: !1,
12785
+ projection: "mercator",
12786
+ preserveDrawingBuffer: !0,
12787
+ fadeDuration: 300
12788
+ });
12789
+ a.on("load", () => {
12790
+ this.map = a;
12791
+ });
12792
+ }
12793
+ }
12794
+ }, $s = {
12795
+ id: "map",
12796
+ class: "mapbox-initial-gl4"
12797
+ };
12798
+ function eo(a, e, t, r, i, s) {
12799
+ return m(), u("div", $s);
12647
12800
  }
12648
- const Vs = /* @__PURE__ */ G(Xs, [["render", qs]]), lo = {
12801
+ const to = /* @__PURE__ */ W(Zs, [["render", eo]]), mo = {
12649
12802
  install(a) {
12650
- a.component("MapboxGL", Vs), a.component("TropicalGL", dt), a.component("LatLngGL", pt);
12803
+ a.component("MapInitial", to), a.component("MapboxGL", Vs), a.component("TropicalGL", pt), a.component("LatLngGL", mt);
12651
12804
  }
12652
12805
  };
12653
12806
  export {
12654
- pt as LatLngGL,
12807
+ mt as LatLngGL,
12808
+ to as MapInitial,
12655
12809
  Vs as MapboxGL,
12656
- lo as MapboxGLPlugin,
12657
- ha as MapboxHelper,
12810
+ mo as MapboxGLPlugin,
12811
+ tt as MapboxHelper,
12658
12812
  be as ParticleSchema,
12659
- dt as TropicalGL,
12660
- tt as Viewport,
12661
- Oe as WebGL,
12813
+ pt as TropicalGL,
12814
+ at as Viewport,
12815
+ je as WebGL,
12662
12816
  ie as WebGLSchema
12663
12817
  };