@idmui/basic 0.8.1 → 0.8.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 +280 -280
- package/dist/index.umd.cjs +24 -24
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import N from "moment";
|
|
2
2
|
import { openBlock as w, createElementBlock as x, createElementVNode as a, createTextVNode as f, toDisplayString as l, resolveComponent as p2, createVNode as f2, createStaticVNode as I2, createCommentVNode as h1, normalizeClass as b, Fragment as A2, renderList as C2, createBlock as R6 } from "vue";
|
|
3
3
|
import { LngLatHelper as v1, LaneHelper as B2, TropicalHelper as G2 } from "@idm-plugin/geo";
|
|
4
4
|
import { Meteo2Assist as y2 } from "@idm-plugin/meteo";
|
|
@@ -23,7 +23,7 @@ const U1 = (i, t) => {
|
|
|
23
23
|
},
|
|
24
24
|
methods: {
|
|
25
25
|
computeUTCTime(i, t) {
|
|
26
|
-
return
|
|
26
|
+
return N.utc(i).format(t);
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
29
|
}, K6 = { class: "idm-sign-section" }, e3 = { class: "right-section" }, t3 = { class: "tracking-number" };
|
|
@@ -91,7 +91,7 @@ const l3 = {
|
|
|
91
91
|
},
|
|
92
92
|
methods: {
|
|
93
93
|
computeUTCTime(i, t) {
|
|
94
|
-
return
|
|
94
|
+
return N.utc(i).format(t);
|
|
95
95
|
}
|
|
96
96
|
}
|
|
97
97
|
}, s3 = { class: "idm-brand-section" }, o3 = { class: "title-box" }, r3 = { class: "issue-box" };
|
|
@@ -243,7 +243,7 @@ const b3 = {
|
|
|
243
243
|
computeHourLT() {
|
|
244
244
|
return (i) => {
|
|
245
245
|
if (i) {
|
|
246
|
-
const t =
|
|
246
|
+
const t = N.tz(i, this.positionGmt);
|
|
247
247
|
return `${t == null ? void 0 : t.format("HH")}`;
|
|
248
248
|
}
|
|
249
249
|
return "-";
|
|
@@ -252,7 +252,7 @@ const b3 = {
|
|
|
252
252
|
computeUTCTime() {
|
|
253
253
|
return (i, t = "MMM-DD/HHmm[Z], YYYY") => {
|
|
254
254
|
if (i) {
|
|
255
|
-
const e =
|
|
255
|
+
const e = N(i).utc();
|
|
256
256
|
return `${e == null ? void 0 : e.format(t)}`;
|
|
257
257
|
}
|
|
258
258
|
return "-";
|
|
@@ -261,7 +261,7 @@ const b3 = {
|
|
|
261
261
|
computeMMMDDHHmmLT() {
|
|
262
262
|
return (i, t, e = "MMM-DD/HHmm") => {
|
|
263
263
|
if (i) {
|
|
264
|
-
const r =
|
|
264
|
+
const r = N.tz(i, t);
|
|
265
265
|
return `${r == null ? void 0 : r.format(e)}`;
|
|
266
266
|
}
|
|
267
267
|
return "-";
|
|
@@ -270,7 +270,7 @@ const b3 = {
|
|
|
270
270
|
computeHHmmLT() {
|
|
271
271
|
return (i) => {
|
|
272
272
|
if (i) {
|
|
273
|
-
const t =
|
|
273
|
+
const t = N.tz(i, this.positionGmt);
|
|
274
274
|
return `${t == null ? void 0 : t.format("HH:mm")}`;
|
|
275
275
|
}
|
|
276
276
|
return "-";
|
|
@@ -279,7 +279,7 @@ const b3 = {
|
|
|
279
279
|
computeTzTime() {
|
|
280
280
|
return (i, t) => {
|
|
281
281
|
if (i) {
|
|
282
|
-
const e =
|
|
282
|
+
const e = N.tz(i, t);
|
|
283
283
|
return `${e == null ? void 0 : e.format("yyyy-MM-DD")}`;
|
|
284
284
|
}
|
|
285
285
|
return "-";
|
|
@@ -339,16 +339,16 @@ const b3 = {
|
|
|
339
339
|
`<svg t="1740383449285" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="10797" width="200" height="200"><path d="M133.8 579l-44.4-44.4c-18.8-18.8-18.8-49.2 0-67.8L478 78c18.8-18.8 49.2-18.8 67.8 0l388.6 388.6c18.8 18.8 18.8 49.2 0 67.8L890 578.8c-19 19-50 18.6-68.6-0.8L592 337.2V912c0 26.6-21.4 48-48 48h-64c-26.6 0-48-21.4-48-48V337.2L202.4 578.2c-18.6 19.6-49.6 20-68.6 0.8z" fill="${c}" p-id="10798"></path></svg>`
|
|
340
340
|
), h = new Image(64, 64);
|
|
341
341
|
h.src = p, h.onload = async () => {
|
|
342
|
-
var z, v, T,
|
|
343
|
-
const k = (v = (z =
|
|
342
|
+
var z, v, T, B, C, S, D, L, M, E, A, U, I, _, $, R, y, H, P, s, Y, m, J, X, j, l1, e1, t1, O, q, K, a1, s1, o1, W, V, p1, g1, u1, d1, c1, n, r1, m1, x1, H1, S1, A1, C1, N1, B1, T1, E1, P1, W1, I1, Z1, q1, J1, X1, Q1;
|
|
343
|
+
const k = (v = (z = N.tz(d, this.positionGmt)) == null ? void 0 : z.set({ hour: 0, minute: 0, second: 0, millisecond: 0 })) == null ? void 0 : v.format();
|
|
344
344
|
for (let f1 = 0; f1 < t * 24; f1++)
|
|
345
345
|
if (f1 % e === 0) {
|
|
346
|
-
const V1 =
|
|
346
|
+
const V1 = N(k).clone().add(f1, "h").format();
|
|
347
347
|
(T = this.meteogramData) == null || T.dates.push(V1);
|
|
348
|
-
const Q = ((
|
|
348
|
+
const Q = ((B = y2.pickHourly(i, V1)) == null ? void 0 : B[0]) || {};
|
|
349
349
|
(S = this.meteogramData) == null || S.temperatures.push(this.roundPrecision((C = Q == null ? void 0 : Q.weather) == null ? void 0 : C.temp, 0)), (L = this.meteogramData) == null || L.visibility.push(this.roundPrecision((D = Q == null ? void 0 : Q.weather) == null ? void 0 : D.visibility, 1)), (A = this.meteogramData) == null || A.windspeed.push(this.roundPrecision((E = (M = Q.weather) == null ? void 0 : M.wind) == null ? void 0 : E.kts, 1)), (_ = this.meteogramData) == null || _.windGusts.push(this.roundPrecision((I = (U = Q == null ? void 0 : Q.weather) == null ? void 0 : U.wind) == null ? void 0 : I.gusts, 1)), ($ = this.meteogramData) == null || $.windSpeedReferMax.push(16), (H = this.meteogramData) == null || H.sigWaveHeight.push(this.roundPrecision((y = (R = Q == null ? void 0 : Q.wave) == null ? void 0 : R.sig) == null ? void 0 : y.height)), (Y = this.meteogramData) == null || Y.swellHeight.push(this.roundPrecision((s = (P = Q == null ? void 0 : Q.wave) == null ? void 0 : P.swell) == null ? void 0 : s.height)), (m = this.meteogramData) == null || m.waveHeightRefer.push(1.5);
|
|
350
350
|
const o2 = e === 1 ? "sum1Hours" : "sum3Hours";
|
|
351
|
-
if ((j = this.meteogramData) == null || j.precip.push(this.roundPrecision((X = (J = Q == null ? void 0 : Q.weather) == null ? void 0 : J.precip) == null ? void 0 : X[o2], 1)), e < 24 && f1 % 12 === 0 && f1 % 24 !== 0 || e >= 24 && f1 % 24 === 0 ? (e1 = this.meteogramData) == null || e1.xDates.push((l1 =
|
|
351
|
+
if ((j = this.meteogramData) == null || j.precip.push(this.roundPrecision((X = (J = Q == null ? void 0 : Q.weather) == null ? void 0 : J.precip) == null ? void 0 : X[o2], 1)), e < 24 && f1 % 12 === 0 && f1 % 24 !== 0 || e >= 24 && f1 % 24 === 0 ? (e1 = this.meteogramData) == null || e1.xDates.push((l1 = N.tz(V1, this.positionGmt)) == null ? void 0 : l1.format("MMM-DD")) : (t1 = this.meteogramData) == null || t1.xDates.push(""), f1 % r === 0 ? (O = this.meteogramData) == null || O.hours.push(this.computeHourLT(V1)) : (q = this.meteogramData) == null || q.hours.push(""), f1 % 12 === 0 ? ((K = Q.weather) != null && K.url ? (s1 = this.meteogramData) == null || s1.weatherIcons.push({ symbol: "image://" + ((a1 = Q.weather) == null ? void 0 : a1.url), symbolSize: 30 }) : this.meteogramData.weatherIcons.push({ symbol: "image://", symbolSize: 0 }), (W = this.meteogramData) == null || W.weatherNames.push((o1 = Q.weather) == null ? void 0 : o1.name)) : ((V = this.meteogramData) == null || V.weatherIcons.push({ symbol: "image://", symbolSize: 0 }), (p1 = this.meteogramData) == null || p1.weatherNames.push("")), f1 % r === 0 ? (d1 = this.meteogramData) == null || d1.windDir.push((u1 = (g1 = Q.weather) == null ? void 0 : g1.wind) == null ? void 0 : u1.bearing) : (c1 = this.meteogramData) == null || c1.windDir.push(void 0), f1 % r === 0) {
|
|
352
352
|
const D1 = document.createElement("canvas"), R1 = D1.getContext("2d");
|
|
353
353
|
D1.width = h.width, D1.height = h.height;
|
|
354
354
|
const y1 = ((r1 = (n = Q.weather) == null ? void 0 : n.wind) == null ? void 0 : r1.bearing) * (Math.PI / 180);
|
|
@@ -532,7 +532,7 @@ const b3 = {
|
|
|
532
532
|
{
|
|
533
533
|
let b1 = "";
|
|
534
534
|
const s2 = (e2 = F == null ? void 0 : F.find((z1) => z1.seriesName === "Precipitation" || z1.seriesName === "降水")) == null ? void 0 : e2.value;
|
|
535
|
-
return t === 1 ? (s2 < 2 ? b1 = "rgba(172, 210, 255, 1)" : s2 <= 3.9 ? b1 = "rgba(3, 248, 103, 1)" : s2 <= 7.9 ? b1 = "rgba(190, 226, 2, 18)" : s2 > 7.9 ? b1 = "rgba(248, 1, 1, 1)" : b1 = "rgba(172, 210, 255, 1)", `<div style="font-size: 13px;"><strong>${
|
|
535
|
+
return t === 1 ? (s2 < 2 ? b1 = "rgba(172, 210, 255, 1)" : s2 <= 3.9 ? b1 = "rgba(3, 248, 103, 1)" : s2 <= 7.9 ? b1 = "rgba(190, 226, 2, 18)" : s2 > 7.9 ? b1 = "rgba(248, 1, 1, 1)" : b1 = "rgba(172, 210, 255, 1)", `<div style="font-size: 13px;"><strong>${N.tz((t2 = this.meteogramData) == null ? void 0 : t2.dates[L1], this.positionGmt).format("MMM-DD/HHmm[LT]")}</strong></div>
|
|
536
536
|
<div style="display: ${(a2 = this.meteogramData) != null && a2.weatherNames[L1] ? "block" : "none"}; font-size: 13px;">
|
|
537
537
|
<span>${this.locale === "zhHans" ? "天气" : "Weather"} : </span><strong>${(i2 = this.meteogramData) == null ? void 0 : i2.weatherNames[L1]}</strong>
|
|
538
538
|
</div>
|
|
@@ -548,7 +548,7 @@ const b3 = {
|
|
|
548
548
|
<strong>${s2}</strong>
|
|
549
549
|
<span style="padding-left: 3px;">mm</span>
|
|
550
550
|
</div>`) : (((z2 = F[1]) == null ? void 0 : z2.value) < 5 ? b1 = "rgba(172, 210, 255, 1)" : ((k2 = F[1]) == null ? void 0 : k2.value) <= 9.9 ? b1 = "rgba(3, 248, 103, 1)" : ((F2 = F[1]) == null ? void 0 : F2.value) <= 24.9 ? b1 = "rgba(190, 226, 2, 18)" : ((M2 = F[1]) == null ? void 0 : M2.value) > 24.9 ? b1 = "rgba(248, 1, 1, 1)" : b1 = "rgba(172, 210, 255, 1)", `<div style="font-size: 13px;"
|
|
551
|
-
<strong>${
|
|
551
|
+
<strong>${N.tz((_2 = this.meteogramData) == null ? void 0 : _2.dates[L1], this.positionGmt).format("MMM-DD/HHmm[LT]")}</strong>
|
|
552
552
|
</div>
|
|
553
553
|
<div style="display: ${(D2 = this.meteogramData) != null && D2.weatherNames[L1] ? "block" : "none"}; font-size: 13px;">
|
|
554
554
|
<span>${this.locale === "zhHans" ? "天气" : "Weather"} : </span><strong>${(L2 = this.meteogramData) == null ? void 0 : L2.weatherNames[L1]}</strong>
|
|
@@ -958,7 +958,7 @@ const b3 = {
|
|
|
958
958
|
formatter: (F) => {
|
|
959
959
|
var K1, e2, t2, a2, i2, l2;
|
|
960
960
|
const L1 = (K1 = F == null ? void 0 : F[0]) == null ? void 0 : K1.dataIndex;
|
|
961
|
-
return F.find((i1) => i1.seriesType === "scatter") ? !1 : `<div style="font-size: 13px;"><strong>${
|
|
961
|
+
return F.find((i1) => i1.seriesType === "scatter") ? !1 : `<div style="font-size: 13px;"><strong>${N.tz((e2 = this.meteogramData) == null ? void 0 : e2.dates[L1], this.positionGmt).format("MMM-DD/HHmm[LT]")}</strong></div>
|
|
962
962
|
<div style="font-size: 13px;display: ${isNaN((t2 = F.find((i1) => i1.seriesName === "Wind Speed" || i1.seriesName === "风速")) == null ? void 0 : t2.value) ? "none" : "block"}">
|
|
963
963
|
<span style="display:inline-block; height: 10px;width: 10px;border-radius: 50%;background-color: ${this.theme === "dark" ? "rgba(159, 255, 126, 1)" : "rgba(54, 212, 0, 1)"};}"></span>
|
|
964
964
|
<span>${this.locale === "zhHans" ? "风速" : "Wind Speed"} : </span>
|
|
@@ -1218,7 +1218,7 @@ const b3 = {
|
|
|
1218
1218
|
}, document.getElementById("windEchart") && (T = n1.init(document.getElementById("windEchart")), T.setOption(r), T.on("legendselectchanged", (F) => {
|
|
1219
1219
|
F.name === "Wind Speed" && (F.selected["Wind Direction"] = F.selected["Wind Speed"]);
|
|
1220
1220
|
}));
|
|
1221
|
-
let
|
|
1221
|
+
let B;
|
|
1222
1222
|
p = Math.max(
|
|
1223
1223
|
...[...this.meteogramData.sigWaveHeight, ...this.meteogramData.swellHeight, 1.5].filter((F) => typeof F == "number" && !isNaN(F))
|
|
1224
1224
|
), r = {
|
|
@@ -1251,7 +1251,7 @@ const b3 = {
|
|
|
1251
1251
|
formatter: (F) => {
|
|
1252
1252
|
var K1, e2, t2, a2, i2, l2;
|
|
1253
1253
|
const L1 = (K1 = F == null ? void 0 : F[0]) == null ? void 0 : K1.dataIndex;
|
|
1254
|
-
return F.find((i1) => i1.seriesType === "scatter") ? !1 : `<div style="font-size: 13px;"><strong>${
|
|
1254
|
+
return F.find((i1) => i1.seriesType === "scatter") ? !1 : `<div style="font-size: 13px;"><strong>${N.tz((e2 = this.meteogramData) == null ? void 0 : e2.dates[L1], this.positionGmt).format("MMM-DD/HHmm[LT]")}</strong></div>
|
|
1255
1255
|
<div style="font-size: 13px;display: ${isNaN((t2 = F.find((i1) => i1.seriesName === "Sig.Wave Height" || i1.seriesName === "显著浪高")) == null ? void 0 : t2.value) ? "none" : "block"}">
|
|
1256
1256
|
<span style="display:inline-block; height: 10px;width: 10px;border-radius: 50%;background-color: ${this.theme === "dark" ? "rgba(89, 199, 211, 1)" : "rgba(1, 189, 211, 1)"};}"></span>
|
|
1257
1257
|
<span>${this.locale === "zhHans" ? "显著浪高" : "Sig.Wave Height"} : </span>
|
|
@@ -1502,26 +1502,26 @@ const b3 = {
|
|
|
1502
1502
|
symbolSize: 0
|
|
1503
1503
|
}
|
|
1504
1504
|
]
|
|
1505
|
-
}, document.getElementById("waveChart") && (
|
|
1505
|
+
}, document.getElementById("waveChart") && (B = n1.init(document.getElementById("waveChart")), B.setOption(r));
|
|
1506
1506
|
},
|
|
1507
1507
|
disposeEcharts() {
|
|
1508
1508
|
document.getElementById("weatherIconsEchart") && n1.dispose(document.getElementById("weatherIconsEchart")), document.getElementById("weatherConditionEchart") && n1.dispose(document.getElementById("weatherConditionEchart")), document.getElementById("windIconsEchart") && n1.dispose(document.getElementById("windIconsEchart")), document.getElementById("windEchart") && n1.dispose(document.getElementById("windEchart")), document.getElementById("waveChart") && n1.dispose(document.getElementById("waveChart"));
|
|
1509
1509
|
},
|
|
1510
1510
|
initHourlyTableData(i) {
|
|
1511
|
-
var o, c, p, h, g, k, z, v, T,
|
|
1511
|
+
var o, c, p, h, g, k, z, v, T, B, C, S, D, L, M, E, A, U, I, _, $, R, y, H, P, s, Y, m, J, X, j, l1, e1, t1, O, q, K, a1, s1, o1, W, V, p1, g1, u1;
|
|
1512
1512
|
this.hourlyTableData = [];
|
|
1513
|
-
const t = i.forecastDays || 7, e = i.interval || 3, r = i.datetime || ((o = this.reportData) == null ? void 0 : o.etime), d = (p = (c =
|
|
1513
|
+
const t = i.forecastDays || 7, e = i.interval || 3, r = i.datetime || ((o = this.reportData) == null ? void 0 : o.etime), d = (p = (c = N.tz(r, this.positionGmt)) == null ? void 0 : c.set({ hour: 0, minute: 0, second: 0, millisecond: 0 })) == null ? void 0 : p.format();
|
|
1514
1514
|
for (let d1 = 0; d1 < t * 24; d1++)
|
|
1515
1515
|
if (d1 % e === 0) {
|
|
1516
1516
|
let c1;
|
|
1517
|
-
if (c1 =
|
|
1517
|
+
if (c1 = N.tz(d, this.positionGmt).clone().add(d1, "h").format(), c1) {
|
|
1518
1518
|
const n = ((h = y2.pickHourly(i, c1)) == null ? void 0 : h[0]) || {}, r1 = this.roundPrecision((k = (g = n == null ? void 0 : n.weather) == null ? void 0 : g.precip) == null ? void 0 : k[`sum${e}Hours`], 1);
|
|
1519
1519
|
this.hourlyTableData.push({
|
|
1520
1520
|
localDate: this.computeMMMDDHHmmLT(c1, this.positionGmt),
|
|
1521
1521
|
temp: this.roundPrecision((z = n == null ? void 0 : n.weather) == null ? void 0 : z.temp, 0) ?? "-",
|
|
1522
1522
|
precipSum: r1 ?? "-",
|
|
1523
1523
|
visibility: this.roundPrecision((v = n == null ? void 0 : n.weather) == null ? void 0 : v.visibility, 1) ?? "-",
|
|
1524
|
-
windSpeed: this.roundPrecision((
|
|
1524
|
+
windSpeed: this.roundPrecision((B = (T = n == null ? void 0 : n.weather) == null ? void 0 : T.wind) == null ? void 0 : B.kts, 1) ?? "-",
|
|
1525
1525
|
windDir: (S = (C = n == null ? void 0 : n.weather) == null ? void 0 : C.wind) == null ? void 0 : S.direction,
|
|
1526
1526
|
windBearing: (L = (D = n == null ? void 0 : n.weather) == null ? void 0 : D.wind) == null ? void 0 : L.bearing,
|
|
1527
1527
|
windBF: ((E = (M = n == null ? void 0 : n.weather) == null ? void 0 : M.wind) == null ? void 0 : E.scale) ?? "-",
|
|
@@ -1665,295 +1665,295 @@ const b3 = {
|
|
|
1665
1665
|
rowspan: "1",
|
|
1666
1666
|
colspan: "1",
|
|
1667
1667
|
class: "border"
|
|
1668
|
-
},
|
|
1668
|
+
}, e0 = {
|
|
1669
1669
|
rowspan: "1",
|
|
1670
1670
|
colspan: "1",
|
|
1671
1671
|
class: "border"
|
|
1672
|
-
},
|
|
1672
|
+
}, t0 = {
|
|
1673
1673
|
rowspan: "1",
|
|
1674
1674
|
colspan: "1",
|
|
1675
1675
|
class: "border",
|
|
1676
1676
|
style: { width: "80px" }
|
|
1677
|
-
},
|
|
1677
|
+
}, a0 = {
|
|
1678
1678
|
rowspan: "1",
|
|
1679
1679
|
colspan: "1",
|
|
1680
1680
|
class: "border",
|
|
1681
1681
|
style: { width: "70px" }
|
|
1682
|
-
},
|
|
1682
|
+
}, i0 = {
|
|
1683
1683
|
rowspan: "1",
|
|
1684
1684
|
colspan: "1",
|
|
1685
1685
|
class: "border",
|
|
1686
1686
|
style: { width: "50px" }
|
|
1687
|
-
},
|
|
1687
|
+
}, l0 = {
|
|
1688
1688
|
rowspan: "1",
|
|
1689
1689
|
colspan: "1",
|
|
1690
1690
|
class: "border",
|
|
1691
1691
|
style: { width: "45px" }
|
|
1692
|
-
},
|
|
1692
|
+
}, s0 = {
|
|
1693
1693
|
rowspan: "1",
|
|
1694
1694
|
colspan: "1",
|
|
1695
1695
|
class: "border",
|
|
1696
1696
|
style: { width: "30px" }
|
|
1697
|
-
},
|
|
1697
|
+
}, o0 = {
|
|
1698
1698
|
rowspan: "1",
|
|
1699
1699
|
colspan: "1",
|
|
1700
1700
|
class: "border",
|
|
1701
1701
|
style: { width: "60px" }
|
|
1702
|
-
},
|
|
1702
|
+
}, r0 = {
|
|
1703
1703
|
rowspan: "1",
|
|
1704
1704
|
colspan: "1",
|
|
1705
1705
|
class: "border",
|
|
1706
1706
|
style: { width: "50px" }
|
|
1707
|
-
},
|
|
1707
|
+
}, n0 = {
|
|
1708
1708
|
rowspan: "1",
|
|
1709
1709
|
colspan: "1",
|
|
1710
1710
|
class: "border",
|
|
1711
1711
|
style: { width: "45px" }
|
|
1712
|
-
},
|
|
1712
|
+
}, d0 = {
|
|
1713
1713
|
rowspan: "1",
|
|
1714
1714
|
colspan: "1",
|
|
1715
1715
|
class: "border",
|
|
1716
1716
|
style: { width: "45px" }
|
|
1717
|
-
},
|
|
1717
|
+
}, c0 = {
|
|
1718
1718
|
rowspan: "1",
|
|
1719
1719
|
colspan: "1",
|
|
1720
1720
|
class: "border",
|
|
1721
1721
|
style: { width: "50px" }
|
|
1722
|
-
},
|
|
1722
|
+
}, h0 = {
|
|
1723
1723
|
rowspan: "1",
|
|
1724
1724
|
colspan: "1",
|
|
1725
1725
|
class: "border",
|
|
1726
1726
|
style: { width: "45px" }
|
|
1727
|
-
},
|
|
1727
|
+
}, m0 = {
|
|
1728
1728
|
rowspan: "1",
|
|
1729
1729
|
colspan: "1",
|
|
1730
1730
|
class: "border",
|
|
1731
1731
|
style: { width: "45px" }
|
|
1732
|
-
},
|
|
1732
|
+
}, p0 = {
|
|
1733
1733
|
rowspan: "1",
|
|
1734
1734
|
colspan: "1",
|
|
1735
1735
|
class: "border",
|
|
1736
1736
|
style: { width: "50px" }
|
|
1737
|
-
},
|
|
1737
|
+
}, g0 = {
|
|
1738
1738
|
rowspan: "1",
|
|
1739
1739
|
colspan: "1",
|
|
1740
1740
|
class: "border",
|
|
1741
1741
|
style: { width: "45px" }
|
|
1742
|
-
},
|
|
1742
|
+
}, u0 = {
|
|
1743
1743
|
rowspan: "1",
|
|
1744
1744
|
colspan: "1",
|
|
1745
1745
|
class: "border",
|
|
1746
1746
|
style: { width: "45px" }
|
|
1747
|
-
},
|
|
1747
|
+
}, f0 = {
|
|
1748
1748
|
rowspan: "1",
|
|
1749
1749
|
colspan: "1",
|
|
1750
1750
|
class: "border",
|
|
1751
1751
|
style: { width: "50px" }
|
|
1752
|
-
},
|
|
1752
|
+
}, y0 = {
|
|
1753
1753
|
rowspan: "1",
|
|
1754
1754
|
colspan: "1",
|
|
1755
1755
|
class: "border",
|
|
1756
1756
|
style: { width: "45px" }
|
|
1757
|
-
},
|
|
1757
|
+
}, b0 = {
|
|
1758
1758
|
rowspan: "1",
|
|
1759
1759
|
colspan: "1",
|
|
1760
1760
|
class: "border",
|
|
1761
1761
|
style: { width: "70px" }
|
|
1762
|
-
},
|
|
1762
|
+
}, w0 = {
|
|
1763
1763
|
rowspan: "1",
|
|
1764
1764
|
colspan: "1",
|
|
1765
1765
|
class: "border",
|
|
1766
1766
|
style: { width: "85px" }
|
|
1767
|
-
},
|
|
1767
|
+
}, x0 = {
|
|
1768
1768
|
rowspan: "1",
|
|
1769
1769
|
colspan: "1",
|
|
1770
1770
|
class: "border",
|
|
1771
1771
|
style: { width: "90px" }
|
|
1772
|
-
},
|
|
1772
|
+
}, v0 = {
|
|
1773
1773
|
rowspan: "1",
|
|
1774
1774
|
colspan: "1",
|
|
1775
1775
|
class: "border",
|
|
1776
1776
|
style: { width: "50px" }
|
|
1777
|
-
},
|
|
1777
|
+
}, z0 = {
|
|
1778
1778
|
rowspan: "1",
|
|
1779
1779
|
colspan: "1",
|
|
1780
1780
|
class: "border",
|
|
1781
1781
|
style: { width: "80px" }
|
|
1782
|
-
},
|
|
1782
|
+
}, k0 = {
|
|
1783
1783
|
rowspan: "1",
|
|
1784
1784
|
colspan: "1",
|
|
1785
1785
|
class: "border",
|
|
1786
1786
|
style: { width: "70px" }
|
|
1787
|
-
},
|
|
1787
|
+
}, F0 = {
|
|
1788
1788
|
rowspan: "1",
|
|
1789
1789
|
colspan: "1",
|
|
1790
1790
|
class: "border",
|
|
1791
1791
|
style: { width: "50px", "font-size": "11px", "text-align": "right", "padding-right": "1px" }
|
|
1792
|
-
},
|
|
1792
|
+
}, M0 = ["src"], _0 = { key: 1 }, D0 = {
|
|
1793
1793
|
rowspan: "1",
|
|
1794
1794
|
colspan: "1",
|
|
1795
1795
|
class: "border",
|
|
1796
1796
|
style: { width: "45px" }
|
|
1797
|
-
},
|
|
1797
|
+
}, L0 = {
|
|
1798
1798
|
rowspan: "1",
|
|
1799
1799
|
colspan: "1",
|
|
1800
1800
|
class: "border",
|
|
1801
1801
|
style: { width: "60px" }
|
|
1802
|
-
},
|
|
1802
|
+
}, H0 = {
|
|
1803
1803
|
rowspan: "1",
|
|
1804
1804
|
colspan: "1",
|
|
1805
1805
|
class: "border",
|
|
1806
1806
|
style: { width: "50px", "font-size": "11px", "text-align": "right", "padding-right": "1px" }
|
|
1807
|
-
},
|
|
1807
|
+
}, S0 = ["src"], A0 = { key: 1 }, C0 = {
|
|
1808
1808
|
rowspan: "1",
|
|
1809
1809
|
colspan: "1",
|
|
1810
1810
|
class: "border",
|
|
1811
1811
|
style: { width: "45px" }
|
|
1812
|
-
},
|
|
1812
|
+
}, N0 = {
|
|
1813
1813
|
rowspan: "1",
|
|
1814
1814
|
colspan: "1",
|
|
1815
1815
|
class: "border",
|
|
1816
1816
|
style: { width: "45px" }
|
|
1817
|
-
},
|
|
1817
|
+
}, B0 = {
|
|
1818
1818
|
rowspan: "1",
|
|
1819
1819
|
colspan: "1",
|
|
1820
1820
|
class: "border",
|
|
1821
1821
|
style: { width: "50px", "font-size": "11px", "text-align": "right", "padding-right": "1px" }
|
|
1822
|
-
},
|
|
1822
|
+
}, T0 = ["src"], E0 = { key: 1 }, P0 = {
|
|
1823
1823
|
rowspan: "1",
|
|
1824
1824
|
colspan: "1",
|
|
1825
1825
|
class: "border",
|
|
1826
1826
|
style: { width: "45px" }
|
|
1827
|
-
},
|
|
1827
|
+
}, W0 = {
|
|
1828
1828
|
rowspan: "1",
|
|
1829
1829
|
colspan: "1",
|
|
1830
1830
|
class: "border",
|
|
1831
1831
|
style: { width: "50px", "font-size": "11px", "text-align": "right", "padding-right": "1px" }
|
|
1832
|
-
},
|
|
1832
|
+
}, I0 = ["src"], O0 = { key: 1 }, V0 = {
|
|
1833
1833
|
rowspan: "1",
|
|
1834
1834
|
colspan: "1",
|
|
1835
1835
|
class: "border",
|
|
1836
1836
|
style: { width: "45px" }
|
|
1837
|
-
},
|
|
1837
|
+
}, R0 = {
|
|
1838
1838
|
rowspan: "1",
|
|
1839
1839
|
colspan: "1",
|
|
1840
1840
|
class: "border",
|
|
1841
1841
|
style: { width: "50px", "font-size": "11px", "text-align": "right", "padding-right": "1px" }
|
|
1842
|
-
},
|
|
1842
|
+
}, G0 = ["src"], $0 = { key: 1 }, Y0 = {
|
|
1843
1843
|
rowspan: "1",
|
|
1844
1844
|
colspan: "1",
|
|
1845
1845
|
class: "border",
|
|
1846
1846
|
style: { width: "45px" }
|
|
1847
|
-
},
|
|
1847
|
+
}, j0 = {
|
|
1848
1848
|
rowspan: "1",
|
|
1849
1849
|
colspan: "1",
|
|
1850
1850
|
class: "border",
|
|
1851
1851
|
style: { width: "70px" }
|
|
1852
|
-
},
|
|
1852
|
+
}, U0 = {
|
|
1853
1853
|
rowspan: "1",
|
|
1854
1854
|
colspan: "1",
|
|
1855
1855
|
class: "border",
|
|
1856
1856
|
style: { width: "85px" }
|
|
1857
|
-
},
|
|
1857
|
+
}, Z0 = {
|
|
1858
1858
|
key: 1,
|
|
1859
1859
|
class: "table-section",
|
|
1860
1860
|
style: { "margin-top": "20px", "page-break-inside": "avoid" }
|
|
1861
|
-
},
|
|
1861
|
+
}, q0 = {
|
|
1862
1862
|
key: 0,
|
|
1863
1863
|
class: "card",
|
|
1864
1864
|
style: { "min-height": "220px" }
|
|
1865
|
-
},
|
|
1865
|
+
}, J0 = { class: "date" }, X0 = {
|
|
1866
1866
|
class: "",
|
|
1867
1867
|
style: { "font-size": "16px", "font-weight": "500" }
|
|
1868
|
-
},
|
|
1868
|
+
}, Q0 = {
|
|
1869
1869
|
rowspan: "2",
|
|
1870
1870
|
colspan: "1",
|
|
1871
1871
|
class: "border",
|
|
1872
1872
|
style: { width: "126px" }
|
|
1873
|
-
},
|
|
1873
|
+
}, K0 = {
|
|
1874
1874
|
rowspan: "1",
|
|
1875
1875
|
colspan: "3",
|
|
1876
1876
|
class: "border"
|
|
1877
|
-
},
|
|
1877
|
+
}, ee = {
|
|
1878
1878
|
rowspan: "1",
|
|
1879
1879
|
colspan: "3",
|
|
1880
1880
|
class: "border"
|
|
1881
|
-
},
|
|
1881
|
+
}, te = {
|
|
1882
1882
|
rowspan: "1",
|
|
1883
1883
|
colspan: "3",
|
|
1884
1884
|
class: "border"
|
|
1885
|
-
},
|
|
1885
|
+
}, ae = {
|
|
1886
1886
|
rowspan: "1",
|
|
1887
1887
|
colspan: "3",
|
|
1888
1888
|
class: "border"
|
|
1889
|
-
},
|
|
1889
|
+
}, ie = {
|
|
1890
1890
|
rowspan: "1",
|
|
1891
1891
|
colspan: "1",
|
|
1892
1892
|
class: "border",
|
|
1893
1893
|
style: { width: "85px" }
|
|
1894
|
-
},
|
|
1894
|
+
}, le = {
|
|
1895
1895
|
rowspan: "1",
|
|
1896
1896
|
colspan: "1",
|
|
1897
1897
|
class: "border",
|
|
1898
1898
|
style: { width: "85px" }
|
|
1899
|
-
},
|
|
1899
|
+
}, se = {
|
|
1900
1900
|
rowspan: "1",
|
|
1901
1901
|
colspan: "1",
|
|
1902
1902
|
class: "border",
|
|
1903
1903
|
style: { width: "85px" }
|
|
1904
|
-
},
|
|
1904
|
+
}, oe = {
|
|
1905
1905
|
rowspan: "1",
|
|
1906
1906
|
colspan: "1",
|
|
1907
1907
|
class: "border",
|
|
1908
1908
|
style: { width: "85px" }
|
|
1909
|
-
},
|
|
1909
|
+
}, re = {
|
|
1910
1910
|
rowspan: "1",
|
|
1911
1911
|
colspan: "1",
|
|
1912
1912
|
class: "border",
|
|
1913
1913
|
style: { width: "85px" }
|
|
1914
|
-
},
|
|
1914
|
+
}, ne = {
|
|
1915
1915
|
rowspan: "1",
|
|
1916
1916
|
colspan: "1",
|
|
1917
1917
|
class: "border",
|
|
1918
1918
|
style: { width: "85px" }
|
|
1919
|
-
},
|
|
1919
|
+
}, de = {
|
|
1920
1920
|
rowspan: "1",
|
|
1921
1921
|
colspan: "1",
|
|
1922
1922
|
class: "border",
|
|
1923
1923
|
style: { width: "85px" }
|
|
1924
|
-
},
|
|
1924
|
+
}, ce = {
|
|
1925
1925
|
rowspan: "1",
|
|
1926
1926
|
colspan: "1",
|
|
1927
1927
|
class: "border",
|
|
1928
1928
|
style: { width: "85px" }
|
|
1929
|
-
},
|
|
1929
|
+
}, he = {
|
|
1930
1930
|
rowspan: "1",
|
|
1931
1931
|
colspan: "1",
|
|
1932
1932
|
class: "border",
|
|
1933
1933
|
style: { width: "85px" }
|
|
1934
|
-
},
|
|
1934
|
+
}, me = {
|
|
1935
1935
|
rowspan: "1",
|
|
1936
1936
|
colspan: "1",
|
|
1937
1937
|
class: "border",
|
|
1938
1938
|
style: { width: "85px" }
|
|
1939
|
-
},
|
|
1939
|
+
}, pe = {
|
|
1940
1940
|
rowspan: "1",
|
|
1941
1941
|
colspan: "1",
|
|
1942
1942
|
class: "border",
|
|
1943
1943
|
style: { width: "85px" }
|
|
1944
|
-
},
|
|
1944
|
+
}, ge = {
|
|
1945
1945
|
rowspan: "1",
|
|
1946
1946
|
colspan: "1",
|
|
1947
1947
|
class: "border",
|
|
1948
1948
|
style: { width: "85px" }
|
|
1949
|
-
},
|
|
1949
|
+
}, ue = { style: { height: "auto" } }, fe = {
|
|
1950
1950
|
rowspan: "1",
|
|
1951
1951
|
colspan: "1",
|
|
1952
1952
|
class: "border",
|
|
1953
1953
|
style: { width: "126px" }
|
|
1954
1954
|
};
|
|
1955
|
-
function
|
|
1956
|
-
var c, p, h, g, k, z, v, T,
|
|
1955
|
+
function ye(i, t, e, r, d, o) {
|
|
1956
|
+
var c, p, h, g, k, z, v, T, B, C, S, D, L, M, E, A, U, I, _, $, R, y, H, P;
|
|
1957
1957
|
return w(), x("div", {
|
|
1958
1958
|
class: b(["idm-spot-forecast-report", e.theme === "dark" ? "dark" : "light"])
|
|
1959
1959
|
}, [
|
|
@@ -1977,7 +1977,7 @@ function y0(i, t, e, r, d, o) {
|
|
|
1977
1977
|
a("span", {
|
|
1978
1978
|
class: b(["label label-color", e.theme === "dark" ? "dark" : "light"])
|
|
1979
1979
|
}, l(e.locale === "zhHans" ? "预报天数" : "Forecast Days") + ":", 3),
|
|
1980
|
-
a("span", _3, l((
|
|
1980
|
+
a("span", _3, l((B = e.reportData) == null ? void 0 : B.forecastDays) + " " + l(e.locale === "zhHans" ? "天" : "Days"), 1)
|
|
1981
1981
|
]))
|
|
1982
1982
|
]),
|
|
1983
1983
|
a("div", D3, [
|
|
@@ -2059,7 +2059,7 @@ function y0(i, t, e, r, d, o) {
|
|
|
2059
2059
|
a("th", X3, l(e.locale === "zhHans" ? "显浪" : "Sig.wave"), 1),
|
|
2060
2060
|
a("th", Q3, l(e.locale === "zhHans" ? "洋流" : "Current"), 1),
|
|
2061
2061
|
a("th", K3, l(e.locale === "zhHans" ? "海面" : "Sea Level"), 1),
|
|
2062
|
-
a("th",
|
|
2062
|
+
a("th", e0, l(e.locale === "zhHans" ? "海表" : "Sea Surface"), 1)
|
|
2063
2063
|
], 2),
|
|
2064
2064
|
a("tr", {
|
|
2065
2065
|
class: b(["hour", e.theme === "dark" ? "dark" : "light"])
|
|
@@ -2070,73 +2070,73 @@ function y0(i, t, e, r, d, o) {
|
|
|
2070
2070
|
class: "border",
|
|
2071
2071
|
style: { width: "50px" }
|
|
2072
2072
|
}, "°C", -1)),
|
|
2073
|
-
a("th",
|
|
2073
|
+
a("th", t0, [
|
|
2074
2074
|
f(l(e.locale === "zhHans" ? "累计" : "Acc"), 1),
|
|
2075
2075
|
t[3] || (t[3] = a("br", null, null, -1)),
|
|
2076
2076
|
t[4] || (t[4] = f("(mm)", -1))
|
|
2077
2077
|
]),
|
|
2078
|
-
a("th",
|
|
2078
|
+
a("th", a0, [
|
|
2079
2079
|
f(l(e.locale === "zhHans" ? "距离" : "Dist"), 1),
|
|
2080
2080
|
t[5] || (t[5] = a("br", null, null, -1)),
|
|
2081
2081
|
t[6] || (t[6] = f("(nm)", -1))
|
|
2082
2082
|
]),
|
|
2083
|
-
a("th",
|
|
2084
|
-
a("th",
|
|
2083
|
+
a("th", i0, l(e.locale === "zhHans" ? "方向" : "Dir"), 1),
|
|
2084
|
+
a("th", l0, [
|
|
2085
2085
|
f(l(e.locale === "zhHans" ? "速度" : "Spd"), 1),
|
|
2086
2086
|
t[7] || (t[7] = a("br", null, null, -1)),
|
|
2087
2087
|
t[8] || (t[8] = f("(kts)", -1))
|
|
2088
2088
|
]),
|
|
2089
|
-
a("th",
|
|
2090
|
-
a("th",
|
|
2089
|
+
a("th", s0, l(e.locale === "zhHans" ? "等级" : "BF"), 1),
|
|
2090
|
+
a("th", o0, [
|
|
2091
2091
|
f(l(e.locale === "zhHans" ? "阵风" : "Gusts"), 1),
|
|
2092
2092
|
t[9] || (t[9] = a("br", null, null, -1)),
|
|
2093
2093
|
t[10] || (t[10] = f("(kts)", -1))
|
|
2094
2094
|
]),
|
|
2095
|
-
a("th",
|
|
2096
|
-
a("th",
|
|
2095
|
+
a("th", r0, l(e.locale === "zhHans" ? "方向" : "Dir"), 1),
|
|
2096
|
+
a("th", n0, [
|
|
2097
2097
|
f(l(e.locale === "zhHans" ? "高度" : "Hgt"), 1),
|
|
2098
2098
|
t[11] || (t[11] = a("br", null, null, -1)),
|
|
2099
2099
|
t[12] || (t[12] = f("(m)", -1))
|
|
2100
2100
|
]),
|
|
2101
|
-
a("th",
|
|
2101
|
+
a("th", d0, [
|
|
2102
2102
|
f(l(e.locale === "zhHans" ? "周期" : "Prd"), 1),
|
|
2103
2103
|
t[13] || (t[13] = a("br", null, null, -1)),
|
|
2104
2104
|
t[14] || (t[14] = f("(s)", -1))
|
|
2105
2105
|
]),
|
|
2106
|
-
a("th",
|
|
2107
|
-
a("th",
|
|
2106
|
+
a("th", c0, l(e.locale === "zhHans" ? "方向" : "Dir"), 1),
|
|
2107
|
+
a("th", h0, [
|
|
2108
2108
|
f(l(e.locale === "zhHans" ? "高度" : "Hgt"), 1),
|
|
2109
2109
|
t[15] || (t[15] = a("br", null, null, -1)),
|
|
2110
2110
|
t[16] || (t[16] = f("(m)", -1))
|
|
2111
2111
|
]),
|
|
2112
|
-
a("th",
|
|
2112
|
+
a("th", m0, [
|
|
2113
2113
|
f(l(e.locale === "zhHans" ? "周期" : "Prd"), 1),
|
|
2114
2114
|
t[17] || (t[17] = a("br", null, null, -1)),
|
|
2115
2115
|
t[18] || (t[18] = f("(s)", -1))
|
|
2116
2116
|
]),
|
|
2117
|
-
a("th",
|
|
2118
|
-
a("th",
|
|
2117
|
+
a("th", p0, l(e.locale === "zhHans" ? "方向" : "Dir"), 1),
|
|
2118
|
+
a("th", g0, [
|
|
2119
2119
|
f(l(e.locale === "zhHans" ? "高度" : "Hgt"), 1),
|
|
2120
2120
|
t[19] || (t[19] = a("br", null, null, -1)),
|
|
2121
2121
|
t[20] || (t[20] = f("(m)", -1))
|
|
2122
2122
|
]),
|
|
2123
|
-
a("th",
|
|
2123
|
+
a("th", u0, [
|
|
2124
2124
|
f(l(e.locale === "zhHans" ? "周期" : "Prd"), 1),
|
|
2125
2125
|
t[21] || (t[21] = a("br", null, null, -1)),
|
|
2126
2126
|
t[22] || (t[22] = f("(s)", -1))
|
|
2127
2127
|
]),
|
|
2128
|
-
a("th",
|
|
2129
|
-
a("th",
|
|
2128
|
+
a("th", f0, l(e.locale === "zhHans" ? "方向" : "Dir"), 1),
|
|
2129
|
+
a("th", y0, [
|
|
2130
2130
|
f(l(e.locale === "zhHans" ? "速度" : "Spd"), 1),
|
|
2131
2131
|
t[23] || (t[23] = a("br", null, null, -1)),
|
|
2132
2132
|
t[24] || (t[24] = f("(kts)", -1))
|
|
2133
2133
|
]),
|
|
2134
|
-
a("th",
|
|
2134
|
+
a("th", b0, [
|
|
2135
2135
|
f(l(e.locale === "zhHans" ? "高度" : "Hgt"), 1),
|
|
2136
2136
|
t[25] || (t[25] = a("br", null, null, -1)),
|
|
2137
2137
|
t[26] || (t[26] = f("(m)", -1))
|
|
2138
2138
|
]),
|
|
2139
|
-
a("th",
|
|
2139
|
+
a("th", w0, [
|
|
2140
2140
|
f(l(e.locale === "zhHans" ? "温度" : "Temp"), 1),
|
|
2141
2141
|
t[27] || (t[27] = a("br", null, null, -1)),
|
|
2142
2142
|
t[28] || (t[28] = f("(°C)", -1))
|
|
@@ -2150,50 +2150,50 @@ function y0(i, t, e, r, d, o) {
|
|
|
2150
2150
|
key: Math.random() + s.localDate,
|
|
2151
2151
|
class: b(["text border-bottom", s.windBF >= 4 || s.swellHeight > 1.5 || s.sigWaveHeight > 1.5 ? "bg-gray" : "", e.theme === "dark" ? "dark" : "light"])
|
|
2152
2152
|
}, [
|
|
2153
|
-
a("td",
|
|
2153
|
+
a("td", x0, [
|
|
2154
2154
|
a("div", null, l(s.localDate), 1)
|
|
2155
2155
|
]),
|
|
2156
|
-
a("td",
|
|
2156
|
+
a("td", v0, [
|
|
2157
2157
|
a("div", null, l(s.temp), 1)
|
|
2158
2158
|
]),
|
|
2159
|
-
a("td",
|
|
2160
|
-
a("td",
|
|
2161
|
-
a("td",
|
|
2159
|
+
a("td", z0, l(s.precipSum), 1),
|
|
2160
|
+
a("td", k0, l(s.visibility), 1),
|
|
2161
|
+
a("td", F0, [
|
|
2162
2162
|
f(l(s.windDir) + " ", 1),
|
|
2163
2163
|
!isNaN(s.windBearing) && s.windDir ? (w(), x("img", {
|
|
2164
2164
|
key: 0,
|
|
2165
2165
|
class: "iconfont icon",
|
|
2166
2166
|
src: `data:image/svg+xml;base64,${o.getRotatedWindArrowBase64(s.windBearing, this.theme === "dark" ? "rgba(159, 255, 126, 1)" : "rgba(54, 212, 0, 1)")}`,
|
|
2167
2167
|
style: { width: "11px", height: "11px", display: "inline-block" }
|
|
2168
|
-
}, null, 8,
|
|
2168
|
+
}, null, 8, M0)) : (w(), x("span", _0, "-"))
|
|
2169
2169
|
]),
|
|
2170
|
-
a("td",
|
|
2170
|
+
a("td", D0, l(s.windSpeed), 1),
|
|
2171
2171
|
a("td", {
|
|
2172
2172
|
rowspan: "1",
|
|
2173
2173
|
colspan: "1",
|
|
2174
2174
|
class: b(["border", s.windBF >= 4 ? "bg-yellow" : "", e.theme === "dark" ? "dark" : "light"]),
|
|
2175
2175
|
style: { width: "30px" }
|
|
2176
2176
|
}, l(s.windBF), 3),
|
|
2177
|
-
a("td",
|
|
2178
|
-
a("td",
|
|
2177
|
+
a("td", L0, l(s.windGusts), 1),
|
|
2178
|
+
a("td", H0, [
|
|
2179
2179
|
f(l(s.windWaveDir) + " ", 1),
|
|
2180
2180
|
!isNaN(s.windWaveBearing) && s.windWaveDir ? (w(), x("img", {
|
|
2181
2181
|
key: 0,
|
|
2182
2182
|
class: "iconfont icon",
|
|
2183
2183
|
src: `data:image/svg+xml;base64,${o.getRotatedWaveArrowBase64(s.windWaveBearing, (this.theme === "dark", "#7cc7b3"))}`,
|
|
2184
2184
|
style: { width: "11px", height: "11px", display: "inline-block" }
|
|
2185
|
-
}, null, 8,
|
|
2185
|
+
}, null, 8, S0)) : (w(), x("span", A0, "-"))
|
|
2186
2186
|
]),
|
|
2187
|
-
a("td",
|
|
2188
|
-
a("td",
|
|
2189
|
-
a("td",
|
|
2187
|
+
a("td", C0, l(s.windWaveHeight), 1),
|
|
2188
|
+
a("td", N0, l(s.windWavePeriod), 1),
|
|
2189
|
+
a("td", B0, [
|
|
2190
2190
|
f(l(s.swellDir) + " ", 1),
|
|
2191
2191
|
!isNaN(s.swellBearing) && s.swellDir ? (w(), x("img", {
|
|
2192
2192
|
key: 0,
|
|
2193
2193
|
class: "iconfont icon",
|
|
2194
2194
|
src: `data:image/svg+xml;base64,${o.getRotatedWaveArrowBase64(s.swellBearing, this.theme === "dark" ? "rgb(17, 245, 211)" : "rgba(0, 230, 194, 1)")}`,
|
|
2195
2195
|
style: { width: "11px", height: "11px", display: "inline-block" }
|
|
2196
|
-
}, null, 8,
|
|
2196
|
+
}, null, 8, T0)) : (w(), x("span", E0, "-"))
|
|
2197
2197
|
]),
|
|
2198
2198
|
a("td", {
|
|
2199
2199
|
rowspan: "1",
|
|
@@ -2201,15 +2201,15 @@ function y0(i, t, e, r, d, o) {
|
|
|
2201
2201
|
class: b(["border", s.swellHeight > 1.5 ? "bg-yellow" : "", e.theme === "dark" ? "dark" : "light"]),
|
|
2202
2202
|
style: { width: "45px" }
|
|
2203
2203
|
}, l(s.swellHeight), 3),
|
|
2204
|
-
a("td",
|
|
2205
|
-
a("td",
|
|
2204
|
+
a("td", P0, l(s.swellPeriod), 1),
|
|
2205
|
+
a("td", W0, [
|
|
2206
2206
|
f(l(s.sigWaveDir) + " ", 1),
|
|
2207
2207
|
!isNaN(s.sigWaveBearing) && s.sigWaveDir ? (w(), x("img", {
|
|
2208
2208
|
key: 0,
|
|
2209
2209
|
class: "iconfont icon",
|
|
2210
2210
|
src: `data:image/svg+xml;base64,${o.getRotatedWaveArrowBase64(s.sigWaveBearing, this.theme === "dark" ? "rgba(89, 199, 211, 1)" : "rgba(1, 189, 211, 1)")}`,
|
|
2211
2211
|
style: { width: "11px", height: "11px", display: "inline-block" }
|
|
2212
|
-
}, null, 8,
|
|
2212
|
+
}, null, 8, I0)) : (w(), x("span", O0, "-"))
|
|
2213
2213
|
]),
|
|
2214
2214
|
a("td", {
|
|
2215
2215
|
rowspan: "1",
|
|
@@ -2217,25 +2217,25 @@ function y0(i, t, e, r, d, o) {
|
|
|
2217
2217
|
class: b(["border", s.sigWaveHeight > 1.5 ? "bg-yellow" : "", e.theme === "dark" ? "dark" : "light"]),
|
|
2218
2218
|
style: { width: "45px" }
|
|
2219
2219
|
}, l(s.sigWaveHeight), 3),
|
|
2220
|
-
a("td",
|
|
2221
|
-
a("td",
|
|
2220
|
+
a("td", V0, l(s.sigWavePeriod), 1),
|
|
2221
|
+
a("td", R0, [
|
|
2222
2222
|
f(l(s.currentDir) + " ", 1),
|
|
2223
2223
|
!isNaN(s.currentBearing) && s.currentDir ? (w(), x("img", {
|
|
2224
2224
|
key: 0,
|
|
2225
2225
|
class: "iconfont icon",
|
|
2226
2226
|
src: `data:image/svg+xml;base64,${o.getRotatedWaveArrowBase64(s.currentBearing, this.theme === "dark" ? "rgba(220, 115, 255, 1)" : "rgba(178, 51, 220, 1)")}`,
|
|
2227
2227
|
style: { width: "11px", height: "11px", display: "inline-block" }
|
|
2228
|
-
}, null, 8,
|
|
2228
|
+
}, null, 8, G0)) : (w(), x("span", $0, "-"))
|
|
2229
2229
|
]),
|
|
2230
|
-
a("td",
|
|
2231
|
-
a("td",
|
|
2232
|
-
a("td",
|
|
2230
|
+
a("td", Y0, l(s.currentSpd), 1),
|
|
2231
|
+
a("td", j0, l(s.seaLevel), 1),
|
|
2232
|
+
a("td", U0, l(s.seaSurfaceTemp), 1)
|
|
2233
2233
|
], 2))), 128))
|
|
2234
2234
|
], 2)
|
|
2235
2235
|
], 2)
|
|
2236
2236
|
]))
|
|
2237
2237
|
]),
|
|
2238
|
-
e.showTide ? (w(), x("div",
|
|
2238
|
+
e.showTide ? (w(), x("div", Z0, [
|
|
2239
2239
|
e.tideLoading ? e.tideLoading ? (w(), x("div", {
|
|
2240
2240
|
key: 1,
|
|
2241
2241
|
class: b(["loading-box", e.theme === "dark" ? "dark" : "light"])
|
|
@@ -2247,9 +2247,9 @@ function y0(i, t, e, r, d, o) {
|
|
|
2247
2247
|
])], 2)) : (w(), x("div", {
|
|
2248
2248
|
key: 2,
|
|
2249
2249
|
class: b(["loading-box", e.theme === "dark" ? "dark" : "light"])
|
|
2250
|
-
}, l(e.locale === "zhHans" ? "暂无数据" : "No Data"), 3)) : (w(), x("div",
|
|
2251
|
-
a("div",
|
|
2252
|
-
a("div",
|
|
2250
|
+
}, l(e.locale === "zhHans" ? "暂无数据" : "No Data"), 3)) : (w(), x("div", q0, [
|
|
2251
|
+
a("div", J0, [
|
|
2252
|
+
a("div", X0, l(e.locale === "zhHans" ? "潮汐预报" : "Tide Forecast"), 1),
|
|
2253
2253
|
a("div", {
|
|
2254
2254
|
class: b(["label-color", e.theme === "dark" ? "dark" : "light"]),
|
|
2255
2255
|
style: { "font-size": "12px", "margin-right": "20px" }
|
|
@@ -2264,73 +2264,73 @@ function y0(i, t, e, r, d, o) {
|
|
|
2264
2264
|
a("tr", {
|
|
2265
2265
|
class: b(["day", e.theme === "dark" ? "dark" : "light"])
|
|
2266
2266
|
}, [
|
|
2267
|
-
a("th",
|
|
2267
|
+
a("th", Q0, [
|
|
2268
2268
|
f(l(e.locale === "zhHans" ? "日期" : "Date"), 1),
|
|
2269
2269
|
t[31] || (t[31] = a("br", null, null, -1)),
|
|
2270
2270
|
t[32] || (t[32] = f("(LT)", -1))
|
|
2271
2271
|
]),
|
|
2272
|
-
a("th",
|
|
2273
|
-
a("th",
|
|
2274
|
-
a("th",
|
|
2275
|
-
a("th",
|
|
2272
|
+
a("th", K0, l(e.locale === "zhHans" ? "第一次潮汐" : "1st Tide"), 1),
|
|
2273
|
+
a("th", ee, l(e.locale === "zhHans" ? "第二次潮汐" : "2st Tide"), 1),
|
|
2274
|
+
a("th", te, l(e.locale === "zhHans" ? "第三次潮汐" : "3st Tide"), 1),
|
|
2275
|
+
a("th", ae, l(e.locale === "zhHans" ? "第四次潮汐" : "4st Tide"), 1)
|
|
2276
2276
|
], 2),
|
|
2277
2277
|
a("tr", {
|
|
2278
2278
|
class: b(["hour", e.theme === "dark" ? "dark" : "light"])
|
|
2279
2279
|
}, [
|
|
2280
|
-
a("th",
|
|
2280
|
+
a("th", ie, [
|
|
2281
2281
|
f(l(e.locale === "zhHans" ? "时间" : "Time"), 1),
|
|
2282
2282
|
t[33] || (t[33] = a("br", null, null, -1)),
|
|
2283
2283
|
t[34] || (t[34] = f("(LT)", -1))
|
|
2284
2284
|
]),
|
|
2285
|
-
a("th",
|
|
2285
|
+
a("th", le, [
|
|
2286
2286
|
f(l(e.locale === "zhHans" ? "高度" : "Height"), 1),
|
|
2287
2287
|
t[35] || (t[35] = a("br", null, null, -1)),
|
|
2288
2288
|
t[36] || (t[36] = f("(mm)", -1))
|
|
2289
2289
|
]),
|
|
2290
|
-
a("th",
|
|
2291
|
-
a("th",
|
|
2290
|
+
a("th", se, l(e.locale === "zhHans" ? "类型" : "Type"), 1),
|
|
2291
|
+
a("th", oe, [
|
|
2292
2292
|
f(l(e.locale === "zhHans" ? "时间" : "Time"), 1),
|
|
2293
2293
|
t[37] || (t[37] = a("br", null, null, -1)),
|
|
2294
2294
|
t[38] || (t[38] = f("(LT)", -1))
|
|
2295
2295
|
]),
|
|
2296
|
-
a("th",
|
|
2296
|
+
a("th", re, [
|
|
2297
2297
|
f(l(e.locale === "zhHans" ? "高度" : "Height"), 1),
|
|
2298
2298
|
t[39] || (t[39] = a("br", null, null, -1)),
|
|
2299
2299
|
t[40] || (t[40] = f("(mm)", -1))
|
|
2300
2300
|
]),
|
|
2301
|
-
a("th",
|
|
2302
|
-
a("th",
|
|
2301
|
+
a("th", ne, l(e.locale === "zhHans" ? "类型" : "Type"), 1),
|
|
2302
|
+
a("th", de, [
|
|
2303
2303
|
f(l(e.locale === "zhHans" ? "时间" : "Time"), 1),
|
|
2304
2304
|
t[41] || (t[41] = a("br", null, null, -1)),
|
|
2305
2305
|
t[42] || (t[42] = f("(LT)", -1))
|
|
2306
2306
|
]),
|
|
2307
|
-
a("th",
|
|
2307
|
+
a("th", ce, [
|
|
2308
2308
|
f(l(e.locale === "zhHans" ? "高度" : "Height"), 1),
|
|
2309
2309
|
t[43] || (t[43] = a("br", null, null, -1)),
|
|
2310
2310
|
t[44] || (t[44] = f("(mm)", -1))
|
|
2311
2311
|
]),
|
|
2312
|
-
a("th",
|
|
2313
|
-
a("th",
|
|
2312
|
+
a("th", he, l(e.locale === "zhHans" ? "类型" : "Type"), 1),
|
|
2313
|
+
a("th", me, [
|
|
2314
2314
|
f(l(e.locale === "zhHans" ? "时间" : "Time"), 1),
|
|
2315
2315
|
t[45] || (t[45] = a("br", null, null, -1)),
|
|
2316
2316
|
t[46] || (t[46] = f("(LT)", -1))
|
|
2317
2317
|
]),
|
|
2318
|
-
a("th",
|
|
2318
|
+
a("th", pe, [
|
|
2319
2319
|
f(l(e.locale === "zhHans" ? "高度" : "Height"), 1),
|
|
2320
2320
|
t[47] || (t[47] = a("br", null, null, -1)),
|
|
2321
2321
|
t[48] || (t[48] = f("(mm)", -1))
|
|
2322
2322
|
]),
|
|
2323
|
-
a("th",
|
|
2323
|
+
a("th", ge, l(e.locale === "zhHans" ? "类型" : "Type"), 1)
|
|
2324
2324
|
], 2)
|
|
2325
2325
|
], 2),
|
|
2326
|
-
a("tbody",
|
|
2326
|
+
a("tbody", ue, [
|
|
2327
2327
|
(w(!0), x(A2, null, C2(e.tideTableData, (s) => {
|
|
2328
2328
|
var Y, m, J, X, j, l1, e1, t1, O, q, K, a1, s1, o1, W, V, p1, g1, u1, d1, c1, n, r1, m1, x1, H1, S1, A1, C1, N1, B1, T1, E1, P1, W1, I1;
|
|
2329
2329
|
return w(), x("tr", {
|
|
2330
2330
|
key: Math.random() + s.date,
|
|
2331
2331
|
class: b(["text border-bottom", e.theme === "dark" ? "dark" : "light"])
|
|
2332
2332
|
}, [
|
|
2333
|
-
a("td",
|
|
2333
|
+
a("td", fe, [
|
|
2334
2334
|
a("div", null, l((s == null ? void 0 : s.date) || ""), 1)
|
|
2335
2335
|
]),
|
|
2336
2336
|
a("td", {
|
|
@@ -2414,8 +2414,8 @@ function y0(i, t, e, r, d, o) {
|
|
|
2414
2414
|
])
|
|
2415
2415
|
], 2);
|
|
2416
2416
|
}
|
|
2417
|
-
const
|
|
2418
|
-
const
|
|
2417
|
+
const be = /* @__PURE__ */ U1(b3, [["render", ye], ["__scopeId", "data-v-73da07a8"]]);
|
|
2418
|
+
const we = {
|
|
2419
2419
|
name: "IdmHistorical",
|
|
2420
2420
|
components: {
|
|
2421
2421
|
IdmLoading: Y2
|
|
@@ -2449,7 +2449,7 @@ const w0 = {
|
|
|
2449
2449
|
computeHourLT() {
|
|
2450
2450
|
return (i) => {
|
|
2451
2451
|
if (i) {
|
|
2452
|
-
const t =
|
|
2452
|
+
const t = N.tz(i, this.positionGmt);
|
|
2453
2453
|
return `${t == null ? void 0 : t.format("HH")}`;
|
|
2454
2454
|
}
|
|
2455
2455
|
return "-";
|
|
@@ -2458,7 +2458,7 @@ const w0 = {
|
|
|
2458
2458
|
computeUTCTime() {
|
|
2459
2459
|
return (i, t = "MMM-DD/HHmm[Z], YYYY") => {
|
|
2460
2460
|
if (i) {
|
|
2461
|
-
const e =
|
|
2461
|
+
const e = N(i).utc();
|
|
2462
2462
|
return `${e == null ? void 0 : e.format(t)}`;
|
|
2463
2463
|
}
|
|
2464
2464
|
return "-";
|
|
@@ -2467,7 +2467,7 @@ const w0 = {
|
|
|
2467
2467
|
computeMMMDDHHmmLT() {
|
|
2468
2468
|
return (i, t) => {
|
|
2469
2469
|
if (i) {
|
|
2470
|
-
const e =
|
|
2470
|
+
const e = N.tz(i, t);
|
|
2471
2471
|
return `${e == null ? void 0 : e.format("MMM-DD/HHmm")}`;
|
|
2472
2472
|
}
|
|
2473
2473
|
return "-";
|
|
@@ -2476,7 +2476,7 @@ const w0 = {
|
|
|
2476
2476
|
computeTzTime() {
|
|
2477
2477
|
return (i, t) => {
|
|
2478
2478
|
if (i) {
|
|
2479
|
-
const e =
|
|
2479
|
+
const e = N.tz(i, t);
|
|
2480
2480
|
return `${e == null ? void 0 : e.format("yyyy-MM-DD")}`;
|
|
2481
2481
|
}
|
|
2482
2482
|
return "-";
|
|
@@ -2539,16 +2539,16 @@ const w0 = {
|
|
|
2539
2539
|
`<svg t="1740383449285" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="10797" width="200" height="200"><path d="M133.8 579l-44.4-44.4c-18.8-18.8-18.8-49.2 0-67.8L478 78c18.8-18.8 49.2-18.8 67.8 0l388.6 388.6c18.8 18.8 18.8 49.2 0 67.8L890 578.8c-19 19-50 18.6-68.6-0.8L592 337.2V912c0 26.6-21.4 48-48 48h-64c-26.6 0-48-21.4-48-48V337.2L202.4 578.2c-18.6 19.6-49.6 20-68.6 0.8z" fill="${c}" p-id="10798"></path></svg>`
|
|
2540
2540
|
), h = new Image(64, 64);
|
|
2541
2541
|
h.src = p, h.onload = async () => {
|
|
2542
|
-
var v, T,
|
|
2543
|
-
const z = (T = (v =
|
|
2542
|
+
var v, T, B, C, S, D, L, M, E, A, U, I, _, $, R, y, H, P, s, Y, m, J, X, j, l1, e1, t1, O, q, K, a1, s1, o1, W, V, p1, g1, u1, d1, c1, n, r1, m1, x1, H1, S1, A1, C1, N1, B1, T1, E1, P1, W1, I1, Z1, q1, J1, X1, Q1, f1, V1, Q, o2, D1, R1, n2;
|
|
2543
|
+
const z = (T = (v = N.tz(d, this.positionGmt)) == null ? void 0 : v.set({ hour: 0, minute: 0, second: 0, millisecond: 0 })) == null ? void 0 : T.format();
|
|
2544
2544
|
for (let y1 = 0; y1 < t * 24; y1++)
|
|
2545
2545
|
if (y1 % e === 0) {
|
|
2546
|
-
const $1 =
|
|
2547
|
-
(
|
|
2546
|
+
const $1 = N(z).clone().add(y1, "h").format();
|
|
2547
|
+
(B = this.meteogramData) == null || B.dates.push($1);
|
|
2548
2548
|
const Z = ((C = y2.pickHourly(i, $1)) == null ? void 0 : C[0]) || {};
|
|
2549
2549
|
(D = this.meteogramData) == null || D.temperatures.push(this.roundPrecision((S = Z == null ? void 0 : Z.weather) == null ? void 0 : S.temp, 0)), (M = this.meteogramData) == null || M.visibility.push(this.roundPrecision((L = Z == null ? void 0 : Z.weather) == null ? void 0 : L.visibility, 1)), (U = this.meteogramData) == null || U.windspeed.push(this.roundPrecision((A = (E = Z.weather) == null ? void 0 : E.wind) == null ? void 0 : A.kts, 1)), ($ = this.meteogramData) == null || $.windGusts.push(this.roundPrecision((_ = (I = Z == null ? void 0 : Z.weather) == null ? void 0 : I.wind) == null ? void 0 : _.gusts, 1)), (R = this.meteogramData) == null || R.windSpeedReferMax.push(16), (P = this.meteogramData) == null || P.sigWaveHeight.push(this.roundPrecision((H = (y = Z == null ? void 0 : Z.wave) == null ? void 0 : y.sig) == null ? void 0 : H.height)), (m = this.meteogramData) == null || m.windWaveHeight.push(this.roundPrecision((Y = (s = Z == null ? void 0 : Z.wave) == null ? void 0 : s.wd) == null ? void 0 : Y.height)), (j = this.meteogramData) == null || j.swellHeight.push(this.roundPrecision((X = (J = Z == null ? void 0 : Z.wave) == null ? void 0 : J.swell) == null ? void 0 : X.height)), (l1 = this.meteogramData) == null || l1.waveHeightRefer.push(1.5);
|
|
2550
2550
|
const c2 = e === 1 ? "sum1Hours" : "sum3Hours";
|
|
2551
|
-
if ((O = this.meteogramData) == null || O.precip.push(this.roundPrecision((t1 = (e1 = Z == null ? void 0 : Z.weather) == null ? void 0 : e1.precip) == null ? void 0 : t1[c2], 1)), (K = this.meteogramData) == null || K.currentSpd.push(this.roundPrecision((q = Z == null ? void 0 : Z.current) == null ? void 0 : q.kts, 1)), (a1 = this.meteogramData) == null || a1.sst.push(this.roundPrecision(Z == null ? void 0 : Z.sst, 0)), e < 24 && y1 % 12 === 0 && y1 % 24 !== 0 || e >= 24 && y1 % 24 === 0 ? (o1 = this.meteogramData) == null || o1.xDates.push((s1 =
|
|
2551
|
+
if ((O = this.meteogramData) == null || O.precip.push(this.roundPrecision((t1 = (e1 = Z == null ? void 0 : Z.weather) == null ? void 0 : e1.precip) == null ? void 0 : t1[c2], 1)), (K = this.meteogramData) == null || K.currentSpd.push(this.roundPrecision((q = Z == null ? void 0 : Z.current) == null ? void 0 : q.kts, 1)), (a1 = this.meteogramData) == null || a1.sst.push(this.roundPrecision(Z == null ? void 0 : Z.sst, 0)), e < 24 && y1 % 12 === 0 && y1 % 24 !== 0 || e >= 24 && y1 % 24 === 0 ? (o1 = this.meteogramData) == null || o1.xDates.push((s1 = N.tz($1, this.positionGmt)) == null ? void 0 : s1.format("MMM-DD")) : (W = this.meteogramData) == null || W.xDates.push(""), y1 % r === 0 ? (V = this.meteogramData) == null || V.hours.push(this.computeHourLT($1)) : (p1 = this.meteogramData) == null || p1.hours.push(""), y1 % 12 === 0 ? ((g1 = Z.weather) != null && g1.url ? (d1 = this.meteogramData) == null || d1.weatherIcons.push({ symbol: "image://" + ((u1 = Z.weather) == null ? void 0 : u1.url), symbolSize: 30 }) : this.meteogramData.weatherIcons.push({ symbol: "image://", symbolSize: 0 }), (n = this.meteogramData) == null || n.weatherNames.push((c1 = Z.weather) == null ? void 0 : c1.name)) : ((r1 = this.meteogramData) == null || r1.weatherIcons.push({ symbol: "image://", symbolSize: 0 }), (m1 = this.meteogramData) == null || m1.weatherNames.push("")), y1 % r === 0 ? (S1 = this.meteogramData) == null || S1.windDir.push((H1 = (x1 = Z.weather) == null ? void 0 : x1.wind) == null ? void 0 : H1.bearing) : (A1 = this.meteogramData) == null || A1.windDir.push(void 0), y1 % r === 0) {
|
|
2552
2552
|
const Y1 = document.createElement("canvas"), r2 = Y1.getContext("2d");
|
|
2553
2553
|
Y1.width = h.width, Y1.height = h.height;
|
|
2554
2554
|
const h2 = ((N1 = (C1 = Z.weather) == null ? void 0 : C1.wind) == null ? void 0 : N1.bearing) * (Math.PI / 180);
|
|
@@ -2607,7 +2607,7 @@ const w0 = {
|
|
|
2607
2607
|
formatter: (u) => {
|
|
2608
2608
|
var k1, F1, M1, _1;
|
|
2609
2609
|
const j1 = (k1 = u == null ? void 0 : u.find((G) => G.seriesType === "line")) == null ? void 0 : k1.dataIndex;
|
|
2610
|
-
return u.find((G) => G.seriesType === "scatter") ? !1 : `<div style="font-size: 13px;"><strong>${
|
|
2610
|
+
return u.find((G) => G.seriesType === "scatter") ? !1 : `<div style="font-size: 13px;"><strong>${N.tz((F1 = this.meteogramData) == null ? void 0 : F1.dates[j1], this.positionGmt).format("MMM-DD/HHmm[LT]")}</strong></div>
|
|
2611
2611
|
<div style="font-size: 13px;display: ${isNaN((M1 = u == null ? void 0 : u.find((G) => G.seriesName === "Temperature" || G.seriesName === "温度")) == null ? void 0 : M1.value) ? "none" : "block"}">
|
|
2612
2612
|
<span style="display:inline-block; height: 10px;width: 10px;border-radius: 50%;background-color: ${this.theme === "dark" ? "rgba(255, 161, 0, 1)" : "rgba(242, 153, 56, 1)"};}"></span>
|
|
2613
2613
|
<span>${this.locale === "zhHans" ? "温度: " : "Temperature: "}</span>
|
|
@@ -2879,14 +2879,14 @@ const w0 = {
|
|
|
2879
2879
|
return !1;
|
|
2880
2880
|
{
|
|
2881
2881
|
const G = (F1 = u == null ? void 0 : u.find((d2) => d2.seriesName === "Precipitation" || d2.seriesName === "降水")) == null ? void 0 : F1.value;
|
|
2882
|
-
return t === 1 ? `<div style="font-size: 13px;"><strong>${
|
|
2882
|
+
return t === 1 ? `<div style="font-size: 13px;"><strong>${N.tz((M1 = this.meteogramData) == null ? void 0 : M1.dates[j1], this.positionGmt).format("MMM-DD/HHmm[LT]")}</strong></div>
|
|
2883
2883
|
<div style="font-size: 13px;display: ${isNaN(G) ? "none" : "block"}">
|
|
2884
2884
|
<span style="display:inline-block; height: 10px;width: 10px;border-radius: 50%;background-color: ${this.theme === "dark" ? "rgb(19, 134, 192)" : "#0c73a8"};}"></span>
|
|
2885
2885
|
<span>${this.locale === "zhHans" ? "1小时降水: " : "Precip.1h : "}</span>
|
|
2886
2886
|
<strong>${G}</strong>
|
|
2887
2887
|
<span style="padding-left: 3px;">mm</span>
|
|
2888
2888
|
</div>` : `<div style="font-size: 13px;"
|
|
2889
|
-
<strong>${
|
|
2889
|
+
<strong>${N.tz((_1 = this.meteogramData) == null ? void 0 : _1.dates[j1], this.positionGmt).format("MMM-DD/HHmm[LT]")}</strong>
|
|
2890
2890
|
</div>
|
|
2891
2891
|
<div style="font-size: 13px;display: ${isNaN(G) ? "none" : "block"}">
|
|
2892
2892
|
<span style="display:inline-block; height: 10px;width: 10px;border-radius: 50%;background: ${this.theme === "dark" ? "rgb(19, 134, 192)" : "#0c73a8"};"></span>
|
|
@@ -3220,7 +3220,7 @@ const w0 = {
|
|
|
3220
3220
|
formatter: (u) => {
|
|
3221
3221
|
var k1, F1, M1, _1, G, d2;
|
|
3222
3222
|
const j1 = (k1 = u == null ? void 0 : u[0]) == null ? void 0 : k1.dataIndex;
|
|
3223
|
-
return u.find((G1) => G1.seriesType === "scatter") ? !1 : `<div style="font-size: 13px;"><strong>${
|
|
3223
|
+
return u.find((G1) => G1.seriesType === "scatter") ? !1 : `<div style="font-size: 13px;"><strong>${N.tz((F1 = this.meteogramData) == null ? void 0 : F1.dates[j1], this.positionGmt).format("MMM-DD/HHmm[LT]")}</strong></div>
|
|
3224
3224
|
<div style="font-size: 13px;display: ${isNaN((M1 = u == null ? void 0 : u.find((G1) => G1.seriesName === "Wind Speed" || G1.seriesName === "风速")) == null ? void 0 : M1.value) ? "none" : "block"}">
|
|
3225
3225
|
<span style="display:inline-block; height: 10px;width: 10px;border-radius: 50%;background-color: ${this.theme === "dark" ? "rgba(159, 255, 126, 1)" : "rgba(54, 212, 0, 1)"};}"></span>
|
|
3226
3226
|
<span>${this.locale === "zhHans" ? "风速: " : "Wind Speed : "}</span><strong>${(_1 = u[1]) == null ? void 0 : _1.value}</strong><span style="padding-left: 3px;">kts</span>
|
|
@@ -3507,7 +3507,7 @@ const w0 = {
|
|
|
3507
3507
|
formatter: (u) => {
|
|
3508
3508
|
var k1, F1, M1, _1, G, d2, G1, V6;
|
|
3509
3509
|
const j1 = (k1 = u == null ? void 0 : u[0]) == null ? void 0 : k1.dataIndex;
|
|
3510
|
-
return u.find((w1) => w1.seriesType === "scatter") ? !1 : `<div style="font-size: 13px;"><strong>${
|
|
3510
|
+
return u.find((w1) => w1.seriesType === "scatter") ? !1 : `<div style="font-size: 13px;"><strong>${N.tz((F1 = this.meteogramData) == null ? void 0 : F1.dates[j1], this.positionGmt).format("MMM-DD/HHmm[LT]")}</strong></div>
|
|
3511
3511
|
<div style="font-size: 13px;display: ${isNaN((M1 = u == null ? void 0 : u.find((w1) => w1.seriesName === "Sig.Wave Height" || w1.seriesName === "显著浪高")) == null ? void 0 : M1.value) ? "none" : "block"}">
|
|
3512
3512
|
<span style="display:inline-block; height: 10px;width: 10px;border-radius: 50%;background-color: ${this.theme === "dark" ? "rgba(89, 199, 211, 1)" : "rgba(1, 189, 211, 1)"};"></span>
|
|
3513
3513
|
<span>${this.locale === "zhHans" ? "显著浪高" : "Sig.Wave Height"} : </span>
|
|
@@ -3785,7 +3785,7 @@ const w0 = {
|
|
|
3785
3785
|
}
|
|
3786
3786
|
]
|
|
3787
3787
|
}, document.getElementById("waveEchart") && (T = n1.init(document.getElementById("waveEchart")), T.setOption(g));
|
|
3788
|
-
let
|
|
3788
|
+
let B;
|
|
3789
3789
|
o = Math.max(
|
|
3790
3790
|
...[...this.meteogramData.currentSpd].filter((u) => typeof u == "number" && !isNaN(u))
|
|
3791
3791
|
), g = {
|
|
@@ -3817,7 +3817,7 @@ const w0 = {
|
|
|
3817
3817
|
formatter: (u) => {
|
|
3818
3818
|
var k1, F1, M1, _1;
|
|
3819
3819
|
const j1 = (k1 = u == null ? void 0 : u.find((G) => G.seriesType === "line")) == null ? void 0 : k1.dataIndex;
|
|
3820
|
-
return u.find((G) => G.seriesType === "scatter") ? !1 : `<div style="font-size: 13px;"><strong>${
|
|
3820
|
+
return u.find((G) => G.seriesType === "scatter") ? !1 : `<div style="font-size: 13px;"><strong>${N.tz((F1 = this.meteogramData) == null ? void 0 : F1.dates[j1], this.positionGmt).format("MMM-DD/HHmm[LT]")}</strong></div>
|
|
3821
3821
|
<div style="font-size: 13px;display: ${isNaN((M1 = u == null ? void 0 : u.find((G) => G.seriesName === "Current" || G.seriesName === "洋流")) == null ? void 0 : M1.value) ? "none" : "block"}">
|
|
3822
3822
|
<span style="display:inline-block; height: 10px;width: 10px;border-radius: 50%;background-color: ${this.theme === "dark" ? "rgba(220, 115, 255, 1)" : "rgba(178, 51, 220, 1)"};}"></span>
|
|
3823
3823
|
<span>${this.locale === "zhHans" ? "洋流" : "Current"} : </span>
|
|
@@ -4053,7 +4053,7 @@ const w0 = {
|
|
|
4053
4053
|
symbolSize: 0
|
|
4054
4054
|
}
|
|
4055
4055
|
]
|
|
4056
|
-
}, document.getElementById("currentEchart") && (
|
|
4056
|
+
}, document.getElementById("currentEchart") && (B = n1.init(document.getElementById("currentEchart")), B.setOption(g));
|
|
4057
4057
|
let C;
|
|
4058
4058
|
e = Math.max(...this.meteogramData.sst.filter((u) => typeof u == "number" && !isNaN(u))), r = Math.min(...this.meteogramData.sst.filter((u) => typeof u == "number" && !isNaN(u))), d = Math.floor(r / 5) * 5, o = Math.ceil(e / 5) * 5, c = Math.ceil((o - d) / 5), d = Math.floor((d - 2 * c) / 5) * 5, o = Math.ceil((o + 1) / 5) * 5, c = Math.ceil((o - d) / 5), g = {
|
|
4059
4059
|
title: {
|
|
@@ -4084,7 +4084,7 @@ const w0 = {
|
|
|
4084
4084
|
formatter: (u) => {
|
|
4085
4085
|
var k1, F1, M1, _1;
|
|
4086
4086
|
const j1 = (k1 = u == null ? void 0 : u.find((G) => G.seriesType === "line")) == null ? void 0 : k1.dataIndex;
|
|
4087
|
-
return u.find((G) => G.seriesType === "scatter") ? !1 : `<div style="font-size: 13px;"><strong>${
|
|
4087
|
+
return u.find((G) => G.seriesType === "scatter") ? !1 : `<div style="font-size: 13px;"><strong>${N.tz((F1 = this.meteogramData) == null ? void 0 : F1.dates[j1], this.positionGmt).format("MMM-DD/HHmm[LT]")}</strong></div>
|
|
4088
4088
|
<div style="font-size: 13px;display: ${isNaN((M1 = u == null ? void 0 : u.find((G) => G.seriesName === "Sea Temperature" || G.seriesName === "海表温度")) == null ? void 0 : M1.value) ? "none" : "block"}">
|
|
4089
4089
|
<span style="display:inline-block; height: 10px;width: 10px;border-radius: 50%;background-color: ${this.theme === "dark" ? "rgba(255, 161, 0, 1)" : "rgba(242, 153, 56, 1)"};}"></span>
|
|
4090
4090
|
<span>${this.locale === "zhHans" ? "海表温度" : "Sea Temperature"} : </span>
|
|
@@ -4329,20 +4329,20 @@ const w0 = {
|
|
|
4329
4329
|
document.getElementById("tempEchart") && n1.dispose(document.getElementById("tempEchart")), document.getElementById("windIconsEchart") && n1.dispose(document.getElementById("windIconsEchart")), document.getElementById("precipEchart") && n1.dispose(document.getElementById("precipEchart")), document.getElementById("windEchart") && n1.dispose(document.getElementById("windEchart")), document.getElementById("waveEchart") && n1.dispose(document.getElementById("waveEchart")), document.getElementById("currentEchart") && n1.dispose(document.getElementById("currentEchart")), document.getElementById("sstEchart") && n1.dispose(document.getElementById("sstEchart"));
|
|
4330
4330
|
},
|
|
4331
4331
|
initHourlyTableData(i) {
|
|
4332
|
-
var o, c, p, h, g, k, z, v, T,
|
|
4332
|
+
var o, c, p, h, g, k, z, v, T, B, C, S, D, L, M, E, A, U, I, _, $, R, y, H, P, s, Y, m, J, X, j, l1, e1, t1, O, q, K, a1, s1, o1, W, V, p1, g1, u1;
|
|
4333
4333
|
this.hourlyTableData = [];
|
|
4334
|
-
const t = i.forecastDays || 7, e = i.interval || 3, r = (i == null ? void 0 : i.datetime) || ((o = this.reportData) == null ? void 0 : o.etime), d = (p = (c =
|
|
4334
|
+
const t = i.forecastDays || 7, e = i.interval || 3, r = (i == null ? void 0 : i.datetime) || ((o = this.reportData) == null ? void 0 : o.etime), d = (p = (c = N.tz(r, this.positionGmt)) == null ? void 0 : c.set({ hour: 0, minute: 0, second: 0, millisecond: 0 })) == null ? void 0 : p.format();
|
|
4335
4335
|
for (let d1 = 0; d1 < t * 24; d1++)
|
|
4336
4336
|
if (d1 % e === 0) {
|
|
4337
4337
|
let c1;
|
|
4338
|
-
if (c1 =
|
|
4338
|
+
if (c1 = N.tz(d, this.positionGmt).clone().add(d1, "h").format(), c1) {
|
|
4339
4339
|
const n = ((h = y2.pickHourly(i, c1)) == null ? void 0 : h[0]) || {}, r1 = this.roundPrecision((k = (g = n == null ? void 0 : n.weather) == null ? void 0 : g.precip) == null ? void 0 : k[`sum${e}Hours`], 1);
|
|
4340
4340
|
this.hourlyTableData.push({
|
|
4341
4341
|
localDate: this.computeMMMDDHHmmLT(c1, this.positionGmt),
|
|
4342
4342
|
temp: this.roundPrecision((z = n == null ? void 0 : n.weather) == null ? void 0 : z.temp, 0) ?? "-",
|
|
4343
4343
|
precipSum: r1 ?? "-",
|
|
4344
4344
|
visibility: this.roundPrecision((v = n == null ? void 0 : n.weather) == null ? void 0 : v.visibility, 1) ?? "-",
|
|
4345
|
-
windSpeed: this.roundPrecision((
|
|
4345
|
+
windSpeed: this.roundPrecision((B = (T = n == null ? void 0 : n.weather) == null ? void 0 : T.wind) == null ? void 0 : B.kts, 1) ?? "-",
|
|
4346
4346
|
windDir: (S = (C = n == null ? void 0 : n.weather) == null ? void 0 : C.wind) == null ? void 0 : S.direction,
|
|
4347
4347
|
windBearing: (L = (D = n == null ? void 0 : n.weather) == null ? void 0 : D.wind) == null ? void 0 : L.bearing,
|
|
4348
4348
|
windBF: ((E = (M = n == null ? void 0 : n.weather) == null ? void 0 : M.wind) == null ? void 0 : E.scale) ?? "-",
|
|
@@ -4395,97 +4395,97 @@ const w0 = {
|
|
|
4395
4395
|
}
|
|
4396
4396
|
}
|
|
4397
4397
|
}
|
|
4398
|
-
},
|
|
4398
|
+
}, xe = { class: "row" }, ve = {
|
|
4399
4399
|
class: "col",
|
|
4400
4400
|
style: { width: "54%" }
|
|
4401
|
-
},
|
|
4401
|
+
}, ze = {
|
|
4402
4402
|
key: 0,
|
|
4403
4403
|
style: { "margin-left": "8px" }
|
|
4404
|
-
},
|
|
4404
|
+
}, ke = {
|
|
4405
4405
|
key: 1,
|
|
4406
4406
|
style: { "margin-left": "8px" }
|
|
4407
|
-
},
|
|
4407
|
+
}, Fe = {
|
|
4408
4408
|
class: "col",
|
|
4409
4409
|
style: { width: "42%" }
|
|
4410
|
-
},
|
|
4410
|
+
}, Me = { style: { "margin-left": "8px" } }, _e = { class: "row" }, De = {
|
|
4411
4411
|
class: "col",
|
|
4412
4412
|
style: { width: "54%" }
|
|
4413
|
-
},
|
|
4413
|
+
}, Le = { style: { "margin-left": "8px" } }, He = { class: "content-box" }, Se = {
|
|
4414
4414
|
key: 0,
|
|
4415
4415
|
class: "meteogram-echart-section"
|
|
4416
|
-
},
|
|
4416
|
+
}, Ae = {
|
|
4417
4417
|
key: 2,
|
|
4418
4418
|
id: "tempEchart"
|
|
4419
|
-
},
|
|
4419
|
+
}, Ce = {
|
|
4420
4420
|
key: 3,
|
|
4421
4421
|
id: "precipEchart"
|
|
4422
|
-
},
|
|
4422
|
+
}, Ne = {
|
|
4423
4423
|
key: 4,
|
|
4424
4424
|
id: "windIconsEchart"
|
|
4425
|
-
},
|
|
4425
|
+
}, Be = {
|
|
4426
4426
|
key: 5,
|
|
4427
4427
|
id: "windEchart"
|
|
4428
|
-
},
|
|
4428
|
+
}, Te = {
|
|
4429
4429
|
key: 6,
|
|
4430
4430
|
id: "waveEchart"
|
|
4431
|
-
},
|
|
4431
|
+
}, Ee = {
|
|
4432
4432
|
key: 7,
|
|
4433
4433
|
id: "currentEchart"
|
|
4434
|
-
},
|
|
4434
|
+
}, Pe = {
|
|
4435
4435
|
key: 8,
|
|
4436
4436
|
id: "sstEchart"
|
|
4437
|
-
},
|
|
4437
|
+
}, We = { class: "hourly-table-section" }, Ie = {
|
|
4438
4438
|
key: 0,
|
|
4439
4439
|
class: "card"
|
|
4440
|
-
},
|
|
4440
|
+
}, Oe = { class: "date" }, Ve = {
|
|
4441
4441
|
class: "",
|
|
4442
4442
|
style: { "font-size": "16px", "font-weight": "500" }
|
|
4443
|
-
},
|
|
4443
|
+
}, Re = {
|
|
4444
4444
|
rowspan: "2",
|
|
4445
4445
|
colspan: "1",
|
|
4446
4446
|
class: "border",
|
|
4447
4447
|
style: { width: "90px" }
|
|
4448
|
-
},
|
|
4448
|
+
}, Ge = {
|
|
4449
4449
|
rowspan: "1",
|
|
4450
4450
|
colspan: "1",
|
|
4451
4451
|
class: "border"
|
|
4452
|
-
}, $
|
|
4452
|
+
}, $e = {
|
|
4453
4453
|
rowspan: "1",
|
|
4454
4454
|
colspan: "1",
|
|
4455
4455
|
class: "border"
|
|
4456
|
-
},
|
|
4456
|
+
}, Ye = {
|
|
4457
4457
|
rowspan: "1",
|
|
4458
4458
|
colspan: "1",
|
|
4459
4459
|
class: "border"
|
|
4460
|
-
},
|
|
4460
|
+
}, je = {
|
|
4461
4461
|
rowspan: "1",
|
|
4462
4462
|
colspan: "4",
|
|
4463
4463
|
class: "border"
|
|
4464
|
-
},
|
|
4464
|
+
}, Ue = {
|
|
4465
4465
|
rowspan: "1",
|
|
4466
4466
|
colspan: "3",
|
|
4467
4467
|
class: "border"
|
|
4468
|
-
},
|
|
4468
|
+
}, Ze = {
|
|
4469
4469
|
rowspan: "1",
|
|
4470
4470
|
colspan: "3",
|
|
4471
4471
|
class: "border"
|
|
4472
|
-
},
|
|
4472
|
+
}, qe = {
|
|
4473
4473
|
rowspan: "1",
|
|
4474
4474
|
colspan: "3",
|
|
4475
4475
|
class: "border"
|
|
4476
|
-
},
|
|
4476
|
+
}, Je = {
|
|
4477
4477
|
rowspan: "1",
|
|
4478
4478
|
colspan: "2",
|
|
4479
4479
|
class: "border"
|
|
4480
|
-
},
|
|
4480
|
+
}, Xe = {
|
|
4481
4481
|
rowspan: "1",
|
|
4482
4482
|
colspan: "1",
|
|
4483
4483
|
class: "border"
|
|
4484
|
-
},
|
|
4484
|
+
}, Qe = {
|
|
4485
4485
|
rowspan: "1",
|
|
4486
4486
|
colspan: "1",
|
|
4487
4487
|
class: "border"
|
|
4488
|
-
},
|
|
4488
|
+
}, Ke = {
|
|
4489
4489
|
rowspan: "1",
|
|
4490
4490
|
colspan: "1",
|
|
4491
4491
|
class: "border",
|
|
@@ -4672,7 +4672,7 @@ const w0 = {
|
|
|
4672
4672
|
style: { width: "85px" }
|
|
4673
4673
|
};
|
|
4674
4674
|
function jt(i, t, e, r, d, o) {
|
|
4675
|
-
var p, h, g, k, z, v, T,
|
|
4675
|
+
var p, h, g, k, z, v, T, B, C, S, D, L, M, E, A, U, I, _, $, R, y, H, P;
|
|
4676
4676
|
const c = p2("IdmLoading");
|
|
4677
4677
|
return w(), x("div", {
|
|
4678
4678
|
class: b(["idm-spot-historical-report", e.theme === "dark" ? "dark" : "light"])
|
|
@@ -4681,31 +4681,31 @@ function jt(i, t, e, r, d, o) {
|
|
|
4681
4681
|
key: 0,
|
|
4682
4682
|
class: b(["summary-info-box", e.theme === "dark" ? "dark" : "light"])
|
|
4683
4683
|
}, [
|
|
4684
|
-
a("div",
|
|
4685
|
-
a("div",
|
|
4684
|
+
a("div", xe, [
|
|
4685
|
+
a("div", ve, [
|
|
4686
4686
|
a("span", {
|
|
4687
4687
|
class: b(["label label-color", e.theme === "dark" ? "dark" : "light"])
|
|
4688
4688
|
}, l(e.locale === "zhHans" ? "位置" : "Position") + ":", 3),
|
|
4689
|
-
(h = e.reportData) != null && h.portName ? (w(), x("span",
|
|
4689
|
+
(h = e.reportData) != null && h.portName ? (w(), x("span", ze, l((g = e.reportData) == null ? void 0 : g.portName) + " " + l(`[${o.computeLat(e.reportData.lat)}, ${o.computeLng(e.reportData.lng)}]`), 1)) : (w(), x("span", ke, l(`${o.computeLat(e.reportData.lat)} , ${o.computeLng(e.reportData.lng)}`), 1))
|
|
4690
4690
|
]),
|
|
4691
|
-
a("div",
|
|
4691
|
+
a("div", Fe, [
|
|
4692
4692
|
a("span", {
|
|
4693
4693
|
class: b(["label label-color", e.theme === "dark" ? "dark" : "light"])
|
|
4694
4694
|
}, l(e.locale === "zhHans" ? "历史时段" : "History Period") + ":", 3),
|
|
4695
|
-
a("span",
|
|
4695
|
+
a("span", Me, l(o.computeTzTime((z = (k = e.reportData) == null ? void 0 : k.dateRange) == null ? void 0 : z[0], d.positionGmt)) + " ~ " + l(o.computeTzTime((T = (v = e.reportData) == null ? void 0 : v.dateRange) == null ? void 0 : T[1], d.positionGmt)), 1)
|
|
4696
4696
|
])
|
|
4697
4697
|
]),
|
|
4698
|
-
a("div",
|
|
4699
|
-
a("div",
|
|
4698
|
+
a("div", _e, [
|
|
4699
|
+
a("div", De, [
|
|
4700
4700
|
a("span", {
|
|
4701
4701
|
class: b(["label label-color", e.theme === "dark" ? "dark" : "light"])
|
|
4702
4702
|
}, l(e.locale === "zhHans" ? "时区" : "Timezone") + ":", 3),
|
|
4703
|
-
a("span",
|
|
4703
|
+
a("span", Le, "UTC " + l((B = e.reportData) == null ? void 0 : B.positionOffset), 1)
|
|
4704
4704
|
])
|
|
4705
4705
|
])
|
|
4706
4706
|
], 2)) : h1("", !0),
|
|
4707
|
-
a("div",
|
|
4708
|
-
(C = e.reportData) != null && C.showTempChart || (S = e.reportData) != null && S.showPrecipChart || (D = e.reportData) != null && D.showWindChart || (L = e.reportData) != null && L.showWaveChart || (M = e.reportData) != null && M.showCurrentChart || (E = e.reportData) != null && E.showSstChart ? (w(), x("div",
|
|
4707
|
+
a("div", He, [
|
|
4708
|
+
(C = e.reportData) != null && C.showTempChart || (S = e.reportData) != null && S.showPrecipChart || (D = e.reportData) != null && D.showWindChart || (L = e.reportData) != null && L.showWaveChart || (M = e.reportData) != null && M.showCurrentChart || (E = e.reportData) != null && E.showSstChart ? (w(), x("div", Se, [
|
|
4709
4709
|
e.loading ? (w(), x("div", {
|
|
4710
4710
|
key: 0,
|
|
4711
4711
|
class: b(["loading-box", e.theme === "dark" ? "dark" : "light"])
|
|
@@ -4715,15 +4715,15 @@ function jt(i, t, e, r, d, o) {
|
|
|
4715
4715
|
key: 1,
|
|
4716
4716
|
class: b(["loading-box", e.theme === "dark" ? "dark" : "light"])
|
|
4717
4717
|
}, l(e.locale === "zhHans" ? "暂无数据" : "No Data"), 3)),
|
|
4718
|
-
!e.loading && ((A = e.reportData) != null && A.showTempChart) ? (w(), x("div",
|
|
4719
|
-
!e.loading && ((U = e.reportData) != null && U.showPrecipChart) ? (w(), x("div",
|
|
4720
|
-
!e.loading && ((I = e.reportData) != null && I.showWindChart) ? (w(), x("div",
|
|
4721
|
-
!e.loading && ((_ = e.reportData) != null && _.showWindChart) ? (w(), x("div",
|
|
4722
|
-
!e.loading && (($ = e.reportData) != null && $.showWaveChart) ? (w(), x("div",
|
|
4723
|
-
!e.loading && ((R = e.reportData) != null && R.showCurrentChart) ? (w(), x("div",
|
|
4724
|
-
!e.loading && ((y = e.reportData) != null && y.showSstChart) ? (w(), x("div",
|
|
4718
|
+
!e.loading && ((A = e.reportData) != null && A.showTempChart) ? (w(), x("div", Ae)) : h1("", !0),
|
|
4719
|
+
!e.loading && ((U = e.reportData) != null && U.showPrecipChart) ? (w(), x("div", Ce)) : h1("", !0),
|
|
4720
|
+
!e.loading && ((I = e.reportData) != null && I.showWindChart) ? (w(), x("div", Ne)) : h1("", !0),
|
|
4721
|
+
!e.loading && ((_ = e.reportData) != null && _.showWindChart) ? (w(), x("div", Be)) : h1("", !0),
|
|
4722
|
+
!e.loading && (($ = e.reportData) != null && $.showWaveChart) ? (w(), x("div", Te)) : h1("", !0),
|
|
4723
|
+
!e.loading && ((R = e.reportData) != null && R.showCurrentChart) ? (w(), x("div", Ee)) : h1("", !0),
|
|
4724
|
+
!e.loading && ((y = e.reportData) != null && y.showSstChart) ? (w(), x("div", Pe)) : h1("", !0)
|
|
4725
4725
|
])) : h1("", !0),
|
|
4726
|
-
a("div",
|
|
4726
|
+
a("div", We, [
|
|
4727
4727
|
e.loading ? e.loading ? (w(), x("div", {
|
|
4728
4728
|
key: 1,
|
|
4729
4729
|
class: b(["loading-box", e.theme === "dark" ? "dark" : "light"])
|
|
@@ -4732,9 +4732,9 @@ function jt(i, t, e, r, d, o) {
|
|
|
4732
4732
|
], 2)) : (w(), x("div", {
|
|
4733
4733
|
key: 2,
|
|
4734
4734
|
class: b(["loading-box", e.theme === "dark" ? "dark" : "light"])
|
|
4735
|
-
}, l(e.locale === "zhHans" ? "暂无数据" : "No Data"), 3)) : (w(), x("div",
|
|
4736
|
-
a("div",
|
|
4737
|
-
a("div",
|
|
4735
|
+
}, l(e.locale === "zhHans" ? "暂无数据" : "No Data"), 3)) : (w(), x("div", Ie, [
|
|
4736
|
+
a("div", Oe, [
|
|
4737
|
+
a("div", Ve, l(e.locale === "zhHans" ? "小时预报" : "Hourly Forecast"), 1),
|
|
4738
4738
|
a("div", {
|
|
4739
4739
|
class: b(["label-color", e.theme === "dark" ? "dark" : "light"]),
|
|
4740
4740
|
style: { "font-size": "12px", "font-weight": "300" }
|
|
@@ -4749,17 +4749,17 @@ function jt(i, t, e, r, d, o) {
|
|
|
4749
4749
|
a("tr", {
|
|
4750
4750
|
class: b(["day tr-title", e.theme === "dark" ? "dark" : "light"])
|
|
4751
4751
|
}, [
|
|
4752
|
-
a("th",
|
|
4753
|
-
a("th",
|
|
4754
|
-
a("th", $
|
|
4755
|
-
a("th",
|
|
4756
|
-
a("th",
|
|
4757
|
-
a("th",
|
|
4758
|
-
a("th",
|
|
4759
|
-
a("th",
|
|
4760
|
-
a("th",
|
|
4761
|
-
a("th",
|
|
4762
|
-
a("th",
|
|
4752
|
+
a("th", Re, l(e.locale === "zhHans" ? "时间(LT)" : "DateTime (LT)"), 1),
|
|
4753
|
+
a("th", Ge, l(e.locale === "zhHans" ? "温度" : "Temp"), 1),
|
|
4754
|
+
a("th", $e, l(e.locale === "zhHans" ? "3小时降水" : "Precip.3h"), 1),
|
|
4755
|
+
a("th", Ye, l(e.locale === "zhHans" ? "能见度" : "Visibility"), 1),
|
|
4756
|
+
a("th", je, l(e.locale === "zhHans" ? "风" : "Wind"), 1),
|
|
4757
|
+
a("th", Ue, l(e.locale === "zhHans" ? "风浪" : "Wind wave"), 1),
|
|
4758
|
+
a("th", Ze, l(e.locale === "zhHans" ? "涌浪" : "Swell wave"), 1),
|
|
4759
|
+
a("th", qe, l(e.locale === "zhHans" ? "显浪" : "Sig.wave"), 1),
|
|
4760
|
+
a("th", Je, l(e.locale === "zhHans" ? "洋流" : "Current"), 1),
|
|
4761
|
+
a("th", Xe, l(e.locale === "zhHans" ? "海面" : "Sea Level"), 1),
|
|
4762
|
+
a("th", Qe, l(e.locale === "zhHans" ? "海表" : "Sea Surface"), 1)
|
|
4763
4763
|
], 2),
|
|
4764
4764
|
a("tr", {
|
|
4765
4765
|
class: b(["hour tr-title", e.theme === "dark" ? "dark" : "light"])
|
|
@@ -4770,7 +4770,7 @@ function jt(i, t, e, r, d, o) {
|
|
|
4770
4770
|
class: "border",
|
|
4771
4771
|
style: { width: "50px" }
|
|
4772
4772
|
}, "°C", -1)),
|
|
4773
|
-
a("th",
|
|
4773
|
+
a("th", Ke, [
|
|
4774
4774
|
f(l(e.locale === "zhHans" ? "累计" : "Acc"), 1),
|
|
4775
4775
|
t[0] || (t[0] = a("br", null, null, -1)),
|
|
4776
4776
|
t[1] || (t[1] = f("(mm)", -1))
|
|
@@ -4938,7 +4938,7 @@ function jt(i, t, e, r, d, o) {
|
|
|
4938
4938
|
])
|
|
4939
4939
|
], 2);
|
|
4940
4940
|
}
|
|
4941
|
-
const Ut = /* @__PURE__ */ U1(
|
|
4941
|
+
const Ut = /* @__PURE__ */ U1(we, [["render", jt], ["__scopeId", "data-v-de98f8dc"]]);
|
|
4942
4942
|
const Zt = {
|
|
4943
4943
|
name: "IdmSeasonal",
|
|
4944
4944
|
components: {
|
|
@@ -4972,7 +4972,7 @@ const Zt = {
|
|
|
4972
4972
|
computeUTCTime() {
|
|
4973
4973
|
return (i, t = "MMM-DD/HHmm[Z], YYYY") => {
|
|
4974
4974
|
if (i) {
|
|
4975
|
-
const e =
|
|
4975
|
+
const e = N(i).utc();
|
|
4976
4976
|
return `${e == null ? void 0 : e.format(t)}`;
|
|
4977
4977
|
}
|
|
4978
4978
|
return "-";
|
|
@@ -5216,7 +5216,7 @@ const Zt = {
|
|
|
5216
5216
|
});
|
|
5217
5217
|
let p = Math.max(
|
|
5218
5218
|
...[...this.reportData.windSpeed, ...this.reportData.lastYearWindSpeed].filter((m) => typeof m == "number" && !isNaN(m))
|
|
5219
|
-
), g = Math.min(...[...this.reportData.windSpeed, ...this.reportData.lastYearWindSpeed].filter((m) => typeof m == "number" && !isNaN(m))) > 0 ? 0 : Math.min(...[...this.reportData.windSpeed, ...this.reportData.lastYearWindSpeed].filter((m) => typeof m == "number" && !isNaN(m))), k = Math.ceil((p + 1) / 5) * 5, z = Math.ceil((k - g) / 5), v = Math.max(...[...this.reportData.precip, ...this.reportData.lastYearPrecip].filter((m) => typeof m == "number" && !isNaN(m))),
|
|
5219
|
+
), g = Math.min(...[...this.reportData.windSpeed, ...this.reportData.lastYearWindSpeed].filter((m) => typeof m == "number" && !isNaN(m))) > 0 ? 0 : Math.min(...[...this.reportData.windSpeed, ...this.reportData.lastYearWindSpeed].filter((m) => typeof m == "number" && !isNaN(m))), k = Math.ceil((p + 1) / 5) * 5, z = Math.ceil((k - g) / 5), v = Math.max(...[...this.reportData.precip, ...this.reportData.lastYearPrecip].filter((m) => typeof m == "number" && !isNaN(m))), B = 0, C = Math.ceil(v * 2 / 5) * 5, S = Math.ceil((C - B) / 5);
|
|
5220
5220
|
o = [
|
|
5221
5221
|
{
|
|
5222
5222
|
name: this.locale === "zhHans" ? "风速" : "Wind",
|
|
@@ -5409,7 +5409,7 @@ const Zt = {
|
|
|
5409
5409
|
type: "value",
|
|
5410
5410
|
name: this.locale === "zhHans" ? "降水量 ( mm ) " : "Precipitation ( mm ) ",
|
|
5411
5411
|
show: !0,
|
|
5412
|
-
min:
|
|
5412
|
+
min: B,
|
|
5413
5413
|
max: C,
|
|
5414
5414
|
interval: S,
|
|
5415
5415
|
splitNumber: 5,
|
|
@@ -5616,7 +5616,7 @@ const Zt = {
|
|
|
5616
5616
|
style: { width: "109px" }
|
|
5617
5617
|
};
|
|
5618
5618
|
function aa(i, t, e, r, d, o) {
|
|
5619
|
-
var p, h, g, k, z, v, T,
|
|
5619
|
+
var p, h, g, k, z, v, T, B, C, S, D, L, M, E, A, U, I, _, $, R;
|
|
5620
5620
|
const c = p2("IdmLoading");
|
|
5621
5621
|
return w(), x("div", {
|
|
5622
5622
|
class: b(["idm-spot-seasonal-report", e.theme === "dark" ? "dark" : "light"])
|
|
@@ -5699,7 +5699,7 @@ function aa(i, t, e, r, d, o) {
|
|
|
5699
5699
|
a("span", {
|
|
5700
5700
|
class: b(["label-color", e.theme === "dark" ? "dark" : "light"])
|
|
5701
5701
|
}, l(e.locale === "zhHans" ? "小雨:" : "Light (<10mm):"), 3),
|
|
5702
|
-
f(" " + l((
|
|
5702
|
+
f(" " + l((B = (T = (v = e.reportData) == null ? void 0 : v.precip) == null ? void 0 : T.filter((y) => y < 10)) == null ? void 0 : B.length) + " days", 1)
|
|
5703
5703
|
]),
|
|
5704
5704
|
a("div", p4, [
|
|
5705
5705
|
a("span", {
|
|
@@ -5850,7 +5850,7 @@ function aa(i, t, e, r, d, o) {
|
|
|
5850
5850
|
}
|
|
5851
5851
|
const ia = /* @__PURE__ */ U1(Zt, [["render", aa], ["__scopeId", "data-v-0c5657c8"]]), l8 = {
|
|
5852
5852
|
install(i) {
|
|
5853
|
-
i.component("ForecastReport",
|
|
5853
|
+
i.component("ForecastReport", be), i.component("HistoricalReport", Ut), i.component("SeasonalReport", ia);
|
|
5854
5854
|
}
|
|
5855
5855
|
};
|
|
5856
5856
|
const la = {
|
|
@@ -7561,7 +7561,7 @@ const la = {
|
|
|
7561
7561
|
}
|
|
7562
7562
|
},
|
|
7563
7563
|
handleDrawHurricaneMarker() {
|
|
7564
|
-
var r, d, o, c, p, h, g, k, z, v, T,
|
|
7564
|
+
var r, d, o, c, p, h, g, k, z, v, T, B, C, S, D, L, M, E, A, U, I, _, $, R;
|
|
7565
7565
|
const i = G2.interpolate(this.tropicals, 1), t = JSON.parse(JSON.stringify(i)), e = [];
|
|
7566
7566
|
if (t.forEach((y) => {
|
|
7567
7567
|
var H, P, s;
|
|
@@ -7577,13 +7577,13 @@ const la = {
|
|
|
7577
7577
|
return ((J = Y.properties) == null ? void 0 : J.name) === y && (Y.properties.disabled = ((X = Y.properties) == null ? void 0 : X.model) !== P), Y;
|
|
7578
7578
|
});
|
|
7579
7579
|
}), this.interpolateData = JSON.parse(JSON.stringify(t)), (r = this.interpolateMarkers) == null || r.forEach((y) => y == null ? void 0 : y.remove()), this.interpolateMarkers = [], (d = this.interpolateData) != null && d.length && this.tropicals.active) {
|
|
7580
|
-
const y = this.interpolateData.filter((H) => H.properties.date === this.ts && !H.properties.disabled);
|
|
7580
|
+
const y = this.interpolateData.filter((H) => H.properties.date === N(this.ts).utc().format("yyyy-MM-DDTHH:00:00[Z]") && !H.properties.disabled);
|
|
7581
7581
|
this.interpolateData.forEach((H) => {
|
|
7582
7582
|
});
|
|
7583
7583
|
for (const H of y)
|
|
7584
7584
|
if (!H.properties.disabled) {
|
|
7585
7585
|
let P = "#f44336";
|
|
7586
|
-
((c = (o = H.properties) == null ? void 0 : o.wind) == null ? void 0 : c.kts) < 32 || !((h = (p = H.properties) == null ? void 0 : p.wind) != null && h.kts) ? P = "#03f869" : ((k = (g = H.properties) == null ? void 0 : g.wind) == null ? void 0 : k.kts) >= 32 && ((v = (z = H.properties) == null ? void 0 : z.wind) == null ? void 0 : v.kts) < 47 ? P = "#f2f202" : ((
|
|
7586
|
+
((c = (o = H.properties) == null ? void 0 : o.wind) == null ? void 0 : c.kts) < 32 || !((h = (p = H.properties) == null ? void 0 : p.wind) != null && h.kts) ? P = "#03f869" : ((k = (g = H.properties) == null ? void 0 : g.wind) == null ? void 0 : k.kts) >= 32 && ((v = (z = H.properties) == null ? void 0 : z.wind) == null ? void 0 : v.kts) < 47 ? P = "#f2f202" : ((B = (T = H.properties) == null ? void 0 : T.wind) == null ? void 0 : B.kts) >= 47 && ((S = (C = H.properties) == null ? void 0 : C.wind) == null ? void 0 : S.kts) < 63 ? P = "#ff9100" : ((L = (D = H.properties) == null ? void 0 : D.wind) == null ? void 0 : L.kts) >= 63 && ((E = (M = H.properties) == null ? void 0 : M.wind) == null ? void 0 : E.kts) < 79 ? P = "#f44336" : ((U = (A = H.properties) == null ? void 0 : A.wind) == null ? void 0 : U.kts) >= 79 && ((_ = (I = H.properties) == null ? void 0 : I.wind) == null ? void 0 : _.kts) < 94 ? P = "#f903d0" : ((R = ($ = H.properties) == null ? void 0 : $.wind) == null ? void 0 : R.kts) >= 94 ? P = "#8702f9" : P = "#f44336";
|
|
7587
7587
|
const s = `<svg t="1719918955501"
|
|
7588
7588
|
class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="18382"
|
|
7589
7589
|
xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
|
|
@@ -7706,8 +7706,8 @@ function $6(i) {
|
|
|
7706
7706
|
}
|
|
7707
7707
|
function Z6(i, t, e) {
|
|
7708
7708
|
if (i !== null)
|
|
7709
|
-
for (var r, d, o, c, p, h, g, k = 0, z = 0, v, T = i.type,
|
|
7710
|
-
g =
|
|
7709
|
+
for (var r, d, o, c, p, h, g, k = 0, z = 0, v, T = i.type, B = T === "FeatureCollection", C = T === "Feature", S = B ? i.features.length : 1, D = 0; D < S; D++) {
|
|
7710
|
+
g = B ? i.features[D].geometry : C ? i.geometry : i, v = g ? g.type === "GeometryCollection" : !1, p = v ? g.geometries.length : 1;
|
|
7711
7711
|
for (var L = 0; L < p; L++) {
|
|
7712
7712
|
var M = 0, E = 0;
|
|
7713
7713
|
if (c = v ? g.geometries[L] : g, c !== null) {
|
|
@@ -8021,7 +8021,7 @@ const wa = {
|
|
|
8021
8021
|
const p = [];
|
|
8022
8022
|
(c = (o = (d = this.tropicals) == null ? void 0 : d.data) == null ? void 0 : o.features) == null || c.forEach((h) => {
|
|
8023
8023
|
var g, k, z;
|
|
8024
|
-
((g = h == null ? void 0 : h.properties) == null ? void 0 : g.type) === "forecast" && !h.properties.disabled && ((k = h == null ? void 0 : h.geometry) == null ? void 0 : k.type) === "Point" &&
|
|
8024
|
+
((g = h == null ? void 0 : h.properties) == null ? void 0 : g.type) === "forecast" && !h.properties.disabled && ((k = h == null ? void 0 : h.geometry) == null ? void 0 : k.type) === "Point" && N(h.properties.date).diff(N(), "hour") <= 123 && p.push((z = h == null ? void 0 : h.geometry) == null ? void 0 : z.coordinates);
|
|
8025
8025
|
}), i = B2.calculateBBox([p]), t = B2.calculateCenter([p]);
|
|
8026
8026
|
}
|
|
8027
8027
|
g2.accessToken = "pk.eyJ1IjoibmVhdGNoZW5oZW5nIiwiYSI6ImNsdXM3cnBmODBsemgycW1vaXc1bjV6bXMifQ.w6fqHGRbhNhLvm0LnX4ZVw";
|
|
@@ -9590,9 +9590,9 @@ const wa = {
|
|
|
9590
9590
|
}, 500);
|
|
9591
9591
|
else {
|
|
9592
9592
|
if (this.tropicals) {
|
|
9593
|
-
const
|
|
9593
|
+
const B = (/* @__PURE__ */ new Date()).valueOf();
|
|
9594
9594
|
let C = 0, S = 0;
|
|
9595
|
-
if ((i = this.map) != null && i.getSource(this.source) ? ((e = this.map) == null || e.getSource(this.source).setData((t = this.tropicals) != null && t.active ? this.tropicals.data : this.empty), S = (/* @__PURE__ */ new Date()).valueOf() - (
|
|
9595
|
+
if ((i = this.map) != null && i.getSource(this.source) ? ((e = this.map) == null || e.getSource(this.source).setData((t = this.tropicals) != null && t.active ? this.tropicals.data : this.empty), S = (/* @__PURE__ */ new Date()).valueOf() - (B + C), console.log("[tropicals] update elapsed: ", S, ", total: ", C += S)) : (this.map.addSource(this.source, {
|
|
9596
9596
|
type: "geojson",
|
|
9597
9597
|
data: (r = this.tropicals) != null && r.active ? (d = this.tropicals) == null ? void 0 : d.data : this.empty
|
|
9598
9598
|
}), this.map.addLayer({
|
|
@@ -9689,8 +9689,8 @@ const wa = {
|
|
|
9689
9689
|
],
|
|
9690
9690
|
"text-halo-width": 4
|
|
9691
9691
|
}
|
|
9692
|
-
}), S = (/* @__PURE__ */ new Date()).valueOf() - (
|
|
9693
|
-
(p = this.map) == null || p.getSource(this.clusterSource).setData((c = this.tropicals) != null && c.active ? this.tropicals.data : this.empty), S = (/* @__PURE__ */ new Date()).valueOf() - (
|
|
9692
|
+
}), S = (/* @__PURE__ */ new Date()).valueOf() - (B + C), console.log("[tropical] add elapsed: ", S, ", total: ", C += S)), (o = this.map) != null && o.getSource(this.clusterSource))
|
|
9693
|
+
(p = this.map) == null || p.getSource(this.clusterSource).setData((c = this.tropicals) != null && c.active ? this.tropicals.data : this.empty), S = (/* @__PURE__ */ new Date()).valueOf() - (B + C), console.log("[tropical] update elapsed: ", S, ", total: ", C += S);
|
|
9694
9694
|
else {
|
|
9695
9695
|
if (this.map.addSource(this.clusterSource, {
|
|
9696
9696
|
type: "geojson",
|
|
@@ -9818,7 +9818,7 @@ const wa = {
|
|
|
9818
9818
|
"text-halo-color": "#0033ff",
|
|
9819
9819
|
"text-halo-width": 4
|
|
9820
9820
|
}
|
|
9821
|
-
}), S = (/* @__PURE__ */ new Date()).valueOf() - (
|
|
9821
|
+
}), S = (/* @__PURE__ */ new Date()).valueOf() - (B + C), console.log("[tropical] add elapsed: ", S, ", total: ", C += S);
|
|
9822
9822
|
}
|
|
9823
9823
|
}
|
|
9824
9824
|
this.handleDrawCircle();
|
|
@@ -9827,9 +9827,9 @@ const wa = {
|
|
|
9827
9827
|
}
|
|
9828
9828
|
},
|
|
9829
9829
|
handleDateChange() {
|
|
9830
|
-
var i, t, e, r, d, o, c, p, h, g, k, z, v, T,
|
|
9830
|
+
var i, t, e, r, d, o, c, p, h, g, k, z, v, T, B, C, S, D, L, M, E, A, U, I, _, $, R, y, H, P, s, Y;
|
|
9831
9831
|
if ((i = this.interpolateMarkers) == null || i.forEach((m) => m == null ? void 0 : m.remove()), this.circleSourceData.features = [], (t = this.interpolateData) != null && t.length && this.tropicals.active) {
|
|
9832
|
-
const m =
|
|
9832
|
+
const m = N(this.ts).utc().set({ minute: 0, second: 0, millisecond: 0 }), J = N.utc().add(1, "hour").set({ minute: 0, second: 0, millisecond: 0 }), X = m.isBefore(J) && J.diff(m, "h") < 2 ? J.format() : m.format(), j = this.interpolateData.filter((O) => O.properties.date === X && !O.properties.disabled), l1 = this.handleComputePolygons(j), e1 = P2([...j]);
|
|
9833
9833
|
l1.forEach((O) => {
|
|
9834
9834
|
e1.features.push(O);
|
|
9835
9835
|
}), (e = this.map) != null && e.getSource(this.interpolateSource) ? (r = this.map) == null || r.getSource(this.interpolateSource).setData(e1) : ((d = this.map) == null || d.addSource(this.interpolateSource, {
|
|
@@ -9853,7 +9853,7 @@ const wa = {
|
|
|
9853
9853
|
return q.properties.name === ((K = O.properties) == null ? void 0 : K.name);
|
|
9854
9854
|
}) || t1.push(O), !O.properties.disabled) {
|
|
9855
9855
|
let q = "#f44336";
|
|
9856
|
-
((p = (c = O.properties) == null ? void 0 : c.wind) == null ? void 0 : p.kts) < 32 || !((g = (h = O.properties) == null ? void 0 : h.wind) != null && g.kts) ? q = "#03f869" : ((z = (k = O.properties) == null ? void 0 : k.wind) == null ? void 0 : z.kts) >= 32 && ((T = (v = O.properties) == null ? void 0 : v.wind) == null ? void 0 : T.kts) < 47 ? q = "#f2f202" : ((C = (
|
|
9856
|
+
((p = (c = O.properties) == null ? void 0 : c.wind) == null ? void 0 : p.kts) < 32 || !((g = (h = O.properties) == null ? void 0 : h.wind) != null && g.kts) ? q = "#03f869" : ((z = (k = O.properties) == null ? void 0 : k.wind) == null ? void 0 : z.kts) >= 32 && ((T = (v = O.properties) == null ? void 0 : v.wind) == null ? void 0 : T.kts) < 47 ? q = "#f2f202" : ((C = (B = O.properties) == null ? void 0 : B.wind) == null ? void 0 : C.kts) >= 47 && ((D = (S = O.properties) == null ? void 0 : S.wind) == null ? void 0 : D.kts) < 63 ? q = "#ff9100" : ((M = (L = O.properties) == null ? void 0 : L.wind) == null ? void 0 : M.kts) >= 63 && ((A = (E = O.properties) == null ? void 0 : E.wind) == null ? void 0 : A.kts) < 79 ? q = "#f44336" : ((I = (U = O.properties) == null ? void 0 : U.wind) == null ? void 0 : I.kts) >= 79 && (($ = (_ = O.properties) == null ? void 0 : _.wind) == null ? void 0 : $.kts) < 94 ? q = "#f903d0" : ((y = (R = O.properties) == null ? void 0 : R.wind) == null ? void 0 : y.kts) >= 94 ? q = "#8702f9" : q = "#f44336";
|
|
9857
9857
|
const K = `<svg t="1719918955501"
|
|
9858
9858
|
class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="18382"
|
|
9859
9859
|
xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
|
|
@@ -10028,8 +10028,8 @@ const va = /* @__PURE__ */ U1(wa, [["render", xa]]), za = {
|
|
|
10028
10028
|
let r = document.getElementById(this.id);
|
|
10029
10029
|
this.chart = n1.init(r);
|
|
10030
10030
|
}
|
|
10031
|
-
const i = Number(
|
|
10032
|
-
|
|
10031
|
+
const i = Number(N(this.xAxis[0]).utc().format("x")) - 8 * 60 * 60 * 1e3, t = Number(
|
|
10032
|
+
N(this.xAxis[this.xAxis.length - 1]).utc().format("x")
|
|
10033
10033
|
) - 8 * 60 * 60 * 1e3;
|
|
10034
10034
|
let e = {
|
|
10035
10035
|
title: {
|
|
@@ -10066,7 +10066,7 @@ const va = /* @__PURE__ */ U1(wa, [["render", xa]]), za = {
|
|
|
10066
10066
|
axisLabel: {
|
|
10067
10067
|
show: !0,
|
|
10068
10068
|
formatter: function(r, d) {
|
|
10069
|
-
const o =
|
|
10069
|
+
const o = N(r).format("MMM-DD"), c = N(r).format("HH");
|
|
10070
10070
|
return c === "00" || d === 0 ? o : c;
|
|
10071
10071
|
},
|
|
10072
10072
|
fontSize: "11px"
|
|
@@ -10161,7 +10161,7 @@ const _a = {
|
|
|
10161
10161
|
computeTime() {
|
|
10162
10162
|
return function(i) {
|
|
10163
10163
|
if (i) {
|
|
10164
|
-
const t =
|
|
10164
|
+
const t = N(i).utc();
|
|
10165
10165
|
return `${t.format("yyyy-MM-DD HH:mm[Z]")} ( ${t == null ? void 0 : t.fromNow()} )`;
|
|
10166
10166
|
}
|
|
10167
10167
|
return "-";
|
|
@@ -10174,7 +10174,7 @@ const _a = {
|
|
|
10174
10174
|
},
|
|
10175
10175
|
computeHours() {
|
|
10176
10176
|
return function(i, t) {
|
|
10177
|
-
return
|
|
10177
|
+
return N(t).add(i, "h").utc().format("MMMDD/HH[Z]");
|
|
10178
10178
|
};
|
|
10179
10179
|
},
|
|
10180
10180
|
// 经纬度转换
|
|
@@ -10251,7 +10251,7 @@ const _a = {
|
|
|
10251
10251
|
},
|
|
10252
10252
|
methods: {
|
|
10253
10253
|
async prepare() {
|
|
10254
|
-
var d, o, c, p, h, g, k, z, v, T,
|
|
10254
|
+
var d, o, c, p, h, g, k, z, v, T, B, C, S, D;
|
|
10255
10255
|
this.loading = !0;
|
|
10256
10256
|
const i = G2.convert2Geojson([this.report]);
|
|
10257
10257
|
this.model && (i.features = i.features.filter((L) => {
|
|
@@ -10267,8 +10267,8 @@ const _a = {
|
|
|
10267
10267
|
etime: this.ts,
|
|
10268
10268
|
version: Math.random() + 1,
|
|
10269
10269
|
center: [(g = this.center) == null ? void 0 : g.lng, (k = this.center) == null ? void 0 : k.lat]
|
|
10270
|
-
}, this.activeForecast = this.model ? ((v = (z = this.report) == null ? void 0 : z.forecasts) == null ? void 0 : v.filter((L) => L.model === this.model)[0]) || ((
|
|
10271
|
-
const e =
|
|
10270
|
+
}, this.activeForecast = this.model ? ((v = (z = this.report) == null ? void 0 : z.forecasts) == null ? void 0 : v.filter((L) => L.model === this.model)[0]) || ((B = (T = this.report) == null ? void 0 : T.forecasts) == null ? void 0 : B[0]) : (S = (C = this.report) == null ? void 0 : C.forecasts) == null ? void 0 : S[0], this.activeForecast.sample = [];
|
|
10271
|
+
const e = N((D = this.activeForecast) == null ? void 0 : D.date);
|
|
10272
10272
|
let r = 0;
|
|
10273
10273
|
for (const L in this.activeForecast.hours)
|
|
10274
10274
|
if (r < 8) {
|
|
@@ -10280,18 +10280,18 @@ const _a = {
|
|
|
10280
10280
|
},
|
|
10281
10281
|
async fetchData() {
|
|
10282
10282
|
var p;
|
|
10283
|
-
const i = this.ts ?
|
|
10283
|
+
const i = this.ts ? N(Number(this.ts)).utc().format("YYYY-MM-DD HH") : N().utc().format("YYYY-MM-DD HH");
|
|
10284
10284
|
for (let h in this.records)
|
|
10285
|
-
|
|
10286
|
-
let t = this.computeHourSubscript(
|
|
10285
|
+
N(this.activeForecast.date).add(h, "h").utc().format("YYYY-MM-DD HH") === i && this.$emit("center", this.records[h]);
|
|
10286
|
+
let t = this.computeHourSubscript(N(this.activeForecast.date).utc().format("H"));
|
|
10287
10287
|
const e = [], r = [];
|
|
10288
10288
|
let d = [], o = [], c = [];
|
|
10289
10289
|
for (let h in this.records) {
|
|
10290
|
-
const g = this.records[h], k =
|
|
10290
|
+
const g = this.records[h], k = N(this.activeForecast.date).add(h, "h").utc(), z = this.computeHourSubscript(N(k).format("H")), v = `${N(k).format("YYYY-MM-DD")} ${this.hourSubscript[z]}:00:00`;
|
|
10291
10291
|
t === z ? (o.push([v, g.wind.kts]), c.push([v, g.pressure]), d.push([v, g.wind.kts])) : (e.push(d), t = z, d = [], o = [], c = [], d.push([v, g.wind.kts]), o.push([v, g.wind.kts]), c.push([v, g.pressure]), this.xAxis.push(k));
|
|
10292
10292
|
}
|
|
10293
10293
|
for (let h in this.activeForecast.hours) {
|
|
10294
|
-
const g = this.activeForecast.hours[h], k =
|
|
10294
|
+
const g = this.activeForecast.hours[h], k = N(this.activeForecast.date).add(h, "h").utc(), z = this.computeHourSubscript(N(k).format("H")), v = `${N(k).format("YYYY-MM-DD")} ${this.hourSubscript[z]}:00:00`;
|
|
10295
10295
|
r.push([v, ((p = g.gusts) == null ? void 0 : p.kts) ?? "-"]);
|
|
10296
10296
|
}
|
|
10297
10297
|
this.fetchProbabilityData(e);
|
|
@@ -10307,14 +10307,14 @@ const _a = {
|
|
|
10307
10307
|
supty: []
|
|
10308
10308
|
};
|
|
10309
10309
|
i.forEach((e) => {
|
|
10310
|
-
var k, z, v, T,
|
|
10310
|
+
var k, z, v, T, B, C;
|
|
10311
10311
|
let r = 0, d = 0, o = 0, c = 0, p = 0, h = 0;
|
|
10312
10312
|
e.forEach((S) => {
|
|
10313
10313
|
const D = S[1];
|
|
10314
10314
|
D <= 32 ? r++ : D < 47 ? d++ : D < 63 ? o++ : D < 79 ? c++ : D < 94 ? p++ : D >= 94 && h++;
|
|
10315
10315
|
});
|
|
10316
10316
|
const g = e.length;
|
|
10317
|
-
t.td.push([(k = e[0]) == null ? void 0 : k[0], v1.roundPrecision(r / g, 2) * 100]), t.ts.push([(z = e[0]) == null ? void 0 : z[0], v1.roundPrecision(d / g, 2) * 100]), t.sts.push([(v = e[0]) == null ? void 0 : v[0], v1.roundPrecision(o / g, 2) * 100]), t.ty.push([(T = e[0]) == null ? void 0 : T[0], v1.roundPrecision(c / g, 2) * 100]), t.sty.push([(
|
|
10317
|
+
t.td.push([(k = e[0]) == null ? void 0 : k[0], v1.roundPrecision(r / g, 2) * 100]), t.ts.push([(z = e[0]) == null ? void 0 : z[0], v1.roundPrecision(d / g, 2) * 100]), t.sts.push([(v = e[0]) == null ? void 0 : v[0], v1.roundPrecision(o / g, 2) * 100]), t.ty.push([(T = e[0]) == null ? void 0 : T[0], v1.roundPrecision(c / g, 2) * 100]), t.sty.push([(B = e[0]) == null ? void 0 : B[0], v1.roundPrecision(p / g, 2) * 100]), t.supty.push([(C = e[0]) == null ? void 0 : C[0], v1.roundPrecision(h / g, 2) * 100]);
|
|
10318
10318
|
}), this.probabilitySeries = [
|
|
10319
10319
|
{
|
|
10320
10320
|
name: "SuperTY [>94kts]",
|
|
@@ -10385,8 +10385,8 @@ const _a = {
|
|
|
10385
10385
|
];
|
|
10386
10386
|
},
|
|
10387
10387
|
async interpolatedRecord(i, t, e = 3) {
|
|
10388
|
-
var p, h, g, k, z, v, T,
|
|
10389
|
-
const r =
|
|
10388
|
+
var p, h, g, k, z, v, T, B, C, S, D, L, M, E, A, U, I, _, $, R, y, H, P, s, Y, m, J, X;
|
|
10389
|
+
const r = N(i).set({ second: 0 }).utc();
|
|
10390
10390
|
let d = e - (r.get("hour") * 60 + r.get("minute")) % (e * 60) / 60, o;
|
|
10391
10391
|
const c = {};
|
|
10392
10392
|
for (; o = this.computeCandidateIndex(t, d), o.next !== -1 || d === o.prev; ) {
|
|
@@ -10396,7 +10396,7 @@ const _a = {
|
|
|
10396
10396
|
lat: this.computeInterpolateValue((g = t[o.prev]) == null ? void 0 : g.lat, (k = t[o.next]) == null ? void 0 : k.lat, j),
|
|
10397
10397
|
lng: this.computeInterpolateValue((z = t[o.prev]) == null ? void 0 : z.lng, (v = t[o.next]) == null ? void 0 : v.lng, j),
|
|
10398
10398
|
movement: {
|
|
10399
|
-
deg: this.computeInterpolateValue((
|
|
10399
|
+
deg: this.computeInterpolateValue((B = (T = t[o.prev]) == null ? void 0 : T.movement) == null ? void 0 : B.deg, (S = (C = t[o.next]) == null ? void 0 : C.movement) == null ? void 0 : S.deg, j),
|
|
10400
10400
|
kts: this.computeInterpolateValue((L = (D = t[o.prev]) == null ? void 0 : D.movement) == null ? void 0 : L.kts, (E = (M = t[o.next]) == null ? void 0 : M.movement) == null ? void 0 : E.kts, j)
|
|
10401
10401
|
},
|
|
10402
10402
|
pressure: this.computeInterpolateValue((A = t[o.prev]) == null ? void 0 : A.pressure, (U = t[o.next]) == null ? void 0 : U.pressure, j),
|
|
@@ -10412,7 +10412,7 @@ const _a = {
|
|
|
10412
10412
|
}
|
|
10413
10413
|
}, Da = { class: "typhoon-report" }, La = { class: "content-box" }, Ha = { class: "row" }, Sa = { class: "info-box" }, Aa = { class: "title-card bg-blue-light-2" }, Ca = { class: "item" }, Na = { class: "name" }, Ba = { class: "type" }, Ta = { class: "info" }, Ea = { class: "item" }, Pa = { style: { flex: "4" } }, Wa = { style: { flex: "6" } }, Ia = { class: "item" }, Oa = { style: { flex: "4" } }, Va = { style: { flex: "6" } }, Ra = { class: "echart-container" }, Ga = { class: "orm-report-table typ-table" };
|
|
10414
10414
|
function $a(i, t, e, r, d, o) {
|
|
10415
|
-
var k, z, v, T,
|
|
10415
|
+
var k, z, v, T, B, C, S, D, L, M, E, A, U, I;
|
|
10416
10416
|
const c = p2("IdmBrand"), p = p2("MiniMap"), h = p2("Mapbox"), g = p2("Echart");
|
|
10417
10417
|
return w(), x("div", Da, [
|
|
10418
10418
|
f2(c, { name: "Tropical Cyclone Strike Probability Report" }),
|
|
@@ -10424,7 +10424,7 @@ function $a(i, t, e, r, d, o) {
|
|
|
10424
10424
|
a("div", null, [
|
|
10425
10425
|
a("span", Na, l((k = e.report) == null ? void 0 : k.name), 1),
|
|
10426
10426
|
t[0] || (t[0] = f(" , ", -1)),
|
|
10427
|
-
a("span", Ba, l((
|
|
10427
|
+
a("span", Ba, l((B = (T = (v = (z = e.report) == null ? void 0 : z.history) == null ? void 0 : v[0]) == null ? void 0 : T.type) == null ? void 0 : B.type), 1),
|
|
10428
10428
|
a("span", null, " [ " + l((C = this.model) == null ? void 0 : C.toUpperCase()) + " ]", 1)
|
|
10429
10429
|
]),
|
|
10430
10430
|
a("div", Ta, [
|
|
@@ -10454,7 +10454,7 @@ function $a(i, t, e, r, d, o) {
|
|
|
10454
10454
|
])
|
|
10455
10455
|
])
|
|
10456
10456
|
]),
|
|
10457
|
-
t[6] || (t[6] = I2('<div class="legend-card bg-blue-light-2 text-label" data-v-
|
|
10457
|
+
t[6] || (t[6] = I2('<div class="legend-card bg-blue-light-2 text-label" data-v-d4309431><div class="item" data-v-d4309431><div class="legend" data-v-d4309431><div class="icon history" data-v-d4309431></div><div class="label" data-v-d4309431>Past Track</div></div><div class="legend" data-v-d4309431><div class="icon forecast" data-v-d4309431></div><div class="label" data-v-d4309431>Forecast Track</div></div><div class="legend" data-v-d4309431><div class="icon td" data-v-d4309431></div><div class="label" data-v-d4309431>TD</div></div><div class="legend" data-v-d4309431><div class="icon ts" data-v-d4309431></div><div class="label" data-v-d4309431>TS</div></div><div class="legend" data-v-d4309431><div class="icon sts" data-v-d4309431></div><div class="label" data-v-d4309431>STS</div></div><div class="legend" data-v-d4309431><div class="icon ty" data-v-d4309431></div><div class="label" data-v-d4309431>TY</div></div><div class="legend" data-v-d4309431><div class="icon sty" data-v-d4309431></div><div class="label" data-v-d4309431>STY</div></div><div class="legend" data-v-d4309431><div class="icon supper-ty" data-v-d4309431></div><div class="label" data-v-d4309431>Super TY</div></div><div class="legend" data-v-d4309431><div class="icon r7" data-v-d4309431></div><div class="label" data-v-d4309431>35kts Radii</div></div><div class="legend" data-v-d4309431><div class="icon r10" data-v-d4309431></div><div class="label" data-v-d4309431>50kts Radii</div></div></div></div>', 1))
|
|
10458
10458
|
]),
|
|
10459
10459
|
t[7] || (t[7] = a("div", {
|
|
10460
10460
|
id: "miniMap",
|
|
@@ -10523,7 +10523,7 @@ function $a(i, t, e, r, d, o) {
|
|
|
10523
10523
|
t[10] || (t[10] = a("div", { class: "report-tips text-tips" }, " * The report is for reference only. All the material is an advisory provided so as to assist the Master in making the final route decision. ", -1))
|
|
10524
10524
|
]);
|
|
10525
10525
|
}
|
|
10526
|
-
const Ya = /* @__PURE__ */ U1(_a, [["render", $a], ["__scopeId", "data-v-
|
|
10526
|
+
const Ya = /* @__PURE__ */ U1(_a, [["render", $a], ["__scopeId", "data-v-d4309431"]]), s8 = {
|
|
10527
10527
|
install(i) {
|
|
10528
10528
|
i.component("TropicalReport", Ya);
|
|
10529
10529
|
}
|
|
@@ -10576,7 +10576,7 @@ const Za = /* @__PURE__ */ U1(ja, [["render", Ua]]), o8 = {
|
|
|
10576
10576
|
};
|
|
10577
10577
|
export {
|
|
10578
10578
|
t8 as BrandPlugin,
|
|
10579
|
-
|
|
10579
|
+
be as ForecastReport,
|
|
10580
10580
|
Ut as HistoricalReport,
|
|
10581
10581
|
$2 as IdmBrand,
|
|
10582
10582
|
Y2 as IdmLoading,
|