@idmwx/idmui-gl3 4.6.1 → 4.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +961 -817
- package/dist/index.umd.cjs +12 -12
- package/dist/mapbox/src/components/other/point.vue.d.ts +0 -1
- package/dist/style.css +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
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
|
-
var
|
|
4
|
-
import { LayerHelper as
|
|
5
|
-
import { resolveComponent as
|
|
6
|
-
import * as
|
|
3
|
+
var G = (z, M, b) => (V0(z, typeof M != "symbol" ? M + "" : M, b), b);
|
|
4
|
+
import { LayerHelper as x0, CompanyHelper as S0 } from "@idm-plugin/tag";
|
|
5
|
+
import { resolveComponent as x, openBlock as l, createElementBlock as f, createElementVNode as c, normalizeStyle as z0, createVNode as v, withCtx as c0, normalizeClass as K, Fragment as V, renderList as Q, toDisplayString as C, createCommentVNode as D, createTextVNode as Z, withDirectives as T0, createStaticVNode as K0, vShow as w0, defineComponent as J0, withModifiers as v0, mergeProps as j } from "vue";
|
|
6
|
+
import * as T from "@turf/turf";
|
|
7
7
|
import Q0 from "@mapbox/sphericalmercator";
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import { TropicalHelper as I0, LngLatHelper as
|
|
8
|
+
import A0 from "moment";
|
|
9
|
+
import R0 from "mapbox-gl";
|
|
10
|
+
import { TropicalHelper as I0, LngLatHelper as $, LaneHelper as L0 } 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;
|
|
@@ -62,9 +62,9 @@ const D = (z, M) => {
|
|
|
62
62
|
autoActive: !0,
|
|
63
63
|
layers: {
|
|
64
64
|
weather: [
|
|
65
|
-
...
|
|
65
|
+
...x0.WEATHER_LAYERS.filter((z) => !["swell-height", "swell-direction", "current-direction", "current-speed"].includes(z.key))
|
|
66
66
|
],
|
|
67
|
-
other: [...
|
|
67
|
+
other: [...x0.OTHER_LAYERS.filter((z) => z.key !== "world12nm" && z.enabled)]
|
|
68
68
|
},
|
|
69
69
|
activeWeatherLayers: [],
|
|
70
70
|
activeOtherLayers: [],
|
|
@@ -222,22 +222,22 @@ const D = (z, M) => {
|
|
|
222
222
|
class: "iconfont"
|
|
223
223
|
}, X1 = { class: "source-layers card-bg" }, v1 = { class: "layers-body" };
|
|
224
224
|
function T1(z, M, b, O, p, o) {
|
|
225
|
-
const e =
|
|
226
|
-
return
|
|
225
|
+
const e = x("ElTooltip"), t = x("ElRadio"), q = x("ElRadioGroup"), r = x("ElScrollbar");
|
|
226
|
+
return l(), f("div", Z0, [
|
|
227
227
|
c("div", {
|
|
228
228
|
class: "menu-bar-box",
|
|
229
|
-
style:
|
|
229
|
+
style: z0({ top: b.top + 10 + "px", right: p.right + "px" })
|
|
230
230
|
}, [
|
|
231
231
|
c("div", Y0, [
|
|
232
|
-
|
|
232
|
+
v(e, {
|
|
233
233
|
placement: "left",
|
|
234
234
|
effect: "light",
|
|
235
235
|
content: "Menu",
|
|
236
236
|
"show-after": 1e3
|
|
237
237
|
}, {
|
|
238
|
-
default:
|
|
238
|
+
default: c0(() => [
|
|
239
239
|
c("div", {
|
|
240
|
-
class:
|
|
240
|
+
class: K(b.layerToggle ? "menu-icon active" : "menu-icon"),
|
|
241
241
|
onClick: M[0] || (M[0] = (...a) => o.handleMenuToggle && o.handleMenuToggle(...a))
|
|
242
242
|
}, M[17] || (M[17] = [
|
|
243
243
|
c("span", { class: "iconfont" }, "", -1)
|
|
@@ -249,18 +249,18 @@ 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: z0({ top: b.top + 160 + "px", right: p.right + "px" })
|
|
253
253
|
}, [
|
|
254
254
|
c("div", M1, [
|
|
255
|
-
|
|
255
|
+
v(e, {
|
|
256
256
|
placement: "left",
|
|
257
257
|
effect: "light",
|
|
258
258
|
content: "Measure",
|
|
259
259
|
"show-after": 1e3
|
|
260
260
|
}, {
|
|
261
|
-
default:
|
|
261
|
+
default: c0(() => [
|
|
262
262
|
c("div", {
|
|
263
|
-
class:
|
|
263
|
+
class: K(p.showMeasure ? "menu-icon active" : "menu-icon"),
|
|
264
264
|
onClick: M[1] || (M[1] = (...a) => o.handleMeasureToggle && o.handleMeasureToggle(...a))
|
|
265
265
|
}, M[18] || (M[18] = [
|
|
266
266
|
c("span", { class: "iconfont" }, "", -1)
|
|
@@ -268,15 +268,15 @@ function T1(z, M, b, O, p, o) {
|
|
|
268
268
|
]),
|
|
269
269
|
_: 1
|
|
270
270
|
}),
|
|
271
|
-
|
|
271
|
+
v(e, {
|
|
272
272
|
placement: "left",
|
|
273
273
|
effect: "light",
|
|
274
274
|
content: "Point Meteo",
|
|
275
275
|
"show-after": 1e3
|
|
276
276
|
}, {
|
|
277
|
-
default:
|
|
277
|
+
default: c0(() => [
|
|
278
278
|
c("div", {
|
|
279
|
-
class:
|
|
279
|
+
class: K(p.showPoint ? "menu-icon active" : "menu-icon"),
|
|
280
280
|
onClick: M[2] || (M[2] = (...a) => o.handlePointToggle && o.handlePointToggle(...a))
|
|
281
281
|
}, M[19] || (M[19] = [
|
|
282
282
|
c("span", { class: "iconfont" }, "", -1)
|
|
@@ -284,15 +284,15 @@ function T1(z, M, b, O, p, o) {
|
|
|
284
284
|
]),
|
|
285
285
|
_: 1
|
|
286
286
|
}),
|
|
287
|
-
|
|
287
|
+
v(e, {
|
|
288
288
|
placement: "left",
|
|
289
289
|
effect: "light",
|
|
290
290
|
content: "Grid",
|
|
291
291
|
"show-after": 1e3
|
|
292
292
|
}, {
|
|
293
|
-
default:
|
|
293
|
+
default: c0(() => [
|
|
294
294
|
c("div", {
|
|
295
|
-
class:
|
|
295
|
+
class: K(p.showCoord ? "menu-icon active" : "menu-icon"),
|
|
296
296
|
onClick: M[3] || (M[3] = (...a) => o.handleCoordToggle && o.handleCoordToggle(...a))
|
|
297
297
|
}, M[20] || (M[20] = [
|
|
298
298
|
c("span", { class: "iconfont" }, "", -1)
|
|
@@ -300,15 +300,15 @@ function T1(z, M, b, O, p, o) {
|
|
|
300
300
|
]),
|
|
301
301
|
_: 1
|
|
302
302
|
}),
|
|
303
|
-
|
|
303
|
+
v(e, {
|
|
304
304
|
placement: "left",
|
|
305
305
|
effect: "light",
|
|
306
306
|
content: "3D",
|
|
307
307
|
"show-after": 1e3
|
|
308
308
|
}, {
|
|
309
|
-
default:
|
|
309
|
+
default: c0(() => [
|
|
310
310
|
c("div", {
|
|
311
|
-
class:
|
|
311
|
+
class: K(p.show3d ? "menu-icon active" : "menu-icon"),
|
|
312
312
|
onClick: M[4] || (M[4] = (...a) => o.handle3DToggle && o.handle3DToggle(...a))
|
|
313
313
|
}, M[21] || (M[21] = [
|
|
314
314
|
c("span", { class: "iconfont" }, "", -1)
|
|
@@ -318,10 +318,10 @@ function T1(z, M, b, O, p, o) {
|
|
|
318
318
|
})
|
|
319
319
|
])
|
|
320
320
|
], 4),
|
|
321
|
-
o.hasCollectedLayers ? (
|
|
321
|
+
o.hasCollectedLayers ? (l(), f("div", {
|
|
322
322
|
key: 0,
|
|
323
323
|
class: "active-layers",
|
|
324
|
-
style:
|
|
324
|
+
style: z0({ 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)),
|
|
@@ -330,12 +330,12 @@ function T1(z, M, b, O, p, o) {
|
|
|
330
330
|
style: { "font-size": "28px", "margin-right": "0" },
|
|
331
331
|
onClick: M[5] || (M[5] = (...a) => o.toggleAutoActive && o.toggleAutoActive(...a))
|
|
332
332
|
}, [
|
|
333
|
-
p.autoActive ? (
|
|
333
|
+
p.autoActive ? (l(), f("i", z1, "")) : (l(), f("i", p1, ""))
|
|
334
334
|
])
|
|
335
335
|
]),
|
|
336
|
-
(
|
|
336
|
+
(l(!0), f(V, null, Q(p.layers.weather.filter((a) => a.collected), (a) => (l(), f("div", {
|
|
337
337
|
key: a.key,
|
|
338
|
-
class:
|
|
338
|
+
class: K(o.computeLayerClass(a, p.activeWeatherLayers))
|
|
339
339
|
}, [
|
|
340
340
|
c("div", {
|
|
341
341
|
class: "checkbox",
|
|
@@ -344,35 +344,35 @@ function T1(z, M, b, O, p, o) {
|
|
|
344
344
|
c("span", {
|
|
345
345
|
class: "name",
|
|
346
346
|
onClick: (i) => o.handleWeatherLayerPick(a)
|
|
347
|
-
},
|
|
348
|
-
a.key === "wind" && p.activeWeatherLayers.some((i) => i.key === a.key) ? (
|
|
347
|
+
}, C(a.name), 9, o1),
|
|
348
|
+
a.key === "wind" && p.activeWeatherLayers.some((i) => i.key === a.key) ? (l(), f("div", c1, [
|
|
349
349
|
c("i", {
|
|
350
|
-
class:
|
|
350
|
+
class: K(["iconfont sub-layer-icon", b.showWindParticle ? "active" : ""]),
|
|
351
351
|
onClick: M[6] || (M[6] = (i) => o.handleToggleWindParticle())
|
|
352
352
|
}, "", 2),
|
|
353
353
|
c("i", {
|
|
354
|
-
class:
|
|
354
|
+
class: K(["iconfont sub-layer-icon", b.showWindFeather ? "active" : ""]),
|
|
355
355
|
onClick: M[7] || (M[7] = (i) => o.handleToggleWindFeather())
|
|
356
356
|
}, "", 2)
|
|
357
|
-
])) :
|
|
358
|
-
a.key === "current" && p.activeWeatherLayers.some((i) => i.key === a.key) ? (
|
|
357
|
+
])) : D("", !0),
|
|
358
|
+
a.key === "current" && p.activeWeatherLayers.some((i) => i.key === a.key) ? (l(), f("div", e1, [
|
|
359
359
|
c("i", {
|
|
360
|
-
class:
|
|
360
|
+
class: K(["iconfont sub-layer-icon", b.showCurrentParticle ? "active" : ""]),
|
|
361
361
|
onClick: M[8] || (M[8] = (i) => o.handleToggleCurrentParticle())
|
|
362
362
|
}, "", 2),
|
|
363
363
|
c("i", {
|
|
364
|
-
class:
|
|
364
|
+
class: K(["iconfont sub-layer-icon", b.showCurrentIsoband ? "active" : ""]),
|
|
365
365
|
onClick: M[9] || (M[9] = (i) => o.handleToggleCurrentIsoband())
|
|
366
366
|
}, "", 2)
|
|
367
|
-
])) :
|
|
367
|
+
])) : D("", !0)
|
|
368
368
|
], 2))), 128))
|
|
369
|
-
], 4)) :
|
|
369
|
+
], 4)) : D("", !0),
|
|
370
370
|
c("div", {
|
|
371
371
|
class: "available-layers flex-center",
|
|
372
|
-
style:
|
|
372
|
+
style: z0({ top: b.top + "px", right: b.layerToggle ? "0px" : "-240px" })
|
|
373
373
|
}, [
|
|
374
374
|
c("div", {
|
|
375
|
-
class:
|
|
375
|
+
class: K(["list-box", b.layerToggle ? "right-bar" : ""])
|
|
376
376
|
}, [
|
|
377
377
|
c("div", A1, [
|
|
378
378
|
M[23] || (M[23] = c("div", null, "Layers", -1)),
|
|
@@ -381,8 +381,8 @@ function T1(z, M, b, O, p, o) {
|
|
|
381
381
|
onClick: M[10] || (M[10] = (...a) => o.handleMenuToggle && o.handleMenuToggle(...a))
|
|
382
382
|
}, "")
|
|
383
383
|
]),
|
|
384
|
-
|
|
385
|
-
default:
|
|
384
|
+
v(r, { style: { flex: "1" } }, {
|
|
385
|
+
default: c0(() => [
|
|
386
386
|
c("div", t1, [
|
|
387
387
|
c("div", a1, [
|
|
388
388
|
M[24] || (M[24] = c("div", null, "Weather Layers", -1)),
|
|
@@ -391,16 +391,16 @@ function T1(z, M, b, O, p, o) {
|
|
|
391
391
|
style: { "margin-right": "0" },
|
|
392
392
|
onClick: M[11] || (M[11] = (...a) => o.toggleAutoActive && o.toggleAutoActive(...a))
|
|
393
393
|
}, [
|
|
394
|
-
p.autoActive ? (
|
|
394
|
+
p.autoActive ? (l(), f("i", q1, "")) : (l(), f("i", i1, ""))
|
|
395
395
|
])
|
|
396
396
|
]),
|
|
397
397
|
c("div", r1, [
|
|
398
|
-
(
|
|
398
|
+
(l(!0), f(V, null, Q(p.layers.weather, (a) => (l(), f(V, {
|
|
399
399
|
key: a.key
|
|
400
400
|
}, [
|
|
401
|
-
a.hide ?
|
|
401
|
+
a.hide ? D("", !0) : (l(), f("div", {
|
|
402
402
|
key: 0,
|
|
403
|
-
class:
|
|
403
|
+
class: K(o.computeLayerClass(a, p.activeWeatherLayers))
|
|
404
404
|
}, [
|
|
405
405
|
c("div", n1, [
|
|
406
406
|
c("div", {
|
|
@@ -410,32 +410,32 @@ function T1(z, M, b, O, p, o) {
|
|
|
410
410
|
c("span", {
|
|
411
411
|
class: "name",
|
|
412
412
|
onClick: (i) => o.handleWeatherLayerPick(a)
|
|
413
|
-
},
|
|
414
|
-
a.key === "wind" && p.activeWeatherLayers.some((i) => i.key === a.key) ? (
|
|
413
|
+
}, C(a.name), 9, W1),
|
|
414
|
+
a.key === "wind" && p.activeWeatherLayers.some((i) => i.key === a.key) ? (l(), f("div", s1, [
|
|
415
415
|
c("i", {
|
|
416
|
-
class:
|
|
416
|
+
class: K(["iconfont sub-layer-icon", b.showWindParticle ? "active" : ""]),
|
|
417
417
|
onClick: M[12] || (M[12] = (i) => o.handleToggleWindParticle())
|
|
418
418
|
}, "", 2),
|
|
419
419
|
c("i", {
|
|
420
|
-
class:
|
|
420
|
+
class: K(["iconfont sub-layer-icon", b.showWindFeather ? "active" : ""]),
|
|
421
421
|
onClick: M[13] || (M[13] = (i) => o.handleToggleWindFeather())
|
|
422
422
|
}, "", 2)
|
|
423
|
-
])) :
|
|
424
|
-
a.key === "current" && p.activeWeatherLayers.some((i) => i.key === a.key) ? (
|
|
423
|
+
])) : D("", !0),
|
|
424
|
+
a.key === "current" && p.activeWeatherLayers.some((i) => i.key === a.key) ? (l(), f("div", l1, [
|
|
425
425
|
c("i", {
|
|
426
|
-
class:
|
|
426
|
+
class: K(["iconfont sub-layer-icon", b.showCurrentParticle ? "active" : ""]),
|
|
427
427
|
onClick: M[14] || (M[14] = (i) => o.handleToggleCurrentParticle())
|
|
428
428
|
}, "", 2),
|
|
429
429
|
c("i", {
|
|
430
|
-
class:
|
|
430
|
+
class: K(["iconfont sub-layer-icon", b.showCurrentIsoband ? "active" : ""]),
|
|
431
431
|
onClick: M[15] || (M[15] = (i) => o.handleToggleCurrentIsoband())
|
|
432
432
|
}, "", 2)
|
|
433
|
-
])) :
|
|
433
|
+
])) : D("", !0)
|
|
434
434
|
]),
|
|
435
435
|
c("div", {
|
|
436
436
|
onClick: (i) => o.handleWeatherLayerCollect(a)
|
|
437
437
|
}, [
|
|
438
|
-
a.collected ? (
|
|
438
|
+
a.collected ? (l(), f("i", u1, "")) : (l(), f("i", L1, ""))
|
|
439
439
|
], 8, f1)
|
|
440
440
|
], 2))
|
|
441
441
|
], 64))), 128)),
|
|
@@ -451,18 +451,18 @@ function T1(z, M, b, O, p, o) {
|
|
|
451
451
|
c("div", R1, [
|
|
452
452
|
M[26] || (M[26] = c("div", { class: "layers-title" }, "Other Layers", -1)),
|
|
453
453
|
c("div", h1, [
|
|
454
|
-
(
|
|
454
|
+
(l(!0), f(V, null, Q(p.layers.other, (a) => {
|
|
455
455
|
var i;
|
|
456
|
-
return
|
|
456
|
+
return l(), f("div", {
|
|
457
457
|
key: a.key,
|
|
458
|
-
class:
|
|
459
|
-
onClick: (
|
|
458
|
+
class: K(["layer flex-between", o.computeLayerClass(a, p.activeOtherLayers)]),
|
|
459
|
+
onClick: (L) => o.handleOtherLayerPick(a)
|
|
460
460
|
}, [
|
|
461
461
|
c("div", N1, [
|
|
462
462
|
c("div", B1, [
|
|
463
|
-
(i = o.computeLayerClass(a, p.activeOtherLayers)) != null && i.includes("active") ? (
|
|
463
|
+
(i = o.computeLayerClass(a, p.activeOtherLayers)) != null && i.includes("active") ? (l(), f("i", y1, "")) : (l(), f("i", g1, ""))
|
|
464
464
|
]),
|
|
465
|
-
c("span", null,
|
|
465
|
+
c("span", null, C(a.name), 1)
|
|
466
466
|
])
|
|
467
467
|
], 10, m1);
|
|
468
468
|
}), 128))
|
|
@@ -471,21 +471,21 @@ function T1(z, M, b, O, p, o) {
|
|
|
471
471
|
c("div", X1, [
|
|
472
472
|
M[29] || (M[29] = c("span", { class: "layers-title" }, "Forecast Model", -1)),
|
|
473
473
|
c("div", v1, [
|
|
474
|
-
|
|
474
|
+
v(q, {
|
|
475
475
|
modelValue: p.source,
|
|
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:
|
|
480
|
-
|
|
481
|
-
default:
|
|
482
|
-
|
|
479
|
+
default: c0(() => [
|
|
480
|
+
v(t, { value: "GFS" }, {
|
|
481
|
+
default: c0(() => M[27] || (M[27] = [
|
|
482
|
+
Z("GFS")
|
|
483
483
|
])),
|
|
484
484
|
_: 1
|
|
485
485
|
}),
|
|
486
|
-
|
|
487
|
-
default:
|
|
488
|
-
|
|
486
|
+
v(t, { value: "CMEMS" }, {
|
|
487
|
+
default: c0(() => M[28] || (M[28] = [
|
|
488
|
+
Z("CMEMS")
|
|
489
489
|
])),
|
|
490
490
|
_: 1
|
|
491
491
|
})
|
|
@@ -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: {
|
|
@@ -537,7 +537,7 @@ const C1 = {
|
|
|
537
537
|
return {
|
|
538
538
|
source: "wind-barb-source",
|
|
539
539
|
barbs: [0, 2, 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60, 65, 70, 75, 80, 85, 90, 95, 100, 105],
|
|
540
|
-
empty:
|
|
540
|
+
empty: T.featureCollection([]),
|
|
541
541
|
right: 10,
|
|
542
542
|
bottom: 125,
|
|
543
543
|
windBarbLoaded: !1
|
|
@@ -652,20 +652,20 @@ 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 ? (
|
|
655
|
+
return (e = b.wind) != null && e.active ? (l(), f("div", _1)) : D("", !0);
|
|
656
656
|
}
|
|
657
|
-
const S1 = /* @__PURE__ */
|
|
657
|
+
const S1 = /* @__PURE__ */ I(C1, [["render", x1]]);
|
|
658
658
|
class E0 {
|
|
659
659
|
constructor(M) {
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
660
|
+
G(this, "map");
|
|
661
|
+
G(this, "mercator");
|
|
662
|
+
G(this, "rampColorLayer");
|
|
663
|
+
G(this, "rampColorSource");
|
|
664
|
+
G(this, "particleLayer");
|
|
665
|
+
G(this, "particleSource");
|
|
666
|
+
G(this, "rampColorCanvas");
|
|
667
|
+
G(this, "particleCanvas");
|
|
668
|
+
G(this, "ratio");
|
|
669
669
|
this.map = M, this.mercator = new Q0(), this.rampColorLayer = "ramp-color-layer", this.rampColorSource = "ramp-color-source", this.particleLayer = "particle-layer", this.particleSource = "particle-source", this.rampColorCanvas = document.createElement("canvas"), this.particleCanvas = document.createElement("canvas"), this.ratio = window.devicePixelRatio;
|
|
670
670
|
}
|
|
671
671
|
/**
|
|
@@ -700,8 +700,8 @@ class E0 {
|
|
|
700
700
|
* @param [lb.x, lb.y, rt.x, rt.y]
|
|
701
701
|
*/
|
|
702
702
|
getBoundPixel() {
|
|
703
|
-
const M = this.map.getBounds(), b = this.map.getZoom() + 1, O = [M._ne.lng, M._ne.lat], p = [M._sw.lng, M._sw.lat], [o, e] = this.convertNLng(O[0]), [t, q] = this.convertNLng(p[0]), [r, a] = this.mercator.px([o, O[1]], b), [i,
|
|
704
|
-
return [i,
|
|
703
|
+
const M = this.map.getBounds(), b = this.map.getZoom() + 1, O = [M._ne.lng, M._ne.lat], p = [M._sw.lng, M._sw.lat], [o, e] = this.convertNLng(O[0]), [t, q] = this.convertNLng(p[0]), [r, a] = this.mercator.px([o, O[1]], b), [i, L] = this.mercator.px([t, p[1]], b), n = Math.round(this.mercator.size * Math.pow(2, b) * (e + q));
|
|
704
|
+
return [i, L, r + n, a];
|
|
705
705
|
}
|
|
706
706
|
/**
|
|
707
707
|
* [视窗边界像素宽度]
|
|
@@ -738,7 +738,7 @@ class E0 {
|
|
|
738
738
|
b !== O && this.map.setLayoutProperty(this.particleLayer, "visibility", O);
|
|
739
739
|
}
|
|
740
740
|
}
|
|
741
|
-
class
|
|
741
|
+
class X0 {
|
|
742
742
|
/**
|
|
743
743
|
* 创建着色器
|
|
744
744
|
* @see https://webglfundamentals.org/webgl/lessons/zh_cn/webgl-shaders-and-glsl.html
|
|
@@ -872,15 +872,15 @@ class g0 {
|
|
|
872
872
|
if (b && O) {
|
|
873
873
|
M.resize(), b == null || b.viewport(0, 0, (q = b == null ? void 0 : b.canvas) == null ? void 0 : q.width, (r = b == null ? void 0 : b.canvas) == null ? void 0 : r.height), b.clearColor(0, 0, 0, 0), b.clear(b.COLOR_BUFFER_BIT | b.DEPTH_BUFFER_BIT);
|
|
874
874
|
try {
|
|
875
|
-
const a = b.getUniformLocation(O, "u_resolution"), i = b.getUniformLocation(O, "u_image"),
|
|
876
|
-
if (b.useProgram(O), b.uniform2f(a, b.canvas.width * M.ratio, b.canvas.height * M.ratio), b.activeTexture(b.TEXTURE0), b.bindTexture(b.TEXTURE_2D, p), b.uniform1i(i, 0), b.activeTexture(b.TEXTURE1), b.bindTexture(b.TEXTURE_2D, o), b.uniform1i(
|
|
875
|
+
const a = b.getUniformLocation(O, "u_resolution"), i = b.getUniformLocation(O, "u_image"), L = b.getUniformLocation(O, "u_color");
|
|
876
|
+
if (b.useProgram(O), b.uniform2f(a, b.canvas.width * M.ratio, b.canvas.height * M.ratio), b.activeTexture(b.TEXTURE0), b.bindTexture(b.TEXTURE_2D, p), b.uniform1i(i, 0), b.activeTexture(b.TEXTURE1), b.bindTexture(b.TEXTURE_2D, o), b.uniform1i(L, 1), t != null && t.uvRange && (t != null && t.sRange)) {
|
|
877
877
|
const d = b.getUniformLocation(O, "u_range_u_v"), m = b.getUniformLocation(O, "u_range_s");
|
|
878
878
|
b.uniform2f(d, t.uvRange[0], t.uvRange[1]), b.uniform2f(m, t.sRange[0], t.sRange[1]);
|
|
879
879
|
}
|
|
880
|
-
const n = M.getBoundPixel(), h = M.map.getZoom() + 1,
|
|
881
|
-
for (const d of
|
|
882
|
-
const m = (d[0] - n[0]) * M.ratio,
|
|
883
|
-
b.bindBuffer(b.ARRAY_BUFFER, e), b.bufferData(b.ARRAY_BUFFER,
|
|
880
|
+
const n = M.getBoundPixel(), h = M.map.getZoom() + 1, u = M.getWorldCopy(n, h);
|
|
881
|
+
for (const d of u) {
|
|
882
|
+
const m = (d[0] - n[0]) * M.ratio, R = (d[1] - n[3]) * M.ratio, g = d[2] * M.ratio, [_, y, F, B] = [m, g + m, R, g + R], w = new Float32Array([_, F, y, F, _, B, _, B, y, F, y, B]);
|
|
883
|
+
b.bindBuffer(b.ARRAY_BUFFER, e), b.bufferData(b.ARRAY_BUFFER, w, b.STATIC_DRAW), b.drawArrays(b.TRIANGLES, 0, 6);
|
|
884
884
|
}
|
|
885
885
|
} catch (a) {
|
|
886
886
|
console.log(`render failed...${a}`);
|
|
@@ -928,10 +928,10 @@ class g0 {
|
|
|
928
928
|
});
|
|
929
929
|
}
|
|
930
930
|
}
|
|
931
|
-
class
|
|
931
|
+
class p0 {
|
|
932
932
|
}
|
|
933
933
|
// 顶点渲染
|
|
934
|
-
|
|
934
|
+
G(p0, "vertexSchema", `
|
|
935
935
|
//canvas 坐标系上的坐标 (x, y)
|
|
936
936
|
attribute vec2 a_position; //像素坐标
|
|
937
937
|
attribute vec2 a_texCoord; //纹理坐标
|
|
@@ -946,7 +946,7 @@ U(z0, "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
|
-
|
|
949
|
+
G(p0, "uvFragmentSchema", `
|
|
950
950
|
precision mediump float;
|
|
951
951
|
uniform sampler2D u_image;
|
|
952
952
|
uniform vec2 u_range_u_v;
|
|
@@ -965,7 +965,7 @@ U(z0, "uvFragmentSchema", `
|
|
|
965
965
|
|
|
966
966
|
gl_FragColor = color;
|
|
967
967
|
}`), // 类如浪、气压等单变量片元渲染
|
|
968
|
-
|
|
968
|
+
G(p0, "fragmentSchema", `
|
|
969
969
|
precision mediump float;
|
|
970
970
|
uniform sampler2D u_image; // 灰度
|
|
971
971
|
uniform sampler2D u_color; // 色值映射
|
|
@@ -976,9 +976,9 @@ U(z0, "fragmentSchema", `
|
|
|
976
976
|
vec4 color = texture2D(u_color, vec2(rgba.r, 0));
|
|
977
977
|
gl_FragColor = color;
|
|
978
978
|
}`);
|
|
979
|
-
class
|
|
979
|
+
class t0 {
|
|
980
980
|
}
|
|
981
|
-
|
|
981
|
+
G(t0, "vertexSchema", `
|
|
982
982
|
precision mediump float;
|
|
983
983
|
|
|
984
984
|
attribute float a_index; // 索引
|
|
@@ -1002,7 +1002,7 @@ U(e0, "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
|
-
}`),
|
|
1005
|
+
}`), G(t0, "fragmentSchema", `
|
|
1006
1006
|
precision mediump float;
|
|
1007
1007
|
|
|
1008
1008
|
uniform sampler2D u_factor;
|
|
@@ -1024,7 +1024,7 @@ U(e0, "vertexSchema", `
|
|
|
1024
1024
|
|
|
1025
1025
|
float f = 1.0 - uv.b;
|
|
1026
1026
|
gl_FragColor = texture2D(u_color_ramp, ramp_pos) * f;
|
|
1027
|
-
}`),
|
|
1027
|
+
}`), G(t0, "quadVertSchema", `
|
|
1028
1028
|
precision mediump float;
|
|
1029
1029
|
|
|
1030
1030
|
attribute vec2 a_pos;
|
|
@@ -1034,7 +1034,7 @@ U(e0, "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
|
-
}`),
|
|
1037
|
+
}`), G(t0, "screenFragmentSchema", `
|
|
1038
1038
|
precision mediump float;
|
|
1039
1039
|
|
|
1040
1040
|
uniform sampler2D u_screen;
|
|
@@ -1046,7 +1046,7 @@ U(e0, "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
|
-
}`),
|
|
1049
|
+
}`), G(t0, "updateFragmentSchema", `
|
|
1050
1050
|
precision mediump float;
|
|
1051
1051
|
|
|
1052
1052
|
uniform sampler2D u_particles;
|
|
@@ -1127,12 +1127,12 @@ U(e0, "vertexSchema", `
|
|
|
1127
1127
|
}`);
|
|
1128
1128
|
class E1 {
|
|
1129
1129
|
constructor(M = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImNseTVudHJzYzAwNWUwbHBsZHkyaDRqczMiLCJyb2xlIjoxLCJuYW1lIjoiZmFrZUBvcm13eC5jb20iLCJwbGF0SWQiOiJnZDBtdDFkIiwiY29tcGFueSI6eyJpZCI6bnVsbCwiY2hpbGRyZW4iOltdfSwiaWF0IjoxNzIzMDI0MDI0LCJleHAiOjM5MzA1NDQwMjR9.RrKcdcMnq-FxBLJQ-i6lx2FscDE46y8EvHIemPW4HTg") {
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1130
|
+
G(this, "token");
|
|
1131
|
+
G(this, "mapboxCustomer");
|
|
1132
|
+
G(this, "i4");
|
|
1133
|
+
G(this, "hi");
|
|
1134
|
+
G(this, "td");
|
|
1135
|
+
G(this, "windy");
|
|
1136
1136
|
this.token = M, this.mapboxCustomer = {
|
|
1137
1137
|
source: this.initialOnlineStyle().sources.composite,
|
|
1138
1138
|
layers: {
|
|
@@ -2753,7 +2753,7 @@ const P1 = {
|
|
|
2753
2753
|
texture: void 0,
|
|
2754
2754
|
rampColor: void 0,
|
|
2755
2755
|
aPositionBuffer: void 0,
|
|
2756
|
-
webgl: new
|
|
2756
|
+
webgl: new X0(),
|
|
2757
2757
|
etime: void 0,
|
|
2758
2758
|
wrapper: void 0,
|
|
2759
2759
|
animation: void 0,
|
|
@@ -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, p0.vertexSchema, p0.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
|
+
t0.vertexSchema,
|
|
2861
|
+
t0.fragmentSchema,
|
|
2862
|
+
t0.quadVertSchema,
|
|
2863
|
+
t0.screenFragmentSchema,
|
|
2864
|
+
t0.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
|
},
|
|
@@ -2894,10 +2894,10 @@ const P1 = {
|
|
|
2894
2894
|
}, k1 = { key: 0 };
|
|
2895
2895
|
function D1(z, M, b, O, p, o) {
|
|
2896
2896
|
var e;
|
|
2897
|
-
return (e = b.factor) != null && e.active ? (
|
|
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: z0([{ 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
|
+
])) : D("", !0);
|
|
2912
2912
|
}
|
|
2913
|
-
const I1 = /* @__PURE__ */
|
|
2913
|
+
const I1 = /* @__PURE__ */ I(P1, [["render", D1], ["__scopeId", "data-v-24e5434b"]]);
|
|
2914
2914
|
const j1 = {
|
|
2915
2915
|
name: "IdmCurrent",
|
|
2916
2916
|
props: {
|
|
@@ -2949,7 +2949,7 @@ const j1 = {
|
|
|
2949
2949
|
directionLayer: "current-direction-layer",
|
|
2950
2950
|
speedLayer: "current-speed-layer",
|
|
2951
2951
|
speedLabelLayer: "current-speed-label-layer",
|
|
2952
|
-
empty:
|
|
2952
|
+
empty: T.featureCollection([]),
|
|
2953
2953
|
right: 10,
|
|
2954
2954
|
bottom: 95
|
|
2955
2955
|
};
|
|
@@ -3067,9 +3067,9 @@ const j1 = {
|
|
|
3067
3067
|
}, F1 = { key: 0 };
|
|
3068
3068
|
function U1(z, M, b, O, p, o) {
|
|
3069
3069
|
var e;
|
|
3070
|
-
return (e = b.current) != null && e.active ? (
|
|
3070
|
+
return (e = b.current) != null && e.active ? (l(), f("div", F1)) : D("", !0);
|
|
3071
3071
|
}
|
|
3072
|
-
const H1 = /* @__PURE__ */
|
|
3072
|
+
const H1 = /* @__PURE__ */ I(j1, [["render", U1]]);
|
|
3073
3073
|
const G1 = {
|
|
3074
3074
|
name: "IdmCurrentParticle",
|
|
3075
3075
|
props: {
|
|
@@ -3094,7 +3094,7 @@ const G1 = {
|
|
|
3094
3094
|
texture: void 0,
|
|
3095
3095
|
rampColor: void 0,
|
|
3096
3096
|
aPositionBuffer: void 0,
|
|
3097
|
-
webgl: new
|
|
3097
|
+
webgl: new X0(),
|
|
3098
3098
|
etime: void 0,
|
|
3099
3099
|
wrapper: void 0,
|
|
3100
3100
|
animation: void 0,
|
|
@@ -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, p0.vertexSchema, p0.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
|
+
t0.vertexSchema,
|
|
3193
|
+
t0.fragmentSchema,
|
|
3194
|
+
t0.quadVertSchema,
|
|
3195
|
+
t0.screenFragmentSchema,
|
|
3196
|
+
t0.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),
|
|
@@ -3230,10 +3230,10 @@ const G1 = {
|
|
|
3230
3230
|
}, V1 = { key: 0 };
|
|
3231
3231
|
function K1(z, M, b, O, p, o) {
|
|
3232
3232
|
var e;
|
|
3233
|
-
return (e = b.factor) != null && e.active ? (
|
|
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: z0([{ 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
|
+
])) : D("", !0);
|
|
3247
3247
|
}
|
|
3248
|
-
const J1 = /* @__PURE__ */
|
|
3248
|
+
const J1 = /* @__PURE__ */ I(G1, [["render", K1], ["__scopeId", "data-v-6d4fd206"]]), Q1 = {
|
|
3249
3249
|
name: "IdmSigWave",
|
|
3250
3250
|
props: {
|
|
3251
3251
|
map: {
|
|
@@ -3266,7 +3266,7 @@ const J1 = /* @__PURE__ */ D(G1, [["render", K1], ["__scopeId", "data-v-6d4fd206
|
|
|
3266
3266
|
source: "sig-wave-source",
|
|
3267
3267
|
heightLayer: "sig-wave-height-layer",
|
|
3268
3268
|
heightLabelLayer: "sig-wave-height-label-layer",
|
|
3269
|
-
empty:
|
|
3269
|
+
empty: T.featureCollection([])
|
|
3270
3270
|
};
|
|
3271
3271
|
},
|
|
3272
3272
|
watch: {
|
|
@@ -3365,9 +3365,9 @@ const J1 = /* @__PURE__ */ D(G1, [["render", K1], ["__scopeId", "data-v-6d4fd206
|
|
|
3365
3365
|
}
|
|
3366
3366
|
};
|
|
3367
3367
|
function $1(z, M, b, O, p, o) {
|
|
3368
|
-
return
|
|
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: {
|
|
@@ -3389,7 +3389,7 @@ const Z1 = /* @__PURE__ */ D(Q1, [["render", $1]]), Y1 = {
|
|
|
3389
3389
|
directionLayer: "swell-direction-layer",
|
|
3390
3390
|
heightLayer: "swell-height-layer",
|
|
3391
3391
|
heightLabelLayer: "swell-height-label-layer",
|
|
3392
|
-
empty:
|
|
3392
|
+
empty: T.featureCollection([])
|
|
3393
3393
|
};
|
|
3394
3394
|
},
|
|
3395
3395
|
watch: {
|
|
@@ -3523,9 +3523,9 @@ const Z1 = /* @__PURE__ */ D(Q1, [["render", $1]]), Y1 = {
|
|
|
3523
3523
|
}
|
|
3524
3524
|
};
|
|
3525
3525
|
function M2(z, M, b, O, p, o) {
|
|
3526
|
-
return
|
|
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: {
|
|
@@ -3550,7 +3550,7 @@ const b2 = /* @__PURE__ */ D(Y1, [["render", M2]]), z2 = {
|
|
|
3550
3550
|
layer: "prmsl-layer",
|
|
3551
3551
|
labelLayer: "prmsl-label-layer",
|
|
3552
3552
|
pointLabelLayer: "prmsl-point-label-layer",
|
|
3553
|
-
empty:
|
|
3553
|
+
empty: T.featureCollection([])
|
|
3554
3554
|
};
|
|
3555
3555
|
},
|
|
3556
3556
|
watch: {
|
|
@@ -3663,9 +3663,9 @@ const b2 = /* @__PURE__ */ D(Y1, [["render", M2]]), z2 = {
|
|
|
3663
3663
|
}
|
|
3664
3664
|
};
|
|
3665
3665
|
function p2(z, M, b, O, p, o) {
|
|
3666
|
-
return
|
|
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: {
|
|
@@ -3682,7 +3682,7 @@ const O2 = /* @__PURE__ */ D(z2, [["render", p2]]), o2 = {
|
|
|
3682
3682
|
return {
|
|
3683
3683
|
source: "iceberg-source",
|
|
3684
3684
|
layer: "iceberg-layer",
|
|
3685
|
-
empty:
|
|
3685
|
+
empty: T.featureCollection([])
|
|
3686
3686
|
};
|
|
3687
3687
|
},
|
|
3688
3688
|
watch: {
|
|
@@ -3723,9 +3723,9 @@ const O2 = /* @__PURE__ */ D(z2, [["render", p2]]), o2 = {
|
|
|
3723
3723
|
}
|
|
3724
3724
|
};
|
|
3725
3725
|
function c2(z, M, b, O, p, o) {
|
|
3726
|
-
return
|
|
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: {
|
|
@@ -3746,7 +3746,7 @@ const A2 = {
|
|
|
3746
3746
|
emits: ["tropical", "tropicalProbability"],
|
|
3747
3747
|
data() {
|
|
3748
3748
|
return {
|
|
3749
|
-
helper:
|
|
3749
|
+
helper: S0,
|
|
3750
3750
|
source: "tropicals-source",
|
|
3751
3751
|
clusterSource: "tropicals-cluster-source",
|
|
3752
3752
|
historyLayer: "tropicals-history-layer",
|
|
@@ -3764,9 +3764,9 @@ const A2 = {
|
|
|
3764
3764
|
showTropicals: !1,
|
|
3765
3765
|
activeTropicals: void 0,
|
|
3766
3766
|
activeTropicalsMarker: void 0,
|
|
3767
|
-
empty:
|
|
3767
|
+
empty: T.featureCollection([]),
|
|
3768
3768
|
circleSource: "circle-source",
|
|
3769
|
-
circleSourceData:
|
|
3769
|
+
circleSourceData: T.featureCollection([]),
|
|
3770
3770
|
circleLayer: "tropical-circle-layer"
|
|
3771
3771
|
};
|
|
3772
3772
|
},
|
|
@@ -3774,7 +3774,7 @@ const A2 = {
|
|
|
3774
3774
|
computeTime() {
|
|
3775
3775
|
return function(z) {
|
|
3776
3776
|
if (z) {
|
|
3777
|
-
const M =
|
|
3777
|
+
const M = A0(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 = A0().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);
|
|
@@ -3819,21 +3819,21 @@ const A2 = {
|
|
|
3819
3819
|
var r;
|
|
3820
3820
|
let e = 0, t;
|
|
3821
3821
|
const q = z.filter((a) => {
|
|
3822
|
-
var i,
|
|
3823
|
-
return ((
|
|
3822
|
+
var i, L;
|
|
3823
|
+
return ((L = (i = a.properties) == null ? void 0 : i.category) == null ? void 0 : L.split("-")[0]) === o;
|
|
3824
3824
|
});
|
|
3825
3825
|
(r = q.filter((a) => {
|
|
3826
|
-
var i,
|
|
3827
|
-
return ((i = a.geometry) == null ? void 0 : i.type) === "LineString" && ((
|
|
3826
|
+
var i, L;
|
|
3827
|
+
return ((i = a.geometry) == null ? void 0 : i.type) === "LineString" && ((L = a.properties) == null ? void 0 : L.type) === "forecast";
|
|
3828
3828
|
})[0]) == null || r.properties.model, q.forEach((a, i) => {
|
|
3829
|
-
var
|
|
3830
|
-
((
|
|
3829
|
+
var L, n, h, u, d, m;
|
|
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
|
-
var
|
|
3833
|
-
if (((
|
|
3834
|
-
a.properties.format =
|
|
3835
|
-
const
|
|
3836
|
-
a.properties.showHistoryLabel =
|
|
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 = A0(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 = A0(a.properties.date).utcOffset(this.timeZone).format(`MMM-DD,HHmm [(utc ${this.computeTimezone})]`);
|
|
3835
|
+
const g = A0((R = a.properties) == null ? void 0 : R.date).utc().format("HHmm") === A0().utc().hour(Math.floor(M / 6) * 6).minute("00").format("HHmm");
|
|
3836
|
+
a.properties.showHistoryLabel = g || i === e, a.properties.showNameLabel = i === e, a.properties.name = o;
|
|
3837
3837
|
}
|
|
3838
3838
|
return a;
|
|
3839
3839
|
});
|
|
@@ -3878,8 +3878,8 @@ const A2 = {
|
|
|
3878
3878
|
else {
|
|
3879
3879
|
if (this.tropicals) {
|
|
3880
3880
|
const i = (/* @__PURE__ */ new Date()).valueOf();
|
|
3881
|
-
let
|
|
3882
|
-
(z = this.map) != null && z.getSource(this.source) ? ((b = this.map) == null || b.getSource(this.source).setData((M = this.tropicals) != null && M.active ? this.tropicals.data : this.empty), n = (/* @__PURE__ */ new Date()).valueOf() - (i +
|
|
3881
|
+
let L = 0, n = 0;
|
|
3882
|
+
(z = this.map) != null && z.getSource(this.source) ? ((b = this.map) == null || b.getSource(this.source).setData((M = this.tropicals) != null && M.active ? this.tropicals.data : this.empty), n = (/* @__PURE__ */ new Date()).valueOf() - (i + L), console.log("[tropicals] update elapsed: ", n, ", total: ", L += n)) : (this.map.addSource(this.source, {
|
|
3883
3883
|
type: "geojson",
|
|
3884
3884
|
data: (O = this.tropicals) != null && O.active ? (p = this.tropicals) == null ? void 0 : p.data : this.empty
|
|
3885
3885
|
}), this.map.addLayer({
|
|
@@ -3976,7 +3976,7 @@ const A2 = {
|
|
|
3976
3976
|
],
|
|
3977
3977
|
"text-halo-width": 4
|
|
3978
3978
|
}
|
|
3979
|
-
}), n = (/* @__PURE__ */ new Date()).valueOf() - (i +
|
|
3979
|
+
}), n = (/* @__PURE__ */ new Date()).valueOf() - (i + L), console.log("[tropical] add elapsed: ", n, ", total: ", L += n)), (o = this.map) != null && o.getSource(this.clusterSource) ? ((t = this.map) == null || t.getSource(this.clusterSource).setData((e = this.tropicals) != null && e.active ? this.tropicals.data : this.empty), n = (/* @__PURE__ */ new Date()).valueOf() - (i + L), console.log("[tropical] update elapsed: ", n, ", total: ", L += n)) : (this.map.addSource(this.clusterSource, {
|
|
3980
3980
|
type: "geojson",
|
|
3981
3981
|
data: (q = this.tropicals) != null && q.active ? (r = this.tropicals) == null ? void 0 : r.data : this.empty
|
|
3982
3982
|
// cluster: true,
|
|
@@ -4093,7 +4093,7 @@ const A2 = {
|
|
|
4093
4093
|
"text-halo-color": "#0033ff",
|
|
4094
4094
|
"text-halo-width": 4
|
|
4095
4095
|
}
|
|
4096
|
-
}), n = (/* @__PURE__ */ new Date()).valueOf() - (i +
|
|
4096
|
+
}), n = (/* @__PURE__ */ new Date()).valueOf() - (i + L), console.log("[tropical] add elapsed: ", n, ", total: ", L += n));
|
|
4097
4097
|
}
|
|
4098
4098
|
this.handleDrawCircle();
|
|
4099
4099
|
const a = I0.interpolate(this.tropicals, 1);
|
|
@@ -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,
|
|
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, g, _, y, F, B, w, Y, M0, q0, s0, l0, i0, W0, b0, f0, u0, n0;
|
|
4109
|
+
if ((z = this.interpolateMarkers) == null || z.forEach((a0) => a0 == null ? void 0 : a0.remove()), this.circleSourceData.features = [], (M = this.interpolateData) != null && M.length && this.tropicals.active) {
|
|
4110
|
+
const a0 = A0(this.date).utc().set({ minute: 0, second: 0, millisecond: 0 }), d0 = this.interpolateData.filter((k) => k.properties.date === a0.format() && !k.properties.disabled), U = this.handleComputePolygons(d0), h0 = T.featureCollection([...d0]);
|
|
4111
|
+
U.forEach((k) => {
|
|
4112
|
+
h0.features.push(k);
|
|
4113
|
+
}), (b = this.map) != null && b.getSource(this.interpolateSource) ? (O = this.map) == null || O.getSource(this.interpolateSource).setData(h0) : ((p = this.map) == null || p.addSource(this.interpolateSource, {
|
|
4114
4114
|
type: "geojson",
|
|
4115
|
-
data:
|
|
4115
|
+
data: h0
|
|
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 k of
|
|
4127
|
+
for (const k of d0)
|
|
4128
4128
|
if (!k.properties.disabled) {
|
|
4129
|
-
let
|
|
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) ?
|
|
4129
|
+
let O0 = "#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) ? O0 = "#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 ? O0 = "#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 ? O0 = "#ff9100" : ((g = (R = k.properties) == null ? void 0 : R.wind) == null ? void 0 : g.spd) >= 32.7 && ((y = (_ = k.properties) == null ? void 0 : _.wind) == null ? void 0 : y.spd) < 41.5 ? O0 = "#f44336" : ((B = (F = k.properties) == null ? void 0 : F.wind) == null ? void 0 : B.spd) >= 41.5 && ((Y = (w = k.properties) == null ? void 0 : w.wind) == null ? void 0 : Y.spd) < 51 ? O0 = "#f903d0" : ((q0 = (M0 = k.properties) == null ? void 0 : M0.wind) == null ? void 0 : q0.spd) >= 51 ? O0 = "#8702f9" : O0 = "#f44336";
|
|
4131
4131
|
const r0 = `<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="${O0}" 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="${O0}"
|
|
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,26 +4142,26 @@ 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
|
-
|
|
4152
|
-
), (
|
|
4153
|
-
|
|
4154
|
-
), (
|
|
4155
|
-
|
|
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"}">${r0}</div>`;
|
|
4147
|
+
const o0 = new R0.Marker(E).setLngLat(k.geometry.coordinates).addTo(this.map);
|
|
4148
|
+
if (this.interpolateMarkers.push(o0), (s0 = k.properties) != null && s0.showCircle) {
|
|
4149
|
+
const m0 = { radius: 100, coordinates: k.geometry.coordinates }, N0 = { radius: 200, coordinates: k.geometry.coordinates }, g0 = { radius: 500, coordinates: k.geometry.coordinates };
|
|
4150
|
+
(l0 = this.circleSourceData) == null || l0.features.push(
|
|
4151
|
+
T.circle(m0.coordinates, m0.radius, { steps: 100, units: "kilometers", properties: { type: "tropicalCircle" } })
|
|
4152
|
+
), (i0 = this.circleSourceData) == null || i0.features.push(
|
|
4153
|
+
T.circle(N0.coordinates, N0.radius, { steps: 100, units: "kilometers", properties: { type: "tropicalCircle" } })
|
|
4154
|
+
), (W0 = this.circleSourceData) == null || W0.features.push(
|
|
4155
|
+
T.circle(g0.coordinates, g0.radius, { steps: 100, units: "kilometers", properties: { type: "tropicalCircle" } })
|
|
4156
4156
|
);
|
|
4157
4157
|
}
|
|
4158
|
-
(
|
|
4158
|
+
(f0 = (b0 = this.map) == null ? void 0 : b0.getSource(this.circleSource)) == null || f0.setData(this.circleSourceData);
|
|
4159
4159
|
}
|
|
4160
4160
|
} else
|
|
4161
|
-
(
|
|
4161
|
+
(u0 = this.map) != null && u0.getSource(this.interpolateSource) && ((n0 = this.map) == null || n0.getSource(this.interpolateSource).setData(this.empty));
|
|
4162
4162
|
},
|
|
4163
4163
|
handleClick(z) {
|
|
4164
|
-
var o, e, t, q, r, a, i,
|
|
4164
|
+
var o, e, t, q, r, a, i, L;
|
|
4165
4165
|
const M = z.features[0], b = (e = (o = this.tropicals) == null ? void 0 : o.data) == null ? void 0 : e.features.filter(
|
|
4166
4166
|
(n) => {
|
|
4167
4167
|
var h;
|
|
@@ -4169,8 +4169,8 @@ const A2 = {
|
|
|
4169
4169
|
}
|
|
4170
4170
|
);
|
|
4171
4171
|
b.sort((n, h) => {
|
|
4172
|
-
var
|
|
4173
|
-
return ((
|
|
4172
|
+
var u, d, m, R;
|
|
4173
|
+
return ((u = n.properties) == null ? void 0 : u.model) === "cma" ? -1 : ((d = n.properties) == null ? void 0 : d.model) === "jma" ? ((m = h.properties) == null ? void 0 : m.model) === "cma" ? 1 : -1 : n.properties.model === "ecmwf" ? ["jma", "cma"].includes((R = h.properties) == null ? void 0 : R.model) ? 1 : -1 : 0;
|
|
4174
4174
|
});
|
|
4175
4175
|
const O = (q = (t = this.tropicals) == null ? void 0 : t.data) == null ? void 0 : q.features.filter(
|
|
4176
4176
|
(n) => {
|
|
@@ -4182,10 +4182,10 @@ const A2 = {
|
|
|
4182
4182
|
name: (r = M == null ? void 0 : M.properties) == null ? void 0 : r.name,
|
|
4183
4183
|
forecasts: b.map((n) => n.properties),
|
|
4184
4184
|
history: (a = O[0]) == null ? void 0 : a.properties,
|
|
4185
|
-
showCircle: (
|
|
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 R0.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;
|
|
@@ -4195,7 +4195,7 @@ const A2 = {
|
|
|
4195
4195
|
r.properties.category === M && (r.properties.disabled = z.disabled);
|
|
4196
4196
|
}), this.interpolateData.forEach((r) => {
|
|
4197
4197
|
r.properties.category === M && (r.properties.disabled = z.disabled);
|
|
4198
|
-
}), (e = (o = this.map) == null ? void 0 : o.getSource(this.source)) == null || e.setData(
|
|
4198
|
+
}), (e = (o = this.map) == null ? void 0 : o.getSource(this.source)) == null || e.setData(T.featureCollection(b)), (q = (t = this.map) == null ? void 0 : t.getSource(this.clusterSource)) == null || q.setData(T.featureCollection(b)), this.handleDateChange();
|
|
4199
4199
|
},
|
|
4200
4200
|
handleStrikeProbability(z) {
|
|
4201
4201
|
this.$emit("tropicalProbability", z);
|
|
@@ -4252,22 +4252,22 @@ const A2 = {
|
|
|
4252
4252
|
let q;
|
|
4253
4253
|
switch (e) {
|
|
4254
4254
|
case "ne":
|
|
4255
|
-
q =
|
|
4255
|
+
q = T.lineArc(z, t * 1.852, 0, 90, { steps: t > 0 ? 64 : 1 });
|
|
4256
4256
|
break;
|
|
4257
4257
|
case "se":
|
|
4258
|
-
q =
|
|
4258
|
+
q = T.lineArc(z, t * 1.852, 90, 180, { steps: t > 0 ? 64 : 1 });
|
|
4259
4259
|
break;
|
|
4260
4260
|
case "sw":
|
|
4261
|
-
q =
|
|
4261
|
+
q = T.lineArc(z, t * 1.852, 180, 270, { steps: t > 0 ? 64 : 1 });
|
|
4262
4262
|
break;
|
|
4263
4263
|
case "nw":
|
|
4264
|
-
q =
|
|
4264
|
+
q = T.lineArc(z, t * 1.852, 270, 360, { steps: t > 0 ? 64 : 1 });
|
|
4265
4265
|
break;
|
|
4266
4266
|
}
|
|
4267
4267
|
O.push(...(o = q == null ? void 0 : q.geometry) == null ? void 0 : o.coordinates);
|
|
4268
4268
|
}
|
|
4269
|
-
const p =
|
|
4270
|
-
return
|
|
4269
|
+
const p = T.lineString(O);
|
|
4270
|
+
return T.lineToPolygon(p, { properties: b });
|
|
4271
4271
|
}
|
|
4272
4272
|
}
|
|
4273
4273
|
}, t2 = {
|
|
@@ -4287,49 +4287,49 @@ 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,
|
|
4291
|
-
return T0((
|
|
4290
|
+
var e, t, q, r, a, i, L, n, h, u, d, m, R, g, _;
|
|
4291
|
+
return T0((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] = (y) => p.showTropicals = !1)
|
|
4296
4296
|
}, ""),
|
|
4297
4297
|
c("div", q2, [
|
|
4298
|
-
(t = (e = p.activeTropicals) == null ? void 0 : e.history) != null && t.level ? (
|
|
4299
|
-
|
|
4298
|
+
(t = (e = p.activeTropicals) == null ? void 0 : e.history) != null && t.level ? (l(), f("span", i2, C((r = (q = p.activeTropicals) == null ? void 0 : q.history) == null ? void 0 : r.level) + " , ", 1)) : D("", !0),
|
|
4299
|
+
Z(C((a = p.activeTropicals) == null ? void 0 : a.name), 1)
|
|
4300
4300
|
]),
|
|
4301
|
-
c("div", r2, " Last update: " +
|
|
4301
|
+
c("div", r2, " Last update: " + C(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((y) => !y.disabled)[0]) == null ? void 0 : u.date))), 1)
|
|
4302
4302
|
]),
|
|
4303
4303
|
c("div", n2, [
|
|
4304
4304
|
c("div", d2, [
|
|
4305
4305
|
c("div", W2, [
|
|
4306
4306
|
c("div", s2, [
|
|
4307
4307
|
M[2] || (M[2] = c("label", null, "Wind speed : ", -1)),
|
|
4308
|
-
c("span", null,
|
|
4308
|
+
c("span", null, C(((m = (d = p.activeTropicals) == null ? void 0 : d.history) == null ? void 0 : m.kts) || "-") + "[kts]", 1)
|
|
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, C(((g = (R = p.activeTropicals) == null ? void 0 : R.history) == null ? void 0 : g.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
|
-
(
|
|
4320
|
-
var
|
|
4321
|
-
return
|
|
4322
|
-
key:
|
|
4323
|
-
class:
|
|
4319
|
+
(l(!0), f(V, null, Q((_ = p.activeTropicals) == null ? void 0 : _.forecasts, (y, F) => {
|
|
4320
|
+
var B, w, Y, M0;
|
|
4321
|
+
return l(), f("div", {
|
|
4322
|
+
key: F,
|
|
4323
|
+
class: K([
|
|
4324
4324
|
"model",
|
|
4325
|
-
|
|
4326
|
-
|
|
4325
|
+
y.disabled ? "" : "active",
|
|
4326
|
+
F > 0 && F < ((w = (B = p.activeTropicals) == null ? void 0 : B.forecasts) == null ? void 0 : w.length) - 1 && ((M0 = (Y = p.activeTropicals) == null ? void 0 : Y.forecasts) == null ? void 0 : M0.length) > 2 ? "center-child" : ""
|
|
4327
4327
|
]),
|
|
4328
|
-
onClick: (
|
|
4328
|
+
onClick: (q0) => o.handleForecastToggle(y)
|
|
4329
4329
|
}, [
|
|
4330
4330
|
c("span", {
|
|
4331
|
-
class:
|
|
4332
|
-
},
|
|
4331
|
+
class: K(y.model)
|
|
4332
|
+
}, C(y.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] = (y) => 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
|
[w0, p.showTropicals && !z.$attrs.hideTropicalsLegend]
|
|
4349
4349
|
]);
|
|
4350
4350
|
}
|
|
4351
|
-
const j0 = /* @__PURE__ */
|
|
4351
|
+
const j0 = /* @__PURE__ */ I(A2, [["render", m2], ["__scopeId", "data-v-726fd7f6"]]);
|
|
4352
4352
|
const N2 = {
|
|
4353
4353
|
name: "IdmPrecip3h",
|
|
4354
4354
|
props: {
|
|
@@ -4377,7 +4377,7 @@ const N2 = {
|
|
|
4377
4377
|
texture: void 0,
|
|
4378
4378
|
rampColor: void 0,
|
|
4379
4379
|
aPositionBuffer: void 0,
|
|
4380
|
-
webgl: new
|
|
4380
|
+
webgl: new X0(),
|
|
4381
4381
|
etime: void 0,
|
|
4382
4382
|
right: 10
|
|
4383
4383
|
};
|
|
@@ -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, p0.vertexSchema, p0.fragmentSchema);
|
|
4441
4441
|
this.program = M, this.aPositionBuffer = b;
|
|
4442
4442
|
}
|
|
4443
4443
|
},
|
|
@@ -4453,10 +4453,10 @@ const N2 = {
|
|
|
4453
4453
|
}, B2 = { key: 0 };
|
|
4454
4454
|
function y2(z, M, b, O, p, o) {
|
|
4455
4455
|
var e;
|
|
4456
|
-
return (e = b.factor) != null && e.active ? (
|
|
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: z0([{ 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
|
+
])) : D("", !0);
|
|
4471
4471
|
}
|
|
4472
|
-
const g2 = /* @__PURE__ */
|
|
4472
|
+
const g2 = /* @__PURE__ */ I(N2, [["render", y2], ["__scopeId", "data-v-9708a7a3"]]);
|
|
4473
4473
|
const X2 = {
|
|
4474
4474
|
name: "IdmVisibility",
|
|
4475
4475
|
props: {
|
|
@@ -4498,7 +4498,7 @@ const X2 = {
|
|
|
4498
4498
|
texture: void 0,
|
|
4499
4499
|
rampColor: void 0,
|
|
4500
4500
|
aPositionBuffer: void 0,
|
|
4501
|
-
webgl: new
|
|
4501
|
+
webgl: new X0(),
|
|
4502
4502
|
etime: void 0
|
|
4503
4503
|
};
|
|
4504
4504
|
},
|
|
@@ -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, p0.vertexSchema, p0.fragmentSchema);
|
|
4555
4555
|
this.program = M, this.aPositionBuffer = b;
|
|
4556
4556
|
}
|
|
4557
4557
|
},
|
|
@@ -4567,10 +4567,10 @@ const X2 = {
|
|
|
4567
4567
|
}, v2 = { key: 0 };
|
|
4568
4568
|
function T2(z, M, b, O, p, o) {
|
|
4569
4569
|
var e;
|
|
4570
|
-
return (e = b.factor) != null && e.active ? (
|
|
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: z0([{ 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
|
+
])) : D("", !0);
|
|
4583
4583
|
}
|
|
4584
|
-
const w2 = /* @__PURE__ */
|
|
4584
|
+
const w2 = /* @__PURE__ */ I(X2, [["render", T2], ["__scopeId", "data-v-f7b2fb08"]]);
|
|
4585
4585
|
const C2 = {
|
|
4586
4586
|
name: "IdmWaterTemp",
|
|
4587
4587
|
props: {
|
|
@@ -4610,7 +4610,7 @@ const C2 = {
|
|
|
4610
4610
|
texture: void 0,
|
|
4611
4611
|
rampColor: void 0,
|
|
4612
4612
|
aPositionBuffer: void 0,
|
|
4613
|
-
webgl: new
|
|
4613
|
+
webgl: new X0(),
|
|
4614
4614
|
etime: void 0,
|
|
4615
4615
|
right: 10
|
|
4616
4616
|
};
|
|
@@ -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, p0.vertexSchema, p0.fragmentSchema);
|
|
4675
4675
|
this.program = M, this.aPositionBuffer = b;
|
|
4676
4676
|
}
|
|
4677
4677
|
},
|
|
@@ -4687,10 +4687,10 @@ const C2 = {
|
|
|
4687
4687
|
}, _2 = { key: 0 };
|
|
4688
4688
|
function x2(z, M, b, O, p, o) {
|
|
4689
4689
|
var e;
|
|
4690
|
-
return (e = b.factor) != null && e.active ? (
|
|
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: z0([{ 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
|
+
])) : D("", !0);
|
|
4703
4703
|
}
|
|
4704
|
-
const S2 = /* @__PURE__ */
|
|
4704
|
+
const S2 = /* @__PURE__ */ I(C2, [["render", x2], ["__scopeId", "data-v-7521f582"]]);
|
|
4705
4705
|
const E2 = {
|
|
4706
4706
|
name: "IdmTemp",
|
|
4707
4707
|
props: {
|
|
@@ -4730,7 +4730,7 @@ const E2 = {
|
|
|
4730
4730
|
texture: void 0,
|
|
4731
4731
|
rampColor: void 0,
|
|
4732
4732
|
aPositionBuffer: void 0,
|
|
4733
|
-
webgl: new
|
|
4733
|
+
webgl: new X0(),
|
|
4734
4734
|
etime: void 0,
|
|
4735
4735
|
right: 10
|
|
4736
4736
|
};
|
|
@@ -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, p0.vertexSchema, p0.fragmentSchema);
|
|
4798
4798
|
this.program = M, this.aPositionBuffer = b;
|
|
4799
4799
|
}
|
|
4800
4800
|
},
|
|
@@ -4810,10 +4810,10 @@ const E2 = {
|
|
|
4810
4810
|
}, P2 = { key: 0 };
|
|
4811
4811
|
function k2(z, M, b, O, p, o) {
|
|
4812
4812
|
var e;
|
|
4813
|
-
return (e = b.factor) != null && e.active ? (
|
|
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: z0([{ 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
|
+
])) : D("", !0);
|
|
4828
4828
|
}
|
|
4829
|
-
const D2 = /* @__PURE__ */
|
|
4829
|
+
const D2 = /* @__PURE__ */ I(E2, [["render", k2], ["__scopeId", "data-v-25daaa82"]]);
|
|
4830
4830
|
const I2 = {
|
|
4831
4831
|
name: "IdmArctic",
|
|
4832
4832
|
props: {
|
|
@@ -4855,7 +4855,7 @@ const I2 = {
|
|
|
4855
4855
|
texture: void 0,
|
|
4856
4856
|
rampColor: void 0,
|
|
4857
4857
|
aPositionBuffer: void 0,
|
|
4858
|
-
webgl: new
|
|
4858
|
+
webgl: new X0(),
|
|
4859
4859
|
etime: void 0,
|
|
4860
4860
|
right: 10
|
|
4861
4861
|
};
|
|
@@ -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, p0.vertexSchema, p0.fragmentSchema);
|
|
4914
4914
|
this.program = M, this.aPositionBuffer = b;
|
|
4915
4915
|
}
|
|
4916
4916
|
},
|
|
@@ -4926,10 +4926,10 @@ const I2 = {
|
|
|
4926
4926
|
}, j2 = { key: 0 };
|
|
4927
4927
|
function F2(z, M, b, O, p, o) {
|
|
4928
4928
|
var e;
|
|
4929
|
-
return (e = b.factor) != null && e.active ? (
|
|
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: z0([{ 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,15 +4938,15 @@ function F2(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
|
+
])) : D("", !0);
|
|
4942
4942
|
}
|
|
4943
|
-
const U2 = /* @__PURE__ */
|
|
4943
|
+
const U2 = /* @__PURE__ */ I(I2, [["render", F2], ["__scopeId", "data-v-5bb73794"]]);
|
|
4944
4944
|
/*! Element Plus Icons Vue v2.3.1 */
|
|
4945
4945
|
var H2 = /* @__PURE__ */ J0({
|
|
4946
4946
|
name: "LocationFilled",
|
|
4947
4947
|
__name: "location-filled",
|
|
4948
4948
|
setup(z) {
|
|
4949
|
-
return (M, b) => (
|
|
4949
|
+
return (M, b) => (l(), f("svg", {
|
|
4950
4950
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4951
4951
|
viewBox: "0 0 1024 1024"
|
|
4952
4952
|
}, [
|
|
@@ -4968,29 +4968,29 @@ var F0 = { exports: {} }, U0 = { 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(A0) : 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
4975
|
(!M || typeof M.version != "string") && r0("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
4977
|
(a < 2 || a === 2 && i < 6) && r0("Moment Timezone requires Moment.js >= 2.6.0. You are using Moment.js " + M.version + ". See momentjs.com");
|
|
4978
|
-
function
|
|
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], X = s[1] || "",
|
|
4983
|
-
for (A.charCodeAt(0) === 45 && (W = 1,
|
|
4984
|
-
|
|
4982
|
+
var W = 0, s = A.split("."), N = s[0], X = s[1] || "", S = 1, J, P = 0, H = 1;
|
|
4983
|
+
for (A.charCodeAt(0) === 45 && (W = 1, H = -1), W; W < N.length; W++)
|
|
4984
|
+
J = L(N.charCodeAt(W)), P = 60 * P + J;
|
|
4985
4985
|
for (W = 0; W < X.length; W++)
|
|
4986
|
-
|
|
4987
|
-
return
|
|
4986
|
+
S = S / 60, J = L(X.charCodeAt(W)), P += J * S;
|
|
4987
|
+
return P * H;
|
|
4988
4988
|
}
|
|
4989
4989
|
function h(A) {
|
|
4990
4990
|
for (var W = 0; W < A.length; W++)
|
|
4991
4991
|
A[W] = n(A[W]);
|
|
4992
4992
|
}
|
|
4993
|
-
function
|
|
4993
|
+
function u(A, W) {
|
|
4994
4994
|
for (var s = 0; s < W; s++)
|
|
4995
4995
|
A[s] = Math.round((A[s - 1] || 0) + A[s] * 6e4);
|
|
4996
4996
|
A[W - 1] = 1 / 0;
|
|
@@ -5003,7 +5003,7 @@ var F0 = { exports: {} }, U0 = { exports: {} };
|
|
|
5003
5003
|
}
|
|
5004
5004
|
function m(A) {
|
|
5005
5005
|
var W = A.split("|"), s = W[2].split(" "), N = W[3].split(""), X = W[4].split(" ");
|
|
5006
|
-
return h(s), h(N), h(X),
|
|
5006
|
+
return h(s), h(N), h(X), u(X, N.length), {
|
|
5007
5007
|
name: W[0],
|
|
5008
5008
|
abbrs: d(W[1].split(" "), N),
|
|
5009
5009
|
offsets: d(s, N),
|
|
@@ -5011,10 +5011,10 @@ var F0 = { exports: {} }, U0 = { exports: {} };
|
|
|
5011
5011
|
population: W[5] | 0
|
|
5012
5012
|
};
|
|
5013
5013
|
}
|
|
5014
|
-
function
|
|
5014
|
+
function R(A) {
|
|
5015
5015
|
A && this._set(m(A));
|
|
5016
5016
|
}
|
|
5017
|
-
function
|
|
5017
|
+
function g(A, W) {
|
|
5018
5018
|
var s = W.length;
|
|
5019
5019
|
if (A < W[0])
|
|
5020
5020
|
return 0;
|
|
@@ -5022,17 +5022,17 @@ var F0 = { exports: {} }, U0 = { exports: {} };
|
|
|
5022
5022
|
return s - 1;
|
|
5023
5023
|
if (A >= W[s - 1])
|
|
5024
5024
|
return -1;
|
|
5025
|
-
for (var N, X = 0,
|
|
5026
|
-
N = Math.floor((X +
|
|
5027
|
-
return
|
|
5025
|
+
for (var N, X = 0, S = s - 1; S - X > 1; )
|
|
5026
|
+
N = Math.floor((X + S) / 2), W[N] <= A ? X = N : S = N;
|
|
5027
|
+
return S;
|
|
5028
5028
|
}
|
|
5029
|
-
|
|
5029
|
+
R.prototype = {
|
|
5030
5030
|
_set: function(A) {
|
|
5031
5031
|
this.name = A.name, this.abbrs = A.abbrs, this.untils = A.untils, this.offsets = A.offsets, this.population = A.population;
|
|
5032
5032
|
},
|
|
5033
5033
|
_index: function(A) {
|
|
5034
5034
|
var W = +A, s = this.untils, N;
|
|
5035
|
-
if (N =
|
|
5035
|
+
if (N = g(W, s), N >= 0)
|
|
5036
5036
|
return N;
|
|
5037
5037
|
},
|
|
5038
5038
|
countries: function() {
|
|
@@ -5042,10 +5042,10 @@ var F0 = { exports: {} }, U0 = { exports: {} };
|
|
|
5042
5042
|
});
|
|
5043
5043
|
},
|
|
5044
5044
|
parse: function(A) {
|
|
5045
|
-
var W = +A, s = this.offsets, N = this.untils, X = N.length - 1,
|
|
5046
|
-
for (
|
|
5047
|
-
if (
|
|
5048
|
-
return s[
|
|
5045
|
+
var W = +A, s = this.offsets, N = this.untils, X = N.length - 1, S, J, P, H;
|
|
5046
|
+
for (H = 0; H < X; H++)
|
|
5047
|
+
if (S = s[H], J = s[H + 1], P = s[H && H - 1], S < J && E.moveAmbiguousForward ? S = J : S > P && E.moveInvalidForward && (S = P), W < N[H] - S * 6e4)
|
|
5048
|
+
return s[H];
|
|
5049
5049
|
return s[X];
|
|
5050
5050
|
},
|
|
5051
5051
|
abbr: function(A) {
|
|
@@ -5058,182 +5058,182 @@ var F0 = { exports: {} }, U0 = { exports: {} };
|
|
|
5058
5058
|
return this.offsets[this._index(A)];
|
|
5059
5059
|
}
|
|
5060
5060
|
};
|
|
5061
|
-
function
|
|
5061
|
+
function _(A, W) {
|
|
5062
5062
|
this.name = A, this.zones = W;
|
|
5063
5063
|
}
|
|
5064
|
-
function
|
|
5064
|
+
function y(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 F(A) {
|
|
5069
5069
|
this.zone = A, this.offsetScore = 0, this.abbrScore = 0;
|
|
5070
5070
|
}
|
|
5071
|
-
|
|
5071
|
+
F.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 B(A, W) {
|
|
5075
5075
|
for (var s, N; N = ((W.at - A.at) / 12e4 | 0) * 6e4; )
|
|
5076
|
-
s = new
|
|
5076
|
+
s = new y(new Date(A.at + N)), s.offset === A.offset ? A = s : W = s;
|
|
5077
5077
|
return A;
|
|
5078
5078
|
}
|
|
5079
|
-
function
|
|
5080
|
-
var A = (/* @__PURE__ */ new Date()).getFullYear() - 2, W = new
|
|
5081
|
-
for (
|
|
5082
|
-
|
|
5083
|
-
for (
|
|
5084
|
-
N.push(new
|
|
5079
|
+
function w() {
|
|
5080
|
+
var A = (/* @__PURE__ */ new Date()).getFullYear() - 2, W = new y(new Date(A, 0, 1)), s = W.offset, N = [W], X, S, J, P;
|
|
5081
|
+
for (P = 1; P < 48; P++)
|
|
5082
|
+
J = new Date(A, P, 1).getTimezoneOffset(), J !== s && (S = new y(new Date(A, P, 1)), X = B(W, S), N.push(X), N.push(new y(new Date(X.at + 6e4))), W = S, s = J);
|
|
5083
|
+
for (P = 0; P < 4; P++)
|
|
5084
|
+
N.push(new y(new Date(A + P, 0, 1))), N.push(new y(new Date(A + P, 6, 1)));
|
|
5085
5085
|
return N;
|
|
5086
5086
|
}
|
|
5087
|
-
function
|
|
5087
|
+
function Y(A, W) {
|
|
5088
5088
|
return A.offsetScore !== W.offsetScore ? A.offsetScore - W.offsetScore : A.abbrScore !== W.abbrScore ? A.abbrScore - W.abbrScore : A.zone.population !== W.zone.population ? W.zone.population - A.zone.population : W.zone.name.localeCompare(A.zone.name);
|
|
5089
5089
|
}
|
|
5090
|
-
function
|
|
5090
|
+
function M0(A, W) {
|
|
5091
5091
|
var s, N;
|
|
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 = [], X = {},
|
|
5097
|
-
for (
|
|
5098
|
-
if (
|
|
5099
|
-
|
|
5100
|
-
for (
|
|
5101
|
-
|
|
5102
|
-
X[
|
|
5095
|
+
function q0(A) {
|
|
5096
|
+
var W = A.length, s = {}, N = [], X = {}, S, J, P, H;
|
|
5097
|
+
for (S = 0; S < W; S++)
|
|
5098
|
+
if (P = A[S].offset, !X.hasOwnProperty(P)) {
|
|
5099
|
+
H = t[P] || {};
|
|
5100
|
+
for (J in H)
|
|
5101
|
+
H.hasOwnProperty(J) && (s[J] = !0);
|
|
5102
|
+
X[P] = !0;
|
|
5103
5103
|
}
|
|
5104
|
-
for (
|
|
5105
|
-
s.hasOwnProperty(
|
|
5104
|
+
for (S in s)
|
|
5105
|
+
s.hasOwnProperty(S) && N.push(e[S]);
|
|
5106
5106
|
return N;
|
|
5107
5107
|
}
|
|
5108
|
-
function
|
|
5108
|
+
function s0() {
|
|
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[i0(A)];
|
|
5113
5113
|
if (W)
|
|
5114
5114
|
return W;
|
|
5115
5115
|
r0("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 =
|
|
5120
|
-
for (
|
|
5121
|
-
for (
|
|
5122
|
-
|
|
5123
|
-
|
|
5119
|
+
var s = w(), N = s.length, X = q0(s), S = [], J, P, H;
|
|
5120
|
+
for (P = 0; P < X.length; P++) {
|
|
5121
|
+
for (J = new F(b0(X[P])), H = 0; H < N; H++)
|
|
5122
|
+
J.scoreOffsetAt(s[H]);
|
|
5123
|
+
S.push(J);
|
|
5124
5124
|
}
|
|
5125
|
-
return
|
|
5125
|
+
return S.sort(Y), S.length > 0 ? S[0].zone.name : void 0;
|
|
5126
5126
|
}
|
|
5127
|
-
function
|
|
5128
|
-
return (!q || A) && (q =
|
|
5127
|
+
function l0(A) {
|
|
5128
|
+
return (!q || A) && (q = s0()), q;
|
|
5129
5129
|
}
|
|
5130
|
-
function
|
|
5130
|
+
function i0(A) {
|
|
5131
5131
|
return (A || "").toLowerCase().replace(/\//g, "_");
|
|
5132
5132
|
}
|
|
5133
|
-
function
|
|
5133
|
+
function W0(A) {
|
|
5134
5134
|
var W, s, N, X;
|
|
5135
5135
|
for (typeof A == "string" && (A = [A]), W = 0; W < A.length; W++)
|
|
5136
|
-
N = A[W].split("|"), s = N[0], X =
|
|
5136
|
+
N = A[W].split("|"), s = N[0], X = i0(s), O[X] = A[W], e[X] = s, M0(X, N[2].split(" "));
|
|
5137
5137
|
}
|
|
5138
|
-
function
|
|
5139
|
-
A =
|
|
5138
|
+
function b0(A, W) {
|
|
5139
|
+
A = i0(A);
|
|
5140
5140
|
var s = O[A], N;
|
|
5141
|
-
return s instanceof
|
|
5141
|
+
return s instanceof R ? s : typeof s == "string" ? (s = new R(s), O[A] = s, s) : p[A] && W !== b0 && (N = b0(p[A], b0)) ? (s = O[A] = new R(), s._set(N), s.name = e[A], s) : null;
|
|
5142
5142
|
}
|
|
5143
|
-
function
|
|
5143
|
+
function f0() {
|
|
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 u0() {
|
|
5150
5150
|
return Object.keys(o);
|
|
5151
5151
|
}
|
|
5152
|
-
function
|
|
5152
|
+
function n0(A) {
|
|
5153
5153
|
var W, s, N, X;
|
|
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 = i0(s[0]), X = i0(s[1]), p[N] = X, e[N] = s[0], p[X] = N, e[X] = s[1];
|
|
5156
5156
|
}
|
|
5157
|
-
function
|
|
5157
|
+
function a0(A) {
|
|
5158
5158
|
var W, s, N, X;
|
|
5159
5159
|
if (!(!A || !A.length))
|
|
5160
5160
|
for (W = 0; W < A.length; W++)
|
|
5161
|
-
X = A[W].split("|"), s = X[0].toUpperCase(), N = X[1].split(" "), o[s] = new
|
|
5161
|
+
X = A[W].split("|"), s = X[0].toUpperCase(), N = X[1].split(" "), o[s] = new _(
|
|
5162
5162
|
s,
|
|
5163
5163
|
N
|
|
5164
5164
|
);
|
|
5165
5165
|
}
|
|
5166
|
-
function
|
|
5166
|
+
function d0(A) {
|
|
5167
5167
|
return A = A.toUpperCase(), o[A] || null;
|
|
5168
5168
|
}
|
|
5169
|
-
function
|
|
5170
|
-
if (A =
|
|
5169
|
+
function U(A, W) {
|
|
5170
|
+
if (A = d0(A), !A)
|
|
5171
5171
|
return null;
|
|
5172
5172
|
var s = A.zones.sort();
|
|
5173
5173
|
return W ? s.map(function(N) {
|
|
5174
|
-
var X =
|
|
5174
|
+
var X = b0(N);
|
|
5175
5175
|
return {
|
|
5176
5176
|
name: N,
|
|
5177
5177
|
offset: X.utcOffset(/* @__PURE__ */ new Date())
|
|
5178
5178
|
};
|
|
5179
5179
|
}) : s;
|
|
5180
5180
|
}
|
|
5181
|
-
function
|
|
5182
|
-
|
|
5181
|
+
function h0(A) {
|
|
5182
|
+
W0(A.zones), n0(A.links), a0(A.countries), E.dataVersion = A.version;
|
|
5183
5183
|
}
|
|
5184
5184
|
function k(A) {
|
|
5185
|
-
return k.didShowError || (k.didShowError = !0, r0("moment.tz.zoneExists('" + A + "') has been deprecated in favor of !moment.tz.zone('" + A + "')")), !!
|
|
5185
|
+
return k.didShowError || (k.didShowError = !0, r0("moment.tz.zoneExists('" + A + "') has been deprecated in favor of !moment.tz.zone('" + A + "')")), !!b0(A);
|
|
5186
5186
|
}
|
|
5187
|
-
function
|
|
5187
|
+
function O0(A) {
|
|
5188
5188
|
var W = A._f === "X" || A._f === "x";
|
|
5189
5189
|
return !!(A._a && A._tzm === void 0 && !W);
|
|
5190
5190
|
}
|
|
5191
5191
|
function r0(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), X;
|
|
5196
|
-
return !M.isMoment(A) &&
|
|
5196
|
+
return !M.isMoment(A) && O0(N) && (X = b0(s)) && N.add(X.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 = W0, E.link = n0, E.load = h0, E.zone = b0, E.zoneExists = k, E.guess = l0, E.names = f0, E.Zone = R, E.unpack = m, E.unpackBase60 = n, E.needsOffset = O0, E.moveInvalidForward = !0, E.moveAmbiguousForward = !1, E.countries = u0, E.zonesForCountry = U;
|
|
5199
|
+
var o0 = 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 && O0(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 X = A._z;
|
|
5205
5205
|
A.utcOffset(-N, W), A._z = X;
|
|
5206
5206
|
} else
|
|
5207
5207
|
A.zone(N, W);
|
|
5208
|
-
},
|
|
5208
|
+
}, o0.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 = b0(A), this._z ? M.updateOffset(this, W) : r0("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 m0(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 N0(A) {
|
|
5223
5223
|
return function() {
|
|
5224
5224
|
return this._z = null, A.apply(this, arguments);
|
|
5225
5225
|
};
|
|
5226
5226
|
}
|
|
5227
|
-
function
|
|
5227
|
+
function g0(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) && r0("Moment Timezone setDefault() requires Moment.js >= 2.9.0. You are using Moment.js " + M.version + "."), M.defaultZone = A ?
|
|
5232
|
+
o0.zoneName = m0(o0.zoneName), o0.zoneAbbr = m0(o0.zoneAbbr), o0.utc = N0(o0.utc), o0.local = N0(o0.local), o0.utcOffset = g0(o0.utcOffset), M.tz.setDefault = function(A) {
|
|
5233
|
+
return (a < 2 || a === 2 && i < 9) && r0("Moment Timezone setDefault() requires Moment.js >= 2.9.0. You are using Moment.js " + M.version + "."), M.defaultZone = A ? b0(A) : null, M;
|
|
5234
5234
|
};
|
|
5235
|
-
var
|
|
5236
|
-
return Object.prototype.toString.call(
|
|
5235
|
+
var B0 = M.momentProperties;
|
|
5236
|
+
return Object.prototype.toString.call(B0) === "[object Array]" ? (B0.push("_z"), B0.push("_a")) : B0 && (B0._z = null), M;
|
|
5237
5237
|
});
|
|
5238
5238
|
})(U0);
|
|
5239
5239
|
var J2 = U0.exports;
|
|
@@ -6092,7 +6092,7 @@ const Q2 = "2025a", $2 = [
|
|
|
6092
6092
|
var bM = F0.exports = J2;
|
|
6093
6093
|
bM.tz.load(MM);
|
|
6094
6094
|
var zM = F0.exports;
|
|
6095
|
-
const
|
|
6095
|
+
const _0 = /* @__PURE__ */ K2(zM);
|
|
6096
6096
|
const pM = {
|
|
6097
6097
|
name: "IdmPoint",
|
|
6098
6098
|
components: { LocationFilled: G2 },
|
|
@@ -6127,7 +6127,6 @@ const pM = {
|
|
|
6127
6127
|
positionGmt: void 0,
|
|
6128
6128
|
localDate: void 0,
|
|
6129
6129
|
meteoMarker: void 0,
|
|
6130
|
-
helper: v0,
|
|
6131
6130
|
activeIndex: 1
|
|
6132
6131
|
};
|
|
6133
6132
|
},
|
|
@@ -6157,27 +6156,27 @@ const pM = {
|
|
|
6157
6156
|
computed: {
|
|
6158
6157
|
computeHourL() {
|
|
6159
6158
|
return function(z) {
|
|
6160
|
-
return z ? `${
|
|
6159
|
+
return z ? `${_0(z).tz(this.positionGmt).format("HH")}` : "-";
|
|
6161
6160
|
};
|
|
6162
6161
|
},
|
|
6163
6162
|
computeHourZ() {
|
|
6164
6163
|
return function(z) {
|
|
6165
|
-
return z ? `${
|
|
6164
|
+
return z ? `${A0(z).utc().format("HH")}Z` : "-";
|
|
6166
6165
|
};
|
|
6167
6166
|
},
|
|
6168
6167
|
computeLat() {
|
|
6169
6168
|
return function(z, M = 4) {
|
|
6170
|
-
return
|
|
6169
|
+
return $.lat2pretty(z, M).pretty;
|
|
6171
6170
|
};
|
|
6172
6171
|
},
|
|
6173
6172
|
computeLng() {
|
|
6174
6173
|
return function(z, M = 4) {
|
|
6175
|
-
return
|
|
6174
|
+
return $.lng2pretty(z, M).pretty;
|
|
6176
6175
|
};
|
|
6177
6176
|
},
|
|
6178
6177
|
roundPrecision() {
|
|
6179
6178
|
return function(z, M = 4) {
|
|
6180
|
-
return isNaN(z) ? "-" :
|
|
6179
|
+
return isNaN(z) ? "-" : $.roundPrecision(z, M);
|
|
6181
6180
|
};
|
|
6182
6181
|
}
|
|
6183
6182
|
},
|
|
@@ -6185,11 +6184,12 @@ const pM = {
|
|
|
6185
6184
|
},
|
|
6186
6185
|
methods: {
|
|
6187
6186
|
initTableData() {
|
|
6188
|
-
var z, M, b, O, p, o, e, t, q, r, a, i,
|
|
6189
|
-
this.currentHourData = (z = D0.pickHourly(this.meteoData, this.ts ?
|
|
6187
|
+
var z, M, b, O, p, o, e, t, q, r, a, i, L, n, h, u, d, m, R, g, _, y, F, B, w, Y, M0, q0, s0, l0, i0, W0, b0, f0, u0, n0;
|
|
6188
|
+
this.currentHourData = (z = D0.pickHourly(this.meteoData, this.ts ? A0(this.ts) : A0())) == null ? void 0 : z[0], this.positionGmt = (b = (M = this.meteoData.weather) == null ? void 0 : M[0]) == null ? void 0 : b.timezone, this.localDate = _0(this.ts).tz(this.positionGmt).format("MMM-DD/HHmm[LT]"), this.tableData = {
|
|
6190
6189
|
hours: [],
|
|
6191
6190
|
utcHours: [],
|
|
6192
6191
|
weatherUrls: [],
|
|
6192
|
+
weatherNames: [],
|
|
6193
6193
|
temp: [],
|
|
6194
6194
|
precipProbability: [],
|
|
6195
6195
|
precip1h: [],
|
|
@@ -6207,14 +6207,15 @@ const pM = {
|
|
|
6207
6207
|
swellDir: [],
|
|
6208
6208
|
swellPeriod: [],
|
|
6209
6209
|
currentSpeed: [],
|
|
6210
|
-
currentDir: []
|
|
6210
|
+
currentDir: [],
|
|
6211
|
+
seaLevel: [],
|
|
6212
|
+
seaTemp: []
|
|
6211
6213
|
};
|
|
6212
|
-
for (let
|
|
6213
|
-
const
|
|
6214
|
-
|
|
6215
|
-
this.
|
|
6216
|
-
|
|
6217
|
-
this.tableData.weatherUrls.push((p = j.weather) == null ? void 0 : p.url), this.tableData.temp.push(this.roundPrecision((o = j.weather) == null ? void 0 : o.temp, 0) ?? "-"), this.tableData.precipProbability.push(this.roundPrecision((t = (e = j.weather) == null ? void 0 : e.precip) == null ? void 0 : t.probability, 0) ?? "-"), this.tableData.precip1h.push(this.roundPrecision((r = (q = j.weather) == null ? void 0 : q.precip) == null ? void 0 : r.sum, 0) ?? "-"), this.tableData.visibility.push(this.roundPrecision((a = j.weather) == null ? void 0 : a.visibility, 0) ?? "-"), this.tableData.windSpeed.push(this.roundPrecision((f = (i = j.weather) == null ? void 0 : i.wind) == null ? void 0 : f.kts, 1) ?? "-"), this.tableData.windDir.push((h = (n = j.weather) == null ? void 0 : n.wind) == null ? void 0 : h.bearing), this.tableData.windGust.push(this.roundPrecision((d = (l = j.weather) == null ? void 0 : l.wind) == null ? void 0 : d.gusts, 1) ?? "-"), this.tableData.sigwaveHeight.push(this.roundPrecision((u = (m = j.wave) == null ? void 0 : m.sig) == null ? void 0 : u.height, 1) ?? "-"), this.tableData.sigwaveDir.push((w = (y = j.wave) == null ? void 0 : y.sig) == null ? void 0 : w.bearing), this.tableData.windwaveHeight.push(this.roundPrecision((g = (B = j.wave) == null ? void 0 : B.wd) == null ? void 0 : g.height, 1) ?? "-"), this.tableData.windwaveDir.push((J = (P = j.wave) == null ? void 0 : P.wd) == null ? void 0 : J.bearing), this.tableData.windwavePeriod.push(this.roundPrecision((Z = ($ = j.wave) == null ? void 0 : $.wd) == null ? void 0 : Z.period, 1) ?? "-"), this.tableData.swellHeight.push(this.roundPrecision((W0 = (t0 = j.wave) == null ? void 0 : t0.swell) == null ? void 0 : W0.height, 1) ?? "-"), this.tableData.swellDir.push((a0 = (s0 = j.wave) == null ? void 0 : s0.swell) == null ? void 0 : a0.bearing), this.tableData.swellPeriod.push(this.roundPrecision((Y = (d0 = j.wave) == null ? void 0 : d0.swell) == null ? void 0 : Y.period, 1) ?? "-"), this.tableData.currentSpeed.push(this.roundPrecision((l0 = j.current) == null ? void 0 : l0.speed, 1) ?? "-"), this.tableData.currentDir.push((f0 = j.current) == null ? void 0 : f0.bearing);
|
|
6214
|
+
for (let a0 = 0; a0 < 8; a0++) {
|
|
6215
|
+
const d0 = _0(this.ts).tz(this.positionGmt).add(3 * a0, "h").format();
|
|
6216
|
+
this.tableData.hours.push(d0);
|
|
6217
|
+
const U = ((O = D0.pickHourly(this.meteoData, d0)) == null ? void 0 : O[0]) || {};
|
|
6218
|
+
this.tableData.weatherUrls.push((p = U.weather) == null ? void 0 : p.url), this.tableData.weatherNames.push(((o = U.weather) == null ? void 0 : o.name) ?? "-"), this.tableData.temp.push(this.roundPrecision((e = U.weather) == null ? void 0 : e.temp, 0) ?? "-"), this.tableData.precipProbability.push(this.roundPrecision((q = (t = U.weather) == null ? void 0 : t.precip) == null ? void 0 : q.probability, 0) ?? "-"), this.tableData.precip1h.push(this.roundPrecision((a = (r = U.weather) == null ? void 0 : r.precip) == null ? void 0 : a.sum, 0) ?? "-"), this.tableData.visibility.push(this.roundPrecision((i = U.weather) == null ? void 0 : i.visibility, 0) ?? "-"), this.tableData.windSpeed.push(this.roundPrecision((n = (L = U.weather) == null ? void 0 : L.wind) == null ? void 0 : n.kts, 1) ?? "-"), this.tableData.windDir.push((u = (h = U.weather) == null ? void 0 : h.wind) == null ? void 0 : u.bearing), this.tableData.windGust.push(this.roundPrecision((m = (d = U.weather) == null ? void 0 : d.wind) == null ? void 0 : m.gusts, 1) ?? "-"), this.tableData.sigwaveHeight.push(this.roundPrecision((g = (R = U.wave) == null ? void 0 : R.sig) == null ? void 0 : g.height, 1) ?? "-"), this.tableData.sigwaveDir.push((y = (_ = U.wave) == null ? void 0 : _.sig) == null ? void 0 : y.bearing), this.tableData.windwaveHeight.push(this.roundPrecision((B = (F = U.wave) == null ? void 0 : F.wd) == null ? void 0 : B.height, 1) ?? "-"), this.tableData.windwaveDir.push((Y = (w = U.wave) == null ? void 0 : w.wd) == null ? void 0 : Y.bearing), this.tableData.windwavePeriod.push(this.roundPrecision((q0 = (M0 = U.wave) == null ? void 0 : M0.wd) == null ? void 0 : q0.period, 1) ?? "-"), this.tableData.swellHeight.push(this.roundPrecision((l0 = (s0 = U.wave) == null ? void 0 : s0.swell) == null ? void 0 : l0.height, 1) ?? "-"), this.tableData.swellDir.push((W0 = (i0 = U.wave) == null ? void 0 : i0.swell) == null ? void 0 : W0.bearing), this.tableData.swellPeriod.push(this.roundPrecision((f0 = (b0 = U.wave) == null ? void 0 : b0.swell) == null ? void 0 : f0.period, 1) ?? "-"), this.tableData.currentSpeed.push(this.roundPrecision((u0 = U.current) == null ? void 0 : u0.speed, 1) ?? "-"), this.tableData.currentDir.push((n0 = U.current) == null ? void 0 : n0.bearing), this.tableData.seaLevel.push(this.roundPrecision(U.height, 1) ?? "-"), this.tableData.seaTemp.push(this.roundPrecision(U.sst, 0) ?? "-");
|
|
6218
6219
|
}
|
|
6219
6220
|
},
|
|
6220
6221
|
handleSelectTab(z) {
|
|
@@ -6239,7 +6240,7 @@ const pM = {
|
|
|
6239
6240
|
handleRender() {
|
|
6240
6241
|
var M;
|
|
6241
6242
|
const z = document.getElementById("point-meteo");
|
|
6242
|
-
this.meteoData && (this.meteoMarker ? (M = this.meteoMarker) == null || M.setLngLat([this.meteoData.lng, this.meteoData.lat]) : this.meteoMarker = new
|
|
6243
|
+
this.meteoData && (this.meteoMarker ? (M = this.meteoMarker) == null || M.setLngLat([this.meteoData.lng, this.meteoData.lat]) : this.meteoMarker = new R0.Marker(z).setLngLat([this.meteoData.lng, this.meteoData.lat]).addTo(this.map));
|
|
6243
6244
|
}
|
|
6244
6245
|
}
|
|
6245
6246
|
}, OM = {
|
|
@@ -6248,332 +6249,475 @@ const pM = {
|
|
|
6248
6249
|
}, oM = { class: "meteo-box" }, cM = { class: "header-box flex-between" }, eM = { class: "flex-center" }, AM = { class: "lnglat" }, tM = { class: "main-box" }, aM = { class: "summary-row flex-between" }, qM = { class: "summary flex-center" }, iM = ["src"], rM = { class: "temp" }, nM = { class: "des info" }, dM = { class: "flex-start" }, WM = { class: "flex-start" }, sM = { class: "flex-start" }, lM = { class: "date flex-col-center-end" }, fM = { class: "" }, uM = { class: "" }, LM = { class: "detail-box" }, RM = { class: "menu-header flex-start" }, hM = {
|
|
6249
6250
|
key: 0,
|
|
6250
6251
|
class: "basic-table"
|
|
6251
|
-
}, mM = { class: "
|
|
6252
|
+
}, mM = { class: "hour" }, NM = { class: "hour" }, BM = { class: "icon" }, yM = ["src"], gM = { class: "text" }, XM = { class: "text" }, vM = { class: "text" }, TM = { class: "text" }, wM = {
|
|
6252
6253
|
key: 1,
|
|
6253
6254
|
class: "wave-current-table"
|
|
6254
|
-
}, CM = { class: "
|
|
6255
|
-
|
|
6256
|
-
|
|
6257
|
-
|
|
6258
|
-
|
|
6255
|
+
}, CM = { class: "hour" }, _M = { class: "hour" }, xM = { class: "icon" }, SM = ["src"], EM = { class: "text" }, PM = { class: "text" }, kM = { class: "text" }, DM = { class: "text" }, IM = {
|
|
6256
|
+
key: 2,
|
|
6257
|
+
class: "sea-table"
|
|
6258
|
+
}, jM = { class: "hour" }, FM = { class: "hour" }, UM = { class: "icon" }, HM = ["src"], GM = { class: "text" }, VM = { class: "text" };
|
|
6259
|
+
function KM(z, M, b, O, p, o) {
|
|
6260
|
+
var r, a, i, L, n, h, u, d, m, R, g, _, y, F;
|
|
6261
|
+
const e = x("LocationFilled"), t = x("ElIcon"), q = x("ElTooltip");
|
|
6262
|
+
return l(), f("div", null, [
|
|
6259
6263
|
T0(c("div", OM, [
|
|
6260
6264
|
c("div", oM, [
|
|
6261
6265
|
c("div", cM, [
|
|
6262
6266
|
c("div", eM, [
|
|
6263
|
-
|
|
6264
|
-
default:
|
|
6265
|
-
|
|
6267
|
+
v(t, { size: "22" }, {
|
|
6268
|
+
default: c0(() => [
|
|
6269
|
+
v(e)
|
|
6266
6270
|
]),
|
|
6267
6271
|
_: 1
|
|
6268
6272
|
}),
|
|
6269
|
-
c("div", AM,
|
|
6273
|
+
c("div", AM, C(o.computeLat((r = p.meteoData) == null ? void 0 : r.lat)) + "," + C(o.computeLng((a = p.meteoData) == null ? void 0 : a.lng)), 1)
|
|
6270
6274
|
]),
|
|
6271
6275
|
c("div", {
|
|
6272
6276
|
class: "iconfont close",
|
|
6273
|
-
onClick: M[0] || (M[0] = (
|
|
6277
|
+
onClick: M[0] || (M[0] = (B) => p.showMeteo = !1)
|
|
6274
6278
|
}, "")
|
|
6275
6279
|
]),
|
|
6276
6280
|
c("div", tM, [
|
|
6277
6281
|
c("div", aM, [
|
|
6278
6282
|
c("div", qM, [
|
|
6279
|
-
|
|
6280
|
-
|
|
6281
|
-
|
|
6282
|
-
|
|
6283
|
-
|
|
6283
|
+
v(q, {
|
|
6284
|
+
placement: "top",
|
|
6285
|
+
effect: "light",
|
|
6286
|
+
content: (L = (i = p.currentHourData) == null ? void 0 : i.weather) == null ? void 0 : L.name,
|
|
6287
|
+
"show-after": 1e3
|
|
6288
|
+
}, {
|
|
6289
|
+
default: c0(() => {
|
|
6290
|
+
var B, w;
|
|
6291
|
+
return [
|
|
6292
|
+
c("img", {
|
|
6293
|
+
class: "iconfont icon",
|
|
6294
|
+
style: { "margin-right": "5px" },
|
|
6295
|
+
src: (w = (B = p.currentHourData) == null ? void 0 : B.weather) == null ? void 0 : w.url
|
|
6296
|
+
}, null, 8, iM)
|
|
6297
|
+
];
|
|
6298
|
+
}),
|
|
6299
|
+
_: 1
|
|
6300
|
+
}, 8, ["content"]),
|
|
6284
6301
|
c("div", rM, [
|
|
6285
6302
|
c("span", null, [
|
|
6286
|
-
|
|
6287
|
-
M[
|
|
6303
|
+
Z(C(o.roundPrecision((h = (n = p.currentHourData) == null ? void 0 : n.weather) == null ? void 0 : h.temp, 0)), 1),
|
|
6304
|
+
M[5] || (M[5] = c("span", { style: { "font-size": "14px" } }, "°C", -1))
|
|
6288
6305
|
])
|
|
6289
6306
|
]),
|
|
6290
6307
|
c("div", nM, [
|
|
6291
6308
|
c("div", dM, [
|
|
6292
|
-
M[
|
|
6293
|
-
c("span", null,
|
|
6309
|
+
M[6] || (M[6] = c("label", null, "Precip : ", -1)),
|
|
6310
|
+
c("span", null, C(o.roundPrecision((m = (d = (u = p.currentHourData) == null ? void 0 : u.weather) == null ? void 0 : d.precip) == null ? void 0 : m.sum, 0)) + " mm", 1)
|
|
6294
6311
|
]),
|
|
6295
6312
|
c("div", WM, [
|
|
6296
|
-
M[
|
|
6297
|
-
c("span", null,
|
|
6313
|
+
M[7] || (M[7] = c("label", null, "Visibility : ", -1)),
|
|
6314
|
+
c("span", null, C(o.roundPrecision((g = (R = p.currentHourData) == null ? void 0 : R.weather) == null ? void 0 : g.visibility, 0)) + " nm", 1)
|
|
6298
6315
|
]),
|
|
6299
6316
|
c("div", sM, [
|
|
6300
|
-
M[
|
|
6301
|
-
c("span", null,
|
|
6317
|
+
M[8] || (M[8] = c("label", null, "Wind : ", -1)),
|
|
6318
|
+
c("span", null, C(o.roundPrecision((F = (y = (_ = p.currentHourData) == null ? void 0 : _.weather) == null ? void 0 : y.wind) == null ? void 0 : F.kts, 1)) + " kts", 1)
|
|
6302
6319
|
])
|
|
6303
6320
|
])
|
|
6304
6321
|
]),
|
|
6305
6322
|
c("div", lM, [
|
|
6306
|
-
c("div", fM,
|
|
6307
|
-
c("div", uM,
|
|
6323
|
+
c("div", fM, C(p.localDate), 1),
|
|
6324
|
+
c("div", uM, C(p.positionGmt), 1)
|
|
6308
6325
|
])
|
|
6309
6326
|
]),
|
|
6310
6327
|
c("div", LM, [
|
|
6311
6328
|
c("div", RM, [
|
|
6312
6329
|
c("div", {
|
|
6313
|
-
class:
|
|
6314
|
-
onClick: M[1] || (M[1] =
|
|
6330
|
+
class: K(["menu-item", p.activeIndex === 1 ? "active" : ""]),
|
|
6331
|
+
onClick: M[1] || (M[1] = v0((B) => o.handleSelectTab(1), ["prevent"]))
|
|
6315
6332
|
}, "Basis", 2),
|
|
6316
6333
|
c("div", {
|
|
6317
|
-
class:
|
|
6318
|
-
onClick: M[2] || (M[2] =
|
|
6319
|
-
}, "Wave & Current", 2)
|
|
6334
|
+
class: K(["menu-item", p.activeIndex === 2 ? "active" : ""]),
|
|
6335
|
+
onClick: M[2] || (M[2] = v0((B) => o.handleSelectTab(2), ["prevent"]))
|
|
6336
|
+
}, "Wave & Current", 2),
|
|
6337
|
+
c("div", {
|
|
6338
|
+
class: K(["menu-item", p.activeIndex === 3 ? "active" : ""]),
|
|
6339
|
+
onClick: M[3] || (M[3] = v0((B) => o.handleSelectTab(3), ["prevent"]))
|
|
6340
|
+
}, "Sea Surface", 2)
|
|
6320
6341
|
]),
|
|
6321
|
-
p.activeIndex === 1 ? (
|
|
6342
|
+
p.activeIndex === 1 ? (l(), f("table", hM, [
|
|
6322
6343
|
c("tr", mM, [
|
|
6323
|
-
M[
|
|
6344
|
+
M[9] || (M[9] = c("th", {
|
|
6324
6345
|
rowspan: "1",
|
|
6325
6346
|
colspan: "1",
|
|
6326
6347
|
class: "tr-title"
|
|
6327
6348
|
}, [
|
|
6328
|
-
|
|
6329
|
-
c("span", { class: "unit" })
|
|
6349
|
+
Z("Hours"),
|
|
6350
|
+
c("span", { class: "unit" }, "(LT)")
|
|
6330
6351
|
], -1)),
|
|
6331
|
-
(
|
|
6352
|
+
(l(!0), f(V, null, Q(p.tableData.hours, (B) => (l(), f("th", {
|
|
6332
6353
|
rowspan: "1",
|
|
6333
6354
|
colspan: "1",
|
|
6334
6355
|
key: Math.random()
|
|
6335
|
-
},
|
|
6356
|
+
}, C(o.computeHourL(B)), 1))), 128))
|
|
6336
6357
|
]),
|
|
6337
6358
|
c("tr", NM, [
|
|
6338
|
-
M[
|
|
6359
|
+
M[10] || (M[10] = c("th", {
|
|
6339
6360
|
rowspan: "1",
|
|
6340
6361
|
colspan: "1",
|
|
6341
6362
|
class: "tr-title"
|
|
6342
|
-
},
|
|
6343
|
-
|
|
6363
|
+
}, [
|
|
6364
|
+
Z("UTC"),
|
|
6365
|
+
c("span", { class: "unit" })
|
|
6366
|
+
], -1)),
|
|
6367
|
+
(l(!0), f(V, null, Q(p.tableData.hours, (B) => (l(), f("th", {
|
|
6344
6368
|
rowspan: "1",
|
|
6345
6369
|
colspan: "1",
|
|
6346
6370
|
key: Math.random()
|
|
6347
|
-
},
|
|
6371
|
+
}, C(o.computeHourZ(B)), 1))), 128))
|
|
6348
6372
|
]),
|
|
6349
6373
|
c("tr", BM, [
|
|
6350
|
-
M[
|
|
6374
|
+
M[11] || (M[11] = c("th", {
|
|
6351
6375
|
rowspan: "1",
|
|
6352
6376
|
colspan: "1",
|
|
6353
6377
|
class: "tr-title"
|
|
6354
6378
|
}, null, -1)),
|
|
6355
|
-
(
|
|
6379
|
+
(l(!0), f(V, null, Q(p.tableData.weatherUrls, (B, w) => (l(), f("th", {
|
|
6356
6380
|
rowspan: "1",
|
|
6357
6381
|
colspan: "1",
|
|
6358
6382
|
key: Math.random()
|
|
6359
6383
|
}, [
|
|
6360
|
-
|
|
6361
|
-
|
|
6362
|
-
|
|
6363
|
-
|
|
6384
|
+
v(q, {
|
|
6385
|
+
placement: "top",
|
|
6386
|
+
effect: "light",
|
|
6387
|
+
content: p.tableData.weatherNames[w],
|
|
6388
|
+
"show-after": 500
|
|
6389
|
+
}, {
|
|
6390
|
+
default: c0(() => [
|
|
6391
|
+
B ? (l(), f("img", {
|
|
6392
|
+
key: 0,
|
|
6393
|
+
class: "iconfont weather-icon",
|
|
6394
|
+
src: B
|
|
6395
|
+
}, null, 8, yM)) : D("", !0)
|
|
6396
|
+
]),
|
|
6397
|
+
_: 2
|
|
6398
|
+
}, 1032, ["content"])
|
|
6364
6399
|
]))), 128))
|
|
6365
6400
|
]),
|
|
6366
6401
|
c("tr", gM, [
|
|
6367
|
-
M[
|
|
6402
|
+
M[12] || (M[12] = c("td", {
|
|
6368
6403
|
rowspan: "1",
|
|
6369
6404
|
colspan: "1",
|
|
6370
6405
|
class: "tr-title"
|
|
6371
6406
|
}, [
|
|
6372
|
-
|
|
6407
|
+
Z("Temp"),
|
|
6373
6408
|
c("span", { class: "unit" }, "°C")
|
|
6374
6409
|
], -1)),
|
|
6375
|
-
(
|
|
6410
|
+
(l(!0), f(V, null, Q(p.tableData.temp, (B) => (l(), f("td", {
|
|
6376
6411
|
rowspan: "1",
|
|
6377
6412
|
colspan: "1",
|
|
6378
6413
|
key: Math.random()
|
|
6379
|
-
},
|
|
6414
|
+
}, C(B), 1))), 128))
|
|
6380
6415
|
]),
|
|
6381
6416
|
c("tr", XM, [
|
|
6382
|
-
M[
|
|
6417
|
+
M[13] || (M[13] = c("td", {
|
|
6383
6418
|
rowspan: "1",
|
|
6384
6419
|
colspan: "1",
|
|
6385
6420
|
class: "tr-title"
|
|
6386
6421
|
}, [
|
|
6387
|
-
|
|
6422
|
+
Z("Precip"),
|
|
6388
6423
|
c("span", { class: "unit" }, "mm")
|
|
6389
6424
|
], -1)),
|
|
6390
|
-
(
|
|
6425
|
+
(l(!0), f(V, null, Q(p.tableData.precip1h, (B) => (l(), f("td", {
|
|
6391
6426
|
rowspan: "1",
|
|
6392
6427
|
colspan: "1",
|
|
6393
6428
|
key: Math.random()
|
|
6394
|
-
},
|
|
6429
|
+
}, C(B), 1))), 128))
|
|
6395
6430
|
]),
|
|
6396
6431
|
c("tr", vM, [
|
|
6397
|
-
M[
|
|
6432
|
+
M[14] || (M[14] = c("td", {
|
|
6398
6433
|
rowspan: "1",
|
|
6399
6434
|
colspan: "1",
|
|
6400
6435
|
class: "tr-title"
|
|
6401
6436
|
}, [
|
|
6402
|
-
|
|
6437
|
+
Z("Visibility"),
|
|
6403
6438
|
c("span", { class: "unit" }, "nm")
|
|
6404
6439
|
], -1)),
|
|
6405
|
-
(
|
|
6440
|
+
(l(!0), f(V, null, Q(p.tableData.visibility, (B) => (l(), f("td", {
|
|
6406
6441
|
rowspan: "1",
|
|
6407
6442
|
colspan: "1",
|
|
6408
6443
|
key: Math.random()
|
|
6409
|
-
},
|
|
6444
|
+
}, C(B), 1))), 128))
|
|
6410
6445
|
]),
|
|
6411
6446
|
c("tr", TM, [
|
|
6412
|
-
M[
|
|
6447
|
+
M[15] || (M[15] = c("td", {
|
|
6413
6448
|
rowspan: "1",
|
|
6414
6449
|
colspan: "1",
|
|
6415
6450
|
class: "tr-title"
|
|
6416
6451
|
}, [
|
|
6417
|
-
|
|
6452
|
+
Z("Wind"),
|
|
6418
6453
|
c("span", { class: "unit" }, "kts")
|
|
6419
6454
|
], -1)),
|
|
6420
|
-
(
|
|
6455
|
+
(l(!0), f(V, null, Q(p.tableData.windSpeed, (B, w) => (l(), f("td", {
|
|
6421
6456
|
rowspan: "1",
|
|
6422
6457
|
colspan: "1",
|
|
6423
6458
|
key: Math.random()
|
|
6424
6459
|
}, [
|
|
6425
|
-
|
|
6460
|
+
isNaN(p.tableData.windDir[w]) ? D("", !0) : (l(), f("span", {
|
|
6461
|
+
key: 0,
|
|
6426
6462
|
class: "iconfont icon blue",
|
|
6427
|
-
style:
|
|
6428
|
-
}, "", 4),
|
|
6429
|
-
c("span", null,
|
|
6463
|
+
style: z0({ display: "inline-block", transform: `rotate(${p.tableData.windDir[w]}deg)` })
|
|
6464
|
+
}, "", 4)),
|
|
6465
|
+
c("span", null, C(B), 1)
|
|
6430
6466
|
]))), 128))
|
|
6431
6467
|
])
|
|
6432
|
-
])) :
|
|
6433
|
-
p.activeIndex === 2 ? (
|
|
6468
|
+
])) : D("", !0),
|
|
6469
|
+
p.activeIndex === 2 ? (l(), f("table", wM, [
|
|
6434
6470
|
c("tr", CM, [
|
|
6435
|
-
M[
|
|
6471
|
+
M[16] || (M[16] = c("th", {
|
|
6436
6472
|
rowspan: "1",
|
|
6437
6473
|
colspan: "1",
|
|
6438
6474
|
class: "tr-title"
|
|
6439
6475
|
}, [
|
|
6440
|
-
|
|
6441
|
-
c("span", { class: "unit" })
|
|
6476
|
+
Z("Hours"),
|
|
6477
|
+
c("span", { class: "unit" }, "(LT)")
|
|
6442
6478
|
], -1)),
|
|
6443
|
-
(
|
|
6479
|
+
(l(!0), f(V, null, Q(p.tableData.hours, (B) => (l(), f("th", {
|
|
6444
6480
|
rowspan: "1",
|
|
6445
6481
|
colspan: "1",
|
|
6446
6482
|
key: Math.random()
|
|
6447
|
-
},
|
|
6483
|
+
}, C(o.computeHourL(B)), 1))), 128))
|
|
6448
6484
|
]),
|
|
6449
6485
|
c("tr", _M, [
|
|
6450
|
-
M[
|
|
6486
|
+
M[17] || (M[17] = c("th", {
|
|
6451
6487
|
rowspan: "1",
|
|
6452
|
-
colspan: "1"
|
|
6453
|
-
|
|
6454
|
-
|
|
6488
|
+
colspan: "1",
|
|
6489
|
+
class: "tr-title"
|
|
6490
|
+
}, [
|
|
6491
|
+
Z("UTC"),
|
|
6492
|
+
c("span", { class: "unit" })
|
|
6493
|
+
], -1)),
|
|
6494
|
+
(l(!0), f(V, null, Q(p.tableData.hours, (B) => (l(), f("th", {
|
|
6455
6495
|
rowspan: "1",
|
|
6456
6496
|
colspan: "1",
|
|
6457
6497
|
key: Math.random()
|
|
6458
|
-
},
|
|
6498
|
+
}, C(o.computeHourZ(B)), 1))), 128))
|
|
6459
6499
|
]),
|
|
6460
6500
|
c("tr", xM, [
|
|
6461
|
-
M[
|
|
6501
|
+
M[18] || (M[18] = c("th", {
|
|
6462
6502
|
rowspan: "1",
|
|
6463
6503
|
colspan: "1"
|
|
6464
6504
|
}, null, -1)),
|
|
6465
|
-
(
|
|
6505
|
+
(l(!0), f(V, null, Q(p.tableData.weatherUrls, (B, w) => (l(), f("th", {
|
|
6466
6506
|
rowspan: "1",
|
|
6467
6507
|
colspan: "1",
|
|
6468
6508
|
key: Math.random()
|
|
6469
6509
|
}, [
|
|
6470
|
-
|
|
6471
|
-
|
|
6472
|
-
|
|
6473
|
-
|
|
6510
|
+
v(q, {
|
|
6511
|
+
placement: "top",
|
|
6512
|
+
effect: "light",
|
|
6513
|
+
content: p.tableData.weatherNames[w],
|
|
6514
|
+
"show-after": 500
|
|
6515
|
+
}, {
|
|
6516
|
+
default: c0(() => [
|
|
6517
|
+
B ? (l(), f("img", {
|
|
6518
|
+
key: 0,
|
|
6519
|
+
class: "iconfont weather-icon",
|
|
6520
|
+
src: B
|
|
6521
|
+
}, null, 8, SM)) : D("", !0)
|
|
6522
|
+
]),
|
|
6523
|
+
_: 2
|
|
6524
|
+
}, 1032, ["content"])
|
|
6474
6525
|
]))), 128))
|
|
6475
6526
|
]),
|
|
6476
6527
|
c("tr", EM, [
|
|
6477
|
-
M[
|
|
6528
|
+
M[19] || (M[19] = c("td", {
|
|
6478
6529
|
rowspan: "1",
|
|
6479
6530
|
colspan: "1",
|
|
6480
6531
|
class: "tr-title"
|
|
6481
6532
|
}, [
|
|
6482
|
-
|
|
6533
|
+
Z("Sig Wave"),
|
|
6483
6534
|
c("span", { class: "unit" }, "m")
|
|
6484
6535
|
], -1)),
|
|
6485
|
-
(
|
|
6536
|
+
(l(!0), f(V, null, Q(p.tableData.sigwaveHeight, (B, w) => (l(), f("td", {
|
|
6486
6537
|
rowspan: "1",
|
|
6487
6538
|
colspan: "1",
|
|
6488
6539
|
key: Math.random()
|
|
6489
6540
|
}, [
|
|
6490
|
-
|
|
6541
|
+
isNaN(p.tableData.sigwaveDir[w]) ? D("", !0) : (l(), f("span", {
|
|
6542
|
+
key: 0,
|
|
6491
6543
|
class: "iconfont icon blue",
|
|
6492
|
-
style:
|
|
6493
|
-
}, "", 4),
|
|
6494
|
-
c("span", null,
|
|
6544
|
+
style: z0({ display: "inline-block", transform: `rotate(${p.tableData.sigwaveDir[w]}deg)` })
|
|
6545
|
+
}, "", 4)),
|
|
6546
|
+
c("span", null, C(B), 1)
|
|
6495
6547
|
]))), 128))
|
|
6496
6548
|
]),
|
|
6497
6549
|
c("tr", PM, [
|
|
6498
|
-
M[
|
|
6550
|
+
M[20] || (M[20] = c("td", {
|
|
6499
6551
|
rowspan: "1",
|
|
6500
6552
|
colspan: "1",
|
|
6501
6553
|
class: "tr-title"
|
|
6502
6554
|
}, [
|
|
6503
|
-
|
|
6555
|
+
Z("Wind Wave"),
|
|
6504
6556
|
c("span", { class: "unit" }, "m")
|
|
6505
6557
|
], -1)),
|
|
6506
|
-
(
|
|
6558
|
+
(l(!0), f(V, null, Q(p.tableData.windwaveHeight, (B, w) => (l(), f("td", {
|
|
6507
6559
|
rowspan: "1",
|
|
6508
6560
|
colspan: "1",
|
|
6509
6561
|
key: Math.random()
|
|
6510
6562
|
}, [
|
|
6511
|
-
|
|
6563
|
+
isNaN(p.tableData.sigwaveDir[w]) ? D("", !0) : (l(), f("span", {
|
|
6564
|
+
key: 0,
|
|
6512
6565
|
class: "iconfont icon orange",
|
|
6513
|
-
style:
|
|
6514
|
-
}, "", 4),
|
|
6515
|
-
c("span", null,
|
|
6566
|
+
style: z0({ display: "inline-block", transform: `rotate(${p.tableData.sigwaveDir[w]}deg)` })
|
|
6567
|
+
}, "", 4)),
|
|
6568
|
+
c("span", null, C(B), 1)
|
|
6516
6569
|
]))), 128))
|
|
6517
6570
|
]),
|
|
6518
6571
|
c("tr", kM, [
|
|
6519
|
-
M[
|
|
6572
|
+
M[21] || (M[21] = c("td", {
|
|
6520
6573
|
rowspan: "1",
|
|
6521
6574
|
colspan: "1",
|
|
6522
6575
|
class: "tr-title"
|
|
6523
6576
|
}, [
|
|
6524
|
-
|
|
6577
|
+
Z("Swell"),
|
|
6525
6578
|
c("span", { class: "unit" }, "m")
|
|
6526
6579
|
], -1)),
|
|
6527
|
-
(
|
|
6580
|
+
(l(!0), f(V, null, Q(p.tableData.swellHeight, (B, w) => (l(), f("td", {
|
|
6528
6581
|
rowspan: "1",
|
|
6529
6582
|
colspan: "1",
|
|
6530
6583
|
key: Math.random()
|
|
6531
6584
|
}, [
|
|
6532
|
-
|
|
6585
|
+
isNaN(p.tableData.swellDir[w]) ? D("", !0) : (l(), f("span", {
|
|
6586
|
+
key: 0,
|
|
6533
6587
|
class: "iconfont icon orange",
|
|
6534
|
-
style:
|
|
6535
|
-
}, "", 4),
|
|
6536
|
-
c("span", null,
|
|
6588
|
+
style: z0({ display: "inline-block", transform: `rotate(${p.tableData.swellDir[w]}deg)` })
|
|
6589
|
+
}, "", 4)),
|
|
6590
|
+
c("span", null, C(B), 1)
|
|
6537
6591
|
]))), 128))
|
|
6538
6592
|
]),
|
|
6539
6593
|
c("tr", DM, [
|
|
6540
|
-
M[
|
|
6594
|
+
M[22] || (M[22] = c("td", {
|
|
6541
6595
|
rowspan: "1",
|
|
6542
6596
|
colspan: "1",
|
|
6543
6597
|
class: "tr-title"
|
|
6544
6598
|
}, [
|
|
6545
|
-
|
|
6599
|
+
Z("Current"),
|
|
6546
6600
|
c("span", { class: "unit" }, "kts")
|
|
6547
6601
|
], -1)),
|
|
6548
|
-
(
|
|
6602
|
+
(l(!0), f(V, null, Q(p.tableData.currentSpeed, (B, w) => (l(), f("td", {
|
|
6549
6603
|
rowspan: "1",
|
|
6550
6604
|
colspan: "1",
|
|
6551
6605
|
key: Math.random()
|
|
6552
6606
|
}, [
|
|
6553
|
-
|
|
6607
|
+
isNaN(p.tableData.currentDir[w]) ? D("", !0) : (l(), f("span", {
|
|
6608
|
+
key: 0,
|
|
6554
6609
|
class: "iconfont icon gray",
|
|
6555
|
-
style:
|
|
6556
|
-
}, "", 4),
|
|
6557
|
-
c("span", null,
|
|
6610
|
+
style: z0({ display: "inline-block", transform: `rotate(${p.tableData.currentDir[w]}deg)` })
|
|
6611
|
+
}, "", 4)),
|
|
6612
|
+
c("span", null, C(B), 1)
|
|
6613
|
+
]))), 128))
|
|
6614
|
+
])
|
|
6615
|
+
])) : D("", !0),
|
|
6616
|
+
p.activeIndex === 3 ? (l(), f("table", IM, [
|
|
6617
|
+
c("tr", jM, [
|
|
6618
|
+
M[23] || (M[23] = c("th", {
|
|
6619
|
+
rowspan: "1",
|
|
6620
|
+
colspan: "1",
|
|
6621
|
+
class: "tr-title"
|
|
6622
|
+
}, [
|
|
6623
|
+
Z("Hours"),
|
|
6624
|
+
c("span", { class: "unit" }, "(LT)")
|
|
6625
|
+
], -1)),
|
|
6626
|
+
(l(!0), f(V, null, Q(p.tableData.hours, (B) => (l(), f("th", {
|
|
6627
|
+
rowspan: "1",
|
|
6628
|
+
colspan: "1",
|
|
6629
|
+
key: Math.random()
|
|
6630
|
+
}, C(o.computeHourL(B)), 1))), 128))
|
|
6631
|
+
]),
|
|
6632
|
+
c("tr", FM, [
|
|
6633
|
+
M[24] || (M[24] = c("th", {
|
|
6634
|
+
rowspan: "1",
|
|
6635
|
+
colspan: "1",
|
|
6636
|
+
class: "tr-title"
|
|
6637
|
+
}, [
|
|
6638
|
+
Z("UTC"),
|
|
6639
|
+
c("span", { class: "unit" })
|
|
6640
|
+
], -1)),
|
|
6641
|
+
(l(!0), f(V, null, Q(p.tableData.hours, (B) => (l(), f("th", {
|
|
6642
|
+
rowspan: "1",
|
|
6643
|
+
colspan: "1",
|
|
6644
|
+
key: Math.random()
|
|
6645
|
+
}, C(o.computeHourZ(B)), 1))), 128))
|
|
6646
|
+
]),
|
|
6647
|
+
c("tr", UM, [
|
|
6648
|
+
M[25] || (M[25] = c("th", {
|
|
6649
|
+
rowspan: "1",
|
|
6650
|
+
colspan: "1",
|
|
6651
|
+
class: "tr-title"
|
|
6652
|
+
}, null, -1)),
|
|
6653
|
+
(l(!0), f(V, null, Q(p.tableData.weatherUrls, (B, w) => (l(), f("th", {
|
|
6654
|
+
rowspan: "1",
|
|
6655
|
+
colspan: "1",
|
|
6656
|
+
key: Math.random()
|
|
6657
|
+
}, [
|
|
6658
|
+
v(q, {
|
|
6659
|
+
placement: "top",
|
|
6660
|
+
effect: "light",
|
|
6661
|
+
content: p.tableData.weatherNames[w],
|
|
6662
|
+
"show-after": 500
|
|
6663
|
+
}, {
|
|
6664
|
+
default: c0(() => [
|
|
6665
|
+
B ? (l(), f("img", {
|
|
6666
|
+
key: 0,
|
|
6667
|
+
class: "iconfont weather-icon",
|
|
6668
|
+
src: B
|
|
6669
|
+
}, null, 8, HM)) : D("", !0)
|
|
6670
|
+
]),
|
|
6671
|
+
_: 2
|
|
6672
|
+
}, 1032, ["content"])
|
|
6558
6673
|
]))), 128))
|
|
6674
|
+
]),
|
|
6675
|
+
c("tr", GM, [
|
|
6676
|
+
M[26] || (M[26] = c("td", {
|
|
6677
|
+
rowspan: "1",
|
|
6678
|
+
colspan: "1",
|
|
6679
|
+
class: "tr-title"
|
|
6680
|
+
}, [
|
|
6681
|
+
Z("SeaLevel"),
|
|
6682
|
+
c("span", { class: "unit" }, "m")
|
|
6683
|
+
], -1)),
|
|
6684
|
+
(l(!0), f(V, null, Q(p.tableData.seaLevel, (B) => (l(), f("td", {
|
|
6685
|
+
rowspan: "1",
|
|
6686
|
+
colspan: "1",
|
|
6687
|
+
key: Math.random()
|
|
6688
|
+
}, C(B), 1))), 128))
|
|
6689
|
+
]),
|
|
6690
|
+
c("tr", VM, [
|
|
6691
|
+
M[27] || (M[27] = c("td", {
|
|
6692
|
+
rowspan: "1",
|
|
6693
|
+
colspan: "1",
|
|
6694
|
+
class: "tr-title"
|
|
6695
|
+
}, [
|
|
6696
|
+
Z("SeaTemp"),
|
|
6697
|
+
c("span", { class: "unit" }, "°C")
|
|
6698
|
+
], -1)),
|
|
6699
|
+
(l(!0), f(V, null, Q(p.tableData.seaTemp, (B) => (l(), f("td", {
|
|
6700
|
+
rowspan: "1",
|
|
6701
|
+
colspan: "1",
|
|
6702
|
+
key: Math.random()
|
|
6703
|
+
}, C(B), 1))), 128))
|
|
6559
6704
|
])
|
|
6560
|
-
])) :
|
|
6705
|
+
])) : D("", !0)
|
|
6561
6706
|
])
|
|
6562
6707
|
]),
|
|
6563
|
-
|
|
6564
|
-
key: 0,
|
|
6708
|
+
c("div", {
|
|
6565
6709
|
class: "more",
|
|
6566
|
-
onClick: M[
|
|
6567
|
-
}, M[
|
|
6710
|
+
onClick: M[4] || (M[4] = v0((...B) => z.handleMore && z.handleMore(...B), ["prevent"]))
|
|
6711
|
+
}, M[28] || (M[28] = [
|
|
6568
6712
|
c("span", { class: "more" }, "More >>", -1)
|
|
6569
|
-
]))
|
|
6713
|
+
]))
|
|
6570
6714
|
])
|
|
6571
6715
|
], 512), [
|
|
6572
6716
|
[w0, p.showMeteo]
|
|
6573
6717
|
])
|
|
6574
6718
|
]);
|
|
6575
6719
|
}
|
|
6576
|
-
const
|
|
6720
|
+
const JM = /* @__PURE__ */ I(pM, [["render", KM], ["__scopeId", "data-v-7191d827"]]), QM = {
|
|
6577
6721
|
name: "IdmWarZone",
|
|
6578
6722
|
props: {
|
|
6579
6723
|
map: {
|
|
@@ -6663,10 +6807,10 @@ const jM = /* @__PURE__ */ D(pM, [["render", IM], ["__scopeId", "data-v-2c4fcf8e
|
|
|
6663
6807
|
}
|
|
6664
6808
|
}
|
|
6665
6809
|
};
|
|
6666
|
-
function
|
|
6667
|
-
return
|
|
6810
|
+
function $M(z, M, b, O, p, o) {
|
|
6811
|
+
return l(), f("div");
|
|
6668
6812
|
}
|
|
6669
|
-
const
|
|
6813
|
+
const ZM = /* @__PURE__ */ I(QM, [["render", $M]]), YM = {
|
|
6670
6814
|
name: "IdmGmdssArea",
|
|
6671
6815
|
props: {
|
|
6672
6816
|
map: {
|
|
@@ -6786,10 +6930,10 @@ const HM = /* @__PURE__ */ D(FM, [["render", UM]]), GM = {
|
|
|
6786
6930
|
}
|
|
6787
6931
|
}
|
|
6788
6932
|
};
|
|
6789
|
-
function
|
|
6790
|
-
return
|
|
6933
|
+
function Mb(z, M, b, O, p, o) {
|
|
6934
|
+
return l(), f("div");
|
|
6791
6935
|
}
|
|
6792
|
-
const
|
|
6936
|
+
const bb = /* @__PURE__ */ I(YM, [["render", Mb]]), zb = {
|
|
6793
6937
|
name: "IdmEcaZone",
|
|
6794
6938
|
props: {
|
|
6795
6939
|
map: {
|
|
@@ -6877,11 +7021,11 @@ const KM = /* @__PURE__ */ D(GM, [["render", VM]]), JM = {
|
|
|
6877
7021
|
}
|
|
6878
7022
|
}
|
|
6879
7023
|
};
|
|
6880
|
-
function
|
|
6881
|
-
return
|
|
7024
|
+
function pb(z, M, b, O, p, o) {
|
|
7025
|
+
return l(), f("div");
|
|
6882
7026
|
}
|
|
6883
|
-
const
|
|
6884
|
-
const
|
|
7027
|
+
const Ob = /* @__PURE__ */ I(zb, [["render", pb]]);
|
|
7028
|
+
const ob = {
|
|
6885
7029
|
name: "IdmAlertZone",
|
|
6886
7030
|
props: {
|
|
6887
7031
|
map: {
|
|
@@ -6924,7 +7068,7 @@ const ZM = {
|
|
|
6924
7068
|
if (b) {
|
|
6925
7069
|
this.showZone = !0, this.form = { ...b.properties };
|
|
6926
7070
|
const p = document.getElementById("idm-gl3-zone-info");
|
|
6927
|
-
this.marker ? this.marker.setLngLat([z.lngLat.lng, z.lngLat.lat]) : this.marker = new
|
|
7071
|
+
this.marker ? this.marker.setLngLat([z.lngLat.lng, z.lngLat.lat]) : this.marker = new R0.Marker(p).setLngLat([z.lngLat.lng, z.lngLat.lat]).setOffset([0, 0]).addTo(this.map);
|
|
6928
7072
|
}
|
|
6929
7073
|
},
|
|
6930
7074
|
handleRender() {
|
|
@@ -7011,10 +7155,10 @@ const ZM = {
|
|
|
7011
7155
|
this.map.getLayer(this.polygonLayer) && this.map.removeLayer(this.polygonLayer), this.map.getLayer(this.polygonLayer + "-border") && this.map.removeLayer(this.polygonLayer + "-border"), this.map.getLayer(this.polygonLabelLayer) && this.map.removeLayer(this.polygonLabelLayer), this.map.getLayer(this.lineLayer) && this.map.removeLayer(this.lineLayer), this.map.getLayer(this.lineLabelLayer) && this.map.removeLayer(this.lineLabelLayer), this.map.getLayer(this.pointLayer) && this.map.removeLayer(this.pointLayer), this.map.getSource(this.source) && this.map.removeSource(this.source);
|
|
7012
7156
|
}
|
|
7013
7157
|
}
|
|
7014
|
-
},
|
|
7015
|
-
function
|
|
7158
|
+
}, cb = { id: "idm-gl3-zone-info" }, eb = ["innerHTML"];
|
|
7159
|
+
function Ab(z, M, b, O, p, o) {
|
|
7016
7160
|
var e;
|
|
7017
|
-
return T0((
|
|
7161
|
+
return T0((l(), f("div", cb, [
|
|
7018
7162
|
c("div", {
|
|
7019
7163
|
class: "iconfont close",
|
|
7020
7164
|
onClick: M[0] || (M[0] = (t) => p.showZone = !1)
|
|
@@ -7022,13 +7166,13 @@ function bb(z, M, b, O, p, o) {
|
|
|
7022
7166
|
c("div", {
|
|
7023
7167
|
class: "rich-context",
|
|
7024
7168
|
innerHTML: (e = p.form) == null ? void 0 : e.name
|
|
7025
|
-
}, null, 8,
|
|
7169
|
+
}, null, 8, eb)
|
|
7026
7170
|
], 512)), [
|
|
7027
7171
|
[w0, p.showZone]
|
|
7028
7172
|
]);
|
|
7029
7173
|
}
|
|
7030
|
-
const
|
|
7031
|
-
const
|
|
7174
|
+
const tb = /* @__PURE__ */ I(ob, [["render", Ab]]);
|
|
7175
|
+
const ab = {
|
|
7032
7176
|
name: "IdmPort",
|
|
7033
7177
|
props: {
|
|
7034
7178
|
map: {
|
|
@@ -7054,12 +7198,12 @@ const pb = {
|
|
|
7054
7198
|
computed: {
|
|
7055
7199
|
computeLat() {
|
|
7056
7200
|
return function(z) {
|
|
7057
|
-
return
|
|
7201
|
+
return $.lat2pretty(z, 4).pretty;
|
|
7058
7202
|
};
|
|
7059
7203
|
},
|
|
7060
7204
|
computeLng() {
|
|
7061
7205
|
return function(z) {
|
|
7062
|
-
return
|
|
7206
|
+
return $.lng2pretty(z, 4).pretty;
|
|
7063
7207
|
};
|
|
7064
7208
|
}
|
|
7065
7209
|
},
|
|
@@ -7081,7 +7225,7 @@ const pb = {
|
|
|
7081
7225
|
if (b) {
|
|
7082
7226
|
this.showPort = !0, this.form = { ...b.properties }, this.form.lng = b.geometry.coordinates[0], this.form.lat = b.geometry.coordinates[1];
|
|
7083
7227
|
const p = document.getElementById("port-info");
|
|
7084
|
-
this.marker ? this.marker.setLngLat([z.lngLat.lng, z.lngLat.lat]) : this.marker = new
|
|
7228
|
+
this.marker ? this.marker.setLngLat([z.lngLat.lng, z.lngLat.lat]) : this.marker = new R0.Marker(p).setLngLat([z.lngLat.lng, z.lngLat.lat]).setOffset([0, -85]).addTo(this.map);
|
|
7085
7229
|
}
|
|
7086
7230
|
},
|
|
7087
7231
|
handleEmit() {
|
|
@@ -7120,41 +7264,41 @@ const pb = {
|
|
|
7120
7264
|
this.showPort = !1, this.map.getLayer(this.layer) && this.map.removeLayer(this.layer), this.map.getSource(this.source) && this.map.removeSource(this.source);
|
|
7121
7265
|
}
|
|
7122
7266
|
}
|
|
7123
|
-
},
|
|
7267
|
+
}, qb = { id: "port-info" }, ib = { class: "port-box" }, rb = { class: "flex-start" }, nb = { class: "flex-start" }, db = { class: "flex-start" }, Wb = {
|
|
7124
7268
|
class: "flex-start",
|
|
7125
7269
|
style: { "align-items": "flex-start" }
|
|
7126
7270
|
};
|
|
7127
|
-
function
|
|
7128
|
-
return T0((
|
|
7271
|
+
function sb(z, M, b, O, p, o) {
|
|
7272
|
+
return T0((l(), f("div", qb, [
|
|
7129
7273
|
c("div", {
|
|
7130
7274
|
class: "close iconfont",
|
|
7131
7275
|
onClick: M[0] || (M[0] = (e) => p.showPort = !1)
|
|
7132
7276
|
}, ""),
|
|
7133
|
-
c("div",
|
|
7134
|
-
c("div",
|
|
7277
|
+
c("div", ib, [
|
|
7278
|
+
c("div", rb, [
|
|
7135
7279
|
M[2] || (M[2] = c("label", null, "Name : ", -1)),
|
|
7136
7280
|
c("span", {
|
|
7137
7281
|
onClick: M[1] || (M[1] = (...e) => o.handleEmit && o.handleEmit(...e))
|
|
7138
|
-
},
|
|
7282
|
+
}, C(p.form.name), 1)
|
|
7139
7283
|
]),
|
|
7140
|
-
c("div",
|
|
7284
|
+
c("div", nb, [
|
|
7141
7285
|
M[3] || (M[3] = c("label", null, "Position : ", -1)),
|
|
7142
|
-
c("span", null,
|
|
7286
|
+
c("span", null, C(o.computeLat(p.form.lat)) + ", " + C(o.computeLng(p.form.lng)), 1)
|
|
7143
7287
|
]),
|
|
7144
|
-
c("div",
|
|
7288
|
+
c("div", db, [
|
|
7145
7289
|
M[4] || (M[4] = c("label", null, "LoCode : ", -1)),
|
|
7146
|
-
c("span", null,
|
|
7290
|
+
c("span", null, C(p.form.loCode || "-"), 1)
|
|
7147
7291
|
]),
|
|
7148
|
-
c("div",
|
|
7292
|
+
c("div", Wb, [
|
|
7149
7293
|
M[5] || (M[5] = c("label", null, "Region : ", -1)),
|
|
7150
|
-
c("span", null,
|
|
7294
|
+
c("span", null, C(p.form.zoneName || "-"), 1)
|
|
7151
7295
|
])
|
|
7152
7296
|
])
|
|
7153
7297
|
], 512)), [
|
|
7154
7298
|
[w0, p.showPort]
|
|
7155
7299
|
]);
|
|
7156
7300
|
}
|
|
7157
|
-
const
|
|
7301
|
+
const lb = /* @__PURE__ */ I(ab, [["render", sb], ["__scopeId", "data-v-c07e4c45"]]), fb = {
|
|
7158
7302
|
name: "IdmLoadLine",
|
|
7159
7303
|
props: {
|
|
7160
7304
|
map: {
|
|
@@ -7224,10 +7368,10 @@ const qb = /* @__PURE__ */ D(pb, [["render", ab], ["__scopeId", "data-v-c07e4c45
|
|
|
7224
7368
|
}
|
|
7225
7369
|
}
|
|
7226
7370
|
};
|
|
7227
|
-
function
|
|
7228
|
-
return
|
|
7371
|
+
function ub(z, M, b, O, p, o) {
|
|
7372
|
+
return l(), f("div");
|
|
7229
7373
|
}
|
|
7230
|
-
const
|
|
7374
|
+
const Lb = /* @__PURE__ */ I(fb, [["render", ub]]), Rb = {
|
|
7231
7375
|
name: "IdmTimezone",
|
|
7232
7376
|
props: {
|
|
7233
7377
|
map: {
|
|
@@ -7392,10 +7536,10 @@ const nb = /* @__PURE__ */ D(ib, [["render", rb]]), db = {
|
|
|
7392
7536
|
}
|
|
7393
7537
|
}
|
|
7394
7538
|
};
|
|
7395
|
-
function
|
|
7396
|
-
return
|
|
7539
|
+
function hb(z, M, b, O, p, o) {
|
|
7540
|
+
return l(), f("div");
|
|
7397
7541
|
}
|
|
7398
|
-
const
|
|
7542
|
+
const mb = /* @__PURE__ */ I(Rb, [["render", hb]]), Nb = {
|
|
7399
7543
|
name: "IdmVoluntaryReportingArea",
|
|
7400
7544
|
props: {
|
|
7401
7545
|
map: {
|
|
@@ -7483,10 +7627,10 @@ const sb = /* @__PURE__ */ D(db, [["render", Wb]]), lb = {
|
|
|
7483
7627
|
}
|
|
7484
7628
|
}
|
|
7485
7629
|
};
|
|
7486
|
-
function
|
|
7487
|
-
return
|
|
7630
|
+
function Bb(z, M, b, O, p, o) {
|
|
7631
|
+
return l(), f("div");
|
|
7488
7632
|
}
|
|
7489
|
-
const
|
|
7633
|
+
const yb = /* @__PURE__ */ I(Nb, [["render", Bb]]), gb = {
|
|
7490
7634
|
name: "IdmSpecialArea",
|
|
7491
7635
|
props: {
|
|
7492
7636
|
map: {
|
|
@@ -7516,7 +7660,7 @@ const ub = /* @__PURE__ */ D(lb, [["render", fb]]), Lb = {
|
|
|
7516
7660
|
methods: {
|
|
7517
7661
|
handleRender() {
|
|
7518
7662
|
this.map ? (this.handleClear(), this.area && (this.area.features.forEach((z) => {
|
|
7519
|
-
z.geometry.type === "Polygon" && z.geometry.coordinates.forEach((M) =>
|
|
7663
|
+
z.geometry.type === "Polygon" && z.geometry.coordinates.forEach((M) => $.convertToMonotonicLng2(M));
|
|
7520
7664
|
}), this.map.addSource(this.source, {
|
|
7521
7665
|
type: "geojson",
|
|
7522
7666
|
data: this.area
|
|
@@ -7576,10 +7720,10 @@ const ub = /* @__PURE__ */ D(lb, [["render", fb]]), Lb = {
|
|
|
7576
7720
|
}
|
|
7577
7721
|
}
|
|
7578
7722
|
};
|
|
7579
|
-
function
|
|
7580
|
-
return
|
|
7723
|
+
function Xb(z, M, b, O, p, o) {
|
|
7724
|
+
return l(), f("div");
|
|
7581
7725
|
}
|
|
7582
|
-
const
|
|
7726
|
+
const vb = /* @__PURE__ */ I(gb, [["render", Xb]]), Tb = {
|
|
7583
7727
|
name: "IdmTerminator",
|
|
7584
7728
|
props: {
|
|
7585
7729
|
map: {
|
|
@@ -7628,11 +7772,11 @@ const hb = /* @__PURE__ */ D(Lb, [["render", Rb]]), mb = {
|
|
|
7628
7772
|
}
|
|
7629
7773
|
}
|
|
7630
7774
|
};
|
|
7631
|
-
function
|
|
7632
|
-
return
|
|
7775
|
+
function wb(z, M, b, O, p, o) {
|
|
7776
|
+
return l(), f("div");
|
|
7633
7777
|
}
|
|
7634
|
-
const
|
|
7635
|
-
const
|
|
7778
|
+
const Cb = /* @__PURE__ */ I(Tb, [["render", wb]]);
|
|
7779
|
+
const _b = {
|
|
7636
7780
|
name: "IdmLatLng",
|
|
7637
7781
|
props: {
|
|
7638
7782
|
map: {
|
|
@@ -7690,7 +7834,7 @@ const yb = {
|
|
|
7690
7834
|
this.show ? ((z = this.map) == null || z.on("zoomend", this.handleZoomEnd), this.handleRender()) : (this.handleClear(), (M = this.map) == null || M.off("zoomend", this.handleZoomEnd));
|
|
7691
7835
|
},
|
|
7692
7836
|
handleMouseMove(z) {
|
|
7693
|
-
const M = z.lngLat, b =
|
|
7837
|
+
const M = z.lngLat, b = $.lng2pretty(M.lng, 2), O = $.lat2pretty(M.lat, 2);
|
|
7694
7838
|
this.lngLat = { lng: b, lat: O };
|
|
7695
7839
|
},
|
|
7696
7840
|
handleComputeLatLngs() {
|
|
@@ -7739,7 +7883,7 @@ const yb = {
|
|
|
7739
7883
|
handleZoomEnd() {
|
|
7740
7884
|
var M;
|
|
7741
7885
|
const z = this.handleComputeLatLngs();
|
|
7742
|
-
(M = this.map) == null || M.getSource(this.source).setData(
|
|
7886
|
+
(M = this.map) == null || M.getSource(this.source).setData(T.featureCollection(z));
|
|
7743
7887
|
},
|
|
7744
7888
|
handleRender() {
|
|
7745
7889
|
if (this.map) {
|
|
@@ -7788,18 +7932,18 @@ const yb = {
|
|
|
7788
7932
|
}
|
|
7789
7933
|
}
|
|
7790
7934
|
};
|
|
7791
|
-
function
|
|
7792
|
-
return p.lngLat ? (
|
|
7935
|
+
function xb(z, M, b, O, p, o) {
|
|
7936
|
+
return p.lngLat ? (l(), f("div", {
|
|
7793
7937
|
key: 0,
|
|
7794
7938
|
class: "lat-lng-tip",
|
|
7795
|
-
style:
|
|
7939
|
+
style: z0({ right: p.right + "px", bottom: b.bottom })
|
|
7796
7940
|
}, [
|
|
7797
|
-
c("span", null,
|
|
7941
|
+
c("span", null, C(p.lngLat.lat.pretty), 1),
|
|
7798
7942
|
M[0] || (M[0] = c("span", null, ", ", -1)),
|
|
7799
|
-
c("span", null,
|
|
7800
|
-
], 4)) :
|
|
7943
|
+
c("span", null, C(p.lngLat.lng.pretty), 1)
|
|
7944
|
+
], 4)) : D("", !0);
|
|
7801
7945
|
}
|
|
7802
|
-
const H0 = /* @__PURE__ */
|
|
7946
|
+
const H0 = /* @__PURE__ */ I(_b, [["render", xb], ["__scopeId", "data-v-73241fe7"]]), Sb = {
|
|
7803
7947
|
name: "IdmMeasure",
|
|
7804
7948
|
props: {
|
|
7805
7949
|
map: {
|
|
@@ -7861,24 +8005,24 @@ const H0 = /* @__PURE__ */ D(yb, [["render", gb], ["__scopeId", "data-v-73241fe7
|
|
|
7861
8005
|
var b, O, p, o, e, t, q, r, a, i;
|
|
7862
8006
|
const M = (O = (b = z.target) == null ? void 0 : b._element) == null ? void 0 : O.id;
|
|
7863
8007
|
if ((M == null ? void 0 : M.split("-").length) === 2) {
|
|
7864
|
-
const
|
|
7865
|
-
this.pointMarkers[
|
|
8008
|
+
const L = this.geojson.filter((d) => d.id === M.split("-")[0])[0];
|
|
8009
|
+
this.pointMarkers[L.id].filter((d) => {
|
|
7866
8010
|
var m;
|
|
7867
8011
|
return ((m = d._element) == null ? void 0 : m.id) === M;
|
|
7868
8012
|
})[0].setLngLat([(o = (p = z.target) == null ? void 0 : p._lngLat) == null ? void 0 : o.lng, (t = (e = z.target) == null ? void 0 : e._lngLat) == null ? void 0 : t.lat]);
|
|
7869
8013
|
let h;
|
|
7870
|
-
|
|
8014
|
+
L.features.forEach((d, m) => {
|
|
7871
8015
|
if (d.geometry.type === "Point" && d.properties.id == M.split("-")[1]) {
|
|
7872
8016
|
h = m;
|
|
7873
8017
|
return;
|
|
7874
8018
|
}
|
|
7875
8019
|
});
|
|
7876
|
-
const
|
|
8020
|
+
const u = L.features.filter((d) => d.geometry.type === "Point");
|
|
7877
8021
|
this.handleTmpPointUpdate(
|
|
7878
|
-
|
|
7879
|
-
|
|
7880
|
-
{ lng: (r = (q = z.target) == null ? void 0 : q._lngLat) == null ? void 0 : r.lng, lat: (i = (a = z.target) == null ? void 0 : a._lngLat) == null ? void 0 : i.lat, properties:
|
|
7881
|
-
h ===
|
|
8022
|
+
L,
|
|
8023
|
+
u[h - 1],
|
|
8024
|
+
{ lng: (r = (q = z.target) == null ? void 0 : q._lngLat) == null ? void 0 : r.lng, lat: (i = (a = z.target) == null ? void 0 : a._lngLat) == null ? void 0 : i.lat, properties: u[h].properties },
|
|
8025
|
+
h === u.length - 1 ? void 0 : u[h + 1]
|
|
7882
8026
|
);
|
|
7883
8027
|
}
|
|
7884
8028
|
},
|
|
@@ -7886,13 +8030,13 @@ const H0 = /* @__PURE__ */ D(yb, [["render", gb], ["__scopeId", "data-v-73241fe7
|
|
|
7886
8030
|
var b, O, p, o, e, t, q, r, a, i;
|
|
7887
8031
|
const M = (O = (b = z.target) == null ? void 0 : b._element) == null ? void 0 : O.id;
|
|
7888
8032
|
if ((M == null ? void 0 : M.split("-").length) === 2) {
|
|
7889
|
-
const
|
|
7890
|
-
this.pointMarkers[
|
|
8033
|
+
const L = this.geojson.filter((u) => u.id === M.split("-")[0])[0];
|
|
8034
|
+
this.pointMarkers[L.id].filter((u) => {
|
|
7891
8035
|
var d;
|
|
7892
|
-
return ((d =
|
|
8036
|
+
return ((d = u._element) == null ? void 0 : d.id) === M;
|
|
7893
8037
|
})[0].setLngLat([(o = (p = z.target) == null ? void 0 : p._lngLat) == null ? void 0 : o.lng, (t = (e = z.target) == null ? void 0 : e._lngLat) == null ? void 0 : t.lat]);
|
|
7894
|
-
const h =
|
|
7895
|
-
h.geometry.coordinates = [(r = (q = z.target) == null ? void 0 : q._lngLat) == null ? void 0 : r.lng, (i = (a = z.target) == null ? void 0 : a._lngLat) == null ? void 0 : i.lat],
|
|
8038
|
+
const h = L.features.filter((u) => u.geometry.type === "Point" && u.properties.id == M.split("-")[1])[0];
|
|
8039
|
+
h.geometry.coordinates = [(r = (q = z.target) == null ? void 0 : q._lngLat) == null ? void 0 : r.lng, (i = (a = z.target) == null ? void 0 : a._lngLat) == null ? void 0 : i.lat], L.features = L.features.filter((u) => u.geometry.type === "Point"), this.handlePointUpdate(L);
|
|
7896
8040
|
}
|
|
7897
8041
|
},
|
|
7898
8042
|
handleContextmenu(z) {
|
|
@@ -7903,7 +8047,7 @@ const H0 = /* @__PURE__ */ D(yb, [["render", gb], ["__scopeId", "data-v-73241fe7
|
|
|
7903
8047
|
const t = this.geojson.filter((q) => q.id === M.split("-")[0])[0].features.filter((q) => q.geometry.type === "Point");
|
|
7904
8048
|
if (t.length > 2 && t.filter((r) => r.properties.id === (M == null ? void 0 : M.split("-")[1]))[0]) {
|
|
7905
8049
|
const r = document.createElement("div");
|
|
7906
|
-
r.className = "point-contextmenu-marker", r.innerHTML = `<span id="del-${M}" class="del-point">Del</span>`, this.contextmenu = new
|
|
8050
|
+
r.className = "point-contextmenu-marker", r.innerHTML = `<span id="del-${M}" class="del-point">Del</span>`, this.contextmenu = new R0.Marker(r).setOffset([24, 0]).setLngLat([z.lngLat.lng, z.lngLat.lat]).addTo(this.map);
|
|
7907
8051
|
}
|
|
7908
8052
|
}
|
|
7909
8053
|
},
|
|
@@ -7919,8 +8063,8 @@ const H0 = /* @__PURE__ */ D(yb, [["render", gb], ["__scopeId", "data-v-73241fe7
|
|
|
7919
8063
|
q.features = q.features.filter((r) => r.geometry.type === "Point" && r.properties.id !== t[1]), this.handlePointUpdate(q);
|
|
7920
8064
|
} else if (M !== "marker-label") {
|
|
7921
8065
|
let t = this.geojson.at(-1);
|
|
7922
|
-
t || (t =
|
|
7923
|
-
const q =
|
|
8066
|
+
t || (t = T.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(t)), t.features = t.features.filter((r) => r.geometry.type === "Point");
|
|
8067
|
+
const q = T.feature(
|
|
7924
8068
|
{
|
|
7925
8069
|
type: "Point",
|
|
7926
8070
|
coordinates: [z.lngLat.lng, z.lngLat.lat]
|
|
@@ -7939,11 +8083,11 @@ const H0 = /* @__PURE__ */ D(yb, [["render", gb], ["__scopeId", "data-v-73241fe7
|
|
|
7939
8083
|
let b = 0;
|
|
7940
8084
|
const O = [];
|
|
7941
8085
|
for (let p = 1; p < M.length; p++) {
|
|
7942
|
-
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 =
|
|
7943
|
-
b =
|
|
7944
|
-
let
|
|
7945
|
-
t.mode === "RL" ?
|
|
7946
|
-
const n =
|
|
8086
|
+
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 = L0.calculateDistance(q, r, t.mode === "RL", 2), i = L0.calculateBearing(q, r, t.mode === "RL", 2);
|
|
8087
|
+
b = $.roundPrecision(b + a, 2);
|
|
8088
|
+
let L;
|
|
8089
|
+
t.mode === "RL" ? L = $.convertToMonotonicLng([q, r]) : L = $.convertToMonotonicLng(L0.interpolateCoordinates(q, r, 200));
|
|
8090
|
+
const n = T.lineString(L.map((h) => [h.lng, h.lat]));
|
|
7947
8091
|
n.properties.dist = a, n.properties.bearing = i, n.properties.total = b, O.push(n);
|
|
7948
8092
|
}
|
|
7949
8093
|
M.push(...O), z.total = b;
|
|
@@ -7951,23 +8095,23 @@ const H0 = /* @__PURE__ */ D(yb, [["render", gb], ["__scopeId", "data-v-73241fe7
|
|
|
7951
8095
|
return this.handleRender(z), z;
|
|
7952
8096
|
},
|
|
7953
8097
|
handleTmpPointUpdate(z, M, b, O) {
|
|
7954
|
-
const p =
|
|
8098
|
+
const p = T.featureCollection([]);
|
|
7955
8099
|
let o, e;
|
|
7956
8100
|
if (M) {
|
|
7957
8101
|
const q = M.properties, r = { lng: M.geometry.coordinates[0], lat: M.geometry.coordinates[1] }, a = { lng: b.lng, lat: b.lat };
|
|
7958
|
-
o =
|
|
8102
|
+
o = L0.calculateDistance(r, a, q.mode === "RL", 2), e = L0.calculateBearing(r, a, q.mode === "RL", 2);
|
|
7959
8103
|
let i;
|
|
7960
|
-
q.mode === "RL" ? i =
|
|
7961
|
-
const
|
|
7962
|
-
|
|
8104
|
+
q.mode === "RL" ? i = $.convertToMonotonicLng([r, a]) : i = $.convertToMonotonicLng(L0.interpolateCoordinates(r, a, 200));
|
|
8105
|
+
const L = T.lineString(i.map((n) => [n.lng, n.lat]));
|
|
8106
|
+
L.properties.dist = o, L.properties.bearing = e, p.features.push(L);
|
|
7963
8107
|
}
|
|
7964
8108
|
if (O) {
|
|
7965
8109
|
const q = b.properties, r = b, a = { lng: O.geometry.coordinates[0], lat: O.geometry.coordinates[1] };
|
|
7966
|
-
o =
|
|
8110
|
+
o = L0.calculateDistance(r, a, q.mode === "RL", 2), e = L0.calculateBearing(r, a, q.mode === "RL", 2);
|
|
7967
8111
|
let i;
|
|
7968
|
-
q.mode === "RL" ? i =
|
|
7969
|
-
const
|
|
7970
|
-
|
|
8112
|
+
q.mode === "RL" ? i = $.convertToMonotonicLng([r, a]) : i = $.convertToMonotonicLng(L0.interpolateCoordinates(r, a, 200));
|
|
8113
|
+
const L = T.lineString(i.map((n) => [n.lng, n.lat]));
|
|
8114
|
+
L.properties.dist = o, L.properties.bearing = e, p.features.push(L);
|
|
7971
8115
|
}
|
|
7972
8116
|
this.map.getSource(this.tmpSource) ? this.map.getSource(this.tmpSource).setData(p) : this.map.addSource(this.tmpSource, {
|
|
7973
8117
|
type: "geojson",
|
|
@@ -8007,24 +8151,24 @@ const H0 = /* @__PURE__ */ D(yb, [["render", gb], ["__scopeId", "data-v-73241fe7
|
|
|
8007
8151
|
}
|
|
8008
8152
|
});
|
|
8009
8153
|
let t;
|
|
8010
|
-
if (O ? t = '<div class="marker-label">Drag and drop</div>' : t = `<div class="marker-label">Tol distance: <b>${
|
|
8154
|
+
if (O ? t = '<div class="marker-label">Drag and drop</div>' : t = `<div class="marker-label">Tol distance: <b>${$.roundPrecision((z.total ?? 0) + o, 2)}</b>nm, bearing: <b>${e}</b>°</div><div class="marker-label">${this.navigation === "RL" ? "RL" : "GC"} mode, using 'Shift' to switch</div><div class="marker-label">Double click to end</div>`, this.tipMarker)
|
|
8011
8155
|
this.tipMarker._element.innerHTML = t, this.tipMarker.setLngLat([b.lng, b.lat]);
|
|
8012
8156
|
else {
|
|
8013
8157
|
const q = document.createElement("div");
|
|
8014
|
-
q.className = "tip-marker", q.innerHTML = t, this.tipMarker = new
|
|
8158
|
+
q.className = "tip-marker", q.innerHTML = t, this.tipMarker = new R0.Marker(q).setOffset([140, 0]).setLngLat([b.lng, b.lat]).addTo(this.map);
|
|
8015
8159
|
}
|
|
8016
8160
|
},
|
|
8017
8161
|
handleMove(z) {
|
|
8018
8162
|
this.map.getCanvas().style.cursor = "crosshair";
|
|
8019
8163
|
let M = this.geojson.at(-1);
|
|
8020
|
-
M || (M =
|
|
8164
|
+
M || (M = T.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(M));
|
|
8021
8165
|
const b = M.features.filter((O) => O.geometry.type === "Point");
|
|
8022
8166
|
b != null && b.length && this.handleTmpPointUpdate(M, b.at(-1), { lng: z.lngLat.lng, lat: z.lngLat.lat });
|
|
8023
8167
|
},
|
|
8024
8168
|
handleDblClick(z) {
|
|
8025
8169
|
z.preventDefault();
|
|
8026
8170
|
let M = this.geojson.at(-1);
|
|
8027
|
-
M.closed = !0, this.handleRender(M), M =
|
|
8171
|
+
M.closed = !0, this.handleRender(M), M = T.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(M);
|
|
8028
8172
|
},
|
|
8029
8173
|
handleRender(z) {
|
|
8030
8174
|
var M;
|
|
@@ -8069,29 +8213,29 @@ const H0 = /* @__PURE__ */ D(yb, [["render", gb], ["__scopeId", "data-v-73241fe7
|
|
|
8069
8213
|
for (const e of o) {
|
|
8070
8214
|
const t = document.createElement("div");
|
|
8071
8215
|
t.id = `${z.id}-${e.properties.id}`, t.className = `${z.closed ? "point-marker closed" : "point-marker"}`, t.innerHTML = '<div class="marker-circle"></div>';
|
|
8072
|
-
const q = new
|
|
8216
|
+
const q = new R0.Marker({ element: t, draggable: !0, contextmenu: !0 }).setLngLat(e.geometry.coordinates).addTo(this.map);
|
|
8073
8217
|
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];
|
|
8074
8218
|
}
|
|
8075
8219
|
if (z.closed) {
|
|
8076
8220
|
const e = o.at(-1), q = z.features.filter((a) => a.geometry.type === "LineString").at(-1), r = document.createElement("div");
|
|
8077
|
-
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
|
|
8221
|
+
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 R0.Marker(r).setOffset([60, 0]).setLngLat(e.geometry.coordinates).addTo(this.map);
|
|
8078
8222
|
}
|
|
8079
8223
|
}
|
|
8080
8224
|
},
|
|
8081
8225
|
handleClear(z, M = !0) {
|
|
8082
|
-
var o, e, t, q, r, a, i,
|
|
8226
|
+
var o, e, t, q, r, a, i, L, n;
|
|
8083
8227
|
const b = `${z.id}-${this.source}`, O = `${z.id}-${this.layer}`, p = `${z.id}-${this.labelLayer}`;
|
|
8084
8228
|
(o = this.map) != null && o.getLayer(O) && this.map.removeLayer(O), (e = this.map) != null && e.getLayer(p) && this.map.removeLayer(p), (t = this.map) != null && t.getLayer(this.tmpLayer) && this.map.removeLayer(this.tmpLayer), (q = this.map) != null && q.getLayer(this.tmpLabelLayer) && this.map.removeLayer(this.tmpLabelLayer), (r = this.closeMarkers[z.id]) == null || r.remove(), this.closeMarkers[z.id] = void 0, (a = this.pointMarkers[z.id]) == null || a.forEach((h) => {
|
|
8085
8229
|
h == null || h.remove();
|
|
8086
|
-
}), this.pointMarkers[z.id] = [], (i = this.tipMarker) == null || i.remove(), this.tipMarker = void 0, M && ((
|
|
8230
|
+
}), this.pointMarkers[z.id] = [], (i = this.tipMarker) == null || i.remove(), this.tipMarker = void 0, M && ((L = this.map) != null && L.getSource(b)) && this.map.removeSource(b), M && ((n = this.map) != null && n.getSource(this.tmpSource)) && this.map.removeSource(this.tmpSource);
|
|
8087
8231
|
}
|
|
8088
8232
|
}
|
|
8089
8233
|
};
|
|
8090
|
-
function
|
|
8091
|
-
return
|
|
8234
|
+
function Eb(z, M, b, O, p, o) {
|
|
8235
|
+
return l(), f("div");
|
|
8092
8236
|
}
|
|
8093
|
-
const
|
|
8094
|
-
const
|
|
8237
|
+
const Pb = /* @__PURE__ */ I(Sb, [["render", Eb]]);
|
|
8238
|
+
const kb = {
|
|
8095
8239
|
name: "IdmENC",
|
|
8096
8240
|
props: {
|
|
8097
8241
|
map: {
|
|
@@ -8122,8 +8266,8 @@ const wb = {
|
|
|
8122
8266
|
emits: ["enc"],
|
|
8123
8267
|
data() {
|
|
8124
8268
|
return {
|
|
8125
|
-
helper:
|
|
8126
|
-
vendor: this.$attrs.permission &
|
|
8269
|
+
helper: S0,
|
|
8270
|
+
vendor: this.$attrs.permission & S0.LEVEL.Supper ? "hi" : "i4",
|
|
8127
8271
|
right: 10
|
|
8128
8272
|
};
|
|
8129
8273
|
},
|
|
@@ -8143,24 +8287,24 @@ const wb = {
|
|
|
8143
8287
|
}
|
|
8144
8288
|
},
|
|
8145
8289
|
methods: {}
|
|
8146
|
-
},
|
|
8147
|
-
function
|
|
8148
|
-
const e =
|
|
8149
|
-
return b.enabled && b.permission & p.helper.LEVEL.Supper ? (
|
|
8290
|
+
}, Db = { key: 0 }, Ib = { class: "bar-item" };
|
|
8291
|
+
function jb(z, M, b, O, p, o) {
|
|
8292
|
+
const e = x("ElTooltip");
|
|
8293
|
+
return b.enabled && b.permission & p.helper.LEVEL.Supper ? (l(), f("div", Db, [
|
|
8150
8294
|
c("div", {
|
|
8151
8295
|
class: "menu-bar-box",
|
|
8152
|
-
style:
|
|
8296
|
+
style: z0({ position: "absolute", right: p.right + "px", bottom: b.bottom })
|
|
8153
8297
|
}, [
|
|
8154
|
-
c("div",
|
|
8155
|
-
|
|
8298
|
+
c("div", Ib, [
|
|
8299
|
+
v(e, {
|
|
8156
8300
|
placement: "left",
|
|
8157
8301
|
effect: "light",
|
|
8158
8302
|
content: "Hifleet",
|
|
8159
8303
|
"show-after": 1e3
|
|
8160
8304
|
}, {
|
|
8161
|
-
default:
|
|
8305
|
+
default: c0(() => [
|
|
8162
8306
|
c("div", {
|
|
8163
|
-
class:
|
|
8307
|
+
class: K(p.vendor === "hi" ? "menu-icon active" : "menu-icon"),
|
|
8164
8308
|
onClick: M[0] || (M[0] = (t) => p.vendor = "hi")
|
|
8165
8309
|
}, M[2] || (M[2] = [
|
|
8166
8310
|
c("span", { class: "iconfont" }, "HI", -1)
|
|
@@ -8168,15 +8312,15 @@ function xb(z, M, b, O, p, o) {
|
|
|
8168
8312
|
]),
|
|
8169
8313
|
_: 1
|
|
8170
8314
|
}),
|
|
8171
|
-
|
|
8315
|
+
v(e, {
|
|
8172
8316
|
placement: "left",
|
|
8173
8317
|
effect: "light",
|
|
8174
8318
|
content: "I4insight",
|
|
8175
8319
|
"show-after": 1e3
|
|
8176
8320
|
}, {
|
|
8177
|
-
default:
|
|
8321
|
+
default: c0(() => [
|
|
8178
8322
|
c("div", {
|
|
8179
|
-
class:
|
|
8323
|
+
class: K(p.vendor === "i4" ? "menu-icon active" : "menu-icon"),
|
|
8180
8324
|
onClick: M[1] || (M[1] = (t) => p.vendor = "i4")
|
|
8181
8325
|
}, M[3] || (M[3] = [
|
|
8182
8326
|
c("span", { class: "iconfont" }, "I4", -1)
|
|
@@ -8186,10 +8330,10 @@ function xb(z, M, b, O, p, o) {
|
|
|
8186
8330
|
})
|
|
8187
8331
|
])
|
|
8188
8332
|
], 4)
|
|
8189
|
-
])) :
|
|
8333
|
+
])) : D("", !0);
|
|
8190
8334
|
}
|
|
8191
|
-
const
|
|
8192
|
-
const
|
|
8335
|
+
const Fb = /* @__PURE__ */ I(kb, [["render", jb], ["__scopeId", "data-v-150235f7"]]);
|
|
8336
|
+
const Ub = {
|
|
8193
8337
|
name: "IdmGLV2",
|
|
8194
8338
|
components: {
|
|
8195
8339
|
IdmGlLayer: w1,
|
|
@@ -8208,20 +8352,20 @@ const Eb = {
|
|
|
8208
8352
|
IdmWaterTemp: S2,
|
|
8209
8353
|
IdmTemp: D2,
|
|
8210
8354
|
IdmArctic: U2,
|
|
8211
|
-
IdmWarZone:
|
|
8212
|
-
IdmGmdssArea:
|
|
8213
|
-
IdmEcaZone:
|
|
8214
|
-
IdmAlertZone:
|
|
8215
|
-
IdmPort:
|
|
8216
|
-
IdmLoadLine:
|
|
8217
|
-
IdmTimezone:
|
|
8218
|
-
IdmVRA:
|
|
8219
|
-
IdmSpecialArea:
|
|
8220
|
-
IdmTerminator:
|
|
8355
|
+
IdmWarZone: ZM,
|
|
8356
|
+
IdmGmdssArea: bb,
|
|
8357
|
+
IdmEcaZone: Ob,
|
|
8358
|
+
IdmAlertZone: tb,
|
|
8359
|
+
IdmPort: lb,
|
|
8360
|
+
IdmLoadLine: Lb,
|
|
8361
|
+
IdmTimezone: mb,
|
|
8362
|
+
IdmVRA: yb,
|
|
8363
|
+
IdmSpecialArea: vb,
|
|
8364
|
+
IdmTerminator: Cb,
|
|
8221
8365
|
IdmLatLng: H0,
|
|
8222
|
-
IdmMeasure:
|
|
8223
|
-
IdmPoint:
|
|
8224
|
-
IdmENC:
|
|
8366
|
+
IdmMeasure: Pb,
|
|
8367
|
+
IdmPoint: JM,
|
|
8368
|
+
IdmENC: Fb
|
|
8225
8369
|
},
|
|
8226
8370
|
props: {
|
|
8227
8371
|
map: {
|
|
@@ -8275,7 +8419,7 @@ const Eb = {
|
|
|
8275
8419
|
watch: {
|
|
8276
8420
|
ts: {
|
|
8277
8421
|
handler(z, M) {
|
|
8278
|
-
z && M &&
|
|
8422
|
+
z && M && A0(z).utc().format("yyyy-MM-DD HH") !== A0(M).utc().format("yyyy-MM-DD HH") && this.$nextTick(() => {
|
|
8279
8423
|
this.handleDateChange({ tropicals: !1 });
|
|
8280
8424
|
});
|
|
8281
8425
|
},
|
|
@@ -8295,10 +8439,10 @@ const Eb = {
|
|
|
8295
8439
|
},
|
|
8296
8440
|
activeWeatherLayers: {
|
|
8297
8441
|
handler() {
|
|
8298
|
-
var z, M, b, O, p, o, e, t, q, r, a, i,
|
|
8442
|
+
var z, M, b, O, p, o, e, t, q, r, a, i, L, n, h, u, d, m;
|
|
8299
8443
|
if (!this.map)
|
|
8300
8444
|
return !1;
|
|
8301
|
-
this.activeWeatherLayers.length > 0 ? ((M = (z = this.map) == null ? void 0 : z.getLayer(this.enc)) == null || M.setLayoutProperty("visibility", "none"), (O = (b = this.map) == null ? void 0 : b.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) == null || O.setLayoutProperty("visibility", "visible"), (o = this.map) != null && o.getLayer((p = this.viewport) == null ? void 0 : p.rampColorLayer) && ((e = this.map) != null && e.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && this.mapProjection === "mercator" && ((q = this.map) == null || q.moveLayer((t = this.viewport) == null ? void 0 : t.rampColorLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)), (a = this.map) != null && a.getLayer((r = this.viewport) == null ? void 0 : r.particleLayer) && ((i = this.map) != null && i.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && this.mapProjection === "mercator" && ((n = this.map) == null || n.moveLayer((
|
|
8445
|
+
this.activeWeatherLayers.length > 0 ? ((M = (z = this.map) == null ? void 0 : z.getLayer(this.enc)) == null || M.setLayoutProperty("visibility", "none"), (O = (b = this.map) == null ? void 0 : b.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) == null || O.setLayoutProperty("visibility", "visible"), (o = this.map) != null && o.getLayer((p = this.viewport) == null ? void 0 : p.rampColorLayer) && ((e = this.map) != null && e.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && this.mapProjection === "mercator" && ((q = this.map) == null || q.moveLayer((t = this.viewport) == null ? void 0 : t.rampColorLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)), (a = this.map) != null && a.getLayer((r = this.viewport) == null ? void 0 : r.particleLayer) && ((i = this.map) != null && i.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) && this.mapProjection === "mercator" && ((n = this.map) == null || n.moveLayer((L = this.viewport) == null ? void 0 : L.particleLayer, this.helper.mapboxCustomer.layers.countryBoundary.id))) : ((u = (h = this.map) == null ? void 0 : h.getLayer(this.enc)) == null || u.setLayoutProperty("visibility", "visible"), (m = (d = this.map) == null ? void 0 : d.getLayer(this.helper.mapboxCustomer.layers.countryBoundary.id)) == null || m.setLayoutProperty("visibility", "none")), this.$emit("activeWeatherLayers", this.activeWeatherLayers);
|
|
8302
8446
|
},
|
|
8303
8447
|
immediate: !0
|
|
8304
8448
|
},
|
|
@@ -8354,55 +8498,55 @@ const Eb = {
|
|
|
8354
8498
|
const M = (/* @__PURE__ */ new Date()).valueOf();
|
|
8355
8499
|
let b = 0, O = 0;
|
|
8356
8500
|
if (this.map) {
|
|
8357
|
-
const
|
|
8501
|
+
const L = ((p = this.map) == null ? void 0 : p.getZoom()) + 1, n = (o = this.map) == null ? void 0 : o.getBounds(), h = `${n._sw.lng},${n._sw.lat},${n._ne.lng},${n._ne.lat}`;
|
|
8358
8502
|
if (this.particleFactor) {
|
|
8359
|
-
const
|
|
8503
|
+
const u = x0.WEATHER_LAYERS.find((d) => {
|
|
8360
8504
|
var m;
|
|
8361
8505
|
return ((m = d.peer) == null ? void 0 : m.weight) === this.particleFactor.weight;
|
|
8362
8506
|
});
|
|
8363
|
-
this.particleFactor.particle ? this.weatherWeight = this.weatherWeight &
|
|
8507
|
+
this.particleFactor.particle ? this.weatherWeight = this.weatherWeight & u.weight ? this.weatherWeight : this.weatherWeight + u.weight : this.weatherWeight = this.weatherWeight & u.weight ? this.weatherWeight - u.weight : this.weatherWeight;
|
|
8364
8508
|
}
|
|
8365
8509
|
if (this.weatherWeight > 0) {
|
|
8366
|
-
let
|
|
8367
|
-
if (z.tropicals || this.weatherWeight & 256 && (d = this.weatherLayers.tropicals, d && (
|
|
8368
|
-
const m = await
|
|
8510
|
+
let u = this.weatherWeight, d;
|
|
8511
|
+
if (z.tropicals || this.weatherWeight & 256 && (d = this.weatherLayers.tropicals, d && (u -= 256, d.version = Math.random() + 1)), u > 0) {
|
|
8512
|
+
const m = await y0.get(`${this.gateway}/api/arc/weather/layers/links?l=${u}&v=${this.source}&z=${L}&bbox=${h}&t=${this.ts}`, {
|
|
8369
8513
|
headers: {
|
|
8370
8514
|
Authorization: this.token || this.defaultMeteoToken
|
|
8371
8515
|
}
|
|
8372
8516
|
});
|
|
8373
8517
|
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) {
|
|
8374
|
-
const
|
|
8375
|
-
for (const
|
|
8376
|
-
|
|
8377
|
-
|
|
8518
|
+
const R = (t = m == null ? void 0 : m.data) == null ? void 0 : t.data, g = [];
|
|
8519
|
+
for (const y in R)
|
|
8520
|
+
y === "ice-edge" && (R[y] = "https://idm-hz.oss-cn-hangzhou.aliyuncs.com/test/sea_ice_contours.geojson"), y !== "tropicals" && g.push(
|
|
8521
|
+
y0.get(R[y], {
|
|
8378
8522
|
headers: {
|
|
8379
8523
|
Authorization: this.token || this.defaultMeteoToken,
|
|
8380
|
-
key:
|
|
8524
|
+
key: y
|
|
8381
8525
|
},
|
|
8382
|
-
responseType: /\.(jpg|png)$/.test(
|
|
8383
|
-
}).catch((
|
|
8384
|
-
console.log(`[${
|
|
8526
|
+
responseType: /\.(jpg|png)$/.test(R[y]) ? "blob" : "json"
|
|
8527
|
+
}).catch((F) => {
|
|
8528
|
+
console.log(`[${y}] fetch layer error: ${F}`);
|
|
8385
8529
|
})
|
|
8386
8530
|
);
|
|
8387
|
-
const
|
|
8388
|
-
this.weatherLayers = {},
|
|
8389
|
-
var
|
|
8390
|
-
const
|
|
8391
|
-
|
|
8392
|
-
raw:
|
|
8393
|
-
type: ((
|
|
8531
|
+
const _ = await Promise.all(g);
|
|
8532
|
+
this.weatherLayers = {}, _.map((y) => {
|
|
8533
|
+
var w, Y, M0, q0;
|
|
8534
|
+
const F = ((w = y == null ? void 0 : y.data) == null ? void 0 : w.data) || (y == null ? void 0 : y.data), B = (M0 = (Y = y == null ? void 0 : y.config) == null ? void 0 : Y.headers) == null ? void 0 : M0.key;
|
|
8535
|
+
B && F && (this.weatherLayers[B] = {
|
|
8536
|
+
raw: F,
|
|
8537
|
+
type: ((q0 = y == null ? void 0 : y.config) == null ? void 0 : q0.responseType) === "blob" ? "image" : "json",
|
|
8394
8538
|
etime: this.ts
|
|
8395
8539
|
});
|
|
8396
|
-
}),
|
|
8540
|
+
}), R.tropicals && y0.get(R.tropicals, {
|
|
8397
8541
|
headers: {
|
|
8398
8542
|
Authorization: this.token || this.defaultMeteoToken,
|
|
8399
8543
|
key: "tropicals"
|
|
8400
8544
|
}
|
|
8401
|
-
}).then((
|
|
8402
|
-
var
|
|
8403
|
-
const
|
|
8404
|
-
this.weatherLayers[
|
|
8405
|
-
data:
|
|
8545
|
+
}).then((y) => {
|
|
8546
|
+
var w, Y, M0;
|
|
8547
|
+
const F = I0.convert2Geojson(((w = y == null ? void 0 : y.data) == null ? void 0 : w.data) || (y == null ? void 0 : y.data)), B = (M0 = (Y = y == null ? void 0 : y.config) == null ? void 0 : Y.headers) == null ? void 0 : M0.key;
|
|
8548
|
+
this.weatherLayers[B] = {
|
|
8549
|
+
data: F,
|
|
8406
8550
|
active: !0,
|
|
8407
8551
|
cached: !1,
|
|
8408
8552
|
type: "json",
|
|
@@ -8412,20 +8556,20 @@ const Eb = {
|
|
|
8412
8556
|
});
|
|
8413
8557
|
}
|
|
8414
8558
|
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"]) {
|
|
8415
|
-
const
|
|
8559
|
+
const R = (q = this.weatherLayers["swell-direction"]) == null ? void 0 : q.raw, g = (r = this.weatherLayers["swell-height"]) == null ? void 0 : r.raw;
|
|
8416
8560
|
delete this.weatherLayers["swell-direction"], delete this.weatherLayers["swell-height"], this.weatherLayers.swell = {
|
|
8417
8561
|
type: "json",
|
|
8418
|
-
direction:
|
|
8419
|
-
height: { raw:
|
|
8562
|
+
direction: R,
|
|
8563
|
+
height: { raw: g },
|
|
8420
8564
|
etime: this.ts
|
|
8421
8565
|
};
|
|
8422
8566
|
}
|
|
8423
8567
|
if (this.weatherLayers["current-direction"] || this.weatherLayers["current-speed"]) {
|
|
8424
|
-
const
|
|
8568
|
+
const R = (a = this.weatherLayers["current-direction"]) == null ? void 0 : a.raw, g = (i = this.weatherLayers["current-speed"]) == null ? void 0 : i.raw;
|
|
8425
8569
|
delete this.weatherLayers["current-direction"], delete this.weatherLayers["current-speed"], this.weatherLayers.current = {
|
|
8426
8570
|
type: "json",
|
|
8427
|
-
direction:
|
|
8428
|
-
speed: { raw:
|
|
8571
|
+
direction: R,
|
|
8572
|
+
speed: { raw: g },
|
|
8429
8573
|
etime: this.ts
|
|
8430
8574
|
};
|
|
8431
8575
|
}
|
|
@@ -8444,7 +8588,7 @@ const Eb = {
|
|
|
8444
8588
|
let e = !1;
|
|
8445
8589
|
if (this.otherWeight & 2048 && (o = this.otherWeight - 2048, e = !0), o) {
|
|
8446
8590
|
if (z.all) {
|
|
8447
|
-
const t = await
|
|
8591
|
+
const t = await y0.get(`${this.gateway}/api/arc/other/layers/links?l=${o}&t=${this.ts}`, {
|
|
8448
8592
|
headers: {
|
|
8449
8593
|
Authorization: this.token || this.defaultMeteoToken
|
|
8450
8594
|
}
|
|
@@ -8453,7 +8597,7 @@ const Eb = {
|
|
|
8453
8597
|
const q = (b = t == null ? void 0 : t.data) == null ? void 0 : b.data, r = [];
|
|
8454
8598
|
for (const i in q)
|
|
8455
8599
|
r.push(
|
|
8456
|
-
|
|
8600
|
+
y0.get(q[i], {
|
|
8457
8601
|
headers: {
|
|
8458
8602
|
Authorization: this.token || this.defaultMeteoToken,
|
|
8459
8603
|
key: i
|
|
@@ -8462,13 +8606,13 @@ const Eb = {
|
|
|
8462
8606
|
);
|
|
8463
8607
|
const a = await Promise.all(r);
|
|
8464
8608
|
this.otherLayers = { enc: e }, a.map((i) => {
|
|
8465
|
-
var h,
|
|
8466
|
-
const
|
|
8467
|
-
this.otherLayers[n] =
|
|
8609
|
+
var h, u, d;
|
|
8610
|
+
const L = ((h = i == null ? void 0 : i.data) == null ? void 0 : h.data) || (i == null ? void 0 : i.data), n = (d = (u = i == null ? void 0 : i.config) == null ? void 0 : u.headers) == null ? void 0 : d.key;
|
|
8611
|
+
this.otherLayers[n] = L;
|
|
8468
8612
|
});
|
|
8469
8613
|
}
|
|
8470
8614
|
} else if (z.dayNight && o & 1024) {
|
|
8471
|
-
const t = await
|
|
8615
|
+
const t = await y0.get(`${this.gateway}/api/arc/other/layers/links?l=1024&t=${this.ts}`, {
|
|
8472
8616
|
headers: {
|
|
8473
8617
|
Authorization: this.token || this.defaultMeteoToken
|
|
8474
8618
|
}
|
|
@@ -8477,7 +8621,7 @@ const Eb = {
|
|
|
8477
8621
|
const q = (p = t == null ? void 0 : t.data) == null ? void 0 : p.data, r = [];
|
|
8478
8622
|
for (const i in q)
|
|
8479
8623
|
r.push(
|
|
8480
|
-
|
|
8624
|
+
y0.get(q[i], {
|
|
8481
8625
|
headers: {
|
|
8482
8626
|
Authorization: this.token || this.defaultMeteoToken,
|
|
8483
8627
|
key: i
|
|
@@ -8485,9 +8629,9 @@ const Eb = {
|
|
|
8485
8629
|
})
|
|
8486
8630
|
);
|
|
8487
8631
|
(await Promise.all(r)).map((i) => {
|
|
8488
|
-
var h,
|
|
8489
|
-
const
|
|
8490
|
-
this.otherLayers[n] =
|
|
8632
|
+
var h, u, d;
|
|
8633
|
+
const L = ((h = i == null ? void 0 : i.data) == null ? void 0 : h.data) || (i == null ? void 0 : i.data), n = (d = (u = i == null ? void 0 : i.config) == null ? void 0 : u.headers) == null ? void 0 : d.key;
|
|
8634
|
+
this.otherLayers[n] = L;
|
|
8491
8635
|
});
|
|
8492
8636
|
}
|
|
8493
8637
|
}
|
|
@@ -8542,36 +8686,36 @@ const Eb = {
|
|
|
8542
8686
|
);
|
|
8543
8687
|
},
|
|
8544
8688
|
handleDragEndWithZoom4Json() {
|
|
8545
|
-
var r, a, i,
|
|
8689
|
+
var r, a, i, L;
|
|
8546
8690
|
const z = (/* @__PURE__ */ new Date()).valueOf();
|
|
8547
8691
|
let M = 0, b = 0;
|
|
8548
|
-
const O = (r = this.map) == null ? void 0 : r.getBounds(), p = this.map.getZoom(), o =
|
|
8692
|
+
const O = (r = this.map) == null ? void 0 : r.getBounds(), p = this.map.getZoom(), o = $.convertToStdLng(O._sw.lng), e = $.convertToStdLng(O._ne.lng), t = Math.floor(O._sw.lat), q = Math.ceil(O._ne.lat);
|
|
8549
8693
|
for (const n in this.weatherLayers)
|
|
8550
8694
|
if (this.weatherLayers[n].active && this.weatherLayers[n].type === "json") {
|
|
8551
8695
|
this.weatherLayers[n].active = !1, this.weatherLayers[n].version = Math.random() + 1;
|
|
8552
8696
|
let h = [];
|
|
8553
8697
|
if (["swell", "current"].includes(n)) {
|
|
8554
|
-
const
|
|
8555
|
-
for (const d in
|
|
8698
|
+
const u = ((a = this.weatherLayers[n]) == null ? void 0 : a.direction) || {};
|
|
8699
|
+
for (const d in u)
|
|
8556
8700
|
if (d > t && d < q && (!(p <= this.zoom) || d % (p < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
8557
|
-
const m =
|
|
8558
|
-
o > e ? m.forEach((
|
|
8559
|
-
var
|
|
8560
|
-
if ((
|
|
8561
|
-
const
|
|
8562
|
-
val:
|
|
8563
|
-
spd: (
|
|
8701
|
+
const m = u[d].lng;
|
|
8702
|
+
o > e ? m.forEach((R, g) => {
|
|
8703
|
+
var _;
|
|
8704
|
+
if ((R >= o && R <= 180 || R >= -180 && R <= e) && (!(p <= this.zoom) || R % (p < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
8705
|
+
const y = T.point([R, d], {
|
|
8706
|
+
val: u[d].val[g],
|
|
8707
|
+
spd: (_ = u[d].spd) == null ? void 0 : _[g]
|
|
8564
8708
|
});
|
|
8565
|
-
h.push(
|
|
8709
|
+
h.push(y);
|
|
8566
8710
|
}
|
|
8567
|
-
}) : m.forEach((
|
|
8568
|
-
var
|
|
8569
|
-
if (
|
|
8570
|
-
const
|
|
8571
|
-
val:
|
|
8572
|
-
spd: (
|
|
8711
|
+
}) : m.forEach((R, g) => {
|
|
8712
|
+
var _;
|
|
8713
|
+
if (R >= o && R <= e && (!(p <= this.zoom) || R % (p < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
8714
|
+
const y = T.point([R, d], {
|
|
8715
|
+
val: u[d].val[g],
|
|
8716
|
+
spd: (_ = u[d].spd) == null ? void 0 : _[g]
|
|
8573
8717
|
});
|
|
8574
|
-
h.push(
|
|
8718
|
+
h.push(y);
|
|
8575
8719
|
}
|
|
8576
8720
|
});
|
|
8577
8721
|
}
|
|
@@ -8580,15 +8724,15 @@ const Eb = {
|
|
|
8580
8724
|
if (d) {
|
|
8581
8725
|
if (!d.data) {
|
|
8582
8726
|
const m = [];
|
|
8583
|
-
for (const
|
|
8584
|
-
const
|
|
8585
|
-
for (const
|
|
8727
|
+
for (const R in (i = d.raw) == null ? void 0 : i.LineString) {
|
|
8728
|
+
const g = d.raw.LineString[R];
|
|
8729
|
+
for (const _ of g)
|
|
8586
8730
|
m.push(
|
|
8587
|
-
|
|
8588
|
-
val: Number(
|
|
8731
|
+
T.lineString(_, {
|
|
8732
|
+
val: Number(R)
|
|
8589
8733
|
})
|
|
8590
8734
|
);
|
|
8591
|
-
d.data =
|
|
8735
|
+
d.data = T.featureCollection(m);
|
|
8592
8736
|
}
|
|
8593
8737
|
}
|
|
8594
8738
|
if (d.data) {
|
|
@@ -8602,42 +8746,42 @@ const Eb = {
|
|
|
8602
8746
|
const d = this.weatherLayers[n].speed;
|
|
8603
8747
|
if (d) {
|
|
8604
8748
|
if (!d.data) {
|
|
8605
|
-
const
|
|
8606
|
-
for (const
|
|
8607
|
-
const
|
|
8608
|
-
for (const
|
|
8609
|
-
|
|
8610
|
-
|
|
8611
|
-
val: Number(
|
|
8749
|
+
const R = [];
|
|
8750
|
+
for (const g in (L = d.raw) == null ? void 0 : L.Polygon) {
|
|
8751
|
+
const _ = d.raw.Polygon[g];
|
|
8752
|
+
for (const y of _)
|
|
8753
|
+
R.push(
|
|
8754
|
+
T.polygon(y, {
|
|
8755
|
+
val: Number(g)
|
|
8612
8756
|
})
|
|
8613
8757
|
);
|
|
8614
8758
|
}
|
|
8615
|
-
d.data =
|
|
8759
|
+
d.data = T.featureCollection(R);
|
|
8616
8760
|
}
|
|
8617
|
-
const m = p < this.zoom ? d.data.features.filter((
|
|
8761
|
+
const m = p < this.zoom ? d.data.features.filter((R) => R.properties.val > 0.5) : d.data.features;
|
|
8618
8762
|
h = h.concat(m), b = (/* @__PURE__ */ new Date()).valueOf() - (z + M), console.log("speed elapsed: ", b, ", total: ", M += b);
|
|
8619
8763
|
}
|
|
8620
8764
|
}
|
|
8621
8765
|
} else if (n === "wind") {
|
|
8622
|
-
const
|
|
8623
|
-
for (const d in
|
|
8766
|
+
const u = this.weatherLayers.wind.raw;
|
|
8767
|
+
for (const d in u)
|
|
8624
8768
|
if (d > t && d < q && (!(p <= this.zoom) || d % (p < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
8625
|
-
const m =
|
|
8626
|
-
o > e ? m.forEach((
|
|
8627
|
-
if ((
|
|
8628
|
-
const
|
|
8629
|
-
val:
|
|
8630
|
-
spd:
|
|
8769
|
+
const m = u[d].lng;
|
|
8770
|
+
o > e ? m.forEach((R, g) => {
|
|
8771
|
+
if ((R >= o && R <= 180 || R >= -180 && R <= e) && (!(p <= this.zoom) || R % (p < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
8772
|
+
const _ = T.point([R, d], {
|
|
8773
|
+
val: u[d].val[g],
|
|
8774
|
+
spd: u[d].spd[g]
|
|
8631
8775
|
});
|
|
8632
|
-
h.push(
|
|
8776
|
+
h.push(_);
|
|
8633
8777
|
}
|
|
8634
|
-
}) : m.forEach((
|
|
8635
|
-
if (
|
|
8636
|
-
const
|
|
8637
|
-
val:
|
|
8638
|
-
spd:
|
|
8778
|
+
}) : m.forEach((R, g) => {
|
|
8779
|
+
if (R >= o && R <= e && (!(p <= this.zoom) || R % (p < this.zoom / 2 ? 5 : 3) === 0)) {
|
|
8780
|
+
const _ = T.point([R, d], {
|
|
8781
|
+
val: u[d].val[g],
|
|
8782
|
+
spd: u[d].spd[g]
|
|
8639
8783
|
});
|
|
8640
|
-
h.push(
|
|
8784
|
+
h.push(_);
|
|
8641
8785
|
}
|
|
8642
8786
|
});
|
|
8643
8787
|
}
|
|
@@ -8646,23 +8790,23 @@ const Eb = {
|
|
|
8646
8790
|
if (this.weatherLayers[n].data)
|
|
8647
8791
|
h = this.weatherLayers[n].data;
|
|
8648
8792
|
else {
|
|
8649
|
-
const
|
|
8650
|
-
if (
|
|
8793
|
+
const u = this.weatherLayers[n].raw;
|
|
8794
|
+
if (u) {
|
|
8651
8795
|
const d = [];
|
|
8652
|
-
for (const m in
|
|
8653
|
-
const
|
|
8654
|
-
for (const
|
|
8796
|
+
for (const m in u.Polygon) {
|
|
8797
|
+
const R = u.Polygon[m];
|
|
8798
|
+
for (const g of R)
|
|
8655
8799
|
d.push(
|
|
8656
|
-
|
|
8800
|
+
T.polygon(g, {
|
|
8657
8801
|
val: Number(m)
|
|
8658
8802
|
})
|
|
8659
8803
|
);
|
|
8660
8804
|
}
|
|
8661
|
-
for (const m in
|
|
8662
|
-
const
|
|
8663
|
-
for (const
|
|
8805
|
+
for (const m in u.Point) {
|
|
8806
|
+
const R = u.Point[m];
|
|
8807
|
+
for (const g of R)
|
|
8664
8808
|
d.push(
|
|
8665
|
-
...
|
|
8809
|
+
...T.points(g, {
|
|
8666
8810
|
val: Number(m)
|
|
8667
8811
|
}).features
|
|
8668
8812
|
);
|
|
@@ -8675,24 +8819,24 @@ const Eb = {
|
|
|
8675
8819
|
if (this.weatherLayers[n].data)
|
|
8676
8820
|
h = this.weatherLayers[n].data;
|
|
8677
8821
|
else {
|
|
8678
|
-
const
|
|
8679
|
-
if (
|
|
8822
|
+
const u = this.weatherLayers[n].raw;
|
|
8823
|
+
if (u) {
|
|
8680
8824
|
const d = [];
|
|
8681
|
-
for (const m in
|
|
8682
|
-
const
|
|
8683
|
-
for (const
|
|
8825
|
+
for (const m in u.LineString) {
|
|
8826
|
+
const R = u.LineString[m];
|
|
8827
|
+
for (const g of R)
|
|
8684
8828
|
d.push(
|
|
8685
|
-
|
|
8829
|
+
T.lineString(g, {
|
|
8686
8830
|
val: Number(m)
|
|
8687
8831
|
})
|
|
8688
8832
|
);
|
|
8689
8833
|
}
|
|
8690
|
-
for (const m in
|
|
8691
|
-
|
|
8692
|
-
|
|
8693
|
-
|
|
8694
|
-
val:
|
|
8695
|
-
type:
|
|
8834
|
+
for (const m in u.Point)
|
|
8835
|
+
u.Point[m].lng.forEach((R, g) => {
|
|
8836
|
+
R = $.convertToStdLng(R), d.push(
|
|
8837
|
+
T.point([R, m], {
|
|
8838
|
+
val: u.Point[m].val[g],
|
|
8839
|
+
type: u.Point[m].type[g]
|
|
8696
8840
|
})
|
|
8697
8841
|
);
|
|
8698
8842
|
});
|
|
@@ -8704,14 +8848,14 @@ const Eb = {
|
|
|
8704
8848
|
if (this.weatherLayers[n].data)
|
|
8705
8849
|
h = this.weatherLayers[n].data;
|
|
8706
8850
|
else {
|
|
8707
|
-
const
|
|
8708
|
-
if (
|
|
8851
|
+
const u = this.weatherLayers[n].raw;
|
|
8852
|
+
if (u) {
|
|
8709
8853
|
const d = [];
|
|
8710
|
-
for (const m in
|
|
8711
|
-
const
|
|
8712
|
-
for (const
|
|
8854
|
+
for (const m in u.LineString) {
|
|
8855
|
+
const R = u.LineString[m];
|
|
8856
|
+
for (const g of R)
|
|
8713
8857
|
d.push(
|
|
8714
|
-
|
|
8858
|
+
T.lineString(g, {
|
|
8715
8859
|
val: Number(m)
|
|
8716
8860
|
})
|
|
8717
8861
|
);
|
|
@@ -8721,7 +8865,7 @@ const Eb = {
|
|
|
8721
8865
|
}
|
|
8722
8866
|
b = (/* @__PURE__ */ new Date()).valueOf() - (z + M);
|
|
8723
8867
|
}
|
|
8724
|
-
console.log(n, " elapsed: ", b, ", total: ", M += b), h.length && (this.weatherLayers[n].data =
|
|
8868
|
+
console.log(n, " elapsed: ", b, ", total: ", M += b), h.length && (this.weatherLayers[n].data = T.featureCollection(h)), this.weatherLayers[n].active = !0, this.weatherLayers[n].version = Math.random() + 1;
|
|
8725
8869
|
}
|
|
8726
8870
|
},
|
|
8727
8871
|
handleDragEndWithZoom4Image() {
|
|
@@ -8729,14 +8873,14 @@ const Eb = {
|
|
|
8729
8873
|
this.weatherLayers[z].active && this.weatherLayers[z].type === "image" && (this.weatherLayers[z].active = !0, this.weatherLayers[z].version = Math.random() + 1);
|
|
8730
8874
|
},
|
|
8731
8875
|
handleBboxClip(z, M) {
|
|
8732
|
-
const b = [], O =
|
|
8876
|
+
const b = [], O = $.convertToStdLng(M._sw.lng), p = $.convertToStdLng(M._ne.lng);
|
|
8733
8877
|
return z.features.forEach((o) => {
|
|
8734
8878
|
if (o.geometry.type !== "Point")
|
|
8735
8879
|
if (O > p) {
|
|
8736
|
-
let e = [O, M._sw.lat, 180, M._ne.lat], t =
|
|
8737
|
-
t.geometry.coordinates.length && b.push(t), e = [-180, M._sw.lat, p, M._ne.lat], t =
|
|
8880
|
+
let e = [O, M._sw.lat, 180, M._ne.lat], t = T.bboxClip(o, e);
|
|
8881
|
+
t.geometry.coordinates.length && b.push(t), e = [-180, M._sw.lat, p, M._ne.lat], t = T.bboxClip(o, e), t.geometry.coordinates.length && b.push(t);
|
|
8738
8882
|
} else {
|
|
8739
|
-
const e = [O, M._sw.lat, p, M._ne.lat], t =
|
|
8883
|
+
const e = [O, M._sw.lat, p, M._ne.lat], t = T.bboxClip(o, e);
|
|
8740
8884
|
t.geometry.coordinates.length && b.push(t);
|
|
8741
8885
|
}
|
|
8742
8886
|
else
|
|
@@ -8754,8 +8898,8 @@ const Eb = {
|
|
|
8754
8898
|
this.handleBeforeLayerToggle();
|
|
8755
8899
|
},
|
|
8756
8900
|
handleBeforeLayerToggle() {
|
|
8757
|
-
var z, M, b, O, p, o, e, t, q, r, a, i,
|
|
8758
|
-
(z = this.map) != null && z.getLayer(this.beforeLayer) && ((M = this.activeWeatherLayers) != null && M.length || (b = this.otherLayers) != null && b["war-zones"] || (O = this.otherLayers) != null && O["gmdss-areas"] || (p = this.otherLayers) != null && p["load-lines"] || (o = this.otherLayers) != null && o["high-risk-area"] || (e = this.otherLayers) != null && e["time-zones"] || (t = this.otherLayers) != null && t.pirates || (q = this.otherLayers) != null && q.ports || (r = this.otherLayers) != null && r.enc || (a = this.otherLayers) != null && a["voluntary-reporting-area"] || (i = this.otherLayers) != null && i["eca-zones"] || (
|
|
8901
|
+
var z, M, b, O, p, o, e, t, q, r, a, i, L;
|
|
8902
|
+
(z = this.map) != null && z.getLayer(this.beforeLayer) && ((M = this.activeWeatherLayers) != null && M.length || (b = this.otherLayers) != null && b["war-zones"] || (O = this.otherLayers) != null && O["gmdss-areas"] || (p = this.otherLayers) != null && p["load-lines"] || (o = this.otherLayers) != null && o["high-risk-area"] || (e = this.otherLayers) != null && e["time-zones"] || (t = this.otherLayers) != null && t.pirates || (q = this.otherLayers) != null && q.ports || (r = this.otherLayers) != null && r.enc || (a = this.otherLayers) != null && a["voluntary-reporting-area"] || (i = this.otherLayers) != null && i["eca-zones"] || (L = this.otherLayers) != null && L["special-area"]) && this.map.setLayoutProperty(this.beforeLayer, "visibility", "visible");
|
|
8759
8903
|
},
|
|
8760
8904
|
handleDateChange(z = { tropicals: !1 }) {
|
|
8761
8905
|
this.fetchWeatherLayers(z), this.fetchOtherLayers({ dayNight: !0 });
|
|
@@ -8789,13 +8933,13 @@ const Eb = {
|
|
|
8789
8933
|
}
|
|
8790
8934
|
},
|
|
8791
8935
|
async handlePointChange(z) {
|
|
8792
|
-
const M = this.ts ?
|
|
8936
|
+
const M = this.ts ? A0(this.ts).utc().format() : A0().utc().format(), b = {
|
|
8793
8937
|
lat: z.lat,
|
|
8794
8938
|
lng: z.lng,
|
|
8795
8939
|
datetime: M,
|
|
8796
|
-
forecastDays:
|
|
8940
|
+
forecastDays: 1,
|
|
8797
8941
|
selfHosted: !1
|
|
8798
|
-
}, O = await
|
|
8942
|
+
}, O = await y0.post(`${this.gateway}/api/arc/meteo2/spot/forecast`, b, {
|
|
8799
8943
|
headers: {
|
|
8800
8944
|
Authorization: this.token || this.defaultMeteoToken
|
|
8801
8945
|
}
|
|
@@ -8806,8 +8950,8 @@ const Eb = {
|
|
|
8806
8950
|
});
|
|
8807
8951
|
},
|
|
8808
8952
|
handle3dToggle(z) {
|
|
8809
|
-
var M, b, O, p, o, e, t, q, r, a, i,
|
|
8810
|
-
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(), (
|
|
8953
|
+
var M, b, O, p, o, e, t, q, r, a, i, L, n, h, u, d, m, R, g, _;
|
|
8954
|
+
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)) && ((_ = this.map) == null || _.moveLayer((g = this.viewport) == null ? void 0 : g.particleLayer, this.helper.mapboxCustomer.layers.countryBoundary.id)));
|
|
8811
8955
|
},
|
|
8812
8956
|
handleParticle(z) {
|
|
8813
8957
|
this.particleFactor = z, this.weatherLayers[z.key] && (this.weatherLayers[z.key].particle = z.particle), this.activeWeatherLayers.map((O) => {
|
|
@@ -8825,15 +8969,15 @@ const Eb = {
|
|
|
8825
8969
|
this.$emit("toggleVersion", Math.random());
|
|
8826
8970
|
}
|
|
8827
8971
|
}
|
|
8828
|
-
},
|
|
8972
|
+
}, Hb = {
|
|
8829
8973
|
key: 0,
|
|
8830
8974
|
className: "map-gl-home"
|
|
8831
8975
|
};
|
|
8832
|
-
function
|
|
8833
|
-
var
|
|
8834
|
-
const e =
|
|
8835
|
-
return b.map ? (
|
|
8836
|
-
|
|
8976
|
+
function Gb(z, M, b, O, p, o) {
|
|
8977
|
+
var n0, a0, d0, U, h0, k, O0, r0, E, o0, m0, N0, g0, B0, A, W, s, N, X, S, J, P, H, C0, P0, k0;
|
|
8978
|
+
const e = x("IdmGlLayer"), t = x("IdmENC"), q = x("IdmSigWave"), r = x("IdmSwell"), a = x("IdmPrmsl"), i = x("IdmIceberg"), L = x("IdmTropicals"), n = x("IdmCurrents"), h = x("IdmCurrentParticle"), u = x("IdmWindBarb"), d = x("IdmWindParticle"), m = x("IdmPrecip3h"), R = x("IdmVisibility"), g = x("IdmWaterTemp"), _ = x("IdmTemp"), y = x("IdmArctic"), F = x("IdmWarZone"), B = x("IdmGmdssArea"), w = x("IdmEcaZone"), Y = x("IdmAlertZone"), M0 = x("IdmPort"), q0 = x("IdmLoadLine"), s0 = x("IdmTimezone"), l0 = x("IdmVRA"), i0 = x("IdmSpecialArea"), W0 = x("IdmTerminator"), b0 = x("IdmLatLng"), f0 = x("IdmMeasure"), u0 = x("IdmPoint");
|
|
8979
|
+
return b.map ? (l(), f("div", Hb, [
|
|
8980
|
+
v(e, j({
|
|
8837
8981
|
ref: "layer",
|
|
8838
8982
|
map: b.map,
|
|
8839
8983
|
"toggle-version": b.toggleVersion,
|
|
@@ -8845,57 +8989,57 @@ function kb(z, M, b, O, p, o) {
|
|
|
8845
8989
|
}, z.$attrs, {
|
|
8846
8990
|
onWeather: o.handleWeatherLayerChange,
|
|
8847
8991
|
onOther: o.handleOtherLayerChange,
|
|
8848
|
-
onToggleWindParticle: M[0] || (M[0] = (
|
|
8849
|
-
onToggleWindFeather: M[1] || (M[1] = (
|
|
8850
|
-
onToggleCurrentParticle: M[2] || (M[2] = (
|
|
8851
|
-
onToggleCurrentIsoband: M[3] || (M[3] = (
|
|
8852
|
-
onCoordinate: M[4] || (M[4] = (
|
|
8853
|
-
onMeasure: M[5] || (M[5] = (
|
|
8854
|
-
onPoint: M[6] || (M[6] = (
|
|
8992
|
+
onToggleWindParticle: M[0] || (M[0] = (e0) => p.showWindParticle = e0),
|
|
8993
|
+
onToggleWindFeather: M[1] || (M[1] = (e0) => p.showWindFeather = e0),
|
|
8994
|
+
onToggleCurrentParticle: M[2] || (M[2] = (e0) => p.showCurrentParticle = e0),
|
|
8995
|
+
onToggleCurrentIsoband: M[3] || (M[3] = (e0) => p.showCurrentIsoband = e0),
|
|
8996
|
+
onCoordinate: M[4] || (M[4] = (e0) => p.showCoord = e0),
|
|
8997
|
+
onMeasure: M[5] || (M[5] = (e0) => p.showMeasure = e0),
|
|
8998
|
+
onPoint: M[6] || (M[6] = (e0) => p.showPoint = e0),
|
|
8855
8999
|
on3d: o.handle3dToggle,
|
|
8856
9000
|
onHandleToggleVersion: o.handleToggleVersion
|
|
8857
9001
|
}), null, 16, ["map", "toggle-version", "map-projection", "showWindFeather", "showWindParticle", "showCurrentIsoband", "showCurrentParticle", "onWeather", "onOther", "on3d", "onHandleToggleVersion"]),
|
|
8858
|
-
|
|
9002
|
+
v(t, j({
|
|
8859
9003
|
map: b.map,
|
|
8860
9004
|
token: b.token,
|
|
8861
|
-
enabled: (
|
|
9005
|
+
enabled: (n0 = p.otherLayers) == null ? void 0 : n0.enc,
|
|
8862
9006
|
"toggle-version": b.toggleVersion
|
|
8863
9007
|
}, z.$attrs, {
|
|
8864
|
-
onEnc: M[7] || (M[7] = (
|
|
9008
|
+
onEnc: M[7] || (M[7] = (e0) => p.enc = e0)
|
|
8865
9009
|
}), null, 16, ["map", "token", "enabled", "toggle-version"]),
|
|
8866
|
-
|
|
9010
|
+
v(q, j({
|
|
8867
9011
|
map: b.map,
|
|
8868
|
-
"sig-wave": (
|
|
9012
|
+
"sig-wave": (a0 = p.weatherLayers) == null ? void 0 : a0["sig-wave-height"],
|
|
8869
9013
|
"before-layer": b.beforeLayer,
|
|
8870
9014
|
activeWeatherLayers: p.activeWeatherLayers
|
|
8871
9015
|
}, z.$attrs), null, 16, ["map", "sig-wave", "before-layer", "activeWeatherLayers"]),
|
|
8872
|
-
|
|
9016
|
+
v(r, j({
|
|
8873
9017
|
map: b.map,
|
|
8874
|
-
swell: (
|
|
9018
|
+
swell: (d0 = p.weatherLayers) == null ? void 0 : d0.swell,
|
|
8875
9019
|
"before-layer": b.beforeLayer,
|
|
8876
9020
|
activeWeatherLayers: p.activeWeatherLayers
|
|
8877
9021
|
}, z.$attrs), null, 16, ["map", "swell", "before-layer", "activeWeatherLayers"]),
|
|
8878
|
-
|
|
9022
|
+
v(a, j({
|
|
8879
9023
|
map: b.map,
|
|
8880
|
-
prmsl: (
|
|
9024
|
+
prmsl: (U = p.weatherLayers) == null ? void 0 : U.prmsl,
|
|
8881
9025
|
"before-layer": b.beforeLayer,
|
|
8882
9026
|
"active-weather-layers": p.activeWeatherLayers
|
|
8883
9027
|
}, z.$attrs), null, 16, ["map", "prmsl", "before-layer", "active-weather-layers"]),
|
|
8884
|
-
|
|
9028
|
+
v(i, j({
|
|
8885
9029
|
map: b.map,
|
|
8886
|
-
iceberg: (
|
|
9030
|
+
iceberg: (h0 = p.weatherLayers) == null ? void 0 : h0.iceberg,
|
|
8887
9031
|
"before-layer": b.beforeLayer
|
|
8888
9032
|
}, z.$attrs), null, 16, ["map", "iceberg", "before-layer"]),
|
|
8889
|
-
|
|
9033
|
+
v(L, j({
|
|
8890
9034
|
map: b.map,
|
|
8891
9035
|
date: b.ts,
|
|
8892
9036
|
tropicals: (k = p.weatherLayers) == null ? void 0 : k.tropicals,
|
|
8893
9037
|
"before-layer": b.beforeLayer
|
|
8894
9038
|
}, z.$attrs), null, 16, ["map", "date", "tropicals", "before-layer"]),
|
|
8895
|
-
|
|
9039
|
+
v(n, j({
|
|
8896
9040
|
map: b.map,
|
|
8897
9041
|
"map-projection": p.mapProjection,
|
|
8898
|
-
current: (
|
|
9042
|
+
current: (O0 = p.weatherLayers) == null ? void 0 : O0.current,
|
|
8899
9043
|
"before-layer": b.beforeLayer,
|
|
8900
9044
|
showCurrentIsoband: p.showCurrentIsoband,
|
|
8901
9045
|
showCurrentParticle: p.showCurrentParticle,
|
|
@@ -8906,18 +9050,18 @@ function kb(z, M, b, O, p, o) {
|
|
|
8906
9050
|
onParticle: o.handleParticle,
|
|
8907
9051
|
onHandleToggleVersion: o.handleToggleVersion
|
|
8908
9052
|
}), null, 16, ["map", "map-projection", "current", "before-layer", "showCurrentIsoband", "showCurrentParticle", "margin-bottom", "toggle-version", "weather-layers", "onParticle", "onHandleToggleVersion"]),
|
|
8909
|
-
|
|
9053
|
+
v(h, j({
|
|
8910
9054
|
viewport: p.viewport,
|
|
8911
9055
|
factor: (r0 = p.weatherLayers) == null ? void 0 : r0["current-particle"],
|
|
8912
9056
|
"before-layer": b.beforeLayer,
|
|
8913
9057
|
"toggle-version": b.toggleVersion
|
|
8914
9058
|
}, z.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
8915
|
-
|
|
9059
|
+
v(u, j({
|
|
8916
9060
|
ref: "windBarb",
|
|
8917
9061
|
map: b.map,
|
|
8918
9062
|
"map-projection": p.mapProjection,
|
|
8919
|
-
wind: (
|
|
8920
|
-
current: (
|
|
9063
|
+
wind: (E = p.weatherLayers) == null ? void 0 : E.wind,
|
|
9064
|
+
current: (o0 = p.weatherLayers) == null ? void 0 : o0.current,
|
|
8921
9065
|
"before-layer": b.beforeLayer,
|
|
8922
9066
|
"margin-bottom": p.showRampColor ? "56px" : "30px",
|
|
8923
9067
|
showWindFeather: p.showWindFeather,
|
|
@@ -8927,122 +9071,122 @@ function kb(z, M, b, O, p, o) {
|
|
|
8927
9071
|
"weather-layers": p.weatherLayers,
|
|
8928
9072
|
onParticle: o.handleParticle
|
|
8929
9073
|
}), null, 16, ["map", "map-projection", "wind", "current", "before-layer", "margin-bottom", "showWindFeather", "showWindParticle", "toggle-version", "weather-layers", "onParticle"]),
|
|
8930
|
-
|
|
9074
|
+
v(d, j({
|
|
8931
9075
|
viewport: p.viewport,
|
|
8932
|
-
factor: (
|
|
9076
|
+
factor: (m0 = p.weatherLayers) == null ? void 0 : m0["wind-particle"],
|
|
8933
9077
|
"before-layer": b.beforeLayer,
|
|
8934
9078
|
"toggle-version": b.toggleVersion
|
|
8935
9079
|
}, z.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
8936
|
-
|
|
9080
|
+
v(m, j({
|
|
8937
9081
|
viewport: p.viewport,
|
|
8938
|
-
factor: (
|
|
9082
|
+
factor: (N0 = p.weatherLayers) == null ? void 0 : N0.precip3h,
|
|
8939
9083
|
"before-layer": b.beforeLayer,
|
|
8940
9084
|
"toggle-version": b.toggleVersion
|
|
8941
9085
|
}, z.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
8942
|
-
|
|
9086
|
+
v(R, j({
|
|
8943
9087
|
viewport: p.viewport,
|
|
8944
|
-
factor: (
|
|
9088
|
+
factor: (g0 = p.weatherLayers) == null ? void 0 : g0.visibility,
|
|
8945
9089
|
"before-layer": b.beforeLayer,
|
|
8946
9090
|
"toggle-version": b.toggleVersion
|
|
8947
9091
|
}, z.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
8948
|
-
|
|
9092
|
+
v(g, j({
|
|
8949
9093
|
viewport: p.viewport,
|
|
8950
|
-
factor: (
|
|
9094
|
+
factor: (B0 = p.weatherLayers) == null ? void 0 : B0["water-temp"],
|
|
8951
9095
|
"before-layer": b.beforeLayer,
|
|
8952
9096
|
"toggle-version": b.toggleVersion
|
|
8953
9097
|
}, z.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
8954
|
-
|
|
9098
|
+
v(_, j({
|
|
8955
9099
|
viewport: p.viewport,
|
|
8956
9100
|
factor: (A = p.weatherLayers) == null ? void 0 : A.temp,
|
|
8957
9101
|
"before-layer": b.beforeLayer,
|
|
8958
9102
|
"toggle-version": b.toggleVersion
|
|
8959
9103
|
}, z.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
8960
|
-
|
|
9104
|
+
v(y, j({
|
|
8961
9105
|
viewport: p.viewport,
|
|
8962
9106
|
factor: (W = p.weatherLayers) == null ? void 0 : W.arctic,
|
|
8963
9107
|
"before-layer": b.beforeLayer,
|
|
8964
9108
|
"toggle-version": b.toggleVersion
|
|
8965
9109
|
}, z.$attrs), null, 16, ["viewport", "factor", "before-layer", "toggle-version"]),
|
|
8966
|
-
|
|
9110
|
+
v(F, j({
|
|
8967
9111
|
map: b.map,
|
|
8968
9112
|
zone: (s = p.otherLayers) == null ? void 0 : s["war-zones"],
|
|
8969
9113
|
"before-layer": b.beforeLayer
|
|
8970
9114
|
}, z.$attrs), null, 16, ["map", "zone", "before-layer"]),
|
|
8971
|
-
|
|
9115
|
+
v(B, j({
|
|
8972
9116
|
map: b.map,
|
|
8973
9117
|
area: (N = p.otherLayers) == null ? void 0 : N["gmdss-areas"],
|
|
8974
9118
|
"before-layer": b.beforeLayer
|
|
8975
9119
|
}, z.$attrs), null, 16, ["map", "area", "before-layer"]),
|
|
8976
|
-
|
|
9120
|
+
v(w, j({
|
|
8977
9121
|
map: b.map,
|
|
8978
9122
|
zone: (X = p.otherLayers) == null ? void 0 : X["eca-zones"],
|
|
8979
9123
|
"before-layer": b.beforeLayer
|
|
8980
9124
|
}, z.$attrs), null, 16, ["map", "zone", "before-layer"]),
|
|
8981
|
-
|
|
9125
|
+
v(Y, j({
|
|
8982
9126
|
map: b.map,
|
|
8983
|
-
zone: (
|
|
9127
|
+
zone: (S = p.otherLayers) == null ? void 0 : S["alert-zones"],
|
|
8984
9128
|
"before-layer": b.beforeLayer
|
|
8985
9129
|
}, z.$attrs), null, 16, ["map", "zone", "before-layer"]),
|
|
8986
|
-
|
|
9130
|
+
v(M0, j({
|
|
8987
9131
|
map: b.map,
|
|
8988
|
-
port: (
|
|
9132
|
+
port: (J = p.otherLayers) == null ? void 0 : J.ports,
|
|
8989
9133
|
"before-layer": b.beforeLayer
|
|
8990
9134
|
}, z.$attrs), null, 16, ["map", "port", "before-layer"]),
|
|
8991
|
-
|
|
9135
|
+
v(q0, j({
|
|
8992
9136
|
map: b.map,
|
|
8993
|
-
line: (
|
|
9137
|
+
line: (P = p.otherLayers) == null ? void 0 : P["load-lines"],
|
|
8994
9138
|
"before-layer": b.beforeLayer
|
|
8995
9139
|
}, z.$attrs), null, 16, ["map", "line", "before-layer"]),
|
|
8996
|
-
|
|
9140
|
+
v(s0, j({
|
|
8997
9141
|
map: b.map,
|
|
8998
|
-
zone: (
|
|
9142
|
+
zone: (H = p.otherLayers) == null ? void 0 : H["time-zones"],
|
|
8999
9143
|
"before-layer": b.beforeLayer
|
|
9000
9144
|
}, z.$attrs), null, 16, ["map", "zone", "before-layer"]),
|
|
9001
|
-
|
|
9145
|
+
v(l0, j({
|
|
9002
9146
|
map: b.map,
|
|
9003
9147
|
area: (C0 = p.otherLayers) == null ? void 0 : C0["voluntary-reporting-area"],
|
|
9004
9148
|
"before-layer": b.beforeLayer
|
|
9005
9149
|
}, z.$attrs), null, 16, ["map", "area", "before-layer"]),
|
|
9006
|
-
|
|
9150
|
+
v(i0, j({
|
|
9007
9151
|
map: b.map,
|
|
9008
9152
|
area: (P0 = p.otherLayers) == null ? void 0 : P0["special-area"],
|
|
9009
9153
|
"before-layer": b.beforeLayer
|
|
9010
9154
|
}, z.$attrs), null, 16, ["map", "area", "before-layer"]),
|
|
9011
|
-
|
|
9155
|
+
v(W0, j({
|
|
9012
9156
|
map: b.map,
|
|
9013
9157
|
area: (k0 = p.otherLayers) == null ? void 0 : k0["day-night"]
|
|
9014
9158
|
}, z.$attrs), null, 16, ["map", "area"]),
|
|
9015
|
-
|
|
9159
|
+
v(b0, j({
|
|
9016
9160
|
map: b.map,
|
|
9017
9161
|
show: p.showCoord,
|
|
9018
9162
|
"toggle-version": b.toggleVersion
|
|
9019
9163
|
}, z.$attrs), null, 16, ["map", "show", "toggle-version"]),
|
|
9020
|
-
|
|
9164
|
+
v(f0, j({
|
|
9021
9165
|
map: b.map,
|
|
9022
9166
|
show: p.showMeasure
|
|
9023
9167
|
}, z.$attrs), null, 16, ["map", "show"]),
|
|
9024
|
-
|
|
9168
|
+
v(u0, j({
|
|
9025
9169
|
map: b.map,
|
|
9026
9170
|
show: p.showPoint,
|
|
9027
9171
|
meteo: p.meteo,
|
|
9028
9172
|
ts: b.ts,
|
|
9029
9173
|
token: b.token
|
|
9030
9174
|
}, z.$attrs, { onPoint: o.handlePointChange }), null, 16, ["map", "show", "meteo", "ts", "token", "onPoint"])
|
|
9031
|
-
])) :
|
|
9175
|
+
])) : D("", !0);
|
|
9032
9176
|
}
|
|
9033
|
-
const
|
|
9177
|
+
const Vb = /* @__PURE__ */ I(Ub, [["render", Gb]]), pz = {
|
|
9034
9178
|
install(z) {
|
|
9035
|
-
z.component("MapboxGL",
|
|
9179
|
+
z.component("MapboxGL", Vb), z.component("TropicalGL", j0), z.component("LatLngGL", H0);
|
|
9036
9180
|
}
|
|
9037
9181
|
};
|
|
9038
9182
|
export {
|
|
9039
9183
|
H0 as LatLngGL,
|
|
9040
|
-
|
|
9041
|
-
|
|
9184
|
+
Vb as MapboxGL,
|
|
9185
|
+
pz as MapboxGLPlugin,
|
|
9042
9186
|
E1 as MapboxHelper,
|
|
9043
|
-
|
|
9187
|
+
t0 as ParticleSchema,
|
|
9044
9188
|
j0 as TropicalGL,
|
|
9045
9189
|
E0 as Viewport,
|
|
9046
|
-
|
|
9047
|
-
|
|
9190
|
+
X0 as WebGL,
|
|
9191
|
+
p0 as WebGLSchema
|
|
9048
9192
|
};
|