@idmwx/idmui-gl3 6.5.5 → 6.5.7
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 +393 -393
- package/dist/index.umd.cjs +5 -5
- package/package.json +4 -2
package/dist/index.js
CHANGED
|
@@ -2,13 +2,13 @@ var mt = Object.defineProperty;
|
|
|
2
2
|
var ut = (a, e, t) => e in a ? mt(a, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : a[e] = t;
|
|
3
3
|
var se = (a, e, t) => (ut(a, typeof e != "symbol" ? e + "" : e, t), t);
|
|
4
4
|
import { LayerHelper as $e, CompanyHelper as Ve } from "@idm-plugin/tag";
|
|
5
|
-
import
|
|
5
|
+
import re from "moment";
|
|
6
6
|
import Ne from "axios";
|
|
7
|
-
import { resolveComponent as
|
|
8
|
-
import * as
|
|
7
|
+
import { resolveComponent as j, openBlock as u, createElementBlock as g, createElementVNode as o, normalizeStyle as pe, createVNode as O, withCtx as Me, normalizeClass as ae, Fragment as te, renderList as ie, toDisplayString as k, createCommentVNode as q, createBlock as gt, createTextVNode as ve, withDirectives as Oe, createStaticVNode as yt, vShow as Fe, defineComponent as ft, withModifiers as Ze, mergeProps as K } from "vue";
|
|
8
|
+
import * as Q from "@turf/turf";
|
|
9
9
|
import At from "@mapbox/sphericalmercator";
|
|
10
10
|
import Re from "mapbox-gl";
|
|
11
|
-
import { TropicalHelper as ct, LngLatHelper as
|
|
11
|
+
import { TropicalHelper as ct, LngLatHelper as de, LaneHelper as We } from "@idm-plugin/geo";
|
|
12
12
|
import { TidesAssist as et, Meteo2Assist as Ke } from "@idm-plugin/meteo";
|
|
13
13
|
import Xe from "moment-timezone";
|
|
14
14
|
const Y = (a, e) => {
|
|
@@ -120,7 +120,7 @@ const Y = (a, e) => {
|
|
|
120
120
|
return function(a) {
|
|
121
121
|
var e;
|
|
122
122
|
if (a) {
|
|
123
|
-
const t =
|
|
123
|
+
const t = re(a);
|
|
124
124
|
return `${(e = t == null ? void 0 : t.utc()) == null ? void 0 : e.format("MMM-DD/HHmm")}Z`;
|
|
125
125
|
}
|
|
126
126
|
return "-";
|
|
@@ -301,11 +301,11 @@ const Y = (a, e) => {
|
|
|
301
301
|
class: "radio-tip"
|
|
302
302
|
};
|
|
303
303
|
function aa(a, e, t, r, i, s) {
|
|
304
|
-
const n =
|
|
304
|
+
const n = j("ElTooltip"), l = j("ElRadio"), c = j("ElRadioGroup"), d = j("ElScrollbar");
|
|
305
305
|
return u(), g("div", vt, [
|
|
306
306
|
o("div", {
|
|
307
307
|
class: "menu-bar-box",
|
|
308
|
-
style:
|
|
308
|
+
style: pe({ top: t.top + 10 + "px", right: i.right + "px" })
|
|
309
309
|
}, [
|
|
310
310
|
o("div", bt, [
|
|
311
311
|
O(n, {
|
|
@@ -316,7 +316,7 @@ function aa(a, e, t, r, i, s) {
|
|
|
316
316
|
}, {
|
|
317
317
|
default: Me(() => [
|
|
318
318
|
o("div", {
|
|
319
|
-
class:
|
|
319
|
+
class: ae(t.layerToggle ? "menu-icon active" : "menu-icon"),
|
|
320
320
|
onClick: e[0] || (e[0] = (...h) => s.handleMenuToggle && s.handleMenuToggle(...h))
|
|
321
321
|
}, e[17] || (e[17] = [
|
|
322
322
|
o("span", { class: "iconfont" }, "", -1)
|
|
@@ -328,7 +328,7 @@ function aa(a, e, t, r, i, s) {
|
|
|
328
328
|
], 4),
|
|
329
329
|
o("div", {
|
|
330
330
|
class: "menu-bar-box",
|
|
331
|
-
style:
|
|
331
|
+
style: pe({ top: t.top + 160 + "px", right: i.right + "px" })
|
|
332
332
|
}, [
|
|
333
333
|
o("div", Lt, [
|
|
334
334
|
O(n, {
|
|
@@ -339,7 +339,7 @@ function aa(a, e, t, r, i, s) {
|
|
|
339
339
|
}, {
|
|
340
340
|
default: Me(() => [
|
|
341
341
|
o("div", {
|
|
342
|
-
class:
|
|
342
|
+
class: ae(i.showMeasure ? "menu-icon active" : "menu-icon"),
|
|
343
343
|
onClick: e[1] || (e[1] = (...h) => s.handleMeasureToggle && s.handleMeasureToggle(...h))
|
|
344
344
|
}, e[18] || (e[18] = [
|
|
345
345
|
o("span", { class: "iconfont" }, "", -1)
|
|
@@ -355,7 +355,7 @@ function aa(a, e, t, r, i, s) {
|
|
|
355
355
|
}, {
|
|
356
356
|
default: Me(() => [
|
|
357
357
|
o("div", {
|
|
358
|
-
class:
|
|
358
|
+
class: ae(i.showPoint ? "menu-icon active" : "menu-icon"),
|
|
359
359
|
onClick: e[2] || (e[2] = (...h) => s.handlePointToggle && s.handlePointToggle(...h))
|
|
360
360
|
}, e[19] || (e[19] = [
|
|
361
361
|
o("span", { class: "iconfont" }, "", -1)
|
|
@@ -371,7 +371,7 @@ function aa(a, e, t, r, i, s) {
|
|
|
371
371
|
}, {
|
|
372
372
|
default: Me(() => [
|
|
373
373
|
o("div", {
|
|
374
|
-
class:
|
|
374
|
+
class: ae(i.showCoord ? "menu-icon active" : "menu-icon"),
|
|
375
375
|
onClick: e[3] || (e[3] = (...h) => s.handleCoordToggle && s.handleCoordToggle(...h))
|
|
376
376
|
}, e[20] || (e[20] = [
|
|
377
377
|
o("span", { class: "iconfont" }, "", -1)
|
|
@@ -387,7 +387,7 @@ function aa(a, e, t, r, i, s) {
|
|
|
387
387
|
}, {
|
|
388
388
|
default: Me(() => [
|
|
389
389
|
o("div", {
|
|
390
|
-
class:
|
|
390
|
+
class: ae(i.show3d ? "menu-icon active" : "menu-icon"),
|
|
391
391
|
onClick: e[4] || (e[4] = (...h) => s.handle3DToggle && s.handle3DToggle(...h))
|
|
392
392
|
}, e[21] || (e[21] = [
|
|
393
393
|
o("span", { class: "iconfont" }, "", -1)
|
|
@@ -400,7 +400,7 @@ function aa(a, e, t, r, i, s) {
|
|
|
400
400
|
s.hasCollectedLayers ? (u(), g("div", {
|
|
401
401
|
key: 0,
|
|
402
402
|
class: "active-layers",
|
|
403
|
-
style:
|
|
403
|
+
style: pe({ right: i.right + "px", bottom: "100px" })
|
|
404
404
|
}, [
|
|
405
405
|
o("div", Ct, [
|
|
406
406
|
e[22] || (e[22] = o("div", { style: { margin: "2px 5px" } }, "Weather Layers", -1)),
|
|
@@ -412,9 +412,9 @@ function aa(a, e, t, r, i, s) {
|
|
|
412
412
|
i.autoActive ? (u(), g("i", xt, "")) : (u(), g("i", _t, ""))
|
|
413
413
|
])
|
|
414
414
|
]),
|
|
415
|
-
(u(!0), g(
|
|
415
|
+
(u(!0), g(te, null, ie(i.layers.weather.filter((h) => h.collected), (h) => (u(), g("div", {
|
|
416
416
|
key: h.key,
|
|
417
|
-
class:
|
|
417
|
+
class: ae(s.computeLayerClass(h, i.activeWeatherLayersCollected))
|
|
418
418
|
}, [
|
|
419
419
|
o("div", {
|
|
420
420
|
class: "checkbox",
|
|
@@ -426,21 +426,21 @@ function aa(a, e, t, r, i, s) {
|
|
|
426
426
|
}, k(h.name), 9, It),
|
|
427
427
|
h.key === "wind" && i.activeWeatherLayersCollected.some((p) => p.key === h.key) ? (u(), g("div", Et, [
|
|
428
428
|
o("i", {
|
|
429
|
-
class:
|
|
429
|
+
class: ae(["iconfont sub-layer-icon", i.showWindParticleCollected ? "active" : ""]),
|
|
430
430
|
onClick: e[6] || (e[6] = (p) => s.handleToggleWindParticle())
|
|
431
431
|
}, "", 2),
|
|
432
432
|
o("i", {
|
|
433
|
-
class:
|
|
433
|
+
class: ae(["iconfont sub-layer-icon", i.showWindFeatherCollected ? "active" : ""]),
|
|
434
434
|
onClick: e[7] || (e[7] = (p) => s.handleToggleWindFeather())
|
|
435
435
|
}, "", 2)
|
|
436
436
|
])) : q("", !0),
|
|
437
437
|
h.key === "current" && i.activeWeatherLayersCollected.some((p) => p.key === h.key) ? (u(), g("div", kt, [
|
|
438
438
|
o("i", {
|
|
439
|
-
class:
|
|
439
|
+
class: ae(["iconfont sub-layer-icon", i.showCurrentParticleCollected ? "active" : ""]),
|
|
440
440
|
onClick: e[8] || (e[8] = (p) => s.handleToggleCurrentParticle())
|
|
441
441
|
}, "", 2),
|
|
442
442
|
o("i", {
|
|
443
|
-
class:
|
|
443
|
+
class: ae(["iconfont sub-layer-icon", i.showCurrentIsobandCollected ? "active" : ""]),
|
|
444
444
|
onClick: e[9] || (e[9] = (p) => s.handleToggleCurrentIsoband())
|
|
445
445
|
}, "", 2)
|
|
446
446
|
])) : q("", !0)
|
|
@@ -448,10 +448,10 @@ function aa(a, e, t, r, i, s) {
|
|
|
448
448
|
], 4)) : q("", !0),
|
|
449
449
|
o("div", {
|
|
450
450
|
class: "available-layers flex-center",
|
|
451
|
-
style:
|
|
451
|
+
style: pe({ top: t.top + "px", right: t.layerToggle ? "0px" : "-240px" })
|
|
452
452
|
}, [
|
|
453
453
|
o("div", {
|
|
454
|
-
class:
|
|
454
|
+
class: ae(["list-box", t.layerToggle ? "right-bar" : ""])
|
|
455
455
|
}, [
|
|
456
456
|
o("div", Dt, [
|
|
457
457
|
e[23] || (e[23] = o("div", null, "Layers", -1)),
|
|
@@ -474,12 +474,12 @@ function aa(a, e, t, r, i, s) {
|
|
|
474
474
|
])
|
|
475
475
|
]),
|
|
476
476
|
o("div", Tt, [
|
|
477
|
-
(u(!0), g(
|
|
477
|
+
(u(!0), g(te, null, ie(i.layers.weather, (h) => (u(), g(te, {
|
|
478
478
|
key: h.key
|
|
479
479
|
}, [
|
|
480
480
|
h.hide ? q("", !0) : (u(), g("div", {
|
|
481
481
|
key: 0,
|
|
482
|
-
class:
|
|
482
|
+
class: ae(s.computeLayerClass(h, i.activeWeatherLayersCollected))
|
|
483
483
|
}, [
|
|
484
484
|
o("div", Qt, [
|
|
485
485
|
o("div", {
|
|
@@ -492,21 +492,21 @@ function aa(a, e, t, r, i, s) {
|
|
|
492
492
|
}, k(h.name), 9, Nt),
|
|
493
493
|
h.key === "wind" && i.activeWeatherLayersCollected.some((p) => p.key === h.key) ? (u(), g("div", Ot, [
|
|
494
494
|
o("i", {
|
|
495
|
-
class:
|
|
495
|
+
class: ae(["iconfont sub-layer-icon", i.showWindParticleCollected ? "active" : ""]),
|
|
496
496
|
onClick: e[12] || (e[12] = (p) => s.handleToggleWindParticle())
|
|
497
497
|
}, "", 2),
|
|
498
498
|
o("i", {
|
|
499
|
-
class:
|
|
499
|
+
class: ae(["iconfont sub-layer-icon", i.showWindFeatherCollected ? "active" : ""]),
|
|
500
500
|
onClick: e[13] || (e[13] = (p) => s.handleToggleWindFeather())
|
|
501
501
|
}, "", 2)
|
|
502
502
|
])) : q("", !0),
|
|
503
503
|
h.key === "current" && i.activeWeatherLayersCollected.some((p) => p.key === h.key) ? (u(), g("div", Ft, [
|
|
504
504
|
o("i", {
|
|
505
|
-
class:
|
|
505
|
+
class: ae(["iconfont sub-layer-icon", i.showCurrentParticleCollected ? "active" : ""]),
|
|
506
506
|
onClick: e[14] || (e[14] = (p) => s.handleToggleCurrentParticle())
|
|
507
507
|
}, "", 2),
|
|
508
508
|
o("i", {
|
|
509
|
-
class:
|
|
509
|
+
class: ae(["iconfont sub-layer-icon", i.showCurrentIsobandCollected ? "active" : ""]),
|
|
510
510
|
onClick: e[15] || (e[15] = (p) => s.handleToggleCurrentIsoband())
|
|
511
511
|
}, "", 2)
|
|
512
512
|
])) : q("", !0)
|
|
@@ -530,11 +530,11 @@ function aa(a, e, t, r, i, s) {
|
|
|
530
530
|
o("div", Gt, [
|
|
531
531
|
e[26] || (e[26] = o("div", { class: "layers-title" }, "Other Layers", -1)),
|
|
532
532
|
o("div", Ut, [
|
|
533
|
-
(u(!0), g(
|
|
533
|
+
(u(!0), g(te, null, ie(i.layers.other, (h) => {
|
|
534
534
|
var p;
|
|
535
535
|
return u(), g("div", {
|
|
536
536
|
key: h.key,
|
|
537
|
-
class:
|
|
537
|
+
class: ae(["layer flex-between", s.computeLayerClass(h, i.activeOtherLayers)]),
|
|
538
538
|
onClick: (L) => s.handleOtherLayerPick(h)
|
|
539
539
|
}, [
|
|
540
540
|
o("div", Kt, [
|
|
@@ -557,14 +557,14 @@ function aa(a, e, t, r, i, s) {
|
|
|
557
557
|
style: { width: "180px", "align-items": "flex-start" }
|
|
558
558
|
}, {
|
|
559
559
|
default: Me(() => [
|
|
560
|
-
(u(!0), g(
|
|
560
|
+
(u(!0), g(te, null, ie(i.sourceList, (h, p) => (u(), gt(l, {
|
|
561
561
|
key: `source${h.name}`,
|
|
562
562
|
value: h.name
|
|
563
563
|
}, {
|
|
564
564
|
default: Me(() => {
|
|
565
565
|
var L, E, B, y, I, x;
|
|
566
566
|
return [
|
|
567
|
-
|
|
567
|
+
ve(k(h.name) + " ", 1),
|
|
568
568
|
p !== 0 ? (u(), g("span", $t, k(h.resolution) + "km " + k(h.length) + "days", 1)) : q("", !0),
|
|
569
569
|
p === 0 ? (u(), g("div", ea, "Provides the best forecast")) : (B = (E = (L = h == null ? void 0 : h.update) == null ? void 0 : L.default) == null ? void 0 : E.meta) != null && B.initialisationTime ? (u(), g("div", ta, "Update: " + k(s.computeDateZ((x = (I = (y = h == null ? void 0 : h.update) == null ? void 0 : y.default) == null ? void 0 : I.meta) == null ? void 0 : x.initialisationTime)), 1)) : q("", !0)
|
|
570
570
|
];
|
|
@@ -622,7 +622,7 @@ const ra = {
|
|
|
622
622
|
return {
|
|
623
623
|
source: "wind-barb-source",
|
|
624
624
|
barbs: [0, 2, 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60, 65, 70, 75, 80, 85, 90, 95, 100, 105],
|
|
625
|
-
empty:
|
|
625
|
+
empty: Q.featureCollection([]),
|
|
626
626
|
right: 10,
|
|
627
627
|
bottom: 125,
|
|
628
628
|
windBarbLoaded: !1
|
|
@@ -1008,10 +1008,10 @@ class je {
|
|
|
1008
1008
|
});
|
|
1009
1009
|
}
|
|
1010
1010
|
}
|
|
1011
|
-
class
|
|
1011
|
+
class ne {
|
|
1012
1012
|
}
|
|
1013
1013
|
// 顶点渲染
|
|
1014
|
-
se(
|
|
1014
|
+
se(ne, "vertexSchema", `
|
|
1015
1015
|
//canvas 坐标系上的坐标 (x, y)
|
|
1016
1016
|
attribute vec2 a_position; //像素坐标
|
|
1017
1017
|
attribute vec2 a_texCoord; //纹理坐标
|
|
@@ -1026,7 +1026,7 @@ se(oe, "vertexSchema", `
|
|
|
1026
1026
|
gl_Position = vec4(position * vec2(1, -1), 0.0, 1.0);
|
|
1027
1027
|
v_texCoord = a_texCoord;
|
|
1028
1028
|
}`), // 类如风、流等u v双变量片元渲染
|
|
1029
|
-
se(
|
|
1029
|
+
se(ne, "uvFragmentSchema", `
|
|
1030
1030
|
precision mediump float;
|
|
1031
1031
|
uniform sampler2D u_image;
|
|
1032
1032
|
uniform vec2 u_range_u_v;
|
|
@@ -1046,7 +1046,7 @@ se(oe, "uvFragmentSchema", `
|
|
|
1046
1046
|
|
|
1047
1047
|
gl_FragColor = color;
|
|
1048
1048
|
}`), // 类如浪、气压等单变量片元渲染
|
|
1049
|
-
se(
|
|
1049
|
+
se(ne, "fragmentSchema", `
|
|
1050
1050
|
precision mediump float;
|
|
1051
1051
|
uniform sampler2D u_image; // 灰度
|
|
1052
1052
|
uniform sampler2D u_color; // 色值映射
|
|
@@ -3210,7 +3210,7 @@ const la = {
|
|
|
3210
3210
|
[1, "rgb(91, 136, 161)"]
|
|
3211
3211
|
];
|
|
3212
3212
|
this.rampColor = this.webgl.setup(this.context, a);
|
|
3213
|
-
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context,
|
|
3213
|
+
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, ne.vertexSchema, ne.uvFragmentSchema);
|
|
3214
3214
|
this.program = e, this.aPositionBuffer = t;
|
|
3215
3215
|
}
|
|
3216
3216
|
this.handleParticleSetup();
|
|
@@ -3264,7 +3264,7 @@ function ca(a, e, t, r, i, s) {
|
|
|
3264
3264
|
return (n = t.factor) != null && n.active ? (u(), g("div", ha, [
|
|
3265
3265
|
o("div", {
|
|
3266
3266
|
class: "legend-bars flex-center",
|
|
3267
|
-
style:
|
|
3267
|
+
style: pe([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
|
|
3268
3268
|
}, e[0] || (e[0] = [
|
|
3269
3269
|
o("span", null, "kts", -1),
|
|
3270
3270
|
o("span", null, "0", -1),
|
|
@@ -3319,7 +3319,7 @@ const pa = {
|
|
|
3319
3319
|
directionLayer: "current-direction-layer",
|
|
3320
3320
|
speedLayer: "current-speed-layer",
|
|
3321
3321
|
speedLabelLayer: "current-speed-label-layer",
|
|
3322
|
-
empty:
|
|
3322
|
+
empty: Q.featureCollection([]),
|
|
3323
3323
|
right: 10,
|
|
3324
3324
|
bottom: 95
|
|
3325
3325
|
};
|
|
@@ -3538,7 +3538,7 @@ const ga = {
|
|
|
3538
3538
|
[1, "rgb(195,194,194)"]
|
|
3539
3539
|
];
|
|
3540
3540
|
this.rampColor = this.webgl.setup(this.context, a);
|
|
3541
|
-
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context,
|
|
3541
|
+
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, ne.vertexSchema, ne.uvFragmentSchema);
|
|
3542
3542
|
this.program = e, this.aPositionBuffer = t;
|
|
3543
3543
|
}
|
|
3544
3544
|
this.handleParticleSetup();
|
|
@@ -3597,7 +3597,7 @@ function fa(a, e, t, r, i, s) {
|
|
|
3597
3597
|
return (n = t.factor) != null && n.active ? (u(), g("div", ya, [
|
|
3598
3598
|
o("div", {
|
|
3599
3599
|
class: "legend-bars flex-center",
|
|
3600
|
-
style:
|
|
3600
|
+
style: pe([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
|
|
3601
3601
|
}, e[0] || (e[0] = [
|
|
3602
3602
|
o("span", null, "kts", -1),
|
|
3603
3603
|
o("span", null, "0", -1),
|
|
@@ -3702,7 +3702,7 @@ const wa = {
|
|
|
3702
3702
|
//13
|
|
3703
3703
|
];
|
|
3704
3704
|
this.rampColor = this.webgl.setup(this.context, a);
|
|
3705
|
-
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context,
|
|
3705
|
+
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, ne.vertexSchema, ne.fragmentSchema);
|
|
3706
3706
|
this.program = e, this.aPositionBuffer = t;
|
|
3707
3707
|
}
|
|
3708
3708
|
},
|
|
@@ -3721,7 +3721,7 @@ function ba(a, e, t, r, i, s) {
|
|
|
3721
3721
|
return (n = t.factor) != null && n.active ? (u(), g("div", va, [
|
|
3722
3722
|
o("div", {
|
|
3723
3723
|
class: "legend-bars flex-center",
|
|
3724
|
-
style:
|
|
3724
|
+
style: pe([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
|
|
3725
3725
|
}, e[0] || (e[0] = [
|
|
3726
3726
|
o("span", null, "m", -1),
|
|
3727
3727
|
o("span", null, "0.5", -1),
|
|
@@ -3754,7 +3754,7 @@ const La = /* @__PURE__ */ Y(wa, [["render", ba], ["__scopeId", "data-v-52aea06f
|
|
|
3754
3754
|
source: "sig-wave-height-source",
|
|
3755
3755
|
heightLayer: "sig-wave-height-layer",
|
|
3756
3756
|
heightLabelLayer: "sig-wave-height-label-layer",
|
|
3757
|
-
empty:
|
|
3757
|
+
empty: Q.featureCollection([])
|
|
3758
3758
|
};
|
|
3759
3759
|
},
|
|
3760
3760
|
watch: {
|
|
@@ -3886,7 +3886,7 @@ const _a = /* @__PURE__ */ Y(Ca, [["render", xa]]), Ba = {
|
|
|
3886
3886
|
directionLayer: "swell-direction-layer",
|
|
3887
3887
|
heightLayer: "swell-height-layer",
|
|
3888
3888
|
heightLabelLayer: "swell-height-label-layer",
|
|
3889
|
-
empty:
|
|
3889
|
+
empty: Q.featureCollection([])
|
|
3890
3890
|
};
|
|
3891
3891
|
},
|
|
3892
3892
|
watch: {
|
|
@@ -4047,7 +4047,7 @@ const Ea = /* @__PURE__ */ Y(Ba, [["render", Ia]]), ka = {
|
|
|
4047
4047
|
layer: "prmsl-layer",
|
|
4048
4048
|
labelLayer: "prmsl-label-layer",
|
|
4049
4049
|
pointLabelLayer: "prmsl-point-label-layer",
|
|
4050
|
-
empty:
|
|
4050
|
+
empty: Q.featureCollection([])
|
|
4051
4051
|
};
|
|
4052
4052
|
},
|
|
4053
4053
|
watch: {
|
|
@@ -4249,7 +4249,7 @@ const za = {
|
|
|
4249
4249
|
// 100%
|
|
4250
4250
|
];
|
|
4251
4251
|
this.rampColor = this.webgl.setup(this.context, a);
|
|
4252
|
-
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context,
|
|
4252
|
+
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, ne.vertexSchema, ne.fragmentSchema);
|
|
4253
4253
|
this.program = e, this.aPositionBuffer = t;
|
|
4254
4254
|
}
|
|
4255
4255
|
},
|
|
@@ -4268,7 +4268,7 @@ function Sa(a, e, t, r, i, s) {
|
|
|
4268
4268
|
return (n = t.factor) != null && n.active ? (u(), g("div", Ma, [
|
|
4269
4269
|
o("div", {
|
|
4270
4270
|
class: "legend-bars flex-center",
|
|
4271
|
-
style:
|
|
4271
|
+
style: pe([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
|
|
4272
4272
|
}, e[0] || (e[0] = [
|
|
4273
4273
|
o("span", null, null, -1),
|
|
4274
4274
|
o("span", { style: { display: "inline-block", position: "relative", left: "-10px" } }, "%", -1),
|
|
@@ -4365,7 +4365,7 @@ const Qa = {
|
|
|
4365
4365
|
// 100%
|
|
4366
4366
|
];
|
|
4367
4367
|
this.rampColor = this.webgl.setup(this.context, a);
|
|
4368
|
-
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context,
|
|
4368
|
+
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, ne.vertexSchema, ne.fragmentSchema);
|
|
4369
4369
|
this.program = e, this.aPositionBuffer = t;
|
|
4370
4370
|
}
|
|
4371
4371
|
},
|
|
@@ -4384,7 +4384,7 @@ function Na(a, e, t, r, i, s) {
|
|
|
4384
4384
|
return (n = t.factor) != null && n.active ? (u(), g("div", Ha, [
|
|
4385
4385
|
o("div", {
|
|
4386
4386
|
class: "legend-bars flex-center",
|
|
4387
|
-
style:
|
|
4387
|
+
style: pe([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
|
|
4388
4388
|
}, e[0] || (e[0] = [
|
|
4389
4389
|
o("span", null, "%", -1),
|
|
4390
4390
|
o("span", null, "20", -1),
|
|
@@ -4483,7 +4483,7 @@ const Fa = {
|
|
|
4483
4483
|
// 4m
|
|
4484
4484
|
];
|
|
4485
4485
|
this.rampColor = this.webgl.setup(this.context, a);
|
|
4486
|
-
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context,
|
|
4486
|
+
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, ne.vertexSchema, ne.fragmentSchema);
|
|
4487
4487
|
this.program = e, this.aPositionBuffer = t;
|
|
4488
4488
|
}
|
|
4489
4489
|
},
|
|
@@ -4502,7 +4502,7 @@ function ja(a, e, t, r, i, s) {
|
|
|
4502
4502
|
return (n = t.factor) != null && n.active ? (u(), g("div", Ra, [
|
|
4503
4503
|
o("div", {
|
|
4504
4504
|
class: "legend-bars flex-center",
|
|
4505
|
-
style:
|
|
4505
|
+
style: pe([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
|
|
4506
4506
|
}, e[0] || (e[0] = [
|
|
4507
4507
|
o("span", null, "m", -1),
|
|
4508
4508
|
o("span", null, "0", -1),
|
|
@@ -4861,42 +4861,42 @@ class ht {
|
|
|
4861
4861
|
}), i;
|
|
4862
4862
|
}
|
|
4863
4863
|
static pickHourly(e, t) {
|
|
4864
|
-
var r, i, s, n, l, c, d, h, p, L, E, B, y, I, x, f, v, m, b, A, w, z, D,
|
|
4865
|
-
const J = typeof t == "string" ?
|
|
4866
|
-
if (J.isBetween(X,
|
|
4864
|
+
var r, i, s, n, l, c, d, h, p, L, E, B, y, I, x, f, v, m, b, A, w, z, D, F, H, N, W, G, le, $, oe, fe, me, be, ue, ge, U, Z, he, ce, Ae, Le, xe, _, Ee, Ce, ke, Be, Pe, _e;
|
|
4865
|
+
const J = typeof t == "string" ? re(t) : t, V = e == null ? void 0 : e.weather, S = e == null ? void 0 : e.marine, De = re((i = (r = V == null ? void 0 : V[0]) == null ? void 0 : r.hourly) == null ? void 0 : i.date).utc(), X = De.clone().add((l = (n = (s = V == null ? void 0 : V[0]) == null ? void 0 : s.hourly) == null ? void 0 : n.time) == null ? void 0 : l.at(0), "h"), ee = De.clone().add((h = (d = (c = V == null ? void 0 : V[0]) == null ? void 0 : c.hourly) == null ? void 0 : d.time) == null ? void 0 : h.at(-1), "h"), Te = [];
|
|
4866
|
+
if (J.isBetween(X, ee, "millisecond", "[]")) {
|
|
4867
4867
|
const M = J.utc().diff(X, "h", !1);
|
|
4868
4868
|
let we, Se;
|
|
4869
4869
|
if (V) {
|
|
4870
4870
|
let Qe = 0, He = 0;
|
|
4871
4871
|
for (const P of V) {
|
|
4872
|
-
const
|
|
4872
|
+
const R = P == null ? void 0 : P.hourly;
|
|
4873
4873
|
for (let ze = M - (M - 1) % 3; ze <= M; ze++)
|
|
4874
|
-
Qe += (p =
|
|
4874
|
+
Qe += (p = R == null ? void 0 : R.precipitation) == null ? void 0 : p.at(ze);
|
|
4875
4875
|
for (let ze = M - (M - 1) % 6; ze <= M; ze++)
|
|
4876
|
-
He += (L =
|
|
4876
|
+
He += (L = R == null ? void 0 : R.precipitation) == null ? void 0 : L.at(ze);
|
|
4877
4877
|
we = {
|
|
4878
|
-
temp: (E =
|
|
4879
|
-
apparentTemp: (B =
|
|
4880
|
-
rh: (y =
|
|
4881
|
-
dp: (I =
|
|
4878
|
+
temp: (E = R == null ? void 0 : R.temperature_2m) == null ? void 0 : E.at(M),
|
|
4879
|
+
apparentTemp: (B = R == null ? void 0 : R.apparent_temperature) == null ? void 0 : B.at(M),
|
|
4880
|
+
rh: (y = R == null ? void 0 : R.relative_humidity_2m) == null ? void 0 : y.at(M),
|
|
4881
|
+
dp: (I = R == null ? void 0 : R.dew_point_2m) == null ? void 0 : I.at(M),
|
|
4882
4882
|
precip: {
|
|
4883
|
-
probability: (x =
|
|
4884
|
-
sum: (f =
|
|
4883
|
+
probability: (x = R == null ? void 0 : R.precipitation_probability) == null ? void 0 : x.at(M),
|
|
4884
|
+
sum: (f = R == null ? void 0 : R.precipitation) == null ? void 0 : f.at(M),
|
|
4885
4885
|
sum3Hours: Math.round(Qe * 100) / 100,
|
|
4886
4886
|
sum6Hours: Math.round(He * 100) / 100
|
|
4887
4887
|
},
|
|
4888
|
-
pmsl: (v =
|
|
4889
|
-
psurf: (m =
|
|
4890
|
-
code: (b =
|
|
4891
|
-
visibility: this.m2nm((A =
|
|
4888
|
+
pmsl: (v = R == null ? void 0 : R.pressure_msl) == null ? void 0 : v.at(M),
|
|
4889
|
+
psurf: (m = R == null ? void 0 : R.surface_pressure) == null ? void 0 : m.at(M),
|
|
4890
|
+
code: (b = R == null ? void 0 : R.weather_code) == null ? void 0 : b.at(M),
|
|
4891
|
+
visibility: this.m2nm((A = R == null ? void 0 : R.visibility) == null ? void 0 : A.at(M)),
|
|
4892
4892
|
wind: {
|
|
4893
|
-
speed: (w =
|
|
4894
|
-
kts: (z =
|
|
4895
|
-
degree: (D =
|
|
4896
|
-
bearing: ((
|
|
4897
|
-
gusts: (
|
|
4893
|
+
speed: (w = R == null ? void 0 : R.wind_speed_10m) == null ? void 0 : w.at(M),
|
|
4894
|
+
kts: (z = R == null ? void 0 : R.wind_speed_10m) == null ? void 0 : z.at(M),
|
|
4895
|
+
degree: (D = R == null ? void 0 : R.wind_direction_10m) == null ? void 0 : D.at(M),
|
|
4896
|
+
bearing: ((F = R == null ? void 0 : R.wind_direction_10m) == null ? void 0 : F.at(M)) !== null ? (((H = R == null ? void 0 : R.wind_direction_10m) == null ? void 0 : H.at(M)) + 180) % 360 : null,
|
|
4897
|
+
gusts: (N = R == null ? void 0 : R.wind_gusts_10m) == null ? void 0 : N.at(M)
|
|
4898
4898
|
},
|
|
4899
|
-
isDay: (
|
|
4899
|
+
isDay: (W = R == null ? void 0 : R.is_day) == null ? void 0 : W.at(M)
|
|
4900
4900
|
};
|
|
4901
4901
|
const { name: Ge, url: Ue, bg: Ye } = this.parseWeatherCode(we.code, we.isDay);
|
|
4902
4902
|
we.name = Ge, we.url = Ue, we.bg = Ye, we.wind.scale = this.beaufort(this.kts2ms(we.wind.kts)), we.wind.direction = this.degree2Direction(we.wind.degree), Te.push({
|
|
@@ -4906,28 +4906,28 @@ class ht {
|
|
|
4906
4906
|
});
|
|
4907
4907
|
}
|
|
4908
4908
|
}
|
|
4909
|
-
if (
|
|
4909
|
+
if (S) {
|
|
4910
4910
|
let Qe = 0;
|
|
4911
|
-
for (const He of
|
|
4911
|
+
for (const He of S) {
|
|
4912
4912
|
const P = He == null ? void 0 : He.hourly;
|
|
4913
4913
|
Se = {
|
|
4914
4914
|
wave: {
|
|
4915
4915
|
sig: {
|
|
4916
|
-
height: (
|
|
4917
|
-
degree: (
|
|
4918
|
-
bearing: ((
|
|
4919
|
-
period: (
|
|
4916
|
+
height: (G = P == null ? void 0 : P.wave_height) == null ? void 0 : G.at(M),
|
|
4917
|
+
degree: (le = P == null ? void 0 : P.wave_direction) == null ? void 0 : le.at(M),
|
|
4918
|
+
bearing: (($ = P == null ? void 0 : P.wave_direction) == null ? void 0 : $.at(M)) !== null ? (((oe = P == null ? void 0 : P.wave_direction) == null ? void 0 : oe.at(M)) + 180) % 360 : null,
|
|
4919
|
+
period: (fe = P == null ? void 0 : P.wave_period) == null ? void 0 : fe.at(M)
|
|
4920
4920
|
},
|
|
4921
4921
|
swell: {
|
|
4922
4922
|
height: (me = P == null ? void 0 : P.swell_wave_height) == null ? void 0 : me.at(M),
|
|
4923
4923
|
degree: (be = P == null ? void 0 : P.swell_wave_direction) == null ? void 0 : be.at(M),
|
|
4924
4924
|
bearing: ((ue = P == null ? void 0 : P.swell_wave_direction) == null ? void 0 : ue.at(M)) !== null ? (((ge = P == null ? void 0 : P.swell_wave_direction) == null ? void 0 : ge.at(M)) + 180) % 360 : null,
|
|
4925
|
-
period: (
|
|
4925
|
+
period: (U = P == null ? void 0 : P.swell_wave_period) == null ? void 0 : U.at(M),
|
|
4926
4926
|
peakPeriod: (Z = P == null ? void 0 : P.swell_wave_peak_period) == null ? void 0 : Z.at(M)
|
|
4927
4927
|
},
|
|
4928
4928
|
wd: {
|
|
4929
|
-
height: (
|
|
4930
|
-
degree: (
|
|
4929
|
+
height: (he = P == null ? void 0 : P.wind_wave_height) == null ? void 0 : he.at(M),
|
|
4930
|
+
degree: (ce = P == null ? void 0 : P.wind_wave_direction) == null ? void 0 : ce.at(M),
|
|
4931
4931
|
bearing: ((Ae = P == null ? void 0 : P.wind_wave_direction) == null ? void 0 : Ae.at(M)) !== null ? (((Le = P == null ? void 0 : P.wind_wave_direction) == null ? void 0 : Le.at(M)) + 180) % 360 : null,
|
|
4932
4932
|
period: (xe = P == null ? void 0 : P.wind_wave_period) == null ? void 0 : xe.at(M),
|
|
4933
4933
|
peakPeriod: (_ = P == null ? void 0 : P.wind_wave_peak_period) == null ? void 0 : _.at(M)
|
|
@@ -4970,49 +4970,49 @@ class ht {
|
|
|
4970
4970
|
};
|
|
4971
4971
|
}
|
|
4972
4972
|
static pickDaily(e, t) {
|
|
4973
|
-
var r, i, s, n, l, c, d, h, p, L, E, B, y, I, x, f, v, m, b, A, w, z, D,
|
|
4974
|
-
const Ee = typeof t == "string" ?
|
|
4973
|
+
var r, i, s, n, l, c, d, h, p, L, E, B, y, I, x, f, v, m, b, A, w, z, D, F, H, N, W, G, le, $, oe, fe, me, be, ue, ge, U, Z, he, ce, Ae, Le, xe, _;
|
|
4974
|
+
const Ee = typeof t == "string" ? re(t) : t, Ce = e == null ? void 0 : e.weather, ke = e == null ? void 0 : e.marine, Be = re((s = (i = (r = Ce == null ? void 0 : Ce[0]) == null ? void 0 : r.daily) == null ? void 0 : i.time) == null ? void 0 : s.at(0)), Pe = re((c = (l = (n = Ce == null ? void 0 : Ce[0]) == null ? void 0 : n.daily) == null ? void 0 : l.time) == null ? void 0 : c.at(-1)), _e = [];
|
|
4975
4975
|
if (Ee.isBetween(Be, Pe, "millisecond", "[]")) {
|
|
4976
4976
|
let J, V;
|
|
4977
|
-
const
|
|
4977
|
+
const S = Ee.diff(Be, "d", !1);
|
|
4978
4978
|
if (Ce)
|
|
4979
4979
|
for (const De of Ce) {
|
|
4980
4980
|
const X = De.daily;
|
|
4981
4981
|
J = {
|
|
4982
|
-
code: (d = X.weather_code) == null ? void 0 : d.at(
|
|
4982
|
+
code: (d = X.weather_code) == null ? void 0 : d.at(S),
|
|
4983
4983
|
temp: {
|
|
4984
|
-
max: (h = X.temperature_2m_max) == null ? void 0 : h.at(
|
|
4985
|
-
min: (p = X.temperature_2m_min) == null ? void 0 : p.at(
|
|
4986
|
-
mean: (L = X.temperature_2m_mean) == null ? void 0 : L.at(
|
|
4984
|
+
max: (h = X.temperature_2m_max) == null ? void 0 : h.at(S),
|
|
4985
|
+
min: (p = X.temperature_2m_min) == null ? void 0 : p.at(S),
|
|
4986
|
+
mean: (L = X.temperature_2m_mean) == null ? void 0 : L.at(S)
|
|
4987
4987
|
},
|
|
4988
4988
|
apparentTemp: {
|
|
4989
|
-
max: (E = X.apparent_temperature_max) == null ? void 0 : E.at(
|
|
4990
|
-
min: (B = X.apparent_temperature_min) == null ? void 0 : B.at(
|
|
4989
|
+
max: (E = X.apparent_temperature_max) == null ? void 0 : E.at(S),
|
|
4990
|
+
min: (B = X.apparent_temperature_min) == null ? void 0 : B.at(S)
|
|
4991
4991
|
},
|
|
4992
4992
|
precip: {
|
|
4993
|
-
sum: (y = X.precipitation_sum) == null ? void 0 : y.at(
|
|
4994
|
-
rainSum: (I = X.rain_sum) == null ? void 0 : I.at(
|
|
4995
|
-
snowfallSum: (x = X.snowfall_sum) == null ? void 0 : x.at(
|
|
4996
|
-
showersSum: (f = X.showers_sum) == null ? void 0 : f.at(
|
|
4997
|
-
hours: (v = X.precipitation_hours) == null ? void 0 : v.at(
|
|
4998
|
-
probability: (m = X.precipitation_probability_max) == null ? void 0 : m.at(
|
|
4993
|
+
sum: (y = X.precipitation_sum) == null ? void 0 : y.at(S),
|
|
4994
|
+
rainSum: (I = X.rain_sum) == null ? void 0 : I.at(S),
|
|
4995
|
+
snowfallSum: (x = X.snowfall_sum) == null ? void 0 : x.at(S),
|
|
4996
|
+
showersSum: (f = X.showers_sum) == null ? void 0 : f.at(S),
|
|
4997
|
+
hours: (v = X.precipitation_hours) == null ? void 0 : v.at(S),
|
|
4998
|
+
probability: (m = X.precipitation_probability_max) == null ? void 0 : m.at(S)
|
|
4999
4999
|
},
|
|
5000
5000
|
rh: {
|
|
5001
|
-
max: (b = X.relative_humidity_2m_max) == null ? void 0 : b.at(
|
|
5002
|
-
min: (A = X.relative_humidity_2m_min) == null ? void 0 : A.at(
|
|
5003
|
-
mean: (w = X.relative_humidity_2m_mean) == null ? void 0 : w.at(
|
|
5001
|
+
max: (b = X.relative_humidity_2m_max) == null ? void 0 : b.at(S),
|
|
5002
|
+
min: (A = X.relative_humidity_2m_min) == null ? void 0 : A.at(S),
|
|
5003
|
+
mean: (w = X.relative_humidity_2m_mean) == null ? void 0 : w.at(S)
|
|
5004
5004
|
},
|
|
5005
5005
|
wind: {
|
|
5006
|
-
speed: (z = X.wind_speed_10m_max) == null ? void 0 : z.at(
|
|
5007
|
-
kts: (D = X.wind_speed_10m_max) == null ? void 0 : D.at(
|
|
5008
|
-
degree: (
|
|
5009
|
-
gusts: (
|
|
5010
|
-
bearing: ((
|
|
5006
|
+
speed: (z = X.wind_speed_10m_max) == null ? void 0 : z.at(S),
|
|
5007
|
+
kts: (D = X.wind_speed_10m_max) == null ? void 0 : D.at(S),
|
|
5008
|
+
degree: (F = X.wind_direction_10m_dominant) == null ? void 0 : F.at(S),
|
|
5009
|
+
gusts: (H = X.wind_gusts_10m_max) == null ? void 0 : H.at(S),
|
|
5010
|
+
bearing: ((N = X.wind_direction_10m_dominant) == null ? void 0 : N.at(S)) !== null ? (((W = X.wind_direction_10m_dominant) == null ? void 0 : W.at(S)) + 180) % 360 : null
|
|
5011
5011
|
}
|
|
5012
5012
|
};
|
|
5013
|
-
const { name:
|
|
5014
|
-
J.name =
|
|
5015
|
-
utc: Be.add(
|
|
5013
|
+
const { name: ee, url: Te, bg: M } = this.parseWeatherCode(J.code, !0);
|
|
5014
|
+
J.name = ee, J.url = Te, J.bg = M, J.wind.scale = this.beaufort(this.kts2ms(J.wind.kts)), J.wind.direction = this.degree2Direction(J.wind.degree), _e.push({
|
|
5015
|
+
utc: Be.add(S, "d").utc().format(),
|
|
5016
5016
|
model: De.model,
|
|
5017
5017
|
weather: { ...J }
|
|
5018
5018
|
});
|
|
@@ -5020,29 +5020,29 @@ class ht {
|
|
|
5020
5020
|
if (ke) {
|
|
5021
5021
|
let De = 0;
|
|
5022
5022
|
for (const X of ke) {
|
|
5023
|
-
const
|
|
5023
|
+
const ee = X.daily;
|
|
5024
5024
|
V = {
|
|
5025
5025
|
wave: {
|
|
5026
5026
|
sig: {
|
|
5027
|
-
height: (
|
|
5028
|
-
degree: (
|
|
5029
|
-
period: (
|
|
5030
|
-
bearing: ((
|
|
5027
|
+
height: (G = ee.wave_height_max) == null ? void 0 : G.at(S),
|
|
5028
|
+
degree: (le = ee.wave_direction_dominant) == null ? void 0 : le.at(S),
|
|
5029
|
+
period: ($ = ee.wave_period_max) == null ? void 0 : $.at(S),
|
|
5030
|
+
bearing: ((oe = ee.wave_direction_dominant) == null ? void 0 : oe.at(S)) !== null ? (((fe = ee.wave_direction_dominant) == null ? void 0 : fe.at(S)) + 180) % 360 : null
|
|
5031
5031
|
},
|
|
5032
5032
|
swell: {
|
|
5033
|
-
height: (me =
|
|
5034
|
-
degree: (be =
|
|
5035
|
-
period: (ue =
|
|
5036
|
-
peakPeriod: (ge =
|
|
5033
|
+
height: (me = ee.swell_wave_height_max) == null ? void 0 : me.at(S),
|
|
5034
|
+
degree: (be = ee.swell_wave_direction_dominant) == null ? void 0 : be.at(S),
|
|
5035
|
+
period: (ue = ee.swell_wave_period_max) == null ? void 0 : ue.at(S),
|
|
5036
|
+
peakPeriod: (ge = ee.swell_wave_peak_period_max) == null ? void 0 : ge.at(S),
|
|
5037
5037
|
// bearing: daily.swell_wave_direction_dominant?.at(day) !== null ? (daily.swell_wave_direction_dominant?.at(day) + 180) % 360 : null,
|
|
5038
|
-
bearing: ((
|
|
5038
|
+
bearing: ((U = ee.swell_wave_direction_dominant) == null ? void 0 : U.at(S)) !== null ? ((Z = ee.swell_wave_direction_dominant) == null ? void 0 : Z.at(S)) % 360 : null
|
|
5039
5039
|
},
|
|
5040
5040
|
wd: {
|
|
5041
|
-
height: (
|
|
5042
|
-
degree: (
|
|
5043
|
-
period: (Ae =
|
|
5044
|
-
peakPeriod: (Le =
|
|
5045
|
-
bearing: ((xe =
|
|
5041
|
+
height: (he = ee.wind_wave_height_max) == null ? void 0 : he.at(S),
|
|
5042
|
+
degree: (ce = ee.wind_wave_direction_dominant) == null ? void 0 : ce.at(S),
|
|
5043
|
+
period: (Ae = ee.wind_wave_period_max) == null ? void 0 : Ae.at(S),
|
|
5044
|
+
peakPeriod: (Le = ee.wind_wave_peak_period_max) == null ? void 0 : Le.at(S),
|
|
5045
|
+
bearing: ((xe = ee.wind_wave_direction_dominant) == null ? void 0 : xe.at(S)) !== null ? (((_ = ee.wind_wave_direction_dominant) == null ? void 0 : _.at(S)) + 180) % 360 : null
|
|
5046
5046
|
}
|
|
5047
5047
|
}
|
|
5048
5048
|
}, V.wave = this.parseWave(V.wave, J == null ? void 0 : J.wind), Object.assign(_e[De], V), De++;
|
|
@@ -5495,9 +5495,9 @@ const Ga = {
|
|
|
5495
5495
|
showTropicals: !1,
|
|
5496
5496
|
activeTropicals: void 0,
|
|
5497
5497
|
activeTropicalsMarker: void 0,
|
|
5498
|
-
empty:
|
|
5498
|
+
empty: Q.featureCollection([]),
|
|
5499
5499
|
circleSource: "circle-source",
|
|
5500
|
-
circleSourceData:
|
|
5500
|
+
circleSourceData: Q.featureCollection([]),
|
|
5501
5501
|
circleLayer: "tropical-circle-layer",
|
|
5502
5502
|
labelMarkers: []
|
|
5503
5503
|
};
|
|
@@ -5506,7 +5506,7 @@ const Ga = {
|
|
|
5506
5506
|
computeTime() {
|
|
5507
5507
|
return function(a) {
|
|
5508
5508
|
if (a) {
|
|
5509
|
-
const e =
|
|
5509
|
+
const e = re(a).utcOffset(this.timeZone), t = this.timeZone < 0 ? this.timeZone : "+" + this.timeZone;
|
|
5510
5510
|
return `${e.format("MMM-DD/HHmm")} [ UTC${t} ] ( ${e == null ? void 0 : e.fromNow()} )`;
|
|
5511
5511
|
}
|
|
5512
5512
|
return "-";
|
|
@@ -5557,7 +5557,7 @@ const Ga = {
|
|
|
5557
5557
|
var e, t;
|
|
5558
5558
|
(((t = (e = this.tropicals) == null ? void 0 : e.data) == null ? void 0 : t.features) || []).forEach((r) => {
|
|
5559
5559
|
var i, s;
|
|
5560
|
-
((i = r.geometry) == null ? void 0 : i.type) === "Point" && ((s = r.properties) != null && s.important) && (r.properties.format =
|
|
5560
|
+
((i = r.geometry) == null ? void 0 : i.type) === "Point" && ((s = r.properties) != null && s.important) && (r.properties.format = re(r.properties.date).utcOffset(this.timeZone).format(`MMM-DD/HHmm [(utc${this.computeTimezone})]`));
|
|
5561
5561
|
}), this.handleInit();
|
|
5562
5562
|
},
|
|
5563
5563
|
handleInit() {
|
|
@@ -5744,14 +5744,14 @@ const Ga = {
|
|
|
5744
5744
|
const x = (h = this.tropicals.data.features) == null ? void 0 : h.filter((b) => b.geometry.type === "Point" && b.properties.type === "forecast");
|
|
5745
5745
|
let f = 0, v = 0, m = (L = (p = this.findClosestToNumber(x, "hour", 12)) == null ? void 0 : p.properties) == null ? void 0 : L.hour;
|
|
5746
5746
|
x.forEach((b, A) => {
|
|
5747
|
-
var D,
|
|
5747
|
+
var D, F, H, N, W, G, le, $, oe, fe, me, be, ue, ge, U, Z, he, ce, Ae, Le, xe, _, Ee, Ce, ke, Be, Pe;
|
|
5748
5748
|
let w;
|
|
5749
5749
|
const z = this.findClosestToNumber(x, "hour", m + f * 24);
|
|
5750
|
-
if (z && ((D = z == null ? void 0 : z.properties) == null ? void 0 : D.hour) === ((
|
|
5750
|
+
if (z && ((D = z == null ? void 0 : z.properties) == null ? void 0 : D.hour) === ((F = b.properties) == null ? void 0 : F.hour) && (w = z), w) {
|
|
5751
5751
|
let _e = 0, J = "tropical-marker-box", V = "tropical-marker-line";
|
|
5752
|
-
J = ((
|
|
5753
|
-
const
|
|
5754
|
-
|
|
5752
|
+
J = ((W = (N = (H = w.properties) == null ? void 0 : H.wind) == null ? void 0 : N.en) == null ? void 0 : W.toUpperCase()) === "SUPER TY" ? J + " supper" : J + " normal", V = (($ = (le = (G = w.properties) == null ? void 0 : G.wind) == null ? void 0 : le.en) == null ? void 0 : $.toUpperCase()) === "SUPER TY" ? V + " supper" : V + " normal", ((fe = (oe = w.properties) == null ? void 0 : oe.movement) == null ? void 0 : fe.deg) >= 0 && ((be = (me = w.properties) == null ? void 0 : me.movement) == null ? void 0 : be.deg) <= 60 || ((ge = (ue = w.properties) == null ? void 0 : ue.movement) == null ? void 0 : ge.deg) >= 120 && ((Z = (U = w.properties) == null ? void 0 : U.movement) == null ? void 0 : Z.deg) <= 240 || ((ce = (he = w.properties) == null ? void 0 : he.movement) == null ? void 0 : ce.deg) >= 300 && ((Le = (Ae = w.properties) == null ? void 0 : Ae.movement) == null ? void 0 : Le.deg) <= 360 ? (_e = f % 2 === 0 ? [84, 0] : [-84, 0], J = f % 2 === 0 ? J + " right" : J + " left", V = f % 2 === 0 ? V + " vertical right" : V + " vertical left") : (_e = v % 2 === 0 ? [60, -40] : [60, 40], J = v % 2 === 0 ? J + " top" : J + " bottom", V = v % 2 === 0 ? V + " align top" : V + " align bottom", v = v + 1);
|
|
5753
|
+
const S = document.createElement("div");
|
|
5754
|
+
S.className = J, S.innerHTML = `
|
|
5755
5755
|
<div style="">
|
|
5756
5756
|
<span>${((xe = b.properties) == null ? void 0 : xe.format) || "-"}</span>
|
|
5757
5757
|
<span> [${((Ce = (Ee = (_ = b.properties) == null ? void 0 : _.wind) == null ? void 0 : Ee.en) == null ? void 0 : Ce.toUpperCase()) || "-"}]</span>
|
|
@@ -5761,7 +5761,7 @@ const Ga = {
|
|
|
5761
5761
|
<span>${((Pe = b.properties) == null ? void 0 : Pe.pressure) || "-"} hPa</span>
|
|
5762
5762
|
</div>
|
|
5763
5763
|
<div class="${V}"></div>
|
|
5764
|
-
`, this.labelMarkers.push(new Re.Marker(
|
|
5764
|
+
`, this.labelMarkers.push(new Re.Marker(S).setLngLat(b.geometry.coordinates).setOffset(_e).addTo(this.map));
|
|
5765
5765
|
}
|
|
5766
5766
|
f = f + 1;
|
|
5767
5767
|
});
|
|
@@ -5868,11 +5868,11 @@ const Ga = {
|
|
|
5868
5868
|
this.map && (this.map.getLayer(this.historyLayer) && this.map.removeLayer(this.historyLayer), this.map.getLayer(this.forecastLayer) && this.map.removeLayer(this.forecastLayer), this.map.getLayer(this.forecastModelLayer) && this.map.removeLayer(this.forecastModelLayer), this.map.getLayer(this.forecastNameLayer) && this.map.removeLayer(this.forecastNameLayer), this.map.getLayer(this.pointCircleLayer) && this.map.removeLayer(this.pointCircleLayer), this.map.getLayer(this.pointCircleLayer + "-border") && this.map.removeLayer(this.pointCircleLayer + "-border"), this.map.getLayer(this.pointLabelLayer) && this.map.removeLayer(this.pointLabelLayer), this.map.getLayer(this.historyPointCircleLayer) && this.map.removeLayer(this.historyPointCircleLayer), this.map.getLayer(this.historyPointCircleLayer + "-border") && this.map.removeLayer(this.historyPointCircleLayer + "-border"), this.map.getLayer(this.historyPointCircleLayer + "-inner") && this.map.removeLayer(this.historyPointCircleLayer + "-inner"), this.map.getLayer(this.historyPointLabelLayer) && this.map.removeLayer(this.historyPointLabelLayer), this.map.getLayer(this.interpolateLineLayer) && this.map.removeLayer(this.interpolateLineLayer), (a = this.interpolateMarkers) == null || a.forEach((e) => e == null ? void 0 : e.remove()), this.map.getSource(this.source) && this.map.removeSource(this.source), this.map.getSource(this.clusterSource) && this.map.removeSource(this.clusterSource), this.map.getSource(this.interpolateSource) && this.map.removeSource(this.interpolateSource), this.map.getLayer(this.circleLayer) && this.map.removeLayer(this.circleLayer), this.map.getSource(this.circleSource) && this.map.removeSource(this.circleSource), this.labelMarkers.forEach((e) => e == null ? void 0 : e.remove()), this.labelMarkers = []);
|
|
5869
5869
|
},
|
|
5870
5870
|
handleDateChange() {
|
|
5871
|
-
var a, e, t, r, i, s, n, l, c, d, h, p, L, E, B, y, I, x, f, v, m, b, A, w, z, D,
|
|
5872
|
-
if ((a = this.interpolateMarkers) == null || a.forEach((
|
|
5873
|
-
const
|
|
5874
|
-
be.forEach((
|
|
5875
|
-
ue.features.push(
|
|
5871
|
+
var a, e, t, r, i, s, n, l, c, d, h, p, L, E, B, y, I, x, f, v, m, b, A, w, z, D, F, H, N, W, G, le;
|
|
5872
|
+
if ((a = this.interpolateMarkers) == null || a.forEach(($) => $ == null ? void 0 : $.remove()), this.circleSourceData.features = [], (e = this.interpolateData) != null && e.length && this.tropicals.active) {
|
|
5873
|
+
const $ = re(this.date).utc().set({ minute: 0, second: 0, millisecond: 0 }), oe = re.utc().add(1, "hour").set({ minute: 0, second: 0, millisecond: 0 }), fe = $.isBefore(oe) && oe.diff($, "h") < 2 ? oe.format() : $.format(), me = this.interpolateData.filter((U) => U.properties.date === fe && !U.properties.disabled), be = this.handleComputePolygons(me), ue = Q.featureCollection([...me]);
|
|
5874
|
+
be.forEach((U) => {
|
|
5875
|
+
ue.features.push(U);
|
|
5876
5876
|
}), (t = this.map) != null && t.getSource(this.interpolateSource) ? (r = this.map) == null || r.getSource(this.interpolateSource).setData(ue) : ((i = this.map) == null || i.addSource(this.interpolateSource, {
|
|
5877
5877
|
type: "geojson",
|
|
5878
5878
|
data: ue
|
|
@@ -5888,14 +5888,14 @@ const Ga = {
|
|
|
5888
5888
|
}
|
|
5889
5889
|
})), this.interpolateMarkers = [];
|
|
5890
5890
|
const ge = [];
|
|
5891
|
-
for (const
|
|
5891
|
+
for (const U of me)
|
|
5892
5892
|
if (ge.some((Z) => {
|
|
5893
|
-
var
|
|
5894
|
-
return Z.properties.name === ((
|
|
5895
|
-
}) || ge.push(
|
|
5893
|
+
var he;
|
|
5894
|
+
return Z.properties.name === ((he = U.properties) == null ? void 0 : he.name);
|
|
5895
|
+
}) || ge.push(U), !U.properties.disabled) {
|
|
5896
5896
|
let Z = "#f44336";
|
|
5897
|
-
((l = (n =
|
|
5898
|
-
const
|
|
5897
|
+
((l = (n = U.properties) == null ? void 0 : n.wind) == null ? void 0 : l.kts) < 32 || !((d = (c = U.properties) == null ? void 0 : c.wind) != null && d.kts) ? Z = "#03f869" : ((p = (h = U.properties) == null ? void 0 : h.wind) == null ? void 0 : p.kts) >= 32 && ((E = (L = U.properties) == null ? void 0 : L.wind) == null ? void 0 : E.kts) < 47 ? Z = "#f2f202" : ((y = (B = U.properties) == null ? void 0 : B.wind) == null ? void 0 : y.kts) >= 47 && ((x = (I = U.properties) == null ? void 0 : I.wind) == null ? void 0 : x.kts) < 63 ? Z = "#ff9100" : ((v = (f = U.properties) == null ? void 0 : f.wind) == null ? void 0 : v.kts) >= 63 && ((b = (m = U.properties) == null ? void 0 : m.wind) == null ? void 0 : b.kts) < 79 ? Z = "#f44336" : ((w = (A = U.properties) == null ? void 0 : A.wind) == null ? void 0 : w.kts) >= 79 && ((D = (z = U.properties) == null ? void 0 : z.wind) == null ? void 0 : D.kts) < 94 ? Z = "#f903d0" : ((H = (F = U.properties) == null ? void 0 : F.wind) == null ? void 0 : H.kts) >= 94 ? Z = "#8702f9" : Z = "#f44336";
|
|
5898
|
+
const he = `<svg t="1719918955501"
|
|
5899
5899
|
class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="18382"
|
|
5900
5900
|
xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
|
|
5901
5901
|
<path
|
|
@@ -5909,14 +5909,14 @@ const Ga = {
|
|
|
5909
5909
|
<path
|
|
5910
5910
|
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"
|
|
5911
5911
|
fill="#ffffff" p-id="18386"></path>
|
|
5912
|
-
</svg>`,
|
|
5913
|
-
|
|
5914
|
-
const Ae = new Re.Marker(
|
|
5915
|
-
this.interpolateMarkers.push(Ae), (
|
|
5912
|
+
</svg>`, ce = document.createElement("div");
|
|
5913
|
+
ce.className = "hurricane-hourly-marker", ce.innerHTML = `<div class="${U.geometry.coordinates[1] >= 0 ? "center north" : "center south"}">${he}</div>`;
|
|
5914
|
+
const Ae = new Re.Marker(ce).setLngLat(U.geometry.coordinates).addTo(this.map);
|
|
5915
|
+
this.interpolateMarkers.push(Ae), (W = (N = this.map) == null ? void 0 : N.getSource(this.circleSource)) == null || W.setData(this.circleSourceData);
|
|
5916
5916
|
}
|
|
5917
5917
|
this.$emit("tropicalCenterPoints", ge);
|
|
5918
5918
|
} else
|
|
5919
|
-
(
|
|
5919
|
+
(G = this.map) != null && G.getSource(this.interpolateSource) && ((le = this.map) == null || le.getSource(this.interpolateSource).setData(this.empty));
|
|
5920
5920
|
},
|
|
5921
5921
|
handleClick(a) {
|
|
5922
5922
|
var s, n, l, c, d, h, p, L, E;
|
|
@@ -5948,7 +5948,7 @@ const Ga = {
|
|
|
5948
5948
|
d.properties.category === e && (d.properties.disabled = a.disabled);
|
|
5949
5949
|
}), this.interpolateData.forEach((d) => {
|
|
5950
5950
|
d.properties.category === e && (d.properties.disabled = a.disabled);
|
|
5951
|
-
}), (n = (s = this.map) == null ? void 0 : s.getSource(this.source)) == null || n.setData(
|
|
5951
|
+
}), (n = (s = this.map) == null ? void 0 : s.getSource(this.source)) == null || n.setData(Q.featureCollection(t)), (c = (l = this.map) == null ? void 0 : l.getSource(this.clusterSource)) == null || c.setData(Q.featureCollection(t)), this.handleDateChange();
|
|
5952
5952
|
},
|
|
5953
5953
|
handleStrikeProbability(a) {
|
|
5954
5954
|
this.$emit("tropicalProbability", a);
|
|
@@ -6008,22 +6008,22 @@ const Ga = {
|
|
|
6008
6008
|
let c;
|
|
6009
6009
|
switch (n) {
|
|
6010
6010
|
case "ne":
|
|
6011
|
-
c =
|
|
6011
|
+
c = Q.lineArc(a, l, 0, 90, { steps: l > 0 ? 32 : 1, units: "nauticalmiles" });
|
|
6012
6012
|
break;
|
|
6013
6013
|
case "se":
|
|
6014
|
-
c =
|
|
6014
|
+
c = Q.lineArc(a, l, 90, 180, { steps: l > 0 ? 32 : 1, units: "nauticalmiles" });
|
|
6015
6015
|
break;
|
|
6016
6016
|
case "sw":
|
|
6017
|
-
c =
|
|
6017
|
+
c = Q.lineArc(a, l, 180, 270, { steps: l > 0 ? 32 : 1, units: "nauticalmiles" });
|
|
6018
6018
|
break;
|
|
6019
6019
|
case "nw":
|
|
6020
|
-
c =
|
|
6020
|
+
c = Q.lineArc(a, l, 270, 360, { steps: l > 0 ? 32 : 1, units: "nauticalmiles" });
|
|
6021
6021
|
break;
|
|
6022
6022
|
}
|
|
6023
6023
|
r.push(...(s = c == null ? void 0 : c.geometry) == null ? void 0 : s.coordinates);
|
|
6024
6024
|
}
|
|
6025
|
-
const i =
|
|
6026
|
-
return
|
|
6025
|
+
const i = Q.lineString(r);
|
|
6026
|
+
return Q.lineToPolygon(i, { properties: t });
|
|
6027
6027
|
}
|
|
6028
6028
|
}
|
|
6029
6029
|
}, Ua = {
|
|
@@ -6049,60 +6049,60 @@ const Ga = {
|
|
|
6049
6049
|
style: { "justify-content": "flex-start" }
|
|
6050
6050
|
}, oi = { class: "forecast-models" }, ni = ["onClick"], li = { class: "more" };
|
|
6051
6051
|
function hi(a, e, t, r, i, s) {
|
|
6052
|
-
var n, l, c, d, h, p, L, E, B, y, I, x, f, v, m, b, A, w, z, D;
|
|
6052
|
+
var n, l, c, d, h, p, L, E, B, y, I, x, f, v, m, b, A, w, z, D, F, H;
|
|
6053
6053
|
return Oe((u(), g("div", Ua, [
|
|
6054
6054
|
o("div", Ya, [
|
|
6055
6055
|
o("div", {
|
|
6056
6056
|
class: "iconfont close-btn",
|
|
6057
|
-
onClick: e[0] || (e[0] = (
|
|
6057
|
+
onClick: e[0] || (e[0] = (N) => i.showTropicals = !1)
|
|
6058
6058
|
}, ""),
|
|
6059
6059
|
o("div", Ka, [
|
|
6060
|
-
(
|
|
6061
|
-
|
|
6060
|
+
o("span", null, k((l = (n = i.activeTropicals) == null ? void 0 : n.name) == null ? void 0 : l.toUpperCase()), 1),
|
|
6061
|
+
(d = (c = i.activeTropicals) == null ? void 0 : c.history) != null && d.level ? (u(), g("span", Xa, " , " + k((L = (p = (h = i.activeTropicals) == null ? void 0 : h.history) == null ? void 0 : p.level) == null ? void 0 : L.type), 1)) : q("", !0)
|
|
6062
6062
|
]),
|
|
6063
|
-
o("div", Ja, " Last update: " + k(s.computeTime(((
|
|
6063
|
+
o("div", Ja, " Last update: " + k(s.computeTime(((B = (E = i.activeTropicals) == null ? void 0 : E.history) == null ? void 0 : B.updated) || ((f = (x = (I = (y = i.activeTropicals) == null ? void 0 : y.forecasts) == null ? void 0 : I.filter((N) => !N.disabled)) == null ? void 0 : x[0]) == null ? void 0 : f.date))), 1)
|
|
6064
6064
|
]),
|
|
6065
6065
|
o("div", qa, [
|
|
6066
6066
|
o("div", Va, [
|
|
6067
6067
|
o("div", Za, [
|
|
6068
6068
|
o("div", $a, [
|
|
6069
6069
|
e[3] || (e[3] = o("label", null, "Wind speed : ", -1)),
|
|
6070
|
-
o("span", null, k(((
|
|
6071
|
-
o("span", null, ", BF " + k(s.computeBF(((
|
|
6070
|
+
o("span", null, k(((m = (v = i.activeTropicals) == null ? void 0 : v.history) == null ? void 0 : m.kts) || "-") + " [kts]", 1),
|
|
6071
|
+
o("span", null, ", BF " + k(s.computeBF(((A = (b = i.activeTropicals) == null ? void 0 : b.history) == null ? void 0 : A.kts) || 0)), 1)
|
|
6072
6072
|
]),
|
|
6073
6073
|
o("div", ei, [
|
|
6074
6074
|
e[4] || (e[4] = o("label", null, "Pressure : ", -1)),
|
|
6075
|
-
o("span", null, k(((
|
|
6075
|
+
o("span", null, k(((z = (w = i.activeTropicals) == null ? void 0 : w.history) == null ? void 0 : z.pressure) || "-") + " [hPa]", 1)
|
|
6076
6076
|
])
|
|
6077
6077
|
]),
|
|
6078
6078
|
o("div", ti, [
|
|
6079
6079
|
o("div", ai, [
|
|
6080
6080
|
e[5] || (e[5] = o("label", null, "Move Speed: ", -1)),
|
|
6081
|
-
o("span", null, k((
|
|
6081
|
+
o("span", null, k((D = s.computeMovement(i.activeTropicals)) == null ? void 0 : D.kts) + " [kts]", 1)
|
|
6082
6082
|
]),
|
|
6083
6083
|
o("div", ii, [
|
|
6084
6084
|
e[6] || (e[6] = o("label", null, "Move Dir: ", -1)),
|
|
6085
|
-
o("span", null, k((
|
|
6085
|
+
o("span", null, k((F = s.computeMovement(i.activeTropicals)) == null ? void 0 : F.deg) + " [°]", 1)
|
|
6086
6086
|
])
|
|
6087
6087
|
]),
|
|
6088
6088
|
o("div", ri, [
|
|
6089
6089
|
o("div", si, [
|
|
6090
6090
|
e[7] || (e[7] = o("label", { style: { width: "max-content" } }, "Forecast Models : ", -1)),
|
|
6091
6091
|
o("div", oi, [
|
|
6092
|
-
(u(!0), g(
|
|
6093
|
-
var
|
|
6092
|
+
(u(!0), g(te, null, ie((H = i.activeTropicals) == null ? void 0 : H.forecasts, (N, W) => {
|
|
6093
|
+
var G, le, $, oe;
|
|
6094
6094
|
return u(), g("div", {
|
|
6095
|
-
key:
|
|
6096
|
-
class:
|
|
6095
|
+
key: W,
|
|
6096
|
+
class: ae([
|
|
6097
6097
|
"model",
|
|
6098
|
-
|
|
6099
|
-
|
|
6098
|
+
N.disabled ? "" : "active",
|
|
6099
|
+
W > 0 && W < ((le = (G = i.activeTropicals) == null ? void 0 : G.forecasts) == null ? void 0 : le.length) - 1 && ((oe = ($ = i.activeTropicals) == null ? void 0 : $.forecasts) == null ? void 0 : oe.length) > 2 ? "center-child" : ""
|
|
6100
6100
|
]),
|
|
6101
|
-
onClick: (
|
|
6101
|
+
onClick: (fe) => s.handleForecastToggle(N)
|
|
6102
6102
|
}, [
|
|
6103
6103
|
o("span", {
|
|
6104
|
-
class:
|
|
6105
|
-
}, k(
|
|
6104
|
+
class: ae(N.model)
|
|
6105
|
+
}, k(N.model), 3)
|
|
6106
6106
|
], 10, ni);
|
|
6107
6107
|
}), 128))
|
|
6108
6108
|
])
|
|
@@ -6115,11 +6115,11 @@ function hi(a, e, t, r, i, s) {
|
|
|
6115
6115
|
key: 0,
|
|
6116
6116
|
class: "button",
|
|
6117
6117
|
style: { "margin-right": "10px" },
|
|
6118
|
-
onClick: e[1] || (e[1] = (
|
|
6118
|
+
onClick: e[1] || (e[1] = (N) => s.handleNotification(i.activeTropicals))
|
|
6119
6119
|
}, "Notify")) : q("", !0),
|
|
6120
6120
|
o("div", {
|
|
6121
6121
|
class: "button",
|
|
6122
|
-
onClick: e[2] || (e[2] = (
|
|
6122
|
+
onClick: e[2] || (e[2] = (N) => s.handleStrikeProbability(i.activeTropicals))
|
|
6123
6123
|
}, "Strike Probability >>")
|
|
6124
6124
|
])
|
|
6125
6125
|
])
|
|
@@ -6216,7 +6216,7 @@ const ci = {
|
|
|
6216
6216
|
[1, "rgba(197,5,58,0.8)"]
|
|
6217
6217
|
];
|
|
6218
6218
|
this.rampColor = this.webgl.setup(this.context, a);
|
|
6219
|
-
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context,
|
|
6219
|
+
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, ne.vertexSchema, ne.fragmentSchema);
|
|
6220
6220
|
this.program = e, this.aPositionBuffer = t;
|
|
6221
6221
|
}
|
|
6222
6222
|
},
|
|
@@ -6235,7 +6235,7 @@ function pi(a, e, t, r, i, s) {
|
|
|
6235
6235
|
return (n = t.factor) != null && n.active ? (u(), g("div", di, [
|
|
6236
6236
|
o("div", {
|
|
6237
6237
|
class: "legend-bars flex-center",
|
|
6238
|
-
style:
|
|
6238
|
+
style: pe([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
|
|
6239
6239
|
}, e[0] || (e[0] = [
|
|
6240
6240
|
o("span", null, "mm", -1),
|
|
6241
6241
|
o("span", null, "1.5", -1),
|
|
@@ -6330,7 +6330,7 @@ const ui = {
|
|
|
6330
6330
|
[1, "rgba(144,144,144,0)"]
|
|
6331
6331
|
];
|
|
6332
6332
|
this.rampColor = this.webgl.setup(this.context, a);
|
|
6333
|
-
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context,
|
|
6333
|
+
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, ne.vertexSchema, ne.fragmentSchema);
|
|
6334
6334
|
this.program = e, this.aPositionBuffer = t;
|
|
6335
6335
|
}
|
|
6336
6336
|
},
|
|
@@ -6349,7 +6349,7 @@ function yi(a, e, t, r, i, s) {
|
|
|
6349
6349
|
return (n = t.factor) != null && n.active ? (u(), g("div", gi, [
|
|
6350
6350
|
o("div", {
|
|
6351
6351
|
class: "legend-bars flex-center",
|
|
6352
|
-
style:
|
|
6352
|
+
style: pe([{ position: "absolute" }, { right: a.right + "px", bottom: t.bottom }])
|
|
6353
6353
|
}, e[0] || (e[0] = [
|
|
6354
6354
|
o("span", null, "nm", -1),
|
|
6355
6355
|
o("span", null, "0", -1),
|
|
@@ -6450,7 +6450,7 @@ const Ai = {
|
|
|
6450
6450
|
//
|
|
6451
6451
|
];
|
|
6452
6452
|
this.rampColor = this.webgl.setup(this.context, a);
|
|
6453
|
-
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context,
|
|
6453
|
+
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, ne.vertexSchema, ne.fragmentSchema);
|
|
6454
6454
|
this.program = e, this.aPositionBuffer = t;
|
|
6455
6455
|
}
|
|
6456
6456
|
},
|
|
@@ -6469,7 +6469,7 @@ function vi(a, e, t, r, i, s) {
|
|
|
6469
6469
|
return (n = t.factor) != null && n.active ? (u(), g("div", wi, [
|
|
6470
6470
|
o("div", {
|
|
6471
6471
|
class: "legend-bars flex-center",
|
|
6472
|
-
style:
|
|
6472
|
+
style: pe([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
|
|
6473
6473
|
}, e[0] || (e[0] = [
|
|
6474
6474
|
o("span", null, "°C", -1),
|
|
6475
6475
|
o("span", null, "0", -1),
|
|
@@ -6573,7 +6573,7 @@ const Li = {
|
|
|
6573
6573
|
[1, "rgb(138, 43, 10)"]
|
|
6574
6574
|
];
|
|
6575
6575
|
this.rampColor = this.webgl.setup(this.context, a);
|
|
6576
|
-
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context,
|
|
6576
|
+
const { program: e, aPositionBuffer: t } = this.webgl.bind(this.context, ne.vertexSchema, ne.fragmentSchema);
|
|
6577
6577
|
this.program = e, this.aPositionBuffer = t;
|
|
6578
6578
|
}
|
|
6579
6579
|
},
|
|
@@ -6592,7 +6592,7 @@ function xi(a, e, t, r, i, s) {
|
|
|
6592
6592
|
return (n = t.factor) != null && n.active ? (u(), g("div", Ci, [
|
|
6593
6593
|
o("div", {
|
|
6594
6594
|
class: "legend-bars flex-center",
|
|
6595
|
-
style:
|
|
6595
|
+
style: pe([{ position: "absolute" }, { right: i.right + "px", bottom: t.bottom }])
|
|
6596
6596
|
}, e[0] || (e[0] = [
|
|
6597
6597
|
o("span", null, "°C", -1),
|
|
6598
6598
|
o("span", null, "-20", -1),
|
|
@@ -6715,8 +6715,8 @@ const ki = {
|
|
|
6715
6715
|
var a;
|
|
6716
6716
|
if (this.showMeteo && this.ts) {
|
|
6717
6717
|
this.handleRender();
|
|
6718
|
-
const e =
|
|
6719
|
-
((a =
|
|
6718
|
+
const e = re();
|
|
6719
|
+
((a = re(this.ts)) == null ? void 0 : a.diff(e, "d", !0)) >= 0 ? await this.fetchMeteoData(this.point, this.ts, 7) : await this.fetchHistoryData(this.point, this.ts), this.initTableData(this.meteoData);
|
|
6720
6720
|
}
|
|
6721
6721
|
}
|
|
6722
6722
|
},
|
|
@@ -6725,8 +6725,8 @@ const ki = {
|
|
|
6725
6725
|
var a;
|
|
6726
6726
|
if (this.showMeteo = !0, this.tideData = {}, this.meteoData = {}, this.showMeteo && this.ts) {
|
|
6727
6727
|
this.handleRender();
|
|
6728
|
-
const e =
|
|
6729
|
-
if (((a =
|
|
6728
|
+
const e = re();
|
|
6729
|
+
if (((a = re(this.ts)) == null ? void 0 : a.diff(e, "d", !0)) >= 0 ? await this.fetchMeteoData(this.point, this.ts, 7) : await this.fetchHistoryData(this.point, this.ts), this.initTableData(this.meteoData), this.activeIndex === 4) {
|
|
6730
6730
|
const r = et.pickDailyExtremes(this.tideData, this.ts);
|
|
6731
6731
|
(r == null ? void 0 : r.length) > 0 ? this.tideTableData = r : await this.fetchTidesData(this.point, this.ts, 7);
|
|
6732
6732
|
}
|
|
@@ -6737,7 +6737,7 @@ const ki = {
|
|
|
6737
6737
|
async handler() {
|
|
6738
6738
|
var a;
|
|
6739
6739
|
if (this.showMeteo && this.ts) {
|
|
6740
|
-
const e =
|
|
6740
|
+
const e = re(), t = (a = re(this.ts)) == null ? void 0 : a.diff(e, "d", !0), i = [0, 1, 2, 3, 4, 5, 6, 7].every((s) => {
|
|
6741
6741
|
var l;
|
|
6742
6742
|
const n = Xe(this.ts).tz(this.positionGmt).add(3 * s, "h").format();
|
|
6743
6743
|
return (l = Ke.pickHourly(this.meteoData, n)) == null ? void 0 : l[0];
|
|
@@ -6758,7 +6758,7 @@ const ki = {
|
|
|
6758
6758
|
},
|
|
6759
6759
|
computeHourZ() {
|
|
6760
6760
|
return function(a) {
|
|
6761
|
-
return a ? `${
|
|
6761
|
+
return a ? `${re(a).utc().format("HH")}Z` : "-";
|
|
6762
6762
|
};
|
|
6763
6763
|
},
|
|
6764
6764
|
computeHourHmmLT() {
|
|
@@ -6768,24 +6768,24 @@ const ki = {
|
|
|
6768
6768
|
},
|
|
6769
6769
|
computeLat() {
|
|
6770
6770
|
return function(a, e = 4) {
|
|
6771
|
-
return
|
|
6771
|
+
return de.lat2pretty(a, e).pretty;
|
|
6772
6772
|
};
|
|
6773
6773
|
},
|
|
6774
6774
|
computeLng() {
|
|
6775
6775
|
return function(a, e = 4) {
|
|
6776
|
-
return
|
|
6776
|
+
return de.lng2pretty(a, e).pretty;
|
|
6777
6777
|
};
|
|
6778
6778
|
},
|
|
6779
6779
|
roundPrecision() {
|
|
6780
6780
|
return function(a, e = 4) {
|
|
6781
|
-
return isNaN(a) || a === null || a === void 0 ? "-" :
|
|
6781
|
+
return isNaN(a) || a === null || a === void 0 ? "-" : de.roundPrecision(a, e);
|
|
6782
6782
|
};
|
|
6783
6783
|
}
|
|
6784
6784
|
},
|
|
6785
6785
|
methods: {
|
|
6786
6786
|
async fetchMeteoData(a, e, t) {
|
|
6787
6787
|
this.loading = !0, this.meteoData = [];
|
|
6788
|
-
let r = e ?
|
|
6788
|
+
let r = e ? re(e).utc().format() : re().utc().format();
|
|
6789
6789
|
const { weatherModels: i, marineModels: s } = Ke.autoPickMeteoModel(this.forecastModel);
|
|
6790
6790
|
let n = {
|
|
6791
6791
|
lat: a.lat,
|
|
@@ -6803,7 +6803,7 @@ const ki = {
|
|
|
6803
6803
|
},
|
|
6804
6804
|
async fetchHistoryData(a, e) {
|
|
6805
6805
|
this.loading = !0, this.meteoData = [];
|
|
6806
|
-
const t = e ?
|
|
6806
|
+
const t = e ? re(e).utc().format() : re().utc().format(), { weatherModels: r, marineModels: i } = Ke.autoPickMeteoModel(this.forecastModel), s = {
|
|
6807
6807
|
lat: a.lat,
|
|
6808
6808
|
lng: a.lng,
|
|
6809
6809
|
datetime: t,
|
|
@@ -6820,8 +6820,8 @@ const ki = {
|
|
|
6820
6820
|
},
|
|
6821
6821
|
initTableData(a) {
|
|
6822
6822
|
var e, t, r, i, s, n, l, c, d;
|
|
6823
|
-
this.clearTable(), this.positionGmt = (t = (e = a == null ? void 0 : a.weather) == null ? void 0 : e[0]) == null ? void 0 : t.timezone, this.positionOffset = (i = (r = a == null ? void 0 : a.weather) == null ? void 0 : r[0]) == null ? void 0 : i.offset, this.localDate = (n = (s = Xe(this.ts)) == null ? void 0 : s.tz(this.positionGmt)) == null ? void 0 : n.format("MMM-DD/HHmm[LT]"), this.currentHourData = (l = Ke.pickHourly(a,
|
|
6824
|
-
var p, L, E, B, y, I, x, f, v, m, b, A, w, z, D,
|
|
6823
|
+
this.clearTable(), this.positionGmt = (t = (e = a == null ? void 0 : a.weather) == null ? void 0 : e[0]) == null ? void 0 : t.timezone, this.positionOffset = (i = (r = a == null ? void 0 : a.weather) == null ? void 0 : r[0]) == null ? void 0 : i.offset, this.localDate = (n = (s = Xe(this.ts)) == null ? void 0 : s.tz(this.positionGmt)) == null ? void 0 : n.format("MMM-DD/HHmm[LT]"), this.currentHourData = (l = Ke.pickHourly(a, re(this.ts))) == null ? void 0 : l[0], ((d = (c = this.currentHourData) == null ? void 0 : c.weather) == null ? void 0 : d.isDay) === 0 ? this.isDay = !1 : this.isDay = !0, this.$nextTick(() => {
|
|
6824
|
+
var p, L, E, B, y, I, x, f, v, m, b, A, w, z, D, F, H, N, W, G, le, $, oe, fe, me, be, ue, ge, U, Z, he, ce, Ae;
|
|
6825
6825
|
if (!document.getElementById("meteoMainBox"))
|
|
6826
6826
|
return !1;
|
|
6827
6827
|
if (!this.currentHourData)
|
|
@@ -6830,7 +6830,7 @@ const ki = {
|
|
|
6830
6830
|
const xe = Xe(this.ts).tz(this.positionGmt).add(3 * Le, "h").format();
|
|
6831
6831
|
this.tableData.hours.push(xe);
|
|
6832
6832
|
const _ = ((p = Ke.pickHourly(a, xe)) == null ? void 0 : p[0]) || {};
|
|
6833
|
-
this.tableData.temp.push(this.roundPrecision((L = _ == null ? void 0 : _.weather) == null ? void 0 : L.temp, 0) ?? "-"), this.tableData.precipProbability.push(this.roundPrecision((B = (E = _ == null ? void 0 : _.weather) == null ? void 0 : E.precip) == null ? void 0 : B.probability, 0) ?? "-"), this.tableData.precip1h.push(this.roundPrecision((I = (y = _ == null ? void 0 : _.weather) == null ? void 0 : y.precip) == null ? void 0 : I.sum, 0) ?? "-"), this.tableData.visibility.push(this.roundPrecision((x = _ == null ? void 0 : _.weather) == null ? void 0 : x.visibility, 0) ?? "-"), this.tableData.windSpeed.push(this.roundPrecision((v = (f = _ == null ? void 0 : _.weather) == null ? void 0 : f.wind) == null ? void 0 : v.kts, 1) ?? "-"), this.tableData.windDir.push((b = (m = _ == null ? void 0 : _.weather) == null ? void 0 : m.wind) == null ? void 0 : b.bearing), this.tableData.windGust.push(this.roundPrecision((w = (A = _ == null ? void 0 : _.weather) == null ? void 0 : A.wind) == null ? void 0 : w.gusts, 1) ?? "-"), this.tableData.sigwaveHeight.push(this.roundPrecision((D = (z = _ == null ? void 0 : _.wave) == null ? void 0 : z.sig) == null ? void 0 : D.height, 1) ?? "-"), this.tableData.sigwaveDir.push((
|
|
6833
|
+
this.tableData.temp.push(this.roundPrecision((L = _ == null ? void 0 : _.weather) == null ? void 0 : L.temp, 0) ?? "-"), this.tableData.precipProbability.push(this.roundPrecision((B = (E = _ == null ? void 0 : _.weather) == null ? void 0 : E.precip) == null ? void 0 : B.probability, 0) ?? "-"), this.tableData.precip1h.push(this.roundPrecision((I = (y = _ == null ? void 0 : _.weather) == null ? void 0 : y.precip) == null ? void 0 : I.sum, 0) ?? "-"), this.tableData.visibility.push(this.roundPrecision((x = _ == null ? void 0 : _.weather) == null ? void 0 : x.visibility, 0) ?? "-"), this.tableData.windSpeed.push(this.roundPrecision((v = (f = _ == null ? void 0 : _.weather) == null ? void 0 : f.wind) == null ? void 0 : v.kts, 1) ?? "-"), this.tableData.windDir.push((b = (m = _ == null ? void 0 : _.weather) == null ? void 0 : m.wind) == null ? void 0 : b.bearing), this.tableData.windGust.push(this.roundPrecision((w = (A = _ == null ? void 0 : _.weather) == null ? void 0 : A.wind) == null ? void 0 : w.gusts, 1) ?? "-"), this.tableData.sigwaveHeight.push(this.roundPrecision((D = (z = _ == null ? void 0 : _.wave) == null ? void 0 : z.sig) == null ? void 0 : D.height, 1) ?? "-"), this.tableData.sigwaveDir.push((H = (F = _ == null ? void 0 : _.wave) == null ? void 0 : F.sig) == null ? void 0 : H.bearing), this.tableData.windwaveHeight.push(this.roundPrecision((W = (N = _ == null ? void 0 : _.wave) == null ? void 0 : N.wd) == null ? void 0 : W.height, 1) ?? "-"), this.tableData.windwaveDir.push((le = (G = _ == null ? void 0 : _.wave) == null ? void 0 : G.wd) == null ? void 0 : le.bearing), this.tableData.windwavePeriod.push(this.roundPrecision((oe = ($ = _ == null ? void 0 : _.wave) == null ? void 0 : $.wd) == null ? void 0 : oe.period, 1) ?? "-"), this.tableData.swellHeight.push(this.roundPrecision((me = (fe = _ == null ? void 0 : _.wave) == null ? void 0 : fe.swell) == null ? void 0 : me.height, 1) ?? "-"), this.tableData.swellDir.push((ue = (be = _ == null ? void 0 : _.wave) == null ? void 0 : be.swell) == null ? void 0 : ue.bearing), this.tableData.swellPeriod.push(this.roundPrecision((U = (ge = _ == null ? void 0 : _.wave) == null ? void 0 : ge.swell) == null ? void 0 : U.period, 1) ?? "-"), this.tableData.currentSpeed.push(this.roundPrecision((Z = _ == null ? void 0 : _.current) == null ? void 0 : Z.speed, 1) ?? "-"), this.tableData.currentDir.push((he = _ == null ? void 0 : _.current) == null ? void 0 : he.bearing), this.tableData.seaLevel.push(this.roundPrecision(_ == null ? void 0 : _.height, 1) ?? "-"), this.tableData.seaTemp.push(this.roundPrecision(_ == null ? void 0 : _.sst, 0) ?? "-"), this.tableData.weatherUrls.push((ce = _ == null ? void 0 : _.weather) == null ? void 0 : ce.url), this.tableData.weatherNames.push(((Ae = _ == null ? void 0 : _.weather) == null ? void 0 : Ae.name) ?? "-");
|
|
6834
6834
|
}
|
|
6835
6835
|
});
|
|
6836
6836
|
},
|
|
@@ -6866,7 +6866,7 @@ const ki = {
|
|
|
6866
6866
|
},
|
|
6867
6867
|
async fetchTidesData(a, e, t) {
|
|
6868
6868
|
this.tideLoading = !0, this.tideData = {};
|
|
6869
|
-
let r = e ?
|
|
6869
|
+
let r = e ? re(e).utc().format() : re().utc().format(), i = {
|
|
6870
6870
|
lat: a.lat,
|
|
6871
6871
|
lng: a.lng,
|
|
6872
6872
|
date: r,
|
|
@@ -6956,8 +6956,8 @@ const ki = {
|
|
|
6956
6956
|
class: "main-box flex-center"
|
|
6957
6957
|
};
|
|
6958
6958
|
function Fr(a, e, t, r, i, s) {
|
|
6959
|
-
var d, h, p, L, E, B, y, I, x, f, v, m, b, A, w, z, D,
|
|
6960
|
-
const n =
|
|
6959
|
+
var d, h, p, L, E, B, y, I, x, f, v, m, b, A, w, z, D, F, H, N, W, G, le, $, oe, fe, me, be, ue, ge, U, Z, he, ce, Ae, Le, xe, _, Ee, Ce, ke, Be, Pe, _e, J, V, S, De, X, ee, Te, M, we, Se, Qe, He, P, R, Ge, Ue, Ye, ze, ye, at, it, rt, st, ot;
|
|
6960
|
+
const n = j("LocationFilled"), l = j("ElIcon"), c = j("ElTooltip");
|
|
6961
6961
|
return Oe((u(), g("div", Di, [
|
|
6962
6962
|
o("div", Pi, [
|
|
6963
6963
|
o("div", zi, [
|
|
@@ -6993,7 +6993,7 @@ function Fr(a, e, t, r, i, s) {
|
|
|
6993
6993
|
}, null, -1)
|
|
6994
6994
|
]))) : (u(), g("div", {
|
|
6995
6995
|
key: 0,
|
|
6996
|
-
class:
|
|
6996
|
+
class: ae(["main-box", i.isDay ? "day-bg" : "night-bg"]),
|
|
6997
6997
|
id: "meteoMainBox"
|
|
6998
6998
|
}, [
|
|
6999
6999
|
o("div", Qi, [
|
|
@@ -7005,9 +7005,9 @@ function Fr(a, e, t, r, i, s) {
|
|
|
7005
7005
|
"show-after": 1e3
|
|
7006
7006
|
}, {
|
|
7007
7007
|
default: Me(() => {
|
|
7008
|
-
var C,
|
|
7008
|
+
var C, T, nt, lt;
|
|
7009
7009
|
return [
|
|
7010
|
-
(
|
|
7010
|
+
(T = (C = i.currentHourData) == null ? void 0 : C.weather) != null && T.url ? (u(), g("img", {
|
|
7011
7011
|
key: 0,
|
|
7012
7012
|
class: "iconfont icon",
|
|
7013
7013
|
style: { "margin-right": "5px" },
|
|
@@ -7019,7 +7019,7 @@ function Fr(a, e, t, r, i, s) {
|
|
|
7019
7019
|
}, 8, ["content"]),
|
|
7020
7020
|
o("div", Fi, [
|
|
7021
7021
|
o("div", null, [
|
|
7022
|
-
|
|
7022
|
+
ve(k(s.roundPrecision((B = (E = i.currentHourData) == null ? void 0 : E.weather) == null ? void 0 : B.temp, 0)), 1),
|
|
7023
7023
|
e[9] || (e[9] = o("span", { style: { "font-size": "14px" } }, "°C", -1))
|
|
7024
7024
|
])
|
|
7025
7025
|
]),
|
|
@@ -7046,19 +7046,19 @@ function Fr(a, e, t, r, i, s) {
|
|
|
7046
7046
|
Oe(o("div", Xi, [
|
|
7047
7047
|
o("div", Ji, [
|
|
7048
7048
|
o("div", {
|
|
7049
|
-
class:
|
|
7049
|
+
class: ae(["menu-item", i.activeIndex === 1 ? "active" : ""]),
|
|
7050
7050
|
onClick: e[3] || (e[3] = Ze((C) => s.handleSelectTab(1), ["prevent"]))
|
|
7051
7051
|
}, "Basis", 2),
|
|
7052
7052
|
o("div", {
|
|
7053
|
-
class:
|
|
7053
|
+
class: ae(["menu-item", i.activeIndex === 2 ? "active" : ""]),
|
|
7054
7054
|
onClick: e[4] || (e[4] = Ze((C) => s.handleSelectTab(2), ["prevent"]))
|
|
7055
7055
|
}, "Wave & Current", 2),
|
|
7056
7056
|
o("div", {
|
|
7057
|
-
class:
|
|
7057
|
+
class: ae(["menu-item", i.activeIndex === 3 ? "active" : ""]),
|
|
7058
7058
|
onClick: e[5] || (e[5] = Ze((C) => s.handleSelectTab(3), ["prevent"]))
|
|
7059
7059
|
}, "Sea Surface", 2),
|
|
7060
7060
|
o("div", {
|
|
7061
|
-
class:
|
|
7061
|
+
class: ae(["menu-item", i.activeIndex === 4 ? "active" : ""]),
|
|
7062
7062
|
onClick: e[6] || (e[6] = Ze((C) => s.handleSelectTab(4), ["prevent"]))
|
|
7063
7063
|
}, "Tides", 2)
|
|
7064
7064
|
]),
|
|
@@ -7069,10 +7069,10 @@ function Fr(a, e, t, r, i, s) {
|
|
|
7069
7069
|
colspan: "1",
|
|
7070
7070
|
class: "tr-title"
|
|
7071
7071
|
}, [
|
|
7072
|
-
|
|
7072
|
+
ve("Hours"),
|
|
7073
7073
|
o("span", { class: "unit" }, "(LT)")
|
|
7074
7074
|
], -1)),
|
|
7075
|
-
(u(!0), g(
|
|
7075
|
+
(u(!0), g(te, null, ie(i.tableData.hours, (C) => (u(), g("th", {
|
|
7076
7076
|
rowspan: "1",
|
|
7077
7077
|
colspan: "1",
|
|
7078
7078
|
key: `HourL${C}`
|
|
@@ -7084,10 +7084,10 @@ function Fr(a, e, t, r, i, s) {
|
|
|
7084
7084
|
colspan: "1",
|
|
7085
7085
|
class: "tr-title"
|
|
7086
7086
|
}, [
|
|
7087
|
-
|
|
7087
|
+
ve("UTC"),
|
|
7088
7088
|
o("span", { class: "unit" })
|
|
7089
7089
|
], -1)),
|
|
7090
|
-
(u(!0), g(
|
|
7090
|
+
(u(!0), g(te, null, ie(i.tableData.hours, (C) => (u(), g("th", {
|
|
7091
7091
|
rowspan: "1",
|
|
7092
7092
|
colspan: "1",
|
|
7093
7093
|
key: `HourZ${C}`
|
|
@@ -7099,15 +7099,15 @@ function Fr(a, e, t, r, i, s) {
|
|
|
7099
7099
|
colspan: "1",
|
|
7100
7100
|
class: "tr-title"
|
|
7101
7101
|
}, null, -1)),
|
|
7102
|
-
(u(!0), g(
|
|
7102
|
+
(u(!0), g(te, null, ie(i.tableData.weatherUrls, (C, T) => (u(), g("th", {
|
|
7103
7103
|
rowspan: "1",
|
|
7104
7104
|
colspan: "1",
|
|
7105
|
-
key: `weatherUrls${
|
|
7105
|
+
key: `weatherUrls${T}${C}`
|
|
7106
7106
|
}, [
|
|
7107
7107
|
O(c, {
|
|
7108
7108
|
placement: "top",
|
|
7109
7109
|
effect: "light",
|
|
7110
|
-
content: i.tableData.weatherNames[
|
|
7110
|
+
content: i.tableData.weatherNames[T],
|
|
7111
7111
|
"show-after": 500
|
|
7112
7112
|
}, {
|
|
7113
7113
|
default: Me(() => [
|
|
@@ -7128,13 +7128,13 @@ function Fr(a, e, t, r, i, s) {
|
|
|
7128
7128
|
colspan: "1",
|
|
7129
7129
|
class: "tr-title"
|
|
7130
7130
|
}, [
|
|
7131
|
-
|
|
7131
|
+
ve("Temp"),
|
|
7132
7132
|
o("span", { class: "unit" }, "°C")
|
|
7133
7133
|
], -1)),
|
|
7134
|
-
(u(!0), g(
|
|
7134
|
+
(u(!0), g(te, null, ie(i.tableData.temp, (C, T) => (u(), g("td", {
|
|
7135
7135
|
rowspan: "1",
|
|
7136
7136
|
colspan: "1",
|
|
7137
|
-
key: `weatherUrls${
|
|
7137
|
+
key: `weatherUrls${T}${C}`
|
|
7138
7138
|
}, k(C), 1))), 128))
|
|
7139
7139
|
]),
|
|
7140
7140
|
o("tr", ar, [
|
|
@@ -7143,13 +7143,13 @@ function Fr(a, e, t, r, i, s) {
|
|
|
7143
7143
|
colspan: "1",
|
|
7144
7144
|
class: "tr-title"
|
|
7145
7145
|
}, [
|
|
7146
|
-
|
|
7146
|
+
ve("Precip"),
|
|
7147
7147
|
o("span", { class: "unit" }, "mm")
|
|
7148
7148
|
], -1)),
|
|
7149
|
-
(u(!0), g(
|
|
7149
|
+
(u(!0), g(te, null, ie(i.tableData.precip1h, (C, T) => (u(), g("td", {
|
|
7150
7150
|
rowspan: "1",
|
|
7151
7151
|
colspan: "1",
|
|
7152
|
-
key: `precip1h${
|
|
7152
|
+
key: `precip1h${T}${C}`
|
|
7153
7153
|
}, k(C), 1))), 128))
|
|
7154
7154
|
]),
|
|
7155
7155
|
o("tr", ir, [
|
|
@@ -7158,13 +7158,13 @@ function Fr(a, e, t, r, i, s) {
|
|
|
7158
7158
|
colspan: "1",
|
|
7159
7159
|
class: "tr-title"
|
|
7160
7160
|
}, [
|
|
7161
|
-
|
|
7161
|
+
ve("Visibility"),
|
|
7162
7162
|
o("span", { class: "unit" }, "nm")
|
|
7163
7163
|
], -1)),
|
|
7164
|
-
(u(!0), g(
|
|
7164
|
+
(u(!0), g(te, null, ie(i.tableData.visibility, (C, T) => (u(), g("td", {
|
|
7165
7165
|
rowspan: "1",
|
|
7166
7166
|
colspan: "1",
|
|
7167
|
-
key: `visibility${
|
|
7167
|
+
key: `visibility${T}${C}`
|
|
7168
7168
|
}, k(C), 1))), 128))
|
|
7169
7169
|
]),
|
|
7170
7170
|
o("tr", rr, [
|
|
@@ -7173,13 +7173,13 @@ function Fr(a, e, t, r, i, s) {
|
|
|
7173
7173
|
colspan: "1",
|
|
7174
7174
|
class: "tr-title"
|
|
7175
7175
|
}, [
|
|
7176
|
-
|
|
7176
|
+
ve("Wind gust"),
|
|
7177
7177
|
o("span", { class: "unit" }, "kts")
|
|
7178
7178
|
], -1)),
|
|
7179
|
-
(u(!0), g(
|
|
7179
|
+
(u(!0), g(te, null, ie(i.tableData.windGust, (C, T) => (u(), g("td", {
|
|
7180
7180
|
rowspan: "1",
|
|
7181
7181
|
colspan: "1",
|
|
7182
|
-
key: `windGust${
|
|
7182
|
+
key: `windGust${T}${C}`
|
|
7183
7183
|
}, [
|
|
7184
7184
|
o("span", null, k(C), 1)
|
|
7185
7185
|
]))), 128))
|
|
@@ -7194,13 +7194,13 @@ function Fr(a, e, t, r, i, s) {
|
|
|
7194
7194
|
colspan: "1",
|
|
7195
7195
|
class: "tr-title"
|
|
7196
7196
|
}, [
|
|
7197
|
-
|
|
7197
|
+
ve("Hours"),
|
|
7198
7198
|
o("span", { class: "unit" }, "(LT)")
|
|
7199
7199
|
], -1)),
|
|
7200
|
-
(u(!0), g(
|
|
7200
|
+
(u(!0), g(te, null, ie(i.tableData.hours, (C, T) => (u(), g("th", {
|
|
7201
7201
|
rowspan: "1",
|
|
7202
7202
|
colspan: "1",
|
|
7203
|
-
key: `currenthoursL${
|
|
7203
|
+
key: `currenthoursL${T}${C}`
|
|
7204
7204
|
}, k(s.computeHourL(C)), 1))), 128))
|
|
7205
7205
|
]),
|
|
7206
7206
|
o("tr", nr, [
|
|
@@ -7209,13 +7209,13 @@ function Fr(a, e, t, r, i, s) {
|
|
|
7209
7209
|
colspan: "1",
|
|
7210
7210
|
class: "tr-title"
|
|
7211
7211
|
}, [
|
|
7212
|
-
|
|
7212
|
+
ve("UTC"),
|
|
7213
7213
|
o("span", { class: "unit" })
|
|
7214
7214
|
], -1)),
|
|
7215
|
-
(u(!0), g(
|
|
7215
|
+
(u(!0), g(te, null, ie(i.tableData.hours, (C, T) => (u(), g("th", {
|
|
7216
7216
|
rowspan: "1",
|
|
7217
7217
|
colspan: "1",
|
|
7218
|
-
key: `currenthoursZ${
|
|
7218
|
+
key: `currenthoursZ${T}${C}`
|
|
7219
7219
|
}, k(s.computeHourZ(C)), 1))), 128))
|
|
7220
7220
|
]),
|
|
7221
7221
|
o("tr", lr, [
|
|
@@ -7224,18 +7224,18 @@ function Fr(a, e, t, r, i, s) {
|
|
|
7224
7224
|
colspan: "1",
|
|
7225
7225
|
class: "tr-title"
|
|
7226
7226
|
}, [
|
|
7227
|
-
|
|
7227
|
+
ve("Wind"),
|
|
7228
7228
|
o("span", { class: "unit" }, "kts")
|
|
7229
7229
|
], -1)),
|
|
7230
|
-
(u(!0), g(
|
|
7230
|
+
(u(!0), g(te, null, ie(i.tableData.windSpeed, (C, T) => (u(), g("td", {
|
|
7231
7231
|
rowspan: "1",
|
|
7232
7232
|
colspan: "1",
|
|
7233
|
-
key: `windSpeed${
|
|
7233
|
+
key: `windSpeed${T}${C}`
|
|
7234
7234
|
}, [
|
|
7235
|
-
isNaN(i.tableData.windDir[
|
|
7235
|
+
isNaN(i.tableData.windDir[T]) ? q("", !0) : (u(), g("span", {
|
|
7236
7236
|
key: 0,
|
|
7237
7237
|
class: "iconfont icon wind",
|
|
7238
|
-
style:
|
|
7238
|
+
style: pe({ display: "inline-block", transform: `rotate(${i.tableData.windDir[T]}deg)` })
|
|
7239
7239
|
}, "", 4)),
|
|
7240
7240
|
o("span", null, k(C), 1)
|
|
7241
7241
|
]))), 128))
|
|
@@ -7246,18 +7246,18 @@ function Fr(a, e, t, r, i, s) {
|
|
|
7246
7246
|
colspan: "1",
|
|
7247
7247
|
class: "tr-title"
|
|
7248
7248
|
}, [
|
|
7249
|
-
|
|
7249
|
+
ve("Sig Wave"),
|
|
7250
7250
|
o("span", { class: "unit" }, "m")
|
|
7251
7251
|
], -1)),
|
|
7252
|
-
(u(!0), g(
|
|
7252
|
+
(u(!0), g(te, null, ie(i.tableData.sigwaveHeight, (C, T) => (u(), g("td", {
|
|
7253
7253
|
rowspan: "1",
|
|
7254
7254
|
colspan: "1",
|
|
7255
|
-
key: `sigwaveHeight${
|
|
7255
|
+
key: `sigwaveHeight${T}${C}`
|
|
7256
7256
|
}, [
|
|
7257
|
-
isNaN(i.tableData.sigwaveDir[
|
|
7257
|
+
isNaN(i.tableData.sigwaveDir[T]) ? q("", !0) : (u(), g("span", {
|
|
7258
7258
|
key: 0,
|
|
7259
7259
|
class: "iconfont icon sigwave",
|
|
7260
|
-
style:
|
|
7260
|
+
style: pe({ display: "inline-block", transform: `rotate(${i.tableData.sigwaveDir[T]}deg)` })
|
|
7261
7261
|
}, "", 4)),
|
|
7262
7262
|
o("span", null, k(C), 1)
|
|
7263
7263
|
]))), 128))
|
|
@@ -7268,18 +7268,18 @@ function Fr(a, e, t, r, i, s) {
|
|
|
7268
7268
|
colspan: "1",
|
|
7269
7269
|
class: "tr-title"
|
|
7270
7270
|
}, [
|
|
7271
|
-
|
|
7271
|
+
ve("Wind Wave"),
|
|
7272
7272
|
o("span", { class: "unit" }, "m")
|
|
7273
7273
|
], -1)),
|
|
7274
|
-
(u(!0), g(
|
|
7274
|
+
(u(!0), g(te, null, ie(i.tableData.windwaveHeight, (C, T) => (u(), g("td", {
|
|
7275
7275
|
rowspan: "1",
|
|
7276
7276
|
colspan: "1",
|
|
7277
|
-
key: `windwaveHeight${
|
|
7277
|
+
key: `windwaveHeight${T}${C}`
|
|
7278
7278
|
}, [
|
|
7279
|
-
isNaN(i.tableData.sigwaveDir[
|
|
7279
|
+
isNaN(i.tableData.sigwaveDir[T]) ? q("", !0) : (u(), g("span", {
|
|
7280
7280
|
key: 0,
|
|
7281
7281
|
class: "iconfont icon windwave",
|
|
7282
|
-
style:
|
|
7282
|
+
style: pe({ display: "inline-block", transform: `rotate(${i.tableData.windwaveDir[T]}deg)` })
|
|
7283
7283
|
}, "", 4)),
|
|
7284
7284
|
o("span", null, k(C), 1)
|
|
7285
7285
|
]))), 128))
|
|
@@ -7290,18 +7290,18 @@ function Fr(a, e, t, r, i, s) {
|
|
|
7290
7290
|
colspan: "1",
|
|
7291
7291
|
class: "tr-title"
|
|
7292
7292
|
}, [
|
|
7293
|
-
|
|
7293
|
+
ve("Swell"),
|
|
7294
7294
|
o("span", { class: "unit" }, "m")
|
|
7295
7295
|
], -1)),
|
|
7296
|
-
(u(!0), g(
|
|
7296
|
+
(u(!0), g(te, null, ie(i.tableData.swellHeight, (C, T) => (u(), g("td", {
|
|
7297
7297
|
rowspan: "1",
|
|
7298
7298
|
colspan: "1",
|
|
7299
|
-
key: `swellHeight${
|
|
7299
|
+
key: `swellHeight${T}${C}`
|
|
7300
7300
|
}, [
|
|
7301
|
-
isNaN(i.tableData.swellDir[
|
|
7301
|
+
isNaN(i.tableData.swellDir[T]) ? q("", !0) : (u(), g("span", {
|
|
7302
7302
|
key: 0,
|
|
7303
7303
|
class: "iconfont icon swell",
|
|
7304
|
-
style:
|
|
7304
|
+
style: pe({ display: "inline-block", transform: `rotate(${i.tableData.swellDir[T]}deg)` })
|
|
7305
7305
|
}, "", 4)),
|
|
7306
7306
|
o("span", null, k(C), 1)
|
|
7307
7307
|
]))), 128))
|
|
@@ -7312,19 +7312,19 @@ function Fr(a, e, t, r, i, s) {
|
|
|
7312
7312
|
colspan: "1",
|
|
7313
7313
|
class: "tr-title"
|
|
7314
7314
|
}, [
|
|
7315
|
-
|
|
7315
|
+
ve("Current"),
|
|
7316
7316
|
o("span", { class: "unit" }, "kts")
|
|
7317
7317
|
], -1)),
|
|
7318
|
-
(u(!0), g(
|
|
7318
|
+
(u(!0), g(te, null, ie(i.tableData.currentSpeed, (C, T) => (u(), g("td", {
|
|
7319
7319
|
rowspan: "1",
|
|
7320
7320
|
colspan: "1",
|
|
7321
|
-
key: `currentSpeed${
|
|
7321
|
+
key: `currentSpeed${T}${C}`
|
|
7322
7322
|
}, [
|
|
7323
|
-
isNaN(i.tableData.currentDir[
|
|
7323
|
+
isNaN(i.tableData.currentDir[T]) ? q("", !0) : (u(), g("span", {
|
|
7324
7324
|
key: 0,
|
|
7325
7325
|
class: "iconfont icon current",
|
|
7326
7326
|
id: "meteoGrayIcon",
|
|
7327
|
-
style:
|
|
7327
|
+
style: pe({ display: "inline-block", transform: `rotate(${i.tableData.currentDir[T]}deg)` })
|
|
7328
7328
|
}, "", 4)),
|
|
7329
7329
|
o("span", null, k(C), 1)
|
|
7330
7330
|
]))), 128))
|
|
@@ -7339,13 +7339,13 @@ function Fr(a, e, t, r, i, s) {
|
|
|
7339
7339
|
colspan: "1",
|
|
7340
7340
|
class: "tr-title"
|
|
7341
7341
|
}, [
|
|
7342
|
-
|
|
7342
|
+
ve("Hours"),
|
|
7343
7343
|
o("span", { class: "unit" }, "(LT)")
|
|
7344
7344
|
], -1)),
|
|
7345
|
-
(u(!0), g(
|
|
7345
|
+
(u(!0), g(te, null, ie(i.tableData.hours, (C, T) => (u(), g("th", {
|
|
7346
7346
|
rowspan: "1",
|
|
7347
7347
|
colspan: "1",
|
|
7348
|
-
key: `seahoursL${
|
|
7348
|
+
key: `seahoursL${T}${C}`
|
|
7349
7349
|
}, k(s.computeHourL(C)), 1))), 128))
|
|
7350
7350
|
]),
|
|
7351
7351
|
o("tr", gr, [
|
|
@@ -7354,13 +7354,13 @@ function Fr(a, e, t, r, i, s) {
|
|
|
7354
7354
|
colspan: "1",
|
|
7355
7355
|
class: "tr-title"
|
|
7356
7356
|
}, [
|
|
7357
|
-
|
|
7357
|
+
ve("UTC"),
|
|
7358
7358
|
o("span", { class: "unit" })
|
|
7359
7359
|
], -1)),
|
|
7360
|
-
(u(!0), g(
|
|
7360
|
+
(u(!0), g(te, null, ie(i.tableData.hours, (C, T) => (u(), g("th", {
|
|
7361
7361
|
rowspan: "1",
|
|
7362
7362
|
colspan: "1",
|
|
7363
|
-
key: `seahoursZ${
|
|
7363
|
+
key: `seahoursZ${T}${C}`
|
|
7364
7364
|
}, k(s.computeHourZ(C)), 1))), 128))
|
|
7365
7365
|
]),
|
|
7366
7366
|
o("tr", yr, [
|
|
@@ -7369,13 +7369,13 @@ function Fr(a, e, t, r, i, s) {
|
|
|
7369
7369
|
colspan: "1",
|
|
7370
7370
|
class: "tr-title"
|
|
7371
7371
|
}, [
|
|
7372
|
-
|
|
7372
|
+
ve("SeaLevel"),
|
|
7373
7373
|
o("span", { class: "unit" }, "m")
|
|
7374
7374
|
], -1)),
|
|
7375
|
-
(u(!0), g(
|
|
7375
|
+
(u(!0), g(te, null, ie(i.tableData.seaLevel, (C, T) => (u(), g("td", {
|
|
7376
7376
|
rowspan: "1",
|
|
7377
7377
|
colspan: "1",
|
|
7378
|
-
key: `SeaLevel${
|
|
7378
|
+
key: `SeaLevel${T}${C}`
|
|
7379
7379
|
}, k(C), 1))), 128))
|
|
7380
7380
|
]),
|
|
7381
7381
|
o("tr", fr, [
|
|
@@ -7384,13 +7384,13 @@ function Fr(a, e, t, r, i, s) {
|
|
|
7384
7384
|
colspan: "1",
|
|
7385
7385
|
class: "tr-title"
|
|
7386
7386
|
}, [
|
|
7387
|
-
|
|
7387
|
+
ve("SeaTemp"),
|
|
7388
7388
|
o("span", { class: "unit" }, "°C")
|
|
7389
7389
|
], -1)),
|
|
7390
|
-
(u(!0), g(
|
|
7390
|
+
(u(!0), g(te, null, ie(i.tableData.seaTemp, (C, T) => (u(), g("td", {
|
|
7391
7391
|
rowspan: "1",
|
|
7392
7392
|
colspan: "1",
|
|
7393
|
-
key: `SeaTemp${
|
|
7393
|
+
key: `SeaTemp${T}${C}`
|
|
7394
7394
|
}, k(C), 1))), 128))
|
|
7395
7395
|
])
|
|
7396
7396
|
], 512), [
|
|
@@ -7401,24 +7401,24 @@ function Fr(a, e, t, r, i, s) {
|
|
|
7401
7401
|
]))) : q("", !0),
|
|
7402
7402
|
Oe(o("table", wr, [
|
|
7403
7403
|
o("tr", vr, [
|
|
7404
|
-
(u(!0), g(
|
|
7404
|
+
(u(!0), g(te, null, ie(i.tideTableData, (C, T) => (u(), g("th", {
|
|
7405
7405
|
rowspan: "1",
|
|
7406
7406
|
colspan: "1",
|
|
7407
|
-
key: `Tide-tr-${
|
|
7407
|
+
key: `Tide-tr-${T}${C}`
|
|
7408
7408
|
}, k(C.type) + " Tide", 1))), 128))
|
|
7409
7409
|
]),
|
|
7410
7410
|
o("tr", br, [
|
|
7411
|
-
(u(!0), g(
|
|
7411
|
+
(u(!0), g(te, null, ie(i.tideTableData, (C, T) => (u(), g("td", {
|
|
7412
7412
|
rowspan: "1",
|
|
7413
7413
|
colspan: "1",
|
|
7414
|
-
key: `Tide-date-${
|
|
7414
|
+
key: `Tide-date-${T}${C}`
|
|
7415
7415
|
}, k(s.computeHourHmmLT(C == null ? void 0 : C.date)), 1))), 128))
|
|
7416
7416
|
]),
|
|
7417
7417
|
o("tr", Lr, [
|
|
7418
|
-
(u(!0), g(
|
|
7418
|
+
(u(!0), g(te, null, ie(i.tideTableData, (C, T) => (u(), g("td", {
|
|
7419
7419
|
rowspan: "1",
|
|
7420
7420
|
colspan: "1",
|
|
7421
|
-
key: `Tide-height-${
|
|
7421
|
+
key: `Tide-height-${T}${C}`
|
|
7422
7422
|
}, k(s.roundPrecision(C == null ? void 0 : C.height, 2)) + " m", 1))), 128))
|
|
7423
7423
|
]),
|
|
7424
7424
|
e[32] || (e[32] = o("tr", { class: "tr-tide flex-center info" }, [
|
|
@@ -7436,11 +7436,11 @@ function Fr(a, e, t, r, i, s) {
|
|
|
7436
7436
|
o("div", xr, [
|
|
7437
7437
|
o("div", _r, [
|
|
7438
7438
|
e[33] || (e[33] = o("div", null, "Wind", -1)),
|
|
7439
|
-
o("div", null, k((
|
|
7439
|
+
o("div", null, k((H = (F = (D = i.currentHourData) == null ? void 0 : D.weather) == null ? void 0 : F.wind) == null ? void 0 : H.direction) + "/" + k(s.roundPrecision((G = (W = (N = i.currentHourData) == null ? void 0 : N.weather) == null ? void 0 : W.wind) == null ? void 0 : G.kts, 1)) + "kts/BF" + k((oe = ($ = (le = i.currentHourData) == null ? void 0 : le.weather) == null ? void 0 : $.wind) == null ? void 0 : oe.scale) + "/" + k(s.roundPrecision((be = (me = (fe = i.currentHourData) == null ? void 0 : fe.weather) == null ? void 0 : me.wind) == null ? void 0 : be.gusts, 1)) + " kts", 1)
|
|
7440
7440
|
]),
|
|
7441
7441
|
o("div", Br, [
|
|
7442
7442
|
e[34] || (e[34] = o("div", null, "Sig wave", -1)),
|
|
7443
|
-
o("div", null, k((
|
|
7443
|
+
o("div", null, k((U = (ge = (ue = i.currentHourData) == null ? void 0 : ue.wave) == null ? void 0 : ge.sig) == null ? void 0 : U.direction) + "/" + k(s.roundPrecision((ce = (he = (Z = i.currentHourData) == null ? void 0 : Z.wave) == null ? void 0 : he.sig) == null ? void 0 : ce.height, 1)) + "m/" + k(s.roundPrecision((xe = (Le = (Ae = i.currentHourData) == null ? void 0 : Ae.wave) == null ? void 0 : Le.sig) == null ? void 0 : xe.period, 1)) + "s", 1)
|
|
7444
7444
|
])
|
|
7445
7445
|
]),
|
|
7446
7446
|
o("div", Ir, [
|
|
@@ -7450,13 +7450,13 @@ function Fr(a, e, t, r, i, s) {
|
|
|
7450
7450
|
]),
|
|
7451
7451
|
o("div", kr, [
|
|
7452
7452
|
e[36] || (e[36] = o("div", null, "Swell", -1)),
|
|
7453
|
-
o("div", null, k((X = (De = (
|
|
7453
|
+
o("div", null, k((X = (De = (S = i.currentHourData) == null ? void 0 : S.wave) == null ? void 0 : De.swell) == null ? void 0 : X.direction) + "/" + k(s.roundPrecision((M = (Te = (ee = i.currentHourData) == null ? void 0 : ee.wave) == null ? void 0 : Te.swell) == null ? void 0 : M.height, 1)) + "m/" + k(s.roundPrecision((Qe = (Se = (we = i.currentHourData) == null ? void 0 : we.wave) == null ? void 0 : Se.swell) == null ? void 0 : Qe.period, 1)) + "s", 1)
|
|
7454
7454
|
])
|
|
7455
7455
|
]),
|
|
7456
7456
|
o("div", Dr, [
|
|
7457
7457
|
o("div", Pr, [
|
|
7458
7458
|
e[37] || (e[37] = o("div", null, "Current", -1)),
|
|
7459
|
-
o("div", null, k((P = (He = i.currentHourData) == null ? void 0 : He.current) == null ? void 0 : P.direction) + "/" + k(s.roundPrecision((Ge = (
|
|
7459
|
+
o("div", null, k((P = (He = i.currentHourData) == null ? void 0 : He.current) == null ? void 0 : P.direction) + "/" + k(s.roundPrecision((Ge = (R = i.currentHourData) == null ? void 0 : R.current) == null ? void 0 : Ge.kts, 2)) + "kts", 1)
|
|
7460
7460
|
]),
|
|
7461
7461
|
o("div", zr, [
|
|
7462
7462
|
e[38] || (e[38] = o("div", null, "Sea level", -1)),
|
|
@@ -7487,7 +7487,7 @@ function Fr(a, e, t, r, i, s) {
|
|
|
7487
7487
|
[Fe, !i.showTables]
|
|
7488
7488
|
]),
|
|
7489
7489
|
o("div", {
|
|
7490
|
-
class:
|
|
7490
|
+
class: ae(["action", i.isDay ? "day" : "night"])
|
|
7491
7491
|
}, [
|
|
7492
7492
|
t.permission & i.helper.LEVEL.Supper ? (u(), g("div", {
|
|
7493
7493
|
key: 0,
|
|
@@ -8004,12 +8004,12 @@ const as = {
|
|
|
8004
8004
|
computed: {
|
|
8005
8005
|
computeLat() {
|
|
8006
8006
|
return function(a) {
|
|
8007
|
-
return
|
|
8007
|
+
return de.lat2pretty(a, 4).pretty;
|
|
8008
8008
|
};
|
|
8009
8009
|
},
|
|
8010
8010
|
computeLng() {
|
|
8011
8011
|
return function(a) {
|
|
8012
|
-
return
|
|
8012
|
+
return de.lng2pretty(a, 4).pretty;
|
|
8013
8013
|
};
|
|
8014
8014
|
}
|
|
8015
8015
|
},
|
|
@@ -8481,7 +8481,7 @@ const vs = /* @__PURE__ */ Y(As, [["render", ws]]), bs = {
|
|
|
8481
8481
|
methods: {
|
|
8482
8482
|
handleRender() {
|
|
8483
8483
|
this.map ? (this.handleClear(), this.area && (this.area.features.forEach((a) => {
|
|
8484
|
-
a.geometry.type === "Polygon" && a.geometry.coordinates.forEach((e) =>
|
|
8484
|
+
a.geometry.type === "Polygon" && a.geometry.coordinates.forEach((e) => de.convertToMonotonicLng2(e));
|
|
8485
8485
|
}), this.map.addSource(this.source, {
|
|
8486
8486
|
type: "geojson",
|
|
8487
8487
|
data: this.area
|
|
@@ -8661,7 +8661,7 @@ const Is = {
|
|
|
8661
8661
|
this.show ? ((a = this.map) == null || a.on("zoomend", this.handleZoomEnd), this.handleRender()) : (this.handleClear(), (e = this.map) == null || e.off("zoomend", this.handleZoomEnd));
|
|
8662
8662
|
},
|
|
8663
8663
|
handleMouseMove(a) {
|
|
8664
|
-
const e = a.lngLat, t =
|
|
8664
|
+
const e = a.lngLat, t = de.lng2pretty(e.lng, 2), r = de.lat2pretty(e.lat, 2);
|
|
8665
8665
|
this.lngLat = { lng: t, lat: r };
|
|
8666
8666
|
},
|
|
8667
8667
|
handleComputeLatLngs() {
|
|
@@ -8709,7 +8709,7 @@ const Is = {
|
|
|
8709
8709
|
handleZoomEnd() {
|
|
8710
8710
|
var e;
|
|
8711
8711
|
const a = this.handleComputeLatLngs();
|
|
8712
|
-
(e = this.map) == null || e.getSource(this.source).setData(
|
|
8712
|
+
(e = this.map) == null || e.getSource(this.source).setData(Q.featureCollection(a));
|
|
8713
8713
|
},
|
|
8714
8714
|
handleRender() {
|
|
8715
8715
|
if (this.map) {
|
|
@@ -8762,7 +8762,7 @@ function Es(a, e, t, r, i, s) {
|
|
|
8762
8762
|
return i.lngLat ? (u(), g("div", {
|
|
8763
8763
|
key: 0,
|
|
8764
8764
|
class: "lat-lng-tip",
|
|
8765
|
-
style:
|
|
8765
|
+
style: pe({ right: i.right + "px", bottom: t.bottom })
|
|
8766
8766
|
}, [
|
|
8767
8767
|
o("span", null, k(i.lngLat.lat.pretty), 1),
|
|
8768
8768
|
e[0] || (e[0] = o("span", null, ", ", -1)),
|
|
@@ -8804,7 +8804,7 @@ const pt = /* @__PURE__ */ Y(Is, [["render", Es], ["__scopeId", "data-v-747fb3c8
|
|
|
8804
8804
|
else {
|
|
8805
8805
|
(a = this.map) == null || a.getCanvas().removeEventListener("keydown", this.handleKeydown), (e = this.map) == null || e.off("mousemove", this.handleMove), (t = this.map) == null || t.off("dblclick", this.handleDblClick), this.map && (this.map.getCanvas().style.cursor = "grab");
|
|
8806
8806
|
let r = this.geojson.find((i) => !i.closed);
|
|
8807
|
-
r && this.handleClear(r, !0), this.geojson = this.geojson.filter((i) => !!i.closed), r =
|
|
8807
|
+
r && this.handleClear(r, !0), this.geojson = this.geojson.filter((i) => !!i.closed), r = Q.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(r);
|
|
8808
8808
|
}
|
|
8809
8809
|
},
|
|
8810
8810
|
immediate: !0
|
|
@@ -8896,8 +8896,8 @@ const pt = /* @__PURE__ */ Y(Is, [["render", Es], ["__scopeId", "data-v-747fb3c8
|
|
|
8896
8896
|
d.features = d.features.filter((h) => h.geometry.type === "Point" && h.properties.id !== c[1]), this.handlePointUpdate(d);
|
|
8897
8897
|
} else if (e !== "marker-label" && this.show) {
|
|
8898
8898
|
let c = this.geojson.at(-1);
|
|
8899
|
-
c || (c =
|
|
8900
|
-
const d =
|
|
8899
|
+
c || (c = Q.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(c)), c.features = c.features.filter((h) => h.geometry.type === "Point");
|
|
8900
|
+
const d = Q.feature(
|
|
8901
8901
|
{
|
|
8902
8902
|
type: "Point",
|
|
8903
8903
|
coordinates: [a.lngLat.lng, a.lngLat.lat]
|
|
@@ -8917,10 +8917,10 @@ const pt = /* @__PURE__ */ Y(Is, [["render", Es], ["__scopeId", "data-v-747fb3c8
|
|
|
8917
8917
|
const r = [];
|
|
8918
8918
|
for (let i = 1; i < e.length; i++) {
|
|
8919
8919
|
const s = e[i - 1], n = e[i], l = s.properties, c = { lng: s.geometry.coordinates[0], lat: s.geometry.coordinates[1] }, d = { lng: n.geometry.coordinates[0], lat: n.geometry.coordinates[1] }, h = We.calculateDistance(c, d, l.mode === "RL", 4), p = We.calculateBearing(c, d, l.mode === "RL", 2);
|
|
8920
|
-
t =
|
|
8920
|
+
t = de.roundPrecision(t + h, 2);
|
|
8921
8921
|
let L;
|
|
8922
|
-
l.mode === "RL" ? L =
|
|
8923
|
-
const E =
|
|
8922
|
+
l.mode === "RL" ? L = de.convertToMonotonicLng([c, d]) : L = de.convertToMonotonicLng(We.interpolateCoordinates(c, d, 200));
|
|
8923
|
+
const E = Q.lineString(L.map((B) => [B.lng, B.lat]));
|
|
8924
8924
|
E.properties.dist = h, E.properties.bearing = p, E.properties.total = t, r.push(E);
|
|
8925
8925
|
}
|
|
8926
8926
|
e.push(...r), a.total = t;
|
|
@@ -8928,22 +8928,22 @@ const pt = /* @__PURE__ */ Y(Is, [["render", Es], ["__scopeId", "data-v-747fb3c8
|
|
|
8928
8928
|
return this.handleRender(a), a;
|
|
8929
8929
|
},
|
|
8930
8930
|
handleTmpPointUpdate(a, e, t, r) {
|
|
8931
|
-
const i =
|
|
8931
|
+
const i = Q.featureCollection([]);
|
|
8932
8932
|
let s, n;
|
|
8933
8933
|
if (e) {
|
|
8934
8934
|
const c = e.properties, d = { lng: e.geometry.coordinates[0], lat: e.geometry.coordinates[1] }, h = { lng: t.lng, lat: t.lat };
|
|
8935
8935
|
s = We.calculateDistance(d, h, c.mode === "RL", 4), n = We.calculateBearing(d, h, c.mode === "RL", 2);
|
|
8936
8936
|
let p;
|
|
8937
|
-
c.mode === "RL" ? p =
|
|
8938
|
-
const L =
|
|
8937
|
+
c.mode === "RL" ? p = de.convertToMonotonicLng([d, h]) : p = de.convertToMonotonicLng(We.interpolateCoordinates(d, h, 200));
|
|
8938
|
+
const L = Q.lineString(p.map((E) => [E.lng, E.lat]));
|
|
8939
8939
|
L.properties.dist = s, L.properties.bearing = n, i.features.push(L);
|
|
8940
8940
|
}
|
|
8941
8941
|
if (r) {
|
|
8942
8942
|
const c = t.properties, d = t, h = { lng: r.geometry.coordinates[0], lat: r.geometry.coordinates[1] };
|
|
8943
8943
|
s = We.calculateDistance(d, h, c.mode === "RL", 4), n = We.calculateBearing(d, h, c.mode === "RL", 2);
|
|
8944
8944
|
let p;
|
|
8945
|
-
c.mode === "RL" ? p =
|
|
8946
|
-
const L =
|
|
8945
|
+
c.mode === "RL" ? p = de.convertToMonotonicLng([d, h]) : p = de.convertToMonotonicLng(We.interpolateCoordinates(d, h, 200));
|
|
8946
|
+
const L = Q.lineString(p.map((E) => [E.lng, E.lat]));
|
|
8947
8947
|
L.properties.dist = s, L.properties.bearing = n, i.features.push(L);
|
|
8948
8948
|
}
|
|
8949
8949
|
this.map.getSource(this.tmpSource) ? this.map.getSource(this.tmpSource).setData(i) : this.map.addSource(this.tmpSource, {
|
|
@@ -8984,7 +8984,7 @@ const pt = /* @__PURE__ */ Y(Is, [["render", Es], ["__scopeId", "data-v-747fb3c8
|
|
|
8984
8984
|
}
|
|
8985
8985
|
});
|
|
8986
8986
|
let l;
|
|
8987
|
-
if (r ? l = '<div class="marker-label">Drag and drop</div>' : l = `<div class="marker-label">Total distance: <b>${
|
|
8987
|
+
if (r ? l = '<div class="marker-label">Drag and drop</div>' : l = `<div class="marker-label">Total distance: <b>${de.roundPrecision((a.total ?? 0) + s, 1)}</b>nm, bearing: <b>${n}</b>°</div><div class="marker-label">${this.navigation === "RL" ? "RL" : "GC"} mode, using 'Shift' to switch</div><div class="marker-label">Double click to end</div>`, this.tipMarker)
|
|
8988
8988
|
this.tipMarker._element.innerHTML = l, this.tipMarker.setLngLat([t.lng, t.lat]);
|
|
8989
8989
|
else {
|
|
8990
8990
|
const c = document.createElement("div");
|
|
@@ -8994,14 +8994,14 @@ const pt = /* @__PURE__ */ Y(Is, [["render", Es], ["__scopeId", "data-v-747fb3c8
|
|
|
8994
8994
|
handleMove(a) {
|
|
8995
8995
|
this.map.getCanvas().style.cursor = "crosshair";
|
|
8996
8996
|
let e = this.geojson.at(-1);
|
|
8997
|
-
e || (e =
|
|
8997
|
+
e || (e = Q.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(e));
|
|
8998
8998
|
const t = e.features.filter((r) => r.geometry.type === "Point");
|
|
8999
8999
|
t != null && t.length && this.handleTmpPointUpdate(e, t.at(-1), { lng: a.lngLat.lng, lat: a.lngLat.lat });
|
|
9000
9000
|
},
|
|
9001
9001
|
handleDblClick(a) {
|
|
9002
9002
|
a.preventDefault();
|
|
9003
9003
|
let e = this.geojson.at(-1);
|
|
9004
|
-
e.closed = !0, this.handleRender(e), e =
|
|
9004
|
+
e.closed = !0, this.handleRender(e), e = Q.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(e);
|
|
9005
9005
|
},
|
|
9006
9006
|
handleRender(a) {
|
|
9007
9007
|
var e;
|
|
@@ -9125,11 +9125,11 @@ const zs = {
|
|
|
9125
9125
|
methods: {}
|
|
9126
9126
|
}, Ms = { key: 0 }, Ss = { class: "bar-item" };
|
|
9127
9127
|
function Ts(a, e, t, r, i, s) {
|
|
9128
|
-
const n =
|
|
9128
|
+
const n = j("ElTooltip");
|
|
9129
9129
|
return t.enabled && t.permission & i.helper.LEVEL.Supper ? (u(), g("div", Ms, [
|
|
9130
9130
|
o("div", {
|
|
9131
9131
|
class: "menu-bar-box",
|
|
9132
|
-
style:
|
|
9132
|
+
style: pe({ position: "absolute", right: i.right + "px", bottom: t.bottom })
|
|
9133
9133
|
}, [
|
|
9134
9134
|
o("div", Ss, [
|
|
9135
9135
|
O(n, {
|
|
@@ -9140,7 +9140,7 @@ function Ts(a, e, t, r, i, s) {
|
|
|
9140
9140
|
}, {
|
|
9141
9141
|
default: Me(() => [
|
|
9142
9142
|
o("div", {
|
|
9143
|
-
class:
|
|
9143
|
+
class: ae(i.vendor === "hi" ? "menu-icon active" : "menu-icon"),
|
|
9144
9144
|
onClick: e[0] || (e[0] = (l) => i.vendor = "hi")
|
|
9145
9145
|
}, e[2] || (e[2] = [
|
|
9146
9146
|
o("span", { class: "iconfont" }, "HI", -1)
|
|
@@ -9156,7 +9156,7 @@ function Ts(a, e, t, r, i, s) {
|
|
|
9156
9156
|
}, {
|
|
9157
9157
|
default: Me(() => [
|
|
9158
9158
|
o("div", {
|
|
9159
|
-
class:
|
|
9159
|
+
class: ae(i.vendor === "i4" ? "menu-icon active" : "menu-icon"),
|
|
9160
9160
|
onClick: e[1] || (e[1] = (l) => i.vendor = "i4")
|
|
9161
9161
|
}, e[3] || (e[3] = [
|
|
9162
9162
|
o("span", { class: "iconfont" }, "I4", -1)
|
|
@@ -9412,7 +9412,7 @@ const Ys = {
|
|
|
9412
9412
|
watch: {
|
|
9413
9413
|
ts: {
|
|
9414
9414
|
handler(a, e) {
|
|
9415
|
-
a && e &&
|
|
9415
|
+
a && e && re(a).utc().format("yyyy-MM-DD HH") !== re(e).utc().format("yyyy-MM-DD HH") && this.$nextTick(() => {
|
|
9416
9416
|
this.handleDateChange({ tropicals: !1 });
|
|
9417
9417
|
});
|
|
9418
9418
|
},
|
|
@@ -9524,11 +9524,11 @@ const Ys = {
|
|
|
9524
9524
|
);
|
|
9525
9525
|
const A = await Promise.all(b);
|
|
9526
9526
|
this.weatherLayers = {}, A.map((w) => {
|
|
9527
|
-
var
|
|
9528
|
-
const z = ((
|
|
9527
|
+
var F, H, N, W;
|
|
9528
|
+
const z = ((F = w == null ? void 0 : w.data) == null ? void 0 : F.data) || (w == null ? void 0 : w.data), D = (N = (H = w == null ? void 0 : w.config) == null ? void 0 : H.headers) == null ? void 0 : N.key;
|
|
9529
9529
|
D && z && (this.weatherLayers[D] = {
|
|
9530
9530
|
raw: z,
|
|
9531
|
-
type: ((
|
|
9531
|
+
type: ((W = w == null ? void 0 : w.config) == null ? void 0 : W.responseType) === "blob" ? "image" : "json",
|
|
9532
9532
|
etime: v.data.etime
|
|
9533
9533
|
});
|
|
9534
9534
|
}), m.tropicals && Ne.get(m.tropicals, {
|
|
@@ -9537,8 +9537,8 @@ const Ys = {
|
|
|
9537
9537
|
key: "tropicals"
|
|
9538
9538
|
}
|
|
9539
9539
|
}).then((w) => {
|
|
9540
|
-
var
|
|
9541
|
-
const z = ct.convert2Geojson(((
|
|
9540
|
+
var F, H, N;
|
|
9541
|
+
const z = ct.convert2Geojson(((F = w == null ? void 0 : w.data) == null ? void 0 : F.data) || (w == null ? void 0 : w.data)), D = (N = (H = w == null ? void 0 : w.config) == null ? void 0 : H.headers) == null ? void 0 : N.key;
|
|
9542
9542
|
this.weatherLayers[D] = {
|
|
9543
9543
|
data: z,
|
|
9544
9544
|
active: !0,
|
|
@@ -9683,7 +9683,7 @@ const Ys = {
|
|
|
9683
9683
|
var d, h, p, L, E, B;
|
|
9684
9684
|
const a = (/* @__PURE__ */ new Date()).valueOf();
|
|
9685
9685
|
let e = 0, t = 0;
|
|
9686
|
-
const r = (d = this.map) == null ? void 0 : d.getBounds(), i = this.map.getZoom(), s =
|
|
9686
|
+
const r = (d = this.map) == null ? void 0 : d.getBounds(), i = this.map.getZoom(), s = de.convertToStdLng(r._sw.lng), n = de.convertToStdLng(r._ne.lng), l = Math.floor(r._sw.lat), c = Math.ceil(r._ne.lat);
|
|
9687
9687
|
for (const y in this.weatherLayers) {
|
|
9688
9688
|
let I = !1;
|
|
9689
9689
|
if (this.weatherLayers[y].active && this.weatherLayers[y].type === "json") {
|
|
@@ -9695,38 +9695,38 @@ const Ys = {
|
|
|
9695
9695
|
if (m > l && m < c && (!(i <= this.zoom) || m % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
|
|
9696
9696
|
const b = f[m].lng;
|
|
9697
9697
|
s > n ? b.forEach((A, w) => {
|
|
9698
|
-
var z, D,
|
|
9698
|
+
var z, D, F, H, N, W;
|
|
9699
9699
|
if (i < 2) {
|
|
9700
9700
|
if ((A >= 0 && A <= 360 || A >= -360 && A <= 0) && A % 10 === 0) {
|
|
9701
|
-
const
|
|
9701
|
+
const G = Q.point([A, m], {
|
|
9702
9702
|
val: ((z = f[m].val) == null ? void 0 : z[w]) || ((D = f[m].dir) == null ? void 0 : D[w]),
|
|
9703
|
-
spd: (
|
|
9703
|
+
spd: (F = f[m].spd) == null ? void 0 : F[w]
|
|
9704
9704
|
});
|
|
9705
|
-
x.push(
|
|
9705
|
+
x.push(G);
|
|
9706
9706
|
}
|
|
9707
9707
|
} else if ((A >= s && A <= 180 || A >= -180 && A <= n) && (!(i <= this.zoom) || A % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
|
|
9708
|
-
const
|
|
9709
|
-
val: ((
|
|
9710
|
-
spd: (
|
|
9708
|
+
const G = Q.point([A, m], {
|
|
9709
|
+
val: ((H = f[m].val) == null ? void 0 : H[w]) || ((N = f[m].dir) == null ? void 0 : N[w]),
|
|
9710
|
+
spd: (W = f[m].spd) == null ? void 0 : W[w]
|
|
9711
9711
|
});
|
|
9712
|
-
x.push(
|
|
9712
|
+
x.push(G);
|
|
9713
9713
|
}
|
|
9714
9714
|
}) : b.forEach((A, w) => {
|
|
9715
|
-
var z, D,
|
|
9715
|
+
var z, D, F, H, N, W;
|
|
9716
9716
|
if (s < 2) {
|
|
9717
9717
|
if ((A >= 0 && A <= 360 || A >= -360 && A <= 0) && A % 10 === 0) {
|
|
9718
|
-
const
|
|
9718
|
+
const G = Q.point([A, m], {
|
|
9719
9719
|
val: ((z = f[m].val) == null ? void 0 : z[w]) || ((D = f[m].dir) == null ? void 0 : D[w]),
|
|
9720
|
-
spd: (
|
|
9720
|
+
spd: (F = f[m].spd) == null ? void 0 : F[w]
|
|
9721
9721
|
});
|
|
9722
|
-
x.push(
|
|
9722
|
+
x.push(G);
|
|
9723
9723
|
}
|
|
9724
9724
|
} else if (A >= s && A <= n && (!(i <= this.zoom) || A % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
|
|
9725
|
-
const
|
|
9726
|
-
val: ((
|
|
9727
|
-
spd: (
|
|
9725
|
+
const G = Q.point([A, m], {
|
|
9726
|
+
val: ((H = f[m].val) == null ? void 0 : H[w]) || ((N = f[m].dir) == null ? void 0 : N[w]),
|
|
9727
|
+
spd: (W = f[m].spd) == null ? void 0 : W[w]
|
|
9728
9728
|
});
|
|
9729
|
-
x.push(
|
|
9729
|
+
x.push(G);
|
|
9730
9730
|
}
|
|
9731
9731
|
});
|
|
9732
9732
|
}
|
|
@@ -9739,11 +9739,11 @@ const Ys = {
|
|
|
9739
9739
|
const A = v.raw.LineString[b];
|
|
9740
9740
|
for (const w of A)
|
|
9741
9741
|
m.push(
|
|
9742
|
-
|
|
9742
|
+
Q.lineString(w, {
|
|
9743
9743
|
val: Number(b)
|
|
9744
9744
|
})
|
|
9745
9745
|
);
|
|
9746
|
-
v.data =
|
|
9746
|
+
v.data = Q.featureCollection(m);
|
|
9747
9747
|
}
|
|
9748
9748
|
}
|
|
9749
9749
|
if (v.data) {
|
|
@@ -9759,38 +9759,38 @@ const Ys = {
|
|
|
9759
9759
|
if (m > l && m < c && (!(i <= this.zoom) || m % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
|
|
9760
9760
|
const b = f[m].lng;
|
|
9761
9761
|
s > n ? b.forEach((A, w) => {
|
|
9762
|
-
var z, D,
|
|
9762
|
+
var z, D, F, H, N, W;
|
|
9763
9763
|
if (i < 2) {
|
|
9764
9764
|
if ((A >= 0 && A <= 360 || A >= -360 && A <= 0) && A % 10 === 0) {
|
|
9765
|
-
const
|
|
9765
|
+
const G = Q.point([A, m], {
|
|
9766
9766
|
val: ((z = f[m].val) == null ? void 0 : z[w]) || ((D = f[m].dir) == null ? void 0 : D[w]),
|
|
9767
|
-
spd: (
|
|
9767
|
+
spd: (F = f[m].spd) == null ? void 0 : F[w]
|
|
9768
9768
|
});
|
|
9769
|
-
x.push(
|
|
9769
|
+
x.push(G);
|
|
9770
9770
|
}
|
|
9771
9771
|
} else if ((A >= s && A <= 180 || A >= -180 && A <= n) && (!(i <= this.zoom) || A % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
|
|
9772
|
-
const
|
|
9773
|
-
val: ((
|
|
9774
|
-
spd: (
|
|
9772
|
+
const G = Q.point([A, m], {
|
|
9773
|
+
val: ((H = f[m].val) == null ? void 0 : H[w]) || ((N = f[m].dir) == null ? void 0 : N[w]),
|
|
9774
|
+
spd: (W = f[m].spd) == null ? void 0 : W[w]
|
|
9775
9775
|
});
|
|
9776
|
-
x.push(
|
|
9776
|
+
x.push(G);
|
|
9777
9777
|
}
|
|
9778
9778
|
}) : b.forEach((A, w) => {
|
|
9779
|
-
var z, D,
|
|
9779
|
+
var z, D, F, H, N, W;
|
|
9780
9780
|
if (s < 2) {
|
|
9781
9781
|
if ((A >= 0 && A <= 360 || A >= -360 && A <= 0) && A % 10 === 0) {
|
|
9782
|
-
const
|
|
9782
|
+
const G = Q.point([A, m], {
|
|
9783
9783
|
val: ((z = f[m].val) == null ? void 0 : z[w]) || ((D = f[m].dir) == null ? void 0 : D[w]),
|
|
9784
|
-
spd: (
|
|
9784
|
+
spd: (F = f[m].spd) == null ? void 0 : F[w]
|
|
9785
9785
|
});
|
|
9786
|
-
x.push(
|
|
9786
|
+
x.push(G);
|
|
9787
9787
|
}
|
|
9788
9788
|
} else if (A >= s && A <= n && (!(i <= this.zoom) || A % (i < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
9789
|
-
const
|
|
9790
|
-
val: ((
|
|
9791
|
-
spd: (
|
|
9789
|
+
const G = Q.point([A, m], {
|
|
9790
|
+
val: ((H = f[m].val) == null ? void 0 : H[w]) || ((N = f[m].dir) == null ? void 0 : N[w]),
|
|
9791
|
+
spd: (W = f[m].spd) == null ? void 0 : W[w]
|
|
9792
9792
|
});
|
|
9793
|
-
x.push(
|
|
9793
|
+
x.push(G);
|
|
9794
9794
|
}
|
|
9795
9795
|
});
|
|
9796
9796
|
}
|
|
@@ -9803,12 +9803,12 @@ const Ys = {
|
|
|
9803
9803
|
const w = v.raw.Polygon[A];
|
|
9804
9804
|
for (const z of w)
|
|
9805
9805
|
b.push(
|
|
9806
|
-
|
|
9806
|
+
Q.polygon(z, {
|
|
9807
9807
|
val: Number(A)
|
|
9808
9808
|
})
|
|
9809
9809
|
);
|
|
9810
9810
|
}
|
|
9811
|
-
v.data =
|
|
9811
|
+
v.data = Q.featureCollection(b);
|
|
9812
9812
|
}
|
|
9813
9813
|
const m = i < this.zoom ? v.data.features.filter((b) => b.properties.val > 0.5) : v.data.features;
|
|
9814
9814
|
x = x.concat(m), t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("current speed elapsed: ", t, ", total: ", e += t);
|
|
@@ -9820,38 +9820,38 @@ const Ys = {
|
|
|
9820
9820
|
if (v > l && v < c && (!(i <= this.zoom) || v % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
|
|
9821
9821
|
const m = f[v].lng;
|
|
9822
9822
|
s > n ? m.forEach((b, A) => {
|
|
9823
|
-
var w, z, D,
|
|
9823
|
+
var w, z, D, F;
|
|
9824
9824
|
if (i < 2) {
|
|
9825
9825
|
if ((b >= 0 && b <= 360 || b >= -360 && b <= 0) && b % 10 === 0) {
|
|
9826
|
-
const
|
|
9826
|
+
const H = Q.point([b, v], {
|
|
9827
9827
|
dir: ((w = f[v].val) == null ? void 0 : w[A]) || ((z = f[v].dir) == null ? void 0 : z[A]),
|
|
9828
9828
|
spd: f[v].spd[A]
|
|
9829
9829
|
});
|
|
9830
|
-
x.push(
|
|
9830
|
+
x.push(H);
|
|
9831
9831
|
}
|
|
9832
9832
|
} else if ((b >= s && b <= 180 || b >= -180 && b <= n) && (!(i <= this.zoom) || b % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
|
|
9833
|
-
const
|
|
9834
|
-
dir: ((D = f[v].val) == null ? void 0 : D[A]) || ((
|
|
9833
|
+
const H = Q.point([b, v], {
|
|
9834
|
+
dir: ((D = f[v].val) == null ? void 0 : D[A]) || ((F = f[v].dir) == null ? void 0 : F[A]),
|
|
9835
9835
|
spd: f[v].spd[A]
|
|
9836
9836
|
});
|
|
9837
|
-
x.push(
|
|
9837
|
+
x.push(H);
|
|
9838
9838
|
}
|
|
9839
9839
|
}) : m.forEach((b, A) => {
|
|
9840
|
-
var w, z, D,
|
|
9840
|
+
var w, z, D, F;
|
|
9841
9841
|
if (i < 2) {
|
|
9842
9842
|
if ((b >= 0 && b <= 360 || b >= -360 && b <= 0) && b % 10 === 0) {
|
|
9843
|
-
const
|
|
9843
|
+
const H = Q.point([b, v], {
|
|
9844
9844
|
dir: ((w = f[v].val) == null ? void 0 : w[A]) || ((z = f[v].dir) == null ? void 0 : z[A]),
|
|
9845
9845
|
spd: f[v].spd[A]
|
|
9846
9846
|
});
|
|
9847
|
-
x.push(
|
|
9847
|
+
x.push(H);
|
|
9848
9848
|
}
|
|
9849
9849
|
} else if (b >= s && b <= n && (!(i <= this.zoom) || b % (i < 2 ? 10 : i < 4 ? 5 : 3) === 0)) {
|
|
9850
|
-
const
|
|
9851
|
-
dir: ((D = f[v].val) == null ? void 0 : D[A]) || ((
|
|
9850
|
+
const H = Q.point([b, v], {
|
|
9851
|
+
dir: ((D = f[v].val) == null ? void 0 : D[A]) || ((F = f[v].dir) == null ? void 0 : F[A]),
|
|
9852
9852
|
spd: f[v].spd[A]
|
|
9853
9853
|
});
|
|
9854
|
-
x.push(
|
|
9854
|
+
x.push(H);
|
|
9855
9855
|
}
|
|
9856
9856
|
});
|
|
9857
9857
|
}
|
|
@@ -9868,7 +9868,7 @@ const Ys = {
|
|
|
9868
9868
|
const b = f.Polygon[m];
|
|
9869
9869
|
for (const A of b)
|
|
9870
9870
|
v.push(
|
|
9871
|
-
|
|
9871
|
+
Q.polygon(A, {
|
|
9872
9872
|
val: Number(m)
|
|
9873
9873
|
})
|
|
9874
9874
|
);
|
|
@@ -9877,7 +9877,7 @@ const Ys = {
|
|
|
9877
9877
|
const b = f.MultiPolygon[m];
|
|
9878
9878
|
for (const A of b)
|
|
9879
9879
|
v.push(
|
|
9880
|
-
|
|
9880
|
+
Q.multiPolygon(A, {
|
|
9881
9881
|
val: Number(m)
|
|
9882
9882
|
})
|
|
9883
9883
|
);
|
|
@@ -9886,7 +9886,7 @@ const Ys = {
|
|
|
9886
9886
|
const b = f.Point[m];
|
|
9887
9887
|
for (let A = 0; A < ((B = b.lng) == null ? void 0 : B.length); A++)
|
|
9888
9888
|
v.push(
|
|
9889
|
-
|
|
9889
|
+
Q.point([b.lng[A], m], {
|
|
9890
9890
|
val: Number(b.val[A])
|
|
9891
9891
|
})
|
|
9892
9892
|
);
|
|
@@ -9907,15 +9907,15 @@ const Ys = {
|
|
|
9907
9907
|
const b = f.LineString[m];
|
|
9908
9908
|
for (const A of b)
|
|
9909
9909
|
v.push(
|
|
9910
|
-
|
|
9910
|
+
Q.lineString(A, {
|
|
9911
9911
|
val: Number(m)
|
|
9912
9912
|
})
|
|
9913
9913
|
);
|
|
9914
9914
|
}
|
|
9915
9915
|
for (const m in f.Point)
|
|
9916
9916
|
f.Point[m].lng.forEach((b, A) => {
|
|
9917
|
-
b =
|
|
9918
|
-
|
|
9917
|
+
b = de.convertToStdLng(b), v.push(
|
|
9918
|
+
Q.point([b, m], {
|
|
9919
9919
|
val: f.Point[m].val[A],
|
|
9920
9920
|
type: f.Point[m].type[A]
|
|
9921
9921
|
})
|
|
@@ -9926,7 +9926,7 @@ const Ys = {
|
|
|
9926
9926
|
}
|
|
9927
9927
|
t = (/* @__PURE__ */ new Date()).valueOf() - (a + e), console.log("prmsl elapsed: ", t, ", total: ", e += t);
|
|
9928
9928
|
}
|
|
9929
|
-
x.length && (this.weatherLayers[y].data =
|
|
9929
|
+
x.length && (this.weatherLayers[y].data = Q.featureCollection(x)), I && (this.weatherLayers[y].version = Math.random() + 1);
|
|
9930
9930
|
}
|
|
9931
9931
|
}
|
|
9932
9932
|
},
|
|
@@ -9937,14 +9937,14 @@ const Ys = {
|
|
|
9937
9937
|
this.handleDrawWeather4Json(), !this.activeWeatherLayers.some((l) => l.key === "wind" && l.particle === !0 || l.key === "current" && l.particle === !0 || l.key === "ice-edge" || l.key === "ice-thickness" || l.key === "ice-cover" || l.key === "temp" || l.key === "water-temp") && this.map.getZoom() > 3 && this.enc ? (t = (e = this.map) == null ? void 0 : e.getLayer(this.enc)) == null || t.setLayoutProperty("visibility", "visible") : ((i = (r = this.map) == null ? void 0 : r.getLayer("i4")) == null || i.setLayoutProperty("visibility", "none"), (n = (s = this.map) == null ? void 0 : s.getLayer("hi")) == null || n.setLayoutProperty("visibility", "none"));
|
|
9938
9938
|
},
|
|
9939
9939
|
handleBboxClip(a, e) {
|
|
9940
|
-
const t = [], r =
|
|
9940
|
+
const t = [], r = de.convertToStdLng(e._sw.lng), i = de.convertToStdLng(e._ne.lng);
|
|
9941
9941
|
return a.features.forEach((s) => {
|
|
9942
9942
|
if (s.geometry.type !== "Point")
|
|
9943
9943
|
if (r > i) {
|
|
9944
|
-
let n = [r, e._sw.lat, 180, e._ne.lat], l =
|
|
9945
|
-
l.geometry.coordinates.length && t.push(l), n = [-180, e._sw.lat, i, e._ne.lat], l =
|
|
9944
|
+
let n = [r, e._sw.lat, 180, e._ne.lat], l = Q.bboxClip(s, n);
|
|
9945
|
+
l.geometry.coordinates.length && t.push(l), n = [-180, e._sw.lat, i, e._ne.lat], l = Q.bboxClip(s, n), l.geometry.coordinates.length && t.push(l);
|
|
9946
9946
|
} else {
|
|
9947
|
-
const n = [r, e._sw.lat, i, e._ne.lat], l =
|
|
9947
|
+
const n = [r, e._sw.lat, i, e._ne.lat], l = Q.bboxClip(s, n);
|
|
9948
9948
|
l.geometry.coordinates.length && t.push(l);
|
|
9949
9949
|
}
|
|
9950
9950
|
else
|
|
@@ -10022,8 +10022,8 @@ const Ys = {
|
|
|
10022
10022
|
class: "map-gl-home"
|
|
10023
10023
|
};
|
|
10024
10024
|
function Xs(a, e, t, r, i, s) {
|
|
10025
|
-
var Z,
|
|
10026
|
-
const n =
|
|
10025
|
+
var Z, he, ce, Ae, Le, xe, _, Ee, Ce, ke, Be, Pe, _e, J, V, S, De, X, ee, Te, M, we, Se, Qe, He, P, R, Ge, Ue, Ye, ze;
|
|
10026
|
+
const n = j("IdmGlLayer"), l = j("IdmENC"), c = j("IdmWorld12nm"), d = j("IdmWorldMarine"), h = j("IdmChinaRoute"), p = j("IdmSigWave"), L = j("IdmSigWaveHeight"), E = j("IdmSwell"), B = j("IdmPrmsl"), y = j("IdmIceEdge"), I = j("IdmIceCover"), x = j("IdmIceThickness"), f = j("IdmTropicals"), v = j("IdmCurrents"), m = j("IdmCurrentParticle"), b = j("IdmWindBarb"), A = j("IdmWindParticle"), w = j("IdmPrecip3h"), z = j("IdmVisibility"), D = j("IdmWaterTemp"), F = j("IdmTemp"), H = j("IdmWarZone"), N = j("IdmGmdssArea"), W = j("IdmEcaZone"), G = j("IdmAlertZone"), le = j("IdmPort"), $ = j("IdmLoadLine"), oe = j("IdmTimezone"), fe = j("IdmVRA"), me = j("IdmSpecialArea"), be = j("IdmTerminator"), ue = j("IdmLatLng"), ge = j("IdmMeasure"), U = j("IdmPoint");
|
|
10027
10027
|
return t.map ? (u(), g("div", Ks, [
|
|
10028
10028
|
O(n, K({
|
|
10029
10029
|
ref: "layer",
|
|
@@ -10068,13 +10068,13 @@ function Xs(a, e, t, r, i, s) {
|
|
|
10068
10068
|
map: t.map,
|
|
10069
10069
|
token: t.token,
|
|
10070
10070
|
"weather-layers": i.weatherLayers,
|
|
10071
|
-
enabled: (
|
|
10071
|
+
enabled: (he = i.otherLayers) == null ? void 0 : he.world12nm
|
|
10072
10072
|
}, a.$attrs), null, 16, ["map", "token", "weather-layers", "enabled"]),
|
|
10073
10073
|
O(d, K({
|
|
10074
10074
|
map: t.map,
|
|
10075
10075
|
token: t.token,
|
|
10076
10076
|
"weather-layers": i.weatherLayers,
|
|
10077
|
-
enabled: (
|
|
10077
|
+
enabled: (ce = i.otherLayers) == null ? void 0 : ce.worldMarine
|
|
10078
10078
|
}, a.$attrs), null, 16, ["map", "token", "weather-layers", "enabled"]),
|
|
10079
10079
|
O(h, K({
|
|
10080
10080
|
map: t.map,
|
|
@@ -10156,7 +10156,7 @@ function Xs(a, e, t, r, i, s) {
|
|
|
10156
10156
|
map: t.map,
|
|
10157
10157
|
"map-projection": i.mapProjection,
|
|
10158
10158
|
wind: (V = i.weatherLayers) == null ? void 0 : V.wind,
|
|
10159
|
-
current: (
|
|
10159
|
+
current: (S = i.weatherLayers) == null ? void 0 : S.current,
|
|
10160
10160
|
"before-layer": t.beforeLayer,
|
|
10161
10161
|
"margin-bottom": i.showRampColor ? "56px" : "30px",
|
|
10162
10162
|
"show-wind-feather": i.showWindFeather,
|
|
@@ -10181,7 +10181,7 @@ function Xs(a, e, t, r, i, s) {
|
|
|
10181
10181
|
}, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
10182
10182
|
O(z, K({
|
|
10183
10183
|
viewport: i.viewport,
|
|
10184
|
-
factor: (
|
|
10184
|
+
factor: (ee = i.weatherLayers) == null ? void 0 : ee.visibility,
|
|
10185
10185
|
"before-layer": t.beforeLayer,
|
|
10186
10186
|
"toggle-version": t.toggleVersion
|
|
10187
10187
|
}, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
@@ -10191,49 +10191,49 @@ function Xs(a, e, t, r, i, s) {
|
|
|
10191
10191
|
"before-layer": t.beforeLayer,
|
|
10192
10192
|
"toggle-version": t.toggleVersion
|
|
10193
10193
|
}, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
10194
|
-
O(
|
|
10194
|
+
O(F, K({
|
|
10195
10195
|
viewport: i.viewport,
|
|
10196
10196
|
factor: (M = i.weatherLayers) == null ? void 0 : M.temp,
|
|
10197
10197
|
"before-layer": t.beforeLayer,
|
|
10198
10198
|
"toggle-version": t.toggleVersion
|
|
10199
10199
|
}, a.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
10200
|
-
O(
|
|
10200
|
+
O(H, K({
|
|
10201
10201
|
map: t.map,
|
|
10202
10202
|
zone: (we = i.otherLayers) == null ? void 0 : we["war-zones"],
|
|
10203
10203
|
"before-layer": t.beforeLayer
|
|
10204
10204
|
}, a.$attrs), null, 16, ["map", "zone", "before-layer"]),
|
|
10205
|
-
O(
|
|
10205
|
+
O(N, K({
|
|
10206
10206
|
map: t.map,
|
|
10207
10207
|
area: (Se = i.otherLayers) == null ? void 0 : Se["gmdss-areas"],
|
|
10208
10208
|
"before-layer": t.beforeLayer
|
|
10209
10209
|
}, a.$attrs), null, 16, ["map", "area", "before-layer"]),
|
|
10210
|
-
O(
|
|
10210
|
+
O(W, K({
|
|
10211
10211
|
map: t.map,
|
|
10212
10212
|
zone: (Qe = i.otherLayers) == null ? void 0 : Qe["eca-zones"],
|
|
10213
10213
|
"before-layer": t.beforeLayer
|
|
10214
10214
|
}, a.$attrs), null, 16, ["map", "zone", "before-layer"]),
|
|
10215
|
-
O(
|
|
10215
|
+
O(G, K({
|
|
10216
10216
|
map: t.map,
|
|
10217
10217
|
zone: (He = i.otherLayers) == null ? void 0 : He["alert-zones"],
|
|
10218
10218
|
"before-layer": t.beforeLayer
|
|
10219
10219
|
}, a.$attrs), null, 16, ["map", "zone", "before-layer"]),
|
|
10220
|
-
O(
|
|
10220
|
+
O(le, K({
|
|
10221
10221
|
map: t.map,
|
|
10222
10222
|
port: (P = i.otherLayers) == null ? void 0 : P.ports,
|
|
10223
10223
|
"before-layer": t.beforeLayer,
|
|
10224
10224
|
"forecast-model": t.forecastModel
|
|
10225
10225
|
}, a.$attrs), null, 16, ["map", "port", "before-layer", "forecast-model"]),
|
|
10226
|
-
O(
|
|
10226
|
+
O($, K({
|
|
10227
10227
|
map: t.map,
|
|
10228
|
-
line: (
|
|
10228
|
+
line: (R = i.otherLayers) == null ? void 0 : R["load-lines"],
|
|
10229
10229
|
"before-layer": t.beforeLayer
|
|
10230
10230
|
}, a.$attrs), null, 16, ["map", "line", "before-layer"]),
|
|
10231
|
-
O(
|
|
10231
|
+
O(oe, K({
|
|
10232
10232
|
map: t.map,
|
|
10233
10233
|
zone: (Ge = i.otherLayers) == null ? void 0 : Ge["time-zones"],
|
|
10234
10234
|
"before-layer": t.beforeLayer
|
|
10235
10235
|
}, a.$attrs), null, 16, ["map", "zone", "before-layer"]),
|
|
10236
|
-
O(
|
|
10236
|
+
O(fe, K({
|
|
10237
10237
|
map: t.map,
|
|
10238
10238
|
area: (Ue = i.otherLayers) == null ? void 0 : Ue["voluntary-reporting-area"],
|
|
10239
10239
|
"before-layer": t.beforeLayer
|
|
@@ -10256,7 +10256,7 @@ function Xs(a, e, t, r, i, s) {
|
|
|
10256
10256
|
map: t.map,
|
|
10257
10257
|
show: i.showMeasure
|
|
10258
10258
|
}, a.$attrs), null, 16, ["map", "show"]),
|
|
10259
|
-
O(
|
|
10259
|
+
O(U, K({
|
|
10260
10260
|
ref: "idmPoint",
|
|
10261
10261
|
map: t.map,
|
|
10262
10262
|
show: i.showPoint,
|
|
@@ -10282,5 +10282,5 @@ export {
|
|
|
10282
10282
|
dt as TropicalGL,
|
|
10283
10283
|
tt as Viewport,
|
|
10284
10284
|
je as WebGL,
|
|
10285
|
-
|
|
10285
|
+
ne as WebGLSchema
|
|
10286
10286
|
};
|