@idmwx/idmui-gl3 4.7.7 → 4.7.9
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 +458 -458
- package/dist/index.umd.cjs +14 -14
- package/dist/style.css +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -2,15 +2,15 @@ var G0 = Object.defineProperty;
|
|
|
2
2
|
var V0 = (z, M, b) => M in z ? G0(z, M, { enumerable: !0, configurable: !0, writable: !0, value: b }) : z[M] = b;
|
|
3
3
|
var V = (z, M, b) => (V0(z, typeof M != "symbol" ? M + "" : M, b), b);
|
|
4
4
|
import { LayerHelper as x0, CompanyHelper as S0 } from "@idm-plugin/tag";
|
|
5
|
-
import { resolveComponent as S, openBlock as l, createElementBlock as f, createElementVNode as c, normalizeStyle as
|
|
5
|
+
import { resolveComponent as S, openBlock as l, createElementBlock as f, createElementVNode as c, normalizeStyle as o0, createVNode as T, withCtx as A0, normalizeClass as J, Fragment as K, renderList as $, toDisplayString as _, createCommentVNode as F, createTextVNode as b0, withDirectives as X0, createStaticVNode as K0, vShow as v0, defineComponent as J0, withModifiers as C0, mergeProps as j } from "vue";
|
|
6
6
|
import * as w from "@turf/turf";
|
|
7
7
|
import Q0 from "@mapbox/sphericalmercator";
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import { TropicalHelper as I0, LngLatHelper as M0, LaneHelper as
|
|
8
|
+
import H from "moment";
|
|
9
|
+
import g0 from "mapbox-gl";
|
|
10
|
+
import { TropicalHelper as I0, LngLatHelper as M0, LaneHelper as B0 } from "@idm-plugin/geo";
|
|
11
11
|
import { Meteo2Assist as D0 } from "@idm-plugin/meteo";
|
|
12
|
-
import
|
|
13
|
-
const
|
|
12
|
+
import y0 from "axios";
|
|
13
|
+
const I = (z, M) => {
|
|
14
14
|
const b = z.__vccOpts || z;
|
|
15
15
|
for (const [O, p] of M)
|
|
16
16
|
b[O] = p;
|
|
@@ -226,7 +226,7 @@ function T1(z, M, b, O, p, o) {
|
|
|
226
226
|
return l(), f("div", Z0, [
|
|
227
227
|
c("div", {
|
|
228
228
|
class: "menu-bar-box",
|
|
229
|
-
style:
|
|
229
|
+
style: o0({ top: b.top + 10 + "px", right: p.right + "px" })
|
|
230
230
|
}, [
|
|
231
231
|
c("div", Y0, [
|
|
232
232
|
T(e, {
|
|
@@ -235,7 +235,7 @@ function T1(z, M, b, O, p, o) {
|
|
|
235
235
|
content: "Menu",
|
|
236
236
|
"show-after": 1e3
|
|
237
237
|
}, {
|
|
238
|
-
default:
|
|
238
|
+
default: A0(() => [
|
|
239
239
|
c("div", {
|
|
240
240
|
class: J(b.layerToggle ? "menu-icon active" : "menu-icon"),
|
|
241
241
|
onClick: M[0] || (M[0] = (...a) => o.handleMenuToggle && o.handleMenuToggle(...a))
|
|
@@ -249,7 +249,7 @@ function T1(z, M, b, O, p, o) {
|
|
|
249
249
|
], 4),
|
|
250
250
|
c("div", {
|
|
251
251
|
class: "menu-bar-box",
|
|
252
|
-
style:
|
|
252
|
+
style: o0({ top: b.top + 160 + "px", right: p.right + "px" })
|
|
253
253
|
}, [
|
|
254
254
|
c("div", M1, [
|
|
255
255
|
T(e, {
|
|
@@ -258,7 +258,7 @@ function T1(z, M, b, O, p, o) {
|
|
|
258
258
|
content: "Measure",
|
|
259
259
|
"show-after": 1e3
|
|
260
260
|
}, {
|
|
261
|
-
default:
|
|
261
|
+
default: A0(() => [
|
|
262
262
|
c("div", {
|
|
263
263
|
class: J(p.showMeasure ? "menu-icon active" : "menu-icon"),
|
|
264
264
|
onClick: M[1] || (M[1] = (...a) => o.handleMeasureToggle && o.handleMeasureToggle(...a))
|
|
@@ -274,7 +274,7 @@ function T1(z, M, b, O, p, o) {
|
|
|
274
274
|
content: "Point Meteo",
|
|
275
275
|
"show-after": 1e3
|
|
276
276
|
}, {
|
|
277
|
-
default:
|
|
277
|
+
default: A0(() => [
|
|
278
278
|
c("div", {
|
|
279
279
|
class: J(p.showPoint ? "menu-icon active" : "menu-icon"),
|
|
280
280
|
onClick: M[2] || (M[2] = (...a) => o.handlePointToggle && o.handlePointToggle(...a))
|
|
@@ -290,7 +290,7 @@ function T1(z, M, b, O, p, o) {
|
|
|
290
290
|
content: "Grid",
|
|
291
291
|
"show-after": 1e3
|
|
292
292
|
}, {
|
|
293
|
-
default:
|
|
293
|
+
default: A0(() => [
|
|
294
294
|
c("div", {
|
|
295
295
|
class: J(p.showCoord ? "menu-icon active" : "menu-icon"),
|
|
296
296
|
onClick: M[3] || (M[3] = (...a) => o.handleCoordToggle && o.handleCoordToggle(...a))
|
|
@@ -306,7 +306,7 @@ function T1(z, M, b, O, p, o) {
|
|
|
306
306
|
content: "3D",
|
|
307
307
|
"show-after": 1e3
|
|
308
308
|
}, {
|
|
309
|
-
default:
|
|
309
|
+
default: A0(() => [
|
|
310
310
|
c("div", {
|
|
311
311
|
class: J(p.show3d ? "menu-icon active" : "menu-icon"),
|
|
312
312
|
onClick: M[4] || (M[4] = (...a) => o.handle3DToggle && o.handle3DToggle(...a))
|
|
@@ -321,7 +321,7 @@ function T1(z, M, b, O, p, o) {
|
|
|
321
321
|
o.hasCollectedLayers ? (l(), f("div", {
|
|
322
322
|
key: 0,
|
|
323
323
|
class: "active-layers",
|
|
324
|
-
style:
|
|
324
|
+
style: o0({ right: p.right + "px", bottom: "100px" })
|
|
325
325
|
}, [
|
|
326
326
|
c("div", b1, [
|
|
327
327
|
M[22] || (M[22] = c("div", { style: { margin: "2px 5px" } }, "My Favorites", -1)),
|
|
@@ -354,7 +354,7 @@ function T1(z, M, b, O, p, o) {
|
|
|
354
354
|
class: J(["iconfont sub-layer-icon", b.showWindFeather ? "active" : ""]),
|
|
355
355
|
onClick: M[7] || (M[7] = (i) => o.handleToggleWindFeather())
|
|
356
356
|
}, "", 2)
|
|
357
|
-
])) :
|
|
357
|
+
])) : F("", !0),
|
|
358
358
|
a.key === "current" && p.activeWeatherLayers.some((i) => i.key === a.key) ? (l(), f("div", e1, [
|
|
359
359
|
c("i", {
|
|
360
360
|
class: J(["iconfont sub-layer-icon", b.showCurrentParticle ? "active" : ""]),
|
|
@@ -364,12 +364,12 @@ function T1(z, M, b, O, p, o) {
|
|
|
364
364
|
class: J(["iconfont sub-layer-icon", b.showCurrentIsoband ? "active" : ""]),
|
|
365
365
|
onClick: M[9] || (M[9] = (i) => o.handleToggleCurrentIsoband())
|
|
366
366
|
}, "", 2)
|
|
367
|
-
])) :
|
|
367
|
+
])) : F("", !0)
|
|
368
368
|
], 2))), 128))
|
|
369
|
-
], 4)) :
|
|
369
|
+
], 4)) : F("", !0),
|
|
370
370
|
c("div", {
|
|
371
371
|
class: "available-layers flex-center",
|
|
372
|
-
style:
|
|
372
|
+
style: o0({ top: b.top + "px", right: b.layerToggle ? "0px" : "-240px" })
|
|
373
373
|
}, [
|
|
374
374
|
c("div", {
|
|
375
375
|
class: J(["list-box", b.layerToggle ? "right-bar" : ""])
|
|
@@ -382,7 +382,7 @@ function T1(z, M, b, O, p, o) {
|
|
|
382
382
|
}, "")
|
|
383
383
|
]),
|
|
384
384
|
T(r, { style: { flex: "1" } }, {
|
|
385
|
-
default:
|
|
385
|
+
default: A0(() => [
|
|
386
386
|
c("div", t1, [
|
|
387
387
|
c("div", a1, [
|
|
388
388
|
M[24] || (M[24] = c("div", null, "Weather Layers", -1)),
|
|
@@ -398,7 +398,7 @@ function T1(z, M, b, O, p, o) {
|
|
|
398
398
|
(l(!0), f(K, null, $(p.layers.weather, (a) => (l(), f(K, {
|
|
399
399
|
key: a.key
|
|
400
400
|
}, [
|
|
401
|
-
a.hide ?
|
|
401
|
+
a.hide ? F("", !0) : (l(), f("div", {
|
|
402
402
|
key: 0,
|
|
403
403
|
class: J(o.computeLayerClass(a, p.activeWeatherLayers))
|
|
404
404
|
}, [
|
|
@@ -420,7 +420,7 @@ function T1(z, M, b, O, p, o) {
|
|
|
420
420
|
class: J(["iconfont sub-layer-icon", b.showWindFeather ? "active" : ""]),
|
|
421
421
|
onClick: M[13] || (M[13] = (i) => o.handleToggleWindFeather())
|
|
422
422
|
}, "", 2)
|
|
423
|
-
])) :
|
|
423
|
+
])) : F("", !0),
|
|
424
424
|
a.key === "current" && p.activeWeatherLayers.some((i) => i.key === a.key) ? (l(), f("div", l1, [
|
|
425
425
|
c("i", {
|
|
426
426
|
class: J(["iconfont sub-layer-icon", b.showCurrentParticle ? "active" : ""]),
|
|
@@ -430,7 +430,7 @@ function T1(z, M, b, O, p, o) {
|
|
|
430
430
|
class: J(["iconfont sub-layer-icon", b.showCurrentIsoband ? "active" : ""]),
|
|
431
431
|
onClick: M[15] || (M[15] = (i) => o.handleToggleCurrentIsoband())
|
|
432
432
|
}, "", 2)
|
|
433
|
-
])) :
|
|
433
|
+
])) : F("", !0)
|
|
434
434
|
]),
|
|
435
435
|
c("div", {
|
|
436
436
|
onClick: (i) => o.handleWeatherLayerCollect(a)
|
|
@@ -476,15 +476,15 @@ function T1(z, M, b, O, p, o) {
|
|
|
476
476
|
"onUpdate:modelValue": M[16] || (M[16] = (a) => p.source = a),
|
|
477
477
|
class: "layer-radio flex-col-center-start"
|
|
478
478
|
}, {
|
|
479
|
-
default:
|
|
479
|
+
default: A0(() => [
|
|
480
480
|
T(t, { value: "GFS" }, {
|
|
481
|
-
default:
|
|
481
|
+
default: A0(() => M[27] || (M[27] = [
|
|
482
482
|
b0("GFS")
|
|
483
483
|
])),
|
|
484
484
|
_: 1
|
|
485
485
|
}),
|
|
486
486
|
T(t, { value: "CMEMS" }, {
|
|
487
|
-
default:
|
|
487
|
+
default: A0(() => M[28] || (M[28] = [
|
|
488
488
|
b0("CMEMS")
|
|
489
489
|
])),
|
|
490
490
|
_: 1
|
|
@@ -501,7 +501,7 @@ function T1(z, M, b, O, p, o) {
|
|
|
501
501
|
], 4)
|
|
502
502
|
]);
|
|
503
503
|
}
|
|
504
|
-
const w1 = /* @__PURE__ */
|
|
504
|
+
const w1 = /* @__PURE__ */ I($0, [["render", T1]]);
|
|
505
505
|
const C1 = {
|
|
506
506
|
name: "IdmWindBarb",
|
|
507
507
|
props: {
|
|
@@ -652,9 +652,9 @@ const C1 = {
|
|
|
652
652
|
}, _1 = { key: 0 };
|
|
653
653
|
function x1(z, M, b, O, p, o) {
|
|
654
654
|
var e;
|
|
655
|
-
return (e = b.wind) != null && e.active ? (l(), f("div", _1)) :
|
|
655
|
+
return (e = b.wind) != null && e.active ? (l(), f("div", _1)) : F("", !0);
|
|
656
656
|
}
|
|
657
|
-
const S1 = /* @__PURE__ */
|
|
657
|
+
const S1 = /* @__PURE__ */ I(C1, [["render", x1]]);
|
|
658
658
|
class E0 {
|
|
659
659
|
constructor(M) {
|
|
660
660
|
V(this, "map");
|
|
@@ -879,7 +879,7 @@ class T0 {
|
|
|
879
879
|
}
|
|
880
880
|
const n = M.getBoundPixel(), h = M.map.getZoom() + 1, u = M.getWorldCopy(n, h);
|
|
881
881
|
for (const d of u) {
|
|
882
|
-
const m = (d[0] - n[0]) * M.ratio, R = (d[1] - n[3]) * M.ratio,
|
|
882
|
+
const m = (d[0] - n[0]) * M.ratio, R = (d[1] - n[3]) * M.ratio, X = d[2] * M.ratio, [x, g, U, y] = [m, X + m, R, X + R], C = new Float32Array([x, U, g, U, x, y, x, y, g, U, g, y]);
|
|
883
883
|
b.bindBuffer(b.ARRAY_BUFFER, e), b.bufferData(b.ARRAY_BUFFER, C, b.STATIC_DRAW), b.drawArrays(b.TRIANGLES, 0, 6);
|
|
884
884
|
}
|
|
885
885
|
} catch (a) {
|
|
@@ -928,10 +928,10 @@ class T0 {
|
|
|
928
928
|
});
|
|
929
929
|
}
|
|
930
930
|
}
|
|
931
|
-
class
|
|
931
|
+
class e0 {
|
|
932
932
|
}
|
|
933
933
|
// 顶点渲染
|
|
934
|
-
V(
|
|
934
|
+
V(e0, "vertexSchema", `
|
|
935
935
|
//canvas 坐标系上的坐标 (x, y)
|
|
936
936
|
attribute vec2 a_position; //像素坐标
|
|
937
937
|
attribute vec2 a_texCoord; //纹理坐标
|
|
@@ -946,7 +946,7 @@ V(O0, "vertexSchema", `
|
|
|
946
946
|
gl_Position = vec4(position * vec2(1, -1), 0.0, 1.0);
|
|
947
947
|
v_texCoord = a_texCoord;
|
|
948
948
|
}`), // 类如风、流等u v双变量片元渲染
|
|
949
|
-
V(
|
|
949
|
+
V(e0, "uvFragmentSchema", `
|
|
950
950
|
precision mediump float;
|
|
951
951
|
uniform sampler2D u_image;
|
|
952
952
|
uniform vec2 u_range_u_v;
|
|
@@ -965,7 +965,7 @@ V(O0, "uvFragmentSchema", `
|
|
|
965
965
|
|
|
966
966
|
gl_FragColor = color;
|
|
967
967
|
}`), // 类如浪、气压等单变量片元渲染
|
|
968
|
-
V(
|
|
968
|
+
V(e0, "fragmentSchema", `
|
|
969
969
|
precision mediump float;
|
|
970
970
|
uniform sampler2D u_image; // 灰度
|
|
971
971
|
uniform sampler2D u_color; // 色值映射
|
|
@@ -976,9 +976,9 @@ V(O0, "fragmentSchema", `
|
|
|
976
976
|
vec4 color = texture2D(u_color, vec2(rgba.r, 0));
|
|
977
977
|
gl_FragColor = color;
|
|
978
978
|
}`);
|
|
979
|
-
class
|
|
979
|
+
class q0 {
|
|
980
980
|
}
|
|
981
|
-
V(
|
|
981
|
+
V(q0, "vertexSchema", `
|
|
982
982
|
precision mediump float;
|
|
983
983
|
|
|
984
984
|
attribute float a_index; // 索引
|
|
@@ -1002,7 +1002,7 @@ V(t0, "vertexSchema", `
|
|
|
1002
1002
|
gl_PointSize = 1.0;
|
|
1003
1003
|
// gl_PointSize = u_point;
|
|
1004
1004
|
gl_Position = vec4(2.0 * v_particle_pos.x - 1.0, 1.0 - 2.0 * v_particle_pos.y, 0, 1);
|
|
1005
|
-
}`), V(
|
|
1005
|
+
}`), V(q0, "fragmentSchema", `
|
|
1006
1006
|
precision mediump float;
|
|
1007
1007
|
|
|
1008
1008
|
uniform sampler2D u_factor;
|
|
@@ -1024,7 +1024,7 @@ V(t0, "vertexSchema", `
|
|
|
1024
1024
|
|
|
1025
1025
|
float f = 1.0 - uv.b;
|
|
1026
1026
|
gl_FragColor = texture2D(u_color_ramp, ramp_pos) * f;
|
|
1027
|
-
}`), V(
|
|
1027
|
+
}`), V(q0, "quadVertSchema", `
|
|
1028
1028
|
precision mediump float;
|
|
1029
1029
|
|
|
1030
1030
|
attribute vec2 a_pos;
|
|
@@ -1034,7 +1034,7 @@ V(t0, "vertexSchema", `
|
|
|
1034
1034
|
void main() {
|
|
1035
1035
|
v_tex_pos = a_pos;
|
|
1036
1036
|
gl_Position = vec4(1.0 - 2.0 * a_pos, 0, 1);
|
|
1037
|
-
}`), V(
|
|
1037
|
+
}`), V(q0, "screenFragmentSchema", `
|
|
1038
1038
|
precision mediump float;
|
|
1039
1039
|
|
|
1040
1040
|
uniform sampler2D u_screen;
|
|
@@ -1046,7 +1046,7 @@ V(t0, "vertexSchema", `
|
|
|
1046
1046
|
vec4 color = texture2D(u_screen, 1.0 - v_tex_pos);
|
|
1047
1047
|
// a hack to guarantee opacity fade out even with a value close to 1.0
|
|
1048
1048
|
gl_FragColor = vec4(floor(255.0 * color * u_opacity) / 255.0);
|
|
1049
|
-
}`), V(
|
|
1049
|
+
}`), V(q0, "updateFragmentSchema", `
|
|
1050
1050
|
precision mediump float;
|
|
1051
1051
|
|
|
1052
1052
|
uniform sampler2D u_particles;
|
|
@@ -2843,7 +2843,7 @@ const P1 = {
|
|
|
2843
2843
|
[1, "rgb(91, 136, 161)"]
|
|
2844
2844
|
];
|
|
2845
2845
|
this.rampColor = this.webgl.setup(this.context, z);
|
|
2846
|
-
const { program: M, aPositionBuffer: b } = this.webgl.bind(this.context,
|
|
2846
|
+
const { program: M, aPositionBuffer: b } = this.webgl.bind(this.context, e0.vertexSchema, e0.uvFragmentSchema);
|
|
2847
2847
|
this.program = M, this.aPositionBuffer = b;
|
|
2848
2848
|
}
|
|
2849
2849
|
this.handleParticleSetup();
|
|
@@ -2857,11 +2857,11 @@ const P1 = {
|
|
|
2857
2857
|
];
|
|
2858
2858
|
this.wrapper = this.webgl.bindParticle(
|
|
2859
2859
|
this.particleContext,
|
|
2860
|
-
|
|
2861
|
-
|
|
2862
|
-
|
|
2863
|
-
|
|
2864
|
-
|
|
2860
|
+
q0.vertexSchema,
|
|
2861
|
+
q0.fragmentSchema,
|
|
2862
|
+
q0.quadVertSchema,
|
|
2863
|
+
q0.screenFragmentSchema,
|
|
2864
|
+
q0.updateFragmentSchema
|
|
2865
2865
|
), this.wrapper.color = this.webgl.setup(this.particleContext, z, !0, 16, 16), this.wrapper = { ...this.wrapper, ...this.webgl.setupParticle(this.particleContext, 9e3), ...this.webgl.resize(this.viewport, this.particleContext) }, this.viewport.map.on("resize", this.handleResize), this.viewport.map.on("movestart", this.handlePause), this.viewport.map.on("moveend", this.handlePlay);
|
|
2866
2866
|
}
|
|
2867
2867
|
},
|
|
@@ -2897,7 +2897,7 @@ function D1(z, M, b, O, p, o) {
|
|
|
2897
2897
|
return (e = b.factor) != null && e.active ? (l(), f("div", k1, [
|
|
2898
2898
|
c("div", {
|
|
2899
2899
|
class: "legend-bars flex-center",
|
|
2900
|
-
style:
|
|
2900
|
+
style: o0([{ position: "absolute" }, { right: p.right + "px", bottom: b.bottom }])
|
|
2901
2901
|
}, M[0] || (M[0] = [
|
|
2902
2902
|
c("span", null, "kts", -1),
|
|
2903
2903
|
c("span", null, "0", -1),
|
|
@@ -2908,9 +2908,9 @@ function D1(z, M, b, O, p, o) {
|
|
|
2908
2908
|
c("span", null, "40", -1),
|
|
2909
2909
|
c("span", null, "60", -1)
|
|
2910
2910
|
]), 4)
|
|
2911
|
-
])) :
|
|
2911
|
+
])) : F("", !0);
|
|
2912
2912
|
}
|
|
2913
|
-
const I1 = /* @__PURE__ */
|
|
2913
|
+
const I1 = /* @__PURE__ */ I(P1, [["render", D1], ["__scopeId", "data-v-14070127"]]);
|
|
2914
2914
|
const j1 = {
|
|
2915
2915
|
name: "IdmCurrent",
|
|
2916
2916
|
props: {
|
|
@@ -3067,9 +3067,9 @@ const j1 = {
|
|
|
3067
3067
|
}, U1 = { key: 0 };
|
|
3068
3068
|
function F1(z, M, b, O, p, o) {
|
|
3069
3069
|
var e;
|
|
3070
|
-
return (e = b.current) != null && e.active ? (l(), f("div", U1)) :
|
|
3070
|
+
return (e = b.current) != null && e.active ? (l(), f("div", U1)) : F("", !0);
|
|
3071
3071
|
}
|
|
3072
|
-
const H1 = /* @__PURE__ */
|
|
3072
|
+
const H1 = /* @__PURE__ */ I(j1, [["render", F1]]);
|
|
3073
3073
|
const G1 = {
|
|
3074
3074
|
name: "IdmCurrentParticle",
|
|
3075
3075
|
props: {
|
|
@@ -3175,7 +3175,7 @@ const G1 = {
|
|
|
3175
3175
|
[1, "rgb(195,194,194)"]
|
|
3176
3176
|
];
|
|
3177
3177
|
this.rampColor = this.webgl.setup(this.context, z);
|
|
3178
|
-
const { program: M, aPositionBuffer: b } = this.webgl.bind(this.context,
|
|
3178
|
+
const { program: M, aPositionBuffer: b } = this.webgl.bind(this.context, e0.vertexSchema, e0.uvFragmentSchema);
|
|
3179
3179
|
this.program = M, this.aPositionBuffer = b;
|
|
3180
3180
|
}
|
|
3181
3181
|
this.handleParticleSetup();
|
|
@@ -3189,11 +3189,11 @@ const G1 = {
|
|
|
3189
3189
|
];
|
|
3190
3190
|
this.wrapper = this.webgl.bindParticle(
|
|
3191
3191
|
this.particleContext,
|
|
3192
|
-
|
|
3193
|
-
|
|
3194
|
-
|
|
3195
|
-
|
|
3196
|
-
|
|
3192
|
+
q0.vertexSchema,
|
|
3193
|
+
q0.fragmentSchema,
|
|
3194
|
+
q0.quadVertSchema,
|
|
3195
|
+
q0.screenFragmentSchema,
|
|
3196
|
+
q0.updateFragmentSchema
|
|
3197
3197
|
), this.wrapper.color = this.webgl.setup(this.particleContext, z, !0, 16, 16), this.wrapper = {
|
|
3198
3198
|
...this.wrapper,
|
|
3199
3199
|
...this.webgl.setupParticle(this.particleContext, 12e3),
|
|
@@ -3233,7 +3233,7 @@ function K1(z, M, b, O, p, o) {
|
|
|
3233
3233
|
return (e = b.factor) != null && e.active ? (l(), f("div", V1, [
|
|
3234
3234
|
c("div", {
|
|
3235
3235
|
class: "legend-bars flex-center",
|
|
3236
|
-
style:
|
|
3236
|
+
style: o0([{ position: "absolute" }, { right: p.right + "px", bottom: b.bottom }])
|
|
3237
3237
|
}, M[0] || (M[0] = [
|
|
3238
3238
|
c("span", null, "kts", -1),
|
|
3239
3239
|
c("span", null, "0", -1),
|
|
@@ -3243,9 +3243,9 @@ function K1(z, M, b, O, p, o) {
|
|
|
3243
3243
|
c("span", null, "2", -1),
|
|
3244
3244
|
c("span", null, "3.2", -1)
|
|
3245
3245
|
]), 4)
|
|
3246
|
-
])) :
|
|
3246
|
+
])) : F("", !0);
|
|
3247
3247
|
}
|
|
3248
|
-
const J1 = /* @__PURE__ */
|
|
3248
|
+
const J1 = /* @__PURE__ */ I(G1, [["render", K1], ["__scopeId", "data-v-163d1f9a"]]), Q1 = {
|
|
3249
3249
|
name: "IdmSigWave",
|
|
3250
3250
|
props: {
|
|
3251
3251
|
map: {
|
|
@@ -3367,7 +3367,7 @@ const J1 = /* @__PURE__ */ D(G1, [["render", K1], ["__scopeId", "data-v-163d1f9a
|
|
|
3367
3367
|
function $1(z, M, b, O, p, o) {
|
|
3368
3368
|
return l(), f("div");
|
|
3369
3369
|
}
|
|
3370
|
-
const Z1 = /* @__PURE__ */
|
|
3370
|
+
const Z1 = /* @__PURE__ */ I(Q1, [["render", $1]]), Y1 = {
|
|
3371
3371
|
name: "IdmSwell",
|
|
3372
3372
|
props: {
|
|
3373
3373
|
map: {
|
|
@@ -3525,7 +3525,7 @@ const Z1 = /* @__PURE__ */ D(Q1, [["render", $1]]), Y1 = {
|
|
|
3525
3525
|
function M2(z, M, b, O, p, o) {
|
|
3526
3526
|
return l(), f("div");
|
|
3527
3527
|
}
|
|
3528
|
-
const b2 = /* @__PURE__ */
|
|
3528
|
+
const b2 = /* @__PURE__ */ I(Y1, [["render", M2]]), z2 = {
|
|
3529
3529
|
name: "IdmPrmsl",
|
|
3530
3530
|
props: {
|
|
3531
3531
|
map: {
|
|
@@ -3665,7 +3665,7 @@ const b2 = /* @__PURE__ */ D(Y1, [["render", M2]]), z2 = {
|
|
|
3665
3665
|
function p2(z, M, b, O, p, o) {
|
|
3666
3666
|
return l(), f("div");
|
|
3667
3667
|
}
|
|
3668
|
-
const O2 = /* @__PURE__ */
|
|
3668
|
+
const O2 = /* @__PURE__ */ I(z2, [["render", p2]]), o2 = {
|
|
3669
3669
|
name: "IdmIceberg",
|
|
3670
3670
|
props: {
|
|
3671
3671
|
map: {
|
|
@@ -3725,7 +3725,7 @@ const O2 = /* @__PURE__ */ D(z2, [["render", p2]]), o2 = {
|
|
|
3725
3725
|
function c2(z, M, b, O, p, o) {
|
|
3726
3726
|
return l(), f("div");
|
|
3727
3727
|
}
|
|
3728
|
-
const e2 = /* @__PURE__ */
|
|
3728
|
+
const e2 = /* @__PURE__ */ I(o2, [["render", c2]]);
|
|
3729
3729
|
const A2 = {
|
|
3730
3730
|
name: "IdmTropicals",
|
|
3731
3731
|
props: {
|
|
@@ -3774,7 +3774,7 @@ const A2 = {
|
|
|
3774
3774
|
computeTime() {
|
|
3775
3775
|
return function(z) {
|
|
3776
3776
|
if (z) {
|
|
3777
|
-
const M =
|
|
3777
|
+
const M = H(z).utc().utcOffset(this.timeZone), b = this.timeZone < 0 ? this.timeZone : "+" + this.timeZone;
|
|
3778
3778
|
return `${M.format("MMM-DD,HHmm")}[ UTC ${b} ] ( ${M == null ? void 0 : M.fromNow()} )`;
|
|
3779
3779
|
}
|
|
3780
3780
|
return "-";
|
|
@@ -3811,7 +3811,7 @@ const A2 = {
|
|
|
3811
3811
|
methods: {
|
|
3812
3812
|
handleRefresh() {
|
|
3813
3813
|
var O, p;
|
|
3814
|
-
const z = ((p = (O = this.tropicals) == null ? void 0 : O.data) == null ? void 0 : p.features) || [], M =
|
|
3814
|
+
const z = ((p = (O = this.tropicals) == null ? void 0 : O.data) == null ? void 0 : p.features) || [], M = H().utc().hour(), b = [];
|
|
3815
3815
|
z.forEach((o) => {
|
|
3816
3816
|
var e, t, q;
|
|
3817
3817
|
(e = o.properties) != null && e.name && !b.includes((t = o.properties) == null ? void 0 : t.name) && b.push((q = o.properties) == null ? void 0 : q.name);
|
|
@@ -3830,10 +3830,10 @@ const A2 = {
|
|
|
3830
3830
|
((L = a.geometry) == null ? void 0 : L.type) === "Point" && ((n = a.properties) == null ? void 0 : n.type) === "history" && (e = i, t = t === void 0 ? i : t), ((h = a.geometry) == null ? void 0 : h.type) === "Point" && ((u = a.properties) == null ? void 0 : u.type) === "forecast" && t === void 0 && (t = i), ((d = a.geometry) == null ? void 0 : d.type) === "LineString" && ((m = a.properties) == null || m.type);
|
|
3831
3831
|
}), q.map((a, i) => {
|
|
3832
3832
|
var L, n, h, u, d, m, R;
|
|
3833
|
-
if (((L = a.geometry) == null ? void 0 : L.type) === "LineString" && ((n = a.properties) == null || n.type), ((h = a.geometry) == null ? void 0 : h.type) === "Point" && ((u = a.properties) == null ? void 0 : u.type) === "forecast" && (a.properties.name = o, a.properties.format =
|
|
3834
|
-
a.properties.format =
|
|
3835
|
-
const
|
|
3836
|
-
a.properties.showHistoryLabel =
|
|
3833
|
+
if (((L = a.geometry) == null ? void 0 : L.type) === "LineString" && ((n = a.properties) == null || n.type), ((h = a.geometry) == null ? void 0 : h.type) === "Point" && ((u = a.properties) == null ? void 0 : u.type) === "forecast" && (a.properties.name = o, a.properties.format = H(a.properties.date).utcOffset(this.timeZone).format(`MMM-DD,HHmm [(utc ${this.computeTimezone})]`)), ((d = a.geometry) == null ? void 0 : d.type) === "Point" && ((m = a.properties) == null ? void 0 : m.type) === "history") {
|
|
3834
|
+
a.properties.format = H(a.properties.date).utcOffset(this.timeZone).format(`MMM-DD,HHmm [(utc ${this.computeTimezone})]`);
|
|
3835
|
+
const X = H((R = a.properties) == null ? void 0 : R.date).utc().format("HHmm") === H().utc().hour(Math.floor(M / 6) * 6).minute("00").format("HHmm");
|
|
3836
|
+
a.properties.showHistoryLabel = X || i === e, a.properties.showNameLabel = i === e, a.properties.name = o;
|
|
3837
3837
|
}
|
|
3838
3838
|
return a;
|
|
3839
3839
|
});
|
|
@@ -4105,14 +4105,14 @@ const A2 = {
|
|
|
4105
4105
|
this.map && (this.map.getLayer(this.historyLayer) && this.map.removeLayer(this.historyLayer), this.map.getLayer(this.forecastLayer) && this.map.removeLayer(this.forecastLayer), this.map.getLayer(this.forecastModelLayer) && this.map.removeLayer(this.forecastModelLayer), this.map.getLayer(this.forecastNameLayer) && this.map.removeLayer(this.forecastNameLayer), this.map.getLayer(this.pointCircleLayer) && this.map.removeLayer(this.pointCircleLayer), this.map.getLayer(this.pointCircleLayer + "-border") && this.map.removeLayer(this.pointCircleLayer + "-border"), this.map.getLayer(this.pointLabelLayer) && this.map.removeLayer(this.pointLabelLayer), this.map.getLayer(this.historyPointCircleLayer) && this.map.removeLayer(this.historyPointCircleLayer), this.map.getLayer(this.historyPointCircleLayer + "-border") && this.map.removeLayer(this.historyPointCircleLayer + "-border"), this.map.getLayer(this.historyPointCircleLayer + "-inner") && this.map.removeLayer(this.historyPointCircleLayer + "-inner"), this.map.getLayer(this.historyPointLabelLayer) && this.map.removeLayer(this.historyPointLabelLayer), this.map.getLayer(this.interpolateLineLayer) && this.map.removeLayer(this.interpolateLineLayer), (z = this.interpolateMarkers) == null || z.forEach((M) => M == null ? void 0 : M.remove()), this.map.getSource(this.source) && this.map.removeSource(this.source), this.map.getSource(this.clusterSource) && this.map.removeSource(this.clusterSource), this.map.getSource(this.interpolateSource) && this.map.removeSource(this.interpolateSource), this.map.getLayer(this.circleLayer) && this.map.removeLayer(this.circleLayer), this.map.getSource(this.circleSource) && this.map.removeSource(this.circleSource));
|
|
4106
4106
|
},
|
|
4107
4107
|
handleDateChange() {
|
|
4108
|
-
var z, M, b, O, p, o, e, t, q, r, a, i, L, n, h, u, d, m, R,
|
|
4109
|
-
if ((z = this.interpolateMarkers) == null || z.forEach((
|
|
4110
|
-
const
|
|
4111
|
-
|
|
4112
|
-
|
|
4113
|
-
}), (b = this.map) != null && b.getSource(this.interpolateSource) ? (O = this.map) == null || O.getSource(this.interpolateSource).setData(
|
|
4108
|
+
var z, M, b, O, p, o, e, t, q, r, a, i, L, n, h, u, d, m, R, X, x, g, U, y, C, Z, Y, i0, L0, R0, r0, f0, O0, h0, m0, d0;
|
|
4109
|
+
if ((z = this.interpolateMarkers) == null || z.forEach((n0) => n0 == null ? void 0 : n0.remove()), this.circleSourceData.features = [], (M = this.interpolateData) != null && M.length && this.tropicals.active) {
|
|
4110
|
+
const n0 = H(this.date).utc().set({ minute: 0, second: 0, millisecond: 0 }), W0 = this.interpolateData.filter((k) => k.properties.date === n0.format() && !k.properties.disabled), N0 = this.handleComputePolygons(W0), s0 = w.featureCollection([...W0]);
|
|
4111
|
+
N0.forEach((k) => {
|
|
4112
|
+
s0.features.push(k);
|
|
4113
|
+
}), (b = this.map) != null && b.getSource(this.interpolateSource) ? (O = this.map) == null || O.getSource(this.interpolateSource).setData(s0) : ((p = this.map) == null || p.addSource(this.interpolateSource, {
|
|
4114
4114
|
type: "geojson",
|
|
4115
|
-
data:
|
|
4115
|
+
data: s0
|
|
4116
4116
|
}), (o = this.map) == null || o.addLayer({
|
|
4117
4117
|
id: this.interpolateLineLayer,
|
|
4118
4118
|
type: "line",
|
|
@@ -4124,17 +4124,17 @@ const A2 = {
|
|
|
4124
4124
|
"line-width": 1
|
|
4125
4125
|
}
|
|
4126
4126
|
})), this.interpolateMarkers = [];
|
|
4127
|
-
for (const
|
|
4128
|
-
if (!
|
|
4129
|
-
let
|
|
4130
|
-
((t = (e =
|
|
4131
|
-
const
|
|
4127
|
+
for (const k of W0)
|
|
4128
|
+
if (!k.properties.disabled) {
|
|
4129
|
+
let z0 = "#f44336";
|
|
4130
|
+
((t = (e = k.properties) == null ? void 0 : e.wind) == null ? void 0 : t.spd) < 17.2 || !((r = (q = k.properties) == null ? void 0 : q.wind) != null && r.spd) ? z0 = "#03f869" : ((i = (a = k.properties) == null ? void 0 : a.wind) == null ? void 0 : i.spd) >= 17.2 && ((n = (L = k.properties) == null ? void 0 : L.wind) == null ? void 0 : n.spd) < 24.5 ? z0 = "#f2f202" : ((u = (h = k.properties) == null ? void 0 : h.wind) == null ? void 0 : u.spd) >= 24.5 && ((m = (d = k.properties) == null ? void 0 : d.wind) == null ? void 0 : m.spd) < 32.7 ? z0 = "#ff9100" : ((X = (R = k.properties) == null ? void 0 : R.wind) == null ? void 0 : X.spd) >= 32.7 && ((g = (x = k.properties) == null ? void 0 : x.wind) == null ? void 0 : g.spd) < 41.5 ? z0 = "#f44336" : ((y = (U = k.properties) == null ? void 0 : U.wind) == null ? void 0 : y.spd) >= 41.5 && ((Z = (C = k.properties) == null ? void 0 : C.wind) == null ? void 0 : Z.spd) < 51 ? z0 = "#f903d0" : ((i0 = (Y = k.properties) == null ? void 0 : Y.wind) == null ? void 0 : i0.spd) >= 51 ? z0 = "#8702f9" : z0 = "#f44336";
|
|
4131
|
+
const t0 = `<svg t="1719918955501"
|
|
4132
4132
|
class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="18382"
|
|
4133
4133
|
xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
|
|
4134
4134
|
<path
|
|
4135
4135
|
d="M515.17000001 169.34666667c41-77.73 95.33-96 95.33-96-240 0-434.5 194.53-434.5 434.5 0 186.47 150.78 337.7 337.06 338.48C472.11000001 923.66666667 418.00000001 941.83666667 418.00000001 941.83666667c240 0 434.5-194.54 434.5-434.5l0.5 0.5C853.00000001 321.10666667 701.81000001 169.66666667 515.17000001 169.34666667z m-0.67 468A129.5 129.5 0 1 1 644.00000001 507.83666667a129.5 129.5 0 0 1-129.5 129.5z"
|
|
4136
|
-
fill="${
|
|
4137
|
-
<path d="M514.50000001 507.83666667m-129.5 0a129.5 129.5 0 1 0 259 0 129.5 129.5 0 1 0-259 0Z" fill="${
|
|
4136
|
+
fill="${z0}" p-id="18383"></path>
|
|
4137
|
+
<path d="M514.50000001 507.83666667m-129.5 0a129.5 129.5 0 1 0 259 0 129.5 129.5 0 1 0-259 0Z" fill="${z0}"
|
|
4138
4138
|
p-id="18384"></path>
|
|
4139
4139
|
<path
|
|
4140
4140
|
d="M517.16666667 654.67c-80.23 0-145.5-65.27-145.5-145.5s65.27-145.5 145.5-145.5S662.66666667 428.94 662.66666667 509.17s-65.27 145.5-145.5 145.5z m0-259A113.5 113.5 0 1 0 630.66666667 509.17a113.63 113.63 0 0 0-113.5-113.5z"
|
|
@@ -4142,23 +4142,23 @@ const A2 = {
|
|
|
4142
4142
|
<path
|
|
4143
4143
|
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"
|
|
4144
4144
|
fill="#ffffff" p-id="18386"></path>
|
|
4145
|
-
</svg>`,
|
|
4146
|
-
|
|
4147
|
-
const
|
|
4148
|
-
if (this.interpolateMarkers.push(
|
|
4149
|
-
const
|
|
4150
|
-
(
|
|
4151
|
-
w.circle(
|
|
4152
|
-
), (
|
|
4153
|
-
w.circle(
|
|
4154
|
-
), (
|
|
4155
|
-
w.circle(
|
|
4145
|
+
</svg>`, E = document.createElement("div");
|
|
4146
|
+
E.className = "hurricane-hourly-marker", E.innerHTML = `<div class="${k.geometry.coordinates[1] >= 0 ? "center north" : "center south"}">${t0}</div>`;
|
|
4147
|
+
const p0 = new g0.Marker(E).setLngLat(k.geometry.coordinates).addTo(this.map);
|
|
4148
|
+
if (this.interpolateMarkers.push(p0), (L0 = k.properties) != null && L0.showCircle) {
|
|
4149
|
+
const l0 = { radius: 100, coordinates: k.geometry.coordinates }, c0 = { radius: 200, coordinates: k.geometry.coordinates }, u0 = { radius: 500, coordinates: k.geometry.coordinates };
|
|
4150
|
+
(R0 = this.circleSourceData) == null || R0.features.push(
|
|
4151
|
+
w.circle(l0.coordinates, l0.radius, { steps: 100, units: "kilometers", properties: { type: "tropicalCircle" } })
|
|
4152
|
+
), (r0 = this.circleSourceData) == null || r0.features.push(
|
|
4153
|
+
w.circle(c0.coordinates, c0.radius, { steps: 100, units: "kilometers", properties: { type: "tropicalCircle" } })
|
|
4154
|
+
), (f0 = this.circleSourceData) == null || f0.features.push(
|
|
4155
|
+
w.circle(u0.coordinates, u0.radius, { steps: 100, units: "kilometers", properties: { type: "tropicalCircle" } })
|
|
4156
4156
|
);
|
|
4157
4157
|
}
|
|
4158
|
-
(
|
|
4158
|
+
(h0 = (O0 = this.map) == null ? void 0 : O0.getSource(this.circleSource)) == null || h0.setData(this.circleSourceData);
|
|
4159
4159
|
}
|
|
4160
4160
|
} else
|
|
4161
|
-
(
|
|
4161
|
+
(m0 = this.map) != null && m0.getSource(this.interpolateSource) && ((d0 = this.map) == null || d0.getSource(this.interpolateSource).setData(this.empty));
|
|
4162
4162
|
},
|
|
4163
4163
|
handleClick(z) {
|
|
4164
4164
|
var o, e, t, q, r, a, i, L;
|
|
@@ -4185,7 +4185,7 @@ const A2 = {
|
|
|
4185
4185
|
showCircle: (L = (i = b[0]) == null ? void 0 : i.properties) == null ? void 0 : L.showCircle
|
|
4186
4186
|
}, this.showTropicals = !0;
|
|
4187
4187
|
const p = document.getElementById("active-tropical");
|
|
4188
|
-
this.activeTropicalsMarker ? this.activeTropicalsMarker.setLngLat([z.lngLat.lng, z.lngLat.lat]) : this.activeTropicalsMarker = new
|
|
4188
|
+
this.activeTropicalsMarker ? this.activeTropicalsMarker.setLngLat([z.lngLat.lng, z.lngLat.lat]) : this.activeTropicalsMarker = new g0.Marker(p).setLngLat([z.lngLat.lng, z.lngLat.lat]).setOffset([220, 0]).addTo(this.map);
|
|
4189
4189
|
},
|
|
4190
4190
|
handleForecastToggle(z) {
|
|
4191
4191
|
var O, p, o, e, t, q;
|
|
@@ -4287,18 +4287,18 @@ const A2 = {
|
|
|
4287
4287
|
style: { "justify-content": "flex-start" }
|
|
4288
4288
|
}, L2 = { class: "forecast-models" }, R2 = ["onClick"], h2 = { class: "more" };
|
|
4289
4289
|
function m2(z, M, b, O, p, o) {
|
|
4290
|
-
var e, t, q, r, a, i, L, n, h, u, d, m, R,
|
|
4290
|
+
var e, t, q, r, a, i, L, n, h, u, d, m, R, X, x;
|
|
4291
4291
|
return X0((l(), f("div", t2, [
|
|
4292
4292
|
c("div", a2, [
|
|
4293
4293
|
c("div", {
|
|
4294
4294
|
class: "iconfont close-btn",
|
|
4295
|
-
onClick: M[0] || (M[0] = (
|
|
4295
|
+
onClick: M[0] || (M[0] = (g) => p.showTropicals = !1)
|
|
4296
4296
|
}, ""),
|
|
4297
4297
|
c("div", q2, [
|
|
4298
|
-
(t = (e = p.activeTropicals) == null ? void 0 : e.history) != null && t.level ? (l(), f("span", i2, _((r = (q = p.activeTropicals) == null ? void 0 : q.history) == null ? void 0 : r.level) + " , ", 1)) :
|
|
4298
|
+
(t = (e = p.activeTropicals) == null ? void 0 : e.history) != null && t.level ? (l(), f("span", i2, _((r = (q = p.activeTropicals) == null ? void 0 : q.history) == null ? void 0 : r.level) + " , ", 1)) : F("", !0),
|
|
4299
4299
|
b0(_((a = p.activeTropicals) == null ? void 0 : a.name), 1)
|
|
4300
4300
|
]),
|
|
4301
|
-
c("div", r2, " Last update: " + _(o.computeTime(((L = (i = p.activeTropicals) == null ? void 0 : i.history) == null ? void 0 : L.updated) || ((u = (h = (n = p.activeTropicals) == null ? void 0 : n.forecasts) == null ? void 0 : h.filter((
|
|
4301
|
+
c("div", r2, " Last update: " + _(o.computeTime(((L = (i = p.activeTropicals) == null ? void 0 : i.history) == null ? void 0 : L.updated) || ((u = (h = (n = p.activeTropicals) == null ? void 0 : n.forecasts) == null ? void 0 : h.filter((g) => !g.disabled)[0]) == null ? void 0 : u.date))), 1)
|
|
4302
4302
|
]),
|
|
4303
4303
|
c("div", n2, [
|
|
4304
4304
|
c("div", d2, [
|
|
@@ -4309,27 +4309,27 @@ function m2(z, M, b, O, p, o) {
|
|
|
4309
4309
|
]),
|
|
4310
4310
|
c("div", l2, [
|
|
4311
4311
|
M[3] || (M[3] = c("label", null, "Pressure : ", -1)),
|
|
4312
|
-
c("span", null, _(((
|
|
4312
|
+
c("span", null, _(((X = (R = p.activeTropicals) == null ? void 0 : R.history) == null ? void 0 : X.pressure) || "-") + "[hPa]", 1)
|
|
4313
4313
|
])
|
|
4314
4314
|
]),
|
|
4315
4315
|
c("div", f2, [
|
|
4316
4316
|
c("div", u2, [
|
|
4317
4317
|
M[4] || (M[4] = c("label", { style: { width: "max-content" } }, "Forecast Models : ", -1)),
|
|
4318
4318
|
c("div", L2, [
|
|
4319
|
-
(l(!0), f(K, null, $((x = p.activeTropicals) == null ? void 0 : x.forecasts, (
|
|
4320
|
-
var
|
|
4319
|
+
(l(!0), f(K, null, $((x = p.activeTropicals) == null ? void 0 : x.forecasts, (g, U) => {
|
|
4320
|
+
var y, C, Z, Y;
|
|
4321
4321
|
return l(), f("div", {
|
|
4322
|
-
key:
|
|
4322
|
+
key: U,
|
|
4323
4323
|
class: J([
|
|
4324
4324
|
"model",
|
|
4325
|
-
|
|
4326
|
-
|
|
4325
|
+
g.disabled ? "" : "active",
|
|
4326
|
+
U > 0 && U < ((C = (y = p.activeTropicals) == null ? void 0 : y.forecasts) == null ? void 0 : C.length) - 1 && ((Y = (Z = p.activeTropicals) == null ? void 0 : Z.forecasts) == null ? void 0 : Y.length) > 2 ? "center-child" : ""
|
|
4327
4327
|
]),
|
|
4328
|
-
onClick: (
|
|
4328
|
+
onClick: (i0) => o.handleForecastToggle(g)
|
|
4329
4329
|
}, [
|
|
4330
4330
|
c("span", {
|
|
4331
|
-
class: J(
|
|
4332
|
-
}, _(
|
|
4331
|
+
class: J(g.model)
|
|
4332
|
+
}, _(g.model), 3)
|
|
4333
4333
|
], 10, R2);
|
|
4334
4334
|
}), 128))
|
|
4335
4335
|
])
|
|
@@ -4340,7 +4340,7 @@ function m2(z, M, b, O, p, o) {
|
|
|
4340
4340
|
c("div", h2, [
|
|
4341
4341
|
c("div", {
|
|
4342
4342
|
class: "button",
|
|
4343
|
-
onClick: M[1] || (M[1] = (
|
|
4343
|
+
onClick: M[1] || (M[1] = (g) => o.handleStrikeProbability(p.activeTropicals))
|
|
4344
4344
|
}, "Strike Probability >>")
|
|
4345
4345
|
])
|
|
4346
4346
|
])
|
|
@@ -4348,7 +4348,7 @@ function m2(z, M, b, O, p, o) {
|
|
|
4348
4348
|
[v0, p.showTropicals && !z.$attrs.hideTropicalsLegend]
|
|
4349
4349
|
]);
|
|
4350
4350
|
}
|
|
4351
|
-
const j0 = /* @__PURE__ */
|
|
4351
|
+
const j0 = /* @__PURE__ */ I(A2, [["render", m2], ["__scopeId", "data-v-44a4e671"]]);
|
|
4352
4352
|
const N2 = {
|
|
4353
4353
|
name: "IdmPrecip3h",
|
|
4354
4354
|
props: {
|
|
@@ -4437,7 +4437,7 @@ const N2 = {
|
|
|
4437
4437
|
[1, "rgba(197,5,58,0.8)"]
|
|
4438
4438
|
];
|
|
4439
4439
|
this.rampColor = this.webgl.setup(this.context, z);
|
|
4440
|
-
const { program: M, aPositionBuffer: b } = this.webgl.bind(this.context,
|
|
4440
|
+
const { program: M, aPositionBuffer: b } = this.webgl.bind(this.context, e0.vertexSchema, e0.fragmentSchema);
|
|
4441
4441
|
this.program = M, this.aPositionBuffer = b;
|
|
4442
4442
|
}
|
|
4443
4443
|
},
|
|
@@ -4456,7 +4456,7 @@ function y2(z, M, b, O, p, o) {
|
|
|
4456
4456
|
return (e = b.factor) != null && e.active ? (l(), f("div", B2, [
|
|
4457
4457
|
c("div", {
|
|
4458
4458
|
class: "legend-bars flex-center",
|
|
4459
|
-
style:
|
|
4459
|
+
style: o0([{ position: "absolute" }, { right: p.right + "px", bottom: b.bottom }])
|
|
4460
4460
|
}, M[0] || (M[0] = [
|
|
4461
4461
|
c("span", null, "mm", -1),
|
|
4462
4462
|
c("span", null, "1.5", -1),
|
|
@@ -4467,9 +4467,9 @@ function y2(z, M, b, O, p, o) {
|
|
|
4467
4467
|
c("span", null, "20", -1),
|
|
4468
4468
|
c("span", null, "30", -1)
|
|
4469
4469
|
]), 4)
|
|
4470
|
-
])) :
|
|
4470
|
+
])) : F("", !0);
|
|
4471
4471
|
}
|
|
4472
|
-
const g2 = /* @__PURE__ */
|
|
4472
|
+
const g2 = /* @__PURE__ */ I(N2, [["render", y2], ["__scopeId", "data-v-e83717bd"]]);
|
|
4473
4473
|
const X2 = {
|
|
4474
4474
|
name: "IdmVisibility",
|
|
4475
4475
|
props: {
|
|
@@ -4551,7 +4551,7 @@ const X2 = {
|
|
|
4551
4551
|
[1, "rgba(144,144,144,0)"]
|
|
4552
4552
|
];
|
|
4553
4553
|
this.rampColor = this.webgl.setup(this.context, z);
|
|
4554
|
-
const { program: M, aPositionBuffer: b } = this.webgl.bind(this.context,
|
|
4554
|
+
const { program: M, aPositionBuffer: b } = this.webgl.bind(this.context, e0.vertexSchema, e0.fragmentSchema);
|
|
4555
4555
|
this.program = M, this.aPositionBuffer = b;
|
|
4556
4556
|
}
|
|
4557
4557
|
},
|
|
@@ -4570,7 +4570,7 @@ function T2(z, M, b, O, p, o) {
|
|
|
4570
4570
|
return (e = b.factor) != null && e.active ? (l(), f("div", v2, [
|
|
4571
4571
|
c("div", {
|
|
4572
4572
|
class: "legend-bars flex-center",
|
|
4573
|
-
style:
|
|
4573
|
+
style: o0([{ position: "absolute" }, { right: z.right + "px", bottom: b.bottom }])
|
|
4574
4574
|
}, M[0] || (M[0] = [
|
|
4575
4575
|
c("span", null, "nm", -1),
|
|
4576
4576
|
c("span", null, "0", -1),
|
|
@@ -4579,9 +4579,9 @@ function T2(z, M, b, O, p, o) {
|
|
|
4579
4579
|
c("span", null, "3", -1),
|
|
4580
4580
|
c("span", null, "9", -1)
|
|
4581
4581
|
]), 4)
|
|
4582
|
-
])) :
|
|
4582
|
+
])) : F("", !0);
|
|
4583
4583
|
}
|
|
4584
|
-
const w2 = /* @__PURE__ */
|
|
4584
|
+
const w2 = /* @__PURE__ */ I(X2, [["render", T2], ["__scopeId", "data-v-1c8a9237"]]);
|
|
4585
4585
|
const C2 = {
|
|
4586
4586
|
name: "IdmWaterTemp",
|
|
4587
4587
|
props: {
|
|
@@ -4671,7 +4671,7 @@ const C2 = {
|
|
|
4671
4671
|
//
|
|
4672
4672
|
];
|
|
4673
4673
|
this.rampColor = this.webgl.setup(this.context, z);
|
|
4674
|
-
const { program: M, aPositionBuffer: b } = this.webgl.bind(this.context,
|
|
4674
|
+
const { program: M, aPositionBuffer: b } = this.webgl.bind(this.context, e0.vertexSchema, e0.fragmentSchema);
|
|
4675
4675
|
this.program = M, this.aPositionBuffer = b;
|
|
4676
4676
|
}
|
|
4677
4677
|
},
|
|
@@ -4690,7 +4690,7 @@ function x2(z, M, b, O, p, o) {
|
|
|
4690
4690
|
return (e = b.factor) != null && e.active ? (l(), f("div", _2, [
|
|
4691
4691
|
c("div", {
|
|
4692
4692
|
class: "legend-bars flex-center",
|
|
4693
|
-
style:
|
|
4693
|
+
style: o0([{ position: "absolute" }, { right: p.right + "px", bottom: b.bottom }])
|
|
4694
4694
|
}, M[0] || (M[0] = [
|
|
4695
4695
|
c("span", null, "°C", -1),
|
|
4696
4696
|
c("span", null, "0", -1),
|
|
@@ -4699,9 +4699,9 @@ function x2(z, M, b, O, p, o) {
|
|
|
4699
4699
|
c("span", null, "30", -1),
|
|
4700
4700
|
c("span", null, "40", -1)
|
|
4701
4701
|
]), 4)
|
|
4702
|
-
])) :
|
|
4702
|
+
])) : F("", !0);
|
|
4703
4703
|
}
|
|
4704
|
-
const S2 = /* @__PURE__ */
|
|
4704
|
+
const S2 = /* @__PURE__ */ I(C2, [["render", x2], ["__scopeId", "data-v-8974924d"]]);
|
|
4705
4705
|
const E2 = {
|
|
4706
4706
|
name: "IdmTemp",
|
|
4707
4707
|
props: {
|
|
@@ -4794,7 +4794,7 @@ const E2 = {
|
|
|
4794
4794
|
[1, "rgb(138, 43, 10)"]
|
|
4795
4795
|
];
|
|
4796
4796
|
this.rampColor = this.webgl.setup(this.context, z);
|
|
4797
|
-
const { program: M, aPositionBuffer: b } = this.webgl.bind(this.context,
|
|
4797
|
+
const { program: M, aPositionBuffer: b } = this.webgl.bind(this.context, e0.vertexSchema, e0.fragmentSchema);
|
|
4798
4798
|
this.program = M, this.aPositionBuffer = b;
|
|
4799
4799
|
}
|
|
4800
4800
|
},
|
|
@@ -4813,7 +4813,7 @@ function k2(z, M, b, O, p, o) {
|
|
|
4813
4813
|
return (e = b.factor) != null && e.active ? (l(), f("div", P2, [
|
|
4814
4814
|
c("div", {
|
|
4815
4815
|
class: "legend-bars flex-center",
|
|
4816
|
-
style:
|
|
4816
|
+
style: o0([{ position: "absolute" }, { right: p.right + "px", bottom: b.bottom }])
|
|
4817
4817
|
}, M[0] || (M[0] = [
|
|
4818
4818
|
c("span", null, "°C", -1),
|
|
4819
4819
|
c("span", null, "-20", -1),
|
|
@@ -4824,9 +4824,9 @@ function k2(z, M, b, O, p, o) {
|
|
|
4824
4824
|
c("span", null, "30", -1),
|
|
4825
4825
|
c("span", null, "40", -1)
|
|
4826
4826
|
]), 4)
|
|
4827
|
-
])) :
|
|
4827
|
+
])) : F("", !0);
|
|
4828
4828
|
}
|
|
4829
|
-
const D2 = /* @__PURE__ */
|
|
4829
|
+
const D2 = /* @__PURE__ */ I(E2, [["render", k2], ["__scopeId", "data-v-d709ba86"]]);
|
|
4830
4830
|
const I2 = {
|
|
4831
4831
|
name: "IdmArctic",
|
|
4832
4832
|
props: {
|
|
@@ -4910,7 +4910,7 @@ const I2 = {
|
|
|
4910
4910
|
// 2m
|
|
4911
4911
|
];
|
|
4912
4912
|
this.rampColor = this.webgl.setup(this.context, z);
|
|
4913
|
-
const { program: M, aPositionBuffer: b } = this.webgl.bind(this.context,
|
|
4913
|
+
const { program: M, aPositionBuffer: b } = this.webgl.bind(this.context, e0.vertexSchema, e0.fragmentSchema);
|
|
4914
4914
|
this.program = M, this.aPositionBuffer = b;
|
|
4915
4915
|
}
|
|
4916
4916
|
},
|
|
@@ -4929,7 +4929,7 @@ function U2(z, M, b, O, p, o) {
|
|
|
4929
4929
|
return (e = b.factor) != null && e.active ? (l(), f("div", j2, [
|
|
4930
4930
|
c("div", {
|
|
4931
4931
|
class: "legend-bars flex-center",
|
|
4932
|
-
style:
|
|
4932
|
+
style: o0([{ position: "absolute" }, { right: p.right + "px", bottom: b.bottom }])
|
|
4933
4933
|
}, M[0] || (M[0] = [
|
|
4934
4934
|
c("span", null, "m", -1),
|
|
4935
4935
|
c("span", null, "0", -1),
|
|
@@ -4938,9 +4938,9 @@ function U2(z, M, b, O, p, o) {
|
|
|
4938
4938
|
c("span", null, "1.5", -1),
|
|
4939
4939
|
c("span", null, "2", -1)
|
|
4940
4940
|
]), 4)
|
|
4941
|
-
])) :
|
|
4941
|
+
])) : F("", !0);
|
|
4942
4942
|
}
|
|
4943
|
-
const F2 = /* @__PURE__ */
|
|
4943
|
+
const F2 = /* @__PURE__ */ I(I2, [["render", U2], ["__scopeId", "data-v-5bb73794"]]);
|
|
4944
4944
|
/*! Element Plus Icons Vue v2.3.1 */
|
|
4945
4945
|
var H2 = /* @__PURE__ */ J0({
|
|
4946
4946
|
name: "LocationFilled",
|
|
@@ -4968,23 +4968,23 @@ var U0 = { exports: {} }, F0 = { exports: {} };
|
|
|
4968
4968
|
//! license : MIT
|
|
4969
4969
|
//! github.com/moment/moment-timezone
|
|
4970
4970
|
(function(M, b) {
|
|
4971
|
-
z.exports ? z.exports = b(
|
|
4971
|
+
z.exports ? z.exports = b(H) : b(M.moment);
|
|
4972
4972
|
})(V2, function(M) {
|
|
4973
4973
|
M.version === void 0 && M.default && (M = M.default);
|
|
4974
4974
|
var b = "0.5.47", O = {}, p = {}, o = {}, e = {}, t = {}, q;
|
|
4975
|
-
(!M || typeof M.version != "string") &&
|
|
4975
|
+
(!M || typeof M.version != "string") && t0("Moment Timezone requires Moment.js. See https://momentjs.com/timezone/docs/#/use-it/browser/");
|
|
4976
4976
|
var r = M.version.split("."), a = +r[0], i = +r[1];
|
|
4977
|
-
(a < 2 || a === 2 && i < 6) &&
|
|
4977
|
+
(a < 2 || a === 2 && i < 6) && t0("Moment Timezone requires Moment.js >= 2.6.0. You are using Moment.js " + M.version + ". See momentjs.com");
|
|
4978
4978
|
function L(A) {
|
|
4979
4979
|
return A > 96 ? A - 87 : A > 64 ? A - 29 : A - 48;
|
|
4980
4980
|
}
|
|
4981
4981
|
function n(A) {
|
|
4982
|
-
var W = 0, s = A.split("."), N = s[0], v = s[1] || "",
|
|
4982
|
+
var W = 0, s = A.split("."), N = s[0], v = s[1] || "", P = 1, Q, D = 0, G = 1;
|
|
4983
4983
|
for (A.charCodeAt(0) === 45 && (W = 1, G = -1), W; W < N.length; W++)
|
|
4984
|
-
Q = L(N.charCodeAt(W)),
|
|
4984
|
+
Q = L(N.charCodeAt(W)), D = 60 * D + Q;
|
|
4985
4985
|
for (W = 0; W < v.length; W++)
|
|
4986
|
-
|
|
4987
|
-
return
|
|
4986
|
+
P = P / 60, Q = L(v.charCodeAt(W)), D += Q * P;
|
|
4987
|
+
return D * G;
|
|
4988
4988
|
}
|
|
4989
4989
|
function h(A) {
|
|
4990
4990
|
for (var W = 0; W < A.length; W++)
|
|
@@ -5014,7 +5014,7 @@ var U0 = { exports: {} }, F0 = { exports: {} };
|
|
|
5014
5014
|
function R(A) {
|
|
5015
5015
|
A && this._set(m(A));
|
|
5016
5016
|
}
|
|
5017
|
-
function
|
|
5017
|
+
function X(A, W) {
|
|
5018
5018
|
var s = W.length;
|
|
5019
5019
|
if (A < W[0])
|
|
5020
5020
|
return 0;
|
|
@@ -5022,9 +5022,9 @@ var U0 = { exports: {} }, F0 = { exports: {} };
|
|
|
5022
5022
|
return s - 1;
|
|
5023
5023
|
if (A >= W[s - 1])
|
|
5024
5024
|
return -1;
|
|
5025
|
-
for (var N, v = 0,
|
|
5026
|
-
N = Math.floor((v +
|
|
5027
|
-
return
|
|
5025
|
+
for (var N, v = 0, P = s - 1; P - v > 1; )
|
|
5026
|
+
N = Math.floor((v + P) / 2), W[N] <= A ? v = N : P = N;
|
|
5027
|
+
return P;
|
|
5028
5028
|
}
|
|
5029
5029
|
R.prototype = {
|
|
5030
5030
|
_set: function(A) {
|
|
@@ -5032,7 +5032,7 @@ var U0 = { exports: {} }, F0 = { exports: {} };
|
|
|
5032
5032
|
},
|
|
5033
5033
|
_index: function(A) {
|
|
5034
5034
|
var W = +A, s = this.untils, N;
|
|
5035
|
-
if (N =
|
|
5035
|
+
if (N = X(W, s), N >= 0)
|
|
5036
5036
|
return N;
|
|
5037
5037
|
},
|
|
5038
5038
|
countries: function() {
|
|
@@ -5042,9 +5042,9 @@ var U0 = { exports: {} }, F0 = { exports: {} };
|
|
|
5042
5042
|
});
|
|
5043
5043
|
},
|
|
5044
5044
|
parse: function(A) {
|
|
5045
|
-
var W = +A, s = this.offsets, N = this.untils, v = N.length - 1,
|
|
5045
|
+
var W = +A, s = this.offsets, N = this.untils, v = N.length - 1, P, Q, D, G;
|
|
5046
5046
|
for (G = 0; G < v; G++)
|
|
5047
|
-
if (
|
|
5047
|
+
if (P = s[G], Q = s[G + 1], D = s[G && G - 1], P < Q && E.moveAmbiguousForward ? P = Q : P > D && E.moveInvalidForward && (P = D), W < N[G] - P * 6e4)
|
|
5048
5048
|
return s[G];
|
|
5049
5049
|
return s[v];
|
|
5050
5050
|
},
|
|
@@ -5052,7 +5052,7 @@ var U0 = { exports: {} }, F0 = { exports: {} };
|
|
|
5052
5052
|
return this.abbrs[this._index(A)];
|
|
5053
5053
|
},
|
|
5054
5054
|
offset: function(A) {
|
|
5055
|
-
return
|
|
5055
|
+
return t0("zone.offset has been deprecated in favor of zone.utcOffset"), this.offsets[this._index(A)];
|
|
5056
5056
|
},
|
|
5057
5057
|
utcOffset: function(A) {
|
|
5058
5058
|
return this.offsets[this._index(A)];
|
|
@@ -5061,27 +5061,27 @@ var U0 = { exports: {} }, F0 = { exports: {} };
|
|
|
5061
5061
|
function x(A, W) {
|
|
5062
5062
|
this.name = A, this.zones = W;
|
|
5063
5063
|
}
|
|
5064
|
-
function
|
|
5064
|
+
function g(A) {
|
|
5065
5065
|
var W = A.toTimeString(), s = W.match(/\([a-z ]+\)/i);
|
|
5066
5066
|
s && s[0] ? (s = s[0].match(/[A-Z]/g), s = s ? s.join("") : void 0) : (s = W.match(/[A-Z]{3,5}/g), s = s ? s[0] : void 0), s === "GMT" && (s = void 0), this.at = +A, this.abbr = s, this.offset = A.getTimezoneOffset();
|
|
5067
5067
|
}
|
|
5068
|
-
function
|
|
5068
|
+
function U(A) {
|
|
5069
5069
|
this.zone = A, this.offsetScore = 0, this.abbrScore = 0;
|
|
5070
5070
|
}
|
|
5071
|
-
|
|
5071
|
+
U.prototype.scoreOffsetAt = function(A) {
|
|
5072
5072
|
this.offsetScore += Math.abs(this.zone.utcOffset(A.at) - A.offset), this.zone.abbr(A.at).replace(/[^A-Z]/g, "") !== A.abbr && this.abbrScore++;
|
|
5073
5073
|
};
|
|
5074
|
-
function
|
|
5074
|
+
function y(A, W) {
|
|
5075
5075
|
for (var s, N; N = ((W.at - A.at) / 12e4 | 0) * 6e4; )
|
|
5076
|
-
s = new
|
|
5076
|
+
s = new g(new Date(A.at + N)), s.offset === A.offset ? A = s : W = s;
|
|
5077
5077
|
return A;
|
|
5078
5078
|
}
|
|
5079
5079
|
function C() {
|
|
5080
|
-
var A = (/* @__PURE__ */ new Date()).getFullYear() - 2, W = new
|
|
5081
|
-
for (
|
|
5082
|
-
Q = new Date(A,
|
|
5083
|
-
for (
|
|
5084
|
-
N.push(new
|
|
5080
|
+
var A = (/* @__PURE__ */ new Date()).getFullYear() - 2, W = new g(new Date(A, 0, 1)), s = W.offset, N = [W], v, P, Q, D;
|
|
5081
|
+
for (D = 1; D < 48; D++)
|
|
5082
|
+
Q = new Date(A, D, 1).getTimezoneOffset(), Q !== s && (P = new g(new Date(A, D, 1)), v = y(W, P), N.push(v), N.push(new g(new Date(v.at + 6e4))), W = P, s = Q);
|
|
5083
|
+
for (D = 0; D < 4; D++)
|
|
5084
|
+
N.push(new g(new Date(A + D, 0, 1))), N.push(new g(new Date(A + D, 6, 1)));
|
|
5085
5085
|
return N;
|
|
5086
5086
|
}
|
|
5087
5087
|
function Z(A, W) {
|
|
@@ -5092,69 +5092,69 @@ var U0 = { exports: {} }, F0 = { exports: {} };
|
|
|
5092
5092
|
for (h(W), s = 0; s < W.length; s++)
|
|
5093
5093
|
N = W[s], t[N] = t[N] || {}, t[N][A] = !0;
|
|
5094
5094
|
}
|
|
5095
|
-
function
|
|
5096
|
-
var W = A.length, s = {}, N = [], v = {},
|
|
5097
|
-
for (
|
|
5098
|
-
if (
|
|
5099
|
-
G = t[
|
|
5095
|
+
function i0(A) {
|
|
5096
|
+
var W = A.length, s = {}, N = [], v = {}, P, Q, D, G;
|
|
5097
|
+
for (P = 0; P < W; P++)
|
|
5098
|
+
if (D = A[P].offset, !v.hasOwnProperty(D)) {
|
|
5099
|
+
G = t[D] || {};
|
|
5100
5100
|
for (Q in G)
|
|
5101
5101
|
G.hasOwnProperty(Q) && (s[Q] = !0);
|
|
5102
|
-
v[
|
|
5102
|
+
v[D] = !0;
|
|
5103
5103
|
}
|
|
5104
|
-
for (
|
|
5105
|
-
s.hasOwnProperty(
|
|
5104
|
+
for (P in s)
|
|
5105
|
+
s.hasOwnProperty(P) && N.push(e[P]);
|
|
5106
5106
|
return N;
|
|
5107
5107
|
}
|
|
5108
|
-
function
|
|
5108
|
+
function L0() {
|
|
5109
5109
|
try {
|
|
5110
5110
|
var A = Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
5111
5111
|
if (A && A.length > 3) {
|
|
5112
|
-
var W = e[
|
|
5112
|
+
var W = e[r0(A)];
|
|
5113
5113
|
if (W)
|
|
5114
5114
|
return W;
|
|
5115
|
-
|
|
5115
|
+
t0("Moment Timezone found " + A + " from the Intl api, but did not have that data loaded.");
|
|
5116
5116
|
}
|
|
5117
5117
|
} catch {
|
|
5118
5118
|
}
|
|
5119
|
-
var s = C(), N = s.length, v =
|
|
5120
|
-
for (
|
|
5121
|
-
for (Q = new
|
|
5119
|
+
var s = C(), N = s.length, v = i0(s), P = [], Q, D, G;
|
|
5120
|
+
for (D = 0; D < v.length; D++) {
|
|
5121
|
+
for (Q = new U(O0(v[D])), G = 0; G < N; G++)
|
|
5122
5122
|
Q.scoreOffsetAt(s[G]);
|
|
5123
|
-
|
|
5123
|
+
P.push(Q);
|
|
5124
5124
|
}
|
|
5125
|
-
return
|
|
5125
|
+
return P.sort(Z), P.length > 0 ? P[0].zone.name : void 0;
|
|
5126
5126
|
}
|
|
5127
|
-
function
|
|
5128
|
-
return (!q || A) && (q =
|
|
5127
|
+
function R0(A) {
|
|
5128
|
+
return (!q || A) && (q = L0()), q;
|
|
5129
5129
|
}
|
|
5130
|
-
function
|
|
5130
|
+
function r0(A) {
|
|
5131
5131
|
return (A || "").toLowerCase().replace(/\//g, "_");
|
|
5132
5132
|
}
|
|
5133
|
-
function
|
|
5133
|
+
function f0(A) {
|
|
5134
5134
|
var W, s, N, v;
|
|
5135
5135
|
for (typeof A == "string" && (A = [A]), W = 0; W < A.length; W++)
|
|
5136
|
-
N = A[W].split("|"), s = N[0], v =
|
|
5136
|
+
N = A[W].split("|"), s = N[0], v = r0(s), O[v] = A[W], e[v] = s, Y(v, N[2].split(" "));
|
|
5137
5137
|
}
|
|
5138
|
-
function
|
|
5139
|
-
A =
|
|
5138
|
+
function O0(A, W) {
|
|
5139
|
+
A = r0(A);
|
|
5140
5140
|
var s = O[A], N;
|
|
5141
|
-
return s instanceof R ? s : typeof s == "string" ? (s = new R(s), O[A] = s, s) : p[A] && W !==
|
|
5141
|
+
return s instanceof R ? s : typeof s == "string" ? (s = new R(s), O[A] = s, s) : p[A] && W !== O0 && (N = O0(p[A], O0)) ? (s = O[A] = new R(), s._set(N), s.name = e[A], s) : null;
|
|
5142
5142
|
}
|
|
5143
|
-
function
|
|
5143
|
+
function h0() {
|
|
5144
5144
|
var A, W = [];
|
|
5145
5145
|
for (A in e)
|
|
5146
5146
|
e.hasOwnProperty(A) && (O[A] || O[p[A]]) && e[A] && W.push(e[A]);
|
|
5147
5147
|
return W.sort();
|
|
5148
5148
|
}
|
|
5149
|
-
function
|
|
5149
|
+
function m0() {
|
|
5150
5150
|
return Object.keys(o);
|
|
5151
5151
|
}
|
|
5152
|
-
function
|
|
5152
|
+
function d0(A) {
|
|
5153
5153
|
var W, s, N, v;
|
|
5154
5154
|
for (typeof A == "string" && (A = [A]), W = 0; W < A.length; W++)
|
|
5155
|
-
s = A[W].split("|"), N =
|
|
5155
|
+
s = A[W].split("|"), N = r0(s[0]), v = r0(s[1]), p[N] = v, e[N] = s[0], p[v] = N, e[v] = s[1];
|
|
5156
5156
|
}
|
|
5157
|
-
function
|
|
5157
|
+
function n0(A) {
|
|
5158
5158
|
var W, s, N, v;
|
|
5159
5159
|
if (!(!A || !A.length))
|
|
5160
5160
|
for (W = 0; W < A.length; W++)
|
|
@@ -5163,77 +5163,77 @@ var U0 = { exports: {} }, F0 = { exports: {} };
|
|
|
5163
5163
|
N
|
|
5164
5164
|
);
|
|
5165
5165
|
}
|
|
5166
|
-
function
|
|
5166
|
+
function W0(A) {
|
|
5167
5167
|
return A = A.toUpperCase(), o[A] || null;
|
|
5168
5168
|
}
|
|
5169
|
-
function
|
|
5170
|
-
if (A =
|
|
5169
|
+
function N0(A, W) {
|
|
5170
|
+
if (A = W0(A), !A)
|
|
5171
5171
|
return null;
|
|
5172
5172
|
var s = A.zones.sort();
|
|
5173
5173
|
return W ? s.map(function(N) {
|
|
5174
|
-
var v =
|
|
5174
|
+
var v = O0(N);
|
|
5175
5175
|
return {
|
|
5176
5176
|
name: N,
|
|
5177
5177
|
offset: v.utcOffset(/* @__PURE__ */ new Date())
|
|
5178
5178
|
};
|
|
5179
5179
|
}) : s;
|
|
5180
5180
|
}
|
|
5181
|
-
function
|
|
5182
|
-
|
|
5181
|
+
function s0(A) {
|
|
5182
|
+
f0(A.zones), d0(A.links), n0(A.countries), E.dataVersion = A.version;
|
|
5183
5183
|
}
|
|
5184
|
-
function
|
|
5185
|
-
return
|
|
5184
|
+
function k(A) {
|
|
5185
|
+
return k.didShowError || (k.didShowError = !0, t0("moment.tz.zoneExists('" + A + "') has been deprecated in favor of !moment.tz.zone('" + A + "')")), !!O0(A);
|
|
5186
5186
|
}
|
|
5187
|
-
function
|
|
5187
|
+
function z0(A) {
|
|
5188
5188
|
var W = A._f === "X" || A._f === "x";
|
|
5189
5189
|
return !!(A._a && A._tzm === void 0 && !W);
|
|
5190
5190
|
}
|
|
5191
|
-
function
|
|
5191
|
+
function t0(A) {
|
|
5192
5192
|
typeof console < "u" && typeof console.error == "function" && console.error(A);
|
|
5193
5193
|
}
|
|
5194
|
-
function
|
|
5194
|
+
function E(A) {
|
|
5195
5195
|
var W = Array.prototype.slice.call(arguments, 0, -1), s = arguments[arguments.length - 1], N = M.utc.apply(null, W), v;
|
|
5196
|
-
return !M.isMoment(A) &&
|
|
5196
|
+
return !M.isMoment(A) && z0(N) && (v = O0(s)) && N.add(v.parse(N), "minutes"), N.tz(s), N;
|
|
5197
5197
|
}
|
|
5198
|
-
|
|
5199
|
-
var
|
|
5200
|
-
M.tz =
|
|
5198
|
+
E.version = b, E.dataVersion = "", E._zones = O, E._links = p, E._names = e, E._countries = o, E.add = f0, E.link = d0, E.load = s0, E.zone = O0, E.zoneExists = k, E.guess = R0, E.names = h0, E.Zone = R, E.unpack = m, E.unpackBase60 = n, E.needsOffset = z0, E.moveInvalidForward = !0, E.moveAmbiguousForward = !1, E.countries = m0, E.zonesForCountry = N0;
|
|
5199
|
+
var p0 = M.fn;
|
|
5200
|
+
M.tz = E, M.defaultZone = null, M.updateOffset = function(A, W) {
|
|
5201
5201
|
var s = M.defaultZone, N;
|
|
5202
|
-
if (A._z === void 0 && (s &&
|
|
5202
|
+
if (A._z === void 0 && (s && z0(A) && !A._isUTC && A.isValid() && (A._d = M.utc(A._a)._d, A.utc().add(s.parse(A), "minutes")), A._z = s), A._z)
|
|
5203
5203
|
if (N = A._z.utcOffset(A), Math.abs(N) < 16 && (N = N / 60), A.utcOffset !== void 0) {
|
|
5204
5204
|
var v = A._z;
|
|
5205
5205
|
A.utcOffset(-N, W), A._z = v;
|
|
5206
5206
|
} else
|
|
5207
5207
|
A.zone(N, W);
|
|
5208
|
-
},
|
|
5208
|
+
}, p0.tz = function(A, W) {
|
|
5209
5209
|
if (A) {
|
|
5210
5210
|
if (typeof A != "string")
|
|
5211
5211
|
throw new Error("Time zone name must be a string, got " + A + " [" + typeof A + "]");
|
|
5212
|
-
return this._z =
|
|
5212
|
+
return this._z = O0(A), this._z ? M.updateOffset(this, W) : t0("Moment Timezone has no data for " + A + ". See http://momentjs.com/timezone/docs/#/data-loading/."), this;
|
|
5213
5213
|
}
|
|
5214
5214
|
if (this._z)
|
|
5215
5215
|
return this._z.name;
|
|
5216
5216
|
};
|
|
5217
|
-
function
|
|
5217
|
+
function l0(A) {
|
|
5218
5218
|
return function() {
|
|
5219
5219
|
return this._z ? this._z.abbr(this) : A.call(this);
|
|
5220
5220
|
};
|
|
5221
5221
|
}
|
|
5222
|
-
function
|
|
5222
|
+
function c0(A) {
|
|
5223
5223
|
return function() {
|
|
5224
5224
|
return this._z = null, A.apply(this, arguments);
|
|
5225
5225
|
};
|
|
5226
5226
|
}
|
|
5227
|
-
function
|
|
5227
|
+
function u0(A) {
|
|
5228
5228
|
return function() {
|
|
5229
5229
|
return arguments.length > 0 && (this._z = null), A.apply(this, arguments);
|
|
5230
5230
|
};
|
|
5231
5231
|
}
|
|
5232
|
-
|
|
5233
|
-
return (a < 2 || a === 2 && i < 9) &&
|
|
5232
|
+
p0.zoneName = l0(p0.zoneName), p0.zoneAbbr = l0(p0.zoneAbbr), p0.utc = c0(p0.utc), p0.local = c0(p0.local), p0.utcOffset = u0(p0.utcOffset), M.tz.setDefault = function(A) {
|
|
5233
|
+
return (a < 2 || a === 2 && i < 9) && t0("Moment Timezone setDefault() requires Moment.js >= 2.9.0. You are using Moment.js " + M.version + "."), M.defaultZone = A ? O0(A) : null, M;
|
|
5234
5234
|
};
|
|
5235
|
-
var
|
|
5236
|
-
return Object.prototype.toString.call(
|
|
5235
|
+
var B = M.momentProperties;
|
|
5236
|
+
return Object.prototype.toString.call(B) === "[object Array]" ? (B.push("_z"), B.push("_a")) : B && (B._z = null), M;
|
|
5237
5237
|
});
|
|
5238
5238
|
})(F0);
|
|
5239
5239
|
var J2 = F0.exports;
|
|
@@ -6121,7 +6121,7 @@ const pM = {
|
|
|
6121
6121
|
return {
|
|
6122
6122
|
showMeteo: !1,
|
|
6123
6123
|
point: {},
|
|
6124
|
-
meteoTime:
|
|
6124
|
+
meteoTime: H().utc().format(),
|
|
6125
6125
|
meteoData: void 0,
|
|
6126
6126
|
tableData: {
|
|
6127
6127
|
hours: [void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0],
|
|
@@ -6171,7 +6171,7 @@ const pM = {
|
|
|
6171
6171
|
handler() {
|
|
6172
6172
|
var z;
|
|
6173
6173
|
if (this.showMeteo = !0, this.showMeteo && this.ts && this.meteoTime) {
|
|
6174
|
-
const M = Math.ceil((z =
|
|
6174
|
+
const M = Math.ceil((z = H(this.ts)) == null ? void 0 : z.diff(H(), "d", !0)), b = M > 0 ? 15 - M : 15;
|
|
6175
6175
|
this.fetchMeteoData(this.point, this.ts, b);
|
|
6176
6176
|
}
|
|
6177
6177
|
}
|
|
@@ -6180,18 +6180,18 @@ const pM = {
|
|
|
6180
6180
|
handler() {
|
|
6181
6181
|
var z, M;
|
|
6182
6182
|
if (this.showMeteo && this.ts && this.meteoTime) {
|
|
6183
|
-
const b = (z =
|
|
6183
|
+
const b = (z = H(this.ts)) == null ? void 0 : z.diff(H(this.meteoTime), "d", !0);
|
|
6184
6184
|
if (b >= 0 && b <= 14)
|
|
6185
|
-
this.initTableData(this.meteoData);
|
|
6185
|
+
this.meteoData && this.initTableData(this.meteoData);
|
|
6186
6186
|
else if (b > 14) {
|
|
6187
|
-
const O = Math.ceil((M =
|
|
6187
|
+
const O = Math.ceil((M = H(this.ts)) == null ? void 0 : M.diff(H(), "d", !0));
|
|
6188
6188
|
if (O <= 15) {
|
|
6189
6189
|
const p = O > 0 ? 15 - O : 15;
|
|
6190
6190
|
this.fetchMeteoData(this.point, this.ts, p);
|
|
6191
6191
|
} else
|
|
6192
6192
|
this.clearTable(), this.tableData.hours = [void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0], this.handleRender();
|
|
6193
6193
|
} else
|
|
6194
|
-
b <= 0 && b >= -14 ? this.initTableData(this.historyMeteoData) : b < -14 && this.fetchMeteoData(this.point, this.ts, 15);
|
|
6194
|
+
b <= 0 && b >= -14 ? this.historyMeteoData && this.initTableData(this.historyMeteoData) : b < -14 && this.fetchMeteoData(this.point, this.ts, 15);
|
|
6195
6195
|
}
|
|
6196
6196
|
}
|
|
6197
6197
|
}
|
|
@@ -6204,7 +6204,7 @@ const pM = {
|
|
|
6204
6204
|
},
|
|
6205
6205
|
computeHourZ() {
|
|
6206
6206
|
return function(z) {
|
|
6207
|
-
return z ? `${
|
|
6207
|
+
return z ? `${H(z).utc().format("HH")}Z` : "-";
|
|
6208
6208
|
};
|
|
6209
6209
|
},
|
|
6210
6210
|
computeLat() {
|
|
@@ -6228,43 +6228,43 @@ const pM = {
|
|
|
6228
6228
|
methods: {
|
|
6229
6229
|
async fetchMeteoData(z, M, b) {
|
|
6230
6230
|
this.point = z, this.clearTable(), this.tableData.hours = [void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0], this.handleRender();
|
|
6231
|
-
let O = M ?
|
|
6231
|
+
let O = M ? H(M).utc().format() : H().utc().format(), p = {
|
|
6232
6232
|
lat: z.lat,
|
|
6233
6233
|
lng: z.lng,
|
|
6234
6234
|
datetime: O,
|
|
6235
6235
|
forecastDays: b ?? 15
|
|
6236
6236
|
// selfHosted: false
|
|
6237
|
-
}, o = await
|
|
6237
|
+
}, o = await y0.post(`${this.gateway}/api/arc/meteo2/spot/forecast`, p, {
|
|
6238
6238
|
headers: {
|
|
6239
6239
|
Authorization: this.token || this.defaultMeteoToken
|
|
6240
6240
|
}
|
|
6241
6241
|
});
|
|
6242
|
-
(o == null ? void 0 : o.data.code) === 0 ? (this.meteoData = o == null ? void 0 : o.data.data, this.meteoTime = O, this.initTableData(this.meteoData)) : (this.clearTable(), this.tableData.hours = [void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0], this.handleRender()),
|
|
6242
|
+
(o == null ? void 0 : o.data.code) === 0 ? (this.meteoData = o == null ? void 0 : o.data.data, this.meteoTime = O, this.initTableData(this.meteoData)) : (this.clearTable(), this.tableData.hours = [void 0, void 0, void 0, void 0, void 0, void 0, void 0, void 0], this.handleRender()), H(this.startTs).diff(H(), "d", !0) < -1 && (O = M ? H(M).add(-14, "d").utc().format() : H().utc().format(), p = {
|
|
6243
6243
|
lat: z.lat,
|
|
6244
6244
|
lng: z.lng,
|
|
6245
6245
|
datetime: O,
|
|
6246
6246
|
forecastDays: 15
|
|
6247
|
-
}, o = await
|
|
6247
|
+
}, o = await y0.post(`${this.gateway}/api/arc/meteo2/spot/forecast`, p, {
|
|
6248
6248
|
headers: {
|
|
6249
6249
|
Authorization: this.token || this.defaultMeteoToken
|
|
6250
6250
|
}
|
|
6251
6251
|
}), (o == null ? void 0 : o.data.code) === 0 && (this.historyMeteoData = o == null ? void 0 : o.data.data));
|
|
6252
6252
|
},
|
|
6253
6253
|
initTableData(z) {
|
|
6254
|
-
var b, O, p, o, e, t, q, r, a, i, L, n, h, u, d, m, R,
|
|
6255
|
-
this.clearTable(), this.currentHourData = ((b = D0.pickHourly(z, this.ts ?
|
|
6254
|
+
var b, O, p, o, e, t, q, r, a, i, L, n, h, u, d, m, R, X, x, g, U, y, C, Z, Y, i0, L0, R0, r0, f0, O0, h0, m0, d0, n0, W0, N0, s0, k, z0, t0, E, p0, l0;
|
|
6255
|
+
this.clearTable(), this.currentHourData = ((b = D0.pickHourly(z, this.ts ? H(this.ts) : H())) == null ? void 0 : b[0]) || {}, this.positionGmt = (p = (O = z == null ? void 0 : z.weather) == null ? void 0 : O[0]) == null ? void 0 : p.timezone, this.localDate = (e = (o = _0(this.ts)) == null ? void 0 : o.tz(this.positionGmt)) == null ? void 0 : e.format("MMM-DD/HHmm[LT]");
|
|
6256
6256
|
const M = document.getElementById("meteoMainBox");
|
|
6257
|
-
if (((
|
|
6257
|
+
if (((q = (t = this.currentHourData) == null ? void 0 : t.weather) == null ? void 0 : q.code) === 0 && ((a = (r = this.currentHourData) == null ? void 0 : r.weather) == null ? void 0 : a.isDay) === 0)
|
|
6258
6258
|
M.className = "main-box night-bg";
|
|
6259
6259
|
else {
|
|
6260
|
-
const
|
|
6261
|
-
|
|
6260
|
+
const c0 = (L = (i = this.currentHourData) == null ? void 0 : i.weather) == null ? void 0 : L.bg;
|
|
6261
|
+
c0 ? (M.className = "main-box font-color-white", M.style.backgroundImage = `url(${c0})`, (c0 === "https://osshz.idmwx.com/asset/weather/bg2.png" || c0 === "https://osshz.idmwx.com/asset/weather/bg5.png") && (M.style.backgroundPosition = "right bottom")) : M.className = "main-box day-bg";
|
|
6262
6262
|
}
|
|
6263
|
-
for (let
|
|
6264
|
-
const
|
|
6265
|
-
this.tableData.hours.push(
|
|
6266
|
-
const
|
|
6267
|
-
this.tableData.weatherUrls.push((
|
|
6263
|
+
for (let c0 = 0; c0 < 8; c0++) {
|
|
6264
|
+
const u0 = _0(this.ts).tz(this.positionGmt).add(3 * c0, "h").format();
|
|
6265
|
+
this.tableData.hours.push(u0);
|
|
6266
|
+
const B = ((n = D0.pickHourly(z, u0)) == null ? void 0 : n[0]) || {};
|
|
6267
|
+
this.tableData.weatherUrls.push((h = B == null ? void 0 : B.weather) == null ? void 0 : h.url), this.tableData.weatherNames.push(((u = B == null ? void 0 : B.weather) == null ? void 0 : u.name) ?? "-"), this.tableData.temp.push(this.roundPrecision((d = B == null ? void 0 : B.weather) == null ? void 0 : d.temp, 0) ?? "-"), this.tableData.precipProbability.push(this.roundPrecision((R = (m = B == null ? void 0 : B.weather) == null ? void 0 : m.precip) == null ? void 0 : R.probability, 0) ?? "-"), this.tableData.precip1h.push(this.roundPrecision((x = (X = B == null ? void 0 : B.weather) == null ? void 0 : X.precip) == null ? void 0 : x.sum, 0) ?? "-"), this.tableData.visibility.push(this.roundPrecision((g = B == null ? void 0 : B.weather) == null ? void 0 : g.visibility, 0) ?? "-"), this.tableData.windSpeed.push(this.roundPrecision((y = (U = B == null ? void 0 : B.weather) == null ? void 0 : U.wind) == null ? void 0 : y.kts, 1) ?? "-"), this.tableData.windDir.push((Z = (C = B == null ? void 0 : B.weather) == null ? void 0 : C.wind) == null ? void 0 : Z.bearing), this.tableData.windGust.push(this.roundPrecision((i0 = (Y = B == null ? void 0 : B.weather) == null ? void 0 : Y.wind) == null ? void 0 : i0.gusts, 1) ?? "-"), this.tableData.sigwaveHeight.push(this.roundPrecision((R0 = (L0 = B == null ? void 0 : B.wave) == null ? void 0 : L0.sig) == null ? void 0 : R0.height, 1) ?? "-"), this.tableData.sigwaveDir.push((f0 = (r0 = B == null ? void 0 : B.wave) == null ? void 0 : r0.sig) == null ? void 0 : f0.bearing), this.tableData.windwaveHeight.push(this.roundPrecision((h0 = (O0 = B == null ? void 0 : B.wave) == null ? void 0 : O0.wd) == null ? void 0 : h0.height, 1) ?? "-"), this.tableData.windwaveDir.push((d0 = (m0 = B == null ? void 0 : B.wave) == null ? void 0 : m0.wd) == null ? void 0 : d0.bearing), this.tableData.windwavePeriod.push(this.roundPrecision((W0 = (n0 = B == null ? void 0 : B.wave) == null ? void 0 : n0.wd) == null ? void 0 : W0.period, 1) ?? "-"), this.tableData.swellHeight.push(this.roundPrecision((s0 = (N0 = B == null ? void 0 : B.wave) == null ? void 0 : N0.swell) == null ? void 0 : s0.height, 1) ?? "-"), this.tableData.swellDir.push((z0 = (k = B == null ? void 0 : B.wave) == null ? void 0 : k.swell) == null ? void 0 : z0.bearing), this.tableData.swellPeriod.push(this.roundPrecision((E = (t0 = B == null ? void 0 : B.wave) == null ? void 0 : t0.swell) == null ? void 0 : E.period, 1) ?? "-"), this.tableData.currentSpeed.push(this.roundPrecision((p0 = B == null ? void 0 : B.current) == null ? void 0 : p0.speed, 1) ?? "-"), this.tableData.currentDir.push((l0 = B == null ? void 0 : B.current) == null ? void 0 : l0.bearing), this.tableData.seaLevel.push(this.roundPrecision(B == null ? void 0 : B.height, 1) ?? "-"), this.tableData.seaTemp.push(this.roundPrecision(B == null ? void 0 : B.sst, 0) ?? "-");
|
|
6268
6268
|
}
|
|
6269
6269
|
},
|
|
6270
6270
|
clearTable() {
|
|
@@ -6318,7 +6318,7 @@ const pM = {
|
|
|
6318
6318
|
this.$nextTick(() => {
|
|
6319
6319
|
var M;
|
|
6320
6320
|
const z = document.getElementById("point-meteo");
|
|
6321
|
-
this.point && (this.meteoMarker ? (M = this.meteoMarker) == null || M.setLngLat([this.point.lng, this.point.lat]) : this.meteoMarker = new
|
|
6321
|
+
this.point && (this.meteoMarker ? (M = this.meteoMarker) == null || M.setLngLat([this.point.lng, this.point.lat]) : this.meteoMarker = new g0.Marker(z).setLngLat([this.point.lng, this.point.lat]).addTo(this.map));
|
|
6322
6322
|
});
|
|
6323
6323
|
}
|
|
6324
6324
|
}
|
|
@@ -6334,7 +6334,7 @@ const pM = {
|
|
|
6334
6334
|
style: { "margin-right": "5px" }
|
|
6335
6335
|
}, nM = { class: "temp" }, dM = { class: "des info" }, WM = { class: "flex-start" }, sM = { class: "flex-start" }, lM = { class: "flex-start" }, fM = { class: "date flex-col-center-end" }, uM = { class: "" }, LM = { class: "" }, RM = { class: "detail-box" }, hM = { class: "menu-header flex-start" }, mM = { class: "basic-table" }, NM = { class: "hour" }, BM = { class: "hour" }, yM = { class: "icon" }, gM = ["src"], XM = { class: "text" }, vM = { class: "text" }, TM = { class: "text" }, wM = { class: "text" }, CM = { class: "wave-current-table" }, _M = { class: "hour" }, xM = { class: "hour" }, SM = { class: "icon" }, EM = ["src"], PM = { class: "text" }, kM = { class: "text" }, DM = { class: "text" }, IM = { class: "text" }, jM = { class: "sea-table" }, UM = { class: "hour" }, FM = { class: "hour" }, HM = { class: "icon" }, GM = ["src"], VM = { class: "text" }, KM = { class: "text" };
|
|
6336
6336
|
function JM(z, M, b, O, p, o) {
|
|
6337
|
-
var r, a, i, L, n, h, u, d, m, R,
|
|
6337
|
+
var r, a, i, L, n, h, u, d, m, R, X, x, g, U;
|
|
6338
6338
|
const e = S("LocationFilled"), t = S("ElIcon"), q = S("ElTooltip");
|
|
6339
6339
|
return l(), f("div", null, [
|
|
6340
6340
|
X0(c("div", OM, [
|
|
@@ -6342,7 +6342,7 @@ function JM(z, M, b, O, p, o) {
|
|
|
6342
6342
|
c("div", cM, [
|
|
6343
6343
|
c("div", eM, [
|
|
6344
6344
|
T(t, { size: "22" }, {
|
|
6345
|
-
default:
|
|
6345
|
+
default: A0(() => [
|
|
6346
6346
|
T(e)
|
|
6347
6347
|
]),
|
|
6348
6348
|
_: 1
|
|
@@ -6351,7 +6351,7 @@ function JM(z, M, b, O, p, o) {
|
|
|
6351
6351
|
]),
|
|
6352
6352
|
c("div", {
|
|
6353
6353
|
class: "iconfont close",
|
|
6354
|
-
onClick: M[0] || (M[0] = (
|
|
6354
|
+
onClick: M[0] || (M[0] = (y) => p.showMeteo = !1)
|
|
6355
6355
|
}, "")
|
|
6356
6356
|
]),
|
|
6357
6357
|
c("div", tM, [
|
|
@@ -6363,10 +6363,10 @@ function JM(z, M, b, O, p, o) {
|
|
|
6363
6363
|
content: (L = (i = p.currentHourData) == null ? void 0 : i.weather) == null ? void 0 : L.name,
|
|
6364
6364
|
"show-after": 1e3
|
|
6365
6365
|
}, {
|
|
6366
|
-
default:
|
|
6367
|
-
var
|
|
6366
|
+
default: A0(() => {
|
|
6367
|
+
var y, C, Z, Y;
|
|
6368
6368
|
return [
|
|
6369
|
-
(C = (
|
|
6369
|
+
(C = (y = p.currentHourData) == null ? void 0 : y.weather) != null && C.url ? (l(), f("img", {
|
|
6370
6370
|
key: 0,
|
|
6371
6371
|
class: "iconfont icon",
|
|
6372
6372
|
style: { "margin-right": "5px" },
|
|
@@ -6389,11 +6389,11 @@ function JM(z, M, b, O, p, o) {
|
|
|
6389
6389
|
]),
|
|
6390
6390
|
c("div", sM, [
|
|
6391
6391
|
M[6] || (M[6] = c("label", null, "Visibility : ", -1)),
|
|
6392
|
-
c("span", null, _(o.roundPrecision((
|
|
6392
|
+
c("span", null, _(o.roundPrecision((X = (R = p.currentHourData) == null ? void 0 : R.weather) == null ? void 0 : X.visibility, 0)) + " nm", 1)
|
|
6393
6393
|
]),
|
|
6394
6394
|
c("div", lM, [
|
|
6395
6395
|
M[7] || (M[7] = c("label", null, "Wind : ", -1)),
|
|
6396
|
-
c("span", null, _(o.roundPrecision((
|
|
6396
|
+
c("span", null, _(o.roundPrecision((U = (g = (x = p.currentHourData) == null ? void 0 : x.weather) == null ? void 0 : g.wind) == null ? void 0 : U.kts, 1)) + " kts", 1)
|
|
6397
6397
|
])
|
|
6398
6398
|
])
|
|
6399
6399
|
]),
|
|
@@ -6406,15 +6406,15 @@ function JM(z, M, b, O, p, o) {
|
|
|
6406
6406
|
c("div", hM, [
|
|
6407
6407
|
c("div", {
|
|
6408
6408
|
class: J(["menu-item", p.activeIndex === 1 ? "active" : ""]),
|
|
6409
|
-
onClick: M[1] || (M[1] = C0((
|
|
6409
|
+
onClick: M[1] || (M[1] = C0((y) => o.handleSelectTab(1), ["prevent"]))
|
|
6410
6410
|
}, "Basis", 2),
|
|
6411
6411
|
c("div", {
|
|
6412
6412
|
class: J(["menu-item", p.activeIndex === 2 ? "active" : ""]),
|
|
6413
|
-
onClick: M[2] || (M[2] = C0((
|
|
6413
|
+
onClick: M[2] || (M[2] = C0((y) => o.handleSelectTab(2), ["prevent"]))
|
|
6414
6414
|
}, "Wave & Current", 2),
|
|
6415
6415
|
c("div", {
|
|
6416
6416
|
class: J(["menu-item", p.activeIndex === 3 ? "active" : ""]),
|
|
6417
|
-
onClick: M[3] || (M[3] = C0((
|
|
6417
|
+
onClick: M[3] || (M[3] = C0((y) => o.handleSelectTab(3), ["prevent"]))
|
|
6418
6418
|
}, "Sea Surface", 2)
|
|
6419
6419
|
]),
|
|
6420
6420
|
X0(c("table", mM, [
|
|
@@ -6427,11 +6427,11 @@ function JM(z, M, b, O, p, o) {
|
|
|
6427
6427
|
b0("Hours"),
|
|
6428
6428
|
c("span", { class: "unit" }, "(LT)")
|
|
6429
6429
|
], -1)),
|
|
6430
|
-
(l(!0), f(K, null, $(p.tableData.hours, (
|
|
6430
|
+
(l(!0), f(K, null, $(p.tableData.hours, (y) => (l(), f("th", {
|
|
6431
6431
|
rowspan: "1",
|
|
6432
6432
|
colspan: "1",
|
|
6433
6433
|
key: Math.random()
|
|
6434
|
-
}, _(o.computeHourL(
|
|
6434
|
+
}, _(o.computeHourL(y)), 1))), 128))
|
|
6435
6435
|
]),
|
|
6436
6436
|
c("tr", BM, [
|
|
6437
6437
|
M[9] || (M[9] = c("th", {
|
|
@@ -6442,11 +6442,11 @@ function JM(z, M, b, O, p, o) {
|
|
|
6442
6442
|
b0("UTC"),
|
|
6443
6443
|
c("span", { class: "unit" })
|
|
6444
6444
|
], -1)),
|
|
6445
|
-
(l(!0), f(K, null, $(p.tableData.hours, (
|
|
6445
|
+
(l(!0), f(K, null, $(p.tableData.hours, (y) => (l(), f("th", {
|
|
6446
6446
|
rowspan: "1",
|
|
6447
6447
|
colspan: "1",
|
|
6448
6448
|
key: Math.random()
|
|
6449
|
-
}, _(o.computeHourZ(
|
|
6449
|
+
}, _(o.computeHourZ(y)), 1))), 128))
|
|
6450
6450
|
]),
|
|
6451
6451
|
c("tr", yM, [
|
|
6452
6452
|
M[10] || (M[10] = c("th", {
|
|
@@ -6454,7 +6454,7 @@ function JM(z, M, b, O, p, o) {
|
|
|
6454
6454
|
colspan: "1",
|
|
6455
6455
|
class: "tr-title"
|
|
6456
6456
|
}, null, -1)),
|
|
6457
|
-
(l(!0), f(K, null, $(p.tableData.weatherUrls, (
|
|
6457
|
+
(l(!0), f(K, null, $(p.tableData.weatherUrls, (y, C) => (l(), f("th", {
|
|
6458
6458
|
rowspan: "1",
|
|
6459
6459
|
colspan: "1",
|
|
6460
6460
|
key: Math.random()
|
|
@@ -6465,12 +6465,12 @@ function JM(z, M, b, O, p, o) {
|
|
|
6465
6465
|
content: p.tableData.weatherNames[C],
|
|
6466
6466
|
"show-after": 500
|
|
6467
6467
|
}, {
|
|
6468
|
-
default:
|
|
6469
|
-
|
|
6468
|
+
default: A0(() => [
|
|
6469
|
+
y ? (l(), f("img", {
|
|
6470
6470
|
key: 0,
|
|
6471
6471
|
class: "iconfont weather-icon",
|
|
6472
|
-
src:
|
|
6473
|
-
}, null, 8, gM)) :
|
|
6472
|
+
src: y
|
|
6473
|
+
}, null, 8, gM)) : F("", !0)
|
|
6474
6474
|
]),
|
|
6475
6475
|
_: 2
|
|
6476
6476
|
}, 1032, ["content"])
|
|
@@ -6485,11 +6485,11 @@ function JM(z, M, b, O, p, o) {
|
|
|
6485
6485
|
b0("Temp"),
|
|
6486
6486
|
c("span", { class: "unit" }, "°C")
|
|
6487
6487
|
], -1)),
|
|
6488
|
-
(l(!0), f(K, null, $(p.tableData.temp, (
|
|
6488
|
+
(l(!0), f(K, null, $(p.tableData.temp, (y) => (l(), f("td", {
|
|
6489
6489
|
rowspan: "1",
|
|
6490
6490
|
colspan: "1",
|
|
6491
6491
|
key: Math.random()
|
|
6492
|
-
}, _(
|
|
6492
|
+
}, _(y), 1))), 128))
|
|
6493
6493
|
]),
|
|
6494
6494
|
c("tr", vM, [
|
|
6495
6495
|
M[12] || (M[12] = c("td", {
|
|
@@ -6500,11 +6500,11 @@ function JM(z, M, b, O, p, o) {
|
|
|
6500
6500
|
b0("Precip"),
|
|
6501
6501
|
c("span", { class: "unit" }, "mm")
|
|
6502
6502
|
], -1)),
|
|
6503
|
-
(l(!0), f(K, null, $(p.tableData.precip1h, (
|
|
6503
|
+
(l(!0), f(K, null, $(p.tableData.precip1h, (y) => (l(), f("td", {
|
|
6504
6504
|
rowspan: "1",
|
|
6505
6505
|
colspan: "1",
|
|
6506
6506
|
key: Math.random()
|
|
6507
|
-
}, _(
|
|
6507
|
+
}, _(y), 1))), 128))
|
|
6508
6508
|
]),
|
|
6509
6509
|
c("tr", TM, [
|
|
6510
6510
|
M[13] || (M[13] = c("td", {
|
|
@@ -6515,11 +6515,11 @@ function JM(z, M, b, O, p, o) {
|
|
|
6515
6515
|
b0("Visibility"),
|
|
6516
6516
|
c("span", { class: "unit" }, "nm")
|
|
6517
6517
|
], -1)),
|
|
6518
|
-
(l(!0), f(K, null, $(p.tableData.visibility, (
|
|
6518
|
+
(l(!0), f(K, null, $(p.tableData.visibility, (y) => (l(), f("td", {
|
|
6519
6519
|
rowspan: "1",
|
|
6520
6520
|
colspan: "1",
|
|
6521
6521
|
key: Math.random()
|
|
6522
|
-
}, _(
|
|
6522
|
+
}, _(y), 1))), 128))
|
|
6523
6523
|
]),
|
|
6524
6524
|
c("tr", wM, [
|
|
6525
6525
|
M[14] || (M[14] = c("td", {
|
|
@@ -6530,17 +6530,17 @@ function JM(z, M, b, O, p, o) {
|
|
|
6530
6530
|
b0("Wind"),
|
|
6531
6531
|
c("span", { class: "unit" }, "kts")
|
|
6532
6532
|
], -1)),
|
|
6533
|
-
(l(!0), f(K, null, $(p.tableData.windSpeed, (
|
|
6533
|
+
(l(!0), f(K, null, $(p.tableData.windSpeed, (y, C) => (l(), f("td", {
|
|
6534
6534
|
rowspan: "1",
|
|
6535
6535
|
colspan: "1",
|
|
6536
6536
|
key: Math.random()
|
|
6537
6537
|
}, [
|
|
6538
|
-
isNaN(p.tableData.windDir[C]) ?
|
|
6538
|
+
isNaN(p.tableData.windDir[C]) ? F("", !0) : (l(), f("span", {
|
|
6539
6539
|
key: 0,
|
|
6540
6540
|
class: "iconfont icon blue",
|
|
6541
|
-
style:
|
|
6541
|
+
style: o0({ display: "inline-block", transform: `rotate(${p.tableData.windDir[C]}deg)` })
|
|
6542
6542
|
}, "", 4)),
|
|
6543
|
-
c("span", null, _(
|
|
6543
|
+
c("span", null, _(y), 1)
|
|
6544
6544
|
]))), 128))
|
|
6545
6545
|
])
|
|
6546
6546
|
], 512), [
|
|
@@ -6556,11 +6556,11 @@ function JM(z, M, b, O, p, o) {
|
|
|
6556
6556
|
b0("Hours"),
|
|
6557
6557
|
c("span", { class: "unit" }, "(LT)")
|
|
6558
6558
|
], -1)),
|
|
6559
|
-
(l(!0), f(K, null, $(p.tableData.hours, (
|
|
6559
|
+
(l(!0), f(K, null, $(p.tableData.hours, (y) => (l(), f("th", {
|
|
6560
6560
|
rowspan: "1",
|
|
6561
6561
|
colspan: "1",
|
|
6562
6562
|
key: Math.random()
|
|
6563
|
-
}, _(o.computeHourL(
|
|
6563
|
+
}, _(o.computeHourL(y)), 1))), 128))
|
|
6564
6564
|
]),
|
|
6565
6565
|
c("tr", xM, [
|
|
6566
6566
|
M[16] || (M[16] = c("th", {
|
|
@@ -6571,18 +6571,18 @@ function JM(z, M, b, O, p, o) {
|
|
|
6571
6571
|
b0("UTC"),
|
|
6572
6572
|
c("span", { class: "unit" })
|
|
6573
6573
|
], -1)),
|
|
6574
|
-
(l(!0), f(K, null, $(p.tableData.hours, (
|
|
6574
|
+
(l(!0), f(K, null, $(p.tableData.hours, (y) => (l(), f("th", {
|
|
6575
6575
|
rowspan: "1",
|
|
6576
6576
|
colspan: "1",
|
|
6577
6577
|
key: Math.random()
|
|
6578
|
-
}, _(o.computeHourZ(
|
|
6578
|
+
}, _(o.computeHourZ(y)), 1))), 128))
|
|
6579
6579
|
]),
|
|
6580
6580
|
c("tr", SM, [
|
|
6581
6581
|
M[17] || (M[17] = c("th", {
|
|
6582
6582
|
rowspan: "1",
|
|
6583
6583
|
colspan: "1"
|
|
6584
6584
|
}, null, -1)),
|
|
6585
|
-
(l(!0), f(K, null, $(p.tableData.weatherUrls, (
|
|
6585
|
+
(l(!0), f(K, null, $(p.tableData.weatherUrls, (y, C) => (l(), f("th", {
|
|
6586
6586
|
rowspan: "1",
|
|
6587
6587
|
colspan: "1",
|
|
6588
6588
|
key: Math.random()
|
|
@@ -6593,12 +6593,12 @@ function JM(z, M, b, O, p, o) {
|
|
|
6593
6593
|
content: p.tableData.weatherNames[C],
|
|
6594
6594
|
"show-after": 500
|
|
6595
6595
|
}, {
|
|
6596
|
-
default:
|
|
6597
|
-
|
|
6596
|
+
default: A0(() => [
|
|
6597
|
+
y ? (l(), f("img", {
|
|
6598
6598
|
key: 0,
|
|
6599
6599
|
class: "iconfont weather-icon",
|
|
6600
|
-
src:
|
|
6601
|
-
}, null, 8, EM)) :
|
|
6600
|
+
src: y
|
|
6601
|
+
}, null, 8, EM)) : F("", !0)
|
|
6602
6602
|
]),
|
|
6603
6603
|
_: 2
|
|
6604
6604
|
}, 1032, ["content"])
|
|
@@ -6613,17 +6613,17 @@ function JM(z, M, b, O, p, o) {
|
|
|
6613
6613
|
b0("Sig Wave"),
|
|
6614
6614
|
c("span", { class: "unit" }, "m")
|
|
6615
6615
|
], -1)),
|
|
6616
|
-
(l(!0), f(K, null, $(p.tableData.sigwaveHeight, (
|
|
6616
|
+
(l(!0), f(K, null, $(p.tableData.sigwaveHeight, (y, C) => (l(), f("td", {
|
|
6617
6617
|
rowspan: "1",
|
|
6618
6618
|
colspan: "1",
|
|
6619
6619
|
key: Math.random()
|
|
6620
6620
|
}, [
|
|
6621
|
-
isNaN(p.tableData.sigwaveDir[C]) ?
|
|
6621
|
+
isNaN(p.tableData.sigwaveDir[C]) ? F("", !0) : (l(), f("span", {
|
|
6622
6622
|
key: 0,
|
|
6623
6623
|
class: "iconfont icon blue",
|
|
6624
|
-
style:
|
|
6624
|
+
style: o0({ display: "inline-block", transform: `rotate(${p.tableData.sigwaveDir[C]}deg)` })
|
|
6625
6625
|
}, "", 4)),
|
|
6626
|
-
c("span", null, _(
|
|
6626
|
+
c("span", null, _(y), 1)
|
|
6627
6627
|
]))), 128))
|
|
6628
6628
|
]),
|
|
6629
6629
|
c("tr", kM, [
|
|
@@ -6635,17 +6635,17 @@ function JM(z, M, b, O, p, o) {
|
|
|
6635
6635
|
b0("Wind Wave"),
|
|
6636
6636
|
c("span", { class: "unit" }, "m")
|
|
6637
6637
|
], -1)),
|
|
6638
|
-
(l(!0), f(K, null, $(p.tableData.windwaveHeight, (
|
|
6638
|
+
(l(!0), f(K, null, $(p.tableData.windwaveHeight, (y, C) => (l(), f("td", {
|
|
6639
6639
|
rowspan: "1",
|
|
6640
6640
|
colspan: "1",
|
|
6641
6641
|
key: Math.random()
|
|
6642
6642
|
}, [
|
|
6643
|
-
isNaN(p.tableData.sigwaveDir[C]) ?
|
|
6643
|
+
isNaN(p.tableData.sigwaveDir[C]) ? F("", !0) : (l(), f("span", {
|
|
6644
6644
|
key: 0,
|
|
6645
6645
|
class: "iconfont icon orange",
|
|
6646
|
-
style:
|
|
6646
|
+
style: o0({ display: "inline-block", transform: `rotate(${p.tableData.sigwaveDir[C]}deg)` })
|
|
6647
6647
|
}, "", 4)),
|
|
6648
|
-
c("span", null, _(
|
|
6648
|
+
c("span", null, _(y), 1)
|
|
6649
6649
|
]))), 128))
|
|
6650
6650
|
]),
|
|
6651
6651
|
c("tr", DM, [
|
|
@@ -6657,17 +6657,17 @@ function JM(z, M, b, O, p, o) {
|
|
|
6657
6657
|
b0("Swell"),
|
|
6658
6658
|
c("span", { class: "unit" }, "m")
|
|
6659
6659
|
], -1)),
|
|
6660
|
-
(l(!0), f(K, null, $(p.tableData.swellHeight, (
|
|
6660
|
+
(l(!0), f(K, null, $(p.tableData.swellHeight, (y, C) => (l(), f("td", {
|
|
6661
6661
|
rowspan: "1",
|
|
6662
6662
|
colspan: "1",
|
|
6663
6663
|
key: Math.random()
|
|
6664
6664
|
}, [
|
|
6665
|
-
isNaN(p.tableData.swellDir[C]) ?
|
|
6665
|
+
isNaN(p.tableData.swellDir[C]) ? F("", !0) : (l(), f("span", {
|
|
6666
6666
|
key: 0,
|
|
6667
6667
|
class: "iconfont icon orange",
|
|
6668
|
-
style:
|
|
6668
|
+
style: o0({ display: "inline-block", transform: `rotate(${p.tableData.swellDir[C]}deg)` })
|
|
6669
6669
|
}, "", 4)),
|
|
6670
|
-
c("span", null, _(
|
|
6670
|
+
c("span", null, _(y), 1)
|
|
6671
6671
|
]))), 128))
|
|
6672
6672
|
]),
|
|
6673
6673
|
c("tr", IM, [
|
|
@@ -6679,18 +6679,18 @@ function JM(z, M, b, O, p, o) {
|
|
|
6679
6679
|
b0("Current"),
|
|
6680
6680
|
c("span", { class: "unit" }, "kts")
|
|
6681
6681
|
], -1)),
|
|
6682
|
-
(l(!0), f(K, null, $(p.tableData.currentSpeed, (
|
|
6682
|
+
(l(!0), f(K, null, $(p.tableData.currentSpeed, (y, C) => (l(), f("td", {
|
|
6683
6683
|
rowspan: "1",
|
|
6684
6684
|
colspan: "1",
|
|
6685
6685
|
key: Math.random()
|
|
6686
6686
|
}, [
|
|
6687
|
-
isNaN(p.tableData.currentDir[C]) ?
|
|
6687
|
+
isNaN(p.tableData.currentDir[C]) ? F("", !0) : (l(), f("span", {
|
|
6688
6688
|
key: 0,
|
|
6689
6689
|
class: "iconfont icon gray",
|
|
6690
6690
|
id: "meteoGrayIcon",
|
|
6691
|
-
style:
|
|
6691
|
+
style: o0({ display: "inline-block", transform: `rotate(${p.tableData.currentDir[C]}deg)` })
|
|
6692
6692
|
}, "", 4)),
|
|
6693
|
-
c("span", null, _(
|
|
6693
|
+
c("span", null, _(y), 1)
|
|
6694
6694
|
]))), 128))
|
|
6695
6695
|
])
|
|
6696
6696
|
], 512), [
|
|
@@ -6706,11 +6706,11 @@ function JM(z, M, b, O, p, o) {
|
|
|
6706
6706
|
b0("Hours"),
|
|
6707
6707
|
c("span", { class: "unit" }, "(LT)")
|
|
6708
6708
|
], -1)),
|
|
6709
|
-
(l(!0), f(K, null, $(p.tableData.hours, (
|
|
6709
|
+
(l(!0), f(K, null, $(p.tableData.hours, (y) => (l(), f("th", {
|
|
6710
6710
|
rowspan: "1",
|
|
6711
6711
|
colspan: "1",
|
|
6712
6712
|
key: Math.random()
|
|
6713
|
-
}, _(o.computeHourL(
|
|
6713
|
+
}, _(o.computeHourL(y)), 1))), 128))
|
|
6714
6714
|
]),
|
|
6715
6715
|
c("tr", FM, [
|
|
6716
6716
|
M[23] || (M[23] = c("th", {
|
|
@@ -6721,11 +6721,11 @@ function JM(z, M, b, O, p, o) {
|
|
|
6721
6721
|
b0("UTC"),
|
|
6722
6722
|
c("span", { class: "unit" })
|
|
6723
6723
|
], -1)),
|
|
6724
|
-
(l(!0), f(K, null, $(p.tableData.hours, (
|
|
6724
|
+
(l(!0), f(K, null, $(p.tableData.hours, (y) => (l(), f("th", {
|
|
6725
6725
|
rowspan: "1",
|
|
6726
6726
|
colspan: "1",
|
|
6727
6727
|
key: Math.random()
|
|
6728
|
-
}, _(o.computeHourZ(
|
|
6728
|
+
}, _(o.computeHourZ(y)), 1))), 128))
|
|
6729
6729
|
]),
|
|
6730
6730
|
c("tr", HM, [
|
|
6731
6731
|
M[24] || (M[24] = c("th", {
|
|
@@ -6733,7 +6733,7 @@ function JM(z, M, b, O, p, o) {
|
|
|
6733
6733
|
colspan: "1",
|
|
6734
6734
|
class: "tr-title"
|
|
6735
6735
|
}, null, -1)),
|
|
6736
|
-
(l(!0), f(K, null, $(p.tableData.weatherUrls, (
|
|
6736
|
+
(l(!0), f(K, null, $(p.tableData.weatherUrls, (y, C) => (l(), f("th", {
|
|
6737
6737
|
rowspan: "1",
|
|
6738
6738
|
colspan: "1",
|
|
6739
6739
|
key: Math.random()
|
|
@@ -6744,12 +6744,12 @@ function JM(z, M, b, O, p, o) {
|
|
|
6744
6744
|
content: p.tableData.weatherNames[C],
|
|
6745
6745
|
"show-after": 500
|
|
6746
6746
|
}, {
|
|
6747
|
-
default:
|
|
6748
|
-
|
|
6747
|
+
default: A0(() => [
|
|
6748
|
+
y ? (l(), f("img", {
|
|
6749
6749
|
key: 0,
|
|
6750
6750
|
class: "iconfont weather-icon",
|
|
6751
|
-
src:
|
|
6752
|
-
}, null, 8, GM)) :
|
|
6751
|
+
src: y
|
|
6752
|
+
}, null, 8, GM)) : F("", !0)
|
|
6753
6753
|
]),
|
|
6754
6754
|
_: 2
|
|
6755
6755
|
}, 1032, ["content"])
|
|
@@ -6764,11 +6764,11 @@ function JM(z, M, b, O, p, o) {
|
|
|
6764
6764
|
b0("SeaLevel"),
|
|
6765
6765
|
c("span", { class: "unit" }, "m")
|
|
6766
6766
|
], -1)),
|
|
6767
|
-
(l(!0), f(K, null, $(p.tableData.seaLevel, (
|
|
6767
|
+
(l(!0), f(K, null, $(p.tableData.seaLevel, (y) => (l(), f("td", {
|
|
6768
6768
|
rowspan: "1",
|
|
6769
6769
|
colspan: "1",
|
|
6770
6770
|
key: Math.random()
|
|
6771
|
-
}, _(
|
|
6771
|
+
}, _(y), 1))), 128))
|
|
6772
6772
|
]),
|
|
6773
6773
|
c("tr", KM, [
|
|
6774
6774
|
M[26] || (M[26] = c("td", {
|
|
@@ -6779,11 +6779,11 @@ function JM(z, M, b, O, p, o) {
|
|
|
6779
6779
|
b0("SeaTemp"),
|
|
6780
6780
|
c("span", { class: "unit" }, "°C")
|
|
6781
6781
|
], -1)),
|
|
6782
|
-
(l(!0), f(K, null, $(p.tableData.seaTemp, (
|
|
6782
|
+
(l(!0), f(K, null, $(p.tableData.seaTemp, (y) => (l(), f("td", {
|
|
6783
6783
|
rowspan: "1",
|
|
6784
6784
|
colspan: "1",
|
|
6785
6785
|
key: Math.random()
|
|
6786
|
-
}, _(
|
|
6786
|
+
}, _(y), 1))), 128))
|
|
6787
6787
|
])
|
|
6788
6788
|
], 512), [
|
|
6789
6789
|
[v0, p.activeIndex === 3]
|
|
@@ -6799,7 +6799,7 @@ function JM(z, M, b, O, p, o) {
|
|
|
6799
6799
|
])
|
|
6800
6800
|
]);
|
|
6801
6801
|
}
|
|
6802
|
-
const QM = /* @__PURE__ */
|
|
6802
|
+
const QM = /* @__PURE__ */ I(pM, [["render", JM], ["__scopeId", "data-v-f1da5f57"]]), $M = {
|
|
6803
6803
|
name: "IdmWarZone",
|
|
6804
6804
|
props: {
|
|
6805
6805
|
map: {
|
|
@@ -6892,7 +6892,7 @@ const QM = /* @__PURE__ */ D(pM, [["render", JM], ["__scopeId", "data-v-51904a9d
|
|
|
6892
6892
|
function ZM(z, M, b, O, p, o) {
|
|
6893
6893
|
return l(), f("div");
|
|
6894
6894
|
}
|
|
6895
|
-
const YM = /* @__PURE__ */
|
|
6895
|
+
const YM = /* @__PURE__ */ I($M, [["render", ZM]]), Mb = {
|
|
6896
6896
|
name: "IdmGmdssArea",
|
|
6897
6897
|
props: {
|
|
6898
6898
|
map: {
|
|
@@ -7015,7 +7015,7 @@ const YM = /* @__PURE__ */ D($M, [["render", ZM]]), Mb = {
|
|
|
7015
7015
|
function bb(z, M, b, O, p, o) {
|
|
7016
7016
|
return l(), f("div");
|
|
7017
7017
|
}
|
|
7018
|
-
const zb = /* @__PURE__ */
|
|
7018
|
+
const zb = /* @__PURE__ */ I(Mb, [["render", bb]]), pb = {
|
|
7019
7019
|
name: "IdmEcaZone",
|
|
7020
7020
|
props: {
|
|
7021
7021
|
map: {
|
|
@@ -7106,7 +7106,7 @@ const zb = /* @__PURE__ */ D(Mb, [["render", bb]]), pb = {
|
|
|
7106
7106
|
function Ob(z, M, b, O, p, o) {
|
|
7107
7107
|
return l(), f("div");
|
|
7108
7108
|
}
|
|
7109
|
-
const ob = /* @__PURE__ */
|
|
7109
|
+
const ob = /* @__PURE__ */ I(pb, [["render", Ob]]);
|
|
7110
7110
|
const cb = {
|
|
7111
7111
|
name: "IdmAlertZone",
|
|
7112
7112
|
props: {
|
|
@@ -7150,7 +7150,7 @@ const cb = {
|
|
|
7150
7150
|
if (b) {
|
|
7151
7151
|
this.showZone = !0, this.form = { ...b.properties };
|
|
7152
7152
|
const p = document.getElementById("idm-gl3-zone-info");
|
|
7153
|
-
this.marker ? this.marker.setLngLat([z.lngLat.lng, z.lngLat.lat]) : this.marker = new
|
|
7153
|
+
this.marker ? this.marker.setLngLat([z.lngLat.lng, z.lngLat.lat]) : this.marker = new g0.Marker(p).setLngLat([z.lngLat.lng, z.lngLat.lat]).setOffset([0, 0]).addTo(this.map);
|
|
7154
7154
|
}
|
|
7155
7155
|
},
|
|
7156
7156
|
handleRender() {
|
|
@@ -7253,7 +7253,7 @@ function tb(z, M, b, O, p, o) {
|
|
|
7253
7253
|
[v0, p.showZone]
|
|
7254
7254
|
]);
|
|
7255
7255
|
}
|
|
7256
|
-
const ab = /* @__PURE__ */
|
|
7256
|
+
const ab = /* @__PURE__ */ I(cb, [["render", tb]]);
|
|
7257
7257
|
const qb = {
|
|
7258
7258
|
name: "IdmPort",
|
|
7259
7259
|
props: {
|
|
@@ -7307,7 +7307,7 @@ const qb = {
|
|
|
7307
7307
|
if (b) {
|
|
7308
7308
|
this.showPort = !0, this.form = { ...b.properties }, this.form.lng = b.geometry.coordinates[0], this.form.lat = b.geometry.coordinates[1];
|
|
7309
7309
|
const p = document.getElementById("port-info");
|
|
7310
|
-
this.marker ? this.marker.setLngLat([z.lngLat.lng, z.lngLat.lat]) : this.marker = new
|
|
7310
|
+
this.marker ? this.marker.setLngLat([z.lngLat.lng, z.lngLat.lat]) : this.marker = new g0.Marker(p).setLngLat([z.lngLat.lng, z.lngLat.lat]).setOffset([0, -85]).addTo(this.map);
|
|
7311
7311
|
}
|
|
7312
7312
|
},
|
|
7313
7313
|
handleEmit() {
|
|
@@ -7380,7 +7380,7 @@ function lb(z, M, b, O, p, o) {
|
|
|
7380
7380
|
[v0, p.showPort]
|
|
7381
7381
|
]);
|
|
7382
7382
|
}
|
|
7383
|
-
const fb = /* @__PURE__ */
|
|
7383
|
+
const fb = /* @__PURE__ */ I(qb, [["render", lb], ["__scopeId", "data-v-c07e4c45"]]), ub = {
|
|
7384
7384
|
name: "IdmLoadLine",
|
|
7385
7385
|
props: {
|
|
7386
7386
|
map: {
|
|
@@ -7453,7 +7453,7 @@ const fb = /* @__PURE__ */ D(qb, [["render", lb], ["__scopeId", "data-v-c07e4c45
|
|
|
7453
7453
|
function Lb(z, M, b, O, p, o) {
|
|
7454
7454
|
return l(), f("div");
|
|
7455
7455
|
}
|
|
7456
|
-
const Rb = /* @__PURE__ */
|
|
7456
|
+
const Rb = /* @__PURE__ */ I(ub, [["render", Lb]]), hb = {
|
|
7457
7457
|
name: "IdmTimezone",
|
|
7458
7458
|
props: {
|
|
7459
7459
|
map: {
|
|
@@ -7621,7 +7621,7 @@ const Rb = /* @__PURE__ */ D(ub, [["render", Lb]]), hb = {
|
|
|
7621
7621
|
function mb(z, M, b, O, p, o) {
|
|
7622
7622
|
return l(), f("div");
|
|
7623
7623
|
}
|
|
7624
|
-
const Nb = /* @__PURE__ */
|
|
7624
|
+
const Nb = /* @__PURE__ */ I(hb, [["render", mb]]), Bb = {
|
|
7625
7625
|
name: "IdmVoluntaryReportingArea",
|
|
7626
7626
|
props: {
|
|
7627
7627
|
map: {
|
|
@@ -7712,7 +7712,7 @@ const Nb = /* @__PURE__ */ D(hb, [["render", mb]]), Bb = {
|
|
|
7712
7712
|
function yb(z, M, b, O, p, o) {
|
|
7713
7713
|
return l(), f("div");
|
|
7714
7714
|
}
|
|
7715
|
-
const gb = /* @__PURE__ */
|
|
7715
|
+
const gb = /* @__PURE__ */ I(Bb, [["render", yb]]), Xb = {
|
|
7716
7716
|
name: "IdmSpecialArea",
|
|
7717
7717
|
props: {
|
|
7718
7718
|
map: {
|
|
@@ -7805,7 +7805,7 @@ const gb = /* @__PURE__ */ D(Bb, [["render", yb]]), Xb = {
|
|
|
7805
7805
|
function vb(z, M, b, O, p, o) {
|
|
7806
7806
|
return l(), f("div");
|
|
7807
7807
|
}
|
|
7808
|
-
const Tb = /* @__PURE__ */
|
|
7808
|
+
const Tb = /* @__PURE__ */ I(Xb, [["render", vb]]), wb = {
|
|
7809
7809
|
name: "IdmTerminator",
|
|
7810
7810
|
props: {
|
|
7811
7811
|
map: {
|
|
@@ -7857,7 +7857,7 @@ const Tb = /* @__PURE__ */ D(Xb, [["render", vb]]), wb = {
|
|
|
7857
7857
|
function Cb(z, M, b, O, p, o) {
|
|
7858
7858
|
return l(), f("div");
|
|
7859
7859
|
}
|
|
7860
|
-
const _b = /* @__PURE__ */
|
|
7860
|
+
const _b = /* @__PURE__ */ I(wb, [["render", Cb]]);
|
|
7861
7861
|
const xb = {
|
|
7862
7862
|
name: "IdmLatLng",
|
|
7863
7863
|
props: {
|
|
@@ -8018,14 +8018,14 @@ function Sb(z, M, b, O, p, o) {
|
|
|
8018
8018
|
return p.lngLat ? (l(), f("div", {
|
|
8019
8019
|
key: 0,
|
|
8020
8020
|
class: "lat-lng-tip",
|
|
8021
|
-
style:
|
|
8021
|
+
style: o0({ right: p.right + "px", bottom: b.bottom })
|
|
8022
8022
|
}, [
|
|
8023
8023
|
c("span", null, _(p.lngLat.lat.pretty), 1),
|
|
8024
8024
|
M[0] || (M[0] = c("span", null, ", ", -1)),
|
|
8025
8025
|
c("span", null, _(p.lngLat.lng.pretty), 1)
|
|
8026
|
-
], 4)) :
|
|
8026
|
+
], 4)) : F("", !0);
|
|
8027
8027
|
}
|
|
8028
|
-
const H0 = /* @__PURE__ */
|
|
8028
|
+
const H0 = /* @__PURE__ */ I(xb, [["render", Sb], ["__scopeId", "data-v-ad66a24c"]]), Eb = {
|
|
8029
8029
|
name: "IdmMeasure",
|
|
8030
8030
|
props: {
|
|
8031
8031
|
map: {
|
|
@@ -8129,7 +8129,7 @@ const H0 = /* @__PURE__ */ D(xb, [["render", Sb], ["__scopeId", "data-v-ad66a24c
|
|
|
8129
8129
|
const t = this.geojson.filter((q) => q.id === M.split("-")[0])[0].features.filter((q) => q.geometry.type === "Point");
|
|
8130
8130
|
if (t.length > 2 && t.filter((r) => r.properties.id === (M == null ? void 0 : M.split("-")[1]))[0]) {
|
|
8131
8131
|
const r = document.createElement("div");
|
|
8132
|
-
r.className = "point-contextmenu-marker", r.innerHTML = `<span id="del-${M}" class="del-point">Del</span>`, this.contextmenu = new
|
|
8132
|
+
r.className = "point-contextmenu-marker", r.innerHTML = `<span id="del-${M}" class="del-point">Del</span>`, this.contextmenu = new g0.Marker(r).setOffset([24, 0]).setLngLat([z.lngLat.lng, z.lngLat.lat]).addTo(this.map);
|
|
8133
8133
|
}
|
|
8134
8134
|
}
|
|
8135
8135
|
},
|
|
@@ -8165,10 +8165,10 @@ const H0 = /* @__PURE__ */ D(xb, [["render", Sb], ["__scopeId", "data-v-ad66a24c
|
|
|
8165
8165
|
let b = 0;
|
|
8166
8166
|
const O = [];
|
|
8167
8167
|
for (let p = 1; p < M.length; p++) {
|
|
8168
|
-
const o = M[p - 1], e = M[p], t = o.properties, q = { lng: o.geometry.coordinates[0], lat: o.geometry.coordinates[1] }, r = { lng: e.geometry.coordinates[0], lat: e.geometry.coordinates[1] }, a =
|
|
8168
|
+
const o = M[p - 1], e = M[p], t = o.properties, q = { lng: o.geometry.coordinates[0], lat: o.geometry.coordinates[1] }, r = { lng: e.geometry.coordinates[0], lat: e.geometry.coordinates[1] }, a = B0.calculateDistance(q, r, t.mode === "RL", 2), i = B0.calculateBearing(q, r, t.mode === "RL", 2);
|
|
8169
8169
|
b = M0.roundPrecision(b + a, 2);
|
|
8170
8170
|
let L;
|
|
8171
|
-
t.mode === "RL" ? L = M0.convertToMonotonicLng([q, r]) : L = M0.convertToMonotonicLng(
|
|
8171
|
+
t.mode === "RL" ? L = M0.convertToMonotonicLng([q, r]) : L = M0.convertToMonotonicLng(B0.interpolateCoordinates(q, r, 200));
|
|
8172
8172
|
const n = w.lineString(L.map((h) => [h.lng, h.lat]));
|
|
8173
8173
|
n.properties.dist = a, n.properties.bearing = i, n.properties.total = b, O.push(n);
|
|
8174
8174
|
}
|
|
@@ -8181,17 +8181,17 @@ const H0 = /* @__PURE__ */ D(xb, [["render", Sb], ["__scopeId", "data-v-ad66a24c
|
|
|
8181
8181
|
let o, e;
|
|
8182
8182
|
if (M) {
|
|
8183
8183
|
const q = M.properties, r = { lng: M.geometry.coordinates[0], lat: M.geometry.coordinates[1] }, a = { lng: b.lng, lat: b.lat };
|
|
8184
|
-
o =
|
|
8184
|
+
o = B0.calculateDistance(r, a, q.mode === "RL", 2), e = B0.calculateBearing(r, a, q.mode === "RL", 2);
|
|
8185
8185
|
let i;
|
|
8186
|
-
q.mode === "RL" ? i = M0.convertToMonotonicLng([r, a]) : i = M0.convertToMonotonicLng(
|
|
8186
|
+
q.mode === "RL" ? i = M0.convertToMonotonicLng([r, a]) : i = M0.convertToMonotonicLng(B0.interpolateCoordinates(r, a, 200));
|
|
8187
8187
|
const L = w.lineString(i.map((n) => [n.lng, n.lat]));
|
|
8188
8188
|
L.properties.dist = o, L.properties.bearing = e, p.features.push(L);
|
|
8189
8189
|
}
|
|
8190
8190
|
if (O) {
|
|
8191
8191
|
const q = b.properties, r = b, a = { lng: O.geometry.coordinates[0], lat: O.geometry.coordinates[1] };
|
|
8192
|
-
o =
|
|
8192
|
+
o = B0.calculateDistance(r, a, q.mode === "RL", 2), e = B0.calculateBearing(r, a, q.mode === "RL", 2);
|
|
8193
8193
|
let i;
|
|
8194
|
-
q.mode === "RL" ? i = M0.convertToMonotonicLng([r, a]) : i = M0.convertToMonotonicLng(
|
|
8194
|
+
q.mode === "RL" ? i = M0.convertToMonotonicLng([r, a]) : i = M0.convertToMonotonicLng(B0.interpolateCoordinates(r, a, 200));
|
|
8195
8195
|
const L = w.lineString(i.map((n) => [n.lng, n.lat]));
|
|
8196
8196
|
L.properties.dist = o, L.properties.bearing = e, p.features.push(L);
|
|
8197
8197
|
}
|
|
@@ -8237,7 +8237,7 @@ const H0 = /* @__PURE__ */ D(xb, [["render", Sb], ["__scopeId", "data-v-ad66a24c
|
|
|
8237
8237
|
this.tipMarker._element.innerHTML = t, this.tipMarker.setLngLat([b.lng, b.lat]);
|
|
8238
8238
|
else {
|
|
8239
8239
|
const q = document.createElement("div");
|
|
8240
|
-
q.className = "tip-marker", q.innerHTML = t, this.tipMarker = new
|
|
8240
|
+
q.className = "tip-marker", q.innerHTML = t, this.tipMarker = new g0.Marker(q).setOffset([140, 0]).setLngLat([b.lng, b.lat]).addTo(this.map);
|
|
8241
8241
|
}
|
|
8242
8242
|
},
|
|
8243
8243
|
handleMove(z) {
|
|
@@ -8295,12 +8295,12 @@ const H0 = /* @__PURE__ */ D(xb, [["render", Sb], ["__scopeId", "data-v-ad66a24c
|
|
|
8295
8295
|
for (const e of o) {
|
|
8296
8296
|
const t = document.createElement("div");
|
|
8297
8297
|
t.id = `${z.id}-${e.properties.id}`, t.className = `${z.closed ? "point-marker closed" : "point-marker"}`, t.innerHTML = '<div class="marker-circle"></div>';
|
|
8298
|
-
const q = new
|
|
8298
|
+
const q = new g0.Marker({ element: t, draggable: !0, contextmenu: !0 }).setLngLat(e.geometry.coordinates).addTo(this.map);
|
|
8299
8299
|
q.on("drag", this.handleDrag), q.on("dragend", this.handleDragEnd), this.pointMarkers[z.id] ? this.pointMarkers[z.id].push(q) : this.pointMarkers[z.id] = [q];
|
|
8300
8300
|
}
|
|
8301
8301
|
if (z.closed) {
|
|
8302
8302
|
const e = o.at(-1), q = z.features.filter((a) => a.geometry.type === "LineString").at(-1), r = document.createElement("div");
|
|
8303
|
-
r.className = "point-summary-marker", r.innerHTML = `<div id="${z.id}" class="marker-close">×</div><div class="marker-label">Tol: ${q.properties.total}nm</div>`, this.closeMarkers[z.id] = new
|
|
8303
|
+
r.className = "point-summary-marker", r.innerHTML = `<div id="${z.id}" class="marker-close">×</div><div class="marker-label">Tol: ${q.properties.total}nm</div>`, this.closeMarkers[z.id] = new g0.Marker(r).setOffset([60, 0]).setLngLat(e.geometry.coordinates).addTo(this.map);
|
|
8304
8304
|
}
|
|
8305
8305
|
}
|
|
8306
8306
|
},
|
|
@@ -8316,7 +8316,7 @@ const H0 = /* @__PURE__ */ D(xb, [["render", Sb], ["__scopeId", "data-v-ad66a24c
|
|
|
8316
8316
|
function Pb(z, M, b, O, p, o) {
|
|
8317
8317
|
return l(), f("div");
|
|
8318
8318
|
}
|
|
8319
|
-
const kb = /* @__PURE__ */
|
|
8319
|
+
const kb = /* @__PURE__ */ I(Eb, [["render", Pb]]);
|
|
8320
8320
|
const Db = {
|
|
8321
8321
|
name: "IdmENC",
|
|
8322
8322
|
props: {
|
|
@@ -8375,7 +8375,7 @@ function Ub(z, M, b, O, p, o) {
|
|
|
8375
8375
|
return b.enabled && b.permission & p.helper.LEVEL.Supper ? (l(), f("div", Ib, [
|
|
8376
8376
|
c("div", {
|
|
8377
8377
|
class: "menu-bar-box",
|
|
8378
|
-
style:
|
|
8378
|
+
style: o0({ position: "absolute", right: p.right + "px", bottom: b.bottom })
|
|
8379
8379
|
}, [
|
|
8380
8380
|
c("div", jb, [
|
|
8381
8381
|
T(e, {
|
|
@@ -8384,7 +8384,7 @@ function Ub(z, M, b, O, p, o) {
|
|
|
8384
8384
|
content: "Hifleet",
|
|
8385
8385
|
"show-after": 1e3
|
|
8386
8386
|
}, {
|
|
8387
|
-
default:
|
|
8387
|
+
default: A0(() => [
|
|
8388
8388
|
c("div", {
|
|
8389
8389
|
class: J(p.vendor === "hi" ? "menu-icon active" : "menu-icon"),
|
|
8390
8390
|
onClick: M[0] || (M[0] = (t) => p.vendor = "hi")
|
|
@@ -8400,7 +8400,7 @@ function Ub(z, M, b, O, p, o) {
|
|
|
8400
8400
|
content: "I4insight",
|
|
8401
8401
|
"show-after": 1e3
|
|
8402
8402
|
}, {
|
|
8403
|
-
default:
|
|
8403
|
+
default: A0(() => [
|
|
8404
8404
|
c("div", {
|
|
8405
8405
|
class: J(p.vendor === "i4" ? "menu-icon active" : "menu-icon"),
|
|
8406
8406
|
onClick: M[1] || (M[1] = (t) => p.vendor = "i4")
|
|
@@ -8412,9 +8412,9 @@ function Ub(z, M, b, O, p, o) {
|
|
|
8412
8412
|
})
|
|
8413
8413
|
])
|
|
8414
8414
|
], 4)
|
|
8415
|
-
])) :
|
|
8415
|
+
])) : F("", !0);
|
|
8416
8416
|
}
|
|
8417
|
-
const Fb = /* @__PURE__ */
|
|
8417
|
+
const Fb = /* @__PURE__ */ I(Db, [["render", Ub], ["__scopeId", "data-v-7301123d"]]);
|
|
8418
8418
|
const Hb = {
|
|
8419
8419
|
name: "IdmGLV2",
|
|
8420
8420
|
components: {
|
|
@@ -8501,7 +8501,7 @@ const Hb = {
|
|
|
8501
8501
|
watch: {
|
|
8502
8502
|
ts: {
|
|
8503
8503
|
handler(z, M) {
|
|
8504
|
-
z && M &&
|
|
8504
|
+
z && M && H(z).utc().format("yyyy-MM-DD HH") !== H(M).utc().format("yyyy-MM-DD HH") && this.$nextTick(() => {
|
|
8505
8505
|
this.handleDateChange({ tropicals: !1 });
|
|
8506
8506
|
});
|
|
8507
8507
|
},
|
|
@@ -8591,44 +8591,44 @@ const Hb = {
|
|
|
8591
8591
|
if (this.weatherWeight > 0) {
|
|
8592
8592
|
let u = this.weatherWeight, d;
|
|
8593
8593
|
if (z.tropicals || this.weatherWeight & 256 && (d = this.weatherLayers.tropicals, d && (u -= 256, d.version = Math.random() + 1)), u > 0) {
|
|
8594
|
-
const m = await
|
|
8594
|
+
const m = await y0.get(`${this.gateway}/api/arc/weather/layers/links?l=${u}&v=${this.source}&z=${L}&bbox=${h}&t=${this.ts}`, {
|
|
8595
8595
|
headers: {
|
|
8596
8596
|
Authorization: this.token || this.defaultMeteoToken
|
|
8597
8597
|
}
|
|
8598
8598
|
});
|
|
8599
8599
|
if (O = (/* @__PURE__ */ new Date()).valueOf() - (M + b), console.log("weather links elapsed: ", O, ", total: ", b += O), ((e = m == null ? void 0 : m.data) == null ? void 0 : e.code) === 0) {
|
|
8600
|
-
const R = (t = m == null ? void 0 : m.data) == null ? void 0 : t.data,
|
|
8601
|
-
for (const
|
|
8602
|
-
|
|
8603
|
-
|
|
8600
|
+
const R = (t = m == null ? void 0 : m.data) == null ? void 0 : t.data, X = [];
|
|
8601
|
+
for (const g in R)
|
|
8602
|
+
g === "ice-edge" && (R[g] = "https://idm-hz.oss-cn-hangzhou.aliyuncs.com/test/sea_ice_contours.geojson"), g !== "tropicals" && X.push(
|
|
8603
|
+
y0.get(R[g], {
|
|
8604
8604
|
headers: {
|
|
8605
8605
|
Authorization: this.token || this.defaultMeteoToken,
|
|
8606
|
-
key:
|
|
8606
|
+
key: g
|
|
8607
8607
|
},
|
|
8608
|
-
responseType: /\.(jpg|png)$/.test(R[
|
|
8609
|
-
}).catch((
|
|
8610
|
-
console.log(`[${
|
|
8608
|
+
responseType: /\.(jpg|png)$/.test(R[g]) ? "blob" : "json"
|
|
8609
|
+
}).catch((U) => {
|
|
8610
|
+
console.log(`[${g}] fetch layer error: ${U}`);
|
|
8611
8611
|
})
|
|
8612
8612
|
);
|
|
8613
|
-
const x = await Promise.all(
|
|
8614
|
-
this.weatherLayers = {}, x.map((
|
|
8615
|
-
var C, Z, Y,
|
|
8616
|
-
const
|
|
8617
|
-
|
|
8618
|
-
raw:
|
|
8619
|
-
type: ((
|
|
8613
|
+
const x = await Promise.all(X);
|
|
8614
|
+
this.weatherLayers = {}, x.map((g) => {
|
|
8615
|
+
var C, Z, Y, i0;
|
|
8616
|
+
const U = ((C = g == null ? void 0 : g.data) == null ? void 0 : C.data) || (g == null ? void 0 : g.data), y = (Y = (Z = g == null ? void 0 : g.config) == null ? void 0 : Z.headers) == null ? void 0 : Y.key;
|
|
8617
|
+
y && U && (this.weatherLayers[y] = {
|
|
8618
|
+
raw: U,
|
|
8619
|
+
type: ((i0 = g == null ? void 0 : g.config) == null ? void 0 : i0.responseType) === "blob" ? "image" : "json",
|
|
8620
8620
|
etime: this.ts
|
|
8621
8621
|
});
|
|
8622
|
-
}), R.tropicals &&
|
|
8622
|
+
}), R.tropicals && y0.get(R.tropicals, {
|
|
8623
8623
|
headers: {
|
|
8624
8624
|
Authorization: this.token || this.defaultMeteoToken,
|
|
8625
8625
|
key: "tropicals"
|
|
8626
8626
|
}
|
|
8627
|
-
}).then((
|
|
8627
|
+
}).then((g) => {
|
|
8628
8628
|
var C, Z, Y;
|
|
8629
|
-
const
|
|
8630
|
-
this.weatherLayers[
|
|
8631
|
-
data:
|
|
8629
|
+
const U = I0.convert2Geojson(((C = g == null ? void 0 : g.data) == null ? void 0 : C.data) || (g == null ? void 0 : g.data)), y = (Y = (Z = g == null ? void 0 : g.config) == null ? void 0 : Z.headers) == null ? void 0 : Y.key;
|
|
8630
|
+
this.weatherLayers[y] = {
|
|
8631
|
+
data: U,
|
|
8632
8632
|
active: !0,
|
|
8633
8633
|
cached: !1,
|
|
8634
8634
|
type: "json",
|
|
@@ -8638,20 +8638,20 @@ const Hb = {
|
|
|
8638
8638
|
});
|
|
8639
8639
|
}
|
|
8640
8640
|
if (O = (/* @__PURE__ */ new Date()).valueOf() - (M + b), console.log("weather layers elapsed: ", O, ", total: ", b += O), this.weatherLayers["swell-direction"] || this.weatherLayers["swell-height"]) {
|
|
8641
|
-
const R = (q = this.weatherLayers["swell-direction"]) == null ? void 0 : q.raw,
|
|
8641
|
+
const R = (q = this.weatherLayers["swell-direction"]) == null ? void 0 : q.raw, X = (r = this.weatherLayers["swell-height"]) == null ? void 0 : r.raw;
|
|
8642
8642
|
delete this.weatherLayers["swell-direction"], delete this.weatherLayers["swell-height"], this.weatherLayers.swell = {
|
|
8643
8643
|
type: "json",
|
|
8644
8644
|
direction: R,
|
|
8645
|
-
height: { raw:
|
|
8645
|
+
height: { raw: X },
|
|
8646
8646
|
etime: this.ts
|
|
8647
8647
|
};
|
|
8648
8648
|
}
|
|
8649
8649
|
if (this.weatherLayers["current-direction"] || this.weatherLayers["current-speed"]) {
|
|
8650
|
-
const R = (a = this.weatherLayers["current-direction"]) == null ? void 0 : a.raw,
|
|
8650
|
+
const R = (a = this.weatherLayers["current-direction"]) == null ? void 0 : a.raw, X = (i = this.weatherLayers["current-speed"]) == null ? void 0 : i.raw;
|
|
8651
8651
|
delete this.weatherLayers["current-direction"], delete this.weatherLayers["current-speed"], this.weatherLayers.current = {
|
|
8652
8652
|
type: "json",
|
|
8653
8653
|
direction: R,
|
|
8654
|
-
speed: { raw:
|
|
8654
|
+
speed: { raw: X },
|
|
8655
8655
|
etime: this.ts
|
|
8656
8656
|
};
|
|
8657
8657
|
}
|
|
@@ -8670,7 +8670,7 @@ const Hb = {
|
|
|
8670
8670
|
let e = !1;
|
|
8671
8671
|
if (this.otherWeight & 2048 && (o = this.otherWeight - 2048, e = !0), o) {
|
|
8672
8672
|
if (z.all) {
|
|
8673
|
-
const t = await
|
|
8673
|
+
const t = await y0.get(`${this.gateway}/api/arc/other/layers/links?l=${o}&t=${this.ts}`, {
|
|
8674
8674
|
headers: {
|
|
8675
8675
|
Authorization: this.token || this.defaultMeteoToken
|
|
8676
8676
|
}
|
|
@@ -8679,7 +8679,7 @@ const Hb = {
|
|
|
8679
8679
|
const q = (b = t == null ? void 0 : t.data) == null ? void 0 : b.data, r = [];
|
|
8680
8680
|
for (const i in q)
|
|
8681
8681
|
r.push(
|
|
8682
|
-
|
|
8682
|
+
y0.get(q[i], {
|
|
8683
8683
|
headers: {
|
|
8684
8684
|
Authorization: this.token || this.defaultMeteoToken,
|
|
8685
8685
|
key: i
|
|
@@ -8694,7 +8694,7 @@ const Hb = {
|
|
|
8694
8694
|
});
|
|
8695
8695
|
}
|
|
8696
8696
|
} else if (z.dayNight && o & 1024) {
|
|
8697
|
-
const t = await
|
|
8697
|
+
const t = await y0.get(`${this.gateway}/api/arc/other/layers/links?l=1024&t=${this.ts}`, {
|
|
8698
8698
|
headers: {
|
|
8699
8699
|
Authorization: this.token || this.defaultMeteoToken
|
|
8700
8700
|
}
|
|
@@ -8703,7 +8703,7 @@ const Hb = {
|
|
|
8703
8703
|
const q = (p = t == null ? void 0 : t.data) == null ? void 0 : p.data, r = [];
|
|
8704
8704
|
for (const i in q)
|
|
8705
8705
|
r.push(
|
|
8706
|
-
|
|
8706
|
+
y0.get(q[i], {
|
|
8707
8707
|
headers: {
|
|
8708
8708
|
Authorization: this.token || this.defaultMeteoToken,
|
|
8709
8709
|
key: i
|
|
@@ -8781,23 +8781,23 @@ const Hb = {
|
|
|
8781
8781
|
for (const d in u)
|
|
8782
8782
|
if (d > t && d < q && (!(p <= this.zoom) || d % (p < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
8783
8783
|
const m = u[d].lng;
|
|
8784
|
-
o > e ? m.forEach((R,
|
|
8784
|
+
o > e ? m.forEach((R, X) => {
|
|
8785
8785
|
var x;
|
|
8786
8786
|
if ((R >= o && R <= 180 || R >= -180 && R <= e) && (!(p <= this.zoom) || R % (p < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
8787
|
-
const
|
|
8788
|
-
val: u[d].val[
|
|
8789
|
-
spd: (x = u[d].spd) == null ? void 0 : x[
|
|
8787
|
+
const g = w.point([R, d], {
|
|
8788
|
+
val: u[d].val[X],
|
|
8789
|
+
spd: (x = u[d].spd) == null ? void 0 : x[X]
|
|
8790
8790
|
});
|
|
8791
|
-
h.push(
|
|
8791
|
+
h.push(g);
|
|
8792
8792
|
}
|
|
8793
|
-
}) : m.forEach((R,
|
|
8793
|
+
}) : m.forEach((R, X) => {
|
|
8794
8794
|
var x;
|
|
8795
8795
|
if (R >= o && R <= e && (!(p <= this.zoom) || R % (p < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
8796
|
-
const
|
|
8797
|
-
val: u[d].val[
|
|
8798
|
-
spd: (x = u[d].spd) == null ? void 0 : x[
|
|
8796
|
+
const g = w.point([R, d], {
|
|
8797
|
+
val: u[d].val[X],
|
|
8798
|
+
spd: (x = u[d].spd) == null ? void 0 : x[X]
|
|
8799
8799
|
});
|
|
8800
|
-
h.push(
|
|
8800
|
+
h.push(g);
|
|
8801
8801
|
}
|
|
8802
8802
|
});
|
|
8803
8803
|
}
|
|
@@ -8807,8 +8807,8 @@ const Hb = {
|
|
|
8807
8807
|
if (!d.data) {
|
|
8808
8808
|
const m = [];
|
|
8809
8809
|
for (const R in (i = d.raw) == null ? void 0 : i.LineString) {
|
|
8810
|
-
const
|
|
8811
|
-
for (const x of
|
|
8810
|
+
const X = d.raw.LineString[R];
|
|
8811
|
+
for (const x of X)
|
|
8812
8812
|
m.push(
|
|
8813
8813
|
w.lineString(x, {
|
|
8814
8814
|
val: Number(R)
|
|
@@ -8829,12 +8829,12 @@ const Hb = {
|
|
|
8829
8829
|
if (d) {
|
|
8830
8830
|
if (!d.data) {
|
|
8831
8831
|
const R = [];
|
|
8832
|
-
for (const
|
|
8833
|
-
const x = d.raw.Polygon[
|
|
8834
|
-
for (const
|
|
8832
|
+
for (const X in (L = d.raw) == null ? void 0 : L.Polygon) {
|
|
8833
|
+
const x = d.raw.Polygon[X];
|
|
8834
|
+
for (const g of x)
|
|
8835
8835
|
R.push(
|
|
8836
|
-
w.polygon(
|
|
8837
|
-
val: Number(
|
|
8836
|
+
w.polygon(g, {
|
|
8837
|
+
val: Number(X)
|
|
8838
8838
|
})
|
|
8839
8839
|
);
|
|
8840
8840
|
}
|
|
@@ -8849,19 +8849,19 @@ const Hb = {
|
|
|
8849
8849
|
for (const d in u)
|
|
8850
8850
|
if (d > t && d < q && (!(p <= this.zoom) || d % (p < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
8851
8851
|
const m = u[d].lng;
|
|
8852
|
-
o > e ? m.forEach((R,
|
|
8852
|
+
o > e ? m.forEach((R, X) => {
|
|
8853
8853
|
if ((R >= o && R <= 180 || R >= -180 && R <= e) && (!(p <= this.zoom) || R % (p < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
8854
8854
|
const x = w.point([R, d], {
|
|
8855
|
-
val: u[d].val[
|
|
8856
|
-
spd: u[d].spd[
|
|
8855
|
+
val: u[d].val[X],
|
|
8856
|
+
spd: u[d].spd[X]
|
|
8857
8857
|
});
|
|
8858
8858
|
h.push(x);
|
|
8859
8859
|
}
|
|
8860
|
-
}) : m.forEach((R,
|
|
8860
|
+
}) : m.forEach((R, X) => {
|
|
8861
8861
|
if (R >= o && R <= e && (!(p <= this.zoom) || R % (p < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
8862
8862
|
const x = w.point([R, d], {
|
|
8863
|
-
val: u[d].val[
|
|
8864
|
-
spd: u[d].spd[
|
|
8863
|
+
val: u[d].val[X],
|
|
8864
|
+
spd: u[d].spd[X]
|
|
8865
8865
|
});
|
|
8866
8866
|
h.push(x);
|
|
8867
8867
|
}
|
|
@@ -8877,18 +8877,18 @@ const Hb = {
|
|
|
8877
8877
|
const d = [];
|
|
8878
8878
|
for (const m in u.Polygon) {
|
|
8879
8879
|
const R = u.Polygon[m];
|
|
8880
|
-
for (const
|
|
8880
|
+
for (const X of R)
|
|
8881
8881
|
d.push(
|
|
8882
|
-
w.polygon(
|
|
8882
|
+
w.polygon(X, {
|
|
8883
8883
|
val: Number(m)
|
|
8884
8884
|
})
|
|
8885
8885
|
);
|
|
8886
8886
|
}
|
|
8887
8887
|
for (const m in u.Point) {
|
|
8888
8888
|
const R = u.Point[m];
|
|
8889
|
-
for (const
|
|
8889
|
+
for (const X of R)
|
|
8890
8890
|
d.push(
|
|
8891
|
-
...w.points(
|
|
8891
|
+
...w.points(X, {
|
|
8892
8892
|
val: Number(m)
|
|
8893
8893
|
}).features
|
|
8894
8894
|
);
|
|
@@ -8906,19 +8906,19 @@ const Hb = {
|
|
|
8906
8906
|
const d = [];
|
|
8907
8907
|
for (const m in u.LineString) {
|
|
8908
8908
|
const R = u.LineString[m];
|
|
8909
|
-
for (const
|
|
8909
|
+
for (const X of R)
|
|
8910
8910
|
d.push(
|
|
8911
|
-
w.lineString(
|
|
8911
|
+
w.lineString(X, {
|
|
8912
8912
|
val: Number(m)
|
|
8913
8913
|
})
|
|
8914
8914
|
);
|
|
8915
8915
|
}
|
|
8916
8916
|
for (const m in u.Point)
|
|
8917
|
-
u.Point[m].lng.forEach((R,
|
|
8917
|
+
u.Point[m].lng.forEach((R, X) => {
|
|
8918
8918
|
R = M0.convertToStdLng(R), d.push(
|
|
8919
8919
|
w.point([R, m], {
|
|
8920
|
-
val: u.Point[m].val[
|
|
8921
|
-
type: u.Point[m].type[
|
|
8920
|
+
val: u.Point[m].val[X],
|
|
8921
|
+
type: u.Point[m].type[X]
|
|
8922
8922
|
})
|
|
8923
8923
|
);
|
|
8924
8924
|
});
|
|
@@ -8935,9 +8935,9 @@ const Hb = {
|
|
|
8935
8935
|
const d = [];
|
|
8936
8936
|
for (const m in u.LineString) {
|
|
8937
8937
|
const R = u.LineString[m];
|
|
8938
|
-
for (const
|
|
8938
|
+
for (const X of R)
|
|
8939
8939
|
d.push(
|
|
8940
|
-
w.lineString(
|
|
8940
|
+
w.lineString(X, {
|
|
8941
8941
|
val: Number(m)
|
|
8942
8942
|
})
|
|
8943
8943
|
);
|
|
@@ -9015,8 +9015,8 @@ const Hb = {
|
|
|
9015
9015
|
}
|
|
9016
9016
|
},
|
|
9017
9017
|
handle3dToggle(z) {
|
|
9018
|
-
var M, b, O, p, o, e, t, q, r, a, i, L, n, h, u, d, m, R,
|
|
9019
|
-
z ? (this.map.setProjection("globe"), this.mapProjection = "globe", (b = this.map) != null && b.getLayer((M = this.viewport) == null ? void 0 : M.rampColorLayer) && ((O = this.map) != null && O.getLayer(this.helper.mapboxCustomer.layers.water.id)) && ((o = this.map) == null || o.moveLayer((p = this.viewport) == null ? void 0 : p.rampColorLayer, this.helper.mapboxCustomer.layers.water.id)), (t = this.map) != null && t.getLayer((e = this.viewport) == null ? void 0 : e.particleLayer) && ((q = this.map) != null && q.getLayer(this.helper.mapboxCustomer.layers.water.id)) && ((a = this.map) == null || a.moveLayer((r = this.viewport) == null ? void 0 : r.particleLayer, this.helper.mapboxCustomer.layers.water.id)), this.map.off("zoomend", this.handleDragEndWithZoom4Json), this.map.off("dragend", this.handleDragEndWithZoom4Json), this.map.off("move", this.handleDragEndWithZoom4Image)) : (this.map.setProjection("mercator"), this.mapProjection = "mercator", this.map.on("zoomend", this.handleDragEndWithZoom4Json), this.map.on("dragend", this.handleDragEndWithZoom4Json), this.map.on("move", this.handleDragEndWithZoom4Image), this.handleDragEndWithZoom4Image(), this.handleDragEndWithZoom4Json(), (L = this.map) != null && L.getLayer((i = this.viewport) == null ? void 0 : i.rampColorLayer) && ((n = this.map) != null && n.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && ((u = this.map) == null || u.moveLayer((h = this.viewport) == null ? void 0 : h.rampColorLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)), (m = this.map) != null && m.getLayer((d = this.viewport) == null ? void 0 : d.particleLayer) && ((R = this.map) != null && R.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && ((x = this.map) == null || x.moveLayer((
|
|
9018
|
+
var M, b, O, p, o, e, t, q, r, a, i, L, n, h, u, d, m, R, X, x;
|
|
9019
|
+
z ? (this.map.setProjection("globe"), this.mapProjection = "globe", (b = this.map) != null && b.getLayer((M = this.viewport) == null ? void 0 : M.rampColorLayer) && ((O = this.map) != null && O.getLayer(this.helper.mapboxCustomer.layers.water.id)) && ((o = this.map) == null || o.moveLayer((p = this.viewport) == null ? void 0 : p.rampColorLayer, this.helper.mapboxCustomer.layers.water.id)), (t = this.map) != null && t.getLayer((e = this.viewport) == null ? void 0 : e.particleLayer) && ((q = this.map) != null && q.getLayer(this.helper.mapboxCustomer.layers.water.id)) && ((a = this.map) == null || a.moveLayer((r = this.viewport) == null ? void 0 : r.particleLayer, this.helper.mapboxCustomer.layers.water.id)), this.map.off("zoomend", this.handleDragEndWithZoom4Json), this.map.off("dragend", this.handleDragEndWithZoom4Json), this.map.off("move", this.handleDragEndWithZoom4Image)) : (this.map.setProjection("mercator"), this.mapProjection = "mercator", this.map.on("zoomend", this.handleDragEndWithZoom4Json), this.map.on("dragend", this.handleDragEndWithZoom4Json), this.map.on("move", this.handleDragEndWithZoom4Image), this.handleDragEndWithZoom4Image(), this.handleDragEndWithZoom4Json(), (L = this.map) != null && L.getLayer((i = this.viewport) == null ? void 0 : i.rampColorLayer) && ((n = this.map) != null && n.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && ((u = this.map) == null || u.moveLayer((h = this.viewport) == null ? void 0 : h.rampColorLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)), (m = this.map) != null && m.getLayer((d = this.viewport) == null ? void 0 : d.particleLayer) && ((R = this.map) != null && R.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && ((x = this.map) == null || x.moveLayer((X = this.viewport) == null ? void 0 : X.particleLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)));
|
|
9020
9020
|
},
|
|
9021
9021
|
handleParticle(z) {
|
|
9022
9022
|
this.particleFactor = z, this.weatherLayers[z.key] && (this.weatherLayers[z.key].particle = z.particle), this.activeWeatherLayers.map((O) => {
|
|
@@ -9039,10 +9039,10 @@ const Hb = {
|
|
|
9039
9039
|
className: "map-gl-home"
|
|
9040
9040
|
};
|
|
9041
9041
|
function Vb(z, M, b, O, p, o) {
|
|
9042
|
-
var
|
|
9043
|
-
const e = S("IdmGlLayer"), t = S("IdmENC"), q = S("IdmSigWave"), r = S("IdmSwell"), a = S("IdmPrmsl"), i = S("IdmIceberg"), L = S("IdmTropicals"), n = S("IdmCurrents"), h = S("IdmCurrentParticle"), u = S("IdmWindBarb"), d = S("IdmWindParticle"), m = S("IdmPrecip3h"), R = S("IdmVisibility"),
|
|
9042
|
+
var d0, n0, W0, N0, s0, k, z0, t0, E, p0, l0, c0, u0, B, A, W, s, N, v, P, Q, D, G, w0, P0, k0;
|
|
9043
|
+
const e = S("IdmGlLayer"), t = S("IdmENC"), q = S("IdmSigWave"), r = S("IdmSwell"), a = S("IdmPrmsl"), i = S("IdmIceberg"), L = S("IdmTropicals"), n = S("IdmCurrents"), h = S("IdmCurrentParticle"), u = S("IdmWindBarb"), d = S("IdmWindParticle"), m = S("IdmPrecip3h"), R = S("IdmVisibility"), X = S("IdmWaterTemp"), x = S("IdmTemp"), g = S("IdmArctic"), U = S("IdmWarZone"), y = S("IdmGmdssArea"), C = S("IdmEcaZone"), Z = S("IdmAlertZone"), Y = S("IdmPort"), i0 = S("IdmLoadLine"), L0 = S("IdmTimezone"), R0 = S("IdmVRA"), r0 = S("IdmSpecialArea"), f0 = S("IdmTerminator"), O0 = S("IdmLatLng"), h0 = S("IdmMeasure"), m0 = S("IdmPoint");
|
|
9044
9044
|
return b.map ? (l(), f("div", Gb, [
|
|
9045
|
-
T(e,
|
|
9045
|
+
T(e, j({
|
|
9046
9046
|
ref: "layer",
|
|
9047
9047
|
map: b.map,
|
|
9048
9048
|
"toggle-version": b.toggleVersion,
|
|
@@ -9054,57 +9054,57 @@ function Vb(z, M, b, O, p, o) {
|
|
|
9054
9054
|
}, z.$attrs, {
|
|
9055
9055
|
onWeather: o.handleWeatherLayerChange,
|
|
9056
9056
|
onOther: o.handleOtherLayerChange,
|
|
9057
|
-
onToggleWindParticle: M[0] || (M[0] = (
|
|
9058
|
-
onToggleWindFeather: M[1] || (M[1] = (
|
|
9059
|
-
onToggleCurrentParticle: M[2] || (M[2] = (
|
|
9060
|
-
onToggleCurrentIsoband: M[3] || (M[3] = (
|
|
9061
|
-
onCoordinate: M[4] || (M[4] = (
|
|
9062
|
-
onMeasure: M[5] || (M[5] = (
|
|
9063
|
-
onPoint: M[6] || (M[6] = (
|
|
9057
|
+
onToggleWindParticle: M[0] || (M[0] = (a0) => p.showWindParticle = a0),
|
|
9058
|
+
onToggleWindFeather: M[1] || (M[1] = (a0) => p.showWindFeather = a0),
|
|
9059
|
+
onToggleCurrentParticle: M[2] || (M[2] = (a0) => p.showCurrentParticle = a0),
|
|
9060
|
+
onToggleCurrentIsoband: M[3] || (M[3] = (a0) => p.showCurrentIsoband = a0),
|
|
9061
|
+
onCoordinate: M[4] || (M[4] = (a0) => p.showCoord = a0),
|
|
9062
|
+
onMeasure: M[5] || (M[5] = (a0) => p.showMeasure = a0),
|
|
9063
|
+
onPoint: M[6] || (M[6] = (a0) => p.showPoint = a0),
|
|
9064
9064
|
on3d: o.handle3dToggle,
|
|
9065
9065
|
onHandleToggleVersion: o.handleToggleVersion
|
|
9066
9066
|
}), null, 16, ["map", "toggle-version", "map-projection", "showWindFeather", "showWindParticle", "showCurrentIsoband", "showCurrentParticle", "onWeather", "onOther", "on3d", "onHandleToggleVersion"]),
|
|
9067
|
-
T(t,
|
|
9067
|
+
T(t, j({
|
|
9068
9068
|
map: b.map,
|
|
9069
9069
|
token: b.token,
|
|
9070
|
-
enabled: (
|
|
9070
|
+
enabled: (d0 = p.otherLayers) == null ? void 0 : d0.enc,
|
|
9071
9071
|
"toggle-version": b.toggleVersion
|
|
9072
9072
|
}, z.$attrs, {
|
|
9073
|
-
onEnc: M[7] || (M[7] = (
|
|
9073
|
+
onEnc: M[7] || (M[7] = (a0) => p.enc = a0)
|
|
9074
9074
|
}), null, 16, ["map", "token", "enabled", "toggle-version"]),
|
|
9075
|
-
T(q,
|
|
9075
|
+
T(q, j({
|
|
9076
9076
|
map: b.map,
|
|
9077
|
-
"sig-wave": (
|
|
9077
|
+
"sig-wave": (n0 = p.weatherLayers) == null ? void 0 : n0["sig-wave-height"],
|
|
9078
9078
|
"before-layer": b.beforeLayer,
|
|
9079
9079
|
activeWeatherLayers: p.activeWeatherLayers
|
|
9080
9080
|
}, z.$attrs), null, 16, ["map", "sig-wave", "before-layer", "activeWeatherLayers"]),
|
|
9081
|
-
T(r,
|
|
9081
|
+
T(r, j({
|
|
9082
9082
|
map: b.map,
|
|
9083
|
-
swell: (
|
|
9083
|
+
swell: (W0 = p.weatherLayers) == null ? void 0 : W0.swell,
|
|
9084
9084
|
"before-layer": b.beforeLayer,
|
|
9085
9085
|
activeWeatherLayers: p.activeWeatherLayers
|
|
9086
9086
|
}, z.$attrs), null, 16, ["map", "swell", "before-layer", "activeWeatherLayers"]),
|
|
9087
|
-
T(a,
|
|
9087
|
+
T(a, j({
|
|
9088
9088
|
map: b.map,
|
|
9089
|
-
prmsl: (
|
|
9089
|
+
prmsl: (N0 = p.weatherLayers) == null ? void 0 : N0.prmsl,
|
|
9090
9090
|
"before-layer": b.beforeLayer,
|
|
9091
9091
|
"active-weather-layers": p.activeWeatherLayers
|
|
9092
9092
|
}, z.$attrs), null, 16, ["map", "prmsl", "before-layer", "active-weather-layers"]),
|
|
9093
|
-
T(i,
|
|
9093
|
+
T(i, j({
|
|
9094
9094
|
map: b.map,
|
|
9095
|
-
iceberg: (
|
|
9095
|
+
iceberg: (s0 = p.weatherLayers) == null ? void 0 : s0.iceberg,
|
|
9096
9096
|
"before-layer": b.beforeLayer
|
|
9097
9097
|
}, z.$attrs), null, 16, ["map", "iceberg", "before-layer"]),
|
|
9098
|
-
T(L,
|
|
9098
|
+
T(L, j({
|
|
9099
9099
|
map: b.map,
|
|
9100
9100
|
date: b.ts,
|
|
9101
|
-
tropicals: (
|
|
9101
|
+
tropicals: (k = p.weatherLayers) == null ? void 0 : k.tropicals,
|
|
9102
9102
|
"before-layer": b.beforeLayer
|
|
9103
9103
|
}, z.$attrs), null, 16, ["map", "date", "tropicals", "before-layer"]),
|
|
9104
|
-
T(n,
|
|
9104
|
+
T(n, j({
|
|
9105
9105
|
map: b.map,
|
|
9106
9106
|
"map-projection": p.mapProjection,
|
|
9107
|
-
current: (
|
|
9107
|
+
current: (z0 = p.weatherLayers) == null ? void 0 : z0.current,
|
|
9108
9108
|
"before-layer": b.beforeLayer,
|
|
9109
9109
|
showCurrentIsoband: p.showCurrentIsoband,
|
|
9110
9110
|
showCurrentParticle: p.showCurrentParticle,
|
|
@@ -9115,18 +9115,18 @@ function Vb(z, M, b, O, p, o) {
|
|
|
9115
9115
|
onParticle: o.handleParticle,
|
|
9116
9116
|
onHandleToggleVersion: o.handleToggleVersion
|
|
9117
9117
|
}), null, 16, ["map", "map-projection", "current", "before-layer", "showCurrentIsoband", "showCurrentParticle", "margin-bottom", "toggle-version", "weather-layers", "onParticle", "onHandleToggleVersion"]),
|
|
9118
|
-
T(h,
|
|
9118
|
+
T(h, j({
|
|
9119
9119
|
viewport: p.viewport,
|
|
9120
|
-
factor: (
|
|
9120
|
+
factor: (t0 = p.weatherLayers) == null ? void 0 : t0["current-particle"],
|
|
9121
9121
|
"before-layer": b.beforeLayer,
|
|
9122
9122
|
"toggle-version": b.toggleVersion
|
|
9123
9123
|
}, z.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
9124
|
-
T(u,
|
|
9124
|
+
T(u, j({
|
|
9125
9125
|
ref: "windBarb",
|
|
9126
9126
|
map: b.map,
|
|
9127
9127
|
"map-projection": p.mapProjection,
|
|
9128
|
-
wind: (
|
|
9129
|
-
current: (
|
|
9128
|
+
wind: (E = p.weatherLayers) == null ? void 0 : E.wind,
|
|
9129
|
+
current: (p0 = p.weatherLayers) == null ? void 0 : p0.current,
|
|
9130
9130
|
"before-layer": b.beforeLayer,
|
|
9131
9131
|
"margin-bottom": p.showRampColor ? "56px" : "30px",
|
|
9132
9132
|
showWindFeather: p.showWindFeather,
|
|
@@ -9136,101 +9136,101 @@ function Vb(z, M, b, O, p, o) {
|
|
|
9136
9136
|
"weather-layers": p.weatherLayers,
|
|
9137
9137
|
onParticle: o.handleParticle
|
|
9138
9138
|
}), null, 16, ["map", "map-projection", "wind", "current", "before-layer", "margin-bottom", "showWindFeather", "showWindParticle", "toggle-version", "weather-layers", "onParticle"]),
|
|
9139
|
-
T(d,
|
|
9139
|
+
T(d, j({
|
|
9140
9140
|
viewport: p.viewport,
|
|
9141
|
-
factor: (
|
|
9141
|
+
factor: (l0 = p.weatherLayers) == null ? void 0 : l0["wind-particle"],
|
|
9142
9142
|
"before-layer": b.beforeLayer,
|
|
9143
9143
|
"toggle-version": b.toggleVersion
|
|
9144
9144
|
}, z.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
9145
|
-
T(m,
|
|
9145
|
+
T(m, j({
|
|
9146
9146
|
viewport: p.viewport,
|
|
9147
|
-
factor: (
|
|
9147
|
+
factor: (c0 = p.weatherLayers) == null ? void 0 : c0.precip3h,
|
|
9148
9148
|
"before-layer": b.beforeLayer,
|
|
9149
9149
|
"toggle-version": b.toggleVersion
|
|
9150
9150
|
}, z.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
9151
|
-
T(R,
|
|
9151
|
+
T(R, j({
|
|
9152
9152
|
viewport: p.viewport,
|
|
9153
|
-
factor: (
|
|
9153
|
+
factor: (u0 = p.weatherLayers) == null ? void 0 : u0.visibility,
|
|
9154
9154
|
"before-layer": b.beforeLayer,
|
|
9155
9155
|
"toggle-version": b.toggleVersion
|
|
9156
9156
|
}, z.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
9157
|
-
T(
|
|
9157
|
+
T(X, j({
|
|
9158
9158
|
viewport: p.viewport,
|
|
9159
|
-
factor: (
|
|
9159
|
+
factor: (B = p.weatherLayers) == null ? void 0 : B["water-temp"],
|
|
9160
9160
|
"before-layer": b.beforeLayer,
|
|
9161
9161
|
"toggle-version": b.toggleVersion
|
|
9162
9162
|
}, z.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
9163
|
-
T(x,
|
|
9163
|
+
T(x, j({
|
|
9164
9164
|
viewport: p.viewport,
|
|
9165
9165
|
factor: (A = p.weatherLayers) == null ? void 0 : A.temp,
|
|
9166
9166
|
"before-layer": b.beforeLayer,
|
|
9167
9167
|
"toggle-version": b.toggleVersion
|
|
9168
9168
|
}, z.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
9169
|
-
T(
|
|
9169
|
+
T(g, j({
|
|
9170
9170
|
viewport: p.viewport,
|
|
9171
9171
|
factor: (W = p.weatherLayers) == null ? void 0 : W.arctic,
|
|
9172
9172
|
"before-layer": b.beforeLayer,
|
|
9173
9173
|
"toggle-version": b.toggleVersion
|
|
9174
9174
|
}, z.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
9175
|
-
T(
|
|
9175
|
+
T(U, j({
|
|
9176
9176
|
map: b.map,
|
|
9177
9177
|
zone: (s = p.otherLayers) == null ? void 0 : s["war-zones"],
|
|
9178
9178
|
"before-layer": b.beforeLayer
|
|
9179
9179
|
}, z.$attrs), null, 16, ["map", "zone", "before-layer"]),
|
|
9180
|
-
T(
|
|
9180
|
+
T(y, j({
|
|
9181
9181
|
map: b.map,
|
|
9182
9182
|
area: (N = p.otherLayers) == null ? void 0 : N["gmdss-areas"],
|
|
9183
9183
|
"before-layer": b.beforeLayer
|
|
9184
9184
|
}, z.$attrs), null, 16, ["map", "area", "before-layer"]),
|
|
9185
|
-
T(C,
|
|
9185
|
+
T(C, j({
|
|
9186
9186
|
map: b.map,
|
|
9187
9187
|
zone: (v = p.otherLayers) == null ? void 0 : v["eca-zones"],
|
|
9188
9188
|
"before-layer": b.beforeLayer
|
|
9189
9189
|
}, z.$attrs), null, 16, ["map", "zone", "before-layer"]),
|
|
9190
|
-
T(Z,
|
|
9190
|
+
T(Z, j({
|
|
9191
9191
|
map: b.map,
|
|
9192
|
-
zone: (
|
|
9192
|
+
zone: (P = p.otherLayers) == null ? void 0 : P["alert-zones"],
|
|
9193
9193
|
"before-layer": b.beforeLayer
|
|
9194
9194
|
}, z.$attrs), null, 16, ["map", "zone", "before-layer"]),
|
|
9195
|
-
T(Y,
|
|
9195
|
+
T(Y, j({
|
|
9196
9196
|
map: b.map,
|
|
9197
9197
|
port: (Q = p.otherLayers) == null ? void 0 : Q.ports,
|
|
9198
9198
|
"before-layer": b.beforeLayer
|
|
9199
9199
|
}, z.$attrs), null, 16, ["map", "port", "before-layer"]),
|
|
9200
|
-
T(
|
|
9200
|
+
T(i0, j({
|
|
9201
9201
|
map: b.map,
|
|
9202
|
-
line: (
|
|
9202
|
+
line: (D = p.otherLayers) == null ? void 0 : D["load-lines"],
|
|
9203
9203
|
"before-layer": b.beforeLayer
|
|
9204
9204
|
}, z.$attrs), null, 16, ["map", "line", "before-layer"]),
|
|
9205
|
-
T(
|
|
9205
|
+
T(L0, j({
|
|
9206
9206
|
map: b.map,
|
|
9207
9207
|
zone: (G = p.otherLayers) == null ? void 0 : G["time-zones"],
|
|
9208
9208
|
"before-layer": b.beforeLayer
|
|
9209
9209
|
}, z.$attrs), null, 16, ["map", "zone", "before-layer"]),
|
|
9210
|
-
T(
|
|
9210
|
+
T(R0, j({
|
|
9211
9211
|
map: b.map,
|
|
9212
9212
|
area: (w0 = p.otherLayers) == null ? void 0 : w0["voluntary-reporting-area"],
|
|
9213
9213
|
"before-layer": b.beforeLayer
|
|
9214
9214
|
}, z.$attrs), null, 16, ["map", "area", "before-layer"]),
|
|
9215
|
-
T(
|
|
9215
|
+
T(r0, j({
|
|
9216
9216
|
map: b.map,
|
|
9217
9217
|
area: (P0 = p.otherLayers) == null ? void 0 : P0["special-area"],
|
|
9218
9218
|
"before-layer": b.beforeLayer
|
|
9219
9219
|
}, z.$attrs), null, 16, ["map", "area", "before-layer"]),
|
|
9220
|
-
T(
|
|
9220
|
+
T(f0, j({
|
|
9221
9221
|
map: b.map,
|
|
9222
9222
|
area: (k0 = p.otherLayers) == null ? void 0 : k0["day-night"]
|
|
9223
9223
|
}, z.$attrs), null, 16, ["map", "area"]),
|
|
9224
|
-
T(
|
|
9224
|
+
T(O0, j({
|
|
9225
9225
|
map: b.map,
|
|
9226
9226
|
show: p.showCoord,
|
|
9227
9227
|
"toggle-version": b.toggleVersion
|
|
9228
9228
|
}, z.$attrs), null, 16, ["map", "show", "toggle-version"]),
|
|
9229
|
-
T(
|
|
9229
|
+
T(h0, j({
|
|
9230
9230
|
map: b.map,
|
|
9231
9231
|
show: p.showMeasure
|
|
9232
9232
|
}, z.$attrs), null, 16, ["map", "show"]),
|
|
9233
|
-
T(
|
|
9233
|
+
T(m0, j({
|
|
9234
9234
|
ref: "idmPoint",
|
|
9235
9235
|
map: b.map,
|
|
9236
9236
|
show: p.showPoint,
|
|
@@ -9239,9 +9239,9 @@ function Vb(z, M, b, O, p, o) {
|
|
|
9239
9239
|
token: b.token,
|
|
9240
9240
|
gateway: p.gateway
|
|
9241
9241
|
}, z.$attrs), null, 16, ["map", "show", "meteo", "ts", "token", "gateway"])
|
|
9242
|
-
])) :
|
|
9242
|
+
])) : F("", !0);
|
|
9243
9243
|
}
|
|
9244
|
-
const Kb = /* @__PURE__ */
|
|
9244
|
+
const Kb = /* @__PURE__ */ I(Hb, [["render", Vb]]), Oz = {
|
|
9245
9245
|
install(z) {
|
|
9246
9246
|
z.component("MapboxGL", Kb), z.component("TropicalGL", j0), z.component("LatLngGL", H0);
|
|
9247
9247
|
}
|
|
@@ -9251,9 +9251,9 @@ export {
|
|
|
9251
9251
|
Kb as MapboxGL,
|
|
9252
9252
|
Oz as MapboxGLPlugin,
|
|
9253
9253
|
E1 as MapboxHelper,
|
|
9254
|
-
|
|
9254
|
+
q0 as ParticleSchema,
|
|
9255
9255
|
j0 as TropicalGL,
|
|
9256
9256
|
E0 as Viewport,
|
|
9257
9257
|
T0 as WebGL,
|
|
9258
|
-
|
|
9258
|
+
e0 as WebGLSchema
|
|
9259
9259
|
};
|