@idmwx/idmui-gl4 0.9.9 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1857,8 +1857,8 @@ const or = {
1857
1857
  })
1858
1858
  );
1859
1859
  (await Promise.all(g)).map((d) => {
1860
- var x, S, C;
1861
- const f = ((x = d == null ? void 0 : d.data) == null ? void 0 : x.data) || (d == null ? void 0 : d.data), z = (C = (S = d == null ? void 0 : d.config) == null ? void 0 : S.headers) == null ? void 0 : C.key;
1860
+ var v, S, C;
1861
+ const f = ((v = d == null ? void 0 : d.data) == null ? void 0 : v.data) || (d == null ? void 0 : d.data), z = (C = (S = d == null ? void 0 : d.config) == null ? void 0 : S.headers) == null ? void 0 : C.key;
1862
1862
  this.otherLayers[z] = f;
1863
1863
  });
1864
1864
  }
@@ -1880,8 +1880,8 @@ const or = {
1880
1880
  })
1881
1881
  );
1882
1882
  (await Promise.all(g)).map((d) => {
1883
- var x, S, C;
1884
- const f = ((x = d == null ? void 0 : d.data) == null ? void 0 : x.data) || (d == null ? void 0 : d.data), z = (C = (S = d == null ? void 0 : d.config) == null ? void 0 : S.headers) == null ? void 0 : C.key;
1883
+ var v, S, C;
1884
+ const f = ((v = d == null ? void 0 : d.data) == null ? void 0 : v.data) || (d == null ? void 0 : d.data), z = (C = (S = d == null ? void 0 : d.config) == null ? void 0 : S.headers) == null ? void 0 : C.key;
1885
1885
  this.otherLayers[z] = f;
1886
1886
  });
1887
1887
  }
@@ -1912,7 +1912,7 @@ const or = {
1912
1912
  }, pr = { class: "text-body-2 text-center pt-1" };
1913
1913
  function ur(t, e, o, i, a, r) {
1914
1914
  var $, ee, Q, se, de, pe, me, K, ie;
1915
- const s = w("VBtn"), n = w("VTooltip"), c = w("VCardTitle"), g = w("VCardItem"), p = w("VCheckbox"), d = w("VCardText"), f = w("VCard"), z = w("IdmTideStations"), x = w("IdmIceAreas"), S = w("IdmWorld12nm"), C = w("IdmWorldMarine"), N = w("IdmChinaRoute"), M = w("IdmWarZone"), L = w("IdmGmdssArea"), v = w("IdmEcaZone"), _ = w("IdmAlertZone"), P = w("IdmPort"), k = w("IdmLoadLine"), R = w("IdmTimezone"), V = w("IdmVRA"), X = w("IdmSpecialArea"), q = w("IdmTerminator"), Y = w("IdmLatLng");
1915
+ const s = w("VBtn"), n = w("VTooltip"), c = w("VCardTitle"), g = w("VCardItem"), p = w("VCheckbox"), d = w("VCardText"), f = w("VCard"), z = w("IdmTideStations"), v = w("IdmIceAreas"), S = w("IdmWorld12nm"), C = w("IdmWorldMarine"), N = w("IdmChinaRoute"), M = w("IdmWarZone"), L = w("IdmGmdssArea"), _ = w("IdmEcaZone"), k = w("IdmAlertZone"), P = w("IdmPort"), x = w("IdmLoadLine"), R = w("IdmTimezone"), V = w("IdmVRA"), X = w("IdmSpecialArea"), q = w("IdmTerminator"), Y = w("IdmLatLng");
1916
1916
  return b(), T("div", ar, [
1917
1917
  l("div", {
1918
1918
  class: "menu-bar-box transition px-1 rounded",
@@ -2148,7 +2148,7 @@ function ur(t, e, o, i, a, r) {
2148
2148
  map: o.map,
2149
2149
  show: a.checkList.includes("tidal-stations")
2150
2150
  }, t.$attrs), null, 16, ["map", "show"])) : B("", !0),
2151
- o.map ? (b(), j(x, O({
2151
+ o.map ? (b(), j(v, O({
2152
2152
  key: 1,
2153
2153
  map: o.map,
2154
2154
  show: a.checkList.includes("ice-areas")
@@ -2181,12 +2181,12 @@ function ur(t, e, o, i, a, r) {
2181
2181
  map: o.map,
2182
2182
  area: (ee = a.otherLayers) == null ? void 0 : ee["gmdss-areas"]
2183
2183
  }, t.$attrs), null, 16, ["map", "area"])) : B("", !0),
2184
- o.map ? (b(), j(v, O({
2184
+ o.map ? (b(), j(_, O({
2185
2185
  key: 7,
2186
2186
  map: o.map,
2187
2187
  zone: (Q = a.otherLayers) == null ? void 0 : Q["eca-zones"]
2188
2188
  }, t.$attrs), null, 16, ["map", "zone"])) : B("", !0),
2189
- o.map ? (b(), j(_, O({
2189
+ o.map ? (b(), j(k, O({
2190
2190
  key: 8,
2191
2191
  map: o.map,
2192
2192
  zone: (se = a.otherLayers) == null ? void 0 : se["alert-zones"]
@@ -2200,7 +2200,7 @@ function ur(t, e, o, i, a, r) {
2200
2200
  port: (de = a.otherLayers) == null ? void 0 : de.ports,
2201
2201
  "forecast-model": o.forecastModel
2202
2202
  }, t.$attrs, { "before-layer": "empty-layer-3" }), null, 16, ["map", "port", "forecast-model"])) : B("", !0),
2203
- o.map ? (b(), j(k, O({
2203
+ o.map ? (b(), j(x, O({
2204
2204
  key: 10,
2205
2205
  map: o.map,
2206
2206
  show: a.checkList.includes("load-lines")
@@ -2280,8 +2280,8 @@ class ro {
2280
2280
  * @param [lb.x, lb.y, rt.x, rt.y]
2281
2281
  */
2282
2282
  getBoundPixel() {
2283
- var x, S;
2284
- const e = (x = this.map) == null ? void 0 : x.getBounds();
2283
+ var v, S;
2284
+ const e = (v = this.map) == null ? void 0 : v.getBounds();
2285
2285
  if (!e)
2286
2286
  return [];
2287
2287
  const o = ((S = this.map) == null ? void 0 : S.getZoom()) + 1, i = [e._ne.lng, e._ne.lat], a = [e._sw.lng, e._sw.lat], [r, s] = this.convertNLng(i[0]), [n, c] = this.convertNLng(a[0]), [g, p] = this.mercator.px([r, i[1]], o), [d, f] = this.mercator.px([n, a[1]], o), z = Math.round(this.mercator.size * Math.pow(2, o) * (s + c));
@@ -2469,8 +2469,8 @@ class Ne {
2469
2469
  };
2470
2470
  p.resolution && o.uniform2f(p.resolution, o.canvas.width * e.ratio, o.canvas.height * e.ratio), o.activeTexture(o.TEXTURE0), o.bindTexture(o.TEXTURE_2D, a), p.image && o.uniform1i(p.image, 0), o.activeTexture(o.TEXTURE1), o.bindTexture(o.TEXTURE_2D, r), p.color && o.uniform1i(p.color, 1), n != null && n.uvRange && (n != null && n.sRange) && (p.uvRange && o.uniform2f(p.uvRange, n.uvRange[0], n.uvRange[1]), p.sRange && o.uniform2f(p.sRange, n.sRange[0], n.sRange[1])), p.scale && o.uniform1f(p.scale, (n == null ? void 0 : n.scale) || 1);
2471
2471
  const d = e.getBoundPixel(), f = e.map.getZoom() + 1, z = e.getWorldCopy(d, f);
2472
- for (const x of z) {
2473
- const S = (x[0] - d[0]) * e.ratio, C = (x[1] - d[3]) * e.ratio, N = x[2] * e.ratio, [M, L, v, _] = [S, N + S, C, N + C], P = new Float32Array([M, v, L, v, M, _, M, _, L, v, L, _]);
2472
+ for (const v of z) {
2473
+ const S = (v[0] - d[0]) * e.ratio, C = (v[1] - d[3]) * e.ratio, N = v[2] * e.ratio, [M, L, _, k] = [S, N + S, C, N + C], P = new Float32Array([M, _, L, _, M, k, M, k, L, _, L, k]);
2474
2474
  o.bindBuffer(o.ARRAY_BUFFER, s), o.bufferData(o.ARRAY_BUFFER, P, o.STATIC_DRAW), o.drawArrays(o.TRIANGLES, 0, 6);
2475
2475
  }
2476
2476
  } catch (p) {
@@ -5120,7 +5120,7 @@ const wl = {
5120
5120
  const e = (/* @__PURE__ */ new Date()).valueOf();
5121
5121
  let o = 0, i = 0;
5122
5122
  if (this.map) {
5123
- const z = ((a = this.map) == null ? void 0 : a.getZoom()) + 1, x = (r = this.map) == null ? void 0 : r.getBounds(), S = `${x._sw.lng},${x._sw.lat},${x._ne.lng},${x._ne.lat}`;
5123
+ const z = ((a = this.map) == null ? void 0 : a.getZoom()) + 1, v = (r = this.map) == null ? void 0 : r.getBounds(), S = `${v._sw.lng},${v._sw.lat},${v._ne.lng},${v._ne.lat}`;
5124
5124
  if (this.particleFactor && ((s = this.$refs.layer) != null && s.autoActive)) {
5125
5125
  const C = oo.WEATHER_LAYERS.find((N) => {
5126
5126
  var M;
@@ -5140,46 +5140,46 @@ const wl = {
5140
5140
  }
5141
5141
  );
5142
5142
  if (i = (/* @__PURE__ */ new Date()).valueOf() - (e + o), console.log("weather links elapsed: ", i, ", total: ", o += i), ((n = M == null ? void 0 : M.data) == null ? void 0 : n.code) === 0) {
5143
- const L = (c = M == null ? void 0 : M.data) == null ? void 0 : c.data, v = [];
5143
+ const L = (c = M == null ? void 0 : M.data) == null ? void 0 : c.data, _ = [];
5144
5144
  for (const P in L)
5145
- v.push(
5145
+ _.push(
5146
5146
  Be.get(L[P], {
5147
5147
  headers: {
5148
5148
  Authorization: this.token || this.defaultMeteoToken,
5149
5149
  key: P
5150
5150
  },
5151
5151
  responseType: /\.(jpg|png)$/.test(L[P]) ? "blob" : "json"
5152
- }).catch((k) => {
5153
- console.log(`[${P}] fetch layer error: ${k}`);
5152
+ }).catch((x) => {
5153
+ console.log(`[${P}] fetch layer error: ${x}`);
5154
5154
  })
5155
5155
  );
5156
- const _ = await Promise.all(v);
5157
- this.weatherLayers = {}, _.map((P) => {
5156
+ const k = await Promise.all(_);
5157
+ this.weatherLayers = {}, k.map((P) => {
5158
5158
  var V, X, q, Y;
5159
- const k = ((V = P == null ? void 0 : P.data) == null ? void 0 : V.data) || (P == null ? void 0 : P.data);
5159
+ const x = ((V = P == null ? void 0 : P.data) == null ? void 0 : V.data) || (P == null ? void 0 : P.data);
5160
5160
  let R = (q = (X = P == null ? void 0 : P.config) == null ? void 0 : X.headers) == null ? void 0 : q.key;
5161
- R && k && (this.weatherLayers[R] = {
5162
- raw: k,
5161
+ R && x && (this.weatherLayers[R] = {
5162
+ raw: x,
5163
5163
  type: ((Y = P == null ? void 0 : P.config) == null ? void 0 : Y.responseType) === "blob" ? "image" : "json",
5164
5164
  etime: M.data.etime
5165
5165
  });
5166
5166
  });
5167
5167
  }
5168
5168
  if (i = (/* @__PURE__ */ new Date()).valueOf() - (e + o), console.log("weather layers elapsed: ", i, ", total: ", o += i), this.weatherLayers["swell-direction"] || this.weatherLayers["swell-height"]) {
5169
- const L = (g = this.weatherLayers["swell-direction"]) == null ? void 0 : g.raw, v = (p = this.weatherLayers["swell-height"]) == null ? void 0 : p.raw;
5169
+ const L = (g = this.weatherLayers["swell-direction"]) == null ? void 0 : g.raw, _ = (p = this.weatherLayers["swell-height"]) == null ? void 0 : p.raw;
5170
5170
  delete this.weatherLayers["swell-direction"], delete this.weatherLayers["swell-height"], this.weatherLayers.swell = {
5171
5171
  type: "json",
5172
5172
  direction: L,
5173
- height: { raw: v },
5173
+ height: { raw: _ },
5174
5174
  etime: M.data.etime
5175
5175
  };
5176
5176
  }
5177
5177
  if (this.weatherLayers["current-direction"] || this.weatherLayers["current-speed"]) {
5178
- const L = (d = this.weatherLayers["current-direction"]) == null ? void 0 : d.raw, v = (f = this.weatherLayers["current-speed"]) == null ? void 0 : f.raw;
5178
+ const L = (d = this.weatherLayers["current-direction"]) == null ? void 0 : d.raw, _ = (f = this.weatherLayers["current-speed"]) == null ? void 0 : f.raw;
5179
5179
  delete this.weatherLayers["current-direction"], delete this.weatherLayers["current-speed"], this.weatherLayers.current = {
5180
5180
  type: "json",
5181
5181
  direction: L,
5182
- speed: { raw: v },
5182
+ speed: { raw: _ },
5183
5183
  etime: M.data.etime
5184
5184
  };
5185
5185
  }
@@ -5240,7 +5240,7 @@ const wl = {
5240
5240
  );
5241
5241
  },
5242
5242
  handleDrawWeather4Json() {
5243
- var g, p, d, f, z, x, S;
5243
+ var g, p, d, f, z, v, S;
5244
5244
  const t = (/* @__PURE__ */ new Date()).valueOf();
5245
5245
  let e = 0, o = 0;
5246
5246
  const i = (g = this.map) == null ? void 0 : g.getBounds(), a = (p = this.map) == null ? void 0 : p.getZoom(), r = oe.convertToStdLng(i._sw.lng), s = oe.convertToStdLng(i._ne.lng), n = Math.floor(i._sw.lat), c = Math.ceil(i._ne.lat);
@@ -5251,165 +5251,165 @@ const wl = {
5251
5251
  if (C === "swell") {
5252
5252
  N = !0;
5253
5253
  const L = ((d = this.weatherLayers[C]) == null ? void 0 : d.direction) || {};
5254
- for (const _ in L)
5255
- if (_ > n && _ < c && (!(a <= this.zoom) || _ % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
5256
- const P = L[_].lng;
5257
- r > s ? P.forEach((k, R) => {
5254
+ for (const k in L)
5255
+ if (k > n && k < c && (!(a <= this.zoom) || k % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
5256
+ const P = L[k].lng;
5257
+ r > s ? P.forEach((x, R) => {
5258
5258
  var V, X, q, Y, $, ee;
5259
5259
  if (a < 2) {
5260
- if ((k >= 0 && k <= 360 || k >= -360 && k <= 0) && k % 10 === 0) {
5261
- const Q = E.point([k, _], {
5262
- val: ((V = L[_].val) == null ? void 0 : V[R]) || ((X = L[_].dir) == null ? void 0 : X[R]),
5263
- spd: (q = L[_].spd) == null ? void 0 : q[R]
5260
+ if ((x >= 0 && x <= 360 || x >= -360 && x <= 0) && x % 10 === 0) {
5261
+ const Q = E.point([x, k], {
5262
+ val: ((V = L[k].val) == null ? void 0 : V[R]) || ((X = L[k].dir) == null ? void 0 : X[R]),
5263
+ spd: (q = L[k].spd) == null ? void 0 : q[R]
5264
5264
  });
5265
5265
  M.push(Q);
5266
5266
  }
5267
- } else if ((k >= r && k <= 180 || k >= -180 && k <= s) && (!(a <= this.zoom) || k % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
5268
- const Q = E.point([k, _], {
5269
- val: ((Y = L[_].val) == null ? void 0 : Y[R]) || (($ = L[_].dir) == null ? void 0 : $[R]),
5270
- spd: (ee = L[_].spd) == null ? void 0 : ee[R]
5267
+ } else if ((x >= r && x <= 180 || x >= -180 && x <= s) && (!(a <= this.zoom) || x % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
5268
+ const Q = E.point([x, k], {
5269
+ val: ((Y = L[k].val) == null ? void 0 : Y[R]) || (($ = L[k].dir) == null ? void 0 : $[R]),
5270
+ spd: (ee = L[k].spd) == null ? void 0 : ee[R]
5271
5271
  });
5272
5272
  M.push(Q);
5273
5273
  }
5274
- }) : P.forEach((k, R) => {
5274
+ }) : P.forEach((x, R) => {
5275
5275
  var V, X, q, Y, $, ee;
5276
5276
  if (r < 2) {
5277
- if ((k >= 0 && k <= 360 || k >= -360 && k <= 0) && k % 10 === 0) {
5278
- const Q = E.point([k, _], {
5279
- val: ((V = L[_].val) == null ? void 0 : V[R]) || ((X = L[_].dir) == null ? void 0 : X[R]),
5280
- spd: (q = L[_].spd) == null ? void 0 : q[R]
5277
+ if ((x >= 0 && x <= 360 || x >= -360 && x <= 0) && x % 10 === 0) {
5278
+ const Q = E.point([x, k], {
5279
+ val: ((V = L[k].val) == null ? void 0 : V[R]) || ((X = L[k].dir) == null ? void 0 : X[R]),
5280
+ spd: (q = L[k].spd) == null ? void 0 : q[R]
5281
5281
  });
5282
5282
  M.push(Q);
5283
5283
  }
5284
- } else if (k >= r && k <= s && (!(a <= this.zoom) || k % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
5285
- const Q = E.point([k, _], {
5286
- val: ((Y = L[_].val) == null ? void 0 : Y[R]) || (($ = L[_].dir) == null ? void 0 : $[R]),
5287
- spd: (ee = L[_].spd) == null ? void 0 : ee[R]
5284
+ } else if (x >= r && x <= s && (!(a <= this.zoom) || x % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
5285
+ const Q = E.point([x, k], {
5286
+ val: ((Y = L[k].val) == null ? void 0 : Y[R]) || (($ = L[k].dir) == null ? void 0 : $[R]),
5287
+ spd: (ee = L[k].spd) == null ? void 0 : ee[R]
5288
5288
  });
5289
5289
  M.push(Q);
5290
5290
  }
5291
5291
  });
5292
5292
  }
5293
5293
  o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("swell direction elapsed: ", o, ", total: ", e += o);
5294
- const v = this.weatherLayers[C].height;
5295
- if (v) {
5296
- if (!v.data) {
5297
- const _ = [];
5298
- for (const P in (f = v.raw) == null ? void 0 : f.LineString) {
5299
- const k = v.raw.LineString[P];
5300
- for (const R of k)
5301
- _.push(
5294
+ const _ = this.weatherLayers[C].height;
5295
+ if (_) {
5296
+ if (!_.data) {
5297
+ const k = [];
5298
+ for (const P in (f = _.raw) == null ? void 0 : f.LineString) {
5299
+ const x = _.raw.LineString[P];
5300
+ for (const R of x)
5301
+ k.push(
5302
5302
  E.lineString(R, {
5303
5303
  val: Number(P)
5304
5304
  })
5305
5305
  );
5306
- v.data = E.featureCollection(_);
5306
+ _.data = E.featureCollection(k);
5307
5307
  }
5308
5308
  }
5309
- if (v.data) {
5310
- const _ = this.handleBboxClip(v.data, i);
5311
- M = M.concat(_);
5309
+ if (_.data) {
5310
+ const k = this.handleBboxClip(_.data, i);
5311
+ M = M.concat(k);
5312
5312
  }
5313
5313
  o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("swell height elapsed: ", o, ", total: ", e += o);
5314
5314
  }
5315
5315
  } else if (C === "current") {
5316
5316
  N = !0;
5317
5317
  const L = ((z = this.weatherLayers[C]) == null ? void 0 : z.direction) || {};
5318
- for (const _ in L)
5319
- if (_ > n && _ < c && (!(a <= this.zoom) || _ % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
5320
- const P = L[_].lng;
5321
- r > s ? P.forEach((k, R) => {
5318
+ for (const k in L)
5319
+ if (k > n && k < c && (!(a <= this.zoom) || k % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
5320
+ const P = L[k].lng;
5321
+ r > s ? P.forEach((x, R) => {
5322
5322
  var V, X, q, Y, $, ee;
5323
5323
  if (a < 2) {
5324
- if ((k >= 0 && k <= 360 || k >= -360 && k <= 0) && k % 10 === 0) {
5325
- const Q = E.point([k, _], {
5326
- val: ((V = L[_].val) == null ? void 0 : V[R]) || ((X = L[_].dir) == null ? void 0 : X[R]),
5327
- spd: (q = L[_].spd) == null ? void 0 : q[R]
5324
+ if ((x >= 0 && x <= 360 || x >= -360 && x <= 0) && x % 10 === 0) {
5325
+ const Q = E.point([x, k], {
5326
+ val: ((V = L[k].val) == null ? void 0 : V[R]) || ((X = L[k].dir) == null ? void 0 : X[R]),
5327
+ spd: (q = L[k].spd) == null ? void 0 : q[R]
5328
5328
  });
5329
5329
  M.push(Q);
5330
5330
  }
5331
- } else if ((k >= r && k <= 180 || k >= -180 && k <= s) && (!(a <= this.zoom) || k % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
5332
- const Q = E.point([k, _], {
5333
- val: ((Y = L[_].val) == null ? void 0 : Y[R]) || (($ = L[_].dir) == null ? void 0 : $[R]),
5334
- spd: (ee = L[_].spd) == null ? void 0 : ee[R]
5331
+ } else if ((x >= r && x <= 180 || x >= -180 && x <= s) && (!(a <= this.zoom) || x % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
5332
+ const Q = E.point([x, k], {
5333
+ val: ((Y = L[k].val) == null ? void 0 : Y[R]) || (($ = L[k].dir) == null ? void 0 : $[R]),
5334
+ spd: (ee = L[k].spd) == null ? void 0 : ee[R]
5335
5335
  });
5336
5336
  M.push(Q);
5337
5337
  }
5338
- }) : P.forEach((k, R) => {
5338
+ }) : P.forEach((x, R) => {
5339
5339
  var V, X, q, Y, $, ee;
5340
5340
  if (r < 2) {
5341
- if ((k >= 0 && k <= 360 || k >= -360 && k <= 0) && k % 10 === 0) {
5342
- const Q = E.point([k, _], {
5343
- val: ((V = L[_].val) == null ? void 0 : V[R]) || ((X = L[_].dir) == null ? void 0 : X[R]),
5344
- spd: (q = L[_].spd) == null ? void 0 : q[R]
5341
+ if ((x >= 0 && x <= 360 || x >= -360 && x <= 0) && x % 10 === 0) {
5342
+ const Q = E.point([x, k], {
5343
+ val: ((V = L[k].val) == null ? void 0 : V[R]) || ((X = L[k].dir) == null ? void 0 : X[R]),
5344
+ spd: (q = L[k].spd) == null ? void 0 : q[R]
5345
5345
  });
5346
5346
  M.push(Q);
5347
5347
  }
5348
- } else if (k >= r && k <= s && (!(a <= this.zoom) || k % (a < this.zoom / 2 ? 5 : 3) === 0)) {
5349
- const Q = E.point([k, _], {
5350
- val: ((Y = L[_].val) == null ? void 0 : Y[R]) || (($ = L[_].dir) == null ? void 0 : $[R]),
5351
- spd: (ee = L[_].spd) == null ? void 0 : ee[R]
5348
+ } else if (x >= r && x <= s && (!(a <= this.zoom) || x % (a < this.zoom / 2 ? 5 : 3) === 0)) {
5349
+ const Q = E.point([x, k], {
5350
+ val: ((Y = L[k].val) == null ? void 0 : Y[R]) || (($ = L[k].dir) == null ? void 0 : $[R]),
5351
+ spd: (ee = L[k].spd) == null ? void 0 : ee[R]
5352
5352
  });
5353
5353
  M.push(Q);
5354
5354
  }
5355
5355
  });
5356
5356
  }
5357
5357
  o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("current direction elapsed: ", o, ", total: ", e += o);
5358
- const v = this.weatherLayers[C].speed;
5359
- if (v) {
5360
- if (!v.data) {
5358
+ const _ = this.weatherLayers[C].speed;
5359
+ if (_) {
5360
+ if (!_.data) {
5361
5361
  const P = [];
5362
- for (const k in (x = v.raw) == null ? void 0 : x.Polygon) {
5363
- const R = v.raw.Polygon[k];
5362
+ for (const x in (v = _.raw) == null ? void 0 : v.Polygon) {
5363
+ const R = _.raw.Polygon[x];
5364
5364
  for (const V of R)
5365
5365
  P.push(
5366
5366
  E.polygon(V, {
5367
- val: Number(k)
5367
+ val: Number(x)
5368
5368
  })
5369
5369
  );
5370
5370
  }
5371
- v.data = E.featureCollection(P);
5371
+ _.data = E.featureCollection(P);
5372
5372
  }
5373
- const _ = a < this.zoom ? v.data.features.filter((P) => P.properties.val > 0.5) : v.data.features;
5374
- M = M.concat(_), o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("current speed elapsed: ", o, ", total: ", e += o);
5373
+ const k = a < this.zoom ? _.data.features.filter((P) => P.properties.val > 0.5) : _.data.features;
5374
+ M = M.concat(k), o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("current speed elapsed: ", o, ", total: ", e += o);
5375
5375
  }
5376
5376
  } else if (C === "wind") {
5377
5377
  N = !0;
5378
5378
  const L = this.weatherLayers.wind.raw;
5379
- for (const v in L)
5380
- if (v > n && v < c && (!(a <= this.zoom) || v % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
5381
- const _ = L[v].lng;
5382
- r > s ? _.forEach((P, k) => {
5379
+ for (const _ in L)
5380
+ if (_ > n && _ < c && (!(a <= this.zoom) || _ % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
5381
+ const k = L[_].lng;
5382
+ r > s ? k.forEach((P, x) => {
5383
5383
  var R, V, X, q;
5384
5384
  if (a < 2) {
5385
5385
  if ((P >= 0 && P <= 360 || P >= -360 && P <= 0) && P % 10 === 0) {
5386
- const Y = E.point([P, v], {
5387
- dir: ((R = L[v].val) == null ? void 0 : R[k]) || ((V = L[v].dir) == null ? void 0 : V[k]),
5388
- spd: L[v].spd[k]
5386
+ const Y = E.point([P, _], {
5387
+ dir: ((R = L[_].val) == null ? void 0 : R[x]) || ((V = L[_].dir) == null ? void 0 : V[x]),
5388
+ spd: L[_].spd[x]
5389
5389
  });
5390
5390
  M.push(Y);
5391
5391
  }
5392
5392
  } else if ((P >= r && P <= 180 || P >= -180 && P <= s) && (!(a <= this.zoom) || P % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
5393
- const Y = E.point([P, v], {
5394
- dir: ((X = L[v].val) == null ? void 0 : X[k]) || ((q = L[v].dir) == null ? void 0 : q[k]),
5395
- spd: L[v].spd[k]
5393
+ const Y = E.point([P, _], {
5394
+ dir: ((X = L[_].val) == null ? void 0 : X[x]) || ((q = L[_].dir) == null ? void 0 : q[x]),
5395
+ spd: L[_].spd[x]
5396
5396
  });
5397
5397
  M.push(Y);
5398
5398
  }
5399
- }) : _.forEach((P, k) => {
5399
+ }) : k.forEach((P, x) => {
5400
5400
  var R, V, X, q;
5401
5401
  if (a < 2) {
5402
5402
  if ((P >= 0 && P <= 360 || P >= -360 && P <= 0) && P % 10 === 0) {
5403
- const Y = E.point([P, v], {
5404
- dir: ((R = L[v].val) == null ? void 0 : R[k]) || ((V = L[v].dir) == null ? void 0 : V[k]),
5405
- spd: L[v].spd[k]
5403
+ const Y = E.point([P, _], {
5404
+ dir: ((R = L[_].val) == null ? void 0 : R[x]) || ((V = L[_].dir) == null ? void 0 : V[x]),
5405
+ spd: L[_].spd[x]
5406
5406
  });
5407
5407
  M.push(Y);
5408
5408
  }
5409
5409
  } else if (P >= r && P <= s && (!(a <= this.zoom) || P % (a < 2 ? 10 : a < 4 ? 5 : 3) === 0)) {
5410
- const Y = E.point([P, v], {
5411
- dir: ((X = L[v].val) == null ? void 0 : X[k]) || ((q = L[v].dir) == null ? void 0 : q[k]),
5412
- spd: L[v].spd[k]
5410
+ const Y = E.point([P, _], {
5411
+ dir: ((X = L[_].val) == null ? void 0 : X[x]) || ((q = L[_].dir) == null ? void 0 : q[x]),
5412
+ spd: L[_].spd[x]
5413
5413
  });
5414
5414
  M.push(Y);
5415
5415
  }
@@ -5423,35 +5423,35 @@ const wl = {
5423
5423
  N = !0;
5424
5424
  const L = this.weatherLayers[C].raw;
5425
5425
  if (L) {
5426
- const v = [];
5427
- for (const _ in L.Polygon) {
5428
- const P = L.Polygon[_];
5429
- for (const k of P)
5430
- v.push(
5431
- E.polygon(k, {
5432
- val: Number(_)
5426
+ const _ = [];
5427
+ for (const k in L.Polygon) {
5428
+ const P = L.Polygon[k];
5429
+ for (const x of P)
5430
+ _.push(
5431
+ E.polygon(x, {
5432
+ val: Number(k)
5433
5433
  })
5434
5434
  );
5435
5435
  }
5436
- for (const _ in L.MultiPolygon) {
5437
- const P = L.MultiPolygon[_];
5438
- for (const k of P)
5439
- v.push(
5440
- E.multiPolygon(k, {
5441
- val: Number(_)
5436
+ for (const k in L.MultiPolygon) {
5437
+ const P = L.MultiPolygon[k];
5438
+ for (const x of P)
5439
+ _.push(
5440
+ E.multiPolygon(x, {
5441
+ val: Number(k)
5442
5442
  })
5443
5443
  );
5444
5444
  }
5445
- for (const _ in L.Point) {
5446
- const P = L.Point[_];
5447
- for (let k = 0; k < ((S = P.lng) == null ? void 0 : S.length); k++)
5448
- v.push(
5449
- E.point([P.lng[k], _], {
5450
- val: Number(P.val[k])
5445
+ for (const k in L.Point) {
5446
+ const P = L.Point[k];
5447
+ for (let x = 0; x < ((S = P.lng) == null ? void 0 : S.length); x++)
5448
+ _.push(
5449
+ E.point([P.lng[x], k], {
5450
+ val: Number(P.val[x])
5451
5451
  })
5452
5452
  );
5453
5453
  }
5454
- M = M.concat(v);
5454
+ M = M.concat(_);
5455
5455
  }
5456
5456
  }
5457
5457
  o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("sig-wave-height elapsed: ", o, ", total: ", e += o);
@@ -5462,26 +5462,26 @@ const wl = {
5462
5462
  N = !0;
5463
5463
  const L = this.weatherLayers[C].raw;
5464
5464
  if (L) {
5465
- const v = [];
5466
- for (const _ in L.LineString) {
5467
- const P = L.LineString[_];
5468
- for (const k of P)
5469
- v.push(
5470
- E.lineString(k, {
5471
- val: Number(_)
5465
+ const _ = [];
5466
+ for (const k in L.LineString) {
5467
+ const P = L.LineString[k];
5468
+ for (const x of P)
5469
+ _.push(
5470
+ E.lineString(x, {
5471
+ val: Number(k)
5472
5472
  })
5473
5473
  );
5474
5474
  }
5475
- for (const _ in L.Point)
5476
- L.Point[_].lng.forEach((P, k) => {
5477
- P = oe.convertToStdLng(P), v.push(
5478
- E.point([P, _], {
5479
- val: L.Point[_].val[k],
5480
- type: L.Point[_].type[k]
5475
+ for (const k in L.Point)
5476
+ L.Point[k].lng.forEach((P, x) => {
5477
+ P = oe.convertToStdLng(P), _.push(
5478
+ E.point([P, k], {
5479
+ val: L.Point[k].val[x],
5480
+ type: L.Point[k].type[x]
5481
5481
  })
5482
5482
  );
5483
5483
  });
5484
- M = M.concat(v);
5484
+ M = M.concat(_);
5485
5485
  }
5486
5486
  }
5487
5487
  o = (/* @__PURE__ */ new Date()).valueOf() - (t + e), console.log("prmsl elapsed: ", o, ", total: ", e += o);
@@ -5529,7 +5529,7 @@ const wl = {
5529
5529
  }, Ol = { class: "text-body-1 py-2" }, Bl = { class: "text-body-1 font-weight-medium" }, El = { class: "text-body-2 opacity-70" }, jl = { class: "text-body-2 opacity-70 mb-3" }, Nl = { class: "text-body-1 font-weight-medium" }, Fl = { class: "text-body-2 opacity-70" }, Hl = { class: "text-body-2 opacity-70 mb-3" }, Gl = { class: "text-body-1 py-2" }, Wl = { class: "text-body-1 font-weight-medium" }, Ul = { class: "text-body-2 opacity-70" }, Vl = { class: "text-body-2 opacity-70 mb-3" }, Yl = { class: "text-body-1 font-weight-medium" }, Zl = { class: "text-body-2 opacity-70" }, Xl = { class: "text-body-2 opacity-70 mb-3" }, ql = { class: "text-body-1 py-2" }, Kl = { class: "text-body-1 font-weight-medium" }, Ql = { class: "text-body-2 opacity-70" }, Jl = { class: "text-body-2 opacity-70 mb-3" };
5530
5530
  function $l(t, e, o, i, a, r) {
5531
5531
  var pe, me, K, ie, F, le, fe, xe, ve, Se, Me, Te, Re, Ie, ye;
5532
- const s = w("VBtn"), n = w("VTooltip"), c = w("VCol"), g = w("VRow"), p = w("VCardText"), d = w("VDivider"), f = w("VCard"), z = w("VSwitch"), x = w("VCardTitle"), S = w("VCardItem"), C = w("VCheckbox"), N = w("VRadio"), M = w("VBtnToggle"), L = w("IdmWindBarb"), v = w("IdmSigWaveHeight"), _ = w("IdmCurrentDirection"), P = w("IdmPrmsl"), k = w("IdmWindParticle"), R = w("IdmCurrentParticle"), V = w("IdmWave"), X = w("IdmSwell"), q = w("IdmIceEdge"), Y = w("IdmIceCover"), $ = w("IdmIceThickness"), ee = w("IdmPrecip3h"), Q = w("IdmVisibility"), se = w("IdmWaterTemp"), de = w("IdmTemp");
5532
+ const s = w("VBtn"), n = w("VTooltip"), c = w("VCol"), g = w("VRow"), p = w("VCardText"), d = w("VDivider"), f = w("VCard"), z = w("VSwitch"), v = w("VCardTitle"), S = w("VCardItem"), C = w("VCheckbox"), N = w("VRadio"), M = w("VBtnToggle"), L = w("IdmWindBarb"), _ = w("IdmSigWaveHeight"), k = w("IdmCurrentDirection"), P = w("IdmPrmsl"), x = w("IdmWindParticle"), R = w("IdmCurrentParticle"), V = w("IdmWave"), X = w("IdmSwell"), q = w("IdmIceEdge"), Y = w("IdmIceCover"), $ = w("IdmIceThickness"), ee = w("IdmPrecip3h"), Q = w("IdmVisibility"), se = w("IdmWaterTemp"), de = w("IdmTemp");
5533
5533
  return b(), T("div", xl, [
5534
5534
  l("div", {
5535
5535
  class: "menu-bar-box transition pa-1",
@@ -5730,7 +5730,7 @@ function $l(t, e, o, i, a, r) {
5730
5730
  default: u(() => [
5731
5731
  h(S, { class: "border-b-thin" }, {
5732
5732
  default: u(() => [
5733
- h(x, {
5733
+ h(v, {
5734
5734
  class: "text-subtitle-1 font-weight-medium",
5735
5735
  style: { "font-size": "16px !important" }
5736
5736
  }, {
@@ -5770,7 +5770,7 @@ function $l(t, e, o, i, a, r) {
5770
5770
  default: u(() => [
5771
5771
  h(S, { class: "border-b-thin" }, {
5772
5772
  default: u(() => [
5773
- h(x, {
5773
+ h(v, {
5774
5774
  class: "text-subtitle-1 font-weight-medium",
5775
5775
  style: { "font-size": "16px !important" }
5776
5776
  }, {
@@ -5885,7 +5885,7 @@ function $l(t, e, o, i, a, r) {
5885
5885
  default: u(() => [
5886
5886
  h(S, { class: "border-b-thin" }, {
5887
5887
  default: u(() => [
5888
- h(x, {
5888
+ h(v, {
5889
5889
  class: "text-subtitle-1 font-weight-medium",
5890
5890
  style: { "font-size": "16px !important" }
5891
5891
  }, {
@@ -5939,7 +5939,7 @@ function $l(t, e, o, i, a, r) {
5939
5939
  wind: (pe = a.weatherLayers) == null ? void 0 : pe.wind,
5940
5940
  "menu-toggle": o.menuToggle
5941
5941
  }, t.$attrs), null, 16, ["map", "map-feather", "wind", "menu-toggle"])) : B("", !0),
5942
- o.map ? (b(), j(v, O({
5942
+ o.map ? (b(), j(_, O({
5943
5943
  key: 2,
5944
5944
  map: o.map,
5945
5945
  "before-layer": "empty-layer-2",
@@ -5947,7 +5947,7 @@ function $l(t, e, o, i, a, r) {
5947
5947
  "menu-toggle": o.menuToggle,
5948
5948
  "active-weather-layers": a.activeWeatherLayers
5949
5949
  }, t.$attrs), null, 16, ["map", "sig-wave-height", "menu-toggle", "active-weather-layers"])) : B("", !0),
5950
- o.map ? (b(), j(_, O({
5950
+ o.map ? (b(), j(k, O({
5951
5951
  key: 3,
5952
5952
  map: o.map,
5953
5953
  "map-feather": o.mapFeather,
@@ -5963,7 +5963,7 @@ function $l(t, e, o, i, a, r) {
5963
5963
  "menu-toggle": o.menuToggle,
5964
5964
  "active-weather-layers": a.activeWeatherLayers
5965
5965
  }, t.$attrs, { theme: o.theme }), null, 16, ["map", "prmsl", "menu-toggle", "active-weather-layers", "theme"])) : B("", !0),
5966
- o.map ? (b(), j(k, O({
5966
+ o.map ? (b(), j(x, O({
5967
5967
  key: 5,
5968
5968
  viewport: a.viewport,
5969
5969
  factor: (F = a.weatherLayers) == null ? void 0 : F["wind-particle"],
@@ -6379,7 +6379,7 @@ class Ua {
6379
6379
  }), a;
6380
6380
  }
6381
6381
  static pickHourly(e, o) {
6382
- var i, a, r, s, n, c, g, p, d, f, z, x, S, C, N, M, L, v, _, P, k, R, V, X, q, Y, $, ee, Q, se, de, pe, me, K, ie, F, le, fe, xe, ve, Se, Me, Te, Re, Ie, ye, H, te, je, Pe;
6382
+ var i, a, r, s, n, c, g, p, d, f, z, v, S, C, N, M, L, _, k, P, x, R, V, X, q, Y, $, ee, Q, se, de, pe, me, K, ie, F, le, fe, xe, ve, Se, Me, Te, Re, Ie, ye, H, te, je, Pe;
6383
6383
  const he = typeof o == "string" ? D(o) : o, ue = e == null ? void 0 : e.weather, G = e == null ? void 0 : e.marine, _e = D((a = (i = ue == null ? void 0 : ue[0]) == null ? void 0 : i.hourly) == null ? void 0 : a.date).utc(), J = _e.clone().add((n = (s = (r = ue == null ? void 0 : ue[0]) == null ? void 0 : r.hourly) == null ? void 0 : s.time) == null ? void 0 : n.at(0), "h"), re = _e.clone().add((p = (g = (c = ue == null ? void 0 : ue[0]) == null ? void 0 : c.hourly) == null ? void 0 : g.time) == null ? void 0 : p.at(-1), "h"), Ae = [];
6384
6384
  if (he.isBetween(J, re, "millisecond", "[]")) {
6385
6385
  const A = he.utc().diff(J, "h", !1);
@@ -6394,7 +6394,7 @@ class Ua {
6394
6394
  Oe += (f = U == null ? void 0 : U.precipitation) == null ? void 0 : f.at(ze);
6395
6395
  ge = {
6396
6396
  temp: (z = U == null ? void 0 : U.temperature_2m) == null ? void 0 : z.at(A),
6397
- apparentTemp: (x = U == null ? void 0 : U.apparent_temperature) == null ? void 0 : x.at(A),
6397
+ apparentTemp: (v = U == null ? void 0 : U.apparent_temperature) == null ? void 0 : v.at(A),
6398
6398
  rh: (S = U == null ? void 0 : U.relative_humidity_2m) == null ? void 0 : S.at(A),
6399
6399
  dp: (C = U == null ? void 0 : U.dew_point_2m) == null ? void 0 : C.at(A),
6400
6400
  precip: {
@@ -6404,11 +6404,11 @@ class Ua {
6404
6404
  sum6Hours: Math.round(Oe * 100) / 100
6405
6405
  },
6406
6406
  pmsl: (L = U == null ? void 0 : U.pressure_msl) == null ? void 0 : L.at(A),
6407
- psurf: (v = U == null ? void 0 : U.surface_pressure) == null ? void 0 : v.at(A),
6408
- code: (_ = U == null ? void 0 : U.weather_code) == null ? void 0 : _.at(A),
6407
+ psurf: (_ = U == null ? void 0 : U.surface_pressure) == null ? void 0 : _.at(A),
6408
+ code: (k = U == null ? void 0 : U.weather_code) == null ? void 0 : k.at(A),
6409
6409
  visibility: this.m2nm((P = U == null ? void 0 : U.visibility) == null ? void 0 : P.at(A)),
6410
6410
  wind: {
6411
- speed: (k = U == null ? void 0 : U.wind_speed_10m) == null ? void 0 : k.at(A),
6411
+ speed: (x = U == null ? void 0 : U.wind_speed_10m) == null ? void 0 : x.at(A),
6412
6412
  kts: (R = U == null ? void 0 : U.wind_speed_10m) == null ? void 0 : R.at(A),
6413
6413
  degree: (V = U == null ? void 0 : U.wind_direction_10m) == null ? void 0 : V.at(A),
6414
6414
  bearing: ((X = U == null ? void 0 : U.wind_direction_10m) == null ? void 0 : X.at(A)) !== null ? (((q = U == null ? void 0 : U.wind_direction_10m) == null ? void 0 : q.at(A)) + 180) % 360 : null,
@@ -6488,7 +6488,7 @@ class Ua {
6488
6488
  };
6489
6489
  }
6490
6490
  static pickDaily(e, o) {
6491
- var i, a, r, s, n, c, g, p, d, f, z, x, S, C, N, M, L, v, _, P, k, R, V, X, q, Y, $, ee, Q, se, de, pe, me, K, ie, F, le, fe, xe, ve, Se, Me, Te, Re;
6491
+ var i, a, r, s, n, c, g, p, d, f, z, v, S, C, N, M, L, _, k, P, x, R, V, X, q, Y, $, ee, Q, se, de, pe, me, K, ie, F, le, fe, xe, ve, Se, Me, Te, Re;
6492
6492
  const Ie = typeof o == "string" ? D(o) : o, ye = e == null ? void 0 : e.weather, H = e == null ? void 0 : e.marine, te = D((r = (a = (i = ye == null ? void 0 : ye[0]) == null ? void 0 : i.daily) == null ? void 0 : a.time) == null ? void 0 : r.at(0)), je = D((c = (n = (s = ye == null ? void 0 : ye[0]) == null ? void 0 : s.daily) == null ? void 0 : n.time) == null ? void 0 : c.at(-1)), Pe = [];
6493
6493
  if (Ie.isBetween(te, je, "millisecond", "[]")) {
6494
6494
  let he, ue;
@@ -6505,7 +6505,7 @@ class Ua {
6505
6505
  },
6506
6506
  apparentTemp: {
6507
6507
  max: (z = J.apparent_temperature_max) == null ? void 0 : z.at(G),
6508
- min: (x = J.apparent_temperature_min) == null ? void 0 : x.at(G)
6508
+ min: (v = J.apparent_temperature_min) == null ? void 0 : v.at(G)
6509
6509
  },
6510
6510
  precip: {
6511
6511
  sum: (S = J.precipitation_sum) == null ? void 0 : S.at(G),
@@ -6513,12 +6513,12 @@ class Ua {
6513
6513
  snowfallSum: (N = J.snowfall_sum) == null ? void 0 : N.at(G),
6514
6514
  showersSum: (M = J.showers_sum) == null ? void 0 : M.at(G),
6515
6515
  hours: (L = J.precipitation_hours) == null ? void 0 : L.at(G),
6516
- probability: (v = J.precipitation_probability_max) == null ? void 0 : v.at(G)
6516
+ probability: (_ = J.precipitation_probability_max) == null ? void 0 : _.at(G)
6517
6517
  },
6518
6518
  rh: {
6519
- max: (_ = J.relative_humidity_2m_max) == null ? void 0 : _.at(G),
6519
+ max: (k = J.relative_humidity_2m_max) == null ? void 0 : k.at(G),
6520
6520
  min: (P = J.relative_humidity_2m_min) == null ? void 0 : P.at(G),
6521
- mean: (k = J.relative_humidity_2m_mean) == null ? void 0 : k.at(G)
6521
+ mean: (x = J.relative_humidity_2m_mean) == null ? void 0 : x.at(G)
6522
6522
  },
6523
6523
  wind: {
6524
6524
  speed: (R = J.wind_speed_10m_max) == null ? void 0 : R.at(G),
@@ -7128,9 +7128,9 @@ const ts = {
7128
7128
  },
7129
7129
  responseType: /\.(jpg|png)$/.test(g.tropicals) ? "blob" : "json"
7130
7130
  }).then((p) => {
7131
- var z, x, S;
7131
+ var z, v, S;
7132
7132
  const d = Wa.convert2Geojson(((z = p == null ? void 0 : p.data) == null ? void 0 : z.data) || (p == null ? void 0 : p.data));
7133
- ((S = (x = p == null ? void 0 : p.config) == null ? void 0 : x.headers) == null ? void 0 : S.key) && d && (this.tropicals = {
7133
+ ((S = (v = p == null ? void 0 : p.config) == null ? void 0 : v.headers) == null ? void 0 : S.key) && d && (this.tropicals = {
7134
7134
  data: d,
7135
7135
  active: !0,
7136
7136
  cached: !0,
@@ -7417,7 +7417,7 @@ const ts = {
7417
7417
  ), this.showTropicalsInfo = !1;
7418
7418
  },
7419
7419
  handleDateChange() {
7420
- var t, e, o, i, a, r, s, n, c, g, p, d, f, z, x, S, C, N, M, L, v, _, P, k, R, V, X, q, Y, $, ee, Q;
7420
+ var t, e, o, i, a, r, s, n, c, g, p, d, f, z, v, S, C, N, M, L, _, k, P, x, R, V, X, q, Y, $, ee, Q;
7421
7421
  if ((t = this.interpolateMarkers) == null || t.forEach((se) => se == null ? void 0 : se.remove()), this.circleSourceData.features = [], (e = this.interpolateData) != null && e.length && this.tropicals.active) {
7422
7422
  const se = D(this.realTime).utc().set({ minute: 0, second: 0, millisecond: 0 }), de = this.interpolateData.filter((K) => K.properties.date === (se == null ? void 0 : se.format()) && !K.properties.disabled), pe = this.handleComputePolygons(de), me = E.featureCollection([...de]);
7423
7423
  pe.forEach((K) => {
@@ -7439,7 +7439,7 @@ const ts = {
7439
7439
  for (const K of de)
7440
7440
  if (!K.properties.disabled) {
7441
7441
  let ie = "#f44336";
7442
- ((n = (s = K.properties) == null ? void 0 : s.wind) == null ? void 0 : n.kts) < 32 || !((g = (c = K.properties) == null ? void 0 : c.wind) != null && g.kts) ? ie = "#03f869" : ((d = (p = K.properties) == null ? void 0 : p.wind) == null ? void 0 : d.kts) >= 32 && ((z = (f = K.properties) == null ? void 0 : f.wind) == null ? void 0 : z.kts) < 47 ? ie = "#f2f202" : ((S = (x = K.properties) == null ? void 0 : x.wind) == null ? void 0 : S.kts) >= 47 && ((N = (C = K.properties) == null ? void 0 : C.wind) == null ? void 0 : N.kts) < 63 ? ie = "#ff9100" : ((L = (M = K.properties) == null ? void 0 : M.wind) == null ? void 0 : L.kts) >= 63 && ((_ = (v = K.properties) == null ? void 0 : v.wind) == null ? void 0 : _.kts) < 79 ? ie = "#f44336" : ((k = (P = K.properties) == null ? void 0 : P.wind) == null ? void 0 : k.kts) >= 79 && ((V = (R = K.properties) == null ? void 0 : R.wind) == null ? void 0 : V.kts) < 94 ? ie = "#f903d0" : ((q = (X = K.properties) == null ? void 0 : X.wind) == null ? void 0 : q.kts) >= 94 ? ie = "#8702f9" : ie = "#f44336";
7442
+ ((n = (s = K.properties) == null ? void 0 : s.wind) == null ? void 0 : n.kts) < 32 || !((g = (c = K.properties) == null ? void 0 : c.wind) != null && g.kts) ? ie = "#03f869" : ((d = (p = K.properties) == null ? void 0 : p.wind) == null ? void 0 : d.kts) >= 32 && ((z = (f = K.properties) == null ? void 0 : f.wind) == null ? void 0 : z.kts) < 47 ? ie = "#f2f202" : ((S = (v = K.properties) == null ? void 0 : v.wind) == null ? void 0 : S.kts) >= 47 && ((N = (C = K.properties) == null ? void 0 : C.wind) == null ? void 0 : N.kts) < 63 ? ie = "#ff9100" : ((L = (M = K.properties) == null ? void 0 : M.wind) == null ? void 0 : L.kts) >= 63 && ((k = (_ = K.properties) == null ? void 0 : _.wind) == null ? void 0 : k.kts) < 79 ? ie = "#f44336" : ((x = (P = K.properties) == null ? void 0 : P.wind) == null ? void 0 : x.kts) >= 79 && ((V = (R = K.properties) == null ? void 0 : R.wind) == null ? void 0 : V.kts) < 94 ? ie = "#f903d0" : ((q = (X = K.properties) == null ? void 0 : X.wind) == null ? void 0 : q.kts) >= 94 ? ie = "#8702f9" : ie = "#f44336";
7443
7443
  const F = `<svg t="1719918955501"
7444
7444
  class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" p-id="18382"
7445
7445
  xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200">
@@ -7466,13 +7466,13 @@ const ts = {
7466
7466
  var r, s, n, c, g, p, d, f;
7467
7467
  const e = t.features[0], o = (s = (r = this.tropicals) == null ? void 0 : r.data) == null ? void 0 : s.features.filter(
7468
7468
  (z) => {
7469
- var x;
7470
- return z.geometry.type === "LineString" && z.properties.type === "forecast" && z.properties.name === ((x = e == null ? void 0 : e.properties) == null ? void 0 : x.name);
7469
+ var v;
7470
+ return z.geometry.type === "LineString" && z.properties.type === "forecast" && z.properties.name === ((v = e == null ? void 0 : e.properties) == null ? void 0 : v.name);
7471
7471
  }
7472
7472
  ), i = (c = (n = this.tropicals) == null ? void 0 : n.data) == null ? void 0 : c.features.filter(
7473
7473
  (z) => {
7474
- var x;
7475
- return z.geometry.type === "LineString" && z.properties.type === "history" && z.properties.name === ((x = e == null ? void 0 : e.properties) == null ? void 0 : x.name);
7474
+ var v;
7475
+ return z.geometry.type === "LineString" && z.properties.type === "history" && z.properties.name === ((v = e == null ? void 0 : e.properties) == null ? void 0 : v.name);
7476
7476
  }
7477
7477
  );
7478
7478
  this.activeTropicals = {
@@ -7617,11 +7617,11 @@ function xs(t, e, o, i, a, r) {
7617
7617
  default: u(() => [
7618
7618
  h(c, null, {
7619
7619
  default: u(() => {
7620
- var f, z, x, S, C, N, M, L, v, _;
7620
+ var f, z, v, S, C, N, M, L, _, k;
7621
7621
  return [
7622
7622
  l("div", is, [
7623
7623
  l("span", rs, y((f = a.activeTropicals) == null ? void 0 : f.name), 1),
7624
- (x = (z = a.activeTropicals) == null ? void 0 : z.history) != null && x.level ? (b(), T("span", ls, ", " + y((C = (S = a.activeTropicals) == null ? void 0 : S.history) == null ? void 0 : C.level), 1)) : B("", !0)
7624
+ (v = (z = a.activeTropicals) == null ? void 0 : z.history) != null && v.level ? (b(), T("span", ls, ", " + y((C = (S = a.activeTropicals) == null ? void 0 : S.history) == null ? void 0 : C.level), 1)) : B("", !0)
7625
7625
  ]),
7626
7626
  h(s, {
7627
7627
  icon: "",
@@ -7638,7 +7638,7 @@ function xs(t, e, o, i, a, r) {
7638
7638
  }),
7639
7639
  l("div", ss, [
7640
7640
  e[6] || (e[6] = l("span", { class: "opacity-70" }, "Last update: ", -1)),
7641
- l("span", null, y(r.computeTime(((M = (N = a.activeTropicals) == null ? void 0 : N.history) == null ? void 0 : M.updated) || ((_ = (v = (L = a.activeTropicals) == null ? void 0 : L.forecasts) == null ? void 0 : v.filter((P) => !P.disabled)[0]) == null ? void 0 : _.date))), 1)
7641
+ l("span", null, y(r.computeTime(((M = (N = a.activeTropicals) == null ? void 0 : N.history) == null ? void 0 : M.updated) || ((k = (_ = (L = a.activeTropicals) == null ? void 0 : L.forecasts) == null ? void 0 : _.filter((P) => !P.disabled)[0]) == null ? void 0 : k.date))), 1)
7642
7642
  ])
7643
7643
  ];
7644
7644
  }),
@@ -7647,13 +7647,13 @@ function xs(t, e, o, i, a, r) {
7647
7647
  h(g),
7648
7648
  h(c, { class: "text-body-1" }, {
7649
7649
  default: u(() => {
7650
- var f, z, x, S, C, N, M, L, v;
7650
+ var f, z, v, S, C, N, M, L, _;
7651
7651
  return [
7652
7652
  l("div", ns, [
7653
7653
  l("div", cs, [
7654
7654
  e[7] || (e[7] = l("label", { class: "opacity-70 pr-1" }, "Wind speed : ", -1)),
7655
7655
  l("span", null, y(((z = (f = a.activeTropicals) == null ? void 0 : f.history) == null ? void 0 : z.kts) || "-") + " kts", 1),
7656
- l("span", null, ", BF " + y(r.computeBF(((S = (x = a.activeTropicals) == null ? void 0 : x.history) == null ? void 0 : S.kts) || "-")), 1)
7656
+ l("span", null, ", BF " + y(r.computeBF(((S = (v = a.activeTropicals) == null ? void 0 : v.history) == null ? void 0 : S.kts) || "-")), 1)
7657
7657
  ]),
7658
7658
  l("div", ms, [
7659
7659
  e[8] || (e[8] = l("label", { class: "opacity-70 pr-1" }, "Pressure : ", -1)),
@@ -7676,16 +7676,16 @@ function xs(t, e, o, i, a, r) {
7676
7676
  style: { width: "max-content" }
7677
7677
  }, "Forecast Models : ", -1)),
7678
7678
  l("div", gs, [
7679
- (b(!0), T(ke, null, Le((v = a.activeTropicals) == null ? void 0 : v.forecasts, (_, P) => (b(), j(s, {
7679
+ (b(!0), T(ke, null, Le((_ = a.activeTropicals) == null ? void 0 : _.forecasts, (k, P) => (b(), j(s, {
7680
7680
  key: P,
7681
7681
  density: "compact",
7682
- variant: _.disabled ? "outlined" : "flat",
7683
- color: _.disabled ? "" : "primary",
7684
- class: We(["model text-none text-body-1", _.disabled ? "" : "btn-border-2"]),
7685
- onClick: (k) => r.handleForecastToggle(_)
7682
+ variant: k.disabled ? "outlined" : "flat",
7683
+ color: k.disabled ? "" : "primary",
7684
+ class: We(["model text-none text-body-1", k.disabled ? "" : "btn-border-2"]),
7685
+ onClick: (x) => r.handleForecastToggle(k)
7686
7686
  }, {
7687
7687
  default: u(() => [
7688
- W(y(_.model), 1)
7688
+ W(y(k.model), 1)
7689
7689
  ]),
7690
7690
  _: 2
7691
7691
  }, 1032, ["variant", "color", "class", "onClick"]))), 128))
@@ -7972,7 +7972,7 @@ const vs = {
7972
7972
  style: { height: "56px" }
7973
7973
  };
7974
7974
  function Ps(t, e, o, i, a, r) {
7975
- const s = w("VBtn"), n = w("VDatePicker"), c = w("VDivider"), g = w("VListItemTitle"), p = w("VListItem"), d = w("VList"), f = w("VCardText"), z = w("VCardActions"), x = w("VCard");
7975
+ const s = w("VBtn"), n = w("VDatePicker"), c = w("VDivider"), g = w("VListItemTitle"), p = w("VListItem"), d = w("VList"), f = w("VCardText"), z = w("VCardActions"), v = w("VCard");
7976
7976
  return b(), T("div", _s, [
7977
7977
  h(s, {
7978
7978
  text: "",
@@ -7985,7 +7985,7 @@ function Ps(t, e, o, i, a, r) {
7985
7985
  ]),
7986
7986
  _: 1
7987
7987
  }, 8, ["onClick"]),
7988
- a.showDatePicker ? (b(), j(x, {
7988
+ a.showDatePicker ? (b(), j(v, {
7989
7989
  key: 0,
7990
7990
  class: "card-box d-flex flex-column"
7991
7991
  }, {
@@ -8221,7 +8221,7 @@ const Cs = {
8221
8221
  },
8222
8222
  toggle: {
8223
8223
  handler() {
8224
- this.showForm = !!this.toggle, this.handleBind();
8224
+ this.showForm = !!this.toggle, this.map && this.handleBind();
8225
8225
  },
8226
8226
  immediate: !0
8227
8227
  },
@@ -8260,12 +8260,12 @@ const Cs = {
8260
8260
  handleMenuToggle() {
8261
8261
  this.isLogin ? this.toggle = !this.toggle : this.$emit("login");
8262
8262
  },
8263
- clickForm() {
8263
+ submitForm() {
8264
8264
  var t;
8265
8265
  this.showMeteo = !1, (t = this.meteoMarker) == null || t.remove(), this.meteoMarker = void 0, this.$refs.spotForm.validate().then(async (e) => {
8266
8266
  var o;
8267
8267
  if (e != null && e.valid) {
8268
- this.form.lat = (Number(this.form.latDegree ?? 0) + Number(this.form.latMinute ?? 0) / 60) * (this.form.latDirection === "N" ? 1 : -1), this.form.lng = (Number(this.form.lngDegree ?? 0) + Number(this.form.lngMinute ?? 0) / 60) * (this.form.lngDirection === "E" ? 1 : -1), this.point = {
8268
+ this.showMeteo = !0, this.form.lat = (Number(this.form.latDegree ?? 0) + Number(this.form.latMinute ?? 0) / 60) * (this.form.latDirection === "N" ? 1 : -1), this.form.lng = (Number(this.form.lngDegree ?? 0) + Number(this.form.lngMinute ?? 0) / 60) * (this.form.lngDirection === "E" ? 1 : -1), this.point = {
8269
8269
  lat: this.form.lat,
8270
8270
  lng: this.form.lng
8271
8271
  };
@@ -8294,7 +8294,7 @@ const Cs = {
8294
8294
  this.showForm = !1, this.cancelForm(), !this.showForm && !this.showMeteo && (this.toggle = !1), (t = this.positionMarker) == null || t.remove(), this.positionMarker = void 0;
8295
8295
  },
8296
8296
  async fetchMeteoData(t) {
8297
- this.loading = !0, this.meteoData = [];
8297
+ this.loading = !0, this.handleRender([t.lng, t.lat]), this.meteoData = [];
8298
8298
  const { weatherModels: e, marineModels: o } = io.autoPickMeteoModel(t.forecastModel);
8299
8299
  let i = {
8300
8300
  lat: t.lat,
@@ -8308,10 +8308,10 @@ const Cs = {
8308
8308
  Authorization: this.token || this.defaultMeteoToken
8309
8309
  }
8310
8310
  });
8311
- (a == null ? void 0 : a.data.code) === 0 && (this.meteoData = a == null ? void 0 : a.data.data, this.meteoData.lng = t.lng, this.meteoData.lat = t.lat, this.initTableData(this.meteoData), this.handleRender([t.lng, t.lat])), this.loading = !1;
8311
+ (a == null ? void 0 : a.data.code) === 0 && (this.meteoData = a == null ? void 0 : a.data.data, this.meteoData.lng = t.lng, this.meteoData.lat = t.lat, this.initTableData(this.meteoData)), this.loading = !1;
8312
8312
  },
8313
8313
  async fetchHistoryData(t) {
8314
- this.loading = !0, this.meteoData = [];
8314
+ this.loading = !0, this.handleRender([t.lng, t.lat]), this.meteoData = [];
8315
8315
  const { weatherModels: e, marineModels: o } = io.autoPickMeteoModel(t.forecastModel), i = {
8316
8316
  lat: t.lat,
8317
8317
  lng: t.lng,
@@ -8325,17 +8325,17 @@ const Cs = {
8325
8325
  Authorization: this.token || this.defaultMeteoToken
8326
8326
  }
8327
8327
  });
8328
- (a == null ? void 0 : a.data.code) === 0 && (this.meteoData = a == null ? void 0 : a.data.data, this.meteoData.lng = t.lng, this.meteoData.lat = t.lat, this.initTableData(this.meteoData), this.handleRender([t.lng, t.lat])), this.loading = !1;
8328
+ (a == null ? void 0 : a.data.code) === 0 && (this.meteoData = a == null ? void 0 : a.data.data, this.meteoData.lng = t.lng, this.meteoData.lat = t.lat, this.initTableData(this.meteoData)), this.loading = !1;
8329
8329
  },
8330
8330
  initTableData(t) {
8331
- var o, i, a, r, s, n, c, g, p, d, f, z, x, S, C, N, M, L, v, _, P, k, R, V, X, q, Y, $, ee, Q, se, de, pe, me, K, ie, F, le, fe, xe, ve;
8331
+ var o, i, a, r, s, n, c, g, p, d, f, z, v, S, C, N, M, L, _, k, P, x, R, V, X, q, Y, $, ee, Q, se, de, pe, me, K, ie, F, le, fe, xe, ve;
8332
8332
  this.currentHourData = {}, this.positionGmt = (i = (o = t == null ? void 0 : t.weather) == null ? void 0 : o[0]) == null ? void 0 : i.timezone, this.positionOffset = (r = (a = t == null ? void 0 : t.weather) == null ? void 0 : a[0]) == null ? void 0 : r.offset;
8333
8333
  const e = ((s = io.pickHourly(t, D(this.form.dateTime))) == null ? void 0 : s[0]) || {};
8334
- this.currentHourData.utc = e.utc, this.currentHourData.lat = t.lat, this.currentHourData.lng = t.lng, this.currentHourData.temp = this.roundPrecision((n = e == null ? void 0 : e.weather) == null ? void 0 : n.temp, 0) ?? "-", this.currentHourData.precipProbability = this.roundPrecision((g = (c = e == null ? void 0 : e.weather) == null ? void 0 : c.precip) == null ? void 0 : g.probability, 0) ?? "-", this.currentHourData.precip1h = this.roundPrecision((d = (p = e == null ? void 0 : e.weather) == null ? void 0 : p.precip) == null ? void 0 : d.sum, 0) ?? "-", this.currentHourData.visibility = this.roundPrecision((f = e == null ? void 0 : e.weather) == null ? void 0 : f.visibility, 0) ?? "-", this.currentHourData.windSpeed = this.roundPrecision((x = (z = e == null ? void 0 : e.weather) == null ? void 0 : z.wind) == null ? void 0 : x.kts, 1) ?? "-", this.currentHourData.windDir = (C = (S = e == null ? void 0 : e.weather) == null ? void 0 : S.wind) == null ? void 0 : C.direction, this.currentHourData.windLevel = this.roundPrecision((M = (N = e == null ? void 0 : e.weather) == null ? void 0 : N.wind) == null ? void 0 : M.scale, 0) ?? "-", this.currentHourData.windGust = this.roundPrecision((v = (L = e == null ? void 0 : e.weather) == null ? void 0 : L.wind) == null ? void 0 : v.gusts, 1) ?? "-", this.currentHourData.sigwaveHeight = this.roundPrecision((P = (_ = e == null ? void 0 : e.wave) == null ? void 0 : _.sig) == null ? void 0 : P.height, 1) ?? "-", this.currentHourData.sigwaveDir = (R = (k = e == null ? void 0 : e.wave) == null ? void 0 : k.sig) == null ? void 0 : R.direction, this.currentHourData.sigwavePeriod = this.roundPrecision((X = (V = e == null ? void 0 : e.wave) == null ? void 0 : V.sig) == null ? void 0 : X.period, 1) ?? "-", this.currentHourData.windwaveHeight = this.roundPrecision((Y = (q = e == null ? void 0 : e.wave) == null ? void 0 : q.wd) == null ? void 0 : Y.height, 1) ?? "-", this.currentHourData.windwaveDir = (ee = ($ = e == null ? void 0 : e.wave) == null ? void 0 : $.wd) == null ? void 0 : ee.direction, this.currentHourData.windwavePeriod = this.roundPrecision((se = (Q = e == null ? void 0 : e.wave) == null ? void 0 : Q.wd) == null ? void 0 : se.period, 1) ?? "-", this.currentHourData.swellHeight = this.roundPrecision((pe = (de = e == null ? void 0 : e.wave) == null ? void 0 : de.swell) == null ? void 0 : pe.height, 1) ?? "-", this.currentHourData.swellDir = (K = (me = e == null ? void 0 : e.wave) == null ? void 0 : me.swell) == null ? void 0 : K.direction, this.currentHourData.swellPeriod = this.roundPrecision((F = (ie = e == null ? void 0 : e.wave) == null ? void 0 : ie.swell) == null ? void 0 : F.period, 1) ?? "-", this.currentHourData.currentSpeed = this.roundPrecision((le = e == null ? void 0 : e.current) == null ? void 0 : le.speed, 1) ?? "-", this.currentHourData.currentDir = (fe = e == null ? void 0 : e.current) == null ? void 0 : fe.direction, this.currentHourData.currentSpeed = this.roundPrecision((xe = e == null ? void 0 : e.current) == null ? void 0 : xe.speed, 1) ?? "-", this.currentHourData.seaLevel = this.roundPrecision(e == null ? void 0 : e.height, 1) ?? "-", this.currentHourData.seaTemp = this.roundPrecision(e == null ? void 0 : e.sst, 0) ?? "-", this.currentHourData.weatherUrls = (ve = e == null ? void 0 : e.weather) == null ? void 0 : ve.url;
8334
+ this.currentHourData.utc = e.utc, this.currentHourData.lat = t.lat, this.currentHourData.lng = t.lng, this.currentHourData.temp = this.roundPrecision((n = e == null ? void 0 : e.weather) == null ? void 0 : n.temp, 0) ?? "-", this.currentHourData.precipProbability = this.roundPrecision((g = (c = e == null ? void 0 : e.weather) == null ? void 0 : c.precip) == null ? void 0 : g.probability, 0) ?? "-", this.currentHourData.precip1h = this.roundPrecision((d = (p = e == null ? void 0 : e.weather) == null ? void 0 : p.precip) == null ? void 0 : d.sum, 0) ?? "-", this.currentHourData.visibility = this.roundPrecision((f = e == null ? void 0 : e.weather) == null ? void 0 : f.visibility, 0) ?? "-", this.currentHourData.windSpeed = this.roundPrecision((v = (z = e == null ? void 0 : e.weather) == null ? void 0 : z.wind) == null ? void 0 : v.kts, 1) ?? "-", this.currentHourData.windDir = (C = (S = e == null ? void 0 : e.weather) == null ? void 0 : S.wind) == null ? void 0 : C.direction, this.currentHourData.windLevel = this.roundPrecision((M = (N = e == null ? void 0 : e.weather) == null ? void 0 : N.wind) == null ? void 0 : M.scale, 0) ?? "-", this.currentHourData.windGust = this.roundPrecision((_ = (L = e == null ? void 0 : e.weather) == null ? void 0 : L.wind) == null ? void 0 : _.gusts, 1) ?? "-", this.currentHourData.sigwaveHeight = this.roundPrecision((P = (k = e == null ? void 0 : e.wave) == null ? void 0 : k.sig) == null ? void 0 : P.height, 1) ?? "-", this.currentHourData.sigwaveDir = (R = (x = e == null ? void 0 : e.wave) == null ? void 0 : x.sig) == null ? void 0 : R.direction, this.currentHourData.sigwavePeriod = this.roundPrecision((X = (V = e == null ? void 0 : e.wave) == null ? void 0 : V.sig) == null ? void 0 : X.period, 1) ?? "-", this.currentHourData.windwaveHeight = this.roundPrecision((Y = (q = e == null ? void 0 : e.wave) == null ? void 0 : q.wd) == null ? void 0 : Y.height, 1) ?? "-", this.currentHourData.windwaveDir = (ee = ($ = e == null ? void 0 : e.wave) == null ? void 0 : $.wd) == null ? void 0 : ee.direction, this.currentHourData.windwavePeriod = this.roundPrecision((se = (Q = e == null ? void 0 : e.wave) == null ? void 0 : Q.wd) == null ? void 0 : se.period, 1) ?? "-", this.currentHourData.swellHeight = this.roundPrecision((pe = (de = e == null ? void 0 : e.wave) == null ? void 0 : de.swell) == null ? void 0 : pe.height, 1) ?? "-", this.currentHourData.swellDir = (K = (me = e == null ? void 0 : e.wave) == null ? void 0 : me.swell) == null ? void 0 : K.direction, this.currentHourData.swellPeriod = this.roundPrecision((F = (ie = e == null ? void 0 : e.wave) == null ? void 0 : ie.swell) == null ? void 0 : F.period, 1) ?? "-", this.currentHourData.currentSpeed = this.roundPrecision((le = e == null ? void 0 : e.current) == null ? void 0 : le.speed, 1) ?? "-", this.currentHourData.currentDir = (fe = e == null ? void 0 : e.current) == null ? void 0 : fe.direction, this.currentHourData.currentSpeed = this.roundPrecision((xe = e == null ? void 0 : e.current) == null ? void 0 : xe.speed, 1) ?? "-", this.currentHourData.seaLevel = this.roundPrecision(e == null ? void 0 : e.height, 1) ?? "-", this.currentHourData.seaTemp = this.roundPrecision(e == null ? void 0 : e.sst, 0) ?? "-", this.currentHourData.weatherUrls = (ve = e == null ? void 0 : e.weather) == null ? void 0 : ve.url;
8335
8335
  },
8336
8336
  handleBind() {
8337
8337
  var t, e;
8338
- this.toggle ? ((t = this.map) == null || t.on("click", this.handleClick), this.map.getCanvas().style.cursor = "pointer") : ((e = this.map) == null || e.off("click", this.handleClick), this.handleCloseMeteo());
8338
+ this.toggle ? ((t = this.map) == null || t.on("click", this.handleClick), this.map.getCanvas().style.cursor = "crosshair") : ((e = this.map) == null || e.off("click", this.handleClick), this.handleCloseMeteo(), this.map.getCanvas().style.cursor = "grab");
8339
8339
  },
8340
8340
  handleClick(t) {
8341
8341
  if (t.originalEvent.stopPropagation(), t.originalEvent.target.className === "mapboxgl-canvas")
@@ -8355,30 +8355,28 @@ const Cs = {
8355
8355
  (o = this.positionMarker) == null || o.setLngLat([this.point.lng, this.point.lat]);
8356
8356
  else {
8357
8357
  const i = document.createElement("div");
8358
- i.innerHTML = '<svg t="1755510770354" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5552" width="200" height="200"><path d="M511.960615 827.234462s330.358154-215.906462 330.358154-465.526154C842.318769 183.650462 694.468923 39.384615 512 39.384615S181.563077 183.689846 181.563077 361.668923c0 249.659077 330.397538 465.565538 330.397538 465.565539z" fill="#FF8C00" p-id="5553"></path><path d="M511.921231 496.836923a127.054769 127.054769 0 1 0 0-254.148923 127.054769 127.054769 0 0 0 0 254.148923z" fill="#FFFFFF" p-id="5554"></path><path d="M354.461538 945.230769a157.538462 39.384615 0 1 0 315.076924 0 157.538462 39.384615 0 1 0-315.076924 0Z" fill="#494C4F" opacity=".4" p-id="5555"></path></svg>', i.firstChild.style.height = "28px", i.firstChild.style.width = "28px", this.positionMarker = new we.Marker(i).setLngLat([this.point.lng, this.point.lat]).setOffset([0, -14]).addTo(this.map);
8358
+ i.innerHTML = '<svg t="1755510770354" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5552" width="200" height="200"><path d="M511.960615 827.234462s330.358154-215.906462 330.358154-465.526154C842.318769 183.650462 694.468923 39.384615 512 39.384615S181.563077 183.689846 181.563077 361.668923c0 249.659077 330.397538 465.565538 330.397538 465.565539z" fill="#FF8C00" p-id="5553"></path><path d="M511.921231 496.836923a127.054769 127.054769 0 1 0 0-254.148923 127.054769 127.054769 0 0 0 0 254.148923z" fill="#FFFFFF" p-id="5554"></path><path d="M354.461538 945.230769a157.538462 39.384615 0 1 0 315.076924 0 157.538462 39.384615 0 1 0-315.076924 0Z" fill="#494C4F" opacity=".4" p-id="5555"></path></svg>', i.firstChild.style.height = "32px", i.firstChild.style.width = "32px", this.positionMarker = new we.Marker(i).setLngLat([this.point.lng, this.point.lat]).setOffset([0, -16]).addTo(this.map);
8359
8359
  }
8360
8360
  },
8361
8361
  handleRender(t) {
8362
8362
  t && (this.map.flyTo({
8363
8363
  center: t,
8364
- duration: 800
8365
- }), setTimeout(() => {
8366
- this.showMeteo = !0, this.$nextTick(() => {
8367
- var e, o, i;
8368
- if ((e = this.positionMarker) == null || e.remove(), this.positionMarker = void 0, this.meteoMarker)
8369
- (o = this.meteoMarker) == null || o.setLngLat(t);
8370
- else {
8371
- const a = document.createElement("div");
8372
- a.innerHTML = '<svg t="1755510770354" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5552" width="200" height="200"><path d="M511.960615 827.234462s330.358154-215.906462 330.358154-465.526154C842.318769 183.650462 694.468923 39.384615 512 39.384615S181.563077 183.689846 181.563077 361.668923c0 249.659077 330.397538 465.565538 330.397538 465.565539z" fill="#FF8C00" p-id="5553"></path><path d="M511.921231 496.836923a127.054769 127.054769 0 1 0 0-254.148923 127.054769 127.054769 0 0 0 0 254.148923z" fill="#FFFFFF" p-id="5554"></path><path d="M354.461538 945.230769a157.538462 39.384615 0 1 0 315.076924 0 157.538462 39.384615 0 1 0-315.076924 0Z" fill="#494C4F" opacity=".4" p-id="5555"></path></svg>', a.firstChild.style.height = "28px", a.firstChild.style.width = "28px", this.meteoMarker = new we.Marker(a).setLngLat(t).setOffset([0, -14]).addTo(this.map);
8373
- }
8374
- if (this.meteoInfoMarker)
8375
- (i = this.meteoInfoMarker) == null || i.setLngLat(t);
8376
- else {
8377
- const a = document.getElementById("idm-gl4-spot-meteo");
8378
- this.meteoInfoMarker = new we.Marker(a).setLngLat(t).setOffset([0, -200]).addTo(this.map);
8379
- }
8380
- });
8381
- }, 1e3));
8364
+ duration: 500
8365
+ }), this.$nextTick(() => {
8366
+ var e, o, i;
8367
+ if ((e = this.positionMarker) == null || e.remove(), this.positionMarker = void 0, this.meteoMarker)
8368
+ (o = this.meteoMarker) == null || o.setLngLat(t);
8369
+ else {
8370
+ const a = document.createElement("div");
8371
+ a.innerHTML = '<svg t="1755510770354" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="5552" width="200" height="200"><path d="M511.960615 827.234462s330.358154-215.906462 330.358154-465.526154C842.318769 183.650462 694.468923 39.384615 512 39.384615S181.563077 183.689846 181.563077 361.668923c0 249.659077 330.397538 465.565538 330.397538 465.565539z" fill="#FF8C00" p-id="5553"></path><path d="M511.921231 496.836923a127.054769 127.054769 0 1 0 0-254.148923 127.054769 127.054769 0 0 0 0 254.148923z" fill="#FFFFFF" p-id="5554"></path><path d="M354.461538 945.230769a157.538462 39.384615 0 1 0 315.076924 0 157.538462 39.384615 0 1 0-315.076924 0Z" fill="#494C4F" opacity=".4" p-id="5555"></path></svg>', a.firstChild.style.height = "32px", a.firstChild.style.width = "32px", this.meteoMarker = new we.Marker(a).setLngLat(t).setOffset([0, -16]).addTo(this.map);
8372
+ }
8373
+ if (this.meteoInfoMarker)
8374
+ (i = this.meteoInfoMarker) == null || i.setLngLat(t);
8375
+ else {
8376
+ const a = document.getElementById("idm-gl4-spot-meteo");
8377
+ this.meteoInfoMarker = new we.Marker(a).setLngLat(t).setOffset([0, -190]).addTo(this.map);
8378
+ }
8379
+ }));
8382
8380
  },
8383
8381
  handleMeteoMore() {
8384
8382
  this.point.forecastModel = this.forecastModel, this.$emit("meteoMore", this.point);
@@ -8405,7 +8403,7 @@ const Cs = {
8405
8403
  "aria-hidden": "true"
8406
8404
  }, Fs = ["xlink:href"], Hs = { class: "d-flex justify-start align-center" }, Gs = { class: "mx-2" };
8407
8405
  function Ws(t, e, o, i, a, r) {
8408
- const s = w("VBtn"), n = w("VTooltip"), c = w("VCardTitle"), g = w("VDivider"), p = w("VTextField"), d = w("VCol"), f = w("VRow"), z = w("DateTimePicker"), x = w("VBtnToggle"), S = w("VCardActions"), C = w("VForm"), N = w("VCardText"), M = w("VCard"), L = w("VIcon");
8406
+ const s = w("VBtn"), n = w("VTooltip"), c = w("VCardTitle"), g = w("VDivider"), p = w("VTextField"), d = w("VCol"), f = w("VRow"), z = w("DateTimePicker"), v = w("VBtnToggle"), S = w("VCardActions"), C = w("VForm"), N = w("VCardText"), M = w("VCard"), L = w("VIcon");
8409
8407
  return b(), T("div", Ss, [
8410
8408
  l("div", {
8411
8409
  class: "menu-bar-box transition pa-1",
@@ -8415,8 +8413,8 @@ function Ws(t, e, o, i, a, r) {
8415
8413
  text: t.$t("spot.spotsMeteo"),
8416
8414
  location: "left"
8417
8415
  }, {
8418
- activator: u(({ props: v }) => [
8419
- h(s, O(v, {
8416
+ activator: u(({ props: _ }) => [
8417
+ h(s, O(_, {
8420
8418
  "min-width": "32",
8421
8419
  width: "32",
8422
8420
  height: "32",
@@ -8468,7 +8466,7 @@ function Ws(t, e, o, i, a, r) {
8468
8466
  ref: "spotForm",
8469
8467
  autocomplete: "off",
8470
8468
  class: "form-box",
8471
- onSubmit: ao(r.clickForm, ["prevent"])
8469
+ onSubmit: ao(r.submitForm, ["prevent"])
8472
8470
  }, {
8473
8471
  default: u(() => [
8474
8472
  l("div", Ms, [
@@ -8488,7 +8486,7 @@ function Ws(t, e, o, i, a, r) {
8488
8486
  default: u(() => [
8489
8487
  h(p, {
8490
8488
  modelValue: a.form.lngDegree,
8491
- "onUpdate:modelValue": e[0] || (e[0] = (v) => a.form.lngDegree = v),
8489
+ "onUpdate:modelValue": e[0] || (e[0] = (_) => a.form.lngDegree = _),
8492
8490
  rules: a.formRules.lngDegree,
8493
8491
  density: "compact",
8494
8492
  variant: "outlined",
@@ -8507,7 +8505,7 @@ function Ws(t, e, o, i, a, r) {
8507
8505
  default: u(() => [
8508
8506
  h(p, {
8509
8507
  modelValue: a.form.lngMinute,
8510
- "onUpdate:modelValue": e[1] || (e[1] = (v) => a.form.lngMinute = v),
8508
+ "onUpdate:modelValue": e[1] || (e[1] = (_) => a.form.lngMinute = _),
8511
8509
  rules: a.formRules.lngMinute,
8512
8510
  label: "",
8513
8511
  density: "compact",
@@ -8533,7 +8531,7 @@ function Ws(t, e, o, i, a, r) {
8533
8531
  height: "32",
8534
8532
  class: "",
8535
8533
  style: { border: "1px solid rgba(var(--v-theme-on-surface), 0.38)" },
8536
- onClick: e[2] || (e[2] = (v) => a.form.lngDirection = a.form.lngDirection === "E" ? "W" : "E")
8534
+ onClick: e[2] || (e[2] = (_) => a.form.lngDirection = a.form.lngDirection === "E" ? "W" : "E")
8537
8535
  }, {
8538
8536
  default: u(() => [
8539
8537
  W(y(a.form.lngDirection), 1)
@@ -8563,7 +8561,7 @@ function Ws(t, e, o, i, a, r) {
8563
8561
  default: u(() => [
8564
8562
  h(p, {
8565
8563
  modelValue: a.form.latDegree,
8566
- "onUpdate:modelValue": e[3] || (e[3] = (v) => a.form.latDegree = v),
8564
+ "onUpdate:modelValue": e[3] || (e[3] = (_) => a.form.latDegree = _),
8567
8565
  rules: a.formRules.latDegree,
8568
8566
  label: "",
8569
8567
  density: "compact",
@@ -8585,7 +8583,7 @@ function Ws(t, e, o, i, a, r) {
8585
8583
  default: u(() => [
8586
8584
  h(p, {
8587
8585
  modelValue: a.form.latMinute,
8588
- "onUpdate:modelValue": e[4] || (e[4] = (v) => a.form.latMinute = v),
8586
+ "onUpdate:modelValue": e[4] || (e[4] = (_) => a.form.latMinute = _),
8589
8587
  rules: a.formRules.latMinute,
8590
8588
  label: "",
8591
8589
  density: "compact",
@@ -8611,7 +8609,7 @@ function Ws(t, e, o, i, a, r) {
8611
8609
  height: "32",
8612
8610
  class: "text-body-1",
8613
8611
  style: { border: "1px solid rgba(var(--v-theme-on-surface), 0.38)" },
8614
- onClick: e[5] || (e[5] = (v) => a.form.latDirection = a.form.latDirection === "N" ? "S" : "N")
8612
+ onClick: e[5] || (e[5] = (_) => a.form.latDirection = a.form.latDirection === "N" ? "S" : "N")
8615
8613
  }, {
8616
8614
  default: u(() => [
8617
8615
  W(y(a.form.latDirection), 1)
@@ -8643,7 +8641,7 @@ function Ws(t, e, o, i, a, r) {
8643
8641
  "date-time": a.form.dateTime,
8644
8642
  "time-zone": o.timeZone
8645
8643
  }, t.$attrs, {
8646
- onDateTime: e[6] || (e[6] = (v) => a.form.dateTime = v)
8644
+ onDateTime: e[6] || (e[6] = (_) => a.form.dateTime = _)
8647
8645
  }), null, 16, ["date-time", "time-zone"])
8648
8646
  ]),
8649
8647
  _: 1
@@ -8666,9 +8664,9 @@ function Ws(t, e, o, i, a, r) {
8666
8664
  class: "pa-0"
8667
8665
  }, {
8668
8666
  default: u(() => [
8669
- h(x, {
8667
+ h(v, {
8670
8668
  modelValue: a.form.forecastModel,
8671
- "onUpdate:modelValue": e[7] || (e[7] = (v) => a.form.forecastModel = v),
8669
+ "onUpdate:modelValue": e[7] || (e[7] = (_) => a.form.forecastModel = _),
8672
8670
  class: "w-100",
8673
8671
  rounded: "",
8674
8672
  height: "30",
@@ -8763,11 +8761,11 @@ function Ws(t, e, o, i, a, r) {
8763
8761
  default: u(() => [
8764
8762
  h(c, { class: "d-flex justify-space-between align-center" }, {
8765
8763
  default: u(() => {
8766
- var v, _;
8764
+ var _, k, P, x;
8767
8765
  return [
8768
8766
  l("div", Hs, [
8769
8767
  e[23] || (e[23] = l("i", { class: "iconfont icon-a-Spotweather text-h5 map-icon-aqua" }, null, -1)),
8770
- l("div", Gs, y(r.computeLat((v = a.currentHourData) == null ? void 0 : v.lat)) + "," + y(r.computeLng((_ = a.currentHourData) == null ? void 0 : _.lng)), 1)
8768
+ l("div", Gs, y(r.computeLat(((_ = a.form) == null ? void 0 : _.lat) || ((k = a.currentHourData) == null ? void 0 : k.lat))) + "," + y(r.computeLng(((P = a.form) == null ? void 0 : P.lng) || ((x = a.currentHourData) == null ? void 0 : x.lng))), 1)
8771
8769
  ]),
8772
8770
  h(s, {
8773
8771
  class: "mr-n2",
@@ -8809,9 +8807,9 @@ function Ws(t, e, o, i, a, r) {
8809
8807
  class: "pa-2 px-0"
8810
8808
  }, {
8811
8809
  default: u(() => {
8812
- var v;
8810
+ var _;
8813
8811
  return [
8814
- W(y(r.computedTzTime((v = a.currentHourData) == null ? void 0 : v.utc)), 1)
8812
+ W(y(r.computedTzTime((_ = a.currentHourData) == null ? void 0 : _.utc)), 1)
8815
8813
  ];
8816
8814
  }),
8817
8815
  _: 1
@@ -8836,9 +8834,9 @@ function Ws(t, e, o, i, a, r) {
8836
8834
  class: "pa-2 px-0"
8837
8835
  }, {
8838
8836
  default: u(() => {
8839
- var v;
8837
+ var _;
8840
8838
  return [
8841
- W(y(r.computedLocalTime((v = a.currentHourData) == null ? void 0 : v.utc)), 1)
8839
+ W(y(r.computedLocalTime((_ = a.currentHourData) == null ? void 0 : _.utc)), 1)
8842
8840
  ];
8843
8841
  }),
8844
8842
  _: 1
@@ -9119,19 +9117,19 @@ const Vs = {
9119
9117
  var N;
9120
9118
  return ((N = C._element) == null ? void 0 : N.id) === e;
9121
9119
  })[0].setLngLat([(r = (a = t.target) == null ? void 0 : a._lngLat) == null ? void 0 : r.lng, (n = (s = t.target) == null ? void 0 : s._lngLat) == null ? void 0 : n.lat]);
9122
- let x;
9120
+ let v;
9123
9121
  f.features.forEach((C, N) => {
9124
9122
  if (C.geometry.type === "Point" && C.properties.id === e.split("-")[1]) {
9125
- x = N;
9123
+ v = N;
9126
9124
  return;
9127
9125
  }
9128
9126
  });
9129
9127
  const S = f.features.filter((C) => C.geometry.type === "Point");
9130
9128
  this.handleTmpPointUpdate(
9131
9129
  f,
9132
- S[x - 1],
9133
- { lng: (g = (c = t.target) == null ? void 0 : c._lngLat) == null ? void 0 : g.lng, lat: (d = (p = t.target) == null ? void 0 : p._lngLat) == null ? void 0 : d.lat, properties: S[x].properties },
9134
- x === S.length - 1 ? void 0 : S[x + 1]
9130
+ S[v - 1],
9131
+ { lng: (g = (c = t.target) == null ? void 0 : c._lngLat) == null ? void 0 : g.lng, lat: (d = (p = t.target) == null ? void 0 : p._lngLat) == null ? void 0 : d.lat, properties: S[v].properties },
9132
+ v === S.length - 1 ? void 0 : S[v + 1]
9135
9133
  );
9136
9134
  }
9137
9135
  },
@@ -9144,8 +9142,8 @@ const Vs = {
9144
9142
  var C;
9145
9143
  return ((C = S._element) == null ? void 0 : C.id) === e;
9146
9144
  })[0].setLngLat([(r = (a = t.target) == null ? void 0 : a._lngLat) == null ? void 0 : r.lng, (n = (s = t.target) == null ? void 0 : s._lngLat) == null ? void 0 : n.lat]);
9147
- const x = f.features.filter((S) => S.geometry.type === "Point" && S.properties.id === e.split("-")[1])[0];
9148
- x.geometry.coordinates = [(g = (c = t.target) == null ? void 0 : c._lngLat) == null ? void 0 : g.lng, (d = (p = t.target) == null ? void 0 : p._lngLat) == null ? void 0 : d.lat], f.features = f.features.filter((S) => S.geometry.type === "Point"), this.handlePointUpdate(f);
9145
+ const v = f.features.filter((S) => S.geometry.type === "Point" && S.properties.id === e.split("-")[1])[0];
9146
+ v.geometry.coordinates = [(g = (c = t.target) == null ? void 0 : c._lngLat) == null ? void 0 : g.lng, (d = (p = t.target) == null ? void 0 : p._lngLat) == null ? void 0 : d.lat], f.features = f.features.filter((S) => S.geometry.type === "Point"), this.handlePointUpdate(f);
9149
9147
  }
9150
9148
  },
9151
9149
  handleContextmenu(t) {
@@ -9199,8 +9197,8 @@ const Vs = {
9199
9197
  n.mode === "RL" ? f = oe.convertToMonotonicLng([c, g]) : f = oe.convertToMonotonicLng(Fe.interpolateCoordinates(c, g, 200));
9200
9198
  const z = E.lineString(f.map((S) => [S.lng, S.lat]));
9201
9199
  z.properties.dist = p, z.properties.bearing = d, z.properties.total = o, z.properties.name = "Line " + this.currentLineIndex, i.push(z);
9202
- const x = e[a];
9203
- x.properties.totalDist = oe.roundPrecision((n.totalDist ? n.totalDist : 0) + p, 4), x.properties.sumLabel = x.properties.totalDist + " nm";
9200
+ const v = e[a];
9201
+ v.properties.totalDist = oe.roundPrecision((n.totalDist ? n.totalDist : 0) + p, 4), v.properties.sumLabel = v.properties.totalDist + " nm";
9204
9202
  }
9205
9203
  e.push(...i), t.total = o;
9206
9204
  }
@@ -9364,11 +9362,11 @@ const Vs = {
9364
9362
  }
9365
9363
  },
9366
9364
  handleClear(t, e = !0) {
9367
- var s, n, c, g, p, d, f, z, x, S;
9365
+ var s, n, c, g, p, d, f, z, v, S;
9368
9366
  const o = `${t.id}-${this.source}`, i = `${t.id}-${this.layer}`, a = `${t.id}-${this.labelLayer}`, r = `${t.id}-${this.sumLayer}`;
9369
9367
  (s = this.map) != null && s.getLayer(i) && this.map.removeLayer(i), (n = this.map) != null && n.getLayer(a) && this.map.removeLayer(a), (c = this.map) != null && c.getLayer(r) && this.map.removeLayer(r), (g = this.map) != null && g.getLayer(this.tmpLayer) && this.map.removeLayer(this.tmpLayer), (p = this.map) != null && p.getLayer(this.tmpLabelLayer) && this.map.removeLayer(this.tmpLabelLayer), (d = this.closeMarkers[t.id]) == null || d.remove(), this.closeMarkers[t.id] = void 0, (f = this.pointMarkers[t.id]) == null || f.forEach((C) => {
9370
9368
  C == null || C.remove();
9371
- }), this.pointMarkers[t.id] = [], (z = this.tipMarker) == null || z.remove(), this.tipMarker = void 0, e && ((x = this.map) != null && x.getSource(o)) && this.map.removeSource(o), e && ((S = this.map) != null && S.getSource(this.tmpSource)) && this.map.removeSource(this.tmpSource);
9369
+ }), this.pointMarkers[t.id] = [], (z = this.tipMarker) == null || z.remove(), this.tipMarker = void 0, e && ((v = this.map) != null && v.getSource(o)) && this.map.removeSource(o), e && ((S = this.map) != null && S.getSource(this.tmpSource)) && this.map.removeSource(this.tmpSource);
9372
9370
  }
9373
9371
  }
9374
9372
  }, Ys = { class: "idm-gl4-measure" };
@@ -9541,9 +9539,9 @@ function ln(t, e, o, i, a, r) {
9541
9539
  "day-about": a.dayAbout,
9542
9540
  "interval-hour": a.intervalHour
9543
9541
  }, t.$attrs, {
9544
- onCurrentTimestamp: e[0] || (e[0] = (x) => a.currentTimestamp = x),
9545
- onCurrentRealTime: e[1] || (e[1] = (x) => a.currentRealTime = x),
9546
- onTimestampRange: e[2] || (e[2] = (x) => a.timestampRange = x)
9542
+ onCurrentTimestamp: e[0] || (e[0] = (v) => a.currentTimestamp = v),
9543
+ onCurrentRealTime: e[1] || (e[1] = (v) => a.currentRealTime = v),
9544
+ onTimestampRange: e[2] || (e[2] = (v) => a.timestampRange = v)
9547
9545
  }), null, 16, ["date-time", "time-zone", "day-about", "interval-hour"]),
9548
9546
  h(d, {
9549
9547
  text: "",
@@ -9557,13 +9555,13 @@ function ln(t, e, o, i, a, r) {
9557
9555
  default: u(() => [
9558
9556
  h(g, { class: "pa-1" }, {
9559
9557
  default: u(() => [
9560
- (b(!0), T(ke, null, Le(a.intervalOptions, (x, S) => (b(), j(c, {
9558
+ (b(!0), T(ke, null, Le(a.intervalOptions, (v, S) => (b(), j(c, {
9561
9559
  key: S,
9562
- value: x,
9563
- variant: a.intervalHour === x ? "tonal" : "text",
9560
+ value: v,
9561
+ variant: a.intervalHour === v ? "tonal" : "text",
9564
9562
  color: "primary",
9565
9563
  rounded: "",
9566
- active: a.intervalHour === x,
9564
+ active: a.intervalHour === v,
9567
9565
  height: "30",
9568
9566
  "min-height": "30",
9569
9567
  "min-width": "30",
@@ -9571,10 +9569,10 @@ function ln(t, e, o, i, a, r) {
9571
9569
  }, {
9572
9570
  default: u(() => [
9573
9571
  h(n, {
9574
- onClick: (C) => a.intervalHour = x
9572
+ onClick: (C) => a.intervalHour = v
9575
9573
  }, {
9576
9574
  default: u(() => [
9577
- W(y(x) + "h", 1)
9575
+ W(y(v) + "h", 1)
9578
9576
  ]),
9579
9577
  _: 2
9580
9578
  }, 1032, ["onClick"])
@@ -9674,10 +9672,10 @@ function ln(t, e, o, i, a, r) {
9674
9672
  text: t.$t("weather.windBarbs"),
9675
9673
  location: "top"
9676
9674
  }, {
9677
- activator: u(({ props: x }) => {
9675
+ activator: u(({ props: v }) => {
9678
9676
  var S, C;
9679
9677
  return [
9680
- h(d, O(x, {
9678
+ h(d, O(v, {
9681
9679
  class: "pa-1 d-flex",
9682
9680
  color: (S = o.weatherCheckList) != null && S.includes("wind") ? "primary" : "",
9683
9681
  variant: (C = o.weatherCheckList) != null && C.includes("wind") ? "elevated" : "text",
@@ -9700,10 +9698,10 @@ function ln(t, e, o, i, a, r) {
9700
9698
  text: t.$t("weather.sigWaveHeight"),
9701
9699
  location: "top"
9702
9700
  }, {
9703
- activator: u(({ props: x }) => {
9701
+ activator: u(({ props: v }) => {
9704
9702
  var S, C;
9705
9703
  return [
9706
- h(d, O(x, {
9704
+ h(d, O(v, {
9707
9705
  class: "pa-1 d-flex",
9708
9706
  color: (S = o.weatherCheckList) != null && S.includes("sig-wave-height") ? "primary" : "",
9709
9707
  variant: (C = o.weatherCheckList) != null && C.includes("sig-wave-height") ? "elevated" : "text",
@@ -9713,7 +9711,7 @@ function ln(t, e, o, i, a, r) {
9713
9711
  onClick: e[4] || (e[4] = (N) => r.handleClickFastWeather("sig-wave-height"))
9714
9712
  }), {
9715
9713
  default: u(() => [
9716
- l("i", O(x, { class: "iconfont icon-a-WaveHeight" }), null, 16)
9714
+ l("i", O(v, { class: "iconfont icon-a-WaveHeight" }), null, 16)
9717
9715
  ]),
9718
9716
  _: 2
9719
9717
  }, 1040, ["color", "variant"])
@@ -9725,10 +9723,10 @@ function ln(t, e, o, i, a, r) {
9725
9723
  text: t.$t("weather.currentDirection"),
9726
9724
  location: "top"
9727
9725
  }, {
9728
- activator: u(({ props: x }) => {
9726
+ activator: u(({ props: v }) => {
9729
9727
  var S, C;
9730
9728
  return [
9731
- h(d, O(x, {
9729
+ h(d, O(v, {
9732
9730
  class: "pa-1 d-flex",
9733
9731
  color: (S = o.weatherCheckList) != null && S.includes("current-direction") ? "primary" : "",
9734
9732
  variant: (C = o.weatherCheckList) != null && C.includes("current-direction") ? "elevated" : "text",
@@ -9738,7 +9736,7 @@ function ln(t, e, o, i, a, r) {
9738
9736
  onClick: e[5] || (e[5] = (N) => r.handleClickFastWeather("current-direction"))
9739
9737
  }), {
9740
9738
  default: u(() => [
9741
- l("i", O(x, { class: "iconfont icon-Current" }), null, 16)
9739
+ l("i", O(v, { class: "iconfont icon-Current" }), null, 16)
9742
9740
  ]),
9743
9741
  _: 2
9744
9742
  }, 1040, ["color", "variant"])
@@ -9750,8 +9748,8 @@ function ln(t, e, o, i, a, r) {
9750
9748
  text: t.$t("weather.weatherLayers"),
9751
9749
  location: "top"
9752
9750
  }, {
9753
- activator: u(({ props: x }) => [
9754
- h(d, O(x, {
9751
+ activator: u(({ props: v }) => [
9752
+ h(d, O(v, {
9755
9753
  class: "pa-1 d-flex",
9756
9754
  variant: "text",
9757
9755
  height: "24",
@@ -9760,7 +9758,7 @@ function ln(t, e, o, i, a, r) {
9760
9758
  onClick: r.handleClickFastMore
9761
9759
  }), {
9762
9760
  default: u(() => [
9763
- l("i", O(x, { class: "iconfont icon-dots-align" }), null, 16)
9761
+ l("i", O(v, { class: "iconfont icon-dots-align" }), null, 16)
9764
9762
  ]),
9765
9763
  _: 2
9766
9764
  }, 1040, ["onClick"])
@@ -9779,7 +9777,7 @@ function ln(t, e, o, i, a, r) {
9779
9777
  height: "30",
9780
9778
  class: "px-2 elevation-0 text-body-1 btn-border-2",
9781
9779
  color: a.source === "GFS" ? "primary" : "",
9782
- onClick: e[6] || (e[6] = (x) => a.source = "GFS")
9780
+ onClick: e[6] || (e[6] = (v) => a.source = "GFS")
9783
9781
  }, {
9784
9782
  default: u(() => e[15] || (e[15] = [
9785
9783
  W("NOAA", -1)
@@ -9792,7 +9790,7 @@ function ln(t, e, o, i, a, r) {
9792
9790
  height: "30",
9793
9791
  class: "px-2 elevation-0 text-body-1 btn-border-2",
9794
9792
  color: a.source === "ECMWF" ? "primary" : "",
9795
- onClick: e[7] || (e[7] = (x) => a.source = "ECMWF")
9793
+ onClick: e[7] || (e[7] = (v) => a.source = "ECMWF")
9796
9794
  }, {
9797
9795
  default: u(() => e[16] || (e[16] = [
9798
9796
  W("ECMWF", -1)
@@ -9807,11 +9805,11 @@ function ln(t, e, o, i, a, r) {
9807
9805
  style: ae({ right: a.right + "px" })
9808
9806
  }, [
9809
9807
  a.showTimezone ? (b(), T("div", tn, [
9810
- (b(!0), T(ke, null, Le(a.offsets, (x) => (b(), T("div", {
9811
- key: x,
9808
+ (b(!0), T(ke, null, Le(a.offsets, (v) => (b(), T("div", {
9809
+ key: v,
9812
9810
  class: "item rounded text-body-2 hover-active",
9813
- onClick: (S) => a.timeZone = x
9814
- }, y(x < 0 ? x : "+" + x), 9, on))), 128))
9811
+ onClick: (S) => a.timeZone = v
9812
+ }, y(v < 0 ? v : "+" + v), 9, on))), 128))
9815
9813
  ])) : B("", !0),
9816
9814
  l("div", an, [
9817
9815
  h(d, {
@@ -9820,7 +9818,7 @@ function ln(t, e, o, i, a, r) {
9820
9818
  height: "28",
9821
9819
  class: "pa-1 text-body-1",
9822
9820
  color: "primary",
9823
- onClick: e[8] || (e[8] = (x) => a.showTimezone = !a.showTimezone)
9821
+ onClick: e[8] || (e[8] = (v) => a.showTimezone = !a.showTimezone)
9824
9822
  }, {
9825
9823
  default: u(() => [
9826
9824
  W(" UTC " + y(a.timeZone < 0 ? a.timeZone : "+" + a.timeZone), 1)
@@ -9972,7 +9970,7 @@ class dn {
9972
9970
  ne(this, "hi");
9973
9971
  ne(this, "td");
9974
9972
  ne(this, "windy");
9975
- var o, i, a, r, s, n, c, g, p, d, f, z, x, S, C, N, M, L, v, _, P, k, R, V, X, q, Y, $, ee, Q, se, de, pe, me, K, ie, F, le, fe, xe, ve, Se, Me, Te, Re, Ie, ye, H, te, je, Pe, he, ue, G, _e, J, re, Ae, A, ge, Ce, De, Oe, I, U, Ue, Ve, Ye, ze, Ze, Xe, qe, Ke, Qe, Je, $e, et, tt, ot, at, it, rt, lt, st, nt, ct, mt, ht, dt, pt, ut, gt, ft, yt, bt, wt, xt, vt, _t, kt, zt, Lt, Pt, Ct, St, Mt, Tt, Rt, It, At, Dt, Ot, Bt, Et, jt, Nt, Ft, Ht, Gt, Wt, Ut, Vt, Yt, Zt, Xt, qt, Kt, Qt, Jt, so, no, co, mo, ho, po, uo, go, fo, yo, bo, wo, xo, vo, _o, ko, zo, Lo, Po, Co, So, Mo, To, Ro, Io, Ao, Do, Oo, Bo, Eo, jo, No, Fo, Ho, Go, Wo, Uo, Vo, Yo, Zo, Xo, qo, Ko, Qo, Jo, $o, ea, ta, oa, aa, ia, ra, la, sa, na, ca, ma, ha, da, pa, ua, ga, fa, ya, ba, wa, xa, va, _a, ka, za, La, Pa, Ca, Sa, Ma, Ta, Ra, Ia, Aa, Da, Oa, Ba, Ea, ja, Na, Fa, Ha, Ga;
9973
+ var o, i, a, r, s, n, c, g, p, d, f, z, v, S, C, N, M, L, _, k, P, x, R, V, X, q, Y, $, ee, Q, se, de, pe, me, K, ie, F, le, fe, xe, ve, Se, Me, Te, Re, Ie, ye, H, te, je, Pe, he, ue, G, _e, J, re, Ae, A, ge, Ce, De, Oe, I, U, Ue, Ve, Ye, ze, Ze, Xe, qe, Ke, Qe, Je, $e, et, tt, ot, at, it, rt, lt, st, nt, ct, mt, ht, dt, pt, ut, gt, ft, yt, bt, wt, xt, vt, _t, kt, zt, Lt, Pt, Ct, St, Mt, Tt, Rt, It, At, Dt, Ot, Bt, Et, jt, Nt, Ft, Ht, Gt, Wt, Ut, Vt, Yt, Zt, Xt, qt, Kt, Qt, Jt, so, no, co, mo, ho, po, uo, go, fo, yo, bo, wo, xo, vo, _o, ko, zo, Lo, Po, Co, So, Mo, To, Ro, Io, Ao, Do, Oo, Bo, Eo, jo, No, Fo, Ho, Go, Wo, Uo, Vo, Yo, Zo, Xo, qo, Ko, Qo, Jo, $o, ea, ta, oa, aa, ia, ra, la, sa, na, ca, ma, ha, da, pa, ua, ga, fa, ya, ba, wa, xa, va, _a, ka, za, La, Pa, Ca, Sa, Ma, Ta, Ra, Ia, Aa, Da, Oa, Ba, Ea, ja, Na, Fa, Ha, Ga;
9976
9974
  this.i4 = {
9977
9975
  source: {
9978
9976
  type: "raster",
@@ -28554,11 +28552,11 @@ class dn {
28554
28552
  (g = (c = this.originStyle) == null ? void 0 : c.light.layers) == null ? void 0 : g.find((m) => m.id === "ice-area-line"),
28555
28553
  (d = (p = this.originStyle) == null ? void 0 : p.light.layers) == null ? void 0 : d.find((m) => m.id === "loadlines-label"),
28556
28554
  (z = (f = this.originStyle) == null ? void 0 : f.light.layers) == null ? void 0 : z.find((m) => m.id === "loadlines-fill"),
28557
- (S = (x = this.originStyle) == null ? void 0 : x.light.layers) == null ? void 0 : S.find((m) => m.id === "empty-layer-0"),
28555
+ (S = (v = this.originStyle) == null ? void 0 : v.light.layers) == null ? void 0 : S.find((m) => m.id === "empty-layer-0"),
28558
28556
  (N = (C = this.originStyle) == null ? void 0 : C.light.layers) == null ? void 0 : N.find((m) => m.id === "empty-layer-1"),
28559
28557
  (L = (M = this.originStyle) == null ? void 0 : M.light.layers) == null ? void 0 : L.find((m) => m.id === "country-boundaries"),
28560
- (_ = (v = this.originStyle) == null ? void 0 : v.light.layers) == null ? void 0 : _.find((m) => m.id === "water-outline"),
28561
- (k = (P = this.originStyle) == null ? void 0 : P.light.layers) == null ? void 0 : k.find((m) => m.id === "water-outline2"),
28558
+ (k = (_ = this.originStyle) == null ? void 0 : _.light.layers) == null ? void 0 : k.find((m) => m.id === "water-outline"),
28559
+ (x = (P = this.originStyle) == null ? void 0 : P.light.layers) == null ? void 0 : x.find((m) => m.id === "water-outline2"),
28562
28560
  (V = (R = this.originStyle) == null ? void 0 : R.light.layers) == null ? void 0 : V.find((m) => m.id === "empty-layer-2"),
28563
28561
  (q = (X = this.originStyle) == null ? void 0 : X.light.layers) == null ? void 0 : q.find((m) => m.id === "water-line-label"),
28564
28562
  ($ = (Y = this.originStyle) == null ? void 0 : Y.light.layers) == null ? void 0 : $.find((m) => m.id === "water-point-label"),
@@ -28855,7 +28853,10 @@ function yn(t, e, o, i, a, r) {
28855
28853
  }, 8, ["onClick"])
28856
28854
  ])
28857
28855
  ], 4),
28858
- e[3] || (e[3] = l("div", { class: "position-absolute left-0 bottom-0 ma-2" }, "Copyright: Ocean right marine", -1))
28856
+ e[3] || (e[3] = l("div", { class: "position-absolute left-0 bottom-0 ma-2 my-1 text-body-2 text-label" }, [
28857
+ W(" Copyright: © 2023-2025 ormwx.com "),
28858
+ l("span", { class: "text-decoration-underline" }, "沪ICP备18039043号-6")
28859
+ ], -1))
28859
28860
  ]);
28860
28861
  }
28861
28862
  const bn = /* @__PURE__ */ Z(pn, [["render", yn]]), Tn = {