@ukpc-lib/react 0.15.8-sandbox.saas-9173 → 0.15.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/WrapPermission/index.d.ts +8 -0
- package/dist/components/index.cjs +3 -3
- package/dist/components/index.js +211 -202
- package/dist/components/main.d.ts +1 -0
- package/dist/{index.esm2017-BSSJ0AeG.cjs → index.esm2017-Cp9MoVFd.cjs} +73 -73
- package/dist/{index.esm2017-C2gSTh9B.js → index.esm2017-jR6fhPGf.js} +1794 -1774
- package/dist/share/index.cjs +1 -1
- package/dist/share/index.js +1 -1
- package/package.json +1 -1
- package/web-components-bundle/favorite-menu/index.js +1 -1
- package/web-components-bundle/global-menu/index.js +1 -1
- package/web-components-bundle/global-topbar/index.js +1 -1
- package/web-components-bundle/has-permission/index.js +1 -1
- package/web-components-bundle/{index-BOd5uK1U.js → index-194a0TKI.js} +614 -595
- package/web-components-bundle/toast-config/index.js +1 -1
|
@@ -1964,22 +1964,22 @@ en.getAdapter = Fk.getAdapter;
|
|
|
1964
1964
|
en.HttpStatusCode = xy;
|
|
1965
1965
|
en.default = en;
|
|
1966
1966
|
const {
|
|
1967
|
-
Axios:
|
|
1968
|
-
AxiosError:
|
|
1969
|
-
CanceledError:
|
|
1970
|
-
isCancel:
|
|
1971
|
-
CancelToken:
|
|
1972
|
-
VERSION:
|
|
1973
|
-
all:
|
|
1974
|
-
Cancel:
|
|
1975
|
-
isAxiosError:
|
|
1976
|
-
spread:
|
|
1977
|
-
toFormData:
|
|
1978
|
-
AxiosHeaders:
|
|
1979
|
-
HttpStatusCode:
|
|
1980
|
-
formToJSON:
|
|
1981
|
-
getAdapter:
|
|
1982
|
-
mergeConfig:
|
|
1967
|
+
Axios: nfe,
|
|
1968
|
+
AxiosError: rfe,
|
|
1969
|
+
CanceledError: ife,
|
|
1970
|
+
isCancel: sfe,
|
|
1971
|
+
CancelToken: ofe,
|
|
1972
|
+
VERSION: afe,
|
|
1973
|
+
all: lfe,
|
|
1974
|
+
Cancel: ufe,
|
|
1975
|
+
isAxiosError: cfe,
|
|
1976
|
+
spread: ffe,
|
|
1977
|
+
toFormData: dfe,
|
|
1978
|
+
AxiosHeaders: hfe,
|
|
1979
|
+
HttpStatusCode: pfe,
|
|
1980
|
+
formToJSON: mfe,
|
|
1981
|
+
getAdapter: gfe,
|
|
1982
|
+
mergeConfig: vfe
|
|
1983
1983
|
} = en;
|
|
1984
1984
|
var Af = /* @__PURE__ */ function() {
|
|
1985
1985
|
function e() {
|
|
@@ -12268,7 +12268,7 @@ function i8({
|
|
|
12268
12268
|
}
|
|
12269
12269
|
) }) });
|
|
12270
12270
|
}
|
|
12271
|
-
function
|
|
12271
|
+
function yfe(e) {
|
|
12272
12272
|
const { user: t, logout: n, isFetching: r } = dU();
|
|
12273
12273
|
return /* @__PURE__ */ L.jsx(
|
|
12274
12274
|
TP,
|
|
@@ -12424,7 +12424,6 @@ const CP = {
|
|
|
12424
12424
|
J0.success(e, {
|
|
12425
12425
|
icon: /* @__PURE__ */ L.jsx(a8, {}),
|
|
12426
12426
|
bodyStyle: {},
|
|
12427
|
-
position: "bottom-right",
|
|
12428
12427
|
style: {
|
|
12429
12428
|
...CP,
|
|
12430
12429
|
background: Dn.successLight,
|
|
@@ -12436,7 +12435,6 @@ const CP = {
|
|
|
12436
12435
|
}, jf = (e, t) => {
|
|
12437
12436
|
J0.error(e, {
|
|
12438
12437
|
icon: /* @__PURE__ */ L.jsx(o8, {}),
|
|
12439
|
-
position: "bottom-right",
|
|
12440
12438
|
style: {
|
|
12441
12439
|
...CP,
|
|
12442
12440
|
background: Dn.dangerLight,
|
|
@@ -33824,7 +33822,24 @@ const vE = (e) => {
|
|
|
33824
33822
|
e ? t.reject(e) : t.resolve();
|
|
33825
33823
|
}), E0 = [];
|
|
33826
33824
|
};
|
|
33827
|
-
function Lie(e
|
|
33825
|
+
function Lie(e) {
|
|
33826
|
+
try {
|
|
33827
|
+
const t = e == null ? void 0 : e.url, n = (e == null ? void 0 : e.baseURL) || window.location.origin, i = new URL(t, n).pathname.split("/").filter(Boolean);
|
|
33828
|
+
return i.length <= 3 ? `/${i.join("/")}` || "/" : `/${i[0]}/.../${i[i.length - 1]}`;
|
|
33829
|
+
} catch {
|
|
33830
|
+
return (e == null ? void 0 : e.url) || "";
|
|
33831
|
+
}
|
|
33832
|
+
}
|
|
33833
|
+
function Nie(e, t) {
|
|
33834
|
+
var o, l, c, d, h, p, y, b;
|
|
33835
|
+
const n = (o = e.response) == null ? void 0 : o.status, r = (l = t == null ? void 0 : t.method) == null ? void 0 : l.toUpperCase(), i = Lie(t), s = ((d = (c = e.response) == null ? void 0 : c.data) == null ? void 0 : d.errorMessage) || ((p = (h = e.response) == null ? void 0 : h.data) == null ? void 0 : p.message) || ((b = (y = e.response) == null ? void 0 : y.data) == null ? void 0 : b.title) || e.message || "Unexpected error";
|
|
33836
|
+
if (typeof n == "number" && n >= 500) {
|
|
33837
|
+
const C = [n ? `HTTP ${n}` : null, r, i].filter(Boolean);
|
|
33838
|
+
return `${C.join(" ")}${C.length ? " - " : ""}${s}`;
|
|
33839
|
+
}
|
|
33840
|
+
return `${s}`;
|
|
33841
|
+
}
|
|
33842
|
+
function $ie(e, t) {
|
|
33828
33843
|
var s, o, l, c, d, h, p;
|
|
33829
33844
|
const n = e.config, r = ((o = (s = e.response) == null ? void 0 : s.data) == null ? void 0 : o.errorMessage) || ((c = (l = e.response) == null ? void 0 : l.data) == null ? void 0 : c.message), i = r === Aie.TOKEN_EXPIRED;
|
|
33830
33845
|
if (((d = e.response) == null ? void 0 : d.status) === 401 && i && !n._retry)
|
|
@@ -33844,23 +33859,27 @@ function Lie(e, t) {
|
|
|
33844
33859
|
}
|
|
33845
33860
|
return Iie(window.env.AUTHEN_DOMAIN);
|
|
33846
33861
|
}
|
|
33847
|
-
|
|
33862
|
+
if (((p = e.response) == null ? void 0 : p.status) !== 403) {
|
|
33863
|
+
const y = Nie(e, n);
|
|
33864
|
+
jf(KD(`${y}`));
|
|
33865
|
+
}
|
|
33866
|
+
return r && e.response && e.response.data && (e.response.data.message = r), Promise.reject(e);
|
|
33848
33867
|
}
|
|
33849
33868
|
qn.interceptors.response.use(
|
|
33850
33869
|
(e) => e,
|
|
33851
33870
|
// Success handling
|
|
33852
|
-
async (e) =>
|
|
33871
|
+
async (e) => $ie(e)
|
|
33853
33872
|
// Error handling
|
|
33854
33873
|
);
|
|
33855
|
-
var Qa = [],
|
|
33874
|
+
var Qa = [], Fie = function() {
|
|
33856
33875
|
return Qa.some(function(e) {
|
|
33857
33876
|
return e.activeTargets.length > 0;
|
|
33858
33877
|
});
|
|
33859
|
-
},
|
|
33878
|
+
}, jie = function() {
|
|
33860
33879
|
return Qa.some(function(e) {
|
|
33861
33880
|
return e.skippedTargets.length > 0;
|
|
33862
33881
|
});
|
|
33863
|
-
}, yE = "ResizeObserver loop completed with undelivered notifications.",
|
|
33882
|
+
}, yE = "ResizeObserver loop completed with undelivered notifications.", Bie = function() {
|
|
33864
33883
|
var e;
|
|
33865
33884
|
typeof ErrorEvent == "function" ? e = new ErrorEvent("error", {
|
|
33866
33885
|
message: yE
|
|
@@ -33871,7 +33890,7 @@ var Qa = [], Nie = function() {
|
|
|
33871
33890
|
})(Sf || (Sf = {}));
|
|
33872
33891
|
var Za = function(e) {
|
|
33873
33892
|
return Object.freeze(e);
|
|
33874
|
-
},
|
|
33893
|
+
}, Vie = /* @__PURE__ */ function() {
|
|
33875
33894
|
function e(t, n) {
|
|
33876
33895
|
this.inlineSize = t, this.blockSize = n, Za(this);
|
|
33877
33896
|
}
|
|
@@ -33901,7 +33920,7 @@ var Za = function(e) {
|
|
|
33901
33920
|
return !0;
|
|
33902
33921
|
var n = (t = e == null ? void 0 : e.ownerDocument) === null || t === void 0 ? void 0 : t.defaultView;
|
|
33903
33922
|
return !!(n && e instanceof n.Element);
|
|
33904
|
-
},
|
|
33923
|
+
}, Wie = function(e) {
|
|
33905
33924
|
switch (e.tagName) {
|
|
33906
33925
|
case "INPUT":
|
|
33907
33926
|
if (e.type !== "image")
|
|
@@ -33916,10 +33935,10 @@ var Za = function(e) {
|
|
|
33916
33935
|
return !0;
|
|
33917
33936
|
}
|
|
33918
33937
|
return !1;
|
|
33919
|
-
}, Kc = typeof window < "u" ? window : {}, mh = /* @__PURE__ */ new WeakMap(), xE = /auto|scroll/,
|
|
33938
|
+
}, Kc = typeof window < "u" ? window : {}, mh = /* @__PURE__ */ new WeakMap(), xE = /auto|scroll/, Hie = /^tb|vertical/, Uie = /msie|trident/i.test(Kc.navigator && Kc.navigator.userAgent), ns = function(e) {
|
|
33920
33939
|
return parseFloat(e || "0");
|
|
33921
33940
|
}, su = function(e, t, n) {
|
|
33922
|
-
return e === void 0 && (e = 0), t === void 0 && (t = 0), n === void 0 && (n = !1), new
|
|
33941
|
+
return e === void 0 && (e = 0), t === void 0 && (t = 0), n === void 0 && (n = !1), new Vie((n ? t : e) || 0, (n ? e : t) || 0);
|
|
33923
33942
|
}, wE = Za({
|
|
33924
33943
|
devicePixelContentBoxSize: su(),
|
|
33925
33944
|
borderBoxSize: su(),
|
|
@@ -33930,7 +33949,7 @@ var Za = function(e) {
|
|
|
33930
33949
|
return mh.get(e);
|
|
33931
33950
|
if (lR(e))
|
|
33932
33951
|
return mh.set(e, wE), wE;
|
|
33933
|
-
var n = getComputedStyle(e), r = Ux(e) && e.ownerSVGElement && e.getBBox(), i = !
|
|
33952
|
+
var n = getComputedStyle(e), r = Ux(e) && e.ownerSVGElement && e.getBBox(), i = !Uie && n.boxSizing === "border-box", s = Hie.test(n.writingMode || ""), o = !r && xE.test(n.overflowY || ""), l = !r && xE.test(n.overflowX || ""), c = r ? 0 : ns(n.paddingTop), d = r ? 0 : ns(n.paddingRight), h = r ? 0 : ns(n.paddingBottom), p = r ? 0 : ns(n.paddingLeft), y = r ? 0 : ns(n.borderTopWidth), b = r ? 0 : ns(n.borderRightWidth), C = r ? 0 : ns(n.borderBottomWidth), w = r ? 0 : ns(n.borderLeftWidth), E = p + d, _ = c + h, I = w + b, P = y + C, V = l ? e.offsetHeight - P - e.clientHeight : 0, N = o ? e.offsetWidth - I - e.clientWidth : 0, j = i ? E + I : 0, v = i ? _ + P : 0, Y = r ? r.width : ns(n.width) - j - N, z = r ? r.height : ns(n.height) - v - V, se = Y + E + N + I, ae = z + _ + V + P, ye = Za({
|
|
33934
33953
|
devicePixelContentBoxSize: su(Math.round(Y * devicePixelRatio), Math.round(z * devicePixelRatio), s),
|
|
33935
33954
|
borderBoxSize: su(se, ae, s),
|
|
33936
33955
|
contentBoxSize: su(Y, z, s),
|
|
@@ -33947,7 +33966,7 @@ var Za = function(e) {
|
|
|
33947
33966
|
default:
|
|
33948
33967
|
return s;
|
|
33949
33968
|
}
|
|
33950
|
-
},
|
|
33969
|
+
}, zie = /* @__PURE__ */ function() {
|
|
33951
33970
|
function e(t) {
|
|
33952
33971
|
var n = uR(t);
|
|
33953
33972
|
this.target = t, this.contentRect = n.contentRect, this.borderBoxSize = Za([n.borderBoxSize]), this.contentBoxSize = Za([n.contentBoxSize]), this.devicePixelContentBoxSize = Za([n.devicePixelContentBoxSize]);
|
|
@@ -33959,13 +33978,13 @@ var Za = function(e) {
|
|
|
33959
33978
|
for (var t = 0, n = e.parentNode; n; )
|
|
33960
33979
|
t += 1, n = n.parentNode;
|
|
33961
33980
|
return t;
|
|
33962
|
-
},
|
|
33981
|
+
}, Yie = function() {
|
|
33963
33982
|
var e = 1 / 0, t = [];
|
|
33964
33983
|
Qa.forEach(function(o) {
|
|
33965
33984
|
if (o.activeTargets.length !== 0) {
|
|
33966
33985
|
var l = [];
|
|
33967
33986
|
o.activeTargets.forEach(function(d) {
|
|
33968
|
-
var h = new
|
|
33987
|
+
var h = new zie(d.target), p = fR(d.target);
|
|
33969
33988
|
l.push(h), d.lastReportedSize = cR(d.target, d.observedBox), p < e && (e = p);
|
|
33970
33989
|
}), t.push(function() {
|
|
33971
33990
|
o.callback.call(o.observer, l, o.observer);
|
|
@@ -33983,32 +34002,32 @@ var Za = function(e) {
|
|
|
33983
34002
|
i.isActive() && (fR(i.target) > e ? n.activeTargets.push(i) : n.skippedTargets.push(i));
|
|
33984
34003
|
});
|
|
33985
34004
|
});
|
|
33986
|
-
},
|
|
34005
|
+
}, qie = function() {
|
|
33987
34006
|
var e = 0;
|
|
33988
|
-
for (SE(e);
|
|
33989
|
-
e =
|
|
33990
|
-
return
|
|
33991
|
-
}, Zv, dR = [],
|
|
34007
|
+
for (SE(e); Fie(); )
|
|
34008
|
+
e = Yie(), SE(e);
|
|
34009
|
+
return jie() && Bie(), e > 0;
|
|
34010
|
+
}, Zv, dR = [], Gie = function() {
|
|
33992
34011
|
return dR.splice(0).forEach(function(e) {
|
|
33993
34012
|
return e();
|
|
33994
34013
|
});
|
|
33995
|
-
},
|
|
34014
|
+
}, Kie = function(e) {
|
|
33996
34015
|
if (!Zv) {
|
|
33997
34016
|
var t = 0, n = document.createTextNode(""), r = { characterData: !0 };
|
|
33998
34017
|
new MutationObserver(function() {
|
|
33999
|
-
return
|
|
34018
|
+
return Gie();
|
|
34000
34019
|
}).observe(n, r), Zv = function() {
|
|
34001
34020
|
n.textContent = "".concat(t ? t-- : t++);
|
|
34002
34021
|
};
|
|
34003
34022
|
}
|
|
34004
34023
|
dR.push(e), Zv();
|
|
34005
|
-
},
|
|
34006
|
-
|
|
34024
|
+
}, Xie = function(e) {
|
|
34025
|
+
Kie(function() {
|
|
34007
34026
|
requestAnimationFrame(e);
|
|
34008
34027
|
});
|
|
34009
|
-
}, Uh = 0,
|
|
34028
|
+
}, Uh = 0, Qie = function() {
|
|
34010
34029
|
return !!Uh;
|
|
34011
|
-
},
|
|
34030
|
+
}, Zie = 250, Jie = { attributes: !0, characterData: !0, childList: !0, subtree: !0 }, TE = [
|
|
34012
34031
|
"resize",
|
|
34013
34032
|
"load",
|
|
34014
34033
|
"transitionend",
|
|
@@ -34025,7 +34044,7 @@ var Za = function(e) {
|
|
|
34025
34044
|
"focus"
|
|
34026
34045
|
], CE = function(e) {
|
|
34027
34046
|
return e === void 0 && (e = 0), Date.now() + e;
|
|
34028
|
-
}, Jv = !1,
|
|
34047
|
+
}, Jv = !1, ese = function() {
|
|
34029
34048
|
function e() {
|
|
34030
34049
|
var t = this;
|
|
34031
34050
|
this.stopped = !0, this.listener = function() {
|
|
@@ -34034,15 +34053,15 @@ var Za = function(e) {
|
|
|
34034
34053
|
}
|
|
34035
34054
|
return e.prototype.run = function(t) {
|
|
34036
34055
|
var n = this;
|
|
34037
|
-
if (t === void 0 && (t =
|
|
34056
|
+
if (t === void 0 && (t = Zie), !Jv) {
|
|
34038
34057
|
Jv = !0;
|
|
34039
34058
|
var r = CE(t);
|
|
34040
|
-
|
|
34059
|
+
Xie(function() {
|
|
34041
34060
|
var i = !1;
|
|
34042
34061
|
try {
|
|
34043
|
-
i =
|
|
34062
|
+
i = qie();
|
|
34044
34063
|
} finally {
|
|
34045
|
-
if (Jv = !1, t = r - CE(), !
|
|
34064
|
+
if (Jv = !1, t = r - CE(), !Qie())
|
|
34046
34065
|
return;
|
|
34047
34066
|
i ? n.run(1e3) : t > 0 ? n.run(t) : n.start();
|
|
34048
34067
|
}
|
|
@@ -34052,7 +34071,7 @@ var Za = function(e) {
|
|
|
34052
34071
|
this.stop(), this.run();
|
|
34053
34072
|
}, e.prototype.observe = function() {
|
|
34054
34073
|
var t = this, n = function() {
|
|
34055
|
-
return t.observer && t.observer.observe(document.body,
|
|
34074
|
+
return t.observer && t.observer.observe(document.body, Jie);
|
|
34056
34075
|
};
|
|
34057
34076
|
document.body ? n() : Kc.addEventListener("DOMContentLoaded", n);
|
|
34058
34077
|
}, e.prototype.start = function() {
|
|
@@ -34066,11 +34085,11 @@ var Za = function(e) {
|
|
|
34066
34085
|
return Kc.removeEventListener(n, t.listener, !0);
|
|
34067
34086
|
}), this.stopped = !0);
|
|
34068
34087
|
}, e;
|
|
34069
|
-
}(), D0 = new
|
|
34088
|
+
}(), D0 = new ese(), _E = function(e) {
|
|
34070
34089
|
!Uh && e > 0 && D0.start(), Uh += e, !Uh && D0.stop();
|
|
34071
|
-
},
|
|
34072
|
-
return !Ux(e) && !
|
|
34073
|
-
},
|
|
34090
|
+
}, tse = function(e) {
|
|
34091
|
+
return !Ux(e) && !Wie(e) && getComputedStyle(e).display === "inline";
|
|
34092
|
+
}, nse = function() {
|
|
34074
34093
|
function e(t, n) {
|
|
34075
34094
|
this.target = t, this.observedBox = n || Sf.CONTENT_BOX, this.lastReportedSize = {
|
|
34076
34095
|
inlineSize: 0,
|
|
@@ -34079,9 +34098,9 @@ var Za = function(e) {
|
|
|
34079
34098
|
}
|
|
34080
34099
|
return e.prototype.isActive = function() {
|
|
34081
34100
|
var t = cR(this.target, this.observedBox, !0);
|
|
34082
|
-
return
|
|
34101
|
+
return tse(this.target) && (this.lastReportedSize = t), this.lastReportedSize.inlineSize !== t.inlineSize || this.lastReportedSize.blockSize !== t.blockSize;
|
|
34083
34102
|
}, e;
|
|
34084
|
-
}(),
|
|
34103
|
+
}(), rse = /* @__PURE__ */ function() {
|
|
34085
34104
|
function e(t, n) {
|
|
34086
34105
|
this.activeTargets = [], this.skippedTargets = [], this.observationTargets = [], this.observer = t, this.callback = n;
|
|
34087
34106
|
}
|
|
@@ -34095,11 +34114,11 @@ var Za = function(e) {
|
|
|
34095
34114
|
function e() {
|
|
34096
34115
|
}
|
|
34097
34116
|
return e.connect = function(t, n) {
|
|
34098
|
-
var r = new
|
|
34117
|
+
var r = new rse(t, n);
|
|
34099
34118
|
gh.set(t, r);
|
|
34100
34119
|
}, e.observe = function(t, n, r) {
|
|
34101
34120
|
var i = gh.get(t), s = i.observationTargets.length === 0;
|
|
34102
|
-
EE(i.observationTargets, n) < 0 && (s && Qa.push(i), i.observationTargets.push(new
|
|
34121
|
+
EE(i.observationTargets, n) < 0 && (s && Qa.push(i), i.observationTargets.push(new nse(n, r && r.box)), _E(1), D0.schedule());
|
|
34103
34122
|
}, e.unobserve = function(t, n) {
|
|
34104
34123
|
var r = gh.get(t), i = EE(r.observationTargets, n), s = r.observationTargets.length === 1;
|
|
34105
34124
|
i >= 0 && (s && Qa.splice(Qa.indexOf(r), 1), r.observationTargets.splice(i, 1), _E(-1));
|
|
@@ -34109,7 +34128,7 @@ var Za = function(e) {
|
|
|
34109
34128
|
return n.unobserve(t, i.target);
|
|
34110
34129
|
}), r.activeTargets.splice(0, r.activeTargets.length);
|
|
34111
34130
|
}, e;
|
|
34112
|
-
}(),
|
|
34131
|
+
}(), ise = function() {
|
|
34113
34132
|
function e(t) {
|
|
34114
34133
|
if (arguments.length === 0)
|
|
34115
34134
|
throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");
|
|
@@ -34136,7 +34155,7 @@ var Za = function(e) {
|
|
|
34136
34155
|
}, e;
|
|
34137
34156
|
}();
|
|
34138
34157
|
const hR = A.createContext({});
|
|
34139
|
-
function
|
|
34158
|
+
function sse(e) {
|
|
34140
34159
|
const t = A.useRef(null);
|
|
34141
34160
|
return t.current === null && (t.current = e()), t.current;
|
|
34142
34161
|
}
|
|
@@ -34145,7 +34164,7 @@ const zx = A.createContext(null), pR = A.createContext({
|
|
|
34145
34164
|
isStatic: !1,
|
|
34146
34165
|
reducedMotion: "never"
|
|
34147
34166
|
});
|
|
34148
|
-
function
|
|
34167
|
+
function ose(e = !0) {
|
|
34149
34168
|
const t = A.useContext(zx);
|
|
34150
34169
|
if (t === null)
|
|
34151
34170
|
return [!0, null];
|
|
@@ -34156,7 +34175,7 @@ function ise(e = !0) {
|
|
|
34156
34175
|
const o = A.useCallback(() => e && r && r(s), [s, r, e]);
|
|
34157
34176
|
return !n && r ? [!1, o] : [!0];
|
|
34158
34177
|
}
|
|
34159
|
-
const Yx = typeof window < "u",
|
|
34178
|
+
const Yx = typeof window < "u", ase = Yx ? A.useLayoutEffect : A.useEffect, Gr = /* @__NO_SIDE_EFFECTS__ */ (e) => e;
|
|
34160
34179
|
let mR = Gr;
|
|
34161
34180
|
// @__NO_SIDE_EFFECTS__
|
|
34162
34181
|
function qx(e) {
|
|
@@ -34166,10 +34185,10 @@ function qx(e) {
|
|
|
34166
34185
|
const mu = /* @__NO_SIDE_EFFECTS__ */ (e, t, n) => {
|
|
34167
34186
|
const r = t - e;
|
|
34168
34187
|
return r === 0 ? 1 : (n - e) / r;
|
|
34169
|
-
}, Ys = /* @__NO_SIDE_EFFECTS__ */ (e) => e * 1e3, qs = /* @__NO_SIDE_EFFECTS__ */ (e) => e / 1e3,
|
|
34188
|
+
}, Ys = /* @__NO_SIDE_EFFECTS__ */ (e) => e * 1e3, qs = /* @__NO_SIDE_EFFECTS__ */ (e) => e / 1e3, lse = {
|
|
34170
34189
|
useManualTiming: !1
|
|
34171
34190
|
};
|
|
34172
|
-
function
|
|
34191
|
+
function use(e) {
|
|
34173
34192
|
let t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set(), r = !1, i = !1;
|
|
34174
34193
|
const s = /* @__PURE__ */ new WeakSet();
|
|
34175
34194
|
let o = {
|
|
@@ -34220,16 +34239,16 @@ const yh = [
|
|
|
34220
34239
|
// Write
|
|
34221
34240
|
"postRender"
|
|
34222
34241
|
// Compute
|
|
34223
|
-
],
|
|
34242
|
+
], cse = 40;
|
|
34224
34243
|
function gR(e, t) {
|
|
34225
34244
|
let n = !1, r = !0;
|
|
34226
34245
|
const i = {
|
|
34227
34246
|
delta: 0,
|
|
34228
34247
|
timestamp: 0,
|
|
34229
34248
|
isProcessing: !1
|
|
34230
|
-
}, s = () => n = !0, o = yh.reduce((_, I) => (_[I] =
|
|
34249
|
+
}, s = () => n = !0, o = yh.reduce((_, I) => (_[I] = use(s), _), {}), { read: l, resolveKeyframes: c, update: d, preRender: h, render: p, postRender: y } = o, b = () => {
|
|
34231
34250
|
const _ = performance.now();
|
|
34232
|
-
n = !1, i.delta = r ? 1e3 / 60 : Math.max(Math.min(_ - i.timestamp,
|
|
34251
|
+
n = !1, i.delta = r ? 1e3 / 60 : Math.max(Math.min(_ - i.timestamp, cse), 1), i.timestamp = _, i.isProcessing = !0, l.process(i), c.process(i), d.process(i), h.process(i), p.process(i), y.process(i), i.isProcessing = !1, n && t && (r = !1, e(b));
|
|
34233
34252
|
}, C = () => {
|
|
34234
34253
|
n = !0, r = !0, i.isProcessing || e(b);
|
|
34235
34254
|
};
|
|
@@ -34265,14 +34284,14 @@ for (const e in DE)
|
|
|
34265
34284
|
gu[e] = {
|
|
34266
34285
|
isEnabled: (t) => DE[e].some((n) => !!t[n])
|
|
34267
34286
|
};
|
|
34268
|
-
function
|
|
34287
|
+
function fse(e) {
|
|
34269
34288
|
for (const t in e)
|
|
34270
34289
|
gu[t] = {
|
|
34271
34290
|
...gu[t],
|
|
34272
34291
|
...e[t]
|
|
34273
34292
|
};
|
|
34274
34293
|
}
|
|
34275
|
-
const
|
|
34294
|
+
const dse = /* @__PURE__ */ new Set([
|
|
34276
34295
|
"animate",
|
|
34277
34296
|
"exit",
|
|
34278
34297
|
"variants",
|
|
@@ -34305,24 +34324,24 @@ const cse = /* @__PURE__ */ new Set([
|
|
|
34305
34324
|
"viewport"
|
|
34306
34325
|
]);
|
|
34307
34326
|
function Np(e) {
|
|
34308
|
-
return e.startsWith("while") || e.startsWith("drag") && e !== "draggable" || e.startsWith("layout") || e.startsWith("onTap") || e.startsWith("onPan") || e.startsWith("onLayout") ||
|
|
34327
|
+
return e.startsWith("while") || e.startsWith("drag") && e !== "draggable" || e.startsWith("layout") || e.startsWith("onTap") || e.startsWith("onPan") || e.startsWith("onLayout") || dse.has(e);
|
|
34309
34328
|
}
|
|
34310
34329
|
let yR = (e) => !Np(e);
|
|
34311
|
-
function
|
|
34330
|
+
function hse(e) {
|
|
34312
34331
|
e && (yR = (t) => t.startsWith("on") ? !Np(t) : e(t));
|
|
34313
34332
|
}
|
|
34314
34333
|
try {
|
|
34315
|
-
|
|
34334
|
+
hse(require("@emotion/is-prop-valid").default);
|
|
34316
34335
|
} catch {
|
|
34317
34336
|
}
|
|
34318
|
-
function
|
|
34337
|
+
function pse(e, t, n) {
|
|
34319
34338
|
const r = {};
|
|
34320
34339
|
for (const i in e)
|
|
34321
34340
|
i === "values" && typeof e.values == "object" || (yR(i) || n === !0 && Np(i) || !t && !Np(i) || // If trying to use native HTML drag events, forward drag listeners
|
|
34322
34341
|
e.draggable && i.startsWith("onDrag")) && (r[i] = e[i]);
|
|
34323
34342
|
return r;
|
|
34324
34343
|
}
|
|
34325
|
-
function
|
|
34344
|
+
function mse(e) {
|
|
34326
34345
|
if (typeof Proxy > "u")
|
|
34327
34346
|
return e;
|
|
34328
34347
|
const t = /* @__PURE__ */ new Map(), n = (...r) => e(...r);
|
|
@@ -34357,7 +34376,7 @@ function Nm(e) {
|
|
|
34357
34376
|
function bR(e) {
|
|
34358
34377
|
return !!(Nm(e) || e.variants);
|
|
34359
34378
|
}
|
|
34360
|
-
function
|
|
34379
|
+
function gse(e, t) {
|
|
34361
34380
|
if (Nm(e)) {
|
|
34362
34381
|
const { initial: n, animate: r } = e;
|
|
34363
34382
|
return {
|
|
@@ -34367,18 +34386,18 @@ function pse(e, t) {
|
|
|
34367
34386
|
}
|
|
34368
34387
|
return e.inherit !== !1 ? t : {};
|
|
34369
34388
|
}
|
|
34370
|
-
function
|
|
34371
|
-
const { initial: t, animate: n } =
|
|
34389
|
+
function vse(e) {
|
|
34390
|
+
const { initial: t, animate: n } = gse(e, A.useContext(Rm));
|
|
34372
34391
|
return A.useMemo(() => ({ initial: t, animate: n }), [kE(t), kE(n)]);
|
|
34373
34392
|
}
|
|
34374
34393
|
function kE(e) {
|
|
34375
34394
|
return Array.isArray(e) ? e.join(" ") : e;
|
|
34376
34395
|
}
|
|
34377
|
-
const
|
|
34396
|
+
const yse = Symbol.for("motionComponentSymbol");
|
|
34378
34397
|
function Xl(e) {
|
|
34379
34398
|
return e && typeof e == "object" && Object.prototype.hasOwnProperty.call(e, "current");
|
|
34380
34399
|
}
|
|
34381
|
-
function
|
|
34400
|
+
function bse(e, t, n) {
|
|
34382
34401
|
return A.useCallback(
|
|
34383
34402
|
(r) => {
|
|
34384
34403
|
r && e.onMount && e.onMount(r), t && (r ? t.mount(r) : t.unmount()), n && (typeof n == "function" ? n(r) : Xl(n) && (n.current = r));
|
|
@@ -34391,8 +34410,8 @@ function vse(e, t, n) {
|
|
|
34391
34410
|
[t]
|
|
34392
34411
|
);
|
|
34393
34412
|
}
|
|
34394
|
-
const Xx = (e) => e.replace(/([a-z])([A-Z])/gu, "$1-$2").toLowerCase(),
|
|
34395
|
-
function
|
|
34413
|
+
const Xx = (e) => e.replace(/([a-z])([A-Z])/gu, "$1-$2").toLowerCase(), xse = "framerAppearId", xR = "data-" + Xx(xse), { schedule: Qx } = gR(queueMicrotask, !1), wR = A.createContext({});
|
|
34414
|
+
function wse(e, t, n, r, i) {
|
|
34396
34415
|
var s, o;
|
|
34397
34416
|
const { visualElement: l } = A.useContext(Rm), c = A.useContext(vR), d = A.useContext(zx), h = A.useContext(pR).reducedMotion, p = A.useRef(null);
|
|
34398
34417
|
r = r || c.renderer, !p.current && r && (p.current = r(e, {
|
|
@@ -34404,13 +34423,13 @@ function bse(e, t, n, r, i) {
|
|
|
34404
34423
|
reducedMotionConfig: h
|
|
34405
34424
|
}));
|
|
34406
34425
|
const y = p.current, b = A.useContext(wR);
|
|
34407
|
-
y && !y.projection && i && (y.type === "html" || y.type === "svg") &&
|
|
34426
|
+
y && !y.projection && i && (y.type === "html" || y.type === "svg") && Sse(p.current, n, i, b);
|
|
34408
34427
|
const C = A.useRef(!1);
|
|
34409
34428
|
A.useInsertionEffect(() => {
|
|
34410
34429
|
y && C.current && y.update(n, d);
|
|
34411
34430
|
});
|
|
34412
34431
|
const w = n[xR], E = A.useRef(!!w && !(!((s = window.MotionHandoffIsComplete) === null || s === void 0) && s.call(window, w)) && ((o = window.MotionHasOptimisedAnimation) === null || o === void 0 ? void 0 : o.call(window, w)));
|
|
34413
|
-
return
|
|
34432
|
+
return ase(() => {
|
|
34414
34433
|
y && (C.current = !0, window.MotionIsMounted = !0, y.updateFeatures(), Qx.render(y.render), E.current && y.animationState && y.animationState.animateChanges());
|
|
34415
34434
|
}), A.useEffect(() => {
|
|
34416
34435
|
y && (!E.current && y.animationState && y.animationState.animateChanges(), E.current && (queueMicrotask(() => {
|
|
@@ -34419,7 +34438,7 @@ function bse(e, t, n, r, i) {
|
|
|
34419
34438
|
}), E.current = !1));
|
|
34420
34439
|
}), y;
|
|
34421
34440
|
}
|
|
34422
|
-
function
|
|
34441
|
+
function Sse(e, t, n, r) {
|
|
34423
34442
|
const { layoutId: i, layout: s, drag: o, dragConstraints: l, layoutScroll: c, layoutRoot: d } = t;
|
|
34424
34443
|
e.projection = new n(e.latestValues, t["data-framer-portal-id"] ? void 0 : SR(e.parent)), e.projection.setOptions({
|
|
34425
34444
|
layoutId: i,
|
|
@@ -34443,35 +34462,35 @@ function SR(e) {
|
|
|
34443
34462
|
if (e)
|
|
34444
34463
|
return e.options.allowProjection !== !1 ? e.projection : SR(e.parent);
|
|
34445
34464
|
}
|
|
34446
|
-
function
|
|
34465
|
+
function Tse({ preloadedFeatures: e, createVisualElement: t, useRender: n, useVisualState: r, Component: i }) {
|
|
34447
34466
|
var s, o;
|
|
34448
|
-
e &&
|
|
34467
|
+
e && fse(e);
|
|
34449
34468
|
function l(d, h) {
|
|
34450
34469
|
let p;
|
|
34451
34470
|
const y = {
|
|
34452
34471
|
...A.useContext(pR),
|
|
34453
34472
|
...d,
|
|
34454
|
-
layoutId:
|
|
34455
|
-
}, { isStatic: b } = y, C =
|
|
34473
|
+
layoutId: Cse(d)
|
|
34474
|
+
}, { isStatic: b } = y, C = vse(d), w = r(d, b);
|
|
34456
34475
|
if (!b && Yx) {
|
|
34457
|
-
|
|
34458
|
-
const E =
|
|
34459
|
-
p = E.MeasureLayout, C.visualElement =
|
|
34476
|
+
_se();
|
|
34477
|
+
const E = Ese(y);
|
|
34478
|
+
p = E.MeasureLayout, C.visualElement = wse(i, w, y, t, E.ProjectionNode);
|
|
34460
34479
|
}
|
|
34461
|
-
return L.jsxs(Rm.Provider, { value: C, children: [p && C.visualElement ? L.jsx(p, { visualElement: C.visualElement, ...y }) : null, n(i, d,
|
|
34480
|
+
return L.jsxs(Rm.Provider, { value: C, children: [p && C.visualElement ? L.jsx(p, { visualElement: C.visualElement, ...y }) : null, n(i, d, bse(w, C.visualElement, h), w, b, C.visualElement)] });
|
|
34462
34481
|
}
|
|
34463
34482
|
l.displayName = `motion.${typeof i == "string" ? i : `create(${(o = (s = i.displayName) !== null && s !== void 0 ? s : i.name) !== null && o !== void 0 ? o : ""})`}`;
|
|
34464
34483
|
const c = A.forwardRef(l);
|
|
34465
|
-
return c[
|
|
34484
|
+
return c[yse] = i, c;
|
|
34466
34485
|
}
|
|
34467
|
-
function
|
|
34486
|
+
function Cse({ layoutId: e }) {
|
|
34468
34487
|
const t = A.useContext(hR).id;
|
|
34469
34488
|
return t && e !== void 0 ? t + "-" + e : e;
|
|
34470
34489
|
}
|
|
34471
|
-
function
|
|
34490
|
+
function _se(e, t) {
|
|
34472
34491
|
A.useContext(vR).strict;
|
|
34473
34492
|
}
|
|
34474
|
-
function
|
|
34493
|
+
function Ese(e) {
|
|
34475
34494
|
const { drag: t, layout: n } = gu;
|
|
34476
34495
|
if (!t && !n)
|
|
34477
34496
|
return {};
|
|
@@ -34481,7 +34500,7 @@ function Cse(e) {
|
|
|
34481
34500
|
ProjectionNode: r.ProjectionNode
|
|
34482
34501
|
};
|
|
34483
34502
|
}
|
|
34484
|
-
const
|
|
34503
|
+
const Dse = [
|
|
34485
34504
|
"animate",
|
|
34486
34505
|
"circle",
|
|
34487
34506
|
"defs",
|
|
@@ -34521,7 +34540,7 @@ function Zx(e) {
|
|
|
34521
34540
|
/**
|
|
34522
34541
|
* If it's in our list of lowercase SVG tags, it's an SVG component
|
|
34523
34542
|
*/
|
|
34524
|
-
!!(
|
|
34543
|
+
!!(Dse.indexOf(e) > -1 || /**
|
|
34525
34544
|
* If it contains a capital letter, it's an SVG component
|
|
34526
34545
|
*/
|
|
34527
34546
|
/[A-Z]/u.test(e))
|
|
@@ -34545,23 +34564,23 @@ function Jx(e, t, n, r) {
|
|
|
34545
34564
|
}
|
|
34546
34565
|
return t;
|
|
34547
34566
|
}
|
|
34548
|
-
const k0 = (e) => Array.isArray(e),
|
|
34567
|
+
const k0 = (e) => Array.isArray(e), kse = (e) => !!(e && typeof e == "object" && e.mix && e.toValue), Ose = (e) => k0(e) ? e[e.length - 1] || 0 : e, Un = (e) => !!(e && e.getVelocity);
|
|
34549
34568
|
function zh(e) {
|
|
34550
34569
|
const t = Un(e) ? e.get() : e;
|
|
34551
|
-
return
|
|
34570
|
+
return kse(t) ? t.toValue() : t;
|
|
34552
34571
|
}
|
|
34553
|
-
function
|
|
34572
|
+
function Pse({ scrapeMotionValuesFromProps: e, createRenderState: t, onUpdate: n }, r, i, s) {
|
|
34554
34573
|
const o = {
|
|
34555
|
-
latestValues:
|
|
34574
|
+
latestValues: Mse(r, i, s, e),
|
|
34556
34575
|
renderState: t()
|
|
34557
34576
|
};
|
|
34558
34577
|
return n && (o.onMount = (l) => n({ props: r, current: l, ...o }), o.onUpdate = (l) => n(l)), o;
|
|
34559
34578
|
}
|
|
34560
34579
|
const TR = (e) => (t, n) => {
|
|
34561
|
-
const r = A.useContext(Rm), i = A.useContext(zx), s = () =>
|
|
34562
|
-
return n ? s() :
|
|
34580
|
+
const r = A.useContext(Rm), i = A.useContext(zx), s = () => Pse(e, t, r, i);
|
|
34581
|
+
return n ? s() : sse(s);
|
|
34563
34582
|
};
|
|
34564
|
-
function
|
|
34583
|
+
function Mse(e, t, n, r) {
|
|
34565
34584
|
const i = {}, s = r(e, {});
|
|
34566
34585
|
for (const y in s)
|
|
34567
34586
|
i[y] = zh(s[y]);
|
|
@@ -34610,7 +34629,7 @@ const Ou = [
|
|
|
34610
34629
|
"skew",
|
|
34611
34630
|
"skewX",
|
|
34612
34631
|
"skewY"
|
|
34613
|
-
], cl = new Set(Ou), CR = (e) => (t) => typeof t == "string" && t.startsWith(e), _R = /* @__PURE__ */ CR("--"),
|
|
34632
|
+
], cl = new Set(Ou), CR = (e) => (t) => typeof t == "string" && t.startsWith(e), _R = /* @__PURE__ */ CR("--"), Ase = /* @__PURE__ */ CR("var(--"), ew = (e) => Ase(e) ? Ise.test(e.split("/*")[0].trim()) : !1, Ise = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu, ER = (e, t) => t && typeof e == "number" ? t.transform(e) : e, to = (e, t, n) => n > t ? t : n < e ? e : n, Pu = {
|
|
34614
34633
|
test: (e) => typeof e == "number",
|
|
34615
34634
|
parse: parseFloat,
|
|
34616
34635
|
transform: (e) => e
|
|
@@ -34624,11 +34643,11 @@ const Ou = [
|
|
|
34624
34643
|
test: (t) => typeof t == "string" && t.endsWith(e) && t.split(" ").length === 1,
|
|
34625
34644
|
parse: parseFloat,
|
|
34626
34645
|
transform: (t) => `${t}${e}`
|
|
34627
|
-
}), Mo = /* @__PURE__ */ Uf("deg"), fs = /* @__PURE__ */ Uf("%"), Ye = /* @__PURE__ */ Uf("px"),
|
|
34646
|
+
}), Mo = /* @__PURE__ */ Uf("deg"), fs = /* @__PURE__ */ Uf("%"), Ye = /* @__PURE__ */ Uf("px"), Rse = /* @__PURE__ */ Uf("vh"), Lse = /* @__PURE__ */ Uf("vw"), PE = {
|
|
34628
34647
|
...fs,
|
|
34629
34648
|
parse: (e) => fs.parse(e) / 100,
|
|
34630
34649
|
transform: (e) => fs.transform(e * 100)
|
|
34631
|
-
},
|
|
34650
|
+
}, Nse = {
|
|
34632
34651
|
// Border props
|
|
34633
34652
|
borderWidth: Ye,
|
|
34634
34653
|
borderTopWidth: Ye,
|
|
@@ -34664,7 +34683,7 @@ const Ou = [
|
|
|
34664
34683
|
// Misc
|
|
34665
34684
|
backgroundPositionX: Ye,
|
|
34666
34685
|
backgroundPositionY: Ye
|
|
34667
|
-
},
|
|
34686
|
+
}, $se = {
|
|
34668
34687
|
rotate: Mo,
|
|
34669
34688
|
rotateX: Mo,
|
|
34670
34689
|
rotateY: Mo,
|
|
@@ -34693,23 +34712,23 @@ const Ou = [
|
|
|
34693
34712
|
...Pu,
|
|
34694
34713
|
transform: Math.round
|
|
34695
34714
|
}, tw = {
|
|
34696
|
-
...
|
|
34697
|
-
|
|
34715
|
+
...Nse,
|
|
34716
|
+
...$se,
|
|
34698
34717
|
zIndex: ME,
|
|
34699
34718
|
size: Ye,
|
|
34700
34719
|
// SVG
|
|
34701
34720
|
fillOpacity: Cf,
|
|
34702
34721
|
strokeOpacity: Cf,
|
|
34703
34722
|
numOctaves: ME
|
|
34704
|
-
},
|
|
34723
|
+
}, Fse = {
|
|
34705
34724
|
x: "translateX",
|
|
34706
34725
|
y: "translateY",
|
|
34707
34726
|
z: "translateZ",
|
|
34708
34727
|
transformPerspective: "perspective"
|
|
34709
|
-
},
|
|
34710
|
-
function
|
|
34728
|
+
}, jse = Ou.length;
|
|
34729
|
+
function Bse(e, t, n) {
|
|
34711
34730
|
let r = "", i = !0;
|
|
34712
|
-
for (let s = 0; s <
|
|
34731
|
+
for (let s = 0; s < jse; s++) {
|
|
34713
34732
|
const o = Ou[s], l = e[o];
|
|
34714
34733
|
if (l === void 0)
|
|
34715
34734
|
continue;
|
|
@@ -34718,7 +34737,7 @@ function Fse(e, t, n) {
|
|
|
34718
34737
|
const d = ER(l, tw[o]);
|
|
34719
34738
|
if (!c) {
|
|
34720
34739
|
i = !1;
|
|
34721
|
-
const h =
|
|
34740
|
+
const h = Fse[o] || o;
|
|
34722
34741
|
r += `${h}(${d}) `;
|
|
34723
34742
|
}
|
|
34724
34743
|
n && (t[o] = d);
|
|
@@ -34742,21 +34761,21 @@ function nw(e, t, n) {
|
|
|
34742
34761
|
c.startsWith("origin") ? (l = !0, s[c] = h) : r[c] = h;
|
|
34743
34762
|
}
|
|
34744
34763
|
}
|
|
34745
|
-
if (t.transform || (o || n ? r.transform =
|
|
34764
|
+
if (t.transform || (o || n ? r.transform = Bse(t, e.transform, n) : r.transform && (r.transform = "none")), l) {
|
|
34746
34765
|
const { originX: c = "50%", originY: d = "50%", originZ: h = 0 } = s;
|
|
34747
34766
|
r.transformOrigin = `${c} ${d} ${h}`;
|
|
34748
34767
|
}
|
|
34749
34768
|
}
|
|
34750
|
-
const
|
|
34769
|
+
const Vse = {
|
|
34751
34770
|
offset: "stroke-dashoffset",
|
|
34752
34771
|
array: "stroke-dasharray"
|
|
34753
|
-
},
|
|
34772
|
+
}, Wse = {
|
|
34754
34773
|
offset: "strokeDashoffset",
|
|
34755
34774
|
array: "strokeDasharray"
|
|
34756
34775
|
};
|
|
34757
|
-
function
|
|
34776
|
+
function Hse(e, t, n = 1, r = 0, i = !0) {
|
|
34758
34777
|
e.pathLength = 1;
|
|
34759
|
-
const s = i ?
|
|
34778
|
+
const s = i ? Vse : Wse;
|
|
34760
34779
|
e[s.offset] = Ye.transform(-r);
|
|
34761
34780
|
const o = Ye.transform(t), l = Ye.transform(n);
|
|
34762
34781
|
e[s.array] = `${o} ${l}`;
|
|
@@ -34764,7 +34783,7 @@ function Vse(e, t, n = 1, r = 0, i = !0) {
|
|
|
34764
34783
|
function AE(e, t, n) {
|
|
34765
34784
|
return typeof e == "string" ? e : Ye.transform(t + n * e);
|
|
34766
34785
|
}
|
|
34767
|
-
function
|
|
34786
|
+
function Use(e, t, n) {
|
|
34768
34787
|
const r = AE(t, e.x, e.width), i = AE(n, e.y, e.height);
|
|
34769
34788
|
return `${r} ${i}`;
|
|
34770
34789
|
}
|
|
@@ -34786,7 +34805,7 @@ function rw(e, {
|
|
|
34786
34805
|
}
|
|
34787
34806
|
e.attrs = e.style, e.style = {};
|
|
34788
34807
|
const { attrs: y, style: b, dimensions: C } = e;
|
|
34789
|
-
y.transform && (C && (b.transform = y.transform), delete y.transform), C && (i !== void 0 || s !== void 0 || b.transform) && (b.transformOrigin =
|
|
34808
|
+
y.transform && (C && (b.transform = y.transform), delete y.transform), C && (i !== void 0 || s !== void 0 || b.transform) && (b.transformOrigin = Use(C, i !== void 0 ? i : 0.5, s !== void 0 ? s : 0.5)), t !== void 0 && (y.x = t), n !== void 0 && (y.y = n), r !== void 0 && (y.scale = r), o !== void 0 && Hse(y, o, l, c, !1);
|
|
34790
34809
|
}
|
|
34791
34810
|
const iw = () => ({
|
|
34792
34811
|
style: {},
|
|
@@ -34833,7 +34852,7 @@ function PR(e, t, n, r) {
|
|
|
34833
34852
|
e.setAttribute(OR.has(i) ? i : Xx(i), t.attrs[i]);
|
|
34834
34853
|
}
|
|
34835
34854
|
const $p = {};
|
|
34836
|
-
function
|
|
34855
|
+
function zse(e) {
|
|
34837
34856
|
Object.assign($p, e);
|
|
34838
34857
|
}
|
|
34839
34858
|
function MR(e, { layout: t, layoutId: n }) {
|
|
@@ -34855,7 +34874,7 @@ function AR(e, t, n) {
|
|
|
34855
34874
|
}
|
|
34856
34875
|
return r;
|
|
34857
34876
|
}
|
|
34858
|
-
function
|
|
34877
|
+
function Yse(e, t) {
|
|
34859
34878
|
try {
|
|
34860
34879
|
t.dimensions = typeof e.getBBox == "function" ? e.getBBox() : e.getBoundingClientRect();
|
|
34861
34880
|
} catch {
|
|
@@ -34867,7 +34886,7 @@ function Use(e, t) {
|
|
|
34867
34886
|
};
|
|
34868
34887
|
}
|
|
34869
34888
|
}
|
|
34870
|
-
const IE = ["x", "y", "width", "height", "cx", "cy", "r"],
|
|
34889
|
+
const IE = ["x", "y", "width", "height", "cx", "cy", "r"], qse = {
|
|
34871
34890
|
useVisualState: TR({
|
|
34872
34891
|
scrapeMotionValuesFromProps: AR,
|
|
34873
34892
|
createRenderState: DR,
|
|
@@ -34891,13 +34910,13 @@ const IE = ["x", "y", "width", "height", "cx", "cy", "r"], zse = {
|
|
|
34891
34910
|
e[c] !== t[c] && (o = !0);
|
|
34892
34911
|
}
|
|
34893
34912
|
o && Bt.read(() => {
|
|
34894
|
-
|
|
34913
|
+
Yse(n, r), Bt.render(() => {
|
|
34895
34914
|
rw(r, i, sw(n.tagName), e.transformTemplate), PR(n, r);
|
|
34896
34915
|
});
|
|
34897
34916
|
});
|
|
34898
34917
|
}
|
|
34899
34918
|
})
|
|
34900
|
-
},
|
|
34919
|
+
}, Gse = {
|
|
34901
34920
|
useVisualState: TR({
|
|
34902
34921
|
scrapeMotionValuesFromProps: ow,
|
|
34903
34922
|
createRenderState: iw
|
|
@@ -34907,21 +34926,21 @@ function IR(e, t, n) {
|
|
|
34907
34926
|
for (const r in t)
|
|
34908
34927
|
!Un(t[r]) && !MR(r, n) && (e[r] = t[r]);
|
|
34909
34928
|
}
|
|
34910
|
-
function
|
|
34929
|
+
function Kse({ transformTemplate: e }, t) {
|
|
34911
34930
|
return A.useMemo(() => {
|
|
34912
34931
|
const n = iw();
|
|
34913
34932
|
return nw(n, t, e), Object.assign({}, n.vars, n.style);
|
|
34914
34933
|
}, [t]);
|
|
34915
34934
|
}
|
|
34916
|
-
function
|
|
34935
|
+
function Xse(e, t) {
|
|
34917
34936
|
const n = e.style || {}, r = {};
|
|
34918
|
-
return IR(r, n, e), Object.assign(r,
|
|
34937
|
+
return IR(r, n, e), Object.assign(r, Kse(e, t)), r;
|
|
34919
34938
|
}
|
|
34920
|
-
function
|
|
34921
|
-
const n = {}, r =
|
|
34939
|
+
function Qse(e, t) {
|
|
34940
|
+
const n = {}, r = Xse(e, t);
|
|
34922
34941
|
return e.drag && e.dragListener !== !1 && (n.draggable = !1, r.userSelect = r.WebkitUserSelect = r.WebkitTouchCallout = "none", r.touchAction = e.drag === !0 ? "none" : `pan-${e.drag === "x" ? "y" : "x"}`), e.tabIndex === void 0 && (e.onTap || e.onTapStart || e.whileTap) && (n.tabIndex = 0), n.style = r, n;
|
|
34923
34942
|
}
|
|
34924
|
-
function
|
|
34943
|
+
function Zse(e, t, n, r) {
|
|
34925
34944
|
const i = A.useMemo(() => {
|
|
34926
34945
|
const s = DR();
|
|
34927
34946
|
return rw(s, t, sw(r), e.transformTemplate), {
|
|
@@ -34935,25 +34954,25 @@ function Xse(e, t, n, r) {
|
|
|
34935
34954
|
}
|
|
34936
34955
|
return i;
|
|
34937
34956
|
}
|
|
34938
|
-
function
|
|
34957
|
+
function Jse(e = !1) {
|
|
34939
34958
|
return (n, r, i, { latestValues: s }, o) => {
|
|
34940
|
-
const c = (Zx(n) ?
|
|
34959
|
+
const c = (Zx(n) ? Zse : Qse)(r, s, o, n), d = pse(r, typeof n == "string", e), h = n !== A.Fragment ? { ...d, ...c, ref: i } : {}, { children: p } = r, y = A.useMemo(() => Un(p) ? p.get() : p, [p]);
|
|
34941
34960
|
return A.createElement(n, {
|
|
34942
34961
|
...h,
|
|
34943
34962
|
children: y
|
|
34944
34963
|
});
|
|
34945
34964
|
};
|
|
34946
34965
|
}
|
|
34947
|
-
function
|
|
34966
|
+
function eoe(e, t) {
|
|
34948
34967
|
return function(r, { forwardMotionProps: i } = { forwardMotionProps: !1 }) {
|
|
34949
34968
|
const o = {
|
|
34950
|
-
...Zx(r) ?
|
|
34969
|
+
...Zx(r) ? qse : Gse,
|
|
34951
34970
|
preloadedFeatures: e,
|
|
34952
|
-
useRender:
|
|
34971
|
+
useRender: Jse(i),
|
|
34953
34972
|
createVisualElement: t,
|
|
34954
34973
|
Component: r
|
|
34955
34974
|
};
|
|
34956
|
-
return
|
|
34975
|
+
return Tse(o);
|
|
34957
34976
|
};
|
|
34958
34977
|
}
|
|
34959
34978
|
function RR(e, t) {
|
|
@@ -34971,8 +34990,8 @@ function $m(e, t, n) {
|
|
|
34971
34990
|
const r = e.getProps();
|
|
34972
34991
|
return Jx(r, t, n !== void 0 ? n : r.custom, e);
|
|
34973
34992
|
}
|
|
34974
|
-
const
|
|
34975
|
-
class
|
|
34993
|
+
const toe = /* @__PURE__ */ qx(() => window.ScrollTimeline !== void 0);
|
|
34994
|
+
class noe {
|
|
34976
34995
|
constructor(t) {
|
|
34977
34996
|
this.stop = () => this.runAll("stop"), this.animations = t.filter(Boolean);
|
|
34978
34997
|
}
|
|
@@ -34991,7 +35010,7 @@ class eoe {
|
|
|
34991
35010
|
}
|
|
34992
35011
|
attachTimeline(t, n) {
|
|
34993
35012
|
const r = this.animations.map((i) => {
|
|
34994
|
-
if (
|
|
35013
|
+
if (toe() && i.attachTimeline)
|
|
34995
35014
|
return i.attachTimeline(t);
|
|
34996
35015
|
if (typeof n == "function")
|
|
34997
35016
|
return n(i);
|
|
@@ -35042,7 +35061,7 @@ class eoe {
|
|
|
35042
35061
|
this.runAll("complete");
|
|
35043
35062
|
}
|
|
35044
35063
|
}
|
|
35045
|
-
class
|
|
35064
|
+
class roe extends noe {
|
|
35046
35065
|
then(t, n) {
|
|
35047
35066
|
return Promise.all(this.animations).then(t).catch(n);
|
|
35048
35067
|
}
|
|
@@ -35065,17 +35084,17 @@ function lw(e) {
|
|
|
35065
35084
|
function RE(e, t) {
|
|
35066
35085
|
e.timeline = t, e.onfinish = null;
|
|
35067
35086
|
}
|
|
35068
|
-
const uw = (e) => Array.isArray(e) && typeof e[0] == "number",
|
|
35087
|
+
const uw = (e) => Array.isArray(e) && typeof e[0] == "number", ioe = {
|
|
35069
35088
|
linearEasing: void 0
|
|
35070
35089
|
};
|
|
35071
|
-
function
|
|
35090
|
+
function soe(e, t) {
|
|
35072
35091
|
const n = /* @__PURE__ */ qx(e);
|
|
35073
35092
|
return () => {
|
|
35074
35093
|
var r;
|
|
35075
|
-
return (r =
|
|
35094
|
+
return (r = ioe[t]) !== null && r !== void 0 ? r : n();
|
|
35076
35095
|
};
|
|
35077
35096
|
}
|
|
35078
|
-
const Fp = /* @__PURE__ */
|
|
35097
|
+
const Fp = /* @__PURE__ */ soe(() => {
|
|
35079
35098
|
try {
|
|
35080
35099
|
document.createElement("div").animate({ opacity: 0 }, { easing: "linear(0, 1)" });
|
|
35081
35100
|
} catch {
|
|
@@ -35114,7 +35133,7 @@ const Ni = {
|
|
|
35114
35133
|
function jR() {
|
|
35115
35134
|
return Ni.x || Ni.y;
|
|
35116
35135
|
}
|
|
35117
|
-
function
|
|
35136
|
+
function ooe(e, t, n) {
|
|
35118
35137
|
var r;
|
|
35119
35138
|
if (e instanceof Element)
|
|
35120
35139
|
return [e];
|
|
@@ -35126,7 +35145,7 @@ function ioe(e, t, n) {
|
|
|
35126
35145
|
return Array.from(e);
|
|
35127
35146
|
}
|
|
35128
35147
|
function BR(e, t) {
|
|
35129
|
-
const n =
|
|
35148
|
+
const n = ooe(e), r = new AbortController(), i = {
|
|
35130
35149
|
passive: !0,
|
|
35131
35150
|
...t,
|
|
35132
35151
|
signal: r.signal
|
|
@@ -35138,7 +35157,7 @@ function LE(e) {
|
|
|
35138
35157
|
t.pointerType === "touch" || jR() || e(t);
|
|
35139
35158
|
};
|
|
35140
35159
|
}
|
|
35141
|
-
function
|
|
35160
|
+
function aoe(e, t, n = {}) {
|
|
35142
35161
|
const [r, i, s] = BR(e, n), o = LE((l) => {
|
|
35143
35162
|
const { target: c } = l, d = t(l);
|
|
35144
35163
|
if (typeof d != "function" || !c)
|
|
@@ -35152,15 +35171,15 @@ function soe(e, t, n = {}) {
|
|
|
35152
35171
|
l.addEventListener("pointerenter", o, i);
|
|
35153
35172
|
}), s;
|
|
35154
35173
|
}
|
|
35155
|
-
const VR = (e, t) => t ? e === t ? !0 : VR(e, t.parentElement) : !1, cw = (e) => e.pointerType === "mouse" ? typeof e.button != "number" || e.button <= 0 : e.isPrimary !== !1,
|
|
35174
|
+
const VR = (e, t) => t ? e === t ? !0 : VR(e, t.parentElement) : !1, cw = (e) => e.pointerType === "mouse" ? typeof e.button != "number" || e.button <= 0 : e.isPrimary !== !1, loe = /* @__PURE__ */ new Set([
|
|
35156
35175
|
"BUTTON",
|
|
35157
35176
|
"INPUT",
|
|
35158
35177
|
"SELECT",
|
|
35159
35178
|
"TEXTAREA",
|
|
35160
35179
|
"A"
|
|
35161
35180
|
]);
|
|
35162
|
-
function
|
|
35163
|
-
return
|
|
35181
|
+
function uoe(e) {
|
|
35182
|
+
return loe.has(e.tagName) || e.tabIndex !== -1;
|
|
35164
35183
|
}
|
|
35165
35184
|
const Rc = /* @__PURE__ */ new WeakSet();
|
|
35166
35185
|
function NE(e) {
|
|
@@ -35171,7 +35190,7 @@ function NE(e) {
|
|
|
35171
35190
|
function ty(e, t) {
|
|
35172
35191
|
e.dispatchEvent(new PointerEvent("pointer" + t, { isPrimary: !0, bubbles: !0 }));
|
|
35173
35192
|
}
|
|
35174
|
-
const
|
|
35193
|
+
const coe = (e, t) => {
|
|
35175
35194
|
const n = e.currentTarget;
|
|
35176
35195
|
if (!n)
|
|
35177
35196
|
return;
|
|
@@ -35189,7 +35208,7 @@ const loe = (e, t) => {
|
|
|
35189
35208
|
function $E(e) {
|
|
35190
35209
|
return cw(e) && !jR();
|
|
35191
35210
|
}
|
|
35192
|
-
function
|
|
35211
|
+
function foe(e, t, n = {}) {
|
|
35193
35212
|
const [r, i, s] = BR(e, n), o = (l) => {
|
|
35194
35213
|
const c = l.currentTarget;
|
|
35195
35214
|
if (!$E(l) || Rc.has(c))
|
|
@@ -35205,10 +35224,10 @@ function uoe(e, t, n = {}) {
|
|
|
35205
35224
|
window.addEventListener("pointerup", p, i), window.addEventListener("pointercancel", y, i);
|
|
35206
35225
|
};
|
|
35207
35226
|
return r.forEach((l) => {
|
|
35208
|
-
!
|
|
35227
|
+
!uoe(l) && l.getAttribute("tabindex") === null && (l.tabIndex = 0), (n.useGlobalTarget ? window : l).addEventListener("pointerdown", o, i), l.addEventListener("focus", (d) => coe(d, i), i);
|
|
35209
35228
|
}), s;
|
|
35210
35229
|
}
|
|
35211
|
-
function
|
|
35230
|
+
function doe(e) {
|
|
35212
35231
|
return e === "x" || e === "y" ? Ni[e] ? null : (Ni[e] = !0, () => {
|
|
35213
35232
|
Ni[e] = !1;
|
|
35214
35233
|
}) : Ni.x || Ni.y ? null : (Ni.x = Ni.y = !0, () => {
|
|
@@ -35225,13 +35244,13 @@ const WR = /* @__PURE__ */ new Set([
|
|
|
35225
35244
|
...Ou
|
|
35226
35245
|
]);
|
|
35227
35246
|
let Yh;
|
|
35228
|
-
function
|
|
35247
|
+
function hoe() {
|
|
35229
35248
|
Yh = void 0;
|
|
35230
35249
|
}
|
|
35231
35250
|
const ds = {
|
|
35232
|
-
now: () => (Yh === void 0 && ds.set(An.isProcessing ||
|
|
35251
|
+
now: () => (Yh === void 0 && ds.set(An.isProcessing || lse.useManualTiming ? An.timestamp : performance.now()), Yh),
|
|
35233
35252
|
set: (e) => {
|
|
35234
|
-
Yh = e, queueMicrotask(
|
|
35253
|
+
Yh = e, queueMicrotask(hoe);
|
|
35235
35254
|
}
|
|
35236
35255
|
};
|
|
35237
35256
|
function fw(e, t) {
|
|
@@ -35269,8 +35288,8 @@ class hw {
|
|
|
35269
35288
|
function HR(e, t) {
|
|
35270
35289
|
return t ? e * (1e3 / t) : 0;
|
|
35271
35290
|
}
|
|
35272
|
-
const FE = 30,
|
|
35273
|
-
class
|
|
35291
|
+
const FE = 30, poe = (e) => !isNaN(parseFloat(e));
|
|
35292
|
+
class moe {
|
|
35274
35293
|
/**
|
|
35275
35294
|
* @param init - The initiating value
|
|
35276
35295
|
* @param config - Optional configuration options
|
|
@@ -35286,7 +35305,7 @@ class hoe {
|
|
|
35286
35305
|
}, this.hasAnimated = !1, this.setCurrent(t), this.owner = n.owner;
|
|
35287
35306
|
}
|
|
35288
35307
|
setCurrent(t) {
|
|
35289
|
-
this.current = t, this.updatedAt = ds.now(), this.canTrackVelocity === null && t !== void 0 && (this.canTrackVelocity =
|
|
35308
|
+
this.current = t, this.updatedAt = ds.now(), this.canTrackVelocity === null && t !== void 0 && (this.canTrackVelocity = poe(this.current));
|
|
35290
35309
|
}
|
|
35291
35310
|
setPrevFrameValue(t = this.current) {
|
|
35292
35311
|
this.prevFrameValue = t, this.prevUpdatedAt = this.updatedAt;
|
|
@@ -35465,54 +35484,54 @@ class hoe {
|
|
|
35465
35484
|
}
|
|
35466
35485
|
}
|
|
35467
35486
|
function _f(e, t) {
|
|
35468
|
-
return new
|
|
35487
|
+
return new moe(e, t);
|
|
35469
35488
|
}
|
|
35470
|
-
function
|
|
35489
|
+
function goe(e, t, n) {
|
|
35471
35490
|
e.hasValue(t) ? e.getValue(t).set(n) : e.addValue(t, _f(n));
|
|
35472
35491
|
}
|
|
35473
|
-
function
|
|
35492
|
+
function voe(e, t) {
|
|
35474
35493
|
const n = $m(e, t);
|
|
35475
35494
|
let { transitionEnd: r = {}, transition: i = {}, ...s } = n || {};
|
|
35476
35495
|
s = { ...s, ...r };
|
|
35477
35496
|
for (const o in s) {
|
|
35478
|
-
const l =
|
|
35479
|
-
|
|
35497
|
+
const l = Ose(s[o]);
|
|
35498
|
+
goe(e, o, l);
|
|
35480
35499
|
}
|
|
35481
35500
|
}
|
|
35482
|
-
function
|
|
35501
|
+
function yoe(e) {
|
|
35483
35502
|
return !!(Un(e) && e.add);
|
|
35484
35503
|
}
|
|
35485
35504
|
function M0(e, t) {
|
|
35486
35505
|
const n = e.getValue("willChange");
|
|
35487
|
-
if (
|
|
35506
|
+
if (yoe(n))
|
|
35488
35507
|
return n.add(t);
|
|
35489
35508
|
}
|
|
35490
35509
|
function UR(e) {
|
|
35491
35510
|
return e.props[xR];
|
|
35492
35511
|
}
|
|
35493
|
-
const zR = (e, t, n) => (((1 - 3 * n + 3 * t) * e + (3 * n - 6 * t)) * e + 3 * t) * e,
|
|
35494
|
-
function
|
|
35512
|
+
const zR = (e, t, n) => (((1 - 3 * n + 3 * t) * e + (3 * n - 6 * t)) * e + 3 * t) * e, boe = 1e-7, xoe = 12;
|
|
35513
|
+
function woe(e, t, n, r, i) {
|
|
35495
35514
|
let s, o, l = 0;
|
|
35496
35515
|
do
|
|
35497
35516
|
o = t + (n - t) / 2, s = zR(o, r, i) - e, s > 0 ? n = o : t = o;
|
|
35498
|
-
while (Math.abs(s) >
|
|
35517
|
+
while (Math.abs(s) > boe && ++l < xoe);
|
|
35499
35518
|
return o;
|
|
35500
35519
|
}
|
|
35501
35520
|
function zf(e, t, n, r) {
|
|
35502
35521
|
if (e === t && n === r)
|
|
35503
35522
|
return Gr;
|
|
35504
|
-
const i = (s) =>
|
|
35523
|
+
const i = (s) => woe(s, 0, 1, e, n);
|
|
35505
35524
|
return (s) => s === 0 || s === 1 ? s : zR(i(s), t, r);
|
|
35506
35525
|
}
|
|
35507
35526
|
const YR = (e) => (t) => t <= 0.5 ? e(2 * t) / 2 : (2 - e(2 * (1 - t))) / 2, qR = (e) => (t) => 1 - e(1 - t), GR = /* @__PURE__ */ zf(0.33, 1.53, 0.69, 0.99), pw = /* @__PURE__ */ qR(GR), KR = /* @__PURE__ */ YR(pw), XR = (e) => (e *= 2) < 1 ? 0.5 * pw(e) : 0.5 * (2 - Math.pow(2, -10 * (e - 1))), mw = (e) => 1 - Math.sin(Math.acos(e)), QR = qR(mw), ZR = YR(mw), JR = (e) => /^0[^.\s]+$/u.test(e);
|
|
35508
|
-
function
|
|
35527
|
+
function Soe(e) {
|
|
35509
35528
|
return typeof e == "number" ? e === 0 : e !== null ? e === "none" || e === "0" || JR(e) : !0;
|
|
35510
35529
|
}
|
|
35511
35530
|
const Xc = (e) => Math.round(e * 1e5) / 1e5, gw = /-?(?:\d+(?:\.\d+)?|\.\d+)/gu;
|
|
35512
|
-
function
|
|
35531
|
+
function Toe(e) {
|
|
35513
35532
|
return e == null;
|
|
35514
35533
|
}
|
|
35515
|
-
const
|
|
35534
|
+
const Coe = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu, vw = (e, t) => (n) => !!(typeof n == "string" && Coe.test(n) && n.startsWith(e) || t && !Toe(n) && Object.prototype.hasOwnProperty.call(n, t)), eL = (e, t, n) => (r) => {
|
|
35516
35535
|
if (typeof r != "string")
|
|
35517
35536
|
return r;
|
|
35518
35537
|
const [i, s, o, l] = r.match(gw);
|
|
@@ -35522,15 +35541,15 @@ const Soe = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\
|
|
|
35522
35541
|
[n]: parseFloat(o),
|
|
35523
35542
|
alpha: l !== void 0 ? parseFloat(l) : 1
|
|
35524
35543
|
};
|
|
35525
|
-
},
|
|
35544
|
+
}, _oe = (e) => to(0, 255, e), ny = {
|
|
35526
35545
|
...Pu,
|
|
35527
|
-
transform: (e) => Math.round(
|
|
35546
|
+
transform: (e) => Math.round(_oe(e))
|
|
35528
35547
|
}, Ya = {
|
|
35529
35548
|
test: /* @__PURE__ */ vw("rgb", "red"),
|
|
35530
35549
|
parse: /* @__PURE__ */ eL("red", "green", "blue"),
|
|
35531
35550
|
transform: ({ red: e, green: t, blue: n, alpha: r = 1 }) => "rgba(" + ny.transform(e) + ", " + ny.transform(t) + ", " + ny.transform(n) + ", " + Xc(Cf.transform(r)) + ")"
|
|
35532
35551
|
};
|
|
35533
|
-
function
|
|
35552
|
+
function Eoe(e) {
|
|
35534
35553
|
let t = "", n = "", r = "", i = "";
|
|
35535
35554
|
return e.length > 5 ? (t = e.substring(1, 3), n = e.substring(3, 5), r = e.substring(5, 7), i = e.substring(7, 9)) : (t = e.substring(1, 2), n = e.substring(2, 3), r = e.substring(3, 4), i = e.substring(4, 5), t += t, n += n, r += r, i += i), {
|
|
35536
35555
|
red: parseInt(t, 16),
|
|
@@ -35541,7 +35560,7 @@ function Coe(e) {
|
|
|
35541
35560
|
}
|
|
35542
35561
|
const A0 = {
|
|
35543
35562
|
test: /* @__PURE__ */ vw("#"),
|
|
35544
|
-
parse:
|
|
35563
|
+
parse: Eoe,
|
|
35545
35564
|
transform: Ya.transform
|
|
35546
35565
|
}, Ql = {
|
|
35547
35566
|
test: /* @__PURE__ */ vw("hsl", "hue"),
|
|
@@ -35551,12 +35570,12 @@ const A0 = {
|
|
|
35551
35570
|
test: (e) => Ya.test(e) || A0.test(e) || Ql.test(e),
|
|
35552
35571
|
parse: (e) => Ya.test(e) ? Ya.parse(e) : Ql.test(e) ? Ql.parse(e) : A0.parse(e),
|
|
35553
35572
|
transform: (e) => typeof e == "string" ? e : e.hasOwnProperty("red") ? Ya.transform(e) : Ql.transform(e)
|
|
35554
|
-
},
|
|
35555
|
-
function
|
|
35573
|
+
}, Doe = /(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;
|
|
35574
|
+
function koe(e) {
|
|
35556
35575
|
var t, n;
|
|
35557
|
-
return isNaN(e) && typeof e == "string" && (((t = e.match(gw)) === null || t === void 0 ? void 0 : t.length) || 0) + (((n = e.match(
|
|
35576
|
+
return isNaN(e) && typeof e == "string" && (((t = e.match(gw)) === null || t === void 0 ? void 0 : t.length) || 0) + (((n = e.match(Doe)) === null || n === void 0 ? void 0 : n.length) || 0) > 0;
|
|
35558
35577
|
}
|
|
35559
|
-
const tL = "number", nL = "color",
|
|
35578
|
+
const tL = "number", nL = "color", Ooe = "var", Poe = "var(", jE = "${}", Moe = /var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;
|
|
35560
35579
|
function Ef(e) {
|
|
35561
35580
|
const t = e.toString(), n = [], r = {
|
|
35562
35581
|
color: [],
|
|
@@ -35564,7 +35583,7 @@ function Ef(e) {
|
|
|
35564
35583
|
var: []
|
|
35565
35584
|
}, i = [];
|
|
35566
35585
|
let s = 0;
|
|
35567
|
-
const l = t.replace(
|
|
35586
|
+
const l = t.replace(Moe, (c) => (Hn.test(c) ? (r.color.push(s), i.push(nL), n.push(Hn.parse(c))) : c.startsWith(Poe) ? (r.var.push(s), i.push(Ooe), n.push(c)) : (r.number.push(s), i.push(tL), n.push(parseFloat(c))), ++s, jE)).split(jE);
|
|
35568
35587
|
return { values: n, split: l, indexes: r, types: i };
|
|
35569
35588
|
}
|
|
35570
35589
|
function rL(e) {
|
|
@@ -35582,18 +35601,18 @@ function iL(e) {
|
|
|
35582
35601
|
return s;
|
|
35583
35602
|
};
|
|
35584
35603
|
}
|
|
35585
|
-
const
|
|
35586
|
-
function
|
|
35604
|
+
const Aoe = (e) => typeof e == "number" ? 0 : e;
|
|
35605
|
+
function Ioe(e) {
|
|
35587
35606
|
const t = rL(e);
|
|
35588
|
-
return iL(e)(t.map(
|
|
35607
|
+
return iL(e)(t.map(Aoe));
|
|
35589
35608
|
}
|
|
35590
35609
|
const Xo = {
|
|
35591
|
-
test:
|
|
35610
|
+
test: koe,
|
|
35592
35611
|
parse: rL,
|
|
35593
35612
|
createTransformer: iL,
|
|
35594
|
-
getAnimatableNone:
|
|
35595
|
-
},
|
|
35596
|
-
function
|
|
35613
|
+
getAnimatableNone: Ioe
|
|
35614
|
+
}, Roe = /* @__PURE__ */ new Set(["brightness", "contrast", "saturate", "opacity"]);
|
|
35615
|
+
function Loe(e) {
|
|
35597
35616
|
const [t, n] = e.slice(0, -1).split("(");
|
|
35598
35617
|
if (t === "drop-shadow")
|
|
35599
35618
|
return e;
|
|
@@ -35601,16 +35620,16 @@ function Ioe(e) {
|
|
|
35601
35620
|
if (!r)
|
|
35602
35621
|
return e;
|
|
35603
35622
|
const i = n.replace(r, "");
|
|
35604
|
-
let s =
|
|
35623
|
+
let s = Roe.has(t) ? 1 : 0;
|
|
35605
35624
|
return r !== n && (s *= 100), t + "(" + s + i + ")";
|
|
35606
35625
|
}
|
|
35607
|
-
const
|
|
35626
|
+
const Noe = /\b([a-z-]*)\(.*?\)/gu, I0 = {
|
|
35608
35627
|
...Xo,
|
|
35609
35628
|
getAnimatableNone: (e) => {
|
|
35610
|
-
const t = e.match(
|
|
35611
|
-
return t ? t.map(
|
|
35629
|
+
const t = e.match(Noe);
|
|
35630
|
+
return t ? t.map(Loe).join(" ") : e;
|
|
35612
35631
|
}
|
|
35613
|
-
},
|
|
35632
|
+
}, $oe = {
|
|
35614
35633
|
...tw,
|
|
35615
35634
|
// Color props
|
|
35616
35635
|
color: Hn,
|
|
@@ -35626,17 +35645,17 @@ const Roe = /\b([a-z-]*)\(.*?\)/gu, I0 = {
|
|
|
35626
35645
|
borderLeftColor: Hn,
|
|
35627
35646
|
filter: I0,
|
|
35628
35647
|
WebkitFilter: I0
|
|
35629
|
-
}, yw = (e) =>
|
|
35648
|
+
}, yw = (e) => $oe[e];
|
|
35630
35649
|
function sL(e, t) {
|
|
35631
35650
|
let n = yw(e);
|
|
35632
35651
|
return n !== I0 && (n = Xo), n.getAnimatableNone ? n.getAnimatableNone(t) : void 0;
|
|
35633
35652
|
}
|
|
35634
|
-
const
|
|
35635
|
-
function
|
|
35653
|
+
const Foe = /* @__PURE__ */ new Set(["auto", "none", "0"]);
|
|
35654
|
+
function joe(e, t, n) {
|
|
35636
35655
|
let r = 0, i;
|
|
35637
35656
|
for (; r < e.length && !i; ) {
|
|
35638
35657
|
const s = e[r];
|
|
35639
|
-
typeof s == "string" && !
|
|
35658
|
+
typeof s == "string" && !Foe.has(s) && Ef(s).values.length && (i = e[r]), r++;
|
|
35640
35659
|
}
|
|
35641
35660
|
if (i && n)
|
|
35642
35661
|
for (const s of t)
|
|
@@ -35652,10 +35671,10 @@ const BE = (e) => e === Pu || e === Ye, VE = (e, t) => parseFloat(e.split(", ")[
|
|
|
35652
35671
|
const s = r.match(/^matrix\((.+)\)$/u);
|
|
35653
35672
|
return s ? VE(s[1], e) : 0;
|
|
35654
35673
|
}
|
|
35655
|
-
},
|
|
35656
|
-
function
|
|
35674
|
+
}, Boe = /* @__PURE__ */ new Set(["x", "y", "z"]), Voe = Ou.filter((e) => !Boe.has(e));
|
|
35675
|
+
function Woe(e) {
|
|
35657
35676
|
const t = [];
|
|
35658
|
-
return
|
|
35677
|
+
return Voe.forEach((n) => {
|
|
35659
35678
|
const r = e.getValue(n);
|
|
35660
35679
|
r !== void 0 && (t.push([n, r.get()]), r.set(n.startsWith("scale") ? 1 : 0));
|
|
35661
35680
|
}), t;
|
|
@@ -35680,7 +35699,7 @@ function oL() {
|
|
|
35680
35699
|
if (L0) {
|
|
35681
35700
|
const e = Array.from(Ja).filter((r) => r.needsMeasurement), t = new Set(e.map((r) => r.element)), n = /* @__PURE__ */ new Map();
|
|
35682
35701
|
t.forEach((r) => {
|
|
35683
|
-
const i =
|
|
35702
|
+
const i = Woe(r);
|
|
35684
35703
|
i.length && (n.set(r, i), r.render());
|
|
35685
35704
|
}), e.forEach((r) => r.measureInitialState()), t.forEach((r) => {
|
|
35686
35705
|
r.render();
|
|
@@ -35700,7 +35719,7 @@ function aL() {
|
|
|
35700
35719
|
e.readKeyframes(), e.needsMeasurement && (L0 = !0);
|
|
35701
35720
|
});
|
|
35702
35721
|
}
|
|
35703
|
-
function
|
|
35722
|
+
function Hoe() {
|
|
35704
35723
|
aL(), oL();
|
|
35705
35724
|
}
|
|
35706
35725
|
class bw {
|
|
@@ -35744,19 +35763,19 @@ class bw {
|
|
|
35744
35763
|
this.isComplete || this.scheduleResolve();
|
|
35745
35764
|
}
|
|
35746
35765
|
}
|
|
35747
|
-
const lL = (e) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),
|
|
35766
|
+
const lL = (e) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e), Uoe = (
|
|
35748
35767
|
// eslint-disable-next-line redos-detector/no-unsafe-regex -- false positive, as it can match a lot of words
|
|
35749
35768
|
/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u
|
|
35750
35769
|
);
|
|
35751
|
-
function
|
|
35752
|
-
const t =
|
|
35770
|
+
function zoe(e) {
|
|
35771
|
+
const t = Uoe.exec(e);
|
|
35753
35772
|
if (!t)
|
|
35754
35773
|
return [,];
|
|
35755
35774
|
const [, n, r, i] = t;
|
|
35756
35775
|
return [`--${n ?? r}`, i];
|
|
35757
35776
|
}
|
|
35758
35777
|
function uL(e, t, n = 1) {
|
|
35759
|
-
const [r, i] =
|
|
35778
|
+
const [r, i] = zoe(e);
|
|
35760
35779
|
if (!r)
|
|
35761
35780
|
return;
|
|
35762
35781
|
const s = window.getComputedStyle(t).getPropertyValue(r);
|
|
@@ -35766,10 +35785,10 @@ function uL(e, t, n = 1) {
|
|
|
35766
35785
|
}
|
|
35767
35786
|
return ew(i) ? uL(i, t, n + 1) : i;
|
|
35768
35787
|
}
|
|
35769
|
-
const cL = (e) => (t) => t.test(e),
|
|
35788
|
+
const cL = (e) => (t) => t.test(e), Yoe = {
|
|
35770
35789
|
test: (e) => e === "auto",
|
|
35771
35790
|
parse: (e) => e
|
|
35772
|
-
}, fL = [Pu, Ye, fs, Mo,
|
|
35791
|
+
}, fL = [Pu, Ye, fs, Mo, Lse, Rse, Yoe], HE = (e) => fL.find(cL(e));
|
|
35773
35792
|
class dL extends bw {
|
|
35774
35793
|
constructor(t, n, r, i, s) {
|
|
35775
35794
|
super(t, n, r, i, s, !0);
|
|
@@ -35801,8 +35820,8 @@ class dL extends bw {
|
|
|
35801
35820
|
resolveNoneKeyframes() {
|
|
35802
35821
|
const { unresolvedKeyframes: t, name: n } = this, r = [];
|
|
35803
35822
|
for (let i = 0; i < t.length; i++)
|
|
35804
|
-
|
|
35805
|
-
r.length &&
|
|
35823
|
+
Soe(t[i]) && r.push(i);
|
|
35824
|
+
r.length && joe(t, r, n);
|
|
35806
35825
|
}
|
|
35807
35826
|
measureInitialState() {
|
|
35808
35827
|
const { element: t, unresolvedKeyframes: n, name: r } = this;
|
|
@@ -35828,7 +35847,7 @@ class dL extends bw {
|
|
|
35828
35847
|
const UE = (e, t) => t === "zIndex" ? !1 : !!(typeof e == "number" || Array.isArray(e) || typeof e == "string" && // It's animatable if we have a string
|
|
35829
35848
|
(Xo.test(e) || e === "0") && // And it contains numbers and/or colors
|
|
35830
35849
|
!e.startsWith("url("));
|
|
35831
|
-
function
|
|
35850
|
+
function qoe(e) {
|
|
35832
35851
|
const t = e[0];
|
|
35833
35852
|
if (e.length === 1)
|
|
35834
35853
|
return !0;
|
|
@@ -35836,21 +35855,21 @@ function zoe(e) {
|
|
|
35836
35855
|
if (e[n] !== t)
|
|
35837
35856
|
return !0;
|
|
35838
35857
|
}
|
|
35839
|
-
function
|
|
35858
|
+
function Goe(e, t, n, r) {
|
|
35840
35859
|
const i = e[0];
|
|
35841
35860
|
if (i === null)
|
|
35842
35861
|
return !1;
|
|
35843
35862
|
if (t === "display" || t === "visibility")
|
|
35844
35863
|
return !0;
|
|
35845
35864
|
const s = e[e.length - 1], o = UE(i, t), l = UE(s, t);
|
|
35846
|
-
return !o || !l ? !1 :
|
|
35865
|
+
return !o || !l ? !1 : qoe(e) || (n === "spring" || lw(n)) && r;
|
|
35847
35866
|
}
|
|
35848
|
-
const
|
|
35867
|
+
const Koe = (e) => e !== null;
|
|
35849
35868
|
function Fm(e, { repeat: t, repeatType: n = "loop" }, r) {
|
|
35850
|
-
const i = e.filter(
|
|
35869
|
+
const i = e.filter(Koe), s = t && n !== "loop" && t % 2 === 1 ? 0 : i.length - 1;
|
|
35851
35870
|
return !s || r === void 0 ? i[s] : r;
|
|
35852
35871
|
}
|
|
35853
|
-
const
|
|
35872
|
+
const Xoe = 40;
|
|
35854
35873
|
class hL {
|
|
35855
35874
|
constructor({ autoplay: t = !0, delay: n = 0, type: r = "keyframes", repeat: i = 0, repeatDelay: s = 0, repeatType: o = "loop", ...l }) {
|
|
35856
35875
|
this.isStopped = !1, this.hasAttemptedResolve = !1, this.createdAt = ds.now(), this.options = {
|
|
@@ -35874,7 +35893,7 @@ class hL {
|
|
|
35874
35893
|
* to avoid a sudden jump into the animation.
|
|
35875
35894
|
*/
|
|
35876
35895
|
calcStartTime() {
|
|
35877
|
-
return this.resolvedAt ? this.resolvedAt - this.createdAt >
|
|
35896
|
+
return this.resolvedAt ? this.resolvedAt - this.createdAt > Xoe ? this.resolvedAt : this.createdAt : this.createdAt;
|
|
35878
35897
|
}
|
|
35879
35898
|
/**
|
|
35880
35899
|
* A getter for resolved data. If keyframes are not yet resolved, accessing
|
|
@@ -35882,7 +35901,7 @@ class hL {
|
|
|
35882
35901
|
* This is a deoptimisation, but at its worst still batches read/writes.
|
|
35883
35902
|
*/
|
|
35884
35903
|
get resolved() {
|
|
35885
|
-
return !this._resolved && !this.hasAttemptedResolve &&
|
|
35904
|
+
return !this._resolved && !this.hasAttemptedResolve && Hoe(), this._resolved;
|
|
35886
35905
|
}
|
|
35887
35906
|
/**
|
|
35888
35907
|
* A method to be called when the keyframes resolver completes. This method
|
|
@@ -35892,7 +35911,7 @@ class hL {
|
|
|
35892
35911
|
onKeyframesResolved(t, n) {
|
|
35893
35912
|
this.resolvedAt = ds.now(), this.hasAttemptedResolve = !0;
|
|
35894
35913
|
const { name: r, type: i, velocity: s, delay: o, onComplete: l, onUpdate: c, isGenerator: d } = this.options;
|
|
35895
|
-
if (!d && !
|
|
35914
|
+
if (!d && !Goe(t, r, i, s))
|
|
35896
35915
|
if (o)
|
|
35897
35916
|
this.options.duration = 0;
|
|
35898
35917
|
else {
|
|
@@ -35929,7 +35948,7 @@ const Qt = (e, t, n) => e + (t - e) * n;
|
|
|
35929
35948
|
function ry(e, t, n) {
|
|
35930
35949
|
return n < 0 && (n += 1), n > 1 && (n -= 1), n < 1 / 6 ? e + (t - e) * 6 * n : n < 1 / 2 ? t : n < 2 / 3 ? e + (t - e) * (2 / 3 - n) * 6 : e;
|
|
35931
35950
|
}
|
|
35932
|
-
function
|
|
35951
|
+
function Qoe({ hue: e, saturation: t, lightness: n, alpha: r }) {
|
|
35933
35952
|
e /= 360, t /= 100, n /= 100;
|
|
35934
35953
|
let i = 0, s = 0, o = 0;
|
|
35935
35954
|
if (!t)
|
|
@@ -35951,13 +35970,13 @@ function jp(e, t) {
|
|
|
35951
35970
|
const iy = (e, t, n) => {
|
|
35952
35971
|
const r = e * e, i = n * (t * t - r) + r;
|
|
35953
35972
|
return i < 0 ? 0 : Math.sqrt(i);
|
|
35954
|
-
},
|
|
35973
|
+
}, Zoe = [A0, Ya, Ql], Joe = (e) => Zoe.find((t) => t.test(e));
|
|
35955
35974
|
function zE(e) {
|
|
35956
|
-
const t =
|
|
35975
|
+
const t = Joe(e);
|
|
35957
35976
|
if (!t)
|
|
35958
35977
|
return !1;
|
|
35959
35978
|
let n = t.parse(e);
|
|
35960
|
-
return t === Ql && (n =
|
|
35979
|
+
return t === Ql && (n = Qoe(n)), n;
|
|
35961
35980
|
}
|
|
35962
35981
|
const YE = (e, t) => {
|
|
35963
35982
|
const n = zE(e), r = zE(t);
|
|
@@ -35965,15 +35984,15 @@ const YE = (e, t) => {
|
|
|
35965
35984
|
return jp(e, t);
|
|
35966
35985
|
const i = { ...n };
|
|
35967
35986
|
return (s) => (i.red = iy(n.red, r.red, s), i.green = iy(n.green, r.green, s), i.blue = iy(n.blue, r.blue, s), i.alpha = Qt(n.alpha, r.alpha, s), Ya.transform(i));
|
|
35968
|
-
},
|
|
35969
|
-
function
|
|
35987
|
+
}, eae = (e, t) => (n) => t(e(n)), Yf = (...e) => e.reduce(eae), N0 = /* @__PURE__ */ new Set(["none", "hidden"]);
|
|
35988
|
+
function tae(e, t) {
|
|
35970
35989
|
return N0.has(e) ? (n) => n <= 0 ? e : t : (n) => n >= 1 ? t : e;
|
|
35971
35990
|
}
|
|
35972
|
-
function
|
|
35991
|
+
function nae(e, t) {
|
|
35973
35992
|
return (n) => Qt(e, t, n);
|
|
35974
35993
|
}
|
|
35975
35994
|
function xw(e) {
|
|
35976
|
-
return typeof e == "number" ?
|
|
35995
|
+
return typeof e == "number" ? nae : typeof e == "string" ? ew(e) ? jp : Hn.test(e) ? YE : sae : Array.isArray(e) ? pL : typeof e == "object" ? Hn.test(e) ? YE : rae : jp;
|
|
35977
35996
|
}
|
|
35978
35997
|
function pL(e, t) {
|
|
35979
35998
|
const n = [...e], r = n.length, i = e.map((s, o) => xw(s)(s, t[o]));
|
|
@@ -35983,7 +36002,7 @@ function pL(e, t) {
|
|
|
35983
36002
|
return n;
|
|
35984
36003
|
};
|
|
35985
36004
|
}
|
|
35986
|
-
function
|
|
36005
|
+
function rae(e, t) {
|
|
35987
36006
|
const n = { ...e, ...t }, r = {};
|
|
35988
36007
|
for (const i in n)
|
|
35989
36008
|
e[i] !== void 0 && t[i] !== void 0 && (r[i] = xw(e[i])(e[i], t[i]));
|
|
@@ -35993,7 +36012,7 @@ function tae(e, t) {
|
|
|
35993
36012
|
return n;
|
|
35994
36013
|
};
|
|
35995
36014
|
}
|
|
35996
|
-
function
|
|
36015
|
+
function iae(e, t) {
|
|
35997
36016
|
var n;
|
|
35998
36017
|
const r = [], i = { color: 0, var: 0, number: 0 };
|
|
35999
36018
|
for (let s = 0; s < t.values.length; s++) {
|
|
@@ -36002,16 +36021,16 @@ function nae(e, t) {
|
|
|
36002
36021
|
}
|
|
36003
36022
|
return r;
|
|
36004
36023
|
}
|
|
36005
|
-
const
|
|
36024
|
+
const sae = (e, t) => {
|
|
36006
36025
|
const n = Xo.createTransformer(t), r = Ef(e), i = Ef(t);
|
|
36007
|
-
return r.indexes.var.length === i.indexes.var.length && r.indexes.color.length === i.indexes.color.length && r.indexes.number.length >= i.indexes.number.length ? N0.has(e) && !i.values.length || N0.has(t) && !r.values.length ?
|
|
36026
|
+
return r.indexes.var.length === i.indexes.var.length && r.indexes.color.length === i.indexes.color.length && r.indexes.number.length >= i.indexes.number.length ? N0.has(e) && !i.values.length || N0.has(t) && !r.values.length ? tae(e, t) : Yf(pL(iae(r, i), i.values), n) : jp(e, t);
|
|
36008
36027
|
};
|
|
36009
36028
|
function mL(e, t, n) {
|
|
36010
36029
|
return typeof e == "number" && typeof t == "number" && typeof n == "number" ? Qt(e, t, n) : xw(e)(e, t);
|
|
36011
36030
|
}
|
|
36012
|
-
const
|
|
36031
|
+
const oae = 5;
|
|
36013
36032
|
function gL(e, t, n) {
|
|
36014
|
-
const r = Math.max(t -
|
|
36033
|
+
const r = Math.max(t - oae, 0);
|
|
36015
36034
|
return HR(n - e(r), t - r);
|
|
36016
36035
|
}
|
|
36017
36036
|
const Jt = {
|
|
@@ -36043,7 +36062,7 @@ const Jt = {
|
|
|
36043
36062
|
minDamping: 0.05,
|
|
36044
36063
|
maxDamping: 1
|
|
36045
36064
|
}, qE = 1e-3;
|
|
36046
|
-
function
|
|
36065
|
+
function aae({ duration: e = Jt.duration, bounce: t = Jt.bounce, velocity: n = Jt.velocity, mass: r = Jt.mass }) {
|
|
36047
36066
|
let i, s, o = 1 - t;
|
|
36048
36067
|
o = to(Jt.minDamping, Jt.maxDamping, o), e = to(Jt.minDuration, Jt.maxDuration, /* @__PURE__ */ qs(e)), o < 1 ? (i = (d) => {
|
|
36049
36068
|
const h = d * o, p = h * e, y = h - n, b = $0(d, o), C = Math.exp(-p);
|
|
@@ -36058,7 +36077,7 @@ function sae({ duration: e = Jt.duration, bounce: t = Jt.bounce, velocity: n = J
|
|
|
36058
36077
|
const h = Math.exp(-d * e), p = (n - d) * (e * e);
|
|
36059
36078
|
return h * p;
|
|
36060
36079
|
});
|
|
36061
|
-
const l = 5 / e, c =
|
|
36080
|
+
const l = 5 / e, c = uae(i, s, l);
|
|
36062
36081
|
if (e = /* @__PURE__ */ Ys(e), isNaN(c))
|
|
36063
36082
|
return {
|
|
36064
36083
|
stiffness: Jt.stiffness,
|
|
@@ -36074,21 +36093,21 @@ function sae({ duration: e = Jt.duration, bounce: t = Jt.bounce, velocity: n = J
|
|
|
36074
36093
|
};
|
|
36075
36094
|
}
|
|
36076
36095
|
}
|
|
36077
|
-
const
|
|
36078
|
-
function
|
|
36096
|
+
const lae = 12;
|
|
36097
|
+
function uae(e, t, n) {
|
|
36079
36098
|
let r = n;
|
|
36080
|
-
for (let i = 1; i <
|
|
36099
|
+
for (let i = 1; i < lae; i++)
|
|
36081
36100
|
r = r - e(r) / t(r);
|
|
36082
36101
|
return r;
|
|
36083
36102
|
}
|
|
36084
36103
|
function $0(e, t) {
|
|
36085
36104
|
return e * Math.sqrt(1 - t * t);
|
|
36086
36105
|
}
|
|
36087
|
-
const
|
|
36106
|
+
const cae = ["duration", "bounce"], fae = ["stiffness", "damping", "mass"];
|
|
36088
36107
|
function GE(e, t) {
|
|
36089
36108
|
return t.some((n) => e[n] !== void 0);
|
|
36090
36109
|
}
|
|
36091
|
-
function
|
|
36110
|
+
function dae(e) {
|
|
36092
36111
|
let t = {
|
|
36093
36112
|
velocity: Jt.velocity,
|
|
36094
36113
|
stiffness: Jt.stiffness,
|
|
@@ -36097,7 +36116,7 @@ function cae(e) {
|
|
|
36097
36116
|
isResolvedFromDuration: !1,
|
|
36098
36117
|
...e
|
|
36099
36118
|
};
|
|
36100
|
-
if (!GE(e,
|
|
36119
|
+
if (!GE(e, fae) && GE(e, cae))
|
|
36101
36120
|
if (e.visualDuration) {
|
|
36102
36121
|
const n = e.visualDuration, r = 2 * Math.PI / (n * 1.2), i = r * r, s = 2 * to(0.05, 1, 1 - (e.bounce || 0)) * Math.sqrt(i);
|
|
36103
36122
|
t = {
|
|
@@ -36107,7 +36126,7 @@ function cae(e) {
|
|
|
36107
36126
|
damping: s
|
|
36108
36127
|
};
|
|
36109
36128
|
} else {
|
|
36110
|
-
const n =
|
|
36129
|
+
const n = aae(e);
|
|
36111
36130
|
t = {
|
|
36112
36131
|
...t,
|
|
36113
36132
|
...n,
|
|
@@ -36123,7 +36142,7 @@ function vL(e = Jt.visualDuration, t = Jt.bounce) {
|
|
|
36123
36142
|
bounce: t
|
|
36124
36143
|
} : e;
|
|
36125
36144
|
let { restSpeed: r, restDelta: i } = n;
|
|
36126
|
-
const s = n.keyframes[0], o = n.keyframes[n.keyframes.length - 1], l = { done: !1, value: s }, { stiffness: c, damping: d, mass: h, duration: p, velocity: y, isResolvedFromDuration: b } =
|
|
36145
|
+
const s = n.keyframes[0], o = n.keyframes[n.keyframes.length - 1], l = { done: !1, value: s }, { stiffness: c, damping: d, mass: h, duration: p, velocity: y, isResolvedFromDuration: b } = dae({
|
|
36127
36146
|
...n,
|
|
36128
36147
|
velocity: -/* @__PURE__ */ qs(n.velocity || 0)
|
|
36129
36148
|
}), C = y || 0, w = d / (2 * Math.sqrt(c * h)), E = o - s, _ = /* @__PURE__ */ qs(Math.sqrt(c / h)), I = Math.abs(E) < 5;
|
|
@@ -36197,11 +36216,11 @@ function KE({ keyframes: e, velocity: t = 0, power: n = 0.8, timeConstant: r = 3
|
|
|
36197
36216
|
}
|
|
36198
36217
|
};
|
|
36199
36218
|
}
|
|
36200
|
-
const
|
|
36219
|
+
const hae = /* @__PURE__ */ zf(0.42, 0, 1, 1), pae = /* @__PURE__ */ zf(0, 0, 0.58, 1), yL = /* @__PURE__ */ zf(0.42, 0, 0.58, 1), mae = (e) => Array.isArray(e) && typeof e[0] != "number", gae = {
|
|
36201
36220
|
linear: Gr,
|
|
36202
|
-
easeIn:
|
|
36221
|
+
easeIn: hae,
|
|
36203
36222
|
easeInOut: yL,
|
|
36204
|
-
easeOut:
|
|
36223
|
+
easeOut: pae,
|
|
36205
36224
|
circIn: mw,
|
|
36206
36225
|
circInOut: ZR,
|
|
36207
36226
|
circOut: QR,
|
|
@@ -36215,10 +36234,10 @@ const fae = /* @__PURE__ */ zf(0.42, 0, 1, 1), dae = /* @__PURE__ */ zf(0, 0, 0.
|
|
|
36215
36234
|
const [t, n, r, i] = e;
|
|
36216
36235
|
return zf(t, n, r, i);
|
|
36217
36236
|
} else if (typeof e == "string")
|
|
36218
|
-
return
|
|
36237
|
+
return gae[e];
|
|
36219
36238
|
return e;
|
|
36220
36239
|
};
|
|
36221
|
-
function
|
|
36240
|
+
function vae(e, t, n) {
|
|
36222
36241
|
const r = [], i = n || mL, s = e.length - 1;
|
|
36223
36242
|
for (let o = 0; o < s; o++) {
|
|
36224
36243
|
let l = i(e[o], e[o + 1]);
|
|
@@ -36230,7 +36249,7 @@ function mae(e, t, n) {
|
|
|
36230
36249
|
}
|
|
36231
36250
|
return r;
|
|
36232
36251
|
}
|
|
36233
|
-
function
|
|
36252
|
+
function yae(e, t, { clamp: n = !0, ease: r, mixer: i } = {}) {
|
|
36234
36253
|
const s = e.length;
|
|
36235
36254
|
if (mR(s === t.length), s === 1)
|
|
36236
36255
|
return () => t[0];
|
|
@@ -36238,7 +36257,7 @@ function gae(e, t, { clamp: n = !0, ease: r, mixer: i } = {}) {
|
|
|
36238
36257
|
return () => t[1];
|
|
36239
36258
|
const o = e[0] === e[1];
|
|
36240
36259
|
e[0] > e[s - 1] && (e = [...e].reverse(), t = [...t].reverse());
|
|
36241
|
-
const l =
|
|
36260
|
+
const l = vae(t, r, i), c = l.length, d = (h) => {
|
|
36242
36261
|
if (o && h < e[0])
|
|
36243
36262
|
return t[0];
|
|
36244
36263
|
let p = 0;
|
|
@@ -36250,41 +36269,41 @@ function gae(e, t, { clamp: n = !0, ease: r, mixer: i } = {}) {
|
|
|
36250
36269
|
};
|
|
36251
36270
|
return n ? (h) => d(to(e[0], e[s - 1], h)) : d;
|
|
36252
36271
|
}
|
|
36253
|
-
function
|
|
36272
|
+
function bae(e, t) {
|
|
36254
36273
|
const n = e[e.length - 1];
|
|
36255
36274
|
for (let r = 1; r <= t; r++) {
|
|
36256
36275
|
const i = /* @__PURE__ */ mu(0, t, r);
|
|
36257
36276
|
e.push(Qt(n, 1, i));
|
|
36258
36277
|
}
|
|
36259
36278
|
}
|
|
36260
|
-
function
|
|
36279
|
+
function xae(e) {
|
|
36261
36280
|
const t = [0];
|
|
36262
|
-
return
|
|
36281
|
+
return bae(t, e.length - 1), t;
|
|
36263
36282
|
}
|
|
36264
|
-
function
|
|
36283
|
+
function wae(e, t) {
|
|
36265
36284
|
return e.map((n) => n * t);
|
|
36266
36285
|
}
|
|
36267
|
-
function
|
|
36286
|
+
function Sae(e, t) {
|
|
36268
36287
|
return e.map(() => t || yL).splice(0, e.length - 1);
|
|
36269
36288
|
}
|
|
36270
36289
|
function Bp({ duration: e = 300, keyframes: t, times: n, ease: r = "easeInOut" }) {
|
|
36271
|
-
const i =
|
|
36290
|
+
const i = mae(r) ? r.map(XE) : XE(r), s = {
|
|
36272
36291
|
done: !1,
|
|
36273
36292
|
value: t[0]
|
|
36274
|
-
}, o =
|
|
36293
|
+
}, o = wae(
|
|
36275
36294
|
// Only use the provided offsets if they're the correct length
|
|
36276
36295
|
// TODO Maybe we should warn here if there's a length mismatch
|
|
36277
|
-
n && n.length === t.length ? n :
|
|
36296
|
+
n && n.length === t.length ? n : xae(t),
|
|
36278
36297
|
e
|
|
36279
|
-
), l =
|
|
36280
|
-
ease: Array.isArray(i) ? i :
|
|
36298
|
+
), l = yae(o, t, {
|
|
36299
|
+
ease: Array.isArray(i) ? i : Sae(t, i)
|
|
36281
36300
|
});
|
|
36282
36301
|
return {
|
|
36283
36302
|
calculatedDuration: e,
|
|
36284
36303
|
next: (c) => (s.value = l(c), s.done = c >= e, s)
|
|
36285
36304
|
};
|
|
36286
36305
|
}
|
|
36287
|
-
const
|
|
36306
|
+
const Tae = (e) => {
|
|
36288
36307
|
const t = ({ timestamp: n }) => e(n);
|
|
36289
36308
|
return {
|
|
36290
36309
|
start: () => Bt.update(t, !0),
|
|
@@ -36295,13 +36314,13 @@ const wae = (e) => {
|
|
|
36295
36314
|
*/
|
|
36296
36315
|
now: () => An.isProcessing ? An.timestamp : ds.now()
|
|
36297
36316
|
};
|
|
36298
|
-
},
|
|
36317
|
+
}, Cae = {
|
|
36299
36318
|
decay: KE,
|
|
36300
36319
|
inertia: KE,
|
|
36301
36320
|
tween: Bp,
|
|
36302
36321
|
keyframes: Bp,
|
|
36303
36322
|
spring: vL
|
|
36304
|
-
},
|
|
36323
|
+
}, _ae = (e) => e / 100;
|
|
36305
36324
|
class ww extends hL {
|
|
36306
36325
|
constructor(t) {
|
|
36307
36326
|
super(t), this.holdTime = null, this.cancelTime = null, this.currentTime = 0, this.playbackSpeed = 1, this.pendingPlayState = "running", this.startTime = null, this.state = "idle", this.stop = () => {
|
|
@@ -36318,9 +36337,9 @@ class ww extends hL {
|
|
|
36318
36337
|
super.flatten(), this._resolved && Object.assign(this._resolved, this.initPlayback(this._resolved.keyframes));
|
|
36319
36338
|
}
|
|
36320
36339
|
initPlayback(t) {
|
|
36321
|
-
const { type: n = "keyframes", repeat: r = 0, repeatDelay: i = 0, repeatType: s, velocity: o = 0 } = this.options, l = lw(n) ? n :
|
|
36340
|
+
const { type: n = "keyframes", repeat: r = 0, repeatDelay: i = 0, repeatType: s, velocity: o = 0 } = this.options, l = lw(n) ? n : Cae[n] || Bp;
|
|
36322
36341
|
let c, d;
|
|
36323
|
-
l !== Bp && typeof t[0] != "number" && (c = Yf(
|
|
36342
|
+
l !== Bp && typeof t[0] != "number" && (c = Yf(_ae, mL(t[0], t[1])), t = [0, 100]);
|
|
36324
36343
|
const h = l({ ...this.options, keyframes: t });
|
|
36325
36344
|
s === "mirror" && (d = l({
|
|
36326
36345
|
...this.options,
|
|
@@ -36391,7 +36410,7 @@ class ww extends hL {
|
|
|
36391
36410
|
}
|
|
36392
36411
|
if (this.isStopped)
|
|
36393
36412
|
return;
|
|
36394
|
-
const { driver: t =
|
|
36413
|
+
const { driver: t = Tae, onPlay: n, startTime: r } = this.options;
|
|
36395
36414
|
this.driver || (this.driver = t((s) => this.tick(s))), n && n();
|
|
36396
36415
|
const i = this.driver.now();
|
|
36397
36416
|
this.holdTime !== null ? this.startTime = i - this.holdTime : this.startTime ? this.state === "finished" && (this.startTime = i) : this.startTime = r ?? this.calcStartTime(), this.state === "finished" && this.updateFinishedPromise(), this.cancelTime = this.startTime, this.holdTime = null, this.state = "running", this.driver.start();
|
|
@@ -36425,7 +36444,7 @@ class ww extends hL {
|
|
|
36425
36444
|
return this.startTime = 0, this.tick(t, !0);
|
|
36426
36445
|
}
|
|
36427
36446
|
}
|
|
36428
|
-
const
|
|
36447
|
+
const Eae = /* @__PURE__ */ new Set([
|
|
36429
36448
|
"opacity",
|
|
36430
36449
|
"clipPath",
|
|
36431
36450
|
"filter",
|
|
@@ -36434,7 +36453,7 @@ const Cae = /* @__PURE__ */ new Set([
|
|
|
36434
36453
|
// or until we implement support for linear() easing.
|
|
36435
36454
|
// "background-color"
|
|
36436
36455
|
]);
|
|
36437
|
-
function
|
|
36456
|
+
function Dae(e, t, n, { delay: r = 0, duration: i = 300, repeat: s = 0, repeatType: o = "loop", ease: l = "easeInOut", times: c } = {}) {
|
|
36438
36457
|
const d = { [t]: n };
|
|
36439
36458
|
c && (d.offset = c);
|
|
36440
36459
|
const h = FR(l, i);
|
|
@@ -36447,11 +36466,11 @@ function _ae(e, t, n, { delay: r = 0, duration: i = 300, repeat: s = 0, repeatTy
|
|
|
36447
36466
|
direction: o === "reverse" ? "alternate" : "normal"
|
|
36448
36467
|
});
|
|
36449
36468
|
}
|
|
36450
|
-
const
|
|
36451
|
-
function
|
|
36469
|
+
const kae = /* @__PURE__ */ qx(() => Object.hasOwnProperty.call(Element.prototype, "animate")), Vp = 10, Oae = 2e4;
|
|
36470
|
+
function Pae(e) {
|
|
36452
36471
|
return lw(e.type) || e.type === "spring" || !$R(e.ease);
|
|
36453
36472
|
}
|
|
36454
|
-
function
|
|
36473
|
+
function Mae(e, t) {
|
|
36455
36474
|
const n = new ww({
|
|
36456
36475
|
...t,
|
|
36457
36476
|
keyframes: e,
|
|
@@ -36462,7 +36481,7 @@ function Oae(e, t) {
|
|
|
36462
36481
|
let r = { done: !1, value: e[0] };
|
|
36463
36482
|
const i = [];
|
|
36464
36483
|
let s = 0;
|
|
36465
|
-
for (; !r.done && s <
|
|
36484
|
+
for (; !r.done && s < Oae; )
|
|
36466
36485
|
r = n.sample(s), i.push(r.value), s += Vp;
|
|
36467
36486
|
return {
|
|
36468
36487
|
times: void 0,
|
|
@@ -36476,7 +36495,7 @@ const bL = {
|
|
|
36476
36495
|
backInOut: KR,
|
|
36477
36496
|
circInOut: ZR
|
|
36478
36497
|
};
|
|
36479
|
-
function
|
|
36498
|
+
function Aae(e) {
|
|
36480
36499
|
return e in bL;
|
|
36481
36500
|
}
|
|
36482
36501
|
class QE extends hL {
|
|
@@ -36489,11 +36508,11 @@ class QE extends hL {
|
|
|
36489
36508
|
let { duration: r = 300, times: i, ease: s, type: o, motionValue: l, name: c, startTime: d } = this.options;
|
|
36490
36509
|
if (!l.owner || !l.owner.current)
|
|
36491
36510
|
return !1;
|
|
36492
|
-
if (typeof s == "string" && Fp() &&
|
|
36493
|
-
const { onComplete: p, onUpdate: y, motionValue: b, element: C, ...w } = this.options, E =
|
|
36511
|
+
if (typeof s == "string" && Fp() && Aae(s) && (s = bL[s]), Pae(this.options)) {
|
|
36512
|
+
const { onComplete: p, onUpdate: y, motionValue: b, element: C, ...w } = this.options, E = Mae(t, w);
|
|
36494
36513
|
t = E.keyframes, t.length === 1 && (t[1] = t[0]), r = E.duration, i = E.times, s = E.ease, o = "keyframes";
|
|
36495
36514
|
}
|
|
36496
|
-
const h =
|
|
36515
|
+
const h = Dae(l.owner.current, c, t, { ...this.options, duration: r, times: i, ease: s });
|
|
36497
36516
|
return h.startTime = d ?? this.calcStartTime(), this.pendingTimeline ? (RE(h, this.pendingTimeline), this.pendingTimeline = void 0) : h.onfinish = () => {
|
|
36498
36517
|
const { onComplete: p } = this.options;
|
|
36499
36518
|
l.set(Fm(t, this.options, n)), p && p(), this.cancel(), this.resolveFinishedPromise();
|
|
@@ -36625,32 +36644,32 @@ class QE extends hL {
|
|
|
36625
36644
|
if (!n || !n.owner || !(n.owner.current instanceof HTMLElement))
|
|
36626
36645
|
return !1;
|
|
36627
36646
|
const { onUpdate: c, transformTemplate: d } = n.owner.getProps();
|
|
36628
|
-
return
|
|
36647
|
+
return kae() && r && Eae.has(r) && /**
|
|
36629
36648
|
* If we're outputting values to onUpdate then we can't use WAAPI as there's
|
|
36630
36649
|
* no way to read the value from WAAPI every frame.
|
|
36631
36650
|
*/
|
|
36632
36651
|
!c && !d && !i && s !== "mirror" && o !== 0 && l !== "inertia";
|
|
36633
36652
|
}
|
|
36634
36653
|
}
|
|
36635
|
-
const
|
|
36654
|
+
const Iae = {
|
|
36636
36655
|
type: "spring",
|
|
36637
36656
|
stiffness: 500,
|
|
36638
36657
|
damping: 25,
|
|
36639
36658
|
restSpeed: 10
|
|
36640
|
-
},
|
|
36659
|
+
}, Rae = (e) => ({
|
|
36641
36660
|
type: "spring",
|
|
36642
36661
|
stiffness: 550,
|
|
36643
36662
|
damping: e === 0 ? 2 * Math.sqrt(550) : 30,
|
|
36644
36663
|
restSpeed: 10
|
|
36645
|
-
}),
|
|
36664
|
+
}), Lae = {
|
|
36646
36665
|
type: "keyframes",
|
|
36647
36666
|
duration: 0.8
|
|
36648
|
-
},
|
|
36667
|
+
}, Nae = {
|
|
36649
36668
|
type: "keyframes",
|
|
36650
36669
|
ease: [0.25, 0.1, 0.35, 1],
|
|
36651
36670
|
duration: 0.3
|
|
36652
|
-
},
|
|
36653
|
-
function
|
|
36671
|
+
}, $ae = (e, { keyframes: t }) => t.length > 2 ? Lae : cl.has(e) ? e.startsWith("scale") ? Rae(t[1]) : Iae : Nae;
|
|
36672
|
+
function Fae({ when: e, delay: t, delayChildren: n, staggerChildren: r, staggerDirection: i, repeat: s, repeatType: o, repeatDelay: l, from: c, elapsed: d, ...h }) {
|
|
36654
36673
|
return !!Object.keys(h).length;
|
|
36655
36674
|
}
|
|
36656
36675
|
const Sw = (e, t, n, r = {}, i, s) => (o) => {
|
|
@@ -36673,9 +36692,9 @@ const Sw = (e, t, n, r = {}, i, s) => (o) => {
|
|
|
36673
36692
|
motionValue: t,
|
|
36674
36693
|
element: s ? void 0 : i
|
|
36675
36694
|
};
|
|
36676
|
-
|
|
36695
|
+
Fae(l) || (h = {
|
|
36677
36696
|
...h,
|
|
36678
|
-
|
|
36697
|
+
...$ae(e, h)
|
|
36679
36698
|
}), h.duration && (h.duration = /* @__PURE__ */ Ys(h.duration)), h.repeatDelay && (h.repeatDelay = /* @__PURE__ */ Ys(h.repeatDelay)), h.from !== void 0 && (h.keyframes[0] = h.from);
|
|
36680
36699
|
let p = !1;
|
|
36681
36700
|
if ((h.type === !1 || h.duration === 0 && !h.repeatDelay) && (h.duration = 0, h.delay === 0 && (p = !0)), p && !s && t.get() !== void 0) {
|
|
@@ -36683,11 +36702,11 @@ const Sw = (e, t, n, r = {}, i, s) => (o) => {
|
|
|
36683
36702
|
if (y !== void 0)
|
|
36684
36703
|
return Bt.update(() => {
|
|
36685
36704
|
h.onUpdate(y), h.onComplete();
|
|
36686
|
-
}), new
|
|
36705
|
+
}), new roe([]);
|
|
36687
36706
|
}
|
|
36688
36707
|
return !s && QE.supports(h) ? new QE(h) : new ww(h);
|
|
36689
36708
|
};
|
|
36690
|
-
function
|
|
36709
|
+
function jae({ protectedKeys: e, needsAnimating: t }, n) {
|
|
36691
36710
|
const r = e.hasOwnProperty(n) && t[n] !== !0;
|
|
36692
36711
|
return t[n] = !1, r;
|
|
36693
36712
|
}
|
|
@@ -36698,7 +36717,7 @@ function xL(e, t, { delay: n = 0, transitionOverride: r, type: i } = {}) {
|
|
|
36698
36717
|
const d = [], h = i && e.animationState && e.animationState.getState()[i];
|
|
36699
36718
|
for (const p in c) {
|
|
36700
36719
|
const y = e.getValue(p, (s = e.latestValues[p]) !== null && s !== void 0 ? s : null), b = c[p];
|
|
36701
|
-
if (b === void 0 || h &&
|
|
36720
|
+
if (b === void 0 || h && jae(h, p))
|
|
36702
36721
|
continue;
|
|
36703
36722
|
const C = {
|
|
36704
36723
|
delay: n,
|
|
@@ -36718,7 +36737,7 @@ function xL(e, t, { delay: n = 0, transitionOverride: r, type: i } = {}) {
|
|
|
36718
36737
|
}
|
|
36719
36738
|
return l && Promise.all(d).then(() => {
|
|
36720
36739
|
Bt.update(() => {
|
|
36721
|
-
l &&
|
|
36740
|
+
l && voe(e, l);
|
|
36722
36741
|
});
|
|
36723
36742
|
}), d;
|
|
36724
36743
|
}
|
|
@@ -36729,7 +36748,7 @@ function F0(e, t, n = {}) {
|
|
|
36729
36748
|
n.transitionOverride && (s = n.transitionOverride);
|
|
36730
36749
|
const o = i ? () => Promise.all(xL(e, i, n)) : () => Promise.resolve(), l = e.variantChildren && e.variantChildren.size ? (d = 0) => {
|
|
36731
36750
|
const { delayChildren: h = 0, staggerChildren: p, staggerDirection: y } = s;
|
|
36732
|
-
return
|
|
36751
|
+
return Bae(e, t, h + d, p, y, n);
|
|
36733
36752
|
} : () => Promise.resolve(), { when: c } = s;
|
|
36734
36753
|
if (c) {
|
|
36735
36754
|
const [d, h] = c === "beforeChildren" ? [o, l] : [l, o];
|
|
@@ -36737,19 +36756,19 @@ function F0(e, t, n = {}) {
|
|
|
36737
36756
|
} else
|
|
36738
36757
|
return Promise.all([o(), l(n.delay)]);
|
|
36739
36758
|
}
|
|
36740
|
-
function
|
|
36759
|
+
function Bae(e, t, n = 0, r = 0, i = 1, s) {
|
|
36741
36760
|
const o = [], l = (e.variantChildren.size - 1) * r, c = i === 1 ? (d = 0) => d * r : (d = 0) => l - d * r;
|
|
36742
|
-
return Array.from(e.variantChildren).sort(
|
|
36761
|
+
return Array.from(e.variantChildren).sort(Vae).forEach((d, h) => {
|
|
36743
36762
|
d.notify("AnimationStart", t), o.push(F0(d, t, {
|
|
36744
36763
|
...s,
|
|
36745
36764
|
delay: n + c(h)
|
|
36746
36765
|
}).then(() => d.notify("AnimationComplete", t)));
|
|
36747
36766
|
}), Promise.all(o);
|
|
36748
36767
|
}
|
|
36749
|
-
function
|
|
36768
|
+
function Vae(e, t) {
|
|
36750
36769
|
return e.sortNodePosition(t);
|
|
36751
36770
|
}
|
|
36752
|
-
function
|
|
36771
|
+
function Wae(e, t, n = {}) {
|
|
36753
36772
|
e.notify("AnimationStart", t);
|
|
36754
36773
|
let r;
|
|
36755
36774
|
if (Array.isArray(t)) {
|
|
@@ -36765,7 +36784,7 @@ function Bae(e, t, n = {}) {
|
|
|
36765
36784
|
e.notify("AnimationComplete", t);
|
|
36766
36785
|
});
|
|
36767
36786
|
}
|
|
36768
|
-
const
|
|
36787
|
+
const Hae = Kx.length;
|
|
36769
36788
|
function wL(e) {
|
|
36770
36789
|
if (!e)
|
|
36771
36790
|
return;
|
|
@@ -36774,18 +36793,18 @@ function wL(e) {
|
|
|
36774
36793
|
return e.props.initial !== void 0 && (n.initial = e.props.initial), n;
|
|
36775
36794
|
}
|
|
36776
36795
|
const t = {};
|
|
36777
|
-
for (let n = 0; n <
|
|
36796
|
+
for (let n = 0; n < Hae; n++) {
|
|
36778
36797
|
const r = Kx[n], i = e.props[r];
|
|
36779
36798
|
(Tf(i) || i === !1) && (t[r] = i);
|
|
36780
36799
|
}
|
|
36781
36800
|
return t;
|
|
36782
36801
|
}
|
|
36783
|
-
const
|
|
36784
|
-
function
|
|
36785
|
-
return (t) => Promise.all(t.map(({ animation: n, options: r }) =>
|
|
36802
|
+
const Uae = [...Gx].reverse(), zae = Gx.length;
|
|
36803
|
+
function Yae(e) {
|
|
36804
|
+
return (t) => Promise.all(t.map(({ animation: n, options: r }) => Wae(e, n, r)));
|
|
36786
36805
|
}
|
|
36787
|
-
function
|
|
36788
|
-
let t =
|
|
36806
|
+
function qae(e) {
|
|
36807
|
+
let t = Yae(e), n = ZE(), r = !0;
|
|
36789
36808
|
const i = (c) => (d, h) => {
|
|
36790
36809
|
var p;
|
|
36791
36810
|
const y = $m(e, h, c === "exit" ? (p = e.presenceContext) === null || p === void 0 ? void 0 : p.custom : void 0);
|
|
@@ -36801,8 +36820,8 @@ function zae(e) {
|
|
|
36801
36820
|
function o(c) {
|
|
36802
36821
|
const { props: d } = e, h = wL(e.parent) || {}, p = [], y = /* @__PURE__ */ new Set();
|
|
36803
36822
|
let b = {}, C = 1 / 0;
|
|
36804
|
-
for (let E = 0; E <
|
|
36805
|
-
const _ =
|
|
36823
|
+
for (let E = 0; E < zae; E++) {
|
|
36824
|
+
const _ = Uae[E], I = n[_], P = d[_] !== void 0 ? d[_] : h[_], V = Tf(P), N = _ === c ? I.isActive : null;
|
|
36806
36825
|
N === !1 && (C = E);
|
|
36807
36826
|
let j = P === h[_] && P !== d[_] && V;
|
|
36808
36827
|
if (j && r && e.manuallyAnimateOnMount && (j = !1), I.protectedKeys = { ...b }, // If it isn't active and hasn't *just* been set as inactive
|
|
@@ -36810,7 +36829,7 @@ function zae(e) {
|
|
|
36810
36829
|
!P && !I.prevProp || // Or if the prop doesn't define an animation
|
|
36811
36830
|
Lm(P) || typeof P == "boolean")
|
|
36812
36831
|
continue;
|
|
36813
|
-
const v =
|
|
36832
|
+
const v = Gae(I.prevProp, P);
|
|
36814
36833
|
let Y = v || // If we're making this variant active, we want to always make it active
|
|
36815
36834
|
_ === c && I.isActive && !j && V || // If we removed a higher-priority variant (i is in reverse order)
|
|
36816
36835
|
E > C && V, z = !1;
|
|
@@ -36870,7 +36889,7 @@ function zae(e) {
|
|
|
36870
36889
|
}
|
|
36871
36890
|
};
|
|
36872
36891
|
}
|
|
36873
|
-
function
|
|
36892
|
+
function Gae(e, t) {
|
|
36874
36893
|
return typeof t == "string" ? t !== e : Array.isArray(t) ? !RR(t, e) : !1;
|
|
36875
36894
|
}
|
|
36876
36895
|
function Da(e = !1) {
|
|
@@ -36899,14 +36918,14 @@ class na {
|
|
|
36899
36918
|
update() {
|
|
36900
36919
|
}
|
|
36901
36920
|
}
|
|
36902
|
-
class
|
|
36921
|
+
class Kae extends na {
|
|
36903
36922
|
/**
|
|
36904
36923
|
* We dynamically generate the AnimationState manager as it contains a reference
|
|
36905
36924
|
* to the underlying animation library. We only want to load that if we load this,
|
|
36906
36925
|
* so people can optionally code split it out using the `m` component.
|
|
36907
36926
|
*/
|
|
36908
36927
|
constructor(t) {
|
|
36909
|
-
super(t), t.animationState || (t.animationState =
|
|
36928
|
+
super(t), t.animationState || (t.animationState = qae(t));
|
|
36910
36929
|
}
|
|
36911
36930
|
updateAnimationControlsSubscription() {
|
|
36912
36931
|
const { animate: t } = this.node.getProps();
|
|
@@ -36927,10 +36946,10 @@ class qae extends na {
|
|
|
36927
36946
|
this.node.animationState.reset(), (t = this.unmountControls) === null || t === void 0 || t.call(this);
|
|
36928
36947
|
}
|
|
36929
36948
|
}
|
|
36930
|
-
let
|
|
36931
|
-
class
|
|
36949
|
+
let Xae = 0;
|
|
36950
|
+
class Qae extends na {
|
|
36932
36951
|
constructor() {
|
|
36933
|
-
super(...arguments), this.id =
|
|
36952
|
+
super(...arguments), this.id = Xae++;
|
|
36934
36953
|
}
|
|
36935
36954
|
update() {
|
|
36936
36955
|
if (!this.node.presenceContext)
|
|
@@ -36948,12 +36967,12 @@ class Kae extends na {
|
|
|
36948
36967
|
unmount() {
|
|
36949
36968
|
}
|
|
36950
36969
|
}
|
|
36951
|
-
const
|
|
36970
|
+
const Zae = {
|
|
36952
36971
|
animation: {
|
|
36953
|
-
Feature:
|
|
36972
|
+
Feature: Kae
|
|
36954
36973
|
},
|
|
36955
36974
|
exit: {
|
|
36956
|
-
Feature:
|
|
36975
|
+
Feature: Qae
|
|
36957
36976
|
}
|
|
36958
36977
|
};
|
|
36959
36978
|
function Df(e, t, n, r = { passive: !0 }) {
|
|
@@ -36967,12 +36986,12 @@ function qf(e) {
|
|
|
36967
36986
|
}
|
|
36968
36987
|
};
|
|
36969
36988
|
}
|
|
36970
|
-
const
|
|
36989
|
+
const Jae = (e) => (t) => cw(t) && e(t, qf(t));
|
|
36971
36990
|
function Qc(e, t, n, r) {
|
|
36972
|
-
return Df(e, t,
|
|
36991
|
+
return Df(e, t, Jae(n), r);
|
|
36973
36992
|
}
|
|
36974
36993
|
const JE = (e, t) => Math.abs(e - t);
|
|
36975
|
-
function
|
|
36994
|
+
function ele(e, t) {
|
|
36976
36995
|
const n = JE(e.x, t.x), r = JE(e.y, t.y);
|
|
36977
36996
|
return Math.sqrt(n ** 2 + r ** 2);
|
|
36978
36997
|
}
|
|
@@ -36981,7 +37000,7 @@ class SL {
|
|
|
36981
37000
|
if (this.startEvent = null, this.lastMoveEvent = null, this.lastMoveEventInfo = null, this.handlers = {}, this.contextWindow = window, this.updatePoint = () => {
|
|
36982
37001
|
if (!(this.lastMoveEvent && this.lastMoveEventInfo))
|
|
36983
37002
|
return;
|
|
36984
|
-
const p = oy(this.lastMoveEventInfo, this.history), y = this.startEvent !== null, b =
|
|
37003
|
+
const p = oy(this.lastMoveEventInfo, this.history), y = this.startEvent !== null, b = ele(p.offset, { x: 0, y: 0 }) >= 3;
|
|
36985
37004
|
if (!y && !b)
|
|
36986
37005
|
return;
|
|
36987
37006
|
const { point: C } = p, { timestamp: w } = An;
|
|
@@ -37022,17 +37041,17 @@ function oy({ point: e }, t) {
|
|
|
37022
37041
|
return {
|
|
37023
37042
|
point: e,
|
|
37024
37043
|
delta: eD(e, TL(t)),
|
|
37025
|
-
offset: eD(e,
|
|
37026
|
-
velocity:
|
|
37044
|
+
offset: eD(e, tle(t)),
|
|
37045
|
+
velocity: nle(t, 0.1)
|
|
37027
37046
|
};
|
|
37028
37047
|
}
|
|
37029
|
-
function
|
|
37048
|
+
function tle(e) {
|
|
37030
37049
|
return e[0];
|
|
37031
37050
|
}
|
|
37032
37051
|
function TL(e) {
|
|
37033
37052
|
return e[e.length - 1];
|
|
37034
37053
|
}
|
|
37035
|
-
function
|
|
37054
|
+
function nle(e, t) {
|
|
37036
37055
|
if (e.length < 2)
|
|
37037
37056
|
return { x: 0, y: 0 };
|
|
37038
37057
|
let n = e.length - 1, r = null;
|
|
@@ -37050,15 +37069,15 @@ function ele(e, t) {
|
|
|
37050
37069
|
};
|
|
37051
37070
|
return o.x === 1 / 0 && (o.x = 0), o.y === 1 / 0 && (o.y = 0), o;
|
|
37052
37071
|
}
|
|
37053
|
-
const CL = 1e-4,
|
|
37072
|
+
const CL = 1e-4, rle = 1 - CL, ile = 1 + CL, _L = 0.01, sle = 0 - _L, ole = 0 + _L;
|
|
37054
37073
|
function Qr(e) {
|
|
37055
37074
|
return e.max - e.min;
|
|
37056
37075
|
}
|
|
37057
|
-
function
|
|
37076
|
+
function ale(e, t, n) {
|
|
37058
37077
|
return Math.abs(e - t) <= n;
|
|
37059
37078
|
}
|
|
37060
37079
|
function tD(e, t, n, r = 0.5) {
|
|
37061
|
-
e.origin = r, e.originPoint = Qt(t.min, t.max, e.origin), e.scale = Qr(n) / Qr(t), e.translate = Qt(n.min, n.max, e.origin) - e.originPoint, (e.scale >=
|
|
37080
|
+
e.origin = r, e.originPoint = Qt(t.min, t.max, e.origin), e.scale = Qr(n) / Qr(t), e.translate = Qt(n.min, n.max, e.origin) - e.originPoint, (e.scale >= rle && e.scale <= ile || isNaN(e.scale)) && (e.scale = 1), (e.translate >= sle && e.translate <= ole || isNaN(e.translate)) && (e.translate = 0);
|
|
37062
37081
|
}
|
|
37063
37082
|
function Zc(e, t, n, r) {
|
|
37064
37083
|
tD(e.x, t.x, n.x, r ? r.originX : void 0), tD(e.y, t.y, n.y, r ? r.originY : void 0);
|
|
@@ -37066,7 +37085,7 @@ function Zc(e, t, n, r) {
|
|
|
37066
37085
|
function nD(e, t, n) {
|
|
37067
37086
|
e.min = n.min + t.min, e.max = e.min + Qr(t);
|
|
37068
37087
|
}
|
|
37069
|
-
function
|
|
37088
|
+
function lle(e, t, n) {
|
|
37070
37089
|
nD(e.x, t.x, n.x), nD(e.y, t.y, n.y);
|
|
37071
37090
|
}
|
|
37072
37091
|
function rD(e, t, n) {
|
|
@@ -37075,7 +37094,7 @@ function rD(e, t, n) {
|
|
|
37075
37094
|
function Jc(e, t, n) {
|
|
37076
37095
|
rD(e.x, t.x, n.x), rD(e.y, t.y, n.y);
|
|
37077
37096
|
}
|
|
37078
|
-
function
|
|
37097
|
+
function ule(e, { min: t, max: n }, r) {
|
|
37079
37098
|
return t !== void 0 && e < t ? e = r ? Qt(t, e, r.min) : Math.max(e, t) : n !== void 0 && e > n && (e = r ? Qt(n, e, r.max) : Math.min(e, n)), e;
|
|
37080
37099
|
}
|
|
37081
37100
|
function iD(e, t, n) {
|
|
@@ -37084,7 +37103,7 @@ function iD(e, t, n) {
|
|
|
37084
37103
|
max: n !== void 0 ? e.max + n - (e.max - e.min) : void 0
|
|
37085
37104
|
};
|
|
37086
37105
|
}
|
|
37087
|
-
function
|
|
37106
|
+
function cle(e, { top: t, left: n, bottom: r, right: i }) {
|
|
37088
37107
|
return {
|
|
37089
37108
|
x: iD(e.x, n, i),
|
|
37090
37109
|
y: iD(e.y, t, r)
|
|
@@ -37094,23 +37113,23 @@ function sD(e, t) {
|
|
|
37094
37113
|
let n = t.min - e.min, r = t.max - e.max;
|
|
37095
37114
|
return t.max - t.min < e.max - e.min && ([n, r] = [r, n]), { min: n, max: r };
|
|
37096
37115
|
}
|
|
37097
|
-
function
|
|
37116
|
+
function fle(e, t) {
|
|
37098
37117
|
return {
|
|
37099
37118
|
x: sD(e.x, t.x),
|
|
37100
37119
|
y: sD(e.y, t.y)
|
|
37101
37120
|
};
|
|
37102
37121
|
}
|
|
37103
|
-
function
|
|
37122
|
+
function dle(e, t) {
|
|
37104
37123
|
let n = 0.5;
|
|
37105
37124
|
const r = Qr(e), i = Qr(t);
|
|
37106
37125
|
return i > r ? n = /* @__PURE__ */ mu(t.min, t.max - r, e.min) : r > i && (n = /* @__PURE__ */ mu(e.min, e.max - i, t.min)), to(0, 1, n);
|
|
37107
37126
|
}
|
|
37108
|
-
function
|
|
37127
|
+
function hle(e, t) {
|
|
37109
37128
|
const n = {};
|
|
37110
37129
|
return t.min !== void 0 && (n.min = t.min - e.min), t.max !== void 0 && (n.max = t.max - e.min), n;
|
|
37111
37130
|
}
|
|
37112
37131
|
const j0 = 0.35;
|
|
37113
|
-
function
|
|
37132
|
+
function ple(e = j0) {
|
|
37114
37133
|
return e === !1 ? e = 0 : e === !0 && (e = j0), {
|
|
37115
37134
|
x: oD(e, "left", "right"),
|
|
37116
37135
|
y: oD(e, "top", "bottom")
|
|
@@ -37146,10 +37165,10 @@ function EL({ top: e, left: t, right: n, bottom: r }) {
|
|
|
37146
37165
|
y: { min: e, max: r }
|
|
37147
37166
|
};
|
|
37148
37167
|
}
|
|
37149
|
-
function
|
|
37168
|
+
function mle({ x: e, y: t }) {
|
|
37150
37169
|
return { top: t.min, right: e.max, bottom: t.max, left: e.min };
|
|
37151
37170
|
}
|
|
37152
|
-
function
|
|
37171
|
+
function gle(e, t) {
|
|
37153
37172
|
if (!t)
|
|
37154
37173
|
return e;
|
|
37155
37174
|
const n = t({ x: e.left, y: e.top }), r = t({ x: e.right, y: e.bottom });
|
|
@@ -37189,7 +37208,7 @@ function kL(e, { x: t, y: n }) {
|
|
|
37189
37208
|
V0(e.x, t.translate, t.scale, t.originPoint), V0(e.y, n.translate, n.scale, n.originPoint);
|
|
37190
37209
|
}
|
|
37191
37210
|
const dD = 0.999999999999, hD = 1.0000000000001;
|
|
37192
|
-
function
|
|
37211
|
+
function vle(e, t, n, r = !1) {
|
|
37193
37212
|
const i = n.length;
|
|
37194
37213
|
if (!i)
|
|
37195
37214
|
return;
|
|
@@ -37216,14 +37235,14 @@ function eu(e, t) {
|
|
|
37216
37235
|
pD(e.x, t.x, t.scaleX, t.scale, t.originX), pD(e.y, t.y, t.scaleY, t.scale, t.originY);
|
|
37217
37236
|
}
|
|
37218
37237
|
function OL(e, t) {
|
|
37219
|
-
return EL(
|
|
37238
|
+
return EL(gle(e.getBoundingClientRect(), t));
|
|
37220
37239
|
}
|
|
37221
|
-
function
|
|
37240
|
+
function yle(e, t, n) {
|
|
37222
37241
|
const r = OL(e, n), { scroll: i } = t;
|
|
37223
37242
|
return i && (Jl(r.x, i.offset.x), Jl(r.y, i.offset.y)), r;
|
|
37224
37243
|
}
|
|
37225
|
-
const PL = ({ current: e }) => e ? e.ownerDocument.defaultView : null,
|
|
37226
|
-
class
|
|
37244
|
+
const PL = ({ current: e }) => e ? e.ownerDocument.defaultView : null, ble = /* @__PURE__ */ new WeakMap();
|
|
37245
|
+
class xle {
|
|
37227
37246
|
constructor(t) {
|
|
37228
37247
|
this.openDragLock = null, this.isDragging = !1, this.currentDirection = null, this.originPoint = { x: 0, y: 0 }, this.constraints = !1, this.hasMutatedConstraints = !1, this.elastic = sn(), this.visualElement = t;
|
|
37229
37248
|
}
|
|
@@ -37236,7 +37255,7 @@ class yle {
|
|
|
37236
37255
|
p ? this.pauseAnimation() : this.stopAnimation(), n && this.snapToCursor(qf(h).point);
|
|
37237
37256
|
}, s = (h, p) => {
|
|
37238
37257
|
const { drag: y, dragPropagation: b, onDragStart: C } = this.getProps();
|
|
37239
|
-
if (y && !b && (this.openDragLock && this.openDragLock(), this.openDragLock =
|
|
37258
|
+
if (y && !b && (this.openDragLock && this.openDragLock(), this.openDragLock = doe(y), !this.openDragLock))
|
|
37240
37259
|
return;
|
|
37241
37260
|
this.isDragging = !0, this.currentDirection = null, this.resolveConstraints(), this.visualElement.projection && (this.visualElement.projection.isAnimationBlocked = !0, this.visualElement.projection.target = void 0), mi((E) => {
|
|
37242
37261
|
let _ = this.getAxisMotionValue(E).get() || 0;
|
|
@@ -37257,7 +37276,7 @@ class yle {
|
|
|
37257
37276
|
return;
|
|
37258
37277
|
const { offset: E } = p;
|
|
37259
37278
|
if (b && this.currentDirection === null) {
|
|
37260
|
-
this.currentDirection =
|
|
37279
|
+
this.currentDirection = wle(E), this.currentDirection !== null && C && C(this.currentDirection);
|
|
37261
37280
|
return;
|
|
37262
37281
|
}
|
|
37263
37282
|
this.updateAxis("x", p.point, E), this.updateAxis("y", p.point, E), this.visualElement.render(), w && w(h, p);
|
|
@@ -37299,13 +37318,13 @@ class yle {
|
|
|
37299
37318
|
return;
|
|
37300
37319
|
const s = this.getAxisMotionValue(t);
|
|
37301
37320
|
let o = this.originPoint[t] + r[t];
|
|
37302
|
-
this.constraints && this.constraints[t] && (o =
|
|
37321
|
+
this.constraints && this.constraints[t] && (o = ule(o, this.constraints[t], this.elastic[t])), s.set(o);
|
|
37303
37322
|
}
|
|
37304
37323
|
resolveConstraints() {
|
|
37305
37324
|
var t;
|
|
37306
37325
|
const { dragConstraints: n, dragElastic: r } = this.getProps(), i = this.visualElement.projection && !this.visualElement.projection.layout ? this.visualElement.projection.measure(!1) : (t = this.visualElement.projection) === null || t === void 0 ? void 0 : t.layout, s = this.constraints;
|
|
37307
|
-
n && Xl(n) ? this.constraints || (this.constraints = this.resolveRefConstraints()) : n && i ? this.constraints =
|
|
37308
|
-
this.constraints !== !1 && this.getAxisMotionValue(o) && (this.constraints[o] =
|
|
37326
|
+
n && Xl(n) ? this.constraints || (this.constraints = this.resolveRefConstraints()) : n && i ? this.constraints = cle(i.layoutBox, n) : this.constraints = !1, this.elastic = ple(r), s !== this.constraints && i && this.constraints && !this.hasMutatedConstraints && mi((o) => {
|
|
37327
|
+
this.constraints !== !1 && this.getAxisMotionValue(o) && (this.constraints[o] = hle(i.layoutBox[o], this.constraints[o]));
|
|
37309
37328
|
});
|
|
37310
37329
|
}
|
|
37311
37330
|
resolveRefConstraints() {
|
|
@@ -37315,10 +37334,10 @@ class yle {
|
|
|
37315
37334
|
const r = t.current, { projection: i } = this.visualElement;
|
|
37316
37335
|
if (!i || !i.layout)
|
|
37317
37336
|
return !1;
|
|
37318
|
-
const s =
|
|
37319
|
-
let o =
|
|
37337
|
+
const s = yle(r, i.root, this.visualElement.getTransformPagePoint());
|
|
37338
|
+
let o = fle(i.layout.layoutBox, s);
|
|
37320
37339
|
if (n) {
|
|
37321
|
-
const l = n(
|
|
37340
|
+
const l = n(mle(o));
|
|
37322
37341
|
this.hasMutatedConstraints = !!l, l && (o = EL(l));
|
|
37323
37342
|
}
|
|
37324
37343
|
return o;
|
|
@@ -37400,7 +37419,7 @@ class yle {
|
|
|
37400
37419
|
const l = this.getAxisMotionValue(o);
|
|
37401
37420
|
if (l && this.constraints !== !1) {
|
|
37402
37421
|
const c = l.get();
|
|
37403
|
-
i[o] =
|
|
37422
|
+
i[o] = dle({ min: c, max: c }, this.constraints[o]);
|
|
37404
37423
|
}
|
|
37405
37424
|
});
|
|
37406
37425
|
const { transformTemplate: s } = this.visualElement.getProps();
|
|
@@ -37414,7 +37433,7 @@ class yle {
|
|
|
37414
37433
|
addListeners() {
|
|
37415
37434
|
if (!this.visualElement.current)
|
|
37416
37435
|
return;
|
|
37417
|
-
|
|
37436
|
+
ble.set(this.visualElement, this);
|
|
37418
37437
|
const t = this.visualElement.current, n = Qc(t, "pointerdown", (c) => {
|
|
37419
37438
|
const { drag: d, dragListener: h = !0 } = this.getProps();
|
|
37420
37439
|
d && h && this.start(c);
|
|
@@ -37449,13 +37468,13 @@ class yle {
|
|
|
37449
37468
|
function xh(e, t, n) {
|
|
37450
37469
|
return (t === !0 || t === e) && (n === null || n === e);
|
|
37451
37470
|
}
|
|
37452
|
-
function
|
|
37471
|
+
function wle(e, t = 10) {
|
|
37453
37472
|
let n = null;
|
|
37454
37473
|
return Math.abs(e.y) > t ? n = "y" : Math.abs(e.x) > t && (n = "x"), n;
|
|
37455
37474
|
}
|
|
37456
|
-
class
|
|
37475
|
+
class Sle extends na {
|
|
37457
37476
|
constructor(t) {
|
|
37458
|
-
super(t), this.removeGroupControls = Gr, this.removeListeners = Gr, this.controls = new
|
|
37477
|
+
super(t), this.removeGroupControls = Gr, this.removeListeners = Gr, this.controls = new xle(t);
|
|
37459
37478
|
}
|
|
37460
37479
|
mount() {
|
|
37461
37480
|
const { dragControls: t } = this.node.getProps();
|
|
@@ -37468,7 +37487,7 @@ class xle extends na {
|
|
|
37468
37487
|
const mD = (e) => (t, n) => {
|
|
37469
37488
|
e && Bt.postRender(() => e(t, n));
|
|
37470
37489
|
};
|
|
37471
|
-
class
|
|
37490
|
+
class Tle extends na {
|
|
37472
37491
|
constructor() {
|
|
37473
37492
|
super(...arguments), this.removePointerDownListener = Gr;
|
|
37474
37493
|
}
|
|
@@ -37526,7 +37545,7 @@ const Tc = {
|
|
|
37526
37545
|
const n = gD(e, t.target.x), r = gD(e, t.target.y);
|
|
37527
37546
|
return `${n}% ${r}%`;
|
|
37528
37547
|
}
|
|
37529
|
-
},
|
|
37548
|
+
}, Cle = {
|
|
37530
37549
|
correct: (e, { treeScale: t, projectionDelta: n }) => {
|
|
37531
37550
|
const r = e, i = Xo.parse(e);
|
|
37532
37551
|
if (i.length > 5)
|
|
@@ -37537,7 +37556,7 @@ const Tc = {
|
|
|
37537
37556
|
return typeof i[2 + o] == "number" && (i[2 + o] /= d), typeof i[3 + o] == "number" && (i[3 + o] /= d), s(i);
|
|
37538
37557
|
}
|
|
37539
37558
|
};
|
|
37540
|
-
class
|
|
37559
|
+
class _le extends A.Component {
|
|
37541
37560
|
/**
|
|
37542
37561
|
* This only mounts projection nodes for components that
|
|
37543
37562
|
* need measuring, we might want to do it for all components
|
|
@@ -37545,7 +37564,7 @@ class Tle extends A.Component {
|
|
|
37545
37564
|
*/
|
|
37546
37565
|
componentDidMount() {
|
|
37547
37566
|
const { visualElement: t, layoutGroup: n, switchLayoutGroup: r, layoutId: i } = this.props, { projection: s } = t;
|
|
37548
|
-
|
|
37567
|
+
zse(Ele), s && (n.group && n.group.add(s), r && r.register && i && r.register(s), s.root.didUpdate(), s.addEventListener("animationComplete", () => {
|
|
37549
37568
|
this.safeToRemove();
|
|
37550
37569
|
}), s.setOptions({
|
|
37551
37570
|
...s.options,
|
|
@@ -37578,10 +37597,10 @@ class Tle extends A.Component {
|
|
|
37578
37597
|
}
|
|
37579
37598
|
}
|
|
37580
37599
|
function ML(e) {
|
|
37581
|
-
const [t, n] =
|
|
37582
|
-
return L.jsx(
|
|
37600
|
+
const [t, n] = ose(), r = A.useContext(hR);
|
|
37601
|
+
return L.jsx(_le, { ...e, layoutGroup: r, switchLayoutGroup: A.useContext(wR), isPresent: t, safeToRemove: n });
|
|
37583
37602
|
}
|
|
37584
|
-
const
|
|
37603
|
+
const Ele = {
|
|
37585
37604
|
borderRadius: {
|
|
37586
37605
|
...Tc,
|
|
37587
37606
|
applyTo: [
|
|
@@ -37595,17 +37614,17 @@ const Cle = {
|
|
|
37595
37614
|
borderTopRightRadius: Tc,
|
|
37596
37615
|
borderBottomLeftRadius: Tc,
|
|
37597
37616
|
borderBottomRightRadius: Tc,
|
|
37598
|
-
boxShadow:
|
|
37617
|
+
boxShadow: Cle
|
|
37599
37618
|
};
|
|
37600
|
-
function
|
|
37619
|
+
function Dle(e, t, n) {
|
|
37601
37620
|
const r = Un(e) ? e : _f(e);
|
|
37602
37621
|
return r.start(Sw("", r, t, n)), r.animation;
|
|
37603
37622
|
}
|
|
37604
|
-
function
|
|
37623
|
+
function kle(e) {
|
|
37605
37624
|
return e instanceof SVGElement && e.tagName !== "svg";
|
|
37606
37625
|
}
|
|
37607
|
-
const
|
|
37608
|
-
class
|
|
37626
|
+
const Ole = (e, t) => e.depth - t.depth;
|
|
37627
|
+
class Ple {
|
|
37609
37628
|
constructor() {
|
|
37610
37629
|
this.children = [], this.isDirty = !1;
|
|
37611
37630
|
}
|
|
@@ -37616,25 +37635,25 @@ class kle {
|
|
|
37616
37635
|
dw(this.children, t), this.isDirty = !0;
|
|
37617
37636
|
}
|
|
37618
37637
|
forEach(t) {
|
|
37619
|
-
this.isDirty && this.children.sort(
|
|
37638
|
+
this.isDirty && this.children.sort(Ole), this.isDirty = !1, this.children.forEach(t);
|
|
37620
37639
|
}
|
|
37621
37640
|
}
|
|
37622
|
-
function
|
|
37641
|
+
function Mle(e, t) {
|
|
37623
37642
|
const n = ds.now(), r = ({ timestamp: i }) => {
|
|
37624
37643
|
const s = i - n;
|
|
37625
37644
|
s >= t && (Ko(r), e(s - t));
|
|
37626
37645
|
};
|
|
37627
37646
|
return Bt.read(r, !0), () => Ko(r);
|
|
37628
37647
|
}
|
|
37629
|
-
const AL = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"],
|
|
37630
|
-
function
|
|
37648
|
+
const AL = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"], Ale = AL.length, vD = (e) => typeof e == "string" ? parseFloat(e) : e, yD = (e) => typeof e == "number" || Ye.test(e);
|
|
37649
|
+
function Ile(e, t, n, r, i, s) {
|
|
37631
37650
|
i ? (e.opacity = Qt(
|
|
37632
37651
|
0,
|
|
37633
37652
|
// TODO Reinstate this if only child
|
|
37634
37653
|
n.opacity !== void 0 ? n.opacity : 1,
|
|
37635
|
-
|
|
37636
|
-
), e.opacityExit = Qt(t.opacity !== void 0 ? t.opacity : 1, 0,
|
|
37637
|
-
for (let o = 0; o <
|
|
37654
|
+
Rle(r)
|
|
37655
|
+
), e.opacityExit = Qt(t.opacity !== void 0 ? t.opacity : 1, 0, Lle(r))) : s && (e.opacity = Qt(t.opacity !== void 0 ? t.opacity : 1, n.opacity !== void 0 ? n.opacity : 1, r));
|
|
37656
|
+
for (let o = 0; o < Ale; o++) {
|
|
37638
37657
|
const l = `border${AL[o]}Radius`;
|
|
37639
37658
|
let c = bD(t, l), d = bD(n, l);
|
|
37640
37659
|
if (c === void 0 && d === void 0)
|
|
@@ -37646,7 +37665,7 @@ function Mle(e, t, n, r, i, s) {
|
|
|
37646
37665
|
function bD(e, t) {
|
|
37647
37666
|
return e[t] !== void 0 ? e[t] : e.borderRadius;
|
|
37648
37667
|
}
|
|
37649
|
-
const
|
|
37668
|
+
const Rle = /* @__PURE__ */ IL(0, 0.5, QR), Lle = /* @__PURE__ */ IL(0.5, 0.95, Gr);
|
|
37650
37669
|
function IL(e, t, n) {
|
|
37651
37670
|
return (r) => r < e ? 0 : r > t ? 1 : n(/* @__PURE__ */ mu(e, t, r));
|
|
37652
37671
|
}
|
|
@@ -37662,18 +37681,18 @@ function wD(e, t) {
|
|
|
37662
37681
|
function SD(e, t, n, r, i) {
|
|
37663
37682
|
return e -= t, e = Wp(e, 1 / n, r), i !== void 0 && (e = Wp(e, 1 / i, r)), e;
|
|
37664
37683
|
}
|
|
37665
|
-
function
|
|
37684
|
+
function Nle(e, t = 0, n = 1, r = 0.5, i, s = e, o = e) {
|
|
37666
37685
|
if (fs.test(t) && (t = parseFloat(t), t = Qt(o.min, o.max, t / 100) - o.min), typeof t != "number")
|
|
37667
37686
|
return;
|
|
37668
37687
|
let l = Qt(s.min, s.max, r);
|
|
37669
37688
|
e === s && (l -= t), e.min = SD(e.min, t, n, l, i), e.max = SD(e.max, t, n, l, i);
|
|
37670
37689
|
}
|
|
37671
37690
|
function TD(e, t, [n, r, i], s, o) {
|
|
37672
|
-
|
|
37691
|
+
Nle(e, t[n], t[r], t[i], t.scale, s, o);
|
|
37673
37692
|
}
|
|
37674
|
-
const
|
|
37693
|
+
const $le = ["x", "scaleX", "originX"], Fle = ["y", "scaleY", "originY"];
|
|
37675
37694
|
function CD(e, t, n, r) {
|
|
37676
|
-
TD(e.x, t,
|
|
37695
|
+
TD(e.x, t, $le, n ? n.x : void 0, r ? r.x : void 0), TD(e.y, t, Fle, n ? n.y : void 0, r ? r.y : void 0);
|
|
37677
37696
|
}
|
|
37678
37697
|
function _D(e) {
|
|
37679
37698
|
return e.translate === 0 && e.scale === 1;
|
|
@@ -37684,7 +37703,7 @@ function RL(e) {
|
|
|
37684
37703
|
function ED(e, t) {
|
|
37685
37704
|
return e.min === t.min && e.max === t.max;
|
|
37686
37705
|
}
|
|
37687
|
-
function
|
|
37706
|
+
function jle(e, t) {
|
|
37688
37707
|
return ED(e.x, t.x) && ED(e.y, t.y);
|
|
37689
37708
|
}
|
|
37690
37709
|
function DD(e, t) {
|
|
@@ -37699,7 +37718,7 @@ function kD(e) {
|
|
|
37699
37718
|
function OD(e, t) {
|
|
37700
37719
|
return e.translate === t.translate && e.scale === t.scale && e.originPoint === t.originPoint;
|
|
37701
37720
|
}
|
|
37702
|
-
class
|
|
37721
|
+
class Ble {
|
|
37703
37722
|
constructor() {
|
|
37704
37723
|
this.members = [];
|
|
37705
37724
|
}
|
|
@@ -37753,7 +37772,7 @@ class Fle {
|
|
|
37753
37772
|
this.lead && this.lead.snapshot && (this.lead.snapshot = void 0);
|
|
37754
37773
|
}
|
|
37755
37774
|
}
|
|
37756
|
-
function
|
|
37775
|
+
function Vle(e, t, n) {
|
|
37757
37776
|
let r = "";
|
|
37758
37777
|
const i = e.x.translate / t.x, s = e.y.translate / t.y, o = (n == null ? void 0 : n.z) || 0;
|
|
37759
37778
|
if ((i || s || o) && (r = `translate3d(${i}px, ${s}px, ${o}px) `), (t.x !== 1 || t.y !== 1) && (r += `scale(${1 / t.x}, ${1 / t.y}) `), n) {
|
|
@@ -37768,8 +37787,8 @@ const Ra = {
|
|
|
37768
37787
|
totalNodes: 0,
|
|
37769
37788
|
resolvedTargetDeltas: 0,
|
|
37770
37789
|
recalculatedProjection: 0
|
|
37771
|
-
}, Lc = typeof window < "u" && window.MotionDebug !== void 0, ly = ["", "X", "Y", "Z"],
|
|
37772
|
-
let
|
|
37790
|
+
}, Lc = typeof window < "u" && window.MotionDebug !== void 0, ly = ["", "X", "Y", "Z"], Wle = { visibility: "hidden" }, PD = 1e3;
|
|
37791
|
+
let Hle = 0;
|
|
37773
37792
|
function uy(e, t, n, r) {
|
|
37774
37793
|
const { latestValues: i } = t;
|
|
37775
37794
|
i[e] && (n[e] = i[e], t.setStaticValue(e, 0), r && (r[e] = 0));
|
|
@@ -37791,14 +37810,14 @@ function NL(e) {
|
|
|
37791
37810
|
function $L({ attachResizeListener: e, defaultParent: t, measureScroll: n, checkIsScrollRoot: r, resetTransform: i }) {
|
|
37792
37811
|
return class {
|
|
37793
37812
|
constructor(o = {}, l = t == null ? void 0 : t()) {
|
|
37794
|
-
this.id =
|
|
37813
|
+
this.id = Hle++, this.animationId = 0, this.children = /* @__PURE__ */ new Set(), this.options = {}, this.isTreeAnimating = !1, this.isAnimationBlocked = !1, this.isLayoutDirty = !1, this.isProjectionDirty = !1, this.isSharedProjectionDirty = !1, this.isTransformDirty = !1, this.updateManuallyBlocked = !1, this.updateBlockedByResize = !1, this.isUpdating = !1, this.isSVG = !1, this.needsReset = !1, this.shouldResetTransform = !1, this.hasCheckedOptimisedAppear = !1, this.treeScale = { x: 1, y: 1 }, this.eventHandlers = /* @__PURE__ */ new Map(), this.hasTreeAnimated = !1, this.updateScheduled = !1, this.scheduleUpdate = () => this.update(), this.projectionUpdateScheduled = !1, this.checkUpdateFailed = () => {
|
|
37795
37814
|
this.isUpdating && (this.isUpdating = !1, this.clearAllSnapshots());
|
|
37796
37815
|
}, this.updateProjection = () => {
|
|
37797
|
-
this.projectionUpdateScheduled = !1, Lc && (Ra.totalNodes = Ra.resolvedTargetDeltas = Ra.recalculatedProjection = 0), this.nodes.forEach(
|
|
37816
|
+
this.projectionUpdateScheduled = !1, Lc && (Ra.totalNodes = Ra.resolvedTargetDeltas = Ra.recalculatedProjection = 0), this.nodes.forEach(Yle), this.nodes.forEach(Qle), this.nodes.forEach(Zle), this.nodes.forEach(qle), Lc && window.MotionDebug.record(Ra);
|
|
37798
37817
|
}, this.resolvedRelativeTargetAt = 0, this.hasProjected = !1, this.isVisible = !0, this.animationProgress = 0, this.sharedNodes = /* @__PURE__ */ new Map(), this.latestValues = o, this.root = l ? l.root || l : this, this.path = l ? [...l.path, l] : [], this.parent = l, this.depth = l ? l.depth + 1 : 0;
|
|
37799
37818
|
for (let c = 0; c < this.path.length; c++)
|
|
37800
37819
|
this.path[c].shouldResetTransform = !0;
|
|
37801
|
-
this.root === this && (this.nodes = new
|
|
37820
|
+
this.root === this && (this.nodes = new Ple());
|
|
37802
37821
|
}
|
|
37803
37822
|
addEventListener(o, l) {
|
|
37804
37823
|
return this.eventHandlers.has(o) || this.eventHandlers.set(o, new hw()), this.eventHandlers.get(o).add(l);
|
|
@@ -37816,13 +37835,13 @@ function $L({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
37816
37835
|
mount(o, l = this.root.hasTreeAnimated) {
|
|
37817
37836
|
if (this.instance)
|
|
37818
37837
|
return;
|
|
37819
|
-
this.isSVG =
|
|
37838
|
+
this.isSVG = kle(o), this.instance = o;
|
|
37820
37839
|
const { layoutId: c, layout: d, visualElement: h } = this.options;
|
|
37821
37840
|
if (h && !h.current && h.mount(o), this.root.nodes.add(this), this.parent && this.parent.children.add(this), l && (d || c) && (this.isLayoutDirty = !0), e) {
|
|
37822
37841
|
let p;
|
|
37823
37842
|
const y = () => this.root.updateBlockedByResize = !1;
|
|
37824
37843
|
e(o, () => {
|
|
37825
|
-
this.root.updateBlockedByResize = !0, p && p(), p =
|
|
37844
|
+
this.root.updateBlockedByResize = !0, p && p(), p = Mle(y, 250), qh.hasAnimatedSinceResize && (qh.hasAnimatedSinceResize = !1, this.nodes.forEach(AD));
|
|
37826
37845
|
});
|
|
37827
37846
|
}
|
|
37828
37847
|
c && this.root.registerSharedNode(c, this), this.options.animate !== !1 && h && (c || d) && this.addEventListener("didUpdate", ({ delta: p, hasLayoutChanged: y, hasRelativeTargetChanged: b, layout: C }) => {
|
|
@@ -37830,7 +37849,7 @@ function $L({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
37830
37849
|
this.target = void 0, this.relativeTarget = void 0;
|
|
37831
37850
|
return;
|
|
37832
37851
|
}
|
|
37833
|
-
const w = this.options.transition || h.getDefaultTransition() ||
|
|
37852
|
+
const w = this.options.transition || h.getDefaultTransition() || rue, { onLayoutAnimationStart: E, onLayoutAnimationComplete: _ } = h.getProps(), I = !this.targetLayout || !LL(this.targetLayout, C) || b, P = !y && b;
|
|
37834
37853
|
if (this.options.layoutRoot || this.resumeFrom && this.resumeFrom.instance || P || y && (I || !this.currentAnimation)) {
|
|
37835
37854
|
this.resumeFrom && (this.resumingFrom = this.resumeFrom, this.resumingFrom.resumingFrom = void 0), this.setAnimationOrigin(p, P);
|
|
37836
37855
|
const V = {
|
|
@@ -37864,7 +37883,7 @@ function $L({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
37864
37883
|
}
|
|
37865
37884
|
// Note: currently only running on root node
|
|
37866
37885
|
startUpdate() {
|
|
37867
|
-
this.isUpdateBlocked() || (this.isUpdating = !0, this.nodes && this.nodes.forEach(
|
|
37886
|
+
this.isUpdateBlocked() || (this.isUpdating = !0, this.nodes && this.nodes.forEach(Jle), this.animationId++);
|
|
37868
37887
|
}
|
|
37869
37888
|
getTransformTemplate() {
|
|
37870
37889
|
const { visualElement: o } = this.options;
|
|
@@ -37893,7 +37912,7 @@ function $L({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
37893
37912
|
this.unblockUpdate(), this.clearAllSnapshots(), this.nodes.forEach(MD);
|
|
37894
37913
|
return;
|
|
37895
37914
|
}
|
|
37896
|
-
this.isUpdating || this.nodes.forEach(
|
|
37915
|
+
this.isUpdating || this.nodes.forEach(Kle), this.isUpdating = !1, this.nodes.forEach(Xle), this.nodes.forEach(Ule), this.nodes.forEach(zle), this.clearAllSnapshots();
|
|
37897
37916
|
const l = ds.now();
|
|
37898
37917
|
An.delta = to(0, 1e3 / 60, l - An.timestamp), An.timestamp = l, An.isProcessing = !0, ey.update.process(An), ey.preRender.process(An), ey.render.process(An), An.isProcessing = !1;
|
|
37899
37918
|
}
|
|
@@ -37901,7 +37920,7 @@ function $L({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
37901
37920
|
this.updateScheduled || (this.updateScheduled = !0, Qx.read(this.scheduleUpdate));
|
|
37902
37921
|
}
|
|
37903
37922
|
clearAllSnapshots() {
|
|
37904
|
-
this.nodes.forEach(
|
|
37923
|
+
this.nodes.forEach(Gle), this.sharedNodes.forEach(eue);
|
|
37905
37924
|
}
|
|
37906
37925
|
scheduleUpdateProjection() {
|
|
37907
37926
|
this.projectionUpdateScheduled || (this.projectionUpdateScheduled = !0, Bt.preRender(this.updateProjection, !1, !0));
|
|
@@ -37950,7 +37969,7 @@ function $L({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
37950
37969
|
measure(o = !0) {
|
|
37951
37970
|
const l = this.measurePageBox();
|
|
37952
37971
|
let c = this.removeElementScroll(l);
|
|
37953
|
-
return o && (c = this.removeTransform(c)),
|
|
37972
|
+
return o && (c = this.removeTransform(c)), iue(c), {
|
|
37954
37973
|
animationId: this.root.animationId,
|
|
37955
37974
|
measuredBox: l,
|
|
37956
37975
|
layoutBox: c,
|
|
@@ -37964,7 +37983,7 @@ function $L({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
37964
37983
|
if (!l)
|
|
37965
37984
|
return sn();
|
|
37966
37985
|
const c = l.measureViewportBox();
|
|
37967
|
-
if (!(((o = this.scroll) === null || o === void 0 ? void 0 : o.wasRoot) || this.path.some(
|
|
37986
|
+
if (!(((o = this.scroll) === null || o === void 0 ? void 0 : o.wasRoot) || this.path.some(sue))) {
|
|
37968
37987
|
const { scroll: h } = this.root;
|
|
37969
37988
|
h && (Jl(c.x, h.offset.x), Jl(c.y, h.offset.y));
|
|
37970
37989
|
}
|
|
@@ -38036,7 +38055,7 @@ function $L({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
38036
38055
|
b && b.layout && this.animationProgress !== 1 ? (this.relativeParent = b, this.forceRelativeParentToResolveTarget(), this.relativeTarget = sn(), this.relativeTargetOrigin = sn(), Jc(this.relativeTargetOrigin, this.layout.layoutBox, b.layout.layoutBox), di(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
|
|
38037
38056
|
}
|
|
38038
38057
|
if (!(!this.relativeTarget && !this.targetDelta)) {
|
|
38039
|
-
if (this.target || (this.target = sn(), this.targetWithTransforms = sn()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(),
|
|
38058
|
+
if (this.target || (this.target = sn(), this.targetWithTransforms = sn()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), lle(this.target, this.relativeTarget, this.relativeParent.target)) : this.targetDelta ? (this.resumingFrom ? this.target = this.applyTransform(this.layout.layoutBox) : di(this.target, this.layout.layoutBox), kL(this.target, this.targetDelta)) : di(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget) {
|
|
38040
38059
|
this.attemptToResolveRelativeTarget = !1;
|
|
38041
38060
|
const b = this.getClosestProjectingParent();
|
|
38042
38061
|
b && !!b.resumingFrom == !!this.resumingFrom && !b.options.layoutScroll && b.target && this.animationProgress !== 1 ? (this.relativeParent = b, this.forceRelativeParentToResolveTarget(), this.relativeTarget = sn(), this.relativeTargetOrigin = sn(), Jc(this.relativeTargetOrigin, this.target, b.target), di(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
|
|
@@ -38063,7 +38082,7 @@ function $L({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
38063
38082
|
return;
|
|
38064
38083
|
di(this.layoutCorrected, this.layout.layoutBox);
|
|
38065
38084
|
const y = this.treeScale.x, b = this.treeScale.y;
|
|
38066
|
-
|
|
38085
|
+
vle(this.layoutCorrected, this.treeScale, this.path, c), l.layout && !l.target && (this.treeScale.x !== 1 || this.treeScale.y !== 1) && (l.target = l.layout.layoutBox, l.targetWithTransforms = sn());
|
|
38067
38086
|
const { target: C } = l;
|
|
38068
38087
|
if (!C) {
|
|
38069
38088
|
this.prevProjectionDelta && (this.createProjectionDeltas(), this.scheduleRender());
|
|
@@ -38091,17 +38110,17 @@ function $L({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
38091
38110
|
setAnimationOrigin(o, l = !1) {
|
|
38092
38111
|
const c = this.snapshot, d = c ? c.latestValues : {}, h = { ...this.latestValues }, p = Zl();
|
|
38093
38112
|
(!this.relativeParent || !this.relativeParent.options.layoutRoot) && (this.relativeTarget = this.relativeTargetOrigin = void 0), this.attemptToResolveRelativeTarget = !l;
|
|
38094
|
-
const y = sn(), b = c ? c.source : void 0, C = this.layout ? this.layout.source : void 0, w = b !== C, E = this.getStack(), _ = !E || E.members.length <= 1, I = !!(w && !_ && this.options.crossfade === !0 && !this.path.some(
|
|
38113
|
+
const y = sn(), b = c ? c.source : void 0, C = this.layout ? this.layout.source : void 0, w = b !== C, E = this.getStack(), _ = !E || E.members.length <= 1, I = !!(w && !_ && this.options.crossfade === !0 && !this.path.some(nue));
|
|
38095
38114
|
this.animationProgress = 0;
|
|
38096
38115
|
let P;
|
|
38097
38116
|
this.mixTargetDelta = (V) => {
|
|
38098
38117
|
const N = V / 1e3;
|
|
38099
|
-
ID(p.x, o.x, N), ID(p.y, o.y, N), this.setTargetDelta(p), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (Jc(y, this.layout.layoutBox, this.relativeParent.layout.layoutBox),
|
|
38118
|
+
ID(p.x, o.x, N), ID(p.y, o.y, N), this.setTargetDelta(p), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (Jc(y, this.layout.layoutBox, this.relativeParent.layout.layoutBox), tue(this.relativeTarget, this.relativeTargetOrigin, y, N), P && jle(this.relativeTarget, P) && (this.isProjectionDirty = !1), P || (P = sn()), di(P, this.relativeTarget)), w && (this.animationValues = h, Ile(h, d, this.latestValues, N, I, _)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = N;
|
|
38100
38119
|
}, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);
|
|
38101
38120
|
}
|
|
38102
38121
|
startAnimation(o) {
|
|
38103
38122
|
this.notifyListeners("animationStart"), this.currentAnimation && this.currentAnimation.stop(), this.resumingFrom && this.resumingFrom.currentAnimation && this.resumingFrom.currentAnimation.stop(), this.pendingAnimation && (Ko(this.pendingAnimation), this.pendingAnimation = void 0), this.pendingAnimation = Bt.update(() => {
|
|
38104
|
-
qh.hasAnimatedSinceResize = !0, this.currentAnimation =
|
|
38123
|
+
qh.hasAnimatedSinceResize = !0, this.currentAnimation = Dle(0, PD, {
|
|
38105
38124
|
...o,
|
|
38106
38125
|
onUpdate: (l) => {
|
|
38107
38126
|
this.mixTargetDelta(l), o.onUpdate && o.onUpdate(l);
|
|
@@ -38135,7 +38154,7 @@ function $L({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
38135
38154
|
}
|
|
38136
38155
|
}
|
|
38137
38156
|
registerSharedNode(o, l) {
|
|
38138
|
-
this.sharedNodes.has(o) || this.sharedNodes.set(o, new
|
|
38157
|
+
this.sharedNodes.has(o) || this.sharedNodes.set(o, new Ble()), this.sharedNodes.get(o).add(l);
|
|
38139
38158
|
const d = l.options.initialPromotionConfig;
|
|
38140
38159
|
l.promote({
|
|
38141
38160
|
transition: d ? d.transition : void 0,
|
|
@@ -38191,7 +38210,7 @@ function $L({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
38191
38210
|
if (!this.instance || this.isSVG)
|
|
38192
38211
|
return;
|
|
38193
38212
|
if (!this.isVisible)
|
|
38194
|
-
return
|
|
38213
|
+
return Wle;
|
|
38195
38214
|
const d = {
|
|
38196
38215
|
visibility: ""
|
|
38197
38216
|
}, h = this.getTransformTemplate();
|
|
@@ -38203,7 +38222,7 @@ function $L({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
38203
38222
|
return this.options.layoutId && (w.opacity = this.latestValues.opacity !== void 0 ? this.latestValues.opacity : 1, w.pointerEvents = zh(o == null ? void 0 : o.pointerEvents) || ""), this.hasProjected && !Ia(this.latestValues) && (w.transform = h ? h({}, "") : "none", this.hasProjected = !1), w;
|
|
38204
38223
|
}
|
|
38205
38224
|
const y = p.animationValues || p.latestValues;
|
|
38206
|
-
this.applyTransformsToTarget(), d.transform =
|
|
38225
|
+
this.applyTransformsToTarget(), d.transform = Vle(this.projectionDeltaWithTransform, this.treeScale, y), h && (d.transform = h(y, d.transform));
|
|
38207
38226
|
const { x: b, y: C } = this.projectionDelta;
|
|
38208
38227
|
d.transformOrigin = `${b.origin * 100}% ${C.origin * 100}% 0`, p.animationValues ? d.opacity = p === this ? (c = (l = y.opacity) !== null && l !== void 0 ? l : this.latestValues.opacity) !== null && c !== void 0 ? c : 1 : this.preserveOpacity ? this.latestValues.opacity : y.opacityExit : d.opacity = p === this ? y.opacity !== void 0 ? y.opacity : "" : y.opacityExit !== void 0 ? y.opacityExit : 0;
|
|
38209
38228
|
for (const w in $p) {
|
|
@@ -38231,10 +38250,10 @@ function $L({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
38231
38250
|
}
|
|
38232
38251
|
};
|
|
38233
38252
|
}
|
|
38234
|
-
function
|
|
38253
|
+
function Ule(e) {
|
|
38235
38254
|
e.updateLayout();
|
|
38236
38255
|
}
|
|
38237
|
-
function
|
|
38256
|
+
function zle(e) {
|
|
38238
38257
|
var t;
|
|
38239
38258
|
const n = ((t = e.resumeFrom) === null || t === void 0 ? void 0 : t.snapshot) || e.snapshot;
|
|
38240
38259
|
if (e.isLead() && e.layout && n && e.hasListeners("didUpdate")) {
|
|
@@ -38278,38 +38297,38 @@ function Hle(e) {
|
|
|
38278
38297
|
}
|
|
38279
38298
|
e.options.transition = void 0;
|
|
38280
38299
|
}
|
|
38281
|
-
function
|
|
38300
|
+
function Yle(e) {
|
|
38282
38301
|
Lc && Ra.totalNodes++, e.parent && (e.isProjecting() || (e.isProjectionDirty = e.parent.isProjectionDirty), e.isSharedProjectionDirty || (e.isSharedProjectionDirty = !!(e.isProjectionDirty || e.parent.isProjectionDirty || e.parent.isSharedProjectionDirty)), e.isTransformDirty || (e.isTransformDirty = e.parent.isTransformDirty));
|
|
38283
38302
|
}
|
|
38284
|
-
function
|
|
38303
|
+
function qle(e) {
|
|
38285
38304
|
e.isProjectionDirty = e.isSharedProjectionDirty = e.isTransformDirty = !1;
|
|
38286
38305
|
}
|
|
38287
|
-
function
|
|
38306
|
+
function Gle(e) {
|
|
38288
38307
|
e.clearSnapshot();
|
|
38289
38308
|
}
|
|
38290
38309
|
function MD(e) {
|
|
38291
38310
|
e.clearMeasurements();
|
|
38292
38311
|
}
|
|
38293
|
-
function
|
|
38312
|
+
function Kle(e) {
|
|
38294
38313
|
e.isLayoutDirty = !1;
|
|
38295
38314
|
}
|
|
38296
|
-
function
|
|
38315
|
+
function Xle(e) {
|
|
38297
38316
|
const { visualElement: t } = e.options;
|
|
38298
38317
|
t && t.getProps().onBeforeLayoutMeasure && t.notify("BeforeLayoutMeasure"), e.resetTransform();
|
|
38299
38318
|
}
|
|
38300
38319
|
function AD(e) {
|
|
38301
38320
|
e.finishAnimation(), e.targetDelta = e.relativeTarget = e.target = void 0, e.isProjectionDirty = !0;
|
|
38302
38321
|
}
|
|
38303
|
-
function
|
|
38322
|
+
function Qle(e) {
|
|
38304
38323
|
e.resolveTargetDelta();
|
|
38305
38324
|
}
|
|
38306
|
-
function
|
|
38325
|
+
function Zle(e) {
|
|
38307
38326
|
e.calcProjection();
|
|
38308
38327
|
}
|
|
38309
|
-
function
|
|
38328
|
+
function Jle(e) {
|
|
38310
38329
|
e.resetSkewAndRotation();
|
|
38311
38330
|
}
|
|
38312
|
-
function
|
|
38331
|
+
function eue(e) {
|
|
38313
38332
|
e.removeLeadSnapshot();
|
|
38314
38333
|
}
|
|
38315
38334
|
function ID(e, t, n) {
|
|
@@ -38318,30 +38337,30 @@ function ID(e, t, n) {
|
|
|
38318
38337
|
function RD(e, t, n, r) {
|
|
38319
38338
|
e.min = Qt(t.min, n.min, r), e.max = Qt(t.max, n.max, r);
|
|
38320
38339
|
}
|
|
38321
|
-
function
|
|
38340
|
+
function tue(e, t, n, r) {
|
|
38322
38341
|
RD(e.x, t.x, n.x, r), RD(e.y, t.y, n.y, r);
|
|
38323
38342
|
}
|
|
38324
|
-
function
|
|
38343
|
+
function nue(e) {
|
|
38325
38344
|
return e.animationValues && e.animationValues.opacityExit !== void 0;
|
|
38326
38345
|
}
|
|
38327
|
-
const
|
|
38346
|
+
const rue = {
|
|
38328
38347
|
duration: 0.45,
|
|
38329
38348
|
ease: [0.4, 0, 0.1, 1]
|
|
38330
38349
|
}, LD = (e) => typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().includes(e), ND = LD("applewebkit/") && !LD("chrome/") ? Math.round : Gr;
|
|
38331
38350
|
function $D(e) {
|
|
38332
38351
|
e.min = ND(e.min), e.max = ND(e.max);
|
|
38333
38352
|
}
|
|
38334
|
-
function
|
|
38353
|
+
function iue(e) {
|
|
38335
38354
|
$D(e.x), $D(e.y);
|
|
38336
38355
|
}
|
|
38337
38356
|
function FL(e, t, n) {
|
|
38338
|
-
return e === "position" || e === "preserve-aspect" && !
|
|
38357
|
+
return e === "position" || e === "preserve-aspect" && !ale(kD(t), kD(n), 0.2);
|
|
38339
38358
|
}
|
|
38340
|
-
function
|
|
38359
|
+
function sue(e) {
|
|
38341
38360
|
var t;
|
|
38342
38361
|
return e !== e.root && ((t = e.scroll) === null || t === void 0 ? void 0 : t.wasRoot);
|
|
38343
38362
|
}
|
|
38344
|
-
const
|
|
38363
|
+
const oue = $L({
|
|
38345
38364
|
attachResizeListener: (e, t) => Df(e, "resize", t),
|
|
38346
38365
|
measureScroll: () => ({
|
|
38347
38366
|
x: document.documentElement.scrollLeft || document.body.scrollLeft,
|
|
@@ -38357,7 +38376,7 @@ const iue = $L({
|
|
|
38357
38376
|
}),
|
|
38358
38377
|
defaultParent: () => {
|
|
38359
38378
|
if (!cy.current) {
|
|
38360
|
-
const e = new
|
|
38379
|
+
const e = new oue({});
|
|
38361
38380
|
e.mount(window), e.setOptions({ layoutScroll: !0 }), cy.current = e;
|
|
38362
38381
|
}
|
|
38363
38382
|
return cy.current;
|
|
@@ -38366,12 +38385,12 @@ const iue = $L({
|
|
|
38366
38385
|
e.style.transform = t !== void 0 ? t : "none";
|
|
38367
38386
|
},
|
|
38368
38387
|
checkIsScrollRoot: (e) => window.getComputedStyle(e).position === "fixed"
|
|
38369
|
-
}),
|
|
38388
|
+
}), aue = {
|
|
38370
38389
|
pan: {
|
|
38371
|
-
Feature:
|
|
38390
|
+
Feature: Tle
|
|
38372
38391
|
},
|
|
38373
38392
|
drag: {
|
|
38374
|
-
Feature:
|
|
38393
|
+
Feature: Sle,
|
|
38375
38394
|
ProjectionNode: jL,
|
|
38376
38395
|
MeasureLayout: ML
|
|
38377
38396
|
}
|
|
@@ -38382,15 +38401,15 @@ function FD(e, t, n) {
|
|
|
38382
38401
|
const i = "onHover" + n, s = r[i];
|
|
38383
38402
|
s && Bt.postRender(() => s(t, qf(t)));
|
|
38384
38403
|
}
|
|
38385
|
-
class
|
|
38404
|
+
class lue extends na {
|
|
38386
38405
|
mount() {
|
|
38387
38406
|
const { current: t } = this.node;
|
|
38388
|
-
t && (this.unmount =
|
|
38407
|
+
t && (this.unmount = aoe(t, (n) => (FD(this.node, n, "Start"), (r) => FD(this.node, r, "End"))));
|
|
38389
38408
|
}
|
|
38390
38409
|
unmount() {
|
|
38391
38410
|
}
|
|
38392
38411
|
}
|
|
38393
|
-
class
|
|
38412
|
+
class uue extends na {
|
|
38394
38413
|
constructor() {
|
|
38395
38414
|
super(...arguments), this.isActive = !1;
|
|
38396
38415
|
}
|
|
@@ -38418,37 +38437,37 @@ function jD(e, t, n) {
|
|
|
38418
38437
|
const i = "onTap" + (n === "End" ? "" : n), s = r[i];
|
|
38419
38438
|
s && Bt.postRender(() => s(t, qf(t)));
|
|
38420
38439
|
}
|
|
38421
|
-
class
|
|
38440
|
+
class cue extends na {
|
|
38422
38441
|
mount() {
|
|
38423
38442
|
const { current: t } = this.node;
|
|
38424
|
-
t && (this.unmount =
|
|
38443
|
+
t && (this.unmount = foe(t, (n) => (jD(this.node, n, "Start"), (r, { success: i }) => jD(this.node, r, i ? "End" : "Cancel")), { useGlobalTarget: this.node.props.globalTapTarget }));
|
|
38425
38444
|
}
|
|
38426
38445
|
unmount() {
|
|
38427
38446
|
}
|
|
38428
38447
|
}
|
|
38429
|
-
const W0 = /* @__PURE__ */ new WeakMap(), fy = /* @__PURE__ */ new WeakMap(),
|
|
38448
|
+
const W0 = /* @__PURE__ */ new WeakMap(), fy = /* @__PURE__ */ new WeakMap(), fue = (e) => {
|
|
38430
38449
|
const t = W0.get(e.target);
|
|
38431
38450
|
t && t(e);
|
|
38432
|
-
},
|
|
38433
|
-
e.forEach(
|
|
38451
|
+
}, due = (e) => {
|
|
38452
|
+
e.forEach(fue);
|
|
38434
38453
|
};
|
|
38435
|
-
function
|
|
38454
|
+
function hue({ root: e, ...t }) {
|
|
38436
38455
|
const n = e || document;
|
|
38437
38456
|
fy.has(n) || fy.set(n, {});
|
|
38438
38457
|
const r = fy.get(n), i = JSON.stringify(t);
|
|
38439
|
-
return r[i] || (r[i] = new IntersectionObserver(
|
|
38458
|
+
return r[i] || (r[i] = new IntersectionObserver(due, { root: e, ...t })), r[i];
|
|
38440
38459
|
}
|
|
38441
|
-
function
|
|
38442
|
-
const r =
|
|
38460
|
+
function pue(e, t, n) {
|
|
38461
|
+
const r = hue(t);
|
|
38443
38462
|
return W0.set(e, n), r.observe(e), () => {
|
|
38444
38463
|
W0.delete(e), r.unobserve(e);
|
|
38445
38464
|
};
|
|
38446
38465
|
}
|
|
38447
|
-
const
|
|
38466
|
+
const mue = {
|
|
38448
38467
|
some: 0,
|
|
38449
38468
|
all: 1
|
|
38450
38469
|
};
|
|
38451
|
-
class
|
|
38470
|
+
class gue extends na {
|
|
38452
38471
|
constructor() {
|
|
38453
38472
|
super(...arguments), this.hasEnteredView = !1, this.isInView = !1;
|
|
38454
38473
|
}
|
|
@@ -38457,7 +38476,7 @@ class pue extends na {
|
|
|
38457
38476
|
const { viewport: t = {} } = this.node.getProps(), { root: n, margin: r, amount: i = "some", once: s } = t, o = {
|
|
38458
38477
|
root: n ? n.current : void 0,
|
|
38459
38478
|
rootMargin: r,
|
|
38460
|
-
threshold: typeof i == "number" ? i :
|
|
38479
|
+
threshold: typeof i == "number" ? i : mue[i]
|
|
38461
38480
|
}, l = (c) => {
|
|
38462
38481
|
const { isIntersecting: d } = c;
|
|
38463
38482
|
if (this.isInView === d || (this.isInView = d, s && !d && this.hasEnteredView))
|
|
@@ -38466,7 +38485,7 @@ class pue extends na {
|
|
|
38466
38485
|
const { onViewportEnter: h, onViewportLeave: p } = this.node.getProps(), y = d ? h : p;
|
|
38467
38486
|
y && y(c);
|
|
38468
38487
|
};
|
|
38469
|
-
return
|
|
38488
|
+
return pue(this.node.current, o, l);
|
|
38470
38489
|
}
|
|
38471
38490
|
mount() {
|
|
38472
38491
|
this.startObserver();
|
|
@@ -38475,34 +38494,34 @@ class pue extends na {
|
|
|
38475
38494
|
if (typeof IntersectionObserver > "u")
|
|
38476
38495
|
return;
|
|
38477
38496
|
const { props: t, prevProps: n } = this.node;
|
|
38478
|
-
["amount", "margin", "root"].some(
|
|
38497
|
+
["amount", "margin", "root"].some(vue(t, n)) && this.startObserver();
|
|
38479
38498
|
}
|
|
38480
38499
|
unmount() {
|
|
38481
38500
|
}
|
|
38482
38501
|
}
|
|
38483
|
-
function
|
|
38502
|
+
function vue({ viewport: e = {} }, { viewport: t = {} } = {}) {
|
|
38484
38503
|
return (n) => e[n] !== t[n];
|
|
38485
38504
|
}
|
|
38486
|
-
const
|
|
38505
|
+
const yue = {
|
|
38487
38506
|
inView: {
|
|
38488
|
-
Feature:
|
|
38507
|
+
Feature: gue
|
|
38489
38508
|
},
|
|
38490
38509
|
tap: {
|
|
38491
|
-
Feature:
|
|
38510
|
+
Feature: cue
|
|
38492
38511
|
},
|
|
38493
38512
|
focus: {
|
|
38494
|
-
Feature:
|
|
38513
|
+
Feature: uue
|
|
38495
38514
|
},
|
|
38496
38515
|
hover: {
|
|
38497
|
-
Feature:
|
|
38516
|
+
Feature: lue
|
|
38498
38517
|
}
|
|
38499
|
-
},
|
|
38518
|
+
}, bue = {
|
|
38500
38519
|
layout: {
|
|
38501
38520
|
ProjectionNode: jL,
|
|
38502
38521
|
MeasureLayout: ML
|
|
38503
38522
|
}
|
|
38504
38523
|
}, H0 = { current: null }, BL = { current: !1 };
|
|
38505
|
-
function
|
|
38524
|
+
function xue() {
|
|
38506
38525
|
if (BL.current = !0, !!Yx)
|
|
38507
38526
|
if (window.matchMedia) {
|
|
38508
38527
|
const e = window.matchMedia("(prefers-reduced-motion)"), t = () => H0.current = e.matches;
|
|
@@ -38510,8 +38529,8 @@ function yue() {
|
|
|
38510
38529
|
} else
|
|
38511
38530
|
H0.current = !1;
|
|
38512
38531
|
}
|
|
38513
|
-
const
|
|
38514
|
-
function
|
|
38532
|
+
const wue = [...fL, Hn, Xo], Sue = (e) => wue.find(cL(e)), BD = /* @__PURE__ */ new WeakMap();
|
|
38533
|
+
function Tue(e, t, n) {
|
|
38515
38534
|
for (const r in t) {
|
|
38516
38535
|
const i = t[r], s = n[r];
|
|
38517
38536
|
if (Un(i))
|
|
@@ -38540,7 +38559,7 @@ const VD = [
|
|
|
38540
38559
|
"LayoutAnimationStart",
|
|
38541
38560
|
"LayoutAnimationComplete"
|
|
38542
38561
|
];
|
|
38543
|
-
class
|
|
38562
|
+
class Cue {
|
|
38544
38563
|
/**
|
|
38545
38564
|
* This method takes React props and returns found MotionValues. For example, HTML
|
|
38546
38565
|
* MotionValues will be found within the style prop, whereas for Three.js within attribute arrays.
|
|
@@ -38567,7 +38586,7 @@ class Sue {
|
|
|
38567
38586
|
}
|
|
38568
38587
|
}
|
|
38569
38588
|
mount(t) {
|
|
38570
|
-
this.current = t, BD.set(t, this), this.projection && !this.projection.instance && this.projection.mount(t), this.parent && this.isVariantNode && !this.isControllingVariants && (this.removeFromVariantTree = this.parent.addVariantChild(this)), this.values.forEach((n, r) => this.bindToMotionValue(r, n)), BL.current ||
|
|
38589
|
+
this.current = t, BD.set(t, this), this.projection && !this.projection.instance && this.projection.mount(t), this.parent && this.isVariantNode && !this.isControllingVariants && (this.removeFromVariantTree = this.parent.addVariantChild(this)), this.values.forEach((n, r) => this.bindToMotionValue(r, n)), BL.current || xue(), this.shouldReduceMotion = this.reducedMotionConfig === "never" ? !1 : this.reducedMotionConfig === "always" ? !0 : H0.current, this.parent && this.parent.children.add(this), this.update(this.props, this.presenceContext);
|
|
38571
38590
|
}
|
|
38572
38591
|
unmount() {
|
|
38573
38592
|
BD.delete(this.current), this.projection && this.projection.unmount(), Ko(this.notifyUpdate), Ko(this.render), this.valueSubscriptions.forEach((t) => t()), this.valueSubscriptions.clear(), this.removeFromVariantTree && this.removeFromVariantTree(), this.parent && this.parent.children.delete(this);
|
|
@@ -38634,7 +38653,7 @@ class Sue {
|
|
|
38634
38653
|
const s = "on" + i, o = t[s];
|
|
38635
38654
|
o && (this.propEventSubscriptions[i] = this.on(i, o));
|
|
38636
38655
|
}
|
|
38637
|
-
this.prevMotionValues =
|
|
38656
|
+
this.prevMotionValues = Tue(this, this.scrapeMotionValuesFromProps(t, this.prevProps, this), this.prevMotionValues), this.handleChildMotionValue && this.handleChildMotionValue(), this.onUpdate && this.onUpdate(this);
|
|
38638
38657
|
}
|
|
38639
38658
|
getProps() {
|
|
38640
38659
|
return this.props;
|
|
@@ -38700,7 +38719,7 @@ class Sue {
|
|
|
38700
38719
|
readValue(t, n) {
|
|
38701
38720
|
var r;
|
|
38702
38721
|
let i = this.latestValues[t] !== void 0 || !this.current ? this.latestValues[t] : (r = this.getBaseTargetFromProps(this.props, t)) !== null && r !== void 0 ? r : this.readValueFromInstance(this.current, t, this.options);
|
|
38703
|
-
return i != null && (typeof i == "string" && (lL(i) || JR(i)) ? i = parseFloat(i) : !
|
|
38722
|
+
return i != null && (typeof i == "string" && (lL(i) || JR(i)) ? i = parseFloat(i) : !Sue(i) && Xo.test(n) && (i = sL(t, n)), this.setBaseTarget(t, Un(i) ? i.get() : i)), Un(i) ? i.get() : i;
|
|
38704
38723
|
}
|
|
38705
38724
|
/**
|
|
38706
38725
|
* Set the base target to later animate back to. This is currently
|
|
@@ -38733,7 +38752,7 @@ class Sue {
|
|
|
38733
38752
|
this.events[t] && this.events[t].notify(...n);
|
|
38734
38753
|
}
|
|
38735
38754
|
}
|
|
38736
|
-
class VL extends
|
|
38755
|
+
class VL extends Cue {
|
|
38737
38756
|
constructor() {
|
|
38738
38757
|
super(...arguments), this.KeyframeResolver = dL;
|
|
38739
38758
|
}
|
|
@@ -38754,10 +38773,10 @@ class VL extends Sue {
|
|
|
38754
38773
|
}));
|
|
38755
38774
|
}
|
|
38756
38775
|
}
|
|
38757
|
-
function
|
|
38776
|
+
function _ue(e) {
|
|
38758
38777
|
return window.getComputedStyle(e);
|
|
38759
38778
|
}
|
|
38760
|
-
class
|
|
38779
|
+
class Eue extends VL {
|
|
38761
38780
|
constructor() {
|
|
38762
38781
|
super(...arguments), this.type = "html", this.renderInstance = kR;
|
|
38763
38782
|
}
|
|
@@ -38766,7 +38785,7 @@ class Cue extends VL {
|
|
|
38766
38785
|
const r = yw(n);
|
|
38767
38786
|
return r && r.default || 0;
|
|
38768
38787
|
} else {
|
|
38769
|
-
const r =
|
|
38788
|
+
const r = _ue(t), i = (_R(n) ? r.getPropertyValue(n) : r[n]) || 0;
|
|
38770
38789
|
return typeof i == "string" ? i.trim() : i;
|
|
38771
38790
|
}
|
|
38772
38791
|
}
|
|
@@ -38780,7 +38799,7 @@ class Cue extends VL {
|
|
|
38780
38799
|
return ow(t, n, r);
|
|
38781
38800
|
}
|
|
38782
38801
|
}
|
|
38783
|
-
class
|
|
38802
|
+
class Due extends VL {
|
|
38784
38803
|
constructor() {
|
|
38785
38804
|
super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox = sn;
|
|
38786
38805
|
}
|
|
@@ -38807,14 +38826,14 @@ class _ue extends VL {
|
|
|
38807
38826
|
this.isSVGTag = sw(t.tagName), super.mount(t);
|
|
38808
38827
|
}
|
|
38809
38828
|
}
|
|
38810
|
-
const
|
|
38829
|
+
const kue = (e, t) => Zx(e) ? new Due(t) : new Eue(t, {
|
|
38811
38830
|
allowProjection: e !== A.Fragment
|
|
38812
|
-
}),
|
|
38813
|
-
...
|
|
38814
|
-
...
|
|
38815
|
-
...
|
|
38816
|
-
...
|
|
38817
|
-
},
|
|
38831
|
+
}), Oue = /* @__PURE__ */ eoe({
|
|
38832
|
+
...Zae,
|
|
38833
|
+
...yue,
|
|
38834
|
+
...aue,
|
|
38835
|
+
...bue
|
|
38836
|
+
}, kue), Pue = /* @__PURE__ */ mse(Oue);
|
|
38818
38837
|
function U0(e, t, n) {
|
|
38819
38838
|
var r, i, s, o, l;
|
|
38820
38839
|
t == null && (t = 100);
|
|
@@ -38834,9 +38853,9 @@ function U0(e, t, n) {
|
|
|
38834
38853
|
}, d;
|
|
38835
38854
|
}
|
|
38836
38855
|
U0.debounce = U0;
|
|
38837
|
-
var
|
|
38838
|
-
const WD = /* @__PURE__ */ yu(
|
|
38839
|
-
function
|
|
38856
|
+
var Mue = U0;
|
|
38857
|
+
const WD = /* @__PURE__ */ yu(Mue);
|
|
38858
|
+
function Aue(e) {
|
|
38840
38859
|
let {
|
|
38841
38860
|
debounce: t,
|
|
38842
38861
|
scroll: n,
|
|
@@ -38890,7 +38909,7 @@ function Pue(e) {
|
|
|
38890
38909
|
x: z,
|
|
38891
38910
|
y: se
|
|
38892
38911
|
};
|
|
38893
|
-
c.current.element instanceof HTMLElement && i && (ae.height = c.current.element.offsetHeight, ae.width = c.current.element.offsetWidth), Object.freeze(ae), p.current && !
|
|
38912
|
+
c.current.element instanceof HTMLElement && i && (ae.height = c.current.element.offsetHeight, ae.width = c.current.element.offsetWidth), Object.freeze(ae), p.current && !Nue(c.current.lastBounds, ae) && l(c.current.lastBounds = ae);
|
|
38894
38913
|
};
|
|
38895
38914
|
return [I, h ? WD(I, h) : I, d ? WD(I, d) : I];
|
|
38896
38915
|
}, [l, i, d, h]);
|
|
@@ -38906,17 +38925,17 @@ function Pue(e) {
|
|
|
38906
38925
|
const _ = (I) => {
|
|
38907
38926
|
!I || I === c.current.element || (w(), c.current.element = I, c.current.scrollContainers = WL(I), E());
|
|
38908
38927
|
};
|
|
38909
|
-
return
|
|
38928
|
+
return Rue(C, !!n), Iue(b), A.useEffect(() => {
|
|
38910
38929
|
w(), E();
|
|
38911
38930
|
}, [n, C, b]), A.useEffect(() => w, []), [_, o, y];
|
|
38912
38931
|
}
|
|
38913
|
-
function
|
|
38932
|
+
function Iue(e) {
|
|
38914
38933
|
A.useEffect(() => {
|
|
38915
38934
|
const t = e;
|
|
38916
38935
|
return window.addEventListener("resize", t), () => void window.removeEventListener("resize", t);
|
|
38917
38936
|
}, [e]);
|
|
38918
38937
|
}
|
|
38919
|
-
function
|
|
38938
|
+
function Rue(e, t) {
|
|
38920
38939
|
A.useEffect(() => {
|
|
38921
38940
|
if (t) {
|
|
38922
38941
|
const n = e;
|
|
@@ -38938,10 +38957,10 @@ function WL(e) {
|
|
|
38938
38957
|
} = window.getComputedStyle(e);
|
|
38939
38958
|
return [n, r, i].some((s) => s === "auto" || s === "scroll") && t.push(e), [...t, ...WL(e.parentElement)];
|
|
38940
38959
|
}
|
|
38941
|
-
const
|
|
38960
|
+
const Lue = ["x", "y", "top", "bottom", "left", "right", "width", "height"], Nue = (e, t) => Lue.every((n) => e[n] === t[n]);
|
|
38942
38961
|
var HL = (e) => {
|
|
38943
38962
|
throw TypeError(e);
|
|
38944
|
-
}, UL = (e, t, n) => t.has(e) || HL("Cannot " + n), Ke = (e, t, n) => (UL(e, t, "read from private field"), n ? n.call(e) : t.get(e)), hi = (e, t, n) => t.has(e) ? HL("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), La = (e, t, n, r) => (UL(e, t, "write to private field"), t.set(e, n), n), Ao,
|
|
38963
|
+
}, UL = (e, t, n) => t.has(e) || HL("Cannot " + n), Ke = (e, t, n) => (UL(e, t, "read from private field"), n ? n.call(e) : t.get(e)), hi = (e, t, n) => t.has(e) ? HL("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, n), La = (e, t, n, r) => (UL(e, t, "write to private field"), t.set(e, n), n), Ao, $ue = class {
|
|
38945
38964
|
constructor() {
|
|
38946
38965
|
hi(this, Ao), this.register = (e) => {
|
|
38947
38966
|
Ke(this, Ao).push(e);
|
|
@@ -39005,7 +39024,7 @@ var jr, Nc, Br, Rs, Na, z0, Y0, q0, Gh, Kh, $c, zL = class Xh {
|
|
|
39005
39024
|
}), !r || !r.backends || r.backends.length < 1)
|
|
39006
39025
|
throw new Error(`You must specify at least one Backend, if you are coming from 2.x.x (or don't understand this error)
|
|
39007
39026
|
see this guide: https://github.com/louisbrunner/dnd-multi-backend/tree/master/packages/react-dnd-multi-backend#migrating-from-2xx`);
|
|
39008
|
-
La(this, Nc, new
|
|
39027
|
+
La(this, Nc, new $ue()), La(this, Br, {}), La(this, Rs, []);
|
|
39009
39028
|
for (let i of r.backends) {
|
|
39010
39029
|
let s = Ke(this, z0).call(this, t, n, i);
|
|
39011
39030
|
Ke(this, Br)[s.id] = s, Ke(this, Rs).push(s);
|
|
@@ -39014,14 +39033,14 @@ var jr, Nc, Br, Rs, Na, z0, Y0, q0, Gh, Kh, $c, zL = class Xh {
|
|
|
39014
39033
|
}
|
|
39015
39034
|
};
|
|
39016
39035
|
jr = /* @__PURE__ */ new WeakMap(), Nc = /* @__PURE__ */ new WeakMap(), Br = /* @__PURE__ */ new WeakMap(), Rs = /* @__PURE__ */ new WeakMap(), Na = /* @__PURE__ */ new WeakMap(), z0 = /* @__PURE__ */ new WeakMap(), Y0 = /* @__PURE__ */ new WeakMap(), q0 = /* @__PURE__ */ new WeakMap(), Gh = /* @__PURE__ */ new WeakMap(), Kh = /* @__PURE__ */ new WeakMap(), $c = /* @__PURE__ */ new WeakMap(), zL.isSetUp = !1;
|
|
39017
|
-
var
|
|
39036
|
+
var Fue = zL, jue = (e, t, n) => new Fue(e, t, n), YL = (e, t) => ({ event: e, check: t }), Bue = YL("touchstart", (e) => {
|
|
39018
39037
|
let t = e;
|
|
39019
39038
|
return t.touches !== null && t.touches !== void 0;
|
|
39020
|
-
}),
|
|
39039
|
+
}), Vue = YL("pointerdown", (e) => e.pointerType === "mouse"), zo;
|
|
39021
39040
|
(function(e) {
|
|
39022
39041
|
e.mouse = "mouse", e.touch = "touch", e.keyboard = "keyboard";
|
|
39023
39042
|
})(zo || (zo = {}));
|
|
39024
|
-
class
|
|
39043
|
+
class Wue {
|
|
39025
39044
|
get delay() {
|
|
39026
39045
|
var t;
|
|
39027
39046
|
return (t = this.args.delay) !== null && t !== void 0 ? t : 0;
|
|
@@ -39084,10 +39103,10 @@ class Bue {
|
|
|
39084
39103
|
this.args = t, this.context = n;
|
|
39085
39104
|
}
|
|
39086
39105
|
}
|
|
39087
|
-
function
|
|
39106
|
+
function Hue(e, t, n, r) {
|
|
39088
39107
|
return Math.sqrt(Math.pow(Math.abs(n - e), 2) + Math.pow(Math.abs(r - t), 2));
|
|
39089
39108
|
}
|
|
39090
|
-
function
|
|
39109
|
+
function Uue(e, t, n, r, i) {
|
|
39091
39110
|
if (!i)
|
|
39092
39111
|
return !1;
|
|
39093
39112
|
const s = Math.atan2(r - t, n - e) * 180 / Math.PI + 180;
|
|
@@ -39098,23 +39117,23 @@ function Wue(e, t, n, r, i) {
|
|
|
39098
39117
|
}
|
|
39099
39118
|
return !1;
|
|
39100
39119
|
}
|
|
39101
|
-
const
|
|
39120
|
+
const zue = {
|
|
39102
39121
|
Left: 1
|
|
39103
|
-
},
|
|
39122
|
+
}, Yue = {
|
|
39104
39123
|
Left: 0
|
|
39105
39124
|
};
|
|
39106
39125
|
function dy(e) {
|
|
39107
|
-
return e.button === void 0 || e.button ===
|
|
39126
|
+
return e.button === void 0 || e.button === Yue.Left;
|
|
39108
39127
|
}
|
|
39109
|
-
function
|
|
39110
|
-
return e.buttons === void 0 || (e.buttons &
|
|
39128
|
+
function que(e) {
|
|
39129
|
+
return e.buttons === void 0 || (e.buttons & zue.Left) === 0;
|
|
39111
39130
|
}
|
|
39112
39131
|
function qL(e) {
|
|
39113
39132
|
return !!e.targetTouches;
|
|
39114
39133
|
}
|
|
39115
|
-
const
|
|
39116
|
-
function
|
|
39117
|
-
const t = e.nodeType ===
|
|
39134
|
+
const Gue = 1;
|
|
39135
|
+
function Kue(e) {
|
|
39136
|
+
const t = e.nodeType === Gue ? e : e.parentElement;
|
|
39118
39137
|
if (!t)
|
|
39119
39138
|
return;
|
|
39120
39139
|
const { top: n, left: r } = t.getBoundingClientRect();
|
|
@@ -39123,14 +39142,14 @@ function que(e) {
|
|
|
39123
39142
|
y: n
|
|
39124
39143
|
};
|
|
39125
39144
|
}
|
|
39126
|
-
function
|
|
39145
|
+
function Xue(e, t) {
|
|
39127
39146
|
if (e.targetTouches.length === 1)
|
|
39128
39147
|
return Hp(e.targetTouches[0]);
|
|
39129
39148
|
if (t && e.touches.length === 1 && e.touches[0].target === t.target)
|
|
39130
39149
|
return Hp(e.touches[0]);
|
|
39131
39150
|
}
|
|
39132
39151
|
function Hp(e, t) {
|
|
39133
|
-
return qL(e) ?
|
|
39152
|
+
return qL(e) ? Xue(e, t) : {
|
|
39134
39153
|
x: e.clientX,
|
|
39135
39154
|
y: e.clientY
|
|
39136
39155
|
};
|
|
@@ -39271,7 +39290,7 @@ class ef {
|
|
|
39271
39290
|
constructor(t, n, r) {
|
|
39272
39291
|
this.getSourceClientOffset = (i) => {
|
|
39273
39292
|
const s = this.sourceNodes.get(i);
|
|
39274
|
-
return s &&
|
|
39293
|
+
return s && Kue(s);
|
|
39275
39294
|
}, this.handleTopMoveStartCapture = (i) => {
|
|
39276
39295
|
dy(i) && (this.moveStartSourceIds = []);
|
|
39277
39296
|
}, this.handleMoveStart = (i) => {
|
|
@@ -39296,12 +39315,12 @@ class ef {
|
|
|
39296
39315
|
const { moveStartSourceIds: s, dragOverTargetIds: o } = this, l = this.options.enableHoverOutsideTarget, c = Hp(i, this.lastTargetTouchFallback);
|
|
39297
39316
|
if (!c)
|
|
39298
39317
|
return;
|
|
39299
|
-
if (this._isScrolling || !this.monitor.isDragging() &&
|
|
39318
|
+
if (this._isScrolling || !this.monitor.isDragging() && Uue(this._mouseClientOffset.x || 0, this._mouseClientOffset.y || 0, c.x, c.y, this.options.scrollAngleRanges)) {
|
|
39300
39319
|
this._isScrolling = !0;
|
|
39301
39320
|
return;
|
|
39302
39321
|
}
|
|
39303
39322
|
if (!this.monitor.isDragging() && // eslint-disable-next-line no-prototype-builtins
|
|
39304
|
-
this._mouseClientOffset.hasOwnProperty("x") && s &&
|
|
39323
|
+
this._mouseClientOffset.hasOwnProperty("x") && s && Hue(this._mouseClientOffset.x || 0, this._mouseClientOffset.y || 0, c.x, c.y) > (this.options.touchSlop ? this.options.touchSlop : 0) && (this.moveStartSourceIds = void 0, this.actions.beginDrag(s, {
|
|
39305
39324
|
clientOffset: this._mouseClientOffset,
|
|
39306
39325
|
getSourceClientOffset: this.getSourceClientOffset,
|
|
39307
39326
|
publishSource: !1
|
|
@@ -39351,7 +39370,7 @@ class ef {
|
|
|
39351
39370
|
o = s.next();
|
|
39352
39371
|
}
|
|
39353
39372
|
}, this.handleTopMoveEndCapture = (i) => {
|
|
39354
|
-
if (this._isScrolling = !1, this.lastTargetTouchFallback = void 0, !!
|
|
39373
|
+
if (this._isScrolling = !1, this.lastTargetTouchFallback = void 0, !!que(i)) {
|
|
39355
39374
|
if (!this.monitor.isDragging() || this.monitor.didDrop()) {
|
|
39356
39375
|
this.moveStartSourceIds = void 0;
|
|
39357
39376
|
return;
|
|
@@ -39360,10 +39379,10 @@ class ef {
|
|
|
39360
39379
|
}
|
|
39361
39380
|
}, this.handleCancelOnEscape = (i) => {
|
|
39362
39381
|
i.key === "Escape" && this.monitor.isDragging() && (this._mouseClientOffset = {}, this.uninstallSourceNodeRemovalObserver(), this.actions.endDrag());
|
|
39363
|
-
}, this.options = new
|
|
39382
|
+
}, this.options = new Wue(r, n), this.actions = t.getActions(), this.monitor = t.getMonitor(), this.sourceNodes = /* @__PURE__ */ new Map(), this.sourcePreviewNodes = /* @__PURE__ */ new Map(), this.sourcePreviewNodeOptions = /* @__PURE__ */ new Map(), this.targetNodes = /* @__PURE__ */ new Map(), this.listenerTypes = [], this._mouseClientOffset = {}, this._isScrolling = !1, this.options.enableMouseEvents && this.listenerTypes.push(zo.mouse), this.options.enableTouchEvents && this.listenerTypes.push(zo.touch), this.options.enableKeyboardEvents && this.listenerTypes.push(zo.keyboard);
|
|
39364
39383
|
}
|
|
39365
39384
|
}
|
|
39366
|
-
const
|
|
39385
|
+
const Que = function(t, n = {}, r = {}) {
|
|
39367
39386
|
return new ef(t, n, r);
|
|
39368
39387
|
};
|
|
39369
39388
|
var Ci = function() {
|
|
@@ -39382,11 +39401,11 @@ function ir(e, t, n) {
|
|
|
39382
39401
|
(s || !(r in t)) && (s || (s = Array.prototype.slice.call(t, 0, r)), s[r] = t[r]);
|
|
39383
39402
|
return e.concat(s || Array.prototype.slice.call(t));
|
|
39384
39403
|
}
|
|
39385
|
-
function
|
|
39404
|
+
function Zue(e) {
|
|
39386
39405
|
var t = e.isVisible, n = e.ease, r = n === void 0 ? "easeIn" : n, i = e.duration, s = e.variants, o = s === void 0 ? {
|
|
39387
39406
|
open: { opacity: 1, height: "auto" },
|
|
39388
39407
|
close: { opacity: 0, height: 0 }
|
|
39389
|
-
} : s, l = e.children, c =
|
|
39408
|
+
} : s, l = e.children, c = Aue({ polyfill: ise }), d = c[0], h = c[1].height, p = A.useState(t), y = p[0], b = p[1], C = A.useState(t), w = C[0], E = C[1], _ = A.useState(!1), I = _[0], P = _[1], V = function() {
|
|
39390
39409
|
P(!1), t || b(!1);
|
|
39391
39410
|
};
|
|
39392
39411
|
A.useEffect(function() {
|
|
@@ -39396,12 +39415,12 @@ function Xue(e) {
|
|
|
39396
39415
|
return A.useEffect(function() {
|
|
39397
39416
|
y && E(!0);
|
|
39398
39417
|
}, [N]), Le.createElement(
|
|
39399
|
-
|
|
39400
|
-
{ style: I ? { overflow: "hidden" } : void 0, onAnimationComplete: V, initial: w ? "open" : "close", animate: w ? "open" : "close", inherit: !1, variants: o, transition: { ease: r, duration:
|
|
39418
|
+
Pue.div,
|
|
39419
|
+
{ style: I ? { overflow: "hidden" } : void 0, onAnimationComplete: V, initial: w ? "open" : "close", animate: w ? "open" : "close", inherit: !1, variants: o, transition: { ease: r, duration: Jue(h, i) } },
|
|
39401
39420
|
Le.createElement("div", { ref: d }, y && l)
|
|
39402
39421
|
);
|
|
39403
39422
|
}
|
|
39404
|
-
function
|
|
39423
|
+
function Jue(e, t) {
|
|
39405
39424
|
if (t)
|
|
39406
39425
|
return t;
|
|
39407
39426
|
if (!e)
|
|
@@ -39409,10 +39428,10 @@ function Que(e, t) {
|
|
|
39409
39428
|
var n = e / 36;
|
|
39410
39429
|
return Math.round((4 + 10 * Math.pow(n, 0.25) + n / 5) * 10) / 1500;
|
|
39411
39430
|
}
|
|
39412
|
-
var GL = A.createContext({}),
|
|
39431
|
+
var GL = A.createContext({}), ece = {
|
|
39413
39432
|
isLock: !1
|
|
39414
|
-
},
|
|
39415
|
-
var t = A.useState(
|
|
39433
|
+
}, tce = function(e) {
|
|
39434
|
+
var t = A.useState(ece.isLock), n = t[0], r = t[1];
|
|
39416
39435
|
return Le.createElement(GL.Provider, { value: {
|
|
39417
39436
|
isLock: n,
|
|
39418
39437
|
lock: function() {
|
|
@@ -39425,7 +39444,7 @@ var GL = A.createContext({}), Zue = {
|
|
|
39425
39444
|
}, Gf = A.createContext({}), wh = {
|
|
39426
39445
|
dropTargetId: void 0,
|
|
39427
39446
|
index: void 0
|
|
39428
|
-
},
|
|
39447
|
+
}, nce = function(e) {
|
|
39429
39448
|
var t = A.useState(wh.dropTargetId), n = t[0], r = t[1], i = A.useState(wh.index), s = i[0], o = i[1], l = function(d, h) {
|
|
39430
39449
|
r(d), o(h);
|
|
39431
39450
|
}, c = function() {
|
|
@@ -39437,7 +39456,7 @@ var GL = A.createContext({}), Zue = {
|
|
|
39437
39456
|
showPlaceholder: l,
|
|
39438
39457
|
hidePlaceholder: c
|
|
39439
39458
|
} }, e.children);
|
|
39440
|
-
},
|
|
39459
|
+
}, rce = function(e, t) {
|
|
39441
39460
|
return e.text > t.text ? 1 : e.text < t.text ? -1 : 0;
|
|
39442
39461
|
}, _c = function(e, t) {
|
|
39443
39462
|
return e.find(function(n) {
|
|
@@ -39477,7 +39496,7 @@ var GL = A.createContext({}), Zue = {
|
|
|
39477
39496
|
});
|
|
39478
39497
|
return d === void 0 || l === null ? t === i || !!(o != null && o.droppable) : o === void 0 ? d.parent !== 0 : d.parent === t || !o.droppable ? !1 : !KL(r, l, t);
|
|
39479
39498
|
}
|
|
39480
|
-
},
|
|
39499
|
+
}, ice = function(e, t, n) {
|
|
39481
39500
|
return e.map(function(r) {
|
|
39482
39501
|
return r.id === t ? Ci(Ci({}, r), { parent: n }) : r;
|
|
39483
39502
|
});
|
|
@@ -39492,37 +39511,37 @@ var GL = A.createContext({}), Zue = {
|
|
|
39492
39511
|
}) : e.findIndex(function(i) {
|
|
39493
39512
|
return i.id === r[n - 1].id;
|
|
39494
39513
|
}) + 1;
|
|
39495
|
-
},
|
|
39514
|
+
}, sce = function(e, t) {
|
|
39496
39515
|
return e.findIndex(function(n) {
|
|
39497
39516
|
return n.id === t;
|
|
39498
39517
|
});
|
|
39499
39518
|
}, QL = function(e, t, n, r) {
|
|
39500
|
-
var i =
|
|
39519
|
+
var i = sce(e, t), s = XL(e, n, r);
|
|
39501
39520
|
return s = s > i ? s - 1 : s, [i, s];
|
|
39502
|
-
},
|
|
39521
|
+
}, oce = function(e, t, n) {
|
|
39503
39522
|
var r = t < 0 ? e.length + t : t;
|
|
39504
39523
|
if (r >= 0 && r < e.length) {
|
|
39505
39524
|
var i = n < 0 ? e.length + n : n, s = e.splice(t, 1)[0];
|
|
39506
39525
|
e.splice(i, 0, s);
|
|
39507
39526
|
}
|
|
39508
|
-
},
|
|
39527
|
+
}, ace = function(e, t, n, r) {
|
|
39509
39528
|
var i = QL(e, t, n, r), s = i[0], o = i[1], l = ir([], e, !0);
|
|
39510
|
-
return
|
|
39529
|
+
return oce(l, s, o), l.map(function(c) {
|
|
39511
39530
|
return c.id === t ? Ci(Ci({}, c), { parent: n }) : c;
|
|
39512
39531
|
});
|
|
39513
|
-
},
|
|
39532
|
+
}, lce = function(e, t) {
|
|
39514
39533
|
var n = e.getBoundingClientRect(), r = n.top + n.height / 2;
|
|
39515
39534
|
return t > r ? "down" : "up";
|
|
39516
39535
|
}, G0 = function(e, t) {
|
|
39517
39536
|
var n = "", r = 0;
|
|
39518
39537
|
return e.forEach(function(i, s) {
|
|
39519
|
-
var o, l =
|
|
39538
|
+
var o, l = lce(i, ((o = t.getClientOffset()) === null || o === void 0 ? void 0 : o.y) || 0);
|
|
39520
39539
|
n === "" ? n = l : n !== l && (n = l, r = s), s === e.length - 1 && l === "down" && (r = s + 1);
|
|
39521
39540
|
}), r;
|
|
39522
39541
|
}, UD = function(e, t, n) {
|
|
39523
39542
|
var r = t.closest('[role="list"]'), i = r == null ? void 0 : r.querySelectorAll(':scope > [role="listitem"]');
|
|
39524
39543
|
return i ? G0(i, n) : null;
|
|
39525
|
-
},
|
|
39544
|
+
}, uce = function(e, t, n) {
|
|
39526
39545
|
var r = e.getBoundingClientRect(), i = n.dropTargetOffset, s = r.top + i, o = r.bottom - i;
|
|
39527
39546
|
return t > o ? "lower" : t < s ? "upper" : "middle";
|
|
39528
39547
|
}, K0 = function(e, t, n, r) {
|
|
@@ -39536,7 +39555,7 @@ var GL = A.createContext({}), Zue = {
|
|
|
39536
39555
|
index: G0(s, n)
|
|
39537
39556
|
};
|
|
39538
39557
|
}
|
|
39539
|
-
var o = n.getItem(), l = t.querySelector('[role="list"]'), c =
|
|
39558
|
+
var o = n.getItem(), l = t.querySelector('[role="list"]'), c = uce(t, ((i = n.getClientOffset()) === null || i === void 0 ? void 0 : i.y) || 0, r);
|
|
39540
39559
|
if (l) {
|
|
39541
39560
|
if (c === "upper")
|
|
39542
39561
|
if (Qo(o, e.parent, r)) {
|
|
@@ -39570,21 +39589,21 @@ var GL = A.createContext({}), Zue = {
|
|
|
39570
39589
|
}
|
|
39571
39590
|
return null;
|
|
39572
39591
|
}
|
|
39573
|
-
},
|
|
39592
|
+
}, cce = function(e) {
|
|
39574
39593
|
return e === void 0 && (e = {}), {
|
|
39575
39594
|
backends: [
|
|
39576
39595
|
{
|
|
39577
39596
|
id: "html5",
|
|
39578
39597
|
backend: SI,
|
|
39579
39598
|
options: e.html5,
|
|
39580
|
-
transition:
|
|
39599
|
+
transition: Vue
|
|
39581
39600
|
},
|
|
39582
39601
|
{
|
|
39583
39602
|
id: "touch",
|
|
39584
|
-
backend:
|
|
39603
|
+
backend: Que,
|
|
39585
39604
|
options: e.touch || { enableMouseEvents: !0 },
|
|
39586
39605
|
preview: !0,
|
|
39587
|
-
transition:
|
|
39606
|
+
transition: Bue
|
|
39588
39607
|
}
|
|
39589
39608
|
]
|
|
39590
39609
|
};
|
|
@@ -39592,8 +39611,8 @@ var GL = A.createContext({}), Zue = {
|
|
|
39592
39611
|
return e.some(function(n) {
|
|
39593
39612
|
return n.parent === t;
|
|
39594
39613
|
});
|
|
39595
|
-
}, ZL = A.createContext({}),
|
|
39596
|
-
var t =
|
|
39614
|
+
}, ZL = A.createContext({}), fce = function(e) {
|
|
39615
|
+
var t = yce(e.tree, e.initialOpen), n = t[0], r = t[1], i = r.handleToggle, s = r.handleCloseAll, o = r.handleOpenAll, l = r.handleOpen, c = r.handleClose;
|
|
39597
39616
|
A.useImperativeHandle(e.treeRef, function() {
|
|
39598
39617
|
return {
|
|
39599
39618
|
open: function(b) {
|
|
@@ -39621,10 +39640,10 @@ var GL = A.createContext({}), Zue = {
|
|
|
39621
39640
|
}, _ = e.tree;
|
|
39622
39641
|
if (_c(_, b.id) || (_ = ir(ir([], _, !0), [b], !1)), e.sort === !1) {
|
|
39623
39642
|
var I = QL(_, b.id, C, w), P = I[1];
|
|
39624
|
-
E.destinationIndex = P, E.relativeIndex = w, e.onDrop(
|
|
39643
|
+
E.destinationIndex = P, E.relativeIndex = w, e.onDrop(ace(_, b.id, C, w), E);
|
|
39625
39644
|
return;
|
|
39626
39645
|
}
|
|
39627
|
-
e.onDrop(
|
|
39646
|
+
e.onDrop(ice(_, b.id, C), E);
|
|
39628
39647
|
} else {
|
|
39629
39648
|
var E = {
|
|
39630
39649
|
dropTargetId: C,
|
|
@@ -39648,17 +39667,17 @@ var GL = A.createContext({}), Zue = {
|
|
|
39648
39667
|
return i(b, e.onChangeOpen);
|
|
39649
39668
|
} });
|
|
39650
39669
|
return Le.createElement(ZL.Provider, { value: y }, e.children);
|
|
39651
|
-
},
|
|
39670
|
+
}, dce = function(e) {
|
|
39652
39671
|
return Le.createElement(
|
|
39653
|
-
|
|
39672
|
+
fce,
|
|
39654
39673
|
Ci({}, e),
|
|
39655
39674
|
Le.createElement(
|
|
39656
|
-
|
|
39675
|
+
tce,
|
|
39657
39676
|
null,
|
|
39658
|
-
Le.createElement(
|
|
39677
|
+
Le.createElement(nce, null, e.children)
|
|
39659
39678
|
)
|
|
39660
39679
|
);
|
|
39661
|
-
},
|
|
39680
|
+
}, hce = function(e) {
|
|
39662
39681
|
var t = A.useContext(GL);
|
|
39663
39682
|
A.useEffect(function() {
|
|
39664
39683
|
if (e.current) {
|
|
@@ -39702,7 +39721,7 @@ var GL = A.createContext({}), Zue = {
|
|
|
39702
39721
|
return eN(e);
|
|
39703
39722
|
}, YD = function(e) {
|
|
39704
39723
|
return eN(e);
|
|
39705
|
-
},
|
|
39724
|
+
}, pce = function(e, t) {
|
|
39706
39725
|
var n = ra();
|
|
39707
39726
|
A.useEffect(function() {
|
|
39708
39727
|
var l = t.current;
|
|
@@ -39733,7 +39752,7 @@ var GL = A.createContext({}), Zue = {
|
|
|
39733
39752
|
}
|
|
39734
39753
|
}), i = r[0].isDragging, s = r[1], o = r[2];
|
|
39735
39754
|
return [i, s, o];
|
|
39736
|
-
},
|
|
39755
|
+
}, mce = function(e, t, n) {
|
|
39737
39756
|
var r = A.useRef(0), i = A.useRef(0), s = function() {
|
|
39738
39757
|
r.current += 1, r.current === 1 && !t && (i.current = window.setTimeout(function() {
|
|
39739
39758
|
return n(e);
|
|
@@ -39748,7 +39767,7 @@ var GL = A.createContext({}), Zue = {
|
|
|
39748
39767
|
onDragLeave: o,
|
|
39749
39768
|
onDrop: l
|
|
39750
39769
|
};
|
|
39751
|
-
},
|
|
39770
|
+
}, gce = function(e) {
|
|
39752
39771
|
var t = ra(), n = A.useContext(Gf), r = Ap({
|
|
39753
39772
|
accept: ir([jm.TREE_ITEM], t.extraAcceptTypes, !0),
|
|
39754
39773
|
drop: function(c, d) {
|
|
@@ -39778,7 +39797,7 @@ var GL = A.createContext({}), Zue = {
|
|
|
39778
39797
|
}
|
|
39779
39798
|
}), i = r[0], s = i.isOver, o = i.dragSource, l = r[1];
|
|
39780
39799
|
return [s, o, l];
|
|
39781
|
-
},
|
|
39800
|
+
}, vce = function(e, t) {
|
|
39782
39801
|
var n = ra(), r = A.useContext(Gf), i = Ap({
|
|
39783
39802
|
accept: ir([jm.TREE_ITEM], n.extraAcceptTypes, !0),
|
|
39784
39803
|
drop: function(d, h) {
|
|
@@ -39811,7 +39830,7 @@ var GL = A.createContext({}), Zue = {
|
|
|
39811
39830
|
}
|
|
39812
39831
|
}), s = i[0], o = s.isOver, l = s.dragSource, c = i[1];
|
|
39813
39832
|
return [o, l, c];
|
|
39814
|
-
},
|
|
39833
|
+
}, yce = function(e, t) {
|
|
39815
39834
|
var n = A.useMemo(function() {
|
|
39816
39835
|
return t === !0 ? e.filter(function(p) {
|
|
39817
39836
|
return Qh(e, p.id);
|
|
@@ -39860,7 +39879,7 @@ var GL = A.createContext({}), Zue = {
|
|
|
39860
39879
|
i,
|
|
39861
39880
|
{ handleToggle: o, handleCloseAll: l, handleOpenAll: c, handleOpen: d, handleClose: h }
|
|
39862
39881
|
];
|
|
39863
|
-
},
|
|
39882
|
+
}, bce = function() {
|
|
39864
39883
|
return Jee(function(e) {
|
|
39865
39884
|
var t = e.getItemType();
|
|
39866
39885
|
return {
|
|
@@ -39874,20 +39893,20 @@ var GL = A.createContext({}), Zue = {
|
|
|
39874
39893
|
if (!e)
|
|
39875
39894
|
throw new Error("useTreeContext must be used under TreeProvider");
|
|
39876
39895
|
return e;
|
|
39877
|
-
},
|
|
39896
|
+
}, xce = function(e, t) {
|
|
39878
39897
|
var n = ra(), r = n.rootId, i = n.rootProps, s = n.classes, o = (s == null ? void 0 : s.container) || "";
|
|
39879
39898
|
return t && (s != null && s.dropTarget) && (o = "".concat(o, " ").concat(s.dropTarget)), e === r && (s != null && s.root) && (o = "".concat(o, " ").concat(s.root)), e === r && (i != null && i.className) && (o = "".concat(o, " ").concat(i.className)), o = o.trim(), o;
|
|
39880
|
-
},
|
|
39899
|
+
}, wce = function(e, t, n) {
|
|
39881
39900
|
t.current ? n(t) : n(e), A.useEffect(function() {
|
|
39882
39901
|
t.current ? n(t) : n(e);
|
|
39883
39902
|
}, [t.current]);
|
|
39884
|
-
},
|
|
39903
|
+
}, Sce = function(e) {
|
|
39885
39904
|
var t = ra(), n = A.useContext(Gf), r = A.useRef(null), i = A.useRef(null), s = t.tree.find(function(Y) {
|
|
39886
39905
|
return Y.id === e.id;
|
|
39887
|
-
}), o = t.openIds, l = t.classes, c = t.enableAnimateExpand, d = o.includes(e.id), h =
|
|
39888
|
-
|
|
39906
|
+
}), o = t.openIds, l = t.classes, c = t.enableAnimateExpand, d = o.includes(e.id), h = pce(s, r), p = h[0], y = h[1], b = h[2], C = vce(s, r), w = C[0], E = C[1], _ = C[2];
|
|
39907
|
+
wce(r, i, y), Qo(E, e.id, t) && _(r), A.useEffect(function() {
|
|
39889
39908
|
t.dragPreviewRender ? b(xte(), { captureDraggingState: !0 }) : i.current && b(r);
|
|
39890
|
-
}, [b, t.dragPreviewRender]),
|
|
39909
|
+
}, [b, t.dragPreviewRender]), hce(r);
|
|
39891
39910
|
var I = function() {
|
|
39892
39911
|
return t.onToggle(s.id);
|
|
39893
39912
|
}, P = t.listItemComponent, V = t.canDrag ? t.canDrag(e.id) : !0, N = n.dropTargetId === e.id, j = {
|
|
@@ -39906,7 +39925,7 @@ var GL = A.createContext({}), Zue = {
|
|
|
39906
39925
|
{ ref: r, className: v, role: "listitem" },
|
|
39907
39926
|
t.render(s, j),
|
|
39908
39927
|
c && j.hasChild && Le.createElement(
|
|
39909
|
-
|
|
39928
|
+
Zue,
|
|
39910
39929
|
{ isVisible: d },
|
|
39911
39930
|
Le.createElement(X0, { parentId: e.id, depth: e.depth + 1 })
|
|
39912
39931
|
),
|
|
@@ -39921,7 +39940,7 @@ var GL = A.createContext({}), Zue = {
|
|
|
39921
39940
|
}, X0 = function(e) {
|
|
39922
39941
|
var t = ra(), n = A.useRef(null), r = t.tree.filter(function(w) {
|
|
39923
39942
|
return w.parent === e.parentId;
|
|
39924
|
-
}), i = r, s = typeof t.sort == "function" ? t.sort :
|
|
39943
|
+
}), i = r, s = typeof t.sort == "function" ? t.sort : rce;
|
|
39925
39944
|
if (t.insertDroppableFirst) {
|
|
39926
39945
|
var o = r.filter(function(w) {
|
|
39927
39946
|
return w.droppable;
|
|
@@ -39931,9 +39950,9 @@ var GL = A.createContext({}), Zue = {
|
|
|
39931
39950
|
t.sort === !1 ? i = ir(ir([], o, !0), l, !0) : (o = o.sort(s), l = l.sort(s), i = ir(ir([], o, !0), l, !0));
|
|
39932
39951
|
} else
|
|
39933
39952
|
t.sort !== !1 && (i = r.sort(s));
|
|
39934
|
-
var c =
|
|
39953
|
+
var c = gce(n), d = c[0], h = c[1], p = c[2];
|
|
39935
39954
|
e.parentId === t.rootId && Qo(h, t.rootId, t) && p(n);
|
|
39936
|
-
var y =
|
|
39955
|
+
var y = xce(e.parentId, d), b = t.rootProps || {}, C = t.listComponent;
|
|
39937
39956
|
return Le.createElement(
|
|
39938
39957
|
C,
|
|
39939
39958
|
Ci({ ref: n, role: "list" }, b, { className: y }),
|
|
@@ -39942,12 +39961,12 @@ var GL = A.createContext({}), Zue = {
|
|
|
39942
39961
|
Le.Fragment,
|
|
39943
39962
|
{ key: w.id },
|
|
39944
39963
|
Le.createElement(qD, { depth: e.depth, listCount: i.length, dropTargetId: e.parentId, index: E }),
|
|
39945
|
-
Le.createElement(
|
|
39964
|
+
Le.createElement(Sce, { id: w.id, depth: e.depth })
|
|
39946
39965
|
);
|
|
39947
39966
|
}),
|
|
39948
39967
|
Le.createElement(qD, { depth: e.depth, listCount: i.length, dropTargetId: e.parentId })
|
|
39949
39968
|
);
|
|
39950
|
-
},
|
|
39969
|
+
}, Tce = {
|
|
39951
39970
|
height: "100%",
|
|
39952
39971
|
left: 0,
|
|
39953
39972
|
pointerEvents: "none",
|
|
@@ -39955,7 +39974,7 @@ var GL = A.createContext({}), Zue = {
|
|
|
39955
39974
|
top: 0,
|
|
39956
39975
|
width: "100%",
|
|
39957
39976
|
zIndex: 100
|
|
39958
|
-
},
|
|
39977
|
+
}, Cce = function(e) {
|
|
39959
39978
|
var t = e.clientOffset;
|
|
39960
39979
|
if (!t)
|
|
39961
39980
|
return {};
|
|
@@ -39964,24 +39983,24 @@ var GL = A.createContext({}), Zue = {
|
|
|
39964
39983
|
pointerEvents: "none",
|
|
39965
39984
|
transform: i
|
|
39966
39985
|
};
|
|
39967
|
-
},
|
|
39968
|
-
var e = ra(), t =
|
|
39986
|
+
}, _ce = function() {
|
|
39987
|
+
var e = ra(), t = bce(), n = t.isDragging, r = t.clientOffset;
|
|
39969
39988
|
return !n || !r ? null : Le.createElement(
|
|
39970
39989
|
"div",
|
|
39971
|
-
{ style:
|
|
39972
|
-
Le.createElement("div", { style:
|
|
39990
|
+
{ style: Tce },
|
|
39991
|
+
Le.createElement("div", { style: Cce(t) }, e.dragPreviewRender && e.dragPreviewRender(t))
|
|
39973
39992
|
);
|
|
39974
39993
|
};
|
|
39975
|
-
function
|
|
39994
|
+
function Ece(e, t) {
|
|
39976
39995
|
return Le.createElement(
|
|
39977
|
-
|
|
39996
|
+
dce,
|
|
39978
39997
|
Ci({}, e, { treeRef: t }),
|
|
39979
|
-
e.dragPreviewRender && Le.createElement(
|
|
39998
|
+
e.dragPreviewRender && Le.createElement(_ce, null),
|
|
39980
39999
|
Le.createElement(X0, { parentId: e.rootId, depth: 0 })
|
|
39981
40000
|
);
|
|
39982
40001
|
}
|
|
39983
|
-
var
|
|
39984
|
-
function
|
|
40002
|
+
var Dce = A.forwardRef(Ece);
|
|
40003
|
+
function kce(e) {
|
|
39985
40004
|
return /* @__PURE__ */ L.jsx(
|
|
39986
40005
|
"svg",
|
|
39987
40006
|
{
|
|
@@ -40001,7 +40020,7 @@ function Ece(e) {
|
|
|
40001
40020
|
}
|
|
40002
40021
|
);
|
|
40003
40022
|
}
|
|
40004
|
-
function
|
|
40023
|
+
function Oce(e) {
|
|
40005
40024
|
const { renderChildren: t, parentRef: n, onlyChild: r } = e, [i, s] = A.useState({ top: 0, left: 0 }), o = A.useRef(null), [l, c] = A.useState("auto");
|
|
40006
40025
|
return A.useLayoutEffect(() => {
|
|
40007
40026
|
if (n.current && o.current) {
|
|
@@ -40046,7 +40065,7 @@ function tN({ ...e }) {
|
|
|
40046
40065
|
}, te = () => {
|
|
40047
40066
|
C(!1);
|
|
40048
40067
|
}, fe = "/global-menu-config/api/v1/menu-items/user/set-favorite", de = t.serviceKey === "mn_poms";
|
|
40049
|
-
e.params.depth * 20, e.params.depth,
|
|
40068
|
+
e.params.depth * 20, e.params.depth, mce(
|
|
40050
40069
|
t.id,
|
|
40051
40070
|
e.params.isOpen,
|
|
40052
40071
|
e.params.onToggle
|
|
@@ -40098,10 +40117,10 @@ function tN({ ...e }) {
|
|
|
40098
40117
|
), !s && e.toggleExpand(je));
|
|
40099
40118
|
},
|
|
40100
40119
|
children: [
|
|
40101
|
-
/* @__PURE__ */ L.jsx(
|
|
40120
|
+
/* @__PURE__ */ L.jsx(Pce, { cls: y, item: t }),
|
|
40102
40121
|
/* @__PURE__ */ L.jsx("span", { className: y("menu-item__label"), ref: I, children: t.name }),
|
|
40103
40122
|
/* @__PURE__ */ L.jsx(
|
|
40104
|
-
|
|
40123
|
+
Mce,
|
|
40105
40124
|
{
|
|
40106
40125
|
tooltipPosition: re ? "right" : "top",
|
|
40107
40126
|
menuLevel: n,
|
|
@@ -40126,7 +40145,7 @@ function tN({ ...e }) {
|
|
|
40126
40145
|
}
|
|
40127
40146
|
),
|
|
40128
40147
|
r && /* @__PURE__ */ L.jsx("div", { className: y("menu-item__icon-arrow__wrapper"), children: /* @__PURE__ */ L.jsx(
|
|
40129
|
-
|
|
40148
|
+
kce,
|
|
40130
40149
|
{
|
|
40131
40150
|
className: y(
|
|
40132
40151
|
`menu-item__icon-arrow__icon ${e.params.isOpen ? "open" : "close"}`
|
|
@@ -40137,7 +40156,7 @@ function tN({ ...e }) {
|
|
|
40137
40156
|
}
|
|
40138
40157
|
) }),
|
|
40139
40158
|
ae && /* @__PURE__ */ L.jsx(
|
|
40140
|
-
|
|
40159
|
+
Oce,
|
|
40141
40160
|
{
|
|
40142
40161
|
parentRef: _,
|
|
40143
40162
|
onlyChild: !s,
|
|
@@ -40172,10 +40191,10 @@ function tN({ ...e }) {
|
|
|
40172
40191
|
}
|
|
40173
40192
|
);
|
|
40174
40193
|
}
|
|
40175
|
-
function
|
|
40194
|
+
function Pce({ item: e, cls: t }) {
|
|
40176
40195
|
return /* @__PURE__ */ L.jsx("div", { className: t("menu-item__icon"), children: /* @__PURE__ */ L.jsx(Mie, { item: e }) });
|
|
40177
40196
|
}
|
|
40178
|
-
function
|
|
40197
|
+
function Mce(e) {
|
|
40179
40198
|
const t = {
|
|
40180
40199
|
marginRight: e.hasChildren ? 10 : 0,
|
|
40181
40200
|
fontSize: 18,
|
|
@@ -40220,7 +40239,7 @@ function Oce(e) {
|
|
|
40220
40239
|
)
|
|
40221
40240
|
] });
|
|
40222
40241
|
}
|
|
40223
|
-
function
|
|
40242
|
+
function Ace() {
|
|
40224
40243
|
return /* @__PURE__ */ L.jsx(
|
|
40225
40244
|
"svg",
|
|
40226
40245
|
{
|
|
@@ -40235,7 +40254,7 @@ function Pce() {
|
|
|
40235
40254
|
}
|
|
40236
40255
|
);
|
|
40237
40256
|
}
|
|
40238
|
-
function
|
|
40257
|
+
function Ice() {
|
|
40239
40258
|
return /* @__PURE__ */ L.jsx(
|
|
40240
40259
|
"svg",
|
|
40241
40260
|
{
|
|
@@ -40250,7 +40269,7 @@ function Mce() {
|
|
|
40250
40269
|
}
|
|
40251
40270
|
);
|
|
40252
40271
|
}
|
|
40253
|
-
function
|
|
40272
|
+
function Rce(e) {
|
|
40254
40273
|
return /* @__PURE__ */ L.jsx(
|
|
40255
40274
|
"svg",
|
|
40256
40275
|
{
|
|
@@ -40272,7 +40291,7 @@ function Ace(e) {
|
|
|
40272
40291
|
}
|
|
40273
40292
|
);
|
|
40274
40293
|
}
|
|
40275
|
-
const
|
|
40294
|
+
const Lce = ".flex-col-center{display:flex;flex-direction:column;justify-content:center}.wrap-section{padding:0 8px;transition:all .3s}.wrap-section.collapsed{padding:0 4px}.side-bar{position:fixed;top:64px;left:0;height:calc(100vh - 64px);max-width:18rem;display:flex;flex-direction:column;border-right:1px solid #ddd;background-color:#fafafa;transition:all .3s}.side-bar.expanded{width:17rem}.side-bar.collapsed{width:64px}.side-bar__wrap-btn-logout,.side-bar__btn-logout{margin:5px 0}.side-bar__logout-btn__text{margin-left:12px;font-size:.875rem;opacity:1}.side-bar__logout-btn__text.collapsed{opacity:0;transition:ease-in-out .2s;transition-delay:.15s}.side-bar__wrapper-toggle-btn{display:flex;flex-direction:row;justify-content:flex-end;transition:all .3s;margin-right:-8px;margin-top:40px}.side-bar__wrapper-toggle-btn.collapsed{justify-content:center;width:100%}.side-bar__toggle-btn{margin-top:-6px;color:#85858a}.side-bar__logout-btn{width:100%;text-align:left;display:flex;flex-direction:row;align-items:center;padding:8px 16px 8px 18.6665px;min-height:48px;border-radius:.375rem;overflow:hidden;transition:all .3s ease-in-out;background-color:initial}.side-bar__logout-btn:hover{background-color:#919eab14}.side-bar__icon-logout{flex-shrink:0}.menu-item__wrapper{display:flex;flex-direction:column;position:relative;width:100%;color:#292929}.menu-item__wrapper.collapsed.active,.menu-item__wrapper.expanded.active.parent.isClose,.menu-item__wrapper.expanded.active.child{color:var(--primary400);background-color:var(--primary200)}.menu-item__link{display:flex;flex-direction:row;border-radius:.375rem;align-items:center;padding:.5rem;position:relative;height:48px;cursor:pointer}.menu-item__link.expanded.level-0{padding:.5rem 10px}.isHome{position:sticky;top:0;background-color:#fafafa;z-index:10}.menu-item__link:hover{background-color:#919eab14}.menu-item__link.collapsed.level-0{padding-left:calc(.5rem + 7.665px)!important}.menu-item__link.active{background-color:#009d4f1a;color:inherit}.menu-item__link.active.level-0,.menu-item__link.active.level-1,.menu-item__link.active.level-2,.menu-item__link.active.level-3,.menu-item__link.active.level-4,.menu-item__link.active.level-5,.menu-item__link.active.level-6,.menu-item__link.active.level-7,.menu-item__link.active.level-8,.menu-item__link.active.level-9{background-color:inherit;color:inherit}.menu-item__link.active.level-1:hover,.menu-item__link.active.level-2:hover,.menu-item__link.active.level-3:hover,.menu-item__link.active.level-4:hover,.menu-item__link.active.level-5:hover,.menu-item__link.active.level-6:hover,.menu-item__link.active.level-7:hover,.menu-item__link.active.level-8:hover,.menu-item__link.active.level-9:hover,.menu-item__link.active.level-0:hover{background-color:#919eab14}.menu-item__link.level-0{transition:padding .2s}.menu-item__link.menu-item__link.collapsed.level-0{padding:0}.menu-item__icon{width:1.5rem;height:1.5rem;flex-shrink:0;display:grid;place-items:center;color:#85858a}.menu-item__icon.collapsed.active,.menu-item__icon.expanded.active.parent.isClose,.menu-item__icon.expanded.active.child{color:inherit}.menu-item__icon.collapsed.level-0>*{margin:0 auto}.menu-item__label{font-size:.875rem;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;width:100%;flex-shrink:1;margin-left:12px;padding-right:12px;opacity:1}.menu-item__label.level-0.collapsed{text-overflow:unset}.menu-item__label.active{color:inherit}.menu-item__label.collapsed{margin-left:8px;font-size:.75rem;line-height:1rem}.menu-item__label.collapsed.level-0{font-size:.875rem;opacity:0;transition-delay:.15s}.menu-item__label.level-0{margin-left:8px;font-weight:500;font-size:.951rem}.menu-item__label.level-0.isInternalApp{font-weight:unset!important}.menu-item__icon-arrow__wrapper{display:grid;place-items:center;position:absolute;top:50%;transform:translateY(-50%);right:0}.menu-item__icon-arrow__wrapper.expanded{right:4px}.menu-item__icon-arrow__icon{transition:transform .3s!important;transform:rotate(-90deg)!important}.menu-item__icon-arrow__icon.active{color:inherit}.menu-item__icon-arrow__icon.expanded.open{transform:rotate(0)!important}.menu-item__dropdown.collapsed{background-color:#fafafa;border:1px solid #ddd;box-shadow:#0000001a 0 10px 15px -3px,#0000000d 0 4px 6px -2px;border-radius:4px;width:210px;max-width:210px;padding:4px;z-index:1200}.menu-item__dropdown::-webkit-scrollbar{width:4px}.menu-item__dropdown::-webkit-scrollbar-thumb{background-color:#9b9b9b99;border-radius:2px}.menu-item__dropdown,.menu-item__dropdown>*{margin-top:4px}.menu-item__dropdown.expanded.menu-item__dropdown--close{margin-top:0;transition:margin-top .3s}.menu-item__dropdown:first-of-type{margin-top:0}.menu-item__dropdown>*:first-child{margin-top:0}.menu-item__dropdown.collapsed .menu-item__link{height:40px}.menu-item__dropdown.collapsed .menu-item__link.level-0{height:48px}.menu-item__dropdown.collapsed.level-0{width:auto;max-width:unset;box-shadow:none;border:none;padding:0;background-color:unset}.menu-item__dropdown.expanded{overflow:hidden}.icon-btn{display:inline-flex;align-items:center;justify-content:center;padding:8px;border-radius:50%;background-color:transparent;transition:background-color .3s ease;border:none}.icon-btn:hover{background-color:var(--btn-bg-hover)}.simplebar-scrollbar:before{background-color:#0000002d}.side-bar__menu.collapsed .simplebar-track.simplebar-vertical{display:none}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}", Nce = (e) => {
|
|
40276
40295
|
const t = e.isCollapsed ? 0 : e.depth * 16;
|
|
40277
40296
|
return /* @__PURE__ */ L.jsx(
|
|
40278
40297
|
"div",
|
|
@@ -40288,7 +40307,7 @@ const Ice = ".flex-col-center{display:flex;flex-direction:column;justify-content
|
|
|
40288
40307
|
}
|
|
40289
40308
|
}
|
|
40290
40309
|
);
|
|
40291
|
-
},
|
|
40310
|
+
}, $ce = ".app,.treeRoot{height:100%}.draggingSource{opacity:.3}.placeholderContainer{position:relative}.dropTarget{background-color:#8d878711}", Fce = (e) => {
|
|
40292
40311
|
const [t, n] = A.useState(() => {
|
|
40293
40312
|
const r = localStorage.getItem("openingMenuIds");
|
|
40294
40313
|
return r && r !== "[]" ? JSON.parse(r) : (e == null ? void 0 : e.initOpenIds) || [];
|
|
@@ -40307,13 +40326,13 @@ function nN(e) {
|
|
|
40307
40326
|
}
|
|
40308
40327
|
const Zh = localStorage.getItem("isCollapsed");
|
|
40309
40328
|
nN(Zh);
|
|
40310
|
-
function
|
|
40329
|
+
function jce(e) {
|
|
40311
40330
|
const t = new CustomEvent("favoriteMenusChange", {
|
|
40312
40331
|
detail: { favoriteMenus: e }
|
|
40313
40332
|
});
|
|
40314
40333
|
window.dispatchEvent(t);
|
|
40315
40334
|
}
|
|
40316
|
-
function
|
|
40335
|
+
function Bce(e) {
|
|
40317
40336
|
const t = lk(), [n, r] = A.useState([]), i = n.map((te) => te.data), [s, o] = A.useState(!1), [l, c] = A.useState([]), [d, h] = A.useState(
|
|
40318
40337
|
Zh === null ? !0 : Zh === "true"
|
|
40319
40338
|
), [p, y] = A.useState(window.location.href), b = A.useRef(null);
|
|
@@ -40323,7 +40342,7 @@ function Fce(e) {
|
|
|
40323
40342
|
}, [i, e.handleCallback]), A.useEffect(() => {
|
|
40324
40343
|
y(window.location.href);
|
|
40325
40344
|
}, [t]);
|
|
40326
|
-
const C =
|
|
40345
|
+
const C = Wce(i, p), [w, E] = Fce({
|
|
40327
40346
|
initOpenIds: e.initOpenIds
|
|
40328
40347
|
}), _ = () => {
|
|
40329
40348
|
var te, fe;
|
|
@@ -40413,7 +40432,7 @@ function Fce(e) {
|
|
|
40413
40432
|
};
|
|
40414
40433
|
}
|
|
40415
40434
|
const de = te.map((le) => fe(le));
|
|
40416
|
-
|
|
40435
|
+
jce(de);
|
|
40417
40436
|
}, [i]);
|
|
40418
40437
|
function se(te) {
|
|
40419
40438
|
const fe = te.detail.menuItem;
|
|
@@ -40470,7 +40489,7 @@ function Fce(e) {
|
|
|
40470
40489
|
{
|
|
40471
40490
|
className: "icon-btn side-bar__toggle-btn",
|
|
40472
40491
|
onClick: _,
|
|
40473
|
-
children: d ? /* @__PURE__ */ L.jsx(
|
|
40492
|
+
children: d ? /* @__PURE__ */ L.jsx(Ice, {}) : /* @__PURE__ */ L.jsx(Ace, {})
|
|
40474
40493
|
}
|
|
40475
40494
|
) }),
|
|
40476
40495
|
/* @__PURE__ */ L.jsx(
|
|
@@ -40485,8 +40504,8 @@ function Fce(e) {
|
|
|
40485
40504
|
height: "100%",
|
|
40486
40505
|
overflowX: "hidden"
|
|
40487
40506
|
},
|
|
40488
|
-
children: /* @__PURE__ */ L.jsx(lI, { backend:
|
|
40489
|
-
|
|
40507
|
+
children: /* @__PURE__ */ L.jsx(lI, { backend: jue, options: cce(), children: /* @__PURE__ */ L.jsx(
|
|
40508
|
+
Dce,
|
|
40490
40509
|
{
|
|
40491
40510
|
ref: b,
|
|
40492
40511
|
classes: {
|
|
@@ -40564,7 +40583,7 @@ function Fce(e) {
|
|
|
40564
40583
|
placeholderRender: (te, { depth: fe }) => {
|
|
40565
40584
|
var de;
|
|
40566
40585
|
return /* @__PURE__ */ L.jsx(
|
|
40567
|
-
|
|
40586
|
+
Nce,
|
|
40568
40587
|
{
|
|
40569
40588
|
node: te,
|
|
40570
40589
|
depth: fe,
|
|
@@ -40598,7 +40617,7 @@ function Fce(e) {
|
|
|
40598
40617
|
oe.style.setProperty("z-index", "1304"), oe.classList.remove("backdrop-delay-transition"), P(!0);
|
|
40599
40618
|
},
|
|
40600
40619
|
children: [
|
|
40601
|
-
/* @__PURE__ */ L.jsx(
|
|
40620
|
+
/* @__PURE__ */ L.jsx(Rce, { className: N("side-bar__icon-logout") }),
|
|
40602
40621
|
/* @__PURE__ */ L.jsx("span", { className: N("side-bar__logout-btn__text"), children: "Logout" })
|
|
40603
40622
|
]
|
|
40604
40623
|
}
|
|
@@ -40703,14 +40722,14 @@ const GD = {
|
|
|
40703
40722
|
"/anpr/page/Issues/Index?status=Closed": ["/anpr/page/Issues"],
|
|
40704
40723
|
"/anpr/page/Issues/Index": ["/anpr/page/Issues"]
|
|
40705
40724
|
};
|
|
40706
|
-
function
|
|
40725
|
+
function Vce(e, t) {
|
|
40707
40726
|
const r = e.replace(window.origin, "").replace("/app", ""), i = new URL(r, window.location.origin), s = new URL(t.replace("/app", ""), window.origin), o = (localStorage.getItem("latestClickMenuPath") || "").replace("/app", "");
|
|
40708
40727
|
return r && GD[r] && GD[r].some((l) => t.replace("/app", "").includes(l)) ? o === r ? 5 : 4 : i.pathname === s.pathname && i.search === s.search ? 3 : i.pathname === s.pathname ? 2 : s.pathname.startsWith(i.pathname) ? 1 : 0;
|
|
40709
40728
|
}
|
|
40710
|
-
function
|
|
40729
|
+
function Wce(e, t) {
|
|
40711
40730
|
const n = e.map((o) => ({
|
|
40712
40731
|
item: o,
|
|
40713
|
-
priority: o.path ?
|
|
40732
|
+
priority: o.path ? Vce(o.path, t) : 0
|
|
40714
40733
|
})).filter((o) => o.priority > 0);
|
|
40715
40734
|
console.log(" index.tsx ~ matchedItems:", n);
|
|
40716
40735
|
const r = n.length > 0 ? n.reduce(
|
|
@@ -40733,30 +40752,30 @@ function iN(e) {
|
|
|
40733
40752
|
path: window.location.origin + "/app" + n.path
|
|
40734
40753
|
} : (n.children && (n.children = iN(n.children)), n));
|
|
40735
40754
|
}
|
|
40736
|
-
function
|
|
40755
|
+
function Hce(e) {
|
|
40737
40756
|
return (
|
|
40738
40757
|
// <ShadowDOM.div>
|
|
40739
40758
|
/* @__PURE__ */ L.jsx(
|
|
40740
40759
|
Z0,
|
|
40741
40760
|
{
|
|
40742
40761
|
id: "global-menu-container",
|
|
40743
|
-
styles: [bk,
|
|
40762
|
+
styles: [bk, Lce, $ce],
|
|
40744
40763
|
style: {
|
|
40745
40764
|
zIndex: "var(--menu-z-index)",
|
|
40746
40765
|
position: "relative"
|
|
40747
40766
|
},
|
|
40748
40767
|
className: "backdrop-delay-transition",
|
|
40749
|
-
children: /* @__PURE__ */ L.jsx(
|
|
40768
|
+
children: /* @__PURE__ */ L.jsx(Bce, { ...e })
|
|
40750
40769
|
}
|
|
40751
40770
|
)
|
|
40752
40771
|
);
|
|
40753
40772
|
}
|
|
40754
|
-
function
|
|
40773
|
+
function Uce(e) {
|
|
40755
40774
|
const t = { ...Dn, ...e.brandColors };
|
|
40756
|
-
return console.log("props.brandColors", t), /* @__PURE__ */ L.jsx(ak, { children: /* @__PURE__ */ L.jsx(W5, { theme: OU({ colors: t }), children: /* @__PURE__ */ L.jsx(
|
|
40775
|
+
return console.log("props.brandColors", t), /* @__PURE__ */ L.jsx(ak, { children: /* @__PURE__ */ L.jsx(W5, { theme: OU({ colors: t }), children: /* @__PURE__ */ L.jsx(Hce, { ...e, ssr: !0 }) }) });
|
|
40757
40776
|
}
|
|
40758
40777
|
{
|
|
40759
|
-
const e = zp(
|
|
40778
|
+
const e = zp(Uce, {
|
|
40760
40779
|
props: {
|
|
40761
40780
|
baseUrl: "string",
|
|
40762
40781
|
menuPath: "string",
|
|
@@ -40774,10 +40793,10 @@ function Wce(e) {
|
|
|
40774
40793
|
}
|
|
40775
40794
|
export {
|
|
40776
40795
|
Cte as F,
|
|
40777
|
-
|
|
40796
|
+
Hce as G,
|
|
40778
40797
|
mU as H,
|
|
40779
40798
|
r8 as L,
|
|
40780
|
-
|
|
40799
|
+
yfe as T,
|
|
40781
40800
|
pU as g,
|
|
40782
40801
|
TI as u
|
|
40783
40802
|
};
|