@janbox/storefront-builder 2.0.6 → 2.0.7
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/{countdown-timer.inspector-Cq9Uz0iw.js → countdown-timer.inspector-DEhYueYx.js} +2880 -2975
- package/dist/{dataset-aA5lHdqQ.js → dataset-DToMsct-.js} +561 -562
- package/dist/editor/toolbars/index.d.ts +0 -1
- package/dist/editor.js +21 -22
- package/dist/index-D8gzgG22.js +4 -0
- package/dist/index.js +4 -4
- package/dist/templates.js +1 -1
- package/dist/{tooltip-BYPVx_WW.js → tooltip-Dw5U2fSJ.js} +1 -1
- package/package.json +1 -1
- package/dist/editor/toolbars/spacing/index.d.ts +0 -2
- package/dist/editor/toolbars/spacing/spacing.d.ts +0 -2
- package/dist/editor/toolbars/spacing/types.d.ts +0 -15
- package/dist/index-XAc6QDYo.js +0 -4
|
@@ -17,10 +17,9 @@ import "react-datepicker/dist/react-datepicker.css";
|
|
|
17
17
|
import "react-datepicker";
|
|
18
18
|
import { useEditor as dl, useNode as O } from "@craftjs/core";
|
|
19
19
|
import { jsx as Mt, Fragment as fl, jsxs as hl } from "react/jsx-runtime";
|
|
20
|
-
import {
|
|
21
|
-
import { Button as us, Grid as ml, Cell as gl, Link as vl, Flexbox as yl, FlexItem as bl, Text as ke, Image as Tl, Marquee as xl, MarqueeDataAttributes as wl, AccordionContent as Cl, AccordionGroup as Al, Accordion as Sl, AccordionSummary as El, Box as Pl, Container as Rl, CountdownTimer as Dl, Primitive as bi, Icon as kl, ListItem as Ml, MarqueeItem as Vl, Swiper as _l, SwiperSlide as Il, TabContent as Ol, TabList as Ll, Tab as Nl, TabPanel as Fl, Tabs as Bl, UnorderedList as jl, Video as Ul } from "@janbox/storefront-ui";
|
|
20
|
+
import { Button as us, Grid as pl, Cell as ml, Link as gl, Flexbox as vl, FlexItem as yl, Text as ke, Image as bl, Marquee as Tl, MarqueeDataAttributes as xl, AccordionContent as wl, AccordionGroup as Cl, Accordion as Al, AccordionSummary as Sl, Box as El, Container as Pl, CountdownTimer as Rl, Primitive as bi, Icon as Dl, ListItem as kl, MarqueeItem as Ml, Swiper as Vl, SwiperSlide as _l, TabContent as Il, TabList as Ol, Tab as Ll, TabPanel as Nl, Tabs as Fl, UnorderedList as Bl, Video as jl } from "@janbox/storefront-ui";
|
|
22
21
|
var E = /* @__PURE__ */ ((t) => (t.Root = "root", t.Unknown = "unknown", t.Box = "box", t.Paragraph = "paragraph", t.Heading = "heading", t.Image = "image", t.Button = "button", t.IconButton = "icon-button", t.Link = "link", t.Video = "video", t.Grid = "grid", t.Cell = "cell", t.Flexbox = "flexbox", t.FlexItem = "flex-item", t.UnorderedList = "unordered-list", t.ListItem = "list-item", t.Swiper = "swiper", t.SwiperSlide = "swiper-slide", t.Icon = "icon", t.Tabs = "tabs", t.TabList = "tab-list", t.Tab = "tab", t.TabContent = "tab-content", t.TabPanel = "tab-panel", t.Marquee = "marquee", t.MarqueeItem = "marquee-item", t.AccordionGroup = "accordion-group", t.Accordion = "accordion", t.AccordionSummary = "accordion-summary", t.AccordionContent = "accordion-content", t.Container = "container", t.CountdownTimer = "countdown-timer", t))(E || {}), gt = /* @__PURE__ */ ((t) => (t.DATA_NODE_ID = "data-node-id", t.DATA_NODE_EDITABLE = "data-node-editable", t.DATA_NODE_SELECTABLE = "data-node-selectable", t.DATA_NODE_NAME = "data-node-name", t.DATA_NODE_RESOLVED = "data-node-resolved", t.DATA_NODE_INDICATOR_ERROR = "data-node-indicator-error", t.DATA_NODE_INDICATOR_TARGET = "data-node-indicator-target", t.DATA_NODE_DROP_TARGET = "data-node-drop-target", t.DATA_NODE_DROP_TARGET_ERROR = "data-node-drop-target-error", t))(gt || {}), ds = /* @__PURE__ */ ((t) => (t.True = "true", t.False = "false", t))(ds || {});
|
|
23
|
-
function
|
|
22
|
+
function Ul(t) {
|
|
24
23
|
return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t;
|
|
25
24
|
}
|
|
26
25
|
var Xt = {}, _t = {}, Te = {}, mt = {}, St = {}, Ye = {}, Ti;
|
|
@@ -473,7 +472,7 @@ function hs() {
|
|
|
473
472
|
})(St)), St;
|
|
474
473
|
}
|
|
475
474
|
var Ze = {}, Ai;
|
|
476
|
-
function
|
|
475
|
+
function Wl() {
|
|
477
476
|
return Ai || (Ai = 1, (function(t) {
|
|
478
477
|
Object.defineProperty(t, "__esModule", { value: !0 }), t.CARRIAGE_RETURN_PLACEHOLDER_REGEX = t.CARRIAGE_RETURN_PLACEHOLDER = t.CARRIAGE_RETURN_REGEX = t.CARRIAGE_RETURN = t.CASE_SENSITIVE_TAG_NAMES_MAP = t.CASE_SENSITIVE_TAG_NAMES = void 0, t.CASE_SENSITIVE_TAG_NAMES = [
|
|
479
478
|
"animateMotion",
|
|
@@ -516,7 +515,7 @@ var Si;
|
|
|
516
515
|
function ps() {
|
|
517
516
|
if (Si) return mt;
|
|
518
517
|
Si = 1, Object.defineProperty(mt, "__esModule", { value: !0 }), mt.formatAttributes = i, mt.hasOpenTag = o, mt.escapeSpecialCharacters = s, mt.revertEscapedCharacters = a, mt.formatDOM = l;
|
|
519
|
-
var t = /* @__PURE__ */ hs(), e =
|
|
518
|
+
var t = /* @__PURE__ */ hs(), e = Wl();
|
|
520
519
|
function n(c) {
|
|
521
520
|
return e.CASE_SENSITIVE_TAG_NAMES_MAP[c];
|
|
522
521
|
}
|
|
@@ -578,7 +577,7 @@ function ps() {
|
|
|
578
577
|
return mt;
|
|
579
578
|
}
|
|
580
579
|
var Ei;
|
|
581
|
-
function
|
|
580
|
+
function Hl() {
|
|
582
581
|
if (Ei) return Te;
|
|
583
582
|
Ei = 1, Object.defineProperty(Te, "__esModule", { value: !0 }), Te.default = T;
|
|
584
583
|
var t = ps(), e = "html", n = "head", i = "body", r = /<([a-zA-Z]+[0-9]?)/, o = function(y, v) {
|
|
@@ -646,14 +645,14 @@ function Gl() {
|
|
|
646
645
|
return Te;
|
|
647
646
|
}
|
|
648
647
|
var Pi;
|
|
649
|
-
function
|
|
648
|
+
function Gl() {
|
|
650
649
|
if (Pi) return _t;
|
|
651
650
|
Pi = 1;
|
|
652
651
|
var t = _t && _t.__importDefault || function(o) {
|
|
653
652
|
return o && o.__esModule ? o : { default: o };
|
|
654
653
|
};
|
|
655
654
|
Object.defineProperty(_t, "__esModule", { value: !0 }), _t.default = r;
|
|
656
|
-
var e = t(
|
|
655
|
+
var e = t(Hl()), n = ps(), i = /<(![a-zA-Z\s]+)>/;
|
|
657
656
|
function r(o) {
|
|
658
657
|
if (typeof o != "string")
|
|
659
658
|
throw new TypeError("First argument must be a string");
|
|
@@ -665,7 +664,7 @@ function $l() {
|
|
|
665
664
|
return _t;
|
|
666
665
|
}
|
|
667
666
|
var xe = {}, et = {}, Yt = {}, Ri;
|
|
668
|
-
function
|
|
667
|
+
function $l() {
|
|
669
668
|
if (Ri) return Yt;
|
|
670
669
|
Ri = 1;
|
|
671
670
|
var t = 0;
|
|
@@ -1158,7 +1157,7 @@ function zl() {
|
|
|
1158
1157
|
}, Yt;
|
|
1159
1158
|
}
|
|
1160
1159
|
var Di;
|
|
1161
|
-
function
|
|
1160
|
+
function zl() {
|
|
1162
1161
|
if (Di) return et;
|
|
1163
1162
|
Di = 1;
|
|
1164
1163
|
const t = 0, e = 1, n = 2, i = 3, r = 4, o = 5, s = 6;
|
|
@@ -1564,7 +1563,7 @@ function ql() {
|
|
|
1564
1563
|
CAMELCASE: T,
|
|
1565
1564
|
SAME: y,
|
|
1566
1565
|
possibleStandardNames: v
|
|
1567
|
-
} =
|
|
1566
|
+
} = $l(), C = ":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD" + "\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040", A = RegExp.prototype.test.bind(
|
|
1568
1567
|
// eslint-disable-next-line no-misleading-character-class
|
|
1569
1568
|
new RegExp("^(data|aria)-[" + C + "]*$")
|
|
1570
1569
|
), S = Object.keys(
|
|
@@ -1576,7 +1575,7 @@ function ql() {
|
|
|
1576
1575
|
return et.BOOLEAN = i, et.BOOLEANISH_STRING = n, et.NUMERIC = o, et.OVERLOADED_BOOLEAN = r, et.POSITIVE_NUMERIC = s, et.RESERVED = t, et.STRING = e, et.getPropertyInfo = a, et.isCustomAttribute = A, et.possibleStandardNames = S, et;
|
|
1577
1576
|
}
|
|
1578
1577
|
var Zt = {}, It = {}, Je, ki;
|
|
1579
|
-
function
|
|
1578
|
+
function ql() {
|
|
1580
1579
|
if (ki) return Je;
|
|
1581
1580
|
ki = 1;
|
|
1582
1581
|
var t = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, e = /\n/g, n = /^\s*/, i = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/, r = /^:\s*/, o = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/, s = /^[;\s]*/, a = /^\s+|\s+$/g, l = `
|
|
@@ -1666,14 +1665,14 @@ function Kl() {
|
|
|
1666
1665
|
return Je = T, Je;
|
|
1667
1666
|
}
|
|
1668
1667
|
var Mi;
|
|
1669
|
-
function
|
|
1668
|
+
function Kl() {
|
|
1670
1669
|
if (Mi) return It;
|
|
1671
1670
|
Mi = 1;
|
|
1672
1671
|
var t = It && It.__importDefault || function(i) {
|
|
1673
1672
|
return i && i.__esModule ? i : { default: i };
|
|
1674
1673
|
};
|
|
1675
1674
|
Object.defineProperty(It, "__esModule", { value: !0 }), It.default = n;
|
|
1676
|
-
const e = t(
|
|
1675
|
+
const e = t(ql());
|
|
1677
1676
|
function n(i, r) {
|
|
1678
1677
|
let o = null;
|
|
1679
1678
|
if (!i || typeof i != "string")
|
|
@@ -1689,7 +1688,7 @@ function Xl() {
|
|
|
1689
1688
|
return It;
|
|
1690
1689
|
}
|
|
1691
1690
|
var Jt = {}, Vi;
|
|
1692
|
-
function
|
|
1691
|
+
function Xl() {
|
|
1693
1692
|
if (Vi) return Jt;
|
|
1694
1693
|
Vi = 1, Object.defineProperty(Jt, "__esModule", { value: !0 }), Jt.camelCase = void 0;
|
|
1695
1694
|
var t = /^--[a-zA-Z0-9_-]+$/, e = /-([a-z])/g, n = /^[^-]+$/, i = /^-(webkit|moz|ms|o|khtml)-/, r = /^-(ms)-/, o = function(c) {
|
|
@@ -1704,12 +1703,12 @@ function Yl() {
|
|
|
1704
1703
|
return Jt.camelCase = l, Jt;
|
|
1705
1704
|
}
|
|
1706
1705
|
var Qt, _i;
|
|
1707
|
-
function
|
|
1706
|
+
function Yl() {
|
|
1708
1707
|
if (_i) return Qt;
|
|
1709
1708
|
_i = 1;
|
|
1710
1709
|
var t = Qt && Qt.__importDefault || function(r) {
|
|
1711
1710
|
return r && r.__esModule ? r : { default: r };
|
|
1712
|
-
}, e = t(
|
|
1711
|
+
}, e = t(Kl()), n = Xl();
|
|
1713
1712
|
function i(r, o) {
|
|
1714
1713
|
var s = {};
|
|
1715
1714
|
return !r || typeof r != "string" || (0, e.default)(r, function(a, l) {
|
|
@@ -1725,7 +1724,7 @@ function ms() {
|
|
|
1725
1724
|
return u && u.__esModule ? u : { default: u };
|
|
1726
1725
|
};
|
|
1727
1726
|
Object.defineProperty(t, "__esModule", { value: !0 }), t.returnFirstArg = t.canTextBeChildOfNode = t.ELEMENTS_WITH_NO_TEXT_CHILDREN = t.PRESERVE_CUSTOM_ATTRIBUTES = void 0, t.isCustomComponent = o, t.setStyleProp = a;
|
|
1728
|
-
var n = rs, i = e(
|
|
1727
|
+
var n = rs, i = e(Yl()), r = /* @__PURE__ */ new Set([
|
|
1729
1728
|
"annotation-xml",
|
|
1730
1729
|
"color-profile",
|
|
1731
1730
|
"font-face",
|
|
@@ -1779,7 +1778,7 @@ var Oi;
|
|
|
1779
1778
|
function gs() {
|
|
1780
1779
|
if (Oi) return xe;
|
|
1781
1780
|
Oi = 1, Object.defineProperty(xe, "__esModule", { value: !0 }), xe.default = o;
|
|
1782
|
-
var t =
|
|
1781
|
+
var t = zl(), e = ms(), n = ["checked", "value"], i = ["input", "select", "textarea"], r = {
|
|
1783
1782
|
reset: !0,
|
|
1784
1783
|
submit: !0
|
|
1785
1784
|
};
|
|
@@ -1815,7 +1814,7 @@ function gs() {
|
|
|
1815
1814
|
return xe;
|
|
1816
1815
|
}
|
|
1817
1816
|
var Ot = {}, Li;
|
|
1818
|
-
function
|
|
1817
|
+
function Zl() {
|
|
1819
1818
|
if (Li) return Ot;
|
|
1820
1819
|
Li = 1;
|
|
1821
1820
|
var t = Ot && Ot.__importDefault || function(a) {
|
|
@@ -1875,17 +1874,17 @@ function Jl() {
|
|
|
1875
1874
|
return Ot;
|
|
1876
1875
|
}
|
|
1877
1876
|
var Ni;
|
|
1878
|
-
function
|
|
1877
|
+
function Jl() {
|
|
1879
1878
|
return Ni || (Ni = 1, (function(t) {
|
|
1880
1879
|
var e = Xt && Xt.__importDefault || function(l) {
|
|
1881
1880
|
return l && l.__esModule ? l : { default: l };
|
|
1882
1881
|
};
|
|
1883
1882
|
Object.defineProperty(t, "__esModule", { value: !0 }), t.htmlToDOM = t.domToReact = t.attributesToProps = t.Text = t.ProcessingInstruction = t.Element = t.Comment = void 0, t.default = a;
|
|
1884
|
-
var n = e(
|
|
1883
|
+
var n = e(Gl());
|
|
1885
1884
|
t.htmlToDOM = n.default;
|
|
1886
1885
|
var i = e(gs());
|
|
1887
1886
|
t.attributesToProps = i.default;
|
|
1888
|
-
var r = e(
|
|
1887
|
+
var r = e(Zl());
|
|
1889
1888
|
t.domToReact = r.default;
|
|
1890
1889
|
var o = /* @__PURE__ */ hs();
|
|
1891
1890
|
Object.defineProperty(t, "Comment", { enumerable: !0, get: function() {
|
|
@@ -1906,13 +1905,13 @@ function Ql() {
|
|
|
1906
1905
|
}
|
|
1907
1906
|
})(Xt)), Xt;
|
|
1908
1907
|
}
|
|
1909
|
-
var
|
|
1910
|
-
const Fi = /* @__PURE__ */
|
|
1908
|
+
var Ql = Jl();
|
|
1909
|
+
const Fi = /* @__PURE__ */ Ul(Ql), tc = Fi.default || Fi, bp = (t, e = "int", n = ",") => {
|
|
1911
1910
|
const r = (e === "int" ? ol : parseFloat)((t ?? "").toString().trim().replaceAll(n, ""));
|
|
1912
1911
|
return isNaN(r) ? void 0 : r;
|
|
1913
1912
|
};
|
|
1914
|
-
function
|
|
1915
|
-
const n = (s) => `${s}-${e}`, r =
|
|
1913
|
+
function ec(t, e) {
|
|
1914
|
+
const n = (s) => `${s}-${e}`, r = tc(t, {
|
|
1916
1915
|
replace(s) {
|
|
1917
1916
|
if (s.type === "tag" && "attribs" in s && s.attribs) {
|
|
1918
1917
|
const a = s;
|
|
@@ -1946,13 +1945,13 @@ function nc(t, e) {
|
|
|
1946
1945
|
});
|
|
1947
1946
|
return Gt(r) && r.type === "svg" ? r : null;
|
|
1948
1947
|
}
|
|
1949
|
-
const vs = (t) => t.info ?? {}, ys = (t) => t.data?.custom ?? {},
|
|
1948
|
+
const vs = (t) => t.info ?? {}, ys = (t) => t.data?.custom ?? {}, nc = (t) => {
|
|
1950
1949
|
const e = ys(t);
|
|
1951
1950
|
if (pn(e.displayName))
|
|
1952
1951
|
return e.displayName;
|
|
1953
1952
|
const n = vs(t);
|
|
1954
1953
|
return pn(n.displayName) ? n.displayName : n.displayName?.(t.data.props) ?? t.data.displayName;
|
|
1955
|
-
}, wt = (t) => t.data.displayName,
|
|
1954
|
+
}, wt = (t) => t.data.displayName, Tp = (t) => t.related ?? {}, ic = (t) => ys(t).selectable ?? vs(t).selectable ?? !0, xp = (t, e) => {
|
|
1956
1955
|
try {
|
|
1957
1956
|
t.craft && (t.craft = {
|
|
1958
1957
|
...t.craft,
|
|
@@ -1964,7 +1963,7 @@ const vs = (t) => t.info ?? {}, ys = (t) => t.data?.custom ?? {}, ic = (t) => {
|
|
|
1964
1963
|
} catch (n) {
|
|
1965
1964
|
console.error(`Error setting related for ${t.craft?.displayName}`, n);
|
|
1966
1965
|
}
|
|
1967
|
-
},
|
|
1966
|
+
}, wp = (t, e = "xs") => e === "xs" ? t : { [e]: t }, L = (t, e) => {
|
|
1968
1967
|
const { resolved: n, ...i } = e;
|
|
1969
1968
|
return t.craft = {
|
|
1970
1969
|
displayName: n,
|
|
@@ -2017,8 +2016,8 @@ const vs = (t) => t.info ?? {}, ys = (t) => t.data?.custom ?? {}, ic = (t) => {
|
|
|
2017
2016
|
enabled: c.options.enabled,
|
|
2018
2017
|
indicator: c.indicator
|
|
2019
2018
|
})), { id: i, selectable: r, displayName: o, resolvedId: s } = O((c) => ({
|
|
2020
|
-
selectable:
|
|
2021
|
-
displayName:
|
|
2019
|
+
selectable: ic(c),
|
|
2020
|
+
displayName: nc(c),
|
|
2022
2021
|
resolvedId: wt(c)
|
|
2023
2022
|
}));
|
|
2024
2023
|
if (!e) return {};
|
|
@@ -2065,7 +2064,7 @@ L(bs, {
|
|
|
2065
2064
|
displayName: "Root"
|
|
2066
2065
|
}
|
|
2067
2066
|
});
|
|
2068
|
-
const
|
|
2067
|
+
const rc = {
|
|
2069
2068
|
light: "#f9f9f9",
|
|
2070
2069
|
red: {
|
|
2071
2070
|
"4s": "#ff7875",
|
|
@@ -2096,7 +2095,7 @@ const sc = {
|
|
|
2096
2095
|
xs: { fontSize: "0.75rem", lineHeight: "1rem" },
|
|
2097
2096
|
sm: { fontSize: "0.875rem", lineHeight: "1.25rem" },
|
|
2098
2097
|
base: { fontSize: "1rem", lineHeight: "1.5rem" }
|
|
2099
|
-
}, R = { palette:
|
|
2098
|
+
}, R = { palette: rc, text: Nn }, Ts = () => {
|
|
2100
2099
|
const { enabled: t, actions: e } = Ct((r) => ({
|
|
2101
2100
|
enabled: r.options.enabled
|
|
2102
2101
|
})), { id: n } = O(), i = () => {
|
|
@@ -2140,7 +2139,7 @@ L(Ts, {
|
|
|
2140
2139
|
const xs = (t) => {
|
|
2141
2140
|
const { connectors: e } = O(), n = F();
|
|
2142
2141
|
return /* @__PURE__ */ g(
|
|
2143
|
-
|
|
2142
|
+
pl,
|
|
2144
2143
|
{
|
|
2145
2144
|
...t,
|
|
2146
2145
|
ref: (i) => {
|
|
@@ -2160,7 +2159,7 @@ L(xs, {
|
|
|
2160
2159
|
displayName: "Grid"
|
|
2161
2160
|
}
|
|
2162
2161
|
});
|
|
2163
|
-
const
|
|
2162
|
+
const sc = () => {
|
|
2164
2163
|
let t;
|
|
2165
2164
|
const e = /* @__PURE__ */ new Set();
|
|
2166
2165
|
return { getSnapshot: () => {
|
|
@@ -2174,12 +2173,12 @@ const oc = () => {
|
|
|
2174
2173
|
throw new Error("useEditor must be initialized before setState.");
|
|
2175
2174
|
t = { ...t, ...s }, e.forEach((a) => a());
|
|
2176
2175
|
} };
|
|
2177
|
-
}, we =
|
|
2176
|
+
}, we = sc();
|
|
2178
2177
|
let Bi = !1;
|
|
2179
2178
|
const Fn = (t) => (t && !Bi && (Bi = !0, we.initialize(t)), {
|
|
2180
2179
|
...Oa(we.subscribe, we.getSnapshot),
|
|
2181
2180
|
setState: we.setState
|
|
2182
|
-
}),
|
|
2181
|
+
}), oc = La(() => import("./index-D8gzgG22.js").then((t) => ({ default: t.WbTooltip }))), ac = q(
|
|
2183
2182
|
({ tooltip: t, size: e = "24", className: n, type: i = "button", isHighlighted: r, ...o }, s) => {
|
|
2184
2183
|
const a = {
|
|
2185
2184
|
width: Number(e),
|
|
@@ -2206,10 +2205,10 @@ const Fn = (t) => (t && !Bi && (Bi = !0, we.initialize(t)), {
|
|
|
2206
2205
|
ref: s
|
|
2207
2206
|
}
|
|
2208
2207
|
);
|
|
2209
|
-
return J(t) ? l : /* @__PURE__ */ g(Na, { fallback: l, children: /* @__PURE__ */ g(
|
|
2208
|
+
return J(t) ? l : /* @__PURE__ */ g(Na, { fallback: l, children: /* @__PURE__ */ g(oc, { ...t, children: l }) });
|
|
2210
2209
|
}
|
|
2211
2210
|
), ws = q(({ source: t, ...e }, n) => {
|
|
2212
|
-
const i = Be(), r = st(() =>
|
|
2211
|
+
const i = Be(), r = st(() => ec(t, i), [t, i]);
|
|
2213
2212
|
return /* @__PURE__ */ g(yt, { children: !!r && In(r, {
|
|
2214
2213
|
...e,
|
|
2215
2214
|
ref: n
|
|
@@ -2224,10 +2223,10 @@ const Fn = (t) => (t && !Bi && (Bi = !0, we.initialize(t)), {
|
|
|
2224
2223
|
<path d="M21 12H19.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
2225
2224
|
<path d="M18.36 18.3597L17.83 17.8297" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
2226
2225
|
</svg>
|
|
2227
|
-
`,
|
|
2226
|
+
`, lc = ls`
|
|
2228
2227
|
from { transform: rotate(0deg); }
|
|
2229
2228
|
to { transform: rotate(360deg); }
|
|
2230
|
-
`,
|
|
2229
|
+
`, Cp = q(
|
|
2231
2230
|
({
|
|
2232
2231
|
size: t = "32",
|
|
2233
2232
|
variant: e = "contained",
|
|
@@ -2287,7 +2286,7 @@ const Fn = (t) => (t && !Bi && (Bi = !0, we.initialize(t)), {
|
|
|
2287
2286
|
justifyContent: "center",
|
|
2288
2287
|
visibility: "visible"
|
|
2289
2288
|
},
|
|
2290
|
-
children: /* @__PURE__ */ g(me, { source: Cs, size: 16, css: { animation: `${
|
|
2289
|
+
children: /* @__PURE__ */ g(me, { source: Cs, size: 16, css: { animation: `${lc} 1s linear infinite` } })
|
|
2291
2290
|
}
|
|
2292
2291
|
),
|
|
2293
2292
|
e === "outlined" && /* @__PURE__ */ g(
|
|
@@ -2445,7 +2444,7 @@ const Fn = (t) => (t && !Bi && (Bi = !0, we.initialize(t)), {
|
|
|
2445
2444
|
}
|
|
2446
2445
|
)
|
|
2447
2446
|
] });
|
|
2448
|
-
},
|
|
2447
|
+
}, Ap = '<svg fill="currentColor" width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M19,13H5a1,1,0,0,1,0-2H19a1,1,0,0,1,0,2Z"></path></svg>', cc = `<svg width="24" height="24" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2449
2448
|
<path d="M12.8002 7.5002H8.5002V3.2002C8.5002 2.9002 8.3002 2.7002 8.0002 2.7002C7.7002 2.7002 7.5002 2.9002 7.5002 3.2002V7.5002H3.2002C2.9002 7.5002 2.7002 7.7002 2.7002 8.0002C2.7002 8.3002 2.9002 8.5002 3.2002 8.5002H7.5002V12.8002C7.5002 13.1002 7.7002 13.3002 8.0002 13.3002C8.3002 13.3002 8.5002 13.1002 8.5002 12.8002V8.5002H12.8002C13.1002 8.5002 13.3002 8.3002 13.3002 8.0002C13.3002 7.7002 13.1002 7.5002 12.8002 7.5002Z" fill="currentColor"/>
|
|
2450
2449
|
</svg>
|
|
2451
2450
|
`, Ss = ut({}), Es = () => G(Ss), ji = ({
|
|
@@ -2494,7 +2493,7 @@ const Fn = (t) => (t && !Bi && (Bi = !0, we.initialize(t)), {
|
|
|
2494
2493
|
return cl(() => {
|
|
2495
2494
|
mn(s) || (p.setReference?.(s), h.onOpenChange(!J(s)));
|
|
2496
2495
|
}, [s]), /* @__PURE__ */ g(Ss.Provider, { value: A, children: r });
|
|
2497
|
-
},
|
|
2496
|
+
}, uc = (t) => nl() ? /* @__PURE__ */ g(ji, { ...t }) : /* @__PURE__ */ g(il, { children: /* @__PURE__ */ g(ji, { ...t }) }), dc = q(({ children: t, ...e }, n) => {
|
|
2498
2497
|
const { getReferenceProps: i, context: r } = Es(), o = W([r.refs.setReference, cs(t, "ref"), n]);
|
|
2499
2498
|
return Gt(t) ? In(
|
|
2500
2499
|
t,
|
|
@@ -2503,7 +2502,7 @@ const Fn = (t) => (t && !Bi && (Bi = !0, we.initialize(t)), {
|
|
|
2503
2502
|
ref: o
|
|
2504
2503
|
})
|
|
2505
2504
|
) : /* @__PURE__ */ g("button", { type: "button", ...i(e), ref: o, children: t });
|
|
2506
|
-
}),
|
|
2505
|
+
}), fc = q(
|
|
2507
2506
|
({ style: t, ...e }, n) => {
|
|
2508
2507
|
const { getFloatingProps: i, context: r } = Es(), o = W([r.refs.setFloating, n]);
|
|
2509
2508
|
return r.open ? /* @__PURE__ */ g(Ln, { root: document.body, children: /* @__PURE__ */ g(
|
|
@@ -2549,7 +2548,7 @@ const Fn = (t) => (t && !Bi && (Bi = !0, we.initialize(t)), {
|
|
|
2549
2548
|
},
|
|
2550
2549
|
children: /* @__PURE__ */ g(ul, { ...e })
|
|
2551
2550
|
}
|
|
2552
|
-
),
|
|
2551
|
+
), hc = ut({}), Rs = () => G(hc), Sp = q(({ children: t, ...e }, n) => {
|
|
2553
2552
|
const { getReferenceProps: i, context: r } = Rs(), o = W([r.refs.setReference, cs(t, "ref"), n]);
|
|
2554
2553
|
return Gt(t) ? In(
|
|
2555
2554
|
t,
|
|
@@ -2558,7 +2557,7 @@ const Fn = (t) => (t && !Bi && (Bi = !0, we.initialize(t)), {
|
|
|
2558
2557
|
ref: o
|
|
2559
2558
|
})
|
|
2560
2559
|
) : /* @__PURE__ */ g("button", { type: "button", ...i(e), ref: o, children: t });
|
|
2561
|
-
}),
|
|
2560
|
+
}), Ep = q(({ style: t, ...e }, n) => {
|
|
2562
2561
|
const { getFloatingProps: i, context: r, refs: o } = Rs();
|
|
2563
2562
|
return r.open ? /* @__PURE__ */ g(Ln, { children: /* @__PURE__ */ g(
|
|
2564
2563
|
"div",
|
|
@@ -2588,7 +2587,7 @@ const Fn = (t) => (t && !Bi && (Bi = !0, we.initialize(t)), {
|
|
|
2588
2587
|
)
|
|
2589
2588
|
}
|
|
2590
2589
|
) }) : /* @__PURE__ */ g(yt, {});
|
|
2591
|
-
}),
|
|
2590
|
+
}), Pp = q(({ children: t, isActive: e, ...n }, i) => /* @__PURE__ */ g(
|
|
2592
2591
|
"li",
|
|
2593
2592
|
{
|
|
2594
2593
|
css: [
|
|
@@ -2611,7 +2610,7 @@ const Fn = (t) => (t && !Bi && (Bi = !0, we.initialize(t)), {
|
|
|
2611
2610
|
ref: i,
|
|
2612
2611
|
children: t
|
|
2613
2612
|
}
|
|
2614
|
-
)),
|
|
2613
|
+
)), Rp = q(
|
|
2615
2614
|
({ children: t, size: e = 20, ...n }, i) => /* @__PURE__ */ I("label", { css: { display: "inline-flex", alignItems: "center", gap: 8, cursor: "pointer", ...R.text.xs }, children: [
|
|
2616
2615
|
/* @__PURE__ */ I(
|
|
2617
2616
|
"span",
|
|
@@ -2659,7 +2658,7 @@ const Fn = (t) => (t && !Bi && (Bi = !0, we.initialize(t)), {
|
|
|
2659
2658
|
),
|
|
2660
2659
|
Gt(t) ? t : /* @__PURE__ */ g("span", { css: { flex: 1 }, children: t })
|
|
2661
2660
|
] })
|
|
2662
|
-
),
|
|
2661
|
+
), pc = ut({}), Dp = () => G(pc), Bn = ut({});
|
|
2663
2662
|
function jn(t) {
|
|
2664
2663
|
const e = rt(null);
|
|
2665
2664
|
return e.current === null && (e.current = t()), e.current;
|
|
@@ -2669,7 +2668,7 @@ const Ue = ut(null), Un = ut({
|
|
|
2669
2668
|
isStatic: !1,
|
|
2670
2669
|
reducedMotion: "never"
|
|
2671
2670
|
});
|
|
2672
|
-
class
|
|
2671
|
+
class mc extends _n.Component {
|
|
2673
2672
|
getSnapshotBeforeUpdate(e) {
|
|
2674
2673
|
const n = this.props.childRef.current;
|
|
2675
2674
|
if (n && e.isPresent && !this.props.isPresent) {
|
|
@@ -2687,7 +2686,7 @@ class gc extends _n.Component {
|
|
|
2687
2686
|
return this.props.children;
|
|
2688
2687
|
}
|
|
2689
2688
|
}
|
|
2690
|
-
function
|
|
2689
|
+
function gc({ children: t, isPresent: e }) {
|
|
2691
2690
|
const n = Be(), i = rt(null), r = rt({
|
|
2692
2691
|
width: 0,
|
|
2693
2692
|
height: 0,
|
|
@@ -2711,10 +2710,10 @@ function vc({ children: t, isPresent: e }) {
|
|
|
2711
2710
|
`), () => {
|
|
2712
2711
|
document.head.removeChild(u);
|
|
2713
2712
|
};
|
|
2714
|
-
}, [e]), Mt(
|
|
2713
|
+
}, [e]), Mt(mc, { isPresent: e, childRef: i, sizeRef: r, children: _n.cloneElement(t, { ref: i }) });
|
|
2715
2714
|
}
|
|
2716
|
-
const
|
|
2717
|
-
const a = jn(
|
|
2715
|
+
const vc = ({ children: t, initial: e, isPresent: n, onExitComplete: i, custom: r, presenceAffectsLayout: o, mode: s }) => {
|
|
2716
|
+
const a = jn(yc), l = Be(), c = le((d) => {
|
|
2718
2717
|
a.set(d, !0);
|
|
2719
2718
|
for (const h of a.values())
|
|
2720
2719
|
if (!h)
|
|
@@ -2740,9 +2739,9 @@ const yc = ({ children: t, initial: e, isPresent: n, onExitComplete: i, custom:
|
|
|
2740
2739
|
a.forEach((d, h) => a.set(h, !1));
|
|
2741
2740
|
}, [n]), _n.useEffect(() => {
|
|
2742
2741
|
!n && !a.size && i && i();
|
|
2743
|
-
}, [n]), s === "popLayout" && (t = Mt(
|
|
2742
|
+
}, [n]), s === "popLayout" && (t = Mt(gc, { isPresent: n, children: t })), Mt(Ue.Provider, { value: u, children: t });
|
|
2744
2743
|
};
|
|
2745
|
-
function
|
|
2744
|
+
function yc() {
|
|
2746
2745
|
return /* @__PURE__ */ new Map();
|
|
2747
2746
|
}
|
|
2748
2747
|
function Ds(t = !0) {
|
|
@@ -2763,7 +2762,7 @@ function Ui(t) {
|
|
|
2763
2762
|
Gt(n) && e.push(n);
|
|
2764
2763
|
}), e;
|
|
2765
2764
|
}
|
|
2766
|
-
const Wn = typeof window < "u", ks = Wn ? Ba : je,
|
|
2765
|
+
const Wn = typeof window < "u", ks = Wn ? Ba : je, bc = ({ children: t, custom: e, initial: n = !0, onExitComplete: i, presenceAffectsLayout: r = !0, mode: o = "sync", propagate: s = !1 }) => {
|
|
2767
2766
|
const [a, l] = Ds(s), c = st(() => Ui(t), [t]), u = s && !a ? [] : c.map(Ce), d = rt(!0), h = rt(c), p = jn(() => /* @__PURE__ */ new Map()), [T, y] = hn(c), [v, x] = hn(c);
|
|
2768
2767
|
ks(() => {
|
|
2769
2768
|
d.current = !1, h.current = c;
|
|
@@ -2795,7 +2794,7 @@ const Wn = typeof window < "u", ks = Wn ? Ba : je, Tc = ({ children: t, custom:
|
|
|
2795
2794
|
P || (w = !1);
|
|
2796
2795
|
}), w && (A?.(), x(h.current), s && l?.(), i && i());
|
|
2797
2796
|
};
|
|
2798
|
-
return Mt(
|
|
2797
|
+
return Mt(vc, { isPresent: m, initial: !d.current || n ? void 0 : !1, custom: m ? void 0 : e, presenceAffectsLayout: r, mode: o, onExitComplete: m ? void 0 : b, children: S }, f);
|
|
2799
2798
|
}) });
|
|
2800
2799
|
}, Y = /* @__NO_SIDE_EFFECTS__ */ (t) => t;
|
|
2801
2800
|
let $t = Y, bt = Y;
|
|
@@ -2805,10 +2804,10 @@ process.env.NODE_ENV !== "production" && ($t = (t, e) => {
|
|
|
2805
2804
|
if (!t)
|
|
2806
2805
|
throw new Error(e);
|
|
2807
2806
|
});
|
|
2808
|
-
const
|
|
2807
|
+
const Tc = {
|
|
2809
2808
|
useManualTiming: !1
|
|
2810
2809
|
};
|
|
2811
|
-
function
|
|
2810
|
+
function xc(t) {
|
|
2812
2811
|
let e = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set(), i = !1, r = !1;
|
|
2813
2812
|
const o = /* @__PURE__ */ new WeakSet();
|
|
2814
2813
|
let s = {
|
|
@@ -2859,16 +2858,16 @@ const Ae = [
|
|
|
2859
2858
|
// Write
|
|
2860
2859
|
"postRender"
|
|
2861
2860
|
// Compute
|
|
2862
|
-
],
|
|
2861
|
+
], wc = 40;
|
|
2863
2862
|
function Ms(t, e) {
|
|
2864
2863
|
let n = !1, i = !0;
|
|
2865
2864
|
const r = {
|
|
2866
2865
|
delta: 0,
|
|
2867
2866
|
timestamp: 0,
|
|
2868
2867
|
isProcessing: !1
|
|
2869
|
-
}, o = () => n = !0, s = Ae.reduce((x, C) => (x[C] =
|
|
2868
|
+
}, o = () => n = !0, s = Ae.reduce((x, C) => (x[C] = xc(o), x), {}), { read: a, resolveKeyframes: l, update: c, preRender: u, render: d, postRender: h } = s, p = () => {
|
|
2870
2869
|
const x = performance.now();
|
|
2871
|
-
n = !1, r.delta = i ? 1e3 / 60 : Math.max(Math.min(x - r.timestamp,
|
|
2870
|
+
n = !1, r.delta = i ? 1e3 / 60 : Math.max(Math.min(x - r.timestamp, wc), 1), r.timestamp = x, r.isProcessing = !0, a.process(r), l.process(r), c.process(r), u.process(r), d.process(r), h.process(r), r.isProcessing = !1, n && e && (i = !1, t(p));
|
|
2872
2871
|
}, T = () => {
|
|
2873
2872
|
n = !0, i = !0, r.isProcessing || t(p);
|
|
2874
2873
|
};
|
|
@@ -2904,14 +2903,14 @@ for (const t in Wi)
|
|
|
2904
2903
|
Ut[t] = {
|
|
2905
2904
|
isEnabled: (e) => Wi[t].some((n) => !!e[n])
|
|
2906
2905
|
};
|
|
2907
|
-
function
|
|
2906
|
+
function Cc(t) {
|
|
2908
2907
|
for (const e in t)
|
|
2909
2908
|
Ut[e] = {
|
|
2910
2909
|
...Ut[e],
|
|
2911
2910
|
...t[e]
|
|
2912
2911
|
};
|
|
2913
2912
|
}
|
|
2914
|
-
const
|
|
2913
|
+
const Ac = /* @__PURE__ */ new Set([
|
|
2915
2914
|
"animate",
|
|
2916
2915
|
"exit",
|
|
2917
2916
|
"variants",
|
|
@@ -2944,17 +2943,17 @@ const Sc = /* @__PURE__ */ new Set([
|
|
|
2944
2943
|
"viewport"
|
|
2945
2944
|
]);
|
|
2946
2945
|
function Me(t) {
|
|
2947
|
-
return t.startsWith("while") || t.startsWith("drag") && t !== "draggable" || t.startsWith("layout") || t.startsWith("onTap") || t.startsWith("onPan") || t.startsWith("onLayout") ||
|
|
2946
|
+
return t.startsWith("while") || t.startsWith("drag") && t !== "draggable" || t.startsWith("layout") || t.startsWith("onTap") || t.startsWith("onPan") || t.startsWith("onLayout") || Ac.has(t);
|
|
2948
2947
|
}
|
|
2949
2948
|
let _s = (t) => !Me(t);
|
|
2950
|
-
function
|
|
2949
|
+
function Sc(t) {
|
|
2951
2950
|
t && (_s = (e) => e.startsWith("on") ? !Me(e) : t(e));
|
|
2952
2951
|
}
|
|
2953
2952
|
try {
|
|
2954
|
-
|
|
2953
|
+
Sc(require("@emotion/is-prop-valid").default);
|
|
2955
2954
|
} catch {
|
|
2956
2955
|
}
|
|
2957
|
-
function
|
|
2956
|
+
function Ec(t, e, n) {
|
|
2958
2957
|
const i = {};
|
|
2959
2958
|
for (const r in t)
|
|
2960
2959
|
r === "values" && typeof t.values == "object" || (_s(r) || n === !0 && Me(r) || !e && !Me(r) || // If trying to use native HTML drag events, forward drag listeners
|
|
@@ -2965,7 +2964,7 @@ const Hi = /* @__PURE__ */ new Set();
|
|
|
2965
2964
|
function We(t, e, n) {
|
|
2966
2965
|
t || Hi.has(e) || (console.warn(e), Hi.add(e));
|
|
2967
2966
|
}
|
|
2968
|
-
function
|
|
2967
|
+
function Pc(t) {
|
|
2969
2968
|
if (typeof Proxy > "u")
|
|
2970
2969
|
return t;
|
|
2971
2970
|
const e = /* @__PURE__ */ new Map(), n = (...i) => (process.env.NODE_ENV !== "production" && We(!1, "motion() is deprecated. Use motion.create() instead."), t(...i));
|
|
@@ -3000,7 +2999,7 @@ function $e(t) {
|
|
|
3000
2999
|
function Is(t) {
|
|
3001
3000
|
return !!($e(t) || t.variants);
|
|
3002
3001
|
}
|
|
3003
|
-
function
|
|
3002
|
+
function Rc(t, e) {
|
|
3004
3003
|
if ($e(t)) {
|
|
3005
3004
|
const { initial: n, animate: i } = t;
|
|
3006
3005
|
return {
|
|
@@ -3010,18 +3009,18 @@ function Dc(t, e) {
|
|
|
3010
3009
|
}
|
|
3011
3010
|
return t.inherit !== !1 ? e : {};
|
|
3012
3011
|
}
|
|
3013
|
-
function
|
|
3014
|
-
const { initial: e, animate: n } =
|
|
3012
|
+
function Dc(t) {
|
|
3013
|
+
const { initial: e, animate: n } = Rc(t, G(He));
|
|
3015
3014
|
return st(() => ({ initial: e, animate: n }), [Gi(e), Gi(n)]);
|
|
3016
3015
|
}
|
|
3017
3016
|
function Gi(t) {
|
|
3018
3017
|
return Array.isArray(t) ? t.join(" ") : t;
|
|
3019
3018
|
}
|
|
3020
|
-
const
|
|
3019
|
+
const kc = /* @__PURE__ */ Symbol.for("motionComponentSymbol");
|
|
3021
3020
|
function Lt(t) {
|
|
3022
3021
|
return t && typeof t == "object" && Object.prototype.hasOwnProperty.call(t, "current");
|
|
3023
3022
|
}
|
|
3024
|
-
function
|
|
3023
|
+
function Mc(t, e, n) {
|
|
3025
3024
|
return le(
|
|
3026
3025
|
(i) => {
|
|
3027
3026
|
i && t.onMount && t.onMount(i), e && (i ? e.mount(i) : e.unmount()), n && (typeof n == "function" ? n(i) : Lt(n) && (n.current = i));
|
|
@@ -3034,8 +3033,8 @@ function Vc(t, e, n) {
|
|
|
3034
3033
|
[e]
|
|
3035
3034
|
);
|
|
3036
3035
|
}
|
|
3037
|
-
const $n = (t) => t.replace(/([a-z])([A-Z])/gu, "$1-$2").toLowerCase(),
|
|
3038
|
-
function
|
|
3036
|
+
const $n = (t) => t.replace(/([a-z])([A-Z])/gu, "$1-$2").toLowerCase(), Vc = "framerAppearId", Os = "data-" + $n(Vc), { schedule: zn } = Ms(queueMicrotask, !1), Ls = ut({});
|
|
3037
|
+
function _c(t, e, n, i, r) {
|
|
3039
3038
|
var o, s;
|
|
3040
3039
|
const { visualElement: a } = G(He), l = G(Vs), c = G(Ue), u = G(Un).reducedMotion, d = rt(null);
|
|
3041
3040
|
i = i || l.renderer, !d.current && i && (d.current = i(t, {
|
|
@@ -3047,7 +3046,7 @@ function Ic(t, e, n, i, r) {
|
|
|
3047
3046
|
reducedMotionConfig: u
|
|
3048
3047
|
}));
|
|
3049
3048
|
const h = d.current, p = G(Ls);
|
|
3050
|
-
h && !h.projection && r && (h.type === "html" || h.type === "svg") &&
|
|
3049
|
+
h && !h.projection && r && (h.type === "html" || h.type === "svg") && Ic(d.current, n, r, p);
|
|
3051
3050
|
const T = rt(!1);
|
|
3052
3051
|
ss(() => {
|
|
3053
3052
|
h && T.current && h.update(n, c);
|
|
@@ -3062,7 +3061,7 @@ function Ic(t, e, n, i, r) {
|
|
|
3062
3061
|
}), v.current = !1));
|
|
3063
3062
|
}), h;
|
|
3064
3063
|
}
|
|
3065
|
-
function
|
|
3064
|
+
function Ic(t, e, n, i) {
|
|
3066
3065
|
const { layoutId: r, layout: o, drag: s, dragConstraints: a, layoutScroll: l, layoutRoot: c } = e;
|
|
3067
3066
|
t.projection = new n(t.latestValues, e["data-framer-portal-id"] ? void 0 : Ns(t.parent)), t.projection.setOptions({
|
|
3068
3067
|
layoutId: r,
|
|
@@ -3086,39 +3085,39 @@ function Ns(t) {
|
|
|
3086
3085
|
if (t)
|
|
3087
3086
|
return t.options.allowProjection !== !1 ? t.projection : Ns(t.parent);
|
|
3088
3087
|
}
|
|
3089
|
-
function
|
|
3088
|
+
function Oc({ preloadedFeatures: t, createVisualElement: e, useRender: n, useVisualState: i, Component: r }) {
|
|
3090
3089
|
var o, s;
|
|
3091
|
-
t &&
|
|
3090
|
+
t && Cc(t);
|
|
3092
3091
|
function a(c, u) {
|
|
3093
3092
|
let d;
|
|
3094
3093
|
const h = {
|
|
3095
3094
|
...G(Un),
|
|
3096
3095
|
...c,
|
|
3097
|
-
layoutId:
|
|
3098
|
-
}, { isStatic: p } = h, T =
|
|
3096
|
+
layoutId: Lc(c)
|
|
3097
|
+
}, { isStatic: p } = h, T = Dc(c), y = i(c, p);
|
|
3099
3098
|
if (!p && Wn) {
|
|
3100
|
-
|
|
3101
|
-
const v =
|
|
3102
|
-
d = v.MeasureLayout, T.visualElement =
|
|
3099
|
+
Nc(h, t);
|
|
3100
|
+
const v = Fc(h);
|
|
3101
|
+
d = v.MeasureLayout, T.visualElement = _c(r, y, h, e, v.ProjectionNode);
|
|
3103
3102
|
}
|
|
3104
|
-
return hl(He.Provider, { value: T, children: [d && T.visualElement ? Mt(d, { visualElement: T.visualElement, ...h }) : null, n(r, c,
|
|
3103
|
+
return hl(He.Provider, { value: T, children: [d && T.visualElement ? Mt(d, { visualElement: T.visualElement, ...h }) : null, n(r, c, Mc(y, T.visualElement, u), y, p, T.visualElement)] });
|
|
3105
3104
|
}
|
|
3106
3105
|
a.displayName = `motion.${typeof r == "string" ? r : `create(${(s = (o = r.displayName) !== null && o !== void 0 ? o : r.name) !== null && s !== void 0 ? s : ""})`}`;
|
|
3107
3106
|
const l = q(a);
|
|
3108
|
-
return l[
|
|
3107
|
+
return l[kc] = r, l;
|
|
3109
3108
|
}
|
|
3110
|
-
function
|
|
3109
|
+
function Lc({ layoutId: t }) {
|
|
3111
3110
|
const e = G(Bn).id;
|
|
3112
3111
|
return e && t !== void 0 ? e + "-" + t : t;
|
|
3113
3112
|
}
|
|
3114
|
-
function
|
|
3113
|
+
function Nc(t, e) {
|
|
3115
3114
|
const n = G(Vs).strict;
|
|
3116
3115
|
if (process.env.NODE_ENV !== "production" && e && n) {
|
|
3117
3116
|
const i = "You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";
|
|
3118
3117
|
t.ignoreStrict ? $t(!1, i) : bt(!1, i);
|
|
3119
3118
|
}
|
|
3120
3119
|
}
|
|
3121
|
-
function
|
|
3120
|
+
function Fc(t) {
|
|
3122
3121
|
const { drag: e, layout: n } = Ut;
|
|
3123
3122
|
if (!e && !n)
|
|
3124
3123
|
return {};
|
|
@@ -3128,7 +3127,7 @@ function Bc(t) {
|
|
|
3128
3127
|
ProjectionNode: i.ProjectionNode
|
|
3129
3128
|
};
|
|
3130
3129
|
}
|
|
3131
|
-
const
|
|
3130
|
+
const Bc = [
|
|
3132
3131
|
"animate",
|
|
3133
3132
|
"circle",
|
|
3134
3133
|
"defs",
|
|
@@ -3168,7 +3167,7 @@ function qn(t) {
|
|
|
3168
3167
|
/**
|
|
3169
3168
|
* If it's in our list of lowercase SVG tags, it's an SVG component
|
|
3170
3169
|
*/
|
|
3171
|
-
!!(
|
|
3170
|
+
!!(Bc.indexOf(t) > -1 || /**
|
|
3172
3171
|
* If it contains a capital letter, it's an SVG component
|
|
3173
3172
|
*/
|
|
3174
3173
|
/[A-Z]/u.test(t))
|
|
@@ -3192,23 +3191,23 @@ function Kn(t, e, n, i) {
|
|
|
3192
3191
|
}
|
|
3193
3192
|
return e;
|
|
3194
3193
|
}
|
|
3195
|
-
const gn = (t) => Array.isArray(t),
|
|
3194
|
+
const gn = (t) => Array.isArray(t), jc = (t) => !!(t && typeof t == "object" && t.mix && t.toValue), Uc = (t) => gn(t) ? t[t.length - 1] || 0 : t, X = (t) => !!(t && t.getVelocity);
|
|
3196
3195
|
function Pe(t) {
|
|
3197
3196
|
const e = X(t) ? t.get() : t;
|
|
3198
|
-
return
|
|
3197
|
+
return jc(e) ? e.toValue() : e;
|
|
3199
3198
|
}
|
|
3200
|
-
function
|
|
3199
|
+
function Wc({ scrapeMotionValuesFromProps: t, createRenderState: e, onUpdate: n }, i, r, o) {
|
|
3201
3200
|
const s = {
|
|
3202
|
-
latestValues:
|
|
3201
|
+
latestValues: Hc(i, r, o, t),
|
|
3203
3202
|
renderState: e()
|
|
3204
3203
|
};
|
|
3205
3204
|
return n && (s.onMount = (a) => n({ props: i, current: a, ...s }), s.onUpdate = (a) => n(a)), s;
|
|
3206
3205
|
}
|
|
3207
3206
|
const Fs = (t) => (e, n) => {
|
|
3208
|
-
const i = G(He), r = G(Ue), o = () =>
|
|
3207
|
+
const i = G(He), r = G(Ue), o = () => Wc(t, e, i, r);
|
|
3209
3208
|
return n ? o() : jn(o);
|
|
3210
3209
|
};
|
|
3211
|
-
function
|
|
3210
|
+
function Hc(t, e, n, i) {
|
|
3212
3211
|
const r = {}, o = i(t, {});
|
|
3213
3212
|
for (const h in o)
|
|
3214
3213
|
r[h] = Pe(o[h]);
|
|
@@ -3257,7 +3256,7 @@ const zt = [
|
|
|
3257
3256
|
"skew",
|
|
3258
3257
|
"skewX",
|
|
3259
3258
|
"skewY"
|
|
3260
|
-
], Vt = new Set(zt), Bs = (t) => (e) => typeof e == "string" && e.startsWith(t), js = /* @__PURE__ */ Bs("--"),
|
|
3259
|
+
], Vt = new Set(zt), Bs = (t) => (e) => typeof e == "string" && e.startsWith(t), js = /* @__PURE__ */ Bs("--"), Gc = /* @__PURE__ */ Bs("var(--"), Xn = (t) => Gc(t) ? $c.test(t.split("/*")[0].trim()) : !1, $c = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu, Us = (t, e) => e && typeof t == "number" ? e.transform(t) : t, ht = (t, e, n) => n > e ? e : n < t ? t : n, qt = {
|
|
3261
3260
|
test: (t) => typeof t == "number",
|
|
3262
3261
|
parse: parseFloat,
|
|
3263
3262
|
transform: (t) => t
|
|
@@ -3271,11 +3270,11 @@ const zt = [
|
|
|
3271
3270
|
test: (e) => typeof e == "string" && e.endsWith(t) && e.split(" ").length === 1,
|
|
3272
3271
|
parse: parseFloat,
|
|
3273
3272
|
transform: (e) => `${e}${t}`
|
|
3274
|
-
}), vt = /* @__PURE__ */ ge("deg"), at = /* @__PURE__ */ ge("%"), D = /* @__PURE__ */ ge("px"),
|
|
3273
|
+
}), vt = /* @__PURE__ */ ge("deg"), at = /* @__PURE__ */ ge("%"), D = /* @__PURE__ */ ge("px"), zc = /* @__PURE__ */ ge("vh"), qc = /* @__PURE__ */ ge("vw"), zi = {
|
|
3275
3274
|
...at,
|
|
3276
3275
|
parse: (t) => at.parse(t) / 100,
|
|
3277
3276
|
transform: (t) => at.transform(t * 100)
|
|
3278
|
-
},
|
|
3277
|
+
}, Kc = {
|
|
3279
3278
|
// Border props
|
|
3280
3279
|
borderWidth: D,
|
|
3281
3280
|
borderTopWidth: D,
|
|
@@ -3311,7 +3310,7 @@ const zt = [
|
|
|
3311
3310
|
// Misc
|
|
3312
3311
|
backgroundPositionX: D,
|
|
3313
3312
|
backgroundPositionY: D
|
|
3314
|
-
},
|
|
3313
|
+
}, Xc = {
|
|
3315
3314
|
rotate: vt,
|
|
3316
3315
|
rotateX: vt,
|
|
3317
3316
|
rotateY: vt,
|
|
@@ -3340,23 +3339,23 @@ const zt = [
|
|
|
3340
3339
|
...qt,
|
|
3341
3340
|
transform: Math.round
|
|
3342
3341
|
}, Yn = {
|
|
3342
|
+
...Kc,
|
|
3343
3343
|
...Xc,
|
|
3344
|
-
...Yc,
|
|
3345
3344
|
zIndex: qi,
|
|
3346
3345
|
size: D,
|
|
3347
3346
|
// SVG
|
|
3348
3347
|
fillOpacity: ue,
|
|
3349
3348
|
strokeOpacity: ue,
|
|
3350
3349
|
numOctaves: qi
|
|
3351
|
-
},
|
|
3350
|
+
}, Yc = {
|
|
3352
3351
|
x: "translateX",
|
|
3353
3352
|
y: "translateY",
|
|
3354
3353
|
z: "translateZ",
|
|
3355
3354
|
transformPerspective: "perspective"
|
|
3356
|
-
},
|
|
3357
|
-
function
|
|
3355
|
+
}, Zc = zt.length;
|
|
3356
|
+
function Jc(t, e, n) {
|
|
3358
3357
|
let i = "", r = !0;
|
|
3359
|
-
for (let o = 0; o <
|
|
3358
|
+
for (let o = 0; o < Zc; o++) {
|
|
3360
3359
|
const s = zt[o], a = t[s];
|
|
3361
3360
|
if (a === void 0)
|
|
3362
3361
|
continue;
|
|
@@ -3365,7 +3364,7 @@ function Qc(t, e, n) {
|
|
|
3365
3364
|
const c = Us(a, Yn[s]);
|
|
3366
3365
|
if (!l) {
|
|
3367
3366
|
r = !1;
|
|
3368
|
-
const u =
|
|
3367
|
+
const u = Yc[s] || s;
|
|
3369
3368
|
i += `${u}(${c}) `;
|
|
3370
3369
|
}
|
|
3371
3370
|
n && (e[s] = c);
|
|
@@ -3389,21 +3388,21 @@ function Zn(t, e, n) {
|
|
|
3389
3388
|
l.startsWith("origin") ? (a = !0, o[l] = u) : i[l] = u;
|
|
3390
3389
|
}
|
|
3391
3390
|
}
|
|
3392
|
-
if (e.transform || (s || n ? i.transform =
|
|
3391
|
+
if (e.transform || (s || n ? i.transform = Jc(e, t.transform, n) : i.transform && (i.transform = "none")), a) {
|
|
3393
3392
|
const { originX: l = "50%", originY: c = "50%", originZ: u = 0 } = o;
|
|
3394
3393
|
i.transformOrigin = `${l} ${c} ${u}`;
|
|
3395
3394
|
}
|
|
3396
3395
|
}
|
|
3397
|
-
const
|
|
3396
|
+
const Qc = {
|
|
3398
3397
|
offset: "stroke-dashoffset",
|
|
3399
3398
|
array: "stroke-dasharray"
|
|
3400
|
-
},
|
|
3399
|
+
}, tu = {
|
|
3401
3400
|
offset: "strokeDashoffset",
|
|
3402
3401
|
array: "strokeDasharray"
|
|
3403
3402
|
};
|
|
3404
|
-
function
|
|
3403
|
+
function eu(t, e, n = 1, i = 0, r = !0) {
|
|
3405
3404
|
t.pathLength = 1;
|
|
3406
|
-
const o = r ?
|
|
3405
|
+
const o = r ? Qc : tu;
|
|
3407
3406
|
t[o.offset] = D.transform(-i);
|
|
3408
3407
|
const s = D.transform(e), a = D.transform(n);
|
|
3409
3408
|
t[o.array] = `${s} ${a}`;
|
|
@@ -3411,7 +3410,7 @@ function nu(t, e, n = 1, i = 0, r = !0) {
|
|
|
3411
3410
|
function Ki(t, e, n) {
|
|
3412
3411
|
return typeof t == "string" ? t : D.transform(e + n * t);
|
|
3413
3412
|
}
|
|
3414
|
-
function
|
|
3413
|
+
function nu(t, e, n) {
|
|
3415
3414
|
const i = Ki(e, t.x, t.width), r = Ki(n, t.y, t.height);
|
|
3416
3415
|
return `${i} ${r}`;
|
|
3417
3416
|
}
|
|
@@ -3433,7 +3432,7 @@ function Jn(t, {
|
|
|
3433
3432
|
}
|
|
3434
3433
|
t.attrs = t.style, t.style = {};
|
|
3435
3434
|
const { attrs: h, style: p, dimensions: T } = t;
|
|
3436
|
-
h.transform && (T && (p.transform = h.transform), delete h.transform), T && (r !== void 0 || o !== void 0 || p.transform) && (p.transformOrigin =
|
|
3435
|
+
h.transform && (T && (p.transform = h.transform), delete h.transform), T && (r !== void 0 || o !== void 0 || p.transform) && (p.transformOrigin = nu(T, r !== void 0 ? r : 0.5, o !== void 0 ? o : 0.5)), e !== void 0 && (h.x = e), n !== void 0 && (h.y = n), i !== void 0 && (h.scale = i), s !== void 0 && eu(h, s, a, l, !1);
|
|
3437
3436
|
}
|
|
3438
3437
|
const Qn = () => ({
|
|
3439
3438
|
style: {},
|
|
@@ -3480,7 +3479,7 @@ function $s(t, e, n, i) {
|
|
|
3480
3479
|
t.setAttribute(Gs.has(r) ? r : $n(r), e.attrs[r]);
|
|
3481
3480
|
}
|
|
3482
3481
|
const Ve = {};
|
|
3483
|
-
function
|
|
3482
|
+
function iu(t) {
|
|
3484
3483
|
Object.assign(Ve, t);
|
|
3485
3484
|
}
|
|
3486
3485
|
function zs(t, { layout: e, layoutId: n }) {
|
|
@@ -3502,7 +3501,7 @@ function qs(t, e, n) {
|
|
|
3502
3501
|
}
|
|
3503
3502
|
return i;
|
|
3504
3503
|
}
|
|
3505
|
-
function
|
|
3504
|
+
function ru(t, e) {
|
|
3506
3505
|
try {
|
|
3507
3506
|
e.dimensions = typeof t.getBBox == "function" ? t.getBBox() : t.getBoundingClientRect();
|
|
3508
3507
|
} catch {
|
|
@@ -3514,7 +3513,7 @@ function su(t, e) {
|
|
|
3514
3513
|
};
|
|
3515
3514
|
}
|
|
3516
3515
|
}
|
|
3517
|
-
const Xi = ["x", "y", "width", "height", "cx", "cy", "r"],
|
|
3516
|
+
const Xi = ["x", "y", "width", "height", "cx", "cy", "r"], su = {
|
|
3518
3517
|
useVisualState: Fs({
|
|
3519
3518
|
scrapeMotionValuesFromProps: qs,
|
|
3520
3519
|
createRenderState: Ws,
|
|
@@ -3538,13 +3537,13 @@ const Xi = ["x", "y", "width", "height", "cx", "cy", "r"], ou = {
|
|
|
3538
3537
|
t[l] !== e[l] && (s = !0);
|
|
3539
3538
|
}
|
|
3540
3539
|
s && B.read(() => {
|
|
3541
|
-
|
|
3540
|
+
ru(n, i), B.render(() => {
|
|
3542
3541
|
Jn(i, r, ti(n.tagName), t.transformTemplate), $s(n, i);
|
|
3543
3542
|
});
|
|
3544
3543
|
});
|
|
3545
3544
|
}
|
|
3546
3545
|
})
|
|
3547
|
-
},
|
|
3546
|
+
}, ou = {
|
|
3548
3547
|
useVisualState: Fs({
|
|
3549
3548
|
scrapeMotionValuesFromProps: ei,
|
|
3550
3549
|
createRenderState: Qn
|
|
@@ -3554,21 +3553,21 @@ function Ks(t, e, n) {
|
|
|
3554
3553
|
for (const i in e)
|
|
3555
3554
|
!X(e[i]) && !zs(i, n) && (t[i] = e[i]);
|
|
3556
3555
|
}
|
|
3557
|
-
function
|
|
3556
|
+
function au({ transformTemplate: t }, e) {
|
|
3558
3557
|
return st(() => {
|
|
3559
3558
|
const n = Qn();
|
|
3560
3559
|
return Zn(n, e, t), Object.assign({}, n.vars, n.style);
|
|
3561
3560
|
}, [e]);
|
|
3562
3561
|
}
|
|
3563
|
-
function
|
|
3562
|
+
function lu(t, e) {
|
|
3564
3563
|
const n = t.style || {}, i = {};
|
|
3565
|
-
return Ks(i, n, t), Object.assign(i,
|
|
3564
|
+
return Ks(i, n, t), Object.assign(i, au(t, e)), i;
|
|
3566
3565
|
}
|
|
3567
|
-
function
|
|
3568
|
-
const n = {}, i =
|
|
3566
|
+
function cu(t, e) {
|
|
3567
|
+
const n = {}, i = lu(t, e);
|
|
3569
3568
|
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;
|
|
3570
3569
|
}
|
|
3571
|
-
function
|
|
3570
|
+
function uu(t, e, n, i) {
|
|
3572
3571
|
const r = st(() => {
|
|
3573
3572
|
const o = Ws();
|
|
3574
3573
|
return Jn(o, e, ti(i), t.transformTemplate), {
|
|
@@ -3582,25 +3581,25 @@ function du(t, e, n, i) {
|
|
|
3582
3581
|
}
|
|
3583
3582
|
return r;
|
|
3584
3583
|
}
|
|
3585
|
-
function
|
|
3584
|
+
function du(t = !1) {
|
|
3586
3585
|
return (n, i, r, { latestValues: o }, s) => {
|
|
3587
|
-
const l = (qn(n) ?
|
|
3586
|
+
const l = (qn(n) ? uu : cu)(i, o, s, n), c = Ec(i, typeof n == "string", t), u = n !== pe ? { ...c, ...l, ref: r } : {}, { children: d } = i, h = st(() => X(d) ? d.get() : d, [d]);
|
|
3588
3587
|
return ja(n, {
|
|
3589
3588
|
...u,
|
|
3590
3589
|
children: h
|
|
3591
3590
|
});
|
|
3592
3591
|
};
|
|
3593
3592
|
}
|
|
3594
|
-
function
|
|
3593
|
+
function fu(t, e) {
|
|
3595
3594
|
return function(i, { forwardMotionProps: r } = { forwardMotionProps: !1 }) {
|
|
3596
3595
|
const s = {
|
|
3597
|
-
...qn(i) ?
|
|
3596
|
+
...qn(i) ? su : ou,
|
|
3598
3597
|
preloadedFeatures: t,
|
|
3599
|
-
useRender:
|
|
3598
|
+
useRender: du(r),
|
|
3600
3599
|
createVisualElement: e,
|
|
3601
3600
|
Component: i
|
|
3602
3601
|
};
|
|
3603
|
-
return
|
|
3602
|
+
return Oc(s);
|
|
3604
3603
|
};
|
|
3605
3604
|
}
|
|
3606
3605
|
function Xs(t, e) {
|
|
@@ -3631,13 +3630,13 @@ const Ys = /* @__PURE__ */ new Set([
|
|
|
3631
3630
|
...zt
|
|
3632
3631
|
]);
|
|
3633
3632
|
let Re;
|
|
3634
|
-
function
|
|
3633
|
+
function hu() {
|
|
3635
3634
|
Re = void 0;
|
|
3636
3635
|
}
|
|
3637
3636
|
const lt = {
|
|
3638
|
-
now: () => (Re === void 0 && lt.set(z.isProcessing ||
|
|
3637
|
+
now: () => (Re === void 0 && lt.set(z.isProcessing || Tc.useManualTiming ? z.timestamp : performance.now()), Re),
|
|
3639
3638
|
set: (t) => {
|
|
3640
|
-
Re = t, queueMicrotask(
|
|
3639
|
+
Re = t, queueMicrotask(hu);
|
|
3641
3640
|
}
|
|
3642
3641
|
};
|
|
3643
3642
|
function ii(t, e) {
|
|
@@ -3675,8 +3674,8 @@ class si {
|
|
|
3675
3674
|
function Zs(t, e) {
|
|
3676
3675
|
return e ? t * (1e3 / e) : 0;
|
|
3677
3676
|
}
|
|
3678
|
-
const Yi = 30,
|
|
3679
|
-
class
|
|
3677
|
+
const Yi = 30, pu = (t) => !isNaN(parseFloat(t));
|
|
3678
|
+
class mu {
|
|
3680
3679
|
/**
|
|
3681
3680
|
* @param init - The initiating value
|
|
3682
3681
|
* @param config - Optional configuration options
|
|
@@ -3692,7 +3691,7 @@ class gu {
|
|
|
3692
3691
|
}, this.hasAnimated = !1, this.setCurrent(e), this.owner = n.owner;
|
|
3693
3692
|
}
|
|
3694
3693
|
setCurrent(e) {
|
|
3695
|
-
this.current = e, this.updatedAt = lt.now(), this.canTrackVelocity === null && e !== void 0 && (this.canTrackVelocity =
|
|
3694
|
+
this.current = e, this.updatedAt = lt.now(), this.canTrackVelocity === null && e !== void 0 && (this.canTrackVelocity = pu(this.current));
|
|
3696
3695
|
}
|
|
3697
3696
|
setPrevFrameValue(e = this.current) {
|
|
3698
3697
|
this.prevFrameValue = e, this.prevUpdatedAt = this.updatedAt;
|
|
@@ -3871,26 +3870,26 @@ class gu {
|
|
|
3871
3870
|
}
|
|
3872
3871
|
}
|
|
3873
3872
|
function de(t, e) {
|
|
3874
|
-
return new
|
|
3873
|
+
return new mu(t, e);
|
|
3875
3874
|
}
|
|
3876
|
-
function
|
|
3875
|
+
function gu(t, e, n) {
|
|
3877
3876
|
t.hasValue(e) ? t.getValue(e).set(n) : t.addValue(e, de(n));
|
|
3878
3877
|
}
|
|
3879
|
-
function
|
|
3878
|
+
function vu(t, e) {
|
|
3880
3879
|
const n = ze(t, e);
|
|
3881
3880
|
let { transitionEnd: i = {}, transition: r = {}, ...o } = n || {};
|
|
3882
3881
|
o = { ...o, ...i };
|
|
3883
3882
|
for (const s in o) {
|
|
3884
|
-
const a =
|
|
3885
|
-
|
|
3883
|
+
const a = Uc(o[s]);
|
|
3884
|
+
gu(t, s, a);
|
|
3886
3885
|
}
|
|
3887
3886
|
}
|
|
3888
|
-
function
|
|
3887
|
+
function yu(t) {
|
|
3889
3888
|
return !!(X(t) && t.add);
|
|
3890
3889
|
}
|
|
3891
3890
|
function vn(t, e) {
|
|
3892
3891
|
const n = t.getValue("willChange");
|
|
3893
|
-
if (
|
|
3892
|
+
if (yu(n))
|
|
3894
3893
|
return n.add(e);
|
|
3895
3894
|
}
|
|
3896
3895
|
function Js(t) {
|
|
@@ -3901,8 +3900,8 @@ function oi(t) {
|
|
|
3901
3900
|
let e;
|
|
3902
3901
|
return () => (e === void 0 && (e = t()), e);
|
|
3903
3902
|
}
|
|
3904
|
-
const
|
|
3905
|
-
class
|
|
3903
|
+
const bu = /* @__PURE__ */ oi(() => window.ScrollTimeline !== void 0);
|
|
3904
|
+
class Tu {
|
|
3906
3905
|
constructor(e) {
|
|
3907
3906
|
this.stop = () => this.runAll("stop"), this.animations = e.filter(Boolean);
|
|
3908
3907
|
}
|
|
@@ -3921,7 +3920,7 @@ class xu {
|
|
|
3921
3920
|
}
|
|
3922
3921
|
attachTimeline(e, n) {
|
|
3923
3922
|
const i = this.animations.map((r) => {
|
|
3924
|
-
if (
|
|
3923
|
+
if (bu() && r.attachTimeline)
|
|
3925
3924
|
return r.attachTimeline(e);
|
|
3926
3925
|
if (typeof n == "function")
|
|
3927
3926
|
return n(r);
|
|
@@ -3972,7 +3971,7 @@ class xu {
|
|
|
3972
3971
|
this.runAll("complete");
|
|
3973
3972
|
}
|
|
3974
3973
|
}
|
|
3975
|
-
class
|
|
3974
|
+
class xu extends Tu {
|
|
3976
3975
|
then(e, n) {
|
|
3977
3976
|
return Promise.all(this.animations).then(e).catch(n);
|
|
3978
3977
|
}
|
|
@@ -3984,17 +3983,17 @@ function ai(t) {
|
|
|
3984
3983
|
function Zi(t, e) {
|
|
3985
3984
|
t.timeline = e, t.onfinish = null;
|
|
3986
3985
|
}
|
|
3987
|
-
const li = (t) => Array.isArray(t) && typeof t[0] == "number",
|
|
3986
|
+
const li = (t) => Array.isArray(t) && typeof t[0] == "number", wu = {
|
|
3988
3987
|
linearEasing: void 0
|
|
3989
3988
|
};
|
|
3990
|
-
function
|
|
3989
|
+
function Cu(t, e) {
|
|
3991
3990
|
const n = /* @__PURE__ */ oi(t);
|
|
3992
3991
|
return () => {
|
|
3993
3992
|
var i;
|
|
3994
|
-
return (i =
|
|
3993
|
+
return (i = wu[e]) !== null && i !== void 0 ? i : n();
|
|
3995
3994
|
};
|
|
3996
3995
|
}
|
|
3997
|
-
const _e = /* @__PURE__ */
|
|
3996
|
+
const _e = /* @__PURE__ */ Cu(() => {
|
|
3998
3997
|
try {
|
|
3999
3998
|
document.createElement("div").animate({ opacity: 0 }, { easing: "linear(0, 1)" });
|
|
4000
3999
|
} catch {
|
|
@@ -4029,29 +4028,29 @@ function eo(t, e) {
|
|
|
4029
4028
|
if (t)
|
|
4030
4029
|
return typeof t == "function" && _e() ? Qs(t, e) : li(t) ? ee(t) : Array.isArray(t) ? t.map((n) => eo(n, e) || yn.easeOut) : yn[t];
|
|
4031
4030
|
}
|
|
4032
|
-
const no = (t, e, n) => (((1 - 3 * n + 3 * e) * t + (3 * n - 6 * e)) * t + 3 * e) * t,
|
|
4033
|
-
function
|
|
4031
|
+
const no = (t, e, n) => (((1 - 3 * n + 3 * e) * t + (3 * n - 6 * e)) * t + 3 * e) * t, Au = 1e-7, Su = 12;
|
|
4032
|
+
function Eu(t, e, n, i, r) {
|
|
4034
4033
|
let o, s, a = 0;
|
|
4035
4034
|
do
|
|
4036
4035
|
s = e + (n - e) / 2, o = no(s, i, r) - t, o > 0 ? n = s : e = s;
|
|
4037
|
-
while (Math.abs(o) >
|
|
4036
|
+
while (Math.abs(o) > Au && ++a < Su);
|
|
4038
4037
|
return s;
|
|
4039
4038
|
}
|
|
4040
4039
|
function ve(t, e, n, i) {
|
|
4041
4040
|
if (t === e && n === i)
|
|
4042
4041
|
return Y;
|
|
4043
|
-
const r = (o) =>
|
|
4042
|
+
const r = (o) => Eu(o, 0, 1, t, n);
|
|
4044
4043
|
return (o) => o === 0 || o === 1 ? o : no(r(o), e, i);
|
|
4045
4044
|
}
|
|
4046
4045
|
const io = (t) => (e) => e <= 0.5 ? t(2 * e) / 2 : (2 - t(2 * (1 - e))) / 2, ro = (t) => (e) => 1 - t(1 - e), so = /* @__PURE__ */ ve(0.33, 1.53, 0.69, 0.99), ci = /* @__PURE__ */ ro(so), oo = /* @__PURE__ */ io(ci), ao = (t) => (t *= 2) < 1 ? 0.5 * ci(t) : 0.5 * (2 - Math.pow(2, -10 * (t - 1))), ui = (t) => 1 - Math.sin(Math.acos(t)), lo = ro(ui), co = io(ui), uo = (t) => /^0[^.\s]+$/u.test(t);
|
|
4047
|
-
function
|
|
4046
|
+
function Pu(t) {
|
|
4048
4047
|
return typeof t == "number" ? t === 0 : t !== null ? t === "none" || t === "0" || uo(t) : !0;
|
|
4049
4048
|
}
|
|
4050
4049
|
const re = (t) => Math.round(t * 1e5) / 1e5, di = /-?(?:\d+(?:\.\d+)?|\.\d+)/gu;
|
|
4051
|
-
function
|
|
4050
|
+
function Ru(t) {
|
|
4052
4051
|
return t == null;
|
|
4053
4052
|
}
|
|
4054
|
-
const
|
|
4053
|
+
const Du = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu, fi = (t, e) => (n) => !!(typeof n == "string" && Du.test(n) && n.startsWith(t) || e && !Ru(n) && Object.prototype.hasOwnProperty.call(n, e)), fo = (t, e, n) => (i) => {
|
|
4055
4054
|
if (typeof i != "string")
|
|
4056
4055
|
return i;
|
|
4057
4056
|
const [r, o, s, a] = i.match(di);
|
|
@@ -4061,15 +4060,15 @@ const ku = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s
|
|
|
4061
4060
|
[n]: parseFloat(s),
|
|
4062
4061
|
alpha: a !== void 0 ? parseFloat(a) : 1
|
|
4063
4062
|
};
|
|
4064
|
-
},
|
|
4063
|
+
}, ku = (t) => ht(0, 255, t), tn = {
|
|
4065
4064
|
...qt,
|
|
4066
|
-
transform: (t) => Math.round(
|
|
4065
|
+
transform: (t) => Math.round(ku(t))
|
|
4067
4066
|
}, Dt = {
|
|
4068
4067
|
test: /* @__PURE__ */ fi("rgb", "red"),
|
|
4069
4068
|
parse: /* @__PURE__ */ fo("red", "green", "blue"),
|
|
4070
4069
|
transform: ({ red: t, green: e, blue: n, alpha: i = 1 }) => "rgba(" + tn.transform(t) + ", " + tn.transform(e) + ", " + tn.transform(n) + ", " + re(ue.transform(i)) + ")"
|
|
4071
4070
|
};
|
|
4072
|
-
function
|
|
4071
|
+
function Mu(t) {
|
|
4073
4072
|
let e = "", n = "", i = "", r = "";
|
|
4074
4073
|
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), {
|
|
4075
4074
|
red: parseInt(e, 16),
|
|
@@ -4080,7 +4079,7 @@ function Vu(t) {
|
|
|
4080
4079
|
}
|
|
4081
4080
|
const bn = {
|
|
4082
4081
|
test: /* @__PURE__ */ fi("#"),
|
|
4083
|
-
parse:
|
|
4082
|
+
parse: Mu,
|
|
4084
4083
|
transform: Dt.transform
|
|
4085
4084
|
}, Nt = {
|
|
4086
4085
|
test: /* @__PURE__ */ fi("hsl", "hue"),
|
|
@@ -4090,12 +4089,12 @@ const bn = {
|
|
|
4090
4089
|
test: (t) => Dt.test(t) || bn.test(t) || Nt.test(t),
|
|
4091
4090
|
parse: (t) => Dt.test(t) ? Dt.parse(t) : Nt.test(t) ? Nt.parse(t) : bn.parse(t),
|
|
4092
4091
|
transform: (t) => typeof t == "string" ? t : t.hasOwnProperty("red") ? Dt.transform(t) : Nt.transform(t)
|
|
4093
|
-
},
|
|
4094
|
-
function
|
|
4092
|
+
}, Vu = /(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;
|
|
4093
|
+
function _u(t) {
|
|
4095
4094
|
var e, n;
|
|
4096
|
-
return isNaN(t) && typeof t == "string" && (((e = t.match(di)) === null || e === void 0 ? void 0 : e.length) || 0) + (((n = t.match(
|
|
4095
|
+
return isNaN(t) && typeof t == "string" && (((e = t.match(di)) === null || e === void 0 ? void 0 : e.length) || 0) + (((n = t.match(Vu)) === null || n === void 0 ? void 0 : n.length) || 0) > 0;
|
|
4097
4096
|
}
|
|
4098
|
-
const ho = "number", po = "color",
|
|
4097
|
+
const ho = "number", po = "color", Iu = "var", Ou = "var(", Ji = "${}", Lu = /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;
|
|
4099
4098
|
function fe(t) {
|
|
4100
4099
|
const e = t.toString(), n = [], i = {
|
|
4101
4100
|
color: [],
|
|
@@ -4103,7 +4102,7 @@ function fe(t) {
|
|
|
4103
4102
|
var: []
|
|
4104
4103
|
}, r = [];
|
|
4105
4104
|
let o = 0;
|
|
4106
|
-
const a = e.replace(
|
|
4105
|
+
const a = e.replace(Lu, (l) => (K.test(l) ? (i.color.push(o), r.push(po), n.push(K.parse(l))) : l.startsWith(Ou) ? (i.var.push(o), r.push(Iu), n.push(l)) : (i.number.push(o), r.push(ho), n.push(parseFloat(l))), ++o, Ji)).split(Ji);
|
|
4107
4106
|
return { values: n, split: a, indexes: i, types: r };
|
|
4108
4107
|
}
|
|
4109
4108
|
function mo(t) {
|
|
@@ -4121,18 +4120,18 @@ function go(t) {
|
|
|
4121
4120
|
return o;
|
|
4122
4121
|
};
|
|
4123
4122
|
}
|
|
4124
|
-
const
|
|
4125
|
-
function
|
|
4123
|
+
const Nu = (t) => typeof t == "number" ? 0 : t;
|
|
4124
|
+
function Fu(t) {
|
|
4126
4125
|
const e = mo(t);
|
|
4127
|
-
return go(t)(e.map(
|
|
4126
|
+
return go(t)(e.map(Nu));
|
|
4128
4127
|
}
|
|
4129
4128
|
const xt = {
|
|
4130
|
-
test:
|
|
4129
|
+
test: _u,
|
|
4131
4130
|
parse: mo,
|
|
4132
4131
|
createTransformer: go,
|
|
4133
|
-
getAnimatableNone:
|
|
4134
|
-
},
|
|
4135
|
-
function
|
|
4132
|
+
getAnimatableNone: Fu
|
|
4133
|
+
}, Bu = /* @__PURE__ */ new Set(["brightness", "contrast", "saturate", "opacity"]);
|
|
4134
|
+
function ju(t) {
|
|
4136
4135
|
const [e, n] = t.slice(0, -1).split("(");
|
|
4137
4136
|
if (e === "drop-shadow")
|
|
4138
4137
|
return t;
|
|
@@ -4140,16 +4139,16 @@ function Uu(t) {
|
|
|
4140
4139
|
if (!i)
|
|
4141
4140
|
return t;
|
|
4142
4141
|
const r = n.replace(i, "");
|
|
4143
|
-
let o =
|
|
4142
|
+
let o = Bu.has(e) ? 1 : 0;
|
|
4144
4143
|
return i !== n && (o *= 100), e + "(" + o + r + ")";
|
|
4145
4144
|
}
|
|
4146
|
-
const
|
|
4145
|
+
const Uu = /\b([a-z-]*)\(.*?\)/gu, Tn = {
|
|
4147
4146
|
...xt,
|
|
4148
4147
|
getAnimatableNone: (t) => {
|
|
4149
|
-
const e = t.match(
|
|
4150
|
-
return e ? e.map(
|
|
4148
|
+
const e = t.match(Uu);
|
|
4149
|
+
return e ? e.map(ju).join(" ") : t;
|
|
4151
4150
|
}
|
|
4152
|
-
},
|
|
4151
|
+
}, Wu = {
|
|
4153
4152
|
...Yn,
|
|
4154
4153
|
// Color props
|
|
4155
4154
|
color: K,
|
|
@@ -4165,17 +4164,17 @@ const Wu = /\b([a-z-]*)\(.*?\)/gu, Tn = {
|
|
|
4165
4164
|
borderLeftColor: K,
|
|
4166
4165
|
filter: Tn,
|
|
4167
4166
|
WebkitFilter: Tn
|
|
4168
|
-
}, hi = (t) =>
|
|
4167
|
+
}, hi = (t) => Wu[t];
|
|
4169
4168
|
function vo(t, e) {
|
|
4170
4169
|
let n = hi(t);
|
|
4171
4170
|
return n !== Tn && (n = xt), n.getAnimatableNone ? n.getAnimatableNone(e) : void 0;
|
|
4172
4171
|
}
|
|
4173
|
-
const
|
|
4174
|
-
function
|
|
4172
|
+
const Hu = /* @__PURE__ */ new Set(["auto", "none", "0"]);
|
|
4173
|
+
function Gu(t, e, n) {
|
|
4175
4174
|
let i = 0, r;
|
|
4176
4175
|
for (; i < t.length && !r; ) {
|
|
4177
4176
|
const o = t[i];
|
|
4178
|
-
typeof o == "string" && !
|
|
4177
|
+
typeof o == "string" && !Hu.has(o) && fe(o).values.length && (r = t[i]), i++;
|
|
4179
4178
|
}
|
|
4180
4179
|
if (r && n)
|
|
4181
4180
|
for (const o of e)
|
|
@@ -4191,10 +4190,10 @@ const Qi = (t) => t === qt || t === D, tr = (t, e) => parseFloat(t.split(", ")[e
|
|
|
4191
4190
|
const o = i.match(/^matrix\((.+)\)$/u);
|
|
4192
4191
|
return o ? tr(o[1], t) : 0;
|
|
4193
4192
|
}
|
|
4194
|
-
},
|
|
4195
|
-
function
|
|
4193
|
+
}, $u = /* @__PURE__ */ new Set(["x", "y", "z"]), zu = zt.filter((t) => !$u.has(t));
|
|
4194
|
+
function qu(t) {
|
|
4196
4195
|
const e = [];
|
|
4197
|
-
return
|
|
4196
|
+
return zu.forEach((n) => {
|
|
4198
4197
|
const i = t.getValue(n);
|
|
4199
4198
|
i !== void 0 && (e.push([n, i.get()]), i.set(n.startsWith("scale") ? 1 : 0));
|
|
4200
4199
|
}), e;
|
|
@@ -4219,7 +4218,7 @@ function yo() {
|
|
|
4219
4218
|
if (wn) {
|
|
4220
4219
|
const t = Array.from(kt).filter((i) => i.needsMeasurement), e = new Set(t.map((i) => i.element)), n = /* @__PURE__ */ new Map();
|
|
4221
4220
|
e.forEach((i) => {
|
|
4222
|
-
const r =
|
|
4221
|
+
const r = qu(i);
|
|
4223
4222
|
r.length && (n.set(i, r), i.render());
|
|
4224
4223
|
}), t.forEach((i) => i.measureInitialState()), e.forEach((i) => {
|
|
4225
4224
|
i.render();
|
|
@@ -4239,7 +4238,7 @@ function bo() {
|
|
|
4239
4238
|
t.readKeyframes(), t.needsMeasurement && (wn = !0);
|
|
4240
4239
|
});
|
|
4241
4240
|
}
|
|
4242
|
-
function
|
|
4241
|
+
function Ku() {
|
|
4243
4242
|
bo(), yo();
|
|
4244
4243
|
}
|
|
4245
4244
|
class pi {
|
|
@@ -4283,21 +4282,21 @@ class pi {
|
|
|
4283
4282
|
this.isComplete || this.scheduleResolve();
|
|
4284
4283
|
}
|
|
4285
4284
|
}
|
|
4286
|
-
const To = (t) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),
|
|
4285
|
+
const To = (t) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t), Xu = (
|
|
4287
4286
|
// eslint-disable-next-line redos-detector/no-unsafe-regex -- false positive, as it can match a lot of words
|
|
4288
4287
|
/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u
|
|
4289
4288
|
);
|
|
4290
|
-
function
|
|
4291
|
-
const e =
|
|
4289
|
+
function Yu(t) {
|
|
4290
|
+
const e = Xu.exec(t);
|
|
4292
4291
|
if (!e)
|
|
4293
4292
|
return [,];
|
|
4294
4293
|
const [, n, i, r] = e;
|
|
4295
4294
|
return [`--${n ?? i}`, r];
|
|
4296
4295
|
}
|
|
4297
|
-
const
|
|
4296
|
+
const Zu = 4;
|
|
4298
4297
|
function xo(t, e, n = 1) {
|
|
4299
|
-
bt(n <=
|
|
4300
|
-
const [i, r] =
|
|
4298
|
+
bt(n <= Zu, `Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);
|
|
4299
|
+
const [i, r] = Yu(t);
|
|
4301
4300
|
if (!i)
|
|
4302
4301
|
return;
|
|
4303
4302
|
const o = window.getComputedStyle(e).getPropertyValue(i);
|
|
@@ -4307,10 +4306,10 @@ function xo(t, e, n = 1) {
|
|
|
4307
4306
|
}
|
|
4308
4307
|
return Xn(r) ? xo(r, e, n + 1) : r;
|
|
4309
4308
|
}
|
|
4310
|
-
const wo = (t) => (e) => e.test(t),
|
|
4309
|
+
const wo = (t) => (e) => e.test(t), Ju = {
|
|
4311
4310
|
test: (t) => t === "auto",
|
|
4312
4311
|
parse: (t) => t
|
|
4313
|
-
}, Co = [qt, D, at, vt,
|
|
4312
|
+
}, Co = [qt, D, at, vt, qc, zc, Ju], nr = (t) => Co.find(wo(t));
|
|
4314
4313
|
class Ao extends pi {
|
|
4315
4314
|
constructor(e, n, i, r, o) {
|
|
4316
4315
|
super(e, n, i, r, o, !0);
|
|
@@ -4342,8 +4341,8 @@ class Ao extends pi {
|
|
|
4342
4341
|
resolveNoneKeyframes() {
|
|
4343
4342
|
const { unresolvedKeyframes: e, name: n } = this, i = [];
|
|
4344
4343
|
for (let r = 0; r < e.length; r++)
|
|
4345
|
-
|
|
4346
|
-
i.length &&
|
|
4344
|
+
Pu(e[r]) && i.push(r);
|
|
4345
|
+
i.length && Gu(e, i, n);
|
|
4347
4346
|
}
|
|
4348
4347
|
measureInitialState() {
|
|
4349
4348
|
const { element: e, unresolvedKeyframes: n, name: i } = this;
|
|
@@ -4369,7 +4368,7 @@ class Ao extends pi {
|
|
|
4369
4368
|
const ir = (t, e) => e === "zIndex" ? !1 : !!(typeof t == "number" || Array.isArray(t) || typeof t == "string" && // It's animatable if we have a string
|
|
4370
4369
|
(xt.test(t) || t === "0") && // And it contains numbers and/or colors
|
|
4371
4370
|
!t.startsWith("url("));
|
|
4372
|
-
function
|
|
4371
|
+
function Qu(t) {
|
|
4373
4372
|
const e = t[0];
|
|
4374
4373
|
if (t.length === 1)
|
|
4375
4374
|
return !0;
|
|
@@ -4377,21 +4376,21 @@ function td(t) {
|
|
|
4377
4376
|
if (t[n] !== e)
|
|
4378
4377
|
return !0;
|
|
4379
4378
|
}
|
|
4380
|
-
function
|
|
4379
|
+
function td(t, e, n, i) {
|
|
4381
4380
|
const r = t[0];
|
|
4382
4381
|
if (r === null)
|
|
4383
4382
|
return !1;
|
|
4384
4383
|
if (e === "display" || e === "visibility")
|
|
4385
4384
|
return !0;
|
|
4386
4385
|
const o = t[t.length - 1], s = ir(r, e), a = ir(o, e);
|
|
4387
|
-
return $t(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 :
|
|
4386
|
+
return $t(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 : Qu(t) || (n === "spring" || ai(n)) && i;
|
|
4388
4387
|
}
|
|
4389
|
-
const
|
|
4388
|
+
const ed = (t) => t !== null;
|
|
4390
4389
|
function qe(t, { repeat: e, repeatType: n = "loop" }, i) {
|
|
4391
|
-
const r = t.filter(
|
|
4390
|
+
const r = t.filter(ed), o = e && n !== "loop" && e % 2 === 1 ? 0 : r.length - 1;
|
|
4392
4391
|
return !o || i === void 0 ? r[o] : i;
|
|
4393
4392
|
}
|
|
4394
|
-
const
|
|
4393
|
+
const nd = 40;
|
|
4395
4394
|
class So {
|
|
4396
4395
|
constructor({ autoplay: e = !0, delay: n = 0, type: i = "keyframes", repeat: r = 0, repeatDelay: o = 0, repeatType: s = "loop", ...a }) {
|
|
4397
4396
|
this.isStopped = !1, this.hasAttemptedResolve = !1, this.createdAt = lt.now(), this.options = {
|
|
@@ -4415,7 +4414,7 @@ class So {
|
|
|
4415
4414
|
* to avoid a sudden jump into the animation.
|
|
4416
4415
|
*/
|
|
4417
4416
|
calcStartTime() {
|
|
4418
|
-
return this.resolvedAt ? this.resolvedAt - this.createdAt >
|
|
4417
|
+
return this.resolvedAt ? this.resolvedAt - this.createdAt > nd ? this.resolvedAt : this.createdAt : this.createdAt;
|
|
4419
4418
|
}
|
|
4420
4419
|
/**
|
|
4421
4420
|
* A getter for resolved data. If keyframes are not yet resolved, accessing
|
|
@@ -4423,7 +4422,7 @@ class So {
|
|
|
4423
4422
|
* This is a deoptimisation, but at its worst still batches read/writes.
|
|
4424
4423
|
*/
|
|
4425
4424
|
get resolved() {
|
|
4426
|
-
return !this._resolved && !this.hasAttemptedResolve &&
|
|
4425
|
+
return !this._resolved && !this.hasAttemptedResolve && Ku(), this._resolved;
|
|
4427
4426
|
}
|
|
4428
4427
|
/**
|
|
4429
4428
|
* A method to be called when the keyframes resolver completes. This method
|
|
@@ -4433,7 +4432,7 @@ class So {
|
|
|
4433
4432
|
onKeyframesResolved(e, n) {
|
|
4434
4433
|
this.resolvedAt = lt.now(), this.hasAttemptedResolve = !0;
|
|
4435
4434
|
const { name: i, type: r, velocity: o, delay: s, onComplete: a, onUpdate: l, isGenerator: c } = this.options;
|
|
4436
|
-
if (!c && !
|
|
4435
|
+
if (!c && !td(e, i, r, o))
|
|
4437
4436
|
if (s)
|
|
4438
4437
|
this.options.duration = 0;
|
|
4439
4438
|
else {
|
|
@@ -4479,7 +4478,7 @@ const U = (t, e, n) => t + (e - t) * n;
|
|
|
4479
4478
|
function en(t, e, n) {
|
|
4480
4479
|
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;
|
|
4481
4480
|
}
|
|
4482
|
-
function
|
|
4481
|
+
function id({ hue: t, saturation: e, lightness: n, alpha: i }) {
|
|
4483
4482
|
t /= 360, e /= 100, n /= 100;
|
|
4484
4483
|
let r = 0, o = 0, s = 0;
|
|
4485
4484
|
if (!e)
|
|
@@ -4501,13 +4500,13 @@ function Ie(t, e) {
|
|
|
4501
4500
|
const nn = (t, e, n) => {
|
|
4502
4501
|
const i = t * t, r = n * (e * e - i) + i;
|
|
4503
4502
|
return r < 0 ? 0 : Math.sqrt(r);
|
|
4504
|
-
},
|
|
4503
|
+
}, rd = [bn, Dt, Nt], sd = (t) => rd.find((e) => e.test(t));
|
|
4505
4504
|
function rr(t) {
|
|
4506
|
-
const e =
|
|
4505
|
+
const e = sd(t);
|
|
4507
4506
|
if ($t(!!e, `'${t}' is not an animatable color. Use the equivalent color code instead.`), !e)
|
|
4508
4507
|
return !1;
|
|
4509
4508
|
let n = e.parse(t);
|
|
4510
|
-
return e === Nt && (n =
|
|
4509
|
+
return e === Nt && (n = id(n)), n;
|
|
4511
4510
|
}
|
|
4512
4511
|
const sr = (t, e) => {
|
|
4513
4512
|
const n = rr(t), i = rr(e);
|
|
@@ -4515,15 +4514,15 @@ const sr = (t, e) => {
|
|
|
4515
4514
|
return Ie(t, e);
|
|
4516
4515
|
const r = { ...n };
|
|
4517
4516
|
return (o) => (r.red = nn(n.red, i.red, o), r.green = nn(n.green, i.green, o), r.blue = nn(n.blue, i.blue, o), r.alpha = U(n.alpha, i.alpha, o), Dt.transform(r));
|
|
4518
|
-
},
|
|
4519
|
-
function
|
|
4517
|
+
}, od = (t, e) => (n) => e(t(n)), ye = (...t) => t.reduce(od), An = /* @__PURE__ */ new Set(["none", "hidden"]);
|
|
4518
|
+
function ad(t, e) {
|
|
4520
4519
|
return An.has(t) ? (n) => n <= 0 ? t : e : (n) => n >= 1 ? e : t;
|
|
4521
4520
|
}
|
|
4522
|
-
function
|
|
4521
|
+
function ld(t, e) {
|
|
4523
4522
|
return (n) => U(t, e, n);
|
|
4524
4523
|
}
|
|
4525
4524
|
function mi(t) {
|
|
4526
|
-
return typeof t == "number" ?
|
|
4525
|
+
return typeof t == "number" ? ld : typeof t == "string" ? Xn(t) ? Ie : K.test(t) ? sr : dd : Array.isArray(t) ? Po : typeof t == "object" ? K.test(t) ? sr : cd : Ie;
|
|
4527
4526
|
}
|
|
4528
4527
|
function Po(t, e) {
|
|
4529
4528
|
const n = [...t], i = n.length, r = t.map((o, s) => mi(o)(o, e[s]));
|
|
@@ -4533,7 +4532,7 @@ function Po(t, e) {
|
|
|
4533
4532
|
return n;
|
|
4534
4533
|
};
|
|
4535
4534
|
}
|
|
4536
|
-
function
|
|
4535
|
+
function cd(t, e) {
|
|
4537
4536
|
const n = { ...t, ...e }, i = {};
|
|
4538
4537
|
for (const r in n)
|
|
4539
4538
|
t[r] !== void 0 && e[r] !== void 0 && (i[r] = mi(t[r])(t[r], e[r]));
|
|
@@ -4543,7 +4542,7 @@ function ud(t, e) {
|
|
|
4543
4542
|
return n;
|
|
4544
4543
|
};
|
|
4545
4544
|
}
|
|
4546
|
-
function
|
|
4545
|
+
function ud(t, e) {
|
|
4547
4546
|
var n;
|
|
4548
4547
|
const i = [], r = { color: 0, var: 0, number: 0 };
|
|
4549
4548
|
for (let o = 0; o < e.values.length; o++) {
|
|
@@ -4552,16 +4551,16 @@ function dd(t, e) {
|
|
|
4552
4551
|
}
|
|
4553
4552
|
return i;
|
|
4554
4553
|
}
|
|
4555
|
-
const
|
|
4554
|
+
const dd = (t, e) => {
|
|
4556
4555
|
const n = xt.createTransformer(e), i = fe(t), r = fe(e);
|
|
4557
|
-
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 ? An.has(t) && !r.values.length || An.has(e) && !i.values.length ?
|
|
4556
|
+
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 ? An.has(t) && !r.values.length || An.has(e) && !i.values.length ? ad(t, e) : ye(Po(ud(i, r), r.values), n) : ($t(!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.`), Ie(t, e));
|
|
4558
4557
|
};
|
|
4559
4558
|
function Ro(t, e, n) {
|
|
4560
4559
|
return typeof t == "number" && typeof e == "number" && typeof n == "number" ? U(t, e, n) : mi(t)(t, e);
|
|
4561
4560
|
}
|
|
4562
|
-
const
|
|
4561
|
+
const fd = 5;
|
|
4563
4562
|
function Do(t, e, n) {
|
|
4564
|
-
const i = Math.max(e -
|
|
4563
|
+
const i = Math.max(e - fd, 0);
|
|
4565
4564
|
return Zs(n - t(i), e - i);
|
|
4566
4565
|
}
|
|
4567
4566
|
const j = {
|
|
@@ -4593,7 +4592,7 @@ const j = {
|
|
|
4593
4592
|
minDamping: 0.05,
|
|
4594
4593
|
maxDamping: 1
|
|
4595
4594
|
}, rn = 1e-3;
|
|
4596
|
-
function
|
|
4595
|
+
function hd({ duration: t = j.duration, bounce: e = j.bounce, velocity: n = j.velocity, mass: i = j.mass }) {
|
|
4597
4596
|
let r, o;
|
|
4598
4597
|
$t(t <= /* @__PURE__ */ ct(j.maxDuration), "Spring duration must be 10 seconds or less");
|
|
4599
4598
|
let s = 1 - e;
|
|
@@ -4610,7 +4609,7 @@ function pd({ duration: t = j.duration, bounce: e = j.bounce, velocity: n = j.ve
|
|
|
4610
4609
|
const u = Math.exp(-c * t), d = (n - c) * (t * t);
|
|
4611
4610
|
return u * d;
|
|
4612
4611
|
});
|
|
4613
|
-
const a = 5 / t, l =
|
|
4612
|
+
const a = 5 / t, l = md(r, o, a);
|
|
4614
4613
|
if (t = /* @__PURE__ */ ct(t), isNaN(l))
|
|
4615
4614
|
return {
|
|
4616
4615
|
stiffness: j.stiffness,
|
|
@@ -4626,21 +4625,21 @@ function pd({ duration: t = j.duration, bounce: e = j.bounce, velocity: n = j.ve
|
|
|
4626
4625
|
};
|
|
4627
4626
|
}
|
|
4628
4627
|
}
|
|
4629
|
-
const
|
|
4630
|
-
function
|
|
4628
|
+
const pd = 12;
|
|
4629
|
+
function md(t, e, n) {
|
|
4631
4630
|
let i = n;
|
|
4632
|
-
for (let r = 1; r <
|
|
4631
|
+
for (let r = 1; r < pd; r++)
|
|
4633
4632
|
i = i - t(i) / e(i);
|
|
4634
4633
|
return i;
|
|
4635
4634
|
}
|
|
4636
4635
|
function Sn(t, e) {
|
|
4637
4636
|
return t * Math.sqrt(1 - e * e);
|
|
4638
4637
|
}
|
|
4639
|
-
const
|
|
4638
|
+
const gd = ["duration", "bounce"], vd = ["stiffness", "damping", "mass"];
|
|
4640
4639
|
function or(t, e) {
|
|
4641
4640
|
return e.some((n) => t[n] !== void 0);
|
|
4642
4641
|
}
|
|
4643
|
-
function
|
|
4642
|
+
function yd(t) {
|
|
4644
4643
|
let e = {
|
|
4645
4644
|
velocity: j.velocity,
|
|
4646
4645
|
stiffness: j.stiffness,
|
|
@@ -4649,7 +4648,7 @@ function bd(t) {
|
|
|
4649
4648
|
isResolvedFromDuration: !1,
|
|
4650
4649
|
...t
|
|
4651
4650
|
};
|
|
4652
|
-
if (!or(t,
|
|
4651
|
+
if (!or(t, vd) && or(t, gd))
|
|
4653
4652
|
if (t.visualDuration) {
|
|
4654
4653
|
const n = t.visualDuration, i = 2 * Math.PI / (n * 1.2), r = i * i, o = 2 * ht(0.05, 1, 1 - (t.bounce || 0)) * Math.sqrt(r);
|
|
4655
4654
|
e = {
|
|
@@ -4659,7 +4658,7 @@ function bd(t) {
|
|
|
4659
4658
|
damping: o
|
|
4660
4659
|
};
|
|
4661
4660
|
} else {
|
|
4662
|
-
const n =
|
|
4661
|
+
const n = hd(t);
|
|
4663
4662
|
e = {
|
|
4664
4663
|
...e,
|
|
4665
4664
|
...n,
|
|
@@ -4675,7 +4674,7 @@ function ko(t = j.visualDuration, e = j.bounce) {
|
|
|
4675
4674
|
bounce: e
|
|
4676
4675
|
} : t;
|
|
4677
4676
|
let { restSpeed: i, restDelta: r } = n;
|
|
4678
|
-
const o = n.keyframes[0], s = n.keyframes[n.keyframes.length - 1], a = { done: !1, value: o }, { stiffness: l, damping: c, mass: u, duration: d, velocity: h, isResolvedFromDuration: p } =
|
|
4677
|
+
const o = n.keyframes[0], s = n.keyframes[n.keyframes.length - 1], a = { done: !1, value: o }, { stiffness: l, damping: c, mass: u, duration: d, velocity: h, isResolvedFromDuration: p } = yd({
|
|
4679
4678
|
...n,
|
|
4680
4679
|
velocity: -/* @__PURE__ */ ft(n.velocity || 0)
|
|
4681
4680
|
}), T = h || 0, y = c / (2 * Math.sqrt(l * u)), v = s - o, x = /* @__PURE__ */ ft(Math.sqrt(l / u)), C = Math.abs(v) < 5;
|
|
@@ -4749,11 +4748,11 @@ function ar({ keyframes: t, velocity: e = 0, power: n = 0.8, timeConstant: i = 3
|
|
|
4749
4748
|
}
|
|
4750
4749
|
};
|
|
4751
4750
|
}
|
|
4752
|
-
const
|
|
4751
|
+
const bd = /* @__PURE__ */ ve(0.42, 0, 1, 1), Td = /* @__PURE__ */ ve(0, 0, 0.58, 1), Mo = /* @__PURE__ */ ve(0.42, 0, 0.58, 1), xd = (t) => Array.isArray(t) && typeof t[0] != "number", lr = {
|
|
4753
4752
|
linear: Y,
|
|
4754
|
-
easeIn:
|
|
4753
|
+
easeIn: bd,
|
|
4755
4754
|
easeInOut: Mo,
|
|
4756
|
-
easeOut:
|
|
4755
|
+
easeOut: Td,
|
|
4757
4756
|
circIn: ui,
|
|
4758
4757
|
circInOut: co,
|
|
4759
4758
|
circOut: lo,
|
|
@@ -4770,7 +4769,7 @@ const Td = /* @__PURE__ */ ve(0.42, 0, 1, 1), xd = /* @__PURE__ */ ve(0, 0, 0.58
|
|
|
4770
4769
|
return bt(lr[t] !== void 0, `Invalid easing type '${t}'`), lr[t];
|
|
4771
4770
|
return t;
|
|
4772
4771
|
};
|
|
4773
|
-
function
|
|
4772
|
+
function wd(t, e, n) {
|
|
4774
4773
|
const i = [], r = n || Ro, o = t.length - 1;
|
|
4775
4774
|
for (let s = 0; s < o; s++) {
|
|
4776
4775
|
let a = r(t[s], t[s + 1]);
|
|
@@ -4782,7 +4781,7 @@ function Cd(t, e, n) {
|
|
|
4782
4781
|
}
|
|
4783
4782
|
return i;
|
|
4784
4783
|
}
|
|
4785
|
-
function
|
|
4784
|
+
function Cd(t, e, { clamp: n = !0, ease: i, mixer: r } = {}) {
|
|
4786
4785
|
const o = t.length;
|
|
4787
4786
|
if (bt(o === e.length, "Both input and output ranges must be the same length"), o === 1)
|
|
4788
4787
|
return () => e[0];
|
|
@@ -4790,7 +4789,7 @@ function Ad(t, e, { clamp: n = !0, ease: i, mixer: r } = {}) {
|
|
|
4790
4789
|
return () => e[1];
|
|
4791
4790
|
const s = t[0] === t[1];
|
|
4792
4791
|
t[0] > t[o - 1] && (t = [...t].reverse(), e = [...e].reverse());
|
|
4793
|
-
const a =
|
|
4792
|
+
const a = wd(e, i, r), l = a.length, c = (u) => {
|
|
4794
4793
|
if (s && u < t[0])
|
|
4795
4794
|
return e[0];
|
|
4796
4795
|
let d = 0;
|
|
@@ -4802,41 +4801,41 @@ function Ad(t, e, { clamp: n = !0, ease: i, mixer: r } = {}) {
|
|
|
4802
4801
|
};
|
|
4803
4802
|
return n ? (u) => c(ht(t[0], t[o - 1], u)) : c;
|
|
4804
4803
|
}
|
|
4805
|
-
function
|
|
4804
|
+
function Ad(t, e) {
|
|
4806
4805
|
const n = t[t.length - 1];
|
|
4807
4806
|
for (let i = 1; i <= e; i++) {
|
|
4808
4807
|
const r = /* @__PURE__ */ Wt(0, e, i);
|
|
4809
4808
|
t.push(U(n, 1, r));
|
|
4810
4809
|
}
|
|
4811
4810
|
}
|
|
4812
|
-
function
|
|
4811
|
+
function Sd(t) {
|
|
4813
4812
|
const e = [0];
|
|
4814
|
-
return
|
|
4813
|
+
return Ad(e, t.length - 1), e;
|
|
4815
4814
|
}
|
|
4816
|
-
function
|
|
4815
|
+
function Ed(t, e) {
|
|
4817
4816
|
return t.map((n) => n * e);
|
|
4818
4817
|
}
|
|
4819
|
-
function
|
|
4818
|
+
function Pd(t, e) {
|
|
4820
4819
|
return t.map(() => e || Mo).splice(0, t.length - 1);
|
|
4821
4820
|
}
|
|
4822
4821
|
function Oe({ duration: t = 300, keyframes: e, times: n, ease: i = "easeInOut" }) {
|
|
4823
|
-
const r =
|
|
4822
|
+
const r = xd(i) ? i.map(cr) : cr(i), o = {
|
|
4824
4823
|
done: !1,
|
|
4825
4824
|
value: e[0]
|
|
4826
|
-
}, s =
|
|
4825
|
+
}, s = Ed(
|
|
4827
4826
|
// Only use the provided offsets if they're the correct length
|
|
4828
4827
|
// TODO Maybe we should warn here if there's a length mismatch
|
|
4829
|
-
n && n.length === e.length ? n :
|
|
4828
|
+
n && n.length === e.length ? n : Sd(e),
|
|
4830
4829
|
t
|
|
4831
|
-
), a =
|
|
4832
|
-
ease: Array.isArray(r) ? r :
|
|
4830
|
+
), a = Cd(s, e, {
|
|
4831
|
+
ease: Array.isArray(r) ? r : Pd(e, r)
|
|
4833
4832
|
});
|
|
4834
4833
|
return {
|
|
4835
4834
|
calculatedDuration: t,
|
|
4836
4835
|
next: (l) => (o.value = a(l), o.done = l >= t, o)
|
|
4837
4836
|
};
|
|
4838
4837
|
}
|
|
4839
|
-
const
|
|
4838
|
+
const Rd = (t) => {
|
|
4840
4839
|
const e = ({ timestamp: n }) => t(n);
|
|
4841
4840
|
return {
|
|
4842
4841
|
start: () => B.update(e, !0),
|
|
@@ -4847,13 +4846,13 @@ const Dd = (t) => {
|
|
|
4847
4846
|
*/
|
|
4848
4847
|
now: () => z.isProcessing ? z.timestamp : lt.now()
|
|
4849
4848
|
};
|
|
4850
|
-
},
|
|
4849
|
+
}, Dd = {
|
|
4851
4850
|
decay: ar,
|
|
4852
4851
|
inertia: ar,
|
|
4853
4852
|
tween: Oe,
|
|
4854
4853
|
keyframes: Oe,
|
|
4855
4854
|
spring: ko
|
|
4856
|
-
},
|
|
4855
|
+
}, kd = (t) => t / 100;
|
|
4857
4856
|
class gi extends So {
|
|
4858
4857
|
constructor(e) {
|
|
4859
4858
|
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 = () => {
|
|
@@ -4870,9 +4869,9 @@ class gi extends So {
|
|
|
4870
4869
|
super.flatten(), this._resolved && Object.assign(this._resolved, this.initPlayback(this._resolved.keyframes));
|
|
4871
4870
|
}
|
|
4872
4871
|
initPlayback(e) {
|
|
4873
|
-
const { type: n = "keyframes", repeat: i = 0, repeatDelay: r = 0, repeatType: o, velocity: s = 0 } = this.options, a = ai(n) ? n :
|
|
4872
|
+
const { type: n = "keyframes", repeat: i = 0, repeatDelay: r = 0, repeatType: o, velocity: s = 0 } = this.options, a = ai(n) ? n : Dd[n] || Oe;
|
|
4874
4873
|
let l, c;
|
|
4875
|
-
a !== Oe && typeof e[0] != "number" && (process.env.NODE_ENV !== "production" && bt(e.length === 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${e}`), l = ye(
|
|
4874
|
+
a !== Oe && typeof e[0] != "number" && (process.env.NODE_ENV !== "production" && bt(e.length === 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${e}`), l = ye(kd, Ro(e[0], e[1])), e = [0, 100]);
|
|
4876
4875
|
const u = a({ ...this.options, keyframes: e });
|
|
4877
4876
|
o === "mirror" && (c = a({
|
|
4878
4877
|
...this.options,
|
|
@@ -4943,7 +4942,7 @@ class gi extends So {
|
|
|
4943
4942
|
}
|
|
4944
4943
|
if (this.isStopped)
|
|
4945
4944
|
return;
|
|
4946
|
-
const { driver: e =
|
|
4945
|
+
const { driver: e = Rd, onPlay: n, startTime: i } = this.options;
|
|
4947
4946
|
this.driver || (this.driver = e((o) => this.tick(o))), n && n();
|
|
4948
4947
|
const r = this.driver.now();
|
|
4949
4948
|
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();
|
|
@@ -4977,7 +4976,7 @@ class gi extends So {
|
|
|
4977
4976
|
return this.startTime = 0, this.tick(e, !0);
|
|
4978
4977
|
}
|
|
4979
4978
|
}
|
|
4980
|
-
const
|
|
4979
|
+
const Md = /* @__PURE__ */ new Set([
|
|
4981
4980
|
"opacity",
|
|
4982
4981
|
"clipPath",
|
|
4983
4982
|
"filter",
|
|
@@ -4986,7 +4985,7 @@ const Vd = /* @__PURE__ */ new Set([
|
|
|
4986
4985
|
// or until we implement support for linear() easing.
|
|
4987
4986
|
// "background-color"
|
|
4988
4987
|
]);
|
|
4989
|
-
function
|
|
4988
|
+
function Vd(t, e, n, { delay: i = 0, duration: r = 300, repeat: o = 0, repeatType: s = "loop", ease: a = "easeInOut", times: l } = {}) {
|
|
4990
4989
|
const c = { [e]: n };
|
|
4991
4990
|
l && (c.offset = l);
|
|
4992
4991
|
const u = eo(a, r);
|
|
@@ -4999,11 +4998,11 @@ function _d(t, e, n, { delay: i = 0, duration: r = 300, repeat: o = 0, repeatTyp
|
|
|
4999
4998
|
direction: s === "reverse" ? "alternate" : "normal"
|
|
5000
4999
|
});
|
|
5001
5000
|
}
|
|
5002
|
-
const
|
|
5003
|
-
function
|
|
5001
|
+
const _d = /* @__PURE__ */ oi(() => Object.hasOwnProperty.call(Element.prototype, "animate")), Le = 10, Id = 2e4;
|
|
5002
|
+
function Od(t) {
|
|
5004
5003
|
return ai(t.type) || t.type === "spring" || !to(t.ease);
|
|
5005
5004
|
}
|
|
5006
|
-
function
|
|
5005
|
+
function Ld(t, e) {
|
|
5007
5006
|
const n = new gi({
|
|
5008
5007
|
...e,
|
|
5009
5008
|
keyframes: t,
|
|
@@ -5014,7 +5013,7 @@ function Nd(t, e) {
|
|
|
5014
5013
|
let i = { done: !1, value: t[0] };
|
|
5015
5014
|
const r = [];
|
|
5016
5015
|
let o = 0;
|
|
5017
|
-
for (; !i.done && o <
|
|
5016
|
+
for (; !i.done && o < Id; )
|
|
5018
5017
|
i = n.sample(o), r.push(i.value), o += Le;
|
|
5019
5018
|
return {
|
|
5020
5019
|
times: void 0,
|
|
@@ -5028,7 +5027,7 @@ const Vo = {
|
|
|
5028
5027
|
backInOut: oo,
|
|
5029
5028
|
circInOut: co
|
|
5030
5029
|
};
|
|
5031
|
-
function
|
|
5030
|
+
function Nd(t) {
|
|
5032
5031
|
return t in Vo;
|
|
5033
5032
|
}
|
|
5034
5033
|
class ur extends So {
|
|
@@ -5041,11 +5040,11 @@ class ur extends So {
|
|
|
5041
5040
|
let { duration: i = 300, times: r, ease: o, type: s, motionValue: a, name: l, startTime: c } = this.options;
|
|
5042
5041
|
if (!a.owner || !a.owner.current)
|
|
5043
5042
|
return !1;
|
|
5044
|
-
if (typeof o == "string" && _e() &&
|
|
5045
|
-
const { onComplete: d, onUpdate: h, motionValue: p, element: T, ...y } = this.options, v =
|
|
5043
|
+
if (typeof o == "string" && _e() && Nd(o) && (o = Vo[o]), Od(this.options)) {
|
|
5044
|
+
const { onComplete: d, onUpdate: h, motionValue: p, element: T, ...y } = this.options, v = Ld(e, y);
|
|
5046
5045
|
e = v.keyframes, e.length === 1 && (e[1] = e[0]), i = v.duration, r = v.times, o = v.ease, s = "keyframes";
|
|
5047
5046
|
}
|
|
5048
|
-
const u =
|
|
5047
|
+
const u = Vd(a.owner.current, l, e, { ...this.options, duration: i, times: r, ease: o });
|
|
5049
5048
|
return u.startTime = c ?? this.calcStartTime(), this.pendingTimeline ? (Zi(u, this.pendingTimeline), this.pendingTimeline = void 0) : u.onfinish = () => {
|
|
5050
5049
|
const { onComplete: d } = this.options;
|
|
5051
5050
|
a.set(qe(e, this.options, n)), d && d(), this.cancel(), this.resolveFinishedPromise();
|
|
@@ -5177,32 +5176,32 @@ class ur extends So {
|
|
|
5177
5176
|
if (!n || !n.owner || !(n.owner.current instanceof HTMLElement))
|
|
5178
5177
|
return !1;
|
|
5179
5178
|
const { onUpdate: l, transformTemplate: c } = n.owner.getProps();
|
|
5180
|
-
return
|
|
5179
|
+
return _d() && i && Md.has(i) && /**
|
|
5181
5180
|
* If we're outputting values to onUpdate then we can't use WAAPI as there's
|
|
5182
5181
|
* no way to read the value from WAAPI every frame.
|
|
5183
5182
|
*/
|
|
5184
5183
|
!l && !c && !r && o !== "mirror" && s !== 0 && a !== "inertia";
|
|
5185
5184
|
}
|
|
5186
5185
|
}
|
|
5187
|
-
const
|
|
5186
|
+
const Fd = {
|
|
5188
5187
|
type: "spring",
|
|
5189
5188
|
stiffness: 500,
|
|
5190
5189
|
damping: 25,
|
|
5191
5190
|
restSpeed: 10
|
|
5192
|
-
},
|
|
5191
|
+
}, Bd = (t) => ({
|
|
5193
5192
|
type: "spring",
|
|
5194
5193
|
stiffness: 550,
|
|
5195
5194
|
damping: t === 0 ? 2 * Math.sqrt(550) : 30,
|
|
5196
5195
|
restSpeed: 10
|
|
5197
|
-
}),
|
|
5196
|
+
}), jd = {
|
|
5198
5197
|
type: "keyframes",
|
|
5199
5198
|
duration: 0.8
|
|
5200
|
-
},
|
|
5199
|
+
}, Ud = {
|
|
5201
5200
|
type: "keyframes",
|
|
5202
5201
|
ease: [0.25, 0.1, 0.35, 1],
|
|
5203
5202
|
duration: 0.3
|
|
5204
|
-
},
|
|
5205
|
-
function
|
|
5203
|
+
}, Wd = (t, { keyframes: e }) => e.length > 2 ? jd : Vt.has(t) ? t.startsWith("scale") ? Bd(e[1]) : Fd : Ud;
|
|
5204
|
+
function Hd({ when: t, delay: e, delayChildren: n, staggerChildren: i, staggerDirection: r, repeat: o, repeatType: s, repeatDelay: a, from: l, elapsed: c, ...u }) {
|
|
5206
5205
|
return !!Object.keys(u).length;
|
|
5207
5206
|
}
|
|
5208
5207
|
const vi = (t, e, n, i = {}, r, o) => (s) => {
|
|
@@ -5225,9 +5224,9 @@ const vi = (t, e, n, i = {}, r, o) => (s) => {
|
|
|
5225
5224
|
motionValue: e,
|
|
5226
5225
|
element: o ? void 0 : r
|
|
5227
5226
|
};
|
|
5228
|
-
|
|
5227
|
+
Hd(a) || (u = {
|
|
5229
5228
|
...u,
|
|
5230
|
-
...
|
|
5229
|
+
...Wd(t, u)
|
|
5231
5230
|
}), u.duration && (u.duration = /* @__PURE__ */ ct(u.duration)), u.repeatDelay && (u.repeatDelay = /* @__PURE__ */ ct(u.repeatDelay)), u.from !== void 0 && (u.keyframes[0] = u.from);
|
|
5232
5231
|
let d = !1;
|
|
5233
5232
|
if ((u.type === !1 || u.duration === 0 && !u.repeatDelay) && (u.duration = 0, u.delay === 0 && (d = !0)), d && !o && e.get() !== void 0) {
|
|
@@ -5235,11 +5234,11 @@ const vi = (t, e, n, i = {}, r, o) => (s) => {
|
|
|
5235
5234
|
if (h !== void 0)
|
|
5236
5235
|
return B.update(() => {
|
|
5237
5236
|
u.onUpdate(h), u.onComplete();
|
|
5238
|
-
}), new
|
|
5237
|
+
}), new xu([]);
|
|
5239
5238
|
}
|
|
5240
5239
|
return !o && ur.supports(u) ? new ur(u) : new gi(u);
|
|
5241
5240
|
};
|
|
5242
|
-
function
|
|
5241
|
+
function Gd({ protectedKeys: t, needsAnimating: e }, n) {
|
|
5243
5242
|
const i = t.hasOwnProperty(n) && e[n] !== !0;
|
|
5244
5243
|
return e[n] = !1, i;
|
|
5245
5244
|
}
|
|
@@ -5250,7 +5249,7 @@ function _o(t, e, { delay: n = 0, transitionOverride: i, type: r } = {}) {
|
|
|
5250
5249
|
const c = [], u = r && t.animationState && t.animationState.getState()[r];
|
|
5251
5250
|
for (const d in l) {
|
|
5252
5251
|
const h = t.getValue(d, (o = t.latestValues[d]) !== null && o !== void 0 ? o : null), p = l[d];
|
|
5253
|
-
if (p === void 0 || u &&
|
|
5252
|
+
if (p === void 0 || u && Gd(u, d))
|
|
5254
5253
|
continue;
|
|
5255
5254
|
const T = {
|
|
5256
5255
|
delay: n,
|
|
@@ -5270,7 +5269,7 @@ function _o(t, e, { delay: n = 0, transitionOverride: i, type: r } = {}) {
|
|
|
5270
5269
|
}
|
|
5271
5270
|
return a && Promise.all(c).then(() => {
|
|
5272
5271
|
B.update(() => {
|
|
5273
|
-
a &&
|
|
5272
|
+
a && vu(t, a);
|
|
5274
5273
|
});
|
|
5275
5274
|
}), c;
|
|
5276
5275
|
}
|
|
@@ -5281,7 +5280,7 @@ function En(t, e, n = {}) {
|
|
|
5281
5280
|
n.transitionOverride && (o = n.transitionOverride);
|
|
5282
5281
|
const s = r ? () => Promise.all(_o(t, r, n)) : () => Promise.resolve(), a = t.variantChildren && t.variantChildren.size ? (c = 0) => {
|
|
5283
5282
|
const { delayChildren: u = 0, staggerChildren: d, staggerDirection: h } = o;
|
|
5284
|
-
return
|
|
5283
|
+
return $d(t, e, u + c, d, h, n);
|
|
5285
5284
|
} : () => Promise.resolve(), { when: l } = o;
|
|
5286
5285
|
if (l) {
|
|
5287
5286
|
const [c, u] = l === "beforeChildren" ? [s, a] : [a, s];
|
|
@@ -5289,19 +5288,19 @@ function En(t, e, n = {}) {
|
|
|
5289
5288
|
} else
|
|
5290
5289
|
return Promise.all([s(), a(n.delay)]);
|
|
5291
5290
|
}
|
|
5292
|
-
function
|
|
5291
|
+
function $d(t, e, n = 0, i = 0, r = 1, o) {
|
|
5293
5292
|
const s = [], a = (t.variantChildren.size - 1) * i, l = r === 1 ? (c = 0) => c * i : (c = 0) => a - c * i;
|
|
5294
|
-
return Array.from(t.variantChildren).sort(
|
|
5293
|
+
return Array.from(t.variantChildren).sort(zd).forEach((c, u) => {
|
|
5295
5294
|
c.notify("AnimationStart", e), s.push(En(c, e, {
|
|
5296
5295
|
...o,
|
|
5297
5296
|
delay: n + l(u)
|
|
5298
5297
|
}).then(() => c.notify("AnimationComplete", e)));
|
|
5299
5298
|
}), Promise.all(s);
|
|
5300
5299
|
}
|
|
5301
|
-
function
|
|
5300
|
+
function zd(t, e) {
|
|
5302
5301
|
return t.sortNodePosition(e);
|
|
5303
5302
|
}
|
|
5304
|
-
function
|
|
5303
|
+
function qd(t, e, n = {}) {
|
|
5305
5304
|
t.notify("AnimationStart", e);
|
|
5306
5305
|
let i;
|
|
5307
5306
|
if (Array.isArray(e)) {
|
|
@@ -5317,7 +5316,7 @@ function Kd(t, e, n = {}) {
|
|
|
5317
5316
|
t.notify("AnimationComplete", e);
|
|
5318
5317
|
});
|
|
5319
5318
|
}
|
|
5320
|
-
const
|
|
5319
|
+
const Kd = Gn.length;
|
|
5321
5320
|
function Io(t) {
|
|
5322
5321
|
if (!t)
|
|
5323
5322
|
return;
|
|
@@ -5326,18 +5325,18 @@ function Io(t) {
|
|
|
5326
5325
|
return t.props.initial !== void 0 && (n.initial = t.props.initial), n;
|
|
5327
5326
|
}
|
|
5328
5327
|
const e = {};
|
|
5329
|
-
for (let n = 0; n <
|
|
5328
|
+
for (let n = 0; n < Kd; n++) {
|
|
5330
5329
|
const i = Gn[n], r = t.props[i];
|
|
5331
5330
|
(ce(r) || r === !1) && (e[i] = r);
|
|
5332
5331
|
}
|
|
5333
5332
|
return e;
|
|
5334
5333
|
}
|
|
5335
|
-
const
|
|
5336
|
-
function
|
|
5337
|
-
return (e) => Promise.all(e.map(({ animation: n, options: i }) =>
|
|
5334
|
+
const Xd = [...Hn].reverse(), Yd = Hn.length;
|
|
5335
|
+
function Zd(t) {
|
|
5336
|
+
return (e) => Promise.all(e.map(({ animation: n, options: i }) => qd(t, n, i)));
|
|
5338
5337
|
}
|
|
5339
|
-
function
|
|
5340
|
-
let e =
|
|
5338
|
+
function Jd(t) {
|
|
5339
|
+
let e = Zd(t), n = dr(), i = !0;
|
|
5341
5340
|
const r = (l) => (c, u) => {
|
|
5342
5341
|
var d;
|
|
5343
5342
|
const h = ze(t, u, l === "exit" ? (d = t.presenceContext) === null || d === void 0 ? void 0 : d.custom : void 0);
|
|
@@ -5353,8 +5352,8 @@ function Qd(t) {
|
|
|
5353
5352
|
function s(l) {
|
|
5354
5353
|
const { props: c } = t, u = Io(t.parent) || {}, d = [], h = /* @__PURE__ */ new Set();
|
|
5355
5354
|
let p = {}, T = 1 / 0;
|
|
5356
|
-
for (let v = 0; v <
|
|
5357
|
-
const x =
|
|
5355
|
+
for (let v = 0; v < Yd; v++) {
|
|
5356
|
+
const x = Xd[v], C = n[x], A = c[x] !== void 0 ? c[x] : u[x], S = ce(A), f = x === l ? C.isActive : null;
|
|
5358
5357
|
f === !1 && (T = v);
|
|
5359
5358
|
let m = A === u[x] && A !== c[x] && S;
|
|
5360
5359
|
if (m && i && t.manuallyAnimateOnMount && (m = !1), C.protectedKeys = { ...p }, // If it isn't active and hasn't *just* been set as inactive
|
|
@@ -5362,7 +5361,7 @@ function Qd(t) {
|
|
|
5362
5361
|
!A && !C.prevProp || // Or if the prop doesn't define an animation
|
|
5363
5362
|
Ge(A) || typeof A == "boolean")
|
|
5364
5363
|
continue;
|
|
5365
|
-
const b =
|
|
5364
|
+
const b = Qd(C.prevProp, A);
|
|
5366
5365
|
let w = b || // If we're making this variant active, we want to always make it active
|
|
5367
5366
|
x === l && C.isActive && !m && S || // If we removed a higher-priority variant (i is in reverse order)
|
|
5368
5367
|
v > T && S, P = !1;
|
|
@@ -5422,7 +5421,7 @@ function Qd(t) {
|
|
|
5422
5421
|
}
|
|
5423
5422
|
};
|
|
5424
5423
|
}
|
|
5425
|
-
function
|
|
5424
|
+
function Qd(t, e) {
|
|
5426
5425
|
return typeof e == "string" ? e !== t : Array.isArray(e) ? !Xs(e, t) : !1;
|
|
5427
5426
|
}
|
|
5428
5427
|
function Et(t = !1) {
|
|
@@ -5451,14 +5450,14 @@ class At {
|
|
|
5451
5450
|
update() {
|
|
5452
5451
|
}
|
|
5453
5452
|
}
|
|
5454
|
-
class
|
|
5453
|
+
class tf extends At {
|
|
5455
5454
|
/**
|
|
5456
5455
|
* We dynamically generate the AnimationState manager as it contains a reference
|
|
5457
5456
|
* to the underlying animation library. We only want to load that if we load this,
|
|
5458
5457
|
* so people can optionally code split it out using the `m` component.
|
|
5459
5458
|
*/
|
|
5460
5459
|
constructor(e) {
|
|
5461
|
-
super(e), e.animationState || (e.animationState =
|
|
5460
|
+
super(e), e.animationState || (e.animationState = Jd(e));
|
|
5462
5461
|
}
|
|
5463
5462
|
updateAnimationControlsSubscription() {
|
|
5464
5463
|
const { animate: e } = this.node.getProps();
|
|
@@ -5479,10 +5478,10 @@ class ef extends At {
|
|
|
5479
5478
|
this.node.animationState.reset(), (e = this.unmountControls) === null || e === void 0 || e.call(this);
|
|
5480
5479
|
}
|
|
5481
5480
|
}
|
|
5482
|
-
let
|
|
5483
|
-
class
|
|
5481
|
+
let ef = 0;
|
|
5482
|
+
class nf extends At {
|
|
5484
5483
|
constructor() {
|
|
5485
|
-
super(...arguments), this.id =
|
|
5484
|
+
super(...arguments), this.id = ef++;
|
|
5486
5485
|
}
|
|
5487
5486
|
update() {
|
|
5488
5487
|
if (!this.node.presenceContext)
|
|
@@ -5500,12 +5499,12 @@ class rf extends At {
|
|
|
5500
5499
|
unmount() {
|
|
5501
5500
|
}
|
|
5502
5501
|
}
|
|
5503
|
-
const
|
|
5502
|
+
const rf = {
|
|
5504
5503
|
animation: {
|
|
5505
|
-
Feature:
|
|
5504
|
+
Feature: tf
|
|
5506
5505
|
},
|
|
5507
5506
|
exit: {
|
|
5508
|
-
Feature:
|
|
5507
|
+
Feature: nf
|
|
5509
5508
|
}
|
|
5510
5509
|
}, ot = {
|
|
5511
5510
|
x: !1,
|
|
@@ -5514,7 +5513,7 @@ const sf = {
|
|
|
5514
5513
|
function Oo() {
|
|
5515
5514
|
return ot.x || ot.y;
|
|
5516
5515
|
}
|
|
5517
|
-
function
|
|
5516
|
+
function sf(t) {
|
|
5518
5517
|
return t === "x" || t === "y" ? ot[t] ? null : (ot[t] = !0, () => {
|
|
5519
5518
|
ot[t] = !1;
|
|
5520
5519
|
}) : ot.x || ot.y ? null : (ot.x = ot.y = !0, () => {
|
|
@@ -5533,12 +5532,12 @@ function be(t) {
|
|
|
5533
5532
|
}
|
|
5534
5533
|
};
|
|
5535
5534
|
}
|
|
5536
|
-
const
|
|
5535
|
+
const of = (t) => (e) => yi(e) && t(e, be(e));
|
|
5537
5536
|
function se(t, e, n, i) {
|
|
5538
|
-
return he(t, e,
|
|
5537
|
+
return he(t, e, of(n), i);
|
|
5539
5538
|
}
|
|
5540
5539
|
const fr = (t, e) => Math.abs(t - e);
|
|
5541
|
-
function
|
|
5540
|
+
function af(t, e) {
|
|
5542
5541
|
const n = fr(t.x, e.x), i = fr(t.y, e.y);
|
|
5543
5542
|
return Math.sqrt(n ** 2 + i ** 2);
|
|
5544
5543
|
}
|
|
@@ -5547,7 +5546,7 @@ class Lo {
|
|
|
5547
5546
|
if (this.startEvent = null, this.lastMoveEvent = null, this.lastMoveEventInfo = null, this.handlers = {}, this.contextWindow = window, this.updatePoint = () => {
|
|
5548
5547
|
if (!(this.lastMoveEvent && this.lastMoveEventInfo))
|
|
5549
5548
|
return;
|
|
5550
|
-
const d = on(this.lastMoveEventInfo, this.history), h = this.startEvent !== null, p =
|
|
5549
|
+
const d = on(this.lastMoveEventInfo, this.history), h = this.startEvent !== null, p = af(d.offset, { x: 0, y: 0 }) >= 3;
|
|
5551
5550
|
if (!h && !p)
|
|
5552
5551
|
return;
|
|
5553
5552
|
const { point: T } = d, { timestamp: y } = z;
|
|
@@ -5588,17 +5587,17 @@ function on({ point: t }, e) {
|
|
|
5588
5587
|
return {
|
|
5589
5588
|
point: t,
|
|
5590
5589
|
delta: hr(t, No(e)),
|
|
5591
|
-
offset: hr(t,
|
|
5592
|
-
velocity:
|
|
5590
|
+
offset: hr(t, lf(e)),
|
|
5591
|
+
velocity: cf(e, 0.1)
|
|
5593
5592
|
};
|
|
5594
5593
|
}
|
|
5595
|
-
function
|
|
5594
|
+
function lf(t) {
|
|
5596
5595
|
return t[0];
|
|
5597
5596
|
}
|
|
5598
5597
|
function No(t) {
|
|
5599
5598
|
return t[t.length - 1];
|
|
5600
5599
|
}
|
|
5601
|
-
function
|
|
5600
|
+
function cf(t, e) {
|
|
5602
5601
|
if (t.length < 2)
|
|
5603
5602
|
return { x: 0, y: 0 };
|
|
5604
5603
|
let n = t.length - 1, i = null;
|
|
@@ -5616,15 +5615,15 @@ function uf(t, e) {
|
|
|
5616
5615
|
};
|
|
5617
5616
|
return s.x === 1 / 0 && (s.x = 0), s.y === 1 / 0 && (s.y = 0), s;
|
|
5618
5617
|
}
|
|
5619
|
-
const Fo = 1e-4,
|
|
5618
|
+
const Fo = 1e-4, uf = 1 - Fo, df = 1 + Fo, Bo = 0.01, ff = 0 - Bo, hf = 0 + Bo;
|
|
5620
5619
|
function Z(t) {
|
|
5621
5620
|
return t.max - t.min;
|
|
5622
5621
|
}
|
|
5623
|
-
function
|
|
5622
|
+
function pf(t, e, n) {
|
|
5624
5623
|
return Math.abs(t - e) <= n;
|
|
5625
5624
|
}
|
|
5626
5625
|
function pr(t, e, n, i = 0.5) {
|
|
5627
|
-
t.origin = i, t.originPoint = U(e.min, e.max, t.origin), t.scale = Z(n) / Z(e), t.translate = U(n.min, n.max, t.origin) - t.originPoint, (t.scale >=
|
|
5626
|
+
t.origin = i, t.originPoint = U(e.min, e.max, t.origin), t.scale = Z(n) / Z(e), t.translate = U(n.min, n.max, t.origin) - t.originPoint, (t.scale >= uf && t.scale <= df || isNaN(t.scale)) && (t.scale = 1), (t.translate >= ff && t.translate <= hf || isNaN(t.translate)) && (t.translate = 0);
|
|
5628
5627
|
}
|
|
5629
5628
|
function oe(t, e, n, i) {
|
|
5630
5629
|
pr(t.x, e.x, n.x, i ? i.originX : void 0), pr(t.y, e.y, n.y, i ? i.originY : void 0);
|
|
@@ -5632,7 +5631,7 @@ function oe(t, e, n, i) {
|
|
|
5632
5631
|
function mr(t, e, n) {
|
|
5633
5632
|
t.min = n.min + e.min, t.max = t.min + Z(e);
|
|
5634
5633
|
}
|
|
5635
|
-
function
|
|
5634
|
+
function mf(t, e, n) {
|
|
5636
5635
|
mr(t.x, e.x, n.x), mr(t.y, e.y, n.y);
|
|
5637
5636
|
}
|
|
5638
5637
|
function gr(t, e, n) {
|
|
@@ -5641,7 +5640,7 @@ function gr(t, e, n) {
|
|
|
5641
5640
|
function ae(t, e, n) {
|
|
5642
5641
|
gr(t.x, e.x, n.x), gr(t.y, e.y, n.y);
|
|
5643
5642
|
}
|
|
5644
|
-
function
|
|
5643
|
+
function gf(t, { min: e, max: n }, i) {
|
|
5645
5644
|
return e !== void 0 && t < e ? t = i ? U(e, t, i.min) : Math.max(t, e) : n !== void 0 && t > n && (t = i ? U(n, t, i.max) : Math.min(t, n)), t;
|
|
5646
5645
|
}
|
|
5647
5646
|
function vr(t, e, n) {
|
|
@@ -5650,7 +5649,7 @@ function vr(t, e, n) {
|
|
|
5650
5649
|
max: n !== void 0 ? t.max + n - (t.max - t.min) : void 0
|
|
5651
5650
|
};
|
|
5652
5651
|
}
|
|
5653
|
-
function
|
|
5652
|
+
function vf(t, { top: e, left: n, bottom: i, right: r }) {
|
|
5654
5653
|
return {
|
|
5655
5654
|
x: vr(t.x, n, r),
|
|
5656
5655
|
y: vr(t.y, e, i)
|
|
@@ -5660,23 +5659,23 @@ function yr(t, e) {
|
|
|
5660
5659
|
let n = e.min - t.min, i = e.max - t.max;
|
|
5661
5660
|
return e.max - e.min < t.max - t.min && ([n, i] = [i, n]), { min: n, max: i };
|
|
5662
5661
|
}
|
|
5663
|
-
function
|
|
5662
|
+
function yf(t, e) {
|
|
5664
5663
|
return {
|
|
5665
5664
|
x: yr(t.x, e.x),
|
|
5666
5665
|
y: yr(t.y, e.y)
|
|
5667
5666
|
};
|
|
5668
5667
|
}
|
|
5669
|
-
function
|
|
5668
|
+
function bf(t, e) {
|
|
5670
5669
|
let n = 0.5;
|
|
5671
5670
|
const i = Z(t), r = Z(e);
|
|
5672
5671
|
return r > i ? n = /* @__PURE__ */ Wt(e.min, e.max - i, t.min) : i > r && (n = /* @__PURE__ */ Wt(t.min, t.max - r, e.min)), ht(0, 1, n);
|
|
5673
5672
|
}
|
|
5674
|
-
function
|
|
5673
|
+
function Tf(t, e) {
|
|
5675
5674
|
const n = {};
|
|
5676
5675
|
return e.min !== void 0 && (n.min = e.min - t.min), e.max !== void 0 && (n.max = e.max - t.min), n;
|
|
5677
5676
|
}
|
|
5678
5677
|
const Pn = 0.35;
|
|
5679
|
-
function
|
|
5678
|
+
function xf(t = Pn) {
|
|
5680
5679
|
return t === !1 ? t = 0 : t === !0 && (t = Pn), {
|
|
5681
5680
|
x: br(t, "left", "right"),
|
|
5682
5681
|
y: br(t, "top", "bottom")
|
|
@@ -5712,10 +5711,10 @@ function jo({ top: t, left: e, right: n, bottom: i }) {
|
|
|
5712
5711
|
y: { min: t, max: i }
|
|
5713
5712
|
};
|
|
5714
5713
|
}
|
|
5715
|
-
function
|
|
5714
|
+
function wf({ x: t, y: e }) {
|
|
5716
5715
|
return { top: e.min, right: t.max, bottom: e.max, left: t.min };
|
|
5717
5716
|
}
|
|
5718
|
-
function
|
|
5717
|
+
function Cf(t, e) {
|
|
5719
5718
|
if (!e)
|
|
5720
5719
|
return t;
|
|
5721
5720
|
const n = e({ x: t.left, y: t.top }), i = e({ x: t.right, y: t.bottom });
|
|
@@ -5755,7 +5754,7 @@ function Wo(t, { x: e, y: n }) {
|
|
|
5755
5754
|
Dn(t.x, e.translate, e.scale, e.originPoint), Dn(t.y, n.translate, n.scale, n.originPoint);
|
|
5756
5755
|
}
|
|
5757
5756
|
const Sr = 0.999999999999, Er = 1.0000000000001;
|
|
5758
|
-
function
|
|
5757
|
+
function Af(t, e, n, i = !1) {
|
|
5759
5758
|
const r = n.length;
|
|
5760
5759
|
if (!r)
|
|
5761
5760
|
return;
|
|
@@ -5782,14 +5781,14 @@ function jt(t, e) {
|
|
|
5782
5781
|
Pr(t.x, e.x, e.scaleX, e.scale, e.originX), Pr(t.y, e.y, e.scaleY, e.scale, e.originY);
|
|
5783
5782
|
}
|
|
5784
5783
|
function Ho(t, e) {
|
|
5785
|
-
return jo(
|
|
5784
|
+
return jo(Cf(t.getBoundingClientRect(), e));
|
|
5786
5785
|
}
|
|
5787
|
-
function
|
|
5786
|
+
function Sf(t, e, n) {
|
|
5788
5787
|
const i = Ho(t, n), { scroll: r } = e;
|
|
5789
5788
|
return r && (Bt(i.x, r.offset.x), Bt(i.y, r.offset.y)), i;
|
|
5790
5789
|
}
|
|
5791
|
-
const Go = ({ current: t }) => t ? t.ownerDocument.defaultView : null,
|
|
5792
|
-
class
|
|
5790
|
+
const Go = ({ current: t }) => t ? t.ownerDocument.defaultView : null, Ef = /* @__PURE__ */ new WeakMap();
|
|
5791
|
+
class Pf {
|
|
5793
5792
|
constructor(e) {
|
|
5794
5793
|
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;
|
|
5795
5794
|
}
|
|
@@ -5802,7 +5801,7 @@ class Rf {
|
|
|
5802
5801
|
d ? this.pauseAnimation() : this.stopAnimation(), n && this.snapToCursor(be(u).point);
|
|
5803
5802
|
}, o = (u, d) => {
|
|
5804
5803
|
const { drag: h, dragPropagation: p, onDragStart: T } = this.getProps();
|
|
5805
|
-
if (h && !p && (this.openDragLock && this.openDragLock(), this.openDragLock =
|
|
5804
|
+
if (h && !p && (this.openDragLock && this.openDragLock(), this.openDragLock = sf(h), !this.openDragLock))
|
|
5806
5805
|
return;
|
|
5807
5806
|
this.isDragging = !0, this.currentDirection = null, this.resolveConstraints(), this.visualElement.projection && (this.visualElement.projection.isAnimationBlocked = !0, this.visualElement.projection.target = void 0), it((v) => {
|
|
5808
5807
|
let x = this.getAxisMotionValue(v).get() || 0;
|
|
@@ -5823,7 +5822,7 @@ class Rf {
|
|
|
5823
5822
|
return;
|
|
5824
5823
|
const { offset: v } = d;
|
|
5825
5824
|
if (p && this.currentDirection === null) {
|
|
5826
|
-
this.currentDirection =
|
|
5825
|
+
this.currentDirection = Rf(v), this.currentDirection !== null && T && T(this.currentDirection);
|
|
5827
5826
|
return;
|
|
5828
5827
|
}
|
|
5829
5828
|
this.updateAxis("x", d.point, v), this.updateAxis("y", d.point, v), this.visualElement.render(), y && y(u, d);
|
|
@@ -5865,13 +5864,13 @@ class Rf {
|
|
|
5865
5864
|
return;
|
|
5866
5865
|
const o = this.getAxisMotionValue(e);
|
|
5867
5866
|
let s = this.originPoint[e] + i[e];
|
|
5868
|
-
this.constraints && this.constraints[e] && (s =
|
|
5867
|
+
this.constraints && this.constraints[e] && (s = gf(s, this.constraints[e], this.elastic[e])), o.set(s);
|
|
5869
5868
|
}
|
|
5870
5869
|
resolveConstraints() {
|
|
5871
5870
|
var e;
|
|
5872
5871
|
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;
|
|
5873
|
-
n && Lt(n) ? this.constraints || (this.constraints = this.resolveRefConstraints()) : n && r ? this.constraints =
|
|
5874
|
-
this.constraints !== !1 && this.getAxisMotionValue(s) && (this.constraints[s] =
|
|
5872
|
+
n && Lt(n) ? this.constraints || (this.constraints = this.resolveRefConstraints()) : n && r ? this.constraints = vf(r.layoutBox, n) : this.constraints = !1, this.elastic = xf(i), o !== this.constraints && r && this.constraints && !this.hasMutatedConstraints && it((s) => {
|
|
5873
|
+
this.constraints !== !1 && this.getAxisMotionValue(s) && (this.constraints[s] = Tf(r.layoutBox[s], this.constraints[s]));
|
|
5875
5874
|
});
|
|
5876
5875
|
}
|
|
5877
5876
|
resolveRefConstraints() {
|
|
@@ -5883,10 +5882,10 @@ class Rf {
|
|
|
5883
5882
|
const { projection: r } = this.visualElement;
|
|
5884
5883
|
if (!r || !r.layout)
|
|
5885
5884
|
return !1;
|
|
5886
|
-
const o =
|
|
5887
|
-
let s =
|
|
5885
|
+
const o = Sf(i, r.root, this.visualElement.getTransformPagePoint());
|
|
5886
|
+
let s = yf(r.layout.layoutBox, o);
|
|
5888
5887
|
if (n) {
|
|
5889
|
-
const a = n(
|
|
5888
|
+
const a = n(wf(s));
|
|
5890
5889
|
this.hasMutatedConstraints = !!a, a && (s = jo(a));
|
|
5891
5890
|
}
|
|
5892
5891
|
return s;
|
|
@@ -5968,7 +5967,7 @@ class Rf {
|
|
|
5968
5967
|
const a = this.getAxisMotionValue(s);
|
|
5969
5968
|
if (a && this.constraints !== !1) {
|
|
5970
5969
|
const l = a.get();
|
|
5971
|
-
r[s] =
|
|
5970
|
+
r[s] = bf({ min: l, max: l }, this.constraints[s]);
|
|
5972
5971
|
}
|
|
5973
5972
|
});
|
|
5974
5973
|
const { transformTemplate: o } = this.visualElement.getProps();
|
|
@@ -5982,7 +5981,7 @@ class Rf {
|
|
|
5982
5981
|
addListeners() {
|
|
5983
5982
|
if (!this.visualElement.current)
|
|
5984
5983
|
return;
|
|
5985
|
-
|
|
5984
|
+
Ef.set(this.visualElement, this);
|
|
5986
5985
|
const e = this.visualElement.current, n = se(e, "pointerdown", (l) => {
|
|
5987
5986
|
const { drag: c, dragListener: u = !0 } = this.getProps();
|
|
5988
5987
|
c && u && this.start(l);
|
|
@@ -6017,13 +6016,13 @@ class Rf {
|
|
|
6017
6016
|
function Ee(t, e, n) {
|
|
6018
6017
|
return (e === !0 || e === t) && (n === null || n === t);
|
|
6019
6018
|
}
|
|
6020
|
-
function
|
|
6019
|
+
function Rf(t, e = 10) {
|
|
6021
6020
|
let n = null;
|
|
6022
6021
|
return Math.abs(t.y) > e ? n = "y" : Math.abs(t.x) > e && (n = "x"), n;
|
|
6023
6022
|
}
|
|
6024
|
-
class
|
|
6023
|
+
class Df extends At {
|
|
6025
6024
|
constructor(e) {
|
|
6026
|
-
super(e), this.removeGroupControls = Y, this.removeListeners = Y, this.controls = new
|
|
6025
|
+
super(e), this.removeGroupControls = Y, this.removeListeners = Y, this.controls = new Pf(e);
|
|
6027
6026
|
}
|
|
6028
6027
|
mount() {
|
|
6029
6028
|
const { dragControls: e } = this.node.getProps();
|
|
@@ -6036,7 +6035,7 @@ class kf extends At {
|
|
|
6036
6035
|
const Rr = (t) => (e, n) => {
|
|
6037
6036
|
t && B.postRender(() => t(e, n));
|
|
6038
6037
|
};
|
|
6039
|
-
class
|
|
6038
|
+
class kf extends At {
|
|
6040
6039
|
constructor() {
|
|
6041
6040
|
super(...arguments), this.removePointerDownListener = Y;
|
|
6042
6041
|
}
|
|
@@ -6094,7 +6093,7 @@ const te = {
|
|
|
6094
6093
|
const n = Dr(t, e.target.x), i = Dr(t, e.target.y);
|
|
6095
6094
|
return `${n}% ${i}%`;
|
|
6096
6095
|
}
|
|
6097
|
-
},
|
|
6096
|
+
}, Mf = {
|
|
6098
6097
|
correct: (t, { treeScale: e, projectionDelta: n }) => {
|
|
6099
6098
|
const i = t, r = xt.parse(t);
|
|
6100
6099
|
if (r.length > 5)
|
|
@@ -6105,7 +6104,7 @@ const te = {
|
|
|
6105
6104
|
return typeof r[2 + s] == "number" && (r[2 + s] /= c), typeof r[3 + s] == "number" && (r[3 + s] /= c), o(r);
|
|
6106
6105
|
}
|
|
6107
6106
|
};
|
|
6108
|
-
class
|
|
6107
|
+
class Vf extends Ua {
|
|
6109
6108
|
/**
|
|
6110
6109
|
* This only mounts projection nodes for components that
|
|
6111
6110
|
* need measuring, we might want to do it for all components
|
|
@@ -6113,7 +6112,7 @@ class _f extends Ua {
|
|
|
6113
6112
|
*/
|
|
6114
6113
|
componentDidMount() {
|
|
6115
6114
|
const { visualElement: e, layoutGroup: n, switchLayoutGroup: i, layoutId: r } = this.props, { projection: o } = e;
|
|
6116
|
-
|
|
6115
|
+
iu(_f), o && (n.group && n.group.add(o), i && i.register && r && i.register(o), o.root.didUpdate(), o.addEventListener("animationComplete", () => {
|
|
6117
6116
|
this.safeToRemove();
|
|
6118
6117
|
}), o.setOptions({
|
|
6119
6118
|
...o.options,
|
|
@@ -6147,9 +6146,9 @@ class _f extends Ua {
|
|
|
6147
6146
|
}
|
|
6148
6147
|
function $o(t) {
|
|
6149
6148
|
const [e, n] = Ds(), i = G(Bn);
|
|
6150
|
-
return Mt(
|
|
6149
|
+
return Mt(Vf, { ...t, layoutGroup: i, switchLayoutGroup: G(Ls), isPresent: e, safeToRemove: n });
|
|
6151
6150
|
}
|
|
6152
|
-
const
|
|
6151
|
+
const _f = {
|
|
6153
6152
|
borderRadius: {
|
|
6154
6153
|
...te,
|
|
6155
6154
|
applyTo: [
|
|
@@ -6163,17 +6162,17 @@ const If = {
|
|
|
6163
6162
|
borderTopRightRadius: te,
|
|
6164
6163
|
borderBottomLeftRadius: te,
|
|
6165
6164
|
borderBottomRightRadius: te,
|
|
6166
|
-
boxShadow:
|
|
6165
|
+
boxShadow: Mf
|
|
6167
6166
|
};
|
|
6168
|
-
function
|
|
6167
|
+
function If(t, e, n) {
|
|
6169
6168
|
const i = X(t) ? t : de(t);
|
|
6170
6169
|
return i.start(vi("", i, e, n)), i.animation;
|
|
6171
6170
|
}
|
|
6172
|
-
function
|
|
6171
|
+
function Of(t) {
|
|
6173
6172
|
return t instanceof SVGElement && t.tagName !== "svg";
|
|
6174
6173
|
}
|
|
6175
|
-
const
|
|
6176
|
-
class
|
|
6174
|
+
const Lf = (t, e) => t.depth - e.depth;
|
|
6175
|
+
class Nf {
|
|
6177
6176
|
constructor() {
|
|
6178
6177
|
this.children = [], this.isDirty = !1;
|
|
6179
6178
|
}
|
|
@@ -6184,25 +6183,25 @@ class Ff {
|
|
|
6184
6183
|
ri(this.children, e), this.isDirty = !0;
|
|
6185
6184
|
}
|
|
6186
6185
|
forEach(e) {
|
|
6187
|
-
this.isDirty && this.children.sort(
|
|
6186
|
+
this.isDirty && this.children.sort(Lf), this.isDirty = !1, this.children.forEach(e);
|
|
6188
6187
|
}
|
|
6189
6188
|
}
|
|
6190
|
-
function
|
|
6189
|
+
function Ff(t, e) {
|
|
6191
6190
|
const n = lt.now(), i = ({ timestamp: r }) => {
|
|
6192
6191
|
const o = r - n;
|
|
6193
6192
|
o >= e && (Tt(i), t(o - e));
|
|
6194
6193
|
};
|
|
6195
6194
|
return B.read(i, !0), () => Tt(i);
|
|
6196
6195
|
}
|
|
6197
|
-
const zo = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"],
|
|
6198
|
-
function
|
|
6196
|
+
const zo = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"], Bf = zo.length, kr = (t) => typeof t == "string" ? parseFloat(t) : t, Mr = (t) => typeof t == "number" || D.test(t);
|
|
6197
|
+
function jf(t, e, n, i, r, o) {
|
|
6199
6198
|
r ? (t.opacity = U(
|
|
6200
6199
|
0,
|
|
6201
6200
|
// TODO Reinstate this if only child
|
|
6202
6201
|
n.opacity !== void 0 ? n.opacity : 1,
|
|
6203
|
-
|
|
6204
|
-
), t.opacityExit = U(e.opacity !== void 0 ? e.opacity : 1, 0,
|
|
6205
|
-
for (let s = 0; s <
|
|
6202
|
+
Uf(i)
|
|
6203
|
+
), t.opacityExit = U(e.opacity !== void 0 ? e.opacity : 1, 0, Wf(i))) : o && (t.opacity = U(e.opacity !== void 0 ? e.opacity : 1, n.opacity !== void 0 ? n.opacity : 1, i));
|
|
6204
|
+
for (let s = 0; s < Bf; s++) {
|
|
6206
6205
|
const a = `border${zo[s]}Radius`;
|
|
6207
6206
|
let l = Vr(e, a), c = Vr(n, a);
|
|
6208
6207
|
if (l === void 0 && c === void 0)
|
|
@@ -6214,7 +6213,7 @@ function Uf(t, e, n, i, r, o) {
|
|
|
6214
6213
|
function Vr(t, e) {
|
|
6215
6214
|
return t[e] !== void 0 ? t[e] : t.borderRadius;
|
|
6216
6215
|
}
|
|
6217
|
-
const
|
|
6216
|
+
const Uf = /* @__PURE__ */ qo(0, 0.5, lo), Wf = /* @__PURE__ */ qo(0.5, 0.95, Y);
|
|
6218
6217
|
function qo(t, e, n) {
|
|
6219
6218
|
return (i) => i < t ? 0 : i > e ? 1 : n(/* @__PURE__ */ Wt(t, e, i));
|
|
6220
6219
|
}
|
|
@@ -6230,18 +6229,18 @@ function Ir(t, e) {
|
|
|
6230
6229
|
function Or(t, e, n, i, r) {
|
|
6231
6230
|
return t -= e, t = Ne(t, 1 / n, i), r !== void 0 && (t = Ne(t, 1 / r, i)), t;
|
|
6232
6231
|
}
|
|
6233
|
-
function
|
|
6232
|
+
function Hf(t, e = 0, n = 1, i = 0.5, r, o = t, s = t) {
|
|
6234
6233
|
if (at.test(e) && (e = parseFloat(e), e = U(s.min, s.max, e / 100) - s.min), typeof e != "number")
|
|
6235
6234
|
return;
|
|
6236
6235
|
let a = U(o.min, o.max, i);
|
|
6237
6236
|
t === o && (a -= e), t.min = Or(t.min, e, n, a, r), t.max = Or(t.max, e, n, a, r);
|
|
6238
6237
|
}
|
|
6239
6238
|
function Lr(t, e, [n, i, r], o, s) {
|
|
6240
|
-
|
|
6239
|
+
Hf(t, e[n], e[i], e[r], e.scale, o, s);
|
|
6241
6240
|
}
|
|
6242
|
-
const
|
|
6241
|
+
const Gf = ["x", "scaleX", "originX"], $f = ["y", "scaleY", "originY"];
|
|
6243
6242
|
function Nr(t, e, n, i) {
|
|
6244
|
-
Lr(t.x, e,
|
|
6243
|
+
Lr(t.x, e, Gf, n ? n.x : void 0, i ? i.x : void 0), Lr(t.y, e, $f, n ? n.y : void 0, i ? i.y : void 0);
|
|
6245
6244
|
}
|
|
6246
6245
|
function Fr(t) {
|
|
6247
6246
|
return t.translate === 0 && t.scale === 1;
|
|
@@ -6252,7 +6251,7 @@ function Ko(t) {
|
|
|
6252
6251
|
function Br(t, e) {
|
|
6253
6252
|
return t.min === e.min && t.max === e.max;
|
|
6254
6253
|
}
|
|
6255
|
-
function
|
|
6254
|
+
function zf(t, e) {
|
|
6256
6255
|
return Br(t.x, e.x) && Br(t.y, e.y);
|
|
6257
6256
|
}
|
|
6258
6257
|
function jr(t, e) {
|
|
@@ -6267,7 +6266,7 @@ function Ur(t) {
|
|
|
6267
6266
|
function Wr(t, e) {
|
|
6268
6267
|
return t.translate === e.translate && t.scale === e.scale && t.originPoint === e.originPoint;
|
|
6269
6268
|
}
|
|
6270
|
-
class
|
|
6269
|
+
class qf {
|
|
6271
6270
|
constructor() {
|
|
6272
6271
|
this.members = [];
|
|
6273
6272
|
}
|
|
@@ -6321,7 +6320,7 @@ class Kf {
|
|
|
6321
6320
|
this.lead && this.lead.snapshot && (this.lead.snapshot = void 0);
|
|
6322
6321
|
}
|
|
6323
6322
|
}
|
|
6324
|
-
function
|
|
6323
|
+
function Kf(t, e, n) {
|
|
6325
6324
|
let i = "";
|
|
6326
6325
|
const r = t.x.translate / e.x, o = t.y.translate / e.y, s = n?.z || 0;
|
|
6327
6326
|
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) {
|
|
@@ -6336,8 +6335,8 @@ const Rt = {
|
|
|
6336
6335
|
totalNodes: 0,
|
|
6337
6336
|
resolvedTargetDeltas: 0,
|
|
6338
6337
|
recalculatedProjection: 0
|
|
6339
|
-
}, ne = typeof window < "u" && window.MotionDebug !== void 0, ln = ["", "X", "Y", "Z"],
|
|
6340
|
-
let
|
|
6338
|
+
}, ne = typeof window < "u" && window.MotionDebug !== void 0, ln = ["", "X", "Y", "Z"], Xf = { visibility: "hidden" }, Hr = 1e3;
|
|
6339
|
+
let Yf = 0;
|
|
6341
6340
|
function cn(t, e, n, i) {
|
|
6342
6341
|
const { latestValues: r } = e;
|
|
6343
6342
|
r[t] && (n[t] = r[t], e.setStaticValue(t, 0), i && (i[t] = 0));
|
|
@@ -6359,14 +6358,14 @@ function Yo(t) {
|
|
|
6359
6358
|
function Zo({ attachResizeListener: t, defaultParent: e, measureScroll: n, checkIsScrollRoot: i, resetTransform: r }) {
|
|
6360
6359
|
return class {
|
|
6361
6360
|
constructor(s = {}, a = e?.()) {
|
|
6362
|
-
this.id =
|
|
6361
|
+
this.id = Yf++, 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 = () => {
|
|
6363
6362
|
this.isUpdating && (this.isUpdating = !1, this.clearAllSnapshots());
|
|
6364
6363
|
}, this.updateProjection = () => {
|
|
6365
|
-
this.projectionUpdateScheduled = !1, ne && (Rt.totalNodes = Rt.resolvedTargetDeltas = Rt.recalculatedProjection = 0), this.nodes.forEach(
|
|
6364
|
+
this.projectionUpdateScheduled = !1, ne && (Rt.totalNodes = Rt.resolvedTargetDeltas = Rt.recalculatedProjection = 0), this.nodes.forEach(Qf), this.nodes.forEach(rh), this.nodes.forEach(sh), this.nodes.forEach(th), ne && window.MotionDebug.record(Rt);
|
|
6366
6365
|
}, 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;
|
|
6367
6366
|
for (let l = 0; l < this.path.length; l++)
|
|
6368
6367
|
this.path[l].shouldResetTransform = !0;
|
|
6369
|
-
this.root === this && (this.nodes = new
|
|
6368
|
+
this.root === this && (this.nodes = new Nf());
|
|
6370
6369
|
}
|
|
6371
6370
|
addEventListener(s, a) {
|
|
6372
6371
|
return this.eventHandlers.has(s) || this.eventHandlers.set(s, new si()), this.eventHandlers.get(s).add(a);
|
|
@@ -6384,13 +6383,13 @@ function Zo({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
6384
6383
|
mount(s, a = this.root.hasTreeAnimated) {
|
|
6385
6384
|
if (this.instance)
|
|
6386
6385
|
return;
|
|
6387
|
-
this.isSVG =
|
|
6386
|
+
this.isSVG = Of(s), this.instance = s;
|
|
6388
6387
|
const { layoutId: l, layout: c, visualElement: u } = this.options;
|
|
6389
6388
|
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) {
|
|
6390
6389
|
let d;
|
|
6391
6390
|
const h = () => this.root.updateBlockedByResize = !1;
|
|
6392
6391
|
t(s, () => {
|
|
6393
|
-
this.root.updateBlockedByResize = !0, d && d(), d =
|
|
6392
|
+
this.root.updateBlockedByResize = !0, d && d(), d = Ff(h, 250), De.hasAnimatedSinceResize && (De.hasAnimatedSinceResize = !1, this.nodes.forEach($r));
|
|
6394
6393
|
});
|
|
6395
6394
|
}
|
|
6396
6395
|
l && this.root.registerSharedNode(l, this), this.options.animate !== !1 && u && (l || c) && this.addEventListener("didUpdate", ({ delta: d, hasLayoutChanged: h, hasRelativeTargetChanged: p, layout: T }) => {
|
|
@@ -6398,7 +6397,7 @@ function Zo({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
6398
6397
|
this.target = void 0, this.relativeTarget = void 0;
|
|
6399
6398
|
return;
|
|
6400
6399
|
}
|
|
6401
|
-
const y = this.options.transition || u.getDefaultTransition() ||
|
|
6400
|
+
const y = this.options.transition || u.getDefaultTransition() || uh, { onLayoutAnimationStart: v, onLayoutAnimationComplete: x } = u.getProps(), C = !this.targetLayout || !Xo(this.targetLayout, T) || p, A = !h && p;
|
|
6402
6401
|
if (this.options.layoutRoot || this.resumeFrom && this.resumeFrom.instance || A || h && (C || !this.currentAnimation)) {
|
|
6403
6402
|
this.resumeFrom && (this.resumingFrom = this.resumeFrom, this.resumingFrom.resumingFrom = void 0), this.setAnimationOrigin(d, A);
|
|
6404
6403
|
const S = {
|
|
@@ -6432,7 +6431,7 @@ function Zo({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
6432
6431
|
}
|
|
6433
6432
|
// Note: currently only running on root node
|
|
6434
6433
|
startUpdate() {
|
|
6435
|
-
this.isUpdateBlocked() || (this.isUpdating = !0, this.nodes && this.nodes.forEach(
|
|
6434
|
+
this.isUpdateBlocked() || (this.isUpdating = !0, this.nodes && this.nodes.forEach(oh), this.animationId++);
|
|
6436
6435
|
}
|
|
6437
6436
|
getTransformTemplate() {
|
|
6438
6437
|
const { visualElement: s } = this.options;
|
|
@@ -6461,7 +6460,7 @@ function Zo({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
6461
6460
|
this.unblockUpdate(), this.clearAllSnapshots(), this.nodes.forEach(Gr);
|
|
6462
6461
|
return;
|
|
6463
6462
|
}
|
|
6464
|
-
this.isUpdating || this.nodes.forEach(
|
|
6463
|
+
this.isUpdating || this.nodes.forEach(nh), this.isUpdating = !1, this.nodes.forEach(ih), this.nodes.forEach(Zf), this.nodes.forEach(Jf), this.clearAllSnapshots();
|
|
6465
6464
|
const a = lt.now();
|
|
6466
6465
|
z.delta = ht(0, 1e3 / 60, a - z.timestamp), z.timestamp = a, z.isProcessing = !0, Qe.update.process(z), Qe.preRender.process(z), Qe.render.process(z), z.isProcessing = !1;
|
|
6467
6466
|
}
|
|
@@ -6469,7 +6468,7 @@ function Zo({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
6469
6468
|
this.updateScheduled || (this.updateScheduled = !0, zn.read(this.scheduleUpdate));
|
|
6470
6469
|
}
|
|
6471
6470
|
clearAllSnapshots() {
|
|
6472
|
-
this.nodes.forEach(
|
|
6471
|
+
this.nodes.forEach(eh), this.sharedNodes.forEach(ah);
|
|
6473
6472
|
}
|
|
6474
6473
|
scheduleUpdateProjection() {
|
|
6475
6474
|
this.projectionUpdateScheduled || (this.projectionUpdateScheduled = !0, B.preRender(this.updateProjection, !1, !0));
|
|
@@ -6518,7 +6517,7 @@ function Zo({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
6518
6517
|
measure(s = !0) {
|
|
6519
6518
|
const a = this.measurePageBox();
|
|
6520
6519
|
let l = this.removeElementScroll(a);
|
|
6521
|
-
return s && (l = this.removeTransform(l)),
|
|
6520
|
+
return s && (l = this.removeTransform(l)), dh(l), {
|
|
6522
6521
|
animationId: this.root.animationId,
|
|
6523
6522
|
measuredBox: a,
|
|
6524
6523
|
layoutBox: l,
|
|
@@ -6532,7 +6531,7 @@ function Zo({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
6532
6531
|
if (!a)
|
|
6533
6532
|
return H();
|
|
6534
6533
|
const l = a.measureViewportBox();
|
|
6535
|
-
if (!(((s = this.scroll) === null || s === void 0 ? void 0 : s.wasRoot) || this.path.some(
|
|
6534
|
+
if (!(((s = this.scroll) === null || s === void 0 ? void 0 : s.wasRoot) || this.path.some(fh))) {
|
|
6536
6535
|
const { scroll: u } = this.root;
|
|
6537
6536
|
u && (Bt(l.x, u.offset.x), Bt(l.y, u.offset.y));
|
|
6538
6537
|
}
|
|
@@ -6604,7 +6603,7 @@ function Zo({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
6604
6603
|
p && p.layout && this.animationProgress !== 1 ? (this.relativeParent = p, this.forceRelativeParentToResolveTarget(), this.relativeTarget = H(), this.relativeTargetOrigin = H(), ae(this.relativeTargetOrigin, this.layout.layoutBox, p.layout.layoutBox), nt(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
|
|
6605
6604
|
}
|
|
6606
6605
|
if (!(!this.relativeTarget && !this.targetDelta)) {
|
|
6607
|
-
if (this.target || (this.target = H(), this.targetWithTransforms = H()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(),
|
|
6606
|
+
if (this.target || (this.target = H(), this.targetWithTransforms = H()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), mf(this.target, this.relativeTarget, this.relativeParent.target)) : this.targetDelta ? (this.resumingFrom ? this.target = this.applyTransform(this.layout.layoutBox) : nt(this.target, this.layout.layoutBox), Wo(this.target, this.targetDelta)) : nt(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget) {
|
|
6608
6607
|
this.attemptToResolveRelativeTarget = !1;
|
|
6609
6608
|
const p = this.getClosestProjectingParent();
|
|
6610
6609
|
p && !!p.resumingFrom == !!this.resumingFrom && !p.options.layoutScroll && p.target && this.animationProgress !== 1 ? (this.relativeParent = p, this.forceRelativeParentToResolveTarget(), this.relativeTarget = H(), this.relativeTargetOrigin = H(), ae(this.relativeTargetOrigin, this.target, p.target), nt(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
|
|
@@ -6631,7 +6630,7 @@ function Zo({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
6631
6630
|
return;
|
|
6632
6631
|
nt(this.layoutCorrected, this.layout.layoutBox);
|
|
6633
6632
|
const h = this.treeScale.x, p = this.treeScale.y;
|
|
6634
|
-
|
|
6633
|
+
Af(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());
|
|
6635
6634
|
const { target: T } = a;
|
|
6636
6635
|
if (!T) {
|
|
6637
6636
|
this.prevProjectionDelta && (this.createProjectionDeltas(), this.scheduleRender());
|
|
@@ -6659,17 +6658,17 @@ function Zo({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
6659
6658
|
setAnimationOrigin(s, a = !1) {
|
|
6660
6659
|
const l = this.snapshot, c = l ? l.latestValues : {}, u = { ...this.latestValues }, d = Ft();
|
|
6661
6660
|
(!this.relativeParent || !this.relativeParent.options.layoutRoot) && (this.relativeTarget = this.relativeTargetOrigin = void 0), this.attemptToResolveRelativeTarget = !a;
|
|
6662
|
-
const h = H(), p = l ? l.source : void 0, T = this.layout ? this.layout.source : void 0, y = p !== T, v = this.getStack(), x = !v || v.members.length <= 1, C = !!(y && !x && this.options.crossfade === !0 && !this.path.some(
|
|
6661
|
+
const h = H(), p = l ? l.source : void 0, T = this.layout ? this.layout.source : void 0, y = p !== T, v = this.getStack(), x = !v || v.members.length <= 1, C = !!(y && !x && this.options.crossfade === !0 && !this.path.some(ch));
|
|
6663
6662
|
this.animationProgress = 0;
|
|
6664
6663
|
let A;
|
|
6665
6664
|
this.mixTargetDelta = (S) => {
|
|
6666
6665
|
const f = S / 1e3;
|
|
6667
|
-
zr(d.x, s.x, f), zr(d.y, s.y, f), this.setTargetDelta(d), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (ae(h, this.layout.layoutBox, this.relativeParent.layout.layoutBox),
|
|
6666
|
+
zr(d.x, s.x, f), zr(d.y, s.y, f), this.setTargetDelta(d), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (ae(h, this.layout.layoutBox, this.relativeParent.layout.layoutBox), lh(this.relativeTarget, this.relativeTargetOrigin, h, f), A && zf(this.relativeTarget, A) && (this.isProjectionDirty = !1), A || (A = H()), nt(A, this.relativeTarget)), y && (this.animationValues = u, jf(u, c, this.latestValues, f, C, x)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = f;
|
|
6668
6667
|
}, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);
|
|
6669
6668
|
}
|
|
6670
6669
|
startAnimation(s) {
|
|
6671
6670
|
this.notifyListeners("animationStart"), this.currentAnimation && this.currentAnimation.stop(), this.resumingFrom && this.resumingFrom.currentAnimation && this.resumingFrom.currentAnimation.stop(), this.pendingAnimation && (Tt(this.pendingAnimation), this.pendingAnimation = void 0), this.pendingAnimation = B.update(() => {
|
|
6672
|
-
De.hasAnimatedSinceResize = !0, this.currentAnimation =
|
|
6671
|
+
De.hasAnimatedSinceResize = !0, this.currentAnimation = If(0, Hr, {
|
|
6673
6672
|
...s,
|
|
6674
6673
|
onUpdate: (a) => {
|
|
6675
6674
|
this.mixTargetDelta(a), s.onUpdate && s.onUpdate(a);
|
|
@@ -6703,7 +6702,7 @@ function Zo({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
6703
6702
|
}
|
|
6704
6703
|
}
|
|
6705
6704
|
registerSharedNode(s, a) {
|
|
6706
|
-
this.sharedNodes.has(s) || this.sharedNodes.set(s, new
|
|
6705
|
+
this.sharedNodes.has(s) || this.sharedNodes.set(s, new qf()), this.sharedNodes.get(s).add(a);
|
|
6707
6706
|
const c = a.options.initialPromotionConfig;
|
|
6708
6707
|
a.promote({
|
|
6709
6708
|
transition: c ? c.transition : void 0,
|
|
@@ -6759,7 +6758,7 @@ function Zo({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
6759
6758
|
if (!this.instance || this.isSVG)
|
|
6760
6759
|
return;
|
|
6761
6760
|
if (!this.isVisible)
|
|
6762
|
-
return
|
|
6761
|
+
return Xf;
|
|
6763
6762
|
const c = {
|
|
6764
6763
|
visibility: ""
|
|
6765
6764
|
}, u = this.getTransformTemplate();
|
|
@@ -6771,7 +6770,7 @@ function Zo({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
6771
6770
|
return this.options.layoutId && (y.opacity = this.latestValues.opacity !== void 0 ? this.latestValues.opacity : 1, y.pointerEvents = Pe(s?.pointerEvents) || ""), this.hasProjected && !Pt(this.latestValues) && (y.transform = u ? u({}, "") : "none", this.hasProjected = !1), y;
|
|
6772
6771
|
}
|
|
6773
6772
|
const h = d.animationValues || d.latestValues;
|
|
6774
|
-
this.applyTransformsToTarget(), c.transform =
|
|
6773
|
+
this.applyTransformsToTarget(), c.transform = Kf(this.projectionDeltaWithTransform, this.treeScale, h), u && (c.transform = u(h, c.transform));
|
|
6775
6774
|
const { x: p, y: T } = this.projectionDelta;
|
|
6776
6775
|
c.transformOrigin = `${p.origin * 100}% ${T.origin * 100}% 0`, d.animationValues ? c.opacity = d === this ? (l = (a = h.opacity) !== null && a !== void 0 ? a : this.latestValues.opacity) !== null && l !== void 0 ? l : 1 : this.preserveOpacity ? this.latestValues.opacity : h.opacityExit : c.opacity = d === this ? h.opacity !== void 0 ? h.opacity : "" : h.opacityExit !== void 0 ? h.opacityExit : 0;
|
|
6777
6776
|
for (const y in Ve) {
|
|
@@ -6799,10 +6798,10 @@ function Zo({ attachResizeListener: t, defaultParent: e, measureScroll: n, check
|
|
|
6799
6798
|
}
|
|
6800
6799
|
};
|
|
6801
6800
|
}
|
|
6802
|
-
function
|
|
6801
|
+
function Zf(t) {
|
|
6803
6802
|
t.updateLayout();
|
|
6804
6803
|
}
|
|
6805
|
-
function
|
|
6804
|
+
function Jf(t) {
|
|
6806
6805
|
var e;
|
|
6807
6806
|
const n = ((e = t.resumeFrom) === null || e === void 0 ? void 0 : e.snapshot) || t.snapshot;
|
|
6808
6807
|
if (t.isLead() && t.layout && n && t.hasListeners("didUpdate")) {
|
|
@@ -6846,38 +6845,38 @@ function Qf(t) {
|
|
|
6846
6845
|
}
|
|
6847
6846
|
t.options.transition = void 0;
|
|
6848
6847
|
}
|
|
6849
|
-
function
|
|
6848
|
+
function Qf(t) {
|
|
6850
6849
|
ne && Rt.totalNodes++, 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));
|
|
6851
6850
|
}
|
|
6852
|
-
function
|
|
6851
|
+
function th(t) {
|
|
6853
6852
|
t.isProjectionDirty = t.isSharedProjectionDirty = t.isTransformDirty = !1;
|
|
6854
6853
|
}
|
|
6855
|
-
function
|
|
6854
|
+
function eh(t) {
|
|
6856
6855
|
t.clearSnapshot();
|
|
6857
6856
|
}
|
|
6858
6857
|
function Gr(t) {
|
|
6859
6858
|
t.clearMeasurements();
|
|
6860
6859
|
}
|
|
6861
|
-
function
|
|
6860
|
+
function nh(t) {
|
|
6862
6861
|
t.isLayoutDirty = !1;
|
|
6863
6862
|
}
|
|
6864
|
-
function
|
|
6863
|
+
function ih(t) {
|
|
6865
6864
|
const { visualElement: e } = t.options;
|
|
6866
6865
|
e && e.getProps().onBeforeLayoutMeasure && e.notify("BeforeLayoutMeasure"), t.resetTransform();
|
|
6867
6866
|
}
|
|
6868
6867
|
function $r(t) {
|
|
6869
6868
|
t.finishAnimation(), t.targetDelta = t.relativeTarget = t.target = void 0, t.isProjectionDirty = !0;
|
|
6870
6869
|
}
|
|
6871
|
-
function
|
|
6870
|
+
function rh(t) {
|
|
6872
6871
|
t.resolveTargetDelta();
|
|
6873
6872
|
}
|
|
6874
|
-
function
|
|
6873
|
+
function sh(t) {
|
|
6875
6874
|
t.calcProjection();
|
|
6876
6875
|
}
|
|
6877
|
-
function
|
|
6876
|
+
function oh(t) {
|
|
6878
6877
|
t.resetSkewAndRotation();
|
|
6879
6878
|
}
|
|
6880
|
-
function
|
|
6879
|
+
function ah(t) {
|
|
6881
6880
|
t.removeLeadSnapshot();
|
|
6882
6881
|
}
|
|
6883
6882
|
function zr(t, e, n) {
|
|
@@ -6886,30 +6885,30 @@ function zr(t, e, n) {
|
|
|
6886
6885
|
function qr(t, e, n, i) {
|
|
6887
6886
|
t.min = U(e.min, n.min, i), t.max = U(e.max, n.max, i);
|
|
6888
6887
|
}
|
|
6889
|
-
function
|
|
6888
|
+
function lh(t, e, n, i) {
|
|
6890
6889
|
qr(t.x, e.x, n.x, i), qr(t.y, e.y, n.y, i);
|
|
6891
6890
|
}
|
|
6892
|
-
function
|
|
6891
|
+
function ch(t) {
|
|
6893
6892
|
return t.animationValues && t.animationValues.opacityExit !== void 0;
|
|
6894
6893
|
}
|
|
6895
|
-
const
|
|
6894
|
+
const uh = {
|
|
6896
6895
|
duration: 0.45,
|
|
6897
6896
|
ease: [0.4, 0, 0.1, 1]
|
|
6898
6897
|
}, Kr = (t) => typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().includes(t), Xr = Kr("applewebkit/") && !Kr("chrome/") ? Math.round : Y;
|
|
6899
6898
|
function Yr(t) {
|
|
6900
6899
|
t.min = Xr(t.min), t.max = Xr(t.max);
|
|
6901
6900
|
}
|
|
6902
|
-
function
|
|
6901
|
+
function dh(t) {
|
|
6903
6902
|
Yr(t.x), Yr(t.y);
|
|
6904
6903
|
}
|
|
6905
6904
|
function Jo(t, e, n) {
|
|
6906
|
-
return t === "position" || t === "preserve-aspect" && !
|
|
6905
|
+
return t === "position" || t === "preserve-aspect" && !pf(Ur(e), Ur(n), 0.2);
|
|
6907
6906
|
}
|
|
6908
|
-
function
|
|
6907
|
+
function fh(t) {
|
|
6909
6908
|
var e;
|
|
6910
6909
|
return t !== t.root && ((e = t.scroll) === null || e === void 0 ? void 0 : e.wasRoot);
|
|
6911
6910
|
}
|
|
6912
|
-
const
|
|
6911
|
+
const hh = Zo({
|
|
6913
6912
|
attachResizeListener: (t, e) => he(t, "resize", e),
|
|
6914
6913
|
measureScroll: () => ({
|
|
6915
6914
|
x: document.documentElement.scrollLeft || document.body.scrollLeft,
|
|
@@ -6925,7 +6924,7 @@ const ph = Zo({
|
|
|
6925
6924
|
}),
|
|
6926
6925
|
defaultParent: () => {
|
|
6927
6926
|
if (!un.current) {
|
|
6928
|
-
const t = new
|
|
6927
|
+
const t = new hh({});
|
|
6929
6928
|
t.mount(window), t.setOptions({ layoutScroll: !0 }), un.current = t;
|
|
6930
6929
|
}
|
|
6931
6930
|
return un.current;
|
|
@@ -6934,17 +6933,17 @@ const ph = Zo({
|
|
|
6934
6933
|
t.style.transform = e !== void 0 ? e : "none";
|
|
6935
6934
|
},
|
|
6936
6935
|
checkIsScrollRoot: (t) => window.getComputedStyle(t).position === "fixed"
|
|
6937
|
-
}),
|
|
6936
|
+
}), ph = {
|
|
6938
6937
|
pan: {
|
|
6939
|
-
Feature:
|
|
6938
|
+
Feature: kf
|
|
6940
6939
|
},
|
|
6941
6940
|
drag: {
|
|
6942
|
-
Feature:
|
|
6941
|
+
Feature: Df,
|
|
6943
6942
|
ProjectionNode: Qo,
|
|
6944
6943
|
MeasureLayout: $o
|
|
6945
6944
|
}
|
|
6946
6945
|
};
|
|
6947
|
-
function
|
|
6946
|
+
function mh(t, e, n) {
|
|
6948
6947
|
var i;
|
|
6949
6948
|
if (t instanceof Element)
|
|
6950
6949
|
return [t];
|
|
@@ -6956,7 +6955,7 @@ function gh(t, e, n) {
|
|
|
6956
6955
|
return Array.from(t);
|
|
6957
6956
|
}
|
|
6958
6957
|
function ta(t, e) {
|
|
6959
|
-
const n =
|
|
6958
|
+
const n = mh(t), i = new AbortController(), r = {
|
|
6960
6959
|
passive: !0,
|
|
6961
6960
|
...e,
|
|
6962
6961
|
signal: i.signal
|
|
@@ -6968,7 +6967,7 @@ function Zr(t) {
|
|
|
6968
6967
|
e.pointerType === "touch" || Oo() || t(e);
|
|
6969
6968
|
};
|
|
6970
6969
|
}
|
|
6971
|
-
function
|
|
6970
|
+
function gh(t, e, n = {}) {
|
|
6972
6971
|
const [i, r, o] = ta(t, n), s = Zr((a) => {
|
|
6973
6972
|
const { target: l } = a, c = e(a);
|
|
6974
6973
|
if (typeof c != "function" || !l)
|
|
@@ -6988,15 +6987,15 @@ function Jr(t, e, n) {
|
|
|
6988
6987
|
const r = "onHover" + n, o = i[r];
|
|
6989
6988
|
o && B.postRender(() => o(e, be(e)));
|
|
6990
6989
|
}
|
|
6991
|
-
class
|
|
6990
|
+
class vh extends At {
|
|
6992
6991
|
mount() {
|
|
6993
6992
|
const { current: e } = this.node;
|
|
6994
|
-
e && (this.unmount =
|
|
6993
|
+
e && (this.unmount = gh(e, (n) => (Jr(this.node, n, "Start"), (i) => Jr(this.node, i, "End"))));
|
|
6995
6994
|
}
|
|
6996
6995
|
unmount() {
|
|
6997
6996
|
}
|
|
6998
6997
|
}
|
|
6999
|
-
class
|
|
6998
|
+
class yh extends At {
|
|
7000
6999
|
constructor() {
|
|
7001
7000
|
super(...arguments), this.isActive = !1;
|
|
7002
7001
|
}
|
|
@@ -7018,15 +7017,15 @@ class bh extends At {
|
|
|
7018
7017
|
unmount() {
|
|
7019
7018
|
}
|
|
7020
7019
|
}
|
|
7021
|
-
const ea = (t, e) => e ? t === e ? !0 : ea(t, e.parentElement) : !1,
|
|
7020
|
+
const ea = (t, e) => e ? t === e ? !0 : ea(t, e.parentElement) : !1, bh = /* @__PURE__ */ new Set([
|
|
7022
7021
|
"BUTTON",
|
|
7023
7022
|
"INPUT",
|
|
7024
7023
|
"SELECT",
|
|
7025
7024
|
"TEXTAREA",
|
|
7026
7025
|
"A"
|
|
7027
7026
|
]);
|
|
7028
|
-
function
|
|
7029
|
-
return
|
|
7027
|
+
function Th(t) {
|
|
7028
|
+
return bh.has(t.tagName) || t.tabIndex !== -1;
|
|
7030
7029
|
}
|
|
7031
7030
|
const ie = /* @__PURE__ */ new WeakSet();
|
|
7032
7031
|
function Qr(t) {
|
|
@@ -7037,7 +7036,7 @@ function Qr(t) {
|
|
|
7037
7036
|
function dn(t, e) {
|
|
7038
7037
|
t.dispatchEvent(new PointerEvent("pointer" + e, { isPrimary: !0, bubbles: !0 }));
|
|
7039
7038
|
}
|
|
7040
|
-
const
|
|
7039
|
+
const xh = (t, e) => {
|
|
7041
7040
|
const n = t.currentTarget;
|
|
7042
7041
|
if (!n)
|
|
7043
7042
|
return;
|
|
@@ -7055,7 +7054,7 @@ const wh = (t, e) => {
|
|
|
7055
7054
|
function ts(t) {
|
|
7056
7055
|
return yi(t) && !Oo();
|
|
7057
7056
|
}
|
|
7058
|
-
function
|
|
7057
|
+
function wh(t, e, n = {}) {
|
|
7059
7058
|
const [i, r, o] = ta(t, n), s = (a) => {
|
|
7060
7059
|
const l = a.currentTarget;
|
|
7061
7060
|
if (!ts(a) || ie.has(l))
|
|
@@ -7071,7 +7070,7 @@ function Ch(t, e, n = {}) {
|
|
|
7071
7070
|
window.addEventListener("pointerup", d, r), window.addEventListener("pointercancel", h, r);
|
|
7072
7071
|
};
|
|
7073
7072
|
return i.forEach((a) => {
|
|
7074
|
-
!
|
|
7073
|
+
!Th(a) && a.getAttribute("tabindex") === null && (a.tabIndex = 0), (n.useGlobalTarget ? window : a).addEventListener("pointerdown", s, r), a.addEventListener("focus", (c) => xh(c, r), r);
|
|
7075
7074
|
}), o;
|
|
7076
7075
|
}
|
|
7077
7076
|
function es(t, e, n) {
|
|
@@ -7080,37 +7079,37 @@ function es(t, e, n) {
|
|
|
7080
7079
|
const r = "onTap" + (n === "End" ? "" : n), o = i[r];
|
|
7081
7080
|
o && B.postRender(() => o(e, be(e)));
|
|
7082
7081
|
}
|
|
7083
|
-
class
|
|
7082
|
+
class Ch extends At {
|
|
7084
7083
|
mount() {
|
|
7085
7084
|
const { current: e } = this.node;
|
|
7086
|
-
e && (this.unmount =
|
|
7085
|
+
e && (this.unmount = wh(e, (n) => (es(this.node, n, "Start"), (i, { success: r }) => es(this.node, i, r ? "End" : "Cancel")), { useGlobalTarget: this.node.props.globalTapTarget }));
|
|
7087
7086
|
}
|
|
7088
7087
|
unmount() {
|
|
7089
7088
|
}
|
|
7090
7089
|
}
|
|
7091
|
-
const kn = /* @__PURE__ */ new WeakMap(), fn = /* @__PURE__ */ new WeakMap(),
|
|
7090
|
+
const kn = /* @__PURE__ */ new WeakMap(), fn = /* @__PURE__ */ new WeakMap(), Ah = (t) => {
|
|
7092
7091
|
const e = kn.get(t.target);
|
|
7093
7092
|
e && e(t);
|
|
7094
|
-
},
|
|
7095
|
-
t.forEach(
|
|
7093
|
+
}, Sh = (t) => {
|
|
7094
|
+
t.forEach(Ah);
|
|
7096
7095
|
};
|
|
7097
|
-
function
|
|
7096
|
+
function Eh({ root: t, ...e }) {
|
|
7098
7097
|
const n = t || document;
|
|
7099
7098
|
fn.has(n) || fn.set(n, {});
|
|
7100
7099
|
const i = fn.get(n), r = JSON.stringify(e);
|
|
7101
|
-
return i[r] || (i[r] = new IntersectionObserver(
|
|
7100
|
+
return i[r] || (i[r] = new IntersectionObserver(Sh, { root: t, ...e })), i[r];
|
|
7102
7101
|
}
|
|
7103
|
-
function
|
|
7104
|
-
const i =
|
|
7102
|
+
function Ph(t, e, n) {
|
|
7103
|
+
const i = Eh(e);
|
|
7105
7104
|
return kn.set(t, n), i.observe(t), () => {
|
|
7106
7105
|
kn.delete(t), i.unobserve(t);
|
|
7107
7106
|
};
|
|
7108
7107
|
}
|
|
7109
|
-
const
|
|
7108
|
+
const Rh = {
|
|
7110
7109
|
some: 0,
|
|
7111
7110
|
all: 1
|
|
7112
7111
|
};
|
|
7113
|
-
class
|
|
7112
|
+
class Dh extends At {
|
|
7114
7113
|
constructor() {
|
|
7115
7114
|
super(...arguments), this.hasEnteredView = !1, this.isInView = !1;
|
|
7116
7115
|
}
|
|
@@ -7119,7 +7118,7 @@ class kh extends At {
|
|
|
7119
7118
|
const { viewport: e = {} } = this.node.getProps(), { root: n, margin: i, amount: r = "some", once: o } = e, s = {
|
|
7120
7119
|
root: n ? n.current : void 0,
|
|
7121
7120
|
rootMargin: i,
|
|
7122
|
-
threshold: typeof r == "number" ? r :
|
|
7121
|
+
threshold: typeof r == "number" ? r : Rh[r]
|
|
7123
7122
|
}, a = (l) => {
|
|
7124
7123
|
const { isIntersecting: c } = l;
|
|
7125
7124
|
if (this.isInView === c || (this.isInView = c, o && !c && this.hasEnteredView))
|
|
@@ -7128,7 +7127,7 @@ class kh extends At {
|
|
|
7128
7127
|
const { onViewportEnter: u, onViewportLeave: d } = this.node.getProps(), h = c ? u : d;
|
|
7129
7128
|
h && h(l);
|
|
7130
7129
|
};
|
|
7131
|
-
return
|
|
7130
|
+
return Ph(this.node.current, s, a);
|
|
7132
7131
|
}
|
|
7133
7132
|
mount() {
|
|
7134
7133
|
this.startObserver();
|
|
@@ -7137,34 +7136,34 @@ class kh extends At {
|
|
|
7137
7136
|
if (typeof IntersectionObserver > "u")
|
|
7138
7137
|
return;
|
|
7139
7138
|
const { props: e, prevProps: n } = this.node;
|
|
7140
|
-
["amount", "margin", "root"].some(
|
|
7139
|
+
["amount", "margin", "root"].some(kh(e, n)) && this.startObserver();
|
|
7141
7140
|
}
|
|
7142
7141
|
unmount() {
|
|
7143
7142
|
}
|
|
7144
7143
|
}
|
|
7145
|
-
function
|
|
7144
|
+
function kh({ viewport: t = {} }, { viewport: e = {} } = {}) {
|
|
7146
7145
|
return (n) => t[n] !== e[n];
|
|
7147
7146
|
}
|
|
7148
|
-
const
|
|
7147
|
+
const Mh = {
|
|
7149
7148
|
inView: {
|
|
7150
|
-
Feature:
|
|
7149
|
+
Feature: Dh
|
|
7151
7150
|
},
|
|
7152
7151
|
tap: {
|
|
7153
|
-
Feature:
|
|
7152
|
+
Feature: Ch
|
|
7154
7153
|
},
|
|
7155
7154
|
focus: {
|
|
7156
|
-
Feature:
|
|
7155
|
+
Feature: yh
|
|
7157
7156
|
},
|
|
7158
7157
|
hover: {
|
|
7159
|
-
Feature:
|
|
7158
|
+
Feature: vh
|
|
7160
7159
|
}
|
|
7161
|
-
},
|
|
7160
|
+
}, Vh = {
|
|
7162
7161
|
layout: {
|
|
7163
7162
|
ProjectionNode: Qo,
|
|
7164
7163
|
MeasureLayout: $o
|
|
7165
7164
|
}
|
|
7166
7165
|
}, Mn = { current: null }, na = { current: !1 };
|
|
7167
|
-
function
|
|
7166
|
+
function _h() {
|
|
7168
7167
|
if (na.current = !0, !!Wn)
|
|
7169
7168
|
if (window.matchMedia) {
|
|
7170
7169
|
const t = window.matchMedia("(prefers-reduced-motion)"), e = () => Mn.current = t.matches;
|
|
@@ -7172,8 +7171,8 @@ function Ih() {
|
|
|
7172
7171
|
} else
|
|
7173
7172
|
Mn.current = !1;
|
|
7174
7173
|
}
|
|
7175
|
-
const
|
|
7176
|
-
function
|
|
7174
|
+
const Ih = [...Co, K, xt], Oh = (t) => Ih.find(wo(t)), ns = /* @__PURE__ */ new WeakMap();
|
|
7175
|
+
function Lh(t, e, n) {
|
|
7177
7176
|
for (const i in e) {
|
|
7178
7177
|
const r = e[i], o = n[i];
|
|
7179
7178
|
if (X(r))
|
|
@@ -7202,7 +7201,7 @@ const is = [
|
|
|
7202
7201
|
"LayoutAnimationStart",
|
|
7203
7202
|
"LayoutAnimationComplete"
|
|
7204
7203
|
];
|
|
7205
|
-
class
|
|
7204
|
+
class Nh {
|
|
7206
7205
|
/**
|
|
7207
7206
|
* This method takes React props and returns found MotionValues. For example, HTML
|
|
7208
7207
|
* MotionValues will be found within the style prop, whereas for Three.js within attribute arrays.
|
|
@@ -7229,7 +7228,7 @@ class Fh {
|
|
|
7229
7228
|
}
|
|
7230
7229
|
}
|
|
7231
7230
|
mount(e) {
|
|
7232
|
-
this.current = e, ns.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)), na.current ||
|
|
7231
|
+
this.current = e, ns.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)), na.current || _h(), this.shouldReduceMotion = this.reducedMotionConfig === "never" ? !1 : this.reducedMotionConfig === "always" ? !0 : Mn.current, process.env.NODE_ENV !== "production" && We(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);
|
|
7233
7232
|
}
|
|
7234
7233
|
unmount() {
|
|
7235
7234
|
ns.delete(this.current), this.projection && this.projection.unmount(), Tt(this.notifyUpdate), Tt(this.render), this.valueSubscriptions.forEach((e) => e()), this.valueSubscriptions.clear(), this.removeFromVariantTree && this.removeFromVariantTree(), this.parent && this.parent.children.delete(this);
|
|
@@ -7296,7 +7295,7 @@ class Fh {
|
|
|
7296
7295
|
const o = "on" + r, s = e[o];
|
|
7297
7296
|
s && (this.propEventSubscriptions[r] = this.on(r, s));
|
|
7298
7297
|
}
|
|
7299
|
-
this.prevMotionValues =
|
|
7298
|
+
this.prevMotionValues = Lh(this, this.scrapeMotionValuesFromProps(e, this.prevProps, this), this.prevMotionValues), this.handleChildMotionValue && this.handleChildMotionValue(), this.onUpdate && this.onUpdate(this);
|
|
7300
7299
|
}
|
|
7301
7300
|
getProps() {
|
|
7302
7301
|
return this.props;
|
|
@@ -7362,7 +7361,7 @@ class Fh {
|
|
|
7362
7361
|
readValue(e, n) {
|
|
7363
7362
|
var i;
|
|
7364
7363
|
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);
|
|
7365
|
-
return r != null && (typeof r == "string" && (To(r) || uo(r)) ? r = parseFloat(r) : !
|
|
7364
|
+
return r != null && (typeof r == "string" && (To(r) || uo(r)) ? r = parseFloat(r) : !Oh(r) && xt.test(n) && (r = vo(e, n)), this.setBaseTarget(e, X(r) ? r.get() : r)), X(r) ? r.get() : r;
|
|
7366
7365
|
}
|
|
7367
7366
|
/**
|
|
7368
7367
|
* Set the base target to later animate back to. This is currently
|
|
@@ -7395,7 +7394,7 @@ class Fh {
|
|
|
7395
7394
|
this.events[e] && this.events[e].notify(...n);
|
|
7396
7395
|
}
|
|
7397
7396
|
}
|
|
7398
|
-
class ia extends
|
|
7397
|
+
class ia extends Nh {
|
|
7399
7398
|
constructor() {
|
|
7400
7399
|
super(...arguments), this.KeyframeResolver = Ao;
|
|
7401
7400
|
}
|
|
@@ -7416,10 +7415,10 @@ class ia extends Fh {
|
|
|
7416
7415
|
}));
|
|
7417
7416
|
}
|
|
7418
7417
|
}
|
|
7419
|
-
function
|
|
7418
|
+
function Fh(t) {
|
|
7420
7419
|
return window.getComputedStyle(t);
|
|
7421
7420
|
}
|
|
7422
|
-
class
|
|
7421
|
+
class Bh extends ia {
|
|
7423
7422
|
constructor() {
|
|
7424
7423
|
super(...arguments), this.type = "html", this.renderInstance = Hs;
|
|
7425
7424
|
}
|
|
@@ -7428,7 +7427,7 @@ class jh extends ia {
|
|
|
7428
7427
|
const i = hi(n);
|
|
7429
7428
|
return i && i.default || 0;
|
|
7430
7429
|
} else {
|
|
7431
|
-
const i =
|
|
7430
|
+
const i = Fh(e), r = (js(n) ? i.getPropertyValue(n) : i[n]) || 0;
|
|
7432
7431
|
return typeof r == "string" ? r.trim() : r;
|
|
7433
7432
|
}
|
|
7434
7433
|
}
|
|
@@ -7442,7 +7441,7 @@ class jh extends ia {
|
|
|
7442
7441
|
return ei(e, n, i);
|
|
7443
7442
|
}
|
|
7444
7443
|
}
|
|
7445
|
-
class
|
|
7444
|
+
class jh extends ia {
|
|
7446
7445
|
constructor() {
|
|
7447
7446
|
super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox = H;
|
|
7448
7447
|
}
|
|
@@ -7469,17 +7468,17 @@ class Uh extends ia {
|
|
|
7469
7468
|
this.isSVGTag = ti(e.tagName), super.mount(e);
|
|
7470
7469
|
}
|
|
7471
7470
|
}
|
|
7472
|
-
const
|
|
7471
|
+
const Uh = (t, e) => qn(t) ? new jh(e) : new Bh(e, {
|
|
7473
7472
|
allowProjection: t !== pe
|
|
7474
|
-
}),
|
|
7475
|
-
...
|
|
7476
|
-
...
|
|
7477
|
-
...
|
|
7478
|
-
...
|
|
7479
|
-
},
|
|
7473
|
+
}), Wh = /* @__PURE__ */ fu({
|
|
7474
|
+
...rf,
|
|
7475
|
+
...Mh,
|
|
7476
|
+
...ph,
|
|
7477
|
+
...Vh
|
|
7478
|
+
}, Uh), ra = /* @__PURE__ */ Pc(Wh), Hh = ls`
|
|
7480
7479
|
from { transform: rotate(0deg); }
|
|
7481
7480
|
to { transform: rotate(360deg); }
|
|
7482
|
-
`,
|
|
7481
|
+
`, Mp = ({
|
|
7483
7482
|
style: t,
|
|
7484
7483
|
children: e,
|
|
7485
7484
|
isLoading: n,
|
|
@@ -7513,7 +7512,7 @@ const Wh = (t, e) => qn(t) ? new Uh(e) : new jh(e, {
|
|
|
7513
7512
|
me,
|
|
7514
7513
|
{
|
|
7515
7514
|
source: Cs,
|
|
7516
|
-
css: { color: R.palette.orange["6s"], animation: `${
|
|
7515
|
+
css: { color: R.palette.orange["6s"], animation: `${Hh} 1s linear infinite` },
|
|
7517
7516
|
size: r
|
|
7518
7517
|
}
|
|
7519
7518
|
)
|
|
@@ -7521,7 +7520,7 @@ const Wh = (t, e) => qn(t) ? new Uh(e) : new jh(e, {
|
|
|
7521
7520
|
)
|
|
7522
7521
|
]
|
|
7523
7522
|
}
|
|
7524
|
-
),
|
|
7523
|
+
), Vp = q(({ children: t, ...e }, n) => /* @__PURE__ */ I(
|
|
7525
7524
|
"label",
|
|
7526
7525
|
{
|
|
7527
7526
|
css: {
|
|
@@ -7597,7 +7596,7 @@ const Wh = (t, e) => qn(t) ? new Uh(e) : new jh(e, {
|
|
|
7597
7596
|
)
|
|
7598
7597
|
]
|
|
7599
7598
|
}
|
|
7600
|
-
)),
|
|
7599
|
+
)), _p = q(({ className: t, ...e }, n) => /* @__PURE__ */ g(
|
|
7601
7600
|
"textarea",
|
|
7602
7601
|
{
|
|
7603
7602
|
css: {
|
|
@@ -7621,7 +7620,7 @@ const Wh = (t, e) => qn(t) ? new Uh(e) : new jh(e, {
|
|
|
7621
7620
|
...e,
|
|
7622
7621
|
ref: n
|
|
7623
7622
|
}
|
|
7624
|
-
)),
|
|
7623
|
+
)), Ip = q(
|
|
7625
7624
|
({ children: t, open: e = !0, collapsedSize: n = 0, orientation: i = "vertical", ...r }, o) => {
|
|
7626
7625
|
const s = rt(e), a = st(() => {
|
|
7627
7626
|
const c = {};
|
|
@@ -7643,10 +7642,10 @@ const Wh = (t, e) => qn(t) ? new Uh(e) : new jh(e, {
|
|
|
7643
7642
|
}
|
|
7644
7643
|
);
|
|
7645
7644
|
}
|
|
7646
|
-
),
|
|
7645
|
+
), Gh = ut({}), sa = () => G(Gh), Op = q(
|
|
7647
7646
|
({ style: t, floatingPortalProps: e, floatingFocusManagerProps: n, floatingOverlayProps: i, ...r }, o) => {
|
|
7648
|
-
const { getFloatingProps: s, context: a } = sa(),
|
|
7649
|
-
return /* @__PURE__ */ g(
|
|
7647
|
+
const { getFloatingProps: s, context: a } = sa(), l = W([a.refs.setFloating, o]);
|
|
7648
|
+
return /* @__PURE__ */ g(bc, { children: a.open && /* @__PURE__ */ g(Ln, { root: document.body, ...e, children: /* @__PURE__ */ g(
|
|
7650
7649
|
rl,
|
|
7651
7650
|
{
|
|
7652
7651
|
...i,
|
|
@@ -7666,14 +7665,14 @@ const Wh = (t, e) => qn(t) ? new Uh(e) : new jh(e, {
|
|
|
7666
7665
|
zIndex: os
|
|
7667
7666
|
},
|
|
7668
7667
|
...s(r),
|
|
7669
|
-
ref:
|
|
7668
|
+
ref: l,
|
|
7670
7669
|
children: r.children
|
|
7671
7670
|
}
|
|
7672
7671
|
) })
|
|
7673
7672
|
}
|
|
7674
7673
|
) }) });
|
|
7675
7674
|
}
|
|
7676
|
-
),
|
|
7675
|
+
), $h = q(
|
|
7677
7676
|
({ event: t = "click", reason: e, ...n }, i) => {
|
|
7678
7677
|
const r = rt(null), {
|
|
7679
7678
|
context: { onOpenChange: o }
|
|
@@ -7689,7 +7688,7 @@ const Wh = (t, e) => qn(t) ? new Uh(e) : new jh(e, {
|
|
|
7689
7688
|
};
|
|
7690
7689
|
}, [t, o, e]), /* @__PURE__ */ g("div", { css: { display: "contents" }, ...n, ref: s });
|
|
7691
7690
|
}
|
|
7692
|
-
),
|
|
7691
|
+
), zh = $h, Lp = q(({ ...t }, e) => /* @__PURE__ */ g(
|
|
7693
7692
|
"div",
|
|
7694
7693
|
{
|
|
7695
7694
|
css: {
|
|
@@ -7703,7 +7702,7 @@ const Wh = (t, e) => qn(t) ? new Uh(e) : new jh(e, {
|
|
|
7703
7702
|
...t,
|
|
7704
7703
|
ref: e
|
|
7705
7704
|
}
|
|
7706
|
-
)),
|
|
7705
|
+
)), qh = ` <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
7707
7706
|
<g clip-path="url(#clip0_16378_125816)">
|
|
7708
7707
|
<path d="M5.80078 5.80005L17.8008 17.8" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"
|
|
7709
7708
|
stroke-linejoin="round" />
|
|
@@ -7715,7 +7714,7 @@ const Wh = (t, e) => qn(t) ? new Uh(e) : new jh(e, {
|
|
|
7715
7714
|
<rect width="13.5" height="13.5" fill="white" transform="translate(5 5)" />
|
|
7716
7715
|
</clipPath>
|
|
7717
7716
|
</defs>
|
|
7718
|
-
</svg>`,
|
|
7717
|
+
</svg>`, Np = q(
|
|
7719
7718
|
({ className: t, children: e, closeable: n = !0, ...i }, r) => /* @__PURE__ */ I(
|
|
7720
7719
|
"div",
|
|
7721
7720
|
{
|
|
@@ -7728,7 +7727,7 @@ const Wh = (t, e) => qn(t) ? new Uh(e) : new jh(e, {
|
|
|
7728
7727
|
ref: r,
|
|
7729
7728
|
children: [
|
|
7730
7729
|
e,
|
|
7731
|
-
n && /* @__PURE__ */ g(
|
|
7730
|
+
n && /* @__PURE__ */ g(zh, { children: /* @__PURE__ */ g("div", { css: { position: "absolute", right: 12, top: "50%", transform: "translateY(-50%)" }, children: /* @__PURE__ */ g(ac, { children: /* @__PURE__ */ g(me, { source: qh }) }) }) })
|
|
7732
7731
|
]
|
|
7733
7732
|
}
|
|
7734
7733
|
)
|
|
@@ -7761,7 +7760,7 @@ const Wh = (t, e) => qn(t) ? new Uh(e) : new jh(e, {
|
|
|
7761
7760
|
<path fill-rule="evenodd" clip-rule="evenodd" d="M12 21V21C7.029 21 3 16.971 3 12V12C3 7.029 7.029 3 12 3V3C16.971 3 21 7.029 21 12V12C21 16.971 16.971 21 12 21Z" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
7762
7761
|
<path d="M12 12V17" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
|
|
7763
7762
|
</svg>
|
|
7764
|
-
`, Fe = Ga(Wa),
|
|
7763
|
+
`, Fe = Ga(Wa), Fp = ({ color: t, onChange: e }) => {
|
|
7765
7764
|
const n = (s) => {
|
|
7766
7765
|
e?.(Fe[s.currentTarget.value]);
|
|
7767
7766
|
}, { theme: i } = Fn(), r = On(t, i.palette)?.hex();
|
|
@@ -7812,7 +7811,7 @@ const Wh = (t, e) => qn(t) ? new Uh(e) : new jh(e, {
|
|
|
7812
7811
|
}
|
|
7813
7812
|
)
|
|
7814
7813
|
] });
|
|
7815
|
-
},
|
|
7814
|
+
}, Bp = ({
|
|
7816
7815
|
color: t,
|
|
7817
7816
|
onChange: e,
|
|
7818
7817
|
children: n,
|
|
@@ -7826,8 +7825,8 @@ const Wh = (t, e) => qn(t) ? new Uh(e) : new jh(e, {
|
|
|
7826
7825
|
}, c = (u) => {
|
|
7827
7826
|
e?.(u.target.value);
|
|
7828
7827
|
};
|
|
7829
|
-
return /* @__PURE__ */ I(
|
|
7830
|
-
/* @__PURE__ */ g(
|
|
7828
|
+
return /* @__PURE__ */ I(uc, { placement: i, ...r, children: [
|
|
7829
|
+
/* @__PURE__ */ g(dc, { children: n ?? /* @__PURE__ */ g(
|
|
7831
7830
|
"button",
|
|
7832
7831
|
{
|
|
7833
7832
|
css: {
|
|
@@ -7843,7 +7842,7 @@ const Wh = (t, e) => qn(t) ? new Uh(e) : new jh(e, {
|
|
|
7843
7842
|
children: /* @__PURE__ */ g(Vn, { color: t })
|
|
7844
7843
|
}
|
|
7845
7844
|
) }),
|
|
7846
|
-
/* @__PURE__ */ g(
|
|
7845
|
+
/* @__PURE__ */ g(fc, { children: /* @__PURE__ */ I("div", { css: { display: "flex", flexDirection: "column", gap: 12 }, children: [
|
|
7847
7846
|
/* @__PURE__ */ g("div", { css: { display: "flex", alignItems: "center", gap: 8 }, children: /* @__PURE__ */ g("div", { css: { flex: 1 }, children: /* @__PURE__ */ g(
|
|
7848
7847
|
As,
|
|
7849
7848
|
{
|
|
@@ -7909,7 +7908,7 @@ const Wh = (t, e) => qn(t) ? new Uh(e) : new jh(e, {
|
|
|
7909
7908
|
{
|
|
7910
7909
|
css: { display: "grid", padding: 8, position: "relative", minHeight: "100%", placeItems: "center", outlineWidth: 1, outlineStyle: "dashed", outlineColor: R.palette.ink["3s"], outlineOffset: -1 },
|
|
7911
7910
|
children: /* @__PURE__ */ I("div", { css: { display: "flex", flexDirection: "column", alignItems: "center" }, children: [
|
|
7912
|
-
/* @__PURE__ */ g(ws, { source:
|
|
7911
|
+
/* @__PURE__ */ g(ws, { source: cc, width: 16, height: 16 }),
|
|
7913
7912
|
/* @__PURE__ */ g("p", { css: [n, { marginTop: 4, textAlign: "center", ...R.text.xs }] })
|
|
7914
7913
|
] })
|
|
7915
7914
|
}
|
|
@@ -7920,7 +7919,7 @@ const Wh = (t, e) => qn(t) ? new Uh(e) : new jh(e, {
|
|
|
7920
7919
|
o && n.connect(o);
|
|
7921
7920
|
}
|
|
7922
7921
|
]);
|
|
7923
|
-
return /* @__PURE__ */ I(
|
|
7922
|
+
return /* @__PURE__ */ I(ml, { ...e, ...i, ref: r, children: [
|
|
7924
7923
|
t,
|
|
7925
7924
|
J(t) && /* @__PURE__ */ g(pt, {})
|
|
7926
7925
|
] });
|
|
@@ -7937,7 +7936,7 @@ const la = (t) => {
|
|
|
7937
7936
|
enabled: o.options.enabled
|
|
7938
7937
|
})), { connectors: i } = O();
|
|
7939
7938
|
return /* @__PURE__ */ g(
|
|
7940
|
-
|
|
7939
|
+
gl,
|
|
7941
7940
|
{
|
|
7942
7941
|
...t,
|
|
7943
7942
|
...e,
|
|
@@ -8004,8 +8003,8 @@ const ua = (t) => {
|
|
|
8004
8003
|
r && e.connect(r);
|
|
8005
8004
|
}
|
|
8006
8005
|
]);
|
|
8007
|
-
return /* @__PURE__ */ g(
|
|
8008
|
-
},
|
|
8006
|
+
return /* @__PURE__ */ g(vl, { ...t, ...n, ref: i });
|
|
8007
|
+
}, Kh = "Flexbox";
|
|
8009
8008
|
L(ua, {
|
|
8010
8009
|
resolved: E.Flexbox,
|
|
8011
8010
|
isCanvas: !0,
|
|
@@ -8013,7 +8012,7 @@ L(ua, {
|
|
|
8013
8012
|
canMoveIn: (t) => t.every((e) => wt(e) == E.FlexItem)
|
|
8014
8013
|
},
|
|
8015
8014
|
info: {
|
|
8016
|
-
displayName:
|
|
8015
|
+
displayName: Kh
|
|
8017
8016
|
}
|
|
8018
8017
|
});
|
|
8019
8018
|
const da = ({ children: t, ...e }) => {
|
|
@@ -8022,7 +8021,7 @@ const da = ({ children: t, ...e }) => {
|
|
|
8022
8021
|
o && n.connect(o);
|
|
8023
8022
|
}
|
|
8024
8023
|
]);
|
|
8025
|
-
return /* @__PURE__ */ I(
|
|
8024
|
+
return /* @__PURE__ */ I(yl, { ...e, ...i, ref: r, children: [
|
|
8026
8025
|
t,
|
|
8027
8026
|
J(t) && /* @__PURE__ */ g(pt, {})
|
|
8028
8027
|
] });
|
|
@@ -8037,13 +8036,13 @@ L(da, {
|
|
|
8037
8036
|
canDrag: () => !1
|
|
8038
8037
|
}
|
|
8039
8038
|
});
|
|
8040
|
-
const
|
|
8039
|
+
const Xh = (t) => /* @__PURE__ */ g(ke, { ...t, as: "div" }), fa = (t) => {
|
|
8041
8040
|
const { connectors: e } = O(), n = F(), i = W([
|
|
8042
8041
|
(r) => {
|
|
8043
8042
|
r && e.connect(r);
|
|
8044
8043
|
}
|
|
8045
8044
|
]);
|
|
8046
|
-
return /* @__PURE__ */ g(
|
|
8045
|
+
return /* @__PURE__ */ g(Xh, { ...t, ref: i, ...n });
|
|
8047
8046
|
};
|
|
8048
8047
|
L(fa, {
|
|
8049
8048
|
resolved: E.Paragraph,
|
|
@@ -8052,13 +8051,13 @@ L(fa, {
|
|
|
8052
8051
|
displayName: "Paragraph"
|
|
8053
8052
|
}
|
|
8054
8053
|
});
|
|
8055
|
-
const
|
|
8054
|
+
const Yh = ({ ...t }) => /* @__PURE__ */ g(ke, { ...t }), ha = (t) => {
|
|
8056
8055
|
const { connectors: e } = O(), n = F(), i = W([
|
|
8057
8056
|
(r) => {
|
|
8058
8057
|
r && e.connect(r);
|
|
8059
8058
|
}
|
|
8060
8059
|
]);
|
|
8061
|
-
return /* @__PURE__ */ g(
|
|
8060
|
+
return /* @__PURE__ */ g(Yh, { ...t, ref: i, ...n });
|
|
8062
8061
|
};
|
|
8063
8062
|
L(ha, {
|
|
8064
8063
|
resolved: E.Heading,
|
|
@@ -8073,7 +8072,7 @@ const pa = (t) => {
|
|
|
8073
8072
|
r && n.connect(r);
|
|
8074
8073
|
}
|
|
8075
8074
|
]);
|
|
8076
|
-
return /* @__PURE__ */ g(
|
|
8075
|
+
return /* @__PURE__ */ g(bl, { ...t, ...e, ref: i });
|
|
8077
8076
|
};
|
|
8078
8077
|
L(pa, {
|
|
8079
8078
|
resolved: E.Image,
|
|
@@ -8091,7 +8090,7 @@ const ma = (t) => {
|
|
|
8091
8090
|
}
|
|
8092
8091
|
]);
|
|
8093
8092
|
return /* @__PURE__ */ g(
|
|
8094
|
-
|
|
8093
|
+
Tl,
|
|
8095
8094
|
{
|
|
8096
8095
|
...t,
|
|
8097
8096
|
...i,
|
|
@@ -8100,7 +8099,7 @@ const ma = (t) => {
|
|
|
8100
8099
|
playOnInit: !1
|
|
8101
8100
|
} : t.autoScrollOptions,
|
|
8102
8101
|
...n ? {
|
|
8103
|
-
[
|
|
8102
|
+
[xl.PlayState]: "off"
|
|
8104
8103
|
} : {},
|
|
8105
8104
|
ref: r
|
|
8106
8105
|
}
|
|
@@ -8119,7 +8118,7 @@ L(ma, {
|
|
|
8119
8118
|
const ga = ({ children: t, ...e }) => {
|
|
8120
8119
|
const { connectors: n } = O(), i = F();
|
|
8121
8120
|
return /* @__PURE__ */ I(
|
|
8122
|
-
|
|
8121
|
+
wl,
|
|
8123
8122
|
{
|
|
8124
8123
|
...e,
|
|
8125
8124
|
...i,
|
|
@@ -8130,11 +8129,11 @@ const ga = ({ children: t, ...e }) => {
|
|
|
8130
8129
|
},
|
|
8131
8130
|
children: [
|
|
8132
8131
|
t,
|
|
8133
|
-
J(t) && /* @__PURE__ */ g(pt, { placeholder:
|
|
8132
|
+
J(t) && /* @__PURE__ */ g(pt, { placeholder: Zh })
|
|
8134
8133
|
]
|
|
8135
8134
|
}
|
|
8136
8135
|
);
|
|
8137
|
-
},
|
|
8136
|
+
}, Zh = "Accordion Content";
|
|
8138
8137
|
L(ga, {
|
|
8139
8138
|
resolved: E.AccordionContent,
|
|
8140
8139
|
isCanvas: !0,
|
|
@@ -8149,7 +8148,7 @@ L(ga, {
|
|
|
8149
8148
|
const va = (t) => {
|
|
8150
8149
|
const { connectors: e } = O(), n = F();
|
|
8151
8150
|
return /* @__PURE__ */ g(
|
|
8152
|
-
|
|
8151
|
+
Cl,
|
|
8153
8152
|
{
|
|
8154
8153
|
...t,
|
|
8155
8154
|
...n,
|
|
@@ -8175,7 +8174,7 @@ const ya = (t) => {
|
|
|
8175
8174
|
r && e.connect(r);
|
|
8176
8175
|
}
|
|
8177
8176
|
]);
|
|
8178
|
-
return /* @__PURE__ */ g(
|
|
8177
|
+
return /* @__PURE__ */ g(Al, { ...t, ...n, ref: i });
|
|
8179
8178
|
};
|
|
8180
8179
|
L(ya, {
|
|
8181
8180
|
resolved: E.Accordion,
|
|
@@ -8187,7 +8186,7 @@ L(ya, {
|
|
|
8187
8186
|
const ba = ({ children: t, ...e }) => {
|
|
8188
8187
|
const { connectors: n } = O(), i = F();
|
|
8189
8188
|
return /* @__PURE__ */ I(
|
|
8190
|
-
|
|
8189
|
+
Sl,
|
|
8191
8190
|
{
|
|
8192
8191
|
...e,
|
|
8193
8192
|
...i,
|
|
@@ -8196,11 +8195,11 @@ const ba = ({ children: t, ...e }) => {
|
|
|
8196
8195
|
},
|
|
8197
8196
|
children: [
|
|
8198
8197
|
t,
|
|
8199
|
-
J(t) && /* @__PURE__ */ g(pt, { placeholder:
|
|
8198
|
+
J(t) && /* @__PURE__ */ g(pt, { placeholder: Jh })
|
|
8200
8199
|
]
|
|
8201
8200
|
}
|
|
8202
8201
|
);
|
|
8203
|
-
},
|
|
8202
|
+
}, Jh = "Accordion summary";
|
|
8204
8203
|
L(ba, {
|
|
8205
8204
|
resolved: E.AccordionSummary,
|
|
8206
8205
|
isCanvas: !0,
|
|
@@ -8215,7 +8214,7 @@ L(ba, {
|
|
|
8215
8214
|
const Ta = ({ children: t, ...e }) => {
|
|
8216
8215
|
const n = F(), { connectors: i } = O();
|
|
8217
8216
|
return /* @__PURE__ */ I(
|
|
8218
|
-
|
|
8217
|
+
El,
|
|
8219
8218
|
{
|
|
8220
8219
|
...e,
|
|
8221
8220
|
...n,
|
|
@@ -8242,7 +8241,7 @@ L(Ta, {
|
|
|
8242
8241
|
const xa = ({ children: t, ...e }) => {
|
|
8243
8242
|
const n = F(), { connectors: i } = O();
|
|
8244
8243
|
return /* @__PURE__ */ I(
|
|
8245
|
-
|
|
8244
|
+
Pl,
|
|
8246
8245
|
{
|
|
8247
8246
|
...e,
|
|
8248
8247
|
...n,
|
|
@@ -8280,7 +8279,7 @@ const wa = ({
|
|
|
8280
8279
|
})), { connectors: l } = O(), u = Object.fromEntries(
|
|
8281
8280
|
["years", "months", "weeks", "days", "hours", "minutes", "seconds"].map((d) => [d, i.every((h) => h.value !== d)])
|
|
8282
8281
|
);
|
|
8283
|
-
return /* @__PURE__ */ g(
|
|
8282
|
+
return /* @__PURE__ */ g(Rl, { date: r, omit: u, children: (d) => /* @__PURE__ */ I(
|
|
8284
8283
|
bi,
|
|
8285
8284
|
{
|
|
8286
8285
|
...s,
|
|
@@ -8411,7 +8410,7 @@ L(wa, {
|
|
|
8411
8410
|
const Ca = (t) => {
|
|
8412
8411
|
const { connectors: e } = O(), n = F();
|
|
8413
8412
|
return /* @__PURE__ */ g(
|
|
8414
|
-
|
|
8413
|
+
Dl,
|
|
8415
8414
|
{
|
|
8416
8415
|
...n,
|
|
8417
8416
|
...t,
|
|
@@ -8434,7 +8433,7 @@ const Aa = (t) => {
|
|
|
8434
8433
|
r && n.connect(r);
|
|
8435
8434
|
}
|
|
8436
8435
|
]);
|
|
8437
|
-
return /* @__PURE__ */ g(
|
|
8436
|
+
return /* @__PURE__ */ g(kl, { ...t, ...e, ref: i });
|
|
8438
8437
|
};
|
|
8439
8438
|
L(Aa, {
|
|
8440
8439
|
isCanvas: !0,
|
|
@@ -8450,7 +8449,7 @@ const Sa = ({ children: t, ...e }) => {
|
|
|
8450
8449
|
o && n.connect(o);
|
|
8451
8450
|
}
|
|
8452
8451
|
]);
|
|
8453
|
-
return /* @__PURE__ */ I(
|
|
8452
|
+
return /* @__PURE__ */ I(Ml, { ...e, ...i, ref: r, children: [
|
|
8454
8453
|
t,
|
|
8455
8454
|
J(t) && /* @__PURE__ */ g(pt, {})
|
|
8456
8455
|
] });
|
|
@@ -8466,7 +8465,7 @@ L(Sa, {
|
|
|
8466
8465
|
const Ea = (t) => {
|
|
8467
8466
|
const { connectors: e } = O();
|
|
8468
8467
|
return /* @__PURE__ */ g(
|
|
8469
|
-
|
|
8468
|
+
Vl,
|
|
8470
8469
|
{
|
|
8471
8470
|
...t,
|
|
8472
8471
|
ref: (n) => {
|
|
@@ -8474,7 +8473,7 @@ const Ea = (t) => {
|
|
|
8474
8473
|
}
|
|
8475
8474
|
}
|
|
8476
8475
|
);
|
|
8477
|
-
},
|
|
8476
|
+
}, Qh = "Carousel";
|
|
8478
8477
|
L(Ea, {
|
|
8479
8478
|
resolved: E.Swiper,
|
|
8480
8479
|
isCanvas: !0,
|
|
@@ -8482,7 +8481,7 @@ L(Ea, {
|
|
|
8482
8481
|
canMoveIn: (t) => t.every((e) => wt(e) == E.SwiperSlide)
|
|
8483
8482
|
},
|
|
8484
8483
|
info: {
|
|
8485
|
-
displayName:
|
|
8484
|
+
displayName: Qh
|
|
8486
8485
|
}
|
|
8487
8486
|
});
|
|
8488
8487
|
const Pa = ({ children: t, ...e }) => {
|
|
@@ -8491,7 +8490,7 @@ const Pa = ({ children: t, ...e }) => {
|
|
|
8491
8490
|
o && i.connect(o);
|
|
8492
8491
|
}
|
|
8493
8492
|
]);
|
|
8494
|
-
return /* @__PURE__ */ I(
|
|
8493
|
+
return /* @__PURE__ */ I(_l, { ...e, ...n, ref: r, children: [
|
|
8495
8494
|
t,
|
|
8496
8495
|
J(t) && /* @__PURE__ */ g(pt, {})
|
|
8497
8496
|
] });
|
|
@@ -8509,7 +8508,7 @@ const Ra = (t) => {
|
|
|
8509
8508
|
r && e.connect(r);
|
|
8510
8509
|
}
|
|
8511
8510
|
]);
|
|
8512
|
-
return /* @__PURE__ */ g(
|
|
8511
|
+
return /* @__PURE__ */ g(Il, { ...t, ...n, ref: i });
|
|
8513
8512
|
};
|
|
8514
8513
|
L(Ra, {
|
|
8515
8514
|
resolved: E.TabContent,
|
|
@@ -8528,7 +8527,7 @@ const Da = (t) => {
|
|
|
8528
8527
|
r && e.connect(r);
|
|
8529
8528
|
}
|
|
8530
8529
|
]);
|
|
8531
|
-
return /* @__PURE__ */ g(
|
|
8530
|
+
return /* @__PURE__ */ g(Ol, { ...t, ...n, ref: i });
|
|
8532
8531
|
};
|
|
8533
8532
|
L(Da, {
|
|
8534
8533
|
resolved: E.TabList,
|
|
@@ -8547,7 +8546,7 @@ const ka = (t) => {
|
|
|
8547
8546
|
r && n.connect(r);
|
|
8548
8547
|
}
|
|
8549
8548
|
]);
|
|
8550
|
-
return /* @__PURE__ */ g(
|
|
8549
|
+
return /* @__PURE__ */ g(Ll, { ...t, ref: i, ...e });
|
|
8551
8550
|
};
|
|
8552
8551
|
L(ka, {
|
|
8553
8552
|
resolved: E.Tab,
|
|
@@ -8563,7 +8562,7 @@ const Ma = ({ children: t, ...e }) => {
|
|
|
8563
8562
|
o && n.connect(o);
|
|
8564
8563
|
}
|
|
8565
8564
|
]);
|
|
8566
|
-
return /* @__PURE__ */ I(
|
|
8565
|
+
return /* @__PURE__ */ I(Nl, { ...e, ...i, ref: r, children: [
|
|
8567
8566
|
t,
|
|
8568
8567
|
J(t) && /* @__PURE__ */ g(pt, {})
|
|
8569
8568
|
] });
|
|
@@ -8582,7 +8581,7 @@ const Va = (t) => {
|
|
|
8582
8581
|
i && e.connect(i);
|
|
8583
8582
|
}
|
|
8584
8583
|
]);
|
|
8585
|
-
return /* @__PURE__ */ g(
|
|
8584
|
+
return /* @__PURE__ */ g(Fl, { ...t, ref: n });
|
|
8586
8585
|
};
|
|
8587
8586
|
L(Va, {
|
|
8588
8587
|
resolved: E.Tabs,
|
|
@@ -8597,7 +8596,7 @@ const _a = (t) => {
|
|
|
8597
8596
|
i && e.connect(i);
|
|
8598
8597
|
}
|
|
8599
8598
|
]);
|
|
8600
|
-
return /* @__PURE__ */ g(
|
|
8599
|
+
return /* @__PURE__ */ g(Bl, { ...t, ref: n });
|
|
8601
8600
|
};
|
|
8602
8601
|
L(_a, {
|
|
8603
8602
|
resolved: E.UnorderedList,
|
|
@@ -8609,7 +8608,7 @@ L(_a, {
|
|
|
8609
8608
|
const Ia = ({ ...t }) => {
|
|
8610
8609
|
const e = F(), { connectors: n } = O();
|
|
8611
8610
|
return /* @__PURE__ */ g(
|
|
8612
|
-
|
|
8611
|
+
jl,
|
|
8613
8612
|
{
|
|
8614
8613
|
...t,
|
|
8615
8614
|
ref: (i) => {
|
|
@@ -8626,7 +8625,7 @@ L(Ia, {
|
|
|
8626
8625
|
displayName: "Video"
|
|
8627
8626
|
}
|
|
8628
8627
|
});
|
|
8629
|
-
const
|
|
8628
|
+
const jp = {
|
|
8630
8629
|
// Root
|
|
8631
8630
|
[E.Root]: bs,
|
|
8632
8631
|
// Unknown
|
|
@@ -8672,81 +8671,81 @@ const Wp = {
|
|
|
8672
8671
|
[E.CountdownTimer]: wa
|
|
8673
8672
|
};
|
|
8674
8673
|
export {
|
|
8675
|
-
|
|
8674
|
+
Op as $,
|
|
8676
8675
|
va as A,
|
|
8677
8676
|
ca as B,
|
|
8678
8677
|
xa as C,
|
|
8679
8678
|
ys as D,
|
|
8680
|
-
|
|
8679
|
+
nc as E,
|
|
8681
8680
|
da as F,
|
|
8682
8681
|
xs as G,
|
|
8683
8682
|
ha as H,
|
|
8684
8683
|
pa as I,
|
|
8685
8684
|
vs as J,
|
|
8686
|
-
|
|
8685
|
+
Tp as K,
|
|
8687
8686
|
la as L,
|
|
8688
|
-
|
|
8687
|
+
Ap as M,
|
|
8689
8688
|
wt as N,
|
|
8690
|
-
|
|
8689
|
+
ic as O,
|
|
8691
8690
|
fa as P,
|
|
8692
|
-
|
|
8691
|
+
bp as Q,
|
|
8693
8692
|
bs as R,
|
|
8694
8693
|
Ea as S,
|
|
8695
8694
|
Ra as T,
|
|
8696
8695
|
Ts as U,
|
|
8697
8696
|
Ia as V,
|
|
8698
|
-
|
|
8699
|
-
|
|
8700
|
-
|
|
8697
|
+
ec as W,
|
|
8698
|
+
xp as X,
|
|
8699
|
+
wp as Y,
|
|
8701
8700
|
jn as Z,
|
|
8702
|
-
|
|
8701
|
+
Gh as _,
|
|
8703
8702
|
aa as a,
|
|
8704
8703
|
sa as a0,
|
|
8705
|
-
|
|
8704
|
+
rc as a1,
|
|
8706
8705
|
gt as a2,
|
|
8707
8706
|
ds as a3,
|
|
8708
|
-
|
|
8709
|
-
|
|
8707
|
+
Rp as a4,
|
|
8708
|
+
ac as a5,
|
|
8710
8709
|
me as a6,
|
|
8711
|
-
|
|
8712
|
-
|
|
8713
|
-
|
|
8710
|
+
uc as a7,
|
|
8711
|
+
dc as a8,
|
|
8712
|
+
fc as a9,
|
|
8714
8713
|
E as aA,
|
|
8715
|
-
|
|
8716
|
-
|
|
8717
|
-
|
|
8714
|
+
jp as aB,
|
|
8715
|
+
qh as aa,
|
|
8716
|
+
Cp as ab,
|
|
8718
8717
|
As as ac,
|
|
8719
|
-
|
|
8718
|
+
Ip as ad,
|
|
8720
8719
|
ws as ae,
|
|
8721
8720
|
Nn as af,
|
|
8722
8721
|
ra as ag,
|
|
8723
|
-
|
|
8724
|
-
|
|
8722
|
+
Fp as ah,
|
|
8723
|
+
Bp as ai,
|
|
8725
8724
|
Vn as aj,
|
|
8726
8725
|
Ps as ak,
|
|
8727
|
-
|
|
8728
|
-
|
|
8729
|
-
|
|
8730
|
-
|
|
8731
|
-
|
|
8732
|
-
|
|
8733
|
-
|
|
8734
|
-
|
|
8735
|
-
|
|
8736
|
-
|
|
8726
|
+
zh as al,
|
|
8727
|
+
Lp as am,
|
|
8728
|
+
Np as an,
|
|
8729
|
+
$h as ao,
|
|
8730
|
+
Mp as ap,
|
|
8731
|
+
Pp as aq,
|
|
8732
|
+
Ep as ar,
|
|
8733
|
+
Sp as as,
|
|
8734
|
+
Vp as at,
|
|
8735
|
+
_p as au,
|
|
8737
8736
|
Es as av,
|
|
8738
|
-
|
|
8739
|
-
|
|
8740
|
-
|
|
8737
|
+
hc as aw,
|
|
8738
|
+
pc as ax,
|
|
8739
|
+
Dp as ay,
|
|
8741
8740
|
oa as az,
|
|
8742
|
-
|
|
8741
|
+
cc as b,
|
|
8743
8742
|
ya as c,
|
|
8744
8743
|
ba as d,
|
|
8745
8744
|
ga as e,
|
|
8746
8745
|
Ct as f,
|
|
8747
8746
|
Fn as g,
|
|
8748
|
-
|
|
8749
|
-
|
|
8747
|
+
Xh as h,
|
|
8748
|
+
Yh as i,
|
|
8750
8749
|
Ta as j,
|
|
8751
8750
|
pt as k,
|
|
8752
8751
|
wa as l,
|