@idmui/basic 0.8.2 → 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 CHANGED
@@ -1,4 +1,4 @@
1
- import B from "moment";
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 B.utc(i).format(t);
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 B.utc(i).format(t);
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 = B.tz(i, this.positionGmt);
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 = B(i).utc();
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 = B.tz(i, t);
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 = B.tz(i, this.positionGmt);
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 = B.tz(i, t);
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, N, 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 = B.tz(d, this.positionGmt)) == null ? void 0 : z.set({ hour: 0, minute: 0, second: 0, millisecond: 0 })) == null ? void 0 : v.format();
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 = B(k).clone().add(f1, "h").format();
346
+ const V1 = N(k).clone().add(f1, "h").format();
347
347
  (T = this.meteogramData) == null || T.dates.push(V1);
348
- const Q = ((N = y2.pickHourly(i, V1)) == null ? void 0 : N[0]) || {};
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 = B.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) {
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>${B.tz((t2 = this.meteogramData) == null ? void 0 : t2.dates[L1], this.positionGmt).format("MMM-DD/HHmm[LT]")}</strong></div>
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>${B.tz((_2 = this.meteogramData) == null ? void 0 : _2.dates[L1], this.positionGmt).format("MMM-DD/HHmm[LT]")}</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>${B.tz((e2 = this.meteogramData) == null ? void 0 : e2.dates[L1], this.positionGmt).format("MMM-DD/HHmm[LT]")}</strong></div>
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 N;
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>${B.tz((e2 = this.meteogramData) == null ? void 0 : e2.dates[L1], this.positionGmt).format("MMM-DD/HHmm[LT]")}</strong></div>
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") && (N = n1.init(document.getElementById("waveChart")), N.setOption(r));
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, N, 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;
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 = B.tz(r, this.positionGmt)) == null ? void 0 : c.set({ hour: 0, minute: 0, second: 0, millisecond: 0 })) == null ? void 0 : p.format();
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 = B.tz(d, this.positionGmt).clone().add(d1, "h").format(), 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((N = (T = n == null ? void 0 : n.weather) == null ? void 0 : T.wind) == null ? void 0 : N.kts, 1) ?? "-",
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) ?? "-",
@@ -1953,7 +1953,7 @@ const b3 = {
1953
1953
  style: { width: "126px" }
1954
1954
  };
1955
1955
  function ye(i, t, e, r, d, o) {
1956
- var c, p, h, g, k, z, v, T, N, C, S, D, L, M, E, A, U, I, _, $, R, y, H, P;
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 ye(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((N = e.reportData) == null ? void 0 : N.forecastDays) + " " + l(e.locale === "zhHans" ? "天" : "Days"), 1)
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, [
@@ -2449,7 +2449,7 @@ const we = {
2449
2449
  computeHourLT() {
2450
2450
  return (i) => {
2451
2451
  if (i) {
2452
- const t = B.tz(i, this.positionGmt);
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 we = {
2458
2458
  computeUTCTime() {
2459
2459
  return (i, t = "MMM-DD/HHmm[Z], YYYY") => {
2460
2460
  if (i) {
2461
- const e = B(i).utc();
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 we = {
2467
2467
  computeMMMDDHHmmLT() {
2468
2468
  return (i, t) => {
2469
2469
  if (i) {
2470
- const e = B.tz(i, t);
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 we = {
2476
2476
  computeTzTime() {
2477
2477
  return (i, t) => {
2478
2478
  if (i) {
2479
- const e = B.tz(i, t);
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 we = {
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, N, 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 = B.tz(d, this.positionGmt)) == null ? void 0 : v.set({ hour: 0, minute: 0, second: 0, millisecond: 0 })) == null ? void 0 : T.format();
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 = B(z).clone().add(y1, "h").format();
2547
- (N = this.meteogramData) == null || N.dates.push($1);
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 = B.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) {
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 we = {
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>${B.tz((F1 = this.meteogramData) == null ? void 0 : F1.dates[j1], this.positionGmt).format("MMM-DD/HHmm[LT]")}</strong></div>
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 we = {
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>${B.tz((M1 = this.meteogramData) == null ? void 0 : M1.dates[j1], this.positionGmt).format("MMM-DD/HHmm[LT]")}</strong></div>
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>${B.tz((_1 = this.meteogramData) == null ? void 0 : _1.dates[j1], this.positionGmt).format("MMM-DD/HHmm[LT]")}</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 we = {
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>${B.tz((F1 = this.meteogramData) == null ? void 0 : F1.dates[j1], this.positionGmt).format("MMM-DD/HHmm[LT]")}</strong></div>
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 we = {
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>${B.tz((F1 = this.meteogramData) == null ? void 0 : F1.dates[j1], this.positionGmt).format("MMM-DD/HHmm[LT]")}</strong></div>
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 we = {
3785
3785
  }
3786
3786
  ]
3787
3787
  }, document.getElementById("waveEchart") && (T = n1.init(document.getElementById("waveEchart")), T.setOption(g));
3788
- let N;
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 we = {
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>${B.tz((F1 = this.meteogramData) == null ? void 0 : F1.dates[j1], this.positionGmt).format("MMM-DD/HHmm[LT]")}</strong></div>
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 we = {
4053
4053
  symbolSize: 0
4054
4054
  }
4055
4055
  ]
4056
- }, document.getElementById("currentEchart") && (N = n1.init(document.getElementById("currentEchart")), N.setOption(g));
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 we = {
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>${B.tz((F1 = this.meteogramData) == null ? void 0 : F1.dates[j1], this.positionGmt).format("MMM-DD/HHmm[LT]")}</strong></div>
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 we = {
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, N, 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;
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 = B.tz(r, this.positionGmt)) == null ? void 0 : c.set({ hour: 0, minute: 0, second: 0, millisecond: 0 })) == null ? void 0 : p.format();
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 = B.tz(d, this.positionGmt).clone().add(d1, "h").format(), 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((N = (T = n == null ? void 0 : n.weather) == null ? void 0 : T.wind) == null ? void 0 : N.kts, 1) ?? "-",
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) ?? "-",
@@ -4672,7 +4672,7 @@ const we = {
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, N, C, S, D, L, M, E, A, U, I, _, $, R, y, H, P;
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"])
@@ -4700,7 +4700,7 @@ function jt(i, t, e, r, d, o) {
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", Le, "UTC " + l((N = e.reportData) == null ? void 0 : N.positionOffset), 1)
4703
+ a("span", Le, "UTC " + l((B = e.reportData) == null ? void 0 : B.positionOffset), 1)
4704
4704
  ])
4705
4705
  ])
4706
4706
  ], 2)) : h1("", !0),
@@ -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 = B(i).utc();
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))), N = 0, C = Math.ceil(v * 2 / 5) * 5, S = Math.ceil((C - N) / 5);
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: N,
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, N, C, S, D, L, M, E, A, U, I, _, $, R;
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((N = (T = (v = e.reportData) == null ? void 0 : v.precip) == null ? void 0 : T.filter((y) => y < 10)) == null ? void 0 : N.length) + " days", 1)
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", {
@@ -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, N, C, S, D, L, M, E, A, U, I, _, $, R;
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" : ((N = (T = H.properties) == null ? void 0 : T.wind) == null ? void 0 : N.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";
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, N = T === "FeatureCollection", C = T === "Feature", S = N ? i.features.length : 1, D = 0; D < S; D++) {
7710
- g = N ? i.features[D].geometry : C ? i.geometry : i, v = g ? g.type === "GeometryCollection" : !1, p = v ? g.geometries.length : 1;
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" && B(h.properties.date).diff(B(), "hour") <= 123 && p.push((z = h == null ? void 0 : h.geometry) == null ? void 0 : z.coordinates);
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 N = (/* @__PURE__ */ new Date()).valueOf();
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() - (N + C), console.log("[tropicals] update elapsed: ", S, ", total: ", C += S)) : (this.map.addSource(this.source, {
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() - (N + 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() - (N + C), console.log("[tropical] update elapsed: ", S, ", total: ", C += S);
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() - (N + C), console.log("[tropical] add elapsed: ", S, ", total: ", C += S);
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, N, C, S, D, L, M, E, A, U, I, _, $, R, y, H, P, s, Y;
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 = B(this.ts).utc().set({ minute: 0, second: 0, millisecond: 0 }), J = B.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]);
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 = (N = O.properties) == null ? void 0 : N.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";
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(B(this.xAxis[0]).utc().format("x")) - 8 * 60 * 60 * 1e3, t = Number(
10032
- B(this.xAxis[this.xAxis.length - 1]).utc().format("x")
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 = B(r).format("MMM-DD"), c = B(r).format("HH");
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 = B(i).utc();
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 B(t).add(i, "h").utc().format("MMMDD/HH[Z]");
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, N, C, S, D;
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]) || ((N = (T = this.report) == null ? void 0 : T.forecasts) == null ? void 0 : N[0]) : (S = (C = this.report) == null ? void 0 : C.forecasts) == null ? void 0 : S[0], this.activeForecast.sample = [];
10271
- const e = B((D = this.activeForecast) == null ? void 0 : D.date);
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 ? B(Number(this.ts)).utc().format("YYYY-MM-DD HH") : B().utc().format("YYYY-MM-DD HH");
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
- B(this.activeForecast.date).add(h, "h").utc().format("YYYY-MM-DD HH") === i && this.$emit("center", this.records[h]);
10286
- let t = this.computeHourSubscript(B(this.activeForecast.date).utc().format("H"));
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 = B(this.activeForecast.date).add(h, "h").utc(), z = this.computeHourSubscript(B(k).format("H")), v = `${B(k).format("YYYY-MM-DD")} ${this.hourSubscript[z]}:00:00`;
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 = B(this.activeForecast.date).add(h, "h").utc(), z = this.computeHourSubscript(B(k).format("H")), v = `${B(k).format("YYYY-MM-DD")} ${this.hourSubscript[z]}:00:00`;
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, N, C;
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([(N = e[0]) == null ? void 0 : N[0], v1.roundPrecision(p / g, 2) * 100]), t.supty.push([(C = e[0]) == null ? void 0 : C[0], v1.roundPrecision(h / g, 2) * 100]);
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, N, C, S, D, L, M, E, A, U, I, _, $, R, y, H, P, s, Y, m, J, X;
10389
- const r = B(i).set({ second: 0 }).utc();
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((N = (T = t[o.prev]) == null ? void 0 : T.movement) == null ? void 0 : N.deg, (S = (C = t[o.next]) == null ? void 0 : C.movement) == null ? void 0 : S.deg, j),
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, N, C, S, D, L, M, E, A, U, I;
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((N = (T = (v = (z = e.report) == null ? void 0 : z.history) == null ? void 0 : v[0]) == null ? void 0 : T.type) == null ? void 0 : N.type), 1),
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, [