@idmwx/idmui-gl4 3.3.7 → 3.3.8
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-031e9135.js → chunk-3VYIPD3A-2f183001.js} +1 -1
- package/dist/{chunk-ANSXOGKI-2f81e666.js → chunk-ANSXOGKI-bf5ec9f7.js} +1 -1
- package/dist/{chunk-T4JIPPZO-052dc98a.js → chunk-T4JIPPZO-e828c1b5.js} +1 -1
- package/dist/{download-fe43abff.js → download-cb6df921.js} +3 -3
- package/dist/{index-db9ab79b.js → index-85f007a0.js} +434 -426
- package/dist/index.js +1 -1
- package/dist/index.umd.cjs +15 -15
- package/dist/{rasterize-JS5G2XHH-e8e2bbdf.js → rasterize-JS5G2XHH-de5c3df2.js} +3 -3
- package/dist/{toBlob-a8839ef8.js → toBlob-237a852e.js} +3 -3
- package/dist/{toCanvas-50d64184.js → toCanvas-a145fa90.js} +2 -2
- package/dist/{toImg-d4da846f.js → toImg-7f881161.js} +3 -3
- package/package.json +1 -1
|
@@ -10226,7 +10226,7 @@ const oh = {
|
|
|
10226
10226
|
var o, i, a, l, r, c, s, d, m, u, p, b, g, h, f, k, v, _, L, P, z, R, S, F, N, B, te, oe, le, we, ye, E, Q, q, re, J, Y, ie, D, ce, xe, Le, ze;
|
|
10227
10227
|
this.currentHourData = {}, this.positionGmt = (i = (o = t == null ? void 0 : t.weather) == null ? void 0 : o[0]) == null ? void 0 : i.timezone, this.positionOffset = (l = (a = t == null ? void 0 : t.weather) == null ? void 0 : a[0]) == null ? void 0 : l.offset;
|
|
10228
10228
|
const e = ((r = Vo.pickHourly(t, T(this.form.dateTime))) == null ? void 0 : r[0]) || {};
|
|
10229
|
-
this.currentHourData.utc = e.utc, this.currentHourData.lat = t.lat, this.currentHourData.lng = t.lng, this.currentHourData.temp = this.computeRoundPrecision((c = e == null ? void 0 : e.weather) == null ? void 0 : c.temp, 0) ?? "-", this.currentHourData.precipProbability = this.computeRoundPrecision((d = (s = e == null ? void 0 : e.weather) == null ? void 0 : s.precip) == null ? void 0 : d.probability, 0) ?? "-", this.currentHourData.precip1h = this.computeRoundPrecision((u = (m = e == null ? void 0 : e.weather) == null ? void 0 : m.precip) == null ? void 0 : u.sum, 0) ?? "-", this.currentHourData.visibility = this.computeRoundPrecision((p = e == null ? void 0 : e.weather) == null ? void 0 : p.visibility, 0) ?? "-", this.currentHourData.windSpeed = this.computeRoundPrecision((g = (b = e == null ? void 0 : e.weather) == null ? void 0 : b.wind) == null ? void 0 : g.kts, 1) ?? "-", this.currentHourData.windDir = ((f = (h = e == null ? void 0 : e.weather) == null ? void 0 : h.wind) == null ? void 0 : f.direction) ?? "-", this.currentHourData.windLevel = this.computeRoundPrecision((v = (k = e == null ? void 0 : e.weather) == null ? void 0 : k.wind) == null ? void 0 : v.scale, 0) ?? "-", this.currentHourData.windGust = this.computeRoundPrecision((L = (_ = e == null ? void 0 : e.weather) == null ? void 0 : _.wind) == null ? void 0 : L.gusts, 1) ?? "-", this.currentHourData.sigwaveHeight = this.computeRoundPrecision((z = (P = e == null ? void 0 : e.wave) == null ? void 0 : P.sig) == null ? void 0 : z.height, 1) ?? "-", this.currentHourData.sigwaveDir = (S = (R = e == null ? void 0 : e.wave) == null ? void 0 : R.sig) == null ? void 0 : S.direction, this.currentHourData.sigwavePeriod = this.computeRoundPrecision((N = (F = e == null ? void 0 : e.wave) == null ? void 0 : F.sig) == null ? void 0 : N.period, 1) ?? "-", this.currentHourData.windwaveHeight = this.computeRoundPrecision((te = (B = e == null ? void 0 : e.wave) == null ? void 0 : B.wd) == null ? void 0 : te.height, 1) ?? "-", this.currentHourData.windwaveDir = (le = (oe = e == null ? void 0 : e.wave) == null ? void 0 : oe.wd) == null ? void 0 : le.direction, this.currentHourData.windwavePeriod = this.computeRoundPrecision((ye = (we = e == null ? void 0 : e.wave) == null ? void 0 : we.wd) == null ? void 0 : ye.period, 1) ?? "-", this.currentHourData.swellHeight = this.computeRoundPrecision((Q = (E = e == null ? void 0 : e.wave) == null ? void 0 : E.swell) == null ? void 0 : Q.height, 1) ?? "-", this.currentHourData.swellDir = (re = (q = e == null ? void 0 : e.wave) == null ? void 0 : q.swell) == null ? void 0 : re.direction, this.currentHourData.swellPeriod = this.computeRoundPrecision((Y = (J = e == null ? void 0 : e.wave) == null ? void 0 : J.swell) == null ? void 0 : Y.period, 1) ?? "-", this.currentHourData.currentSpeed = this.computeRoundPrecision((ie = e == null ? void 0 : e.current) == null ? void 0 : ie.speed, 1) ?? "-", this.currentHourData.currentDir = (D = e == null ? void 0 : e.current) == null ? void 0 : D.direction, this.currentHourData.currentSpeed = this.computeRoundPrecision((ce = e == null ? void 0 : e.current) == null ? void 0 : ce.speed, 1) ?? "-", this.currentHourData.seaLevel = this.computeRoundPrecision(e == null ? void 0 : e.height, 1) ?? "-", this.currentHourData.seaTemp = this.computeRoundPrecision(e == null ? void 0 : e.sst, 0) ?? "-", this.currentHourData.weatherUrls = (xe = e == null ? void 0 : e.weather) == null ? void 0 : xe.url, this.currentHourData.sit = (Le = e == null ? void 0 : e.ice) == null ? void 0 : Le.sit, this.currentHourData.sic = (ze = e == null ? void 0 : e.ice) == null ? void 0 : ze.sic, this.currentHourData.showIce = t.lat >= 65 || t.lat <= -65;
|
|
10229
|
+
this.currentHourData.utc = e.utc, this.currentHourData.lat = t.lat, this.currentHourData.lng = t.lng, this.currentHourData.temp = this.computeRoundPrecision((c = e == null ? void 0 : e.weather) == null ? void 0 : c.temp, 0) ?? "-", this.currentHourData.precipProbability = this.computeRoundPrecision((d = (s = e == null ? void 0 : e.weather) == null ? void 0 : s.precip) == null ? void 0 : d.probability, 0) ?? "-", this.currentHourData.precip1h = this.computeRoundPrecision((u = (m = e == null ? void 0 : e.weather) == null ? void 0 : m.precip) == null ? void 0 : u.sum, 0) ?? "-", this.currentHourData.visibility = this.computeRoundPrecision((p = e == null ? void 0 : e.weather) == null ? void 0 : p.visibility, 0) ?? "-", this.currentHourData.windSpeed = this.computeRoundPrecision((g = (b = e == null ? void 0 : e.weather) == null ? void 0 : b.wind) == null ? void 0 : g.kts, 1) ?? "-", this.currentHourData.windDir = ((f = (h = e == null ? void 0 : e.weather) == null ? void 0 : h.wind) == null ? void 0 : f.direction) ?? "-", this.currentHourData.windLevel = this.computeRoundPrecision((v = (k = e == null ? void 0 : e.weather) == null ? void 0 : k.wind) == null ? void 0 : v.scale, 0) ?? "-", this.currentHourData.windGust = this.computeRoundPrecision((L = (_ = e == null ? void 0 : e.weather) == null ? void 0 : _.wind) == null ? void 0 : L.gusts, 1) ?? "-", this.currentHourData.sigwaveHeight = this.computeRoundPrecision((z = (P = e == null ? void 0 : e.wave) == null ? void 0 : P.sig) == null ? void 0 : z.height, 1) ?? "-", this.currentHourData.sigwaveDir = (S = (R = e == null ? void 0 : e.wave) == null ? void 0 : R.sig) == null ? void 0 : S.direction, this.currentHourData.sigwavePeriod = this.computeRoundPrecision((N = (F = e == null ? void 0 : e.wave) == null ? void 0 : F.sig) == null ? void 0 : N.period, 1) ?? "-", this.currentHourData.windwaveHeight = this.computeRoundPrecision((te = (B = e == null ? void 0 : e.wave) == null ? void 0 : B.wd) == null ? void 0 : te.height, 1) ?? "-", this.currentHourData.windwaveDir = (le = (oe = e == null ? void 0 : e.wave) == null ? void 0 : oe.wd) == null ? void 0 : le.direction, this.currentHourData.windwavePeriod = this.computeRoundPrecision((ye = (we = e == null ? void 0 : e.wave) == null ? void 0 : we.wd) == null ? void 0 : ye.period, 1) ?? "-", this.currentHourData.swellHeight = this.computeRoundPrecision((Q = (E = e == null ? void 0 : e.wave) == null ? void 0 : E.swell) == null ? void 0 : Q.height, 1) ?? "-", this.currentHourData.swellDir = (re = (q = e == null ? void 0 : e.wave) == null ? void 0 : q.swell) == null ? void 0 : re.direction, this.currentHourData.swellPeriod = this.computeRoundPrecision((Y = (J = e == null ? void 0 : e.wave) == null ? void 0 : J.swell) == null ? void 0 : Y.period, 1) ?? "-", this.currentHourData.currentSpeed = this.computeRoundPrecision((ie = e == null ? void 0 : e.current) == null ? void 0 : ie.speed, 1) ?? "-", this.currentHourData.currentDir = (D = e == null ? void 0 : e.current) == null ? void 0 : D.direction, this.currentHourData.currentSpeed = this.computeRoundPrecision((ce = e == null ? void 0 : e.current) == null ? void 0 : ce.speed, 1) ?? "-", this.currentHourData.seaLevel = this.computeRoundPrecision(e == null ? void 0 : e.height, 1) ?? "-", this.currentHourData.seaTemp = this.computeRoundPrecision(e == null ? void 0 : e.sst, 0) ?? "-", this.currentHourData.weatherUrls = (xe = e == null ? void 0 : e.weather) == null ? void 0 : xe.url, this.currentHourData.sit = (Le = e == null ? void 0 : e.ice) == null ? void 0 : Le.sit, this.currentHourData.sic = this.computeRoundPrecision(((ze = e == null ? void 0 : e.ice) == null ? void 0 : ze.sic) * 100, 0) ?? "-", this.currentHourData.showIce = t.lat >= 65 || t.lat <= -65;
|
|
10230
10230
|
},
|
|
10231
10231
|
handleBind() {
|
|
10232
10232
|
var t, e;
|
|
@@ -10343,12 +10343,12 @@ const oh = {
|
|
|
10343
10343
|
}, Nh = { class: "pa-0 text-left" }, Wh = { class: "d-flex justify-space-between align-center" }, Zh = { class: "d-flex justify-start align-center" }, Vh = { class: "mx-1" }, Xh = { class: "d-flex justify-end align-center" }, Oh = { class: "mx-0 py-1 d-flex align-center justify-start" }, Yh = {
|
|
10344
10344
|
style: { width: "60px" },
|
|
10345
10345
|
class: "pa-0 pr-2 text-right opacity-50"
|
|
10346
|
-
}, Hh = { class: "pa-0 px-0" }, Uh = { class: "mx-0 py-1 d-flex align-center justify-start" }, Jh = { class: "pa-0 px-0" }, Kh = { class: "gray-bg-2 mx-4 my-2 py-3 px-2 rounded text-font-13 d-flex align-center justify-space-between" }, Qh = { class: "d-flex flex-column align-start justify-center ga-3" }, qh = { class: "text-label pr-2" }, $h = { class: "text-label pr-2" }, eu = { class: "text-label pr-2" }, tu = { class: "d-flex flex-column align-start justify-center ga-3" },
|
|
10346
|
+
}, Hh = { class: "pa-0 px-0" }, Uh = { class: "mx-0 py-1 d-flex align-center justify-start" }, Jh = { class: "pa-0 px-0" }, Kh = { class: "gray-bg-2 mx-4 my-2 py-3 px-2 rounded text-font-13 d-flex align-center justify-space-between" }, Qh = { class: "d-flex flex-column align-start justify-center ga-3" }, qh = { class: "text-label pr-2" }, $h = { class: "text-label pr-2" }, eu = { class: "text-label pr-2" }, tu = { key: 0 }, ou = { class: "text-label pr-2" }, au = { class: "d-flex flex-column align-start justify-center ga-3" }, iu = { class: "text-label pr-2" }, lu = { class: "text-label pr-2" }, ru = { class: "text-label pr-2" }, nu = { key: 0 }, su = { class: "text-label pr-2" }, cu = { id: "idm-position-icon" }, mu = {
|
|
10347
10347
|
class: "multi-color-icon",
|
|
10348
10348
|
style: { height: "30px", width: "30px" },
|
|
10349
10349
|
"aria-hidden": "true"
|
|
10350
|
-
},
|
|
10351
|
-
function
|
|
10350
|
+
}, du = ["xlink:href"];
|
|
10351
|
+
function hu(t, e, o, i, a, l) {
|
|
10352
10352
|
const r = M("VBtn"), c = M("VTooltip"), s = M("VCardTitle"), d = M("VDivider"), m = M("VTextField"), u = M("VCol"), p = M("VRow"), b = M("DateTimePicker"), g = M("VBtnToggle"), h = M("VCardText"), f = M("VCardActions"), k = M("VForm"), v = M("VCard");
|
|
10353
10353
|
return A(), I("div", ah, [
|
|
10354
10354
|
n("div", {
|
|
@@ -10932,21 +10932,29 @@ function su(t, e, o, i, a, l) {
|
|
|
10932
10932
|
n("div", null, [
|
|
10933
10933
|
n("span", eu, y(t.$t("weather.windWave")), 1),
|
|
10934
10934
|
n("span", null, y(a.currentHourData.windwaveDir ?? "-") + "/" + y(a.currentHourData.windwaveHeight ?? "-") + "m/" + y(a.currentHourData.windwavePeriod ?? "-") + "s", 1)
|
|
10935
|
-
])
|
|
10935
|
+
]),
|
|
10936
|
+
a.currentHourData.showIce ? (A(), I("div", tu, [
|
|
10937
|
+
n("span", ou, y(t.$t("weather.sit")), 1),
|
|
10938
|
+
n("span", null, y(a.currentHourData.sit ?? "-") + "m", 1)
|
|
10939
|
+
])) : G("", !0)
|
|
10936
10940
|
]),
|
|
10937
|
-
n("div",
|
|
10941
|
+
n("div", au, [
|
|
10938
10942
|
n("div", null, [
|
|
10939
|
-
n("span",
|
|
10943
|
+
n("span", iu, y(t.$t("weather.swell")), 1),
|
|
10940
10944
|
n("span", null, y(a.currentHourData.swellDir ?? "-") + "/" + y(a.currentHourData.swellHeight ?? "-") + "m/" + y(a.currentHourData.swellPeriod ?? "-") + "s", 1)
|
|
10941
10945
|
]),
|
|
10942
10946
|
n("div", null, [
|
|
10943
|
-
n("span",
|
|
10947
|
+
n("span", lu, y(t.$t("weather.current")), 1),
|
|
10944
10948
|
n("span", null, y(a.currentHourData.currentDir ?? "-") + "/" + y(a.currentHourData.currentSpeed ?? "-") + "kts", 1)
|
|
10945
10949
|
]),
|
|
10946
10950
|
n("div", null, [
|
|
10947
|
-
n("span",
|
|
10951
|
+
n("span", ru, y(t.$t("weather.visibility")), 1),
|
|
10948
10952
|
n("span", null, y(a.currentHourData.visibility ?? "-") + " nm", 1)
|
|
10949
|
-
])
|
|
10953
|
+
]),
|
|
10954
|
+
a.currentHourData.showIce ? (A(), I("div", nu, [
|
|
10955
|
+
n("span", su, y(t.$t("weather.sic")), 1),
|
|
10956
|
+
n("span", null, y(a.currentHourData.sic ?? "-") + "%", 1)
|
|
10957
|
+
])) : G("", !0)
|
|
10950
10958
|
])
|
|
10951
10959
|
])
|
|
10952
10960
|
];
|
|
@@ -10956,19 +10964,19 @@ function su(t, e, o, i, a, l) {
|
|
|
10956
10964
|
]),
|
|
10957
10965
|
_: 1
|
|
10958
10966
|
}, 512)) : G("", !0),
|
|
10959
|
-
uo(n("div",
|
|
10960
|
-
(A(), I("svg",
|
|
10967
|
+
uo(n("div", cu, [
|
|
10968
|
+
(A(), I("svg", mu, [
|
|
10961
10969
|
n("use", {
|
|
10962
10970
|
"xlink:href": `#icon-spot-${o.theme}`
|
|
10963
|
-
}, null, 8,
|
|
10971
|
+
}, null, 8, du)
|
|
10964
10972
|
]))
|
|
10965
10973
|
], 512), [
|
|
10966
10974
|
[po, a.showMeteo]
|
|
10967
10975
|
])
|
|
10968
10976
|
]);
|
|
10969
10977
|
}
|
|
10970
|
-
const
|
|
10971
|
-
const
|
|
10978
|
+
const uu = /* @__PURE__ */ ne(oh, [["render", hu]]);
|
|
10979
|
+
const pu = {
|
|
10972
10980
|
name: "IdmMeasure",
|
|
10973
10981
|
props: {
|
|
10974
10982
|
simple: {
|
|
@@ -11326,10 +11334,10 @@ const mu = {
|
|
|
11326
11334
|
}), this.pointMarkers[t.id] = [], (b = this.tipMarker) == null || b.remove(), this.tipMarker = void 0, e && ((g = this.map) != null && g.getSource(o)) && this.map.removeSource(o), e && ((h = this.map) != null && h.getSource(this.tmpSource)) && this.map.removeSource(this.tmpSource);
|
|
11327
11335
|
}
|
|
11328
11336
|
}
|
|
11329
|
-
},
|
|
11330
|
-
function
|
|
11337
|
+
}, gu = { class: "idm-gl4-measure" };
|
|
11338
|
+
function fu(t, e, o, i, a, l) {
|
|
11331
11339
|
const r = M("VBtn"), c = M("VTooltip");
|
|
11332
|
-
return A(), I("div",
|
|
11340
|
+
return A(), I("div", gu, [
|
|
11333
11341
|
n("div", {
|
|
11334
11342
|
class: "menu-bar-box transition pa-1",
|
|
11335
11343
|
style: fe({ top: o.top + o.paddingTop + 166 + "px", right: a.right + "px" })
|
|
@@ -11362,8 +11370,8 @@ function hu(t, e, o, i, a, l) {
|
|
|
11362
11370
|
], 4)
|
|
11363
11371
|
]);
|
|
11364
11372
|
}
|
|
11365
|
-
const
|
|
11366
|
-
const
|
|
11373
|
+
const yu = /* @__PURE__ */ ne(pu, [["render", fu]]);
|
|
11374
|
+
const bu = {
|
|
11367
11375
|
name: "IdmDrawMarker",
|
|
11368
11376
|
props: {
|
|
11369
11377
|
map: {
|
|
@@ -12164,11 +12172,11 @@ const pu = {
|
|
|
12164
12172
|
});
|
|
12165
12173
|
}
|
|
12166
12174
|
}
|
|
12167
|
-
},
|
|
12175
|
+
}, wu = { class: "text-h6 font-weight-600" }, xu = { class: "text-label mb-1" }, vu = { class: "text-label mb-1" }, Au = { class: "mb-1" }, ku = { class: "text-label mb-1" }, Lu = { class: "mb-1" }, zu = { class: "text-label mb-1" }, _u = { class: "mb-1" }, Cu = { class: "text-label mb-1" }, Mu = { class: "color-picker-row d-flex align-start ga-2" }, Pu = ["value"], Su = { class: "mb-n2" }, Tu = { class: "text-label mb-1" }, Ru = { class: "mb-1" }, Iu = { class: "text-label mb-1" }, Du = { class: "color-picker-row d-flex align-start ga-2" }, Eu = ["value"], Gu = { class: "mb-n2" }, Fu = { class: "text-label mb-1" }, ju = {
|
|
12168
12176
|
key: 0,
|
|
12169
12177
|
class: "mb-3"
|
|
12170
|
-
},
|
|
12171
|
-
function
|
|
12178
|
+
}, Bu = { class: "text-label mb-1" }, Nu = { class: "mb-1" }, Wu = { class: "text-label mb-1" }, Zu = { class: "color-picker-row d-flex align-start ga-2" }, Vu = ["value"], Xu = { class: "mb-n2" }, Ou = { class: "text-label mb-1" };
|
|
12179
|
+
function Yu(t, e, o, i, a, l) {
|
|
12172
12180
|
const r = M("VBtn"), c = M("VCardTitle"), s = M("VDivider"), d = M("VTextField"), m = M("VCardText"), u = M("VBtnToggle"), p = M("VCol"), b = M("VRow"), g = M("VCardActions"), h = M("VForm"), f = M("VCard");
|
|
12173
12181
|
return A(), j(f, {
|
|
12174
12182
|
class: "idm-gl4-draw-dialog-card",
|
|
@@ -12181,7 +12189,7 @@ function Zu(t, e, o, i, a, l) {
|
|
|
12181
12189
|
default: x(() => {
|
|
12182
12190
|
var v;
|
|
12183
12191
|
return [
|
|
12184
|
-
n("span",
|
|
12192
|
+
n("span", wu, y((v = o.editLayer) != null && v.id ? t.$t("actions.edit") : t.$t("actions.addMarker")), 1),
|
|
12185
12193
|
w(r, {
|
|
12186
12194
|
icon: "",
|
|
12187
12195
|
density: "compact",
|
|
@@ -12204,7 +12212,7 @@ function Zu(t, e, o, i, a, l) {
|
|
|
12204
12212
|
default: x(() => {
|
|
12205
12213
|
var v;
|
|
12206
12214
|
return [
|
|
12207
|
-
n("div",
|
|
12215
|
+
n("div", xu, y(t.$t("marker.group")), 1),
|
|
12208
12216
|
w(d, {
|
|
12209
12217
|
"model-value": (v = o.group) == null ? void 0 : v.name,
|
|
12210
12218
|
density: "compact",
|
|
@@ -12224,7 +12232,7 @@ function Zu(t, e, o, i, a, l) {
|
|
|
12224
12232
|
default: x(() => {
|
|
12225
12233
|
var v;
|
|
12226
12234
|
return [
|
|
12227
|
-
n("div",
|
|
12235
|
+
n("div", vu, [
|
|
12228
12236
|
Z(y(t.$t("marker.markerType")), 1),
|
|
12229
12237
|
e[22] || (e[22] = n("span", { class: "text-danger" }, "*", -1))
|
|
12230
12238
|
]),
|
|
@@ -12294,8 +12302,8 @@ function Zu(t, e, o, i, a, l) {
|
|
|
12294
12302
|
default: x(() => [
|
|
12295
12303
|
w(m, { class: "px-4 text-body-1" }, {
|
|
12296
12304
|
default: x(() => [
|
|
12297
|
-
n("div",
|
|
12298
|
-
n("div",
|
|
12305
|
+
n("div", Au, [
|
|
12306
|
+
n("div", ku, [
|
|
12299
12307
|
Z(y(t.$t("marker.lat")), 1),
|
|
12300
12308
|
e[23] || (e[23] = n("span", { class: "text-danger" }, "*", -1))
|
|
12301
12309
|
]),
|
|
@@ -12384,8 +12392,8 @@ function Zu(t, e, o, i, a, l) {
|
|
|
12384
12392
|
_: 1
|
|
12385
12393
|
})
|
|
12386
12394
|
]),
|
|
12387
|
-
n("div",
|
|
12388
|
-
n("div",
|
|
12395
|
+
n("div", Lu, [
|
|
12396
|
+
n("div", zu, [
|
|
12389
12397
|
Z(y(t.$t("marker.lng")), 1),
|
|
12390
12398
|
e[26] || (e[26] = n("span", { class: "text-danger" }, "*", -1))
|
|
12391
12399
|
]),
|
|
@@ -12464,18 +12472,18 @@ function Zu(t, e, o, i, a, l) {
|
|
|
12464
12472
|
_: 1
|
|
12465
12473
|
})
|
|
12466
12474
|
]),
|
|
12467
|
-
n("div",
|
|
12468
|
-
n("div",
|
|
12475
|
+
n("div", _u, [
|
|
12476
|
+
n("div", Cu, [
|
|
12469
12477
|
Z(y(t.$t("marker.color")), 1),
|
|
12470
12478
|
e[29] || (e[29] = n("span", { class: "text-danger" }, "*", -1))
|
|
12471
12479
|
]),
|
|
12472
|
-
n("div",
|
|
12480
|
+
n("div", Mu, [
|
|
12473
12481
|
n("input", {
|
|
12474
12482
|
type: "color",
|
|
12475
12483
|
value: a.form.color,
|
|
12476
12484
|
class: "native-color-picker cursor-pointer",
|
|
12477
12485
|
onInput: e[11] || (e[11] = (v) => a.form.color = v.target.value)
|
|
12478
|
-
}, null, 40,
|
|
12486
|
+
}, null, 40, Pu),
|
|
12479
12487
|
w(d, {
|
|
12480
12488
|
modelValue: a.form.color,
|
|
12481
12489
|
"onUpdate:modelValue": e[12] || (e[12] = (v) => a.form.color = v),
|
|
@@ -12486,8 +12494,8 @@ function Zu(t, e, o, i, a, l) {
|
|
|
12486
12494
|
}, null, 8, ["modelValue", "rules"])
|
|
12487
12495
|
])
|
|
12488
12496
|
]),
|
|
12489
|
-
n("div",
|
|
12490
|
-
n("div",
|
|
12497
|
+
n("div", Su, [
|
|
12498
|
+
n("div", Tu, [
|
|
12491
12499
|
Z(y(t.$t("marker.name")), 1),
|
|
12492
12500
|
e[30] || (e[30] = n("span", { class: "text-danger" }, "*", -1))
|
|
12493
12501
|
]),
|
|
@@ -12547,18 +12555,18 @@ function Zu(t, e, o, i, a, l) {
|
|
|
12547
12555
|
default: x(() => [
|
|
12548
12556
|
w(m, { class: "px-4 text-body-1" }, {
|
|
12549
12557
|
default: x(() => [
|
|
12550
|
-
n("div",
|
|
12551
|
-
n("div",
|
|
12558
|
+
n("div", Ru, [
|
|
12559
|
+
n("div", Iu, [
|
|
12552
12560
|
Z(y(t.$t("marker.color")), 1),
|
|
12553
12561
|
e[31] || (e[31] = n("span", { class: "text-danger" }, "*", -1))
|
|
12554
12562
|
]),
|
|
12555
|
-
n("div",
|
|
12563
|
+
n("div", Du, [
|
|
12556
12564
|
n("input", {
|
|
12557
12565
|
type: "color",
|
|
12558
12566
|
value: a.form.color,
|
|
12559
12567
|
class: "native-color-picker cursor-pointer",
|
|
12560
12568
|
onInput: e[14] || (e[14] = (v) => a.form.color = v.target.value)
|
|
12561
|
-
}, null, 40,
|
|
12569
|
+
}, null, 40, Eu),
|
|
12562
12570
|
w(d, {
|
|
12563
12571
|
modelValue: a.form.color,
|
|
12564
12572
|
"onUpdate:modelValue": e[15] || (e[15] = (v) => a.form.color = v),
|
|
@@ -12569,8 +12577,8 @@ function Zu(t, e, o, i, a, l) {
|
|
|
12569
12577
|
}, null, 8, ["modelValue", "rules"])
|
|
12570
12578
|
])
|
|
12571
12579
|
]),
|
|
12572
|
-
n("div",
|
|
12573
|
-
n("div",
|
|
12580
|
+
n("div", Gu, [
|
|
12581
|
+
n("div", Fu, [
|
|
12574
12582
|
Z(y(t.$t("marker.name")), 1),
|
|
12575
12583
|
e[32] || (e[32] = n("span", { class: "text-danger" }, "*", -1))
|
|
12576
12584
|
]),
|
|
@@ -12632,8 +12640,8 @@ function Zu(t, e, o, i, a, l) {
|
|
|
12632
12640
|
default: x(() => {
|
|
12633
12641
|
var v, _;
|
|
12634
12642
|
return [
|
|
12635
|
-
(v = o.editLayer) != null && v.id ? G("", !0) : (A(), I("div",
|
|
12636
|
-
n("div",
|
|
12643
|
+
(v = o.editLayer) != null && v.id ? G("", !0) : (A(), I("div", ju, [
|
|
12644
|
+
n("div", Bu, [
|
|
12637
12645
|
Z(y(t.$t("marker.areaType")), 1),
|
|
12638
12646
|
e[33] || (e[33] = n("span", { class: "text-danger" }, "*", -1))
|
|
12639
12647
|
]),
|
|
@@ -12693,18 +12701,18 @@ function Zu(t, e, o, i, a, l) {
|
|
|
12693
12701
|
_: 1
|
|
12694
12702
|
}, 8, ["modelValue", "disabled"])
|
|
12695
12703
|
])),
|
|
12696
|
-
n("div",
|
|
12697
|
-
n("div",
|
|
12704
|
+
n("div", Nu, [
|
|
12705
|
+
n("div", Wu, [
|
|
12698
12706
|
Z(y(t.$t("marker.color")), 1),
|
|
12699
12707
|
e[34] || (e[34] = n("span", { class: "text-danger" }, "*", -1))
|
|
12700
12708
|
]),
|
|
12701
|
-
n("div",
|
|
12709
|
+
n("div", Zu, [
|
|
12702
12710
|
n("input", {
|
|
12703
12711
|
type: "color",
|
|
12704
12712
|
value: a.form.color,
|
|
12705
12713
|
class: "native-color-picker cursor-pointer",
|
|
12706
12714
|
onInput: e[18] || (e[18] = (L) => a.form.color = L.target.value)
|
|
12707
|
-
}, null, 40,
|
|
12715
|
+
}, null, 40, Vu),
|
|
12708
12716
|
w(d, {
|
|
12709
12717
|
modelValue: a.form.color,
|
|
12710
12718
|
"onUpdate:modelValue": e[19] || (e[19] = (L) => a.form.color = L),
|
|
@@ -12715,8 +12723,8 @@ function Zu(t, e, o, i, a, l) {
|
|
|
12715
12723
|
}, null, 8, ["modelValue", "rules"])
|
|
12716
12724
|
])
|
|
12717
12725
|
]),
|
|
12718
|
-
n("div",
|
|
12719
|
-
n("div",
|
|
12726
|
+
n("div", Xu, [
|
|
12727
|
+
n("div", Ou, [
|
|
12720
12728
|
Z(y(t.$t("marker.name")), 1),
|
|
12721
12729
|
e[35] || (e[35] = n("span", { class: "text-danger" }, "*", -1))
|
|
12722
12730
|
]),
|
|
@@ -12776,8 +12784,8 @@ function Zu(t, e, o, i, a, l) {
|
|
|
12776
12784
|
_: 1
|
|
12777
12785
|
});
|
|
12778
12786
|
}
|
|
12779
|
-
const
|
|
12780
|
-
const
|
|
12787
|
+
const Hu = /* @__PURE__ */ ne(bu, [["render", Yu]]);
|
|
12788
|
+
const Uu = {
|
|
12781
12789
|
name: "IdmImportMarker",
|
|
12782
12790
|
props: {
|
|
12783
12791
|
map: {
|
|
@@ -13005,14 +13013,14 @@ const Xu = {
|
|
|
13005
13013
|
}), this.map.getSource(t) && this.map.removeSource(t);
|
|
13006
13014
|
}
|
|
13007
13015
|
}
|
|
13008
|
-
},
|
|
13016
|
+
}, Ju = { class: "text-h6 font-weight-600" }, Ku = { class: "mb-4" }, Qu = { class: "text-label mb-1" }, qu = { class: "mb-1" }, $u = { class: "text-label mb-1" }, ep = { class: "color-picker-row d-flex align-start ga-2" }, tp = ["value"], op = { class: "text-body-2 text-center text-label" }, ap = { class: "text-body-1 text-primary mt-2 cursor-pointer" }, ip = { class: "text-body-2 text-left text-label mt-1" }, lp = {
|
|
13009
13017
|
key: 0,
|
|
13010
13018
|
class: "text-body-2 text-left text-danger mt-1"
|
|
13011
|
-
},
|
|
13019
|
+
}, rp = {
|
|
13012
13020
|
key: 1,
|
|
13013
13021
|
class: "file-item d-flex align-center justify-space-between mt-2 gray-bg-1 pa-1"
|
|
13014
|
-
},
|
|
13015
|
-
function
|
|
13022
|
+
}, np = { class: "text-body-2 text-truncate" };
|
|
13023
|
+
function sp(t, e, o, i, a, l) {
|
|
13016
13024
|
const r = M("VBtn"), c = M("VCardTitle"), s = M("VDivider"), d = M("VTextField"), m = M("VIcon"), u = M("VCardText"), p = M("VCardActions"), b = M("VForm"), g = M("VCard");
|
|
13017
13025
|
return A(), j(g, {
|
|
13018
13026
|
class: "idm-gl4-import-dialog-card",
|
|
@@ -13021,7 +13029,7 @@ function ip(t, e, o, i, a, l) {
|
|
|
13021
13029
|
default: x(() => [
|
|
13022
13030
|
w(c, { class: "d-flex justify-space-between align-center" }, {
|
|
13023
13031
|
default: x(() => [
|
|
13024
|
-
n("span",
|
|
13032
|
+
n("span", Ju, y(t.$t("marker.importLayer")), 1),
|
|
13025
13033
|
w(r, {
|
|
13026
13034
|
icon: "",
|
|
13027
13035
|
density: "compact",
|
|
@@ -13048,8 +13056,8 @@ function ip(t, e, o, i, a, l) {
|
|
|
13048
13056
|
default: x(() => [
|
|
13049
13057
|
w(u, { class: "px-4 text-body-1" }, {
|
|
13050
13058
|
default: x(() => [
|
|
13051
|
-
n("div",
|
|
13052
|
-
n("div",
|
|
13059
|
+
n("div", Ku, [
|
|
13060
|
+
n("div", Qu, [
|
|
13053
13061
|
Z(y(t.$t("marker.group")), 1),
|
|
13054
13062
|
e[10] || (e[10] = n("span", { class: "text-danger" }, "*", -1))
|
|
13055
13063
|
]),
|
|
@@ -13062,18 +13070,18 @@ function ip(t, e, o, i, a, l) {
|
|
|
13062
13070
|
class: "input-btn-bg-1"
|
|
13063
13071
|
}, null, 8, ["modelValue"])
|
|
13064
13072
|
]),
|
|
13065
|
-
n("div",
|
|
13066
|
-
n("div",
|
|
13073
|
+
n("div", qu, [
|
|
13074
|
+
n("div", $u, [
|
|
13067
13075
|
Z(y(t.$t("marker.color")), 1),
|
|
13068
13076
|
e[11] || (e[11] = n("span", { class: "text-danger" }, "*", -1))
|
|
13069
13077
|
]),
|
|
13070
|
-
n("div",
|
|
13078
|
+
n("div", ep, [
|
|
13071
13079
|
n("input", {
|
|
13072
13080
|
type: "color",
|
|
13073
13081
|
value: a.form.color,
|
|
13074
13082
|
class: "native-color-picker cursor-pointer",
|
|
13075
13083
|
onInput: e[1] || (e[1] = (h) => a.form.color = h.target.value)
|
|
13076
|
-
}, null, 40,
|
|
13084
|
+
}, null, 40, tp),
|
|
13077
13085
|
w(d, {
|
|
13078
13086
|
modelValue: a.form.color,
|
|
13079
13087
|
"onUpdate:modelValue": e[2] || (e[2] = (h) => a.form.color = h),
|
|
@@ -13104,8 +13112,8 @@ function ip(t, e, o, i, a, l) {
|
|
|
13104
13112
|
_: 1,
|
|
13105
13113
|
__: [12]
|
|
13106
13114
|
}),
|
|
13107
|
-
n("div",
|
|
13108
|
-
n("div",
|
|
13115
|
+
n("div", op, y(t.$t("marker.uploadHint")), 1),
|
|
13116
|
+
n("div", ap, y(t.$t("marker.selectFile")), 1),
|
|
13109
13117
|
n("input", {
|
|
13110
13118
|
ref: "fileInput",
|
|
13111
13119
|
type: "file",
|
|
@@ -13114,10 +13122,10 @@ function ip(t, e, o, i, a, l) {
|
|
|
13114
13122
|
onChange: e[3] || (e[3] = (...h) => l.handleFileChange && l.handleFileChange(...h))
|
|
13115
13123
|
}, null, 544)
|
|
13116
13124
|
], 34),
|
|
13117
|
-
n("div",
|
|
13118
|
-
a.fileError ? (A(), I("div",
|
|
13119
|
-
a.form.file ? (A(), I("div",
|
|
13120
|
-
n("span",
|
|
13125
|
+
n("div", ip, y(t.$t("marker.uploadLimit")), 1),
|
|
13126
|
+
a.fileError ? (A(), I("div", lp, y(a.fileError), 1)) : G("", !0),
|
|
13127
|
+
a.form.file ? (A(), I("div", rp, [
|
|
13128
|
+
n("span", np, [
|
|
13121
13129
|
w(m, {
|
|
13122
13130
|
size: "16",
|
|
13123
13131
|
color: "success",
|
|
@@ -13191,8 +13199,8 @@ function ip(t, e, o, i, a, l) {
|
|
|
13191
13199
|
_: 1
|
|
13192
13200
|
});
|
|
13193
13201
|
}
|
|
13194
|
-
const
|
|
13195
|
-
const
|
|
13202
|
+
const cp = /* @__PURE__ */ ne(Uu, [["render", sp]]);
|
|
13203
|
+
const mp = {
|
|
13196
13204
|
name: "IdmGroupDialog",
|
|
13197
13205
|
props: {
|
|
13198
13206
|
modelValue: {
|
|
@@ -13251,8 +13259,8 @@ const rp = {
|
|
|
13251
13259
|
}));
|
|
13252
13260
|
}
|
|
13253
13261
|
}
|
|
13254
|
-
},
|
|
13255
|
-
function
|
|
13262
|
+
}, dp = { class: "text-h6 font-weight-600" }, hp = { class: "text-label mb-2" };
|
|
13263
|
+
function up(t, e, o, i, a, l) {
|
|
13256
13264
|
const r = M("VBtn"), c = M("VCardTitle"), s = M("VDivider"), d = M("VTextField"), m = M("VCardText"), u = M("VCardActions"), p = M("VCard"), b = M("VDialog");
|
|
13257
13265
|
return A(), j(b, {
|
|
13258
13266
|
"model-value": o.modelValue,
|
|
@@ -13268,7 +13276,7 @@ function cp(t, e, o, i, a, l) {
|
|
|
13268
13276
|
default: x(() => [
|
|
13269
13277
|
w(c, { class: "d-flex justify-space-between align-center" }, {
|
|
13270
13278
|
default: x(() => [
|
|
13271
|
-
n("span",
|
|
13279
|
+
n("span", dp, y(t.$t("actions.editGroup")), 1),
|
|
13272
13280
|
w(r, {
|
|
13273
13281
|
icon: "",
|
|
13274
13282
|
density: "compact",
|
|
@@ -13288,7 +13296,7 @@ function cp(t, e, o, i, a, l) {
|
|
|
13288
13296
|
w(s),
|
|
13289
13297
|
w(m, { class: "px-4 text-body-1" }, {
|
|
13290
13298
|
default: x(() => [
|
|
13291
|
-
n("div",
|
|
13299
|
+
n("div", hp, [
|
|
13292
13300
|
Z(y(t.$t("marker.groupName")), 1),
|
|
13293
13301
|
e[3] || (e[3] = n("span", { class: "text-danger" }, "*", -1))
|
|
13294
13302
|
]),
|
|
@@ -13343,7 +13351,7 @@ function cp(t, e, o, i, a, l) {
|
|
|
13343
13351
|
_: 1
|
|
13344
13352
|
}, 8, ["model-value"]);
|
|
13345
13353
|
}
|
|
13346
|
-
const
|
|
13354
|
+
const pp = /* @__PURE__ */ ne(mp, [["render", up]]), gp = {
|
|
13347
13355
|
name: "DeleteDialog",
|
|
13348
13356
|
props: {
|
|
13349
13357
|
title: {
|
|
@@ -13374,8 +13382,8 @@ const mp = /* @__PURE__ */ ne(rp, [["render", cp]]), dp = {
|
|
|
13374
13382
|
this.showDialog = !0;
|
|
13375
13383
|
}
|
|
13376
13384
|
}
|
|
13377
|
-
},
|
|
13378
|
-
function
|
|
13385
|
+
}, fp = { class: "text-body-1 pb-1" }, yp = { class: "text-body-1" };
|
|
13386
|
+
function bp(t, e, o, i, a, l) {
|
|
13379
13387
|
const r = M("VIcon"), c = M("VBtn"), s = M("VCardTitle"), d = M("VCardText"), m = M("VCardActions"), u = M("VCard"), p = M("VDialog");
|
|
13380
13388
|
return A(), j(p, {
|
|
13381
13389
|
modelValue: a.showDialog,
|
|
@@ -13414,8 +13422,8 @@ function pp(t, e, o, i, a, l) {
|
|
|
13414
13422
|
}),
|
|
13415
13423
|
w(d, { class: "py-4 text-center" }, {
|
|
13416
13424
|
default: x(() => [
|
|
13417
|
-
n("p",
|
|
13418
|
-
n("p",
|
|
13425
|
+
n("p", fp, y(o.tips), 1),
|
|
13426
|
+
n("p", yp, y(t.$t("tips.doYouWantToContinue")), 1)
|
|
13419
13427
|
]),
|
|
13420
13428
|
_: 1
|
|
13421
13429
|
}),
|
|
@@ -13455,10 +13463,10 @@ function pp(t, e, o, i, a, l) {
|
|
|
13455
13463
|
_: 1
|
|
13456
13464
|
}, 8, ["modelValue"]);
|
|
13457
13465
|
}
|
|
13458
|
-
const
|
|
13459
|
-
const
|
|
13466
|
+
const wp = /* @__PURE__ */ ne(gp, [["render", bp]]);
|
|
13467
|
+
const xp = {
|
|
13460
13468
|
name: "IdmMarker",
|
|
13461
|
-
components: { IdmDrawMarker:
|
|
13469
|
+
components: { IdmDrawMarker: Hu, IdmImportMarker: cp, IdmGroupDialog: pp, DeleteDialog: wp },
|
|
13462
13470
|
props: {
|
|
13463
13471
|
simple: {
|
|
13464
13472
|
type: Boolean,
|
|
@@ -13814,34 +13822,34 @@ const fp = {
|
|
|
13814
13822
|
});
|
|
13815
13823
|
}
|
|
13816
13824
|
}
|
|
13817
|
-
},
|
|
13825
|
+
}, vp = { class: "idm-gl4-marker" }, Ap = { class: "w-100 px-4 d-flex flex-column justify-start align-start" }, kp = { class: "w-100 header-box d-flex justify-space-between align-center pr-4" }, Lp = { class: "d-flex justify-start align-center ga-3" }, zp = { class: "text-h5 font-weight-medium" }, _p = { class: "search-box w-100 mb-3" }, Cp = {
|
|
13818
13826
|
class: "multi-color-icon",
|
|
13819
13827
|
style: { height: "20px", width: "20px" },
|
|
13820
13828
|
"aria-hidden": "true"
|
|
13821
|
-
},
|
|
13829
|
+
}, Mp = {
|
|
13822
13830
|
key: 0,
|
|
13823
13831
|
class: "w-100 d-flex justify-space-between align-center ga-4"
|
|
13824
|
-
},
|
|
13832
|
+
}, Pp = {
|
|
13825
13833
|
key: 0,
|
|
13826
13834
|
class: "w-100 d-flex justify-center align-center",
|
|
13827
13835
|
style: { height: "200px" }
|
|
13828
|
-
},
|
|
13836
|
+
}, Sp = {
|
|
13829
13837
|
key: 1,
|
|
13830
13838
|
class: "w-100 d-flex justify-center align-center"
|
|
13831
|
-
},
|
|
13839
|
+
}, Tp = { class: "text-body-1" }, Rp = {
|
|
13832
13840
|
key: 2,
|
|
13833
13841
|
class: "list-box w-100 flex-1-1-0 px-4 pb-2 scroll overflow-y-auto"
|
|
13834
|
-
},
|
|
13842
|
+
}, Ip = { class: "group-label text-body-1 d-flex justify-space-between align-center py-4" }, Dp = { class: "d-flex justify-start align-center pl-2 cursor-pointer" }, Ep = ["onClick"], Gp = { key: 0 }, Fp = {
|
|
13835
13843
|
key: 0,
|
|
13836
13844
|
class: "layer-list flex-1-1-0 overflow-y-hidden pb-2"
|
|
13837
|
-
},
|
|
13845
|
+
}, jp = { class: "d-flex align-center justify-start ga-2" }, Bp = { class: "font-weight-600 layer-name" }, Np = {
|
|
13838
13846
|
key: 0,
|
|
13839
13847
|
class: "layer-actions d-flex align-center justify-end ga-1"
|
|
13840
13848
|
};
|
|
13841
|
-
function
|
|
13849
|
+
function Wp(t, e, o, i, a, l) {
|
|
13842
13850
|
var R;
|
|
13843
13851
|
const r = M("VBtn"), c = M("VTooltip"), s = M("VSwitch"), d = M("VIcon"), m = M("VTextField"), u = M("VProgressCircular"), p = M("VChip"), b = M("VListItemTitle"), g = M("VListItem"), h = M("VList"), f = M("VCard"), k = M("VMenu"), v = M("VDivider"), _ = M("IdmDrawMarker"), L = M("IdmImportMarker"), P = M("IdmGroupDialog"), z = M("DeleteDialog");
|
|
13844
|
-
return A(), I("div",
|
|
13852
|
+
return A(), I("div", vp, [
|
|
13845
13853
|
n("div", {
|
|
13846
13854
|
class: "menu-bar-box transition pa-1",
|
|
13847
13855
|
style: fe({ top: o.top + o.paddingTop + 206 + "px", right: a.right + "px" })
|
|
@@ -13876,10 +13884,10 @@ function Fp(t, e, o, i, a, l) {
|
|
|
13876
13884
|
class: be(["main-box transition d-flex flex-column justify-start align-start", a.toggle ? "right-bar" : ""]),
|
|
13877
13885
|
style: fe(l.listStyle)
|
|
13878
13886
|
}, [
|
|
13879
|
-
n("div",
|
|
13880
|
-
n("div",
|
|
13881
|
-
n("div",
|
|
13882
|
-
n("div",
|
|
13887
|
+
n("div", Ap, [
|
|
13888
|
+
n("div", kp, [
|
|
13889
|
+
n("div", Lp, [
|
|
13890
|
+
n("div", zp, y(t.$t("marker.markers")), 1),
|
|
13883
13891
|
w(s, {
|
|
13884
13892
|
modelValue: a.autoActive,
|
|
13885
13893
|
"onUpdate:modelValue": e[0] || (e[0] = (S) => a.autoActive = S),
|
|
@@ -13916,7 +13924,7 @@ function Fp(t, e, o, i, a, l) {
|
|
|
13916
13924
|
__: [8]
|
|
13917
13925
|
}, 8, ["onClick"])
|
|
13918
13926
|
]),
|
|
13919
|
-
n("div",
|
|
13927
|
+
n("div", _p, [
|
|
13920
13928
|
w(m, {
|
|
13921
13929
|
modelValue: a.keyword,
|
|
13922
13930
|
"onUpdate:modelValue": e[1] || (e[1] = (S) => a.keyword = S),
|
|
@@ -13929,14 +13937,14 @@ function Fp(t, e, o, i, a, l) {
|
|
|
13929
13937
|
class: "input-btn-bg-1"
|
|
13930
13938
|
}, {
|
|
13931
13939
|
"prepend-inner": x(() => [
|
|
13932
|
-
(A(), I("svg",
|
|
13940
|
+
(A(), I("svg", Cp, e[9] || (e[9] = [
|
|
13933
13941
|
n("use", { "xlink:href": "#icon-search" }, null, -1)
|
|
13934
13942
|
])))
|
|
13935
13943
|
]),
|
|
13936
13944
|
_: 1
|
|
13937
13945
|
}, 8, ["modelValue"])
|
|
13938
13946
|
]),
|
|
13939
|
-
o.simple ? G("", !0) : (A(), I("div",
|
|
13947
|
+
o.simple ? G("", !0) : (A(), I("div", Mp, [
|
|
13940
13948
|
w(r, {
|
|
13941
13949
|
class: "flex-1-1-0 text-none mb-3 text-body-1 font-weight-600",
|
|
13942
13950
|
color: "primary",
|
|
@@ -13969,24 +13977,24 @@ function Fp(t, e, o, i, a, l) {
|
|
|
13969
13977
|
}, 8, ["onClick"])
|
|
13970
13978
|
]))
|
|
13971
13979
|
]),
|
|
13972
|
-
a.loading ? (A(), I("div",
|
|
13980
|
+
a.loading ? (A(), I("div", Pp, [
|
|
13973
13981
|
w(u, {
|
|
13974
13982
|
color: "primary",
|
|
13975
13983
|
indeterminate: "",
|
|
13976
13984
|
size: "36",
|
|
13977
13985
|
width: "4"
|
|
13978
13986
|
})
|
|
13979
|
-
])) : a.layerGroup.length === 0 ? (A(), I("div",
|
|
13980
|
-
n("div",
|
|
13981
|
-
])) : (A(), I("div",
|
|
13987
|
+
])) : a.layerGroup.length === 0 ? (A(), I("div", Sp, [
|
|
13988
|
+
n("div", Tp, y(t.$t("tips.noData")), 1)
|
|
13989
|
+
])) : (A(), I("div", Rp, [
|
|
13982
13990
|
(A(!0), I(Re, null, De(a.layerGroup, (S, F) => {
|
|
13983
13991
|
var N;
|
|
13984
13992
|
return A(), I("div", {
|
|
13985
13993
|
key: S.name,
|
|
13986
13994
|
class: be(["btn-bg-1", S.index === a.layerGroup.length ? "rounded-b" : S.index === 1 ? "rounded-t" : ""])
|
|
13987
13995
|
}, [
|
|
13988
|
-
n("div",
|
|
13989
|
-
n("div",
|
|
13996
|
+
n("div", Ip, [
|
|
13997
|
+
n("div", Dp, [
|
|
13990
13998
|
S.show ? (A(), j(d, {
|
|
13991
13999
|
key: 0,
|
|
13992
14000
|
icon: "mdi-chevron-down",
|
|
@@ -14022,9 +14030,9 @@ function Fp(t, e, o, i, a, l) {
|
|
|
14022
14030
|
n("div", {
|
|
14023
14031
|
class: "",
|
|
14024
14032
|
onClick: (B) => S.show = !S.show
|
|
14025
|
-
}, y(S.name), 9,
|
|
14033
|
+
}, y(S.name), 9, Ep)
|
|
14026
14034
|
]),
|
|
14027
|
-
S.name !== "Custom Layers" && !o.simple ? (A(), I("div",
|
|
14035
|
+
S.name !== "Custom Layers" && !o.simple ? (A(), I("div", Gp, [
|
|
14028
14036
|
w(r, {
|
|
14029
14037
|
icon: "",
|
|
14030
14038
|
density: "compact",
|
|
@@ -14130,7 +14138,7 @@ function Fp(t, e, o, i, a, l) {
|
|
|
14130
14138
|
}, 1024)
|
|
14131
14139
|
])) : G("", !0)
|
|
14132
14140
|
]),
|
|
14133
|
-
S.show ? (A(), I("div",
|
|
14141
|
+
S.show ? (A(), I("div", Fp, [
|
|
14134
14142
|
(A(!0), I(Re, null, De((N = S.layers) == null ? void 0 : N.filter((B) => {
|
|
14135
14143
|
var te;
|
|
14136
14144
|
return ((te = B.name) == null ? void 0 : te.indexOf(a.keyword)) > -1;
|
|
@@ -14140,10 +14148,10 @@ function Fp(t, e, o, i, a, l) {
|
|
|
14140
14148
|
key: B.id,
|
|
14141
14149
|
class: be(["layer-item py-3 px-2 mx-2 rounded cursor-pointer d-flex align-center justify-space-between ga-4", ((te = a.currentLayer) == null ? void 0 : te.id) === B.id ? "active" : ""])
|
|
14142
14150
|
}, [
|
|
14143
|
-
n("div",
|
|
14144
|
-
n("span",
|
|
14151
|
+
n("div", jp, [
|
|
14152
|
+
n("span", Bp, y(B == null ? void 0 : B.name), 1)
|
|
14145
14153
|
]),
|
|
14146
|
-
o.simple ? G("", !0) : (A(), I("div",
|
|
14154
|
+
o.simple ? G("", !0) : (A(), I("div", Np, [
|
|
14147
14155
|
w(r, {
|
|
14148
14156
|
class: "",
|
|
14149
14157
|
density: "compact",
|
|
@@ -14234,9 +14242,9 @@ function Fp(t, e, o, i, a, l) {
|
|
|
14234
14242
|
}, null, 8, ["title", "tips", "loading"])
|
|
14235
14243
|
]);
|
|
14236
14244
|
}
|
|
14237
|
-
const
|
|
14245
|
+
const Zp = /* @__PURE__ */ ne(xp, [["render", Wp]]);
|
|
14238
14246
|
var X = { 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() } };
|
|
14239
|
-
function
|
|
14247
|
+
function Vp(t = "soft") {
|
|
14240
14248
|
switch (X.session.__counterEpoch = (X.session.__counterEpoch || 0) + 1, t) {
|
|
14241
14249
|
case "auto": {
|
|
14242
14250
|
X.session.styleMap = /* @__PURE__ */ new Map(), X.session.nodeMap = /* @__PURE__ */ new Map();
|
|
@@ -14265,7 +14273,7 @@ function fa(t) {
|
|
|
14265
14273
|
let o = e[2].trim();
|
|
14266
14274
|
return o.startsWith("#") ? null : o;
|
|
14267
14275
|
}
|
|
14268
|
-
function
|
|
14276
|
+
function Xp(t) {
|
|
14269
14277
|
if (!t || t === "none")
|
|
14270
14278
|
return "";
|
|
14271
14279
|
let e = t.replace(/translate[XY]?\([^)]*\)/g, "");
|
|
@@ -14286,7 +14294,7 @@ function qo(t) {
|
|
|
14286
14294
|
return t;
|
|
14287
14295
|
}
|
|
14288
14296
|
}
|
|
14289
|
-
function
|
|
14297
|
+
function Op(t = "[snapDOM]", { ttlMs: e = 5 * 6e4, maxEntries: o = 12 } = {}) {
|
|
14290
14298
|
let i = /* @__PURE__ */ new Map(), a = 0;
|
|
14291
14299
|
function l(r, c, s) {
|
|
14292
14300
|
if (a >= o)
|
|
@@ -14302,11 +14310,11 @@ function Wp(t = "[snapDOM]", { ttlMs: e = 5 * 6e4, maxEntries: o = 12 } = {}) {
|
|
|
14302
14310
|
i.clear(), a = 0;
|
|
14303
14311
|
} };
|
|
14304
14312
|
}
|
|
14305
|
-
var xi =
|
|
14306
|
-
function
|
|
14313
|
+
var xi = Op("[snapDOM]", { ttlMs: 3 * 6e4, maxEntries: 10 }), oa = /* @__PURE__ */ new Map(), Yo = /* @__PURE__ */ new Map();
|
|
14314
|
+
function Yp(t) {
|
|
14307
14315
|
return /^data:|^blob:|^about:blank$/i.test(t);
|
|
14308
14316
|
}
|
|
14309
|
-
function
|
|
14317
|
+
function Hp(t, e) {
|
|
14310
14318
|
try {
|
|
14311
14319
|
let o = typeof location < "u" && location.href ? location.href : "http://localhost/", i = e.includes("{url}") ? e.split("{url}")[0] : e, a = new URL(i || ".", o), l = new URL(t, o);
|
|
14312
14320
|
if (l.origin === a.origin)
|
|
@@ -14318,8 +14326,8 @@ function Vp(t, e) {
|
|
|
14318
14326
|
}
|
|
14319
14327
|
return !1;
|
|
14320
14328
|
}
|
|
14321
|
-
function
|
|
14322
|
-
if (!e ||
|
|
14329
|
+
function Up(t, e) {
|
|
14330
|
+
if (!e || Yp(t) || Hp(t, e))
|
|
14323
14331
|
return !1;
|
|
14324
14332
|
try {
|
|
14325
14333
|
let o = typeof location < "u" && location.href ? location.href : "http://localhost/", i = new URL(t, o);
|
|
@@ -14328,7 +14336,7 @@ function Xp(t, e) {
|
|
|
14328
14336
|
return !!e;
|
|
14329
14337
|
}
|
|
14330
14338
|
}
|
|
14331
|
-
function
|
|
14339
|
+
function Jp(t, e) {
|
|
14332
14340
|
if (!e)
|
|
14333
14341
|
return t;
|
|
14334
14342
|
if (e.includes("{url}"))
|
|
@@ -14348,7 +14356,7 @@ function vi(t) {
|
|
|
14348
14356
|
i.onload = () => e(String(i.result || "")), i.onerror = () => o(new Error("read_failed")), i.readAsDataURL(t);
|
|
14349
14357
|
});
|
|
14350
14358
|
}
|
|
14351
|
-
function
|
|
14359
|
+
function Kp(t, e) {
|
|
14352
14360
|
return [e.as || "blob", e.timeout ?? 3e3, e.useProxy || "", e.errorTTL ?? 8e3, t].join("|");
|
|
14353
14361
|
}
|
|
14354
14362
|
async function so(t, e = {}) {
|
|
@@ -14376,14 +14384,14 @@ async function so(t, e = {}) {
|
|
|
14376
14384
|
}
|
|
14377
14385
|
if (/^about:blank$/i.test(t))
|
|
14378
14386
|
return o === "dataURL" ? { ok: !0, data: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR4nGMAAQAABQABDQottAAAAABJRU5ErkJggg==", status: 200, url: t, fromCache: !1, mime: "image/png" } : { ok: !0, data: o === "text" ? "" : new Blob([]), status: 200, url: t, fromCache: !1 };
|
|
14379
|
-
let s =
|
|
14387
|
+
let s = Kp(t, { as: o, timeout: i, useProxy: a, errorTTL: l }), d = Yo.get(s);
|
|
14380
14388
|
if (d && d.until > Date.now())
|
|
14381
14389
|
return { ...d.result, fromCache: !0 };
|
|
14382
14390
|
d && Yo.delete(s);
|
|
14383
14391
|
let m = oa.get(s);
|
|
14384
14392
|
if (m)
|
|
14385
14393
|
return m;
|
|
14386
|
-
let u =
|
|
14394
|
+
let u = Up(t, a) ? Jp(t, a) : t, p = e.credentials;
|
|
14387
14395
|
if (!p)
|
|
14388
14396
|
try {
|
|
14389
14397
|
let f = typeof location < "u" && location.href ? location.href : "http://localhost/", k = new URL(t, f);
|
|
@@ -14437,8 +14445,8 @@ async function Vi(t, e = {}) {
|
|
|
14437
14445
|
return X.background.set(i, null), "none";
|
|
14438
14446
|
}
|
|
14439
14447
|
}
|
|
14440
|
-
var
|
|
14441
|
-
function
|
|
14448
|
+
var Qp = /* @__PURE__ */ new Set(["meta", "script", "noscript", "title", "link", "template"]), ya = /* @__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"]);
|
|
14449
|
+
function qp(t) {
|
|
14442
14450
|
if (t = String(t).toLowerCase(), ya.has(t)) {
|
|
14443
14451
|
let l = {};
|
|
14444
14452
|
return X.defaultStyle.set(t, l), l;
|
|
@@ -14458,15 +14466,15 @@ function Up(t) {
|
|
|
14458
14466
|
}
|
|
14459
14467
|
return e.removeChild(o), X.defaultStyle.set(t, a), a;
|
|
14460
14468
|
}
|
|
14461
|
-
var
|
|
14469
|
+
var $p = /(?:^|-)(animation|transition)(?:-|$)/i, eg = /^(--|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, tg = /* @__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"]);
|
|
14462
14470
|
function Xi(t) {
|
|
14463
14471
|
let e = String(t).toLowerCase();
|
|
14464
|
-
return !!(
|
|
14472
|
+
return !!(tg.has(e) || eg.test(e) || $p.test(e));
|
|
14465
14473
|
}
|
|
14466
14474
|
function la(t, e) {
|
|
14467
14475
|
if (e = String(e || "").toLowerCase(), ya.has(e))
|
|
14468
14476
|
return "";
|
|
14469
|
-
let o = [], i =
|
|
14477
|
+
let o = [], i = qp(e);
|
|
14470
14478
|
for (let [a, l] of Object.entries(t)) {
|
|
14471
14479
|
if (Xi(a))
|
|
14472
14480
|
continue;
|
|
@@ -14475,11 +14483,11 @@ function la(t, e) {
|
|
|
14475
14483
|
}
|
|
14476
14484
|
return o.sort(), o.join(";");
|
|
14477
14485
|
}
|
|
14478
|
-
function
|
|
14486
|
+
function og(t) {
|
|
14479
14487
|
let e = /* @__PURE__ */ new Set();
|
|
14480
14488
|
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((o) => e.add(o.tagName.toLowerCase())), Array.from(e));
|
|
14481
14489
|
}
|
|
14482
|
-
function
|
|
14490
|
+
function ag(t) {
|
|
14483
14491
|
let e = /* @__PURE__ */ new Map();
|
|
14484
14492
|
for (let i of t) {
|
|
14485
14493
|
let a = X.defaultStyle.get(i);
|
|
@@ -14494,7 +14502,7 @@ function $p(t) {
|
|
|
14494
14502
|
`;
|
|
14495
14503
|
return o;
|
|
14496
14504
|
}
|
|
14497
|
-
function
|
|
14505
|
+
function ig(t) {
|
|
14498
14506
|
let e = Array.from(new Set(t.values())).filter(Boolean).sort(), o = /* @__PURE__ */ new Map(), i = 1;
|
|
14499
14507
|
for (let a of e)
|
|
14500
14508
|
o.set(a, `c${i++}`);
|
|
@@ -14524,31 +14532,31 @@ function Yi(t) {
|
|
|
14524
14532
|
}
|
|
14525
14533
|
return e.push(t.slice(i).trim()), e;
|
|
14526
14534
|
}
|
|
14527
|
-
var
|
|
14528
|
-
function
|
|
14535
|
+
var lg = [/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], fo = 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__ || {}), ra = [];
|
|
14536
|
+
function rg(t) {
|
|
14529
14537
|
let e = Array.isArray(t) ? t : [t];
|
|
14530
14538
|
for (let o of e)
|
|
14531
14539
|
o instanceof RegExp ? ra.push(o) : typeof o == "string" ? ra.push(new RegExp(o, "i")) : console.warn("[snapdom] Ignored invalid iconFont value:", o);
|
|
14532
14540
|
}
|
|
14533
14541
|
function co(t) {
|
|
14534
|
-
let e = typeof t == "string" ? t : "", o = [...
|
|
14542
|
+
let e = typeof t == "string" ? t : "", o = [...lg, ...ra];
|
|
14535
14543
|
for (let i of o)
|
|
14536
14544
|
if (i instanceof RegExp && i.test(e))
|
|
14537
14545
|
return !0;
|
|
14538
14546
|
return !!(/icon/i.test(e) || /glyph/i.test(e) || /symbols/i.test(e) || /feather/i.test(e) || /fontawesome/i.test(e));
|
|
14539
14547
|
}
|
|
14540
|
-
function
|
|
14548
|
+
function ng(t = "") {
|
|
14541
14549
|
let e = String(t).toLowerCase();
|
|
14542
14550
|
return /\bmaterial\s*icons\b/.test(e) || /\bmaterial\s*symbols\b/.test(e);
|
|
14543
14551
|
}
|
|
14544
14552
|
var ki = /* @__PURE__ */ new Map();
|
|
14545
|
-
function
|
|
14553
|
+
function sg(t = "") {
|
|
14546
14554
|
let e = /* @__PURE__ */ Object.create(null), o = String(t || ""), i = /['"]?\s*([A-Za-z]{3,4})\s*['"]?\s*([+-]?\d+(?:\.\d+)?)\s*/g, a;
|
|
14547
14555
|
for (; a = i.exec(o); )
|
|
14548
14556
|
e[a[1].toUpperCase()] = Number(a[2]);
|
|
14549
14557
|
return e;
|
|
14550
14558
|
}
|
|
14551
|
-
async function
|
|
14559
|
+
async function cg(t, e, o) {
|
|
14552
14560
|
let i = String(t || ""), a = i.toLowerCase(), l = String(e || "").toLowerCase();
|
|
14553
14561
|
if (/\bmaterial\s*icons\b/.test(a) && !/\bsymbols\b/.test(a))
|
|
14554
14562
|
return { familyForMeasure: i, familyForCanvas: i };
|
|
@@ -14569,13 +14577,13 @@ async function lg(t, e, o) {
|
|
|
14569
14577
|
let m = `"${d.alias}"`;
|
|
14570
14578
|
return { familyForMeasure: m, familyForCanvas: m };
|
|
14571
14579
|
}
|
|
14572
|
-
async function
|
|
14580
|
+
async function mg(t = "Material Icons", e = 24) {
|
|
14573
14581
|
try {
|
|
14574
14582
|
await Promise.all([document.fonts.load(`400 ${e}px "${String(t).replace(/["']/g, "")}"`), document.fonts.ready]);
|
|
14575
14583
|
} catch {
|
|
14576
14584
|
}
|
|
14577
14585
|
}
|
|
14578
|
-
function
|
|
14586
|
+
function dg(t) {
|
|
14579
14587
|
var a, l;
|
|
14580
14588
|
let e = ((a = t.getPropertyValue("-webkit-text-fill-color")) == null ? void 0 : a.trim()) || "", o = /^transparent$/i.test(e) || /rgba?\(\s*0\s*,\s*0\s*,\s*0\s*,\s*0\s*\)/i.test(e);
|
|
14581
14589
|
if (e && !o && e.toLowerCase() !== "currentcolor")
|
|
@@ -14583,9 +14591,9 @@ function ng(t) {
|
|
|
14583
14591
|
let i = (l = t.color) == null ? void 0 : l.trim();
|
|
14584
14592
|
return i && i !== "inherit" ? i : "#000";
|
|
14585
14593
|
}
|
|
14586
|
-
async function
|
|
14587
|
-
let c = String(e || "").replace(/^['"]+|['"]+$/g, ""), s = window.devicePixelRatio || 1, d =
|
|
14588
|
-
await
|
|
14594
|
+
async function hg(t, { family: e = "Material Icons", weight: o = "normal", fontSize: i = 32, color: a = "#000", variation: l = "", className: r = "" } = {}) {
|
|
14595
|
+
let c = String(e || "").replace(/^['"]+|['"]+$/g, ""), s = window.devicePixelRatio || 1, d = sg(l), { familyForMeasure: m, familyForCanvas: u } = await cg(c, r, d);
|
|
14596
|
+
await mg(u.replace(/^["']+|["']+$/g, ""), i);
|
|
14589
14597
|
let p = document.createElement("span");
|
|
14590
14598
|
p.textContent = t, p.style.position = "absolute", p.style.visibility = "hidden", p.style.left = "-99999px", p.style.whiteSpace = "nowrap", p.style.fontFamily = m, p.style.fontWeight = String(o || "normal"), p.style.fontSize = `${i}px`, p.style.lineHeight = "1", p.style.margin = "0", p.style.padding = "0", p.style.fontFeatureSettings = "'liga' 1", p.style.fontVariantLigatures = "normal", p.style.color = a, document.body.appendChild(p);
|
|
14591
14599
|
let b = p.getBoundingClientRect(), g = Math.max(1, Math.ceil(b.width)), h = Math.max(1, Math.ceil(b.height));
|
|
@@ -14600,7 +14608,7 @@ async function sg(t, { family: e = "Material Icons", weight: o = "normal", fontS
|
|
|
14600
14608
|
}
|
|
14601
14609
|
return k.fillText(t, 0, 0), { dataUrl: f.toDataURL(), width: g, height: h };
|
|
14602
14610
|
}
|
|
14603
|
-
async function
|
|
14611
|
+
async function ug(t, e) {
|
|
14604
14612
|
if (!(t instanceof Element))
|
|
14605
14613
|
return 0;
|
|
14606
14614
|
let o = '.material-icons, [class*="material-symbols"]', i = Array.from(t.querySelectorAll(o)).filter((r) => r && r.textContent && r.textContent.trim());
|
|
@@ -14611,12 +14619,12 @@ async function cg(t, e) {
|
|
|
14611
14619
|
let c = i[r], s = a[r] || null;
|
|
14612
14620
|
try {
|
|
14613
14621
|
let d = getComputedStyle(s || c), m = d.fontFamily || "Material Icons";
|
|
14614
|
-
if (!
|
|
14622
|
+
if (!ng(m))
|
|
14615
14623
|
continue;
|
|
14616
14624
|
let u = (s || c).textContent.trim();
|
|
14617
14625
|
if (!u)
|
|
14618
14626
|
continue;
|
|
14619
|
-
let p = parseInt(d.fontSize, 10) || 24, b = d.fontWeight && d.fontWeight !== "normal" ? d.fontWeight : "normal", g =
|
|
14627
|
+
let p = parseInt(d.fontSize, 10) || 24, b = d.fontWeight && d.fontWeight !== "normal" ? d.fontWeight : "normal", g = dg(d), h = d.fontVariationSettings && d.fontVariationSettings !== "normal" ? d.fontVariationSettings : "", f = (s || c).className || "", { dataUrl: k, width: v, height: _ } = await hg(u, { family: m, weight: b, fontSize: p, color: g, variation: h, className: f });
|
|
14620
14628
|
c.textContent = "";
|
|
14621
14629
|
let L = c.ownerDocument.createElement("img");
|
|
14622
14630
|
L.src = k, L.alt = u, L.style.height = `${p}px`, L.style.width = `${Math.max(1, Math.round(v / _ * p))}px`, L.style.objectFit = "contain", L.style.verticalAlign = getComputedStyle(c).verticalAlign || "baseline", c.appendChild(L), l++;
|
|
@@ -14625,7 +14633,7 @@ async function cg(t, e) {
|
|
|
14625
14633
|
}
|
|
14626
14634
|
return l;
|
|
14627
14635
|
}
|
|
14628
|
-
async function
|
|
14636
|
+
async function pg(t, e, o, i = 32, a = "#000") {
|
|
14629
14637
|
e = e.replace(/^['"]+|['"]+$/g, "");
|
|
14630
14638
|
let l = window.devicePixelRatio || 1;
|
|
14631
14639
|
try {
|
|
@@ -14641,13 +14649,13 @@ async function mg(t, e, o, i = 32, a = "#000") {
|
|
|
14641
14649
|
let u = m.getContext("2d");
|
|
14642
14650
|
return u.scale(l, l), u.font = o ? `${o} ${i}px "${e}"` : `${i}px "${e}"`, u.textAlign = "left", u.textBaseline = "top", u.fillStyle = a, u.fillText(t, 0, 0), { dataUrl: m.toDataURL(), width: s, height: d };
|
|
14643
14651
|
}
|
|
14644
|
-
var
|
|
14652
|
+
var gg = /* @__PURE__ */ new Set(["serif", "sans-serif", "monospace", "cursive", "fantasy", "system-ui", "emoji", "math", "fangsong", "ui-serif", "ui-sans-serif", "ui-monospace", "ui-rounded"]);
|
|
14645
14653
|
function ta(t) {
|
|
14646
14654
|
if (!t)
|
|
14647
14655
|
return "";
|
|
14648
14656
|
for (let e of t.split(",")) {
|
|
14649
14657
|
let o = e.trim().replace(/^['"]+|['"]+$/g, "");
|
|
14650
|
-
if (o && !
|
|
14658
|
+
if (o && !gg.has(o.toLowerCase()))
|
|
14651
14659
|
return o;
|
|
14652
14660
|
}
|
|
14653
14661
|
return "";
|
|
@@ -14665,11 +14673,11 @@ function Jo(t) {
|
|
|
14665
14673
|
let e = String(t ?? "normal").trim().toLowerCase();
|
|
14666
14674
|
return e.startsWith("italic") ? "italic" : e.startsWith("oblique") ? "oblique" : "normal";
|
|
14667
14675
|
}
|
|
14668
|
-
function
|
|
14676
|
+
function fg(t) {
|
|
14669
14677
|
let e = String(t ?? "100%").match(/(\d+(?:\.\d+)?)\s*%/);
|
|
14670
14678
|
return e ? Math.max(50, Math.min(200, parseFloat(e[1]))) : 100;
|
|
14671
14679
|
}
|
|
14672
|
-
function
|
|
14680
|
+
function yg(t) {
|
|
14673
14681
|
let e = String(t || "400").trim(), o = e.match(/^(\d{2,3})\s+(\d{2,3})$/);
|
|
14674
14682
|
if (o) {
|
|
14675
14683
|
let a = Uo(o[1]), l = Uo(o[2]);
|
|
@@ -14678,11 +14686,11 @@ function ug(t) {
|
|
|
14678
14686
|
let i = Uo(e);
|
|
14679
14687
|
return { min: i, max: i };
|
|
14680
14688
|
}
|
|
14681
|
-
function
|
|
14689
|
+
function bg(t) {
|
|
14682
14690
|
let e = String(t || "normal").trim().toLowerCase();
|
|
14683
14691
|
return e === "italic" ? { kind: "italic" } : e.startsWith("oblique") ? { kind: "oblique" } : { kind: "normal" };
|
|
14684
14692
|
}
|
|
14685
|
-
function
|
|
14693
|
+
function wg(t) {
|
|
14686
14694
|
let e = String(t || "100%").trim(), o = e.match(/(\d+(?:\.\d+)?)\s*%\s+(\d+(?:\.\d+)?)\s*%/);
|
|
14687
14695
|
if (o) {
|
|
14688
14696
|
let l = parseFloat(o[1]), r = parseFloat(o[2]);
|
|
@@ -14691,7 +14699,7 @@ function gg(t) {
|
|
|
14691
14699
|
let i = e.match(/(\d+(?:\.\d+)?)\s*%/), a = i ? parseFloat(i[1]) : 100;
|
|
14692
14700
|
return { min: a, max: a };
|
|
14693
14701
|
}
|
|
14694
|
-
function
|
|
14702
|
+
function xg(t, e) {
|
|
14695
14703
|
if (!t)
|
|
14696
14704
|
return !1;
|
|
14697
14705
|
try {
|
|
@@ -14714,7 +14722,7 @@ function fg(t, e) {
|
|
|
14714
14722
|
return !1;
|
|
14715
14723
|
}
|
|
14716
14724
|
}
|
|
14717
|
-
function
|
|
14725
|
+
function vg(t) {
|
|
14718
14726
|
var o;
|
|
14719
14727
|
let e = /* @__PURE__ */ new Set();
|
|
14720
14728
|
for (let i of t || []) {
|
|
@@ -14737,7 +14745,7 @@ function Li(t, e) {
|
|
|
14737
14745
|
});
|
|
14738
14746
|
}
|
|
14739
14747
|
var na = /@import\s+(?:url\(\s*(['"]?)([^)"']+)\1\s*\)|(['"])([^"']+)\3)([^;]*);/g, $o = 4;
|
|
14740
|
-
async function
|
|
14748
|
+
async function Ag(t, e, o) {
|
|
14741
14749
|
if (!t)
|
|
14742
14750
|
return t;
|
|
14743
14751
|
let i = /* @__PURE__ */ new Set();
|
|
@@ -14776,7 +14784,7 @@ ${h}
|
|
|
14776
14784
|
let r = Li(t, e || location.href);
|
|
14777
14785
|
return r = await l(r, e || location.href, 0), r;
|
|
14778
14786
|
}
|
|
14779
|
-
var Hi = /url\((["']?)([^"')]+)\1\)/g,
|
|
14787
|
+
var Hi = /url\((["']?)([^"')]+)\1\)/g, kg = /@font-face[^{}]*\{[^}]*\}/g;
|
|
14780
14788
|
function Ui(t) {
|
|
14781
14789
|
if (!t)
|
|
14782
14790
|
return [];
|
|
@@ -14859,7 +14867,7 @@ async function Ki(t, e, o = "") {
|
|
|
14859
14867
|
}
|
|
14860
14868
|
return i;
|
|
14861
14869
|
}
|
|
14862
|
-
function
|
|
14870
|
+
function Lg(t) {
|
|
14863
14871
|
if (!t.length)
|
|
14864
14872
|
return null;
|
|
14865
14873
|
let e = (r, c) => t.some(([s, d]) => !(d < r || s > c)), o = e(0, 255) || e(305, 305), i = e(256, 591) || e(7680, 7935), a = e(880, 1023), l = e(1024, 1279);
|
|
@@ -14878,14 +14886,14 @@ function zi(t = {}) {
|
|
|
14878
14886
|
} catch {
|
|
14879
14887
|
}
|
|
14880
14888
|
if (i.size) {
|
|
14881
|
-
let r =
|
|
14889
|
+
let r = Lg(l);
|
|
14882
14890
|
if (r && i.has(r))
|
|
14883
14891
|
return !0;
|
|
14884
14892
|
}
|
|
14885
14893
|
return !1;
|
|
14886
14894
|
};
|
|
14887
14895
|
}
|
|
14888
|
-
function
|
|
14896
|
+
function zg(t) {
|
|
14889
14897
|
var l, r, c, s, d, m;
|
|
14890
14898
|
if (!t)
|
|
14891
14899
|
return t;
|
|
@@ -14899,7 +14907,7 @@ function vg(t) {
|
|
|
14899
14907
|
let a = 0;
|
|
14900
14908
|
return t.replace(e, () => i[a++] || "");
|
|
14901
14909
|
}
|
|
14902
|
-
function
|
|
14910
|
+
function _g(t, e, o, i) {
|
|
14903
14911
|
let a = Array.from(t || []).sort().join("|"), l = 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() }) : "", r = (o || []).map((c) => `${(c.family || "").toLowerCase()}::${c.weight || "normal"}::${c.style || "normal"}::${c.src || ""}`).sort().join("|");
|
|
14904
14912
|
return `fonts-embed-css::req=${a}::ex=${l}::lf=${r}::px=${i || ""}`;
|
|
14905
14913
|
}
|
|
@@ -14954,7 +14962,7 @@ async function Qi(t, e, o, i) {
|
|
|
14954
14962
|
}
|
|
14955
14963
|
}
|
|
14956
14964
|
}
|
|
14957
|
-
async function
|
|
14965
|
+
async function Cg({ required: t, usedCodepoints: e, exclude: o = void 0, localFonts: i = [], useProxy: a = "" } = {}) {
|
|
14958
14966
|
var h, f, k, v, _, L, P, z, R, S, F, N, B, te, oe, le, we, ye;
|
|
14959
14967
|
t instanceof Set || (t = /* @__PURE__ */ new Set()), e instanceof Set || (e = /* @__PURE__ */ new Set());
|
|
14960
14968
|
let l = /* @__PURE__ */ new Map();
|
|
@@ -14968,7 +14976,7 @@ async function kg({ required: t, usedCodepoints: e, exclude: o = void 0, localFo
|
|
|
14968
14976
|
function r(E, Q, q, re) {
|
|
14969
14977
|
if (!l.has(E))
|
|
14970
14978
|
return !1;
|
|
14971
|
-
let J = l.get(E), Y =
|
|
14979
|
+
let J = l.get(E), Y = yg(q), ie = bg(Q), D = wg(re), ce = Y.min !== Y.max, xe = Y.min, Le = (he) => ie.kind === "normal" && he === "normal" || ie.kind !== "normal" && (he === "italic" || he === "oblique"), ze = !1;
|
|
14972
14980
|
for (let he of J) {
|
|
14973
14981
|
let Ae = ce ? he.w >= Y.min && he.w <= Y.max : he.w === xe, _e = Le(Jo(he.s)), We = he.st >= D.min && he.st <= D.max;
|
|
14974
14982
|
if (Ae && _e && We) {
|
|
@@ -14992,10 +15000,10 @@ async function kg({ required: t, usedCodepoints: e, exclude: o = void 0, localFo
|
|
|
14992
15000
|
}
|
|
14993
15001
|
return !1;
|
|
14994
15002
|
}
|
|
14995
|
-
let c = zi(o), s =
|
|
15003
|
+
let c = zi(o), s = _g(t, o, i, a);
|
|
14996
15004
|
if ((h = X.resource) != null && h.has(s))
|
|
14997
15005
|
return X.resource.get(s);
|
|
14998
|
-
let d =
|
|
15006
|
+
let d = vg(t), m = [], u = na;
|
|
14999
15007
|
for (let E of document.querySelectorAll("style")) {
|
|
15000
15008
|
let Q = E.textContent || "";
|
|
15001
15009
|
for (let q of Q.matchAll(u)) {
|
|
@@ -15019,7 +15027,7 @@ async function kg({ required: t, usedCodepoints: e, exclude: o = void 0, localFo
|
|
|
15019
15027
|
q = new URL(E.href, location.href).origin === location.origin;
|
|
15020
15028
|
} catch {
|
|
15021
15029
|
}
|
|
15022
|
-
if (!q && !
|
|
15030
|
+
if (!q && !xg(E.href, d))
|
|
15023
15031
|
continue;
|
|
15024
15032
|
if (q) {
|
|
15025
15033
|
let J = Array.from(document.styleSheets).find((Y) => Y.href === E.href);
|
|
@@ -15032,9 +15040,9 @@ async function kg({ required: t, usedCodepoints: e, exclude: o = void 0, localFo
|
|
|
15032
15040
|
}
|
|
15033
15041
|
if (!Q && (Q = (await so(E.href, { as: "text", useProxy: a })).data, co(E.href)))
|
|
15034
15042
|
continue;
|
|
15035
|
-
Q = await
|
|
15043
|
+
Q = await Ag(Q, E.href, a);
|
|
15036
15044
|
let re = "";
|
|
15037
|
-
for (let J of Q.match(
|
|
15045
|
+
for (let J of Q.match(kg) || []) {
|
|
15038
15046
|
let Y = (((f = J.match(/font-family:\s*([^;]+);/i)) == null ? void 0 : f[1]) || "").trim(), ie = ta(Y);
|
|
15039
15047
|
if (!ie || co(ie))
|
|
15040
15048
|
continue;
|
|
@@ -15115,9 +15123,9 @@ async function kg({ required: t, usedCodepoints: e, exclude: o = void 0, localFo
|
|
|
15115
15123
|
}
|
|
15116
15124
|
p += `@font-face{font-family:'${Q}';src:url(${ie});font-style:${re};font-weight:${q};font-stretch:${J};}`;
|
|
15117
15125
|
}
|
|
15118
|
-
return p && (p =
|
|
15126
|
+
return p && (p = zg(p), (ye = X.resource) == null || ye.set(s, p)), p;
|
|
15119
15127
|
}
|
|
15120
|
-
function
|
|
15128
|
+
function Mg(t) {
|
|
15121
15129
|
let e = /* @__PURE__ */ new Set();
|
|
15122
15130
|
if (!t)
|
|
15123
15131
|
return e;
|
|
@@ -15125,7 +15133,7 @@ function Lg(t) {
|
|
|
15125
15133
|
let c = ta(r.fontFamily);
|
|
15126
15134
|
if (!c)
|
|
15127
15135
|
return;
|
|
15128
|
-
let s = (d, m, u) => `${c}__${Uo(d)}__${Jo(m)}__${
|
|
15136
|
+
let s = (d, m, u) => `${c}__${Uo(d)}__${Jo(m)}__${fg(u)}`;
|
|
15129
15137
|
e.add(s(r.fontWeight, r.fontStyle, r.fontStretch));
|
|
15130
15138
|
};
|
|
15131
15139
|
i(getComputedStyle(t));
|
|
@@ -15142,7 +15150,7 @@ function Lg(t) {
|
|
|
15142
15150
|
}
|
|
15143
15151
|
return e;
|
|
15144
15152
|
}
|
|
15145
|
-
function
|
|
15153
|
+
function Pg(t) {
|
|
15146
15154
|
var a;
|
|
15147
15155
|
let e = /* @__PURE__ */ new Set(), o = (l) => {
|
|
15148
15156
|
if (l)
|
|
@@ -15174,7 +15182,7 @@ function zg(t) {
|
|
|
15174
15182
|
}
|
|
15175
15183
|
return e;
|
|
15176
15184
|
}
|
|
15177
|
-
async function
|
|
15185
|
+
async function Sg(t, e = 2) {
|
|
15178
15186
|
try {
|
|
15179
15187
|
await document.fonts.ready;
|
|
15180
15188
|
} catch {
|
|
@@ -15194,7 +15202,7 @@ async function _g(t, e = 2) {
|
|
|
15194
15202
|
for (let a = 0; a < Math.max(1, e); a++)
|
|
15195
15203
|
i(), await new Promise((l) => requestAnimationFrame(() => requestAnimationFrame(l)));
|
|
15196
15204
|
}
|
|
15197
|
-
async function
|
|
15205
|
+
async function Tg(t, e, o, i = {}) {
|
|
15198
15206
|
let a = [[t, e]], l = ["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"], r = ["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"];
|
|
15199
15207
|
for (; a.length; ) {
|
|
15200
15208
|
let [d, m] = a.shift(), u = o.get(d) || Oi(d);
|
|
@@ -15253,7 +15261,7 @@ function qi(t) {
|
|
|
15253
15261
|
}
|
|
15254
15262
|
return typeof t == "function" ? t() : t;
|
|
15255
15263
|
}
|
|
15256
|
-
function
|
|
15264
|
+
function Rg(...t) {
|
|
15257
15265
|
let e = t.flat();
|
|
15258
15266
|
for (let o of e) {
|
|
15259
15267
|
let i = qi(o);
|
|
@@ -15274,7 +15282,7 @@ async function ho(t, e, o) {
|
|
|
15274
15282
|
}
|
|
15275
15283
|
return i;
|
|
15276
15284
|
}
|
|
15277
|
-
async function
|
|
15285
|
+
async function Ig(t, e, o) {
|
|
15278
15286
|
let i = [], a = $i(e);
|
|
15279
15287
|
for (let l of a) {
|
|
15280
15288
|
let r = l && typeof l[t] == "function" ? l[t] : null;
|
|
@@ -15285,7 +15293,7 @@ async function Pg(t, e, o) {
|
|
|
15285
15293
|
}
|
|
15286
15294
|
return i;
|
|
15287
15295
|
}
|
|
15288
|
-
function
|
|
15296
|
+
function Dg(t) {
|
|
15289
15297
|
let e = [];
|
|
15290
15298
|
if (Array.isArray(t))
|
|
15291
15299
|
for (let o of t) {
|
|
@@ -15299,15 +15307,15 @@ function Sg(t) {
|
|
|
15299
15307
|
o && o.name && !e.some((i) => i.name === o.name) && e.push(o);
|
|
15300
15308
|
return Object.freeze(e);
|
|
15301
15309
|
}
|
|
15302
|
-
function
|
|
15303
|
-
return !t || t.plugins && !o || (t.plugins =
|
|
15310
|
+
function Eg(t, e, o = !1) {
|
|
15311
|
+
return !t || t.plugins && !o || (t.plugins = Dg(e)), t;
|
|
15304
15312
|
}
|
|
15305
15313
|
var _i = /* @__PURE__ */ new WeakMap(), sa = /* @__PURE__ */ new Map(), ca = 0;
|
|
15306
15314
|
function Wo() {
|
|
15307
15315
|
ca++;
|
|
15308
15316
|
}
|
|
15309
15317
|
var Ci = !1;
|
|
15310
|
-
function
|
|
15318
|
+
function Gg(t = document.documentElement) {
|
|
15311
15319
|
var e, o;
|
|
15312
15320
|
if (!Ci) {
|
|
15313
15321
|
Ci = !0;
|
|
@@ -15327,7 +15335,7 @@ function Rg(t = document.documentElement) {
|
|
|
15327
15335
|
}
|
|
15328
15336
|
}
|
|
15329
15337
|
}
|
|
15330
|
-
function
|
|
15338
|
+
function Fg(t, e = {}) {
|
|
15331
15339
|
let o = {}, i = t.getPropertyValue("visibility");
|
|
15332
15340
|
for (let l = 0; l < t.length; l++) {
|
|
15333
15341
|
let r = t[l], c = t.getPropertyValue(r);
|
|
@@ -15354,52 +15362,52 @@ function Ig(t, e = {}) {
|
|
|
15354
15362
|
return i === "hidden" && (o.opacity = "0"), o;
|
|
15355
15363
|
}
|
|
15356
15364
|
var Mi = /* @__PURE__ */ new WeakMap();
|
|
15357
|
-
function
|
|
15365
|
+
function jg(t) {
|
|
15358
15366
|
let e = Mi.get(t);
|
|
15359
15367
|
return e || (e = Object.entries(t).sort((o, i) => o[0] < i[0] ? -1 : o[0] > i[0] ? 1 : 0).map(([o, i]) => `${o}:${i}`).join(";"), Mi.set(t, e), e);
|
|
15360
15368
|
}
|
|
15361
|
-
function
|
|
15369
|
+
function Bg(t, e = null, o = {}) {
|
|
15362
15370
|
let i = _i.get(t);
|
|
15363
15371
|
if (i && i.epoch === ca)
|
|
15364
15372
|
return i.snapshot;
|
|
15365
|
-
let a = e || getComputedStyle(t), l =
|
|
15366
|
-
return
|
|
15373
|
+
let a = e || getComputedStyle(t), l = Fg(a, o);
|
|
15374
|
+
return Og(t, a, l), _i.set(t, { epoch: ca, snapshot: l }), l;
|
|
15367
15375
|
}
|
|
15368
|
-
function
|
|
15376
|
+
function Ng(t, e) {
|
|
15369
15377
|
return t && t.session && t.persist ? t : t && (t.styleMap || t.styleCache || t.nodeMap) ? { session: t, persist: { snapshotKeyCache: sa, defaultStyle: X.defaultStyle, baseStyle: X.baseStyle, image: X.image, resource: X.resource, background: X.background, font: X.font }, options: e || {} } : { session: X.session, persist: { snapshotKeyCache: sa, defaultStyle: X.defaultStyle, baseStyle: X.baseStyle, image: X.image, resource: X.resource, background: X.background, font: X.font }, options: t || e || {} };
|
|
15370
15378
|
}
|
|
15371
15379
|
async function wo(t, e, o, i) {
|
|
15372
15380
|
var p, b, g;
|
|
15373
15381
|
if (t.tagName === "STYLE")
|
|
15374
15382
|
return;
|
|
15375
|
-
let a =
|
|
15376
|
-
if (l !== "disabled" &&
|
|
15383
|
+
let a = Ng(o, i), l = a.options && a.options.cache || "auto";
|
|
15384
|
+
if (l !== "disabled" && Gg(document.documentElement), l === "disabled" && !a.session.__bumpedForDisabled && (Wo(), sa.clear(), a.session.__bumpedForDisabled = !0), ya.has((p = t.tagName) == null ? void 0 : p.toLowerCase())) {
|
|
15377
15385
|
let h = (b = t.getAttribute) == null ? void 0 : b.call(t, "style");
|
|
15378
15386
|
h && e.setAttribute("style", h);
|
|
15379
15387
|
}
|
|
15380
15388
|
let { session: r, persist: c } = a;
|
|
15381
15389
|
r.styleCache.has(t) || r.styleCache.set(t, getComputedStyle(t));
|
|
15382
|
-
let s = r.styleCache.get(t), d =
|
|
15390
|
+
let s = r.styleCache.get(t), d = Bg(t, s, a.options), m = jg(d), u = c.snapshotKeyCache.get(m);
|
|
15383
15391
|
if (!u) {
|
|
15384
15392
|
let h = ((g = t.tagName) == null ? void 0 : g.toLowerCase()) || "div";
|
|
15385
15393
|
u = la(d, h), c.snapshotKeyCache.set(m, u);
|
|
15386
15394
|
}
|
|
15387
15395
|
r.styleMap.set(e, u);
|
|
15388
15396
|
}
|
|
15389
|
-
function
|
|
15397
|
+
function Wg(t) {
|
|
15390
15398
|
return t instanceof HTMLImageElement || t instanceof HTMLCanvasElement || t instanceof HTMLVideoElement || t instanceof HTMLIFrameElement || t instanceof SVGElement || t instanceof HTMLObjectElement || t instanceof HTMLEmbedElement;
|
|
15391
15399
|
}
|
|
15392
|
-
function
|
|
15400
|
+
function Zg(t) {
|
|
15393
15401
|
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";
|
|
15394
15402
|
}
|
|
15395
|
-
function
|
|
15403
|
+
function Vg(t) {
|
|
15396
15404
|
let e = t.parentElement;
|
|
15397
15405
|
if (!e)
|
|
15398
15406
|
return !1;
|
|
15399
15407
|
let o = getComputedStyle(e).display || "";
|
|
15400
15408
|
return o.includes("flex") || o.includes("grid");
|
|
15401
15409
|
}
|
|
15402
|
-
function
|
|
15410
|
+
function Xg(t, e) {
|
|
15403
15411
|
if (t.textContent && /\S/.test(t.textContent))
|
|
15404
15412
|
return !0;
|
|
15405
15413
|
let o = t.firstElementChild, i = t.lastElementChild;
|
|
@@ -15411,26 +15419,26 @@ function Ng(t, e) {
|
|
|
15411
15419
|
let l = parseFloat(e.paddingTop) || 0, r = parseFloat(e.paddingBottom) || 0;
|
|
15412
15420
|
return a > l + r;
|
|
15413
15421
|
}
|
|
15414
|
-
function
|
|
15422
|
+
function Og(t, e, o) {
|
|
15415
15423
|
if (t instanceof HTMLElement && t.style && t.style.height)
|
|
15416
15424
|
return;
|
|
15417
15425
|
let i = t.tagName && t.tagName.toLowerCase();
|
|
15418
15426
|
if (!i || i !== "div" && i !== "section" && i !== "article" && i !== "main" && i !== "aside" && i !== "header" && i !== "footer" && i !== "nav" && i !== "ol" && i !== "ul" && i !== "li")
|
|
15419
15427
|
return;
|
|
15420
15428
|
let a = e.display || "";
|
|
15421
|
-
if (a.includes("flex") || a.includes("grid") ||
|
|
15429
|
+
if (a.includes("flex") || a.includes("grid") || Wg(t))
|
|
15422
15430
|
return;
|
|
15423
15431
|
let l = e.position;
|
|
15424
|
-
if (l === "absolute" || l === "fixed" || l === "sticky" || e.transform !== "none" ||
|
|
15432
|
+
if (l === "absolute" || l === "fixed" || l === "sticky" || e.transform !== "none" || Zg(e) || Vg(t))
|
|
15425
15433
|
return;
|
|
15426
15434
|
let r = e.overflowX || e.overflow || "visible", c = e.overflowY || e.overflow || "visible";
|
|
15427
15435
|
if (r !== "visible" || c !== "visible")
|
|
15428
15436
|
return;
|
|
15429
15437
|
let s = e.clip;
|
|
15430
|
-
s && s !== "auto" && s !== "rect(auto, auto, auto, auto)" || e.visibility === "hidden" || e.opacity === "0" ||
|
|
15438
|
+
s && s !== "auto" && s !== "rect(auto, auto, auto, auto)" || e.visibility === "hidden" || e.opacity === "0" || Xg(t, e) && (delete o.height, delete o["block-size"]);
|
|
15431
15439
|
}
|
|
15432
15440
|
var el = ["fill", "stroke", "color", "background-color", "stop-color"], Pi = /* @__PURE__ */ new Map();
|
|
15433
|
-
function
|
|
15441
|
+
function Yg(t, e) {
|
|
15434
15442
|
let o = e + "::" + t.toLowerCase(), i = Pi.get(o);
|
|
15435
15443
|
if (i)
|
|
15436
15444
|
return i;
|
|
@@ -15441,7 +15449,7 @@ function Zg(t, e) {
|
|
|
15441
15449
|
s[d] = c.getPropertyValue(d) || "";
|
|
15442
15450
|
return r.remove(), Pi.set(o, s), s;
|
|
15443
15451
|
}
|
|
15444
|
-
function
|
|
15452
|
+
function Hg(t, e) {
|
|
15445
15453
|
var l, r, c;
|
|
15446
15454
|
if (!(t instanceof Element) || !(e instanceof Element))
|
|
15447
15455
|
return;
|
|
@@ -15500,7 +15508,7 @@ function Vg(t, e) {
|
|
|
15500
15508
|
}
|
|
15501
15509
|
if (!a)
|
|
15502
15510
|
return;
|
|
15503
|
-
let s = t.namespaceURI || "html", d =
|
|
15511
|
+
let s = t.namespaceURI || "html", d = Yg(t.tagName, s);
|
|
15504
15512
|
for (let m of el) {
|
|
15505
15513
|
let u = a.getPropertyValue(m) || "", p = d[m] || "";
|
|
15506
15514
|
if (u && u !== p)
|
|
@@ -15521,27 +15529,27 @@ function aa(t, e, o) {
|
|
|
15521
15529
|
l();
|
|
15522
15530
|
})));
|
|
15523
15531
|
}
|
|
15524
|
-
function
|
|
15532
|
+
function Ug(t) {
|
|
15525
15533
|
return t = t.trim(), !t || /:not\(\s*\[data-sd-slotted\]\s*\)\s*$/.test(t) ? t : `${t}:not([data-sd-slotted])`;
|
|
15526
15534
|
}
|
|
15527
|
-
function
|
|
15535
|
+
function Jg(t, e, o = !0) {
|
|
15528
15536
|
return t.split(",").map((i) => i.trim()).filter(Boolean).map((i) => {
|
|
15529
15537
|
if (i.startsWith(":where(") || i.startsWith("@"))
|
|
15530
15538
|
return i;
|
|
15531
|
-
let a = o ?
|
|
15539
|
+
let a = o ? Ug(i) : i;
|
|
15532
15540
|
return `:where(${e} ${a})`;
|
|
15533
15541
|
}).join(", ");
|
|
15534
15542
|
}
|
|
15535
|
-
function
|
|
15543
|
+
function Kg(t, e) {
|
|
15536
15544
|
return t ? (t = t.replace(/:host\(([^)]+)\)/g, (o, i) => `:where(${e}:is(${i.trim()}))`), t = t.replace(/:host\b/g, `:where(${e})`), t = t.replace(/:host-context\(([^)]+)\)/g, (o, i) => `:where(:where(${i.trim()}) ${e})`), t = t.replace(/::slotted\(([^)]+)\)/g, (o, i) => `:where(${e} ${i.trim()})`), t = t.replace(/(^|})(\s*)([^@}{]+){/g, (o, i, a, l) => {
|
|
15537
|
-
let r =
|
|
15545
|
+
let r = Jg(l, e, !0);
|
|
15538
15546
|
return `${i}${a}${r}{`;
|
|
15539
15547
|
}), t) : "";
|
|
15540
15548
|
}
|
|
15541
|
-
function
|
|
15549
|
+
function Qg(t) {
|
|
15542
15550
|
return t.shadowScopeSeq = (t.shadowScopeSeq || 0) + 1, `s${t.shadowScopeSeq}`;
|
|
15543
15551
|
}
|
|
15544
|
-
function
|
|
15552
|
+
function qg(t) {
|
|
15545
15553
|
let e = "";
|
|
15546
15554
|
try {
|
|
15547
15555
|
t.querySelectorAll("style").forEach((i) => {
|
|
@@ -15561,13 +15569,13 @@ function Ug(t) {
|
|
|
15561
15569
|
}
|
|
15562
15570
|
return e;
|
|
15563
15571
|
}
|
|
15564
|
-
function
|
|
15572
|
+
function $g(t, e, o) {
|
|
15565
15573
|
if (!e)
|
|
15566
15574
|
return;
|
|
15567
15575
|
let i = document.createElement("style");
|
|
15568
15576
|
i.setAttribute("data-sd", o), i.textContent = e, t.insertBefore(i, t.firstChild || null);
|
|
15569
15577
|
}
|
|
15570
|
-
function
|
|
15578
|
+
function e0(t, e) {
|
|
15571
15579
|
try {
|
|
15572
15580
|
let o = t.currentSrc || t.src || "";
|
|
15573
15581
|
if (!o)
|
|
@@ -15576,7 +15584,7 @@ function Kg(t, e) {
|
|
|
15576
15584
|
} catch {
|
|
15577
15585
|
}
|
|
15578
15586
|
}
|
|
15579
|
-
function
|
|
15587
|
+
function t0(t) {
|
|
15580
15588
|
let e = /* @__PURE__ */ new Set();
|
|
15581
15589
|
if (!t)
|
|
15582
15590
|
return e;
|
|
@@ -15585,7 +15593,7 @@ function Qg(t) {
|
|
|
15585
15593
|
e.add(i[1]);
|
|
15586
15594
|
return e;
|
|
15587
15595
|
}
|
|
15588
|
-
function
|
|
15596
|
+
function o0(t, e) {
|
|
15589
15597
|
try {
|
|
15590
15598
|
let o = getComputedStyle(t).getPropertyValue(e).trim();
|
|
15591
15599
|
if (o)
|
|
@@ -15600,19 +15608,19 @@ function qg(t, e) {
|
|
|
15600
15608
|
}
|
|
15601
15609
|
return "";
|
|
15602
15610
|
}
|
|
15603
|
-
function
|
|
15611
|
+
function a0(t, e, o) {
|
|
15604
15612
|
let i = [];
|
|
15605
15613
|
for (let a of e) {
|
|
15606
|
-
let l =
|
|
15614
|
+
let l = o0(t, a);
|
|
15607
15615
|
l && i.push(`${a}: ${l};`);
|
|
15608
15616
|
}
|
|
15609
15617
|
return i.length ? `${o}{${i.join("")}}
|
|
15610
15618
|
` : "";
|
|
15611
15619
|
}
|
|
15612
|
-
function
|
|
15620
|
+
function i0(t) {
|
|
15613
15621
|
t && (t.nodeType === Node.ELEMENT_NODE && t.setAttribute("data-sd-slotted", ""), t.querySelectorAll && t.querySelectorAll("*").forEach((e) => e.setAttribute("data-sd-slotted", "")));
|
|
15614
15622
|
}
|
|
15615
|
-
async function
|
|
15623
|
+
async function l0(t, e = 3) {
|
|
15616
15624
|
let o = () => {
|
|
15617
15625
|
var l;
|
|
15618
15626
|
try {
|
|
@@ -15625,7 +15633,7 @@ async function t0(t, e = 3) {
|
|
|
15625
15633
|
await new Promise((l) => setTimeout(l, 0)), i = o(), a++;
|
|
15626
15634
|
return i && (i.body || i.documentElement) ? i : null;
|
|
15627
15635
|
}
|
|
15628
|
-
function
|
|
15636
|
+
function r0(t) {
|
|
15629
15637
|
let e = t.getBoundingClientRect(), o = 0, i = 0, a = 0, l = 0;
|
|
15630
15638
|
try {
|
|
15631
15639
|
let s = getComputedStyle(t);
|
|
@@ -15635,7 +15643,7 @@ function o0(t) {
|
|
|
15635
15643
|
let r = Math.max(0, Math.round(e.width - (o + i))), c = Math.max(0, Math.round(e.height - (a + l)));
|
|
15636
15644
|
return { contentWidth: r, contentHeight: c, rect: e };
|
|
15637
15645
|
}
|
|
15638
|
-
function
|
|
15646
|
+
function n0(t, e, o) {
|
|
15639
15647
|
let i = t.createElement("style");
|
|
15640
15648
|
return i.setAttribute("data-sd-iframe-pin", ""), i.textContent = `html, body {margin: 0 !important;padding: 0 !important;width: ${e}px !important;height: ${o}px !important;min-width: ${e}px !important;min-height: ${o}px !important;box-sizing: border-box !important;overflow: hidden !important;background-clip: border-box !important;}`, (t.head || t.documentElement).appendChild(i), () => {
|
|
15641
15649
|
try {
|
|
@@ -15644,14 +15652,14 @@ function a0(t, e, o) {
|
|
|
15644
15652
|
}
|
|
15645
15653
|
};
|
|
15646
15654
|
}
|
|
15647
|
-
async function
|
|
15648
|
-
let i = await
|
|
15655
|
+
async function s0(t, e, o) {
|
|
15656
|
+
let i = await l0(t, 3);
|
|
15649
15657
|
if (!i)
|
|
15650
15658
|
throw new Error("iframe document not accessible/ready");
|
|
15651
|
-
let { contentWidth: a, contentHeight: l, rect: r } =
|
|
15659
|
+
let { contentWidth: a, contentHeight: l, rect: r } = r0(t), c = o == null ? void 0 : o.snap;
|
|
15652
15660
|
if (!c || typeof c.toPng != "function")
|
|
15653
15661
|
throw new Error("snapdom.toPng not available in iframe or window");
|
|
15654
|
-
let s = { ...o, scale: 1 }, d =
|
|
15662
|
+
let s = { ...o, scale: 1 }, d = n0(i, a, l), m;
|
|
15655
15663
|
try {
|
|
15656
15664
|
m = await c.toPng(i.documentElement, s);
|
|
15657
15665
|
} finally {
|
|
@@ -15683,11 +15691,11 @@ async function Zo(t) {
|
|
|
15683
15691
|
throw Bo.delete(t), i;
|
|
15684
15692
|
}
|
|
15685
15693
|
}
|
|
15686
|
-
var
|
|
15694
|
+
var c0 = /\bblob:[^)"'\s]+/g;
|
|
15687
15695
|
async function Si(t) {
|
|
15688
15696
|
if (!t || t.indexOf("blob:") === -1)
|
|
15689
15697
|
return t;
|
|
15690
|
-
let e = Array.from(new Set(t.match(
|
|
15698
|
+
let e = Array.from(new Set(t.match(c0) || []));
|
|
15691
15699
|
if (e.length === 0)
|
|
15692
15700
|
return t;
|
|
15693
15701
|
let o = t;
|
|
@@ -15702,16 +15710,16 @@ async function Si(t) {
|
|
|
15702
15710
|
function Ho(t) {
|
|
15703
15711
|
return typeof t == "string" && t.startsWith("blob:");
|
|
15704
15712
|
}
|
|
15705
|
-
function
|
|
15713
|
+
function m0(t) {
|
|
15706
15714
|
return (t || "").split(",").map((e) => e.trim()).filter(Boolean).map((e) => {
|
|
15707
15715
|
let o = e.match(/^(\S+)(\s+.+)?$/);
|
|
15708
15716
|
return o ? { url: o[1], desc: o[2] || "" } : null;
|
|
15709
15717
|
}).filter(Boolean);
|
|
15710
15718
|
}
|
|
15711
|
-
function
|
|
15719
|
+
function d0(t) {
|
|
15712
15720
|
return t.map((e) => e.desc ? `${e.url} ${e.desc.trim()}` : e.url).join(", ");
|
|
15713
15721
|
}
|
|
15714
|
-
async function
|
|
15722
|
+
async function h0(t) {
|
|
15715
15723
|
var r, c;
|
|
15716
15724
|
if (!t)
|
|
15717
15725
|
return;
|
|
@@ -15725,14 +15733,14 @@ async function s0(t) {
|
|
|
15725
15733
|
}
|
|
15726
15734
|
let m = s.getAttribute("srcset");
|
|
15727
15735
|
if (m && m.includes("blob:")) {
|
|
15728
|
-
let u =
|
|
15736
|
+
let u = m0(m), p = !1;
|
|
15729
15737
|
for (let b of u)
|
|
15730
15738
|
if (Ho(b.url))
|
|
15731
15739
|
try {
|
|
15732
15740
|
b.url = await Zo(b.url), p = !0;
|
|
15733
15741
|
} catch {
|
|
15734
15742
|
}
|
|
15735
|
-
p && s.setAttribute("srcset",
|
|
15743
|
+
p && s.setAttribute("srcset", d0(u));
|
|
15736
15744
|
}
|
|
15737
15745
|
} catch {
|
|
15738
15746
|
}
|
|
@@ -15781,7 +15789,7 @@ async function Ko(t, e, o) {
|
|
|
15781
15789
|
let i = /* @__PURE__ */ new Set(), a = null, l = null;
|
|
15782
15790
|
if (t.nodeType === Node.ELEMENT_NODE) {
|
|
15783
15791
|
let h = (t.localName || t.tagName || "").toLowerCase();
|
|
15784
|
-
if (t.id === "snapdom-sandbox" || t.hasAttribute("data-snapdom-sandbox") ||
|
|
15792
|
+
if (t.id === "snapdom-sandbox" || t.hasAttribute("data-snapdom-sandbox") || Qp.has(h))
|
|
15785
15793
|
return null;
|
|
15786
15794
|
}
|
|
15787
15795
|
if (t.nodeType === Node.TEXT_NODE || t.nodeType !== Node.ELEMENT_NODE)
|
|
@@ -15827,7 +15835,7 @@ async function Ko(t, e, o) {
|
|
|
15827
15835
|
}
|
|
15828
15836
|
if (h)
|
|
15829
15837
|
try {
|
|
15830
|
-
return await
|
|
15838
|
+
return await s0(t, e, o);
|
|
15831
15839
|
} catch (f) {
|
|
15832
15840
|
console.warn("[SnapDOM] iframe rasterization failed, fallback:", f);
|
|
15833
15841
|
}
|
|
@@ -15882,8 +15890,8 @@ async function Ko(t, e, o) {
|
|
|
15882
15890
|
}
|
|
15883
15891
|
let r;
|
|
15884
15892
|
try {
|
|
15885
|
-
if (r = t.cloneNode(!1),
|
|
15886
|
-
|
|
15893
|
+
if (r = t.cloneNode(!1), Hg(t, r), e.nodeMap.set(r, t), t.tagName === "IMG") {
|
|
15894
|
+
e0(t, r);
|
|
15887
15895
|
try {
|
|
15888
15896
|
let h = t.getBoundingClientRect(), f = Math.round(h.width || 0), k = Math.round(h.height || 0);
|
|
15889
15897
|
if (!f || !k) {
|
|
@@ -15933,20 +15941,20 @@ async function Ko(t, e, o) {
|
|
|
15933
15941
|
}
|
|
15934
15942
|
} catch {
|
|
15935
15943
|
}
|
|
15936
|
-
let f =
|
|
15944
|
+
let f = Qg(e), k = `[data-sd="${f}"]`;
|
|
15937
15945
|
try {
|
|
15938
15946
|
r.setAttribute("data-sd", f);
|
|
15939
15947
|
} catch {
|
|
15940
15948
|
}
|
|
15941
|
-
let v =
|
|
15942
|
-
|
|
15949
|
+
let v = qg(t.shadowRoot), _ = Kg(v, k), L = t0(v), P = a0(t, L, k);
|
|
15950
|
+
$g(r, P + _, f);
|
|
15943
15951
|
let z = document.createDocumentFragment(), R = await aa(Array.from(t.shadowRoot.childNodes), h, o.fast);
|
|
15944
15952
|
z.append(...R.filter((S) => !!S)), r.appendChild(z);
|
|
15945
15953
|
}
|
|
15946
15954
|
if (t.tagName === "SLOT") {
|
|
15947
15955
|
let h = function(L, P) {
|
|
15948
15956
|
Ko(L, e, o).then((z) => {
|
|
15949
|
-
z &&
|
|
15957
|
+
z && i0(z), P(z || null);
|
|
15950
15958
|
}).catch(() => {
|
|
15951
15959
|
P(null);
|
|
15952
15960
|
});
|
|
@@ -15970,10 +15978,10 @@ async function Ko(t, e, o) {
|
|
|
15970
15978
|
}
|
|
15971
15979
|
return l !== null && r instanceof HTMLTextAreaElement && (r.textContent = l), r;
|
|
15972
15980
|
}
|
|
15973
|
-
function
|
|
15981
|
+
function u0(t) {
|
|
15974
15982
|
return /\bcounter\s*\(|\bcounters\s*\(/.test(t || "");
|
|
15975
15983
|
}
|
|
15976
|
-
function
|
|
15984
|
+
function p0(t) {
|
|
15977
15985
|
return (t || "").replace(/"([^"]*)"/g, "$1");
|
|
15978
15986
|
}
|
|
15979
15987
|
function Ti(t, e = !1) {
|
|
@@ -16007,7 +16015,7 @@ function Ii(t, e) {
|
|
|
16007
16015
|
return String(Math.max(0, t));
|
|
16008
16016
|
}
|
|
16009
16017
|
}
|
|
16010
|
-
function
|
|
16018
|
+
function g0(t) {
|
|
16011
16019
|
let e = () => {
|
|
16012
16020
|
var p;
|
|
16013
16021
|
return ((p = X == null ? void 0 : X.session) == null ? void 0 : p.__counterEpoch) ?? 0;
|
|
@@ -16101,7 +16109,7 @@ function d0(t) {
|
|
|
16101
16109
|
return g ? g.slice() : [];
|
|
16102
16110
|
} };
|
|
16103
16111
|
}
|
|
16104
|
-
function
|
|
16112
|
+
function f0(t, e, o) {
|
|
16105
16113
|
if (!t || t === "none")
|
|
16106
16114
|
return t;
|
|
16107
16115
|
try {
|
|
@@ -16116,13 +16124,13 @@ function h0(t, e, o) {
|
|
|
16116
16124
|
return h.length ? h.map((f) => Ii(f, g)).join(b) : "";
|
|
16117
16125
|
}
|
|
16118
16126
|
});
|
|
16119
|
-
return
|
|
16127
|
+
return p0(a);
|
|
16120
16128
|
} catch {
|
|
16121
16129
|
return "- ";
|
|
16122
16130
|
}
|
|
16123
16131
|
}
|
|
16124
16132
|
var yo = /* @__PURE__ */ new WeakMap(), Di = 300;
|
|
16125
|
-
function
|
|
16133
|
+
function y0(t, e) {
|
|
16126
16134
|
let o = tl(t);
|
|
16127
16135
|
return e ? (e.__pseudoPreflightFp !== o && (e.__pseudoPreflight = Gi(t), e.__pseudoPreflightFp = o), !!e.__pseudoPreflight) : Gi(t);
|
|
16128
16136
|
}
|
|
@@ -16209,16 +16217,16 @@ function Gi(t = document) {
|
|
|
16209
16217
|
return t.querySelector('[style*="counter("], [style*="counters("]') ? (yo.set(t, { fingerprint: e, result: !0 }), !0) : (yo.set(t, { fingerprint: e, result: !1 }), !1);
|
|
16210
16218
|
}
|
|
16211
16219
|
var xo = /* @__PURE__ */ new WeakMap(), Fi = -1;
|
|
16212
|
-
function
|
|
16220
|
+
function b0(t) {
|
|
16213
16221
|
return (t || "").replace(/"([^"]*)"/g, "$1");
|
|
16214
16222
|
}
|
|
16215
|
-
function
|
|
16223
|
+
function w0(t) {
|
|
16216
16224
|
if (!t)
|
|
16217
16225
|
return "";
|
|
16218
16226
|
let e = [], o = /"([^"]*)"/g, i;
|
|
16219
16227
|
for (; i = o.exec(t); )
|
|
16220
16228
|
e.push(i[1]);
|
|
16221
|
-
return e.length ? e.join("") :
|
|
16229
|
+
return e.length ? e.join("") : b0(t);
|
|
16222
16230
|
}
|
|
16223
16231
|
function da(t, e) {
|
|
16224
16232
|
let o = t.parentElement, i = o ? xo.get(o) : null;
|
|
@@ -16274,7 +16282,7 @@ function ha(t, e, o) {
|
|
|
16274
16282
|
return c(d);
|
|
16275
16283
|
}, __incs: r };
|
|
16276
16284
|
}
|
|
16277
|
-
function
|
|
16285
|
+
function x0(t, e, o) {
|
|
16278
16286
|
let i;
|
|
16279
16287
|
try {
|
|
16280
16288
|
i = getComputedStyle(t, e);
|
|
@@ -16283,20 +16291,20 @@ function f0(t, e, o) {
|
|
|
16283
16291
|
let a = i == null ? void 0 : i.content;
|
|
16284
16292
|
if (!a || a === "none" || a === "normal")
|
|
16285
16293
|
return { text: "", incs: [] };
|
|
16286
|
-
let l = da(t, o), r = ha(t, i, l), c =
|
|
16287
|
-
return { text:
|
|
16294
|
+
let l = da(t, o), r = ha(t, i, l), c = u0(a) ? f0(a, t, r) : a;
|
|
16295
|
+
return { text: w0(c), incs: r.__incs || [] };
|
|
16288
16296
|
}
|
|
16289
16297
|
async function ol(t, e, o, i) {
|
|
16290
16298
|
var d, m, u;
|
|
16291
16299
|
if (!(t instanceof Element) || !(e instanceof Element))
|
|
16292
16300
|
return;
|
|
16293
16301
|
let a = t.ownerDocument || document;
|
|
16294
|
-
if (!
|
|
16302
|
+
if (!y0(a, o))
|
|
16295
16303
|
return;
|
|
16296
16304
|
let l = ((d = X == null ? void 0 : X.session) == null ? void 0 : d.__counterEpoch) ?? 0;
|
|
16297
16305
|
if (Fi !== l && (xo = /* @__PURE__ */ new WeakMap(), o && (o.__counterCtx = null), Fi = l), !o.__counterCtx)
|
|
16298
16306
|
try {
|
|
16299
|
-
o.__counterCtx =
|
|
16307
|
+
o.__counterCtx = g0(t.ownerDocument || document);
|
|
16300
16308
|
} catch {
|
|
16301
16309
|
}
|
|
16302
16310
|
let r = o.__counterCtx;
|
|
@@ -16326,7 +16334,7 @@ async function ol(t, e, o, i) {
|
|
|
16326
16334
|
e.replaceChild(he, Y), e.insertBefore(xe, he);
|
|
16327
16335
|
continue;
|
|
16328
16336
|
}
|
|
16329
|
-
let g = b.content ?? "", h = g === "" || g === "none" || g === "normal", { text: f, incs: k } =
|
|
16337
|
+
let g = b.content ?? "", h = g === "" || g === "none" || g === "normal", { text: f, incs: k } = x0(t, p, r), v = b.backgroundImage, _ = b.backgroundColor, L = b.fontFamily, P = parseInt(b.fontSize) || 32, z = parseInt(b.fontWeight) || !1, R = b.color || "#000", S = b.borderStyle, F = parseFloat(b.borderWidth), N = b.transform, B = co(L), te = !h && f !== "", oe = v && v !== "none", le = _ && _ !== "transparent" && _ !== "rgba(0, 0, 0, 0)", we = S && S !== "none" && F > 0, ye = N && N !== "none";
|
|
16330
16338
|
if (!(te || oe || le || we || ye)) {
|
|
16331
16339
|
if (k && k.length && t.parentElement) {
|
|
16332
16340
|
let J = xo.get(t.parentElement) || /* @__PURE__ */ new Map();
|
|
@@ -16344,7 +16352,7 @@ async function ol(t, e, o, i) {
|
|
|
16344
16352
|
E.dataset.snapdomPseudo = p, E.style.pointerEvents = "none";
|
|
16345
16353
|
let Q = Ai(b), q = la(Q, "span");
|
|
16346
16354
|
if (o.styleMap.set(E, q), B && f && f.length === 1) {
|
|
16347
|
-
let { dataUrl: J, width: Y, height: ie } = await
|
|
16355
|
+
let { dataUrl: J, width: Y, height: ie } = await pg(f, L, z, P, R), D = document.createElement("img");
|
|
16348
16356
|
D.src = J, D.style = `height:${P}px;width:${Y / ie * P}px;object-fit:contain;`, E.appendChild(D), e.dataset.snapdomHasIcon = "true";
|
|
16349
16357
|
} else if (f && f.startsWith("url(")) {
|
|
16350
16358
|
let J = fa(f);
|
|
@@ -16391,7 +16399,7 @@ async function ol(t, e, o, i) {
|
|
|
16391
16399
|
for (let p = 0; p < Math.min(c.length, s.length); p++)
|
|
16392
16400
|
await ol(c[p], s[p], o, i);
|
|
16393
16401
|
}
|
|
16394
|
-
function
|
|
16402
|
+
function v0(t, e) {
|
|
16395
16403
|
var L, P;
|
|
16396
16404
|
if (!t || !(t instanceof Element))
|
|
16397
16405
|
return;
|
|
@@ -16491,7 +16499,7 @@ function y0(t, e) {
|
|
|
16491
16499
|
}
|
|
16492
16500
|
}
|
|
16493
16501
|
}
|
|
16494
|
-
function
|
|
16502
|
+
function A0(t, e) {
|
|
16495
16503
|
var c;
|
|
16496
16504
|
if (!t || !e)
|
|
16497
16505
|
return;
|
|
@@ -16507,7 +16515,7 @@ function b0(t, e) {
|
|
|
16507
16515
|
let u = ji(d.top), p = ji(d.bottom);
|
|
16508
16516
|
if (u == null && p == null)
|
|
16509
16517
|
continue;
|
|
16510
|
-
let b =
|
|
16518
|
+
let b = k0(s, t), g = L0(e, b, l);
|
|
16511
16519
|
if (!g)
|
|
16512
16520
|
continue;
|
|
16513
16521
|
let h = s.getBoundingClientRect(), f = h.width, k = h.height, v = h.left - i.left;
|
|
@@ -16526,7 +16534,7 @@ function ji(t) {
|
|
|
16526
16534
|
let e = Number.parseFloat(t);
|
|
16527
16535
|
return Number.isFinite(e) ? e : null;
|
|
16528
16536
|
}
|
|
16529
|
-
function
|
|
16537
|
+
function k0(t, e) {
|
|
16530
16538
|
let o = [];
|
|
16531
16539
|
for (let i = t; i && i !== e; ) {
|
|
16532
16540
|
let a = i.parentElement;
|
|
@@ -16536,14 +16544,14 @@ function w0(t, e) {
|
|
|
16536
16544
|
}
|
|
16537
16545
|
return o.reverse();
|
|
16538
16546
|
}
|
|
16539
|
-
function
|
|
16547
|
+
function L0(t, e, o) {
|
|
16540
16548
|
let i = t;
|
|
16541
16549
|
for (let a = 0; a < e.length; a++)
|
|
16542
|
-
if (i =
|
|
16550
|
+
if (i = z0(i, o)[e[a]], !i)
|
|
16543
16551
|
return null;
|
|
16544
16552
|
return i instanceof HTMLElement ? i : null;
|
|
16545
16553
|
}
|
|
16546
|
-
function
|
|
16554
|
+
function z0(t, e) {
|
|
16547
16555
|
let o = [], i = t.children;
|
|
16548
16556
|
for (let a = 0; a < i.length; a++) {
|
|
16549
16557
|
let l = i[a];
|
|
@@ -16551,16 +16559,16 @@ function v0(t, e) {
|
|
|
16551
16559
|
}
|
|
16552
16560
|
return o;
|
|
16553
16561
|
}
|
|
16554
|
-
function
|
|
16562
|
+
function _0(t) {
|
|
16555
16563
|
let e = getComputedStyle(t), o = e.outlineStyle, i = e.outlineWidth, a = e.borderStyle, l = e.borderWidth, r = o !== "none" && parseFloat(i) > 0, c = a === "none" || parseFloat(l) === 0;
|
|
16556
16564
|
r && c && (t.style.border = `${i} solid transparent`);
|
|
16557
16565
|
}
|
|
16558
|
-
async function
|
|
16566
|
+
async function C0(t, e = {}) {
|
|
16559
16567
|
var s, d;
|
|
16560
16568
|
let o = { styleMap: X.session.styleMap, styleCache: X.session.styleCache, nodeMap: X.session.nodeMap }, i, a = "", l = "";
|
|
16561
|
-
|
|
16569
|
+
_0(t);
|
|
16562
16570
|
try {
|
|
16563
|
-
|
|
16571
|
+
v0(t);
|
|
16564
16572
|
} catch (m) {
|
|
16565
16573
|
console.warn("inlineExternal defs or symbol failed:", m);
|
|
16566
16574
|
}
|
|
@@ -16574,14 +16582,14 @@ async function k0(t, e = {}) {
|
|
|
16574
16582
|
} catch (m) {
|
|
16575
16583
|
console.warn("inlinePseudoElements failed:", m);
|
|
16576
16584
|
}
|
|
16577
|
-
await
|
|
16585
|
+
await h0(i);
|
|
16578
16586
|
try {
|
|
16579
16587
|
let m = i.querySelectorAll("style[data-sd]");
|
|
16580
16588
|
for (let u of m)
|
|
16581
16589
|
l += u.textContent || "", u.remove();
|
|
16582
16590
|
} catch {
|
|
16583
16591
|
}
|
|
16584
|
-
let r =
|
|
16592
|
+
let r = ig(o.styleMap);
|
|
16585
16593
|
a = Array.from(r.entries()).map(([m, u]) => `.${u}{${m}}`).join(""), a = l + a;
|
|
16586
16594
|
for (let [m, u] of o.styleMap.entries()) {
|
|
16587
16595
|
if (m.tagName === "STYLE")
|
|
@@ -16606,22 +16614,22 @@ async function k0(t, e = {}) {
|
|
|
16606
16614
|
}
|
|
16607
16615
|
}
|
|
16608
16616
|
let c = i instanceof HTMLElement && i.firstElementChild instanceof HTMLElement ? i.firstElementChild : i;
|
|
16609
|
-
if (
|
|
16617
|
+
if (A0(t, c), t === o.nodeMap.get(i)) {
|
|
16610
16618
|
let m = o.styleCache.get(t) || window.getComputedStyle(t);
|
|
16611
16619
|
o.styleCache.set(t, m);
|
|
16612
|
-
let u =
|
|
16620
|
+
let u = Xp(m.transform);
|
|
16613
16621
|
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 = u || "";
|
|
16614
16622
|
}
|
|
16615
16623
|
for (let [m, u] of o.nodeMap.entries())
|
|
16616
16624
|
u.tagName === "PRE" && (m.style.marginTop = "0", m.style.marginBlockStart = "0");
|
|
16617
16625
|
return { clone: i, classCSS: a, styleCache: o.styleCache };
|
|
16618
16626
|
}
|
|
16619
|
-
function
|
|
16627
|
+
function M0(t) {
|
|
16620
16628
|
var d, m, u, p;
|
|
16621
16629
|
let e = parseInt(((d = t.dataset) == null ? void 0 : d.snapdomWidth) || "", 10) || 0, o = parseInt(((m = t.dataset) == null ? void 0 : m.snapdomHeight) || "", 10) || 0, i = parseInt(t.getAttribute("width") || "", 10) || 0, a = parseInt(t.getAttribute("height") || "", 10) || 0, l = parseFloat(((u = t.style) == null ? void 0 : u.width) || "") || 0, r = parseFloat(((p = t.style) == null ? void 0 : p.height) || "") || 0, c = e || l || i || t.width || t.naturalWidth || 100, s = o || r || a || t.height || t.naturalHeight || 100;
|
|
16622
16630
|
return { width: c, height: s };
|
|
16623
16631
|
}
|
|
16624
|
-
async function
|
|
16632
|
+
async function P0(t, e = {}) {
|
|
16625
16633
|
let o = Array.from(t.querySelectorAll("img")), i = async (a) => {
|
|
16626
16634
|
if (!a.getAttribute("src")) {
|
|
16627
16635
|
let m = a.currentSrc || a.src || "";
|
|
@@ -16636,7 +16644,7 @@ async function z0(t, e = {}) {
|
|
|
16636
16644
|
a.src = r.data, a.width || (a.width = a.naturalWidth || 100), a.height || (a.height = a.naturalHeight || 100);
|
|
16637
16645
|
return;
|
|
16638
16646
|
}
|
|
16639
|
-
let { width: c, height: s } =
|
|
16647
|
+
let { width: c, height: s } = M0(a), { fallbackURL: d } = e || {};
|
|
16640
16648
|
if (d)
|
|
16641
16649
|
try {
|
|
16642
16650
|
let m = typeof d == "function" ? await d({ width: c, height: s, src: l, element: a }) : d;
|
|
@@ -16660,18 +16668,18 @@ async function z0(t, e = {}) {
|
|
|
16660
16668
|
await Promise.allSettled(l);
|
|
16661
16669
|
}
|
|
16662
16670
|
}
|
|
16663
|
-
function
|
|
16671
|
+
function S0(t) {
|
|
16664
16672
|
if (!t)
|
|
16665
16673
|
return () => {
|
|
16666
16674
|
};
|
|
16667
|
-
let e =
|
|
16675
|
+
let e = T0(t);
|
|
16668
16676
|
if (e <= 0)
|
|
16669
16677
|
return () => {
|
|
16670
16678
|
};
|
|
16671
|
-
if (!
|
|
16679
|
+
if (!D0(t))
|
|
16672
16680
|
return () => {
|
|
16673
16681
|
};
|
|
16674
|
-
let o = getComputedStyle(t), i = Math.round(
|
|
16682
|
+
let o = getComputedStyle(t), i = Math.round(R0(o) * e + I0(o)), a = t.textContent ?? "", l = a;
|
|
16675
16683
|
if (t.scrollHeight <= i + 0.5)
|
|
16676
16684
|
return () => {
|
|
16677
16685
|
};
|
|
@@ -16684,23 +16692,23 @@ function _0(t) {
|
|
|
16684
16692
|
t.textContent = l;
|
|
16685
16693
|
};
|
|
16686
16694
|
}
|
|
16687
|
-
function
|
|
16695
|
+
function T0(t) {
|
|
16688
16696
|
let e = getComputedStyle(t), o = e.getPropertyValue("-webkit-line-clamp") || e.getPropertyValue("line-clamp");
|
|
16689
16697
|
o = (o || "").trim();
|
|
16690
16698
|
let i = parseInt(o, 10);
|
|
16691
16699
|
return Number.isFinite(i) && i > 0 ? i : 0;
|
|
16692
16700
|
}
|
|
16693
|
-
function
|
|
16701
|
+
function R0(t) {
|
|
16694
16702
|
let e = (t.lineHeight || "").trim(), o = parseFloat(t.fontSize) || 16;
|
|
16695
16703
|
return !e || e === "normal" ? Math.round(o * 1.2) : e.endsWith("px") ? parseFloat(e) : /^\d+(\.\d+)?$/.test(e) ? Math.round(parseFloat(e) * o) : e.endsWith("%") ? Math.round(parseFloat(e) / 100 * o) : Math.round(o * 1.2);
|
|
16696
16704
|
}
|
|
16697
|
-
function
|
|
16705
|
+
function I0(t) {
|
|
16698
16706
|
return (parseFloat(t.paddingTop) || 0) + (parseFloat(t.paddingBottom) || 0);
|
|
16699
16707
|
}
|
|
16700
|
-
function
|
|
16708
|
+
function D0(t) {
|
|
16701
16709
|
return t.childElementCount > 0 ? !1 : Array.from(t.childNodes).some((e) => e.nodeType === Node.TEXT_NODE);
|
|
16702
16710
|
}
|
|
16703
|
-
function
|
|
16711
|
+
function E0(t, e) {
|
|
16704
16712
|
if (!t || !e || !e.style)
|
|
16705
16713
|
return;
|
|
16706
16714
|
let o = getComputedStyle(t);
|
|
@@ -16722,14 +16730,14 @@ function T0(t, e) {
|
|
|
16722
16730
|
} catch {
|
|
16723
16731
|
}
|
|
16724
16732
|
}
|
|
16725
|
-
function
|
|
16733
|
+
function G0(t) {
|
|
16726
16734
|
let e = document.createTreeWalker(t, NodeFilter.SHOW_COMMENT), o = [];
|
|
16727
16735
|
for (; e.nextNode(); )
|
|
16728
16736
|
o.push(e.currentNode);
|
|
16729
16737
|
for (let i of o)
|
|
16730
16738
|
i.remove();
|
|
16731
16739
|
}
|
|
16732
|
-
function
|
|
16740
|
+
function F0(t, e = {}) {
|
|
16733
16741
|
let { stripFrameworkDirectives: o = !0 } = e, i = /* @__PURE__ */ new Set(["xml", "xlink"]), a = document.createTreeWalker(t, NodeFilter.SHOW_ELEMENT);
|
|
16734
16742
|
for (; a.nextNode(); ) {
|
|
16735
16743
|
let l = a.currentNode;
|
|
@@ -16753,10 +16761,10 @@ function I0(t, e = {}) {
|
|
|
16753
16761
|
}
|
|
16754
16762
|
}
|
|
16755
16763
|
}
|
|
16756
|
-
function
|
|
16757
|
-
t && (
|
|
16764
|
+
function j0(t, e = {}) {
|
|
16765
|
+
t && (F0(t, e), G0(t));
|
|
16758
16766
|
}
|
|
16759
|
-
function
|
|
16767
|
+
function B0(t) {
|
|
16760
16768
|
var e;
|
|
16761
16769
|
try {
|
|
16762
16770
|
let o = ((e = t.getAttribute) == null ? void 0 : e.call(t, "style")) || "";
|
|
@@ -16765,11 +16773,11 @@ function E0(t) {
|
|
|
16765
16773
|
return !1;
|
|
16766
16774
|
}
|
|
16767
16775
|
}
|
|
16768
|
-
function
|
|
16776
|
+
function N0(t) {
|
|
16769
16777
|
return t instanceof HTMLImageElement || t instanceof HTMLCanvasElement || t instanceof HTMLVideoElement || t instanceof HTMLIFrameElement || t instanceof SVGElement || t instanceof HTMLObjectElement || t instanceof HTMLEmbedElement;
|
|
16770
16778
|
}
|
|
16771
|
-
function
|
|
16772
|
-
if (!(t instanceof Element) ||
|
|
16779
|
+
function W0(t, e) {
|
|
16780
|
+
if (!(t instanceof Element) || B0(t) || N0(t))
|
|
16773
16781
|
return !1;
|
|
16774
16782
|
let o = e.position;
|
|
16775
16783
|
if (o === "absolute" || o === "fixed" || o === "sticky")
|
|
@@ -16777,12 +16785,12 @@ function F0(t, e) {
|
|
|
16777
16785
|
let i = e.display || "";
|
|
16778
16786
|
return !(i.includes("flex") || i.includes("grid") || i.startsWith("table") || e.transform && e.transform !== "none");
|
|
16779
16787
|
}
|
|
16780
|
-
function
|
|
16788
|
+
function Z0(t, e, o = /* @__PURE__ */ new Map()) {
|
|
16781
16789
|
function i(a, l) {
|
|
16782
16790
|
if (!(a instanceof Element) || !(l instanceof Element))
|
|
16783
16791
|
return;
|
|
16784
16792
|
let r = a.childElementCount > l.childElementCount, c = o.get(a) || getComputedStyle(a);
|
|
16785
|
-
if (o.has(a) || o.set(a, c), r &&
|
|
16793
|
+
if (o.has(a) || o.set(a, c), r && W0(a, c)) {
|
|
16786
16794
|
l.style.height || (l.style.height = "auto"), l.style.width || (l.style.width = "auto"), l.style.removeProperty("block-size"), l.style.removeProperty("inline-size"), l.style.minHeight || (l.style.minHeight = "0"), l.style.minWidth || (l.style.minWidth = "0"), l.style.maxHeight || (l.style.maxHeight = "none"), l.style.maxWidth || (l.style.maxWidth = "none");
|
|
16787
16795
|
let m = c.overflowY || c.overflowBlock || "visible", u = c.overflowX || c.overflowInline || "visible";
|
|
16788
16796
|
(m !== "visible" || u !== "visible") && (l.style.overflow = "visible");
|
|
@@ -16793,11 +16801,11 @@ function j0(t, e, o = /* @__PURE__ */ new Map()) {
|
|
|
16793
16801
|
}
|
|
16794
16802
|
i(t, e);
|
|
16795
16803
|
}
|
|
16796
|
-
function
|
|
16804
|
+
function V0(t) {
|
|
16797
16805
|
let e = getComputedStyle(t);
|
|
16798
16806
|
return !(e.display === "none" || e.position === "absolute" || e.position === "fixed" || e.position === "sticky" || (e.cssFloat || e.float || "none") !== "none" || e.transform && e.transform !== "none");
|
|
16799
16807
|
}
|
|
16800
|
-
function
|
|
16808
|
+
function X0(t, e) {
|
|
16801
16809
|
if (!(t instanceof Element))
|
|
16802
16810
|
return !1;
|
|
16803
16811
|
if (t.getAttribute("data-capture") === "exclude" && (e == null ? void 0 : e.excludeMode) === "remove")
|
|
@@ -16811,10 +16819,10 @@ function N0(t, e) {
|
|
|
16811
16819
|
}
|
|
16812
16820
|
return !1;
|
|
16813
16821
|
}
|
|
16814
|
-
function
|
|
16822
|
+
function O0(t, e) {
|
|
16815
16823
|
let o = getComputedStyle(t), i = t.getBoundingClientRect(), a = 1 / 0, l = -1 / 0, r = !1, c = Array.from(t.children);
|
|
16816
16824
|
for (let b of c) {
|
|
16817
|
-
if (
|
|
16825
|
+
if (X0(b, e) || !V0(b))
|
|
16818
16826
|
continue;
|
|
16819
16827
|
let g = b.getBoundingClientRect(), h = g.top - i.top, f = g.bottom - i.top;
|
|
16820
16828
|
f <= h || (h < a && (a = h), f > l && (l = f), r = !0);
|
|
@@ -16823,7 +16831,7 @@ function W0(t, e) {
|
|
|
16823
16831
|
return d + m + u + p + s;
|
|
16824
16832
|
}
|
|
16825
16833
|
var me = (t, e = 3) => Number.isFinite(t) ? Math.round(t * 10 ** e) / 10 ** e : t;
|
|
16826
|
-
function
|
|
16834
|
+
function Y0(t) {
|
|
16827
16835
|
var c;
|
|
16828
16836
|
let e = t.boxShadow || "";
|
|
16829
16837
|
if (!e || e === "none")
|
|
@@ -16838,17 +16846,17 @@ function Z0(t) {
|
|
|
16838
16846
|
}
|
|
16839
16847
|
return { top: Math.ceil(i), right: Math.ceil(a), bottom: Math.ceil(l), left: Math.ceil(r) };
|
|
16840
16848
|
}
|
|
16841
|
-
function
|
|
16849
|
+
function H0(t) {
|
|
16842
16850
|
let e = (t.filter || "").match(/blur\(\s*([0-9.]+)px\s*\)/), o = e ? Math.ceil(parseFloat(e[1]) || 0) : 0;
|
|
16843
16851
|
return { top: o, right: o, bottom: o, left: o };
|
|
16844
16852
|
}
|
|
16845
|
-
function
|
|
16853
|
+
function U0(t) {
|
|
16846
16854
|
if ((t.outlineStyle || "none") === "none")
|
|
16847
16855
|
return { top: 0, right: 0, bottom: 0, left: 0 };
|
|
16848
16856
|
let e = Math.ceil(parseFloat(t.outlineWidth || "0") || 0);
|
|
16849
16857
|
return { top: e, right: e, bottom: e, left: e };
|
|
16850
16858
|
}
|
|
16851
|
-
function
|
|
16859
|
+
function J0(t) {
|
|
16852
16860
|
var s;
|
|
16853
16861
|
let e = `${t.filter || ""} ${t.webkitFilter || ""}`.trim();
|
|
16854
16862
|
if (!e || e === "none")
|
|
@@ -16861,7 +16869,7 @@ function O0(t) {
|
|
|
16861
16869
|
}
|
|
16862
16870
|
return { bleed: { top: me(i), right: me(a), bottom: me(l), left: me(r) }, has: c };
|
|
16863
16871
|
}
|
|
16864
|
-
function
|
|
16872
|
+
function K0(t, e) {
|
|
16865
16873
|
if (!t || !e || !e.style)
|
|
16866
16874
|
return null;
|
|
16867
16875
|
let o = getComputedStyle(t);
|
|
@@ -16913,14 +16921,14 @@ function Bi(t, e, o, i, a) {
|
|
|
16913
16921
|
k < b && (b = k), v < g && (g = v), k > h && (h = k), v > f && (f = v);
|
|
16914
16922
|
return { minX: b, minY: g, maxX: h, maxY: f, width: h - b, height: f - g };
|
|
16915
16923
|
}
|
|
16916
|
-
function
|
|
16924
|
+
function Q0(t, e, o) {
|
|
16917
16925
|
let i = (t.transformOrigin || "0 0").trim().split(/\s+/), [a, l] = [i[0] || "0", i[1] || "0"], r = (c, s) => {
|
|
16918
16926
|
let d = c.toLowerCase();
|
|
16919
16927
|
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;
|
|
16920
16928
|
};
|
|
16921
16929
|
return { ox: r(a, e), oy: r(l, o) };
|
|
16922
16930
|
}
|
|
16923
|
-
function
|
|
16931
|
+
function q0(t) {
|
|
16924
16932
|
var a, l, r, c, s, d, m, u;
|
|
16925
16933
|
let e = { rotate: "0deg", scale: null, translate: null }, o = typeof t.computedStyleMap == "function" ? t.computedStyleMap() : null;
|
|
16926
16934
|
if (o) {
|
|
@@ -16963,19 +16971,19 @@ function U0(t) {
|
|
|
16963
16971
|
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;
|
|
16964
16972
|
}
|
|
16965
16973
|
var ia = null;
|
|
16966
|
-
function
|
|
16974
|
+
function $0() {
|
|
16967
16975
|
if (ia)
|
|
16968
16976
|
return ia;
|
|
16969
16977
|
let t = document.createElement("div");
|
|
16970
16978
|
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), ia = t, t;
|
|
16971
16979
|
}
|
|
16972
|
-
function
|
|
16973
|
-
let e =
|
|
16980
|
+
function ef(t) {
|
|
16981
|
+
let e = $0(), o = document.createElement("div");
|
|
16974
16982
|
o.style.transformOrigin = "0 0", t.baseTransform && (o.style.transform = t.baseTransform), t.rotate && (o.style.rotate = t.rotate), t.scale && (o.style.scale = t.scale), t.translate && (o.style.translate = t.translate), e.appendChild(o);
|
|
16975
16983
|
let i = al(o);
|
|
16976
16984
|
return e.removeChild(o), i;
|
|
16977
16985
|
}
|
|
16978
|
-
function
|
|
16986
|
+
function tf(t) {
|
|
16979
16987
|
let e = getComputedStyle(t), o = e.transform || "none";
|
|
16980
16988
|
if (o !== "none" && !/^matrix\(\s*1\s*,\s*0\s*,\s*0\s*,\s*1\s*,\s*0\s*,\s*0\s*\)$/i.test(o))
|
|
16981
16989
|
return !0;
|
|
@@ -16996,54 +17004,54 @@ async function il(t, e) {
|
|
|
16996
17004
|
var v;
|
|
16997
17005
|
if (!t)
|
|
16998
17006
|
throw new Error("Element cannot be null or undefined");
|
|
16999
|
-
|
|
17007
|
+
Vp(e.cache);
|
|
17000
17008
|
let o = e.fast, i = e.outerTransforms !== !1, a = !!e.outerShadows, l = { element: t, options: e, plugins: e.plugins }, r, c, s, d = "", m = "", u, p, b = null;
|
|
17001
17009
|
await ho("beforeSnap", l), await ho("beforeClone", l);
|
|
17002
|
-
let g =
|
|
17010
|
+
let g = S0(l.element);
|
|
17003
17011
|
try {
|
|
17004
|
-
({ clone: r, classCSS: c, styleCache: s } = await
|
|
17012
|
+
({ clone: r, classCSS: c, styleCache: s } = await C0(l.element, l.options)), !i && r && (b = K0(l.element, r)), !a && r && E0(l.element, r);
|
|
17005
17013
|
} finally {
|
|
17006
17014
|
g();
|
|
17007
17015
|
}
|
|
17008
|
-
if (l = { clone: r, classCSS: c, styleCache: s, ...l }, await ho("afterClone", l),
|
|
17016
|
+
if (l = { clone: r, classCSS: c, styleCache: s, ...l }, await ho("afterClone", l), j0(l.clone), ((v = l.options) == null ? void 0 : v.excludeMode) === "remove")
|
|
17009
17017
|
try {
|
|
17010
|
-
|
|
17018
|
+
Z0(l.element, l.clone, l.styleCache);
|
|
17011
17019
|
} catch (_) {
|
|
17012
17020
|
console.warn("[snapdom] shrink pass failed:", _);
|
|
17013
17021
|
}
|
|
17014
17022
|
try {
|
|
17015
|
-
await
|
|
17023
|
+
await ug(l.clone, l.element);
|
|
17016
17024
|
} catch {
|
|
17017
17025
|
}
|
|
17018
17026
|
await new Promise((_) => {
|
|
17019
17027
|
bo(async () => {
|
|
17020
|
-
await
|
|
17028
|
+
await P0(l.clone, l.options), _();
|
|
17021
17029
|
}, { fast: o });
|
|
17022
17030
|
}), await new Promise((_) => {
|
|
17023
17031
|
bo(async () => {
|
|
17024
|
-
await
|
|
17032
|
+
await Tg(l.element, l.clone, l.styleCache, l.options), _();
|
|
17025
17033
|
}, { fast: o });
|
|
17026
17034
|
}), e.embedFonts && await new Promise((_) => {
|
|
17027
17035
|
bo(async () => {
|
|
17028
|
-
let L =
|
|
17036
|
+
let L = Mg(l.element), P = Pg(l.element);
|
|
17029
17037
|
if (No()) {
|
|
17030
17038
|
let z = new Set(Array.from(L).map((R) => String(R).split("__")[0]).filter(Boolean));
|
|
17031
|
-
await
|
|
17039
|
+
await Sg(z, 1);
|
|
17032
17040
|
}
|
|
17033
|
-
d = await
|
|
17041
|
+
d = await Cg({ required: L, usedCodepoints: P, preCached: !1, exclude: l.options.excludeFonts, useProxy: l.options.useProxy }), _();
|
|
17034
17042
|
}, { fast: o });
|
|
17035
17043
|
});
|
|
17036
|
-
let h =
|
|
17044
|
+
let h = og(l.clone).sort(), f = h.join(",");
|
|
17037
17045
|
X.baseStyle.has(f) ? m = X.baseStyle.get(f) : await new Promise((_) => {
|
|
17038
17046
|
bo(() => {
|
|
17039
|
-
m =
|
|
17047
|
+
m = ag(h), X.baseStyle.set(f, m), _();
|
|
17040
17048
|
}, { fast: o });
|
|
17041
17049
|
}), l = { fontsCSS: d, baseCSS: m, ...l }, await ho("beforeRender", l), await new Promise((_) => {
|
|
17042
17050
|
bo(() => {
|
|
17043
17051
|
var Qe;
|
|
17044
17052
|
let L = getComputedStyle(l.element), P = l.element.getBoundingClientRect(), z = Math.max(1, me(l.element.offsetWidth || parseFloat(L.width) || P.width || 1)), R = Math.max(1, me(l.element.offsetHeight || parseFloat(L.height) || P.height || 1));
|
|
17045
17053
|
if (((Qe = l.options) == null ? void 0 : Qe.excludeMode) === "remove") {
|
|
17046
|
-
let Se =
|
|
17054
|
+
let Se = O0(l.element, l.options);
|
|
17047
17055
|
Number.isFinite(Se) && Se > 0 && (R = Math.max(1, Math.min(R, me(Se + 1))));
|
|
17048
17056
|
}
|
|
17049
17057
|
let S = (Se, Te = NaN) => {
|
|
@@ -17055,11 +17063,11 @@ async function il(t, e) {
|
|
|
17055
17063
|
if (!i && b && Number.isFinite(b.a)) {
|
|
17056
17064
|
let Se = { a: b.a, b: b.b || 0, c: b.c || 0, d: b.d || 1, e: 0, f: 0 }, Te = Bi(z, R, Se, 0, 0);
|
|
17057
17065
|
ye = me(Te.minX), E = me(Te.minY), Q = me(Te.maxX), q = me(Te.maxY);
|
|
17058
|
-
} else if (i &&
|
|
17059
|
-
let Se = L.transform && L.transform !== "none" ? L.transform : "", Te =
|
|
17066
|
+
} else if (i && of(l.element)) {
|
|
17067
|
+
let Se = L.transform && L.transform !== "none" ? L.transform : "", Te = q0(l.element), Be = ef({ baseTransform: Se, rotate: Te.rotate || "0deg", scale: Te.scale, translate: Te.translate }), { ox: it, oy: lt } = Q0(L, z, R), rt = Be.is2D ? Be : new DOMMatrix(Be.toString()), Ve = Bi(z, R, rt, it, lt);
|
|
17060
17068
|
ye = me(Ve.minX), E = me(Ve.minY), Q = me(Ve.maxX), q = me(Ve.maxY);
|
|
17061
17069
|
}
|
|
17062
|
-
let re =
|
|
17070
|
+
let re = Y0(L), J = H0(L), Y = U0(L), ie = J0(L), D = a ? { top: me(re.top + J.top + Y.top + ie.bleed.top), right: me(re.right + J.right + Y.right + ie.bleed.right), bottom: me(re.bottom + J.bottom + Y.bottom + ie.bleed.bottom), left: me(re.left + J.left + Y.left + ie.bleed.left) } : { top: 0, right: 0, bottom: 0, left: 0 };
|
|
17063
17071
|
ye = me(ye - D.left), E = me(E - D.top), Q = me(Q + D.right), q = me(q + D.bottom);
|
|
17064
17072
|
let ce = Math.max(1, me(Q - ye)), xe = Math.max(1, me(q - E)), Le = oe || le ? me(B / z) : 1, ze = le || oe ? me(te / R) : 1, he = Math.max(1, me(ce * Le)), Ae = Math.max(1, me(xe * ze)), _e = "http://www.w3.org/2000/svg", We = No() ? 1 : 0, ae = me(We + (i ? 0 : 1)), pe = document.createElementNS(_e, "foreignObject"), $e = me(ye), et = me(E);
|
|
17065
17073
|
pe.setAttribute("x", String(me(-($e - ae)))), pe.setAttribute("y", String(me(-(et - ae)))), pe.setAttribute("width", String(me(z + ae * 2))), pe.setAttribute("height", String(me(R + ae * 2))), pe.style.overflow = "visible";
|
|
@@ -17076,10 +17084,10 @@ async function il(t, e) {
|
|
|
17076
17084
|
let k = document.getElementById("snapdom-sandbox");
|
|
17077
17085
|
return k && k.style.position === "absolute" && k.remove(), l.dataURL;
|
|
17078
17086
|
}
|
|
17079
|
-
function
|
|
17080
|
-
return
|
|
17087
|
+
function of(t) {
|
|
17088
|
+
return tf(t);
|
|
17081
17089
|
}
|
|
17082
|
-
function
|
|
17090
|
+
function af(t) {
|
|
17083
17091
|
if (typeof t == "string") {
|
|
17084
17092
|
let e = t.toLowerCase().trim();
|
|
17085
17093
|
if (e === "disabled" || e === "full" || e === "auto" || e === "soft")
|
|
@@ -17087,80 +17095,80 @@ function $0(t) {
|
|
|
17087
17095
|
}
|
|
17088
17096
|
return "soft";
|
|
17089
17097
|
}
|
|
17090
|
-
function
|
|
17098
|
+
function lf(t = {}) {
|
|
17091
17099
|
let e = t.format ?? "png";
|
|
17092
17100
|
e === "jpg" && (e = "jpeg");
|
|
17093
|
-
let o =
|
|
17101
|
+
let o = af(t.cache);
|
|
17094
17102
|
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: o, 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 };
|
|
17095
17103
|
}
|
|
17096
|
-
function
|
|
17097
|
-
return
|
|
17104
|
+
function rf(...t) {
|
|
17105
|
+
return Rg(...t), Pe;
|
|
17098
17106
|
}
|
|
17099
|
-
var Pe = Object.assign(
|
|
17100
|
-
async function
|
|
17107
|
+
var Pe = Object.assign(nf, { plugins: rf }), ll = Symbol("snapdom.internal"), mo = Symbol("snapdom.internal.silent"), ua = !1;
|
|
17108
|
+
async function nf(t, e) {
|
|
17101
17109
|
if (!t)
|
|
17102
17110
|
throw new Error("Element cannot be null or undefined");
|
|
17103
|
-
let o =
|
|
17104
|
-
if (
|
|
17111
|
+
let o = lf(e);
|
|
17112
|
+
if (Eg(o, e && e.plugins), No() && (o.embedFonts === !0 || cf(t)))
|
|
17105
17113
|
for (let i = 0; i < 3; i++)
|
|
17106
17114
|
try {
|
|
17107
|
-
await
|
|
17115
|
+
await sf(t, e), ua = !1;
|
|
17108
17116
|
} catch {
|
|
17109
17117
|
}
|
|
17110
|
-
return o.iconFonts && o.iconFonts.length > 0 &&
|
|
17118
|
+
return o.iconFonts && o.iconFonts.length > 0 && rg(o.iconFonts), o.snap || (o.snap = { toPng: (i, a) => Pe.toPng(i, a), toSvg: (i, a) => Pe.toSvg(i, a) }), Pe.capture(t, o, ll);
|
|
17111
17119
|
}
|
|
17112
17120
|
Pe.capture = async (t, e, o) => {
|
|
17113
17121
|
if (o !== ll)
|
|
17114
17122
|
throw new Error("[snapdom.capture] is internal. Use snapdom(...) instead.");
|
|
17115
17123
|
let i = await il(t, e), a = { img: async (g, h) => {
|
|
17116
|
-
let { toImg: f } = await import("./toImg-
|
|
17124
|
+
let { toImg: f } = await import("./toImg-7f881161.js");
|
|
17117
17125
|
return f(i, { ...g, ...h || {} });
|
|
17118
17126
|
}, svg: async (g, h) => {
|
|
17119
|
-
let { toSvg: f } = await import("./toImg-
|
|
17127
|
+
let { toSvg: f } = await import("./toImg-7f881161.js");
|
|
17120
17128
|
return f(i, { ...g, ...h || {} });
|
|
17121
17129
|
}, canvas: async (g, h) => {
|
|
17122
|
-
let { toCanvas: f } = await import("./toCanvas-
|
|
17130
|
+
let { toCanvas: f } = await import("./toCanvas-a145fa90.js");
|
|
17123
17131
|
return f(i, { ...g, ...h || {} });
|
|
17124
17132
|
}, blob: async (g, h) => {
|
|
17125
|
-
let { toBlob: f } = await import("./toBlob-
|
|
17133
|
+
let { toBlob: f } = await import("./toBlob-237a852e.js");
|
|
17126
17134
|
return f(i, { ...g, ...h || {} });
|
|
17127
17135
|
}, png: async (g, h) => {
|
|
17128
|
-
let { rasterize: f } = await import("./rasterize-JS5G2XHH-
|
|
17136
|
+
let { rasterize: f } = await import("./rasterize-JS5G2XHH-de5c3df2.js");
|
|
17129
17137
|
return f(i, { ...g, ...h || {}, format: "png" });
|
|
17130
17138
|
}, jpeg: async (g, h) => {
|
|
17131
|
-
let { rasterize: f } = await import("./rasterize-JS5G2XHH-
|
|
17139
|
+
let { rasterize: f } = await import("./rasterize-JS5G2XHH-de5c3df2.js");
|
|
17132
17140
|
return f(i, { ...g, ...h || {}, format: "jpeg" });
|
|
17133
17141
|
}, webp: async (g, h) => {
|
|
17134
|
-
let { rasterize: f } = await import("./rasterize-JS5G2XHH-
|
|
17142
|
+
let { rasterize: f } = await import("./rasterize-JS5G2XHH-de5c3df2.js");
|
|
17135
17143
|
return f(i, { ...g, ...h || {}, format: "webp" });
|
|
17136
17144
|
}, download: async (g, h) => {
|
|
17137
|
-
let { download: f } = await import("./download-
|
|
17145
|
+
let { download: f } = await import("./download-cb6df921.js");
|
|
17138
17146
|
return f(i, { ...g, ...h || {} });
|
|
17139
17147
|
} }, l = { ...e, export: { url: i }, exports: { svg: async (g) => {
|
|
17140
|
-
let { toSvg: h } = await import("./toImg-
|
|
17148
|
+
let { toSvg: h } = await import("./toImg-7f881161.js");
|
|
17141
17149
|
return h(i, { ...e, ...g || {}, [mo]: !0 });
|
|
17142
17150
|
}, canvas: async (g) => {
|
|
17143
|
-
let { toCanvas: h } = await import("./toCanvas-
|
|
17151
|
+
let { toCanvas: h } = await import("./toCanvas-a145fa90.js");
|
|
17144
17152
|
return h(i, { ...e, ...g || {}, [mo]: !0 });
|
|
17145
17153
|
}, png: async (g) => {
|
|
17146
|
-
let { rasterize: h } = await import("./rasterize-JS5G2XHH-
|
|
17154
|
+
let { rasterize: h } = await import("./rasterize-JS5G2XHH-de5c3df2.js");
|
|
17147
17155
|
return h(i, { ...e, ...g || {}, format: "png", [mo]: !0 });
|
|
17148
17156
|
}, jpeg: async (g) => {
|
|
17149
|
-
let { rasterize: h } = await import("./rasterize-JS5G2XHH-
|
|
17157
|
+
let { rasterize: h } = await import("./rasterize-JS5G2XHH-de5c3df2.js");
|
|
17150
17158
|
return h(i, { ...e, ...g || {}, format: "jpeg", [mo]: !0 });
|
|
17151
17159
|
}, jpg: async (g) => {
|
|
17152
|
-
let { rasterize: h } = await import("./rasterize-JS5G2XHH-
|
|
17160
|
+
let { rasterize: h } = await import("./rasterize-JS5G2XHH-de5c3df2.js");
|
|
17153
17161
|
return h(i, { ...e, ...g || {}, format: "jpeg", [mo]: !0 });
|
|
17154
17162
|
}, webp: async (g) => {
|
|
17155
|
-
let { rasterize: h } = await import("./rasterize-JS5G2XHH-
|
|
17163
|
+
let { rasterize: h } = await import("./rasterize-JS5G2XHH-de5c3df2.js");
|
|
17156
17164
|
return h(i, { ...e, ...g || {}, format: "webp", [mo]: !0 });
|
|
17157
17165
|
}, blob: async (g) => {
|
|
17158
|
-
let { toBlob: h } = await import("./toBlob-
|
|
17166
|
+
let { toBlob: h } = await import("./toBlob-237a852e.js");
|
|
17159
17167
|
return h(i, { ...e, ...g || {}, [mo]: !0 });
|
|
17160
17168
|
}, img: async (g) => {
|
|
17161
|
-
let { toImg: h } = await import("./toImg-
|
|
17169
|
+
let { toImg: h } = await import("./toImg-7f881161.js");
|
|
17162
17170
|
return h(i, { ...e, ...g || {}, [mo]: !0 });
|
|
17163
|
-
} } }, r = await
|
|
17171
|
+
} } }, r = await Ig("defineExports", l), c = Object.assign({}, ...r.filter((g) => g && typeof g == "object")), s = { ...a, ...c };
|
|
17164
17172
|
s.jpeg && !s.jpg && (s.jpg = (g, h) => s.jpeg(g, h));
|
|
17165
17173
|
function d(g, h) {
|
|
17166
17174
|
let f = { ...e, ...h || {} };
|
|
@@ -17195,7 +17203,7 @@ Pe.toPng = (t, e) => Pe(t, { ...e, format: "png" }).then((o) => o.toPng());
|
|
|
17195
17203
|
Pe.toJpg = (t, e) => Pe(t, { ...e, format: "jpeg" }).then((o) => o.toJpg());
|
|
17196
17204
|
Pe.toWebp = (t, e) => Pe(t, { ...e, format: "webp" }).then((o) => o.toWebp());
|
|
17197
17205
|
Pe.download = (t, e) => Pe(t, e).then((o) => o.download());
|
|
17198
|
-
async function
|
|
17206
|
+
async function sf(t, e) {
|
|
17199
17207
|
if (ua)
|
|
17200
17208
|
return;
|
|
17201
17209
|
let o = { ...e, fast: !0, embedFonts: !0, scale: 0.2 }, i;
|
|
@@ -17232,7 +17240,7 @@ async function af(t, e) {
|
|
|
17232
17240
|
}
|
|
17233
17241
|
}), ua = !0;
|
|
17234
17242
|
}
|
|
17235
|
-
function
|
|
17243
|
+
function cf(t) {
|
|
17236
17244
|
let e = document.createTreeWalker(t, NodeFilter.SHOW_ELEMENT);
|
|
17237
17245
|
for (; e.nextNode(); ) {
|
|
17238
17246
|
let o = e.currentNode, i = getComputedStyle(o), a = i.backgroundImage && i.backgroundImage !== "none", l = i.maskImage && i.maskImage !== "none" || i.webkitMaskImage && i.webkitMaskImage !== "none";
|
|
@@ -17241,7 +17249,7 @@ function lf(t) {
|
|
|
17241
17249
|
}
|
|
17242
17250
|
return !1;
|
|
17243
17251
|
}
|
|
17244
|
-
class
|
|
17252
|
+
class mf {
|
|
17245
17253
|
constructor() {
|
|
17246
17254
|
ke(this, "frames", []);
|
|
17247
17255
|
ke(this, "captureRect", null);
|
|
@@ -17485,7 +17493,7 @@ class rf {
|
|
|
17485
17493
|
return this._frameDelay;
|
|
17486
17494
|
}
|
|
17487
17495
|
}
|
|
17488
|
-
const
|
|
17496
|
+
const df = {
|
|
17489
17497
|
name: "IdmCapture",
|
|
17490
17498
|
props: {
|
|
17491
17499
|
isPlaying: {
|
|
@@ -17592,7 +17600,7 @@ const nf = {
|
|
|
17592
17600
|
},
|
|
17593
17601
|
startRecord() {
|
|
17594
17602
|
var t, e, o;
|
|
17595
|
-
this.frameCount = 0, this.recorder = new
|
|
17603
|
+
this.frameCount = 0, this.recorder = new mf(), (t = this.recorder) == null || t.setArea(this.selection), (e = this.recorder) == null || e.setFrameDelay(this.frequency), (o = this.recorder) == null || o.startRecording(), console.log("[BottomBar] 录制准备就绪");
|
|
17596
17604
|
},
|
|
17597
17605
|
async captureCurrentFrame() {
|
|
17598
17606
|
var t, e, o;
|
|
@@ -17655,19 +17663,19 @@ const nf = {
|
|
|
17655
17663
|
this.recorder.downloadMp4(this.mp4Blob, e);
|
|
17656
17664
|
}
|
|
17657
17665
|
}
|
|
17658
|
-
},
|
|
17666
|
+
}, hf = { class: "capture-container" }, uf = {
|
|
17659
17667
|
key: 0,
|
|
17660
17668
|
class: "drag-tips text-h4"
|
|
17661
|
-
},
|
|
17669
|
+
}, pf = { class: "size-hint mt-2 ml-2 text-body-2 px-2 py-1 rounded font-weight-bold bg-background" }, gf = { class: "size-hint mt-2 ml-2 text-body-2 px-2 py-1 rounded font-weight-bold bg-background" }, ff = { class: "text-body-2" }, yf = {
|
|
17662
17670
|
key: 0,
|
|
17663
17671
|
class: "py-1 px-2 d-flex align-center justify-center ga-2"
|
|
17664
|
-
},
|
|
17672
|
+
}, bf = { class: "text-body-2" }, wf = {
|
|
17665
17673
|
key: 1,
|
|
17666
17674
|
class: "py-1 px-2 d-flex align-center justify-center ga-2"
|
|
17667
|
-
},
|
|
17668
|
-
function
|
|
17675
|
+
}, xf = { class: "text-body-2" };
|
|
17676
|
+
function vf(t, e, o, i, a, l) {
|
|
17669
17677
|
const r = M("VBtn");
|
|
17670
|
-
return A(), I("div",
|
|
17678
|
+
return A(), I("div", hf, [
|
|
17671
17679
|
a.actionStatus > 0 && a.actionStatus < 4 ? (A(), I("div", {
|
|
17672
17680
|
key: 0,
|
|
17673
17681
|
class: "capture-selector",
|
|
@@ -17675,13 +17683,13 @@ function yf(t, e, o, i, a, l) {
|
|
|
17675
17683
|
onMousemove: e[3] || (e[3] = (...c) => l.handleMouseMove && l.handleMouseMove(...c)),
|
|
17676
17684
|
onMouseup: e[4] || (e[4] = (...c) => l.handleMouseUp && l.handleMouseUp(...c))
|
|
17677
17685
|
}, [
|
|
17678
|
-
a.actionStatus === 1 ? (A(), I("div",
|
|
17686
|
+
a.actionStatus === 1 ? (A(), I("div", uf, y(t.$t("tips.crossHairText")), 1)) : G("", !0),
|
|
17679
17687
|
a.actionStatus >= 2 ? (A(), I("div", {
|
|
17680
17688
|
key: 1,
|
|
17681
17689
|
class: "selection-box",
|
|
17682
17690
|
style: fe(l.selectionStyle)
|
|
17683
17691
|
}, [
|
|
17684
|
-
n("div",
|
|
17692
|
+
n("div", pf, y(Math.round(a.selection.width)) + " × " + y(Math.round(a.selection.height)), 1),
|
|
17685
17693
|
a.actionStatus === 3 ? (A(), I("div", {
|
|
17686
17694
|
key: 0,
|
|
17687
17695
|
class: "action-buttons px-2 rounded font-weight-bold bg-background d-flex justify-end ga-4",
|
|
@@ -17712,8 +17720,8 @@ function yf(t, e, o, i, a, l) {
|
|
|
17712
17720
|
class: be(["capture-frame", { recording: a.actionStatus === 5 }]),
|
|
17713
17721
|
style: fe(l.selectionStyle)
|
|
17714
17722
|
}, [
|
|
17715
|
-
n("div",
|
|
17716
|
-
n("div",
|
|
17723
|
+
n("div", gf, [
|
|
17724
|
+
n("div", ff, y(a.selection.width) + " × " + y(a.selection.height), 1)
|
|
17717
17725
|
]),
|
|
17718
17726
|
n("div", {
|
|
17719
17727
|
class: "action-status mt-2 px-2 rounded font-weight-bold bg-background d-flex align-center justify-end ga-4",
|
|
@@ -17722,22 +17730,22 @@ function yf(t, e, o, i, a, l) {
|
|
|
17722
17730
|
onMouseup: e[6] || (e[6] = Ce(() => {
|
|
17723
17731
|
}, ["stop"]))
|
|
17724
17732
|
}, [
|
|
17725
|
-
a.actionStatus === 4 ? (A(), I("div",
|
|
17733
|
+
a.actionStatus === 4 ? (A(), I("div", yf, [
|
|
17726
17734
|
e[7] || (e[7] = n("div", { class: "dot bg-danger" }, null, -1)),
|
|
17727
|
-
n("div",
|
|
17735
|
+
n("div", bf, y(t.$t("tips.recordingText")), 1)
|
|
17728
17736
|
])) : G("", !0),
|
|
17729
|
-
a.actionStatus === 5 || a.actionStatus === 6 ? (A(), I("div",
|
|
17737
|
+
a.actionStatus === 5 || a.actionStatus === 6 ? (A(), I("div", wf, [
|
|
17730
17738
|
e[8] || (e[8] = n("div", { class: "dot bg-success" }, null, -1)),
|
|
17731
|
-
n("div",
|
|
17739
|
+
n("div", xf, y(t.$t("tips.savingText")), 1)
|
|
17732
17740
|
])) : G("", !0)
|
|
17733
17741
|
], 32)
|
|
17734
17742
|
], 6)) : G("", !0)
|
|
17735
17743
|
]);
|
|
17736
17744
|
}
|
|
17737
|
-
const
|
|
17738
|
-
const
|
|
17745
|
+
const Af = /* @__PURE__ */ ne(df, [["render", vf], ["__scopeId", "data-v-23ed7fb6"]]);
|
|
17746
|
+
const kf = {
|
|
17739
17747
|
name: "IdmBottomBar",
|
|
17740
|
-
components: { DateTimePicker: ea, IdmCapture:
|
|
17748
|
+
components: { DateTimePicker: ea, IdmCapture: Af },
|
|
17741
17749
|
props: {
|
|
17742
17750
|
menuToggle: {
|
|
17743
17751
|
type: Object,
|
|
@@ -17872,13 +17880,13 @@ const wf = {
|
|
|
17872
17880
|
this.$parent.$refs.idmWeatherLayers.handleMenuToggle();
|
|
17873
17881
|
}
|
|
17874
17882
|
}
|
|
17875
|
-
},
|
|
17883
|
+
}, Lf = { class: "idm-bottom-bar-gl4" }, zf = { class: "date-box d-flex ga-2 mr-2" }, _f = { class: "play-btns-box d-flex justify-center align-center cursor-pointer ga-1" }, Cf = { class: "fast-weathers-box d-flex justify-center align-center ga-2 cursor-pointer" }, Mf = { class: "model-box d-flex justify-center align-center ga-2 my-2" }, Pf = {
|
|
17876
17884
|
key: 0,
|
|
17877
17885
|
class: "list d-flex flex-wrap pa-2 rounded ga-2"
|
|
17878
|
-
},
|
|
17879
|
-
function
|
|
17886
|
+
}, Sf = ["onClick"], Tf = { class: "btn-box d-flex justify-start align-center rounded ga-2 py-1 px-3" }, Rf = { class: "text-body-1" };
|
|
17887
|
+
function If(t, e, o, i, a, l) {
|
|
17880
17888
|
const r = M("IdmCapture"), c = M("DateTimePicker"), s = M("VListItemTitle"), d = M("VListItem"), m = M("VList"), u = M("VMenu"), p = M("VBtn"), b = M("VDivider"), g = M("VTooltip");
|
|
17881
|
-
return A(), I("div",
|
|
17889
|
+
return A(), I("div", Lf, [
|
|
17882
17890
|
w(r, K({
|
|
17883
17891
|
ref: "capture",
|
|
17884
17892
|
"is-playing": !a.paused,
|
|
@@ -17895,7 +17903,7 @@ function Pf(t, e, o, i, a, l) {
|
|
|
17895
17903
|
class: "timeline-box px-2 d-flex justify-start align-center rounded",
|
|
17896
17904
|
style: fe({ right: a.right + 146 + "px", bottom: Object.values(a.show).includes(!0) ? "10px" : "-100px" })
|
|
17897
17905
|
}, [
|
|
17898
|
-
n("div",
|
|
17906
|
+
n("div", zf, [
|
|
17899
17907
|
w(c, K({
|
|
17900
17908
|
ref: "dateTimePicker",
|
|
17901
17909
|
"date-time": a.currentDateTimeZ,
|
|
@@ -17960,7 +17968,7 @@ function Pf(t, e, o, i, a, l) {
|
|
|
17960
17968
|
class: "mx-2 my-3",
|
|
17961
17969
|
style: { height: "16px" }
|
|
17962
17970
|
}),
|
|
17963
|
-
n("div",
|
|
17971
|
+
n("div", _f, [
|
|
17964
17972
|
w(g, {
|
|
17965
17973
|
text: a.gifEnabled ? t.$t("actions.stop") : t.$t("actions.record"),
|
|
17966
17974
|
location: "top",
|
|
@@ -18120,7 +18128,7 @@ function Pf(t, e, o, i, a, l) {
|
|
|
18120
18128
|
class: "mx-2 my-3",
|
|
18121
18129
|
style: { height: "16px" }
|
|
18122
18130
|
}),
|
|
18123
|
-
n("div",
|
|
18131
|
+
n("div", Cf, [
|
|
18124
18132
|
w(g, {
|
|
18125
18133
|
text: t.$t("weather.windBarbs"),
|
|
18126
18134
|
location: "top"
|
|
@@ -18224,7 +18232,7 @@ function Pf(t, e, o, i, a, l) {
|
|
|
18224
18232
|
class: "mx-2 mr-3 my-3",
|
|
18225
18233
|
style: { height: "16px" }
|
|
18226
18234
|
}),
|
|
18227
|
-
n("div",
|
|
18235
|
+
n("div", Mf, [
|
|
18228
18236
|
w(p, {
|
|
18229
18237
|
text: "",
|
|
18230
18238
|
height: "30",
|
|
@@ -18257,14 +18265,14 @@ function Pf(t, e, o, i, a, l) {
|
|
|
18257
18265
|
class: "timezone-box d-flex flex-column justify-space-between align-end",
|
|
18258
18266
|
style: fe({ right: a.right + "px" })
|
|
18259
18267
|
}, [
|
|
18260
|
-
a.showTimezone ? (A(), I("div",
|
|
18268
|
+
a.showTimezone ? (A(), I("div", Pf, [
|
|
18261
18269
|
(A(!0), I(Re, null, De(a.offsets, (h) => (A(), I("div", {
|
|
18262
18270
|
key: h,
|
|
18263
18271
|
class: "item rounded text-body-2 hover-active",
|
|
18264
18272
|
onClick: (f) => a.timeZone = h
|
|
18265
|
-
}, y(h < 0 ? h : "+" + h), 9,
|
|
18273
|
+
}, y(h < 0 ? h : "+" + h), 9, Sf))), 128))
|
|
18266
18274
|
])) : G("", !0),
|
|
18267
|
-
n("div",
|
|
18275
|
+
n("div", Tf, [
|
|
18268
18276
|
w(p, {
|
|
18269
18277
|
text: "",
|
|
18270
18278
|
variant: "flat",
|
|
@@ -18278,13 +18286,13 @@ function Pf(t, e, o, i, a, l) {
|
|
|
18278
18286
|
]),
|
|
18279
18287
|
_: 1
|
|
18280
18288
|
}),
|
|
18281
|
-
n("span",
|
|
18289
|
+
n("span", Rf, y(a.currentRealTime), 1)
|
|
18282
18290
|
])
|
|
18283
18291
|
], 4)
|
|
18284
18292
|
]);
|
|
18285
18293
|
}
|
|
18286
|
-
const
|
|
18287
|
-
const
|
|
18294
|
+
const Df = /* @__PURE__ */ ne(kf, [["render", If]]);
|
|
18295
|
+
const Ef = {
|
|
18288
18296
|
name: "IdmTimePlayer",
|
|
18289
18297
|
components: { DateTimePicker: ea },
|
|
18290
18298
|
props: {
|
|
@@ -18392,14 +18400,14 @@ const Tf = {
|
|
|
18392
18400
|
this.step = Math.floor(e / this.frequency), this.animation = requestAnimationFrame(this.animateSpeeds);
|
|
18393
18401
|
}
|
|
18394
18402
|
}
|
|
18395
|
-
},
|
|
18396
|
-
function
|
|
18403
|
+
}, Gf = { class: "w-100 timeline-box d-flex justify-space-around align-center rounded px-2" };
|
|
18404
|
+
function Ff(t, e, o, i, a, l) {
|
|
18397
18405
|
const r = M("VBtn"), c = M("DateTimePicker");
|
|
18398
18406
|
return A(), I("div", {
|
|
18399
18407
|
class: "idm-time-player-gl4 d-flex justify-center align-center",
|
|
18400
18408
|
style: fe({ bottom: Object.values(a.show).includes(!0) ? o.playerBottom + "px" : "-100px" })
|
|
18401
18409
|
}, [
|
|
18402
|
-
n("div",
|
|
18410
|
+
n("div", Gf, [
|
|
18403
18411
|
w(r, {
|
|
18404
18412
|
size: "small",
|
|
18405
18413
|
density: "compact",
|
|
@@ -18492,16 +18500,16 @@ function If(t, e, o, i, a, l) {
|
|
|
18492
18500
|
])
|
|
18493
18501
|
], 4);
|
|
18494
18502
|
}
|
|
18495
|
-
const rl = /* @__PURE__ */ ne(
|
|
18503
|
+
const rl = /* @__PURE__ */ ne(Ef, [["render", Ff]]), jf = {
|
|
18496
18504
|
name: "IdmGL4",
|
|
18497
18505
|
components: {
|
|
18498
18506
|
IdmOtherLayer: ks,
|
|
18499
18507
|
IdmWeatherLayer: um,
|
|
18500
18508
|
IdmTropicals: Zi,
|
|
18501
|
-
IdmMeasure:
|
|
18502
|
-
IdmSpot:
|
|
18503
|
-
IdmMarker:
|
|
18504
|
-
IdmBottomBar:
|
|
18509
|
+
IdmMeasure: yu,
|
|
18510
|
+
IdmSpot: uu,
|
|
18511
|
+
IdmMarker: Zp,
|
|
18512
|
+
IdmBottomBar: Df,
|
|
18505
18513
|
IdmTimePlayer: rl
|
|
18506
18514
|
},
|
|
18507
18515
|
props: {
|
|
@@ -18572,14 +18580,14 @@ const rl = /* @__PURE__ */ ne(Tf, [["render", If]]), Df = {
|
|
|
18572
18580
|
this.weatherCheckList = t, this.layerVersion = this.layerVersion + 1;
|
|
18573
18581
|
}
|
|
18574
18582
|
}
|
|
18575
|
-
},
|
|
18583
|
+
}, Bf = {
|
|
18576
18584
|
id: "map-gl4-home",
|
|
18577
18585
|
ref: "mapHomeGl4",
|
|
18578
18586
|
class: "map-gl4-home"
|
|
18579
18587
|
};
|
|
18580
|
-
function
|
|
18588
|
+
function Nf(t, e, o, i, a, l) {
|
|
18581
18589
|
const r = M("IdmOtherLayer"), c = M("IdmWeatherLayer"), s = M("IdmTropicals"), d = M("IdmSpot"), m = M("IdmMeasure"), u = M("IdmMarker"), p = M("IdmBottomBar"), b = M("IdmTimePlayer");
|
|
18582
|
-
return A(), I("div",
|
|
18590
|
+
return A(), I("div", Bf, [
|
|
18583
18591
|
w(r, K({
|
|
18584
18592
|
ref: "idmOtherLayers",
|
|
18585
18593
|
simple: o.simple,
|
|
@@ -18669,8 +18677,8 @@ function Gf(t, e, o, i, a, l) {
|
|
|
18669
18677
|
}, t.$attrs), null, 16, ["player-bottom", "bg-class", "weather-check-list", "map-feather"])) : G("", !0)
|
|
18670
18678
|
], 512);
|
|
18671
18679
|
}
|
|
18672
|
-
const
|
|
18673
|
-
class
|
|
18680
|
+
const Wf = /* @__PURE__ */ ne(jf, [["render", Nf]]);
|
|
18681
|
+
class Zf {
|
|
18674
18682
|
constructor(e = "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImNsYmY5M3I0YTAwMDE4Ymx0NWJ4emFwNWMiLCJyb2xlIjoyMDQ3LCJpYXQiOjE2NzA1NTM0NzAsImV4cCI6Mzg3ODA3MzQ3MH0.MxTv0yLGarZCtOSCZfJHMqrXNMNN0-OL4gBGKGcYcc8", { hifleet: o = !1 }) {
|
|
18675
18683
|
ke(this, "originStyle");
|
|
18676
18684
|
ke(this, "mapboxStyle");
|
|
@@ -37409,7 +37417,7 @@ class jf {
|
|
|
37409
37417
|
};
|
|
37410
37418
|
}
|
|
37411
37419
|
}
|
|
37412
|
-
const
|
|
37420
|
+
const Vf = {
|
|
37413
37421
|
name: "MapInitial",
|
|
37414
37422
|
props: {
|
|
37415
37423
|
token: {
|
|
@@ -37485,7 +37493,7 @@ const Bf = {
|
|
|
37485
37493
|
},
|
|
37486
37494
|
methods: {
|
|
37487
37495
|
async initOnlineMap() {
|
|
37488
|
-
this.helper = new
|
|
37496
|
+
this.helper = new Zf(this.token, { hifleet: this.platform === "ops" }), ve.accessToken = "pk.eyJ1IjoibmVhdGNoZW5oZW5nIiwiYSI6ImNsdXM3cnBmODBsemgycW1vaXc1bjV6bXMifQ.w6fqHGRbhNhLvm0LnX4ZVw";
|
|
37489
37497
|
const t = new ve.Map({
|
|
37490
37498
|
container: "map",
|
|
37491
37499
|
// style: 'mapbox://styles/neatchenheng/cmd894dwn036m01rf7anc0k0d', //light
|
|
@@ -37528,11 +37536,11 @@ const Bf = {
|
|
|
37528
37536
|
this.zoom > 2 && (this.zoom = Math.floor(this.zoom) - 1, (t = this.map) == null || t.flyTo({ zoom: this.zoom, duration: 500 }));
|
|
37529
37537
|
}
|
|
37530
37538
|
}
|
|
37531
|
-
},
|
|
37539
|
+
}, Xf = { class: "v-btn--variant-elevated rounded" }, Of = { class: "v-btn--variant-elevated rounded" }, Yf = { class: "zoom" }, Hf = {
|
|
37532
37540
|
key: 2,
|
|
37533
37541
|
class: "position-absolute left-0 bottom-0 ma-2 my-1 text-caption text-label opacity-70"
|
|
37534
37542
|
};
|
|
37535
|
-
function
|
|
37543
|
+
function Uf(t, e, o, i, a, l) {
|
|
37536
37544
|
const r = M("VBtn");
|
|
37537
37545
|
return A(), I("div", {
|
|
37538
37546
|
id: "mapbox-initial-gl4",
|
|
@@ -37545,7 +37553,7 @@ function Xf(t, e, o, i, a, l) {
|
|
|
37545
37553
|
class: "menu-bar-box transition px-1 rounded d-flex flex-column pa-1 simple",
|
|
37546
37554
|
style: fe({ top: o.top + 294 + "px", right: a.right + "px", height: "40px" })
|
|
37547
37555
|
}, [
|
|
37548
|
-
n("div",
|
|
37556
|
+
n("div", Xf, [
|
|
37549
37557
|
w(r, {
|
|
37550
37558
|
"min-width": "32",
|
|
37551
37559
|
width: "32",
|
|
@@ -37566,7 +37574,7 @@ function Xf(t, e, o, i, a, l) {
|
|
|
37566
37574
|
class: "menu-bar-box transition px-1 rounded d-flex flex-column",
|
|
37567
37575
|
style: fe({ top: o.top + 308 + "px", right: a.right + "px", height: "112px" })
|
|
37568
37576
|
}, [
|
|
37569
|
-
n("div",
|
|
37577
|
+
n("div", Of, [
|
|
37570
37578
|
w(r, {
|
|
37571
37579
|
"min-width": "32",
|
|
37572
37580
|
width: "32",
|
|
@@ -37580,7 +37588,7 @@ function Xf(t, e, o, i, a, l) {
|
|
|
37580
37588
|
_: 1,
|
|
37581
37589
|
__: [1]
|
|
37582
37590
|
}, 8, ["onClick"]),
|
|
37583
|
-
n("div",
|
|
37591
|
+
n("div", Yf, y(a.zoom ? Math.floor(a.zoom) : 0), 1),
|
|
37584
37592
|
w(r, {
|
|
37585
37593
|
"min-width": "32",
|
|
37586
37594
|
width: "32",
|
|
@@ -37596,7 +37604,7 @@ function Xf(t, e, o, i, a, l) {
|
|
|
37596
37604
|
}, 8, ["onClick"])
|
|
37597
37605
|
])
|
|
37598
37606
|
], 4)),
|
|
37599
|
-
o.simple ? G("", !0) : (A(), I("div",
|
|
37607
|
+
o.simple ? G("", !0) : (A(), I("div", Hf, [
|
|
37600
37608
|
e[3] || (e[3] = n("span", null, "© 2023", -1)),
|
|
37601
37609
|
n("span", null, "-" + y(l.computeYear), 1),
|
|
37602
37610
|
e[4] || (e[4] = n("span", { class: "text-uppercase ma-2" }, "ormwx.com", -1)),
|
|
@@ -37608,8 +37616,8 @@ function Xf(t, e, o, i, a, l) {
|
|
|
37608
37616
|
]))
|
|
37609
37617
|
], 4);
|
|
37610
37618
|
}
|
|
37611
|
-
const
|
|
37612
|
-
const
|
|
37619
|
+
const Jf = /* @__PURE__ */ ne(Vf, [["render", Uf]]);
|
|
37620
|
+
const Kf = {
|
|
37613
37621
|
name: "DateRangePicker",
|
|
37614
37622
|
props: {
|
|
37615
37623
|
width: {
|
|
@@ -37851,22 +37859,22 @@ const Yf = {
|
|
|
37851
37859
|
this.dateRange = [], this.dateRangeStr = "", this.$emit("dateRange", []);
|
|
37852
37860
|
}
|
|
37853
37861
|
}
|
|
37854
|
-
},
|
|
37862
|
+
}, Qf = {
|
|
37855
37863
|
ref: "idmGl4DatePicker",
|
|
37856
37864
|
class: "idm-gl4-date-picker"
|
|
37857
|
-
},
|
|
37865
|
+
}, qf = { class: "flex-1-1-0" }, $f = { class: "pa-0 w-100 d-flex justify-space-between align-center ga-4" }, e1 = {
|
|
37858
37866
|
key: 0,
|
|
37859
37867
|
class: "d-flex justify-start align-center flex-wrap ga-3 ml-n2"
|
|
37860
|
-
},
|
|
37861
|
-
function
|
|
37868
|
+
}, t1 = { class: "flex-1-1-0 d-flex justify-end align-center ga-4" };
|
|
37869
|
+
function o1(t, e, o, i, a, l) {
|
|
37862
37870
|
const r = M("VIcon"), c = M("VDatePicker"), s = M("VDivider"), d = M("VCardText"), m = M("VBtn"), u = M("VCardActions"), p = M("VCard");
|
|
37863
|
-
return A(), I("div",
|
|
37871
|
+
return A(), I("div", Qf, [
|
|
37864
37872
|
n("div", {
|
|
37865
37873
|
style: fe({ height: o.height + "px", width: o.width ? o.width + "px" : "auto" }),
|
|
37866
37874
|
class: "rounded text-body-1 btn-border-1 btn-bg-1 d-flex align-center justify-space-between px-2 cursor-pointer",
|
|
37867
37875
|
onClick: e[0] || (e[0] = (...b) => l.handleOpenDatePicker && l.handleOpenDatePicker(...b))
|
|
37868
37876
|
}, [
|
|
37869
|
-
n("span",
|
|
37877
|
+
n("span", qf, y(a.dateRangeStr), 1),
|
|
37870
37878
|
a.dateRangeStr ? (A(), j(r, {
|
|
37871
37879
|
key: 0,
|
|
37872
37880
|
class: "text-h5",
|
|
@@ -37883,7 +37891,7 @@ function qf(t, e, o, i, a, l) {
|
|
|
37883
37891
|
default: x(() => [
|
|
37884
37892
|
w(d, { class: "w-100 flex-1-1-0 d-flex pa-0" }, {
|
|
37885
37893
|
default: x(() => [
|
|
37886
|
-
n("div",
|
|
37894
|
+
n("div", $f, [
|
|
37887
37895
|
w(c, {
|
|
37888
37896
|
modelValue: a.dateRange[0],
|
|
37889
37897
|
"onUpdate:modelValue": [
|
|
@@ -37930,7 +37938,7 @@ function qf(t, e, o, i, a, l) {
|
|
|
37930
37938
|
default: x(() => {
|
|
37931
37939
|
var b, g;
|
|
37932
37940
|
return [
|
|
37933
|
-
(b = o.fastPick) != null && b.show ? (A(), I("div",
|
|
37941
|
+
(b = o.fastPick) != null && b.show ? (A(), I("div", e1, [
|
|
37934
37942
|
(A(!0), I(Re, null, De((g = a.fastPickOptions) == null ? void 0 : g.filter((h) => o.fastPick.allows.some((f) => f === h)), (h) => (A(), j(m, {
|
|
37935
37943
|
key: h,
|
|
37936
37944
|
size: "small",
|
|
@@ -37945,7 +37953,7 @@ function qf(t, e, o, i, a, l) {
|
|
|
37945
37953
|
_: 2
|
|
37946
37954
|
}, 1032, ["color", "variant", "onClick"]))), 128))
|
|
37947
37955
|
])) : G("", !0),
|
|
37948
|
-
n("div",
|
|
37956
|
+
n("div", t1, [
|
|
37949
37957
|
w(m, {
|
|
37950
37958
|
size: "small",
|
|
37951
37959
|
variant: "tonal",
|
|
@@ -37979,25 +37987,25 @@ function qf(t, e, o, i, a, l) {
|
|
|
37979
37987
|
}, 8, ["style"])) : G("", !0)
|
|
37980
37988
|
], 512);
|
|
37981
37989
|
}
|
|
37982
|
-
const
|
|
37990
|
+
const a1 = /* @__PURE__ */ ne(Kf, [["render", o1]]), w1 = {
|
|
37983
37991
|
install(t) {
|
|
37984
|
-
t.component("MapInitial",
|
|
37992
|
+
t.component("MapInitial", Jf), t.component("MapboxGL", Wf), t.component("TropicalGL", Zi), t.component("LatLngGL", Wi), t.component("DateTimePicker", ea), t.component("DateRangePicker", a1), t.component("PortDetail", pa), t.component("TimePlayer", rl);
|
|
37985
37993
|
}
|
|
37986
37994
|
};
|
|
37987
37995
|
export {
|
|
37988
37996
|
ea as D,
|
|
37989
37997
|
Wi as L,
|
|
37990
|
-
|
|
37998
|
+
w1 as M,
|
|
37991
37999
|
pa as P,
|
|
37992
38000
|
Zi as T,
|
|
37993
38001
|
ga as V,
|
|
37994
38002
|
ro as W,
|
|
37995
|
-
|
|
37996
|
-
|
|
37997
|
-
|
|
38003
|
+
Jf as a,
|
|
38004
|
+
Wf as b,
|
|
38005
|
+
a1 as c,
|
|
37998
38006
|
rl as d,
|
|
37999
38007
|
Me as e,
|
|
38000
38008
|
Ue as f,
|
|
38001
|
-
|
|
38009
|
+
Zf as g,
|
|
38002
38010
|
No as l
|
|
38003
38011
|
};
|