@flemo/core 2.4.0 → 2.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dom/attributes.d.ts +1 -7
- package/dist/index.d.ts +1 -2
- package/dist/index.mjs +1035 -1049
- package/dist/transition/partTransition/createPartTransition.d.ts +2 -1
- package/package.json +4 -4
- package/dist/core/engine/__tests__/compositorWarmUp.test.d.ts +0 -1
- package/dist/core/engine/compositorWarmUp.d.ts +0 -3
package/dist/index.mjs
CHANGED
|
@@ -996,7 +996,7 @@ function W(e) {
|
|
|
996
996
|
};
|
|
997
997
|
return s && oe.set(s, g), g;
|
|
998
998
|
}
|
|
999
|
-
function
|
|
999
|
+
function G(e) {
|
|
1000
1000
|
if (p() || e.memory) return;
|
|
1001
1001
|
let { histories: t, index: n } = e.history.getState();
|
|
1002
1002
|
if (n !== 0 || t.length !== 1) return;
|
|
@@ -1012,7 +1012,7 @@ function se(e) {
|
|
|
1012
1012
|
}
|
|
1013
1013
|
//#endregion
|
|
1014
1014
|
//#region src/screen/createScreenSelector.ts
|
|
1015
|
-
function
|
|
1015
|
+
function se(e, t) {
|
|
1016
1016
|
return e.map((n, r) => ({
|
|
1017
1017
|
...n,
|
|
1018
1018
|
isActive: r === t,
|
|
@@ -1025,17 +1025,17 @@ function ce(e, t) {
|
|
|
1025
1025
|
}
|
|
1026
1026
|
//#endregion
|
|
1027
1027
|
//#region src/screen/computeScreenFreeze.ts
|
|
1028
|
-
function
|
|
1028
|
+
function ce(e) {
|
|
1029
1029
|
if (e.isPrev && e.index - 2 <= e.zIndex && e.replaceTransitionStatus === "IDLE" || e.isPrev && e.index - 2 > e.zIndex) return "immediate";
|
|
1030
1030
|
let t = e.status === "COMPLETED" && e.dragStatus === "IDLE";
|
|
1031
1031
|
return !e.isActive && t ? "deferred" : "live";
|
|
1032
1032
|
}
|
|
1033
|
-
function
|
|
1034
|
-
return
|
|
1033
|
+
function le(e) {
|
|
1034
|
+
return ce(e) !== "live";
|
|
1035
1035
|
}
|
|
1036
1036
|
//#endregion
|
|
1037
1037
|
//#region src/transition/createTransition.ts
|
|
1038
|
-
function
|
|
1038
|
+
function ue({ name: e, initial: t, idle: n, enter: r, enterBack: i, exit: a, exitBack: o, options: s }) {
|
|
1039
1039
|
return {
|
|
1040
1040
|
name: e,
|
|
1041
1041
|
initial: t,
|
|
@@ -1082,7 +1082,7 @@ var fe = 30, pe = .7, me = [
|
|
|
1082
1082
|
.72,
|
|
1083
1083
|
0,
|
|
1084
1084
|
1
|
|
1085
|
-
], he =
|
|
1085
|
+
], he = ue({
|
|
1086
1086
|
name: "cupertino",
|
|
1087
1087
|
initial: { x: "100%" },
|
|
1088
1088
|
idle: {
|
|
@@ -1129,7 +1129,7 @@ var fe = 30, pe = .7, me = [
|
|
|
1129
1129
|
], ve = 56, ye = 160, be = 12, xe = (e) => {
|
|
1130
1130
|
let t = Math.max(0, Math.min(ve, e)), n = Math.max(0, e - ve);
|
|
1131
1131
|
return t + Math.sqrt(Math.min(1, n / ye)) * be;
|
|
1132
|
-
}, Se =
|
|
1132
|
+
}, Se = ue({
|
|
1133
1133
|
name: "layout",
|
|
1134
1134
|
initial: { opacity: 0 },
|
|
1135
1135
|
idle: {
|
|
@@ -1177,7 +1177,7 @@ var fe = 30, pe = .7, me = [
|
|
|
1177
1177
|
}), Ce = 56, we = 160, Te = 12, Ee = (e) => {
|
|
1178
1178
|
let t = Math.max(0, Math.min(Ce, e)), n = Math.max(0, e - Ce);
|
|
1179
1179
|
return t + Math.sqrt(Math.min(1, n / we)) * Te;
|
|
1180
|
-
}, De =
|
|
1180
|
+
}, De = ue({
|
|
1181
1181
|
name: "material",
|
|
1182
1182
|
initial: { y: "100%" },
|
|
1183
1183
|
idle: {
|
|
@@ -1252,7 +1252,7 @@ var fe = 30, pe = .7, me = [
|
|
|
1252
1252
|
};
|
|
1253
1253
|
}
|
|
1254
1254
|
} }
|
|
1255
|
-
}), Oe =
|
|
1255
|
+
}), Oe = ue({
|
|
1256
1256
|
name: "none",
|
|
1257
1257
|
initial: {},
|
|
1258
1258
|
idle: {
|
|
@@ -1402,7 +1402,7 @@ var Ne = "rgba(0, 0, 0, 0.1)", Pe = je({
|
|
|
1402
1402
|
};
|
|
1403
1403
|
//#endregion
|
|
1404
1404
|
//#region src/transition/partTransition/createPartTransition.ts
|
|
1405
|
-
function He({ name: e, initial: t, idle: n, enter: r, exit: i,
|
|
1405
|
+
function He({ name: e, initial: t, idle: n, enter: r, exit: i, dismiss: a, options: o }) {
|
|
1406
1406
|
return {
|
|
1407
1407
|
name: e,
|
|
1408
1408
|
initial: t,
|
|
@@ -1413,12 +1413,12 @@ function He({ name: e, initial: t, idle: n, enter: r, exit: i, options: a }) {
|
|
|
1413
1413
|
"PUSHING-false": r,
|
|
1414
1414
|
"REPLACING-true": n,
|
|
1415
1415
|
"REPLACING-false": r,
|
|
1416
|
-
"POPPING-true": n,
|
|
1416
|
+
"POPPING-true": a ?? n,
|
|
1417
1417
|
"POPPING-false": i,
|
|
1418
1418
|
"COMPLETED-true": n,
|
|
1419
1419
|
"COMPLETED-false": r
|
|
1420
1420
|
},
|
|
1421
|
-
...
|
|
1421
|
+
...o
|
|
1422
1422
|
};
|
|
1423
1423
|
}
|
|
1424
1424
|
//#endregion
|
|
@@ -1612,7 +1612,7 @@ var Ye = [
|
|
|
1612
1612
|
Rt.PARK,
|
|
1613
1613
|
Rt.PARK_UNDER,
|
|
1614
1614
|
Rt.PARK_OVER
|
|
1615
|
-
], Bt = "data-flemo-held-arrival", Vt = "data-flemo-img-hold", Ht = "data-flemo-governed", Ut = "data-flemo-creep", Wt = "data-flemo-desk-head", Gt = "data-flemo-park-head", Kt = "data-flemo-
|
|
1615
|
+
], Bt = "data-flemo-held-arrival", Vt = "data-flemo-img-hold", Ht = "data-flemo-governed", Ut = "data-flemo-creep", Wt = "data-flemo-desk-head", Gt = "data-flemo-park-head", Kt = "data-flemo-gpu-prewarm", qt = "data-flemo-image-src", Jt = "data-flemo-devtools-panel", Y = (e) => `[${e}]`, X = (e, t) => `[${e}="${t}"]`, Yt = [
|
|
1616
1616
|
at,
|
|
1617
1617
|
ot,
|
|
1618
1618
|
st,
|
|
@@ -1655,10 +1655,9 @@ var Ye = [
|
|
|
1655
1655
|
Gt,
|
|
1656
1656
|
Kt,
|
|
1657
1657
|
qt,
|
|
1658
|
-
Jt
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
let n = t.getBoundingClientRect(), r = Zt(n.width, t.offsetWidth), i = Zt(n.height, t.offsetHeight);
|
|
1658
|
+
Jt
|
|
1659
|
+
], Xt = (e, t) => t <= 0 || Math.abs(e - t) <= .5 ? 1 : e / t || 1, Zt = (e, t) => {
|
|
1660
|
+
let n = t.getBoundingClientRect(), r = Xt(n.width, t.offsetWidth), i = Xt(n.height, t.offsetHeight);
|
|
1662
1661
|
return {
|
|
1663
1662
|
x: (e.x - n.left) / r,
|
|
1664
1663
|
y: (e.y - n.top) / i,
|
|
@@ -1666,47 +1665,47 @@ var Ye = [
|
|
|
1666
1665
|
height: e.height / i
|
|
1667
1666
|
};
|
|
1668
1667
|
};
|
|
1669
|
-
function
|
|
1668
|
+
function Qt(e) {
|
|
1670
1669
|
let t = e.animationName;
|
|
1671
1670
|
return typeof t == "string" && t.length > 0 ? t : null;
|
|
1672
1671
|
}
|
|
1673
|
-
function
|
|
1672
|
+
function $t(e) {
|
|
1674
1673
|
let t = e.effect?.target ?? null;
|
|
1675
1674
|
return t instanceof Element ? t : null;
|
|
1676
1675
|
}
|
|
1677
|
-
function
|
|
1676
|
+
function en(e) {
|
|
1678
1677
|
let t = e.currentTime;
|
|
1679
1678
|
return typeof t == "number" ? t : null;
|
|
1680
1679
|
}
|
|
1681
|
-
function
|
|
1680
|
+
function tn(e) {
|
|
1682
1681
|
let t = /* @__PURE__ */ new Map();
|
|
1683
1682
|
t.set(e, 0);
|
|
1684
1683
|
let n = 1;
|
|
1685
1684
|
for (let r of e.querySelectorAll("*")) t.set(r, n++);
|
|
1686
1685
|
return t;
|
|
1687
1686
|
}
|
|
1688
|
-
function
|
|
1687
|
+
function nn(e, t) {
|
|
1689
1688
|
let n = /* @__PURE__ */ new Map();
|
|
1690
1689
|
if (typeof e.getAnimations != "function") return n;
|
|
1691
|
-
let r =
|
|
1690
|
+
let r = tn(e);
|
|
1692
1691
|
for (let i of e.getAnimations({ subtree: !0 })) {
|
|
1693
|
-
let a =
|
|
1692
|
+
let a = $t(i);
|
|
1694
1693
|
if (!a || a === e && !t) continue;
|
|
1695
|
-
let o =
|
|
1694
|
+
let o = Qt(i), s = r.get(a);
|
|
1696
1695
|
if (o === null || s === void 0) continue;
|
|
1697
|
-
let c =
|
|
1696
|
+
let c = en(i);
|
|
1698
1697
|
c !== null && n.set(`${s}|${o}`, { time: c });
|
|
1699
1698
|
}
|
|
1700
1699
|
return n;
|
|
1701
1700
|
}
|
|
1702
|
-
function
|
|
1703
|
-
let r = n.includeRoot ?? !1, i =
|
|
1701
|
+
function rn(e, t, n = {}) {
|
|
1702
|
+
let r = n.includeRoot ?? !1, i = nn(e, r);
|
|
1704
1703
|
if (t(), i.size === 0 || typeof e.getAnimations != "function") return i.size;
|
|
1705
|
-
let a =
|
|
1704
|
+
let a = tn(e);
|
|
1706
1705
|
for (let t of e.getAnimations({ subtree: !0 })) {
|
|
1707
|
-
let n =
|
|
1706
|
+
let n = $t(t);
|
|
1708
1707
|
if (!n || n === e && !r) continue;
|
|
1709
|
-
let o =
|
|
1708
|
+
let o = Qt(t), s = a.get(n);
|
|
1710
1709
|
if (o === null || s === void 0) continue;
|
|
1711
1710
|
let c = i.get(`${s}|${o}`);
|
|
1712
1711
|
if (c) try {
|
|
@@ -1717,7 +1716,7 @@ function an(e, t, n = {}) {
|
|
|
1717
1716
|
}
|
|
1718
1717
|
//#endregion
|
|
1719
1718
|
//#region src/morph/morphClip.ts
|
|
1720
|
-
var
|
|
1719
|
+
var an = (e) => e !== "" && e !== "visible", on = (e) => {
|
|
1721
1720
|
if (!e || !e.isConnected) return null;
|
|
1722
1721
|
let t = e.getBoundingClientRect();
|
|
1723
1722
|
if (t.width <= 0 || t.height <= 0) return null;
|
|
@@ -1730,9 +1729,9 @@ var on = (e) => e !== "" && e !== "visible", sn = (e) => {
|
|
|
1730
1729
|
} catch {
|
|
1731
1730
|
return null;
|
|
1732
1731
|
}
|
|
1733
|
-
if (!
|
|
1732
|
+
if (!an(e) && !an(o)) continue;
|
|
1734
1733
|
let s = t.getBoundingClientRect();
|
|
1735
|
-
s.width <= 0 || s.height <= 0 || (
|
|
1734
|
+
s.width <= 0 || s.height <= 0 || (an(o) && (n = Math.max(n, s.top), i = Math.min(i, s.bottom)), an(e) && (r = Math.max(r, s.left), a = Math.min(a, s.right)));
|
|
1736
1735
|
}
|
|
1737
1736
|
let o = n - t.y, s = r - t.x, c = t.y + t.height - i, l = t.x + t.width - a;
|
|
1738
1737
|
if (o < .5 && s < .5 && c < .5 && l < .5) return null;
|
|
@@ -1743,19 +1742,19 @@ var on = (e) => e !== "" && e !== "visible", sn = (e) => {
|
|
|
1743
1742
|
bottom: u(c, t.height),
|
|
1744
1743
|
left: u(s, t.width)
|
|
1745
1744
|
};
|
|
1746
|
-
},
|
|
1745
|
+
}, sn = {
|
|
1747
1746
|
top: 0,
|
|
1748
1747
|
right: 0,
|
|
1749
1748
|
bottom: 0,
|
|
1750
1749
|
left: 0
|
|
1751
|
-
},
|
|
1752
|
-
from: e ??
|
|
1753
|
-
to: t ??
|
|
1754
|
-
},
|
|
1750
|
+
}, cn = (e, t) => e === null && t === null ? null : {
|
|
1751
|
+
from: e ?? sn,
|
|
1752
|
+
to: t ?? sn
|
|
1753
|
+
}, ln = 1 / 64, un = 256, dn = /^\s*$/, fn = (e, t) => {
|
|
1755
1754
|
let n = e.getBoundingClientRect(), r = (e) => [t.x === "right" ? n.right - e.right : e.left - n.left, t.y === "bottom" ? n.bottom - e.bottom : e.top - n.top], i = [], a = !1, o = (e) => {
|
|
1756
1755
|
if (!a) {
|
|
1757
1756
|
for (let t of e.children) {
|
|
1758
|
-
if (i.length >=
|
|
1757
|
+
if (i.length >= un * 4) {
|
|
1759
1758
|
a = !0;
|
|
1760
1759
|
return;
|
|
1761
1760
|
}
|
|
@@ -1763,7 +1762,7 @@ var on = (e) => e !== "" && e !== "visible", sn = (e) => {
|
|
|
1763
1762
|
i.push(...r(e), e.width, e.height), o(t);
|
|
1764
1763
|
}
|
|
1765
1764
|
for (let t of e.childNodes) {
|
|
1766
|
-
if (t.nodeType !== 3 ||
|
|
1765
|
+
if (t.nodeType !== 3 || dn.test(t.data)) continue;
|
|
1767
1766
|
let n = e.ownerDocument.createRange();
|
|
1768
1767
|
if (typeof n.getClientRects != "function") {
|
|
1769
1768
|
a = !0;
|
|
@@ -1777,22 +1776,22 @@ var on = (e) => e !== "" && e !== "visible", sn = (e) => {
|
|
|
1777
1776
|
}
|
|
1778
1777
|
};
|
|
1779
1778
|
return o(e), a ? null : i;
|
|
1780
|
-
},
|
|
1779
|
+
}, pn = /* @__PURE__ */ new WeakMap(), mn = (e, t, n, r) => {
|
|
1781
1780
|
let i = e.parentElement;
|
|
1782
|
-
if (!i || !e.isConnected || Math.abs(t.width - n.width) <
|
|
1783
|
-
let a = `${t.width.toFixed(1)}x${t.height.toFixed(1)}>${n.width.toFixed(1)}x${n.height.toFixed(1)}|${r.x}${r.y}`, o =
|
|
1781
|
+
if (!i || !e.isConnected || Math.abs(t.width - n.width) < ln && Math.abs(t.height - n.height) < ln) return !1;
|
|
1782
|
+
let a = `${t.width.toFixed(1)}x${t.height.toFixed(1)}>${n.width.toFixed(1)}x${n.height.toFixed(1)}|${r.x}${r.y}`, o = pn.get(e), s = o?.get(a);
|
|
1784
1783
|
if (s !== void 0) return s;
|
|
1785
1784
|
let c = e.cloneNode(!0);
|
|
1786
1785
|
c.setAttribute("aria-hidden", "true"), c.style.position = "absolute", c.style.left = "0", c.style.top = "0", c.style.margin = "0", c.style.visibility = "hidden", c.style.pointerEvents = "none", c.style.animation = "none", c.style.transition = "none", i.appendChild(c);
|
|
1787
|
-
let l = (e) => (c.style.width = `${e.width}px`, c.style.height = `${e.height}px`,
|
|
1786
|
+
let l = (e) => (c.style.width = `${e.width}px`, c.style.height = `${e.height}px`, fn(c, r)), u = null, d = null;
|
|
1788
1787
|
try {
|
|
1789
1788
|
u = l(t), d = l(n);
|
|
1790
1789
|
} finally {
|
|
1791
1790
|
c.remove();
|
|
1792
1791
|
}
|
|
1793
|
-
let f = u !== null && d !== null && u.length > 0 && u.length === d.length && u.every((e, t) => Math.abs(e - d[t]) <=
|
|
1794
|
-
return p.set(a, f),
|
|
1795
|
-
},
|
|
1792
|
+
let f = u !== null && d !== null && u.length > 0 && u.length === d.length && u.every((e, t) => Math.abs(e - d[t]) <= ln), p = o ?? /* @__PURE__ */ new Map();
|
|
1793
|
+
return p.set(a, f), pn.set(e, p), f;
|
|
1794
|
+
}, hn = (e) => e === "normal" ? "0px" : e, gn = [
|
|
1796
1795
|
{ property: "border-radius" },
|
|
1797
1796
|
{ property: "background-color" },
|
|
1798
1797
|
{ property: "background-size" },
|
|
@@ -1827,27 +1826,27 @@ var on = (e) => e !== "" && e !== "visible", sn = (e) => {
|
|
|
1827
1826
|
{ property: "mix-blend-mode" },
|
|
1828
1827
|
{
|
|
1829
1828
|
property: "row-gap",
|
|
1830
|
-
normalize:
|
|
1829
|
+
normalize: hn
|
|
1831
1830
|
},
|
|
1832
1831
|
{
|
|
1833
1832
|
property: "column-gap",
|
|
1834
|
-
normalize:
|
|
1833
|
+
normalize: hn
|
|
1835
1834
|
},
|
|
1836
1835
|
{ property: "object-position" },
|
|
1837
1836
|
{ property: "fill" },
|
|
1838
1837
|
{ property: "stroke" },
|
|
1839
1838
|
{ property: "stroke-width" }
|
|
1840
|
-
],
|
|
1839
|
+
], _n = (e) => e.replace(/-([a-z])/g, (e, t) => t.toUpperCase()), vn = (e) => {
|
|
1841
1840
|
let t = {};
|
|
1842
1841
|
if (!e) return t;
|
|
1843
|
-
for (let n of
|
|
1844
|
-
let r = n.sides ? n.sides.map((t) => e[t] ?? "").join(" ") : e[
|
|
1842
|
+
for (let n of gn) {
|
|
1843
|
+
let r = n.sides ? n.sides.map((t) => e[t] ?? "").join(" ") : e[_n(n.property)] ?? "";
|
|
1845
1844
|
r.trim().length > 0 && (t[n.property] = n.normalize ? n.normalize(r) : r);
|
|
1846
1845
|
}
|
|
1847
1846
|
return t;
|
|
1848
|
-
},
|
|
1847
|
+
}, yn = (e, t, n) => {
|
|
1849
1848
|
let r = [];
|
|
1850
|
-
for (let i of
|
|
1849
|
+
for (let i of gn) {
|
|
1851
1850
|
if (n?.has(i.property)) continue;
|
|
1852
1851
|
let a = e[i.property], o = t[i.property];
|
|
1853
1852
|
a !== void 0 && o !== void 0 && a !== o && r.push({
|
|
@@ -1863,7 +1862,7 @@ var on = (e) => e !== "" && e !== "visible", sn = (e) => {
|
|
|
1863
1862
|
scaleX: 1,
|
|
1864
1863
|
scaleY: 1,
|
|
1865
1864
|
rotate: 0
|
|
1866
|
-
},
|
|
1865
|
+
}, bn = (e, t) => {
|
|
1867
1866
|
if (e === void 0) return 0;
|
|
1868
1867
|
if (typeof e == "number") return e;
|
|
1869
1868
|
let n = e.trim();
|
|
@@ -1878,12 +1877,12 @@ var on = (e) => e !== "" && e !== "visible", sn = (e) => {
|
|
|
1878
1877
|
}
|
|
1879
1878
|
let r = Number.parseFloat(n);
|
|
1880
1879
|
return n === String(r) && Number.isFinite(r) ? r : null;
|
|
1881
|
-
},
|
|
1880
|
+
}, xn = (e, t) => {
|
|
1882
1881
|
if (e === void 0) return t;
|
|
1883
1882
|
if (typeof e == "number") return e;
|
|
1884
1883
|
let n = Number.parseFloat(e.trim());
|
|
1885
1884
|
return Number.isFinite(n) ? n : null;
|
|
1886
|
-
},
|
|
1885
|
+
}, Sn = (e) => {
|
|
1887
1886
|
if (e === void 0) return 0;
|
|
1888
1887
|
if (typeof e == "number") return e;
|
|
1889
1888
|
let t = e.trim();
|
|
@@ -1893,15 +1892,15 @@ var on = (e) => e !== "" && e !== "visible", sn = (e) => {
|
|
|
1893
1892
|
}
|
|
1894
1893
|
let n = Number.parseFloat(t);
|
|
1895
1894
|
return t === String(n) && Number.isFinite(n) ? n : null;
|
|
1896
|
-
},
|
|
1895
|
+
}, Cn = (e, t) => {
|
|
1897
1896
|
if (!e) return { ...Z };
|
|
1898
|
-
let n =
|
|
1897
|
+
let n = bn(e.x, t.width), r = bn(e.y, t.height);
|
|
1899
1898
|
if (n === null || r === null) return null;
|
|
1900
|
-
let i =
|
|
1899
|
+
let i = xn(e.scale, 1);
|
|
1901
1900
|
if (i === null) return null;
|
|
1902
|
-
let a =
|
|
1901
|
+
let a = xn(e.scaleX, i), o = xn(e.scaleY, i);
|
|
1903
1902
|
if (a === null || o === null) return null;
|
|
1904
|
-
let s =
|
|
1903
|
+
let s = Sn(e.rotate ?? e.rotateZ);
|
|
1905
1904
|
return s === null ? null : {
|
|
1906
1905
|
x: n,
|
|
1907
1906
|
y: r,
|
|
@@ -1909,73 +1908,73 @@ var on = (e) => e !== "" && e !== "visible", sn = (e) => {
|
|
|
1909
1908
|
scaleY: o,
|
|
1910
1909
|
rotate: s
|
|
1911
1910
|
};
|
|
1912
|
-
},
|
|
1913
|
-
if (
|
|
1911
|
+
}, wn = (e) => e.x === 0 && e.y === 0 && e.scaleX === 1 && e.scaleY === 1 && e.rotate === 0, Tn = (e) => Math.round(e * 1e3) / 1e3, En = (e) => {
|
|
1912
|
+
if (wn(e)) return "none";
|
|
1914
1913
|
let t = [];
|
|
1915
|
-
return (e.x !== 0 || e.y !== 0) && t.push(`translate3d(${
|
|
1916
|
-
},
|
|
1917
|
-
let t =
|
|
1914
|
+
return (e.x !== 0 || e.y !== 0) && t.push(`translate3d(${Tn(e.x)}px, ${Tn(e.y)}px, 0)`), (e.scaleX !== 1 || e.scaleY !== 1) && t.push(`scale(${Tn(e.scaleX)}, ${Tn(e.scaleY)})`), e.rotate !== 0 && t.push(`rotate(${Tn(e.rotate)}deg)`), t.join(" ");
|
|
1915
|
+
}, Dn = (e) => e.filter((e) => !wn(e)), On = (e) => {
|
|
1916
|
+
let t = Dn(e).map(En);
|
|
1918
1917
|
return t.length === 0 ? "none" : t.join(" ");
|
|
1919
|
-
},
|
|
1918
|
+
}, kn = {
|
|
1920
1919
|
x: "--flemo-pose-x",
|
|
1921
1920
|
y: "--flemo-pose-y",
|
|
1922
1921
|
scaleX: "--flemo-pose-sx",
|
|
1923
1922
|
scaleY: "--flemo-pose-sy",
|
|
1924
1923
|
rotate: "--flemo-pose-r"
|
|
1925
|
-
},
|
|
1924
|
+
}, An = {
|
|
1926
1925
|
x: "--flemo-move-x",
|
|
1927
1926
|
y: "--flemo-move-y",
|
|
1928
1927
|
lift: "--flemo-lift-y"
|
|
1929
|
-
},
|
|
1928
|
+
}, jn = {
|
|
1930
1929
|
w: "--flemo-box-w",
|
|
1931
1930
|
h: "--flemo-box-h"
|
|
1932
|
-
},
|
|
1931
|
+
}, Mn = jn.w, Nn = `var(${jn.w})`, Pn = `var(${jn.h})`, Fn = 1 / 64, In = (e) => Math.round(e / Fn) * Fn, Ln = (e) => In(e).toFixed(6).replace(/0+$/, "").replace(/\.$/, ""), Rn = (e, t, n = " ") => `${n}${jn.w}: ${Ln(e)}px;\n${n}${jn.h}: ${Ln(t)}px;`, zn = {
|
|
1933
1932
|
authored: "--flemo-track",
|
|
1934
1933
|
fix: "--flemo-track-fix"
|
|
1935
|
-
},
|
|
1936
|
-
`@property ${jn.x} {\n syntax: "<length>";\n inherits: false;\n initial-value: 0px;\n}`,
|
|
1937
|
-
`@property ${jn.y} {\n syntax: "<length>";\n inherits: false;\n initial-value: 0px;\n}`,
|
|
1938
|
-
`@property ${jn.lift} {\n syntax: "<length>";\n inherits: false;\n initial-value: 0px;\n}`,
|
|
1939
|
-
`@property ${Mn.w} {\n syntax: "<length>";\n inherits: false;\n initial-value: 0px;\n}`,
|
|
1940
|
-
`@property ${Mn.h} {\n syntax: "<length>";\n inherits: false;\n initial-value: 0px;\n}`,
|
|
1941
|
-
`@property ${Bn.authored} {\n syntax: "<length>";\n inherits: false;\n initial-value: 0px;\n}`,
|
|
1942
|
-
`@property ${Bn.fix} {\n syntax: "<length>";\n inherits: false;\n initial-value: 0px;\n}`,
|
|
1934
|
+
}, Bn = `calc(var(${zn.authored}) + var(${zn.fix}))`, Vn = (e, t = " ") => `${t}${zn.authored}: ${Tn(e)}px;`, Hn = (e, t = " ") => `${t}${zn.fix}: ${Tn(e)}px;`, Un = `var(${An.x}) calc(var(${An.y}) + var(${An.lift}))`, Wn = (e, t, n = " ") => `${n}${An.x}: ${Tn(e)}px;\n${n}${An.y}: ${Tn(t)}px;`, Gn = (e, t = " ") => `${t}${An.lift}: ${Tn(-e)}px;`, Kn = `translate3d(var(${kn.x}), var(${kn.y}), 0) scale(var(${kn.scaleX}), var(${kn.scaleY})) rotate(var(${kn.rotate}))`, qn = [
|
|
1943
1935
|
`@property ${An.x} {\n syntax: "<length>";\n inherits: false;\n initial-value: 0px;\n}`,
|
|
1944
1936
|
`@property ${An.y} {\n syntax: "<length>";\n inherits: false;\n initial-value: 0px;\n}`,
|
|
1945
|
-
`@property ${An.
|
|
1946
|
-
`@property ${
|
|
1947
|
-
`@property ${
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1937
|
+
`@property ${An.lift} {\n syntax: "<length>";\n inherits: false;\n initial-value: 0px;\n}`,
|
|
1938
|
+
`@property ${jn.w} {\n syntax: "<length>";\n inherits: false;\n initial-value: 0px;\n}`,
|
|
1939
|
+
`@property ${jn.h} {\n syntax: "<length>";\n inherits: false;\n initial-value: 0px;\n}`,
|
|
1940
|
+
`@property ${zn.authored} {\n syntax: "<length>";\n inherits: false;\n initial-value: 0px;\n}`,
|
|
1941
|
+
`@property ${zn.fix} {\n syntax: "<length>";\n inherits: false;\n initial-value: 0px;\n}`,
|
|
1942
|
+
`@property ${kn.x} {\n syntax: "<length>";\n inherits: false;\n initial-value: 0px;\n}`,
|
|
1943
|
+
`@property ${kn.y} {\n syntax: "<length>";\n inherits: false;\n initial-value: 0px;\n}`,
|
|
1944
|
+
`@property ${kn.scaleX} {\n syntax: "<number>";\n inherits: false;\n initial-value: 1;\n}`,
|
|
1945
|
+
`@property ${kn.scaleY} {\n syntax: "<number>";\n inherits: false;\n initial-value: 1;\n}`,
|
|
1946
|
+
`@property ${kn.rotate} {\n syntax: "<angle>";\n inherits: false;\n initial-value: 0deg;\n}`
|
|
1947
|
+
], Jn = (e, t = " ") => [
|
|
1948
|
+
`${t}${kn.x}: ${Tn(e.x)}px;`,
|
|
1949
|
+
`${t}${kn.y}: ${Tn(e.y)}px;`,
|
|
1950
|
+
`${t}${kn.scaleX}: ${Tn(e.scaleX)};`,
|
|
1951
|
+
`${t}${kn.scaleY}: ${Tn(e.scaleY)};`,
|
|
1952
|
+
`${t}${kn.rotate}: ${Tn(e.rotate)}deg;`
|
|
1953
|
+
].join("\n"), Yn = (e) => ({
|
|
1955
1954
|
x: e.x + e.width / 2,
|
|
1956
1955
|
y: e.y + e.height / 2
|
|
1957
|
-
}),
|
|
1956
|
+
}), Xn = /^(-?[\d.]+)px$/, Zn = (e) => {
|
|
1958
1957
|
if (!e) return null;
|
|
1959
|
-
let t =
|
|
1958
|
+
let t = Xn.exec(e.trim());
|
|
1960
1959
|
if (!t) return null;
|
|
1961
1960
|
let n = Number.parseFloat(t[1]);
|
|
1962
1961
|
return Number.isFinite(n) ? n : null;
|
|
1963
|
-
},
|
|
1962
|
+
}, Qn = 1.35, $n = 1.6, er = (e, t, n) => {
|
|
1964
1963
|
if (e <= 0) return !1;
|
|
1965
|
-
let r = t ?? (n === null ? null : n *
|
|
1966
|
-
return r === null || r <= 0 ? !1 : e <= r *
|
|
1967
|
-
},
|
|
1964
|
+
let r = t ?? (n === null ? null : n * Qn);
|
|
1965
|
+
return r === null || r <= 0 ? !1 : e <= r * $n;
|
|
1966
|
+
}, tr = /* @__PURE__ */ new Map(), nr = () => typeof document > "u" ? "" : document.fonts?.status ?? "", rr = (e) => [
|
|
1968
1967
|
e.fontFamily,
|
|
1969
1968
|
e.fontSize,
|
|
1970
1969
|
e.fontWeight,
|
|
1971
1970
|
e.fontStyle,
|
|
1972
1971
|
e.lineHeight,
|
|
1973
|
-
|
|
1974
|
-
].join("|"),
|
|
1972
|
+
nr()
|
|
1973
|
+
].join("|"), ir = (e, t, n) => {
|
|
1975
1974
|
if (!t || e.firstElementChild !== null) return null;
|
|
1976
1975
|
let r = e.firstChild;
|
|
1977
1976
|
if (!r || r.nodeType !== 3) return null;
|
|
1978
|
-
let i =
|
|
1977
|
+
let i = rr(t), a = tr.get(i);
|
|
1979
1978
|
if (a !== void 0) return a;
|
|
1980
1979
|
/* v8 ignore next -- SSR; a jsdom host is covered through the range it does
|
|
1981
1980
|
give, which carries no rects. */
|
|
@@ -1991,31 +1990,31 @@ var on = (e) => e !== "" && e !== "visible", sn = (e) => {
|
|
|
1991
1990
|
height: c.height,
|
|
1992
1991
|
offset: c.top - n.y
|
|
1993
1992
|
};
|
|
1994
|
-
return
|
|
1995
|
-
},
|
|
1996
|
-
let t = e.getBoundingClientRect(), n = typeof getComputedStyle == "function" ? getComputedStyle(e) : null, r = n ? Number.parseFloat(n.fontSize) : NaN, i = n ? Number.parseFloat(n.fontWeight) : NaN, a = n?.aspectRatio, o =
|
|
1993
|
+
return tr.set(i, u), u;
|
|
1994
|
+
}, ar = (e, t, n, r) => e.firstElementChild === null && er(t.height, n, r), or = (e) => {
|
|
1995
|
+
let t = e.getBoundingClientRect(), n = typeof getComputedStyle == "function" ? getComputedStyle(e) : null, r = n ? Number.parseFloat(n.fontSize) : NaN, i = n ? Number.parseFloat(n.fontWeight) : NaN, a = n?.aspectRatio, o = Zn(n?.lineHeight), s = {
|
|
1997
1996
|
x: t.left,
|
|
1998
1997
|
y: t.top,
|
|
1999
1998
|
width: t.width,
|
|
2000
1999
|
height: t.height
|
|
2001
|
-
}, c =
|
|
2000
|
+
}, c = ir(e, n, s), l = (e) => n ? `${n[`${e}Top`]} ${n[`${e}Right`]} ${n[`${e}Bottom`]} ${n[`${e}Left`]}` : "0px 0px 0px 0px";
|
|
2002
2001
|
return {
|
|
2003
2002
|
rect: s,
|
|
2004
2003
|
fontSize: Number.isFinite(r) ? r : null,
|
|
2005
2004
|
fontWeight: Number.isFinite(i) ? i : null,
|
|
2006
|
-
letterSpacing:
|
|
2007
|
-
wordSpacing:
|
|
2005
|
+
letterSpacing: Zn(n?.letterSpacing),
|
|
2006
|
+
wordSpacing: Zn(n?.wordSpacing),
|
|
2008
2007
|
lineHeight: o,
|
|
2009
2008
|
aspectRatio: a && a !== "auto" ? a : null,
|
|
2010
2009
|
padding: l("padding"),
|
|
2011
2010
|
margin: l("margin"),
|
|
2012
|
-
paint:
|
|
2013
|
-
singleLine:
|
|
2011
|
+
paint: vn(n),
|
|
2012
|
+
singleLine: ar(e, s, o, Number.isFinite(r) ? r : null),
|
|
2014
2013
|
textHeight: c?.height ?? null,
|
|
2015
2014
|
leadOffset: c?.offset ?? null
|
|
2016
2015
|
};
|
|
2017
|
-
},
|
|
2018
|
-
let r = t.scaleX === 0 ? 1 : t.scaleX, i = t.scaleY === 0 ? 1 : t.scaleY, a =
|
|
2016
|
+
}, sr = (e, t, n) => {
|
|
2017
|
+
let r = t.scaleX === 0 ? 1 : t.scaleX, i = t.scaleY === 0 ? 1 : t.scaleY, a = Yn(e), o = {
|
|
2019
2018
|
x: n.x + (a.x - n.x - t.x) / r,
|
|
2020
2019
|
y: n.y + (a.y - n.y - t.y) / i
|
|
2021
2020
|
}, s = e.width / r, c = e.height / i;
|
|
@@ -2025,9 +2024,9 @@ var on = (e) => e !== "" && e !== "visible", sn = (e) => {
|
|
|
2025
2024
|
width: s,
|
|
2026
2025
|
height: c
|
|
2027
2026
|
};
|
|
2028
|
-
},
|
|
2027
|
+
}, cr = /^matrix\(([^)]+)\)$/, lr = /^translate(?:3d)?\(([^)]+)\)$/, ur = (e) => {
|
|
2029
2028
|
if (typeof getComputedStyle != "function") return { ...Z };
|
|
2030
|
-
let t = (getComputedStyle(e).transform ?? "").trim(), n =
|
|
2029
|
+
let t = (getComputedStyle(e).transform ?? "").trim(), n = lr.exec(t);
|
|
2031
2030
|
if (n) {
|
|
2032
2031
|
let [e, t] = n[1].split(",").map((e) => Number.parseFloat(e));
|
|
2033
2032
|
return {
|
|
@@ -2038,7 +2037,7 @@ var on = (e) => e !== "" && e !== "visible", sn = (e) => {
|
|
|
2038
2037
|
rotate: 0
|
|
2039
2038
|
};
|
|
2040
2039
|
}
|
|
2041
|
-
let r =
|
|
2040
|
+
let r = cr.exec(t);
|
|
2042
2041
|
if (!r) return { ...Z };
|
|
2043
2042
|
let i = r[1].split(",").map((e) => Number.parseFloat(e));
|
|
2044
2043
|
return i.length < 6 || i.some((e) => !Number.isFinite(e)) ? { ...Z } : {
|
|
@@ -2048,15 +2047,15 @@ var on = (e) => e !== "" && e !== "visible", sn = (e) => {
|
|
|
2048
2047
|
scaleY: i[3],
|
|
2049
2048
|
rotate: 0
|
|
2050
2049
|
};
|
|
2051
|
-
},
|
|
2052
|
-
let n =
|
|
2050
|
+
}, dr = (e, t) => {
|
|
2051
|
+
let n = Yn(e);
|
|
2053
2052
|
return {
|
|
2054
2053
|
x: n.x - t.x,
|
|
2055
2054
|
y: n.y - t.y
|
|
2056
2055
|
};
|
|
2057
|
-
},
|
|
2056
|
+
}, fr = (e, t) => {
|
|
2058
2057
|
if (t.width <= 0 || t.height <= 0) return { ...Z };
|
|
2059
|
-
let n =
|
|
2058
|
+
let n = Yn(t), r = Yn(e);
|
|
2060
2059
|
return {
|
|
2061
2060
|
x: r.x - n.x,
|
|
2062
2061
|
y: r.y - n.y,
|
|
@@ -2064,22 +2063,22 @@ var on = (e) => e !== "" && e !== "visible", sn = (e) => {
|
|
|
2064
2063
|
scaleY: e.height / t.height,
|
|
2065
2064
|
rotate: 0
|
|
2066
2065
|
};
|
|
2067
|
-
},
|
|
2066
|
+
}, pr = "--flemo-ride-y", mr = /^\s*(-?\d*\.?\d+)%\s*$/, hr = (e) => {
|
|
2068
2067
|
if (typeof e != "string") return null;
|
|
2069
|
-
let t =
|
|
2068
|
+
let t = mr.exec(e);
|
|
2070
2069
|
if (!t) return null;
|
|
2071
2070
|
let n = Number(t[1]) / 100;
|
|
2072
2071
|
return Number.isFinite(n) ? n : null;
|
|
2073
|
-
},
|
|
2074
|
-
let t = `var(${
|
|
2072
|
+
}, gr = (e) => {
|
|
2073
|
+
let t = `var(${pr}, 100%)`;
|
|
2075
2074
|
return e === 1 ? t : e === -1 ? `calc(${t} * -1)` : `calc(${t} * ${e})`;
|
|
2076
|
-
},
|
|
2077
|
-
let n =
|
|
2075
|
+
}, _r = (e, t) => {
|
|
2076
|
+
let n = hr(e.y);
|
|
2078
2077
|
return n === null || !(t > 0) ? e : {
|
|
2079
2078
|
...e,
|
|
2080
2079
|
y: `${t * n}px`
|
|
2081
2080
|
};
|
|
2082
|
-
},
|
|
2081
|
+
}, vr = Le, yr = "translateZ(0.02px)", br = "0.004", xr = (e) => e.replace(/[^a-zA-Z0-9_-]/g, "_"), Sr = (e) => typeof e == "object" && !!e && !Array.isArray(e), Cr = /* @__PURE__ */ new Set(/* @__PURE__ */ "opacity.scale.scaleX.scaleY.scaleZ.aspectRatio.columnCount.columns.flex.flexGrow.flexShrink.fontWeight.gridArea.gridColumn.gridColumnEnd.gridColumnStart.gridRow.gridRowEnd.gridRowStart.lineHeight.lineClamp.order.orphans.tabSize.widows.zIndex.zoom.fillOpacity.floodOpacity.stopOpacity.strokeOpacity.strokeDasharray.strokeDashoffset.strokeMiterlimit.strokeWidth".split(".")), wr = (e, t) => t.startsWith("--") || Cr.has(t) ? `${e}` : t === "rotate" || t === "rotateX" || t === "rotateY" || t === "rotateZ" ? `${e}deg` : `${e}px`, Tr = (e, t) => typeof t == "number" ? wr(t, e) : typeof t == "string" ? t : "", Er = (e) => e.replace(/[A-Z]/g, (e) => `-${e.toLowerCase()}`), Dr = /* @__PURE__ */ new Set([
|
|
2083
2082
|
"x",
|
|
2084
2083
|
"y",
|
|
2085
2084
|
"z",
|
|
@@ -2090,10 +2089,10 @@ var on = (e) => e !== "" && e !== "visible", sn = (e) => {
|
|
|
2090
2089
|
"rotateX",
|
|
2091
2090
|
"rotateY",
|
|
2092
2091
|
"rotateZ"
|
|
2093
|
-
]),
|
|
2092
|
+
]), Or = /^-?0(\.0+)?(px|%|em|rem|vh|vw|vmin|vmax)?$/, kr = /^-?0(\.0+)?(deg|rad|grad|turn)?$/, Ar = /^1(\.0+)?$/, jr = (e, t) => e === "scale" || e === "scaleX" || e === "scaleY" ? t === 1 || typeof t == "string" && Ar.test(t.trim()) : e === "rotate" || e === "rotateX" || e === "rotateY" || e === "rotateZ" ? t === 0 || typeof t == "string" && kr.test(t.trim()) : t === 0 || typeof t == "string" && Or.test(t.trim()), Mr = (e, t, n) => {
|
|
2094
2093
|
if (n && e === "y") {
|
|
2095
|
-
let n =
|
|
2096
|
-
if (n !== null) return
|
|
2094
|
+
let n = hr(t);
|
|
2095
|
+
if (n !== null) return Mr(e, gr(n), !1);
|
|
2097
2096
|
}
|
|
2098
2097
|
switch (e) {
|
|
2099
2098
|
case "x": return `translate3d(${t}, 0, 0)`;
|
|
@@ -2108,17 +2107,17 @@ var on = (e) => e !== "" && e !== "visible", sn = (e) => {
|
|
|
2108
2107
|
case "rotateY": return `rotateY(${t})`;
|
|
2109
2108
|
default: return "";
|
|
2110
2109
|
}
|
|
2111
|
-
},
|
|
2110
|
+
}, Nr = (e) => {
|
|
2112
2111
|
let t = /* @__PURE__ */ new Map(), n = !1, r = /* @__PURE__ */ new Set(), i = (e) => {
|
|
2113
|
-
if (!
|
|
2112
|
+
if (!Sr(e)) return;
|
|
2114
2113
|
let n = [];
|
|
2115
2114
|
for (let r of Object.keys(e)) {
|
|
2116
|
-
let i = e[r], a =
|
|
2115
|
+
let i = e[r], a = Tr(r, i);
|
|
2117
2116
|
if (a !== "") {
|
|
2118
|
-
if (
|
|
2117
|
+
if (Dr.has(r)) n.push(`${r}:${a}`);
|
|
2119
2118
|
else {
|
|
2120
|
-
let e = t.get(
|
|
2121
|
-
e.add(a), t.set(
|
|
2119
|
+
let e = t.get(Er(r)) ?? /* @__PURE__ */ new Set();
|
|
2120
|
+
e.add(a), t.set(Er(r), e);
|
|
2122
2121
|
}
|
|
2123
2122
|
}
|
|
2124
2123
|
}
|
|
@@ -2129,13 +2128,13 @@ var on = (e) => e !== "" && e !== "visible", sn = (e) => {
|
|
|
2129
2128
|
n = r.size > 1;
|
|
2130
2129
|
let a = Array.from(t.entries()).filter(([, e]) => e.size > 1).map(([e]) => e);
|
|
2131
2130
|
return n && a.push("transform"), a;
|
|
2132
|
-
},
|
|
2133
|
-
if (!
|
|
2131
|
+
}, Pr = (e, t = !1) => {
|
|
2132
|
+
if (!Sr(e)) return [];
|
|
2134
2133
|
let n = [], r = !0, i = [];
|
|
2135
2134
|
for (let a of Object.keys(e)) {
|
|
2136
|
-
let o = e[a], s =
|
|
2137
|
-
s !== "" && (
|
|
2138
|
-
property:
|
|
2135
|
+
let o = e[a], s = Tr(a, o);
|
|
2136
|
+
s !== "" && (Dr.has(a) ? (n.push(Mr(a, s, t)), jr(a, o) || (r = !1)) : i.push({
|
|
2137
|
+
property: Er(a),
|
|
2139
2138
|
value: s
|
|
2140
2139
|
}));
|
|
2141
2140
|
}
|
|
@@ -2143,11 +2142,11 @@ var on = (e) => e !== "" && e !== "visible", sn = (e) => {
|
|
|
2143
2142
|
property: "transform",
|
|
2144
2143
|
value: r ? "none" : n.join(" ")
|
|
2145
2144
|
}), i;
|
|
2146
|
-
}, Q = (e) => e.map((e) => ` ${e.property}: ${e.value};`).join("\n"),
|
|
2145
|
+
}, Q = (e) => e.map((e) => ` ${e.property}: ${e.value};`).join("\n"), Fr = (e, t) => {
|
|
2147
2146
|
let n = new Map(e.map((e) => [e.property, e.value])), r = new Map(t.map((e) => [e.property, e.value]));
|
|
2148
2147
|
for (let e of /* @__PURE__ */ new Set([...n.keys(), ...r.keys()])) if (n.get(e) !== r.get(e)) return !0;
|
|
2149
2148
|
return !1;
|
|
2150
|
-
},
|
|
2149
|
+
}, Ir = (e) => Array.isArray(e) ? e.length === 4 && e.every((e) => typeof e == "number") ? `cubic-bezier(${e.join(", ")})` : "linear" : typeof e == "string" ? {
|
|
2151
2150
|
linear: "linear",
|
|
2152
2151
|
easeIn: "ease-in",
|
|
2153
2152
|
easeOut: "ease-out",
|
|
@@ -2157,22 +2156,22 @@ var on = (e) => e !== "" && e !== "visible", sn = (e) => {
|
|
|
2157
2156
|
backIn: "cubic-bezier(0.31, 0.01, 0.66, -0.59)",
|
|
2158
2157
|
backOut: "cubic-bezier(0.33, 1.53, 0.69, 0.99)",
|
|
2159
2158
|
anticipate: "cubic-bezier(0.36, 0, 0.66, -0.56)"
|
|
2160
|
-
}[e] ?? "ease" : "ease",
|
|
2159
|
+
}[e] ?? "ease" : "ease", Lr = (e, t) => {
|
|
2161
2160
|
let [n, r] = t.split("-");
|
|
2162
2161
|
return Y(at) + X(ct, e) + X(ot, n) + X(st, r);
|
|
2163
|
-
},
|
|
2162
|
+
}, Rr = (e, t, n) => {
|
|
2164
2163
|
let [r, i] = n.split("-");
|
|
2165
2164
|
return Y(yt) + X(bt, t) + X(ct, e) + X(ot, r) + X(st, i);
|
|
2166
|
-
},
|
|
2165
|
+
}, zr = (e, t) => {
|
|
2167
2166
|
let [n, r] = t.split("-");
|
|
2168
2167
|
return Y(dt) + X(_t, e) + X(pt, n) + X(ft, r) + X(mt, "true");
|
|
2169
|
-
},
|
|
2168
|
+
}, Br = (e, t, n) => {
|
|
2170
2169
|
let [r, i] = n.split("-");
|
|
2171
2170
|
return Y(e) + X(ct, t) + X(ot, r) + X(st, i);
|
|
2172
|
-
},
|
|
2171
|
+
}, Vr = (e, t) => {
|
|
2173
2172
|
let [n, r] = t.split("-");
|
|
2174
2173
|
return X(q, e) + X(ot, n) + X(st, r);
|
|
2175
|
-
},
|
|
2174
|
+
}, Hr = (e, t, n) => X(ct, e) + Vr(t, n), Ur = (e) => {
|
|
2176
2175
|
let t = /* @__PURE__ */ new Set(), n = "", r = 0;
|
|
2177
2176
|
for (; r < e.length;) {
|
|
2178
2177
|
let i = e.indexOf("@keyframes", r);
|
|
@@ -2198,26 +2197,26 @@ var on = (e) => e !== "" && e !== "visible", sn = (e) => {
|
|
|
2198
2197
|
n += e.slice(r, i), t.has(c) ? n = n.replace(/\n{2,}$/, "\n\n") : (t.add(c), n += c), r = s + 1;
|
|
2199
2198
|
}
|
|
2200
2199
|
return n;
|
|
2201
|
-
},
|
|
2200
|
+
}, Wr = (e, t, n) => `flemo-${e}-${xr(t)}-${n}`, Gr = (e, t, n) => Wr("decorator", `${e}--${t}`, n), Kr = {
|
|
2202
2201
|
governed: "gov",
|
|
2203
2202
|
desktop: "deskhead",
|
|
2204
2203
|
creep: "govcreep",
|
|
2205
2204
|
governedPark: "govpark",
|
|
2206
2205
|
desktopPark: "deskpark"
|
|
2207
|
-
},
|
|
2208
|
-
let o =
|
|
2206
|
+
}, qr = Object.values(Kr).map((e) => `-${e}`), Jr = (e, t) => e === t || qr.some((n) => e === `${t}${n}`), Yr = (e, t, n, r, i, a) => {
|
|
2207
|
+
let o = Pr(r), s = Pr(i.value), c = new Set(o.filter((e) => s.some((t) => t.property === e.property && t.value === e.value)).map((e) => e.property)), l = o.filter((e) => c.has(e.property)), u = o.filter((e) => !c.has(e.property)), d = s.filter((e) => !c.has(e.property)), f = Re(i.options), p = ze(i.options), m = Ir(i.options?.ease), h = Pr(r, !0), g = Pr(i.value, !0), _ = h.filter((e) => !c.has(e.property)), v = g.filter((e) => !c.has(e.property)), y = (e, t) => Q(e) !== Q(t), b = e === "screen" && (y(h, o) || y(g, s)), x = a(t, n), S = zr(t, n), C = e === "screen" ? [
|
|
2209
2208
|
x,
|
|
2210
2209
|
...b ? [] : [S],
|
|
2211
|
-
|
|
2212
|
-
|
|
2210
|
+
Br(St, t, n),
|
|
2211
|
+
Br(Ct, t, n)
|
|
2213
2212
|
].join(",\n") : x;
|
|
2214
2213
|
if (s.length === 0 && o.length === 0) return "";
|
|
2215
|
-
if (!
|
|
2214
|
+
if (!Fr(o, s) || f <= 0 && p <= 0) {
|
|
2216
2215
|
if (s.length === 0) return "";
|
|
2217
2216
|
let e = `${C} {\n${Q(s)}\n animation: none;\n}`;
|
|
2218
2217
|
return b ? `${e}\n${S} {\n${Q(g)}\n animation: none;\n}` : e;
|
|
2219
2218
|
}
|
|
2220
|
-
let w =
|
|
2219
|
+
let w = Wr(e, t, n), T = {
|
|
2221
2220
|
selector: C,
|
|
2222
2221
|
keyframe: w,
|
|
2223
2222
|
fromDecls: u,
|
|
@@ -2257,36 +2256,36 @@ var on = (e) => e !== "" && e !== "visible", sn = (e) => {
|
|
|
2257
2256
|
let e = t.fromDecls.find((e) => e.property === "transform");
|
|
2258
2257
|
if (!e) return [...t.fromDecls, {
|
|
2259
2258
|
property: "transform",
|
|
2260
|
-
value:
|
|
2259
|
+
value: yr
|
|
2261
2260
|
}];
|
|
2262
2261
|
let n = e.value === "none" ? "" : `${e.value} `;
|
|
2263
2262
|
return t.fromDecls.map((e) => e.property === "transform" ? {
|
|
2264
2263
|
property: "transform",
|
|
2265
|
-
value: `${n}${
|
|
2264
|
+
value: `${n}${yr}`
|
|
2266
2265
|
} : e);
|
|
2267
|
-
})(), a = f + r, c = (r / a * 100).toFixed(3), l = `${t.keyframe}-${
|
|
2266
|
+
})(), a = f + r, c = (r / a * 100).toFixed(3), l = `${t.keyframe}-${Kr.creep}`, u = t.selector.split(",\n").map((e) => `:root${Y(Ht)}${Y(Ut)} ${e}`).join(",\n");
|
|
2268
2267
|
return `\n@keyframes ${l} {\n 0% {\n${Q(t.fromDecls).replace(/^/gm, " ")}\n }\n ${c}% {\n${Q(i).replace(/^/gm, " ")}\n }\n 100% {\n${Q(t.toDecls).replace(/^/gm, " ")}\n }\n}\n${u} {\n animation-name: ${l};\n animation-duration: ${a.toFixed(3)}s;\n animation-delay: ${(ee ? p + r : p).toFixed(3)}s;\n}`;
|
|
2269
|
-
}, P = (e = T) => M(Ht,
|
|
2268
|
+
}, P = (e = T) => M(Ht, Kr.governed, N(n), ee, e) + te(e) + M(Wt, Kr.desktop, j(n), !1, e), ne = new Map(u.map((e) => [e.property, e.value])), F = new Map(d.map((e) => [e.property, e.value])), re = Array.from(/* @__PURE__ */ new Set([...ne.keys(), ...F.keys()])).filter((e) => ne.get(e) !== F.get(e)), I = e !== "part" && re.length > 0 ? ` will-change: ${re.join(", ")};\n` : "", L = n.split("-")[0], R = L === "PUSHING" || L === "REPLACING" ? " contain: layout;\n" : "", z = l.length > 0 ? `${Q(l)}\n` : "", ie = (e = T) => `${e.selector} {\n animation: ${k(e.keyframe)};\n${z}${I}${R}}`, B = e === "screen" && Xr(r) && s.length > 0, V = B && n.endsWith("-false"), H = B && n.endsWith("-true") && (L === "PUSHING" || L === "REPLACING"), U = V ? `\n${x}${X(J, Rt.PARK)} {\n animation: none;\n${Q(s)}\n}` : "", ae = H ? `\n${x}${X(J, Rt.PARK_UNDER)} {\n animation: none;\n${Q(s)}\n}` : "", oe = H ? `\n${x}${X(J, Rt.PARK_OVER)} {\n animation: none;\n${Q(s)}\n opacity: ${br};\n}` : "", W = (e, t, n, r) => {
|
|
2270
2269
|
/* v8 ignore next -- every parking variant is a PUSHING/REPLACING/POPPING
|
|
2271
2270
|
screen, so it has both a head and a duration; the guard mirrors
|
|
2272
2271
|
headBlock's so a future caller cannot walk into a malformed keyframe. */
|
|
2273
2272
|
if (!V && !H || n <= 0 || f <= 0) return "";
|
|
2274
|
-
let i = f + n, a = n / i * 100, o = Math.min(.05, a / 4), s = `${w}-${t}`, c = H ? ` opacity: ${
|
|
2273
|
+
let i = f + n, a = n / i * 100, o = Math.min(.05, a / 4), s = `${w}-${t}`, c = H ? ` opacity: ${br};` : "", l = [...u, ...d].some((e) => e.property === "opacity"), m = H && !l ? " opacity: 1;" : "", h = (e, t, n) => {
|
|
2275
2274
|
let r = n ? t.filter((e) => e.property !== "opacity") : t, i = [...r.length > 0 ? [Q(r).replace(/^/gm, " ")] : [], ...n ? [n] : []];
|
|
2276
2275
|
return ` ${e.toFixed(3)}% {\n${i.join("\n")}\n }`;
|
|
2277
2276
|
};
|
|
2278
2277
|
return `\n@keyframes ${s} {\n${h(0, d, c)}\n${h(a - o, d, c)}\n${h(a, u, c)}\n` + (H ? `${h(a + o, u, m)}\n` : "") + `${h(100, d, m)}\n}\n:root${Y(e)} ${x}${X(Gt, "true")} {\n animation-name: ${s};\n animation-duration: ${i.toFixed(3)}s;\n animation-delay: ${(r ? p + n : p).toFixed(3)}s;\n` + (H ? ` will-change: ${[.../* @__PURE__ */ new Set([...re, "opacity"])].join(", ")};\n` : "") + "}";
|
|
2279
|
-
},
|
|
2280
|
-
return `${O}\n${ie()}${P()}${
|
|
2281
|
-
},
|
|
2278
|
+
}, G = () => W(Ht, Kr.governedPark, A(n), ee) + W(Wt, Kr.desktopPark, j(n), !1), se = b ? `\n${D(E)}\n${ie(E)}${P(E)}` : "";
|
|
2279
|
+
return `${O}\n${ie()}${P()}${G()}${U}${ae}${oe}${se}`;
|
|
2280
|
+
}, Xr = (e) => {
|
|
2282
2281
|
if (!e) return !1;
|
|
2283
2282
|
if (e.opacity === 0) return !0;
|
|
2284
2283
|
let t = (e) => typeof e == "string" && e.trim().endsWith("%") && Math.abs(parseFloat(e)) >= 100;
|
|
2285
2284
|
return t(e.x) || t(e.y);
|
|
2286
|
-
},
|
|
2287
|
-
let i =
|
|
2285
|
+
}, Zr = (e, t, n, r) => {
|
|
2286
|
+
let i = Pr(r.value);
|
|
2288
2287
|
return i.length === 0 ? "" : `${e(t, n)} {\n${Q(i)}\n}`;
|
|
2289
|
-
},
|
|
2288
|
+
}, Qr = (e, t, n = []) => {
|
|
2290
2289
|
let r = [], i = [...e], a = /* @__PURE__ */ new Map();
|
|
2291
2290
|
for (let e of t) a.set(e.name, e);
|
|
2292
2291
|
for (let e of i) {
|
|
@@ -2294,61 +2293,61 @@ var on = (e) => e !== "" && e !== "visible", sn = (e) => {
|
|
|
2294
2293
|
for (let n of Le) {
|
|
2295
2294
|
let i = e.variants[n], a = Ie[n];
|
|
2296
2295
|
if (a === "self") {
|
|
2297
|
-
r.push(
|
|
2296
|
+
r.push(Zr(Lr, t, n, i));
|
|
2298
2297
|
continue;
|
|
2299
2298
|
}
|
|
2300
2299
|
let o = a === "initial" ? e.initial : e.variants[a].value;
|
|
2301
|
-
r.push(
|
|
2300
|
+
r.push(Yr("screen", t, n, o, i, Lr));
|
|
2302
2301
|
}
|
|
2303
2302
|
}
|
|
2304
2303
|
for (let e of i) {
|
|
2305
2304
|
if (!e.decoratorName) continue;
|
|
2306
2305
|
let t = a.get(e.decoratorName);
|
|
2307
2306
|
if (!t) continue;
|
|
2308
|
-
let n = Ve(e, t), i = `${e.name}--${t.name}`, o = (n, r) =>
|
|
2309
|
-
for (let e of
|
|
2307
|
+
let n = Ve(e, t), i = `${e.name}--${t.name}`, o = (n, r) => Rr(e.name, t.name, r);
|
|
2308
|
+
for (let e of vr) {
|
|
2310
2309
|
let t = n.variants[e], a = Ie[e];
|
|
2311
2310
|
if (a === "self") {
|
|
2312
|
-
r.push(
|
|
2311
|
+
r.push(Zr(o, i, e, t));
|
|
2313
2312
|
continue;
|
|
2314
2313
|
}
|
|
2315
2314
|
let s = a === "initial" ? n.initial : n.variants[a].value;
|
|
2316
|
-
r.push(
|
|
2315
|
+
r.push(Yr("decorator", i, e, s, t, o));
|
|
2317
2316
|
}
|
|
2318
2317
|
}
|
|
2319
2318
|
let o = [...n], s = /* @__PURE__ */ new Map();
|
|
2320
2319
|
for (let e of o) {
|
|
2321
2320
|
let t = e.name, n = We(null, e);
|
|
2322
2321
|
s.set(t, n);
|
|
2323
|
-
for (let e of
|
|
2322
|
+
for (let e of vr) {
|
|
2324
2323
|
let i = n.variants[e], a = Ie[e];
|
|
2325
2324
|
if (a === "self") {
|
|
2326
|
-
r.push(
|
|
2325
|
+
r.push(Zr(Vr, t, e, i));
|
|
2327
2326
|
continue;
|
|
2328
2327
|
}
|
|
2329
2328
|
let o = a === "initial" ? n.initial : n.variants[a].value;
|
|
2330
|
-
r.push(
|
|
2329
|
+
r.push(Yr("part", t, e, o, i, Vr));
|
|
2331
2330
|
}
|
|
2332
2331
|
}
|
|
2333
2332
|
for (let e of i) for (let t of o) {
|
|
2334
|
-
let n = We(e, t), i = s.get(t.name), a = (n, r) =>
|
|
2335
|
-
for (let e of
|
|
2333
|
+
let n = We(e, t), i = s.get(t.name), a = (n, r) => Hr(e.name, t.name, r);
|
|
2334
|
+
for (let e of vr) {
|
|
2336
2335
|
let o = n.variants[e], s = Ie[e], c = i?.variants[e];
|
|
2337
2336
|
if (c && c.options?.duration === o.options?.duration && c.options?.delay === o.options?.delay) continue;
|
|
2338
2337
|
if (s === "self") {
|
|
2339
|
-
r.push(
|
|
2338
|
+
r.push(Zr(a, t.name, e, o));
|
|
2340
2339
|
continue;
|
|
2341
2340
|
}
|
|
2342
2341
|
let l = s === "initial" ? n.initial : n.variants[s].value;
|
|
2343
|
-
r.push(
|
|
2342
|
+
r.push(Yr("part", t.name, e, l, o, a));
|
|
2344
2343
|
}
|
|
2345
2344
|
}
|
|
2346
|
-
return
|
|
2345
|
+
return Ur([
|
|
2347
2346
|
...r.filter((e) => e.length > 0),
|
|
2348
|
-
|
|
2349
|
-
|
|
2347
|
+
$r,
|
|
2348
|
+
ei
|
|
2350
2349
|
].join("\n\n"));
|
|
2351
|
-
},
|
|
2350
|
+
}, $r = [
|
|
2352
2351
|
[...zt.map((e) => X(J, e)), ...zt.flatMap((e) => [
|
|
2353
2352
|
`${X(J, e)} ${Y(q)}`,
|
|
2354
2353
|
`${X(J, e)} ${Y(Ot)}`,
|
|
@@ -2356,30 +2355,30 @@ var on = (e) => e !== "" && e !== "visible", sn = (e) => {
|
|
|
2356
2355
|
])].join(",\n") + " {",
|
|
2357
2356
|
" animation-play-state: paused !important;",
|
|
2358
2357
|
"}"
|
|
2359
|
-
].join("\n"),
|
|
2358
|
+
].join("\n"), ei = [
|
|
2360
2359
|
`${Y(Bt)} {`,
|
|
2361
2360
|
" display: none !important;",
|
|
2362
2361
|
"}"
|
|
2363
|
-
].join("\n"),
|
|
2362
|
+
].join("\n"), ti = (e, t) => {
|
|
2364
2363
|
let n = Ie[t];
|
|
2365
2364
|
if (n === "self") return !1;
|
|
2366
2365
|
let r = e.variants[t], i = Re(r.options), a = ze(r.options);
|
|
2367
|
-
return i <= 0 && a <= 0 ? !1 :
|
|
2368
|
-
},
|
|
2366
|
+
return i <= 0 && a <= 0 ? !1 : Fr(Pr(n === "initial" ? e.initial : e.variants[n].value), Pr(r.value));
|
|
2367
|
+
}, ni = {
|
|
2369
2368
|
REPLACING: 33,
|
|
2370
2369
|
PUSHING: 33,
|
|
2371
2370
|
POPPING: 17
|
|
2372
|
-
},
|
|
2371
|
+
}, ri = {
|
|
2373
2372
|
REPLACING: 180,
|
|
2374
2373
|
PUSHING: 100,
|
|
2375
2374
|
POPPING: 80
|
|
2376
|
-
},
|
|
2377
|
-
let { id: t, travel: n, fade: r, paint: i, box: a, fontSize: o, fontWeight: s, letterSpacing: c, wordSpacing: l, lineHeight: u, aspectRatio: d, padding: f, margin: p, size: m, clip: h, contentsHold: g = !1, radius: _, leading: v, leadStart: y, lift: b, track: x, pinned: S = !1, travelPinned: C = !1 } = e, w = [], T = [], E =
|
|
2375
|
+
}, ii = (e) => `${Math.round(e * 100) / 100}px`, ai = (e) => `${Number.parseFloat(e.toFixed(6)).toString()}px`, oi = (e) => `inset(${e.top.toFixed(2)}% ${e.right.toFixed(2)}% ${e.bottom.toFixed(2)}% ${e.left.toFixed(2)}%)`, si = (e, t, n) => `${t ? "" : ` left: ${ii(e.x)};\n top: ${ii(e.y)};\n`}${n ? Rn(e.width, e.height) : ` width: ${ii(e.width)};\n height: ${ii(e.height)};`}`, ci = (e) => e.map((e) => ` ${e.property}: ${e.value};`).join("\n"), li = (e) => Pr(e ?? {}).filter((e) => e.property !== "transform"), ui = (e) => {
|
|
2376
|
+
let { id: t, travel: n, fade: r, paint: i, box: a, fontSize: o, fontWeight: s, letterSpacing: c, wordSpacing: l, lineHeight: u, aspectRatio: d, padding: f, margin: p, size: m, clip: h, contentsHold: g = !1, radius: _, leading: v, leadStart: y, lift: b, track: x, pinned: S = !1, travelPinned: C = !1 } = e, w = [], T = [], E = Ir(n.ease), D = Math.max(0, Math.min(n.head ?? 0, n.start)), O = n.duration + D, k = D > 0 ? D / O * 100 : 0, A = `${O.toFixed(3)}s`, j = (n.start - D).toFixed(3), M = (e) => D > 0 ? k + e / 100 * (n.duration / O) * 100 : e, ee = O > 0 ? Math.max(0, 100 - 1 / 60 * 100 / O) : 100, N = (e, t, n) => {
|
|
2378
2377
|
let r = ee >= 99.999 ? ` 100% {\n${n}\n }` : ` ${ee.toFixed(3)}%, 100% {\n${n}\n }`;
|
|
2379
2378
|
return D > 0 ? `@keyframes ${e} {\n 0%, ${k.toFixed(3)}% {\n${t}\n }\n${r}\n}` : `@keyframes ${e} {\n 0% {\n${t}\n }\n${r}\n}`;
|
|
2380
2379
|
}, te = `flemo-morph-${t}-travel`, P = [], ne = [], F = v && v.length > 1 ? v : null, re = !!(a || o || s || c || l || u || d || f || p || m || h), I = (e, t) => {
|
|
2381
2380
|
P.push(e), ne.push(t);
|
|
2382
|
-
}, L = null, R =
|
|
2381
|
+
}, L = null, R = Dn([n.from, n.authoredFrom]), z = Dn([n.to ?? Z, n.authoredTo]), ie = R.length <= 1 && z.length <= 1, B = C && ie, V = B && F && b && b.length > 1 ? b : null, H = C && x && x.length > 1 ? x : null, U = !!a && (B || !!H), ae = (e, t) => Math.abs(e - t) < .05, oe = !!(a && ie && !R[0] && !z[0] && ae(a.from.x + a.from.width, a.to.x + a.to.width) && !ae(a.from.x, a.to.x)), W = (e, t) => Math.abs(e - t) < .05, G = a && g && B && !h && !(W(a.from.width, a.to.width) && W(a.from.height, a.to.height)) ? (() => {
|
|
2383
2382
|
let e = Math.max(a.from.width, a.to.width), t = Math.max(a.from.height, a.to.height), n = (n) => {
|
|
2384
2383
|
let r = ((e - n.width) / e * 100).toFixed(3), i = ((t - n.height) / t * 100).toFixed(3);
|
|
2385
2384
|
return `0% ${oe ? "0.000" : r}% ${i}% ${oe ? r : "0.000"}%`;
|
|
@@ -2407,31 +2406,31 @@ var on = (e) => e !== "" && e !== "visible", sn = (e) => {
|
|
|
2407
2406
|
};
|
|
2408
2407
|
F && y && (t.from += y);
|
|
2409
2408
|
let n = e("from", R, t.from), r = e("to", z, t.to);
|
|
2410
|
-
P.push(
|
|
2409
|
+
P.push(Wn(n.x, n.y)), ne.push(Wn(r.x, r.y));
|
|
2411
2410
|
}
|
|
2412
2411
|
if (a) {
|
|
2413
|
-
let e =
|
|
2412
|
+
let e = G ? {
|
|
2414
2413
|
...a.to,
|
|
2415
|
-
width:
|
|
2416
|
-
height:
|
|
2414
|
+
width: G.width,
|
|
2415
|
+
height: G.height
|
|
2417
2416
|
} : null;
|
|
2418
|
-
P.push(
|
|
2417
|
+
P.push(si(e ?? a.from, B, U)), ne.push(si(e ?? a.to, B, U));
|
|
2419
2418
|
}
|
|
2420
|
-
let
|
|
2419
|
+
let se = S && !re && ie, ce = (e) => B ? e.map((e) => ({
|
|
2421
2420
|
...e,
|
|
2422
2421
|
x: 0,
|
|
2423
2422
|
y: 0
|
|
2424
|
-
})) : e,
|
|
2425
|
-
if ((
|
|
2426
|
-
else if (
|
|
2423
|
+
})) : e, le = On(ce(R)), ue = On(ce(z)), de = null;
|
|
2424
|
+
if ((le !== "none" || ue !== "none") && (se ? (de = Kn, P.push(Jn(ce(R)[0] ?? Z)), ne.push(Jn(ce(z)[0] ?? Z))) : (P.push(` transform: ${le};`), ne.push(` transform: ${ue};`))), o && I(` font-size: ${ai(o.from)};`, ` font-size: ${ai(o.to)};`), s && I(` font-weight: ${Math.round(s.from)};`, ` font-weight: ${Math.round(s.to)};`), H ? I(Vn(c ? c.from : 0), Vn(c ? c.to : 0)) : c && I(` letter-spacing: ${ii(c.from)};`, ` letter-spacing: ${ii(c.to)};`), l && I(` word-spacing: ${ii(l.from)};`, ` word-spacing: ${ii(l.to)};`), u && !F && I(` line-height: ${ai(u.from)};`, ` line-height: ${ai(u.to)};`), d && I(` aspect-ratio: ${d.from};`, ` aspect-ratio: ${d.to};`), f && I(` padding: ${f.from};`, ` padding: ${f.to};`), p && I(` margin: ${p.from};`, ` margin: ${p.to};`), m && (I(` width: ${ii(m.from.width)};`, ` width: ${ii(m.to.width)};`), I(` height: ${ii(m.from.height)};`, ` height: ${ii(m.to.height)};`)), h) I(` clip-path: ${oi(h.from)};`, ` clip-path: ${oi(h.to)};`);
|
|
2425
|
+
else if (G) {
|
|
2427
2426
|
let e = _ && _ !== "0px" ? ` round ${_}` : "";
|
|
2428
|
-
I(` clip-path: inset(${
|
|
2427
|
+
I(` clip-path: inset(${G.from}${e});`, ` clip-path: inset(${G.to}${e});`);
|
|
2429
2428
|
}
|
|
2430
2429
|
if (P.length > 0 && (w.push(N(te, P.join("\n"), ne.join("\n"))), T.push(`${te} ${A} ${E} ${j}s both`), L = te), r && r.duration > 0) {
|
|
2431
|
-
let e =
|
|
2430
|
+
let e = li(r.from), i = li(r.to);
|
|
2432
2431
|
if (e.length > 0 || i.length > 0) {
|
|
2433
2432
|
let a = `flemo-morph-${t}-fade`;
|
|
2434
|
-
w.push(`@keyframes ${a} {\n from {\n${
|
|
2433
|
+
w.push(`@keyframes ${a} {\n from {\n${ci(e)}\n }\n to {\n${ci(i)}\n }\n}`);
|
|
2435
2434
|
let o = (n.start + (r.delay ?? 0)).toFixed(3);
|
|
2436
2435
|
T.push(`${a} ${r.duration.toFixed(3)}s ${r.easing ?? E} ${o}s both`);
|
|
2437
2436
|
}
|
|
@@ -2443,15 +2442,15 @@ var on = (e) => e !== "" && e !== "visible", sn = (e) => {
|
|
|
2443
2442
|
} : {
|
|
2444
2443
|
...e,
|
|
2445
2444
|
at: M(e.at)
|
|
2446
|
-
}).map((e) => ` ${e.at.toFixed(4)}% {\n line-height: ${
|
|
2445
|
+
}).map((e) => ` ${e.at.toFixed(4)}% {\n line-height: ${ai(e.lineHeight)};\n animation-timing-function: steps(1, end);\n }`).join("\n");
|
|
2447
2446
|
w.push(`@keyframes ${e} {\n${r}\n}`), T.push(`${e} ${A} linear ${j}s both`);
|
|
2448
2447
|
}
|
|
2449
2448
|
if (V) {
|
|
2450
|
-
let e = `flemo-morph-${t}-lift`, n = (k > 0 ? ` 0% {\n${
|
|
2449
|
+
let e = `flemo-morph-${t}-lift`, n = (k > 0 ? ` 0% {\n${Gn(V[0].ascent)}\n animation-timing-function: steps(1, end);\n }\n` : "") + V.map((e, t) => ` ${(t === V.length - 1 ? Math.min(M(e.at), ee) : M(e.at)).toFixed(4)}% {\n${Gn(e.ascent)}\n animation-timing-function: steps(1, end);\n }`).join("\n");
|
|
2451
2450
|
w.push(`@keyframes ${e} {\n${n}\n}`), T.push(`${e} ${A} linear ${j}s both`);
|
|
2452
2451
|
}
|
|
2453
2452
|
if (H) {
|
|
2454
|
-
let e = `flemo-morph-${t}-track`, n = H.map((e, t, n) => ` ${(t === n.length - 1 ? Math.min(M(e.at), ee) : M(e.at)).toFixed(4)}% {\n${
|
|
2453
|
+
let e = `flemo-morph-${t}-track`, n = H.map((e, t, n) => ` ${(t === n.length - 1 ? Math.min(M(e.at), ee) : M(e.at)).toFixed(4)}% {\n${Hn(e.fix)}\n }`).join("\n");
|
|
2455
2454
|
w.push(`@keyframes ${e} {\n${n}\n}`), T.push(`${e} ${A} linear ${j}s both`);
|
|
2456
2455
|
}
|
|
2457
2456
|
if (i.length > 0) {
|
|
@@ -2464,15 +2463,15 @@ var on = (e) => e !== "" && e !== "visible", sn = (e) => {
|
|
|
2464
2463
|
geometryName: L ?? te,
|
|
2465
2464
|
geometryAccelerated: !re && de === null,
|
|
2466
2465
|
transform: de,
|
|
2467
|
-
translate: B ?
|
|
2466
|
+
translate: B ? Un : null,
|
|
2468
2467
|
size: U ? {
|
|
2469
|
-
width:
|
|
2470
|
-
height:
|
|
2468
|
+
width: Nn,
|
|
2469
|
+
height: Pn
|
|
2471
2470
|
} : null,
|
|
2472
|
-
heldEdge: B && oe && a ?
|
|
2473
|
-
letterSpacing: H ?
|
|
2471
|
+
heldEdge: B && oe && a ? In(a.to.x + a.to.width) : null,
|
|
2472
|
+
letterSpacing: H ? Bn : null
|
|
2474
2473
|
};
|
|
2475
|
-
},
|
|
2474
|
+
}, di = (e) => {
|
|
2476
2475
|
let { id: t, origin: n, small: r, big: i, settling: a, duration: o, start: s, ease: c, selector: l, accelerated: u } = e, d = Math.max(0, Math.min(e.head ?? 0, s)), f = o + d, p = d > 0 ? d / f * 100 : 0, m = s - d, h = r.width > 0 ? i.width / r.width : 1, g = (e) => ({
|
|
2477
2476
|
x: e.x + e.width / 2,
|
|
2478
2477
|
y: e.y + e.height / 2
|
|
@@ -2484,21 +2483,21 @@ var on = (e) => e !== "" && e !== "visible", sn = (e) => {
|
|
|
2484
2483
|
rotate: 0
|
|
2485
2484
|
}, C = (e) => {
|
|
2486
2485
|
let t = e ? Z : S;
|
|
2487
|
-
return u ? ` transform: ${e ? "none" : `translate(${
|
|
2486
|
+
return u ? ` transform: ${e ? "none" : `translate(${ii(t.x)}, ${ii(t.y)}) scale(${x})`};` : Jn(t);
|
|
2488
2487
|
}, w = `flemo-morph-${t}-camera`, T = f > 0 ? Math.max(0, 100 - 1 / 60 * 100 / f) : 100, E = T >= 99.999 ? ` 100% {\n${C(a)}\n }` : ` ${T.toFixed(3)}%, 100% {\n${C(a)}\n }`;
|
|
2489
2488
|
return {
|
|
2490
|
-
rules: [d > 0 ? `@keyframes ${w} {\n 0%, ${p.toFixed(3)}% {\n${C(!a)}\n }\n${E}\n}` : `@keyframes ${w} {\n 0% {\n${C(!a)}\n }\n${E}\n}`, `${l} {\n${u ? "" : ` transform: ${
|
|
2489
|
+
rules: [d > 0 ? `@keyframes ${w} {\n 0%, ${p.toFixed(3)}% {\n${C(!a)}\n }\n${E}\n}` : `@keyframes ${w} {\n 0% {\n${C(!a)}\n }\n${E}\n}`, `${l} {\n${u ? "" : ` transform: ${Kn} !important;\n`} animation-name: ${w} !important;\n animation-duration: ${f.toFixed(3)}s !important;\n animation-timing-function: ${Ir(c)} !important;\n animation-delay: ${m.toFixed(3)}s !important;\n animation-fill-mode: both !important;\n}`],
|
|
2491
2490
|
name: w
|
|
2492
2491
|
};
|
|
2493
|
-
},
|
|
2494
|
-
t ?
|
|
2495
|
-
},
|
|
2492
|
+
}, fi = /* @__PURE__ */ new WeakMap(), pi = (e, t) => {
|
|
2493
|
+
t ? fi.set(e, t) : fi.delete(e);
|
|
2494
|
+
}, mi = (e) => {
|
|
2496
2495
|
if (p()) return null;
|
|
2497
|
-
let t =
|
|
2496
|
+
let t = fi.get(e);
|
|
2498
2497
|
if (t?.isConnected) return t;
|
|
2499
2498
|
let n = document.body.querySelector(`:scope > [${Mt}]`);
|
|
2500
2499
|
return n || (n = document.createElement("div"), n.setAttribute(Mt, ""), document.body.appendChild(n)), n;
|
|
2501
|
-
},
|
|
2500
|
+
}, hi = (e, t, n, r) => {
|
|
2502
2501
|
let i = (t) => 3 * (1 - t) * (1 - t) * t * e + 3 * (1 - t) * t * t * n + t ** 3, a = (e) => 3 * (1 - e) * (1 - e) * e * t + 3 * (1 - e) * e * e * r + e ** 3;
|
|
2503
2502
|
return (e) => {
|
|
2504
2503
|
if (e <= 0) return 0;
|
|
@@ -2510,8 +2509,8 @@ var on = (e) => e !== "" && e !== "visible", sn = (e) => {
|
|
|
2510
2509
|
}
|
|
2511
2510
|
return a((t + n) / 2);
|
|
2512
2511
|
};
|
|
2513
|
-
},
|
|
2514
|
-
let t =
|
|
2512
|
+
}, gi = (e) => {
|
|
2513
|
+
let t = yi(e);
|
|
2515
2514
|
if (!t) return (e) => e;
|
|
2516
2515
|
let [n, r, i, a] = t, o = (e) => 3 * (1 - e) * (1 - e) * e * n + 3 * (1 - e) * e * e * i + e ** 3, s = (e) => 3 * (1 - e) * (1 - e) * e * r + 3 * (1 - e) * e * e * a + e ** 3;
|
|
2517
2516
|
return (e) => {
|
|
@@ -2524,7 +2523,7 @@ var on = (e) => e !== "" && e !== "visible", sn = (e) => {
|
|
|
2524
2523
|
}
|
|
2525
2524
|
return o((t + n) / 2);
|
|
2526
2525
|
};
|
|
2527
|
-
},
|
|
2526
|
+
}, _i = (e) => e, vi = {
|
|
2528
2527
|
ease: [
|
|
2529
2528
|
.25,
|
|
2530
2529
|
.1,
|
|
@@ -2579,47 +2578,47 @@ var on = (e) => e !== "" && e !== "visible", sn = (e) => {
|
|
|
2579
2578
|
.66,
|
|
2580
2579
|
-.56
|
|
2581
2580
|
]
|
|
2582
|
-
},
|
|
2581
|
+
}, yi = (e) => Array.isArray(e) ? e.length === 4 && e.every((e) => typeof e == "number") ? [...e] : null : typeof e == "string" ? e === "linear" ? null : [...vi[e] ?? vi.ease] : [...vi.ease], bi = (e) => {
|
|
2583
2582
|
if (Array.isArray(e)) {
|
|
2584
2583
|
if (e.length === 4 && e.every((e) => typeof e == "number")) {
|
|
2585
2584
|
let [t, n, r, i] = e;
|
|
2586
|
-
return
|
|
2585
|
+
return hi(t, n, r, i);
|
|
2587
2586
|
}
|
|
2588
|
-
return
|
|
2587
|
+
return _i;
|
|
2589
2588
|
}
|
|
2590
|
-
return typeof e == "string" ? e === "linear" ?
|
|
2591
|
-
},
|
|
2589
|
+
return typeof e == "string" ? e === "linear" ? _i : hi(...vi[e] ?? vi.ease) : hi(...vi.ease);
|
|
2590
|
+
}, xi = 1e4, Si = {
|
|
2592
2591
|
low: .6,
|
|
2593
2592
|
high: 2.5
|
|
2594
|
-
},
|
|
2595
|
-
let t = `${e.style}|${e.weight}|${e.family}|${
|
|
2593
|
+
}, Ci = /* @__PURE__ */ new Map(), wi = () => typeof document > "u" ? "" : document.fonts?.status ?? "", Ti = (e) => {
|
|
2594
|
+
let t = `${e.style}|${e.weight}|${e.family}|${wi()}`, n = Ci.get(t);
|
|
2596
2595
|
if (n !== void 0) return n;
|
|
2597
|
-
let r =
|
|
2598
|
-
return
|
|
2599
|
-
},
|
|
2596
|
+
let r = Oi(t, e);
|
|
2597
|
+
return Ci.set(t, r), r;
|
|
2598
|
+
}, Ei, Di = () => (Ei === void 0 &&
|
|
2600
2599
|
/* v8 ignore next 3 -- SSR, and a host with no canvas: neither has a line
|
|
2601
2600
|
box to correct in the first place. */
|
|
2602
|
-
(
|
|
2603
|
-
let n =
|
|
2601
|
+
(Ei = typeof document > "u" || typeof document.createElement != "function" ? null : document.createElement("canvas")), Ei ? Ei.getContext("2d") : null), Oi = (e, t) => {
|
|
2602
|
+
let n = Di();
|
|
2604
2603
|
if (!n) return null;
|
|
2605
2604
|
try {
|
|
2606
|
-
n.font = `${t.style} ${t.weight} ${
|
|
2605
|
+
n.font = `${t.style} ${t.weight} ${xi}px ${t.family}`;
|
|
2607
2606
|
let e = n.measureText(""), r = e.fontBoundingBoxAscent, i = e.fontBoundingBoxDescent;
|
|
2608
2607
|
if (typeof r != "number" || typeof i != "number" || !(r > 0) || !(i >= 0)) return null;
|
|
2609
2608
|
let a = {
|
|
2610
|
-
ascent: r /
|
|
2611
|
-
descent: i /
|
|
2609
|
+
ascent: r / xi,
|
|
2610
|
+
descent: i / xi
|
|
2612
2611
|
}, o = a.ascent + a.descent;
|
|
2613
|
-
return o <
|
|
2612
|
+
return o < Si.low || o > Si.high ? null : a;
|
|
2614
2613
|
} catch {
|
|
2615
|
-
return
|
|
2614
|
+
return Ci.set(e, null), null;
|
|
2616
2615
|
}
|
|
2617
|
-
},
|
|
2616
|
+
}, ki = () => {
|
|
2618
2617
|
/* v8 ignore next -- SSR: nothing is rendered, so nothing is on a grid. */
|
|
2619
2618
|
let e = typeof window > "u" ? 1 : window.devicePixelRatio;
|
|
2620
2619
|
return typeof e == "number" && e > 1 ? [1, e] : [1];
|
|
2621
|
-
},
|
|
2622
|
-
let r =
|
|
2620
|
+
}, Ai = (e, t, n) => {
|
|
2621
|
+
let r = Di();
|
|
2623
2622
|
if (!r) return null;
|
|
2624
2623
|
try {
|
|
2625
2624
|
r.font = `${t.style} ${t.weight} ${e * n}px ${t.family}`;
|
|
@@ -2631,8 +2630,8 @@ box to correct in the first place. */
|
|
|
2631
2630
|
} catch {
|
|
2632
2631
|
return null;
|
|
2633
2632
|
}
|
|
2634
|
-
},
|
|
2635
|
-
let r =
|
|
2633
|
+
}, ji = (e, t, n) => {
|
|
2634
|
+
let r = Di();
|
|
2636
2635
|
if (!r) return null;
|
|
2637
2636
|
try {
|
|
2638
2637
|
r.font = `${n.style} ${n.weight} ${t}px ${n.family}`;
|
|
@@ -2641,44 +2640,44 @@ box to correct in the first place. */
|
|
|
2641
2640
|
} catch {
|
|
2642
2641
|
return null;
|
|
2643
2642
|
}
|
|
2644
|
-
},
|
|
2643
|
+
}, Mi = (e, t) => Ni(e, t), Ni = (e, t) => e.ascent === t.ascent && e.descent === t.descent, Pi = {
|
|
2645
2644
|
whiteSpace: "nowrap",
|
|
2646
2645
|
overflow: "hidden",
|
|
2647
2646
|
textOverflow: "ellipsis"
|
|
2648
|
-
},
|
|
2649
|
-
e.style.whiteSpace =
|
|
2650
|
-
},
|
|
2647
|
+
}, Fi = (e) => {
|
|
2648
|
+
e.style.whiteSpace = Pi.whiteSpace, e.style.overflow = Pi.overflow, e.style.textOverflow = Pi.textOverflow;
|
|
2649
|
+
}, Ii = (e, t) => e && t, Li = () => {
|
|
2651
2650
|
/* v8 ignore next -- SSR: nothing is rendered, so nothing is on a grid. */
|
|
2652
2651
|
let e = typeof window > "u" ? 1 : window.devicePixelRatio, t = typeof e == "number" && e > 0 ? 1 / e : 1;
|
|
2653
2652
|
return t === 1 ? [1] : [1, t];
|
|
2654
|
-
},
|
|
2653
|
+
}, Ri = (e, t) => Math.floor(e / t + 1e-6) * t, zi = .001, Bi = (e, t, n) => {
|
|
2655
2654
|
if (n === null || e.lineHeight === null || e.textHeight === null) return 0;
|
|
2656
2655
|
let r = (e.lineHeight - e.textHeight) / 2, i = (n[0].lineHeight - e.textHeight) / 2;
|
|
2657
2656
|
if (e.leadOffset === null || t.leadOffset === null || t.lineHeight === null || t.textHeight === null) return r - i;
|
|
2658
|
-
let a =
|
|
2659
|
-
return a === void 0 ? r - i :
|
|
2660
|
-
},
|
|
2657
|
+
let a = Li().find((n) => Math.abs(Ri(r, n) - e.leadOffset) < zi && Math.abs(Ri((t.lineHeight - t.textHeight) / 2, n) - t.leadOffset) < zi);
|
|
2658
|
+
return a === void 0 ? r - i : Ri(r, a) - Ri(i, a);
|
|
2659
|
+
}, Vi = (e, t) => {
|
|
2661
2660
|
let n = (e) => e.lineHeight === null || e.textHeight === null ? null : (e.lineHeight - e.textHeight) / 2, r = [n(e), n(t)];
|
|
2662
2661
|
if (r[0] === null || r[1] === null || e.leadOffset === null || t.leadOffset === null) return 0;
|
|
2663
|
-
let i =
|
|
2662
|
+
let i = Li().find((n) => Math.abs(Ri(r[0], n) - e.leadOffset) < zi && Math.abs(Ri(r[1], n) - t.leadOffset) < zi);
|
|
2664
2663
|
if (i === void 0) return 0;
|
|
2665
2664
|
let a = Math.min(r[0], r[1]), o = Math.max(r[0], r[1]);
|
|
2666
2665
|
return o - a >= i ? 0 : (t.leadOffset + i / 2 - (a + o) / 2) * 2;
|
|
2667
|
-
},
|
|
2668
|
-
if (
|
|
2666
|
+
}, Hi = 1e-6, Ui = .001, Wi = /* @__PURE__ */ new Map(), Gi = /* @__PURE__ */ new Map(), Ki = (e, t) => {
|
|
2667
|
+
if (Gi.has(e)) return Gi.get(e);
|
|
2669
2668
|
let n = t();
|
|
2670
|
-
return
|
|
2671
|
-
},
|
|
2672
|
-
let i = `${n.style}|${n.weight}|${n.family}|${e.fontSize}|${t.fontSize}|${e.lineHeight}|${t.lineHeight}|${e.textHeight}|${t.textHeight}|${JSON.stringify(r ?? null)}`, a =
|
|
2669
|
+
return Gi.size > 512 && Gi.clear(), Gi.set(e, n), n;
|
|
2670
|
+
}, qi = (e) => e ? `${e.family}|${e.weight}|${e.style}` : "none", Ji = (e, t, n, r) => !n || e.fontSize === null || t.fontSize === null || e.lineHeight === null || t.lineHeight === null || e.textHeight === null || t.textHeight === null || Math.abs(e.fontSize - t.fontSize) < Hi ? null : Ki(`lead|${qi(n)}|${e.fontSize},${e.lineHeight},${e.textHeight}>${t.fontSize},${t.lineHeight},${t.textHeight}|${String(r)}`, () => Yi(e, t, n, r)), Yi = (e, t, n, r) => {
|
|
2671
|
+
let i = `${n.style}|${n.weight}|${n.family}|${e.fontSize}|${t.fontSize}|${e.lineHeight}|${t.lineHeight}|${e.textHeight}|${t.textHeight}|${JSON.stringify(r ?? null)}`, a = Wi.get(i);
|
|
2673
2672
|
if (a !== void 0) return a;
|
|
2674
|
-
let o =
|
|
2675
|
-
return
|
|
2676
|
-
},
|
|
2677
|
-
if (!
|
|
2673
|
+
let o = Xi(e, t, n, r);
|
|
2674
|
+
return Wi.set(i, o), o;
|
|
2675
|
+
}, Xi = (e, t, n, r) => {
|
|
2676
|
+
if (!Ti(n)) return null;
|
|
2678
2677
|
let i = null;
|
|
2679
|
-
for (let r of
|
|
2680
|
-
let a =
|
|
2681
|
-
if (a !== null && o !== null && !(!
|
|
2678
|
+
for (let r of ki()) {
|
|
2679
|
+
let a = Ai(e.fontSize, n, r), o = Ai(t.fontSize, n, r);
|
|
2680
|
+
if (a !== null && o !== null && !(!Zi(a, e.textHeight) || !Zi(o, t.textHeight))) {
|
|
2682
2681
|
i = {
|
|
2683
2682
|
scale: r,
|
|
2684
2683
|
ends: [a, o]
|
|
@@ -2687,13 +2686,13 @@ box to correct in the first place. */
|
|
|
2687
2686
|
}
|
|
2688
2687
|
}
|
|
2689
2688
|
if (i === null) return null;
|
|
2690
|
-
let { scale: a, ends: o } = i, s = t.lineHeight - t.textHeight, c =
|
|
2689
|
+
let { scale: a, ends: o } = i, s = t.lineHeight - t.textHeight, c = bi(r), l = t.fontSize - e.fontSize, u = (t) => Ai(e.fontSize + l * c(t), n, a), d = [{
|
|
2691
2690
|
at: 0,
|
|
2692
2691
|
lineHeight: e.textHeight + s,
|
|
2693
2692
|
ascent: o[0].ascent
|
|
2694
2693
|
}], f = (e, t, n, r) => {
|
|
2695
|
-
if (
|
|
2696
|
-
if (t - e <=
|
|
2694
|
+
if (Mi(n, r)) return;
|
|
2695
|
+
if (t - e <= Ui) {
|
|
2697
2696
|
d.push({
|
|
2698
2697
|
at: t * 100,
|
|
2699
2698
|
lineHeight: r.ascent + r.descent + s,
|
|
@@ -2716,20 +2715,20 @@ box to correct in the first place. */
|
|
|
2716
2715
|
lineHeight: t.lineHeight,
|
|
2717
2716
|
ascent: o[1].ascent
|
|
2718
2717
|
}), m.length > 2 ? m : null;
|
|
2719
|
-
},
|
|
2720
|
-
if (t.fontSize === null || n.fontSize === null || Math.abs(t.fontSize - n.fontSize) <
|
|
2718
|
+
}, Zi = (e, t) => Math.abs(e.ascent + e.descent - t) < Hi, Qi = 16, $i = .5, ea = (e, t, n, r, i) => !r || t.fontSize === null || n.fontSize === null ? null : Ki(`track|${qi(r)}|${e.length}:${e.slice(0, 24)}|${t.fontSize}>${n.fontSize}|${String(i)}`, () => ta(e, t, n, r, i)), ta = (e, t, n, r, i) => {
|
|
2719
|
+
if (t.fontSize === null || n.fontSize === null || Math.abs(t.fontSize - n.fontSize) < Hi) return null;
|
|
2721
2720
|
let a = [...e].length - 1;
|
|
2722
2721
|
if (a < 1) return null;
|
|
2723
|
-
let o = `${r.style}|${r.weight}|${r.family}|${t.fontSize}|${n.fontSize}|${e}|${JSON.stringify(i ?? null)}`, s =
|
|
2722
|
+
let o = `${r.style}|${r.weight}|${r.family}|${t.fontSize}|${n.fontSize}|${e}|${JSON.stringify(i ?? null)}`, s = na.get(o);
|
|
2724
2723
|
if (s !== void 0) return s;
|
|
2725
|
-
let c =
|
|
2726
|
-
return
|
|
2727
|
-
},
|
|
2728
|
-
let o = [
|
|
2724
|
+
let c = ra(e, t.fontSize, n.fontSize, a, r, i);
|
|
2725
|
+
return na.set(o, c), c;
|
|
2726
|
+
}, na = /* @__PURE__ */ new Map(), ra = (e, t, n, r, i, a) => {
|
|
2727
|
+
let o = [ji(e, t, i), ji(e, n, i)];
|
|
2729
2728
|
if (o[0] === null || o[1] === null) return null;
|
|
2730
|
-
let s =
|
|
2731
|
-
for (let n = 0; n <=
|
|
2732
|
-
let a = n /
|
|
2729
|
+
let s = gi(a), c = n - t, l = [];
|
|
2730
|
+
for (let n = 0; n <= Qi; n += 1) {
|
|
2731
|
+
let a = n / Qi, u = ji(e, t + c * a, i);
|
|
2733
2732
|
/* v8 ignore next -- the ends above already refused a face with no metrics. */
|
|
2734
2733
|
if (u === null) return null;
|
|
2735
2734
|
let d = o[0] + (o[1] - o[0]) * a;
|
|
@@ -2738,13 +2737,13 @@ box to correct in the first place. */
|
|
|
2738
2737
|
fix: (d - u) / r
|
|
2739
2738
|
});
|
|
2740
2739
|
}
|
|
2741
|
-
return Math.max(...l.map((e) => Math.abs(e.fix))) * r <
|
|
2742
|
-
},
|
|
2740
|
+
return Math.max(...l.map((e) => Math.abs(e.fix))) * r < $i ? null : l;
|
|
2741
|
+
}, ia = () => {
|
|
2743
2742
|
if (p()) return null;
|
|
2744
2743
|
let e = document.head.querySelector(`style[${Lt}]`);
|
|
2745
2744
|
return e || (e = document.createElement("style"), e.setAttribute(Lt, ""), document.head.appendChild(e)), e.sheet;
|
|
2746
|
-
},
|
|
2747
|
-
let t =
|
|
2745
|
+
}, aa = (e) => {
|
|
2746
|
+
let t = ia();
|
|
2748
2747
|
if (!t) return () => {};
|
|
2749
2748
|
let n = [];
|
|
2750
2749
|
for (let r of e) try {
|
|
@@ -2758,87 +2757,87 @@ box to correct in the first place. */
|
|
|
2758
2757
|
}
|
|
2759
2758
|
n.length = 0;
|
|
2760
2759
|
};
|
|
2761
|
-
},
|
|
2762
|
-
let e =
|
|
2760
|
+
}, oa = /* @__PURE__ */ new WeakMap(), sa = () => {
|
|
2761
|
+
let e = ia();
|
|
2763
2762
|
/* v8 ignore next -- no document to register into. */
|
|
2764
2763
|
if (!e) return !1;
|
|
2765
|
-
let t =
|
|
2764
|
+
let t = oa.get(e);
|
|
2766
2765
|
if (t !== void 0) return t;
|
|
2767
2766
|
let n = !0;
|
|
2768
|
-
for (let t of
|
|
2767
|
+
for (let t of qn) try {
|
|
2769
2768
|
e.insertRule(t, e.cssRules.length);
|
|
2770
2769
|
} catch {
|
|
2771
2770
|
n = !1;
|
|
2772
2771
|
}
|
|
2773
|
-
return
|
|
2774
|
-
},
|
|
2775
|
-
Number.isFinite(e) && (e <
|
|
2776
|
-
},
|
|
2772
|
+
return oa.set(e, n), n;
|
|
2773
|
+
}, ca = 1e3 / 60, la = 1e3 / 600, ua = 42, da = ca, fa = () => da, pa = (e) => {
|
|
2774
|
+
Number.isFinite(e) && (e < la || e > ua || (da = Math.min(ca, Math.max(la, e))));
|
|
2775
|
+
}, ma = () => {
|
|
2777
2776
|
if (typeof navigator > "u") return !1;
|
|
2778
2777
|
let e = navigator.userAgentData?.brands;
|
|
2779
2778
|
if (Array.isArray(e)) return e.some((e) => /chromium/i.test(e?.brand ?? ""));
|
|
2780
2779
|
let t = navigator.userAgent ?? "";
|
|
2781
2780
|
return /Android/i.test(t) && !/Firefox|FxiOS/i.test(t);
|
|
2782
|
-
},
|
|
2781
|
+
}, ha = 90, ga = () => {
|
|
2783
2782
|
if (typeof navigator > "u") return !1;
|
|
2784
2783
|
let e = navigator.userAgentData?.brands;
|
|
2785
2784
|
if (Array.isArray(e)) return !1;
|
|
2786
2785
|
let t = navigator.userAgent ?? "";
|
|
2787
|
-
return !/Android/i.test(t) || /Firefox|FxiOS/i.test(t) || (navigator.maxTouchPoints ?? 0) <= 0 ? !1 : Number(/Chrom(?:e|ium)\/(\d+)/i.exec(t)?.[1] ?? 0) <
|
|
2788
|
-
},
|
|
2789
|
-
if (!(!Number.isFinite(e) || e <= 0) &&
|
|
2790
|
-
if (e <
|
|
2786
|
+
return !/Android/i.test(t) || /Firefox|FxiOS/i.test(t) || (navigator.maxTouchPoints ?? 0) <= 0 ? !1 : Number(/Chrom(?:e|ium)\/(\d+)/i.exec(t)?.[1] ?? 0) < ha;
|
|
2787
|
+
}, _a = () => typeof navigator > "u" ? !1 : !ma() && navigator.maxTouchPoints === 0 && /Mac/.test(navigator.platform), va = () => ma() && typeof navigator < "u" && navigator.maxTouchPoints === 0, ya = 12, ba = 14, xa = 22, Sa = 2, Ca = 1.5, wa = !1, Ta = 0, Ea = () => typeof navigator > "u" || (navigator.maxTouchPoints ?? 0) === 0, Da = (e, t) => {
|
|
2788
|
+
if (!(!Number.isFinite(e) || e <= 0) && Ea()) {
|
|
2789
|
+
if (e < ya) {
|
|
2791
2790
|
if (t !== void 0 && t > 24) return;
|
|
2792
|
-
|
|
2791
|
+
wa = !0, Ta = 0;
|
|
2793
2792
|
return;
|
|
2794
2793
|
}
|
|
2795
|
-
if (e >=
|
|
2796
|
-
|
|
2794
|
+
if (e >= ba && e <= xa) {
|
|
2795
|
+
Ta = Math.min(Sa, Ta + 1);
|
|
2797
2796
|
return;
|
|
2798
2797
|
}
|
|
2799
|
-
e <
|
|
2798
|
+
e < ba && (Ta = 0);
|
|
2800
2799
|
}
|
|
2801
|
-
},
|
|
2800
|
+
}, Oa = () => !wa && Ta >= Sa, ka = () => Oa() && ma() && typeof navigator < "u" && navigator.maxTouchPoints === 0 && typeof window < "u" && window.devicePixelRatio >= Ca, Aa = () => {}, ja = null, Ma = () => {
|
|
2802
2801
|
/* v8 ignore next 2 -- the loop only runs where rAF existed to start it; the
|
|
2803
2802
|
re-check covers an environment that removes it mid-session. */
|
|
2804
|
-
|
|
2805
|
-
},
|
|
2806
|
-
|
|
2807
|
-
},
|
|
2808
|
-
if (
|
|
2809
|
-
|
|
2810
|
-
let e = ++
|
|
2811
|
-
if (e !==
|
|
2812
|
-
if (r !== null && (n > 0 ? --n : t.push(a - r)), r = a, t.length <
|
|
2803
|
+
ja = typeof requestAnimationFrame == "function" ? requestAnimationFrame(Ma) : null;
|
|
2804
|
+
}, Na = () => (ja === null && typeof requestAnimationFrame == "function" && (ja = requestAnimationFrame(Ma)), Aa), Pa = !1, Fa = 0, Ia = () => {
|
|
2805
|
+
Pa &&= (Fa += 1, !1);
|
|
2806
|
+
}, La = 2, Ra = 8, za = () => {
|
|
2807
|
+
if (Pa || typeof requestAnimationFrame != "function") return;
|
|
2808
|
+
Pa = !0;
|
|
2809
|
+
let e = ++Fa, t = [], n = La, r = null, i = (a) => {
|
|
2810
|
+
if (e !== Fa) return;
|
|
2811
|
+
if (r !== null && (n > 0 ? --n : t.push(a - r)), r = a, t.length < Ra) {
|
|
2813
2812
|
requestAnimationFrame(i);
|
|
2814
2813
|
return;
|
|
2815
2814
|
}
|
|
2816
|
-
|
|
2815
|
+
Pa = !1;
|
|
2817
2816
|
let o = [...t].sort((e, t) => e - t), s = o[Math.floor(o.length / 2)];
|
|
2818
|
-
|
|
2817
|
+
pa(s), Da(s, o[o.length - 1]);
|
|
2819
2818
|
};
|
|
2820
2819
|
requestAnimationFrame(i);
|
|
2821
|
-
},
|
|
2822
|
-
let t = !
|
|
2820
|
+
}, Ba = () => !ma() && typeof navigator < "u" && navigator.maxTouchPoints > 0, Va = () => ma() && navigator.maxTouchPoints > 0, Ha = () => Ba() || ka() || Va() || _a(), Ua = (e = {}) => {
|
|
2821
|
+
let t = !ma(), n = Ba();
|
|
2823
2822
|
return {
|
|
2824
2823
|
mainThreadPresented: t,
|
|
2825
|
-
atomicReleaseFlip: t && (e.authoredNativeDriver === !0 || n ||
|
|
2824
|
+
atomicReleaseFlip: t && (e.authoredNativeDriver === !0 || n || _a()),
|
|
2826
2825
|
deferReleaseCommit: n,
|
|
2827
|
-
renderSettleGate:
|
|
2826
|
+
renderSettleGate: Ha(),
|
|
2828
2827
|
parkOver: n,
|
|
2829
2828
|
imageDecodeOffload: typeof navigator < "u"
|
|
2830
2829
|
};
|
|
2831
|
-
},
|
|
2832
|
-
let t =
|
|
2830
|
+
}, Wa = () => typeof navigator < "u" && navigator.maxTouchPoints > 0, Ga = (e) => {
|
|
2831
|
+
let t = ma(), n = Wa(), r = !t && n && Ba(), i = t && n && ga(), a = !t && n && (e === "POPPING" || e === "PUSHING" && Ha()), o = r || i || a, s = _a();
|
|
2833
2832
|
return {
|
|
2834
2833
|
touchGoverned: r,
|
|
2835
2834
|
forceCompiled: a,
|
|
2836
2835
|
governedHead: o,
|
|
2837
2836
|
desktopHead: s,
|
|
2838
|
-
headMs: o ?
|
|
2837
|
+
headMs: o ? ri[e] ?? 0 : s ? ni[e] ?? 0 : 0
|
|
2839
2838
|
};
|
|
2840
|
-
},
|
|
2841
|
-
let { status: t, transition: n, skipAnimation: r, hasActiveMotion: i, hasAnimation: a } = e, o =
|
|
2839
|
+
}, Ka = (e) => {
|
|
2840
|
+
let { status: t, transition: n, skipAnimation: r, hasActiveMotion: i, hasAnimation: a } = e, o = ma(), { touchGoverned: s, forceCompiled: c, governedHead: l, desktopHead: u, headMs: d } = Ga(t);
|
|
2842
2841
|
return {
|
|
2843
2842
|
hasDrivableMotion: !r && i,
|
|
2844
2843
|
nativeSurgeryAllowed: n.driver === "native" && !o,
|
|
@@ -2848,36 +2847,36 @@ box to correct in the first place. */
|
|
|
2848
2847
|
desktopHead: u,
|
|
2849
2848
|
birthHoldMs: d,
|
|
2850
2849
|
governedSlide: s && (t === "PUSHING" || t === "POPPING"),
|
|
2851
|
-
framePacingKeepalive: a && o && (typeof navigator < "u" && navigator.maxTouchPoints === 0 ||
|
|
2852
|
-
creepHead: l &&
|
|
2850
|
+
framePacingKeepalive: a && o && (typeof navigator < "u" && navigator.maxTouchPoints === 0 || fa() < 12),
|
|
2851
|
+
creepHead: l && Ba()
|
|
2853
2852
|
};
|
|
2854
|
-
},
|
|
2853
|
+
}, qa = [
|
|
2855
2854
|
"x",
|
|
2856
2855
|
"y",
|
|
2857
2856
|
"scale",
|
|
2858
2857
|
"scaleX",
|
|
2859
2858
|
"scaleY",
|
|
2860
2859
|
"rotate"
|
|
2861
|
-
],
|
|
2860
|
+
], Ja = (e) => !!e && qa.some((t) => e[t] !== void 0 && e[t] !== 0), Ya = (e) => {
|
|
2862
2861
|
if (p()) return 0;
|
|
2863
|
-
let { governedHead: t, headMs: n } =
|
|
2862
|
+
let { governedHead: t, headMs: n } = Ga(e);
|
|
2864
2863
|
return t && (e === "PUSHING" || e === "POPPING") ? n * 2 / 1e3 : n / 1e3;
|
|
2865
|
-
},
|
|
2864
|
+
}, Xa = (e, t) => {
|
|
2866
2865
|
let n = e;
|
|
2867
2866
|
for (let e = t.parentElement; e && e !== document.documentElement; e = e.parentElement) {
|
|
2868
|
-
let t =
|
|
2867
|
+
let t = ur(e);
|
|
2869
2868
|
if (t.x === 0 && t.y === 0 && t.scaleX === 1 && t.scaleY === 1) continue;
|
|
2870
|
-
let r = e.getBoundingClientRect(), i =
|
|
2869
|
+
let r = e.getBoundingClientRect(), i = dr({
|
|
2871
2870
|
x: r.left,
|
|
2872
2871
|
y: r.top,
|
|
2873
2872
|
width: r.width,
|
|
2874
2873
|
height: r.height
|
|
2875
2874
|
}, t);
|
|
2876
|
-
n =
|
|
2875
|
+
n = sr(n, t, i);
|
|
2877
2876
|
}
|
|
2878
2877
|
return n;
|
|
2879
|
-
},
|
|
2880
|
-
let r =
|
|
2878
|
+
}, Za = (e, t, n) => {
|
|
2879
|
+
let r = or(e), i = Xa(r.rect, e), a = {
|
|
2881
2880
|
rect: i,
|
|
2882
2881
|
fontSize: r.fontSize,
|
|
2883
2882
|
fontWeight: r.fontWeight,
|
|
@@ -2911,11 +2910,11 @@ box to correct in the first place. */
|
|
|
2911
2910
|
singleLine: r.singleLine,
|
|
2912
2911
|
textHeight: r.textHeight,
|
|
2913
2912
|
leadOffset: r.leadOffset,
|
|
2914
|
-
screenMoves:
|
|
2913
|
+
screenMoves: Ja(c.from) || Ja(c.to),
|
|
2915
2914
|
screenDuration: c.duration,
|
|
2916
2915
|
screenEase: c.ease
|
|
2917
2916
|
} : a;
|
|
2918
|
-
},
|
|
2917
|
+
}, Qa = (e) => {
|
|
2919
2918
|
let t = [];
|
|
2920
2919
|
for (let n of e.querySelectorAll(`[${q}]`)) {
|
|
2921
2920
|
let { width: e } = n.getBoundingClientRect();
|
|
@@ -2928,7 +2927,7 @@ box to correct in the first place. */
|
|
|
2928
2927
|
return () => {
|
|
2929
2928
|
for (let e of t) e();
|
|
2930
2929
|
};
|
|
2931
|
-
},
|
|
2930
|
+
}, $a = /* @__PURE__ */ new WeakMap(), eo = 0, to = Y(at), no = [
|
|
2932
2931
|
"color",
|
|
2933
2932
|
"font",
|
|
2934
2933
|
"letterSpacing",
|
|
@@ -2937,34 +2936,34 @@ box to correct in the first place. */
|
|
|
2937
2936
|
"textTransform",
|
|
2938
2937
|
"whiteSpace",
|
|
2939
2938
|
"direction"
|
|
2940
|
-
],
|
|
2939
|
+
], ro = (e, t) => {
|
|
2941
2940
|
if (t !== "lineHeight") return e[t];
|
|
2942
2941
|
let n = e.lineHeight ?? "", r = Number.parseFloat(n), i = Number.parseFloat(e.fontSize ?? "");
|
|
2943
2942
|
return !n.endsWith("px") || !Number.isFinite(r) || !Number.isFinite(i) || i <= 0 ? n : String(Math.round(r / i * 1e4) / 1e4);
|
|
2944
|
-
},
|
|
2945
|
-
let t =
|
|
2943
|
+
}, io = (e) => P.includes(e), ao = (e) => e.closest(to), oo = (e) => e.hasAttribute("data-flemo-status") && e.hasAttribute("data-flemo-active") ? e : ao(e), so = (e) => {
|
|
2944
|
+
let t = ao(e);
|
|
2946
2945
|
if (!t) return null;
|
|
2947
2946
|
let n = e.getAttribute(lt);
|
|
2948
2947
|
return n === null || n === t.getAttribute("data-flemo-router") ? t : null;
|
|
2949
|
-
},
|
|
2948
|
+
}, co = (e) => e === "POPPING" ? "false" : "true", lo = (e, t) => e.getAttribute(st) === co(t), uo = (e) => e === "POPPING" ? {
|
|
2950
2949
|
enter: "POPPING-false",
|
|
2951
2950
|
exit: "POPPING-true"
|
|
2952
2951
|
} : {
|
|
2953
2952
|
enter: `${e}-true`,
|
|
2954
2953
|
exit: `${e}-false`
|
|
2955
|
-
},
|
|
2954
|
+
}, fo = (e) => e < 0 ? 0 : e > 1 ? 1 : e, po = (e, t, n) => e !== null && t !== null && Math.abs(e - t) >= n ? {
|
|
2956
2955
|
from: e,
|
|
2957
2956
|
to: t
|
|
2958
|
-
} : null,
|
|
2959
|
-
let a =
|
|
2957
|
+
} : null, mo = (e, t, n, r, i) => {
|
|
2958
|
+
let a = po(e.fontSize, t.fontSize, .5), o = po(e.lineHeight, t.lineHeight, .25), s = a ? Ji(e, t, n, r) : null, c = a && i ? ea(i, e, t, n, r) : null, l = s === null && (a || o) ? Vi(e, t) : 0;
|
|
2960
2959
|
return {
|
|
2961
2960
|
fontSize: a,
|
|
2962
2961
|
leading: s,
|
|
2963
|
-
leadStart:
|
|
2962
|
+
leadStart: Bi(e, t, s),
|
|
2964
2963
|
track: c,
|
|
2965
|
-
fontWeight:
|
|
2966
|
-
letterSpacing:
|
|
2967
|
-
wordSpacing:
|
|
2964
|
+
fontWeight: po(e.fontWeight, t.fontWeight, 1),
|
|
2965
|
+
letterSpacing: po(e.letterSpacing, t.letterSpacing, .01),
|
|
2966
|
+
wordSpacing: po(e.wordSpacing, t.wordSpacing, .01),
|
|
2968
2967
|
lift: s,
|
|
2969
2968
|
lineHeight: o ? {
|
|
2970
2969
|
from: o.from + l,
|
|
@@ -2977,11 +2976,11 @@ box to correct in the first place. */
|
|
|
2977
2976
|
to: t.lineHeight
|
|
2978
2977
|
} : null
|
|
2979
2978
|
};
|
|
2980
|
-
},
|
|
2979
|
+
}, ho = 1 / 60, go = "steps(1, start)", _o = .006, vo = .4, yo = (e) => {
|
|
2981
2980
|
let t = 0, n = e;
|
|
2982
2981
|
for (; n;) n.hasAttribute("data-flemo-morph") && (t += 1), n = n.parentElement;
|
|
2983
2982
|
return t;
|
|
2984
|
-
},
|
|
2983
|
+
}, bo = (e, t) => {
|
|
2985
2984
|
let n = rt[t];
|
|
2986
2985
|
if (n === "self") return null;
|
|
2987
2986
|
let r = e.variants[t];
|
|
@@ -2990,41 +2989,41 @@ box to correct in the first place. */
|
|
|
2990
2989
|
to: r.value,
|
|
2991
2990
|
options: r.options
|
|
2992
2991
|
};
|
|
2993
|
-
},
|
|
2992
|
+
}, xo = (e) => {
|
|
2994
2993
|
e.style.pointerEvents = "none", e.style.zIndex = "2147483000";
|
|
2995
|
-
},
|
|
2994
|
+
}, So = {
|
|
2996
2995
|
left: 0,
|
|
2997
2996
|
top: 0,
|
|
2998
2997
|
center: .5,
|
|
2999
2998
|
right: 1,
|
|
3000
2999
|
bottom: 1
|
|
3001
|
-
},
|
|
3000
|
+
}, Co = (e, t) => {
|
|
3002
3001
|
if (!e) return t / 2;
|
|
3003
|
-
let n =
|
|
3002
|
+
let n = So[e];
|
|
3004
3003
|
if (n !== void 0) return n * t;
|
|
3005
3004
|
let r = Number.parseFloat(e);
|
|
3006
3005
|
return Number.isFinite(r) ? e.endsWith("%") ? r / 100 * t : r : t / 2;
|
|
3007
|
-
},
|
|
3006
|
+
}, wo = (e, t) => {
|
|
3008
3007
|
let n = e.getBoundingClientRect(), r = {
|
|
3009
3008
|
x: n.left,
|
|
3010
3009
|
y: n.top,
|
|
3011
3010
|
width: n.width,
|
|
3012
3011
|
height: n.height
|
|
3013
|
-
}, i =
|
|
3012
|
+
}, i = ur(e), a = Zt(sr(r, i, dr(r, i)), t), o = ((typeof getComputedStyle == "function" ? getComputedStyle(e) : null)?.transformOrigin ?? "").trim().split(/\s+/);
|
|
3014
3013
|
return {
|
|
3015
|
-
x: a.x +
|
|
3016
|
-
y: a.y +
|
|
3014
|
+
x: a.x + Co(o[0], a.width),
|
|
3015
|
+
y: a.y + Co(o[1], a.height)
|
|
3017
3016
|
};
|
|
3018
|
-
},
|
|
3017
|
+
}, To = (e, t) => {
|
|
3019
3018
|
t.translate && (e.style.translate = t.translate), t.transform && (e.style.transform = t.transform), t.letterSpacing && (e.style.letterSpacing = t.letterSpacing), t.size && (e.style.width = t.size.width, e.style.height = t.size.height);
|
|
3020
|
-
},
|
|
3019
|
+
}, Eo = (e, t, n, r, i, a, o, s) => {
|
|
3021
3020
|
let c = tt.get(t.name) ?? tt.get("shared");
|
|
3022
3021
|
if (!c) return;
|
|
3023
|
-
let { enter: l, exit: u } =
|
|
3022
|
+
let { enter: l, exit: u } = uo(r), d = bo(c, l);
|
|
3024
3023
|
if (!d) return;
|
|
3025
3024
|
e.residue.get(t.element)?.(), e.residue.get(n.element)?.();
|
|
3026
3025
|
let f = s ? (() => {
|
|
3027
|
-
let e =
|
|
3026
|
+
let e = or(t.element);
|
|
3028
3027
|
return {
|
|
3029
3028
|
rect: e.rect,
|
|
3030
3029
|
fontSize: e.fontSize,
|
|
@@ -3043,30 +3042,30 @@ box to correct in the first place. */
|
|
|
3043
3042
|
screenDuration: s.duration,
|
|
3044
3043
|
screenEase: s.ease
|
|
3045
3044
|
};
|
|
3046
|
-
})() :
|
|
3045
|
+
})() : Za(t.element, i, l);
|
|
3047
3046
|
if (f.rect.width <= 0 || f.rect.height <= 0 || n.snapshot.rect.width <= 0 || n.snapshot.rect.height <= 0) return;
|
|
3048
|
-
let p =
|
|
3047
|
+
let p = mi(o), m = t.element.parentElement;
|
|
3049
3048
|
/* v8 ignore next 4 -- neither is reachable from a browser: the layer falls
|
|
3050
3049
|
back to a document-level element when a binding publishes none, and a
|
|
3051
3050
|
registered element that reached the pairing is in the tree. The guard is
|
|
3052
3051
|
for SSR and for a binding that registers a detached node. */
|
|
3053
3052
|
if (!p || !m) return;
|
|
3054
|
-
let h = d.options.duration ?? f.screenDuration, g = s ? s.duration : h > 0 ? h :
|
|
3055
|
-
|
|
3056
|
-
let b =
|
|
3053
|
+
let h = d.options.duration ?? f.screenDuration, g = s ? s.duration : h > 0 ? h : vo, _ = f.screenMoves && f.screenEase ? f.screenEase : d.options.ease ?? f.screenEase, v = s ? s.head : Ya(r), y = s ? s.start : (d.options.delay ?? 0) + v;
|
|
3054
|
+
xo(p);
|
|
3055
|
+
let b = Zt(f.rect, p), x = Zt(n.snapshot.rect, p), S = {
|
|
3057
3056
|
width: b.width,
|
|
3058
3057
|
height: b.height
|
|
3059
|
-
}, C = t.element.firstElementChild === null && t.restSize ?
|
|
3058
|
+
}, C = t.element.firstElementChild === null && t.restSize ? er(t.restSize.height, f.lineHeight, f.fontSize) : f.singleLine, w = fo(c.crossFade ?? .55), T = Math.abs(x.width - b.width) >= .05 ? Qa(t.element) : null, E = typeof getComputedStyle == "function" ? getComputedStyle(t.element) : null, D = E ? {
|
|
3060
3059
|
fontFamily: E.fontFamily,
|
|
3061
3060
|
fontWeight: E.fontWeight,
|
|
3062
3061
|
fontStyle: E.fontStyle,
|
|
3063
3062
|
borderRadius: E.borderRadius,
|
|
3064
|
-
inherited:
|
|
3063
|
+
inherited: no.map((e) => [e, ro(E, e)])
|
|
3065
3064
|
} : null, O = D?.fontFamily ? {
|
|
3066
3065
|
family: D.fontFamily,
|
|
3067
3066
|
weight: D.fontWeight,
|
|
3068
3067
|
style: D.fontStyle
|
|
3069
|
-
} : null, k = t.element.firstElementChild === null ? Array.from(t.element.childNodes, (e) => e instanceof Text ? e.data : "").join("").trim() : "", A =
|
|
3068
|
+
} : null, k = t.element.firstElementChild === null ? Array.from(t.element.childNodes, (e) => e instanceof Text ? e.data : "").join("").trim() : "", A = mo(n.snapshot, f, O, _, k || null), j = yn(n.snapshot.paint, f.paint, c.radius === !1 ? /* @__PURE__ */ new Set(["border-radius"]) : void 0), M = j.find((e) => e.property === "border-radius");
|
|
3070
3069
|
if (M) {
|
|
3071
3070
|
let e = (e) => {
|
|
3072
3071
|
if (e.includes("/")) return null;
|
|
@@ -3083,15 +3082,15 @@ box to correct in the first place. */
|
|
|
3083
3082
|
M.from = e(r, n.snapshot.rect.width), M.to = e(i, f.rect.width);
|
|
3084
3083
|
}
|
|
3085
3084
|
}
|
|
3086
|
-
let ee =
|
|
3085
|
+
let ee = cn(on(n.element), on(t.element)), N = `${eo += 1}`, te = sa(), P = !s && n.element.isConnected && n.element !== t.element, ne = mn(t.element, x, b, {
|
|
3087
3086
|
x: Math.abs(x.x + x.width - (b.x + b.width)) < .05 && Math.abs(x.x - b.x) >= .05 ? "right" : "left",
|
|
3088
3087
|
y: "top"
|
|
3089
|
-
}), F =
|
|
3088
|
+
}), F = ui({
|
|
3090
3089
|
id: `${N}i`,
|
|
3091
3090
|
travel: {
|
|
3092
3091
|
from: Z,
|
|
3093
|
-
authoredFrom:
|
|
3094
|
-
authoredTo:
|
|
3092
|
+
authoredFrom: Cn(d.from, S) ?? Z,
|
|
3093
|
+
authoredTo: Cn(d.to, S) ?? Z,
|
|
3095
3094
|
duration: g,
|
|
3096
3095
|
start: y,
|
|
3097
3096
|
head: v,
|
|
@@ -3118,18 +3117,18 @@ box to correct in the first place. */
|
|
|
3118
3117
|
lift: A.lift,
|
|
3119
3118
|
track: A.track,
|
|
3120
3119
|
travelPinned: te,
|
|
3121
|
-
fade:
|
|
3120
|
+
fade: li(d.from).length > 0 ? {
|
|
3122
3121
|
from: d.from,
|
|
3123
3122
|
to: d.to,
|
|
3124
3123
|
duration: g * w
|
|
3125
3124
|
} : P && v > 0 && w === 0 ? {
|
|
3126
|
-
from: { opacity:
|
|
3125
|
+
from: { opacity: _o },
|
|
3127
3126
|
to: { opacity: 1 },
|
|
3128
|
-
duration:
|
|
3129
|
-
easing:
|
|
3127
|
+
duration: ho,
|
|
3128
|
+
easing: go
|
|
3130
3129
|
} : null,
|
|
3131
3130
|
paint: j
|
|
3132
|
-
}), re = !F.geometryAccelerated &&
|
|
3131
|
+
}), re = !F.geometryAccelerated && sa(), I = n.element, L = bo(c, u), R = I.isConnected && I !== t.element && L ? ui({
|
|
3133
3132
|
id: `${N}o`,
|
|
3134
3133
|
travel: {
|
|
3135
3134
|
from: Z,
|
|
@@ -3142,7 +3141,7 @@ box to correct in the first place. */
|
|
|
3142
3141
|
fade: {
|
|
3143
3142
|
from: L.to,
|
|
3144
3143
|
to: L.to,
|
|
3145
|
-
duration:
|
|
3144
|
+
duration: ho,
|
|
3146
3145
|
delay: 0
|
|
3147
3146
|
},
|
|
3148
3147
|
paint: []
|
|
@@ -3153,7 +3152,7 @@ box to correct in the first place. */
|
|
|
3153
3152
|
height: f.rect.height
|
|
3154
3153
|
}, s = n.snapshot.rect.width - o.width, c = n.snapshot.rect.height - o.height, l = A.fontSize === null && (Math.abs(s) >= 1 || Math.abs(c) >= 1), u = A.fontSize !== null || A.fontWeight !== null || A.letterSpacing !== null || A.wordSpacing !== null || A.lineHeight !== null, d = n.snapshot.aspectRatio !== null && f.aspectRatio !== null && n.snapshot.aspectRatio !== f.aspectRatio, p = n.snapshot.padding !== f.padding || n.snapshot.margin !== f.margin;
|
|
3155
3154
|
if (!u && !d && !p && !a && !l && j.length === 0) return;
|
|
3156
|
-
let m =
|
|
3155
|
+
let m = ui({
|
|
3157
3156
|
id: `${N}n`,
|
|
3158
3157
|
travel: {
|
|
3159
3158
|
from: a ? {
|
|
@@ -3199,8 +3198,8 @@ box to correct in the first place. */
|
|
|
3199
3198
|
fade: null,
|
|
3200
3199
|
paint: j,
|
|
3201
3200
|
pinned: re
|
|
3202
|
-
}), h =
|
|
3203
|
-
t.element.style.animation = m.animation,
|
|
3201
|
+
}), h = aa(m.rules), b = t.element.getAttribute("style");
|
|
3202
|
+
t.element.style.animation = m.animation, To(t.element, m), Ii(n.snapshot.singleLine, C) && Fi(t.element), t.element.setAttribute(Ot, kt.ENTER);
|
|
3204
3203
|
let x = !1, S = () => {
|
|
3205
3204
|
x || (x = !0, t.element.removeEventListener("animationend", w), clearTimeout(E), b === null ? t.element.removeAttribute("style") : t.element.setAttribute("style", b), t.element.setAttribute(Ot, ""), typeof requestAnimationFrame == "function" ? requestAnimationFrame(() => h()) : h(), e.flights.delete(t.layoutId));
|
|
3206
3205
|
};
|
|
@@ -3224,11 +3223,11 @@ box to correct in the first place. */
|
|
|
3224
3223
|
});
|
|
3225
3224
|
return;
|
|
3226
3225
|
}
|
|
3227
|
-
let z = P && (w > 0 || v > 0) ? I.cloneNode(!0) : null, ie = z && typeof getComputedStyle == "function" ? getComputedStyle(I) : null, B = ie ?
|
|
3226
|
+
let z = P && (w > 0 || v > 0) ? I.cloneNode(!0) : null, ie = z && typeof getComputedStyle == "function" ? getComputedStyle(I) : null, B = ie ? no.map((e) => [e, ie[e]]) : [], V = z ? ui({
|
|
3228
3227
|
id: `${N}g`,
|
|
3229
3228
|
travel: {
|
|
3230
3229
|
from: Z,
|
|
3231
|
-
to:
|
|
3230
|
+
to: fr(b, x),
|
|
3232
3231
|
authoredFrom: Z,
|
|
3233
3232
|
authoredTo: Z,
|
|
3234
3233
|
duration: g,
|
|
@@ -3244,14 +3243,14 @@ box to correct in the first place. */
|
|
|
3244
3243
|
} : {
|
|
3245
3244
|
from: { opacity: 1 },
|
|
3246
3245
|
to: { opacity: 0 },
|
|
3247
|
-
duration:
|
|
3248
|
-
easing:
|
|
3246
|
+
duration: ho,
|
|
3247
|
+
easing: go
|
|
3249
3248
|
},
|
|
3250
3249
|
paint: [],
|
|
3251
3250
|
pinned: re
|
|
3252
|
-
}) : null, H = b.width * b.height < x.width * x.height, U = c.carry === "screen" && !s ? H ? a :
|
|
3251
|
+
}) : null, H = b.width * b.height < x.width * x.height, U = c.carry === "screen" && !s ? H ? a : so(I) : null, ae = U && x.width > 0 && b.width > 0 ? di({
|
|
3253
3252
|
id: `${N}c`,
|
|
3254
|
-
origin:
|
|
3253
|
+
origin: wo(U, p),
|
|
3255
3254
|
small: H ? b : x,
|
|
3256
3255
|
big: H ? x : b,
|
|
3257
3256
|
settling: H,
|
|
@@ -3261,7 +3260,7 @@ box to correct in the first place. */
|
|
|
3261
3260
|
ease: _,
|
|
3262
3261
|
selector: X(It, `${N}c`),
|
|
3263
3262
|
accelerated: !re
|
|
3264
|
-
}) : null, oe =
|
|
3263
|
+
}) : null, oe = aa([
|
|
3265
3264
|
...F.rules,
|
|
3266
3265
|
...R?.rules ?? [],
|
|
3267
3266
|
...V?.rules ?? [],
|
|
@@ -3271,38 +3270,38 @@ box to correct in the first place. */
|
|
|
3271
3270
|
let W = t.element.cloneNode(!0);
|
|
3272
3271
|
for (let e of [W, ...W.querySelectorAll("*")]) e.removeAttribute(Ot), e.removeAttribute(jt), e.removeAttribute(At), e.removeAttribute(Nt), e.removeAttribute(q), e.removeAttribute("id"), e.removeAttribute("name"), e.removeAttribute("data-testid"), e.style.removeProperty("animation");
|
|
3273
3272
|
W.setAttribute(Pt, ""), W.setAttribute("aria-hidden", "true"), W.inert = !0, W.style.visibility = "hidden", W.style.pointerEvents = "none", m.insertBefore(W, t.element);
|
|
3274
|
-
let
|
|
3275
|
-
for (let [e, n] of
|
|
3273
|
+
let G = t.element.getAttribute("style"), se = D?.inherited ?? [], ce = rn(t.element, () => p.appendChild(t.element));
|
|
3274
|
+
for (let [e, n] of se) t.element.style[e] = n;
|
|
3276
3275
|
t.element.style.position = "absolute";
|
|
3277
|
-
let
|
|
3278
|
-
if (t.element.style.left = F.heldEdge === null ? `${
|
|
3276
|
+
let le = F.translate ? b : x;
|
|
3277
|
+
if (t.element.style.left = F.heldEdge === null ? `${le.x}px` : `calc(${F.heldEdge}px - var(${Mn}))`, t.element.style.top = `${le.y}px`, t.element.style.margin = "0", t.element.style.minWidth = "0", t.element.style.minHeight = "0", t.element.style.maxWidth = "none", t.element.style.maxHeight = "none", t.element.style.contain = "layout", t.element.style.willChange = "left, top, width, height", t.element.style.zIndex = `${yo(m) + 1}`, t.element.style.animation = F.animation, To(t.element, F), Ii(n.snapshot.singleLine, C) && Fi(t.element), t.element.setAttribute(Ot, kt.ENTER), z && V) {
|
|
3279
3278
|
for (let e of [z, ...z.querySelectorAll("*")]) e !== z && e.hasAttribute("data-flemo-morph") && (e.style.opacity = "0"), e.removeAttribute(Ot), e.removeAttribute(jt), e.removeAttribute(At), e.removeAttribute(q), e.removeAttribute("id"), e.removeAttribute("name"), e.removeAttribute("data-testid");
|
|
3280
3279
|
z.setAttribute(Ft, ""), z.setAttribute("aria-hidden", "true"), z.inert = !0, w > 0 && (z.style.background = "none", z.style.boxShadow = "none", z.style.borderColor = "transparent");
|
|
3281
3280
|
for (let [e, t] of B) z.style[e] = t;
|
|
3282
|
-
z.style.position = "absolute", z.style.left = `${x.x}px`, z.style.top = `${x.y}px`, z.style.width = `${x.width}px`, z.style.height = `${x.height}px`, z.style.margin = "0", z.style.minWidth = "0", z.style.minHeight = "0", z.style.maxWidth = "none", z.style.maxHeight = "none", z.style.pointerEvents = "none", z.style.willChange = "left, top, width, height", z.style.contain = "layout", z.style.zIndex = `${
|
|
3281
|
+
z.style.position = "absolute", z.style.left = `${x.x}px`, z.style.top = `${x.y}px`, z.style.width = `${x.width}px`, z.style.height = `${x.height}px`, z.style.margin = "0", z.style.minWidth = "0", z.style.minHeight = "0", z.style.maxWidth = "none", z.style.maxHeight = "none", z.style.pointerEvents = "none", z.style.willChange = "left, top, width, height", z.style.contain = "layout", z.style.zIndex = `${yo(m) + 2}`, z.style.animation = V.animation, To(z, V), p.appendChild(z);
|
|
3283
3282
|
}
|
|
3284
3283
|
/* v8 ignore next -- as above: `departing` exists for every paired flight. */
|
|
3285
3284
|
R && (I.style.setProperty("animation", R.animation), I.setAttribute(Ot, kt.EXIT));
|
|
3286
|
-
let
|
|
3285
|
+
let ue = null, de = !1, fe = () => {
|
|
3287
3286
|
de || (de = !0, typeof requestAnimationFrame == "function" ? requestAnimationFrame(() => oe()) : oe());
|
|
3288
3287
|
}, pe = () => {
|
|
3289
|
-
|
|
3288
|
+
ue?.(), ue = null, e.residue.get(I) === pe && e.residue.delete(I), R && (I.style.removeProperty("animation"), I.setAttribute(Ot, "")), U && (e.residue.get(U) === pe && e.residue.delete(U), U.getAttribute("data-flemo-morph-camera") === `${N}c` && U.removeAttribute(It)), fe();
|
|
3290
3289
|
}, me = () => {
|
|
3291
|
-
if (!I.isConnected || !
|
|
3290
|
+
if (!I.isConnected || !io(o.getState().status)) {
|
|
3292
3291
|
pe();
|
|
3293
3292
|
return;
|
|
3294
3293
|
}
|
|
3295
|
-
R && e.residue.set(I, pe), U && ae && e.residue.set(U, pe),
|
|
3296
|
-
|
|
3294
|
+
R && e.residue.set(I, pe), U && ae && e.residue.set(U, pe), ue = o.subscribe((e) => {
|
|
3295
|
+
io(e.status) || pe();
|
|
3297
3296
|
});
|
|
3298
|
-
let t = setTimeout(pe, (y + g) * 1e3 + 1e3), n =
|
|
3299
|
-
|
|
3297
|
+
let t = setTimeout(pe, (y + g) * 1e3 + 1e3), n = ue;
|
|
3298
|
+
ue = () => {
|
|
3300
3299
|
clearTimeout(t), n();
|
|
3301
3300
|
};
|
|
3302
3301
|
}, he = [
|
|
3303
3302
|
i,
|
|
3304
3303
|
a,
|
|
3305
|
-
|
|
3304
|
+
oo(I)
|
|
3306
3305
|
].map((e) => e?.closest(Y("data-flemo-anim-hold")) ?? null).filter((e, t, n) => e !== null && e !== p && !p.contains(e) && n.indexOf(e) === t), ge = () => {
|
|
3307
3306
|
let e = he.map((e) => e.getAttribute(J)).find((e) => e !== null && e !== Rt.RELEASED);
|
|
3308
3307
|
p.setAttribute(J, e ?? Rt.RELEASED);
|
|
@@ -3314,7 +3313,7 @@ box to correct in the first place. */
|
|
|
3314
3313
|
attributeFilter: [J]
|
|
3315
3314
|
});
|
|
3316
3315
|
let ve = !1, ye = () => {
|
|
3317
|
-
ve || (ve = !0, t.element.removeEventListener("animationend", be), clearTimeout(Se), _e?.disconnect(), p.removeAttribute(J), T?.(),
|
|
3316
|
+
ve || (ve = !0, t.element.removeEventListener("animationend", be), clearTimeout(Se), _e?.disconnect(), p.removeAttribute(J), T?.(), G === null ? t.element.removeAttribute("style") : t.element.setAttribute("style", G), m.isConnected ? ce > 0 ? rn(t.element, () => W.replaceWith(t.element)) : W.replaceWith(t.element) : t.element.remove(), W.remove(), t.element.setAttribute(Ot, ""), z?.remove(), R || U ? me() : fe(), e.flights.delete(t.layoutId));
|
|
3318
3317
|
};
|
|
3319
3318
|
function be(e) {
|
|
3320
3319
|
e.animationName === F.geometryName && (g > 0 && e.elapsedTime === 0 || ye());
|
|
@@ -3334,19 +3333,19 @@ box to correct in the first place. */
|
|
|
3334
3333
|
clearTimeout(Se), Se = xe(e);
|
|
3335
3334
|
}
|
|
3336
3335
|
});
|
|
3337
|
-
},
|
|
3336
|
+
}, Do = (e, t, n, r = !1, i = !1) => {
|
|
3338
3337
|
if (!e.isConnected) return !1;
|
|
3339
3338
|
if (e.getAttribute("data-flemo-morph")) {
|
|
3340
3339
|
if (e.closest(Y("data-flemo-morph-layer")) === null) return !0;
|
|
3341
3340
|
for (let t of n.flights.values()) if (t.element === e) return !0;
|
|
3342
3341
|
return !1;
|
|
3343
3342
|
}
|
|
3344
|
-
let a =
|
|
3345
|
-
return a ? !r && !i && !
|
|
3346
|
-
},
|
|
3343
|
+
let a = oo(e);
|
|
3344
|
+
return a ? !r && !i && !io(a.getAttribute("data-flemo-status")) ? !1 : a.getAttribute(st) !== co(t) : !0;
|
|
3345
|
+
}, Oo = (e, t, n, r = !1) => {
|
|
3347
3346
|
for (let i of e.entries.values()) {
|
|
3348
|
-
if (i.element === t.element || i.layoutId !== t.layoutId || !
|
|
3349
|
-
let a =
|
|
3347
|
+
if (i.element === t.element || i.layoutId !== t.layoutId || !Do(i.element, n, e, r)) continue;
|
|
3348
|
+
let a = oo(i.element), o = Za(i.element, a, uo(n).exit);
|
|
3350
3349
|
return {
|
|
3351
3350
|
snapshot: {
|
|
3352
3351
|
rect: o.rect,
|
|
@@ -3367,54 +3366,54 @@ box to correct in the first place. */
|
|
|
3367
3366
|
};
|
|
3368
3367
|
}
|
|
3369
3368
|
return null;
|
|
3370
|
-
},
|
|
3369
|
+
}, ko = Y(Ot), Ao = (e, t, n, r = !1, i) => {
|
|
3371
3370
|
let a = i ?? t.getState().status;
|
|
3372
|
-
if (!i && !
|
|
3371
|
+
if (!i && !io(a)) return;
|
|
3373
3372
|
if (e.flights.has(n.layoutId)) {
|
|
3374
3373
|
e.delivered.delete(n.layoutId);
|
|
3375
3374
|
return;
|
|
3376
3375
|
}
|
|
3377
|
-
let o = n.element.parentElement?.closest(
|
|
3376
|
+
let o = n.element.parentElement?.closest(ko) ?? null, s = null;
|
|
3378
3377
|
if (o) {
|
|
3379
3378
|
if (!r) {
|
|
3380
|
-
queueMicrotask(() =>
|
|
3379
|
+
queueMicrotask(() => Ao(e, t, n, !0, i));
|
|
3381
3380
|
return;
|
|
3382
3381
|
}
|
|
3383
3382
|
s = [...e.flights.values()].find((e) => e.element === o) ?? null;
|
|
3384
3383
|
}
|
|
3385
|
-
let c = s ? null :
|
|
3386
|
-
if (!s && (!c || !
|
|
3387
|
-
let u = e.snapshots.get(n.layoutId), d = i !== void 0, f = u && u.element !== n.element &&
|
|
3388
|
-
f &&
|
|
3389
|
-
},
|
|
3384
|
+
let c = s ? null : oo(n.element), l = s ? null : so(n.element);
|
|
3385
|
+
if (!s && (!c || !lo(c, a)) || e.delivered.delete(n.layoutId)) return;
|
|
3386
|
+
let u = e.snapshots.get(n.layoutId), d = i !== void 0, f = u && u.element !== n.element && Do(u.element, a, e, d, !0) ? u : Oo(e, n, a, d);
|
|
3387
|
+
f && Eo(e, n, f, a, c, l, t, s);
|
|
3388
|
+
}, jo = (e, t) => {
|
|
3390
3389
|
/* v8 ignore next -- both callers pass `resolveMorphLayer`, which yields null
|
|
3391
3390
|
only under SSR; in a browser it always resolves or creates a layer. */
|
|
3392
3391
|
if (!t) return;
|
|
3393
3392
|
let n = new Set([...e.flights.values()].map((e) => e.element));
|
|
3394
|
-
for (let r of t.querySelectorAll(
|
|
3395
|
-
},
|
|
3396
|
-
|
|
3393
|
+
for (let r of t.querySelectorAll(ko)) !r.getAttribute("data-flemo-morph") || n.has(r) || (e.residue.get(r)?.(), e.residue.delete(r), r.remove());
|
|
3394
|
+
}, Mo = (e, t) => {
|
|
3395
|
+
jo(e, t);
|
|
3397
3396
|
for (let [t, n] of e.snapshots) n.element.isConnected || e.snapshots.delete(t);
|
|
3398
3397
|
for (let t of e.entries.values()) {
|
|
3399
3398
|
if (!t.element.isConnected) continue;
|
|
3400
|
-
let n = e.snapshots.get(t.layoutId), r =
|
|
3399
|
+
let n = e.snapshots.get(t.layoutId), r = oo(t.element);
|
|
3401
3400
|
n && r && r.getAttribute("data-flemo-active") !== "true" || e.snapshots.set(t.layoutId, {
|
|
3402
|
-
snapshot:
|
|
3401
|
+
snapshot: or(t.element),
|
|
3403
3402
|
element: t.element
|
|
3404
3403
|
});
|
|
3405
3404
|
}
|
|
3406
|
-
},
|
|
3407
|
-
let n =
|
|
3408
|
-
|
|
3409
|
-
for (let r of [...n.entries.values()]) r.element.isConnected &&
|
|
3405
|
+
}, No = (e, t) => {
|
|
3406
|
+
let n = Lo(e);
|
|
3407
|
+
Mo(n, mi(e));
|
|
3408
|
+
for (let r of [...n.entries.values()]) r.element.isConnected && Ao(n, e, r, !1, t);
|
|
3410
3409
|
return [...n.flights.values()];
|
|
3410
|
+
}, Po = (e) => {
|
|
3411
|
+
Lo(e).delivered.clear();
|
|
3411
3412
|
}, Fo = (e) => {
|
|
3412
|
-
|
|
3413
|
-
}, Io = (e) => {
|
|
3414
|
-
let t = Ro(e);
|
|
3413
|
+
let t = Lo(e);
|
|
3415
3414
|
for (let e of t.flights.keys()) t.delivered.add(e);
|
|
3416
|
-
},
|
|
3417
|
-
let t =
|
|
3415
|
+
}, Io = (e) => [...Lo(e).flights.values()], Lo = (e) => {
|
|
3416
|
+
let t = $a.get(e);
|
|
3418
3417
|
if (t) return t;
|
|
3419
3418
|
let n = {
|
|
3420
3419
|
entries: /* @__PURE__ */ new Map(),
|
|
@@ -3427,14 +3426,14 @@ box to correct in the first place. */
|
|
|
3427
3426
|
unsubscribe: () => {}
|
|
3428
3427
|
};
|
|
3429
3428
|
return n.unsubscribe = e.subscribe((t, r) => {
|
|
3430
|
-
if (t.status !== r.status &&
|
|
3431
|
-
|
|
3429
|
+
if (t.status !== r.status && io(t.status)) {
|
|
3430
|
+
Mo(n, mi(e));
|
|
3432
3431
|
for (let e of [...n.flights.values()]) e.finish();
|
|
3433
3432
|
}
|
|
3434
|
-
}),
|
|
3433
|
+
}), $a.set(e, n), n;
|
|
3435
3434
|
};
|
|
3436
|
-
function
|
|
3437
|
-
let { layoutId: n, navigateStore: r } = t, i = t.name ?? "shared", a =
|
|
3435
|
+
function Ro(e, t) {
|
|
3436
|
+
let { layoutId: n, navigateStore: r } = t, i = t.name ?? "shared", a = Lo(r), o = e.parentElement?.closest(ko) ?? null, s = e.closest(`[${Mt}]`) !== null, c = a.entries.get(e)?.restSize ?? null, l = o && !s ? e.getBoundingClientRect() : null, u = {
|
|
3438
3437
|
element: e,
|
|
3439
3438
|
layoutId: String(n),
|
|
3440
3439
|
name: i,
|
|
@@ -3446,43 +3445,43 @@ function zo(e, t) {
|
|
|
3446
3445
|
a.entries.set(e, u), e.hasAttribute("data-flemo-morph") || e.setAttribute(Ot, "");
|
|
3447
3446
|
let d = String(i);
|
|
3448
3447
|
e.getAttribute("data-flemo-morph-name") !== d && e.setAttribute(At, d), e.getAttribute("data-flemo-morph-id") !== u.layoutId && e.setAttribute(jt, u.layoutId);
|
|
3449
|
-
let f =
|
|
3450
|
-
return f === null || p !== null && p !== f.getAttribute("data-flemo-router") ? t.ownership && (e.setAttribute(ot, t.ownership.status), e.setAttribute(st, t.ownership.active ? "true" : "false")) : e.hasAttribute("data-flemo-status") && (e.removeAttribute(ot), e.removeAttribute(st)),
|
|
3448
|
+
let f = ao(e), p = e.getAttribute(lt);
|
|
3449
|
+
return f === null || p !== null && p !== f.getAttribute("data-flemo-router") ? t.ownership && (e.setAttribute(ot, t.ownership.status), e.setAttribute(st, t.ownership.active ? "true" : "false")) : e.hasAttribute("data-flemo-status") && (e.removeAttribute(ot), e.removeAttribute(st)), Ao(a, r, u), () => {
|
|
3451
3450
|
a.entries.get(e) === u && a.entries.delete(e);
|
|
3452
3451
|
};
|
|
3453
3452
|
}
|
|
3454
3453
|
//#endregion
|
|
3455
3454
|
//#region src/screen/partLayer.ts
|
|
3456
|
-
var
|
|
3457
|
-
t ?
|
|
3458
|
-
},
|
|
3455
|
+
var zo = /* @__PURE__ */ new WeakMap(), Bo = (e, t) => {
|
|
3456
|
+
t ? zo.set(e, t) : zo.delete(e);
|
|
3457
|
+
}, Vo = (e) => {
|
|
3459
3458
|
if (p()) return null;
|
|
3460
|
-
let t =
|
|
3459
|
+
let t = zo.get(e);
|
|
3461
3460
|
if (t?.isConnected) return t;
|
|
3462
3461
|
let n = document.body.querySelector(`:scope > [${Tt}]`);
|
|
3463
3462
|
return n || (n = document.createElement("div"), n.setAttribute(Tt, ""), document.body.appendChild(n)), n;
|
|
3464
|
-
},
|
|
3463
|
+
}, Ho = (e) => {
|
|
3465
3464
|
let t = e?.currentTime ?? null;
|
|
3466
3465
|
if (t === null) return null;
|
|
3467
3466
|
if (typeof t == "number") return t;
|
|
3468
3467
|
let n = t;
|
|
3469
3468
|
return typeof n.value == "number" ? n.value : null;
|
|
3470
|
-
},
|
|
3469
|
+
}, Uo = (e, t) => {
|
|
3471
3470
|
for (let n of e) {
|
|
3472
3471
|
n.pause();
|
|
3473
3472
|
try {
|
|
3474
3473
|
n.currentTime = t * 1e3;
|
|
3475
3474
|
} catch {}
|
|
3476
3475
|
}
|
|
3477
|
-
},
|
|
3476
|
+
}, Wo = (e, t, n) => {
|
|
3478
3477
|
let r = n < 0 ? 0 : n > 1 ? 1 : n;
|
|
3479
|
-
|
|
3480
|
-
},
|
|
3481
|
-
let a = Math.max(r, 1 / 60), o = (
|
|
3478
|
+
Uo(e, t.start + gi(t.ease)(r) * t.duration);
|
|
3479
|
+
}, Go = (e, t, n, r, i) => {
|
|
3480
|
+
let a = Math.max(r, 1 / 60), o = (Ho(e[0] ?? null) ?? 0) / 1e3, s = t.start + t.duration, c = Math.max(n ? s - o : o, 0), l = c > 0 ? c / a : 1;
|
|
3482
3481
|
for (let t of e) {
|
|
3483
|
-
let e =
|
|
3482
|
+
let e = Ho(t) ?? 0, r = n ? l : -l;
|
|
3484
3483
|
t.playbackRate = r, !n && i && t.addEventListener("finish", i, { once: !0 });
|
|
3485
|
-
let a =
|
|
3484
|
+
let a = Ho(t.timeline);
|
|
3486
3485
|
if (a === null) {
|
|
3487
3486
|
t.play();
|
|
3488
3487
|
continue;
|
|
@@ -3493,18 +3492,18 @@ var Bo = /* @__PURE__ */ new WeakMap(), Vo = (e, t) => {
|
|
|
3493
3492
|
t.play();
|
|
3494
3493
|
}
|
|
3495
3494
|
}
|
|
3496
|
-
},
|
|
3495
|
+
}, Ko = "flemo-morph-", qo = (e) => {
|
|
3497
3496
|
let t = e.animationName;
|
|
3498
|
-
return typeof t == "string" && t.startsWith(
|
|
3499
|
-
},
|
|
3497
|
+
return typeof t == "string" && t.startsWith(Ko);
|
|
3498
|
+
}, Jo = () => typeof document > "u" || typeof document.getAnimations != "function" ? [] : document.getAnimations().filter(qo), Yo = (e, t = "POPPING") => {
|
|
3500
3499
|
let n = !1;
|
|
3501
|
-
|
|
3502
|
-
n ||
|
|
3500
|
+
Po(e), No(e, t), Io(e).length === 0 && requestAnimationFrame(() => {
|
|
3501
|
+
n || Io(e).length > 0 || (No(e, t), a(0));
|
|
3503
3502
|
});
|
|
3504
|
-
let r = () =>
|
|
3505
|
-
for (let t of
|
|
3503
|
+
let r = () => Io(e)[0] ?? null, i = () => {
|
|
3504
|
+
for (let t of Io(e)) t.suspendBackstop();
|
|
3506
3505
|
}, a = (e) => {
|
|
3507
|
-
i(),
|
|
3506
|
+
i(), Uo(Jo(), e);
|
|
3508
3507
|
};
|
|
3509
3508
|
return a(0), queueMicrotask(() => a(0)), {
|
|
3510
3509
|
get active() {
|
|
@@ -3513,69 +3512,69 @@ var Bo = /* @__PURE__ */ new WeakMap(), Vo = (e, t) => {
|
|
|
3513
3512
|
scrub: (e) => {
|
|
3514
3513
|
if (n) return;
|
|
3515
3514
|
let t = r();
|
|
3516
|
-
t && (i(),
|
|
3515
|
+
t && (i(), Wo(Jo(), t, e));
|
|
3517
3516
|
},
|
|
3518
3517
|
settle: (t, i) => {
|
|
3519
3518
|
if (n) return;
|
|
3520
3519
|
n = !0;
|
|
3521
3520
|
let a = r();
|
|
3522
3521
|
if (!a) return;
|
|
3523
|
-
let o =
|
|
3524
|
-
t &&
|
|
3525
|
-
for (let t of
|
|
3526
|
-
|
|
3527
|
-
for (let t of
|
|
3522
|
+
let o = Jo(), s = Math.max(i, 1 / 60);
|
|
3523
|
+
t && Fo(e);
|
|
3524
|
+
for (let t of Io(e)) t.armBackstop(s);
|
|
3525
|
+
Go(o, a, t, i, () => {
|
|
3526
|
+
for (let t of Io(e)) t.finish();
|
|
3528
3527
|
});
|
|
3529
3528
|
}
|
|
3530
3529
|
};
|
|
3531
|
-
},
|
|
3532
|
-
let t =
|
|
3533
|
-
return t === void 0 ? (
|
|
3534
|
-
},
|
|
3530
|
+
}, Xo = "data-flemo", Zo = /* @__PURE__ */ new WeakMap(), Qo = 0, $o = (e) => {
|
|
3531
|
+
let t = Zo.get(e);
|
|
3532
|
+
return t === void 0 ? (Qo += 1, Zo.set(e, Qo), Qo) : t;
|
|
3533
|
+
}, es = () => [
|
|
3535
3534
|
ke,
|
|
3536
3535
|
Fe,
|
|
3537
3536
|
Ge
|
|
3538
|
-
].map((e) => [...e.entries()].map(([e, t]) => `${e}:${
|
|
3539
|
-
let t =
|
|
3537
|
+
].map((e) => [...e.entries()].map(([e, t]) => `${e}:${$o(t)}`).join(",")).join("|"), ts = 4, ns = /* @__PURE__ */ new Map(), rs = (e) => {
|
|
3538
|
+
let t = ns.get(e);
|
|
3540
3539
|
if (t !== void 0) return t;
|
|
3541
|
-
let n =
|
|
3542
|
-
if (
|
|
3543
|
-
let e =
|
|
3540
|
+
let n = Qr(ke.values(), Fe.values(), Ge.values());
|
|
3541
|
+
if (ns.size >= ts) {
|
|
3542
|
+
let e = ns.keys().next();
|
|
3544
3543
|
/* v8 ignore next -- the size check above is what guarantees a first key. */
|
|
3545
|
-
e.done ||
|
|
3544
|
+
e.done || ns.delete(e.value);
|
|
3546
3545
|
}
|
|
3547
|
-
return
|
|
3546
|
+
return ns.set(e, n), n;
|
|
3548
3547
|
};
|
|
3549
|
-
function
|
|
3548
|
+
function is() {
|
|
3550
3549
|
/* v8 ignore next -- there is no document to write the sheet into. */
|
|
3551
3550
|
if (p()) return;
|
|
3552
|
-
let e =
|
|
3553
|
-
t || (t = document.createElement("style"), t.setAttribute(
|
|
3551
|
+
let e = rs(es()), t = document.head.querySelector(`style[${Xo}]`);
|
|
3552
|
+
t || (t = document.createElement("style"), t.setAttribute(Xo, ""), document.head.appendChild(t)), t.textContent !== e && (t.textContent = e);
|
|
3554
3553
|
}
|
|
3555
3554
|
//#endregion
|
|
3556
3555
|
//#region src/transition/registerTransitionDefinitions.ts
|
|
3557
|
-
var
|
|
3556
|
+
var as = /* @__PURE__ */ new Map(), os = /* @__PURE__ */ new Map(), ss = /* @__PURE__ */ new Map(), cs = /* @__PURE__ */ new Map(), ls = (e, t) => {
|
|
3558
3557
|
e.set(t, (e.get(t) ?? 0) + 1);
|
|
3559
|
-
},
|
|
3558
|
+
}, us = (e, t) => {
|
|
3560
3559
|
let n = (e.get(t) ?? 1) - 1;
|
|
3561
3560
|
return n <= 0 ? (e.delete(t), !0) : (e.set(t, n), !1);
|
|
3562
3561
|
};
|
|
3563
|
-
function
|
|
3564
|
-
for (let t of e) ke.set(t.name, t),
|
|
3565
|
-
for (let e of t) Fe.set(e.name, e),
|
|
3566
|
-
for (let e of n) Ge.set(e.name, e),
|
|
3567
|
-
for (let e of r) tt.set(e.name, e),
|
|
3568
|
-
return
|
|
3569
|
-
for (let t of e)
|
|
3570
|
-
for (let e of t)
|
|
3571
|
-
for (let e of n)
|
|
3572
|
-
for (let e of r)
|
|
3573
|
-
|
|
3562
|
+
function ds(e, t, n = [], r = []) {
|
|
3563
|
+
for (let t of e) ke.set(t.name, t), ls(as, t.name);
|
|
3564
|
+
for (let e of t) Fe.set(e.name, e), ls(os, e.name);
|
|
3565
|
+
for (let e of n) Ge.set(e.name, e), ls(ss, e.name);
|
|
3566
|
+
for (let e of r) tt.set(e.name, e), ls(cs, e.name);
|
|
3567
|
+
return is(), () => {
|
|
3568
|
+
for (let t of e) us(as, t.name) && ke.delete(t.name);
|
|
3569
|
+
for (let e of t) us(os, e.name) && Fe.delete(e.name);
|
|
3570
|
+
for (let e of n) us(ss, e.name) && Ge.delete(e.name);
|
|
3571
|
+
for (let e of r) us(cs, e.name) && tt.delete(e.name);
|
|
3572
|
+
is();
|
|
3574
3573
|
};
|
|
3575
3574
|
}
|
|
3576
3575
|
//#endregion
|
|
3577
3576
|
//#region src/transition/enteringInitialStyle.ts
|
|
3578
|
-
function
|
|
3577
|
+
function fs(e) {
|
|
3579
3578
|
let { initial: t, isActive: n, status: r } = e;
|
|
3580
3579
|
if (!n || r !== "PUSHING" && r !== "REPLACING") return {};
|
|
3581
3580
|
let i = {};
|
|
@@ -3583,19 +3582,19 @@ function ps(e) {
|
|
|
3583
3582
|
}
|
|
3584
3583
|
//#endregion
|
|
3585
3584
|
//#region src/transition/animateInline.ts
|
|
3586
|
-
var
|
|
3587
|
-
let r =
|
|
3588
|
-
r || (r = /* @__PURE__ */ new Map(),
|
|
3585
|
+
var ps = (e) => typeof HTMLElement < "u" && e instanceof HTMLElement, ms = /* @__PURE__ */ new WeakMap(), hs = Symbol("flemo-inline-writer"), gs = /* @__PURE__ */ new WeakMap(), _s = (e, t, n = hs) => {
|
|
3586
|
+
let r = ms.get(e);
|
|
3587
|
+
r || (r = /* @__PURE__ */ new Map(), ms.set(e, r));
|
|
3589
3588
|
let i = r.get(t);
|
|
3590
3589
|
i || (i = {
|
|
3591
3590
|
original: e.style.getPropertyValue(t),
|
|
3592
3591
|
owners: /* @__PURE__ */ new Set()
|
|
3593
3592
|
}, r.set(t, i)), i.owners.add(n);
|
|
3594
|
-
},
|
|
3595
|
-
|
|
3593
|
+
}, vs = (e, t) => {
|
|
3594
|
+
ps(e) && (_s(e, "transition", t), e.style.transition = "none", gs.set(e, t));
|
|
3596
3595
|
}, $ = (e, t, n) => {
|
|
3597
|
-
let r =
|
|
3598
|
-
(!n ||
|
|
3596
|
+
let r = ms.get(e);
|
|
3597
|
+
(!n || gs.get(e) === n) && (e.style.transition = "", gs.delete(e));
|
|
3599
3598
|
let i = (t) => {
|
|
3600
3599
|
let i = r?.get(t);
|
|
3601
3600
|
if (!i) {
|
|
@@ -3613,19 +3612,19 @@ var ms = (e) => typeof HTMLElement < "u" && e instanceof HTMLElement, hs = /* @_
|
|
|
3613
3612
|
return;
|
|
3614
3613
|
}
|
|
3615
3614
|
n || (e.style.removeProperty("transform"), e.style.removeProperty("opacity"));
|
|
3616
|
-
},
|
|
3617
|
-
if (!
|
|
3618
|
-
let i = e, a =
|
|
3615
|
+
}, ys = (e, t, n = {}, r) => {
|
|
3616
|
+
if (!ps(e)) return Promise.resolve();
|
|
3617
|
+
let i = e, a = Pr(t);
|
|
3619
3618
|
if (a.length === 0) return Promise.resolve();
|
|
3620
|
-
let o = typeof n.duration == "number" ? n.duration : 0, s = typeof n.delay == "number" && n.delay > 0 ? n.delay : 0, c =
|
|
3619
|
+
let o = typeof n.duration == "number" ? n.duration : 0, s = typeof n.delay == "number" && n.delay > 0 ? n.delay : 0, c = Ir(n.ease);
|
|
3621
3620
|
if (o <= 0 && s <= 0) {
|
|
3622
|
-
i.style.transition = "none",
|
|
3623
|
-
for (let e of a)
|
|
3621
|
+
i.style.transition = "none", gs.set(i, r);
|
|
3622
|
+
for (let e of a) _s(i, e.property, r), i.style.setProperty(e.property, e.value);
|
|
3624
3623
|
return Promise.resolve();
|
|
3625
3624
|
}
|
|
3626
3625
|
let l = a.map((e) => `${e.property} ${o}s ${c} ${s}s`).join(", ");
|
|
3627
|
-
i.style.transition = l,
|
|
3628
|
-
for (let e of a)
|
|
3626
|
+
i.style.transition = l, gs.set(i, r), i.offsetWidth;
|
|
3627
|
+
for (let e of a) _s(i, e.property, r), i.style.setProperty(e.property, e.value);
|
|
3629
3628
|
return new Promise((e) => {
|
|
3630
3629
|
let t = !1, n = () => {
|
|
3631
3630
|
t || (t = !0, i.removeEventListener("transitionend", r), e());
|
|
@@ -3634,15 +3633,15 @@ var ms = (e) => typeof HTMLElement < "u" && e instanceof HTMLElement, hs = /* @_
|
|
|
3634
3633
|
};
|
|
3635
3634
|
i.addEventListener("transitionend", r), setTimeout(n, (o + s) * 1e3 + 60);
|
|
3636
3635
|
});
|
|
3637
|
-
},
|
|
3638
|
-
|
|
3639
|
-
},
|
|
3636
|
+
}, bs = (e) => `${Math.round(e * 1e3) / 1e3}s`, xs = /* @__PURE__ */ new WeakSet(), Ss = (e) => {
|
|
3637
|
+
xs.add(e);
|
|
3638
|
+
}, Cs = (e) => {
|
|
3640
3639
|
let { element: t, expectedName: n, motion: r } = e, i = !1, a = !1, o = (n) => {
|
|
3641
|
-
i = !0, t.style.animation = "none", t.offsetWidth, t.style.removeProperty("animation"), n.mode === "clear" ? (t.style.removeProperty("animation-delay"), a = !1) : n.mode === "set" && (
|
|
3640
|
+
i = !0, t.style.animation = "none", t.offsetWidth, t.style.removeProperty("animation"), n.mode === "clear" ? (t.style.removeProperty("animation-delay"), a = !1) : n.mode === "set" && (_s(t, "animation-delay", e.writer), t.style.animationDelay = bs(n.seconds), a = !0), i = !1;
|
|
3642
3641
|
}, s = (a) => {
|
|
3643
|
-
if (i || a.target !== t || !
|
|
3644
|
-
if (
|
|
3645
|
-
|
|
3642
|
+
if (i || a.target !== t || !Jr(a.animationName, n)) return;
|
|
3643
|
+
if (xs.has(t)) {
|
|
3644
|
+
xs.delete(t);
|
|
3646
3645
|
return;
|
|
3647
3646
|
}
|
|
3648
3647
|
if (!e.isLive() || e.budgetUsed() >= 4) {
|
|
@@ -3674,42 +3673,42 @@ var ms = (e) => typeof HTMLElement < "u" && e instanceof HTMLElement, hs = /* @_
|
|
|
3674
3673
|
o({ mode: "clear" });
|
|
3675
3674
|
}
|
|
3676
3675
|
};
|
|
3677
|
-
},
|
|
3676
|
+
}, ws = 2147482e3, Ts = /* @__PURE__ */ new WeakMap(), Es = (e, t, n) => {
|
|
3678
3677
|
let r = e.ownerDocument.createElement("div");
|
|
3679
3678
|
r.setAttribute(Dt, ""), r.setAttribute("aria-hidden", "true"), r.style.width = `${t}px`, r.style.height = `${n}px`, r.style.flex = "0 0 auto", r.style.pointerEvents = "none", r.style.visibility = "hidden";
|
|
3680
3679
|
let i = e.ownerDocument.defaultView?.getComputedStyle(e);
|
|
3681
3680
|
return i && (r.style.marginTop = i.marginTop, r.style.marginRight = i.marginRight, r.style.marginBottom = i.marginBottom, r.style.marginLeft = i.marginLeft), r;
|
|
3681
|
+
}, Ds = (e) => {
|
|
3682
|
+
e.style.pointerEvents = "none", e.style.zIndex = String(ws);
|
|
3682
3683
|
}, Os = (e) => {
|
|
3683
|
-
e.style.pointerEvents = "none", e.style.zIndex = String(Ts);
|
|
3684
|
-
}, ks = (e) => {
|
|
3685
3684
|
let t = e.getAttribute(lt), n = e.getAttribute(dt), r = e.getAttribute(ht), i = e.getAttribute(gt);
|
|
3686
3685
|
for (let a of document.querySelectorAll(Y(dt))) if (a !== e && a.getAttribute("data-flemo-router") === t && a.getAttribute("data-flemo-bar") === n && a.getAttribute("data-flemo-bar-id") === r && a.getAttribute("data-flemo-bar-id-type") === i) return !0;
|
|
3687
3686
|
return !1;
|
|
3688
|
-
},
|
|
3687
|
+
}, ks = (e) => {
|
|
3689
3688
|
let t = [];
|
|
3690
|
-
for (let n of e) n && (n.getAttribute("data-flemo-bar-riding") !== "false" && !
|
|
3689
|
+
for (let n of e) n && (n.getAttribute("data-flemo-bar-riding") !== "false" && !Os(n) || t.push(...n.querySelectorAll(Y(q))));
|
|
3691
3690
|
return t;
|
|
3692
|
-
},
|
|
3691
|
+
}, As = (e) => {
|
|
3693
3692
|
let { scope: t, bars: n, layer: r, strandedMs: i } = e;
|
|
3694
3693
|
if (!r) return null;
|
|
3695
3694
|
let a = t.getAttribute(at);
|
|
3696
3695
|
if (a === null) return null;
|
|
3697
|
-
let o =
|
|
3696
|
+
let o = ks(n);
|
|
3698
3697
|
if (o.length === 0) return null;
|
|
3699
|
-
|
|
3698
|
+
Ds(r);
|
|
3700
3699
|
let s = [];
|
|
3701
3700
|
for (let e of o) {
|
|
3702
3701
|
let t = e.parentNode, n = e.offsetWidth, i = e.offsetHeight;
|
|
3703
3702
|
if (n <= 0 || i <= 0) continue;
|
|
3704
|
-
let o =
|
|
3703
|
+
let o = Es(e, n, i), c = {
|
|
3705
3704
|
element: e,
|
|
3706
3705
|
parent: t,
|
|
3707
3706
|
nextSibling: e.nextSibling,
|
|
3708
3707
|
inlineStyle: e.getAttribute("style"),
|
|
3709
3708
|
standIn: o
|
|
3710
3709
|
};
|
|
3711
|
-
t.insertBefore(o, e),
|
|
3712
|
-
let l =
|
|
3710
|
+
t.insertBefore(o, e), Ss(e), rn(e, () => r.appendChild(e), { includeRoot: !0 });
|
|
3711
|
+
let l = Zt(o.getBoundingClientRect(), r);
|
|
3713
3712
|
e.setAttribute(Et, a), e.style.position = "absolute", e.style.left = `${l.x}px`, e.style.top = `${l.y}px`, e.style.width = `${l.width}px`, e.style.height = `${l.height}px`, e.style.boxSizing = "border-box", e.style.margin = "0", s.push(c);
|
|
3714
3713
|
}
|
|
3715
3714
|
if (s.length === 0) return null;
|
|
@@ -3718,7 +3717,7 @@ var ms = (e) => typeof HTMLElement < "u" && e instanceof HTMLElement, hs = /* @_
|
|
|
3718
3717
|
};
|
|
3719
3718
|
c();
|
|
3720
3719
|
let l = Symbol("bar-part-staging");
|
|
3721
|
-
|
|
3720
|
+
Ts.set(r, l);
|
|
3722
3721
|
let u = typeof MutationObserver == "function" ? new MutationObserver(c) : null;
|
|
3723
3722
|
u?.observe(t, {
|
|
3724
3723
|
attributes: !0,
|
|
@@ -3726,74 +3725,74 @@ var ms = (e) => typeof HTMLElement < "u" && e instanceof HTMLElement, hs = /* @_
|
|
|
3726
3725
|
});
|
|
3727
3726
|
let d = !1, f = () => {
|
|
3728
3727
|
if (!d) {
|
|
3729
|
-
d = !0, clearTimeout(p), u?.disconnect(),
|
|
3728
|
+
d = !0, clearTimeout(p), u?.disconnect(), Ts.get(r) === l && (Ts.delete(r), r.removeAttribute(J));
|
|
3730
3729
|
for (let e of s) {
|
|
3731
3730
|
if (e.element.removeAttribute(Et), e.inlineStyle === null ? e.element.removeAttribute("style") : e.element.setAttribute("style", e.inlineStyle), !e.parent.isConnected) {
|
|
3732
3731
|
e.element.remove(), e.standIn.remove();
|
|
3733
3732
|
continue;
|
|
3734
3733
|
}
|
|
3735
|
-
|
|
3734
|
+
Ss(e.element), rn(e.element, () => {
|
|
3736
3735
|
e.standIn.isConnected ? e.standIn.replaceWith(e.element) : e.parent.insertBefore(e.element, e.nextSibling);
|
|
3737
3736
|
}, { includeRoot: !0 }), e.standIn.remove();
|
|
3738
3737
|
}
|
|
3739
3738
|
}
|
|
3740
3739
|
}, p = setTimeout(f, i);
|
|
3741
3740
|
return { release: f };
|
|
3742
|
-
},
|
|
3741
|
+
}, js = (e) => {
|
|
3743
3742
|
if (typeof e.querySelectorAll == "function") {
|
|
3744
3743
|
e.tagName === "IMG" && !e.hasAttribute("decoding") && e.setAttribute("decoding", "async");
|
|
3745
3744
|
for (let t of Array.from(e.querySelectorAll("img:not([decoding])"))) t.setAttribute("decoding", "async");
|
|
3746
3745
|
}
|
|
3747
|
-
},
|
|
3748
|
-
function
|
|
3749
|
-
let e =
|
|
3750
|
-
if (
|
|
3746
|
+
}, Ms = 0, Ns = [], Ps = [];
|
|
3747
|
+
function Fs() {
|
|
3748
|
+
let e = Ms === 0;
|
|
3749
|
+
if (Ms += 1, e) for (let e of Ps) e();
|
|
3751
3750
|
let t = !1;
|
|
3752
3751
|
return () => {
|
|
3753
|
-
if (t || (t = !0, --
|
|
3754
|
-
let e =
|
|
3755
|
-
|
|
3752
|
+
if (t || (t = !0, --Ms, Ms > 0)) return;
|
|
3753
|
+
let e = Ns;
|
|
3754
|
+
Ns = [];
|
|
3756
3755
|
for (let t of e) t();
|
|
3757
3756
|
};
|
|
3758
3757
|
}
|
|
3759
|
-
var
|
|
3760
|
-
function
|
|
3761
|
-
return
|
|
3762
|
-
|
|
3758
|
+
var Is = () => Ms > 0;
|
|
3759
|
+
function Ls(e) {
|
|
3760
|
+
return Ps.push(e), () => {
|
|
3761
|
+
Ps = Ps.filter((t) => t !== e);
|
|
3763
3762
|
};
|
|
3764
3763
|
}
|
|
3765
|
-
function
|
|
3766
|
-
|
|
3764
|
+
function Rs(e) {
|
|
3765
|
+
Ms === 0 ? e() : Ns.push(e);
|
|
3767
3766
|
}
|
|
3768
3767
|
//#endregion
|
|
3769
3768
|
//#region src/core/engine/imageDecodeOffloader.ts
|
|
3770
|
-
var
|
|
3769
|
+
var zs = 8, Bs = 2, Vs = 96, Hs = 15e3, Us = 3e3, Ws = "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7", Gs = "flemo-image-scale-v1", Ks = new Set(P), qs = (e) => {
|
|
3771
3770
|
let t = e.closest(Y(at));
|
|
3772
|
-
return !!t &&
|
|
3773
|
-
},
|
|
3771
|
+
return !!t && Ks.has(t.getAttribute("data-flemo-status") ?? "");
|
|
3772
|
+
}, Js = (e) => {
|
|
3774
3773
|
if (e.naturalWidth <= 0 || e.naturalHeight <= 0 || e.boxWidth <= 0 || e.boxHeight <= 0) return !1;
|
|
3775
3774
|
let t = e.boxWidth * e.boxHeight * e.devicePixelRatio * e.devicePixelRatio;
|
|
3776
3775
|
return e.naturalWidth * e.naturalHeight > t * 8;
|
|
3777
|
-
},
|
|
3776
|
+
}, Ys = "onmessage = async (e) => {\n const { url, targetWidth, neededArea, ratio } = e.data;\n try {\n const response = await fetch(url);\n if (!response.ok) throw new Error(\"http \" + response.status);\n const blob = await response.blob();\n const full = await createImageBitmap(blob);\n if (full.width * full.height <= neededArea * ratio) {\n full.close();\n postMessage({ url, skip: true });\n return;\n }\n const scale = targetWidth / full.width;\n const canvas = new OffscreenCanvas(targetWidth, Math.max(1, Math.round(full.height * scale)));\n const context = canvas.getContext(\"2d\");\n context.imageSmoothingQuality = \"high\";\n context.drawImage(full, 0, 0, canvas.width, canvas.height);\n full.close();\n const out = await canvas.convertToBlob({ type: \"image/jpeg\", quality: 0.85 });\n postMessage({ url, blob: out });\n } catch (error) {\n postMessage({ url, error: String(error) });\n }\n};", Xs = () => typeof Worker < "u" && typeof OffscreenCanvas < "u" && typeof createImageBitmap == "function" && typeof MutationObserver < "u" && typeof URL < "u" && typeof URL.createObjectURL == "function", Zs = async (e, t) => {
|
|
3778
3777
|
try {
|
|
3779
3778
|
if (typeof caches > "u") return;
|
|
3780
|
-
await (await caches.open(
|
|
3779
|
+
await (await caches.open(Gs)).put(e, new Response(t, { headers: { "content-type": t.type } }));
|
|
3781
3780
|
} catch {}
|
|
3782
|
-
},
|
|
3781
|
+
}, Qs = async (e) => {
|
|
3783
3782
|
try {
|
|
3784
3783
|
if (typeof caches > "u") return null;
|
|
3785
|
-
let t = await (await caches.open(
|
|
3784
|
+
let t = await (await caches.open(Gs)).match(e);
|
|
3786
3785
|
return t ? await t.blob() : null;
|
|
3787
3786
|
} catch {
|
|
3788
3787
|
return null;
|
|
3789
3788
|
}
|
|
3790
3789
|
};
|
|
3791
|
-
function
|
|
3792
|
-
if (!
|
|
3790
|
+
function $s(e) {
|
|
3791
|
+
if (!Xs()) return () => {};
|
|
3793
3792
|
let t = null, n = !1, r = /* @__PURE__ */ new Map(), i = (e) => !!e && e !== "skip" && e !== "opaque", a = /* @__PURE__ */ new Set(), o = /* @__PURE__ */ new Set(), s = /* @__PURE__ */ new Map(), c = /* @__PURE__ */ new WeakSet(), l = /* @__PURE__ */ new Set(), u = () => typeof devicePixelRatio == "number" ? devicePixelRatio : 1, d = () => {
|
|
3794
3793
|
if (t) return t;
|
|
3795
3794
|
try {
|
|
3796
|
-
t = new Worker(URL.createObjectURL(new Blob([
|
|
3795
|
+
t = new Worker(URL.createObjectURL(new Blob([Ys])));
|
|
3797
3796
|
} catch {
|
|
3798
3797
|
return null;
|
|
3799
3798
|
}
|
|
@@ -3808,7 +3807,7 @@ function ec(e) {
|
|
|
3808
3807
|
return;
|
|
3809
3808
|
}
|
|
3810
3809
|
let a = URL.createObjectURL(n);
|
|
3811
|
-
l.add(a),
|
|
3810
|
+
l.add(a), Zs(t, n), f(t, a);
|
|
3812
3811
|
}, t;
|
|
3813
3812
|
}, f = (e, t) => {
|
|
3814
3813
|
r.has(e) || r.set(e, t);
|
|
@@ -3817,21 +3816,21 @@ function ec(e) {
|
|
|
3817
3816
|
let n = () => {
|
|
3818
3817
|
t ? e.style.visibility = t : e.style.removeProperty("visibility");
|
|
3819
3818
|
};
|
|
3820
|
-
if (!
|
|
3819
|
+
if (!Is()) {
|
|
3821
3820
|
n();
|
|
3822
3821
|
return;
|
|
3823
3822
|
}
|
|
3824
3823
|
let r = !1, i = () => {
|
|
3825
3824
|
r || (r = !0, clearTimeout(o), a.delete(i), n());
|
|
3826
|
-
}, o = setTimeout(i,
|
|
3827
|
-
a.add(i),
|
|
3825
|
+
}, o = setTimeout(i, Us);
|
|
3826
|
+
a.add(i), Rs(i);
|
|
3828
3827
|
}, m = (e, t) => {
|
|
3829
3828
|
let n = () => {
|
|
3830
|
-
if (
|
|
3831
|
-
|
|
3829
|
+
if (Is()) {
|
|
3830
|
+
Rs(t);
|
|
3832
3831
|
return;
|
|
3833
3832
|
}
|
|
3834
|
-
if (!
|
|
3833
|
+
if (!qs(e) || typeof requestAnimationFrame != "function") {
|
|
3835
3834
|
t();
|
|
3836
3835
|
return;
|
|
3837
3836
|
}
|
|
@@ -3843,10 +3842,10 @@ function ec(e) {
|
|
|
3843
3842
|
e.style.visibility = "hidden";
|
|
3844
3843
|
let r = !1, i = () => {
|
|
3845
3844
|
r || (r = !0, clearTimeout(o), a.delete(i), t(), n ? e.style.visibility = n : e.style.removeProperty("visibility"));
|
|
3846
|
-
}, o = setTimeout(i,
|
|
3845
|
+
}, o = setTimeout(i, Us);
|
|
3847
3846
|
a.add(i), m(e, i);
|
|
3848
|
-
}, g = (e, t) => !
|
|
3849
|
-
e.setAttribute(
|
|
3847
|
+
}, g = (e, t) => !Is() && !qs(e) ? !1 : (e.setAttribute(qt, t), h(e, () => {}), !0), _ = (e, t, a) => {
|
|
3848
|
+
e.setAttribute(qt, t), e.src = a, h(e, () => {
|
|
3850
3849
|
/* v8 ignore next -- disposal runs pending reveals; nothing to repair. */
|
|
3851
3850
|
if (n) return;
|
|
3852
3851
|
let a = r.get(t);
|
|
@@ -3857,12 +3856,12 @@ function ec(e) {
|
|
|
3857
3856
|
if (n) {
|
|
3858
3857
|
if (s.delete(e), clearTimeout(n.timeout), n.detachListeners?.(), n.responsive) {
|
|
3859
3858
|
if (i(t)) {
|
|
3860
|
-
e.setAttribute(
|
|
3859
|
+
e.setAttribute(qt, n.url), e.removeAttribute("srcset"), e.removeAttribute("sizes");
|
|
3861
3860
|
let r = e.closest("picture");
|
|
3862
3861
|
if (r) for (let e of Array.from(r.querySelectorAll("source"))) e.removeAttribute("srcset");
|
|
3863
3862
|
e.src = t;
|
|
3864
3863
|
}
|
|
3865
|
-
} else e.getAttribute("src") ===
|
|
3864
|
+
} else e.getAttribute("src") === Ws && (i(t) ? e.src = t : (e.removeAttribute(qt), e.src = n.url));
|
|
3866
3865
|
p(e, n.previousVisibility);
|
|
3867
3866
|
}
|
|
3868
3867
|
}, y = /* @__PURE__ */ new Map(), b = !1, x = () => {
|
|
@@ -3871,14 +3870,14 @@ function ec(e) {
|
|
|
3871
3870
|
y.clear();
|
|
3872
3871
|
for (let [t, n] of e) C(t, n.boxWidth, n.boxHeight);
|
|
3873
3872
|
}, S = () => {
|
|
3874
|
-
b || (b = !0,
|
|
3873
|
+
b || (b = !0, Rs(() => {
|
|
3875
3874
|
if (n) return;
|
|
3876
3875
|
let e = globalThis.requestIdleCallback;
|
|
3877
3876
|
typeof e == "function" ? e(() => x()) : typeof setTimeout == "function" ? setTimeout(x, 400) : x();
|
|
3878
3877
|
}));
|
|
3879
3878
|
}, C = (e, t, n) => {
|
|
3880
3879
|
if (r.has(e) || o.has(e)) return;
|
|
3881
|
-
if (
|
|
3880
|
+
if (Is() && ma()) {
|
|
3882
3881
|
y.has(e) || y.set(e, {
|
|
3883
3882
|
boxWidth: t,
|
|
3884
3883
|
boxHeight: n
|
|
@@ -3888,28 +3887,28 @@ function ec(e) {
|
|
|
3888
3887
|
let i = d();
|
|
3889
3888
|
if (!i) return;
|
|
3890
3889
|
o.add(e);
|
|
3891
|
-
let a = Math.round(Math.max(
|
|
3890
|
+
let a = Math.round(Math.max(Vs, t * u()) * Bs), s = Math.max(t * n, 9216) * u() ** 2;
|
|
3892
3891
|
i.postMessage({
|
|
3893
3892
|
url: e,
|
|
3894
3893
|
targetWidth: a,
|
|
3895
3894
|
neededArea: s,
|
|
3896
3895
|
ratio: 8
|
|
3897
3896
|
});
|
|
3898
|
-
}, w =
|
|
3899
|
-
if (
|
|
3897
|
+
}, w = Ls(() => {
|
|
3898
|
+
if (ma() && !(!t || o.size === 0)) {
|
|
3900
3899
|
t.terminate(), t = null;
|
|
3901
3900
|
for (let e of o) {
|
|
3902
3901
|
if (y.has(e)) continue;
|
|
3903
3902
|
let t = {
|
|
3904
|
-
boxWidth:
|
|
3905
|
-
boxHeight:
|
|
3903
|
+
boxWidth: Vs,
|
|
3904
|
+
boxHeight: Vs
|
|
3906
3905
|
};
|
|
3907
3906
|
for (let [n, r] of s) {
|
|
3908
3907
|
if (r.url !== e) continue;
|
|
3909
3908
|
let i = n.getBoundingClientRect();
|
|
3910
3909
|
t = {
|
|
3911
|
-
boxWidth: i.width ||
|
|
3912
|
-
boxHeight: i.height ||
|
|
3910
|
+
boxWidth: i.width || Vs,
|
|
3911
|
+
boxHeight: i.height || Vs
|
|
3913
3912
|
};
|
|
3914
3913
|
break;
|
|
3915
3914
|
}
|
|
@@ -3923,17 +3922,17 @@ function ec(e) {
|
|
|
3923
3922
|
let a = {
|
|
3924
3923
|
url: "",
|
|
3925
3924
|
previousVisibility: e.style.visibility,
|
|
3926
|
-
timeout: setTimeout(() => v(e, null),
|
|
3925
|
+
timeout: setTimeout(() => v(e, null), Hs),
|
|
3927
3926
|
responsive: !0
|
|
3928
3927
|
}, o = () => {
|
|
3929
3928
|
/* v8 ignore next -- consider() only routes elements with an https src
|
|
3930
3929
|
here, so the final fallback arm is unreachable. */
|
|
3931
3930
|
let t = e.currentSrc || e.getAttribute("src") || "", i = e.getBoundingClientRect();
|
|
3932
|
-
if (!(/^https?:/.test(t) &&
|
|
3931
|
+
if (!(/^https?:/.test(t) && Js({
|
|
3933
3932
|
naturalWidth: e.naturalWidth,
|
|
3934
3933
|
naturalHeight: e.naturalHeight,
|
|
3935
|
-
boxWidth: i.width ||
|
|
3936
|
-
boxHeight: i.height ||
|
|
3934
|
+
boxWidth: i.width || Vs,
|
|
3935
|
+
boxHeight: i.height || Vs,
|
|
3937
3936
|
devicePixelRatio: u()
|
|
3938
3937
|
}))) {
|
|
3939
3938
|
v(e, null);
|
|
@@ -3945,7 +3944,7 @@ function ec(e) {
|
|
|
3945
3944
|
v(e, o);
|
|
3946
3945
|
return;
|
|
3947
3946
|
}
|
|
3948
|
-
|
|
3947
|
+
Qs(t).then((a) => {
|
|
3949
3948
|
if (!(n || !s.has(e))) {
|
|
3950
3949
|
/* v8 ignore start -- a verdict can only appear via settle(), which
|
|
3951
3950
|
releases every held element of the url first, so a still-held
|
|
@@ -3961,7 +3960,7 @@ function ec(e) {
|
|
|
3961
3960
|
l.add(e), f(t, e);
|
|
3962
3961
|
return;
|
|
3963
3962
|
}
|
|
3964
|
-
C(t, i.width ||
|
|
3963
|
+
C(t, i.width || Vs, i.height || Vs);
|
|
3965
3964
|
}
|
|
3966
3965
|
});
|
|
3967
3966
|
};
|
|
@@ -3984,20 +3983,20 @@ function ec(e) {
|
|
|
3984
3983
|
if (c.add(e), e.complete && e.naturalWidth > 0) {
|
|
3985
3984
|
if (!t) {
|
|
3986
3985
|
let t = e.getBoundingClientRect();
|
|
3987
|
-
C(a, t.width ||
|
|
3986
|
+
C(a, t.width || Vs, t.height || Vs);
|
|
3988
3987
|
return;
|
|
3989
3988
|
}
|
|
3990
3989
|
let n = e.getBoundingClientRect();
|
|
3991
|
-
if (!
|
|
3990
|
+
if (!Js({
|
|
3992
3991
|
naturalWidth: e.naturalWidth,
|
|
3993
3992
|
naturalHeight: e.naturalHeight,
|
|
3994
|
-
boxWidth: n.width ||
|
|
3995
|
-
boxHeight: n.height ||
|
|
3993
|
+
boxWidth: n.width || Vs,
|
|
3994
|
+
boxHeight: n.height || Vs,
|
|
3996
3995
|
devicePixelRatio: u()
|
|
3997
3996
|
})) return;
|
|
3998
3997
|
let o = r.get(a);
|
|
3999
3998
|
if (i(o)) {
|
|
4000
|
-
|
|
3999
|
+
Is() || qs(e) ? _(e, a, o) : (e.setAttribute(qt, a), e.src = o);
|
|
4001
4000
|
return;
|
|
4002
4001
|
}
|
|
4003
4002
|
if (o === "opaque") {
|
|
@@ -4013,14 +4012,14 @@ function ec(e) {
|
|
|
4013
4012
|
return;
|
|
4014
4013
|
}
|
|
4015
4014
|
if (o) {
|
|
4016
|
-
|
|
4015
|
+
Is() || qs(e) ? _(e, a, o) : (e.setAttribute(qt, a), e.src = o);
|
|
4017
4016
|
return;
|
|
4018
4017
|
}
|
|
4019
4018
|
s.set(e, {
|
|
4020
4019
|
url: a,
|
|
4021
4020
|
previousVisibility: e.style.visibility,
|
|
4022
|
-
timeout: setTimeout(() => v(e, null),
|
|
4023
|
-
}), e.style.visibility = "hidden", e.setAttribute(
|
|
4021
|
+
timeout: setTimeout(() => v(e, null), Hs)
|
|
4022
|
+
}), e.style.visibility = "hidden", e.setAttribute(qt, a), e.src = Ws, Qs(a).then((t) => {
|
|
4024
4023
|
if (n || r.has(a)) return;
|
|
4025
4024
|
if (t) {
|
|
4026
4025
|
let e = URL.createObjectURL(t);
|
|
@@ -4030,7 +4029,7 @@ function ec(e) {
|
|
|
4030
4029
|
let i = () => {
|
|
4031
4030
|
if (n) return;
|
|
4032
4031
|
let t = e.getBoundingClientRect();
|
|
4033
|
-
C(a, t.width ||
|
|
4032
|
+
C(a, t.width || Vs, t.height || Vs);
|
|
4034
4033
|
};
|
|
4035
4034
|
typeof requestAnimationFrame == "function" ? requestAnimationFrame(i) : i();
|
|
4036
4035
|
});
|
|
@@ -4047,23 +4046,23 @@ function ec(e) {
|
|
|
4047
4046
|
let k = (e) => {
|
|
4048
4047
|
let t = e.getAttribute("src") ?? "", n = s.get(e);
|
|
4049
4048
|
if (n && !n.responsive) {
|
|
4050
|
-
t === n.url && (e.src =
|
|
4049
|
+
t === n.url && (e.src = Ws);
|
|
4051
4050
|
return;
|
|
4052
4051
|
}
|
|
4053
|
-
let a = e.getAttribute(
|
|
4052
|
+
let a = e.getAttribute(qt);
|
|
4054
4053
|
if (a) {
|
|
4055
4054
|
if (t === a) {
|
|
4056
4055
|
let t = r.get(a);
|
|
4057
4056
|
i(t) && (e.src = t);
|
|
4058
|
-
} else t !==
|
|
4057
|
+
} else t !== Ws && !t.startsWith("blob:") && e.removeAttribute(qt);
|
|
4059
4058
|
}
|
|
4060
4059
|
}, A = !1, j = new MutationObserver((t) => {
|
|
4061
4060
|
if (!n) {
|
|
4062
|
-
if (
|
|
4061
|
+
if (Is()) {
|
|
4063
4062
|
if (A) return;
|
|
4064
|
-
A = !0,
|
|
4063
|
+
A = !0, Rs(() => {
|
|
4065
4064
|
if (A = !1, !n) {
|
|
4066
|
-
for (let t of Array.from(e.querySelectorAll(`img[${
|
|
4065
|
+
for (let t of Array.from(e.querySelectorAll(`img[${qt}]`))) k(t);
|
|
4067
4066
|
for (let e of [...s.keys()]) k(e);
|
|
4068
4067
|
}
|
|
4069
4068
|
});
|
|
@@ -4085,29 +4084,29 @@ function ec(e) {
|
|
|
4085
4084
|
l.clear();
|
|
4086
4085
|
};
|
|
4087
4086
|
}
|
|
4088
|
-
var
|
|
4089
|
-
function
|
|
4090
|
-
return typeof document > "u" || !document.body ? () => {} : (
|
|
4091
|
-
dispose:
|
|
4087
|
+
var ec = null;
|
|
4088
|
+
function tc() {
|
|
4089
|
+
return typeof document > "u" || !document.body ? () => {} : (ec ? ec.count += 1 : ec = {
|
|
4090
|
+
dispose: $s(document.body),
|
|
4092
4091
|
count: 1
|
|
4093
4092
|
}, () => {
|
|
4094
|
-
|
|
4093
|
+
ec && (--ec.count, ec.count <= 0 && (ec.dispose(), ec = null));
|
|
4095
4094
|
});
|
|
4096
4095
|
}
|
|
4097
4096
|
//#endregion
|
|
4098
4097
|
//#region src/core/engine/arrivalHold.ts
|
|
4099
|
-
var
|
|
4098
|
+
var nc = [
|
|
4100
4099
|
Y(q),
|
|
4101
4100
|
Y(Ot),
|
|
4102
4101
|
Y(Nt),
|
|
4103
4102
|
Y(Bt),
|
|
4104
|
-
Y(
|
|
4103
|
+
Y(qt)
|
|
4105
4104
|
].join(", ");
|
|
4106
|
-
function
|
|
4105
|
+
function rc(e) {
|
|
4107
4106
|
if (typeof MutationObserver > "u") return () => {};
|
|
4108
4107
|
let t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Map(), o = (t) => {
|
|
4109
4108
|
let n = t instanceof Element ? t : t.parentElement;
|
|
4110
|
-
return !n || n === e || n.closest(
|
|
4109
|
+
return !n || n === e || n.closest(nc) !== null;
|
|
4111
4110
|
}, s = (e, t, n, r) => e ? n === e.glass ? (e.pendingEcho ? e.pendingEcho = !1 : e.latest = n, e) : (e.latest = n, r(e.glass), e.pendingEcho = !0, e) : n === t ? null : (r(t), {
|
|
4112
4111
|
glass: t,
|
|
4113
4112
|
latest: n,
|
|
@@ -4142,7 +4141,7 @@ function ic(e) {
|
|
|
4142
4141
|
}
|
|
4143
4142
|
(e instanceof Element || e.nodeType === Node.TEXT_NODE) && l(i.target).removed.push(e);
|
|
4144
4143
|
}
|
|
4145
|
-
for (let e of Array.from(i.addedNodes)) r.delete(e) || e instanceof Element && (e.closest(
|
|
4144
|
+
for (let e of Array.from(i.addedNodes)) r.delete(e) || e instanceof Element && (e.closest(nc) || (e.setAttribute(Bt, ""), t.add(e), l(i.target).added.push(e)));
|
|
4146
4145
|
}
|
|
4147
4146
|
}
|
|
4148
4147
|
for (let [e, t] of u) {
|
|
@@ -4177,7 +4176,7 @@ function ic(e) {
|
|
|
4177
4176
|
c.disconnect();
|
|
4178
4177
|
for (let e of n) e.parentNode?.removeChild(e);
|
|
4179
4178
|
n.clear();
|
|
4180
|
-
for (let e of t) e instanceof HTMLElement &&
|
|
4179
|
+
for (let e of t) e instanceof HTMLElement && js(e), e.removeAttribute(Bt);
|
|
4181
4180
|
t.clear();
|
|
4182
4181
|
for (let [e, t] of i) e.isConnected && (e.nodeValue = t.latest);
|
|
4183
4182
|
i.clear();
|
|
@@ -4186,42 +4185,14 @@ function ic(e) {
|
|
|
4186
4185
|
};
|
|
4187
4186
|
}
|
|
4188
4187
|
//#endregion
|
|
4189
|
-
//#region src/core/engine/compositorWarmUp.ts
|
|
4190
|
-
var ac = 3e3, oc = [{ backgroundPosition: "0px 0px" }, { backgroundPosition: "48px 0px" }], sc = {
|
|
4191
|
-
duration: 500,
|
|
4192
|
-
iterations: Infinity,
|
|
4193
|
-
direction: "alternate",
|
|
4194
|
-
easing: "linear"
|
|
4195
|
-
}, cc = "position:fixed;top:0;left:0;width:48px;height:48px;pointer-events:none;opacity:0.006;background-image:linear-gradient(90deg,#808080 0 24px,#909090 24px 48px);background-repeat:repeat;background-size:48px 48px;", lc = null, uc = null, dc = 0, fc = () => {
|
|
4196
|
-
dc = 0, uc?.pause(), lc?.setAttribute(Kt, "idle");
|
|
4197
|
-
};
|
|
4198
|
-
function pc() {
|
|
4199
|
-
if (typeof document > "u" || !document.body || typeof Element > "u" || typeof Element.prototype.animate != "function") return () => {};
|
|
4200
|
-
if (dc += 1, lc && !lc.isConnected && (uc?.cancel(), uc = null, lc = null), lc) dc === 1 && (lc.setAttribute(Kt, "on"), uc?.play());
|
|
4201
|
-
else {
|
|
4202
|
-
lc = document.createElement("div"), lc.setAttribute(Kt, "on"), lc.setAttribute("aria-hidden", "true"), lc.setAttribute("style", cc), document.body.appendChild(lc);
|
|
4203
|
-
try {
|
|
4204
|
-
uc = lc.animate(oc, sc);
|
|
4205
|
-
} catch {
|
|
4206
|
-
uc = null;
|
|
4207
|
-
}
|
|
4208
|
-
}
|
|
4209
|
-
let e = !1, t = setTimeout(() => {
|
|
4210
|
-
e || (e = !0, --dc, dc <= 0 && fc());
|
|
4211
|
-
}, ac);
|
|
4212
|
-
return () => {
|
|
4213
|
-
e || (e = !0, clearTimeout(t), --dc, dc <= 0 && fc());
|
|
4214
|
-
};
|
|
4215
|
-
}
|
|
4216
|
-
//#endregion
|
|
4217
4188
|
//#region src/core/engine/emulationNotice.ts
|
|
4218
|
-
var
|
|
4189
|
+
var ic = () => {
|
|
4219
4190
|
if (typeof navigator > "u") return !1;
|
|
4220
4191
|
let e = navigator.platform ?? "";
|
|
4221
4192
|
return /Mac/i.test(e) ? (navigator.maxTouchPoints ?? 0) > 0 : !1;
|
|
4222
|
-
},
|
|
4223
|
-
|
|
4224
|
-
},
|
|
4193
|
+
}, ac = !1, oc = () => {
|
|
4194
|
+
ac || !ma() || !ic() || (ac = !0, console.warn("[flemo] DevTools device emulation detected. The emulated view is composited through an extra scaling pass, so transitions can show text shimmer and settle flashes that do NOT exist in a plain window or on a real device. Judge motion quality outside device emulation."));
|
|
4195
|
+
}, sc = (e) => {
|
|
4225
4196
|
let t = e.parentElement ?? e, n = Array.from(t.querySelectorAll(`[${q}]`)).filter((n) => {
|
|
4226
4197
|
let r = n.closest(Y(at));
|
|
4227
4198
|
return !r || r === e || !t.contains(r);
|
|
@@ -4229,17 +4200,17 @@ var mc = () => {
|
|
|
4229
4200
|
if (r === null) return n;
|
|
4230
4201
|
let i = Array.from(e.ownerDocument.querySelectorAll(X(Et, r)));
|
|
4231
4202
|
return i.length === 0 ? n : [...n, ...i];
|
|
4232
|
-
},
|
|
4203
|
+
}, cc = (e, t) => {
|
|
4233
4204
|
let [n, r] = t.split("-");
|
|
4234
|
-
return
|
|
4235
|
-
},
|
|
4205
|
+
return sc(e).filter((e) => e.getAttribute("data-flemo-status") === n && e.getAttribute("data-flemo-active") === r);
|
|
4206
|
+
}, lc = (e, t) => {
|
|
4236
4207
|
let n = e.closest(Y("data-flemo-router"))?.getAttribute("data-flemo-router") ?? null;
|
|
4237
4208
|
return Array.from(e.ownerDocument.querySelectorAll(`${Y(q)}${X(ot, t)}`)).filter((e) => {
|
|
4238
4209
|
if (n === null) return !0;
|
|
4239
4210
|
let t = e.closest(Y(lt));
|
|
4240
4211
|
return !t || t.getAttribute(lt) === n;
|
|
4241
4212
|
});
|
|
4242
|
-
},
|
|
4213
|
+
}, uc = (e, t) => lc(e, t).filter((e) => e.parentElement?.closest(`[${J}]`) == null), dc = (e) => {
|
|
4243
4214
|
let t = e.closest(Y("data-flemo-router"))?.getAttribute("data-flemo-router") ?? null;
|
|
4244
4215
|
return Array.from(e.ownerDocument.querySelectorAll(`[${q}][${J}]`)).filter((e) => {
|
|
4245
4216
|
/* v8 ignore next -- a part reached by a document query always has a parent;
|
|
@@ -4249,16 +4220,16 @@ var mc = () => {
|
|
|
4249
4220
|
let n = e.closest(Y(lt));
|
|
4250
4221
|
return !n || n.getAttribute("data-flemo-router") === t;
|
|
4251
4222
|
});
|
|
4252
|
-
},
|
|
4223
|
+
}, fc = (e, t, n) => {
|
|
4253
4224
|
let r = 0;
|
|
4254
4225
|
for (let e of [`${n}-true`, `${n}-false`]) {
|
|
4255
|
-
if (!
|
|
4226
|
+
if (!ti(t, e)) continue;
|
|
4256
4227
|
let n = K(t, e);
|
|
4257
4228
|
r = Math.max(r, (n.delay + n.duration) * 1e3);
|
|
4258
4229
|
}
|
|
4259
|
-
for (let i of
|
|
4230
|
+
for (let i of lc(e, n)) {
|
|
4260
4231
|
let e = Ke(i.getAttribute(q), t), a = `${n}-${i.getAttribute(st)}`;
|
|
4261
|
-
if (!e || !
|
|
4232
|
+
if (!e || !ti(e, a)) continue;
|
|
4262
4233
|
let o = K(e, a);
|
|
4263
4234
|
r = Math.max(r, (o.delay + o.duration) * 1e3);
|
|
4264
4235
|
}
|
|
@@ -4266,31 +4237,31 @@ var mc = () => {
|
|
|
4266
4237
|
if (i) {
|
|
4267
4238
|
let e = Ve(t, i);
|
|
4268
4239
|
for (let t of [`${n}-true`, `${n}-false`]) {
|
|
4269
|
-
if (!
|
|
4240
|
+
if (!ti(e, t)) continue;
|
|
4270
4241
|
let n = K(e, t);
|
|
4271
4242
|
r = Math.max(r, (n.delay + n.duration) * 1e3);
|
|
4272
4243
|
}
|
|
4273
4244
|
}
|
|
4274
4245
|
return r;
|
|
4275
|
-
},
|
|
4246
|
+
}, pc = () => {}, mc = .004, hc = (e, t) => {
|
|
4276
4247
|
let n = e.ownerDocument?.defaultView;
|
|
4277
4248
|
if (!n) return !1;
|
|
4278
4249
|
let r = e;
|
|
4279
4250
|
for (; r;) {
|
|
4280
|
-
if (Number(n.getComputedStyle(r).opacity) <=
|
|
4251
|
+
if (Number(n.getComputedStyle(r).opacity) <= mc) return !0;
|
|
4281
4252
|
if (r === t) break;
|
|
4282
4253
|
r = r.parentElement;
|
|
4283
4254
|
}
|
|
4284
4255
|
return !1;
|
|
4285
4256
|
};
|
|
4286
|
-
function
|
|
4287
|
-
if (typeof e.getAnimations != "function") return
|
|
4257
|
+
function gc(e) {
|
|
4258
|
+
if (typeof e.getAnimations != "function") return pc;
|
|
4288
4259
|
let t = /* @__PURE__ */ new Set(), n = () => {
|
|
4289
4260
|
for (let n of e.getAnimations({ subtree: !0 })) {
|
|
4290
4261
|
if (t.size >= 128) return;
|
|
4291
4262
|
if (t.has(n) || (n.animationName ?? "").startsWith("flemo-") || n.playState !== "running") continue;
|
|
4292
4263
|
let r = n.effect?.target;
|
|
4293
|
-
if (r instanceof Element &&
|
|
4264
|
+
if (r instanceof Element && hc(r, e)) try {
|
|
4294
4265
|
n.pause(), t.add(n);
|
|
4295
4266
|
} catch {}
|
|
4296
4267
|
}
|
|
@@ -4319,79 +4290,77 @@ function Ec(e) {
|
|
|
4319
4290
|
}
|
|
4320
4291
|
//#endregion
|
|
4321
4292
|
//#region src/core/engine/responseHold.ts
|
|
4322
|
-
var
|
|
4323
|
-
let e =
|
|
4324
|
-
|
|
4293
|
+
var _c = !1, vc = 0, yc = [], bc = () => {
|
|
4294
|
+
let e = yc;
|
|
4295
|
+
yc = [];
|
|
4325
4296
|
for (let t of e) t();
|
|
4326
|
-
},
|
|
4327
|
-
if (
|
|
4328
|
-
|
|
4297
|
+
}, xc = (e) => /event-stream/i.test(e.headers.get("content-type") ?? ""), Sc = () => {
|
|
4298
|
+
if (_c || typeof window > "u" || typeof window.fetch != "function") return;
|
|
4299
|
+
_c = !0;
|
|
4329
4300
|
let e = window.fetch.bind(window);
|
|
4330
|
-
window.fetch = (...t) => e(...t).then((e) =>
|
|
4331
|
-
|
|
4301
|
+
window.fetch = (...t) => e(...t).then((e) => vc <= 0 || xc(e) ? e : new Promise((t) => {
|
|
4302
|
+
yc.push(() => t(e));
|
|
4332
4303
|
}), (e) => {
|
|
4333
|
-
if (
|
|
4304
|
+
if (vc <= 0) throw e;
|
|
4334
4305
|
return new Promise((t, n) => {
|
|
4335
|
-
|
|
4306
|
+
yc.push(() => n(e));
|
|
4336
4307
|
});
|
|
4337
4308
|
});
|
|
4338
|
-
},
|
|
4339
|
-
function
|
|
4309
|
+
}, Cc = 2e3;
|
|
4310
|
+
function wc(e = Cc) {
|
|
4340
4311
|
/* v8 ignore next -- SSR guard: without fetch there is nothing to hold. */
|
|
4341
|
-
if (
|
|
4342
|
-
|
|
4312
|
+
if (Sc(), !_c) return () => {};
|
|
4313
|
+
vc += 1;
|
|
4343
4314
|
let t = !1, n = null, r = () => {
|
|
4344
|
-
t || (t = !0, n !== null && clearTimeout(n),
|
|
4315
|
+
t || (t = !0, n !== null && clearTimeout(n), vc = Math.max(0, vc - 1), vc === 0 && bc());
|
|
4345
4316
|
};
|
|
4346
|
-
return typeof setTimeout == "function" && (n = setTimeout(r, Math.max(
|
|
4317
|
+
return typeof setTimeout == "function" && (n = setTimeout(r, Math.max(Cc, e))), r;
|
|
4347
4318
|
}
|
|
4348
|
-
|
|
4319
|
+
Sc();
|
|
4349
4320
|
//#endregion
|
|
4350
4321
|
//#region src/core/engine/flightHolds.ts
|
|
4351
|
-
var
|
|
4352
|
-
let t = null
|
|
4353
|
-
return { sync: ({ isTransitional:
|
|
4354
|
-
|
|
4355
|
-
|
|
4356
|
-
|
|
4357
|
-
|
|
4358
|
-
|
|
4359
|
-
let n = t;
|
|
4360
|
-
t = null, i ? n() : e.scheduleLanding(n);
|
|
4322
|
+
var Tc = 1500, Ec = (e) => {
|
|
4323
|
+
let t = null;
|
|
4324
|
+
return { sync: ({ isTransitional: n, isActive: r, status: i, transitionName: a, getScope: o }) => {
|
|
4325
|
+
n && oc();
|
|
4326
|
+
let s = n && (r ? i === "PUSHING" || i === "REPLACING" : i === "POPPING");
|
|
4327
|
+
if (!s && t) {
|
|
4328
|
+
let r = t;
|
|
4329
|
+
t = null, n ? r() : e.scheduleLanding(r);
|
|
4361
4330
|
}
|
|
4362
|
-
if (
|
|
4331
|
+
if (s && !t) {
|
|
4363
4332
|
e.landNow();
|
|
4364
|
-
let n =
|
|
4333
|
+
let n = o();
|
|
4365
4334
|
if (n) {
|
|
4366
|
-
|
|
4367
|
-
let e =
|
|
4335
|
+
vs(n);
|
|
4336
|
+
let e = rc(n), r = gc(n), o = wc(fc(n, Ae(a), i) + Tc), s = Fs();
|
|
4368
4337
|
t = () => {
|
|
4369
|
-
|
|
4338
|
+
o(), r(), e(), s();
|
|
4370
4339
|
};
|
|
4371
4340
|
}
|
|
4372
4341
|
}
|
|
4373
4342
|
} };
|
|
4374
|
-
},
|
|
4343
|
+
}, Dc = (e, t) => {
|
|
4375
4344
|
for (let n of Array.from(e.children)) {
|
|
4376
4345
|
let e = n;
|
|
4377
4346
|
if (e.matches(t)) return e;
|
|
4378
4347
|
}
|
|
4379
4348
|
return null;
|
|
4380
|
-
},
|
|
4349
|
+
}, Oc = (e) => {
|
|
4381
4350
|
if (!e) return [];
|
|
4382
|
-
let t =
|
|
4351
|
+
let t = Dc(e, Y(St));
|
|
4383
4352
|
if (t) return [t];
|
|
4384
|
-
let n =
|
|
4353
|
+
let n = Dc(e, Y(at))?.getAttribute(at);
|
|
4385
4354
|
return n ? Array.from(document.querySelectorAll(Y(Ct) + X(wt, n))) : [];
|
|
4386
|
-
},
|
|
4355
|
+
}, kc = (e) => e ? e.getAttribute("data-flemo-bar-riding") === "true" || e.hasAttribute("data-flemo-layer-host") || e.hasAttribute("data-flemo-layer-slot") : !1, Ac = 1e3 / 60 * 2, jc = "flemo-", Mc = /* @__PURE__ */ new WeakMap(), Nc = (e, t, n) => {
|
|
4387
4356
|
if (typeof e.getAnimations == "function") for (let r of e.getAnimations({ subtree: !0 })) {
|
|
4388
4357
|
let e = r.animationName;
|
|
4389
|
-
if (typeof e != "string" || !e.startsWith(
|
|
4358
|
+
if (typeof e != "string" || !e.startsWith(jc) || r.playState !== "running" || Mc.get(r) === n) continue;
|
|
4390
4359
|
let i = r.startTime;
|
|
4391
|
-
typeof i == "number" && (r.startTime = i + t,
|
|
4360
|
+
typeof i == "number" && (r.startTime = i + t, Mc.set(r, n));
|
|
4392
4361
|
}
|
|
4393
|
-
},
|
|
4394
|
-
function
|
|
4362
|
+
}, Pc = /* @__PURE__ */ new WeakSet(), Fc = 1e3, Ic = 3e3;
|
|
4363
|
+
function Lc(e, t, n) {
|
|
4395
4364
|
if (typeof MutationObserver > "u" || typeof requestAnimationFrame != "function") return () => {};
|
|
4396
4365
|
let r = 0, i = !1, a = !1, o = !1, s = null, c = [], l = null, u = () => {
|
|
4397
4366
|
s !== null && (clearTimeout(s), s = null);
|
|
@@ -4405,7 +4374,7 @@ function Jc(e, t, n) {
|
|
|
4405
4374
|
i = !0, m.disconnect();
|
|
4406
4375
|
for (let e of t()) if (!(!e || typeof e.getAnimations != "function")) for (let t of e.getAnimations({ subtree: !0 })) {
|
|
4407
4376
|
let e = t.animationName;
|
|
4408
|
-
if (typeof e != "string" || !e.startsWith(
|
|
4377
|
+
if (typeof e != "string" || !e.startsWith(jc) || t.playState !== "running" || Pc.has(t)) continue;
|
|
4409
4378
|
let n = t.currentTime;
|
|
4410
4379
|
if (!(typeof n == "number" && n > 33.333333333333336)) {
|
|
4411
4380
|
try {
|
|
@@ -4413,18 +4382,18 @@ function Jc(e, t, n) {
|
|
|
4413
4382
|
} catch {
|
|
4414
4383
|
continue;
|
|
4415
4384
|
}
|
|
4416
|
-
|
|
4385
|
+
Pc.add(t), c.push(t);
|
|
4417
4386
|
}
|
|
4418
4387
|
}
|
|
4419
4388
|
if (c.length === 0) return;
|
|
4420
|
-
r = requestAnimationFrame(f), typeof setTimeout == "function" && (s = setTimeout(f,
|
|
4421
|
-
let e =
|
|
4389
|
+
r = requestAnimationFrame(f), typeof setTimeout == "function" && (s = setTimeout(f, Fc));
|
|
4390
|
+
let e = Hc(t, () => {
|
|
4422
4391
|
a || n?.();
|
|
4423
4392
|
});
|
|
4424
4393
|
if (l = e, typeof setTimeout == "function") {
|
|
4425
4394
|
let t = setTimeout(() => {
|
|
4426
4395
|
l === e && (l = null), e();
|
|
4427
|
-
},
|
|
4396
|
+
}, Ic), n = e;
|
|
4428
4397
|
l = () => {
|
|
4429
4398
|
clearTimeout(t), n();
|
|
4430
4399
|
};
|
|
@@ -4439,16 +4408,16 @@ function Jc(e, t, n) {
|
|
|
4439
4408
|
a = !0, m.disconnect(), r &&= (cancelAnimationFrame(r), 0), u(), l?.(), l = null, i && !o && d();
|
|
4440
4409
|
};
|
|
4441
4410
|
}
|
|
4442
|
-
var
|
|
4443
|
-
function
|
|
4411
|
+
var Rc = 150, zc = 4e3, Bc = 400;
|
|
4412
|
+
function Vc(e, t, n = !0, r = !1) {
|
|
4444
4413
|
/* v8 ignore next -- same rAF guard as the watcher below. */
|
|
4445
4414
|
if (typeof requestAnimationFrame != "function") return () => {};
|
|
4446
4415
|
let i = [], a = /* @__PURE__ */ new Map();
|
|
4447
4416
|
for (let t of e()) if (!(!t || typeof t.getAnimations != "function")) for (let e of t.getAnimations({ subtree: !0 })) {
|
|
4448
4417
|
let t = e.animationName;
|
|
4449
|
-
if (typeof t != "string" || !t.startsWith(
|
|
4418
|
+
if (typeof t != "string" || !t.startsWith(jc) || e.playState !== "running" || Pc.has(e)) continue;
|
|
4450
4419
|
let n = e.currentTime;
|
|
4451
|
-
typeof n == "number" && n > 33.333333333333336 || (n === null || typeof n == "number") && (
|
|
4420
|
+
typeof n == "number" && n > 33.333333333333336 || (n === null || typeof n == "number") && (Pc.add(e), i.push(e), a.set(e, typeof n == "number" ? n : 0));
|
|
4452
4421
|
}
|
|
4453
4422
|
if (i.length === 0) return () => {};
|
|
4454
4423
|
let o = 0, s = null, c = !1, l = !1, u = !1, d = null, f = null, p = 0, m = (e) => {
|
|
@@ -4461,7 +4430,7 @@ function Qc(e, t, n = !0, r = !1) {
|
|
|
4461
4430
|
if (typeof r != "number" || typeof i != "number") continue;
|
|
4462
4431
|
let o = (a.get(n) ?? 0) + e;
|
|
4463
4432
|
n.startTime = i + (r - o), a.set(n, o);
|
|
4464
|
-
let s = r +
|
|
4433
|
+
let s = r + zc;
|
|
4465
4434
|
t = Math.max(t, s - o);
|
|
4466
4435
|
}
|
|
4467
4436
|
return t;
|
|
@@ -4469,7 +4438,7 @@ function Qc(e, t, n = !0, r = !1) {
|
|
|
4469
4438
|
if (c) return;
|
|
4470
4439
|
if (d === null && (d = e), f !== null) {
|
|
4471
4440
|
let t = e - f;
|
|
4472
|
-
p += Math.min(Math.max(0, t),
|
|
4441
|
+
p += Math.min(Math.max(0, t), Ac);
|
|
4473
4442
|
}
|
|
4474
4443
|
if (f = e, !l) {
|
|
4475
4444
|
if (l = !0, r) {
|
|
@@ -4481,7 +4450,7 @@ function Qc(e, t, n = !0, r = !1) {
|
|
|
4481
4450
|
if (typeof n != "number" || typeof r != "number") continue;
|
|
4482
4451
|
let i = a.get(t) ?? 0;
|
|
4483
4452
|
if (n <= i + 33.333333333333336) continue;
|
|
4484
|
-
let o = n - (i +
|
|
4453
|
+
let o = n - (i + Ac);
|
|
4485
4454
|
t.startTime = r + o, e = Math.max(e, o);
|
|
4486
4455
|
}
|
|
4487
4456
|
e > 0 && t?.(e);
|
|
@@ -4495,13 +4464,13 @@ function Qc(e, t, n = !0, r = !1) {
|
|
|
4495
4464
|
if (e.playState !== "running") continue;
|
|
4496
4465
|
let t = e.startTime;
|
|
4497
4466
|
if (typeof t == "number") {
|
|
4498
|
-
e.startTime = t +
|
|
4467
|
+
e.startTime = t + zc;
|
|
4499
4468
|
continue;
|
|
4500
4469
|
}
|
|
4501
4470
|
let n = e.timeline?.currentTime;
|
|
4502
|
-
typeof n == "number" && (e.startTime = n +
|
|
4471
|
+
typeof n == "number" && (e.startTime = n + zc);
|
|
4503
4472
|
}
|
|
4504
|
-
typeof setTimeout == "function" && (s = setTimeout(() => m(p +
|
|
4473
|
+
typeof setTimeout == "function" && (s = setTimeout(() => m(p + Ac), Bc)), o = requestAnimationFrame(h);
|
|
4505
4474
|
return;
|
|
4506
4475
|
}
|
|
4507
4476
|
if (!u) {
|
|
@@ -4524,13 +4493,13 @@ function Qc(e, t, n = !0, r = !1) {
|
|
|
4524
4493
|
t?.(g);
|
|
4525
4494
|
return;
|
|
4526
4495
|
}
|
|
4527
|
-
e - d <
|
|
4496
|
+
e - d < Rc && (o = requestAnimationFrame(h));
|
|
4528
4497
|
};
|
|
4529
4498
|
return o = requestAnimationFrame(h), () => {
|
|
4530
|
-
c = !0, cancelAnimationFrame(o), s !== null && clearTimeout(s), l && !u && m(p +
|
|
4499
|
+
c = !0, cancelAnimationFrame(o), s !== null && clearTimeout(s), l && !u && m(p + Ac);
|
|
4531
4500
|
};
|
|
4532
4501
|
}
|
|
4533
|
-
function
|
|
4502
|
+
function Hc(e, t) {
|
|
4534
4503
|
/* v8 ignore next -- every runtime under test has rAF; the guard shields
|
|
4535
4504
|
exotic embedders. */
|
|
4536
4505
|
if (typeof requestAnimationFrame != "function") return () => {};
|
|
@@ -4539,8 +4508,8 @@ function $c(e, t) {
|
|
|
4539
4508
|
if (r !== null) {
|
|
4540
4509
|
let n = o - r;
|
|
4541
4510
|
if (n > 33.333333333333336) {
|
|
4542
|
-
let r = n -
|
|
4543
|
-
for (let t of e()) t &&
|
|
4511
|
+
let r = n - Ac;
|
|
4512
|
+
for (let t of e()) t && Nc(t, r, o);
|
|
4544
4513
|
t?.(r);
|
|
4545
4514
|
}
|
|
4546
4515
|
}
|
|
@@ -4551,29 +4520,29 @@ function $c(e, t) {
|
|
|
4551
4520
|
i = !0, cancelAnimationFrame(n);
|
|
4552
4521
|
};
|
|
4553
4522
|
}
|
|
4554
|
-
var
|
|
4555
|
-
function
|
|
4523
|
+
var Uc = /* @__PURE__ */ new WeakMap();
|
|
4524
|
+
function Wc(e, t, n, r = !0, i = !1) {
|
|
4556
4525
|
if (typeof MutationObserver > "u" || typeof requestAnimationFrame != "function") return () => {};
|
|
4557
|
-
let a =
|
|
4558
|
-
if (a) return a.refs += 1, a.pendingDrop !== null && (clearTimeout(a.pendingDrop), a.pendingDrop = null), () =>
|
|
4526
|
+
let a = Uc.get(e);
|
|
4527
|
+
if (a) return a.refs += 1, a.pendingDrop !== null && (clearTimeout(a.pendingDrop), a.pendingDrop = null), () => Gc(e);
|
|
4559
4528
|
let o = null, s = !1, c = !1, l = () => {
|
|
4560
|
-
s || c || (s = !0, u.disconnect(), o =
|
|
4529
|
+
s || c || (s = !0, u.disconnect(), o = Vc(t, n, r, i));
|
|
4561
4530
|
}, u = new MutationObserver(() => {
|
|
4562
4531
|
e.getAttribute("data-flemo-anim-hold") === "false" && l();
|
|
4563
4532
|
});
|
|
4564
4533
|
return e.getAttribute("data-flemo-anim-hold") === "false" ? l() : u.observe(e, {
|
|
4565
4534
|
attributes: !0,
|
|
4566
4535
|
attributeFilter: [J]
|
|
4567
|
-
}),
|
|
4536
|
+
}), Uc.set(e, {
|
|
4568
4537
|
refs: 1,
|
|
4569
4538
|
pendingDrop: null,
|
|
4570
4539
|
dispose: () => {
|
|
4571
|
-
c = !0, u.disconnect(), o?.(),
|
|
4540
|
+
c = !0, u.disconnect(), o?.(), Uc.delete(e);
|
|
4572
4541
|
}
|
|
4573
|
-
}), () =>
|
|
4542
|
+
}), () => Gc(e);
|
|
4574
4543
|
}
|
|
4575
|
-
var
|
|
4576
|
-
let t =
|
|
4544
|
+
var Gc = (e) => {
|
|
4545
|
+
let t = Uc.get(e);
|
|
4577
4546
|
if (t && (--t.refs, !(t.refs > 0))) {
|
|
4578
4547
|
/* v8 ignore next 4 -- setTimeout exists in every runtime under test. */
|
|
4579
4548
|
if (typeof setTimeout != "function") {
|
|
@@ -4582,11 +4551,11 @@ var nl = (e) => {
|
|
|
4582
4551
|
}
|
|
4583
4552
|
t.pendingDrop !== null && clearTimeout(t.pendingDrop), t.pendingDrop = setTimeout(t.dispose, 0);
|
|
4584
4553
|
}
|
|
4585
|
-
},
|
|
4554
|
+
}, Kc = 1 / 255, qc = 400, Jc = 24, Yc = /* @__PURE__ */ new Set([
|
|
4586
4555
|
"x",
|
|
4587
4556
|
"y",
|
|
4588
4557
|
"opacity"
|
|
4589
|
-
]),
|
|
4558
|
+
]), Xc = (e, t, n) => {
|
|
4590
4559
|
if (!e || typeof e != "object") return;
|
|
4591
4560
|
let r = e[t];
|
|
4592
4561
|
if (r === void 0) return;
|
|
@@ -4604,7 +4573,7 @@ var nl = (e) => {
|
|
|
4604
4573
|
return Number.isNaN(e) ? null : e;
|
|
4605
4574
|
}
|
|
4606
4575
|
return null;
|
|
4607
|
-
},
|
|
4576
|
+
}, Zc = (e, t, n) => {
|
|
4608
4577
|
let r = /* @__PURE__ */ new Set();
|
|
4609
4578
|
for (let t of [e.from, e.to]) if (!(!t || typeof t != "object")) for (let e of Object.keys(t)) r.add(e);
|
|
4610
4579
|
if (r.size === 0) return null;
|
|
@@ -4612,25 +4581,25 @@ var nl = (e) => {
|
|
|
4612
4581
|
for (let a of r) {
|
|
4613
4582
|
let r = e.from && typeof e.from == "object" ? e.from[a] : void 0, o = e.to && typeof e.to == "object" ? e.to[a] : void 0;
|
|
4614
4583
|
if (r !== void 0 && r === o) continue;
|
|
4615
|
-
if (!
|
|
4616
|
-
let s =
|
|
4584
|
+
if (!Yc.has(a)) return null;
|
|
4585
|
+
let s = Xc(e.from, a, t), c = Xc(e.to, a, t);
|
|
4617
4586
|
if (s === null || c === null || s === void 0 || c === void 0) return null;
|
|
4618
4587
|
let l = Math.abs(c - s);
|
|
4619
4588
|
if (l === 0) continue;
|
|
4620
|
-
let u = a === "opacity" ?
|
|
4589
|
+
let u = a === "opacity" ? Kc : 1 / Math.max(1, n);
|
|
4621
4590
|
i = Math.min(i, u / l);
|
|
4622
4591
|
}
|
|
4623
4592
|
return !Number.isFinite(i) || i <= 0 || i >= 1 ? null : i;
|
|
4624
|
-
},
|
|
4593
|
+
}, Qc = (e, t, n) => {
|
|
4625
4594
|
if (e.duration <= 0) return null;
|
|
4626
|
-
let r =
|
|
4595
|
+
let r = Zc(e, t, n);
|
|
4627
4596
|
if (r === null) return null;
|
|
4628
|
-
let i =
|
|
4629
|
-
for (let e =
|
|
4597
|
+
let i = bi(e.ease), a = qc;
|
|
4598
|
+
for (let e = qc; e >= 0 && !(Math.abs(1 - i(e / qc)) > r); --e) a = e;
|
|
4630
4599
|
if (a === 0) return null;
|
|
4631
|
-
let o = (e.delay + e.duration * (a /
|
|
4632
|
-
return (e.delay + e.duration) * 1e3 - o <
|
|
4633
|
-
},
|
|
4600
|
+
let o = (e.delay + e.duration * (a / qc)) * 1e3;
|
|
4601
|
+
return (e.delay + e.duration) * 1e3 - o < Jc ? null : o;
|
|
4602
|
+
}, $c = 400, el = 4, tl = (e) => +e.toFixed(5) + 0, nl = 12, rl = (e, t, n, r) => {
|
|
4634
4603
|
if (e.duration <= 0 || !Number.isFinite(r) || r <= 0) return null;
|
|
4635
4604
|
let i = Number.isFinite(n) && n > 0 ? n : 1, a = /* @__PURE__ */ new Set();
|
|
4636
4605
|
for (let t of [e.from, e.to]) if (!(!t || typeof t != "object")) for (let e of Object.keys(t)) a.add(e);
|
|
@@ -4639,20 +4608,20 @@ var nl = (e) => {
|
|
|
4639
4608
|
let r = e.from && typeof e.from == "object" ? e.from[n] : void 0, a = e.to && typeof e.to == "object" ? e.to[n] : void 0;
|
|
4640
4609
|
if (r !== void 0 && r === a) continue;
|
|
4641
4610
|
if (n !== "x" && n !== "y") return null;
|
|
4642
|
-
let s =
|
|
4611
|
+
let s = Xc(e.from, n, t), c = Xc(e.to, n, t);
|
|
4643
4612
|
if (s === null || c === null || s === void 0 || c === void 0) return null;
|
|
4644
4613
|
o = Math.max(o, Math.abs(c - s) * i);
|
|
4645
4614
|
}
|
|
4646
|
-
if (o <
|
|
4647
|
-
let s =
|
|
4648
|
-
for (let e = 0; e <=
|
|
4649
|
-
let l = e.duration * 1e3, u = l /
|
|
4615
|
+
if (o < nl) return null;
|
|
4616
|
+
let s = bi(e.ease), c = Array(401);
|
|
4617
|
+
for (let e = 0; e <= $c; e += 1) c[e] = s(e / $c);
|
|
4618
|
+
let l = e.duration * 1e3, u = l / $c, d = 1 / o * (u / r), f = $c, p = 0;
|
|
4650
4619
|
for (let e = 399; e >= 0 && (p = Math.max(p, Math.abs(c[e + 1] - c[e])), !(p > d)); --e) f = e;
|
|
4651
|
-
if (f === 0 || f >=
|
|
4652
|
-
for (let e = f; e <
|
|
4620
|
+
if (f === 0 || f >= $c) return null;
|
|
4621
|
+
for (let e = f; e < $c; e += 1) if (c[e + 1] < c[e] || c[e] > 1) return null;
|
|
4653
4622
|
let m = (1 - c[f]) * o;
|
|
4654
|
-
if (m <= 1 || m >
|
|
4655
|
-
let h = f /
|
|
4623
|
+
if (m <= 1 || m > nl) return null;
|
|
4624
|
+
let h = f / $c * 100, g = m * r / l * 100;
|
|
4656
4625
|
/* v8 ignore next 2 -- unreachable for a decelerating cubic bezier, and kept
|
|
4657
4626
|
anyway. The sprint's share of the timeline works out to roughly (samples
|
|
4658
4627
|
of travel remaining at the engagement velocity) / 4 percent, independent
|
|
@@ -4665,14 +4634,14 @@ var nl = (e) => {
|
|
|
4665
4634
|
that keeps one from emitting a curve that lands past its own end. */
|
|
4666
4635
|
if (h + g >= 100) return null;
|
|
4667
4636
|
let _ = [];
|
|
4668
|
-
for (let e = 0; e <= f; e +=
|
|
4669
|
-
return _.push(`${
|
|
4670
|
-
},
|
|
4637
|
+
for (let e = 0; e <= f; e += el) _.push(`${tl(c[e])} ${tl(e / $c * 100)}%`);
|
|
4638
|
+
return _.push(`${tl(c[f])} ${tl(h)}%`), _.push(`1 ${tl(h + g)}%`, "1 100%"), `linear(${_.join(", ")})`;
|
|
4639
|
+
}, il = /* @__PURE__ */ new WeakMap(), al = Symbol("flemo-layer-owner"), ol = (e, t) => {
|
|
4671
4640
|
t.willChange ? e.style.willChange = t.willChange : e.style.removeProperty("will-change"), t.contain ? e.style.contain = t.contain : e.style.removeProperty("contain");
|
|
4672
|
-
},
|
|
4641
|
+
}, sl = (e, t) => {
|
|
4673
4642
|
let n = e.trim() === "none" ? "" : e.trim();
|
|
4674
4643
|
return t ? n ? /\b(layout|strict|content)\b/.test(n) ? n : `${n} layout` : "layout" : n;
|
|
4675
|
-
},
|
|
4644
|
+
}, cl = (e, t) => {
|
|
4676
4645
|
let n = /* @__PURE__ */ new Set(), r = !1;
|
|
4677
4646
|
for (let e of t.willChange.split(",")) {
|
|
4678
4647
|
let t = e.trim();
|
|
@@ -4683,13 +4652,13 @@ var nl = (e) => {
|
|
|
4683
4652
|
e.containment && (r = !0);
|
|
4684
4653
|
}
|
|
4685
4654
|
e.style.willChange = [...n].join(", ");
|
|
4686
|
-
let i =
|
|
4655
|
+
let i = sl(t.contain, r);
|
|
4687
4656
|
i ? e.style.contain = i : e.style.removeProperty("contain");
|
|
4688
|
-
},
|
|
4689
|
-
let i =
|
|
4657
|
+
}, ll = (e, t, n = !1, r = al) => {
|
|
4658
|
+
let i = Nr(t), a = il.get(e);
|
|
4690
4659
|
if (i.length === 0) {
|
|
4691
4660
|
if (!a) return;
|
|
4692
|
-
a.owners.has(r) ? (a.owners.delete(r), a.owners.size === 0 ? (a.pending != null && clearTimeout(a.pending),
|
|
4661
|
+
a.owners.has(r) ? (a.owners.delete(r), a.owners.size === 0 ? (a.pending != null && clearTimeout(a.pending), ol(e, a), il.delete(e)) : cl(e, a)) : r === a.settleOwner && a.owners.size === 0 && (a.pending != null && clearTimeout(a.pending), ol(e, a), il.delete(e));
|
|
4693
4662
|
return;
|
|
4694
4663
|
}
|
|
4695
4664
|
a?.pending != null && (clearTimeout(a.pending), a.pending = null), a || (a = {
|
|
@@ -4698,66 +4667,66 @@ var nl = (e) => {
|
|
|
4698
4667
|
willChange: e.style.willChange,
|
|
4699
4668
|
contain: e.style.contain,
|
|
4700
4669
|
pending: null
|
|
4701
|
-
},
|
|
4670
|
+
}, il.set(e, a)), a.owners.set(r, {
|
|
4702
4671
|
properties: i,
|
|
4703
4672
|
containment: n
|
|
4704
|
-
}), a.settleOwner = null,
|
|
4705
|
-
},
|
|
4706
|
-
let n =
|
|
4673
|
+
}), a.settleOwner = null, cl(e, a);
|
|
4674
|
+
}, ul = (e, t = al) => {
|
|
4675
|
+
let n = il.get(e);
|
|
4707
4676
|
if (!(!n || !n.owners.has(t))) {
|
|
4708
4677
|
if (n.owners.delete(t), n.owners.size > 0) {
|
|
4709
|
-
|
|
4678
|
+
cl(e, n);
|
|
4710
4679
|
return;
|
|
4711
4680
|
}
|
|
4712
4681
|
/* v8 ignore next 5 -- setTimeout exists in every runtime under test; the
|
|
4713
4682
|
guard shields exotic embedders, where an immediate demotion is simply
|
|
4714
4683
|
the pre-hold behavior. */
|
|
4715
4684
|
if (n.settleOwner = t, n.pending != null && clearTimeout(n.pending), typeof setTimeout != "function") {
|
|
4716
|
-
|
|
4685
|
+
ol(e, n), il.delete(e);
|
|
4717
4686
|
return;
|
|
4718
4687
|
}
|
|
4719
|
-
|
|
4688
|
+
dl(e, n);
|
|
4720
4689
|
}
|
|
4721
|
-
},
|
|
4690
|
+
}, dl = (e, t) => {
|
|
4722
4691
|
t.pending = setTimeout(() => {
|
|
4723
|
-
if (t.pending = null,
|
|
4724
|
-
|
|
4725
|
-
|
|
4692
|
+
if (t.pending = null, Is()) {
|
|
4693
|
+
Rs(() => {
|
|
4694
|
+
il.get(e) === t && t.owners.size === 0 && t.settleOwner !== null && t.pending === null && dl(e, t);
|
|
4726
4695
|
});
|
|
4727
4696
|
return;
|
|
4728
4697
|
}
|
|
4729
|
-
|
|
4698
|
+
ol(e, t), il.delete(e);
|
|
4730
4699
|
}, 300);
|
|
4731
|
-
},
|
|
4732
|
-
let { scope: i, decorator: a, bars: o } = e, s = n.split("-")[0], c = s === "PUSHING" || s === "REPLACING", l =
|
|
4733
|
-
if (
|
|
4734
|
-
|
|
4700
|
+
}, fl = (e, t, n, r) => {
|
|
4701
|
+
let { scope: i, decorator: a, bars: o } = e, s = n.split("-")[0], c = s === "PUSHING" || s === "REPLACING", l = ma() && typeof navigator < "u" && navigator.maxTouchPoints > 0 && fa() < 12, u = l && typeof window < "u" && window.devicePixelRatio || 1, d = (e, t) => !e || !l ? null : rl(e, t, u, fa());
|
|
4702
|
+
if (ti(t, n)) {
|
|
4703
|
+
ll(i, t, c, r);
|
|
4735
4704
|
let e = d(K(t, n), i);
|
|
4736
|
-
e && (
|
|
4737
|
-
for (let n of o ?? [])
|
|
4705
|
+
e && (_s(i, "animation-timing-function", r), i.style.animationTimingFunction = e);
|
|
4706
|
+
for (let n of o ?? []) kc(n) && (ll(n, t, c, r), e && (_s(n, "animation-timing-function", r), n.style.animationTimingFunction = e));
|
|
4738
4707
|
}
|
|
4739
4708
|
if (a && t.decoratorName) {
|
|
4740
4709
|
let e = Fe.get(t.decoratorName), i = e ? Ve(t, e) : null;
|
|
4741
|
-
i &&
|
|
4710
|
+
i && ti(i, n) && ll(a, i, c, r);
|
|
4742
4711
|
}
|
|
4743
|
-
for (let e of
|
|
4712
|
+
for (let e of cc(i, n)) {
|
|
4744
4713
|
let i = Ke(e.getAttribute(q), t);
|
|
4745
|
-
if (i &&
|
|
4714
|
+
if (i && ti(i, n)) {
|
|
4746
4715
|
let t = d(K(i, n), e);
|
|
4747
|
-
t && (
|
|
4716
|
+
t && (_s(e, "animation-timing-function", r), e.style.animationTimingFunction = t);
|
|
4748
4717
|
}
|
|
4749
4718
|
}
|
|
4750
|
-
},
|
|
4719
|
+
}, pl = (e, t) => {
|
|
4751
4720
|
let { scope: n, decorator: r, bars: i } = e;
|
|
4752
4721
|
if (n) {
|
|
4753
|
-
|
|
4754
|
-
for (let e of
|
|
4722
|
+
ul(n, t);
|
|
4723
|
+
for (let e of sc(n)) ul(e, t);
|
|
4755
4724
|
}
|
|
4756
|
-
r &&
|
|
4757
|
-
for (let e of i ?? []) e &&
|
|
4758
|
-
},
|
|
4759
|
-
function
|
|
4760
|
-
let t = Symbol("flemo-engine-layer"), n = /* @__PURE__ */ new Map(), r =
|
|
4725
|
+
r && ul(r, t);
|
|
4726
|
+
for (let e of i ?? []) e && ul(e, t);
|
|
4727
|
+
}, ml = () => {}, hl = 4, gl = 100, _l = 1500, vl = /* @__PURE__ */ new WeakMap();
|
|
4728
|
+
function yl(e) {
|
|
4729
|
+
let t = Symbol("flemo-engine-layer"), n = /* @__PURE__ */ new Map(), r = Ec({
|
|
4761
4730
|
landNow: () => a(),
|
|
4762
4731
|
scheduleLanding: (e) => o(e)
|
|
4763
4732
|
}), i = null, a = () => {
|
|
@@ -4785,15 +4754,15 @@ function Al(e) {
|
|
|
4785
4754
|
if (!p && s && (s.release(), s = null), d) {
|
|
4786
4755
|
let { scope: e } = a();
|
|
4787
4756
|
if (e) {
|
|
4788
|
-
if (p && !f) for (let t of
|
|
4789
|
-
else for (let t of
|
|
4757
|
+
if (p && !f) for (let t of uc(e, u)) t.setAttribute(J, "true");
|
|
4758
|
+
else for (let t of dc(e)) t.removeAttribute(J);
|
|
4790
4759
|
}
|
|
4791
4760
|
}
|
|
4792
4761
|
if (p) {
|
|
4793
|
-
let { scope: e, bars: n, screenContainer: r } = a(), i = [...n ?? [], ...
|
|
4762
|
+
let { scope: e, bars: n, screenContainer: r } = a(), i = [...n ?? [], ...Oc(r ?? null)];
|
|
4794
4763
|
if (e) {
|
|
4795
|
-
|
|
4796
|
-
for (let n of
|
|
4764
|
+
js(e), $(e, ["animation-timing-function", "animation-duration"], t);
|
|
4765
|
+
for (let n of sc(e)) $(n, ["animation-timing-function", "animation-duration"], t);
|
|
4797
4766
|
for (let e of i) e && $(e, ["animation-timing-function", "animation-duration"], t);
|
|
4798
4767
|
}
|
|
4799
4768
|
}
|
|
@@ -4805,12 +4774,12 @@ function Al(e) {
|
|
|
4805
4774
|
getScope: () => a().scope
|
|
4806
4775
|
});
|
|
4807
4776
|
let m = () => {
|
|
4808
|
-
if (!
|
|
4777
|
+
if (!ma()) return;
|
|
4809
4778
|
let t = e.getTransitionTaskId();
|
|
4810
|
-
t && (c.pendingTaskIds.some((e) => e !== t) ||
|
|
4779
|
+
t && (c.pendingTaskIds.some((e) => e !== t) || za());
|
|
4811
4780
|
}, h = (e, n) => {
|
|
4812
|
-
let r = [], { decorator: i, bars: s, screenContainer: c } = a(), l = [...s ?? [], ...
|
|
4813
|
-
let a = 0, o =
|
|
4781
|
+
let r = [], { decorator: i, bars: s, screenContainer: c } = a(), l = [...s ?? [], ...Oc(c ?? null)], u = Ae(o), d = (e, n, i) => {
|
|
4782
|
+
let a = 0, o = Cs({
|
|
4814
4783
|
element: e,
|
|
4815
4784
|
expectedName: n,
|
|
4816
4785
|
motion: i,
|
|
@@ -4820,49 +4789,49 @@ function Al(e) {
|
|
|
4820
4789
|
spendBudget: () => {
|
|
4821
4790
|
a += 1;
|
|
4822
4791
|
},
|
|
4823
|
-
onTerminal:
|
|
4792
|
+
onTerminal: ml
|
|
4824
4793
|
});
|
|
4825
4794
|
o.attach(), r.push(o.detach);
|
|
4826
|
-
}, f =
|
|
4827
|
-
if (p) for (let e of l)
|
|
4795
|
+
}, f = Wr("screen", o, n), p = K(u, n);
|
|
4796
|
+
if (p) for (let e of l) kc(e) && d(e, f, p);
|
|
4828
4797
|
if (i && u.decoratorName) {
|
|
4829
4798
|
let e = Fe.get(u.decoratorName), t = e ? K(Ve(u, e), n) : null;
|
|
4830
|
-
t && d(i,
|
|
4799
|
+
t && d(i, Gr(u.name, u.decoratorName, n), t);
|
|
4831
4800
|
}
|
|
4832
|
-
for (let t of
|
|
4801
|
+
for (let t of cc(e, n)) {
|
|
4833
4802
|
let e = t.getAttribute(q), r = Ke(e, Ae(o)), i = r ? K(r, n) : null;
|
|
4834
|
-
i && d(t,
|
|
4803
|
+
i && d(t, Wr("part", e, n), i);
|
|
4835
4804
|
}
|
|
4836
4805
|
return r;
|
|
4837
4806
|
};
|
|
4838
4807
|
if (!d) {
|
|
4839
4808
|
if (u === "COMPLETED") {
|
|
4840
|
-
let { scope: e, decorator: n, bars: r, screenContainer: i } = a(), o = [...r ?? [], ...
|
|
4809
|
+
let { scope: e, decorator: n, bars: r, screenContainer: i } = a(), o = [...r ?? [], ...Oc(i ?? null)];
|
|
4841
4810
|
if (e) {
|
|
4842
4811
|
$(e);
|
|
4843
|
-
for (let t of
|
|
4812
|
+
for (let t of sc(e)) $(t);
|
|
4844
4813
|
}
|
|
4845
4814
|
n && $(n);
|
|
4846
4815
|
for (let e of o) e && $(e, void 0, t);
|
|
4847
|
-
return
|
|
4816
|
+
return pl({
|
|
4848
4817
|
scope: e,
|
|
4849
4818
|
decorator: n,
|
|
4850
4819
|
bars: o
|
|
4851
|
-
}, t),
|
|
4820
|
+
}, t), ml;
|
|
4852
4821
|
}
|
|
4853
4822
|
if (u === "REPLACING" && l !== o && e.setReplaceTransitionStatus("PENDING"), p) {
|
|
4854
|
-
let { scope: e, decorator: n, bars: r, screenContainer: i, partLayer: c } = a(), l = [...r ?? [], ...
|
|
4823
|
+
let { scope: e, decorator: n, bars: r, screenContainer: i, partLayer: c } = a(), l = [...r ?? [], ...Oc(i ?? null)];
|
|
4855
4824
|
if (e) {
|
|
4856
4825
|
let i = Ae(o);
|
|
4857
|
-
|
|
4826
|
+
fl({
|
|
4858
4827
|
scope: e,
|
|
4859
4828
|
decorator: n,
|
|
4860
4829
|
bars: l
|
|
4861
|
-
}, i, `${u}-false`, t), s ??=
|
|
4830
|
+
}, i, `${u}-false`, t), s ??= As({
|
|
4862
4831
|
scope: e,
|
|
4863
4832
|
bars: r ?? [],
|
|
4864
4833
|
layer: c ?? null,
|
|
4865
|
-
strandedMs:
|
|
4834
|
+
strandedMs: fc(e, i, u) + 1500
|
|
4866
4835
|
});
|
|
4867
4836
|
}
|
|
4868
4837
|
}
|
|
@@ -4872,10 +4841,10 @@ function Al(e) {
|
|
|
4872
4841
|
let { scope: n } = a();
|
|
4873
4842
|
if (n) {
|
|
4874
4843
|
let r = Ae(o), i = [];
|
|
4875
|
-
if (
|
|
4876
|
-
let a = K(r, e), s = 0, c =
|
|
4844
|
+
if (ti(r, e)) {
|
|
4845
|
+
let a = K(r, e), s = 0, c = Cs({
|
|
4877
4846
|
element: n,
|
|
4878
|
-
expectedName:
|
|
4847
|
+
expectedName: Wr("screen", o, e),
|
|
4879
4848
|
motion: a,
|
|
4880
4849
|
writer: t,
|
|
4881
4850
|
isLive: () => n.isConnected && n.getAttribute("data-flemo-skip-animation") !== "true",
|
|
@@ -4883,47 +4852,47 @@ function Al(e) {
|
|
|
4883
4852
|
spendBudget: () => {
|
|
4884
4853
|
s += 1;
|
|
4885
4854
|
},
|
|
4886
|
-
onTerminal:
|
|
4855
|
+
onTerminal: ml
|
|
4887
4856
|
});
|
|
4888
4857
|
c.attach(), i.push(c.detach);
|
|
4889
4858
|
}
|
|
4890
4859
|
if (i.push(...h(n, e)), i.length > 0) return () => i.forEach((e) => e());
|
|
4891
4860
|
}
|
|
4892
4861
|
}
|
|
4893
|
-
return
|
|
4862
|
+
return ml;
|
|
4894
4863
|
}
|
|
4895
4864
|
if (u === "COMPLETED") {
|
|
4896
|
-
|
|
4897
|
-
let { scope: n, decorator: r, bars: i, screenContainer: o } = a(), s = [...i ?? [], ...
|
|
4865
|
+
Ia(), e.setDragStatus("IDLE"), e.setReplaceTransitionStatus("IDLE");
|
|
4866
|
+
let { scope: n, decorator: r, bars: i, screenContainer: o } = a(), s = [...i ?? [], ...Oc(o ?? null)];
|
|
4898
4867
|
if (n) {
|
|
4899
4868
|
$(n), $(n, ["transform", "opacity"]), n.removeAttribute(ut);
|
|
4900
|
-
for (let e of
|
|
4869
|
+
for (let e of sc(n)) $(e), e.removeAttribute(ut);
|
|
4901
4870
|
}
|
|
4902
4871
|
r && ($(r), r.removeAttribute(ut));
|
|
4903
4872
|
for (let e of s) e && $(e, void 0, t);
|
|
4904
|
-
return
|
|
4873
|
+
return pl({
|
|
4905
4874
|
scope: n,
|
|
4906
4875
|
decorator: r,
|
|
4907
4876
|
bars: s
|
|
4908
|
-
}, t),
|
|
4877
|
+
}, t), ml;
|
|
4909
4878
|
}
|
|
4910
|
-
if (u === "IDLE") return
|
|
4879
|
+
if (u === "IDLE") return ml;
|
|
4911
4880
|
let { scope: g } = a();
|
|
4912
|
-
if (!g) return
|
|
4913
|
-
let _ = e.getTransitionTaskId(), v =
|
|
4881
|
+
if (!g) return ml;
|
|
4882
|
+
let _ = e.getTransitionTaskId(), v = ml, y = () => {
|
|
4914
4883
|
v(), _ && (c.resolveTask(_), n.delete(_));
|
|
4915
|
-
}, b = Ae(o), x = `${u}-true`, S = g.getAttribute(ut) === "true", C = !S &&
|
|
4884
|
+
}, b = Ae(o), x = `${u}-true`, S = g.getAttribute(ut) === "true", C = !S && ti(b, x);
|
|
4916
4885
|
if (!S) {
|
|
4917
4886
|
let { decorator: e, bars: n, screenContainer: r } = a();
|
|
4918
|
-
|
|
4887
|
+
fl({
|
|
4919
4888
|
scope: g,
|
|
4920
4889
|
decorator: e,
|
|
4921
|
-
bars: [...n ?? [], ...
|
|
4890
|
+
bars: [...n ?? [], ...Oc(r ?? null)]
|
|
4922
4891
|
}, b, x, t);
|
|
4923
4892
|
}
|
|
4924
|
-
let w = `${u}-false`, T =
|
|
4925
|
-
for (let e of
|
|
4926
|
-
let t = Ke(e.getAttribute(q), b), n = `${u}-${e.getAttribute(st)}`, r = t &&
|
|
4893
|
+
let w = `${u}-false`, T = ti(b, w) ? K(b, w) : null, E = [];
|
|
4894
|
+
for (let e of lc(g, u)) {
|
|
4895
|
+
let t = Ke(e.getAttribute(q), b), n = `${u}-${e.getAttribute(st)}`, r = t && ti(t, n) ? K(t, n) : null;
|
|
4927
4896
|
r && E.push({
|
|
4928
4897
|
element: e,
|
|
4929
4898
|
motion: r
|
|
@@ -4937,7 +4906,7 @@ function Al(e) {
|
|
|
4937
4906
|
if (e) {
|
|
4938
4907
|
let t = Ve(b, e);
|
|
4939
4908
|
for (let e of [`${u}-true`, `${u}-false`]) {
|
|
4940
|
-
if (!
|
|
4909
|
+
if (!ti(t, e)) continue;
|
|
4941
4910
|
let n = K(t, e);
|
|
4942
4911
|
n && (O.push(n), D = Math.max(D, (n.delay + n.duration) * 1e3));
|
|
4943
4912
|
}
|
|
@@ -4952,39 +4921,39 @@ function Al(e) {
|
|
|
4952
4921
|
t = Math.max(t, (Number(n?.delay) || 0) + (Number(n?.duration) || 0));
|
|
4953
4922
|
}
|
|
4954
4923
|
if (D = Math.max(D, t), D > 0) {
|
|
4955
|
-
if (!f) return _ && c.markGateHeld(_),
|
|
4924
|
+
if (!f) return _ && c.markGateHeld(_), ml;
|
|
4956
4925
|
let e = D + 50;
|
|
4957
|
-
_ && c.anchorGate(_, e +
|
|
4926
|
+
_ && c.anchorGate(_, e + _l);
|
|
4958
4927
|
let t = setTimeout(y, e);
|
|
4959
4928
|
return () => clearTimeout(t);
|
|
4960
4929
|
}
|
|
4961
4930
|
}
|
|
4962
|
-
return queueMicrotask(y),
|
|
4931
|
+
return queueMicrotask(y), ml;
|
|
4963
4932
|
}
|
|
4964
4933
|
let k = K(b, x);
|
|
4965
4934
|
if (_) {
|
|
4966
4935
|
if (f) {
|
|
4967
4936
|
let e = (k.delay + k.duration) * 1e3;
|
|
4968
|
-
c.anchorGate(_, Math.max(e, D) +
|
|
4937
|
+
c.anchorGate(_, Math.max(e, D) + _l);
|
|
4969
4938
|
} else c.markGateHeld(_);
|
|
4970
4939
|
}
|
|
4971
|
-
let A =
|
|
4940
|
+
let A = Ka({
|
|
4972
4941
|
status: u,
|
|
4973
4942
|
transition: b,
|
|
4974
4943
|
skipAnimation: S,
|
|
4975
4944
|
hasActiveMotion: !!k,
|
|
4976
4945
|
hasAnimation: C
|
|
4977
4946
|
}), { hasDrivableMotion: j, nativeSurgeryAllowed: M, touchGoverned: ee, forceCompiled: N, governedHead: te, desktopHead: P, governedSlide: ne, birthHoldMs: F } = A;
|
|
4978
|
-
A.framePacingKeepalive && (v =
|
|
4947
|
+
A.framePacingKeepalive && (v = Na());
|
|
4979
4948
|
let re = null;
|
|
4980
|
-
j && !
|
|
4949
|
+
j && !ma() && !M && !ee && !N && !P && (re = Wc(g, () => [g.ownerDocument.documentElement], () => vl.get(g)?.(), !1));
|
|
4981
4950
|
{
|
|
4982
4951
|
let e = g.ownerDocument.documentElement;
|
|
4983
4952
|
A.creepHead ? e.setAttribute(Ut, "true") : e.removeAttribute(Ut), te ? e.setAttribute(Ht, "true") : e.removeAttribute(Ht), P ? e.setAttribute(Wt, "true") : e.removeAttribute(Wt);
|
|
4984
4953
|
}
|
|
4985
4954
|
let I = null;
|
|
4986
|
-
j && M && (I =
|
|
4987
|
-
let L =
|
|
4955
|
+
j && M && (I = Lc(g, () => [g.ownerDocument.documentElement], () => vl.get(g)?.()));
|
|
4956
|
+
let L = Wr("screen", o, x), R, z = () => {
|
|
4988
4957
|
R !== void 0 && (clearTimeout(R), R = void 0);
|
|
4989
4958
|
}, ie = 0, B, V = [], H, U = () => {
|
|
4990
4959
|
V.forEach((e) => cancelAnimationFrame(e)), V = [], H !== void 0 && clearTimeout(H), H = void 0;
|
|
@@ -4997,7 +4966,7 @@ function Al(e) {
|
|
|
4997
4966
|
}
|
|
4998
4967
|
H = setTimeout(() => {
|
|
4999
4968
|
U(), y();
|
|
5000
|
-
},
|
|
4969
|
+
}, gl);
|
|
5001
4970
|
let e = (t) => {
|
|
5002
4971
|
if (t <= 0) {
|
|
5003
4972
|
U(), y();
|
|
@@ -5005,20 +4974,20 @@ function Al(e) {
|
|
|
5005
4974
|
}
|
|
5006
4975
|
V.push(requestAnimationFrame(() => e(t - 1)));
|
|
5007
4976
|
};
|
|
5008
|
-
e(
|
|
4977
|
+
e(hl);
|
|
5009
4978
|
}, oe = () => {
|
|
5010
4979
|
if (ie <= 0) {
|
|
5011
4980
|
ae();
|
|
5012
4981
|
return;
|
|
5013
4982
|
}
|
|
5014
4983
|
B = setTimeout(ae, ie);
|
|
5015
|
-
}, W =
|
|
5016
|
-
e.target === g &&
|
|
4984
|
+
}, W = ml, G = ml, se = (e) => {
|
|
4985
|
+
e.target === g && Jr(e.animationName, L) && (k && e.elapsedTime === 0 || (g.removeEventListener("animationend", se), z(), W(), oe()));
|
|
5017
4986
|
};
|
|
5018
|
-
g.addEventListener("animationend",
|
|
5019
|
-
let
|
|
5020
|
-
ie = Math.max(0, D -
|
|
5021
|
-
let de =
|
|
4987
|
+
g.addEventListener("animationend", se), j && f && m();
|
|
4988
|
+
let ce = (k.delay + k.duration) * 1e3, le = Math.max(ce, D) + 1500, ue = _ ? setTimeout(() => void c.resolveTask(_), le) : void 0;
|
|
4989
|
+
ie = Math.max(0, D - ce);
|
|
4990
|
+
let de = ce + F + 250, fe = () => _ !== null && e.getTransitionTaskId() === _ && g.isConnected && g.getAttribute("data-flemo-skip-animation") !== "true" && ti(b, x), pe = Cs({
|
|
5022
4991
|
element: g,
|
|
5023
4992
|
expectedName: L,
|
|
5024
4993
|
motion: k,
|
|
@@ -5026,7 +4995,7 @@ function Al(e) {
|
|
|
5026
4995
|
isLive: fe,
|
|
5027
4996
|
budgetUsed: () => n.get(_) ?? 0,
|
|
5028
4997
|
spendBudget: () => {
|
|
5029
|
-
|
|
4998
|
+
G(), n.set(_, (n.get(_) ?? 0) + 1);
|
|
5030
4999
|
},
|
|
5031
5000
|
onTerminal: y
|
|
5032
5001
|
});
|
|
@@ -5035,23 +5004,23 @@ function Al(e) {
|
|
|
5035
5004
|
z(), R = setTimeout(ge, de);
|
|
5036
5005
|
}, ge = () => {
|
|
5037
5006
|
if (z(), fe() && !me) {
|
|
5038
|
-
me = !0,
|
|
5007
|
+
me = !0, G(), pe.fullRestart(), he();
|
|
5039
5008
|
return;
|
|
5040
5009
|
}
|
|
5041
5010
|
y();
|
|
5042
5011
|
}, _e = f, ve = _e ? h(g, x) : [];
|
|
5043
|
-
_e && (pe.attach(), _ && he()), _e && (M || ee) &&
|
|
5044
|
-
|
|
5012
|
+
_e && (pe.attach(), _ && he()), _e && (M || ee) && vl.set(g, () => {
|
|
5013
|
+
G(), _ && R !== void 0 && he();
|
|
5045
5014
|
});
|
|
5046
|
-
let ye = _e && M ?
|
|
5047
|
-
|
|
5015
|
+
let ye = _e && M ? Hc(() => [g.ownerDocument.documentElement], () => {
|
|
5016
|
+
G(), _ && R !== void 0 && he();
|
|
5048
5017
|
}) : null, be, xe = () => {
|
|
5049
5018
|
be !== void 0 && (clearTimeout(be), be = void 0);
|
|
5050
5019
|
};
|
|
5051
|
-
if (
|
|
5052
|
-
let e = typeof window < "u" && window.devicePixelRatio || 1, t =
|
|
5020
|
+
if (G = xe, _e && _ && !ne && !N) {
|
|
5021
|
+
let e = typeof window < "u" && window.devicePixelRatio || 1, t = Qc(k, g, e), n = T ? Qc(T, g, e) : 0, r = 0;
|
|
5053
5022
|
for (let { element: t, motion: n } of E) {
|
|
5054
|
-
let i =
|
|
5023
|
+
let i = Qc(n, t, e);
|
|
5055
5024
|
if (i === null) {
|
|
5056
5025
|
r = null;
|
|
5057
5026
|
break;
|
|
@@ -5062,7 +5031,7 @@ function Al(e) {
|
|
|
5062
5031
|
if (O.length > 0) {
|
|
5063
5032
|
let t = a().decorator;
|
|
5064
5033
|
if (t) for (let n of O) {
|
|
5065
|
-
let r =
|
|
5034
|
+
let r = Qc(n, t, e);
|
|
5066
5035
|
if (r === null) {
|
|
5067
5036
|
i = null;
|
|
5068
5037
|
break;
|
|
@@ -5071,12 +5040,12 @@ function Al(e) {
|
|
|
5071
5040
|
}
|
|
5072
5041
|
}
|
|
5073
5042
|
let o = t !== null && n !== null && r !== null && i !== null ? Math.max(t, n, r, i) : null;
|
|
5074
|
-
o !== null && o + 17 <
|
|
5075
|
-
be = void 0, fe() && (g.removeEventListener("animationend",
|
|
5043
|
+
o !== null && o + 17 < ce + ie && (be = setTimeout(() => {
|
|
5044
|
+
be = void 0, fe() && (g.removeEventListener("animationend", se), z(), W(), ae());
|
|
5076
5045
|
}, o + 17 + F));
|
|
5077
5046
|
}
|
|
5078
5047
|
return () => {
|
|
5079
|
-
if (v(),
|
|
5048
|
+
if (v(), ue !== void 0 && clearTimeout(ue), B !== void 0 && clearTimeout(B), U(), I?.(), re?.(), ye?.(), xe(), g.removeEventListener("animationend", se), _e) {
|
|
5080
5049
|
pe.detach();
|
|
5081
5050
|
for (let e of ve) e();
|
|
5082
5051
|
}
|
|
@@ -5088,14 +5057,14 @@ function Al(e) {
|
|
|
5088
5057
|
}
|
|
5089
5058
|
//#endregion
|
|
5090
5059
|
//#region src/core/engine/gpuPipelinePrewarm.ts
|
|
5091
|
-
var
|
|
5092
|
-
function
|
|
5093
|
-
if (typeof document > "u" || !document.body || typeof Element > "u" || typeof Element.prototype.animate != "function" || !
|
|
5094
|
-
if (
|
|
5095
|
-
|
|
5060
|
+
var bl = () => {}, xl = 2e3, Sl = 1200, Cl = 120, wl = 3, Tl = "position:fixed;top:0;left:0;pointer-events:none;opacity:0.02;", El = "width:64px;height:64px;background:#888;color:#000;font-size:10px;will-change:transform;transform:translate3d(1px,0,0);", Dl = "width:64px;height:64px;background:#000;will-change:opacity;opacity:0.5;", Ol = "cold", kl = 0, Al = null;
|
|
5061
|
+
function jl() {
|
|
5062
|
+
if (typeof document > "u" || !document.body || typeof Element > "u" || typeof Element.prototype.animate != "function" || !ma()) return bl;
|
|
5063
|
+
if (kl += 1, Ol === "cold") {
|
|
5064
|
+
Ol = "scheduled";
|
|
5096
5065
|
let e = () => document.querySelector(P.map((e) => X(ot, e)).join(",")) !== null, t = () => {
|
|
5097
|
-
let e = typeof requestIdleCallback == "function" ? requestIdleCallback(n, { timeout:
|
|
5098
|
-
|
|
5066
|
+
let e = typeof requestIdleCallback == "function" ? requestIdleCallback(n, { timeout: xl }) : null, t = e === null ? setTimeout(n, Sl) : null;
|
|
5067
|
+
Al = () => {
|
|
5099
5068
|
e !== null && typeof cancelIdleCallback == "function" && cancelIdleCallback(e), t !== null && clearTimeout(t);
|
|
5100
5069
|
};
|
|
5101
5070
|
}, n = () => {
|
|
@@ -5103,13 +5072,13 @@ function Hl() {
|
|
|
5103
5072
|
t();
|
|
5104
5073
|
return;
|
|
5105
5074
|
}
|
|
5106
|
-
|
|
5075
|
+
Al = null, Ol = "done";
|
|
5107
5076
|
let n = document.createElement("div");
|
|
5108
|
-
n.setAttribute(
|
|
5077
|
+
n.setAttribute(Kt, ""), n.setAttribute("aria-hidden", "true"), n.setAttribute("style", Tl);
|
|
5109
5078
|
let r = document.createElement("div");
|
|
5110
|
-
r.setAttribute("style",
|
|
5079
|
+
r.setAttribute("style", El), r.textContent = "flemo";
|
|
5111
5080
|
let i = document.createElement("div");
|
|
5112
|
-
i.setAttribute("style",
|
|
5081
|
+
i.setAttribute("style", Dl);
|
|
5113
5082
|
let a = document.createElement("div");
|
|
5114
5083
|
a.setAttribute("style", "width:96px;font-size:11px;color:#123;will-change:transform;transform:translate3d(0,0,0);");
|
|
5115
5084
|
let o = document.createElement("div");
|
|
@@ -5130,14 +5099,14 @@ function Hl() {
|
|
|
5130
5099
|
c.setAttribute("style", "border-top:1px solid #ccd;padding:2px 0;"), c.textContent = "의원 기록 표결 발의 가나다라", a.append(o, s, c), n.append(r, i, a), document.body.appendChild(n);
|
|
5131
5100
|
try {
|
|
5132
5101
|
r.animate([{ transform: "translate3d(0,0,0)" }, { transform: "translate3d(2px,0,0)" }], {
|
|
5133
|
-
duration:
|
|
5134
|
-
iterations:
|
|
5102
|
+
duration: Cl,
|
|
5103
|
+
iterations: wl
|
|
5135
5104
|
}), i.animate([{ opacity: .4 }, { opacity: .6 }], {
|
|
5136
|
-
duration:
|
|
5137
|
-
iterations:
|
|
5105
|
+
duration: Cl,
|
|
5106
|
+
iterations: wl
|
|
5138
5107
|
}), a.animate([{ transform: "translate3d(0,0,0)" }, { transform: "translate3d(2px,0,0)" }], {
|
|
5139
|
-
duration:
|
|
5140
|
-
iterations:
|
|
5108
|
+
duration: Cl,
|
|
5109
|
+
iterations: wl
|
|
5141
5110
|
});
|
|
5142
5111
|
} catch {}
|
|
5143
5112
|
setTimeout(() => n.remove(), 450);
|
|
@@ -5146,65 +5115,43 @@ function Hl() {
|
|
|
5146
5115
|
}
|
|
5147
5116
|
let e = !1;
|
|
5148
5117
|
return () => {
|
|
5149
|
-
e || (e = !0,
|
|
5118
|
+
e || (e = !0, kl = Math.max(0, kl - 1), kl === 0 && Ol === "scheduled" && (Al?.(), Al = null, Ol = "cold"));
|
|
5150
5119
|
};
|
|
5151
5120
|
}
|
|
5152
5121
|
//#endregion
|
|
5153
5122
|
//#region src/runtime/flemoRuntime.ts
|
|
5154
|
-
var
|
|
5155
|
-
|
|
5156
|
-
|
|
5157
|
-
"wheel",
|
|
5158
|
-
"touchstart",
|
|
5159
|
-
"keydown"
|
|
5160
|
-
], Kl = () => {
|
|
5161
|
-
if (typeof document > "u") return () => {};
|
|
5162
|
-
let e = null, t = null, n = 0, r = () => {
|
|
5163
|
-
let r = Date.now();
|
|
5164
|
-
if (r - n < Ul) return;
|
|
5165
|
-
n = r, t && clearTimeout(t);
|
|
5166
|
-
let i = e;
|
|
5167
|
-
e = pc(), i?.(), t = setTimeout(() => {
|
|
5168
|
-
t = null, e?.(), e = null;
|
|
5169
|
-
}, Wl);
|
|
5170
|
-
};
|
|
5171
|
-
for (let e of Gl) document.addEventListener(e, r, { passive: !0 });
|
|
5172
|
-
return () => {
|
|
5173
|
-
for (let e of Gl) document.removeEventListener(e, r);
|
|
5174
|
-
t && clearTimeout(t), e?.();
|
|
5175
|
-
};
|
|
5176
|
-
}, ql = 0, Jl = null, Yl = () => {
|
|
5177
|
-
let e = [Kl(), Hl()];
|
|
5178
|
-
return Wa().imageDecodeOffload && e.push(nc()), () => {
|
|
5123
|
+
var Ml = 0, Nl = null, Pl = () => {
|
|
5124
|
+
let e = [jl()];
|
|
5125
|
+
return Ua().imageDecodeOffload && e.push(tc()), () => {
|
|
5179
5126
|
for (let t of e) t();
|
|
5180
5127
|
};
|
|
5181
|
-
},
|
|
5182
|
-
|
|
5128
|
+
}, Fl = () => {
|
|
5129
|
+
Ml === 0 && (Nl = Pl()), Ml += 1;
|
|
5183
5130
|
let e = !1;
|
|
5184
5131
|
return () => {
|
|
5185
|
-
e || (e = !0, --
|
|
5132
|
+
e || (e = !0, --Ml, !(Ml > 0) && (Nl?.(), Nl = null));
|
|
5186
5133
|
};
|
|
5187
|
-
},
|
|
5134
|
+
}, Il = "auto", Ll = 1e5, Rl = [
|
|
5188
5135
|
{
|
|
5189
5136
|
role: "content",
|
|
5190
|
-
level:
|
|
5137
|
+
level: Il
|
|
5191
5138
|
},
|
|
5192
5139
|
{
|
|
5193
5140
|
role: "chrome",
|
|
5194
|
-
level:
|
|
5141
|
+
level: Il
|
|
5195
5142
|
},
|
|
5196
5143
|
{
|
|
5197
5144
|
role: "decorator",
|
|
5198
|
-
level:
|
|
5145
|
+
level: Il
|
|
5199
5146
|
},
|
|
5200
5147
|
{
|
|
5201
5148
|
role: "overlay",
|
|
5202
|
-
level:
|
|
5149
|
+
level: Ll
|
|
5203
5150
|
}
|
|
5204
|
-
],
|
|
5151
|
+
], zl = 50 / 390, Bl = 20, Vl = (e) => Number.isNaN(e) ? 0 : Math.min(1, Math.max(0, e)), Hl = (e) => {
|
|
5205
5152
|
let t = e.swipe;
|
|
5206
5153
|
if (!t) return null;
|
|
5207
|
-
let { direction: n, onStart: r, onMove: i, onEnd: a } = t, o = t.threshold, s = typeof o == "function" ? o : typeof o == "number" ? () => o : (e) => e *
|
|
5154
|
+
let { direction: n, onStart: r, onMove: i, onEnd: a } = t, o = t.threshold, s = typeof o == "function" ? o : typeof o == "number" ? () => o : (e) => e * zl, c = t.progress;
|
|
5208
5155
|
return {
|
|
5209
5156
|
direction: n,
|
|
5210
5157
|
commitDistance: s,
|
|
@@ -5222,8 +5169,8 @@ var Ul = 500, Wl = 3e3, Gl = [
|
|
|
5222
5169
|
prev: r
|
|
5223
5170
|
};
|
|
5224
5171
|
return {
|
|
5225
|
-
current:
|
|
5226
|
-
prev:
|
|
5172
|
+
current: Vl(a.current),
|
|
5173
|
+
prev: Vl(a.prev)
|
|
5227
5174
|
};
|
|
5228
5175
|
},
|
|
5229
5176
|
onStart: r,
|
|
@@ -5231,7 +5178,7 @@ var Ul = 500, Wl = 3e3, Gl = [
|
|
|
5231
5178
|
onEnd: a,
|
|
5232
5179
|
drivesScreens: !!(t.current || t.prev) || !i && !a
|
|
5233
5180
|
};
|
|
5234
|
-
},
|
|
5181
|
+
}, Ul = .12, Wl = 1.6, Gl = .5, Kl = .28, ql = 1.2, Jl = (e, t, n) => {
|
|
5235
5182
|
if (!(e > 0)) return t;
|
|
5236
5183
|
if (e >= 1) return 0;
|
|
5237
5184
|
let [r, i, a, o] = n, s = (e) => 3 * (1 - e) ** 2 * e * r + 3 * (1 - e) * e * e * a + e ** 3, c = (e) => 3 * (1 - e) ** 2 * e * i + 3 * (1 - e) * e * e * o + e ** 3, l = 0, u = 1;
|
|
@@ -5241,17 +5188,17 @@ var Ul = 500, Wl = 3e3, Gl = [
|
|
|
5241
5188
|
}
|
|
5242
5189
|
let d = s((l + u) / 2);
|
|
5243
5190
|
return t * Math.min(1, Math.max(0, 1 - d));
|
|
5244
|
-
},
|
|
5191
|
+
}, Yl = ({ remainingPx: e, spanPx: t, velocityPxPerSecond: n, authoredSeconds: r, authoredEase: i, reversing: a = !1, minSeconds: o = a ? Kl : Ul }) => {
|
|
5245
5192
|
let s = Math.abs(e);
|
|
5246
5193
|
if (s <= .5) return 0;
|
|
5247
|
-
let c = Math.abs(t), l = c > 0 ? Math.min(1, s / c) : 1, u = i && !a ?
|
|
5194
|
+
let c = Math.abs(t), l = c > 0 ? Math.min(1, s / c) : 1, u = i && !a ? Jl(1 - l, r, i) : r * l, d = Math.abs(n), f = !a && d > 0 ? Wl * s / d : Infinity, p = Math.min(u, f), m = r * l / ql;
|
|
5248
5195
|
return Math.min(r, Math.max(Math.max(o, m), p));
|
|
5249
|
-
},
|
|
5196
|
+
}, Xl = ({ remainingPx: e, velocityPxPerSecond: t, seconds: n, authoredSlope: r, reversing: i = !1 }) => {
|
|
5250
5197
|
let a = Math.abs(e);
|
|
5251
5198
|
if (!Number.isFinite(a) || a <= .5 || !Number.isFinite(n) || n <= 0 || !i && !Number.isFinite(t)) return null;
|
|
5252
5199
|
let o = i ? 0 : Math.abs(t) * n / a;
|
|
5253
|
-
return Math.min(
|
|
5254
|
-
},
|
|
5200
|
+
return Math.min(Wl, Math.max(typeof r == "number" && r >= 0 ? Math.min(Gl, r) : Gl, o));
|
|
5201
|
+
}, Zl = (e, t) => {
|
|
5255
5202
|
let [n, r, i, a] = e;
|
|
5256
5203
|
if (!Number.isFinite(t) || n <= 0 || t <= 0) return [
|
|
5257
5204
|
n,
|
|
@@ -5269,20 +5216,20 @@ var Ul = 500, Wl = 3e3, Gl = [
|
|
|
5269
5216
|
};
|
|
5270
5217
|
//#endregion
|
|
5271
5218
|
//#region src/utils/findScrollable.ts
|
|
5272
|
-
function
|
|
5273
|
-
let { direction: n = "x", markerSelector: r = "[data-swipe-at-edge]", depthLimit: i = 24, verifyByScroll: a = !1 } = t ?? {}, o =
|
|
5219
|
+
function Ql(e, t) {
|
|
5220
|
+
let { direction: n = "x", markerSelector: r = "[data-swipe-at-edge]", depthLimit: i = 24, verifyByScroll: a = !1 } = t ?? {}, o = $l(e);
|
|
5274
5221
|
if (!o) return {
|
|
5275
5222
|
element: null,
|
|
5276
5223
|
hasMarker: !1
|
|
5277
5224
|
};
|
|
5278
5225
|
let s = o.closest?.(r);
|
|
5279
|
-
if (s instanceof HTMLElement &&
|
|
5226
|
+
if (s instanceof HTMLElement && eu(s, n) && (!a || tu(s, n))) return {
|
|
5280
5227
|
element: s,
|
|
5281
5228
|
hasMarker: !0
|
|
5282
5229
|
};
|
|
5283
5230
|
let c = o, l = 0;
|
|
5284
5231
|
for (; c && l < i;) {
|
|
5285
|
-
if (
|
|
5232
|
+
if (eu(c, n) && (!a || tu(c, n))) return {
|
|
5286
5233
|
element: c,
|
|
5287
5234
|
hasMarker: !1
|
|
5288
5235
|
};
|
|
@@ -5293,7 +5240,7 @@ function pu(e, t) {
|
|
|
5293
5240
|
hasMarker: !1
|
|
5294
5241
|
};
|
|
5295
5242
|
}
|
|
5296
|
-
function
|
|
5243
|
+
function $l(e) {
|
|
5297
5244
|
if (!e) return null;
|
|
5298
5245
|
let t = e, n = typeof t.composedPath == "function" ? t.composedPath() : void 0;
|
|
5299
5246
|
if (n && n.length) {
|
|
@@ -5301,45 +5248,65 @@ function mu(e) {
|
|
|
5301
5248
|
}
|
|
5302
5249
|
return e instanceof HTMLElement ? e : null;
|
|
5303
5250
|
}
|
|
5304
|
-
function
|
|
5251
|
+
function eu(e, t) {
|
|
5305
5252
|
return t === "y" ? e.scrollHeight - e.clientHeight > 1 : e.scrollWidth - e.clientWidth > 1;
|
|
5306
5253
|
}
|
|
5307
|
-
function
|
|
5308
|
-
if (!
|
|
5254
|
+
function tu(e, t) {
|
|
5255
|
+
if (!eu(e, t) || typeof window > "u") return !1;
|
|
5309
5256
|
let n = window.getComputedStyle(e), r = t === "y" ? n.overflowY : n.overflowX;
|
|
5310
5257
|
return r === "auto" || r === "scroll" || r === "overlay";
|
|
5311
5258
|
}
|
|
5312
5259
|
//#endregion
|
|
5313
5260
|
//#region src/core/engine/riderSwipe.ts
|
|
5314
|
-
var
|
|
5261
|
+
var nu = (e) => {
|
|
5315
5262
|
let t = {};
|
|
5316
|
-
for (let n of
|
|
5263
|
+
for (let n of Pr(e)) {
|
|
5317
5264
|
let e = n.property.replace(/-([a-z])/g, (e, t) => t.toUpperCase());
|
|
5318
5265
|
t[e] = n.value;
|
|
5319
5266
|
}
|
|
5320
5267
|
return t;
|
|
5321
|
-
},
|
|
5268
|
+
}, ru = -1, iu = (e) => [...e].map((e, t) => ({
|
|
5269
|
+
...e,
|
|
5270
|
+
offset: typeof e.offset == "number" ? 1 - e.offset : +(t === 0)
|
|
5271
|
+
})).reverse(), au = (e, t = {}) => {
|
|
5322
5272
|
let { writer: n } = t, r = [];
|
|
5323
5273
|
for (let { element: t, motion: n } of e) {
|
|
5324
5274
|
/* v8 ignore next -- jsdom implements Element.animate; the guard is for a
|
|
5325
5275
|
host that does not, where a drag simply moves nothing. */
|
|
5326
5276
|
if (n.duration <= 0 || typeof t.animate != "function") continue;
|
|
5327
5277
|
let e = [
|
|
5328
|
-
|
|
5278
|
+
nu(n.from),
|
|
5329
5279
|
...(n.via ?? []).map((e) => ({
|
|
5330
|
-
...
|
|
5280
|
+
...nu(e.value),
|
|
5331
5281
|
offset: e.at
|
|
5332
5282
|
})),
|
|
5333
|
-
|
|
5283
|
+
nu(n.to)
|
|
5334
5284
|
], i = t.animate(e, {
|
|
5335
5285
|
duration: n.duration * 1e3,
|
|
5336
5286
|
delay: n.delay * 1e3,
|
|
5337
|
-
easing:
|
|
5287
|
+
easing: Ir(n.ease),
|
|
5338
5288
|
fill: "both"
|
|
5339
|
-
})
|
|
5289
|
+
}), a = (e) => {
|
|
5290
|
+
let r = t.animate(e, {
|
|
5291
|
+
duration: n.duration * 1e3,
|
|
5292
|
+
easing: Ir(n.ease),
|
|
5293
|
+
fill: "forwards"
|
|
5294
|
+
});
|
|
5295
|
+
r.pause();
|
|
5296
|
+
try {
|
|
5297
|
+
r.currentTime = ru;
|
|
5298
|
+
} catch {
|
|
5299
|
+
/* v8 ignore next 2 -- a host that refuses the seek leaves the leg
|
|
5300
|
+
unusable; the settle falls back to the drag animation below. */
|
|
5301
|
+
return null;
|
|
5302
|
+
}
|
|
5303
|
+
return r;
|
|
5304
|
+
};
|
|
5340
5305
|
r.push({
|
|
5341
5306
|
element: t,
|
|
5342
5307
|
animation: i,
|
|
5308
|
+
commitLeg: a(e),
|
|
5309
|
+
cancelLeg: a(iu(e)),
|
|
5343
5310
|
to: n.to,
|
|
5344
5311
|
clock: {
|
|
5345
5312
|
start: n.delay,
|
|
@@ -5349,8 +5316,8 @@ var _u = (e) => {
|
|
|
5349
5316
|
});
|
|
5350
5317
|
}
|
|
5351
5318
|
if (r.length === 0) return null;
|
|
5352
|
-
for (let e of r)
|
|
5353
|
-
let i = !1;
|
|
5319
|
+
for (let e of r) Uo([e.animation], 0);
|
|
5320
|
+
let i = !1, a = 0;
|
|
5354
5321
|
return {
|
|
5355
5322
|
get active() {
|
|
5356
5323
|
return !i;
|
|
@@ -5359,41 +5326,60 @@ var _u = (e) => {
|
|
|
5359
5326
|
return r.some((e) => !e.element.isConnected);
|
|
5360
5327
|
},
|
|
5361
5328
|
scrub: (e) => {
|
|
5362
|
-
if (!i)
|
|
5329
|
+
if (!i) {
|
|
5330
|
+
a = e < 0 ? 0 : e > 1 ? 1 : e;
|
|
5331
|
+
for (let t of r) Wo([t.animation], t.clock, e);
|
|
5332
|
+
}
|
|
5363
5333
|
},
|
|
5364
5334
|
settle: (e, t) => {
|
|
5365
5335
|
if (i) return Promise.resolve();
|
|
5366
5336
|
i = !0;
|
|
5367
|
-
let
|
|
5368
|
-
for (let i of r)
|
|
5369
|
-
|
|
5370
|
-
|
|
5371
|
-
|
|
5372
|
-
|
|
5373
|
-
|
|
5374
|
-
|
|
5337
|
+
let o = [];
|
|
5338
|
+
for (let i of r) {
|
|
5339
|
+
e && i.element.setAttribute(ut, "true"), o.push(new Promise((r) => {
|
|
5340
|
+
let a = !1, o = () => {
|
|
5341
|
+
a || (a = !0, e && ys(i.element, i.to, { duration: 0 }, n), i.animation.cancel(), i.commitLeg?.cancel(), i.cancelLeg?.cancel(), i.element.removeAttribute(ut), r());
|
|
5342
|
+
};
|
|
5343
|
+
((e ? i.commitLeg : i.cancelLeg) ?? i.animation).addEventListener("finish", o, { once: !0 }), typeof setTimeout == "function" && setTimeout(o, Math.max(t, 0) * 1e3 + 60);
|
|
5344
|
+
}));
|
|
5345
|
+
let r = e ? i.commitLeg : i.cancelLeg, s = e ? a : 1 - a, c = i.clock.duration * 1e3, l = gi(i.clock.ease)(s) * c, u = c - l;
|
|
5346
|
+
if (!r || u <= 0) i.animation.pause();
|
|
5347
|
+
else {
|
|
5348
|
+
let e = u / (Math.max(t, 1 / 60) * 1e3);
|
|
5349
|
+
try {
|
|
5350
|
+
r.currentTime = l, r.playbackRate = e;
|
|
5351
|
+
let t = typeof r.timeline?.currentTime == "number" ? r.timeline.currentTime : null;
|
|
5352
|
+
t === null ? r.play() : r.startTime = t - l / e;
|
|
5353
|
+
} catch {
|
|
5354
|
+
/* v8 ignore next -- an engine that refuses the placement still has
|
|
5355
|
+
the play below. */
|
|
5356
|
+
r.play();
|
|
5357
|
+
}
|
|
5358
|
+
}
|
|
5359
|
+
}
|
|
5360
|
+
return Promise.all(o).then(() => void 0);
|
|
5375
5361
|
}
|
|
5376
5362
|
};
|
|
5377
5363
|
};
|
|
5378
5364
|
//#endregion
|
|
5379
5365
|
//#region src/screen/computeBarRiding.ts
|
|
5380
|
-
function
|
|
5366
|
+
function ou(e, t) {
|
|
5381
5367
|
return !!e && !!t && e.id === t.id;
|
|
5382
5368
|
}
|
|
5383
|
-
function
|
|
5369
|
+
function su(e) {
|
|
5384
5370
|
if (e.status !== "PUSHING" && e.status !== "POPPING" && e.status !== "REPLACING" || !e.isTopOrTopPrev) return {
|
|
5385
5371
|
app: !1,
|
|
5386
5372
|
nav: !1
|
|
5387
5373
|
};
|
|
5388
5374
|
let t = e.hasTopBar ? { id: e.topBarId } : void 0, n = e.hasNavBar ? { id: e.bottomBarId } : void 0, r = e.partnerMetadata?.topBar ?? (e.partnerBars?.topBar ? {} : void 0), i = e.partnerMetadata?.bottomBar ?? (e.partnerBars?.bottomBar ? {} : void 0);
|
|
5389
5375
|
return {
|
|
5390
|
-
app: e.hasTopBar && !
|
|
5391
|
-
nav: e.hasNavBar && !
|
|
5376
|
+
app: e.hasTopBar && !ou(t, r),
|
|
5377
|
+
nav: e.hasNavBar && !ou(n, i)
|
|
5392
5378
|
};
|
|
5393
5379
|
}
|
|
5394
5380
|
//#endregion
|
|
5395
5381
|
//#region src/core/engine/createSwipeController.ts
|
|
5396
|
-
function
|
|
5382
|
+
function cu(e) {
|
|
5397
5383
|
let t = Symbol("flemo-swipe-layer"), n = null, r = null, i = null, a = null, o = null, s = null, c = null, l = {
|
|
5398
5384
|
current: [],
|
|
5399
5385
|
prev: []
|
|
@@ -5419,7 +5405,7 @@ function xu(e) {
|
|
|
5419
5405
|
}, O = {
|
|
5420
5406
|
element: null,
|
|
5421
5407
|
hasMarker: !1
|
|
5422
|
-
}, k = 0, A = 0, j = () =>
|
|
5408
|
+
}, k = 0, A = 0, j = () => Hl(e.getTransition()), M = (e, t) => Math.min(t, Math.max(0, e)), ee = (e) => ({
|
|
5423
5409
|
point: {
|
|
5424
5410
|
x: e.clientX,
|
|
5425
5411
|
y: e.clientY
|
|
@@ -5453,7 +5439,7 @@ function xu(e) {
|
|
|
5453
5439
|
}, w = t, N = Math.max(N, Math.abs(e.clientX - S.x), Math.abs(e.clientY - S.y));
|
|
5454
5440
|
}, ne = (r, i, a) => {
|
|
5455
5441
|
if (ae(r)) return Promise.resolve();
|
|
5456
|
-
let o =
|
|
5442
|
+
let o = ys(r, i, a, t), s = (e) => ys(e, u.has(e) ? _r(i, d) : i, a, t);
|
|
5457
5443
|
if (r === e.getElements().scope) for (let e of l.current) s(e);
|
|
5458
5444
|
else if (r === n) for (let e of l.prev) s(e);
|
|
5459
5445
|
return o;
|
|
@@ -5470,35 +5456,35 @@ function xu(e) {
|
|
|
5470
5456
|
let t = e.getAttribute(ht);
|
|
5471
5457
|
return t === null ? {} : { id: e.getAttribute("data-flemo-bar-id-type") === "number" ? Number(t) : t };
|
|
5472
5458
|
}, f = e.hasSharedTopBar() ? { id: e.getSharedTopBarId?.() } : void 0, p = e.hasSharedBottomBar() ? { id: e.getSharedBottomBarId?.() } : void 0, m = a?.topBar ?? (i?.topBar ? {} : c(o)), h = a?.bottomBar ?? (i?.bottomBar ? {} : c(s)), g = [], { sharedTopBar: _, sharedBottomBar: v } = e.getElements();
|
|
5473
|
-
_ && f && !
|
|
5459
|
+
_ && f && !ou(f, m) && g.push(_), v && p && !ou(p, h) && g.push(v);
|
|
5474
5460
|
let y = [];
|
|
5475
|
-
n && (o && m && !
|
|
5461
|
+
n && (o && m && !ou(m, f) && y.push(o), s && h && !ou(h, p) && y.push(s)), u = /* @__PURE__ */ new Set([...g, ...y]), d = r.getBoundingClientRect().height, g.push(...Oc(e.getElements().screenContainer)), y.push(...Oc(n)), l = {
|
|
5476
5462
|
current: g,
|
|
5477
5463
|
prev: y
|
|
5478
5464
|
};
|
|
5479
|
-
for (let n of g)
|
|
5480
|
-
for (let n of y)
|
|
5465
|
+
for (let n of g) ll(n, e.getTransition(), !1, t);
|
|
5466
|
+
for (let n of y) ll(n, e.getTransition(), !1, t);
|
|
5481
5467
|
}, I = null, L = /* @__PURE__ */ new Set(), R = (e) => {
|
|
5482
|
-
!e || !I || (
|
|
5468
|
+
!e || !I || (ll(e, I, !1, t), L.add(e));
|
|
5483
5469
|
}, z = () => {
|
|
5484
5470
|
let { scope: r, decorator: i } = e.getElements(), a = e.getTransition();
|
|
5485
|
-
r &&
|
|
5471
|
+
r && ll(r, a, !1, t), n && ll(n, a, !1, t);
|
|
5486
5472
|
let o = e.getDecorator();
|
|
5487
|
-
o && (I = Ve(a, o), R(i), R(
|
|
5473
|
+
o && (I = Ve(a, o), R(i), R(ce()));
|
|
5488
5474
|
}, ie = () => {
|
|
5489
5475
|
let { scope: r } = e.getElements();
|
|
5490
|
-
r &&
|
|
5491
|
-
for (let e of L)
|
|
5476
|
+
r && ul(r, t), n && ul(n, t);
|
|
5477
|
+
for (let e of L) ul(e, t);
|
|
5492
5478
|
L.clear(), I = null;
|
|
5493
5479
|
}, B = () => {
|
|
5494
|
-
for (let e of l.current) $(e, void 0, t),
|
|
5495
|
-
for (let e of l.prev) $(e, void 0, t),
|
|
5480
|
+
for (let e of l.current) $(e, void 0, t), ul(e, t);
|
|
5481
|
+
for (let e of l.prev) $(e, void 0, t), ul(e, t);
|
|
5496
5482
|
l = {
|
|
5497
5483
|
current: [],
|
|
5498
5484
|
prev: []
|
|
5499
5485
|
};
|
|
5500
5486
|
}, V = () => {
|
|
5501
|
-
a || !n || !i || (a =
|
|
5487
|
+
a || !n || !i || (a = As({
|
|
5502
5488
|
scope: n,
|
|
5503
5489
|
bars: [F(i, X(dt, "app")), F(i, X(dt, "nav"))],
|
|
5504
5490
|
layer: e.getPartLayer?.() ?? null,
|
|
@@ -5537,15 +5523,15 @@ function xu(e) {
|
|
|
5537
5523
|
element: e,
|
|
5538
5524
|
motion: u.has(e) ? {
|
|
5539
5525
|
...a,
|
|
5540
|
-
from:
|
|
5541
|
-
to:
|
|
5526
|
+
from: _r(a.from, d),
|
|
5527
|
+
to: _r(a.to, d),
|
|
5542
5528
|
via: a.via?.map((e) => ({
|
|
5543
5529
|
at: e.at,
|
|
5544
|
-
value:
|
|
5530
|
+
value: _r(e.value, d)
|
|
5545
5531
|
}))
|
|
5546
5532
|
} : a
|
|
5547
5533
|
});
|
|
5548
|
-
return
|
|
5534
|
+
return au(s, { writer: t });
|
|
5549
5535
|
}, f = s(n, l.current, "POPPING-true", a.dragTo.current), p = s(r, l.prev, "POPPING-false", a.dragTo.prev);
|
|
5550
5536
|
c = f || p ? {
|
|
5551
5537
|
current: f,
|
|
@@ -5555,8 +5541,8 @@ function xu(e) {
|
|
|
5555
5541
|
let n = [c?.current?.settle(e, t), c?.prev?.settle(e, t)].filter((e) => e !== void 0);
|
|
5556
5542
|
return c = null, Promise.all(n).then(() => void 0);
|
|
5557
5543
|
}, W = () => {
|
|
5558
|
-
h && ((!s || s.stale) && (s =
|
|
5559
|
-
},
|
|
5544
|
+
h && ((!s || s.stale) && (s = au(le())), !a && (V(), a && (o = au(G()))));
|
|
5545
|
+
}, G = () => {
|
|
5560
5546
|
let t = e.getTransition(), n = [], r = (e, r) => {
|
|
5561
5547
|
let i = Ge.get(e.getAttribute(q));
|
|
5562
5548
|
if (!i || i.onSwipe || i.onSwipeStart || i.onSwipeEnd) return;
|
|
@@ -5569,10 +5555,10 @@ function xu(e) {
|
|
|
5569
5555
|
for (let e of f.current) r(e, !0);
|
|
5570
5556
|
for (let e of f.prev) r(e, !1);
|
|
5571
5557
|
return n;
|
|
5572
|
-
},
|
|
5558
|
+
}, se = (e) => {
|
|
5573
5559
|
let t = e?.getAttribute(at);
|
|
5574
5560
|
return t ? Array.from(document.querySelectorAll(Y(yt) + X(xt, t))) : [];
|
|
5575
|
-
},
|
|
5561
|
+
}, ce = () => r?.isConnected ? r : (r = F(i, Y("data-flemo-decorator")) ?? se(n)[0] ?? null, R(r), r), le = () => {
|
|
5576
5562
|
let t = e.getTransition(), n = e.getDecorator();
|
|
5577
5563
|
if (!n || n.onSwipe || n.onSwipeStart) return [];
|
|
5578
5564
|
let r = Ve(t, n), i = [], a = (e, t) => {
|
|
@@ -5583,8 +5569,8 @@ function xu(e) {
|
|
|
5583
5569
|
motion: n
|
|
5584
5570
|
});
|
|
5585
5571
|
}, { scope: o, decorator: s } = e.getElements();
|
|
5586
|
-
return a(s ??
|
|
5587
|
-
},
|
|
5572
|
+
return a(s ?? se(o)[0] ?? null, !0), a(ce(), !1), i;
|
|
5573
|
+
}, ue = (t) => {
|
|
5588
5574
|
let { screenContainer: n } = e.getElements(), r = (e) => {
|
|
5589
5575
|
let t = F(e, Y(at)), n = Array.from(e.querySelectorAll(Y(q))).filter((e) => {
|
|
5590
5576
|
let n = e.closest(Y(at));
|
|
@@ -5603,7 +5589,7 @@ function xu(e) {
|
|
|
5603
5589
|
let s = Ge.get(a.getAttribute(q));
|
|
5604
5590
|
if (!s) return;
|
|
5605
5591
|
let c = {
|
|
5606
|
-
animate: i ?? ((e, n, r) =>
|
|
5592
|
+
animate: i ?? ((e, n, r) => ys(e, n, r, t)),
|
|
5607
5593
|
element: a,
|
|
5608
5594
|
active: o
|
|
5609
5595
|
};
|
|
@@ -5646,16 +5632,16 @@ function xu(e) {
|
|
|
5646
5632
|
t: t.timeStamp,
|
|
5647
5633
|
x: t.clientX,
|
|
5648
5634
|
y: t.clientY
|
|
5649
|
-
}], c.setPointerCapture(t.pointerId), re(d, c), U(c, n),
|
|
5635
|
+
}], c.setPointerCapture(t.pointerId), re(d, c), U(c, n), ue(d), z();
|
|
5650
5636
|
let f = e.getDecorator(), p = !a.onStart || await a.onStart(t, ee(t), {
|
|
5651
5637
|
animate: ne,
|
|
5652
5638
|
currentScreen: c,
|
|
5653
5639
|
prevScreen: n,
|
|
5654
5640
|
onStart: (e) => {
|
|
5655
5641
|
f?.onSwipeStart?.(e, {
|
|
5656
|
-
animate:
|
|
5642
|
+
animate: ys,
|
|
5657
5643
|
currentDecorator: u,
|
|
5658
|
-
prevDecorator:
|
|
5644
|
+
prevDecorator: ce()
|
|
5659
5645
|
}), de("start", e, 0);
|
|
5660
5646
|
}
|
|
5661
5647
|
});
|
|
@@ -5692,9 +5678,9 @@ function xu(e) {
|
|
|
5692
5678
|
if (!r || !h || b || e.getViewportScrollHeight() > 10) return;
|
|
5693
5679
|
let { scope: i, decorator: a } = e.getElements(), l = e.getDecorator(), u = ee(t), d = r.direction, f = i?.getBoundingClientRect(), p = (d === "y" ? f?.height : f?.width) || (typeof window > "u" ? 0 : d === "y" ? window.innerHeight : window.innerWidth), m = M(d === "y" ? u.offset.y : u.offset.x, p), g = p > 0 ? Math.max(0, Math.min(100, m / p * 100)) : 0, _ = !1, v = (e) => {
|
|
5694
5680
|
_ = !0, l?.onSwipe?.(e, g, {
|
|
5695
|
-
animate:
|
|
5681
|
+
animate: ys,
|
|
5696
5682
|
currentDecorator: a,
|
|
5697
|
-
prevDecorator:
|
|
5683
|
+
prevDecorator: ce()
|
|
5698
5684
|
});
|
|
5699
5685
|
let t = r.progress(u, p, m);
|
|
5700
5686
|
c?.current?.scrub(t.current), c?.prev?.scrub(t.prev), de("swipe", e, g), W(), o?.scrub(g / 100), s?.scrub(g / 100);
|
|
@@ -5734,7 +5720,7 @@ function xu(e) {
|
|
|
5734
5720
|
}, I = (e, t) => ((r, i, a) => {
|
|
5735
5721
|
let o = r === u || r === n, s = typeof a?.duration == "number" ? a.duration : 0;
|
|
5736
5722
|
if (s <= 0) return e(r, i, a);
|
|
5737
|
-
let c = t?.seconds ?? s, l = O ? S - T : T, d = !O && !D, f =
|
|
5723
|
+
let c = t?.seconds ?? s, l = O ? S - T : T, d = !O && !D, f = yi(a?.ease), p = t ? t.ease : f, m = Yl({
|
|
5738
5724
|
remainingPx: l,
|
|
5739
5725
|
spanPx: S,
|
|
5740
5726
|
velocityPxPerSecond: E,
|
|
@@ -5743,7 +5729,7 @@ function xu(e) {
|
|
|
5743
5729
|
reversing: d
|
|
5744
5730
|
});
|
|
5745
5731
|
k === null && (k = m), o && re(O, m);
|
|
5746
|
-
let h = f ?
|
|
5732
|
+
let h = f ? Xl({
|
|
5747
5733
|
remainingPx: l,
|
|
5748
5734
|
velocityPxPerSecond: E,
|
|
5749
5735
|
seconds: m,
|
|
@@ -5753,54 +5739,54 @@ function xu(e) {
|
|
|
5753
5739
|
return e(r, i, {
|
|
5754
5740
|
...a,
|
|
5755
5741
|
duration: m,
|
|
5756
|
-
...f && h !== null ? { ease:
|
|
5742
|
+
...f && h !== null ? { ease: Zl(f, h) } : {}
|
|
5757
5743
|
});
|
|
5758
5744
|
}), L = K(a, "POPPING-true"), R = L ? {
|
|
5759
5745
|
seconds: L.duration,
|
|
5760
|
-
ease:
|
|
5746
|
+
ease: yi(L.ease)
|
|
5761
5747
|
} : void 0, z = m ? (e, t, n) => ne(e, t, {
|
|
5762
5748
|
...n,
|
|
5763
5749
|
duration: 0
|
|
5764
|
-
}) : I(ne), V = m ? (e, t, n) =>
|
|
5750
|
+
}) : I(ne), V = m ? (e, t, n) => ys(e, t, {
|
|
5765
5751
|
...n,
|
|
5766
5752
|
duration: 0
|
|
5767
|
-
}) : I(
|
|
5753
|
+
}) : I(ys, R), U = m ? (e, n, r) => ys(e, n, {
|
|
5768
5754
|
...r,
|
|
5769
5755
|
duration: 0
|
|
5770
|
-
}, t) : I((e, n, r) =>
|
|
5756
|
+
}, t) : I((e, n, r) => ys(e, n, r, t)), ae = !1, W = (e) => {
|
|
5771
5757
|
if (ae) return;
|
|
5772
5758
|
ae = !0;
|
|
5773
5759
|
let t = !i && e;
|
|
5774
5760
|
O = t, p?.onSwipeEnd?.(t, {
|
|
5775
5761
|
animate: V,
|
|
5776
5762
|
currentDecorator: d,
|
|
5777
|
-
prevDecorator:
|
|
5763
|
+
prevDecorator: ce()
|
|
5778
5764
|
}), de("end", t, 0, U);
|
|
5779
|
-
},
|
|
5765
|
+
}, G = () => T >= c.commitDistance(S) || w > c.commitVelocity, se = () => m ? 0 : Yl({
|
|
5780
5766
|
remainingPx: O ? S - T : T,
|
|
5781
5767
|
spanPx: S,
|
|
5782
5768
|
velocityPxPerSecond: E,
|
|
5783
5769
|
authoredSeconds: L?.duration ?? 0,
|
|
5784
|
-
authoredEase: L ?
|
|
5770
|
+
authoredEase: L ? yi(L.ease) : null,
|
|
5785
5771
|
reversing: !O && !D
|
|
5786
|
-
}),
|
|
5787
|
-
c.onEnd && !c.drivesScreens ?
|
|
5772
|
+
}), le;
|
|
5773
|
+
c.onEnd && !c.drivesScreens ? le = await c.onEnd(r, g, {
|
|
5788
5774
|
animate: z,
|
|
5789
5775
|
currentScreen: u,
|
|
5790
5776
|
prevScreen: n,
|
|
5791
5777
|
onStart: W
|
|
5792
|
-
}) : (
|
|
5778
|
+
}) : (le = G(), O = !i && le, k = se(), W(le), c.onEnd && await c.onEnd(r, g, {
|
|
5793
5779
|
animate: z,
|
|
5794
5780
|
currentScreen: u,
|
|
5795
5781
|
prevScreen: n,
|
|
5796
5782
|
triggered: O,
|
|
5797
5783
|
onStart: W
|
|
5798
5784
|
}));
|
|
5799
|
-
let
|
|
5800
|
-
if (re(
|
|
5785
|
+
let ue = !i && le;
|
|
5786
|
+
if (re(ue, m ? 0 : k ?? 0), F && await F, ue) {
|
|
5801
5787
|
u?.setAttribute(ut, "true"), d?.setAttribute(ut, "true");
|
|
5802
|
-
for (let e of l.current)
|
|
5803
|
-
for (let e of l.prev) $(e, void 0, t),
|
|
5788
|
+
for (let e of l.current) ul(e, t);
|
|
5789
|
+
for (let e of l.prev) $(e, void 0, t), ul(e, t);
|
|
5804
5790
|
l = {
|
|
5805
5791
|
current: [],
|
|
5806
5792
|
prev: []
|
|
@@ -5810,14 +5796,14 @@ function xu(e) {
|
|
|
5810
5796
|
}, H(), e.back(), ie();
|
|
5811
5797
|
} else {
|
|
5812
5798
|
u && $(u, void 0, t), n && $(n, void 0, t), d && $(d);
|
|
5813
|
-
let r =
|
|
5799
|
+
let r = ce();
|
|
5814
5800
|
r && $(r), B(), ie(), fe(), H(), e.setDragStatus("IDLE");
|
|
5815
5801
|
}
|
|
5816
5802
|
}, Oe = (t) => {
|
|
5817
|
-
t.isPrimary === !1 || t.pointerType === "mouse" && t.button !== 0 || ((h || y !== null) && Ne(), e.isReadyForDrag() && (y = t.pointerId, x = !1, p = !0, m = !1, D =
|
|
5803
|
+
t.isPrimary === !1 || t.pointerType === "mouse" && t.button !== 0 || ((h || y !== null) && Ne(), e.isReadyForDrag() && (y = t.pointerId, x = !1, p = !0, m = !1, D = Ql(t.target, {
|
|
5818
5804
|
direction: "x",
|
|
5819
5805
|
verifyByScroll: !0
|
|
5820
|
-
}), O =
|
|
5806
|
+
}), O = Ql(t.target, {
|
|
5821
5807
|
direction: "y",
|
|
5822
5808
|
verifyByScroll: !0
|
|
5823
5809
|
}), k = t.clientX, A = t.clientY));
|
|
@@ -5873,31 +5859,31 @@ function xu(e) {
|
|
|
5873
5859
|
}
|
|
5874
5860
|
//#endregion
|
|
5875
5861
|
//#region src/screen/pendingNetwork.ts
|
|
5876
|
-
var
|
|
5877
|
-
|
|
5878
|
-
},
|
|
5879
|
-
if (!(
|
|
5880
|
-
if (
|
|
5862
|
+
var lu = 0, uu = !1, du = () => {
|
|
5863
|
+
lu = Math.max(0, lu - 1);
|
|
5864
|
+
}, fu = () => {
|
|
5865
|
+
if (!(uu || typeof window > "u")) {
|
|
5866
|
+
if (uu = !0, typeof window.fetch == "function") {
|
|
5881
5867
|
let e = window.fetch.bind(window);
|
|
5882
5868
|
window.fetch = (...t) => {
|
|
5883
|
-
|
|
5869
|
+
lu += 1;
|
|
5884
5870
|
let n;
|
|
5885
5871
|
try {
|
|
5886
5872
|
n = e(...t);
|
|
5887
5873
|
} catch (e) {
|
|
5888
|
-
throw
|
|
5874
|
+
throw du(), e;
|
|
5889
5875
|
}
|
|
5890
|
-
return n.then((e) => (
|
|
5891
|
-
throw
|
|
5876
|
+
return n.then((e) => (du(), e), (e) => {
|
|
5877
|
+
throw du(), e;
|
|
5892
5878
|
});
|
|
5893
5879
|
};
|
|
5894
5880
|
}
|
|
5895
5881
|
if (typeof XMLHttpRequest == "function") {
|
|
5896
5882
|
let e = XMLHttpRequest.prototype.send;
|
|
5897
5883
|
XMLHttpRequest.prototype.send = function(...t) {
|
|
5898
|
-
|
|
5884
|
+
lu += 1;
|
|
5899
5885
|
let n = !1, r = () => {
|
|
5900
|
-
n || (n = !0,
|
|
5886
|
+
n || (n = !0, du());
|
|
5901
5887
|
};
|
|
5902
5888
|
this.addEventListener("loadend", r);
|
|
5903
5889
|
try {
|
|
@@ -5908,28 +5894,28 @@ var Su = 0, Cu = !1, wu = () => {
|
|
|
5908
5894
|
};
|
|
5909
5895
|
}
|
|
5910
5896
|
}
|
|
5911
|
-
},
|
|
5897
|
+
}, pu = () => (fu(), lu > 0);
|
|
5912
5898
|
//#endregion
|
|
5913
5899
|
//#region src/screen/animStartAnchor.ts
|
|
5914
|
-
function
|
|
5900
|
+
function mu(e) {
|
|
5915
5901
|
return e.status !== "PUSHING" && e.status !== "POPPING" && e.status !== "REPLACING" || !e.isTopOrTopPrev ? null : `${e.status}:${e.transitionName}`;
|
|
5916
5902
|
}
|
|
5917
|
-
var
|
|
5918
|
-
function
|
|
5919
|
-
return Array.from(e.querySelectorAll("img")).filter((e) => e.complete && typeof e.decode == "function").slice(0,
|
|
5903
|
+
var hu = 300, gu = 150, _u = 20;
|
|
5904
|
+
function vu(e) {
|
|
5905
|
+
return Array.from(e.querySelectorAll("img")).filter((e) => e.complete && typeof e.decode == "function").slice(0, _u);
|
|
5920
5906
|
}
|
|
5921
|
-
function
|
|
5922
|
-
if (!(!e || typeof e.querySelectorAll != "function")) for (let t of
|
|
5907
|
+
function yu(e) {
|
|
5908
|
+
if (!(!e || typeof e.querySelectorAll != "function")) for (let t of vu(e)) t.decode().catch(() => {});
|
|
5923
5909
|
}
|
|
5924
|
-
var
|
|
5910
|
+
var bu = 3, xu = 40, Su = (e) => {
|
|
5925
5911
|
if (typeof e.querySelectorAll != "function") return !1;
|
|
5926
5912
|
let t = Math.max(1, e.querySelectorAll("*").length);
|
|
5927
5913
|
/* v8 ignore stop */
|
|
5928
|
-
return ((e.textContent ?? "").trim().length + e.querySelectorAll("img").length *
|
|
5929
|
-
},
|
|
5914
|
+
return ((e.textContent ?? "").trim().length + e.querySelectorAll("img").length * xu) / t < bu;
|
|
5915
|
+
}, Cu = (e) => typeof e.getAnimations == "function" && e.getAnimations({ subtree: !0 }).some((e) => {
|
|
5930
5916
|
let t = e.animationName;
|
|
5931
5917
|
return typeof t != "string" || !t.startsWith("flemo-");
|
|
5932
|
-
}),
|
|
5918
|
+
}), wu = (e) => {
|
|
5933
5919
|
/* v8 ignore next -- the settle gate only runs a scope past looksLikeShell,
|
|
5934
5920
|
which already requires querySelectorAll. */
|
|
5935
5921
|
if (typeof e.querySelectorAll != "function") return !1;
|
|
@@ -5937,12 +5923,12 @@ var Nu = 3, Pu = 40, Fu = (e) => {
|
|
|
5937
5923
|
the guard shields exotic embedders. */
|
|
5938
5924
|
let t = typeof e.getBoundingClientRect == "function" ? e.getBoundingClientRect() : null, n = t && t.height > 0 ? t : null, r = 0;
|
|
5939
5925
|
for (let t of Array.from(e.querySelectorAll("img"))) {
|
|
5940
|
-
if (r >=
|
|
5926
|
+
if (r >= _u) break;
|
|
5941
5927
|
if (!(t.loading === "lazy" && !t.currentSrc) && !(n && t.getBoundingClientRect().top - n.top >= n.height) && (r += 1, !t.complete)) return !0;
|
|
5942
5928
|
}
|
|
5943
5929
|
return !1;
|
|
5944
5930
|
};
|
|
5945
|
-
function
|
|
5931
|
+
function Tu(e, t = {}) {
|
|
5946
5932
|
let n = !1, r = 0, i = [], a = [], o = () => {
|
|
5947
5933
|
if (n) return;
|
|
5948
5934
|
let r = t.scope;
|
|
@@ -5950,13 +5936,13 @@ function Ru(e, t = {}) {
|
|
|
5950
5936
|
e();
|
|
5951
5937
|
return;
|
|
5952
5938
|
}
|
|
5953
|
-
let i =
|
|
5939
|
+
let i = vu(r);
|
|
5954
5940
|
if (i.length === 0) {
|
|
5955
5941
|
e();
|
|
5956
5942
|
return;
|
|
5957
5943
|
}
|
|
5958
5944
|
let a = Promise.allSettled(i.map((e) => e.decode())), o = new Promise((e) => {
|
|
5959
|
-
setTimeout(e,
|
|
5945
|
+
setTimeout(e, gu);
|
|
5960
5946
|
});
|
|
5961
5947
|
Promise.race([a, o]).then(() => {
|
|
5962
5948
|
n || e();
|
|
@@ -5965,12 +5951,12 @@ function Ru(e, t = {}) {
|
|
|
5965
5951
|
let n = t.contentSettle, r = t.scope;
|
|
5966
5952
|
if (!n || !r || typeof MutationObserver > "u") return e(), () => {};
|
|
5967
5953
|
let i = () => !n.renderSettleOnly && (h() || m());
|
|
5968
|
-
if (!n.renderSettleOnly && !
|
|
5954
|
+
if (!n.renderSettleOnly && !Su(r)) return e(), () => {};
|
|
5969
5955
|
/* v8 ignore start -- performance exists in every runtime under test;
|
|
5970
5956
|
the fallback only shields exotic embedders. */
|
|
5971
|
-
let o = typeof performance < "u" ? performance.now() : 0, s = () => (typeof performance < "u" ? performance.now() : 0) - o, c = [], l = !1, u = !1, d, f, p, m = () =>
|
|
5957
|
+
let o = typeof performance < "u" ? performance.now() : 0, s = () => (typeof performance < "u" ? performance.now() : 0) - o, c = [], l = !1, u = !1, d, f, p, m = () => Su(r) && Cu(r), h = () => pu() || wu(r), g = () => {
|
|
5972
5958
|
u || (u = !0, x.disconnect(), clearTimeout(d), clearTimeout(f), clearTimeout(p), c.forEach((e) => cancelAnimationFrame(e)), c = [], e());
|
|
5973
|
-
}, _ = () => n.renderSettleOnly ? 6 : !
|
|
5959
|
+
}, _ = () => n.renderSettleOnly ? 6 : !Su(r) && !i() ? 2 : 6, v = !1, y = () => {
|
|
5974
5960
|
if (!n.renderSettleOnly) {
|
|
5975
5961
|
g();
|
|
5976
5962
|
return;
|
|
@@ -6053,14 +6039,14 @@ function Ru(e, t = {}) {
|
|
|
6053
6039
|
n = !0, cancelAnimationFrame(p), r && cancelAnimationFrame(r), i.forEach((e) => cancelAnimationFrame(e)), a.forEach((e) => e());
|
|
6054
6040
|
};
|
|
6055
6041
|
}
|
|
6056
|
-
function
|
|
6057
|
-
let n =
|
|
6042
|
+
function Eu(e, t = {}) {
|
|
6043
|
+
let n = Tu(e, t), r = t.contentSettle?.capMs ?? 0, i = setTimeout(e, 300 + r);
|
|
6058
6044
|
return () => {
|
|
6059
6045
|
n(), clearTimeout(i);
|
|
6060
6046
|
};
|
|
6061
6047
|
}
|
|
6062
|
-
var
|
|
6063
|
-
function
|
|
6048
|
+
var Du = (e) => 300 + (e?.contentSettle?.capMs ?? 0);
|
|
6049
|
+
function Ou() {
|
|
6064
6050
|
let e = /* @__PURE__ */ new Map(), t = (t, n) => {
|
|
6065
6051
|
clearTimeout(n.backstop), e.delete(t);
|
|
6066
6052
|
let r = [...n.members];
|
|
@@ -6070,14 +6056,14 @@ function Vu() {
|
|
|
6070
6056
|
return { join: (r, i, a) => {
|
|
6071
6057
|
let o = e.get(r);
|
|
6072
6058
|
if (o) {
|
|
6073
|
-
let e =
|
|
6059
|
+
let e = Du(a);
|
|
6074
6060
|
if (e > o.backstopMs) {
|
|
6075
6061
|
clearTimeout(o.backstop);
|
|
6076
6062
|
let n = o;
|
|
6077
6063
|
n.backstopMs = e, n.backstop = setTimeout(() => t(r, n), e);
|
|
6078
6064
|
}
|
|
6079
6065
|
} else {
|
|
6080
|
-
let n =
|
|
6066
|
+
let n = Du(a), i = {
|
|
6081
6067
|
members: /* @__PURE__ */ new Set(),
|
|
6082
6068
|
backstop: setTimeout(() => t(r, i), n),
|
|
6083
6069
|
backstopMs: n
|
|
@@ -6087,7 +6073,7 @@ function Vu() {
|
|
|
6087
6073
|
let s = o, c = {
|
|
6088
6074
|
release: i,
|
|
6089
6075
|
ready: !1,
|
|
6090
|
-
cancelReadiness:
|
|
6076
|
+
cancelReadiness: Tu(() => {
|
|
6091
6077
|
c.ready = !0, n(s) && t(r, s);
|
|
6092
6078
|
}, a)
|
|
6093
6079
|
};
|
|
@@ -6104,7 +6090,7 @@ function Vu() {
|
|
|
6104
6090
|
}
|
|
6105
6091
|
//#endregion
|
|
6106
6092
|
//#region src/screen/observeBarHeight.ts
|
|
6107
|
-
function
|
|
6093
|
+
function ku(e, t) {
|
|
6108
6094
|
e.offsetHeight > 0 && t(e.offsetHeight);
|
|
6109
6095
|
let n = new ResizeObserver(([e]) => {
|
|
6110
6096
|
e.contentRect.height > 0 && t(e.contentRect.height);
|
|
@@ -6115,9 +6101,9 @@ function Hu(e, t) {
|
|
|
6115
6101
|
}
|
|
6116
6102
|
//#endregion
|
|
6117
6103
|
//#region src/screen/publishRideBox.ts
|
|
6118
|
-
function
|
|
6104
|
+
function Au(e) {
|
|
6119
6105
|
let t = (t) => {
|
|
6120
|
-
t > 0 && e.style.setProperty(
|
|
6106
|
+
t > 0 && e.style.setProperty(pr, `${t}px`);
|
|
6121
6107
|
};
|
|
6122
6108
|
t(e.offsetHeight);
|
|
6123
6109
|
let n = new ResizeObserver(([e]) => {
|
|
@@ -6126,29 +6112,29 @@ function Uu(e) {
|
|
|
6126
6112
|
t(typeof n == "number" ? n : e.contentRect.height);
|
|
6127
6113
|
});
|
|
6128
6114
|
return n.observe(e), () => {
|
|
6129
|
-
n.disconnect(), e.style.removeProperty(
|
|
6115
|
+
n.disconnect(), e.style.removeProperty(pr);
|
|
6130
6116
|
};
|
|
6131
6117
|
}
|
|
6132
6118
|
//#endregion
|
|
6133
6119
|
//#region src/screen/observeViewportScrollHeight.ts
|
|
6134
|
-
var
|
|
6120
|
+
var ju = 0, Mu = 0, Nu = 0, Pu = !1, Fu = /* @__PURE__ */ new Set(), Iu = 0, Lu = () => {
|
|
6135
6121
|
let e = document.documentElement.scrollHeight - (window.visualViewport?.height || 0);
|
|
6136
6122
|
e = e < 0 ? 0 : e;
|
|
6137
|
-
let t = e -
|
|
6138
|
-
t = t < 0 ? 0 : t,
|
|
6139
|
-
for (let n of [...
|
|
6140
|
-
},
|
|
6141
|
-
cancelAnimationFrame(
|
|
6123
|
+
let t = e - ju;
|
|
6124
|
+
t = t < 0 ? 0 : t, ju ||= e, Mu = e, Nu = t, Pu = !0;
|
|
6125
|
+
for (let n of [...Fu]) n(e, t);
|
|
6126
|
+
}, Ru = () => {
|
|
6127
|
+
cancelAnimationFrame(Iu), Iu = requestAnimationFrame(Lu);
|
|
6142
6128
|
};
|
|
6143
|
-
function
|
|
6144
|
-
let t =
|
|
6145
|
-
return
|
|
6146
|
-
|
|
6129
|
+
function zu(e) {
|
|
6130
|
+
let t = Fu.size === 0;
|
|
6131
|
+
return Fu.add(e), t && (window.visualViewport?.addEventListener("resize", Ru), window.visualViewport?.addEventListener("scroll", Ru)), Pu && (e(Mu, Nu), t && Ru()), () => {
|
|
6132
|
+
Fu.delete(e), !(Fu.size > 0) && (cancelAnimationFrame(Iu), window.visualViewport?.removeEventListener("resize", Ru), window.visualViewport?.removeEventListener("scroll", Ru));
|
|
6147
6133
|
};
|
|
6148
6134
|
}
|
|
6149
6135
|
//#endregion
|
|
6150
6136
|
//#region src/utils/isOpaqueColor.ts
|
|
6151
|
-
function
|
|
6137
|
+
function Bu(e) {
|
|
6152
6138
|
let t = e.trim().toLowerCase();
|
|
6153
6139
|
if (t === "transparent" || t === "") return !1;
|
|
6154
6140
|
if (t.match(/^rgb\(\s*\d+[\s,]+\d+[\s,]+\d+\s*\)$/)) return !0;
|
|
@@ -6159,7 +6145,7 @@ function $u(e) {
|
|
|
6159
6145
|
}
|
|
6160
6146
|
//#endregion
|
|
6161
6147
|
//#region src/utils/buildRoutePath.ts
|
|
6162
|
-
function
|
|
6148
|
+
function Vu(e, n) {
|
|
6163
6149
|
let i = n ?? {}, a = t(e)(Object.fromEntries(Object.entries(i).map(([e, t]) => [e, String(t)]))), o = (typeof e == "string" ? r(e) : e).tokens.filter((e) => e.type === "param").map((e) => e.name), s = Object.fromEntries(Object.entries(i).filter(([e]) => !o.includes(e))), c = new URLSearchParams(s).toString();
|
|
6164
6150
|
return {
|
|
6165
6151
|
pathname: `${a}${c ? `?${c}` : ""}`,
|
|
@@ -6167,4 +6153,4 @@ function ed(e, n) {
|
|
|
6167
6153
|
};
|
|
6168
6154
|
}
|
|
6169
6155
|
//#endregion
|
|
6170
|
-
export { st as ACTIVE_ATTR, Rt as ANIM_HOLD, J as ANIM_HOLD_ATTR, zt as ANIM_HOLD_PAUSED_VALUES,
|
|
6156
|
+
export { st as ACTIVE_ATTR, Rt as ANIM_HOLD, J as ANIM_HOLD_ATTR, zt as ANIM_HOLD_PAUSED_VALUES, hu as ANIM_HOLD_RELEASE_BACKSTOP_MS, ft as BAR_ACTIVE_ATTR, dt as BAR_ATTR, ht as BAR_ID_ATTR, gt as BAR_ID_TYPE_ATTR, mt as BAR_RIDING_ATTR, vt as BAR_SPACER_ATTR, pt as BAR_STATUS_ATTR, _t as BAR_TRANSITION_ATTR, Ut as CREEP_ATTR, yt as DECORATOR_ATTR, bt as DECORATOR_NAME_ATTR, zl as DEFAULT_COMMIT_FRACTION, Bl as DEFAULT_COMMIT_VELOCITY, nt as DEFAULT_MORPH_TRANSITION_NAME, Wt as DESK_HEAD_ATTR, Jt as DEVTOOLS_PANEL_ATTR, Yt as FLEMO_ATTRIBUTES, it as FLEMO_ATTR_PREFIX, Ht as GOVERNED_ATTR, Kt as GPU_PREWARM_ATTR, Bt as HELD_ARRIVAL_ATTR, Vt as IMAGE_HOLD_ATTR, St as LAYER_HOST_ATTR, wt as LAYER_OWNER_ATTR, Ct as LAYER_SLOT_ATTR, Ul as MIN_SETTLE_SECONDS, Ot as MORPH_ATTR, It as MORPH_CAMERA_ATTR, Ft as MORPH_GHOST_ATTR, jt as MORPH_ID_ATTR, Mt as MORPH_LAYER_ATTR, At as MORPH_NAME_ATTR, kt as MORPH_ROLE, Lt as MORPH_SHEET_ATTR, Nt as MORPH_SLOT_ATTR, Pt as MORPH_STAND_IN_ATTR, qt as OFFLOADED_SRC_ATTR, Ll as OVERLAY_LEVEL, zs as OVERSIZE_AREA_RATIO, Gt as PARK_HEAD_ATTR, Et as PART_HOME_ATTR, Tt as PART_LAYER_ATTR, q as PART_NAME_ATTR, pr as RIDE_HEIGHT_VAR, lt as ROUTER_ATTR, at as SCREEN_ATTR, Rl as SCREEN_STACKING_ORDER, ut as SKIP_ANIMATION_ATTR, ot as STATUS_ATTR, P as TRANSITIONAL_STATUS_VALUES, ct as TRANSITION_ATTR, c as TaskManager, c as TaskManger, Il as UNNUMBERED_LEVEL, G as adoptEntryIdentity, mu as animHoldKey, ys as animateInline, Wr as animationName, z as appendParamsQuery, is as applyTransitionStyles, Ro as attachMorph, Y as attrSelector, X as attrValueSelector, Yo as beginMorphSwipe, Vu as buildRoutePath, tu as canProgrammaticallyScroll, $ as clearInlineAnimation, Nr as collectAnimatedProperties, Qr as compileTransitionStyles, su as computeBarRiding, le as computeScreenFreeze, ce as computeScreenFreezeMode, w as consumeSelfInducedPop, Ou as createAnimHoldCoordinator, b as createBrowserHistoryDriver, je as createDecorator, l as createHistoryStore, T as createHistorySync, $s as createImageDecodeOffloader, te as createMemoryHistoryDriver, qe as createMorphTransition, ne as createNavigateStore, L as createNavigationController, He as createPartTransition, Me as createRawDecorator, Je as createRawMorphTransition, Ue as createRawPartTransition, de as createRawTransition, W as createRouterScope, se as createScreenSelector, ae as createScreenStore, x as createSelfPopGuard, ie as createStepController, cu as createSwipeController, ue as createTransition, yl as createTransitionEngine, V as createTransitionStore, he as cupertino, Fe as decoratorMap, ma as detectBlinkEngine, yu as eagerlyDecodeImages, Ir as easingToCss, jl as ensureGpuPipelinePrewarm, tc as ensureImageDecodeOffloader, ee as ensureScopeHistorySync, m as ensureWindowHistoryState, fs as enteringInitialStyle, Ql as findScrollable, u as getMatchedPathPattern, d as getParams, Ba as governedCompiledActive, va as isDesktopBlink, ga as isLegacyAndroidBlink, Bu as isOpaqueColor, p as isServer, Se as layout, C as markSelfInducedPop, H as matchesPathname, De as material, tt as morphTransitionMap, Oe as none, ku as observeBarHeight, zu as observeViewportScrollHeight, eu as overflowsAxis, Pe as overlay, Ge as partTransitionMap, hr as percentRatio, Au as publishRideBox, R as readStepParams, pi as registerMorphLayer, Bo as registerPartLayer, ds as registerTransitionDefinitions, N as releaseScopeHistorySync, Ve as resolveDecoratorClock, Vo as resolvePartLayer, Ua as resolvePlatformProfile, _r as resolveRideTarget, Hl as resolveSwipeOptions, Ae as resolveTransition, gr as rideLength, Eu as scheduleAnimHoldRelease, f as seedInitialHistory, h as seedRouterEntry, Xe as shared, ou as sharedBarsMatch, Js as shouldOffloadImage, Fl as startFlemoRuntime, ka as steadySixtyDesktopProfile, B as subscribeStepParamsRestore, Yl as swipeSettleSeconds, Pr as targetToDecls, Qe as textMorph, ke as transitionMap, ti as variantHasAnimation, et as zoomMorph };
|