@idmwx/idmui-gl4 3.0.8 → 3.0.9
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-73fce195.js → chunk-3VYIPD3A-9f30d6c8.js} +1 -1
- package/dist/{chunk-ANSXOGKI-f7c36562.js → chunk-ANSXOGKI-222aefe5.js} +1 -1
- package/dist/{chunk-T4JIPPZO-9e10716f.js → chunk-T4JIPPZO-55ee03ad.js} +1 -1
- package/dist/{download-67c23049.js → download-b3f5b8cc.js} +3 -3
- package/dist/{index-c7a21ff5.js → index-81ae0ded.js} +520 -469
- package/dist/index.js +1 -1
- package/dist/index.umd.cjs +15 -15
- package/dist/mapbox/src/components/marker/draw.vue.d.ts +1 -0
- package/dist/mapbox/src/components/marker/import.vue.d.ts +8 -0
- package/dist/{rasterize-JS5G2XHH-219f71c4.js → rasterize-JS5G2XHH-bac43c3a.js} +3 -3
- package/dist/style.css +1 -1
- package/dist/{toBlob-44b3dad9.js → toBlob-a88df86c.js} +3 -3
- package/dist/{toCanvas-772d23ea.js → toCanvas-15a7084f.js} +2 -2
- package/dist/{toImg-ff2f53f4.js → toImg-aca4c3d8.js} +3 -3
- package/package.json +1 -1
|
@@ -4,7 +4,7 @@ var ve = (t, e, a) => (kr(t, typeof e != "symbol" ? e + "" : e, a), a);
|
|
|
4
4
|
import Ie from "axios";
|
|
5
5
|
import { useTheme as Fe } from "vuetify";
|
|
6
6
|
import { openBlock as k, createElementBlock as I, resolveComponent as P, createBlock as W, normalizeClass as ge, withCtx as x, createVNode as b, withModifiers as Le, createElementVNode as n, createCommentVNode as N, toDisplayString as y, createTextVNode as Z, Fragment as Te, renderList as De, withDirectives as et, vShow as tt, mergeProps as $, normalizeStyle as he } from "vue";
|
|
7
|
-
import
|
|
7
|
+
import ye from "mapbox-gl";
|
|
8
8
|
import R from "moment";
|
|
9
9
|
import { LngLatHelper as j, TropicalHelper as Di, LaneHelper as Xe, GeoJsonHelper as je } from "@idm-plugin/geo";
|
|
10
10
|
import { Meteo2Assist as Va, TidesAssist as er } from "@idm-plugin/meteo";
|
|
@@ -490,7 +490,7 @@ const Nr = {
|
|
|
490
490
|
const a = (o = document.getElementById("idm-gl4-zone-info")) == null ? void 0 : o.cloneNode(!0), i = (r = a == null ? void 0 : a.children[1]) == null ? void 0 : r.children[0];
|
|
491
491
|
i && (i.onclick = () => {
|
|
492
492
|
this.handleRemoveMarker();
|
|
493
|
-
}), this.marker = new
|
|
493
|
+
}), this.marker = new ye.Marker(a).setLngLat(t).setOffset([230, 0]).addTo(this.map);
|
|
494
494
|
});
|
|
495
495
|
},
|
|
496
496
|
handleRemoveMarker() {
|
|
@@ -2133,7 +2133,7 @@ const jl = {
|
|
|
2133
2133
|
if (e.properties.id) {
|
|
2134
2134
|
this.showInfo = !0, this.hoverPort = e.properties, (i = this.marker) == null || i.remove();
|
|
2135
2135
|
const r = (o = document.getElementById("idmPortInfo")) == null ? void 0 : o.cloneNode(!0);
|
|
2136
|
-
this.marker = new
|
|
2136
|
+
this.marker = new ye.Marker(r).setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([0, -70]).addTo(this.map);
|
|
2137
2137
|
}
|
|
2138
2138
|
},
|
|
2139
2139
|
handleLeave() {
|
|
@@ -2423,7 +2423,7 @@ const ql = /* @__PURE__ */ ie(Jl, [["render", Kl]]), Ql = {
|
|
|
2423
2423
|
}), (i = this.map.getSource(this.source)) == null || i.setData(o);
|
|
2424
2424
|
const r = document.createElement("div");
|
|
2425
2425
|
r.className = "v-card--variant-elevated rounded px-2 py-1 text-body-1", r.innerHTML = `<div>UTC ${t.features[0].properties.offSet}:00</div>
|
|
2426
|
-
<div>${R.tz(R().format(), this.timeZoneName(t.features[0].properties.offSet)).format("MM-DD HH:mm")}`, this.marker = new
|
|
2426
|
+
<div>${R.tz(R().format(), this.timeZoneName(t.features[0].properties.offSet)).format("MM-DD HH:mm")}`, this.marker = new ye.Marker(r).setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([0, -30]).addTo(this.map);
|
|
2427
2427
|
}
|
|
2428
2428
|
},
|
|
2429
2429
|
handleLeave() {
|
|
@@ -3304,7 +3304,7 @@ const ts = {
|
|
|
3304
3304
|
if (e.properties) {
|
|
3305
3305
|
this.showInfo = !0, this.hoverStation = e.properties, this.hoverStation.name = this.locale === "en" ? e.properties.Location_EN : e.properties.Location_CN, this.hoverStation.lng = e.geometry.coordinates[0], this.hoverStation.lat = e.geometry.coordinates[1], (a = this.marker) == null || a.remove();
|
|
3306
3306
|
const o = (i = document.getElementById("idmTidalInfo")) == null ? void 0 : i.cloneNode(!0);
|
|
3307
|
-
this.marker = new
|
|
3307
|
+
this.marker = new ye.Marker(o).setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([0, -60]).addTo(this.map);
|
|
3308
3308
|
}
|
|
3309
3309
|
},
|
|
3310
3310
|
handleLeave() {
|
|
@@ -4474,7 +4474,7 @@ const ps = {
|
|
|
4474
4474
|
if (e.properties.id) {
|
|
4475
4475
|
this.showInfo = !0, this.hoverPort = e.properties, (i = this.marker) == null || i.remove();
|
|
4476
4476
|
const r = (o = document.getElementById("idmFollowPortInfo")) == null ? void 0 : o.cloneNode(!0);
|
|
4477
|
-
this.marker = new
|
|
4477
|
+
this.marker = new ye.Marker(r).setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([0, -70]).addTo(this.map);
|
|
4478
4478
|
}
|
|
4479
4479
|
},
|
|
4480
4480
|
handleLeave() {
|
|
@@ -5433,7 +5433,7 @@ const ws = {
|
|
|
5433
5433
|
if (e.properties.id) {
|
|
5434
5434
|
this.showInfo = !0, this.position = e.properties, (a = this.marker) == null || a.remove();
|
|
5435
5435
|
const i = document.getElementById("idmFollowPositionInfo").cloneNode(!0);
|
|
5436
|
-
this.marker = new
|
|
5436
|
+
this.marker = new ye.Marker(i).setLngLat([t.lngLat.lng, t.lngLat.lat]).setOffset([0, -70]).addTo(this.map);
|
|
5437
5437
|
}
|
|
5438
5438
|
},
|
|
5439
5439
|
handleLeave() {
|
|
@@ -9295,7 +9295,7 @@ const Zc = {
|
|
|
9295
9295
|
class: "d-flex justify-start align-center ga-4 pl-6"
|
|
9296
9296
|
}, om = { class: "text-body-1 py-2" }, im = { class: "text-body-1 font-weight-medium" }, rm = { class: "text-body-2 text-label" }, lm = { class: "text-body-2 text-label" }, nm = { class: "text-body-2 text-label mb-3" }, sm = { class: "text-body-1 font-weight-medium" }, cm = { class: "text-body-2 text-label" }, mm = { class: "text-body-2 text-label" }, dm = { class: "text-body-2 text-label mb-3" }, hm = { class: "text-body-1 py-2" }, pm = { class: "text-body-1 font-weight-medium" }, um = { class: "text-body-2 text-label" }, gm = { class: "text-body-2 text-label" }, fm = { class: "text-body-2 text-label mb-3" }, ym = { class: "text-body-1 font-weight-medium" }, bm = { class: "text-body-2 text-label" }, wm = { class: "text-body-2 text-label" }, xm = { class: "text-body-2 text-label mb-3" }, vm = { class: "text-body-1 py-2" }, km = { class: "text-body-1 font-weight-medium" }, _m = { class: "text-body-2 text-label" }, Lm = { class: "text-body-2 text-label" }, zm = { class: "text-body-2 text-label mb-3" };
|
|
9297
9297
|
function Cm(t, e, a, i, o, r) {
|
|
9298
|
-
var J, K, oe, Y, H, ee, F, ne, fe, ke, ze, me,
|
|
9298
|
+
var J, K, oe, Y, H, ee, F, ne, fe, ke, ze, me, be, _e, Re;
|
|
9299
9299
|
const l = P("VBtn"), c = P("VTooltip"), s = P("VCol"), d = P("VRow"), m = P("VCardText"), p = P("VDivider"), f = P("VCard"), w = P("VSwitch"), u = P("VBtnToggle"), h = P("VCardTitle"), g = P("VCardItem"), _ = P("VCheckbox"), T = P("VRadio"), v = P("IdmWindBarb"), M = P("IdmSigWaveHeight"), L = P("IdmCurrentDirection"), z = P("IdmPrmsl"), S = P("IdmWindParticle"), D = P("IdmCurrentParticle"), A = P("IdmWave"), E = P("IdmSwell"), X = P("IdmIceEdge"), O = P("IdmIceCover"), q = P("IdmIceThickness"), ae = P("IdmPrecip3h"), re = P("IdmVisibility"), pe = P("IdmWaterTemp"), G = P("IdmTemp");
|
|
9300
9300
|
return k(), I("div", Oc, [
|
|
9301
9301
|
n("div", {
|
|
@@ -9888,7 +9888,7 @@ function Cm(t, e, a, i, o, r) {
|
|
|
9888
9888
|
a.map ? (k(), W(re, $({
|
|
9889
9889
|
key: 13,
|
|
9890
9890
|
viewport: o.viewport,
|
|
9891
|
-
factor: (
|
|
9891
|
+
factor: (be = o.weatherLayers) == null ? void 0 : be.visibility,
|
|
9892
9892
|
"menu-toggle": a.menuToggle,
|
|
9893
9893
|
simple: a.simple
|
|
9894
9894
|
}, t.$attrs), null, 16, ["viewport", "factor", "menu-toggle", "simple"])) : N("", !0),
|
|
@@ -10255,7 +10255,7 @@ let Ii = class {
|
|
|
10255
10255
|
}), o;
|
|
10256
10256
|
}
|
|
10257
10257
|
static pickHourly(e, a) {
|
|
10258
|
-
var i, o, r, l, c, s, d, m, p, f, w, u, h, g, _, T, v, M, L, z, S, D, A, E, X, O, q, ae, re, pe, G, J, K, oe, Y, H, ee, F, ne, fe, ke, ze, me,
|
|
10258
|
+
var i, o, r, l, c, s, d, m, p, f, w, u, h, g, _, T, v, M, L, z, S, D, A, E, X, O, q, ae, re, pe, G, J, K, oe, Y, H, ee, F, ne, fe, ke, ze, me, be, _e, Re, Q, de, He, Ee, Me, Ae;
|
|
10259
10259
|
const le = typeof a == "string" ? R(a) : a, Pe = e == null ? void 0 : e.weather, ue = e == null ? void 0 : e.marine, we = R((o = (i = Pe == null ? void 0 : Pe[0]) == null ? void 0 : i.hourly) == null ? void 0 : o.date).utc(), Ze = we.clone().add((c = (l = (r = Pe == null ? void 0 : Pe[0]) == null ? void 0 : r.hourly) == null ? void 0 : l.time) == null ? void 0 : c.at(0), "h"), Ue = we.clone().add((m = (d = (s = Pe == null ? void 0 : Pe[0]) == null ? void 0 : s.hourly) == null ? void 0 : d.time) == null ? void 0 : m.at(-1), "h"), Ye = [];
|
|
10260
10260
|
if (le.isBetween(Ze, Ue, "millisecond", "[]")) {
|
|
10261
10261
|
const U = le.utc().diff(Ze, "h", !1);
|
|
@@ -10326,7 +10326,7 @@ let Ii = class {
|
|
|
10326
10326
|
wd: {
|
|
10327
10327
|
height: (ke = te == null ? void 0 : te.wind_wave_height) == null ? void 0 : ke.at(U),
|
|
10328
10328
|
degree: (ze = te == null ? void 0 : te.wind_wave_direction) == null ? void 0 : ze.at(U),
|
|
10329
|
-
bearing: ((me = te == null ? void 0 : te.wind_wave_direction) == null ? void 0 : me.at(U)) !== null ? (((
|
|
10329
|
+
bearing: ((me = te == null ? void 0 : te.wind_wave_direction) == null ? void 0 : me.at(U)) !== null ? (((be = te == null ? void 0 : te.wind_wave_direction) == null ? void 0 : be.at(U)) + 180) % 360 : null,
|
|
10330
10330
|
period: (_e = te == null ? void 0 : te.wind_wave_period) == null ? void 0 : _e.at(U),
|
|
10331
10331
|
peakPeriod: (Re = te == null ? void 0 : te.wind_wave_peak_period) == null ? void 0 : Re.at(U)
|
|
10332
10332
|
}
|
|
@@ -10368,7 +10368,7 @@ let Ii = class {
|
|
|
10368
10368
|
};
|
|
10369
10369
|
}
|
|
10370
10370
|
static pickDaily(e, a) {
|
|
10371
|
-
var i, o, r, l, c, s, d, m, p, f, w, u, h, g, _, T, v, M, L, z, S, D, A, E, X, O, q, ae, re, pe, G, J, K, oe, Y, H, ee, F, ne, fe, ke, ze, me,
|
|
10371
|
+
var i, o, r, l, c, s, d, m, p, f, w, u, h, g, _, T, v, M, L, z, S, D, A, E, X, O, q, ae, re, pe, G, J, K, oe, Y, H, ee, F, ne, fe, ke, ze, me, be;
|
|
10372
10372
|
const _e = typeof a == "string" ? R(a) : a, Re = e == null ? void 0 : e.weather, Q = e == null ? void 0 : e.marine, de = R((r = (o = (i = Re == null ? void 0 : Re[0]) == null ? void 0 : i.daily) == null ? void 0 : o.time) == null ? void 0 : r.at(0)), He = R((s = (c = (l = Re == null ? void 0 : Re[0]) == null ? void 0 : l.daily) == null ? void 0 : c.time) == null ? void 0 : s.at(-1)), Ee = [];
|
|
10373
10373
|
if (_e.isBetween(de, He, "millisecond", "[]")) {
|
|
10374
10374
|
let Me, Ae;
|
|
@@ -10440,7 +10440,7 @@ let Ii = class {
|
|
|
10440
10440
|
degree: (fe = we.wind_wave_direction_dominant) == null ? void 0 : fe.at(le),
|
|
10441
10441
|
period: (ke = we.wind_wave_period_max) == null ? void 0 : ke.at(le),
|
|
10442
10442
|
peakPeriod: (ze = we.wind_wave_peak_period_max) == null ? void 0 : ze.at(le),
|
|
10443
|
-
bearing: ((me = we.wind_wave_direction_dominant) == null ? void 0 : me.at(le)) !== null ? (((
|
|
10443
|
+
bearing: ((me = we.wind_wave_direction_dominant) == null ? void 0 : me.at(le)) !== null ? (((be = we.wind_wave_direction_dominant) == null ? void 0 : be.at(le)) + 180) % 360 : null
|
|
10444
10444
|
}
|
|
10445
10445
|
}
|
|
10446
10446
|
}, Ae.wave = this.parseWave(Ae.wave, Me == null ? void 0 : Me.wind), Object.assign(Ee[Pe], Ae), Pe++;
|
|
@@ -11361,14 +11361,14 @@ const Pm = {
|
|
|
11361
11361
|
for (const F of oe)
|
|
11362
11362
|
if (!F.properties.disabled) {
|
|
11363
11363
|
if (!ee.some((me) => {
|
|
11364
|
-
var
|
|
11365
|
-
return me.properties.name === ((
|
|
11364
|
+
var be;
|
|
11365
|
+
return me.properties.name === ((be = F.properties) == null ? void 0 : be.name);
|
|
11366
11366
|
})) {
|
|
11367
|
-
const me = ((c = (l = this.tropicals.data.features.find((
|
|
11367
|
+
const me = ((c = (l = this.tropicals.data.features.find((be) => {
|
|
11368
11368
|
var _e;
|
|
11369
|
-
return
|
|
11369
|
+
return be.properties.name === ((_e = F.properties) == null ? void 0 : _e.name);
|
|
11370
11370
|
})) == null ? void 0 : l.properties) == null ? void 0 : c.nameCn) || ((s = F.properties) == null ? void 0 : s.Name) || "-";
|
|
11371
|
-
F.properties.nameCn = me, F.properties.Name = ((m = (d = F.properties.name) == null ? void 0 : d.trim()) == null ? void 0 : m.replace(/^./, (
|
|
11371
|
+
F.properties.nameCn = me, F.properties.Name = ((m = (d = F.properties.name) == null ? void 0 : d.trim()) == null ? void 0 : m.replace(/^./, (be) => be.toUpperCase())) || F.properties.nameCn, ee.push(F);
|
|
11372
11372
|
}
|
|
11373
11373
|
let ne = this.Theme.current.value.colors["tropicals-ty"];
|
|
11374
11374
|
((f = (p = F.properties) == null ? void 0 : p.wind) == null ? void 0 : f.kts) < 32 || !((u = (w = F.properties) == null ? void 0 : w.wind) != null && u.kts) ? ne = this.Theme.current.value.colors["tropicals-td"] : ((g = (h = F.properties) == null ? void 0 : h.wind) == null ? void 0 : g.kts) >= 32 && ((T = (_ = F.properties) == null ? void 0 : _.wind) == null ? void 0 : T.kts) < 47 ? ne = this.Theme.current.value.colors["tropicals-ts"] : ((M = (v = F.properties) == null ? void 0 : v.wind) == null ? void 0 : M.kts) >= 47 && ((z = (L = F.properties) == null ? void 0 : L.wind) == null ? void 0 : z.kts) < 63 ? ne = this.Theme.current.value.colors["tropicals-sts"] : ((D = (S = F.properties) == null ? void 0 : S.wind) == null ? void 0 : D.kts) >= 63 && ((E = (A = F.properties) == null ? void 0 : A.wind) == null ? void 0 : E.kts) < 79 ? ne = this.Theme.current.value.colors["tropicals-ty"] : ((O = (X = F.properties) == null ? void 0 : X.wind) == null ? void 0 : O.kts) >= 79 && ((ae = (q = F.properties) == null ? void 0 : q.wind) == null ? void 0 : ae.kts) < 94 ? ne = this.Theme.current.value.colors["tropicals-sty"] : ((pe = (re = F.properties) == null ? void 0 : re.wind) == null ? void 0 : pe.kts) >= 94 ? ne = this.Theme.current.value.colors["tropicals-super-ty"] : ne = this.Theme.current.value.colors["tropicals-ty"];
|
|
@@ -11388,7 +11388,7 @@ const Pm = {
|
|
|
11388
11388
|
fill="#ffffff" p-id="18386"></path>
|
|
11389
11389
|
</svg>`, ke = document.createElement("div");
|
|
11390
11390
|
ke.className = "idm-tropical-gl4-hourly-marker", ke.innerHTML = `<div class="${F.geometry.coordinates[1] >= 0 ? "center north" : "center south"}">${fe}</div>`;
|
|
11391
|
-
const ze = new
|
|
11391
|
+
const ze = new ye.Marker(ke).setLngLat(F.geometry.coordinates).addTo(this.map);
|
|
11392
11392
|
this.interpolateMarkers.push(ze);
|
|
11393
11393
|
}
|
|
11394
11394
|
this.$emit("tropicalCenterPoints", ee);
|
|
@@ -11420,7 +11420,7 @@ const Pm = {
|
|
|
11420
11420
|
drawTropicalsInfoMaker(t) {
|
|
11421
11421
|
this.$nextTick(() => {
|
|
11422
11422
|
const e = document.getElementById("idm-tropical-gl4-info");
|
|
11423
|
-
this.activeTropicalsMarker ? this.activeTropicalsMarker.setLngLat(t).setOffset([220, 0]) : this.activeTropicalsMarker = new
|
|
11423
|
+
this.activeTropicalsMarker ? this.activeTropicalsMarker.setLngLat(t).setOffset([220, 0]) : this.activeTropicalsMarker = new ye.Marker(e).setLngLat(t).setOffset([220, 0]).addTo(this.map);
|
|
11424
11424
|
});
|
|
11425
11425
|
},
|
|
11426
11426
|
handleCloseInfoMarker() {
|
|
@@ -11520,7 +11520,7 @@ const Pm = {
|
|
|
11520
11520
|
);
|
|
11521
11521
|
this.hoverPoint && (this.hoverPoint.lng = a.geometry.coordinates[0], this.hoverPoint.lat = a.geometry.coordinates[1], this.hoverPoint.update = (c = (l = i == null ? void 0 : i[0]) == null ? void 0 : l.properties) == null ? void 0 : c.date, (s = this.hoverMarker) == null || s.remove(), this.showHoverPoint = !0, this.$nextTick(() => {
|
|
11522
11522
|
const d = document.getElementById("tropicalHoverMarkerInfo").cloneNode(!0);
|
|
11523
|
-
this.hoverMarker = new
|
|
11523
|
+
this.hoverMarker = new ye.Marker(d).setLngLat(a.geometry.coordinates).setOffset([160, 0]).addTo(this.map);
|
|
11524
11524
|
}));
|
|
11525
11525
|
},
|
|
11526
11526
|
handleLeave() {
|
|
@@ -13294,14 +13294,14 @@ const fh = {
|
|
|
13294
13294
|
var a, i;
|
|
13295
13295
|
(a = this.positionMarker) == null || a.remove();
|
|
13296
13296
|
const e = (i = document.getElementById("idm-position-icon")) == null ? void 0 : i.cloneNode(!0);
|
|
13297
|
-
this.positionMarker = new
|
|
13297
|
+
this.positionMarker = new ye.Marker(e).setLngLat(t).setOffset([0, -15]).addTo(this.map);
|
|
13298
13298
|
}));
|
|
13299
13299
|
},
|
|
13300
13300
|
drawMeteoInfoMarker(t) {
|
|
13301
13301
|
this.$nextTick(() => {
|
|
13302
13302
|
var a;
|
|
13303
13303
|
const e = document.getElementById("idm-gl4-spot-meteo");
|
|
13304
|
-
this.meteoInfoMarker ? (a = this.meteoInfoMarker) == null || a.setLngLat(t) : this.meteoInfoMarker = new
|
|
13304
|
+
this.meteoInfoMarker ? (a = this.meteoInfoMarker) == null || a.setLngLat(t) : this.meteoInfoMarker = new ye.Marker(e).setLngLat(t).setOffset([0, -190]).addTo(this.map);
|
|
13305
13305
|
});
|
|
13306
13306
|
},
|
|
13307
13307
|
handleMeteoMore() {
|
|
@@ -14128,7 +14128,7 @@ const wp = {
|
|
|
14128
14128
|
const c = this.geojson.filter((s) => s.id === e.split("-")[0])[0].features.filter((s) => s.geometry.type === "Point");
|
|
14129
14129
|
if (c.length > 2 && c.filter((d) => d.properties.id === (e == null ? void 0 : e.split("-")[1]))[0]) {
|
|
14130
14130
|
const d = document.createElement("div");
|
|
14131
|
-
d.className = "idm-gl4-measure-contextmenu-marker", d.innerHTML = `<span id="del-${e}" class="del-point">${$t("actions.detele")}</span>`, this.contextmenu = new
|
|
14131
|
+
d.className = "idm-gl4-measure-contextmenu-marker", d.innerHTML = `<span id="del-${e}" class="del-point">${$t("actions.detele")}</span>`, this.contextmenu = new ye.Marker(d).setOffset([24, 0]).setLngLat([t.lngLat.lng, t.lngLat.lat]).addTo(this.map);
|
|
14132
14132
|
}
|
|
14133
14133
|
}
|
|
14134
14134
|
},
|
|
@@ -14250,7 +14250,7 @@ const wp = {
|
|
|
14250
14250
|
this.tipMarker._element.innerHTML = c, this.tipMarker.setLngLat([a.lng, a.lat]);
|
|
14251
14251
|
else {
|
|
14252
14252
|
const s = document.createElement("div");
|
|
14253
|
-
s.className = "idm-gl4-measure-tip-marker", s.innerHTML = c, this.tipMarker = new
|
|
14253
|
+
s.className = "idm-gl4-measure-tip-marker", s.innerHTML = c, this.tipMarker = new ye.Marker(s).setOffset([140, 0]).setLngLat([a.lng, a.lat]).addTo(this.map);
|
|
14254
14254
|
}
|
|
14255
14255
|
},
|
|
14256
14256
|
handleMove(t) {
|
|
@@ -14326,12 +14326,12 @@ const wp = {
|
|
|
14326
14326
|
for (const c of l) {
|
|
14327
14327
|
const s = document.createElement("div");
|
|
14328
14328
|
s.id = `${t.id}-${c.properties.id}`, s.className = `${t.closed ? "idm-gl4-measure-marker closed" : "idm-gl4-measure-marker"}`, s.innerHTML = '<div class="marker-circle"></div>';
|
|
14329
|
-
const d = new
|
|
14329
|
+
const d = new ye.Marker({ element: s, draggable: !0, contextmenu: !0 }).setLngLat(c.geometry.coordinates).addTo(this.map);
|
|
14330
14330
|
d.on("drag", this.handleDrag), d.on("dragend", this.handleDragEnd), this.pointMarkers[t.id] ? this.pointMarkers[t.id].push(d) : this.pointMarkers[t.id] = [d];
|
|
14331
14331
|
}
|
|
14332
14332
|
if (t.closed) {
|
|
14333
14333
|
const c = l.at(-1), d = t.features.filter((p) => p.geometry.type === "LineString").at(-1), m = document.createElement("div");
|
|
14334
|
-
m.className = "idm-gl4-measure-summary-marker", m.innerHTML = `<div class="marker-label">${d.properties.name}</div><div id="${t.id}" class="marker-close">X</div>`, this.closeMarkers[t.id] = new
|
|
14334
|
+
m.className = "idm-gl4-measure-summary-marker", m.innerHTML = `<div class="marker-label">${d.properties.name}</div><div id="${t.id}" class="marker-close">X</div>`, this.closeMarkers[t.id] = new ye.Marker(m).setOffset([0, -30]).setLngLat(c.geometry.coordinates).addTo(this.map);
|
|
14335
14335
|
}
|
|
14336
14336
|
}
|
|
14337
14337
|
},
|
|
@@ -14475,6 +14475,7 @@ const _p = {
|
|
|
14475
14475
|
drawRadiusLayer: "draw-marker-radius-layer",
|
|
14476
14476
|
tipMarker: null,
|
|
14477
14477
|
pointMarker: null,
|
|
14478
|
+
pointHighlightMarker: null,
|
|
14478
14479
|
editMarkers: [],
|
|
14479
14480
|
deleteBtn: null,
|
|
14480
14481
|
originalProperties: {}
|
|
@@ -14550,7 +14551,17 @@ const _p = {
|
|
|
14550
14551
|
this.$emit("hideLayer", this.editLayer.id);
|
|
14551
14552
|
},
|
|
14552
14553
|
setupPointEdit() {
|
|
14553
|
-
|
|
14554
|
+
var a;
|
|
14555
|
+
if (!this.pointMarker)
|
|
14556
|
+
return;
|
|
14557
|
+
this.pointMarker.setDraggable(!0), this.pointMarker.off("drag", this.handlePointDrag), this.pointMarker.on("drag", this.handlePointDrag), this.pointMarker.off("dragend", this.handlePointDrag), this.pointMarker.on("dragend", this.handlePointDrag), (a = this.pointHighlightMarker) == null || a.remove();
|
|
14558
|
+
const t = document.createElement("div");
|
|
14559
|
+
t.className = "idm-gl4-point-center-ring";
|
|
14560
|
+
const e = this.pointMarker.getLngLat();
|
|
14561
|
+
this.pointHighlightMarker = new ye.Marker({ element: t, anchor: "center", offset: [0, 0] }).setLngLat(e).addTo(this.map), this.pointMarker.on("drag", () => {
|
|
14562
|
+
var i;
|
|
14563
|
+
(i = this.pointHighlightMarker) == null || i.setLngLat(this.pointMarker.getLngLat());
|
|
14564
|
+
});
|
|
14554
14565
|
},
|
|
14555
14566
|
handlePointDrag() {
|
|
14556
14567
|
const { lng: t, lat: e } = this.pointMarker.getLngLat();
|
|
@@ -14580,7 +14591,7 @@ const _p = {
|
|
|
14580
14591
|
this.clearEditMarkers(), this.drawCoords.forEach((e, a) => {
|
|
14581
14592
|
const i = document.createElement("div");
|
|
14582
14593
|
i.className = "idm-gl4-edit-vertex", i.style.backgroundColor = this.form.color;
|
|
14583
|
-
const o = new
|
|
14594
|
+
const o = new ye.Marker({ element: i, draggable: !0 }).setLngLat(e).addTo(this.map);
|
|
14584
14595
|
o.on("dragstart", () => {
|
|
14585
14596
|
this.map.getCanvas().style.cursor = "pointer";
|
|
14586
14597
|
const { lng: r, lat: l } = o.getLngLat();
|
|
@@ -14671,7 +14682,7 @@ const _p = {
|
|
|
14671
14682
|
this.drawCoords = e.map((i) => [...i]), this.drawCoords.forEach((i, o) => {
|
|
14672
14683
|
const r = document.createElement("div");
|
|
14673
14684
|
r.className = "idm-gl4-edit-vertex", r.style.backgroundColor = this.form.color;
|
|
14674
|
-
const l = new
|
|
14685
|
+
const l = new ye.Marker({ element: r, draggable: !0 }).setLngLat(i).addTo(this.map);
|
|
14675
14686
|
l.on("dragstart", () => {
|
|
14676
14687
|
this.map.getCanvas().style.cursor = "pointer";
|
|
14677
14688
|
const { lng: c, lat: s } = l.getLngLat();
|
|
@@ -14726,7 +14737,7 @@ const _p = {
|
|
|
14726
14737
|
if ((o = this.pointMarker) == null || o.remove(), !t || !t.length)
|
|
14727
14738
|
return;
|
|
14728
14739
|
const [a, i] = t[0];
|
|
14729
|
-
this.pointMarker = new
|
|
14740
|
+
this.pointMarker = new ye.Marker({ color: e }).setLngLat([a, i]).addTo(this.map);
|
|
14730
14741
|
},
|
|
14731
14742
|
// -------- Line drawing --------
|
|
14732
14743
|
handleMapClickLine(t) {
|
|
@@ -14801,7 +14812,7 @@ const _p = {
|
|
|
14801
14812
|
this.tipMarker._element.innerHTML = d, this.tipMarker.setLngLat([e[0], e[1]]);
|
|
14802
14813
|
else {
|
|
14803
14814
|
const m = document.createElement("div");
|
|
14804
|
-
m.className = "idm-gl4-draw-tip-marker", m.innerHTML = d, this.tipMarker = new
|
|
14815
|
+
m.className = "idm-gl4-draw-tip-marker", m.innerHTML = d, this.tipMarker = new ye.Marker(m).setOffset([140, 0]).setLngLat([e[0], e[1]]).addTo(this.map);
|
|
14805
14816
|
}
|
|
14806
14817
|
},
|
|
14807
14818
|
handleRefreshLine() {
|
|
@@ -14870,7 +14881,7 @@ const _p = {
|
|
|
14870
14881
|
this.handleClearVertexLabels();
|
|
14871
14882
|
const a = j.lat2pretty(t[1], 4).pretty, i = j.lng2pretty(t[0], 4).pretty, o = document.createElement("div");
|
|
14872
14883
|
o.className = "idm-gl4-draw-corner-label center", o.innerHTML = `<span class="corner-text">${a} <br/> ${i}</span>`;
|
|
14873
|
-
const r = new
|
|
14884
|
+
const r = new ye.Marker(o, { anchor: "bottom", offset: [0, e] }).setLngLat(t).addTo(this.map);
|
|
14874
14885
|
this.polygonVertexMarkers.push(r);
|
|
14875
14886
|
},
|
|
14876
14887
|
handleRenderAllVertexLabels(t) {
|
|
@@ -14882,7 +14893,7 @@ const _p = {
|
|
|
14882
14893
|
o >= 0 && i >= 0 ? r = "bottom-left" : o >= 0 && i < 0 ? r = "bottom-right" : o < 0 && i >= 0 ? r = "top-left" : r = "top-right";
|
|
14883
14894
|
const l = j.lat2pretty(a[1], 4).pretty, c = j.lng2pretty(a[0], 4).pretty, s = document.createElement("div");
|
|
14884
14895
|
s.className = "idm-gl4-draw-corner-label " + r, s.innerHTML = `<span class="corner-text">${l} <br/> ${c}</span>`;
|
|
14885
|
-
const d = new
|
|
14896
|
+
const d = new ye.Marker(s, { anchor: r }).setLngLat(a).addTo(this.map);
|
|
14886
14897
|
this.polygonVertexMarkers.push(d);
|
|
14887
14898
|
});
|
|
14888
14899
|
},
|
|
@@ -14929,7 +14940,7 @@ const _p = {
|
|
|
14929
14940
|
handleRenderCircleCenterLabel(t) {
|
|
14930
14941
|
const e = j.lat2pretty(t[1], 4).pretty, a = j.lng2pretty(t[0], 4).pretty, i = document.createElement("div");
|
|
14931
14942
|
i.className = "idm-gl4-draw-corner-label bottom-right", i.innerHTML = `<span class="corner-text">${e} <br/> ${a}</span>`;
|
|
14932
|
-
const o = new
|
|
14943
|
+
const o = new ye.Marker(i, { anchor: "bottom-right" }).setLngLat(t).addTo(this.map);
|
|
14933
14944
|
this.circleMarkers.push(o);
|
|
14934
14945
|
},
|
|
14935
14946
|
handleRenderRadiusLine(t, e, a) {
|
|
@@ -14952,7 +14963,7 @@ const _p = {
|
|
|
14952
14963
|
this.circleMarkers.length > 1 && (this.circleMarkers[1].remove(), this.circleMarkers.splice(1, 1));
|
|
14953
14964
|
const h = document.createElement("div"), g = document.createElement("span");
|
|
14954
14965
|
g.className = "idm-gl4-draw-radius-label", g.style.transform = `rotate(${m}deg)`, g.style.transformOrigin = "center", g.style.display = "inline-block", g.textContent = `${i} nm`, h.appendChild(g);
|
|
14955
|
-
const _ = new
|
|
14966
|
+
const _ = new ye.Marker(h, { anchor: "center", offset: [w, u] }).setLngLat(r).addTo(this.map);
|
|
14956
14967
|
this.circleMarkers.push(_);
|
|
14957
14968
|
},
|
|
14958
14969
|
handleClearCircleLabels() {
|
|
@@ -15031,7 +15042,7 @@ const _p = {
|
|
|
15031
15042
|
this.handleClearRectCorners(), l.forEach(({ coord: c, anchor: s }) => {
|
|
15032
15043
|
const d = j.lat2pretty(c[1], 4).pretty, m = j.lng2pretty(c[0], 4).pretty, p = document.createElement("div");
|
|
15033
15044
|
p.className = "idm-gl4-draw-corner-label " + s, p.innerHTML = `<span class="corner-text">${d} <br/> ${m}</span>`;
|
|
15034
|
-
const f = new
|
|
15045
|
+
const f = new ye.Marker(p, { anchor: s }).setLngLat(c).addTo(this.map);
|
|
15035
15046
|
this.rectCornerMarkers.push(f);
|
|
15036
15047
|
});
|
|
15037
15048
|
},
|
|
@@ -15082,25 +15093,28 @@ const _p = {
|
|
|
15082
15093
|
},
|
|
15083
15094
|
// -------- clear drawn layers --------
|
|
15084
15095
|
handleClearDraw(t = !1) {
|
|
15085
|
-
var a, i, o, r;
|
|
15096
|
+
var a, i, o, r, l;
|
|
15086
15097
|
this.handleClearTmp(), this.hideDeleteButton();
|
|
15087
15098
|
const e = [this.drawPointLayer, this.drawLineLayer, this.drawFillLayer];
|
|
15088
|
-
for (const
|
|
15089
|
-
(a = this.map) != null && a.getLayer(
|
|
15090
|
-
(o = this.map) != null && o.getSource(this.drawSource) && this.map.removeSource(this.drawSource), this.drawCoords = [], this.originalProperties = {}, this.handleClearRectCorners(), this.handleClearVertexLabels(), this.handleClearCircleLabels(), (r = this.pointMarker) == null || r.remove(), this.pointMarker = null, this.clearEditMarkers(), this.handleRebindMap();
|
|
15099
|
+
for (const c of e)
|
|
15100
|
+
(a = this.map) != null && a.getLayer(c) && ((i = this.map) == null || i.removeLayer(c));
|
|
15101
|
+
(o = this.map) != null && o.getSource(this.drawSource) && this.map.removeSource(this.drawSource), this.drawCoords = [], this.originalProperties = {}, this.handleClearRectCorners(), this.handleClearVertexLabels(), this.handleClearCircleLabels(), (r = this.pointMarker) == null || r.remove(), this.pointMarker = null, (l = this.pointHighlightMarker) == null || l.remove(), this.pointHighlightMarker = null, this.clearEditMarkers(), this.handleRebindMap();
|
|
15091
15102
|
},
|
|
15092
15103
|
// -------- Save --------
|
|
15093
15104
|
async handleSave() {
|
|
15094
15105
|
var i, o;
|
|
15095
15106
|
let t = null;
|
|
15096
15107
|
if (this.markerType === "Point" ? await this.$refs.pointForm.validate().then((r) => {
|
|
15108
|
+
var l;
|
|
15097
15109
|
if (r != null && r.valid) {
|
|
15098
15110
|
if (!this.drawCoords.length)
|
|
15099
15111
|
return;
|
|
15100
|
-
const [
|
|
15112
|
+
const [c, s] = this.drawCoords[0];
|
|
15101
15113
|
t = B.featureCollection([
|
|
15102
|
-
je.drawPoint(
|
|
15103
|
-
])
|
|
15114
|
+
je.drawPoint(s, c, { ...this.originalProperties, color: this.form.color, name: this.form.name })
|
|
15115
|
+
]), (l = t.features) == null || l.forEach((d) => {
|
|
15116
|
+
d.properties.color = this.form.color, d.properties.name = this.form.name;
|
|
15117
|
+
});
|
|
15104
15118
|
}
|
|
15105
15119
|
}) : this.markerType === "Line" ? await this.$refs.lineForm.validate().then((r) => {
|
|
15106
15120
|
if (r != null && r.valid) {
|
|
@@ -15799,18 +15813,21 @@ const Qp = {
|
|
|
15799
15813
|
},
|
|
15800
15814
|
emits: ["close", "import"],
|
|
15801
15815
|
data() {
|
|
15816
|
+
var t;
|
|
15802
15817
|
return {
|
|
15803
15818
|
form: {
|
|
15804
15819
|
groupName: "",
|
|
15805
15820
|
name: "",
|
|
15806
15821
|
file: null,
|
|
15807
15822
|
format: "",
|
|
15808
|
-
extend: void 0
|
|
15823
|
+
extend: void 0,
|
|
15824
|
+
color: (t = this.Theme.current.value.colors) == null ? void 0 : t["map-green"]
|
|
15809
15825
|
},
|
|
15810
15826
|
formRules: {
|
|
15811
15827
|
groupName: [
|
|
15812
|
-
(
|
|
15813
|
-
]
|
|
15828
|
+
(e) => e != null && e !== "" || "required"
|
|
15829
|
+
],
|
|
15830
|
+
color: [(e) => e != null && e !== "" || "required"]
|
|
15814
15831
|
},
|
|
15815
15832
|
isDragOver: !1,
|
|
15816
15833
|
uploading: !1,
|
|
@@ -15819,6 +15836,17 @@ const Qp = {
|
|
|
15819
15836
|
previewMarkers: []
|
|
15820
15837
|
};
|
|
15821
15838
|
},
|
|
15839
|
+
watch: {
|
|
15840
|
+
"form.color": {
|
|
15841
|
+
handler(t) {
|
|
15842
|
+
var e;
|
|
15843
|
+
(e = this.form.extend) != null && e.features && this.form.extend.features.forEach((a) => {
|
|
15844
|
+
a.properties.color = t;
|
|
15845
|
+
}), this.handleDrawLayers();
|
|
15846
|
+
},
|
|
15847
|
+
immediate: !0
|
|
15848
|
+
}
|
|
15849
|
+
},
|
|
15822
15850
|
mounted() {
|
|
15823
15851
|
var t;
|
|
15824
15852
|
this.form.groupName = ((t = this.group) == null ? void 0 : t.name) || "Import layer 1";
|
|
@@ -15852,7 +15880,7 @@ const Qp = {
|
|
|
15852
15880
|
e && this.onUpload(e);
|
|
15853
15881
|
},
|
|
15854
15882
|
async onUpload(t) {
|
|
15855
|
-
var i, o;
|
|
15883
|
+
var i, o, r, l;
|
|
15856
15884
|
if (t.size > 10485760) {
|
|
15857
15885
|
this.$emit("error", this.$t("marker.fileTooLarge"));
|
|
15858
15886
|
return;
|
|
@@ -15860,26 +15888,28 @@ const Qp = {
|
|
|
15860
15888
|
this.form.file = t, this.fileError = "", this.form.name = (i = t.name.split(".")) == null ? void 0 : i[0];
|
|
15861
15889
|
const a = (o = t.name.split(".").pop()) == null ? void 0 : o.toLowerCase();
|
|
15862
15890
|
try {
|
|
15863
|
-
let
|
|
15891
|
+
let c;
|
|
15864
15892
|
if (a === "json" || a === "geojson") {
|
|
15865
|
-
const
|
|
15866
|
-
|
|
15893
|
+
const s = await t.text();
|
|
15894
|
+
c = JSON.parse(s);
|
|
15867
15895
|
} else if (a === "kml") {
|
|
15868
|
-
const
|
|
15869
|
-
|
|
15896
|
+
const s = await t.text();
|
|
15897
|
+
c = await je.convertKML2GeoJSON(s);
|
|
15870
15898
|
} else if (a === "kmz") {
|
|
15871
|
-
const
|
|
15872
|
-
|
|
15899
|
+
const s = await t.arrayBuffer();
|
|
15900
|
+
c = await je.convertKMZ2GeoJSON(s);
|
|
15873
15901
|
} else if (a === "zip" || a === "shp") {
|
|
15874
|
-
const
|
|
15875
|
-
|
|
15902
|
+
const s = await t.arrayBuffer();
|
|
15903
|
+
c = await je.convertZIP2GeoJSON(s);
|
|
15876
15904
|
} else {
|
|
15877
15905
|
this.$emit("error", "Unsupported format: " + a);
|
|
15878
15906
|
return;
|
|
15879
15907
|
}
|
|
15880
|
-
this.form.extend =
|
|
15881
|
-
|
|
15882
|
-
|
|
15908
|
+
this.form.extend = c, this.form.format = "geojson", (l = (r = this.form.extend) == null ? void 0 : r.features) == null || l.forEach((s) => {
|
|
15909
|
+
s.properties.color = this.form.color;
|
|
15910
|
+
}), this.handleDrawLayers();
|
|
15911
|
+
} catch (c) {
|
|
15912
|
+
console.error("File parse error", c), this.$emit("error", "Failed to parse file"), this.fileError = "Failed to parse file", this.form.file = null;
|
|
15883
15913
|
}
|
|
15884
15914
|
},
|
|
15885
15915
|
handleRemoveFile() {
|
|
@@ -15926,14 +15956,13 @@ const Qp = {
|
|
|
15926
15956
|
handleDrawLayers() {
|
|
15927
15957
|
if (!this.map || !this.form.extend)
|
|
15928
15958
|
return;
|
|
15929
|
-
this.handleClearPreview();
|
|
15930
15959
|
const t = this.form.extend, e = this.previewSourceId, a = t.features || (t.type === "Feature" ? [t] : []);
|
|
15931
15960
|
a.forEach((o) => {
|
|
15932
15961
|
var l, c, s;
|
|
15933
15962
|
const r = ((l = o == null ? void 0 : o.properties) == null ? void 0 : l.color) || ((c = this.Theme.current.value.colors) == null ? void 0 : c["map-green"]);
|
|
15934
15963
|
if (((s = o.geometry) == null ? void 0 : s.type) === "Point") {
|
|
15935
15964
|
const [d, m] = o.geometry.coordinates;
|
|
15936
|
-
this.previewMarkers.push(new
|
|
15965
|
+
this.previewMarkers.push(new ye.Marker({ color: r }).setLngLat([d, m]).addTo(this.map));
|
|
15937
15966
|
}
|
|
15938
15967
|
o.properties.color || (o.properties.color = r);
|
|
15939
15968
|
}), this.map.getSource(e) ? this.map.getSource(e).setData(t) : this.map.addSource(e, { type: "geojson", data: t });
|
|
@@ -15985,14 +16014,14 @@ const Qp = {
|
|
|
15985
16014
|
}), this.map.getSource(t) && this.map.removeSource(t);
|
|
15986
16015
|
}
|
|
15987
16016
|
}
|
|
15988
|
-
}, eu = { class: "text-h6 font-weight-600" }, tu = { class: "mb-4" }, au = { class: "text-label mb-1" }, ou = { class: "text-body-2 text-center text-label" },
|
|
16017
|
+
}, eu = { class: "text-h6 font-weight-600" }, tu = { class: "mb-4" }, au = { class: "text-label mb-1" }, ou = { class: "mb-1" }, iu = { class: "text-label mb-1" }, ru = { class: "color-picker-row d-flex align-start ga-2" }, lu = ["value"], nu = { class: "text-body-2 text-center text-label" }, su = { class: "text-body-1 text-primary mt-2 cursor-pointer" }, cu = { class: "text-body-2 text-left text-label mt-1" }, mu = {
|
|
15989
16018
|
key: 0,
|
|
15990
16019
|
class: "text-body-2 text-left text-danger mt-1"
|
|
15991
|
-
},
|
|
16020
|
+
}, du = {
|
|
15992
16021
|
key: 1,
|
|
15993
16022
|
class: "file-item d-flex align-center justify-space-between mt-2 gray-bg-1 pa-1"
|
|
15994
|
-
},
|
|
15995
|
-
function
|
|
16023
|
+
}, hu = { class: "text-body-2 text-truncate" };
|
|
16024
|
+
function pu(t, e, a, i, o, r) {
|
|
15996
16025
|
const l = P("VBtn"), c = P("v-card-title"), s = P("v-divider"), d = P("v-text-field"), m = P("v-icon"), p = P("v-card-text"), f = P("VDivider"), w = P("v-btn"), u = P("VCardActions"), h = P("VForm"), g = P("v-card");
|
|
15997
16026
|
return k(), W(g, {
|
|
15998
16027
|
class: "idm-gl4-import-dialog-card",
|
|
@@ -16009,11 +16038,11 @@ function cu(t, e, a, i, o, r) {
|
|
|
16009
16038
|
class: "mr-n2",
|
|
16010
16039
|
onClick: r.handleClose
|
|
16011
16040
|
}, {
|
|
16012
|
-
default: x(() => e[
|
|
16041
|
+
default: x(() => e[9] || (e[9] = [
|
|
16013
16042
|
n("i", { class: "iconfont icon-close text-h4" }, null, -1)
|
|
16014
16043
|
])),
|
|
16015
16044
|
_: 1,
|
|
16016
|
-
__: [
|
|
16045
|
+
__: [9]
|
|
16017
16046
|
}, 8, ["onClick"])
|
|
16018
16047
|
]),
|
|
16019
16048
|
_: 1
|
|
@@ -16031,7 +16060,7 @@ function cu(t, e, a, i, o, r) {
|
|
|
16031
16060
|
n("div", tu, [
|
|
16032
16061
|
n("div", au, [
|
|
16033
16062
|
Z(y(t.$t("marker.group")), 1),
|
|
16034
|
-
e[
|
|
16063
|
+
e[10] || (e[10] = n("span", { class: "text-danger" }, "*", -1))
|
|
16035
16064
|
]),
|
|
16036
16065
|
b(d, {
|
|
16037
16066
|
modelValue: o.form.groupName,
|
|
@@ -16042,50 +16071,72 @@ function cu(t, e, a, i, o, r) {
|
|
|
16042
16071
|
class: "input-btn-bg-1"
|
|
16043
16072
|
}, null, 8, ["modelValue"])
|
|
16044
16073
|
]),
|
|
16074
|
+
n("div", ou, [
|
|
16075
|
+
n("div", iu, [
|
|
16076
|
+
Z(y(t.$t("marker.color")), 1),
|
|
16077
|
+
e[11] || (e[11] = n("span", { class: "text-danger" }, "*", -1))
|
|
16078
|
+
]),
|
|
16079
|
+
n("div", ru, [
|
|
16080
|
+
n("input", {
|
|
16081
|
+
type: "color",
|
|
16082
|
+
value: o.form.color,
|
|
16083
|
+
class: "native-color-picker cursor-pointer",
|
|
16084
|
+
onInput: e[1] || (e[1] = (_) => o.form.color = _.target.value)
|
|
16085
|
+
}, null, 40, lu),
|
|
16086
|
+
b(d, {
|
|
16087
|
+
modelValue: o.form.color,
|
|
16088
|
+
"onUpdate:modelValue": e[2] || (e[2] = (_) => o.form.color = _),
|
|
16089
|
+
rules: o.formRules.color,
|
|
16090
|
+
density: "compact",
|
|
16091
|
+
variant: "outlined",
|
|
16092
|
+
class: "flex-1-1-0 input-btn-bg-1"
|
|
16093
|
+
}, null, 8, ["modelValue", "rules"])
|
|
16094
|
+
])
|
|
16095
|
+
]),
|
|
16045
16096
|
n("div", {
|
|
16046
16097
|
class: ge(["upload-area btn-bg-1 d-flex flex-column justify-center align-center pa-4", { "drag-over": o.isDragOver, "upload-error": o.fileError }]),
|
|
16047
|
-
onDragenter: e[
|
|
16048
|
-
onDragleave: e[
|
|
16049
|
-
onDragover: e[
|
|
16098
|
+
onDragenter: e[4] || (e[4] = Le((_) => o.isDragOver = !0, ["prevent"])),
|
|
16099
|
+
onDragleave: e[5] || (e[5] = Le((_) => o.isDragOver = !1, ["prevent"])),
|
|
16100
|
+
onDragover: e[6] || (e[6] = Le(() => {
|
|
16050
16101
|
}, ["prevent"])),
|
|
16051
|
-
onDrop: e[
|
|
16052
|
-
onClick: e[
|
|
16102
|
+
onDrop: e[7] || (e[7] = Le((..._) => r.handleDrop && r.handleDrop(..._), ["prevent"])),
|
|
16103
|
+
onClick: e[8] || (e[8] = (..._) => r.handleSelectFile && r.handleSelectFile(..._))
|
|
16053
16104
|
}, [
|
|
16054
16105
|
b(m, {
|
|
16055
16106
|
size: "36",
|
|
16056
16107
|
color: "grey",
|
|
16057
16108
|
class: "mb-2"
|
|
16058
16109
|
}, {
|
|
16059
|
-
default: x(() => e[
|
|
16110
|
+
default: x(() => e[12] || (e[12] = [
|
|
16060
16111
|
Z("mdi-cloud-upload-outline", -1)
|
|
16061
16112
|
])),
|
|
16062
16113
|
_: 1,
|
|
16063
|
-
__: [
|
|
16114
|
+
__: [12]
|
|
16064
16115
|
}),
|
|
16065
|
-
n("div",
|
|
16066
|
-
n("div",
|
|
16116
|
+
n("div", nu, y(t.$t("marker.uploadHint")), 1),
|
|
16117
|
+
n("div", su, y(t.$t("marker.selectFile")), 1),
|
|
16067
16118
|
n("input", {
|
|
16068
16119
|
ref: "fileInput",
|
|
16069
16120
|
type: "file",
|
|
16070
16121
|
style: { display: "none" },
|
|
16071
16122
|
accept: ".json,.geojson,.zip,.shp,.kml,.kmz",
|
|
16072
|
-
onChange: e[
|
|
16123
|
+
onChange: e[3] || (e[3] = (..._) => r.handleFileChange && r.handleFileChange(..._))
|
|
16073
16124
|
}, null, 544)
|
|
16074
16125
|
], 34),
|
|
16075
|
-
n("div",
|
|
16076
|
-
o.fileError ? (k(), I("div",
|
|
16077
|
-
o.form.file ? (k(), I("div",
|
|
16078
|
-
n("span",
|
|
16126
|
+
n("div", cu, y(t.$t("marker.uploadLimit")), 1),
|
|
16127
|
+
o.fileError ? (k(), I("div", mu, y(o.fileError), 1)) : N("", !0),
|
|
16128
|
+
o.form.file ? (k(), I("div", du, [
|
|
16129
|
+
n("span", hu, [
|
|
16079
16130
|
b(m, {
|
|
16080
16131
|
size: "16",
|
|
16081
16132
|
color: "success",
|
|
16082
16133
|
class: "mr-1"
|
|
16083
16134
|
}, {
|
|
16084
|
-
default: x(() => e[
|
|
16135
|
+
default: x(() => e[13] || (e[13] = [
|
|
16085
16136
|
Z("mdi-check-circle", -1)
|
|
16086
16137
|
])),
|
|
16087
16138
|
_: 1,
|
|
16088
|
-
__: [
|
|
16139
|
+
__: [13]
|
|
16089
16140
|
}),
|
|
16090
16141
|
Z(" " + y(o.form.file.name), 1)
|
|
16091
16142
|
]),
|
|
@@ -16099,11 +16150,11 @@ function cu(t, e, a, i, o, r) {
|
|
|
16099
16150
|
}, {
|
|
16100
16151
|
default: x(() => [
|
|
16101
16152
|
b(m, { size: "16" }, {
|
|
16102
|
-
default: x(() => e[
|
|
16153
|
+
default: x(() => e[14] || (e[14] = [
|
|
16103
16154
|
Z("mdi-close", -1)
|
|
16104
16155
|
])),
|
|
16105
16156
|
_: 1,
|
|
16106
|
-
__: [
|
|
16157
|
+
__: [14]
|
|
16107
16158
|
})
|
|
16108
16159
|
]),
|
|
16109
16160
|
_: 1
|
|
@@ -16149,8 +16200,8 @@ function cu(t, e, a, i, o, r) {
|
|
|
16149
16200
|
_: 1
|
|
16150
16201
|
});
|
|
16151
16202
|
}
|
|
16152
|
-
const
|
|
16153
|
-
const
|
|
16203
|
+
const uu = /* @__PURE__ */ ie(Qp, [["render", pu]]);
|
|
16204
|
+
const gu = {
|
|
16154
16205
|
name: "IdmGroupDialog",
|
|
16155
16206
|
props: {
|
|
16156
16207
|
modelValue: {
|
|
@@ -16210,8 +16261,8 @@ const du = {
|
|
|
16210
16261
|
}));
|
|
16211
16262
|
}
|
|
16212
16263
|
}
|
|
16213
|
-
},
|
|
16214
|
-
function
|
|
16264
|
+
}, fu = { class: "text-h6 font-weight-600" }, yu = { class: "text-label mb-2" };
|
|
16265
|
+
function bu(t, e, a, i, o, r) {
|
|
16215
16266
|
const l = P("VBtn"), c = P("v-card-title"), s = P("v-divider"), d = P("v-text-field"), m = P("v-card-text"), p = P("VDivider"), f = P("v-btn"), w = P("VCardActions"), u = P("v-card"), h = P("v-dialog");
|
|
16216
16267
|
return k(), W(h, {
|
|
16217
16268
|
"model-value": a.modelValue,
|
|
@@ -16227,7 +16278,7 @@ function uu(t, e, a, i, o, r) {
|
|
|
16227
16278
|
default: x(() => [
|
|
16228
16279
|
b(c, { class: "d-flex justify-space-between align-center" }, {
|
|
16229
16280
|
default: x(() => [
|
|
16230
|
-
n("span",
|
|
16281
|
+
n("span", fu, y(t.$t("actions.editGroup")), 1),
|
|
16231
16282
|
b(l, {
|
|
16232
16283
|
icon: "",
|
|
16233
16284
|
density: "compact",
|
|
@@ -16247,7 +16298,7 @@ function uu(t, e, a, i, o, r) {
|
|
|
16247
16298
|
b(s),
|
|
16248
16299
|
b(m, { class: "px-4 text-body-1" }, {
|
|
16249
16300
|
default: x(() => [
|
|
16250
|
-
n("div",
|
|
16301
|
+
n("div", yu, [
|
|
16251
16302
|
Z(y(t.$t("marker.groupName")), 1),
|
|
16252
16303
|
e[3] || (e[3] = n("span", { class: "text-danger" }, "*", -1))
|
|
16253
16304
|
]),
|
|
@@ -16302,7 +16353,7 @@ function uu(t, e, a, i, o, r) {
|
|
|
16302
16353
|
_: 1
|
|
16303
16354
|
}, 8, ["model-value"]);
|
|
16304
16355
|
}
|
|
16305
|
-
const
|
|
16356
|
+
const wu = /* @__PURE__ */ ie(gu, [["render", bu]]), xu = {
|
|
16306
16357
|
name: "DeleteDialog",
|
|
16307
16358
|
props: {
|
|
16308
16359
|
title: {
|
|
@@ -16333,8 +16384,8 @@ const gu = /* @__PURE__ */ ie(du, [["render", uu]]), fu = {
|
|
|
16333
16384
|
this.showDialog = !0;
|
|
16334
16385
|
}
|
|
16335
16386
|
}
|
|
16336
|
-
},
|
|
16337
|
-
function
|
|
16387
|
+
}, vu = { class: "text-body-1 pb-1" }, ku = { class: "text-body-1" };
|
|
16388
|
+
function _u(t, e, a, i, o, r) {
|
|
16338
16389
|
const l = P("v-icon"), c = P("VBtn"), s = P("v-card-title"), d = P("v-card-text"), m = P("v-card-actions"), p = P("v-card"), f = P("v-dialog");
|
|
16339
16390
|
return k(), W(f, {
|
|
16340
16391
|
modelValue: o.showDialog,
|
|
@@ -16373,8 +16424,8 @@ function wu(t, e, a, i, o, r) {
|
|
|
16373
16424
|
}),
|
|
16374
16425
|
b(d, { class: "py-4 text-center" }, {
|
|
16375
16426
|
default: x(() => [
|
|
16376
|
-
n("p",
|
|
16377
|
-
n("p",
|
|
16427
|
+
n("p", vu, y(a.tips), 1),
|
|
16428
|
+
n("p", ku, y(t.$t("tips.doYouWantToContinue")), 1)
|
|
16378
16429
|
]),
|
|
16379
16430
|
_: 1
|
|
16380
16431
|
}),
|
|
@@ -16414,10 +16465,10 @@ function wu(t, e, a, i, o, r) {
|
|
|
16414
16465
|
_: 1
|
|
16415
16466
|
}, 8, ["modelValue"]);
|
|
16416
16467
|
}
|
|
16417
|
-
const
|
|
16418
|
-
const
|
|
16468
|
+
const Lu = /* @__PURE__ */ ie(xu, [["render", _u]]);
|
|
16469
|
+
const zu = {
|
|
16419
16470
|
name: "IdmMarker",
|
|
16420
|
-
components: { IdmDrawMarker: qp, IdmImportMarker:
|
|
16471
|
+
components: { IdmDrawMarker: qp, IdmImportMarker: uu, IdmGroupDialog: wu, DeleteDialog: Lu },
|
|
16421
16472
|
props: {
|
|
16422
16473
|
simple: {
|
|
16423
16474
|
type: Boolean,
|
|
@@ -16628,7 +16679,7 @@ const vu = {
|
|
|
16628
16679
|
const i = e.features || (e.type === "Feature" ? [e] : []);
|
|
16629
16680
|
if (i.some((c) => {
|
|
16630
16681
|
var s, d;
|
|
16631
|
-
return (((s = c.geometry) == null ? void 0 : s.type) === "Point" || ((d = c.geometry) == null ? void 0 : d.type) === "MultiPoint") && c.properties.
|
|
16682
|
+
return (((s = c.geometry) == null ? void 0 : s.type) === "Point" || ((d = c.geometry) == null ? void 0 : d.type) === "MultiPoint") && c.properties.shape === "point";
|
|
16632
16683
|
})) {
|
|
16633
16684
|
const c = [];
|
|
16634
16685
|
i.forEach((s) => {
|
|
@@ -16638,26 +16689,26 @@ const vu = {
|
|
|
16638
16689
|
const [g, _] = s.geometry.coordinates, T = `<div style="font-size:12px;line-height:1.5;">
|
|
16639
16690
|
<div style="font-weight:600;">${m}</div>
|
|
16640
16691
|
<div>${j.lat2pretty(_, 4).pretty}, ${j.lng2pretty(g, 4).pretty}</div>
|
|
16641
|
-
</div>`, v = new
|
|
16692
|
+
</div>`, v = new ye.Popup({
|
|
16642
16693
|
offset: 40,
|
|
16643
16694
|
closeButton: !1,
|
|
16644
16695
|
closeOnClick: !1,
|
|
16645
16696
|
anchor: "bottom",
|
|
16646
16697
|
className: "marker-popup-dark"
|
|
16647
|
-
}).setHTML(T), M = new
|
|
16698
|
+
}).setHTML(T), M = new ye.Marker({ color: p }).setLngLat([g, _]).addTo(this.map), L = M.getElement();
|
|
16648
16699
|
L.addEventListener("mouseenter", () => v.setLngLat([g, _]).addTo(this.map)), L.addEventListener("mouseleave", () => v.remove()), c.push(M);
|
|
16649
16700
|
} else
|
|
16650
16701
|
d === "MultiPoint" && s.geometry.coordinates.forEach(([g, _]) => {
|
|
16651
16702
|
const T = `<div style="font-size:12px;line-height:1.5;">
|
|
16652
16703
|
<div style="font-weight:600;">${m}</div>
|
|
16653
16704
|
<div>${j.lat2pretty(_, 4).pretty}, ${j.lng2pretty(g, 4).pretty}</div>
|
|
16654
|
-
</div>`, v = new
|
|
16705
|
+
</div>`, v = new ye.Popup({
|
|
16655
16706
|
offset: 40,
|
|
16656
16707
|
closeButton: !1,
|
|
16657
16708
|
closeOnClick: !1,
|
|
16658
16709
|
anchor: "bottom",
|
|
16659
16710
|
className: "marker-popup-dark"
|
|
16660
|
-
}).setHTML(T), M = new
|
|
16711
|
+
}).setHTML(T), M = new ye.Marker({ color: p }).setLngLat([g, _]).addTo(this.map), L = M.getElement();
|
|
16661
16712
|
L.addEventListener("mouseenter", () => v.setLngLat([g, _]).addTo(this.map)), L.addEventListener("mouseleave", () => v.remove()), c.push(M);
|
|
16662
16713
|
});
|
|
16663
16714
|
}), this.layerMarkers[t.id] = c;
|
|
@@ -16785,34 +16836,34 @@ const vu = {
|
|
|
16785
16836
|
});
|
|
16786
16837
|
}
|
|
16787
16838
|
}
|
|
16788
|
-
},
|
|
16839
|
+
}, Cu = { class: "idm-gl4-marker" }, Mu = { class: "w-100 px-4 d-flex flex-column justify-start align-start" }, Pu = { class: "w-100 header-box d-flex justify-space-between align-center pr-4" }, Su = { class: "d-flex justify-start align-center ga-3" }, Tu = { class: "text-h5 font-weight-medium" }, Ru = { class: "search-box w-100 mb-3" }, Du = {
|
|
16789
16840
|
class: "multi-color-icon",
|
|
16790
16841
|
style: { height: "20px", width: "20px" },
|
|
16791
16842
|
"aria-hidden": "true"
|
|
16792
|
-
},
|
|
16843
|
+
}, Iu = {
|
|
16793
16844
|
key: 0,
|
|
16794
16845
|
class: "w-100 d-flex justify-space-between align-center ga-4"
|
|
16795
|
-
},
|
|
16846
|
+
}, Au = {
|
|
16796
16847
|
key: 0,
|
|
16797
16848
|
class: "w-100 d-flex justify-center align-center",
|
|
16798
16849
|
style: { height: "200px" }
|
|
16799
|
-
},
|
|
16850
|
+
}, Gu = {
|
|
16800
16851
|
key: 1,
|
|
16801
16852
|
class: "w-100 d-flex justify-center align-center"
|
|
16802
|
-
},
|
|
16853
|
+
}, Fu = { class: "text-body-1" }, Nu = {
|
|
16803
16854
|
key: 2,
|
|
16804
16855
|
class: "list-box w-100 flex-1-1-0 px-4 pb-2 scroll overflow-y-auto"
|
|
16805
|
-
},
|
|
16856
|
+
}, Wu = { class: "group-label text-body-1 d-flex justify-space-between align-center py-4" }, Eu = { class: "d-flex justify-start align-center pl-2 cursor-pointer" }, Bu = ["onClick"], Zu = { key: 0 }, Ou = {
|
|
16806
16857
|
key: 0,
|
|
16807
16858
|
class: "layer-list flex-1-1-0 overflow-y-hidden pb-2"
|
|
16808
|
-
},
|
|
16859
|
+
}, Vu = { class: "d-flex align-center justify-start ga-2" }, ju = { class: "font-weight-600 layer-name" }, Xu = {
|
|
16809
16860
|
key: 0,
|
|
16810
|
-
class: "layer-actions d-flex align-center justify-end ga-
|
|
16861
|
+
class: "layer-actions d-flex align-center justify-end ga-1"
|
|
16811
16862
|
};
|
|
16812
|
-
function
|
|
16863
|
+
function Hu(t, e, a, i, o, r) {
|
|
16813
16864
|
var D;
|
|
16814
16865
|
const l = P("VBtn"), c = P("VTooltip"), s = P("VSwitch"), d = P("v-icon"), m = P("v-text-field"), p = P("v-progress-circular"), f = P("v-chip"), w = P("VListItemTitle"), u = P("VListItem"), h = P("VList"), g = P("v-card"), _ = P("VMenu"), T = P("v-btn"), v = P("v-divider"), M = P("IdmDrawMarker"), L = P("IdmImportMarker"), z = P("IdmGroupDialog"), S = P("DeleteDialog");
|
|
16815
|
-
return k(), I("div",
|
|
16866
|
+
return k(), I("div", Cu, [
|
|
16816
16867
|
n("div", {
|
|
16817
16868
|
class: "menu-bar-box transition pa-1",
|
|
16818
16869
|
style: he({ top: a.top + a.paddingTop + 206 + "px", right: o.right + "px" })
|
|
@@ -16847,10 +16898,10 @@ function Ou(t, e, a, i, o, r) {
|
|
|
16847
16898
|
class: ge(["main-box transition d-flex flex-column justify-start align-start", o.toggle ? "right-bar" : ""]),
|
|
16848
16899
|
style: he(r.listStyle)
|
|
16849
16900
|
}, [
|
|
16850
|
-
n("div",
|
|
16851
|
-
n("div",
|
|
16852
|
-
n("div",
|
|
16853
|
-
n("div",
|
|
16901
|
+
n("div", Mu, [
|
|
16902
|
+
n("div", Pu, [
|
|
16903
|
+
n("div", Su, [
|
|
16904
|
+
n("div", Tu, y(t.$t("marker.markers")), 1),
|
|
16854
16905
|
b(s, {
|
|
16855
16906
|
modelValue: o.autoActive,
|
|
16856
16907
|
"onUpdate:modelValue": e[0] || (e[0] = (A) => o.autoActive = A),
|
|
@@ -16887,7 +16938,7 @@ function Ou(t, e, a, i, o, r) {
|
|
|
16887
16938
|
__: [8]
|
|
16888
16939
|
}, 8, ["onClick"])
|
|
16889
16940
|
]),
|
|
16890
|
-
n("div",
|
|
16941
|
+
n("div", Ru, [
|
|
16891
16942
|
b(m, {
|
|
16892
16943
|
modelValue: o.keyword,
|
|
16893
16944
|
"onUpdate:modelValue": e[1] || (e[1] = (A) => o.keyword = A),
|
|
@@ -16900,14 +16951,14 @@ function Ou(t, e, a, i, o, r) {
|
|
|
16900
16951
|
class: "input-btn-bg-1"
|
|
16901
16952
|
}, {
|
|
16902
16953
|
"prepend-inner": x(() => [
|
|
16903
|
-
(k(), I("svg",
|
|
16954
|
+
(k(), I("svg", Du, e[9] || (e[9] = [
|
|
16904
16955
|
n("use", { "xlink:href": "#icon-search" }, null, -1)
|
|
16905
16956
|
])))
|
|
16906
16957
|
]),
|
|
16907
16958
|
_: 1
|
|
16908
16959
|
}, 8, ["modelValue"])
|
|
16909
16960
|
]),
|
|
16910
|
-
a.simple ? N("", !0) : (k(), I("div",
|
|
16961
|
+
a.simple ? N("", !0) : (k(), I("div", Iu, [
|
|
16911
16962
|
b(l, {
|
|
16912
16963
|
class: "flex-1-1-0 text-none mb-3 text-body-1 font-weight-600",
|
|
16913
16964
|
color: "primary",
|
|
@@ -16940,24 +16991,24 @@ function Ou(t, e, a, i, o, r) {
|
|
|
16940
16991
|
}, 8, ["onClick"])
|
|
16941
16992
|
]))
|
|
16942
16993
|
]),
|
|
16943
|
-
o.loading ? (k(), I("div",
|
|
16994
|
+
o.loading ? (k(), I("div", Au, [
|
|
16944
16995
|
b(p, {
|
|
16945
16996
|
color: "primary",
|
|
16946
16997
|
indeterminate: "",
|
|
16947
16998
|
size: "36",
|
|
16948
16999
|
width: "4"
|
|
16949
17000
|
})
|
|
16950
|
-
])) : o.layerGroup.length === 0 ? (k(), I("div",
|
|
16951
|
-
n("div",
|
|
16952
|
-
])) : (k(), I("div",
|
|
17001
|
+
])) : o.layerGroup.length === 0 ? (k(), I("div", Gu, [
|
|
17002
|
+
n("div", Fu, y(t.$t("tips.noData")), 1)
|
|
17003
|
+
])) : (k(), I("div", Nu, [
|
|
16953
17004
|
(k(!0), I(Te, null, De(o.layerGroup, (A, E) => {
|
|
16954
17005
|
var X;
|
|
16955
17006
|
return k(), I("div", {
|
|
16956
17007
|
key: A.name,
|
|
16957
17008
|
class: ge(["btn-bg-1", A.index === o.layerGroup.length ? "rounded-b" : A.index === 1 ? "rounded-t" : ""])
|
|
16958
17009
|
}, [
|
|
16959
|
-
n("div",
|
|
16960
|
-
n("div",
|
|
17010
|
+
n("div", Wu, [
|
|
17011
|
+
n("div", Eu, [
|
|
16961
17012
|
A.show ? (k(), W(d, {
|
|
16962
17013
|
key: 0,
|
|
16963
17014
|
icon: "mdi-chevron-down",
|
|
@@ -16993,9 +17044,9 @@ function Ou(t, e, a, i, o, r) {
|
|
|
16993
17044
|
n("div", {
|
|
16994
17045
|
class: "",
|
|
16995
17046
|
onClick: (O) => A.show = !A.show
|
|
16996
|
-
}, y(A.name), 9,
|
|
17047
|
+
}, y(A.name), 9, Bu)
|
|
16997
17048
|
]),
|
|
16998
|
-
A.name !== "Custom Layers" && !a.simple ? (k(), I("div",
|
|
17049
|
+
A.name !== "Custom Layers" && !a.simple ? (k(), I("div", Zu, [
|
|
16999
17050
|
b(T, {
|
|
17000
17051
|
icon: "",
|
|
17001
17052
|
density: "compact",
|
|
@@ -17101,7 +17152,7 @@ function Ou(t, e, a, i, o, r) {
|
|
|
17101
17152
|
}, 1024)
|
|
17102
17153
|
])) : N("", !0)
|
|
17103
17154
|
]),
|
|
17104
|
-
A.show ? (k(), I("div",
|
|
17155
|
+
A.show ? (k(), I("div", Ou, [
|
|
17105
17156
|
(k(!0), I(Te, null, De((X = A.layers) == null ? void 0 : X.filter((O) => {
|
|
17106
17157
|
var q;
|
|
17107
17158
|
return ((q = O.name) == null ? void 0 : q.indexOf(o.keyword)) > -1;
|
|
@@ -17109,12 +17160,12 @@ function Ou(t, e, a, i, o, r) {
|
|
|
17109
17160
|
var q;
|
|
17110
17161
|
return k(), I("div", {
|
|
17111
17162
|
key: O.id,
|
|
17112
|
-
class: ge(["layer-item py-
|
|
17163
|
+
class: ge(["layer-item py-3 px-2 mx-2 rounded cursor-pointer d-flex align-center justify-space-between ga-4", ((q = o.currentLayer) == null ? void 0 : q.id) === O.id ? "active" : ""])
|
|
17113
17164
|
}, [
|
|
17114
|
-
n("div",
|
|
17115
|
-
n("span",
|
|
17165
|
+
n("div", Vu, [
|
|
17166
|
+
n("span", ju, y(O == null ? void 0 : O.name), 1)
|
|
17116
17167
|
]),
|
|
17117
|
-
a.simple ? N("", !0) : (k(), I("div",
|
|
17168
|
+
a.simple ? N("", !0) : (k(), I("div", Xu, [
|
|
17118
17169
|
b(l, {
|
|
17119
17170
|
class: "",
|
|
17120
17171
|
density: "compact",
|
|
@@ -17201,9 +17252,9 @@ function Ou(t, e, a, i, o, r) {
|
|
|
17201
17252
|
}, null, 8, ["title", "tips", "loading"])
|
|
17202
17253
|
]);
|
|
17203
17254
|
}
|
|
17204
|
-
const
|
|
17255
|
+
const Yu = /* @__PURE__ */ ie(zu, [["render", Hu]]);
|
|
17205
17256
|
var V = { 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() } };
|
|
17206
|
-
function
|
|
17257
|
+
function Uu(t = "soft") {
|
|
17207
17258
|
switch (V.session.__counterEpoch = (V.session.__counterEpoch || 0) + 1, t) {
|
|
17208
17259
|
case "auto": {
|
|
17209
17260
|
V.session.styleMap = /* @__PURE__ */ new Map(), V.session.nodeMap = /* @__PURE__ */ new Map();
|
|
@@ -17232,7 +17283,7 @@ function yo(t) {
|
|
|
17232
17283
|
let a = e[2].trim();
|
|
17233
17284
|
return a.startsWith("#") ? null : a;
|
|
17234
17285
|
}
|
|
17235
|
-
function
|
|
17286
|
+
function $u(t) {
|
|
17236
17287
|
if (!t || t === "none")
|
|
17237
17288
|
return "";
|
|
17238
17289
|
let e = t.replace(/translate[XY]?\([^)]*\)/g, "");
|
|
@@ -17253,7 +17304,7 @@ function qa(t) {
|
|
|
17253
17304
|
return t;
|
|
17254
17305
|
}
|
|
17255
17306
|
}
|
|
17256
|
-
function
|
|
17307
|
+
function Ju(t = "[snapDOM]", { ttlMs: e = 5 * 6e4, maxEntries: a = 12 } = {}) {
|
|
17257
17308
|
let i = /* @__PURE__ */ new Map(), o = 0;
|
|
17258
17309
|
function r(l, c, s) {
|
|
17259
17310
|
if (o >= a)
|
|
@@ -17269,11 +17320,11 @@ function Hu(t = "[snapDOM]", { ttlMs: e = 5 * 6e4, maxEntries: a = 12 } = {}) {
|
|
|
17269
17320
|
i.clear(), o = 0;
|
|
17270
17321
|
} };
|
|
17271
17322
|
}
|
|
17272
|
-
var Ai =
|
|
17273
|
-
function
|
|
17323
|
+
var Ai = Ju("[snapDOM]", { ttlMs: 3 * 6e4, maxEntries: 10 }), ao = /* @__PURE__ */ new Map(), Ha = /* @__PURE__ */ new Map();
|
|
17324
|
+
function Ku(t) {
|
|
17274
17325
|
return /^data:|^blob:|^about:blank$/i.test(t);
|
|
17275
17326
|
}
|
|
17276
|
-
function
|
|
17327
|
+
function qu(t, e) {
|
|
17277
17328
|
try {
|
|
17278
17329
|
let a = typeof location < "u" && location.href ? location.href : "http://localhost/", i = e.includes("{url}") ? e.split("{url}")[0] : e, o = new URL(i || ".", a), r = new URL(t, a);
|
|
17279
17330
|
if (r.origin === o.origin)
|
|
@@ -17285,8 +17336,8 @@ function Uu(t, e) {
|
|
|
17285
17336
|
}
|
|
17286
17337
|
return !1;
|
|
17287
17338
|
}
|
|
17288
|
-
function
|
|
17289
|
-
if (!e ||
|
|
17339
|
+
function Qu(t, e) {
|
|
17340
|
+
if (!e || Ku(t) || qu(t, e))
|
|
17290
17341
|
return !1;
|
|
17291
17342
|
try {
|
|
17292
17343
|
let a = typeof location < "u" && location.href ? location.href : "http://localhost/", i = new URL(t, a);
|
|
@@ -17295,7 +17346,7 @@ function $u(t, e) {
|
|
|
17295
17346
|
return !!e;
|
|
17296
17347
|
}
|
|
17297
17348
|
}
|
|
17298
|
-
function
|
|
17349
|
+
function eg(t, e) {
|
|
17299
17350
|
if (!e)
|
|
17300
17351
|
return t;
|
|
17301
17352
|
if (e.includes("{url}"))
|
|
@@ -17315,7 +17366,7 @@ function Gi(t) {
|
|
|
17315
17366
|
i.onload = () => e(String(i.result || "")), i.onerror = () => a(new Error("read_failed")), i.readAsDataURL(t);
|
|
17316
17367
|
});
|
|
17317
17368
|
}
|
|
17318
|
-
function
|
|
17369
|
+
function tg(t, e) {
|
|
17319
17370
|
return [e.as || "blob", e.timeout ?? 3e3, e.useProxy || "", e.errorTTL ?? 8e3, t].join("|");
|
|
17320
17371
|
}
|
|
17321
17372
|
async function Je(t, e = {}) {
|
|
@@ -17343,14 +17394,14 @@ async function Je(t, e = {}) {
|
|
|
17343
17394
|
}
|
|
17344
17395
|
if (/^about:blank$/i.test(t))
|
|
17345
17396
|
return a === "dataURL" ? { ok: !0, data: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR4nGMAAQAABQABDQottAAAAABJRU5ErkJggg==", status: 200, url: t, fromCache: !1, mime: "image/png" } : { ok: !0, data: a === "text" ? "" : new Blob([]), status: 200, url: t, fromCache: !1 };
|
|
17346
|
-
let s =
|
|
17397
|
+
let s = tg(t, { as: a, timeout: i, useProxy: o, errorTTL: r }), d = Ha.get(s);
|
|
17347
17398
|
if (d && d.until > Date.now())
|
|
17348
17399
|
return { ...d.result, fromCache: !0 };
|
|
17349
17400
|
d && Ha.delete(s);
|
|
17350
17401
|
let m = ao.get(s);
|
|
17351
17402
|
if (m)
|
|
17352
17403
|
return m;
|
|
17353
|
-
let p =
|
|
17404
|
+
let p = Qu(t, o) ? eg(t, o) : t, f = e.credentials;
|
|
17354
17405
|
if (!f)
|
|
17355
17406
|
try {
|
|
17356
17407
|
let g = typeof location < "u" && location.href ? location.href : "http://localhost/", _ = new URL(t, g);
|
|
@@ -17404,8 +17455,8 @@ async function or(t, e = {}) {
|
|
|
17404
17455
|
return V.background.set(i, null), "none";
|
|
17405
17456
|
}
|
|
17406
17457
|
}
|
|
17407
|
-
var
|
|
17408
|
-
function
|
|
17458
|
+
var ag = /* @__PURE__ */ new Set(["meta", "script", "noscript", "title", "link", "template"]), bo = /* @__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"]);
|
|
17459
|
+
function og(t) {
|
|
17409
17460
|
if (t = String(t).toLowerCase(), bo.has(t)) {
|
|
17410
17461
|
let r = {};
|
|
17411
17462
|
return V.defaultStyle.set(t, r), r;
|
|
@@ -17425,15 +17476,15 @@ function Qu(t) {
|
|
|
17425
17476
|
}
|
|
17426
17477
|
return e.removeChild(a), V.defaultStyle.set(t, o), o;
|
|
17427
17478
|
}
|
|
17428
|
-
var
|
|
17479
|
+
var ig = /(?:^|-)(animation|transition)(?:-|$)/i, rg = /^(--|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, lg = /* @__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"]);
|
|
17429
17480
|
function ir(t) {
|
|
17430
17481
|
let e = String(t).toLowerCase();
|
|
17431
|
-
return !!(
|
|
17482
|
+
return !!(lg.has(e) || rg.test(e) || ig.test(e));
|
|
17432
17483
|
}
|
|
17433
17484
|
function ro(t, e) {
|
|
17434
17485
|
if (e = String(e || "").toLowerCase(), bo.has(e))
|
|
17435
17486
|
return "";
|
|
17436
|
-
let a = [], i =
|
|
17487
|
+
let a = [], i = og(e);
|
|
17437
17488
|
for (let [o, r] of Object.entries(t)) {
|
|
17438
17489
|
if (ir(o))
|
|
17439
17490
|
continue;
|
|
@@ -17442,11 +17493,11 @@ function ro(t, e) {
|
|
|
17442
17493
|
}
|
|
17443
17494
|
return a.sort(), a.join(";");
|
|
17444
17495
|
}
|
|
17445
|
-
function
|
|
17496
|
+
function ng(t) {
|
|
17446
17497
|
let e = /* @__PURE__ */ new Set();
|
|
17447
17498
|
return t.nodeType !== Node.ELEMENT_NODE && t.nodeType !== Node.DOCUMENT_FRAGMENT_NODE ? [] : (t.tagName && e.add(t.tagName.toLowerCase()), typeof t.querySelectorAll == "function" && t.querySelectorAll("*").forEach((a) => e.add(a.tagName.toLowerCase())), Array.from(e));
|
|
17448
17499
|
}
|
|
17449
|
-
function
|
|
17500
|
+
function sg(t) {
|
|
17450
17501
|
let e = /* @__PURE__ */ new Map();
|
|
17451
17502
|
for (let i of t) {
|
|
17452
17503
|
let o = V.defaultStyle.get(i);
|
|
@@ -17461,7 +17512,7 @@ function ig(t) {
|
|
|
17461
17512
|
`;
|
|
17462
17513
|
return a;
|
|
17463
17514
|
}
|
|
17464
|
-
function
|
|
17515
|
+
function cg(t) {
|
|
17465
17516
|
let e = Array.from(new Set(t.values())).filter(Boolean).sort(), a = /* @__PURE__ */ new Map(), i = 1;
|
|
17466
17517
|
for (let o of e)
|
|
17467
17518
|
a.set(o, `c${i++}`);
|
|
@@ -17491,31 +17542,31 @@ function lr(t) {
|
|
|
17491
17542
|
}
|
|
17492
17543
|
return e.push(t.slice(i).trim()), e;
|
|
17493
17544
|
}
|
|
17494
|
-
var
|
|
17495
|
-
function
|
|
17545
|
+
var mg = [/font\s*awesome/i, /material\s*icons/i, /ionicons/i, /glyphicons/i, /feather/i, /bootstrap\s*icons/i, /remix\s*icons/i, /heroicons/i, /layui/i, /lucide/i], rt = Object.assign({ materialIconsFilled: "https://fonts.gstatic.com/s/materialicons/v48/flUhRq6tzZclQEJ-Vdg-IuiaDsNcIhQ8tQ.woff2", materialIconsOutlined: "https://fonts.gstatic.com/s/materialiconsoutlined/v110/gok-H7zzDkdnRel8-DQ6KAXJ69wP1tGnf4ZGhUcel5euIg.woff2", materialIconsRound: "https://fonts.gstatic.com/s/materialiconsround/v109/LDItaoyNOAY6Uewc665JcIzCKsKc_M9flwmPq_HTTw.woff2", materialIconsSharp: "https://fonts.gstatic.com/s/materialiconssharp/v110/oPWQ_lt5nv4pWNJpghLP75WiFR4kLh3kvmvRImcycg.woff2" }, typeof window < "u" && window.__SNAPDOM_ICON_FONTS__ || {}), lo = [];
|
|
17546
|
+
function dg(t) {
|
|
17496
17547
|
let e = Array.isArray(t) ? t : [t];
|
|
17497
17548
|
for (let a of e)
|
|
17498
17549
|
a instanceof RegExp ? lo.push(a) : typeof a == "string" ? lo.push(new RegExp(a, "i")) : console.warn("[snapdom] Ignored invalid iconFont value:", a);
|
|
17499
17550
|
}
|
|
17500
17551
|
function Ke(t) {
|
|
17501
|
-
let e = typeof t == "string" ? t : "", a = [...
|
|
17552
|
+
let e = typeof t == "string" ? t : "", a = [...mg, ...lo];
|
|
17502
17553
|
for (let i of a)
|
|
17503
17554
|
if (i instanceof RegExp && i.test(e))
|
|
17504
17555
|
return !0;
|
|
17505
17556
|
return !!(/icon/i.test(e) || /glyph/i.test(e) || /symbols/i.test(e) || /feather/i.test(e) || /fontawesome/i.test(e));
|
|
17506
17557
|
}
|
|
17507
|
-
function
|
|
17558
|
+
function hg(t = "") {
|
|
17508
17559
|
let e = String(t).toLowerCase();
|
|
17509
17560
|
return /\bmaterial\s*icons\b/.test(e) || /\bmaterial\s*symbols\b/.test(e);
|
|
17510
17561
|
}
|
|
17511
17562
|
var Ni = /* @__PURE__ */ new Map();
|
|
17512
|
-
function
|
|
17563
|
+
function pg(t = "") {
|
|
17513
17564
|
let e = /* @__PURE__ */ Object.create(null), a = String(t || ""), i = /['"]?\s*([A-Za-z]{3,4})\s*['"]?\s*([+-]?\d+(?:\.\d+)?)\s*/g, o;
|
|
17514
17565
|
for (; o = i.exec(a); )
|
|
17515
17566
|
e[o[1].toUpperCase()] = Number(o[2]);
|
|
17516
17567
|
return e;
|
|
17517
17568
|
}
|
|
17518
|
-
async function
|
|
17569
|
+
async function ug(t, e, a) {
|
|
17519
17570
|
let i = String(t || ""), o = i.toLowerCase(), r = String(e || "").toLowerCase();
|
|
17520
17571
|
if (/\bmaterial\s*icons\b/.test(o) && !/\bsymbols\b/.test(o))
|
|
17521
17572
|
return { familyForMeasure: i, familyForCanvas: i };
|
|
@@ -17536,13 +17587,13 @@ async function mg(t, e, a) {
|
|
|
17536
17587
|
let m = `"${d.alias}"`;
|
|
17537
17588
|
return { familyForMeasure: m, familyForCanvas: m };
|
|
17538
17589
|
}
|
|
17539
|
-
async function
|
|
17590
|
+
async function gg(t = "Material Icons", e = 24) {
|
|
17540
17591
|
try {
|
|
17541
17592
|
await Promise.all([document.fonts.load(`400 ${e}px "${String(t).replace(/["']/g, "")}"`), document.fonts.ready]);
|
|
17542
17593
|
} catch {
|
|
17543
17594
|
}
|
|
17544
17595
|
}
|
|
17545
|
-
function
|
|
17596
|
+
function fg(t) {
|
|
17546
17597
|
var o, r;
|
|
17547
17598
|
let e = ((o = t.getPropertyValue("-webkit-text-fill-color")) == null ? void 0 : o.trim()) || "", a = /^transparent$/i.test(e) || /rgba?\(\s*0\s*,\s*0\s*,\s*0\s*,\s*0\s*\)/i.test(e);
|
|
17548
17599
|
if (e && !a && e.toLowerCase() !== "currentcolor")
|
|
@@ -17550,9 +17601,9 @@ function hg(t) {
|
|
|
17550
17601
|
let i = (r = t.color) == null ? void 0 : r.trim();
|
|
17551
17602
|
return i && i !== "inherit" ? i : "#000";
|
|
17552
17603
|
}
|
|
17553
|
-
async function
|
|
17554
|
-
let c = String(e || "").replace(/^['"]+|['"]+$/g, ""), s = window.devicePixelRatio || 1, d =
|
|
17555
|
-
await
|
|
17604
|
+
async function yg(t, { family: e = "Material Icons", weight: a = "normal", fontSize: i = 32, color: o = "#000", variation: r = "", className: l = "" } = {}) {
|
|
17605
|
+
let c = String(e || "").replace(/^['"]+|['"]+$/g, ""), s = window.devicePixelRatio || 1, d = pg(r), { familyForMeasure: m, familyForCanvas: p } = await ug(c, l, d);
|
|
17606
|
+
await gg(p.replace(/^["']+|["']+$/g, ""), i);
|
|
17556
17607
|
let f = document.createElement("span");
|
|
17557
17608
|
f.textContent = t, f.style.position = "absolute", f.style.visibility = "hidden", f.style.left = "-99999px", f.style.whiteSpace = "nowrap", f.style.fontFamily = m, f.style.fontWeight = String(a || "normal"), f.style.fontSize = `${i}px`, f.style.lineHeight = "1", f.style.margin = "0", f.style.padding = "0", f.style.fontFeatureSettings = "'liga' 1", f.style.fontVariantLigatures = "normal", f.style.color = o, document.body.appendChild(f);
|
|
17558
17609
|
let w = f.getBoundingClientRect(), u = Math.max(1, Math.ceil(w.width)), h = Math.max(1, Math.ceil(w.height));
|
|
@@ -17567,7 +17618,7 @@ async function pg(t, { family: e = "Material Icons", weight: a = "normal", fontS
|
|
|
17567
17618
|
}
|
|
17568
17619
|
return _.fillText(t, 0, 0), { dataUrl: g.toDataURL(), width: u, height: h };
|
|
17569
17620
|
}
|
|
17570
|
-
async function
|
|
17621
|
+
async function bg(t, e) {
|
|
17571
17622
|
if (!(t instanceof Element))
|
|
17572
17623
|
return 0;
|
|
17573
17624
|
let a = '.material-icons, [class*="material-symbols"]', i = Array.from(t.querySelectorAll(a)).filter((l) => l && l.textContent && l.textContent.trim());
|
|
@@ -17578,12 +17629,12 @@ async function ug(t, e) {
|
|
|
17578
17629
|
let c = i[l], s = o[l] || null;
|
|
17579
17630
|
try {
|
|
17580
17631
|
let d = getComputedStyle(s || c), m = d.fontFamily || "Material Icons";
|
|
17581
|
-
if (!
|
|
17632
|
+
if (!hg(m))
|
|
17582
17633
|
continue;
|
|
17583
17634
|
let p = (s || c).textContent.trim();
|
|
17584
17635
|
if (!p)
|
|
17585
17636
|
continue;
|
|
17586
|
-
let f = parseInt(d.fontSize, 10) || 24, w = d.fontWeight && d.fontWeight !== "normal" ? d.fontWeight : "normal", u =
|
|
17637
|
+
let f = parseInt(d.fontSize, 10) || 24, w = d.fontWeight && d.fontWeight !== "normal" ? d.fontWeight : "normal", u = fg(d), h = d.fontVariationSettings && d.fontVariationSettings !== "normal" ? d.fontVariationSettings : "", g = (s || c).className || "", { dataUrl: _, width: T, height: v } = await yg(p, { family: m, weight: w, fontSize: f, color: u, variation: h, className: g });
|
|
17587
17638
|
c.textContent = "";
|
|
17588
17639
|
let M = c.ownerDocument.createElement("img");
|
|
17589
17640
|
M.src = _, M.alt = p, M.style.height = `${f}px`, M.style.width = `${Math.max(1, Math.round(T / v * f))}px`, M.style.objectFit = "contain", M.style.verticalAlign = getComputedStyle(c).verticalAlign || "baseline", c.appendChild(M), r++;
|
|
@@ -17592,7 +17643,7 @@ async function ug(t, e) {
|
|
|
17592
17643
|
}
|
|
17593
17644
|
return r;
|
|
17594
17645
|
}
|
|
17595
|
-
async function
|
|
17646
|
+
async function wg(t, e, a, i = 32, o = "#000") {
|
|
17596
17647
|
e = e.replace(/^['"]+|['"]+$/g, "");
|
|
17597
17648
|
let r = window.devicePixelRatio || 1;
|
|
17598
17649
|
try {
|
|
@@ -17608,13 +17659,13 @@ async function gg(t, e, a, i = 32, o = "#000") {
|
|
|
17608
17659
|
let p = m.getContext("2d");
|
|
17609
17660
|
return p.scale(r, r), p.font = a ? `${a} ${i}px "${e}"` : `${i}px "${e}"`, p.textAlign = "left", p.textBaseline = "top", p.fillStyle = o, p.fillText(t, 0, 0), { dataUrl: m.toDataURL(), width: s, height: d };
|
|
17610
17661
|
}
|
|
17611
|
-
var
|
|
17662
|
+
var xg = /* @__PURE__ */ new Set(["serif", "sans-serif", "monospace", "cursive", "fantasy", "system-ui", "emoji", "math", "fangsong", "ui-serif", "ui-sans-serif", "ui-monospace", "ui-rounded"]);
|
|
17612
17663
|
function to(t) {
|
|
17613
17664
|
if (!t)
|
|
17614
17665
|
return "";
|
|
17615
17666
|
for (let e of t.split(",")) {
|
|
17616
17667
|
let a = e.trim().replace(/^['"]+|['"]+$/g, "");
|
|
17617
|
-
if (a && !
|
|
17668
|
+
if (a && !xg.has(a.toLowerCase()))
|
|
17618
17669
|
return a;
|
|
17619
17670
|
}
|
|
17620
17671
|
return "";
|
|
@@ -17632,11 +17683,11 @@ function $a(t) {
|
|
|
17632
17683
|
let e = String(t ?? "normal").trim().toLowerCase();
|
|
17633
17684
|
return e.startsWith("italic") ? "italic" : e.startsWith("oblique") ? "oblique" : "normal";
|
|
17634
17685
|
}
|
|
17635
|
-
function
|
|
17686
|
+
function vg(t) {
|
|
17636
17687
|
let e = String(t ?? "100%").match(/(\d+(?:\.\d+)?)\s*%/);
|
|
17637
17688
|
return e ? Math.max(50, Math.min(200, parseFloat(e[1]))) : 100;
|
|
17638
17689
|
}
|
|
17639
|
-
function
|
|
17690
|
+
function kg(t) {
|
|
17640
17691
|
let e = String(t || "400").trim(), a = e.match(/^(\d{2,3})\s+(\d{2,3})$/);
|
|
17641
17692
|
if (a) {
|
|
17642
17693
|
let o = Ua(a[1]), r = Ua(a[2]);
|
|
@@ -17645,11 +17696,11 @@ function bg(t) {
|
|
|
17645
17696
|
let i = Ua(e);
|
|
17646
17697
|
return { min: i, max: i };
|
|
17647
17698
|
}
|
|
17648
|
-
function
|
|
17699
|
+
function _g(t) {
|
|
17649
17700
|
let e = String(t || "normal").trim().toLowerCase();
|
|
17650
17701
|
return e === "italic" ? { kind: "italic" } : e.startsWith("oblique") ? { kind: "oblique" } : { kind: "normal" };
|
|
17651
17702
|
}
|
|
17652
|
-
function
|
|
17703
|
+
function Lg(t) {
|
|
17653
17704
|
let e = String(t || "100%").trim(), a = e.match(/(\d+(?:\.\d+)?)\s*%\s+(\d+(?:\.\d+)?)\s*%/);
|
|
17654
17705
|
if (a) {
|
|
17655
17706
|
let r = parseFloat(a[1]), l = parseFloat(a[2]);
|
|
@@ -17658,7 +17709,7 @@ function xg(t) {
|
|
|
17658
17709
|
let i = e.match(/(\d+(?:\.\d+)?)\s*%/), o = i ? parseFloat(i[1]) : 100;
|
|
17659
17710
|
return { min: o, max: o };
|
|
17660
17711
|
}
|
|
17661
|
-
function
|
|
17712
|
+
function zg(t, e) {
|
|
17662
17713
|
if (!t)
|
|
17663
17714
|
return !1;
|
|
17664
17715
|
try {
|
|
@@ -17681,7 +17732,7 @@ function vg(t, e) {
|
|
|
17681
17732
|
return !1;
|
|
17682
17733
|
}
|
|
17683
17734
|
}
|
|
17684
|
-
function
|
|
17735
|
+
function Cg(t) {
|
|
17685
17736
|
var a;
|
|
17686
17737
|
let e = /* @__PURE__ */ new Set();
|
|
17687
17738
|
for (let i of t || []) {
|
|
@@ -17704,7 +17755,7 @@ function Wi(t, e) {
|
|
|
17704
17755
|
});
|
|
17705
17756
|
}
|
|
17706
17757
|
var no = /@import\s+(?:url\(\s*(['"]?)([^)"']+)\1\s*\)|(['"])([^"']+)\3)([^;]*);/g, Qa = 4;
|
|
17707
|
-
async function
|
|
17758
|
+
async function Mg(t, e, a) {
|
|
17708
17759
|
if (!t)
|
|
17709
17760
|
return t;
|
|
17710
17761
|
let i = /* @__PURE__ */ new Set();
|
|
@@ -17743,7 +17794,7 @@ ${h}
|
|
|
17743
17794
|
let l = Wi(t, e || location.href);
|
|
17744
17795
|
return l = await r(l, e || location.href, 0), l;
|
|
17745
17796
|
}
|
|
17746
|
-
var nr = /url\((["']?)([^"')]+)\1\)/g,
|
|
17797
|
+
var nr = /url\((["']?)([^"')]+)\1\)/g, Pg = /@font-face[^{}]*\{[^}]*\}/g;
|
|
17747
17798
|
function sr(t) {
|
|
17748
17799
|
if (!t)
|
|
17749
17800
|
return [];
|
|
@@ -17826,7 +17877,7 @@ async function mr(t, e, a = "") {
|
|
|
17826
17877
|
}
|
|
17827
17878
|
return i;
|
|
17828
17879
|
}
|
|
17829
|
-
function
|
|
17880
|
+
function Sg(t) {
|
|
17830
17881
|
if (!t.length)
|
|
17831
17882
|
return null;
|
|
17832
17883
|
let e = (l, c) => t.some(([s, d]) => !(d < l || s > c)), a = e(0, 255) || e(305, 305), i = e(256, 591) || e(7680, 7935), o = e(880, 1023), r = e(1024, 1279);
|
|
@@ -17845,14 +17896,14 @@ function Ei(t = {}) {
|
|
|
17845
17896
|
} catch {
|
|
17846
17897
|
}
|
|
17847
17898
|
if (i.size) {
|
|
17848
|
-
let l =
|
|
17899
|
+
let l = Sg(r);
|
|
17849
17900
|
if (l && i.has(l))
|
|
17850
17901
|
return !0;
|
|
17851
17902
|
}
|
|
17852
17903
|
return !1;
|
|
17853
17904
|
};
|
|
17854
17905
|
}
|
|
17855
|
-
function
|
|
17906
|
+
function Tg(t) {
|
|
17856
17907
|
var r, l, c, s, d, m;
|
|
17857
17908
|
if (!t)
|
|
17858
17909
|
return t;
|
|
@@ -17866,7 +17917,7 @@ function Cg(t) {
|
|
|
17866
17917
|
let o = 0;
|
|
17867
17918
|
return t.replace(e, () => i[o++] || "");
|
|
17868
17919
|
}
|
|
17869
|
-
function
|
|
17920
|
+
function Rg(t, e, a, i) {
|
|
17870
17921
|
let o = Array.from(t || []).sort().join("|"), r = e ? JSON.stringify({ families: (e.families || []).map((c) => String(c).toLowerCase()).sort(), domains: (e.domains || []).map((c) => String(c).toLowerCase()).sort(), subsets: (e.subsets || []).map((c) => String(c).toLowerCase()).sort() }) : "", l = (a || []).map((c) => `${(c.family || "").toLowerCase()}::${c.weight || "normal"}::${c.style || "normal"}::${c.src || ""}`).sort().join("|");
|
|
17871
17922
|
return `fonts-embed-css::req=${o}::ex=${r}::lf=${l}::px=${i || ""}`;
|
|
17872
17923
|
}
|
|
@@ -17921,7 +17972,7 @@ async function dr(t, e, a, i) {
|
|
|
17921
17972
|
}
|
|
17922
17973
|
}
|
|
17923
17974
|
}
|
|
17924
|
-
async function
|
|
17975
|
+
async function Dg({ required: t, usedCodepoints: e, exclude: a = void 0, localFonts: i = [], useProxy: o = "" } = {}) {
|
|
17925
17976
|
var h, g, _, T, v, M, L, z, S, D, A, E, X, O, q, ae, re, pe;
|
|
17926
17977
|
t instanceof Set || (t = /* @__PURE__ */ new Set()), e instanceof Set || (e = /* @__PURE__ */ new Set());
|
|
17927
17978
|
let r = /* @__PURE__ */ new Map();
|
|
@@ -17935,10 +17986,10 @@ async function Pg({ required: t, usedCodepoints: e, exclude: a = void 0, localFo
|
|
|
17935
17986
|
function l(G, J, K, oe) {
|
|
17936
17987
|
if (!r.has(G))
|
|
17937
17988
|
return !1;
|
|
17938
|
-
let Y = r.get(G), H =
|
|
17989
|
+
let Y = r.get(G), H = kg(K), ee = _g(J), F = Lg(oe), ne = H.min !== H.max, fe = H.min, ke = (me) => ee.kind === "normal" && me === "normal" || ee.kind !== "normal" && (me === "italic" || me === "oblique"), ze = !1;
|
|
17939
17990
|
for (let me of Y) {
|
|
17940
|
-
let
|
|
17941
|
-
if (
|
|
17991
|
+
let be = ne ? me.w >= H.min && me.w <= H.max : me.w === fe, _e = ke($a(me.s)), Re = me.st >= F.min && me.st <= F.max;
|
|
17992
|
+
if (be && _e && Re) {
|
|
17942
17993
|
ze = !0;
|
|
17943
17994
|
break;
|
|
17944
17995
|
}
|
|
@@ -17947,22 +17998,22 @@ async function Pg({ required: t, usedCodepoints: e, exclude: a = void 0, localFo
|
|
|
17947
17998
|
return !0;
|
|
17948
17999
|
if (!ne)
|
|
17949
18000
|
for (let me of Y) {
|
|
17950
|
-
let
|
|
17951
|
-
if (Math.abs(fe - me.w) <= 300 &&
|
|
18001
|
+
let be = ke($a(me.s)), _e = me.st >= F.min && me.st <= F.max;
|
|
18002
|
+
if (Math.abs(fe - me.w) <= 300 && be && _e)
|
|
17952
18003
|
return !0;
|
|
17953
18004
|
}
|
|
17954
18005
|
if (!ne && ee.kind === "normal" && Y.some((me) => $a(me.s) !== "normal"))
|
|
17955
18006
|
for (let me of Y) {
|
|
17956
|
-
let
|
|
17957
|
-
if (
|
|
18007
|
+
let be = Math.abs(fe - me.w) <= 300, _e = me.st >= F.min && me.st <= F.max;
|
|
18008
|
+
if (be && _e)
|
|
17958
18009
|
return !0;
|
|
17959
18010
|
}
|
|
17960
18011
|
return !1;
|
|
17961
18012
|
}
|
|
17962
|
-
let c = Ei(a), s =
|
|
18013
|
+
let c = Ei(a), s = Rg(t, a, i, o);
|
|
17963
18014
|
if ((h = V.resource) != null && h.has(s))
|
|
17964
18015
|
return V.resource.get(s);
|
|
17965
|
-
let d =
|
|
18016
|
+
let d = Cg(t), m = [], p = no;
|
|
17966
18017
|
for (let G of document.querySelectorAll("style")) {
|
|
17967
18018
|
let J = G.textContent || "";
|
|
17968
18019
|
for (let K of J.matchAll(p)) {
|
|
@@ -17986,7 +18037,7 @@ async function Pg({ required: t, usedCodepoints: e, exclude: a = void 0, localFo
|
|
|
17986
18037
|
K = new URL(G.href, location.href).origin === location.origin;
|
|
17987
18038
|
} catch {
|
|
17988
18039
|
}
|
|
17989
|
-
if (!K && !
|
|
18040
|
+
if (!K && !zg(G.href, d))
|
|
17990
18041
|
continue;
|
|
17991
18042
|
if (K) {
|
|
17992
18043
|
let Y = Array.from(document.styleSheets).find((H) => H.href === G.href);
|
|
@@ -17999,20 +18050,20 @@ async function Pg({ required: t, usedCodepoints: e, exclude: a = void 0, localFo
|
|
|
17999
18050
|
}
|
|
18000
18051
|
if (!J && (J = (await Je(G.href, { as: "text", useProxy: o })).data, Ke(G.href)))
|
|
18001
18052
|
continue;
|
|
18002
|
-
J = await
|
|
18053
|
+
J = await Mg(J, G.href, o);
|
|
18003
18054
|
let oe = "";
|
|
18004
|
-
for (let Y of J.match(
|
|
18055
|
+
for (let Y of J.match(Pg) || []) {
|
|
18005
18056
|
let H = (((g = Y.match(/font-family:\s*([^;]+);/i)) == null ? void 0 : g[1]) || "").trim(), ee = to(H);
|
|
18006
18057
|
if (!ee || Ke(ee))
|
|
18007
18058
|
continue;
|
|
18008
18059
|
let F = (((_ = Y.match(/font-weight:\s*([^;]+);/i)) == null ? void 0 : _[1]) || "400").trim(), ne = (((T = Y.match(/font-style:\s*([^;]+);/i)) == null ? void 0 : T[1]) || "normal").trim(), fe = (((v = Y.match(/font-stretch:\s*([^;]+);/i)) == null ? void 0 : v[1]) || "100%").trim(), ke = (((M = Y.match(/unicode-range:\s*([^;]+);/i)) == null ? void 0 : M[1]) || "").trim(), ze = (((L = Y.match(/src\s*:\s*([^;}]+)[;}]/i)) == null ? void 0 : L[1]) || "").trim(), me = wo(ze, G.href);
|
|
18009
18060
|
if (!l(ee, ne, F, fe))
|
|
18010
18061
|
continue;
|
|
18011
|
-
let
|
|
18012
|
-
if (!cr(e,
|
|
18062
|
+
let be = sr(ke);
|
|
18063
|
+
if (!cr(e, be))
|
|
18013
18064
|
continue;
|
|
18014
18065
|
let _e = { family: ee, weightSpec: F, styleSpec: ne, stretchSpec: fe, unicodeRange: ke, srcRaw: ze, srcUrls: me, href: G.href };
|
|
18015
|
-
if (a && c(_e,
|
|
18066
|
+
if (a && c(_e, be))
|
|
18016
18067
|
continue;
|
|
18017
18068
|
let Re = /url\(/i.test(ze) ? await mr(Y, G.href, o) : Y;
|
|
18018
18069
|
oe += Re;
|
|
@@ -18082,9 +18133,9 @@ async function Pg({ required: t, usedCodepoints: e, exclude: a = void 0, localFo
|
|
|
18082
18133
|
}
|
|
18083
18134
|
f += `@font-face{font-family:'${J}';src:url(${ee});font-style:${oe};font-weight:${K};font-stretch:${Y};}`;
|
|
18084
18135
|
}
|
|
18085
|
-
return f && (f =
|
|
18136
|
+
return f && (f = Tg(f), (pe = V.resource) == null || pe.set(s, f)), f;
|
|
18086
18137
|
}
|
|
18087
|
-
function
|
|
18138
|
+
function Ig(t) {
|
|
18088
18139
|
let e = /* @__PURE__ */ new Set();
|
|
18089
18140
|
if (!t)
|
|
18090
18141
|
return e;
|
|
@@ -18092,7 +18143,7 @@ function Sg(t) {
|
|
|
18092
18143
|
let c = to(l.fontFamily);
|
|
18093
18144
|
if (!c)
|
|
18094
18145
|
return;
|
|
18095
|
-
let s = (d, m, p) => `${c}__${Ua(d)}__${$a(m)}__${
|
|
18146
|
+
let s = (d, m, p) => `${c}__${Ua(d)}__${$a(m)}__${vg(p)}`;
|
|
18096
18147
|
e.add(s(l.fontWeight, l.fontStyle, l.fontStretch));
|
|
18097
18148
|
};
|
|
18098
18149
|
i(getComputedStyle(t));
|
|
@@ -18109,7 +18160,7 @@ function Sg(t) {
|
|
|
18109
18160
|
}
|
|
18110
18161
|
return e;
|
|
18111
18162
|
}
|
|
18112
|
-
function
|
|
18163
|
+
function Ag(t) {
|
|
18113
18164
|
var o;
|
|
18114
18165
|
let e = /* @__PURE__ */ new Set(), a = (r) => {
|
|
18115
18166
|
if (r)
|
|
@@ -18141,7 +18192,7 @@ function Tg(t) {
|
|
|
18141
18192
|
}
|
|
18142
18193
|
return e;
|
|
18143
18194
|
}
|
|
18144
|
-
async function
|
|
18195
|
+
async function Gg(t, e = 2) {
|
|
18145
18196
|
try {
|
|
18146
18197
|
await document.fonts.ready;
|
|
18147
18198
|
} catch {
|
|
@@ -18161,7 +18212,7 @@ async function Rg(t, e = 2) {
|
|
|
18161
18212
|
for (let o = 0; o < Math.max(1, e); o++)
|
|
18162
18213
|
i(), await new Promise((r) => requestAnimationFrame(() => requestAnimationFrame(r)));
|
|
18163
18214
|
}
|
|
18164
|
-
async function
|
|
18215
|
+
async function Fg(t, e, a, i = {}) {
|
|
18165
18216
|
let o = [[t, e]], r = ["background-image", "mask", "mask-image", "-webkit-mask", "-webkit-mask-image", "mask-source", "mask-box-image-source", "mask-border-source", "-webkit-mask-box-image-source", "border-image", "border-image-source"], l = ["mask-position", "mask-size", "mask-repeat", "-webkit-mask-position", "-webkit-mask-size", "-webkit-mask-repeat", "mask-origin", "mask-clip", "-webkit-mask-origin", "-webkit-mask-clip", "-webkit-mask-position-x", "-webkit-mask-position-y"], c = ["background-position", "background-position-x", "background-position-y", "background-size", "background-repeat", "background-origin", "background-clip", "background-attachment", "background-blend-mode"], s = ["border-image-slice", "border-image-width", "border-image-outset", "border-image-repeat"];
|
|
18166
18217
|
for (; o.length; ) {
|
|
18167
18218
|
let [d, m] = o.shift(), p = a.get(d) || rr(d);
|
|
@@ -18220,7 +18271,7 @@ function hr(t) {
|
|
|
18220
18271
|
}
|
|
18221
18272
|
return typeof t == "function" ? t() : t;
|
|
18222
18273
|
}
|
|
18223
|
-
function
|
|
18274
|
+
function Ng(...t) {
|
|
18224
18275
|
let e = t.flat();
|
|
18225
18276
|
for (let a of e) {
|
|
18226
18277
|
let i = hr(a);
|
|
@@ -18241,7 +18292,7 @@ async function Qe(t, e, a) {
|
|
|
18241
18292
|
}
|
|
18242
18293
|
return i;
|
|
18243
18294
|
}
|
|
18244
|
-
async function
|
|
18295
|
+
async function Wg(t, e, a) {
|
|
18245
18296
|
let i = [], o = pr(e);
|
|
18246
18297
|
for (let r of o) {
|
|
18247
18298
|
let l = r && typeof r[t] == "function" ? r[t] : null;
|
|
@@ -18252,7 +18303,7 @@ async function Ag(t, e, a) {
|
|
|
18252
18303
|
}
|
|
18253
18304
|
return i;
|
|
18254
18305
|
}
|
|
18255
|
-
function
|
|
18306
|
+
function Eg(t) {
|
|
18256
18307
|
let e = [];
|
|
18257
18308
|
if (Array.isArray(t))
|
|
18258
18309
|
for (let a of t) {
|
|
@@ -18266,15 +18317,15 @@ function Gg(t) {
|
|
|
18266
18317
|
a && a.name && !e.some((i) => i.name === a.name) && e.push(a);
|
|
18267
18318
|
return Object.freeze(e);
|
|
18268
18319
|
}
|
|
18269
|
-
function
|
|
18270
|
-
return !t || t.plugins && !a || (t.plugins =
|
|
18320
|
+
function Bg(t, e, a = !1) {
|
|
18321
|
+
return !t || t.plugins && !a || (t.plugins = Eg(e)), t;
|
|
18271
18322
|
}
|
|
18272
18323
|
var Bi = /* @__PURE__ */ new WeakMap(), so = /* @__PURE__ */ new Map(), co = 0;
|
|
18273
18324
|
function Za() {
|
|
18274
18325
|
co++;
|
|
18275
18326
|
}
|
|
18276
18327
|
var Zi = !1;
|
|
18277
|
-
function
|
|
18328
|
+
function Zg(t = document.documentElement) {
|
|
18278
18329
|
var e, a;
|
|
18279
18330
|
if (!Zi) {
|
|
18280
18331
|
Zi = !0;
|
|
@@ -18294,7 +18345,7 @@ function Ng(t = document.documentElement) {
|
|
|
18294
18345
|
}
|
|
18295
18346
|
}
|
|
18296
18347
|
}
|
|
18297
|
-
function
|
|
18348
|
+
function Og(t, e = {}) {
|
|
18298
18349
|
let a = {}, i = t.getPropertyValue("visibility");
|
|
18299
18350
|
for (let r = 0; r < t.length; r++) {
|
|
18300
18351
|
let l = t[r], c = t.getPropertyValue(l);
|
|
@@ -18321,52 +18372,52 @@ function Wg(t, e = {}) {
|
|
|
18321
18372
|
return i === "hidden" && (a.opacity = "0"), a;
|
|
18322
18373
|
}
|
|
18323
18374
|
var Oi = /* @__PURE__ */ new WeakMap();
|
|
18324
|
-
function
|
|
18375
|
+
function Vg(t) {
|
|
18325
18376
|
let e = Oi.get(t);
|
|
18326
18377
|
return e || (e = Object.entries(t).sort((a, i) => a[0] < i[0] ? -1 : a[0] > i[0] ? 1 : 0).map(([a, i]) => `${a}:${i}`).join(";"), Oi.set(t, e), e);
|
|
18327
18378
|
}
|
|
18328
|
-
function
|
|
18379
|
+
function jg(t, e = null, a = {}) {
|
|
18329
18380
|
let i = Bi.get(t);
|
|
18330
18381
|
if (i && i.epoch === co)
|
|
18331
18382
|
return i.snapshot;
|
|
18332
|
-
let o = e || getComputedStyle(t), r =
|
|
18333
|
-
return
|
|
18383
|
+
let o = e || getComputedStyle(t), r = Og(o, a);
|
|
18384
|
+
return Jg(t, o, r), Bi.set(t, { epoch: co, snapshot: r }), r;
|
|
18334
18385
|
}
|
|
18335
|
-
function
|
|
18386
|
+
function Xg(t, e) {
|
|
18336
18387
|
return t && t.session && t.persist ? t : t && (t.styleMap || t.styleCache || t.nodeMap) ? { session: t, persist: { snapshotKeyCache: so, defaultStyle: V.defaultStyle, baseStyle: V.baseStyle, image: V.image, resource: V.resource, background: V.background, font: V.font }, options: e || {} } : { session: V.session, persist: { snapshotKeyCache: so, defaultStyle: V.defaultStyle, baseStyle: V.baseStyle, image: V.image, resource: V.resource, background: V.background, font: V.font }, options: t || e || {} };
|
|
18337
18388
|
}
|
|
18338
18389
|
async function st(t, e, a, i) {
|
|
18339
18390
|
var f, w, u;
|
|
18340
18391
|
if (t.tagName === "STYLE")
|
|
18341
18392
|
return;
|
|
18342
|
-
let o =
|
|
18343
|
-
if (r !== "disabled" &&
|
|
18393
|
+
let o = Xg(a, i), r = o.options && o.options.cache || "auto";
|
|
18394
|
+
if (r !== "disabled" && Zg(document.documentElement), r === "disabled" && !o.session.__bumpedForDisabled && (Za(), so.clear(), o.session.__bumpedForDisabled = !0), bo.has((f = t.tagName) == null ? void 0 : f.toLowerCase())) {
|
|
18344
18395
|
let h = (w = t.getAttribute) == null ? void 0 : w.call(t, "style");
|
|
18345
18396
|
h && e.setAttribute("style", h);
|
|
18346
18397
|
}
|
|
18347
18398
|
let { session: l, persist: c } = o;
|
|
18348
18399
|
l.styleCache.has(t) || l.styleCache.set(t, getComputedStyle(t));
|
|
18349
|
-
let s = l.styleCache.get(t), d =
|
|
18400
|
+
let s = l.styleCache.get(t), d = jg(t, s, o.options), m = Vg(d), p = c.snapshotKeyCache.get(m);
|
|
18350
18401
|
if (!p) {
|
|
18351
18402
|
let h = ((u = t.tagName) == null ? void 0 : u.toLowerCase()) || "div";
|
|
18352
18403
|
p = ro(d, h), c.snapshotKeyCache.set(m, p);
|
|
18353
18404
|
}
|
|
18354
18405
|
l.styleMap.set(e, p);
|
|
18355
18406
|
}
|
|
18356
|
-
function
|
|
18407
|
+
function Hg(t) {
|
|
18357
18408
|
return t instanceof HTMLImageElement || t instanceof HTMLCanvasElement || t instanceof HTMLVideoElement || t instanceof HTMLIFrameElement || t instanceof SVGElement || t instanceof HTMLObjectElement || t instanceof HTMLEmbedElement;
|
|
18358
18409
|
}
|
|
18359
|
-
function
|
|
18410
|
+
function Yg(t) {
|
|
18360
18411
|
return t.backgroundImage && t.backgroundImage !== "none" || t.backgroundColor && t.backgroundColor !== "rgba(0, 0, 0, 0)" && t.backgroundColor !== "transparent" || (parseFloat(t.borderTopWidth) || 0) > 0 || (parseFloat(t.borderBottomWidth) || 0) > 0 || (parseFloat(t.paddingTop) || 0) > 0 || (parseFloat(t.paddingBottom) || 0) > 0 ? !0 : (t.overflowBlock || t.overflowY || "visible") !== "visible";
|
|
18361
18412
|
}
|
|
18362
|
-
function
|
|
18413
|
+
function Ug(t) {
|
|
18363
18414
|
let e = t.parentElement;
|
|
18364
18415
|
if (!e)
|
|
18365
18416
|
return !1;
|
|
18366
18417
|
let a = getComputedStyle(e).display || "";
|
|
18367
18418
|
return a.includes("flex") || a.includes("grid");
|
|
18368
18419
|
}
|
|
18369
|
-
function
|
|
18420
|
+
function $g(t, e) {
|
|
18370
18421
|
if (t.textContent && /\S/.test(t.textContent))
|
|
18371
18422
|
return !0;
|
|
18372
18423
|
let a = t.firstElementChild, i = t.lastElementChild;
|
|
@@ -18378,26 +18429,26 @@ function Xg(t, e) {
|
|
|
18378
18429
|
let r = parseFloat(e.paddingTop) || 0, l = parseFloat(e.paddingBottom) || 0;
|
|
18379
18430
|
return o > r + l;
|
|
18380
18431
|
}
|
|
18381
|
-
function
|
|
18432
|
+
function Jg(t, e, a) {
|
|
18382
18433
|
if (t instanceof HTMLElement && t.style && t.style.height)
|
|
18383
18434
|
return;
|
|
18384
18435
|
let i = t.tagName && t.tagName.toLowerCase();
|
|
18385
18436
|
if (!i || i !== "div" && i !== "section" && i !== "article" && i !== "main" && i !== "aside" && i !== "header" && i !== "footer" && i !== "nav" && i !== "ol" && i !== "ul" && i !== "li")
|
|
18386
18437
|
return;
|
|
18387
18438
|
let o = e.display || "";
|
|
18388
|
-
if (o.includes("flex") || o.includes("grid") ||
|
|
18439
|
+
if (o.includes("flex") || o.includes("grid") || Hg(t))
|
|
18389
18440
|
return;
|
|
18390
18441
|
let r = e.position;
|
|
18391
|
-
if (r === "absolute" || r === "fixed" || r === "sticky" || e.transform !== "none" ||
|
|
18442
|
+
if (r === "absolute" || r === "fixed" || r === "sticky" || e.transform !== "none" || Yg(e) || Ug(t))
|
|
18392
18443
|
return;
|
|
18393
18444
|
let l = e.overflowX || e.overflow || "visible", c = e.overflowY || e.overflow || "visible";
|
|
18394
18445
|
if (l !== "visible" || c !== "visible")
|
|
18395
18446
|
return;
|
|
18396
18447
|
let s = e.clip;
|
|
18397
|
-
s && s !== "auto" && s !== "rect(auto, auto, auto, auto)" || e.visibility === "hidden" || e.opacity === "0" ||
|
|
18448
|
+
s && s !== "auto" && s !== "rect(auto, auto, auto, auto)" || e.visibility === "hidden" || e.opacity === "0" || $g(t, e) && (delete a.height, delete a["block-size"]);
|
|
18398
18449
|
}
|
|
18399
18450
|
var ur = ["fill", "stroke", "color", "background-color", "stop-color"], Vi = /* @__PURE__ */ new Map();
|
|
18400
|
-
function
|
|
18451
|
+
function Kg(t, e) {
|
|
18401
18452
|
let a = e + "::" + t.toLowerCase(), i = Vi.get(a);
|
|
18402
18453
|
if (i)
|
|
18403
18454
|
return i;
|
|
@@ -18408,7 +18459,7 @@ function Yg(t, e) {
|
|
|
18408
18459
|
s[d] = c.getPropertyValue(d) || "";
|
|
18409
18460
|
return l.remove(), Vi.set(a, s), s;
|
|
18410
18461
|
}
|
|
18411
|
-
function
|
|
18462
|
+
function qg(t, e) {
|
|
18412
18463
|
var r, l, c;
|
|
18413
18464
|
if (!(t instanceof Element) || !(e instanceof Element))
|
|
18414
18465
|
return;
|
|
@@ -18467,7 +18518,7 @@ function Ug(t, e) {
|
|
|
18467
18518
|
}
|
|
18468
18519
|
if (!o)
|
|
18469
18520
|
return;
|
|
18470
|
-
let s = t.namespaceURI || "html", d =
|
|
18521
|
+
let s = t.namespaceURI || "html", d = Kg(t.tagName, s);
|
|
18471
18522
|
for (let m of ur) {
|
|
18472
18523
|
let p = o.getPropertyValue(m) || "", f = d[m] || "";
|
|
18473
18524
|
if (p && p !== f)
|
|
@@ -18488,27 +18539,27 @@ function oo(t, e, a) {
|
|
|
18488
18539
|
r();
|
|
18489
18540
|
})));
|
|
18490
18541
|
}
|
|
18491
|
-
function
|
|
18542
|
+
function Qg(t) {
|
|
18492
18543
|
return t = t.trim(), !t || /:not\(\s*\[data-sd-slotted\]\s*\)\s*$/.test(t) ? t : `${t}:not([data-sd-slotted])`;
|
|
18493
18544
|
}
|
|
18494
|
-
function
|
|
18545
|
+
function e0(t, e, a = !0) {
|
|
18495
18546
|
return t.split(",").map((i) => i.trim()).filter(Boolean).map((i) => {
|
|
18496
18547
|
if (i.startsWith(":where(") || i.startsWith("@"))
|
|
18497
18548
|
return i;
|
|
18498
|
-
let o = a ?
|
|
18549
|
+
let o = a ? Qg(i) : i;
|
|
18499
18550
|
return `:where(${e} ${o})`;
|
|
18500
18551
|
}).join(", ");
|
|
18501
18552
|
}
|
|
18502
|
-
function
|
|
18553
|
+
function t0(t, e) {
|
|
18503
18554
|
return t ? (t = t.replace(/:host\(([^)]+)\)/g, (a, i) => `:where(${e}:is(${i.trim()}))`), t = t.replace(/:host\b/g, `:where(${e})`), t = t.replace(/:host-context\(([^)]+)\)/g, (a, i) => `:where(:where(${i.trim()}) ${e})`), t = t.replace(/::slotted\(([^)]+)\)/g, (a, i) => `:where(${e} ${i.trim()})`), t = t.replace(/(^|})(\s*)([^@}{]+){/g, (a, i, o, r) => {
|
|
18504
|
-
let l =
|
|
18555
|
+
let l = e0(r, e, !0);
|
|
18505
18556
|
return `${i}${o}${l}{`;
|
|
18506
18557
|
}), t) : "";
|
|
18507
18558
|
}
|
|
18508
|
-
function
|
|
18559
|
+
function a0(t) {
|
|
18509
18560
|
return t.shadowScopeSeq = (t.shadowScopeSeq || 0) + 1, `s${t.shadowScopeSeq}`;
|
|
18510
18561
|
}
|
|
18511
|
-
function
|
|
18562
|
+
function o0(t) {
|
|
18512
18563
|
let e = "";
|
|
18513
18564
|
try {
|
|
18514
18565
|
t.querySelectorAll("style").forEach((i) => {
|
|
@@ -18528,13 +18579,13 @@ function Qg(t) {
|
|
|
18528
18579
|
}
|
|
18529
18580
|
return e;
|
|
18530
18581
|
}
|
|
18531
|
-
function
|
|
18582
|
+
function i0(t, e, a) {
|
|
18532
18583
|
if (!e)
|
|
18533
18584
|
return;
|
|
18534
18585
|
let i = document.createElement("style");
|
|
18535
18586
|
i.setAttribute("data-sd", a), i.textContent = e, t.insertBefore(i, t.firstChild || null);
|
|
18536
18587
|
}
|
|
18537
|
-
function
|
|
18588
|
+
function r0(t, e) {
|
|
18538
18589
|
try {
|
|
18539
18590
|
let a = t.currentSrc || t.src || "";
|
|
18540
18591
|
if (!a)
|
|
@@ -18543,7 +18594,7 @@ function t0(t, e) {
|
|
|
18543
18594
|
} catch {
|
|
18544
18595
|
}
|
|
18545
18596
|
}
|
|
18546
|
-
function
|
|
18597
|
+
function l0(t) {
|
|
18547
18598
|
let e = /* @__PURE__ */ new Set();
|
|
18548
18599
|
if (!t)
|
|
18549
18600
|
return e;
|
|
@@ -18552,7 +18603,7 @@ function a0(t) {
|
|
|
18552
18603
|
e.add(i[1]);
|
|
18553
18604
|
return e;
|
|
18554
18605
|
}
|
|
18555
|
-
function
|
|
18606
|
+
function n0(t, e) {
|
|
18556
18607
|
try {
|
|
18557
18608
|
let a = getComputedStyle(t).getPropertyValue(e).trim();
|
|
18558
18609
|
if (a)
|
|
@@ -18567,19 +18618,19 @@ function o0(t, e) {
|
|
|
18567
18618
|
}
|
|
18568
18619
|
return "";
|
|
18569
18620
|
}
|
|
18570
|
-
function
|
|
18621
|
+
function s0(t, e, a) {
|
|
18571
18622
|
let i = [];
|
|
18572
18623
|
for (let o of e) {
|
|
18573
|
-
let r =
|
|
18624
|
+
let r = n0(t, o);
|
|
18574
18625
|
r && i.push(`${o}: ${r};`);
|
|
18575
18626
|
}
|
|
18576
18627
|
return i.length ? `${a}{${i.join("")}}
|
|
18577
18628
|
` : "";
|
|
18578
18629
|
}
|
|
18579
|
-
function
|
|
18630
|
+
function c0(t) {
|
|
18580
18631
|
t && (t.nodeType === Node.ELEMENT_NODE && t.setAttribute("data-sd-slotted", ""), t.querySelectorAll && t.querySelectorAll("*").forEach((e) => e.setAttribute("data-sd-slotted", "")));
|
|
18581
18632
|
}
|
|
18582
|
-
async function
|
|
18633
|
+
async function m0(t, e = 3) {
|
|
18583
18634
|
let a = () => {
|
|
18584
18635
|
var r;
|
|
18585
18636
|
try {
|
|
@@ -18592,7 +18643,7 @@ async function l0(t, e = 3) {
|
|
|
18592
18643
|
await new Promise((r) => setTimeout(r, 0)), i = a(), o++;
|
|
18593
18644
|
return i && (i.body || i.documentElement) ? i : null;
|
|
18594
18645
|
}
|
|
18595
|
-
function
|
|
18646
|
+
function d0(t) {
|
|
18596
18647
|
let e = t.getBoundingClientRect(), a = 0, i = 0, o = 0, r = 0;
|
|
18597
18648
|
try {
|
|
18598
18649
|
let s = getComputedStyle(t);
|
|
@@ -18602,7 +18653,7 @@ function n0(t) {
|
|
|
18602
18653
|
let l = Math.max(0, Math.round(e.width - (a + i))), c = Math.max(0, Math.round(e.height - (o + r)));
|
|
18603
18654
|
return { contentWidth: l, contentHeight: c, rect: e };
|
|
18604
18655
|
}
|
|
18605
|
-
function
|
|
18656
|
+
function h0(t, e, a) {
|
|
18606
18657
|
let i = t.createElement("style");
|
|
18607
18658
|
return i.setAttribute("data-sd-iframe-pin", ""), i.textContent = `html, body {margin: 0 !important;padding: 0 !important;width: ${e}px !important;height: ${a}px !important;min-width: ${e}px !important;min-height: ${a}px !important;box-sizing: border-box !important;overflow: hidden !important;background-clip: border-box !important;}`, (t.head || t.documentElement).appendChild(i), () => {
|
|
18608
18659
|
try {
|
|
@@ -18611,14 +18662,14 @@ function s0(t, e, a) {
|
|
|
18611
18662
|
}
|
|
18612
18663
|
};
|
|
18613
18664
|
}
|
|
18614
|
-
async function
|
|
18615
|
-
let i = await
|
|
18665
|
+
async function p0(t, e, a) {
|
|
18666
|
+
let i = await m0(t, 3);
|
|
18616
18667
|
if (!i)
|
|
18617
18668
|
throw new Error("iframe document not accessible/ready");
|
|
18618
|
-
let { contentWidth: o, contentHeight: r, rect: l } =
|
|
18669
|
+
let { contentWidth: o, contentHeight: r, rect: l } = d0(t), c = a == null ? void 0 : a.snap;
|
|
18619
18670
|
if (!c || typeof c.toPng != "function")
|
|
18620
18671
|
throw new Error("snapdom.toPng not available in iframe or window");
|
|
18621
|
-
let s = { ...a, scale: 1 }, d =
|
|
18672
|
+
let s = { ...a, scale: 1 }, d = h0(i, o, r), m;
|
|
18622
18673
|
try {
|
|
18623
18674
|
m = await c.toPng(i.documentElement, s);
|
|
18624
18675
|
} finally {
|
|
@@ -18650,11 +18701,11 @@ async function Oa(t) {
|
|
|
18650
18701
|
throw Ea.delete(t), i;
|
|
18651
18702
|
}
|
|
18652
18703
|
}
|
|
18653
|
-
var
|
|
18704
|
+
var u0 = /\bblob:[^)"'\s]+/g;
|
|
18654
18705
|
async function ji(t) {
|
|
18655
18706
|
if (!t || t.indexOf("blob:") === -1)
|
|
18656
18707
|
return t;
|
|
18657
|
-
let e = Array.from(new Set(t.match(
|
|
18708
|
+
let e = Array.from(new Set(t.match(u0) || []));
|
|
18658
18709
|
if (e.length === 0)
|
|
18659
18710
|
return t;
|
|
18660
18711
|
let a = t;
|
|
@@ -18669,16 +18720,16 @@ async function ji(t) {
|
|
|
18669
18720
|
function Ya(t) {
|
|
18670
18721
|
return typeof t == "string" && t.startsWith("blob:");
|
|
18671
18722
|
}
|
|
18672
|
-
function
|
|
18723
|
+
function g0(t) {
|
|
18673
18724
|
return (t || "").split(",").map((e) => e.trim()).filter(Boolean).map((e) => {
|
|
18674
18725
|
let a = e.match(/^(\S+)(\s+.+)?$/);
|
|
18675
18726
|
return a ? { url: a[1], desc: a[2] || "" } : null;
|
|
18676
18727
|
}).filter(Boolean);
|
|
18677
18728
|
}
|
|
18678
|
-
function
|
|
18729
|
+
function f0(t) {
|
|
18679
18730
|
return t.map((e) => e.desc ? `${e.url} ${e.desc.trim()}` : e.url).join(", ");
|
|
18680
18731
|
}
|
|
18681
|
-
async function
|
|
18732
|
+
async function y0(t) {
|
|
18682
18733
|
var l, c;
|
|
18683
18734
|
if (!t)
|
|
18684
18735
|
return;
|
|
@@ -18692,14 +18743,14 @@ async function p0(t) {
|
|
|
18692
18743
|
}
|
|
18693
18744
|
let m = s.getAttribute("srcset");
|
|
18694
18745
|
if (m && m.includes("blob:")) {
|
|
18695
|
-
let p =
|
|
18746
|
+
let p = g0(m), f = !1;
|
|
18696
18747
|
for (let w of p)
|
|
18697
18748
|
if (Ya(w.url))
|
|
18698
18749
|
try {
|
|
18699
18750
|
w.url = await Oa(w.url), f = !0;
|
|
18700
18751
|
} catch {
|
|
18701
18752
|
}
|
|
18702
|
-
f && s.setAttribute("srcset",
|
|
18753
|
+
f && s.setAttribute("srcset", f0(p));
|
|
18703
18754
|
}
|
|
18704
18755
|
} catch {
|
|
18705
18756
|
}
|
|
@@ -18748,7 +18799,7 @@ async function Ja(t, e, a) {
|
|
|
18748
18799
|
let i = /* @__PURE__ */ new Set(), o = null, r = null;
|
|
18749
18800
|
if (t.nodeType === Node.ELEMENT_NODE) {
|
|
18750
18801
|
let h = (t.localName || t.tagName || "").toLowerCase();
|
|
18751
|
-
if (t.id === "snapdom-sandbox" || t.hasAttribute("data-snapdom-sandbox") ||
|
|
18802
|
+
if (t.id === "snapdom-sandbox" || t.hasAttribute("data-snapdom-sandbox") || ag.has(h))
|
|
18752
18803
|
return null;
|
|
18753
18804
|
}
|
|
18754
18805
|
if (t.nodeType === Node.TEXT_NODE || t.nodeType !== Node.ELEMENT_NODE)
|
|
@@ -18794,7 +18845,7 @@ async function Ja(t, e, a) {
|
|
|
18794
18845
|
}
|
|
18795
18846
|
if (h)
|
|
18796
18847
|
try {
|
|
18797
|
-
return await
|
|
18848
|
+
return await p0(t, e, a);
|
|
18798
18849
|
} catch (g) {
|
|
18799
18850
|
console.warn("[SnapDOM] iframe rasterization failed, fallback:", g);
|
|
18800
18851
|
}
|
|
@@ -18849,8 +18900,8 @@ async function Ja(t, e, a) {
|
|
|
18849
18900
|
}
|
|
18850
18901
|
let l;
|
|
18851
18902
|
try {
|
|
18852
|
-
if (l = t.cloneNode(!1),
|
|
18853
|
-
|
|
18903
|
+
if (l = t.cloneNode(!1), qg(t, l), e.nodeMap.set(l, t), t.tagName === "IMG") {
|
|
18904
|
+
r0(t, l);
|
|
18854
18905
|
try {
|
|
18855
18906
|
let h = t.getBoundingClientRect(), g = Math.round(h.width || 0), _ = Math.round(h.height || 0);
|
|
18856
18907
|
if (!g || !_) {
|
|
@@ -18900,20 +18951,20 @@ async function Ja(t, e, a) {
|
|
|
18900
18951
|
}
|
|
18901
18952
|
} catch {
|
|
18902
18953
|
}
|
|
18903
|
-
let g =
|
|
18954
|
+
let g = a0(e), _ = `[data-sd="${g}"]`;
|
|
18904
18955
|
try {
|
|
18905
18956
|
l.setAttribute("data-sd", g);
|
|
18906
18957
|
} catch {
|
|
18907
18958
|
}
|
|
18908
|
-
let T =
|
|
18909
|
-
|
|
18959
|
+
let T = o0(t.shadowRoot), v = t0(T, _), M = l0(T), L = s0(t, M, _);
|
|
18960
|
+
i0(l, L + v, g);
|
|
18910
18961
|
let z = document.createDocumentFragment(), S = await oo(Array.from(t.shadowRoot.childNodes), h, a.fast);
|
|
18911
18962
|
z.append(...S.filter((D) => !!D)), l.appendChild(z);
|
|
18912
18963
|
}
|
|
18913
18964
|
if (t.tagName === "SLOT") {
|
|
18914
18965
|
let h = function(M, L) {
|
|
18915
18966
|
Ja(M, e, a).then((z) => {
|
|
18916
|
-
z &&
|
|
18967
|
+
z && c0(z), L(z || null);
|
|
18917
18968
|
}).catch(() => {
|
|
18918
18969
|
L(null);
|
|
18919
18970
|
});
|
|
@@ -18937,10 +18988,10 @@ async function Ja(t, e, a) {
|
|
|
18937
18988
|
}
|
|
18938
18989
|
return r !== null && l instanceof HTMLTextAreaElement && (l.textContent = r), l;
|
|
18939
18990
|
}
|
|
18940
|
-
function
|
|
18991
|
+
function b0(t) {
|
|
18941
18992
|
return /\bcounter\s*\(|\bcounters\s*\(/.test(t || "");
|
|
18942
18993
|
}
|
|
18943
|
-
function
|
|
18994
|
+
function w0(t) {
|
|
18944
18995
|
return (t || "").replace(/"([^"]*)"/g, "$1");
|
|
18945
18996
|
}
|
|
18946
18997
|
function Xi(t, e = !1) {
|
|
@@ -18974,7 +19025,7 @@ function Yi(t, e) {
|
|
|
18974
19025
|
return String(Math.max(0, t));
|
|
18975
19026
|
}
|
|
18976
19027
|
}
|
|
18977
|
-
function
|
|
19028
|
+
function x0(t) {
|
|
18978
19029
|
let e = () => {
|
|
18979
19030
|
var f;
|
|
18980
19031
|
return ((f = V == null ? void 0 : V.session) == null ? void 0 : f.__counterEpoch) ?? 0;
|
|
@@ -19068,7 +19119,7 @@ function f0(t) {
|
|
|
19068
19119
|
return u ? u.slice() : [];
|
|
19069
19120
|
} };
|
|
19070
19121
|
}
|
|
19071
|
-
function
|
|
19122
|
+
function v0(t, e, a) {
|
|
19072
19123
|
if (!t || t === "none")
|
|
19073
19124
|
return t;
|
|
19074
19125
|
try {
|
|
@@ -19083,13 +19134,13 @@ function y0(t, e, a) {
|
|
|
19083
19134
|
return h.length ? h.map((g) => Yi(g, u)).join(w) : "";
|
|
19084
19135
|
}
|
|
19085
19136
|
});
|
|
19086
|
-
return
|
|
19137
|
+
return w0(o);
|
|
19087
19138
|
} catch {
|
|
19088
19139
|
return "- ";
|
|
19089
19140
|
}
|
|
19090
19141
|
}
|
|
19091
19142
|
var lt = /* @__PURE__ */ new WeakMap(), Ui = 300;
|
|
19092
|
-
function
|
|
19143
|
+
function k0(t, e) {
|
|
19093
19144
|
let a = gr(t);
|
|
19094
19145
|
return e ? (e.__pseudoPreflightFp !== a && (e.__pseudoPreflight = Ji(t), e.__pseudoPreflightFp = a), !!e.__pseudoPreflight) : Ji(t);
|
|
19095
19146
|
}
|
|
@@ -19176,16 +19227,16 @@ function Ji(t = document) {
|
|
|
19176
19227
|
return t.querySelector('[style*="counter("], [style*="counters("]') ? (lt.set(t, { fingerprint: e, result: !0 }), !0) : (lt.set(t, { fingerprint: e, result: !1 }), !1);
|
|
19177
19228
|
}
|
|
19178
19229
|
var ct = /* @__PURE__ */ new WeakMap(), Ki = -1;
|
|
19179
|
-
function
|
|
19230
|
+
function _0(t) {
|
|
19180
19231
|
return (t || "").replace(/"([^"]*)"/g, "$1");
|
|
19181
19232
|
}
|
|
19182
|
-
function
|
|
19233
|
+
function L0(t) {
|
|
19183
19234
|
if (!t)
|
|
19184
19235
|
return "";
|
|
19185
19236
|
let e = [], a = /"([^"]*)"/g, i;
|
|
19186
19237
|
for (; i = a.exec(t); )
|
|
19187
19238
|
e.push(i[1]);
|
|
19188
|
-
return e.length ? e.join("") :
|
|
19239
|
+
return e.length ? e.join("") : _0(t);
|
|
19189
19240
|
}
|
|
19190
19241
|
function ho(t, e) {
|
|
19191
19242
|
let a = t.parentElement, i = a ? ct.get(a) : null;
|
|
@@ -19241,7 +19292,7 @@ function po(t, e, a) {
|
|
|
19241
19292
|
return c(d);
|
|
19242
19293
|
}, __incs: l };
|
|
19243
19294
|
}
|
|
19244
|
-
function
|
|
19295
|
+
function z0(t, e, a) {
|
|
19245
19296
|
let i;
|
|
19246
19297
|
try {
|
|
19247
19298
|
i = getComputedStyle(t, e);
|
|
@@ -19250,20 +19301,20 @@ function v0(t, e, a) {
|
|
|
19250
19301
|
let o = i == null ? void 0 : i.content;
|
|
19251
19302
|
if (!o || o === "none" || o === "normal")
|
|
19252
19303
|
return { text: "", incs: [] };
|
|
19253
|
-
let r = ho(t, a), l = po(t, i, r), c =
|
|
19254
|
-
return { text:
|
|
19304
|
+
let r = ho(t, a), l = po(t, i, r), c = b0(o) ? v0(o, t, l) : o;
|
|
19305
|
+
return { text: L0(c), incs: l.__incs || [] };
|
|
19255
19306
|
}
|
|
19256
19307
|
async function fr(t, e, a, i) {
|
|
19257
19308
|
var d, m, p;
|
|
19258
19309
|
if (!(t instanceof Element) || !(e instanceof Element))
|
|
19259
19310
|
return;
|
|
19260
19311
|
let o = t.ownerDocument || document;
|
|
19261
|
-
if (!
|
|
19312
|
+
if (!k0(o, a))
|
|
19262
19313
|
return;
|
|
19263
19314
|
let r = ((d = V == null ? void 0 : V.session) == null ? void 0 : d.__counterEpoch) ?? 0;
|
|
19264
19315
|
if (Ki !== r && (ct = /* @__PURE__ */ new WeakMap(), a && (a.__counterCtx = null), Ki = r), !a.__counterCtx)
|
|
19265
19316
|
try {
|
|
19266
|
-
a.__counterCtx =
|
|
19317
|
+
a.__counterCtx = x0(t.ownerDocument || document);
|
|
19267
19318
|
} catch {
|
|
19268
19319
|
}
|
|
19269
19320
|
let l = a.__counterCtx;
|
|
@@ -19276,9 +19327,9 @@ async function fr(t, e, a, i) {
|
|
|
19276
19327
|
let Y = getComputedStyle(t);
|
|
19277
19328
|
if (!(w.color !== Y.color || w.fontSize !== Y.fontSize || w.fontWeight !== Y.fontWeight))
|
|
19278
19329
|
continue;
|
|
19279
|
-
let H = Array.from(e.childNodes).find((
|
|
19330
|
+
let H = Array.from(e.childNodes).find((be) => {
|
|
19280
19331
|
var _e;
|
|
19281
|
-
return
|
|
19332
|
+
return be.nodeType === Node.TEXT_NODE && ((_e = be.textContent) == null ? void 0 : _e.trim().length) > 0;
|
|
19282
19333
|
});
|
|
19283
19334
|
if (!H)
|
|
19284
19335
|
continue;
|
|
@@ -19293,7 +19344,7 @@ async function fr(t, e, a, i) {
|
|
|
19293
19344
|
e.replaceChild(me, H), e.insertBefore(fe, me);
|
|
19294
19345
|
continue;
|
|
19295
19346
|
}
|
|
19296
|
-
let u = w.content ?? "", h = u === "" || u === "none" || u === "normal", { text: g, incs: _ } =
|
|
19347
|
+
let u = w.content ?? "", h = u === "" || u === "none" || u === "normal", { text: g, incs: _ } = z0(t, f, l), T = w.backgroundImage, v = w.backgroundColor, M = w.fontFamily, L = parseInt(w.fontSize) || 32, z = parseInt(w.fontWeight) || !1, S = w.color || "#000", D = w.borderStyle, A = parseFloat(w.borderWidth), E = w.transform, X = Ke(M), O = !h && g !== "", q = T && T !== "none", ae = v && v !== "transparent" && v !== "rgba(0, 0, 0, 0)", re = D && D !== "none" && A > 0, pe = E && E !== "none";
|
|
19297
19348
|
if (!(O || q || ae || re || pe)) {
|
|
19298
19349
|
if (_ && _.length && t.parentElement) {
|
|
19299
19350
|
let Y = ct.get(t.parentElement) || /* @__PURE__ */ new Map();
|
|
@@ -19311,7 +19362,7 @@ async function fr(t, e, a, i) {
|
|
|
19311
19362
|
G.dataset.snapdomPseudo = f, G.style.pointerEvents = "none";
|
|
19312
19363
|
let J = Fi(w), K = ro(J, "span");
|
|
19313
19364
|
if (a.styleMap.set(G, K), X && g && g.length === 1) {
|
|
19314
|
-
let { dataUrl: Y, width: H, height: ee } = await
|
|
19365
|
+
let { dataUrl: Y, width: H, height: ee } = await wg(g, M, z, L, S), F = document.createElement("img");
|
|
19315
19366
|
F.src = Y, F.style = `height:${L}px;width:${H / ee * L}px;object-fit:contain;`, G.appendChild(F), e.dataset.snapdomHasIcon = "true";
|
|
19316
19367
|
} else if (g && g.startsWith("url(")) {
|
|
19317
19368
|
let Y = yo(g);
|
|
@@ -19358,7 +19409,7 @@ async function fr(t, e, a, i) {
|
|
|
19358
19409
|
for (let f = 0; f < Math.min(c.length, s.length); f++)
|
|
19359
19410
|
await fr(c[f], s[f], a, i);
|
|
19360
19411
|
}
|
|
19361
|
-
function
|
|
19412
|
+
function C0(t, e) {
|
|
19362
19413
|
var M, L;
|
|
19363
19414
|
if (!t || !(t instanceof Element))
|
|
19364
19415
|
return;
|
|
@@ -19458,7 +19509,7 @@ function k0(t, e) {
|
|
|
19458
19509
|
}
|
|
19459
19510
|
}
|
|
19460
19511
|
}
|
|
19461
|
-
function
|
|
19512
|
+
function M0(t, e) {
|
|
19462
19513
|
var c;
|
|
19463
19514
|
if (!t || !e)
|
|
19464
19515
|
return;
|
|
@@ -19474,7 +19525,7 @@ function _0(t, e) {
|
|
|
19474
19525
|
let p = qi(d.top), f = qi(d.bottom);
|
|
19475
19526
|
if (p == null && f == null)
|
|
19476
19527
|
continue;
|
|
19477
|
-
let w =
|
|
19528
|
+
let w = P0(s, t), u = S0(e, w, r);
|
|
19478
19529
|
if (!u)
|
|
19479
19530
|
continue;
|
|
19480
19531
|
let h = s.getBoundingClientRect(), g = h.width, _ = h.height, T = h.left - i.left;
|
|
@@ -19493,7 +19544,7 @@ function qi(t) {
|
|
|
19493
19544
|
let e = Number.parseFloat(t);
|
|
19494
19545
|
return Number.isFinite(e) ? e : null;
|
|
19495
19546
|
}
|
|
19496
|
-
function
|
|
19547
|
+
function P0(t, e) {
|
|
19497
19548
|
let a = [];
|
|
19498
19549
|
for (let i = t; i && i !== e; ) {
|
|
19499
19550
|
let o = i.parentElement;
|
|
@@ -19503,14 +19554,14 @@ function L0(t, e) {
|
|
|
19503
19554
|
}
|
|
19504
19555
|
return a.reverse();
|
|
19505
19556
|
}
|
|
19506
|
-
function
|
|
19557
|
+
function S0(t, e, a) {
|
|
19507
19558
|
let i = t;
|
|
19508
19559
|
for (let o = 0; o < e.length; o++)
|
|
19509
|
-
if (i =
|
|
19560
|
+
if (i = T0(i, a)[e[o]], !i)
|
|
19510
19561
|
return null;
|
|
19511
19562
|
return i instanceof HTMLElement ? i : null;
|
|
19512
19563
|
}
|
|
19513
|
-
function
|
|
19564
|
+
function T0(t, e) {
|
|
19514
19565
|
let a = [], i = t.children;
|
|
19515
19566
|
for (let o = 0; o < i.length; o++) {
|
|
19516
19567
|
let r = i[o];
|
|
@@ -19518,16 +19569,16 @@ function C0(t, e) {
|
|
|
19518
19569
|
}
|
|
19519
19570
|
return a;
|
|
19520
19571
|
}
|
|
19521
|
-
function
|
|
19572
|
+
function R0(t) {
|
|
19522
19573
|
let e = getComputedStyle(t), a = e.outlineStyle, i = e.outlineWidth, o = e.borderStyle, r = e.borderWidth, l = a !== "none" && parseFloat(i) > 0, c = o === "none" || parseFloat(r) === 0;
|
|
19523
19574
|
l && c && (t.style.border = `${i} solid transparent`);
|
|
19524
19575
|
}
|
|
19525
|
-
async function
|
|
19576
|
+
async function D0(t, e = {}) {
|
|
19526
19577
|
var s, d;
|
|
19527
19578
|
let a = { styleMap: V.session.styleMap, styleCache: V.session.styleCache, nodeMap: V.session.nodeMap }, i, o = "", r = "";
|
|
19528
|
-
|
|
19579
|
+
R0(t);
|
|
19529
19580
|
try {
|
|
19530
|
-
|
|
19581
|
+
C0(t);
|
|
19531
19582
|
} catch (m) {
|
|
19532
19583
|
console.warn("inlineExternal defs or symbol failed:", m);
|
|
19533
19584
|
}
|
|
@@ -19541,14 +19592,14 @@ async function P0(t, e = {}) {
|
|
|
19541
19592
|
} catch (m) {
|
|
19542
19593
|
console.warn("inlinePseudoElements failed:", m);
|
|
19543
19594
|
}
|
|
19544
|
-
await
|
|
19595
|
+
await y0(i);
|
|
19545
19596
|
try {
|
|
19546
19597
|
let m = i.querySelectorAll("style[data-sd]");
|
|
19547
19598
|
for (let p of m)
|
|
19548
19599
|
r += p.textContent || "", p.remove();
|
|
19549
19600
|
} catch {
|
|
19550
19601
|
}
|
|
19551
|
-
let l =
|
|
19602
|
+
let l = cg(a.styleMap);
|
|
19552
19603
|
o = Array.from(l.entries()).map(([m, p]) => `.${p}{${m}}`).join(""), o = r + o;
|
|
19553
19604
|
for (let [m, p] of a.styleMap.entries()) {
|
|
19554
19605
|
if (m.tagName === "STYLE")
|
|
@@ -19573,22 +19624,22 @@ async function P0(t, e = {}) {
|
|
|
19573
19624
|
}
|
|
19574
19625
|
}
|
|
19575
19626
|
let c = i instanceof HTMLElement && i.firstElementChild instanceof HTMLElement ? i.firstElementChild : i;
|
|
19576
|
-
if (
|
|
19627
|
+
if (M0(t, c), t === a.nodeMap.get(i)) {
|
|
19577
19628
|
let m = a.styleCache.get(t) || window.getComputedStyle(t);
|
|
19578
19629
|
a.styleCache.set(t, m);
|
|
19579
|
-
let p =
|
|
19630
|
+
let p = $u(m.transform);
|
|
19580
19631
|
i.style.margin = "0", i.style.top = "auto", i.style.left = "auto", i.style.right = "auto", i.style.bottom = "auto", i.style.animation = "none", i.style.transition = "none", i.style.willChange = "auto", i.style.float = "none", i.style.clear = "none", i.style.transform = p || "";
|
|
19581
19632
|
}
|
|
19582
19633
|
for (let [m, p] of a.nodeMap.entries())
|
|
19583
19634
|
p.tagName === "PRE" && (m.style.marginTop = "0", m.style.marginBlockStart = "0");
|
|
19584
19635
|
return { clone: i, classCSS: o, styleCache: a.styleCache };
|
|
19585
19636
|
}
|
|
19586
|
-
function
|
|
19637
|
+
function I0(t) {
|
|
19587
19638
|
var d, m, p, f;
|
|
19588
19639
|
let e = parseInt(((d = t.dataset) == null ? void 0 : d.snapdomWidth) || "", 10) || 0, a = parseInt(((m = t.dataset) == null ? void 0 : m.snapdomHeight) || "", 10) || 0, i = parseInt(t.getAttribute("width") || "", 10) || 0, o = parseInt(t.getAttribute("height") || "", 10) || 0, r = parseFloat(((p = t.style) == null ? void 0 : p.width) || "") || 0, l = parseFloat(((f = t.style) == null ? void 0 : f.height) || "") || 0, c = e || r || i || t.width || t.naturalWidth || 100, s = a || l || o || t.height || t.naturalHeight || 100;
|
|
19589
19640
|
return { width: c, height: s };
|
|
19590
19641
|
}
|
|
19591
|
-
async function
|
|
19642
|
+
async function A0(t, e = {}) {
|
|
19592
19643
|
let a = Array.from(t.querySelectorAll("img")), i = async (o) => {
|
|
19593
19644
|
if (!o.getAttribute("src")) {
|
|
19594
19645
|
let m = o.currentSrc || o.src || "";
|
|
@@ -19603,7 +19654,7 @@ async function T0(t, e = {}) {
|
|
|
19603
19654
|
o.src = l.data, o.width || (o.width = o.naturalWidth || 100), o.height || (o.height = o.naturalHeight || 100);
|
|
19604
19655
|
return;
|
|
19605
19656
|
}
|
|
19606
|
-
let { width: c, height: s } =
|
|
19657
|
+
let { width: c, height: s } = I0(o), { fallbackURL: d } = e || {};
|
|
19607
19658
|
if (d)
|
|
19608
19659
|
try {
|
|
19609
19660
|
let m = typeof d == "function" ? await d({ width: c, height: s, src: r, element: o }) : d;
|
|
@@ -19627,18 +19678,18 @@ async function T0(t, e = {}) {
|
|
|
19627
19678
|
await Promise.allSettled(r);
|
|
19628
19679
|
}
|
|
19629
19680
|
}
|
|
19630
|
-
function
|
|
19681
|
+
function G0(t) {
|
|
19631
19682
|
if (!t)
|
|
19632
19683
|
return () => {
|
|
19633
19684
|
};
|
|
19634
|
-
let e =
|
|
19685
|
+
let e = F0(t);
|
|
19635
19686
|
if (e <= 0)
|
|
19636
19687
|
return () => {
|
|
19637
19688
|
};
|
|
19638
|
-
if (!
|
|
19689
|
+
if (!E0(t))
|
|
19639
19690
|
return () => {
|
|
19640
19691
|
};
|
|
19641
|
-
let a = getComputedStyle(t), i = Math.round(
|
|
19692
|
+
let a = getComputedStyle(t), i = Math.round(N0(a) * e + W0(a)), o = t.textContent ?? "", r = o;
|
|
19642
19693
|
if (t.scrollHeight <= i + 0.5)
|
|
19643
19694
|
return () => {
|
|
19644
19695
|
};
|
|
@@ -19651,23 +19702,23 @@ function R0(t) {
|
|
|
19651
19702
|
t.textContent = r;
|
|
19652
19703
|
};
|
|
19653
19704
|
}
|
|
19654
|
-
function
|
|
19705
|
+
function F0(t) {
|
|
19655
19706
|
let e = getComputedStyle(t), a = e.getPropertyValue("-webkit-line-clamp") || e.getPropertyValue("line-clamp");
|
|
19656
19707
|
a = (a || "").trim();
|
|
19657
19708
|
let i = parseInt(a, 10);
|
|
19658
19709
|
return Number.isFinite(i) && i > 0 ? i : 0;
|
|
19659
19710
|
}
|
|
19660
|
-
function
|
|
19711
|
+
function N0(t) {
|
|
19661
19712
|
let e = (t.lineHeight || "").trim(), a = parseFloat(t.fontSize) || 16;
|
|
19662
19713
|
return !e || e === "normal" ? Math.round(a * 1.2) : e.endsWith("px") ? parseFloat(e) : /^\d+(\.\d+)?$/.test(e) ? Math.round(parseFloat(e) * a) : e.endsWith("%") ? Math.round(parseFloat(e) / 100 * a) : Math.round(a * 1.2);
|
|
19663
19714
|
}
|
|
19664
|
-
function
|
|
19715
|
+
function W0(t) {
|
|
19665
19716
|
return (parseFloat(t.paddingTop) || 0) + (parseFloat(t.paddingBottom) || 0);
|
|
19666
19717
|
}
|
|
19667
|
-
function
|
|
19718
|
+
function E0(t) {
|
|
19668
19719
|
return t.childElementCount > 0 ? !1 : Array.from(t.childNodes).some((e) => e.nodeType === Node.TEXT_NODE);
|
|
19669
19720
|
}
|
|
19670
|
-
function
|
|
19721
|
+
function B0(t, e) {
|
|
19671
19722
|
if (!t || !e || !e.style)
|
|
19672
19723
|
return;
|
|
19673
19724
|
let a = getComputedStyle(t);
|
|
@@ -19689,14 +19740,14 @@ function F0(t, e) {
|
|
|
19689
19740
|
} catch {
|
|
19690
19741
|
}
|
|
19691
19742
|
}
|
|
19692
|
-
function
|
|
19743
|
+
function Z0(t) {
|
|
19693
19744
|
let e = document.createTreeWalker(t, NodeFilter.SHOW_COMMENT), a = [];
|
|
19694
19745
|
for (; e.nextNode(); )
|
|
19695
19746
|
a.push(e.currentNode);
|
|
19696
19747
|
for (let i of a)
|
|
19697
19748
|
i.remove();
|
|
19698
19749
|
}
|
|
19699
|
-
function
|
|
19750
|
+
function O0(t, e = {}) {
|
|
19700
19751
|
let { stripFrameworkDirectives: a = !0 } = e, i = /* @__PURE__ */ new Set(["xml", "xlink"]), o = document.createTreeWalker(t, NodeFilter.SHOW_ELEMENT);
|
|
19701
19752
|
for (; o.nextNode(); ) {
|
|
19702
19753
|
let r = o.currentNode;
|
|
@@ -19720,10 +19771,10 @@ function W0(t, e = {}) {
|
|
|
19720
19771
|
}
|
|
19721
19772
|
}
|
|
19722
19773
|
}
|
|
19723
|
-
function
|
|
19724
|
-
t && (
|
|
19774
|
+
function V0(t, e = {}) {
|
|
19775
|
+
t && (O0(t, e), Z0(t));
|
|
19725
19776
|
}
|
|
19726
|
-
function
|
|
19777
|
+
function j0(t) {
|
|
19727
19778
|
var e;
|
|
19728
19779
|
try {
|
|
19729
19780
|
let a = ((e = t.getAttribute) == null ? void 0 : e.call(t, "style")) || "";
|
|
@@ -19732,11 +19783,11 @@ function B0(t) {
|
|
|
19732
19783
|
return !1;
|
|
19733
19784
|
}
|
|
19734
19785
|
}
|
|
19735
|
-
function
|
|
19786
|
+
function X0(t) {
|
|
19736
19787
|
return t instanceof HTMLImageElement || t instanceof HTMLCanvasElement || t instanceof HTMLVideoElement || t instanceof HTMLIFrameElement || t instanceof SVGElement || t instanceof HTMLObjectElement || t instanceof HTMLEmbedElement;
|
|
19737
19788
|
}
|
|
19738
|
-
function
|
|
19739
|
-
if (!(t instanceof Element) ||
|
|
19789
|
+
function H0(t, e) {
|
|
19790
|
+
if (!(t instanceof Element) || j0(t) || X0(t))
|
|
19740
19791
|
return !1;
|
|
19741
19792
|
let a = e.position;
|
|
19742
19793
|
if (a === "absolute" || a === "fixed" || a === "sticky")
|
|
@@ -19744,12 +19795,12 @@ function O0(t, e) {
|
|
|
19744
19795
|
let i = e.display || "";
|
|
19745
19796
|
return !(i.includes("flex") || i.includes("grid") || i.startsWith("table") || e.transform && e.transform !== "none");
|
|
19746
19797
|
}
|
|
19747
|
-
function
|
|
19798
|
+
function Y0(t, e, a = /* @__PURE__ */ new Map()) {
|
|
19748
19799
|
function i(o, r) {
|
|
19749
19800
|
if (!(o instanceof Element) || !(r instanceof Element))
|
|
19750
19801
|
return;
|
|
19751
19802
|
let l = o.childElementCount > r.childElementCount, c = a.get(o) || getComputedStyle(o);
|
|
19752
|
-
if (a.has(o) || a.set(o, c), l &&
|
|
19803
|
+
if (a.has(o) || a.set(o, c), l && H0(o, c)) {
|
|
19753
19804
|
r.style.height || (r.style.height = "auto"), r.style.width || (r.style.width = "auto"), r.style.removeProperty("block-size"), r.style.removeProperty("inline-size"), r.style.minHeight || (r.style.minHeight = "0"), r.style.minWidth || (r.style.minWidth = "0"), r.style.maxHeight || (r.style.maxHeight = "none"), r.style.maxWidth || (r.style.maxWidth = "none");
|
|
19754
19805
|
let m = c.overflowY || c.overflowBlock || "visible", p = c.overflowX || c.overflowInline || "visible";
|
|
19755
19806
|
(m !== "visible" || p !== "visible") && (r.style.overflow = "visible");
|
|
@@ -19760,11 +19811,11 @@ function V0(t, e, a = /* @__PURE__ */ new Map()) {
|
|
|
19760
19811
|
}
|
|
19761
19812
|
i(t, e);
|
|
19762
19813
|
}
|
|
19763
|
-
function
|
|
19814
|
+
function U0(t) {
|
|
19764
19815
|
let e = getComputedStyle(t);
|
|
19765
19816
|
return !(e.display === "none" || e.position === "absolute" || e.position === "fixed" || e.position === "sticky" || (e.cssFloat || e.float || "none") !== "none" || e.transform && e.transform !== "none");
|
|
19766
19817
|
}
|
|
19767
|
-
function
|
|
19818
|
+
function $0(t, e) {
|
|
19768
19819
|
if (!(t instanceof Element))
|
|
19769
19820
|
return !1;
|
|
19770
19821
|
if (t.getAttribute("data-capture") === "exclude" && (e == null ? void 0 : e.excludeMode) === "remove")
|
|
@@ -19778,10 +19829,10 @@ function X0(t, e) {
|
|
|
19778
19829
|
}
|
|
19779
19830
|
return !1;
|
|
19780
19831
|
}
|
|
19781
|
-
function
|
|
19832
|
+
function J0(t, e) {
|
|
19782
19833
|
let a = getComputedStyle(t), i = t.getBoundingClientRect(), o = 1 / 0, r = -1 / 0, l = !1, c = Array.from(t.children);
|
|
19783
19834
|
for (let w of c) {
|
|
19784
|
-
if (
|
|
19835
|
+
if ($0(w, e) || !U0(w))
|
|
19785
19836
|
continue;
|
|
19786
19837
|
let u = w.getBoundingClientRect(), h = u.top - i.top, g = u.bottom - i.top;
|
|
19787
19838
|
g <= h || (h < o && (o = h), g > r && (r = g), l = !0);
|
|
@@ -19790,7 +19841,7 @@ function H0(t, e) {
|
|
|
19790
19841
|
return d + m + p + f + s;
|
|
19791
19842
|
}
|
|
19792
19843
|
var ce = (t, e = 3) => Number.isFinite(t) ? Math.round(t * 10 ** e) / 10 ** e : t;
|
|
19793
|
-
function
|
|
19844
|
+
function K0(t) {
|
|
19794
19845
|
var c;
|
|
19795
19846
|
let e = t.boxShadow || "";
|
|
19796
19847
|
if (!e || e === "none")
|
|
@@ -19805,17 +19856,17 @@ function Y0(t) {
|
|
|
19805
19856
|
}
|
|
19806
19857
|
return { top: Math.ceil(i), right: Math.ceil(o), bottom: Math.ceil(r), left: Math.ceil(l) };
|
|
19807
19858
|
}
|
|
19808
|
-
function
|
|
19859
|
+
function q0(t) {
|
|
19809
19860
|
let e = (t.filter || "").match(/blur\(\s*([0-9.]+)px\s*\)/), a = e ? Math.ceil(parseFloat(e[1]) || 0) : 0;
|
|
19810
19861
|
return { top: a, right: a, bottom: a, left: a };
|
|
19811
19862
|
}
|
|
19812
|
-
function
|
|
19863
|
+
function Q0(t) {
|
|
19813
19864
|
if ((t.outlineStyle || "none") === "none")
|
|
19814
19865
|
return { top: 0, right: 0, bottom: 0, left: 0 };
|
|
19815
19866
|
let e = Math.ceil(parseFloat(t.outlineWidth || "0") || 0);
|
|
19816
19867
|
return { top: e, right: e, bottom: e, left: e };
|
|
19817
19868
|
}
|
|
19818
|
-
function
|
|
19869
|
+
function ef(t) {
|
|
19819
19870
|
var s;
|
|
19820
19871
|
let e = `${t.filter || ""} ${t.webkitFilter || ""}`.trim();
|
|
19821
19872
|
if (!e || e === "none")
|
|
@@ -19828,7 +19879,7 @@ function J0(t) {
|
|
|
19828
19879
|
}
|
|
19829
19880
|
return { bleed: { top: ce(i), right: ce(o), bottom: ce(r), left: ce(l) }, has: c };
|
|
19830
19881
|
}
|
|
19831
|
-
function
|
|
19882
|
+
function tf(t, e) {
|
|
19832
19883
|
if (!t || !e || !e.style)
|
|
19833
19884
|
return null;
|
|
19834
19885
|
let a = getComputedStyle(t);
|
|
@@ -19880,14 +19931,14 @@ function Qi(t, e, a, i, o) {
|
|
|
19880
19931
|
_ < w && (w = _), T < u && (u = T), _ > h && (h = _), T > g && (g = T);
|
|
19881
19932
|
return { minX: w, minY: u, maxX: h, maxY: g, width: h - w, height: g - u };
|
|
19882
19933
|
}
|
|
19883
|
-
function
|
|
19934
|
+
function af(t, e, a) {
|
|
19884
19935
|
let i = (t.transformOrigin || "0 0").trim().split(/\s+/), [o, r] = [i[0] || "0", i[1] || "0"], l = (c, s) => {
|
|
19885
19936
|
let d = c.toLowerCase();
|
|
19886
19937
|
return d === "left" || d === "top" ? 0 : d === "center" ? s / 2 : d === "right" || d === "bottom" ? s : d.endsWith("px") ? parseFloat(d) || 0 : d.endsWith("%") ? (parseFloat(d) || 0) * s / 100 : /^-?\d+(\.\d+)?$/.test(d) && parseFloat(d) || 0;
|
|
19887
19938
|
};
|
|
19888
19939
|
return { ox: l(o, e), oy: l(r, a) };
|
|
19889
19940
|
}
|
|
19890
|
-
function
|
|
19941
|
+
function of(t) {
|
|
19891
19942
|
var o, r, l, c, s, d, m, p;
|
|
19892
19943
|
let e = { rotate: "0deg", scale: null, translate: null }, a = typeof t.computedStyleMap == "function" ? t.computedStyleMap() : null;
|
|
19893
19944
|
if (a) {
|
|
@@ -19930,19 +19981,19 @@ function Q0(t) {
|
|
|
19930
19981
|
return e.rotate = i.rotate && i.rotate !== "none" ? i.rotate : "0deg", e.scale = i.scale && i.scale !== "none" ? i.scale : null, e.translate = i.translate && i.translate !== "none" ? i.translate : null, e;
|
|
19931
19982
|
}
|
|
19932
19983
|
var io = null;
|
|
19933
|
-
function
|
|
19984
|
+
function rf() {
|
|
19934
19985
|
if (io)
|
|
19935
19986
|
return io;
|
|
19936
19987
|
let t = document.createElement("div");
|
|
19937
19988
|
return t.id = "snapdom-measure-slot", t.setAttribute("aria-hidden", "true"), Object.assign(t.style, { position: "absolute", left: "-99999px", top: "0px", width: "0px", height: "0px", overflow: "hidden", opacity: "0", pointerEvents: "none", contain: "size layout style" }), document.documentElement.appendChild(t), io = t, t;
|
|
19938
19989
|
}
|
|
19939
|
-
function
|
|
19940
|
-
let e =
|
|
19990
|
+
function lf(t) {
|
|
19991
|
+
let e = rf(), a = document.createElement("div");
|
|
19941
19992
|
a.style.transformOrigin = "0 0", t.baseTransform && (a.style.transform = t.baseTransform), t.rotate && (a.style.rotate = t.rotate), t.scale && (a.style.scale = t.scale), t.translate && (a.style.translate = t.translate), e.appendChild(a);
|
|
19942
19993
|
let i = yr(a);
|
|
19943
19994
|
return e.removeChild(a), i;
|
|
19944
19995
|
}
|
|
19945
|
-
function
|
|
19996
|
+
function nf(t) {
|
|
19946
19997
|
let e = getComputedStyle(t), a = e.transform || "none";
|
|
19947
19998
|
if (a !== "none" && !/^matrix\(\s*1\s*,\s*0\s*,\s*0\s*,\s*1\s*,\s*0\s*,\s*0\s*\)$/i.test(a))
|
|
19948
19999
|
return !0;
|
|
@@ -19963,54 +20014,54 @@ async function br(t, e) {
|
|
|
19963
20014
|
var T;
|
|
19964
20015
|
if (!t)
|
|
19965
20016
|
throw new Error("Element cannot be null or undefined");
|
|
19966
|
-
|
|
20017
|
+
Uu(e.cache);
|
|
19967
20018
|
let a = e.fast, i = e.outerTransforms !== !1, o = !!e.outerShadows, r = { element: t, options: e, plugins: e.plugins }, l, c, s, d = "", m = "", p, f, w = null;
|
|
19968
20019
|
await Qe("beforeSnap", r), await Qe("beforeClone", r);
|
|
19969
|
-
let u =
|
|
20020
|
+
let u = G0(r.element);
|
|
19970
20021
|
try {
|
|
19971
|
-
({ clone: l, classCSS: c, styleCache: s } = await
|
|
20022
|
+
({ clone: l, classCSS: c, styleCache: s } = await D0(r.element, r.options)), !i && l && (w = tf(r.element, l)), !o && l && B0(r.element, l);
|
|
19972
20023
|
} finally {
|
|
19973
20024
|
u();
|
|
19974
20025
|
}
|
|
19975
|
-
if (r = { clone: l, classCSS: c, styleCache: s, ...r }, await Qe("afterClone", r),
|
|
20026
|
+
if (r = { clone: l, classCSS: c, styleCache: s, ...r }, await Qe("afterClone", r), V0(r.clone), ((T = r.options) == null ? void 0 : T.excludeMode) === "remove")
|
|
19976
20027
|
try {
|
|
19977
|
-
|
|
20028
|
+
Y0(r.element, r.clone, r.styleCache);
|
|
19978
20029
|
} catch (v) {
|
|
19979
20030
|
console.warn("[snapdom] shrink pass failed:", v);
|
|
19980
20031
|
}
|
|
19981
20032
|
try {
|
|
19982
|
-
await
|
|
20033
|
+
await bg(r.clone, r.element);
|
|
19983
20034
|
} catch {
|
|
19984
20035
|
}
|
|
19985
20036
|
await new Promise((v) => {
|
|
19986
20037
|
nt(async () => {
|
|
19987
|
-
await
|
|
20038
|
+
await A0(r.clone, r.options), v();
|
|
19988
20039
|
}, { fast: a });
|
|
19989
20040
|
}), await new Promise((v) => {
|
|
19990
20041
|
nt(async () => {
|
|
19991
|
-
await
|
|
20042
|
+
await Fg(r.element, r.clone, r.styleCache, r.options), v();
|
|
19992
20043
|
}, { fast: a });
|
|
19993
20044
|
}), e.embedFonts && await new Promise((v) => {
|
|
19994
20045
|
nt(async () => {
|
|
19995
|
-
let M =
|
|
20046
|
+
let M = Ig(r.element), L = Ag(r.element);
|
|
19996
20047
|
if (Ba()) {
|
|
19997
20048
|
let z = new Set(Array.from(M).map((S) => String(S).split("__")[0]).filter(Boolean));
|
|
19998
|
-
await
|
|
20049
|
+
await Gg(z, 1);
|
|
19999
20050
|
}
|
|
20000
|
-
d = await
|
|
20051
|
+
d = await Dg({ required: M, usedCodepoints: L, preCached: !1, exclude: r.options.excludeFonts, useProxy: r.options.useProxy }), v();
|
|
20001
20052
|
}, { fast: a });
|
|
20002
20053
|
});
|
|
20003
|
-
let h =
|
|
20054
|
+
let h = ng(r.clone).sort(), g = h.join(",");
|
|
20004
20055
|
V.baseStyle.has(g) ? m = V.baseStyle.get(g) : await new Promise((v) => {
|
|
20005
20056
|
nt(() => {
|
|
20006
|
-
m =
|
|
20057
|
+
m = sg(h), V.baseStyle.set(g, m), v();
|
|
20007
20058
|
}, { fast: a });
|
|
20008
20059
|
}), r = { fontsCSS: d, baseCSS: m, ...r }, await Qe("beforeRender", r), await new Promise((v) => {
|
|
20009
20060
|
nt(() => {
|
|
20010
20061
|
var Ye;
|
|
20011
20062
|
let M = getComputedStyle(r.element), L = r.element.getBoundingClientRect(), z = Math.max(1, ce(r.element.offsetWidth || parseFloat(M.width) || L.width || 1)), S = Math.max(1, ce(r.element.offsetHeight || parseFloat(M.height) || L.height || 1));
|
|
20012
20063
|
if (((Ye = r.options) == null ? void 0 : Ye.excludeMode) === "remove") {
|
|
20013
|
-
let U =
|
|
20064
|
+
let U = J0(r.element, r.options);
|
|
20014
20065
|
Number.isFinite(U) && U > 0 && (S = Math.max(1, Math.min(S, ce(U + 1))));
|
|
20015
20066
|
}
|
|
20016
20067
|
let D = (U, xe = NaN) => {
|
|
@@ -20022,13 +20073,13 @@ async function br(t, e) {
|
|
|
20022
20073
|
if (!i && w && Number.isFinite(w.a)) {
|
|
20023
20074
|
let U = { a: w.a, b: w.b || 0, c: w.c || 0, d: w.d || 1, e: 0, f: 0 }, xe = Qi(z, S, U, 0, 0);
|
|
20024
20075
|
pe = ce(xe.minX), G = ce(xe.minY), J = ce(xe.maxX), K = ce(xe.maxY);
|
|
20025
|
-
} else if (i &&
|
|
20026
|
-
let U = M.transform && M.transform !== "none" ? M.transform : "", xe =
|
|
20076
|
+
} else if (i && sf(r.element)) {
|
|
20077
|
+
let U = M.transform && M.transform !== "none" ? M.transform : "", xe = of(r.element), Ge = lf({ baseTransform: U, rotate: xe.rotate || "0deg", scale: xe.scale, translate: xe.translate }), { ox: Oe, oy: Ve } = af(M, z, S), te = Ge.is2D ? Ge : new DOMMatrix(Ge.toString()), Be = Qi(z, S, te, Oe, Ve);
|
|
20027
20078
|
pe = ce(Be.minX), G = ce(Be.minY), J = ce(Be.maxX), K = ce(Be.maxY);
|
|
20028
20079
|
}
|
|
20029
|
-
let oe =
|
|
20080
|
+
let oe = K0(M), Y = q0(M), H = Q0(M), ee = ef(M), F = o ? { top: ce(oe.top + Y.top + H.top + ee.bleed.top), right: ce(oe.right + Y.right + H.right + ee.bleed.right), bottom: ce(oe.bottom + Y.bottom + H.bottom + ee.bleed.bottom), left: ce(oe.left + Y.left + H.left + ee.bleed.left) } : { top: 0, right: 0, bottom: 0, left: 0 };
|
|
20030
20081
|
pe = ce(pe - F.left), G = ce(G - F.top), J = ce(J + F.right), K = ce(K + F.bottom);
|
|
20031
|
-
let ne = Math.max(1, ce(J - pe)), fe = Math.max(1, ce(K - G)), ke = q || ae ? ce(X / z) : 1, ze = ae || q ? ce(O / S) : 1, me = Math.max(1, ce(ne * ke)),
|
|
20082
|
+
let ne = Math.max(1, ce(J - pe)), fe = Math.max(1, ce(K - G)), ke = q || ae ? ce(X / z) : 1, ze = ae || q ? ce(O / S) : 1, me = Math.max(1, ce(ne * ke)), be = Math.max(1, ce(fe * ze)), _e = "http://www.w3.org/2000/svg", Re = Ba() ? 1 : 0, Q = ce(Re + (i ? 0 : 1)), de = document.createElementNS(_e, "foreignObject"), He = ce(pe), Ee = ce(G);
|
|
20032
20083
|
de.setAttribute("x", String(ce(-(He - Q)))), de.setAttribute("y", String(ce(-(Ee - Q)))), de.setAttribute("width", String(ce(z + Q * 2))), de.setAttribute("height", String(ce(S + Q * 2))), de.style.overflow = "visible";
|
|
20033
20084
|
let Me = document.createElement("style");
|
|
20034
20085
|
Me.textContent = r.baseCSS + r.fontsCSS + "svg{overflow:visible;} foreignObject{overflow:visible;}" + r.classCSS, de.appendChild(Me);
|
|
@@ -20036,17 +20087,17 @@ async function br(t, e) {
|
|
|
20036
20087
|
Ae.setAttribute("xmlns", "http://www.w3.org/1999/xhtml"), Ae.style.width = `${ce(z)}px`, Ae.style.height = `${ce(S)}px`, Ae.style.overflow = "visible", r.clone.setAttribute("xmlns", "http://www.w3.org/1999/xhtml"), Ae.appendChild(r.clone), de.appendChild(Ae);
|
|
20037
20088
|
let le = new XMLSerializer().serializeToString(de), Pe = ce(ne + Q * 2), ue = ce(fe + Q * 2), we = q || ae;
|
|
20038
20089
|
e.meta = { w0: z, h0: S, vbW: Pe, vbH: ue, targetW: X, targetH: O };
|
|
20039
|
-
let Ze = Ba() && we ? Pe : ce(me + Q * 2), Ue = Ba() && we ? ue : ce(
|
|
20090
|
+
let Ze = Ba() && we ? Pe : ce(me + Q * 2), Ue = Ba() && we ? ue : ce(be + Q * 2);
|
|
20040
20091
|
f = `<svg xmlns="${_e}" width="${Ze}" height="${Ue}" viewBox="0 0 ${Pe} ${ue}">` + le + "</svg>", p = `data:image/svg+xml;charset=utf-8,${encodeURIComponent(f)}`, r = { svgString: f, dataURL: p, ...r }, v();
|
|
20041
20092
|
}, { fast: a });
|
|
20042
20093
|
}), await Qe("afterRender", r);
|
|
20043
20094
|
let _ = document.getElementById("snapdom-sandbox");
|
|
20044
20095
|
return _ && _.style.position === "absolute" && _.remove(), r.dataURL;
|
|
20045
20096
|
}
|
|
20046
|
-
function
|
|
20047
|
-
return
|
|
20097
|
+
function sf(t) {
|
|
20098
|
+
return nf(t);
|
|
20048
20099
|
}
|
|
20049
|
-
function
|
|
20100
|
+
function cf(t) {
|
|
20050
20101
|
if (typeof t == "string") {
|
|
20051
20102
|
let e = t.toLowerCase().trim();
|
|
20052
20103
|
if (e === "disabled" || e === "full" || e === "auto" || e === "soft")
|
|
@@ -20054,80 +20105,80 @@ function rf(t) {
|
|
|
20054
20105
|
}
|
|
20055
20106
|
return "soft";
|
|
20056
20107
|
}
|
|
20057
|
-
function
|
|
20108
|
+
function mf(t = {}) {
|
|
20058
20109
|
let e = t.format ?? "png";
|
|
20059
20110
|
e === "jpg" && (e = "jpeg");
|
|
20060
|
-
let a =
|
|
20111
|
+
let a = cf(t.cache);
|
|
20061
20112
|
return { debug: t.debug ?? !1, fast: t.fast ?? !0, scale: t.scale ?? 1, exclude: t.exclude ?? [], excludeMode: t.excludeMode ?? "hide", filter: t.filter ?? null, filterMode: t.filterMode ?? "hide", placeholders: t.placeholders !== !1, embedFonts: t.embedFonts ?? !1, iconFonts: Array.isArray(t.iconFonts) ? t.iconFonts : t.iconFonts ? [t.iconFonts] : [], localFonts: Array.isArray(t.localFonts) ? t.localFonts : [], excludeFonts: t.excludeFonts ?? void 0, fallbackURL: t.fallbackURL ?? void 0, cache: a, useProxy: typeof t.useProxy == "string" ? t.useProxy : "", width: t.width ?? null, height: t.height ?? null, format: e, type: t.type ?? "svg", quality: t.quality ?? 0.92, dpr: t.dpr ?? (window.devicePixelRatio || 1), backgroundColor: t.backgroundColor ?? (["jpeg", "webp"].includes(e) ? "#ffffff" : null), filename: t.filename ?? "snapDOM", outerTransforms: t.outerTransforms ?? !0, outerShadows: t.outerShadows ?? !1 };
|
|
20062
20113
|
}
|
|
20063
|
-
function
|
|
20064
|
-
return
|
|
20114
|
+
function df(...t) {
|
|
20115
|
+
return Ng(...t), Se;
|
|
20065
20116
|
}
|
|
20066
|
-
var Se = Object.assign(
|
|
20067
|
-
async function
|
|
20117
|
+
var Se = Object.assign(hf, { plugins: df }), wr = Symbol("snapdom.internal"), qe = Symbol("snapdom.internal.silent"), uo = !1;
|
|
20118
|
+
async function hf(t, e) {
|
|
20068
20119
|
if (!t)
|
|
20069
20120
|
throw new Error("Element cannot be null or undefined");
|
|
20070
|
-
let a =
|
|
20071
|
-
if (
|
|
20121
|
+
let a = mf(e);
|
|
20122
|
+
if (Bg(a, e && e.plugins), Ba() && (a.embedFonts === !0 || uf(t)))
|
|
20072
20123
|
for (let i = 0; i < 3; i++)
|
|
20073
20124
|
try {
|
|
20074
|
-
await
|
|
20125
|
+
await pf(t, e), uo = !1;
|
|
20075
20126
|
} catch {
|
|
20076
20127
|
}
|
|
20077
|
-
return a.iconFonts && a.iconFonts.length > 0 &&
|
|
20128
|
+
return a.iconFonts && a.iconFonts.length > 0 && dg(a.iconFonts), a.snap || (a.snap = { toPng: (i, o) => Se.toPng(i, o), toSvg: (i, o) => Se.toSvg(i, o) }), Se.capture(t, a, wr);
|
|
20078
20129
|
}
|
|
20079
20130
|
Se.capture = async (t, e, a) => {
|
|
20080
20131
|
if (a !== wr)
|
|
20081
20132
|
throw new Error("[snapdom.capture] is internal. Use snapdom(...) instead.");
|
|
20082
20133
|
let i = await br(t, e), o = { img: async (u, h) => {
|
|
20083
|
-
let { toImg: g } = await import("./toImg-
|
|
20134
|
+
let { toImg: g } = await import("./toImg-aca4c3d8.js");
|
|
20084
20135
|
return g(i, { ...u, ...h || {} });
|
|
20085
20136
|
}, svg: async (u, h) => {
|
|
20086
|
-
let { toSvg: g } = await import("./toImg-
|
|
20137
|
+
let { toSvg: g } = await import("./toImg-aca4c3d8.js");
|
|
20087
20138
|
return g(i, { ...u, ...h || {} });
|
|
20088
20139
|
}, canvas: async (u, h) => {
|
|
20089
|
-
let { toCanvas: g } = await import("./toCanvas-
|
|
20140
|
+
let { toCanvas: g } = await import("./toCanvas-15a7084f.js");
|
|
20090
20141
|
return g(i, { ...u, ...h || {} });
|
|
20091
20142
|
}, blob: async (u, h) => {
|
|
20092
|
-
let { toBlob: g } = await import("./toBlob-
|
|
20143
|
+
let { toBlob: g } = await import("./toBlob-a88df86c.js");
|
|
20093
20144
|
return g(i, { ...u, ...h || {} });
|
|
20094
20145
|
}, png: async (u, h) => {
|
|
20095
|
-
let { rasterize: g } = await import("./rasterize-JS5G2XHH-
|
|
20146
|
+
let { rasterize: g } = await import("./rasterize-JS5G2XHH-bac43c3a.js");
|
|
20096
20147
|
return g(i, { ...u, ...h || {}, format: "png" });
|
|
20097
20148
|
}, jpeg: async (u, h) => {
|
|
20098
|
-
let { rasterize: g } = await import("./rasterize-JS5G2XHH-
|
|
20149
|
+
let { rasterize: g } = await import("./rasterize-JS5G2XHH-bac43c3a.js");
|
|
20099
20150
|
return g(i, { ...u, ...h || {}, format: "jpeg" });
|
|
20100
20151
|
}, webp: async (u, h) => {
|
|
20101
|
-
let { rasterize: g } = await import("./rasterize-JS5G2XHH-
|
|
20152
|
+
let { rasterize: g } = await import("./rasterize-JS5G2XHH-bac43c3a.js");
|
|
20102
20153
|
return g(i, { ...u, ...h || {}, format: "webp" });
|
|
20103
20154
|
}, download: async (u, h) => {
|
|
20104
|
-
let { download: g } = await import("./download-
|
|
20155
|
+
let { download: g } = await import("./download-b3f5b8cc.js");
|
|
20105
20156
|
return g(i, { ...u, ...h || {} });
|
|
20106
20157
|
} }, r = { ...e, export: { url: i }, exports: { svg: async (u) => {
|
|
20107
|
-
let { toSvg: h } = await import("./toImg-
|
|
20158
|
+
let { toSvg: h } = await import("./toImg-aca4c3d8.js");
|
|
20108
20159
|
return h(i, { ...e, ...u || {}, [qe]: !0 });
|
|
20109
20160
|
}, canvas: async (u) => {
|
|
20110
|
-
let { toCanvas: h } = await import("./toCanvas-
|
|
20161
|
+
let { toCanvas: h } = await import("./toCanvas-15a7084f.js");
|
|
20111
20162
|
return h(i, { ...e, ...u || {}, [qe]: !0 });
|
|
20112
20163
|
}, png: async (u) => {
|
|
20113
|
-
let { rasterize: h } = await import("./rasterize-JS5G2XHH-
|
|
20164
|
+
let { rasterize: h } = await import("./rasterize-JS5G2XHH-bac43c3a.js");
|
|
20114
20165
|
return h(i, { ...e, ...u || {}, format: "png", [qe]: !0 });
|
|
20115
20166
|
}, jpeg: async (u) => {
|
|
20116
|
-
let { rasterize: h } = await import("./rasterize-JS5G2XHH-
|
|
20167
|
+
let { rasterize: h } = await import("./rasterize-JS5G2XHH-bac43c3a.js");
|
|
20117
20168
|
return h(i, { ...e, ...u || {}, format: "jpeg", [qe]: !0 });
|
|
20118
20169
|
}, jpg: async (u) => {
|
|
20119
|
-
let { rasterize: h } = await import("./rasterize-JS5G2XHH-
|
|
20170
|
+
let { rasterize: h } = await import("./rasterize-JS5G2XHH-bac43c3a.js");
|
|
20120
20171
|
return h(i, { ...e, ...u || {}, format: "jpeg", [qe]: !0 });
|
|
20121
20172
|
}, webp: async (u) => {
|
|
20122
|
-
let { rasterize: h } = await import("./rasterize-JS5G2XHH-
|
|
20173
|
+
let { rasterize: h } = await import("./rasterize-JS5G2XHH-bac43c3a.js");
|
|
20123
20174
|
return h(i, { ...e, ...u || {}, format: "webp", [qe]: !0 });
|
|
20124
20175
|
}, blob: async (u) => {
|
|
20125
|
-
let { toBlob: h } = await import("./toBlob-
|
|
20176
|
+
let { toBlob: h } = await import("./toBlob-a88df86c.js");
|
|
20126
20177
|
return h(i, { ...e, ...u || {}, [qe]: !0 });
|
|
20127
20178
|
}, img: async (u) => {
|
|
20128
|
-
let { toImg: h } = await import("./toImg-
|
|
20179
|
+
let { toImg: h } = await import("./toImg-aca4c3d8.js");
|
|
20129
20180
|
return h(i, { ...e, ...u || {}, [qe]: !0 });
|
|
20130
|
-
} } }, l = await
|
|
20181
|
+
} } }, l = await Wg("defineExports", r), c = Object.assign({}, ...l.filter((u) => u && typeof u == "object")), s = { ...o, ...c };
|
|
20131
20182
|
s.jpeg && !s.jpg && (s.jpg = (u, h) => s.jpeg(u, h));
|
|
20132
20183
|
function d(u, h) {
|
|
20133
20184
|
let g = { ...e, ...h || {} };
|
|
@@ -20162,7 +20213,7 @@ Se.toPng = (t, e) => Se(t, { ...e, format: "png" }).then((a) => a.toPng());
|
|
|
20162
20213
|
Se.toJpg = (t, e) => Se(t, { ...e, format: "jpeg" }).then((a) => a.toJpg());
|
|
20163
20214
|
Se.toWebp = (t, e) => Se(t, { ...e, format: "webp" }).then((a) => a.toWebp());
|
|
20164
20215
|
Se.download = (t, e) => Se(t, e).then((a) => a.download());
|
|
20165
|
-
async function
|
|
20216
|
+
async function pf(t, e) {
|
|
20166
20217
|
if (uo)
|
|
20167
20218
|
return;
|
|
20168
20219
|
let a = { ...e, fast: !0, embedFonts: !0, scale: 0.2 }, i;
|
|
@@ -20199,7 +20250,7 @@ async function cf(t, e) {
|
|
|
20199
20250
|
}
|
|
20200
20251
|
}), uo = !0;
|
|
20201
20252
|
}
|
|
20202
|
-
function
|
|
20253
|
+
function uf(t) {
|
|
20203
20254
|
let e = document.createTreeWalker(t, NodeFilter.SHOW_ELEMENT);
|
|
20204
20255
|
for (; e.nextNode(); ) {
|
|
20205
20256
|
let a = e.currentNode, i = getComputedStyle(a), o = i.backgroundImage && i.backgroundImage !== "none", r = i.maskImage && i.maskImage !== "none" || i.webkitMaskImage && i.webkitMaskImage !== "none";
|
|
@@ -20208,7 +20259,7 @@ function mf(t) {
|
|
|
20208
20259
|
}
|
|
20209
20260
|
return !1;
|
|
20210
20261
|
}
|
|
20211
|
-
class
|
|
20262
|
+
class gf {
|
|
20212
20263
|
constructor() {
|
|
20213
20264
|
ve(this, "frames", []);
|
|
20214
20265
|
ve(this, "captureRect", null);
|
|
@@ -20381,7 +20432,7 @@ class df {
|
|
|
20381
20432
|
return this._frameDelay;
|
|
20382
20433
|
}
|
|
20383
20434
|
}
|
|
20384
|
-
const
|
|
20435
|
+
const ff = {
|
|
20385
20436
|
name: "IdmCapture",
|
|
20386
20437
|
props: {
|
|
20387
20438
|
isPlaying: {
|
|
@@ -20487,7 +20538,7 @@ const hf = {
|
|
|
20487
20538
|
},
|
|
20488
20539
|
startRecord() {
|
|
20489
20540
|
var t, e, a;
|
|
20490
|
-
this.frameCount = 0, this.recorder = new
|
|
20541
|
+
this.frameCount = 0, this.recorder = new gf(), (t = this.recorder) == null || t.setArea(this.selection), (e = this.recorder) == null || e.setFrameDelay(this.frequency), (a = this.recorder) == null || a.startRecording(), console.log("[BottomBar] 录制准备就绪");
|
|
20491
20542
|
},
|
|
20492
20543
|
async captureCurrentFrame() {
|
|
20493
20544
|
var t, e, a;
|
|
@@ -20532,19 +20583,19 @@ const hf = {
|
|
|
20532
20583
|
this.recorder.download(this.blob, e);
|
|
20533
20584
|
}
|
|
20534
20585
|
}
|
|
20535
|
-
},
|
|
20586
|
+
}, yf = { class: "capture-container" }, bf = {
|
|
20536
20587
|
key: 0,
|
|
20537
20588
|
class: "drag-tips text-h4"
|
|
20538
|
-
},
|
|
20589
|
+
}, wf = { class: "size-hint mt-2 ml-2 text-body-2 px-2 py-1 rounded font-weight-bold bg-background" }, xf = { class: "size-hint mt-2 ml-2 text-body-2 px-2 py-1 rounded font-weight-bold bg-background" }, vf = { class: "text-body-2" }, kf = {
|
|
20539
20590
|
key: 0,
|
|
20540
20591
|
class: "py-1 px-2 d-flex align-center justify-center ga-2"
|
|
20541
|
-
},
|
|
20592
|
+
}, _f = { class: "text-body-2" }, Lf = {
|
|
20542
20593
|
key: 1,
|
|
20543
20594
|
class: "py-1 px-2 d-flex align-center justify-center ga-2"
|
|
20544
|
-
},
|
|
20545
|
-
function
|
|
20595
|
+
}, zf = { class: "text-body-2" };
|
|
20596
|
+
function Cf(t, e, a, i, o, r) {
|
|
20546
20597
|
const l = P("VBtn");
|
|
20547
|
-
return k(), I("div",
|
|
20598
|
+
return k(), I("div", yf, [
|
|
20548
20599
|
o.actionStatus > 0 && o.actionStatus < 4 ? (k(), I("div", {
|
|
20549
20600
|
key: 0,
|
|
20550
20601
|
class: "capture-selector",
|
|
@@ -20552,13 +20603,13 @@ function kf(t, e, a, i, o, r) {
|
|
|
20552
20603
|
onMousemove: e[3] || (e[3] = (...c) => r.handleMouseMove && r.handleMouseMove(...c)),
|
|
20553
20604
|
onMouseup: e[4] || (e[4] = (...c) => r.handleMouseUp && r.handleMouseUp(...c))
|
|
20554
20605
|
}, [
|
|
20555
|
-
o.actionStatus === 1 ? (k(), I("div",
|
|
20606
|
+
o.actionStatus === 1 ? (k(), I("div", bf, y(t.$t("tips.crossHairText")), 1)) : N("", !0),
|
|
20556
20607
|
o.actionStatus >= 2 ? (k(), I("div", {
|
|
20557
20608
|
key: 1,
|
|
20558
20609
|
class: "selection-box",
|
|
20559
20610
|
style: he(r.selectionStyle)
|
|
20560
20611
|
}, [
|
|
20561
|
-
n("div",
|
|
20612
|
+
n("div", wf, y(Math.round(o.selection.width)) + " × " + y(Math.round(o.selection.height)), 1),
|
|
20562
20613
|
o.actionStatus === 3 ? (k(), I("div", {
|
|
20563
20614
|
key: 0,
|
|
20564
20615
|
class: "action-buttons px-2 rounded font-weight-bold bg-background d-flex justify-end ga-4",
|
|
@@ -20589,8 +20640,8 @@ function kf(t, e, a, i, o, r) {
|
|
|
20589
20640
|
class: ge(["capture-frame", { recording: o.actionStatus === 5 }]),
|
|
20590
20641
|
style: he(r.selectionStyle)
|
|
20591
20642
|
}, [
|
|
20592
|
-
n("div",
|
|
20593
|
-
n("div",
|
|
20643
|
+
n("div", xf, [
|
|
20644
|
+
n("div", vf, y(o.selection.width) + " × " + y(o.selection.height), 1)
|
|
20594
20645
|
]),
|
|
20595
20646
|
n("div", {
|
|
20596
20647
|
class: "action-status mt-2 px-2 rounded font-weight-bold bg-background d-flex align-center justify-end ga-4",
|
|
@@ -20599,22 +20650,22 @@ function kf(t, e, a, i, o, r) {
|
|
|
20599
20650
|
onMouseup: e[6] || (e[6] = Le(() => {
|
|
20600
20651
|
}, ["stop"]))
|
|
20601
20652
|
}, [
|
|
20602
|
-
o.actionStatus === 4 ? (k(), I("div",
|
|
20653
|
+
o.actionStatus === 4 ? (k(), I("div", kf, [
|
|
20603
20654
|
e[7] || (e[7] = n("div", { class: "dot bg-danger" }, null, -1)),
|
|
20604
|
-
n("div",
|
|
20655
|
+
n("div", _f, y(t.$t("tips.recordingText")), 1)
|
|
20605
20656
|
])) : N("", !0),
|
|
20606
|
-
o.actionStatus === 5 || o.actionStatus === 6 ? (k(), I("div",
|
|
20657
|
+
o.actionStatus === 5 || o.actionStatus === 6 ? (k(), I("div", Lf, [
|
|
20607
20658
|
e[8] || (e[8] = n("div", { class: "dot bg-success" }, null, -1)),
|
|
20608
|
-
n("div",
|
|
20659
|
+
n("div", zf, y(t.$t("tips.savingText")), 1)
|
|
20609
20660
|
])) : N("", !0)
|
|
20610
20661
|
], 32)
|
|
20611
20662
|
], 6)) : N("", !0)
|
|
20612
20663
|
]);
|
|
20613
20664
|
}
|
|
20614
|
-
const
|
|
20615
|
-
const
|
|
20665
|
+
const Mf = /* @__PURE__ */ ie(ff, [["render", Cf], ["__scopeId", "data-v-b2dd8527"]]);
|
|
20666
|
+
const Pf = {
|
|
20616
20667
|
name: "IdmBottomBar",
|
|
20617
|
-
components: { DateTimePicker: eo, IdmCapture:
|
|
20668
|
+
components: { DateTimePicker: eo, IdmCapture: Mf },
|
|
20618
20669
|
props: {
|
|
20619
20670
|
menuToggle: {
|
|
20620
20671
|
type: Object,
|
|
@@ -20745,19 +20796,19 @@ const Lf = {
|
|
|
20745
20796
|
this.$parent.$refs.idmWeatherLayers.handleMenuToggle();
|
|
20746
20797
|
}
|
|
20747
20798
|
}
|
|
20748
|
-
},
|
|
20799
|
+
}, Sf = { class: "idm-bottom-bar-gl4" }, Tf = { class: "date-box d-flex ga-2 mr-2" }, Rf = { class: "play-btns-box d-flex justify-center align-center cursor-pointer ga-1" }, Df = {
|
|
20749
20800
|
key: 0,
|
|
20750
20801
|
class: "iconfont icon-record"
|
|
20751
|
-
},
|
|
20802
|
+
}, If = {
|
|
20752
20803
|
key: 1,
|
|
20753
20804
|
class: "iconfont icon-stop-record text-danger"
|
|
20754
|
-
},
|
|
20805
|
+
}, Af = { class: "fast-weathers-box d-flex justify-center align-center ga-2 cursor-pointer" }, Gf = { class: "model-box d-flex justify-center align-center ga-2 my-2" }, Ff = {
|
|
20755
20806
|
key: 0,
|
|
20756
20807
|
class: "list d-flex flex-wrap pa-2 rounded ga-2"
|
|
20757
|
-
},
|
|
20758
|
-
function
|
|
20808
|
+
}, Nf = ["onClick"], Wf = { class: "btn-box d-flex justify-start align-center rounded ga-2 py-1 px-3" }, Ef = { class: "text-body-1" };
|
|
20809
|
+
function Bf(t, e, a, i, o, r) {
|
|
20759
20810
|
const l = P("IdmCapture"), c = P("DateTimePicker"), s = P("VListItemTitle"), d = P("VListItem"), m = P("VList"), p = P("VMenu"), f = P("VBtn"), w = P("VDivider"), u = P("VTooltip");
|
|
20760
|
-
return k(), I("div",
|
|
20811
|
+
return k(), I("div", Sf, [
|
|
20761
20812
|
b(l, $({
|
|
20762
20813
|
ref: "capture",
|
|
20763
20814
|
isPlaying: !o.paused,
|
|
@@ -20772,7 +20823,7 @@ function Ff(t, e, a, i, o, r) {
|
|
|
20772
20823
|
class: "timeline-box px-2 d-flex justify-start align-center rounded",
|
|
20773
20824
|
style: he({ right: o.right + 146 + "px", bottom: Object.values(o.show).includes(!0) ? "10px" : "-100px" })
|
|
20774
20825
|
}, [
|
|
20775
|
-
n("div",
|
|
20826
|
+
n("div", Tf, [
|
|
20776
20827
|
b(c, $({
|
|
20777
20828
|
ref: "dateTimePicker",
|
|
20778
20829
|
"date-time": o.currentDateTimeZ,
|
|
@@ -20837,7 +20888,7 @@ function Ff(t, e, a, i, o, r) {
|
|
|
20837
20888
|
class: "mx-2 my-3",
|
|
20838
20889
|
style: { height: "16px" }
|
|
20839
20890
|
}),
|
|
20840
|
-
n("div",
|
|
20891
|
+
n("div", Rf, [
|
|
20841
20892
|
b(u, {
|
|
20842
20893
|
text: t.$t("actions.record"),
|
|
20843
20894
|
location: "top",
|
|
@@ -20853,7 +20904,7 @@ function Ff(t, e, a, i, o, r) {
|
|
|
20853
20904
|
onClick: e[5] || (e[5] = (g) => o.gifEnabled = !o.gifEnabled)
|
|
20854
20905
|
}), {
|
|
20855
20906
|
default: x(() => [
|
|
20856
|
-
o.gifEnabled ? (k(), I("i",
|
|
20907
|
+
o.gifEnabled ? (k(), I("i", If)) : (k(), I("i", Df))
|
|
20857
20908
|
]),
|
|
20858
20909
|
_: 2
|
|
20859
20910
|
}, 1040)
|
|
@@ -20981,7 +21032,7 @@ function Ff(t, e, a, i, o, r) {
|
|
|
20981
21032
|
class: "mx-2 my-3",
|
|
20982
21033
|
style: { height: "16px" }
|
|
20983
21034
|
}),
|
|
20984
|
-
n("div",
|
|
21035
|
+
n("div", Af, [
|
|
20985
21036
|
b(u, {
|
|
20986
21037
|
text: t.$t("weather.windBarbs"),
|
|
20987
21038
|
location: "top"
|
|
@@ -21085,7 +21136,7 @@ function Ff(t, e, a, i, o, r) {
|
|
|
21085
21136
|
class: "mx-2 mr-3 my-3",
|
|
21086
21137
|
style: { height: "16px" }
|
|
21087
21138
|
}),
|
|
21088
|
-
n("div",
|
|
21139
|
+
n("div", Gf, [
|
|
21089
21140
|
b(f, {
|
|
21090
21141
|
text: "",
|
|
21091
21142
|
height: "30",
|
|
@@ -21118,14 +21169,14 @@ function Ff(t, e, a, i, o, r) {
|
|
|
21118
21169
|
class: "timezone-box d-flex flex-column justify-space-between align-end",
|
|
21119
21170
|
style: he({ right: o.right + "px" })
|
|
21120
21171
|
}, [
|
|
21121
|
-
o.showTimezone ? (k(), I("div",
|
|
21172
|
+
o.showTimezone ? (k(), I("div", Ff, [
|
|
21122
21173
|
(k(!0), I(Te, null, De(o.offsets, (h) => (k(), I("div", {
|
|
21123
21174
|
key: h,
|
|
21124
21175
|
class: "item rounded text-body-2 hover-active",
|
|
21125
21176
|
onClick: (g) => o.timeZone = h
|
|
21126
|
-
}, y(h < 0 ? h : "+" + h), 9,
|
|
21177
|
+
}, y(h < 0 ? h : "+" + h), 9, Nf))), 128))
|
|
21127
21178
|
])) : N("", !0),
|
|
21128
|
-
n("div",
|
|
21179
|
+
n("div", Wf, [
|
|
21129
21180
|
b(f, {
|
|
21130
21181
|
text: "",
|
|
21131
21182
|
variant: "flat",
|
|
@@ -21139,13 +21190,13 @@ function Ff(t, e, a, i, o, r) {
|
|
|
21139
21190
|
]),
|
|
21140
21191
|
_: 1
|
|
21141
21192
|
}),
|
|
21142
|
-
n("span",
|
|
21193
|
+
n("span", Ef, y(o.currentRealTime), 1)
|
|
21143
21194
|
])
|
|
21144
21195
|
], 4)
|
|
21145
21196
|
]);
|
|
21146
21197
|
}
|
|
21147
|
-
const
|
|
21148
|
-
const
|
|
21198
|
+
const Zf = /* @__PURE__ */ ie(Pf, [["render", Bf]]);
|
|
21199
|
+
const Of = {
|
|
21149
21200
|
name: "IdmTimePlayer",
|
|
21150
21201
|
components: { DateTimePicker: eo },
|
|
21151
21202
|
props: {
|
|
@@ -21253,14 +21304,14 @@ const Wf = {
|
|
|
21253
21304
|
this.step = Math.floor(e / this.frequency), this.animation = requestAnimationFrame(this.animateSpeeds);
|
|
21254
21305
|
}
|
|
21255
21306
|
}
|
|
21256
|
-
},
|
|
21257
|
-
function
|
|
21307
|
+
}, Vf = { class: "w-100 timeline-box d-flex justify-space-around align-center rounded px-2" };
|
|
21308
|
+
function jf(t, e, a, i, o, r) {
|
|
21258
21309
|
const l = P("VBtn"), c = P("DateTimePicker");
|
|
21259
21310
|
return k(), I("div", {
|
|
21260
21311
|
class: "idm-time-player-gl4 d-flex justify-center align-center",
|
|
21261
21312
|
style: he({ bottom: Object.values(o.show).includes(!0) ? a.playerBottom + "px" : "-100px" })
|
|
21262
21313
|
}, [
|
|
21263
|
-
n("div",
|
|
21314
|
+
n("div", Vf, [
|
|
21264
21315
|
b(l, {
|
|
21265
21316
|
size: "small",
|
|
21266
21317
|
density: "compact",
|
|
@@ -21353,7 +21404,7 @@ function Bf(t, e, a, i, o, r) {
|
|
|
21353
21404
|
])
|
|
21354
21405
|
], 4);
|
|
21355
21406
|
}
|
|
21356
|
-
const xr = /* @__PURE__ */ ie(
|
|
21407
|
+
const xr = /* @__PURE__ */ ie(Of, [["render", jf]]), Xf = {
|
|
21357
21408
|
name: "IdmGL4",
|
|
21358
21409
|
components: {
|
|
21359
21410
|
IdmOtherLayer: Ns,
|
|
@@ -21361,8 +21412,8 @@ const xr = /* @__PURE__ */ ie(Wf, [["render", Bf]]), Zf = {
|
|
|
21361
21412
|
IdmTropicals: ar,
|
|
21362
21413
|
IdmMeasure: kp,
|
|
21363
21414
|
IdmSpot: bp,
|
|
21364
|
-
IdmMarker:
|
|
21365
|
-
IdmBottomBar:
|
|
21415
|
+
IdmMarker: Yu,
|
|
21416
|
+
IdmBottomBar: Zf,
|
|
21366
21417
|
IdmTimePlayer: xr
|
|
21367
21418
|
},
|
|
21368
21419
|
props: {
|
|
@@ -21419,14 +21470,14 @@ const xr = /* @__PURE__ */ ie(Wf, [["render", Bf]]), Zf = {
|
|
|
21419
21470
|
}
|
|
21420
21471
|
},
|
|
21421
21472
|
methods: {}
|
|
21422
|
-
},
|
|
21473
|
+
}, Hf = {
|
|
21423
21474
|
ref: "mapHomeGl4",
|
|
21424
21475
|
class: "map-gl4-home",
|
|
21425
21476
|
id: "map-gl4-home"
|
|
21426
21477
|
};
|
|
21427
|
-
function
|
|
21478
|
+
function Yf(t, e, a, i, o, r) {
|
|
21428
21479
|
const l = P("IdmOtherLayer"), c = P("IdmWeatherLayer"), s = P("IdmTropicals"), d = P("IdmSpot"), m = P("IdmMeasure"), p = P("IdmMarker"), f = P("IdmBottomBar"), w = P("IdmTimePlayer");
|
|
21429
|
-
return k(), I("div",
|
|
21480
|
+
return k(), I("div", Hf, [
|
|
21430
21481
|
b(l, $({
|
|
21431
21482
|
ref: "idmOtherLayers",
|
|
21432
21483
|
simple: a.simple,
|
|
@@ -21519,8 +21570,8 @@ function Vf(t, e, a, i, o, r) {
|
|
|
21519
21570
|
}, t.$attrs), null, 16, ["playerBottom", "bgClass", "weather-check-list", "map-feather"])) : N("", !0)
|
|
21520
21571
|
], 512);
|
|
21521
21572
|
}
|
|
21522
|
-
const
|
|
21523
|
-
class
|
|
21573
|
+
const Uf = /* @__PURE__ */ ie(Xf, [["render", Yf]]);
|
|
21574
|
+
class $f {
|
|
21524
21575
|
constructor(e = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImNseTVudHJzYzAwNWUwbHBsZHkyaDRqczMiLCJyb2xlIjoxLCJuYW1lIjoiZmFrZUBvcm13eC5jb20iLCJwbGF0SWQiOiJnZDBtdDFkIiwiY29tcGFueSI6eyJpZCI6bnVsbCwiY2hpbGRyZW4iOltdfSwiaWF0IjoxNzIzMDI0MDI0LCJleHAiOjM5MzA1NDQwMjR9.RrKcdcMnq-FxBLJQ-i6lx2FscDE46y8EvHIemPW4HTg") {
|
|
21525
21576
|
ve(this, "originStyle");
|
|
21526
21577
|
ve(this, "mapboxStyle");
|
|
@@ -21528,7 +21579,7 @@ class Xf {
|
|
|
21528
21579
|
ve(this, "hi");
|
|
21529
21580
|
ve(this, "td");
|
|
21530
21581
|
ve(this, "windy");
|
|
21531
|
-
var a, i, o, r, l, c, s, d, m, p, f, w, u, h, g, _, T, v, M, L, z, S, D, A, E, X, O, q, ae, re, pe, G, J, K, oe, Y, H, ee, F, ne, fe, ke, ze, me,
|
|
21582
|
+
var a, i, o, r, l, c, s, d, m, p, f, w, u, h, g, _, T, v, M, L, z, S, D, A, E, X, O, q, ae, re, pe, G, J, K, oe, Y, H, ee, F, ne, fe, ke, ze, me, be, _e, Re, Q, de, He, Ee, Me, Ae, le, Pe, ue, we, Ze, Ue, Ye, U, xe, Ge, Oe, Ve, te, Be, se, at, ot, it, Ne, mt, dt, ht, pt, ut, gt, ft, yt, bt, wt, xt, vt, kt, _t, Lt, zt, Ct, Mt, Pt, St, Tt, Rt, Dt, It, At, Gt, Ft, Nt, Wt, Et, Bt, Zt, Ot, Vt, jt, Xt, Ht, Yt, Ut, Jt, Kt, qt, Qt, ea, ta, aa, oa, ia, ra, la, na, sa, ca, ma, da, ha, pa, ua, ga, fa, ya, ba, wa, xa, va, ka, _a, La, za, Ca, Ma, Pa, Sa, Ta, Ra, Da, Ia, Aa, Ga, Fa, xo, vo, ko, _o, Lo, zo, Co, Mo, Po, So, To, Ro, Do, Io, Ao, Go, Fo, No, Wo, Eo, Bo, Zo, Oo, Vo, jo, Xo, Ho, Yo, Uo, $o, Jo, Ko, qo, Qo, ei, ti, ai, oi, ii, ri, li, ni, si, ci, mi, di, hi, pi, ui, gi, fi, yi, bi, wi, xi, vi, ki, _i, Li, zi, Ci, Mi, Pi, Si, Ti, Ri;
|
|
21532
21583
|
this.i4 = {
|
|
21533
21584
|
source: {
|
|
21534
21585
|
type: "raster",
|
|
@@ -40084,7 +40135,7 @@ class Xf {
|
|
|
40084
40135
|
(ne = (F = this.originStyle) == null ? void 0 : F.light.layers) == null ? void 0 : ne.find((C) => C.id === "china-route-label"),
|
|
40085
40136
|
(ke = (fe = this.originStyle) == null ? void 0 : fe.light.layers) == null ? void 0 : ke.find((C) => C.id === "admin-0-boundary-bg"),
|
|
40086
40137
|
(me = (ze = this.originStyle) == null ? void 0 : ze.light.layers) == null ? void 0 : me.find((C) => C.id === "admin-0-boundary"),
|
|
40087
|
-
(_e = (
|
|
40138
|
+
(_e = (be = this.originStyle) == null ? void 0 : be.light.layers) == null ? void 0 : _e.find((C) => C.id === "admin-0-boundary-disputed"),
|
|
40088
40139
|
(Q = (Re = this.originStyle) == null ? void 0 : Re.light.layers) == null ? void 0 : Q.find((C) => C.id === "country-label"),
|
|
40089
40140
|
(He = (de = this.originStyle) == null ? void 0 : de.light.layers) == null ? void 0 : He.find((C) => C.id === "continent-label"),
|
|
40090
40141
|
(Me = (Ee = this.originStyle) == null ? void 0 : Ee.light.layers) == null ? void 0 : Me.find((C) => C.id === "tide-stations"),
|
|
@@ -40278,7 +40329,7 @@ class Xf {
|
|
|
40278
40329
|
};
|
|
40279
40330
|
}
|
|
40280
40331
|
}
|
|
40281
|
-
const
|
|
40332
|
+
const Jf = {
|
|
40282
40333
|
name: "MapInitial",
|
|
40283
40334
|
props: {
|
|
40284
40335
|
token: {
|
|
@@ -40351,8 +40402,8 @@ const Hf = {
|
|
|
40351
40402
|
},
|
|
40352
40403
|
methods: {
|
|
40353
40404
|
async initOnlineMap() {
|
|
40354
|
-
this.helper = new
|
|
40355
|
-
const t = new
|
|
40405
|
+
this.helper = new $f(this.token), ye.accessToken = "pk.eyJ1IjoibmVhdGNoZW5oZW5nIiwiYSI6ImNsdXM3cnBmODBsemgycW1vaXc1bjV6bXMifQ.w6fqHGRbhNhLvm0LnX4ZVw";
|
|
40406
|
+
const t = new ye.Map({
|
|
40356
40407
|
container: "map",
|
|
40357
40408
|
// style: 'mapbox://styles/neatchenheng/cmd894dwn036m01rf7anc0k0d', //light
|
|
40358
40409
|
// style: 'mapbox://styles/neatchenheng/cmdqwez32005b01re2w0k3zk4', // dark
|
|
@@ -40381,7 +40432,7 @@ const Hf = {
|
|
|
40381
40432
|
},
|
|
40382
40433
|
addScaleControl() {
|
|
40383
40434
|
var e;
|
|
40384
|
-
this.map.addControl(new
|
|
40435
|
+
this.map.addControl(new ye.ScaleControl({ maxWidth: 120, unit: "nautical" }), "bottom-left");
|
|
40385
40436
|
const t = (e = document.getElementsByClassName("mapboxgl-ctrl-scale")) == null ? void 0 : e[0];
|
|
40386
40437
|
t && (t.className = "mapboxgl-ctrl-scale " + this.mapFeather);
|
|
40387
40438
|
},
|
|
@@ -40394,11 +40445,11 @@ const Hf = {
|
|
|
40394
40445
|
this.zoom > 2 && (this.zoom = Math.floor(this.zoom) - 1, (t = this.map) == null || t.flyTo({ zoom: this.zoom, duration: 500 }));
|
|
40395
40446
|
}
|
|
40396
40447
|
}
|
|
40397
|
-
},
|
|
40448
|
+
}, Kf = { class: "v-btn--variant-elevated rounded" }, qf = { class: "v-btn--variant-elevated rounded" }, Qf = { class: "zoom" }, e1 = {
|
|
40398
40449
|
key: 2,
|
|
40399
40450
|
class: "position-absolute left-0 bottom-0 ma-2 my-1 text-caption text-label opacity-70"
|
|
40400
40451
|
};
|
|
40401
|
-
function
|
|
40452
|
+
function t1(t, e, a, i, o, r) {
|
|
40402
40453
|
const l = P("VBtn");
|
|
40403
40454
|
return k(), I("div", {
|
|
40404
40455
|
id: "mapbox-initial-gl4",
|
|
@@ -40411,7 +40462,7 @@ function Kf(t, e, a, i, o, r) {
|
|
|
40411
40462
|
class: "menu-bar-box transition px-1 rounded d-flex flex-column pa-1 simple",
|
|
40412
40463
|
style: he({ top: a.top + 294 + "px", right: o.right + "px", height: "40px" })
|
|
40413
40464
|
}, [
|
|
40414
|
-
n("div",
|
|
40465
|
+
n("div", Kf, [
|
|
40415
40466
|
b(l, {
|
|
40416
40467
|
"min-width": "32",
|
|
40417
40468
|
width: "32",
|
|
@@ -40432,7 +40483,7 @@ function Kf(t, e, a, i, o, r) {
|
|
|
40432
40483
|
class: "menu-bar-box transition px-1 rounded d-flex flex-column",
|
|
40433
40484
|
style: he({ top: a.top + 308 + "px", right: o.right + "px", height: "112px" })
|
|
40434
40485
|
}, [
|
|
40435
|
-
n("div",
|
|
40486
|
+
n("div", qf, [
|
|
40436
40487
|
b(l, {
|
|
40437
40488
|
"min-width": "32",
|
|
40438
40489
|
width: "32",
|
|
@@ -40446,7 +40497,7 @@ function Kf(t, e, a, i, o, r) {
|
|
|
40446
40497
|
_: 1,
|
|
40447
40498
|
__: [1]
|
|
40448
40499
|
}, 8, ["onClick"]),
|
|
40449
|
-
n("div",
|
|
40500
|
+
n("div", Qf, y(o.zoom ? Math.floor(o.zoom) : 0), 1),
|
|
40450
40501
|
b(l, {
|
|
40451
40502
|
"min-width": "32",
|
|
40452
40503
|
width: "32",
|
|
@@ -40462,7 +40513,7 @@ function Kf(t, e, a, i, o, r) {
|
|
|
40462
40513
|
}, 8, ["onClick"])
|
|
40463
40514
|
])
|
|
40464
40515
|
], 4)),
|
|
40465
|
-
a.simple ? N("", !0) : (k(), I("div",
|
|
40516
|
+
a.simple ? N("", !0) : (k(), I("div", e1, [
|
|
40466
40517
|
e[3] || (e[3] = n("span", null, "© 2023", -1)),
|
|
40467
40518
|
n("span", null, "-" + y(r.computeYear), 1),
|
|
40468
40519
|
e[4] || (e[4] = n("span", { class: "text-uppercase ma-2" }, "ormwx.com", -1)),
|
|
@@ -40474,8 +40525,8 @@ function Kf(t, e, a, i, o, r) {
|
|
|
40474
40525
|
]))
|
|
40475
40526
|
], 4);
|
|
40476
40527
|
}
|
|
40477
|
-
const
|
|
40478
|
-
const
|
|
40528
|
+
const a1 = /* @__PURE__ */ ie(Jf, [["render", t1]]);
|
|
40529
|
+
const o1 = {
|
|
40479
40530
|
name: "DateRangePicker",
|
|
40480
40531
|
props: {
|
|
40481
40532
|
width: {
|
|
@@ -40711,22 +40762,22 @@ const Qf = {
|
|
|
40711
40762
|
this.dateRange = [], this.dateRangeStr = "", this.$emit("dateRange", []);
|
|
40712
40763
|
}
|
|
40713
40764
|
}
|
|
40714
|
-
},
|
|
40765
|
+
}, i1 = {
|
|
40715
40766
|
class: "idm-gl4-date-picker",
|
|
40716
40767
|
ref: "idmGl4DatePicker"
|
|
40717
|
-
},
|
|
40768
|
+
}, r1 = { class: "flex-1-1-0" }, l1 = { class: "pa-0 w-100 d-flex justify-space-between align-center ga-4" }, n1 = {
|
|
40718
40769
|
key: 0,
|
|
40719
40770
|
class: "d-flex justify-start align-center flex-wrap ga-3 ml-n2"
|
|
40720
|
-
},
|
|
40721
|
-
function
|
|
40771
|
+
}, s1 = { class: "flex-1-1-0 d-flex justify-end align-center ga-4" };
|
|
40772
|
+
function c1(t, e, a, i, o, r) {
|
|
40722
40773
|
const l = P("VIcon"), c = P("VDatePicker"), s = P("v-divider"), d = P("VCardText"), m = P("VDivider"), p = P("VBtn"), f = P("VCardActions"), w = P("VCard");
|
|
40723
|
-
return k(), I("div",
|
|
40774
|
+
return k(), I("div", i1, [
|
|
40724
40775
|
n("div", {
|
|
40725
40776
|
style: he({ height: a.height + "px", width: a.width ? a.width + "px" : "auto" }),
|
|
40726
40777
|
class: "rounded text-body-1 btn-border-1 btn-bg-1 d-flex align-center justify-space-between px-2 cursor-pointer",
|
|
40727
40778
|
onClick: e[0] || (e[0] = (...u) => r.handleOpenDatePicker && r.handleOpenDatePicker(...u))
|
|
40728
40779
|
}, [
|
|
40729
|
-
n("span",
|
|
40780
|
+
n("span", r1, y(o.dateRangeStr), 1),
|
|
40730
40781
|
o.dateRangeStr ? (k(), W(l, {
|
|
40731
40782
|
key: 0,
|
|
40732
40783
|
class: "text-h5",
|
|
@@ -40743,7 +40794,7 @@ function r1(t, e, a, i, o, r) {
|
|
|
40743
40794
|
default: x(() => [
|
|
40744
40795
|
b(d, { class: "w-100 flex-1-1-0 d-flex pa-0" }, {
|
|
40745
40796
|
default: x(() => [
|
|
40746
|
-
n("div",
|
|
40797
|
+
n("div", l1, [
|
|
40747
40798
|
b(c, {
|
|
40748
40799
|
modelValue: o.dateRange[0],
|
|
40749
40800
|
"onUpdate:modelValue": [
|
|
@@ -40794,7 +40845,7 @@ function r1(t, e, a, i, o, r) {
|
|
|
40794
40845
|
default: x(() => {
|
|
40795
40846
|
var u, h;
|
|
40796
40847
|
return [
|
|
40797
|
-
(u = a.fastPick) != null && u.show ? (k(), I("div",
|
|
40848
|
+
(u = a.fastPick) != null && u.show ? (k(), I("div", n1, [
|
|
40798
40849
|
(k(!0), I(Te, null, De((h = o.fastPickOptions) == null ? void 0 : h.filter((g) => a.fastPick.allows.some((_) => _ === g)), (g) => (k(), W(p, {
|
|
40799
40850
|
size: "small",
|
|
40800
40851
|
color: o.activeFastPick === g ? "primary" : "",
|
|
@@ -40808,7 +40859,7 @@ function r1(t, e, a, i, o, r) {
|
|
|
40808
40859
|
_: 2
|
|
40809
40860
|
}, 1032, ["color", "variant", "onClick"]))), 256))
|
|
40810
40861
|
])) : N("", !0),
|
|
40811
|
-
n("div",
|
|
40862
|
+
n("div", s1, [
|
|
40812
40863
|
b(p, {
|
|
40813
40864
|
size: "small",
|
|
40814
40865
|
variant: "tonal",
|
|
@@ -40842,25 +40893,25 @@ function r1(t, e, a, i, o, r) {
|
|
|
40842
40893
|
}, 8, ["style"])) : N("", !0)
|
|
40843
40894
|
], 512);
|
|
40844
40895
|
}
|
|
40845
|
-
const
|
|
40896
|
+
const m1 = /* @__PURE__ */ ie(o1, [["render", c1]]), C1 = {
|
|
40846
40897
|
install(t) {
|
|
40847
|
-
t.component("MapInitial",
|
|
40898
|
+
t.component("MapInitial", a1), t.component("MapboxGL", Uf), t.component("TropicalGL", ar), t.component("LatLngGL", tr), t.component("DateTimePicker", eo), t.component("DateRangePicker", m1), t.component("PortDetail", go), t.component("TimePlayer", xr);
|
|
40848
40899
|
}
|
|
40849
40900
|
};
|
|
40850
40901
|
export {
|
|
40851
40902
|
eo as D,
|
|
40852
40903
|
tr as L,
|
|
40853
|
-
|
|
40904
|
+
C1 as M,
|
|
40854
40905
|
go as P,
|
|
40855
40906
|
ar as T,
|
|
40856
40907
|
fo as V,
|
|
40857
40908
|
$e as W,
|
|
40858
|
-
|
|
40859
|
-
|
|
40860
|
-
|
|
40909
|
+
a1 as a,
|
|
40910
|
+
Uf as b,
|
|
40911
|
+
m1 as c,
|
|
40861
40912
|
xr as d,
|
|
40862
40913
|
Ce as e,
|
|
40863
40914
|
We as f,
|
|
40864
|
-
|
|
40915
|
+
$f as g,
|
|
40865
40916
|
Ba as l
|
|
40866
40917
|
};
|