@idmwx/idmui-gl4 2.5.6 → 2.5.7
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/{chunk-3VYIPD3A-15ae61e6.js → chunk-3VYIPD3A-e5681285.js} +1 -1
- package/dist/{chunk-ANSXOGKI-f6b1961b.js → chunk-ANSXOGKI-7588a924.js} +1 -1
- package/dist/{chunk-T4JIPPZO-aa00bd1f.js → chunk-T4JIPPZO-03a5fcbc.js} +1 -1
- package/dist/{download-64e35b9e.js → download-544e15a0.js} +3 -3
- package/dist/{index-08235943.js → index-8518bcce.js} +243 -228
- package/dist/index.js +1 -1
- package/dist/index.umd.cjs +1 -1
- package/dist/mapbox/src/components/bottombar/index.vue.d.ts +4 -0
- package/dist/{rasterize-JS5G2XHH-f64208bf.js → rasterize-JS5G2XHH-3216c1e4.js} +3 -3
- package/dist/style.css +1 -1
- package/dist/{toBlob-58e1aa2f.js → toBlob-ab8200ad.js} +3 -3
- package/dist/{toCanvas-4c9d35c3.js → toCanvas-c6f1ce00.js} +2 -2
- package/dist/{toImg-38df1b32.js → toImg-0182ce19.js} +3 -3
- package/package.json +1 -1
|
@@ -3,7 +3,7 @@ var zr = (e, t, o) => t in e ? _r(e, t, { enumerable: !0, configurable: !0, writ
|
|
|
3
3
|
var we = (e, t, o) => (zr(e, typeof t != "symbol" ? t + "" : t, o), o);
|
|
4
4
|
import Xe from "axios";
|
|
5
5
|
import { useTheme as Fe } from "vuetify";
|
|
6
|
-
import { openBlock as P, createElementBlock as D, resolveComponent as R, createBlock as
|
|
6
|
+
import { openBlock as P, createElementBlock as D, resolveComponent as R, createBlock as Z, normalizeClass as _e, withCtx as C, createVNode as L, withModifiers as Se, createElementVNode as n, createCommentVNode as N, toDisplayString as b, createTextVNode as de, Fragment as Ie, renderList as De, withDirectives as Qe, vShow as et, mergeProps as Y, normalizeStyle as ue } from "vue";
|
|
7
7
|
import Ae from "mapbox-gl";
|
|
8
8
|
import G from "moment";
|
|
9
9
|
import { LngLatHelper as ce, TropicalHelper as Ii, LaneHelper as Je } from "@idm-plugin/geo";
|
|
@@ -496,10 +496,10 @@ const Nr = {
|
|
|
496
496
|
this.showMakerInfo = !1, (e = this.marker) == null || e.remove();
|
|
497
497
|
}
|
|
498
498
|
}
|
|
499
|
-
},
|
|
500
|
-
function
|
|
499
|
+
}, Br = ["innerHTML"];
|
|
500
|
+
function Zr(e, t, o, i, a, r) {
|
|
501
501
|
const l = R("VBtn"), c = R("v-card-text"), s = R("v-card");
|
|
502
|
-
return a.showMakerInfo ? (P(),
|
|
502
|
+
return a.showMakerInfo ? (P(), Z(s, {
|
|
503
503
|
key: 0,
|
|
504
504
|
class: _e(["idm-gl4-zone-info overflow-auto scroll", o.simple ? "page" : "dialog"]),
|
|
505
505
|
id: "idm-gl4-zone-info"
|
|
@@ -525,7 +525,7 @@ function Br(e, t, o, i, a, r) {
|
|
|
525
525
|
n("div", {
|
|
526
526
|
class: "rich-context",
|
|
527
527
|
innerHTML: (d = a.form) == null ? void 0 : d.name
|
|
528
|
-
}, null, 8,
|
|
528
|
+
}, null, 8, Br)
|
|
529
529
|
];
|
|
530
530
|
}),
|
|
531
531
|
_: 1
|
|
@@ -534,7 +534,7 @@ function Br(e, t, o, i, a, r) {
|
|
|
534
534
|
_: 1
|
|
535
535
|
}, 8, ["class"])) : N("", !0);
|
|
536
536
|
}
|
|
537
|
-
const Er = /* @__PURE__ */ ne(Nr, [["render",
|
|
537
|
+
const Er = /* @__PURE__ */ ne(Nr, [["render", Zr]]);
|
|
538
538
|
const Or = {
|
|
539
539
|
name: "PortDetail",
|
|
540
540
|
props: {
|
|
@@ -1712,16 +1712,16 @@ const Or = {
|
|
|
1712
1712
|
}, Nl = {
|
|
1713
1713
|
class: "px-1 text-center text-label font-weight-400",
|
|
1714
1714
|
width: "120"
|
|
1715
|
-
},
|
|
1715
|
+
}, Bl = {
|
|
1716
1716
|
class: "px-1 text-center text-label font-weight-400",
|
|
1717
1717
|
width: "120"
|
|
1718
|
-
},
|
|
1718
|
+
}, Zl = {
|
|
1719
1719
|
class: "px-1 text-center text-label font-weight-400",
|
|
1720
1720
|
width: "120"
|
|
1721
1721
|
}, El = { class: "px-1 text-center" }, Ol = { class: "px-1 text-center" }, Xl = { class: "px-1 text-center" };
|
|
1722
1722
|
function jl(e, t, o, i, a, r) {
|
|
1723
1723
|
const l = R("VBtn"), c = R("VCardTitle"), s = R("VDivider"), d = R("VBtnToggle"), m = R("VCard");
|
|
1724
|
-
return P(),
|
|
1724
|
+
return P(), Z(m, {
|
|
1725
1725
|
class: _e(["port-detail-container d-flex flex-column justify-start align-center", o.simple ? "page" : "dialog"])
|
|
1726
1726
|
}, {
|
|
1727
1727
|
default: C(() => {
|
|
@@ -1743,7 +1743,7 @@ function jl(e, t, o, i, a, r) {
|
|
|
1743
1743
|
(v = o.followList) != null && v.some((k) => {
|
|
1744
1744
|
var S;
|
|
1745
1745
|
return ((S = k.port) == null ? void 0 : S.id) === o.portId;
|
|
1746
|
-
}) ? (P(),
|
|
1746
|
+
}) ? (P(), Z(l, {
|
|
1747
1747
|
key: 0,
|
|
1748
1748
|
class: "text-none rounded-circle",
|
|
1749
1749
|
variant: "text",
|
|
@@ -1758,7 +1758,7 @@ function jl(e, t, o, i, a, r) {
|
|
|
1758
1758
|
])),
|
|
1759
1759
|
_: 1,
|
|
1760
1760
|
__: [2]
|
|
1761
|
-
}, 8, ["onClick"])) : (P(),
|
|
1761
|
+
}, 8, ["onClick"])) : (P(), Z(l, {
|
|
1762
1762
|
key: 1,
|
|
1763
1763
|
class: "text-none rounded-circle",
|
|
1764
1764
|
variant: "plain",
|
|
@@ -1819,7 +1819,7 @@ function jl(e, t, o, i, a, r) {
|
|
|
1819
1819
|
(g = o.followList) != null && g.some((f) => {
|
|
1820
1820
|
var h;
|
|
1821
1821
|
return ((h = f.port) == null ? void 0 : h.id) === o.portId;
|
|
1822
|
-
}) ? (P(),
|
|
1822
|
+
}) ? (P(), Z(l, {
|
|
1823
1823
|
key: 0,
|
|
1824
1824
|
class: "text-none text-body-1 rounded flex-1-1-0 btn-bg-3",
|
|
1825
1825
|
variant: "tonal",
|
|
@@ -1834,7 +1834,7 @@ function jl(e, t, o, i, a, r) {
|
|
|
1834
1834
|
de(" " + b(e.$t("actions.unfollow")), 1)
|
|
1835
1835
|
]),
|
|
1836
1836
|
_: 1
|
|
1837
|
-
}, 8, ["onClick"])) : (P(),
|
|
1837
|
+
}, 8, ["onClick"])) : (P(), Z(l, {
|
|
1838
1838
|
key: 1,
|
|
1839
1839
|
class: "text-none text-body-1 rounded flex-1-1-0 btn-bg-3",
|
|
1840
1840
|
variant: "tonal",
|
|
@@ -1920,7 +1920,7 @@ function jl(e, t, o, i, a, r) {
|
|
|
1920
1920
|
rounded: "1"
|
|
1921
1921
|
}, {
|
|
1922
1922
|
default: C(() => [
|
|
1923
|
-
(P(!0), D(Ie, null, De(r.dateList, (f) => (P(),
|
|
1923
|
+
(P(!0), D(Ie, null, De(r.dateList, (f) => (P(), Z(l, {
|
|
1924
1924
|
class: "text-none text-body-1 rounded bg-none flex-1-1-0",
|
|
1925
1925
|
density: "compact",
|
|
1926
1926
|
color: "primary",
|
|
@@ -1988,14 +1988,14 @@ function jl(e, t, o, i, a, r) {
|
|
|
1988
1988
|
n("div", null, b(e.$t("tide.tideTimes")), 1)
|
|
1989
1989
|
]),
|
|
1990
1990
|
n("div", Gl, [
|
|
1991
|
-
a.showTideDetail ? (P(),
|
|
1991
|
+
a.showTideDetail ? (P(), Z(l, {
|
|
1992
1992
|
key: 0,
|
|
1993
1993
|
icon: "mdi-eye-off-outline",
|
|
1994
1994
|
density: "compact",
|
|
1995
1995
|
variant: "plain",
|
|
1996
1996
|
size: "small",
|
|
1997
1997
|
onClick: t[1] || (t[1] = (f) => a.showTideDetail = !1)
|
|
1998
|
-
})) : (P(),
|
|
1998
|
+
})) : (P(), Z(l, {
|
|
1999
1999
|
key: 1,
|
|
2000
2000
|
icon: "mdi-eye-outline",
|
|
2001
2001
|
density: "compact",
|
|
@@ -2014,8 +2014,8 @@ function jl(e, t, o, i, a, r) {
|
|
|
2014
2014
|
n("tbody", null, [
|
|
2015
2015
|
n("tr", null, [
|
|
2016
2016
|
n("th", Nl, b(e.$t("tide.tide")), 1),
|
|
2017
|
-
n("th",
|
|
2018
|
-
n("th",
|
|
2017
|
+
n("th", Bl, b(e.$t("time.time")) + " ( LT ) ", 1),
|
|
2018
|
+
n("th", Zl, b(e.$t("tide.height")) + " ( m )", 1)
|
|
2019
2019
|
]),
|
|
2020
2020
|
(P(!0), D(Ie, null, De(a.tideTableData, (f, h) => {
|
|
2021
2021
|
var u;
|
|
@@ -2171,7 +2171,7 @@ function Jl(e, t, o, i, a, r) {
|
|
|
2171
2171
|
}, 512), [
|
|
2172
2172
|
[et, a.showInfo]
|
|
2173
2173
|
]),
|
|
2174
|
-
a.showDetail ? (P(),
|
|
2174
|
+
a.showDetail ? (P(), Z(s, Y({
|
|
2175
2175
|
key: 0,
|
|
2176
2176
|
portId: a.portId,
|
|
2177
2177
|
port: a.port,
|
|
@@ -3078,7 +3078,7 @@ const kn = {
|
|
|
3078
3078
|
}, _n = { class: "d-flex justify-space-between align-center" }, zn = { class: "d-flex justify-start text-h5 my-2" }, Ln = { class: "d-flex justify-start align-center text-body-1 text-label ga-3" }, Pn = { class: "summary-box w-100" }, Cn = { class: "d-flex justify-space-between align-center py-2" }, Mn = { class: "d-flex justify-center align-center text-h6 ga-2" }, Sn = {
|
|
3079
3079
|
class: "multi-color-icon",
|
|
3080
3080
|
"aria-hidden": "true"
|
|
3081
|
-
}, Tn = ["xlink:href"], Rn = { class: "gray-bg-2 rounded d-flex flex-column ga-4 pa-4" }, In = { class: "w-100 d-flex justify-start align-center" }, Dn = { class: "w-30 text-label font-weight-400" }, An = { class: "flex-1-1-0" }, Gn = { class: "w-100 d-flex justify-start align-center" }, Wn = { class: "w-30 text-label font-weight-400" }, Fn = { class: "flex-1-1-0" }, Nn = { class: "w-100 d-flex justify-start align-center" },
|
|
3081
|
+
}, Tn = ["xlink:href"], Rn = { class: "gray-bg-2 rounded d-flex flex-column ga-4 pa-4" }, In = { class: "w-100 d-flex justify-start align-center" }, Dn = { class: "w-30 text-label font-weight-400" }, An = { class: "flex-1-1-0" }, Gn = { class: "w-100 d-flex justify-start align-center" }, Wn = { class: "w-30 text-label font-weight-400" }, Fn = { class: "flex-1-1-0" }, Nn = { class: "w-100 d-flex justify-start align-center" }, Bn = { class: "w-30 text-label font-weight-400" }, Zn = { class: "flex-1-1-0" }, En = { class: "table-box w-100 mt-2 mb-4 d-flex flex-column justify-start align-center" }, On = { class: "w-100 d-flex justify-space-between align-center py-2" }, Xn = { class: "d-flex justify-center align-center text-h6 ga-2" }, jn = {
|
|
3082
3082
|
class: "multi-color-icon",
|
|
3083
3083
|
"aria-hidden": "true"
|
|
3084
3084
|
}, Vn = ["xlink:href"], Hn = {
|
|
@@ -3101,7 +3101,7 @@ const kn = {
|
|
|
3101
3101
|
}, $n = { class: "px-1 text-center" }, qn = { class: "px-1 text-center" }, Qn = { class: "px-1 text-center" };
|
|
3102
3102
|
function es(e, t, o, i, a, r) {
|
|
3103
3103
|
const l = R("VBtn"), c = R("v-card-title"), s = R("v-divider"), d = R("VBtnToggle"), m = R("v-card");
|
|
3104
|
-
return P(),
|
|
3104
|
+
return P(), Z(m, {
|
|
3105
3105
|
class: _e(["tide-detail-container d-flex flex-column justify-start align-center", o.simple ? "page" : "dialog"])
|
|
3106
3106
|
}, {
|
|
3107
3107
|
default: C(() => {
|
|
@@ -3161,8 +3161,8 @@ function es(e, t, o, i, a, r) {
|
|
|
3161
3161
|
n("div", Fn, b(r.computePosition(o.station)), 1)
|
|
3162
3162
|
]),
|
|
3163
3163
|
n("div", Nn, [
|
|
3164
|
-
n("div",
|
|
3165
|
-
n("div",
|
|
3164
|
+
n("div", Bn, b(e.$t("time.localTime")), 1),
|
|
3165
|
+
n("div", Zn, b(r.computeLocalTime(o.realTime, o.station)) + " " + b(r.computeTimeOffset(o.station)), 1)
|
|
3166
3166
|
])
|
|
3167
3167
|
])
|
|
3168
3168
|
]),
|
|
@@ -3192,7 +3192,7 @@ function es(e, t, o, i, a, r) {
|
|
|
3192
3192
|
rounded: "1"
|
|
3193
3193
|
}, {
|
|
3194
3194
|
default: C(() => [
|
|
3195
|
-
(P(!0), D(Ie, null, De(r.dateList, (y) => (P(),
|
|
3195
|
+
(P(!0), D(Ie, null, De(r.dateList, (y) => (P(), Z(l, {
|
|
3196
3196
|
class: "text-none text-body-1 rounded bg-none flex-1-1-0",
|
|
3197
3197
|
density: "compact",
|
|
3198
3198
|
color: "primary",
|
|
@@ -3334,7 +3334,7 @@ function ns(e, t, o, i, a, r) {
|
|
|
3334
3334
|
}, 512), [
|
|
3335
3335
|
[et, a.showInfo]
|
|
3336
3336
|
]),
|
|
3337
|
-
a.showDetail ? (P(),
|
|
3337
|
+
a.showDetail ? (P(), Z(s, Y({
|
|
3338
3338
|
key: 0,
|
|
3339
3339
|
station: a.station,
|
|
3340
3340
|
onClose: r.handleCloseDetail
|
|
@@ -4508,7 +4508,7 @@ function bs(e, t, o, i, a, r) {
|
|
|
4508
4508
|
}, 512), [
|
|
4509
4509
|
[et, a.showInfo]
|
|
4510
4510
|
]),
|
|
4511
|
-
a.showDetail ? (P(),
|
|
4511
|
+
a.showDetail ? (P(), Z(s, Y({
|
|
4512
4512
|
key: 0,
|
|
4513
4513
|
portId: a.portId,
|
|
4514
4514
|
port: a.port,
|
|
@@ -5441,7 +5441,7 @@ const xs = {
|
|
|
5441
5441
|
};
|
|
5442
5442
|
function zs(e, t, o, i, a, r) {
|
|
5443
5443
|
const l = R("v-card-text"), c = R("v-card");
|
|
5444
|
-
return Qe((P(),
|
|
5444
|
+
return Qe((P(), Z(c, {
|
|
5445
5445
|
id: "idmFollowPositionInfo",
|
|
5446
5446
|
ref: "idmFollowPositionInfo"
|
|
5447
5447
|
}, {
|
|
@@ -5781,7 +5781,7 @@ function Fs(e, t, o, i, a, r) {
|
|
|
5781
5781
|
n("div", Ws, b(e.$t(`layer.${A.locale}`)), 1)
|
|
5782
5782
|
], 8, Rs))), 128))
|
|
5783
5783
|
]),
|
|
5784
|
-
(P(!0), D(Ie, null, De(a.tagLayers.filter((A) => ["graticule", "day-night", "time-zones"].includes(A.key)), (A) => (P(),
|
|
5784
|
+
(P(!0), D(Ie, null, De(a.tagLayers.filter((A) => ["graticule", "day-night", "time-zones"].includes(A.key)), (A) => (P(), Z(m, {
|
|
5785
5785
|
key: A.key,
|
|
5786
5786
|
modelValue: a.checkList,
|
|
5787
5787
|
"onUpdate:modelValue": t[0] || (t[0] = (ie) => a.checkList = ie),
|
|
@@ -5817,7 +5817,7 @@ function Fs(e, t, o, i, a, r) {
|
|
|
5817
5817
|
}),
|
|
5818
5818
|
L(g, { class: "py-2 mx-n1" }, {
|
|
5819
5819
|
default: C(() => [
|
|
5820
|
-
(P(!0), D(Ie, null, De(a.tagLayers.filter((A) => ["ports", "alert-zones", "tidal-stations"].includes(A.key)), (A) => (P(),
|
|
5820
|
+
(P(!0), D(Ie, null, De(a.tagLayers.filter((A) => ["ports", "alert-zones", "tidal-stations"].includes(A.key)), (A) => (P(), Z(m, {
|
|
5821
5821
|
key: A.key,
|
|
5822
5822
|
modelValue: a.checkList,
|
|
5823
5823
|
"onUpdate:modelValue": t[1] || (t[1] = (ie) => a.checkList = ie),
|
|
@@ -5853,7 +5853,7 @@ function Fs(e, t, o, i, a, r) {
|
|
|
5853
5853
|
}),
|
|
5854
5854
|
L(g, { class: "py-2 mx-n1" }, {
|
|
5855
5855
|
default: C(() => [
|
|
5856
|
-
(P(!0), D(Ie, null, De(a.tagLayers.filter((A) => !["graticule", "day-night", "time-zones", "ports", "alert-zones", "tidal-stations"].includes(A.key)), (A) => (P(),
|
|
5856
|
+
(P(!0), D(Ie, null, De(a.tagLayers.filter((A) => !["graticule", "day-night", "time-zones", "ports", "alert-zones", "tidal-stations"].includes(A.key)), (A) => (P(), Z(m, {
|
|
5857
5857
|
key: A.key,
|
|
5858
5858
|
modelValue: a.checkList,
|
|
5859
5859
|
"onUpdate:modelValue": t[2] || (t[2] = (ie) => a.checkList = ie),
|
|
@@ -5919,25 +5919,25 @@ function Fs(e, t, o, i, a, r) {
|
|
|
5919
5919
|
})
|
|
5920
5920
|
], 2)
|
|
5921
5921
|
], 6),
|
|
5922
|
-
o.map ? (P(),
|
|
5922
|
+
o.map ? (P(), Z(y, Y({
|
|
5923
5923
|
key: 0,
|
|
5924
5924
|
simple: o.simple,
|
|
5925
5925
|
map: o.map,
|
|
5926
5926
|
"menu-toggle": o.menuToggle,
|
|
5927
5927
|
show: a.checkList.includes("graticule")
|
|
5928
5928
|
}, e.$attrs, { "before-layer": "empty-layer-3" }), null, 16, ["simple", "map", "menu-toggle", "show"])) : N("", !0),
|
|
5929
|
-
o.map ? (P(),
|
|
5929
|
+
o.map ? (P(), Z(f, Y({
|
|
5930
5930
|
key: 1,
|
|
5931
5931
|
map: o.map,
|
|
5932
5932
|
area: (ee = a.otherLayers) == null ? void 0 : ee["day-night"]
|
|
5933
5933
|
}, e.$attrs, { "before-layer": "empty-layer-2" }), null, 16, ["map", "area"])) : N("", !0),
|
|
5934
|
-
o.map ? (P(),
|
|
5934
|
+
o.map ? (P(), Z(h, Y({
|
|
5935
5935
|
key: 2,
|
|
5936
5936
|
map: o.map,
|
|
5937
5937
|
zone: (he = a.otherLayers) == null ? void 0 : he["time-zones"],
|
|
5938
5938
|
"real-time": o.realTime
|
|
5939
5939
|
}, e.$attrs, { "before-layer": "empty-layer-3" }), null, 16, ["map", "zone", "real-time"])) : N("", !0),
|
|
5940
|
-
o.map ? (P(),
|
|
5940
|
+
o.map ? (P(), Z(u, Y({
|
|
5941
5941
|
key: 3,
|
|
5942
5942
|
ref: "idmPorts",
|
|
5943
5943
|
simple: o.simple,
|
|
@@ -5949,7 +5949,7 @@ function Fs(e, t, o, i, a, r) {
|
|
|
5949
5949
|
"real-time": o.realTime,
|
|
5950
5950
|
theme: o.theme
|
|
5951
5951
|
}, e.$attrs, { "before-layer": "empty-layer-3" }), null, 16, ["simple", "map", "ports", "gateway", "token", "forecast-model", "real-time", "theme"])) : N("", !0),
|
|
5952
|
-
o.map ? (P(),
|
|
5952
|
+
o.map ? (P(), Z(x, Y({
|
|
5953
5953
|
key: 4,
|
|
5954
5954
|
map: o.map,
|
|
5955
5955
|
simple: o.simple,
|
|
@@ -5958,7 +5958,7 @@ function Fs(e, t, o, i, a, r) {
|
|
|
5958
5958
|
"before-layer": "empty-layer-3",
|
|
5959
5959
|
theme: o.theme
|
|
5960
5960
|
}), null, 16, ["map", "simple", "zone", "theme"])) : N("", !0),
|
|
5961
|
-
o.map ? (P(),
|
|
5961
|
+
o.map ? (P(), Z(v, Y({
|
|
5962
5962
|
key: 5,
|
|
5963
5963
|
ref: "idmIideStation",
|
|
5964
5964
|
simple: o.simple,
|
|
@@ -5972,60 +5972,60 @@ function Fs(e, t, o, i, a, r) {
|
|
|
5972
5972
|
"forecast-model": o.forecastModel,
|
|
5973
5973
|
"before-layer": "empty-layer-3"
|
|
5974
5974
|
}, e.$attrs), null, 16, ["simple", "map", "gateway", "token", "default-meteo-token", "show", "theme", "real-time", "forecast-model"])) : N("", !0),
|
|
5975
|
-
o.map ? (P(),
|
|
5975
|
+
o.map ? (P(), Z(w, Y({
|
|
5976
5976
|
key: 6,
|
|
5977
5977
|
map: o.map,
|
|
5978
5978
|
zone: (U = a.otherLayers) == null ? void 0 : U["eca-zones"]
|
|
5979
5979
|
}, e.$attrs), null, 16, ["map", "zone"])) : N("", !0),
|
|
5980
|
-
o.map ? (P(),
|
|
5980
|
+
o.map ? (P(), Z(k, Y({
|
|
5981
5981
|
key: 7,
|
|
5982
5982
|
map: o.map,
|
|
5983
5983
|
zone: (te = a.otherLayers) == null ? void 0 : te["war-zones"]
|
|
5984
5984
|
}, e.$attrs), null, 16, ["map", "zone"])) : N("", !0),
|
|
5985
|
-
o.map ? (P(),
|
|
5985
|
+
o.map ? (P(), Z(S, Y({
|
|
5986
5986
|
key: 8,
|
|
5987
5987
|
map: o.map,
|
|
5988
5988
|
area: (X = a.otherLayers) == null ? void 0 : X["gmdss-areas"]
|
|
5989
5989
|
}, e.$attrs), null, 16, ["map", "area"])) : N("", !0),
|
|
5990
|
-
o.map ? (P(),
|
|
5990
|
+
o.map ? (P(), Z(_, Y({
|
|
5991
5991
|
key: 9,
|
|
5992
5992
|
map: o.map,
|
|
5993
5993
|
show: a.checkList.includes("load-lines")
|
|
5994
5994
|
}, e.$attrs), null, 16, ["map", "show"])) : N("", !0),
|
|
5995
|
-
o.map ? (P(),
|
|
5995
|
+
o.map ? (P(), Z(M, Y({
|
|
5996
5996
|
key: 10,
|
|
5997
5997
|
map: o.map,
|
|
5998
5998
|
token: o.token,
|
|
5999
5999
|
show: a.checkList.includes("worldMarine")
|
|
6000
6000
|
}, e.$attrs), null, 16, ["map", "token", "show"])) : N("", !0),
|
|
6001
|
-
o.map ? (P(),
|
|
6001
|
+
o.map ? (P(), Z(T, Y({
|
|
6002
6002
|
key: 11,
|
|
6003
6003
|
map: o.map,
|
|
6004
6004
|
area: (O = a.otherLayers) == null ? void 0 : O["voluntary-reporting-area"]
|
|
6005
6005
|
}, e.$attrs), null, 16, ["map", "area"])) : N("", !0),
|
|
6006
|
-
o.map ? (P(),
|
|
6006
|
+
o.map ? (P(), Z(W, Y({
|
|
6007
6007
|
key: 12,
|
|
6008
6008
|
map: o.map,
|
|
6009
6009
|
area: ($ = a.otherLayers) == null ? void 0 : $["special-area"]
|
|
6010
6010
|
}, e.$attrs), null, 16, ["map", "area"])) : N("", !0),
|
|
6011
|
-
o.map ? (P(),
|
|
6011
|
+
o.map ? (P(), Z(F, Y({
|
|
6012
6012
|
key: 13,
|
|
6013
6013
|
map: o.map,
|
|
6014
6014
|
token: o.token,
|
|
6015
6015
|
show: a.checkList.includes("world12nm")
|
|
6016
6016
|
}, e.$attrs), null, 16, ["map", "token", "show"])) : N("", !0),
|
|
6017
|
-
o.map ? (P(),
|
|
6017
|
+
o.map ? (P(), Z(E, Y({
|
|
6018
6018
|
key: 14,
|
|
6019
6019
|
map: o.map,
|
|
6020
6020
|
token: o.token,
|
|
6021
6021
|
show: a.checkList.includes("chinaRoute")
|
|
6022
6022
|
}, e.$attrs), null, 16, ["map", "token", "show"])) : N("", !0),
|
|
6023
|
-
o.map ? (P(),
|
|
6023
|
+
o.map ? (P(), Z(V, Y({
|
|
6024
6024
|
key: 15,
|
|
6025
6025
|
map: o.map,
|
|
6026
6026
|
show: a.checkList.includes("ice-areas")
|
|
6027
6027
|
}, e.$attrs), null, 16, ["map", "show"])) : N("", !0),
|
|
6028
|
-
o.map ? (P(),
|
|
6028
|
+
o.map ? (P(), Z(J, Y({
|
|
6029
6029
|
key: 16,
|
|
6030
6030
|
ref: "idmFollowPort",
|
|
6031
6031
|
simple: o.simple,
|
|
@@ -6036,7 +6036,7 @@ function Fs(e, t, o, i, a, r) {
|
|
|
6036
6036
|
"forecast-model": o.forecastModel,
|
|
6037
6037
|
"real-time": o.realTime
|
|
6038
6038
|
}, e.$attrs, { "before-layer": "empty-layer-3" }), null, 16, ["simple", "map", "show", "gateway", "token", "forecast-model", "real-time"])) : N("", !0),
|
|
6039
|
-
o.map ? (P(),
|
|
6039
|
+
o.map ? (P(), Z(Q, Y({
|
|
6040
6040
|
key: 17,
|
|
6041
6041
|
ref: "idmFollowPosition",
|
|
6042
6042
|
simple: o.simple,
|
|
@@ -6531,7 +6531,7 @@ we(We, "vertexSchema", `
|
|
|
6531
6531
|
fract(pos * 255.0),
|
|
6532
6532
|
floor(pos * 255.0) / 255.0);
|
|
6533
6533
|
}`);
|
|
6534
|
-
const
|
|
6534
|
+
const Bs = {
|
|
6535
6535
|
"000kts": '<svg t="1756203850656" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4213" width="200" height="200"><path d="M729.6 512a217.6 217.6 0 1 0-217.6 217.6v59.733333a277.333333 277.333333 0 1 1 0-554.666666 277.333333 277.333333 0 0 1 0 554.666666v-59.733333a217.6 217.6 0 0 0 217.6-217.6z" fill="#ffffff" p-id="4214"></path><path d="M558.933333 512a46.933333 46.933333 0 1 0-46.933333 46.933333v59.733334a106.666667 106.666667 0 1 1 0-213.333334 106.666667 106.666667 0 0 1 0 213.333334v-59.733334a46.933333 46.933333 0 0 0 46.933333-46.933333z" fill="#ffffff" p-id="4215"></path></svg>',
|
|
6536
6536
|
"002kts": '<svg t="1756203870666" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4371" width="200" height="200"><path d="M511.975255 4.26646a29.865223 29.865223 0 0 1 29.865223 29.865224v897.791273l58.151856-46.504419a29.907888 29.907888 0 0 1 37.288864 46.717742l-106.661511 85.329209a29.865223 29.865223 0 0 1-37.288865 0l-106.661511-85.329209a29.865223 29.865223 0 0 1 37.288864-46.675077l58.151856 46.461754V34.131684a29.865223 29.865223 0 0 1 29.865224-29.865224z" fill="#ffffff" p-id="4372"></path></svg>',
|
|
6537
6537
|
"005kts": '<svg t="1756203883896" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="4528" width="200" height="200"><path d="M511.825979 4.265216a29.856515 29.856515 0 0 1 29.856516 29.856516v102.706413l145.443882-97.673458a29.856515 29.856515 0 0 1 33.268689 49.604468l-174.873877 117.378758c-1.194261 0.853043-2.55913 1.364869-3.838694 2.004652v723.508674l58.1349-46.49086a29.899168 29.899168 0 0 1 37.277993 46.70412l-106.630413 85.30433a29.856515 29.856515 0 0 1-37.277992 0l-106.630412-85.30433a29.856515 29.856515 0 0 1 37.277992-46.661468l58.134901 46.448208V34.121732a29.856515 29.856515 0 0 1 29.856515-29.856516z" fill="#ffffff" p-id="4529"></path></svg>',
|
|
@@ -6555,7 +6555,7 @@ const Zs = {
|
|
|
6555
6555
|
"095kts": '<svg t="1756204086889" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="7354" width="200" height="200"><path d="M699.676193 0a29.864228 29.864228 0 0 1 29.864228 29.864228c0 0.426632-0.170653 0.853264-0.170653 1.237232a29.736238 29.736238 0 0 1-13.908197 26.237857l-170.65273 106.743283c-0.93859 0.597285-1.962506 0.981253-2.986423 1.450548v45.222974l146.334716-91.043232a29.864228 29.864228 0 0 1 31.570755 50.683861L541.822418 281.150373V330.213033l146.334716-91.043232a29.864228 29.864228 0 1 1 31.570755 50.683861L541.822418 400.564621v49.105323l146.334716-91.043232a29.864228 29.864228 0 1 1 31.570755 50.683861l-177.905471 110.710959v49.062659l146.334716-91.000568a29.864228 29.864228 0 1 1 31.570755 50.683861l-177.905471 110.668295v42.577857l73.764642-46.076238a29.864228 29.864228 0 0 1 31.656082 50.683861l-105.378061 65.871954v179.398682l58.064591-46.502868a29.906891 29.906891 0 0 1 37.372948 46.716184l-106.657956 85.326365a29.864228 29.864228 0 0 1-37.372948 0l-106.657956-85.326365a29.864228 29.864228 0 0 1 37.372948-46.673521l58.107254 46.460205V34.130546c0-0.725274 0.12799-1.407885 0.213316-2.133159C482.221952 31.272113 482.093962 30.589502 482.093962 29.864228A29.864228 29.864228 0 0 1 511.95819 0h187.718003z" fill="#ffffff" p-id="7355"></path></svg>',
|
|
6556
6556
|
"100kts": '<svg t="1756204093086" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="7511" width="200" height="200"><path d="M699.699515 0a29.865223 29.865223 0 0 1 29.865223 29.865223c0 0.426646-0.170658 0.853292-0.170659 1.237274a29.737229 29.737229 0 0 1-13.908661 26.238732L568.420526 149.326116H699.699515a29.865223 29.865223 0 0 1 29.865223 29.865223c0 0.426646-0.170658 0.853292-0.170659 1.237274a29.737229 29.737229 0 0 1-13.908661 26.238731l-170.573089 106.746841c-0.981286 0.597304-2.047901 0.981286-3.071851 1.450597v617.058175l58.151856-46.504419a29.907888 29.907888 0 0 1 37.288864 46.717742l-106.661511 85.329209a29.865223 29.865223 0 0 1-37.288865 0l-106.661511-85.329209a29.865223 29.865223 0 0 1 37.288864-46.675077l58.151856 46.461754V34.131684c0-0.725298 0.127994-1.407932 0.213323-2.133231C482.238025 31.273155 482.110031 30.590521 482.110031 29.865223A29.865223 29.865223 0 0 1 511.975255 0h187.72426z" fill="#ffffff" p-id="7512"></path></svg>',
|
|
6557
6557
|
"105kts": '<svg t="1756204103259" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="7668" width="200" height="200"><path d="M699.699515 0a29.865223 29.865223 0 0 1 29.865223 29.865223c0 0.426646-0.170658 0.853292-0.170659 1.237274a29.737229 29.737229 0 0 1-13.908661 26.238732L568.420526 149.326116H699.699515a29.865223 29.865223 0 0 1 29.865223 29.865223c0 0.426646-0.170658 0.853292-0.170659 1.237274a29.737229 29.737229 0 0 1-13.908661 26.238731l-170.658418 106.746841c-0.938621 0.597304-1.962572 0.981286-2.986522 1.450597v79.356164l146.339593-91.046266a29.865223 29.865223 0 1 1 31.571808 50.68555l-177.911401 110.714649v467.348078l58.151856-46.504419a29.907888 29.907888 0 0 1 37.288864 46.717742l-106.661511 85.329209a29.865223 29.865223 0 0 1-37.288865 0l-106.661511-85.329209a29.865223 29.865223 0 0 1 37.288864-46.675077l58.151856 46.461754V34.131684c0-0.725298 0.127994-1.407932 0.213323-2.133231C482.238025 31.273155 482.110031 30.590521 482.110031 29.865223A29.865223 29.865223 0 0 1 511.975255 0h187.72426z" fill="#ffffff" p-id="7669"></path></svg>'
|
|
6558
|
-
},
|
|
6558
|
+
}, Zs = {
|
|
6559
6559
|
name: "IdmWindBarb",
|
|
6560
6560
|
props: {
|
|
6561
6561
|
map: {
|
|
@@ -6591,7 +6591,7 @@ const Zs = {
|
|
|
6591
6591
|
right: 10,
|
|
6592
6592
|
bottom: 125,
|
|
6593
6593
|
windBarbLoaded: !1,
|
|
6594
|
-
svgs:
|
|
6594
|
+
svgs: Bs
|
|
6595
6595
|
};
|
|
6596
6596
|
},
|
|
6597
6597
|
computed: {
|
|
@@ -6692,7 +6692,7 @@ const Zs = {
|
|
|
6692
6692
|
function Es(e, t, o, i, a, r) {
|
|
6693
6693
|
return null;
|
|
6694
6694
|
}
|
|
6695
|
-
const Os = /* @__PURE__ */ ne(
|
|
6695
|
+
const Os = /* @__PURE__ */ ne(Zs, [["render", Es]]);
|
|
6696
6696
|
const Xs = {
|
|
6697
6697
|
name: "IdmWindParticle",
|
|
6698
6698
|
props: {
|
|
@@ -8558,10 +8558,10 @@ const Nc = {
|
|
|
8558
8558
|
this.webgl.draw(this.viewport, this.context, this.program, this.texture, this.rampColor.texture, this.aPositionBuffer), this.viewport.toggle(!0);
|
|
8559
8559
|
}
|
|
8560
8560
|
}
|
|
8561
|
-
},
|
|
8562
|
-
function
|
|
8561
|
+
}, Bc = { key: 0 };
|
|
8562
|
+
function Zc(e, t, o, i, a, r) {
|
|
8563
8563
|
var l;
|
|
8564
|
-
return (l = o.factor) != null && l.active ? (P(), D("div",
|
|
8564
|
+
return (l = o.factor) != null && l.active ? (P(), D("div", Bc, [
|
|
8565
8565
|
n("div", {
|
|
8566
8566
|
class: "legend-bars-gl4 temp",
|
|
8567
8567
|
style: ue({ right: a.right + "px" })
|
|
@@ -8577,7 +8577,7 @@ function Bc(e, t, o, i, a, r) {
|
|
|
8577
8577
|
]), 4)
|
|
8578
8578
|
])) : N("", !0);
|
|
8579
8579
|
}
|
|
8580
|
-
const Ec = /* @__PURE__ */ ne(Nc, [["render",
|
|
8580
|
+
const Ec = /* @__PURE__ */ ne(Nc, [["render", Zc]]);
|
|
8581
8581
|
const Oc = {
|
|
8582
8582
|
name: "IdmGlLayer",
|
|
8583
8583
|
components: {
|
|
@@ -9349,7 +9349,7 @@ function Cm(e, t, o, i, a, r) {
|
|
|
9349
9349
|
_: 1
|
|
9350
9350
|
}, 8, ["text", "open-on-focus", "open-on-hover"])
|
|
9351
9351
|
], 6),
|
|
9352
|
-
a.legendToggle ? (P(),
|
|
9352
|
+
a.legendToggle ? (P(), Z(p, {
|
|
9353
9353
|
key: 0,
|
|
9354
9354
|
elevation: "16",
|
|
9355
9355
|
class: "card-info d-flex justify-center align-start",
|
|
@@ -9364,7 +9364,7 @@ function Cm(e, t, o, i, a, r) {
|
|
|
9364
9364
|
t[11] || (t[11] = n("div", { class: "text-body-2 font-weight-600 mb-2" }, "Wind Level", -1)),
|
|
9365
9365
|
L(d, { class: "ma-0 ml-n1 text-body-2" }, {
|
|
9366
9366
|
default: C(() => [
|
|
9367
|
-
(P(!0), D(Ie, null, De(a.legend.barbs, (K, me) => (P(),
|
|
9367
|
+
(P(!0), D(Ie, null, De(a.legend.barbs, (K, me) => (P(), Z(s, {
|
|
9368
9368
|
key: K,
|
|
9369
9369
|
cols: "6",
|
|
9370
9370
|
class: "d-flex flex-row justify-start align-center py-1 px-0 ma-0"
|
|
@@ -9396,7 +9396,7 @@ function Cm(e, t, o, i, a, r) {
|
|
|
9396
9396
|
t[12] || (t[12] = n("div", { class: "text-body-2 font-weight-600 mb-2" }, "Wave Height", -1)),
|
|
9397
9397
|
L(d, { class: "ma-0" }, {
|
|
9398
9398
|
default: C(() => [
|
|
9399
|
-
(P(!0), D(Ie, null, De(a.legend.sigWaveHeight, (K, me) => (P(),
|
|
9399
|
+
(P(!0), D(Ie, null, De(a.legend.sigWaveHeight, (K, me) => (P(), Z(s, {
|
|
9400
9400
|
key: me,
|
|
9401
9401
|
cols: "12",
|
|
9402
9402
|
class: "d-flex flex-row justify-start align-center py-1 px-0 ma-0"
|
|
@@ -9428,7 +9428,7 @@ function Cm(e, t, o, i, a, r) {
|
|
|
9428
9428
|
t[13] || (t[13] = n("div", { class: "text-body-2 font-weight-600 mb-2" }, "Current", -1)),
|
|
9429
9429
|
L(d, { class: "ma-0 ml-n4" }, {
|
|
9430
9430
|
default: C(() => [
|
|
9431
|
-
(P(!0), D(Ie, null, De(a.legend.current, (K, me) => (P(),
|
|
9431
|
+
(P(!0), D(Ie, null, De(a.legend.current, (K, me) => (P(), Z(s, {
|
|
9432
9432
|
key: me,
|
|
9433
9433
|
cols: "12",
|
|
9434
9434
|
class: "d-flex flex-row justify-center align-center py-1 px-0 ma-0"
|
|
@@ -9554,7 +9554,7 @@ function Cm(e, t, o, i, a, r) {
|
|
|
9554
9554
|
}),
|
|
9555
9555
|
L(m, { class: "py-2 mx-n1" }, {
|
|
9556
9556
|
default: C(() => [
|
|
9557
|
-
(P(!0), D(Ie, null, De(a.tagLayers.filter((K) => K.overlays), (K) => (P(),
|
|
9557
|
+
(P(!0), D(Ie, null, De(a.tagLayers.filter((K) => K.overlays), (K) => (P(), Z(x, {
|
|
9558
9558
|
key: K.key,
|
|
9559
9559
|
modelValue: a.checkList,
|
|
9560
9560
|
"onUpdate:modelValue": t[3] || (t[3] = (me) => a.checkList = me),
|
|
@@ -9637,7 +9637,7 @@ function Cm(e, t, o, i, a, r) {
|
|
|
9637
9637
|
"hide-details": ""
|
|
9638
9638
|
}, null, 8, ["modelValue"])
|
|
9639
9639
|
])) : N("", !0),
|
|
9640
|
-
a.renderKey === "wave-group" && K.key === "wave-group" ? (P(),
|
|
9640
|
+
a.renderKey === "wave-group" && K.key === "wave-group" ? (P(), Z(f, {
|
|
9641
9641
|
key: 2,
|
|
9642
9642
|
modelValue: a.waveToggleValue,
|
|
9643
9643
|
"onUpdate:modelValue": t[7] || (t[7] = (me) => a.waveToggleValue = me),
|
|
@@ -9680,7 +9680,7 @@ function Cm(e, t, o, i, a, r) {
|
|
|
9680
9680
|
]),
|
|
9681
9681
|
_: 1
|
|
9682
9682
|
}, 8, ["modelValue", "disabled"])) : N("", !0),
|
|
9683
|
-
a.renderKey === "ice-forecast" && K.key === "ice-forecast" ? (P(),
|
|
9683
|
+
a.renderKey === "ice-forecast" && K.key === "ice-forecast" ? (P(), Z(f, {
|
|
9684
9684
|
key: 3,
|
|
9685
9685
|
modelValue: a.iceToggleValue,
|
|
9686
9686
|
"onUpdate:modelValue": t[8] || (t[8] = (me) => a.iceToggleValue = me),
|
|
@@ -9748,14 +9748,14 @@ function Cm(e, t, o, i, a, r) {
|
|
|
9748
9748
|
}),
|
|
9749
9749
|
L(m, { class: "" }, {
|
|
9750
9750
|
default: C(() => {
|
|
9751
|
-
var K, me, je, Ne, Le, Te, oe, Pe, pe, ye,
|
|
9751
|
+
var K, me, je, Ne, Le, Te, oe, Pe, pe, ye, Ze, He, Ve, j, be, Re, Ee, Oe, q, Be, re, tt, ot, at, Ge, ct, mt, dt, ht, ut, pt, gt, ft, yt, bt, wt, xt, vt, kt, _t, zt, Lt, Pt, Ct, Mt, St, Tt, Rt, It, Dt, At, Gt, Wt, Ft, Nt, Bt, Zt, Et, Ot, Xt, jt, Vt, Ht, Yt, Ut, Jt, Kt, qt, Qt, eo, to, oo, ao, io, ro, lo, no, so, co, mo, ho, uo, po, go, fo, yo, bo, wo, xo, vo, ko, _o, zo, Lo, Po, Co, Mo, So, To, Ro, Io, Do, Ao, Go, Wo;
|
|
9752
9752
|
return [
|
|
9753
9753
|
n("div", im, b(e.$t("weather.atmospheric")), 1),
|
|
9754
9754
|
n("div", rm, b((je = (me = (K = a.models) == null ? void 0 : K.weather) == null ? void 0 : me.NOAA) == null ? void 0 : je.source) + " " + b((Te = (Le = (Ne = a.models) == null ? void 0 : Ne.weather) == null ? void 0 : Le.NOAA) == null ? void 0 : Te.spatialResolution) + b(e.$t("units.km")) + " " + b((ye = (pe = (Pe = (oe = a.models) == null ? void 0 : oe.weather) == null ? void 0 : Pe.NOAA) == null ? void 0 : pe.meta) == null ? void 0 : ye.days) + b(e.$t("units.days")), 1),
|
|
9755
9755
|
n("div", lm, b(e.$t("weather.source")) + ": NOAA", 1),
|
|
9756
|
-
n("div", nm, b(e.$t("weather.lastUpdate")) + ": " + b(r.computeDateUpdate((j = (Ve = (He = (
|
|
9756
|
+
n("div", nm, b(e.$t("weather.lastUpdate")) + ": " + b(r.computeDateUpdate((j = (Ve = (He = (Ze = a.models) == null ? void 0 : Ze.weather) == null ? void 0 : He.NOAA) == null ? void 0 : Ve.meta) == null ? void 0 : j.availabilityTime)), 1),
|
|
9757
9757
|
n("div", sm, b(e.$t("weather.referenceTime")) + ": " + b(r.computeDateZ((Oe = (Ee = (Re = (be = a.models) == null ? void 0 : be.weather) == null ? void 0 : Re.NOAA) == null ? void 0 : Ee.meta) == null ? void 0 : Oe.initialisationTime)), 1),
|
|
9758
|
-
n("div", cm, b((re = (
|
|
9758
|
+
n("div", cm, b((re = (Be = (q = a.models) == null ? void 0 : q.weather) == null ? void 0 : Be.ECMWF) == null ? void 0 : re.source) + " " + b((at = (ot = (tt = a.models) == null ? void 0 : tt.weather) == null ? void 0 : ot.ECMWF) == null ? void 0 : at.spatialResolution) + b(e.$t("units.km")) + " " + b((dt = (mt = (ct = (Ge = a.models) == null ? void 0 : Ge.weather) == null ? void 0 : ct.ECMWF) == null ? void 0 : mt.meta) == null ? void 0 : dt.days) + b(e.$t("units.days")), 1),
|
|
9759
9759
|
n("div", mm, b(e.$t("weather.source")) + ": ECMWF", 1),
|
|
9760
9760
|
n("div", dm, b(e.$t("weather.lastUpdate")) + ": " + b(r.computeDateUpdate((gt = (pt = (ut = (ht = a.models) == null ? void 0 : ht.weather) == null ? void 0 : ut.ECMWF) == null ? void 0 : pt.meta) == null ? void 0 : gt.availabilityTime)), 1),
|
|
9761
9761
|
n("div", hm, b(e.$t("weather.referenceTime")) + ": " + b(r.computeDateZ((wt = (bt = (yt = (ft = a.models) == null ? void 0 : ft.weather) == null ? void 0 : yt.ECMWF) == null ? void 0 : bt.meta) == null ? void 0 : wt.initialisationTime)), 1),
|
|
@@ -9764,7 +9764,7 @@ function Cm(e, t, o, i, a, r) {
|
|
|
9764
9764
|
n("div", pm, b((_t = (kt = (vt = (xt = a.models) == null ? void 0 : xt.marine) == null ? void 0 : vt.wave) == null ? void 0 : kt.NOAA) == null ? void 0 : _t.source) + " " + b((Ct = (Pt = (Lt = (zt = a.models) == null ? void 0 : zt.marine) == null ? void 0 : Lt.wave) == null ? void 0 : Pt.NOAA) == null ? void 0 : Ct.spatialResolution) + b(e.$t("units.km")) + " " + b((It = (Rt = (Tt = (St = (Mt = a.models) == null ? void 0 : Mt.marine) == null ? void 0 : St.wave) == null ? void 0 : Tt.NOAA) == null ? void 0 : Rt.meta) == null ? void 0 : It.days) + b(e.$t("units.days")), 1),
|
|
9765
9765
|
n("div", gm, b(e.$t("weather.source")) + ": NOAA", 1),
|
|
9766
9766
|
n("div", fm, b(e.$t("weather.lastUpdate")) + ": " + b(r.computeDateUpdate((Ft = (Wt = (Gt = (At = (Dt = a.models) == null ? void 0 : Dt.marine) == null ? void 0 : At.wave) == null ? void 0 : Gt.NOAA) == null ? void 0 : Wt.meta) == null ? void 0 : Ft.availabilityTime)), 1),
|
|
9767
|
-
n("div", ym, b(e.$t("weather.referenceTime")) + ": " + b(r.computeDateZ((Ot = (Et = (
|
|
9767
|
+
n("div", ym, b(e.$t("weather.referenceTime")) + ": " + b(r.computeDateZ((Ot = (Et = (Zt = (Bt = (Nt = a.models) == null ? void 0 : Nt.marine) == null ? void 0 : Bt.wave) == null ? void 0 : Zt.NOAA) == null ? void 0 : Et.meta) == null ? void 0 : Ot.initialisationTime)), 1),
|
|
9768
9768
|
n("div", bm, b((Ht = (Vt = (jt = (Xt = a.models) == null ? void 0 : Xt.marine) == null ? void 0 : jt.wave) == null ? void 0 : Vt.ECMWF) == null ? void 0 : Ht.source) + " " + b((Kt = (Jt = (Ut = (Yt = a.models) == null ? void 0 : Yt.marine) == null ? void 0 : Ut.wave) == null ? void 0 : Jt.ECMWF) == null ? void 0 : Kt.spatialResolution) + b(e.$t("units.km")) + " " + b((oo = (to = (eo = (Qt = (qt = a.models) == null ? void 0 : qt.marine) == null ? void 0 : Qt.wave) == null ? void 0 : eo.ECMWF) == null ? void 0 : to.meta) == null ? void 0 : oo.days) + b(e.$t("units.days")), 1),
|
|
9769
9769
|
n("div", wm, b(e.$t("weather.source")) + ": ECMWF", 1),
|
|
9770
9770
|
n("div", xm, b(e.$t("weather.lastUpdate")) + ": " + b(r.computeDateUpdate((no = (lo = (ro = (io = (ao = a.models) == null ? void 0 : ao.marine) == null ? void 0 : io.wave) == null ? void 0 : ro.ECMWF) == null ? void 0 : lo.meta) == null ? void 0 : no.availabilityTime)), 1),
|
|
@@ -9784,7 +9784,7 @@ function Cm(e, t, o, i, a, r) {
|
|
|
9784
9784
|
})
|
|
9785
9785
|
], 2)
|
|
9786
9786
|
], 6),
|
|
9787
|
-
o.map ? (P(),
|
|
9787
|
+
o.map ? (P(), Z(w, Y({
|
|
9788
9788
|
key: 1,
|
|
9789
9789
|
ref: "windBarb",
|
|
9790
9790
|
map: o.map,
|
|
@@ -9793,7 +9793,7 @@ function Cm(e, t, o, i, a, r) {
|
|
|
9793
9793
|
wind: (H = a.weatherLayers) == null ? void 0 : H.wind,
|
|
9794
9794
|
"menu-toggle": o.menuToggle
|
|
9795
9795
|
}, e.$attrs), null, 16, ["map", "map-feather", "wind", "menu-toggle"])) : N("", !0),
|
|
9796
|
-
o.map ? (P(),
|
|
9796
|
+
o.map ? (P(), Z(k, Y({
|
|
9797
9797
|
key: 2,
|
|
9798
9798
|
map: o.map,
|
|
9799
9799
|
"before-layer": "empty-layer-2",
|
|
@@ -9801,7 +9801,7 @@ function Cm(e, t, o, i, a, r) {
|
|
|
9801
9801
|
"menu-toggle": o.menuToggle,
|
|
9802
9802
|
"active-weather-layers": a.activeWeatherLayers
|
|
9803
9803
|
}, e.$attrs), null, 16, ["map", "sig-wave-height", "menu-toggle", "active-weather-layers"])) : N("", !0),
|
|
9804
|
-
o.map ? (P(),
|
|
9804
|
+
o.map ? (P(), Z(S, Y({
|
|
9805
9805
|
key: 3,
|
|
9806
9806
|
map: o.map,
|
|
9807
9807
|
"map-feather": o.mapFeather,
|
|
@@ -9809,7 +9809,7 @@ function Cm(e, t, o, i, a, r) {
|
|
|
9809
9809
|
current: (te = a.weatherLayers) == null ? void 0 : te.current,
|
|
9810
9810
|
"menu-toggle": o.menuToggle
|
|
9811
9811
|
}, e.$attrs), null, 16, ["map", "map-feather", "current", "menu-toggle"])) : N("", !0),
|
|
9812
|
-
o.map ? (P(),
|
|
9812
|
+
o.map ? (P(), Z(_, Y({
|
|
9813
9813
|
key: 4,
|
|
9814
9814
|
map: o.map,
|
|
9815
9815
|
"before-layer": "empty-layer-3",
|
|
@@ -9817,28 +9817,28 @@ function Cm(e, t, o, i, a, r) {
|
|
|
9817
9817
|
"menu-toggle": o.menuToggle,
|
|
9818
9818
|
"active-weather-layers": a.activeWeatherLayers
|
|
9819
9819
|
}, e.$attrs, { theme: o.theme }), null, 16, ["map", "prmsl", "menu-toggle", "active-weather-layers", "theme"])) : N("", !0),
|
|
9820
|
-
o.map ? (P(),
|
|
9820
|
+
o.map ? (P(), Z(M, Y({
|
|
9821
9821
|
key: 5,
|
|
9822
9822
|
viewport: a.viewport,
|
|
9823
9823
|
factor: (O = a.weatherLayers) == null ? void 0 : O["wind-particle"],
|
|
9824
9824
|
"menu-toggle": o.menuToggle,
|
|
9825
9825
|
simple: o.simple
|
|
9826
9826
|
}, e.$attrs), null, 16, ["viewport", "factor", "menu-toggle", "simple"])) : N("", !0),
|
|
9827
|
-
o.map ? (P(),
|
|
9827
|
+
o.map ? (P(), Z(T, Y({
|
|
9828
9828
|
key: 6,
|
|
9829
9829
|
viewport: a.viewport,
|
|
9830
9830
|
factor: ($ = a.weatherLayers) == null ? void 0 : $["current-particle"],
|
|
9831
9831
|
"menu-toggle": o.menuToggle,
|
|
9832
9832
|
simple: o.simple
|
|
9833
9833
|
}, e.$attrs), null, 16, ["viewport", "factor", "menu-toggle", "simple"])) : N("", !0),
|
|
9834
|
-
o.map ? (P(),
|
|
9834
|
+
o.map ? (P(), Z(W, Y({
|
|
9835
9835
|
key: 7,
|
|
9836
9836
|
viewport: a.viewport,
|
|
9837
9837
|
factor: (A = a.weatherLayers) == null ? void 0 : A["sig-wave"],
|
|
9838
9838
|
"menu-toggle": o.menuToggle,
|
|
9839
9839
|
simple: o.simple
|
|
9840
9840
|
}, e.$attrs), null, 16, ["viewport", "factor", "menu-toggle", "simple"])) : N("", !0),
|
|
9841
|
-
o.map ? (P(),
|
|
9841
|
+
o.map ? (P(), Z(F, Y({
|
|
9842
9842
|
key: 8,
|
|
9843
9843
|
map: o.map,
|
|
9844
9844
|
viewport: a.viewport,
|
|
@@ -9847,49 +9847,49 @@ function Cm(e, t, o, i, a, r) {
|
|
|
9847
9847
|
"active-weather-layers": a.activeWeatherLayers,
|
|
9848
9848
|
simple: o.simple
|
|
9849
9849
|
}, e.$attrs), null, 16, ["map", "viewport", "factor", "menu-toggle", "active-weather-layers", "simple"])) : N("", !0),
|
|
9850
|
-
o.map ? (P(),
|
|
9850
|
+
o.map ? (P(), Z(E, Y({
|
|
9851
9851
|
key: 9,
|
|
9852
9852
|
viewport: a.viewport,
|
|
9853
9853
|
factor: (ge = a.weatherLayers) == null ? void 0 : ge["ice-edge"],
|
|
9854
9854
|
"menu-toggle": o.menuToggle,
|
|
9855
9855
|
simple: o.simple
|
|
9856
9856
|
}, e.$attrs), null, 16, ["viewport", "factor", "menu-toggle", "simple"])) : N("", !0),
|
|
9857
|
-
o.map ? (P(),
|
|
9857
|
+
o.map ? (P(), Z(V, Y({
|
|
9858
9858
|
key: 10,
|
|
9859
9859
|
viewport: a.viewport,
|
|
9860
9860
|
factor: (xe = a.weatherLayers) == null ? void 0 : xe["ice-cover"],
|
|
9861
9861
|
"menu-toggle": o.menuToggle,
|
|
9862
9862
|
simple: o.simple
|
|
9863
9863
|
}, e.$attrs), null, 16, ["viewport", "factor", "menu-toggle", "simple"])) : N("", !0),
|
|
9864
|
-
o.map ? (P(),
|
|
9864
|
+
o.map ? (P(), Z(J, Y({
|
|
9865
9865
|
key: 11,
|
|
9866
9866
|
viewport: a.viewport,
|
|
9867
9867
|
factor: (ke = a.weatherLayers) == null ? void 0 : ke["ice-thickness"],
|
|
9868
9868
|
"menu-toggle": o.menuToggle,
|
|
9869
9869
|
simple: o.simple
|
|
9870
9870
|
}, e.$attrs), null, 16, ["viewport", "factor", "menu-toggle", "simple"])) : N("", !0),
|
|
9871
|
-
o.map ? (P(),
|
|
9871
|
+
o.map ? (P(), Z(Q, Y({
|
|
9872
9872
|
key: 12,
|
|
9873
9873
|
viewport: a.viewport,
|
|
9874
9874
|
factor: (se = a.weatherLayers) == null ? void 0 : se.precip3h,
|
|
9875
9875
|
"menu-toggle": o.menuToggle,
|
|
9876
9876
|
simple: o.simple
|
|
9877
9877
|
}, e.$attrs), null, 16, ["viewport", "factor", "menu-toggle", "simple"])) : N("", !0),
|
|
9878
|
-
o.map ? (P(),
|
|
9878
|
+
o.map ? (P(), Z(ee, Y({
|
|
9879
9879
|
key: 13,
|
|
9880
9880
|
viewport: a.viewport,
|
|
9881
9881
|
factor: (fe = a.weatherLayers) == null ? void 0 : fe.visibility,
|
|
9882
9882
|
"menu-toggle": o.menuToggle,
|
|
9883
9883
|
simple: o.simple
|
|
9884
9884
|
}, e.$attrs), null, 16, ["viewport", "factor", "menu-toggle", "simple"])) : N("", !0),
|
|
9885
|
-
o.map ? (P(),
|
|
9885
|
+
o.map ? (P(), Z(he, Y({
|
|
9886
9886
|
key: 14,
|
|
9887
9887
|
viewport: a.viewport,
|
|
9888
9888
|
factor: (ve = a.weatherLayers) == null ? void 0 : ve["water-temp"],
|
|
9889
9889
|
"menu-toggle": o.menuToggle,
|
|
9890
9890
|
simple: o.simple
|
|
9891
9891
|
}, e.$attrs), null, 16, ["viewport", "factor", "menu-toggle", "simple"])) : N("", !0),
|
|
9892
|
-
o.map ? (P(),
|
|
9892
|
+
o.map ? (P(), Z(I, Y({
|
|
9893
9893
|
key: 15,
|
|
9894
9894
|
viewport: a.viewport,
|
|
9895
9895
|
factor: (Me = a.weatherLayers) == null ? void 0 : Me.temp,
|
|
@@ -10246,14 +10246,14 @@ let Di = class {
|
|
|
10246
10246
|
}
|
|
10247
10247
|
static pickHourly(t, o) {
|
|
10248
10248
|
var i, a, r, l, c, s, d, m, g, p, y, f, h, u, x, v, w, k, S, _, M, T, W, F, E, V, J, Q, ee, he, I, H, U, te, X, O, $, A, ie, ge, xe, ke, se, fe, ve, Me, K, me, je, Ne, Le, Te;
|
|
10249
|
-
const oe = typeof o == "string" ? G(o) : o, Pe = t == null ? void 0 : t.weather, pe = t == null ? void 0 : t.marine, ye = G((a = (i = Pe == null ? void 0 : Pe[0]) == null ? void 0 : i.hourly) == null ? void 0 : a.date).utc(),
|
|
10250
|
-
if (oe.isBetween(
|
|
10251
|
-
const j = oe.utc().diff(
|
|
10249
|
+
const oe = typeof o == "string" ? G(o) : o, Pe = t == null ? void 0 : t.weather, pe = t == null ? void 0 : t.marine, ye = G((a = (i = Pe == null ? void 0 : Pe[0]) == null ? void 0 : i.hourly) == null ? void 0 : a.date).utc(), Ze = ye.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"), He = ye.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"), Ve = [];
|
|
10250
|
+
if (oe.isBetween(Ze, He, "millisecond", "[]")) {
|
|
10251
|
+
const j = oe.utc().diff(Ze, "h", !1);
|
|
10252
10252
|
let be, Re;
|
|
10253
10253
|
if (Pe) {
|
|
10254
10254
|
let Ee = 0, Oe = 0, q = 0;
|
|
10255
|
-
for (const
|
|
10256
|
-
const re =
|
|
10255
|
+
for (const Be of Pe) {
|
|
10256
|
+
const re = Be == null ? void 0 : Be.hourly;
|
|
10257
10257
|
for (let Ge = j - (j - 1) % 3; Ge <= j; Ge++)
|
|
10258
10258
|
Ee += (g = re == null ? void 0 : re.precipitation) == null ? void 0 : g.at(Ge);
|
|
10259
10259
|
for (let Ge = j - (j - 1) % 6; Ge <= j; Ge++)
|
|
@@ -10288,8 +10288,8 @@ let Di = class {
|
|
|
10288
10288
|
};
|
|
10289
10289
|
const { name: tt, url: ot, bg: at } = this.parseWeatherCode(be.code, be.isDay);
|
|
10290
10290
|
be.name = tt, be.url = ot, be.bg = at, be.wind.scale = this.beaufort(this.kts2ms(be.wind.kts)), be.wind.direction = this.degree2Direction(be.wind.degree), Ve.push({
|
|
10291
|
-
utc:
|
|
10292
|
-
model:
|
|
10291
|
+
utc: Ze.add(j, "h").format(),
|
|
10292
|
+
model: Be.model,
|
|
10293
10293
|
weather: { ...be }
|
|
10294
10294
|
});
|
|
10295
10295
|
}
|
|
@@ -10398,8 +10398,8 @@ let Di = class {
|
|
|
10398
10398
|
bearing: ((V = pe.wind_direction_10m_dominant) == null ? void 0 : V.at(oe)) !== null ? (((J = pe.wind_direction_10m_dominant) == null ? void 0 : J.at(oe)) + 180) % 360 : null
|
|
10399
10399
|
}
|
|
10400
10400
|
};
|
|
10401
|
-
const { name: ye, url:
|
|
10402
|
-
Le.name = ye, Le.url =
|
|
10401
|
+
const { name: ye, url: Ze, bg: He } = this.parseWeatherCode(Le.code, !0);
|
|
10402
|
+
Le.name = ye, Le.url = Ze, Le.bg = He, Le.wind.scale = this.beaufort(this.kts2ms(Le.wind.kts)), Le.wind.direction = this.degree2Direction(Le.wind.degree), Ne.push({
|
|
10403
10403
|
utc: me.add(oe, "d").utc().format(),
|
|
10404
10404
|
model: Pe.model,
|
|
10405
10405
|
weather: { ...Le }
|
|
@@ -11521,7 +11521,7 @@ const Sm = {
|
|
|
11521
11521
|
}, Tm = { class: "idm-tropical-gl4" }, Rm = { class: "pb-1" }, Im = { class: "text-h5 font-weight-600" }, Dm = {
|
|
11522
11522
|
key: 0,
|
|
11523
11523
|
class: "text-h5 font-weight-600"
|
|
11524
|
-
}, Am = { class: "text-body-1" }, Gm = { class: "text-label" }, Wm = { class: "d-flex justify-space-between align-center" }, Fm = { class: "w-60" }, Nm = { class: "text-label pr-1" },
|
|
11524
|
+
}, Am = { class: "text-body-1" }, Gm = { class: "text-label" }, Wm = { class: "d-flex justify-space-between align-center" }, Fm = { class: "w-60" }, Nm = { class: "text-label pr-1" }, Bm = { class: "flex-1-1-0" }, Zm = { class: "text-label pr-1" }, Em = { class: "py-2 d-flex justify-space-between align-center" }, Om = { class: "w-60" }, Xm = { class: "text-label pr-1" }, jm = { class: "flex-1-1-0" }, Vm = { class: "text-label pr-1" }, Hm = { class: "d-flex align-center flex-1-1-100 justify-space-between mt-n1" }, Ym = {
|
|
11525
11525
|
class: "text-label pr-1",
|
|
11526
11526
|
style: { width: "70px" }
|
|
11527
11527
|
}, Um = { class: "model-box d-flex justify-end align-center flex-wrap ga-1 pa-1" }, Jm = { class: "more" }, Km = {
|
|
@@ -11531,7 +11531,7 @@ const Sm = {
|
|
|
11531
11531
|
key: 1,
|
|
11532
11532
|
class: "my-3 w-100",
|
|
11533
11533
|
style: { height: "80px" }
|
|
11534
|
-
}, xd = { class: "legend d-flex justify-start align-center" }, vd = { class: "label" }, kd = { class: "legend d-flex justify-start align-center" }, _d = { class: "label" }, zd = { class: "legend d-flex justify-start align-center" }, Ld = { class: "label" }, Pd = { class: "legend d-flex justify-start align-center" }, Cd = { class: "label" }, Md = { class: "legend d-flex justify-start align-center" }, Sd = { class: "label" }, Td = { class: "legend d-flex justify-start align-center" }, Rd = { class: "label" }, Id = { class: "legend d-flex justify-start align-center" }, Dd = { class: "label" }, Ad = { class: "legend d-flex justify-start align-center" }, Gd = { class: "label" }, Wd = { class: "legend d-flex justify-start align-center" }, Fd = { class: "label" }, Nd = { class: "legend d-flex justify-start align-center" },
|
|
11534
|
+
}, xd = { class: "legend d-flex justify-start align-center" }, vd = { class: "label" }, kd = { class: "legend d-flex justify-start align-center" }, _d = { class: "label" }, zd = { class: "legend d-flex justify-start align-center" }, Ld = { class: "label" }, Pd = { class: "legend d-flex justify-start align-center" }, Cd = { class: "label" }, Md = { class: "legend d-flex justify-start align-center" }, Sd = { class: "label" }, Td = { class: "legend d-flex justify-start align-center" }, Rd = { class: "label" }, Id = { class: "legend d-flex justify-start align-center" }, Dd = { class: "label" }, Ad = { class: "legend d-flex justify-start align-center" }, Gd = { class: "label" }, Wd = { class: "legend d-flex justify-start align-center" }, Fd = { class: "label" }, Nd = { class: "legend d-flex justify-start align-center" }, Bd = { class: "label" }, Zd = { class: "d-flex justify-star align-center" }, Ed = { class: "font-weight-600 mr-1" }, Od = { class: "" }, Xd = { class: "port-box d-flex flex-column justify-center align-start ga-2" }, jd = {
|
|
11535
11535
|
key: 0,
|
|
11536
11536
|
class: "d-flex justify-start align-center"
|
|
11537
11537
|
}, Vd = { class: "text-label pr-1" }, Hd = {
|
|
@@ -11640,8 +11640,8 @@ function mh(e, t, o, i, a, r) {
|
|
|
11640
11640
|
n("span", null, b(((h = (f = a.activeTropicals) == null ? void 0 : f.history) == null ? void 0 : h.kts) || "-") + " kts", 1),
|
|
11641
11641
|
n("span", null, ", BF " + b(r.computeBF(((x = (u = a.activeTropicals) == null ? void 0 : u.history) == null ? void 0 : x.kts) || "-")), 1)
|
|
11642
11642
|
]),
|
|
11643
|
-
n("div",
|
|
11644
|
-
n("label",
|
|
11643
|
+
n("div", Bm, [
|
|
11644
|
+
n("label", Zm, b(e.$t("weather.pressure")) + " : ", 1),
|
|
11645
11645
|
n("span", null, b(((w = (v = a.activeTropicals) == null ? void 0 : v.history) == null ? void 0 : w.pressure) || "-") + " hPa", 1)
|
|
11646
11646
|
])
|
|
11647
11647
|
]),
|
|
@@ -11658,7 +11658,7 @@ function mh(e, t, o, i, a, r) {
|
|
|
11658
11658
|
n("div", Hm, [
|
|
11659
11659
|
n("label", Ym, b(e.$t("tropical.models")) + " : ", 1),
|
|
11660
11660
|
n("div", Um, [
|
|
11661
|
-
(P(!0), D(Ie, null, De((_ = a.activeTropicals) == null ? void 0 : _.forecasts, (M, T) => (P(),
|
|
11661
|
+
(P(!0), D(Ie, null, De((_ = a.activeTropicals) == null ? void 0 : _.forecasts, (M, T) => (P(), Z(l, {
|
|
11662
11662
|
key: T,
|
|
11663
11663
|
density: "compact",
|
|
11664
11664
|
variant: M.disabled ? "text" : "flat",
|
|
@@ -11679,7 +11679,7 @@ function mh(e, t, o, i, a, r) {
|
|
|
11679
11679
|
_: 1
|
|
11680
11680
|
}),
|
|
11681
11681
|
L(d),
|
|
11682
|
-
o.simple ? N("", !0) : (P(),
|
|
11682
|
+
o.simple ? N("", !0) : (P(), Z(m, {
|
|
11683
11683
|
key: 0,
|
|
11684
11684
|
class: "d-flex justify-space-between"
|
|
11685
11685
|
}, {
|
|
@@ -11701,7 +11701,7 @@ function mh(e, t, o, i, a, r) {
|
|
|
11701
11701
|
_: 1
|
|
11702
11702
|
}, 8, ["color"]),
|
|
11703
11703
|
n("div", Jm, [
|
|
11704
|
-
o.permission & a.helper.LEVEL.Supper ? (P(),
|
|
11704
|
+
o.permission & a.helper.LEVEL.Supper ? (P(), Z(l, {
|
|
11705
11705
|
key: 0,
|
|
11706
11706
|
variant: "text",
|
|
11707
11707
|
density: "compact",
|
|
@@ -11823,7 +11823,7 @@ function mh(e, t, o, i, a, r) {
|
|
|
11823
11823
|
]),
|
|
11824
11824
|
n("div", Nd, [
|
|
11825
11825
|
t[25] || (t[25] = n("div", { class: "icon r10" }, null, -1)),
|
|
11826
|
-
n("div",
|
|
11826
|
+
n("div", Bd, "50kts " + b(e.$t("tropical.radii")), 1)
|
|
11827
11827
|
])
|
|
11828
11828
|
], 2), [
|
|
11829
11829
|
[et, a.showLegend]
|
|
@@ -11848,7 +11848,7 @@ function mh(e, t, o, i, a, r) {
|
|
|
11848
11848
|
default: C(() => {
|
|
11849
11849
|
var f, h, u, x;
|
|
11850
11850
|
return [
|
|
11851
|
-
n("div",
|
|
11851
|
+
n("div", Zd, [
|
|
11852
11852
|
n("span", Ed, b(o.locale === "en" ? (f = a.hoverPoint) == null ? void 0 : f.Name : ((h = a.hoverPoint) == null ? void 0 : h.nameCn) || ((u = a.hoverPoint) == null ? void 0 : u.Name)), 1),
|
|
11853
11853
|
n("span", Od, " [" + b(e.$t("tropical." + ((x = a.hoverPoint) == null ? void 0 : x.levelI18n))) + "]", 1)
|
|
11854
11854
|
])
|
|
@@ -12121,7 +12121,7 @@ function fh(e, t, o, i, a, r) {
|
|
|
12121
12121
|
class: _e([o.bgClass, "rounded text-body-1 btn-border-1 btn-bg-1 d-flex align-center justify-center px-2 cursor-pointer"]),
|
|
12122
12122
|
onClick: t[0] || (t[0] = (...h) => r.handleOpenDatePicker && r.handleOpenDatePicker(...h))
|
|
12123
12123
|
}, b(a.currentDateTime) + " | UTC " + b(o.timeZone < 0 ? o.timeZone : "+" + o.timeZone), 7),
|
|
12124
|
-
a.showDatePicker ? (P(),
|
|
12124
|
+
a.showDatePicker ? (P(), Z(f, {
|
|
12125
12125
|
key: 0,
|
|
12126
12126
|
class: "card-box d-flex flex-column border",
|
|
12127
12127
|
style: ue(r.getStyle)
|
|
@@ -12152,7 +12152,7 @@ function fh(e, t, o, i, a, r) {
|
|
|
12152
12152
|
n("div", gh, b(a.currentTime), 1),
|
|
12153
12153
|
L(m, { class: "pa-0 flex-1-1-0 scroll" }, {
|
|
12154
12154
|
default: C(() => [
|
|
12155
|
-
(P(!0), D(Ie, null, De(r.hourOptions, (h, u) => (P(),
|
|
12155
|
+
(P(!0), D(Ie, null, De(r.hourOptions, (h, u) => (P(), Z(d, {
|
|
12156
12156
|
key: u,
|
|
12157
12157
|
value: h,
|
|
12158
12158
|
color: "primary",
|
|
@@ -12417,14 +12417,14 @@ function vh(e, t, o, i, a, r) {
|
|
|
12417
12417
|
onClick: t[0] || (t[0] = (...y) => r.handleOpenDatePicker && r.handleOpenDatePicker(...y))
|
|
12418
12418
|
}, [
|
|
12419
12419
|
n("span", wh, b(a.dateRangeStr), 1),
|
|
12420
|
-
a.dateRangeStr ? (P(),
|
|
12420
|
+
a.dateRangeStr ? (P(), Z(l, {
|
|
12421
12421
|
key: 0,
|
|
12422
12422
|
class: "text-h5",
|
|
12423
12423
|
icon: "mdi-close-circle text-label",
|
|
12424
12424
|
onClick: Se(r.handleClearDate, ["stop"])
|
|
12425
12425
|
}, null, 8, ["onClick"])) : N("", !0)
|
|
12426
12426
|
], 4),
|
|
12427
|
-
a.showDatePicker ? (P(),
|
|
12427
|
+
a.showDatePicker ? (P(), Z(p, {
|
|
12428
12428
|
key: 0,
|
|
12429
12429
|
class: "card-box d-flex flex-column border",
|
|
12430
12430
|
style: ue(r.getStyle)
|
|
@@ -13613,7 +13613,7 @@ const kh = {
|
|
|
13613
13613
|
}, Ah = ["xlink:href"], Gh = { class: "d-flex justify-start align-center ga-1 mb-1" }, Wh = {
|
|
13614
13614
|
class: "multi-color-icon",
|
|
13615
13615
|
"aria-hidden": "true"
|
|
13616
|
-
}, Fh = ["xlink:href"], Nh = { class: "d-flex justify-start align-center" },
|
|
13616
|
+
}, Fh = ["xlink:href"], Nh = { class: "d-flex justify-start align-center" }, Bh = { class: "mx-2" }, Zh = { class: "mx-0 py-2 d-flex align-center justify-start" }, Eh = {
|
|
13617
13617
|
style: { width: "100px" },
|
|
13618
13618
|
class: "pa-0 pr-2 text-right opacity-50"
|
|
13619
13619
|
}, Oh = { class: "pa-0 px-0" }, Xh = { class: "mx-0 py-2 d-flex align-center justify-start" }, jh = {
|
|
@@ -13693,7 +13693,7 @@ function Cu(e, t, o, i, a, r) {
|
|
|
13693
13693
|
_: 1
|
|
13694
13694
|
}, 8, ["text", "open-on-focus", "open-on-hover"])
|
|
13695
13695
|
], 4),
|
|
13696
|
-
a.showForm && !o.simple ? (P(),
|
|
13696
|
+
a.showForm && !o.simple ? (P(), Z(v, {
|
|
13697
13697
|
key: 0,
|
|
13698
13698
|
class: "spot-form-card",
|
|
13699
13699
|
style: ue({ top: o.top + o.paddingTop + 126 + "px", right: a.right + 50 + "px" })
|
|
@@ -14016,7 +14016,7 @@ function Cu(e, t, o, i, a, r) {
|
|
|
14016
14016
|
]),
|
|
14017
14017
|
_: 1
|
|
14018
14018
|
}, 8, ["style"])) : N("", !0),
|
|
14019
|
-
a.showMeteo && !o.simple ? (P(),
|
|
14019
|
+
a.showMeteo && !o.simple ? (P(), Z(v, {
|
|
14020
14020
|
key: 1,
|
|
14021
14021
|
id: "idm-gl4-spot-meteo",
|
|
14022
14022
|
class: "spot-meteo",
|
|
@@ -14027,7 +14027,7 @@ function Cu(e, t, o, i, a, r) {
|
|
|
14027
14027
|
default: C(() => [
|
|
14028
14028
|
n("div", Nh, [
|
|
14029
14029
|
t[16] || (t[16] = n("i", { class: "iconfont icon-a-Spotweather text-h5 map-icon-aqua" }, null, -1)),
|
|
14030
|
-
n("div",
|
|
14030
|
+
n("div", Bh, b(r.computePosition(a.form || a.currentHourData)), 1)
|
|
14031
14031
|
]),
|
|
14032
14032
|
L(l, {
|
|
14033
14033
|
class: "mr-n2",
|
|
@@ -14050,7 +14050,7 @@ function Cu(e, t, o, i, a, r) {
|
|
|
14050
14050
|
default: C(() => {
|
|
14051
14051
|
var w, k;
|
|
14052
14052
|
return [
|
|
14053
|
-
n("div",
|
|
14053
|
+
n("div", Zh, [
|
|
14054
14054
|
n("div", Eh, b(e.$t("time.time")), 1),
|
|
14055
14055
|
n("div", Oh, b(r.computedTzTime((w = a.currentHourData) == null ? void 0 : w.utc)), 1)
|
|
14056
14056
|
]),
|
|
@@ -14091,7 +14091,7 @@ function Cu(e, t, o, i, a, r) {
|
|
|
14091
14091
|
(w = o.followList) != null && w.some((k) => {
|
|
14092
14092
|
var S, _;
|
|
14093
14093
|
return (k == null ? void 0 : k.id) === a.form.followId || ((S = k == null ? void 0 : k.coordinate) == null ? void 0 : S.lng) === a.form.lng && ((_ = k == null ? void 0 : k.coordinate) == null ? void 0 : _.lat) === a.form.lat;
|
|
14094
|
-
}) ? (P(),
|
|
14094
|
+
}) ? (P(), Z(l, {
|
|
14095
14095
|
key: 0,
|
|
14096
14096
|
class: "text-none text-body-1",
|
|
14097
14097
|
id: "idm-gl4-spot-meteo-follow",
|
|
@@ -14107,7 +14107,7 @@ function Cu(e, t, o, i, a, r) {
|
|
|
14107
14107
|
de(" " + b(e.$t("actions.unfollow")), 1)
|
|
14108
14108
|
]),
|
|
14109
14109
|
_: 1
|
|
14110
|
-
}, 8, ["onClick"])) : (P(),
|
|
14110
|
+
}, 8, ["onClick"])) : (P(), Z(l, {
|
|
14111
14111
|
key: 1,
|
|
14112
14112
|
id: "idm-gl4-spot-meteo-unfollow",
|
|
14113
14113
|
class: "text-none text-body-1",
|
|
@@ -14144,7 +14144,7 @@ function Cu(e, t, o, i, a, r) {
|
|
|
14144
14144
|
]),
|
|
14145
14145
|
_: 1
|
|
14146
14146
|
})) : N("", !0),
|
|
14147
|
-
a.showMeteo && o.simple ? (P(),
|
|
14147
|
+
a.showMeteo && o.simple ? (P(), Z(v, {
|
|
14148
14148
|
key: 2,
|
|
14149
14149
|
ref: "spotMeteo",
|
|
14150
14150
|
class: "position-absolute bottom-0 rounded-t-4",
|
|
@@ -14164,7 +14164,7 @@ function Cu(e, t, o, i, a, r) {
|
|
|
14164
14164
|
(w = o.followList) != null && w.some((k) => {
|
|
14165
14165
|
var S, _;
|
|
14166
14166
|
return (k == null ? void 0 : k.id) === a.form.followId || ((S = k == null ? void 0 : k.coordinate) == null ? void 0 : S.lng) === a.form.lng && ((_ = k == null ? void 0 : k.coordinate) == null ? void 0 : _.lat) === a.form.lat;
|
|
14167
|
-
}) ? (P(),
|
|
14167
|
+
}) ? (P(), Z(l, {
|
|
14168
14168
|
key: 0,
|
|
14169
14169
|
class: "text-none text-body-1 rounded-circle",
|
|
14170
14170
|
variant: "text",
|
|
@@ -14179,7 +14179,7 @@ function Cu(e, t, o, i, a, r) {
|
|
|
14179
14179
|
])),
|
|
14180
14180
|
_: 1,
|
|
14181
14181
|
__: [22]
|
|
14182
|
-
}, 8, ["onClick"])) : (P(),
|
|
14182
|
+
}, 8, ["onClick"])) : (P(), Z(l, {
|
|
14183
14183
|
key: 1,
|
|
14184
14184
|
class: "text-none text-body-1 rounded-circle",
|
|
14185
14185
|
variant: "plain",
|
|
@@ -14676,25 +14676,25 @@ function Ru(e, t, o, i, a, r) {
|
|
|
14676
14676
|
]);
|
|
14677
14677
|
}
|
|
14678
14678
|
const Iu = /* @__PURE__ */ ne(Su, [["render", Ru]]);
|
|
14679
|
-
var
|
|
14679
|
+
var B = { image: /* @__PURE__ */ new Map(), background: /* @__PURE__ */ new Map(), resource: /* @__PURE__ */ new Map(), defaultStyle: /* @__PURE__ */ new Map(), baseStyle: /* @__PURE__ */ new Map(), computedStyle: /* @__PURE__ */ new WeakMap(), font: /* @__PURE__ */ new Set(), session: { styleMap: /* @__PURE__ */ new Map(), styleCache: /* @__PURE__ */ new WeakMap(), nodeMap: /* @__PURE__ */ new Map() } };
|
|
14680
14680
|
function Du(e = "soft") {
|
|
14681
|
-
switch (
|
|
14681
|
+
switch (B.session.__counterEpoch = (B.session.__counterEpoch || 0) + 1, e) {
|
|
14682
14682
|
case "auto": {
|
|
14683
|
-
|
|
14683
|
+
B.session.styleMap = /* @__PURE__ */ new Map(), B.session.nodeMap = /* @__PURE__ */ new Map();
|
|
14684
14684
|
return;
|
|
14685
14685
|
}
|
|
14686
14686
|
case "soft": {
|
|
14687
|
-
|
|
14687
|
+
B.session.styleMap = /* @__PURE__ */ new Map(), B.session.nodeMap = /* @__PURE__ */ new Map(), B.session.styleCache = /* @__PURE__ */ new WeakMap();
|
|
14688
14688
|
return;
|
|
14689
14689
|
}
|
|
14690
14690
|
case "full":
|
|
14691
14691
|
return;
|
|
14692
14692
|
case "disabled": {
|
|
14693
|
-
|
|
14693
|
+
B.session.styleMap = /* @__PURE__ */ new Map(), B.session.nodeMap = /* @__PURE__ */ new Map(), B.session.styleCache = /* @__PURE__ */ new WeakMap(), B.computedStyle = /* @__PURE__ */ new WeakMap(), B.baseStyle = /* @__PURE__ */ new Map(), B.defaultStyle = /* @__PURE__ */ new Map(), B.image = /* @__PURE__ */ new Map(), B.background = /* @__PURE__ */ new Map(), B.resource = /* @__PURE__ */ new Map(), B.font = /* @__PURE__ */ new Set();
|
|
14694
14694
|
return;
|
|
14695
14695
|
}
|
|
14696
14696
|
default: {
|
|
14697
|
-
|
|
14697
|
+
B.session.styleMap = /* @__PURE__ */ new Map(), B.session.nodeMap = /* @__PURE__ */ new Map(), B.session.styleCache = /* @__PURE__ */ new WeakMap();
|
|
14698
14698
|
return;
|
|
14699
14699
|
}
|
|
14700
14700
|
}
|
|
@@ -14769,7 +14769,7 @@ function Nu(e, t) {
|
|
|
14769
14769
|
return !!t;
|
|
14770
14770
|
}
|
|
14771
14771
|
}
|
|
14772
|
-
function
|
|
14772
|
+
function Bu(e, t) {
|
|
14773
14773
|
if (!t)
|
|
14774
14774
|
return e;
|
|
14775
14775
|
if (t.includes("{url}"))
|
|
@@ -14789,7 +14789,7 @@ function Gi(e) {
|
|
|
14789
14789
|
i.onload = () => t(String(i.result || "")), i.onerror = () => o(new Error("read_failed")), i.readAsDataURL(e);
|
|
14790
14790
|
});
|
|
14791
14791
|
}
|
|
14792
|
-
function
|
|
14792
|
+
function Zu(e, t) {
|
|
14793
14793
|
return [t.as || "blob", t.timeout ?? 3e3, t.useProxy || "", t.errorTTL ?? 8e3, e].join("|");
|
|
14794
14794
|
}
|
|
14795
14795
|
async function Ue(e, t = {}) {
|
|
@@ -14817,14 +14817,14 @@ async function Ue(e, t = {}) {
|
|
|
14817
14817
|
}
|
|
14818
14818
|
if (/^about:blank$/i.test(e))
|
|
14819
14819
|
return o === "dataURL" ? { ok: !0, data: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR4nGMAAQAABQABDQottAAAAABJRU5ErkJggg==", status: 200, url: e, fromCache: !1, mime: "image/png" } : { ok: !0, data: o === "text" ? "" : new Blob([]), status: 200, url: e, fromCache: !1 };
|
|
14820
|
-
let s =
|
|
14820
|
+
let s = Zu(e, { as: o, timeout: i, useProxy: a, errorTTL: r }), d = Ho.get(s);
|
|
14821
14821
|
if (d && d.until > Date.now())
|
|
14822
14822
|
return { ...d.result, fromCache: !0 };
|
|
14823
14823
|
d && Ho.delete(s);
|
|
14824
14824
|
let m = aa.get(s);
|
|
14825
14825
|
if (m)
|
|
14826
14826
|
return m;
|
|
14827
|
-
let g = Nu(e, a) ?
|
|
14827
|
+
let g = Nu(e, a) ? Bu(e, a) : e, p = t.credentials;
|
|
14828
14828
|
if (!p)
|
|
14829
14829
|
try {
|
|
14830
14830
|
let u = typeof location < "u" && location.href ? location.href : "http://localhost/", x = new URL(e, u);
|
|
@@ -14867,25 +14867,25 @@ async function ir(e, t = {}) {
|
|
|
14867
14867
|
if (!o)
|
|
14868
14868
|
return e;
|
|
14869
14869
|
let i = Qo(o);
|
|
14870
|
-
if (
|
|
14871
|
-
let a =
|
|
14870
|
+
if (B.background.has(i)) {
|
|
14871
|
+
let a = B.background.get(i);
|
|
14872
14872
|
return a ? `url("${a}")` : "none";
|
|
14873
14873
|
}
|
|
14874
14874
|
try {
|
|
14875
14875
|
let a = await Ue(i, { as: "dataURL", useProxy: t.useProxy });
|
|
14876
|
-
return a.ok ? (
|
|
14876
|
+
return a.ok ? (B.background.set(i, a.data), `url("${a.data}")`) : (B.background.set(i, null), "none");
|
|
14877
14877
|
} catch {
|
|
14878
|
-
return
|
|
14878
|
+
return B.background.set(i, null), "none";
|
|
14879
14879
|
}
|
|
14880
14880
|
}
|
|
14881
14881
|
var Eu = /* @__PURE__ */ new Set(["meta", "script", "noscript", "title", "link", "template"]), ba = /* @__PURE__ */ new Set(["meta", "link", "style", "title", "noscript", "script", "template", "g", "defs", "use", "marker", "mask", "clipPath", "pattern", "path", "polygon", "polyline", "line", "circle", "ellipse", "rect", "filter", "lineargradient", "radialgradient", "stop"]);
|
|
14882
14882
|
function Ou(e) {
|
|
14883
14883
|
if (e = String(e).toLowerCase(), ba.has(e)) {
|
|
14884
14884
|
let r = {};
|
|
14885
|
-
return
|
|
14885
|
+
return B.defaultStyle.set(e, r), r;
|
|
14886
14886
|
}
|
|
14887
|
-
if (
|
|
14888
|
-
return
|
|
14887
|
+
if (B.defaultStyle.has(e))
|
|
14888
|
+
return B.defaultStyle.get(e);
|
|
14889
14889
|
let t = document.getElementById("snapdom-sandbox");
|
|
14890
14890
|
t || (t = document.createElement("div"), t.id = "snapdom-sandbox", t.setAttribute("data-snapdom-sandbox", "true"), t.setAttribute("aria-hidden", "true"), t.style.position = "absolute", t.style.left = "-9999px", t.style.top = "-9999px", t.style.width = "0px", t.style.height = "0px", t.style.overflow = "hidden", document.body.appendChild(t));
|
|
14891
14891
|
let o = document.createElement(e);
|
|
@@ -14897,7 +14897,7 @@ function Ou(e) {
|
|
|
14897
14897
|
let l = i.getPropertyValue(r);
|
|
14898
14898
|
a[r] = l;
|
|
14899
14899
|
}
|
|
14900
|
-
return t.removeChild(o),
|
|
14900
|
+
return t.removeChild(o), B.defaultStyle.set(e, a), a;
|
|
14901
14901
|
}
|
|
14902
14902
|
var Xu = /(?:^|-)(animation|transition)(?:-|$)/i, ju = /^(--|view-timeline|scroll-timeline|animation-trigger|offset-|position-try|app-region|interactivity|overlay|view-transition|-webkit-locale|-webkit-user-(?:drag|modify)|-webkit-tap-highlight-color|-webkit-text-security)$/i, Vu = /* @__PURE__ */ new Set(["cursor", "pointer-events", "touch-action", "user-select", "print-color-adjust", "speak", "reading-flow", "reading-order", "anchor-name", "anchor-scope", "container-name", "container-type", "timeline-scope"]);
|
|
14903
14903
|
function rr(e) {
|
|
@@ -14923,7 +14923,7 @@ function Hu(e) {
|
|
|
14923
14923
|
function Yu(e) {
|
|
14924
14924
|
let t = /* @__PURE__ */ new Map();
|
|
14925
14925
|
for (let i of e) {
|
|
14926
|
-
let a =
|
|
14926
|
+
let a = B.defaultStyle.get(i);
|
|
14927
14927
|
if (!a)
|
|
14928
14928
|
continue;
|
|
14929
14929
|
let r = Object.entries(a).map(([l, c]) => `${l}:${c};`).sort().join("");
|
|
@@ -14944,8 +14944,8 @@ function Uu(e) {
|
|
|
14944
14944
|
function lr(e, t = null) {
|
|
14945
14945
|
if (!(e instanceof Element))
|
|
14946
14946
|
return window.getComputedStyle(e, t);
|
|
14947
|
-
let o =
|
|
14948
|
-
if (o || (o = /* @__PURE__ */ new Map(),
|
|
14947
|
+
let o = B.computedStyle.get(e);
|
|
14948
|
+
if (o || (o = /* @__PURE__ */ new Map(), B.computedStyle.set(e, o)), !o.has(t)) {
|
|
14949
14949
|
let i = window.getComputedStyle(e, t);
|
|
14950
14950
|
o.set(t, i);
|
|
14951
14951
|
}
|
|
@@ -15282,16 +15282,16 @@ async function dr(e, t, o = "") {
|
|
|
15282
15282
|
} catch {
|
|
15283
15283
|
}
|
|
15284
15284
|
if (!Ke(g)) {
|
|
15285
|
-
if ((a =
|
|
15286
|
-
(r =
|
|
15285
|
+
if ((a = B.resource) != null && a.has(g)) {
|
|
15286
|
+
(r = B.font) == null || r.add(g), i = i.replace(d[0], `url(${B.resource.get(g)})`);
|
|
15287
15287
|
continue;
|
|
15288
15288
|
}
|
|
15289
|
-
if (!((l =
|
|
15289
|
+
if (!((l = B.font) != null && l.has(g)))
|
|
15290
15290
|
try {
|
|
15291
15291
|
let p = await Ue(g, { as: "dataURL", useProxy: o, silent: !0 });
|
|
15292
15292
|
if (p.ok && typeof p.data == "string") {
|
|
15293
15293
|
let y = p.data;
|
|
15294
|
-
(c =
|
|
15294
|
+
(c = B.resource) == null || c.set(g, y), (s = B.font) == null || s.add(g), i = i.replace(d[0], `url(${y})`);
|
|
15295
15295
|
}
|
|
15296
15296
|
} catch {
|
|
15297
15297
|
console.warn("[snapDOM] Failed to fetch font resource:", g);
|
|
@@ -15306,7 +15306,7 @@ function pp(e) {
|
|
|
15306
15306
|
let t = (l, c) => e.some(([s, d]) => !(d < l || s > c)), o = t(0, 255) || t(305, 305), i = t(256, 591) || t(7680, 7935), a = t(880, 1023), r = t(1024, 1279);
|
|
15307
15307
|
return t(7840, 7929) || t(258, 259) || t(416, 417) || t(431, 432) ? "vietnamese" : r ? "cyrillic" : a ? "greek" : i ? "latin-ext" : o ? "latin" : null;
|
|
15308
15308
|
}
|
|
15309
|
-
function
|
|
15309
|
+
function Bi(e = {}) {
|
|
15310
15310
|
let t = new Set((e.families || []).map((a) => String(a).toLowerCase())), o = new Set((e.domains || []).map((a) => String(a).toLowerCase())), i = new Set((e.subsets || []).map((a) => String(a).toLowerCase()));
|
|
15311
15311
|
return (a, r) => {
|
|
15312
15312
|
if (t.size && t.has(a.family.toLowerCase()))
|
|
@@ -15433,9 +15433,9 @@ async function yp({ required: e, usedCodepoints: t, exclude: o = void 0, localFo
|
|
|
15433
15433
|
}
|
|
15434
15434
|
return !1;
|
|
15435
15435
|
}
|
|
15436
|
-
let c =
|
|
15437
|
-
if ((h =
|
|
15438
|
-
return
|
|
15436
|
+
let c = Bi(o), s = fp(e, o, i, a);
|
|
15437
|
+
if ((h = B.resource) != null && h.has(s))
|
|
15438
|
+
return B.resource.get(s);
|
|
15439
15439
|
let d = dp(e), m = [], g = sa;
|
|
15440
15440
|
for (let I of document.querySelectorAll("style")) {
|
|
15441
15441
|
let H = I.textContent || "";
|
|
@@ -15495,7 +15495,7 @@ async function yp({ required: e, usedCodepoints: t, exclude: o = void 0, localFo
|
|
|
15495
15495
|
} catch {
|
|
15496
15496
|
console.warn("[snapDOM] Failed to process stylesheet:", I.href);
|
|
15497
15497
|
}
|
|
15498
|
-
let f = { requiredIndex: r, usedCodepoints: t, faceMatchesRequired: l, simpleExcluder: o ?
|
|
15498
|
+
let f = { requiredIndex: r, usedCodepoints: t, faceMatchesRequired: l, simpleExcluder: o ? Bi(o) : null, useProxy: a, visitedSheets: /* @__PURE__ */ new Set(), depth: 0 };
|
|
15499
15499
|
for (let I of document.styleSheets)
|
|
15500
15500
|
if (!(I.href && y.some((H) => H.href === I.href)))
|
|
15501
15501
|
try {
|
|
@@ -15514,13 +15514,13 @@ async function yp({ required: e, usedCodepoints: t, exclude: o = void 0, localFo
|
|
|
15514
15514
|
continue;
|
|
15515
15515
|
let U = I._snapdomSrc;
|
|
15516
15516
|
if (!String(U).startsWith("data:")) {
|
|
15517
|
-
if ((_ =
|
|
15518
|
-
U =
|
|
15519
|
-
else if (!((T =
|
|
15517
|
+
if ((_ = B.resource) != null && _.has(I._snapdomSrc))
|
|
15518
|
+
U = B.resource.get(I._snapdomSrc), (M = B.font) == null || M.add(I._snapdomSrc);
|
|
15519
|
+
else if (!((T = B.font) != null && T.has(I._snapdomSrc)))
|
|
15520
15520
|
try {
|
|
15521
15521
|
let te = await Ue(I._snapdomSrc, { as: "dataURL", useProxy: a, silent: !0 });
|
|
15522
15522
|
if (te.ok && typeof te.data == "string")
|
|
15523
|
-
U = te.data, (W =
|
|
15523
|
+
U = te.data, (W = B.resource) == null || W.set(I._snapdomSrc, U), (F = B.font) == null || F.add(I._snapdomSrc);
|
|
15524
15524
|
else
|
|
15525
15525
|
continue;
|
|
15526
15526
|
} catch {
|
|
@@ -15540,13 +15540,13 @@ async function yp({ required: e, usedCodepoints: t, exclude: o = void 0, localFo
|
|
|
15540
15540
|
continue;
|
|
15541
15541
|
let U = I.weight != null ? String(I.weight) : "normal", te = I.style != null ? String(I.style) : "normal", X = I.stretchPct != null ? `${I.stretchPct}%` : "100%", O = String(I.src || ""), $ = O;
|
|
15542
15542
|
if (!$.startsWith("data:")) {
|
|
15543
|
-
if ((E =
|
|
15544
|
-
$ =
|
|
15545
|
-
else if (!((J =
|
|
15543
|
+
if ((E = B.resource) != null && E.has(O))
|
|
15544
|
+
$ = B.resource.get(O), (V = B.font) == null || V.add(O);
|
|
15545
|
+
else if (!((J = B.font) != null && J.has(O)))
|
|
15546
15546
|
try {
|
|
15547
15547
|
let A = await Ue(O, { as: "dataURL", useProxy: a, silent: !0 });
|
|
15548
15548
|
if (A.ok && typeof A.data == "string")
|
|
15549
|
-
$ = A.data, (Q =
|
|
15549
|
+
$ = A.data, (Q = B.resource) == null || Q.set(O, $), (ee = B.font) == null || ee.add(O);
|
|
15550
15550
|
else
|
|
15551
15551
|
continue;
|
|
15552
15552
|
} catch {
|
|
@@ -15556,7 +15556,7 @@ async function yp({ required: e, usedCodepoints: t, exclude: o = void 0, localFo
|
|
|
15556
15556
|
}
|
|
15557
15557
|
p += `@font-face{font-family:'${H}';src:url(${$});font-style:${te};font-weight:${U};font-stretch:${X};}`;
|
|
15558
15558
|
}
|
|
15559
|
-
return p && (p = gp(p), (he =
|
|
15559
|
+
return p && (p = gp(p), (he = B.resource) == null || he.set(s, p)), p;
|
|
15560
15560
|
}
|
|
15561
15561
|
function bp(e) {
|
|
15562
15562
|
let t = /* @__PURE__ */ new Set();
|
|
@@ -15674,7 +15674,7 @@ function lt(e, { fast: t = !1 } = {}) {
|
|
|
15674
15674
|
return e();
|
|
15675
15675
|
"requestIdleCallback" in window ? requestIdleCallback(e, { timeout: 50 }) : setTimeout(e, 1);
|
|
15676
15676
|
}
|
|
15677
|
-
function
|
|
15677
|
+
function Zo() {
|
|
15678
15678
|
if (typeof navigator > "u")
|
|
15679
15679
|
return !1;
|
|
15680
15680
|
let e = navigator.userAgent || "", t = e.toLowerCase(), o = t.includes("safari") && !t.includes("chrome") && !t.includes("crios") && !t.includes("fxios") && !t.includes("android"), i = /applewebkit/i.test(e), a = /mobile/i.test(e), r = !/safari/i.test(e), l = i && a && r, c = /(micromessenger|wxwork|wecom|windowswechat|macwechat)/i.test(e), s = /(baiduboxapp|baidubrowser|baidusearch|baiduboxlite)/i.test(t), d = /ipad|iphone|ipod/.test(t) && i;
|
|
@@ -15743,7 +15743,7 @@ function zp(e) {
|
|
|
15743
15743
|
function Lp(e, t, o = !1) {
|
|
15744
15744
|
return !e || e.plugins && !o || (e.plugins = zp(t)), e;
|
|
15745
15745
|
}
|
|
15746
|
-
var
|
|
15746
|
+
var Zi = /* @__PURE__ */ new WeakMap(), ca = /* @__PURE__ */ new Map(), ma = 0;
|
|
15747
15747
|
function Eo() {
|
|
15748
15748
|
ma++;
|
|
15749
15749
|
}
|
|
@@ -15800,14 +15800,14 @@ function Mp(e) {
|
|
|
15800
15800
|
return t || (t = Object.entries(e).sort((o, i) => o[0] < i[0] ? -1 : o[0] > i[0] ? 1 : 0).map(([o, i]) => `${o}:${i}`).join(";"), Oi.set(e, t), t);
|
|
15801
15801
|
}
|
|
15802
15802
|
function Sp(e, t = null, o = {}) {
|
|
15803
|
-
let i =
|
|
15803
|
+
let i = Zi.get(e);
|
|
15804
15804
|
if (i && i.epoch === ma)
|
|
15805
15805
|
return i.snapshot;
|
|
15806
15806
|
let a = t || getComputedStyle(e), r = Cp(a, o);
|
|
15807
|
-
return Gp(e, a, r),
|
|
15807
|
+
return Gp(e, a, r), Zi.set(e, { epoch: ma, snapshot: r }), r;
|
|
15808
15808
|
}
|
|
15809
15809
|
function Tp(e, t) {
|
|
15810
|
-
return e && e.session && e.persist ? e : e && (e.styleMap || e.styleCache || e.nodeMap) ? { session: e, persist: { snapshotKeyCache: ca, defaultStyle:
|
|
15810
|
+
return e && e.session && e.persist ? e : e && (e.styleMap || e.styleCache || e.nodeMap) ? { session: e, persist: { snapshotKeyCache: ca, defaultStyle: B.defaultStyle, baseStyle: B.baseStyle, image: B.image, resource: B.resource, background: B.background, font: B.font }, options: t || {} } : { session: B.session, persist: { snapshotKeyCache: ca, defaultStyle: B.defaultStyle, baseStyle: B.baseStyle, image: B.image, resource: B.resource, background: B.background, font: B.font }, options: e || t || {} };
|
|
15811
15811
|
}
|
|
15812
15812
|
async function nt(e, t, o, i) {
|
|
15813
15813
|
var p, y, f;
|
|
@@ -15965,7 +15965,7 @@ function ia(e, t, o) {
|
|
|
15965
15965
|
function Np(e) {
|
|
15966
15966
|
return e = e.trim(), !e || /:not\(\s*\[data-sd-slotted\]\s*\)\s*$/.test(e) ? e : `${e}:not([data-sd-slotted])`;
|
|
15967
15967
|
}
|
|
15968
|
-
function
|
|
15968
|
+
function Bp(e, t, o = !0) {
|
|
15969
15969
|
return e.split(",").map((i) => i.trim()).filter(Boolean).map((i) => {
|
|
15970
15970
|
if (i.startsWith(":where(") || i.startsWith("@"))
|
|
15971
15971
|
return i;
|
|
@@ -15973,9 +15973,9 @@ function Zp(e, t, o = !0) {
|
|
|
15973
15973
|
return `:where(${t} ${a})`;
|
|
15974
15974
|
}).join(", ");
|
|
15975
15975
|
}
|
|
15976
|
-
function
|
|
15976
|
+
function Zp(e, t) {
|
|
15977
15977
|
return e ? (e = e.replace(/:host\(([^)]+)\)/g, (o, i) => `:where(${t}:is(${i.trim()}))`), e = e.replace(/:host\b/g, `:where(${t})`), e = e.replace(/:host-context\(([^)]+)\)/g, (o, i) => `:where(:where(${i.trim()}) ${t})`), e = e.replace(/::slotted\(([^)]+)\)/g, (o, i) => `:where(${t} ${i.trim()})`), e = e.replace(/(^|})(\s*)([^@}{]+){/g, (o, i, a, r) => {
|
|
15978
|
-
let l =
|
|
15978
|
+
let l = Bp(r, t, !0);
|
|
15979
15979
|
return `${i}${a}${l}{`;
|
|
15980
15980
|
}), e) : "";
|
|
15981
15981
|
}
|
|
@@ -16102,26 +16102,26 @@ async function qp(e, t, o) {
|
|
|
16102
16102
|
let g = document.createElement("div");
|
|
16103
16103
|
return t.nodeMap.set(g, e), nt(e, g, t, o), g.style.overflow = "hidden", g.style.display = "block", g.style.width || (g.style.width = `${Math.round(l.width)}px`), g.style.height || (g.style.height = `${Math.round(l.height)}px`), g.appendChild(m), g;
|
|
16104
16104
|
}
|
|
16105
|
-
var
|
|
16105
|
+
var Bo = /* @__PURE__ */ new Map();
|
|
16106
16106
|
async function Oo(e) {
|
|
16107
16107
|
var o;
|
|
16108
|
-
if ((o =
|
|
16109
|
-
return
|
|
16110
|
-
if (
|
|
16111
|
-
return
|
|
16108
|
+
if ((o = B.resource) != null && o.has(e))
|
|
16109
|
+
return B.resource.get(e);
|
|
16110
|
+
if (Bo.has(e))
|
|
16111
|
+
return Bo.get(e);
|
|
16112
16112
|
let t = (async () => {
|
|
16113
16113
|
var a;
|
|
16114
16114
|
let i = await Ue(e, { as: "dataURL", silent: !0 });
|
|
16115
16115
|
if (!i.ok || typeof i.data != "string")
|
|
16116
16116
|
throw new Error(`[snapDOM] Failed to read blob URL: ${e}`);
|
|
16117
|
-
return (a =
|
|
16117
|
+
return (a = B.resource) == null || a.set(e, i.data), i.data;
|
|
16118
16118
|
})();
|
|
16119
|
-
|
|
16119
|
+
Bo.set(e, t);
|
|
16120
16120
|
try {
|
|
16121
16121
|
let i = await t;
|
|
16122
|
-
return
|
|
16122
|
+
return Bo.set(e, i), i;
|
|
16123
16123
|
} catch (i) {
|
|
16124
|
-
throw
|
|
16124
|
+
throw Bo.delete(e), i;
|
|
16125
16125
|
}
|
|
16126
16126
|
}
|
|
16127
16127
|
var Qp = /\bblob:[^)"'\s]+/g;
|
|
@@ -16379,7 +16379,7 @@ async function $o(e, t, o) {
|
|
|
16379
16379
|
l.setAttribute("data-sd", u);
|
|
16380
16380
|
} catch {
|
|
16381
16381
|
}
|
|
16382
|
-
let v = Op(e.shadowRoot), w =
|
|
16382
|
+
let v = Op(e.shadowRoot), w = Zp(v, x), k = Vp(v), S = Yp(e, k, x);
|
|
16383
16383
|
Xp(l, S + w, u);
|
|
16384
16384
|
let _ = document.createDocumentFragment(), M = await ia(Array.from(e.shadowRoot.childNodes), h, o.fast);
|
|
16385
16385
|
_.append(...M.filter((T) => !!T)), l.appendChild(_);
|
|
@@ -16451,7 +16451,7 @@ function Yi(e, t) {
|
|
|
16451
16451
|
function rg(e) {
|
|
16452
16452
|
let t = () => {
|
|
16453
16453
|
var p;
|
|
16454
|
-
return ((p =
|
|
16454
|
+
return ((p = B == null ? void 0 : B.session) == null ? void 0 : p.__counterEpoch) ?? 0;
|
|
16455
16455
|
}, o = t(), i = /* @__PURE__ */ new WeakMap(), a = e instanceof Document ? e.documentElement : e, r = (p) => p && p.tagName === "LI", l = (p) => {
|
|
16456
16456
|
let y = 0, f = p == null ? void 0 : p.parentElement;
|
|
16457
16457
|
if (!f)
|
|
@@ -16734,7 +16734,7 @@ async function yr(e, t, o, i) {
|
|
|
16734
16734
|
let a = e.ownerDocument || document;
|
|
16735
16735
|
if (!ng(a, o))
|
|
16736
16736
|
return;
|
|
16737
|
-
let r = ((d =
|
|
16737
|
+
let r = ((d = B == null ? void 0 : B.session) == null ? void 0 : d.__counterEpoch) ?? 0;
|
|
16738
16738
|
if ($i !== r && (st = /* @__PURE__ */ new WeakMap(), o && (o.__counterCtx = null), $i = r), !o.__counterCtx)
|
|
16739
16739
|
try {
|
|
16740
16740
|
o.__counterCtx = rg(e.ownerDocument || document);
|
|
@@ -16998,7 +16998,7 @@ function fg(e) {
|
|
|
16998
16998
|
}
|
|
16999
16999
|
async function yg(e, t = {}) {
|
|
17000
17000
|
var s, d;
|
|
17001
|
-
let o = { styleMap:
|
|
17001
|
+
let o = { styleMap: B.session.styleMap, styleCache: B.session.styleCache, nodeMap: B.session.nodeMap }, i, a = "", r = "";
|
|
17002
17002
|
fg(e);
|
|
17003
17003
|
try {
|
|
17004
17004
|
dg(e);
|
|
@@ -17289,7 +17289,7 @@ function Ng(e) {
|
|
|
17289
17289
|
let t = Math.ceil(parseFloat(e.outlineWidth || "0") || 0);
|
|
17290
17290
|
return { top: t, right: t, bottom: t, left: t };
|
|
17291
17291
|
}
|
|
17292
|
-
function
|
|
17292
|
+
function Bg(e) {
|
|
17293
17293
|
var s;
|
|
17294
17294
|
let t = `${e.filter || ""} ${e.webkitFilter || ""}`.trim();
|
|
17295
17295
|
if (!t || t === "none")
|
|
@@ -17302,7 +17302,7 @@ function Zg(e) {
|
|
|
17302
17302
|
}
|
|
17303
17303
|
return { bleed: { top: le(i), right: le(a), bottom: le(r), left: le(l) }, has: c };
|
|
17304
17304
|
}
|
|
17305
|
-
function
|
|
17305
|
+
function Zg(e, t) {
|
|
17306
17306
|
if (!e || !t || !t.style)
|
|
17307
17307
|
return null;
|
|
17308
17308
|
let o = getComputedStyle(e);
|
|
@@ -17442,7 +17442,7 @@ async function wr(e, t) {
|
|
|
17442
17442
|
await qe("beforeSnap", r), await qe("beforeClone", r);
|
|
17443
17443
|
let f = xg(r.element);
|
|
17444
17444
|
try {
|
|
17445
|
-
({ clone: l, classCSS: c, styleCache: s } = await yg(r.element, r.options)), !i && l && (y =
|
|
17445
|
+
({ clone: l, classCSS: c, styleCache: s } = await yg(r.element, r.options)), !i && l && (y = Zg(r.element, l)), !a && l && Lg(r.element, l);
|
|
17446
17446
|
} finally {
|
|
17447
17447
|
f();
|
|
17448
17448
|
}
|
|
@@ -17467,7 +17467,7 @@ async function wr(e, t) {
|
|
|
17467
17467
|
}), t.embedFonts && await new Promise((w) => {
|
|
17468
17468
|
lt(async () => {
|
|
17469
17469
|
let k = bp(r.element), S = wp(r.element);
|
|
17470
|
-
if (
|
|
17470
|
+
if (Zo()) {
|
|
17471
17471
|
let _ = new Set(Array.from(k).map((M) => String(M).split("__")[0]).filter(Boolean));
|
|
17472
17472
|
await xp(_, 1);
|
|
17473
17473
|
}
|
|
@@ -17475,9 +17475,9 @@ async function wr(e, t) {
|
|
|
17475
17475
|
}, { fast: o });
|
|
17476
17476
|
});
|
|
17477
17477
|
let h = Hu(r.clone).sort(), u = h.join(",");
|
|
17478
|
-
|
|
17478
|
+
B.baseStyle.has(u) ? m = B.baseStyle.get(u) : await new Promise((w) => {
|
|
17479
17479
|
lt(() => {
|
|
17480
|
-
m = Yu(h),
|
|
17480
|
+
m = Yu(h), B.baseStyle.set(u, m), w();
|
|
17481
17481
|
}, { fast: o });
|
|
17482
17482
|
}), r = { fontsCSS: d, baseCSS: m, ...r }, await qe("beforeRender", r), await new Promise((w) => {
|
|
17483
17483
|
lt(() => {
|
|
@@ -17497,12 +17497,12 @@ async function wr(e, t) {
|
|
|
17497
17497
|
let j = { a: y.a, b: y.b || 0, c: y.c || 0, d: y.d || 1, e: 0, f: 0 }, be = Qi(_, M, j, 0, 0);
|
|
17498
17498
|
he = le(be.minX), I = le(be.minY), H = le(be.maxX), U = le(be.maxY);
|
|
17499
17499
|
} else if (i && Hg(r.element)) {
|
|
17500
|
-
let j = k.transform && k.transform !== "none" ? k.transform : "", be = Og(r.element), Re = jg({ baseTransform: j, rotate: be.rotate || "0deg", scale: be.scale, translate: be.translate }), { ox: Ee, oy: Oe } = Eg(k, _, M), q = Re.is2D ? Re : new DOMMatrix(Re.toString()),
|
|
17501
|
-
he = le(
|
|
17500
|
+
let j = k.transform && k.transform !== "none" ? k.transform : "", be = Og(r.element), Re = jg({ baseTransform: j, rotate: be.rotate || "0deg", scale: be.scale, translate: be.translate }), { ox: Ee, oy: Oe } = Eg(k, _, M), q = Re.is2D ? Re : new DOMMatrix(Re.toString()), Be = Qi(_, M, q, Ee, Oe);
|
|
17501
|
+
he = le(Be.minX), I = le(Be.minY), H = le(Be.maxX), U = le(Be.maxY);
|
|
17502
17502
|
}
|
|
17503
|
-
let te = Wg(k), X = Fg(k), O = Ng(k), $ =
|
|
17503
|
+
let te = Wg(k), X = Fg(k), O = Ng(k), $ = Bg(k), A = a ? { top: le(te.top + X.top + O.top + $.bleed.top), right: le(te.right + X.right + O.right + $.bleed.right), bottom: le(te.bottom + X.bottom + O.bottom + $.bleed.bottom), left: le(te.left + X.left + O.left + $.bleed.left) } : { top: 0, right: 0, bottom: 0, left: 0 };
|
|
17504
17504
|
he = le(he - A.left), I = le(I - A.top), H = le(H + A.right), U = le(U + A.bottom);
|
|
17505
|
-
let ie = Math.max(1, le(H - he)), ge = Math.max(1, le(U - I)), xe = J || Q ? le(E / _) : 1, ke = Q || J ? le(V / M) : 1, se = Math.max(1, le(ie * xe)), fe = Math.max(1, le(ge * ke)), ve = "http://www.w3.org/2000/svg", Me =
|
|
17505
|
+
let ie = Math.max(1, le(H - he)), ge = Math.max(1, le(U - I)), xe = J || Q ? le(E / _) : 1, ke = Q || J ? le(V / M) : 1, se = Math.max(1, le(ie * xe)), fe = Math.max(1, le(ge * ke)), ve = "http://www.w3.org/2000/svg", Me = Zo() ? 1 : 0, K = le(Me + (i ? 0 : 1)), me = document.createElementNS(ve, "foreignObject"), je = le(he), Ne = le(I);
|
|
17506
17506
|
me.setAttribute("x", String(le(-(je - K)))), me.setAttribute("y", String(le(-(Ne - K)))), me.setAttribute("width", String(le(_ + K * 2))), me.setAttribute("height", String(le(M + K * 2))), me.style.overflow = "visible";
|
|
17507
17507
|
let Le = document.createElement("style");
|
|
17508
17508
|
Le.textContent = r.baseCSS + r.fontsCSS + "svg{overflow:visible;} foreignObject{overflow:visible;}" + r.classCSS, me.appendChild(Le);
|
|
@@ -17510,8 +17510,8 @@ async function wr(e, t) {
|
|
|
17510
17510
|
Te.setAttribute("xmlns", "http://www.w3.org/1999/xhtml"), Te.style.width = `${le(_)}px`, Te.style.height = `${le(M)}px`, Te.style.overflow = "visible", r.clone.setAttribute("xmlns", "http://www.w3.org/1999/xhtml"), Te.appendChild(r.clone), me.appendChild(Te);
|
|
17511
17511
|
let oe = new XMLSerializer().serializeToString(me), Pe = le(ie + K * 2), pe = le(ge + K * 2), ye = J || Q;
|
|
17512
17512
|
t.meta = { w0: _, h0: M, vbW: Pe, vbH: pe, targetW: E, targetH: V };
|
|
17513
|
-
let
|
|
17514
|
-
p = `<svg xmlns="${ve}" width="${
|
|
17513
|
+
let Ze = Zo() && ye ? Pe : le(se + K * 2), He = Zo() && ye ? pe : le(fe + K * 2);
|
|
17514
|
+
p = `<svg xmlns="${ve}" width="${Ze}" height="${He}" viewBox="0 0 ${Pe} ${pe}">` + oe + "</svg>", g = `data:image/svg+xml;charset=utf-8,${encodeURIComponent(p)}`, r = { svgString: p, dataURL: g, ...r }, w();
|
|
17515
17515
|
}, { fast: o });
|
|
17516
17516
|
}), await qe("afterRender", r);
|
|
17517
17517
|
let x = document.getElementById("snapdom-sandbox");
|
|
@@ -17542,7 +17542,7 @@ async function Kg(e, t) {
|
|
|
17542
17542
|
if (!e)
|
|
17543
17543
|
throw new Error("Element cannot be null or undefined");
|
|
17544
17544
|
let o = Ug(t);
|
|
17545
|
-
if (Lp(o, t && t.plugins),
|
|
17545
|
+
if (Lp(o, t && t.plugins), Zo() && (o.embedFonts === !0 || qg(e)))
|
|
17546
17546
|
for (let i = 0; i < 3; i++)
|
|
17547
17547
|
try {
|
|
17548
17548
|
await $g(e, t), pa = !1;
|
|
@@ -17554,52 +17554,52 @@ Ce.capture = async (e, t, o) => {
|
|
|
17554
17554
|
if (o !== xr)
|
|
17555
17555
|
throw new Error("[snapdom.capture] is internal. Use snapdom(...) instead.");
|
|
17556
17556
|
let i = await wr(e, t), a = { img: async (f, h) => {
|
|
17557
|
-
let { toImg: u } = await import("./toImg-
|
|
17557
|
+
let { toImg: u } = await import("./toImg-0182ce19.js");
|
|
17558
17558
|
return u(i, { ...f, ...h || {} });
|
|
17559
17559
|
}, svg: async (f, h) => {
|
|
17560
|
-
let { toSvg: u } = await import("./toImg-
|
|
17560
|
+
let { toSvg: u } = await import("./toImg-0182ce19.js");
|
|
17561
17561
|
return u(i, { ...f, ...h || {} });
|
|
17562
17562
|
}, canvas: async (f, h) => {
|
|
17563
|
-
let { toCanvas: u } = await import("./toCanvas-
|
|
17563
|
+
let { toCanvas: u } = await import("./toCanvas-c6f1ce00.js");
|
|
17564
17564
|
return u(i, { ...f, ...h || {} });
|
|
17565
17565
|
}, blob: async (f, h) => {
|
|
17566
|
-
let { toBlob: u } = await import("./toBlob-
|
|
17566
|
+
let { toBlob: u } = await import("./toBlob-ab8200ad.js");
|
|
17567
17567
|
return u(i, { ...f, ...h || {} });
|
|
17568
17568
|
}, png: async (f, h) => {
|
|
17569
|
-
let { rasterize: u } = await import("./rasterize-JS5G2XHH-
|
|
17569
|
+
let { rasterize: u } = await import("./rasterize-JS5G2XHH-3216c1e4.js");
|
|
17570
17570
|
return u(i, { ...f, ...h || {}, format: "png" });
|
|
17571
17571
|
}, jpeg: async (f, h) => {
|
|
17572
|
-
let { rasterize: u } = await import("./rasterize-JS5G2XHH-
|
|
17572
|
+
let { rasterize: u } = await import("./rasterize-JS5G2XHH-3216c1e4.js");
|
|
17573
17573
|
return u(i, { ...f, ...h || {}, format: "jpeg" });
|
|
17574
17574
|
}, webp: async (f, h) => {
|
|
17575
|
-
let { rasterize: u } = await import("./rasterize-JS5G2XHH-
|
|
17575
|
+
let { rasterize: u } = await import("./rasterize-JS5G2XHH-3216c1e4.js");
|
|
17576
17576
|
return u(i, { ...f, ...h || {}, format: "webp" });
|
|
17577
17577
|
}, download: async (f, h) => {
|
|
17578
|
-
let { download: u } = await import("./download-
|
|
17578
|
+
let { download: u } = await import("./download-544e15a0.js");
|
|
17579
17579
|
return u(i, { ...f, ...h || {} });
|
|
17580
17580
|
} }, r = { ...t, export: { url: i }, exports: { svg: async (f) => {
|
|
17581
|
-
let { toSvg: h } = await import("./toImg-
|
|
17581
|
+
let { toSvg: h } = await import("./toImg-0182ce19.js");
|
|
17582
17582
|
return h(i, { ...t, ...f || {}, [$e]: !0 });
|
|
17583
17583
|
}, canvas: async (f) => {
|
|
17584
|
-
let { toCanvas: h } = await import("./toCanvas-
|
|
17584
|
+
let { toCanvas: h } = await import("./toCanvas-c6f1ce00.js");
|
|
17585
17585
|
return h(i, { ...t, ...f || {}, [$e]: !0 });
|
|
17586
17586
|
}, png: async (f) => {
|
|
17587
|
-
let { rasterize: h } = await import("./rasterize-JS5G2XHH-
|
|
17587
|
+
let { rasterize: h } = await import("./rasterize-JS5G2XHH-3216c1e4.js");
|
|
17588
17588
|
return h(i, { ...t, ...f || {}, format: "png", [$e]: !0 });
|
|
17589
17589
|
}, jpeg: async (f) => {
|
|
17590
|
-
let { rasterize: h } = await import("./rasterize-JS5G2XHH-
|
|
17590
|
+
let { rasterize: h } = await import("./rasterize-JS5G2XHH-3216c1e4.js");
|
|
17591
17591
|
return h(i, { ...t, ...f || {}, format: "jpeg", [$e]: !0 });
|
|
17592
17592
|
}, jpg: async (f) => {
|
|
17593
|
-
let { rasterize: h } = await import("./rasterize-JS5G2XHH-
|
|
17593
|
+
let { rasterize: h } = await import("./rasterize-JS5G2XHH-3216c1e4.js");
|
|
17594
17594
|
return h(i, { ...t, ...f || {}, format: "jpeg", [$e]: !0 });
|
|
17595
17595
|
}, webp: async (f) => {
|
|
17596
|
-
let { rasterize: h } = await import("./rasterize-JS5G2XHH-
|
|
17596
|
+
let { rasterize: h } = await import("./rasterize-JS5G2XHH-3216c1e4.js");
|
|
17597
17597
|
return h(i, { ...t, ...f || {}, format: "webp", [$e]: !0 });
|
|
17598
17598
|
}, blob: async (f) => {
|
|
17599
|
-
let { toBlob: h } = await import("./toBlob-
|
|
17599
|
+
let { toBlob: h } = await import("./toBlob-ab8200ad.js");
|
|
17600
17600
|
return h(i, { ...t, ...f || {}, [$e]: !0 });
|
|
17601
17601
|
}, img: async (f) => {
|
|
17602
|
-
let { toImg: h } = await import("./toImg-
|
|
17602
|
+
let { toImg: h } = await import("./toImg-0182ce19.js");
|
|
17603
17603
|
return h(i, { ...t, ...f || {}, [$e]: !0 });
|
|
17604
17604
|
} } }, l = await _p("defineExports", r), c = Object.assign({}, ...l.filter((f) => f && typeof f == "object")), s = { ...a, ...c };
|
|
17605
17605
|
s.jpeg && !s.jpg && (s.jpg = (f, h) => s.jpeg(f, h));
|
|
@@ -18043,7 +18043,7 @@ class o0 {
|
|
|
18043
18043
|
this.captureRect.width,
|
|
18044
18044
|
this.captureRect.height
|
|
18045
18045
|
);
|
|
18046
|
-
const i = o, a = this.captureRect.width / 48, r = 8, l = 12;
|
|
18046
|
+
const i = o, a = Math.max(this.captureRect.width / 48, this.captureRect.height / 48), r = 8, l = 12;
|
|
18047
18047
|
this.ctx.font = `bold ${a}px Arial, sans-serif`, this.ctx.textAlign = "center", this.ctx.textBaseline = "top";
|
|
18048
18048
|
const s = this.ctx.measureText(i).width, d = a, m = (this.captureRect.width - s) / 2 - r * 2, g = l, p = s + r * 4, y = d + r * 2;
|
|
18049
18049
|
this.ctx.fillStyle = "rgba(0, 0, 0, 0.6)", this.ctx.beginPath(), this.ctx.roundRect(m, g, p, y, 16), this.ctx.fill(), this.ctx.fillStyle = "#ffffff", this.ctx.fillText(i, this.captureRect.width / 2, l + r);
|
|
@@ -18196,6 +18196,13 @@ const a0 = {
|
|
|
18196
18196
|
}, 2e3));
|
|
18197
18197
|
}
|
|
18198
18198
|
}
|
|
18199
|
+
// enabled: {
|
|
18200
|
+
// handler(newVal) {
|
|
18201
|
+
// if (!newVal) {
|
|
18202
|
+
// this.clear()
|
|
18203
|
+
// }
|
|
18204
|
+
// },
|
|
18205
|
+
// },
|
|
18199
18206
|
},
|
|
18200
18207
|
async mounted() {
|
|
18201
18208
|
this.ossClient = await Mr.create(this.token);
|
|
@@ -18228,7 +18235,7 @@ const a0 = {
|
|
|
18228
18235
|
this.selection.width > 20 && this.selection.height > 20 ? this.actionStatus = 3 : this.actionStatus = 1;
|
|
18229
18236
|
},
|
|
18230
18237
|
handleConfirm() {
|
|
18231
|
-
this.actionStatus = 4, this.recorder = new o0(), this.recorder.setArea(this.selection), this.recorder.setFrameDelay(this.frequency);
|
|
18238
|
+
this.actionStatus = 4, this.recorder = new o0(), this.recorder.setArea(this.selection), this.recorder.setFrameDelay(this.frequency), this.isPlaying && (this.recorder.startRecording(), this.actionStatus = 5, this.frameCount = 0, console.log("[BottomBar] GIF 模式开始,使用正常播放 + 事件截图"));
|
|
18232
18239
|
},
|
|
18233
18240
|
handleCancel() {
|
|
18234
18241
|
this.actionStatus = 1, this.recorder = null, this.selection = { x: 0, y: 0, width: 0, height: 0 };
|
|
@@ -18263,7 +18270,9 @@ const a0 = {
|
|
|
18263
18270
|
}
|
|
18264
18271
|
},
|
|
18265
18272
|
clear() {
|
|
18266
|
-
this.actionStatus
|
|
18273
|
+
this.actionStatus === 5 && this.recorder ? (console.log("[BottomBar] 等待最后一帧截图完成..."), setTimeout(async () => {
|
|
18274
|
+
await this.finishGifGeneration();
|
|
18275
|
+
}, 2e3)) : (this.actionStatus = 1, this.frameCount = 0, this.blob = null, this.recorder && (this.recorder.reset(), this.recorder = null), this.$emit("closeRecord"));
|
|
18267
18276
|
},
|
|
18268
18277
|
async handleUpload(e) {
|
|
18269
18278
|
var a;
|
|
@@ -18273,7 +18282,7 @@ const a0 = {
|
|
|
18273
18282
|
}, o = await this.ossClient.put2HZ("/share", [t]);
|
|
18274
18283
|
console.log("[BottomBar] streams:", o);
|
|
18275
18284
|
const i = ((a = o == null ? void 0 : o[0]) == null ? void 0 : a.url) || "";
|
|
18276
|
-
this.$emit("preview", i), this.
|
|
18285
|
+
this.$emit("preview", i), this.handleDownload(), this.clear();
|
|
18277
18286
|
},
|
|
18278
18287
|
handleDownload() {
|
|
18279
18288
|
const t = `ORM-Record-${G().format("yyyyMMDD-HHmm")}.gif`;
|
|
@@ -18359,7 +18368,7 @@ function u0(e, t, o, i, a, r) {
|
|
|
18359
18368
|
], 6)) : N("", !0)
|
|
18360
18369
|
]);
|
|
18361
18370
|
}
|
|
18362
|
-
const p0 = /* @__PURE__ */ ne(a0, [["render", u0], ["__scopeId", "data-v-
|
|
18371
|
+
const p0 = /* @__PURE__ */ ne(a0, [["render", u0], ["__scopeId", "data-v-e4852901"]]);
|
|
18363
18372
|
const g0 = {
|
|
18364
18373
|
name: "IdmBottomBar",
|
|
18365
18374
|
components: { DateTimePicker: ta, IdmCapture: p0 },
|
|
@@ -18448,6 +18457,12 @@ const g0 = {
|
|
|
18448
18457
|
Object.values(this.show).includes(!0) || (e = this.$refs.dateTimePicker) == null || e.handleCancelDate();
|
|
18449
18458
|
},
|
|
18450
18459
|
deep: !0
|
|
18460
|
+
},
|
|
18461
|
+
gifEnabled: {
|
|
18462
|
+
handler(e, t) {
|
|
18463
|
+
e || this.handlePause();
|
|
18464
|
+
},
|
|
18465
|
+
immediate: !0
|
|
18451
18466
|
}
|
|
18452
18467
|
},
|
|
18453
18468
|
mounted() {
|
|
@@ -18494,7 +18509,7 @@ const g0 = {
|
|
|
18494
18509
|
function L0(e, t, o, i, a, r) {
|
|
18495
18510
|
const l = R("IdmCapture"), c = R("DateTimePicker"), s = R("VListItemTitle"), d = R("VListItem"), m = R("VList"), g = R("VMenu"), p = R("VBtn"), y = R("VDivider"), f = R("VTooltip");
|
|
18496
18511
|
return P(), D("div", f0, [
|
|
18497
|
-
a.gifEnabled ? (P(),
|
|
18512
|
+
a.gifEnabled ? (P(), Z(l, Y({
|
|
18498
18513
|
key: 0,
|
|
18499
18514
|
ref: "capture",
|
|
18500
18515
|
isPlaying: !a.paused,
|
|
@@ -18535,7 +18550,7 @@ function L0(e, t, o, i, a, r) {
|
|
|
18535
18550
|
default: C(() => [
|
|
18536
18551
|
L(m, { class: "pa-1" }, {
|
|
18537
18552
|
default: C(() => [
|
|
18538
|
-
(P(!0), D(Ie, null, De(a.intervalOptions, (h, u) => (P(),
|
|
18553
|
+
(P(!0), D(Ie, null, De(a.intervalOptions, (h, u) => (P(), Z(d, {
|
|
18539
18554
|
key: u,
|
|
18540
18555
|
value: h,
|
|
18541
18556
|
variant: a.intervalHour === h ? "tonal" : "text",
|
|
@@ -18649,7 +18664,7 @@ function L0(e, t, o, i, a, r) {
|
|
|
18649
18664
|
location: "top"
|
|
18650
18665
|
}, {
|
|
18651
18666
|
activator: C(({ props: h }) => [
|
|
18652
|
-
a.paused ? (P(),
|
|
18667
|
+
a.paused ? (P(), Z(p, Y({ key: 0 }, h, {
|
|
18653
18668
|
icon: "",
|
|
18654
18669
|
size: "small",
|
|
18655
18670
|
density: "comfortable",
|
|
@@ -18670,7 +18685,7 @@ function L0(e, t, o, i, a, r) {
|
|
|
18670
18685
|
location: "top"
|
|
18671
18686
|
}, {
|
|
18672
18687
|
activator: C(({ props: h }) => [
|
|
18673
|
-
a.paused ? N("", !0) : (P(),
|
|
18688
|
+
a.paused ? N("", !0) : (P(), Z(p, Y({ key: 0 }, h, {
|
|
18674
18689
|
icon: "",
|
|
18675
18690
|
size: "small",
|
|
18676
18691
|
density: "comfortable",
|
|
@@ -19051,7 +19066,7 @@ function S0(e, t, o, i, a, r) {
|
|
|
19051
19066
|
_: 1,
|
|
19052
19067
|
__: [6]
|
|
19053
19068
|
}, 8, ["onClick"]),
|
|
19054
|
-
a.paused ? (P(),
|
|
19069
|
+
a.paused ? (P(), Z(l, {
|
|
19055
19070
|
key: 0,
|
|
19056
19071
|
size: "small",
|
|
19057
19072
|
density: "compact",
|
|
@@ -19066,7 +19081,7 @@ function S0(e, t, o, i, a, r) {
|
|
|
19066
19081
|
])),
|
|
19067
19082
|
_: 1,
|
|
19068
19083
|
__: [7]
|
|
19069
|
-
}, 8, ["onClick"])) : (P(),
|
|
19084
|
+
}, 8, ["onClick"])) : (P(), Z(l, {
|
|
19070
19085
|
key: 1,
|
|
19071
19086
|
size: "small",
|
|
19072
19087
|
density: "compact",
|
|
@@ -19221,7 +19236,7 @@ function I0(e, t, o, i, a, r) {
|
|
|
19221
19236
|
"forecast-model": o.forecastModel,
|
|
19222
19237
|
"map-feather": o.mapFeather
|
|
19223
19238
|
}, e.$attrs), null, 16, ["simple", "map", "token", "default-meteo-token", "gateway", "forecast-model", "map-feather"]),
|
|
19224
|
-
o.simple ? N("", !0) : (P(),
|
|
19239
|
+
o.simple ? N("", !0) : (P(), Z(g, Y({
|
|
19225
19240
|
key: 0,
|
|
19226
19241
|
ref: "idmBottomBar",
|
|
19227
19242
|
"forecast-model": o.forecastModel,
|
|
@@ -19231,7 +19246,7 @@ function I0(e, t, o, i, a, r) {
|
|
|
19231
19246
|
"default-meteo-token": a.defaultMeteoToken,
|
|
19232
19247
|
token: o.token
|
|
19233
19248
|
}, e.$attrs), null, 16, ["forecast-model", "weather-check-list", "map-feather", "gateway", "default-meteo-token", "token"])),
|
|
19234
|
-
o.simple ? (P(),
|
|
19249
|
+
o.simple ? (P(), Z(p, Y({
|
|
19235
19250
|
key: 1,
|
|
19236
19251
|
ref: "idmBottomBar",
|
|
19237
19252
|
playerBottom: a.playerBottom,
|
|
@@ -19250,7 +19265,7 @@ class A0 {
|
|
|
19250
19265
|
we(this, "hi");
|
|
19251
19266
|
we(this, "td");
|
|
19252
19267
|
we(this, "windy");
|
|
19253
|
-
var o, i, a, r, l, c, s, d, m, g, p, y, f, h, u, x, v, w, k, S, _, M, T, W, F, E, V, J, Q, ee, he, I, H, U, te, X, O, $, A, ie, ge, xe, ke, se, fe, ve, Me, K, me, je, Ne, Le, Te, oe, Pe, pe, ye,
|
|
19268
|
+
var o, i, a, r, l, c, s, d, m, g, p, y, f, h, u, x, v, w, k, S, _, M, T, W, F, E, V, J, Q, ee, he, I, H, U, te, X, O, $, A, ie, ge, xe, ke, se, fe, ve, Me, K, me, je, Ne, Le, Te, oe, Pe, pe, ye, Ze, He, Ve, j, be, Re, Ee, Oe, q, Be, re, tt, ot, at, Ge, ct, mt, dt, ht, ut, pt, gt, ft, yt, bt, wt, xt, vt, kt, _t, zt, Lt, Pt, Ct, Mt, St, Tt, Rt, It, Dt, At, Gt, Wt, Ft, Nt, Bt, Zt, Et, Ot, Xt, jt, Vt, Ht, Yt, Ut, Jt, Kt, qt, Qt, eo, to, oo, ao, io, ro, lo, no, so, co, mo, ho, uo, po, go, fo, yo, bo, wo, xo, vo, ko, _o, zo, Lo, Po, Co, Mo, So, To, Ro, Io, Do, Ao, Go, Wo, xa, va, ka, _a, za, La, Pa, Ca, Ma, Sa, Ta, Ra, Ia, Da, Aa, Ga, Wa, Fa, Na, Ba, Za, Ea, Oa, Xa, ja, Va, Ha, Ya, Ua, Ja, Ka, $a, qa, Qa, ei, ti, oi, ai, ii, ri, li, ni, si, ci, mi, di, hi, ui, pi, gi, fi, yi, bi, wi, xi, vi, ki, _i, zi, Li, Pi, Ci, Mi, Si, Ti, Ri;
|
|
19254
19269
|
this.i4 = {
|
|
19255
19270
|
source: {
|
|
19256
19271
|
type: "raster",
|
|
@@ -37933,7 +37948,7 @@ class A0 {
|
|
|
37933
37948
|
fog: {
|
|
37934
37949
|
range: [0.5, 10]
|
|
37935
37950
|
},
|
|
37936
|
-
sources: (
|
|
37951
|
+
sources: (Ze = this.originStyle) == null ? void 0 : Ze.dark.sources,
|
|
37937
37952
|
sprite: (He = this.originStyle) == null ? void 0 : He.dark.sprite,
|
|
37938
37953
|
glyphs: (Ve = this.originStyle) == null ? void 0 : Ve.dark.glyphs,
|
|
37939
37954
|
projection: (j = this.originStyle) == null ? void 0 : j.dark.projection,
|
|
@@ -37945,7 +37960,7 @@ class A0 {
|
|
|
37945
37960
|
layers: [
|
|
37946
37961
|
(Re = (be = this.originStyle) == null ? void 0 : be.dark.layers) == null ? void 0 : Re.find((z) => z.id === "land"),
|
|
37947
37962
|
(Oe = (Ee = this.originStyle) == null ? void 0 : Ee.dark.layers) == null ? void 0 : Oe.find((z) => z.id === "water"),
|
|
37948
|
-
(
|
|
37963
|
+
(Be = (q = this.originStyle) == null ? void 0 : q.dark.layers) == null ? void 0 : Be.find((z) => z.id === "ice-area-fill"),
|
|
37949
37964
|
(tt = (re = this.originStyle) == null ? void 0 : re.dark.layers) == null ? void 0 : tt.find((z) => z.id === "ice-area-line"),
|
|
37950
37965
|
(at = (ot = this.originStyle) == null ? void 0 : ot.dark.layers) == null ? void 0 : at.find((z) => z.id === "loadlines-label"),
|
|
37951
37966
|
(ct = (Ge = this.originStyle) == null ? void 0 : Ge.dark.layers) == null ? void 0 : ct.find((z) => z.id === "loadlines-fill"),
|
|
@@ -37963,8 +37978,8 @@ class A0 {
|
|
|
37963
37978
|
(Dt = (It = this.originStyle) == null ? void 0 : It.dark.layers) == null ? void 0 : Dt.find((z) => z.id === "china-route-fill"),
|
|
37964
37979
|
(Gt = (At = this.originStyle) == null ? void 0 : At.dark.layers) == null ? void 0 : Gt.find((z) => z.id === "china-route-label"),
|
|
37965
37980
|
(Ft = (Wt = this.originStyle) == null ? void 0 : Wt.dark.layers) == null ? void 0 : Ft.find((z) => z.id === "admin-0-boundary-bg"),
|
|
37966
|
-
(
|
|
37967
|
-
(Et = (
|
|
37981
|
+
(Bt = (Nt = this.originStyle) == null ? void 0 : Nt.dark.layers) == null ? void 0 : Bt.find((z) => z.id === "admin-0-boundary"),
|
|
37982
|
+
(Et = (Zt = this.originStyle) == null ? void 0 : Zt.dark.layers) == null ? void 0 : Et.find((z) => z.id === "admin-0-boundary-disputed"),
|
|
37968
37983
|
(Xt = (Ot = this.originStyle) == null ? void 0 : Ot.dark.layers) == null ? void 0 : Xt.find((z) => z.id === "country-label"),
|
|
37969
37984
|
(Vt = (jt = this.originStyle) == null ? void 0 : jt.dark.layers) == null ? void 0 : Vt.find((z) => z.id === "continent-label"),
|
|
37970
37985
|
(Yt = (Ht = this.originStyle) == null ? void 0 : Ht.dark.layers) == null ? void 0 : Yt.find((z) => z.id === "tide-stations"),
|
|
@@ -38076,8 +38091,8 @@ class A0 {
|
|
|
38076
38091
|
(Ga = (Aa = this.originStyle) == null ? void 0 : Aa.light.layers) == null ? void 0 : Ga.find((z) => z.id === "land"),
|
|
38077
38092
|
(Fa = (Wa = this.originStyle) == null ? void 0 : Wa.light.layers) == null ? void 0 : Fa.find((z) => z.id === "water"),
|
|
38078
38093
|
this.i4.layer,
|
|
38079
|
-
(
|
|
38080
|
-
(Ea = (
|
|
38094
|
+
(Ba = (Na = this.originStyle) == null ? void 0 : Na.light.layers) == null ? void 0 : Ba.find((z) => z.id === "ice-area-fill"),
|
|
38095
|
+
(Ea = (Za = this.originStyle) == null ? void 0 : Za.light.layers) == null ? void 0 : Ea.find((z) => z.id === "ice-area-line"),
|
|
38081
38096
|
(Xa = (Oa = this.originStyle) == null ? void 0 : Oa.light.layers) == null ? void 0 : Xa.find((z) => z.id === "loadlines-label"),
|
|
38082
38097
|
(Va = (ja = this.originStyle) == null ? void 0 : ja.light.layers) == null ? void 0 : Va.find((z) => z.id === "loadlines-fill"),
|
|
38083
38098
|
(Ya = (Ha = this.originStyle) == null ? void 0 : Ha.light.layers) == null ? void 0 : Ya.find((z) => z.id === "empty-layer-0"),
|
|
@@ -38223,11 +38238,11 @@ const G0 = {
|
|
|
38223
38238
|
this.zoom > 2 && (this.zoom = Math.floor(this.zoom) - 1, (e = this.map) == null || e.flyTo({ zoom: this.zoom, duration: 500 }));
|
|
38224
38239
|
}
|
|
38225
38240
|
}
|
|
38226
|
-
}, W0 = { class: "v-btn--variant-elevated rounded" }, F0 = { class: "v-btn--variant-elevated rounded" }, N0 = { class: "zoom" },
|
|
38241
|
+
}, W0 = { class: "v-btn--variant-elevated rounded" }, F0 = { class: "v-btn--variant-elevated rounded" }, N0 = { class: "zoom" }, B0 = {
|
|
38227
38242
|
key: 2,
|
|
38228
38243
|
class: "position-absolute left-0 bottom-0 ma-2 my-1 text-caption text-label opacity-70"
|
|
38229
38244
|
};
|
|
38230
|
-
function
|
|
38245
|
+
function Z0(e, t, o, i, a, r) {
|
|
38231
38246
|
const l = R("VBtn");
|
|
38232
38247
|
return P(), D("div", {
|
|
38233
38248
|
class: "mapbox-initial-gl4 gif-container",
|
|
@@ -38291,7 +38306,7 @@ function B0(e, t, o, i, a, r) {
|
|
|
38291
38306
|
}, 8, ["onClick"])
|
|
38292
38307
|
])
|
|
38293
38308
|
], 4)),
|
|
38294
|
-
o.simple ? N("", !0) : (P(), D("div",
|
|
38309
|
+
o.simple ? N("", !0) : (P(), D("div", B0, [
|
|
38295
38310
|
t[3] || (t[3] = n("span", null, "© 2023", -1)),
|
|
38296
38311
|
n("span", null, "-" + b(r.computeYear), 1),
|
|
38297
38312
|
t[4] || (t[4] = n("span", { class: "text-uppercase ma-2" }, "ormwx.com", -1)),
|
|
@@ -38303,7 +38318,7 @@ function B0(e, t, o, i, a, r) {
|
|
|
38303
38318
|
]))
|
|
38304
38319
|
], 4);
|
|
38305
38320
|
}
|
|
38306
|
-
const E0 = /* @__PURE__ */ ne(G0, [["render",
|
|
38321
|
+
const E0 = /* @__PURE__ */ ne(G0, [["render", Z0]]), tf = {
|
|
38307
38322
|
install(e) {
|
|
38308
38323
|
e.component("MapInitial", E0), e.component("MapboxGL", D0), e.component("TropicalGL", or), e.component("LatLngGL", tr), e.component("DateTimePicker", ta), e.component("DateRangePicker", ar), e.component("PortDetail", ga), e.component("TimePlayer", kr);
|
|
38309
38324
|
}
|
|
@@ -38323,5 +38338,5 @@ export {
|
|
|
38323
38338
|
ze as e,
|
|
38324
38339
|
We as f,
|
|
38325
38340
|
A0 as g,
|
|
38326
|
-
|
|
38341
|
+
Zo as l
|
|
38327
38342
|
};
|