@idmwx/idmui-gl3 5.0.8 → 5.1.0

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,15 +1,15 @@
1
1
  var J0 = Object.defineProperty;
2
2
  var Y0 = (z, M, b) => M in z ? J0(z, M, { enumerable: !0, configurable: !0, writable: !0, value: b }) : z[M] = b;
3
- var K = (z, M, b) => (Y0(z, typeof M != "symbol" ? M + "" : M, b), b);
3
+ var J = (z, M, b) => (Y0(z, typeof M != "symbol" ? M + "" : M, b), b);
4
4
  import { LayerHelper as D0, CompanyHelper as S0 } from "@idm-plugin/tag";
5
- import { resolveComponent as I, openBlock as l, createElementBlock as f, createElementVNode as c, normalizeStyle as o0, createVNode as C, withCtx as A0, normalizeClass as J, Fragment as j, renderList as G, toDisplayString as w, createCommentVNode as _, createTextVNode as p0, withDirectives as y0, createStaticVNode as V0, vShow as X0, defineComponent as Z0, withModifiers as x0, mergeProps as Q } from "vue";
6
- import * as T from "@turf/turf";
5
+ import { resolveComponent as x, openBlock as s, createElementBlock as W, createElementVNode as c, normalizeStyle as O0, createVNode as w, withCtx as c0, normalizeClass as U, Fragment as H, renderList as j, toDisplayString as T, createCommentVNode as F, createTextVNode as $, withDirectives as y0, createStaticVNode as V0, vShow as X0, defineComponent as Z0, withModifiers as E0, mergeProps as Q } from "vue";
6
+ import * as v from "@turf/turf";
7
7
  import $0 from "@mapbox/sphericalmercator";
8
8
  import Y from "moment";
9
9
  import w0 from "mapbox-gl";
10
- import { TropicalHelper as j0, LngLatHelper as O0, LaneHelper as N0 } from "@idm-plugin/geo";
10
+ import { TropicalHelper as j0, LngLatHelper as M0, LaneHelper as N0 } from "@idm-plugin/geo";
11
11
  import { TidesAssist as I0, Meteo2Assist as v0 } from "@idm-plugin/meteo";
12
- import g0 from "axios";
12
+ import R0 from "axios";
13
13
  const k = (z, M) => {
14
14
  const b = z.__vccOpts || z;
15
15
  for (const [O, p] of M)
@@ -232,22 +232,22 @@ const k = (z, M) => {
232
232
  class: "iconfont"
233
233
  }, v1 = { class: "source-layers card-bg" }, T1 = { class: "layers-body" };
234
234
  function E1(z, M, b, O, p, o) {
235
- const A = I("ElTooltip"), t = I("ElRadio"), q = I("ElRadioGroup"), r = I("ElScrollbar");
236
- return l(), f("div", b1, [
235
+ const A = x("ElTooltip"), t = x("ElRadio"), q = x("ElRadioGroup"), r = x("ElScrollbar");
236
+ return s(), W("div", b1, [
237
237
  c("div", {
238
238
  class: "menu-bar-box",
239
- style: o0({ top: b.top + 10 + "px", right: p.right + "px" })
239
+ style: O0({ top: b.top + 10 + "px", right: p.right + "px" })
240
240
  }, [
241
241
  c("div", z1, [
242
- C(A, {
242
+ w(A, {
243
243
  placement: "left",
244
244
  effect: "light",
245
245
  content: "Menu",
246
246
  "show-after": 1e3
247
247
  }, {
248
- default: A0(() => [
248
+ default: c0(() => [
249
249
  c("div", {
250
- class: J(b.layerToggle ? "menu-icon active" : "menu-icon"),
250
+ class: U(b.layerToggle ? "menu-icon active" : "menu-icon"),
251
251
  onClick: M[0] || (M[0] = (...a) => o.handleMenuToggle && o.handleMenuToggle(...a))
252
252
  }, M[17] || (M[17] = [
253
253
  c("span", { class: "iconfont" }, "", -1)
@@ -259,18 +259,18 @@ function E1(z, M, b, O, p, o) {
259
259
  ], 4),
260
260
  c("div", {
261
261
  class: "menu-bar-box",
262
- style: o0({ top: b.top + 160 + "px", right: p.right + "px" })
262
+ style: O0({ top: b.top + 160 + "px", right: p.right + "px" })
263
263
  }, [
264
264
  c("div", p1, [
265
- C(A, {
265
+ w(A, {
266
266
  placement: "left",
267
267
  effect: "light",
268
268
  content: "Measure",
269
269
  "show-after": 1e3
270
270
  }, {
271
- default: A0(() => [
271
+ default: c0(() => [
272
272
  c("div", {
273
- class: J(p.showMeasure ? "menu-icon active" : "menu-icon"),
273
+ class: U(p.showMeasure ? "menu-icon active" : "menu-icon"),
274
274
  onClick: M[1] || (M[1] = (...a) => o.handleMeasureToggle && o.handleMeasureToggle(...a))
275
275
  }, M[18] || (M[18] = [
276
276
  c("span", { class: "iconfont" }, "", -1)
@@ -278,15 +278,15 @@ function E1(z, M, b, O, p, o) {
278
278
  ]),
279
279
  _: 1
280
280
  }),
281
- C(A, {
281
+ w(A, {
282
282
  placement: "left",
283
283
  effect: "light",
284
284
  content: "Point Meteo",
285
285
  "show-after": 1e3
286
286
  }, {
287
- default: A0(() => [
287
+ default: c0(() => [
288
288
  c("div", {
289
- class: J(p.showPoint ? "menu-icon active" : "menu-icon"),
289
+ class: U(p.showPoint ? "menu-icon active" : "menu-icon"),
290
290
  onClick: M[2] || (M[2] = (...a) => o.handlePointToggle && o.handlePointToggle(...a))
291
291
  }, M[19] || (M[19] = [
292
292
  c("span", { class: "iconfont" }, "", -1)
@@ -294,15 +294,15 @@ function E1(z, M, b, O, p, o) {
294
294
  ]),
295
295
  _: 1
296
296
  }),
297
- C(A, {
297
+ w(A, {
298
298
  placement: "left",
299
299
  effect: "light",
300
300
  content: "Grid",
301
301
  "show-after": 1e3
302
302
  }, {
303
- default: A0(() => [
303
+ default: c0(() => [
304
304
  c("div", {
305
- class: J(p.showCoord ? "menu-icon active" : "menu-icon"),
305
+ class: U(p.showCoord ? "menu-icon active" : "menu-icon"),
306
306
  onClick: M[3] || (M[3] = (...a) => o.handleCoordToggle && o.handleCoordToggle(...a))
307
307
  }, M[20] || (M[20] = [
308
308
  c("span", { class: "iconfont" }, "", -1)
@@ -310,15 +310,15 @@ function E1(z, M, b, O, p, o) {
310
310
  ]),
311
311
  _: 1
312
312
  }),
313
- C(A, {
313
+ w(A, {
314
314
  placement: "left",
315
315
  effect: "light",
316
316
  content: "3D",
317
317
  "show-after": 1e3
318
318
  }, {
319
- default: A0(() => [
319
+ default: c0(() => [
320
320
  c("div", {
321
- class: J(p.show3d ? "menu-icon active" : "menu-icon"),
321
+ class: U(p.show3d ? "menu-icon active" : "menu-icon"),
322
322
  onClick: M[4] || (M[4] = (...a) => o.handle3DToggle && o.handle3DToggle(...a))
323
323
  }, M[21] || (M[21] = [
324
324
  c("span", { class: "iconfont" }, "", -1)
@@ -328,10 +328,10 @@ function E1(z, M, b, O, p, o) {
328
328
  })
329
329
  ])
330
330
  ], 4),
331
- o.hasCollectedLayers ? (l(), f("div", {
331
+ o.hasCollectedLayers ? (s(), W("div", {
332
332
  key: 0,
333
333
  class: "active-layers",
334
- style: o0({ right: p.right + "px", bottom: "100px" })
334
+ style: O0({ right: p.right + "px", bottom: "100px" })
335
335
  }, [
336
336
  c("div", O1, [
337
337
  M[22] || (M[22] = c("div", { style: { margin: "2px 5px" } }, "Weather Layers", -1)),
@@ -340,12 +340,12 @@ function E1(z, M, b, O, p, o) {
340
340
  style: { "font-size": "28px", "margin-right": "0" },
341
341
  onClick: M[5] || (M[5] = (...a) => o.toggleAutoActive && o.toggleAutoActive(...a))
342
342
  }, [
343
- p.autoActive ? (l(), f("i", o1, "")) : (l(), f("i", c1, ""))
343
+ p.autoActive ? (s(), W("i", o1, "")) : (s(), W("i", c1, ""))
344
344
  ])
345
345
  ]),
346
- (l(!0), f(j, null, G(p.layers.weather.filter((a) => a.collected), (a) => (l(), f("div", {
346
+ (s(!0), W(H, null, j(p.layers.weather.filter((a) => a.collected), (a) => (s(), W("div", {
347
347
  key: a.key,
348
- class: J(o.computeLayerClass(a, p.activeWeatherLayers))
348
+ class: U(o.computeLayerClass(a, p.activeWeatherLayers))
349
349
  }, [
350
350
  c("div", {
351
351
  class: "checkbox",
@@ -354,35 +354,35 @@ function E1(z, M, b, O, p, o) {
354
354
  c("span", {
355
355
  class: "name",
356
356
  onClick: (n) => o.handleWeatherLayerPick(a)
357
- }, w(a.name), 9, e1),
358
- a.key === "wind" && p.activeWeatherLayers.some((n) => n.key === a.key) ? (l(), f("div", t1, [
357
+ }, T(a.name), 9, e1),
358
+ a.key === "wind" && p.activeWeatherLayers.some((n) => n.key === a.key) ? (s(), W("div", t1, [
359
359
  c("i", {
360
- class: J(["iconfont sub-layer-icon", b.showWindParticle ? "active" : ""]),
360
+ class: U(["iconfont sub-layer-icon", b.showWindParticle ? "active" : ""]),
361
361
  onClick: M[6] || (M[6] = (n) => o.handleToggleWindParticle())
362
362
  }, "", 2),
363
363
  c("i", {
364
- class: J(["iconfont sub-layer-icon", b.showWindFeather ? "active" : ""]),
364
+ class: U(["iconfont sub-layer-icon", b.showWindFeather ? "active" : ""]),
365
365
  onClick: M[7] || (M[7] = (n) => o.handleToggleWindFeather())
366
366
  }, "", 2)
367
- ])) : _("", !0),
368
- a.key === "current" && p.activeWeatherLayers.some((n) => n.key === a.key) ? (l(), f("div", a1, [
367
+ ])) : F("", !0),
368
+ a.key === "current" && p.activeWeatherLayers.some((n) => n.key === a.key) ? (s(), W("div", a1, [
369
369
  c("i", {
370
- class: J(["iconfont sub-layer-icon", b.showCurrentParticle ? "active" : ""]),
370
+ class: U(["iconfont sub-layer-icon", b.showCurrentParticle ? "active" : ""]),
371
371
  onClick: M[8] || (M[8] = (n) => o.handleToggleCurrentParticle())
372
372
  }, "", 2),
373
373
  c("i", {
374
- class: J(["iconfont sub-layer-icon", b.showCurrentIsoband ? "active" : ""]),
374
+ class: U(["iconfont sub-layer-icon", b.showCurrentIsoband ? "active" : ""]),
375
375
  onClick: M[9] || (M[9] = (n) => o.handleToggleCurrentIsoband())
376
376
  }, "", 2)
377
- ])) : _("", !0)
377
+ ])) : F("", !0)
378
378
  ], 2))), 128))
379
- ], 4)) : _("", !0),
379
+ ], 4)) : F("", !0),
380
380
  c("div", {
381
381
  class: "available-layers flex-center",
382
- style: o0({ top: b.top + "px", right: b.layerToggle ? "0px" : "-240px" })
382
+ style: O0({ top: b.top + "px", right: b.layerToggle ? "0px" : "-240px" })
383
383
  }, [
384
384
  c("div", {
385
- class: J(["list-box", b.layerToggle ? "right-bar" : ""])
385
+ class: U(["list-box", b.layerToggle ? "right-bar" : ""])
386
386
  }, [
387
387
  c("div", q1, [
388
388
  M[23] || (M[23] = c("div", null, "Layers", -1)),
@@ -391,8 +391,8 @@ function E1(z, M, b, O, p, o) {
391
391
  onClick: M[10] || (M[10] = (...a) => o.handleMenuToggle && o.handleMenuToggle(...a))
392
392
  }, "")
393
393
  ]),
394
- C(r, { style: { flex: "1" } }, {
395
- default: A0(() => [
394
+ w(r, { style: { flex: "1" } }, {
395
+ default: c0(() => [
396
396
  c("div", i1, [
397
397
  c("div", r1, [
398
398
  M[24] || (M[24] = c("div", null, "Weather Layers", -1)),
@@ -401,16 +401,16 @@ function E1(z, M, b, O, p, o) {
401
401
  style: { "margin-right": "0" },
402
402
  onClick: M[11] || (M[11] = (...a) => o.toggleAutoActive && o.toggleAutoActive(...a))
403
403
  }, [
404
- p.autoActive ? (l(), f("i", n1, "")) : (l(), f("i", d1, ""))
404
+ p.autoActive ? (s(), W("i", n1, "")) : (s(), W("i", d1, ""))
405
405
  ])
406
406
  ]),
407
407
  c("div", s1, [
408
- (l(!0), f(j, null, G(p.layers.weather, (a) => (l(), f(j, {
408
+ (s(!0), W(H, null, j(p.layers.weather, (a) => (s(), W(H, {
409
409
  key: a.key
410
410
  }, [
411
- a.hide ? _("", !0) : (l(), f("div", {
411
+ a.hide ? F("", !0) : (s(), W("div", {
412
412
  key: 0,
413
- class: J(o.computeLayerClass(a, p.activeWeatherLayers))
413
+ class: U(o.computeLayerClass(a, p.activeWeatherLayers))
414
414
  }, [
415
415
  c("div", W1, [
416
416
  c("div", {
@@ -420,32 +420,32 @@ function E1(z, M, b, O, p, o) {
420
420
  c("span", {
421
421
  class: "name",
422
422
  onClick: (n) => o.handleWeatherLayerPick(a)
423
- }, w(a.name), 9, f1),
424
- a.key === "wind" && p.activeWeatherLayers.some((n) => n.key === a.key) ? (l(), f("div", u1, [
423
+ }, T(a.name), 9, f1),
424
+ a.key === "wind" && p.activeWeatherLayers.some((n) => n.key === a.key) ? (s(), W("div", u1, [
425
425
  c("i", {
426
- class: J(["iconfont sub-layer-icon", b.showWindParticle ? "active" : ""]),
426
+ class: U(["iconfont sub-layer-icon", b.showWindParticle ? "active" : ""]),
427
427
  onClick: M[12] || (M[12] = (n) => o.handleToggleWindParticle())
428
428
  }, "", 2),
429
429
  c("i", {
430
- class: J(["iconfont sub-layer-icon", b.showWindFeather ? "active" : ""]),
430
+ class: U(["iconfont sub-layer-icon", b.showWindFeather ? "active" : ""]),
431
431
  onClick: M[13] || (M[13] = (n) => o.handleToggleWindFeather())
432
432
  }, "", 2)
433
- ])) : _("", !0),
434
- a.key === "current" && p.activeWeatherLayers.some((n) => n.key === a.key) ? (l(), f("div", L1, [
433
+ ])) : F("", !0),
434
+ a.key === "current" && p.activeWeatherLayers.some((n) => n.key === a.key) ? (s(), W("div", L1, [
435
435
  c("i", {
436
- class: J(["iconfont sub-layer-icon", b.showCurrentParticle ? "active" : ""]),
436
+ class: U(["iconfont sub-layer-icon", b.showCurrentParticle ? "active" : ""]),
437
437
  onClick: M[14] || (M[14] = (n) => o.handleToggleCurrentParticle())
438
438
  }, "", 2),
439
439
  c("i", {
440
- class: J(["iconfont sub-layer-icon", b.showCurrentIsoband ? "active" : ""]),
440
+ class: U(["iconfont sub-layer-icon", b.showCurrentIsoband ? "active" : ""]),
441
441
  onClick: M[15] || (M[15] = (n) => o.handleToggleCurrentIsoband())
442
442
  }, "", 2)
443
- ])) : _("", !0)
443
+ ])) : F("", !0)
444
444
  ]),
445
445
  c("div", {
446
446
  onClick: (n) => o.handleWeatherLayerCollect(a)
447
447
  }, [
448
- a.collected ? (l(), f("i", h1, "")) : (l(), f("i", m1, ""))
448
+ a.collected ? (s(), W("i", h1, "")) : (s(), W("i", m1, ""))
449
449
  ], 8, R1)
450
450
  ], 2))
451
451
  ], 64))), 128)),
@@ -461,18 +461,18 @@ function E1(z, M, b, O, p, o) {
461
461
  c("div", B1, [
462
462
  M[26] || (M[26] = c("div", { class: "layers-title" }, "Other Layers", -1)),
463
463
  c("div", g1, [
464
- (l(!0), f(j, null, G(p.layers.other, (a) => {
464
+ (s(!0), W(H, null, j(p.layers.other, (a) => {
465
465
  var n;
466
- return l(), f("div", {
466
+ return s(), W("div", {
467
467
  key: a.key,
468
- class: J(["layer flex-between", o.computeLayerClass(a, p.activeOtherLayers)]),
469
- onClick: (s) => o.handleOtherLayerPick(a)
468
+ class: U(["layer flex-between", o.computeLayerClass(a, p.activeOtherLayers)]),
469
+ onClick: (l) => o.handleOtherLayerPick(a)
470
470
  }, [
471
471
  c("div", y1, [
472
472
  c("div", X1, [
473
- (n = o.computeLayerClass(a, p.activeOtherLayers)) != null && n.includes("active") ? (l(), f("i", w1, "")) : (l(), f("i", C1, ""))
473
+ (n = o.computeLayerClass(a, p.activeOtherLayers)) != null && n.includes("active") ? (s(), W("i", w1, "")) : (s(), W("i", C1, ""))
474
474
  ]),
475
- c("span", null, w(a.name), 1)
475
+ c("span", null, T(a.name), 1)
476
476
  ])
477
477
  ], 10, N1);
478
478
  }), 128))
@@ -481,30 +481,30 @@ function E1(z, M, b, O, p, o) {
481
481
  c("div", v1, [
482
482
  M[30] || (M[30] = c("span", { class: "layers-title" }, "Forecast Model", -1)),
483
483
  c("div", T1, [
484
- C(q, {
484
+ w(q, {
485
485
  modelValue: p.source,
486
486
  "onUpdate:modelValue": M[16] || (M[16] = (a) => p.source = a),
487
487
  class: "layer-radio flex-col-start-start",
488
488
  style: { "align-items": "flex-start" }
489
489
  }, {
490
- default: A0(() => [
491
- C(t, { value: "BestMatch" }, {
492
- default: A0(() => M[27] || (M[27] = [
493
- p0("Best Match"),
490
+ default: c0(() => [
491
+ w(t, { value: "BestMatch" }, {
492
+ default: c0(() => M[27] || (M[27] = [
493
+ $("Best Match"),
494
494
  c("div", { class: "radio-tip" }, "Provides the best forecast", -1)
495
495
  ])),
496
496
  _: 1
497
497
  }),
498
- C(t, { value: "GFS" }, {
499
- default: A0(() => M[28] || (M[28] = [
500
- p0("GFS 25km 16days"),
498
+ w(t, { value: "GFS" }, {
499
+ default: c0(() => M[28] || (M[28] = [
500
+ $("GFS 25km 16days"),
501
501
  c("div", { class: "radio-tip" }, "Update: 2025-03-31 18Z", -1)
502
502
  ])),
503
503
  _: 1
504
504
  }),
505
- C(t, { value: "CMEMS" }, {
506
- default: A0(() => M[29] || (M[29] = [
507
- p0("ECMWF 25km 10 days"),
505
+ w(t, { value: "CMEMS" }, {
506
+ default: c0(() => M[29] || (M[29] = [
507
+ $("ECMWF 25km 10 days"),
508
508
  c("div", { class: "radio-tip" }, "Update: 2025-03-31 18Z", -1)
509
509
  ])),
510
510
  _: 1
@@ -557,7 +557,7 @@ const I1 = {
557
557
  return {
558
558
  source: "wind-barb-source",
559
559
  barbs: [0, 2, 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60, 65, 70, 75, 80, 85, 90, 95, 100, 105],
560
- empty: T.featureCollection([]),
560
+ empty: v.featureCollection([]),
561
561
  right: 10,
562
562
  bottom: 125,
563
563
  windBarbLoaded: !1
@@ -672,20 +672,20 @@ const I1 = {
672
672
  }, D1 = { key: 0 };
673
673
  function S1(z, M, b, O, p, o) {
674
674
  var A;
675
- return (A = b.wind) != null && A.active ? (l(), f("div", D1)) : _("", !0);
675
+ return (A = b.wind) != null && A.active ? (s(), W("div", D1)) : F("", !0);
676
676
  }
677
677
  const P1 = /* @__PURE__ */ k(I1, [["render", S1]]);
678
678
  class P0 {
679
679
  constructor(M) {
680
- K(this, "map");
681
- K(this, "mercator");
682
- K(this, "rampColorLayer");
683
- K(this, "rampColorSource");
684
- K(this, "particleLayer");
685
- K(this, "particleSource");
686
- K(this, "rampColorCanvas");
687
- K(this, "particleCanvas");
688
- K(this, "ratio");
680
+ J(this, "map");
681
+ J(this, "mercator");
682
+ J(this, "rampColorLayer");
683
+ J(this, "rampColorSource");
684
+ J(this, "particleLayer");
685
+ J(this, "particleSource");
686
+ J(this, "rampColorCanvas");
687
+ J(this, "particleCanvas");
688
+ J(this, "ratio");
689
689
  this.map = M, this.mercator = new $0(), 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;
690
690
  }
691
691
  /**
@@ -720,8 +720,8 @@ class P0 {
720
720
  * @param [lb.x, lb.y, rt.x, rt.y]
721
721
  */
722
722
  getBoundPixel() {
723
- const M = this.map.getBounds(), b = this.map.getZoom() + 1, O = [M._ne.lng, M._ne.lat], p = [M._sw.lng, M._sw.lat], [o, A] = this.convertNLng(O[0]), [t, q] = this.convertNLng(p[0]), [r, a] = this.mercator.px([o, O[1]], b), [n, s] = this.mercator.px([t, p[1]], b), d = Math.round(this.mercator.size * Math.pow(2, b) * (A + q));
724
- return [n, s, r + d, a];
723
+ const M = this.map.getBounds(), b = this.map.getZoom() + 1, O = [M._ne.lng, M._ne.lat], p = [M._sw.lng, M._sw.lat], [o, A] = this.convertNLng(O[0]), [t, q] = this.convertNLng(p[0]), [r, a] = this.mercator.px([o, O[1]], b), [n, l] = this.mercator.px([t, p[1]], b), d = Math.round(this.mercator.size * Math.pow(2, b) * (A + q));
724
+ return [n, l, r + d, a];
725
725
  }
726
726
  /**
727
727
  * [视窗边界像素宽度]
@@ -892,14 +892,14 @@ class C0 {
892
892
  if (b && O) {
893
893
  M.resize(), b == null || b.viewport(0, 0, (q = b == null ? void 0 : b.canvas) == null ? void 0 : q.width, (r = b == null ? void 0 : b.canvas) == null ? void 0 : r.height), b.clearColor(0, 0, 0, 0), b.clear(b.COLOR_BUFFER_BIT | b.DEPTH_BUFFER_BIT);
894
894
  try {
895
- const a = b.getUniformLocation(O, "u_resolution"), n = b.getUniformLocation(O, "u_image"), s = b.getUniformLocation(O, "u_color");
896
- if (b.useProgram(O), b.uniform2f(a, b.canvas.width * M.ratio, b.canvas.height * M.ratio), b.activeTexture(b.TEXTURE0), b.bindTexture(b.TEXTURE_2D, p), b.uniform1i(n, 0), b.activeTexture(b.TEXTURE1), b.bindTexture(b.TEXTURE_2D, o), b.uniform1i(s, 1), t != null && t.uvRange && (t != null && t.sRange)) {
897
- const W = b.getUniformLocation(O, "u_range_u_v"), m = b.getUniformLocation(O, "u_range_s");
898
- b.uniform2f(W, t.uvRange[0], t.uvRange[1]), b.uniform2f(m, t.sRange[0], t.sRange[1]);
895
+ const a = b.getUniformLocation(O, "u_resolution"), n = b.getUniformLocation(O, "u_image"), l = b.getUniformLocation(O, "u_color");
896
+ if (b.useProgram(O), b.uniform2f(a, b.canvas.width * M.ratio, b.canvas.height * M.ratio), b.activeTexture(b.TEXTURE0), b.bindTexture(b.TEXTURE_2D, p), b.uniform1i(n, 0), b.activeTexture(b.TEXTURE1), b.bindTexture(b.TEXTURE_2D, o), b.uniform1i(l, 1), t != null && t.uvRange && (t != null && t.sRange)) {
897
+ const f = b.getUniformLocation(O, "u_range_u_v"), m = b.getUniformLocation(O, "u_range_s");
898
+ b.uniform2f(f, t.uvRange[0], t.uvRange[1]), b.uniform2f(m, t.sRange[0], t.sRange[1]);
899
899
  }
900
900
  const d = M.getBoundPixel(), B = M.map.getZoom() + 1, R = M.getWorldCopy(d, B);
901
- for (const W of R) {
902
- const m = (W[0] - d[0]) * M.ratio, h = (W[1] - d[3]) * M.ratio, X = W[2] * M.ratio, [E, y, H, U] = [m, X + m, h, X + h], V = new Float32Array([E, H, y, H, E, U, E, U, y, H, y, U]);
901
+ for (const f of R) {
902
+ const m = (f[0] - d[0]) * M.ratio, h = (f[1] - d[3]) * M.ratio, X = f[2] * M.ratio, [E, y, _, K] = [m, X + m, h, X + h], V = new Float32Array([E, _, y, _, E, K, E, K, y, _, y, K]);
903
903
  b.bindBuffer(b.ARRAY_BUFFER, A), b.bufferData(b.ARRAY_BUFFER, V, b.STATIC_DRAW), b.drawArrays(b.TRIANGLES, 0, 6);
904
904
  }
905
905
  } catch (a) {
@@ -948,10 +948,10 @@ class C0 {
948
948
  });
949
949
  }
950
950
  }
951
- class e0 {
951
+ class A0 {
952
952
  }
953
953
  // 顶点渲染
954
- K(e0, "vertexSchema", `
954
+ J(A0, "vertexSchema", `
955
955
  //canvas 坐标系上的坐标 (x, y)
956
956
  attribute vec2 a_position; //像素坐标
957
957
  attribute vec2 a_texCoord; //纹理坐标
@@ -966,7 +966,7 @@ K(e0, "vertexSchema", `
966
966
  gl_Position = vec4(position * vec2(1, -1), 0.0, 1.0);
967
967
  v_texCoord = a_texCoord;
968
968
  }`), // 类如风、流等u v双变量片元渲染
969
- K(e0, "uvFragmentSchema", `
969
+ J(A0, "uvFragmentSchema", `
970
970
  precision mediump float;
971
971
  uniform sampler2D u_image;
972
972
  uniform vec2 u_range_u_v;
@@ -985,7 +985,7 @@ K(e0, "uvFragmentSchema", `
985
985
 
986
986
  gl_FragColor = color;
987
987
  }`), // 类如浪、气压等单变量片元渲染
988
- K(e0, "fragmentSchema", `
988
+ J(A0, "fragmentSchema", `
989
989
  precision mediump float;
990
990
  uniform sampler2D u_image; // 灰度
991
991
  uniform sampler2D u_color; // 色值映射
@@ -996,9 +996,9 @@ K(e0, "fragmentSchema", `
996
996
  vec4 color = texture2D(u_color, vec2(rgba.r, 0));
997
997
  gl_FragColor = color;
998
998
  }`);
999
- class r0 {
999
+ class q0 {
1000
1000
  }
1001
- K(r0, "vertexSchema", `
1001
+ J(q0, "vertexSchema", `
1002
1002
  precision mediump float;
1003
1003
 
1004
1004
  attribute float a_index; // 索引
@@ -1022,7 +1022,7 @@ K(r0, "vertexSchema", `
1022
1022
  gl_PointSize = 1.0;
1023
1023
  // gl_PointSize = u_point;
1024
1024
  gl_Position = vec4(2.0 * v_particle_pos.x - 1.0, 1.0 - 2.0 * v_particle_pos.y, 0, 1);
1025
- }`), K(r0, "fragmentSchema", `
1025
+ }`), J(q0, "fragmentSchema", `
1026
1026
  precision mediump float;
1027
1027
 
1028
1028
  uniform sampler2D u_factor;
@@ -1044,7 +1044,7 @@ K(r0, "vertexSchema", `
1044
1044
 
1045
1045
  float f = 1.0 - uv.b;
1046
1046
  gl_FragColor = texture2D(u_color_ramp, ramp_pos) * f;
1047
- }`), K(r0, "quadVertSchema", `
1047
+ }`), J(q0, "quadVertSchema", `
1048
1048
  precision mediump float;
1049
1049
 
1050
1050
  attribute vec2 a_pos;
@@ -1054,7 +1054,7 @@ K(r0, "vertexSchema", `
1054
1054
  void main() {
1055
1055
  v_tex_pos = a_pos;
1056
1056
  gl_Position = vec4(1.0 - 2.0 * a_pos, 0, 1);
1057
- }`), K(r0, "screenFragmentSchema", `
1057
+ }`), J(q0, "screenFragmentSchema", `
1058
1058
  precision mediump float;
1059
1059
 
1060
1060
  uniform sampler2D u_screen;
@@ -1066,7 +1066,7 @@ K(r0, "vertexSchema", `
1066
1066
  vec4 color = texture2D(u_screen, 1.0 - v_tex_pos);
1067
1067
  // a hack to guarantee opacity fade out even with a value close to 1.0
1068
1068
  gl_FragColor = vec4(floor(255.0 * color * u_opacity) / 255.0);
1069
- }`), K(r0, "updateFragmentSchema", `
1069
+ }`), J(q0, "updateFragmentSchema", `
1070
1070
  precision mediump float;
1071
1071
 
1072
1072
  uniform sampler2D u_particles;
@@ -1147,12 +1147,12 @@ K(r0, "vertexSchema", `
1147
1147
  }`);
1148
1148
  class k1 {
1149
1149
  constructor(M = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImNseTVudHJzYzAwNWUwbHBsZHkyaDRqczMiLCJyb2xlIjoxLCJuYW1lIjoiZmFrZUBvcm13eC5jb20iLCJwbGF0SWQiOiJnZDBtdDFkIiwiY29tcGFueSI6eyJpZCI6bnVsbCwiY2hpbGRyZW4iOltdfSwiaWF0IjoxNzIzMDI0MDI0LCJleHAiOjM5MzA1NDQwMjR9.RrKcdcMnq-FxBLJQ-i6lx2FscDE46y8EvHIemPW4HTg") {
1150
- K(this, "token");
1151
- K(this, "mapboxCustomer");
1152
- K(this, "i4");
1153
- K(this, "hi");
1154
- K(this, "td");
1155
- K(this, "windy");
1150
+ J(this, "token");
1151
+ J(this, "mapboxCustomer");
1152
+ J(this, "i4");
1153
+ J(this, "hi");
1154
+ J(this, "td");
1155
+ J(this, "windy");
1156
1156
  this.token = M, this.mapboxCustomer = {
1157
1157
  source: this.initialOnlineStyle().sources.composite,
1158
1158
  layers: {
@@ -2964,7 +2964,7 @@ const Q1 = {
2964
2964
  [1, "rgb(91, 136, 161)"]
2965
2965
  ];
2966
2966
  this.rampColor = this.webgl.setup(this.context, z);
2967
- const { program: M, aPositionBuffer: b } = this.webgl.bind(this.context, e0.vertexSchema, e0.uvFragmentSchema);
2967
+ const { program: M, aPositionBuffer: b } = this.webgl.bind(this.context, A0.vertexSchema, A0.uvFragmentSchema);
2968
2968
  this.program = M, this.aPositionBuffer = b;
2969
2969
  }
2970
2970
  this.handleParticleSetup();
@@ -2978,11 +2978,11 @@ const Q1 = {
2978
2978
  ];
2979
2979
  this.wrapper = this.webgl.bindParticle(
2980
2980
  this.particleContext,
2981
- r0.vertexSchema,
2982
- r0.fragmentSchema,
2983
- r0.quadVertSchema,
2984
- r0.screenFragmentSchema,
2985
- r0.updateFragmentSchema
2981
+ q0.vertexSchema,
2982
+ q0.fragmentSchema,
2983
+ q0.quadVertSchema,
2984
+ q0.screenFragmentSchema,
2985
+ q0.updateFragmentSchema
2986
2986
  ), this.wrapper.color = this.webgl.setup(this.particleContext, z, !0, 16, 16), this.wrapper = { ...this.wrapper, ...this.webgl.setupParticle(this.particleContext, 9e3), ...this.webgl.resize(this.viewport, this.particleContext) }, this.viewport.map.on("resize", this.handleResize), this.viewport.map.on("movestart", this.handlePause), this.viewport.map.on("moveend", this.handlePlay);
2987
2987
  }
2988
2988
  },
@@ -3015,10 +3015,10 @@ const Q1 = {
3015
3015
  }, H1 = { key: 0 };
3016
3016
  function _1(z, M, b, O, p, o) {
3017
3017
  var A;
3018
- return (A = b.factor) != null && A.active ? (l(), f("div", H1, [
3018
+ return (A = b.factor) != null && A.active ? (s(), W("div", H1, [
3019
3019
  c("div", {
3020
3020
  class: "legend-bars flex-center",
3021
- style: o0([{ position: "absolute" }, { right: p.right + "px", bottom: b.bottom }])
3021
+ style: O0([{ position: "absolute" }, { right: p.right + "px", bottom: b.bottom }])
3022
3022
  }, M[0] || (M[0] = [
3023
3023
  c("span", null, "kts", -1),
3024
3024
  c("span", null, "0", -1),
@@ -3029,7 +3029,7 @@ function _1(z, M, b, O, p, o) {
3029
3029
  c("span", null, "40", -1),
3030
3030
  c("span", null, "60", -1)
3031
3031
  ]), 4)
3032
- ])) : _("", !0);
3032
+ ])) : F("", !0);
3033
3033
  }
3034
3034
  const j1 = /* @__PURE__ */ k(Q1, [["render", _1], ["__scopeId", "data-v-14070127"]]);
3035
3035
  const F1 = {
@@ -3070,7 +3070,7 @@ const F1 = {
3070
3070
  directionLayer: "current-direction-layer",
3071
3071
  speedLayer: "current-speed-layer",
3072
3072
  speedLabelLayer: "current-speed-label-layer",
3073
- empty: T.featureCollection([]),
3073
+ empty: v.featureCollection([]),
3074
3074
  right: 10,
3075
3075
  bottom: 95
3076
3076
  };
@@ -3188,7 +3188,7 @@ const F1 = {
3188
3188
  }, G1 = { key: 0 };
3189
3189
  function U1(z, M, b, O, p, o) {
3190
3190
  var A;
3191
- return (A = b.current) != null && A.active ? (l(), f("div", G1)) : _("", !0);
3191
+ return (A = b.current) != null && A.active ? (s(), W("div", G1)) : F("", !0);
3192
3192
  }
3193
3193
  const K1 = /* @__PURE__ */ k(F1, [["render", U1]]);
3194
3194
  const J1 = {
@@ -3296,7 +3296,7 @@ const J1 = {
3296
3296
  [1, "rgb(195,194,194)"]
3297
3297
  ];
3298
3298
  this.rampColor = this.webgl.setup(this.context, z);
3299
- const { program: M, aPositionBuffer: b } = this.webgl.bind(this.context, e0.vertexSchema, e0.uvFragmentSchema);
3299
+ const { program: M, aPositionBuffer: b } = this.webgl.bind(this.context, A0.vertexSchema, A0.uvFragmentSchema);
3300
3300
  this.program = M, this.aPositionBuffer = b;
3301
3301
  }
3302
3302
  this.handleParticleSetup();
@@ -3310,11 +3310,11 @@ const J1 = {
3310
3310
  ];
3311
3311
  this.wrapper = this.webgl.bindParticle(
3312
3312
  this.particleContext,
3313
- r0.vertexSchema,
3314
- r0.fragmentSchema,
3315
- r0.quadVertSchema,
3316
- r0.screenFragmentSchema,
3317
- r0.updateFragmentSchema
3313
+ q0.vertexSchema,
3314
+ q0.fragmentSchema,
3315
+ q0.quadVertSchema,
3316
+ q0.screenFragmentSchema,
3317
+ q0.updateFragmentSchema
3318
3318
  ), this.wrapper.color = this.webgl.setup(this.particleContext, z, !0, 16, 16), this.wrapper = {
3319
3319
  ...this.wrapper,
3320
3320
  ...this.webgl.setupParticle(this.particleContext, 12e3),
@@ -3351,10 +3351,10 @@ const J1 = {
3351
3351
  }, Y1 = { key: 0 };
3352
3352
  function V1(z, M, b, O, p, o) {
3353
3353
  var A;
3354
- return (A = b.factor) != null && A.active ? (l(), f("div", Y1, [
3354
+ return (A = b.factor) != null && A.active ? (s(), W("div", Y1, [
3355
3355
  c("div", {
3356
3356
  class: "legend-bars flex-center",
3357
- style: o0([{ position: "absolute" }, { right: p.right + "px", bottom: b.bottom }])
3357
+ style: O0([{ position: "absolute" }, { right: p.right + "px", bottom: b.bottom }])
3358
3358
  }, M[0] || (M[0] = [
3359
3359
  c("span", null, "kts", -1),
3360
3360
  c("span", null, "0", -1),
@@ -3364,7 +3364,7 @@ function V1(z, M, b, O, p, o) {
3364
3364
  c("span", null, "2", -1),
3365
3365
  c("span", null, "3.2", -1)
3366
3366
  ]), 4)
3367
- ])) : _("", !0);
3367
+ ])) : F("", !0);
3368
3368
  }
3369
3369
  const Z1 = /* @__PURE__ */ k(J1, [["render", V1], ["__scopeId", "data-v-163d1f9a"]]), $1 = {
3370
3370
  name: "IdmSigWave",
@@ -3387,7 +3387,7 @@ const Z1 = /* @__PURE__ */ k(J1, [["render", V1], ["__scopeId", "data-v-163d1f9a
3387
3387
  source: "sig-wave-source",
3388
3388
  heightLayer: "sig-wave-height-layer",
3389
3389
  heightLabelLayer: "sig-wave-height-label-layer",
3390
- empty: T.featureCollection([])
3390
+ empty: v.featureCollection([])
3391
3391
  };
3392
3392
  },
3393
3393
  watch: {
@@ -3486,7 +3486,7 @@ const Z1 = /* @__PURE__ */ k(J1, [["render", V1], ["__scopeId", "data-v-163d1f9a
3486
3486
  }
3487
3487
  };
3488
3488
  function M2(z, M, b, O, p, o) {
3489
- return l(), f("div");
3489
+ return s(), W("div");
3490
3490
  }
3491
3491
  const b2 = /* @__PURE__ */ k($1, [["render", M2]]), z2 = {
3492
3492
  name: "IdmSwell",
@@ -3510,7 +3510,7 @@ const b2 = /* @__PURE__ */ k($1, [["render", M2]]), z2 = {
3510
3510
  directionLayer: "swell-direction-layer",
3511
3511
  heightLayer: "swell-height-layer",
3512
3512
  heightLabelLayer: "swell-height-label-layer",
3513
- empty: T.featureCollection([])
3513
+ empty: v.featureCollection([])
3514
3514
  };
3515
3515
  },
3516
3516
  watch: {
@@ -3644,7 +3644,7 @@ const b2 = /* @__PURE__ */ k($1, [["render", M2]]), z2 = {
3644
3644
  }
3645
3645
  };
3646
3646
  function p2(z, M, b, O, p, o) {
3647
- return l(), f("div");
3647
+ return s(), W("div");
3648
3648
  }
3649
3649
  const O2 = /* @__PURE__ */ k(z2, [["render", p2]]), o2 = {
3650
3650
  name: "IdmPrmsl",
@@ -3671,7 +3671,7 @@ const O2 = /* @__PURE__ */ k(z2, [["render", p2]]), o2 = {
3671
3671
  layer: "prmsl-layer",
3672
3672
  labelLayer: "prmsl-label-layer",
3673
3673
  pointLabelLayer: "prmsl-point-label-layer",
3674
- empty: T.featureCollection([])
3674
+ empty: v.featureCollection([])
3675
3675
  };
3676
3676
  },
3677
3677
  watch: {
@@ -3784,7 +3784,7 @@ const O2 = /* @__PURE__ */ k(z2, [["render", p2]]), o2 = {
3784
3784
  }
3785
3785
  };
3786
3786
  function c2(z, M, b, O, p, o) {
3787
- return l(), f("div");
3787
+ return s(), W("div");
3788
3788
  }
3789
3789
  const A2 = /* @__PURE__ */ k(o2, [["render", c2]]), e2 = {
3790
3790
  name: "IdmIceberg",
@@ -3803,7 +3803,7 @@ const A2 = /* @__PURE__ */ k(o2, [["render", c2]]), e2 = {
3803
3803
  return {
3804
3804
  source: "iceberg-source",
3805
3805
  layer: "iceberg-layer",
3806
- empty: T.featureCollection([])
3806
+ empty: v.featureCollection([])
3807
3807
  };
3808
3808
  },
3809
3809
  watch: {
@@ -3844,7 +3844,7 @@ const A2 = /* @__PURE__ */ k(o2, [["render", c2]]), e2 = {
3844
3844
  }
3845
3845
  };
3846
3846
  function t2(z, M, b, O, p, o) {
3847
- return l(), f("div");
3847
+ return s(), W("div");
3848
3848
  }
3849
3849
  const a2 = /* @__PURE__ */ k(e2, [["render", t2]]);
3850
3850
  const q2 = {
@@ -3885,9 +3885,9 @@ const q2 = {
3885
3885
  showTropicals: !1,
3886
3886
  activeTropicals: void 0,
3887
3887
  activeTropicalsMarker: void 0,
3888
- empty: T.featureCollection([]),
3888
+ empty: v.featureCollection([]),
3889
3889
  circleSource: "circle-source",
3890
- circleSourceData: T.featureCollection([]),
3890
+ circleSourceData: v.featureCollection([]),
3891
3891
  circleLayer: "tropical-circle-layer"
3892
3892
  };
3893
3893
  },
@@ -3940,18 +3940,18 @@ const q2 = {
3940
3940
  var r;
3941
3941
  let A = 0, t;
3942
3942
  const q = z.filter((a) => {
3943
- var n, s;
3944
- return ((s = (n = a.properties) == null ? void 0 : n.category) == null ? void 0 : s.split("-")[0]) === o;
3943
+ var n, l;
3944
+ return ((l = (n = a.properties) == null ? void 0 : n.category) == null ? void 0 : l.split("-")[0]) === o;
3945
3945
  });
3946
3946
  (r = q.filter((a) => {
3947
- var n, s;
3948
- return ((n = a.geometry) == null ? void 0 : n.type) === "LineString" && ((s = a.properties) == null ? void 0 : s.type) === "forecast";
3947
+ var n, l;
3948
+ return ((n = a.geometry) == null ? void 0 : n.type) === "LineString" && ((l = a.properties) == null ? void 0 : l.type) === "forecast";
3949
3949
  })[0]) == null || r.properties.model, q.forEach((a, n) => {
3950
- var s, d, B, R, W, m;
3951
- ((s = a.geometry) == null ? void 0 : s.type) === "Point" && ((d = a.properties) == null ? void 0 : d.type) === "history" && (A = n, t = t === void 0 ? n : t), ((B = a.geometry) == null ? void 0 : B.type) === "Point" && ((R = a.properties) == null ? void 0 : R.type) === "forecast" && t === void 0 && (t = n), ((W = a.geometry) == null ? void 0 : W.type) === "LineString" && ((m = a.properties) == null || m.type);
3950
+ var l, d, B, R, f, m;
3951
+ ((l = a.geometry) == null ? void 0 : l.type) === "Point" && ((d = a.properties) == null ? void 0 : d.type) === "history" && (A = n, t = t === void 0 ? n : t), ((B = a.geometry) == null ? void 0 : B.type) === "Point" && ((R = a.properties) == null ? void 0 : R.type) === "forecast" && t === void 0 && (t = n), ((f = a.geometry) == null ? void 0 : f.type) === "LineString" && ((m = a.properties) == null || m.type);
3952
3952
  }), q.map((a, n) => {
3953
- var s, d, B, R, W, m, h;
3954
- if (((s = a.geometry) == null ? void 0 : s.type) === "LineString" && ((d = a.properties) == null || d.type), ((B = a.geometry) == null ? void 0 : B.type) === "Point" && ((R = a.properties) == null ? void 0 : R.type) === "forecast" && (a.properties.name = o, a.properties.format = Y(a.properties.date).utcOffset(this.timeZone).format(`MMM-DD,HHmm [(utc ${this.computeTimezone})]`)), ((W = a.geometry) == null ? void 0 : W.type) === "Point" && ((m = a.properties) == null ? void 0 : m.type) === "history") {
3953
+ var l, d, B, R, f, m, h;
3954
+ if (((l = a.geometry) == null ? void 0 : l.type) === "LineString" && ((d = a.properties) == null || d.type), ((B = a.geometry) == null ? void 0 : B.type) === "Point" && ((R = a.properties) == null ? void 0 : R.type) === "forecast" && (a.properties.name = o, a.properties.format = Y(a.properties.date).utcOffset(this.timeZone).format(`MMM-DD,HHmm [(utc ${this.computeTimezone})]`)), ((f = a.geometry) == null ? void 0 : f.type) === "Point" && ((m = a.properties) == null ? void 0 : m.type) === "history") {
3955
3955
  a.properties.format = Y(a.properties.date).utcOffset(this.timeZone).format(`MMM-DD,HHmm [(utc ${this.computeTimezone})]`);
3956
3956
  const X = Y((h = a.properties) == null ? void 0 : h.date).utc().format("HHmm") === Y().utc().hour(Math.floor(M / 6) * 6).minute("00").format("HHmm");
3957
3957
  a.properties.showHistoryLabel = X || n === A, a.properties.showNameLabel = n === A, a.properties.name = o;
@@ -3999,8 +3999,8 @@ const q2 = {
3999
3999
  else {
4000
4000
  if (this.tropicals) {
4001
4001
  const n = (/* @__PURE__ */ new Date()).valueOf();
4002
- let s = 0, d = 0;
4003
- (z = this.map) != null && z.getSource(this.source) ? ((b = this.map) == null || b.getSource(this.source).setData((M = this.tropicals) != null && M.active ? this.tropicals.data : this.empty), d = (/* @__PURE__ */ new Date()).valueOf() - (n + s), console.log("[tropicals] update elapsed: ", d, ", total: ", s += d)) : (this.map.addSource(this.source, {
4002
+ let l = 0, d = 0;
4003
+ (z = this.map) != null && z.getSource(this.source) ? ((b = this.map) == null || b.getSource(this.source).setData((M = this.tropicals) != null && M.active ? this.tropicals.data : this.empty), d = (/* @__PURE__ */ new Date()).valueOf() - (n + l), console.log("[tropicals] update elapsed: ", d, ", total: ", l += d)) : (this.map.addSource(this.source, {
4004
4004
  type: "geojson",
4005
4005
  data: (O = this.tropicals) != null && O.active ? (p = this.tropicals) == null ? void 0 : p.data : this.empty
4006
4006
  }), this.map.addLayer({
@@ -4097,7 +4097,7 @@ const q2 = {
4097
4097
  ],
4098
4098
  "text-halo-width": 4
4099
4099
  }
4100
- }), d = (/* @__PURE__ */ new Date()).valueOf() - (n + s), console.log("[tropical] add elapsed: ", d, ", total: ", s += d)), (o = this.map) != null && o.getSource(this.clusterSource) ? ((t = this.map) == null || t.getSource(this.clusterSource).setData((A = this.tropicals) != null && A.active ? this.tropicals.data : this.empty), d = (/* @__PURE__ */ new Date()).valueOf() - (n + s), console.log("[tropical] update elapsed: ", d, ", total: ", s += d)) : (this.map.addSource(this.clusterSource, {
4100
+ }), d = (/* @__PURE__ */ new Date()).valueOf() - (n + l), console.log("[tropical] add elapsed: ", d, ", total: ", l += d)), (o = this.map) != null && o.getSource(this.clusterSource) ? ((t = this.map) == null || t.getSource(this.clusterSource).setData((A = this.tropicals) != null && A.active ? this.tropicals.data : this.empty), d = (/* @__PURE__ */ new Date()).valueOf() - (n + l), console.log("[tropical] update elapsed: ", d, ", total: ", l += d)) : (this.map.addSource(this.clusterSource, {
4101
4101
  type: "geojson",
4102
4102
  data: (q = this.tropicals) != null && q.active ? (r = this.tropicals) == null ? void 0 : r.data : this.empty
4103
4103
  // cluster: true,
@@ -4214,7 +4214,7 @@ const q2 = {
4214
4214
  "text-halo-color": "#0033ff",
4215
4215
  "text-halo-width": 4
4216
4216
  }
4217
- }), d = (/* @__PURE__ */ new Date()).valueOf() - (n + s), console.log("[tropical] add elapsed: ", d, ", total: ", s += d));
4217
+ }), d = (/* @__PURE__ */ new Date()).valueOf() - (n + l), console.log("[tropical] add elapsed: ", d, ", total: ", l += d));
4218
4218
  }
4219
4219
  this.handleDrawCircle();
4220
4220
  const a = j0.interpolate(this.tropicals, 1);
@@ -4226,14 +4226,14 @@ const q2 = {
4226
4226
  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), (z = this.interpolateMarkers) == null || z.forEach((M) => M == null ? void 0 : M.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));
4227
4227
  },
4228
4228
  handleDateChange() {
4229
- var z, M, b, O, p, o, A, t, q, r, a, n, s, d, B, R, W, m, h, X, E, y, H, U, V, M0, b0, t0, l0, f0, a0, s0, z0, u0, L0, W0;
4230
- if ((z = this.interpolateMarkers) == null || z.forEach((q0) => q0 == null ? void 0 : q0.remove()), this.circleSourceData.features = [], (M = this.interpolateData) != null && M.length && this.tropicals.active) {
4231
- const q0 = Y(this.date).utc().set({ minute: 0, second: 0, millisecond: 0 }), n0 = this.interpolateData.filter((D) => D.properties.date === q0.format() && !D.properties.disabled), R0 = this.handleComputePolygons(n0), d0 = T.featureCollection([...n0]);
4232
- R0.forEach((D) => {
4233
- d0.features.push(D);
4234
- }), (b = this.map) != null && b.getSource(this.interpolateSource) ? (O = this.map) == null || O.getSource(this.interpolateSource).setData(d0) : ((p = this.map) == null || p.addSource(this.interpolateSource, {
4229
+ var z, M, b, O, p, o, A, t, q, r, a, n, l, d, B, R, f, m, h, X, E, y, _, K, V, u, g, e0, n0, h0, i0, f0, p0, m0, B0, u0;
4230
+ if ((z = this.interpolateMarkers) == null || z.forEach((r0) => r0 == null ? void 0 : r0.remove()), this.circleSourceData.features = [], (M = this.interpolateData) != null && M.length && this.tropicals.active) {
4231
+ const r0 = Y(this.date).utc().set({ minute: 0, second: 0, millisecond: 0 }), d0 = this.interpolateData.filter((S) => S.properties.date === r0.format() && !S.properties.disabled), g0 = this.handleComputePolygons(d0), s0 = v.featureCollection([...d0]);
4232
+ g0.forEach((S) => {
4233
+ s0.features.push(S);
4234
+ }), (b = this.map) != null && b.getSource(this.interpolateSource) ? (O = this.map) == null || O.getSource(this.interpolateSource).setData(s0) : ((p = this.map) == null || p.addSource(this.interpolateSource, {
4235
4235
  type: "geojson",
4236
- data: d0
4236
+ data: s0
4237
4237
  }), (o = this.map) == null || o.addLayer({
4238
4238
  id: this.interpolateLineLayer,
4239
4239
  type: "line",
@@ -4245,17 +4245,17 @@ const q2 = {
4245
4245
  "line-width": 1
4246
4246
  }
4247
4247
  })), this.interpolateMarkers = [];
4248
- for (const D of n0)
4249
- if (!D.properties.disabled) {
4250
- let L = "#f44336";
4251
- ((t = (A = D.properties) == null ? void 0 : A.wind) == null ? void 0 : t.spd) < 17.2 || !((r = (q = D.properties) == null ? void 0 : q.wind) != null && r.spd) ? L = "#03f869" : ((n = (a = D.properties) == null ? void 0 : a.wind) == null ? void 0 : n.spd) >= 17.2 && ((d = (s = D.properties) == null ? void 0 : s.wind) == null ? void 0 : d.spd) < 24.5 ? L = "#f2f202" : ((R = (B = D.properties) == null ? void 0 : B.wind) == null ? void 0 : R.spd) >= 24.5 && ((m = (W = D.properties) == null ? void 0 : W.wind) == null ? void 0 : m.spd) < 32.7 ? L = "#ff9100" : ((X = (h = D.properties) == null ? void 0 : h.wind) == null ? void 0 : X.spd) >= 32.7 && ((y = (E = D.properties) == null ? void 0 : E.wind) == null ? void 0 : y.spd) < 41.5 ? L = "#f44336" : ((U = (H = D.properties) == null ? void 0 : H.wind) == null ? void 0 : U.spd) >= 41.5 && ((M0 = (V = D.properties) == null ? void 0 : V.wind) == null ? void 0 : M0.spd) < 51 ? L = "#f903d0" : ((t0 = (b0 = D.properties) == null ? void 0 : b0.wind) == null ? void 0 : t0.spd) >= 51 ? L = "#8702f9" : L = "#f44336";
4252
- const N = `<svg t="1719918955501"
4248
+ for (const S of d0)
4249
+ if (!S.properties.disabled) {
4250
+ let b0 = "#f44336";
4251
+ ((t = (A = S.properties) == null ? void 0 : A.wind) == null ? void 0 : t.spd) < 17.2 || !((r = (q = S.properties) == null ? void 0 : q.wind) != null && r.spd) ? b0 = "#03f869" : ((n = (a = S.properties) == null ? void 0 : a.wind) == null ? void 0 : n.spd) >= 17.2 && ((d = (l = S.properties) == null ? void 0 : l.wind) == null ? void 0 : d.spd) < 24.5 ? b0 = "#f2f202" : ((R = (B = S.properties) == null ? void 0 : B.wind) == null ? void 0 : R.spd) >= 24.5 && ((m = (f = S.properties) == null ? void 0 : f.wind) == null ? void 0 : m.spd) < 32.7 ? b0 = "#ff9100" : ((X = (h = S.properties) == null ? void 0 : h.wind) == null ? void 0 : X.spd) >= 32.7 && ((y = (E = S.properties) == null ? void 0 : E.wind) == null ? void 0 : y.spd) < 41.5 ? b0 = "#f44336" : ((K = (_ = S.properties) == null ? void 0 : _.wind) == null ? void 0 : K.spd) >= 41.5 && ((u = (V = S.properties) == null ? void 0 : V.wind) == null ? void 0 : u.spd) < 51 ? b0 = "#f903d0" : ((e0 = (g = S.properties) == null ? void 0 : g.wind) == null ? void 0 : e0.spd) >= 51 ? b0 = "#8702f9" : b0 = "#f44336";
4252
+ const t0 = `<svg t="1719918955501"
4253
4253
  class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="18382"
4254
4254
  xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
4255
4255
  <path
4256
4256
  d="M515.17000001 169.34666667c41-77.73 95.33-96 95.33-96-240 0-434.5 194.53-434.5 434.5 0 186.47 150.78 337.7 337.06 338.48C472.11000001 923.66666667 418.00000001 941.83666667 418.00000001 941.83666667c240 0 434.5-194.54 434.5-434.5l0.5 0.5C853.00000001 321.10666667 701.81000001 169.66666667 515.17000001 169.34666667z m-0.67 468A129.5 129.5 0 1 1 644.00000001 507.83666667a129.5 129.5 0 0 1-129.5 129.5z"
4257
- fill="${L}" p-id="18383"></path>
4258
- <path d="M514.50000001 507.83666667m-129.5 0a129.5 129.5 0 1 0 259 0 129.5 129.5 0 1 0-259 0Z" fill="${L}"
4257
+ fill="${b0}" p-id="18383"></path>
4258
+ <path d="M514.50000001 507.83666667m-129.5 0a129.5 129.5 0 1 0 259 0 129.5 129.5 0 1 0-259 0Z" fill="${b0}"
4259
4259
  p-id="18384"></path>
4260
4260
  <path
4261
4261
  d="M517.16666667 654.67c-80.23 0-145.5-65.27-145.5-145.5s65.27-145.5 145.5-145.5S662.66666667 428.94 662.66666667 509.17s-65.27 145.5-145.5 145.5z m0-259A113.5 113.5 0 1 0 630.66666667 509.17a113.63 113.63 0 0 0-113.5-113.5z"
@@ -4263,26 +4263,26 @@ const q2 = {
4263
4263
  <path
4264
4264
  d="M420.66666667 959.17a16.08 16.08 0 0 1-15.91-13.49A15.89 15.89 0 0 1 415.50666667 928c1.49-0.55 38.88-14.76 72.79-65.52A354.55 354.55 0 0 1 162.66666667 509.17a450.14 450.14 0 0 1 450.5-450.5 16.07 16.07 0 0 1 15.91 13.48 15.88 15.88 0 0 1-10.75 17.66c-1.58 0.58-39.13 14.9-73.07 65.95A354.22 354.22 0 0 1 871.66666667 509.17a16 16 0 0 1-0.52 4.05A450.14 450.14 0 0 1 420.66666667 959.17zM554.80666667 94.72C351.57666667 123.2 194.66666667 298.21 194.66666667 509.17c0 177.08 144.06 321.74 321.13 322.48a16 16 0 0 1 14.07 23.49c-16.11 30.42-34.27 52.37-50.85 68C682.25666667 894.63 839.16666667 719.63 839.16666667 508.67a15.94 15.94 0 0 1 0.47-3.86C837.30666667 329.33 693.82666667 187 517.80666667 186.67A16 16 0 0 1 503.66666667 163.21c16.21-30.69 34.47-52.79 51.14-68.49z"
4265
4265
  fill="#ffffff" p-id="18386"></path>
4266
- </svg>`, x = document.createElement("div");
4267
- x.className = "hurricane-hourly-marker", x.innerHTML = `<div class="${D.geometry.coordinates[1] >= 0 ? "center north" : "center south"}">${N}</div>`;
4268
- const $ = new w0.Marker(x).setLngLat(D.geometry.coordinates).addTo(this.map);
4269
- if (this.interpolateMarkers.push($), (l0 = D.properties) != null && l0.showCircle) {
4270
- const h0 = { radius: 100, coordinates: D.geometry.coordinates }, m0 = { radius: 200, coordinates: D.geometry.coordinates }, B0 = { radius: 500, coordinates: D.geometry.coordinates };
4271
- (f0 = this.circleSourceData) == null || f0.features.push(
4272
- T.circle(h0.coordinates, h0.radius, { steps: 100, units: "kilometers", properties: { type: "tropicalCircle" } })
4273
- ), (a0 = this.circleSourceData) == null || a0.features.push(
4274
- T.circle(m0.coordinates, m0.radius, { steps: 100, units: "kilometers", properties: { type: "tropicalCircle" } })
4275
- ), (s0 = this.circleSourceData) == null || s0.features.push(
4276
- T.circle(B0.coordinates, B0.radius, { steps: 100, units: "kilometers", properties: { type: "tropicalCircle" } })
4266
+ </svg>`, I = document.createElement("div");
4267
+ I.className = "hurricane-hourly-marker", I.innerHTML = `<div class="${S.geometry.coordinates[1] >= 0 ? "center north" : "center south"}">${t0}</div>`;
4268
+ const z0 = new w0.Marker(I).setLngLat(S.geometry.coordinates).addTo(this.map);
4269
+ if (this.interpolateMarkers.push(z0), (n0 = S.properties) != null && n0.showCircle) {
4270
+ const W0 = { radius: 100, coordinates: S.geometry.coordinates }, l0 = { radius: 200, coordinates: S.geometry.coordinates }, L0 = { radius: 500, coordinates: S.geometry.coordinates };
4271
+ (h0 = this.circleSourceData) == null || h0.features.push(
4272
+ v.circle(W0.coordinates, W0.radius, { steps: 100, units: "kilometers", properties: { type: "tropicalCircle" } })
4273
+ ), (i0 = this.circleSourceData) == null || i0.features.push(
4274
+ v.circle(l0.coordinates, l0.radius, { steps: 100, units: "kilometers", properties: { type: "tropicalCircle" } })
4275
+ ), (f0 = this.circleSourceData) == null || f0.features.push(
4276
+ v.circle(L0.coordinates, L0.radius, { steps: 100, units: "kilometers", properties: { type: "tropicalCircle" } })
4277
4277
  );
4278
4278
  }
4279
- (u0 = (z0 = this.map) == null ? void 0 : z0.getSource(this.circleSource)) == null || u0.setData(this.circleSourceData);
4279
+ (m0 = (p0 = this.map) == null ? void 0 : p0.getSource(this.circleSource)) == null || m0.setData(this.circleSourceData);
4280
4280
  }
4281
4281
  } else
4282
- (L0 = this.map) != null && L0.getSource(this.interpolateSource) && ((W0 = this.map) == null || W0.getSource(this.interpolateSource).setData(this.empty));
4282
+ (B0 = this.map) != null && B0.getSource(this.interpolateSource) && ((u0 = this.map) == null || u0.getSource(this.interpolateSource).setData(this.empty));
4283
4283
  },
4284
4284
  handleClick(z) {
4285
- var o, A, t, q, r, a, n, s;
4285
+ var o, A, t, q, r, a, n, l;
4286
4286
  const M = z.features[0], b = (A = (o = this.tropicals) == null ? void 0 : o.data) == null ? void 0 : A.features.filter(
4287
4287
  (d) => {
4288
4288
  var B;
@@ -4290,8 +4290,8 @@ const q2 = {
4290
4290
  }
4291
4291
  );
4292
4292
  b.sort((d, B) => {
4293
- var R, W, m, h;
4294
- return ((R = d.properties) == null ? void 0 : R.model) === "cma" ? -1 : ((W = d.properties) == null ? void 0 : W.model) === "jma" ? ((m = B.properties) == null ? void 0 : m.model) === "cma" ? 1 : -1 : d.properties.model === "ecmwf" ? ["jma", "cma"].includes((h = B.properties) == null ? void 0 : h.model) ? 1 : -1 : 0;
4293
+ var R, f, m, h;
4294
+ return ((R = d.properties) == null ? void 0 : R.model) === "cma" ? -1 : ((f = d.properties) == null ? void 0 : f.model) === "jma" ? ((m = B.properties) == null ? void 0 : m.model) === "cma" ? 1 : -1 : d.properties.model === "ecmwf" ? ["jma", "cma"].includes((h = B.properties) == null ? void 0 : h.model) ? 1 : -1 : 0;
4295
4295
  });
4296
4296
  const O = (q = (t = this.tropicals) == null ? void 0 : t.data) == null ? void 0 : q.features.filter(
4297
4297
  (d) => {
@@ -4303,7 +4303,7 @@ const q2 = {
4303
4303
  name: (r = M == null ? void 0 : M.properties) == null ? void 0 : r.name,
4304
4304
  forecasts: b.map((d) => d.properties),
4305
4305
  history: (a = O[0]) == null ? void 0 : a.properties,
4306
- showCircle: (s = (n = b[0]) == null ? void 0 : n.properties) == null ? void 0 : s.showCircle
4306
+ showCircle: (l = (n = b[0]) == null ? void 0 : n.properties) == null ? void 0 : l.showCircle
4307
4307
  }, this.showTropicals = !0;
4308
4308
  const p = document.getElementById("active-tropical");
4309
4309
  this.activeTropicalsMarker ? this.activeTropicalsMarker.setLngLat([z.lngLat.lng, z.lngLat.lat]) : this.activeTropicalsMarker = new w0.Marker(p).setLngLat([z.lngLat.lng, z.lngLat.lat]).setOffset([220, 0]).addTo(this.map);
@@ -4316,7 +4316,7 @@ const q2 = {
4316
4316
  r.properties.category === M && (r.properties.disabled = z.disabled);
4317
4317
  }), this.interpolateData.forEach((r) => {
4318
4318
  r.properties.category === M && (r.properties.disabled = z.disabled);
4319
- }), (A = (o = this.map) == null ? void 0 : o.getSource(this.source)) == null || A.setData(T.featureCollection(b)), (q = (t = this.map) == null ? void 0 : t.getSource(this.clusterSource)) == null || q.setData(T.featureCollection(b)), this.handleDateChange();
4319
+ }), (A = (o = this.map) == null ? void 0 : o.getSource(this.source)) == null || A.setData(v.featureCollection(b)), (q = (t = this.map) == null ? void 0 : t.getSource(this.clusterSource)) == null || q.setData(v.featureCollection(b)), this.handleDateChange();
4320
4320
  },
4321
4321
  handleStrikeProbability(z) {
4322
4322
  this.$emit("tropicalProbability", z);
@@ -4373,22 +4373,22 @@ const q2 = {
4373
4373
  let q;
4374
4374
  switch (A) {
4375
4375
  case "ne":
4376
- q = T.lineArc(z, t * 1.852, 0, 90, { steps: t > 0 ? 64 : 1 });
4376
+ q = v.lineArc(z, t * 1.852, 0, 90, { steps: t > 0 ? 64 : 1 });
4377
4377
  break;
4378
4378
  case "se":
4379
- q = T.lineArc(z, t * 1.852, 90, 180, { steps: t > 0 ? 64 : 1 });
4379
+ q = v.lineArc(z, t * 1.852, 90, 180, { steps: t > 0 ? 64 : 1 });
4380
4380
  break;
4381
4381
  case "sw":
4382
- q = T.lineArc(z, t * 1.852, 180, 270, { steps: t > 0 ? 64 : 1 });
4382
+ q = v.lineArc(z, t * 1.852, 180, 270, { steps: t > 0 ? 64 : 1 });
4383
4383
  break;
4384
4384
  case "nw":
4385
- q = T.lineArc(z, t * 1.852, 270, 360, { steps: t > 0 ? 64 : 1 });
4385
+ q = v.lineArc(z, t * 1.852, 270, 360, { steps: t > 0 ? 64 : 1 });
4386
4386
  break;
4387
4387
  }
4388
4388
  O.push(...(o = q == null ? void 0 : q.geometry) == null ? void 0 : o.coordinates);
4389
4389
  }
4390
- const p = T.lineString(O);
4391
- return T.lineToPolygon(p, { properties: b });
4390
+ const p = v.lineString(O);
4391
+ return v.lineToPolygon(p, { properties: b });
4392
4392
  }
4393
4393
  }
4394
4394
  }, i2 = {
@@ -4408,49 +4408,49 @@ const q2 = {
4408
4408
  style: { "justify-content": "flex-start" }
4409
4409
  }, m2 = { class: "forecast-models" }, B2 = ["onClick"], g2 = { class: "more" };
4410
4410
  function N2(z, M, b, O, p, o) {
4411
- var A, t, q, r, a, n, s, d, B, R, W, m, h, X, E;
4412
- return y0((l(), f("div", i2, [
4411
+ var A, t, q, r, a, n, l, d, B, R, f, m, h, X, E;
4412
+ return y0((s(), W("div", i2, [
4413
4413
  c("div", r2, [
4414
4414
  c("div", {
4415
4415
  class: "iconfont close-btn",
4416
4416
  onClick: M[0] || (M[0] = (y) => p.showTropicals = !1)
4417
4417
  }, ""),
4418
4418
  c("div", n2, [
4419
- (t = (A = p.activeTropicals) == null ? void 0 : A.history) != null && t.level ? (l(), f("span", d2, w((r = (q = p.activeTropicals) == null ? void 0 : q.history) == null ? void 0 : r.level) + " , ", 1)) : _("", !0),
4420
- p0(w((a = p.activeTropicals) == null ? void 0 : a.name), 1)
4419
+ (t = (A = p.activeTropicals) == null ? void 0 : A.history) != null && t.level ? (s(), W("span", d2, T((r = (q = p.activeTropicals) == null ? void 0 : q.history) == null ? void 0 : r.level) + " , ", 1)) : F("", !0),
4420
+ $(T((a = p.activeTropicals) == null ? void 0 : a.name), 1)
4421
4421
  ]),
4422
- c("div", s2, " Last update: " + w(o.computeTime(((s = (n = p.activeTropicals) == null ? void 0 : n.history) == null ? void 0 : s.updated) || ((R = (B = (d = p.activeTropicals) == null ? void 0 : d.forecasts) == null ? void 0 : B.filter((y) => !y.disabled)[0]) == null ? void 0 : R.date))), 1)
4422
+ c("div", s2, " Last update: " + T(o.computeTime(((l = (n = p.activeTropicals) == null ? void 0 : n.history) == null ? void 0 : l.updated) || ((R = (B = (d = p.activeTropicals) == null ? void 0 : d.forecasts) == null ? void 0 : B.filter((y) => !y.disabled)[0]) == null ? void 0 : R.date))), 1)
4423
4423
  ]),
4424
4424
  c("div", W2, [
4425
4425
  c("div", l2, [
4426
4426
  c("div", f2, [
4427
4427
  c("div", u2, [
4428
4428
  M[2] || (M[2] = c("label", null, "Wind speed : ", -1)),
4429
- c("span", null, w(((m = (W = p.activeTropicals) == null ? void 0 : W.history) == null ? void 0 : m.kts) || "-") + "[kts]", 1)
4429
+ c("span", null, T(((m = (f = p.activeTropicals) == null ? void 0 : f.history) == null ? void 0 : m.kts) || "-") + "[kts]", 1)
4430
4430
  ]),
4431
4431
  c("div", L2, [
4432
4432
  M[3] || (M[3] = c("label", null, "Pressure : ", -1)),
4433
- c("span", null, w(((X = (h = p.activeTropicals) == null ? void 0 : h.history) == null ? void 0 : X.pressure) || "-") + "[hPa]", 1)
4433
+ c("span", null, T(((X = (h = p.activeTropicals) == null ? void 0 : h.history) == null ? void 0 : X.pressure) || "-") + "[hPa]", 1)
4434
4434
  ])
4435
4435
  ]),
4436
4436
  c("div", R2, [
4437
4437
  c("div", h2, [
4438
4438
  M[4] || (M[4] = c("label", { style: { width: "max-content" } }, "Forecast Models : ", -1)),
4439
4439
  c("div", m2, [
4440
- (l(!0), f(j, null, G((E = p.activeTropicals) == null ? void 0 : E.forecasts, (y, H) => {
4441
- var U, V, M0, b0;
4442
- return l(), f("div", {
4443
- key: H,
4444
- class: J([
4440
+ (s(!0), W(H, null, j((E = p.activeTropicals) == null ? void 0 : E.forecasts, (y, _) => {
4441
+ var K, V, u, g;
4442
+ return s(), W("div", {
4443
+ key: _,
4444
+ class: U([
4445
4445
  "model",
4446
4446
  y.disabled ? "" : "active",
4447
- H > 0 && H < ((V = (U = p.activeTropicals) == null ? void 0 : U.forecasts) == null ? void 0 : V.length) - 1 && ((b0 = (M0 = p.activeTropicals) == null ? void 0 : M0.forecasts) == null ? void 0 : b0.length) > 2 ? "center-child" : ""
4447
+ _ > 0 && _ < ((V = (K = p.activeTropicals) == null ? void 0 : K.forecasts) == null ? void 0 : V.length) - 1 && ((g = (u = p.activeTropicals) == null ? void 0 : u.forecasts) == null ? void 0 : g.length) > 2 ? "center-child" : ""
4448
4448
  ]),
4449
- onClick: (t0) => o.handleForecastToggle(y)
4449
+ onClick: (e0) => o.handleForecastToggle(y)
4450
4450
  }, [
4451
4451
  c("span", {
4452
- class: J(y.model)
4453
- }, w(y.model), 3)
4452
+ class: U(y.model)
4453
+ }, T(y.model), 3)
4454
4454
  ], 10, B2);
4455
4455
  }), 128))
4456
4456
  ])
@@ -4558,7 +4558,7 @@ const y2 = {
4558
4558
  [1, "rgba(197,5,58,0.8)"]
4559
4559
  ];
4560
4560
  this.rampColor = this.webgl.setup(this.context, z);
4561
- const { program: M, aPositionBuffer: b } = this.webgl.bind(this.context, e0.vertexSchema, e0.fragmentSchema);
4561
+ const { program: M, aPositionBuffer: b } = this.webgl.bind(this.context, A0.vertexSchema, A0.fragmentSchema);
4562
4562
  this.program = M, this.aPositionBuffer = b;
4563
4563
  }
4564
4564
  },
@@ -4574,10 +4574,10 @@ const y2 = {
4574
4574
  }, X2 = { key: 0 };
4575
4575
  function w2(z, M, b, O, p, o) {
4576
4576
  var A;
4577
- return (A = b.factor) != null && A.active ? (l(), f("div", X2, [
4577
+ return (A = b.factor) != null && A.active ? (s(), W("div", X2, [
4578
4578
  c("div", {
4579
4579
  class: "legend-bars flex-center",
4580
- style: o0([{ position: "absolute" }, { right: p.right + "px", bottom: b.bottom }])
4580
+ style: O0([{ position: "absolute" }, { right: p.right + "px", bottom: b.bottom }])
4581
4581
  }, M[0] || (M[0] = [
4582
4582
  c("span", null, "mm", -1),
4583
4583
  c("span", null, "1.5", -1),
@@ -4588,7 +4588,7 @@ function w2(z, M, b, O, p, o) {
4588
4588
  c("span", null, "20", -1),
4589
4589
  c("span", null, "30", -1)
4590
4590
  ]), 4)
4591
- ])) : _("", !0);
4591
+ ])) : F("", !0);
4592
4592
  }
4593
4593
  const C2 = /* @__PURE__ */ k(y2, [["render", w2], ["__scopeId", "data-v-e83717bd"]]);
4594
4594
  const v2 = {
@@ -4672,7 +4672,7 @@ const v2 = {
4672
4672
  [1, "rgba(144,144,144,0)"]
4673
4673
  ];
4674
4674
  this.rampColor = this.webgl.setup(this.context, z);
4675
- const { program: M, aPositionBuffer: b } = this.webgl.bind(this.context, e0.vertexSchema, e0.fragmentSchema);
4675
+ const { program: M, aPositionBuffer: b } = this.webgl.bind(this.context, A0.vertexSchema, A0.fragmentSchema);
4676
4676
  this.program = M, this.aPositionBuffer = b;
4677
4677
  }
4678
4678
  },
@@ -4688,10 +4688,10 @@ const v2 = {
4688
4688
  }, T2 = { key: 0 };
4689
4689
  function E2(z, M, b, O, p, o) {
4690
4690
  var A;
4691
- return (A = b.factor) != null && A.active ? (l(), f("div", T2, [
4691
+ return (A = b.factor) != null && A.active ? (s(), W("div", T2, [
4692
4692
  c("div", {
4693
4693
  class: "legend-bars flex-center",
4694
- style: o0([{ position: "absolute" }, { right: z.right + "px", bottom: b.bottom }])
4694
+ style: O0([{ position: "absolute" }, { right: z.right + "px", bottom: b.bottom }])
4695
4695
  }, M[0] || (M[0] = [
4696
4696
  c("span", null, "nm", -1),
4697
4697
  c("span", null, "0", -1),
@@ -4700,7 +4700,7 @@ function E2(z, M, b, O, p, o) {
4700
4700
  c("span", null, "3", -1),
4701
4701
  c("span", null, "9", -1)
4702
4702
  ]), 4)
4703
- ])) : _("", !0);
4703
+ ])) : F("", !0);
4704
4704
  }
4705
4705
  const x2 = /* @__PURE__ */ k(v2, [["render", E2], ["__scopeId", "data-v-1c8a9237"]]);
4706
4706
  const I2 = {
@@ -4792,7 +4792,7 @@ const I2 = {
4792
4792
  //
4793
4793
  ];
4794
4794
  this.rampColor = this.webgl.setup(this.context, z);
4795
- const { program: M, aPositionBuffer: b } = this.webgl.bind(this.context, e0.vertexSchema, e0.fragmentSchema);
4795
+ const { program: M, aPositionBuffer: b } = this.webgl.bind(this.context, A0.vertexSchema, A0.fragmentSchema);
4796
4796
  this.program = M, this.aPositionBuffer = b;
4797
4797
  }
4798
4798
  },
@@ -4808,10 +4808,10 @@ const I2 = {
4808
4808
  }, D2 = { key: 0 };
4809
4809
  function S2(z, M, b, O, p, o) {
4810
4810
  var A;
4811
- return (A = b.factor) != null && A.active ? (l(), f("div", D2, [
4811
+ return (A = b.factor) != null && A.active ? (s(), W("div", D2, [
4812
4812
  c("div", {
4813
4813
  class: "legend-bars flex-center",
4814
- style: o0([{ position: "absolute" }, { right: p.right + "px", bottom: b.bottom }])
4814
+ style: O0([{ position: "absolute" }, { right: p.right + "px", bottom: b.bottom }])
4815
4815
  }, M[0] || (M[0] = [
4816
4816
  c("span", null, "°C", -1),
4817
4817
  c("span", null, "0", -1),
@@ -4820,7 +4820,7 @@ function S2(z, M, b, O, p, o) {
4820
4820
  c("span", null, "30", -1),
4821
4821
  c("span", null, "40", -1)
4822
4822
  ]), 4)
4823
- ])) : _("", !0);
4823
+ ])) : F("", !0);
4824
4824
  }
4825
4825
  const P2 = /* @__PURE__ */ k(I2, [["render", S2], ["__scopeId", "data-v-8974924d"]]);
4826
4826
  const k2 = {
@@ -4915,7 +4915,7 @@ const k2 = {
4915
4915
  [1, "rgb(138, 43, 10)"]
4916
4916
  ];
4917
4917
  this.rampColor = this.webgl.setup(this.context, z);
4918
- const { program: M, aPositionBuffer: b } = this.webgl.bind(this.context, e0.vertexSchema, e0.fragmentSchema);
4918
+ const { program: M, aPositionBuffer: b } = this.webgl.bind(this.context, A0.vertexSchema, A0.fragmentSchema);
4919
4919
  this.program = M, this.aPositionBuffer = b;
4920
4920
  }
4921
4921
  },
@@ -4931,10 +4931,10 @@ const k2 = {
4931
4931
  }, Q2 = { key: 0 };
4932
4932
  function H2(z, M, b, O, p, o) {
4933
4933
  var A;
4934
- return (A = b.factor) != null && A.active ? (l(), f("div", Q2, [
4934
+ return (A = b.factor) != null && A.active ? (s(), W("div", Q2, [
4935
4935
  c("div", {
4936
4936
  class: "legend-bars flex-center",
4937
- style: o0([{ position: "absolute" }, { right: p.right + "px", bottom: b.bottom }])
4937
+ style: O0([{ position: "absolute" }, { right: p.right + "px", bottom: b.bottom }])
4938
4938
  }, M[0] || (M[0] = [
4939
4939
  c("span", null, "°C", -1),
4940
4940
  c("span", null, "-20", -1),
@@ -4945,7 +4945,7 @@ function H2(z, M, b, O, p, o) {
4945
4945
  c("span", null, "30", -1),
4946
4946
  c("span", null, "40", -1)
4947
4947
  ]), 4)
4948
- ])) : _("", !0);
4948
+ ])) : F("", !0);
4949
4949
  }
4950
4950
  const _2 = /* @__PURE__ */ k(k2, [["render", H2], ["__scopeId", "data-v-d709ba86"]]);
4951
4951
  const j2 = {
@@ -5031,7 +5031,7 @@ const j2 = {
5031
5031
  // 2m
5032
5032
  ];
5033
5033
  this.rampColor = this.webgl.setup(this.context, z);
5034
- const { program: M, aPositionBuffer: b } = this.webgl.bind(this.context, e0.vertexSchema, e0.fragmentSchema);
5034
+ const { program: M, aPositionBuffer: b } = this.webgl.bind(this.context, A0.vertexSchema, A0.fragmentSchema);
5035
5035
  this.program = M, this.aPositionBuffer = b;
5036
5036
  }
5037
5037
  },
@@ -5047,10 +5047,10 @@ const j2 = {
5047
5047
  }, F2 = { key: 0 };
5048
5048
  function G2(z, M, b, O, p, o) {
5049
5049
  var A;
5050
- return (A = b.factor) != null && A.active ? (l(), f("div", F2, [
5050
+ return (A = b.factor) != null && A.active ? (s(), W("div", F2, [
5051
5051
  c("div", {
5052
5052
  class: "legend-bars flex-center",
5053
- style: o0([{ position: "absolute" }, { right: p.right + "px", bottom: b.bottom }])
5053
+ style: O0([{ position: "absolute" }, { right: p.right + "px", bottom: b.bottom }])
5054
5054
  }, M[0] || (M[0] = [
5055
5055
  c("span", null, "m", -1),
5056
5056
  c("span", null, "0", -1),
@@ -5059,7 +5059,7 @@ function G2(z, M, b, O, p, o) {
5059
5059
  c("span", null, "1.5", -1),
5060
5060
  c("span", null, "2", -1)
5061
5061
  ]), 4)
5062
- ])) : _("", !0);
5062
+ ])) : F("", !0);
5063
5063
  }
5064
5064
  const U2 = /* @__PURE__ */ k(j2, [["render", G2], ["__scopeId", "data-v-5bb73794"]]);
5065
5065
  /*! Element Plus Icons Vue v2.3.1 */
@@ -5067,7 +5067,7 @@ var K2 = /* @__PURE__ */ Z0({
5067
5067
  name: "LocationFilled",
5068
5068
  __name: "location-filled",
5069
5069
  setup(z) {
5070
- return (M, b) => (l(), f("svg", {
5070
+ return (M, b) => (s(), W("svg", {
5071
5071
  xmlns: "http://www.w3.org/2000/svg",
5072
5072
  viewBox: "0 0 1024 1024"
5073
5073
  }, [
@@ -5093,42 +5093,42 @@ var G0 = { exports: {} }, U0 = { exports: {} };
5093
5093
  })(Y2, function(M) {
5094
5094
  M.version === void 0 && M.default && (M = M.default);
5095
5095
  var b = "0.5.47", O = {}, p = {}, o = {}, A = {}, t = {}, q;
5096
- (!M || typeof M.version != "string") && N("Moment Timezone requires Moment.js. See https://momentjs.com/timezone/docs/#/use-it/browser/");
5096
+ (!M || typeof M.version != "string") && t0("Moment Timezone requires Moment.js. See https://momentjs.com/timezone/docs/#/use-it/browser/");
5097
5097
  var r = M.version.split("."), a = +r[0], n = +r[1];
5098
- (a < 2 || a === 2 && n < 6) && N("Moment Timezone requires Moment.js >= 2.6.0. You are using Moment.js " + M.version + ". See momentjs.com");
5099
- function s(e) {
5098
+ (a < 2 || a === 2 && n < 6) && t0("Moment Timezone requires Moment.js >= 2.6.0. You are using Moment.js " + M.version + ". See momentjs.com");
5099
+ function l(e) {
5100
5100
  return e > 96 ? e - 87 : e > 64 ? e - 29 : e - 48;
5101
5101
  }
5102
5102
  function d(e) {
5103
- var i = 0, u = e.split("."), g = u[0], v = u[1] || "", S = 1, Z, P = 0, F = 1;
5104
- for (e.charCodeAt(0) === 45 && (i = 1, F = -1), i; i < g.length; i++)
5105
- Z = s(g.charCodeAt(i)), P = 60 * P + Z;
5106
- for (i = 0; i < v.length; i++)
5107
- S = S / 60, Z = s(v.charCodeAt(i)), P += Z * S;
5108
- return P * F;
5103
+ var i = 0, L = e.split("."), N = L[0], C = L[1] || "", D = 1, Z, P = 0, G = 1;
5104
+ for (e.charCodeAt(0) === 45 && (i = 1, G = -1), i; i < N.length; i++)
5105
+ Z = l(N.charCodeAt(i)), P = 60 * P + Z;
5106
+ for (i = 0; i < C.length; i++)
5107
+ D = D / 60, Z = l(C.charCodeAt(i)), P += Z * D;
5108
+ return P * G;
5109
5109
  }
5110
5110
  function B(e) {
5111
5111
  for (var i = 0; i < e.length; i++)
5112
5112
  e[i] = d(e[i]);
5113
5113
  }
5114
5114
  function R(e, i) {
5115
- for (var u = 0; u < i; u++)
5116
- e[u] = Math.round((e[u - 1] || 0) + e[u] * 6e4);
5115
+ for (var L = 0; L < i; L++)
5116
+ e[L] = Math.round((e[L - 1] || 0) + e[L] * 6e4);
5117
5117
  e[i - 1] = 1 / 0;
5118
5118
  }
5119
- function W(e, i) {
5120
- var u = [], g;
5121
- for (g = 0; g < i.length; g++)
5122
- u[g] = e[i[g]];
5123
- return u;
5119
+ function f(e, i) {
5120
+ var L = [], N;
5121
+ for (N = 0; N < i.length; N++)
5122
+ L[N] = e[i[N]];
5123
+ return L;
5124
5124
  }
5125
5125
  function m(e) {
5126
- var i = e.split("|"), u = i[2].split(" "), g = i[3].split(""), v = i[4].split(" ");
5127
- return B(u), B(g), B(v), R(v, g.length), {
5126
+ var i = e.split("|"), L = i[2].split(" "), N = i[3].split(""), C = i[4].split(" ");
5127
+ return B(L), B(N), B(C), R(C, N.length), {
5128
5128
  name: i[0],
5129
- abbrs: W(i[1].split(" "), g),
5130
- offsets: W(u, g),
5131
- untils: v,
5129
+ abbrs: f(i[1].split(" "), N),
5130
+ offsets: f(L, N),
5131
+ untils: C,
5132
5132
  population: i[5] | 0
5133
5133
  };
5134
5134
  }
@@ -5136,25 +5136,25 @@ var G0 = { exports: {} }, U0 = { exports: {} };
5136
5136
  e && this._set(m(e));
5137
5137
  }
5138
5138
  function X(e, i) {
5139
- var u = i.length;
5139
+ var L = i.length;
5140
5140
  if (e < i[0])
5141
5141
  return 0;
5142
- if (u > 1 && i[u - 1] === 1 / 0 && e >= i[u - 2])
5143
- return u - 1;
5144
- if (e >= i[u - 1])
5142
+ if (L > 1 && i[L - 1] === 1 / 0 && e >= i[L - 2])
5143
+ return L - 1;
5144
+ if (e >= i[L - 1])
5145
5145
  return -1;
5146
- for (var g, v = 0, S = u - 1; S - v > 1; )
5147
- g = Math.floor((v + S) / 2), i[g] <= e ? v = g : S = g;
5148
- return S;
5146
+ for (var N, C = 0, D = L - 1; D - C > 1; )
5147
+ N = Math.floor((C + D) / 2), i[N] <= e ? C = N : D = N;
5148
+ return D;
5149
5149
  }
5150
5150
  h.prototype = {
5151
5151
  _set: function(e) {
5152
5152
  this.name = e.name, this.abbrs = e.abbrs, this.untils = e.untils, this.offsets = e.offsets, this.population = e.population;
5153
5153
  },
5154
5154
  _index: function(e) {
5155
- var i = +e, u = this.untils, g;
5156
- if (g = X(i, u), g >= 0)
5157
- return g;
5155
+ var i = +e, L = this.untils, N;
5156
+ if (N = X(i, L), N >= 0)
5157
+ return N;
5158
5158
  },
5159
5159
  countries: function() {
5160
5160
  var e = this.name;
@@ -5163,17 +5163,17 @@ var G0 = { exports: {} }, U0 = { exports: {} };
5163
5163
  });
5164
5164
  },
5165
5165
  parse: function(e) {
5166
- var i = +e, u = this.offsets, g = this.untils, v = g.length - 1, S, Z, P, F;
5167
- for (F = 0; F < v; F++)
5168
- if (S = u[F], Z = u[F + 1], P = u[F && F - 1], S < Z && x.moveAmbiguousForward ? S = Z : S > P && x.moveInvalidForward && (S = P), i < g[F] - S * 6e4)
5169
- return u[F];
5170
- return u[v];
5166
+ var i = +e, L = this.offsets, N = this.untils, C = N.length - 1, D, Z, P, G;
5167
+ for (G = 0; G < C; G++)
5168
+ if (D = L[G], Z = L[G + 1], P = L[G && G - 1], D < Z && I.moveAmbiguousForward ? D = Z : D > P && I.moveInvalidForward && (D = P), i < N[G] - D * 6e4)
5169
+ return L[G];
5170
+ return L[C];
5171
5171
  },
5172
5172
  abbr: function(e) {
5173
5173
  return this.abbrs[this._index(e)];
5174
5174
  },
5175
5175
  offset: function(e) {
5176
- return N("zone.offset has been deprecated in favor of zone.utcOffset"), this.offsets[this._index(e)];
5176
+ return t0("zone.offset has been deprecated in favor of zone.utcOffset"), this.offsets[this._index(e)];
5177
5177
  },
5178
5178
  utcOffset: function(e) {
5179
5179
  return this.offsets[this._index(e)];
@@ -5183,178 +5183,178 @@ var G0 = { exports: {} }, U0 = { exports: {} };
5183
5183
  this.name = e, this.zones = i;
5184
5184
  }
5185
5185
  function y(e) {
5186
- var i = e.toTimeString(), u = i.match(/\([a-z ]+\)/i);
5187
- u && u[0] ? (u = u[0].match(/[A-Z]/g), u = u ? u.join("") : void 0) : (u = i.match(/[A-Z]{3,5}/g), u = u ? u[0] : void 0), u === "GMT" && (u = void 0), this.at = +e, this.abbr = u, this.offset = e.getTimezoneOffset();
5186
+ var i = e.toTimeString(), L = i.match(/\([a-z ]+\)/i);
5187
+ L && L[0] ? (L = L[0].match(/[A-Z]/g), L = L ? L.join("") : void 0) : (L = i.match(/[A-Z]{3,5}/g), L = L ? L[0] : void 0), L === "GMT" && (L = void 0), this.at = +e, this.abbr = L, this.offset = e.getTimezoneOffset();
5188
5188
  }
5189
- function H(e) {
5189
+ function _(e) {
5190
5190
  this.zone = e, this.offsetScore = 0, this.abbrScore = 0;
5191
5191
  }
5192
- H.prototype.scoreOffsetAt = function(e) {
5192
+ _.prototype.scoreOffsetAt = function(e) {
5193
5193
  this.offsetScore += Math.abs(this.zone.utcOffset(e.at) - e.offset), this.zone.abbr(e.at).replace(/[^A-Z]/g, "") !== e.abbr && this.abbrScore++;
5194
5194
  };
5195
- function U(e, i) {
5196
- for (var u, g; g = ((i.at - e.at) / 12e4 | 0) * 6e4; )
5197
- u = new y(new Date(e.at + g)), u.offset === e.offset ? e = u : i = u;
5195
+ function K(e, i) {
5196
+ for (var L, N; N = ((i.at - e.at) / 12e4 | 0) * 6e4; )
5197
+ L = new y(new Date(e.at + N)), L.offset === e.offset ? e = L : i = L;
5198
5198
  return e;
5199
5199
  }
5200
5200
  function V() {
5201
- var e = (/* @__PURE__ */ new Date()).getFullYear() - 2, i = new y(new Date(e, 0, 1)), u = i.offset, g = [i], v, S, Z, P;
5201
+ var e = (/* @__PURE__ */ new Date()).getFullYear() - 2, i = new y(new Date(e, 0, 1)), L = i.offset, N = [i], C, D, Z, P;
5202
5202
  for (P = 1; P < 48; P++)
5203
- Z = new Date(e, P, 1).getTimezoneOffset(), Z !== u && (S = new y(new Date(e, P, 1)), v = U(i, S), g.push(v), g.push(new y(new Date(v.at + 6e4))), i = S, u = Z);
5203
+ Z = new Date(e, P, 1).getTimezoneOffset(), Z !== L && (D = new y(new Date(e, P, 1)), C = K(i, D), N.push(C), N.push(new y(new Date(C.at + 6e4))), i = D, L = Z);
5204
5204
  for (P = 0; P < 4; P++)
5205
- g.push(new y(new Date(e + P, 0, 1))), g.push(new y(new Date(e + P, 6, 1)));
5206
- return g;
5205
+ N.push(new y(new Date(e + P, 0, 1))), N.push(new y(new Date(e + P, 6, 1)));
5206
+ return N;
5207
5207
  }
5208
- function M0(e, i) {
5208
+ function u(e, i) {
5209
5209
  return e.offsetScore !== i.offsetScore ? e.offsetScore - i.offsetScore : e.abbrScore !== i.abbrScore ? e.abbrScore - i.abbrScore : e.zone.population !== i.zone.population ? i.zone.population - e.zone.population : i.zone.name.localeCompare(e.zone.name);
5210
5210
  }
5211
- function b0(e, i) {
5212
- var u, g;
5213
- for (B(i), u = 0; u < i.length; u++)
5214
- g = i[u], t[g] = t[g] || {}, t[g][e] = !0;
5215
- }
5216
- function t0(e) {
5217
- var i = e.length, u = {}, g = [], v = {}, S, Z, P, F;
5218
- for (S = 0; S < i; S++)
5219
- if (P = e[S].offset, !v.hasOwnProperty(P)) {
5220
- F = t[P] || {};
5221
- for (Z in F)
5222
- F.hasOwnProperty(Z) && (u[Z] = !0);
5223
- v[P] = !0;
5211
+ function g(e, i) {
5212
+ var L, N;
5213
+ for (B(i), L = 0; L < i.length; L++)
5214
+ N = i[L], t[N] = t[N] || {}, t[N][e] = !0;
5215
+ }
5216
+ function e0(e) {
5217
+ var i = e.length, L = {}, N = [], C = {}, D, Z, P, G;
5218
+ for (D = 0; D < i; D++)
5219
+ if (P = e[D].offset, !C.hasOwnProperty(P)) {
5220
+ G = t[P] || {};
5221
+ for (Z in G)
5222
+ G.hasOwnProperty(Z) && (L[Z] = !0);
5223
+ C[P] = !0;
5224
5224
  }
5225
- for (S in u)
5226
- u.hasOwnProperty(S) && g.push(A[S]);
5227
- return g;
5225
+ for (D in L)
5226
+ L.hasOwnProperty(D) && N.push(A[D]);
5227
+ return N;
5228
5228
  }
5229
- function l0() {
5229
+ function n0() {
5230
5230
  try {
5231
5231
  var e = Intl.DateTimeFormat().resolvedOptions().timeZone;
5232
5232
  if (e && e.length > 3) {
5233
- var i = A[a0(e)];
5233
+ var i = A[i0(e)];
5234
5234
  if (i)
5235
5235
  return i;
5236
- N("Moment Timezone found " + e + " from the Intl api, but did not have that data loaded.");
5236
+ t0("Moment Timezone found " + e + " from the Intl api, but did not have that data loaded.");
5237
5237
  }
5238
5238
  } catch {
5239
5239
  }
5240
- var u = V(), g = u.length, v = t0(u), S = [], Z, P, F;
5241
- for (P = 0; P < v.length; P++) {
5242
- for (Z = new H(z0(v[P])), F = 0; F < g; F++)
5243
- Z.scoreOffsetAt(u[F]);
5244
- S.push(Z);
5240
+ var L = V(), N = L.length, C = e0(L), D = [], Z, P, G;
5241
+ for (P = 0; P < C.length; P++) {
5242
+ for (Z = new _(p0(C[P])), G = 0; G < N; G++)
5243
+ Z.scoreOffsetAt(L[G]);
5244
+ D.push(Z);
5245
5245
  }
5246
- return S.sort(M0), S.length > 0 ? S[0].zone.name : void 0;
5246
+ return D.sort(u), D.length > 0 ? D[0].zone.name : void 0;
5247
5247
  }
5248
- function f0(e) {
5249
- return (!q || e) && (q = l0()), q;
5248
+ function h0(e) {
5249
+ return (!q || e) && (q = n0()), q;
5250
5250
  }
5251
- function a0(e) {
5251
+ function i0(e) {
5252
5252
  return (e || "").toLowerCase().replace(/\//g, "_");
5253
5253
  }
5254
- function s0(e) {
5255
- var i, u, g, v;
5254
+ function f0(e) {
5255
+ var i, L, N, C;
5256
5256
  for (typeof e == "string" && (e = [e]), i = 0; i < e.length; i++)
5257
- g = e[i].split("|"), u = g[0], v = a0(u), O[v] = e[i], A[v] = u, b0(v, g[2].split(" "));
5257
+ N = e[i].split("|"), L = N[0], C = i0(L), O[C] = e[i], A[C] = L, g(C, N[2].split(" "));
5258
5258
  }
5259
- function z0(e, i) {
5260
- e = a0(e);
5261
- var u = O[e], g;
5262
- return u instanceof h ? u : typeof u == "string" ? (u = new h(u), O[e] = u, u) : p[e] && i !== z0 && (g = z0(p[e], z0)) ? (u = O[e] = new h(), u._set(g), u.name = A[e], u) : null;
5259
+ function p0(e, i) {
5260
+ e = i0(e);
5261
+ var L = O[e], N;
5262
+ return L instanceof h ? L : typeof L == "string" ? (L = new h(L), O[e] = L, L) : p[e] && i !== p0 && (N = p0(p[e], p0)) ? (L = O[e] = new h(), L._set(N), L.name = A[e], L) : null;
5263
5263
  }
5264
- function u0() {
5264
+ function m0() {
5265
5265
  var e, i = [];
5266
5266
  for (e in A)
5267
5267
  A.hasOwnProperty(e) && (O[e] || O[p[e]]) && A[e] && i.push(A[e]);
5268
5268
  return i.sort();
5269
5269
  }
5270
- function L0() {
5270
+ function B0() {
5271
5271
  return Object.keys(o);
5272
5272
  }
5273
- function W0(e) {
5274
- var i, u, g, v;
5273
+ function u0(e) {
5274
+ var i, L, N, C;
5275
5275
  for (typeof e == "string" && (e = [e]), i = 0; i < e.length; i++)
5276
- u = e[i].split("|"), g = a0(u[0]), v = a0(u[1]), p[g] = v, A[g] = u[0], p[v] = g, A[v] = u[1];
5276
+ L = e[i].split("|"), N = i0(L[0]), C = i0(L[1]), p[N] = C, A[N] = L[0], p[C] = N, A[C] = L[1];
5277
5277
  }
5278
- function q0(e) {
5279
- var i, u, g, v;
5278
+ function r0(e) {
5279
+ var i, L, N, C;
5280
5280
  if (!(!e || !e.length))
5281
5281
  for (i = 0; i < e.length; i++)
5282
- v = e[i].split("|"), u = v[0].toUpperCase(), g = v[1].split(" "), o[u] = new E(
5283
- u,
5284
- g
5282
+ C = e[i].split("|"), L = C[0].toUpperCase(), N = C[1].split(" "), o[L] = new E(
5283
+ L,
5284
+ N
5285
5285
  );
5286
5286
  }
5287
- function n0(e) {
5287
+ function d0(e) {
5288
5288
  return e = e.toUpperCase(), o[e] || null;
5289
5289
  }
5290
- function R0(e, i) {
5291
- if (e = n0(e), !e)
5290
+ function g0(e, i) {
5291
+ if (e = d0(e), !e)
5292
5292
  return null;
5293
- var u = e.zones.sort();
5294
- return i ? u.map(function(g) {
5295
- var v = z0(g);
5293
+ var L = e.zones.sort();
5294
+ return i ? L.map(function(N) {
5295
+ var C = p0(N);
5296
5296
  return {
5297
- name: g,
5298
- offset: v.utcOffset(/* @__PURE__ */ new Date())
5297
+ name: N,
5298
+ offset: C.utcOffset(/* @__PURE__ */ new Date())
5299
5299
  };
5300
- }) : u;
5300
+ }) : L;
5301
5301
  }
5302
- function d0(e) {
5303
- s0(e.zones), W0(e.links), q0(e.countries), x.dataVersion = e.version;
5302
+ function s0(e) {
5303
+ f0(e.zones), u0(e.links), r0(e.countries), I.dataVersion = e.version;
5304
5304
  }
5305
- function D(e) {
5306
- return D.didShowError || (D.didShowError = !0, N("moment.tz.zoneExists('" + e + "') has been deprecated in favor of !moment.tz.zone('" + e + "')")), !!z0(e);
5305
+ function S(e) {
5306
+ return S.didShowError || (S.didShowError = !0, t0("moment.tz.zoneExists('" + e + "') has been deprecated in favor of !moment.tz.zone('" + e + "')")), !!p0(e);
5307
5307
  }
5308
- function L(e) {
5308
+ function b0(e) {
5309
5309
  var i = e._f === "X" || e._f === "x";
5310
5310
  return !!(e._a && e._tzm === void 0 && !i);
5311
5311
  }
5312
- function N(e) {
5312
+ function t0(e) {
5313
5313
  typeof console < "u" && typeof console.error == "function" && console.error(e);
5314
5314
  }
5315
- function x(e) {
5316
- var i = Array.prototype.slice.call(arguments, 0, -1), u = arguments[arguments.length - 1], g = M.utc.apply(null, i), v;
5317
- return !M.isMoment(e) && L(g) && (v = z0(u)) && g.add(v.parse(g), "minutes"), g.tz(u), g;
5318
- }
5319
- x.version = b, x.dataVersion = "", x._zones = O, x._links = p, x._names = A, x._countries = o, x.add = s0, x.link = W0, x.load = d0, x.zone = z0, x.zoneExists = D, x.guess = f0, x.names = u0, x.Zone = h, x.unpack = m, x.unpackBase60 = d, x.needsOffset = L, x.moveInvalidForward = !0, x.moveAmbiguousForward = !1, x.countries = L0, x.zonesForCountry = R0;
5320
- var $ = M.fn;
5321
- M.tz = x, M.defaultZone = null, M.updateOffset = function(e, i) {
5322
- var u = M.defaultZone, g;
5323
- if (e._z === void 0 && (u && L(e) && !e._isUTC && e.isValid() && (e._d = M.utc(e._a)._d, e.utc().add(u.parse(e), "minutes")), e._z = u), e._z)
5324
- if (g = e._z.utcOffset(e), Math.abs(g) < 16 && (g = g / 60), e.utcOffset !== void 0) {
5325
- var v = e._z;
5326
- e.utcOffset(-g, i), e._z = v;
5315
+ function I(e) {
5316
+ var i = Array.prototype.slice.call(arguments, 0, -1), L = arguments[arguments.length - 1], N = M.utc.apply(null, i), C;
5317
+ return !M.isMoment(e) && b0(N) && (C = p0(L)) && N.add(C.parse(N), "minutes"), N.tz(L), N;
5318
+ }
5319
+ I.version = b, I.dataVersion = "", I._zones = O, I._links = p, I._names = A, I._countries = o, I.add = f0, I.link = u0, I.load = s0, I.zone = p0, I.zoneExists = S, I.guess = h0, I.names = m0, I.Zone = h, I.unpack = m, I.unpackBase60 = d, I.needsOffset = b0, I.moveInvalidForward = !0, I.moveAmbiguousForward = !1, I.countries = B0, I.zonesForCountry = g0;
5320
+ var z0 = M.fn;
5321
+ M.tz = I, M.defaultZone = null, M.updateOffset = function(e, i) {
5322
+ var L = M.defaultZone, N;
5323
+ if (e._z === void 0 && (L && b0(e) && !e._isUTC && e.isValid() && (e._d = M.utc(e._a)._d, e.utc().add(L.parse(e), "minutes")), e._z = L), e._z)
5324
+ if (N = e._z.utcOffset(e), Math.abs(N) < 16 && (N = N / 60), e.utcOffset !== void 0) {
5325
+ var C = e._z;
5326
+ e.utcOffset(-N, i), e._z = C;
5327
5327
  } else
5328
- e.zone(g, i);
5329
- }, $.tz = function(e, i) {
5328
+ e.zone(N, i);
5329
+ }, z0.tz = function(e, i) {
5330
5330
  if (e) {
5331
5331
  if (typeof e != "string")
5332
5332
  throw new Error("Time zone name must be a string, got " + e + " [" + typeof e + "]");
5333
- return this._z = z0(e), this._z ? M.updateOffset(this, i) : N("Moment Timezone has no data for " + e + ". See http://momentjs.com/timezone/docs/#/data-loading/."), this;
5333
+ return this._z = p0(e), this._z ? M.updateOffset(this, i) : t0("Moment Timezone has no data for " + e + ". See http://momentjs.com/timezone/docs/#/data-loading/."), this;
5334
5334
  }
5335
5335
  if (this._z)
5336
5336
  return this._z.name;
5337
5337
  };
5338
- function h0(e) {
5338
+ function W0(e) {
5339
5339
  return function() {
5340
5340
  return this._z ? this._z.abbr(this) : e.call(this);
5341
5341
  };
5342
5342
  }
5343
- function m0(e) {
5343
+ function l0(e) {
5344
5344
  return function() {
5345
5345
  return this._z = null, e.apply(this, arguments);
5346
5346
  };
5347
5347
  }
5348
- function B0(e) {
5348
+ function L0(e) {
5349
5349
  return function() {
5350
5350
  return arguments.length > 0 && (this._z = null), e.apply(this, arguments);
5351
5351
  };
5352
5352
  }
5353
- $.zoneName = h0($.zoneName), $.zoneAbbr = h0($.zoneAbbr), $.utc = m0($.utc), $.local = m0($.local), $.utcOffset = B0($.utcOffset), M.tz.setDefault = function(e) {
5354
- return (a < 2 || a === 2 && n < 9) && N("Moment Timezone setDefault() requires Moment.js >= 2.9.0. You are using Moment.js " + M.version + "."), M.defaultZone = e ? z0(e) : null, M;
5353
+ z0.zoneName = W0(z0.zoneName), z0.zoneAbbr = W0(z0.zoneAbbr), z0.utc = l0(z0.utc), z0.local = l0(z0.local), z0.utcOffset = L0(z0.utcOffset), M.tz.setDefault = function(e) {
5354
+ return (a < 2 || a === 2 && n < 9) && t0("Moment Timezone setDefault() requires Moment.js >= 2.9.0. You are using Moment.js " + M.version + "."), M.defaultZone = e ? p0(e) : null, M;
5355
5355
  };
5356
- var c0 = M.momentProperties;
5357
- return Object.prototype.toString.call(c0) === "[object Array]" ? (c0.push("_z"), c0.push("_a")) : c0 && (c0._z = null), M;
5356
+ var o0 = M.momentProperties;
5357
+ return Object.prototype.toString.call(o0) === "[object Array]" ? (o0.push("_z"), o0.push("_a")) : o0 && (o0._z = null), M;
5358
5358
  });
5359
5359
  })(U0);
5360
5360
  var Z2 = U0.exports;
@@ -6353,17 +6353,17 @@ const AM = {
6353
6353
  },
6354
6354
  computeLat() {
6355
6355
  return function(z, M = 4) {
6356
- return O0.lat2pretty(z, M).pretty;
6356
+ return M0.lat2pretty(z, M).pretty;
6357
6357
  };
6358
6358
  },
6359
6359
  computeLng() {
6360
6360
  return function(z, M = 4) {
6361
- return O0.lng2pretty(z, M).pretty;
6361
+ return M0.lng2pretty(z, M).pretty;
6362
6362
  };
6363
6363
  },
6364
6364
  roundPrecision() {
6365
6365
  return function(z, M = 4) {
6366
- return isNaN(z) ? "-" : O0.roundPrecision(z, M);
6366
+ return isNaN(z) ? "-" : M0.roundPrecision(z, M);
6367
6367
  };
6368
6368
  }
6369
6369
  },
@@ -6379,7 +6379,7 @@ const AM = {
6379
6379
  forecastDays: b ?? 7,
6380
6380
  weatherModels: p,
6381
6381
  marineModels: o
6382
- }, t = await g0.post(`${this.gateway}/api/arc/meteo2/spot/forecast`, A, {
6382
+ }, t = await R0.post(`${this.gateway}/api/arc/meteo2/spot/forecast`, A, {
6383
6383
  headers: {
6384
6384
  Authorization: this.token || this.defaultMeteoToken
6385
6385
  }
@@ -6396,7 +6396,7 @@ const AM = {
6396
6396
  pastDays: 1,
6397
6397
  weatherModels: O,
6398
6398
  marineModels: p
6399
- }, A = await g0.post(`${this.gateway}/api/arc/meteo2/spot/forecast`, o, {
6399
+ }, A = await R0.post(`${this.gateway}/api/arc/meteo2/spot/forecast`, o, {
6400
6400
  headers: {
6401
6401
  Authorization: this.token || this.defaultMeteoToken
6402
6402
  }
@@ -6406,23 +6406,23 @@ const AM = {
6406
6406
  initTableData(z) {
6407
6407
  var M, b, O, p, o, A, t;
6408
6408
  this.clearTable(), this.positionGmt = (b = (M = z == null ? void 0 : z.weather) == null ? void 0 : M[0]) == null ? void 0 : b.timezone, this.positionOffset = (p = (O = z == null ? void 0 : z.weather) == null ? void 0 : O[0]) == null ? void 0 : p.offset, this.localDate = (A = (o = T0(this.ts)) == null ? void 0 : o.tz(this.positionGmt)) == null ? void 0 : A.format("MMM-DD/HHmm[LT]"), this.currentHourData = (t = v0.pickHourly(z, Y(this.ts))) == null ? void 0 : t[0], this.$nextTick(() => {
6409
- var r, a, n, s, d, B, R, W, m, h, X, E, y, H, U, V, M0, b0, t0, l0, f0, a0, s0, z0, u0, L0, W0, q0, n0, R0, d0, D, L, N, x, $, h0, m0, B0;
6409
+ var r, a, n, l, d, B, R, f, m, h, X, E, y, _, K, V, u, g, e0, n0, h0, i0, f0, p0, m0, B0, u0, r0, d0, g0, s0, S, b0, t0, I, z0, W0, l0, L0;
6410
6410
  const q = document.getElementById("meteoMainBox");
6411
6411
  if (!q)
6412
6412
  return !1;
6413
- if (q.className = "main-box", q.style.backgroundImage = null, q.style.backgroundPosition = "top left", ((a = (r = this.currentHourData) == null ? void 0 : r.weather) == null ? void 0 : a.code) === 0 && ((s = (n = this.currentHourData) == null ? void 0 : n.weather) == null ? void 0 : s.isDay) === 0)
6413
+ if (q.className = "main-box", q.style.backgroundImage = null, q.style.backgroundPosition = "top left", ((a = (r = this.currentHourData) == null ? void 0 : r.weather) == null ? void 0 : a.code) === 0 && ((l = (n = this.currentHourData) == null ? void 0 : n.weather) == null ? void 0 : l.isDay) === 0)
6414
6414
  q.className = "main-box night-bg";
6415
6415
  else {
6416
- const c0 = (B = (d = this.currentHourData) == null ? void 0 : d.weather) == null ? void 0 : B.bg;
6417
- c0 ? (q.className = "main-box font-color-white", q.style.backgroundImage = `url(${c0})`, (c0 === "https://osshz.idmwx.com/asset/weather/bg2.png" || c0 === "https://osshz.idmwx.com/asset/weather/bg5.png") && (q.style.backgroundPosition = "right bottom")) : q.className = "main-box day-bg";
6416
+ const o0 = (B = (d = this.currentHourData) == null ? void 0 : d.weather) == null ? void 0 : B.bg;
6417
+ o0 ? (q.className = "main-box font-color-white", q.style.backgroundImage = `url(${o0})`, (o0 === "https://osshz.idmwx.com/asset/weather/bg2.png" || o0 === "https://osshz.idmwx.com/asset/weather/bg5.png") && (q.style.backgroundPosition = "right bottom")) : q.className = "main-box day-bg";
6418
6418
  }
6419
6419
  if (!this.currentHourData)
6420
6420
  return this.loading = !1, this.tableData.hours = [void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0], this.handleRender(), !1;
6421
- for (let c0 = 0; c0 < 8; c0++) {
6422
- const e = T0(this.ts).tz(this.positionGmt).add(3 * c0, "h").format();
6421
+ for (let o0 = 0; o0 < 8; o0++) {
6422
+ const e = T0(this.ts).tz(this.positionGmt).add(3 * o0, "h").format();
6423
6423
  this.tableData.hours.push(e);
6424
6424
  const i = ((R = v0.pickHourly(z, e)) == null ? void 0 : R[0]) || {};
6425
- this.tableData.temp.push(this.roundPrecision((W = i == null ? void 0 : i.weather) == null ? void 0 : W.temp, 0) ?? "-"), this.tableData.precipProbability.push(this.roundPrecision((h = (m = i == null ? void 0 : i.weather) == null ? void 0 : m.precip) == null ? void 0 : h.probability, 0) ?? "-"), this.tableData.precip1h.push(this.roundPrecision((E = (X = i == null ? void 0 : i.weather) == null ? void 0 : X.precip) == null ? void 0 : E.sum, 0) ?? "-"), this.tableData.visibility.push(this.roundPrecision((y = i == null ? void 0 : i.weather) == null ? void 0 : y.visibility, 0) ?? "-"), this.tableData.windSpeed.push(this.roundPrecision((U = (H = i == null ? void 0 : i.weather) == null ? void 0 : H.wind) == null ? void 0 : U.kts, 1) ?? "-"), this.tableData.windDir.push((M0 = (V = i == null ? void 0 : i.weather) == null ? void 0 : V.wind) == null ? void 0 : M0.bearing), this.tableData.windGust.push(this.roundPrecision((t0 = (b0 = i == null ? void 0 : i.weather) == null ? void 0 : b0.wind) == null ? void 0 : t0.gusts, 1) ?? "-"), this.tableData.sigwaveHeight.push(this.roundPrecision((f0 = (l0 = i == null ? void 0 : i.wave) == null ? void 0 : l0.sig) == null ? void 0 : f0.height, 1) ?? "-"), this.tableData.sigwaveDir.push((s0 = (a0 = i == null ? void 0 : i.wave) == null ? void 0 : a0.sig) == null ? void 0 : s0.bearing), this.tableData.windwaveHeight.push(this.roundPrecision((u0 = (z0 = i == null ? void 0 : i.wave) == null ? void 0 : z0.wd) == null ? void 0 : u0.height, 1) ?? "-"), this.tableData.windwaveDir.push((W0 = (L0 = i == null ? void 0 : i.wave) == null ? void 0 : L0.wd) == null ? void 0 : W0.bearing), this.tableData.windwavePeriod.push(this.roundPrecision((n0 = (q0 = i == null ? void 0 : i.wave) == null ? void 0 : q0.wd) == null ? void 0 : n0.period, 1) ?? "-"), this.tableData.swellHeight.push(this.roundPrecision((d0 = (R0 = i == null ? void 0 : i.wave) == null ? void 0 : R0.swell) == null ? void 0 : d0.height, 1) ?? "-"), this.tableData.swellDir.push((L = (D = i == null ? void 0 : i.wave) == null ? void 0 : D.swell) == null ? void 0 : L.bearing), this.tableData.swellPeriod.push(this.roundPrecision((x = (N = i == null ? void 0 : i.wave) == null ? void 0 : N.swell) == null ? void 0 : x.period, 1) ?? "-"), this.tableData.currentSpeed.push(this.roundPrecision(($ = i == null ? void 0 : i.current) == null ? void 0 : $.speed, 1) ?? "-"), this.tableData.currentDir.push((h0 = i == null ? void 0 : i.current) == null ? void 0 : h0.bearing), this.tableData.seaLevel.push(this.roundPrecision(i == null ? void 0 : i.height, 1) ?? "-"), this.tableData.seaTemp.push(this.roundPrecision(i == null ? void 0 : i.sst, 0) ?? "-"), this.tableData.weatherUrls.push((m0 = i == null ? void 0 : i.weather) == null ? void 0 : m0.url), this.tableData.weatherNames.push(((B0 = i == null ? void 0 : i.weather) == null ? void 0 : B0.name) ?? "-");
6425
+ this.tableData.temp.push(this.roundPrecision((f = i == null ? void 0 : i.weather) == null ? void 0 : f.temp, 0) ?? "-"), this.tableData.precipProbability.push(this.roundPrecision((h = (m = i == null ? void 0 : i.weather) == null ? void 0 : m.precip) == null ? void 0 : h.probability, 0) ?? "-"), this.tableData.precip1h.push(this.roundPrecision((E = (X = i == null ? void 0 : i.weather) == null ? void 0 : X.precip) == null ? void 0 : E.sum, 0) ?? "-"), this.tableData.visibility.push(this.roundPrecision((y = i == null ? void 0 : i.weather) == null ? void 0 : y.visibility, 0) ?? "-"), this.tableData.windSpeed.push(this.roundPrecision((K = (_ = i == null ? void 0 : i.weather) == null ? void 0 : _.wind) == null ? void 0 : K.kts, 1) ?? "-"), this.tableData.windDir.push((u = (V = i == null ? void 0 : i.weather) == null ? void 0 : V.wind) == null ? void 0 : u.bearing), this.tableData.windGust.push(this.roundPrecision((e0 = (g = i == null ? void 0 : i.weather) == null ? void 0 : g.wind) == null ? void 0 : e0.gusts, 1) ?? "-"), this.tableData.sigwaveHeight.push(this.roundPrecision((h0 = (n0 = i == null ? void 0 : i.wave) == null ? void 0 : n0.sig) == null ? void 0 : h0.height, 1) ?? "-"), this.tableData.sigwaveDir.push((f0 = (i0 = i == null ? void 0 : i.wave) == null ? void 0 : i0.sig) == null ? void 0 : f0.bearing), this.tableData.windwaveHeight.push(this.roundPrecision((m0 = (p0 = i == null ? void 0 : i.wave) == null ? void 0 : p0.wd) == null ? void 0 : m0.height, 1) ?? "-"), this.tableData.windwaveDir.push((u0 = (B0 = i == null ? void 0 : i.wave) == null ? void 0 : B0.wd) == null ? void 0 : u0.bearing), this.tableData.windwavePeriod.push(this.roundPrecision((d0 = (r0 = i == null ? void 0 : i.wave) == null ? void 0 : r0.wd) == null ? void 0 : d0.period, 1) ?? "-"), this.tableData.swellHeight.push(this.roundPrecision((s0 = (g0 = i == null ? void 0 : i.wave) == null ? void 0 : g0.swell) == null ? void 0 : s0.height, 1) ?? "-"), this.tableData.swellDir.push((b0 = (S = i == null ? void 0 : i.wave) == null ? void 0 : S.swell) == null ? void 0 : b0.bearing), this.tableData.swellPeriod.push(this.roundPrecision((I = (t0 = i == null ? void 0 : i.wave) == null ? void 0 : t0.swell) == null ? void 0 : I.period, 1) ?? "-"), this.tableData.currentSpeed.push(this.roundPrecision((z0 = i == null ? void 0 : i.current) == null ? void 0 : z0.speed, 1) ?? "-"), this.tableData.currentDir.push((W0 = i == null ? void 0 : i.current) == null ? void 0 : W0.bearing), this.tableData.seaLevel.push(this.roundPrecision(i == null ? void 0 : i.height, 1) ?? "-"), this.tableData.seaTemp.push(this.roundPrecision(i == null ? void 0 : i.sst, 0) ?? "-"), this.tableData.weatherUrls.push((l0 = i == null ? void 0 : i.weather) == null ? void 0 : l0.url), this.tableData.weatherNames.push(((L0 = i == null ? void 0 : i.weather) == null ? void 0 : L0.name) ?? "-");
6426
6426
  }
6427
6427
  });
6428
6428
  },
@@ -6465,7 +6465,7 @@ const AM = {
6465
6465
  forecastDays: b ?? 7,
6466
6466
  extremes: !0,
6467
6467
  heights: !1
6468
- }, o = await g0.post(`${this.gateway}/api/arc/meteo2/spot/tides/forecast`, p, {
6468
+ }, o = await R0.post(`${this.gateway}/api/arc/meteo2/spot/tides/forecast`, p, {
6469
6469
  headers: {
6470
6470
  Authorization: this.token || this.defaultMeteoToken
6471
6471
  }
@@ -6511,251 +6511,223 @@ const AM = {
6511
6511
  key: 1,
6512
6512
  class: "icon flex-center",
6513
6513
  style: { "margin-right": "5px" }
6514
- }, lM = { class: "temp" }, fM = { class: "des info" }, uM = { class: "flex-start" }, LM = { class: "flex-start" }, RM = { class: "flex-start" }, hM = { class: "date flex-col-center-end" }, mM = { class: "" }, BM = { class: "" }, gM = { class: "detail-box" }, NM = { class: "menu-header flex-start" }, yM = { class: "basic-table" }, XM = { class: "hour" }, wM = { class: "hour" }, CM = { class: "icon" }, vM = ["src"], TM = { class: "text" }, EM = { class: "text" }, xM = { class: "text" }, IM = { class: "text" }, DM = { class: "wave-current-table" }, SM = { class: "hour" }, PM = { class: "hour" }, kM = { class: "icon" }, QM = ["src"], HM = { class: "text" }, _M = { class: "text" }, jM = { class: "text" }, FM = { class: "text" }, GM = { class: "sea-table" }, UM = { class: "hour" }, KM = { class: "hour" }, JM = { class: "icon" }, YM = ["src"], VM = { class: "text" }, ZM = { class: "text" }, $M = { class: "text" }, Mb = { class: "text" }, bb = { class: "tide-table flex-col-start-center" }, zb = { class: "tr-tide flex-space" }, pb = {
6515
- rowspan: "1",
6516
- colspan: "1",
6517
- class: ""
6518
- }, Ob = {
6519
- rowspan: "1",
6520
- colspan: "1",
6521
- class: ""
6522
- }, ob = {
6523
- rowspan: "1",
6524
- colspan: "1",
6525
- class: ""
6526
- }, cb = {
6527
- rowspan: "1",
6528
- colspan: "1",
6529
- class: ""
6530
- }, Ab = { class: "tr-tide flex-space" }, eb = {
6531
- rowspan: "1",
6532
- colspan: "1",
6533
- class: ""
6534
- }, tb = {
6535
- rowspan: "1",
6536
- colspan: "1",
6537
- class: ""
6538
- }, ab = {
6539
- rowspan: "1",
6540
- colspan: "1",
6541
- class: ""
6542
- }, qb = {
6543
- rowspan: "1",
6544
- colspan: "1",
6545
- class: ""
6546
- }, ib = {
6514
+ }, lM = { class: "temp" }, fM = { class: "des info" }, uM = { class: "flex-start" }, LM = { class: "flex-start" }, RM = { class: "flex-start" }, hM = { class: "date flex-col-center-end" }, mM = { class: "" }, BM = { class: "" }, gM = { class: "detail-box" }, NM = { class: "menu-header flex-start" }, yM = { class: "basic-table" }, XM = { class: "hour" }, wM = { class: "hour" }, CM = { class: "icon" }, vM = ["src"], TM = { class: "text" }, EM = { class: "text" }, xM = { class: "text" }, IM = { class: "text" }, DM = { class: "wave-current-table" }, SM = { class: "hour" }, PM = { class: "hour" }, kM = { class: "icon" }, QM = ["src"], HM = { class: "text" }, _M = { class: "text" }, jM = { class: "text" }, FM = { class: "text" }, GM = { class: "sea-table" }, UM = { class: "hour" }, KM = { class: "hour" }, JM = { class: "icon" }, YM = ["src"], VM = { class: "text" }, ZM = { class: "text" }, $M = { class: "text" }, Mb = { class: "text" }, bb = { class: "tide-table flex-col-start-center" }, zb = { class: "tr-tide flex-space" }, pb = { class: "tr-tide flex-space" }, Ob = { class: "tr-tide flex-space" }, ob = {
6547
6515
  key: 1,
6548
6516
  class: "main-box flex-center"
6549
6517
  };
6550
- function rb(z, M, b, O, p, o) {
6551
- var r, a, n, s, d, B, R, W, m, h, X, E, y, H, U, V, M0, b0, t0, l0, f0, a0, s0, z0, u0, L0, W0, q0, n0, R0, d0, D;
6552
- const A = I("LocationFilled"), t = I("ElIcon"), q = I("ElTooltip");
6553
- return y0((l(), f("div", eM, [
6518
+ function cb(z, M, b, O, p, o) {
6519
+ var r, a, n, l, d, B, R, f, m, h, X, E, y, _, K, V;
6520
+ const A = x("LocationFilled"), t = x("ElIcon"), q = x("ElTooltip");
6521
+ return y0((s(), W("div", eM, [
6554
6522
  c("div", tM, [
6555
6523
  c("div", aM, [
6556
6524
  c("div", qM, [
6557
- C(t, { size: "22" }, {
6558
- default: A0(() => [
6559
- C(A)
6525
+ w(t, { size: "22" }, {
6526
+ default: c0(() => [
6527
+ w(A)
6560
6528
  ]),
6561
6529
  _: 1
6562
6530
  }),
6563
- c("div", iM, w(o.computeLat((r = p.point) == null ? void 0 : r.lat)) + "," + w(o.computeLng((a = p.point) == null ? void 0 : a.lng)), 1)
6531
+ c("div", iM, T(o.computeLat((r = p.point) == null ? void 0 : r.lat)) + "," + T(o.computeLng((a = p.point) == null ? void 0 : a.lng)), 1)
6564
6532
  ]),
6565
6533
  c("div", {
6566
6534
  class: "iconfont close",
6567
- onClick: M[0] || (M[0] = (...L) => o.handleCloseMeteo && o.handleCloseMeteo(...L))
6535
+ onClick: M[0] || (M[0] = (...u) => o.handleCloseMeteo && o.handleCloseMeteo(...u))
6568
6536
  }, "")
6569
6537
  ]),
6570
- p.loading ? (l(), f("div", ib, M[32] || (M[32] = [
6538
+ p.loading ? (s(), W("div", ob, M[32] || (M[32] = [
6571
6539
  c("img", { src: cM }, null, -1)
6572
- ]))) : (l(), f("div", rM, [
6540
+ ]))) : (s(), W("div", rM, [
6573
6541
  c("div", nM, [
6574
6542
  c("div", dM, [
6575
- C(q, {
6543
+ w(q, {
6576
6544
  placement: "top",
6577
6545
  effect: "light",
6578
- content: (s = (n = p.currentHourData) == null ? void 0 : n.weather) == null ? void 0 : s.name,
6546
+ content: (l = (n = p.currentHourData) == null ? void 0 : n.weather) == null ? void 0 : l.name,
6579
6547
  "show-after": 1e3
6580
6548
  }, {
6581
- default: A0(() => {
6582
- var L, N, x, $;
6549
+ default: c0(() => {
6550
+ var u, g, e0, n0;
6583
6551
  return [
6584
- (N = (L = p.currentHourData) == null ? void 0 : L.weather) != null && N.url ? (l(), f("img", {
6552
+ (g = (u = p.currentHourData) == null ? void 0 : u.weather) != null && g.url ? (s(), W("img", {
6585
6553
  key: 0,
6586
6554
  class: "iconfont icon",
6587
6555
  style: { "margin-right": "5px" },
6588
- src: ($ = (x = p.currentHourData) == null ? void 0 : x.weather) == null ? void 0 : $.url
6589
- }, null, 8, sM)) : (l(), f("span", WM))
6556
+ src: (n0 = (e0 = p.currentHourData) == null ? void 0 : e0.weather) == null ? void 0 : n0.url
6557
+ }, null, 8, sM)) : (s(), W("span", WM))
6590
6558
  ];
6591
6559
  }),
6592
6560
  _: 1
6593
6561
  }, 8, ["content"]),
6594
6562
  c("div", lM, [
6595
6563
  c("div", null, [
6596
- p0(w(o.roundPrecision((B = (d = p.currentHourData) == null ? void 0 : d.weather) == null ? void 0 : B.temp, 0)), 1),
6597
- M[5] || (M[5] = c("span", { style: { "font-size": "14px" } }, "°C", -1))
6564
+ $(T(o.roundPrecision((B = (d = p.currentHourData) == null ? void 0 : d.weather) == null ? void 0 : B.temp, 0)), 1),
6565
+ M[6] || (M[6] = c("span", { style: { "font-size": "14px" } }, "°C", -1))
6598
6566
  ])
6599
6567
  ]),
6600
6568
  c("div", fM, [
6601
6569
  c("div", uM, [
6602
- M[6] || (M[6] = c("label", null, "Precip : ", -1)),
6603
- c("span", null, w(o.roundPrecision((m = (W = (R = p.currentHourData) == null ? void 0 : R.weather) == null ? void 0 : W.precip) == null ? void 0 : m.sum, 0)) + " mm", 1)
6570
+ M[7] || (M[7] = c("label", null, "Precip : ", -1)),
6571
+ c("span", null, T(o.roundPrecision((m = (f = (R = p.currentHourData) == null ? void 0 : R.weather) == null ? void 0 : f.precip) == null ? void 0 : m.sum, 0)) + " mm", 1)
6604
6572
  ]),
6605
6573
  c("div", LM, [
6606
- M[7] || (M[7] = c("label", null, "Visibility : ", -1)),
6607
- c("span", null, w(o.roundPrecision((X = (h = p.currentHourData) == null ? void 0 : h.weather) == null ? void 0 : X.visibility, 0)) + " nm", 1)
6574
+ M[8] || (M[8] = c("label", null, "Visibility : ", -1)),
6575
+ c("span", null, T(o.roundPrecision((X = (h = p.currentHourData) == null ? void 0 : h.weather) == null ? void 0 : X.visibility, 0)) + " nm", 1)
6608
6576
  ]),
6609
6577
  c("div", RM, [
6610
- M[8] || (M[8] = c("label", null, "Wind : ", -1)),
6611
- c("span", null, w(o.roundPrecision((H = (y = (E = p.currentHourData) == null ? void 0 : E.weather) == null ? void 0 : y.wind) == null ? void 0 : H.kts, 1)) + " kts", 1)
6578
+ M[9] || (M[9] = c("label", null, "Wind : ", -1)),
6579
+ c("span", null, T(o.roundPrecision((_ = (y = (E = p.currentHourData) == null ? void 0 : E.weather) == null ? void 0 : y.wind) == null ? void 0 : _.kts, 1)) + " kts", 1)
6612
6580
  ])
6613
6581
  ])
6614
6582
  ]),
6615
6583
  c("div", hM, [
6616
- c("div", mM, w(p.localDate), 1),
6617
- c("div", BM, "( UTC " + w(p.positionOffset) + " )", 1)
6584
+ c("div", mM, T(p.localDate), 1),
6585
+ c("div", BM, "( UTC " + T(p.positionOffset) + " )", 1)
6618
6586
  ])
6619
6587
  ]),
6620
6588
  y0(c("div", gM, [
6621
6589
  c("div", NM, [
6622
6590
  c("div", {
6623
- class: J(["menu-item", p.activeIndex === 1 ? "active" : ""]),
6624
- onClick: M[1] || (M[1] = x0((L) => o.handleSelectTab(1), ["prevent"]))
6591
+ class: U(["menu-item", p.activeIndex === 1 ? "active" : ""]),
6592
+ onClick: M[1] || (M[1] = E0((u) => o.handleSelectTab(1), ["prevent"]))
6625
6593
  }, "Basis", 2),
6626
6594
  c("div", {
6627
- class: J(["menu-item", p.activeIndex === 2 ? "active" : ""]),
6628
- onClick: M[2] || (M[2] = x0((L) => o.handleSelectTab(2), ["prevent"]))
6595
+ class: U(["menu-item", p.activeIndex === 2 ? "active" : ""]),
6596
+ onClick: M[2] || (M[2] = E0((u) => o.handleSelectTab(2), ["prevent"]))
6629
6597
  }, "Wave & Current", 2),
6630
6598
  c("div", {
6631
- class: J(["menu-item", p.activeIndex === 4 ? "active" : ""]),
6632
- onClick: M[3] || (M[3] = x0((L) => o.handleSelectTab(4), ["prevent"]))
6599
+ class: U(["menu-item", p.activeIndex === 3 ? "active" : ""]),
6600
+ onClick: M[3] || (M[3] = E0((u) => o.handleSelectTab(3), ["prevent"]))
6601
+ }, "Sea Surface", 2),
6602
+ c("div", {
6603
+ class: U(["menu-item", p.activeIndex === 4 ? "active" : ""]),
6604
+ onClick: M[4] || (M[4] = E0((u) => o.handleSelectTab(4), ["prevent"]))
6633
6605
  }, "Tides", 2)
6634
6606
  ]),
6635
6607
  y0(c("table", yM, [
6636
6608
  c("tr", XM, [
6637
- M[9] || (M[9] = c("th", {
6609
+ M[10] || (M[10] = c("th", {
6638
6610
  rowspan: "1",
6639
6611
  colspan: "1",
6640
6612
  class: "tr-title"
6641
6613
  }, [
6642
- p0("Hours"),
6614
+ $("Hours"),
6643
6615
  c("span", { class: "unit" }, "(LT)")
6644
6616
  ], -1)),
6645
- (l(!0), f(j, null, G(p.tableData.hours, (L) => (l(), f("th", {
6617
+ (s(!0), W(H, null, j(p.tableData.hours, (u) => (s(), W("th", {
6646
6618
  rowspan: "1",
6647
6619
  colspan: "1",
6648
- key: `HourL${L}`
6649
- }, w(o.computeHourL(L)), 1))), 128))
6620
+ key: `HourL${u}`
6621
+ }, T(o.computeHourL(u)), 1))), 128))
6650
6622
  ]),
6651
6623
  c("tr", wM, [
6652
- M[10] || (M[10] = c("th", {
6624
+ M[11] || (M[11] = c("th", {
6653
6625
  rowspan: "1",
6654
6626
  colspan: "1",
6655
6627
  class: "tr-title"
6656
6628
  }, [
6657
- p0("UTC"),
6629
+ $("UTC"),
6658
6630
  c("span", { class: "unit" })
6659
6631
  ], -1)),
6660
- (l(!0), f(j, null, G(p.tableData.hours, (L) => (l(), f("th", {
6632
+ (s(!0), W(H, null, j(p.tableData.hours, (u) => (s(), W("th", {
6661
6633
  rowspan: "1",
6662
6634
  colspan: "1",
6663
- key: `HourZ${L}`
6664
- }, w(o.computeHourZ(L)), 1))), 128))
6635
+ key: `HourZ${u}`
6636
+ }, T(o.computeHourZ(u)), 1))), 128))
6665
6637
  ]),
6666
6638
  c("tr", CM, [
6667
- M[11] || (M[11] = c("th", {
6639
+ M[12] || (M[12] = c("th", {
6668
6640
  rowspan: "1",
6669
6641
  colspan: "1",
6670
6642
  class: "tr-title"
6671
6643
  }, null, -1)),
6672
- (l(!0), f(j, null, G(p.tableData.weatherUrls, (L, N) => (l(), f("th", {
6644
+ (s(!0), W(H, null, j(p.tableData.weatherUrls, (u, g) => (s(), W("th", {
6673
6645
  rowspan: "1",
6674
6646
  colspan: "1",
6675
- key: `weatherUrls${N}${L}`
6647
+ key: `weatherUrls${g}${u}`
6676
6648
  }, [
6677
- C(q, {
6649
+ w(q, {
6678
6650
  placement: "top",
6679
6651
  effect: "light",
6680
- content: p.tableData.weatherNames[N],
6652
+ content: p.tableData.weatherNames[g],
6681
6653
  "show-after": 500
6682
6654
  }, {
6683
- default: A0(() => [
6684
- L ? (l(), f("img", {
6655
+ default: c0(() => [
6656
+ u ? (s(), W("img", {
6685
6657
  key: 0,
6686
6658
  class: "iconfont weather-icon",
6687
- src: L
6688
- }, null, 8, vM)) : _("", !0)
6659
+ src: u
6660
+ }, null, 8, vM)) : F("", !0)
6689
6661
  ]),
6690
6662
  _: 2
6691
6663
  }, 1032, ["content"])
6692
6664
  ]))), 128))
6693
6665
  ]),
6694
6666
  c("tr", TM, [
6695
- M[12] || (M[12] = c("td", {
6667
+ M[13] || (M[13] = c("td", {
6696
6668
  rowspan: "1",
6697
6669
  colspan: "1",
6698
6670
  class: "tr-title"
6699
6671
  }, [
6700
- p0("Temp"),
6672
+ $("Temp"),
6701
6673
  c("span", { class: "unit" }, "°C")
6702
6674
  ], -1)),
6703
- (l(!0), f(j, null, G(p.tableData.temp, (L, N) => (l(), f("td", {
6675
+ (s(!0), W(H, null, j(p.tableData.temp, (u, g) => (s(), W("td", {
6704
6676
  rowspan: "1",
6705
6677
  colspan: "1",
6706
- key: `weatherUrls${N}${L}`
6707
- }, w(L), 1))), 128))
6678
+ key: `weatherUrls${g}${u}`
6679
+ }, T(u), 1))), 128))
6708
6680
  ]),
6709
6681
  c("tr", EM, [
6710
- M[13] || (M[13] = c("td", {
6682
+ M[14] || (M[14] = c("td", {
6711
6683
  rowspan: "1",
6712
6684
  colspan: "1",
6713
6685
  class: "tr-title"
6714
6686
  }, [
6715
- p0("Precip"),
6687
+ $("Precip"),
6716
6688
  c("span", { class: "unit" }, "mm")
6717
6689
  ], -1)),
6718
- (l(!0), f(j, null, G(p.tableData.precip1h, (L, N) => (l(), f("td", {
6690
+ (s(!0), W(H, null, j(p.tableData.precip1h, (u, g) => (s(), W("td", {
6719
6691
  rowspan: "1",
6720
6692
  colspan: "1",
6721
- key: `precip1h${N}${L}`
6722
- }, w(L), 1))), 128))
6693
+ key: `precip1h${g}${u}`
6694
+ }, T(u), 1))), 128))
6723
6695
  ]),
6724
6696
  c("tr", xM, [
6725
- M[14] || (M[14] = c("td", {
6697
+ M[15] || (M[15] = c("td", {
6726
6698
  rowspan: "1",
6727
6699
  colspan: "1",
6728
6700
  class: "tr-title"
6729
6701
  }, [
6730
- p0("Visibility"),
6702
+ $("Visibility"),
6731
6703
  c("span", { class: "unit" }, "nm")
6732
6704
  ], -1)),
6733
- (l(!0), f(j, null, G(p.tableData.visibility, (L, N) => (l(), f("td", {
6705
+ (s(!0), W(H, null, j(p.tableData.visibility, (u, g) => (s(), W("td", {
6734
6706
  rowspan: "1",
6735
6707
  colspan: "1",
6736
- key: `visibility${N}${L}`
6737
- }, w(L), 1))), 128))
6708
+ key: `visibility${g}${u}`
6709
+ }, T(u), 1))), 128))
6738
6710
  ]),
6739
6711
  c("tr", IM, [
6740
- M[15] || (M[15] = c("td", {
6712
+ M[16] || (M[16] = c("td", {
6741
6713
  rowspan: "1",
6742
6714
  colspan: "1",
6743
6715
  class: "tr-title"
6744
6716
  }, [
6745
- p0("Wind"),
6717
+ $("Wind"),
6746
6718
  c("span", { class: "unit" }, "kts")
6747
6719
  ], -1)),
6748
- (l(!0), f(j, null, G(p.tableData.windSpeed, (L, N) => (l(), f("td", {
6720
+ (s(!0), W(H, null, j(p.tableData.windSpeed, (u, g) => (s(), W("td", {
6749
6721
  rowspan: "1",
6750
6722
  colspan: "1",
6751
- key: `windSpeed${N}${L}`
6723
+ key: `windSpeed${g}${u}`
6752
6724
  }, [
6753
- isNaN(p.tableData.windDir[N]) ? _("", !0) : (l(), f("span", {
6725
+ isNaN(p.tableData.windDir[g]) ? F("", !0) : (s(), W("span", {
6754
6726
  key: 0,
6755
6727
  class: "iconfont icon blue",
6756
- style: o0({ display: "inline-block", transform: `rotate(${p.tableData.windDir[N]}deg)` })
6728
+ style: O0({ display: "inline-block", transform: `rotate(${p.tableData.windDir[g]}deg)` })
6757
6729
  }, "", 4)),
6758
- c("span", null, w(L), 1)
6730
+ c("span", null, T(u), 1)
6759
6731
  ]))), 128))
6760
6732
  ])
6761
6733
  ], 512), [
@@ -6763,149 +6735,149 @@ function rb(z, M, b, O, p, o) {
6763
6735
  ]),
6764
6736
  y0(c("table", DM, [
6765
6737
  c("tr", SM, [
6766
- M[16] || (M[16] = c("th", {
6738
+ M[17] || (M[17] = c("th", {
6767
6739
  rowspan: "1",
6768
6740
  colspan: "1",
6769
6741
  class: "tr-title"
6770
6742
  }, [
6771
- p0("Hours"),
6743
+ $("Hours"),
6772
6744
  c("span", { class: "unit" }, "(LT)")
6773
6745
  ], -1)),
6774
- (l(!0), f(j, null, G(p.tableData.hours, (L, N) => (l(), f("th", {
6746
+ (s(!0), W(H, null, j(p.tableData.hours, (u, g) => (s(), W("th", {
6775
6747
  rowspan: "1",
6776
6748
  colspan: "1",
6777
- key: `currenthoursL${N}${L}`
6778
- }, w(o.computeHourL(L)), 1))), 128))
6749
+ key: `currenthoursL${g}${u}`
6750
+ }, T(o.computeHourL(u)), 1))), 128))
6779
6751
  ]),
6780
6752
  c("tr", PM, [
6781
- M[17] || (M[17] = c("th", {
6753
+ M[18] || (M[18] = c("th", {
6782
6754
  rowspan: "1",
6783
6755
  colspan: "1",
6784
6756
  class: "tr-title"
6785
6757
  }, [
6786
- p0("UTC"),
6758
+ $("UTC"),
6787
6759
  c("span", { class: "unit" })
6788
6760
  ], -1)),
6789
- (l(!0), f(j, null, G(p.tableData.hours, (L, N) => (l(), f("th", {
6761
+ (s(!0), W(H, null, j(p.tableData.hours, (u, g) => (s(), W("th", {
6790
6762
  rowspan: "1",
6791
6763
  colspan: "1",
6792
- key: `currenthoursZ${N}${L}`
6793
- }, w(o.computeHourZ(L)), 1))), 128))
6764
+ key: `currenthoursZ${g}${u}`
6765
+ }, T(o.computeHourZ(u)), 1))), 128))
6794
6766
  ]),
6795
6767
  c("tr", kM, [
6796
- M[18] || (M[18] = c("th", {
6768
+ M[19] || (M[19] = c("th", {
6797
6769
  rowspan: "1",
6798
6770
  colspan: "1"
6799
6771
  }, null, -1)),
6800
- (l(!0), f(j, null, G(p.tableData.weatherUrls, (L, N) => (l(), f("th", {
6772
+ (s(!0), W(H, null, j(p.tableData.weatherUrls, (u, g) => (s(), W("th", {
6801
6773
  rowspan: "1",
6802
6774
  colspan: "1",
6803
- key: `currentweatherUrls${N}${L}`
6775
+ key: `currentweatherUrls${g}${u}`
6804
6776
  }, [
6805
- C(q, {
6777
+ w(q, {
6806
6778
  placement: "top",
6807
6779
  effect: "light",
6808
- content: p.tableData.weatherNames[N],
6780
+ content: p.tableData.weatherNames[g],
6809
6781
  "show-after": 500
6810
6782
  }, {
6811
- default: A0(() => [
6812
- L ? (l(), f("img", {
6783
+ default: c0(() => [
6784
+ u ? (s(), W("img", {
6813
6785
  key: 0,
6814
6786
  class: "iconfont weather-icon",
6815
- src: L
6816
- }, null, 8, QM)) : _("", !0)
6787
+ src: u
6788
+ }, null, 8, QM)) : F("", !0)
6817
6789
  ]),
6818
6790
  _: 2
6819
6791
  }, 1032, ["content"])
6820
6792
  ]))), 128))
6821
6793
  ]),
6822
6794
  c("tr", HM, [
6823
- M[19] || (M[19] = c("td", {
6795
+ M[20] || (M[20] = c("td", {
6824
6796
  rowspan: "1",
6825
6797
  colspan: "1",
6826
6798
  class: "tr-title"
6827
6799
  }, [
6828
- p0("Sig Wave"),
6800
+ $("Sig Wave"),
6829
6801
  c("span", { class: "unit" }, "m")
6830
6802
  ], -1)),
6831
- (l(!0), f(j, null, G(p.tableData.sigwaveHeight, (L, N) => (l(), f("td", {
6803
+ (s(!0), W(H, null, j(p.tableData.sigwaveHeight, (u, g) => (s(), W("td", {
6832
6804
  rowspan: "1",
6833
6805
  colspan: "1",
6834
- key: `sigwaveHeight${N}${L}`
6806
+ key: `sigwaveHeight${g}${u}`
6835
6807
  }, [
6836
- isNaN(p.tableData.sigwaveDir[N]) ? _("", !0) : (l(), f("span", {
6808
+ isNaN(p.tableData.sigwaveDir[g]) ? F("", !0) : (s(), W("span", {
6837
6809
  key: 0,
6838
6810
  class: "iconfont icon blue",
6839
- style: o0({ display: "inline-block", transform: `rotate(${p.tableData.sigwaveDir[N]}deg)` })
6811
+ style: O0({ display: "inline-block", transform: `rotate(${p.tableData.sigwaveDir[g]}deg)` })
6840
6812
  }, "", 4)),
6841
- c("span", null, w(L), 1)
6813
+ c("span", null, T(u), 1)
6842
6814
  ]))), 128))
6843
6815
  ]),
6844
6816
  c("tr", _M, [
6845
- M[20] || (M[20] = c("td", {
6817
+ M[21] || (M[21] = c("td", {
6846
6818
  rowspan: "1",
6847
6819
  colspan: "1",
6848
6820
  class: "tr-title"
6849
6821
  }, [
6850
- p0("Wind Wave"),
6822
+ $("Wind Wave"),
6851
6823
  c("span", { class: "unit" }, "m")
6852
6824
  ], -1)),
6853
- (l(!0), f(j, null, G(p.tableData.windwaveHeight, (L, N) => (l(), f("td", {
6825
+ (s(!0), W(H, null, j(p.tableData.windwaveHeight, (u, g) => (s(), W("td", {
6854
6826
  rowspan: "1",
6855
6827
  colspan: "1",
6856
- key: `windwaveHeight${N}${L}`
6828
+ key: `windwaveHeight${g}${u}`
6857
6829
  }, [
6858
- isNaN(p.tableData.sigwaveDir[N]) ? _("", !0) : (l(), f("span", {
6830
+ isNaN(p.tableData.sigwaveDir[g]) ? F("", !0) : (s(), W("span", {
6859
6831
  key: 0,
6860
6832
  class: "iconfont icon orange",
6861
- style: o0({ display: "inline-block", transform: `rotate(${p.tableData.sigwaveDir[N]}deg)` })
6833
+ style: O0({ display: "inline-block", transform: `rotate(${p.tableData.sigwaveDir[g]}deg)` })
6862
6834
  }, "", 4)),
6863
- c("span", null, w(L), 1)
6835
+ c("span", null, T(u), 1)
6864
6836
  ]))), 128))
6865
6837
  ]),
6866
6838
  c("tr", jM, [
6867
- M[21] || (M[21] = c("td", {
6839
+ M[22] || (M[22] = c("td", {
6868
6840
  rowspan: "1",
6869
6841
  colspan: "1",
6870
6842
  class: "tr-title"
6871
6843
  }, [
6872
- p0("Swell"),
6844
+ $("Swell"),
6873
6845
  c("span", { class: "unit" }, "m")
6874
6846
  ], -1)),
6875
- (l(!0), f(j, null, G(p.tableData.swellHeight, (L, N) => (l(), f("td", {
6847
+ (s(!0), W(H, null, j(p.tableData.swellHeight, (u, g) => (s(), W("td", {
6876
6848
  rowspan: "1",
6877
6849
  colspan: "1",
6878
- key: `swellHeight${N}${L}`
6850
+ key: `swellHeight${g}${u}`
6879
6851
  }, [
6880
- isNaN(p.tableData.swellDir[N]) ? _("", !0) : (l(), f("span", {
6852
+ isNaN(p.tableData.swellDir[g]) ? F("", !0) : (s(), W("span", {
6881
6853
  key: 0,
6882
6854
  class: "iconfont icon orange",
6883
- style: o0({ display: "inline-block", transform: `rotate(${p.tableData.swellDir[N]}deg)` })
6855
+ style: O0({ display: "inline-block", transform: `rotate(${p.tableData.swellDir[g]}deg)` })
6884
6856
  }, "", 4)),
6885
- c("span", null, w(L), 1)
6857
+ c("span", null, T(u), 1)
6886
6858
  ]))), 128))
6887
6859
  ]),
6888
6860
  c("tr", FM, [
6889
- M[22] || (M[22] = c("td", {
6861
+ M[23] || (M[23] = c("td", {
6890
6862
  rowspan: "1",
6891
6863
  colspan: "1",
6892
6864
  class: "tr-title"
6893
6865
  }, [
6894
- p0("Current"),
6866
+ $("Current"),
6895
6867
  c("span", { class: "unit" }, "kts")
6896
6868
  ], -1)),
6897
- (l(!0), f(j, null, G(p.tableData.currentSpeed, (L, N) => (l(), f("td", {
6869
+ (s(!0), W(H, null, j(p.tableData.currentSpeed, (u, g) => (s(), W("td", {
6898
6870
  rowspan: "1",
6899
6871
  colspan: "1",
6900
- key: `currentSpeed${N}${L}`
6872
+ key: `currentSpeed${g}${u}`
6901
6873
  }, [
6902
- isNaN(p.tableData.currentDir[N]) ? _("", !0) : (l(), f("span", {
6874
+ isNaN(p.tableData.currentDir[g]) ? F("", !0) : (s(), W("span", {
6903
6875
  key: 0,
6904
6876
  class: "iconfont icon gray",
6905
6877
  id: "meteoGrayIcon",
6906
- style: o0({ display: "inline-block", transform: `rotate(${p.tableData.currentDir[N]}deg)` })
6878
+ style: O0({ display: "inline-block", transform: `rotate(${p.tableData.currentDir[g]}deg)` })
6907
6879
  }, "", 4)),
6908
- c("span", null, w(L), 1)
6880
+ c("span", null, T(u), 1)
6909
6881
  ]))), 128))
6910
6882
  ])
6911
6883
  ], 512), [
@@ -6913,158 +6885,145 @@ function rb(z, M, b, O, p, o) {
6913
6885
  ]),
6914
6886
  y0(c("table", GM, [
6915
6887
  c("tr", UM, [
6916
- M[23] || (M[23] = c("th", {
6888
+ M[24] || (M[24] = c("th", {
6917
6889
  rowspan: "1",
6918
6890
  colspan: "1",
6919
6891
  class: "tr-title"
6920
6892
  }, [
6921
- p0("Hours"),
6893
+ $("Hours"),
6922
6894
  c("span", { class: "unit" }, "(LT)")
6923
6895
  ], -1)),
6924
- (l(!0), f(j, null, G(p.tableData.hours, (L, N) => (l(), f("th", {
6896
+ (s(!0), W(H, null, j(p.tableData.hours, (u, g) => (s(), W("th", {
6925
6897
  rowspan: "1",
6926
6898
  colspan: "1",
6927
- key: `seahoursL${N}${L}`
6928
- }, w(o.computeHourL(L)), 1))), 128))
6899
+ key: `seahoursL${g}${u}`
6900
+ }, T(o.computeHourL(u)), 1))), 128))
6929
6901
  ]),
6930
6902
  c("tr", KM, [
6931
- M[24] || (M[24] = c("th", {
6903
+ M[25] || (M[25] = c("th", {
6932
6904
  rowspan: "1",
6933
6905
  colspan: "1",
6934
6906
  class: "tr-title"
6935
6907
  }, [
6936
- p0("UTC"),
6908
+ $("UTC"),
6937
6909
  c("span", { class: "unit" })
6938
6910
  ], -1)),
6939
- (l(!0), f(j, null, G(p.tableData.hours, (L, N) => (l(), f("th", {
6911
+ (s(!0), W(H, null, j(p.tableData.hours, (u, g) => (s(), W("th", {
6940
6912
  rowspan: "1",
6941
6913
  colspan: "1",
6942
- key: `seahoursZ${N}${L}`
6943
- }, w(o.computeHourZ(L)), 1))), 128))
6914
+ key: `seahoursZ${g}${u}`
6915
+ }, T(o.computeHourZ(u)), 1))), 128))
6944
6916
  ]),
6945
6917
  c("tr", JM, [
6946
- M[25] || (M[25] = c("th", {
6918
+ M[26] || (M[26] = c("th", {
6947
6919
  rowspan: "1",
6948
6920
  colspan: "1",
6949
6921
  class: "tr-title"
6950
6922
  }, null, -1)),
6951
- (l(!0), f(j, null, G(p.tableData.weatherUrls, (L, N) => (l(), f("th", {
6923
+ (s(!0), W(H, null, j(p.tableData.weatherUrls, (u, g) => (s(), W("th", {
6952
6924
  rowspan: "1",
6953
6925
  colspan: "1",
6954
- key: `seaweatherUrls${N}${L}`
6926
+ key: `seaweatherUrls${g}${u}`
6955
6927
  }, [
6956
- C(q, {
6928
+ w(q, {
6957
6929
  placement: "top",
6958
6930
  effect: "light",
6959
- content: p.tableData.weatherNames[N],
6931
+ content: p.tableData.weatherNames[g],
6960
6932
  "show-after": 500
6961
6933
  }, {
6962
- default: A0(() => [
6963
- L ? (l(), f("img", {
6934
+ default: c0(() => [
6935
+ u ? (s(), W("img", {
6964
6936
  key: 0,
6965
6937
  class: "iconfont weather-icon",
6966
- src: L
6967
- }, null, 8, YM)) : _("", !0)
6938
+ src: u
6939
+ }, null, 8, YM)) : F("", !0)
6968
6940
  ]),
6969
6941
  _: 2
6970
6942
  }, 1032, ["content"])
6971
6943
  ]))), 128))
6972
6944
  ]),
6973
6945
  c("tr", VM, [
6974
- M[26] || (M[26] = c("td", {
6946
+ M[27] || (M[27] = c("td", {
6975
6947
  rowspan: "1",
6976
6948
  colspan: "1",
6977
6949
  class: "tr-title"
6978
6950
  }, [
6979
- p0("SeaLevel"),
6951
+ $("SeaLevel"),
6980
6952
  c("span", { class: "unit" }, "m")
6981
6953
  ], -1)),
6982
- (l(!0), f(j, null, G(p.tableData.seaLevel, (L, N) => (l(), f("td", {
6954
+ (s(!0), W(H, null, j(p.tableData.seaLevel, (u, g) => (s(), W("td", {
6983
6955
  rowspan: "1",
6984
6956
  colspan: "1",
6985
- key: `SeaLevel${N}${L}`
6986
- }, w(L), 1))), 128))
6957
+ key: `SeaLevel${g}${u}`
6958
+ }, T(u), 1))), 128))
6987
6959
  ]),
6988
6960
  c("tr", ZM, [
6989
- M[27] || (M[27] = c("td", {
6961
+ M[28] || (M[28] = c("td", {
6990
6962
  rowspan: "1",
6991
6963
  colspan: "1",
6992
6964
  class: "tr-title"
6993
6965
  }, [
6994
- p0("SeaTemp"),
6966
+ $("SeaTemp"),
6995
6967
  c("span", { class: "unit" }, "°C")
6996
6968
  ], -1)),
6997
- (l(!0), f(j, null, G(p.tableData.seaTemp, (L, N) => (l(), f("td", {
6969
+ (s(!0), W(H, null, j(p.tableData.seaTemp, (u, g) => (s(), W("td", {
6998
6970
  rowspan: "1",
6999
6971
  colspan: "1",
7000
- key: `SeaTemp${N}${L}`
7001
- }, w(L), 1))), 128))
6972
+ key: `SeaTemp${g}${u}`
6973
+ }, T(u), 1))), 128))
7002
6974
  ]),
7003
6975
  c("tr", $M, [
7004
- M[28] || (M[28] = c("td", {
6976
+ M[29] || (M[29] = c("td", {
7005
6977
  rowspan: "1",
7006
6978
  colspan: "1",
7007
6979
  class: "tr-title"
7008
6980
  }, [
7009
6981
  c("span", { class: "unit" })
7010
6982
  ], -1)),
7011
- (l(!0), f(j, null, G(p.tableData.seaTemp, (L, N) => (l(), f("td", {
6983
+ (s(!0), W(H, null, j(p.tableData.seaTemp, (u, g) => (s(), W("td", {
7012
6984
  rowspan: "1",
7013
6985
  colspan: "1",
7014
- key: `seaTemp-${N}${L}`
6986
+ key: `seaTemp-${g}${u}`
7015
6987
  }))), 128))
7016
6988
  ]),
7017
6989
  c("tr", Mb, [
7018
- M[29] || (M[29] = c("td", {
6990
+ M[30] || (M[30] = c("td", {
7019
6991
  rowspan: "1",
7020
6992
  colspan: "1",
7021
6993
  class: "tr-title"
7022
6994
  }, [
7023
6995
  c("span", { class: "unit" })
7024
6996
  ], -1)),
7025
- (l(!0), f(j, null, G(p.tableData.seaTemp, (L, N) => (l(), f("td", {
6997
+ (s(!0), W(H, null, j(p.tableData.seaTemp, (u, g) => (s(), W("td", {
7026
6998
  rowspan: "1",
7027
6999
  colspan: "1",
7028
- key: `seaTemp--${N}${L}`
7000
+ key: `seaTemp--${g}${u}`
7029
7001
  }))), 128))
7030
7002
  ])
7031
7003
  ], 512), [
7032
7004
  [X0, p.activeIndex === 3]
7033
7005
  ]),
7034
7006
  y0(c("table", bb, [
7035
- M[30] || (M[30] = c("tr", { class: "tr-tide flex-space" }, [
7036
- c("th", {
7037
- rowspan: "1",
7038
- colspan: "1",
7039
- class: ""
7040
- }, "High Tide"),
7041
- c("th", {
7007
+ c("tr", zb, [
7008
+ (s(!0), W(H, null, j(p.tideTableData, (u, g) => (s(), W("th", {
7042
7009
  rowspan: "1",
7043
7010
  colspan: "1",
7044
- class: ""
7045
- }, "Low Tide"),
7046
- c("th", {
7011
+ key: `Tide-tr-${g}${u}`
7012
+ }, T(u.type) + " Tide", 1))), 128))
7013
+ ]),
7014
+ c("tr", pb, [
7015
+ (s(!0), W(H, null, j(p.tideTableData, (u, g) => (s(), W("td", {
7047
7016
  rowspan: "1",
7048
7017
  colspan: "1",
7049
- class: ""
7050
- }, "High Tide"),
7051
- c("th", {
7018
+ key: `Tide-date-${g}${u}`
7019
+ }, T(o.computeHourHmmLT(u == null ? void 0 : u.date)), 1))), 128))
7020
+ ]),
7021
+ c("tr", Ob, [
7022
+ (s(!0), W(H, null, j(p.tideTableData, (u, g) => (s(), W("td", {
7052
7023
  rowspan: "1",
7053
7024
  colspan: "1",
7054
- class: ""
7055
- }, "Low Tide")
7056
- ], -1)),
7057
- c("tr", zb, [
7058
- c("td", pb, w(o.computeHourHmmLT((V = (U = p.tideTableData) == null ? void 0 : U[0]) == null ? void 0 : V.date)), 1),
7059
- c("td", Ob, w(o.computeHourHmmLT((b0 = (M0 = p.tideTableData) == null ? void 0 : M0[1]) == null ? void 0 : b0.date)), 1),
7060
- c("td", ob, w(o.computeHourHmmLT((l0 = (t0 = p.tideTableData) == null ? void 0 : t0[2]) == null ? void 0 : l0.date)), 1),
7061
- c("td", cb, w(o.computeHourHmmLT((a0 = (f0 = p.tideTableData) == null ? void 0 : f0[3]) == null ? void 0 : a0.date)), 1)
7062
- ]),
7063
- c("tr", Ab, [
7064
- c("td", eb, w((z0 = (s0 = p.tideTableData) == null ? void 0 : s0[0]) == null ? void 0 : z0.height) + " m", 1),
7065
- c("td", tb, w((L0 = (u0 = p.tideTableData) == null ? void 0 : u0[1]) == null ? void 0 : L0.height) + " m", 1),
7066
- c("td", ab, w((q0 = (W0 = p.tideTableData) == null ? void 0 : W0[2]) == null ? void 0 : q0.height) + " m", 1),
7067
- c("td", qb, w((R0 = (n0 = p.tideTableData) == null ? void 0 : n0[3]) == null ? void 0 : R0.height) + " m", 1)
7025
+ key: `Tide-height-${g}${u}`
7026
+ }, T(o.roundPrecision(u == null ? void 0 : u.height, 2)) + " m", 1))), 128))
7068
7027
  ]),
7069
7028
  M[31] || (M[31] = c("tr", { class: "tr-tide flex-center info" }, [
7070
7029
  c("span", null, "Tide Datum: Chart Datum")
@@ -7073,11 +7032,11 @@ function rb(z, M, b, O, p, o) {
7073
7032
  [X0, p.activeIndex === 4]
7074
7033
  ])
7075
7034
  ], 512), [
7076
- [X0, ((D = (d0 = p.tableData) == null ? void 0 : d0.hours) == null ? void 0 : D.length) > 0]
7035
+ [X0, ((V = (K = p.tableData) == null ? void 0 : K.hours) == null ? void 0 : V.length) > 0]
7077
7036
  ]),
7078
7037
  c("div", {
7079
7038
  class: "more",
7080
- onClick: M[4] || (M[4] = (...L) => o.handleMeteoMore && o.handleMeteoMore(...L))
7039
+ onClick: M[5] || (M[5] = (...u) => o.handleMeteoMore && o.handleMeteoMore(...u))
7081
7040
  }, "More >>")
7082
7041
  ]))
7083
7042
  ])
@@ -7085,7 +7044,7 @@ function rb(z, M, b, O, p, o) {
7085
7044
  [X0, p.showMeteo]
7086
7045
  ]);
7087
7046
  }
7088
- const nb = /* @__PURE__ */ k(AM, [["render", rb], ["__scopeId", "data-v-e3aa87eb"]]), db = {
7047
+ const Ab = /* @__PURE__ */ k(AM, [["render", cb], ["__scopeId", "data-v-74576e3a"]]), eb = {
7089
7048
  name: "IdmWarZone",
7090
7049
  props: {
7091
7050
  map: {
@@ -7175,10 +7134,10 @@ const nb = /* @__PURE__ */ k(AM, [["render", rb], ["__scopeId", "data-v-e3aa87eb
7175
7134
  }
7176
7135
  }
7177
7136
  };
7178
- function sb(z, M, b, O, p, o) {
7179
- return l(), f("div");
7137
+ function tb(z, M, b, O, p, o) {
7138
+ return s(), W("div");
7180
7139
  }
7181
- const Wb = /* @__PURE__ */ k(db, [["render", sb]]), lb = {
7140
+ const ab = /* @__PURE__ */ k(eb, [["render", tb]]), qb = {
7182
7141
  name: "IdmGmdssArea",
7183
7142
  props: {
7184
7143
  map: {
@@ -7298,10 +7257,10 @@ const Wb = /* @__PURE__ */ k(db, [["render", sb]]), lb = {
7298
7257
  }
7299
7258
  }
7300
7259
  };
7301
- function fb(z, M, b, O, p, o) {
7302
- return l(), f("div");
7260
+ function ib(z, M, b, O, p, o) {
7261
+ return s(), W("div");
7303
7262
  }
7304
- const ub = /* @__PURE__ */ k(lb, [["render", fb]]), Lb = {
7263
+ const rb = /* @__PURE__ */ k(qb, [["render", ib]]), nb = {
7305
7264
  name: "IdmEcaZone",
7306
7265
  props: {
7307
7266
  map: {
@@ -7389,11 +7348,11 @@ const ub = /* @__PURE__ */ k(lb, [["render", fb]]), Lb = {
7389
7348
  }
7390
7349
  }
7391
7350
  };
7392
- function Rb(z, M, b, O, p, o) {
7393
- return l(), f("div");
7351
+ function db(z, M, b, O, p, o) {
7352
+ return s(), W("div");
7394
7353
  }
7395
- const hb = /* @__PURE__ */ k(Lb, [["render", Rb]]);
7396
- const mb = {
7354
+ const sb = /* @__PURE__ */ k(nb, [["render", db]]);
7355
+ const Wb = {
7397
7356
  name: "IdmAlertZone",
7398
7357
  props: {
7399
7358
  map: {
@@ -7523,10 +7482,10 @@ const mb = {
7523
7482
  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);
7524
7483
  }
7525
7484
  }
7526
- }, Bb = { id: "idm-gl3-zone-info" }, gb = ["innerHTML"];
7527
- function Nb(z, M, b, O, p, o) {
7485
+ }, lb = { id: "idm-gl3-zone-info" }, fb = ["innerHTML"];
7486
+ function ub(z, M, b, O, p, o) {
7528
7487
  var A;
7529
- return y0((l(), f("div", Bb, [
7488
+ return y0((s(), W("div", lb, [
7530
7489
  c("div", {
7531
7490
  class: "iconfont close",
7532
7491
  onClick: M[0] || (M[0] = (t) => p.showZone = !1)
@@ -7534,13 +7493,13 @@ function Nb(z, M, b, O, p, o) {
7534
7493
  c("div", {
7535
7494
  class: "rich-context",
7536
7495
  innerHTML: (A = p.form) == null ? void 0 : A.name
7537
- }, null, 8, gb)
7496
+ }, null, 8, fb)
7538
7497
  ], 512)), [
7539
7498
  [X0, p.showZone]
7540
7499
  ]);
7541
7500
  }
7542
- const yb = /* @__PURE__ */ k(mb, [["render", Nb]]);
7543
- const Xb = {
7501
+ const Lb = /* @__PURE__ */ k(Wb, [["render", ub]]);
7502
+ const Rb = {
7544
7503
  name: "IdmPort",
7545
7504
  props: {
7546
7505
  map: {
@@ -7569,12 +7528,12 @@ const Xb = {
7569
7528
  computed: {
7570
7529
  computeLat() {
7571
7530
  return function(z) {
7572
- return O0.lat2pretty(z, 4).pretty;
7531
+ return M0.lat2pretty(z, 4).pretty;
7573
7532
  };
7574
7533
  },
7575
7534
  computeLng() {
7576
7535
  return function(z) {
7577
- return O0.lng2pretty(z, 4).pretty;
7536
+ return M0.lng2pretty(z, 4).pretty;
7578
7537
  };
7579
7538
  }
7580
7539
  },
@@ -7635,37 +7594,37 @@ const Xb = {
7635
7594
  z.forecastModel = this.meteoSource, this.$emit("meteoMore", z);
7636
7595
  }
7637
7596
  }
7638
- }, wb = {
7597
+ }, hb = {
7639
7598
  ref: "idmPortInfo",
7640
7599
  id: "port-info"
7641
- }, Cb = { class: "port-box" }, vb = { class: "flex-start" }, Tb = { class: "flex-start" }, Eb = { class: "flex-start" }, xb = {
7600
+ }, mb = { class: "port-box" }, Bb = { class: "flex-start" }, gb = { class: "flex-start" }, Nb = { class: "flex-start" }, yb = {
7642
7601
  class: "flex-start",
7643
7602
  style: { "align-items": "flex-start" }
7644
- }, Ib = { class: "meteo-forecast flex-end" };
7645
- function Db(z, M, b, O, p, o) {
7646
- return y0((l(), f("div", wb, [
7603
+ }, Xb = { class: "meteo-forecast flex-end" };
7604
+ function wb(z, M, b, O, p, o) {
7605
+ return y0((s(), W("div", hb, [
7647
7606
  c("div", {
7648
7607
  class: "close iconfont",
7649
7608
  onClick: M[0] || (M[0] = (A) => p.showPort = !1)
7650
7609
  }, ""),
7651
- c("div", Cb, [
7652
- c("div", vb, [
7610
+ c("div", mb, [
7611
+ c("div", Bb, [
7653
7612
  M[2] || (M[2] = c("label", null, "Name : ", -1)),
7654
- c("span", null, w(p.form.name), 1)
7613
+ c("span", null, T(p.form.name), 1)
7655
7614
  ]),
7656
- c("div", Tb, [
7615
+ c("div", gb, [
7657
7616
  M[3] || (M[3] = c("label", null, "Position : ", -1)),
7658
- c("span", null, w(o.computeLat(p.form.lat)) + ", " + w(o.computeLng(p.form.lng)), 1)
7617
+ c("span", null, T(o.computeLat(p.form.lat)) + ", " + T(o.computeLng(p.form.lng)), 1)
7659
7618
  ]),
7660
- c("div", Eb, [
7619
+ c("div", Nb, [
7661
7620
  M[4] || (M[4] = c("label", null, "LoCode : ", -1)),
7662
- c("span", null, w(p.form.loCode || "-"), 1)
7621
+ c("span", null, T(p.form.loCode || "-"), 1)
7663
7622
  ]),
7664
- c("div", xb, [
7623
+ c("div", yb, [
7665
7624
  M[5] || (M[5] = c("label", null, "Region : ", -1)),
7666
- c("span", null, w(p.form.zoneName || "-"), 1)
7625
+ c("span", null, T(p.form.zoneName || "-"), 1)
7667
7626
  ]),
7668
- c("div", Ib, [
7627
+ c("div", Xb, [
7669
7628
  c("span", {
7670
7629
  onClick: M[1] || (M[1] = (A) => o.handleClickMeteo(p.form))
7671
7630
  }, "Meteo Forecast")
@@ -7675,7 +7634,7 @@ function Db(z, M, b, O, p, o) {
7675
7634
  [X0, p.showPort]
7676
7635
  ]);
7677
7636
  }
7678
- const Sb = /* @__PURE__ */ k(Xb, [["render", Db], ["__scopeId", "data-v-78859648"]]), Pb = {
7637
+ const Cb = /* @__PURE__ */ k(Rb, [["render", wb], ["__scopeId", "data-v-78859648"]]), vb = {
7679
7638
  name: "IdmLoadLine",
7680
7639
  props: {
7681
7640
  map: {
@@ -7745,10 +7704,10 @@ const Sb = /* @__PURE__ */ k(Xb, [["render", Db], ["__scopeId", "data-v-78859648
7745
7704
  }
7746
7705
  }
7747
7706
  };
7748
- function kb(z, M, b, O, p, o) {
7749
- return l(), f("div");
7707
+ function Tb(z, M, b, O, p, o) {
7708
+ return s(), W("div");
7750
7709
  }
7751
- const Qb = /* @__PURE__ */ k(Pb, [["render", kb]]), Hb = {
7710
+ const Eb = /* @__PURE__ */ k(vb, [["render", Tb]]), xb = {
7752
7711
  name: "IdmTimezone",
7753
7712
  props: {
7754
7713
  map: {
@@ -7913,10 +7872,10 @@ const Qb = /* @__PURE__ */ k(Pb, [["render", kb]]), Hb = {
7913
7872
  }
7914
7873
  }
7915
7874
  };
7916
- function _b(z, M, b, O, p, o) {
7917
- return l(), f("div");
7875
+ function Ib(z, M, b, O, p, o) {
7876
+ return s(), W("div");
7918
7877
  }
7919
- const jb = /* @__PURE__ */ k(Hb, [["render", _b]]), Fb = {
7878
+ const Db = /* @__PURE__ */ k(xb, [["render", Ib]]), Sb = {
7920
7879
  name: "IdmVoluntaryReportingArea",
7921
7880
  props: {
7922
7881
  map: {
@@ -8004,10 +7963,10 @@ const jb = /* @__PURE__ */ k(Hb, [["render", _b]]), Fb = {
8004
7963
  }
8005
7964
  }
8006
7965
  };
8007
- function Gb(z, M, b, O, p, o) {
8008
- return l(), f("div");
7966
+ function Pb(z, M, b, O, p, o) {
7967
+ return s(), W("div");
8009
7968
  }
8010
- const Ub = /* @__PURE__ */ k(Fb, [["render", Gb]]), Kb = {
7969
+ const kb = /* @__PURE__ */ k(Sb, [["render", Pb]]), Qb = {
8011
7970
  name: "IdmSpecialArea",
8012
7971
  props: {
8013
7972
  map: {
@@ -8037,7 +7996,7 @@ const Ub = /* @__PURE__ */ k(Fb, [["render", Gb]]), Kb = {
8037
7996
  methods: {
8038
7997
  handleRender() {
8039
7998
  this.map ? (this.handleClear(), this.area && (this.area.features.forEach((z) => {
8040
- z.geometry.type === "Polygon" && z.geometry.coordinates.forEach((M) => O0.convertToMonotonicLng2(M));
7999
+ z.geometry.type === "Polygon" && z.geometry.coordinates.forEach((M) => M0.convertToMonotonicLng2(M));
8041
8000
  }), this.map.addSource(this.source, {
8042
8001
  type: "geojson",
8043
8002
  data: this.area
@@ -8097,10 +8056,10 @@ const Ub = /* @__PURE__ */ k(Fb, [["render", Gb]]), Kb = {
8097
8056
  }
8098
8057
  }
8099
8058
  };
8100
- function Jb(z, M, b, O, p, o) {
8101
- return l(), f("div");
8059
+ function Hb(z, M, b, O, p, o) {
8060
+ return s(), W("div");
8102
8061
  }
8103
- const Yb = /* @__PURE__ */ k(Kb, [["render", Jb]]), Vb = {
8062
+ const _b = /* @__PURE__ */ k(Qb, [["render", Hb]]), jb = {
8104
8063
  name: "IdmTerminator",
8105
8064
  props: {
8106
8065
  map: {
@@ -8149,11 +8108,11 @@ const Yb = /* @__PURE__ */ k(Kb, [["render", Jb]]), Vb = {
8149
8108
  }
8150
8109
  }
8151
8110
  };
8152
- function Zb(z, M, b, O, p, o) {
8153
- return l(), f("div");
8111
+ function Fb(z, M, b, O, p, o) {
8112
+ return s(), W("div");
8154
8113
  }
8155
- const $b = /* @__PURE__ */ k(Vb, [["render", Zb]]);
8156
- const Mz = {
8114
+ const Gb = /* @__PURE__ */ k(jb, [["render", Fb]]);
8115
+ const Ub = {
8157
8116
  name: "IdmLatLng",
8158
8117
  props: {
8159
8118
  map: {
@@ -8211,7 +8170,7 @@ const Mz = {
8211
8170
  this.show ? ((z = this.map) == null || z.on("zoomend", this.handleZoomEnd), this.handleRender()) : (this.handleClear(), (M = this.map) == null || M.off("zoomend", this.handleZoomEnd));
8212
8171
  },
8213
8172
  handleMouseMove(z) {
8214
- const M = z.lngLat, b = O0.lng2pretty(M.lng, 2), O = O0.lat2pretty(M.lat, 2);
8173
+ const M = z.lngLat, b = M0.lng2pretty(M.lng, 2), O = M0.lat2pretty(M.lat, 2);
8215
8174
  this.lngLat = { lng: b, lat: O };
8216
8175
  },
8217
8176
  handleComputeLatLngs() {
@@ -8260,7 +8219,7 @@ const Mz = {
8260
8219
  handleZoomEnd() {
8261
8220
  var M;
8262
8221
  const z = this.handleComputeLatLngs();
8263
- (M = this.map) == null || M.getSource(this.source).setData(T.featureCollection(z));
8222
+ (M = this.map) == null || M.getSource(this.source).setData(v.featureCollection(z));
8264
8223
  },
8265
8224
  handleRender() {
8266
8225
  if (this.map) {
@@ -8309,18 +8268,18 @@ const Mz = {
8309
8268
  }
8310
8269
  }
8311
8270
  };
8312
- function bz(z, M, b, O, p, o) {
8313
- return p.lngLat ? (l(), f("div", {
8271
+ function Kb(z, M, b, O, p, o) {
8272
+ return p.lngLat ? (s(), W("div", {
8314
8273
  key: 0,
8315
8274
  class: "lat-lng-tip",
8316
- style: o0({ right: p.right + "px", bottom: b.bottom })
8275
+ style: O0({ right: p.right + "px", bottom: b.bottom })
8317
8276
  }, [
8318
- c("span", null, w(p.lngLat.lat.pretty), 1),
8277
+ c("span", null, T(p.lngLat.lat.pretty), 1),
8319
8278
  M[0] || (M[0] = c("span", null, ", ", -1)),
8320
- c("span", null, w(p.lngLat.lng.pretty), 1)
8321
- ], 4)) : _("", !0);
8279
+ c("span", null, T(p.lngLat.lng.pretty), 1)
8280
+ ], 4)) : F("", !0);
8322
8281
  }
8323
- const K0 = /* @__PURE__ */ k(Mz, [["render", bz], ["__scopeId", "data-v-ad66a24c"]]), zz = {
8282
+ const K0 = /* @__PURE__ */ k(Ub, [["render", Kb], ["__scopeId", "data-v-ad66a24c"]]), Jb = {
8324
8283
  name: "IdmMeasure",
8325
8284
  props: {
8326
8285
  map: {
@@ -8382,21 +8341,21 @@ const K0 = /* @__PURE__ */ k(Mz, [["render", bz], ["__scopeId", "data-v-ad66a24c
8382
8341
  var b, O, p, o, A, t, q, r, a, n;
8383
8342
  const M = (O = (b = z.target) == null ? void 0 : b._element) == null ? void 0 : O.id;
8384
8343
  if ((M == null ? void 0 : M.split("-").length) === 2) {
8385
- const s = this.geojson.filter((W) => W.id === M.split("-")[0])[0];
8386
- this.pointMarkers[s.id].filter((W) => {
8344
+ const l = this.geojson.filter((f) => f.id === M.split("-")[0])[0];
8345
+ this.pointMarkers[l.id].filter((f) => {
8387
8346
  var m;
8388
- return ((m = W._element) == null ? void 0 : m.id) === M;
8347
+ return ((m = f._element) == null ? void 0 : m.id) === M;
8389
8348
  })[0].setLngLat([(o = (p = z.target) == null ? void 0 : p._lngLat) == null ? void 0 : o.lng, (t = (A = z.target) == null ? void 0 : A._lngLat) == null ? void 0 : t.lat]);
8390
8349
  let B;
8391
- s.features.forEach((W, m) => {
8392
- if (W.geometry.type === "Point" && W.properties.id == M.split("-")[1]) {
8350
+ l.features.forEach((f, m) => {
8351
+ if (f.geometry.type === "Point" && f.properties.id == M.split("-")[1]) {
8393
8352
  B = m;
8394
8353
  return;
8395
8354
  }
8396
8355
  });
8397
- const R = s.features.filter((W) => W.geometry.type === "Point");
8356
+ const R = l.features.filter((f) => f.geometry.type === "Point");
8398
8357
  this.handleTmpPointUpdate(
8399
- s,
8358
+ l,
8400
8359
  R[B - 1],
8401
8360
  { lng: (r = (q = z.target) == null ? void 0 : q._lngLat) == null ? void 0 : r.lng, lat: (n = (a = z.target) == null ? void 0 : a._lngLat) == null ? void 0 : n.lat, properties: R[B].properties },
8402
8361
  B === R.length - 1 ? void 0 : R[B + 1]
@@ -8407,13 +8366,13 @@ const K0 = /* @__PURE__ */ k(Mz, [["render", bz], ["__scopeId", "data-v-ad66a24c
8407
8366
  var b, O, p, o, A, t, q, r, a, n;
8408
8367
  const M = (O = (b = z.target) == null ? void 0 : b._element) == null ? void 0 : O.id;
8409
8368
  if ((M == null ? void 0 : M.split("-").length) === 2) {
8410
- const s = this.geojson.filter((R) => R.id === M.split("-")[0])[0];
8411
- this.pointMarkers[s.id].filter((R) => {
8412
- var W;
8413
- return ((W = R._element) == null ? void 0 : W.id) === M;
8369
+ const l = this.geojson.filter((R) => R.id === M.split("-")[0])[0];
8370
+ this.pointMarkers[l.id].filter((R) => {
8371
+ var f;
8372
+ return ((f = R._element) == null ? void 0 : f.id) === M;
8414
8373
  })[0].setLngLat([(o = (p = z.target) == null ? void 0 : p._lngLat) == null ? void 0 : o.lng, (t = (A = z.target) == null ? void 0 : A._lngLat) == null ? void 0 : t.lat]);
8415
- const B = s.features.filter((R) => R.geometry.type === "Point" && R.properties.id == M.split("-")[1])[0];
8416
- B.geometry.coordinates = [(r = (q = z.target) == null ? void 0 : q._lngLat) == null ? void 0 : r.lng, (n = (a = z.target) == null ? void 0 : a._lngLat) == null ? void 0 : n.lat], s.features = s.features.filter((R) => R.geometry.type === "Point"), this.handlePointUpdate(s);
8374
+ const B = l.features.filter((R) => R.geometry.type === "Point" && R.properties.id == M.split("-")[1])[0];
8375
+ B.geometry.coordinates = [(r = (q = z.target) == null ? void 0 : q._lngLat) == null ? void 0 : r.lng, (n = (a = z.target) == null ? void 0 : a._lngLat) == null ? void 0 : n.lat], l.features = l.features.filter((R) => R.geometry.type === "Point"), this.handlePointUpdate(l);
8417
8376
  }
8418
8377
  },
8419
8378
  handleContextmenu(z) {
@@ -8440,8 +8399,8 @@ const K0 = /* @__PURE__ */ k(Mz, [["render", bz], ["__scopeId", "data-v-ad66a24c
8440
8399
  q.features = q.features.filter((r) => r.geometry.type === "Point" && r.properties.id !== t[1]), this.handlePointUpdate(q);
8441
8400
  } else if (M !== "marker-label") {
8442
8401
  let t = this.geojson.at(-1);
8443
- t || (t = T.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(t)), t.features = t.features.filter((r) => r.geometry.type === "Point");
8444
- const q = T.feature(
8402
+ t || (t = v.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(t)), t.features = t.features.filter((r) => r.geometry.type === "Point");
8403
+ const q = v.feature(
8445
8404
  {
8446
8405
  type: "Point",
8447
8406
  coordinates: [z.lngLat.lng, z.lngLat.lat]
@@ -8461,10 +8420,10 @@ const K0 = /* @__PURE__ */ k(Mz, [["render", bz], ["__scopeId", "data-v-ad66a24c
8461
8420
  const O = [];
8462
8421
  for (let p = 1; p < M.length; p++) {
8463
8422
  const o = M[p - 1], A = M[p], t = o.properties, q = { lng: o.geometry.coordinates[0], lat: o.geometry.coordinates[1] }, r = { lng: A.geometry.coordinates[0], lat: A.geometry.coordinates[1] }, a = N0.calculateDistance(q, r, t.mode === "RL", 2), n = N0.calculateBearing(q, r, t.mode === "RL", 2);
8464
- b = O0.roundPrecision(b + a, 2);
8465
- let s;
8466
- t.mode === "RL" ? s = O0.convertToMonotonicLng([q, r]) : s = O0.convertToMonotonicLng(N0.interpolateCoordinates(q, r, 200));
8467
- const d = T.lineString(s.map((B) => [B.lng, B.lat]));
8423
+ b = M0.roundPrecision(b + a, 2);
8424
+ let l;
8425
+ t.mode === "RL" ? l = M0.convertToMonotonicLng([q, r]) : l = M0.convertToMonotonicLng(N0.interpolateCoordinates(q, r, 200));
8426
+ const d = v.lineString(l.map((B) => [B.lng, B.lat]));
8468
8427
  d.properties.dist = a, d.properties.bearing = n, d.properties.total = b, O.push(d);
8469
8428
  }
8470
8429
  M.push(...O), z.total = b;
@@ -8472,23 +8431,23 @@ const K0 = /* @__PURE__ */ k(Mz, [["render", bz], ["__scopeId", "data-v-ad66a24c
8472
8431
  return this.handleRender(z), z;
8473
8432
  },
8474
8433
  handleTmpPointUpdate(z, M, b, O) {
8475
- const p = T.featureCollection([]);
8434
+ const p = v.featureCollection([]);
8476
8435
  let o, A;
8477
8436
  if (M) {
8478
8437
  const q = M.properties, r = { lng: M.geometry.coordinates[0], lat: M.geometry.coordinates[1] }, a = { lng: b.lng, lat: b.lat };
8479
8438
  o = N0.calculateDistance(r, a, q.mode === "RL", 2), A = N0.calculateBearing(r, a, q.mode === "RL", 2);
8480
8439
  let n;
8481
- q.mode === "RL" ? n = O0.convertToMonotonicLng([r, a]) : n = O0.convertToMonotonicLng(N0.interpolateCoordinates(r, a, 200));
8482
- const s = T.lineString(n.map((d) => [d.lng, d.lat]));
8483
- s.properties.dist = o, s.properties.bearing = A, p.features.push(s);
8440
+ q.mode === "RL" ? n = M0.convertToMonotonicLng([r, a]) : n = M0.convertToMonotonicLng(N0.interpolateCoordinates(r, a, 200));
8441
+ const l = v.lineString(n.map((d) => [d.lng, d.lat]));
8442
+ l.properties.dist = o, l.properties.bearing = A, p.features.push(l);
8484
8443
  }
8485
8444
  if (O) {
8486
8445
  const q = b.properties, r = b, a = { lng: O.geometry.coordinates[0], lat: O.geometry.coordinates[1] };
8487
8446
  o = N0.calculateDistance(r, a, q.mode === "RL", 2), A = N0.calculateBearing(r, a, q.mode === "RL", 2);
8488
8447
  let n;
8489
- q.mode === "RL" ? n = O0.convertToMonotonicLng([r, a]) : n = O0.convertToMonotonicLng(N0.interpolateCoordinates(r, a, 200));
8490
- const s = T.lineString(n.map((d) => [d.lng, d.lat]));
8491
- s.properties.dist = o, s.properties.bearing = A, p.features.push(s);
8448
+ q.mode === "RL" ? n = M0.convertToMonotonicLng([r, a]) : n = M0.convertToMonotonicLng(N0.interpolateCoordinates(r, a, 200));
8449
+ const l = v.lineString(n.map((d) => [d.lng, d.lat]));
8450
+ l.properties.dist = o, l.properties.bearing = A, p.features.push(l);
8492
8451
  }
8493
8452
  this.map.getSource(this.tmpSource) ? this.map.getSource(this.tmpSource).setData(p) : this.map.addSource(this.tmpSource, {
8494
8453
  type: "geojson",
@@ -8528,7 +8487,7 @@ const K0 = /* @__PURE__ */ k(Mz, [["render", bz], ["__scopeId", "data-v-ad66a24c
8528
8487
  }
8529
8488
  });
8530
8489
  let t;
8531
- if (O ? t = '<div class="marker-label">Drag and drop</div>' : t = `<div class="marker-label">Tol distance: <b>${O0.roundPrecision((z.total ?? 0) + o, 2)}</b>nm, bearing: <b>${A}</b>°</div><div class="marker-label">${this.navigation === "RL" ? "RL" : "GC"} mode, using 'Shift' to switch</div><div class="marker-label">Double click to end</div>`, this.tipMarker)
8490
+ if (O ? t = '<div class="marker-label">Drag and drop</div>' : t = `<div class="marker-label">Tol distance: <b>${M0.roundPrecision((z.total ?? 0) + o, 2)}</b>nm, bearing: <b>${A}</b>°</div><div class="marker-label">${this.navigation === "RL" ? "RL" : "GC"} mode, using 'Shift' to switch</div><div class="marker-label">Double click to end</div>`, this.tipMarker)
8532
8491
  this.tipMarker._element.innerHTML = t, this.tipMarker.setLngLat([b.lng, b.lat]);
8533
8492
  else {
8534
8493
  const q = document.createElement("div");
@@ -8538,14 +8497,14 @@ const K0 = /* @__PURE__ */ k(Mz, [["render", bz], ["__scopeId", "data-v-ad66a24c
8538
8497
  handleMove(z) {
8539
8498
  this.map.getCanvas().style.cursor = "crosshair";
8540
8499
  let M = this.geojson.at(-1);
8541
- M || (M = T.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(M));
8500
+ M || (M = v.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(M));
8542
8501
  const b = M.features.filter((O) => O.geometry.type === "Point");
8543
8502
  b != null && b.length && this.handleTmpPointUpdate(M, b.at(-1), { lng: z.lngLat.lng, lat: z.lngLat.lat });
8544
8503
  },
8545
8504
  handleDblClick(z) {
8546
8505
  z.preventDefault();
8547
8506
  let M = this.geojson.at(-1);
8548
- M.closed = !0, this.handleRender(M), M = T.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(M);
8507
+ M.closed = !0, this.handleRender(M), M = v.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(M);
8549
8508
  },
8550
8509
  handleRender(z) {
8551
8510
  var M;
@@ -8600,19 +8559,19 @@ const K0 = /* @__PURE__ */ k(Mz, [["render", bz], ["__scopeId", "data-v-ad66a24c
8600
8559
  }
8601
8560
  },
8602
8561
  handleClear(z, M = !0) {
8603
- var o, A, t, q, r, a, n, s, d;
8562
+ var o, A, t, q, r, a, n, l, d;
8604
8563
  const b = `${z.id}-${this.source}`, O = `${z.id}-${this.layer}`, p = `${z.id}-${this.labelLayer}`;
8605
8564
  (o = this.map) != null && o.getLayer(O) && this.map.removeLayer(O), (A = this.map) != null && A.getLayer(p) && this.map.removeLayer(p), (t = this.map) != null && t.getLayer(this.tmpLayer) && this.map.removeLayer(this.tmpLayer), (q = this.map) != null && q.getLayer(this.tmpLabelLayer) && this.map.removeLayer(this.tmpLabelLayer), (r = this.closeMarkers[z.id]) == null || r.remove(), this.closeMarkers[z.id] = void 0, (a = this.pointMarkers[z.id]) == null || a.forEach((B) => {
8606
8565
  B == null || B.remove();
8607
- }), this.pointMarkers[z.id] = [], (n = this.tipMarker) == null || n.remove(), this.tipMarker = void 0, M && ((s = this.map) != null && s.getSource(b)) && this.map.removeSource(b), M && ((d = this.map) != null && d.getSource(this.tmpSource)) && this.map.removeSource(this.tmpSource);
8566
+ }), this.pointMarkers[z.id] = [], (n = this.tipMarker) == null || n.remove(), this.tipMarker = void 0, M && ((l = this.map) != null && l.getSource(b)) && this.map.removeSource(b), M && ((d = this.map) != null && d.getSource(this.tmpSource)) && this.map.removeSource(this.tmpSource);
8608
8567
  }
8609
8568
  }
8610
8569
  };
8611
- function pz(z, M, b, O, p, o) {
8612
- return l(), f("div");
8570
+ function Yb(z, M, b, O, p, o) {
8571
+ return s(), W("div");
8613
8572
  }
8614
- const Oz = /* @__PURE__ */ k(zz, [["render", pz]]);
8615
- const oz = {
8573
+ const Vb = /* @__PURE__ */ k(Jb, [["render", Yb]]);
8574
+ const Zb = {
8616
8575
  name: "IdmENC",
8617
8576
  props: {
8618
8577
  map: {
@@ -8664,24 +8623,24 @@ const oz = {
8664
8623
  }
8665
8624
  },
8666
8625
  methods: {}
8667
- }, cz = { key: 0 }, Az = { class: "bar-item" };
8668
- function ez(z, M, b, O, p, o) {
8669
- const A = I("ElTooltip");
8670
- return b.enabled && b.permission & p.helper.LEVEL.Supper ? (l(), f("div", cz, [
8626
+ }, $b = { key: 0 }, Mz = { class: "bar-item" };
8627
+ function bz(z, M, b, O, p, o) {
8628
+ const A = x("ElTooltip");
8629
+ return b.enabled && b.permission & p.helper.LEVEL.Supper ? (s(), W("div", $b, [
8671
8630
  c("div", {
8672
8631
  class: "menu-bar-box",
8673
- style: o0({ position: "absolute", right: p.right + "px", bottom: b.bottom })
8632
+ style: O0({ position: "absolute", right: p.right + "px", bottom: b.bottom })
8674
8633
  }, [
8675
- c("div", Az, [
8676
- C(A, {
8634
+ c("div", Mz, [
8635
+ w(A, {
8677
8636
  placement: "left",
8678
8637
  effect: "light",
8679
8638
  content: "Hifleet",
8680
8639
  "show-after": 1e3
8681
8640
  }, {
8682
- default: A0(() => [
8641
+ default: c0(() => [
8683
8642
  c("div", {
8684
- class: J(p.vendor === "hi" ? "menu-icon active" : "menu-icon"),
8643
+ class: U(p.vendor === "hi" ? "menu-icon active" : "menu-icon"),
8685
8644
  onClick: M[0] || (M[0] = (t) => p.vendor = "hi")
8686
8645
  }, M[2] || (M[2] = [
8687
8646
  c("span", { class: "iconfont" }, "HI", -1)
@@ -8689,15 +8648,15 @@ function ez(z, M, b, O, p, o) {
8689
8648
  ]),
8690
8649
  _: 1
8691
8650
  }),
8692
- C(A, {
8651
+ w(A, {
8693
8652
  placement: "left",
8694
8653
  effect: "light",
8695
8654
  content: "I4insight",
8696
8655
  "show-after": 1e3
8697
8656
  }, {
8698
- default: A0(() => [
8657
+ default: c0(() => [
8699
8658
  c("div", {
8700
- class: J(p.vendor === "i4" ? "menu-icon active" : "menu-icon"),
8659
+ class: U(p.vendor === "i4" ? "menu-icon active" : "menu-icon"),
8701
8660
  onClick: M[1] || (M[1] = (t) => p.vendor = "i4")
8702
8661
  }, M[3] || (M[3] = [
8703
8662
  c("span", { class: "iconfont" }, "I4", -1)
@@ -8707,10 +8666,10 @@ function ez(z, M, b, O, p, o) {
8707
8666
  })
8708
8667
  ])
8709
8668
  ], 4)
8710
- ])) : _("", !0);
8669
+ ])) : F("", !0);
8711
8670
  }
8712
- const tz = /* @__PURE__ */ k(oz, [["render", ez], ["__scopeId", "data-v-7301123d"]]);
8713
- const az = {
8671
+ const zz = /* @__PURE__ */ k(Zb, [["render", bz], ["__scopeId", "data-v-7301123d"]]);
8672
+ const pz = {
8714
8673
  name: "IdmENC",
8715
8674
  props: {
8716
8675
  map: {
@@ -8766,11 +8725,11 @@ const az = {
8766
8725
  }
8767
8726
  }
8768
8727
  };
8769
- function qz(z, M, b, O, p, o) {
8728
+ function Oz(z, M, b, O, p, o) {
8770
8729
  return null;
8771
8730
  }
8772
- const iz = /* @__PURE__ */ k(az, [["render", qz]]);
8773
- const rz = {
8731
+ const oz = /* @__PURE__ */ k(pz, [["render", Oz]]);
8732
+ const cz = {
8774
8733
  name: "IdmGLV2",
8775
8734
  components: {
8776
8735
  IdmGlLayer: x1,
@@ -8789,21 +8748,21 @@ const rz = {
8789
8748
  IdmWaterTemp: P2,
8790
8749
  IdmTemp: _2,
8791
8750
  IdmArctic: U2,
8792
- IdmWarZone: Wb,
8793
- IdmGmdssArea: ub,
8794
- IdmEcaZone: hb,
8795
- IdmAlertZone: yb,
8796
- IdmPort: Sb,
8797
- IdmLoadLine: Qb,
8798
- IdmTimezone: jb,
8799
- IdmVRA: Ub,
8800
- IdmSpecialArea: Yb,
8801
- IdmTerminator: $b,
8751
+ IdmWarZone: ab,
8752
+ IdmGmdssArea: rb,
8753
+ IdmEcaZone: sb,
8754
+ IdmAlertZone: Lb,
8755
+ IdmPort: Cb,
8756
+ IdmLoadLine: Eb,
8757
+ IdmTimezone: Db,
8758
+ IdmVRA: kb,
8759
+ IdmSpecialArea: _b,
8760
+ IdmTerminator: Gb,
8802
8761
  IdmLatLng: K0,
8803
- IdmMeasure: Oz,
8804
- IdmPoint: nb,
8805
- IdmENC: tz,
8806
- IdmWorld12nm: iz
8762
+ IdmMeasure: Vb,
8763
+ IdmPoint: Ab,
8764
+ IdmENC: zz,
8765
+ IdmWorld12nm: oz
8807
8766
  },
8808
8767
  props: {
8809
8768
  map: {
@@ -8877,10 +8836,10 @@ const rz = {
8877
8836
  },
8878
8837
  activeWeatherLayers: {
8879
8838
  handler() {
8880
- var z, M, b, O, p, o, A, t, q, r, a, n, s, d;
8839
+ var z, M, b, O, p, o, A, t, q, r, a, n, l, d;
8881
8840
  if (!this.map)
8882
8841
  return !1;
8883
- this.activeWeatherLayers.length > 0 ? ((M = (z = this.map) == null ? void 0 : z.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) == null || M.setLayoutProperty("visibility", "visible"), (O = this.map) != null && O.getLayer((b = this.viewport) == null ? void 0 : b.rampColorLayer) && ((p = this.map) != null && p.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && this.mapProjection === "mercator" && ((A = this.map) == null || A.moveLayer((o = this.viewport) == null ? void 0 : o.rampColorLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)), (q = this.map) != null && q.getLayer((t = this.viewport) == null ? void 0 : t.particleLayer) && ((r = this.map) != null && r.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && this.mapProjection === "mercator" && ((n = this.map) == null || n.moveLayer((a = this.viewport) == null ? void 0 : a.particleLayer, this.helper.mapboxCustomer.layers.countryBoundary.id))) : (d = (s = this.map) == null ? void 0 : s.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) == null || d.setLayoutProperty("visibility", "none"), this.$emit("activeWeatherLayers", this.activeWeatherLayers);
8842
+ this.activeWeatherLayers.length > 0 ? ((M = (z = this.map) == null ? void 0 : z.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) == null || M.setLayoutProperty("visibility", "visible"), (O = this.map) != null && O.getLayer((b = this.viewport) == null ? void 0 : b.rampColorLayer) && ((p = this.map) != null && p.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && this.mapProjection === "mercator" && ((A = this.map) == null || A.moveLayer((o = this.viewport) == null ? void 0 : o.rampColorLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)), (q = this.map) != null && q.getLayer((t = this.viewport) == null ? void 0 : t.particleLayer) && ((r = this.map) != null && r.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && this.mapProjection === "mercator" && ((n = this.map) == null || n.moveLayer((a = this.viewport) == null ? void 0 : a.particleLayer, this.helper.mapboxCustomer.layers.countryBoundary.id))) : (d = (l = this.map) == null ? void 0 : l.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) == null || d.setLayoutProperty("visibility", "none"), this.$emit("activeWeatherLayers", this.activeWeatherLayers);
8884
8843
  },
8885
8844
  immediate: !0
8886
8845
  },
@@ -8936,18 +8895,18 @@ const rz = {
8936
8895
  const M = (/* @__PURE__ */ new Date()).valueOf();
8937
8896
  let b = 0, O = 0;
8938
8897
  if (this.map) {
8939
- const s = ((p = this.map) == null ? void 0 : p.getZoom()) + 1, d = (o = this.map) == null ? void 0 : o.getBounds(), B = `${d._sw.lng},${d._sw.lat},${d._ne.lng},${d._ne.lat}`;
8898
+ const l = ((p = this.map) == null ? void 0 : p.getZoom()) + 1, d = (o = this.map) == null ? void 0 : o.getBounds(), B = `${d._sw.lng},${d._sw.lat},${d._ne.lng},${d._ne.lat}`;
8940
8899
  if (this.particleFactor) {
8941
- const R = D0.WEATHER_LAYERS.find((W) => {
8900
+ const R = D0.WEATHER_LAYERS.find((f) => {
8942
8901
  var m;
8943
- return ((m = W.peer) == null ? void 0 : m.weight) === this.particleFactor.weight;
8902
+ return ((m = f.peer) == null ? void 0 : m.weight) === this.particleFactor.weight;
8944
8903
  });
8945
8904
  this.particleFactor.particle ? this.weatherWeight = this.weatherWeight & R.weight ? this.weatherWeight : this.weatherWeight + R.weight : this.weatherWeight = this.weatherWeight & R.weight ? this.weatherWeight - R.weight : this.weatherWeight;
8946
8905
  }
8947
8906
  if (this.weatherWeight > 0) {
8948
- let R = this.weatherWeight, W;
8949
- if (z.tropicals || this.weatherWeight & 256 && (W = this.weatherLayers.tropicals, W && (R -= 256, W.version = Math.random() + 1)), R > 0) {
8950
- const m = await g0.get(`${this.gateway}/api/arc/weather/layers/links?l=${R}&v=${this.source}&z=${s}&bbox=${B}&t=${this.ts}`, {
8907
+ let R = this.weatherWeight, f;
8908
+ if (z.tropicals || this.weatherWeight & 256 && (f = this.weatherLayers.tropicals, f && (R -= 256, f.version = Math.random() + 1)), R > 0) {
8909
+ const m = await R0.get(`${this.gateway}/api/arc/weather/layers/links?l=${R}&v=${this.source}&z=${l}&bbox=${B}&t=${this.ts}`, {
8951
8910
  headers: {
8952
8911
  Authorization: this.token || this.defaultMeteoToken
8953
8912
  }
@@ -8956,35 +8915,35 @@ const rz = {
8956
8915
  const h = (t = m == null ? void 0 : m.data) == null ? void 0 : t.data, X = [];
8957
8916
  for (const y in h)
8958
8917
  y === "ice-edge" && (h[y] = "https://idm-hz.oss-cn-hangzhou.aliyuncs.com/test/sea_ice_contours.geojson"), y !== "tropicals" && X.push(
8959
- g0.get(h[y], {
8918
+ R0.get(h[y], {
8960
8919
  headers: {
8961
8920
  Authorization: this.token || this.defaultMeteoToken,
8962
8921
  key: y
8963
8922
  },
8964
8923
  responseType: /\.(jpg|png)$/.test(h[y]) ? "blob" : "json"
8965
- }).catch((H) => {
8966
- console.log(`[${y}] fetch layer error: ${H}`);
8924
+ }).catch((_) => {
8925
+ console.log(`[${y}] fetch layer error: ${_}`);
8967
8926
  })
8968
8927
  );
8969
8928
  const E = await Promise.all(X);
8970
8929
  this.weatherLayers = {}, E.map((y) => {
8971
- var V, M0, b0, t0;
8972
- const H = ((V = y == null ? void 0 : y.data) == null ? void 0 : V.data) || (y == null ? void 0 : y.data), U = (b0 = (M0 = y == null ? void 0 : y.config) == null ? void 0 : M0.headers) == null ? void 0 : b0.key;
8973
- U && H && (this.weatherLayers[U] = {
8974
- raw: H,
8975
- type: ((t0 = y == null ? void 0 : y.config) == null ? void 0 : t0.responseType) === "blob" ? "image" : "json",
8930
+ var V, u, g, e0;
8931
+ const _ = ((V = y == null ? void 0 : y.data) == null ? void 0 : V.data) || (y == null ? void 0 : y.data), K = (g = (u = y == null ? void 0 : y.config) == null ? void 0 : u.headers) == null ? void 0 : g.key;
8932
+ K && _ && (this.weatherLayers[K] = {
8933
+ raw: _,
8934
+ type: ((e0 = y == null ? void 0 : y.config) == null ? void 0 : e0.responseType) === "blob" ? "image" : "json",
8976
8935
  etime: this.ts
8977
8936
  });
8978
- }), h.tropicals && g0.get(h.tropicals, {
8937
+ }), h.tropicals && R0.get(h.tropicals, {
8979
8938
  headers: {
8980
8939
  Authorization: this.token || this.defaultMeteoToken,
8981
8940
  key: "tropicals"
8982
8941
  }
8983
8942
  }).then((y) => {
8984
- var V, M0, b0;
8985
- const H = j0.convert2Geojson(((V = y == null ? void 0 : y.data) == null ? void 0 : V.data) || (y == null ? void 0 : y.data)), U = (b0 = (M0 = y == null ? void 0 : y.config) == null ? void 0 : M0.headers) == null ? void 0 : b0.key;
8986
- this.weatherLayers[U] = {
8987
- data: H,
8943
+ var V, u, g;
8944
+ const _ = j0.convert2Geojson(((V = y == null ? void 0 : y.data) == null ? void 0 : V.data) || (y == null ? void 0 : y.data)), K = (g = (u = y == null ? void 0 : y.config) == null ? void 0 : u.headers) == null ? void 0 : g.key;
8945
+ this.weatherLayers[K] = {
8946
+ data: _,
8988
8947
  active: !0,
8989
8948
  cached: !1,
8990
8949
  type: "json",
@@ -9012,7 +8971,7 @@ const rz = {
9012
8971
  };
9013
8972
  }
9014
8973
  }
9015
- W && (W.etime = this.ts, W.cached = !0, this.weatherLayers.tropicals = W);
8974
+ f && (f.etime = this.ts, f.cached = !0, this.weatherLayers.tropicals = f);
9016
8975
  }
9017
8976
  this.handleWeatherLayerToggle(), this.handleDragEndWithZoom4Json();
9018
8977
  }
@@ -9026,49 +8985,49 @@ const rz = {
9026
8985
  let A = !1, t = !1;
9027
8986
  if (this.otherWeight & 2048 && (o = this.otherWeight - 2048, A = !0), this.otherWeight & 8192 && (o = o - 8192, t = !0), o) {
9028
8987
  if (z.all) {
9029
- const q = await g0.get(`${this.gateway}/api/arc/other/layers/links?l=${o}&t=${this.ts}`, {
8988
+ const q = await R0.get(`${this.gateway}/api/arc/other/layers/links?l=${o}&t=${this.ts}`, {
9030
8989
  headers: {
9031
8990
  Authorization: this.token || this.defaultMeteoToken
9032
8991
  }
9033
8992
  });
9034
8993
  if (((M = q == null ? void 0 : q.data) == null ? void 0 : M.code) === 0) {
9035
8994
  const r = (b = q == null ? void 0 : q.data) == null ? void 0 : b.data, a = [];
9036
- for (const s in r)
8995
+ for (const l in r)
9037
8996
  a.push(
9038
- g0.get(r[s], {
8997
+ R0.get(r[l], {
9039
8998
  headers: {
9040
8999
  Authorization: this.token || this.defaultMeteoToken,
9041
- key: s
9000
+ key: l
9042
9001
  }
9043
9002
  })
9044
9003
  );
9045
9004
  const n = await Promise.all(a);
9046
- this.otherLayers = { enc: A, world12nm: t }, n.map((s) => {
9047
- var R, W, m;
9048
- const d = ((R = s == null ? void 0 : s.data) == null ? void 0 : R.data) || (s == null ? void 0 : s.data), B = (m = (W = s == null ? void 0 : s.config) == null ? void 0 : W.headers) == null ? void 0 : m.key;
9005
+ this.otherLayers = { enc: A, world12nm: t }, n.map((l) => {
9006
+ var R, f, m;
9007
+ const d = ((R = l == null ? void 0 : l.data) == null ? void 0 : R.data) || (l == null ? void 0 : l.data), B = (m = (f = l == null ? void 0 : l.config) == null ? void 0 : f.headers) == null ? void 0 : m.key;
9049
9008
  this.otherLayers[B] = d;
9050
9009
  });
9051
9010
  }
9052
9011
  } else if (z.dayNight && o & 1024) {
9053
- const q = await g0.get(`${this.gateway}/api/arc/other/layers/links?l=1024&t=${this.ts}`, {
9012
+ const q = await R0.get(`${this.gateway}/api/arc/other/layers/links?l=1024&t=${this.ts}`, {
9054
9013
  headers: {
9055
9014
  Authorization: this.token || this.defaultMeteoToken
9056
9015
  }
9057
9016
  });
9058
9017
  if (((O = q == null ? void 0 : q.data) == null ? void 0 : O.code) === 0) {
9059
9018
  const r = (p = q == null ? void 0 : q.data) == null ? void 0 : p.data, a = [];
9060
- for (const s in r)
9019
+ for (const l in r)
9061
9020
  a.push(
9062
- g0.get(r[s], {
9021
+ R0.get(r[l], {
9063
9022
  headers: {
9064
9023
  Authorization: this.token || this.defaultMeteoToken,
9065
- key: s
9024
+ key: l
9066
9025
  }
9067
9026
  })
9068
9027
  );
9069
- (await Promise.all(a)).map((s) => {
9070
- var R, W, m;
9071
- const d = ((R = s == null ? void 0 : s.data) == null ? void 0 : R.data) || (s == null ? void 0 : s.data), B = (m = (W = s == null ? void 0 : s.config) == null ? void 0 : W.headers) == null ? void 0 : m.key;
9028
+ (await Promise.all(a)).map((l) => {
9029
+ var R, f, m;
9030
+ const d = ((R = l == null ? void 0 : l.data) == null ? void 0 : R.data) || (l == null ? void 0 : l.data), B = (m = (f = l == null ? void 0 : l.config) == null ? void 0 : f.headers) == null ? void 0 : m.key;
9072
9031
  this.otherLayers[B] = d;
9073
9032
  });
9074
9033
  }
@@ -9124,100 +9083,100 @@ const rz = {
9124
9083
  );
9125
9084
  },
9126
9085
  handleDragEndWithZoom4Json() {
9127
- var r, a, n, s;
9086
+ var r, a, n, l;
9128
9087
  const z = (/* @__PURE__ */ new Date()).valueOf();
9129
9088
  let M = 0, b = 0;
9130
- const O = (r = this.map) == null ? void 0 : r.getBounds(), p = this.map.getZoom(), o = O0.convertToStdLng(O._sw.lng), A = O0.convertToStdLng(O._ne.lng), t = Math.floor(O._sw.lat), q = Math.ceil(O._ne.lat);
9089
+ const O = (r = this.map) == null ? void 0 : r.getBounds(), p = this.map.getZoom(), o = M0.convertToStdLng(O._sw.lng), A = M0.convertToStdLng(O._ne.lng), t = Math.floor(O._sw.lat), q = Math.ceil(O._ne.lat);
9131
9090
  for (const d in this.weatherLayers)
9132
9091
  if (this.weatherLayers[d].active && this.weatherLayers[d].type === "json") {
9133
9092
  this.weatherLayers[d].active = !1, this.weatherLayers[d].version = Math.random() + 1;
9134
9093
  let B = [];
9135
9094
  if (["swell", "current"].includes(d)) {
9136
9095
  const R = ((a = this.weatherLayers[d]) == null ? void 0 : a.direction) || {};
9137
- for (const W in R)
9138
- if (W > t && W < q && (!(p <= this.zoom) || W % (p < this.zoom / 2 ? 5 : 3) === 0)) {
9139
- const m = R[W].lng;
9096
+ for (const f in R)
9097
+ if (f > t && f < q && (!(p <= this.zoom) || f % (p < this.zoom / 2 ? 5 : 3) === 0)) {
9098
+ const m = R[f].lng;
9140
9099
  o > A ? m.forEach((h, X) => {
9141
9100
  var E;
9142
9101
  if ((h >= o && h <= 180 || h >= -180 && h <= A) && (!(p <= this.zoom) || h % (p < this.zoom / 2 ? 5 : 3) === 0)) {
9143
- const y = T.point([h, W], {
9144
- val: R[W].val[X],
9145
- spd: (E = R[W].spd) == null ? void 0 : E[X]
9102
+ const y = v.point([h, f], {
9103
+ val: R[f].val[X],
9104
+ spd: (E = R[f].spd) == null ? void 0 : E[X]
9146
9105
  });
9147
9106
  B.push(y);
9148
9107
  }
9149
9108
  }) : m.forEach((h, X) => {
9150
9109
  var E;
9151
9110
  if (h >= o && h <= A && (!(p <= this.zoom) || h % (p < this.zoom / 2 ? 5 : 3) === 0)) {
9152
- const y = T.point([h, W], {
9153
- val: R[W].val[X],
9154
- spd: (E = R[W].spd) == null ? void 0 : E[X]
9111
+ const y = v.point([h, f], {
9112
+ val: R[f].val[X],
9113
+ spd: (E = R[f].spd) == null ? void 0 : E[X]
9155
9114
  });
9156
9115
  B.push(y);
9157
9116
  }
9158
9117
  });
9159
9118
  }
9160
9119
  if (b = (/* @__PURE__ */ new Date()).valueOf() - (z + M), console.log("direction elapsed: ", b, ", total: ", M += b), d === "swell") {
9161
- const W = this.weatherLayers[d].height;
9162
- if (W) {
9163
- if (!W.data) {
9120
+ const f = this.weatherLayers[d].height;
9121
+ if (f) {
9122
+ if (!f.data) {
9164
9123
  const m = [];
9165
- for (const h in (n = W.raw) == null ? void 0 : n.LineString) {
9166
- const X = W.raw.LineString[h];
9124
+ for (const h in (n = f.raw) == null ? void 0 : n.LineString) {
9125
+ const X = f.raw.LineString[h];
9167
9126
  for (const E of X)
9168
9127
  m.push(
9169
- T.lineString(E, {
9128
+ v.lineString(E, {
9170
9129
  val: Number(h)
9171
9130
  })
9172
9131
  );
9173
- W.data = T.featureCollection(m);
9132
+ f.data = v.featureCollection(m);
9174
9133
  }
9175
9134
  }
9176
- if (W.data) {
9177
- const m = this.handleBboxClip(W.data, O);
9135
+ if (f.data) {
9136
+ const m = this.handleBboxClip(f.data, O);
9178
9137
  B = B.concat(m);
9179
9138
  }
9180
9139
  b = (/* @__PURE__ */ new Date()).valueOf() - (z + M), console.log("height elapsed: ", b, ", total: ", M += b);
9181
9140
  }
9182
9141
  }
9183
9142
  if (d === "current") {
9184
- const W = this.weatherLayers[d].speed;
9185
- if (W) {
9186
- if (!W.data) {
9143
+ const f = this.weatherLayers[d].speed;
9144
+ if (f) {
9145
+ if (!f.data) {
9187
9146
  const h = [];
9188
- for (const X in (s = W.raw) == null ? void 0 : s.Polygon) {
9189
- const E = W.raw.Polygon[X];
9147
+ for (const X in (l = f.raw) == null ? void 0 : l.Polygon) {
9148
+ const E = f.raw.Polygon[X];
9190
9149
  for (const y of E)
9191
9150
  h.push(
9192
- T.polygon(y, {
9151
+ v.polygon(y, {
9193
9152
  val: Number(X)
9194
9153
  })
9195
9154
  );
9196
9155
  }
9197
- W.data = T.featureCollection(h);
9156
+ f.data = v.featureCollection(h);
9198
9157
  }
9199
- const m = p < this.zoom ? W.data.features.filter((h) => h.properties.val > 0.5) : W.data.features;
9158
+ const m = p < this.zoom ? f.data.features.filter((h) => h.properties.val > 0.5) : f.data.features;
9200
9159
  B = B.concat(m), b = (/* @__PURE__ */ new Date()).valueOf() - (z + M), console.log("speed elapsed: ", b, ", total: ", M += b);
9201
9160
  }
9202
9161
  }
9203
9162
  } else if (d === "wind") {
9204
9163
  const R = this.weatherLayers.wind.raw;
9205
- for (const W in R)
9206
- if (W > t && W < q && (!(p <= this.zoom) || W % (p < this.zoom / 2 ? 5 : 3) === 0)) {
9207
- const m = R[W].lng;
9164
+ for (const f in R)
9165
+ if (f > t && f < q && (!(p <= this.zoom) || f % (p < this.zoom / 2 ? 5 : 3) === 0)) {
9166
+ const m = R[f].lng;
9208
9167
  o > A ? m.forEach((h, X) => {
9209
9168
  if ((h >= o && h <= 180 || h >= -180 && h <= A) && (!(p <= this.zoom) || h % (p < this.zoom / 2 ? 5 : 3) === 0)) {
9210
- const E = T.point([h, W], {
9211
- val: R[W].val[X],
9212
- spd: R[W].spd[X]
9169
+ const E = v.point([h, f], {
9170
+ val: R[f].val[X],
9171
+ spd: R[f].spd[X]
9213
9172
  });
9214
9173
  B.push(E);
9215
9174
  }
9216
9175
  }) : m.forEach((h, X) => {
9217
9176
  if (h >= o && h <= A && (!(p <= this.zoom) || h % (p < this.zoom / 2 ? 5 : 3) === 0)) {
9218
- const E = T.point([h, W], {
9219
- val: R[W].val[X],
9220
- spd: R[W].spd[X]
9177
+ const E = v.point([h, f], {
9178
+ val: R[f].val[X],
9179
+ spd: R[f].spd[X]
9221
9180
  });
9222
9181
  B.push(E);
9223
9182
  }
@@ -9230,12 +9189,12 @@ const rz = {
9230
9189
  else {
9231
9190
  const R = this.weatherLayers[d].raw;
9232
9191
  if (R) {
9233
- const W = [];
9192
+ const f = [];
9234
9193
  for (const m in R.Polygon) {
9235
9194
  const h = R.Polygon[m];
9236
9195
  for (const X of h)
9237
- W.push(
9238
- T.polygon(X, {
9196
+ f.push(
9197
+ v.polygon(X, {
9239
9198
  val: Number(m)
9240
9199
  })
9241
9200
  );
@@ -9243,13 +9202,13 @@ const rz = {
9243
9202
  for (const m in R.Point) {
9244
9203
  const h = R.Point[m];
9245
9204
  for (const X of h)
9246
- W.push(
9247
- ...T.points(X, {
9205
+ f.push(
9206
+ ...v.points(X, {
9248
9207
  val: Number(m)
9249
9208
  }).features
9250
9209
  );
9251
9210
  }
9252
- B = B.concat(W);
9211
+ B = B.concat(f);
9253
9212
  }
9254
9213
  }
9255
9214
  b = (/* @__PURE__ */ new Date()).valueOf() - (z + M), console.log("sigWave elapsed: ", b, ", total: ", M += b);
@@ -9259,26 +9218,26 @@ const rz = {
9259
9218
  else {
9260
9219
  const R = this.weatherLayers[d].raw;
9261
9220
  if (R) {
9262
- const W = [];
9221
+ const f = [];
9263
9222
  for (const m in R.LineString) {
9264
9223
  const h = R.LineString[m];
9265
9224
  for (const X of h)
9266
- W.push(
9267
- T.lineString(X, {
9225
+ f.push(
9226
+ v.lineString(X, {
9268
9227
  val: Number(m)
9269
9228
  })
9270
9229
  );
9271
9230
  }
9272
9231
  for (const m in R.Point)
9273
9232
  R.Point[m].lng.forEach((h, X) => {
9274
- h = O0.convertToStdLng(h), W.push(
9275
- T.point([h, m], {
9233
+ h = M0.convertToStdLng(h), f.push(
9234
+ v.point([h, m], {
9276
9235
  val: R.Point[m].val[X],
9277
9236
  type: R.Point[m].type[X]
9278
9237
  })
9279
9238
  );
9280
9239
  });
9281
- B = B.concat(W);
9240
+ B = B.concat(f);
9282
9241
  }
9283
9242
  }
9284
9243
  b = (/* @__PURE__ */ new Date()).valueOf() - (z + M), console.log("prmsl elapsed: ", b, ", total: ", M += b);
@@ -9288,22 +9247,22 @@ const rz = {
9288
9247
  else {
9289
9248
  const R = this.weatherLayers[d].raw;
9290
9249
  if (R) {
9291
- const W = [];
9250
+ const f = [];
9292
9251
  for (const m in R.LineString) {
9293
9252
  const h = R.LineString[m];
9294
9253
  for (const X of h)
9295
- W.push(
9296
- T.lineString(X, {
9254
+ f.push(
9255
+ v.lineString(X, {
9297
9256
  val: Number(m)
9298
9257
  })
9299
9258
  );
9300
9259
  }
9301
- B = B.concat(W);
9260
+ B = B.concat(f);
9302
9261
  }
9303
9262
  }
9304
9263
  b = (/* @__PURE__ */ new Date()).valueOf() - (z + M);
9305
9264
  }
9306
- console.log(d, " elapsed: ", b, ", total: ", M += b), B.length && (this.weatherLayers[d].data = T.featureCollection(B)), this.weatherLayers[d].active = !0, this.weatherLayers[d].version = Math.random() + 1;
9265
+ console.log(d, " elapsed: ", b, ", total: ", M += b), B.length && (this.weatherLayers[d].data = v.featureCollection(B)), this.weatherLayers[d].active = !0, this.weatherLayers[d].version = Math.random() + 1;
9307
9266
  }
9308
9267
  },
9309
9268
  handleDragEndWithZoom4Image() {
@@ -9311,14 +9270,14 @@ const rz = {
9311
9270
  this.weatherLayers[z].active && this.weatherLayers[z].type === "image" && (this.weatherLayers[z].active = !0, this.weatherLayers[z].version = Math.random() + 1);
9312
9271
  },
9313
9272
  handleBboxClip(z, M) {
9314
- const b = [], O = O0.convertToStdLng(M._sw.lng), p = O0.convertToStdLng(M._ne.lng);
9273
+ const b = [], O = M0.convertToStdLng(M._sw.lng), p = M0.convertToStdLng(M._ne.lng);
9315
9274
  return z.features.forEach((o) => {
9316
9275
  if (o.geometry.type !== "Point")
9317
9276
  if (O > p) {
9318
- let A = [O, M._sw.lat, 180, M._ne.lat], t = T.bboxClip(o, A);
9319
- t.geometry.coordinates.length && b.push(t), A = [-180, M._sw.lat, p, M._ne.lat], t = T.bboxClip(o, A), t.geometry.coordinates.length && b.push(t);
9277
+ let A = [O, M._sw.lat, 180, M._ne.lat], t = v.bboxClip(o, A);
9278
+ t.geometry.coordinates.length && b.push(t), A = [-180, M._sw.lat, p, M._ne.lat], t = v.bboxClip(o, A), t.geometry.coordinates.length && b.push(t);
9320
9279
  } else {
9321
- const A = [O, M._sw.lat, p, M._ne.lat], t = T.bboxClip(o, A);
9280
+ const A = [O, M._sw.lat, p, M._ne.lat], t = v.bboxClip(o, A);
9322
9281
  t.geometry.coordinates.length && b.push(t);
9323
9282
  }
9324
9283
  else
@@ -9336,8 +9295,8 @@ const rz = {
9336
9295
  this.handleBeforeLayerToggle();
9337
9296
  },
9338
9297
  handleBeforeLayerToggle() {
9339
- var z, M, b, O, p, o, A, t, q, r, a, n, s, d;
9340
- (z = this.map) != null && z.getLayer(this.beforeLayer) && ((M = this.activeWeatherLayers) != null && M.length || (b = this.otherLayers) != null && b["war-zones"] || (O = this.otherLayers) != null && O["gmdss-areas"] || (p = this.otherLayers) != null && p["load-lines"] || (o = this.otherLayers) != null && o["high-risk-area"] || (A = this.otherLayers) != null && A["time-zones"] || (t = this.otherLayers) != null && t.pirates || (q = this.otherLayers) != null && q.ports || (r = this.otherLayers) != null && r.enc || (a = this.otherLayers) != null && a.world12nm || (n = this.otherLayers) != null && n["voluntary-reporting-area"] || (s = this.otherLayers) != null && s["eca-zones"] || (d = this.otherLayers) != null && d["special-area"]) && this.map.setLayoutProperty(this.beforeLayer, "visibility", "visible");
9298
+ var z, M, b, O, p, o, A, t, q, r, a, n, l, d;
9299
+ (z = this.map) != null && z.getLayer(this.beforeLayer) && ((M = this.activeWeatherLayers) != null && M.length || (b = this.otherLayers) != null && b["war-zones"] || (O = this.otherLayers) != null && O["gmdss-areas"] || (p = this.otherLayers) != null && p["load-lines"] || (o = this.otherLayers) != null && o["high-risk-area"] || (A = this.otherLayers) != null && A["time-zones"] || (t = this.otherLayers) != null && t.pirates || (q = this.otherLayers) != null && q.ports || (r = this.otherLayers) != null && r.enc || (a = this.otherLayers) != null && a.world12nm || (n = this.otherLayers) != null && n["voluntary-reporting-area"] || (l = this.otherLayers) != null && l["eca-zones"] || (d = this.otherLayers) != null && d["special-area"]) && this.map.setLayoutProperty(this.beforeLayer, "visibility", "visible");
9341
9300
  },
9342
9301
  handleDateChange(z = { tropicals: !1 }) {
9343
9302
  this.fetchWeatherLayers(z), this.fetchOtherLayers({ dayNight: !0 });
@@ -9371,8 +9330,8 @@ const rz = {
9371
9330
  }
9372
9331
  },
9373
9332
  handle3dToggle(z) {
9374
- var M, b, O, p, o, A, t, q, r, a, n, s, d, B, R, W, m, h, X, E;
9375
- z ? (this.map.setProjection("globe"), this.mapProjection = "globe", (b = this.map) != null && b.getLayer((M = this.viewport) == null ? void 0 : M.rampColorLayer) && ((O = this.map) != null && O.getLayer(this.helper.mapboxCustomer.layers.water.id)) && ((o = this.map) == null || o.moveLayer((p = this.viewport) == null ? void 0 : p.rampColorLayer, this.helper.mapboxCustomer.layers.water.id)), (t = this.map) != null && t.getLayer((A = this.viewport) == null ? void 0 : A.particleLayer) && ((q = this.map) != null && q.getLayer(this.helper.mapboxCustomer.layers.water.id)) && ((a = this.map) == null || a.moveLayer((r = this.viewport) == null ? void 0 : r.particleLayer, this.helper.mapboxCustomer.layers.water.id)), this.map.off("zoomend", this.handleDragEndWithZoom4Json), this.map.off("dragend", this.handleDragEndWithZoom4Json), this.map.off("move", this.handleDragEndWithZoom4Image)) : (this.map.setProjection("mercator"), this.mapProjection = "mercator", this.map.on("zoomend", this.handleDragEndWithZoom4Json), this.map.on("dragend", this.handleDragEndWithZoom4Json), this.map.on("move", this.handleDragEndWithZoom4Image), this.handleDragEndWithZoom4Image(), this.handleDragEndWithZoom4Json(), (s = this.map) != null && s.getLayer((n = this.viewport) == null ? void 0 : n.rampColorLayer) && ((d = this.map) != null && d.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && ((R = this.map) == null || R.moveLayer((B = this.viewport) == null ? void 0 : B.rampColorLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)), (m = this.map) != null && m.getLayer((W = this.viewport) == null ? void 0 : W.particleLayer) && ((h = this.map) != null && h.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && ((E = this.map) == null || E.moveLayer((X = this.viewport) == null ? void 0 : X.particleLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)));
9333
+ var M, b, O, p, o, A, t, q, r, a, n, l, d, B, R, f, m, h, X, E;
9334
+ z ? (this.map.setProjection("globe"), this.mapProjection = "globe", (b = this.map) != null && b.getLayer((M = this.viewport) == null ? void 0 : M.rampColorLayer) && ((O = this.map) != null && O.getLayer(this.helper.mapboxCustomer.layers.water.id)) && ((o = this.map) == null || o.moveLayer((p = this.viewport) == null ? void 0 : p.rampColorLayer, this.helper.mapboxCustomer.layers.water.id)), (t = this.map) != null && t.getLayer((A = this.viewport) == null ? void 0 : A.particleLayer) && ((q = this.map) != null && q.getLayer(this.helper.mapboxCustomer.layers.water.id)) && ((a = this.map) == null || a.moveLayer((r = this.viewport) == null ? void 0 : r.particleLayer, this.helper.mapboxCustomer.layers.water.id)), this.map.off("zoomend", this.handleDragEndWithZoom4Json), this.map.off("dragend", this.handleDragEndWithZoom4Json), this.map.off("move", this.handleDragEndWithZoom4Image)) : (this.map.setProjection("mercator"), this.mapProjection = "mercator", this.map.on("zoomend", this.handleDragEndWithZoom4Json), this.map.on("dragend", this.handleDragEndWithZoom4Json), this.map.on("move", this.handleDragEndWithZoom4Image), this.handleDragEndWithZoom4Image(), this.handleDragEndWithZoom4Json(), (l = this.map) != null && l.getLayer((n = this.viewport) == null ? void 0 : n.rampColorLayer) && ((d = this.map) != null && d.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && ((R = this.map) == null || R.moveLayer((B = this.viewport) == null ? void 0 : B.rampColorLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)), (m = this.map) != null && m.getLayer((f = this.viewport) == null ? void 0 : f.particleLayer) && ((h = this.map) != null && h.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && ((E = this.map) == null || E.moveLayer((X = this.viewport) == null ? void 0 : X.particleLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)));
9376
9335
  },
9377
9336
  handleParticle(z) {
9378
9337
  this.particleFactor = z, this.weatherLayers[z.key] && (this.weatherLayers[z.key].particle = z.particle), this.activeWeatherLayers.map((O) => {
@@ -9390,16 +9349,16 @@ const rz = {
9390
9349
  this.$emit("toggleVersion", Math.random());
9391
9350
  }
9392
9351
  }
9393
- }, nz = {
9352
+ }, Az = {
9394
9353
  key: 0,
9395
9354
  ref: "mapGlHome",
9396
9355
  className: "map-gl-home"
9397
9356
  };
9398
- function dz(z, M, b, O, p, o) {
9399
- var q0, n0, R0, d0, D, L, N, x, $, h0, m0, B0, c0, e, i, u, g, v, S, Z, P, F, E0, k0, Q0, H0, _0;
9400
- const A = I("IdmGlLayer"), t = I("IdmENC"), q = I("IdmWorld12nm"), r = I("IdmSigWave"), a = I("IdmSwell"), n = I("IdmPrmsl"), s = I("IdmIceberg"), d = I("IdmTropicals"), B = I("IdmCurrents"), R = I("IdmCurrentParticle"), W = I("IdmWindBarb"), m = I("IdmWindParticle"), h = I("IdmPrecip3h"), X = I("IdmVisibility"), E = I("IdmWaterTemp"), y = I("IdmTemp"), H = I("IdmArctic"), U = I("IdmWarZone"), V = I("IdmGmdssArea"), M0 = I("IdmEcaZone"), b0 = I("IdmAlertZone"), t0 = I("IdmPort"), l0 = I("IdmLoadLine"), f0 = I("IdmTimezone"), a0 = I("IdmVRA"), s0 = I("IdmSpecialArea"), z0 = I("IdmTerminator"), u0 = I("IdmLatLng"), L0 = I("IdmMeasure"), W0 = I("IdmPoint");
9401
- return b.map ? (l(), f("div", nz, [
9402
- C(A, Q({
9357
+ function ez(z, M, b, O, p, o) {
9358
+ var r0, d0, g0, s0, S, b0, t0, I, z0, W0, l0, L0, o0, e, i, L, N, C, D, Z, P, G, x0, k0, Q0, H0, _0;
9359
+ const A = x("IdmGlLayer"), t = x("IdmENC"), q = x("IdmWorld12nm"), r = x("IdmSigWave"), a = x("IdmSwell"), n = x("IdmPrmsl"), l = x("IdmIceberg"), d = x("IdmTropicals"), B = x("IdmCurrents"), R = x("IdmCurrentParticle"), f = x("IdmWindBarb"), m = x("IdmWindParticle"), h = x("IdmPrecip3h"), X = x("IdmVisibility"), E = x("IdmWaterTemp"), y = x("IdmTemp"), _ = x("IdmArctic"), K = x("IdmWarZone"), V = x("IdmGmdssArea"), u = x("IdmEcaZone"), g = x("IdmAlertZone"), e0 = x("IdmPort"), n0 = x("IdmLoadLine"), h0 = x("IdmTimezone"), i0 = x("IdmVRA"), f0 = x("IdmSpecialArea"), p0 = x("IdmTerminator"), m0 = x("IdmLatLng"), B0 = x("IdmMeasure"), u0 = x("IdmPoint");
9360
+ return b.map ? (s(), W("div", Az, [
9361
+ w(A, Q({
9403
9362
  ref: "layer",
9404
9363
  map: b.map,
9405
9364
  "toggle-version": b.toggleVersion,
@@ -9411,63 +9370,63 @@ function dz(z, M, b, O, p, o) {
9411
9370
  }, z.$attrs, {
9412
9371
  onWeather: o.handleWeatherLayerChange,
9413
9372
  onOther: o.handleOtherLayerChange,
9414
- onToggleWindParticle: M[0] || (M[0] = (i0) => p.showWindParticle = i0),
9415
- onToggleWindFeather: M[1] || (M[1] = (i0) => p.showWindFeather = i0),
9416
- onToggleCurrentParticle: M[2] || (M[2] = (i0) => p.showCurrentParticle = i0),
9417
- onToggleCurrentIsoband: M[3] || (M[3] = (i0) => p.showCurrentIsoband = i0),
9418
- onCoordinate: M[4] || (M[4] = (i0) => p.showCoord = i0),
9419
- onMeasure: M[5] || (M[5] = (i0) => p.showMeasure = i0),
9420
- onPoint: M[6] || (M[6] = (i0) => p.showPoint = i0),
9373
+ onToggleWindParticle: M[0] || (M[0] = (a0) => p.showWindParticle = a0),
9374
+ onToggleWindFeather: M[1] || (M[1] = (a0) => p.showWindFeather = a0),
9375
+ onToggleCurrentParticle: M[2] || (M[2] = (a0) => p.showCurrentParticle = a0),
9376
+ onToggleCurrentIsoband: M[3] || (M[3] = (a0) => p.showCurrentIsoband = a0),
9377
+ onCoordinate: M[4] || (M[4] = (a0) => p.showCoord = a0),
9378
+ onMeasure: M[5] || (M[5] = (a0) => p.showMeasure = a0),
9379
+ onPoint: M[6] || (M[6] = (a0) => p.showPoint = a0),
9421
9380
  on3d: o.handle3dToggle,
9422
9381
  onHandleToggleVersion: o.handleToggleVersion
9423
9382
  }), null, 16, ["map", "toggle-version", "map-projection", "showWindFeather", "showWindParticle", "showCurrentIsoband", "showCurrentParticle", "onWeather", "onOther", "on3d", "onHandleToggleVersion"]),
9424
- C(t, Q({
9383
+ w(t, Q({
9425
9384
  map: b.map,
9426
9385
  token: b.token,
9427
- enabled: (q0 = p.otherLayers) == null ? void 0 : q0.enc,
9386
+ enabled: (r0 = p.otherLayers) == null ? void 0 : r0.enc,
9428
9387
  "toggle-version": b.toggleVersion
9429
9388
  }, z.$attrs, {
9430
- onEnc: M[7] || (M[7] = (i0) => p.enc = i0)
9389
+ onEnc: M[7] || (M[7] = (a0) => p.enc = a0)
9431
9390
  }), null, 16, ["map", "token", "enabled", "toggle-version"]),
9432
- C(q, Q({
9391
+ w(q, Q({
9433
9392
  map: b.map,
9434
9393
  token: b.token,
9435
9394
  "weather-layers": p.weatherLayers,
9436
- enabled: (n0 = p.otherLayers) == null ? void 0 : n0.world12nm
9395
+ enabled: (d0 = p.otherLayers) == null ? void 0 : d0.world12nm
9437
9396
  }, z.$attrs), null, 16, ["map", "token", "weather-layers", "enabled"]),
9438
- C(r, Q({
9397
+ w(r, Q({
9439
9398
  map: b.map,
9440
- "sig-wave": (R0 = p.weatherLayers) == null ? void 0 : R0["sig-wave-height"],
9399
+ "sig-wave": (g0 = p.weatherLayers) == null ? void 0 : g0["sig-wave-height"],
9441
9400
  "before-layer": b.beforeLayer,
9442
9401
  activeWeatherLayers: p.activeWeatherLayers
9443
9402
  }, z.$attrs), null, 16, ["map", "sig-wave", "before-layer", "activeWeatherLayers"]),
9444
- C(a, Q({
9403
+ w(a, Q({
9445
9404
  map: b.map,
9446
- swell: (d0 = p.weatherLayers) == null ? void 0 : d0.swell,
9405
+ swell: (s0 = p.weatherLayers) == null ? void 0 : s0.swell,
9447
9406
  "before-layer": b.beforeLayer,
9448
9407
  activeWeatherLayers: p.activeWeatherLayers
9449
9408
  }, z.$attrs), null, 16, ["map", "swell", "before-layer", "activeWeatherLayers"]),
9450
- C(n, Q({
9409
+ w(n, Q({
9451
9410
  map: b.map,
9452
- prmsl: (D = p.weatherLayers) == null ? void 0 : D.prmsl,
9411
+ prmsl: (S = p.weatherLayers) == null ? void 0 : S.prmsl,
9453
9412
  "before-layer": b.beforeLayer,
9454
9413
  "active-weather-layers": p.activeWeatherLayers
9455
9414
  }, z.$attrs), null, 16, ["map", "prmsl", "before-layer", "active-weather-layers"]),
9456
- C(s, Q({
9415
+ w(l, Q({
9457
9416
  map: b.map,
9458
- iceberg: (L = p.weatherLayers) == null ? void 0 : L.iceberg,
9417
+ iceberg: (b0 = p.weatherLayers) == null ? void 0 : b0.iceberg,
9459
9418
  "before-layer": b.beforeLayer
9460
9419
  }, z.$attrs), null, 16, ["map", "iceberg", "before-layer"]),
9461
- C(d, Q({
9420
+ w(d, Q({
9462
9421
  map: b.map,
9463
9422
  date: b.ts,
9464
- tropicals: (N = p.weatherLayers) == null ? void 0 : N.tropicals,
9423
+ tropicals: (t0 = p.weatherLayers) == null ? void 0 : t0.tropicals,
9465
9424
  "before-layer": b.beforeLayer
9466
9425
  }, z.$attrs), null, 16, ["map", "date", "tropicals", "before-layer"]),
9467
- C(B, Q({
9426
+ w(B, Q({
9468
9427
  map: b.map,
9469
9428
  "map-projection": p.mapProjection,
9470
- current: (x = p.weatherLayers) == null ? void 0 : x.current,
9429
+ current: (I = p.weatherLayers) == null ? void 0 : I.current,
9471
9430
  "before-layer": b.beforeLayer,
9472
9431
  showCurrentIsoband: p.showCurrentIsoband,
9473
9432
  showCurrentParticle: p.showCurrentParticle,
@@ -9478,18 +9437,18 @@ function dz(z, M, b, O, p, o) {
9478
9437
  onParticle: o.handleParticle,
9479
9438
  onHandleToggleVersion: o.handleToggleVersion
9480
9439
  }), null, 16, ["map", "map-projection", "current", "before-layer", "showCurrentIsoband", "showCurrentParticle", "margin-bottom", "toggle-version", "weather-layers", "onParticle", "onHandleToggleVersion"]),
9481
- C(R, Q({
9440
+ w(R, Q({
9482
9441
  viewport: p.viewport,
9483
- factor: ($ = p.weatherLayers) == null ? void 0 : $["current-particle"],
9442
+ factor: (z0 = p.weatherLayers) == null ? void 0 : z0["current-particle"],
9484
9443
  "before-layer": b.beforeLayer,
9485
9444
  "toggle-version": b.toggleVersion
9486
9445
  }, z.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
9487
- C(W, Q({
9446
+ w(f, Q({
9488
9447
  ref: "windBarb",
9489
9448
  map: b.map,
9490
9449
  "map-projection": p.mapProjection,
9491
- wind: (h0 = p.weatherLayers) == null ? void 0 : h0.wind,
9492
- current: (m0 = p.weatherLayers) == null ? void 0 : m0.current,
9450
+ wind: (W0 = p.weatherLayers) == null ? void 0 : W0.wind,
9451
+ current: (l0 = p.weatherLayers) == null ? void 0 : l0.current,
9493
9452
  "before-layer": b.beforeLayer,
9494
9453
  "margin-bottom": p.showRampColor ? "56px" : "30px",
9495
9454
  showWindFeather: p.showWindFeather,
@@ -9499,102 +9458,102 @@ function dz(z, M, b, O, p, o) {
9499
9458
  "weather-layers": p.weatherLayers,
9500
9459
  onParticle: o.handleParticle
9501
9460
  }), null, 16, ["map", "map-projection", "wind", "current", "before-layer", "margin-bottom", "showWindFeather", "showWindParticle", "toggle-version", "weather-layers", "onParticle"]),
9502
- C(m, Q({
9461
+ w(m, Q({
9503
9462
  viewport: p.viewport,
9504
- factor: (B0 = p.weatherLayers) == null ? void 0 : B0["wind-particle"],
9463
+ factor: (L0 = p.weatherLayers) == null ? void 0 : L0["wind-particle"],
9505
9464
  "before-layer": b.beforeLayer,
9506
9465
  "toggle-version": b.toggleVersion
9507
9466
  }, z.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
9508
- C(h, Q({
9467
+ w(h, Q({
9509
9468
  viewport: p.viewport,
9510
- factor: (c0 = p.weatherLayers) == null ? void 0 : c0.precip3h,
9469
+ factor: (o0 = p.weatherLayers) == null ? void 0 : o0.precip3h,
9511
9470
  "before-layer": b.beforeLayer,
9512
9471
  "toggle-version": b.toggleVersion
9513
9472
  }, z.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
9514
- C(X, Q({
9473
+ w(X, Q({
9515
9474
  viewport: p.viewport,
9516
9475
  factor: (e = p.weatherLayers) == null ? void 0 : e.visibility,
9517
9476
  "before-layer": b.beforeLayer,
9518
9477
  "toggle-version": b.toggleVersion
9519
9478
  }, z.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
9520
- C(E, Q({
9479
+ w(E, Q({
9521
9480
  viewport: p.viewport,
9522
9481
  factor: (i = p.weatherLayers) == null ? void 0 : i["water-temp"],
9523
9482
  "before-layer": b.beforeLayer,
9524
9483
  "toggle-version": b.toggleVersion
9525
9484
  }, z.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
9526
- C(y, Q({
9485
+ w(y, Q({
9527
9486
  viewport: p.viewport,
9528
- factor: (u = p.weatherLayers) == null ? void 0 : u.temp,
9487
+ factor: (L = p.weatherLayers) == null ? void 0 : L.temp,
9529
9488
  "before-layer": b.beforeLayer,
9530
9489
  "toggle-version": b.toggleVersion
9531
9490
  }, z.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
9532
- C(H, Q({
9491
+ w(_, Q({
9533
9492
  viewport: p.viewport,
9534
- factor: (g = p.weatherLayers) == null ? void 0 : g.arctic,
9493
+ factor: (N = p.weatherLayers) == null ? void 0 : N.arctic,
9535
9494
  "before-layer": b.beforeLayer,
9536
9495
  "toggle-version": b.toggleVersion
9537
9496
  }, z.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
9538
- C(U, Q({
9497
+ w(K, Q({
9539
9498
  map: b.map,
9540
- zone: (v = p.otherLayers) == null ? void 0 : v["war-zones"],
9499
+ zone: (C = p.otherLayers) == null ? void 0 : C["war-zones"],
9541
9500
  "before-layer": b.beforeLayer
9542
9501
  }, z.$attrs), null, 16, ["map", "zone", "before-layer"]),
9543
- C(V, Q({
9502
+ w(V, Q({
9544
9503
  map: b.map,
9545
- area: (S = p.otherLayers) == null ? void 0 : S["gmdss-areas"],
9504
+ area: (D = p.otherLayers) == null ? void 0 : D["gmdss-areas"],
9546
9505
  "before-layer": b.beforeLayer
9547
9506
  }, z.$attrs), null, 16, ["map", "area", "before-layer"]),
9548
- C(M0, Q({
9507
+ w(u, Q({
9549
9508
  map: b.map,
9550
9509
  zone: (Z = p.otherLayers) == null ? void 0 : Z["eca-zones"],
9551
9510
  "before-layer": b.beforeLayer
9552
9511
  }, z.$attrs), null, 16, ["map", "zone", "before-layer"]),
9553
- C(b0, Q({
9512
+ w(g, Q({
9554
9513
  map: b.map,
9555
9514
  zone: (P = p.otherLayers) == null ? void 0 : P["alert-zones"],
9556
9515
  "before-layer": b.beforeLayer
9557
9516
  }, z.$attrs), null, 16, ["map", "zone", "before-layer"]),
9558
- C(t0, Q({
9517
+ w(e0, Q({
9559
9518
  map: b.map,
9560
- port: (F = p.otherLayers) == null ? void 0 : F.ports,
9519
+ port: (G = p.otherLayers) == null ? void 0 : G.ports,
9561
9520
  "before-layer": b.beforeLayer,
9562
9521
  meteoSource: p.source
9563
9522
  }, z.$attrs), null, 16, ["map", "port", "before-layer", "meteoSource"]),
9564
- C(l0, Q({
9523
+ w(n0, Q({
9565
9524
  map: b.map,
9566
- line: (E0 = p.otherLayers) == null ? void 0 : E0["load-lines"],
9525
+ line: (x0 = p.otherLayers) == null ? void 0 : x0["load-lines"],
9567
9526
  "before-layer": b.beforeLayer
9568
9527
  }, z.$attrs), null, 16, ["map", "line", "before-layer"]),
9569
- C(f0, Q({
9528
+ w(h0, Q({
9570
9529
  map: b.map,
9571
9530
  zone: (k0 = p.otherLayers) == null ? void 0 : k0["time-zones"],
9572
9531
  "before-layer": b.beforeLayer
9573
9532
  }, z.$attrs), null, 16, ["map", "zone", "before-layer"]),
9574
- C(a0, Q({
9533
+ w(i0, Q({
9575
9534
  map: b.map,
9576
9535
  area: (Q0 = p.otherLayers) == null ? void 0 : Q0["voluntary-reporting-area"],
9577
9536
  "before-layer": b.beforeLayer
9578
9537
  }, z.$attrs), null, 16, ["map", "area", "before-layer"]),
9579
- C(s0, Q({
9538
+ w(f0, Q({
9580
9539
  map: b.map,
9581
9540
  area: (H0 = p.otherLayers) == null ? void 0 : H0["special-area"],
9582
9541
  "before-layer": b.beforeLayer
9583
9542
  }, z.$attrs), null, 16, ["map", "area", "before-layer"]),
9584
- C(z0, Q({
9543
+ w(p0, Q({
9585
9544
  map: b.map,
9586
9545
  area: (_0 = p.otherLayers) == null ? void 0 : _0["day-night"]
9587
9546
  }, z.$attrs), null, 16, ["map", "area"]),
9588
- C(u0, Q({
9547
+ w(m0, Q({
9589
9548
  map: b.map,
9590
9549
  show: p.showCoord,
9591
9550
  "toggle-version": b.toggleVersion
9592
9551
  }, z.$attrs), null, 16, ["map", "show", "toggle-version"]),
9593
- C(L0, Q({
9552
+ w(B0, Q({
9594
9553
  map: b.map,
9595
9554
  show: p.showMeasure
9596
9555
  }, z.$attrs), null, 16, ["map", "show"]),
9597
- C(W0, Q({
9556
+ w(u0, Q({
9598
9557
  ref: "idmPoint",
9599
9558
  map: b.map,
9600
9559
  show: p.showPoint,
@@ -9604,21 +9563,21 @@ function dz(z, M, b, O, p, o) {
9604
9563
  gateway: p.gateway,
9605
9564
  meteoSource: p.source
9606
9565
  }, z.$attrs), null, 16, ["map", "show", "meteo", "ts", "token", "gateway", "meteoSource"])
9607
- ], 512)) : _("", !0);
9566
+ ], 512)) : F("", !0);
9608
9567
  }
9609
- const sz = /* @__PURE__ */ k(rz, [["render", dz]]), gz = {
9568
+ const tz = /* @__PURE__ */ k(cz, [["render", ez]]), fz = {
9610
9569
  install(z) {
9611
- z.component("MapboxGL", sz), z.component("TropicalGL", F0), z.component("LatLngGL", K0);
9570
+ z.component("MapboxGL", tz), z.component("TropicalGL", F0), z.component("LatLngGL", K0);
9612
9571
  }
9613
9572
  };
9614
9573
  export {
9615
9574
  K0 as LatLngGL,
9616
- sz as MapboxGL,
9617
- gz as MapboxGLPlugin,
9575
+ tz as MapboxGL,
9576
+ fz as MapboxGLPlugin,
9618
9577
  k1 as MapboxHelper,
9619
- r0 as ParticleSchema,
9578
+ q0 as ParticleSchema,
9620
9579
  F0 as TropicalGL,
9621
9580
  P0 as Viewport,
9622
9581
  C0 as WebGL,
9623
- e0 as WebGLSchema
9582
+ A0 as WebGLSchema
9624
9583
  };