@flemo/core 1.27.0 → 1.28.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs
CHANGED
|
@@ -579,7 +579,7 @@ var M = (e, t, n) => {
|
|
|
579
579
|
let { regexp: r } = i(e);
|
|
580
580
|
for (let e = t - 1; e >= 0; e--) if (r.test(n[e].pathname)) return t - e;
|
|
581
581
|
return -1;
|
|
582
|
-
},
|
|
582
|
+
}, N = (e, t) => typeof e == "number" && Number.isFinite(e) ? Math.max(0, Math.trunc(e)) : t, P = async (e, t, n, r) => {
|
|
583
583
|
let i, a = new Promise((t) => {
|
|
584
584
|
i = e.subscribe(() => t(!0));
|
|
585
585
|
}), o = new Promise((e) => setTimeout(() => e(!1), 200));
|
|
@@ -587,7 +587,7 @@ var M = (e, t, n) => {
|
|
|
587
587
|
let s = await Promise.race([a, o]);
|
|
588
588
|
i(), s && r();
|
|
589
589
|
};
|
|
590
|
-
function
|
|
590
|
+
function te(e) {
|
|
591
591
|
let { stores: t, buildPathname: n, driver: r = g(), markSelfInduced: i = y } = e, o = () => t.history.getState().bumpTruncationEpoch(), c = () => {
|
|
592
592
|
let e = r.readState();
|
|
593
593
|
if (!e?.id) return null;
|
|
@@ -616,7 +616,7 @@ function ne(e) {
|
|
|
616
616
|
let e = M(u.until, d, f);
|
|
617
617
|
return e < 0 ? 0 : e;
|
|
618
618
|
}
|
|
619
|
-
return Math.min(
|
|
619
|
+
return Math.min(N(u?.skip, 0), Math.max(0, d));
|
|
620
620
|
})(), { setStatus: y, setTransitionTaskId: b } = t.navigate.getState();
|
|
621
621
|
y("PUSHING"), b(h);
|
|
622
622
|
let { pathname: x, toPathname: S } = n(e, l ?? {}), C = {
|
|
@@ -643,7 +643,7 @@ function ne(e) {
|
|
|
643
643
|
return g({
|
|
644
644
|
...C,
|
|
645
645
|
frameIndex: T + 1
|
|
646
|
-
}), await
|
|
646
|
+
}), await P(r, i, v, () => {
|
|
647
647
|
o(), r.pushState({
|
|
648
648
|
id: h,
|
|
649
649
|
index: T + 1,
|
|
@@ -676,7 +676,7 @@ function ne(e) {
|
|
|
676
676
|
let e = M(u.until, d, f);
|
|
677
677
|
return e < 0 ? 0 : e + 1;
|
|
678
678
|
}
|
|
679
|
-
return Math.min(
|
|
679
|
+
return Math.min(N(u?.skip, 0) + 1, d + 1);
|
|
680
680
|
})();
|
|
681
681
|
if (y <= 0) {
|
|
682
682
|
a.abort();
|
|
@@ -708,7 +708,7 @@ function ne(e) {
|
|
|
708
708
|
return v(y - 1), g({
|
|
709
709
|
...w,
|
|
710
710
|
frameIndex: E
|
|
711
|
-
}), y <= d ? await
|
|
711
|
+
}), y <= d ? await P(r, i, y, () => {
|
|
712
712
|
o(), r.pushState({
|
|
713
713
|
id: h,
|
|
714
714
|
index: E,
|
|
@@ -717,7 +717,7 @@ function ne(e) {
|
|
|
717
717
|
transitionName: p,
|
|
718
718
|
layoutId: m
|
|
719
719
|
}, S);
|
|
720
|
-
}) : await
|
|
720
|
+
}) : await P(r, i, d, () => {
|
|
721
721
|
o(), r.replaceState({
|
|
722
722
|
id: h,
|
|
723
723
|
index: E,
|
|
@@ -776,7 +776,7 @@ function ne(e) {
|
|
|
776
776
|
let r = M(e.until, t, n);
|
|
777
777
|
return r < 0 ? 0 : r;
|
|
778
778
|
}
|
|
779
|
-
let r =
|
|
779
|
+
let r = N(e?.skip, 1);
|
|
780
780
|
return r <= 0 ? 0 : Math.min(r, t);
|
|
781
781
|
}, e?.transitionName);
|
|
782
782
|
}
|
|
@@ -784,14 +784,14 @@ function ne(e) {
|
|
|
784
784
|
}
|
|
785
785
|
//#endregion
|
|
786
786
|
//#region src/navigate/createStepController.ts
|
|
787
|
-
var
|
|
787
|
+
var ne = (e) => {
|
|
788
788
|
let t = e;
|
|
789
789
|
return t?.step ? t.params ?? {} : null;
|
|
790
|
-
},
|
|
790
|
+
}, re = (e, t) => {
|
|
791
791
|
let n = new URLSearchParams(Object.fromEntries(Object.entries(t).map(([e, t]) => [e, String(t)]))).toString();
|
|
792
792
|
return n ? `${e}?${n}` : e;
|
|
793
793
|
};
|
|
794
|
-
function
|
|
794
|
+
function ie(e) {
|
|
795
795
|
let { stores: t, driver: n, markSelfInduced: r, buildStepPathname: i, applyParams: o } = e;
|
|
796
796
|
return {
|
|
797
797
|
pushStep: async (e) => {
|
|
@@ -849,7 +849,7 @@ function ae(e) {
|
|
|
849
849
|
}
|
|
850
850
|
};
|
|
851
851
|
}
|
|
852
|
-
function
|
|
852
|
+
function ae(e, t) {
|
|
853
853
|
return e.subscribe((e) => {
|
|
854
854
|
let n = e.state;
|
|
855
855
|
n?.step && s.addTask(async () => {
|
|
@@ -859,7 +859,7 @@ function oe(e, t) {
|
|
|
859
859
|
}
|
|
860
860
|
//#endregion
|
|
861
861
|
//#region src/transition/store.ts
|
|
862
|
-
function
|
|
862
|
+
function oe(t = "cupertino") {
|
|
863
863
|
return e((e) => ({
|
|
864
864
|
defaultTransitionName: t,
|
|
865
865
|
setDefaultTransitionName: (t) => e({ defaultTransitionName: t })
|
|
@@ -867,18 +867,18 @@ function se(t = "cupertino") {
|
|
|
867
867
|
}
|
|
868
868
|
//#endregion
|
|
869
869
|
//#region src/utils/matchesPathname.ts
|
|
870
|
-
function
|
|
870
|
+
function se(e, t) {
|
|
871
871
|
return i(e).regexp.test(t);
|
|
872
872
|
}
|
|
873
873
|
//#endregion
|
|
874
874
|
//#region src/screen/store.ts
|
|
875
|
-
var
|
|
875
|
+
var ce = (e, t) => {
|
|
876
876
|
if (e) return e.height !== void 0 || e.id !== t?.id ? e : {
|
|
877
877
|
...e,
|
|
878
878
|
height: t?.height
|
|
879
879
|
};
|
|
880
880
|
};
|
|
881
|
-
function
|
|
881
|
+
function le() {
|
|
882
882
|
return e((e) => ({
|
|
883
883
|
dragStatus: "IDLE",
|
|
884
884
|
replaceTransitionStatus: "IDLE",
|
|
@@ -892,8 +892,8 @@ function ue() {
|
|
|
892
892
|
topBar: n.topBar ? {} : void 0,
|
|
893
893
|
bottomBar: n.bottomBar ? {} : void 0
|
|
894
894
|
}, a = e.sharedBars[t], o = e.sharedBarMetadata[t], s = {
|
|
895
|
-
topBar:
|
|
896
|
-
bottomBar:
|
|
895
|
+
topBar: ce(i.topBar, o?.topBar),
|
|
896
|
+
bottomBar: ce(i.bottomBar, o?.bottomBar)
|
|
897
897
|
}, c = a?.topBar === n.topBar && a?.bottomBar === n.bottomBar, l = o?.topBar?.id === s.topBar?.id && o?.topBar?.height === s.topBar?.height && o?.bottomBar?.id === s.bottomBar?.id && o?.bottomBar?.height === s.bottomBar?.height && !!o?.topBar == !!s.topBar && !!o?.bottomBar == !!s.bottomBar;
|
|
898
898
|
return c && l ? e : {
|
|
899
899
|
sharedBars: {
|
|
@@ -942,14 +942,14 @@ function ue() {
|
|
|
942
942
|
}
|
|
943
943
|
//#endregion
|
|
944
944
|
//#region src/core/createRouterScope.ts
|
|
945
|
-
var
|
|
945
|
+
var ue = {
|
|
946
946
|
mark: () => {},
|
|
947
947
|
consume: () => !1
|
|
948
|
-
},
|
|
949
|
-
function
|
|
948
|
+
}, de = /* @__PURE__ */ new Map();
|
|
949
|
+
function fe(e) {
|
|
950
950
|
let { routePaths: t, pathname: n, search: r, defaultTransitionName: i, memory: a, browserDriver: o } = e, s = f() ? void 0 : e.persistKey;
|
|
951
951
|
if (s) {
|
|
952
|
-
let e =
|
|
952
|
+
let e = de.get(s);
|
|
953
953
|
if (e) {
|
|
954
954
|
e.life.alive = !0, e.navigate.getState().setStatus("IDLE"), e.navigate.getState().setTransitionTaskId(null);
|
|
955
955
|
let t = e.history.getState();
|
|
@@ -979,25 +979,25 @@ function pe(e) {
|
|
|
979
979
|
layoutId: p.layoutId
|
|
980
980
|
},
|
|
981
981
|
url: p.pathname
|
|
982
|
-
}) : o, h = a ?
|
|
982
|
+
}) : o, h = a ? ue : _(), g = {
|
|
983
983
|
history: c([p], 0),
|
|
984
984
|
navigate: ee(),
|
|
985
|
-
transition:
|
|
986
|
-
screen:
|
|
985
|
+
transition: oe(i),
|
|
986
|
+
screen: le(),
|
|
987
987
|
driver: m,
|
|
988
988
|
markSelfInduced: h.mark,
|
|
989
989
|
consume: h.consume,
|
|
990
990
|
routerKey: e.routerKey,
|
|
991
991
|
zoneEntryId: e.zoneEntryId,
|
|
992
|
-
ownsPathname: (e) =>
|
|
992
|
+
ownsPathname: (e) => se(t, e),
|
|
993
993
|
persistent: !!s,
|
|
994
994
|
life: { alive: !0 }
|
|
995
995
|
};
|
|
996
|
-
return s &&
|
|
996
|
+
return s && de.set(s, g), g;
|
|
997
997
|
}
|
|
998
998
|
//#endregion
|
|
999
999
|
//#region src/screen/createScreenSelector.ts
|
|
1000
|
-
function
|
|
1000
|
+
function pe(e, t) {
|
|
1001
1001
|
return e.map((n, r) => ({
|
|
1002
1002
|
...n,
|
|
1003
1003
|
isActive: r === t,
|
|
@@ -1010,174 +1010,170 @@ function me(e, t) {
|
|
|
1010
1010
|
}
|
|
1011
1011
|
//#endregion
|
|
1012
1012
|
//#region src/core/engine/driverPolicy.ts
|
|
1013
|
-
var
|
|
1013
|
+
var F = "flemo:motion-driver-force", me = !1, he = () => {
|
|
1014
1014
|
try {
|
|
1015
1015
|
try {
|
|
1016
|
-
typeof localStorage < "u" && localStorage.removeItem(
|
|
1016
|
+
typeof localStorage < "u" && localStorage.removeItem(F);
|
|
1017
1017
|
} catch {}
|
|
1018
1018
|
if (typeof sessionStorage > "u") return null;
|
|
1019
|
-
let e = sessionStorage.getItem(
|
|
1019
|
+
let e = sessionStorage.getItem(F);
|
|
1020
1020
|
if (e === null) return null;
|
|
1021
1021
|
let [t, n] = e.split("@"), r = Number(n);
|
|
1022
|
-
return (t === "css" || t === "raf") && n !== void 0 && Number.isFinite(r) && Math.abs(Date.now() - r) < 864e5 ? (!
|
|
1022
|
+
return (t === "css" || t === "raf") && n !== void 0 && Number.isFinite(r) && Math.abs(Date.now() - r) < 864e5 ? (!me && typeof console < "u" && (me = !0, console.warn(`[flemo] motion driver pinned to "${t}" via sessionStorage ${F}; remove the key to restore automatic selection (pins expire after 24h).`)), t) : (sessionStorage.removeItem(F), null);
|
|
1023
1023
|
} catch {
|
|
1024
1024
|
return null;
|
|
1025
1025
|
}
|
|
1026
|
-
},
|
|
1026
|
+
}, I = () => {
|
|
1027
1027
|
if (typeof navigator > "u") return !1;
|
|
1028
1028
|
let e = navigator.userAgentData?.brands;
|
|
1029
1029
|
if (Array.isArray(e)) return e.some((e) => /chromium/i.test(e?.brand ?? ""));
|
|
1030
1030
|
let t = navigator.userAgent ?? "";
|
|
1031
1031
|
return /Android/i.test(t) && !/Firefox|FxiOS/i.test(t);
|
|
1032
|
-
},
|
|
1032
|
+
}, ge = () => {
|
|
1033
1033
|
if (typeof navigator > "u") return !1;
|
|
1034
1034
|
let e = navigator.userAgentData?.brands;
|
|
1035
1035
|
if (Array.isArray(e)) return !1;
|
|
1036
1036
|
let t = navigator.userAgent ?? "";
|
|
1037
1037
|
return /Android/i.test(t) && !/Firefox|FxiOS/i.test(t) && (navigator.maxTouchPoints ?? 0) > 0;
|
|
1038
|
-
},
|
|
1038
|
+
}, _e = () => typeof navigator > "u" ? !1 : !I() && navigator.maxTouchPoints === 0 && /Mac/.test(navigator.platform), ve = () => I() && typeof navigator < "u" && navigator.maxTouchPoints === 0, ye = ((e = !1) => ({
|
|
1039
1039
|
playerAllowed: () => {
|
|
1040
|
-
let t =
|
|
1040
|
+
let t = he();
|
|
1041
1041
|
return t ? t === "raf" : e;
|
|
1042
1042
|
},
|
|
1043
|
-
pinnedDriver:
|
|
1044
|
-
}))(!0),
|
|
1043
|
+
pinnedDriver: he
|
|
1044
|
+
}))(!0), be = 28, xe = 42, Se = 8, Ce = 20, we = 6, Te = 400, Ee = 8, De = "flemo:lpm", Oe = () => !I() && typeof navigator < "u" && navigator.maxTouchPoints > 0 && typeof requestAnimationFrame == "function", ke = () => {
|
|
1045
1045
|
try {
|
|
1046
|
-
return typeof sessionStorage < "u" && sessionStorage.getItem(
|
|
1046
|
+
return typeof sessionStorage < "u" && sessionStorage.getItem(De) === "1";
|
|
1047
1047
|
} catch {
|
|
1048
1048
|
return !1;
|
|
1049
1049
|
}
|
|
1050
|
-
},
|
|
1050
|
+
}, Ae = (e) => {
|
|
1051
1051
|
try {
|
|
1052
|
-
typeof sessionStorage < "u" && sessionStorage.setItem(
|
|
1052
|
+
typeof sessionStorage < "u" && sessionStorage.setItem(De, e ? "1" : "0");
|
|
1053
1053
|
} catch {}
|
|
1054
|
-
},
|
|
1055
|
-
if (
|
|
1056
|
-
|
|
1054
|
+
}, je = !1, Me = !1, Ne = !1, Pe = 12, Fe = 8, Ie = [], L = null, Le = !1, Re = !1, ze = !1, Be = () => {
|
|
1055
|
+
if (Le || !Oe()) return;
|
|
1056
|
+
Le = !0;
|
|
1057
1057
|
let e = (t) => {
|
|
1058
|
-
if (
|
|
1059
|
-
let e = [...
|
|
1060
|
-
t[t.length - 1] - t[0] <=
|
|
1058
|
+
if (L !== null && (Ie.push(t - L), Ie.length > Pe && Ie.shift(), Ie.length >= Fe)) {
|
|
1059
|
+
let e = [...Ie].sort((e, t) => e - t), t = e.slice(1, e.length - 1), n = t[t.length >> 1];
|
|
1060
|
+
t[t.length - 1] - t[0] <= Se && (Re = n >= be && n <= xe, ze = !0);
|
|
1061
1061
|
}
|
|
1062
|
-
|
|
1062
|
+
L = t, requestAnimationFrame(e);
|
|
1063
1063
|
};
|
|
1064
1064
|
requestAnimationFrame(e);
|
|
1065
|
-
},
|
|
1066
|
-
if (
|
|
1067
|
-
|
|
1065
|
+
}, Ve = () => je || ze && Re, He = () => Oe(), Ue = (e = 0) => {
|
|
1066
|
+
if (Me || !Oe()) return;
|
|
1067
|
+
Me = !0;
|
|
1068
1068
|
let t = [], n = null, r = (i) => {
|
|
1069
|
-
if (n !== null && t.push(i - n), n = i, t.length <
|
|
1069
|
+
if (n !== null && t.push(i - n), n = i, t.length < we) {
|
|
1070
1070
|
requestAnimationFrame(r);
|
|
1071
1071
|
return;
|
|
1072
1072
|
}
|
|
1073
|
-
|
|
1074
|
-
let a = [...t].sort((e, t) => e - t), o = a.slice(0, a.length - 1), s = o[0] >=
|
|
1073
|
+
Me = !1;
|
|
1074
|
+
let a = [...t].sort((e, t) => e - t), o = a.slice(0, a.length - 1), s = o[0] >= be && o[o.length - 1] <= xe && o[o.length - 1] - o[0] <= Se, c = o[o.length - 1] <= Ce;
|
|
1075
1075
|
if (s || c) {
|
|
1076
|
-
|
|
1076
|
+
je = s, s && o[Math.floor(o.length / 2)], Ae(je);
|
|
1077
1077
|
return;
|
|
1078
1078
|
}
|
|
1079
1079
|
/* v8 ignore next 3 -- setTimeout exists in every runtime under test. */
|
|
1080
|
-
e + 1 <
|
|
1080
|
+
e + 1 < Ee && typeof setTimeout == "function" && setTimeout(() => Ue(e + 1), Te);
|
|
1081
1081
|
};
|
|
1082
1082
|
requestAnimationFrame(r);
|
|
1083
|
-
},
|
|
1084
|
-
|
|
1085
|
-
document.visibilityState === "visible" &&
|
|
1083
|
+
}, We = () => {
|
|
1084
|
+
Be(), Ue(), !(Ne || typeof document > "u" || typeof document.addEventListener != "function") && (Ne = !0, document.addEventListener("visibilitychange", () => {
|
|
1085
|
+
document.visibilityState === "visible" && Ue();
|
|
1086
1086
|
}));
|
|
1087
1087
|
};
|
|
1088
|
-
|
|
1089
|
-
var
|
|
1088
|
+
Oe() && (je = ke(), Be(), Ue());
|
|
1089
|
+
var Ge = 14, Ke = 22, qe = 2, Je = 1.5, Ye = "flemo:sixty", Xe = () => {
|
|
1090
1090
|
try {
|
|
1091
|
-
return typeof sessionStorage < "u" ? sessionStorage.getItem(
|
|
1091
|
+
return typeof sessionStorage < "u" ? sessionStorage.getItem(Ye) : null;
|
|
1092
1092
|
} catch {
|
|
1093
1093
|
return null;
|
|
1094
1094
|
}
|
|
1095
|
-
},
|
|
1095
|
+
}, Ze = (e) => {
|
|
1096
1096
|
try {
|
|
1097
|
-
typeof sessionStorage < "u" && sessionStorage.setItem(
|
|
1097
|
+
typeof sessionStorage < "u" && sessionStorage.setItem(Ye, e);
|
|
1098
1098
|
} catch {}
|
|
1099
|
-
},
|
|
1100
|
-
if (!(!Number.isFinite(e) || e <= 0) &&
|
|
1099
|
+
}, Qe = Xe(), $e = Qe === "high", et = Qe !== null && Qe !== "high" ? Math.min(qe, Math.max(0, parseInt(Qe, 10) || 0)) : 0, tt = () => typeof navigator > "u" || (navigator.maxTouchPoints ?? 0) === 0, nt = (e, t) => {
|
|
1100
|
+
if (!(!Number.isFinite(e) || e <= 0) && tt()) {
|
|
1101
1101
|
if (e < 12) {
|
|
1102
1102
|
if (t !== void 0 && t > 24) return;
|
|
1103
|
-
|
|
1103
|
+
$e = !0, et = 0, Ze("high");
|
|
1104
1104
|
return;
|
|
1105
1105
|
}
|
|
1106
|
-
if (e >=
|
|
1107
|
-
|
|
1106
|
+
if (e >= Ge && e <= Ke) {
|
|
1107
|
+
et = Math.min(qe, et + 1), $e || Ze(String(et));
|
|
1108
1108
|
return;
|
|
1109
1109
|
}
|
|
1110
|
-
e <
|
|
1110
|
+
e < Ge && (et = 0, $e || Ze("0"));
|
|
1111
1111
|
}
|
|
1112
|
-
},
|
|
1112
|
+
}, rt = () => !$e && et >= qe, it = () => rt() && I() && typeof navigator < "u" && navigator.maxTouchPoints === 0 && typeof window < "u" && (window.devicePixelRatio || 1) >= Je, R = (e) => {
|
|
1113
1113
|
try {
|
|
1114
1114
|
return typeof sessionStorage < "u" ? sessionStorage.getItem(e) : null;
|
|
1115
1115
|
} catch {
|
|
1116
1116
|
return null;
|
|
1117
1117
|
}
|
|
1118
|
-
},
|
|
1119
|
-
let e =
|
|
1118
|
+
}, at = () => R("flemo:landing-snap") === "on", ot = () => {
|
|
1119
|
+
let e = R("flemo:imghold");
|
|
1120
1120
|
return e === "on" || e === "off" ? e : null;
|
|
1121
|
-
},
|
|
1121
|
+
}, st = () => I() && (navigator.maxTouchPoints ?? 0) > 0, ct = () => {
|
|
1122
1122
|
try {
|
|
1123
1123
|
let e = typeof sessionStorage < "u" ? sessionStorage.getItem("flemo:settle-gate") : null;
|
|
1124
|
-
return e === "on" ? !0 : e === "off" ? !1 :
|
|
1124
|
+
return e === "on" ? !0 : e === "off" ? !1 : He() || it() || st() || _e();
|
|
1125
1125
|
} catch {
|
|
1126
1126
|
return !1;
|
|
1127
1127
|
}
|
|
1128
|
-
},
|
|
1129
|
-
let e =
|
|
1130
|
-
return e === "on" || e !== "off" &&
|
|
1128
|
+
}, lt = () => R("flemo:handoff") === "on", ut = () => R("flemo:arrivalhold") !== "off", dt = () => {
|
|
1129
|
+
let e = R("flemo:deskflip");
|
|
1130
|
+
return e === "on" || e !== "off" && _e();
|
|
1131
|
+
}, ft = () => {
|
|
1132
|
+
let e = R("flemo:creep");
|
|
1133
|
+
return e === "on" || e !== "off" && He();
|
|
1131
1134
|
}, pt = () => {
|
|
1132
|
-
let e =
|
|
1133
|
-
return e === "
|
|
1135
|
+
let e = R("flemo:relcommit");
|
|
1136
|
+
return e === "defer" || e !== "sync" && He();
|
|
1134
1137
|
}, mt = () => {
|
|
1135
|
-
let e =
|
|
1136
|
-
return e === "
|
|
1137
|
-
}, ht = () => {
|
|
1138
|
-
let e =
|
|
1139
|
-
return e === "on" || e !== "off" && ve();
|
|
1140
|
-
}, gt = () => L("flemo:preraster") === "on", _t = () => gt() || ye() || ve() || Ue(), vt = () => {
|
|
1141
|
-
let e = L("flemo:imgoffload");
|
|
1138
|
+
let e = R("flemo:deskhead");
|
|
1139
|
+
return e === "on" || e !== "off" && _e();
|
|
1140
|
+
}, ht = () => R("flemo:preraster") === "on", gt = () => ht(), _t = () => {
|
|
1141
|
+
let e = R("flemo:imgoffload");
|
|
1142
1142
|
return e === "on" || e === "off" ? e : null;
|
|
1143
|
-
},
|
|
1144
|
-
if (
|
|
1145
|
-
let e =
|
|
1146
|
-
return
|
|
1147
|
-
},
|
|
1148
|
-
if (
|
|
1149
|
-
let e =
|
|
1150
|
-
return
|
|
1151
|
-
},
|
|
1152
|
-
if (
|
|
1153
|
-
let e =
|
|
1154
|
-
return
|
|
1155
|
-
},
|
|
1156
|
-
if (
|
|
1157
|
-
let e =
|
|
1158
|
-
return
|
|
1159
|
-
},
|
|
1160
|
-
if (
|
|
1161
|
-
let e =
|
|
1162
|
-
return
|
|
1163
|
-
}, kt, At = () =>
|
|
1164
|
-
if (kt !== void 0) return kt;
|
|
1165
|
-
let e = L("flemo:layers");
|
|
1166
|
-
return kt = e === "resident" || e !== "off" && Ue(), kt;
|
|
1167
|
-
}, jt, Mt = () => (jt === void 0 && (jt = L("flemo:freeze") === "shallow"), jt);
|
|
1143
|
+
}, vt, yt = () => {
|
|
1144
|
+
if (vt !== void 0) return vt;
|
|
1145
|
+
let e = R("flemo:apply");
|
|
1146
|
+
return vt = e === "scrub" ? e : null, vt;
|
|
1147
|
+
}, bt, xt = () => {
|
|
1148
|
+
if (bt !== void 0) return bt;
|
|
1149
|
+
let e = R("flemo:handoff");
|
|
1150
|
+
return bt = e === "on" ? e : null, bt;
|
|
1151
|
+
}, St, Ct = () => {
|
|
1152
|
+
if (St !== void 0) return St;
|
|
1153
|
+
let e = R("flemo:snap");
|
|
1154
|
+
return St = e === "always" || e === "off" || e === "gate" || e === "hybrid" ? e : null, St;
|
|
1155
|
+
}, wt, Tt = () => {
|
|
1156
|
+
if (wt !== void 0) return wt;
|
|
1157
|
+
let e = R("flemo:snapband"), t = e === null ? NaN : Number(e);
|
|
1158
|
+
return wt = Number.isFinite(t) && t > 0 ? t : 4, wt;
|
|
1159
|
+
}, Et, Dt = () => {
|
|
1160
|
+
if (Et !== void 0) return Et;
|
|
1161
|
+
let e = R("flemo:handoffms"), t = e === null ? NaN : Number(e);
|
|
1162
|
+
return Et = Number.isFinite(t) && t >= 0 ? t : 100, Et;
|
|
1163
|
+
}, Ot, kt = () => (Ot === void 0 && (Ot = R("flemo:layers") === "resident"), Ot), At, jt = () => (At === void 0 && (At = R("flemo:freeze") === "shallow"), At);
|
|
1168
1164
|
//#endregion
|
|
1169
1165
|
//#region src/screen/computeScreenFreeze.ts
|
|
1170
|
-
function
|
|
1166
|
+
function Mt(e) {
|
|
1171
1167
|
if (e.isPrev && e.index - 2 <= e.zIndex && e.replaceTransitionStatus === "IDLE" || e.isPrev && e.index - 2 > e.zIndex) return "immediate";
|
|
1172
1168
|
let t = e.status === "COMPLETED" && e.dragStatus === "IDLE";
|
|
1173
|
-
return !e.isActive && t ?
|
|
1169
|
+
return !e.isActive && t ? jt() ? "live" : "deferred" : "live";
|
|
1174
1170
|
}
|
|
1175
|
-
function
|
|
1176
|
-
return
|
|
1171
|
+
function Nt(e) {
|
|
1172
|
+
return Mt(e) !== "live";
|
|
1177
1173
|
}
|
|
1178
1174
|
//#endregion
|
|
1179
1175
|
//#region src/transition/createTransition.ts
|
|
1180
|
-
function
|
|
1176
|
+
function Pt({ name: e, initial: t, idle: n, enter: r, enterBack: i, exit: a, exitBack: o, options: s }) {
|
|
1181
1177
|
return {
|
|
1182
1178
|
name: e,
|
|
1183
1179
|
initial: t,
|
|
@@ -1198,7 +1194,7 @@ function Ft({ name: e, initial: t, idle: n, enter: r, enterBack: i, exit: a, exi
|
|
|
1198
1194
|
}
|
|
1199
1195
|
//#endregion
|
|
1200
1196
|
//#region src/transition/createRawTransition.ts
|
|
1201
|
-
function
|
|
1197
|
+
function Ft({ name: e, initial: t, idle: n, pushOnEnter: r, pushOnExit: i, replaceOnEnter: a, replaceOnExit: o, popOnEnter: s, popOnExit: c, completedOnExit: l, completedOnEnter: u, options: d }) {
|
|
1202
1198
|
return {
|
|
1203
1199
|
name: e,
|
|
1204
1200
|
initial: t,
|
|
@@ -1219,15 +1215,15 @@ function It({ name: e, initial: t, idle: n, pushOnEnter: r, pushOnExit: i, repla
|
|
|
1219
1215
|
}
|
|
1220
1216
|
//#endregion
|
|
1221
1217
|
//#region src/transition/cupertino.ts
|
|
1222
|
-
var
|
|
1218
|
+
var It = (e, t, n) => {
|
|
1223
1219
|
let [r, i] = t, [a, o] = n;
|
|
1224
1220
|
return i === r ? a : a + (e - r) / (i - r) * (o - a);
|
|
1225
|
-
},
|
|
1221
|
+
}, Lt = 30, Rt = .7, zt = [
|
|
1226
1222
|
.32,
|
|
1227
1223
|
.72,
|
|
1228
1224
|
0,
|
|
1229
1225
|
1
|
|
1230
|
-
],
|
|
1226
|
+
], Bt = Pt({
|
|
1231
1227
|
name: "cupertino",
|
|
1232
1228
|
initial: { x: "100%" },
|
|
1233
1229
|
idle: {
|
|
@@ -1237,29 +1233,29 @@ var Lt = (e, t, n) => {
|
|
|
1237
1233
|
enter: {
|
|
1238
1234
|
value: { x: 0 },
|
|
1239
1235
|
options: {
|
|
1240
|
-
duration:
|
|
1241
|
-
ease:
|
|
1236
|
+
duration: Rt,
|
|
1237
|
+
ease: zt
|
|
1242
1238
|
}
|
|
1243
1239
|
},
|
|
1244
1240
|
enterBack: {
|
|
1245
1241
|
value: { x: "100%" },
|
|
1246
1242
|
options: {
|
|
1247
|
-
duration:
|
|
1248
|
-
ease:
|
|
1243
|
+
duration: Rt,
|
|
1244
|
+
ease: zt
|
|
1249
1245
|
}
|
|
1250
1246
|
},
|
|
1251
1247
|
exit: {
|
|
1252
|
-
value: { x: `-${
|
|
1248
|
+
value: { x: `-${Lt}%` },
|
|
1253
1249
|
options: {
|
|
1254
|
-
duration:
|
|
1255
|
-
ease:
|
|
1250
|
+
duration: Rt,
|
|
1251
|
+
ease: zt
|
|
1256
1252
|
}
|
|
1257
1253
|
},
|
|
1258
1254
|
exitBack: {
|
|
1259
1255
|
value: { x: 0 },
|
|
1260
1256
|
options: {
|
|
1261
|
-
duration:
|
|
1262
|
-
ease:
|
|
1257
|
+
duration: Rt,
|
|
1258
|
+
ease: zt
|
|
1263
1259
|
}
|
|
1264
1260
|
},
|
|
1265
1261
|
options: {
|
|
@@ -1267,24 +1263,24 @@ var Lt = (e, t, n) => {
|
|
|
1267
1263
|
swipeDirection: "x",
|
|
1268
1264
|
onSwipeStart: async () => !0,
|
|
1269
1265
|
onSwipe: (e, t, { animate: n, currentScreen: r, prevScreen: i, onProgress: a }) => {
|
|
1270
|
-
let { offset: o } = t, s = o.x, c =
|
|
1271
|
-
return a?.(!0, c), n(r, { x: Math.max(0, s) }, { duration: 0 }), n(i, { x: `${-30 +
|
|
1266
|
+
let { offset: o } = t, s = o.x, c = It(s, [0, window.innerWidth], [0, 100]);
|
|
1267
|
+
return a?.(!0, c), n(r, { x: Math.max(0, s) }, { duration: 0 }), n(i, { x: `${-30 + Lt / 100 * c}%` }, { duration: 0 }), c;
|
|
1272
1268
|
},
|
|
1273
1269
|
onSwipeEnd: async (e, t, { animate: n, currentScreen: r, prevScreen: i, onStart: a }) => {
|
|
1274
1270
|
let { offset: o, velocity: s } = t, c = o.x > 50 || s.x > 20;
|
|
1275
1271
|
return a?.(c), await Promise.all([n(r, { x: c ? "100%" : 0 }, {
|
|
1276
1272
|
duration: .3,
|
|
1277
|
-
ease:
|
|
1278
|
-
}), n(i, { x: c ? 0 : `-${
|
|
1273
|
+
ease: zt
|
|
1274
|
+
}), n(i, { x: c ? 0 : `-${Lt}%` }, {
|
|
1279
1275
|
duration: .3,
|
|
1280
|
-
ease:
|
|
1276
|
+
ease: zt
|
|
1281
1277
|
})]), c;
|
|
1282
1278
|
}
|
|
1283
1279
|
}
|
|
1284
|
-
}),
|
|
1280
|
+
}), Vt = (e, t, n) => {
|
|
1285
1281
|
let [r, i] = t, [a, o] = n;
|
|
1286
1282
|
return i === r ? a : a + (e - r) / (i - r) * (o - a);
|
|
1287
|
-
},
|
|
1283
|
+
}, Ht = Pt({
|
|
1288
1284
|
name: "layout",
|
|
1289
1285
|
initial: { opacity: .97 },
|
|
1290
1286
|
idle: {
|
|
@@ -1312,7 +1308,7 @@ var Lt = (e, t, n) => {
|
|
|
1312
1308
|
swipeDirection: "y",
|
|
1313
1309
|
onSwipeStart: async () => !0,
|
|
1314
1310
|
onSwipe: (e, t, { animate: n, currentScreen: r, onProgress: i }) => {
|
|
1315
|
-
let { offset: a } = t, o = a.y, s = Math.max(0, Math.min(56, o)), c =
|
|
1311
|
+
let { offset: a } = t, o = a.y, s = Math.max(0, Math.min(56, o)), c = Vt(s, [0, 56], [1, .96]), l = Math.max(0, o - 56), u = Math.min(1, l / 160), d = Math.sqrt(u) * 12, f = Math.max(0, s + d), p = Math.min(56, f);
|
|
1316
1312
|
return i?.(!0, 100), n(r, {
|
|
1317
1313
|
y: f,
|
|
1318
1314
|
opacity: c
|
|
@@ -1329,7 +1325,7 @@ var Lt = (e, t, n) => {
|
|
|
1329
1325
|
}, { duration: .3 })]), c;
|
|
1330
1326
|
}
|
|
1331
1327
|
}
|
|
1332
|
-
}),
|
|
1328
|
+
}), Ut = Pt({
|
|
1333
1329
|
name: "material",
|
|
1334
1330
|
initial: { y: "100%" },
|
|
1335
1331
|
idle: {
|
|
@@ -1437,7 +1433,7 @@ var Lt = (e, t, n) => {
|
|
|
1437
1433
|
})]), c;
|
|
1438
1434
|
}
|
|
1439
1435
|
}
|
|
1440
|
-
}),
|
|
1436
|
+
}), Wt = Pt({
|
|
1441
1437
|
name: "none",
|
|
1442
1438
|
initial: {},
|
|
1443
1439
|
idle: {
|
|
@@ -1460,20 +1456,20 @@ var Lt = (e, t, n) => {
|
|
|
1460
1456
|
value: {},
|
|
1461
1457
|
options: { duration: 0 }
|
|
1462
1458
|
}
|
|
1463
|
-
}),
|
|
1464
|
-
["none",
|
|
1465
|
-
["cupertino",
|
|
1466
|
-
["material",
|
|
1467
|
-
["layout",
|
|
1459
|
+
}), Gt = /* @__PURE__ */ new Map([
|
|
1460
|
+
["none", Wt],
|
|
1461
|
+
["cupertino", Bt],
|
|
1462
|
+
["material", Ut],
|
|
1463
|
+
["layout", Ht]
|
|
1468
1464
|
]);
|
|
1469
1465
|
//#endregion
|
|
1470
1466
|
//#region src/transition/resolveTransition.ts
|
|
1471
|
-
function
|
|
1472
|
-
return
|
|
1467
|
+
function Kt(e) {
|
|
1468
|
+
return Gt.get(e) ?? Gt.get("none");
|
|
1473
1469
|
}
|
|
1474
1470
|
//#endregion
|
|
1475
1471
|
//#region src/transition/decorator/createDecorator.ts
|
|
1476
|
-
function
|
|
1472
|
+
function qt({ name: e, initial: t, idle: n, enter: r, exit: i, options: a }) {
|
|
1477
1473
|
return {
|
|
1478
1474
|
name: e,
|
|
1479
1475
|
initial: t,
|
|
@@ -1494,7 +1490,7 @@ function Jt({ name: e, initial: t, idle: n, enter: r, exit: i, options: a }) {
|
|
|
1494
1490
|
}
|
|
1495
1491
|
//#endregion
|
|
1496
1492
|
//#region src/transition/decorator/createRawDecorator.ts
|
|
1497
|
-
function
|
|
1493
|
+
function Jt({ name: e, initial: t, idle: n, pushOnEnter: r, pushOnExit: i, replaceOnEnter: a, replaceOnExit: o, popOnEnter: s, popOnExit: c, completedOnEnter: l, completedOnExit: u, options: d }) {
|
|
1498
1494
|
return {
|
|
1499
1495
|
name: e,
|
|
1500
1496
|
initial: t,
|
|
@@ -1515,30 +1511,30 @@ function Yt({ name: e, initial: t, idle: n, pushOnEnter: r, pushOnExit: i, repla
|
|
|
1515
1511
|
}
|
|
1516
1512
|
//#endregion
|
|
1517
1513
|
//#region src/transition/decorator/overlay.ts
|
|
1518
|
-
var
|
|
1514
|
+
var Yt = "rgba(0, 0, 0, 0.1)", Xt = qt({
|
|
1519
1515
|
name: "overlay",
|
|
1520
1516
|
initial: {
|
|
1521
1517
|
opacity: 0,
|
|
1522
|
-
backgroundColor:
|
|
1518
|
+
backgroundColor: Yt
|
|
1523
1519
|
},
|
|
1524
1520
|
idle: {
|
|
1525
1521
|
value: {
|
|
1526
1522
|
opacity: 0,
|
|
1527
|
-
backgroundColor:
|
|
1523
|
+
backgroundColor: Yt
|
|
1528
1524
|
},
|
|
1529
1525
|
options: { duration: 0 }
|
|
1530
1526
|
},
|
|
1531
1527
|
enter: {
|
|
1532
1528
|
value: {
|
|
1533
1529
|
opacity: 1,
|
|
1534
|
-
backgroundColor:
|
|
1530
|
+
backgroundColor: Yt
|
|
1535
1531
|
},
|
|
1536
1532
|
options: { duration: .7 }
|
|
1537
1533
|
},
|
|
1538
1534
|
exit: {
|
|
1539
1535
|
value: {
|
|
1540
1536
|
opacity: 0,
|
|
1541
|
-
backgroundColor:
|
|
1537
|
+
backgroundColor: Yt
|
|
1542
1538
|
},
|
|
1543
1539
|
options: { duration: .7 }
|
|
1544
1540
|
},
|
|
@@ -1547,10 +1543,10 @@ var Xt = "rgba(0, 0, 0, 0.1)", Zt = Jt({
|
|
|
1547
1543
|
onSwipe: (e, t, { animate: n, prevDecorator: r }) => n(r, { opacity: Math.max(0, 1 - t / 100) }, { duration: 0 }),
|
|
1548
1544
|
onSwipeEnd: (e, { animate: t, prevDecorator: n }) => t(n, { opacity: +!e }, { duration: .3 })
|
|
1549
1545
|
}
|
|
1550
|
-
}),
|
|
1546
|
+
}), z = /* @__PURE__ */ new Map([["overlay", Xt]]);
|
|
1551
1547
|
//#endregion
|
|
1552
1548
|
//#region src/transition/partTransition/createPartTransition.ts
|
|
1553
|
-
function
|
|
1549
|
+
function Zt({ name: e, initial: t, idle: n, enter: r, exit: i, options: a }) {
|
|
1554
1550
|
return {
|
|
1555
1551
|
name: e,
|
|
1556
1552
|
initial: t,
|
|
@@ -1571,7 +1567,7 @@ function Qt({ name: e, initial: t, idle: n, enter: r, exit: i, options: a }) {
|
|
|
1571
1567
|
}
|
|
1572
1568
|
//#endregion
|
|
1573
1569
|
//#region src/transition/partTransition/createRawPartTransition.ts
|
|
1574
|
-
function
|
|
1570
|
+
function Qt({ name: e, initial: t, idle: n, pushOnEnter: r, pushOnExit: i, replaceOnEnter: a, replaceOnExit: o, popOnEnter: s, popOnExit: c, completedOnEnter: l, completedOnExit: u, options: d }) {
|
|
1575
1571
|
return {
|
|
1576
1572
|
name: e,
|
|
1577
1573
|
initial: t,
|
|
@@ -1592,7 +1588,7 @@ function $t({ name: e, initial: t, idle: n, pushOnEnter: r, pushOnExit: i, repla
|
|
|
1592
1588
|
}
|
|
1593
1589
|
//#endregion
|
|
1594
1590
|
//#region src/transition/partTransition/partTransition.ts
|
|
1595
|
-
var
|
|
1591
|
+
var B = /* @__PURE__ */ new Map(), $t = {
|
|
1596
1592
|
"IDLE-true": "self",
|
|
1597
1593
|
"IDLE-false": "self",
|
|
1598
1594
|
"PUSHING-true": "initial",
|
|
@@ -1603,17 +1599,17 @@ var z = /* @__PURE__ */ new Map(), en = {
|
|
|
1603
1599
|
"POPPING-false": "PUSHING-false",
|
|
1604
1600
|
"COMPLETED-true": "self",
|
|
1605
1601
|
"COMPLETED-false": "self"
|
|
1606
|
-
},
|
|
1602
|
+
}, en = Object.keys($t), tn = (e) => {
|
|
1607
1603
|
if (!e) return 0;
|
|
1608
1604
|
let t = e.duration;
|
|
1609
1605
|
return typeof t == "number" && t >= 0 ? t : 0;
|
|
1610
|
-
},
|
|
1611
|
-
let n =
|
|
1606
|
+
}, nn = (e) => e && typeof e.delay == "number" && e.delay > 0 ? e.delay : 0, rn = (e, t) => {
|
|
1607
|
+
let n = $t[t];
|
|
1612
1608
|
return n === "self" ? null : n === "initial" ? e.initial : e.variants[n].value;
|
|
1613
|
-
},
|
|
1614
|
-
let n =
|
|
1609
|
+
}, V = (e, t) => {
|
|
1610
|
+
let n = rn(e, t);
|
|
1615
1611
|
if (n === null) return null;
|
|
1616
|
-
let r = e.variants[t], i =
|
|
1612
|
+
let r = e.variants[t], i = tn(r.options), a = nn(r.options);
|
|
1617
1613
|
return i <= 0 && a <= 0 ? null : {
|
|
1618
1614
|
from: n,
|
|
1619
1615
|
to: r.value,
|
|
@@ -1621,7 +1617,7 @@ var z = /* @__PURE__ */ new Map(), en = {
|
|
|
1621
1617
|
delay: a,
|
|
1622
1618
|
ease: r.options?.ease
|
|
1623
1619
|
};
|
|
1624
|
-
},
|
|
1620
|
+
}, an = en, on = "translateZ(0.02px)", sn = (e) => e.replace(/[^a-zA-Z0-9_-]/g, "_"), cn = (e) => typeof e == "object" && !!e && !Array.isArray(e), ln = /* @__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(".")), un = (e, t) => t.startsWith("--") || ln.has(t) ? `${e}` : t === "rotate" || t === "rotateX" || t === "rotateY" || t === "rotateZ" ? `${e}deg` : `${e}px`, dn = (e, t) => typeof t == "number" ? un(t, e) : typeof t == "string" ? t : "", fn = (e) => e.replace(/[A-Z]/g, (e) => `-${e.toLowerCase()}`), pn = /* @__PURE__ */ new Set([
|
|
1625
1621
|
"x",
|
|
1626
1622
|
"y",
|
|
1627
1623
|
"z",
|
|
@@ -1632,7 +1628,7 @@ var z = /* @__PURE__ */ new Map(), en = {
|
|
|
1632
1628
|
"rotateX",
|
|
1633
1629
|
"rotateY",
|
|
1634
1630
|
"rotateZ"
|
|
1635
|
-
]),
|
|
1631
|
+
]), mn = /^-?0(\.0+)?(px|%|em|rem|vh|vw|vmin|vmax)?$/, hn = /^-?0(\.0+)?(deg|rad|grad|turn)?$/, gn = /^1(\.0+)?$/, _n = (e, t) => e === "scale" || e === "scaleX" || e === "scaleY" ? t === 1 || typeof t == "string" && gn.test(t.trim()) : e === "rotate" || e === "rotateX" || e === "rotateY" || e === "rotateZ" ? t === 0 || typeof t == "string" && hn.test(t.trim()) : t === 0 || typeof t == "string" && mn.test(t.trim()), vn = (e, t) => {
|
|
1636
1632
|
switch (e) {
|
|
1637
1633
|
case "x": return `translate3d(${t}, 0, 0)`;
|
|
1638
1634
|
case "y": return `translate3d(0, ${t}, 0)`;
|
|
@@ -1646,16 +1642,16 @@ var z = /* @__PURE__ */ new Map(), en = {
|
|
|
1646
1642
|
case "rotateY": return `rotateY(${t})`;
|
|
1647
1643
|
default: return "";
|
|
1648
1644
|
}
|
|
1649
|
-
},
|
|
1645
|
+
}, yn = (e) => {
|
|
1650
1646
|
let t = /* @__PURE__ */ new Map(), n = !1, r = /* @__PURE__ */ new Set(), i = (e) => {
|
|
1651
|
-
if (!
|
|
1647
|
+
if (!cn(e)) return;
|
|
1652
1648
|
let n = [];
|
|
1653
1649
|
for (let r of Object.keys(e)) {
|
|
1654
|
-
let i = e[r], a =
|
|
1655
|
-
if (a !== "") if (
|
|
1650
|
+
let i = e[r], a = dn(r, i);
|
|
1651
|
+
if (a !== "") if (pn.has(r)) n.push(`${r}:${a}`);
|
|
1656
1652
|
else {
|
|
1657
|
-
let e = t.get(
|
|
1658
|
-
e.add(a), t.set(
|
|
1653
|
+
let e = t.get(fn(r)) ?? /* @__PURE__ */ new Set();
|
|
1654
|
+
e.add(a), t.set(fn(r), e);
|
|
1659
1655
|
}
|
|
1660
1656
|
}
|
|
1661
1657
|
r.add(n.sort().join("|"));
|
|
@@ -1665,13 +1661,13 @@ var z = /* @__PURE__ */ new Map(), en = {
|
|
|
1665
1661
|
n = r.size > 1;
|
|
1666
1662
|
let a = Array.from(t.entries()).filter(([, e]) => e.size > 1).map(([e]) => e);
|
|
1667
1663
|
return n && a.push("transform"), a;
|
|
1668
|
-
},
|
|
1669
|
-
if (!
|
|
1664
|
+
}, H = (e) => {
|
|
1665
|
+
if (!cn(e)) return [];
|
|
1670
1666
|
let t = [], n = !0, r = [];
|
|
1671
1667
|
for (let i of Object.keys(e)) {
|
|
1672
|
-
let a = e[i], o =
|
|
1673
|
-
o !== "" && (
|
|
1674
|
-
property:
|
|
1668
|
+
let a = e[i], o = dn(i, a);
|
|
1669
|
+
o !== "" && (pn.has(i) ? (t.push(vn(i, o)), _n(i, a) || (n = !1)) : r.push({
|
|
1670
|
+
property: fn(i),
|
|
1675
1671
|
value: o
|
|
1676
1672
|
}));
|
|
1677
1673
|
}
|
|
@@ -1679,7 +1675,7 @@ var z = /* @__PURE__ */ new Map(), en = {
|
|
|
1679
1675
|
property: "transform",
|
|
1680
1676
|
value: n ? "none" : t.join(" ")
|
|
1681
1677
|
}), r;
|
|
1682
|
-
},
|
|
1678
|
+
}, U = (e) => e.map((e) => ` ${e.property}: ${e.value};`).join("\n"), bn = (e) => Array.isArray(e) ? e.length === 4 && e.every((e) => typeof e == "number") ? `cubic-bezier(${e.join(", ")})` : "linear" : typeof e == "string" ? {
|
|
1683
1679
|
linear: "linear",
|
|
1684
1680
|
easeIn: "ease-in",
|
|
1685
1681
|
easeOut: "ease-out",
|
|
@@ -1689,33 +1685,33 @@ var z = /* @__PURE__ */ new Map(), en = {
|
|
|
1689
1685
|
backIn: "cubic-bezier(0.31, 0.01, 0.66, -0.59)",
|
|
1690
1686
|
backOut: "cubic-bezier(0.33, 1.53, 0.69, 0.99)",
|
|
1691
1687
|
anticipate: "cubic-bezier(0.36, 0, 0.66, -0.56)"
|
|
1692
|
-
}[e] ?? "ease" : "ease",
|
|
1688
|
+
}[e] ?? "ease" : "ease", xn = (e, t) => {
|
|
1693
1689
|
let [n, r] = t.split("-");
|
|
1694
1690
|
return `[data-flemo-screen][data-flemo-transition="${e}"][data-flemo-status="${n}"][data-flemo-active="${r}"]`;
|
|
1695
|
-
},
|
|
1691
|
+
}, Sn = (e, t) => {
|
|
1696
1692
|
let [n, r] = t.split("-");
|
|
1697
1693
|
return `[data-flemo-decorator][data-flemo-decorator-name="${e}"][data-flemo-status="${n}"][data-flemo-active="${r}"]`;
|
|
1698
|
-
},
|
|
1694
|
+
}, Cn = (e, t) => {
|
|
1699
1695
|
let [n, r] = t.split("-");
|
|
1700
1696
|
return `[data-flemo-bar][data-flemo-bar-transition="${e}"][data-flemo-bar-status="${n}"][data-flemo-bar-active="${r}"][data-flemo-bar-riding="true"]`;
|
|
1701
|
-
},
|
|
1697
|
+
}, wn = (e, t) => {
|
|
1702
1698
|
let [n, r] = t.split("-");
|
|
1703
1699
|
return `[data-flemo-part-name="${e}"][data-flemo-status="${n}"][data-flemo-active="${r}"]`;
|
|
1704
|
-
},
|
|
1700
|
+
}, Tn = (e, t, n) => `flemo-${e}-${sn(t)}-${n}`, En = [
|
|
1705
1701
|
"-lpm",
|
|
1706
1702
|
"-deskhead",
|
|
1707
1703
|
"-lpmcreep"
|
|
1708
|
-
],
|
|
1709
|
-
let o =
|
|
1704
|
+
], Dn = (e, t) => e === t || En.some((n) => e === `${t}${n}`), On = (e, t, n, r, i, a) => {
|
|
1705
|
+
let o = H(r), s = H(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 = tn(i.options), p = nn(i.options), m = bn(i.options?.ease), h = a(t, n), g = e === "screen" ? `${h},\n${Cn(t, n)}` : h;
|
|
1710
1706
|
if (s.length === 0 && o.length === 0) return "";
|
|
1711
|
-
if (f <= 0 && p <= 0) return s.length === 0 ? "" : `${g} {\n${
|
|
1712
|
-
let _ =
|
|
1707
|
+
if (f <= 0 && p <= 0) return s.length === 0 ? "" : `${g} {\n${U(s)}\n animation: none;\n}`;
|
|
1708
|
+
let _ = Tn(e, t, n), v = [
|
|
1713
1709
|
`@keyframes ${_} {`,
|
|
1714
1710
|
" from {",
|
|
1715
|
-
|
|
1711
|
+
U(u).replace(/^/gm, " "),
|
|
1716
1712
|
" }",
|
|
1717
1713
|
" to {",
|
|
1718
|
-
|
|
1714
|
+
U(d).replace(/^/gm, " "),
|
|
1719
1715
|
" }",
|
|
1720
1716
|
"}"
|
|
1721
1717
|
].join("\n"), y = [
|
|
@@ -1727,7 +1723,7 @@ var z = /* @__PURE__ */ new Map(), en = {
|
|
|
1727
1723
|
].filter(Boolean).join(" "), b = (e) => e.startsWith("REPLACING") ? .18 : e.startsWith("PUSHING") ? .1 : e.startsWith("POPPING") ? .08 : 0, x = (e) => e.startsWith("REPLACING") || e.startsWith("PUSHING") ? .033 : e.startsWith("POPPING") ? .017 : 0, S = (t, n, r, i) => {
|
|
1728
1724
|
if (e === "part" || r <= 0 || f <= 0 || o.length === 0 && s.length === 0) return "";
|
|
1729
1725
|
let a = f + r, c = (r / a * 100).toFixed(3), l = `${_}-${n}`, m = g.split(",\n").map((e) => `:root[${t}] ${e}`).join(",\n");
|
|
1730
|
-
return `\n@keyframes ${l} {\n 0%, ${c}% {\n${
|
|
1726
|
+
return `\n@keyframes ${l} {\n 0%, ${c}% {\n${U(u).replace(/^/gm, " ")}\n }\n 100% {\n${U(d).replace(/^/gm, " ")}\n }\n}\n${m} {\n animation-name: ${l};\n animation-duration: ${a.toFixed(3)}s;\n animation-delay: ${(i ? p + r : p).toFixed(3)}s;\n}`;
|
|
1731
1727
|
}, C = (t, n) => e !== "part" || n <= 0 || f <= 0 ? "" : `\n${((e = "") => g.split(",\n").map((n) => `:root[${t}]${e} ${n}`).join(",\n"))()} {\n animation-delay: ${(p + n).toFixed(3)}s;\n}`, w = (() => {
|
|
1732
1728
|
/* v8 ignore next */
|
|
1733
1729
|
if (e === "part") return "";
|
|
@@ -1739,69 +1735,69 @@ var z = /* @__PURE__ */ new Map(), en = {
|
|
|
1739
1735
|
let e = u.find((e) => e.property === "transform");
|
|
1740
1736
|
if (!e) return [...u, {
|
|
1741
1737
|
property: "transform",
|
|
1742
|
-
value:
|
|
1738
|
+
value: on
|
|
1743
1739
|
}];
|
|
1744
1740
|
let t = e.value === "none" ? "" : `${e.value} `;
|
|
1745
1741
|
return u.map((e) => e.property === "transform" ? {
|
|
1746
1742
|
property: "transform",
|
|
1747
|
-
value: `${t}${
|
|
1743
|
+
value: `${t}${on}`
|
|
1748
1744
|
} : e);
|
|
1749
1745
|
})(), i = f + t, a = (t / i * 100).toFixed(3), c = `${_}-lpmcreep`, l = g.split(",\n").map((e) => `:root[data-flemo-lpm][data-flemo-creep] ${e}`).join(",\n");
|
|
1750
|
-
return `\n@keyframes ${c} {\n 0% {\n${
|
|
1751
|
-
})(), T = S("data-flemo-lpm", "lpm", b(n), !0), E = C("data-flemo-lpm", b(n)), D = S("data-flemo-desk-head", "deskhead", x(n), !1), O = C("data-flemo-desk-head", x(n)), k = new Map(u.map((e) => [e.property, e.value])), A = new Map(d.map((e) => [e.property, e.value])), j = Array.from(/* @__PURE__ */ new Set([...k.keys(), ...A.keys()])).filter((e) => k.get(e) !== A.get(e)), ee = j.length > 0 ? ` will-change: ${j.join(", ")};\n` : "", M = n.split("-")[0],
|
|
1752
|
-
return `${v}\n${`${g} {\n animation: ${y};\n${l.length > 0 ? `${
|
|
1753
|
-
},
|
|
1746
|
+
return `\n@keyframes ${c} {\n 0% {\n${U(u).replace(/^/gm, " ")}\n }\n ${a}% {\n${U(r).replace(/^/gm, " ")}\n }\n 100% {\n${U(d).replace(/^/gm, " ")}\n }\n}\n${l} {\n animation-name: ${c};\n animation-duration: ${i.toFixed(3)}s;\n animation-delay: ${(p + t).toFixed(3)}s;\n}`;
|
|
1747
|
+
})(), T = S("data-flemo-lpm", "lpm", b(n), !0), E = C("data-flemo-lpm", b(n)), D = S("data-flemo-desk-head", "deskhead", x(n), !1), O = C("data-flemo-desk-head", x(n)), k = new Map(u.map((e) => [e.property, e.value])), A = new Map(d.map((e) => [e.property, e.value])), j = Array.from(/* @__PURE__ */ new Set([...k.keys(), ...A.keys()])).filter((e) => k.get(e) !== A.get(e)), ee = j.length > 0 ? ` will-change: ${j.join(", ")};\n` : "", M = n.split("-")[0], N = M === "PUSHING" || M === "REPLACING" ? " contain: layout;\n" : "";
|
|
1748
|
+
return `${v}\n${`${g} {\n animation: ${y};\n${l.length > 0 ? `${U(l)}\n` : ""}${ee}${N}}`}${T}${E}${w}${D}${O}${e === "screen" && n.endsWith("-false") && kn(r) && s.length > 0 ? `\n${h}[data-flemo-anim-hold="park"] {\n animation: none;\n${U(s)}\n}` : ""}${e === "screen" && n.endsWith("-true") && (n.startsWith("PUSHING") || n.startsWith("REPLACING")) && kn(r) && s.length > 0 ? `\n${h}[data-flemo-anim-hold="park-under"] {\n animation: none;\n${U(s)}\n}` : ""}${e === "screen" && n.endsWith("-true") && (n.startsWith("PUSHING") || n.startsWith("REPLACING")) && kn(r) && s.length > 0 ? `\n${h}[data-flemo-anim-hold="park-over"] {\n animation: none;\n${U(s)}\n opacity: 0.02;\n}` : ""}`;
|
|
1749
|
+
}, kn = (e) => {
|
|
1754
1750
|
if (!e) return !1;
|
|
1755
1751
|
if (e.opacity === 0) return !0;
|
|
1756
1752
|
let t = (e) => typeof e == "string" && e.trim().endsWith("%") && Math.abs(parseFloat(e)) >= 100;
|
|
1757
1753
|
return t(e.x) || t(e.y);
|
|
1758
|
-
},
|
|
1759
|
-
let i =
|
|
1760
|
-
return i.length === 0 ? "" : `${e(t, n)} {\n${
|
|
1761
|
-
},
|
|
1754
|
+
}, An = (e, t, n, r) => {
|
|
1755
|
+
let i = H(r.value);
|
|
1756
|
+
return i.length === 0 ? "" : `${e(t, n)} {\n${U(i)}\n}`;
|
|
1757
|
+
}, jn = (e, t, n = []) => {
|
|
1762
1758
|
let r = [];
|
|
1763
1759
|
for (let t of e) {
|
|
1764
1760
|
let e = t.name;
|
|
1765
|
-
for (let n of
|
|
1766
|
-
let i = t.variants[n], a =
|
|
1761
|
+
for (let n of en) {
|
|
1762
|
+
let i = t.variants[n], a = $t[n];
|
|
1767
1763
|
if (a === "self") {
|
|
1768
|
-
r.push(
|
|
1764
|
+
r.push(An(xn, e, n, i));
|
|
1769
1765
|
continue;
|
|
1770
1766
|
}
|
|
1771
1767
|
let o = a === "initial" ? t.initial : t.variants[a].value;
|
|
1772
|
-
r.push(
|
|
1768
|
+
r.push(On("screen", e, n, o, i, xn));
|
|
1773
1769
|
}
|
|
1774
1770
|
}
|
|
1775
1771
|
for (let e of t) {
|
|
1776
1772
|
let t = e.name;
|
|
1777
|
-
for (let n of
|
|
1778
|
-
let i = e.variants[n], a =
|
|
1773
|
+
for (let n of an) {
|
|
1774
|
+
let i = e.variants[n], a = $t[n];
|
|
1779
1775
|
if (a === "self") {
|
|
1780
|
-
r.push(
|
|
1776
|
+
r.push(An(Sn, t, n, i));
|
|
1781
1777
|
continue;
|
|
1782
1778
|
}
|
|
1783
1779
|
let o = a === "initial" ? e.initial : e.variants[a].value;
|
|
1784
|
-
r.push(
|
|
1780
|
+
r.push(On("decorator", t, n, o, i, Sn));
|
|
1785
1781
|
}
|
|
1786
1782
|
}
|
|
1787
1783
|
for (let e of n) {
|
|
1788
1784
|
let t = e.name;
|
|
1789
|
-
for (let n of
|
|
1790
|
-
let i = e.variants[n], a =
|
|
1785
|
+
for (let n of an) {
|
|
1786
|
+
let i = e.variants[n], a = $t[n];
|
|
1791
1787
|
if (a === "self") {
|
|
1792
|
-
r.push(
|
|
1788
|
+
r.push(An(wn, t, n, i));
|
|
1793
1789
|
continue;
|
|
1794
1790
|
}
|
|
1795
1791
|
let o = a === "initial" ? e.initial : e.variants[a].value;
|
|
1796
|
-
r.push(
|
|
1792
|
+
r.push(On("part", t, n, o, i, wn));
|
|
1797
1793
|
}
|
|
1798
1794
|
}
|
|
1799
1795
|
return [
|
|
1800
1796
|
...r.filter((e) => e.length > 0),
|
|
1801
|
-
|
|
1802
|
-
|
|
1797
|
+
Mn,
|
|
1798
|
+
Nn
|
|
1803
1799
|
].join("\n\n");
|
|
1804
|
-
},
|
|
1800
|
+
}, Mn = [
|
|
1805
1801
|
"[data-flemo-anim-hold=\"true\"],",
|
|
1806
1802
|
"[data-flemo-anim-hold=\"park\"],",
|
|
1807
1803
|
"[data-flemo-anim-hold=\"park-under\"],",
|
|
@@ -1812,53 +1808,53 @@ var z = /* @__PURE__ */ new Map(), en = {
|
|
|
1812
1808
|
"[data-flemo-anim-hold=\"park-over\"] [data-flemo-part-name] {",
|
|
1813
1809
|
" animation-play-state: paused !important;",
|
|
1814
1810
|
"}"
|
|
1815
|
-
].join("\n"),
|
|
1811
|
+
].join("\n"), Nn = [
|
|
1816
1812
|
"[data-flemo-held-arrival] {",
|
|
1817
1813
|
" display: none !important;",
|
|
1818
1814
|
"}"
|
|
1819
|
-
].join("\n"),
|
|
1820
|
-
let n =
|
|
1815
|
+
].join("\n"), W = (e, t) => {
|
|
1816
|
+
let n = $t[t];
|
|
1821
1817
|
if (n === "self") return !1;
|
|
1822
|
-
let r = e.variants[t], i =
|
|
1818
|
+
let r = e.variants[t], i = tn(r.options), a = nn(r.options);
|
|
1823
1819
|
if (i <= 0 && a <= 0) return !1;
|
|
1824
|
-
let o =
|
|
1820
|
+
let o = H(n === "initial" ? e.initial : e.variants[n].value), s = H(r.value);
|
|
1825
1821
|
return o.length > 0 || s.length > 0;
|
|
1826
|
-
},
|
|
1822
|
+
}, Pn = {
|
|
1827
1823
|
REPLACING: 33,
|
|
1828
1824
|
PUSHING: 33,
|
|
1829
1825
|
POPPING: 17
|
|
1830
|
-
},
|
|
1826
|
+
}, Fn = {
|
|
1831
1827
|
REPLACING: 180,
|
|
1832
1828
|
PUSHING: 100,
|
|
1833
1829
|
POPPING: 80
|
|
1834
|
-
},
|
|
1835
|
-
function
|
|
1830
|
+
}, In = "data-flemo";
|
|
1831
|
+
function Ln() {
|
|
1836
1832
|
if (f()) return;
|
|
1837
|
-
let e =
|
|
1838
|
-
t || (t = document.createElement("style"), t.setAttribute(
|
|
1833
|
+
let e = jn(Gt.values(), z.values(), B.values()), t = document.head.querySelector(`style[${In}]`);
|
|
1834
|
+
t || (t = document.createElement("style"), t.setAttribute(In, ""), document.head.appendChild(t)), t.textContent !== e && (t.textContent = e);
|
|
1839
1835
|
}
|
|
1840
1836
|
//#endregion
|
|
1841
1837
|
//#region src/transition/registerTransitionDefinitions.ts
|
|
1842
|
-
var
|
|
1838
|
+
var Rn = /* @__PURE__ */ new Map(), zn = /* @__PURE__ */ new Map(), Bn = /* @__PURE__ */ new Map(), Vn = (e, t) => {
|
|
1843
1839
|
e.set(t, (e.get(t) ?? 0) + 1);
|
|
1844
|
-
},
|
|
1840
|
+
}, Hn = (e, t) => {
|
|
1845
1841
|
let n = (e.get(t) ?? 1) - 1;
|
|
1846
1842
|
return n <= 0 ? (e.delete(t), !0) : (e.set(t, n), !1);
|
|
1847
1843
|
};
|
|
1848
|
-
function
|
|
1849
|
-
for (let t of e)
|
|
1850
|
-
for (let e of t)
|
|
1851
|
-
for (let e of n)
|
|
1852
|
-
return
|
|
1853
|
-
for (let t of e)
|
|
1854
|
-
for (let e of t)
|
|
1855
|
-
for (let e of n)
|
|
1856
|
-
|
|
1844
|
+
function Un(e, t, n = []) {
|
|
1845
|
+
for (let t of e) Gt.set(t.name, t), Vn(Rn, t.name);
|
|
1846
|
+
for (let e of t) z.set(e.name, e), Vn(zn, e.name);
|
|
1847
|
+
for (let e of n) B.set(e.name, e), Vn(Bn, e.name);
|
|
1848
|
+
return Ln(), () => {
|
|
1849
|
+
for (let t of e) Hn(Rn, t.name) && Gt.delete(t.name);
|
|
1850
|
+
for (let e of t) Hn(zn, e.name) && z.delete(e.name);
|
|
1851
|
+
for (let e of n) Hn(Bn, e.name) && B.delete(e.name);
|
|
1852
|
+
Ln();
|
|
1857
1853
|
};
|
|
1858
1854
|
}
|
|
1859
1855
|
//#endregion
|
|
1860
1856
|
//#region src/transition/enteringInitialStyle.ts
|
|
1861
|
-
function
|
|
1857
|
+
function Wn(e) {
|
|
1862
1858
|
let { initial: t, isActive: n, status: r } = e;
|
|
1863
1859
|
if (!n || r !== "PUSHING" && r !== "REPLACING") return {};
|
|
1864
1860
|
let i = {};
|
|
@@ -1866,10 +1862,10 @@ function Kn(e) {
|
|
|
1866
1862
|
}
|
|
1867
1863
|
//#endregion
|
|
1868
1864
|
//#region src/transition/settleScrub.ts
|
|
1869
|
-
var
|
|
1865
|
+
var Gn = () => ({
|
|
1870
1866
|
request: (e) => requestAnimationFrame(e),
|
|
1871
1867
|
cancel: (e) => cancelAnimationFrame(e)
|
|
1872
|
-
}),
|
|
1868
|
+
}), Kn = (e) => e.replace(/-([a-z])/g, (e, t) => t.toUpperCase()), qn = ((e = Gn()) => {
|
|
1873
1869
|
let t = /* @__PURE__ */ new Map(), n = null, r = () => {
|
|
1874
1870
|
t.size === 0 && n !== null && (e.cancel(n), n = null);
|
|
1875
1871
|
}, i = (e, n) => {
|
|
@@ -1902,7 +1898,7 @@ var qn = () => ({
|
|
|
1902
1898
|
if (typeof r.animate != "function") return null;
|
|
1903
1899
|
i(r, "current");
|
|
1904
1900
|
let u = {};
|
|
1905
|
-
for (let e of o) u[
|
|
1901
|
+
for (let e of o) u[Kn(e.property)] = e.value;
|
|
1906
1902
|
let d;
|
|
1907
1903
|
try {
|
|
1908
1904
|
d = r.animate([u], {
|
|
@@ -1939,18 +1935,18 @@ var qn = () => ({
|
|
|
1939
1935
|
r && (n === void 0 || r.owner === n) && i(e, "drop");
|
|
1940
1936
|
}
|
|
1941
1937
|
};
|
|
1942
|
-
})(),
|
|
1943
|
-
let r =
|
|
1944
|
-
r || (r = /* @__PURE__ */ new Map(),
|
|
1938
|
+
})(), Jn = (e) => typeof HTMLElement < "u" && e instanceof HTMLElement, Yn = /* @__PURE__ */ new WeakMap(), Xn = Symbol("flemo-inline-writer"), Zn = /* @__PURE__ */ new WeakMap(), G = (e, t, n = Xn) => {
|
|
1939
|
+
let r = Yn.get(e);
|
|
1940
|
+
r || (r = /* @__PURE__ */ new Map(), Yn.set(e, r));
|
|
1945
1941
|
let i = r.get(t);
|
|
1946
1942
|
i || (i = {
|
|
1947
1943
|
original: e.style.getPropertyValue(t),
|
|
1948
1944
|
owners: /* @__PURE__ */ new Set()
|
|
1949
1945
|
}, r.set(t, i)), i.owners.add(n);
|
|
1950
|
-
},
|
|
1951
|
-
|
|
1952
|
-
let r =
|
|
1953
|
-
(!n ||
|
|
1946
|
+
}, K = (e, t, n) => {
|
|
1947
|
+
qn.cancel(e, n);
|
|
1948
|
+
let r = Yn.get(e);
|
|
1949
|
+
(!n || Zn.get(e) === n) && (e.style.transition = "", Zn.delete(e));
|
|
1954
1950
|
let i = (t) => {
|
|
1955
1951
|
let i = r?.get(t);
|
|
1956
1952
|
if (!i) {
|
|
@@ -1968,27 +1964,27 @@ var qn = () => ({
|
|
|
1968
1964
|
return;
|
|
1969
1965
|
}
|
|
1970
1966
|
n || (e.style.removeProperty("transform"), e.style.removeProperty("opacity"));
|
|
1971
|
-
},
|
|
1972
|
-
if (!
|
|
1973
|
-
let i = e, a =
|
|
1967
|
+
}, Qn = (e, t, n = {}, r) => {
|
|
1968
|
+
if (!Jn(e)) return Promise.resolve();
|
|
1969
|
+
let i = e, a = H(t);
|
|
1974
1970
|
if (a.length === 0) return Promise.resolve();
|
|
1975
|
-
let o = typeof n.duration == "number" ? n.duration : 0, s = typeof n.delay == "number" && n.delay > 0 ? n.delay : 0, c =
|
|
1971
|
+
let o = typeof n.duration == "number" ? n.duration : 0, s = typeof n.delay == "number" && n.delay > 0 ? n.delay : 0, c = bn(n.ease);
|
|
1976
1972
|
if (o <= 0 && s <= 0) {
|
|
1977
|
-
|
|
1978
|
-
for (let e of a)
|
|
1973
|
+
qn.takeover(i, r), i.style.transition = "none", Zn.set(i, r);
|
|
1974
|
+
for (let e of a) G(i, e.property, r), i.style.setProperty(e.property, e.value);
|
|
1979
1975
|
return Promise.resolve();
|
|
1980
1976
|
}
|
|
1981
|
-
let l =
|
|
1977
|
+
let l = ye.playerAllowed() ? qn.settle(i, a, {
|
|
1982
1978
|
durationMs: o * 1e3,
|
|
1983
1979
|
delayMs: s * 1e3,
|
|
1984
1980
|
easing: c
|
|
1985
1981
|
}, (e) => {
|
|
1986
|
-
|
|
1982
|
+
G(i, e.property, r), i.style.setProperty(e.property, e.value);
|
|
1987
1983
|
}, r) : null;
|
|
1988
1984
|
if (l) return l;
|
|
1989
1985
|
let u = a.map((e) => `${e.property} ${o}s ${c} ${s}s`).join(", ");
|
|
1990
|
-
i.style.transition = u,
|
|
1991
|
-
for (let e of a)
|
|
1986
|
+
i.style.transition = u, Zn.set(i, r), i.offsetWidth;
|
|
1987
|
+
for (let e of a) G(i, e.property, r), i.style.setProperty(e.property, e.value);
|
|
1992
1988
|
return new Promise((e) => {
|
|
1993
1989
|
let t = !1, n = () => {
|
|
1994
1990
|
t || (t = !0, i.removeEventListener("transitionend", r), e());
|
|
@@ -1997,65 +1993,65 @@ var qn = () => ({
|
|
|
1997
1993
|
};
|
|
1998
1994
|
i.addEventListener("transitionend", r), setTimeout(n, (o + s) * 1e3 + 60);
|
|
1999
1995
|
});
|
|
2000
|
-
},
|
|
1996
|
+
}, $n = (e) => {
|
|
2001
1997
|
if (typeof e.querySelectorAll == "function") {
|
|
2002
1998
|
e.tagName === "IMG" && !e.hasAttribute("decoding") && e.setAttribute("decoding", "async");
|
|
2003
1999
|
for (let t of Array.from(e.querySelectorAll("img:not([decoding])"))) t.setAttribute("decoding", "async");
|
|
2004
2000
|
}
|
|
2005
|
-
},
|
|
2006
|
-
function
|
|
2007
|
-
let e =
|
|
2008
|
-
if (
|
|
2001
|
+
}, er = 0, tr = [], nr = [];
|
|
2002
|
+
function rr() {
|
|
2003
|
+
let e = er === 0;
|
|
2004
|
+
if (er += 1, e) for (let e of nr) e();
|
|
2009
2005
|
let t = !1;
|
|
2010
2006
|
return () => {
|
|
2011
|
-
if (t || (t = !0, --
|
|
2012
|
-
let e =
|
|
2013
|
-
|
|
2007
|
+
if (t || (t = !0, --er, er > 0)) return;
|
|
2008
|
+
let e = tr;
|
|
2009
|
+
tr = [];
|
|
2014
2010
|
for (let t of e) t();
|
|
2015
2011
|
};
|
|
2016
2012
|
}
|
|
2017
|
-
var
|
|
2018
|
-
function
|
|
2019
|
-
return
|
|
2020
|
-
|
|
2013
|
+
var ir = () => er > 0;
|
|
2014
|
+
function ar(e) {
|
|
2015
|
+
return nr.push(e), () => {
|
|
2016
|
+
nr = nr.filter((t) => t !== e);
|
|
2021
2017
|
};
|
|
2022
2018
|
}
|
|
2023
|
-
function
|
|
2024
|
-
|
|
2019
|
+
function or(e) {
|
|
2020
|
+
er === 0 ? e() : tr.push(e);
|
|
2025
2021
|
}
|
|
2026
2022
|
//#endregion
|
|
2027
2023
|
//#region src/core/engine/imageDecodeOffloader.ts
|
|
2028
|
-
var
|
|
2024
|
+
var sr = 8, cr = 2, q = 96, lr = 15e3, ur = 3e3, dr = "data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7", J = "data-flemo-image-src", fr = "flemo-image-scale-v1", pr = /* @__PURE__ */ new Set([
|
|
2029
2025
|
"PUSHING",
|
|
2030
2026
|
"POPPING",
|
|
2031
2027
|
"REPLACING"
|
|
2032
|
-
]),
|
|
2028
|
+
]), mr = (e) => {
|
|
2033
2029
|
let t = e.closest("[data-flemo-screen]");
|
|
2034
|
-
return !!t &&
|
|
2035
|
-
},
|
|
2030
|
+
return !!t && pr.has(t.getAttribute("data-flemo-status") ?? "");
|
|
2031
|
+
}, hr = (e) => {
|
|
2036
2032
|
if (e.naturalWidth <= 0 || e.naturalHeight <= 0 || e.boxWidth <= 0 || e.boxHeight <= 0) return !1;
|
|
2037
2033
|
let t = e.boxWidth * e.boxHeight * e.devicePixelRatio * e.devicePixelRatio;
|
|
2038
2034
|
return e.naturalWidth * e.naturalHeight > t * 8;
|
|
2039
|
-
},
|
|
2035
|
+
}, gr = "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};", _r = () => typeof Worker < "u" && typeof OffscreenCanvas < "u" && typeof createImageBitmap == "function" && typeof MutationObserver < "u" && typeof URL < "u" && typeof URL.createObjectURL == "function", vr = async (e, t) => {
|
|
2040
2036
|
try {
|
|
2041
2037
|
if (typeof caches > "u") return;
|
|
2042
|
-
await (await caches.open(
|
|
2038
|
+
await (await caches.open(fr)).put(e, new Response(t, { headers: { "content-type": t.type } }));
|
|
2043
2039
|
} catch {}
|
|
2044
|
-
},
|
|
2040
|
+
}, yr = async (e) => {
|
|
2045
2041
|
try {
|
|
2046
2042
|
if (typeof caches > "u") return null;
|
|
2047
|
-
let t = await (await caches.open(
|
|
2043
|
+
let t = await (await caches.open(fr)).match(e);
|
|
2048
2044
|
return t ? await t.blob() : null;
|
|
2049
2045
|
} catch {
|
|
2050
2046
|
return null;
|
|
2051
2047
|
}
|
|
2052
2048
|
};
|
|
2053
|
-
function
|
|
2054
|
-
if (!
|
|
2049
|
+
function br(e) {
|
|
2050
|
+
if (!_r()) return () => {};
|
|
2055
2051
|
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 = () => {
|
|
2056
2052
|
if (t) return t;
|
|
2057
2053
|
try {
|
|
2058
|
-
t = new Worker(URL.createObjectURL(new Blob([
|
|
2054
|
+
t = new Worker(URL.createObjectURL(new Blob([gr])));
|
|
2059
2055
|
} catch {
|
|
2060
2056
|
return null;
|
|
2061
2057
|
}
|
|
@@ -2070,7 +2066,7 @@ function xr(e) {
|
|
|
2070
2066
|
return;
|
|
2071
2067
|
}
|
|
2072
2068
|
let a = URL.createObjectURL(n);
|
|
2073
|
-
l.add(a),
|
|
2069
|
+
l.add(a), vr(t, n), f(t, a);
|
|
2074
2070
|
}, t;
|
|
2075
2071
|
}, f = (e, t) => {
|
|
2076
2072
|
r.has(e) || r.set(e, t);
|
|
@@ -2079,21 +2075,21 @@ function xr(e) {
|
|
|
2079
2075
|
let n = () => {
|
|
2080
2076
|
t ? e.style.visibility = t : e.style.removeProperty("visibility");
|
|
2081
2077
|
};
|
|
2082
|
-
if (!
|
|
2078
|
+
if (!ir()) {
|
|
2083
2079
|
n();
|
|
2084
2080
|
return;
|
|
2085
2081
|
}
|
|
2086
2082
|
let r = !1, i = () => {
|
|
2087
2083
|
r || (r = !0, clearTimeout(o), a.delete(i), n());
|
|
2088
|
-
}, o = setTimeout(i,
|
|
2089
|
-
a.add(i),
|
|
2084
|
+
}, o = setTimeout(i, ur);
|
|
2085
|
+
a.add(i), or(i);
|
|
2090
2086
|
}, m = (e, t) => {
|
|
2091
2087
|
let n = () => {
|
|
2092
|
-
if (
|
|
2093
|
-
|
|
2088
|
+
if (ir()) {
|
|
2089
|
+
or(t);
|
|
2094
2090
|
return;
|
|
2095
2091
|
}
|
|
2096
|
-
if (!
|
|
2092
|
+
if (!mr(e) || typeof requestAnimationFrame != "function") {
|
|
2097
2093
|
t();
|
|
2098
2094
|
return;
|
|
2099
2095
|
}
|
|
@@ -2105,10 +2101,10 @@ function xr(e) {
|
|
|
2105
2101
|
e.style.visibility = "hidden";
|
|
2106
2102
|
let r = !1, i = () => {
|
|
2107
2103
|
r || (r = !0, clearTimeout(o), a.delete(i), t(), n ? e.style.visibility = n : e.style.removeProperty("visibility"));
|
|
2108
|
-
}, o = setTimeout(i,
|
|
2104
|
+
}, o = setTimeout(i, ur);
|
|
2109
2105
|
a.add(i), m(e, i);
|
|
2110
|
-
}, g = (e, t) => !
|
|
2111
|
-
e.setAttribute(
|
|
2106
|
+
}, g = (e, t) => !ir() && !mr(e) ? !1 : (e.setAttribute(J, t), h(e, () => {}), !0), _ = (e, t, a) => {
|
|
2107
|
+
e.setAttribute(J, t), e.src = a, h(e, () => {
|
|
2112
2108
|
/* v8 ignore next -- disposal runs pending reveals; nothing to repair. */
|
|
2113
2109
|
if (n) return;
|
|
2114
2110
|
let a = r.get(t);
|
|
@@ -2119,12 +2115,12 @@ function xr(e) {
|
|
|
2119
2115
|
if (n) {
|
|
2120
2116
|
if (s.delete(e), clearTimeout(n.timeout), n.detachListeners?.(), n.responsive) {
|
|
2121
2117
|
if (i(t)) {
|
|
2122
|
-
e.setAttribute(
|
|
2118
|
+
e.setAttribute(J, n.url), e.removeAttribute("srcset"), e.removeAttribute("sizes");
|
|
2123
2119
|
let r = e.closest("picture");
|
|
2124
2120
|
if (r) for (let e of Array.from(r.querySelectorAll("source"))) e.removeAttribute("srcset");
|
|
2125
2121
|
e.src = t;
|
|
2126
2122
|
}
|
|
2127
|
-
} else e.getAttribute("src") ===
|
|
2123
|
+
} else e.getAttribute("src") === dr && (i(t) ? e.src = t : (e.removeAttribute(J), e.src = n.url));
|
|
2128
2124
|
p(e, n.previousVisibility);
|
|
2129
2125
|
}
|
|
2130
2126
|
}, y = /* @__PURE__ */ new Map(), b = !1, x = () => {
|
|
@@ -2133,14 +2129,14 @@ function xr(e) {
|
|
|
2133
2129
|
y.clear();
|
|
2134
2130
|
for (let [t, n] of e) C(t, n.boxWidth, n.boxHeight);
|
|
2135
2131
|
}, S = () => {
|
|
2136
|
-
b || (b = !0,
|
|
2132
|
+
b || (b = !0, or(() => {
|
|
2137
2133
|
if (n) return;
|
|
2138
2134
|
let e = globalThis.requestIdleCallback;
|
|
2139
2135
|
typeof e == "function" ? e(() => x()) : typeof setTimeout == "function" ? setTimeout(x, 400) : x();
|
|
2140
2136
|
}));
|
|
2141
2137
|
}, C = (e, t, n) => {
|
|
2142
2138
|
if (r.has(e) || o.has(e)) return;
|
|
2143
|
-
if (
|
|
2139
|
+
if (ir() && I()) {
|
|
2144
2140
|
y.has(e) || y.set(e, {
|
|
2145
2141
|
boxWidth: t,
|
|
2146
2142
|
boxHeight: n
|
|
@@ -2150,28 +2146,28 @@ function xr(e) {
|
|
|
2150
2146
|
let i = d();
|
|
2151
2147
|
if (!i) return;
|
|
2152
2148
|
o.add(e);
|
|
2153
|
-
let a = Math.round(Math.max(
|
|
2149
|
+
let a = Math.round(Math.max(q, t * u()) * cr), s = Math.max(t * n, 9216) * u() ** 2;
|
|
2154
2150
|
i.postMessage({
|
|
2155
2151
|
url: e,
|
|
2156
2152
|
targetWidth: a,
|
|
2157
2153
|
neededArea: s,
|
|
2158
2154
|
ratio: 8
|
|
2159
2155
|
});
|
|
2160
|
-
}, w =
|
|
2161
|
-
if (
|
|
2156
|
+
}, w = ar(() => {
|
|
2157
|
+
if (I() && !(!t || o.size === 0)) {
|
|
2162
2158
|
t.terminate(), t = null;
|
|
2163
2159
|
for (let e of o) {
|
|
2164
2160
|
if (y.has(e)) continue;
|
|
2165
2161
|
let t = {
|
|
2166
|
-
boxWidth:
|
|
2167
|
-
boxHeight:
|
|
2162
|
+
boxWidth: q,
|
|
2163
|
+
boxHeight: q
|
|
2168
2164
|
};
|
|
2169
2165
|
for (let [n, r] of s) {
|
|
2170
2166
|
if (r.url !== e) continue;
|
|
2171
2167
|
let i = n.getBoundingClientRect();
|
|
2172
2168
|
t = {
|
|
2173
|
-
boxWidth: i.width ||
|
|
2174
|
-
boxHeight: i.height ||
|
|
2169
|
+
boxWidth: i.width || q,
|
|
2170
|
+
boxHeight: i.height || q
|
|
2175
2171
|
};
|
|
2176
2172
|
break;
|
|
2177
2173
|
}
|
|
@@ -2185,17 +2181,17 @@ function xr(e) {
|
|
|
2185
2181
|
let a = {
|
|
2186
2182
|
url: "",
|
|
2187
2183
|
previousVisibility: e.style.visibility,
|
|
2188
|
-
timeout: setTimeout(() => v(e, null),
|
|
2184
|
+
timeout: setTimeout(() => v(e, null), lr),
|
|
2189
2185
|
responsive: !0
|
|
2190
2186
|
}, o = () => {
|
|
2191
2187
|
/* v8 ignore next -- consider() only routes elements with an https src
|
|
2192
2188
|
here, so the final fallback arm is unreachable. */
|
|
2193
2189
|
let t = e.currentSrc || e.getAttribute("src") || "", i = e.getBoundingClientRect();
|
|
2194
|
-
if (!(/^https?:/.test(t) &&
|
|
2190
|
+
if (!(/^https?:/.test(t) && hr({
|
|
2195
2191
|
naturalWidth: e.naturalWidth,
|
|
2196
2192
|
naturalHeight: e.naturalHeight,
|
|
2197
|
-
boxWidth: i.width ||
|
|
2198
|
-
boxHeight: i.height ||
|
|
2193
|
+
boxWidth: i.width || q,
|
|
2194
|
+
boxHeight: i.height || q,
|
|
2199
2195
|
devicePixelRatio: u()
|
|
2200
2196
|
}))) {
|
|
2201
2197
|
v(e, null);
|
|
@@ -2207,7 +2203,7 @@ function xr(e) {
|
|
|
2207
2203
|
v(e, o);
|
|
2208
2204
|
return;
|
|
2209
2205
|
}
|
|
2210
|
-
|
|
2206
|
+
yr(t).then((a) => {
|
|
2211
2207
|
if (!(n || !s.has(e))) {
|
|
2212
2208
|
/* v8 ignore start -- a verdict can only appear via settle(), which
|
|
2213
2209
|
releases every held element of the url first, so a still-held
|
|
@@ -2223,7 +2219,7 @@ function xr(e) {
|
|
|
2223
2219
|
l.add(e), f(t, e);
|
|
2224
2220
|
return;
|
|
2225
2221
|
}
|
|
2226
|
-
C(t, i.width ||
|
|
2222
|
+
C(t, i.width || q, i.height || q);
|
|
2227
2223
|
}
|
|
2228
2224
|
});
|
|
2229
2225
|
};
|
|
@@ -2246,20 +2242,20 @@ function xr(e) {
|
|
|
2246
2242
|
if (c.add(e), e.complete && e.naturalWidth > 0) {
|
|
2247
2243
|
if (!t) {
|
|
2248
2244
|
let t = e.getBoundingClientRect();
|
|
2249
|
-
C(a, t.width ||
|
|
2245
|
+
C(a, t.width || q, t.height || q);
|
|
2250
2246
|
return;
|
|
2251
2247
|
}
|
|
2252
2248
|
let n = e.getBoundingClientRect();
|
|
2253
|
-
if (!
|
|
2249
|
+
if (!hr({
|
|
2254
2250
|
naturalWidth: e.naturalWidth,
|
|
2255
2251
|
naturalHeight: e.naturalHeight,
|
|
2256
|
-
boxWidth: n.width ||
|
|
2257
|
-
boxHeight: n.height ||
|
|
2252
|
+
boxWidth: n.width || q,
|
|
2253
|
+
boxHeight: n.height || q,
|
|
2258
2254
|
devicePixelRatio: u()
|
|
2259
2255
|
})) return;
|
|
2260
2256
|
let o = r.get(a);
|
|
2261
2257
|
if (i(o)) {
|
|
2262
|
-
|
|
2258
|
+
ir() || mr(e) ? _(e, a, o) : (e.setAttribute(J, a), e.src = o);
|
|
2263
2259
|
return;
|
|
2264
2260
|
}
|
|
2265
2261
|
if (o === "opaque") {
|
|
@@ -2275,14 +2271,14 @@ function xr(e) {
|
|
|
2275
2271
|
return;
|
|
2276
2272
|
}
|
|
2277
2273
|
if (o) {
|
|
2278
|
-
|
|
2274
|
+
ir() || mr(e) ? _(e, a, o) : (e.setAttribute(J, a), e.src = o);
|
|
2279
2275
|
return;
|
|
2280
2276
|
}
|
|
2281
2277
|
s.set(e, {
|
|
2282
2278
|
url: a,
|
|
2283
2279
|
previousVisibility: e.style.visibility,
|
|
2284
|
-
timeout: setTimeout(() => v(e, null),
|
|
2285
|
-
}), e.style.visibility = "hidden", e.setAttribute(
|
|
2280
|
+
timeout: setTimeout(() => v(e, null), lr)
|
|
2281
|
+
}), e.style.visibility = "hidden", e.setAttribute(J, a), e.src = dr, yr(a).then((t) => {
|
|
2286
2282
|
if (n || r.has(a)) return;
|
|
2287
2283
|
if (t) {
|
|
2288
2284
|
let e = URL.createObjectURL(t);
|
|
@@ -2292,7 +2288,7 @@ function xr(e) {
|
|
|
2292
2288
|
let i = () => {
|
|
2293
2289
|
if (n) return;
|
|
2294
2290
|
let t = e.getBoundingClientRect();
|
|
2295
|
-
C(a, t.width ||
|
|
2291
|
+
C(a, t.width || q, t.height || q);
|
|
2296
2292
|
};
|
|
2297
2293
|
typeof requestAnimationFrame == "function" ? requestAnimationFrame(i) : i();
|
|
2298
2294
|
});
|
|
@@ -2309,21 +2305,21 @@ function xr(e) {
|
|
|
2309
2305
|
let k = (e) => {
|
|
2310
2306
|
let t = e.getAttribute("src") ?? "", n = s.get(e);
|
|
2311
2307
|
if (n && !n.responsive) {
|
|
2312
|
-
t === n.url && (e.src =
|
|
2308
|
+
t === n.url && (e.src = dr);
|
|
2313
2309
|
return;
|
|
2314
2310
|
}
|
|
2315
|
-
let a = e.getAttribute(
|
|
2311
|
+
let a = e.getAttribute(J);
|
|
2316
2312
|
if (a) if (t === a) {
|
|
2317
2313
|
let t = r.get(a);
|
|
2318
2314
|
i(t) && (e.src = t);
|
|
2319
|
-
} else t !==
|
|
2315
|
+
} else t !== dr && !t.startsWith("blob:") && e.removeAttribute(J);
|
|
2320
2316
|
}, A = !1, j = new MutationObserver((t) => {
|
|
2321
2317
|
if (!n) {
|
|
2322
|
-
if (
|
|
2318
|
+
if (ir()) {
|
|
2323
2319
|
if (A) return;
|
|
2324
|
-
A = !0,
|
|
2320
|
+
A = !0, or(() => {
|
|
2325
2321
|
if (A = !1, !n) {
|
|
2326
|
-
for (let t of Array.from(e.querySelectorAll(`img[${
|
|
2322
|
+
for (let t of Array.from(e.querySelectorAll(`img[${J}]`))) k(t);
|
|
2327
2323
|
for (let e of [...s.keys()]) k(e);
|
|
2328
2324
|
}
|
|
2329
2325
|
});
|
|
@@ -2345,23 +2341,23 @@ function xr(e) {
|
|
|
2345
2341
|
l.clear();
|
|
2346
2342
|
};
|
|
2347
2343
|
}
|
|
2348
|
-
var
|
|
2349
|
-
function
|
|
2350
|
-
return typeof document > "u" || !document.body ? () => {} : (
|
|
2351
|
-
dispose:
|
|
2344
|
+
var xr = null;
|
|
2345
|
+
function Sr() {
|
|
2346
|
+
return typeof document > "u" || !document.body ? () => {} : (xr ? xr.count += 1 : xr = {
|
|
2347
|
+
dispose: br(document.body),
|
|
2352
2348
|
count: 1
|
|
2353
2349
|
}, () => {
|
|
2354
|
-
|
|
2350
|
+
xr && (--xr.count, xr.count <= 0 && (xr.dispose(), xr = null));
|
|
2355
2351
|
});
|
|
2356
2352
|
}
|
|
2357
2353
|
//#endregion
|
|
2358
2354
|
//#region src/core/engine/arrivalHold.ts
|
|
2359
|
-
var
|
|
2360
|
-
function
|
|
2355
|
+
var Cr = "data-flemo-held-arrival";
|
|
2356
|
+
function wr(e) {
|
|
2361
2357
|
if (typeof MutationObserver > "u") return () => {};
|
|
2362
2358
|
let t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Map(), o = (t) => {
|
|
2363
2359
|
let n = t instanceof Element ? t : t.parentElement;
|
|
2364
|
-
return !n || n === e || n.closest(`[data-flemo-part-name], [${
|
|
2360
|
+
return !n || n === e || n.closest(`[data-flemo-part-name], [${Cr}], [${J}]`) !== null;
|
|
2365
2361
|
}, 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), {
|
|
2366
2362
|
glass: t,
|
|
2367
2363
|
latest: n,
|
|
@@ -2391,12 +2387,12 @@ function Tr(e) {
|
|
|
2391
2387
|
if (i.type === "childList") {
|
|
2392
2388
|
for (let e of Array.from(i.removedNodes)) if (!n.has(e)) {
|
|
2393
2389
|
if (e instanceof Element && t.delete(e)) {
|
|
2394
|
-
e.removeAttribute(
|
|
2390
|
+
e.removeAttribute(Cr);
|
|
2395
2391
|
continue;
|
|
2396
2392
|
}
|
|
2397
2393
|
(e instanceof Element || e.nodeType === Node.TEXT_NODE) && l(i.target).removed.push(e);
|
|
2398
2394
|
}
|
|
2399
|
-
for (let e of Array.from(i.addedNodes)) r.delete(e) || e instanceof Element && (e.setAttribute(
|
|
2395
|
+
for (let e of Array.from(i.addedNodes)) r.delete(e) || e instanceof Element && (e.setAttribute(Cr, ""), t.add(e), l(i.target).added.push(e));
|
|
2400
2396
|
}
|
|
2401
2397
|
}
|
|
2402
2398
|
for (let [e, t] of u) {
|
|
@@ -2431,7 +2427,7 @@ function Tr(e) {
|
|
|
2431
2427
|
c.disconnect();
|
|
2432
2428
|
for (let e of n) e.parentNode?.removeChild(e);
|
|
2433
2429
|
n.clear();
|
|
2434
|
-
for (let e of t) e instanceof HTMLElement &&
|
|
2430
|
+
for (let e of t) e instanceof HTMLElement && $n(e), e.removeAttribute(Cr);
|
|
2435
2431
|
t.clear();
|
|
2436
2432
|
for (let [e, t] of i) e.isConnected && (e.nodeValue = t.latest);
|
|
2437
2433
|
i.clear();
|
|
@@ -2441,57 +2437,57 @@ function Tr(e) {
|
|
|
2441
2437
|
}
|
|
2442
2438
|
//#endregion
|
|
2443
2439
|
//#region src/core/engine/compositorWarmUp.ts
|
|
2444
|
-
var
|
|
2440
|
+
var Tr = "data-flemo-warm", Er = 3e3, Dr = [{ backgroundPosition: "0px 0px" }, { backgroundPosition: "48px 0px" }], Or = {
|
|
2445
2441
|
duration: 500,
|
|
2446
2442
|
iterations: Infinity,
|
|
2447
2443
|
direction: "alternate",
|
|
2448
2444
|
easing: "linear"
|
|
2449
|
-
},
|
|
2450
|
-
|
|
2445
|
+
}, kr = "position:fixed;top:0;left:0;width:48px;height:48px;pointer-events:none;opacity:0.02;background-image:linear-gradient(90deg,#808080 0 24px,#909090 24px 48px);background-repeat:repeat;background-size:48px 48px;", Ar = "data:video/webm;base64,GkXfo59ChoEBQveBAULygQRC84EIQoKEd2VibUKHgQJChYECGFOAZwEAAAAAAAeuEU2bdLpNu4tTq4QVSalmU6yBoU27i1OrhBZUrmtTrIHWTbuMU6uEElTDZ1OsggExTbuMU6uEHFO7a1Osggdg7AEAAAAAAABZAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAVSalmsCrXsYMPQkBNgIxMYXZmNjMuMS4xMDBXQYxMYXZmNjMuMS4xMDBEiYhAj0AAAAAAABZUrmvWrgEAAAAAAABN14EBc8WIPqUZMMrLeHecgQAitZyDdW5kiIEAhoVWX1ZQOIOBASPjg4P+UCrgkLCBCLqBCJqBAlWwhFW5gQFV7oEA7AEAAAAAAAACAAASVMNn+nNzn2PAgGfImUWjh0VOQ09ERVJEh4xMYXZmNjMuMS4xMDBzc9VjwItjxYg+pRkwyst4d2fIoEWjh0VOQ09ERVJEh5NMYXZjNjMuMS4xMDAgbGlidnB4Z8ihRaOIRFVSQVRJT05Eh5MwMDowMDowMS4wMDAwMDAwMDAAH0O2dUWq54EAo5+BAACAEAIAnQEqCAAIAABHCIWFiIWEiAICAAYZaAAAo5WBABEAsQEAARAQABgAGG/0DAAEAACjlYEAIQCxAQABEBAAGAAYb/QMAAQAAKOVgQAyALEBAAEQEAAYABhv9AwABAAAo5WBAEMAsQEAARAQABgAGG/0DAAEAACjlYEAUwCxAQABEBAAGAAYb/QMAAQAAKOVgQBkALEBAAEQEAAYABhv9AwABAAAo5SBAHUAkQEAARAQFGAAYb/QMAAQAKOXgQCFALEBAAEQEAAYADA/9AwAAAD+aACjlYEAlgCxAQABEBAAGAAYb/QMAAQAAKOXgQCnALEBAAEQEAAYADA/9AwAAAD+aACjlYEAtwCxAQABEBAAGAAYb/QMAAQAAKOXgQDIALEBAAEQEAAYADA/9AwAAAD+aACjl4EA2QCxAQABEBAAGAAwP/QMAAAA/mgAo5WBAOkAsQEAARAQFGAAYWC/0AAgAACjn4EA+oAQAgCdASoIAAgAAEcIhYWIhYSIAgIABhloAACjl4EBCwCxAQABEBAAGAAwP/QMAAAA/mgAo5WBARsAsQEAARAQABgAGG/0DAAEAACjl4EBLACxAQABEBAAGAAwP/QMAAAA/mgAo5WBAT0AsQEAARAQABgAGG/0DAAEAACjl4EBTQCxAQABEBAAGAAwP/QMAAAA/mgAo5eBAV4AsQEAARAQABgAMD/0DAAAAP5oAKOVgQFvALEBAAEQEBRgAGFgv9AAIAAAo5+BAX+AEAIAnQEqCAAIAABHCIWFiIWEiAICAAYZaAAAo5eBAZAAsQEAARAQABgAMD/0DAAAAP5oAKOVgQGhALEBAAEQEAAYABhv9AwABAAAo5WBAbEAsQEAARAQABgAGG/0DAAEAACjlYEBwgCxAQABEBAAGAAYb/QMAAQAAKOXgQHTALEBAAEQEAAYADA/9AwAAAD+aACjlYEB4wCxAQABEBAAGAAYb/QMAAQAAKOWgQH0AJEBAAEQEBRgAMD/0DAAAP5oAKOVgQIFALEBAAEQEAAYABhv9AwABAAAo5WBAhUAsQEAARAQABgAGFgYL+gMAACjlYECJgCxAQABEBAAGAAYWBgv6AwAAKOVgQI3ALEBAAEQEAAYABhYGC/oDAAAo5WBAkcAsQEAARAQABgAGFgYL+gMAACjlYECWACxAQABEBAAGAAYWBgv6AwAAKOfgQJpgBACAJ0BKggACAAARwiFhYiFhIgCAgAGGWgAAKOXgQJ5ALEBAAEQEAAYADA/9AwAAAD+aACjlYECigCxAQABEBAAGAAYb/QMAAQAAKOXgQKbALEBAAEQEAAYADA/9AwAAAD+aACjl4ECqwCxAQABEBAAGAAwP/QMAAAA/mgAo5WBArwAsQEAARAQABgAGG/0DAAEAACjlYECzQCxAQABEBAAGAAYb/QMAAQAAKOWgQLdAJEBAAEQEBRgAMD/0DAAAP5oAKOVgQLuALEBAAEQEAAYABhv9AwABAAAo5WBAv8AsQEAARAQABgAGFgYL+gMAACjlYEDDwCxAQABEBAAGAAYWBgv6AwAAKOVgQMgALEBAAEQEAAYABhYGC/oDAAAo5WBAzEAsQEAARAQABgAGFgYGBgQAACjlYEDQQCxAQABEBAAGAAYWC/0AAgAAKOVgQNSALEBAAEQEBRgAGFgv9AAIAAAo5WBA2MAsQEAARAQABgAGFgv9AAIAACjlYEDcwCxAQABEBAAGAAYWC/0AAgAAKOVgQOEALEBAAEQEAAYABhYGBgYEAAAo5WBA5UAsQEAARAQABgAGFgYL+gMAACjlYEDpQCxAQABEBAAGAAYWBgYGBAAAKOVgQO2ALEBAAEQEAAYABhYGC/oDAAAo5WBA8cAsQEAARAQABgAGFgYGBgQAACjlYED1wCxAQABEBAAGAAYWBgv6AwAABxTu2vJu4+zgQC3iveBAfGCAbDwgQO7kLOB+reL94EB8YIBsPCCAW27kbOCAX+3i/eBAfGCAbDwggI3u5GzggJpt4v3gQHxggGw8IIDiA==", Y = null, jr = null, X = null, Mr = null, Nr = 0, Pr = () => {
|
|
2446
|
+
Nr = 0, Mr?.cancel(), Mr = null, X?.remove(), X = null;
|
|
2451
2447
|
};
|
|
2452
|
-
function
|
|
2448
|
+
function Fr() {
|
|
2453
2449
|
if (typeof document > "u" || !document.body || typeof Element > "u" || typeof Element.prototype.animate != "function") return () => {};
|
|
2454
|
-
if (
|
|
2455
|
-
|
|
2450
|
+
if (Nr += 1, !X) {
|
|
2451
|
+
X = document.createElement("div"), X.setAttribute(Tr, ""), X.setAttribute("aria-hidden", "true"), X.setAttribute("style", kr), document.body.appendChild(X);
|
|
2456
2452
|
try {
|
|
2457
|
-
|
|
2453
|
+
Mr = X.animate(Dr, Or);
|
|
2458
2454
|
} catch {
|
|
2459
|
-
|
|
2455
|
+
Mr = null;
|
|
2460
2456
|
}
|
|
2461
|
-
if (!
|
|
2462
|
-
|
|
2463
|
-
let e =
|
|
2464
|
-
|
|
2457
|
+
if (!Y && it()) try {
|
|
2458
|
+
Y = document.createElement("video"), Y.muted = !0, Y.loop = !0, Y.playsInline = !0, Y.setAttribute("aria-hidden", "true"), Y.setAttribute("data-flemo-warm-video", ""), Y.setAttribute("style", "position:fixed;top:0;left:52px;width:8px;height:8px;pointer-events:none;opacity:0.02;"), Y.src = Ar, document.body.appendChild(Y), Y.play()?.catch?.(() => {});
|
|
2459
|
+
let e = Y;
|
|
2460
|
+
jr = () => {
|
|
2465
2461
|
document.visibilityState === "hidden" ? e.pause() : e.play()?.catch?.(() => {});
|
|
2466
|
-
}, document.addEventListener("visibilitychange",
|
|
2462
|
+
}, document.addEventListener("visibilitychange", jr);
|
|
2467
2463
|
} catch {
|
|
2468
|
-
|
|
2464
|
+
Y = null;
|
|
2469
2465
|
}
|
|
2470
2466
|
}
|
|
2471
2467
|
let e = !1, t = setTimeout(() => {
|
|
2472
|
-
e || (e = !0, --
|
|
2473
|
-
},
|
|
2468
|
+
e || (e = !0, --Nr, Nr <= 0 && Pr());
|
|
2469
|
+
}, Er);
|
|
2474
2470
|
return () => {
|
|
2475
|
-
e || (e = !0, clearTimeout(t), --
|
|
2471
|
+
e || (e = !0, clearTimeout(t), --Nr, Nr <= 0 && Pr());
|
|
2476
2472
|
};
|
|
2477
2473
|
}
|
|
2478
2474
|
//#endregion
|
|
2479
2475
|
//#region src/core/engine/emulationNotice.ts
|
|
2480
|
-
var
|
|
2476
|
+
var Ir = () => {
|
|
2481
2477
|
if (typeof navigator > "u") return !1;
|
|
2482
2478
|
let e = navigator.platform ?? "";
|
|
2483
2479
|
return /Mac/i.test(e) ? (navigator.maxTouchPoints ?? 0) > 0 : !1;
|
|
2484
|
-
},
|
|
2485
|
-
|
|
2486
|
-
},
|
|
2480
|
+
}, Lr = !1, Rr = () => {
|
|
2481
|
+
Lr || !I() || !Ir() || (Lr = !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."));
|
|
2482
|
+
}, zr = "data-flemo-img-hold", Br = (e) => !(e.complete && e.naturalWidth > 0), Vr = 4, Hr = (e) => {
|
|
2487
2483
|
if (!(e.complete && e.naturalWidth > 0)) return !1;
|
|
2488
2484
|
let t = e.getBoundingClientRect(), n = typeof devicePixelRatio == "number" && devicePixelRatio > 0 ? devicePixelRatio : 1, r = Math.max(1, t.width * n) * Math.max(1, t.height * n);
|
|
2489
|
-
return e.naturalWidth * e.naturalHeight > r *
|
|
2490
|
-
},
|
|
2491
|
-
function
|
|
2485
|
+
return e.naturalWidth * e.naturalHeight > r * Vr;
|
|
2486
|
+
}, Ur = (e, t) => Br(e) || !t && Hr(e);
|
|
2487
|
+
function Wr(e, t, n = !1) {
|
|
2492
2488
|
if (!e || typeof document > "u" || typeof MutationObserver != "function" || typeof setTimeout != "function") return () => {};
|
|
2493
2489
|
let r = /* @__PURE__ */ new Map(), i = (e) => {
|
|
2494
|
-
e.getAttribute(
|
|
2490
|
+
e.getAttribute(zr) === null && (r.has(e) || !Ur(e, n) || (r.set(e, e.style.display), e.style.display = "none", e.setAttribute(zr, "")));
|
|
2495
2491
|
};
|
|
2496
2492
|
for (let t of e.querySelectorAll("img")) i(t);
|
|
2497
2493
|
let a = new MutationObserver((e) => {
|
|
@@ -2505,7 +2501,7 @@ function Gr(e, t, n = !1) {
|
|
|
2505
2501
|
let o = !1, s = () => {
|
|
2506
2502
|
if (!o) {
|
|
2507
2503
|
o = !0, a.disconnect();
|
|
2508
|
-
for (let [e, t] of r) t ? e.style.display = t : e.style.removeProperty("display"), e.removeAttribute(
|
|
2504
|
+
for (let [e, t] of r) t ? e.style.display = t : e.style.removeProperty("display"), e.removeAttribute(zr);
|
|
2509
2505
|
r.clear();
|
|
2510
2506
|
}
|
|
2511
2507
|
}, c = setTimeout(s, Math.max(0, t));
|
|
@@ -2515,25 +2511,25 @@ function Gr(e, t, n = !1) {
|
|
|
2515
2511
|
}
|
|
2516
2512
|
//#endregion
|
|
2517
2513
|
//#region src/core/engine/invisibleAnimationHold.ts
|
|
2518
|
-
var
|
|
2514
|
+
var Gr = () => {}, Kr = .004, qr = (e, t) => {
|
|
2519
2515
|
let n = e.ownerDocument?.defaultView;
|
|
2520
2516
|
if (!n) return !1;
|
|
2521
2517
|
let r = e;
|
|
2522
2518
|
for (; r;) {
|
|
2523
|
-
if (Number(n.getComputedStyle(r).opacity) <=
|
|
2519
|
+
if (Number(n.getComputedStyle(r).opacity) <= Kr) return !0;
|
|
2524
2520
|
if (r === t) break;
|
|
2525
2521
|
r = r.parentElement;
|
|
2526
2522
|
}
|
|
2527
2523
|
return !1;
|
|
2528
2524
|
};
|
|
2529
|
-
function
|
|
2530
|
-
if (typeof e.getAnimations != "function") return
|
|
2525
|
+
function Jr(e) {
|
|
2526
|
+
if (typeof e.getAnimations != "function") return Gr;
|
|
2531
2527
|
let t = /* @__PURE__ */ new Set(), n = () => {
|
|
2532
2528
|
for (let n of e.getAnimations({ subtree: !0 })) {
|
|
2533
2529
|
if (t.size >= 128) return;
|
|
2534
2530
|
if (t.has(n) || (n.animationName ?? "").startsWith("flemo-") || n.playState !== "running") continue;
|
|
2535
2531
|
let r = n.effect?.target;
|
|
2536
|
-
if (r instanceof Element &&
|
|
2532
|
+
if (r instanceof Element && qr(r, e)) try {
|
|
2537
2533
|
n.pause(), t.add(n);
|
|
2538
2534
|
} catch {}
|
|
2539
2535
|
}
|
|
@@ -2562,7 +2558,7 @@ function Yr(e) {
|
|
|
2562
2558
|
}
|
|
2563
2559
|
//#endregion
|
|
2564
2560
|
//#region src/transition/cubicBezier.ts
|
|
2565
|
-
var
|
|
2561
|
+
var Yr = (e, t, n, r) => {
|
|
2566
2562
|
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;
|
|
2567
2563
|
return (e) => {
|
|
2568
2564
|
if (e <= 0) return 0;
|
|
@@ -2574,7 +2570,7 @@ var Xr = (e, t, n, r) => {
|
|
|
2574
2570
|
}
|
|
2575
2571
|
return a((t + n) / 2);
|
|
2576
2572
|
};
|
|
2577
|
-
},
|
|
2573
|
+
}, Xr = (e) => e, Zr = {
|
|
2578
2574
|
ease: [
|
|
2579
2575
|
.25,
|
|
2580
2576
|
.1,
|
|
@@ -2629,20 +2625,20 @@ var Xr = (e, t, n, r) => {
|
|
|
2629
2625
|
.66,
|
|
2630
2626
|
-.56
|
|
2631
2627
|
]
|
|
2632
|
-
},
|
|
2628
|
+
}, Qr = (e) => {
|
|
2633
2629
|
if (Array.isArray(e)) {
|
|
2634
2630
|
if (e.length === 4 && e.every((e) => typeof e == "number")) {
|
|
2635
2631
|
let [t, n, r, i] = e;
|
|
2636
|
-
return
|
|
2632
|
+
return Yr(t, n, r, i);
|
|
2637
2633
|
}
|
|
2638
|
-
return
|
|
2634
|
+
return Xr;
|
|
2639
2635
|
}
|
|
2640
|
-
return typeof e == "string" ? e === "linear" ?
|
|
2641
|
-
},
|
|
2636
|
+
return typeof e == "string" ? e === "linear" ? Xr : Yr(...Zr[e] ?? Zr.ease) : Yr(...Zr.ease);
|
|
2637
|
+
}, $r = 1 / 255, ei = 400, ti = 24, ni = /* @__PURE__ */ new Set([
|
|
2642
2638
|
"x",
|
|
2643
2639
|
"y",
|
|
2644
2640
|
"opacity"
|
|
2645
|
-
]),
|
|
2641
|
+
]), ri = (e, t, n) => {
|
|
2646
2642
|
if (!e || typeof e != "object") return;
|
|
2647
2643
|
let r = e[t];
|
|
2648
2644
|
if (r === void 0) return;
|
|
@@ -2660,7 +2656,7 @@ var Xr = (e, t, n, r) => {
|
|
|
2660
2656
|
return Number.isNaN(e) ? null : e;
|
|
2661
2657
|
}
|
|
2662
2658
|
return null;
|
|
2663
|
-
},
|
|
2659
|
+
}, ii = (e, t, n) => {
|
|
2664
2660
|
let r = /* @__PURE__ */ new Set();
|
|
2665
2661
|
for (let t of [e.from, e.to]) if (!(!t || typeof t != "object")) for (let e of Object.keys(t)) r.add(e);
|
|
2666
2662
|
if (r.size === 0) return null;
|
|
@@ -2668,28 +2664,28 @@ var Xr = (e, t, n, r) => {
|
|
|
2668
2664
|
for (let a of r) {
|
|
2669
2665
|
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;
|
|
2670
2666
|
if (r !== void 0 && r === o) continue;
|
|
2671
|
-
if (!
|
|
2672
|
-
let s =
|
|
2667
|
+
if (!ni.has(a)) return null;
|
|
2668
|
+
let s = ri(e.from, a, t), c = ri(e.to, a, t);
|
|
2673
2669
|
if (s === null || c === null || s === void 0 || c === void 0) return null;
|
|
2674
2670
|
let l = Math.abs(c - s);
|
|
2675
2671
|
if (l === 0) continue;
|
|
2676
|
-
let u = a === "opacity" ?
|
|
2672
|
+
let u = a === "opacity" ? $r : 1 / Math.max(1, n);
|
|
2677
2673
|
i = Math.min(i, u / l);
|
|
2678
2674
|
}
|
|
2679
2675
|
return !Number.isFinite(i) || i <= 0 || i >= 1 ? null : i;
|
|
2680
|
-
},
|
|
2676
|
+
}, ai = (e, t, n) => {
|
|
2681
2677
|
if (e.duration <= 0) return null;
|
|
2682
|
-
let r =
|
|
2678
|
+
let r = ii(e, t, n);
|
|
2683
2679
|
if (r === null) return null;
|
|
2684
|
-
let i =
|
|
2685
|
-
for (let e =
|
|
2680
|
+
let i = Qr(e.ease), a = ei;
|
|
2681
|
+
for (let e = ei; e >= 0 && !(Math.abs(1 - i(e / ei)) > r); --e) a = e;
|
|
2686
2682
|
if (a === 0) return null;
|
|
2687
|
-
let o = (e.delay + e.duration * (a /
|
|
2688
|
-
return (e.delay + e.duration) * 1e3 - o <
|
|
2689
|
-
},
|
|
2683
|
+
let o = (e.delay + e.duration * (a / ei)) * 1e3;
|
|
2684
|
+
return (e.delay + e.duration) * 1e3 - o < ti ? null : o;
|
|
2685
|
+
}, oi = 1e3 / 120, si = 4, Z = 400, ci = 4, Q = (e) => {
|
|
2690
2686
|
let t = +e.toFixed(5);
|
|
2691
2687
|
return Object.is(t, -0) ? 0 : t;
|
|
2692
|
-
},
|
|
2688
|
+
}, li = (e, t, n) => {
|
|
2693
2689
|
if (e.duration <= 0) return null;
|
|
2694
2690
|
let r = Number.isFinite(n) && n > 0 ? n : 1, i = /* @__PURE__ */ new Set();
|
|
2695
2691
|
for (let t of [e.from, e.to]) if (!(!t || typeof t != "object")) for (let e of Object.keys(t)) i.add(e);
|
|
@@ -2698,37 +2694,37 @@ var Xr = (e, t, n, r) => {
|
|
|
2698
2694
|
let i = e.from && typeof e.from == "object" ? e.from[n] : void 0, o = e.to && typeof e.to == "object" ? e.to[n] : void 0;
|
|
2699
2695
|
if (i !== void 0 && i === o) continue;
|
|
2700
2696
|
if (n !== "x" && n !== "y") return null;
|
|
2701
|
-
let s =
|
|
2697
|
+
let s = ri(e.from, n, t), c = ri(e.to, n, t);
|
|
2702
2698
|
if (s === null || c === null || s === void 0 || c === void 0) return null;
|
|
2703
2699
|
a = Math.max(a, Math.abs(c - s) * r);
|
|
2704
2700
|
}
|
|
2705
|
-
if (a <
|
|
2706
|
-
let o =
|
|
2707
|
-
for (let e = 0; e <=
|
|
2708
|
-
let c = e.duration * 1e3 /
|
|
2701
|
+
if (a < si) return null;
|
|
2702
|
+
let o = Qr(e.ease), s = Array(401);
|
|
2703
|
+
for (let e = 0; e <= Z; e += 1) s[e] = o(e / Z);
|
|
2704
|
+
let c = e.duration * 1e3 / Z, l = 40 / a * c / oi, u = Z, d = 0;
|
|
2709
2705
|
for (let e = 399; e >= 0 && (d = Math.max(d, Math.abs(s[e + 1] - s[e])), !(d > l)); --e) u = e;
|
|
2710
|
-
for (let e = u; e <
|
|
2706
|
+
for (let e = u; e < Z; e += 1) if (s[e + 1] < s[e] || s[e] > 1) return null;
|
|
2711
2707
|
let f = (1 - s[u]) * a;
|
|
2712
2708
|
if (f <= 1) return null;
|
|
2713
2709
|
let p = Math.min(480, Math.floor(f)), m = u, h = (e) => {
|
|
2714
2710
|
let t = 1 - e / a;
|
|
2715
|
-
for (; m <
|
|
2711
|
+
for (; m < Z && s[m] < t;) m += 1;
|
|
2716
2712
|
if (m === 0) return 0;
|
|
2717
2713
|
let n = s[m - 1], r = s[m], i = r === n ? 1 : Math.max(0, Math.min(1, (t - n) / (r - n)));
|
|
2718
|
-
return (m - 1 + i) /
|
|
2714
|
+
return (m - 1 + i) / Z * 100;
|
|
2719
2715
|
}, g = h(p), _ = [];
|
|
2720
|
-
for (let e = 0; 100 /
|
|
2716
|
+
for (let e = 0; 100 / Z * e < g; e += ci) _.push(`${Q(s[e])} ${Q(e / Z * 100)}%`);
|
|
2721
2717
|
let v = g;
|
|
2722
2718
|
for (let e = p; e >= 2; --e) {
|
|
2723
2719
|
let t = h(e - 1);
|
|
2724
2720
|
if (t > v) {
|
|
2725
|
-
let n =
|
|
2726
|
-
_.push(`${n} ${
|
|
2721
|
+
let n = Q(1 - e / a);
|
|
2722
|
+
_.push(`${n} ${Q(v)}%`, `${n} ${Q(t)}%`);
|
|
2727
2723
|
}
|
|
2728
2724
|
v = t;
|
|
2729
2725
|
}
|
|
2730
|
-
return _.push(`1 ${
|
|
2731
|
-
},
|
|
2726
|
+
return _.push(`1 ${Q(v)}%`, "1 100%"), `linear(${_.join(", ")})`;
|
|
2727
|
+
}, ui = 12, di = (e, t, n, r) => {
|
|
2732
2728
|
if (e.duration <= 0 || !Number.isFinite(r) || r <= 0) return null;
|
|
2733
2729
|
let i = Number.isFinite(n) && n > 0 ? n : 1, a = /* @__PURE__ */ new Set();
|
|
2734
2730
|
for (let t of [e.from, e.to]) if (!(!t || typeof t != "object")) for (let e of Object.keys(t)) a.add(e);
|
|
@@ -2737,30 +2733,30 @@ var Xr = (e, t, n, r) => {
|
|
|
2737
2733
|
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;
|
|
2738
2734
|
if (r !== void 0 && r === a) continue;
|
|
2739
2735
|
if (n !== "x" && n !== "y") return null;
|
|
2740
|
-
let s =
|
|
2736
|
+
let s = ri(e.from, n, t), c = ri(e.to, n, t);
|
|
2741
2737
|
if (s === null || c === null || s === void 0 || c === void 0) return null;
|
|
2742
2738
|
o = Math.max(o, Math.abs(c - s) * i);
|
|
2743
2739
|
}
|
|
2744
|
-
if (o <
|
|
2745
|
-
let s =
|
|
2746
|
-
for (let e = 0; e <=
|
|
2747
|
-
let l = e.duration * 1e3, u = l /
|
|
2740
|
+
if (o < ui) return null;
|
|
2741
|
+
let s = Qr(e.ease), c = Array(401);
|
|
2742
|
+
for (let e = 0; e <= Z; e += 1) c[e] = s(e / Z);
|
|
2743
|
+
let l = e.duration * 1e3, u = l / Z, d = 1 / o * (u / r), f = Z, p = 0;
|
|
2748
2744
|
for (let e = 399; e >= 0 && (p = Math.max(p, Math.abs(c[e + 1] - c[e])), !(p > d)); --e) f = e;
|
|
2749
|
-
if (f === 0 || f >=
|
|
2750
|
-
for (let e = f; e <
|
|
2745
|
+
if (f === 0 || f >= Z) return null;
|
|
2746
|
+
for (let e = f; e < Z; e += 1) if (c[e + 1] < c[e] || c[e] > 1) return null;
|
|
2751
2747
|
let m = (1 - c[f]) * o;
|
|
2752
|
-
if (m <= 1 || m >
|
|
2753
|
-
let h = f /
|
|
2748
|
+
if (m <= 1 || m > ui) return null;
|
|
2749
|
+
let h = f / Z * 100, g = m * r / l * 100;
|
|
2754
2750
|
if (h + g >= 100) return null;
|
|
2755
2751
|
let _ = [];
|
|
2756
|
-
for (let e = 0; e <= f; e +=
|
|
2757
|
-
return _.push(`${
|
|
2758
|
-
},
|
|
2752
|
+
for (let e = 0; e <= f; e += ci) _.push(`${Q(c[e])} ${Q(e / Z * 100)}%`);
|
|
2753
|
+
return _.push(`${Q(c[f])} ${Q(h)}%`), _.push(`1 ${Q(h + g)}%`, "1 100%"), `linear(${_.join(", ")})`;
|
|
2754
|
+
}, fi = /* @__PURE__ */ new WeakMap(), pi = Symbol("flemo-layer-owner"), mi = (e, t) => {
|
|
2759
2755
|
t.willChange ? e.style.willChange = t.willChange : e.style.removeProperty("will-change"), t.contain ? e.style.contain = t.contain : e.style.removeProperty("contain");
|
|
2760
|
-
},
|
|
2756
|
+
}, hi = (e, t) => {
|
|
2761
2757
|
let n = e.trim() === "none" ? "" : e.trim();
|
|
2762
2758
|
return t ? n ? /\b(layout|strict|content)\b/.test(n) ? n : `${n} layout` : "layout" : n;
|
|
2763
|
-
},
|
|
2759
|
+
}, gi = (e, t) => {
|
|
2764
2760
|
let n = /* @__PURE__ */ new Set(), r = !1;
|
|
2765
2761
|
for (let e of t.willChange.split(",")) {
|
|
2766
2762
|
let t = e.trim();
|
|
@@ -2771,13 +2767,13 @@ var Xr = (e, t, n, r) => {
|
|
|
2771
2767
|
e.containment && (r = !0);
|
|
2772
2768
|
}
|
|
2773
2769
|
e.style.willChange = [...n].join(", ");
|
|
2774
|
-
let i =
|
|
2770
|
+
let i = hi(t.contain, r);
|
|
2775
2771
|
i ? e.style.contain = i : e.style.removeProperty("contain");
|
|
2776
|
-
},
|
|
2777
|
-
let i =
|
|
2772
|
+
}, _i = (e, t, n = !1, r = pi) => {
|
|
2773
|
+
let i = yn(t), a = fi.get(e);
|
|
2778
2774
|
if (i.length === 0) {
|
|
2779
2775
|
if (!a) return;
|
|
2780
|
-
a.owners.has(r) ? (a.owners.delete(r), a.owners.size === 0 ? (a.pending != null && clearTimeout(a.pending),
|
|
2776
|
+
a.owners.has(r) ? (a.owners.delete(r), a.owners.size === 0 ? (a.pending != null && clearTimeout(a.pending), mi(e, a), fi.delete(e)) : gi(e, a)) : r === a.settleOwner && a.owners.size === 0 && (a.pending != null && clearTimeout(a.pending), mi(e, a), fi.delete(e));
|
|
2781
2777
|
return;
|
|
2782
2778
|
}
|
|
2783
2779
|
a?.pending != null && (clearTimeout(a.pending), a.pending = null), a || (a = {
|
|
@@ -2786,18 +2782,18 @@ var Xr = (e, t, n, r) => {
|
|
|
2786
2782
|
willChange: e.style.willChange,
|
|
2787
2783
|
contain: e.style.contain,
|
|
2788
2784
|
pending: null
|
|
2789
|
-
},
|
|
2785
|
+
}, fi.set(e, a)), a.owners.set(r, {
|
|
2790
2786
|
properties: i,
|
|
2791
2787
|
containment: n
|
|
2792
|
-
}), a.settleOwner = null,
|
|
2793
|
-
},
|
|
2794
|
-
let n =
|
|
2788
|
+
}), a.settleOwner = null, gi(e, a);
|
|
2789
|
+
}, vi = (e, t = pi) => {
|
|
2790
|
+
let n = fi.get(e);
|
|
2795
2791
|
if (!(!n || !n.owners.has(t))) {
|
|
2796
2792
|
if (n.owners.delete(t), n.owners.size > 0) {
|
|
2797
|
-
|
|
2793
|
+
gi(e, n);
|
|
2798
2794
|
return;
|
|
2799
2795
|
}
|
|
2800
|
-
if (
|
|
2796
|
+
if (kt() && typeof e.closest == "function" && e.closest("[data-flemo-screen]")) {
|
|
2801
2797
|
n.pending != null && clearTimeout(n.pending), n.pending = null, n.settleOwner = null, e.style.willChange = "transform", n.contain ? e.style.contain = n.contain : e.style.removeProperty("contain");
|
|
2802
2798
|
return;
|
|
2803
2799
|
}
|
|
@@ -2805,20 +2801,20 @@ var Xr = (e, t, n, r) => {
|
|
|
2805
2801
|
guard shields exotic embedders, where an immediate demotion is simply
|
|
2806
2802
|
the pre-hold behavior. */
|
|
2807
2803
|
if (n.settleOwner = t, n.pending != null && clearTimeout(n.pending), typeof setTimeout != "function") {
|
|
2808
|
-
|
|
2804
|
+
mi(e, n), fi.delete(e);
|
|
2809
2805
|
return;
|
|
2810
2806
|
}
|
|
2811
2807
|
yi(e, n);
|
|
2812
2808
|
}
|
|
2813
2809
|
}, yi = (e, t) => {
|
|
2814
2810
|
t.pending = setTimeout(() => {
|
|
2815
|
-
if (t.pending = null,
|
|
2816
|
-
|
|
2817
|
-
|
|
2811
|
+
if (t.pending = null, ir()) {
|
|
2812
|
+
or(() => {
|
|
2813
|
+
fi.get(e) === t && t.owners.size === 0 && t.settleOwner !== null && t.pending === null && yi(e, t);
|
|
2818
2814
|
});
|
|
2819
2815
|
return;
|
|
2820
2816
|
}
|
|
2821
|
-
|
|
2817
|
+
mi(e, t), fi.delete(e);
|
|
2822
2818
|
}, 300);
|
|
2823
2819
|
}, bi = (e, t, n) => {
|
|
2824
2820
|
let r = e.driver;
|
|
@@ -3197,8 +3193,8 @@ var Gi = [
|
|
|
3197
3193
|
strings: s,
|
|
3198
3194
|
constants: c
|
|
3199
3195
|
};
|
|
3200
|
-
}, oa = 1, sa = 1e3 / 60, ca = (e) => !
|
|
3201
|
-
if (!
|
|
3196
|
+
}, oa = 1, sa = 1e3 / 60, ca = (e) => !I() && e > 0 && e < 3, la = .6, ua = 600, da = (e, t) => {
|
|
3197
|
+
if (!it()) return !1;
|
|
3202
3198
|
for (let n of e.transforms) {
|
|
3203
3199
|
if (n.prop !== "x" && n.prop !== "y") continue;
|
|
3204
3200
|
let e = Math.abs(n.to.value - n.from.value);
|
|
@@ -3214,7 +3210,7 @@ var Gi = [
|
|
|
3214
3210
|
if (!d) continue;
|
|
3215
3211
|
let f = d.from.value + (d.to.value - d.from.value) * t;
|
|
3216
3212
|
if (d.from.unit === "%" && (f *= d.percentBase), u === "x" || u === "y") {
|
|
3217
|
-
let e = u === "x" ? r.x : r.y, t =
|
|
3213
|
+
let e = u === "x" ? r.x : r.y, t = Ct(), c = e === null ? Infinity : Math.abs(f - e) * n, p = t === null && r.glide === !0, m = p ? !1 : t === "always" || t === null && ca(n) ? !0 : t === "off" ? !1 : t === "hybrid" ? c >= Tt() : e === null || c * sa / Math.max(1, i) >= oa, h = d.to.value;
|
|
3218
3214
|
d.from.unit === "%" && (h *= d.percentBase);
|
|
3219
3215
|
let g = u === "x" ? "landingX" : "landingY", _ = r[g], v = Math.abs(f - h) * n, y = e === null ? Infinity : Math.abs(f - e) * n, b = !p && n > 0 && (_ != null || y < 1 && v <= fa), x = u === "x" ? "writtenX" : "writtenY", S;
|
|
3220
3216
|
if (b) {
|
|
@@ -3230,7 +3226,7 @@ var Gi = [
|
|
|
3230
3226
|
return !s && c.length === 0 ? "" : l ? "none" : [...s ? [`translate3d(${a}px, ${o}px, 0)`] : [], ...c].join(" ");
|
|
3231
3227
|
}, ma = (e) => e.replace(/-([a-z])/g, (e, t) => t.toUpperCase()), ha = (e) => {
|
|
3232
3228
|
let t = {};
|
|
3233
|
-
for (let n of
|
|
3229
|
+
for (let n of H(e)) t[ma(n.property)] = n.value;
|
|
3234
3230
|
return t;
|
|
3235
3231
|
}, ga = (e, t) => {
|
|
3236
3232
|
if (typeof e.animate != "function") return null;
|
|
@@ -3238,7 +3234,7 @@ var Gi = [
|
|
|
3238
3234
|
let n = e.animate([ha(t.from), ha(t.to)], {
|
|
3239
3235
|
duration: Math.max(0, t.duration * 1e3),
|
|
3240
3236
|
delay: Math.max(0, t.delay * 1e3),
|
|
3241
|
-
easing:
|
|
3237
|
+
easing: bn(t.ease),
|
|
3242
3238
|
fill: "both"
|
|
3243
3239
|
});
|
|
3244
3240
|
return n.pause(), n.currentTime = 0, n;
|
|
@@ -3254,7 +3250,7 @@ var Gi = [
|
|
|
3254
3250
|
}), Ta = ((e = wa()) => {
|
|
3255
3251
|
let t = /* @__PURE__ */ new Map(), n = {
|
|
3256
3252
|
join: (n, r) => {
|
|
3257
|
-
let i =
|
|
3253
|
+
let i = yt() === "scrub", s = !i && !I() && xt() === "on" && r.status !== "PUSHING" && r.status !== "REPLACING", c = i ? null : aa(r.motion, r.element), l = !c || s ? ga(r.element, r.motion) : null, u = l ? null : c;
|
|
3258
3254
|
if (!u && !l) return null;
|
|
3259
3255
|
let d = t.get(n);
|
|
3260
3256
|
d || (d = {
|
|
@@ -3269,7 +3265,7 @@ var Gi = [
|
|
|
3269
3265
|
lastTime: null,
|
|
3270
3266
|
frameHandle: null
|
|
3271
3267
|
}, t.set(n, d));
|
|
3272
|
-
let f =
|
|
3268
|
+
let f = ai(r.motion, r.element, e.devicePixelRatio() || 1), p = {
|
|
3273
3269
|
...r,
|
|
3274
3270
|
onComplete: void 0,
|
|
3275
3271
|
parsed: u,
|
|
@@ -3288,14 +3284,14 @@ var Gi = [
|
|
|
3288
3284
|
};
|
|
3289
3285
|
d.tracks.push(p), d.navCutMs = d.tracks.some((e) => e.cutMs === null) ? null : Math.max(...d.tracks.map((e) => e.cutMs));
|
|
3290
3286
|
let m = Symbol("flemo-player-track");
|
|
3291
|
-
if (
|
|
3292
|
-
u.transforms.length > 0 &&
|
|
3293
|
-
for (let e of u.strings)
|
|
3294
|
-
for (let e of u.constants)
|
|
3287
|
+
if (qn.takeover(p.element), G(p.element, "animation", m), p.element.style.animation = "none", u) {
|
|
3288
|
+
u.transforms.length > 0 && G(p.element, "transform", m), u.opacity && G(p.element, "opacity", m);
|
|
3289
|
+
for (let e of u.strings) G(p.element, e.property, m);
|
|
3290
|
+
for (let e of u.constants) G(p.element, e.property, m);
|
|
3295
3291
|
a(p, 0);
|
|
3296
3292
|
}
|
|
3297
3293
|
return r.role === "active" && (r.onComplete && (d.navComplete = r.onComplete), d.started || (d.started = !0, o(n, d))), () => {
|
|
3298
|
-
p.detached = !0, p.scrub?.cancel(),
|
|
3294
|
+
p.detached = !0, p.scrub?.cancel(), K(p.element, void 0, m);
|
|
3299
3295
|
let r = t.get(n);
|
|
3300
3296
|
r && (r.tracks = r.tracks.filter((e) => e !== p), r.tracks.length === 0 && (r.frameHandle !== null && e.cancel(r.frameHandle), t.delete(n)));
|
|
3301
3297
|
};
|
|
@@ -3310,7 +3306,7 @@ var Gi = [
|
|
|
3310
3306
|
}
|
|
3311
3307
|
}, r = /* @__PURE__ */ new WeakMap(), i = (e) => {
|
|
3312
3308
|
let t = r.get(e);
|
|
3313
|
-
return t || (t =
|
|
3309
|
+
return t || (t = Qr(e.motion.ease), r.set(e, t)), t;
|
|
3314
3310
|
};
|
|
3315
3311
|
function a(t, n, r) {
|
|
3316
3312
|
let { element: i, parsed: a } = t;
|
|
@@ -3340,7 +3336,7 @@ var Gi = [
|
|
|
3340
3336
|
d = o.animate([ha(r.motion.from), ha(r.motion.to)], {
|
|
3341
3337
|
duration: c,
|
|
3342
3338
|
delay: -u,
|
|
3343
|
-
easing:
|
|
3339
|
+
easing: bn(r.motion.ease),
|
|
3344
3340
|
fill: "both"
|
|
3345
3341
|
});
|
|
3346
3342
|
} catch {
|
|
@@ -3357,7 +3353,7 @@ var Gi = [
|
|
|
3357
3353
|
if (n.onFrameGap?.(e), e >= va && e <= ba) {
|
|
3358
3354
|
r.recentGaps.push(e), r.recentGaps.length > 7 && r.recentGaps.shift();
|
|
3359
3355
|
let t = [...r.recentGaps].sort((e, t) => e - t), n = t[Math.floor(t.length / 2)], i = r.recentGaps.length >= 4 && r.recentGaps.every((e) => e >= ya);
|
|
3360
|
-
r.frameIntervalMs = Math.min(i ? ba : sa, Math.max(va, n)), xa = r.frameIntervalMs, n < 12 &&
|
|
3356
|
+
r.frameIntervalMs = Math.min(i ? ba : sa, Math.max(va, n)), xa = r.frameIntervalMs, n < 12 && nt(n, t[t.length - 1]);
|
|
3361
3357
|
}
|
|
3362
3358
|
e > _a * r.frameIntervalMs && (l += e - r.frameIntervalMs);
|
|
3363
3359
|
}
|
|
@@ -3380,7 +3376,7 @@ var Gi = [
|
|
|
3380
3376
|
continue;
|
|
3381
3377
|
}
|
|
3382
3378
|
let i = o + n, a = Math.min(Math.max(0, f), i);
|
|
3383
|
-
if (t.handoff && f >=
|
|
3379
|
+
if (t.handoff && f >= Dt() && f < i && s(e, r, t, a)) {
|
|
3384
3380
|
u = !1;
|
|
3385
3381
|
continue;
|
|
3386
3382
|
}
|
|
@@ -3433,24 +3429,24 @@ var Ea = "data-flemo-skip-animation", $ = () => {}, Da = 400, Oa = 4, ka = 100,
|
|
|
3433
3429
|
}, za = (e, t, n) => {
|
|
3434
3430
|
let r = 0;
|
|
3435
3431
|
for (let e of [`${n}-true`, `${n}-false`]) {
|
|
3436
|
-
if (!
|
|
3437
|
-
let n =
|
|
3432
|
+
if (!W(t, e)) continue;
|
|
3433
|
+
let n = V(t, e);
|
|
3438
3434
|
n && (r = Math.max(r, (n.delay + n.duration) * 1e3));
|
|
3439
3435
|
}
|
|
3440
3436
|
for (let t of Ia(e, n)) {
|
|
3441
|
-
let e =
|
|
3442
|
-
if (!e || !
|
|
3443
|
-
let a =
|
|
3437
|
+
let e = B.get(t.getAttribute(ja)), i = `${n}-${t.getAttribute("data-flemo-active")}`;
|
|
3438
|
+
if (!e || !W(e, i)) continue;
|
|
3439
|
+
let a = V(e, i);
|
|
3444
3440
|
a && (r = Math.max(r, (a.delay + a.duration) * 1e3));
|
|
3445
3441
|
}
|
|
3446
|
-
let i = t.decoratorName ?
|
|
3442
|
+
let i = t.decoratorName ? z.get(t.decoratorName) : void 0;
|
|
3447
3443
|
if (i) for (let e of [`${n}-true`, `${n}-false`]) {
|
|
3448
|
-
if (!
|
|
3449
|
-
let t =
|
|
3444
|
+
if (!W(i, e)) continue;
|
|
3445
|
+
let t = V(i, e);
|
|
3450
3446
|
t && (r = Math.max(r, (t.delay + t.duration) * 1e3));
|
|
3451
3447
|
}
|
|
3452
3448
|
return r;
|
|
3453
|
-
}, Ba = (e) => e === "POPPING" && !
|
|
3449
|
+
}, Ba = (e) => e === "POPPING" && !lt() || e === "PUSHING" && ct() && !lt(), Va = 12, Ha = null, Ua = () => {
|
|
3454
3450
|
Ha = typeof requestAnimationFrame == "function" ? requestAnimationFrame(Ua) : null;
|
|
3455
3451
|
}, Wa = () => (Ha === null && typeof requestAnimationFrame == "function" && (Ha = requestAnimationFrame(Ua)), $), Ga = !1, Ka = 0, qa = () => {
|
|
3456
3452
|
Ga &&= (Ka += 1, !1);
|
|
@@ -3465,42 +3461,42 @@ var Ea = "data-flemo-skip-animation", $ = () => {}, Da = 400, Oa = 4, ka = 100,
|
|
|
3465
3461
|
}
|
|
3466
3462
|
Ga = !1;
|
|
3467
3463
|
let o = [...t].sort((e, t) => e - t), s = o[Math.floor(o.length / 2)];
|
|
3468
|
-
Ca(s),
|
|
3464
|
+
Ca(s), nt(s, o[o.length - 1]);
|
|
3469
3465
|
};
|
|
3470
3466
|
requestAnimationFrame(i);
|
|
3471
3467
|
}, Za = (e, t, n, r) => {
|
|
3472
|
-
let { scope: i, decorator: a, bars: o } = e, s = n.split("-")[0], c = s === "PUSHING" || s === "REPLACING", l =
|
|
3473
|
-
if (
|
|
3474
|
-
|
|
3475
|
-
let e = f(
|
|
3476
|
-
e && (
|
|
3477
|
-
for (let n of o ?? []) n?.getAttribute("data-flemo-bar-riding") === "true" && (
|
|
3468
|
+
let { scope: i, decorator: a, bars: o } = e, s = n.split("-")[0], c = s === "PUSHING" || s === "REPLACING", l = I() && at(), u = !l && I() && typeof navigator < "u" && navigator.maxTouchPoints > 0 && Sa() < Va, d = (l || u) && typeof window < "u" && window.devicePixelRatio || 1, f = (e, t) => e ? l ? li(e, t, d) : u ? di(e, t, d, Sa()) : null : null;
|
|
3469
|
+
if (W(t, n)) {
|
|
3470
|
+
_i(i, t, c, r);
|
|
3471
|
+
let e = f(V(t, n) ?? null, i);
|
|
3472
|
+
e && (G(i, "animation-timing-function", r), i.style.animationTimingFunction = e);
|
|
3473
|
+
for (let n of o ?? []) n?.getAttribute("data-flemo-bar-riding") === "true" && (_i(n, t, c, r), e && (G(n, "animation-timing-function", r), n.style.animationTimingFunction = e));
|
|
3478
3474
|
}
|
|
3479
3475
|
if (a && t.decoratorName) {
|
|
3480
|
-
let e =
|
|
3481
|
-
e &&
|
|
3476
|
+
let e = z.get(t.decoratorName);
|
|
3477
|
+
e && W(e, n) && _i(a, e, c, r);
|
|
3482
3478
|
}
|
|
3483
3479
|
for (let e of Fa(i, n)) {
|
|
3484
|
-
let t =
|
|
3485
|
-
if (t &&
|
|
3486
|
-
|
|
3487
|
-
let i = f(
|
|
3488
|
-
i && (
|
|
3480
|
+
let t = B.get(e.getAttribute(ja));
|
|
3481
|
+
if (t && W(t, n)) {
|
|
3482
|
+
_i(e, t, c, r);
|
|
3483
|
+
let i = f(V(t, n) ?? null, e);
|
|
3484
|
+
i && (G(e, "animation-timing-function", r), e.style.animationTimingFunction = i);
|
|
3489
3485
|
}
|
|
3490
3486
|
}
|
|
3491
3487
|
}, Qa = (e, t) => {
|
|
3492
3488
|
let { scope: n, decorator: r, bars: i } = e;
|
|
3493
3489
|
if (n) {
|
|
3494
|
-
|
|
3495
|
-
for (let e of Pa(n))
|
|
3490
|
+
vi(n, t);
|
|
3491
|
+
for (let e of Pa(n)) vi(e, t);
|
|
3496
3492
|
}
|
|
3497
|
-
r &&
|
|
3498
|
-
for (let e of i ?? []) e &&
|
|
3493
|
+
r && vi(r, t);
|
|
3494
|
+
for (let e of i ?? []) e && vi(e, t);
|
|
3499
3495
|
}, $a = 4, eo = (e) => `${Math.round(e * 1e3) / 1e3}s`, to = (e) => {
|
|
3500
3496
|
let { element: t, expectedName: n, motion: r } = e, i = !1, a = !1, o = (n) => {
|
|
3501
|
-
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" && (
|
|
3497
|
+
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" && (G(t, "animation-delay", e.writer), t.style.animationDelay = eo(n.seconds), a = !0), i = !1;
|
|
3502
3498
|
}, s = (a) => {
|
|
3503
|
-
if (i || a.target !== t || !
|
|
3499
|
+
if (i || a.target !== t || !Dn(a.animationName, n)) return;
|
|
3504
3500
|
if (!e.isLive() || e.budgetUsed() >= $a) {
|
|
3505
3501
|
e.onTerminal();
|
|
3506
3502
|
return;
|
|
@@ -3524,7 +3520,7 @@ var Ea = "data-flemo-skip-animation", $ = () => {}, Da = 400, Oa = 4, ka = 100,
|
|
|
3524
3520
|
t.addEventListener("animationcancel", s);
|
|
3525
3521
|
},
|
|
3526
3522
|
detach: () => {
|
|
3527
|
-
t.removeEventListener("animationcancel", s), a &&= (
|
|
3523
|
+
t.removeEventListener("animationcancel", s), a &&= (K(t, ["animation-delay"], e.writer), !1);
|
|
3528
3524
|
},
|
|
3529
3525
|
fullRestart: () => {
|
|
3530
3526
|
o({ mode: "clear" });
|
|
@@ -3532,7 +3528,7 @@ var Ea = "data-flemo-skip-animation", $ = () => {}, Da = 400, Oa = 4, ka = 100,
|
|
|
3532
3528
|
};
|
|
3533
3529
|
};
|
|
3534
3530
|
function no(e) {
|
|
3535
|
-
|
|
3531
|
+
We();
|
|
3536
3532
|
let t = Symbol("flemo-engine-layer"), n = /* @__PURE__ */ new Map(), r = null, i = null, a = null, o = null, c = null, l = () => {
|
|
3537
3533
|
if (!c) return;
|
|
3538
3534
|
let { land: e, cancel: t } = c;
|
|
@@ -3563,12 +3559,12 @@ function no(e) {
|
|
|
3563
3559
|
if (_) {
|
|
3564
3560
|
let { scope: e, bars: n } = d();
|
|
3565
3561
|
if (e) {
|
|
3566
|
-
|
|
3567
|
-
for (let n of Pa(e))
|
|
3568
|
-
for (let e of n ?? []) e &&
|
|
3562
|
+
$n(e), K(e, ["animation-timing-function", "animation-duration"], t);
|
|
3563
|
+
for (let n of Pa(e)) K(n, ["animation-timing-function", "animation-duration"], t);
|
|
3564
|
+
for (let e of n ?? []) e && K(e, ["animation-timing-function", "animation-duration"], t);
|
|
3569
3565
|
}
|
|
3570
3566
|
}
|
|
3571
|
-
_ && (
|
|
3567
|
+
_ && (Rr(), o &&= (clearTimeout(o), null), a ||= Fr()), !_ && a && !o && (typeof setTimeout == "function" ? o = setTimeout(() => {
|
|
3572
3568
|
o = null, a?.(), a = null;
|
|
3573
3569
|
}, Da) : (a(), a = null));
|
|
3574
3570
|
let v = _ && (h ? m === "PUSHING" || m === "REPLACING" : m === "POPPING"), y = _ && !v;
|
|
@@ -3580,37 +3576,37 @@ function no(e) {
|
|
|
3580
3576
|
let e = r;
|
|
3581
3577
|
r = null, _ ? e() : u(e);
|
|
3582
3578
|
}
|
|
3583
|
-
if (v && !r &&
|
|
3579
|
+
if (v && !r && ut()) {
|
|
3584
3580
|
l();
|
|
3585
3581
|
let { scope: e } = d();
|
|
3586
3582
|
if (e) {
|
|
3587
|
-
|
|
3588
|
-
let t =
|
|
3583
|
+
qn.takeover(e);
|
|
3584
|
+
let t = wr(e), n = Jr(e), i = za(e, Kt(f), m), a = Wi(i + Aa), o = ot() === "on" ? Wr(e, i + Aa) : $, s = rr();
|
|
3589
3585
|
r = () => {
|
|
3590
3586
|
a(), o(), n(), t(), s();
|
|
3591
3587
|
};
|
|
3592
3588
|
}
|
|
3593
3589
|
}
|
|
3594
|
-
if (y && !i &&
|
|
3590
|
+
if (y && !i && ut()) {
|
|
3595
3591
|
l();
|
|
3596
3592
|
let { scope: e } = d();
|
|
3597
|
-
e &&
|
|
3593
|
+
e && ot() === "on" && (i = Wr(e, za(e, Kt(f), m) + Aa, !0));
|
|
3598
3594
|
}
|
|
3599
3595
|
let b = (t, n, r) => {
|
|
3600
3596
|
let i = e.getTransitionTaskId();
|
|
3601
|
-
if (!i || (
|
|
3602
|
-
if (
|
|
3603
|
-
if (
|
|
3604
|
-
if (!
|
|
3605
|
-
if (!
|
|
3597
|
+
if (!i || (ye.pinnedDriver(), I() && s.pendingTaskIds.some((e) => e !== i))) return null;
|
|
3598
|
+
if (I() && ye.pinnedDriver() !== "raf") return Xa(), null;
|
|
3599
|
+
if (_e() || !I() && typeof navigator < "u" && navigator.maxTouchPoints > 0 && Ba(t.split("-")[0])) return null;
|
|
3600
|
+
if (!I() && typeof navigator < "u" && navigator.maxTouchPoints > 0 && He() && (m === "REPLACING" || m === "POPPING" || m === "PUSHING")) return Ue(), null;
|
|
3601
|
+
if (!ye.playerAllowed()) return null;
|
|
3606
3602
|
let { scope: a, decorator: o, bars: c } = d();
|
|
3607
3603
|
if (!a) return null;
|
|
3608
|
-
let l =
|
|
3609
|
-
if (
|
|
3604
|
+
let l = Kt(f);
|
|
3605
|
+
if (ye.pinnedDriver() !== "raf") {
|
|
3610
3606
|
let e = t.split("-")[0];
|
|
3611
3607
|
if (bi(l, e, a) === "native") return null;
|
|
3612
3608
|
}
|
|
3613
|
-
let u =
|
|
3609
|
+
let u = V(l, t);
|
|
3614
3610
|
if (!u) return null;
|
|
3615
3611
|
let p = [], h = Ta.join(i, {
|
|
3616
3612
|
element: a,
|
|
@@ -3632,7 +3628,7 @@ function no(e) {
|
|
|
3632
3628
|
n && p.push(n);
|
|
3633
3629
|
}
|
|
3634
3630
|
if (o && l.decoratorName) {
|
|
3635
|
-
let e =
|
|
3631
|
+
let e = z.get(l.decoratorName), n = e ? V(e, t) : null;
|
|
3636
3632
|
if (n) {
|
|
3637
3633
|
let e = Ta.join(i, {
|
|
3638
3634
|
element: o,
|
|
@@ -3644,7 +3640,7 @@ function no(e) {
|
|
|
3644
3640
|
}
|
|
3645
3641
|
}
|
|
3646
3642
|
for (let e of Fa(a, t)) {
|
|
3647
|
-
let n =
|
|
3643
|
+
let n = B.get(e.getAttribute(ja)), r = n ? V(n, t) : null;
|
|
3648
3644
|
if (!r) continue;
|
|
3649
3645
|
let a = Ta.join(i, {
|
|
3650
3646
|
element: e,
|
|
@@ -3655,7 +3651,7 @@ function no(e) {
|
|
|
3655
3651
|
}
|
|
3656
3652
|
return () => p.forEach((e) => e());
|
|
3657
3653
|
}, x = (e, n) => {
|
|
3658
|
-
let r = [], { decorator: i, bars: a } = d(), o =
|
|
3654
|
+
let r = [], { decorator: i, bars: a } = d(), o = Kt(f), s = (e, n, i) => {
|
|
3659
3655
|
let a = 0, o = to({
|
|
3660
3656
|
element: e,
|
|
3661
3657
|
expectedName: n,
|
|
@@ -3669,15 +3665,15 @@ function no(e) {
|
|
|
3669
3665
|
onTerminal: $
|
|
3670
3666
|
});
|
|
3671
3667
|
o.attach(), r.push(o.detach);
|
|
3672
|
-
}, c =
|
|
3668
|
+
}, c = Tn("screen", f, n), l = V(o, n);
|
|
3673
3669
|
if (l) for (let e of a ?? []) !e || e.getAttribute("data-flemo-bar-riding") !== "true" || s(e, c, l);
|
|
3674
3670
|
if (i && o.decoratorName) {
|
|
3675
|
-
let e =
|
|
3676
|
-
t && s(i,
|
|
3671
|
+
let e = z.get(o.decoratorName), t = e ? V(e, n) : null;
|
|
3672
|
+
t && s(i, Tn("decorator", o.decoratorName, n), t);
|
|
3677
3673
|
}
|
|
3678
3674
|
for (let t of Fa(e, n)) {
|
|
3679
|
-
let e = t.getAttribute(ja), r =
|
|
3680
|
-
i && s(t,
|
|
3675
|
+
let e = t.getAttribute(ja), r = B.get(e), i = r ? V(r, n) : null;
|
|
3676
|
+
i && s(t, Tn("part", e, n), i);
|
|
3681
3677
|
}
|
|
3682
3678
|
return r;
|
|
3683
3679
|
};
|
|
@@ -3685,11 +3681,11 @@ function no(e) {
|
|
|
3685
3681
|
if (m === "COMPLETED") {
|
|
3686
3682
|
let { scope: e, decorator: n, bars: r } = d();
|
|
3687
3683
|
if (e) {
|
|
3688
|
-
|
|
3689
|
-
for (let t of Pa(e))
|
|
3684
|
+
K(e);
|
|
3685
|
+
for (let t of Pa(e)) K(t);
|
|
3690
3686
|
}
|
|
3691
|
-
n &&
|
|
3692
|
-
for (let e of r ?? []) e &&
|
|
3687
|
+
n && K(n);
|
|
3688
|
+
for (let e of r ?? []) e && K(e, void 0, t);
|
|
3693
3689
|
return Qa({
|
|
3694
3690
|
scope: e,
|
|
3695
3691
|
decorator: n,
|
|
@@ -3702,18 +3698,18 @@ function no(e) {
|
|
|
3702
3698
|
scope: e,
|
|
3703
3699
|
decorator: n,
|
|
3704
3700
|
bars: r ?? []
|
|
3705
|
-
},
|
|
3701
|
+
}, Kt(f), `${m}-false`, t);
|
|
3706
3702
|
}
|
|
3707
3703
|
if (_ && g) {
|
|
3708
3704
|
let e = `${m}-false`, n = b(e, "passive");
|
|
3709
3705
|
if (n) return n;
|
|
3710
3706
|
let { scope: r } = d();
|
|
3711
3707
|
if (r) {
|
|
3712
|
-
let n =
|
|
3713
|
-
if (
|
|
3714
|
-
let a =
|
|
3708
|
+
let n = Kt(f), i = [];
|
|
3709
|
+
if (W(n, e)) {
|
|
3710
|
+
let a = V(n, e), o = 0, s = to({
|
|
3715
3711
|
element: r,
|
|
3716
|
-
expectedName:
|
|
3712
|
+
expectedName: Tn("screen", f, e),
|
|
3717
3713
|
motion: a,
|
|
3718
3714
|
writer: t,
|
|
3719
3715
|
isLive: () => r.isConnected && r.getAttribute("data-flemo-skip-animation") !== "true",
|
|
@@ -3734,11 +3730,11 @@ function no(e) {
|
|
|
3734
3730
|
qa(), e.setDragStatus("IDLE"), e.setReplaceTransitionStatus("IDLE");
|
|
3735
3731
|
let { scope: n, decorator: r, bars: i } = d();
|
|
3736
3732
|
if (n) {
|
|
3737
|
-
|
|
3738
|
-
for (let e of Pa(n))
|
|
3733
|
+
K(n), K(n, ["transform", "opacity"]), n.removeAttribute(Ea);
|
|
3734
|
+
for (let e of Pa(n)) K(e);
|
|
3739
3735
|
}
|
|
3740
|
-
r && (
|
|
3741
|
-
for (let e of i ?? []) e &&
|
|
3736
|
+
r && (K(r), r.removeAttribute(Ea));
|
|
3737
|
+
for (let e of i ?? []) e && K(e, void 0, t);
|
|
3742
3738
|
return Qa({
|
|
3743
3739
|
scope: n,
|
|
3744
3740
|
decorator: r,
|
|
@@ -3750,7 +3746,7 @@ function no(e) {
|
|
|
3750
3746
|
if (!S) return $;
|
|
3751
3747
|
let C = e.getTransitionTaskId(), w = $, T = () => {
|
|
3752
3748
|
w(), C && (s.resolveTask(C), n.delete(C));
|
|
3753
|
-
}, E =
|
|
3749
|
+
}, E = Kt(f), D = `${m}-true`, O = S.getAttribute(Ea) === "true", k = !O && W(E, D);
|
|
3754
3750
|
if (!O) {
|
|
3755
3751
|
let { decorator: e, bars: n } = d();
|
|
3756
3752
|
Za({
|
|
@@ -3759,10 +3755,10 @@ function no(e) {
|
|
|
3759
3755
|
bars: n ?? []
|
|
3760
3756
|
}, E, D, t);
|
|
3761
3757
|
}
|
|
3762
|
-
k &&
|
|
3763
|
-
let A = `${m}-false`, j =
|
|
3758
|
+
k && I() && (typeof navigator < "u" && navigator.maxTouchPoints === 0 || Sa() < Va) && (w = Wa());
|
|
3759
|
+
let A = `${m}-false`, j = W(E, A) ? V(E, A) : null, ee = [];
|
|
3764
3760
|
for (let e of Ia(S, m)) {
|
|
3765
|
-
let t =
|
|
3761
|
+
let t = B.get(e.getAttribute(ja)), n = `${m}-${e.getAttribute("data-flemo-active")}`, r = t && W(t, n) ? V(t, n) : null;
|
|
3766
3762
|
r && ee.push({
|
|
3767
3763
|
element: e,
|
|
3768
3764
|
motion: r
|
|
@@ -3770,13 +3766,13 @@ function no(e) {
|
|
|
3770
3766
|
}
|
|
3771
3767
|
let M = j ? (j.delay + j.duration) * 1e3 : 0;
|
|
3772
3768
|
for (let { motion: e } of ee) M = Math.max(M, (e.delay + e.duration) * 1e3);
|
|
3773
|
-
let
|
|
3769
|
+
let N = [];
|
|
3774
3770
|
{
|
|
3775
|
-
let e = E.decoratorName ?
|
|
3771
|
+
let e = E.decoratorName ? z.get(E.decoratorName) : void 0;
|
|
3776
3772
|
if (e) for (let t of [`${m}-true`, `${m}-false`]) {
|
|
3777
|
-
if (!
|
|
3778
|
-
let n =
|
|
3779
|
-
n && (
|
|
3773
|
+
if (!W(e, t)) continue;
|
|
3774
|
+
let n = V(e, t);
|
|
3775
|
+
n && (N.push(n), M = Math.max(M, (n.delay + n.duration) * 1e3));
|
|
3780
3776
|
}
|
|
3781
3777
|
}
|
|
3782
3778
|
if (!k) {
|
|
@@ -3789,88 +3785,88 @@ function no(e) {
|
|
|
3789
3785
|
}
|
|
3790
3786
|
return queueMicrotask(T), $;
|
|
3791
3787
|
}
|
|
3792
|
-
let
|
|
3788
|
+
let P = V(E, D);
|
|
3793
3789
|
if (C) if (g) {
|
|
3794
|
-
let e = (
|
|
3790
|
+
let e = (P.delay + P.duration) * 1e3;
|
|
3795
3791
|
s.anchorGate(C, Math.max(e, M) + Aa);
|
|
3796
3792
|
} else s.markGateHeld(C);
|
|
3797
|
-
let
|
|
3798
|
-
|
|
3799
|
-
let
|
|
3793
|
+
let te = !O && !!P, ne = E.driver === "native" && !I(), re = !I() && typeof navigator < "u" && navigator.maxTouchPoints > 0 && He(), ie = I() && typeof navigator < "u" && navigator.maxTouchPoints > 0 && ge(), ae = !I() && typeof navigator < "u" && navigator.maxTouchPoints > 0 && Ba(m), oe = re || ie || ae, se = _e() && mt(), ce = null;
|
|
3794
|
+
te && !I() && !ne && !re && !ae && !se && (ce = Fi(S, () => [S.ownerDocument.documentElement], () => Ma.get(S)?.(), !1));
|
|
3795
|
+
let le = oe ? Fn[m] ?? 0 : se ? Pn[m] ?? 0 : 0, ue = re && (m === "PUSHING" || m === "POPPING");
|
|
3800
3796
|
{
|
|
3801
3797
|
let e = S.ownerDocument.documentElement;
|
|
3802
|
-
|
|
3798
|
+
oe && ft() ? e.setAttribute("data-flemo-creep", "true") : e.removeAttribute("data-flemo-creep"), oe ? e.setAttribute("data-flemo-lpm", "true") : e.removeAttribute("data-flemo-lpm"), se ? e.setAttribute("data-flemo-desk-head", "true") : e.removeAttribute("data-flemo-desk-head");
|
|
3803
3799
|
}
|
|
3804
|
-
let
|
|
3805
|
-
|
|
3806
|
-
let
|
|
3807
|
-
|
|
3808
|
-
},
|
|
3809
|
-
|
|
3810
|
-
},
|
|
3800
|
+
let de = null;
|
|
3801
|
+
te && ne && (de = Oi(S, () => [S.ownerDocument.documentElement], () => Ma.get(S)?.()));
|
|
3802
|
+
let fe = Tn("screen", f, D), pe, F = () => {
|
|
3803
|
+
pe !== void 0 && (clearTimeout(pe), pe = void 0);
|
|
3804
|
+
}, me = 0, he, ve = [], be, xe = () => {
|
|
3805
|
+
ve.forEach((e) => cancelAnimationFrame(e)), ve = [], be !== void 0 && clearTimeout(be), be = void 0;
|
|
3806
|
+
}, Se = () => {
|
|
3811
3807
|
/* v8 ignore next 4 -- every runtime under test has rAF; the guard
|
|
3812
3808
|
shields exotic embedders. */
|
|
3813
3809
|
if (typeof requestAnimationFrame != "function") {
|
|
3814
3810
|
T();
|
|
3815
3811
|
return;
|
|
3816
3812
|
}
|
|
3817
|
-
|
|
3818
|
-
|
|
3813
|
+
be = setTimeout(() => {
|
|
3814
|
+
xe(), T();
|
|
3819
3815
|
}, ka);
|
|
3820
3816
|
let e = (t) => {
|
|
3821
3817
|
if (t <= 0) {
|
|
3822
|
-
|
|
3818
|
+
xe(), T();
|
|
3823
3819
|
return;
|
|
3824
3820
|
}
|
|
3825
|
-
|
|
3821
|
+
ve.push(requestAnimationFrame(() => e(t - 1)));
|
|
3826
3822
|
};
|
|
3827
3823
|
e(Oa);
|
|
3828
|
-
},
|
|
3829
|
-
if (
|
|
3830
|
-
|
|
3824
|
+
}, Ce = () => {
|
|
3825
|
+
if (me <= 0) {
|
|
3826
|
+
Se();
|
|
3831
3827
|
return;
|
|
3832
3828
|
}
|
|
3833
|
-
|
|
3834
|
-
},
|
|
3835
|
-
e.target === S &&
|
|
3829
|
+
he = setTimeout(Se, me);
|
|
3830
|
+
}, we = $, Te = $, Ee = (e) => {
|
|
3831
|
+
e.target === S && Dn(e.animationName, fe) && (S.removeEventListener("animationend", Ee), F(), we(), Ce());
|
|
3836
3832
|
};
|
|
3837
|
-
S.addEventListener("animationend",
|
|
3838
|
-
let
|
|
3839
|
-
|
|
3840
|
-
let
|
|
3833
|
+
S.addEventListener("animationend", Ee);
|
|
3834
|
+
let De = te && g ? b(D, "active", Se) : null, Oe = (P.delay + P.duration) * 1e3, ke = Math.max(Oe, M) + 1500, Ae = C ? setTimeout(() => void s.resolveTask(C), ke) : void 0;
|
|
3835
|
+
me = Math.max(0, M - Oe);
|
|
3836
|
+
let je = Oe * 1 + le + 250, Me = () => C !== null && e.getTransitionTaskId() === C && S.isConnected && S.getAttribute("data-flemo-skip-animation") !== "true" && W(E, D), Ne = to({
|
|
3841
3837
|
element: S,
|
|
3842
|
-
expectedName:
|
|
3843
|
-
motion:
|
|
3838
|
+
expectedName: fe,
|
|
3839
|
+
motion: P,
|
|
3844
3840
|
writer: t,
|
|
3845
|
-
isLive:
|
|
3841
|
+
isLive: Me,
|
|
3846
3842
|
budgetUsed: () => n.get(C) ?? 0,
|
|
3847
3843
|
spendBudget: () => {
|
|
3848
|
-
|
|
3844
|
+
Te(), n.set(C, (n.get(C) ?? 0) + 1);
|
|
3849
3845
|
},
|
|
3850
3846
|
onTerminal: T
|
|
3851
3847
|
});
|
|
3852
|
-
|
|
3853
|
-
let
|
|
3854
|
-
|
|
3855
|
-
},
|
|
3856
|
-
if (
|
|
3857
|
-
|
|
3848
|
+
we = Ne.detach;
|
|
3849
|
+
let Pe = !1, Fe = () => {
|
|
3850
|
+
F(), pe = setTimeout(Ie, je);
|
|
3851
|
+
}, Ie = () => {
|
|
3852
|
+
if (F(), Me() && !Pe) {
|
|
3853
|
+
Pe = !0, Te(), Ne.fullRestart(), Fe();
|
|
3858
3854
|
return;
|
|
3859
3855
|
}
|
|
3860
3856
|
T();
|
|
3861
|
-
},
|
|
3862
|
-
|
|
3863
|
-
|
|
3857
|
+
}, L = !De && g, Le = L ? x(S, D) : [];
|
|
3858
|
+
L && (Ne.attach(), C && Fe()), L && (ne || re) && Ma.set(S, () => {
|
|
3859
|
+
Te(), C && pe !== void 0 && Fe();
|
|
3864
3860
|
});
|
|
3865
|
-
let
|
|
3866
|
-
|
|
3867
|
-
}) : null,
|
|
3868
|
-
|
|
3861
|
+
let Re = L && ne ? Ni(() => [S.ownerDocument.documentElement], () => {
|
|
3862
|
+
Te(), C && pe !== void 0 && Fe();
|
|
3863
|
+
}) : null, ze, Be = () => {
|
|
3864
|
+
ze !== void 0 && (clearTimeout(ze), ze = void 0);
|
|
3869
3865
|
};
|
|
3870
|
-
if (
|
|
3871
|
-
let e = typeof window < "u" && window.devicePixelRatio || 1, t =
|
|
3866
|
+
if (Te = Be, L && C && !ue && !ae) {
|
|
3867
|
+
let e = typeof window < "u" && window.devicePixelRatio || 1, t = ai(P, S, e), n = j ? ai(j, S, e) : 0, r = 0;
|
|
3872
3868
|
for (let { element: t, motion: n } of ee) {
|
|
3873
|
-
let i =
|
|
3869
|
+
let i = ai(n, t, e);
|
|
3874
3870
|
if (i === null) {
|
|
3875
3871
|
r = null;
|
|
3876
3872
|
break;
|
|
@@ -3878,10 +3874,10 @@ function no(e) {
|
|
|
3878
3874
|
r = Math.max(r, i);
|
|
3879
3875
|
}
|
|
3880
3876
|
let i = 0;
|
|
3881
|
-
if (
|
|
3877
|
+
if (N.length > 0) {
|
|
3882
3878
|
let t = d().decorator;
|
|
3883
|
-
if (t) for (let n of
|
|
3884
|
-
let r =
|
|
3879
|
+
if (t) for (let n of N) {
|
|
3880
|
+
let r = ai(n, t, e);
|
|
3885
3881
|
if (r === null) {
|
|
3886
3882
|
i = null;
|
|
3887
3883
|
break;
|
|
@@ -3890,16 +3886,16 @@ function no(e) {
|
|
|
3890
3886
|
}
|
|
3891
3887
|
}
|
|
3892
3888
|
let a = t !== null && n !== null && r !== null && i !== null ? Math.max(t, n, r, i) : null;
|
|
3893
|
-
a !== null && a + 17 <
|
|
3894
|
-
|
|
3895
|
-
}, a * 1 + 17 +
|
|
3889
|
+
a !== null && a + 17 < Oe + me && (ze = setTimeout(() => {
|
|
3890
|
+
ze = void 0, Me() && (S.removeEventListener("animationend", Ee), F(), we(), Se());
|
|
3891
|
+
}, a * 1 + 17 + le));
|
|
3896
3892
|
}
|
|
3897
3893
|
return () => {
|
|
3898
|
-
if (w(),
|
|
3899
|
-
|
|
3900
|
-
for (let e of
|
|
3894
|
+
if (w(), Ae !== void 0 && clearTimeout(Ae), he !== void 0 && clearTimeout(he), xe(), de?.(), ce?.(), Re?.(), Be(), S.removeEventListener("animationend", Ee), L) {
|
|
3895
|
+
Ne.detach();
|
|
3896
|
+
for (let e of Le) e();
|
|
3901
3897
|
}
|
|
3902
|
-
|
|
3898
|
+
F(), De?.(), C && e.getTransitionTaskId() !== C && n.delete(C);
|
|
3903
3899
|
};
|
|
3904
3900
|
},
|
|
3905
3901
|
activeResumeEntryCount: () => n.size
|
|
@@ -4015,12 +4011,19 @@ function uo(e) {
|
|
|
4015
4011
|
y: e.clientY
|
|
4016
4012
|
}, m = t, x = Math.max(x, Math.abs(e.clientX - f.x), Math.abs(e.clientY - f.y));
|
|
4017
4013
|
}, w = (r, a, o) => {
|
|
4018
|
-
let s =
|
|
4019
|
-
if (r === e.getElements().scope) for (let e of i.current)
|
|
4020
|
-
else if (r === n) for (let e of i.prev)
|
|
4014
|
+
let s = Qn(r, a, o, t);
|
|
4015
|
+
if (r === e.getElements().scope) for (let e of i.current) Qn(e, a, o, t);
|
|
4016
|
+
else if (r === n) for (let e of i.prev) Qn(e, a, o, t);
|
|
4021
4017
|
return s;
|
|
4022
|
-
}, T = (
|
|
4023
|
-
|
|
4018
|
+
}, T = (e, t) => {
|
|
4019
|
+
if (!e) return null;
|
|
4020
|
+
for (let n of Array.from(e.children)) {
|
|
4021
|
+
let e = n;
|
|
4022
|
+
if (typeof e.matches == "function" && e.matches(t)) return e;
|
|
4023
|
+
}
|
|
4024
|
+
return null;
|
|
4025
|
+
}, E = (n) => {
|
|
4026
|
+
let r = e.getPartnerBars(), a = e.getPartnerBarMetadata?.(), o = T(n, "[data-flemo-bar=\"app\"]"), s = T(n, "[data-flemo-bar=\"nav\"]"), c = (e) => {
|
|
4024
4027
|
if (!e) return;
|
|
4025
4028
|
let t = e.getAttribute("data-flemo-bar-id");
|
|
4026
4029
|
return t === null ? {} : { id: e.getAttribute("data-flemo-bar-id-type") === "number" ? Number(t) : t };
|
|
@@ -4031,27 +4034,33 @@ function uo(e) {
|
|
|
4031
4034
|
current: p,
|
|
4032
4035
|
prev: g
|
|
4033
4036
|
};
|
|
4034
|
-
for (let n of p)
|
|
4035
|
-
for (let n of g)
|
|
4036
|
-
},
|
|
4037
|
-
for (let e of i.current)
|
|
4038
|
-
for (let e of i.prev)
|
|
4037
|
+
for (let n of p) _i(n, e.getTransition(), !1, t);
|
|
4038
|
+
for (let n of g) _i(n, e.getTransition(), !1, t);
|
|
4039
|
+
}, D = () => {
|
|
4040
|
+
for (let e of i.current) K(e, void 0, t), vi(e, t);
|
|
4041
|
+
for (let e of i.prev) K(e, void 0, t), vi(e, t);
|
|
4039
4042
|
i = {
|
|
4040
4043
|
current: [],
|
|
4041
4044
|
prev: []
|
|
4042
4045
|
};
|
|
4043
|
-
},
|
|
4044
|
-
let { screenContainer: n } = e.getElements(), r = (e) =>
|
|
4046
|
+
}, O = (t) => {
|
|
4047
|
+
let { screenContainer: n } = e.getElements(), r = (e) => {
|
|
4048
|
+
let t = T(e, "[data-flemo-screen]");
|
|
4049
|
+
return Array.from(e.querySelectorAll("[data-flemo-part-name]")).filter((e) => {
|
|
4050
|
+
let n = e.closest("[data-flemo-screen]");
|
|
4051
|
+
return n === null || n === t;
|
|
4052
|
+
});
|
|
4053
|
+
};
|
|
4045
4054
|
a = {
|
|
4046
4055
|
current: r(n),
|
|
4047
4056
|
prev: r(t)
|
|
4048
4057
|
};
|
|
4049
|
-
},
|
|
4058
|
+
}, k = (e, n, r) => {
|
|
4050
4059
|
let i = (i, a) => {
|
|
4051
|
-
let o =
|
|
4060
|
+
let o = B.get(i.getAttribute("data-flemo-part-name"));
|
|
4052
4061
|
if (!o) return;
|
|
4053
4062
|
let s = {
|
|
4054
|
-
animate: (e, n, r) =>
|
|
4063
|
+
animate: (e, n, r) => Qn(e, n, r, t),
|
|
4055
4064
|
element: i,
|
|
4056
4065
|
active: a
|
|
4057
4066
|
};
|
|
@@ -4059,13 +4068,13 @@ function uo(e) {
|
|
|
4059
4068
|
};
|
|
4060
4069
|
for (let e of a.current) i(e, !0);
|
|
4061
4070
|
for (let e of a.prev) i(e, !1);
|
|
4062
|
-
},
|
|
4063
|
-
for (let e of [...a.current, ...a.prev])
|
|
4071
|
+
}, A = () => {
|
|
4072
|
+
for (let e of [...a.current, ...a.prev]) K(e, void 0, t);
|
|
4064
4073
|
a = {
|
|
4065
4074
|
current: [],
|
|
4066
4075
|
prev: []
|
|
4067
4076
|
};
|
|
4068
|
-
},
|
|
4077
|
+
}, j = async (t) => {
|
|
4069
4078
|
let i = e.getTransition();
|
|
4070
4079
|
if (!i.swipeDirection || e.getViewportScrollHeight() > 10) {
|
|
4071
4080
|
s = !1;
|
|
@@ -4077,7 +4086,7 @@ function uo(e) {
|
|
|
4077
4086
|
return;
|
|
4078
4087
|
}
|
|
4079
4088
|
let u = o?.previousElementSibling ?? null;
|
|
4080
|
-
if (n = u
|
|
4089
|
+
if (n = T(u, "[data-flemo-screen]"), r = T(u, "[data-flemo-decorator]"), !n) {
|
|
4081
4090
|
s = !1;
|
|
4082
4091
|
return;
|
|
4083
4092
|
}
|
|
@@ -4090,26 +4099,26 @@ function uo(e) {
|
|
|
4090
4099
|
}, m = t.timeStamp, h = {
|
|
4091
4100
|
x: 0,
|
|
4092
4101
|
y: 0
|
|
4093
|
-
}, a.setPointerCapture(t.pointerId),
|
|
4102
|
+
}, a.setPointerCapture(t.pointerId), E(u), O(u);
|
|
4094
4103
|
let g = e.getDecorator(), _ = await i.onSwipeStart(t, b(t), {
|
|
4095
4104
|
animate: w,
|
|
4096
4105
|
currentScreen: a,
|
|
4097
4106
|
prevScreen: n,
|
|
4098
4107
|
onStart: (e) => {
|
|
4099
4108
|
g?.onSwipeStart?.(e, {
|
|
4100
|
-
animate:
|
|
4109
|
+
animate: Qn,
|
|
4101
4110
|
currentDecorator: l,
|
|
4102
4111
|
prevDecorator: r
|
|
4103
|
-
}),
|
|
4112
|
+
}), k("start", e, 0);
|
|
4104
4113
|
}
|
|
4105
4114
|
});
|
|
4106
|
-
_ && !d ? e.setDragStatus("PENDING") : _ || (e.setDragStatus("IDLE"), c = !1, s = !1, S(t),
|
|
4107
|
-
},
|
|
4108
|
-
let t =
|
|
4115
|
+
_ && !d ? e.setDragStatus("PENDING") : _ || (e.setDragStatus("IDLE"), c = !1, s = !1, S(t), D(), A());
|
|
4116
|
+
}, ee = (e) => {
|
|
4117
|
+
let t = j(e);
|
|
4109
4118
|
u = t, t.finally(() => {
|
|
4110
4119
|
u = null;
|
|
4111
4120
|
});
|
|
4112
|
-
},
|
|
4121
|
+
}, M = (t) => {
|
|
4113
4122
|
let i = e.getTransition();
|
|
4114
4123
|
if (!i.swipeDirection || !c || u || e.getViewportScrollHeight() > 10) return;
|
|
4115
4124
|
C(t);
|
|
@@ -4120,13 +4129,13 @@ function uo(e) {
|
|
|
4120
4129
|
prevScreen: n,
|
|
4121
4130
|
onProgress: (e, t) => {
|
|
4122
4131
|
s?.onSwipe?.(e, t, {
|
|
4123
|
-
animate:
|
|
4132
|
+
animate: Qn,
|
|
4124
4133
|
currentDecorator: o,
|
|
4125
4134
|
prevDecorator: r
|
|
4126
|
-
}),
|
|
4135
|
+
}), k("swipe", e, t);
|
|
4127
4136
|
}
|
|
4128
4137
|
});
|
|
4129
|
-
},
|
|
4138
|
+
}, N = async (o, s = !1) => {
|
|
4130
4139
|
u && await u;
|
|
4131
4140
|
let l = e.getTransition();
|
|
4132
4141
|
if (!l.swipeDirection || !c) return;
|
|
@@ -4160,16 +4169,16 @@ function uo(e) {
|
|
|
4160
4169
|
onStart: (e) => {
|
|
4161
4170
|
let t = !s && e;
|
|
4162
4171
|
p?.onSwipeEnd?.(t, {
|
|
4163
|
-
animate:
|
|
4172
|
+
animate: Qn,
|
|
4164
4173
|
currentDecorator: f,
|
|
4165
4174
|
prevDecorator: r
|
|
4166
|
-
}),
|
|
4175
|
+
}), k("end", t, 0);
|
|
4167
4176
|
}
|
|
4168
4177
|
});
|
|
4169
4178
|
if (!s && g) {
|
|
4170
4179
|
d?.setAttribute(lo, "true"), f?.setAttribute(lo, "true");
|
|
4171
|
-
for (let e of i.current)
|
|
4172
|
-
for (let e of i.prev)
|
|
4180
|
+
for (let e of i.current) vi(e, t);
|
|
4181
|
+
for (let e of i.prev) K(e, void 0, t), vi(e, t);
|
|
4173
4182
|
i = {
|
|
4174
4183
|
current: [],
|
|
4175
4184
|
prev: []
|
|
@@ -4177,7 +4186,7 @@ function uo(e) {
|
|
|
4177
4186
|
current: [],
|
|
4178
4187
|
prev: []
|
|
4179
4188
|
}, e.back();
|
|
4180
|
-
} else d &&
|
|
4189
|
+
} else d && K(d, void 0, t), n && K(n, void 0, t), f && K(f), r && K(r), D(), A(), e.setDragStatus("IDLE");
|
|
4181
4190
|
};
|
|
4182
4191
|
return {
|
|
4183
4192
|
pointerDown: (t) => {
|
|
@@ -4192,7 +4201,7 @@ function uo(e) {
|
|
|
4192
4201
|
pointerMove: (t) => {
|
|
4193
4202
|
if (t.pointerId !== l || e.getViewportScrollHeight() > 10) return;
|
|
4194
4203
|
if (c) {
|
|
4195
|
-
|
|
4204
|
+
M(t);
|
|
4196
4205
|
return;
|
|
4197
4206
|
}
|
|
4198
4207
|
if (!o) return;
|
|
@@ -4206,17 +4215,17 @@ function uo(e) {
|
|
|
4206
4215
|
return;
|
|
4207
4216
|
}
|
|
4208
4217
|
let r = !g.element && !_.element, i = t.clientX - v, a = t.clientY - y, u = n === "x" ? i : a, d = n === "x" ? a : i;
|
|
4209
|
-
if (!(Math.max(Math.abs(u), Math.abs(d)) < 8) && (o = !1, !(u <= 0 || Math.abs(u) <= Math.abs(d) * 3))) if (r) s = !0,
|
|
4218
|
+
if (!(Math.max(Math.abs(u), Math.abs(d)) < 8) && (o = !1, !(u <= 0 || Math.abs(u) <= Math.abs(d) * 3))) if (r) s = !0, ee(t);
|
|
4210
4219
|
else {
|
|
4211
4220
|
let e = _.element && _.element.scrollTop <= 0, r = g.element && g.element.scrollLeft <= 0 && g.hasMarker;
|
|
4212
|
-
(n === "y" && (e || g.element) || n === "x" && (r || _.element)) && (s = !0,
|
|
4221
|
+
(n === "y" && (e || g.element) || n === "x" && (r || _.element)) && (s = !0, ee(t));
|
|
4213
4222
|
}
|
|
4214
4223
|
},
|
|
4215
4224
|
pointerUp: (e) => {
|
|
4216
|
-
e.pointerId === l && (o = !1, s = !1, l = null, c &&
|
|
4225
|
+
e.pointerId === l && (o = !1, s = !1, l = null, c && N(e));
|
|
4217
4226
|
},
|
|
4218
4227
|
pointerCancel: (e) => {
|
|
4219
|
-
e.pointerId === l && (o = !1, s = !1, l = null, d = !0, c &&
|
|
4228
|
+
e.pointerId === l && (o = !1, s = !1, l = null, d = !0, c && N(e, !0));
|
|
4220
4229
|
},
|
|
4221
4230
|
shouldPreventTouch: () => s
|
|
4222
4231
|
};
|
|
@@ -4467,30 +4476,31 @@ function jo(e, t) {
|
|
|
4467
4476
|
}
|
|
4468
4477
|
//#endregion
|
|
4469
4478
|
//#region src/screen/observeViewportScrollHeight.ts
|
|
4470
|
-
var Mo = 0
|
|
4471
|
-
|
|
4472
|
-
|
|
4473
|
-
|
|
4474
|
-
|
|
4475
|
-
|
|
4476
|
-
|
|
4477
|
-
|
|
4478
|
-
|
|
4479
|
-
|
|
4480
|
-
|
|
4481
|
-
|
|
4479
|
+
var Mo = 0, No = 0, Po = 0, Fo = !1, Io = /* @__PURE__ */ new Set(), Lo = 0, Ro = () => {
|
|
4480
|
+
let e = document.documentElement.scrollHeight - (window.visualViewport?.height || 0);
|
|
4481
|
+
e = e < 0 ? 0 : e;
|
|
4482
|
+
let t = e - Mo;
|
|
4483
|
+
t = t < 0 ? 0 : t, Mo ||= e, No = e, Po = t, Fo = !0;
|
|
4484
|
+
for (let n of [...Io]) n(e, t);
|
|
4485
|
+
}, zo = () => {
|
|
4486
|
+
cancelAnimationFrame(Lo), Lo = requestAnimationFrame(Ro);
|
|
4487
|
+
};
|
|
4488
|
+
function Bo(e) {
|
|
4489
|
+
let t = Io.size === 0;
|
|
4490
|
+
return Io.add(e), t && (window.visualViewport?.addEventListener("resize", zo), window.visualViewport?.addEventListener("scroll", zo)), Fo && (e(No, Po), t && zo()), () => {
|
|
4491
|
+
Io.delete(e), !(Io.size > 0) && (cancelAnimationFrame(Lo), window.visualViewport?.removeEventListener("resize", zo), window.visualViewport?.removeEventListener("scroll", zo));
|
|
4482
4492
|
};
|
|
4483
4493
|
}
|
|
4484
4494
|
//#endregion
|
|
4485
4495
|
//#region src/core/engine/gpuPipelinePrewarm.ts
|
|
4486
|
-
var
|
|
4487
|
-
function
|
|
4488
|
-
if (typeof document > "u" || !document.body || typeof Element > "u" || typeof Element.prototype.animate != "function" || !
|
|
4489
|
-
if (
|
|
4490
|
-
|
|
4496
|
+
var Vo = () => {}, Ho = "data-flemo-gpu-prewarm", Uo = 2e3, Wo = 1200, Go = 120, Ko = 3, qo = "position:fixed;top:0;left:0;pointer-events:none;opacity:0.02;", Jo = "width:64px;height:64px;background:#888;color:#000;font-size:10px;will-change:transform;transform:translate3d(1px,0,0);", Yo = "width:64px;height:64px;background:#000;will-change:opacity;opacity:0.5;", Xo = "cold", Zo = 0, Qo = null;
|
|
4497
|
+
function $o() {
|
|
4498
|
+
if (typeof document > "u" || !document.body || typeof Element > "u" || typeof Element.prototype.animate != "function" || !I()) return Vo;
|
|
4499
|
+
if (Zo += 1, Xo === "cold") {
|
|
4500
|
+
Xo = "scheduled";
|
|
4491
4501
|
let e = () => document.querySelector("[data-flemo-status=\"PUSHING\"],[data-flemo-status=\"POPPING\"],[data-flemo-status=\"REPLACING\"]") !== null, t = () => {
|
|
4492
|
-
let e = typeof requestIdleCallback == "function" ? requestIdleCallback(n, { timeout:
|
|
4493
|
-
|
|
4502
|
+
let e = typeof requestIdleCallback == "function" ? requestIdleCallback(n, { timeout: Uo }) : null, t = e === null ? setTimeout(n, Wo) : null;
|
|
4503
|
+
Qo = () => {
|
|
4494
4504
|
e !== null && typeof cancelIdleCallback == "function" && cancelIdleCallback(e), t !== null && clearTimeout(t);
|
|
4495
4505
|
};
|
|
4496
4506
|
}, n = () => {
|
|
@@ -4498,13 +4508,13 @@ function Ko() {
|
|
|
4498
4508
|
t();
|
|
4499
4509
|
return;
|
|
4500
4510
|
}
|
|
4501
|
-
|
|
4511
|
+
Qo = null, Xo = "done";
|
|
4502
4512
|
let n = document.createElement("div");
|
|
4503
|
-
n.setAttribute(
|
|
4513
|
+
n.setAttribute(Ho, ""), n.setAttribute("aria-hidden", "true"), n.setAttribute("style", qo);
|
|
4504
4514
|
let r = document.createElement("div");
|
|
4505
|
-
r.setAttribute("style",
|
|
4515
|
+
r.setAttribute("style", Jo), r.textContent = "flemo";
|
|
4506
4516
|
let i = document.createElement("div");
|
|
4507
|
-
i.setAttribute("style",
|
|
4517
|
+
i.setAttribute("style", Yo);
|
|
4508
4518
|
let a = document.createElement("div");
|
|
4509
4519
|
a.setAttribute("style", "width:96px;font-size:11px;color:#123;will-change:transform;transform:translate3d(0,0,0);");
|
|
4510
4520
|
let o = document.createElement("div");
|
|
@@ -4525,14 +4535,14 @@ function Ko() {
|
|
|
4525
4535
|
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);
|
|
4526
4536
|
try {
|
|
4527
4537
|
r.animate([{ transform: "translate3d(0,0,0)" }, { transform: "translate3d(2px,0,0)" }], {
|
|
4528
|
-
duration:
|
|
4529
|
-
iterations:
|
|
4538
|
+
duration: Go,
|
|
4539
|
+
iterations: Ko
|
|
4530
4540
|
}), i.animate([{ opacity: .4 }, { opacity: .6 }], {
|
|
4531
|
-
duration:
|
|
4532
|
-
iterations:
|
|
4541
|
+
duration: Go,
|
|
4542
|
+
iterations: Ko
|
|
4533
4543
|
}), a.animate([{ transform: "translate3d(0,0,0)" }, { transform: "translate3d(2px,0,0)" }], {
|
|
4534
|
-
duration:
|
|
4535
|
-
iterations:
|
|
4544
|
+
duration: Go,
|
|
4545
|
+
iterations: Ko
|
|
4536
4546
|
});
|
|
4537
4547
|
} catch {}
|
|
4538
4548
|
setTimeout(() => n.remove(), 450);
|
|
@@ -4541,12 +4551,12 @@ function Ko() {
|
|
|
4541
4551
|
}
|
|
4542
4552
|
let e = !1;
|
|
4543
4553
|
return () => {
|
|
4544
|
-
e || (e = !0,
|
|
4554
|
+
e || (e = !0, Zo = Math.max(0, Zo - 1), Zo === 0 && Xo === "scheduled" && (Qo?.(), Qo = null, Xo = "cold"));
|
|
4545
4555
|
};
|
|
4546
4556
|
}
|
|
4547
4557
|
//#endregion
|
|
4548
4558
|
//#region src/utils/isOpaqueColor.ts
|
|
4549
|
-
function
|
|
4559
|
+
function es(e) {
|
|
4550
4560
|
let t = e.trim().toLowerCase();
|
|
4551
4561
|
if (t === "transparent" || t === "") return !1;
|
|
4552
4562
|
if (t.match(/^rgb\(\s*\d+[\s,]+\d+[\s,]+\d+\s*\)$/)) return !0;
|
|
@@ -4557,7 +4567,7 @@ function qo(e) {
|
|
|
4557
4567
|
}
|
|
4558
4568
|
//#endregion
|
|
4559
4569
|
//#region src/utils/buildRoutePath.ts
|
|
4560
|
-
function
|
|
4570
|
+
function ts(e, n) {
|
|
4561
4571
|
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();
|
|
4562
4572
|
return {
|
|
4563
4573
|
pathname: `${a}${c ? `?${c}` : ""}`,
|
|
@@ -4565,4 +4575,4 @@ function Jo(e, n) {
|
|
|
4565
4575
|
};
|
|
4566
4576
|
}
|
|
4567
4577
|
//#endregion
|
|
4568
|
-
export { vo as ANIM_HOLD_RELEASE_BACKSTOP_MS,
|
|
4578
|
+
export { vo as ANIM_HOLD_RELEASE_BACKSTOP_MS, J as OFFLOADED_SRC_ATTR, sr as OVERSIZE_AREA_RATIO, Ea as SKIP_ANIMATION_ATTR, s as TaskManager, s as TaskManger, _o as animHoldKey, Qn as animateInline, Tn as animationName, re as appendParamsQuery, Ln as applyTransitionStyles, ts as buildRoutePath, oo as canProgrammaticallyScroll, K as clearInlineAnimation, yn as collectAnimatedProperties, jn as compileTransitionStyles, co as computeBarRiding, Nt as computeScreenFreeze, Mt as computeScreenFreezeMode, b as consumeSelfInducedPop, Ao as createAnimHoldCoordinator, g as createBrowserHistoryDriver, qt as createDecorator, c as createHistoryStore, x as createHistorySync, br as createImageDecodeOffloader, j as createMemoryHistoryDriver, ee as createNavigateStore, te as createNavigationController, Zt as createPartTransition, Jt as createRawDecorator, Qt as createRawPartTransition, Ft as createRawTransition, fe as createRouterScope, pe as createScreenSelector, le as createScreenStore, _ as createSelfPopGuard, ie as createStepController, uo as createSwipeController, Pt as createTransition, no as createTransitionEngine, oe as createTransitionStore, Bt as cupertino, z as decoratorMap, I as detectBlinkEngine, xo as eagerlyDecodeImages, bn as easingToCss, $o as ensureGpuPipelinePrewarm, Sr as ensureImageDecodeOffloader, k as ensureScopeHistorySync, p as ensureWindowHistoryState, Wn as enteringInitialStyle, ro as findScrollable, l as getMatchedPathPattern, u as getParams, He as governedCompiledActive, Fr as holdCompositorWarm, ve as isDesktopBlink, ge as isLegacyAndroidBlink, es as isOpaqueColor, f as isServer, Ht as layout, Ve as lowPowerCadenceActive, y as markSelfInducedPop, se as matchesPathname, Ut as material, Wt as none, jo as observeBarHeight, Bo as observeViewportScrollHeight, ao as overflowsAxis, Xt as overlay, B as partTransitionMap, pt as readDeferReleaseCommitFlag, dt as readDesktopReleaseFlipFlag, _t as readImageOffloadOverride, ht as readPrerasterFlag, gt as readRestLayerPromotionFlag, ct as readSettleGateFlag, ne as readStepParams, Un as registerTransitionDefinitions, A as releaseScopeHistorySync, Kt as resolveTransition, Oo as scheduleAnimHoldRelease, d as seedInitialHistory, m as seedRouterEntry, so as sharedBarsMatch, hr as shouldOffloadImage, it as steadySixtyPlayerEligible, ae as subscribeStepParamsRestore, H as targetToDecls, Gt as transitionMap, W as variantHasAnimation };
|