@idmwx/idmui-gl4 3.2.5 → 3.2.6

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.
@@ -1,15 +1,15 @@
1
1
  var nr = Object.defineProperty;
2
2
  var sr = (t, e, a) => e in t ? nr(t, e, { enumerable: !0, configurable: !0, writable: !0, value: a }) : t[e] = a;
3
- var ve = (t, e, a) => (sr(t, typeof e != "symbol" ? e + "" : e, a), a);
3
+ var we = (t, e, a) => (sr(t, typeof e != "symbol" ? e + "" : e, a), a);
4
4
  import Ie from "axios";
5
- import { useTheme as Ge } from "vuetify";
6
- import { openBlock as k, createElementBlock as I, resolveComponent as P, createBlock as W, normalizeClass as ge, withCtx as x, createVNode as w, withModifiers as Le, createElementVNode as n, createCommentVNode as G, toDisplayString as y, createTextVNode as Z, Fragment as Te, renderList as De, withDirectives as et, vShow as tt, mergeProps as $, normalizeStyle as he } from "vue";
5
+ import { useTheme as Fe } from "vuetify";
6
+ import { openBlock as k, createElementBlock as I, resolveComponent as P, createBlock as W, normalizeClass as ge, withCtx as x, createVNode as w, withModifiers as Le, createElementVNode as n, createCommentVNode as F, toDisplayString as y, createTextVNode as Z, Fragment as Te, renderList as De, withDirectives as et, vShow as tt, mergeProps as $, normalizeStyle as he } from "vue";
7
7
  import ye from "mapbox-gl";
8
8
  import D from "moment";
9
9
  import { LngLatHelper as j, TropicalHelper as bi, LaneHelper as Xe, GeoJsonHelper as je } from "@idm-plugin/geo";
10
- import { Meteo2Assist as Za, TidesAssist as Ei } from "@idm-plugin/meteo";
10
+ import { Meteo2Assist as Za, TidesAssist as Bi } from "@idm-plugin/meteo";
11
11
  import * as Ja from "echarts";
12
- import * as B from "@turf/turf";
12
+ import * as E from "@turf/turf";
13
13
  import { LayerHelper as Oa, CompanyHelper as cr } from "@idm-plugin/tag2";
14
14
  import mr from "@mapbox/sphericalmercator";
15
15
  import { LayerHelper as dr } from "@idm-plugin/tag";
@@ -35,7 +35,7 @@ const ie = (t, e) => {
35
35
  }
36
36
  },
37
37
  setup() {
38
- return { Theme: Ge() };
38
+ return { Theme: Fe() };
39
39
  },
40
40
  data() {
41
41
  return {
@@ -132,7 +132,7 @@ const fr = /* @__PURE__ */ ie(ur, [["render", gr]]), yr = {
132
132
  }
133
133
  },
134
134
  setup() {
135
- return { Theme: Ge() };
135
+ return { Theme: Fe() };
136
136
  },
137
137
  data() {
138
138
  return {
@@ -259,7 +259,7 @@ const wr = /* @__PURE__ */ ie(yr, [["render", br]]), xr = {
259
259
  }
260
260
  },
261
261
  setup() {
262
- return { Theme: Ge() };
262
+ return { Theme: Fe() };
263
263
  },
264
264
  data() {
265
265
  return {
@@ -360,7 +360,7 @@ const _r = {
360
360
  }
361
361
  },
362
362
  setup() {
363
- return { Theme: Ge() };
363
+ return { Theme: Fe() };
364
364
  },
365
365
  data() {
366
366
  return {
@@ -552,7 +552,7 @@ function zr(t, e, a, i, o, r) {
552
552
  })
553
553
  ]),
554
554
  _: 1
555
- }, 8, ["class"])) : G("", !0);
555
+ }, 8, ["class"])) : F("", !0);
556
556
  }
557
557
  const Cr = /* @__PURE__ */ ie(_r, [["render", zr]]);
558
558
  const Mr = {
@@ -594,7 +594,7 @@ const Mr = {
594
594
  emits: ["follow", "cancelFollow", "meteoMore", "close", "closeAllDetail"],
595
595
  setup() {
596
596
  return {
597
- Theme: Ge()
597
+ Theme: Fe()
598
598
  };
599
599
  },
600
600
  data() {
@@ -751,10 +751,10 @@ const Mr = {
751
751
  { label: "Swell", key: "weather.swell", unit: "m" },
752
752
  { label: "Current", key: "weather.current", unit: "kts" }
753
753
  ], (a = (e = this.dateList) == null ? void 0 : e[this.currentIndex]) == null || a.dateTimeList.forEach((i, o) => {
754
- var c, s, d, m, p, u, b, g, h, f, C, _, v, L, T, z, S, R, N, V, E, H, Q, ae, re, pe, F, J, K, oe, Y, X, ee, A, ne, fe, ke, ze;
754
+ var c, s, d, m, p, u, b, g, h, f, C, _, v, L, T, z, S, R, N, V, B, H, Q, ae, re, pe, G, J, K, oe, Y, X, ee, A, ne, fe, ke, ze;
755
755
  let r = {};
756
756
  const l = ((c = Za.pickHourly(t, D(i))) == null ? void 0 : c[0]) || {};
757
- r.utc = l.utc, r.lat = t.lat, r.lng = t.lng, r.weatherUrl = (s = l.weather) == null ? void 0 : s.url, r.temp = this.computeRoundPrecision((d = l == null ? void 0 : l.weather) == null ? void 0 : d.temp, 0) ?? "-", r.precipProbability = this.computeRoundPrecision((p = (m = l == null ? void 0 : l.weather) == null ? void 0 : m.precip) == null ? void 0 : p.probability, 0) ?? "-", r.precip1h = this.computeRoundPrecision((b = (u = l == null ? void 0 : l.weather) == null ? void 0 : u.precip) == null ? void 0 : b.sum, 1) ?? "-", r.visibility = this.computeRoundPrecision((g = l == null ? void 0 : l.weather) == null ? void 0 : g.visibility, 0) ?? "-", r.windSpeed = this.computeRoundPrecision((f = (h = l == null ? void 0 : l.weather) == null ? void 0 : h.wind) == null ? void 0 : f.kts, 1) ?? "-", r.windDir = (_ = (C = l == null ? void 0 : l.weather) == null ? void 0 : C.wind) == null ? void 0 : _.direction, r.windLevel = this.computeRoundPrecision((L = (v = l == null ? void 0 : l.weather) == null ? void 0 : v.wind) == null ? void 0 : L.scale, 0) ?? "-", r.windGust = this.computeRoundPrecision((z = (T = l == null ? void 0 : l.weather) == null ? void 0 : T.wind) == null ? void 0 : z.gusts, 1) ?? "-", r.sigwaveHeight = this.computeRoundPrecision((R = (S = l == null ? void 0 : l.wave) == null ? void 0 : S.sig) == null ? void 0 : R.height, 1) ?? "-", r.sigwaveDir = (V = (N = l == null ? void 0 : l.wave) == null ? void 0 : N.sig) == null ? void 0 : V.direction, r.sigwavePeriod = this.computeRoundPrecision((H = (E = l == null ? void 0 : l.wave) == null ? void 0 : E.sig) == null ? void 0 : H.period, 1) ?? "-", r.windwaveHeight = this.computeRoundPrecision((ae = (Q = l == null ? void 0 : l.wave) == null ? void 0 : Q.wd) == null ? void 0 : ae.height, 1) ?? "-", r.windwaveDir = (pe = (re = l == null ? void 0 : l.wave) == null ? void 0 : re.wd) == null ? void 0 : pe.direction, r.windwavePeriod = this.computeRoundPrecision((J = (F = l == null ? void 0 : l.wave) == null ? void 0 : F.wd) == null ? void 0 : J.period, 1) ?? "-", r.swellHeight = this.computeRoundPrecision((oe = (K = l == null ? void 0 : l.wave) == null ? void 0 : K.swell) == null ? void 0 : oe.height, 1) ?? "-", r.swellDir = (X = (Y = l == null ? void 0 : l.wave) == null ? void 0 : Y.swell) == null ? void 0 : X.direction, r.swellPeriod = this.computeRoundPrecision((A = (ee = l == null ? void 0 : l.wave) == null ? void 0 : ee.swell) == null ? void 0 : A.period, 1) ?? "-", r.currentSpeed = this.computeRoundPrecision((ne = l == null ? void 0 : l.current) == null ? void 0 : ne.speed, 1) ?? "-", r.currentDir = (fe = l == null ? void 0 : l.current) == null ? void 0 : fe.direction, r.currentSpeed = this.computeRoundPrecision((ke = l == null ? void 0 : l.current) == null ? void 0 : ke.speed, 1) ?? "-", r.seaLevel = this.computeRoundPrecision(l == null ? void 0 : l.height, 1) ?? "-", r.seaTemp = this.computeRoundPrecision(l == null ? void 0 : l.sst, 0) ?? "-", r.weatherUrls = (ze = l == null ? void 0 : l.weather) == null ? void 0 : ze.url, this.tableData[0][`value${o}`] = o * this.interval > 10 ? o * this.interval : "0" + o * this.interval, this.tableData[1][`value${o}`] = r.weatherUrl, this.tableData[2][`value${o}`] = r.temp, this.tableData[3][`value${o}`] = r.precip1h, this.tableData[4][`value${o}`] = r.visibility, this.tableData[5][`value${o}`] = r.windSpeed, this.tableData[6][`value${o}`] = r.sigwaveHeight, this.tableData[7][`value${o}`] = r.swellHeight, this.tableData[8][`value${o}`] = r.currentSpeed;
757
+ r.utc = l.utc, r.lat = t.lat, r.lng = t.lng, r.weatherUrl = (s = l.weather) == null ? void 0 : s.url, r.temp = this.computeRoundPrecision((d = l == null ? void 0 : l.weather) == null ? void 0 : d.temp, 0) ?? "-", r.precipProbability = this.computeRoundPrecision((p = (m = l == null ? void 0 : l.weather) == null ? void 0 : m.precip) == null ? void 0 : p.probability, 0) ?? "-", r.precip1h = this.computeRoundPrecision((b = (u = l == null ? void 0 : l.weather) == null ? void 0 : u.precip) == null ? void 0 : b.sum, 1) ?? "-", r.visibility = this.computeRoundPrecision((g = l == null ? void 0 : l.weather) == null ? void 0 : g.visibility, 0) ?? "-", r.windSpeed = this.computeRoundPrecision((f = (h = l == null ? void 0 : l.weather) == null ? void 0 : h.wind) == null ? void 0 : f.kts, 1) ?? "-", r.windDir = (_ = (C = l == null ? void 0 : l.weather) == null ? void 0 : C.wind) == null ? void 0 : _.direction, r.windLevel = this.computeRoundPrecision((L = (v = l == null ? void 0 : l.weather) == null ? void 0 : v.wind) == null ? void 0 : L.scale, 0) ?? "-", r.windGust = this.computeRoundPrecision((z = (T = l == null ? void 0 : l.weather) == null ? void 0 : T.wind) == null ? void 0 : z.gusts, 1) ?? "-", r.sigwaveHeight = this.computeRoundPrecision((R = (S = l == null ? void 0 : l.wave) == null ? void 0 : S.sig) == null ? void 0 : R.height, 1) ?? "-", r.sigwaveDir = (V = (N = l == null ? void 0 : l.wave) == null ? void 0 : N.sig) == null ? void 0 : V.direction, r.sigwavePeriod = this.computeRoundPrecision((H = (B = l == null ? void 0 : l.wave) == null ? void 0 : B.sig) == null ? void 0 : H.period, 1) ?? "-", r.windwaveHeight = this.computeRoundPrecision((ae = (Q = l == null ? void 0 : l.wave) == null ? void 0 : Q.wd) == null ? void 0 : ae.height, 1) ?? "-", r.windwaveDir = (pe = (re = l == null ? void 0 : l.wave) == null ? void 0 : re.wd) == null ? void 0 : pe.direction, r.windwavePeriod = this.computeRoundPrecision((J = (G = l == null ? void 0 : l.wave) == null ? void 0 : G.wd) == null ? void 0 : J.period, 1) ?? "-", r.swellHeight = this.computeRoundPrecision((oe = (K = l == null ? void 0 : l.wave) == null ? void 0 : K.swell) == null ? void 0 : oe.height, 1) ?? "-", r.swellDir = (X = (Y = l == null ? void 0 : l.wave) == null ? void 0 : Y.swell) == null ? void 0 : X.direction, r.swellPeriod = this.computeRoundPrecision((A = (ee = l == null ? void 0 : l.wave) == null ? void 0 : ee.swell) == null ? void 0 : A.period, 1) ?? "-", r.currentSpeed = this.computeRoundPrecision((ne = l == null ? void 0 : l.current) == null ? void 0 : ne.speed, 1) ?? "-", r.currentDir = (fe = l == null ? void 0 : l.current) == null ? void 0 : fe.direction, r.currentSpeed = this.computeRoundPrecision((ke = l == null ? void 0 : l.current) == null ? void 0 : ke.speed, 1) ?? "-", r.seaLevel = this.computeRoundPrecision(l == null ? void 0 : l.height, 1) ?? "-", r.seaTemp = this.computeRoundPrecision(l == null ? void 0 : l.sst, 0) ?? "-", r.weatherUrls = (ze = l == null ? void 0 : l.weather) == null ? void 0 : ze.url, this.tableData[0][`value${o}`] = o * this.interval > 10 ? o * this.interval : "0" + o * this.interval, this.tableData[1][`value${o}`] = r.weatherUrl, this.tableData[2][`value${o}`] = r.temp, this.tableData[3][`value${o}`] = r.precip1h, this.tableData[4][`value${o}`] = r.visibility, this.tableData[5][`value${o}`] = r.windSpeed, this.tableData[6][`value${o}`] = r.sigwaveHeight, this.tableData[7][`value${o}`] = r.swellHeight, this.tableData[8][`value${o}`] = r.currentSpeed;
758
758
  });
759
759
  },
760
760
  handleTide() {
@@ -786,7 +786,7 @@ const Mr = {
786
786
  },
787
787
  initTideTableData(t) {
788
788
  var e, a;
789
- this.tideTableData = Ei.pickDailyExtremes(t, (a = (e = this.dateList) == null ? void 0 : e[this.currentIndex]) == null ? void 0 : a.dateTime), this.initEchartData();
789
+ this.tideTableData = Bi.pickDailyExtremes(t, (a = (e = this.dateList) == null ? void 0 : e[this.currentIndex]) == null ? void 0 : a.dateTime), this.initEchartData();
790
790
  },
791
791
  initEchartData() {
792
792
  var t;
@@ -920,10 +920,10 @@ const Mr = {
920
920
  key: 0,
921
921
  class: "btns-box w-100 d-flex justify-center align-center ga-2 mt-2 px-5",
922
922
  style: { height: "48px" }
923
- }, Ar = { class: "summary-box" }, Fr = { class: "d-flex justify-space-between align-center py-2" }, Gr = { class: "d-flex justify-center align-center text-h6 ga-2" }, Nr = {
923
+ }, Ar = { class: "summary-box" }, Gr = { class: "d-flex justify-space-between align-center py-2" }, Fr = { class: "d-flex justify-center align-center text-h6 ga-2" }, Nr = {
924
924
  class: "multi-color-icon",
925
925
  "aria-hidden": "true"
926
- }, Wr = ["xlink:href"], Vr = { class: "gray-bg-2 rounded d-flex flex-column ga-4 pa-4" }, Er = { class: "w-100 d-flex justify-start align-center" }, Br = { class: "w-30 text-label font-weight-400" }, Zr = { class: "flex-1-1-0" }, Or = { class: "w-100 d-flex justify-start align-center" }, jr = { class: "w-30 text-label font-weight-400" }, Xr = { class: "flex-1-1-0" }, Hr = { class: "w-100 d-flex justify-start align-center" }, Yr = { class: "w-30 text-label font-weight-400" }, Ur = { class: "flex-1-1-0" }, $r = { class: "table-box w-100 mt-2" }, Jr = { class: "w-100 d-flex justify-space-between align-center py-2" }, Kr = { class: "d-flex justify-center align-center text-h6 ga-2" }, qr = {
926
+ }, Wr = ["xlink:href"], Vr = { class: "gray-bg-2 rounded d-flex flex-column ga-4 pa-4" }, Br = { class: "w-100 d-flex justify-start align-center" }, Er = { class: "w-30 text-label font-weight-400" }, Zr = { class: "flex-1-1-0" }, Or = { class: "w-100 d-flex justify-start align-center" }, jr = { class: "w-30 text-label font-weight-400" }, Xr = { class: "flex-1-1-0" }, Hr = { class: "w-100 d-flex justify-start align-center" }, Yr = { class: "w-30 text-label font-weight-400" }, Ur = { class: "flex-1-1-0" }, $r = { class: "table-box w-100 mt-2" }, Jr = { class: "w-100 d-flex justify-space-between align-center py-2" }, Kr = { class: "d-flex justify-center align-center text-h6 ga-2" }, qr = {
927
927
  class: "multi-color-icon",
928
928
  "aria-hidden": "true"
929
929
  }, Qr = ["xlink:href"], el = {
@@ -1053,7 +1053,7 @@ function Sl(t, e, a, i, o, r) {
1053
1053
  _: 1
1054
1054
  }),
1055
1055
  w(s, { class: "w-100" }),
1056
- a.simple ? G("", !0) : (k(), I("div", Ir, [
1056
+ a.simple ? F("", !0) : (k(), I("div", Ir, [
1057
1057
  (p = a.followList) != null && p.some((g) => {
1058
1058
  var h;
1059
1059
  return ((h = g.port) == null ? void 0 : h.id) === a.portId;
@@ -1106,8 +1106,8 @@ function Sl(t, e, a, i, o, r) {
1106
1106
  class: ge(["w-100 pt-0 flex-1-1-0 overflow-y-auto scroll mb-4", a.simple ? "px-3" : "px-5"])
1107
1107
  }, [
1108
1108
  n("div", Ar, [
1109
- n("div", Fr, [
1110
- n("div", Gr, [
1109
+ n("div", Gr, [
1110
+ n("div", Fr, [
1111
1111
  (k(), I("svg", Nr, [
1112
1112
  n("use", {
1113
1113
  "xlink:href": `#icon-title-${a.theme}`
@@ -1118,8 +1118,8 @@ function Sl(t, e, a, i, o, r) {
1118
1118
  e[9] || (e[9] = n("div", { class: "text-body-2 text-success ga-2" }, null, -1))
1119
1119
  ]),
1120
1120
  n("div", Vr, [
1121
- n("div", Er, [
1122
- n("div", Br, y(t.$t("port.region")), 1),
1121
+ n("div", Br, [
1122
+ n("div", Er, y(t.$t("port.region")), 1),
1123
1123
  n("div", Zr, y(((u = a.port) == null ? void 0 : u.region) ?? ((b = a.port) == null ? void 0 : b.city) ?? "-"), 1)
1124
1124
  ]),
1125
1125
  n("div", Or, [
@@ -1182,7 +1182,7 @@ function Sl(t, e, a, i, o, r) {
1182
1182
  }, [
1183
1183
  n("th", tl, [
1184
1184
  Z(y(t.$t(`${g.key}`)) + " ", 1),
1185
- g.unit ? (k(), I("span", al, " ( " + y(g.unit) + " )", 1)) : G("", !0)
1185
+ g.unit ? (k(), I("span", al, " ( " + y(g.unit) + " )", 1)) : F("", !0)
1186
1186
  ]),
1187
1187
  n("td", ol, [
1188
1188
  g.img ? (k(), I("img", {
@@ -1267,7 +1267,7 @@ function Sl(t, e, a, i, o, r) {
1267
1267
  }), 128))
1268
1268
  ])
1269
1269
  ])
1270
- ], 2)) : G("", !0)
1270
+ ], 2)) : F("", !0)
1271
1271
  ])
1272
1272
  ], 2)
1273
1273
  ];
@@ -1297,7 +1297,7 @@ const Tl = {
1297
1297
  },
1298
1298
  emits: ["closeAllDetail"],
1299
1299
  setup() {
1300
- return { Theme: Ge() };
1300
+ return { Theme: Fe() };
1301
1301
  },
1302
1302
  data() {
1303
1303
  return {
@@ -1419,10 +1419,10 @@ function Al(t, e, a, i, o, r) {
1419
1419
  }, t.$attrs, {
1420
1420
  onClose: r.handleCloseDetail,
1421
1421
  onCloseAllDetail: e[0] || (e[0] = (d) => t.$emit("closeAllDetail", { ports: !0 }))
1422
- }), null, 16, ["port-id", "port", "forecast-model", "onClose"])) : G("", !0)
1422
+ }), null, 16, ["port-id", "port", "forecast-model", "onClose"])) : F("", !0)
1423
1423
  ]);
1424
1424
  }
1425
- const Fl = /* @__PURE__ */ ie(Tl, [["render", Al], ["__scopeId", "data-v-d5b056e5"]]), Gl = {
1425
+ const Gl = /* @__PURE__ */ ie(Tl, [["render", Al], ["__scopeId", "data-v-d5b056e5"]]), Fl = {
1426
1426
  name: "IdmLoadLine",
1427
1427
  props: {
1428
1428
  map: {
@@ -1436,7 +1436,7 @@ const Fl = /* @__PURE__ */ ie(Tl, [["render", Al], ["__scopeId", "data-v-d5b056e
1436
1436
  }
1437
1437
  },
1438
1438
  setup() {
1439
- return { Theme: Ge() };
1439
+ return { Theme: Fe() };
1440
1440
  },
1441
1441
  data() {
1442
1442
  return {
@@ -1466,7 +1466,7 @@ const Fl = /* @__PURE__ */ ie(Tl, [["render", Al], ["__scopeId", "data-v-d5b056e
1466
1466
  function Nl(t, e, a, i, o, r) {
1467
1467
  return k(), I("div");
1468
1468
  }
1469
- const Wl = /* @__PURE__ */ ie(Gl, [["render", Nl]]), Vl = {
1469
+ const Wl = /* @__PURE__ */ ie(Fl, [["render", Nl]]), Vl = {
1470
1470
  name: "IdmTimezone",
1471
1471
  props: {
1472
1472
  map: {
@@ -1480,7 +1480,7 @@ const Wl = /* @__PURE__ */ ie(Gl, [["render", Nl]]), Vl = {
1480
1480
  }
1481
1481
  },
1482
1482
  setup() {
1483
- return { Theme: Ge() };
1483
+ return { Theme: Fe() };
1484
1484
  },
1485
1485
  data() {
1486
1486
  return {
@@ -1669,10 +1669,10 @@ const Wl = /* @__PURE__ */ ie(Gl, [["render", Nl]]), Vl = {
1669
1669
  }
1670
1670
  }
1671
1671
  };
1672
- function El(t, e, a, i, o, r) {
1672
+ function Bl(t, e, a, i, o, r) {
1673
1673
  return k(), I("div");
1674
1674
  }
1675
- const Bl = /* @__PURE__ */ ie(Vl, [["render", El]]), Zl = {
1675
+ const El = /* @__PURE__ */ ie(Vl, [["render", Bl]]), Zl = {
1676
1676
  name: "IdmVoluntaryReportingArea",
1677
1677
  props: {
1678
1678
  map: {
@@ -1686,7 +1686,7 @@ const Bl = /* @__PURE__ */ ie(Vl, [["render", El]]), Zl = {
1686
1686
  }
1687
1687
  },
1688
1688
  setup() {
1689
- return { Theme: Ge() };
1689
+ return { Theme: Fe() };
1690
1690
  },
1691
1691
  data() {
1692
1692
  return {
@@ -1781,7 +1781,7 @@ const jl = /* @__PURE__ */ ie(Zl, [["render", Ol]]), Xl = {
1781
1781
  }
1782
1782
  },
1783
1783
  setup() {
1784
- return { Theme: Ge() };
1784
+ return { Theme: Fe() };
1785
1785
  },
1786
1786
  data() {
1787
1787
  return {
@@ -2098,7 +2098,7 @@ const nn = {
2098
2098
  emits: ["close", "closeAllDetail"],
2099
2099
  setup() {
2100
2100
  return {
2101
- Theme: Ge()
2101
+ Theme: Fe()
2102
2102
  };
2103
2103
  },
2104
2104
  data() {
@@ -2199,7 +2199,7 @@ const nn = {
2199
2199
  },
2200
2200
  initTideTableData(t) {
2201
2201
  var e, a;
2202
- this.tideTableData = Ei.pickDailyExtremes(t, (a = (e = this.dateList) == null ? void 0 : e[this.currentIndex]) == null ? void 0 : a.dateTime), this.initEchartData();
2202
+ this.tideTableData = Bi.pickDailyExtremes(t, (a = (e = this.dateList) == null ? void 0 : e[this.currentIndex]) == null ? void 0 : a.dateTime), this.initEchartData();
2203
2203
  },
2204
2204
  initEchartData() {
2205
2205
  var t;
@@ -2342,10 +2342,10 @@ const nn = {
2342
2342
  }, An = {
2343
2343
  class: "px-1 text-center text-label font-weight-400",
2344
2344
  width: "120"
2345
- }, Fn = {
2345
+ }, Gn = {
2346
2346
  class: "px-1 text-center text-label font-weight-400",
2347
2347
  width: "120"
2348
- }, Gn = { class: "px-1 text-center" }, Nn = { class: "px-1 text-center" }, Wn = { class: "px-1 text-center" };
2348
+ }, Fn = { class: "px-1 text-center" }, Nn = { class: "px-1 text-center" }, Wn = { class: "px-1 text-center" };
2349
2349
  function Vn(t, e, a, i, o, r) {
2350
2350
  const l = P("VBtn"), c = P("VCardTitle"), s = P("VDivider"), d = P("VBtnToggle"), m = P("VCard");
2351
2351
  return k(), W(m, {
@@ -2462,12 +2462,12 @@ function Vn(t, e, a, i, o, r) {
2462
2462
  n("tr", null, [
2463
2463
  n("th", In, y(t.$t("tide.tide")), 1),
2464
2464
  n("th", An, y(t.$t("time.time")) + " ( LT ) ", 1),
2465
- n("th", Fn, y(t.$t("tide.height")) + " ( m )", 1)
2465
+ n("th", Gn, y(t.$t("tide.height")) + " ( m )", 1)
2466
2466
  ]),
2467
2467
  (k(!0), I(Te, null, De(o.tideTableData, (b, g) => {
2468
2468
  var h;
2469
2469
  return k(), I("tr", { key: g }, [
2470
- n("td", Gn, y(t.$t(`tide.${(h = b == null ? void 0 : b.type) == null ? void 0 : h.toLowerCase()}`)) + " " + y(t.$t("tide.tide")), 1),
2470
+ n("td", Fn, y(t.$t(`tide.${(h = b == null ? void 0 : b.type) == null ? void 0 : h.toLowerCase()}`)) + " " + y(t.$t("tide.tide")), 1),
2471
2471
  n("td", Nn, y(r.computeLocalTime(b == null ? void 0 : b.date, a.station, "MM-DD HH:mm")), 1),
2472
2472
  n("td", Wn, y((b == null ? void 0 : b.height) ?? "-") + " m", 1)
2473
2473
  ]);
@@ -2482,11 +2482,11 @@ function Vn(t, e, a, i, o, r) {
2482
2482
  _: 1
2483
2483
  }, 8, ["class"]);
2484
2484
  }
2485
- const En = /* @__PURE__ */ ie(nn, [["render", Vn], ["__scopeId", "data-v-79152278"]]);
2486
- const Bn = {
2485
+ const Bn = /* @__PURE__ */ ie(nn, [["render", Vn], ["__scopeId", "data-v-79152278"]]);
2486
+ const En = {
2487
2487
  name: "IdmTideStations",
2488
2488
  components: {
2489
- TideDetail: En
2489
+ TideDetail: Bn
2490
2490
  },
2491
2491
  props: {
2492
2492
  map: {
@@ -2586,10 +2586,10 @@ function Hn(t, e, a, i, o, r) {
2586
2586
  o.showDetail ? (k(), W(s, $({
2587
2587
  key: 0,
2588
2588
  station: o.station
2589
- }, t.$attrs, { onClose: r.handleCloseDetail }), null, 16, ["station", "onClose"])) : G("", !0)
2589
+ }, t.$attrs, { onClose: r.handleCloseDetail }), null, 16, ["station", "onClose"])) : F("", !0)
2590
2590
  ]);
2591
2591
  }
2592
- const Yn = /* @__PURE__ */ ie(Bn, [["render", Hn], ["__scopeId", "data-v-ad725d5e"]]), Un = {
2592
+ const Yn = /* @__PURE__ */ ie(En, [["render", Hn], ["__scopeId", "data-v-ad725d5e"]]), Un = {
2593
2593
  name: "IdmIceAreas",
2594
2594
  props: {
2595
2595
  map: {
@@ -2749,7 +2749,7 @@ const Kn = {
2749
2749
  handleZoomEnd() {
2750
2750
  var e;
2751
2751
  const t = this.handleComputeLatLngs();
2752
- (e = this.map) == null || e.getSource(this.source).setData(B.featureCollection(t));
2752
+ (e = this.map) == null || e.getSource(this.source).setData(E.featureCollection(t));
2753
2753
  },
2754
2754
  handleRender() {
2755
2755
  if (this.handleClear(), this.map) {
@@ -2807,7 +2807,7 @@ const Kn = {
2807
2807
  };
2808
2808
  function qn(t, e, a, i, o, r) {
2809
2809
  var l, c, s;
2810
- return a.simple ? G("", !0) : (k(), I("div", {
2810
+ return a.simple ? F("", !0) : (k(), I("div", {
2811
2811
  key: 0,
2812
2812
  class: "idm-lat-lng-tip-gl4 pa-2 text-caption text-right rounded",
2813
2813
  style: he({ right: o.right + "px" })
@@ -2817,7 +2817,7 @@ function qn(t, e, a, i, o, r) {
2817
2817
  n("div", null, y((s = o.lngLat) == null ? void 0 : s.str), 1)
2818
2818
  ], 4));
2819
2819
  }
2820
- const Bi = /* @__PURE__ */ ie(Kn, [["render", qn]]);
2820
+ const Ei = /* @__PURE__ */ ie(Kn, [["render", qn]]);
2821
2821
  const Qn = {
2822
2822
  name: "IdmFollowPort",
2823
2823
  components: {
@@ -2842,7 +2842,7 @@ const Qn = {
2842
2842
  },
2843
2843
  emits: ["closeAllDetail"],
2844
2844
  setup() {
2845
- return { Theme: Ge() };
2845
+ return { Theme: Fe() };
2846
2846
  },
2847
2847
  data() {
2848
2848
  return {
@@ -2983,7 +2983,7 @@ function os(t, e, a, i, o, r) {
2983
2983
  }, t.$attrs, {
2984
2984
  onClose: r.handleCloseDetail,
2985
2985
  onCloseAllDetail: e[0] || (e[0] = (d) => t.$emit("closeAllDetail", { followPort: !0 }))
2986
- }), null, 16, ["port-id", "port", "forecast-model", "follow-list", "onClose"])) : G("", !0)
2986
+ }), null, 16, ["port-id", "port", "forecast-model", "follow-list", "onClose"])) : F("", !0)
2987
2987
  ]);
2988
2988
  }
2989
2989
  const is = /* @__PURE__ */ ie(Qn, [["render", os], ["__scopeId", "data-v-9b28c4ea"]]);
@@ -3010,7 +3010,7 @@ const rs = {
3010
3010
  }
3011
3011
  },
3012
3012
  setup() {
3013
- return { Theme: Ge() };
3013
+ return { Theme: Fe() };
3014
3014
  },
3015
3015
  data() {
3016
3016
  return {
@@ -3140,7 +3140,7 @@ function cs(t, e, a, i, o, r) {
3140
3140
  ]),
3141
3141
  o.position.remark ? (k(), I("div", ss, [
3142
3142
  n("span", null, y(o.position.remark ?? "-"), 1)
3143
- ])) : G("", !0)
3143
+ ])) : F("", !0)
3144
3144
  ])
3145
3145
  ]),
3146
3146
  _: 1
@@ -3159,9 +3159,9 @@ const ds = {
3159
3159
  IdmGmdssArea: wr,
3160
3160
  IdmEcaZone: kr,
3161
3161
  IdmAlertZone: Cr,
3162
- IdmPort: Fl,
3162
+ IdmPort: Gl,
3163
3163
  IdmLoadLine: Wl,
3164
- IdmTimezone: Bl,
3164
+ IdmTimezone: El,
3165
3165
  IdmVRA: jl,
3166
3166
  IdmSpecialArea: Yl,
3167
3167
  IdmTerminator: Jl,
@@ -3170,7 +3170,7 @@ const ds = {
3170
3170
  IdmChinaRoute: ln,
3171
3171
  IdmTideStations: Yn,
3172
3172
  IdmIceAreas: Jn,
3173
- IdmLatLng: Bi,
3173
+ IdmLatLng: Ei,
3174
3174
  IdmFollowPort: is,
3175
3175
  IdmFollowPosition: ms
3176
3176
  },
@@ -3378,8 +3378,8 @@ const ds = {
3378
3378
  class: "border rounded-sm"
3379
3379
  }, vs = { class: "text-body-2 text-center pt-2" };
3380
3380
  function ks(t, e, a, i, o, r) {
3381
- var re, pe, F, J, K, oe, Y, X, ee;
3382
- const l = P("VBtn"), c = P("VTooltip"), s = P("VCardTitle"), d = P("VCardItem"), m = P("VCheckbox"), p = P("VCardText"), u = P("VCard"), b = P("IdmPort"), g = P("IdmTideStations"), h = P("IdmLatLng"), f = P("IdmTerminator"), C = P("IdmTimezone"), _ = P("IdmAlertZone"), v = P("IdmEcaZone"), L = P("IdmWarZone"), T = P("IdmGmdssArea"), z = P("IdmLoadLine"), S = P("IdmWorldMarine"), R = P("IdmVRA"), N = P("IdmSpecialArea"), V = P("IdmWorld12nm"), E = P("IdmChinaRoute"), H = P("IdmIceAreas"), Q = P("IdmFollowPort"), ae = P("IdmFollowPosition");
3381
+ var re, pe, G, J, K, oe, Y, X, ee;
3382
+ const l = P("VBtn"), c = P("VTooltip"), s = P("VCardTitle"), d = P("VCardItem"), m = P("VCheckbox"), p = P("VCardText"), u = P("VCard"), b = P("IdmPort"), g = P("IdmTideStations"), h = P("IdmLatLng"), f = P("IdmTerminator"), C = P("IdmTimezone"), _ = P("IdmAlertZone"), v = P("IdmEcaZone"), L = P("IdmWarZone"), T = P("IdmGmdssArea"), z = P("IdmLoadLine"), S = P("IdmWorldMarine"), R = P("IdmVRA"), N = P("IdmSpecialArea"), V = P("IdmWorld12nm"), B = P("IdmChinaRoute"), H = P("IdmIceAreas"), Q = P("IdmFollowPort"), ae = P("IdmFollowPosition");
3383
3383
  return k(), I("div", hs, [
3384
3384
  n("div", {
3385
3385
  class: ge(["menu-bar-box transition px-1 rounded", a.simple ? "simple" : ""]),
@@ -3615,7 +3615,7 @@ function ks(t, e, a, i, o, r) {
3615
3615
  "forecast-model": a.forecastModel,
3616
3616
  "real-time": a.realTime,
3617
3617
  theme: a.theme
3618
- }, t.$attrs, { "before-layer": "empty-layer-3" }), null, 16, ["simple", "map", "ports", "gateway", "token", "forecast-model", "real-time", "theme"])) : G("", !0),
3618
+ }, t.$attrs, { "before-layer": "empty-layer-3" }), null, 16, ["simple", "map", "ports", "gateway", "token", "forecast-model", "real-time", "theme"])) : F("", !0),
3619
3619
  a.map ? (k(), W(g, $({
3620
3620
  key: 1,
3621
3621
  ref: "idmIideStation",
@@ -3629,25 +3629,25 @@ function ks(t, e, a, i, o, r) {
3629
3629
  "real-time": a.realTime,
3630
3630
  "forecast-model": a.forecastModel,
3631
3631
  "before-layer": "empty-layer-3"
3632
- }, t.$attrs), null, 16, ["simple", "map", "gateway", "token", "default-meteo-token", "show", "theme", "real-time", "forecast-model"])) : G("", !0),
3632
+ }, t.$attrs), null, 16, ["simple", "map", "gateway", "token", "default-meteo-token", "show", "theme", "real-time", "forecast-model"])) : F("", !0),
3633
3633
  a.map ? (k(), W(h, $({
3634
3634
  key: 2,
3635
3635
  simple: a.simple,
3636
3636
  map: a.map,
3637
3637
  "menu-toggle": a.menuToggle,
3638
3638
  show: o.checkList.includes("graticule")
3639
- }, t.$attrs, { "before-layer": "empty-layer-3" }), null, 16, ["simple", "map", "menu-toggle", "show"])) : G("", !0),
3639
+ }, t.$attrs, { "before-layer": "empty-layer-3" }), null, 16, ["simple", "map", "menu-toggle", "show"])) : F("", !0),
3640
3640
  a.map ? (k(), W(f, $({
3641
3641
  key: 3,
3642
3642
  map: a.map,
3643
3643
  area: (pe = o.otherLayers) == null ? void 0 : pe["day-night"]
3644
- }, t.$attrs, { "before-layer": "empty-layer-2" }), null, 16, ["map", "area"])) : G("", !0),
3644
+ }, t.$attrs, { "before-layer": "empty-layer-2" }), null, 16, ["map", "area"])) : F("", !0),
3645
3645
  a.map ? (k(), W(C, $({
3646
3646
  key: 4,
3647
3647
  map: a.map,
3648
- zone: (F = o.otherLayers) == null ? void 0 : F["time-zones"],
3648
+ zone: (G = o.otherLayers) == null ? void 0 : G["time-zones"],
3649
3649
  "real-time": a.realTime
3650
- }, t.$attrs, { "before-layer": "empty-layer-3" }), null, 16, ["map", "zone", "real-time"])) : G("", !0),
3650
+ }, t.$attrs, { "before-layer": "empty-layer-3" }), null, 16, ["map", "zone", "real-time"])) : F("", !0),
3651
3651
  a.map ? (k(), W(_, $({
3652
3652
  key: 5,
3653
3653
  map: a.map,
@@ -3656,60 +3656,60 @@ function ks(t, e, a, i, o, r) {
3656
3656
  }, t.$attrs, {
3657
3657
  "before-layer": "empty-layer-3",
3658
3658
  theme: a.theme
3659
- }), null, 16, ["map", "simple", "zone", "theme"])) : G("", !0),
3659
+ }), null, 16, ["map", "simple", "zone", "theme"])) : F("", !0),
3660
3660
  a.map ? (k(), W(v, $({
3661
3661
  key: 6,
3662
3662
  map: a.map,
3663
3663
  zone: (K = o.otherLayers) == null ? void 0 : K["eca-zones"]
3664
- }, t.$attrs), null, 16, ["map", "zone"])) : G("", !0),
3664
+ }, t.$attrs), null, 16, ["map", "zone"])) : F("", !0),
3665
3665
  a.map ? (k(), W(L, $({
3666
3666
  key: 7,
3667
3667
  map: a.map,
3668
3668
  zone: (oe = o.otherLayers) == null ? void 0 : oe["war-zones"]
3669
- }, t.$attrs), null, 16, ["map", "zone"])) : G("", !0),
3669
+ }, t.$attrs), null, 16, ["map", "zone"])) : F("", !0),
3670
3670
  a.map ? (k(), W(T, $({
3671
3671
  key: 8,
3672
3672
  map: a.map,
3673
3673
  area: (Y = o.otherLayers) == null ? void 0 : Y["gmdss-areas"]
3674
- }, t.$attrs), null, 16, ["map", "area"])) : G("", !0),
3674
+ }, t.$attrs), null, 16, ["map", "area"])) : F("", !0),
3675
3675
  a.map ? (k(), W(z, $({
3676
3676
  key: 9,
3677
3677
  map: a.map,
3678
3678
  show: o.checkList.includes("load-lines")
3679
- }, t.$attrs), null, 16, ["map", "show"])) : G("", !0),
3679
+ }, t.$attrs), null, 16, ["map", "show"])) : F("", !0),
3680
3680
  a.map ? (k(), W(S, $({
3681
3681
  key: 10,
3682
3682
  map: a.map,
3683
3683
  token: a.token,
3684
3684
  show: o.checkList.includes("worldMarine")
3685
- }, t.$attrs), null, 16, ["map", "token", "show"])) : G("", !0),
3685
+ }, t.$attrs), null, 16, ["map", "token", "show"])) : F("", !0),
3686
3686
  a.map ? (k(), W(R, $({
3687
3687
  key: 11,
3688
3688
  map: a.map,
3689
3689
  area: (X = o.otherLayers) == null ? void 0 : X["voluntary-reporting-area"]
3690
- }, t.$attrs), null, 16, ["map", "area"])) : G("", !0),
3690
+ }, t.$attrs), null, 16, ["map", "area"])) : F("", !0),
3691
3691
  a.map ? (k(), W(N, $({
3692
3692
  key: 12,
3693
3693
  map: a.map,
3694
3694
  area: (ee = o.otherLayers) == null ? void 0 : ee["special-area"]
3695
- }, t.$attrs), null, 16, ["map", "area"])) : G("", !0),
3695
+ }, t.$attrs), null, 16, ["map", "area"])) : F("", !0),
3696
3696
  a.map ? (k(), W(V, $({
3697
3697
  key: 13,
3698
3698
  map: a.map,
3699
3699
  token: a.token,
3700
3700
  show: o.checkList.includes("world12nm")
3701
- }, t.$attrs), null, 16, ["map", "token", "show"])) : G("", !0),
3702
- a.map ? (k(), W(E, $({
3701
+ }, t.$attrs), null, 16, ["map", "token", "show"])) : F("", !0),
3702
+ a.map ? (k(), W(B, $({
3703
3703
  key: 14,
3704
3704
  map: a.map,
3705
3705
  token: a.token,
3706
3706
  show: o.checkList.includes("chinaRoute")
3707
- }, t.$attrs), null, 16, ["map", "token", "show"])) : G("", !0),
3707
+ }, t.$attrs), null, 16, ["map", "token", "show"])) : F("", !0),
3708
3708
  a.map ? (k(), W(H, $({
3709
3709
  key: 15,
3710
3710
  map: a.map,
3711
3711
  show: o.checkList.includes("ice-areas")
3712
- }, t.$attrs), null, 16, ["map", "show"])) : G("", !0),
3712
+ }, t.$attrs), null, 16, ["map", "show"])) : F("", !0),
3713
3713
  a.map ? (k(), W(Q, $({
3714
3714
  key: 16,
3715
3715
  ref: "idmFollowPort",
@@ -3720,7 +3720,7 @@ function ks(t, e, a, i, o, r) {
3720
3720
  token: a.token,
3721
3721
  "forecast-model": a.forecastModel,
3722
3722
  "real-time": a.realTime
3723
- }, t.$attrs, { "before-layer": "empty-layer-3" }), null, 16, ["simple", "map", "show", "gateway", "token", "forecast-model", "real-time"])) : G("", !0),
3723
+ }, t.$attrs, { "before-layer": "empty-layer-3" }), null, 16, ["simple", "map", "show", "gateway", "token", "forecast-model", "real-time"])) : F("", !0),
3724
3724
  a.map ? (k(), W(ae, $({
3725
3725
  key: 17,
3726
3726
  ref: "idmFollowPosition",
@@ -3729,21 +3729,21 @@ function ks(t, e, a, i, o, r) {
3729
3729
  show: o.checkList.includes("follow-positions"),
3730
3730
  "forecast-model": a.forecastModel,
3731
3731
  "real-time": a.realTime
3732
- }, t.$attrs), null, 16, ["simple", "map", "show", "forecast-model", "real-time"])) : G("", !0)
3732
+ }, t.$attrs), null, 16, ["simple", "map", "show", "forecast-model", "real-time"])) : F("", !0)
3733
3733
  ]);
3734
3734
  }
3735
3735
  const _s = /* @__PURE__ */ ie(ds, [["render", ks]]);
3736
3736
  class go {
3737
3737
  constructor(e) {
3738
- ve(this, "map");
3739
- ve(this, "mercator");
3740
- ve(this, "rampColorLayer");
3741
- ve(this, "rampColorSource");
3742
- ve(this, "particleLayer");
3743
- ve(this, "particleSource");
3744
- ve(this, "rampColorCanvas");
3745
- ve(this, "particleCanvas");
3746
- ve(this, "ratio");
3738
+ we(this, "map");
3739
+ we(this, "mercator");
3740
+ we(this, "rampColorLayer");
3741
+ we(this, "rampColorSource");
3742
+ we(this, "particleLayer");
3743
+ we(this, "particleSource");
3744
+ we(this, "rampColorCanvas");
3745
+ we(this, "particleCanvas");
3746
+ we(this, "ratio");
3747
3747
  this.map = e, this.mercator = new mr(), this.rampColorLayer = "ramp-color-layer", this.rampColorSource = "ramp-color-source", this.particleLayer = "particle-layer", this.particleSource = "particle-source", this.rampColorCanvas = document.createElement("canvas"), this.particleCanvas = document.createElement("canvas"), this.ratio = window.devicePixelRatio;
3748
3748
  }
3749
3749
  /**
@@ -4021,7 +4021,7 @@ class $e {
4021
4021
  class Ce {
4022
4022
  }
4023
4023
  // 顶点渲染
4024
- ve(Ce, "vertexSchema", `
4024
+ we(Ce, "vertexSchema", `
4025
4025
  //canvas 坐标系上的坐标 (x, y)
4026
4026
  attribute vec2 a_position; //像素坐标
4027
4027
  attribute vec2 a_texCoord; //纹理坐标
@@ -4036,7 +4036,7 @@ ve(Ce, "vertexSchema", `
4036
4036
  gl_Position = vec4(position * vec2(1, -1), 0.0, 1.0);
4037
4037
  v_texCoord = a_texCoord;
4038
4038
  }`), // 类如风、流等u v双变量片元渲染
4039
- ve(Ce, "uvFragmentSchema", `
4039
+ we(Ce, "uvFragmentSchema", `
4040
4040
  precision mediump float;
4041
4041
  uniform sampler2D u_image;
4042
4042
  uniform vec2 u_range_u_v;
@@ -4056,7 +4056,7 @@ ve(Ce, "uvFragmentSchema", `
4056
4056
 
4057
4057
  gl_FragColor = color;
4058
4058
  }`), // 类如浪、气压等单变量片元渲染
4059
- ve(Ce, "fragmentSchema", `
4059
+ we(Ce, "fragmentSchema", `
4060
4060
  precision mediump float;
4061
4061
  uniform sampler2D u_image; // 灰度
4062
4062
  uniform sampler2D u_color; // 色值映射
@@ -4069,7 +4069,7 @@ ve(Ce, "fragmentSchema", `
4069
4069
  }`);
4070
4070
  class We {
4071
4071
  }
4072
- ve(We, "vertexSchema", `
4072
+ we(We, "vertexSchema", `
4073
4073
  precision mediump float;
4074
4074
 
4075
4075
  attribute float a_index; // 索引
@@ -4093,7 +4093,7 @@ ve(We, "vertexSchema", `
4093
4093
  gl_PointSize = 1.0;
4094
4094
  // gl_PointSize = u_point;
4095
4095
  gl_Position = vec4(2.0 * v_particle_pos.x - 1.0, 1.0 - 2.0 * v_particle_pos.y, 0, 1);
4096
- }`), ve(We, "fragmentSchema", `
4096
+ }`), we(We, "fragmentSchema", `
4097
4097
  precision mediump float;
4098
4098
 
4099
4099
  uniform sampler2D u_factor;
@@ -4115,7 +4115,7 @@ ve(We, "vertexSchema", `
4115
4115
 
4116
4116
  float f = 1.0 - uv.b;
4117
4117
  gl_FragColor = texture2D(u_color_ramp, ramp_pos) * f;
4118
- }`), ve(We, "quadVertSchema", `
4118
+ }`), we(We, "quadVertSchema", `
4119
4119
  precision mediump float;
4120
4120
 
4121
4121
  attribute vec2 a_pos;
@@ -4125,7 +4125,7 @@ ve(We, "vertexSchema", `
4125
4125
  void main() {
4126
4126
  v_tex_pos = a_pos;
4127
4127
  gl_Position = vec4(1.0 - 2.0 * a_pos, 0, 1);
4128
- }`), ve(We, "screenFragmentSchema", `
4128
+ }`), we(We, "screenFragmentSchema", `
4129
4129
  precision mediump float;
4130
4130
 
4131
4131
  uniform sampler2D u_screen;
@@ -4137,7 +4137,7 @@ ve(We, "vertexSchema", `
4137
4137
  vec4 color = texture2D(u_screen, 1.0 - v_tex_pos);
4138
4138
  // a hack to guarantee opacity fade out even with a value close to 1.0
4139
4139
  gl_FragColor = vec4(floor(255.0 * color * u_opacity) / 255.0);
4140
- }`), ve(We, "updateFragmentSchema", `
4140
+ }`), we(We, "updateFragmentSchema", `
4141
4141
  precision mediump float;
4142
4142
 
4143
4143
  uniform sampler2D u_particles;
@@ -4272,7 +4272,7 @@ const Ls = {
4272
4272
  showCaption: !1,
4273
4273
  source: "wind-barb-source",
4274
4274
  barbs: [0, 2, 5, 10, 15, 20, 25, 30, 35, 40, 45, 50, 55, 60, 65, 70, 75, 80, 85, 90, 95, 100, 105],
4275
- empty: B.featureCollection([]),
4275
+ empty: E.featureCollection([]),
4276
4276
  right: 10,
4277
4277
  bottom: 125,
4278
4278
  windBarbLoaded: !1,
@@ -4562,7 +4562,7 @@ function Ts(t, e, a, i, o, r) {
4562
4562
  n("span", null, "40", -1),
4563
4563
  n("span", null, "60", -1)
4564
4564
  ]), 4)
4565
- ])) : G("", !0);
4565
+ ])) : F("", !0);
4566
4566
  }
4567
4567
  const Rs = /* @__PURE__ */ ie(Ps, [["render", Ts]]), Ds = {
4568
4568
  name: "IdmCurrent",
@@ -4596,7 +4596,7 @@ const Rs = /* @__PURE__ */ ie(Ps, [["render", Ts]]), Ds = {
4596
4596
  directionLayer: "current-direction-layer",
4597
4597
  speedLayer: "current-speed-layer",
4598
4598
  speedLabelLayer: "current-speed-label-layer",
4599
- empty: B.featureCollection([])
4599
+ empty: E.featureCollection([])
4600
4600
  };
4601
4601
  },
4602
4602
  computed: {
@@ -4723,7 +4723,7 @@ function Is(t, e, a, i, o, r) {
4723
4723
  return null;
4724
4724
  }
4725
4725
  const As = /* @__PURE__ */ ie(Ds, [["render", Is]]);
4726
- const Fs = {
4726
+ const Gs = {
4727
4727
  name: "IdmCurrentParticle",
4728
4728
  props: {
4729
4729
  simple: {
@@ -4887,10 +4887,10 @@ const Fs = {
4887
4887
  (t = this.viewport) == null || t.toggle(!1), this.context = void 0, this.etime = void 0, this.handleClearParticle();
4888
4888
  }
4889
4889
  }
4890
- }, Gs = { key: 0 };
4890
+ }, Fs = { key: 0 };
4891
4891
  function Ns(t, e, a, i, o, r) {
4892
4892
  var l;
4893
- return (l = a.factor) != null && l.active ? (k(), I("div", Gs, [
4893
+ return (l = a.factor) != null && l.active ? (k(), I("div", Fs, [
4894
4894
  n("div", {
4895
4895
  class: "legend-bars-gl4 current",
4896
4896
  style: he({ right: o.right + "px" })
@@ -4903,9 +4903,9 @@ function Ns(t, e, a, i, o, r) {
4903
4903
  n("span", null, "2", -1),
4904
4904
  n("span", null, "3.2", -1)
4905
4905
  ]), 4)
4906
- ])) : G("", !0);
4906
+ ])) : F("", !0);
4907
4907
  }
4908
- const Ws = /* @__PURE__ */ ie(Fs, [["render", Ns]]);
4908
+ const Ws = /* @__PURE__ */ ie(Gs, [["render", Ns]]);
4909
4909
  const Vs = {
4910
4910
  name: "IdmSigWave",
4911
4911
  props: {
@@ -5015,10 +5015,10 @@ const Vs = {
5015
5015
  this.webgl.draw(this.viewport, this.context, this.program, this.texture, this.rampColor.texture, this.aPositionBuffer), this.viewport.toggle(!0);
5016
5016
  }
5017
5017
  }
5018
- }, Es = { key: 0 };
5019
- function Bs(t, e, a, i, o, r) {
5018
+ }, Bs = { key: 0 };
5019
+ function Es(t, e, a, i, o, r) {
5020
5020
  var l;
5021
- return (l = a.factor) != null && l.active ? (k(), I("div", Es, [
5021
+ return (l = a.factor) != null && l.active ? (k(), I("div", Bs, [
5022
5022
  n("div", {
5023
5023
  class: "legend-bars-gl4 sig-wave",
5024
5024
  style: he({ right: o.right + "px" })
@@ -5031,9 +5031,9 @@ function Bs(t, e, a, i, o, r) {
5031
5031
  n("span", null, "6", -1),
5032
5032
  n("span", null, "9", -1)
5033
5033
  ]), 4)
5034
- ])) : G("", !0);
5034
+ ])) : F("", !0);
5035
5035
  }
5036
- const Zs = /* @__PURE__ */ ie(Vs, [["render", Bs], ["__scopeId", "data-v-b562523c"]]), Os = {
5036
+ const Zs = /* @__PURE__ */ ie(Vs, [["render", Es], ["__scopeId", "data-v-b562523c"]]), Os = {
5037
5037
  name: "IdmSigWaveHeight",
5038
5038
  props: {
5039
5039
  map: {
@@ -5057,7 +5057,7 @@ const Zs = /* @__PURE__ */ ie(Vs, [["render", Bs], ["__scopeId", "data-v-b562523
5057
5057
  source: "sig-wave-height-source",
5058
5058
  heightLayer: "sig-wave-height-layer",
5059
5059
  heightLabelLayer: "sig-wave-height-label-layer",
5060
- empty: B.featureCollection([])
5060
+ empty: E.featureCollection([])
5061
5061
  };
5062
5062
  },
5063
5063
  watch: {
@@ -5298,7 +5298,7 @@ function Us(t, e, a, i, o, r) {
5298
5298
  n("span", null, "6", -1),
5299
5299
  n("span", null, "9", -1)
5300
5300
  ]), 4)
5301
- ])) : G("", !0);
5301
+ ])) : F("", !0);
5302
5302
  }
5303
5303
  const $s = /* @__PURE__ */ ie(Hs, [["render", Us], ["__scopeId", "data-v-7ee2face"]]), Js = {
5304
5304
  name: "IdmPrmsl",
@@ -5330,7 +5330,7 @@ const $s = /* @__PURE__ */ ie(Hs, [["render", Us], ["__scopeId", "data-v-7ee2fac
5330
5330
  layer: "prmsl-layer",
5331
5331
  labelLayer: "prmsl-label-layer",
5332
5332
  pointLabelLayer: "prmsl-point-label-layer",
5333
- empty: B.featureCollection([])
5333
+ empty: E.featureCollection([])
5334
5334
  };
5335
5335
  },
5336
5336
  watch: {
@@ -5563,7 +5563,7 @@ function tc(t, e, a, i, o, r) {
5563
5563
  n("span", null, "90", -1),
5564
5564
  n("span", null, null, -1)
5565
5565
  ]), 4)
5566
- ])) : G("", !0);
5566
+ ])) : F("", !0);
5567
5567
  }
5568
5568
  const ac = /* @__PURE__ */ ie(Qs, [["render", tc]]);
5569
5569
  const oc = {
@@ -5674,7 +5674,7 @@ function rc(t, e, a, i, o, r) {
5674
5674
  n("span", null, "80", -1),
5675
5675
  n("span", null, "100", -1)
5676
5676
  ]), 4)
5677
- ])) : G("", !0);
5677
+ ])) : F("", !0);
5678
5678
  }
5679
5679
  const lc = /* @__PURE__ */ ie(oc, [["render", rc], ["__scopeId", "data-v-3d1a7675"]]);
5680
5680
  const nc = {
@@ -5793,7 +5793,7 @@ function cc(t, e, a, i, o, r) {
5793
5793
  n("span", null, "2", -1),
5794
5794
  n("span", null, "3", -1)
5795
5795
  ]), 4)
5796
- ])) : G("", !0);
5796
+ ])) : F("", !0);
5797
5797
  }
5798
5798
  const mc = /* @__PURE__ */ ie(nc, [["render", cc]]);
5799
5799
  const dc = {
@@ -5914,7 +5914,7 @@ function pc(t, e, a, i, o, r) {
5914
5914
  n("span", null, "20", -1),
5915
5915
  n("span", null, "30", -1)
5916
5916
  ]), 4)
5917
- ])) : G("", !0);
5917
+ ])) : F("", !0);
5918
5918
  }
5919
5919
  const uc = /* @__PURE__ */ ie(dc, [["render", pc]]);
5920
5920
  const gc = {
@@ -6023,7 +6023,7 @@ function yc(t, e, a, i, o, r) {
6023
6023
  n("span", null, "3", -1),
6024
6024
  n("span", null, "9", -1)
6025
6025
  ]), 4)
6026
- ])) : G("", !0);
6026
+ ])) : F("", !0);
6027
6027
  }
6028
6028
  const bc = /* @__PURE__ */ ie(gc, [["render", yc]]);
6029
6029
  const wc = {
@@ -6135,7 +6135,7 @@ function vc(t, e, a, i, o, r) {
6135
6135
  n("span", null, "30", -1),
6136
6136
  n("span", null, "40", -1)
6137
6137
  ]), 4)
6138
- ])) : G("", !0);
6138
+ ])) : F("", !0);
6139
6139
  }
6140
6140
  const kc = /* @__PURE__ */ ie(wc, [["render", vc]]);
6141
6141
  const _c = {
@@ -6260,7 +6260,7 @@ function zc(t, e, a, i, o, r) {
6260
6260
  n("span", null, "30", -1),
6261
6261
  n("span", null, "40", -1)
6262
6262
  ]), 4)
6263
- ])) : G("", !0);
6263
+ ])) : F("", !0);
6264
6264
  }
6265
6265
  const Cc = /* @__PURE__ */ ie(_c, [["render", zc]]);
6266
6266
  const Mc = {
@@ -6596,9 +6596,9 @@ const Mc = {
6596
6596
  );
6597
6597
  const T = await Promise.all(L);
6598
6598
  this.weatherLayers = {}, T.map((z) => {
6599
- var N, V, E, H;
6599
+ var N, V, B, H;
6600
6600
  const S = ((N = z == null ? void 0 : z.data) == null ? void 0 : N.data) || (z == null ? void 0 : z.data);
6601
- let R = (E = (V = z == null ? void 0 : z.config) == null ? void 0 : V.headers) == null ? void 0 : E.key;
6601
+ let R = (B = (V = z == null ? void 0 : z.config) == null ? void 0 : V.headers) == null ? void 0 : B.key;
6602
6602
  R && S && (this.weatherLayers[R] = {
6603
6603
  raw: S,
6604
6604
  type: ((H = z == null ? void 0 : z.config) == null ? void 0 : H.responseType) === "blob" ? "image" : "json",
@@ -6697,34 +6697,34 @@ const Mc = {
6697
6697
  if (T > g && T < h && (!(o <= this.zoom) || T % (o < 2 ? 10 : o < 4 ? 5 : 3) === 0)) {
6698
6698
  const z = v[T].lng;
6699
6699
  u > b ? z.forEach((S, R) => {
6700
- var N, V, E, H, Q, ae;
6700
+ var N, V, B, H, Q, ae;
6701
6701
  if (o < 2) {
6702
6702
  if ((S >= 0 && S <= 360 || S >= -360 && S <= 0) && S % 10 === 0) {
6703
- const re = B.point([S, T], {
6703
+ const re = E.point([S, T], {
6704
6704
  val: ((N = v[T].val) == null ? void 0 : N[R]) || ((V = v[T].dir) == null ? void 0 : V[R]),
6705
- spd: (E = v[T].spd) == null ? void 0 : E[R]
6705
+ spd: (B = v[T].spd) == null ? void 0 : B[R]
6706
6706
  });
6707
6707
  _.push(re);
6708
6708
  }
6709
6709
  } else if ((S >= u && S <= 180 || S >= -180 && S <= b) && (!(o <= this.zoom) || S % (o < 2 ? 10 : o < 4 ? 5 : 3) === 0)) {
6710
- const re = B.point([S, T], {
6710
+ const re = E.point([S, T], {
6711
6711
  val: ((H = v[T].val) == null ? void 0 : H[R]) || ((Q = v[T].dir) == null ? void 0 : Q[R]),
6712
6712
  spd: (ae = v[T].spd) == null ? void 0 : ae[R]
6713
6713
  });
6714
6714
  _.push(re);
6715
6715
  }
6716
6716
  }) : z.forEach((S, R) => {
6717
- var N, V, E, H, Q, ae;
6717
+ var N, V, B, H, Q, ae;
6718
6718
  if (u < 2) {
6719
6719
  if ((S >= 0 && S <= 360 || S >= -360 && S <= 0) && S % 10 === 0) {
6720
- const re = B.point([S, T], {
6720
+ const re = E.point([S, T], {
6721
6721
  val: ((N = v[T].val) == null ? void 0 : N[R]) || ((V = v[T].dir) == null ? void 0 : V[R]),
6722
- spd: (E = v[T].spd) == null ? void 0 : E[R]
6722
+ spd: (B = v[T].spd) == null ? void 0 : B[R]
6723
6723
  });
6724
6724
  _.push(re);
6725
6725
  }
6726
6726
  } else if (S >= u && S <= b && (!(o <= this.zoom) || S % (o < 2 ? 10 : o < 4 ? 5 : 3) === 0)) {
6727
- const re = B.point([S, T], {
6727
+ const re = E.point([S, T], {
6728
6728
  val: ((H = v[T].val) == null ? void 0 : H[R]) || ((Q = v[T].dir) == null ? void 0 : Q[R]),
6729
6729
  spd: (ae = v[T].spd) == null ? void 0 : ae[R]
6730
6730
  });
@@ -6741,11 +6741,11 @@ const Mc = {
6741
6741
  const S = L.raw.LineString[z];
6742
6742
  for (const R of S)
6743
6743
  T.push(
6744
- B.lineString(R, {
6744
+ E.lineString(R, {
6745
6745
  val: Number(z)
6746
6746
  })
6747
6747
  );
6748
- L.data = B.featureCollection(T);
6748
+ L.data = E.featureCollection(T);
6749
6749
  }
6750
6750
  }
6751
6751
  if (L.data) {
@@ -6761,34 +6761,34 @@ const Mc = {
6761
6761
  if (T > g && T < h && (!(o <= this.zoom) || T % (o < 2 ? 10 : o < 4 ? 5 : 3) === 0)) {
6762
6762
  const z = v[T].lng;
6763
6763
  u > b ? z.forEach((S, R) => {
6764
- var N, V, E, H, Q, ae;
6764
+ var N, V, B, H, Q, ae;
6765
6765
  if (o < 2) {
6766
6766
  if ((S >= 0 && S <= 360 || S >= -360 && S <= 0) && S % 10 === 0) {
6767
- const re = B.point([S, T], {
6767
+ const re = E.point([S, T], {
6768
6768
  val: ((N = v[T].val) == null ? void 0 : N[R]) || ((V = v[T].dir) == null ? void 0 : V[R]),
6769
- spd: (E = v[T].spd) == null ? void 0 : E[R]
6769
+ spd: (B = v[T].spd) == null ? void 0 : B[R]
6770
6770
  });
6771
6771
  _.push(re);
6772
6772
  }
6773
6773
  } else if ((S >= u && S <= 180 || S >= -180 && S <= b) && (!(o <= this.zoom) || S % (o < 2 ? 10 : o < 4 ? 5 : 3) === 0)) {
6774
- const re = B.point([S, T], {
6774
+ const re = E.point([S, T], {
6775
6775
  val: ((H = v[T].val) == null ? void 0 : H[R]) || ((Q = v[T].dir) == null ? void 0 : Q[R]),
6776
6776
  spd: (ae = v[T].spd) == null ? void 0 : ae[R]
6777
6777
  });
6778
6778
  _.push(re);
6779
6779
  }
6780
6780
  }) : z.forEach((S, R) => {
6781
- var N, V, E, H, Q, ae;
6781
+ var N, V, B, H, Q, ae;
6782
6782
  if (u < 2) {
6783
6783
  if ((S >= 0 && S <= 360 || S >= -360 && S <= 0) && S % 10 === 0) {
6784
- const re = B.point([S, T], {
6784
+ const re = E.point([S, T], {
6785
6785
  val: ((N = v[T].val) == null ? void 0 : N[R]) || ((V = v[T].dir) == null ? void 0 : V[R]),
6786
- spd: (E = v[T].spd) == null ? void 0 : E[R]
6786
+ spd: (B = v[T].spd) == null ? void 0 : B[R]
6787
6787
  });
6788
6788
  _.push(re);
6789
6789
  }
6790
6790
  } else if (S >= u && S <= b && (!(o <= this.zoom) || S % (o < this.zoom / 2 ? 5 : 3) === 0)) {
6791
- const re = B.point([S, T], {
6791
+ const re = E.point([S, T], {
6792
6792
  val: ((H = v[T].val) == null ? void 0 : H[R]) || ((Q = v[T].dir) == null ? void 0 : Q[R]),
6793
6793
  spd: (ae = v[T].spd) == null ? void 0 : ae[R]
6794
6794
  });
@@ -6805,12 +6805,12 @@ const Mc = {
6805
6805
  const R = L.raw.Polygon[S];
6806
6806
  for (const N of R)
6807
6807
  z.push(
6808
- B.polygon(N, {
6808
+ E.polygon(N, {
6809
6809
  val: Number(S)
6810
6810
  })
6811
6811
  );
6812
6812
  }
6813
- L.data = B.featureCollection(z);
6813
+ L.data = E.featureCollection(z);
6814
6814
  }
6815
6815
  const T = o < this.zoom ? L.data.features.filter((z) => z.properties.val > 0.5) : L.data.features;
6816
6816
  _ = _.concat(T), a = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("current speed elapsed: ", a, ", total: ", e += a);
@@ -6822,35 +6822,35 @@ const Mc = {
6822
6822
  if (L > g && L < h && (!(o <= this.zoom) || L % (o < 2 ? 10 : o < 4 ? 5 : 3) === 0)) {
6823
6823
  const T = v[L].lng;
6824
6824
  u > b ? T.forEach((z, S) => {
6825
- var R, N, V, E;
6825
+ var R, N, V, B;
6826
6826
  if (o < 2) {
6827
6827
  if ((z >= 0 && z <= 360 || z >= -360 && z <= 0) && z % 10 === 0) {
6828
- const H = B.point([z, L], {
6828
+ const H = E.point([z, L], {
6829
6829
  dir: ((R = v[L].val) == null ? void 0 : R[S]) || ((N = v[L].dir) == null ? void 0 : N[S]),
6830
6830
  spd: v[L].spd[S]
6831
6831
  });
6832
6832
  _.push(H);
6833
6833
  }
6834
6834
  } else if ((z >= u && z <= 180 || z >= -180 && z <= b) && (!(o <= this.zoom) || z % (o < 2 ? 10 : o < 4 ? 5 : 3) === 0)) {
6835
- const H = B.point([z, L], {
6836
- dir: ((V = v[L].val) == null ? void 0 : V[S]) || ((E = v[L].dir) == null ? void 0 : E[S]),
6835
+ const H = E.point([z, L], {
6836
+ dir: ((V = v[L].val) == null ? void 0 : V[S]) || ((B = v[L].dir) == null ? void 0 : B[S]),
6837
6837
  spd: v[L].spd[S]
6838
6838
  });
6839
6839
  _.push(H);
6840
6840
  }
6841
6841
  }) : T.forEach((z, S) => {
6842
- var R, N, V, E;
6842
+ var R, N, V, B;
6843
6843
  if (o < 2) {
6844
6844
  if ((z >= 0 && z <= 360 || z >= -360 && z <= 0) && z % 10 === 0) {
6845
- const H = B.point([z, L], {
6845
+ const H = E.point([z, L], {
6846
6846
  dir: ((R = v[L].val) == null ? void 0 : R[S]) || ((N = v[L].dir) == null ? void 0 : N[S]),
6847
6847
  spd: v[L].spd[S]
6848
6848
  });
6849
6849
  _.push(H);
6850
6850
  }
6851
6851
  } else if (z >= u && z <= b && (!(o <= this.zoom) || z % (o < 2 ? 10 : o < 4 ? 5 : 3) === 0)) {
6852
- const H = B.point([z, L], {
6853
- dir: ((V = v[L].val) == null ? void 0 : V[S]) || ((E = v[L].dir) == null ? void 0 : E[S]),
6852
+ const H = E.point([z, L], {
6853
+ dir: ((V = v[L].val) == null ? void 0 : V[S]) || ((B = v[L].dir) == null ? void 0 : B[S]),
6854
6854
  spd: v[L].spd[S]
6855
6855
  });
6856
6856
  _.push(H);
@@ -6870,7 +6870,7 @@ const Mc = {
6870
6870
  const z = v.Polygon[T];
6871
6871
  for (const S of z)
6872
6872
  L.push(
6873
- B.polygon(S, {
6873
+ E.polygon(S, {
6874
6874
  val: Number(T)
6875
6875
  })
6876
6876
  );
@@ -6879,7 +6879,7 @@ const Mc = {
6879
6879
  const z = v.MultiPolygon[T];
6880
6880
  for (const S of z)
6881
6881
  L.push(
6882
- B.multiPolygon(S, {
6882
+ E.multiPolygon(S, {
6883
6883
  val: Number(T)
6884
6884
  })
6885
6885
  );
@@ -6888,7 +6888,7 @@ const Mc = {
6888
6888
  const z = v.Point[T];
6889
6889
  for (let S = 0; S < ((p = z.lng) == null ? void 0 : p.length); S++)
6890
6890
  L.push(
6891
- B.point([z.lng[S], T], {
6891
+ E.point([z.lng[S], T], {
6892
6892
  val: Number(z.val[S])
6893
6893
  })
6894
6894
  );
@@ -6909,7 +6909,7 @@ const Mc = {
6909
6909
  const z = v.LineString[T];
6910
6910
  for (const S of z)
6911
6911
  L.push(
6912
- B.lineString(S, {
6912
+ E.lineString(S, {
6913
6913
  val: Number(T)
6914
6914
  })
6915
6915
  );
@@ -6917,7 +6917,7 @@ const Mc = {
6917
6917
  for (const T in v.Point)
6918
6918
  v.Point[T].lng.forEach((z, S) => {
6919
6919
  z = j.convertToStdLng(z), L.push(
6920
- B.point([z, T], {
6920
+ E.point([z, T], {
6921
6921
  val: v.Point[T].val[S],
6922
6922
  type: v.Point[T].type[S]
6923
6923
  })
@@ -6928,7 +6928,7 @@ const Mc = {
6928
6928
  }
6929
6929
  a = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("prmsl elapsed: ", a, ", total: ", e += a);
6930
6930
  }
6931
- _.length && (this.weatherLayers[f].data = B.featureCollection(_)), C && (this.weatherLayers[f].version = Math.random() + 1);
6931
+ _.length && (this.weatherLayers[f].data = E.featureCollection(_)), C && (this.weatherLayers[f].version = Math.random() + 1);
6932
6932
  }
6933
6933
  }
6934
6934
  }
@@ -6943,10 +6943,10 @@ const Mc = {
6943
6943
  return t.features.forEach((r) => {
6944
6944
  if (r.geometry.type !== "Point")
6945
6945
  if (i > o) {
6946
- let l = [i, e._sw.lat, 180, e._ne.lat], c = B.bboxClip(r, l);
6947
- c.geometry.coordinates.length && a.push(c), l = [-180, e._sw.lat, o, e._ne.lat], c = B.bboxClip(r, l), c.geometry.coordinates.length && a.push(c);
6946
+ let l = [i, e._sw.lat, 180, e._ne.lat], c = E.bboxClip(r, l);
6947
+ c.geometry.coordinates.length && a.push(c), l = [-180, e._sw.lat, o, e._ne.lat], c = E.bboxClip(r, l), c.geometry.coordinates.length && a.push(c);
6948
6948
  } else {
6949
- const l = [i, e._sw.lat, o, e._ne.lat], c = B.bboxClip(r, l);
6949
+ const l = [i, e._sw.lat, o, e._ne.lat], c = E.bboxClip(r, l);
6950
6950
  c.geometry.coordinates.length && a.push(c);
6951
6951
  }
6952
6952
  else
@@ -6960,13 +6960,13 @@ const Mc = {
6960
6960
  }, Tc = { class: "d-flex flex-row justify-center align-center" }, Rc = { class: "text-caption" }, Dc = { class: "d-flex flex-row justify-center align-center" }, Ic = {
6961
6961
  key: 0,
6962
6962
  style: { width: "24px", height: "12px", border: "1px solid rgba(var(--v-border-color), var(--v-border-opacity))" }
6963
- }, Ac = { class: "text-caption px-2" }, Fc = { class: "d-flex flex-row justify-start align-center" }, Gc = {
6963
+ }, Ac = { class: "text-caption px-2" }, Gc = { class: "d-flex flex-row justify-start align-center" }, Fc = {
6964
6964
  class: "d-flex flex-row justify-center align-center",
6965
6965
  style: { width: "40px" }
6966
- }, Nc = { class: "text-caption" }, Wc = { class: "d-flex justify-start align-center ga-3" }, Vc = { class: "text-h5 font-weight-medium" }, Ec = {
6966
+ }, Nc = { class: "text-caption" }, Wc = { class: "d-flex justify-start align-center ga-3" }, Vc = { class: "text-h5 font-weight-medium" }, Bc = {
6967
6967
  key: 0,
6968
6968
  class: "w-100 d-flex justify-space-between align-center ga-1 mb-2 px-3"
6969
- }, Bc = {
6969
+ }, Ec = {
6970
6970
  key: 0,
6971
6971
  class: "d-flex justify-start align-center ga-4 pl-6"
6972
6972
  }, Zc = {
@@ -6975,7 +6975,7 @@ const Mc = {
6975
6975
  }, Oc = { class: "text-body-1 py-2" }, jc = { class: "text-body-1 font-weight-medium" }, Xc = { class: "text-body-2 text-label" }, Hc = { class: "text-body-2 text-label" }, Yc = { class: "text-body-2 text-label mb-3" }, Uc = { class: "text-body-1 font-weight-medium" }, $c = { class: "text-body-2 text-label" }, Jc = { class: "text-body-2 text-label" }, Kc = { class: "text-body-2 text-label mb-3" }, qc = { class: "text-body-1 py-2" }, Qc = { class: "text-body-1 font-weight-medium" }, em = { class: "text-body-2 text-label" }, tm = { class: "text-body-2 text-label" }, am = { class: "text-body-2 text-label mb-3" }, om = { class: "text-body-1 font-weight-medium" }, im = { class: "text-body-2 text-label" }, rm = { class: "text-body-2 text-label" }, lm = { class: "text-body-2 text-label mb-3" }, nm = { class: "text-body-1 py-2" }, sm = { class: "text-body-1 font-weight-medium" }, cm = { class: "text-body-2 text-label" }, mm = { class: "text-body-2 text-label" }, dm = { class: "text-body-2 text-label mb-3" };
6976
6976
  function hm(t, e, a, i, o, r) {
6977
6977
  var J, K, oe, Y, X, ee, A, ne, fe, ke, ze, me, be, _e, Re;
6978
- const l = P("VBtn"), c = P("VTooltip"), s = P("VCol"), d = P("VRow"), m = P("VCardText"), p = P("VDivider"), u = P("VCard"), b = P("VSwitch"), g = P("VBtnToggle"), h = P("VCardTitle"), f = P("VCardItem"), C = P("VCheckbox"), _ = P("VRadio"), v = P("IdmWindBarb"), L = P("IdmSigWaveHeight"), T = P("IdmCurrentDirection"), z = P("IdmPrmsl"), S = P("IdmWindParticle"), R = P("IdmCurrentParticle"), N = P("IdmWave"), V = P("IdmSwell"), E = P("IdmIceEdge"), H = P("IdmIceCover"), Q = P("IdmIceThickness"), ae = P("IdmPrecip3h"), re = P("IdmVisibility"), pe = P("IdmWaterTemp"), F = P("IdmTemp");
6978
+ const l = P("VBtn"), c = P("VTooltip"), s = P("VCol"), d = P("VRow"), m = P("VCardText"), p = P("VDivider"), u = P("VCard"), b = P("VSwitch"), g = P("VBtnToggle"), h = P("VCardTitle"), f = P("VCardItem"), C = P("VCheckbox"), _ = P("VRadio"), v = P("IdmWindBarb"), L = P("IdmSigWaveHeight"), T = P("IdmCurrentDirection"), z = P("IdmPrmsl"), S = P("IdmWindParticle"), R = P("IdmCurrentParticle"), N = P("IdmWave"), V = P("IdmSwell"), B = P("IdmIceEdge"), H = P("IdmIceCover"), Q = P("IdmIceThickness"), ae = P("IdmPrecip3h"), re = P("IdmVisibility"), pe = P("IdmWaterTemp"), G = P("IdmTemp");
6979
6979
  return k(), I("div", Pc, [
6980
6980
  n("div", {
6981
6981
  class: "menu-bar-box transition pa-1",
@@ -7123,8 +7123,8 @@ function hm(t, e, a, i, o, r) {
7123
7123
  class: "d-flex flex-row justify-center align-center py-1 px-0 ma-0"
7124
7124
  }, {
7125
7125
  default: x(() => [
7126
- n("div", Fc, [
7127
- n("div", Gc, [
7126
+ n("div", Gc, [
7127
+ n("div", Fc, [
7128
7128
  n("i", {
7129
7129
  class: "iconfont icon-a-direction-arrow text-label",
7130
7130
  style: he({ fontSize: 40 * q.size + "px" })
@@ -7144,8 +7144,8 @@ function hm(t, e, a, i, o, r) {
7144
7144
  })
7145
7145
  ]),
7146
7146
  _: 1
7147
- }, 8, ["style"])) : G("", !0)
7148
- ])) : G("", !0),
7147
+ }, 8, ["style"])) : F("", !0)
7148
+ ])) : F("", !0),
7149
7149
  n("div", {
7150
7150
  class: ge(["available-layers transition d-flex flex-column justify-start align-start", o.toggle ? "right-bar" : ""]),
7151
7151
  style: he(r.listStyle)
@@ -7179,7 +7179,7 @@ function hm(t, e, a, i, o, r) {
7179
7179
  __: [14]
7180
7180
  }, 8, ["onClick"])
7181
7181
  ], 2),
7182
- a.simple ? (k(), I("div", Ec, [
7182
+ a.simple ? (k(), I("div", Bc, [
7183
7183
  n("div", null, y(t.$t("weather.forecastModel")), 1),
7184
7184
  w(g, {
7185
7185
  modelValue: o.currentModel,
@@ -7222,7 +7222,7 @@ function hm(t, e, a, i, o, r) {
7222
7222
  ]),
7223
7223
  _: 1
7224
7224
  }, 8, ["modelValue"])
7225
- ])) : G("", !0),
7225
+ ])) : F("", !0),
7226
7226
  n("div", {
7227
7227
  class: ge(["list-box w-100 scroll overflow-y-auto", [o.autoActive ? "" : "cursor-not-allowed", a.simple ? "px-3" : "pl-4 pr-2"]])
7228
7228
  }, [
@@ -7297,7 +7297,7 @@ function hm(t, e, a, i, o, r) {
7297
7297
  "hide-details": "",
7298
7298
  onClick: (de) => o.renderKey = o.renderKey === q.key ? "" : q.key
7299
7299
  }, null, 8, ["modelValue", "label", "value", "disabled", "onClick"]),
7300
- o.renderKey === "wind-particle" && q.key === "wind-particle" ? (k(), I("div", Bc, [
7300
+ o.renderKey === "wind-particle" && q.key === "wind-particle" ? (k(), I("div", Ec, [
7301
7301
  n("span", null, y(t.$t("weather.particleAnimatiom")), 1),
7302
7302
  w(b, {
7303
7303
  modelValue: o.showWindParticle,
@@ -7311,7 +7311,7 @@ function hm(t, e, a, i, o, r) {
7311
7311
  style: { "font-size": "14px" },
7312
7312
  "hide-details": ""
7313
7313
  }, null, 8, ["modelValue"])
7314
- ])) : G("", !0),
7314
+ ])) : F("", !0),
7315
7315
  o.renderKey === "current-particle" && q.key === "current-particle" ? (k(), I("div", Zc, [
7316
7316
  n("span", null, y(t.$t("weather.particleAnimatiom")), 1),
7317
7317
  w(b, {
@@ -7326,7 +7326,7 @@ function hm(t, e, a, i, o, r) {
7326
7326
  height: "20",
7327
7327
  "hide-details": ""
7328
7328
  }, null, 8, ["modelValue"])
7329
- ])) : G("", !0),
7329
+ ])) : F("", !0),
7330
7330
  o.renderKey === "wave-group" && q.key === "wave-group" ? (k(), W(g, {
7331
7331
  key: 2,
7332
7332
  modelValue: o.waveToggleValue,
@@ -7370,7 +7370,7 @@ function hm(t, e, a, i, o, r) {
7370
7370
  }, 8, ["color", "disabled"])
7371
7371
  ]),
7372
7372
  _: 1
7373
- }, 8, ["modelValue", "disabled"])) : G("", !0),
7373
+ }, 8, ["modelValue", "disabled"])) : F("", !0),
7374
7374
  o.renderKey === "ice-forecast" && q.key === "ice-forecast" ? (k(), W(g, {
7375
7375
  key: 3,
7376
7376
  modelValue: o.iceToggleValue,
@@ -7414,7 +7414,7 @@ function hm(t, e, a, i, o, r) {
7414
7414
  }, 8, ["color", "disabled"])
7415
7415
  ]),
7416
7416
  _: 1
7417
- }, 8, ["modelValue", "disabled"])) : G("", !0)
7417
+ }, 8, ["modelValue", "disabled"])) : F("", !0)
7418
7418
  ], 64))), 128))
7419
7419
  ]),
7420
7420
  _: 1
@@ -7440,14 +7440,14 @@ function hm(t, e, a, i, o, r) {
7440
7440
  }),
7441
7441
  w(m, { class: "" }, {
7442
7442
  default: x(() => {
7443
- var q, de, He, Ve, Me, Ae, le, Pe, ue, we, Be, Ue, Ye, U, xe, Fe, Ze, Oe, te, Ee, se, at, ot, it, Ne, mt, dt, ht, pt, ut, gt, ft, yt, bt, wt, xt, vt, kt, _t, Lt, zt, Ct, Mt, Pt, St, Tt, Rt, Dt, It, At, Ft, Gt, Nt, Wt, Vt, Et, Bt, Zt, Ot, jt, Xt, Ht, Yt, Ut, $t, Jt, Kt, qt, Qt, ea, ta, aa, oa, ia, ra, la, na, sa, ca, ma, da, ha, pa, ua, ga, fa, ya, ba, wa, xa, va, ka, _a, La, za, Ca, Ma, Pa, Sa, Ta, Ra, Da, Ia, Aa, Fa;
7443
+ var q, de, He, Ve, Me, Ae, le, Pe, ue, xe, Ee, Ue, Ye, U, ve, Ge, Ze, Oe, te, Be, se, at, ot, it, Ne, mt, dt, ht, pt, ut, gt, ft, yt, bt, wt, xt, vt, kt, _t, Lt, zt, Ct, Mt, Pt, St, Tt, Rt, Dt, It, At, Gt, Ft, Nt, Wt, Vt, Bt, Et, Zt, Ot, jt, Xt, Ht, Yt, Ut, $t, Jt, Kt, qt, Qt, ea, ta, aa, oa, ia, ra, la, na, sa, ca, ma, da, ha, pa, ua, ga, fa, ya, ba, wa, xa, va, ka, _a, La, za, Ca, Ma, Pa, Sa, Ta, Ra, Da, Ia, Aa, Ga;
7444
7444
  return [
7445
7445
  n("div", Oc, y(t.$t("weather.atmospheric")), 1),
7446
- n("div", jc, y((He = (de = (q = o.models) == null ? void 0 : q.weather) == null ? void 0 : de.NOAA) == null ? void 0 : He.source) + " " + y((Ae = (Me = (Ve = o.models) == null ? void 0 : Ve.weather) == null ? void 0 : Me.NOAA) == null ? void 0 : Ae.spatialResolution) + y(t.$t("units.km")) + " " + y((we = (ue = (Pe = (le = o.models) == null ? void 0 : le.weather) == null ? void 0 : Pe.NOAA) == null ? void 0 : ue.meta) == null ? void 0 : we.days) + y(t.$t("units.days")), 1),
7446
+ n("div", jc, y((He = (de = (q = o.models) == null ? void 0 : q.weather) == null ? void 0 : de.NOAA) == null ? void 0 : He.source) + " " + y((Ae = (Me = (Ve = o.models) == null ? void 0 : Ve.weather) == null ? void 0 : Me.NOAA) == null ? void 0 : Ae.spatialResolution) + y(t.$t("units.km")) + " " + y((xe = (ue = (Pe = (le = o.models) == null ? void 0 : le.weather) == null ? void 0 : Pe.NOAA) == null ? void 0 : ue.meta) == null ? void 0 : xe.days) + y(t.$t("units.days")), 1),
7447
7447
  n("div", Xc, y(t.$t("weather.source")) + ": NOAA", 1),
7448
- n("div", Hc, y(t.$t("weather.lastUpdate")) + ": " + y(r.computeDateUpdate((U = (Ye = (Ue = (Be = o.models) == null ? void 0 : Be.weather) == null ? void 0 : Ue.NOAA) == null ? void 0 : Ye.meta) == null ? void 0 : U.availabilityTime)), 1),
7449
- n("div", Yc, y(t.$t("weather.referenceTime")) + ": " + y(r.computeDateZ((Oe = (Ze = (Fe = (xe = o.models) == null ? void 0 : xe.weather) == null ? void 0 : Fe.NOAA) == null ? void 0 : Ze.meta) == null ? void 0 : Oe.initialisationTime)), 1),
7450
- n("div", Uc, y((se = (Ee = (te = o.models) == null ? void 0 : te.weather) == null ? void 0 : Ee.ECMWF) == null ? void 0 : se.source) + " " + y((it = (ot = (at = o.models) == null ? void 0 : at.weather) == null ? void 0 : ot.ECMWF) == null ? void 0 : it.spatialResolution) + y(t.$t("units.km")) + " " + y((ht = (dt = (mt = (Ne = o.models) == null ? void 0 : Ne.weather) == null ? void 0 : mt.ECMWF) == null ? void 0 : dt.meta) == null ? void 0 : ht.days) + y(t.$t("units.days")), 1),
7448
+ n("div", Hc, y(t.$t("weather.lastUpdate")) + ": " + y(r.computeDateUpdate((U = (Ye = (Ue = (Ee = o.models) == null ? void 0 : Ee.weather) == null ? void 0 : Ue.NOAA) == null ? void 0 : Ye.meta) == null ? void 0 : U.availabilityTime)), 1),
7449
+ n("div", Yc, y(t.$t("weather.referenceTime")) + ": " + y(r.computeDateZ((Oe = (Ze = (Ge = (ve = o.models) == null ? void 0 : ve.weather) == null ? void 0 : Ge.NOAA) == null ? void 0 : Ze.meta) == null ? void 0 : Oe.initialisationTime)), 1),
7450
+ n("div", Uc, y((se = (Be = (te = o.models) == null ? void 0 : te.weather) == null ? void 0 : Be.ECMWF) == null ? void 0 : se.source) + " " + y((it = (ot = (at = o.models) == null ? void 0 : at.weather) == null ? void 0 : ot.ECMWF) == null ? void 0 : it.spatialResolution) + y(t.$t("units.km")) + " " + y((ht = (dt = (mt = (Ne = o.models) == null ? void 0 : Ne.weather) == null ? void 0 : mt.ECMWF) == null ? void 0 : dt.meta) == null ? void 0 : ht.days) + y(t.$t("units.days")), 1),
7451
7451
  n("div", $c, y(t.$t("weather.source")) + ": ECMWF", 1),
7452
7452
  n("div", Jc, y(t.$t("weather.lastUpdate")) + ": " + y(r.computeDateUpdate((ft = (gt = (ut = (pt = o.models) == null ? void 0 : pt.weather) == null ? void 0 : ut.ECMWF) == null ? void 0 : gt.meta) == null ? void 0 : ft.availabilityTime)), 1),
7453
7453
  n("div", Kc, y(t.$t("weather.referenceTime")) + ": " + y(r.computeDateZ((xt = (wt = (bt = (yt = o.models) == null ? void 0 : yt.weather) == null ? void 0 : bt.ECMWF) == null ? void 0 : wt.meta) == null ? void 0 : xt.initialisationTime)), 1),
@@ -7455,8 +7455,8 @@ function hm(t, e, a, i, o, r) {
7455
7455
  n("div", qc, y(t.$t("weather.wave")), 1),
7456
7456
  n("div", Qc, y((Lt = (_t = (kt = (vt = o.models) == null ? void 0 : vt.marine) == null ? void 0 : kt.wave) == null ? void 0 : _t.NOAA) == null ? void 0 : Lt.source) + " " + y((Pt = (Mt = (Ct = (zt = o.models) == null ? void 0 : zt.marine) == null ? void 0 : Ct.wave) == null ? void 0 : Mt.NOAA) == null ? void 0 : Pt.spatialResolution) + y(t.$t("units.km")) + " " + y((It = (Dt = (Rt = (Tt = (St = o.models) == null ? void 0 : St.marine) == null ? void 0 : Tt.wave) == null ? void 0 : Rt.NOAA) == null ? void 0 : Dt.meta) == null ? void 0 : It.days) + y(t.$t("units.days")), 1),
7457
7457
  n("div", em, y(t.$t("weather.source")) + ": NOAA", 1),
7458
- n("div", tm, y(t.$t("weather.lastUpdate")) + ": " + y(r.computeDateUpdate((Wt = (Nt = (Gt = (Ft = (At = o.models) == null ? void 0 : At.marine) == null ? void 0 : Ft.wave) == null ? void 0 : Gt.NOAA) == null ? void 0 : Nt.meta) == null ? void 0 : Wt.availabilityTime)), 1),
7459
- n("div", am, y(t.$t("weather.referenceTime")) + ": " + y(r.computeDateZ((Ot = (Zt = (Bt = (Et = (Vt = o.models) == null ? void 0 : Vt.marine) == null ? void 0 : Et.wave) == null ? void 0 : Bt.NOAA) == null ? void 0 : Zt.meta) == null ? void 0 : Ot.initialisationTime)), 1),
7458
+ n("div", tm, y(t.$t("weather.lastUpdate")) + ": " + y(r.computeDateUpdate((Wt = (Nt = (Ft = (Gt = (At = o.models) == null ? void 0 : At.marine) == null ? void 0 : Gt.wave) == null ? void 0 : Ft.NOAA) == null ? void 0 : Nt.meta) == null ? void 0 : Wt.availabilityTime)), 1),
7459
+ n("div", am, y(t.$t("weather.referenceTime")) + ": " + y(r.computeDateZ((Ot = (Zt = (Et = (Bt = (Vt = o.models) == null ? void 0 : Vt.marine) == null ? void 0 : Bt.wave) == null ? void 0 : Et.NOAA) == null ? void 0 : Zt.meta) == null ? void 0 : Ot.initialisationTime)), 1),
7460
7460
  n("div", om, y((Yt = (Ht = (Xt = (jt = o.models) == null ? void 0 : jt.marine) == null ? void 0 : Xt.wave) == null ? void 0 : Ht.ECMWF) == null ? void 0 : Yt.source) + " " + y((Kt = (Jt = ($t = (Ut = o.models) == null ? void 0 : Ut.marine) == null ? void 0 : $t.wave) == null ? void 0 : Jt.ECMWF) == null ? void 0 : Kt.spatialResolution) + y(t.$t("units.km")) + " " + y((aa = (ta = (ea = (Qt = (qt = o.models) == null ? void 0 : qt.marine) == null ? void 0 : Qt.wave) == null ? void 0 : ea.ECMWF) == null ? void 0 : ta.meta) == null ? void 0 : aa.days) + y(t.$t("units.days")), 1),
7461
7461
  n("div", im, y(t.$t("weather.source")) + ": ECMWF", 1),
7462
7462
  n("div", rm, y(t.$t("weather.lastUpdate")) + ": " + y(r.computeDateUpdate((na = (la = (ra = (ia = (oa = o.models) == null ? void 0 : oa.marine) == null ? void 0 : ia.wave) == null ? void 0 : ra.ECMWF) == null ? void 0 : la.meta) == null ? void 0 : na.availabilityTime)), 1),
@@ -7466,7 +7466,7 @@ function hm(t, e, a, i, o, r) {
7466
7466
  n("div", sm, y((fa = (ga = (ua = (pa = o.models) == null ? void 0 : pa.marine) == null ? void 0 : ua.current) == null ? void 0 : ga.ECMWF) == null ? void 0 : fa.source) + " " + y((xa = (wa = (ba = (ya = o.models) == null ? void 0 : ya.marine) == null ? void 0 : ba.current) == null ? void 0 : wa.ECMWF) == null ? void 0 : xa.spatialResolution) + y(t.$t("units.km")) + " " + y((za = (La = (_a = (ka = (va = o.models) == null ? void 0 : va.marine) == null ? void 0 : ka.current) == null ? void 0 : _a.ECMWF) == null ? void 0 : La.meta) == null ? void 0 : za.days) + y(t.$t("units.days")), 1),
7467
7467
  n("div", cm, y(t.$t("weather.source")) + ": ECMWF", 1),
7468
7468
  n("div", mm, y(t.$t("weather.lastUpdate")) + ": " + y(r.computeDateUpdate((Ta = (Sa = (Pa = (Ma = (Ca = o.models) == null ? void 0 : Ca.marine) == null ? void 0 : Ma.current) == null ? void 0 : Pa.ECMWF) == null ? void 0 : Sa.meta) == null ? void 0 : Ta.availabilityTime)), 1),
7469
- n("div", dm, y(t.$t("weather.referenceTime")) + ": " + y(r.computeDateZ((Fa = (Aa = (Ia = (Da = (Ra = o.models) == null ? void 0 : Ra.marine) == null ? void 0 : Da.current) == null ? void 0 : Ia.ECMWF) == null ? void 0 : Aa.meta) == null ? void 0 : Fa.initialisationTime)), 1)
7469
+ n("div", dm, y(t.$t("weather.referenceTime")) + ": " + y(r.computeDateZ((Ga = (Aa = (Ia = (Da = (Ra = o.models) == null ? void 0 : Ra.marine) == null ? void 0 : Da.current) == null ? void 0 : Ia.ECMWF) == null ? void 0 : Aa.meta) == null ? void 0 : Ga.initialisationTime)), 1)
7470
7470
  ];
7471
7471
  }),
7472
7472
  _: 1
@@ -7484,7 +7484,7 @@ function hm(t, e, a, i, o, r) {
7484
7484
  "before-layer": "empty-layer-3",
7485
7485
  wind: (J = o.weatherLayers) == null ? void 0 : J.wind,
7486
7486
  "menu-toggle": a.menuToggle
7487
- }, t.$attrs), null, 16, ["map", "map-feather", "wind", "menu-toggle"])) : G("", !0),
7487
+ }, t.$attrs), null, 16, ["map", "map-feather", "wind", "menu-toggle"])) : F("", !0),
7488
7488
  a.map ? (k(), W(L, $({
7489
7489
  key: 2,
7490
7490
  map: a.map,
@@ -7492,7 +7492,7 @@ function hm(t, e, a, i, o, r) {
7492
7492
  "sig-wave-height": (K = o.weatherLayers) == null ? void 0 : K["sig-wave-height"],
7493
7493
  "menu-toggle": a.menuToggle,
7494
7494
  "active-weather-layers": o.activeWeatherLayers
7495
- }, t.$attrs), null, 16, ["map", "sig-wave-height", "menu-toggle", "active-weather-layers"])) : G("", !0),
7495
+ }, t.$attrs), null, 16, ["map", "sig-wave-height", "menu-toggle", "active-weather-layers"])) : F("", !0),
7496
7496
  a.map ? (k(), W(T, $({
7497
7497
  key: 3,
7498
7498
  map: a.map,
@@ -7500,7 +7500,7 @@ function hm(t, e, a, i, o, r) {
7500
7500
  "before-layer": "empty-layer-2",
7501
7501
  current: (oe = o.weatherLayers) == null ? void 0 : oe.current,
7502
7502
  "menu-toggle": a.menuToggle
7503
- }, t.$attrs), null, 16, ["map", "map-feather", "current", "menu-toggle"])) : G("", !0),
7503
+ }, t.$attrs), null, 16, ["map", "map-feather", "current", "menu-toggle"])) : F("", !0),
7504
7504
  a.map ? (k(), W(z, $({
7505
7505
  key: 4,
7506
7506
  map: a.map,
@@ -7508,28 +7508,28 @@ function hm(t, e, a, i, o, r) {
7508
7508
  prmsl: (Y = o.weatherLayers) == null ? void 0 : Y.prmsl,
7509
7509
  "menu-toggle": a.menuToggle,
7510
7510
  "active-weather-layers": o.activeWeatherLayers
7511
- }, t.$attrs, { theme: a.theme }), null, 16, ["map", "prmsl", "menu-toggle", "active-weather-layers", "theme"])) : G("", !0),
7511
+ }, t.$attrs, { theme: a.theme }), null, 16, ["map", "prmsl", "menu-toggle", "active-weather-layers", "theme"])) : F("", !0),
7512
7512
  a.map ? (k(), W(S, $({
7513
7513
  key: 5,
7514
7514
  viewport: o.viewport,
7515
7515
  factor: (X = o.weatherLayers) == null ? void 0 : X["wind-particle"],
7516
7516
  "menu-toggle": a.menuToggle,
7517
7517
  simple: a.simple
7518
- }, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle", "simple"])) : G("", !0),
7518
+ }, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle", "simple"])) : F("", !0),
7519
7519
  a.map ? (k(), W(R, $({
7520
7520
  key: 6,
7521
7521
  viewport: o.viewport,
7522
7522
  factor: (ee = o.weatherLayers) == null ? void 0 : ee["current-particle"],
7523
7523
  "menu-toggle": a.menuToggle,
7524
7524
  simple: a.simple
7525
- }, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle", "simple"])) : G("", !0),
7525
+ }, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle", "simple"])) : F("", !0),
7526
7526
  a.map ? (k(), W(N, $({
7527
7527
  key: 7,
7528
7528
  viewport: o.viewport,
7529
7529
  factor: (A = o.weatherLayers) == null ? void 0 : A["sig-wave"],
7530
7530
  "menu-toggle": a.menuToggle,
7531
7531
  simple: a.simple
7532
- }, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle", "simple"])) : G("", !0),
7532
+ }, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle", "simple"])) : F("", !0),
7533
7533
  a.map ? (k(), W(V, $({
7534
7534
  key: 8,
7535
7535
  map: a.map,
@@ -7538,59 +7538,59 @@ function hm(t, e, a, i, o, r) {
7538
7538
  "menu-toggle": a.menuToggle,
7539
7539
  "active-weather-layers": o.activeWeatherLayers,
7540
7540
  simple: a.simple
7541
- }, t.$attrs), null, 16, ["map", "viewport", "factor", "menu-toggle", "active-weather-layers", "simple"])) : G("", !0),
7542
- a.map ? (k(), W(E, $({
7541
+ }, t.$attrs), null, 16, ["map", "viewport", "factor", "menu-toggle", "active-weather-layers", "simple"])) : F("", !0),
7542
+ a.map ? (k(), W(B, $({
7543
7543
  key: 9,
7544
7544
  viewport: o.viewport,
7545
7545
  factor: (fe = o.weatherLayers) == null ? void 0 : fe["ice-edge"],
7546
7546
  "menu-toggle": a.menuToggle,
7547
7547
  simple: a.simple
7548
- }, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle", "simple"])) : G("", !0),
7548
+ }, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle", "simple"])) : F("", !0),
7549
7549
  a.map ? (k(), W(H, $({
7550
7550
  key: 10,
7551
7551
  viewport: o.viewport,
7552
7552
  factor: (ke = o.weatherLayers) == null ? void 0 : ke["ice-cover"],
7553
7553
  "menu-toggle": a.menuToggle,
7554
7554
  simple: a.simple
7555
- }, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle", "simple"])) : G("", !0),
7555
+ }, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle", "simple"])) : F("", !0),
7556
7556
  a.map ? (k(), W(Q, $({
7557
7557
  key: 11,
7558
7558
  viewport: o.viewport,
7559
7559
  factor: (ze = o.weatherLayers) == null ? void 0 : ze["ice-thickness"],
7560
7560
  "menu-toggle": a.menuToggle,
7561
7561
  simple: a.simple
7562
- }, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle", "simple"])) : G("", !0),
7562
+ }, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle", "simple"])) : F("", !0),
7563
7563
  a.map ? (k(), W(ae, $({
7564
7564
  key: 12,
7565
7565
  viewport: o.viewport,
7566
7566
  factor: (me = o.weatherLayers) == null ? void 0 : me.precip3h,
7567
7567
  "menu-toggle": a.menuToggle,
7568
7568
  simple: a.simple
7569
- }, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle", "simple"])) : G("", !0),
7569
+ }, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle", "simple"])) : F("", !0),
7570
7570
  a.map ? (k(), W(re, $({
7571
7571
  key: 13,
7572
7572
  viewport: o.viewport,
7573
7573
  factor: (be = o.weatherLayers) == null ? void 0 : be.visibility,
7574
7574
  "menu-toggle": a.menuToggle,
7575
7575
  simple: a.simple
7576
- }, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle", "simple"])) : G("", !0),
7576
+ }, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle", "simple"])) : F("", !0),
7577
7577
  a.map ? (k(), W(pe, $({
7578
7578
  key: 14,
7579
7579
  viewport: o.viewport,
7580
7580
  factor: (_e = o.weatherLayers) == null ? void 0 : _e["water-temp"],
7581
7581
  "menu-toggle": a.menuToggle,
7582
7582
  simple: a.simple
7583
- }, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle", "simple"])) : G("", !0),
7584
- a.map ? (k(), W(F, $({
7583
+ }, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle", "simple"])) : F("", !0),
7584
+ a.map ? (k(), W(G, $({
7585
7585
  key: 15,
7586
7586
  viewport: o.viewport,
7587
7587
  factor: (Re = o.weatherLayers) == null ? void 0 : Re.temp,
7588
7588
  "menu-toggle": a.menuToggle,
7589
7589
  simple: a.simple
7590
- }, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle", "simple"])) : G("", !0)
7590
+ }, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle", "simple"])) : F("", !0)
7591
7591
  ]);
7592
7592
  }
7593
- const pm = /* @__PURE__ */ ie(Mc, [["render", hm]]), Ga = [
7593
+ const pm = /* @__PURE__ */ ie(Mc, [["render", hm]]), Fa = [
7594
7594
  {
7595
7595
  rank: 0,
7596
7596
  name: "Best Match",
@@ -7870,7 +7870,7 @@ const pm = /* @__PURE__ */ ie(Mc, [["render", hm]]), Ga = [
7870
7870
  ];
7871
7871
  let wi = class {
7872
7872
  static standardWeatherModels() {
7873
- return Ga.filter((e) => !e.disabled && e.alias);
7873
+ return Fa.filter((e) => !e.disabled && e.alias);
7874
7874
  }
7875
7875
  static standardMarineModels() {
7876
7876
  return Na.filter((e) => !e.disabled && e.alias);
@@ -7907,20 +7907,20 @@ let wi = class {
7907
7907
  e = e == null ? void 0 : e.toLowerCase(), e = e === "ec" ? "ecmwf" : e;
7908
7908
  const o = e.toLowerCase().split(","), r = [], l = [];
7909
7909
  for (const c of o) {
7910
- let s = Ga.find((m) => {
7910
+ let s = Fa.find((m) => {
7911
7911
  var p, u, b;
7912
7912
  return ((p = m.models) == null ? void 0 : p.includes(c)) || ((u = m.alias) == null ? void 0 : u.toLowerCase()) === c || ((b = m.name) == null ? void 0 : b.toLowerCase()) === c;
7913
7913
  }), d = Na.find((m) => {
7914
7914
  var p, u, b;
7915
7915
  return ((p = m.models) == null ? void 0 : p.includes(c)) || ((u = m.alias) == null ? void 0 : u.toLowerCase()) === c || ((b = m.name) == null ? void 0 : b.toLowerCase()) === c;
7916
7916
  });
7917
- s = s || Ga.find((m) => {
7917
+ s = s || Fa.find((m) => {
7918
7918
  var p, u;
7919
7919
  return ((p = m.alias) == null ? void 0 : p.toLowerCase()) === ((u = d == null ? void 0 : d.alias) == null ? void 0 : u.toLowerCase());
7920
7920
  }), d = d || Na.find((m) => {
7921
7921
  var p, u;
7922
7922
  return ((p = m.alias) == null ? void 0 : p.toLowerCase()) === ((u = s == null ? void 0 : s.alias) == null ? void 0 : u.toLowerCase());
7923
- }), s = s || Ga[0], d = d || Na[0], r.push((a = s.models) != null && a.includes(c) ? c : s.model), l.push((i = d.models) != null && i.includes(c) ? c : d.model);
7923
+ }), s = s || Fa[0], d = d || Na[0], r.push((a = s.models) != null && a.includes(c) ? c : s.model), l.push((i = d.models) != null && i.includes(c) ? c : d.model);
7924
7924
  }
7925
7925
  return {
7926
7926
  weatherModels: r.join(","),
@@ -7929,7 +7929,7 @@ let wi = class {
7929
7929
  }
7930
7930
  static autoPickSubCategories(e) {
7931
7931
  e = e.toUpperCase();
7932
- const a = Ga.filter((r) => r.alias === e), i = Na.filter((r) => r.alias === e), o = [];
7932
+ const a = Fa.filter((r) => r.alias === e), i = Na.filter((r) => r.alias === e), o = [];
7933
7933
  return a.forEach((r) => {
7934
7934
  r.categories && o.push(...r.categories.split(","));
7935
7935
  }), i.forEach((r) => {
@@ -7937,22 +7937,22 @@ let wi = class {
7937
7937
  }), o;
7938
7938
  }
7939
7939
  static pickHourly(e, a) {
7940
- var i, o, r, l, c, s, d, m, p, u, b, g, h, f, C, _, v, L, T, z, S, R, N, V, E, H, Q, ae, re, pe, F, J, K, oe, Y, X, ee, A, ne, fe, ke, ze, me, be, _e, Re, q, de, He, Ve, Me, Ae;
7941
- const le = typeof a == "string" ? D(a) : a, Pe = e == null ? void 0 : e.weather, ue = e == null ? void 0 : e.marine, we = D((o = (i = Pe == null ? void 0 : Pe[0]) == null ? void 0 : i.hourly) == null ? void 0 : o.date).utc(), Be = we.clone().add((c = (l = (r = Pe == null ? void 0 : Pe[0]) == null ? void 0 : r.hourly) == null ? void 0 : l.time) == null ? void 0 : c.at(0), "h"), Ue = we.clone().add((m = (d = (s = Pe == null ? void 0 : Pe[0]) == null ? void 0 : s.hourly) == null ? void 0 : d.time) == null ? void 0 : m.at(-1), "h"), Ye = [];
7942
- if (le.isBetween(Be, Ue, "millisecond", "[]")) {
7943
- const U = le.utc().diff(Be, "h", !1);
7944
- let xe, Fe;
7940
+ var i, o, r, l, c, s, d, m, p, u, b, g, h, f, C, _, v, L, T, z, S, R, N, V, B, H, Q, ae, re, pe, G, J, K, oe, Y, X, ee, A, ne, fe, ke, ze, me, be, _e, Re, q, de, He, Ve, Me, Ae;
7941
+ const le = typeof a == "string" ? D(a) : a, Pe = e == null ? void 0 : e.weather, ue = e == null ? void 0 : e.marine, xe = D((o = (i = Pe == null ? void 0 : Pe[0]) == null ? void 0 : i.hourly) == null ? void 0 : o.date).utc(), Ee = xe.clone().add((c = (l = (r = Pe == null ? void 0 : Pe[0]) == null ? void 0 : r.hourly) == null ? void 0 : l.time) == null ? void 0 : c.at(0), "h"), Ue = xe.clone().add((m = (d = (s = Pe == null ? void 0 : Pe[0]) == null ? void 0 : s.hourly) == null ? void 0 : d.time) == null ? void 0 : m.at(-1), "h"), Ye = [];
7942
+ if (le.isBetween(Ee, Ue, "millisecond", "[]")) {
7943
+ const U = le.utc().diff(Ee, "h", !1);
7944
+ let ve, Ge;
7945
7945
  if (Pe) {
7946
7946
  let Ze = 0, Oe = 0, te = 0;
7947
- for (const Ee of Pe) {
7948
- const se = Ee == null ? void 0 : Ee.hourly;
7947
+ for (const Be of Pe) {
7948
+ const se = Be == null ? void 0 : Be.hourly;
7949
7949
  for (let Ne = U - (U - 1) % 3; Ne <= U; Ne++)
7950
7950
  Ze += (p = se == null ? void 0 : se.precipitation) == null ? void 0 : p.at(Ne);
7951
7951
  for (let Ne = U - (U - 1) % 6; Ne <= U; Ne++)
7952
7952
  Oe += (u = se == null ? void 0 : se.precipitation) == null ? void 0 : u.at(Ne);
7953
7953
  for (let Ne = U - (U - 1) % 12; Ne <= U; Ne++)
7954
7954
  te += (b = se == null ? void 0 : se.precipitation) == null ? void 0 : b.at(Ne);
7955
- xe = {
7955
+ ve = {
7956
7956
  temp: (g = se == null ? void 0 : se.temperature_2m) == null ? void 0 : g.at(U),
7957
7957
  apparentTemp: (h = se == null ? void 0 : se.apparent_temperature) == null ? void 0 : h.at(U),
7958
7958
  rh: (f = se == null ? void 0 : se.relative_humidity_2m) == null ? void 0 : f.at(U),
@@ -7972,17 +7972,17 @@ let wi = class {
7972
7972
  wind: {
7973
7973
  speed: (N = se == null ? void 0 : se.wind_speed_10m) == null ? void 0 : N.at(U),
7974
7974
  kts: (V = se == null ? void 0 : se.wind_speed_10m) == null ? void 0 : V.at(U),
7975
- degree: (E = se == null ? void 0 : se.wind_direction_10m) == null ? void 0 : E.at(U),
7975
+ degree: (B = se == null ? void 0 : se.wind_direction_10m) == null ? void 0 : B.at(U),
7976
7976
  bearing: ((H = se == null ? void 0 : se.wind_direction_10m) == null ? void 0 : H.at(U)) !== null ? (((Q = se == null ? void 0 : se.wind_direction_10m) == null ? void 0 : Q.at(U)) + 180) % 360 : null,
7977
7977
  gusts: (ae = se == null ? void 0 : se.wind_gusts_10m) == null ? void 0 : ae.at(U)
7978
7978
  },
7979
7979
  isDay: (re = se == null ? void 0 : se.is_day) == null ? void 0 : re.at(U)
7980
7980
  };
7981
- const { name: at, url: ot, bg: it } = this.parseWeatherCode(xe.code, xe.isDay);
7982
- xe.name = at, xe.url = ot, xe.bg = it, xe.wind.scale = this.beaufort(this.kts2ms(xe.wind.kts)), xe.wind.direction = this.degree2Direction(xe.wind.degree), Ye.push({
7983
- utc: Be.add(U, "h").format(),
7984
- model: Ee.model,
7985
- weather: { ...xe }
7981
+ const { name: at, url: ot, bg: it } = this.parseWeatherCode(ve.code, ve.isDay);
7982
+ ve.name = at, ve.url = ot, ve.bg = it, ve.wind.scale = this.beaufort(this.kts2ms(ve.wind.kts)), ve.wind.direction = this.degree2Direction(ve.wind.degree), Ye.push({
7983
+ utc: Ee.add(U, "h").format(),
7984
+ model: Be.model,
7985
+ weather: { ...ve }
7986
7986
  });
7987
7987
  }
7988
7988
  }
@@ -7990,11 +7990,11 @@ let wi = class {
7990
7990
  let Ze = 0;
7991
7991
  for (const Oe of ue) {
7992
7992
  const te = Oe == null ? void 0 : Oe.hourly;
7993
- Fe = {
7993
+ Ge = {
7994
7994
  wave: {
7995
7995
  sig: {
7996
7996
  height: (pe = te == null ? void 0 : te.wave_height) == null ? void 0 : pe.at(U),
7997
- degree: (F = te == null ? void 0 : te.wave_direction) == null ? void 0 : F.at(U),
7997
+ degree: (G = te == null ? void 0 : te.wave_direction) == null ? void 0 : G.at(U),
7998
7998
  bearing: ((J = te == null ? void 0 : te.wave_direction) == null ? void 0 : J.at(U)) !== null ? (((K = te == null ? void 0 : te.wave_direction) == null ? void 0 : K.at(U)) + 180) % 360 : null,
7999
7999
  period: (oe = te == null ? void 0 : te.wave_period) == null ? void 0 : oe.at(U)
8000
8000
  },
@@ -8021,7 +8021,7 @@ let wi = class {
8021
8021
  },
8022
8022
  sst: (Me = te == null ? void 0 : te.sea_surface_temperature) == null ? void 0 : Me.at(U),
8023
8023
  height: (Ae = te == null ? void 0 : te.sea_level_height_msl) == null ? void 0 : Ae.at(U)
8024
- }, Fe.wave = this.parseWave(Fe.wave, xe == null ? void 0 : xe.wind), Fe.current.direction = this.degree2Direction(Fe.current.degree), Object.assign(Ye[Ze], Fe), Ze++;
8024
+ }, Ge.wave = this.parseWave(Ge.wave, ve == null ? void 0 : ve.wind), Ge.current.direction = this.degree2Direction(Ge.current.degree), Object.assign(Ye[Ze], Ge), Ze++;
8025
8025
  }
8026
8026
  }
8027
8027
  }
@@ -8050,7 +8050,7 @@ let wi = class {
8050
8050
  };
8051
8051
  }
8052
8052
  static pickDaily(e, a) {
8053
- var i, o, r, l, c, s, d, m, p, u, b, g, h, f, C, _, v, L, T, z, S, R, N, V, E, H, Q, ae, re, pe, F, J, K, oe, Y, X, ee, A, ne, fe, ke, ze, me, be;
8053
+ var i, o, r, l, c, s, d, m, p, u, b, g, h, f, C, _, v, L, T, z, S, R, N, V, B, H, Q, ae, re, pe, G, J, K, oe, Y, X, ee, A, ne, fe, ke, ze, me, be;
8054
8054
  const _e = typeof a == "string" ? D(a) : a, Re = e == null ? void 0 : e.weather, q = e == null ? void 0 : e.marine, de = D((r = (o = (i = Re == null ? void 0 : Re[0]) == null ? void 0 : i.daily) == null ? void 0 : o.time) == null ? void 0 : r.at(0)), He = D((s = (c = (l = Re == null ? void 0 : Re[0]) == null ? void 0 : l.daily) == null ? void 0 : c.time) == null ? void 0 : s.at(-1)), Ve = [];
8055
8055
  if (_e.isBetween(de, He, "millisecond", "[]")) {
8056
8056
  let Me, Ae;
@@ -8086,12 +8086,12 @@ let wi = class {
8086
8086
  speed: (R = ue.wind_speed_10m_max) == null ? void 0 : R.at(le),
8087
8087
  kts: (N = ue.wind_speed_10m_max) == null ? void 0 : N.at(le),
8088
8088
  degree: (V = ue.wind_direction_10m_dominant) == null ? void 0 : V.at(le),
8089
- gusts: (E = ue.wind_gusts_10m_max) == null ? void 0 : E.at(le),
8089
+ gusts: (B = ue.wind_gusts_10m_max) == null ? void 0 : B.at(le),
8090
8090
  bearing: ((H = ue.wind_direction_10m_dominant) == null ? void 0 : H.at(le)) !== null ? (((Q = ue.wind_direction_10m_dominant) == null ? void 0 : Q.at(le)) + 180) % 360 : null
8091
8091
  }
8092
8092
  };
8093
- const { name: we, url: Be, bg: Ue } = this.parseWeatherCode(Me.code, !0);
8094
- Me.name = we, Me.url = Be, Me.bg = Ue, Me.wind.scale = this.beaufort(this.kts2ms(Me.wind.kts)), Me.wind.direction = this.degree2Direction(Me.wind.degree), Ve.push({
8093
+ const { name: xe, url: Ee, bg: Ue } = this.parseWeatherCode(Me.code, !0);
8094
+ Me.name = xe, Me.url = Ee, Me.bg = Ue, Me.wind.scale = this.beaufort(this.kts2ms(Me.wind.kts)), Me.wind.direction = this.degree2Direction(Me.wind.degree), Ve.push({
8095
8095
  utc: de.add(le, "d").utc().format(),
8096
8096
  model: Pe.model,
8097
8097
  weather: { ...Me }
@@ -8100,29 +8100,29 @@ let wi = class {
8100
8100
  if (q) {
8101
8101
  let Pe = 0;
8102
8102
  for (const ue of q) {
8103
- const we = ue.daily;
8103
+ const xe = ue.daily;
8104
8104
  Ae = {
8105
8105
  wave: {
8106
8106
  sig: {
8107
- height: (ae = we.wave_height_max) == null ? void 0 : ae.at(le),
8108
- degree: (re = we.wave_direction_dominant) == null ? void 0 : re.at(le),
8109
- period: (pe = we.wave_period_max) == null ? void 0 : pe.at(le),
8110
- bearing: ((F = we.wave_direction_dominant) == null ? void 0 : F.at(le)) !== null ? (((J = we.wave_direction_dominant) == null ? void 0 : J.at(le)) + 180) % 360 : null
8107
+ height: (ae = xe.wave_height_max) == null ? void 0 : ae.at(le),
8108
+ degree: (re = xe.wave_direction_dominant) == null ? void 0 : re.at(le),
8109
+ period: (pe = xe.wave_period_max) == null ? void 0 : pe.at(le),
8110
+ bearing: ((G = xe.wave_direction_dominant) == null ? void 0 : G.at(le)) !== null ? (((J = xe.wave_direction_dominant) == null ? void 0 : J.at(le)) + 180) % 360 : null
8111
8111
  },
8112
8112
  swell: {
8113
- height: (K = we.swell_wave_height_max) == null ? void 0 : K.at(le),
8114
- degree: (oe = we.swell_wave_direction_dominant) == null ? void 0 : oe.at(le),
8115
- period: (Y = we.swell_wave_period_max) == null ? void 0 : Y.at(le),
8116
- peakPeriod: (X = we.swell_wave_peak_period_max) == null ? void 0 : X.at(le),
8113
+ height: (K = xe.swell_wave_height_max) == null ? void 0 : K.at(le),
8114
+ degree: (oe = xe.swell_wave_direction_dominant) == null ? void 0 : oe.at(le),
8115
+ period: (Y = xe.swell_wave_period_max) == null ? void 0 : Y.at(le),
8116
+ peakPeriod: (X = xe.swell_wave_peak_period_max) == null ? void 0 : X.at(le),
8117
8117
  // bearing: daily.swell_wave_direction_dominant?.at(day) !== null ? (daily.swell_wave_direction_dominant?.at(day) + 180) % 360 : null,
8118
- bearing: ((ee = we.swell_wave_direction_dominant) == null ? void 0 : ee.at(le)) !== null ? ((A = we.swell_wave_direction_dominant) == null ? void 0 : A.at(le)) % 360 : null
8118
+ bearing: ((ee = xe.swell_wave_direction_dominant) == null ? void 0 : ee.at(le)) !== null ? ((A = xe.swell_wave_direction_dominant) == null ? void 0 : A.at(le)) % 360 : null
8119
8119
  },
8120
8120
  wd: {
8121
- height: (ne = we.wind_wave_height_max) == null ? void 0 : ne.at(le),
8122
- degree: (fe = we.wind_wave_direction_dominant) == null ? void 0 : fe.at(le),
8123
- period: (ke = we.wind_wave_period_max) == null ? void 0 : ke.at(le),
8124
- peakPeriod: (ze = we.wind_wave_peak_period_max) == null ? void 0 : ze.at(le),
8125
- bearing: ((me = we.wind_wave_direction_dominant) == null ? void 0 : me.at(le)) !== null ? (((be = we.wind_wave_direction_dominant) == null ? void 0 : be.at(le)) + 180) % 360 : null
8121
+ height: (ne = xe.wind_wave_height_max) == null ? void 0 : ne.at(le),
8122
+ degree: (fe = xe.wind_wave_direction_dominant) == null ? void 0 : fe.at(le),
8123
+ period: (ke = xe.wind_wave_period_max) == null ? void 0 : ke.at(le),
8124
+ peakPeriod: (ze = xe.wind_wave_peak_period_max) == null ? void 0 : ze.at(le),
8125
+ bearing: ((me = xe.wind_wave_direction_dominant) == null ? void 0 : me.at(le)) !== null ? (((be = xe.wind_wave_direction_dominant) == null ? void 0 : be.at(le)) + 180) % 360 : null
8126
8126
  }
8127
8127
  }
8128
8128
  }, Ae.wave = this.parseWave(Ae.wave, Me == null ? void 0 : Me.wind), Object.assign(Ve[Pe], Ae), Pe++;
@@ -8587,7 +8587,7 @@ const um = {
8587
8587
  },
8588
8588
  emits: ["tropical", "tropicalCenterPoints", "tropicalProbability", "tropicalNotification"],
8589
8589
  setup() {
8590
- return { Theme: Ge() };
8590
+ return { Theme: Fe() };
8591
8591
  },
8592
8592
  data() {
8593
8593
  return {
@@ -8613,7 +8613,7 @@ const um = {
8613
8613
  showTropicalsInfo: !1,
8614
8614
  activeTropicals: void 0,
8615
8615
  activeTropicalsMarker: void 0,
8616
- empty: B.featureCollection([]),
8616
+ empty: E.featureCollection([]),
8617
8617
  showLegend: !1,
8618
8618
  showHoverPoint: !1,
8619
8619
  hoverPoint: void 0,
@@ -9040,9 +9040,9 @@ const um = {
9040
9040
  this.map && (this.map.getLayer(this.historyLayer) && this.map.removeLayer(this.historyLayer), this.map.getLayer(this.forecastLayer) && this.map.removeLayer(this.forecastLayer), this.map.getLayer(this.forecastModelLayer) && this.map.removeLayer(this.forecastModelLayer), this.map.getLayer(this.forecastNameLayer) && this.map.removeLayer(this.forecastNameLayer), this.map.getLayer(this.pointCircleLayer) && this.map.removeLayer(this.pointCircleLayer), this.map.getLayer(this.pointCircleLayer + "-border") && this.map.removeLayer(this.pointCircleLayer + "-border"), this.map.getLayer(this.pointLabelLayer) && this.map.removeLayer(this.pointLabelLayer), this.map.getLayer(this.historyPointCircleLayer) && this.map.removeLayer(this.historyPointCircleLayer), this.map.getLayer(this.historyPointCircleLayer + "-border") && this.map.removeLayer(this.historyPointCircleLayer + "-border"), this.map.getLayer(this.historyPointCircleLayer + "-inner") && this.map.removeLayer(this.historyPointCircleLayer + "-inner"), this.map.getLayer(this.historyPointLabelLayer) && this.map.removeLayer(this.historyPointLabelLayer), this.map.getLayer(this.interpolateLineLayer) && this.map.removeLayer(this.interpolateLineLayer), (t = this.interpolateMarkers) == null || t.forEach((o) => o == null ? void 0 : o.remove()), this.map.getSource(this.source) && this.map.removeSource(this.source), this.map.getSource(this.clusterSource) && this.map.removeSource(this.clusterSource), this.map.getSource(this.interpolateSource) && this.map.removeSource(this.interpolateSource)), (e = this.map) == null || e.off("click", this.clickLayers, this.handleClick), (a = this.map) == null || a.off("mousemove", this.hoverLayers, this.handleHover), (i = this.map) == null || i.off("mouseleave", this.hoverLayers, this.handleLeave), this.handleCloseInfoMarker();
9041
9041
  },
9042
9042
  handleDateChange() {
9043
- var t, e, a, i, o, r, l, c, s, d, m, p, u, b, g, h, f, C, _, v, L, T, z, S, R, N, V, E, H, Q, ae, re, pe, F, J;
9043
+ var t, e, a, i, o, r, l, c, s, d, m, p, u, b, g, h, f, C, _, v, L, T, z, S, R, N, V, B, H, Q, ae, re, pe, G, J;
9044
9044
  if ((t = this.interpolateMarkers) == null || t.forEach((K) => K == null ? void 0 : K.remove()), (e = this.interpolateData) != null && e.length && this.tropicals.active) {
9045
- const K = D(this.realTime).utc().set({ minute: 0, second: 0, millisecond: 0 }), oe = this.interpolateData.filter((A) => A.properties.date === (K == null ? void 0 : K.format()) && !A.properties.disabled), Y = this.handleComputePolygons(oe), X = B.featureCollection([...oe]);
9045
+ const K = D(this.realTime).utc().set({ minute: 0, second: 0, millisecond: 0 }), oe = this.interpolateData.filter((A) => A.properties.date === (K == null ? void 0 : K.format()) && !A.properties.disabled), Y = this.handleComputePolygons(oe), X = E.featureCollection([...oe]);
9046
9046
  Y.forEach((A) => {
9047
9047
  X.features.push(A);
9048
9048
  }), (a = this.map) != null && a.getSource(this.interpolateSource) ? (i = this.map) == null || i.getSource(this.interpolateSource).setData(X) : ((o = this.map) == null || o.addSource(this.interpolateSource, {
@@ -9084,7 +9084,7 @@ const um = {
9084
9084
  A.properties.nameCn = me, A.properties.Name = ((m = (d = A.properties.name) == null ? void 0 : d.trim()) == null ? void 0 : m.replace(/^./, (be) => be.toUpperCase())) || A.properties.nameCn, ee.push(A);
9085
9085
  }
9086
9086
  let ne = this.Theme.current.value.colors["tropicals-ty"];
9087
- ((u = (p = A.properties) == null ? void 0 : p.wind) == null ? void 0 : u.kts) < 32 || !((g = (b = A.properties) == null ? void 0 : b.wind) != null && g.kts) ? ne = this.Theme.current.value.colors["tropicals-td"] : ((f = (h = A.properties) == null ? void 0 : h.wind) == null ? void 0 : f.kts) >= 32 && ((_ = (C = A.properties) == null ? void 0 : C.wind) == null ? void 0 : _.kts) < 47 ? ne = this.Theme.current.value.colors["tropicals-ts"] : ((L = (v = A.properties) == null ? void 0 : v.wind) == null ? void 0 : L.kts) >= 47 && ((z = (T = A.properties) == null ? void 0 : T.wind) == null ? void 0 : z.kts) < 63 ? ne = this.Theme.current.value.colors["tropicals-sts"] : ((R = (S = A.properties) == null ? void 0 : S.wind) == null ? void 0 : R.kts) >= 63 && ((V = (N = A.properties) == null ? void 0 : N.wind) == null ? void 0 : V.kts) < 79 ? ne = this.Theme.current.value.colors["tropicals-ty"] : ((H = (E = A.properties) == null ? void 0 : E.wind) == null ? void 0 : H.kts) >= 79 && ((ae = (Q = A.properties) == null ? void 0 : Q.wind) == null ? void 0 : ae.kts) < 94 ? ne = this.Theme.current.value.colors["tropicals-sty"] : ((pe = (re = A.properties) == null ? void 0 : re.wind) == null ? void 0 : pe.kts) >= 94 ? ne = this.Theme.current.value.colors["tropicals-super-ty"] : ne = this.Theme.current.value.colors["tropicals-ty"];
9087
+ ((u = (p = A.properties) == null ? void 0 : p.wind) == null ? void 0 : u.kts) < 32 || !((g = (b = A.properties) == null ? void 0 : b.wind) != null && g.kts) ? ne = this.Theme.current.value.colors["tropicals-td"] : ((f = (h = A.properties) == null ? void 0 : h.wind) == null ? void 0 : f.kts) >= 32 && ((_ = (C = A.properties) == null ? void 0 : C.wind) == null ? void 0 : _.kts) < 47 ? ne = this.Theme.current.value.colors["tropicals-ts"] : ((L = (v = A.properties) == null ? void 0 : v.wind) == null ? void 0 : L.kts) >= 47 && ((z = (T = A.properties) == null ? void 0 : T.wind) == null ? void 0 : z.kts) < 63 ? ne = this.Theme.current.value.colors["tropicals-sts"] : ((R = (S = A.properties) == null ? void 0 : S.wind) == null ? void 0 : R.kts) >= 63 && ((V = (N = A.properties) == null ? void 0 : N.wind) == null ? void 0 : V.kts) < 79 ? ne = this.Theme.current.value.colors["tropicals-ty"] : ((H = (B = A.properties) == null ? void 0 : B.wind) == null ? void 0 : H.kts) >= 79 && ((ae = (Q = A.properties) == null ? void 0 : Q.wind) == null ? void 0 : ae.kts) < 94 ? ne = this.Theme.current.value.colors["tropicals-sty"] : ((pe = (re = A.properties) == null ? void 0 : re.wind) == null ? void 0 : pe.kts) >= 94 ? ne = this.Theme.current.value.colors["tropicals-super-ty"] : ne = this.Theme.current.value.colors["tropicals-ty"];
9088
9088
  const fe = `<svg t="1719918955501"
9089
9089
  class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="18382"
9090
9090
  xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
@@ -9106,7 +9106,7 @@ const um = {
9106
9106
  }
9107
9107
  this.$emit("tropicalCenterPoints", ee);
9108
9108
  } else
9109
- (F = this.map) != null && F.getSource(this.interpolateSource) && ((J = this.map) == null || J.getSource(this.interpolateSource).setData(this.empty));
9109
+ (G = this.map) != null && G.getSource(this.interpolateSource) && ((J = this.map) == null || J.getSource(this.interpolateSource).setData(this.empty));
9110
9110
  },
9111
9111
  handleClick(t) {
9112
9112
  var o, r, l, c, s, d, m, p, u, b, g;
@@ -9150,7 +9150,7 @@ const um = {
9150
9150
  d.properties.category === e && (d.properties.disabled = t.disabled);
9151
9151
  }), this.interpolateData.forEach((d) => {
9152
9152
  d.properties.category === e && (d.properties.disabled = t.disabled);
9153
- }), (l = (r = this.map) == null ? void 0 : r.getSource(this.source)) == null || l.setData(B.featureCollection(a)), (s = (c = this.map) == null ? void 0 : c.getSource(this.clusterSource)) == null || s.setData(B.featureCollection(a)), this.handleDateChange();
9153
+ }), (l = (r = this.map) == null ? void 0 : r.getSource(this.source)) == null || l.setData(E.featureCollection(a)), (s = (c = this.map) == null ? void 0 : c.getSource(this.clusterSource)) == null || s.setData(E.featureCollection(a)), this.handleDateChange();
9154
9154
  },
9155
9155
  handleStrikeProbability(t) {
9156
9156
  this.$emit("tropicalProbability", t);
@@ -9189,22 +9189,22 @@ const um = {
9189
9189
  let s;
9190
9190
  switch (l) {
9191
9191
  case "ne":
9192
- s = B.lineArc(t, c, 0, 90, { steps: c > 0 ? 32 : 1, units: "nauticalmiles" });
9192
+ s = E.lineArc(t, c, 0, 90, { steps: c > 0 ? 32 : 1, units: "nauticalmiles" });
9193
9193
  break;
9194
9194
  case "se":
9195
- s = B.lineArc(t, c, 90, 180, { steps: c > 0 ? 32 : 1, units: "nauticalmiles" });
9195
+ s = E.lineArc(t, c, 90, 180, { steps: c > 0 ? 32 : 1, units: "nauticalmiles" });
9196
9196
  break;
9197
9197
  case "sw":
9198
- s = B.lineArc(t, c, 180, 270, { steps: c > 0 ? 32 : 1, units: "nauticalmiles" });
9198
+ s = E.lineArc(t, c, 180, 270, { steps: c > 0 ? 32 : 1, units: "nauticalmiles" });
9199
9199
  break;
9200
9200
  case "nw":
9201
- s = B.lineArc(t, c, 270, 360, { steps: c > 0 ? 32 : 1, units: "nauticalmiles" });
9201
+ s = E.lineArc(t, c, 270, 360, { steps: c > 0 ? 32 : 1, units: "nauticalmiles" });
9202
9202
  break;
9203
9203
  }
9204
9204
  i.push(...(r = s == null ? void 0 : s.geometry) == null ? void 0 : r.coordinates);
9205
9205
  }
9206
- const o = B.lineString(i);
9207
- return B.lineToPolygon(o, { properties: a });
9206
+ const o = E.lineString(i);
9207
+ return E.lineToPolygon(o, { properties: a });
9208
9208
  },
9209
9209
  handleNotification(t) {
9210
9210
  this.$emit("tropicalNotification", t);
@@ -9244,10 +9244,10 @@ const um = {
9244
9244
  }, wm = { class: "text-body-1" }, xm = { class: "text-label" }, vm = { class: "d-flex justify-space-between align-center" }, km = { class: "w-60" }, _m = { class: "text-label pr-1" }, Lm = { class: "flex-1-1-0" }, zm = { class: "text-label pr-1" }, Cm = { class: "py-2 d-flex justify-space-between align-center" }, Mm = { class: "w-60" }, Pm = { class: "text-label pr-1" }, Sm = { class: "flex-1-1-0" }, Tm = { class: "text-label pr-1" }, Rm = { class: "d-flex align-center flex-1-1-100 justify-space-between mt-n1" }, Dm = {
9245
9245
  class: "text-label pr-1",
9246
9246
  style: { width: "70px" }
9247
- }, Im = { class: "model-box d-flex justify-end align-center flex-wrap ga-1 pa-1" }, Am = { class: "more" }, Fm = {
9247
+ }, Im = { class: "model-box d-flex justify-end align-center flex-wrap ga-1 pa-1" }, Am = { class: "more" }, Gm = {
9248
9248
  key: 0,
9249
9249
  class: "w-100 d-flex justify-space-between align-center px-2"
9250
- }, Gm = { class: "pa-1" }, Nm = { class: "legend d-flex justify-start align-center py-2" }, Wm = { class: "label" }, Vm = { class: "legend d-flex justify-start align-center py-2" }, Em = { class: "label" }, Bm = { class: "legend d-flex justify-start align-center py-2" }, Zm = { class: "label" }, Om = { class: "pa-1" }, jm = { class: "legend d-flex justify-start align-center py-2" }, Xm = { class: "label" }, Hm = { class: "legend d-flex justify-start align-center py-2" }, Ym = { class: "label" }, Um = { class: "legend d-flex justify-start align-center py-2" }, $m = { class: "label" }, Jm = { class: "pa-1" }, Km = { class: "w-100 legend d-flex justify-start align-center py-2 ga-2" }, qm = { class: "label" }, Qm = { class: "label" }, ed = { class: "w-100 legend d-flex justify-start align-center py-2" }, td = { class: "label" }, ad = { class: "w-100 legend d-flex justify-start align-center py-2" }, od = { class: "label" }, id = {
9250
+ }, Fm = { class: "pa-1" }, Nm = { class: "legend d-flex justify-start align-center py-2" }, Wm = { class: "label" }, Vm = { class: "legend d-flex justify-start align-center py-2" }, Bm = { class: "label" }, Em = { class: "legend d-flex justify-start align-center py-2" }, Zm = { class: "label" }, Om = { class: "pa-1" }, jm = { class: "legend d-flex justify-start align-center py-2" }, Xm = { class: "label" }, Hm = { class: "legend d-flex justify-start align-center py-2" }, Ym = { class: "label" }, Um = { class: "legend d-flex justify-start align-center py-2" }, $m = { class: "label" }, Jm = { class: "pa-1" }, Km = { class: "w-100 legend d-flex justify-start align-center py-2 ga-2" }, qm = { class: "label" }, Qm = { class: "label" }, ed = { class: "w-100 legend d-flex justify-start align-center py-2" }, td = { class: "label" }, ad = { class: "w-100 legend d-flex justify-start align-center py-2" }, od = { class: "label" }, id = {
9251
9251
  key: 1,
9252
9252
  class: "my-3 w-100",
9253
9253
  style: { height: "80px" }
@@ -9260,16 +9260,16 @@ const um = {
9260
9260
  }, Dd = { class: "text-label pr-1" }, Id = {
9261
9261
  key: 2,
9262
9262
  class: "d-flex justify-start align-center"
9263
- }, Ad = { class: "text-label pr-1" }, Fd = {
9263
+ }, Ad = { class: "text-label pr-1" }, Gd = {
9264
9264
  key: 3,
9265
9265
  class: "d-flex justify-start align-center"
9266
- }, Gd = { class: "text-label pr-1" }, Nd = {
9266
+ }, Fd = { class: "text-label pr-1" }, Nd = {
9267
9267
  key: 4,
9268
9268
  class: "d-flex justify-start align-center"
9269
9269
  }, Wd = { class: "text-label pr-1" }, Vd = {
9270
9270
  key: 5,
9271
9271
  class: "d-flex justify-start align-center"
9272
- }, Ed = { class: "text-label pr-1" }, Bd = { class: "d-flex justify-start align-center" }, Zd = { class: "text-label pr-1" }, Od = {
9272
+ }, Bd = { class: "text-label pr-1" }, Ed = { class: "d-flex justify-start align-center" }, Zd = { class: "text-label pr-1" }, Od = {
9273
9273
  key: 6,
9274
9274
  class: "d-flex justify-start align-center"
9275
9275
  }, jd = { class: "text-label pr-1" }, Xd = {
@@ -9326,7 +9326,7 @@ function $d(t, e, a, i, o, r) {
9326
9326
  return [
9327
9327
  n("div", fm, [
9328
9328
  n("span", ym, y(a.locale === "en" ? (b = o.activeTropicals) == null ? void 0 : b.Name : ((g = o.activeTropicals) == null ? void 0 : g.nameCn) || ((h = o.activeTropicals) == null ? void 0 : h.Name) || "-"), 1),
9329
- (C = (f = o.activeTropicals) == null ? void 0 : f.history) != null && C.levelI18n ? (k(), I("span", bm, " , " + y(t.$t("tropical." + ((v = (_ = o.activeTropicals) == null ? void 0 : _.history) == null ? void 0 : v.levelI18n))), 1)) : G("", !0)
9329
+ (C = (f = o.activeTropicals) == null ? void 0 : f.history) != null && C.levelI18n ? (k(), I("span", bm, " , " + y(t.$t("tropical." + ((v = (_ = o.activeTropicals) == null ? void 0 : _.history) == null ? void 0 : v.levelI18n))), 1)) : F("", !0)
9330
9330
  ]),
9331
9331
  w(l, {
9332
9332
  icon: "",
@@ -9399,7 +9399,7 @@ function $d(t, e, a, i, o, r) {
9399
9399
  _: 1
9400
9400
  }),
9401
9401
  w(d),
9402
- a.simple ? G("", !0) : (k(), W(m, {
9402
+ a.simple ? F("", !0) : (k(), W(m, {
9403
9403
  key: 0,
9404
9404
  class: "d-flex justify-space-between"
9405
9405
  }, {
@@ -9440,17 +9440,17 @@ function $d(t, e, a, i, o, r) {
9440
9440
  ]),
9441
9441
  _: 1
9442
9442
  }, 8, ["class", "elevation"]),
9443
- a.simple ? (k(), I("div", Fm, [
9444
- n("div", Gm, [
9443
+ a.simple ? (k(), I("div", Gm, [
9444
+ n("div", Fm, [
9445
9445
  n("div", Nm, [
9446
9446
  e[5] || (e[5] = n("div", { class: "icon td" }, null, -1)),
9447
9447
  n("div", Wm, y(t.$t("tropical.td")), 1)
9448
9448
  ]),
9449
9449
  n("div", Vm, [
9450
9450
  e[6] || (e[6] = n("div", { class: "icon sts" }, null, -1)),
9451
- n("div", Em, y(t.$t("tropical.sts")), 1)
9451
+ n("div", Bm, y(t.$t("tropical.sts")), 1)
9452
9452
  ]),
9453
- n("div", Bm, [
9453
+ n("div", Em, [
9454
9454
  e[7] || (e[7] = n("div", { class: "icon sty" }, null, -1)),
9455
9455
  n("div", Zm, y(t.$t("tropical.sty")), 1)
9456
9456
  ])
@@ -9545,7 +9545,7 @@ function $d(t, e, a, i, o, r) {
9545
9545
  [tt, o.showLegend]
9546
9546
  ])
9547
9547
  ]))
9548
- ], 2)) : G("", !0),
9548
+ ], 2)) : F("", !0),
9549
9549
  et(w(p, {
9550
9550
  id: "tropicalHoverMarkerInfo",
9551
9551
  elevation: "16",
@@ -9567,45 +9567,45 @@ function $d(t, e, a, i, o, r) {
9567
9567
  w(d),
9568
9568
  w(s, { class: "text-body-1" }, {
9569
9569
  default: x(() => {
9570
- var b, g, h, f, C, _, v, L, T, z, S, R, N, V, E, H, Q, ae, re, pe;
9570
+ var b, g, h, f, C, _, v, L, T, z, S, R, N, V, B, H, Q, ae, re, pe;
9571
9571
  return [
9572
9572
  n("div", Pd, [
9573
9573
  ((b = o.hoverPoint) == null ? void 0 : b.type) === "forecast" ? (k(), I("div", Sd, [
9574
9574
  n("label", Td, y(t.$t("tropical.updated")) + " : ", 1),
9575
9575
  n("span", null, y(r.computeTzTime((g = o.hoverPoint) == null ? void 0 : g.update, a.timeZone)), 1)
9576
- ])) : G("", !0),
9576
+ ])) : F("", !0),
9577
9577
  ((h = o.hoverPoint) == null ? void 0 : h.type) === "forecast" ? (k(), I("div", Rd, [
9578
9578
  n("label", Dd, y(t.$t("tropical.forecast")) + " : ", 1),
9579
9579
  n("span", null, y(r.computeTzTime((f = o.hoverPoint) == null ? void 0 : f.date, a.timeZone)), 1)
9580
- ])) : G("", !0),
9580
+ ])) : F("", !0),
9581
9581
  ((C = o.hoverPoint) == null ? void 0 : C.type) === "history" ? (k(), I("div", Id, [
9582
9582
  n("label", Ad, y(t.$t("tropical.forecast")) + " : ", 1),
9583
9583
  n("span", null, y(r.computeTzTime((_ = o.hoverPoint) == null ? void 0 : _.date, a.timeZone)), 1)
9584
- ])) : G("", !0),
9585
- ((v = o.hoverPoint) == null ? void 0 : v.type) === "forecast" ? (k(), I("div", Fd, [
9586
- n("label", Gd, y(t.$t("tropical.model")) + " : ", 1),
9584
+ ])) : F("", !0),
9585
+ ((v = o.hoverPoint) == null ? void 0 : v.type) === "forecast" ? (k(), I("div", Gd, [
9586
+ n("label", Fd, y(t.$t("tropical.model")) + " : ", 1),
9587
9587
  n("span", null, y(((L = o.hoverPoint) == null ? void 0 : L.model) ?? "-"), 1)
9588
- ])) : G("", !0),
9588
+ ])) : F("", !0),
9589
9589
  ((T = o.hoverPoint) == null ? void 0 : T.type) === "forecast" ? (k(), I("div", Nd, [
9590
9590
  n("label", Wd, y(t.$t("weather.wind")) + " : ", 1),
9591
9591
  n("span", null, y(((S = JSON.parse((z = o.hoverPoint) == null ? void 0 : z.wind)) == null ? void 0 : S.kts) ?? "-") + " kts", 1)
9592
- ])) : G("", !0),
9592
+ ])) : F("", !0),
9593
9593
  ((R = o.hoverPoint) == null ? void 0 : R.type) === "history" ? (k(), I("div", Vd, [
9594
- n("label", Ed, y(t.$t("weather.wind")) + " : ", 1),
9594
+ n("label", Bd, y(t.$t("weather.wind")) + " : ", 1),
9595
9595
  n("span", null, y(((N = o.hoverPoint) == null ? void 0 : N.kts) ?? "-") + " kts", 1)
9596
- ])) : G("", !0),
9597
- n("div", Bd, [
9596
+ ])) : F("", !0),
9597
+ n("div", Ed, [
9598
9598
  n("label", Zd, y(t.$t("weather.pressure")) + " : ", 1),
9599
9599
  n("span", null, y(((V = o.hoverPoint) == null ? void 0 : V.pressure) ?? "-") + " hPa", 1)
9600
9600
  ]),
9601
- ((E = o.hoverPoint) == null ? void 0 : E.type) === "history" ? (k(), I("div", Od, [
9601
+ ((B = o.hoverPoint) == null ? void 0 : B.type) === "history" ? (k(), I("div", Od, [
9602
9602
  n("label", jd, y(t.$t("tropical.moveSpeed")) + " : ", 1),
9603
9603
  n("span", null, y(((Q = JSON.parse((H = o.hoverPoint) == null ? void 0 : H.movement)) == null ? void 0 : Q.kts) ?? "-") + " kts", 1)
9604
- ])) : G("", !0),
9604
+ ])) : F("", !0),
9605
9605
  ((ae = o.hoverPoint) == null ? void 0 : ae.type) === "history" ? (k(), I("div", Xd, [
9606
9606
  n("label", Hd, y(t.$t("tropical.moveDir")) + " : ", 1),
9607
9607
  n("span", null, y(((pe = JSON.parse((re = o.hoverPoint) == null ? void 0 : re.movement)) == null ? void 0 : pe.deg) ?? "-") + " °", 1)
9608
- ])) : G("", !0),
9608
+ ])) : F("", !0),
9609
9609
  n("div", Yd, [
9610
9610
  n("label", Ud, y(t.$t("tropical.position")) + " : ", 1),
9611
9611
  n("span", null, y(r.computePosition(o.hoverPoint)), 1)
@@ -9916,7 +9916,7 @@ function th(t, e, a, i, o, r) {
9916
9916
  })
9917
9917
  ]),
9918
9918
  _: 1
9919
- }, 8, ["style"])) : G("", !0)
9919
+ }, 8, ["style"])) : F("", !0)
9920
9920
  ], 512);
9921
9921
  }
9922
9922
  const Qa = /* @__PURE__ */ ie(Jd, [["render", th]]);
@@ -10186,10 +10186,10 @@ const ah = {
10186
10186
  }), this.loading = !1;
10187
10187
  },
10188
10188
  initTableData(t) {
10189
- var a, i, o, r, l, c, s, d, m, p, u, b, g, h, f, C, _, v, L, T, z, S, R, N, V, E, H, Q, ae, re, pe, F, J, K, oe, Y, X, ee, A, ne, fe;
10189
+ var a, i, o, r, l, c, s, d, m, p, u, b, g, h, f, C, _, v, L, T, z, S, R, N, V, B, H, Q, ae, re, pe, G, J, K, oe, Y, X, ee, A, ne, fe;
10190
10190
  this.currentHourData = {}, this.positionGmt = (i = (a = t == null ? void 0 : t.weather) == null ? void 0 : a[0]) == null ? void 0 : i.timezone, this.positionOffset = (r = (o = t == null ? void 0 : t.weather) == null ? void 0 : o[0]) == null ? void 0 : r.offset;
10191
10191
  const e = ((l = Za.pickHourly(t, D(this.form.dateTime))) == null ? void 0 : l[0]) || {};
10192
- this.currentHourData.utc = e.utc, this.currentHourData.lat = t.lat, this.currentHourData.lng = t.lng, this.currentHourData.temp = this.computeRoundPrecision((c = e == null ? void 0 : e.weather) == null ? void 0 : c.temp, 0) ?? "-", this.currentHourData.precipProbability = this.computeRoundPrecision((d = (s = e == null ? void 0 : e.weather) == null ? void 0 : s.precip) == null ? void 0 : d.probability, 0) ?? "-", this.currentHourData.precip1h = this.computeRoundPrecision((p = (m = e == null ? void 0 : e.weather) == null ? void 0 : m.precip) == null ? void 0 : p.sum, 0) ?? "-", this.currentHourData.visibility = this.computeRoundPrecision((u = e == null ? void 0 : e.weather) == null ? void 0 : u.visibility, 0) ?? "-", this.currentHourData.windSpeed = this.computeRoundPrecision((g = (b = e == null ? void 0 : e.weather) == null ? void 0 : b.wind) == null ? void 0 : g.kts, 1) ?? "-", this.currentHourData.windDir = ((f = (h = e == null ? void 0 : e.weather) == null ? void 0 : h.wind) == null ? void 0 : f.direction) ?? "-", this.currentHourData.windLevel = this.computeRoundPrecision((_ = (C = e == null ? void 0 : e.weather) == null ? void 0 : C.wind) == null ? void 0 : _.scale, 0) ?? "-", this.currentHourData.windGust = this.computeRoundPrecision((L = (v = e == null ? void 0 : e.weather) == null ? void 0 : v.wind) == null ? void 0 : L.gusts, 1) ?? "-", this.currentHourData.sigwaveHeight = this.computeRoundPrecision((z = (T = e == null ? void 0 : e.wave) == null ? void 0 : T.sig) == null ? void 0 : z.height, 1) ?? "-", this.currentHourData.sigwaveDir = (R = (S = e == null ? void 0 : e.wave) == null ? void 0 : S.sig) == null ? void 0 : R.direction, this.currentHourData.sigwavePeriod = this.computeRoundPrecision((V = (N = e == null ? void 0 : e.wave) == null ? void 0 : N.sig) == null ? void 0 : V.period, 1) ?? "-", this.currentHourData.windwaveHeight = this.computeRoundPrecision((H = (E = e == null ? void 0 : e.wave) == null ? void 0 : E.wd) == null ? void 0 : H.height, 1) ?? "-", this.currentHourData.windwaveDir = (ae = (Q = e == null ? void 0 : e.wave) == null ? void 0 : Q.wd) == null ? void 0 : ae.direction, this.currentHourData.windwavePeriod = this.computeRoundPrecision((pe = (re = e == null ? void 0 : e.wave) == null ? void 0 : re.wd) == null ? void 0 : pe.period, 1) ?? "-", this.currentHourData.swellHeight = this.computeRoundPrecision((J = (F = e == null ? void 0 : e.wave) == null ? void 0 : F.swell) == null ? void 0 : J.height, 1) ?? "-", this.currentHourData.swellDir = (oe = (K = e == null ? void 0 : e.wave) == null ? void 0 : K.swell) == null ? void 0 : oe.direction, this.currentHourData.swellPeriod = this.computeRoundPrecision((X = (Y = e == null ? void 0 : e.wave) == null ? void 0 : Y.swell) == null ? void 0 : X.period, 1) ?? "-", this.currentHourData.currentSpeed = this.computeRoundPrecision((ee = e == null ? void 0 : e.current) == null ? void 0 : ee.speed, 1) ?? "-", this.currentHourData.currentDir = (A = e == null ? void 0 : e.current) == null ? void 0 : A.direction, this.currentHourData.currentSpeed = this.computeRoundPrecision((ne = e == null ? void 0 : e.current) == null ? void 0 : ne.speed, 1) ?? "-", this.currentHourData.seaLevel = this.computeRoundPrecision(e == null ? void 0 : e.height, 1) ?? "-", this.currentHourData.seaTemp = this.computeRoundPrecision(e == null ? void 0 : e.sst, 0) ?? "-", this.currentHourData.weatherUrls = (fe = e == null ? void 0 : e.weather) == null ? void 0 : fe.url;
10192
+ this.currentHourData.utc = e.utc, this.currentHourData.lat = t.lat, this.currentHourData.lng = t.lng, this.currentHourData.temp = this.computeRoundPrecision((c = e == null ? void 0 : e.weather) == null ? void 0 : c.temp, 0) ?? "-", this.currentHourData.precipProbability = this.computeRoundPrecision((d = (s = e == null ? void 0 : e.weather) == null ? void 0 : s.precip) == null ? void 0 : d.probability, 0) ?? "-", this.currentHourData.precip1h = this.computeRoundPrecision((p = (m = e == null ? void 0 : e.weather) == null ? void 0 : m.precip) == null ? void 0 : p.sum, 0) ?? "-", this.currentHourData.visibility = this.computeRoundPrecision((u = e == null ? void 0 : e.weather) == null ? void 0 : u.visibility, 0) ?? "-", this.currentHourData.windSpeed = this.computeRoundPrecision((g = (b = e == null ? void 0 : e.weather) == null ? void 0 : b.wind) == null ? void 0 : g.kts, 1) ?? "-", this.currentHourData.windDir = ((f = (h = e == null ? void 0 : e.weather) == null ? void 0 : h.wind) == null ? void 0 : f.direction) ?? "-", this.currentHourData.windLevel = this.computeRoundPrecision((_ = (C = e == null ? void 0 : e.weather) == null ? void 0 : C.wind) == null ? void 0 : _.scale, 0) ?? "-", this.currentHourData.windGust = this.computeRoundPrecision((L = (v = e == null ? void 0 : e.weather) == null ? void 0 : v.wind) == null ? void 0 : L.gusts, 1) ?? "-", this.currentHourData.sigwaveHeight = this.computeRoundPrecision((z = (T = e == null ? void 0 : e.wave) == null ? void 0 : T.sig) == null ? void 0 : z.height, 1) ?? "-", this.currentHourData.sigwaveDir = (R = (S = e == null ? void 0 : e.wave) == null ? void 0 : S.sig) == null ? void 0 : R.direction, this.currentHourData.sigwavePeriod = this.computeRoundPrecision((V = (N = e == null ? void 0 : e.wave) == null ? void 0 : N.sig) == null ? void 0 : V.period, 1) ?? "-", this.currentHourData.windwaveHeight = this.computeRoundPrecision((H = (B = e == null ? void 0 : e.wave) == null ? void 0 : B.wd) == null ? void 0 : H.height, 1) ?? "-", this.currentHourData.windwaveDir = (ae = (Q = e == null ? void 0 : e.wave) == null ? void 0 : Q.wd) == null ? void 0 : ae.direction, this.currentHourData.windwavePeriod = this.computeRoundPrecision((pe = (re = e == null ? void 0 : e.wave) == null ? void 0 : re.wd) == null ? void 0 : pe.period, 1) ?? "-", this.currentHourData.swellHeight = this.computeRoundPrecision((J = (G = e == null ? void 0 : e.wave) == null ? void 0 : G.swell) == null ? void 0 : J.height, 1) ?? "-", this.currentHourData.swellDir = (oe = (K = e == null ? void 0 : e.wave) == null ? void 0 : K.swell) == null ? void 0 : oe.direction, this.currentHourData.swellPeriod = this.computeRoundPrecision((X = (Y = e == null ? void 0 : e.wave) == null ? void 0 : Y.swell) == null ? void 0 : X.period, 1) ?? "-", this.currentHourData.currentSpeed = this.computeRoundPrecision((ee = e == null ? void 0 : e.current) == null ? void 0 : ee.speed, 1) ?? "-", this.currentHourData.currentDir = (A = e == null ? void 0 : e.current) == null ? void 0 : A.direction, this.currentHourData.currentSpeed = this.computeRoundPrecision((ne = e == null ? void 0 : e.current) == null ? void 0 : ne.speed, 1) ?? "-", this.currentHourData.seaLevel = this.computeRoundPrecision(e == null ? void 0 : e.height, 1) ?? "-", this.currentHourData.seaTemp = this.computeRoundPrecision(e == null ? void 0 : e.sst, 0) ?? "-", this.currentHourData.weatherUrls = (fe = e == null ? void 0 : e.weather) == null ? void 0 : fe.url;
10193
10193
  },
10194
10194
  handleBind() {
10195
10195
  var t, e;
@@ -10291,7 +10291,7 @@ const ah = {
10291
10291
  }, Ah = {
10292
10292
  style: { width: "80px" },
10293
10293
  class: "pa-0 pr-2 text-right opacity-50"
10294
- }, Fh = { class: "pa-0 text-left" }, Gh = { class: "d-flex justify-space-between align-center" }, Nh = { class: "d-flex justify-start align-center" }, Wh = { class: "mx-1" }, Vh = { class: "d-flex justify-end align-center" }, Eh = { class: "mx-0 py-1 d-flex align-center justify-start" }, Bh = {
10294
+ }, Gh = { class: "pa-0 text-left" }, Fh = { class: "d-flex justify-space-between align-center" }, Nh = { class: "d-flex justify-start align-center" }, Wh = { class: "mx-1" }, Vh = { class: "d-flex justify-end align-center" }, Bh = { class: "mx-0 py-1 d-flex align-center justify-start" }, Eh = {
10295
10295
  style: { width: "60px" },
10296
10296
  class: "pa-0 pr-2 text-right opacity-50"
10297
10297
  }, Zh = { class: "pa-0 px-0" }, Oh = { class: "mx-0 py-1 d-flex align-center justify-start" }, jh = { class: "pa-0 px-0" }, Xh = { class: "gray-bg-2 mx-4 my-2 py-3 px-2 rounded text-font-13 d-flex align-center justify-space-between" }, Hh = { class: "d-flex flex-column align-start justify-center ga-3" }, Yh = { class: "text-label pr-2" }, Uh = { class: "text-label pr-2" }, $h = { class: "text-label pr-2" }, Jh = { class: "d-flex flex-column align-start justify-center ga-3" }, Kh = { class: "text-label pr-2" }, qh = { class: "text-label pr-2" }, Qh = { class: "text-label pr-2" }, ep = { id: "idm-position-icon" }, tp = {
@@ -10647,7 +10647,7 @@ function op(t, e, a, i, o, r) {
10647
10647
  }, 8, ["onSubmit"])
10648
10648
  ]),
10649
10649
  _: 1
10650
- }, 8, ["style"])) : G("", !0),
10650
+ }, 8, ["style"])) : F("", !0),
10651
10651
  o.showMeteo && !a.simple ? (k(), W(_, {
10652
10652
  key: 1,
10653
10653
  id: "idm-gl4-spot-meteo",
@@ -10709,7 +10709,7 @@ function op(t, e, a, i, o, r) {
10709
10709
  n("div", Dh, y(t.$t("weather.current")), 1),
10710
10710
  n("div", Ih, y(o.currentHourData.currentDir ?? "-") + "/" + y(o.currentHourData.currentSpeed ?? "-") + "kts", 1),
10711
10711
  n("div", Ah, y(t.$t("weather.visibility")), 1),
10712
- n("div", Fh, y(o.currentHourData.visibility ?? "-") + " nm", 1)
10712
+ n("div", Gh, y(o.currentHourData.visibility ?? "-") + " nm", 1)
10713
10713
  ])
10714
10714
  ];
10715
10715
  }),
@@ -10775,7 +10775,7 @@ function op(t, e, a, i, o, r) {
10775
10775
  })
10776
10776
  ]),
10777
10777
  _: 1
10778
- })) : G("", !0),
10778
+ })) : F("", !0),
10779
10779
  o.showMeteo && a.simple ? (k(), W(_, {
10780
10780
  key: 2,
10781
10781
  ref: "spotMeteo",
@@ -10787,7 +10787,7 @@ function op(t, e, a, i, o, r) {
10787
10787
  default: x(() => {
10788
10788
  var v;
10789
10789
  return [
10790
- n("div", Gh, [
10790
+ n("div", Fh, [
10791
10791
  n("div", Nh, [
10792
10792
  e[25] || (e[25] = n("i", { class: "iconfont icon-a-Spotweather text-h5 map-icon-aqua" }, null, -1)),
10793
10793
  n("div", Wh, y(r.computePosition(o.form || o.currentHourData)), 1)
@@ -10853,8 +10853,8 @@ function op(t, e, a, i, o, r) {
10853
10853
  default: x(() => {
10854
10854
  var v, L;
10855
10855
  return [
10856
- n("div", Eh, [
10857
- n("div", Bh, y(t.$t("time.time")), 1),
10856
+ n("div", Bh, [
10857
+ n("div", Eh, y(t.$t("time.time")), 1),
10858
10858
  n("div", Zh, y(r.computedTzTime((v = o.currentHourData) == null ? void 0 : v.utc)), 1)
10859
10859
  ]),
10860
10860
  n("div", Oh, [
@@ -10900,7 +10900,7 @@ function op(t, e, a, i, o, r) {
10900
10900
  })
10901
10901
  ]),
10902
10902
  _: 1
10903
- }, 512)) : G("", !0),
10903
+ }, 512)) : F("", !0),
10904
10904
  et(n("div", ep, [
10905
10905
  (k(), I("svg", tp, [
10906
10906
  n("use", {
@@ -10937,7 +10937,7 @@ const rp = {
10937
10937
  }
10938
10938
  },
10939
10939
  setup() {
10940
- return { Theme: Ge() };
10940
+ return { Theme: Fe() };
10941
10941
  },
10942
10942
  data() {
10943
10943
  return {
@@ -10977,7 +10977,7 @@ const rp = {
10977
10977
  else {
10978
10978
  (t = this.map) == null || t.getCanvas().removeEventListener("keydown", this.handleKeydown), (e = this.map) == null || e.off("mousemove", this.handleMove), (a = this.map) == null || a.off("dblclick", this.handleDblClick), this.map;
10979
10979
  let i = this.geojson.find((o) => !o.closed);
10980
- i && this.handleClear(i, !0), this.geojson = this.geojson.filter((o) => !!o.closed), i = B.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(i);
10980
+ i && this.handleClear(i, !0), this.geojson = this.geojson.filter((o) => !!o.closed), i = E.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(i);
10981
10981
  }
10982
10982
  },
10983
10983
  immediate: !0
@@ -11072,8 +11072,8 @@ const rp = {
11072
11072
  d.features = d.features.filter((m) => m.geometry.type === "Point" && m.properties.id !== s[1]), this.handlePointUpdate(d);
11073
11073
  } else if (e !== "marker-label" && this.toggle) {
11074
11074
  let s = this.geojson.at(-1);
11075
- s || (s = B.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(s)), s.features = s.features.filter((m) => m.geometry.type === "Point");
11076
- const d = B.feature(
11075
+ s || (s = E.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(s)), s.features = s.features.filter((m) => m.geometry.type === "Point");
11076
+ const d = E.feature(
11077
11077
  {
11078
11078
  type: "Point",
11079
11079
  coordinates: [t.lngLat.lng, t.lngLat.lat]
@@ -11097,7 +11097,7 @@ const rp = {
11097
11097
  a = j.roundPrecision(a + m, 4);
11098
11098
  let u;
11099
11099
  c.mode === "RL" ? u = j.convertToMonotonicLng([s, d]) : u = j.convertToMonotonicLng(Xe.interpolateCoordinates(s, d, 200));
11100
- const b = B.lineString(u.map((h) => [h.lng, h.lat]));
11100
+ const b = E.lineString(u.map((h) => [h.lng, h.lat]));
11101
11101
  b.properties.dist = m, b.properties.bearing = p, b.properties.total = a, b.properties.name = "Line " + this.currentLineIndex, i.push(b);
11102
11102
  const g = e[o];
11103
11103
  g.properties.totalDist = j.roundPrecision((c.totalDist ? c.totalDist : 0) + m, 4), g.properties.sumLabel = g.properties.totalDist + " nm";
@@ -11107,14 +11107,14 @@ const rp = {
11107
11107
  return this.handleRender(t), t;
11108
11108
  },
11109
11109
  handleTmpPointUpdate(t, e, a, i) {
11110
- const o = B.featureCollection([]);
11110
+ const o = E.featureCollection([]);
11111
11111
  let r, l;
11112
11112
  if (e) {
11113
11113
  const s = e.properties, d = { lng: e.geometry.coordinates[0], lat: e.geometry.coordinates[1] }, m = { lng: a.lng, lat: a.lat };
11114
11114
  r = Xe.calculateDistance(d, m, s.mode === "RL", 4), l = Xe.calculateBearing(d, m, s.mode === "RL", 2);
11115
11115
  let p;
11116
11116
  s.mode === "RL" ? p = j.convertToMonotonicLng([d, m]) : p = j.convertToMonotonicLng(Xe.interpolateCoordinates(d, m, 200));
11117
- const u = B.lineString(p.map((b) => [b.lng, b.lat]));
11117
+ const u = E.lineString(p.map((b) => [b.lng, b.lat]));
11118
11118
  u.properties.dist = r, u.properties.bearing = l, o.features.push(u);
11119
11119
  }
11120
11120
  if (i) {
@@ -11122,7 +11122,7 @@ const rp = {
11122
11122
  r = Xe.calculateDistance(d, m, s.mode === "RL", 4), l = Xe.calculateBearing(d, m, s.mode === "RL", 2);
11123
11123
  let p;
11124
11124
  s.mode === "RL" ? p = j.convertToMonotonicLng([d, m]) : p = j.convertToMonotonicLng(Xe.interpolateCoordinates(d, m, 200));
11125
- const u = B.lineString(p.map((b) => [b.lng, b.lat]));
11125
+ const u = E.lineString(p.map((b) => [b.lng, b.lat]));
11126
11126
  u.properties.dist = r, u.properties.bearing = l, o.features.push(u);
11127
11127
  }
11128
11128
  this.map.getSource(this.tmpSource) ? this.map.getSource(this.tmpSource).setData(o) : this.map.addSource(this.tmpSource, {
@@ -11184,14 +11184,14 @@ const rp = {
11184
11184
  handleMove(t) {
11185
11185
  this.map.getCanvas().style.cursor = "crosshair";
11186
11186
  let e = this.geojson.at(-1);
11187
- e || (e = B.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(e));
11187
+ e || (e = E.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(e));
11188
11188
  const a = e.features.filter((i) => i.geometry.type === "Point");
11189
11189
  a != null && a.length && this.handleTmpPointUpdate(e, a.at(-1), { lng: t.lngLat.lng, lat: t.lngLat.lat });
11190
11190
  },
11191
11191
  handleDblClick(t) {
11192
11192
  t.preventDefault();
11193
11193
  let e = this.geojson.at(-1);
11194
- e.closed = !0, this.handleRender(e), e = B.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(e), this.currentLineIndex++;
11194
+ e.closed = !0, this.handleRender(e), e = E.featureCollection([], { id: (/* @__PURE__ */ new Date()).getTime().toString() }), this.geojson.push(e), this.currentLineIndex++;
11195
11195
  },
11196
11196
  handleRender(t) {
11197
11197
  var e;
@@ -11347,7 +11347,7 @@ const cp = {
11347
11347
  },
11348
11348
  emits: ["close", "save", "hideLayer"],
11349
11349
  setup() {
11350
- return { Theme: Ge() };
11350
+ return { Theme: Fe() };
11351
11351
  },
11352
11352
  data() {
11353
11353
  var t;
@@ -11500,7 +11500,7 @@ const cp = {
11500
11500
  },
11501
11501
  handlerRenderEditLine(t) {
11502
11502
  this.drawCoords = t.geometry.coordinates.map((i) => [...i]);
11503
- const e = B.featureCollection([t, ...this.drawCoords.map((i) => B.point(i))]);
11503
+ const e = E.featureCollection([t, ...this.drawCoords.map((i) => E.point(i))]);
11504
11504
  this.handleSetDrawSource(e);
11505
11505
  const a = 3;
11506
11506
  this.map.getLayer(this.drawLineLayer) || this.map.addLayer({
@@ -11527,26 +11527,26 @@ const cp = {
11527
11527
  }), o.on("drag", () => {
11528
11528
  this.map.getCanvas().style.cursor = "pointer";
11529
11529
  const { lng: r, lat: l } = o.getLngLat();
11530
- this.handleUpdateVertexLabel([r, l]), this.drawCoords[a] = [r, l], this.handlerRenderEditLine(B.lineString(this.drawCoords, { type: "Line", color: this.form.color }));
11530
+ this.handleUpdateVertexLabel([r, l]), this.drawCoords[a] = [r, l], this.handlerRenderEditLine(E.lineString(this.drawCoords, { type: "Line", color: this.form.color }));
11531
11531
  }), o.on("dragend", () => {
11532
11532
  this.map.getCanvas().style.cursor = "grab";
11533
11533
  const { lng: r, lat: l } = o.getLngLat();
11534
- this.drawCoords[a] = [r, l], this.handlerRenderEditLine(B.lineString(this.drawCoords, { type: "Line", color: this.form.color })), this.handleClearVertexLabels();
11534
+ this.drawCoords[a] = [r, l], this.handlerRenderEditLine(E.lineString(this.drawCoords, { type: "Line", color: this.form.color })), this.handleClearVertexLabels();
11535
11535
  }), i.addEventListener("contextmenu", (r) => {
11536
11536
  r.preventDefault(), r.stopPropagation(), this.drawCoords.length > 2 && this.showDeleteButton(e, () => {
11537
- this.drawCoords.splice(a, 1), this.handlerRenderEditLine(B.lineString(this.drawCoords, { type: "Line", color: this.form.color })), this.setupLineEdit();
11537
+ this.drawCoords.splice(a, 1), this.handlerRenderEditLine(E.lineString(this.drawCoords, { type: "Line", color: this.form.color })), this.setupLineEdit();
11538
11538
  });
11539
11539
  }), this.editMarkers.push(o);
11540
11540
  });
11541
11541
  const t = (e) => {
11542
11542
  e.preventDefault();
11543
- const { lng: a, lat: i } = e.lngLat, o = B.point([a, i]), r = B.lineString(this.drawCoords), l = B.nearestPointOnLine(r, o);
11543
+ const { lng: a, lat: i } = e.lngLat, o = E.point([a, i]), r = E.lineString(this.drawCoords), l = E.nearestPointOnLine(r, o);
11544
11544
  if (l) {
11545
11545
  const c = l.properties.index;
11546
11546
  this.showDeleteButton(
11547
11547
  [a, i],
11548
11548
  () => {
11549
- this.drawCoords.splice(c + 1, 0, [a, i]), this.handlerRenderEditLine(B.lineString(this.drawCoords, { type: "Line", color: this.form.color })), this.setupLineEdit();
11549
+ this.drawCoords.splice(c + 1, 0, [a, i]), this.handlerRenderEditLine(E.lineString(this.drawCoords, { type: "Line", color: this.form.color })), this.setupLineEdit();
11550
11550
  },
11551
11551
  this.$t("actions.add") || "新增",
11552
11552
  "add"
@@ -11634,7 +11634,7 @@ const cp = {
11634
11634
  });
11635
11635
  const a = (i) => {
11636
11636
  i.preventDefault();
11637
- const { lng: o, lat: r } = i.lngLat, l = B.point([o, r]), c = B.lineString([...this.drawCoords, this.drawCoords[0]]), s = B.nearestPointOnLine(c, l);
11637
+ const { lng: o, lat: r } = i.lngLat, l = E.point([o, r]), c = E.lineString([...this.drawCoords, this.drawCoords[0]]), s = E.nearestPointOnLine(c, l);
11638
11638
  if (s) {
11639
11639
  const d = s.properties.index, m = d >= this.drawCoords.length - 1 ? this.drawCoords.length - 1 : d;
11640
11640
  this.showDeleteButton(
@@ -11695,7 +11695,7 @@ const cp = {
11695
11695
  t == null || t.forEach((o, r) => {
11696
11696
  e.push(je.drawPoint(o == null ? void 0 : o[1], o == null ? void 0 : o[0]));
11697
11697
  }), (t == null ? void 0 : t.length) >= 2 && e.push(je.drawLine(t));
11698
- const a = 2, i = B.featureCollection(e);
11698
+ const a = 2, i = E.featureCollection(e);
11699
11699
  this.handleSetDrawSource(i), this.map.getLayer(this.drawLineLayer) ? (this.map.setPaintProperty(this.drawLineLayer, "line-color", this.form.color), this.map.setPaintProperty(this.drawLineLayer, "line-width", a), this.map.getLayer(this.drawPointLayer) && this.map.setPaintProperty(this.drawPointLayer, "circle-color", this.form.color)) : (this.map.addLayer({
11700
11700
  id: this.drawLineLayer,
11701
11701
  type: "line",
@@ -11720,7 +11720,7 @@ const cp = {
11720
11720
  }));
11721
11721
  },
11722
11722
  handleRenderTmpLine(t, e) {
11723
- const a = je.drawLine([t, e]), i = B.featureCollection([a]);
11723
+ const a = je.drawLine([t, e]), i = E.featureCollection([a]);
11724
11724
  this.map.getSource(this.drawTmpSource) ? this.map.getSource(this.drawTmpSource).setData(i) : this.map.addSource(this.drawTmpSource, { type: "geojson", data: i }), this.map.getLayer(this.drawTmpLayer) || this.map.addLayer({
11725
11725
  id: this.drawTmpLayer,
11726
11726
  type: "line",
@@ -11771,12 +11771,12 @@ const cp = {
11771
11771
  var o;
11772
11772
  let e = [];
11773
11773
  if (t == null || t.forEach((r, l) => {
11774
- e.push(B.point(r));
11774
+ e.push(E.point(r));
11775
11775
  }), (t == null ? void 0 : t.length) > 2) {
11776
11776
  const r = [...t, t[0]];
11777
11777
  e.push(je.drawPolygon(r, { ...this.originalProperties }));
11778
11778
  }
11779
- const a = B.featureCollection(e);
11779
+ const a = E.featureCollection(e);
11780
11780
  this.handleSetDrawSource(a);
11781
11781
  const i = (o = this.editLayer) != null && o.id ? 3 : 2;
11782
11782
  this.map.getLayer(this.drawFillLayer) ? (this.map.setPaintProperty(this.drawLineLayer, "line-width", i), this.map.getLayer(this.drawPointLayer) && this.map.setPaintProperty(this.drawPointLayer, "circle-color", this.form.color)) : (this.map.addLayer({
@@ -11847,7 +11847,7 @@ const cp = {
11847
11847
  const { lng: e, lat: a } = t.lngLat;
11848
11848
  if (this.drawCoords.length === 0) {
11849
11849
  this.drawCoords.push([e, a]);
11850
- const i = B.featureCollection([B.point([e, a])]);
11850
+ const i = E.featureCollection([E.point([e, a])]);
11851
11851
  this.handleSetDrawSource(i), this.map.getLayer(this.drawPointLayer) || this.map.addLayer({
11852
11852
  id: this.drawPointLayer,
11853
11853
  type: "circle",
@@ -11861,14 +11861,14 @@ const cp = {
11861
11861
  }
11862
11862
  }), this.handleRenderCircleCenterLabel([e, a]);
11863
11863
  } else {
11864
- const i = this.drawCoords[0], o = [e, a], r = B.distance(B.point(i), B.point(o), { units: "nauticalmiles" }), l = je.drawCircle(i[0], i[1], r), c = B.featureCollection([B.point(i), l]);
11864
+ const i = this.drawCoords[0], o = [e, a], r = E.distance(E.point(i), E.point(o), { units: "nauticalmiles" }), l = je.drawCircle(i[0], i[1], r), c = E.featureCollection([E.point(i), l]);
11865
11865
  this.handleSetDrawSource(c), this.handleRenderAreaLayers(), this.handleRenderRadiusLine(i, o, r), this.drawCoords = [i, o], this.map.off("click", this.handleMapClickCircle), this.map.off("mousemove", this.handleMapMoveCircle);
11866
11866
  }
11867
11867
  },
11868
11868
  handleMapMoveCircle(t) {
11869
11869
  if (this.drawCoords.length !== 1)
11870
11870
  return;
11871
- const e = this.drawCoords[0], a = [t.lngLat.lng, t.lngLat.lat], i = B.distance(B.point(e), B.point(a), { units: "nauticalmiles" }), o = je.drawCircle(e[0], e[1], i), r = B.featureCollection([B.point(e), o]);
11871
+ const e = this.drawCoords[0], a = [t.lngLat.lng, t.lngLat.lat], i = E.distance(E.point(e), E.point(a), { units: "nauticalmiles" }), o = je.drawCircle(e[0], e[1], i), r = E.featureCollection([E.point(e), o]);
11872
11872
  this.handleSetDrawSource(r), this.map.getLayer(this.drawFillLayer) || this.handleRenderAreaLayers(), this.handleRenderRadiusLine(e, a, i);
11873
11873
  },
11874
11874
  handleRenderCircleCenterLabel(t) {
@@ -11878,7 +11878,7 @@ const cp = {
11878
11878
  this.circleMarkers.push(o);
11879
11879
  },
11880
11880
  handleRenderRadiusLine(t, e, a) {
11881
- const i = j.roundPrecision(a, 2), o = B.featureCollection([B.lineString([t, e])]);
11881
+ const i = j.roundPrecision(a, 2), o = E.featureCollection([E.lineString([t, e])]);
11882
11882
  this.map.getSource(this.drawRadiusSource) ? this.map.getSource(this.drawRadiusSource).setData(o) : this.map.addSource(this.drawRadiusSource, { type: "geojson", data: o }), this.map.getLayer(this.drawRadiusLayer) || this.map.addLayer({
11883
11883
  id: this.drawRadiusLayer,
11884
11884
  type: "line",
@@ -11921,14 +11921,14 @@ const cp = {
11921
11921
  else {
11922
11922
  const i = this.drawCoords[0], o = [e, a], r = je.drawRect(i, o);
11923
11923
  delete r.bbox;
11924
- const l = this.buildRectFeatureCollection(i, o), c = B.featureCollection([r, ...l.map((s) => B.point(s))]);
11924
+ const l = this.buildRectFeatureCollection(i, o), c = E.featureCollection([r, ...l.map((s) => E.point(s))]);
11925
11925
  this.handleSetDrawSource(c), this.handleRenderRectLayers(), this.handleRenderRectCorners(i, o), this.drawCoords = [i, o], this.map.off("click", this.handleMapClickRect), this.map.off("mousemove", this.handleMapMoveRect);
11926
11926
  }
11927
11927
  },
11928
11928
  handleMapMoveRect(t) {
11929
11929
  if (this.drawCoords.length !== 1)
11930
11930
  return;
11931
- const e = this.drawCoords[0], a = [t.lngLat.lng, t.lngLat.lat], i = je.drawRect(e, a), o = this.buildRectFeatureCollection(e, a), r = B.featureCollection([i, ...o.map((l) => B.point(l))]);
11931
+ const e = this.drawCoords[0], a = [t.lngLat.lng, t.lngLat.lat], i = je.drawRect(e, a), o = this.buildRectFeatureCollection(e, a), r = E.featureCollection([i, ...o.map((l) => E.point(l))]);
11932
11932
  this.handleSetDrawSource(r), this.map.getLayer(this.drawFillLayer) || this.handleRenderRectLayers(), this.handleRenderRectCorners(e, a);
11933
11933
  },
11934
11934
  handleRenderRectLayers() {
@@ -12044,7 +12044,7 @@ const cp = {
12044
12044
  if (!this.drawCoords.length)
12045
12045
  return;
12046
12046
  const [c, s] = this.drawCoords[0];
12047
- t = B.featureCollection([
12047
+ t = E.featureCollection([
12048
12048
  je.drawPoint(s, c, { ...this.originalProperties, color: this.form.color, name: this.form.name })
12049
12049
  ]), (l = t.features) == null || l.forEach((d) => {
12050
12050
  d.properties.color = this.form.color, d.properties.name = this.form.name;
@@ -12067,7 +12067,7 @@ const cp = {
12067
12067
  }
12068
12068
  })
12069
12069
  );
12070
- t = B.featureCollection(l);
12070
+ t = E.featureCollection(l);
12071
12071
  }
12072
12072
  }) : this.markerType === "Area" && await this.$refs.areaForm.validate().then((r) => {
12073
12073
  var l, c, s;
@@ -12081,7 +12081,7 @@ const cp = {
12081
12081
  let p = ((s = m.features) == null ? void 0 : s.filter((u) => u.geometry.type === "Polygon")) || [];
12082
12082
  if (p = p == null ? void 0 : p.map((u) => (u.properties.name = this.form.name, u.properties.color = this.form.color, u)), !p.length)
12083
12083
  return;
12084
- t = B.featureCollection(p);
12084
+ t = E.featureCollection(p);
12085
12085
  }
12086
12086
  }), !t)
12087
12087
  return !1;
@@ -12112,7 +12112,7 @@ const cp = {
12112
12112
  }, mp = { class: "text-h6 font-weight-600" }, dp = { class: "text-label mb-1" }, hp = { class: "text-label mb-1" }, pp = { class: "mb-1" }, up = { class: "text-label mb-1" }, gp = { class: "mb-1" }, fp = { class: "text-label mb-1" }, yp = { class: "mb-1" }, bp = { class: "text-label mb-1" }, wp = { class: "color-picker-row d-flex align-start ga-2" }, xp = ["value"], vp = { class: "mb-n2" }, kp = { class: "text-label mb-1" }, _p = { class: "mb-1" }, Lp = { class: "text-label mb-1" }, zp = { class: "color-picker-row d-flex align-start ga-2" }, Cp = ["value"], Mp = { class: "mb-n2" }, Pp = { class: "text-label mb-1" }, Sp = {
12113
12113
  key: 0,
12114
12114
  class: "mb-3"
12115
- }, Tp = { class: "text-label mb-1" }, Rp = { class: "mb-1" }, Dp = { class: "text-label mb-1" }, Ip = { class: "color-picker-row d-flex align-start ga-2" }, Ap = ["value"], Fp = { class: "mb-n2" }, Gp = { class: "text-label mb-1" };
12115
+ }, Tp = { class: "text-label mb-1" }, Rp = { class: "mb-1" }, Dp = { class: "text-label mb-1" }, Ip = { class: "color-picker-row d-flex align-start ga-2" }, Ap = ["value"], Gp = { class: "mb-n2" }, Fp = { class: "text-label mb-1" };
12116
12116
  function Np(t, e, a, i, o, r) {
12117
12117
  const l = P("VBtn"), c = P("VCardTitle"), s = P("VDivider"), d = P("VTextField"), m = P("VCardText"), p = P("VBtnToggle"), u = P("VCol"), b = P("VRow"), g = P("VCardActions"), h = P("VForm"), f = P("VCard");
12118
12118
  return k(), W(f, {
@@ -12162,7 +12162,7 @@ function Np(t, e, a, i, o, r) {
12162
12162
  }),
12163
12163
  _: 1
12164
12164
  }),
12165
- (C = a.editLayer) != null && C.id ? G("", !0) : (k(), W(m, {
12165
+ (C = a.editLayer) != null && C.id ? F("", !0) : (k(), W(m, {
12166
12166
  key: 0,
12167
12167
  class: "text-body-1 px-4 pb-0"
12168
12168
  }, {
@@ -12481,7 +12481,7 @@ function Np(t, e, a, i, o, r) {
12481
12481
  })
12482
12482
  ]),
12483
12483
  _: 1
12484
- }, 8, ["onSubmit"])) : G("", !0),
12484
+ }, 8, ["onSubmit"])) : F("", !0),
12485
12485
  o.markerType === "Line" ? (k(), W(h, {
12486
12486
  key: 2,
12487
12487
  ref: "lineForm",
@@ -12564,7 +12564,7 @@ function Np(t, e, a, i, o, r) {
12564
12564
  })
12565
12565
  ]),
12566
12566
  _: 1
12567
- }, 8, ["onSubmit"])) : G("", !0),
12567
+ }, 8, ["onSubmit"])) : F("", !0),
12568
12568
  o.markerType === "Area" ? (k(), W(h, {
12569
12569
  key: 3,
12570
12570
  ref: "areaForm",
@@ -12577,7 +12577,7 @@ function Np(t, e, a, i, o, r) {
12577
12577
  default: x(() => {
12578
12578
  var _, v;
12579
12579
  return [
12580
- (_ = a.editLayer) != null && _.id ? G("", !0) : (k(), I("div", Sp, [
12580
+ (_ = a.editLayer) != null && _.id ? F("", !0) : (k(), I("div", Sp, [
12581
12581
  n("div", Tp, [
12582
12582
  Z(y(t.$t("marker.areaType")), 1),
12583
12583
  e[33] || (e[33] = n("span", { class: "text-danger" }, "*", -1))
@@ -12660,8 +12660,8 @@ function Np(t, e, a, i, o, r) {
12660
12660
  }, null, 8, ["modelValue", "rules"])
12661
12661
  ])
12662
12662
  ]),
12663
- n("div", Fp, [
12664
- n("div", Gp, [
12663
+ n("div", Gp, [
12664
+ n("div", Fp, [
12665
12665
  Z(y(t.$t("marker.name")), 1),
12666
12666
  e[35] || (e[35] = n("span", { class: "text-danger" }, "*", -1))
12667
12667
  ]),
@@ -12684,7 +12684,7 @@ function Np(t, e, a, i, o, r) {
12684
12684
  default: x(() => {
12685
12685
  var _;
12686
12686
  return [
12687
- (_ = a.editLayer) != null && _.id ? G("", !0) : (k(), W(l, {
12687
+ (_ = a.editLayer) != null && _.id ? F("", !0) : (k(), W(l, {
12688
12688
  key: 0,
12689
12689
  class: "text-none text-body-1",
12690
12690
  variant: "tonal",
@@ -12715,7 +12715,7 @@ function Np(t, e, a, i, o, r) {
12715
12715
  })
12716
12716
  ]),
12717
12717
  _: 1
12718
- }, 8, ["onSubmit"])) : G("", !0)
12718
+ }, 8, ["onSubmit"])) : F("", !0)
12719
12719
  ];
12720
12720
  }),
12721
12721
  _: 1
@@ -12744,7 +12744,7 @@ const Vp = {
12744
12744
  },
12745
12745
  emits: ["close", "import"],
12746
12746
  setup() {
12747
- return { Theme: Ge() };
12747
+ return { Theme: Fe() };
12748
12748
  },
12749
12749
  data() {
12750
12750
  var t;
@@ -12950,7 +12950,7 @@ const Vp = {
12950
12950
  }), this.map.getSource(t) && this.map.removeSource(t);
12951
12951
  }
12952
12952
  }
12953
- }, Ep = { class: "text-h6 font-weight-600" }, Bp = { class: "mb-4" }, Zp = { class: "text-label mb-1" }, Op = { class: "mb-1" }, jp = { class: "text-label mb-1" }, Xp = { class: "color-picker-row d-flex align-start ga-2" }, Hp = ["value"], Yp = { class: "text-body-2 text-center text-label" }, Up = { class: "text-body-1 text-primary mt-2 cursor-pointer" }, $p = { class: "text-body-2 text-left text-label mt-1" }, Jp = {
12953
+ }, Bp = { class: "text-h6 font-weight-600" }, Ep = { class: "mb-4" }, Zp = { class: "text-label mb-1" }, Op = { class: "mb-1" }, jp = { class: "text-label mb-1" }, Xp = { class: "color-picker-row d-flex align-start ga-2" }, Hp = ["value"], Yp = { class: "text-body-2 text-center text-label" }, Up = { class: "text-body-1 text-primary mt-2 cursor-pointer" }, $p = { class: "text-body-2 text-left text-label mt-1" }, Jp = {
12954
12954
  key: 0,
12955
12955
  class: "text-body-2 text-left text-danger mt-1"
12956
12956
  }, Kp = {
@@ -12966,7 +12966,7 @@ function Qp(t, e, a, i, o, r) {
12966
12966
  default: x(() => [
12967
12967
  w(c, { class: "d-flex justify-space-between align-center" }, {
12968
12968
  default: x(() => [
12969
- n("span", Ep, y(t.$t("marker.importLayer")), 1),
12969
+ n("span", Bp, y(t.$t("marker.importLayer")), 1),
12970
12970
  w(l, {
12971
12971
  icon: "",
12972
12972
  density: "compact",
@@ -12993,7 +12993,7 @@ function Qp(t, e, a, i, o, r) {
12993
12993
  default: x(() => [
12994
12994
  w(p, { class: "px-4 text-body-1" }, {
12995
12995
  default: x(() => [
12996
- n("div", Bp, [
12996
+ n("div", Ep, [
12997
12997
  n("div", Zp, [
12998
12998
  Z(y(t.$t("marker.group")), 1),
12999
12999
  e[10] || (e[10] = n("span", { class: "text-danger" }, "*", -1))
@@ -13060,7 +13060,7 @@ function Qp(t, e, a, i, o, r) {
13060
13060
  }, null, 544)
13061
13061
  ], 34),
13062
13062
  n("div", $p, y(t.$t("marker.uploadLimit")), 1),
13063
- o.fileError ? (k(), I("div", Jp, y(o.fileError), 1)) : G("", !0),
13063
+ o.fileError ? (k(), I("div", Jp, y(o.fileError), 1)) : F("", !0),
13064
13064
  o.form.file ? (k(), I("div", Kp, [
13065
13065
  n("span", qp, [
13066
13066
  w(m, {
@@ -13095,7 +13095,7 @@ function Qp(t, e, a, i, o, r) {
13095
13095
  ]),
13096
13096
  _: 1
13097
13097
  }, 8, ["onClick"])
13098
- ])) : G("", !0)
13098
+ ])) : F("", !0)
13099
13099
  ]),
13100
13100
  _: 1
13101
13101
  }),
@@ -13443,7 +13443,7 @@ const du = {
13443
13443
  },
13444
13444
  emits: ["map", "menuToggle", "theme", "login"],
13445
13445
  setup() {
13446
- return { Theme: Ge() };
13446
+ return { Theme: Fe() };
13447
13447
  },
13448
13448
  data() {
13449
13449
  return {
@@ -13881,7 +13881,7 @@ function Du(t, e, a, i, o, r) {
13881
13881
  _: 1
13882
13882
  }, 8, ["modelValue"])
13883
13883
  ]),
13884
- a.simple ? G("", !0) : (k(), I("div", wu, [
13884
+ a.simple ? F("", !0) : (k(), I("div", wu, [
13885
13885
  w(l, {
13886
13886
  class: "flex-1-1-0 text-none mb-3 text-body-1 font-weight-600",
13887
13887
  color: "primary",
@@ -13935,11 +13935,11 @@ function Du(t, e, a, i, o, r) {
13935
13935
  R.show ? (k(), W(d, {
13936
13936
  key: 0,
13937
13937
  icon: "mdi-chevron-down",
13938
- onClick: (E) => R.show = !1
13938
+ onClick: (B) => R.show = !1
13939
13939
  }, null, 8, ["onClick"])) : (k(), W(d, {
13940
13940
  key: 1,
13941
13941
  icon: "mdi-chevron-right",
13942
- onClick: (E) => R.show = !0
13942
+ onClick: (B) => R.show = !0
13943
13943
  }, null, 8, ["onClick"])),
13944
13944
  o.loading ? (k(), W(p, {
13945
13945
  key: 3,
@@ -13954,19 +13954,19 @@ function Du(t, e, a, i, o, r) {
13954
13954
  variant: "tonal",
13955
13955
  class: "font-weight-600 mr-2",
13956
13956
  color: "primary",
13957
- onClick: (E) => R.show = !R.show
13957
+ onClick: (B) => R.show = !R.show
13958
13958
  }, {
13959
13959
  default: x(() => {
13960
- var E;
13960
+ var B;
13961
13961
  return [
13962
- Z(y((E = R.layers) == null ? void 0 : E.length), 1)
13962
+ Z(y((B = R.layers) == null ? void 0 : B.length), 1)
13963
13963
  ];
13964
13964
  }),
13965
13965
  _: 2
13966
13966
  }, 1032, ["onClick"])),
13967
13967
  n("div", {
13968
13968
  class: "",
13969
- onClick: (E) => R.show = !R.show
13969
+ onClick: (B) => R.show = !R.show
13970
13970
  }, y(R.name), 9, Cu)
13971
13971
  ]),
13972
13972
  R.name !== "Custom Layers" && !a.simple ? (k(), I("div", Mu, [
@@ -13998,7 +13998,7 @@ function Du(t, e, a, i, o, r) {
13998
13998
  default: x(() => [
13999
13999
  w(b, {
14000
14000
  class: "text-body-1 d-flex jusity-center align-center",
14001
- onClick: (E) => r.handleOpenDrawMarkers(R)
14001
+ onClick: (B) => r.handleOpenDrawMarkers(R)
14002
14002
  }, {
14003
14003
  default: x(() => [
14004
14004
  w(d, {
@@ -14022,7 +14022,7 @@ function Du(t, e, a, i, o, r) {
14022
14022
  default: x(() => [
14023
14023
  w(b, {
14024
14024
  class: "text-body-1 d-flex jusity-center align-center",
14025
- onClick: (E) => r.handleEditGroup(R)
14025
+ onClick: (B) => r.handleEditGroup(R)
14026
14026
  }, {
14027
14027
  default: x(() => [
14028
14028
  w(d, {
@@ -14046,7 +14046,7 @@ function Du(t, e, a, i, o, r) {
14046
14046
  default: x(() => [
14047
14047
  w(b, {
14048
14048
  class: "text-body-1 d-flex jusity-center align-center",
14049
- onClick: (E) => r.handleOpenDelete("group", R)
14049
+ onClick: (B) => r.handleOpenDelete("group", R)
14050
14050
  }, {
14051
14051
  default: x(() => [
14052
14052
  w(d, {
@@ -14073,28 +14073,28 @@ function Du(t, e, a, i, o, r) {
14073
14073
  _: 2,
14074
14074
  __: [10]
14075
14075
  }, 1024)
14076
- ])) : G("", !0)
14076
+ ])) : F("", !0)
14077
14077
  ]),
14078
14078
  R.show ? (k(), I("div", Pu, [
14079
- (k(!0), I(Te, null, De((V = R.layers) == null ? void 0 : V.filter((E) => {
14079
+ (k(!0), I(Te, null, De((V = R.layers) == null ? void 0 : V.filter((B) => {
14080
14080
  var H;
14081
- return ((H = E.name) == null ? void 0 : H.indexOf(o.keyword)) > -1;
14082
- }), (E) => {
14081
+ return ((H = B.name) == null ? void 0 : H.indexOf(o.keyword)) > -1;
14082
+ }), (B) => {
14083
14083
  var H;
14084
14084
  return k(), I("div", {
14085
- key: E.id,
14086
- class: ge(["layer-item py-3 px-2 mx-2 rounded cursor-pointer d-flex align-center justify-space-between ga-4", ((H = o.currentLayer) == null ? void 0 : H.id) === E.id ? "active" : ""])
14085
+ key: B.id,
14086
+ class: ge(["layer-item py-3 px-2 mx-2 rounded cursor-pointer d-flex align-center justify-space-between ga-4", ((H = o.currentLayer) == null ? void 0 : H.id) === B.id ? "active" : ""])
14087
14087
  }, [
14088
14088
  n("div", Su, [
14089
- n("span", Tu, y(E == null ? void 0 : E.name), 1)
14089
+ n("span", Tu, y(B == null ? void 0 : B.name), 1)
14090
14090
  ]),
14091
- a.simple ? G("", !0) : (k(), I("div", Ru, [
14091
+ a.simple ? F("", !0) : (k(), I("div", Ru, [
14092
14092
  w(l, {
14093
14093
  class: "",
14094
14094
  density: "compact",
14095
14095
  icon: "",
14096
14096
  variant: "text",
14097
- onClick: (Q) => r.handleEditLayer(R, E)
14097
+ onClick: (Q) => r.handleEditLayer(R, B)
14098
14098
  }, {
14099
14099
  default: x(() => [
14100
14100
  w(d, {
@@ -14109,7 +14109,7 @@ function Du(t, e, a, i, o, r) {
14109
14109
  density: "compact",
14110
14110
  icon: "",
14111
14111
  variant: "text",
14112
- onClick: (Q) => r.handleOpenDelete("layer", E)
14112
+ onClick: (Q) => r.handleOpenDelete("layer", B)
14113
14113
  }, {
14114
14114
  default: x(() => [
14115
14115
  w(d, {
@@ -14122,12 +14122,12 @@ function Du(t, e, a, i, o, r) {
14122
14122
  ]))
14123
14123
  ], 2);
14124
14124
  }), 128))
14125
- ])) : G("", !0),
14125
+ ])) : F("", !0),
14126
14126
  N < o.layerGroup.length - 1 ? (k(), W(_, {
14127
14127
  key: 1,
14128
14128
  class: "w-100",
14129
14129
  thickness: "1"
14130
- })) : G("", !0)
14130
+ })) : F("", !0)
14131
14131
  ], 2);
14132
14132
  }), 128))
14133
14133
  ]))
@@ -14144,7 +14144,7 @@ function Du(t, e, a, i, o, r) {
14144
14144
  onClose: r.handleCloseDraw,
14145
14145
  onSave: r.handleSaveMarker,
14146
14146
  onHideLayer: r.handleClearLayer
14147
- }, null, 8, ["map", "gateway", "token", "default-meteo-token", "edit-layer", "group", "onClose", "onSave", "onHideLayer"])) : G("", !0),
14147
+ }, null, 8, ["map", "gateway", "token", "default-meteo-token", "edit-layer", "group", "onClose", "onSave", "onHideLayer"])) : F("", !0),
14148
14148
  o.importDialog ? (k(), W(L, {
14149
14149
  key: 1,
14150
14150
  map: a.map,
@@ -14157,7 +14157,7 @@ function Du(t, e, a, i, o, r) {
14157
14157
  o.importDialog = !1, o.currentGroup = void 0;
14158
14158
  }),
14159
14159
  onImport: r.handleImportLayer
14160
- }, null, 8, ["map", "gateway", "token", "default-meteo-token", "layer-group", "group", "onImport"])) : G("", !0),
14160
+ }, null, 8, ["map", "gateway", "token", "default-meteo-token", "layer-group", "group", "onImport"])) : F("", !0),
14161
14161
  w(T, {
14162
14162
  modelValue: o.groupDialog,
14163
14163
  "onUpdate:modelValue": e[4] || (e[4] = (R) => o.groupDialog = R),
@@ -14210,7 +14210,7 @@ function fo(t) {
14210
14210
  let a = e[2].trim();
14211
14211
  return a.startsWith("#") ? null : a;
14212
14212
  }
14213
- function Fu(t) {
14213
+ function Gu(t) {
14214
14214
  if (!t || t === "none")
14215
14215
  return "";
14216
14216
  let e = t.replace(/translate[XY]?\([^)]*\)/g, "");
@@ -14231,7 +14231,7 @@ function Ka(t) {
14231
14231
  return t;
14232
14232
  }
14233
14233
  }
14234
- function Gu(t = "[snapDOM]", { ttlMs: e = 5 * 6e4, maxEntries: a = 12 } = {}) {
14234
+ function Fu(t = "[snapDOM]", { ttlMs: e = 5 * 6e4, maxEntries: a = 12 } = {}) {
14235
14235
  let i = /* @__PURE__ */ new Map(), o = 0;
14236
14236
  function r(l, c, s) {
14237
14237
  if (o >= a)
@@ -14247,7 +14247,7 @@ function Gu(t = "[snapDOM]", { ttlMs: e = 5 * 6e4, maxEntries: a = 12 } = {}) {
14247
14247
  i.clear(), o = 0;
14248
14248
  } };
14249
14249
  }
14250
- var xi = Gu("[snapDOM]", { ttlMs: 3 * 6e4, maxEntries: 10 }), to = /* @__PURE__ */ new Map(), Xa = /* @__PURE__ */ new Map();
14250
+ var xi = Fu("[snapDOM]", { ttlMs: 3 * 6e4, maxEntries: 10 }), to = /* @__PURE__ */ new Map(), Xa = /* @__PURE__ */ new Map();
14251
14251
  function Nu(t) {
14252
14252
  return /^data:|^blob:|^about:blank$/i.test(t);
14253
14253
  }
@@ -14273,7 +14273,7 @@ function Vu(t, e) {
14273
14273
  return !!e;
14274
14274
  }
14275
14275
  }
14276
- function Eu(t, e) {
14276
+ function Bu(t, e) {
14277
14277
  if (!e)
14278
14278
  return t;
14279
14279
  if (e.includes("{url}"))
@@ -14293,7 +14293,7 @@ function vi(t) {
14293
14293
  i.onload = () => e(String(i.result || "")), i.onerror = () => a(new Error("read_failed")), i.readAsDataURL(t);
14294
14294
  });
14295
14295
  }
14296
- function Bu(t, e) {
14296
+ function Eu(t, e) {
14297
14297
  return [e.as || "blob", e.timeout ?? 3e3, e.useProxy || "", e.errorTTL ?? 8e3, t].join("|");
14298
14298
  }
14299
14299
  async function Je(t, e = {}) {
@@ -14321,14 +14321,14 @@ async function Je(t, e = {}) {
14321
14321
  }
14322
14322
  if (/^about:blank$/i.test(t))
14323
14323
  return a === "dataURL" ? { ok: !0, data: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR4nGMAAQAABQABDQottAAAAABJRU5ErkJggg==", status: 200, url: t, fromCache: !1, mime: "image/png" } : { ok: !0, data: a === "text" ? "" : new Blob([]), status: 200, url: t, fromCache: !1 };
14324
- let s = Bu(t, { as: a, timeout: i, useProxy: o, errorTTL: r }), d = Xa.get(s);
14324
+ let s = Eu(t, { as: a, timeout: i, useProxy: o, errorTTL: r }), d = Xa.get(s);
14325
14325
  if (d && d.until > Date.now())
14326
14326
  return { ...d.result, fromCache: !0 };
14327
14327
  d && Xa.delete(s);
14328
14328
  let m = to.get(s);
14329
14329
  if (m)
14330
14330
  return m;
14331
- let p = Vu(t, o) ? Eu(t, o) : t, u = e.credentials;
14331
+ let p = Vu(t, o) ? Bu(t, o) : t, u = e.credentials;
14332
14332
  if (!u)
14333
14333
  try {
14334
14334
  let f = typeof location < "u" && location.href ? location.href : "http://localhost/", C = new URL(t, f);
@@ -14900,20 +14900,20 @@ async function Ki(t, e, a, i) {
14900
14900
  }
14901
14901
  }
14902
14902
  async function bg({ required: t, usedCodepoints: e, exclude: a = void 0, localFonts: i = [], useProxy: o = "" } = {}) {
14903
- var h, f, C, _, v, L, T, z, S, R, N, V, E, H, Q, ae, re, pe;
14903
+ var h, f, C, _, v, L, T, z, S, R, N, V, B, H, Q, ae, re, pe;
14904
14904
  t instanceof Set || (t = /* @__PURE__ */ new Set()), e instanceof Set || (e = /* @__PURE__ */ new Set());
14905
14905
  let r = /* @__PURE__ */ new Map();
14906
- for (let F of t) {
14907
- let [J, K, oe, Y] = String(F).split("__");
14906
+ for (let G of t) {
14907
+ let [J, K, oe, Y] = String(G).split("__");
14908
14908
  if (!J)
14909
14909
  continue;
14910
14910
  let X = r.get(J) || [];
14911
14911
  X.push({ w: parseInt(K, 10), s: oe, st: parseInt(Y, 10) }), r.set(J, X);
14912
14912
  }
14913
- function l(F, J, K, oe) {
14914
- if (!r.has(F))
14913
+ function l(G, J, K, oe) {
14914
+ if (!r.has(G))
14915
14915
  return !1;
14916
- let Y = r.get(F), X = sg(K), ee = cg(J), A = mg(oe), ne = X.min !== X.max, fe = X.min, ke = (me) => ee.kind === "normal" && me === "normal" || ee.kind !== "normal" && (me === "italic" || me === "oblique"), ze = !1;
14916
+ let Y = r.get(G), X = sg(K), ee = cg(J), A = mg(oe), ne = X.min !== X.max, fe = X.min, ke = (me) => ee.kind === "normal" && me === "normal" || ee.kind !== "normal" && (me === "italic" || me === "oblique"), ze = !1;
14917
14917
  for (let me of Y) {
14918
14918
  let be = ne ? me.w >= X.min && me.w <= X.max : me.w === fe, _e = ke(Ua(me.s)), Re = me.st >= A.min && me.st <= A.max;
14919
14919
  if (be && _e && Re) {
@@ -14941,33 +14941,33 @@ async function bg({ required: t, usedCodepoints: e, exclude: a = void 0, localFo
14941
14941
  if ((h = O.resource) != null && h.has(s))
14942
14942
  return O.resource.get(s);
14943
14943
  let d = hg(t), m = [], p = lo;
14944
- for (let F of document.querySelectorAll("style")) {
14945
- let J = F.textContent || "";
14944
+ for (let G of document.querySelectorAll("style")) {
14945
+ let J = G.textContent || "";
14946
14946
  for (let K of J.matchAll(p)) {
14947
14947
  let oe = (K[2] || K[4] || "").trim();
14948
14948
  !oe || Ke(oe) || document.querySelector(`link[rel="stylesheet"][href="${oe}"]`) || m.push(oe);
14949
14949
  }
14950
14950
  }
14951
- m.length && await Promise.all(m.map((F) => new Promise((J) => {
14952
- if (document.querySelector(`link[rel="stylesheet"][href="${F}"]`))
14951
+ m.length && await Promise.all(m.map((G) => new Promise((J) => {
14952
+ if (document.querySelector(`link[rel="stylesheet"][href="${G}"]`))
14953
14953
  return J(null);
14954
14954
  let K = document.createElement("link");
14955
- K.rel = "stylesheet", K.href = F, K.setAttribute("data-snapdom", "injected-import"), K.onload = () => J(K), K.onerror = () => J(null), document.head.appendChild(K);
14955
+ K.rel = "stylesheet", K.href = G, K.setAttribute("data-snapdom", "injected-import"), K.onload = () => J(K), K.onerror = () => J(null), document.head.appendChild(K);
14956
14956
  })));
14957
- let u = "", b = Array.from(document.querySelectorAll('link[rel="stylesheet"]')).filter((F) => !!F.href);
14958
- for (let F of b)
14957
+ let u = "", b = Array.from(document.querySelectorAll('link[rel="stylesheet"]')).filter((G) => !!G.href);
14958
+ for (let G of b)
14959
14959
  try {
14960
- if (Ke(F.href))
14960
+ if (Ke(G.href))
14961
14961
  continue;
14962
14962
  let J = "", K = !1;
14963
14963
  try {
14964
- K = new URL(F.href, location.href).origin === location.origin;
14964
+ K = new URL(G.href, location.href).origin === location.origin;
14965
14965
  } catch {
14966
14966
  }
14967
- if (!K && !dg(F.href, d))
14967
+ if (!K && !dg(G.href, d))
14968
14968
  continue;
14969
14969
  if (K) {
14970
- let Y = Array.from(document.styleSheets).find((X) => X.href === F.href);
14970
+ let Y = Array.from(document.styleSheets).find((X) => X.href === G.href);
14971
14971
  if (Y)
14972
14972
  try {
14973
14973
  let X = Y.cssRules || [];
@@ -14975,76 +14975,76 @@ async function bg({ required: t, usedCodepoints: e, exclude: a = void 0, localFo
14975
14975
  } catch {
14976
14976
  }
14977
14977
  }
14978
- if (!J && (J = (await Je(F.href, { as: "text", useProxy: o })).data, Ke(F.href)))
14978
+ if (!J && (J = (await Je(G.href, { as: "text", useProxy: o })).data, Ke(G.href)))
14979
14979
  continue;
14980
- J = await pg(J, F.href, o);
14980
+ J = await pg(J, G.href, o);
14981
14981
  let oe = "";
14982
14982
  for (let Y of J.match(ug) || []) {
14983
14983
  let X = (((f = Y.match(/font-family:\s*([^;]+);/i)) == null ? void 0 : f[1]) || "").trim(), ee = eo(X);
14984
14984
  if (!ee || Ke(ee))
14985
14985
  continue;
14986
- let A = (((C = Y.match(/font-weight:\s*([^;]+);/i)) == null ? void 0 : C[1]) || "400").trim(), ne = (((_ = Y.match(/font-style:\s*([^;]+);/i)) == null ? void 0 : _[1]) || "normal").trim(), fe = (((v = Y.match(/font-stretch:\s*([^;]+);/i)) == null ? void 0 : v[1]) || "100%").trim(), ke = (((L = Y.match(/unicode-range:\s*([^;]+);/i)) == null ? void 0 : L[1]) || "").trim(), ze = (((T = Y.match(/src\s*:\s*([^;}]+)[;}]/i)) == null ? void 0 : T[1]) || "").trim(), me = bo(ze, F.href);
14986
+ let A = (((C = Y.match(/font-weight:\s*([^;]+);/i)) == null ? void 0 : C[1]) || "400").trim(), ne = (((_ = Y.match(/font-style:\s*([^;]+);/i)) == null ? void 0 : _[1]) || "normal").trim(), fe = (((v = Y.match(/font-stretch:\s*([^;]+);/i)) == null ? void 0 : v[1]) || "100%").trim(), ke = (((L = Y.match(/unicode-range:\s*([^;]+);/i)) == null ? void 0 : L[1]) || "").trim(), ze = (((T = Y.match(/src\s*:\s*([^;}]+)[;}]/i)) == null ? void 0 : T[1]) || "").trim(), me = bo(ze, G.href);
14987
14987
  if (!l(ee, ne, A, fe))
14988
14988
  continue;
14989
14989
  let be = Ui(ke);
14990
14990
  if (!$i(e, be))
14991
14991
  continue;
14992
- let _e = { family: ee, weightSpec: A, styleSpec: ne, stretchSpec: fe, unicodeRange: ke, srcRaw: ze, srcUrls: me, href: F.href };
14992
+ let _e = { family: ee, weightSpec: A, styleSpec: ne, stretchSpec: fe, unicodeRange: ke, srcRaw: ze, srcUrls: me, href: G.href };
14993
14993
  if (a && c(_e, be))
14994
14994
  continue;
14995
- let Re = /url\(/i.test(ze) ? await Ji(Y, F.href, o) : Y;
14995
+ let Re = /url\(/i.test(ze) ? await Ji(Y, G.href, o) : Y;
14996
14996
  oe += Re;
14997
14997
  }
14998
14998
  oe.trim() && (u += oe);
14999
14999
  } catch {
15000
- console.warn("[snapDOM] Failed to process stylesheet:", F.href);
15000
+ console.warn("[snapDOM] Failed to process stylesheet:", G.href);
15001
15001
  }
15002
15002
  let g = { requiredIndex: r, usedCodepoints: e, faceMatchesRequired: l, simpleExcluder: a ? zi(a) : null, useProxy: o, visitedSheets: /* @__PURE__ */ new Set(), depth: 0 };
15003
- for (let F of document.styleSheets)
15004
- if (!(F.href && b.some((J) => J.href === F.href)))
15003
+ for (let G of document.styleSheets)
15004
+ if (!(G.href && b.some((J) => J.href === G.href)))
15005
15005
  try {
15006
- let J = F.href || location.href;
15007
- J && g.visitedSheets.add(J), await Ki(F, J, async (K) => {
15006
+ let J = G.href || location.href;
15007
+ J && g.visitedSheets.add(J), await Ki(G, J, async (K) => {
15008
15008
  u += K;
15009
15009
  }, g);
15010
15010
  } catch {
15011
15011
  }
15012
15012
  try {
15013
- for (let F of document.fonts || []) {
15014
- if (!F || !F.family || F.status !== "loaded" || !F._snapdomSrc)
15013
+ for (let G of document.fonts || []) {
15014
+ if (!G || !G.family || G.status !== "loaded" || !G._snapdomSrc)
15015
15015
  continue;
15016
- let J = String(F.family).replace(/^['"]+|['"]+$/g, "");
15016
+ let J = String(G.family).replace(/^['"]+|['"]+$/g, "");
15017
15017
  if (Ke(J) || !r.has(J) || a != null && a.families && a.families.some((oe) => String(oe).toLowerCase() === J.toLowerCase()))
15018
15018
  continue;
15019
- let K = F._snapdomSrc;
15019
+ let K = G._snapdomSrc;
15020
15020
  if (!String(K).startsWith("data:")) {
15021
- if ((z = O.resource) != null && z.has(F._snapdomSrc))
15022
- K = O.resource.get(F._snapdomSrc), (S = O.font) == null || S.add(F._snapdomSrc);
15023
- else if (!((R = O.font) != null && R.has(F._snapdomSrc)))
15021
+ if ((z = O.resource) != null && z.has(G._snapdomSrc))
15022
+ K = O.resource.get(G._snapdomSrc), (S = O.font) == null || S.add(G._snapdomSrc);
15023
+ else if (!((R = O.font) != null && R.has(G._snapdomSrc)))
15024
15024
  try {
15025
- let oe = await Je(F._snapdomSrc, { as: "dataURL", useProxy: o, silent: !0 });
15025
+ let oe = await Je(G._snapdomSrc, { as: "dataURL", useProxy: o, silent: !0 });
15026
15026
  if (oe.ok && typeof oe.data == "string")
15027
- K = oe.data, (N = O.resource) == null || N.set(F._snapdomSrc, K), (V = O.font) == null || V.add(F._snapdomSrc);
15027
+ K = oe.data, (N = O.resource) == null || N.set(G._snapdomSrc, K), (V = O.font) == null || V.add(G._snapdomSrc);
15028
15028
  else
15029
15029
  continue;
15030
15030
  } catch {
15031
- console.warn("[snapDOM] Failed to fetch dynamic font src:", F._snapdomSrc);
15031
+ console.warn("[snapDOM] Failed to fetch dynamic font src:", G._snapdomSrc);
15032
15032
  continue;
15033
15033
  }
15034
15034
  }
15035
- u += `@font-face{font-family:'${J}';src:url(${K});font-style:${F.style || "normal"};font-weight:${F.weight || "normal"};}`;
15035
+ u += `@font-face{font-family:'${J}';src:url(${K});font-style:${G.style || "normal"};font-weight:${G.weight || "normal"};}`;
15036
15036
  }
15037
15037
  } catch {
15038
15038
  }
15039
- for (let F of i) {
15040
- if (!F || typeof F != "object")
15039
+ for (let G of i) {
15040
+ if (!G || typeof G != "object")
15041
15041
  continue;
15042
- let J = String(F.family || "").replace(/^['"]+|['"]+$/g, "");
15042
+ let J = String(G.family || "").replace(/^['"]+|['"]+$/g, "");
15043
15043
  if (!J || Ke(J) || !r.has(J) || a != null && a.families && a.families.some((A) => String(A).toLowerCase() === J.toLowerCase()))
15044
15044
  continue;
15045
- let K = F.weight != null ? String(F.weight) : "normal", oe = F.style != null ? String(F.style) : "normal", Y = F.stretchPct != null ? `${F.stretchPct}%` : "100%", X = String(F.src || ""), ee = X;
15045
+ let K = G.weight != null ? String(G.weight) : "normal", oe = G.style != null ? String(G.style) : "normal", Y = G.stretchPct != null ? `${G.stretchPct}%` : "100%", X = String(G.src || ""), ee = X;
15046
15046
  if (!ee.startsWith("data:")) {
15047
- if ((E = O.resource) != null && E.has(X))
15047
+ if ((B = O.resource) != null && B.has(X))
15048
15048
  ee = O.resource.get(X), (H = O.font) == null || H.add(X);
15049
15049
  else if (!((Q = O.font) != null && Q.has(X)))
15050
15050
  try {
@@ -15248,7 +15248,7 @@ function Cg(t, e, a = !1) {
15248
15248
  return !t || t.plugins && !a || (t.plugins = zg(e)), t;
15249
15249
  }
15250
15250
  var Ci = /* @__PURE__ */ new WeakMap(), no = /* @__PURE__ */ new Map(), so = 0;
15251
- function Ea() {
15251
+ function Ba() {
15252
15252
  so++;
15253
15253
  }
15254
15254
  var Mi = !1;
@@ -15257,16 +15257,16 @@ function Mg(t = document.documentElement) {
15257
15257
  if (!Mi) {
15258
15258
  Mi = !0;
15259
15259
  try {
15260
- new MutationObserver(() => Ea()).observe(t, { subtree: !0, childList: !0, characterData: !0, attributes: !0 });
15260
+ new MutationObserver(() => Ba()).observe(t, { subtree: !0, childList: !0, characterData: !0, attributes: !0 });
15261
15261
  } catch {
15262
15262
  }
15263
15263
  try {
15264
- new MutationObserver(() => Ea()).observe(document.head, { subtree: !0, childList: !0, characterData: !0, attributes: !0 });
15264
+ new MutationObserver(() => Ba()).observe(document.head, { subtree: !0, childList: !0, characterData: !0, attributes: !0 });
15265
15265
  } catch {
15266
15266
  }
15267
15267
  try {
15268
15268
  let i = document.fonts;
15269
- i && ((e = i.addEventListener) == null || e.call(i, "loadingdone", Ea), (a = i.ready) == null || a.then(() => Ea()).catch(() => {
15269
+ i && ((e = i.addEventListener) == null || e.call(i, "loadingdone", Ba), (a = i.ready) == null || a.then(() => Ba()).catch(() => {
15270
15270
  }));
15271
15271
  } catch {
15272
15272
  }
@@ -15308,7 +15308,7 @@ function Tg(t, e = null, a = {}) {
15308
15308
  if (i && i.epoch === so)
15309
15309
  return i.snapshot;
15310
15310
  let o = e || getComputedStyle(t), r = Pg(o, a);
15311
- return Gg(t, o, r), Ci.set(t, { epoch: so, snapshot: r }), r;
15311
+ return Fg(t, o, r), Ci.set(t, { epoch: so, snapshot: r }), r;
15312
15312
  }
15313
15313
  function Rg(t, e) {
15314
15314
  return t && t.session && t.persist ? t : t && (t.styleMap || t.styleCache || t.nodeMap) ? { session: t, persist: { snapshotKeyCache: no, defaultStyle: O.defaultStyle, baseStyle: O.baseStyle, image: O.image, resource: O.resource, background: O.background, font: O.font }, options: e || {} } : { session: O.session, persist: { snapshotKeyCache: no, defaultStyle: O.defaultStyle, baseStyle: O.baseStyle, image: O.image, resource: O.resource, background: O.background, font: O.font }, options: t || e || {} };
@@ -15318,7 +15318,7 @@ async function st(t, e, a, i) {
15318
15318
  if (t.tagName === "STYLE")
15319
15319
  return;
15320
15320
  let o = Rg(a, i), r = o.options && o.options.cache || "auto";
15321
- if (r !== "disabled" && Mg(document.documentElement), r === "disabled" && !o.session.__bumpedForDisabled && (Ea(), no.clear(), o.session.__bumpedForDisabled = !0), yo.has((u = t.tagName) == null ? void 0 : u.toLowerCase())) {
15321
+ if (r !== "disabled" && Mg(document.documentElement), r === "disabled" && !o.session.__bumpedForDisabled && (Ba(), no.clear(), o.session.__bumpedForDisabled = !0), yo.has((u = t.tagName) == null ? void 0 : u.toLowerCase())) {
15322
15322
  let h = (b = t.getAttribute) == null ? void 0 : b.call(t, "style");
15323
15323
  h && e.setAttribute("style", h);
15324
15324
  }
@@ -15344,7 +15344,7 @@ function Ag(t) {
15344
15344
  let a = getComputedStyle(e).display || "";
15345
15345
  return a.includes("flex") || a.includes("grid");
15346
15346
  }
15347
- function Fg(t, e) {
15347
+ function Gg(t, e) {
15348
15348
  if (t.textContent && /\S/.test(t.textContent))
15349
15349
  return !0;
15350
15350
  let a = t.firstElementChild, i = t.lastElementChild;
@@ -15356,7 +15356,7 @@ function Fg(t, e) {
15356
15356
  let r = parseFloat(e.paddingTop) || 0, l = parseFloat(e.paddingBottom) || 0;
15357
15357
  return o > r + l;
15358
15358
  }
15359
- function Gg(t, e, a) {
15359
+ function Fg(t, e, a) {
15360
15360
  if (t instanceof HTMLElement && t.style && t.style.height)
15361
15361
  return;
15362
15362
  let i = t.tagName && t.tagName.toLowerCase();
@@ -15372,7 +15372,7 @@ function Gg(t, e, a) {
15372
15372
  if (l !== "visible" || c !== "visible")
15373
15373
  return;
15374
15374
  let s = e.clip;
15375
- s && s !== "auto" && s !== "rect(auto, auto, auto, auto)" || e.visibility === "hidden" || e.opacity === "0" || Fg(t, e) && (delete a.height, delete a["block-size"]);
15375
+ s && s !== "auto" && s !== "rect(auto, auto, auto, auto)" || e.visibility === "hidden" || e.opacity === "0" || Gg(t, e) && (delete a.height, delete a["block-size"]);
15376
15376
  }
15377
15377
  var er = ["fill", "stroke", "color", "background-color", "stop-color"], Si = /* @__PURE__ */ new Map();
15378
15378
  function Ng(t, e) {
@@ -15469,7 +15469,7 @@ function ao(t, e, a) {
15469
15469
  function Vg(t) {
15470
15470
  return t = t.trim(), !t || /:not\(\s*\[data-sd-slotted\]\s*\)\s*$/.test(t) ? t : `${t}:not([data-sd-slotted])`;
15471
15471
  }
15472
- function Eg(t, e, a = !0) {
15472
+ function Bg(t, e, a = !0) {
15473
15473
  return t.split(",").map((i) => i.trim()).filter(Boolean).map((i) => {
15474
15474
  if (i.startsWith(":where(") || i.startsWith("@"))
15475
15475
  return i;
@@ -15477,9 +15477,9 @@ function Eg(t, e, a = !0) {
15477
15477
  return `:where(${e} ${o})`;
15478
15478
  }).join(", ");
15479
15479
  }
15480
- function Bg(t, e) {
15480
+ function Eg(t, e) {
15481
15481
  return t ? (t = t.replace(/:host\(([^)]+)\)/g, (a, i) => `:where(${e}:is(${i.trim()}))`), t = t.replace(/:host\b/g, `:where(${e})`), t = t.replace(/:host-context\(([^)]+)\)/g, (a, i) => `:where(:where(${i.trim()}) ${e})`), t = t.replace(/::slotted\(([^)]+)\)/g, (a, i) => `:where(${e} ${i.trim()})`), t = t.replace(/(^|})(\s*)([^@}{]+){/g, (a, i, o, r) => {
15482
- let l = Eg(r, e, !0);
15482
+ let l = Bg(r, e, !0);
15483
15483
  return `${i}${o}${l}{`;
15484
15484
  }), t) : "";
15485
15485
  }
@@ -15607,7 +15607,7 @@ async function Qg(t, e, a) {
15607
15607
  return e.nodeMap.set(p, t), st(t, p, e, a), p.style.overflow = "hidden", p.style.display = "block", p.style.width || (p.style.width = `${Math.round(l.width)}px`), p.style.height || (p.style.height = `${Math.round(l.height)}px`), p.appendChild(m), p;
15608
15608
  }
15609
15609
  var Wa = /* @__PURE__ */ new Map();
15610
- async function Ba(t) {
15610
+ async function Ea(t) {
15611
15611
  var a;
15612
15612
  if ((a = O.resource) != null && a.has(t))
15613
15613
  return O.resource.get(t);
@@ -15638,7 +15638,7 @@ async function Ti(t) {
15638
15638
  let a = t;
15639
15639
  for (let i of e)
15640
15640
  try {
15641
- let o = await Ba(i);
15641
+ let o = await Ea(i);
15642
15642
  a = a.split(i).join(o);
15643
15643
  } catch {
15644
15644
  }
@@ -15665,7 +15665,7 @@ async function o0(t) {
15665
15665
  try {
15666
15666
  let d = s.getAttribute("src") || s.currentSrc || "";
15667
15667
  if (Ha(d)) {
15668
- let p = await Ba(d);
15668
+ let p = await Ea(d);
15669
15669
  s.setAttribute("src", p);
15670
15670
  }
15671
15671
  let m = s.getAttribute("srcset");
@@ -15674,7 +15674,7 @@ async function o0(t) {
15674
15674
  for (let b of p)
15675
15675
  if (Ha(b.url))
15676
15676
  try {
15677
- b.url = await Ba(b.url), u = !0;
15677
+ b.url = await Ea(b.url), u = !0;
15678
15678
  } catch {
15679
15679
  }
15680
15680
  u && s.setAttribute("srcset", a0(p));
@@ -15686,7 +15686,7 @@ async function o0(t) {
15686
15686
  try {
15687
15687
  let d = "http://www.w3.org/1999/xlink", m = s.getAttribute("href") || ((l = s.getAttributeNS) == null ? void 0 : l.call(s, d, "href"));
15688
15688
  if (Ha(m)) {
15689
- let p = await Ba(m);
15689
+ let p = await Ea(m);
15690
15690
  s.setAttribute("href", p), (c = s.removeAttributeNS) == null || c.call(s, d, "href");
15691
15691
  }
15692
15692
  } catch {
@@ -15714,7 +15714,7 @@ async function o0(t) {
15714
15714
  for (let m of d)
15715
15715
  try {
15716
15716
  let p = m.getAttribute(s);
15717
- Ha(p) && m.setAttribute(s, await Ba(p));
15717
+ Ha(p) && m.setAttribute(s, await Ea(p));
15718
15718
  } catch {
15719
15719
  }
15720
15720
  }
@@ -15873,8 +15873,8 @@ async function $a(t, e, a) {
15873
15873
  } catch {
15874
15874
  V = ((b = N.assignedNodes) == null ? void 0 : b.call(N)) || [];
15875
15875
  }
15876
- for (let E of V)
15877
- i.add(E);
15876
+ for (let B of V)
15877
+ i.add(B);
15878
15878
  }
15879
15879
  } catch {
15880
15880
  }
@@ -15883,7 +15883,7 @@ async function $a(t, e, a) {
15883
15883
  l.setAttribute("data-sd", f);
15884
15884
  } catch {
15885
15885
  }
15886
- let _ = Og(t.shadowRoot), v = Bg(_, C), L = Hg(_), T = Ug(t, L, C);
15886
+ let _ = Og(t.shadowRoot), v = Eg(_, C), L = Hg(_), T = Ug(t, L, C);
15887
15887
  jg(l, T + v, f);
15888
15888
  let z = document.createDocumentFragment(), S = await ao(Array.from(t.shadowRoot.childNodes), h, a.fast);
15889
15889
  z.append(...S.filter((R) => !!R)), l.appendChild(z);
@@ -16069,7 +16069,7 @@ function n0(t, e, a) {
16069
16069
  var lt = /* @__PURE__ */ new WeakMap(), Ai = 300;
16070
16070
  function s0(t, e) {
16071
16071
  let a = tr(t);
16072
- return e ? (e.__pseudoPreflightFp !== a && (e.__pseudoPreflight = Gi(t), e.__pseudoPreflightFp = a), !!e.__pseudoPreflight) : Gi(t);
16072
+ return e ? (e.__pseudoPreflightFp !== a && (e.__pseudoPreflight = Fi(t), e.__pseudoPreflightFp = a), !!e.__pseudoPreflight) : Fi(t);
16073
16073
  }
16074
16074
  function co(t) {
16075
16075
  try {
@@ -16097,7 +16097,7 @@ function tr(t) {
16097
16097
  let o = t.adoptedStyleSheets;
16098
16098
  return a += `ass:${Array.isArray(o) ? o.length : 0}|tr:${i}`, a;
16099
16099
  }
16100
- function Fi(t, e, a) {
16100
+ function Gi(t, e, a) {
16101
16101
  let i = co(t);
16102
16102
  if (!i)
16103
16103
  return !1;
@@ -16122,7 +16122,7 @@ function Fi(t, e, a) {
16122
16122
  }
16123
16123
  return !1;
16124
16124
  }
16125
- function Gi(t = document) {
16125
+ function Fi(t = document) {
16126
16126
  let e = tr(t), a = lt.get(t);
16127
16127
  if (a && a.fingerprint === e)
16128
16128
  return a.result;
@@ -16138,7 +16138,7 @@ function Gi(t = document) {
16138
16138
  let l = { budget: Ai };
16139
16139
  try {
16140
16140
  for (let c of r)
16141
- if (Fi(c, i, l))
16141
+ if (Gi(c, i, l))
16142
16142
  return lt.set(t, { fingerprint: e, result: !0 }), !0;
16143
16143
  } catch {
16144
16144
  }
@@ -16147,7 +16147,7 @@ function Gi(t = document) {
16147
16147
  let l = t.querySelectorAll('style,link[rel~="stylesheet"]'), c = { budget: Ai };
16148
16148
  for (let s = 0; s < l.length && c.budget > 0; s++) {
16149
16149
  let d = l[s], m = null;
16150
- if (d.tagName, m = d.sheet || null, m && Fi(m, i, c))
16150
+ if (d.tagName, m = d.sheet || null, m && Gi(m, i, c))
16151
16151
  return lt.set(t, { fingerprint: e, result: !0 }), !0;
16152
16152
  }
16153
16153
  }
@@ -16271,7 +16271,7 @@ async function ar(t, e, a, i) {
16271
16271
  e.replaceChild(me, X), e.insertBefore(fe, me);
16272
16272
  continue;
16273
16273
  }
16274
- let g = b.content ?? "", h = g === "" || g === "none" || g === "normal", { text: f, incs: C } = d0(t, u, l), _ = b.backgroundImage, v = b.backgroundColor, L = b.fontFamily, T = parseInt(b.fontSize) || 32, z = parseInt(b.fontWeight) || !1, S = b.color || "#000", R = b.borderStyle, N = parseFloat(b.borderWidth), V = b.transform, E = Ke(L), H = !h && f !== "", Q = _ && _ !== "none", ae = v && v !== "transparent" && v !== "rgba(0, 0, 0, 0)", re = R && R !== "none" && N > 0, pe = V && V !== "none";
16274
+ let g = b.content ?? "", h = g === "" || g === "none" || g === "normal", { text: f, incs: C } = d0(t, u, l), _ = b.backgroundImage, v = b.backgroundColor, L = b.fontFamily, T = parseInt(b.fontSize) || 32, z = parseInt(b.fontWeight) || !1, S = b.color || "#000", R = b.borderStyle, N = parseFloat(b.borderWidth), V = b.transform, B = Ke(L), H = !h && f !== "", Q = _ && _ !== "none", ae = v && v !== "transparent" && v !== "rgba(0, 0, 0, 0)", re = R && R !== "none" && N > 0, pe = V && V !== "none";
16275
16275
  if (!(H || Q || ae || re || pe)) {
16276
16276
  if (C && C.length && t.parentElement) {
16277
16277
  let Y = ct.get(t.parentElement) || /* @__PURE__ */ new Map();
@@ -16285,37 +16285,37 @@ async function ar(t, e, a, i) {
16285
16285
  }
16286
16286
  continue;
16287
16287
  }
16288
- let F = document.createElement("span");
16289
- F.dataset.snapdomPseudo = u, F.style.pointerEvents = "none";
16288
+ let G = document.createElement("span");
16289
+ G.dataset.snapdomPseudo = u, G.style.pointerEvents = "none";
16290
16290
  let J = ki(b), K = io(J, "span");
16291
- if (a.styleMap.set(F, K), E && f && f.length === 1) {
16291
+ if (a.styleMap.set(G, K), B && f && f.length === 1) {
16292
16292
  let { dataUrl: Y, width: X, height: ee } = await rg(f, L, z, T, S), A = document.createElement("img");
16293
- A.src = Y, A.style = `height:${T}px;width:${X / ee * T}px;object-fit:contain;`, F.appendChild(A), e.dataset.snapdomHasIcon = "true";
16293
+ A.src = Y, A.style = `height:${T}px;width:${X / ee * T}px;object-fit:contain;`, G.appendChild(A), e.dataset.snapdomHasIcon = "true";
16294
16294
  } else if (f && f.startsWith("url(")) {
16295
16295
  let Y = fo(f);
16296
16296
  if (Y != null && Y.trim())
16297
16297
  try {
16298
16298
  let X = document.createElement("img"), ee = await Je(Ka(Y), { as: "dataURL", useProxy: i.useProxy });
16299
- X.src = ee.data, X.style = `width:${T}px;height:auto;object-fit:contain;`, F.appendChild(X);
16299
+ X.src = ee.data, X.style = `width:${T}px;height:auto;object-fit:contain;`, G.appendChild(X);
16300
16300
  } catch (X) {
16301
16301
  console.error(`[snapdom] Error in pseudo ${u} for`, t, X);
16302
16302
  }
16303
16303
  } else
16304
- !E && H && (F.textContent = f);
16305
- F.style.backgroundImage = "none", "maskImage" in F.style && (F.style.maskImage = "none"), "webkitMaskImage" in F.style && (F.style.webkitMaskImage = "none");
16304
+ !B && H && (G.textContent = f);
16305
+ G.style.backgroundImage = "none", "maskImage" in G.style && (G.style.maskImage = "none"), "webkitMaskImage" in G.style && (G.style.webkitMaskImage = "none");
16306
16306
  try {
16307
- F.style.backgroundRepeat = b.backgroundRepeat, F.style.backgroundSize = b.backgroundSize, b.backgroundPositionX && b.backgroundPositionY ? (F.style.backgroundPositionX = b.backgroundPositionX, F.style.backgroundPositionY = b.backgroundPositionY) : F.style.backgroundPosition = b.backgroundPosition, F.style.backgroundOrigin = b.backgroundOrigin, F.style.backgroundClip = b.backgroundClip, F.style.backgroundAttachment = b.backgroundAttachment, F.style.backgroundBlendMode = b.backgroundBlendMode;
16307
+ G.style.backgroundRepeat = b.backgroundRepeat, G.style.backgroundSize = b.backgroundSize, b.backgroundPositionX && b.backgroundPositionY ? (G.style.backgroundPositionX = b.backgroundPositionX, G.style.backgroundPositionY = b.backgroundPositionY) : G.style.backgroundPosition = b.backgroundPosition, G.style.backgroundOrigin = b.backgroundOrigin, G.style.backgroundClip = b.backgroundClip, G.style.backgroundAttachment = b.backgroundAttachment, G.style.backgroundBlendMode = b.backgroundBlendMode;
16308
16308
  } catch {
16309
16309
  }
16310
16310
  if (Q)
16311
16311
  try {
16312
16312
  let Y = Hi(_), X = await Promise.all(Y.map(Oi));
16313
- F.style.backgroundImage = X.join(", ");
16313
+ G.style.backgroundImage = X.join(", ");
16314
16314
  } catch (Y) {
16315
16315
  console.warn(`[snapdom] Failed to inline background-image for ${u}`, Y);
16316
16316
  }
16317
- ae && (F.style.backgroundColor = v);
16318
- let oe = F.childNodes.length > 0 || ((p = F.textContent) == null ? void 0 : p.trim()) !== "" || Q || ae || re || pe;
16317
+ ae && (G.style.backgroundColor = v);
16318
+ let oe = G.childNodes.length > 0 || ((p = G.textContent) == null ? void 0 : p.trim()) !== "" || Q || ae || re || pe;
16319
16319
  if (C && C.length && t.parentElement) {
16320
16320
  let Y = ct.get(t.parentElement) || /* @__PURE__ */ new Map(), X = mo(t, l), ee = ho(t, getComputedStyle(t, u), X);
16321
16321
  for (let { name: A } of C) {
@@ -16328,7 +16328,7 @@ async function ar(t, e, a, i) {
16328
16328
  }
16329
16329
  if (!oe)
16330
16330
  continue;
16331
- u === "::before" ? e.insertBefore(F, e.firstChild) : e.appendChild(F);
16331
+ u === "::before" ? e.insertBefore(G, e.firstChild) : e.appendChild(G);
16332
16332
  } catch (b) {
16333
16333
  console.warn(`[snapdom] Failed to capture ${u} for`, t, b);
16334
16334
  }
@@ -16358,8 +16358,8 @@ function h0(t, e) {
16358
16358
  continue;
16359
16359
  if (V.name === "href")
16360
16360
  return V.value;
16361
- let E = V.name.indexOf(":");
16362
- if (E !== -1 && V.name.slice(E + 1) === "href")
16361
+ let B = V.name.indexOf(":");
16362
+ if (B !== -1 && V.name.slice(B + 1) === "href")
16363
16363
  return V.value;
16364
16364
  }
16365
16365
  return null;
@@ -16380,8 +16380,8 @@ function h0(t, e) {
16380
16380
  if (!V || !V.startsWith("#"))
16381
16381
  continue;
16382
16382
  u = !0;
16383
- let E = V.slice(1).trim();
16384
- E && !m.has(E) && p.add(E);
16383
+ let B = V.slice(1).trim();
16384
+ B && !m.has(B) && p.add(B);
16385
16385
  }
16386
16386
  let R = z.querySelectorAll('*[style*="url("],*[fill^="url("], *[stroke^="url("],*[filter^="url("],*[clip-path^="url("],*[mask^="url("],*[marker^="url("],*[marker-start^="url("],*[marker-mid^="url("],*[marker-end^="url("]');
16387
16387
  for (let N of R) {
@@ -16422,9 +16422,9 @@ function h0(t, e) {
16422
16422
  R.id || R.setAttribute("id", z), f.appendChild(R), v.add(z), m.add(z);
16423
16423
  let N = [R, ...R.querySelectorAll("*")];
16424
16424
  for (let V of N) {
16425
- let E = d(V);
16426
- if (E && E.startsWith("#")) {
16427
- let Q = E.slice(1).trim();
16425
+ let B = d(V);
16426
+ if (B && B.startsWith("#")) {
16427
+ let Q = B.slice(1).trim();
16428
16428
  Q && !m.has(Q) && !v.has(Q) && _.add(Q);
16429
16429
  }
16430
16430
  let H = ((L = V.getAttribute) == null ? void 0 : L.call(V, "style")) || "";
@@ -16554,7 +16554,7 @@ async function b0(t, e = {}) {
16554
16554
  if (p0(t, c), t === a.nodeMap.get(i)) {
16555
16555
  let m = a.styleCache.get(t) || window.getComputedStyle(t);
16556
16556
  a.styleCache.set(t, m);
16557
- let p = Fu(m.transform);
16557
+ let p = Gu(m.transform);
16558
16558
  i.style.margin = "0", i.style.top = "auto", i.style.left = "auto", i.style.right = "auto", i.style.bottom = "auto", i.style.animation = "none", i.style.transition = "none", i.style.willChange = "auto", i.style.float = "none", i.style.clear = "none", i.style.transform = p || "";
16559
16559
  }
16560
16560
  for (let [m, p] of a.nodeMap.entries())
@@ -16742,7 +16742,7 @@ function A0(t) {
16742
16742
  let e = getComputedStyle(t);
16743
16743
  return !(e.display === "none" || e.position === "absolute" || e.position === "fixed" || e.position === "sticky" || (e.cssFloat || e.float || "none") !== "none" || e.transform && e.transform !== "none");
16744
16744
  }
16745
- function F0(t, e) {
16745
+ function G0(t, e) {
16746
16746
  if (!(t instanceof Element))
16747
16747
  return !1;
16748
16748
  if (t.getAttribute("data-capture") === "exclude" && (e == null ? void 0 : e.excludeMode) === "remove")
@@ -16756,10 +16756,10 @@ function F0(t, e) {
16756
16756
  }
16757
16757
  return !1;
16758
16758
  }
16759
- function G0(t, e) {
16759
+ function F0(t, e) {
16760
16760
  let a = getComputedStyle(t), i = t.getBoundingClientRect(), o = 1 / 0, r = -1 / 0, l = !1, c = Array.from(t.children);
16761
16761
  for (let b of c) {
16762
- if (F0(b, e) || !A0(b))
16762
+ if (G0(b, e) || !A0(b))
16763
16763
  continue;
16764
16764
  let g = b.getBoundingClientRect(), h = g.top - i.top, f = g.bottom - i.top;
16765
16765
  f <= h || (h < o && (o = h), f > r && (r = f), l = !0);
@@ -16793,7 +16793,7 @@ function V0(t) {
16793
16793
  let e = Math.ceil(parseFloat(t.outlineWidth || "0") || 0);
16794
16794
  return { top: e, right: e, bottom: e, left: e };
16795
16795
  }
16796
- function E0(t) {
16796
+ function B0(t) {
16797
16797
  var s;
16798
16798
  let e = `${t.filter || ""} ${t.webkitFilter || ""}`.trim();
16799
16799
  if (!e || e === "none")
@@ -16806,7 +16806,7 @@ function E0(t) {
16806
16806
  }
16807
16807
  return { bleed: { top: ce(i), right: ce(o), bottom: ce(r), left: ce(l) }, has: c };
16808
16808
  }
16809
- function B0(t, e) {
16809
+ function E0(t, e) {
16810
16810
  if (!t || !e || !e.style)
16811
16811
  return null;
16812
16812
  let a = getComputedStyle(t);
@@ -16946,7 +16946,7 @@ async function ir(t, e) {
16946
16946
  await Qe("beforeSnap", r), await Qe("beforeClone", r);
16947
16947
  let g = v0(r.element);
16948
16948
  try {
16949
- ({ clone: l, classCSS: c, styleCache: s } = await b0(r.element, r.options)), !i && l && (b = B0(r.element, l)), !o && l && C0(r.element, l);
16949
+ ({ clone: l, classCSS: c, styleCache: s } = await b0(r.element, r.options)), !i && l && (b = E0(r.element, l)), !o && l && C0(r.element, l);
16950
16950
  } finally {
16951
16951
  g();
16952
16952
  }
@@ -16988,34 +16988,34 @@ async function ir(t, e) {
16988
16988
  var Ye;
16989
16989
  let L = getComputedStyle(r.element), T = r.element.getBoundingClientRect(), z = Math.max(1, ce(r.element.offsetWidth || parseFloat(L.width) || T.width || 1)), S = Math.max(1, ce(r.element.offsetHeight || parseFloat(L.height) || T.height || 1));
16990
16990
  if (((Ye = r.options) == null ? void 0 : Ye.excludeMode) === "remove") {
16991
- let U = G0(r.element, r.options);
16991
+ let U = F0(r.element, r.options);
16992
16992
  Number.isFinite(U) && U > 0 && (S = Math.max(1, Math.min(S, ce(U + 1))));
16993
16993
  }
16994
- let R = (U, xe = NaN) => {
16995
- let Fe = typeof U == "string" ? parseFloat(U) : U;
16996
- return Number.isFinite(Fe) ? Fe : xe;
16997
- }, N = R(r.options.width), V = R(r.options.height), E = z, H = S, Q = Number.isFinite(N), ae = Number.isFinite(V), re = S > 0 ? z / S : 1;
16998
- Q && ae ? (E = Math.max(1, ce(N)), H = Math.max(1, ce(V))) : Q ? (E = Math.max(1, ce(N)), H = Math.max(1, ce(E / (re || 1)))) : ae ? (H = Math.max(1, ce(V)), E = Math.max(1, ce(H * (re || 1)))) : (E = z, H = S);
16999
- let pe = 0, F = 0, J = z, K = S;
16994
+ let R = (U, ve = NaN) => {
16995
+ let Ge = typeof U == "string" ? parseFloat(U) : U;
16996
+ return Number.isFinite(Ge) ? Ge : ve;
16997
+ }, N = R(r.options.width), V = R(r.options.height), B = z, H = S, Q = Number.isFinite(N), ae = Number.isFinite(V), re = S > 0 ? z / S : 1;
16998
+ Q && ae ? (B = Math.max(1, ce(N)), H = Math.max(1, ce(V))) : Q ? (B = Math.max(1, ce(N)), H = Math.max(1, ce(B / (re || 1)))) : ae ? (H = Math.max(1, ce(V)), B = Math.max(1, ce(H * (re || 1)))) : (B = z, H = S);
16999
+ let pe = 0, G = 0, J = z, K = S;
17000
17000
  if (!i && b && Number.isFinite(b.a)) {
17001
- let U = { a: b.a, b: b.b || 0, c: b.c || 0, d: b.d || 1, e: 0, f: 0 }, xe = Vi(z, S, U, 0, 0);
17002
- pe = ce(xe.minX), F = ce(xe.minY), J = ce(xe.maxX), K = ce(xe.maxY);
17001
+ let U = { a: b.a, b: b.b || 0, c: b.c || 0, d: b.d || 1, e: 0, f: 0 }, ve = Vi(z, S, U, 0, 0);
17002
+ pe = ce(ve.minX), G = ce(ve.minY), J = ce(ve.maxX), K = ce(ve.maxY);
17003
17003
  } else if (i && Y0(r.element)) {
17004
- let U = L.transform && L.transform !== "none" ? L.transform : "", xe = O0(r.element), Fe = X0({ baseTransform: U, rotate: xe.rotate || "0deg", scale: xe.scale, translate: xe.translate }), { ox: Ze, oy: Oe } = Z0(L, z, S), te = Fe.is2D ? Fe : new DOMMatrix(Fe.toString()), Ee = Vi(z, S, te, Ze, Oe);
17005
- pe = ce(Ee.minX), F = ce(Ee.minY), J = ce(Ee.maxX), K = ce(Ee.maxY);
17004
+ let U = L.transform && L.transform !== "none" ? L.transform : "", ve = O0(r.element), Ge = X0({ baseTransform: U, rotate: ve.rotate || "0deg", scale: ve.scale, translate: ve.translate }), { ox: Ze, oy: Oe } = Z0(L, z, S), te = Ge.is2D ? Ge : new DOMMatrix(Ge.toString()), Be = Vi(z, S, te, Ze, Oe);
17005
+ pe = ce(Be.minX), G = ce(Be.minY), J = ce(Be.maxX), K = ce(Be.maxY);
17006
17006
  }
17007
- let oe = N0(L), Y = W0(L), X = V0(L), ee = E0(L), A = o ? { top: ce(oe.top + Y.top + X.top + ee.bleed.top), right: ce(oe.right + Y.right + X.right + ee.bleed.right), bottom: ce(oe.bottom + Y.bottom + X.bottom + ee.bleed.bottom), left: ce(oe.left + Y.left + X.left + ee.bleed.left) } : { top: 0, right: 0, bottom: 0, left: 0 };
17008
- pe = ce(pe - A.left), F = ce(F - A.top), J = ce(J + A.right), K = ce(K + A.bottom);
17009
- let ne = Math.max(1, ce(J - pe)), fe = Math.max(1, ce(K - F)), ke = Q || ae ? ce(E / z) : 1, ze = ae || Q ? ce(H / S) : 1, me = Math.max(1, ce(ne * ke)), be = Math.max(1, ce(fe * ze)), _e = "http://www.w3.org/2000/svg", Re = Va() ? 1 : 0, q = ce(Re + (i ? 0 : 1)), de = document.createElementNS(_e, "foreignObject"), He = ce(pe), Ve = ce(F);
17007
+ let oe = N0(L), Y = W0(L), X = V0(L), ee = B0(L), A = o ? { top: ce(oe.top + Y.top + X.top + ee.bleed.top), right: ce(oe.right + Y.right + X.right + ee.bleed.right), bottom: ce(oe.bottom + Y.bottom + X.bottom + ee.bleed.bottom), left: ce(oe.left + Y.left + X.left + ee.bleed.left) } : { top: 0, right: 0, bottom: 0, left: 0 };
17008
+ pe = ce(pe - A.left), G = ce(G - A.top), J = ce(J + A.right), K = ce(K + A.bottom);
17009
+ let ne = Math.max(1, ce(J - pe)), fe = Math.max(1, ce(K - G)), ke = Q || ae ? ce(B / z) : 1, ze = ae || Q ? ce(H / S) : 1, me = Math.max(1, ce(ne * ke)), be = Math.max(1, ce(fe * ze)), _e = "http://www.w3.org/2000/svg", Re = Va() ? 1 : 0, q = ce(Re + (i ? 0 : 1)), de = document.createElementNS(_e, "foreignObject"), He = ce(pe), Ve = ce(G);
17010
17010
  de.setAttribute("x", String(ce(-(He - q)))), de.setAttribute("y", String(ce(-(Ve - q)))), de.setAttribute("width", String(ce(z + q * 2))), de.setAttribute("height", String(ce(S + q * 2))), de.style.overflow = "visible";
17011
17011
  let Me = document.createElement("style");
17012
17012
  Me.textContent = r.baseCSS + r.fontsCSS + "svg{overflow:visible;} foreignObject{overflow:visible;}" + r.classCSS, de.appendChild(Me);
17013
17013
  let Ae = document.createElement("div");
17014
17014
  Ae.setAttribute("xmlns", "http://www.w3.org/1999/xhtml"), Ae.style.width = `${ce(z)}px`, Ae.style.height = `${ce(S)}px`, Ae.style.overflow = "visible", r.clone.setAttribute("xmlns", "http://www.w3.org/1999/xhtml"), Ae.appendChild(r.clone), de.appendChild(Ae);
17015
- let le = new XMLSerializer().serializeToString(de), Pe = ce(ne + q * 2), ue = ce(fe + q * 2), we = Q || ae;
17016
- e.meta = { w0: z, h0: S, vbW: Pe, vbH: ue, targetW: E, targetH: H };
17017
- let Be = Va() && we ? Pe : ce(me + q * 2), Ue = Va() && we ? ue : ce(be + q * 2);
17018
- u = `<svg xmlns="${_e}" width="${Be}" height="${Ue}" viewBox="0 0 ${Pe} ${ue}">` + le + "</svg>", p = `data:image/svg+xml;charset=utf-8,${encodeURIComponent(u)}`, r = { svgString: u, dataURL: p, ...r }, v();
17015
+ let le = new XMLSerializer().serializeToString(de), Pe = ce(ne + q * 2), ue = ce(fe + q * 2), xe = Q || ae;
17016
+ e.meta = { w0: z, h0: S, vbW: Pe, vbH: ue, targetW: B, targetH: H };
17017
+ let Ee = Va() && xe ? Pe : ce(me + q * 2), Ue = Va() && xe ? ue : ce(be + q * 2);
17018
+ u = `<svg xmlns="${_e}" width="${Ee}" height="${Ue}" viewBox="0 0 ${Pe} ${ue}">` + le + "</svg>", p = `data:image/svg+xml;charset=utf-8,${encodeURIComponent(u)}`, r = { svgString: u, dataURL: p, ...r }, v();
17019
17019
  }, { fast: a });
17020
17020
  }), await Qe("afterRender", r);
17021
17021
  let C = document.getElementById("snapdom-sandbox");
@@ -17058,52 +17058,52 @@ Se.capture = async (t, e, a) => {
17058
17058
  if (a !== rr)
17059
17059
  throw new Error("[snapdom.capture] is internal. Use snapdom(...) instead.");
17060
17060
  let i = await ir(t, e), o = { img: async (g, h) => {
17061
- let { toImg: f } = await import("./toImg-a748e996.js");
17061
+ let { toImg: f } = await import("./toImg-43a4105a.js");
17062
17062
  return f(i, { ...g, ...h || {} });
17063
17063
  }, svg: async (g, h) => {
17064
- let { toSvg: f } = await import("./toImg-a748e996.js");
17064
+ let { toSvg: f } = await import("./toImg-43a4105a.js");
17065
17065
  return f(i, { ...g, ...h || {} });
17066
17066
  }, canvas: async (g, h) => {
17067
- let { toCanvas: f } = await import("./toCanvas-82e9e60b.js");
17067
+ let { toCanvas: f } = await import("./toCanvas-d9544886.js");
17068
17068
  return f(i, { ...g, ...h || {} });
17069
17069
  }, blob: async (g, h) => {
17070
- let { toBlob: f } = await import("./toBlob-2542bd1f.js");
17070
+ let { toBlob: f } = await import("./toBlob-80c1db3b.js");
17071
17071
  return f(i, { ...g, ...h || {} });
17072
17072
  }, png: async (g, h) => {
17073
- let { rasterize: f } = await import("./rasterize-JS5G2XHH-eae9f7a1.js");
17073
+ let { rasterize: f } = await import("./rasterize-JS5G2XHH-d001d2fd.js");
17074
17074
  return f(i, { ...g, ...h || {}, format: "png" });
17075
17075
  }, jpeg: async (g, h) => {
17076
- let { rasterize: f } = await import("./rasterize-JS5G2XHH-eae9f7a1.js");
17076
+ let { rasterize: f } = await import("./rasterize-JS5G2XHH-d001d2fd.js");
17077
17077
  return f(i, { ...g, ...h || {}, format: "jpeg" });
17078
17078
  }, webp: async (g, h) => {
17079
- let { rasterize: f } = await import("./rasterize-JS5G2XHH-eae9f7a1.js");
17079
+ let { rasterize: f } = await import("./rasterize-JS5G2XHH-d001d2fd.js");
17080
17080
  return f(i, { ...g, ...h || {}, format: "webp" });
17081
17081
  }, download: async (g, h) => {
17082
- let { download: f } = await import("./download-8ffc1fa7.js");
17082
+ let { download: f } = await import("./download-1f2626c7.js");
17083
17083
  return f(i, { ...g, ...h || {} });
17084
17084
  } }, r = { ...e, export: { url: i }, exports: { svg: async (g) => {
17085
- let { toSvg: h } = await import("./toImg-a748e996.js");
17085
+ let { toSvg: h } = await import("./toImg-43a4105a.js");
17086
17086
  return h(i, { ...e, ...g || {}, [qe]: !0 });
17087
17087
  }, canvas: async (g) => {
17088
- let { toCanvas: h } = await import("./toCanvas-82e9e60b.js");
17088
+ let { toCanvas: h } = await import("./toCanvas-d9544886.js");
17089
17089
  return h(i, { ...e, ...g || {}, [qe]: !0 });
17090
17090
  }, png: async (g) => {
17091
- let { rasterize: h } = await import("./rasterize-JS5G2XHH-eae9f7a1.js");
17091
+ let { rasterize: h } = await import("./rasterize-JS5G2XHH-d001d2fd.js");
17092
17092
  return h(i, { ...e, ...g || {}, format: "png", [qe]: !0 });
17093
17093
  }, jpeg: async (g) => {
17094
- let { rasterize: h } = await import("./rasterize-JS5G2XHH-eae9f7a1.js");
17094
+ let { rasterize: h } = await import("./rasterize-JS5G2XHH-d001d2fd.js");
17095
17095
  return h(i, { ...e, ...g || {}, format: "jpeg", [qe]: !0 });
17096
17096
  }, jpg: async (g) => {
17097
- let { rasterize: h } = await import("./rasterize-JS5G2XHH-eae9f7a1.js");
17097
+ let { rasterize: h } = await import("./rasterize-JS5G2XHH-d001d2fd.js");
17098
17098
  return h(i, { ...e, ...g || {}, format: "jpeg", [qe]: !0 });
17099
17099
  }, webp: async (g) => {
17100
- let { rasterize: h } = await import("./rasterize-JS5G2XHH-eae9f7a1.js");
17100
+ let { rasterize: h } = await import("./rasterize-JS5G2XHH-d001d2fd.js");
17101
17101
  return h(i, { ...e, ...g || {}, format: "webp", [qe]: !0 });
17102
17102
  }, blob: async (g) => {
17103
- let { toBlob: h } = await import("./toBlob-2542bd1f.js");
17103
+ let { toBlob: h } = await import("./toBlob-80c1db3b.js");
17104
17104
  return h(i, { ...e, ...g || {}, [qe]: !0 });
17105
17105
  }, img: async (g) => {
17106
- let { toImg: h } = await import("./toImg-a748e996.js");
17106
+ let { toImg: h } = await import("./toImg-43a4105a.js");
17107
17107
  return h(i, { ...e, ...g || {}, [qe]: !0 });
17108
17108
  } } }, l = await Lg("defineExports", r), c = Object.assign({}, ...l.filter((g) => g && typeof g == "object")), s = { ...o, ...c };
17109
17109
  s.jpeg && !s.jpg && (s.jpg = (g, h) => s.jpeg(g, h));
@@ -17188,19 +17188,33 @@ function Q0(t) {
17188
17188
  }
17189
17189
  class ef {
17190
17190
  constructor() {
17191
- ve(this, "frames", []);
17192
- ve(this, "captureRect", null);
17193
- ve(this, "_isRecording", !1);
17194
- ve(this, "_frameDelay", 1e3);
17191
+ we(this, "frames", []);
17192
+ we(this, "captureRect", null);
17193
+ we(this, "_isRecording", !1);
17194
+ we(this, "_frameDelay", 1e3);
17195
17195
  // 默认 1000ms
17196
- ve(this, "canvas", null);
17197
- ve(this, "ctx", null);
17196
+ we(this, "canvas", null);
17197
+ we(this, "ctx", null);
17198
+ we(this, "logoImage", null);
17199
+ we(this, "logoLoaded", !1);
17198
17200
  }
17199
17201
  /**
17200
17202
  * 设置截图区域
17201
17203
  */
17202
17204
  setArea(e) {
17203
- this.captureRect = e, this.canvas = document.createElement("canvas"), this.canvas.width = e.width, this.canvas.height = e.height, this.ctx = this.canvas.getContext("2d");
17205
+ this.captureRect = e;
17206
+ const a = window.devicePixelRatio || 1;
17207
+ this.canvas = document.createElement("canvas"), this.canvas.width = e.width * a, this.canvas.height = e.height * a, this.ctx = this.canvas.getContext("2d"), this.ctx.scale(a, a), this.loadLogo();
17208
+ }
17209
+ /**
17210
+ * 加载 logo 图片
17211
+ */
17212
+ loadLogo() {
17213
+ this.logoImage && this.logoLoaded || (this.logoImage = new Image(), this.logoImage.crossOrigin = "anonymous", this.logoImage.onload = () => {
17214
+ this.logoLoaded = !0, console.log("[GifRecorder] Logo 加载完成");
17215
+ }, this.logoImage.onerror = (e) => {
17216
+ console.error("[GifRecorder] Logo 加载失败:", e);
17217
+ }, this.logoImage.src = "https://ossimg.ormwx.com/asset/logo/logo-normal.svg");
17204
17218
  }
17205
17219
  /**
17206
17220
  * 设置帧间隔
@@ -17281,8 +17295,15 @@ class ef {
17281
17295
  const s = a, d = Math.max(this.captureRect.width / 48, this.captureRect.height / 48), m = 8, p = 12;
17282
17296
  this.ctx.font = `bold ${d}px Arial, sans-serif`, this.ctx.textAlign = "center", this.ctx.textBaseline = "top";
17283
17297
  const b = this.ctx.measureText(s).width, g = d, h = (this.captureRect.width - b) / 2 - m * 2, f = p, C = b + m * 4, _ = g + m * 2;
17284
- this.ctx.fillStyle = "rgba(0, 0, 0, 0.6)", this.ctx.beginPath(), this.ctx.roundRect(h, f, C, _, 16), this.ctx.fill(), this.ctx.fillStyle = "#ffffff", this.ctx.fillText(s, this.captureRect.width / 2, p + m);
17285
- const v = this.ctx.getImageData(0, 0, this.captureRect.width, this.captureRect.height);
17298
+ if (this.ctx.fillStyle = "rgba(0, 0, 0, 0.6)", this.ctx.beginPath(), this.ctx.roundRect(h, f, C, _, 16), this.ctx.fill(), this.ctx.fillStyle = "#ffffff", this.ctx.fillText(s, this.captureRect.width / 2, p + m), this.logoImage && this.logoLoaded) {
17299
+ const T = Math.max(this.captureRect.height / 8, 40), z = this.logoImage.naturalWidth / this.logoImage.naturalHeight;
17300
+ let S = T, R = S * z;
17301
+ const N = this.captureRect.width / 4;
17302
+ R > N && (R = N, S = R / z);
17303
+ const V = this.captureRect.width - R - 12, B = p, H = this.ctx.imageSmoothingEnabled;
17304
+ this.ctx.imageSmoothingEnabled = !1, this.ctx.drawImage(this.logoImage, V, B, R, S), this.ctx.imageSmoothingEnabled = H;
17305
+ }
17306
+ const v = this.ctx.getImageData(0, 0, this.captureRect.width * i, this.captureRect.height * i);
17286
17307
  this.frames.push(v), console.log("[GifRecorder] 帧添加成功, 当前帧数:", this.frames.length);
17287
17308
  }
17288
17309
  /**
@@ -17296,32 +17317,87 @@ class ef {
17296
17317
  */
17297
17318
  async generateGif() {
17298
17319
  return this.frames.length === 0 ? (console.warn("[GifRecorder] 没有可用的帧"), null) : new Promise((e, a) => {
17299
- const i = new hr({
17320
+ const i = window.devicePixelRatio || 1, o = new hr({
17300
17321
  workers: 2,
17301
17322
  quality: 10,
17302
- width: this.captureRect.width,
17303
- height: this.captureRect.height,
17323
+ width: this.captureRect.width * i,
17324
+ height: this.captureRect.height * i,
17304
17325
  // 使用 node_modules 中的 worker 文件
17305
17326
  workerScript: new URL("data:application/javascript;base64,Ly8gZ2lmLndvcmtlci5qcyAwLjIuMCAtIGh0dHBzOi8vZ2l0aHViLmNvbS9qbm9yZGJlcmcvZ2lmLmpzCihmdW5jdGlvbiBlKHQsbixyKXtmdW5jdGlvbiBzKG8sdSl7aWYoIW5bb10pe2lmKCF0W29dKXt2YXIgYT10eXBlb2YgcmVxdWlyZT09ImZ1bmN0aW9uIiYmcmVxdWlyZTtpZighdSYmYSlyZXR1cm4gYShvLCEwKTtpZihpKXJldHVybiBpKG8sITApO3ZhciBmPW5ldyBFcnJvcigiQ2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GVyLmdldEdsb2JhbFBhbGV0dGUoKX1zdHJlYW09ZW5jb2Rlci5zdHJlYW0oKTtmcmFtZS5kYXRhPXN0cmVhbS5wYWdlcztmcmFtZS5jdXJzb3I9c3RyZWFtLmN1cnNvcjtmcmFtZS5wYWdlU2l6ZT1zdHJlYW0uY29uc3RydWN0b3IucGFnZVNpemU7aWYoZnJhbWUuY2FuVHJhbnNmZXIpe3RyYW5zZmVyPWZ1bmN0aW9uKCl7dmFyIGksbGVuLHJlZixyZXN1bHRzO3JlZj1mcmFtZS5kYXRhO3Jlc3VsdHM9W107Zm9yKGk9MCxsZW49cmVmLmxlbmd0aDtpPGxlbjtpKyspe3BhZ2U9cmVmW2ldO3Jlc3VsdHMucHVzaChwYWdlLmJ1ZmZlcil9cmV0dXJuIHJlc3VsdHN9KCk7cmV0dXJuIHNlbGYucG9zdE1lc3NhZ2UoZnJhbWUsdHJhbnNmZXIpfWVsc2V7cmV0dXJuIHNlbGYucG9zdE1lc3NhZ2UoZnJhbWUpfX07c2VsZi5vbm1lc3NhZ2U9ZnVuY3Rpb24oZXZlbnQpe3JldHVybiByZW5kZXJGcmFtZShldmVudC5kYXRhKX19LHsiLi9HSUZFbmNvZGVyLmpzIjoxfV19LHt9LFs0XSk7Ci8vIyBzb3VyY2VNYXBwaW5nVVJMPWdpZi53b3JrZXIuanMubWFwCg==", self.location).href
17306
17327
  });
17307
- for (const o of this.frames)
17308
- i.addFrame(o, { delay: this._frameDelay });
17309
- i.on("finished", (o) => {
17310
- e(o);
17311
- }), i.on("error", (o) => {
17312
- console.error("[GifRecorder] GIF 合成失败:", o), a(o);
17313
- }), i.render();
17328
+ for (const r of this.frames)
17329
+ o.addFrame(r, { delay: this._frameDelay });
17330
+ o.on("finished", (r) => {
17331
+ e(r);
17332
+ }), o.on("error", (r) => {
17333
+ console.error("[GifRecorder] GIF 合成失败:", r), a(r);
17334
+ }), o.render();
17335
+ });
17336
+ }
17337
+ /**
17338
+ * 合成 MP4 视频(使用 MediaRecorder API)
17339
+ */
17340
+ async generateMp4() {
17341
+ return this.frames.length === 0 ? (console.warn("[GifRecorder] 没有可用的帧"), null) : new Promise((e, a) => {
17342
+ try {
17343
+ const i = window.devicePixelRatio || 1, o = document.createElement("canvas");
17344
+ o.width = this.captureRect.width * i, o.height = this.captureRect.height * i;
17345
+ const r = o.getContext("2d");
17346
+ if (!r) {
17347
+ a(new Error("无法创建 canvas context"));
17348
+ return;
17349
+ }
17350
+ const l = o.captureStream(30);
17351
+ let c = "video/webm;codecs=vp9", s = "webm";
17352
+ MediaRecorder.isTypeSupported("video/mp4") ? (c = "video/mp4", s = "mp4") : MediaRecorder.isTypeSupported("video/webm;codecs=h264") && (c = "video/webm;codecs=h264", s = "mp4");
17353
+ const d = new MediaRecorder(l, {
17354
+ mimeType: c,
17355
+ videoBitsPerSecond: 25e5
17356
+ // 2.5 Mbps
17357
+ }), m = [];
17358
+ d.ondataavailable = (b) => {
17359
+ b.data.size > 0 && m.push(b.data);
17360
+ }, d.onstop = () => {
17361
+ const b = new Blob(m, { type: c });
17362
+ e(b);
17363
+ }, d.onerror = (b) => {
17364
+ console.error("[GifRecorder] MP4 合成失败:", b), a(b);
17365
+ }, d.start();
17366
+ let p = 0;
17367
+ const u = () => {
17368
+ if (p >= this.frames.length) {
17369
+ setTimeout(() => {
17370
+ d.stop();
17371
+ }, 100);
17372
+ return;
17373
+ }
17374
+ const b = this.frames[p];
17375
+ r.putImageData(b, 0, 0), p++, setTimeout(u, this._frameDelay);
17376
+ };
17377
+ u();
17378
+ } catch (i) {
17379
+ console.error("[GifRecorder] MP4 合成失败:", i), a(i);
17380
+ }
17314
17381
  });
17315
17382
  }
17316
17383
  /**
17317
17384
  * 下载 GIF 文件
17318
17385
  */
17319
- download(e, a = "ORM-Record") {
17386
+ downloadGif(e, a = "ORM-Record") {
17320
17387
  const i = `${a}.gif`, o = URL.createObjectURL(e), r = document.createElement("a");
17321
17388
  r.href = o, r.download = i, r.style.display = "none", document.body.appendChild(r), r.click(), setTimeout(() => {
17322
17389
  document.body.removeChild(r), URL.revokeObjectURL(o);
17323
17390
  }, 100);
17324
17391
  }
17392
+ /**
17393
+ * 下载 MP4 文件
17394
+ */
17395
+ downloadMp4(e, a = "ORM-Record") {
17396
+ const i = `${a}.mp4`, o = URL.createObjectURL(e), r = document.createElement("a");
17397
+ r.href = o, r.download = i, r.style.display = "none", document.body.appendChild(r), r.click(), setTimeout(() => {
17398
+ document.body.removeChild(r), URL.revokeObjectURL(o);
17399
+ }, 100);
17400
+ }
17325
17401
  /**
17326
17402
  * 保存为文件
17327
17403
  */
@@ -17398,8 +17474,10 @@ const tf = {
17398
17474
  height: 0
17399
17475
  },
17400
17476
  frameCount: 0,
17401
- blob: null,
17402
- gifUrl: ""
17477
+ gifBlob: null,
17478
+ mp4Blob: null,
17479
+ gifUrl: "",
17480
+ mp4Url: ""
17403
17481
  };
17404
17482
  },
17405
17483
  computed: {
@@ -17428,7 +17506,7 @@ const tf = {
17428
17506
  },
17429
17507
  actionStatus: {
17430
17508
  handler(t) {
17431
- this.actionStatus === 4 && this.startRecord(), this.actionStatus === 5 && this.recorder && this.createGif(), this.actionStatus === 6 && this.handleUpload(this.blob), this.actionStatus === 7 && this.$emit("preview", this.gifUrl);
17509
+ this.actionStatus === 4 && this.startRecord(), this.actionStatus === 5 && this.recorder && this.createGifAndMp4(), this.actionStatus === 6 && this.handleUpload(this.gifBlob), this.actionStatus === 7 && this.$emit("preview", this.gifUrl, this.mp4Url);
17432
17510
  }
17433
17511
  }
17434
17512
  },
@@ -17478,35 +17556,53 @@ const tf = {
17478
17556
  }
17479
17557
  }
17480
17558
  },
17481
- async createGif() {
17559
+ async createGifAndMp4() {
17482
17560
  console.log("[BottomBar] 等待最后一帧截图完成..."), setTimeout(async () => {
17483
- var t, e;
17561
+ var t, e, a;
17484
17562
  if (this.recorder) {
17485
17563
  (t = this.recorder) == null || t.stopRecording(), console.log("[BottomBar] 停止录制,总帧数:", this.frameCount);
17486
17564
  try {
17487
- this.blob = await ((e = this.recorder) == null ? void 0 : e.generateGif()), console.log("[BottomBar] GIF生成完成:", this.blob), this.blob && (this.actionStatus = 6);
17488
- } catch (a) {
17489
- console.error("[BottomBar] GIF生成失败:", a), this.clear();
17565
+ this.gifBlob = await ((e = this.recorder) == null ? void 0 : e.generateGif()), console.log("[BottomBar] GIF 生成完成:", this.gifBlob), this.mp4Blob = await ((a = this.recorder) == null ? void 0 : a.generateMp4()), console.log("[BottomBar] MP4 生成完成:", this.mp4Blob), (this.gifBlob || this.mp4Blob) && (this.actionStatus = 6);
17566
+ } catch (i) {
17567
+ console.error("[BottomBar] 生成失败:", i), this.clear();
17490
17568
  }
17491
17569
  }
17492
17570
  }, 2e3);
17493
17571
  },
17494
17572
  clear() {
17495
17573
  var t;
17496
- this.actionStatus = 0, this.frameCount = 0, this.blob = null, this.gifUrl = "", this.recorder && ((t = this.recorder) == null || t.reset(), this.recorder = null), this.$emit("closeRecord"), console.log("[BottomBar] 关闭录制功能,清空数据");
17574
+ this.actionStatus = 0, this.frameCount = 0, this.gifBlob = null, this.mp4Blob = null, this.gifUrl = "", this.mp4Url = "", this.recorder && ((t = this.recorder) == null || t.reset(), this.recorder = null), this.$emit("closeRecord"), console.log("[BottomBar] 关闭录制功能,清空数据");
17497
17575
  },
17498
- async handleUpload(t) {
17499
- var o;
17576
+ async handleUpload() {
17500
17577
  console.log("[BottomBar] 开始上传");
17501
- const e = {
17502
- stream: t,
17578
+ const t = [];
17579
+ if (this.gifBlob && t.push({
17580
+ stream: this.gifBlob,
17503
17581
  ext: "gif"
17504
- }, a = await pr.create(this.token), i = await (a == null ? void 0 : a.put2HZ("/share", [e]));
17505
- this.gifUrl = ((o = i == null ? void 0 : i[0]) == null ? void 0 : o.url) || "", console.log("[BottomBar] 上传成功"), this.actionStatus = 7;
17582
+ }), this.mp4Blob && t.push({
17583
+ stream: this.mp4Blob,
17584
+ ext: "mp4"
17585
+ }), t.length === 0) {
17586
+ console.warn("[BottomBar] 没有可上传的文件");
17587
+ return;
17588
+ }
17589
+ try {
17590
+ const e = await pr.create(this.token), a = await (e == null ? void 0 : e.put2HZ("/share", t));
17591
+ if (a && a.length > 0)
17592
+ for (const i of a)
17593
+ i.url && (i.url.endsWith(".gif") ? this.gifUrl = i.url : i.url.endsWith(".mp4") && (this.mp4Url = i.url));
17594
+ console.log("[BottomBar] 上传成功", { gifUrl: this.gifUrl, mp4Url: this.mp4Url }), this.actionStatus = 7;
17595
+ } catch (e) {
17596
+ console.error("[BottomBar] 上传失败:", e);
17597
+ }
17506
17598
  },
17507
- handleDownload() {
17599
+ handleDownloadGif() {
17508
17600
  const e = `ORM-Record-${D().format("yyyyMMDD-HHmm")}.gif`;
17509
- this.recorder.download(this.blob, e);
17601
+ this.recorder.downloadGif(this.gifBlob, e);
17602
+ },
17603
+ handleDownloadMp4() {
17604
+ const e = `ORM-Record-${D().format("yyyyMMDD-HHmm")}.mp4`;
17605
+ this.recorder.downloadMp4(this.mp4Blob, e);
17510
17606
  }
17511
17607
  }
17512
17608
  }, af = { class: "capture-container" }, of = {
@@ -17529,7 +17625,7 @@ function hf(t, e, a, i, o, r) {
17529
17625
  onMousemove: e[3] || (e[3] = (...c) => r.handleMouseMove && r.handleMouseMove(...c)),
17530
17626
  onMouseup: e[4] || (e[4] = (...c) => r.handleMouseUp && r.handleMouseUp(...c))
17531
17627
  }, [
17532
- o.actionStatus === 1 ? (k(), I("div", of, y(t.$t("tips.crossHairText")), 1)) : G("", !0),
17628
+ o.actionStatus === 1 ? (k(), I("div", of, y(t.$t("tips.crossHairText")), 1)) : F("", !0),
17533
17629
  o.actionStatus >= 2 ? (k(), I("div", {
17534
17630
  key: 1,
17535
17631
  class: "selection-box",
@@ -17558,9 +17654,9 @@ function hf(t, e, a, i, o, r) {
17558
17654
  class: "text-none text-body-1",
17559
17655
  onClick: Le(r.handleCancel, ["stop"])
17560
17656
  }, null, 8, ["onClick"])
17561
- ], 32)) : G("", !0)
17562
- ], 4)) : G("", !0)
17563
- ], 32)) : G("", !0),
17657
+ ], 32)) : F("", !0)
17658
+ ], 4)) : F("", !0)
17659
+ ], 32)) : F("", !0),
17564
17660
  o.actionStatus >= 4 && o.actionStatus <= 6 ? (k(), I("div", {
17565
17661
  key: 1,
17566
17662
  class: ge(["capture-frame", { recording: o.actionStatus === 5 }]),
@@ -17579,16 +17675,16 @@ function hf(t, e, a, i, o, r) {
17579
17675
  o.actionStatus === 4 ? (k(), I("div", sf, [
17580
17676
  e[7] || (e[7] = n("div", { class: "dot bg-danger" }, null, -1)),
17581
17677
  n("div", cf, y(t.$t("tips.recordingText")), 1)
17582
- ])) : G("", !0),
17678
+ ])) : F("", !0),
17583
17679
  o.actionStatus === 5 || o.actionStatus === 6 ? (k(), I("div", mf, [
17584
17680
  e[8] || (e[8] = n("div", { class: "dot bg-success" }, null, -1)),
17585
17681
  n("div", df, y(t.$t("tips.savingText")), 1)
17586
- ])) : G("", !0)
17682
+ ])) : F("", !0)
17587
17683
  ], 32)
17588
- ], 6)) : G("", !0)
17684
+ ], 6)) : F("", !0)
17589
17685
  ]);
17590
17686
  }
17591
- const pf = /* @__PURE__ */ ie(tf, [["render", hf], ["__scopeId", "data-v-46a701be"]]);
17687
+ const pf = /* @__PURE__ */ ie(tf, [["render", hf], ["__scopeId", "data-v-ea3ea6ad"]]);
17592
17688
  const uf = {
17593
17689
  name: "IdmBottomBar",
17594
17690
  components: { DateTimePicker: Qa, IdmCapture: pf },
@@ -17915,7 +18011,7 @@ function Lf(t, e, a, i, o, r) {
17915
18011
  ])),
17916
18012
  _: 2,
17917
18013
  __: [18]
17918
- }, 1040, ["onClick"])) : G("", !0)
18014
+ }, 1040, ["onClick"])) : F("", !0)
17919
18015
  ]),
17920
18016
  _: 1
17921
18017
  }, 8, ["text"]),
@@ -17926,7 +18022,7 @@ function Lf(t, e, a, i, o, r) {
17926
18022
  "open-on-click": !1
17927
18023
  }, {
17928
18024
  activator: x(({ props: h }) => [
17929
- o.paused ? G("", !0) : (k(), W(u, $({ key: 0 }, h, {
18025
+ o.paused ? F("", !0) : (k(), W(u, $({ key: 0 }, h, {
17930
18026
  icon: "",
17931
18027
  size: "small",
17932
18028
  density: "comfortable",
@@ -18114,7 +18210,7 @@ function Lf(t, e, a, i, o, r) {
18114
18210
  class: "item rounded text-body-2 hover-active",
18115
18211
  onClick: (f) => o.timeZone = h
18116
18212
  }, y(h < 0 ? h : "+" + h), 9, vf))), 128))
18117
- ])) : G("", !0),
18213
+ ])) : F("", !0),
18118
18214
  n("div", kf, [
18119
18215
  w(u, {
18120
18216
  text: "",
@@ -18490,7 +18586,7 @@ function Rf(t, e, a, i, o, r) {
18490
18586
  map: a.map,
18491
18587
  "map-feather": a.mapFeather
18492
18588
  }, t.$attrs), null, 16, ["simple", "map", "map-feather"]),
18493
- a.simple ? G("", !0) : (k(), W(p, $({
18589
+ a.simple ? F("", !0) : (k(), W(p, $({
18494
18590
  key: 0,
18495
18591
  simple: a.simple,
18496
18592
  map: a.map,
@@ -18499,7 +18595,7 @@ function Rf(t, e, a, i, o, r) {
18499
18595
  "default-meteo-token": o.defaultMeteoToken,
18500
18596
  token: a.token
18501
18597
  }, t.$attrs), null, 16, ["simple", "map", "map-feather", "gateway", "default-meteo-token", "token"])),
18502
- a.simple ? G("", !0) : (k(), W(u, $({
18598
+ a.simple ? F("", !0) : (k(), W(u, $({
18503
18599
  key: 1,
18504
18600
  ref: "idmBottomBar",
18505
18601
  "forecast-model": a.forecastModel,
@@ -18517,19 +18613,19 @@ function Rf(t, e, a, i, o, r) {
18517
18613
  "weather-check-list": o.weatherCheckList,
18518
18614
  "map-feather": a.mapFeather,
18519
18615
  disabled: !0
18520
- }, t.$attrs), null, 16, ["player-bottom", "bg-class", "weather-check-list", "map-feather"])) : G("", !0)
18616
+ }, t.$attrs), null, 16, ["player-bottom", "bg-class", "weather-check-list", "map-feather"])) : F("", !0)
18521
18617
  ], 512);
18522
18618
  }
18523
18619
  const Df = /* @__PURE__ */ ie(Sf, [["render", Rf]]);
18524
18620
  class If {
18525
18621
  constructor(e = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImNsYmY5M3I0YTAwMDE4Ymx0NWJ4emFwNWMiLCJyb2xlIjoyMDQ3LCJpYXQiOjE2NzA1NTM0NzAsImV4cCI6Mzg3ODA3MzQ3MH0.MxTv0yLGarZCtOSCZfJHMqrXNMNN0-OL4gBGKGcYcc8", { hifleet: a = !1 }) {
18526
- ve(this, "originStyle");
18527
- ve(this, "mapboxStyle");
18528
- ve(this, "i4");
18529
- ve(this, "hi");
18530
- ve(this, "td");
18531
- ve(this, "windy");
18532
- var i, o, r, l, c, s, d, m, p, u, b, g, h, f, C, _, v, L, T, z, S, R, N, V, E, H, Q, ae, re, pe, F, J, K, oe, Y, X, ee, A, ne, fe, ke, ze, me, be, _e, Re, q, de, He, Ve, Me, Ae, le, Pe, ue, we, Be, Ue, Ye, U, xe, Fe, Ze, Oe, te, Ee, se, at, ot, it, Ne, mt, dt, ht, pt, ut, gt, ft, yt, bt, wt, xt, vt, kt, _t, Lt, zt, Ct, Mt, Pt, St, Tt, Rt, Dt, It, At, Ft, Gt, Nt, Wt, Vt, Et, Bt, Zt, Ot, jt, Xt, Ht, Yt, Ut, $t, Jt, Kt, qt, Qt, ea, ta, aa, oa, ia, ra, la, na, sa, ca, ma, da, ha, pa, ua, ga, fa, ya, ba, wa, xa, va, ka, _a, La, za, Ca, Ma, Pa, Sa, Ta, Ra, Da, Ia, Aa, Fa, wo, xo, vo, ko, _o, Lo, zo, Co, Mo, Po, So, To, Ro, Do, Io, Ao, Fo, Go, No, Wo, Vo, Eo, Bo, Zo, Oo, jo, Xo, Ho, Yo, Uo, $o, Jo, Ko, qo, Qo, ei, ti, ai, oi, ii, ri, li, ni, si, ci, mi, di, hi, pi, ui, gi, fi, yi;
18622
+ we(this, "originStyle");
18623
+ we(this, "mapboxStyle");
18624
+ we(this, "i4");
18625
+ we(this, "hi");
18626
+ we(this, "td");
18627
+ we(this, "windy");
18628
+ var i, o, r, l, c, s, d, m, p, u, b, g, h, f, C, _, v, L, T, z, S, R, N, V, B, H, Q, ae, re, pe, G, J, K, oe, Y, X, ee, A, ne, fe, ke, ze, me, be, _e, Re, q, de, He, Ve, Me, Ae, le, Pe, ue, xe, Ee, Ue, Ye, U, ve, Ge, Ze, Oe, te, Be, se, at, ot, it, Ne, mt, dt, ht, pt, ut, gt, ft, yt, bt, wt, xt, vt, kt, _t, Lt, zt, Ct, Mt, Pt, St, Tt, Rt, Dt, It, At, Gt, Ft, Nt, Wt, Vt, Bt, Et, Zt, Ot, jt, Xt, Ht, Yt, Ut, $t, Jt, Kt, qt, Qt, ea, ta, aa, oa, ia, ra, la, na, sa, ca, ma, da, ha, pa, ua, ga, fa, ya, ba, wa, xa, va, ka, _a, La, za, Ca, Ma, Pa, Sa, Ta, Ra, Da, Ia, Aa, Ga, wo, xo, vo, ko, _o, Lo, zo, Co, Mo, Po, So, To, Ro, Do, Io, Ao, Go, Fo, No, Wo, Vo, Bo, Eo, Zo, Oo, jo, Xo, Ho, Yo, Uo, $o, Jo, Ko, qo, Qo, ei, ti, ai, oi, ii, ri, li, ni, si, ci, mi, di, hi, pi, ui, gi, fi, yi;
18533
18629
  this.i4 = {
18534
18630
  source: {
18535
18631
  type: "raster",
@@ -37065,10 +37161,10 @@ class If {
37065
37161
  (z = (T = this.originStyle) == null ? void 0 : T.light.layers) == null ? void 0 : z.find((M) => M.id === "empty-layer-2"),
37066
37162
  (R = (S = this.originStyle) == null ? void 0 : S.light.layers) == null ? void 0 : R.find((M) => M.id === "water-line-label"),
37067
37163
  (V = (N = this.originStyle) == null ? void 0 : N.light.layers) == null ? void 0 : V.find((M) => M.id === "water-point-label"),
37068
- (H = (E = this.originStyle) == null ? void 0 : E.light.layers) == null ? void 0 : H.find((M) => M.id === "loadlines-label"),
37164
+ (H = (B = this.originStyle) == null ? void 0 : B.light.layers) == null ? void 0 : H.find((M) => M.id === "loadlines-label"),
37069
37165
  (ae = (Q = this.originStyle) == null ? void 0 : Q.light.layers) == null ? void 0 : ae.find((M) => M.id === "loadlines-fill"),
37070
37166
  (pe = (re = this.originStyle) == null ? void 0 : re.light.layers) == null ? void 0 : pe.find((M) => M.id === "world-12nm-v4-20231025"),
37071
- (J = (F = this.originStyle) == null ? void 0 : F.light.layers) == null ? void 0 : J.find((M) => M.id === "ne-10m-outline"),
37167
+ (J = (G = this.originStyle) == null ? void 0 : G.light.layers) == null ? void 0 : J.find((M) => M.id === "ne-10m-outline"),
37072
37168
  (oe = (K = this.originStyle) == null ? void 0 : K.light.layers) == null ? void 0 : oe.find((M) => M.id === "ne-10m-label"),
37073
37169
  (X = (Y = this.originStyle) == null ? void 0 : Y.light.layers) == null ? void 0 : X.find((M) => M.id === "china-route-line"),
37074
37170
  (A = (ee = this.originStyle) == null ? void 0 : ee.light.layers) == null ? void 0 : A.find((M) => M.id === "china-route-fill"),
@@ -37080,13 +37176,13 @@ class If {
37080
37176
  (Ve = (He = this.originStyle) == null ? void 0 : He.light.layers) == null ? void 0 : Ve.find((M) => M.id === "continent-label"),
37081
37177
  (Ae = (Me = this.originStyle) == null ? void 0 : Me.light.layers) == null ? void 0 : Ae.find((M) => M.id === "tide-stations"),
37082
37178
  (Pe = (le = this.originStyle) == null ? void 0 : le.light.layers) == null ? void 0 : Pe.find((M) => M.id === "empty-layer-3"),
37083
- (we = (ue = this.originStyle) == null ? void 0 : ue.light.layers) == null ? void 0 : we.find((M) => M.id === "empty-layer-4")
37179
+ (xe = (ue = this.originStyle) == null ? void 0 : ue.light.layers) == null ? void 0 : xe.find((M) => M.id === "empty-layer-4")
37084
37180
  ]
37085
37181
  },
37086
37182
  dark: {
37087
37183
  version: 8,
37088
37184
  name: "dark",
37089
- metadata: (Be = this.originStyle) == null ? void 0 : Be.dark.metadata,
37185
+ metadata: (Ee = this.originStyle) == null ? void 0 : Ee.dark.metadata,
37090
37186
  center: [90.22129259388525, -3.2084663486364606],
37091
37187
  zoom: 1.2556266457717493,
37092
37188
  bearing: 0,
@@ -37098,16 +37194,16 @@ class If {
37098
37194
  sources: (Ue = this.originStyle) == null ? void 0 : Ue.dark.sources,
37099
37195
  sprite: (Ye = this.originStyle) == null ? void 0 : Ye.dark.sprite,
37100
37196
  glyphs: (U = this.originStyle) == null ? void 0 : U.dark.glyphs,
37101
- projection: (xe = this.originStyle) == null ? void 0 : xe.dark.projection,
37197
+ projection: (ve = this.originStyle) == null ? void 0 : ve.dark.projection,
37102
37198
  id: "cmdqwez32005b01re2w0k3zk4",
37103
37199
  owner: "neatchenheng",
37104
37200
  visibility: "private",
37105
37201
  protected: !1,
37106
37202
  draft: !1,
37107
37203
  layers: [
37108
- (Ze = (Fe = this.originStyle) == null ? void 0 : Fe.dark.layers) == null ? void 0 : Ze.find((M) => M.id === "land"),
37204
+ (Ze = (Ge = this.originStyle) == null ? void 0 : Ge.dark.layers) == null ? void 0 : Ze.find((M) => M.id === "land"),
37109
37205
  (te = (Oe = this.originStyle) == null ? void 0 : Oe.dark.layers) == null ? void 0 : te.find((M) => M.id === "water"),
37110
- (se = (Ee = this.originStyle) == null ? void 0 : Ee.dark.layers) == null ? void 0 : se.find((M) => M.id === "ice-area-fill"),
37206
+ (se = (Be = this.originStyle) == null ? void 0 : Be.dark.layers) == null ? void 0 : se.find((M) => M.id === "ice-area-fill"),
37111
37207
  (ot = (at = this.originStyle) == null ? void 0 : at.dark.layers) == null ? void 0 : ot.find((M) => M.id === "ice-area-line"),
37112
37208
  (Ne = (it = this.originStyle) == null ? void 0 : it.dark.layers) == null ? void 0 : Ne.find((M) => M.id === "empty-layer-0"),
37113
37209
  (dt = (mt = this.originStyle) == null ? void 0 : mt.dark.layers) == null ? void 0 : dt.find((M) => M.id === "empty-layer-1"),
@@ -37122,10 +37218,10 @@ class If {
37122
37218
  (St = (Pt = this.originStyle) == null ? void 0 : Pt.dark.layers) == null ? void 0 : St.find((M) => M.id === "ne-10m-outline"),
37123
37219
  (Rt = (Tt = this.originStyle) == null ? void 0 : Tt.dark.layers) == null ? void 0 : Rt.find((M) => M.id === "ne-10m-label"),
37124
37220
  (It = (Dt = this.originStyle) == null ? void 0 : Dt.dark.layers) == null ? void 0 : It.find((M) => M.id === "china-route-line"),
37125
- (Ft = (At = this.originStyle) == null ? void 0 : At.dark.layers) == null ? void 0 : Ft.find((M) => M.id === "china-route-fill"),
37126
- (Nt = (Gt = this.originStyle) == null ? void 0 : Gt.dark.layers) == null ? void 0 : Nt.find((M) => M.id === "china-route-label"),
37221
+ (Gt = (At = this.originStyle) == null ? void 0 : At.dark.layers) == null ? void 0 : Gt.find((M) => M.id === "china-route-fill"),
37222
+ (Nt = (Ft = this.originStyle) == null ? void 0 : Ft.dark.layers) == null ? void 0 : Nt.find((M) => M.id === "china-route-label"),
37127
37223
  (Vt = (Wt = this.originStyle) == null ? void 0 : Wt.dark.layers) == null ? void 0 : Vt.find((M) => M.id === "admin-0-boundary-bg"),
37128
- (Bt = (Et = this.originStyle) == null ? void 0 : Et.dark.layers) == null ? void 0 : Bt.find((M) => M.id === "admin-0-boundary"),
37224
+ (Et = (Bt = this.originStyle) == null ? void 0 : Bt.dark.layers) == null ? void 0 : Et.find((M) => M.id === "admin-0-boundary"),
37129
37225
  (Ot = (Zt = this.originStyle) == null ? void 0 : Zt.dark.layers) == null ? void 0 : Ot.find((M) => M.id === "admin-0-boundary-disputed"),
37130
37226
  (Xt = (jt = this.originStyle) == null ? void 0 : jt.dark.layers) == null ? void 0 : Xt.find((M) => M.id === "country-label"),
37131
37227
  (Yt = (Ht = this.originStyle) == null ? void 0 : Ht.dark.layers) == null ? void 0 : Yt.find((M) => M.id === "continent-label"),
@@ -37168,7 +37264,7 @@ class If {
37168
37264
  (Ta = (Sa = this.originStyle) == null ? void 0 : Sa.satellite.layers) == null ? void 0 : Ta.find((M) => M.id === "world-12nm-v4-20231025"),
37169
37265
  (Da = (Ra = this.originStyle) == null ? void 0 : Ra.satellite.layers) == null ? void 0 : Da.find((M) => M.id === "ne-10m-outline"),
37170
37266
  (Aa = (Ia = this.originStyle) == null ? void 0 : Ia.satellite.layers) == null ? void 0 : Aa.find((M) => M.id === "ne-10m-label"),
37171
- (wo = (Fa = this.originStyle) == null ? void 0 : Fa.satellite.layers) == null ? void 0 : wo.find((M) => M.id === "china-route-line"),
37267
+ (wo = (Ga = this.originStyle) == null ? void 0 : Ga.satellite.layers) == null ? void 0 : wo.find((M) => M.id === "china-route-line"),
37172
37268
  (vo = (xo = this.originStyle) == null ? void 0 : xo.satellite.layers) == null ? void 0 : vo.find((M) => M.id === "china-route-fill"),
37173
37269
  (_o = (ko = this.originStyle) == null ? void 0 : ko.satellite.layers) == null ? void 0 : _o.find((M) => M.id === "china-route-label"),
37174
37270
  (zo = (Lo = this.originStyle) == null ? void 0 : Lo.satellite.layers) == null ? void 0 : zo.find((M) => M.id === "tide-stations"),
@@ -37236,10 +37332,10 @@ class If {
37236
37332
  (Ro = (To = this.originStyle) == null ? void 0 : To.light.layers) == null ? void 0 : Ro.find((M) => M.id === "land"),
37237
37333
  (Io = (Do = this.originStyle) == null ? void 0 : Do.light.layers) == null ? void 0 : Io.find((M) => M.id === "water"),
37238
37334
  a ? this.hi.layer : this.i4.layer,
37239
- (Fo = (Ao = this.originStyle) == null ? void 0 : Ao.light.layers) == null ? void 0 : Fo.find((M) => M.id === "ice-area-fill"),
37240
- (No = (Go = this.originStyle) == null ? void 0 : Go.light.layers) == null ? void 0 : No.find((M) => M.id === "ice-area-line"),
37335
+ (Go = (Ao = this.originStyle) == null ? void 0 : Ao.light.layers) == null ? void 0 : Go.find((M) => M.id === "ice-area-fill"),
37336
+ (No = (Fo = this.originStyle) == null ? void 0 : Fo.light.layers) == null ? void 0 : No.find((M) => M.id === "ice-area-line"),
37241
37337
  (Vo = (Wo = this.originStyle) == null ? void 0 : Wo.light.layers) == null ? void 0 : Vo.find((M) => M.id === "empty-layer-0"),
37242
- (Bo = (Eo = this.originStyle) == null ? void 0 : Eo.light.layers) == null ? void 0 : Bo.find((M) => M.id === "empty-layer-1"),
37338
+ (Eo = (Bo = this.originStyle) == null ? void 0 : Bo.light.layers) == null ? void 0 : Eo.find((M) => M.id === "empty-layer-1"),
37243
37339
  (Oo = (Zo = this.originStyle) == null ? void 0 : Zo.light.layers) == null ? void 0 : Oo.find((M) => M.id === "empty-layer-2"),
37244
37340
  (Xo = (jo = this.originStyle) == null ? void 0 : jo.light.layers) == null ? void 0 : Xo.find((M) => M.id === "country-boundaries"),
37245
37341
  (Yo = (Ho = this.originStyle) == null ? void 0 : Ho.light.layers) == null ? void 0 : Yo.find((M) => M.id === "water-outline"),
@@ -37379,7 +37475,7 @@ const Af = {
37379
37475
  this.zoom > 2 && (this.zoom = Math.floor(this.zoom) - 1, (t = this.map) == null || t.flyTo({ zoom: this.zoom, duration: 500 }));
37380
37476
  }
37381
37477
  }
37382
- }, Ff = { class: "v-btn--variant-elevated rounded" }, Gf = { class: "v-btn--variant-elevated rounded" }, Nf = { class: "zoom" }, Wf = {
37478
+ }, Gf = { class: "v-btn--variant-elevated rounded" }, Ff = { class: "v-btn--variant-elevated rounded" }, Nf = { class: "zoom" }, Wf = {
37383
37479
  key: 2,
37384
37480
  class: "position-absolute left-0 bottom-0 ma-2 my-1 text-caption text-label opacity-70"
37385
37481
  };
@@ -37396,7 +37492,7 @@ function Vf(t, e, a, i, o, r) {
37396
37492
  class: "menu-bar-box transition px-1 rounded d-flex flex-column pa-1 simple",
37397
37493
  style: he({ top: a.top + 294 + "px", right: o.right + "px", height: "40px" })
37398
37494
  }, [
37399
- n("div", Ff, [
37495
+ n("div", Gf, [
37400
37496
  w(l, {
37401
37497
  "min-width": "32",
37402
37498
  width: "32",
@@ -37411,13 +37507,13 @@ function Vf(t, e, a, i, o, r) {
37411
37507
  __: [0]
37412
37508
  }, 8, ["onClick"])
37413
37509
  ])
37414
- ], 4)) : G("", !0),
37415
- a.simple ? G("", !0) : (k(), I("div", {
37510
+ ], 4)) : F("", !0),
37511
+ a.simple ? F("", !0) : (k(), I("div", {
37416
37512
  key: 1,
37417
37513
  class: "menu-bar-box transition px-1 rounded d-flex flex-column",
37418
37514
  style: he({ top: a.top + 308 + "px", right: o.right + "px", height: "112px" })
37419
37515
  }, [
37420
- n("div", Gf, [
37516
+ n("div", Ff, [
37421
37517
  w(l, {
37422
37518
  "min-width": "32",
37423
37519
  width: "32",
@@ -37447,7 +37543,7 @@ function Vf(t, e, a, i, o, r) {
37447
37543
  }, 8, ["onClick"])
37448
37544
  ])
37449
37545
  ], 4)),
37450
- a.simple ? G("", !0) : (k(), I("div", Wf, [
37546
+ a.simple ? F("", !0) : (k(), I("div", Wf, [
37451
37547
  e[3] || (e[3] = n("span", null, "© 2023", -1)),
37452
37548
  n("span", null, "-" + y(r.computeYear), 1),
37453
37549
  e[4] || (e[4] = n("span", { class: "text-uppercase ma-2" }, "ormwx.com", -1)),
@@ -37459,8 +37555,8 @@ function Vf(t, e, a, i, o, r) {
37459
37555
  ]))
37460
37556
  ], 4);
37461
37557
  }
37462
- const Ef = /* @__PURE__ */ ie(Af, [["render", Vf]]);
37463
- const Bf = {
37558
+ const Bf = /* @__PURE__ */ ie(Af, [["render", Vf]]);
37559
+ const Ef = {
37464
37560
  name: "DateRangePicker",
37465
37561
  props: {
37466
37562
  width: {
@@ -37724,7 +37820,7 @@ function Yf(t, e, a, i, o, r) {
37724
37820
  icon: "mdi-close-circle",
37725
37821
  style: { opacity: "0.4" },
37726
37822
  onClick: Le(r.handleClearDate, ["stop"])
37727
- }, null, 8, ["onClick"])) : G("", !0)
37823
+ }, null, 8, ["onClick"])) : F("", !0)
37728
37824
  ], 4),
37729
37825
  o.showDatePicker ? (k(), W(u, {
37730
37826
  key: 0,
@@ -37795,7 +37891,7 @@ function Yf(t, e, a, i, o, r) {
37795
37891
  ]),
37796
37892
  _: 2
37797
37893
  }, 1032, ["color", "variant", "onClick"]))), 128))
37798
- ])) : G("", !0),
37894
+ ])) : F("", !0),
37799
37895
  n("div", Hf, [
37800
37896
  w(m, {
37801
37897
  size: "small",
@@ -37827,23 +37923,23 @@ function Yf(t, e, a, i, o, r) {
37827
37923
  })
37828
37924
  ]),
37829
37925
  _: 1
37830
- }, 8, ["style"])) : G("", !0)
37926
+ }, 8, ["style"])) : F("", !0)
37831
37927
  ], 512);
37832
37928
  }
37833
- const Uf = /* @__PURE__ */ ie(Bf, [["render", Yf]]), m1 = {
37929
+ const Uf = /* @__PURE__ */ ie(Ef, [["render", Yf]]), m1 = {
37834
37930
  install(t) {
37835
- t.component("MapInitial", Ef), t.component("MapboxGL", Df), t.component("TropicalGL", Zi), t.component("LatLngGL", Bi), t.component("DateTimePicker", Qa), t.component("DateRangePicker", Uf), t.component("PortDetail", uo), t.component("TimePlayer", lr);
37931
+ t.component("MapInitial", Bf), t.component("MapboxGL", Df), t.component("TropicalGL", Zi), t.component("LatLngGL", Ei), t.component("DateTimePicker", Qa), t.component("DateRangePicker", Uf), t.component("PortDetail", uo), t.component("TimePlayer", lr);
37836
37932
  }
37837
37933
  };
37838
37934
  export {
37839
37935
  Qa as D,
37840
- Bi as L,
37936
+ Ei as L,
37841
37937
  m1 as M,
37842
37938
  uo as P,
37843
37939
  Zi as T,
37844
37940
  go as V,
37845
37941
  $e as W,
37846
- Ef as a,
37942
+ Bf as a,
37847
37943
  Df as b,
37848
37944
  Uf as c,
37849
37945
  lr as d,