@latte-macchiat-io/latte-vanilla-components 0.0.117 → 0.0.118
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js
CHANGED
|
@@ -43,8 +43,8 @@ var Oa = /* @__PURE__ */ function() {
|
|
|
43
43
|
return (r = i.parentNode) == null ? void 0 : r.removeChild(i);
|
|
44
44
|
}), this.tags = [], this.ctr = 0;
|
|
45
45
|
}, t;
|
|
46
|
-
}(), tt = "-ms-", en = "-moz-", F = "-webkit-", Ms = "comm", ci = "rule", ui = "decl", ka = "@import", Ds = "@keyframes", Fa = "@layer", Ia = Math.abs, hn = String.fromCharCode,
|
|
47
|
-
function
|
|
46
|
+
}(), tt = "-ms-", en = "-moz-", F = "-webkit-", Ms = "comm", ci = "rule", ui = "decl", ka = "@import", Ds = "@keyframes", Fa = "@layer", Ia = Math.abs, hn = String.fromCharCode, $a = Object.assign;
|
|
47
|
+
function Ba(t, e) {
|
|
48
48
|
return J(t, 0) ^ 45 ? (((e << 2 ^ J(t, 0)) << 2 ^ J(t, 1)) << 2 ^ J(t, 2)) << 2 ^ J(t, 3) : 0;
|
|
49
49
|
}
|
|
50
50
|
function Ls(t) {
|
|
@@ -82,7 +82,7 @@ function mn(t, e, n, i, r, o, s) {
|
|
|
82
82
|
return { value: t, root: e, parent: n, type: i, props: r, children: o, line: pn, column: oe, length: s, return: "" };
|
|
83
83
|
}
|
|
84
84
|
function me(t, e) {
|
|
85
|
-
return
|
|
85
|
+
return $a(mn("", null, null, "", null, null, 0), t, { length: -t.length }, e);
|
|
86
86
|
}
|
|
87
87
|
function Na() {
|
|
88
88
|
return Y;
|
|
@@ -99,7 +99,7 @@ function Vt() {
|
|
|
99
99
|
function Ye() {
|
|
100
100
|
return dt;
|
|
101
101
|
}
|
|
102
|
-
function
|
|
102
|
+
function $e(t, e) {
|
|
103
103
|
return Ve(fe, t, e);
|
|
104
104
|
}
|
|
105
105
|
function Ee(t) {
|
|
@@ -147,7 +147,7 @@ function Fs(t) {
|
|
|
147
147
|
return fe = "", t;
|
|
148
148
|
}
|
|
149
149
|
function qe(t) {
|
|
150
|
-
return Ls(
|
|
150
|
+
return Ls($e(dt - 1, _n(t === 91 ? t + 2 : t === 40 ? t + 1 : t)));
|
|
151
151
|
}
|
|
152
152
|
function za(t) {
|
|
153
153
|
for (; (Y = Vt()) && Y < 33; )
|
|
@@ -157,7 +157,7 @@ function za(t) {
|
|
|
157
157
|
function Wa(t, e) {
|
|
158
158
|
for (; --e && mt() && !(Y < 48 || Y > 102 || Y > 57 && Y < 65 || Y > 70 && Y < 97); )
|
|
159
159
|
;
|
|
160
|
-
return
|
|
160
|
+
return $e(t, Ye() + (e < 6 && Vt() == 32 && mt() == 32));
|
|
161
161
|
}
|
|
162
162
|
function _n(t) {
|
|
163
163
|
for (; mt(); )
|
|
@@ -185,12 +185,12 @@ function Ga(t, e) {
|
|
|
185
185
|
for (; mt() && t + Y !== 57; )
|
|
186
186
|
if (t + Y === 84 && Vt() === 47)
|
|
187
187
|
break;
|
|
188
|
-
return "/*" +
|
|
188
|
+
return "/*" + $e(e, dt - 1) + "*" + hn(t === 47 ? t : mt());
|
|
189
189
|
}
|
|
190
190
|
function Ka(t) {
|
|
191
191
|
for (; !Ee(Vt()); )
|
|
192
192
|
mt();
|
|
193
|
-
return
|
|
193
|
+
return $e(t, dt);
|
|
194
194
|
}
|
|
195
195
|
function Ha(t) {
|
|
196
196
|
return Fs(Xe("", null, null, null, [""], t = ks(t), 0, [0], t));
|
|
@@ -356,7 +356,7 @@ function Ja(t) {
|
|
|
356
356
|
var Qa = function(e, n, i) {
|
|
357
357
|
for (var r = 0, o = 0; r = o, o = Vt(), r === 38 && o === 12 && (n[i] = 1), !Ee(o); )
|
|
358
358
|
mt();
|
|
359
|
-
return
|
|
359
|
+
return $e(e, dt);
|
|
360
360
|
}, tl = function(e, n) {
|
|
361
361
|
var i = -1, r = 44;
|
|
362
362
|
do
|
|
@@ -402,7 +402,7 @@ var Qa = function(e, n, i) {
|
|
|
402
402
|
}
|
|
403
403
|
};
|
|
404
404
|
function Is(t, e) {
|
|
405
|
-
switch (
|
|
405
|
+
switch (Ba(t, e)) {
|
|
406
406
|
// color-adjust
|
|
407
407
|
case 5103:
|
|
408
408
|
return F + "print-" + t + t;
|
|
@@ -644,7 +644,7 @@ function ll(t) {
|
|
|
644
644
|
});
|
|
645
645
|
}), n;
|
|
646
646
|
}
|
|
647
|
-
var ze = { exports: {} },
|
|
647
|
+
var ze = { exports: {} }, $ = {};
|
|
648
648
|
/** @license React v16.13.1
|
|
649
649
|
* react-is.production.min.js
|
|
650
650
|
*
|
|
@@ -655,7 +655,7 @@ var ze = { exports: {} }, B = {};
|
|
|
655
655
|
*/
|
|
656
656
|
var Xi;
|
|
657
657
|
function cl() {
|
|
658
|
-
if (Xi) return
|
|
658
|
+
if (Xi) return $;
|
|
659
659
|
Xi = 1;
|
|
660
660
|
var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, n = t ? Symbol.for("react.portal") : 60106, i = t ? Symbol.for("react.fragment") : 60107, r = t ? Symbol.for("react.strict_mode") : 60108, o = t ? Symbol.for("react.profiler") : 60114, s = t ? Symbol.for("react.provider") : 60109, a = t ? Symbol.for("react.context") : 60110, l = t ? Symbol.for("react.async_mode") : 60111, c = t ? Symbol.for("react.concurrent_mode") : 60111, u = t ? Symbol.for("react.forward_ref") : 60112, f = t ? Symbol.for("react.suspense") : 60113, d = t ? Symbol.for("react.suspense_list") : 60120, h = t ? Symbol.for("react.memo") : 60115, p = t ? Symbol.for("react.lazy") : 60116, g = t ? Symbol.for("react.block") : 60121, S = t ? Symbol.for("react.fundamental") : 60117, v = t ? Symbol.for("react.responder") : 60118, w = t ? Symbol.for("react.scope") : 60119;
|
|
661
661
|
function T(m) {
|
|
@@ -691,35 +691,35 @@ function cl() {
|
|
|
691
691
|
function V(m) {
|
|
692
692
|
return T(m) === c;
|
|
693
693
|
}
|
|
694
|
-
return
|
|
694
|
+
return $.AsyncMode = l, $.ConcurrentMode = c, $.ContextConsumer = a, $.ContextProvider = s, $.Element = e, $.ForwardRef = u, $.Fragment = i, $.Lazy = p, $.Memo = h, $.Portal = n, $.Profiler = o, $.StrictMode = r, $.Suspense = f, $.isAsyncMode = function(m) {
|
|
695
695
|
return V(m) || T(m) === l;
|
|
696
|
-
},
|
|
696
|
+
}, $.isConcurrentMode = V, $.isContextConsumer = function(m) {
|
|
697
697
|
return T(m) === a;
|
|
698
|
-
},
|
|
698
|
+
}, $.isContextProvider = function(m) {
|
|
699
699
|
return T(m) === s;
|
|
700
|
-
},
|
|
700
|
+
}, $.isElement = function(m) {
|
|
701
701
|
return typeof m == "object" && m !== null && m.$$typeof === e;
|
|
702
|
-
},
|
|
702
|
+
}, $.isForwardRef = function(m) {
|
|
703
703
|
return T(m) === u;
|
|
704
|
-
},
|
|
704
|
+
}, $.isFragment = function(m) {
|
|
705
705
|
return T(m) === i;
|
|
706
|
-
},
|
|
706
|
+
}, $.isLazy = function(m) {
|
|
707
707
|
return T(m) === p;
|
|
708
|
-
},
|
|
708
|
+
}, $.isMemo = function(m) {
|
|
709
709
|
return T(m) === h;
|
|
710
|
-
},
|
|
710
|
+
}, $.isPortal = function(m) {
|
|
711
711
|
return T(m) === n;
|
|
712
|
-
},
|
|
712
|
+
}, $.isProfiler = function(m) {
|
|
713
713
|
return T(m) === o;
|
|
714
|
-
},
|
|
714
|
+
}, $.isStrictMode = function(m) {
|
|
715
715
|
return T(m) === r;
|
|
716
|
-
},
|
|
716
|
+
}, $.isSuspense = function(m) {
|
|
717
717
|
return T(m) === f;
|
|
718
|
-
},
|
|
718
|
+
}, $.isValidElementType = function(m) {
|
|
719
719
|
return typeof m == "string" || typeof m == "function" || m === i || m === c || m === o || m === r || m === f || m === d || typeof m == "object" && m !== null && (m.$$typeof === p || m.$$typeof === h || m.$$typeof === s || m.$$typeof === a || m.$$typeof === u || m.$$typeof === S || m.$$typeof === v || m.$$typeof === w || m.$$typeof === g);
|
|
720
|
-
},
|
|
720
|
+
}, $.typeOf = T, $;
|
|
721
721
|
}
|
|
722
|
-
var
|
|
722
|
+
var B = {};
|
|
723
723
|
/** @license React v16.13.1
|
|
724
724
|
* react-is.development.js
|
|
725
725
|
*
|
|
@@ -768,7 +768,7 @@ function ul() {
|
|
|
768
768
|
}
|
|
769
769
|
}
|
|
770
770
|
}
|
|
771
|
-
var m = l, E = c, M = a, y = s, b = e, x = u, C = i, O = p,
|
|
771
|
+
var m = l, E = c, M = a, y = s, b = e, x = u, C = i, O = p, z = h, q = n, X = o, U = r, k = f, _ = !1;
|
|
772
772
|
function at(R) {
|
|
773
773
|
return _ || (_ = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), it(R) || V(R) === l;
|
|
774
774
|
}
|
|
@@ -787,13 +787,13 @@ function ul() {
|
|
|
787
787
|
function gt(R) {
|
|
788
788
|
return V(R) === u;
|
|
789
789
|
}
|
|
790
|
-
function
|
|
790
|
+
function $t(R) {
|
|
791
791
|
return V(R) === i;
|
|
792
792
|
}
|
|
793
793
|
function pt(R) {
|
|
794
794
|
return V(R) === p;
|
|
795
795
|
}
|
|
796
|
-
function
|
|
796
|
+
function Bt(R) {
|
|
797
797
|
return V(R) === h;
|
|
798
798
|
}
|
|
799
799
|
function St(R) {
|
|
@@ -808,8 +808,8 @@ function ul() {
|
|
|
808
808
|
function Gt(R) {
|
|
809
809
|
return V(R) === f;
|
|
810
810
|
}
|
|
811
|
-
|
|
812
|
-
}()),
|
|
811
|
+
B.AsyncMode = m, B.ConcurrentMode = E, B.ContextConsumer = M, B.ContextProvider = y, B.Element = b, B.ForwardRef = x, B.Fragment = C, B.Lazy = O, B.Memo = z, B.Portal = q, B.Profiler = X, B.StrictMode = U, B.Suspense = k, B.isAsyncMode = at, B.isConcurrentMode = it, B.isContextConsumer = Ft, B.isContextProvider = It, B.isElement = bt, B.isForwardRef = gt, B.isFragment = $t, B.isLazy = pt, B.isMemo = Bt, B.isPortal = St, B.isProfiler = wt, B.isStrictMode = Wt, B.isSuspense = Gt, B.isValidElementType = T, B.typeOf = V;
|
|
812
|
+
}()), B;
|
|
813
813
|
}
|
|
814
814
|
var Ji;
|
|
815
815
|
function fl() {
|
|
@@ -889,7 +889,7 @@ function pl(t, e, n) {
|
|
|
889
889
|
t[r] !== void 0 ? e.push(t[r] + ";") : r && (i += r + " ");
|
|
890
890
|
}), i;
|
|
891
891
|
}
|
|
892
|
-
var
|
|
892
|
+
var $s = function(e, n, i) {
|
|
893
893
|
var r = e.key + "-" + n.name;
|
|
894
894
|
// we only need to add the styles to the registered cache if the
|
|
895
895
|
// class name could be used further down
|
|
@@ -902,7 +902,7 @@ var Bs = function(e, n, i) {
|
|
|
902
902
|
// also, note that this check will be dead code eliminated in the browser
|
|
903
903
|
hl === !1) && e.registered[r] === void 0 && (e.registered[r] = n.styles);
|
|
904
904
|
}, ml = function(e, n, i) {
|
|
905
|
-
|
|
905
|
+
$s(e, n, i);
|
|
906
906
|
var r = e.key + "-" + n.name;
|
|
907
907
|
if (e.inserted[n.name] === void 0) {
|
|
908
908
|
var o = n;
|
|
@@ -979,12 +979,12 @@ var yl = {
|
|
|
979
979
|
strokeMiterlimit: 1,
|
|
980
980
|
strokeOpacity: 1,
|
|
981
981
|
strokeWidth: 1
|
|
982
|
-
}, vl = /[A-Z]|^ms/g, xl = /_EMO_([^_]+?)_([^]*?)_EMO_/g,
|
|
982
|
+
}, vl = /[A-Z]|^ms/g, xl = /_EMO_([^_]+?)_([^]*?)_EMO_/g, Bs = function(e) {
|
|
983
983
|
return e.charCodeAt(1) === 45;
|
|
984
984
|
}, tr = function(e) {
|
|
985
985
|
return e != null && typeof e != "boolean";
|
|
986
986
|
}, Tn = /* @__PURE__ */ Ja(function(t) {
|
|
987
|
-
return
|
|
987
|
+
return Bs(t) ? t : t.replace(vl, "-$&").toLowerCase();
|
|
988
988
|
}), er = function(e, n) {
|
|
989
989
|
switch (e) {
|
|
990
990
|
case "animation":
|
|
@@ -998,7 +998,7 @@ var yl = {
|
|
|
998
998
|
}, r;
|
|
999
999
|
});
|
|
1000
1000
|
}
|
|
1001
|
-
return yl[e] !== 1 &&
|
|
1001
|
+
return yl[e] !== 1 && !Bs(e) && typeof n == "number" && n !== 0 ? n + "px" : n;
|
|
1002
1002
|
};
|
|
1003
1003
|
function Re(t, e, n) {
|
|
1004
1004
|
if (n == null)
|
|
@@ -1126,7 +1126,7 @@ var Pl = function(e) {
|
|
|
1126
1126
|
return i[Nn] = e, i;
|
|
1127
1127
|
}, Vl = function(e) {
|
|
1128
1128
|
var n = e.cache, i = e.serialized, r = e.isStringTag;
|
|
1129
|
-
return
|
|
1129
|
+
return $s(n, i, r), Cl(function() {
|
|
1130
1130
|
return ml(n, i, r);
|
|
1131
1131
|
}), null;
|
|
1132
1132
|
}, El = /* @__PURE__ */ Pl(function(t, e, n) {
|
|
@@ -1154,9 +1154,9 @@ const Un = [
|
|
|
1154
1154
|
768,
|
|
1155
1155
|
1024,
|
|
1156
1156
|
1680
|
|
1157
|
-
], P = Un.map((t) =>
|
|
1157
|
+
], P = Un.map((t) => `(min-width: ${t}px)`), W = (t, e) => {
|
|
1158
1158
|
for (const n in e)
|
|
1159
|
-
e.hasOwnProperty(n) && (e[n] instanceof Object && t[n] instanceof Object ? t[n] =
|
|
1159
|
+
e.hasOwnProperty(n) && (e[n] instanceof Object && t[n] instanceof Object ? t[n] = W(t[n], e[n]) : t[n] = e[n]);
|
|
1160
1160
|
return t;
|
|
1161
1161
|
}, Ml = D.button(
|
|
1162
1162
|
({
|
|
@@ -1170,7 +1170,7 @@ const Un = [
|
|
|
1170
1170
|
isOutlined: h,
|
|
1171
1171
|
isSecondary: p,
|
|
1172
1172
|
staticColor: g
|
|
1173
|
-
}) =>
|
|
1173
|
+
}) => W(
|
|
1174
1174
|
{
|
|
1175
1175
|
minWidth: t,
|
|
1176
1176
|
fontWeight: n,
|
|
@@ -1468,7 +1468,7 @@ const Ol = D.div(
|
|
|
1468
1468
|
theme: {
|
|
1469
1469
|
actions: { gap: n, paddingTop: i }
|
|
1470
1470
|
}
|
|
1471
|
-
}) =>
|
|
1471
|
+
}) => W(
|
|
1472
1472
|
{
|
|
1473
1473
|
gap: n / 2,
|
|
1474
1474
|
width: "100%",
|
|
@@ -1485,7 +1485,7 @@ const Ol = D.div(
|
|
|
1485
1485
|
},
|
|
1486
1486
|
e
|
|
1487
1487
|
)
|
|
1488
|
-
),
|
|
1488
|
+
), $p = ({ children: t, styles: e = {}, theme: n = j, align: i = be.Left }) => /* @__PURE__ */ A(Ol, { theme: n, align: i, styles: e, children: t }), kl = {
|
|
1489
1489
|
caret: "M8.12 9.29 12 13.17l3.88-3.88c.39-.39 1.02-.39 1.41 0 .39.39.39 1.02 0 1.41l-4.59 4.59c-.39.39-1.02.39-1.41 0L6.7 10.7a.9959.9959 0 0 1 0-1.41c.39-.38 1.03-.39 1.42 0",
|
|
1490
1490
|
close: "M18.3 5.71a.996.996 0 0 0-1.41 0L12 10.59 7.11 5.7a.996.996 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41L10.59 12 5.7 16.89c-.39.39-.39 1.02 0 1.41s1.02.39 1.41 0L12 13.41l4.89 4.89c.39.39 1.02.39 1.41 0s.39-1.02 0-1.41L13.41 12l4.89-4.89c.38-.38.38-1.02 0-1.4",
|
|
1491
1491
|
arrowBack: "M19 11H7.83l4.88-4.88c.39-.39.39-1.03 0-1.42a.996.996 0 0 0-1.41 0l-6.59 6.59c-.39.39-.39 1.02 0 1.41l6.59 6.59c.39.39 1.02.39 1.41 0s.39-1.02 0-1.41L7.83 13H19c.55 0 1-.45 1-1s-.45-1-1-1",
|
|
@@ -1505,7 +1505,7 @@ const Ol = D.div(
|
|
|
1505
1505
|
socialX: "M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z",
|
|
1506
1506
|
socialYoutube: "M10 15l5.19-3L10 9v6m11.56-7.83c.13.47.22 1.1.28 1.9.07.8.1 1.49.1 2.09L22 12c0 2.19-.16 3.8-.44 4.83-.25.9-.83 1.48-1.73 1.73-.47.13-1.33.22-2.65.28-1.3.07-2.49.1-3.59.1L12 19c-4.19 0-6.8-.16-7.83-.44-.9-.25-1.48-.83-1.73-1.73-.13-.47-.22-1.1-.28-1.9-.07-.8-.1-1.49-.1-2.09L2 12c0-2.19.16-3.8.44-4.83.25-.9.83-1.48 1.73-1.73.47-.13 1.33-.22 2.65-.28 1.3-.07 2.49-.1 3.59-.1L12 5c4.19 0 6.8.16 7.83.44.9.25 1.48.83 1.73 1.73z"
|
|
1507
1507
|
}, Fl = D.svg(
|
|
1508
|
-
({ styles: t }) =>
|
|
1508
|
+
({ styles: t }) => W(
|
|
1509
1509
|
{
|
|
1510
1510
|
margin: "0 auto",
|
|
1511
1511
|
display: "inline-block",
|
|
@@ -1526,13 +1526,13 @@ const Ol = D.div(
|
|
|
1526
1526
|
viewBox: s = "0 0 24 24"
|
|
1527
1527
|
}) => /* @__PURE__ */ A(Fl, { viewBox: s, width: `${e}px`, height: `${e}px`, styles: n, children: /* @__PURE__ */ A(Il, { d: i || kl[t], fill: r || o.colors.defaultIcon }) });
|
|
1528
1528
|
var nn = /* @__PURE__ */ ((t) => (t[t.Center = 0] = "Center", t[t.Left = 1] = "Left", t[t.Right = 2] = "Right", t))(nn || {});
|
|
1529
|
-
const
|
|
1529
|
+
const $l = D.div(
|
|
1530
1530
|
({
|
|
1531
1531
|
theme: {
|
|
1532
1532
|
modal: { overlayBlur: t, overlayOpacity: e, overlayBackgroundColor: n }
|
|
1533
1533
|
},
|
|
1534
1534
|
styles: i
|
|
1535
|
-
}) =>
|
|
1535
|
+
}) => W(
|
|
1536
1536
|
{
|
|
1537
1537
|
zIndex: 100,
|
|
1538
1538
|
position: "fixed",
|
|
@@ -1550,7 +1550,7 @@ const Bl = D.div(
|
|
|
1550
1550
|
},
|
|
1551
1551
|
i
|
|
1552
1552
|
)
|
|
1553
|
-
),
|
|
1553
|
+
), Bl = D.div(
|
|
1554
1554
|
({
|
|
1555
1555
|
theme: {
|
|
1556
1556
|
global: { paddingLeft: t, paddingRight: e },
|
|
@@ -1617,17 +1617,17 @@ const Bl = D.div(
|
|
|
1617
1617
|
"&:hover": {
|
|
1618
1618
|
transform: "scale(1.2)"
|
|
1619
1619
|
}
|
|
1620
|
-
}),
|
|
1620
|
+
}), Bp = ({
|
|
1621
1621
|
children: t,
|
|
1622
1622
|
styles: e = {},
|
|
1623
1623
|
align: n = nn.Left,
|
|
1624
1624
|
theme: i = j,
|
|
1625
1625
|
onModalHide: r = void 0
|
|
1626
|
-
}) => /* @__PURE__ */ A(
|
|
1626
|
+
}) => /* @__PURE__ */ A($l, { theme: i, styles: e, children: /* @__PURE__ */ ht(Bl, { theme: i, align: n, children: [
|
|
1627
1627
|
r && /* @__PURE__ */ A(jl, { onClick: r, children: /* @__PURE__ */ A(Lt, { theme: i, icon: "close" }) }),
|
|
1628
1628
|
t
|
|
1629
1629
|
] }) }), _l = D.div(
|
|
1630
|
-
({ styles: t, isVideoFullWidth: e }) =>
|
|
1630
|
+
({ styles: t, isVideoFullWidth: e }) => W(
|
|
1631
1631
|
{
|
|
1632
1632
|
video: {
|
|
1633
1633
|
top: "50%",
|
|
@@ -1852,7 +1852,7 @@ const Bl = D.div(
|
|
|
1852
1852
|
l && /* @__PURE__ */ A(Gl, { theme: c, isMuted: r, onClick: m, "aria-label": "Sound", children: /* @__PURE__ */ A(Lt, { icon: S ? "volumeUp" : "volumeMute", size: 28, theme: c }) })
|
|
1853
1853
|
] });
|
|
1854
1854
|
}, Hl = D.div(
|
|
1855
|
-
({ styles: t }) =>
|
|
1855
|
+
({ styles: t }) => W(
|
|
1856
1856
|
{
|
|
1857
1857
|
img: {
|
|
1858
1858
|
width: "100%",
|
|
@@ -1862,14 +1862,14 @@ const Bl = D.div(
|
|
|
1862
1862
|
},
|
|
1863
1863
|
t
|
|
1864
1864
|
)
|
|
1865
|
-
),
|
|
1865
|
+
), jp = ({ children: t, styles: e = {}, theme: n = j }) => /* @__PURE__ */ A(Hl, { theme: n, styles: e, children: t }), Yl = D.div(
|
|
1866
1866
|
({
|
|
1867
1867
|
styles: t,
|
|
1868
1868
|
isFullWidth: e,
|
|
1869
1869
|
theme: {
|
|
1870
1870
|
global: { paddingLeft: n, paddingRight: i }
|
|
1871
1871
|
}
|
|
1872
|
-
}) =>
|
|
1872
|
+
}) => W(
|
|
1873
1873
|
{
|
|
1874
1874
|
overflow: "hidden",
|
|
1875
1875
|
position: "relative",
|
|
@@ -1987,7 +1987,7 @@ function ec() {
|
|
|
1987
1987
|
return window.addEventListener("resize", n), n(), () => window.removeEventListener("resize", n);
|
|
1988
1988
|
}, []), t;
|
|
1989
1989
|
}
|
|
1990
|
-
const
|
|
1990
|
+
const _p = ({
|
|
1991
1991
|
data: t,
|
|
1992
1992
|
styles: e = {},
|
|
1993
1993
|
displayItem: n = 1,
|
|
@@ -2029,10 +2029,10 @@ const Fp = ({
|
|
|
2029
2029
|
let x = 0, C = 0;
|
|
2030
2030
|
const O = (U) => {
|
|
2031
2031
|
x = U.changedTouches[0].screenX;
|
|
2032
|
-
},
|
|
2032
|
+
}, z = (U) => {
|
|
2033
2033
|
C = U.changedTouches[0].screenX, b(x, C);
|
|
2034
2034
|
};
|
|
2035
|
-
(q = E.current) == null || q.addEventListener("touchstart", (U) => O(U), { passive: !0 }), (X = E.current) == null || X.addEventListener("touchend", (U) =>
|
|
2035
|
+
(q = E.current) == null || q.addEventListener("touchstart", (U) => O(U), { passive: !0 }), (X = E.current) == null || X.addEventListener("touchend", (U) => z(U), { passive: !0 });
|
|
2036
2036
|
}, []), ut(() => {
|
|
2037
2037
|
const C = (V - 1) * u;
|
|
2038
2038
|
y.current && T((p - C) / V);
|
|
@@ -2173,9 +2173,9 @@ function sc() {
|
|
|
2173
2173
|
function n(y, b) {
|
|
2174
2174
|
var x = y == null ? null : typeof Symbol < "u" && y[Symbol.iterator] || y["@@iterator"];
|
|
2175
2175
|
if (x != null) {
|
|
2176
|
-
var C, O,
|
|
2176
|
+
var C, O, z, q, X = [], U = !0, k = !1;
|
|
2177
2177
|
try {
|
|
2178
|
-
if (
|
|
2178
|
+
if (z = (x = x.call(y)).next, b !== 0) for (; !(U = (C = z.call(x)).done) && (X.push(C.value), X.length !== b); U = !0) ;
|
|
2179
2179
|
} catch (_) {
|
|
2180
2180
|
k = !0, O = _;
|
|
2181
2181
|
} finally {
|
|
@@ -2243,18 +2243,18 @@ function sc() {
|
|
|
2243
2243
|
}
|
|
2244
2244
|
function c(y, b) {
|
|
2245
2245
|
if (y == null) return {};
|
|
2246
|
-
var x = {}, C = Object.keys(y), O,
|
|
2247
|
-
for (
|
|
2248
|
-
O = C[
|
|
2246
|
+
var x = {}, C = Object.keys(y), O, z;
|
|
2247
|
+
for (z = 0; z < C.length; z++)
|
|
2248
|
+
O = C[z], !(b.indexOf(O) >= 0) && (x[O] = y[O]);
|
|
2249
2249
|
return x;
|
|
2250
2250
|
}
|
|
2251
2251
|
function u(y, b) {
|
|
2252
2252
|
if (y == null) return {};
|
|
2253
2253
|
var x = c(y, b), C, O;
|
|
2254
2254
|
if (Object.getOwnPropertySymbols) {
|
|
2255
|
-
var
|
|
2256
|
-
for (O = 0; O <
|
|
2257
|
-
C =
|
|
2255
|
+
var z = Object.getOwnPropertySymbols(y);
|
|
2256
|
+
for (O = 0; O < z.length; O++)
|
|
2257
|
+
C = z[O], !(b.indexOf(C) >= 0) && Object.prototype.propertyIsEnumerable.call(y, C) && (x[C] = y[C]);
|
|
2258
2258
|
}
|
|
2259
2259
|
return x;
|
|
2260
2260
|
}
|
|
@@ -2293,10 +2293,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2293
2293
|
}, []);
|
|
2294
2294
|
}
|
|
2295
2295
|
var w = function(b, x) {
|
|
2296
|
-
var C = x.decimal, O = x.decimals,
|
|
2296
|
+
var C = x.decimal, O = x.decimals, z = x.duration, q = x.easingFn, X = x.end, U = x.formattingFn, k = x.numerals, _ = x.prefix, at = x.separator, it = x.start, Ft = x.suffix, It = x.useEasing, bt = x.useGrouping, gt = x.useIndianSeparators, $t = x.enableScrollSpy, pt = x.scrollSpyDelay, Bt = x.scrollSpyOnce, St = x.plugin;
|
|
2297
2297
|
return new e.CountUp(b, X, {
|
|
2298
2298
|
startVal: it,
|
|
2299
|
-
duration:
|
|
2299
|
+
duration: z,
|
|
2300
2300
|
decimal: C,
|
|
2301
2301
|
decimalPlaces: O,
|
|
2302
2302
|
easingFn: q,
|
|
@@ -2309,9 +2309,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2309
2309
|
useEasing: It,
|
|
2310
2310
|
useIndianSeparators: gt,
|
|
2311
2311
|
useGrouping: bt,
|
|
2312
|
-
enableScrollSpy:
|
|
2312
|
+
enableScrollSpy: $t,
|
|
2313
2313
|
scrollSpyDelay: pt,
|
|
2314
|
-
scrollSpyOnce:
|
|
2314
|
+
scrollSpyOnce: Bt
|
|
2315
2315
|
});
|
|
2316
2316
|
}, T = ["ref", "startOnMount", "enableReinitialize", "delay", "onEnd", "onStart", "onPauseResume", "onReset", "onUpdate"], V = {
|
|
2317
2317
|
decimal: ".",
|
|
@@ -2333,15 +2333,15 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2333
2333
|
return Kt !== void 0;
|
|
2334
2334
|
})), C = t.useMemo(function() {
|
|
2335
2335
|
return r(r({}, V), x);
|
|
2336
|
-
}, [b]), O = C.ref,
|
|
2336
|
+
}, [b]), O = C.ref, z = C.startOnMount, q = C.enableReinitialize, X = C.delay, U = C.onEnd, k = C.onStart, _ = C.onPauseResume, at = C.onReset, it = C.onUpdate, Ft = u(C, T), It = t.useRef(), bt = t.useRef(), gt = t.useRef(!1), $t = v(function() {
|
|
2337
2337
|
return w(typeof O == "string" ? O : O.current, Ft);
|
|
2338
2338
|
}), pt = v(function(lt) {
|
|
2339
2339
|
var Ct = It.current;
|
|
2340
2340
|
if (Ct && !lt)
|
|
2341
2341
|
return Ct;
|
|
2342
|
-
var Kt =
|
|
2342
|
+
var Kt = $t();
|
|
2343
2343
|
return It.current = Kt, Kt;
|
|
2344
|
-
}),
|
|
2344
|
+
}), Bt = v(function() {
|
|
2345
2345
|
var lt = function() {
|
|
2346
2346
|
return pt(!0).start(function() {
|
|
2347
2347
|
U == null || U({
|
|
@@ -2376,9 +2376,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2376
2376
|
start: Gt
|
|
2377
2377
|
});
|
|
2378
2378
|
}), Gt = v(function() {
|
|
2379
|
-
wt(),
|
|
2379
|
+
wt(), Bt();
|
|
2380
2380
|
}), R = v(function(lt) {
|
|
2381
|
-
|
|
2381
|
+
z && (lt && wt(), Bt());
|
|
2382
2382
|
});
|
|
2383
2383
|
return t.useEffect(function() {
|
|
2384
2384
|
gt.current ? q && R(!0) : (gt.current = !0, R());
|
|
@@ -2394,14 +2394,14 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2394
2394
|
getCountUp: pt
|
|
2395
2395
|
};
|
|
2396
2396
|
}, E = ["className", "redraw", "containerProps", "children", "style"], M = function(b) {
|
|
2397
|
-
var x = b.className, C = b.redraw, O = b.containerProps,
|
|
2397
|
+
var x = b.className, C = b.redraw, O = b.containerProps, z = b.children, q = b.style, X = u(b, E), U = t.useRef(null), k = t.useRef(!1), _ = m(r(r({}, X), {}, {
|
|
2398
2398
|
ref: U,
|
|
2399
|
-
startOnMount: typeof
|
|
2399
|
+
startOnMount: typeof z != "function" || b.delay === 0,
|
|
2400
2400
|
// component manually restarts
|
|
2401
2401
|
enableReinitialize: !1
|
|
2402
2402
|
})), at = _.start, it = _.reset, Ft = _.update, It = _.pauseResume, bt = _.getCountUp, gt = v(function() {
|
|
2403
2403
|
at();
|
|
2404
|
-
}),
|
|
2404
|
+
}), $t = v(function(St) {
|
|
2405
2405
|
b.preserveValue || it(), Ft(St);
|
|
2406
2406
|
}), pt = v(function() {
|
|
2407
2407
|
if (typeof b.children == "function" && !(U.current instanceof Element)) {
|
|
@@ -2413,16 +2413,16 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2413
2413
|
t.useEffect(function() {
|
|
2414
2414
|
pt();
|
|
2415
2415
|
}, [pt]), t.useEffect(function() {
|
|
2416
|
-
k.current &&
|
|
2417
|
-
}, [b.end,
|
|
2418
|
-
var
|
|
2416
|
+
k.current && $t(b.end);
|
|
2417
|
+
}, [b.end, $t]);
|
|
2418
|
+
var Bt = C && b;
|
|
2419
2419
|
return t.useEffect(function() {
|
|
2420
2420
|
C && k.current && gt();
|
|
2421
|
-
}, [gt, C,
|
|
2421
|
+
}, [gt, C, Bt]), t.useEffect(function() {
|
|
2422
2422
|
!C && k.current && gt();
|
|
2423
2423
|
}, [gt, C, b.start, b.suffix, b.prefix, b.duration, b.separator, b.decimals, b.decimal, b.className, b.formattingFn]), t.useEffect(function() {
|
|
2424
2424
|
k.current = !0;
|
|
2425
|
-
}, []), typeof
|
|
2425
|
+
}, []), typeof z == "function" ? z({
|
|
2426
2426
|
countUpRef: U,
|
|
2427
2427
|
start: at,
|
|
2428
2428
|
reset: it,
|
|
@@ -2557,7 +2557,7 @@ function hc({
|
|
|
2557
2557
|
return w.ref = w[0], w.inView = w[1], w.entry = w[2], w;
|
|
2558
2558
|
}
|
|
2559
2559
|
const pc = D.div(
|
|
2560
|
-
({ styles: t }) =>
|
|
2560
|
+
({ styles: t }) => W(
|
|
2561
2561
|
{
|
|
2562
2562
|
display: "flex",
|
|
2563
2563
|
flexDirection: "column"
|
|
@@ -2574,7 +2574,7 @@ const pc = D.div(
|
|
|
2574
2574
|
fontSize: "2.5em",
|
|
2575
2575
|
lineHeight: "1em"
|
|
2576
2576
|
}
|
|
2577
|
-
}),
|
|
2577
|
+
}), Np = ({ label: t, suffix: e, keyNumber: n, styles: i = {}, theme: r = j }) => {
|
|
2578
2578
|
const [o, s] = hc({
|
|
2579
2579
|
threshold: 0.3,
|
|
2580
2580
|
triggerOnce: !0
|
|
@@ -2592,7 +2592,7 @@ const pc = D.div(
|
|
|
2592
2592
|
theme: {
|
|
2593
2593
|
global: { maxWidth: e, paddingLeft: n, paddingRight: i }
|
|
2594
2594
|
}
|
|
2595
|
-
}) =>
|
|
2595
|
+
}) => W(
|
|
2596
2596
|
{
|
|
2597
2597
|
height: 0,
|
|
2598
2598
|
width: "100vw",
|
|
@@ -2616,7 +2616,7 @@ const pc = D.div(
|
|
|
2616
2616
|
},
|
|
2617
2617
|
t
|
|
2618
2618
|
)
|
|
2619
|
-
),
|
|
2619
|
+
), Up = ({
|
|
2620
2620
|
video: t,
|
|
2621
2621
|
poster: e,
|
|
2622
2622
|
isAutoPlay: n,
|
|
@@ -2630,7 +2630,7 @@ const pc = D.div(
|
|
|
2630
2630
|
theme: {
|
|
2631
2631
|
languageSwitcher: { width: e }
|
|
2632
2632
|
}
|
|
2633
|
-
}) =>
|
|
2633
|
+
}) => W(
|
|
2634
2634
|
{
|
|
2635
2635
|
width: e[0],
|
|
2636
2636
|
marginLeft: "auto",
|
|
@@ -2694,7 +2694,7 @@ const pc = D.div(
|
|
|
2694
2694
|
outline: "none"
|
|
2695
2695
|
}
|
|
2696
2696
|
})
|
|
2697
|
-
),
|
|
2697
|
+
), zp = ({
|
|
2698
2698
|
currentLocale: t,
|
|
2699
2699
|
handleChange: e,
|
|
2700
2700
|
locales: n,
|
|
@@ -2704,29 +2704,33 @@ const pc = D.div(
|
|
|
2704
2704
|
}) => /* @__PURE__ */ ht(yc, { theme: r, styles: i, children: [
|
|
2705
2705
|
/* @__PURE__ */ A(vc, { children: /* @__PURE__ */ A(Lt, { theme: r, icon: "caret" }) }),
|
|
2706
2706
|
/* @__PURE__ */ A(xc, { theme: r, value: t, onChange: e, "aria-label": "Switch Language", children: n.map((s, a) => /* @__PURE__ */ A("option", { value: s, disabled: s === t, children: o[s] }, `locale-${a}`)) })
|
|
2707
|
-
] })
|
|
2708
|
-
|
|
2709
|
-
|
|
2710
|
-
|
|
2711
|
-
|
|
2707
|
+
] });
|
|
2708
|
+
function bc(t) {
|
|
2709
|
+
var e = t.match(/^var\((.*)\)$/);
|
|
2710
|
+
return e ? e[1] : t;
|
|
2711
|
+
}
|
|
2712
|
+
function Sc(t, e) {
|
|
2713
|
+
var n = {};
|
|
2714
|
+
{
|
|
2715
|
+
var i = t;
|
|
2716
|
+
for (var r in i) {
|
|
2717
|
+
var o = i[r];
|
|
2718
|
+
o != null && (n[bc(r)] = o);
|
|
2712
2719
|
}
|
|
2713
|
-
}
|
|
2714
|
-
|
|
2715
|
-
|
|
2716
|
-
|
|
2717
|
-
flex: "1 1 auto",
|
|
2718
|
-
minHeight: "45vh",
|
|
2719
|
-
textAlign: "center",
|
|
2720
|
-
alignItems: "center",
|
|
2721
|
-
flexDirection: "column",
|
|
2722
|
-
justifyContent: "center",
|
|
2723
|
-
[P[1]]: {
|
|
2724
|
-
minHeight: n
|
|
2725
|
-
}
|
|
2720
|
+
}
|
|
2721
|
+
return Object.defineProperty(n, "toString", {
|
|
2722
|
+
value: function() {
|
|
2723
|
+
return Object.keys(this).map((a) => "".concat(a, ":").concat(this[a])).join(";");
|
|
2726
2724
|
},
|
|
2727
|
-
|
|
2728
|
-
)
|
|
2729
|
-
|
|
2725
|
+
writable: !1
|
|
2726
|
+
}), n;
|
|
2727
|
+
}
|
|
2728
|
+
var wc = "var(--_1wp326d0)", Tc = "var(--_1wp326d1)", Cc = "var(--_1wp326d2)", Pc = "_1wp326d3";
|
|
2729
|
+
const Wp = ({ children: t, styles: e = {}, theme: n = j }) => /* @__PURE__ */ A("main", { className: Pc, style: Sc({
|
|
2730
|
+
[Cc]: n.main.backgroundColor,
|
|
2731
|
+
[Tc]: n.main.minHeight,
|
|
2732
|
+
[wc]: e
|
|
2733
|
+
}), children: t }), Ac = D.div(
|
|
2730
2734
|
({
|
|
2731
2735
|
isOpen: t,
|
|
2732
2736
|
theme: {
|
|
@@ -2761,9 +2765,9 @@ const pc = D.div(
|
|
|
2761
2765
|
gap: e[3]
|
|
2762
2766
|
}
|
|
2763
2767
|
})
|
|
2764
|
-
),
|
|
2768
|
+
), Vc = ({ isOpen: t, theme: e = j, children: n }) => (ut(() => {
|
|
2765
2769
|
document.getElementsByTagName("html")[0].style.overflow = "", t && (document.getElementsByTagName("html")[0].style.overflow = "hidden");
|
|
2766
|
-
}, [t]), /* @__PURE__ */ A(
|
|
2770
|
+
}, [t]), /* @__PURE__ */ A(Ac, { isOpen: t, theme: e, children: n })), Ec = D.header(
|
|
2767
2771
|
({
|
|
2768
2772
|
styles: t,
|
|
2769
2773
|
isFixed: e,
|
|
@@ -2771,7 +2775,7 @@ const pc = D.div(
|
|
|
2771
2775
|
global: { paddingLeft: n, paddingRight: i },
|
|
2772
2776
|
header: { height: r, gap: o, backgroundColor: s, paddingTop: a, paddingBottom: l }
|
|
2773
2777
|
}
|
|
2774
|
-
}) =>
|
|
2778
|
+
}) => W(
|
|
2775
2779
|
{
|
|
2776
2780
|
zIndex: 30,
|
|
2777
2781
|
gap: o[0],
|
|
@@ -2819,7 +2823,7 @@ const pc = D.div(
|
|
|
2819
2823
|
},
|
|
2820
2824
|
t
|
|
2821
2825
|
)
|
|
2822
|
-
),
|
|
2826
|
+
), Rc = D.div(
|
|
2823
2827
|
({
|
|
2824
2828
|
theme: {
|
|
2825
2829
|
header: { height: t }
|
|
@@ -2836,7 +2840,7 @@ const pc = D.div(
|
|
|
2836
2840
|
height: t[3]
|
|
2837
2841
|
}
|
|
2838
2842
|
})
|
|
2839
|
-
),
|
|
2843
|
+
), Mc = D.button(({ displayOnDesktop: t }) => ({
|
|
2840
2844
|
border: 0,
|
|
2841
2845
|
width: 25,
|
|
2842
2846
|
height: 12,
|
|
@@ -2870,12 +2874,12 @@ const pc = D.div(
|
|
|
2870
2874
|
transform: t ? "rotate(-45deg) translate(4px, -3px)" : "none"
|
|
2871
2875
|
}
|
|
2872
2876
|
})
|
|
2873
|
-
),
|
|
2877
|
+
), Dc = ({ onToggleNav: t, theme: e = j, isNavOpen: n = !1, displayOnDesktop: i }) => /* @__PURE__ */ ht(Mc, { onClick: () => {
|
|
2874
2878
|
window.scrollTo({ top: 0, behavior: "smooth" }), t();
|
|
2875
2879
|
}, "aria-label": "Toggle nav", displayOnDesktop: i, children: [
|
|
2876
2880
|
/* @__PURE__ */ A(cr, { theme: e, isNavOpen: n }),
|
|
2877
2881
|
/* @__PURE__ */ A(cr, { theme: e, isNavOpen: n })
|
|
2878
|
-
] }),
|
|
2882
|
+
] }), Gp = ({
|
|
2879
2883
|
children: t,
|
|
2880
2884
|
styles: e = {},
|
|
2881
2885
|
isFixed: n = !1,
|
|
@@ -2886,21 +2890,21 @@ const pc = D.div(
|
|
|
2886
2890
|
}) => {
|
|
2887
2891
|
const [a, l] = xt(!1);
|
|
2888
2892
|
return /* @__PURE__ */ ht(Rl, { children: [
|
|
2889
|
-
/* @__PURE__ */ ht(
|
|
2890
|
-
i && /* @__PURE__ */ A(
|
|
2893
|
+
/* @__PURE__ */ ht(Ec, { theme: r, styles: e, isFixed: n, children: [
|
|
2894
|
+
i && /* @__PURE__ */ A(Vc, { theme: r, isOpen: a, children: i }),
|
|
2891
2895
|
t,
|
|
2892
|
-
!o && /* @__PURE__ */ A(
|
|
2896
|
+
!o && /* @__PURE__ */ A(Dc, { theme: r, isNavOpen: a, onToggleNav: () => l(!a), displayOnDesktop: s })
|
|
2893
2897
|
] }),
|
|
2894
|
-
n && /* @__PURE__ */ A(
|
|
2898
|
+
n && /* @__PURE__ */ A(Rc, { theme: r })
|
|
2895
2899
|
] });
|
|
2896
|
-
},
|
|
2900
|
+
}, Lc = D.footer(
|
|
2897
2901
|
({
|
|
2898
2902
|
styles: t,
|
|
2899
2903
|
theme: {
|
|
2900
2904
|
global: { paddingLeft: e, paddingRight: n },
|
|
2901
2905
|
footer: { gap: i, backgroundColor: r, paddingTop: o, paddingBottom: s }
|
|
2902
2906
|
}
|
|
2903
|
-
}) =>
|
|
2907
|
+
}) => W(
|
|
2904
2908
|
{
|
|
2905
2909
|
zIndex: 20,
|
|
2906
2910
|
gap: i[0],
|
|
@@ -2945,9 +2949,9 @@ const pc = D.div(
|
|
|
2945
2949
|
},
|
|
2946
2950
|
t
|
|
2947
2951
|
)
|
|
2948
|
-
),
|
|
2952
|
+
), Kp = ({ children: t, styles: e = {}, theme: n = j }) => /* @__PURE__ */ A(Lc, { theme: n, styles: e, children: t });
|
|
2949
2953
|
var Se = /* @__PURE__ */ ((t) => (t[t.Center = 0] = "Center", t[t.Left = 1] = "Left", t[t.Right = 2] = "Right", t))(Se || {});
|
|
2950
|
-
const
|
|
2954
|
+
const Oc = D.div(({ theme: t, styles: e, align: n, columns: i, isCentered: r, isInverted: o }) => {
|
|
2951
2955
|
const s = {
|
|
2952
2956
|
width: "100%",
|
|
2953
2957
|
display: "flex",
|
|
@@ -2983,8 +2987,8 @@ const Ec = D.div(({ theme: t, styles: e, align: n, columns: i, isCentered: r, is
|
|
|
2983
2987
|
}
|
|
2984
2988
|
}
|
|
2985
2989
|
}));
|
|
2986
|
-
return
|
|
2987
|
-
}),
|
|
2990
|
+
return W(Object.assign(s, ...a), e);
|
|
2991
|
+
}), Hp = ({
|
|
2988
2992
|
columns: t,
|
|
2989
2993
|
children: e,
|
|
2990
2994
|
styles: n = {},
|
|
@@ -2992,7 +2996,7 @@ const Ec = D.div(({ theme: t, styles: e, align: n, columns: i, isCentered: r, is
|
|
|
2992
2996
|
isCentered: r = !1,
|
|
2993
2997
|
isInverted: o = !1,
|
|
2994
2998
|
theme: s = j
|
|
2995
|
-
}) => /* @__PURE__ */ A(
|
|
2999
|
+
}) => /* @__PURE__ */ A(Oc, { align: i, theme: s, columns: t, isCentered: r, isInverted: o, styles: n, children: e }), Ws = ue({});
|
|
2996
3000
|
function Gs(t) {
|
|
2997
3001
|
const e = _t(null);
|
|
2998
3002
|
return e.current === null && (e.current = t()), e.current;
|
|
@@ -3002,7 +3006,7 @@ const di = /* @__PURE__ */ ue(null), Ks = ue({
|
|
|
3002
3006
|
isStatic: !1,
|
|
3003
3007
|
reducedMotion: "never"
|
|
3004
3008
|
});
|
|
3005
|
-
function
|
|
3009
|
+
function kc(t = !0) {
|
|
3006
3010
|
const e = st(di);
|
|
3007
3011
|
if (e === null)
|
|
3008
3012
|
return [!0, null];
|
|
@@ -3030,7 +3034,7 @@ function pi(t) {
|
|
|
3030
3034
|
const ae = /* @__NO_SIDE_EFFECTS__ */ (t, e, n) => {
|
|
3031
3035
|
const i = e - t;
|
|
3032
3036
|
return i === 0 ? 1 : (n - t) / i;
|
|
3033
|
-
}, Et = /* @__NO_SIDE_EFFECTS__ */ (t) => t * 1e3, Ot = /* @__NO_SIDE_EFFECTS__ */ (t) => t / 1e3,
|
|
3037
|
+
}, Et = /* @__NO_SIDE_EFFECTS__ */ (t) => t * 1e3, Ot = /* @__NO_SIDE_EFFECTS__ */ (t) => t / 1e3, Fc = {
|
|
3034
3038
|
skipAnimations: !1,
|
|
3035
3039
|
useManualTiming: !1
|
|
3036
3040
|
}, Ge = [
|
|
@@ -3047,7 +3051,7 @@ const ae = /* @__NO_SIDE_EFFECTS__ */ (t, e, n) => {
|
|
|
3047
3051
|
"postRender"
|
|
3048
3052
|
// Compute
|
|
3049
3053
|
];
|
|
3050
|
-
function
|
|
3054
|
+
function Ic(t, e) {
|
|
3051
3055
|
let n = /* @__PURE__ */ new Set(), i = /* @__PURE__ */ new Set(), r = !1, o = !1;
|
|
3052
3056
|
const s = /* @__PURE__ */ new WeakSet();
|
|
3053
3057
|
let a = {
|
|
@@ -3085,16 +3089,16 @@ function Dc(t, e) {
|
|
|
3085
3089
|
};
|
|
3086
3090
|
return c;
|
|
3087
3091
|
}
|
|
3088
|
-
const
|
|
3092
|
+
const $c = 40;
|
|
3089
3093
|
function Ys(t, e) {
|
|
3090
3094
|
let n = !1, i = !0;
|
|
3091
3095
|
const r = {
|
|
3092
3096
|
delta: 0,
|
|
3093
3097
|
timestamp: 0,
|
|
3094
3098
|
isProcessing: !1
|
|
3095
|
-
}, o = () => n = !0, s = Ge.reduce((v, w) => (v[w] =
|
|
3099
|
+
}, o = () => n = !0, s = Ge.reduce((v, w) => (v[w] = Ic(o), v), {}), { read: a, resolveKeyframes: l, update: c, preRender: u, render: f, postRender: d } = s, h = () => {
|
|
3096
3100
|
const v = performance.now();
|
|
3097
|
-
n = !1, r.delta = i ? 1e3 / 60 : Math.max(Math.min(v - r.timestamp,
|
|
3101
|
+
n = !1, r.delta = i ? 1e3 / 60 : Math.max(Math.min(v - r.timestamp, $c), 1), r.timestamp = v, r.isProcessing = !0, a.process(r), l.process(r), c.process(r), u.process(r), f.process(r), d.process(r), r.isProcessing = !1, n && e && (i = !1, t(h));
|
|
3098
3102
|
}, p = () => {
|
|
3099
3103
|
n = !0, i = !0, r.isProcessing || t(h);
|
|
3100
3104
|
};
|
|
@@ -3130,14 +3134,14 @@ for (const t in ur)
|
|
|
3130
3134
|
le[t] = {
|
|
3131
3135
|
isEnabled: (e) => ur[t].some((n) => !!e[n])
|
|
3132
3136
|
};
|
|
3133
|
-
function
|
|
3137
|
+
function Bc(t) {
|
|
3134
3138
|
for (const e in t)
|
|
3135
3139
|
le[e] = {
|
|
3136
3140
|
...le[e],
|
|
3137
3141
|
...t[e]
|
|
3138
3142
|
};
|
|
3139
3143
|
}
|
|
3140
|
-
const
|
|
3144
|
+
const jc = /* @__PURE__ */ new Set([
|
|
3141
3145
|
"animate",
|
|
3142
3146
|
"exit",
|
|
3143
3147
|
"variants",
|
|
@@ -3170,17 +3174,17 @@ const kc = /* @__PURE__ */ new Set([
|
|
|
3170
3174
|
"viewport"
|
|
3171
3175
|
]);
|
|
3172
3176
|
function sn(t) {
|
|
3173
|
-
return t.startsWith("while") || t.startsWith("drag") && t !== "draggable" || t.startsWith("layout") || t.startsWith("onTap") || t.startsWith("onPan") || t.startsWith("onLayout") ||
|
|
3177
|
+
return t.startsWith("while") || t.startsWith("drag") && t !== "draggable" || t.startsWith("layout") || t.startsWith("onTap") || t.startsWith("onPan") || t.startsWith("onLayout") || jc.has(t);
|
|
3174
3178
|
}
|
|
3175
3179
|
let Xs = (t) => !sn(t);
|
|
3176
|
-
function
|
|
3180
|
+
function _c(t) {
|
|
3177
3181
|
t && (Xs = (e) => e.startsWith("on") ? !sn(e) : t(e));
|
|
3178
3182
|
}
|
|
3179
3183
|
try {
|
|
3180
|
-
|
|
3184
|
+
_c(require("@emotion/is-prop-valid").default);
|
|
3181
3185
|
} catch {
|
|
3182
3186
|
}
|
|
3183
|
-
function
|
|
3187
|
+
function Nc(t, e, n) {
|
|
3184
3188
|
const i = {};
|
|
3185
3189
|
for (const r in t)
|
|
3186
3190
|
r === "values" && typeof t.values == "object" || (Xs(r) || n === !0 && sn(r) || !e && !sn(r) || // If trying to use native HTML drag events, forward drag listeners
|
|
@@ -3191,7 +3195,7 @@ const fr = /* @__PURE__ */ new Set();
|
|
|
3191
3195
|
function yn(t, e, n) {
|
|
3192
3196
|
t || fr.has(e) || (console.warn(e), fr.add(e));
|
|
3193
3197
|
}
|
|
3194
|
-
function
|
|
3198
|
+
function Uc(t) {
|
|
3195
3199
|
if (typeof Proxy > "u")
|
|
3196
3200
|
return t;
|
|
3197
3201
|
const e = /* @__PURE__ */ new Map(), n = (...i) => (process.env.NODE_ENV !== "production" && yn(!1, "motion() is deprecated. Use motion.create() instead."), t(...i));
|
|
@@ -3226,7 +3230,7 @@ function bn(t) {
|
|
|
3226
3230
|
function Zs(t) {
|
|
3227
3231
|
return !!(bn(t) || t.variants);
|
|
3228
3232
|
}
|
|
3229
|
-
function
|
|
3233
|
+
function zc(t, e) {
|
|
3230
3234
|
if (bn(t)) {
|
|
3231
3235
|
const { initial: n, animate: i } = t;
|
|
3232
3236
|
return {
|
|
@@ -3236,18 +3240,18 @@ function $c(t, e) {
|
|
|
3236
3240
|
}
|
|
3237
3241
|
return t.inherit !== !1 ? e : {};
|
|
3238
3242
|
}
|
|
3239
|
-
function
|
|
3240
|
-
const { initial: e, animate: n } =
|
|
3243
|
+
function Wc(t) {
|
|
3244
|
+
const { initial: e, animate: n } = zc(t, st(vn));
|
|
3241
3245
|
return dn(() => ({ initial: e, animate: n }), [dr(e), dr(n)]);
|
|
3242
3246
|
}
|
|
3243
3247
|
function dr(t) {
|
|
3244
3248
|
return Array.isArray(t) ? t.join(" ") : t;
|
|
3245
3249
|
}
|
|
3246
|
-
const
|
|
3250
|
+
const Gc = Symbol.for("motionComponentSymbol");
|
|
3247
3251
|
function Jt(t) {
|
|
3248
3252
|
return t && typeof t == "object" && Object.prototype.hasOwnProperty.call(t, "current");
|
|
3249
3253
|
}
|
|
3250
|
-
function
|
|
3254
|
+
function Kc(t, e, n) {
|
|
3251
3255
|
return Es(
|
|
3252
3256
|
(i) => {
|
|
3253
3257
|
i && t.onMount && t.onMount(i), e && (i ? e.mount(i) : e.unmount()), n && (typeof n == "function" ? n(i) : Jt(n) && (n.current = i));
|
|
@@ -3260,8 +3264,8 @@ function Nc(t, e, n) {
|
|
|
3260
3264
|
[e]
|
|
3261
3265
|
);
|
|
3262
3266
|
}
|
|
3263
|
-
const yi = (t) => t.replace(/([a-z])([A-Z])/gu, "$1-$2").toLowerCase(),
|
|
3264
|
-
function
|
|
3267
|
+
const yi = (t) => t.replace(/([a-z])([A-Z])/gu, "$1-$2").toLowerCase(), Hc = "framerAppearId", Js = "data-" + yi(Hc), { schedule: vi, cancel: Yp } = Ys(queueMicrotask, !1), Qs = ue({});
|
|
3268
|
+
function Yc(t, e, n, i, r) {
|
|
3265
3269
|
var o, s;
|
|
3266
3270
|
const { visualElement: a } = st(vn), l = st(qs), c = st(di), u = st(Ks).reducedMotion, f = _t(null);
|
|
3267
3271
|
i = i || l.renderer, !f.current && i && (f.current = i(t, {
|
|
@@ -3273,7 +3277,7 @@ function zc(t, e, n, i, r) {
|
|
|
3273
3277
|
reducedMotionConfig: u
|
|
3274
3278
|
}));
|
|
3275
3279
|
const d = f.current, h = st(Qs);
|
|
3276
|
-
d && !d.projection && r && (d.type === "html" || d.type === "svg") &&
|
|
3280
|
+
d && !d.projection && r && (d.type === "html" || d.type === "svg") && qc(f.current, n, r, h);
|
|
3277
3281
|
const p = _t(!1);
|
|
3278
3282
|
Va(() => {
|
|
3279
3283
|
d && p.current && d.update(n, c);
|
|
@@ -3288,7 +3292,7 @@ function zc(t, e, n, i, r) {
|
|
|
3288
3292
|
}), S.current = !1));
|
|
3289
3293
|
}), d;
|
|
3290
3294
|
}
|
|
3291
|
-
function
|
|
3295
|
+
function qc(t, e, n, i) {
|
|
3292
3296
|
const { layoutId: r, layout: o, drag: s, dragConstraints: a, layoutScroll: l, layoutRoot: c } = e;
|
|
3293
3297
|
t.projection = new n(t.latestValues, e["data-framer-portal-id"] ? void 0 : to(t.parent)), t.projection.setOptions({
|
|
3294
3298
|
layoutId: r,
|
|
@@ -3312,39 +3316,39 @@ function to(t) {
|
|
|
3312
3316
|
if (t)
|
|
3313
3317
|
return t.options.allowProjection !== !1 ? t.projection : to(t.parent);
|
|
3314
3318
|
}
|
|
3315
|
-
function
|
|
3319
|
+
function Xc({ preloadedFeatures: t, createVisualElement: e, useRender: n, useVisualState: i, Component: r }) {
|
|
3316
3320
|
var o, s;
|
|
3317
|
-
t &&
|
|
3321
|
+
t && Bc(t);
|
|
3318
3322
|
function a(c, u) {
|
|
3319
3323
|
let f;
|
|
3320
3324
|
const d = {
|
|
3321
3325
|
...st(Ks),
|
|
3322
3326
|
...c,
|
|
3323
|
-
layoutId:
|
|
3324
|
-
}, { isStatic: h } = d, p =
|
|
3327
|
+
layoutId: Zc(c)
|
|
3328
|
+
}, { isStatic: h } = d, p = Wc(c), g = i(c, h);
|
|
3325
3329
|
if (!h && hi) {
|
|
3326
|
-
|
|
3327
|
-
const S =
|
|
3328
|
-
f = S.MeasureLayout, p.visualElement =
|
|
3330
|
+
Jc(d, t);
|
|
3331
|
+
const S = Qc(d);
|
|
3332
|
+
f = S.MeasureLayout, p.visualElement = Yc(r, g, d, e, S.ProjectionNode);
|
|
3329
3333
|
}
|
|
3330
|
-
return Ta(vn.Provider, { value: p, children: [f && p.visualElement ? As(f, { visualElement: p.visualElement, ...d }) : null, n(r, c,
|
|
3334
|
+
return Ta(vn.Provider, { value: p, children: [f && p.visualElement ? As(f, { visualElement: p.visualElement, ...d }) : null, n(r, c, Kc(g, p.visualElement, u), g, h, p.visualElement)] });
|
|
3331
3335
|
}
|
|
3332
3336
|
a.displayName = `motion.${typeof r == "string" ? r : `create(${(s = (o = r.displayName) !== null && o !== void 0 ? o : r.name) !== null && s !== void 0 ? s : ""})`}`;
|
|
3333
3337
|
const l = Vs(a);
|
|
3334
|
-
return l[
|
|
3338
|
+
return l[Gc] = r, l;
|
|
3335
3339
|
}
|
|
3336
|
-
function
|
|
3340
|
+
function Zc({ layoutId: t }) {
|
|
3337
3341
|
const e = st(Ws).id;
|
|
3338
3342
|
return e && t !== void 0 ? e + "-" + t : t;
|
|
3339
3343
|
}
|
|
3340
|
-
function
|
|
3344
|
+
function Jc(t, e) {
|
|
3341
3345
|
const n = st(qs).strict;
|
|
3342
3346
|
if (process.env.NODE_ENV !== "production" && e && n) {
|
|
3343
3347
|
const i = "You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";
|
|
3344
3348
|
t.ignoreStrict ? de(!1, i) : Dt(!1, i);
|
|
3345
3349
|
}
|
|
3346
3350
|
}
|
|
3347
|
-
function
|
|
3351
|
+
function Qc(t) {
|
|
3348
3352
|
const { drag: e, layout: n } = le;
|
|
3349
3353
|
if (!e && !n)
|
|
3350
3354
|
return {};
|
|
@@ -3354,8 +3358,8 @@ function Yc(t) {
|
|
|
3354
3358
|
ProjectionNode: i.ProjectionNode
|
|
3355
3359
|
};
|
|
3356
3360
|
}
|
|
3357
|
-
const eo = (t) => (e) => typeof e == "string" && e.startsWith(t), xi = /* @__PURE__ */ eo("--"),
|
|
3358
|
-
function
|
|
3361
|
+
const eo = (t) => (e) => typeof e == "string" && e.startsWith(t), xi = /* @__PURE__ */ eo("--"), tu = /* @__PURE__ */ eo("var(--"), bi = (t) => tu(t) ? eu.test(t.split("/*")[0].trim()) : !1, eu = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu, De = {};
|
|
3362
|
+
function nu(t) {
|
|
3359
3363
|
for (const e in t)
|
|
3360
3364
|
De[e] = t[e], xi(e) && (De[e].isCSSVariable = !0);
|
|
3361
3365
|
}
|
|
@@ -3391,15 +3395,15 @@ const nt = (t) => !!(t && t.getVelocity), io = (t, e) => e && typeof t == "numbe
|
|
|
3391
3395
|
}, Ke = {
|
|
3392
3396
|
...pe,
|
|
3393
3397
|
default: 1
|
|
3394
|
-
},
|
|
3398
|
+
}, Be = (t) => ({
|
|
3395
3399
|
test: (e) => typeof e == "string" && e.endsWith(t) && e.split(" ").length === 1,
|
|
3396
3400
|
parse: parseFloat,
|
|
3397
3401
|
transform: (e) => `${e}${t}`
|
|
3398
|
-
}), jt = /* @__PURE__ */
|
|
3402
|
+
}), jt = /* @__PURE__ */ Be("deg"), Rt = /* @__PURE__ */ Be("%"), L = /* @__PURE__ */ Be("px"), iu = /* @__PURE__ */ Be("vh"), ru = /* @__PURE__ */ Be("vw"), hr = {
|
|
3399
3403
|
...Rt,
|
|
3400
3404
|
parse: (t) => Rt.parse(t) / 100,
|
|
3401
3405
|
transform: (t) => Rt.transform(t * 100)
|
|
3402
|
-
},
|
|
3406
|
+
}, su = {
|
|
3403
3407
|
// Border props
|
|
3404
3408
|
borderWidth: L,
|
|
3405
3409
|
borderTopWidth: L,
|
|
@@ -3435,7 +3439,7 @@ const nt = (t) => !!(t && t.getVelocity), io = (t, e) => e && typeof t == "numbe
|
|
|
3435
3439
|
// Misc
|
|
3436
3440
|
backgroundPositionX: L,
|
|
3437
3441
|
backgroundPositionY: L
|
|
3438
|
-
},
|
|
3442
|
+
}, ou = {
|
|
3439
3443
|
rotate: jt,
|
|
3440
3444
|
rotateX: jt,
|
|
3441
3445
|
rotateY: jt,
|
|
@@ -3464,23 +3468,23 @@ const nt = (t) => !!(t && t.getVelocity), io = (t, e) => e && typeof t == "numbe
|
|
|
3464
3468
|
...pe,
|
|
3465
3469
|
transform: Math.round
|
|
3466
3470
|
}, Si = {
|
|
3467
|
-
...
|
|
3468
|
-
...
|
|
3471
|
+
...su,
|
|
3472
|
+
...ou,
|
|
3469
3473
|
zIndex: pr,
|
|
3470
3474
|
size: L,
|
|
3471
3475
|
// SVG
|
|
3472
3476
|
fillOpacity: Le,
|
|
3473
3477
|
strokeOpacity: Le,
|
|
3474
3478
|
numOctaves: pr
|
|
3475
|
-
},
|
|
3479
|
+
}, au = {
|
|
3476
3480
|
x: "translateX",
|
|
3477
3481
|
y: "translateY",
|
|
3478
3482
|
z: "translateZ",
|
|
3479
3483
|
transformPerspective: "perspective"
|
|
3480
|
-
},
|
|
3481
|
-
function
|
|
3484
|
+
}, lu = he.length;
|
|
3485
|
+
function cu(t, e, n) {
|
|
3482
3486
|
let i = "", r = !0;
|
|
3483
|
-
for (let o = 0; o <
|
|
3487
|
+
for (let o = 0; o < lu; o++) {
|
|
3484
3488
|
const s = he[o], a = t[s];
|
|
3485
3489
|
if (a === void 0)
|
|
3486
3490
|
continue;
|
|
@@ -3489,7 +3493,7 @@ function ru(t, e, n) {
|
|
|
3489
3493
|
const c = io(a, Si[s]);
|
|
3490
3494
|
if (!l) {
|
|
3491
3495
|
r = !1;
|
|
3492
|
-
const u =
|
|
3496
|
+
const u = au[s] || s;
|
|
3493
3497
|
i += `${u}(${c}) `;
|
|
3494
3498
|
}
|
|
3495
3499
|
n && (e[s] = c);
|
|
@@ -3513,7 +3517,7 @@ function wi(t, e, n) {
|
|
|
3513
3517
|
l.startsWith("origin") ? (a = !0, o[l] = u) : i[l] = u;
|
|
3514
3518
|
}
|
|
3515
3519
|
}
|
|
3516
|
-
if (e.transform || (s || n ? i.transform =
|
|
3520
|
+
if (e.transform || (s || n ? i.transform = cu(e, t.transform, n) : i.transform && (i.transform = "none")), a) {
|
|
3517
3521
|
const { originX: l = "50%", originY: c = "50%", originZ: u = 0 } = o;
|
|
3518
3522
|
i.transformOrigin = `${l} ${c} ${u}`;
|
|
3519
3523
|
}
|
|
@@ -3528,21 +3532,21 @@ function ro(t, e, n) {
|
|
|
3528
3532
|
for (const i in e)
|
|
3529
3533
|
!nt(e[i]) && !no(i, n) && (t[i] = e[i]);
|
|
3530
3534
|
}
|
|
3531
|
-
function
|
|
3535
|
+
function uu({ transformTemplate: t }, e) {
|
|
3532
3536
|
return dn(() => {
|
|
3533
3537
|
const n = Ti();
|
|
3534
3538
|
return wi(n, e, t), Object.assign({}, n.vars, n.style);
|
|
3535
3539
|
}, [e]);
|
|
3536
3540
|
}
|
|
3537
|
-
function
|
|
3541
|
+
function fu(t, e) {
|
|
3538
3542
|
const n = t.style || {}, i = {};
|
|
3539
|
-
return ro(i, n, t), Object.assign(i,
|
|
3543
|
+
return ro(i, n, t), Object.assign(i, uu(t, e)), i;
|
|
3540
3544
|
}
|
|
3541
|
-
function
|
|
3542
|
-
const n = {}, i =
|
|
3545
|
+
function du(t, e) {
|
|
3546
|
+
const n = {}, i = fu(t, e);
|
|
3543
3547
|
return t.drag && t.dragListener !== !1 && (n.draggable = !1, i.userSelect = i.WebkitUserSelect = i.WebkitTouchCallout = "none", i.touchAction = t.drag === !0 ? "none" : `pan-${t.drag === "x" ? "y" : "x"}`), t.tabIndex === void 0 && (t.onTap || t.onTapStart || t.whileTap) && (n.tabIndex = 0), n.style = i, n;
|
|
3544
3548
|
}
|
|
3545
|
-
const
|
|
3549
|
+
const hu = [
|
|
3546
3550
|
"animate",
|
|
3547
3551
|
"circle",
|
|
3548
3552
|
"defs",
|
|
@@ -3582,23 +3586,23 @@ function Ci(t) {
|
|
|
3582
3586
|
/**
|
|
3583
3587
|
* If it's in our list of lowercase SVG tags, it's an SVG component
|
|
3584
3588
|
*/
|
|
3585
|
-
!!(
|
|
3589
|
+
!!(hu.indexOf(t) > -1 || /**
|
|
3586
3590
|
* If it contains a capital letter, it's an SVG component
|
|
3587
3591
|
*/
|
|
3588
3592
|
/[A-Z]/u.test(t))
|
|
3589
3593
|
)
|
|
3590
3594
|
);
|
|
3591
3595
|
}
|
|
3592
|
-
const
|
|
3596
|
+
const pu = {
|
|
3593
3597
|
offset: "stroke-dashoffset",
|
|
3594
3598
|
array: "stroke-dasharray"
|
|
3595
|
-
},
|
|
3599
|
+
}, mu = {
|
|
3596
3600
|
offset: "strokeDashoffset",
|
|
3597
3601
|
array: "strokeDasharray"
|
|
3598
3602
|
};
|
|
3599
|
-
function
|
|
3603
|
+
function gu(t, e, n = 1, i = 0, r = !0) {
|
|
3600
3604
|
t.pathLength = 1;
|
|
3601
|
-
const o = r ?
|
|
3605
|
+
const o = r ? pu : mu;
|
|
3602
3606
|
t[o.offset] = L.transform(-i);
|
|
3603
3607
|
const s = L.transform(e), a = L.transform(n);
|
|
3604
3608
|
t[o.array] = `${s} ${a}`;
|
|
@@ -3606,7 +3610,7 @@ function fu(t, e, n = 1, i = 0, r = !0) {
|
|
|
3606
3610
|
function mr(t, e, n) {
|
|
3607
3611
|
return typeof t == "string" ? t : L.transform(e + n * t);
|
|
3608
3612
|
}
|
|
3609
|
-
function
|
|
3613
|
+
function yu(t, e, n) {
|
|
3610
3614
|
const i = mr(e, t.x, t.width), r = mr(n, t.y, t.height);
|
|
3611
3615
|
return `${i} ${r}`;
|
|
3612
3616
|
}
|
|
@@ -3628,13 +3632,13 @@ function Pi(t, {
|
|
|
3628
3632
|
}
|
|
3629
3633
|
t.attrs = t.style, t.style = {};
|
|
3630
3634
|
const { attrs: d, style: h, dimensions: p } = t;
|
|
3631
|
-
d.transform && (p && (h.transform = d.transform), delete d.transform), p && (r !== void 0 || o !== void 0 || h.transform) && (h.transformOrigin =
|
|
3635
|
+
d.transform && (p && (h.transform = d.transform), delete d.transform), p && (r !== void 0 || o !== void 0 || h.transform) && (h.transformOrigin = yu(p, r !== void 0 ? r : 0.5, o !== void 0 ? o : 0.5)), e !== void 0 && (d.x = e), n !== void 0 && (d.y = n), i !== void 0 && (d.scale = i), s !== void 0 && gu(d, s, a, l, !1);
|
|
3632
3636
|
}
|
|
3633
3637
|
const so = () => ({
|
|
3634
3638
|
...Ti(),
|
|
3635
3639
|
attrs: {}
|
|
3636
3640
|
}), Ai = (t) => typeof t == "string" && t.toLowerCase() === "svg";
|
|
3637
|
-
function
|
|
3641
|
+
function vu(t, e, n, i) {
|
|
3638
3642
|
const r = dn(() => {
|
|
3639
3643
|
const o = so();
|
|
3640
3644
|
return Pi(o, e, Ai(i), t.transformTemplate), {
|
|
@@ -3648,9 +3652,9 @@ function hu(t, e, n, i) {
|
|
|
3648
3652
|
}
|
|
3649
3653
|
return r;
|
|
3650
3654
|
}
|
|
3651
|
-
function
|
|
3655
|
+
function xu(t = !1) {
|
|
3652
3656
|
return (n, i, r, { latestValues: o }, s) => {
|
|
3653
|
-
const l = (Ci(n) ?
|
|
3657
|
+
const l = (Ci(n) ? vu : du)(i, o, s, n), c = Nc(i, typeof n == "string", t), u = n !== Rs ? { ...c, ...l, ref: r } : {}, { children: f } = i, d = dn(() => nt(f) ? f.get() : f, [f]);
|
|
3654
3658
|
return Ea(n, {
|
|
3655
3659
|
...u,
|
|
3656
3660
|
children: d
|
|
@@ -3674,23 +3678,23 @@ function Vi(t, e, n, i) {
|
|
|
3674
3678
|
}
|
|
3675
3679
|
return e;
|
|
3676
3680
|
}
|
|
3677
|
-
const Kn = (t) => Array.isArray(t),
|
|
3681
|
+
const Kn = (t) => Array.isArray(t), bu = (t) => !!(t && typeof t == "object" && t.mix && t.toValue), Su = (t) => Kn(t) ? t[t.length - 1] || 0 : t;
|
|
3678
3682
|
function Je(t) {
|
|
3679
3683
|
const e = nt(t) ? t.get() : t;
|
|
3680
|
-
return
|
|
3684
|
+
return bu(e) ? e.toValue() : e;
|
|
3681
3685
|
}
|
|
3682
|
-
function
|
|
3686
|
+
function wu({ scrapeMotionValuesFromProps: t, createRenderState: e, onUpdate: n }, i, r, o) {
|
|
3683
3687
|
const s = {
|
|
3684
|
-
latestValues:
|
|
3688
|
+
latestValues: Tu(i, r, o, t),
|
|
3685
3689
|
renderState: e()
|
|
3686
3690
|
};
|
|
3687
3691
|
return n && (s.onMount = (a) => n({ props: i, current: a, ...s }), s.onUpdate = (a) => n(a)), s;
|
|
3688
3692
|
}
|
|
3689
3693
|
const oo = (t) => (e, n) => {
|
|
3690
|
-
const i = st(vn), r = st(di), o = () =>
|
|
3694
|
+
const i = st(vn), r = st(di), o = () => wu(t, e, i, r);
|
|
3691
3695
|
return n ? o() : Gs(o);
|
|
3692
3696
|
};
|
|
3693
|
-
function
|
|
3697
|
+
function Tu(t, e, n, i) {
|
|
3694
3698
|
const r = {}, o = i(t, {});
|
|
3695
3699
|
for (const d in o)
|
|
3696
3700
|
r[d] = Je(o[d]);
|
|
@@ -3728,7 +3732,7 @@ function Ei(t, e, n) {
|
|
|
3728
3732
|
(nt(r[s]) || e.style && nt(e.style[s]) || no(s, t) || ((i = n == null ? void 0 : n.getValue(s)) === null || i === void 0 ? void 0 : i.liveStyle) !== void 0) && (o[s] = r[s]);
|
|
3729
3733
|
return o;
|
|
3730
3734
|
}
|
|
3731
|
-
const
|
|
3735
|
+
const Cu = {
|
|
3732
3736
|
useVisualState: oo({
|
|
3733
3737
|
scrapeMotionValuesFromProps: Ei,
|
|
3734
3738
|
createRenderState: Ti
|
|
@@ -3790,7 +3794,7 @@ function fo(t, e, n) {
|
|
|
3790
3794
|
}
|
|
3791
3795
|
return i;
|
|
3792
3796
|
}
|
|
3793
|
-
const yr = ["x", "y", "width", "height", "cx", "cy", "r"],
|
|
3797
|
+
const yr = ["x", "y", "width", "height", "cx", "cy", "r"], Pu = {
|
|
3794
3798
|
useVisualState: oo({
|
|
3795
3799
|
scrapeMotionValuesFromProps: fo,
|
|
3796
3800
|
createRenderState: so,
|
|
@@ -3821,24 +3825,24 @@ const yr = ["x", "y", "width", "height", "cx", "cy", "r"], bu = {
|
|
|
3821
3825
|
}
|
|
3822
3826
|
})
|
|
3823
3827
|
};
|
|
3824
|
-
function
|
|
3828
|
+
function Au(t, e) {
|
|
3825
3829
|
return function(i, { forwardMotionProps: r } = { forwardMotionProps: !1 }) {
|
|
3826
3830
|
const s = {
|
|
3827
|
-
...Ci(i) ?
|
|
3831
|
+
...Ci(i) ? Pu : Cu,
|
|
3828
3832
|
preloadedFeatures: t,
|
|
3829
|
-
useRender:
|
|
3833
|
+
useRender: xu(r),
|
|
3830
3834
|
createVisualElement: e,
|
|
3831
3835
|
Component: i
|
|
3832
3836
|
};
|
|
3833
|
-
return
|
|
3837
|
+
return Xc(s);
|
|
3834
3838
|
};
|
|
3835
3839
|
}
|
|
3836
3840
|
function Oe(t, e, n) {
|
|
3837
3841
|
const i = t.getProps();
|
|
3838
3842
|
return Vi(i, e, n !== void 0 ? n : i.custom, t);
|
|
3839
3843
|
}
|
|
3840
|
-
const
|
|
3841
|
-
class
|
|
3844
|
+
const Vu = /* @__PURE__ */ pi(() => window.ScrollTimeline !== void 0);
|
|
3845
|
+
class Eu {
|
|
3842
3846
|
constructor(e) {
|
|
3843
3847
|
this.stop = () => this.runAll("stop"), this.animations = e.filter(Boolean);
|
|
3844
3848
|
}
|
|
@@ -3857,7 +3861,7 @@ class Tu {
|
|
|
3857
3861
|
}
|
|
3858
3862
|
attachTimeline(e, n) {
|
|
3859
3863
|
const i = this.animations.map((r) => {
|
|
3860
|
-
if (
|
|
3864
|
+
if (Vu() && r.attachTimeline)
|
|
3861
3865
|
return r.attachTimeline(e);
|
|
3862
3866
|
if (typeof n == "function")
|
|
3863
3867
|
return n(r);
|
|
@@ -3908,7 +3912,7 @@ class Tu {
|
|
|
3908
3912
|
this.runAll("complete");
|
|
3909
3913
|
}
|
|
3910
3914
|
}
|
|
3911
|
-
class
|
|
3915
|
+
class Ru extends Eu {
|
|
3912
3916
|
then(e, n) {
|
|
3913
3917
|
return Promise.all(this.animations).then(e).catch(n);
|
|
3914
3918
|
}
|
|
@@ -3931,17 +3935,17 @@ function Mi(t) {
|
|
|
3931
3935
|
function vr(t, e) {
|
|
3932
3936
|
t.timeline = e, t.onfinish = null;
|
|
3933
3937
|
}
|
|
3934
|
-
const Di = (t) => Array.isArray(t) && typeof t[0] == "number",
|
|
3938
|
+
const Di = (t) => Array.isArray(t) && typeof t[0] == "number", Mu = {
|
|
3935
3939
|
linearEasing: void 0
|
|
3936
3940
|
};
|
|
3937
|
-
function
|
|
3941
|
+
function Du(t, e) {
|
|
3938
3942
|
const n = /* @__PURE__ */ pi(t);
|
|
3939
3943
|
return () => {
|
|
3940
3944
|
var i;
|
|
3941
|
-
return (i =
|
|
3945
|
+
return (i = Mu[e]) !== null && i !== void 0 ? i : n();
|
|
3942
3946
|
};
|
|
3943
3947
|
}
|
|
3944
|
-
const on = /* @__PURE__ */
|
|
3948
|
+
const on = /* @__PURE__ */ Du(() => {
|
|
3945
3949
|
try {
|
|
3946
3950
|
document.createElement("div").animate({ opacity: 0 }, { easing: "linear(0, 1)" });
|
|
3947
3951
|
} catch {
|
|
@@ -4002,7 +4006,7 @@ function xo(t, e) {
|
|
|
4002
4006
|
function xr(t) {
|
|
4003
4007
|
return !(t.pointerType === "touch" || yo());
|
|
4004
4008
|
}
|
|
4005
|
-
function
|
|
4009
|
+
function Lu(t, e, n = {}) {
|
|
4006
4010
|
const [i, r, o] = xo(t, n), s = (a) => {
|
|
4007
4011
|
if (!xr(a))
|
|
4008
4012
|
return;
|
|
@@ -4026,15 +4030,15 @@ function an(t, e) {
|
|
|
4026
4030
|
} catch {
|
|
4027
4031
|
}
|
|
4028
4032
|
}
|
|
4029
|
-
const bo = (t, e) => e ? t === e ? !0 : bo(t, e.parentElement) : !1, Li = (t) => t.pointerType === "mouse" ? typeof t.button != "number" || t.button <= 0 : t.isPrimary !== !1,
|
|
4033
|
+
const bo = (t, e) => e ? t === e ? !0 : bo(t, e.parentElement) : !1, Li = (t) => t.pointerType === "mouse" ? typeof t.button != "number" || t.button <= 0 : t.isPrimary !== !1, Ou = /* @__PURE__ */ new Set([
|
|
4030
4034
|
"BUTTON",
|
|
4031
4035
|
"INPUT",
|
|
4032
4036
|
"SELECT",
|
|
4033
4037
|
"TEXTAREA",
|
|
4034
4038
|
"A"
|
|
4035
4039
|
]);
|
|
4036
|
-
function
|
|
4037
|
-
return
|
|
4040
|
+
function ku(t) {
|
|
4041
|
+
return Ou.has(t.tagName) || t.tabIndex !== -1;
|
|
4038
4042
|
}
|
|
4039
4043
|
const xe = /* @__PURE__ */ new WeakSet();
|
|
4040
4044
|
function br(t) {
|
|
@@ -4045,7 +4049,7 @@ function br(t) {
|
|
|
4045
4049
|
function En(t, e) {
|
|
4046
4050
|
t.dispatchEvent(new PointerEvent("pointer" + e, { isPrimary: !0, bubbles: !0 }));
|
|
4047
4051
|
}
|
|
4048
|
-
const
|
|
4052
|
+
const Fu = (t, e) => {
|
|
4049
4053
|
const n = t.currentTarget;
|
|
4050
4054
|
if (!n)
|
|
4051
4055
|
return;
|
|
@@ -4063,7 +4067,7 @@ const Mu = (t, e) => {
|
|
|
4063
4067
|
function Sr(t) {
|
|
4064
4068
|
return Li(t) && !yo();
|
|
4065
4069
|
}
|
|
4066
|
-
function
|
|
4070
|
+
function Iu(t, e, n = {}) {
|
|
4067
4071
|
const [i, r, o] = xo(t, n), s = (a) => {
|
|
4068
4072
|
const l = a.currentTarget;
|
|
4069
4073
|
if (!l || !Sr(a) || xe.has(l))
|
|
@@ -4072,7 +4076,7 @@ function Du(t, e, n = {}) {
|
|
|
4072
4076
|
const c = e(l, a), u = (h, p) => {
|
|
4073
4077
|
l.removeEventListener("pointerup", f), l.removeEventListener("pointercancel", d), an(h, "release"), !(!Sr(h) || !xe.has(l)) && (xe.delete(l), typeof c == "function" && c(h, { success: p }));
|
|
4074
4078
|
}, f = (h) => {
|
|
4075
|
-
(h.isTrusted ?
|
|
4079
|
+
(h.isTrusted ? $u(h, l instanceof Element ? l.getBoundingClientRect() : {
|
|
4076
4080
|
left: 0,
|
|
4077
4081
|
top: 0,
|
|
4078
4082
|
right: window.innerWidth,
|
|
@@ -4086,13 +4090,13 @@ function Du(t, e, n = {}) {
|
|
|
4086
4090
|
return i.forEach((a) => {
|
|
4087
4091
|
a = n.useGlobalTarget ? window : a;
|
|
4088
4092
|
let l = !1;
|
|
4089
|
-
a instanceof HTMLElement && (l = !0, !
|
|
4093
|
+
a instanceof HTMLElement && (l = !0, !ku(a) && a.getAttribute("tabindex") === null && (a.tabIndex = 0)), a.addEventListener("pointerdown", s, r), l && a.addEventListener("focus", (c) => Fu(c, r), r);
|
|
4090
4094
|
}), o;
|
|
4091
4095
|
}
|
|
4092
|
-
function
|
|
4096
|
+
function $u(t, e) {
|
|
4093
4097
|
return t.clientX < e.left || t.clientX > e.right || t.clientY < e.top || t.clientY > e.bottom;
|
|
4094
4098
|
}
|
|
4095
|
-
function
|
|
4099
|
+
function Bu(t) {
|
|
4096
4100
|
return t === "x" || t === "y" ? Tt[t] ? null : (Tt[t] = !0, () => {
|
|
4097
4101
|
Tt[t] = !1;
|
|
4098
4102
|
}) : Tt.x || Tt.y ? null : (Tt.x = Tt.y = !0, () => {
|
|
@@ -4109,13 +4113,13 @@ const So = /* @__PURE__ */ new Set([
|
|
|
4109
4113
|
...he
|
|
4110
4114
|
]);
|
|
4111
4115
|
let Qe;
|
|
4112
|
-
function
|
|
4116
|
+
function ju() {
|
|
4113
4117
|
Qe = void 0;
|
|
4114
4118
|
}
|
|
4115
4119
|
const Mt = {
|
|
4116
|
-
now: () => (Qe === void 0 && Mt.set(Z.isProcessing ||
|
|
4120
|
+
now: () => (Qe === void 0 && Mt.set(Z.isProcessing || Fc.useManualTiming ? Z.timestamp : performance.now()), Qe),
|
|
4117
4121
|
set: (t) => {
|
|
4118
|
-
Qe = t, queueMicrotask(
|
|
4122
|
+
Qe = t, queueMicrotask(ju);
|
|
4119
4123
|
}
|
|
4120
4124
|
};
|
|
4121
4125
|
function Oi(t, e) {
|
|
@@ -4153,8 +4157,8 @@ class Fi {
|
|
|
4153
4157
|
function wo(t, e) {
|
|
4154
4158
|
return e ? t * (1e3 / e) : 0;
|
|
4155
4159
|
}
|
|
4156
|
-
const wr = 30,
|
|
4157
|
-
class
|
|
4160
|
+
const wr = 30, _u = (t) => !isNaN(parseFloat(t));
|
|
4161
|
+
class Nu {
|
|
4158
4162
|
/**
|
|
4159
4163
|
* @param init - The initiating value
|
|
4160
4164
|
* @param config - Optional configuration options
|
|
@@ -4170,7 +4174,7 @@ class Iu {
|
|
|
4170
4174
|
}, this.hasAnimated = !1, this.setCurrent(e), this.owner = n.owner;
|
|
4171
4175
|
}
|
|
4172
4176
|
setCurrent(e) {
|
|
4173
|
-
this.current = e, this.updatedAt = Mt.now(), this.canTrackVelocity === null && e !== void 0 && (this.canTrackVelocity =
|
|
4177
|
+
this.current = e, this.updatedAt = Mt.now(), this.canTrackVelocity === null && e !== void 0 && (this.canTrackVelocity = _u(this.current));
|
|
4174
4178
|
}
|
|
4175
4179
|
setPrevFrameValue(e = this.current) {
|
|
4176
4180
|
this.prevFrameValue = e, this.prevUpdatedAt = this.updatedAt;
|
|
@@ -4349,9 +4353,9 @@ class Iu {
|
|
|
4349
4353
|
}
|
|
4350
4354
|
}
|
|
4351
4355
|
function ke(t, e) {
|
|
4352
|
-
return new
|
|
4356
|
+
return new Nu(t, e);
|
|
4353
4357
|
}
|
|
4354
|
-
function
|
|
4358
|
+
function Uu(t, e, n) {
|
|
4355
4359
|
t.hasValue(e) ? t.getValue(e).set(n) : t.addValue(e, ke(n));
|
|
4356
4360
|
}
|
|
4357
4361
|
function Ii(t, e) {
|
|
@@ -4359,44 +4363,44 @@ function Ii(t, e) {
|
|
|
4359
4363
|
let { transitionEnd: i = {}, transition: r = {}, ...o } = n || {};
|
|
4360
4364
|
o = { ...o, ...i };
|
|
4361
4365
|
for (const s in o) {
|
|
4362
|
-
const a =
|
|
4363
|
-
|
|
4366
|
+
const a = Su(o[s]);
|
|
4367
|
+
Uu(t, s, a);
|
|
4364
4368
|
}
|
|
4365
4369
|
}
|
|
4366
|
-
function
|
|
4370
|
+
function zu(t) {
|
|
4367
4371
|
return !!(nt(t) && t.add);
|
|
4368
4372
|
}
|
|
4369
4373
|
function qn(t, e) {
|
|
4370
4374
|
const n = t.getValue("willChange");
|
|
4371
|
-
if (
|
|
4375
|
+
if (zu(n))
|
|
4372
4376
|
return n.add(e);
|
|
4373
4377
|
}
|
|
4374
4378
|
function To(t) {
|
|
4375
4379
|
return t.props[Js];
|
|
4376
4380
|
}
|
|
4377
|
-
const Co = (t, e, n) => (((1 - 3 * n + 3 * e) * t + (3 * n - 6 * e)) * t + 3 * e) * t,
|
|
4378
|
-
function
|
|
4381
|
+
const Co = (t, e, n) => (((1 - 3 * n + 3 * e) * t + (3 * n - 6 * e)) * t + 3 * e) * t, Wu = 1e-7, Gu = 12;
|
|
4382
|
+
function Ku(t, e, n, i, r) {
|
|
4379
4383
|
let o, s, a = 0;
|
|
4380
4384
|
do
|
|
4381
4385
|
s = e + (n - e) / 2, o = Co(s, i, r) - t, o > 0 ? n = s : e = s;
|
|
4382
|
-
while (Math.abs(o) >
|
|
4386
|
+
while (Math.abs(o) > Wu && ++a < Gu);
|
|
4383
4387
|
return s;
|
|
4384
4388
|
}
|
|
4385
4389
|
function je(t, e, n, i) {
|
|
4386
4390
|
if (t === e && n === i)
|
|
4387
4391
|
return ft;
|
|
4388
|
-
const r = (o) =>
|
|
4392
|
+
const r = (o) => Ku(o, 0, 1, t, n);
|
|
4389
4393
|
return (o) => o === 0 || o === 1 ? o : Co(r(o), e, i);
|
|
4390
4394
|
}
|
|
4391
|
-
const Po = (t) => (e) => e <= 0.5 ? t(2 * e) / 2 : (2 - t(2 * (1 - e))) / 2, Ao = (t) => (e) => 1 - t(1 - e), Vo = /* @__PURE__ */ je(0.33, 1.53, 0.69, 0.99),
|
|
4392
|
-
function
|
|
4395
|
+
const Po = (t) => (e) => e <= 0.5 ? t(2 * e) / 2 : (2 - t(2 * (1 - e))) / 2, Ao = (t) => (e) => 1 - t(1 - e), Vo = /* @__PURE__ */ je(0.33, 1.53, 0.69, 0.99), $i = /* @__PURE__ */ Ao(Vo), Eo = /* @__PURE__ */ Po($i), Ro = (t) => (t *= 2) < 1 ? 0.5 * $i(t) : 0.5 * (2 - Math.pow(2, -10 * (t - 1))), Bi = (t) => 1 - Math.sin(Math.acos(t)), Mo = Ao(Bi), Do = Po(Bi), Lo = (t) => /^0[^.\s]+$/u.test(t);
|
|
4396
|
+
function Hu(t) {
|
|
4393
4397
|
return typeof t == "number" ? t === 0 : t !== null ? t === "none" || t === "0" || Lo(t) : !0;
|
|
4394
4398
|
}
|
|
4395
4399
|
const we = (t) => Math.round(t * 1e5) / 1e5, ji = /-?(?:\d+(?:\.\d+)?|\.\d+)/gu;
|
|
4396
|
-
function
|
|
4400
|
+
function Yu(t) {
|
|
4397
4401
|
return t == null;
|
|
4398
4402
|
}
|
|
4399
|
-
const
|
|
4403
|
+
const qu = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu, _i = (t, e) => (n) => !!(typeof n == "string" && qu.test(n) && n.startsWith(t) || e && !Yu(n) && Object.prototype.hasOwnProperty.call(n, e)), Oo = (t, e, n) => (i) => {
|
|
4400
4404
|
if (typeof i != "string")
|
|
4401
4405
|
return i;
|
|
4402
4406
|
const [r, o, s, a] = i.match(ji);
|
|
@@ -4406,15 +4410,15 @@ const Wu = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s
|
|
|
4406
4410
|
[n]: parseFloat(s),
|
|
4407
4411
|
alpha: a !== void 0 ? parseFloat(a) : 1
|
|
4408
4412
|
};
|
|
4409
|
-
},
|
|
4413
|
+
}, Xu = (t) => kt(0, 255, t), Rn = {
|
|
4410
4414
|
...pe,
|
|
4411
|
-
transform: (t) => Math.round(
|
|
4415
|
+
transform: (t) => Math.round(Xu(t))
|
|
4412
4416
|
}, qt = {
|
|
4413
4417
|
test: /* @__PURE__ */ _i("rgb", "red"),
|
|
4414
4418
|
parse: /* @__PURE__ */ Oo("red", "green", "blue"),
|
|
4415
4419
|
transform: ({ red: t, green: e, blue: n, alpha: i = 1 }) => "rgba(" + Rn.transform(t) + ", " + Rn.transform(e) + ", " + Rn.transform(n) + ", " + we(Le.transform(i)) + ")"
|
|
4416
4420
|
};
|
|
4417
|
-
function
|
|
4421
|
+
function Zu(t) {
|
|
4418
4422
|
let e = "", n = "", i = "", r = "";
|
|
4419
4423
|
return t.length > 5 ? (e = t.substring(1, 3), n = t.substring(3, 5), i = t.substring(5, 7), r = t.substring(7, 9)) : (e = t.substring(1, 2), n = t.substring(2, 3), i = t.substring(3, 4), r = t.substring(4, 5), e += e, n += n, i += i, r += r), {
|
|
4420
4424
|
red: parseInt(e, 16),
|
|
@@ -4425,7 +4429,7 @@ function Ku(t) {
|
|
|
4425
4429
|
}
|
|
4426
4430
|
const Xn = {
|
|
4427
4431
|
test: /* @__PURE__ */ _i("#"),
|
|
4428
|
-
parse:
|
|
4432
|
+
parse: Zu,
|
|
4429
4433
|
transform: qt.transform
|
|
4430
4434
|
}, Qt = {
|
|
4431
4435
|
test: /* @__PURE__ */ _i("hsl", "hue"),
|
|
@@ -4435,12 +4439,12 @@ const Xn = {
|
|
|
4435
4439
|
test: (t) => qt.test(t) || Xn.test(t) || Qt.test(t),
|
|
4436
4440
|
parse: (t) => qt.test(t) ? qt.parse(t) : Qt.test(t) ? Qt.parse(t) : Xn.parse(t),
|
|
4437
4441
|
transform: (t) => typeof t == "string" ? t : t.hasOwnProperty("red") ? qt.transform(t) : Qt.transform(t)
|
|
4438
|
-
},
|
|
4439
|
-
function
|
|
4442
|
+
}, Ju = /(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;
|
|
4443
|
+
function Qu(t) {
|
|
4440
4444
|
var e, n;
|
|
4441
|
-
return isNaN(t) && typeof t == "string" && (((e = t.match(ji)) === null || e === void 0 ? void 0 : e.length) || 0) + (((n = t.match(
|
|
4445
|
+
return isNaN(t) && typeof t == "string" && (((e = t.match(ji)) === null || e === void 0 ? void 0 : e.length) || 0) + (((n = t.match(Ju)) === null || n === void 0 ? void 0 : n.length) || 0) > 0;
|
|
4442
4446
|
}
|
|
4443
|
-
const ko = "number", Fo = "color",
|
|
4447
|
+
const ko = "number", Fo = "color", tf = "var", ef = "var(", Tr = "${}", nf = /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;
|
|
4444
4448
|
function Fe(t) {
|
|
4445
4449
|
const e = t.toString(), n = [], i = {
|
|
4446
4450
|
color: [],
|
|
@@ -4448,13 +4452,13 @@ function Fe(t) {
|
|
|
4448
4452
|
var: []
|
|
4449
4453
|
}, r = [];
|
|
4450
4454
|
let o = 0;
|
|
4451
|
-
const a = e.replace(
|
|
4455
|
+
const a = e.replace(nf, (l) => (et.test(l) ? (i.color.push(o), r.push(Fo), n.push(et.parse(l))) : l.startsWith(ef) ? (i.var.push(o), r.push(tf), n.push(l)) : (i.number.push(o), r.push(ko), n.push(parseFloat(l))), ++o, Tr)).split(Tr);
|
|
4452
4456
|
return { values: n, split: a, indexes: i, types: r };
|
|
4453
4457
|
}
|
|
4454
4458
|
function Io(t) {
|
|
4455
4459
|
return Fe(t).values;
|
|
4456
4460
|
}
|
|
4457
|
-
function
|
|
4461
|
+
function $o(t) {
|
|
4458
4462
|
const { split: e, types: n } = Fe(t), i = e.length;
|
|
4459
4463
|
return (r) => {
|
|
4460
4464
|
let o = "";
|
|
@@ -4466,18 +4470,18 @@ function Bo(t) {
|
|
|
4466
4470
|
return o;
|
|
4467
4471
|
};
|
|
4468
4472
|
}
|
|
4469
|
-
const
|
|
4470
|
-
function
|
|
4473
|
+
const rf = (t) => typeof t == "number" ? 0 : t;
|
|
4474
|
+
function sf(t) {
|
|
4471
4475
|
const e = Io(t);
|
|
4472
|
-
return
|
|
4476
|
+
return $o(t)(e.map(rf));
|
|
4473
4477
|
}
|
|
4474
4478
|
const Ut = {
|
|
4475
|
-
test:
|
|
4479
|
+
test: Qu,
|
|
4476
4480
|
parse: Io,
|
|
4477
|
-
createTransformer:
|
|
4478
|
-
getAnimatableNone:
|
|
4479
|
-
},
|
|
4480
|
-
function
|
|
4481
|
+
createTransformer: $o,
|
|
4482
|
+
getAnimatableNone: sf
|
|
4483
|
+
}, of = /* @__PURE__ */ new Set(["brightness", "contrast", "saturate", "opacity"]);
|
|
4484
|
+
function af(t) {
|
|
4481
4485
|
const [e, n] = t.slice(0, -1).split("(");
|
|
4482
4486
|
if (e === "drop-shadow")
|
|
4483
4487
|
return t;
|
|
@@ -4485,16 +4489,16 @@ function ef(t) {
|
|
|
4485
4489
|
if (!i)
|
|
4486
4490
|
return t;
|
|
4487
4491
|
const r = n.replace(i, "");
|
|
4488
|
-
let o =
|
|
4492
|
+
let o = of.has(e) ? 1 : 0;
|
|
4489
4493
|
return i !== n && (o *= 100), e + "(" + o + r + ")";
|
|
4490
4494
|
}
|
|
4491
|
-
const
|
|
4495
|
+
const lf = /\b([a-z-]*)\(.*?\)/gu, Zn = {
|
|
4492
4496
|
...Ut,
|
|
4493
4497
|
getAnimatableNone: (t) => {
|
|
4494
|
-
const e = t.match(
|
|
4495
|
-
return e ? e.map(
|
|
4498
|
+
const e = t.match(lf);
|
|
4499
|
+
return e ? e.map(af).join(" ") : t;
|
|
4496
4500
|
}
|
|
4497
|
-
},
|
|
4501
|
+
}, cf = {
|
|
4498
4502
|
...Si,
|
|
4499
4503
|
// Color props
|
|
4500
4504
|
color: et,
|
|
@@ -4510,21 +4514,21 @@ const nf = /\b([a-z-]*)\(.*?\)/gu, Zn = {
|
|
|
4510
4514
|
borderLeftColor: et,
|
|
4511
4515
|
filter: Zn,
|
|
4512
4516
|
WebkitFilter: Zn
|
|
4513
|
-
}, Ni = (t) =>
|
|
4514
|
-
function
|
|
4517
|
+
}, Ni = (t) => cf[t];
|
|
4518
|
+
function Bo(t, e) {
|
|
4515
4519
|
let n = Ni(t);
|
|
4516
4520
|
return n !== Zn && (n = Ut), n.getAnimatableNone ? n.getAnimatableNone(e) : void 0;
|
|
4517
4521
|
}
|
|
4518
|
-
const
|
|
4519
|
-
function
|
|
4522
|
+
const uf = /* @__PURE__ */ new Set(["auto", "none", "0"]);
|
|
4523
|
+
function ff(t, e, n) {
|
|
4520
4524
|
let i = 0, r;
|
|
4521
4525
|
for (; i < t.length && !r; ) {
|
|
4522
4526
|
const o = t[i];
|
|
4523
|
-
typeof o == "string" && !
|
|
4527
|
+
typeof o == "string" && !uf.has(o) && Fe(o).values.length && (r = t[i]), i++;
|
|
4524
4528
|
}
|
|
4525
4529
|
if (r && n)
|
|
4526
4530
|
for (const o of e)
|
|
4527
|
-
t[o] =
|
|
4531
|
+
t[o] = Bo(n, r);
|
|
4528
4532
|
}
|
|
4529
4533
|
const Cr = (t) => t === pe || t === L, Pr = (t, e) => parseFloat(t.split(", ")[e]), Ar = (t, e) => (n, { transform: i }) => {
|
|
4530
4534
|
if (i === "none" || !i)
|
|
@@ -4536,10 +4540,10 @@ const Cr = (t) => t === pe || t === L, Pr = (t, e) => parseFloat(t.split(", ")[e
|
|
|
4536
4540
|
const o = i.match(/^matrix\((.+)\)$/u);
|
|
4537
4541
|
return o ? Pr(o[1], t) : 0;
|
|
4538
4542
|
}
|
|
4539
|
-
},
|
|
4540
|
-
function
|
|
4543
|
+
}, df = /* @__PURE__ */ new Set(["x", "y", "z"]), hf = he.filter((t) => !df.has(t));
|
|
4544
|
+
function pf(t) {
|
|
4541
4545
|
const e = [];
|
|
4542
|
-
return
|
|
4546
|
+
return hf.forEach((n) => {
|
|
4543
4547
|
const i = t.getValue(n);
|
|
4544
4548
|
i !== void 0 && (e.push([n, i.get()]), i.set(n.startsWith("scale") ? 1 : 0));
|
|
4545
4549
|
}), e;
|
|
@@ -4564,7 +4568,7 @@ function jo() {
|
|
|
4564
4568
|
if (Qn) {
|
|
4565
4569
|
const t = Array.from(Xt).filter((i) => i.needsMeasurement), e = new Set(t.map((i) => i.element)), n = /* @__PURE__ */ new Map();
|
|
4566
4570
|
e.forEach((i) => {
|
|
4567
|
-
const r =
|
|
4571
|
+
const r = pf(i);
|
|
4568
4572
|
r.length && (n.set(i, r), i.render());
|
|
4569
4573
|
}), t.forEach((i) => i.measureInitialState()), e.forEach((i) => {
|
|
4570
4574
|
i.render();
|
|
@@ -4584,7 +4588,7 @@ function _o() {
|
|
|
4584
4588
|
t.readKeyframes(), t.needsMeasurement && (Qn = !0);
|
|
4585
4589
|
});
|
|
4586
4590
|
}
|
|
4587
|
-
function
|
|
4591
|
+
function mf() {
|
|
4588
4592
|
_o(), jo();
|
|
4589
4593
|
}
|
|
4590
4594
|
class Ui {
|
|
@@ -4628,21 +4632,21 @@ class Ui {
|
|
|
4628
4632
|
this.isComplete || this.scheduleResolve();
|
|
4629
4633
|
}
|
|
4630
4634
|
}
|
|
4631
|
-
const No = (t) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),
|
|
4635
|
+
const No = (t) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t), gf = (
|
|
4632
4636
|
// eslint-disable-next-line redos-detector/no-unsafe-regex -- false positive, as it can match a lot of words
|
|
4633
4637
|
/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u
|
|
4634
4638
|
);
|
|
4635
|
-
function
|
|
4636
|
-
const e =
|
|
4639
|
+
function yf(t) {
|
|
4640
|
+
const e = gf.exec(t);
|
|
4637
4641
|
if (!e)
|
|
4638
4642
|
return [,];
|
|
4639
4643
|
const [, n, i, r] = e;
|
|
4640
4644
|
return [`--${n ?? i}`, r];
|
|
4641
4645
|
}
|
|
4642
|
-
const
|
|
4646
|
+
const vf = 4;
|
|
4643
4647
|
function Uo(t, e, n = 1) {
|
|
4644
|
-
Dt(n <=
|
|
4645
|
-
const [i, r] =
|
|
4648
|
+
Dt(n <= vf, `Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);
|
|
4649
|
+
const [i, r] = yf(t);
|
|
4646
4650
|
if (!i)
|
|
4647
4651
|
return;
|
|
4648
4652
|
const o = window.getComputedStyle(e).getPropertyValue(i);
|
|
@@ -4652,10 +4656,10 @@ function Uo(t, e, n = 1) {
|
|
|
4652
4656
|
}
|
|
4653
4657
|
return bi(r) ? Uo(r, e, n + 1) : r;
|
|
4654
4658
|
}
|
|
4655
|
-
const zo = (t) => (e) => e.test(t),
|
|
4659
|
+
const zo = (t) => (e) => e.test(t), xf = {
|
|
4656
4660
|
test: (t) => t === "auto",
|
|
4657
4661
|
parse: (t) => t
|
|
4658
|
-
}, Wo = [pe, L, Rt, jt,
|
|
4662
|
+
}, Wo = [pe, L, Rt, jt, ru, iu, xf], Vr = (t) => Wo.find(zo(t));
|
|
4659
4663
|
class Go extends Ui {
|
|
4660
4664
|
constructor(e, n, i, r, o) {
|
|
4661
4665
|
super(e, n, i, r, o, !0);
|
|
@@ -4687,8 +4691,8 @@ class Go extends Ui {
|
|
|
4687
4691
|
resolveNoneKeyframes() {
|
|
4688
4692
|
const { unresolvedKeyframes: e, name: n } = this, i = [];
|
|
4689
4693
|
for (let r = 0; r < e.length; r++)
|
|
4690
|
-
|
|
4691
|
-
i.length &&
|
|
4694
|
+
Hu(e[r]) && i.push(r);
|
|
4695
|
+
i.length && ff(e, i, n);
|
|
4692
4696
|
}
|
|
4693
4697
|
measureInitialState() {
|
|
4694
4698
|
const { element: e, unresolvedKeyframes: n, name: i } = this;
|
|
@@ -4714,7 +4718,7 @@ class Go extends Ui {
|
|
|
4714
4718
|
const Er = (t, e) => e === "zIndex" ? !1 : !!(typeof t == "number" || Array.isArray(t) || typeof t == "string" && // It's animatable if we have a string
|
|
4715
4719
|
(Ut.test(t) || t === "0") && // And it contains numbers and/or colors
|
|
4716
4720
|
!t.startsWith("url("));
|
|
4717
|
-
function
|
|
4721
|
+
function bf(t) {
|
|
4718
4722
|
const e = t[0];
|
|
4719
4723
|
if (t.length === 1)
|
|
4720
4724
|
return !0;
|
|
@@ -4722,21 +4726,21 @@ function mf(t) {
|
|
|
4722
4726
|
if (t[n] !== e)
|
|
4723
4727
|
return !0;
|
|
4724
4728
|
}
|
|
4725
|
-
function
|
|
4729
|
+
function Sf(t, e, n, i) {
|
|
4726
4730
|
const r = t[0];
|
|
4727
4731
|
if (r === null)
|
|
4728
4732
|
return !1;
|
|
4729
4733
|
if (e === "display" || e === "visibility")
|
|
4730
4734
|
return !0;
|
|
4731
4735
|
const o = t[t.length - 1], s = Er(r, e), a = Er(o, e);
|
|
4732
|
-
return de(s === a, `You are trying to animate ${e} from "${r}" to "${o}". ${r} is not an animatable value - to enable this animation set ${r} to a value animatable to ${o} via the \`style\` property.`), !s || !a ? !1 :
|
|
4736
|
+
return de(s === a, `You are trying to animate ${e} from "${r}" to "${o}". ${r} is not an animatable value - to enable this animation set ${r} to a value animatable to ${o} via the \`style\` property.`), !s || !a ? !1 : bf(t) || (n === "spring" || Mi(n)) && i;
|
|
4733
4737
|
}
|
|
4734
|
-
const
|
|
4738
|
+
const wf = (t) => t !== null;
|
|
4735
4739
|
function Sn(t, { repeat: e, repeatType: n = "loop" }, i) {
|
|
4736
|
-
const r = t.filter(
|
|
4740
|
+
const r = t.filter(wf), o = e && n !== "loop" && e % 2 === 1 ? 0 : r.length - 1;
|
|
4737
4741
|
return !o || i === void 0 ? r[o] : i;
|
|
4738
4742
|
}
|
|
4739
|
-
const
|
|
4743
|
+
const Tf = 40;
|
|
4740
4744
|
class Ko {
|
|
4741
4745
|
constructor({ autoplay: e = !0, delay: n = 0, type: i = "keyframes", repeat: r = 0, repeatDelay: o = 0, repeatType: s = "loop", ...a }) {
|
|
4742
4746
|
this.isStopped = !1, this.hasAttemptedResolve = !1, this.createdAt = Mt.now(), this.options = {
|
|
@@ -4760,7 +4764,7 @@ class Ko {
|
|
|
4760
4764
|
* to avoid a sudden jump into the animation.
|
|
4761
4765
|
*/
|
|
4762
4766
|
calcStartTime() {
|
|
4763
|
-
return this.resolvedAt ? this.resolvedAt - this.createdAt >
|
|
4767
|
+
return this.resolvedAt ? this.resolvedAt - this.createdAt > Tf ? this.resolvedAt : this.createdAt : this.createdAt;
|
|
4764
4768
|
}
|
|
4765
4769
|
/**
|
|
4766
4770
|
* A getter for resolved data. If keyframes are not yet resolved, accessing
|
|
@@ -4768,7 +4772,7 @@ class Ko {
|
|
|
4768
4772
|
* This is a deoptimisation, but at its worst still batches read/writes.
|
|
4769
4773
|
*/
|
|
4770
4774
|
get resolved() {
|
|
4771
|
-
return !this._resolved && !this.hasAttemptedResolve &&
|
|
4775
|
+
return !this._resolved && !this.hasAttemptedResolve && mf(), this._resolved;
|
|
4772
4776
|
}
|
|
4773
4777
|
/**
|
|
4774
4778
|
* A method to be called when the keyframes resolver completes. This method
|
|
@@ -4778,7 +4782,7 @@ class Ko {
|
|
|
4778
4782
|
onKeyframesResolved(e, n) {
|
|
4779
4783
|
this.resolvedAt = Mt.now(), this.hasAttemptedResolve = !0;
|
|
4780
4784
|
const { name: i, type: r, velocity: o, delay: s, onComplete: a, onUpdate: l, isGenerator: c } = this.options;
|
|
4781
|
-
if (!c && !
|
|
4785
|
+
if (!c && !Sf(e, i, r, o))
|
|
4782
4786
|
if (s)
|
|
4783
4787
|
this.options.duration = 0;
|
|
4784
4788
|
else {
|
|
@@ -4815,7 +4819,7 @@ const K = (t, e, n) => t + (e - t) * n;
|
|
|
4815
4819
|
function Mn(t, e, n) {
|
|
4816
4820
|
return n < 0 && (n += 1), n > 1 && (n -= 1), n < 1 / 6 ? t + (e - t) * 6 * n : n < 1 / 2 ? e : n < 2 / 3 ? t + (e - t) * (2 / 3 - n) * 6 : t;
|
|
4817
4821
|
}
|
|
4818
|
-
function
|
|
4822
|
+
function Cf({ hue: t, saturation: e, lightness: n, alpha: i }) {
|
|
4819
4823
|
t /= 360, e /= 100, n /= 100;
|
|
4820
4824
|
let r = 0, o = 0, s = 0;
|
|
4821
4825
|
if (!e)
|
|
@@ -4837,13 +4841,13 @@ function ln(t, e) {
|
|
|
4837
4841
|
const Dn = (t, e, n) => {
|
|
4838
4842
|
const i = t * t, r = n * (e * e - i) + i;
|
|
4839
4843
|
return r < 0 ? 0 : Math.sqrt(r);
|
|
4840
|
-
},
|
|
4844
|
+
}, Pf = [Xn, qt, Qt], Af = (t) => Pf.find((e) => e.test(t));
|
|
4841
4845
|
function Rr(t) {
|
|
4842
|
-
const e =
|
|
4846
|
+
const e = Af(t);
|
|
4843
4847
|
if (de(!!e, `'${t}' is not an animatable color. Use the equivalent color code instead.`), !e)
|
|
4844
4848
|
return !1;
|
|
4845
4849
|
let n = e.parse(t);
|
|
4846
|
-
return e === Qt && (n =
|
|
4850
|
+
return e === Qt && (n = Cf(n)), n;
|
|
4847
4851
|
}
|
|
4848
4852
|
const Mr = (t, e) => {
|
|
4849
4853
|
const n = Rr(t), i = Rr(e);
|
|
@@ -4851,15 +4855,15 @@ const Mr = (t, e) => {
|
|
|
4851
4855
|
return ln(t, e);
|
|
4852
4856
|
const r = { ...n };
|
|
4853
4857
|
return (o) => (r.red = Dn(n.red, i.red, o), r.green = Dn(n.green, i.green, o), r.blue = Dn(n.blue, i.blue, o), r.alpha = K(n.alpha, i.alpha, o), qt.transform(r));
|
|
4854
|
-
},
|
|
4855
|
-
function
|
|
4858
|
+
}, Vf = (t, e) => (n) => e(t(n)), _e = (...t) => t.reduce(Vf), ti = /* @__PURE__ */ new Set(["none", "hidden"]);
|
|
4859
|
+
function Ef(t, e) {
|
|
4856
4860
|
return ti.has(t) ? (n) => n <= 0 ? t : e : (n) => n >= 1 ? e : t;
|
|
4857
4861
|
}
|
|
4858
|
-
function
|
|
4862
|
+
function Rf(t, e) {
|
|
4859
4863
|
return (n) => K(t, e, n);
|
|
4860
4864
|
}
|
|
4861
4865
|
function zi(t) {
|
|
4862
|
-
return typeof t == "number" ?
|
|
4866
|
+
return typeof t == "number" ? Rf : typeof t == "string" ? bi(t) ? ln : et.test(t) ? Mr : Lf : Array.isArray(t) ? Ho : typeof t == "object" ? et.test(t) ? Mr : Mf : ln;
|
|
4863
4867
|
}
|
|
4864
4868
|
function Ho(t, e) {
|
|
4865
4869
|
const n = [...t], i = n.length, r = t.map((o, s) => zi(o)(o, e[s]));
|
|
@@ -4869,7 +4873,7 @@ function Ho(t, e) {
|
|
|
4869
4873
|
return n;
|
|
4870
4874
|
};
|
|
4871
4875
|
}
|
|
4872
|
-
function
|
|
4876
|
+
function Mf(t, e) {
|
|
4873
4877
|
const n = { ...t, ...e }, i = {};
|
|
4874
4878
|
for (const r in n)
|
|
4875
4879
|
t[r] !== void 0 && e[r] !== void 0 && (i[r] = zi(t[r])(t[r], e[r]));
|
|
@@ -4879,7 +4883,7 @@ function Pf(t, e) {
|
|
|
4879
4883
|
return n;
|
|
4880
4884
|
};
|
|
4881
4885
|
}
|
|
4882
|
-
function
|
|
4886
|
+
function Df(t, e) {
|
|
4883
4887
|
var n;
|
|
4884
4888
|
const i = [], r = { color: 0, var: 0, number: 0 };
|
|
4885
4889
|
for (let o = 0; o < e.values.length; o++) {
|
|
@@ -4888,16 +4892,16 @@ function Af(t, e) {
|
|
|
4888
4892
|
}
|
|
4889
4893
|
return i;
|
|
4890
4894
|
}
|
|
4891
|
-
const
|
|
4895
|
+
const Lf = (t, e) => {
|
|
4892
4896
|
const n = Ut.createTransformer(e), i = Fe(t), r = Fe(e);
|
|
4893
|
-
return i.indexes.var.length === r.indexes.var.length && i.indexes.color.length === r.indexes.color.length && i.indexes.number.length >= r.indexes.number.length ? ti.has(t) && !r.values.length || ti.has(e) && !i.values.length ?
|
|
4897
|
+
return i.indexes.var.length === r.indexes.var.length && i.indexes.color.length === r.indexes.color.length && i.indexes.number.length >= r.indexes.number.length ? ti.has(t) && !r.values.length || ti.has(e) && !i.values.length ? Ef(t, e) : _e(Ho(Df(i, r), r.values), n) : (de(!0, `Complex values '${t}' and '${e}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`), ln(t, e));
|
|
4894
4898
|
};
|
|
4895
4899
|
function Yo(t, e, n) {
|
|
4896
4900
|
return typeof t == "number" && typeof e == "number" && typeof n == "number" ? K(t, e, n) : zi(t)(t, e);
|
|
4897
4901
|
}
|
|
4898
|
-
const
|
|
4902
|
+
const Of = 5;
|
|
4899
4903
|
function qo(t, e, n) {
|
|
4900
|
-
const i = Math.max(e -
|
|
4904
|
+
const i = Math.max(e - Of, 0);
|
|
4901
4905
|
return wo(n - t(i), e - i);
|
|
4902
4906
|
}
|
|
4903
4907
|
const G = {
|
|
@@ -4929,7 +4933,7 @@ const G = {
|
|
|
4929
4933
|
minDamping: 0.05,
|
|
4930
4934
|
maxDamping: 1
|
|
4931
4935
|
}, Dr = 1e-3;
|
|
4932
|
-
function
|
|
4936
|
+
function kf({ duration: t = G.duration, bounce: e = G.bounce, velocity: n = G.velocity, mass: i = G.mass }) {
|
|
4933
4937
|
let r, o;
|
|
4934
4938
|
de(t <= /* @__PURE__ */ Et(G.maxDuration), "Spring duration must be 10 seconds or less");
|
|
4935
4939
|
let s = 1 - e;
|
|
@@ -4946,7 +4950,7 @@ function Rf({ duration: t = G.duration, bounce: e = G.bounce, velocity: n = G.ve
|
|
|
4946
4950
|
const u = Math.exp(-c * t), f = (n - c) * (t * t);
|
|
4947
4951
|
return u * f;
|
|
4948
4952
|
});
|
|
4949
|
-
const a = 5 / t, l =
|
|
4953
|
+
const a = 5 / t, l = If(r, o, a);
|
|
4950
4954
|
if (t = /* @__PURE__ */ Et(t), isNaN(l))
|
|
4951
4955
|
return {
|
|
4952
4956
|
stiffness: G.stiffness,
|
|
@@ -4962,21 +4966,21 @@ function Rf({ duration: t = G.duration, bounce: e = G.bounce, velocity: n = G.ve
|
|
|
4962
4966
|
};
|
|
4963
4967
|
}
|
|
4964
4968
|
}
|
|
4965
|
-
const
|
|
4966
|
-
function
|
|
4969
|
+
const Ff = 12;
|
|
4970
|
+
function If(t, e, n) {
|
|
4967
4971
|
let i = n;
|
|
4968
|
-
for (let r = 1; r <
|
|
4972
|
+
for (let r = 1; r < Ff; r++)
|
|
4969
4973
|
i = i - t(i) / e(i);
|
|
4970
4974
|
return i;
|
|
4971
4975
|
}
|
|
4972
4976
|
function ei(t, e) {
|
|
4973
4977
|
return t * Math.sqrt(1 - e * e);
|
|
4974
4978
|
}
|
|
4975
|
-
const
|
|
4979
|
+
const $f = ["duration", "bounce"], Bf = ["stiffness", "damping", "mass"];
|
|
4976
4980
|
function Lr(t, e) {
|
|
4977
4981
|
return e.some((n) => t[n] !== void 0);
|
|
4978
4982
|
}
|
|
4979
|
-
function
|
|
4983
|
+
function jf(t) {
|
|
4980
4984
|
let e = {
|
|
4981
4985
|
velocity: G.velocity,
|
|
4982
4986
|
stiffness: G.stiffness,
|
|
@@ -4985,7 +4989,7 @@ function kf(t) {
|
|
|
4985
4989
|
isResolvedFromDuration: !1,
|
|
4986
4990
|
...t
|
|
4987
4991
|
};
|
|
4988
|
-
if (!Lr(t,
|
|
4992
|
+
if (!Lr(t, Bf) && Lr(t, $f))
|
|
4989
4993
|
if (t.visualDuration) {
|
|
4990
4994
|
const n = t.visualDuration, i = 2 * Math.PI / (n * 1.2), r = i * i, o = 2 * kt(0.05, 1, 1 - (t.bounce || 0)) * Math.sqrt(r);
|
|
4991
4995
|
e = {
|
|
@@ -4995,7 +4999,7 @@ function kf(t) {
|
|
|
4995
4999
|
damping: o
|
|
4996
5000
|
};
|
|
4997
5001
|
} else {
|
|
4998
|
-
const n =
|
|
5002
|
+
const n = kf(t);
|
|
4999
5003
|
e = {
|
|
5000
5004
|
...e,
|
|
5001
5005
|
...n,
|
|
@@ -5011,7 +5015,7 @@ function Xo(t = G.visualDuration, e = G.bounce) {
|
|
|
5011
5015
|
bounce: e
|
|
5012
5016
|
} : t;
|
|
5013
5017
|
let { restSpeed: i, restDelta: r } = n;
|
|
5014
|
-
const o = n.keyframes[0], s = n.keyframes[n.keyframes.length - 1], a = { done: !1, value: o }, { stiffness: l, damping: c, mass: u, duration: f, velocity: d, isResolvedFromDuration: h } =
|
|
5018
|
+
const o = n.keyframes[0], s = n.keyframes[n.keyframes.length - 1], a = { done: !1, value: o }, { stiffness: l, damping: c, mass: u, duration: f, velocity: d, isResolvedFromDuration: h } = jf({
|
|
5015
5019
|
...n,
|
|
5016
5020
|
velocity: -/* @__PURE__ */ Ot(n.velocity || 0)
|
|
5017
5021
|
}), p = d || 0, g = c / (2 * Math.sqrt(l * u)), S = s - o, v = /* @__PURE__ */ Ot(Math.sqrt(l / u)), w = Math.abs(S) < 5;
|
|
@@ -5085,15 +5089,15 @@ function Or({ keyframes: t, velocity: e = 0, power: n = 0.8, timeConstant: i = 3
|
|
|
5085
5089
|
}
|
|
5086
5090
|
};
|
|
5087
5091
|
}
|
|
5088
|
-
const
|
|
5092
|
+
const _f = /* @__PURE__ */ je(0.42, 0, 1, 1), Nf = /* @__PURE__ */ je(0, 0, 0.58, 1), Zo = /* @__PURE__ */ je(0.42, 0, 0.58, 1), Uf = (t) => Array.isArray(t) && typeof t[0] != "number", kr = {
|
|
5089
5093
|
linear: ft,
|
|
5090
|
-
easeIn:
|
|
5094
|
+
easeIn: _f,
|
|
5091
5095
|
easeInOut: Zo,
|
|
5092
|
-
easeOut:
|
|
5093
|
-
circIn:
|
|
5096
|
+
easeOut: Nf,
|
|
5097
|
+
circIn: Bi,
|
|
5094
5098
|
circInOut: Do,
|
|
5095
5099
|
circOut: Mo,
|
|
5096
|
-
backIn:
|
|
5100
|
+
backIn: $i,
|
|
5097
5101
|
backInOut: Eo,
|
|
5098
5102
|
backOut: Vo,
|
|
5099
5103
|
anticipate: Ro
|
|
@@ -5106,7 +5110,7 @@ const Ff = /* @__PURE__ */ je(0.42, 0, 1, 1), If = /* @__PURE__ */ je(0, 0, 0.58
|
|
|
5106
5110
|
return Dt(kr[t] !== void 0, `Invalid easing type '${t}'`), kr[t];
|
|
5107
5111
|
return t;
|
|
5108
5112
|
};
|
|
5109
|
-
function
|
|
5113
|
+
function zf(t, e, n) {
|
|
5110
5114
|
const i = [], r = n || Yo, o = t.length - 1;
|
|
5111
5115
|
for (let s = 0; s < o; s++) {
|
|
5112
5116
|
let a = r(t[s], t[s + 1]);
|
|
@@ -5118,7 +5122,7 @@ function $f(t, e, n) {
|
|
|
5118
5122
|
}
|
|
5119
5123
|
return i;
|
|
5120
5124
|
}
|
|
5121
|
-
function
|
|
5125
|
+
function Wf(t, e, { clamp: n = !0, ease: i, mixer: r } = {}) {
|
|
5122
5126
|
const o = t.length;
|
|
5123
5127
|
if (Dt(o === e.length, "Both input and output ranges must be the same length"), o === 1)
|
|
5124
5128
|
return () => e[0];
|
|
@@ -5126,7 +5130,7 @@ function jf(t, e, { clamp: n = !0, ease: i, mixer: r } = {}) {
|
|
|
5126
5130
|
return () => e[1];
|
|
5127
5131
|
const s = t[0] === t[1];
|
|
5128
5132
|
t[0] > t[o - 1] && (t = [...t].reverse(), e = [...e].reverse());
|
|
5129
|
-
const a =
|
|
5133
|
+
const a = zf(e, i, r), l = a.length, c = (u) => {
|
|
5130
5134
|
if (s && u < t[0])
|
|
5131
5135
|
return e[0];
|
|
5132
5136
|
let f = 0;
|
|
@@ -5138,41 +5142,41 @@ function jf(t, e, { clamp: n = !0, ease: i, mixer: r } = {}) {
|
|
|
5138
5142
|
};
|
|
5139
5143
|
return n ? (u) => c(kt(t[0], t[o - 1], u)) : c;
|
|
5140
5144
|
}
|
|
5141
|
-
function
|
|
5145
|
+
function Gf(t, e) {
|
|
5142
5146
|
const n = t[t.length - 1];
|
|
5143
5147
|
for (let i = 1; i <= e; i++) {
|
|
5144
5148
|
const r = /* @__PURE__ */ ae(0, e, i);
|
|
5145
5149
|
t.push(K(n, 1, r));
|
|
5146
5150
|
}
|
|
5147
5151
|
}
|
|
5148
|
-
function
|
|
5152
|
+
function Kf(t) {
|
|
5149
5153
|
const e = [0];
|
|
5150
|
-
return
|
|
5154
|
+
return Gf(e, t.length - 1), e;
|
|
5151
5155
|
}
|
|
5152
|
-
function
|
|
5156
|
+
function Hf(t, e) {
|
|
5153
5157
|
return t.map((n) => n * e);
|
|
5154
5158
|
}
|
|
5155
|
-
function
|
|
5159
|
+
function Yf(t, e) {
|
|
5156
5160
|
return t.map(() => e || Zo).splice(0, t.length - 1);
|
|
5157
5161
|
}
|
|
5158
5162
|
function Te({ duration: t = 300, keyframes: e, times: n, ease: i = "easeInOut" }) {
|
|
5159
|
-
const r =
|
|
5163
|
+
const r = Uf(i) ? i.map(Fr) : Fr(i), o = {
|
|
5160
5164
|
done: !1,
|
|
5161
5165
|
value: e[0]
|
|
5162
|
-
}, s =
|
|
5166
|
+
}, s = Hf(
|
|
5163
5167
|
// Only use the provided offsets if they're the correct length
|
|
5164
5168
|
// TODO Maybe we should warn here if there's a length mismatch
|
|
5165
|
-
n && n.length === e.length ? n :
|
|
5169
|
+
n && n.length === e.length ? n : Kf(e),
|
|
5166
5170
|
t
|
|
5167
|
-
), a =
|
|
5168
|
-
ease: Array.isArray(r) ? r :
|
|
5171
|
+
), a = Wf(s, e, {
|
|
5172
|
+
ease: Array.isArray(r) ? r : Yf(e, r)
|
|
5169
5173
|
});
|
|
5170
5174
|
return {
|
|
5171
5175
|
calculatedDuration: t,
|
|
5172
5176
|
next: (l) => (o.value = a(l), o.done = l >= t, o)
|
|
5173
5177
|
};
|
|
5174
5178
|
}
|
|
5175
|
-
const
|
|
5179
|
+
const qf = (t) => {
|
|
5176
5180
|
const e = ({ timestamp: n }) => t(n);
|
|
5177
5181
|
return {
|
|
5178
5182
|
start: () => N.update(e, !0),
|
|
@@ -5183,13 +5187,13 @@ const Wf = (t) => {
|
|
|
5183
5187
|
*/
|
|
5184
5188
|
now: () => Z.isProcessing ? Z.timestamp : Mt.now()
|
|
5185
5189
|
};
|
|
5186
|
-
},
|
|
5190
|
+
}, Xf = {
|
|
5187
5191
|
decay: Or,
|
|
5188
5192
|
inertia: Or,
|
|
5189
5193
|
tween: Te,
|
|
5190
5194
|
keyframes: Te,
|
|
5191
5195
|
spring: Xo
|
|
5192
|
-
},
|
|
5196
|
+
}, Zf = (t) => t / 100;
|
|
5193
5197
|
class Wi extends Ko {
|
|
5194
5198
|
constructor(e) {
|
|
5195
5199
|
super(e), this.holdTime = null, this.cancelTime = null, this.currentTime = 0, this.playbackSpeed = 1, this.pendingPlayState = "running", this.startTime = null, this.state = "idle", this.stop = () => {
|
|
@@ -5206,9 +5210,9 @@ class Wi extends Ko {
|
|
|
5206
5210
|
super.flatten(), this._resolved && Object.assign(this._resolved, this.initPlayback(this._resolved.keyframes));
|
|
5207
5211
|
}
|
|
5208
5212
|
initPlayback(e) {
|
|
5209
|
-
const { type: n = "keyframes", repeat: i = 0, repeatDelay: r = 0, repeatType: o, velocity: s = 0 } = this.options, a = Mi(n) ? n :
|
|
5213
|
+
const { type: n = "keyframes", repeat: i = 0, repeatDelay: r = 0, repeatType: o, velocity: s = 0 } = this.options, a = Mi(n) ? n : Xf[n] || Te;
|
|
5210
5214
|
let l, c;
|
|
5211
|
-
process.env.NODE_ENV !== "production" && a !== Te && Dt(e.length <= 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${e}`), a !== Te && typeof e[0] != "number" && (l = _e(
|
|
5215
|
+
process.env.NODE_ENV !== "production" && a !== Te && Dt(e.length <= 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${e}`), a !== Te && typeof e[0] != "number" && (l = _e(Zf, Yo(e[0], e[1])), e = [0, 100]);
|
|
5212
5216
|
const u = a({ ...this.options, keyframes: e });
|
|
5213
5217
|
o === "mirror" && (c = a({
|
|
5214
5218
|
...this.options,
|
|
@@ -5279,7 +5283,7 @@ class Wi extends Ko {
|
|
|
5279
5283
|
}
|
|
5280
5284
|
if (this.isStopped)
|
|
5281
5285
|
return;
|
|
5282
|
-
const { driver: e =
|
|
5286
|
+
const { driver: e = qf, onPlay: n, startTime: i } = this.options;
|
|
5283
5287
|
this.driver || (this.driver = e((o) => this.tick(o))), n && n();
|
|
5284
5288
|
const r = this.driver.now();
|
|
5285
5289
|
this.holdTime !== null ? this.startTime = r - this.holdTime : this.startTime ? this.state === "finished" && (this.startTime = r) : this.startTime = i ?? this.calcStartTime(), this.state === "finished" && this.updateFinishedPromise(), this.cancelTime = this.startTime, this.holdTime = null, this.state = "running", this.driver.start();
|
|
@@ -5313,7 +5317,7 @@ class Wi extends Ko {
|
|
|
5313
5317
|
return this.startTime = 0, this.tick(e, !0);
|
|
5314
5318
|
}
|
|
5315
5319
|
}
|
|
5316
|
-
const
|
|
5320
|
+
const Jf = /* @__PURE__ */ new Set([
|
|
5317
5321
|
"opacity",
|
|
5318
5322
|
"clipPath",
|
|
5319
5323
|
"filter",
|
|
@@ -5322,7 +5326,7 @@ const Hf = /* @__PURE__ */ new Set([
|
|
|
5322
5326
|
// or until we implement support for linear() easing.
|
|
5323
5327
|
// "background-color"
|
|
5324
5328
|
]);
|
|
5325
|
-
function
|
|
5329
|
+
function Qf(t, e, n, { delay: i = 0, duration: r = 300, repeat: o = 0, repeatType: s = "loop", ease: a = "easeInOut", times: l } = {}) {
|
|
5326
5330
|
const c = { [e]: n };
|
|
5327
5331
|
l && (c.offset = l);
|
|
5328
5332
|
const u = go(a, r);
|
|
@@ -5335,11 +5339,11 @@ function Yf(t, e, n, { delay: i = 0, duration: r = 300, repeat: o = 0, repeatTyp
|
|
|
5335
5339
|
direction: s === "reverse" ? "alternate" : "normal"
|
|
5336
5340
|
});
|
|
5337
5341
|
}
|
|
5338
|
-
const
|
|
5339
|
-
function
|
|
5342
|
+
const td = /* @__PURE__ */ pi(() => Object.hasOwnProperty.call(Element.prototype, "animate")), cn = 10, ed = 2e4;
|
|
5343
|
+
function nd(t) {
|
|
5340
5344
|
return Mi(t.type) || t.type === "spring" || !mo(t.ease);
|
|
5341
5345
|
}
|
|
5342
|
-
function
|
|
5346
|
+
function id(t, e) {
|
|
5343
5347
|
const n = new Wi({
|
|
5344
5348
|
...e,
|
|
5345
5349
|
keyframes: t,
|
|
@@ -5350,7 +5354,7 @@ function Jf(t, e) {
|
|
|
5350
5354
|
let i = { done: !1, value: t[0] };
|
|
5351
5355
|
const r = [];
|
|
5352
5356
|
let o = 0;
|
|
5353
|
-
for (; !i.done && o <
|
|
5357
|
+
for (; !i.done && o < ed; )
|
|
5354
5358
|
i = n.sample(o), r.push(i.value), o += cn;
|
|
5355
5359
|
return {
|
|
5356
5360
|
times: void 0,
|
|
@@ -5364,7 +5368,7 @@ const Jo = {
|
|
|
5364
5368
|
backInOut: Eo,
|
|
5365
5369
|
circInOut: Do
|
|
5366
5370
|
};
|
|
5367
|
-
function
|
|
5371
|
+
function rd(t) {
|
|
5368
5372
|
return t in Jo;
|
|
5369
5373
|
}
|
|
5370
5374
|
class Ir extends Ko {
|
|
@@ -5377,11 +5381,11 @@ class Ir extends Ko {
|
|
|
5377
5381
|
let { duration: i = 300, times: r, ease: o, type: s, motionValue: a, name: l, startTime: c } = this.options;
|
|
5378
5382
|
if (!a.owner || !a.owner.current)
|
|
5379
5383
|
return !1;
|
|
5380
|
-
if (typeof o == "string" && on() &&
|
|
5381
|
-
const { onComplete: f, onUpdate: d, motionValue: h, element: p, ...g } = this.options, S =
|
|
5384
|
+
if (typeof o == "string" && on() && rd(o) && (o = Jo[o]), nd(this.options)) {
|
|
5385
|
+
const { onComplete: f, onUpdate: d, motionValue: h, element: p, ...g } = this.options, S = id(e, g);
|
|
5382
5386
|
e = S.keyframes, e.length === 1 && (e[1] = e[0]), i = S.duration, r = S.times, o = S.ease, s = "keyframes";
|
|
5383
5387
|
}
|
|
5384
|
-
const u =
|
|
5388
|
+
const u = Qf(a.owner.current, l, e, { ...this.options, duration: i, times: r, ease: o });
|
|
5385
5389
|
return u.startTime = c ?? this.calcStartTime(), this.pendingTimeline ? (vr(u, this.pendingTimeline), this.pendingTimeline = void 0) : u.onfinish = () => {
|
|
5386
5390
|
const { onComplete: f } = this.options;
|
|
5387
5391
|
a.set(Sn(e, this.options, n)), f && f(), this.cancel(), this.resolveFinishedPromise();
|
|
@@ -5513,32 +5517,32 @@ class Ir extends Ko {
|
|
|
5513
5517
|
if (!n || !n.owner || !(n.owner.current instanceof HTMLElement))
|
|
5514
5518
|
return !1;
|
|
5515
5519
|
const { onUpdate: l, transformTemplate: c } = n.owner.getProps();
|
|
5516
|
-
return
|
|
5520
|
+
return td() && i && Jf.has(i) && /**
|
|
5517
5521
|
* If we're outputting values to onUpdate then we can't use WAAPI as there's
|
|
5518
5522
|
* no way to read the value from WAAPI every frame.
|
|
5519
5523
|
*/
|
|
5520
5524
|
!l && !c && !r && o !== "mirror" && s !== 0 && a !== "inertia";
|
|
5521
5525
|
}
|
|
5522
5526
|
}
|
|
5523
|
-
const
|
|
5527
|
+
const sd = {
|
|
5524
5528
|
type: "spring",
|
|
5525
5529
|
stiffness: 500,
|
|
5526
5530
|
damping: 25,
|
|
5527
5531
|
restSpeed: 10
|
|
5528
|
-
},
|
|
5532
|
+
}, od = (t) => ({
|
|
5529
5533
|
type: "spring",
|
|
5530
5534
|
stiffness: 550,
|
|
5531
5535
|
damping: t === 0 ? 2 * Math.sqrt(550) : 30,
|
|
5532
5536
|
restSpeed: 10
|
|
5533
|
-
}),
|
|
5537
|
+
}), ad = {
|
|
5534
5538
|
type: "keyframes",
|
|
5535
5539
|
duration: 0.8
|
|
5536
|
-
},
|
|
5540
|
+
}, ld = {
|
|
5537
5541
|
type: "keyframes",
|
|
5538
5542
|
ease: [0.25, 0.1, 0.35, 1],
|
|
5539
5543
|
duration: 0.3
|
|
5540
|
-
},
|
|
5541
|
-
function
|
|
5544
|
+
}, cd = (t, { keyframes: e }) => e.length > 2 ? ad : Zt.has(t) ? t.startsWith("scale") ? od(e[1]) : sd : ld;
|
|
5545
|
+
function ud({ when: t, delay: e, delayChildren: n, staggerChildren: i, staggerDirection: r, repeat: o, repeatType: s, repeatDelay: a, from: l, elapsed: c, ...u }) {
|
|
5542
5546
|
return !!Object.keys(u).length;
|
|
5543
5547
|
}
|
|
5544
5548
|
const Gi = (t, e, n, i = {}, r, o) => (s) => {
|
|
@@ -5561,9 +5565,9 @@ const Gi = (t, e, n, i = {}, r, o) => (s) => {
|
|
|
5561
5565
|
motionValue: e,
|
|
5562
5566
|
element: o ? void 0 : r
|
|
5563
5567
|
};
|
|
5564
|
-
|
|
5568
|
+
ud(a) || (u = {
|
|
5565
5569
|
...u,
|
|
5566
|
-
...
|
|
5570
|
+
...cd(t, u)
|
|
5567
5571
|
}), u.duration && (u.duration = /* @__PURE__ */ Et(u.duration)), u.repeatDelay && (u.repeatDelay = /* @__PURE__ */ Et(u.repeatDelay)), u.from !== void 0 && (u.keyframes[0] = u.from);
|
|
5568
5572
|
let f = !1;
|
|
5569
5573
|
if ((u.type === !1 || u.duration === 0 && !u.repeatDelay) && (u.duration = 0, u.delay === 0 && (f = !0)), f && !o && e.get() !== void 0) {
|
|
@@ -5571,11 +5575,11 @@ const Gi = (t, e, n, i = {}, r, o) => (s) => {
|
|
|
5571
5575
|
if (d !== void 0)
|
|
5572
5576
|
return N.update(() => {
|
|
5573
5577
|
u.onUpdate(d), u.onComplete();
|
|
5574
|
-
}), new
|
|
5578
|
+
}), new Ru([]);
|
|
5575
5579
|
}
|
|
5576
5580
|
return !o && Ir.supports(u) ? new Ir(u) : new Wi(u);
|
|
5577
5581
|
};
|
|
5578
|
-
function
|
|
5582
|
+
function fd({ protectedKeys: t, needsAnimating: e }, n) {
|
|
5579
5583
|
const i = t.hasOwnProperty(n) && e[n] !== !0;
|
|
5580
5584
|
return e[n] = !1, i;
|
|
5581
5585
|
}
|
|
@@ -5586,7 +5590,7 @@ function Qo(t, e, { delay: n = 0, transitionOverride: i, type: r } = {}) {
|
|
|
5586
5590
|
const c = [], u = r && t.animationState && t.animationState.getState()[r];
|
|
5587
5591
|
for (const f in l) {
|
|
5588
5592
|
const d = t.getValue(f, (o = t.latestValues[f]) !== null && o !== void 0 ? o : null), h = l[f];
|
|
5589
|
-
if (h === void 0 || u &&
|
|
5593
|
+
if (h === void 0 || u && fd(u, f))
|
|
5590
5594
|
continue;
|
|
5591
5595
|
const p = {
|
|
5592
5596
|
delay: n,
|
|
@@ -5617,7 +5621,7 @@ function ni(t, e, n = {}) {
|
|
|
5617
5621
|
n.transitionOverride && (o = n.transitionOverride);
|
|
5618
5622
|
const s = r ? () => Promise.all(Qo(t, r, n)) : () => Promise.resolve(), a = t.variantChildren && t.variantChildren.size ? (c = 0) => {
|
|
5619
5623
|
const { delayChildren: u = 0, staggerChildren: f, staggerDirection: d } = o;
|
|
5620
|
-
return
|
|
5624
|
+
return dd(t, e, u + c, f, d, n);
|
|
5621
5625
|
} : () => Promise.resolve(), { when: l } = o;
|
|
5622
5626
|
if (l) {
|
|
5623
5627
|
const [c, u] = l === "beforeChildren" ? [s, a] : [a, s];
|
|
@@ -5625,16 +5629,16 @@ function ni(t, e, n = {}) {
|
|
|
5625
5629
|
} else
|
|
5626
5630
|
return Promise.all([s(), a(n.delay)]);
|
|
5627
5631
|
}
|
|
5628
|
-
function
|
|
5632
|
+
function dd(t, e, n = 0, i = 0, r = 1, o) {
|
|
5629
5633
|
const s = [], a = (t.variantChildren.size - 1) * i, l = r === 1 ? (c = 0) => c * i : (c = 0) => a - c * i;
|
|
5630
|
-
return Array.from(t.variantChildren).sort(
|
|
5634
|
+
return Array.from(t.variantChildren).sort(hd).forEach((c, u) => {
|
|
5631
5635
|
c.notify("AnimationStart", e), s.push(ni(c, e, {
|
|
5632
5636
|
...o,
|
|
5633
5637
|
delay: n + l(u)
|
|
5634
5638
|
}).then(() => c.notify("AnimationComplete", e)));
|
|
5635
5639
|
}), Promise.all(s);
|
|
5636
5640
|
}
|
|
5637
|
-
function
|
|
5641
|
+
function hd(t, e) {
|
|
5638
5642
|
return t.sortNodePosition(e);
|
|
5639
5643
|
}
|
|
5640
5644
|
function ta(t, e, n = {}) {
|
|
@@ -5664,7 +5668,7 @@ function ea(t, e) {
|
|
|
5664
5668
|
return !1;
|
|
5665
5669
|
return !0;
|
|
5666
5670
|
}
|
|
5667
|
-
const
|
|
5671
|
+
const pd = gi.length;
|
|
5668
5672
|
function na(t) {
|
|
5669
5673
|
if (!t)
|
|
5670
5674
|
return;
|
|
@@ -5673,18 +5677,18 @@ function na(t) {
|
|
|
5673
5677
|
return t.props.initial !== void 0 && (n.initial = t.props.initial), n;
|
|
5674
5678
|
}
|
|
5675
5679
|
const e = {};
|
|
5676
|
-
for (let n = 0; n <
|
|
5680
|
+
for (let n = 0; n < pd; n++) {
|
|
5677
5681
|
const i = gi[n], r = t.props[i];
|
|
5678
5682
|
(Me(r) || r === !1) && (e[i] = r);
|
|
5679
5683
|
}
|
|
5680
5684
|
return e;
|
|
5681
5685
|
}
|
|
5682
|
-
const
|
|
5683
|
-
function
|
|
5686
|
+
const md = [...mi].reverse(), gd = mi.length;
|
|
5687
|
+
function yd(t) {
|
|
5684
5688
|
return (e) => Promise.all(e.map(({ animation: n, options: i }) => ta(t, n, i)));
|
|
5685
5689
|
}
|
|
5686
|
-
function
|
|
5687
|
-
let e =
|
|
5690
|
+
function vd(t) {
|
|
5691
|
+
let e = yd(t), n = $r(), i = !0;
|
|
5688
5692
|
const r = (l) => (c, u) => {
|
|
5689
5693
|
var f;
|
|
5690
5694
|
const d = Oe(t, u, l === "exit" ? (f = t.presenceContext) === null || f === void 0 ? void 0 : f.custom : void 0);
|
|
@@ -5700,8 +5704,8 @@ function hd(t) {
|
|
|
5700
5704
|
function s(l) {
|
|
5701
5705
|
const { props: c } = t, u = na(t.parent) || {}, f = [], d = /* @__PURE__ */ new Set();
|
|
5702
5706
|
let h = {}, p = 1 / 0;
|
|
5703
|
-
for (let S = 0; S <
|
|
5704
|
-
const v =
|
|
5707
|
+
for (let S = 0; S < gd; S++) {
|
|
5708
|
+
const v = md[S], w = n[v], T = c[v] !== void 0 ? c[v] : u[v], V = Me(T), m = v === l ? w.isActive : null;
|
|
5705
5709
|
m === !1 && (p = S);
|
|
5706
5710
|
let E = T === u[v] && T !== c[v] && V;
|
|
5707
5711
|
if (E && i && t.manuallyAnimateOnMount && (E = !1), w.protectedKeys = { ...h }, // If it isn't active and hasn't *just* been set as inactive
|
|
@@ -5709,14 +5713,14 @@ function hd(t) {
|
|
|
5709
5713
|
!T && !w.prevProp || // Or if the prop doesn't define an animation
|
|
5710
5714
|
xn(T) || typeof T == "boolean")
|
|
5711
5715
|
continue;
|
|
5712
|
-
const M =
|
|
5716
|
+
const M = xd(w.prevProp, T);
|
|
5713
5717
|
let y = M || // If we're making this variant active, we want to always make it active
|
|
5714
5718
|
v === l && w.isActive && !E && V || // If we removed a higher-priority variant (i is in reverse order)
|
|
5715
5719
|
S > p && V, b = !1;
|
|
5716
5720
|
const x = Array.isArray(T) ? T : [T];
|
|
5717
5721
|
let C = x.reduce(r(v), {});
|
|
5718
5722
|
m === !1 && (C = {});
|
|
5719
|
-
const { prevResolvedValues: O = {} } = w,
|
|
5723
|
+
const { prevResolvedValues: O = {} } = w, z = {
|
|
5720
5724
|
...O,
|
|
5721
5725
|
...C
|
|
5722
5726
|
}, q = (k) => {
|
|
@@ -5724,7 +5728,7 @@ function hd(t) {
|
|
|
5724
5728
|
const _ = t.getValue(k);
|
|
5725
5729
|
_ && (_.liveStyle = !1);
|
|
5726
5730
|
};
|
|
5727
|
-
for (const k in
|
|
5731
|
+
for (const k in z) {
|
|
5728
5732
|
const _ = C[k], at = O[k];
|
|
5729
5733
|
if (h.hasOwnProperty(k))
|
|
5730
5734
|
continue;
|
|
@@ -5769,11 +5773,11 @@ function hd(t) {
|
|
|
5769
5773
|
setAnimateFunction: o,
|
|
5770
5774
|
getState: () => n,
|
|
5771
5775
|
reset: () => {
|
|
5772
|
-
n =
|
|
5776
|
+
n = $r(), i = !0;
|
|
5773
5777
|
}
|
|
5774
5778
|
};
|
|
5775
5779
|
}
|
|
5776
|
-
function
|
|
5780
|
+
function xd(t, e) {
|
|
5777
5781
|
return typeof e == "string" ? e !== t : Array.isArray(e) ? !ea(e, t) : !1;
|
|
5778
5782
|
}
|
|
5779
5783
|
function Ht(t = !1) {
|
|
@@ -5784,7 +5788,7 @@ function Ht(t = !1) {
|
|
|
5784
5788
|
prevResolvedValues: {}
|
|
5785
5789
|
};
|
|
5786
5790
|
}
|
|
5787
|
-
function
|
|
5791
|
+
function $r() {
|
|
5788
5792
|
return {
|
|
5789
5793
|
animate: Ht(!0),
|
|
5790
5794
|
whileInView: Ht(),
|
|
@@ -5802,14 +5806,14 @@ class zt {
|
|
|
5802
5806
|
update() {
|
|
5803
5807
|
}
|
|
5804
5808
|
}
|
|
5805
|
-
class
|
|
5809
|
+
class bd extends zt {
|
|
5806
5810
|
/**
|
|
5807
5811
|
* We dynamically generate the AnimationState manager as it contains a reference
|
|
5808
5812
|
* to the underlying animation library. We only want to load that if we load this,
|
|
5809
5813
|
* so people can optionally code split it out using the `m` component.
|
|
5810
5814
|
*/
|
|
5811
5815
|
constructor(e) {
|
|
5812
|
-
super(e), e.animationState || (e.animationState =
|
|
5816
|
+
super(e), e.animationState || (e.animationState = vd(e));
|
|
5813
5817
|
}
|
|
5814
5818
|
updateAnimationControlsSubscription() {
|
|
5815
5819
|
const { animate: e } = this.node.getProps();
|
|
@@ -5830,10 +5834,10 @@ class md extends zt {
|
|
|
5830
5834
|
this.node.animationState.reset(), (e = this.unmountControls) === null || e === void 0 || e.call(this);
|
|
5831
5835
|
}
|
|
5832
5836
|
}
|
|
5833
|
-
let
|
|
5834
|
-
class
|
|
5837
|
+
let Sd = 0;
|
|
5838
|
+
class wd extends zt {
|
|
5835
5839
|
constructor() {
|
|
5836
|
-
super(...arguments), this.id =
|
|
5840
|
+
super(...arguments), this.id = Sd++;
|
|
5837
5841
|
}
|
|
5838
5842
|
update() {
|
|
5839
5843
|
if (!this.node.presenceContext)
|
|
@@ -5853,12 +5857,12 @@ class yd extends zt {
|
|
|
5853
5857
|
unmount() {
|
|
5854
5858
|
}
|
|
5855
5859
|
}
|
|
5856
|
-
const
|
|
5860
|
+
const Td = {
|
|
5857
5861
|
animation: {
|
|
5858
|
-
Feature:
|
|
5862
|
+
Feature: bd
|
|
5859
5863
|
},
|
|
5860
5864
|
exit: {
|
|
5861
|
-
Feature:
|
|
5865
|
+
Feature: wd
|
|
5862
5866
|
}
|
|
5863
5867
|
};
|
|
5864
5868
|
function Ie(t, e, n, i = { passive: !0 }) {
|
|
@@ -5872,9 +5876,9 @@ function Ne(t) {
|
|
|
5872
5876
|
}
|
|
5873
5877
|
};
|
|
5874
5878
|
}
|
|
5875
|
-
const
|
|
5879
|
+
const Cd = (t) => (e) => Li(e) && t(e, Ne(e));
|
|
5876
5880
|
function te(t, e, n, i) {
|
|
5877
|
-
return Ie(t, e,
|
|
5881
|
+
return Ie(t, e, Cd(n), i);
|
|
5878
5882
|
}
|
|
5879
5883
|
function ia({ top: t, left: e, right: n, bottom: i }) {
|
|
5880
5884
|
return {
|
|
@@ -5882,10 +5886,10 @@ function ia({ top: t, left: e, right: n, bottom: i }) {
|
|
|
5882
5886
|
y: { min: t, max: i }
|
|
5883
5887
|
};
|
|
5884
5888
|
}
|
|
5885
|
-
function
|
|
5889
|
+
function Pd({ x: t, y: e }) {
|
|
5886
5890
|
return { top: e.min, right: t.max, bottom: e.max, left: t.min };
|
|
5887
5891
|
}
|
|
5888
|
-
function
|
|
5892
|
+
function Ad(t, e) {
|
|
5889
5893
|
if (!e)
|
|
5890
5894
|
return t;
|
|
5891
5895
|
const n = e({ x: t.left, y: t.top }), i = e({ x: t.right, y: t.bottom });
|
|
@@ -5896,23 +5900,23 @@ function Sd(t, e) {
|
|
|
5896
5900
|
right: i.x
|
|
5897
5901
|
};
|
|
5898
5902
|
}
|
|
5899
|
-
const ra = 1e-4,
|
|
5903
|
+
const ra = 1e-4, Vd = 1 - ra, Ed = 1 + ra, sa = 0.01, Rd = 0 - sa, Md = 0 + sa;
|
|
5900
5904
|
function ot(t) {
|
|
5901
5905
|
return t.max - t.min;
|
|
5902
5906
|
}
|
|
5903
|
-
function
|
|
5907
|
+
function Dd(t, e, n) {
|
|
5904
5908
|
return Math.abs(t - e) <= n;
|
|
5905
5909
|
}
|
|
5906
|
-
function
|
|
5907
|
-
t.origin = i, t.originPoint = K(e.min, e.max, t.origin), t.scale = ot(n) / ot(e), t.translate = K(n.min, n.max, t.origin) - t.originPoint, (t.scale >=
|
|
5910
|
+
function Br(t, e, n, i = 0.5) {
|
|
5911
|
+
t.origin = i, t.originPoint = K(e.min, e.max, t.origin), t.scale = ot(n) / ot(e), t.translate = K(n.min, n.max, t.origin) - t.originPoint, (t.scale >= Vd && t.scale <= Ed || isNaN(t.scale)) && (t.scale = 1), (t.translate >= Rd && t.translate <= Md || isNaN(t.translate)) && (t.translate = 0);
|
|
5908
5912
|
}
|
|
5909
5913
|
function Ce(t, e, n, i) {
|
|
5910
|
-
|
|
5914
|
+
Br(t.x, e.x, n.x, i ? i.originX : void 0), Br(t.y, e.y, n.y, i ? i.originY : void 0);
|
|
5911
5915
|
}
|
|
5912
5916
|
function jr(t, e, n) {
|
|
5913
5917
|
t.min = n.min + e.min, t.max = t.min + ot(e);
|
|
5914
5918
|
}
|
|
5915
|
-
function
|
|
5919
|
+
function Ld(t, e, n) {
|
|
5916
5920
|
jr(t.x, e.x, n.x), jr(t.y, e.y, n.y);
|
|
5917
5921
|
}
|
|
5918
5922
|
function _r(t, e, n) {
|
|
@@ -5965,7 +5969,7 @@ function aa(t, { x: e, y: n }) {
|
|
|
5965
5969
|
ri(t.x, e.translate, e.scale, e.originPoint), ri(t.y, n.translate, n.scale, n.originPoint);
|
|
5966
5970
|
}
|
|
5967
5971
|
const Gr = 0.999999999999, Kr = 1.0000000000001;
|
|
5968
|
-
function
|
|
5972
|
+
function Od(t, e, n, i = !1) {
|
|
5969
5973
|
const r = n.length;
|
|
5970
5974
|
if (!r)
|
|
5971
5975
|
return;
|
|
@@ -5992,14 +5996,14 @@ function ie(t, e) {
|
|
|
5992
5996
|
Hr(t.x, e.x, e.scaleX, e.scale, e.originX), Hr(t.y, e.y, e.scaleY, e.scale, e.originY);
|
|
5993
5997
|
}
|
|
5994
5998
|
function la(t, e) {
|
|
5995
|
-
return ia(
|
|
5999
|
+
return ia(Ad(t.getBoundingClientRect(), e));
|
|
5996
6000
|
}
|
|
5997
|
-
function
|
|
6001
|
+
function kd(t, e, n) {
|
|
5998
6002
|
const i = la(t, n), { scroll: r } = e;
|
|
5999
6003
|
return r && (ne(i.x, r.offset.x), ne(i.y, r.offset.y)), i;
|
|
6000
6004
|
}
|
|
6001
6005
|
const Yr = (t, e) => Math.abs(t - e);
|
|
6002
|
-
function
|
|
6006
|
+
function Fd(t, e) {
|
|
6003
6007
|
const n = Yr(t.x, e.x), i = Yr(t.y, e.y);
|
|
6004
6008
|
return Math.sqrt(n ** 2 + i ** 2);
|
|
6005
6009
|
}
|
|
@@ -6008,7 +6012,7 @@ class ca {
|
|
|
6008
6012
|
if (this.startEvent = null, this.lastMoveEvent = null, this.lastMoveEventInfo = null, this.handlers = {}, this.updatePoint = () => {
|
|
6009
6013
|
if (!(this.lastMoveEvent && this.lastMoveEventInfo))
|
|
6010
6014
|
return;
|
|
6011
|
-
const u = kn(this.lastMoveEventInfo, this.history), f = this.startEvent !== null, d =
|
|
6015
|
+
const u = kn(this.lastMoveEventInfo, this.history), f = this.startEvent !== null, d = Fd(u.offset, { x: 0, y: 0 }) >= 3;
|
|
6012
6016
|
if (!f && !d)
|
|
6013
6017
|
return;
|
|
6014
6018
|
const { point: h } = u, { timestamp: p } = Z;
|
|
@@ -6055,17 +6059,17 @@ function kn({ point: t }, e) {
|
|
|
6055
6059
|
return {
|
|
6056
6060
|
point: t,
|
|
6057
6061
|
delta: qr(t, ua(e)),
|
|
6058
|
-
offset: qr(t,
|
|
6059
|
-
velocity:
|
|
6062
|
+
offset: qr(t, Id(e)),
|
|
6063
|
+
velocity: $d(e, 0.1)
|
|
6060
6064
|
};
|
|
6061
6065
|
}
|
|
6062
|
-
function
|
|
6066
|
+
function Id(t) {
|
|
6063
6067
|
return t[0];
|
|
6064
6068
|
}
|
|
6065
6069
|
function ua(t) {
|
|
6066
6070
|
return t[t.length - 1];
|
|
6067
6071
|
}
|
|
6068
|
-
function
|
|
6072
|
+
function $d(t, e) {
|
|
6069
6073
|
if (t.length < 2)
|
|
6070
6074
|
return { x: 0, y: 0 };
|
|
6071
6075
|
let n = t.length - 1, i = null;
|
|
@@ -6083,7 +6087,7 @@ function Ld(t, e) {
|
|
|
6083
6087
|
};
|
|
6084
6088
|
return s.x === 1 / 0 && (s.x = 0), s.y === 1 / 0 && (s.y = 0), s;
|
|
6085
6089
|
}
|
|
6086
|
-
function
|
|
6090
|
+
function Bd(t, { min: e, max: n }, i) {
|
|
6087
6091
|
return e !== void 0 && t < e ? t = i ? K(e, t, i.min) : Math.max(t, e) : n !== void 0 && t > n && (t = i ? K(n, t, i.max) : Math.min(t, n)), t;
|
|
6088
6092
|
}
|
|
6089
6093
|
function Xr(t, e, n) {
|
|
@@ -6092,7 +6096,7 @@ function Xr(t, e, n) {
|
|
|
6092
6096
|
max: n !== void 0 ? t.max + n - (t.max - t.min) : void 0
|
|
6093
6097
|
};
|
|
6094
6098
|
}
|
|
6095
|
-
function
|
|
6099
|
+
function jd(t, { top: e, left: n, bottom: i, right: r }) {
|
|
6096
6100
|
return {
|
|
6097
6101
|
x: Xr(t.x, n, r),
|
|
6098
6102
|
y: Xr(t.y, e, i)
|
|
@@ -6102,23 +6106,23 @@ function Zr(t, e) {
|
|
|
6102
6106
|
let n = e.min - t.min, i = e.max - t.max;
|
|
6103
6107
|
return e.max - e.min < t.max - t.min && ([n, i] = [i, n]), { min: n, max: i };
|
|
6104
6108
|
}
|
|
6105
|
-
function
|
|
6109
|
+
function _d(t, e) {
|
|
6106
6110
|
return {
|
|
6107
6111
|
x: Zr(t.x, e.x),
|
|
6108
6112
|
y: Zr(t.y, e.y)
|
|
6109
6113
|
};
|
|
6110
6114
|
}
|
|
6111
|
-
function
|
|
6115
|
+
function Nd(t, e) {
|
|
6112
6116
|
let n = 0.5;
|
|
6113
6117
|
const i = ot(t), r = ot(e);
|
|
6114
6118
|
return r > i ? n = /* @__PURE__ */ ae(e.min, e.max - i, t.min) : i > r && (n = /* @__PURE__ */ ae(t.min, t.max - r, e.min)), kt(0, 1, n);
|
|
6115
6119
|
}
|
|
6116
|
-
function
|
|
6120
|
+
function Ud(t, e) {
|
|
6117
6121
|
const n = {};
|
|
6118
6122
|
return e.min !== void 0 && (n.min = e.min - t.min), e.max !== void 0 && (n.max = e.max - t.min), n;
|
|
6119
6123
|
}
|
|
6120
6124
|
const si = 0.35;
|
|
6121
|
-
function
|
|
6125
|
+
function zd(t = si) {
|
|
6122
6126
|
return t === !1 ? t = 0 : t === !0 && (t = si), {
|
|
6123
6127
|
x: Jr(t, "left", "right"),
|
|
6124
6128
|
y: Jr(t, "top", "bottom")
|
|
@@ -6133,8 +6137,8 @@ function Jr(t, e, n) {
|
|
|
6133
6137
|
function Qr(t, e) {
|
|
6134
6138
|
return typeof t == "number" ? t : t[e] || 0;
|
|
6135
6139
|
}
|
|
6136
|
-
const
|
|
6137
|
-
class
|
|
6140
|
+
const Wd = /* @__PURE__ */ new WeakMap();
|
|
6141
|
+
class Gd {
|
|
6138
6142
|
constructor(e) {
|
|
6139
6143
|
this.openDragLock = null, this.isDragging = !1, this.currentDirection = null, this.originPoint = { x: 0, y: 0 }, this.constraints = !1, this.hasMutatedConstraints = !1, this.elastic = H(), this.visualElement = e;
|
|
6140
6144
|
}
|
|
@@ -6147,7 +6151,7 @@ class _d {
|
|
|
6147
6151
|
f ? this.pauseAnimation() : this.stopAnimation(), n && this.snapToCursor(Ne(u).point);
|
|
6148
6152
|
}, o = (u, f) => {
|
|
6149
6153
|
const { drag: d, dragPropagation: h, onDragStart: p } = this.getProps();
|
|
6150
|
-
if (d && !h && (this.openDragLock && this.openDragLock(), this.openDragLock =
|
|
6154
|
+
if (d && !h && (this.openDragLock && this.openDragLock(), this.openDragLock = Bu(d), !this.openDragLock))
|
|
6151
6155
|
return;
|
|
6152
6156
|
this.isDragging = !0, this.currentDirection = null, this.resolveConstraints(), this.visualElement.projection && (this.visualElement.projection.isAnimationBlocked = !0, this.visualElement.projection.target = void 0), vt((S) => {
|
|
6153
6157
|
let v = this.getAxisMotionValue(S).get() || 0;
|
|
@@ -6168,7 +6172,7 @@ class _d {
|
|
|
6168
6172
|
return;
|
|
6169
6173
|
const { offset: S } = f;
|
|
6170
6174
|
if (h && this.currentDirection === null) {
|
|
6171
|
-
this.currentDirection =
|
|
6175
|
+
this.currentDirection = Kd(S), this.currentDirection !== null && p && p(this.currentDirection);
|
|
6172
6176
|
return;
|
|
6173
6177
|
}
|
|
6174
6178
|
this.updateAxis("x", f.point, S), this.updateAxis("y", f.point, S), this.visualElement.render(), g && g(u, f);
|
|
@@ -6209,13 +6213,13 @@ class _d {
|
|
|
6209
6213
|
return;
|
|
6210
6214
|
const o = this.getAxisMotionValue(e);
|
|
6211
6215
|
let s = this.originPoint[e] + i[e];
|
|
6212
|
-
this.constraints && this.constraints[e] && (s =
|
|
6216
|
+
this.constraints && this.constraints[e] && (s = Bd(s, this.constraints[e], this.elastic[e])), o.set(s);
|
|
6213
6217
|
}
|
|
6214
6218
|
resolveConstraints() {
|
|
6215
6219
|
var e;
|
|
6216
6220
|
const { dragConstraints: n, dragElastic: i } = this.getProps(), r = this.visualElement.projection && !this.visualElement.projection.layout ? this.visualElement.projection.measure(!1) : (e = this.visualElement.projection) === null || e === void 0 ? void 0 : e.layout, o = this.constraints;
|
|
6217
|
-
n && Jt(n) ? this.constraints || (this.constraints = this.resolveRefConstraints()) : n && r ? this.constraints =
|
|
6218
|
-
this.constraints !== !1 && this.getAxisMotionValue(s) && (this.constraints[s] =
|
|
6221
|
+
n && Jt(n) ? this.constraints || (this.constraints = this.resolveRefConstraints()) : n && r ? this.constraints = jd(r.layoutBox, n) : this.constraints = !1, this.elastic = zd(i), o !== this.constraints && r && this.constraints && !this.hasMutatedConstraints && vt((s) => {
|
|
6222
|
+
this.constraints !== !1 && this.getAxisMotionValue(s) && (this.constraints[s] = Ud(r.layoutBox[s], this.constraints[s]));
|
|
6219
6223
|
});
|
|
6220
6224
|
}
|
|
6221
6225
|
resolveRefConstraints() {
|
|
@@ -6227,10 +6231,10 @@ class _d {
|
|
|
6227
6231
|
const { projection: r } = this.visualElement;
|
|
6228
6232
|
if (!r || !r.layout)
|
|
6229
6233
|
return !1;
|
|
6230
|
-
const o =
|
|
6231
|
-
let s =
|
|
6234
|
+
const o = kd(i, r.root, this.visualElement.getTransformPagePoint());
|
|
6235
|
+
let s = _d(r.layout.layoutBox, o);
|
|
6232
6236
|
if (n) {
|
|
6233
|
-
const a = n(
|
|
6237
|
+
const a = n(Pd(s));
|
|
6234
6238
|
this.hasMutatedConstraints = !!a, a && (s = ia(a));
|
|
6235
6239
|
}
|
|
6236
6240
|
return s;
|
|
@@ -6312,7 +6316,7 @@ class _d {
|
|
|
6312
6316
|
const a = this.getAxisMotionValue(s);
|
|
6313
6317
|
if (a && this.constraints !== !1) {
|
|
6314
6318
|
const l = a.get();
|
|
6315
|
-
r[s] =
|
|
6319
|
+
r[s] = Nd({ min: l, max: l }, this.constraints[s]);
|
|
6316
6320
|
}
|
|
6317
6321
|
});
|
|
6318
6322
|
const { transformTemplate: o } = this.visualElement.getProps();
|
|
@@ -6326,7 +6330,7 @@ class _d {
|
|
|
6326
6330
|
addListeners() {
|
|
6327
6331
|
if (!this.visualElement.current)
|
|
6328
6332
|
return;
|
|
6329
|
-
|
|
6333
|
+
Wd.set(this.visualElement, this);
|
|
6330
6334
|
const e = this.visualElement.current, n = te(e, "pointerdown", (l) => {
|
|
6331
6335
|
const { drag: c, dragListener: u = !0 } = this.getProps();
|
|
6332
6336
|
c && u && this.start(l);
|
|
@@ -6361,13 +6365,13 @@ class _d {
|
|
|
6361
6365
|
function He(t, e, n) {
|
|
6362
6366
|
return (e === !0 || e === t) && (n === null || n === t);
|
|
6363
6367
|
}
|
|
6364
|
-
function
|
|
6368
|
+
function Kd(t, e = 10) {
|
|
6365
6369
|
let n = null;
|
|
6366
6370
|
return Math.abs(t.y) > e ? n = "y" : Math.abs(t.x) > e && (n = "x"), n;
|
|
6367
6371
|
}
|
|
6368
|
-
class
|
|
6372
|
+
class Hd extends zt {
|
|
6369
6373
|
constructor(e) {
|
|
6370
|
-
super(e), this.removeGroupControls = ft, this.removeListeners = ft, this.controls = new
|
|
6374
|
+
super(e), this.removeGroupControls = ft, this.removeListeners = ft, this.controls = new Gd(e);
|
|
6371
6375
|
}
|
|
6372
6376
|
mount() {
|
|
6373
6377
|
const { dragControls: e } = this.node.getProps();
|
|
@@ -6380,7 +6384,7 @@ class Ud extends zt {
|
|
|
6380
6384
|
const ts = (t) => (e, n) => {
|
|
6381
6385
|
t && N.postRender(() => t(e, n));
|
|
6382
6386
|
};
|
|
6383
|
-
class
|
|
6387
|
+
class Yd extends zt {
|
|
6384
6388
|
constructor() {
|
|
6385
6389
|
super(...arguments), this.removePointerDownListener = ft;
|
|
6386
6390
|
}
|
|
@@ -6437,7 +6441,7 @@ const ye = {
|
|
|
6437
6441
|
const n = es(t, e.target.x), i = es(t, e.target.y);
|
|
6438
6442
|
return `${n}% ${i}%`;
|
|
6439
6443
|
}
|
|
6440
|
-
},
|
|
6444
|
+
}, qd = {
|
|
6441
6445
|
correct: (t, { treeScale: e, projectionDelta: n }) => {
|
|
6442
6446
|
const i = t, r = Ut.parse(t);
|
|
6443
6447
|
if (r.length > 5)
|
|
@@ -6448,7 +6452,7 @@ const ye = {
|
|
|
6448
6452
|
return typeof r[2 + s] == "number" && (r[2 + s] /= c), typeof r[3 + s] == "number" && (r[3 + s] /= c), o(r);
|
|
6449
6453
|
}
|
|
6450
6454
|
};
|
|
6451
|
-
class
|
|
6455
|
+
class Xd extends Ra {
|
|
6452
6456
|
/**
|
|
6453
6457
|
* This only mounts projection nodes for components that
|
|
6454
6458
|
* need measuring, we might want to do it for all components
|
|
@@ -6456,7 +6460,7 @@ class Gd extends Ra {
|
|
|
6456
6460
|
*/
|
|
6457
6461
|
componentDidMount() {
|
|
6458
6462
|
const { visualElement: e, layoutGroup: n, switchLayoutGroup: i, layoutId: r } = this.props, { projection: o } = e;
|
|
6459
|
-
|
|
6463
|
+
nu(Zd), o && (n.group && n.group.add(o), i && i.register && r && i.register(o), o.root.didUpdate(), o.addEventListener("animationComplete", () => {
|
|
6460
6464
|
this.safeToRemove();
|
|
6461
6465
|
}), o.setOptions({
|
|
6462
6466
|
...o.options,
|
|
@@ -6489,10 +6493,10 @@ class Gd extends Ra {
|
|
|
6489
6493
|
}
|
|
6490
6494
|
}
|
|
6491
6495
|
function fa(t) {
|
|
6492
|
-
const [e, n] =
|
|
6493
|
-
return As(
|
|
6496
|
+
const [e, n] = kc(), i = st(Ws);
|
|
6497
|
+
return As(Xd, { ...t, layoutGroup: i, switchLayoutGroup: st(Qs), isPresent: e, safeToRemove: n });
|
|
6494
6498
|
}
|
|
6495
|
-
const
|
|
6499
|
+
const Zd = {
|
|
6496
6500
|
borderRadius: {
|
|
6497
6501
|
...ye,
|
|
6498
6502
|
applyTo: [
|
|
@@ -6506,17 +6510,17 @@ const Kd = {
|
|
|
6506
6510
|
borderTopRightRadius: ye,
|
|
6507
6511
|
borderBottomLeftRadius: ye,
|
|
6508
6512
|
borderBottomRightRadius: ye,
|
|
6509
|
-
boxShadow:
|
|
6513
|
+
boxShadow: qd
|
|
6510
6514
|
};
|
|
6511
|
-
function
|
|
6515
|
+
function Jd(t, e, n) {
|
|
6512
6516
|
const i = nt(t) ? t : ke(t);
|
|
6513
6517
|
return i.start(Gi("", i, e, n)), i.animation;
|
|
6514
6518
|
}
|
|
6515
|
-
function
|
|
6519
|
+
function Qd(t) {
|
|
6516
6520
|
return t instanceof SVGElement && t.tagName !== "svg";
|
|
6517
6521
|
}
|
|
6518
|
-
const
|
|
6519
|
-
class
|
|
6522
|
+
const th = (t, e) => t.depth - e.depth;
|
|
6523
|
+
class eh {
|
|
6520
6524
|
constructor() {
|
|
6521
6525
|
this.children = [], this.isDirty = !1;
|
|
6522
6526
|
}
|
|
@@ -6527,25 +6531,25 @@ class Xd {
|
|
|
6527
6531
|
ki(this.children, e), this.isDirty = !0;
|
|
6528
6532
|
}
|
|
6529
6533
|
forEach(e) {
|
|
6530
|
-
this.isDirty && this.children.sort(
|
|
6534
|
+
this.isDirty && this.children.sort(th), this.isDirty = !1, this.children.forEach(e);
|
|
6531
6535
|
}
|
|
6532
6536
|
}
|
|
6533
|
-
function
|
|
6537
|
+
function nh(t, e) {
|
|
6534
6538
|
const n = Mt.now(), i = ({ timestamp: r }) => {
|
|
6535
6539
|
const o = r - n;
|
|
6536
6540
|
o >= e && (Nt(i), t(o - e));
|
|
6537
6541
|
};
|
|
6538
6542
|
return N.read(i, !0), () => Nt(i);
|
|
6539
6543
|
}
|
|
6540
|
-
const da = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"],
|
|
6541
|
-
function
|
|
6544
|
+
const da = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"], ih = da.length, ns = (t) => typeof t == "string" ? parseFloat(t) : t, is = (t) => typeof t == "number" || L.test(t);
|
|
6545
|
+
function rh(t, e, n, i, r, o) {
|
|
6542
6546
|
r ? (t.opacity = K(
|
|
6543
6547
|
0,
|
|
6544
6548
|
// TODO Reinstate this if only child
|
|
6545
6549
|
n.opacity !== void 0 ? n.opacity : 1,
|
|
6546
|
-
|
|
6547
|
-
), t.opacityExit = K(e.opacity !== void 0 ? e.opacity : 1, 0,
|
|
6548
|
-
for (let s = 0; s <
|
|
6550
|
+
sh(i)
|
|
6551
|
+
), t.opacityExit = K(e.opacity !== void 0 ? e.opacity : 1, 0, oh(i))) : o && (t.opacity = K(e.opacity !== void 0 ? e.opacity : 1, n.opacity !== void 0 ? n.opacity : 1, i));
|
|
6552
|
+
for (let s = 0; s < ih; s++) {
|
|
6549
6553
|
const a = `border${da[s]}Radius`;
|
|
6550
6554
|
let l = rs(e, a), c = rs(n, a);
|
|
6551
6555
|
if (l === void 0 && c === void 0)
|
|
@@ -6557,7 +6561,7 @@ function Qd(t, e, n, i, r, o) {
|
|
|
6557
6561
|
function rs(t, e) {
|
|
6558
6562
|
return t[e] !== void 0 ? t[e] : t.borderRadius;
|
|
6559
6563
|
}
|
|
6560
|
-
const
|
|
6564
|
+
const sh = /* @__PURE__ */ ha(0, 0.5, Mo), oh = /* @__PURE__ */ ha(0.5, 0.95, ft);
|
|
6561
6565
|
function ha(t, e, n) {
|
|
6562
6566
|
return (i) => i < t ? 0 : i > e ? 1 : n(/* @__PURE__ */ ae(t, e, i));
|
|
6563
6567
|
}
|
|
@@ -6573,18 +6577,18 @@ function os(t, e) {
|
|
|
6573
6577
|
function as(t, e, n, i, r) {
|
|
6574
6578
|
return t -= e, t = un(t, 1 / n, i), r !== void 0 && (t = un(t, 1 / r, i)), t;
|
|
6575
6579
|
}
|
|
6576
|
-
function
|
|
6580
|
+
function ah(t, e = 0, n = 1, i = 0.5, r, o = t, s = t) {
|
|
6577
6581
|
if (Rt.test(e) && (e = parseFloat(e), e = K(s.min, s.max, e / 100) - s.min), typeof e != "number")
|
|
6578
6582
|
return;
|
|
6579
6583
|
let a = K(o.min, o.max, i);
|
|
6580
6584
|
t === o && (a -= e), t.min = as(t.min, e, n, a, r), t.max = as(t.max, e, n, a, r);
|
|
6581
6585
|
}
|
|
6582
6586
|
function ls(t, e, [n, i, r], o, s) {
|
|
6583
|
-
|
|
6587
|
+
ah(t, e[n], e[i], e[r], e.scale, o, s);
|
|
6584
6588
|
}
|
|
6585
|
-
const
|
|
6589
|
+
const lh = ["x", "scaleX", "originX"], ch = ["y", "scaleY", "originY"];
|
|
6586
6590
|
function cs(t, e, n, i) {
|
|
6587
|
-
ls(t.x, e,
|
|
6591
|
+
ls(t.x, e, lh, n ? n.x : void 0, i ? i.x : void 0), ls(t.y, e, ch, n ? n.y : void 0, i ? i.y : void 0);
|
|
6588
6592
|
}
|
|
6589
6593
|
function us(t) {
|
|
6590
6594
|
return t.translate === 0 && t.scale === 1;
|
|
@@ -6595,7 +6599,7 @@ function pa(t) {
|
|
|
6595
6599
|
function fs(t, e) {
|
|
6596
6600
|
return t.min === e.min && t.max === e.max;
|
|
6597
6601
|
}
|
|
6598
|
-
function
|
|
6602
|
+
function uh(t, e) {
|
|
6599
6603
|
return fs(t.x, e.x) && fs(t.y, e.y);
|
|
6600
6604
|
}
|
|
6601
6605
|
function ds(t, e) {
|
|
@@ -6610,7 +6614,7 @@ function hs(t) {
|
|
|
6610
6614
|
function ps(t, e) {
|
|
6611
6615
|
return t.translate === e.translate && t.scale === e.scale && t.originPoint === e.originPoint;
|
|
6612
6616
|
}
|
|
6613
|
-
class
|
|
6617
|
+
class fh {
|
|
6614
6618
|
constructor() {
|
|
6615
6619
|
this.members = [];
|
|
6616
6620
|
}
|
|
@@ -6664,7 +6668,7 @@ class oh {
|
|
|
6664
6668
|
this.lead && this.lead.snapshot && (this.lead.snapshot = void 0);
|
|
6665
6669
|
}
|
|
6666
6670
|
}
|
|
6667
|
-
function
|
|
6671
|
+
function dh(t, e, n) {
|
|
6668
6672
|
let i = "";
|
|
6669
6673
|
const r = t.x.translate / e.x, o = t.y.translate / e.y, s = (n == null ? void 0 : n.z) || 0;
|
|
6670
6674
|
if ((r || o || s) && (i = `translate3d(${r}px, ${o}px, ${s}px) `), (e.x !== 1 || e.y !== 1) && (i += `scale(${1 / e.x}, ${1 / e.y}) `), n) {
|
|
@@ -6674,8 +6678,8 @@ function ah(t, e, n) {
|
|
|
6674
6678
|
const a = t.x.scale * e.x, l = t.y.scale * e.y;
|
|
6675
6679
|
return (a !== 1 || l !== 1) && (i += `scale(${a}, ${l})`), i || "none";
|
|
6676
6680
|
}
|
|
6677
|
-
const Fn = ["", "X", "Y", "Z"],
|
|
6678
|
-
let
|
|
6681
|
+
const Fn = ["", "X", "Y", "Z"], hh = { visibility: "hidden" }, ms = 1e3;
|
|
6682
|
+
let ph = 0;
|
|
6679
6683
|
function In(t, e, n, i) {
|
|
6680
6684
|
const { latestValues: r } = e;
|
|
6681
6685
|
r[t] && (n[t] = r[t], e.setStaticValue(t, 0), i && (i[t] = 0));
|
|
@@ -6697,14 +6701,14 @@ function ga(t) {
|
|
|
6697
6701
|
function ya({ attachResizeListener: t, defaultParent: e, measureScroll: n, checkIsScrollRoot: i, resetTransform: r }) {
|
|
6698
6702
|
return class {
|
|
6699
6703
|
constructor(s = {}, a = e == null ? void 0 : e()) {
|
|
6700
|
-
this.id =
|
|
6704
|
+
this.id = ph++, 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 = () => {
|
|
6701
6705
|
this.isUpdating && (this.isUpdating = !1, this.clearAllSnapshots());
|
|
6702
6706
|
}, this.updateProjection = () => {
|
|
6703
|
-
this.projectionUpdateScheduled = !1, this.nodes.forEach(
|
|
6707
|
+
this.projectionUpdateScheduled = !1, this.nodes.forEach(yh), this.nodes.forEach(wh), this.nodes.forEach(Th), this.nodes.forEach(vh);
|
|
6704
6708
|
}, this.resolvedRelativeTargetAt = 0, this.hasProjected = !1, this.isVisible = !0, this.animationProgress = 0, this.sharedNodes = /* @__PURE__ */ new Map(), this.latestValues = s, this.root = a ? a.root || a : this, this.path = a ? [...a.path, a] : [], this.parent = a, this.depth = a ? a.depth + 1 : 0;
|
|
6705
6709
|
for (let l = 0; l < this.path.length; l++)
|
|
6706
6710
|
this.path[l].shouldResetTransform = !0;
|
|
6707
|
-
this.root === this && (this.nodes = new
|
|
6711
|
+
this.root === this && (this.nodes = new eh());
|
|
6708
6712
|
}
|
|
6709
6713
|
addEventListener(s, a) {
|
|
6710
6714
|
return this.eventHandlers.has(s) || this.eventHandlers.set(s, new Fi()), this.eventHandlers.get(s).add(a);
|
|
@@ -6722,13 +6726,13 @@ function ya({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
6722
6726
|
mount(s, a = this.root.hasTreeAnimated) {
|
|
6723
6727
|
if (this.instance)
|
|
6724
6728
|
return;
|
|
6725
|
-
this.isSVG =
|
|
6729
|
+
this.isSVG = Qd(s), this.instance = s;
|
|
6726
6730
|
const { layoutId: l, layout: c, visualElement: u } = this.options;
|
|
6727
6731
|
if (u && !u.current && u.mount(s), this.root.nodes.add(this), this.parent && this.parent.children.add(this), a && (c || l) && (this.isLayoutDirty = !0), t) {
|
|
6728
6732
|
let f;
|
|
6729
6733
|
const d = () => this.root.updateBlockedByResize = !1;
|
|
6730
6734
|
t(s, () => {
|
|
6731
|
-
this.root.updateBlockedByResize = !0, f && f(), f =
|
|
6735
|
+
this.root.updateBlockedByResize = !0, f && f(), f = nh(d, 250), tn.hasAnimatedSinceResize && (tn.hasAnimatedSinceResize = !1, this.nodes.forEach(ys));
|
|
6732
6736
|
});
|
|
6733
6737
|
}
|
|
6734
6738
|
l && this.root.registerSharedNode(l, this), this.options.animate !== !1 && u && (l || c) && this.addEventListener("didUpdate", ({ delta: f, hasLayoutChanged: d, hasRelativeLayoutChanged: h, layout: p }) => {
|
|
@@ -6736,7 +6740,7 @@ function ya({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
6736
6740
|
this.target = void 0, this.relativeTarget = void 0;
|
|
6737
6741
|
return;
|
|
6738
6742
|
}
|
|
6739
|
-
const g = this.options.transition || u.getDefaultTransition() ||
|
|
6743
|
+
const g = this.options.transition || u.getDefaultTransition() || Eh, { onLayoutAnimationStart: S, onLayoutAnimationComplete: v } = u.getProps(), w = !this.targetLayout || !ma(this.targetLayout, p), T = !d && h;
|
|
6740
6744
|
if (this.options.layoutRoot || this.resumeFrom || T || d && (w || !this.currentAnimation)) {
|
|
6741
6745
|
this.resumeFrom && (this.resumingFrom = this.resumeFrom, this.resumingFrom.resumingFrom = void 0), this.setAnimationOrigin(f, T);
|
|
6742
6746
|
const V = {
|
|
@@ -6770,7 +6774,7 @@ function ya({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
6770
6774
|
}
|
|
6771
6775
|
// Note: currently only running on root node
|
|
6772
6776
|
startUpdate() {
|
|
6773
|
-
this.isUpdateBlocked() || (this.isUpdating = !0, this.nodes && this.nodes.forEach(
|
|
6777
|
+
this.isUpdateBlocked() || (this.isUpdating = !0, this.nodes && this.nodes.forEach(Ch), this.animationId++);
|
|
6774
6778
|
}
|
|
6775
6779
|
getTransformTemplate() {
|
|
6776
6780
|
const { visualElement: s } = this.options;
|
|
@@ -6799,7 +6803,7 @@ function ya({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
6799
6803
|
this.unblockUpdate(), this.clearAllSnapshots(), this.nodes.forEach(gs);
|
|
6800
6804
|
return;
|
|
6801
6805
|
}
|
|
6802
|
-
this.isUpdating || this.nodes.forEach(
|
|
6806
|
+
this.isUpdating || this.nodes.forEach(bh), this.isUpdating = !1, this.nodes.forEach(Sh), this.nodes.forEach(mh), this.nodes.forEach(gh), this.clearAllSnapshots();
|
|
6803
6807
|
const a = Mt.now();
|
|
6804
6808
|
Z.delta = kt(0, 1e3 / 60, a - Z.timestamp), Z.timestamp = a, Z.isProcessing = !0, Vn.update.process(Z), Vn.preRender.process(Z), Vn.render.process(Z), Z.isProcessing = !1;
|
|
6805
6809
|
}
|
|
@@ -6807,7 +6811,7 @@ function ya({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
6807
6811
|
this.updateScheduled || (this.updateScheduled = !0, vi.read(this.scheduleUpdate));
|
|
6808
6812
|
}
|
|
6809
6813
|
clearAllSnapshots() {
|
|
6810
|
-
this.nodes.forEach(
|
|
6814
|
+
this.nodes.forEach(xh), this.sharedNodes.forEach(Ph);
|
|
6811
6815
|
}
|
|
6812
6816
|
scheduleUpdateProjection() {
|
|
6813
6817
|
this.projectionUpdateScheduled || (this.projectionUpdateScheduled = !0, N.preRender(this.updateProjection, !1, !0));
|
|
@@ -6856,7 +6860,7 @@ function ya({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
6856
6860
|
measure(s = !0) {
|
|
6857
6861
|
const a = this.measurePageBox();
|
|
6858
6862
|
let l = this.removeElementScroll(a);
|
|
6859
|
-
return s && (l = this.removeTransform(l)),
|
|
6863
|
+
return s && (l = this.removeTransform(l)), Rh(l), {
|
|
6860
6864
|
animationId: this.root.animationId,
|
|
6861
6865
|
measuredBox: a,
|
|
6862
6866
|
layoutBox: l,
|
|
@@ -6870,7 +6874,7 @@ function ya({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
6870
6874
|
if (!a)
|
|
6871
6875
|
return H();
|
|
6872
6876
|
const l = a.measureViewportBox();
|
|
6873
|
-
if (!(((s = this.scroll) === null || s === void 0 ? void 0 : s.wasRoot) || this.path.some(
|
|
6877
|
+
if (!(((s = this.scroll) === null || s === void 0 ? void 0 : s.wasRoot) || this.path.some(Mh))) {
|
|
6874
6878
|
const { scroll: u } = this.root;
|
|
6875
6879
|
u && (ne(l.x, u.offset.x), ne(l.y, u.offset.y));
|
|
6876
6880
|
}
|
|
@@ -6941,7 +6945,7 @@ function ya({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
6941
6945
|
const h = this.getClosestProjectingParent();
|
|
6942
6946
|
h && h.layout && this.animationProgress !== 1 ? (this.relativeParent = h, this.forceRelativeParentToResolveTarget(), this.relativeTarget = H(), this.relativeTargetOrigin = H(), Pe(this.relativeTargetOrigin, this.layout.layoutBox, h.layout.layoutBox), yt(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
|
|
6943
6947
|
}
|
|
6944
|
-
if (!(!this.relativeTarget && !this.targetDelta) && (this.target || (this.target = H(), this.targetWithTransforms = H()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(),
|
|
6948
|
+
if (!(!this.relativeTarget && !this.targetDelta) && (this.target || (this.target = H(), this.targetWithTransforms = H()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), Ld(this.target, this.relativeTarget, this.relativeParent.target)) : this.targetDelta ? (this.resumingFrom ? this.target = this.applyTransform(this.layout.layoutBox) : yt(this.target, this.layout.layoutBox), aa(this.target, this.targetDelta)) : yt(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget)) {
|
|
6945
6949
|
this.attemptToResolveRelativeTarget = !1;
|
|
6946
6950
|
const h = this.getClosestProjectingParent();
|
|
6947
6951
|
h && !!h.resumingFrom == !!this.resumingFrom && !h.options.layoutScroll && h.target && this.animationProgress !== 1 ? (this.relativeParent = h, this.forceRelativeParentToResolveTarget(), this.relativeTarget = H(), this.relativeTargetOrigin = H(), Pe(this.relativeTargetOrigin, this.target, h.target), yt(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
|
|
@@ -6966,7 +6970,7 @@ function ya({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
6966
6970
|
return;
|
|
6967
6971
|
yt(this.layoutCorrected, this.layout.layoutBox);
|
|
6968
6972
|
const d = this.treeScale.x, h = this.treeScale.y;
|
|
6969
|
-
|
|
6973
|
+
Od(this.layoutCorrected, this.treeScale, this.path, l), a.layout && !a.target && (this.treeScale.x !== 1 || this.treeScale.y !== 1) && (a.target = a.layout.layoutBox, a.targetWithTransforms = H());
|
|
6970
6974
|
const { target: p } = a;
|
|
6971
6975
|
if (!p) {
|
|
6972
6976
|
this.prevProjectionDelta && (this.createProjectionDeltas(), this.scheduleRender());
|
|
@@ -6994,17 +6998,17 @@ function ya({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
6994
6998
|
setAnimationOrigin(s, a = !1) {
|
|
6995
6999
|
const l = this.snapshot, c = l ? l.latestValues : {}, u = { ...this.latestValues }, f = ee();
|
|
6996
7000
|
(!this.relativeParent || !this.relativeParent.options.layoutRoot) && (this.relativeTarget = this.relativeTargetOrigin = void 0), this.attemptToResolveRelativeTarget = !a;
|
|
6997
|
-
const d = H(), h = l ? l.source : void 0, p = this.layout ? this.layout.source : void 0, g = h !== p, S = this.getStack(), v = !S || S.members.length <= 1, w = !!(g && !v && this.options.crossfade === !0 && !this.path.some(
|
|
7001
|
+
const d = H(), h = l ? l.source : void 0, p = this.layout ? this.layout.source : void 0, g = h !== p, S = this.getStack(), v = !S || S.members.length <= 1, w = !!(g && !v && this.options.crossfade === !0 && !this.path.some(Vh));
|
|
6998
7002
|
this.animationProgress = 0;
|
|
6999
7003
|
let T;
|
|
7000
7004
|
this.mixTargetDelta = (V) => {
|
|
7001
7005
|
const m = V / 1e3;
|
|
7002
|
-
vs(f.x, s.x, m), vs(f.y, s.y, m), this.setTargetDelta(f), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (Pe(d, this.layout.layoutBox, this.relativeParent.layout.layoutBox),
|
|
7006
|
+
vs(f.x, s.x, m), vs(f.y, s.y, m), this.setTargetDelta(f), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (Pe(d, this.layout.layoutBox, this.relativeParent.layout.layoutBox), Ah(this.relativeTarget, this.relativeTargetOrigin, d, m), T && uh(this.relativeTarget, T) && (this.isProjectionDirty = !1), T || (T = H()), yt(T, this.relativeTarget)), g && (this.animationValues = u, rh(u, c, this.latestValues, m, w, v)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = m;
|
|
7003
7007
|
}, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);
|
|
7004
7008
|
}
|
|
7005
7009
|
startAnimation(s) {
|
|
7006
7010
|
this.notifyListeners("animationStart"), this.currentAnimation && this.currentAnimation.stop(), this.resumingFrom && this.resumingFrom.currentAnimation && this.resumingFrom.currentAnimation.stop(), this.pendingAnimation && (Nt(this.pendingAnimation), this.pendingAnimation = void 0), this.pendingAnimation = N.update(() => {
|
|
7007
|
-
tn.hasAnimatedSinceResize = !0, this.currentAnimation =
|
|
7011
|
+
tn.hasAnimatedSinceResize = !0, this.currentAnimation = Jd(0, ms, {
|
|
7008
7012
|
...s,
|
|
7009
7013
|
onUpdate: (a) => {
|
|
7010
7014
|
this.mixTargetDelta(a), s.onUpdate && s.onUpdate(a);
|
|
@@ -7040,7 +7044,7 @@ function ya({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
7040
7044
|
}
|
|
7041
7045
|
}
|
|
7042
7046
|
registerSharedNode(s, a) {
|
|
7043
|
-
this.sharedNodes.has(s) || this.sharedNodes.set(s, new
|
|
7047
|
+
this.sharedNodes.has(s) || this.sharedNodes.set(s, new fh()), this.sharedNodes.get(s).add(a);
|
|
7044
7048
|
const c = a.options.initialPromotionConfig;
|
|
7045
7049
|
a.promote({
|
|
7046
7050
|
transition: c ? c.transition : void 0,
|
|
@@ -7096,7 +7100,7 @@ function ya({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
7096
7100
|
if (!this.instance || this.isSVG)
|
|
7097
7101
|
return;
|
|
7098
7102
|
if (!this.isVisible)
|
|
7099
|
-
return
|
|
7103
|
+
return hh;
|
|
7100
7104
|
const c = {
|
|
7101
7105
|
visibility: ""
|
|
7102
7106
|
}, u = this.getTransformTemplate();
|
|
@@ -7108,7 +7112,7 @@ function ya({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
7108
7112
|
return this.options.layoutId && (g.opacity = this.latestValues.opacity !== void 0 ? this.latestValues.opacity : 1, g.pointerEvents = Je(s == null ? void 0 : s.pointerEvents) || ""), this.hasProjected && !Yt(this.latestValues) && (g.transform = u ? u({}, "") : "none", this.hasProjected = !1), g;
|
|
7109
7113
|
}
|
|
7110
7114
|
const d = f.animationValues || f.latestValues;
|
|
7111
|
-
this.applyTransformsToTarget(), c.transform =
|
|
7115
|
+
this.applyTransformsToTarget(), c.transform = dh(this.projectionDeltaWithTransform, this.treeScale, d), u && (c.transform = u(d, c.transform));
|
|
7112
7116
|
const { x: h, y: p } = this.projectionDelta;
|
|
7113
7117
|
c.transformOrigin = `${h.origin * 100}% ${p.origin * 100}% 0`, f.animationValues ? c.opacity = f === this ? (l = (a = d.opacity) !== null && a !== void 0 ? a : this.latestValues.opacity) !== null && l !== void 0 ? l : 1 : this.preserveOpacity ? this.latestValues.opacity : d.opacityExit : c.opacity = f === this ? d.opacity !== void 0 ? d.opacity : "" : d.opacityExit !== void 0 ? d.opacityExit : 0;
|
|
7114
7118
|
for (const g in De) {
|
|
@@ -7136,10 +7140,10 @@ function ya({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
7136
7140
|
}
|
|
7137
7141
|
};
|
|
7138
7142
|
}
|
|
7139
|
-
function
|
|
7143
|
+
function mh(t) {
|
|
7140
7144
|
t.updateLayout();
|
|
7141
7145
|
}
|
|
7142
|
-
function
|
|
7146
|
+
function gh(t) {
|
|
7143
7147
|
var e;
|
|
7144
7148
|
const n = ((e = t.resumeFrom) === null || e === void 0 ? void 0 : e.snapshot) || t.snapshot;
|
|
7145
7149
|
if (t.isLead() && t.layout && n && t.hasListeners("didUpdate")) {
|
|
@@ -7183,38 +7187,38 @@ function fh(t) {
|
|
|
7183
7187
|
}
|
|
7184
7188
|
t.options.transition = void 0;
|
|
7185
7189
|
}
|
|
7186
|
-
function
|
|
7190
|
+
function yh(t) {
|
|
7187
7191
|
t.parent && (t.isProjecting() || (t.isProjectionDirty = t.parent.isProjectionDirty), t.isSharedProjectionDirty || (t.isSharedProjectionDirty = !!(t.isProjectionDirty || t.parent.isProjectionDirty || t.parent.isSharedProjectionDirty)), t.isTransformDirty || (t.isTransformDirty = t.parent.isTransformDirty));
|
|
7188
7192
|
}
|
|
7189
|
-
function
|
|
7193
|
+
function vh(t) {
|
|
7190
7194
|
t.isProjectionDirty = t.isSharedProjectionDirty = t.isTransformDirty = !1;
|
|
7191
7195
|
}
|
|
7192
|
-
function
|
|
7196
|
+
function xh(t) {
|
|
7193
7197
|
t.clearSnapshot();
|
|
7194
7198
|
}
|
|
7195
7199
|
function gs(t) {
|
|
7196
7200
|
t.clearMeasurements();
|
|
7197
7201
|
}
|
|
7198
|
-
function
|
|
7202
|
+
function bh(t) {
|
|
7199
7203
|
t.isLayoutDirty = !1;
|
|
7200
7204
|
}
|
|
7201
|
-
function
|
|
7205
|
+
function Sh(t) {
|
|
7202
7206
|
const { visualElement: e } = t.options;
|
|
7203
7207
|
e && e.getProps().onBeforeLayoutMeasure && e.notify("BeforeLayoutMeasure"), t.resetTransform();
|
|
7204
7208
|
}
|
|
7205
7209
|
function ys(t) {
|
|
7206
7210
|
t.finishAnimation(), t.targetDelta = t.relativeTarget = t.target = void 0, t.isProjectionDirty = !0;
|
|
7207
7211
|
}
|
|
7208
|
-
function
|
|
7212
|
+
function wh(t) {
|
|
7209
7213
|
t.resolveTargetDelta();
|
|
7210
7214
|
}
|
|
7211
|
-
function
|
|
7215
|
+
function Th(t) {
|
|
7212
7216
|
t.calcProjection();
|
|
7213
7217
|
}
|
|
7214
|
-
function
|
|
7218
|
+
function Ch(t) {
|
|
7215
7219
|
t.resetSkewAndRotation();
|
|
7216
7220
|
}
|
|
7217
|
-
function
|
|
7221
|
+
function Ph(t) {
|
|
7218
7222
|
t.removeLeadSnapshot();
|
|
7219
7223
|
}
|
|
7220
7224
|
function vs(t, e, n) {
|
|
@@ -7223,37 +7227,37 @@ function vs(t, e, n) {
|
|
|
7223
7227
|
function xs(t, e, n, i) {
|
|
7224
7228
|
t.min = K(e.min, n.min, i), t.max = K(e.max, n.max, i);
|
|
7225
7229
|
}
|
|
7226
|
-
function
|
|
7230
|
+
function Ah(t, e, n, i) {
|
|
7227
7231
|
xs(t.x, e.x, n.x, i), xs(t.y, e.y, n.y, i);
|
|
7228
7232
|
}
|
|
7229
|
-
function
|
|
7233
|
+
function Vh(t) {
|
|
7230
7234
|
return t.animationValues && t.animationValues.opacityExit !== void 0;
|
|
7231
7235
|
}
|
|
7232
|
-
const
|
|
7236
|
+
const Eh = {
|
|
7233
7237
|
duration: 0.45,
|
|
7234
7238
|
ease: [0.4, 0, 0.1, 1]
|
|
7235
7239
|
}, bs = (t) => typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().includes(t), Ss = bs("applewebkit/") && !bs("chrome/") ? Math.round : ft;
|
|
7236
7240
|
function ws(t) {
|
|
7237
7241
|
t.min = Ss(t.min), t.max = Ss(t.max);
|
|
7238
7242
|
}
|
|
7239
|
-
function
|
|
7243
|
+
function Rh(t) {
|
|
7240
7244
|
ws(t.x), ws(t.y);
|
|
7241
7245
|
}
|
|
7242
7246
|
function va(t, e, n) {
|
|
7243
|
-
return t === "position" || t === "preserve-aspect" && !
|
|
7247
|
+
return t === "position" || t === "preserve-aspect" && !Dd(hs(e), hs(n), 0.2);
|
|
7244
7248
|
}
|
|
7245
|
-
function
|
|
7249
|
+
function Mh(t) {
|
|
7246
7250
|
var e;
|
|
7247
7251
|
return t !== t.root && ((e = t.scroll) === null || e === void 0 ? void 0 : e.wasRoot);
|
|
7248
7252
|
}
|
|
7249
|
-
const
|
|
7253
|
+
const Dh = ya({
|
|
7250
7254
|
attachResizeListener: (t, e) => Ie(t, "resize", e),
|
|
7251
7255
|
measureScroll: () => ({
|
|
7252
7256
|
x: document.documentElement.scrollLeft || document.body.scrollLeft,
|
|
7253
7257
|
y: document.documentElement.scrollTop || document.body.scrollTop
|
|
7254
7258
|
}),
|
|
7255
7259
|
checkIsScrollRoot: () => !0
|
|
7256
|
-
}),
|
|
7260
|
+
}), $n = {
|
|
7257
7261
|
current: void 0
|
|
7258
7262
|
}, xa = ya({
|
|
7259
7263
|
measureScroll: (t) => ({
|
|
@@ -7261,22 +7265,22 @@ const Ah = ya({
|
|
|
7261
7265
|
y: t.scrollTop
|
|
7262
7266
|
}),
|
|
7263
7267
|
defaultParent: () => {
|
|
7264
|
-
if (
|
|
7265
|
-
const t = new
|
|
7266
|
-
t.mount(window), t.setOptions({ layoutScroll: !0 }),
|
|
7268
|
+
if (!$n.current) {
|
|
7269
|
+
const t = new Dh({});
|
|
7270
|
+
t.mount(window), t.setOptions({ layoutScroll: !0 }), $n.current = t;
|
|
7267
7271
|
}
|
|
7268
|
-
return
|
|
7272
|
+
return $n.current;
|
|
7269
7273
|
},
|
|
7270
7274
|
resetTransform: (t, e) => {
|
|
7271
7275
|
t.style.transform = e !== void 0 ? e : "none";
|
|
7272
7276
|
},
|
|
7273
7277
|
checkIsScrollRoot: (t) => window.getComputedStyle(t).position === "fixed"
|
|
7274
|
-
}),
|
|
7278
|
+
}), Lh = {
|
|
7275
7279
|
pan: {
|
|
7276
|
-
Feature:
|
|
7280
|
+
Feature: Yd
|
|
7277
7281
|
},
|
|
7278
7282
|
drag: {
|
|
7279
|
-
Feature:
|
|
7283
|
+
Feature: Hd,
|
|
7280
7284
|
ProjectionNode: xa,
|
|
7281
7285
|
MeasureLayout: fa
|
|
7282
7286
|
}
|
|
@@ -7287,15 +7291,15 @@ function Ts(t, e, n) {
|
|
|
7287
7291
|
const r = "onHover" + n, o = i[r];
|
|
7288
7292
|
o && N.postRender(() => o(e, Ne(e)));
|
|
7289
7293
|
}
|
|
7290
|
-
class
|
|
7294
|
+
class Oh extends zt {
|
|
7291
7295
|
mount() {
|
|
7292
7296
|
const { current: e } = this.node;
|
|
7293
|
-
e && (this.unmount =
|
|
7297
|
+
e && (this.unmount = Lu(e, (n, i) => (Ts(this.node, i, "Start"), (r) => Ts(this.node, r, "End"))));
|
|
7294
7298
|
}
|
|
7295
7299
|
unmount() {
|
|
7296
7300
|
}
|
|
7297
7301
|
}
|
|
7298
|
-
class
|
|
7302
|
+
class kh extends zt {
|
|
7299
7303
|
constructor() {
|
|
7300
7304
|
super(...arguments), this.isActive = !1;
|
|
7301
7305
|
}
|
|
@@ -7325,37 +7329,37 @@ function Cs(t, e, n) {
|
|
|
7325
7329
|
const r = "onTap" + (n === "End" ? "" : n), o = i[r];
|
|
7326
7330
|
o && N.postRender(() => o(e, Ne(e)));
|
|
7327
7331
|
}
|
|
7328
|
-
class
|
|
7332
|
+
class Fh extends zt {
|
|
7329
7333
|
mount() {
|
|
7330
7334
|
const { current: e } = this.node;
|
|
7331
|
-
e && (this.unmount =
|
|
7335
|
+
e && (this.unmount = Iu(e, (n, i) => (Cs(this.node, i, "Start"), (r, { success: o }) => Cs(this.node, r, o ? "End" : "Cancel")), { useGlobalTarget: this.node.props.globalTapTarget }));
|
|
7332
7336
|
}
|
|
7333
7337
|
unmount() {
|
|
7334
7338
|
}
|
|
7335
7339
|
}
|
|
7336
|
-
const oi = /* @__PURE__ */ new WeakMap(),
|
|
7340
|
+
const oi = /* @__PURE__ */ new WeakMap(), Bn = /* @__PURE__ */ new WeakMap(), Ih = (t) => {
|
|
7337
7341
|
const e = oi.get(t.target);
|
|
7338
7342
|
e && e(t);
|
|
7339
|
-
},
|
|
7340
|
-
t.forEach(
|
|
7343
|
+
}, $h = (t) => {
|
|
7344
|
+
t.forEach(Ih);
|
|
7341
7345
|
};
|
|
7342
|
-
function
|
|
7346
|
+
function Bh({ root: t, ...e }) {
|
|
7343
7347
|
const n = t || document;
|
|
7344
|
-
|
|
7345
|
-
const i =
|
|
7346
|
-
return i[r] || (i[r] = new IntersectionObserver(
|
|
7348
|
+
Bn.has(n) || Bn.set(n, {});
|
|
7349
|
+
const i = Bn.get(n), r = JSON.stringify(e);
|
|
7350
|
+
return i[r] || (i[r] = new IntersectionObserver($h, { root: t, ...e })), i[r];
|
|
7347
7351
|
}
|
|
7348
|
-
function
|
|
7349
|
-
const i =
|
|
7352
|
+
function jh(t, e, n) {
|
|
7353
|
+
const i = Bh(e);
|
|
7350
7354
|
return oi.set(t, n), i.observe(t), () => {
|
|
7351
7355
|
oi.delete(t), i.unobserve(t);
|
|
7352
7356
|
};
|
|
7353
7357
|
}
|
|
7354
|
-
const
|
|
7358
|
+
const _h = {
|
|
7355
7359
|
some: 0,
|
|
7356
7360
|
all: 1
|
|
7357
7361
|
};
|
|
7358
|
-
class
|
|
7362
|
+
class Nh extends zt {
|
|
7359
7363
|
constructor() {
|
|
7360
7364
|
super(...arguments), this.hasEnteredView = !1, this.isInView = !1;
|
|
7361
7365
|
}
|
|
@@ -7364,7 +7368,7 @@ class Ih extends zt {
|
|
|
7364
7368
|
const { viewport: e = {} } = this.node.getProps(), { root: n, margin: i, amount: r = "some", once: o } = e, s = {
|
|
7365
7369
|
root: n ? n.current : void 0,
|
|
7366
7370
|
rootMargin: i,
|
|
7367
|
-
threshold: typeof r == "number" ? r :
|
|
7371
|
+
threshold: typeof r == "number" ? r : _h[r]
|
|
7368
7372
|
}, a = (l) => {
|
|
7369
7373
|
const { isIntersecting: c } = l;
|
|
7370
7374
|
if (this.isInView === c || (this.isInView = c, o && !c && this.hasEnteredView))
|
|
@@ -7373,7 +7377,7 @@ class Ih extends zt {
|
|
|
7373
7377
|
const { onViewportEnter: u, onViewportLeave: f } = this.node.getProps(), d = c ? u : f;
|
|
7374
7378
|
d && d(l);
|
|
7375
7379
|
};
|
|
7376
|
-
return
|
|
7380
|
+
return jh(this.node.current, s, a);
|
|
7377
7381
|
}
|
|
7378
7382
|
mount() {
|
|
7379
7383
|
this.startObserver();
|
|
@@ -7382,34 +7386,34 @@ class Ih extends zt {
|
|
|
7382
7386
|
if (typeof IntersectionObserver > "u")
|
|
7383
7387
|
return;
|
|
7384
7388
|
const { props: e, prevProps: n } = this.node;
|
|
7385
|
-
["amount", "margin", "root"].some(
|
|
7389
|
+
["amount", "margin", "root"].some(Uh(e, n)) && this.startObserver();
|
|
7386
7390
|
}
|
|
7387
7391
|
unmount() {
|
|
7388
7392
|
}
|
|
7389
7393
|
}
|
|
7390
|
-
function
|
|
7394
|
+
function Uh({ viewport: t = {} }, { viewport: e = {} } = {}) {
|
|
7391
7395
|
return (n) => t[n] !== e[n];
|
|
7392
7396
|
}
|
|
7393
|
-
const
|
|
7397
|
+
const zh = {
|
|
7394
7398
|
inView: {
|
|
7395
|
-
Feature:
|
|
7399
|
+
Feature: Nh
|
|
7396
7400
|
},
|
|
7397
7401
|
tap: {
|
|
7398
|
-
Feature:
|
|
7402
|
+
Feature: Fh
|
|
7399
7403
|
},
|
|
7400
7404
|
focus: {
|
|
7401
|
-
Feature:
|
|
7405
|
+
Feature: kh
|
|
7402
7406
|
},
|
|
7403
7407
|
hover: {
|
|
7404
|
-
Feature:
|
|
7408
|
+
Feature: Oh
|
|
7405
7409
|
}
|
|
7406
|
-
},
|
|
7410
|
+
}, Wh = {
|
|
7407
7411
|
layout: {
|
|
7408
7412
|
ProjectionNode: xa,
|
|
7409
7413
|
MeasureLayout: fa
|
|
7410
7414
|
}
|
|
7411
7415
|
}, ai = { current: null }, ba = { current: !1 };
|
|
7412
|
-
function
|
|
7416
|
+
function Gh() {
|
|
7413
7417
|
if (ba.current = !0, !!hi)
|
|
7414
7418
|
if (window.matchMedia) {
|
|
7415
7419
|
const t = window.matchMedia("(prefers-reduced-motion)"), e = () => ai.current = t.matches;
|
|
@@ -7417,8 +7421,8 @@ function _h() {
|
|
|
7417
7421
|
} else
|
|
7418
7422
|
ai.current = !1;
|
|
7419
7423
|
}
|
|
7420
|
-
const
|
|
7421
|
-
function
|
|
7424
|
+
const Kh = [...Wo, et, Ut], Hh = (t) => Kh.find(zo(t)), Yh = /* @__PURE__ */ new WeakMap();
|
|
7425
|
+
function qh(t, e, n) {
|
|
7422
7426
|
for (const i in e) {
|
|
7423
7427
|
const r = e[i], o = n[i];
|
|
7424
7428
|
if (nt(r))
|
|
@@ -7447,7 +7451,7 @@ const Ps = [
|
|
|
7447
7451
|
"LayoutAnimationStart",
|
|
7448
7452
|
"LayoutAnimationComplete"
|
|
7449
7453
|
];
|
|
7450
|
-
class
|
|
7454
|
+
class Xh {
|
|
7451
7455
|
/**
|
|
7452
7456
|
* This method takes React props and returns found MotionValues. For example, HTML
|
|
7453
7457
|
* MotionValues will be found within the style prop, whereas for Three.js within attribute arrays.
|
|
@@ -7474,7 +7478,7 @@ class Gh {
|
|
|
7474
7478
|
}
|
|
7475
7479
|
}
|
|
7476
7480
|
mount(e) {
|
|
7477
|
-
this.current = e,
|
|
7481
|
+
this.current = e, Yh.set(e, this), this.projection && !this.projection.instance && this.projection.mount(e), this.parent && this.isVariantNode && !this.isControllingVariants && (this.removeFromVariantTree = this.parent.addVariantChild(this)), this.values.forEach((n, i) => this.bindToMotionValue(i, n)), ba.current || Gh(), this.shouldReduceMotion = this.reducedMotionConfig === "never" ? !1 : this.reducedMotionConfig === "always" ? !0 : ai.current, process.env.NODE_ENV !== "production" && yn(this.shouldReduceMotion !== !0, "You have Reduced Motion enabled on your device. Animations may not appear as expected."), this.parent && this.parent.children.add(this), this.update(this.props, this.presenceContext);
|
|
7478
7482
|
}
|
|
7479
7483
|
unmount() {
|
|
7480
7484
|
this.projection && this.projection.unmount(), Nt(this.notifyUpdate), Nt(this.render), this.valueSubscriptions.forEach((e) => e()), this.valueSubscriptions.clear(), this.removeFromVariantTree && this.removeFromVariantTree(), this.parent && this.parent.children.delete(this);
|
|
@@ -7543,7 +7547,7 @@ class Gh {
|
|
|
7543
7547
|
const o = "on" + r, s = e[o];
|
|
7544
7548
|
s && (this.propEventSubscriptions[r] = this.on(r, s));
|
|
7545
7549
|
}
|
|
7546
|
-
this.prevMotionValues =
|
|
7550
|
+
this.prevMotionValues = qh(this, this.scrapeMotionValuesFromProps(e, this.prevProps, this), this.prevMotionValues), this.handleChildMotionValue && this.handleChildMotionValue(), this.onUpdate && this.onUpdate(this);
|
|
7547
7551
|
}
|
|
7548
7552
|
getProps() {
|
|
7549
7553
|
return this.props;
|
|
@@ -7609,7 +7613,7 @@ class Gh {
|
|
|
7609
7613
|
readValue(e, n) {
|
|
7610
7614
|
var i;
|
|
7611
7615
|
let r = this.latestValues[e] !== void 0 || !this.current ? this.latestValues[e] : (i = this.getBaseTargetFromProps(this.props, e)) !== null && i !== void 0 ? i : this.readValueFromInstance(this.current, e, this.options);
|
|
7612
|
-
return r != null && (typeof r == "string" && (No(r) || Lo(r)) ? r = parseFloat(r) : !
|
|
7616
|
+
return r != null && (typeof r == "string" && (No(r) || Lo(r)) ? r = parseFloat(r) : !Hh(r) && Ut.test(n) && (r = Bo(e, n)), this.setBaseTarget(e, nt(r) ? r.get() : r)), nt(r) ? r.get() : r;
|
|
7613
7617
|
}
|
|
7614
7618
|
/**
|
|
7615
7619
|
* Set the base target to later animate back to. This is currently
|
|
@@ -7642,7 +7646,7 @@ class Gh {
|
|
|
7642
7646
|
this.events[e] && this.events[e].notify(...n);
|
|
7643
7647
|
}
|
|
7644
7648
|
}
|
|
7645
|
-
class Sa extends
|
|
7649
|
+
class Sa extends Xh {
|
|
7646
7650
|
constructor() {
|
|
7647
7651
|
super(...arguments), this.KeyframeResolver = Go;
|
|
7648
7652
|
}
|
|
@@ -7663,10 +7667,10 @@ class Sa extends Gh {
|
|
|
7663
7667
|
}));
|
|
7664
7668
|
}
|
|
7665
7669
|
}
|
|
7666
|
-
function
|
|
7670
|
+
function Zh(t) {
|
|
7667
7671
|
return window.getComputedStyle(t);
|
|
7668
7672
|
}
|
|
7669
|
-
class
|
|
7673
|
+
class Jh extends Sa {
|
|
7670
7674
|
constructor() {
|
|
7671
7675
|
super(...arguments), this.type = "html", this.renderInstance = lo;
|
|
7672
7676
|
}
|
|
@@ -7675,7 +7679,7 @@ class Hh extends Sa {
|
|
|
7675
7679
|
const i = Ni(n);
|
|
7676
7680
|
return i && i.default || 0;
|
|
7677
7681
|
} else {
|
|
7678
|
-
const i =
|
|
7682
|
+
const i = Zh(e), r = (xi(n) ? i.getPropertyValue(n) : i[n]) || 0;
|
|
7679
7683
|
return typeof r == "string" ? r.trim() : r;
|
|
7680
7684
|
}
|
|
7681
7685
|
}
|
|
@@ -7689,7 +7693,7 @@ class Hh extends Sa {
|
|
|
7689
7693
|
return Ei(e, n, i);
|
|
7690
7694
|
}
|
|
7691
7695
|
}
|
|
7692
|
-
class
|
|
7696
|
+
class Qh extends Sa {
|
|
7693
7697
|
constructor() {
|
|
7694
7698
|
super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox = H, this.updateDimensions = () => {
|
|
7695
7699
|
this.current && !this.renderState.dimensions && ao(this.current, this.renderState);
|
|
@@ -7721,15 +7725,15 @@ class Yh extends Sa {
|
|
|
7721
7725
|
this.isSVGTag = Ai(e.tagName), super.mount(e);
|
|
7722
7726
|
}
|
|
7723
7727
|
}
|
|
7724
|
-
const
|
|
7728
|
+
const tp = (t, e) => Ci(t) ? new Qh(e) : new Jh(e, {
|
|
7725
7729
|
allowProjection: t !== Rs
|
|
7726
|
-
}),
|
|
7727
|
-
...
|
|
7728
|
-
|
|
7729
|
-
...
|
|
7730
|
-
...
|
|
7731
|
-
},
|
|
7732
|
-
function
|
|
7730
|
+
}), ep = /* @__PURE__ */ Au({
|
|
7731
|
+
...Td,
|
|
7732
|
+
...zh,
|
|
7733
|
+
...Lh,
|
|
7734
|
+
...Wh
|
|
7735
|
+
}, tp), np = /* @__PURE__ */ Uc(ep);
|
|
7736
|
+
function ip(t) {
|
|
7733
7737
|
t.values.forEach((e) => e.stop());
|
|
7734
7738
|
}
|
|
7735
7739
|
function li(t, e) {
|
|
@@ -7740,14 +7744,14 @@ function li(t, e) {
|
|
|
7740
7744
|
});
|
|
7741
7745
|
});
|
|
7742
7746
|
}
|
|
7743
|
-
function
|
|
7747
|
+
function rp(t, e) {
|
|
7744
7748
|
if (Array.isArray(e))
|
|
7745
7749
|
return li(t, e);
|
|
7746
7750
|
if (typeof e == "string")
|
|
7747
7751
|
return li(t, [e]);
|
|
7748
7752
|
Ii(t, e);
|
|
7749
7753
|
}
|
|
7750
|
-
function
|
|
7754
|
+
function sp() {
|
|
7751
7755
|
let t = !1;
|
|
7752
7756
|
const e = /* @__PURE__ */ new Set(), n = {
|
|
7753
7757
|
subscribe(i) {
|
|
@@ -7764,12 +7768,12 @@ function tp() {
|
|
|
7764
7768
|
},
|
|
7765
7769
|
set(i) {
|
|
7766
7770
|
return Dt(t, "controls.set() should only be called after a component has mounted. Consider calling within a useEffect hook."), e.forEach((r) => {
|
|
7767
|
-
|
|
7771
|
+
rp(r, i);
|
|
7768
7772
|
});
|
|
7769
7773
|
},
|
|
7770
7774
|
stop() {
|
|
7771
7775
|
e.forEach((i) => {
|
|
7772
|
-
|
|
7776
|
+
ip(i);
|
|
7773
7777
|
});
|
|
7774
7778
|
},
|
|
7775
7779
|
mount() {
|
|
@@ -7780,15 +7784,15 @@ function tp() {
|
|
|
7780
7784
|
};
|
|
7781
7785
|
return n;
|
|
7782
7786
|
}
|
|
7783
|
-
function
|
|
7784
|
-
const t = Gs(
|
|
7787
|
+
function op() {
|
|
7788
|
+
const t = Gs(sp);
|
|
7785
7789
|
return Hs(t.mount, []), t;
|
|
7786
7790
|
}
|
|
7787
|
-
const
|
|
7791
|
+
const ap = op, lp = {
|
|
7788
7792
|
some: 0,
|
|
7789
7793
|
all: 1
|
|
7790
7794
|
};
|
|
7791
|
-
function
|
|
7795
|
+
function cp(t, e, { root: n, margin: i, amount: r = "some" } = {}) {
|
|
7792
7796
|
const o = vo(t), s = /* @__PURE__ */ new WeakMap(), a = (c) => {
|
|
7793
7797
|
c.forEach((u) => {
|
|
7794
7798
|
const f = s.get(u.target);
|
|
@@ -7801,11 +7805,11 @@ function rp(t, e, { root: n, margin: i, amount: r = "some" } = {}) {
|
|
|
7801
7805
|
}, l = new IntersectionObserver(a, {
|
|
7802
7806
|
root: n,
|
|
7803
7807
|
rootMargin: i,
|
|
7804
|
-
threshold: typeof r == "number" ? r :
|
|
7808
|
+
threshold: typeof r == "number" ? r : lp[r]
|
|
7805
7809
|
});
|
|
7806
7810
|
return o.forEach((c) => l.observe(c)), () => l.disconnect();
|
|
7807
7811
|
}
|
|
7808
|
-
function
|
|
7812
|
+
function up(t, { root: e, margin: n, amount: i, once: r = !1, initial: o = !1 } = {}) {
|
|
7809
7813
|
const [s, a] = xt(o);
|
|
7810
7814
|
return ut(() => {
|
|
7811
7815
|
if (!t.current || r && s)
|
|
@@ -7815,11 +7819,11 @@ function sp(t, { root: e, margin: n, amount: i, once: r = !1, initial: o = !1 }
|
|
|
7815
7819
|
margin: n,
|
|
7816
7820
|
amount: i
|
|
7817
7821
|
};
|
|
7818
|
-
return
|
|
7822
|
+
return cp(t.current, l, c);
|
|
7819
7823
|
}, [e, t, n, r, i]), s;
|
|
7820
7824
|
}
|
|
7821
7825
|
var re = /* @__PURE__ */ ((t) => (t[t.Center = 0] = "Center", t[t.Left = 1] = "Left", t[t.Right = 2] = "Right", t))(re || {});
|
|
7822
|
-
const
|
|
7826
|
+
const fp = D.section(
|
|
7823
7827
|
({
|
|
7824
7828
|
styles: t,
|
|
7825
7829
|
theme: {
|
|
@@ -7836,7 +7840,7 @@ const op = D.section(
|
|
|
7836
7840
|
noPaddingTop: d,
|
|
7837
7841
|
noPaddingBottom: h,
|
|
7838
7842
|
backgroundColor: p
|
|
7839
|
-
}) =>
|
|
7843
|
+
}) => W(
|
|
7840
7844
|
{
|
|
7841
7845
|
zIndex: l,
|
|
7842
7846
|
width: "100%",
|
|
@@ -7884,13 +7888,13 @@ const op = D.section(
|
|
|
7884
7888
|
},
|
|
7885
7889
|
t
|
|
7886
7890
|
)
|
|
7887
|
-
),
|
|
7891
|
+
), dp = D(np.div)({
|
|
7888
7892
|
gap: 15,
|
|
7889
7893
|
width: "100%",
|
|
7890
7894
|
display: "flex",
|
|
7891
7895
|
flexDirection: "column",
|
|
7892
7896
|
maxWidth: "var(--max-width)"
|
|
7893
|
-
}),
|
|
7897
|
+
}), hp = {
|
|
7894
7898
|
hidden: {
|
|
7895
7899
|
opacity: 0
|
|
7896
7900
|
},
|
|
@@ -7903,7 +7907,7 @@ const op = D.section(
|
|
|
7903
7907
|
type: "spring"
|
|
7904
7908
|
}
|
|
7905
7909
|
}
|
|
7906
|
-
},
|
|
7910
|
+
}, Xp = ({
|
|
7907
7911
|
children: t,
|
|
7908
7912
|
zIndex: e = 20,
|
|
7909
7913
|
styles: n = {},
|
|
@@ -7916,13 +7920,13 @@ const op = D.section(
|
|
|
7916
7920
|
theme: c = j,
|
|
7917
7921
|
noPaddingBottom: u = !1
|
|
7918
7922
|
}) => {
|
|
7919
|
-
const f =
|
|
7923
|
+
const f = ap(), d = Ma(), h = up(d, {
|
|
7920
7924
|
margin: "0px 0px 0px 0px"
|
|
7921
7925
|
});
|
|
7922
7926
|
return ut(() => {
|
|
7923
7927
|
h && f.start("visible");
|
|
7924
7928
|
}, [f, h]), /* @__PURE__ */ A(
|
|
7925
|
-
|
|
7929
|
+
fp,
|
|
7926
7930
|
{
|
|
7927
7931
|
id: i,
|
|
7928
7932
|
ref: d,
|
|
@@ -7935,16 +7939,16 @@ const op = D.section(
|
|
|
7935
7939
|
noPaddingTop: a,
|
|
7936
7940
|
noPaddingBottom: u,
|
|
7937
7941
|
backgroundColor: l || c.main.backgroundColor,
|
|
7938
|
-
children: /* @__PURE__ */ A(
|
|
7942
|
+
children: /* @__PURE__ */ A(dp, { initial: "hidden", animate: f, variants: hp, children: t })
|
|
7939
7943
|
}
|
|
7940
7944
|
);
|
|
7941
|
-
},
|
|
7945
|
+
}, pp = D.div(
|
|
7942
7946
|
({
|
|
7943
7947
|
styles: t,
|
|
7944
7948
|
theme: {
|
|
7945
7949
|
nav: { gap: e }
|
|
7946
7950
|
}
|
|
7947
|
-
}) =>
|
|
7951
|
+
}) => W(
|
|
7948
7952
|
{
|
|
7949
7953
|
gap: e[0],
|
|
7950
7954
|
display: "flex",
|
|
@@ -7962,13 +7966,13 @@ const op = D.section(
|
|
|
7962
7966
|
},
|
|
7963
7967
|
t
|
|
7964
7968
|
)
|
|
7965
|
-
),
|
|
7969
|
+
), Zp = ({ children: t, styles: e = {}, theme: n = j }) => /* @__PURE__ */ A(pp, { theme: n, styles: e, children: t }), mp = D.div(
|
|
7966
7970
|
({
|
|
7967
7971
|
styles: t,
|
|
7968
7972
|
theme: {
|
|
7969
7973
|
navSocial: { gap: e }
|
|
7970
7974
|
}
|
|
7971
|
-
}) =>
|
|
7975
|
+
}) => W(
|
|
7972
7976
|
{
|
|
7973
7977
|
gap: e[0],
|
|
7974
7978
|
marginLeft: 0,
|
|
@@ -7987,7 +7991,7 @@ const op = D.section(
|
|
|
7987
7991
|
},
|
|
7988
7992
|
t
|
|
7989
7993
|
)
|
|
7990
|
-
),
|
|
7994
|
+
), gp = D.div({
|
|
7991
7995
|
display: "flex",
|
|
7992
7996
|
flexDirection: "row",
|
|
7993
7997
|
a: {
|
|
@@ -8001,16 +8005,16 @@ const op = D.section(
|
|
|
8001
8005
|
}
|
|
8002
8006
|
}
|
|
8003
8007
|
}
|
|
8004
|
-
}),
|
|
8008
|
+
}), Jp = ({ navSocial: t, styles: e = {}, theme: n = j }) => /* @__PURE__ */ A(mp, { theme: n, styles: e, children: t.map(({ name: i, link: r }, o) => {
|
|
8005
8009
|
const s = i[0].toUpperCase() + i.slice(1);
|
|
8006
|
-
return /* @__PURE__ */ A(
|
|
8007
|
-
}) }),
|
|
8010
|
+
return /* @__PURE__ */ A(gp, { children: /* @__PURE__ */ A("a", { target: "_blank", "aria-label": i, href: r, children: /* @__PURE__ */ A(Lt, { theme: n, icon: `social${s}` }) }) }, `navSocialItem-${o}`);
|
|
8011
|
+
}) }), yp = D.div(
|
|
8008
8012
|
({
|
|
8009
8013
|
styles: t,
|
|
8010
8014
|
theme: {
|
|
8011
8015
|
navLegal: { gap: e }
|
|
8012
8016
|
}
|
|
8013
|
-
}) =>
|
|
8017
|
+
}) => W(
|
|
8014
8018
|
{
|
|
8015
8019
|
gap: e[0],
|
|
8016
8020
|
display: "flex",
|
|
@@ -8027,13 +8031,13 @@ const op = D.section(
|
|
|
8027
8031
|
},
|
|
8028
8032
|
t
|
|
8029
8033
|
)
|
|
8030
|
-
),
|
|
8034
|
+
), Qp = ({ children: t, styles: e = {}, theme: n = j }) => /* @__PURE__ */ A(yp, { theme: n, styles: e, children: t }), vp = D.form(
|
|
8031
8035
|
({
|
|
8032
8036
|
styles: t,
|
|
8033
8037
|
theme: {
|
|
8034
8038
|
form: { width: e, padding: n, backgroundColor: i }
|
|
8035
8039
|
}
|
|
8036
|
-
}) =>
|
|
8040
|
+
}) => W(
|
|
8037
8041
|
{
|
|
8038
8042
|
width: "100%",
|
|
8039
8043
|
maxWidth: e,
|
|
@@ -8046,9 +8050,9 @@ const op = D.section(
|
|
|
8046
8050
|
},
|
|
8047
8051
|
t
|
|
8048
8052
|
)
|
|
8049
|
-
),
|
|
8053
|
+
), tm = ({ action: t, children: e, styles: n = {}, theme: i = j }) => /* @__PURE__ */ A(vp, { theme: i, styles: n, action: t, children: e });
|
|
8050
8054
|
var fn = /* @__PURE__ */ ((t) => (t[t.Center = 0] = "Center", t[t.Left = 1] = "Left", t[t.Right = 2] = "Right", t))(fn || {});
|
|
8051
|
-
const
|
|
8055
|
+
const xp = D.div(
|
|
8052
8056
|
({
|
|
8053
8057
|
theme: {
|
|
8054
8058
|
form: {
|
|
@@ -8058,7 +8062,7 @@ const pp = D.div(
|
|
|
8058
8062
|
align: n,
|
|
8059
8063
|
styles: i,
|
|
8060
8064
|
isMessage: r
|
|
8061
|
-
}) =>
|
|
8065
|
+
}) => W(
|
|
8062
8066
|
{
|
|
8063
8067
|
gap: t[0],
|
|
8064
8068
|
display: "flex",
|
|
@@ -8074,7 +8078,7 @@ const pp = D.div(
|
|
|
8074
8078
|
},
|
|
8075
8079
|
i
|
|
8076
8080
|
)
|
|
8077
|
-
),
|
|
8081
|
+
), em = ({ children: t, theme: e = j, styles: n = {}, isActions: i = !1, isMessage: r = !1, align: o = fn.Left }) => /* @__PURE__ */ A(xp, { align: o, theme: e, styles: n, isActions: i, isMessage: r, children: t }), bp = D.input(
|
|
8078
8082
|
({
|
|
8079
8083
|
styles: t,
|
|
8080
8084
|
theme: {
|
|
@@ -8090,7 +8094,7 @@ const pp = D.div(
|
|
|
8090
8094
|
}
|
|
8091
8095
|
}
|
|
8092
8096
|
}
|
|
8093
|
-
}) =>
|
|
8097
|
+
}) => W(
|
|
8094
8098
|
{
|
|
8095
8099
|
color: n,
|
|
8096
8100
|
width: "100%",
|
|
@@ -8120,7 +8124,7 @@ const pp = D.div(
|
|
|
8120
8124
|
)
|
|
8121
8125
|
);
|
|
8122
8126
|
var Ki = /* @__PURE__ */ ((t) => (t.Text = "text", t.Email = "email", t.Search = "search", t.Number = "number", t.Hidden = "hidden", t.Password = "password", t))(Ki || {});
|
|
8123
|
-
const
|
|
8127
|
+
const Sp = ({
|
|
8124
8128
|
name: t,
|
|
8125
8129
|
value: e = "",
|
|
8126
8130
|
styles: n = {},
|
|
@@ -8130,7 +8134,7 @@ const gp = ({
|
|
|
8130
8134
|
theme: s = j,
|
|
8131
8135
|
onChange: a = void 0
|
|
8132
8136
|
}) => /* @__PURE__ */ A(
|
|
8133
|
-
|
|
8137
|
+
bp,
|
|
8134
8138
|
{
|
|
8135
8139
|
type: i,
|
|
8136
8140
|
id: t,
|
|
@@ -8142,7 +8146,7 @@ const gp = ({
|
|
|
8142
8146
|
defaultValue: e,
|
|
8143
8147
|
placeholder: o
|
|
8144
8148
|
}
|
|
8145
|
-
),
|
|
8149
|
+
), wp = D.label(
|
|
8146
8150
|
({
|
|
8147
8151
|
theme: {
|
|
8148
8152
|
form: {
|
|
@@ -8157,11 +8161,11 @@ const gp = ({
|
|
|
8157
8161
|
textAlign: "left",
|
|
8158
8162
|
fontFamily: `var(--font-${e})`
|
|
8159
8163
|
})
|
|
8160
|
-
),
|
|
8164
|
+
), Tp = ({ name: t, label: e, required: n = !1, theme: i = j }) => /* @__PURE__ */ ht(wp, { htmlFor: t, theme: i, children: [
|
|
8161
8165
|
e,
|
|
8162
8166
|
n ? /* @__PURE__ */ A("span", { children: " *" }) : ""
|
|
8163
|
-
] }),
|
|
8164
|
-
({ styles: t }) =>
|
|
8167
|
+
] }), Cp = D.div(
|
|
8168
|
+
({ styles: t }) => W(
|
|
8165
8169
|
{
|
|
8166
8170
|
width: "100%",
|
|
8167
8171
|
display: "flex",
|
|
@@ -8171,11 +8175,11 @@ const gp = ({
|
|
|
8171
8175
|
},
|
|
8172
8176
|
t
|
|
8173
8177
|
)
|
|
8174
|
-
),
|
|
8178
|
+
), Pp = D.div({
|
|
8175
8179
|
paddingTop: 5,
|
|
8176
8180
|
textAlign: "left",
|
|
8177
8181
|
fontStyle: "italic"
|
|
8178
|
-
}),
|
|
8182
|
+
}), Ap = D.span(
|
|
8179
8183
|
({
|
|
8180
8184
|
theme: {
|
|
8181
8185
|
form: {
|
|
@@ -8188,7 +8192,7 @@ const gp = ({
|
|
|
8188
8192
|
fontSize: "0.875rem",
|
|
8189
8193
|
marginTop: "0.25rem"
|
|
8190
8194
|
})
|
|
8191
|
-
),
|
|
8195
|
+
), Vp = D.textarea(
|
|
8192
8196
|
({
|
|
8193
8197
|
styles: t,
|
|
8194
8198
|
theme: {
|
|
@@ -8204,7 +8208,7 @@ const gp = ({
|
|
|
8204
8208
|
}
|
|
8205
8209
|
}
|
|
8206
8210
|
}
|
|
8207
|
-
}) =>
|
|
8211
|
+
}) => W(
|
|
8208
8212
|
{
|
|
8209
8213
|
color: n,
|
|
8210
8214
|
width: "100%",
|
|
@@ -8232,7 +8236,7 @@ const gp = ({
|
|
|
8232
8236
|
},
|
|
8233
8237
|
t
|
|
8234
8238
|
)
|
|
8235
|
-
),
|
|
8239
|
+
), Ep = ({
|
|
8236
8240
|
name: t,
|
|
8237
8241
|
value: e,
|
|
8238
8242
|
rows: n = 2,
|
|
@@ -8242,7 +8246,7 @@ const gp = ({
|
|
|
8242
8246
|
onChange: s = void 0,
|
|
8243
8247
|
theme: a = j
|
|
8244
8248
|
}) => /* @__PURE__ */ A(
|
|
8245
|
-
|
|
8249
|
+
Vp,
|
|
8246
8250
|
{
|
|
8247
8251
|
id: t,
|
|
8248
8252
|
name: t,
|
|
@@ -8256,7 +8260,7 @@ const gp = ({
|
|
|
8256
8260
|
}
|
|
8257
8261
|
);
|
|
8258
8262
|
var wa = /* @__PURE__ */ ((t) => (t.Textarea = "textarea", t))(wa || {});
|
|
8259
|
-
const
|
|
8263
|
+
const nm = ({
|
|
8260
8264
|
name: t,
|
|
8261
8265
|
label: e = "",
|
|
8262
8266
|
value: n = "",
|
|
@@ -8269,17 +8273,17 @@ const Zp = ({
|
|
|
8269
8273
|
theme: c = j,
|
|
8270
8274
|
onChange: u = void 0,
|
|
8271
8275
|
type: f = Ki.Text
|
|
8272
|
-
}) => /* @__PURE__ */ ht(
|
|
8273
|
-
e && /* @__PURE__ */ A(
|
|
8274
|
-
f === wa.Textarea ? /* @__PURE__ */ A(
|
|
8275
|
-
l && /* @__PURE__ */ A(
|
|
8276
|
-
] }),
|
|
8276
|
+
}) => /* @__PURE__ */ ht(Cp, { styles: i, children: [
|
|
8277
|
+
e && /* @__PURE__ */ A(Tp, { theme: c, label: e, name: t, required: o }),
|
|
8278
|
+
f === wa.Textarea ? /* @__PURE__ */ A(Ep, { value: n, rows: r, name: t, theme: c, onChange: u, disabled: s, placeholder: a }) : /* @__PURE__ */ A(Sp, { value: n, type: f, name: t, theme: c, onChange: u, disabled: s, placeholder: a }),
|
|
8279
|
+
l && /* @__PURE__ */ A(Pp, { children: l instanceof Array ? l.map((d, h) => /* @__PURE__ */ A(Ap, { theme: c, children: d }, h)) : l })
|
|
8280
|
+
] }), Rp = D.div(
|
|
8277
8281
|
({
|
|
8278
8282
|
styles: t,
|
|
8279
8283
|
theme: {
|
|
8280
8284
|
consentCookie: { overlayBlur: e, overlayOpacity: n, overlayBackgroundColor: i }
|
|
8281
8285
|
}
|
|
8282
|
-
}) =>
|
|
8286
|
+
}) => W(
|
|
8283
8287
|
{
|
|
8284
8288
|
zIndex: 100,
|
|
8285
8289
|
position: "fixed",
|
|
@@ -8297,7 +8301,7 @@ const Zp = ({
|
|
|
8297
8301
|
},
|
|
8298
8302
|
t
|
|
8299
8303
|
)
|
|
8300
|
-
),
|
|
8304
|
+
), Mp = D.div(
|
|
8301
8305
|
({
|
|
8302
8306
|
theme: {
|
|
8303
8307
|
consentCookie: { width: t, borders: e, borderRadius: n, backgroundColor: i, paddingTop: r, paddingLeft: o, paddingRight: s, paddingBottom: a }
|
|
@@ -8339,7 +8343,7 @@ const Zp = ({
|
|
|
8339
8343
|
paddingBottom: a[3]
|
|
8340
8344
|
}
|
|
8341
8345
|
})
|
|
8342
|
-
),
|
|
8346
|
+
), Dp = D.div(
|
|
8343
8347
|
({
|
|
8344
8348
|
theme: {
|
|
8345
8349
|
consentCookie: { actionsGap: t, actionsPaddingTop: e }
|
|
@@ -8362,7 +8366,7 @@ const Zp = ({
|
|
|
8362
8366
|
}
|
|
8363
8367
|
})
|
|
8364
8368
|
);
|
|
8365
|
-
function
|
|
8369
|
+
function Lp(t) {
|
|
8366
8370
|
const e = t + "=", i = decodeURIComponent(document.cookie).split(";");
|
|
8367
8371
|
for (let r = 0; r < i.length; r++) {
|
|
8368
8372
|
let o = i[r];
|
|
@@ -8373,13 +8377,13 @@ function Vp(t) {
|
|
|
8373
8377
|
}
|
|
8374
8378
|
return "";
|
|
8375
8379
|
}
|
|
8376
|
-
function
|
|
8380
|
+
function Op(t, e, n) {
|
|
8377
8381
|
const i = /* @__PURE__ */ new Date();
|
|
8378
8382
|
i.setTime(i.getTime() + n * 24 * 60 * 60 * 1e3);
|
|
8379
8383
|
const r = "expires=" + i.toUTCString();
|
|
8380
8384
|
document.cookie = t + "=" + e + ";" + r + ";path=/";
|
|
8381
8385
|
}
|
|
8382
|
-
const
|
|
8386
|
+
const im = ({
|
|
8383
8387
|
styles: t = {},
|
|
8384
8388
|
children: e = void 0,
|
|
8385
8389
|
theme: n = j,
|
|
@@ -8388,56 +8392,56 @@ const Jp = ({
|
|
|
8388
8392
|
cookieExpirationDays: o = 365
|
|
8389
8393
|
}) => {
|
|
8390
8394
|
const [s, a] = xt(!1), l = (c) => {
|
|
8391
|
-
a(!1),
|
|
8395
|
+
a(!1), Op(i, `${c}`, o);
|
|
8392
8396
|
};
|
|
8393
8397
|
return ut(() => {
|
|
8394
|
-
const c =
|
|
8398
|
+
const c = Lp(i), u = c !== "true" && c !== "false", f = c === "true";
|
|
8395
8399
|
u && a(!0);
|
|
8396
8400
|
const d = f ? "granted" : "denied";
|
|
8397
8401
|
typeof window.gtag < "u" && window.gtag("consent", "update", {
|
|
8398
8402
|
analytics_storage: d
|
|
8399
8403
|
});
|
|
8400
|
-
}, [s]), s ? /* @__PURE__ */ A(
|
|
8404
|
+
}, [s]), s ? /* @__PURE__ */ A(Rp, { theme: n, styles: t, children: /* @__PURE__ */ ht(Mp, { theme: n, children: [
|
|
8401
8405
|
e,
|
|
8402
|
-
/* @__PURE__ */ ht(
|
|
8406
|
+
/* @__PURE__ */ ht(Dp, { theme: n, children: [
|
|
8403
8407
|
/* @__PURE__ */ A(sr, { onClick: () => l(!1), children: (r == null ? void 0 : r.actions.reject) || "Reject" }),
|
|
8404
8408
|
/* @__PURE__ */ A(sr, { onClick: () => l(!0), children: (r == null ? void 0 : r.actions.accept) || "Accept" })
|
|
8405
8409
|
] })
|
|
8406
8410
|
] }) }) : null;
|
|
8407
8411
|
};
|
|
8408
8412
|
export {
|
|
8409
|
-
|
|
8413
|
+
$p as Actions,
|
|
8410
8414
|
be as ActionsAlign,
|
|
8411
8415
|
sr as Button,
|
|
8412
8416
|
Ze as ButtonSize,
|
|
8413
8417
|
Wn as ButtonStyle,
|
|
8414
8418
|
Us as ButtonType,
|
|
8415
8419
|
zn as ButtonVariant,
|
|
8416
|
-
|
|
8417
|
-
|
|
8420
|
+
_p as Carousel,
|
|
8421
|
+
Hp as Columns,
|
|
8418
8422
|
Se as ColumnsAlign,
|
|
8419
|
-
|
|
8420
|
-
|
|
8421
|
-
|
|
8422
|
-
|
|
8423
|
+
im as ConsentCookie,
|
|
8424
|
+
Kp as Footer,
|
|
8425
|
+
tm as Form,
|
|
8426
|
+
em as FormRow,
|
|
8423
8427
|
fn as FormRowAlign,
|
|
8424
|
-
|
|
8428
|
+
Gp as Header,
|
|
8425
8429
|
Lt as Icon,
|
|
8426
8430
|
Ki as InputType,
|
|
8427
|
-
|
|
8428
|
-
|
|
8429
|
-
|
|
8430
|
-
|
|
8431
|
-
|
|
8432
|
-
|
|
8433
|
-
|
|
8434
|
-
|
|
8435
|
-
|
|
8436
|
-
|
|
8437
|
-
|
|
8438
|
-
|
|
8439
|
-
|
|
8431
|
+
Np as KeyNumber,
|
|
8432
|
+
zp as LanguageSwitcher,
|
|
8433
|
+
jp as Logo,
|
|
8434
|
+
Wp as Main,
|
|
8435
|
+
Bp as Modal,
|
|
8436
|
+
Zp as Nav,
|
|
8437
|
+
Qp as NavLegal,
|
|
8438
|
+
Jp as NavSocial,
|
|
8439
|
+
Xp as Section,
|
|
8440
|
+
nm as TextField,
|
|
8441
|
+
Sp as TextFieldInput,
|
|
8442
|
+
Tp as TextFieldLabel,
|
|
8443
|
+
Ep as TextFieldTextarea,
|
|
8440
8444
|
wa as TextareaType,
|
|
8441
8445
|
Kl as Video,
|
|
8442
|
-
|
|
8446
|
+
Up as VideoFullWidth
|
|
8443
8447
|
};
|