@fluidattacks/design 3.7.12-pr-01 → 3.7.12-pr-03
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/@core/index.js +1 -1
- package/dist/components/accordion/accordion-content/index.js +1 -1
- package/dist/components/accordion/index.js +1 -1
- package/dist/components/alert/index.js +1 -1
- package/dist/components/button/index.js +1 -1
- package/dist/components/card/card-header/index.js +1 -1
- package/dist/components/card/card-with-image/index.js +1 -1
- package/dist/components/card/card-with-input/index.js +1 -1
- package/dist/components/card/card-with-options/index.js +1 -1
- package/dist/components/card/card-with-selector/index.js +1 -1
- package/dist/components/card/card-with-switch/index.js +1 -1
- package/dist/components/card/index.js +1 -1
- package/dist/components/carousel/index.js +1 -1
- package/dist/components/checkbox/index.js +1 -1
- package/dist/components/cloud-image/index.js +1 -1
- package/dist/components/code-snippet/index.js +1 -1
- package/dist/components/code-snippet/location-code/index.js +1 -1
- package/dist/components/colors/index.js +1 -1
- package/dist/components/confirm-dialog/index.js +1 -1
- package/dist/components/container/index.js +1 -1
- package/dist/components/content-card/category-tag/index.js +1 -1
- package/dist/components/content-card/event-date/index.js +1 -1
- package/dist/components/content-card/index.js +1 -1
- package/dist/components/content-card-carousel/index.js +1 -1
- package/dist/components/content-card-carousel/scroll-buttons/index.js +1 -1
- package/dist/components/divider/index.js +1 -1
- package/dist/components/empty-state/empty-button/index.js +1 -1
- package/dist/components/empty-state/index.js +1 -1
- package/dist/components/file-preview/index.js +1 -1
- package/dist/components/form/index.js +1 -1
- package/dist/components/grid-container/index.js +1 -1
- package/dist/components/group-selector/index.js +1 -1
- package/dist/components/group-selector/option-container/index.js +1 -1
- package/dist/components/icon/index.js +1 -1
- package/dist/components/icon-button/index.js +1 -1
- package/dist/components/indicator-card/index.js +1 -1
- package/dist/components/info-sidebar/index.js +1 -1
- package/dist/components/inputs/fields/combobox/field/index.js +1 -1
- package/dist/components/inputs/fields/combobox/index.js +1 -1
- package/dist/components/inputs/fields/combobox/option/index.js +1 -1
- package/dist/components/inputs/fields/combobox/types.d.ts +1 -4
- package/dist/components/inputs/fields/date/calendar/cell/index.js +1 -1
- package/dist/components/inputs/fields/date/calendar/grid/index.js +1 -1
- package/dist/components/inputs/fields/date/calendar/header/index.js +1 -1
- package/dist/components/inputs/fields/date/calendar/index.js +1 -1
- package/dist/components/inputs/fields/date/index.js +1 -1
- package/dist/components/inputs/fields/date-range/calendar/index.js +1 -1
- package/dist/components/inputs/fields/date-range/index.js +1 -1
- package/dist/components/inputs/fields/date-time/calendar/index.js +1 -1
- package/dist/components/inputs/fields/date-time/index.js +1 -1
- package/dist/components/inputs/fields/editable/index.js +1 -1
- package/dist/components/inputs/fields/input/index.js +1 -1
- package/dist/components/inputs/fields/input-file/index.js +1 -1
- package/dist/components/inputs/fields/input-tags/field/index.js +1 -1
- package/dist/components/inputs/fields/input-tags/index.js +1 -1
- package/dist/components/inputs/fields/number/index.js +1 -1
- package/dist/components/inputs/fields/number-range/index.js +1 -1
- package/dist/components/inputs/fields/phone/index.js +1 -1
- package/dist/components/inputs/fields/text-area/index.js +1 -1
- package/dist/components/inputs/index.js +1 -1
- package/dist/components/inputs/label/index.js +1 -1
- package/dist/components/inputs/outline-container/index.js +1 -1
- package/dist/components/inputs/utils/action-button/index.js +1 -1
- package/dist/components/inputs/utils/calendar-button/index.js +1 -1
- package/dist/components/inputs/utils/date-selector/index.js +1 -1
- package/dist/components/inputs/utils/date-time-field/index.js +1 -1
- package/dist/components/inputs/utils/dialog/index.js +1 -1
- package/dist/components/inputs/utils/number-field/index.js +1 -1
- package/dist/components/inputs/utils/popover/index.js +1 -1
- package/dist/components/interactive-card/icon/index.js +1 -1
- package/dist/components/interactive-card/index.js +1 -1
- package/dist/components/language-selector/index.js +1 -1
- package/dist/components/language-selector/item-list/index.js +1 -1
- package/dist/components/layout/categories/buttons/index.js +1 -1
- package/dist/components/layout/categories/column/index.js +1 -1
- package/dist/components/layout/categories/gap/index.js +1 -1
- package/dist/components/layout/categories/row/index.js +1 -1
- package/dist/components/layout/index.js +1 -1
- package/dist/components/link/index.js +1 -1
- package/dist/components/list-item/index.js +1 -1
- package/dist/components/little-flag/index.js +1 -1
- package/dist/components/loading/index.js +1 -1
- package/dist/components/logo/index.js +1 -1
- package/dist/components/logo-carousel/index.js +1 -1
- package/dist/components/menu/index.js +1 -1
- package/dist/components/message-banner/index.js +1 -1
- package/dist/components/modal/columns-modal/index.js +1 -1
- package/dist/components/modal/columns-modal/preview-panel/index.js +1 -1
- package/dist/components/modal/columns-modal/search-panel/index.js +1 -1
- package/dist/components/modal/filters-modal/filters-list/index.js +1 -1
- package/dist/components/modal/filters-modal/options-selector/index.js +1 -1
- package/dist/components/modal/filters-modal/single-column-filters/index.js +1 -1
- package/dist/components/modal/filters-modal/two-columns-filters/index.js +1 -1
- package/dist/components/modal/footer/index.js +1 -1
- package/dist/components/modal/header/index.js +1 -1
- package/dist/components/modal/index.d.ts +3 -0
- package/dist/components/modal/index.js +1 -1
- package/dist/components/modal/modal-confirm/index.js +1 -1
- package/dist/components/notification/index.js +1 -1
- package/dist/components/notification-sign/index.js +1 -1
- package/dist/components/number-input/index.js +1 -1
- package/dist/components/oauth-selector/index.js +1 -1
- package/dist/components/oauth-selector/option-container/index.js +1 -1
- package/dist/components/plan-card/index.js +1 -1
- package/dist/components/plan-card/recommended-tag/index.js +1 -1
- package/dist/components/pop-up/description/index.js +1 -1
- package/dist/components/pop-up/index.js +1 -1
- package/dist/components/premium-feature/index.js +1 -1
- package/dist/components/priority-score/index.js +1 -1
- package/dist/components/progress/index.js +1 -1
- package/dist/components/progress-bar/index.js +1 -1
- package/dist/components/radio-button/index.js +1 -1
- package/dist/components/scroll-button/index.js +1 -1
- package/dist/components/search/index.js +1 -1
- package/dist/components/search-bar/index.js +1 -1
- package/dist/components/search-bar/item-searching/index.js +1 -1
- package/dist/components/severity-badge/index.js +1 -1
- package/dist/components/severity-overview/badge/index.js +1 -1
- package/dist/components/severity-overview/index.js +1 -1
- package/dist/components/show-on-hover/index.js +1 -1
- package/dist/components/slide-out-menu/index.js +1 -1
- package/dist/components/slide-out-menu/menu-item/index.js +1 -1
- package/dist/components/slider/index.js +1 -1
- package/dist/components/slider/thumb/index.js +1 -1
- package/dist/components/step-lapse/index.js +1 -1
- package/dist/components/table-button/index.js +1 -1
- package/dist/components/tabs/fixed-tabs/index.js +1 -1
- package/dist/components/tabs/index.js +1 -1
- package/dist/components/tabs/tab/index.js +1 -1
- package/dist/components/tag/index.js +1 -1
- package/dist/components/timeline/card/index.js +1 -1
- package/dist/components/timeline/index.js +1 -1
- package/dist/components/toggle/index.js +1 -1
- package/dist/components/toggle-buttons/index.js +1 -1
- package/dist/components/tooltip/index.js +1 -1
- package/dist/components/tour/index.js +1 -1
- package/dist/components/typography/heading/index.js +1 -1
- package/dist/components/typography/index.js +1 -1
- package/dist/components/typography/span/index.js +1 -1
- package/dist/components/typography/text/index.js +1 -1
- package/dist/components/web-form/index.js +1 -1
- package/dist/{components-BZYBxxf4.js → components-BfW428Dg.js} +364 -367
- package/dist/{components-D8xs8uyF.mjs → components-V-Xm9H6n.mjs} +3662 -3638
- package/dist/hooks/index.js +1 -1
- package/dist/index.js +1 -1
- package/dist/{vendor-DnQeSF2D.mjs → vendor-CcjQphTP.mjs} +914 -914
- package/dist/{vendor-W2AXDx_l.js → vendor-CoxRLRoC.js} +2 -2
- package/package.json +1 -1
|
@@ -26501,135 +26501,7 @@ var sie = iH();
|
|
|
26501
26501
|
m.forEach(o);
|
|
26502
26502
|
});
|
|
26503
26503
|
})();
|
|
26504
|
-
const
|
|
26505
|
-
if (e && "reportValidity" in e) {
|
|
26506
|
-
const r = _e(n, t);
|
|
26507
|
-
e.setCustomValidity(r && r.message || ""), e.reportValidity();
|
|
26508
|
-
}
|
|
26509
|
-
}, o6 = (e, t) => {
|
|
26510
|
-
for (const n in t.fields) {
|
|
26511
|
-
const r = t.fields[n];
|
|
26512
|
-
r && r.ref && "reportValidity" in r.ref ? zx(r.ref, n, e) : r.refs && r.refs.forEach((i) => zx(i, n, e));
|
|
26513
|
-
}
|
|
26514
|
-
}, oH = (e, t) => {
|
|
26515
|
-
t.shouldUseNativeValidation && o6(e, t);
|
|
26516
|
-
const n = {};
|
|
26517
|
-
for (const r in e) {
|
|
26518
|
-
const i = _e(t.fields, r), o = Object.assign(e[r] || {}, { ref: i && i.ref });
|
|
26519
|
-
if (aH(t.names || Object.keys(e), r)) {
|
|
26520
|
-
const a = Object.assign({}, _e(n, r));
|
|
26521
|
-
Ot(a, "root", o), Ot(n, r, a);
|
|
26522
|
-
} else Ot(n, r, o);
|
|
26523
|
-
}
|
|
26524
|
-
return n;
|
|
26525
|
-
}, aH = (e, t) => e.some((n) => n.startsWith(t + "."));
|
|
26526
|
-
function uie(e, t, n) {
|
|
26527
|
-
return t === void 0 && (t = {}), n === void 0 && (n = {}), function(r, i, o) {
|
|
26528
|
-
try {
|
|
26529
|
-
return Promise.resolve(function(a, u) {
|
|
26530
|
-
try {
|
|
26531
|
-
var c = (t.context && process.env.NODE_ENV === "development" && console.warn("You should not used the yup options context. Please, use the 'useForm' context object instead"), Promise.resolve(e[n.mode === "sync" ? "validateSync" : "validate"](r, Object.assign({ abortEarly: !1 }, t, { context: i }))).then(function(d) {
|
|
26532
|
-
return o.shouldUseNativeValidation && o6({}, o), { values: n.raw ? r : d, errors: {} };
|
|
26533
|
-
}));
|
|
26534
|
-
} catch (d) {
|
|
26535
|
-
return u(d);
|
|
26536
|
-
}
|
|
26537
|
-
return c && c.then ? c.then(void 0, u) : c;
|
|
26538
|
-
}(0, function(a) {
|
|
26539
|
-
if (!a.inner) throw a;
|
|
26540
|
-
return { values: {}, errors: oH((u = a, c = !o.shouldUseNativeValidation && o.criteriaMode === "all", (u.inner || []).reduce(function(d, f) {
|
|
26541
|
-
if (d[f.path] || (d[f.path] = { message: f.message, type: f.type }), c) {
|
|
26542
|
-
var h = d[f.path].types, m = h && h[f.type];
|
|
26543
|
-
d[f.path] = LC(f.path, c, d, f.type, m ? [].concat(m, f.message) : f.message);
|
|
26544
|
-
}
|
|
26545
|
-
return d;
|
|
26546
|
-
}, {})), o) };
|
|
26547
|
-
var u, c;
|
|
26548
|
-
}));
|
|
26549
|
-
} catch (a) {
|
|
26550
|
-
return Promise.reject(a);
|
|
26551
|
-
}
|
|
26552
|
-
};
|
|
26553
|
-
}
|
|
26554
|
-
var Rg, Wx;
|
|
26555
|
-
function sH() {
|
|
26556
|
-
if (Wx) return Rg;
|
|
26557
|
-
Wx = 1;
|
|
26558
|
-
var e = typeof Hi == "object" && Hi && Hi.Object === Object && Hi;
|
|
26559
|
-
return Rg = e, Rg;
|
|
26560
|
-
}
|
|
26561
|
-
var Og, Hx;
|
|
26562
|
-
function uH() {
|
|
26563
|
-
if (Hx) return Og;
|
|
26564
|
-
Hx = 1;
|
|
26565
|
-
var e = sH(), t = typeof self == "object" && self && self.Object === Object && self, n = e || t || Function("return this")();
|
|
26566
|
-
return Og = n, Og;
|
|
26567
|
-
}
|
|
26568
|
-
var Fg, Gx;
|
|
26569
|
-
function a6() {
|
|
26570
|
-
if (Gx) return Fg;
|
|
26571
|
-
Gx = 1;
|
|
26572
|
-
var e = uH(), t = e.Symbol;
|
|
26573
|
-
return Fg = t, Fg;
|
|
26574
|
-
}
|
|
26575
|
-
var Mg, qx;
|
|
26576
|
-
function lH() {
|
|
26577
|
-
if (qx) return Mg;
|
|
26578
|
-
qx = 1;
|
|
26579
|
-
var e = a6(), t = Object.prototype, n = t.hasOwnProperty, r = t.toString, i = e ? e.toStringTag : void 0;
|
|
26580
|
-
function o(a) {
|
|
26581
|
-
var u = n.call(a, i), c = a[i];
|
|
26582
|
-
try {
|
|
26583
|
-
a[i] = void 0;
|
|
26584
|
-
var d = !0;
|
|
26585
|
-
} catch {
|
|
26586
|
-
}
|
|
26587
|
-
var f = r.call(a);
|
|
26588
|
-
return d && (u ? a[i] = c : delete a[i]), f;
|
|
26589
|
-
}
|
|
26590
|
-
return Mg = o, Mg;
|
|
26591
|
-
}
|
|
26592
|
-
var kg, Yx;
|
|
26593
|
-
function cH() {
|
|
26594
|
-
if (Yx) return kg;
|
|
26595
|
-
Yx = 1;
|
|
26596
|
-
var e = Object.prototype, t = e.toString;
|
|
26597
|
-
function n(r) {
|
|
26598
|
-
return t.call(r);
|
|
26599
|
-
}
|
|
26600
|
-
return kg = n, kg;
|
|
26601
|
-
}
|
|
26602
|
-
var Bg, Zx;
|
|
26603
|
-
function dH() {
|
|
26604
|
-
if (Zx) return Bg;
|
|
26605
|
-
Zx = 1;
|
|
26606
|
-
var e = a6(), t = lH(), n = cH(), r = "[object Null]", i = "[object Undefined]", o = e ? e.toStringTag : void 0;
|
|
26607
|
-
function a(u) {
|
|
26608
|
-
return u == null ? u === void 0 ? i : r : o && o in Object(u) ? t(u) : n(u);
|
|
26609
|
-
}
|
|
26610
|
-
return Bg = a, Bg;
|
|
26611
|
-
}
|
|
26612
|
-
var Ig, Jx;
|
|
26613
|
-
function fH() {
|
|
26614
|
-
if (Jx) return Ig;
|
|
26615
|
-
Jx = 1;
|
|
26616
|
-
function e(t) {
|
|
26617
|
-
return t != null && typeof t == "object";
|
|
26618
|
-
}
|
|
26619
|
-
return Ig = e, Ig;
|
|
26620
|
-
}
|
|
26621
|
-
var Lg, Xx;
|
|
26622
|
-
function hH() {
|
|
26623
|
-
if (Xx) return Lg;
|
|
26624
|
-
Xx = 1;
|
|
26625
|
-
var e = dH(), t = fH(), n = "[object Number]";
|
|
26626
|
-
function r(i) {
|
|
26627
|
-
return typeof i == "number" || t(i) && e(i) == n;
|
|
26628
|
-
}
|
|
26629
|
-
return Lg = r, Lg;
|
|
26630
|
-
}
|
|
26631
|
-
var pH = hH();
|
|
26632
|
-
const lie = /* @__PURE__ */ Mo(pH), s6 = zn({});
|
|
26504
|
+
const o6 = zn({});
|
|
26633
26505
|
function td(e) {
|
|
26634
26506
|
const t = $e(null);
|
|
26635
26507
|
return t.current === null && (t.current = e()), t.current;
|
|
@@ -26639,7 +26511,7 @@ const u0 = zn(null), l0 = zn({
|
|
|
26639
26511
|
isStatic: !1,
|
|
26640
26512
|
reducedMotion: "never"
|
|
26641
26513
|
});
|
|
26642
|
-
function
|
|
26514
|
+
function oH(e = !0) {
|
|
26643
26515
|
const t = st(u0);
|
|
26644
26516
|
if (t === null)
|
|
26645
26517
|
return [!0, null];
|
|
@@ -26650,7 +26522,7 @@ function mH(e = !0) {
|
|
|
26650
26522
|
const a = bt(() => e && r && r(o), [o, r, e]);
|
|
26651
26523
|
return !n && r ? [!1, a] : [!0];
|
|
26652
26524
|
}
|
|
26653
|
-
const c0 = typeof window < "u",
|
|
26525
|
+
const c0 = typeof window < "u", a6 = c0 ? zh : Re, Rr = (e) => e;
|
|
26654
26526
|
let Xu = Rr, io = Rr;
|
|
26655
26527
|
process.env.NODE_ENV !== "production" && (Xu = (e, t) => {
|
|
26656
26528
|
!e && typeof console < "u" && console.warn(t);
|
|
@@ -26665,11 +26537,11 @@ function d0(e) {
|
|
|
26665
26537
|
const Bu = (e, t, n) => {
|
|
26666
26538
|
const r = t - e;
|
|
26667
26539
|
return r === 0 ? 1 : (n - e) / r;
|
|
26668
|
-
}, eo = (e) => e * 1e3, Po = (e) => e / 1e3,
|
|
26540
|
+
}, eo = (e) => e * 1e3, Po = (e) => e / 1e3, aH = {
|
|
26669
26541
|
skipAnimations: !1,
|
|
26670
26542
|
useManualTiming: !1
|
|
26671
26543
|
};
|
|
26672
|
-
function
|
|
26544
|
+
function sH(e) {
|
|
26673
26545
|
let t = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set(), r = !1, i = !1;
|
|
26674
26546
|
const o = /* @__PURE__ */ new WeakSet();
|
|
26675
26547
|
let a = {
|
|
@@ -26720,16 +26592,16 @@ const xf = [
|
|
|
26720
26592
|
// Write
|
|
26721
26593
|
"postRender"
|
|
26722
26594
|
// Compute
|
|
26723
|
-
],
|
|
26724
|
-
function
|
|
26595
|
+
], uH = 40;
|
|
26596
|
+
function s6(e, t) {
|
|
26725
26597
|
let n = !1, r = !0;
|
|
26726
26598
|
const i = {
|
|
26727
26599
|
delta: 0,
|
|
26728
26600
|
timestamp: 0,
|
|
26729
26601
|
isProcessing: !1
|
|
26730
|
-
}, o = () => n = !0, a = xf.reduce(($, y) => ($[y] =
|
|
26602
|
+
}, o = () => n = !0, a = xf.reduce(($, y) => ($[y] = sH(o), $), {}), { read: u, resolveKeyframes: c, update: d, preRender: f, render: h, postRender: m } = a, g = () => {
|
|
26731
26603
|
const $ = performance.now();
|
|
26732
|
-
n = !1, i.delta = r ? 1e3 / 60 : Math.max(Math.min($ - i.timestamp,
|
|
26604
|
+
n = !1, i.delta = r ? 1e3 / 60 : Math.max(Math.min($ - i.timestamp, uH), 1), i.timestamp = $, i.isProcessing = !0, u.process(i), c.process(i), d.process(i), f.process(i), h.process(i), m.process(i), i.isProcessing = !1, n && t && (r = !1, e(g));
|
|
26733
26605
|
}, v = () => {
|
|
26734
26606
|
n = !0, r = !0, i.isProcessing || e(g);
|
|
26735
26607
|
};
|
|
@@ -26741,7 +26613,7 @@ function l6(e, t) {
|
|
|
26741
26613
|
a[xf[y]].cancel($);
|
|
26742
26614
|
}, state: i, steps: a };
|
|
26743
26615
|
}
|
|
26744
|
-
const { schedule: Gt, cancel: Oo, state: Kn, steps:
|
|
26616
|
+
const { schedule: Gt, cancel: Oo, state: Kn, steps: Rg } = s6(typeof requestAnimationFrame < "u" ? requestAnimationFrame : Rr, !0), u6 = zn({ strict: !1 }), zx = {
|
|
26745
26617
|
animation: [
|
|
26746
26618
|
"animate",
|
|
26747
26619
|
"variants",
|
|
@@ -26761,18 +26633,18 @@ const { schedule: Gt, cancel: Oo, state: Kn, steps: Vg } = l6(typeof requestAnim
|
|
|
26761
26633
|
inView: ["whileInView", "onViewportEnter", "onViewportLeave"],
|
|
26762
26634
|
layout: ["layout", "layoutId"]
|
|
26763
26635
|
}, Iu = {};
|
|
26764
|
-
for (const e in
|
|
26636
|
+
for (const e in zx)
|
|
26765
26637
|
Iu[e] = {
|
|
26766
|
-
isEnabled: (t) =>
|
|
26638
|
+
isEnabled: (t) => zx[e].some((n) => !!t[n])
|
|
26767
26639
|
};
|
|
26768
|
-
function
|
|
26640
|
+
function lH(e) {
|
|
26769
26641
|
for (const t in e)
|
|
26770
26642
|
Iu[t] = {
|
|
26771
26643
|
...Iu[t],
|
|
26772
26644
|
...e[t]
|
|
26773
26645
|
};
|
|
26774
26646
|
}
|
|
26775
|
-
const
|
|
26647
|
+
const cH = /* @__PURE__ */ new Set([
|
|
26776
26648
|
"animate",
|
|
26777
26649
|
"exit",
|
|
26778
26650
|
"variants",
|
|
@@ -26805,28 +26677,28 @@ const $H = /* @__PURE__ */ new Set([
|
|
|
26805
26677
|
"viewport"
|
|
26806
26678
|
]);
|
|
26807
26679
|
function Sh(e) {
|
|
26808
|
-
return e.startsWith("while") || e.startsWith("drag") && e !== "draggable" || e.startsWith("layout") || e.startsWith("onTap") || e.startsWith("onPan") || e.startsWith("onLayout") ||
|
|
26680
|
+
return e.startsWith("while") || e.startsWith("drag") && e !== "draggable" || e.startsWith("layout") || e.startsWith("onTap") || e.startsWith("onPan") || e.startsWith("onLayout") || cH.has(e);
|
|
26809
26681
|
}
|
|
26810
|
-
let
|
|
26811
|
-
function
|
|
26812
|
-
e && (
|
|
26682
|
+
let l6 = (e) => !Sh(e);
|
|
26683
|
+
function dH(e) {
|
|
26684
|
+
e && (l6 = (t) => t.startsWith("on") ? !Sh(t) : e(t));
|
|
26813
26685
|
}
|
|
26814
26686
|
try {
|
|
26815
|
-
|
|
26687
|
+
dH(require("@emotion/is-prop-valid").default);
|
|
26816
26688
|
} catch {
|
|
26817
26689
|
}
|
|
26818
|
-
function
|
|
26690
|
+
function fH(e, t, n) {
|
|
26819
26691
|
const r = {};
|
|
26820
26692
|
for (const i in e)
|
|
26821
|
-
i === "values" && typeof e.values == "object" || (
|
|
26693
|
+
i === "values" && typeof e.values == "object" || (l6(i) || n === !0 && Sh(i) || !t && !Sh(i) || // If trying to use native HTML drag events, forward drag listeners
|
|
26822
26694
|
e.draggable && i.startsWith("onDrag")) && (r[i] = e[i]);
|
|
26823
26695
|
return r;
|
|
26824
26696
|
}
|
|
26825
|
-
const
|
|
26697
|
+
const Wx = /* @__PURE__ */ new Set();
|
|
26826
26698
|
function Ep(e, t, n) {
|
|
26827
|
-
e ||
|
|
26699
|
+
e || Wx.has(t) || (console.warn(t), Wx.add(t));
|
|
26828
26700
|
}
|
|
26829
|
-
function
|
|
26701
|
+
function hH(e) {
|
|
26830
26702
|
if (typeof Proxy > "u")
|
|
26831
26703
|
return e;
|
|
26832
26704
|
const t = /* @__PURE__ */ new Map(), n = (...r) => (process.env.NODE_ENV !== "production" && Ep(!1, "motion() is deprecated. Use motion.create() instead."), e(...r));
|
|
@@ -26858,10 +26730,10 @@ const f0 = [
|
|
|
26858
26730
|
function Tp(e) {
|
|
26859
26731
|
return Sp(e.animate) || h0.some((t) => Ac(e[t]));
|
|
26860
26732
|
}
|
|
26861
|
-
function
|
|
26733
|
+
function c6(e) {
|
|
26862
26734
|
return !!(Tp(e) || e.variants);
|
|
26863
26735
|
}
|
|
26864
|
-
function
|
|
26736
|
+
function pH(e, t) {
|
|
26865
26737
|
if (Tp(e)) {
|
|
26866
26738
|
const { initial: n, animate: r } = e;
|
|
26867
26739
|
return {
|
|
@@ -26871,18 +26743,18 @@ function EH(e, t) {
|
|
|
26871
26743
|
}
|
|
26872
26744
|
return e.inherit !== !1 ? t : {};
|
|
26873
26745
|
}
|
|
26874
|
-
function
|
|
26875
|
-
const { initial: t, animate: n } =
|
|
26876
|
-
return Te(() => ({ initial: t, animate: n }), [
|
|
26746
|
+
function mH(e) {
|
|
26747
|
+
const { initial: t, animate: n } = pH(e, st(Cp));
|
|
26748
|
+
return Te(() => ({ initial: t, animate: n }), [Hx(t), Hx(n)]);
|
|
26877
26749
|
}
|
|
26878
|
-
function
|
|
26750
|
+
function Hx(e) {
|
|
26879
26751
|
return Array.isArray(e) ? e.join(" ") : e;
|
|
26880
26752
|
}
|
|
26881
|
-
const
|
|
26753
|
+
const gH = Symbol.for("motionComponentSymbol");
|
|
26882
26754
|
function lu(e) {
|
|
26883
26755
|
return e && typeof e == "object" && Object.prototype.hasOwnProperty.call(e, "current");
|
|
26884
26756
|
}
|
|
26885
|
-
function
|
|
26757
|
+
function yH(e, t, n) {
|
|
26886
26758
|
return bt(
|
|
26887
26759
|
(r) => {
|
|
26888
26760
|
r && e.onMount && e.onMount(r), t && (r ? t.mount(r) : t.unmount()), n && (typeof n == "function" ? n(r) : lu(n) && (n.current = r));
|
|
@@ -26895,10 +26767,10 @@ function TH(e, t, n) {
|
|
|
26895
26767
|
[t]
|
|
26896
26768
|
);
|
|
26897
26769
|
}
|
|
26898
|
-
const p0 = (e) => e.replace(/([a-z])([A-Z])/gu, "$1-$2").toLowerCase(),
|
|
26899
|
-
function
|
|
26770
|
+
const p0 = (e) => e.replace(/([a-z])([A-Z])/gu, "$1-$2").toLowerCase(), vH = "framerAppearId", d6 = "data-" + p0(vH), { schedule: m0, cancel: uie } = s6(queueMicrotask, !1), f6 = zn({});
|
|
26771
|
+
function bH(e, t, n, r, i) {
|
|
26900
26772
|
var o, a;
|
|
26901
|
-
const { visualElement: u } = st(Cp), c = st(
|
|
26773
|
+
const { visualElement: u } = st(Cp), c = st(u6), d = st(u0), f = st(l0).reducedMotion, h = $e(null);
|
|
26902
26774
|
r = r || c.renderer, !h.current && r && (h.current = r(e, {
|
|
26903
26775
|
visualState: t,
|
|
26904
26776
|
parent: u,
|
|
@@ -26907,14 +26779,14 @@ function PH(e, t, n, r, i) {
|
|
|
26907
26779
|
blockInitialAnimation: d ? d.initial === !1 : !1,
|
|
26908
26780
|
reducedMotionConfig: f
|
|
26909
26781
|
}));
|
|
26910
|
-
const m = h.current, g = st(
|
|
26911
|
-
m && !m.projection && i && (m.type === "html" || m.type === "svg") &&
|
|
26782
|
+
const m = h.current, g = st(f6);
|
|
26783
|
+
m && !m.projection && i && (m.type === "html" || m.type === "svg") && $H(h.current, n, i, g);
|
|
26912
26784
|
const v = $e(!1);
|
|
26913
26785
|
NE(() => {
|
|
26914
26786
|
m && v.current && m.update(n, d);
|
|
26915
26787
|
});
|
|
26916
|
-
const b = n[
|
|
26917
|
-
return
|
|
26788
|
+
const b = n[d6], E = $e(!!b && !(!((o = window.MotionHandoffIsComplete) === null || o === void 0) && o.call(window, b)) && ((a = window.MotionHasOptimisedAnimation) === null || a === void 0 ? void 0 : a.call(window, b)));
|
|
26789
|
+
return a6(() => {
|
|
26918
26790
|
m && (v.current = !0, window.MotionIsMounted = !0, m.updateFeatures(), m0.render(m.render), E.current && m.animationState && m.animationState.animateChanges());
|
|
26919
26791
|
}), Re(() => {
|
|
26920
26792
|
m && (!E.current && m.animationState && m.animationState.animateChanges(), E.current && (queueMicrotask(() => {
|
|
@@ -26923,9 +26795,9 @@ function PH(e, t, n, r, i) {
|
|
|
26923
26795
|
}), E.current = !1));
|
|
26924
26796
|
}), m;
|
|
26925
26797
|
}
|
|
26926
|
-
function
|
|
26798
|
+
function $H(e, t, n, r) {
|
|
26927
26799
|
const { layoutId: i, layout: o, drag: a, dragConstraints: u, layoutScroll: c, layoutRoot: d } = t;
|
|
26928
|
-
e.projection = new n(e.latestValues, t["data-framer-portal-id"] ? void 0 :
|
|
26800
|
+
e.projection = new n(e.latestValues, t["data-framer-portal-id"] ? void 0 : h6(e.parent)), e.projection.setOptions({
|
|
26929
26801
|
layoutId: i,
|
|
26930
26802
|
layout: o,
|
|
26931
26803
|
alwaysMeasureLayout: !!a || u && lu(u),
|
|
@@ -26943,43 +26815,43 @@ function _H(e, t, n, r) {
|
|
|
26943
26815
|
layoutRoot: d
|
|
26944
26816
|
});
|
|
26945
26817
|
}
|
|
26946
|
-
function
|
|
26818
|
+
function h6(e) {
|
|
26947
26819
|
if (e)
|
|
26948
|
-
return e.options.allowProjection !== !1 ? e.projection :
|
|
26820
|
+
return e.options.allowProjection !== !1 ? e.projection : h6(e.parent);
|
|
26949
26821
|
}
|
|
26950
|
-
function
|
|
26822
|
+
function xH({ preloadedFeatures: e, createVisualElement: t, useRender: n, useVisualState: r, Component: i }) {
|
|
26951
26823
|
var o, a;
|
|
26952
|
-
e &&
|
|
26824
|
+
e && lH(e);
|
|
26953
26825
|
function u(d, f) {
|
|
26954
26826
|
let h;
|
|
26955
26827
|
const m = {
|
|
26956
26828
|
...st(l0),
|
|
26957
26829
|
...d,
|
|
26958
|
-
layoutId:
|
|
26959
|
-
}, { isStatic: g } = m, v =
|
|
26830
|
+
layoutId: wH(d)
|
|
26831
|
+
}, { isStatic: g } = m, v = mH(d), b = r(d, g);
|
|
26960
26832
|
if (!g && c0) {
|
|
26961
|
-
|
|
26962
|
-
const E =
|
|
26963
|
-
h = E.MeasureLayout, v.visualElement =
|
|
26833
|
+
DH(m, e);
|
|
26834
|
+
const E = EH(m);
|
|
26835
|
+
h = E.MeasureLayout, v.visualElement = bH(i, b, m, t, E.ProjectionNode);
|
|
26964
26836
|
}
|
|
26965
|
-
return KE(Cp.Provider, { value: v, children: [h && v.visualElement ? as(h, { visualElement: v.visualElement, ...m }) : null, n(i, d,
|
|
26837
|
+
return KE(Cp.Provider, { value: v, children: [h && v.visualElement ? as(h, { visualElement: v.visualElement, ...m }) : null, n(i, d, yH(b, v.visualElement, f), b, g, v.visualElement)] });
|
|
26966
26838
|
}
|
|
26967
26839
|
u.displayName = `motion.${typeof i == "string" ? i : `create(${(a = (o = i.displayName) !== null && o !== void 0 ? o : i.name) !== null && a !== void 0 ? a : ""})`}`;
|
|
26968
26840
|
const c = Ic(u);
|
|
26969
|
-
return c[
|
|
26841
|
+
return c[gH] = i, c;
|
|
26970
26842
|
}
|
|
26971
|
-
function
|
|
26972
|
-
const t = st(
|
|
26843
|
+
function wH({ layoutId: e }) {
|
|
26844
|
+
const t = st(o6).id;
|
|
26973
26845
|
return t && e !== void 0 ? t + "-" + e : e;
|
|
26974
26846
|
}
|
|
26975
|
-
function
|
|
26976
|
-
const n = st(
|
|
26847
|
+
function DH(e, t) {
|
|
26848
|
+
const n = st(u6).strict;
|
|
26977
26849
|
if (process.env.NODE_ENV !== "production" && t && n) {
|
|
26978
26850
|
const r = "You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";
|
|
26979
26851
|
e.ignoreStrict ? Xu(!1, r) : io(!1, r);
|
|
26980
26852
|
}
|
|
26981
26853
|
}
|
|
26982
|
-
function
|
|
26854
|
+
function EH(e) {
|
|
26983
26855
|
const { drag: t, layout: n } = Iu;
|
|
26984
26856
|
if (!t && !n)
|
|
26985
26857
|
return {};
|
|
@@ -26989,7 +26861,7 @@ function MH(e) {
|
|
|
26989
26861
|
ProjectionNode: r.ProjectionNode
|
|
26990
26862
|
};
|
|
26991
26863
|
}
|
|
26992
|
-
const
|
|
26864
|
+
const CH = [
|
|
26993
26865
|
"animate",
|
|
26994
26866
|
"circle",
|
|
26995
26867
|
"defs",
|
|
@@ -27029,14 +26901,14 @@ function g0(e) {
|
|
|
27029
26901
|
/**
|
|
27030
26902
|
* If it's in our list of lowercase SVG tags, it's an SVG component
|
|
27031
26903
|
*/
|
|
27032
|
-
!!(
|
|
26904
|
+
!!(CH.indexOf(e) > -1 || /**
|
|
27033
26905
|
* If it contains a capital letter, it's an SVG component
|
|
27034
26906
|
*/
|
|
27035
26907
|
/[A-Z]/u.test(e))
|
|
27036
26908
|
)
|
|
27037
26909
|
);
|
|
27038
26910
|
}
|
|
27039
|
-
function
|
|
26911
|
+
function Gx(e) {
|
|
27040
26912
|
const t = [{}, {}];
|
|
27041
26913
|
return e == null || e.values.forEach((n, r) => {
|
|
27042
26914
|
t[0][r] = n.get(), t[1][r] = n.getVelocity();
|
|
@@ -27044,37 +26916,37 @@ function nw(e) {
|
|
|
27044
26916
|
}
|
|
27045
26917
|
function y0(e, t, n, r) {
|
|
27046
26918
|
if (typeof t == "function") {
|
|
27047
|
-
const [i, o] =
|
|
26919
|
+
const [i, o] = Gx(r);
|
|
27048
26920
|
t = t(n !== void 0 ? n : e.custom, i, o);
|
|
27049
26921
|
}
|
|
27050
26922
|
if (typeof t == "string" && (t = e.variants && e.variants[t]), typeof t == "function") {
|
|
27051
|
-
const [i, o] =
|
|
26923
|
+
const [i, o] = Gx(r);
|
|
27052
26924
|
t = t(n !== void 0 ? n : e.custom, i, o);
|
|
27053
26925
|
}
|
|
27054
26926
|
return t;
|
|
27055
26927
|
}
|
|
27056
|
-
const yv = (e) => Array.isArray(e),
|
|
26928
|
+
const yv = (e) => Array.isArray(e), SH = (e) => !!(e && typeof e == "object" && e.mix && e.toValue), TH = (e) => yv(e) ? e[e.length - 1] || 0 : e, Un = (e) => !!(e && e.getVelocity);
|
|
27057
26929
|
function zf(e) {
|
|
27058
26930
|
const t = Un(e) ? e.get() : e;
|
|
27059
|
-
return
|
|
26931
|
+
return SH(t) ? t.toValue() : t;
|
|
27060
26932
|
}
|
|
27061
|
-
function
|
|
26933
|
+
function AH({ scrapeMotionValuesFromProps: e, createRenderState: t, onUpdate: n }, r, i, o) {
|
|
27062
26934
|
const a = {
|
|
27063
|
-
latestValues:
|
|
26935
|
+
latestValues: PH(r, i, o, e),
|
|
27064
26936
|
renderState: t()
|
|
27065
26937
|
};
|
|
27066
26938
|
return n && (a.onMount = (u) => n({ props: r, current: u, ...a }), a.onUpdate = (u) => n(u)), a;
|
|
27067
26939
|
}
|
|
27068
|
-
const
|
|
27069
|
-
const r = st(Cp), i = st(u0), o = () =>
|
|
26940
|
+
const p6 = (e) => (t, n) => {
|
|
26941
|
+
const r = st(Cp), i = st(u0), o = () => AH(e, t, r, i);
|
|
27070
26942
|
return n ? o() : td(o);
|
|
27071
26943
|
};
|
|
27072
|
-
function
|
|
26944
|
+
function PH(e, t, n, r) {
|
|
27073
26945
|
const i = {}, o = r(e, {});
|
|
27074
26946
|
for (const m in o)
|
|
27075
26947
|
i[m] = zf(o[m]);
|
|
27076
26948
|
let { initial: a, animate: u } = e;
|
|
27077
|
-
const c = Tp(e), d =
|
|
26949
|
+
const c = Tp(e), d = c6(e);
|
|
27078
26950
|
t && d && !c && e.inherit !== !1 && (a === void 0 && (a = t.initial), u === void 0 && (u = t.animate));
|
|
27079
26951
|
let f = n ? n.initial === !1 : !1;
|
|
27080
26952
|
f = f || a === !1;
|
|
@@ -27118,7 +26990,7 @@ const Qu = [
|
|
|
27118
26990
|
"skew",
|
|
27119
26991
|
"skewX",
|
|
27120
26992
|
"skewY"
|
|
27121
|
-
], ws = new Set(Qu),
|
|
26993
|
+
], ws = new Set(Qu), m6 = (e) => (t) => typeof t == "string" && t.startsWith(e), g6 = /* @__PURE__ */ m6("--"), _H = /* @__PURE__ */ m6("var(--"), v0 = (e) => _H(e) ? RH.test(e.split("/*")[0].trim()) : !1, RH = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu, y6 = (e, t) => t && typeof e == "number" ? t.transform(e) : e, Fo = (e, t, n) => n > t ? t : n < e ? e : n, el = {
|
|
27122
26994
|
test: (e) => typeof e == "number",
|
|
27123
26995
|
parse: parseFloat,
|
|
27124
26996
|
transform: (e) => e
|
|
@@ -27132,11 +27004,11 @@ const Qu = [
|
|
|
27132
27004
|
test: (t) => typeof t == "string" && t.endsWith(e) && t.split(" ").length === 1,
|
|
27133
27005
|
parse: parseFloat,
|
|
27134
27006
|
transform: (t) => `${t}${e}`
|
|
27135
|
-
}), na = /* @__PURE__ */ nd("deg"), to = /* @__PURE__ */ nd("%"), Je = /* @__PURE__ */ nd("px"),
|
|
27007
|
+
}), na = /* @__PURE__ */ nd("deg"), to = /* @__PURE__ */ nd("%"), Je = /* @__PURE__ */ nd("px"), OH = /* @__PURE__ */ nd("vh"), FH = /* @__PURE__ */ nd("vw"), qx = {
|
|
27136
27008
|
...to,
|
|
27137
27009
|
parse: (e) => to.parse(e) / 100,
|
|
27138
27010
|
transform: (e) => to.transform(e * 100)
|
|
27139
|
-
},
|
|
27011
|
+
}, MH = {
|
|
27140
27012
|
// Border props
|
|
27141
27013
|
borderWidth: Je,
|
|
27142
27014
|
borderTopWidth: Je,
|
|
@@ -27172,7 +27044,7 @@ const Qu = [
|
|
|
27172
27044
|
// Misc
|
|
27173
27045
|
backgroundPositionX: Je,
|
|
27174
27046
|
backgroundPositionY: Je
|
|
27175
|
-
},
|
|
27047
|
+
}, kH = {
|
|
27176
27048
|
rotate: na,
|
|
27177
27049
|
rotateX: na,
|
|
27178
27050
|
rotateY: na,
|
|
@@ -27194,39 +27066,39 @@ const Qu = [
|
|
|
27194
27066
|
perspective: Je,
|
|
27195
27067
|
transformPerspective: Je,
|
|
27196
27068
|
opacity: Pc,
|
|
27197
|
-
originX:
|
|
27198
|
-
originY:
|
|
27069
|
+
originX: qx,
|
|
27070
|
+
originY: qx,
|
|
27199
27071
|
originZ: Je
|
|
27200
|
-
},
|
|
27072
|
+
}, Yx = {
|
|
27201
27073
|
...el,
|
|
27202
27074
|
transform: Math.round
|
|
27203
27075
|
}, b0 = {
|
|
27204
|
-
...
|
|
27205
|
-
...
|
|
27206
|
-
zIndex:
|
|
27076
|
+
...MH,
|
|
27077
|
+
...kH,
|
|
27078
|
+
zIndex: Yx,
|
|
27207
27079
|
size: Je,
|
|
27208
27080
|
// SVG
|
|
27209
27081
|
fillOpacity: Pc,
|
|
27210
27082
|
strokeOpacity: Pc,
|
|
27211
|
-
numOctaves:
|
|
27212
|
-
},
|
|
27083
|
+
numOctaves: Yx
|
|
27084
|
+
}, BH = {
|
|
27213
27085
|
x: "translateX",
|
|
27214
27086
|
y: "translateY",
|
|
27215
27087
|
z: "translateZ",
|
|
27216
27088
|
transformPerspective: "perspective"
|
|
27217
|
-
},
|
|
27218
|
-
function
|
|
27089
|
+
}, IH = Qu.length;
|
|
27090
|
+
function LH(e, t, n) {
|
|
27219
27091
|
let r = "", i = !0;
|
|
27220
|
-
for (let o = 0; o <
|
|
27092
|
+
for (let o = 0; o < IH; o++) {
|
|
27221
27093
|
const a = Qu[o], u = e[a];
|
|
27222
27094
|
if (u === void 0)
|
|
27223
27095
|
continue;
|
|
27224
27096
|
let c = !0;
|
|
27225
27097
|
if (typeof u == "number" ? c = u === (a.startsWith("scale") ? 1 : 0) : c = parseFloat(u) === 0, !c || n) {
|
|
27226
|
-
const d =
|
|
27098
|
+
const d = y6(u, b0[a]);
|
|
27227
27099
|
if (!c) {
|
|
27228
27100
|
i = !1;
|
|
27229
|
-
const f =
|
|
27101
|
+
const f = BH[a] || a;
|
|
27230
27102
|
r += `${f}(${d}) `;
|
|
27231
27103
|
}
|
|
27232
27104
|
n && (t[a] = d);
|
|
@@ -27242,36 +27114,36 @@ function $0(e, t, n) {
|
|
|
27242
27114
|
if (ws.has(c)) {
|
|
27243
27115
|
a = !0;
|
|
27244
27116
|
continue;
|
|
27245
|
-
} else if (
|
|
27117
|
+
} else if (g6(c)) {
|
|
27246
27118
|
i[c] = d;
|
|
27247
27119
|
continue;
|
|
27248
27120
|
} else {
|
|
27249
|
-
const f =
|
|
27121
|
+
const f = y6(d, b0[c]);
|
|
27250
27122
|
c.startsWith("origin") ? (u = !0, o[c] = f) : r[c] = f;
|
|
27251
27123
|
}
|
|
27252
27124
|
}
|
|
27253
|
-
if (t.transform || (a || n ? r.transform =
|
|
27125
|
+
if (t.transform || (a || n ? r.transform = LH(t, e.transform, n) : r.transform && (r.transform = "none")), u) {
|
|
27254
27126
|
const { originX: c = "50%", originY: d = "50%", originZ: f = 0 } = o;
|
|
27255
27127
|
r.transformOrigin = `${c} ${d} ${f}`;
|
|
27256
27128
|
}
|
|
27257
27129
|
}
|
|
27258
|
-
function
|
|
27130
|
+
function Zx(e, t, n) {
|
|
27259
27131
|
return typeof e == "string" ? e : Je.transform(t + n * e);
|
|
27260
27132
|
}
|
|
27261
|
-
function
|
|
27262
|
-
const r =
|
|
27133
|
+
function VH(e, t, n) {
|
|
27134
|
+
const r = Zx(t, e.x, e.width), i = Zx(n, e.y, e.height);
|
|
27263
27135
|
return `${r} ${i}`;
|
|
27264
27136
|
}
|
|
27265
|
-
const
|
|
27137
|
+
const NH = {
|
|
27266
27138
|
offset: "stroke-dashoffset",
|
|
27267
27139
|
array: "stroke-dasharray"
|
|
27268
|
-
},
|
|
27140
|
+
}, jH = {
|
|
27269
27141
|
offset: "strokeDashoffset",
|
|
27270
27142
|
array: "strokeDasharray"
|
|
27271
27143
|
};
|
|
27272
|
-
function
|
|
27144
|
+
function KH(e, t, n = 1, r = 0, i = !0) {
|
|
27273
27145
|
e.pathLength = 1;
|
|
27274
|
-
const o = i ?
|
|
27146
|
+
const o = i ? NH : jH;
|
|
27275
27147
|
e[o.offset] = Je.transform(-r);
|
|
27276
27148
|
const a = Je.transform(t), u = Je.transform(n);
|
|
27277
27149
|
e[o.array] = `${a} ${u}`;
|
|
@@ -27294,23 +27166,23 @@ function x0(e, {
|
|
|
27294
27166
|
}
|
|
27295
27167
|
e.attrs = e.style, e.style = {};
|
|
27296
27168
|
const { attrs: m, style: g, dimensions: v } = e;
|
|
27297
|
-
m.transform && (v && (g.transform = m.transform), delete m.transform), v && (i !== void 0 || o !== void 0 || g.transform) && (g.transformOrigin =
|
|
27169
|
+
m.transform && (v && (g.transform = m.transform), delete m.transform), v && (i !== void 0 || o !== void 0 || g.transform) && (g.transformOrigin = VH(v, i !== void 0 ? i : 0.5, o !== void 0 ? o : 0.5)), t !== void 0 && (m.x = t), n !== void 0 && (m.y = n), r !== void 0 && (m.scale = r), a !== void 0 && KH(m, a, u, c, !1);
|
|
27298
27170
|
}
|
|
27299
27171
|
const w0 = () => ({
|
|
27300
27172
|
style: {},
|
|
27301
27173
|
transform: {},
|
|
27302
27174
|
transformOrigin: {},
|
|
27303
27175
|
vars: {}
|
|
27304
|
-
}),
|
|
27176
|
+
}), v6 = () => ({
|
|
27305
27177
|
...w0(),
|
|
27306
27178
|
attrs: {}
|
|
27307
27179
|
}), D0 = (e) => typeof e == "string" && e.toLowerCase() === "svg";
|
|
27308
|
-
function
|
|
27180
|
+
function b6(e, { style: t, vars: n }, r, i) {
|
|
27309
27181
|
Object.assign(e.style, t, i && i.getProjectionStyles(r));
|
|
27310
27182
|
for (const o in n)
|
|
27311
27183
|
e.style.setProperty(o, n[o]);
|
|
27312
27184
|
}
|
|
27313
|
-
const
|
|
27185
|
+
const $6 = /* @__PURE__ */ new Set([
|
|
27314
27186
|
"baseFrequency",
|
|
27315
27187
|
"diffuseConstant",
|
|
27316
27188
|
"kernelMatrix",
|
|
@@ -27335,26 +27207,26 @@ const w6 = /* @__PURE__ */ new Set([
|
|
|
27335
27207
|
"textLength",
|
|
27336
27208
|
"lengthAdjust"
|
|
27337
27209
|
]);
|
|
27338
|
-
function
|
|
27339
|
-
|
|
27210
|
+
function x6(e, t, n, r) {
|
|
27211
|
+
b6(e, t, void 0, r);
|
|
27340
27212
|
for (const i in t.attrs)
|
|
27341
|
-
e.setAttribute(
|
|
27213
|
+
e.setAttribute($6.has(i) ? i : p0(i), t.attrs[i]);
|
|
27342
27214
|
}
|
|
27343
27215
|
const Th = {};
|
|
27344
|
-
function
|
|
27216
|
+
function UH(e) {
|
|
27345
27217
|
Object.assign(Th, e);
|
|
27346
27218
|
}
|
|
27347
|
-
function
|
|
27219
|
+
function w6(e, { layout: t, layoutId: n }) {
|
|
27348
27220
|
return ws.has(e) || e.startsWith("origin") || (t || n !== void 0) && (!!Th[e] || e === "opacity");
|
|
27349
27221
|
}
|
|
27350
27222
|
function E0(e, t, n) {
|
|
27351
27223
|
var r;
|
|
27352
27224
|
const { style: i } = e, o = {};
|
|
27353
27225
|
for (const a in i)
|
|
27354
|
-
(Un(i[a]) || t.style && Un(t.style[a]) ||
|
|
27226
|
+
(Un(i[a]) || t.style && Un(t.style[a]) || w6(a, e) || ((r = n == null ? void 0 : n.getValue(a)) === null || r === void 0 ? void 0 : r.liveStyle) !== void 0) && (o[a] = i[a]);
|
|
27355
27227
|
return o;
|
|
27356
27228
|
}
|
|
27357
|
-
function
|
|
27229
|
+
function D6(e, t, n) {
|
|
27358
27230
|
const r = E0(e, t, n);
|
|
27359
27231
|
for (const i in e)
|
|
27360
27232
|
if (Un(e[i]) || Un(t[i])) {
|
|
@@ -27363,7 +27235,7 @@ function C6(e, t, n) {
|
|
|
27363
27235
|
}
|
|
27364
27236
|
return r;
|
|
27365
27237
|
}
|
|
27366
|
-
function
|
|
27238
|
+
function zH(e, t) {
|
|
27367
27239
|
try {
|
|
27368
27240
|
t.dimensions = typeof e.getBBox == "function" ? e.getBBox() : e.getBoundingClientRect();
|
|
27369
27241
|
} catch {
|
|
@@ -27375,10 +27247,10 @@ function eG(e, t) {
|
|
|
27375
27247
|
};
|
|
27376
27248
|
}
|
|
27377
27249
|
}
|
|
27378
|
-
const
|
|
27379
|
-
useVisualState:
|
|
27380
|
-
scrapeMotionValuesFromProps:
|
|
27381
|
-
createRenderState:
|
|
27250
|
+
const Jx = ["x", "y", "width", "height", "cx", "cy", "r"], WH = {
|
|
27251
|
+
useVisualState: p6({
|
|
27252
|
+
scrapeMotionValuesFromProps: D6,
|
|
27253
|
+
createRenderState: v6,
|
|
27382
27254
|
onUpdate: ({ props: e, prevProps: t, current: n, renderState: r, latestValues: i }) => {
|
|
27383
27255
|
if (!n)
|
|
27384
27256
|
return;
|
|
@@ -27394,42 +27266,42 @@ const aw = ["x", "y", "width", "height", "cx", "cy", "r"], tG = {
|
|
|
27394
27266
|
return;
|
|
27395
27267
|
let a = !t;
|
|
27396
27268
|
if (t)
|
|
27397
|
-
for (let u = 0; u <
|
|
27398
|
-
const c =
|
|
27269
|
+
for (let u = 0; u < Jx.length; u++) {
|
|
27270
|
+
const c = Jx[u];
|
|
27399
27271
|
e[c] !== t[c] && (a = !0);
|
|
27400
27272
|
}
|
|
27401
|
-
a && (Gt.read(() =>
|
|
27402
|
-
x0(r, i, D0(n.tagName), e.transformTemplate),
|
|
27273
|
+
a && (Gt.read(() => zH(n, r)), Gt.render(() => {
|
|
27274
|
+
x0(r, i, D0(n.tagName), e.transformTemplate), x6(n, r);
|
|
27403
27275
|
}));
|
|
27404
27276
|
}
|
|
27405
27277
|
})
|
|
27406
|
-
},
|
|
27407
|
-
useVisualState:
|
|
27278
|
+
}, HH = {
|
|
27279
|
+
useVisualState: p6({
|
|
27408
27280
|
scrapeMotionValuesFromProps: E0,
|
|
27409
27281
|
createRenderState: w0
|
|
27410
27282
|
})
|
|
27411
27283
|
};
|
|
27412
|
-
function
|
|
27284
|
+
function E6(e, t, n) {
|
|
27413
27285
|
for (const r in t)
|
|
27414
|
-
!Un(t[r]) && !
|
|
27286
|
+
!Un(t[r]) && !w6(r, n) && (e[r] = t[r]);
|
|
27415
27287
|
}
|
|
27416
|
-
function
|
|
27288
|
+
function GH({ transformTemplate: e }, t) {
|
|
27417
27289
|
return Te(() => {
|
|
27418
27290
|
const n = w0();
|
|
27419
27291
|
return $0(n, t, e), Object.assign({}, n.vars, n.style);
|
|
27420
27292
|
}, [t]);
|
|
27421
27293
|
}
|
|
27422
|
-
function
|
|
27294
|
+
function qH(e, t) {
|
|
27423
27295
|
const n = e.style || {}, r = {};
|
|
27424
|
-
return
|
|
27296
|
+
return E6(r, n, e), Object.assign(r, GH(e, t)), r;
|
|
27425
27297
|
}
|
|
27426
|
-
function
|
|
27427
|
-
const n = {}, r =
|
|
27298
|
+
function YH(e, t) {
|
|
27299
|
+
const n = {}, r = qH(e, t);
|
|
27428
27300
|
return e.drag && e.dragListener !== !1 && (n.draggable = !1, r.userSelect = r.WebkitUserSelect = r.WebkitTouchCallout = "none", r.touchAction = e.drag === !0 ? "none" : `pan-${e.drag === "x" ? "y" : "x"}`), e.tabIndex === void 0 && (e.onTap || e.onTapStart || e.whileTap) && (n.tabIndex = 0), n.style = r, n;
|
|
27429
27301
|
}
|
|
27430
|
-
function
|
|
27302
|
+
function ZH(e, t, n, r) {
|
|
27431
27303
|
const i = Te(() => {
|
|
27432
|
-
const o =
|
|
27304
|
+
const o = v6();
|
|
27433
27305
|
return x0(o, t, D0(r), e.transformTemplate), {
|
|
27434
27306
|
...o.attrs,
|
|
27435
27307
|
style: { ...o.style }
|
|
@@ -27437,32 +27309,32 @@ function aG(e, t, n, r) {
|
|
|
27437
27309
|
}, [t]);
|
|
27438
27310
|
if (e.style) {
|
|
27439
27311
|
const o = {};
|
|
27440
|
-
|
|
27312
|
+
E6(o, e.style, e), i.style = { ...o, ...i.style };
|
|
27441
27313
|
}
|
|
27442
27314
|
return i;
|
|
27443
27315
|
}
|
|
27444
|
-
function
|
|
27316
|
+
function JH(e = !1) {
|
|
27445
27317
|
return (n, r, i, { latestValues: o }, a) => {
|
|
27446
|
-
const c = (g0(n) ?
|
|
27318
|
+
const c = (g0(n) ? ZH : YH)(r, o, a, n), d = fH(r, typeof n == "string", e), f = n !== Wh ? { ...d, ...c, ref: i } : {}, { children: h } = r, m = Te(() => Un(h) ? h.get() : h, [h]);
|
|
27447
27319
|
return Qv(n, {
|
|
27448
27320
|
...f,
|
|
27449
27321
|
children: m
|
|
27450
27322
|
});
|
|
27451
27323
|
};
|
|
27452
27324
|
}
|
|
27453
|
-
function
|
|
27325
|
+
function XH(e, t) {
|
|
27454
27326
|
return function(r, { forwardMotionProps: i } = { forwardMotionProps: !1 }) {
|
|
27455
27327
|
const a = {
|
|
27456
|
-
...g0(r) ?
|
|
27328
|
+
...g0(r) ? WH : HH,
|
|
27457
27329
|
preloadedFeatures: e,
|
|
27458
|
-
useRender:
|
|
27330
|
+
useRender: JH(i),
|
|
27459
27331
|
createVisualElement: t,
|
|
27460
27332
|
Component: r
|
|
27461
27333
|
};
|
|
27462
|
-
return
|
|
27334
|
+
return xH(a);
|
|
27463
27335
|
};
|
|
27464
27336
|
}
|
|
27465
|
-
function
|
|
27337
|
+
function C6(e, t) {
|
|
27466
27338
|
if (!Array.isArray(t))
|
|
27467
27339
|
return !1;
|
|
27468
27340
|
const n = t.length;
|
|
@@ -27477,8 +27349,8 @@ function Ap(e, t, n) {
|
|
|
27477
27349
|
const r = e.getProps();
|
|
27478
27350
|
return y0(r, t, n !== void 0 ? n : r.custom, e);
|
|
27479
27351
|
}
|
|
27480
|
-
const
|
|
27481
|
-
class
|
|
27352
|
+
const QH = d0(() => window.ScrollTimeline !== void 0);
|
|
27353
|
+
class eG {
|
|
27482
27354
|
constructor(t) {
|
|
27483
27355
|
this.stop = () => this.runAll("stop"), this.animations = t.filter(Boolean);
|
|
27484
27356
|
}
|
|
@@ -27497,7 +27369,7 @@ class cG {
|
|
|
27497
27369
|
}
|
|
27498
27370
|
attachTimeline(t, n) {
|
|
27499
27371
|
const r = this.animations.map((i) => {
|
|
27500
|
-
if (
|
|
27372
|
+
if (QH() && i.attachTimeline)
|
|
27501
27373
|
return i.attachTimeline(t);
|
|
27502
27374
|
if (typeof n == "function")
|
|
27503
27375
|
return n(i);
|
|
@@ -27548,7 +27420,7 @@ class cG {
|
|
|
27548
27420
|
this.runAll("complete");
|
|
27549
27421
|
}
|
|
27550
27422
|
}
|
|
27551
|
-
let
|
|
27423
|
+
let tG = class extends eG {
|
|
27552
27424
|
then(t, n) {
|
|
27553
27425
|
return Promise.all(this.animations).then(t).catch(n);
|
|
27554
27426
|
}
|
|
@@ -27557,7 +27429,7 @@ function C0(e, t) {
|
|
|
27557
27429
|
return e ? e[t] || e.default || e : void 0;
|
|
27558
27430
|
}
|
|
27559
27431
|
const vv = 2e4;
|
|
27560
|
-
function
|
|
27432
|
+
function S6(e) {
|
|
27561
27433
|
let t = 0;
|
|
27562
27434
|
const n = 50;
|
|
27563
27435
|
let r = e.next(t);
|
|
@@ -27568,35 +27440,35 @@ function A6(e) {
|
|
|
27568
27440
|
function S0(e) {
|
|
27569
27441
|
return typeof e == "function";
|
|
27570
27442
|
}
|
|
27571
|
-
function
|
|
27443
|
+
function Xx(e, t) {
|
|
27572
27444
|
e.timeline = t, e.onfinish = null;
|
|
27573
27445
|
}
|
|
27574
|
-
const T0 = (e) => Array.isArray(e) && typeof e[0] == "number",
|
|
27446
|
+
const T0 = (e) => Array.isArray(e) && typeof e[0] == "number", nG = {
|
|
27575
27447
|
linearEasing: void 0
|
|
27576
27448
|
};
|
|
27577
|
-
function
|
|
27449
|
+
function rG(e, t) {
|
|
27578
27450
|
const n = d0(e);
|
|
27579
27451
|
return () => {
|
|
27580
27452
|
var r;
|
|
27581
|
-
return (r =
|
|
27453
|
+
return (r = nG[t]) !== null && r !== void 0 ? r : n();
|
|
27582
27454
|
};
|
|
27583
27455
|
}
|
|
27584
|
-
const Ah = /* @__PURE__ */
|
|
27456
|
+
const Ah = /* @__PURE__ */ rG(() => {
|
|
27585
27457
|
try {
|
|
27586
27458
|
document.createElement("div").animate({ opacity: 0 }, { easing: "linear(0, 1)" });
|
|
27587
27459
|
} catch {
|
|
27588
27460
|
return !1;
|
|
27589
27461
|
}
|
|
27590
27462
|
return !0;
|
|
27591
|
-
}, "linearEasing"),
|
|
27463
|
+
}, "linearEasing"), T6 = (e, t, n = 10) => {
|
|
27592
27464
|
let r = "";
|
|
27593
27465
|
const i = Math.max(Math.round(t / n), 2);
|
|
27594
27466
|
for (let o = 0; o < i; o++)
|
|
27595
27467
|
r += e(Bu(0, i - 1, o)) + ", ";
|
|
27596
27468
|
return `linear(${r.substring(0, r.length - 2)})`;
|
|
27597
27469
|
};
|
|
27598
|
-
function
|
|
27599
|
-
return !!(typeof e == "function" && Ah() || !e || typeof e == "string" && (e in bv || Ah()) || T0(e) || Array.isArray(e) && e.every(
|
|
27470
|
+
function A6(e) {
|
|
27471
|
+
return !!(typeof e == "function" && Ah() || !e || typeof e == "string" && (e in bv || Ah()) || T0(e) || Array.isArray(e) && e.every(A6));
|
|
27600
27472
|
}
|
|
27601
27473
|
const Xl = ([e, t, n, r]) => `cubic-bezier(${e}, ${t}, ${n}, ${r})`, bv = {
|
|
27602
27474
|
linear: "linear",
|
|
@@ -27609,18 +27481,18 @@ const Xl = ([e, t, n, r]) => `cubic-bezier(${e}, ${t}, ${n}, ${r})`, bv = {
|
|
|
27609
27481
|
backIn: /* @__PURE__ */ Xl([0.31, 0.01, 0.66, -0.59]),
|
|
27610
27482
|
backOut: /* @__PURE__ */ Xl([0.33, 1.53, 0.69, 0.99])
|
|
27611
27483
|
};
|
|
27612
|
-
function
|
|
27484
|
+
function P6(e, t) {
|
|
27613
27485
|
if (e)
|
|
27614
|
-
return typeof e == "function" && Ah() ?
|
|
27486
|
+
return typeof e == "function" && Ah() ? T6(e, t) : T0(e) ? Xl(e) : Array.isArray(e) ? e.map((n) => P6(n, t) || bv.easeOut) : bv[e];
|
|
27615
27487
|
}
|
|
27616
27488
|
const $i = {
|
|
27617
27489
|
x: !1,
|
|
27618
27490
|
y: !1
|
|
27619
27491
|
};
|
|
27620
|
-
function
|
|
27492
|
+
function _6() {
|
|
27621
27493
|
return $i.x || $i.y;
|
|
27622
27494
|
}
|
|
27623
|
-
function
|
|
27495
|
+
function iG(e, t, n) {
|
|
27624
27496
|
var r;
|
|
27625
27497
|
if (e instanceof Element)
|
|
27626
27498
|
return [e];
|
|
@@ -27631,25 +27503,25 @@ function pG(e, t, n) {
|
|
|
27631
27503
|
}
|
|
27632
27504
|
return Array.from(e);
|
|
27633
27505
|
}
|
|
27634
|
-
function
|
|
27635
|
-
const n =
|
|
27506
|
+
function R6(e, t) {
|
|
27507
|
+
const n = iG(e), r = new AbortController(), i = {
|
|
27636
27508
|
passive: !0,
|
|
27637
27509
|
...t,
|
|
27638
27510
|
signal: r.signal
|
|
27639
27511
|
};
|
|
27640
27512
|
return [n, i, () => r.abort()];
|
|
27641
27513
|
}
|
|
27642
|
-
function
|
|
27514
|
+
function Qx(e) {
|
|
27643
27515
|
return (t) => {
|
|
27644
|
-
t.pointerType === "touch" ||
|
|
27516
|
+
t.pointerType === "touch" || _6() || e(t);
|
|
27645
27517
|
};
|
|
27646
27518
|
}
|
|
27647
|
-
function
|
|
27648
|
-
const [r, i, o] =
|
|
27519
|
+
function oG(e, t, n = {}) {
|
|
27520
|
+
const [r, i, o] = R6(e, n), a = Qx((u) => {
|
|
27649
27521
|
const { target: c } = u, d = t(u);
|
|
27650
27522
|
if (typeof d != "function" || !c)
|
|
27651
27523
|
return;
|
|
27652
|
-
const f =
|
|
27524
|
+
const f = Qx((h) => {
|
|
27653
27525
|
d(h), c.removeEventListener("pointerleave", f);
|
|
27654
27526
|
});
|
|
27655
27527
|
c.addEventListener("pointerleave", f, i);
|
|
@@ -27658,70 +27530,70 @@ function mG(e, t, n = {}) {
|
|
|
27658
27530
|
u.addEventListener("pointerenter", a, i);
|
|
27659
27531
|
}), o;
|
|
27660
27532
|
}
|
|
27661
|
-
const
|
|
27533
|
+
const O6 = (e, t) => t ? e === t ? !0 : O6(e, t.parentElement) : !1, A0 = (e) => e.pointerType === "mouse" ? typeof e.button != "number" || e.button <= 0 : e.isPrimary !== !1, aG = /* @__PURE__ */ new Set([
|
|
27662
27534
|
"BUTTON",
|
|
27663
27535
|
"INPUT",
|
|
27664
27536
|
"SELECT",
|
|
27665
27537
|
"TEXTAREA",
|
|
27666
27538
|
"A"
|
|
27667
27539
|
]);
|
|
27668
|
-
function
|
|
27669
|
-
return
|
|
27540
|
+
function sG(e) {
|
|
27541
|
+
return aG.has(e.tagName) || e.tabIndex !== -1;
|
|
27670
27542
|
}
|
|
27671
27543
|
const Ql = /* @__PURE__ */ new WeakSet();
|
|
27672
|
-
function
|
|
27544
|
+
function ew(e) {
|
|
27673
27545
|
return (t) => {
|
|
27674
27546
|
t.key === "Enter" && e(t);
|
|
27675
27547
|
};
|
|
27676
27548
|
}
|
|
27677
|
-
function
|
|
27549
|
+
function Og(e, t) {
|
|
27678
27550
|
e.dispatchEvent(new PointerEvent("pointer" + t, { isPrimary: !0, bubbles: !0 }));
|
|
27679
27551
|
}
|
|
27680
|
-
const
|
|
27552
|
+
const uG = (e, t) => {
|
|
27681
27553
|
const n = e.currentTarget;
|
|
27682
27554
|
if (!n)
|
|
27683
27555
|
return;
|
|
27684
|
-
const r =
|
|
27556
|
+
const r = ew(() => {
|
|
27685
27557
|
if (Ql.has(n))
|
|
27686
27558
|
return;
|
|
27687
|
-
|
|
27688
|
-
const i =
|
|
27689
|
-
|
|
27690
|
-
}), o = () =>
|
|
27559
|
+
Og(n, "down");
|
|
27560
|
+
const i = ew(() => {
|
|
27561
|
+
Og(n, "up");
|
|
27562
|
+
}), o = () => Og(n, "cancel");
|
|
27691
27563
|
n.addEventListener("keyup", i, t), n.addEventListener("blur", o, t);
|
|
27692
27564
|
});
|
|
27693
27565
|
n.addEventListener("keydown", r, t), n.addEventListener("blur", () => n.removeEventListener("keydown", r), t);
|
|
27694
27566
|
};
|
|
27695
|
-
function
|
|
27696
|
-
return A0(e) && !
|
|
27567
|
+
function tw(e) {
|
|
27568
|
+
return A0(e) && !_6();
|
|
27697
27569
|
}
|
|
27698
|
-
function
|
|
27699
|
-
const [r, i, o] =
|
|
27570
|
+
function lG(e, t, n = {}) {
|
|
27571
|
+
const [r, i, o] = R6(e, n), a = (u) => {
|
|
27700
27572
|
const c = u.currentTarget;
|
|
27701
|
-
if (!
|
|
27573
|
+
if (!tw(u) || Ql.has(c))
|
|
27702
27574
|
return;
|
|
27703
27575
|
Ql.add(c);
|
|
27704
27576
|
const d = t(u), f = (g, v) => {
|
|
27705
|
-
window.removeEventListener("pointerup", h), window.removeEventListener("pointercancel", m), !(!
|
|
27577
|
+
window.removeEventListener("pointerup", h), window.removeEventListener("pointercancel", m), !(!tw(g) || !Ql.has(c)) && (Ql.delete(c), typeof d == "function" && d(g, { success: v }));
|
|
27706
27578
|
}, h = (g) => {
|
|
27707
|
-
f(g, n.useGlobalTarget ||
|
|
27579
|
+
f(g, n.useGlobalTarget || O6(c, g.target));
|
|
27708
27580
|
}, m = (g) => {
|
|
27709
27581
|
f(g, !1);
|
|
27710
27582
|
};
|
|
27711
27583
|
window.addEventListener("pointerup", h, i), window.addEventListener("pointercancel", m, i);
|
|
27712
27584
|
};
|
|
27713
27585
|
return r.forEach((u) => {
|
|
27714
|
-
!
|
|
27586
|
+
!sG(u) && u.getAttribute("tabindex") === null && (u.tabIndex = 0), (n.useGlobalTarget ? window : u).addEventListener("pointerdown", a, i), u.addEventListener("focus", (d) => uG(d, i), i);
|
|
27715
27587
|
}), o;
|
|
27716
27588
|
}
|
|
27717
|
-
function
|
|
27589
|
+
function cG(e) {
|
|
27718
27590
|
return e === "x" || e === "y" ? $i[e] ? null : ($i[e] = !0, () => {
|
|
27719
27591
|
$i[e] = !1;
|
|
27720
27592
|
}) : $i.x || $i.y ? null : ($i.x = $i.y = !0, () => {
|
|
27721
27593
|
$i.x = $i.y = !1;
|
|
27722
27594
|
});
|
|
27723
27595
|
}
|
|
27724
|
-
const
|
|
27596
|
+
const F6 = /* @__PURE__ */ new Set([
|
|
27725
27597
|
"width",
|
|
27726
27598
|
"height",
|
|
27727
27599
|
"top",
|
|
@@ -27731,13 +27603,13 @@ const k6 = /* @__PURE__ */ new Set([
|
|
|
27731
27603
|
...Qu
|
|
27732
27604
|
]);
|
|
27733
27605
|
let Wf;
|
|
27734
|
-
function
|
|
27606
|
+
function dG() {
|
|
27735
27607
|
Wf = void 0;
|
|
27736
27608
|
}
|
|
27737
27609
|
const no = {
|
|
27738
|
-
now: () => (Wf === void 0 && no.set(Kn.isProcessing ||
|
|
27610
|
+
now: () => (Wf === void 0 && no.set(Kn.isProcessing || aH.useManualTiming ? Kn.timestamp : performance.now()), Wf),
|
|
27739
27611
|
set: (e) => {
|
|
27740
|
-
Wf = e, queueMicrotask(
|
|
27612
|
+
Wf = e, queueMicrotask(dG);
|
|
27741
27613
|
}
|
|
27742
27614
|
};
|
|
27743
27615
|
function P0(e, t) {
|
|
@@ -27747,7 +27619,7 @@ function _0(e, t) {
|
|
|
27747
27619
|
const n = e.indexOf(t);
|
|
27748
27620
|
n > -1 && e.splice(n, 1);
|
|
27749
27621
|
}
|
|
27750
|
-
function
|
|
27622
|
+
function fG([...e], t, n) {
|
|
27751
27623
|
const r = t < 0 ? e.length + t : t;
|
|
27752
27624
|
if (r >= 0 && r < e.length) {
|
|
27753
27625
|
const i = n < 0 ? e.length + n : n, [o] = e.splice(t, 1);
|
|
@@ -27780,13 +27652,13 @@ let R0 = class {
|
|
|
27780
27652
|
this.subscriptions.length = 0;
|
|
27781
27653
|
}
|
|
27782
27654
|
};
|
|
27783
|
-
function
|
|
27655
|
+
function M6(e, t) {
|
|
27784
27656
|
return t ? e * (1e3 / t) : 0;
|
|
27785
27657
|
}
|
|
27786
|
-
const
|
|
27658
|
+
const nw = 30, hG = (e) => !isNaN(parseFloat(e)), cc = {
|
|
27787
27659
|
current: void 0
|
|
27788
27660
|
};
|
|
27789
|
-
let
|
|
27661
|
+
let pG = class {
|
|
27790
27662
|
/**
|
|
27791
27663
|
* @param init - The initiating value
|
|
27792
27664
|
* @param config - Optional configuration options
|
|
@@ -27802,7 +27674,7 @@ let EG = class {
|
|
|
27802
27674
|
}, this.hasAnimated = !1, this.setCurrent(t), this.owner = n.owner;
|
|
27803
27675
|
}
|
|
27804
27676
|
setCurrent(t) {
|
|
27805
|
-
this.current = t, this.updatedAt = no.now(), this.canTrackVelocity === null && t !== void 0 && (this.canTrackVelocity =
|
|
27677
|
+
this.current = t, this.updatedAt = no.now(), this.canTrackVelocity === null && t !== void 0 && (this.canTrackVelocity = hG(this.current));
|
|
27806
27678
|
}
|
|
27807
27679
|
setPrevFrameValue(t = this.current) {
|
|
27808
27680
|
this.prevFrameValue = t, this.prevUpdatedAt = this.updatedAt;
|
|
@@ -27924,10 +27796,10 @@ let EG = class {
|
|
|
27924
27796
|
*/
|
|
27925
27797
|
getVelocity() {
|
|
27926
27798
|
const t = no.now();
|
|
27927
|
-
if (!this.canTrackVelocity || this.prevFrameValue === void 0 || t - this.updatedAt >
|
|
27799
|
+
if (!this.canTrackVelocity || this.prevFrameValue === void 0 || t - this.updatedAt > nw)
|
|
27928
27800
|
return 0;
|
|
27929
|
-
const n = Math.min(this.updatedAt - this.prevUpdatedAt,
|
|
27930
|
-
return
|
|
27801
|
+
const n = Math.min(this.updatedAt - this.prevUpdatedAt, nw);
|
|
27802
|
+
return M6(parseFloat(this.current) - parseFloat(this.prevFrameValue), n);
|
|
27931
27803
|
}
|
|
27932
27804
|
/**
|
|
27933
27805
|
* Registers a new animation to control this `MotionValue`. Only one
|
|
@@ -27981,54 +27853,54 @@ let EG = class {
|
|
|
27981
27853
|
}
|
|
27982
27854
|
};
|
|
27983
27855
|
function Lu(e, t) {
|
|
27984
|
-
return new
|
|
27856
|
+
return new pG(e, t);
|
|
27985
27857
|
}
|
|
27986
|
-
function
|
|
27858
|
+
function mG(e, t, n) {
|
|
27987
27859
|
e.hasValue(t) ? e.getValue(t).set(n) : e.addValue(t, Lu(n));
|
|
27988
27860
|
}
|
|
27989
|
-
function
|
|
27861
|
+
function gG(e, t) {
|
|
27990
27862
|
const n = Ap(e, t);
|
|
27991
27863
|
let { transitionEnd: r = {}, transition: i = {}, ...o } = n || {};
|
|
27992
27864
|
o = { ...o, ...r };
|
|
27993
27865
|
for (const a in o) {
|
|
27994
|
-
const u =
|
|
27995
|
-
|
|
27866
|
+
const u = TH(o[a]);
|
|
27867
|
+
mG(e, a, u);
|
|
27996
27868
|
}
|
|
27997
27869
|
}
|
|
27998
|
-
function
|
|
27870
|
+
function yG(e) {
|
|
27999
27871
|
return !!(Un(e) && e.add);
|
|
28000
27872
|
}
|
|
28001
27873
|
function $v(e, t) {
|
|
28002
27874
|
const n = e.getValue("willChange");
|
|
28003
|
-
if (
|
|
27875
|
+
if (yG(n))
|
|
28004
27876
|
return n.add(t);
|
|
28005
27877
|
}
|
|
28006
|
-
function
|
|
28007
|
-
return e.props[
|
|
27878
|
+
function k6(e) {
|
|
27879
|
+
return e.props[d6];
|
|
28008
27880
|
}
|
|
28009
|
-
const
|
|
28010
|
-
function
|
|
27881
|
+
const B6 = (e, t, n) => (((1 - 3 * n + 3 * t) * e + (3 * n - 6 * t)) * e + 3 * t) * e, vG = 1e-7, bG = 12;
|
|
27882
|
+
function $G(e, t, n, r, i) {
|
|
28011
27883
|
let o, a, u = 0;
|
|
28012
27884
|
do
|
|
28013
|
-
a = t + (n - t) / 2, o =
|
|
28014
|
-
while (Math.abs(o) >
|
|
27885
|
+
a = t + (n - t) / 2, o = B6(a, r, i) - e, o > 0 ? n = a : t = a;
|
|
27886
|
+
while (Math.abs(o) > vG && ++u < bG);
|
|
28015
27887
|
return a;
|
|
28016
27888
|
}
|
|
28017
27889
|
function rd(e, t, n, r) {
|
|
28018
27890
|
if (e === t && n === r)
|
|
28019
27891
|
return Rr;
|
|
28020
|
-
const i = (o) =>
|
|
28021
|
-
return (o) => o === 0 || o === 1 ? o :
|
|
27892
|
+
const i = (o) => $G(o, 0, 1, e, n);
|
|
27893
|
+
return (o) => o === 0 || o === 1 ? o : B6(i(o), t, r);
|
|
28022
27894
|
}
|
|
28023
|
-
const
|
|
28024
|
-
function
|
|
28025
|
-
return typeof e == "number" ? e === 0 : e !== null ? e === "none" || e === "0" ||
|
|
27895
|
+
const I6 = (e) => (t) => t <= 0.5 ? e(2 * t) / 2 : (2 - e(2 * (1 - t))) / 2, L6 = (e) => (t) => 1 - e(1 - t), V6 = /* @__PURE__ */ rd(0.33, 1.53, 0.69, 0.99), O0 = /* @__PURE__ */ L6(V6), N6 = /* @__PURE__ */ I6(O0), j6 = (e) => (e *= 2) < 1 ? 0.5 * O0(e) : 0.5 * (2 - Math.pow(2, -10 * (e - 1))), F0 = (e) => 1 - Math.sin(Math.acos(e)), K6 = L6(F0), U6 = I6(F0), z6 = (e) => /^0[^.\s]+$/u.test(e);
|
|
27896
|
+
function xG(e) {
|
|
27897
|
+
return typeof e == "number" ? e === 0 : e !== null ? e === "none" || e === "0" || z6(e) : !0;
|
|
28026
27898
|
}
|
|
28027
27899
|
const dc = (e) => Math.round(e * 1e5) / 1e5, M0 = /-?(?:\d+(?:\.\d+)?|\.\d+)/gu;
|
|
28028
|
-
function
|
|
27900
|
+
function wG(e) {
|
|
28029
27901
|
return e == null;
|
|
28030
27902
|
}
|
|
28031
|
-
const
|
|
27903
|
+
const DG = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu, k0 = (e, t) => (n) => !!(typeof n == "string" && DG.test(n) && n.startsWith(e) || t && !wG(n) && Object.prototype.hasOwnProperty.call(n, t)), W6 = (e, t, n) => (r) => {
|
|
28032
27904
|
if (typeof r != "string")
|
|
28033
27905
|
return r;
|
|
28034
27906
|
const [i, o, a, u] = r.match(M0);
|
|
@@ -28038,15 +27910,15 @@ const FG = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s
|
|
|
28038
27910
|
[n]: parseFloat(a),
|
|
28039
27911
|
alpha: u !== void 0 ? parseFloat(u) : 1
|
|
28040
27912
|
};
|
|
28041
|
-
},
|
|
27913
|
+
}, EG = (e) => Fo(0, 255, e), Fg = {
|
|
28042
27914
|
...el,
|
|
28043
|
-
transform: (e) => Math.round(
|
|
27915
|
+
transform: (e) => Math.round(EG(e))
|
|
28044
27916
|
}, Xa = {
|
|
28045
27917
|
test: /* @__PURE__ */ k0("rgb", "red"),
|
|
28046
|
-
parse: /* @__PURE__ */
|
|
28047
|
-
transform: ({ red: e, green: t, blue: n, alpha: r = 1 }) => "rgba(" +
|
|
27918
|
+
parse: /* @__PURE__ */ W6("red", "green", "blue"),
|
|
27919
|
+
transform: ({ red: e, green: t, blue: n, alpha: r = 1 }) => "rgba(" + Fg.transform(e) + ", " + Fg.transform(t) + ", " + Fg.transform(n) + ", " + dc(Pc.transform(r)) + ")"
|
|
28048
27920
|
};
|
|
28049
|
-
function
|
|
27921
|
+
function CG(e) {
|
|
28050
27922
|
let t = "", n = "", r = "", i = "";
|
|
28051
27923
|
return e.length > 5 ? (t = e.substring(1, 3), n = e.substring(3, 5), r = e.substring(5, 7), i = e.substring(7, 9)) : (t = e.substring(1, 2), n = e.substring(2, 3), r = e.substring(3, 4), i = e.substring(4, 5), t += t, n += n, r += r, i += i), {
|
|
28052
27924
|
red: parseInt(t, 16),
|
|
@@ -28057,22 +27929,22 @@ function kG(e) {
|
|
|
28057
27929
|
}
|
|
28058
27930
|
const xv = {
|
|
28059
27931
|
test: /* @__PURE__ */ k0("#"),
|
|
28060
|
-
parse:
|
|
27932
|
+
parse: CG,
|
|
28061
27933
|
transform: Xa.transform
|
|
28062
27934
|
}, cu = {
|
|
28063
27935
|
test: /* @__PURE__ */ k0("hsl", "hue"),
|
|
28064
|
-
parse: /* @__PURE__ */
|
|
27936
|
+
parse: /* @__PURE__ */ W6("hue", "saturation", "lightness"),
|
|
28065
27937
|
transform: ({ hue: e, saturation: t, lightness: n, alpha: r = 1 }) => "hsla(" + Math.round(e) + ", " + to.transform(dc(t)) + ", " + to.transform(dc(n)) + ", " + dc(Pc.transform(r)) + ")"
|
|
28066
27938
|
}, tr = {
|
|
28067
27939
|
test: (e) => Xa.test(e) || xv.test(e) || cu.test(e),
|
|
28068
27940
|
parse: (e) => Xa.test(e) ? Xa.parse(e) : cu.test(e) ? cu.parse(e) : xv.parse(e),
|
|
28069
27941
|
transform: (e) => typeof e == "string" ? e : e.hasOwnProperty("red") ? Xa.transform(e) : cu.transform(e)
|
|
28070
|
-
},
|
|
28071
|
-
function
|
|
27942
|
+
}, SG = /(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;
|
|
27943
|
+
function TG(e) {
|
|
28072
27944
|
var t, n;
|
|
28073
|
-
return isNaN(e) && typeof e == "string" && (((t = e.match(M0)) === null || t === void 0 ? void 0 : t.length) || 0) + (((n = e.match(
|
|
27945
|
+
return isNaN(e) && typeof e == "string" && (((t = e.match(M0)) === null || t === void 0 ? void 0 : t.length) || 0) + (((n = e.match(SG)) === null || n === void 0 ? void 0 : n.length) || 0) > 0;
|
|
28074
27946
|
}
|
|
28075
|
-
const
|
|
27947
|
+
const H6 = "number", G6 = "color", AG = "var", PG = "var(", rw = "${}", _G = /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;
|
|
28076
27948
|
function _c(e) {
|
|
28077
27949
|
const t = e.toString(), n = [], r = {
|
|
28078
27950
|
color: [],
|
|
@@ -28080,36 +27952,36 @@ function _c(e) {
|
|
|
28080
27952
|
var: []
|
|
28081
27953
|
}, i = [];
|
|
28082
27954
|
let o = 0;
|
|
28083
|
-
const u = t.replace(
|
|
27955
|
+
const u = t.replace(_G, (c) => (tr.test(c) ? (r.color.push(o), i.push(G6), n.push(tr.parse(c))) : c.startsWith(PG) ? (r.var.push(o), i.push(AG), n.push(c)) : (r.number.push(o), i.push(H6), n.push(parseFloat(c))), ++o, rw)).split(rw);
|
|
28084
27956
|
return { values: n, split: u, indexes: r, types: i };
|
|
28085
27957
|
}
|
|
28086
|
-
function
|
|
27958
|
+
function q6(e) {
|
|
28087
27959
|
return _c(e).values;
|
|
28088
27960
|
}
|
|
28089
|
-
function
|
|
27961
|
+
function Y6(e) {
|
|
28090
27962
|
const { split: t, types: n } = _c(e), r = t.length;
|
|
28091
27963
|
return (i) => {
|
|
28092
27964
|
let o = "";
|
|
28093
27965
|
for (let a = 0; a < r; a++)
|
|
28094
27966
|
if (o += t[a], i[a] !== void 0) {
|
|
28095
27967
|
const u = n[a];
|
|
28096
|
-
u ===
|
|
27968
|
+
u === H6 ? o += dc(i[a]) : u === G6 ? o += tr.transform(i[a]) : o += i[a];
|
|
28097
27969
|
}
|
|
28098
27970
|
return o;
|
|
28099
27971
|
};
|
|
28100
27972
|
}
|
|
28101
|
-
const
|
|
28102
|
-
function
|
|
28103
|
-
const t =
|
|
28104
|
-
return
|
|
27973
|
+
const RG = (e) => typeof e == "number" ? 0 : e;
|
|
27974
|
+
function OG(e) {
|
|
27975
|
+
const t = q6(e);
|
|
27976
|
+
return Y6(e)(t.map(RG));
|
|
28105
27977
|
}
|
|
28106
27978
|
const va = {
|
|
28107
|
-
test:
|
|
28108
|
-
parse:
|
|
28109
|
-
createTransformer:
|
|
28110
|
-
getAnimatableNone:
|
|
28111
|
-
},
|
|
28112
|
-
function
|
|
27979
|
+
test: TG,
|
|
27980
|
+
parse: q6,
|
|
27981
|
+
createTransformer: Y6,
|
|
27982
|
+
getAnimatableNone: OG
|
|
27983
|
+
}, FG = /* @__PURE__ */ new Set(["brightness", "contrast", "saturate", "opacity"]);
|
|
27984
|
+
function MG(e) {
|
|
28113
27985
|
const [t, n] = e.slice(0, -1).split("(");
|
|
28114
27986
|
if (t === "drop-shadow")
|
|
28115
27987
|
return e;
|
|
@@ -28117,16 +27989,16 @@ function zG(e) {
|
|
|
28117
27989
|
if (!r)
|
|
28118
27990
|
return e;
|
|
28119
27991
|
const i = n.replace(r, "");
|
|
28120
|
-
let o =
|
|
27992
|
+
let o = FG.has(t) ? 1 : 0;
|
|
28121
27993
|
return r !== n && (o *= 100), t + "(" + o + i + ")";
|
|
28122
27994
|
}
|
|
28123
|
-
const
|
|
27995
|
+
const kG = /\b([a-z-]*)\(.*?\)/gu, wv = {
|
|
28124
27996
|
...va,
|
|
28125
27997
|
getAnimatableNone: (e) => {
|
|
28126
|
-
const t = e.match(
|
|
28127
|
-
return t ? t.map(
|
|
27998
|
+
const t = e.match(kG);
|
|
27999
|
+
return t ? t.map(MG).join(" ") : e;
|
|
28128
28000
|
}
|
|
28129
|
-
},
|
|
28001
|
+
}, BG = {
|
|
28130
28002
|
...b0,
|
|
28131
28003
|
// Color props
|
|
28132
28004
|
color: tr,
|
|
@@ -28142,36 +28014,36 @@ const WG = /\b([a-z-]*)\(.*?\)/gu, wv = {
|
|
|
28142
28014
|
borderLeftColor: tr,
|
|
28143
28015
|
filter: wv,
|
|
28144
28016
|
WebkitFilter: wv
|
|
28145
|
-
}, B0 = (e) =>
|
|
28146
|
-
function
|
|
28017
|
+
}, B0 = (e) => BG[e];
|
|
28018
|
+
function Z6(e, t) {
|
|
28147
28019
|
let n = B0(e);
|
|
28148
28020
|
return n !== wv && (n = va), n.getAnimatableNone ? n.getAnimatableNone(t) : void 0;
|
|
28149
28021
|
}
|
|
28150
|
-
const
|
|
28151
|
-
function
|
|
28022
|
+
const IG = /* @__PURE__ */ new Set(["auto", "none", "0"]);
|
|
28023
|
+
function LG(e, t, n) {
|
|
28152
28024
|
let r = 0, i;
|
|
28153
28025
|
for (; r < e.length && !i; ) {
|
|
28154
28026
|
const o = e[r];
|
|
28155
|
-
typeof o == "string" && !
|
|
28027
|
+
typeof o == "string" && !IG.has(o) && _c(o).values.length && (i = e[r]), r++;
|
|
28156
28028
|
}
|
|
28157
28029
|
if (i && n)
|
|
28158
28030
|
for (const o of t)
|
|
28159
|
-
e[o] =
|
|
28031
|
+
e[o] = Z6(n, i);
|
|
28160
28032
|
}
|
|
28161
|
-
const
|
|
28033
|
+
const iw = (e) => e === el || e === Je, ow = (e, t) => parseFloat(e.split(", ")[t]), aw = (e, t) => (n, { transform: r }) => {
|
|
28162
28034
|
if (r === "none" || !r)
|
|
28163
28035
|
return 0;
|
|
28164
28036
|
const i = r.match(/^matrix3d\((.+)\)$/u);
|
|
28165
28037
|
if (i)
|
|
28166
|
-
return
|
|
28038
|
+
return ow(i[1], t);
|
|
28167
28039
|
{
|
|
28168
28040
|
const o = r.match(/^matrix\((.+)\)$/u);
|
|
28169
|
-
return o ?
|
|
28041
|
+
return o ? ow(o[1], e) : 0;
|
|
28170
28042
|
}
|
|
28171
|
-
},
|
|
28172
|
-
function
|
|
28043
|
+
}, VG = /* @__PURE__ */ new Set(["x", "y", "z"]), NG = Qu.filter((e) => !VG.has(e));
|
|
28044
|
+
function jG(e) {
|
|
28173
28045
|
const t = [];
|
|
28174
|
-
return
|
|
28046
|
+
return NG.forEach((n) => {
|
|
28175
28047
|
const r = e.getValue(n);
|
|
28176
28048
|
r !== void 0 && (t.push([n, r.get()]), r.set(n.startsWith("scale") ? 1 : 0));
|
|
28177
28049
|
}), t;
|
|
@@ -28185,18 +28057,18 @@ const Vu = {
|
|
|
28185
28057
|
bottom: ({ y: e }, { top: t }) => parseFloat(t) + (e.max - e.min),
|
|
28186
28058
|
right: ({ x: e }, { left: t }) => parseFloat(t) + (e.max - e.min),
|
|
28187
28059
|
// Transform
|
|
28188
|
-
x:
|
|
28189
|
-
y:
|
|
28060
|
+
x: aw(4, 13),
|
|
28061
|
+
y: aw(5, 14)
|
|
28190
28062
|
};
|
|
28191
28063
|
Vu.translateX = Vu.x;
|
|
28192
28064
|
Vu.translateY = Vu.y;
|
|
28193
28065
|
const is = /* @__PURE__ */ new Set();
|
|
28194
28066
|
let Dv = !1, Ev = !1;
|
|
28195
|
-
function
|
|
28067
|
+
function J6() {
|
|
28196
28068
|
if (Ev) {
|
|
28197
28069
|
const e = Array.from(is).filter((r) => r.needsMeasurement), t = new Set(e.map((r) => r.element)), n = /* @__PURE__ */ new Map();
|
|
28198
28070
|
t.forEach((r) => {
|
|
28199
|
-
const i =
|
|
28071
|
+
const i = jG(r);
|
|
28200
28072
|
i.length && (n.set(r, i), r.render());
|
|
28201
28073
|
}), e.forEach((r) => r.measureInitialState()), t.forEach((r) => {
|
|
28202
28074
|
r.render();
|
|
@@ -28211,20 +28083,20 @@ function Q6() {
|
|
|
28211
28083
|
}
|
|
28212
28084
|
Ev = !1, Dv = !1, is.forEach((e) => e.complete()), is.clear();
|
|
28213
28085
|
}
|
|
28214
|
-
function
|
|
28086
|
+
function X6() {
|
|
28215
28087
|
is.forEach((e) => {
|
|
28216
28088
|
e.readKeyframes(), e.needsMeasurement && (Ev = !0);
|
|
28217
28089
|
});
|
|
28218
28090
|
}
|
|
28219
|
-
function
|
|
28220
|
-
|
|
28091
|
+
function KG() {
|
|
28092
|
+
X6(), J6();
|
|
28221
28093
|
}
|
|
28222
28094
|
let I0 = class {
|
|
28223
28095
|
constructor(t, n, r, i, o, a = !1) {
|
|
28224
28096
|
this.isComplete = !1, this.isAsync = !1, this.needsMeasurement = !1, this.isScheduled = !1, this.unresolvedKeyframes = [...t], this.onComplete = n, this.name = r, this.motionValue = i, this.element = o, this.isAsync = a;
|
|
28225
28097
|
}
|
|
28226
28098
|
scheduleResolve() {
|
|
28227
|
-
this.isScheduled = !0, this.isAsync ? (is.add(this), Dv || (Dv = !0, Gt.read(
|
|
28099
|
+
this.isScheduled = !0, this.isAsync ? (is.add(this), Dv || (Dv = !0, Gt.read(X6), Gt.resolveKeyframes(J6))) : (this.readKeyframes(), this.complete());
|
|
28228
28100
|
}
|
|
28229
28101
|
readKeyframes() {
|
|
28230
28102
|
const { unresolvedKeyframes: t, name: n, element: r, motionValue: i } = this;
|
|
@@ -28260,35 +28132,35 @@ let I0 = class {
|
|
|
28260
28132
|
this.isComplete || this.scheduleResolve();
|
|
28261
28133
|
}
|
|
28262
28134
|
};
|
|
28263
|
-
const
|
|
28135
|
+
const Q6 = (e) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e), UG = (
|
|
28264
28136
|
// eslint-disable-next-line redos-detector/no-unsafe-regex -- false positive, as it can match a lot of words
|
|
28265
28137
|
/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u
|
|
28266
28138
|
);
|
|
28267
|
-
function
|
|
28268
|
-
const t =
|
|
28139
|
+
function zG(e) {
|
|
28140
|
+
const t = UG.exec(e);
|
|
28269
28141
|
if (!t)
|
|
28270
28142
|
return [,];
|
|
28271
28143
|
const [, n, r, i] = t;
|
|
28272
28144
|
return [`--${n ?? r}`, i];
|
|
28273
28145
|
}
|
|
28274
|
-
const
|
|
28275
|
-
function
|
|
28276
|
-
io(n <=
|
|
28277
|
-
const [r, i] =
|
|
28146
|
+
const WG = 4;
|
|
28147
|
+
function e_(e, t, n = 1) {
|
|
28148
|
+
io(n <= WG, `Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);
|
|
28149
|
+
const [r, i] = zG(e);
|
|
28278
28150
|
if (!r)
|
|
28279
28151
|
return;
|
|
28280
28152
|
const o = window.getComputedStyle(t).getPropertyValue(r);
|
|
28281
28153
|
if (o) {
|
|
28282
28154
|
const a = o.trim();
|
|
28283
|
-
return
|
|
28155
|
+
return Q6(a) ? parseFloat(a) : a;
|
|
28284
28156
|
}
|
|
28285
|
-
return v0(i) ?
|
|
28157
|
+
return v0(i) ? e_(i, t, n + 1) : i;
|
|
28286
28158
|
}
|
|
28287
|
-
const
|
|
28159
|
+
const t_ = (e) => (t) => t.test(e), HG = {
|
|
28288
28160
|
test: (e) => e === "auto",
|
|
28289
28161
|
parse: (e) => e
|
|
28290
|
-
},
|
|
28291
|
-
let
|
|
28162
|
+
}, n_ = [el, Je, to, na, FH, OH, HG], sw = (e) => n_.find(t_(e));
|
|
28163
|
+
let r_ = class extends I0 {
|
|
28292
28164
|
constructor(t, n, r, i, o) {
|
|
28293
28165
|
super(t, n, r, i, o, !0);
|
|
28294
28166
|
}
|
|
@@ -28300,15 +28172,15 @@ let o_ = class extends I0 {
|
|
|
28300
28172
|
for (let c = 0; c < t.length; c++) {
|
|
28301
28173
|
let d = t[c];
|
|
28302
28174
|
if (typeof d == "string" && (d = d.trim(), v0(d))) {
|
|
28303
|
-
const f =
|
|
28175
|
+
const f = e_(d, n.current);
|
|
28304
28176
|
f !== void 0 && (t[c] = f), c === t.length - 1 && (this.finalKeyframe = d);
|
|
28305
28177
|
}
|
|
28306
28178
|
}
|
|
28307
|
-
if (this.resolveNoneKeyframes(), !
|
|
28179
|
+
if (this.resolveNoneKeyframes(), !F6.has(r) || t.length !== 2)
|
|
28308
28180
|
return;
|
|
28309
|
-
const [i, o] = t, a =
|
|
28181
|
+
const [i, o] = t, a = sw(i), u = sw(o);
|
|
28310
28182
|
if (a !== u)
|
|
28311
|
-
if (
|
|
28183
|
+
if (iw(a) && iw(u))
|
|
28312
28184
|
for (let c = 0; c < t.length; c++) {
|
|
28313
28185
|
const d = t[c];
|
|
28314
28186
|
typeof d == "string" && (t[c] = parseFloat(d));
|
|
@@ -28319,8 +28191,8 @@ let o_ = class extends I0 {
|
|
|
28319
28191
|
resolveNoneKeyframes() {
|
|
28320
28192
|
const { unresolvedKeyframes: t, name: n } = this, r = [];
|
|
28321
28193
|
for (let i = 0; i < t.length; i++)
|
|
28322
|
-
|
|
28323
|
-
r.length &&
|
|
28194
|
+
xG(t[i]) && r.push(i);
|
|
28195
|
+
r.length && LG(t, r, n);
|
|
28324
28196
|
}
|
|
28325
28197
|
measureInitialState() {
|
|
28326
28198
|
const { element: t, unresolvedKeyframes: n, name: r } = this;
|
|
@@ -28343,10 +28215,10 @@ let o_ = class extends I0 {
|
|
|
28343
28215
|
}), this.resolveNoneKeyframes();
|
|
28344
28216
|
}
|
|
28345
28217
|
};
|
|
28346
|
-
const
|
|
28218
|
+
const uw = (e, t) => t === "zIndex" ? !1 : !!(typeof e == "number" || Array.isArray(e) || typeof e == "string" && // It's animatable if we have a string
|
|
28347
28219
|
(va.test(e) || e === "0") && // And it contains numbers and/or colors
|
|
28348
28220
|
!e.startsWith("url("));
|
|
28349
|
-
function
|
|
28221
|
+
function GG(e) {
|
|
28350
28222
|
const t = e[0];
|
|
28351
28223
|
if (e.length === 1)
|
|
28352
28224
|
return !0;
|
|
@@ -28354,22 +28226,22 @@ function rq(e) {
|
|
|
28354
28226
|
if (e[n] !== t)
|
|
28355
28227
|
return !0;
|
|
28356
28228
|
}
|
|
28357
|
-
function
|
|
28229
|
+
function qG(e, t, n, r) {
|
|
28358
28230
|
const i = e[0];
|
|
28359
28231
|
if (i === null)
|
|
28360
28232
|
return !1;
|
|
28361
28233
|
if (t === "display" || t === "visibility")
|
|
28362
28234
|
return !0;
|
|
28363
|
-
const o = e[e.length - 1], a =
|
|
28364
|
-
return Xu(a === u, `You are trying to animate ${t} from "${i}" to "${o}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${o} via the \`style\` property.`), !a || !u ? !1 :
|
|
28235
|
+
const o = e[e.length - 1], a = uw(i, t), u = uw(o, t);
|
|
28236
|
+
return Xu(a === u, `You are trying to animate ${t} from "${i}" to "${o}". ${i} is not an animatable value - to enable this animation set ${i} to a value animatable to ${o} via the \`style\` property.`), !a || !u ? !1 : GG(e) || (n === "spring" || S0(n)) && r;
|
|
28365
28237
|
}
|
|
28366
|
-
const
|
|
28238
|
+
const YG = (e) => e !== null;
|
|
28367
28239
|
function Pp(e, { repeat: t, repeatType: n = "loop" }, r) {
|
|
28368
|
-
const i = e.filter(
|
|
28240
|
+
const i = e.filter(YG), o = t && n !== "loop" && t % 2 === 1 ? 0 : i.length - 1;
|
|
28369
28241
|
return !o || r === void 0 ? i[o] : r;
|
|
28370
28242
|
}
|
|
28371
|
-
const
|
|
28372
|
-
let
|
|
28243
|
+
const ZG = 40;
|
|
28244
|
+
let i_ = class {
|
|
28373
28245
|
constructor({ autoplay: t = !0, delay: n = 0, type: r = "keyframes", repeat: i = 0, repeatDelay: o = 0, repeatType: a = "loop", ...u }) {
|
|
28374
28246
|
this.isStopped = !1, this.hasAttemptedResolve = !1, this.createdAt = no.now(), this.options = {
|
|
28375
28247
|
autoplay: t,
|
|
@@ -28392,7 +28264,7 @@ let a_ = class {
|
|
|
28392
28264
|
* to avoid a sudden jump into the animation.
|
|
28393
28265
|
*/
|
|
28394
28266
|
calcStartTime() {
|
|
28395
|
-
return this.resolvedAt ? this.resolvedAt - this.createdAt >
|
|
28267
|
+
return this.resolvedAt ? this.resolvedAt - this.createdAt > ZG ? this.resolvedAt : this.createdAt : this.createdAt;
|
|
28396
28268
|
}
|
|
28397
28269
|
/**
|
|
28398
28270
|
* A getter for resolved data. If keyframes are not yet resolved, accessing
|
|
@@ -28400,7 +28272,7 @@ let a_ = class {
|
|
|
28400
28272
|
* This is a deoptimisation, but at its worst still batches read/writes.
|
|
28401
28273
|
*/
|
|
28402
28274
|
get resolved() {
|
|
28403
|
-
return !this._resolved && !this.hasAttemptedResolve &&
|
|
28275
|
+
return !this._resolved && !this.hasAttemptedResolve && KG(), this._resolved;
|
|
28404
28276
|
}
|
|
28405
28277
|
/**
|
|
28406
28278
|
* A method to be called when the keyframes resolver completes. This method
|
|
@@ -28410,7 +28282,7 @@ let a_ = class {
|
|
|
28410
28282
|
onKeyframesResolved(t, n) {
|
|
28411
28283
|
this.resolvedAt = no.now(), this.hasAttemptedResolve = !0;
|
|
28412
28284
|
const { name: r, type: i, velocity: o, delay: a, onComplete: u, onUpdate: c, isGenerator: d } = this.options;
|
|
28413
|
-
if (!d && !
|
|
28285
|
+
if (!d && !qG(t, r, i, o))
|
|
28414
28286
|
if (a)
|
|
28415
28287
|
this.options.duration = 0;
|
|
28416
28288
|
else {
|
|
@@ -28444,17 +28316,17 @@ let a_ = class {
|
|
|
28444
28316
|
}
|
|
28445
28317
|
};
|
|
28446
28318
|
const en = (e, t, n) => e + (t - e) * n;
|
|
28447
|
-
function
|
|
28319
|
+
function Mg(e, t, n) {
|
|
28448
28320
|
return n < 0 && (n += 1), n > 1 && (n -= 1), n < 1 / 6 ? e + (t - e) * 6 * n : n < 1 / 2 ? t : n < 2 / 3 ? e + (t - e) * (2 / 3 - n) * 6 : e;
|
|
28449
28321
|
}
|
|
28450
|
-
function
|
|
28322
|
+
function JG({ hue: e, saturation: t, lightness: n, alpha: r }) {
|
|
28451
28323
|
e /= 360, t /= 100, n /= 100;
|
|
28452
28324
|
let i = 0, o = 0, a = 0;
|
|
28453
28325
|
if (!t)
|
|
28454
28326
|
i = o = a = n;
|
|
28455
28327
|
else {
|
|
28456
28328
|
const u = n < 0.5 ? n * (1 + t) : n + t - n * t, c = 2 * n - u;
|
|
28457
|
-
i =
|
|
28329
|
+
i = Mg(c, u, e + 1 / 3), o = Mg(c, u, e), a = Mg(c, u, e - 1 / 3);
|
|
28458
28330
|
}
|
|
28459
28331
|
return {
|
|
28460
28332
|
red: Math.round(i * 255),
|
|
@@ -28466,34 +28338,34 @@ function sq({ hue: e, saturation: t, lightness: n, alpha: r }) {
|
|
|
28466
28338
|
function Ph(e, t) {
|
|
28467
28339
|
return (n) => n > 0 ? t : e;
|
|
28468
28340
|
}
|
|
28469
|
-
const
|
|
28341
|
+
const kg = (e, t, n) => {
|
|
28470
28342
|
const r = e * e, i = n * (t * t - r) + r;
|
|
28471
28343
|
return i < 0 ? 0 : Math.sqrt(i);
|
|
28472
|
-
},
|
|
28473
|
-
function
|
|
28474
|
-
const t =
|
|
28344
|
+
}, XG = [xv, Xa, cu], QG = (e) => XG.find((t) => t.test(e));
|
|
28345
|
+
function lw(e) {
|
|
28346
|
+
const t = QG(e);
|
|
28475
28347
|
if (Xu(!!t, `'${e}' is not an animatable color. Use the equivalent color code instead.`), !t)
|
|
28476
28348
|
return !1;
|
|
28477
28349
|
let n = t.parse(e);
|
|
28478
|
-
return t === cu && (n =
|
|
28350
|
+
return t === cu && (n = JG(n)), n;
|
|
28479
28351
|
}
|
|
28480
|
-
const
|
|
28481
|
-
const n =
|
|
28352
|
+
const cw = (e, t) => {
|
|
28353
|
+
const n = lw(e), r = lw(t);
|
|
28482
28354
|
if (!n || !r)
|
|
28483
28355
|
return Ph(e, t);
|
|
28484
28356
|
const i = { ...n };
|
|
28485
|
-
return (o) => (i.red =
|
|
28486
|
-
},
|
|
28487
|
-
function
|
|
28357
|
+
return (o) => (i.red = kg(n.red, r.red, o), i.green = kg(n.green, r.green, o), i.blue = kg(n.blue, r.blue, o), i.alpha = en(n.alpha, r.alpha, o), Xa.transform(i));
|
|
28358
|
+
}, eq = (e, t) => (n) => t(e(n)), id = (...e) => e.reduce(eq), Cv = /* @__PURE__ */ new Set(["none", "hidden"]);
|
|
28359
|
+
function tq(e, t) {
|
|
28488
28360
|
return Cv.has(e) ? (n) => n <= 0 ? e : t : (n) => n >= 1 ? t : e;
|
|
28489
28361
|
}
|
|
28490
|
-
function
|
|
28362
|
+
function nq(e, t) {
|
|
28491
28363
|
return (n) => en(e, t, n);
|
|
28492
28364
|
}
|
|
28493
28365
|
function L0(e) {
|
|
28494
|
-
return typeof e == "number" ?
|
|
28366
|
+
return typeof e == "number" ? nq : typeof e == "string" ? v0(e) ? Ph : tr.test(e) ? cw : oq : Array.isArray(e) ? o_ : typeof e == "object" ? tr.test(e) ? cw : rq : Ph;
|
|
28495
28367
|
}
|
|
28496
|
-
function
|
|
28368
|
+
function o_(e, t) {
|
|
28497
28369
|
const n = [...e], r = n.length, i = e.map((o, a) => L0(o)(o, t[a]));
|
|
28498
28370
|
return (o) => {
|
|
28499
28371
|
for (let a = 0; a < r; a++)
|
|
@@ -28501,7 +28373,7 @@ function s_(e, t) {
|
|
|
28501
28373
|
return n;
|
|
28502
28374
|
};
|
|
28503
28375
|
}
|
|
28504
|
-
function
|
|
28376
|
+
function rq(e, t) {
|
|
28505
28377
|
const n = { ...e, ...t }, r = {};
|
|
28506
28378
|
for (const i in n)
|
|
28507
28379
|
e[i] !== void 0 && t[i] !== void 0 && (r[i] = L0(e[i])(e[i], t[i]));
|
|
@@ -28511,7 +28383,7 @@ function hq(e, t) {
|
|
|
28511
28383
|
return n;
|
|
28512
28384
|
};
|
|
28513
28385
|
}
|
|
28514
|
-
function
|
|
28386
|
+
function iq(e, t) {
|
|
28515
28387
|
var n;
|
|
28516
28388
|
const r = [], i = { color: 0, var: 0, number: 0 };
|
|
28517
28389
|
for (let o = 0; o < t.values.length; o++) {
|
|
@@ -28520,17 +28392,17 @@ function pq(e, t) {
|
|
|
28520
28392
|
}
|
|
28521
28393
|
return r;
|
|
28522
28394
|
}
|
|
28523
|
-
const
|
|
28395
|
+
const oq = (e, t) => {
|
|
28524
28396
|
const n = va.createTransformer(t), r = _c(e), i = _c(t);
|
|
28525
|
-
return r.indexes.var.length === i.indexes.var.length && r.indexes.color.length === i.indexes.color.length && r.indexes.number.length >= i.indexes.number.length ? Cv.has(e) && !i.values.length || Cv.has(t) && !r.values.length ?
|
|
28397
|
+
return r.indexes.var.length === i.indexes.var.length && r.indexes.color.length === i.indexes.color.length && r.indexes.number.length >= i.indexes.number.length ? Cv.has(e) && !i.values.length || Cv.has(t) && !r.values.length ? tq(e, t) : id(o_(iq(r, i), i.values), n) : (Xu(!0, `Complex values '${e}' and '${t}' 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.`), Ph(e, t));
|
|
28526
28398
|
};
|
|
28527
|
-
function
|
|
28399
|
+
function a_(e, t, n) {
|
|
28528
28400
|
return typeof e == "number" && typeof t == "number" && typeof n == "number" ? en(e, t, n) : L0(e)(e, t);
|
|
28529
28401
|
}
|
|
28530
|
-
const
|
|
28531
|
-
function
|
|
28532
|
-
const r = Math.max(t -
|
|
28533
|
-
return
|
|
28402
|
+
const aq = 5;
|
|
28403
|
+
function s_(e, t, n) {
|
|
28404
|
+
const r = Math.max(t - aq, 0);
|
|
28405
|
+
return M6(n - e(r), t - r);
|
|
28534
28406
|
}
|
|
28535
28407
|
const rn = {
|
|
28536
28408
|
// Default spring physics
|
|
@@ -28560,17 +28432,17 @@ const rn = {
|
|
|
28560
28432
|
// in seconds
|
|
28561
28433
|
minDamping: 0.05,
|
|
28562
28434
|
maxDamping: 1
|
|
28563
|
-
},
|
|
28564
|
-
function
|
|
28435
|
+
}, dw = 1e-3;
|
|
28436
|
+
function sq({ duration: e = rn.duration, bounce: t = rn.bounce, velocity: n = rn.velocity, mass: r = rn.mass }) {
|
|
28565
28437
|
let i, o;
|
|
28566
28438
|
Xu(e <= eo(rn.maxDuration), "Spring duration must be 10 seconds or less");
|
|
28567
28439
|
let a = 1 - t;
|
|
28568
28440
|
a = Fo(rn.minDamping, rn.maxDamping, a), e = Fo(rn.minDuration, rn.maxDuration, Po(e)), a < 1 ? (i = (d) => {
|
|
28569
28441
|
const f = d * a, h = f * e, m = f - n, g = Sv(d, a), v = Math.exp(-h);
|
|
28570
|
-
return
|
|
28442
|
+
return dw - m / g * v;
|
|
28571
28443
|
}, o = (d) => {
|
|
28572
28444
|
const h = d * a * e, m = h * n + n, g = Math.pow(a, 2) * Math.pow(d, 2) * e, v = Math.exp(-h), b = Sv(Math.pow(d, 2), a);
|
|
28573
|
-
return (-i(d) +
|
|
28445
|
+
return (-i(d) + dw > 0 ? -1 : 1) * ((m - g) * v) / b;
|
|
28574
28446
|
}) : (i = (d) => {
|
|
28575
28447
|
const f = Math.exp(-d * e), h = (d - n) * e + 1;
|
|
28576
28448
|
return -1e-3 + f * h;
|
|
@@ -28578,7 +28450,7 @@ function yq({ duration: e = rn.duration, bounce: t = rn.bounce, velocity: n = rn
|
|
|
28578
28450
|
const f = Math.exp(-d * e), h = (n - d) * (e * e);
|
|
28579
28451
|
return f * h;
|
|
28580
28452
|
});
|
|
28581
|
-
const u = 5 / e, c =
|
|
28453
|
+
const u = 5 / e, c = lq(i, o, u);
|
|
28582
28454
|
if (e = eo(e), isNaN(c))
|
|
28583
28455
|
return {
|
|
28584
28456
|
stiffness: rn.stiffness,
|
|
@@ -28594,21 +28466,21 @@ function yq({ duration: e = rn.duration, bounce: t = rn.bounce, velocity: n = rn
|
|
|
28594
28466
|
};
|
|
28595
28467
|
}
|
|
28596
28468
|
}
|
|
28597
|
-
const
|
|
28598
|
-
function
|
|
28469
|
+
const uq = 12;
|
|
28470
|
+
function lq(e, t, n) {
|
|
28599
28471
|
let r = n;
|
|
28600
|
-
for (let i = 1; i <
|
|
28472
|
+
for (let i = 1; i < uq; i++)
|
|
28601
28473
|
r = r - e(r) / t(r);
|
|
28602
28474
|
return r;
|
|
28603
28475
|
}
|
|
28604
28476
|
function Sv(e, t) {
|
|
28605
28477
|
return e * Math.sqrt(1 - t * t);
|
|
28606
28478
|
}
|
|
28607
|
-
const
|
|
28608
|
-
function
|
|
28479
|
+
const cq = ["duration", "bounce"], dq = ["stiffness", "damping", "mass"];
|
|
28480
|
+
function fw(e, t) {
|
|
28609
28481
|
return t.some((n) => e[n] !== void 0);
|
|
28610
28482
|
}
|
|
28611
|
-
function
|
|
28483
|
+
function fq(e) {
|
|
28612
28484
|
let t = {
|
|
28613
28485
|
velocity: rn.velocity,
|
|
28614
28486
|
stiffness: rn.stiffness,
|
|
@@ -28617,7 +28489,7 @@ function wq(e) {
|
|
|
28617
28489
|
isResolvedFromDuration: !1,
|
|
28618
28490
|
...e
|
|
28619
28491
|
};
|
|
28620
|
-
if (!
|
|
28492
|
+
if (!fw(e, dq) && fw(e, cq))
|
|
28621
28493
|
if (e.visualDuration) {
|
|
28622
28494
|
const n = e.visualDuration, r = 2 * Math.PI / (n * 1.2), i = r * r, o = 2 * Fo(0.05, 1, 1 - (e.bounce || 0)) * Math.sqrt(i);
|
|
28623
28495
|
t = {
|
|
@@ -28627,7 +28499,7 @@ function wq(e) {
|
|
|
28627
28499
|
damping: o
|
|
28628
28500
|
};
|
|
28629
28501
|
} else {
|
|
28630
|
-
const n =
|
|
28502
|
+
const n = sq(e);
|
|
28631
28503
|
t = {
|
|
28632
28504
|
...t,
|
|
28633
28505
|
...n,
|
|
@@ -28636,14 +28508,14 @@ function wq(e) {
|
|
|
28636
28508
|
}
|
|
28637
28509
|
return t;
|
|
28638
28510
|
}
|
|
28639
|
-
function
|
|
28511
|
+
function u_(e = rn.visualDuration, t = rn.bounce) {
|
|
28640
28512
|
const n = typeof e != "object" ? {
|
|
28641
28513
|
visualDuration: e,
|
|
28642
28514
|
keyframes: [0, 1],
|
|
28643
28515
|
bounce: t
|
|
28644
28516
|
} : e;
|
|
28645
28517
|
let { restSpeed: r, restDelta: i } = n;
|
|
28646
|
-
const o = n.keyframes[0], a = n.keyframes[n.keyframes.length - 1], u = { done: !1, value: o }, { stiffness: c, damping: d, mass: f, duration: h, velocity: m, isResolvedFromDuration: g } =
|
|
28518
|
+
const o = n.keyframes[0], a = n.keyframes[n.keyframes.length - 1], u = { done: !1, value: o }, { stiffness: c, damping: d, mass: f, duration: h, velocity: m, isResolvedFromDuration: g } = fq({
|
|
28647
28519
|
...n,
|
|
28648
28520
|
velocity: -Po(n.velocity || 0)
|
|
28649
28521
|
}), v = m || 0, b = d / (2 * Math.sqrt(c * f)), E = a - o, $ = Po(Math.sqrt(c / f)), y = Math.abs(E) < 5;
|
|
@@ -28672,20 +28544,20 @@ function c_(e = rn.visualDuration, t = rn.bounce) {
|
|
|
28672
28544
|
u.done = D >= h;
|
|
28673
28545
|
else {
|
|
28674
28546
|
let M = 0;
|
|
28675
|
-
b < 1 && (M = D === 0 ? eo(v) :
|
|
28547
|
+
b < 1 && (M = D === 0 ? eo(v) : s_(w, D, S));
|
|
28676
28548
|
const C = Math.abs(M) <= r, K = Math.abs(a - S) <= i;
|
|
28677
28549
|
u.done = C && K;
|
|
28678
28550
|
}
|
|
28679
28551
|
return u.value = u.done ? a : S, u;
|
|
28680
28552
|
},
|
|
28681
28553
|
toString: () => {
|
|
28682
|
-
const D = Math.min(
|
|
28554
|
+
const D = Math.min(S6(A), vv), S = T6((M) => A.next(D * M).value, D, 30);
|
|
28683
28555
|
return D + "ms " + S;
|
|
28684
28556
|
}
|
|
28685
28557
|
};
|
|
28686
28558
|
return A;
|
|
28687
28559
|
}
|
|
28688
|
-
function
|
|
28560
|
+
function hw({ keyframes: e, velocity: t = 0, power: n = 0.8, timeConstant: r = 325, bounceDamping: i = 10, bounceStiffness: o = 500, modifyTarget: a, min: u, max: c, restDelta: d = 0.5, restSpeed: f }) {
|
|
28689
28561
|
const h = e[0], m = {
|
|
28690
28562
|
done: !1,
|
|
28691
28563
|
value: h
|
|
@@ -28699,9 +28571,9 @@ function ww({ keyframes: e, velocity: t = 0, power: n = 0.8, timeConstant: r = 3
|
|
|
28699
28571
|
};
|
|
28700
28572
|
let D, S;
|
|
28701
28573
|
const M = (C) => {
|
|
28702
|
-
g(m.value) && (D = C, S =
|
|
28574
|
+
g(m.value) && (D = C, S = u_({
|
|
28703
28575
|
keyframes: [m.value, v(m.value)],
|
|
28704
|
-
velocity:
|
|
28576
|
+
velocity: s_(w, C, m.value),
|
|
28705
28577
|
// TODO: This should be passing * 1000
|
|
28706
28578
|
damping: i,
|
|
28707
28579
|
stiffness: o,
|
|
@@ -28717,29 +28589,29 @@ function ww({ keyframes: e, velocity: t = 0, power: n = 0.8, timeConstant: r = 3
|
|
|
28717
28589
|
}
|
|
28718
28590
|
};
|
|
28719
28591
|
}
|
|
28720
|
-
const
|
|
28592
|
+
const hq = /* @__PURE__ */ rd(0.42, 0, 1, 1), pq = /* @__PURE__ */ rd(0, 0, 0.58, 1), l_ = /* @__PURE__ */ rd(0.42, 0, 0.58, 1), mq = (e) => Array.isArray(e) && typeof e[0] != "number", pw = {
|
|
28721
28593
|
linear: Rr,
|
|
28722
|
-
easeIn:
|
|
28723
|
-
easeInOut:
|
|
28724
|
-
easeOut:
|
|
28594
|
+
easeIn: hq,
|
|
28595
|
+
easeInOut: l_,
|
|
28596
|
+
easeOut: pq,
|
|
28725
28597
|
circIn: F0,
|
|
28726
|
-
circInOut:
|
|
28727
|
-
circOut:
|
|
28598
|
+
circInOut: U6,
|
|
28599
|
+
circOut: K6,
|
|
28728
28600
|
backIn: O0,
|
|
28729
|
-
backInOut:
|
|
28730
|
-
backOut:
|
|
28731
|
-
anticipate:
|
|
28732
|
-
},
|
|
28601
|
+
backInOut: N6,
|
|
28602
|
+
backOut: V6,
|
|
28603
|
+
anticipate: j6
|
|
28604
|
+
}, mw = (e) => {
|
|
28733
28605
|
if (T0(e)) {
|
|
28734
28606
|
io(e.length === 4, "Cubic bezier arrays must contain four numerical values.");
|
|
28735
28607
|
const [t, n, r, i] = e;
|
|
28736
28608
|
return rd(t, n, r, i);
|
|
28737
28609
|
} else if (typeof e == "string")
|
|
28738
|
-
return io(
|
|
28610
|
+
return io(pw[e] !== void 0, `Invalid easing type '${e}'`), pw[e];
|
|
28739
28611
|
return e;
|
|
28740
28612
|
};
|
|
28741
|
-
function
|
|
28742
|
-
const r = [], i = n ||
|
|
28613
|
+
function gq(e, t, n) {
|
|
28614
|
+
const r = [], i = n || a_, o = e.length - 1;
|
|
28743
28615
|
for (let a = 0; a < o; a++) {
|
|
28744
28616
|
let u = i(e[a], e[a + 1]);
|
|
28745
28617
|
if (t) {
|
|
@@ -28750,7 +28622,7 @@ function Sq(e, t, n) {
|
|
|
28750
28622
|
}
|
|
28751
28623
|
return r;
|
|
28752
28624
|
}
|
|
28753
|
-
function
|
|
28625
|
+
function c_(e, t, { clamp: n = !0, ease: r, mixer: i } = {}) {
|
|
28754
28626
|
const o = e.length;
|
|
28755
28627
|
if (io(o === t.length, "Both input and output ranges must be the same length"), o === 1)
|
|
28756
28628
|
return () => t[0];
|
|
@@ -28758,7 +28630,7 @@ function f_(e, t, { clamp: n = !0, ease: r, mixer: i } = {}) {
|
|
|
28758
28630
|
return () => t[1];
|
|
28759
28631
|
const a = e[0] === e[1];
|
|
28760
28632
|
e[0] > e[o - 1] && (e = [...e].reverse(), t = [...t].reverse());
|
|
28761
|
-
const u =
|
|
28633
|
+
const u = gq(t, r, i), c = u.length, d = (f) => {
|
|
28762
28634
|
if (a && f < e[0])
|
|
28763
28635
|
return t[0];
|
|
28764
28636
|
let h = 0;
|
|
@@ -28770,41 +28642,41 @@ function f_(e, t, { clamp: n = !0, ease: r, mixer: i } = {}) {
|
|
|
28770
28642
|
};
|
|
28771
28643
|
return n ? (f) => d(Fo(e[0], e[o - 1], f)) : d;
|
|
28772
28644
|
}
|
|
28773
|
-
function
|
|
28645
|
+
function yq(e, t) {
|
|
28774
28646
|
const n = e[e.length - 1];
|
|
28775
28647
|
for (let r = 1; r <= t; r++) {
|
|
28776
28648
|
const i = Bu(0, t, r);
|
|
28777
28649
|
e.push(en(n, 1, i));
|
|
28778
28650
|
}
|
|
28779
28651
|
}
|
|
28780
|
-
function
|
|
28652
|
+
function vq(e) {
|
|
28781
28653
|
const t = [0];
|
|
28782
|
-
return
|
|
28654
|
+
return yq(t, e.length - 1), t;
|
|
28783
28655
|
}
|
|
28784
|
-
function
|
|
28656
|
+
function bq(e, t) {
|
|
28785
28657
|
return e.map((n) => n * t);
|
|
28786
28658
|
}
|
|
28787
|
-
function
|
|
28788
|
-
return e.map(() => t ||
|
|
28659
|
+
function $q(e, t) {
|
|
28660
|
+
return e.map(() => t || l_).splice(0, e.length - 1);
|
|
28789
28661
|
}
|
|
28790
28662
|
function _h({ duration: e = 300, keyframes: t, times: n, ease: r = "easeInOut" }) {
|
|
28791
|
-
const i =
|
|
28663
|
+
const i = mq(r) ? r.map(mw) : mw(r), o = {
|
|
28792
28664
|
done: !1,
|
|
28793
28665
|
value: t[0]
|
|
28794
|
-
}, a =
|
|
28666
|
+
}, a = bq(
|
|
28795
28667
|
// Only use the provided offsets if they're the correct length
|
|
28796
28668
|
// TODO Maybe we should warn here if there's a length mismatch
|
|
28797
|
-
n && n.length === t.length ? n :
|
|
28669
|
+
n && n.length === t.length ? n : vq(t),
|
|
28798
28670
|
e
|
|
28799
|
-
), u =
|
|
28800
|
-
ease: Array.isArray(i) ? i :
|
|
28671
|
+
), u = c_(a, t, {
|
|
28672
|
+
ease: Array.isArray(i) ? i : $q(t, i)
|
|
28801
28673
|
});
|
|
28802
28674
|
return {
|
|
28803
28675
|
calculatedDuration: e,
|
|
28804
28676
|
next: (c) => (o.value = u(c), o.done = c >= e, o)
|
|
28805
28677
|
};
|
|
28806
28678
|
}
|
|
28807
|
-
const
|
|
28679
|
+
const xq = (e) => {
|
|
28808
28680
|
const t = ({ timestamp: n }) => e(n);
|
|
28809
28681
|
return {
|
|
28810
28682
|
start: () => Gt.update(t, !0),
|
|
@@ -28815,14 +28687,14 @@ const Rq = (e) => {
|
|
|
28815
28687
|
*/
|
|
28816
28688
|
now: () => Kn.isProcessing ? Kn.timestamp : no.now()
|
|
28817
28689
|
};
|
|
28818
|
-
},
|
|
28819
|
-
decay:
|
|
28820
|
-
inertia:
|
|
28690
|
+
}, wq = {
|
|
28691
|
+
decay: hw,
|
|
28692
|
+
inertia: hw,
|
|
28821
28693
|
tween: _h,
|
|
28822
28694
|
keyframes: _h,
|
|
28823
|
-
spring:
|
|
28824
|
-
},
|
|
28825
|
-
let V0 = class extends
|
|
28695
|
+
spring: u_
|
|
28696
|
+
}, Dq = (e) => e / 100;
|
|
28697
|
+
let V0 = class extends i_ {
|
|
28826
28698
|
constructor(t) {
|
|
28827
28699
|
super(t), this.holdTime = null, this.cancelTime = null, this.currentTime = 0, this.playbackSpeed = 1, this.pendingPlayState = "running", this.startTime = null, this.state = "idle", this.stop = () => {
|
|
28828
28700
|
if (this.resolver.cancel(), this.isStopped = !0, this.state === "idle")
|
|
@@ -28838,15 +28710,15 @@ let V0 = class extends a_ {
|
|
|
28838
28710
|
super.flatten(), this._resolved && Object.assign(this._resolved, this.initPlayback(this._resolved.keyframes));
|
|
28839
28711
|
}
|
|
28840
28712
|
initPlayback(t) {
|
|
28841
|
-
const { type: n = "keyframes", repeat: r = 0, repeatDelay: i = 0, repeatType: o, velocity: a = 0 } = this.options, u = S0(n) ? n :
|
|
28713
|
+
const { type: n = "keyframes", repeat: r = 0, repeatDelay: i = 0, repeatType: o, velocity: a = 0 } = this.options, u = S0(n) ? n : wq[n] || _h;
|
|
28842
28714
|
let c, d;
|
|
28843
|
-
u !== _h && typeof t[0] != "number" && (process.env.NODE_ENV !== "production" && io(t.length === 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`), c = id(
|
|
28715
|
+
u !== _h && typeof t[0] != "number" && (process.env.NODE_ENV !== "production" && io(t.length === 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${t}`), c = id(Dq, a_(t[0], t[1])), t = [0, 100]);
|
|
28844
28716
|
const f = u({ ...this.options, keyframes: t });
|
|
28845
28717
|
o === "mirror" && (d = u({
|
|
28846
28718
|
...this.options,
|
|
28847
28719
|
keyframes: [...t].reverse(),
|
|
28848
28720
|
velocity: -a
|
|
28849
|
-
})), f.calculatedDuration === null && (f.calculatedDuration =
|
|
28721
|
+
})), f.calculatedDuration === null && (f.calculatedDuration = S6(f));
|
|
28850
28722
|
const { calculatedDuration: h } = f, m = h + i, g = m * (r + 1) - i;
|
|
28851
28723
|
return {
|
|
28852
28724
|
generator: f,
|
|
@@ -28911,7 +28783,7 @@ let V0 = class extends a_ {
|
|
|
28911
28783
|
}
|
|
28912
28784
|
if (this.isStopped)
|
|
28913
28785
|
return;
|
|
28914
|
-
const { driver: t =
|
|
28786
|
+
const { driver: t = xq, onPlay: n, startTime: r } = this.options;
|
|
28915
28787
|
this.driver || (this.driver = t((o) => this.tick(o))), n && n();
|
|
28916
28788
|
const i = this.driver.now();
|
|
28917
28789
|
this.holdTime !== null ? this.startTime = i - this.holdTime : this.startTime ? this.state === "finished" && (this.startTime = i) : this.startTime = r ?? this.calcStartTime(), this.state === "finished" && this.updateFinishedPromise(), this.cancelTime = this.startTime, this.holdTime = null, this.state = "running", this.driver.start();
|
|
@@ -28945,7 +28817,7 @@ let V0 = class extends a_ {
|
|
|
28945
28817
|
return this.startTime = 0, this.tick(t, !0);
|
|
28946
28818
|
}
|
|
28947
28819
|
};
|
|
28948
|
-
const
|
|
28820
|
+
const Eq = /* @__PURE__ */ new Set([
|
|
28949
28821
|
"opacity",
|
|
28950
28822
|
"clipPath",
|
|
28951
28823
|
"filter",
|
|
@@ -28954,10 +28826,10 @@ const Mq = /* @__PURE__ */ new Set([
|
|
|
28954
28826
|
// or until we implement support for linear() easing.
|
|
28955
28827
|
// "background-color"
|
|
28956
28828
|
]);
|
|
28957
|
-
function
|
|
28829
|
+
function Cq(e, t, n, { delay: r = 0, duration: i = 300, repeat: o = 0, repeatType: a = "loop", ease: u = "easeInOut", times: c } = {}) {
|
|
28958
28830
|
const d = { [t]: n };
|
|
28959
28831
|
c && (d.offset = c);
|
|
28960
|
-
const f =
|
|
28832
|
+
const f = P6(u, i);
|
|
28961
28833
|
return Array.isArray(f) && (d.easing = f), e.animate(d, {
|
|
28962
28834
|
delay: r,
|
|
28963
28835
|
duration: i,
|
|
@@ -28967,11 +28839,11 @@ function kq(e, t, n, { delay: r = 0, duration: i = 300, repeat: o = 0, repeatTyp
|
|
|
28967
28839
|
direction: a === "reverse" ? "alternate" : "normal"
|
|
28968
28840
|
});
|
|
28969
28841
|
}
|
|
28970
|
-
const
|
|
28971
|
-
function
|
|
28972
|
-
return S0(e.type) || e.type === "spring" || !
|
|
28842
|
+
const Sq = /* @__PURE__ */ d0(() => Object.hasOwnProperty.call(Element.prototype, "animate")), Rh = 10, Tq = 2e4;
|
|
28843
|
+
function Aq(e) {
|
|
28844
|
+
return S0(e.type) || e.type === "spring" || !A6(e.ease);
|
|
28973
28845
|
}
|
|
28974
|
-
function
|
|
28846
|
+
function Pq(e, t) {
|
|
28975
28847
|
const n = new V0({
|
|
28976
28848
|
...t,
|
|
28977
28849
|
keyframes: e,
|
|
@@ -28982,7 +28854,7 @@ function Vq(e, t) {
|
|
|
28982
28854
|
let r = { done: !1, value: e[0] };
|
|
28983
28855
|
const i = [];
|
|
28984
28856
|
let o = 0;
|
|
28985
|
-
for (; !r.done && o <
|
|
28857
|
+
for (; !r.done && o < Tq; )
|
|
28986
28858
|
r = n.sample(o), i.push(r.value), o += Rh;
|
|
28987
28859
|
return {
|
|
28988
28860
|
times: void 0,
|
|
@@ -28991,31 +28863,31 @@ function Vq(e, t) {
|
|
|
28991
28863
|
ease: "linear"
|
|
28992
28864
|
};
|
|
28993
28865
|
}
|
|
28994
|
-
const
|
|
28995
|
-
anticipate:
|
|
28996
|
-
backInOut:
|
|
28997
|
-
circInOut:
|
|
28866
|
+
const d_ = {
|
|
28867
|
+
anticipate: j6,
|
|
28868
|
+
backInOut: N6,
|
|
28869
|
+
circInOut: U6
|
|
28998
28870
|
};
|
|
28999
|
-
function
|
|
29000
|
-
return e in
|
|
28871
|
+
function _q(e) {
|
|
28872
|
+
return e in d_;
|
|
29001
28873
|
}
|
|
29002
|
-
let
|
|
28874
|
+
let gw = class extends i_ {
|
|
29003
28875
|
constructor(t) {
|
|
29004
28876
|
super(t);
|
|
29005
28877
|
const { name: n, motionValue: r, element: i, keyframes: o } = this.options;
|
|
29006
|
-
this.resolver = new
|
|
28878
|
+
this.resolver = new r_(o, (a, u) => this.onKeyframesResolved(a, u), n, r, i), this.resolver.scheduleResolve();
|
|
29007
28879
|
}
|
|
29008
28880
|
initPlayback(t, n) {
|
|
29009
28881
|
var r;
|
|
29010
28882
|
let { duration: i = 300, times: o, ease: a, type: u, motionValue: c, name: d, startTime: f } = this.options;
|
|
29011
28883
|
if (!(!((r = c.owner) === null || r === void 0) && r.current))
|
|
29012
28884
|
return !1;
|
|
29013
|
-
if (typeof a == "string" && Ah() &&
|
|
29014
|
-
const { onComplete: m, onUpdate: g, motionValue: v, element: b, ...E } = this.options, $ =
|
|
28885
|
+
if (typeof a == "string" && Ah() && _q(a) && (a = d_[a]), Aq(this.options)) {
|
|
28886
|
+
const { onComplete: m, onUpdate: g, motionValue: v, element: b, ...E } = this.options, $ = Pq(t, E);
|
|
29015
28887
|
t = $.keyframes, t.length === 1 && (t[1] = t[0]), i = $.duration, o = $.times, a = $.ease, u = "keyframes";
|
|
29016
28888
|
}
|
|
29017
|
-
const h =
|
|
29018
|
-
return h.startTime = f ?? this.calcStartTime(), this.pendingTimeline ? (
|
|
28889
|
+
const h = Cq(c.owner.current, d, t, { ...this.options, duration: i, times: o, ease: a });
|
|
28890
|
+
return h.startTime = f ?? this.calcStartTime(), this.pendingTimeline ? (Xx(h, this.pendingTimeline), this.pendingTimeline = void 0) : h.onfinish = () => {
|
|
29019
28891
|
const { onComplete: m } = this.options;
|
|
29020
28892
|
c.set(Pp(t, this.options, n)), m && m(), this.cancel(), this.resolveFinishedPromise();
|
|
29021
28893
|
}, {
|
|
@@ -29088,7 +28960,7 @@ let Cw = class extends a_ {
|
|
|
29088
28960
|
if (!n)
|
|
29089
28961
|
return Rr;
|
|
29090
28962
|
const { animation: r } = n;
|
|
29091
|
-
|
|
28963
|
+
Xx(r, t);
|
|
29092
28964
|
}
|
|
29093
28965
|
return Rr;
|
|
29094
28966
|
}
|
|
@@ -29143,32 +29015,32 @@ let Cw = class extends a_ {
|
|
|
29143
29015
|
}
|
|
29144
29016
|
static supports(t) {
|
|
29145
29017
|
const { motionValue: n, name: r, repeatDelay: i, repeatType: o, damping: a, type: u } = t;
|
|
29146
|
-
return
|
|
29018
|
+
return Sq() && r && Eq.has(r) && n && n.owner && n.owner.current instanceof HTMLElement && /**
|
|
29147
29019
|
* If we're outputting values to onUpdate then we can't use WAAPI as there's
|
|
29148
29020
|
* no way to read the value from WAAPI every frame.
|
|
29149
29021
|
*/
|
|
29150
29022
|
!n.owner.getProps().onUpdate && !i && o !== "mirror" && a !== 0 && u !== "inertia";
|
|
29151
29023
|
}
|
|
29152
29024
|
};
|
|
29153
|
-
const
|
|
29025
|
+
const Rq = {
|
|
29154
29026
|
type: "spring",
|
|
29155
29027
|
stiffness: 500,
|
|
29156
29028
|
damping: 25,
|
|
29157
29029
|
restSpeed: 10
|
|
29158
|
-
},
|
|
29030
|
+
}, Oq = (e) => ({
|
|
29159
29031
|
type: "spring",
|
|
29160
29032
|
stiffness: 550,
|
|
29161
29033
|
damping: e === 0 ? 2 * Math.sqrt(550) : 30,
|
|
29162
29034
|
restSpeed: 10
|
|
29163
|
-
}),
|
|
29035
|
+
}), Fq = {
|
|
29164
29036
|
type: "keyframes",
|
|
29165
29037
|
duration: 0.8
|
|
29166
|
-
},
|
|
29038
|
+
}, Mq = {
|
|
29167
29039
|
type: "keyframes",
|
|
29168
29040
|
ease: [0.25, 0.1, 0.35, 1],
|
|
29169
29041
|
duration: 0.3
|
|
29170
|
-
},
|
|
29171
|
-
function
|
|
29042
|
+
}, kq = (e, { keyframes: t }) => t.length > 2 ? Fq : ws.has(e) ? e.startsWith("scale") ? Oq(t[1]) : Rq : Mq;
|
|
29043
|
+
function Bq({ when: e, delay: t, delayChildren: n, staggerChildren: r, staggerDirection: i, repeat: o, repeatType: a, repeatDelay: u, from: c, elapsed: d, ...f }) {
|
|
29172
29044
|
return !!Object.keys(f).length;
|
|
29173
29045
|
}
|
|
29174
29046
|
const N0 = (e, t, n, r = {}, i, o) => (a) => {
|
|
@@ -29191,9 +29063,9 @@ const N0 = (e, t, n, r = {}, i, o) => (a) => {
|
|
|
29191
29063
|
motionValue: t,
|
|
29192
29064
|
element: o ? void 0 : i
|
|
29193
29065
|
};
|
|
29194
|
-
|
|
29066
|
+
Bq(u) || (f = {
|
|
29195
29067
|
...f,
|
|
29196
|
-
...
|
|
29068
|
+
...kq(e, f)
|
|
29197
29069
|
}), f.duration && (f.duration = eo(f.duration)), f.repeatDelay && (f.repeatDelay = eo(f.repeatDelay)), f.from !== void 0 && (f.keyframes[0] = f.from);
|
|
29198
29070
|
let h = !1;
|
|
29199
29071
|
if ((f.type === !1 || f.duration === 0 && !f.repeatDelay) && (f.duration = 0, f.delay === 0 && (h = !0)), h && !o && t.get() !== void 0) {
|
|
@@ -29201,22 +29073,22 @@ const N0 = (e, t, n, r = {}, i, o) => (a) => {
|
|
|
29201
29073
|
if (m !== void 0)
|
|
29202
29074
|
return Gt.update(() => {
|
|
29203
29075
|
f.onUpdate(m), f.onComplete();
|
|
29204
|
-
}), new
|
|
29076
|
+
}), new tG([]);
|
|
29205
29077
|
}
|
|
29206
|
-
return !o &&
|
|
29078
|
+
return !o && gw.supports(f) ? new gw(f) : new V0(f);
|
|
29207
29079
|
};
|
|
29208
|
-
function
|
|
29080
|
+
function Iq({ protectedKeys: e, needsAnimating: t }, n) {
|
|
29209
29081
|
const r = e.hasOwnProperty(n) && t[n] !== !0;
|
|
29210
29082
|
return t[n] = !1, r;
|
|
29211
29083
|
}
|
|
29212
|
-
function
|
|
29084
|
+
function f_(e, t, { delay: n = 0, transitionOverride: r, type: i } = {}) {
|
|
29213
29085
|
var o;
|
|
29214
29086
|
let { transition: a = e.getDefaultTransition(), transitionEnd: u, ...c } = t;
|
|
29215
29087
|
r && (a = r);
|
|
29216
29088
|
const d = [], f = i && e.animationState && e.animationState.getState()[i];
|
|
29217
29089
|
for (const h in c) {
|
|
29218
29090
|
const m = e.getValue(h, (o = e.latestValues[h]) !== null && o !== void 0 ? o : null), g = c[h];
|
|
29219
|
-
if (g === void 0 || f &&
|
|
29091
|
+
if (g === void 0 || f && Iq(f, h))
|
|
29220
29092
|
continue;
|
|
29221
29093
|
const v = {
|
|
29222
29094
|
delay: n,
|
|
@@ -29224,19 +29096,19 @@ function p_(e, t, { delay: n = 0, transitionOverride: r, type: i } = {}) {
|
|
|
29224
29096
|
};
|
|
29225
29097
|
let b = !1;
|
|
29226
29098
|
if (window.MotionHandoffAnimation) {
|
|
29227
|
-
const $ =
|
|
29099
|
+
const $ = k6(e);
|
|
29228
29100
|
if ($) {
|
|
29229
29101
|
const y = window.MotionHandoffAnimation($, h, Gt);
|
|
29230
29102
|
y !== null && (v.startTime = y, b = !0);
|
|
29231
29103
|
}
|
|
29232
29104
|
}
|
|
29233
|
-
$v(e, h), m.start(N0(h, m, g, e.shouldReduceMotion &&
|
|
29105
|
+
$v(e, h), m.start(N0(h, m, g, e.shouldReduceMotion && F6.has(h) ? { type: !1 } : v, e, b));
|
|
29234
29106
|
const E = m.animation;
|
|
29235
29107
|
E && d.push(E);
|
|
29236
29108
|
}
|
|
29237
29109
|
return u && Promise.all(d).then(() => {
|
|
29238
29110
|
Gt.update(() => {
|
|
29239
|
-
u &&
|
|
29111
|
+
u && gG(e, u);
|
|
29240
29112
|
});
|
|
29241
29113
|
}), d;
|
|
29242
29114
|
}
|
|
@@ -29245,9 +29117,9 @@ function Tv(e, t, n = {}) {
|
|
|
29245
29117
|
const i = Ap(e, t, n.type === "exit" ? (r = e.presenceContext) === null || r === void 0 ? void 0 : r.custom : void 0);
|
|
29246
29118
|
let { transition: o = e.getDefaultTransition() || {} } = i || {};
|
|
29247
29119
|
n.transitionOverride && (o = n.transitionOverride);
|
|
29248
|
-
const a = i ? () => Promise.all(
|
|
29120
|
+
const a = i ? () => Promise.all(f_(e, i, n)) : () => Promise.resolve(), u = e.variantChildren && e.variantChildren.size ? (d = 0) => {
|
|
29249
29121
|
const { delayChildren: f = 0, staggerChildren: h, staggerDirection: m } = o;
|
|
29250
|
-
return
|
|
29122
|
+
return Lq(e, t, f + d, h, m, n);
|
|
29251
29123
|
} : () => Promise.resolve(), { when: c } = o;
|
|
29252
29124
|
if (c) {
|
|
29253
29125
|
const [d, f] = c === "beforeChildren" ? [a, u] : [u, a];
|
|
@@ -29255,19 +29127,19 @@ function Tv(e, t, n = {}) {
|
|
|
29255
29127
|
} else
|
|
29256
29128
|
return Promise.all([a(), u(n.delay)]);
|
|
29257
29129
|
}
|
|
29258
|
-
function
|
|
29130
|
+
function Lq(e, t, n = 0, r = 0, i = 1, o) {
|
|
29259
29131
|
const a = [], u = (e.variantChildren.size - 1) * r, c = i === 1 ? (d = 0) => d * r : (d = 0) => u - d * r;
|
|
29260
|
-
return Array.from(e.variantChildren).sort(
|
|
29132
|
+
return Array.from(e.variantChildren).sort(Vq).forEach((d, f) => {
|
|
29261
29133
|
d.notify("AnimationStart", t), a.push(Tv(d, t, {
|
|
29262
29134
|
...o,
|
|
29263
29135
|
delay: n + c(f)
|
|
29264
29136
|
}).then(() => d.notify("AnimationComplete", t)));
|
|
29265
29137
|
}), Promise.all(a);
|
|
29266
29138
|
}
|
|
29267
|
-
function
|
|
29139
|
+
function Vq(e, t) {
|
|
29268
29140
|
return e.sortNodePosition(t);
|
|
29269
29141
|
}
|
|
29270
|
-
function
|
|
29142
|
+
function Nq(e, t, n = {}) {
|
|
29271
29143
|
e.notify("AnimationStart", t);
|
|
29272
29144
|
let r;
|
|
29273
29145
|
if (Array.isArray(t)) {
|
|
@@ -29277,33 +29149,33 @@ function Zq(e, t, n = {}) {
|
|
|
29277
29149
|
r = Tv(e, t, n);
|
|
29278
29150
|
else {
|
|
29279
29151
|
const i = typeof t == "function" ? Ap(e, t, n.custom) : t;
|
|
29280
|
-
r = Promise.all(
|
|
29152
|
+
r = Promise.all(f_(e, i, n));
|
|
29281
29153
|
}
|
|
29282
29154
|
return r.then(() => {
|
|
29283
29155
|
e.notify("AnimationComplete", t);
|
|
29284
29156
|
});
|
|
29285
29157
|
}
|
|
29286
|
-
const
|
|
29287
|
-
function
|
|
29158
|
+
const jq = h0.length;
|
|
29159
|
+
function h_(e) {
|
|
29288
29160
|
if (!e)
|
|
29289
29161
|
return;
|
|
29290
29162
|
if (!e.isControllingVariants) {
|
|
29291
|
-
const n = e.parent ?
|
|
29163
|
+
const n = e.parent ? h_(e.parent) || {} : {};
|
|
29292
29164
|
return e.props.initial !== void 0 && (n.initial = e.props.initial), n;
|
|
29293
29165
|
}
|
|
29294
29166
|
const t = {};
|
|
29295
|
-
for (let n = 0; n <
|
|
29167
|
+
for (let n = 0; n < jq; n++) {
|
|
29296
29168
|
const r = h0[n], i = e.props[r];
|
|
29297
29169
|
(Ac(i) || i === !1) && (t[r] = i);
|
|
29298
29170
|
}
|
|
29299
29171
|
return t;
|
|
29300
29172
|
}
|
|
29301
|
-
const
|
|
29302
|
-
function
|
|
29303
|
-
return (t) => Promise.all(t.map(({ animation: n, options: r }) =>
|
|
29173
|
+
const Kq = [...f0].reverse(), Uq = f0.length;
|
|
29174
|
+
function zq(e) {
|
|
29175
|
+
return (t) => Promise.all(t.map(({ animation: n, options: r }) => Nq(e, n, r)));
|
|
29304
29176
|
}
|
|
29305
|
-
function
|
|
29306
|
-
let t =
|
|
29177
|
+
function Wq(e) {
|
|
29178
|
+
let t = zq(e), n = yw(), r = !0;
|
|
29307
29179
|
const i = (c) => (d, f) => {
|
|
29308
29180
|
var h;
|
|
29309
29181
|
const m = Ap(e, f, c === "exit" ? (h = e.presenceContext) === null || h === void 0 ? void 0 : h.custom : void 0);
|
|
@@ -29317,10 +29189,10 @@ function tY(e) {
|
|
|
29317
29189
|
t = c(e);
|
|
29318
29190
|
}
|
|
29319
29191
|
function a(c) {
|
|
29320
|
-
const { props: d } = e, f =
|
|
29192
|
+
const { props: d } = e, f = h_(e.parent) || {}, h = [], m = /* @__PURE__ */ new Set();
|
|
29321
29193
|
let g = {}, v = 1 / 0;
|
|
29322
|
-
for (let E = 0; E <
|
|
29323
|
-
const $ =
|
|
29194
|
+
for (let E = 0; E < Uq; E++) {
|
|
29195
|
+
const $ = Kq[E], y = n[$], w = d[$] !== void 0 ? d[$] : f[$], A = Ac(w), D = $ === c ? y.isActive : null;
|
|
29324
29196
|
D === !1 && (v = E);
|
|
29325
29197
|
let S = w === f[$] && w !== d[$] && A;
|
|
29326
29198
|
if (S && r && e.manuallyAnimateOnMount && (S = !1), y.protectedKeys = { ...g }, // If it isn't active and hasn't *just* been set as inactive
|
|
@@ -29328,7 +29200,7 @@ function tY(e) {
|
|
|
29328
29200
|
!w && !y.prevProp || // Or if the prop doesn't define an animation
|
|
29329
29201
|
Sp(w) || typeof w == "boolean")
|
|
29330
29202
|
continue;
|
|
29331
|
-
const M =
|
|
29203
|
+
const M = Hq(y.prevProp, w);
|
|
29332
29204
|
let C = M || // If we're making this variant active, we want to always make it active
|
|
29333
29205
|
$ === c && y.isActive && !S && A || // If we removed a higher-priority variant (i is in reverse order)
|
|
29334
29206
|
E > v && A, K = !1;
|
|
@@ -29348,7 +29220,7 @@ function tY(e) {
|
|
|
29348
29220
|
if (g.hasOwnProperty(P))
|
|
29349
29221
|
continue;
|
|
29350
29222
|
let L = !1;
|
|
29351
|
-
yv(O) && yv(q) ? L = !
|
|
29223
|
+
yv(O) && yv(q) ? L = !C6(O, q) : L = O !== q, L ? O != null ? z(P) : m.add(P) : O !== void 0 && m.has(P) ? z(P) : y.protectedKeys[P] = !0;
|
|
29352
29224
|
}
|
|
29353
29225
|
y.prevProp = w, y.prevResolvedValues = F, y.isActive && (g = { ...g, ...F }), r && e.blockInitialAnimation && (C = !1), C && (!(S && M) || K) && h.push(...R.map((P) => ({
|
|
29354
29226
|
animation: P,
|
|
@@ -29384,12 +29256,12 @@ function tY(e) {
|
|
|
29384
29256
|
setAnimateFunction: o,
|
|
29385
29257
|
getState: () => n,
|
|
29386
29258
|
reset: () => {
|
|
29387
|
-
n =
|
|
29259
|
+
n = yw(), r = !0;
|
|
29388
29260
|
}
|
|
29389
29261
|
};
|
|
29390
29262
|
}
|
|
29391
|
-
function
|
|
29392
|
-
return typeof t == "string" ? t !== e : Array.isArray(t) ? !
|
|
29263
|
+
function Hq(e, t) {
|
|
29264
|
+
return typeof t == "string" ? t !== e : Array.isArray(t) ? !C6(t, e) : !1;
|
|
29393
29265
|
}
|
|
29394
29266
|
function Na(e = !1) {
|
|
29395
29267
|
return {
|
|
@@ -29399,7 +29271,7 @@ function Na(e = !1) {
|
|
|
29399
29271
|
prevResolvedValues: {}
|
|
29400
29272
|
};
|
|
29401
29273
|
}
|
|
29402
|
-
function
|
|
29274
|
+
function yw() {
|
|
29403
29275
|
return {
|
|
29404
29276
|
animate: Na(!0),
|
|
29405
29277
|
whileInView: Na(),
|
|
@@ -29416,14 +29288,14 @@ let Da = class {
|
|
|
29416
29288
|
}
|
|
29417
29289
|
update() {
|
|
29418
29290
|
}
|
|
29419
|
-
},
|
|
29291
|
+
}, Gq = class extends Da {
|
|
29420
29292
|
/**
|
|
29421
29293
|
* We dynamically generate the AnimationState manager as it contains a reference
|
|
29422
29294
|
* to the underlying animation library. We only want to load that if we load this,
|
|
29423
29295
|
* so people can optionally code split it out using the `m` component.
|
|
29424
29296
|
*/
|
|
29425
29297
|
constructor(t) {
|
|
29426
|
-
super(t), t.animationState || (t.animationState =
|
|
29298
|
+
super(t), t.animationState || (t.animationState = Wq(t));
|
|
29427
29299
|
}
|
|
29428
29300
|
updateAnimationControlsSubscription() {
|
|
29429
29301
|
const { animate: t } = this.node.getProps();
|
|
@@ -29443,9 +29315,9 @@ let Da = class {
|
|
|
29443
29315
|
var t;
|
|
29444
29316
|
this.node.animationState.reset(), (t = this.unmountControls) === null || t === void 0 || t.call(this);
|
|
29445
29317
|
}
|
|
29446
|
-
},
|
|
29318
|
+
}, qq = 0, Yq = class extends Da {
|
|
29447
29319
|
constructor() {
|
|
29448
|
-
super(...arguments), this.id =
|
|
29320
|
+
super(...arguments), this.id = qq++;
|
|
29449
29321
|
}
|
|
29450
29322
|
update() {
|
|
29451
29323
|
if (!this.node.presenceContext)
|
|
@@ -29463,12 +29335,12 @@ let Da = class {
|
|
|
29463
29335
|
unmount() {
|
|
29464
29336
|
}
|
|
29465
29337
|
};
|
|
29466
|
-
const
|
|
29338
|
+
const Zq = {
|
|
29467
29339
|
animation: {
|
|
29468
|
-
Feature:
|
|
29340
|
+
Feature: Gq
|
|
29469
29341
|
},
|
|
29470
29342
|
exit: {
|
|
29471
|
-
Feature:
|
|
29343
|
+
Feature: Yq
|
|
29472
29344
|
}
|
|
29473
29345
|
};
|
|
29474
29346
|
function Rc(e, t, n, r = { passive: !0 }) {
|
|
@@ -29482,21 +29354,21 @@ function od(e) {
|
|
|
29482
29354
|
}
|
|
29483
29355
|
};
|
|
29484
29356
|
}
|
|
29485
|
-
const
|
|
29357
|
+
const Jq = (e) => (t) => A0(t) && e(t, od(t));
|
|
29486
29358
|
function fc(e, t, n, r) {
|
|
29487
|
-
return Rc(e, t,
|
|
29359
|
+
return Rc(e, t, Jq(n), r);
|
|
29488
29360
|
}
|
|
29489
|
-
const
|
|
29490
|
-
function
|
|
29491
|
-
const n =
|
|
29361
|
+
const vw = (e, t) => Math.abs(e - t);
|
|
29362
|
+
function Xq(e, t) {
|
|
29363
|
+
const n = vw(e.x, t.x), r = vw(e.y, t.y);
|
|
29492
29364
|
return Math.sqrt(n ** 2 + r ** 2);
|
|
29493
29365
|
}
|
|
29494
|
-
class
|
|
29366
|
+
class p_ {
|
|
29495
29367
|
constructor(t, n, { transformPagePoint: r, contextWindow: i, dragSnapToOrigin: o = !1 } = {}) {
|
|
29496
29368
|
if (this.startEvent = null, this.lastMoveEvent = null, this.lastMoveEventInfo = null, this.handlers = {}, this.contextWindow = window, this.updatePoint = () => {
|
|
29497
29369
|
if (!(this.lastMoveEvent && this.lastMoveEventInfo))
|
|
29498
29370
|
return;
|
|
29499
|
-
const h =
|
|
29371
|
+
const h = Ig(this.lastMoveEventInfo, this.history), m = this.startEvent !== null, g = Xq(h.offset, { x: 0, y: 0 }) >= 3;
|
|
29500
29372
|
if (!m && !g)
|
|
29501
29373
|
return;
|
|
29502
29374
|
const { point: v } = h, { timestamp: b } = Kn;
|
|
@@ -29504,21 +29376,21 @@ class g_ {
|
|
|
29504
29376
|
const { onStart: E, onMove: $ } = this.handlers;
|
|
29505
29377
|
m || (E && E(this.lastMoveEvent, h), this.startEvent = this.lastMoveEvent), $ && $(this.lastMoveEvent, h);
|
|
29506
29378
|
}, this.handlePointerMove = (h, m) => {
|
|
29507
|
-
this.lastMoveEvent = h, this.lastMoveEventInfo =
|
|
29379
|
+
this.lastMoveEvent = h, this.lastMoveEventInfo = Bg(m, this.transformPagePoint), Gt.update(this.updatePoint, !0);
|
|
29508
29380
|
}, this.handlePointerUp = (h, m) => {
|
|
29509
29381
|
this.end();
|
|
29510
29382
|
const { onEnd: g, onSessionEnd: v, resumeAnimation: b } = this.handlers;
|
|
29511
29383
|
if (this.dragSnapToOrigin && b && b(), !(this.lastMoveEvent && this.lastMoveEventInfo))
|
|
29512
29384
|
return;
|
|
29513
|
-
const E =
|
|
29385
|
+
const E = Ig(h.type === "pointercancel" ? this.lastMoveEventInfo : Bg(m, this.transformPagePoint), this.history);
|
|
29514
29386
|
this.startEvent && g && g(h, E), v && v(h, E);
|
|
29515
29387
|
}, !A0(t))
|
|
29516
29388
|
return;
|
|
29517
29389
|
this.dragSnapToOrigin = o, this.handlers = n, this.transformPagePoint = r, this.contextWindow = i || window;
|
|
29518
|
-
const a = od(t), u =
|
|
29390
|
+
const a = od(t), u = Bg(a, this.transformPagePoint), { point: c } = u, { timestamp: d } = Kn;
|
|
29519
29391
|
this.history = [{ ...c, timestamp: d }];
|
|
29520
29392
|
const { onSessionStart: f } = n;
|
|
29521
|
-
f && f(t,
|
|
29393
|
+
f && f(t, Ig(u, this.history)), this.removeListeners = id(fc(this.contextWindow, "pointermove", this.handlePointerMove), fc(this.contextWindow, "pointerup", this.handlePointerUp), fc(this.contextWindow, "pointercancel", this.handlePointerUp));
|
|
29522
29394
|
}
|
|
29523
29395
|
updateHandlers(t) {
|
|
29524
29396
|
this.handlers = t;
|
|
@@ -29527,31 +29399,31 @@ class g_ {
|
|
|
29527
29399
|
this.removeListeners && this.removeListeners(), Oo(this.updatePoint);
|
|
29528
29400
|
}
|
|
29529
29401
|
}
|
|
29530
|
-
function
|
|
29402
|
+
function Bg(e, t) {
|
|
29531
29403
|
return t ? { point: t(e.point) } : e;
|
|
29532
29404
|
}
|
|
29533
|
-
function
|
|
29405
|
+
function bw(e, t) {
|
|
29534
29406
|
return { x: e.x - t.x, y: e.y - t.y };
|
|
29535
29407
|
}
|
|
29536
|
-
function
|
|
29408
|
+
function Ig({ point: e }, t) {
|
|
29537
29409
|
return {
|
|
29538
29410
|
point: e,
|
|
29539
|
-
delta:
|
|
29540
|
-
offset:
|
|
29541
|
-
velocity:
|
|
29411
|
+
delta: bw(e, m_(t)),
|
|
29412
|
+
offset: bw(e, Qq(t)),
|
|
29413
|
+
velocity: eY(t, 0.1)
|
|
29542
29414
|
};
|
|
29543
29415
|
}
|
|
29544
|
-
function
|
|
29416
|
+
function Qq(e) {
|
|
29545
29417
|
return e[0];
|
|
29546
29418
|
}
|
|
29547
|
-
function
|
|
29419
|
+
function m_(e) {
|
|
29548
29420
|
return e[e.length - 1];
|
|
29549
29421
|
}
|
|
29550
|
-
function
|
|
29422
|
+
function eY(e, t) {
|
|
29551
29423
|
if (e.length < 2)
|
|
29552
29424
|
return { x: 0, y: 0 };
|
|
29553
29425
|
let n = e.length - 1, r = null;
|
|
29554
|
-
const i =
|
|
29426
|
+
const i = m_(e);
|
|
29555
29427
|
for (; n >= 0 && (r = e[n], !(i.timestamp - r.timestamp > eo(t))); )
|
|
29556
29428
|
n--;
|
|
29557
29429
|
if (!r)
|
|
@@ -29565,106 +29437,106 @@ function cY(e, t) {
|
|
|
29565
29437
|
};
|
|
29566
29438
|
return a.x === 1 / 0 && (a.x = 0), a.y === 1 / 0 && (a.y = 0), a;
|
|
29567
29439
|
}
|
|
29568
|
-
const
|
|
29440
|
+
const g_ = 1e-4, tY = 1 - g_, nY = 1 + g_, y_ = 0.01, rY = 0 - y_, iY = 0 + y_;
|
|
29569
29441
|
function Kr(e) {
|
|
29570
29442
|
return e.max - e.min;
|
|
29571
29443
|
}
|
|
29572
|
-
function
|
|
29444
|
+
function oY(e, t, n) {
|
|
29573
29445
|
return Math.abs(e - t) <= n;
|
|
29574
29446
|
}
|
|
29575
|
-
function
|
|
29576
|
-
e.origin = r, e.originPoint = en(t.min, t.max, e.origin), e.scale = Kr(n) / Kr(t), e.translate = en(n.min, n.max, e.origin) - e.originPoint, (e.scale >=
|
|
29447
|
+
function $w(e, t, n, r = 0.5) {
|
|
29448
|
+
e.origin = r, e.originPoint = en(t.min, t.max, e.origin), e.scale = Kr(n) / Kr(t), e.translate = en(n.min, n.max, e.origin) - e.originPoint, (e.scale >= tY && e.scale <= nY || isNaN(e.scale)) && (e.scale = 1), (e.translate >= rY && e.translate <= iY || isNaN(e.translate)) && (e.translate = 0);
|
|
29577
29449
|
}
|
|
29578
29450
|
function hc(e, t, n, r) {
|
|
29579
|
-
|
|
29451
|
+
$w(e.x, t.x, n.x, r ? r.originX : void 0), $w(e.y, t.y, n.y, r ? r.originY : void 0);
|
|
29580
29452
|
}
|
|
29581
|
-
function
|
|
29453
|
+
function xw(e, t, n) {
|
|
29582
29454
|
e.min = n.min + t.min, e.max = e.min + Kr(t);
|
|
29583
29455
|
}
|
|
29584
|
-
function
|
|
29585
|
-
|
|
29456
|
+
function aY(e, t, n) {
|
|
29457
|
+
xw(e.x, t.x, n.x), xw(e.y, t.y, n.y);
|
|
29586
29458
|
}
|
|
29587
|
-
function
|
|
29459
|
+
function ww(e, t, n) {
|
|
29588
29460
|
e.min = t.min - n.min, e.max = e.min + Kr(t);
|
|
29589
29461
|
}
|
|
29590
29462
|
function pc(e, t, n) {
|
|
29591
|
-
|
|
29463
|
+
ww(e.x, t.x, n.x), ww(e.y, t.y, n.y);
|
|
29592
29464
|
}
|
|
29593
|
-
function
|
|
29465
|
+
function sY(e, { min: t, max: n }, r) {
|
|
29594
29466
|
return t !== void 0 && e < t ? e = r ? en(t, e, r.min) : Math.max(e, t) : n !== void 0 && e > n && (e = r ? en(n, e, r.max) : Math.min(e, n)), e;
|
|
29595
29467
|
}
|
|
29596
|
-
function
|
|
29468
|
+
function Dw(e, t, n) {
|
|
29597
29469
|
return {
|
|
29598
29470
|
min: t !== void 0 ? e.min + t : void 0,
|
|
29599
29471
|
max: n !== void 0 ? e.max + n - (e.max - e.min) : void 0
|
|
29600
29472
|
};
|
|
29601
29473
|
}
|
|
29602
|
-
function
|
|
29474
|
+
function uY(e, { top: t, left: n, bottom: r, right: i }) {
|
|
29603
29475
|
return {
|
|
29604
|
-
x:
|
|
29605
|
-
y:
|
|
29476
|
+
x: Dw(e.x, n, i),
|
|
29477
|
+
y: Dw(e.y, t, r)
|
|
29606
29478
|
};
|
|
29607
29479
|
}
|
|
29608
|
-
function
|
|
29480
|
+
function Ew(e, t) {
|
|
29609
29481
|
let n = t.min - e.min, r = t.max - e.max;
|
|
29610
29482
|
return t.max - t.min < e.max - e.min && ([n, r] = [r, n]), { min: n, max: r };
|
|
29611
29483
|
}
|
|
29612
|
-
function
|
|
29484
|
+
function lY(e, t) {
|
|
29613
29485
|
return {
|
|
29614
|
-
x:
|
|
29615
|
-
y:
|
|
29486
|
+
x: Ew(e.x, t.x),
|
|
29487
|
+
y: Ew(e.y, t.y)
|
|
29616
29488
|
};
|
|
29617
29489
|
}
|
|
29618
|
-
function
|
|
29490
|
+
function cY(e, t) {
|
|
29619
29491
|
let n = 0.5;
|
|
29620
29492
|
const r = Kr(e), i = Kr(t);
|
|
29621
29493
|
return i > r ? n = Bu(t.min, t.max - r, e.min) : r > i && (n = Bu(e.min, e.max - i, t.min)), Fo(0, 1, n);
|
|
29622
29494
|
}
|
|
29623
|
-
function
|
|
29495
|
+
function dY(e, t) {
|
|
29624
29496
|
const n = {};
|
|
29625
29497
|
return t.min !== void 0 && (n.min = t.min - e.min), t.max !== void 0 && (n.max = t.max - e.min), n;
|
|
29626
29498
|
}
|
|
29627
29499
|
const Av = 0.35;
|
|
29628
|
-
function
|
|
29500
|
+
function fY(e = Av) {
|
|
29629
29501
|
return e === !1 ? e = 0 : e === !0 && (e = Av), {
|
|
29630
|
-
x:
|
|
29631
|
-
y:
|
|
29502
|
+
x: Cw(e, "left", "right"),
|
|
29503
|
+
y: Cw(e, "top", "bottom")
|
|
29632
29504
|
};
|
|
29633
29505
|
}
|
|
29634
|
-
function
|
|
29506
|
+
function Cw(e, t, n) {
|
|
29635
29507
|
return {
|
|
29636
|
-
min:
|
|
29637
|
-
max:
|
|
29508
|
+
min: Sw(e, t),
|
|
29509
|
+
max: Sw(e, n)
|
|
29638
29510
|
};
|
|
29639
29511
|
}
|
|
29640
|
-
function
|
|
29512
|
+
function Sw(e, t) {
|
|
29641
29513
|
return typeof e == "number" ? e : e[t] || 0;
|
|
29642
29514
|
}
|
|
29643
|
-
const
|
|
29515
|
+
const Tw = () => ({
|
|
29644
29516
|
translate: 0,
|
|
29645
29517
|
scale: 1,
|
|
29646
29518
|
origin: 0,
|
|
29647
29519
|
originPoint: 0
|
|
29648
29520
|
}), du = () => ({
|
|
29649
|
-
x:
|
|
29650
|
-
y:
|
|
29651
|
-
}),
|
|
29652
|
-
x:
|
|
29653
|
-
y:
|
|
29521
|
+
x: Tw(),
|
|
29522
|
+
y: Tw()
|
|
29523
|
+
}), Aw = () => ({ min: 0, max: 0 }), gn = () => ({
|
|
29524
|
+
x: Aw(),
|
|
29525
|
+
y: Aw()
|
|
29654
29526
|
});
|
|
29655
29527
|
function ai(e) {
|
|
29656
29528
|
return [e("x"), e("y")];
|
|
29657
29529
|
}
|
|
29658
|
-
function
|
|
29530
|
+
function v_({ top: e, left: t, right: n, bottom: r }) {
|
|
29659
29531
|
return {
|
|
29660
29532
|
x: { min: t, max: n },
|
|
29661
29533
|
y: { min: e, max: r }
|
|
29662
29534
|
};
|
|
29663
29535
|
}
|
|
29664
|
-
function
|
|
29536
|
+
function hY({ x: e, y: t }) {
|
|
29665
29537
|
return { top: t.min, right: e.max, bottom: t.max, left: e.min };
|
|
29666
29538
|
}
|
|
29667
|
-
function
|
|
29539
|
+
function pY(e, t) {
|
|
29668
29540
|
if (!t)
|
|
29669
29541
|
return e;
|
|
29670
29542
|
const n = t({ x: e.left, y: e.top }), r = t({ x: e.right, y: e.bottom });
|
|
@@ -29675,36 +29547,36 @@ function EY(e, t) {
|
|
|
29675
29547
|
right: r.x
|
|
29676
29548
|
};
|
|
29677
29549
|
}
|
|
29678
|
-
function
|
|
29550
|
+
function Lg(e) {
|
|
29679
29551
|
return e === void 0 || e === 1;
|
|
29680
29552
|
}
|
|
29681
29553
|
function Pv({ scale: e, scaleX: t, scaleY: n }) {
|
|
29682
|
-
return !
|
|
29554
|
+
return !Lg(e) || !Lg(t) || !Lg(n);
|
|
29683
29555
|
}
|
|
29684
29556
|
function Ka(e) {
|
|
29685
|
-
return Pv(e) ||
|
|
29557
|
+
return Pv(e) || b_(e) || e.z || e.rotate || e.rotateX || e.rotateY || e.skewX || e.skewY;
|
|
29686
29558
|
}
|
|
29687
|
-
function
|
|
29688
|
-
return
|
|
29559
|
+
function b_(e) {
|
|
29560
|
+
return Pw(e.x) || Pw(e.y);
|
|
29689
29561
|
}
|
|
29690
|
-
function
|
|
29562
|
+
function Pw(e) {
|
|
29691
29563
|
return e && e !== "0%";
|
|
29692
29564
|
}
|
|
29693
29565
|
function Oh(e, t, n) {
|
|
29694
29566
|
const r = e - n, i = t * r;
|
|
29695
29567
|
return n + i;
|
|
29696
29568
|
}
|
|
29697
|
-
function
|
|
29569
|
+
function _w(e, t, n, r, i) {
|
|
29698
29570
|
return i !== void 0 && (e = Oh(e, i, r)), Oh(e, n, r) + t;
|
|
29699
29571
|
}
|
|
29700
29572
|
function _v(e, t = 0, n = 1, r, i) {
|
|
29701
|
-
e.min =
|
|
29573
|
+
e.min = _w(e.min, t, n, r, i), e.max = _w(e.max, t, n, r, i);
|
|
29702
29574
|
}
|
|
29703
|
-
function
|
|
29575
|
+
function $_(e, { x: t, y: n }) {
|
|
29704
29576
|
_v(e.x, t.translate, t.scale, t.originPoint), _v(e.y, n.translate, n.scale, n.originPoint);
|
|
29705
29577
|
}
|
|
29706
|
-
const
|
|
29707
|
-
function
|
|
29578
|
+
const Rw = 0.999999999999, Ow = 1.0000000000001;
|
|
29579
|
+
function mY(e, t, n, r = !1) {
|
|
29708
29580
|
const i = n.length;
|
|
29709
29581
|
if (!i)
|
|
29710
29582
|
return;
|
|
@@ -29716,29 +29588,29 @@ function CY(e, t, n, r = !1) {
|
|
|
29716
29588
|
c && c.props.style && c.props.style.display === "contents" || (r && o.options.layoutScroll && o.scroll && o !== o.root && hu(e, {
|
|
29717
29589
|
x: -o.scroll.offset.x,
|
|
29718
29590
|
y: -o.scroll.offset.y
|
|
29719
|
-
}), a && (t.x *= a.x.scale, t.y *= a.y.scale,
|
|
29591
|
+
}), a && (t.x *= a.x.scale, t.y *= a.y.scale, $_(e, a)), r && Ka(o.latestValues) && hu(e, o.latestValues));
|
|
29720
29592
|
}
|
|
29721
|
-
t.x <
|
|
29593
|
+
t.x < Ow && t.x > Rw && (t.x = 1), t.y < Ow && t.y > Rw && (t.y = 1);
|
|
29722
29594
|
}
|
|
29723
29595
|
function fu(e, t) {
|
|
29724
29596
|
e.min = e.min + t, e.max = e.max + t;
|
|
29725
29597
|
}
|
|
29726
|
-
function
|
|
29598
|
+
function Fw(e, t, n, r, i = 0.5) {
|
|
29727
29599
|
const o = en(e.min, e.max, i);
|
|
29728
29600
|
_v(e, t, n, o, r);
|
|
29729
29601
|
}
|
|
29730
29602
|
function hu(e, t) {
|
|
29731
|
-
|
|
29603
|
+
Fw(e.x, t.x, t.scaleX, t.scale, t.originX), Fw(e.y, t.y, t.scaleY, t.scale, t.originY);
|
|
29732
29604
|
}
|
|
29733
|
-
function
|
|
29734
|
-
return
|
|
29605
|
+
function x_(e, t) {
|
|
29606
|
+
return v_(pY(e.getBoundingClientRect(), t));
|
|
29735
29607
|
}
|
|
29736
|
-
function
|
|
29737
|
-
const r =
|
|
29608
|
+
function gY(e, t, n) {
|
|
29609
|
+
const r = x_(e, n), { scroll: i } = t;
|
|
29738
29610
|
return i && (fu(r.x, i.offset.x), fu(r.y, i.offset.y)), r;
|
|
29739
29611
|
}
|
|
29740
|
-
const
|
|
29741
|
-
class
|
|
29612
|
+
const w_ = ({ current: e }) => e ? e.ownerDocument.defaultView : null, yY = /* @__PURE__ */ new WeakMap();
|
|
29613
|
+
class vY {
|
|
29742
29614
|
constructor(t) {
|
|
29743
29615
|
this.openDragLock = null, this.isDragging = !1, this.currentDirection = null, this.originPoint = { x: 0, y: 0 }, this.constraints = !1, this.hasMutatedConstraints = !1, this.elastic = gn(), this.visualElement = t;
|
|
29744
29616
|
}
|
|
@@ -29751,7 +29623,7 @@ class AY {
|
|
|
29751
29623
|
h ? this.pauseAnimation() : this.stopAnimation(), n && this.snapToCursor(od(f).point);
|
|
29752
29624
|
}, o = (f, h) => {
|
|
29753
29625
|
const { drag: m, dragPropagation: g, onDragStart: v } = this.getProps();
|
|
29754
|
-
if (m && !g && (this.openDragLock && this.openDragLock(), this.openDragLock =
|
|
29626
|
+
if (m && !g && (this.openDragLock && this.openDragLock(), this.openDragLock = cG(m), !this.openDragLock))
|
|
29755
29627
|
return;
|
|
29756
29628
|
this.isDragging = !0, this.currentDirection = null, this.resolveConstraints(), this.visualElement.projection && (this.visualElement.projection.isAnimationBlocked = !0, this.visualElement.projection.target = void 0), ai((E) => {
|
|
29757
29629
|
let $ = this.getAxisMotionValue(E).get() || 0;
|
|
@@ -29772,7 +29644,7 @@ class AY {
|
|
|
29772
29644
|
return;
|
|
29773
29645
|
const { offset: E } = h;
|
|
29774
29646
|
if (g && this.currentDirection === null) {
|
|
29775
|
-
this.currentDirection =
|
|
29647
|
+
this.currentDirection = bY(E), this.currentDirection !== null && v && v(this.currentDirection);
|
|
29776
29648
|
return;
|
|
29777
29649
|
}
|
|
29778
29650
|
this.updateAxis("x", h.point, E), this.updateAxis("y", h.point, E), this.visualElement.render(), b && b(f, h);
|
|
@@ -29780,7 +29652,7 @@ class AY {
|
|
|
29780
29652
|
var h;
|
|
29781
29653
|
return this.getAnimationState(f) === "paused" && ((h = this.getAxisMotionValue(f).animation) === null || h === void 0 ? void 0 : h.play());
|
|
29782
29654
|
}), { dragSnapToOrigin: d } = this.getProps();
|
|
29783
|
-
this.panSession = new
|
|
29655
|
+
this.panSession = new p_(t, {
|
|
29784
29656
|
onSessionStart: i,
|
|
29785
29657
|
onStart: o,
|
|
29786
29658
|
onMove: a,
|
|
@@ -29789,7 +29661,7 @@ class AY {
|
|
|
29789
29661
|
}, {
|
|
29790
29662
|
transformPagePoint: this.visualElement.getTransformPagePoint(),
|
|
29791
29663
|
dragSnapToOrigin: d,
|
|
29792
|
-
contextWindow:
|
|
29664
|
+
contextWindow: w_(this.visualElement)
|
|
29793
29665
|
});
|
|
29794
29666
|
}
|
|
29795
29667
|
stop(t, n) {
|
|
@@ -29814,13 +29686,13 @@ class AY {
|
|
|
29814
29686
|
return;
|
|
29815
29687
|
const o = this.getAxisMotionValue(t);
|
|
29816
29688
|
let a = this.originPoint[t] + r[t];
|
|
29817
|
-
this.constraints && this.constraints[t] && (a =
|
|
29689
|
+
this.constraints && this.constraints[t] && (a = sY(a, this.constraints[t], this.elastic[t])), o.set(a);
|
|
29818
29690
|
}
|
|
29819
29691
|
resolveConstraints() {
|
|
29820
29692
|
var t;
|
|
29821
29693
|
const { dragConstraints: n, dragElastic: r } = this.getProps(), i = this.visualElement.projection && !this.visualElement.projection.layout ? this.visualElement.projection.measure(!1) : (t = this.visualElement.projection) === null || t === void 0 ? void 0 : t.layout, o = this.constraints;
|
|
29822
|
-
n && lu(n) ? this.constraints || (this.constraints = this.resolveRefConstraints()) : n && i ? this.constraints =
|
|
29823
|
-
this.constraints !== !1 && this.getAxisMotionValue(a) && (this.constraints[a] =
|
|
29694
|
+
n && lu(n) ? this.constraints || (this.constraints = this.resolveRefConstraints()) : n && i ? this.constraints = uY(i.layoutBox, n) : this.constraints = !1, this.elastic = fY(r), o !== this.constraints && i && this.constraints && !this.hasMutatedConstraints && ai((a) => {
|
|
29695
|
+
this.constraints !== !1 && this.getAxisMotionValue(a) && (this.constraints[a] = dY(i.layoutBox[a], this.constraints[a]));
|
|
29824
29696
|
});
|
|
29825
29697
|
}
|
|
29826
29698
|
resolveRefConstraints() {
|
|
@@ -29832,11 +29704,11 @@ class AY {
|
|
|
29832
29704
|
const { projection: i } = this.visualElement;
|
|
29833
29705
|
if (!i || !i.layout)
|
|
29834
29706
|
return !1;
|
|
29835
|
-
const o =
|
|
29836
|
-
let a =
|
|
29707
|
+
const o = gY(r, i.root, this.visualElement.getTransformPagePoint());
|
|
29708
|
+
let a = lY(i.layout.layoutBox, o);
|
|
29837
29709
|
if (n) {
|
|
29838
|
-
const u = n(
|
|
29839
|
-
this.hasMutatedConstraints = !!u, u && (a =
|
|
29710
|
+
const u = n(hY(a));
|
|
29711
|
+
this.hasMutatedConstraints = !!u, u && (a = v_(u));
|
|
29840
29712
|
}
|
|
29841
29713
|
return a;
|
|
29842
29714
|
}
|
|
@@ -29917,7 +29789,7 @@ class AY {
|
|
|
29917
29789
|
const u = this.getAxisMotionValue(a);
|
|
29918
29790
|
if (u && this.constraints !== !1) {
|
|
29919
29791
|
const c = u.get();
|
|
29920
|
-
i[a] =
|
|
29792
|
+
i[a] = cY({ min: c, max: c }, this.constraints[a]);
|
|
29921
29793
|
}
|
|
29922
29794
|
});
|
|
29923
29795
|
const { transformTemplate: o } = this.visualElement.getProps();
|
|
@@ -29931,7 +29803,7 @@ class AY {
|
|
|
29931
29803
|
addListeners() {
|
|
29932
29804
|
if (!this.visualElement.current)
|
|
29933
29805
|
return;
|
|
29934
|
-
|
|
29806
|
+
yY.set(this.visualElement, this);
|
|
29935
29807
|
const t = this.visualElement.current, n = fc(t, "pointerdown", (c) => {
|
|
29936
29808
|
const { drag: d, dragListener: f = !0 } = this.getProps();
|
|
29937
29809
|
d && f && this.start(c);
|
|
@@ -29966,13 +29838,13 @@ class AY {
|
|
|
29966
29838
|
function Df(e, t, n) {
|
|
29967
29839
|
return (t === !0 || t === e) && (n === null || n === e);
|
|
29968
29840
|
}
|
|
29969
|
-
function
|
|
29841
|
+
function bY(e, t = 10) {
|
|
29970
29842
|
let n = null;
|
|
29971
29843
|
return Math.abs(e.y) > t ? n = "y" : Math.abs(e.x) > t && (n = "x"), n;
|
|
29972
29844
|
}
|
|
29973
|
-
class
|
|
29845
|
+
class $Y extends Da {
|
|
29974
29846
|
constructor(t) {
|
|
29975
|
-
super(t), this.removeGroupControls = Rr, this.removeListeners = Rr, this.controls = new
|
|
29847
|
+
super(t), this.removeGroupControls = Rr, this.removeListeners = Rr, this.controls = new vY(t);
|
|
29976
29848
|
}
|
|
29977
29849
|
mount() {
|
|
29978
29850
|
const { dragControls: t } = this.node.getProps();
|
|
@@ -29982,24 +29854,24 @@ class _Y extends Da {
|
|
|
29982
29854
|
this.removeGroupControls(), this.removeListeners();
|
|
29983
29855
|
}
|
|
29984
29856
|
}
|
|
29985
|
-
const
|
|
29857
|
+
const Mw = (e) => (t, n) => {
|
|
29986
29858
|
e && Gt.postRender(() => e(t, n));
|
|
29987
29859
|
};
|
|
29988
|
-
class
|
|
29860
|
+
class xY extends Da {
|
|
29989
29861
|
constructor() {
|
|
29990
29862
|
super(...arguments), this.removePointerDownListener = Rr;
|
|
29991
29863
|
}
|
|
29992
29864
|
onPointerDown(t) {
|
|
29993
|
-
this.session = new
|
|
29865
|
+
this.session = new p_(t, this.createPanHandlers(), {
|
|
29994
29866
|
transformPagePoint: this.node.getTransformPagePoint(),
|
|
29995
|
-
contextWindow:
|
|
29867
|
+
contextWindow: w_(this.node)
|
|
29996
29868
|
});
|
|
29997
29869
|
}
|
|
29998
29870
|
createPanHandlers() {
|
|
29999
29871
|
const { onPanSessionStart: t, onPanStart: n, onPan: r, onPanEnd: i } = this.node.getProps();
|
|
30000
29872
|
return {
|
|
30001
|
-
onSessionStart:
|
|
30002
|
-
onStart:
|
|
29873
|
+
onSessionStart: Mw(t),
|
|
29874
|
+
onStart: Mw(n),
|
|
30003
29875
|
onMove: r,
|
|
30004
29876
|
onEnd: (o, a) => {
|
|
30005
29877
|
delete this.session, i && Gt.postRender(() => i(o, a));
|
|
@@ -30028,7 +29900,7 @@ const Hf = {
|
|
|
30028
29900
|
*/
|
|
30029
29901
|
hasEverUpdated: !1
|
|
30030
29902
|
};
|
|
30031
|
-
function
|
|
29903
|
+
function kw(e, t) {
|
|
30032
29904
|
return t.max === t.min ? 0 : e / (t.max - t.min) * 100;
|
|
30033
29905
|
}
|
|
30034
29906
|
const Nl = {
|
|
@@ -30040,10 +29912,10 @@ const Nl = {
|
|
|
30040
29912
|
e = parseFloat(e);
|
|
30041
29913
|
else
|
|
30042
29914
|
return e;
|
|
30043
|
-
const n =
|
|
29915
|
+
const n = kw(e, t.target.x), r = kw(e, t.target.y);
|
|
30044
29916
|
return `${n}% ${r}%`;
|
|
30045
29917
|
}
|
|
30046
|
-
},
|
|
29918
|
+
}, wY = {
|
|
30047
29919
|
correct: (e, { treeScale: t, projectionDelta: n }) => {
|
|
30048
29920
|
const r = e, i = va.parse(e);
|
|
30049
29921
|
if (i.length > 5)
|
|
@@ -30054,7 +29926,7 @@ const Nl = {
|
|
|
30054
29926
|
return typeof i[2 + a] == "number" && (i[2 + a] /= d), typeof i[3 + a] == "number" && (i[3 + a] /= d), o(i);
|
|
30055
29927
|
}
|
|
30056
29928
|
};
|
|
30057
|
-
class
|
|
29929
|
+
class DY extends cB {
|
|
30058
29930
|
/**
|
|
30059
29931
|
* This only mounts projection nodes for components that
|
|
30060
29932
|
* need measuring, we might want to do it for all components
|
|
@@ -30062,7 +29934,7 @@ class FY extends cB {
|
|
|
30062
29934
|
*/
|
|
30063
29935
|
componentDidMount() {
|
|
30064
29936
|
const { visualElement: t, layoutGroup: n, switchLayoutGroup: r, layoutId: i } = this.props, { projection: o } = t;
|
|
30065
|
-
|
|
29937
|
+
UH(EY), o && (n.group && n.group.add(o), r && r.register && i && r.register(o), o.root.didUpdate(), o.addEventListener("animationComplete", () => {
|
|
30066
29938
|
this.safeToRemove();
|
|
30067
29939
|
}), o.setOptions({
|
|
30068
29940
|
...o.options,
|
|
@@ -30094,11 +29966,11 @@ class FY extends cB {
|
|
|
30094
29966
|
return null;
|
|
30095
29967
|
}
|
|
30096
29968
|
}
|
|
30097
|
-
function
|
|
30098
|
-
const [t, n] =
|
|
30099
|
-
return as(
|
|
29969
|
+
function D_(e) {
|
|
29970
|
+
const [t, n] = oH(), r = st(o6);
|
|
29971
|
+
return as(DY, { ...e, layoutGroup: r, switchLayoutGroup: st(f6), isPresent: t, safeToRemove: n });
|
|
30100
29972
|
}
|
|
30101
|
-
const
|
|
29973
|
+
const EY = {
|
|
30102
29974
|
borderRadius: {
|
|
30103
29975
|
...Nl,
|
|
30104
29976
|
applyTo: [
|
|
@@ -30112,17 +29984,17 @@ const MY = {
|
|
|
30112
29984
|
borderTopRightRadius: Nl,
|
|
30113
29985
|
borderBottomLeftRadius: Nl,
|
|
30114
29986
|
borderBottomRightRadius: Nl,
|
|
30115
|
-
boxShadow:
|
|
29987
|
+
boxShadow: wY
|
|
30116
29988
|
};
|
|
30117
|
-
function
|
|
29989
|
+
function CY(e, t, n) {
|
|
30118
29990
|
const r = Un(e) ? e : Lu(e);
|
|
30119
29991
|
return r.start(N0("", r, t, n)), r.animation;
|
|
30120
29992
|
}
|
|
30121
|
-
function
|
|
29993
|
+
function SY(e) {
|
|
30122
29994
|
return e instanceof SVGElement && e.tagName !== "svg";
|
|
30123
29995
|
}
|
|
30124
|
-
const
|
|
30125
|
-
class
|
|
29996
|
+
const TY = (e, t) => e.depth - t.depth;
|
|
29997
|
+
class AY {
|
|
30126
29998
|
constructor() {
|
|
30127
29999
|
this.children = [], this.isDirty = !1;
|
|
30128
30000
|
}
|
|
@@ -30133,90 +30005,90 @@ class LY {
|
|
|
30133
30005
|
_0(this.children, t), this.isDirty = !0;
|
|
30134
30006
|
}
|
|
30135
30007
|
forEach(t) {
|
|
30136
|
-
this.isDirty && this.children.sort(
|
|
30008
|
+
this.isDirty && this.children.sort(TY), this.isDirty = !1, this.children.forEach(t);
|
|
30137
30009
|
}
|
|
30138
30010
|
}
|
|
30139
|
-
function
|
|
30011
|
+
function PY(e, t) {
|
|
30140
30012
|
const n = no.now(), r = ({ timestamp: i }) => {
|
|
30141
30013
|
const o = i - n;
|
|
30142
30014
|
o >= t && (Oo(r), e(o - t));
|
|
30143
30015
|
};
|
|
30144
30016
|
return Gt.read(r, !0), () => Oo(r);
|
|
30145
30017
|
}
|
|
30146
|
-
const
|
|
30147
|
-
function
|
|
30018
|
+
const E_ = ["TopLeft", "TopRight", "BottomLeft", "BottomRight"], _Y = E_.length, Bw = (e) => typeof e == "string" ? parseFloat(e) : e, Iw = (e) => typeof e == "number" || Je.test(e);
|
|
30019
|
+
function RY(e, t, n, r, i, o) {
|
|
30148
30020
|
i ? (e.opacity = en(
|
|
30149
30021
|
0,
|
|
30150
30022
|
// TODO Reinstate this if only child
|
|
30151
30023
|
n.opacity !== void 0 ? n.opacity : 1,
|
|
30152
|
-
|
|
30153
|
-
), e.opacityExit = en(t.opacity !== void 0 ? t.opacity : 1, 0,
|
|
30154
|
-
for (let a = 0; a <
|
|
30155
|
-
const u = `border${
|
|
30156
|
-
let c =
|
|
30024
|
+
OY(r)
|
|
30025
|
+
), e.opacityExit = en(t.opacity !== void 0 ? t.opacity : 1, 0, FY(r))) : o && (e.opacity = en(t.opacity !== void 0 ? t.opacity : 1, n.opacity !== void 0 ? n.opacity : 1, r));
|
|
30026
|
+
for (let a = 0; a < _Y; a++) {
|
|
30027
|
+
const u = `border${E_[a]}Radius`;
|
|
30028
|
+
let c = Lw(t, u), d = Lw(n, u);
|
|
30157
30029
|
if (c === void 0 && d === void 0)
|
|
30158
30030
|
continue;
|
|
30159
|
-
c || (c = 0), d || (d = 0), c === 0 || d === 0 ||
|
|
30031
|
+
c || (c = 0), d || (d = 0), c === 0 || d === 0 || Iw(c) === Iw(d) ? (e[u] = Math.max(en(Bw(c), Bw(d), r), 0), (to.test(d) || to.test(c)) && (e[u] += "%")) : e[u] = d;
|
|
30160
30032
|
}
|
|
30161
30033
|
(t.rotate || n.rotate) && (e.rotate = en(t.rotate || 0, n.rotate || 0, r));
|
|
30162
30034
|
}
|
|
30163
|
-
function
|
|
30035
|
+
function Lw(e, t) {
|
|
30164
30036
|
return e[t] !== void 0 ? e[t] : e.borderRadius;
|
|
30165
30037
|
}
|
|
30166
|
-
const
|
|
30167
|
-
function
|
|
30038
|
+
const OY = /* @__PURE__ */ C_(0, 0.5, K6), FY = /* @__PURE__ */ C_(0.5, 0.95, Rr);
|
|
30039
|
+
function C_(e, t, n) {
|
|
30168
30040
|
return (r) => r < e ? 0 : r > t ? 1 : n(Bu(e, t, r));
|
|
30169
30041
|
}
|
|
30170
|
-
function
|
|
30042
|
+
function Vw(e, t) {
|
|
30171
30043
|
e.min = t.min, e.max = t.max;
|
|
30172
30044
|
}
|
|
30173
30045
|
function ii(e, t) {
|
|
30174
|
-
|
|
30046
|
+
Vw(e.x, t.x), Vw(e.y, t.y);
|
|
30175
30047
|
}
|
|
30176
|
-
function
|
|
30048
|
+
function Nw(e, t) {
|
|
30177
30049
|
e.translate = t.translate, e.scale = t.scale, e.originPoint = t.originPoint, e.origin = t.origin;
|
|
30178
30050
|
}
|
|
30179
|
-
function
|
|
30051
|
+
function jw(e, t, n, r, i) {
|
|
30180
30052
|
return e -= t, e = Oh(e, 1 / n, r), i !== void 0 && (e = Oh(e, 1 / i, r)), e;
|
|
30181
30053
|
}
|
|
30182
|
-
function
|
|
30054
|
+
function MY(e, t = 0, n = 1, r = 0.5, i, o = e, a = e) {
|
|
30183
30055
|
if (to.test(t) && (t = parseFloat(t), t = en(a.min, a.max, t / 100) - a.min), typeof t != "number")
|
|
30184
30056
|
return;
|
|
30185
30057
|
let u = en(o.min, o.max, r);
|
|
30186
|
-
e === o && (u -= t), e.min =
|
|
30058
|
+
e === o && (u -= t), e.min = jw(e.min, t, n, u, i), e.max = jw(e.max, t, n, u, i);
|
|
30187
30059
|
}
|
|
30188
|
-
function
|
|
30189
|
-
|
|
30060
|
+
function Kw(e, t, [n, r, i], o, a) {
|
|
30061
|
+
MY(e, t[n], t[r], t[i], t.scale, o, a);
|
|
30190
30062
|
}
|
|
30191
|
-
const
|
|
30192
|
-
function
|
|
30193
|
-
|
|
30063
|
+
const kY = ["x", "scaleX", "originX"], BY = ["y", "scaleY", "originY"];
|
|
30064
|
+
function Uw(e, t, n, r) {
|
|
30065
|
+
Kw(e.x, t, kY, n ? n.x : void 0, r ? r.x : void 0), Kw(e.y, t, BY, n ? n.y : void 0, r ? r.y : void 0);
|
|
30194
30066
|
}
|
|
30195
|
-
function
|
|
30067
|
+
function zw(e) {
|
|
30196
30068
|
return e.translate === 0 && e.scale === 1;
|
|
30197
30069
|
}
|
|
30198
|
-
function
|
|
30199
|
-
return
|
|
30070
|
+
function S_(e) {
|
|
30071
|
+
return zw(e.x) && zw(e.y);
|
|
30200
30072
|
}
|
|
30201
|
-
function
|
|
30073
|
+
function Ww(e, t) {
|
|
30202
30074
|
return e.min === t.min && e.max === t.max;
|
|
30203
30075
|
}
|
|
30204
|
-
function
|
|
30205
|
-
return
|
|
30076
|
+
function IY(e, t) {
|
|
30077
|
+
return Ww(e.x, t.x) && Ww(e.y, t.y);
|
|
30206
30078
|
}
|
|
30207
|
-
function
|
|
30079
|
+
function Hw(e, t) {
|
|
30208
30080
|
return Math.round(e.min) === Math.round(t.min) && Math.round(e.max) === Math.round(t.max);
|
|
30209
30081
|
}
|
|
30210
|
-
function
|
|
30211
|
-
return
|
|
30082
|
+
function T_(e, t) {
|
|
30083
|
+
return Hw(e.x, t.x) && Hw(e.y, t.y);
|
|
30212
30084
|
}
|
|
30213
|
-
function
|
|
30085
|
+
function Gw(e) {
|
|
30214
30086
|
return Kr(e.x) / Kr(e.y);
|
|
30215
30087
|
}
|
|
30216
|
-
function
|
|
30088
|
+
function qw(e, t) {
|
|
30217
30089
|
return e.translate === t.translate && e.scale === t.scale && e.originPoint === t.originPoint;
|
|
30218
30090
|
}
|
|
30219
|
-
class
|
|
30091
|
+
class LY {
|
|
30220
30092
|
constructor() {
|
|
30221
30093
|
this.members = [];
|
|
30222
30094
|
}
|
|
@@ -30270,7 +30142,7 @@ class qY {
|
|
|
30270
30142
|
this.lead && this.lead.snapshot && (this.lead.snapshot = void 0);
|
|
30271
30143
|
}
|
|
30272
30144
|
}
|
|
30273
|
-
function
|
|
30145
|
+
function VY(e, t, n) {
|
|
30274
30146
|
let r = "";
|
|
30275
30147
|
const i = e.x.translate / t.x, o = e.y.translate / t.y, a = (n == null ? void 0 : n.z) || 0;
|
|
30276
30148
|
if ((i || o || a) && (r = `translate3d(${i}px, ${o}px, ${a}px) `), (t.x !== 1 || t.y !== 1) && (r += `scale(${1 / t.x}, ${1 / t.y}) `), n) {
|
|
@@ -30285,37 +30157,37 @@ const Ua = {
|
|
|
30285
30157
|
totalNodes: 0,
|
|
30286
30158
|
resolvedTargetDeltas: 0,
|
|
30287
30159
|
recalculatedProjection: 0
|
|
30288
|
-
}, ec = typeof window < "u" && window.MotionDebug !== void 0,
|
|
30289
|
-
let
|
|
30290
|
-
function
|
|
30160
|
+
}, ec = typeof window < "u" && window.MotionDebug !== void 0, Vg = ["", "X", "Y", "Z"], NY = { visibility: "hidden" }, Yw = 1e3;
|
|
30161
|
+
let jY = 0;
|
|
30162
|
+
function Ng(e, t, n, r) {
|
|
30291
30163
|
const { latestValues: i } = t;
|
|
30292
30164
|
i[e] && (n[e] = i[e], t.setStaticValue(e, 0), r && (r[e] = 0));
|
|
30293
30165
|
}
|
|
30294
|
-
function
|
|
30166
|
+
function A_(e) {
|
|
30295
30167
|
if (e.hasCheckedOptimisedAppear = !0, e.root === e)
|
|
30296
30168
|
return;
|
|
30297
30169
|
const { visualElement: t } = e.options;
|
|
30298
30170
|
if (!t)
|
|
30299
30171
|
return;
|
|
30300
|
-
const n =
|
|
30172
|
+
const n = k6(t);
|
|
30301
30173
|
if (window.MotionHasOptimisedAnimation(n, "transform")) {
|
|
30302
30174
|
const { layout: i, layoutId: o } = e.options;
|
|
30303
30175
|
window.MotionCancelOptimisedAnimation(n, "transform", Gt, !(i || o));
|
|
30304
30176
|
}
|
|
30305
30177
|
const { parent: r } = e;
|
|
30306
|
-
r && !r.hasCheckedOptimisedAppear &&
|
|
30178
|
+
r && !r.hasCheckedOptimisedAppear && A_(r);
|
|
30307
30179
|
}
|
|
30308
|
-
function
|
|
30180
|
+
function P_({ attachResizeListener: e, defaultParent: t, measureScroll: n, checkIsScrollRoot: r, resetTransform: i }) {
|
|
30309
30181
|
return class {
|
|
30310
30182
|
constructor(a = {}, u = t == null ? void 0 : t()) {
|
|
30311
|
-
this.id =
|
|
30183
|
+
this.id = jY++, 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 = () => {
|
|
30312
30184
|
this.isUpdating && (this.isUpdating = !1, this.clearAllSnapshots());
|
|
30313
30185
|
}, this.updateProjection = () => {
|
|
30314
|
-
this.projectionUpdateScheduled = !1, ec && (Ua.totalNodes = Ua.resolvedTargetDeltas = Ua.recalculatedProjection = 0), this.nodes.forEach(
|
|
30186
|
+
this.projectionUpdateScheduled = !1, ec && (Ua.totalNodes = Ua.resolvedTargetDeltas = Ua.recalculatedProjection = 0), this.nodes.forEach(zY), this.nodes.forEach(YY), this.nodes.forEach(ZY), this.nodes.forEach(WY), ec && window.MotionDebug.record(Ua);
|
|
30315
30187
|
}, this.resolvedRelativeTargetAt = 0, this.hasProjected = !1, this.isVisible = !0, this.animationProgress = 0, this.sharedNodes = /* @__PURE__ */ new Map(), this.latestValues = a, this.root = u ? u.root || u : this, this.path = u ? [...u.path, u] : [], this.parent = u, this.depth = u ? u.depth + 1 : 0;
|
|
30316
30188
|
for (let c = 0; c < this.path.length; c++)
|
|
30317
30189
|
this.path[c].shouldResetTransform = !0;
|
|
30318
|
-
this.root === this && (this.nodes = new
|
|
30190
|
+
this.root === this && (this.nodes = new AY());
|
|
30319
30191
|
}
|
|
30320
30192
|
addEventListener(a, u) {
|
|
30321
30193
|
return this.eventHandlers.has(a) || this.eventHandlers.set(a, new R0()), this.eventHandlers.get(a).add(u);
|
|
@@ -30333,13 +30205,13 @@ function R_({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
30333
30205
|
mount(a, u = this.root.hasTreeAnimated) {
|
|
30334
30206
|
if (this.instance)
|
|
30335
30207
|
return;
|
|
30336
|
-
this.isSVG =
|
|
30208
|
+
this.isSVG = SY(a), this.instance = a;
|
|
30337
30209
|
const { layoutId: c, layout: d, visualElement: f } = this.options;
|
|
30338
30210
|
if (f && !f.current && f.mount(a), this.root.nodes.add(this), this.parent && this.parent.children.add(this), u && (d || c) && (this.isLayoutDirty = !0), e) {
|
|
30339
30211
|
let h;
|
|
30340
30212
|
const m = () => this.root.updateBlockedByResize = !1;
|
|
30341
30213
|
e(a, () => {
|
|
30342
|
-
this.root.updateBlockedByResize = !0, h && h(), h =
|
|
30214
|
+
this.root.updateBlockedByResize = !0, h && h(), h = PY(m, 250), Hf.hasAnimatedSinceResize && (Hf.hasAnimatedSinceResize = !1, this.nodes.forEach(Jw));
|
|
30343
30215
|
});
|
|
30344
30216
|
}
|
|
30345
30217
|
c && this.root.registerSharedNode(c, this), this.options.animate !== !1 && f && (c || d) && this.addEventListener("didUpdate", ({ delta: h, hasLayoutChanged: m, hasRelativeTargetChanged: g, layout: v }) => {
|
|
@@ -30347,7 +30219,7 @@ function R_({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
30347
30219
|
this.target = void 0, this.relativeTarget = void 0;
|
|
30348
30220
|
return;
|
|
30349
30221
|
}
|
|
30350
|
-
const b = this.options.transition || f.getDefaultTransition() ||
|
|
30222
|
+
const b = this.options.transition || f.getDefaultTransition() || tZ, { onLayoutAnimationStart: E, onLayoutAnimationComplete: $ } = f.getProps(), y = !this.targetLayout || !T_(this.targetLayout, v) || g, w = !m && g;
|
|
30351
30223
|
if (this.options.layoutRoot || this.resumeFrom && this.resumeFrom.instance || w || m && (y || !this.currentAnimation)) {
|
|
30352
30224
|
this.resumeFrom && (this.resumingFrom = this.resumeFrom, this.resumingFrom.resumingFrom = void 0), this.setAnimationOrigin(h, w);
|
|
30353
30225
|
const A = {
|
|
@@ -30357,7 +30229,7 @@ function R_({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
30357
30229
|
};
|
|
30358
30230
|
(f.shouldReduceMotion || this.options.layoutRoot) && (A.delay = 0, A.type = !1), this.startAnimation(A);
|
|
30359
30231
|
} else
|
|
30360
|
-
m ||
|
|
30232
|
+
m || Jw(this), this.isLead() && this.options.onExitComplete && this.options.onExitComplete();
|
|
30361
30233
|
this.targetLayout = v;
|
|
30362
30234
|
});
|
|
30363
30235
|
}
|
|
@@ -30381,7 +30253,7 @@ function R_({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
30381
30253
|
}
|
|
30382
30254
|
// Note: currently only running on root node
|
|
30383
30255
|
startUpdate() {
|
|
30384
|
-
this.isUpdateBlocked() || (this.isUpdating = !0, this.nodes && this.nodes.forEach(
|
|
30256
|
+
this.isUpdateBlocked() || (this.isUpdating = !0, this.nodes && this.nodes.forEach(JY), this.animationId++);
|
|
30385
30257
|
}
|
|
30386
30258
|
getTransformTemplate() {
|
|
30387
30259
|
const { visualElement: a } = this.options;
|
|
@@ -30392,7 +30264,7 @@ function R_({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
30392
30264
|
this.options.onExitComplete && this.options.onExitComplete();
|
|
30393
30265
|
return;
|
|
30394
30266
|
}
|
|
30395
|
-
if (window.MotionCancelOptimisedAnimation && !this.hasCheckedOptimisedAppear &&
|
|
30267
|
+
if (window.MotionCancelOptimisedAnimation && !this.hasCheckedOptimisedAppear && A_(this), !this.root.isUpdating && this.root.startUpdate(), this.isLayoutDirty)
|
|
30396
30268
|
return;
|
|
30397
30269
|
this.isLayoutDirty = !0;
|
|
30398
30270
|
for (let f = 0; f < this.path.length; f++) {
|
|
@@ -30407,18 +30279,18 @@ function R_({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
30407
30279
|
}
|
|
30408
30280
|
update() {
|
|
30409
30281
|
if (this.updateScheduled = !1, this.isUpdateBlocked()) {
|
|
30410
|
-
this.unblockUpdate(), this.clearAllSnapshots(), this.nodes.forEach(
|
|
30282
|
+
this.unblockUpdate(), this.clearAllSnapshots(), this.nodes.forEach(Zw);
|
|
30411
30283
|
return;
|
|
30412
30284
|
}
|
|
30413
|
-
this.isUpdating || this.nodes.forEach(
|
|
30285
|
+
this.isUpdating || this.nodes.forEach(GY), this.isUpdating = !1, this.nodes.forEach(qY), this.nodes.forEach(KY), this.nodes.forEach(UY), this.clearAllSnapshots();
|
|
30414
30286
|
const u = no.now();
|
|
30415
|
-
Kn.delta = Fo(0, 1e3 / 60, u - Kn.timestamp), Kn.timestamp = u, Kn.isProcessing = !0,
|
|
30287
|
+
Kn.delta = Fo(0, 1e3 / 60, u - Kn.timestamp), Kn.timestamp = u, Kn.isProcessing = !0, Rg.update.process(Kn), Rg.preRender.process(Kn), Rg.render.process(Kn), Kn.isProcessing = !1;
|
|
30416
30288
|
}
|
|
30417
30289
|
didUpdate() {
|
|
30418
30290
|
this.updateScheduled || (this.updateScheduled = !0, m0.read(this.scheduleUpdate));
|
|
30419
30291
|
}
|
|
30420
30292
|
clearAllSnapshots() {
|
|
30421
|
-
this.nodes.forEach(
|
|
30293
|
+
this.nodes.forEach(HY), this.sharedNodes.forEach(XY);
|
|
30422
30294
|
}
|
|
30423
30295
|
scheduleUpdateProjection() {
|
|
30424
30296
|
this.projectionUpdateScheduled || (this.projectionUpdateScheduled = !0, Gt.preRender(this.updateProjection, !1, !0));
|
|
@@ -30461,13 +30333,13 @@ function R_({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
30461
30333
|
resetTransform() {
|
|
30462
30334
|
if (!i)
|
|
30463
30335
|
return;
|
|
30464
|
-
const a = this.isLayoutDirty || this.shouldResetTransform || this.options.alwaysMeasureLayout, u = this.projectionDelta && !
|
|
30336
|
+
const a = this.isLayoutDirty || this.shouldResetTransform || this.options.alwaysMeasureLayout, u = this.projectionDelta && !S_(this.projectionDelta), c = this.getTransformTemplate(), d = c ? c(this.latestValues, "") : void 0, f = d !== this.prevTransformTemplateValue;
|
|
30465
30337
|
a && (u || Ka(this.latestValues) || f) && (i(this.instance, d), this.shouldResetTransform = !1, this.scheduleRender());
|
|
30466
30338
|
}
|
|
30467
30339
|
measure(a = !0) {
|
|
30468
30340
|
const u = this.measurePageBox();
|
|
30469
30341
|
let c = this.removeElementScroll(u);
|
|
30470
|
-
return a && (c = this.removeTransform(c)),
|
|
30342
|
+
return a && (c = this.removeTransform(c)), nZ(c), {
|
|
30471
30343
|
animationId: this.root.animationId,
|
|
30472
30344
|
measuredBox: u,
|
|
30473
30345
|
layoutBox: c,
|
|
@@ -30481,7 +30353,7 @@ function R_({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
30481
30353
|
if (!u)
|
|
30482
30354
|
return gn();
|
|
30483
30355
|
const c = u.measureViewportBox();
|
|
30484
|
-
if (!(((a = this.scroll) === null || a === void 0 ? void 0 : a.wasRoot) || this.path.some(
|
|
30356
|
+
if (!(((a = this.scroll) === null || a === void 0 ? void 0 : a.wasRoot) || this.path.some(rZ))) {
|
|
30485
30357
|
const { scroll: f } = this.root;
|
|
30486
30358
|
f && (fu(c.x, f.offset.x), fu(c.y, f.offset.y));
|
|
30487
30359
|
}
|
|
@@ -30519,9 +30391,9 @@ function R_({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
30519
30391
|
continue;
|
|
30520
30392
|
Pv(d.latestValues) && d.updateSnapshot();
|
|
30521
30393
|
const f = gn(), h = d.measurePageBox();
|
|
30522
|
-
ii(f, h),
|
|
30394
|
+
ii(f, h), Uw(u, d.latestValues, d.snapshot ? d.snapshot.layoutBox : void 0, f);
|
|
30523
30395
|
}
|
|
30524
|
-
return Ka(this.latestValues) &&
|
|
30396
|
+
return Ka(this.latestValues) && Uw(u, this.latestValues), u;
|
|
30525
30397
|
}
|
|
30526
30398
|
setTargetDelta(a) {
|
|
30527
30399
|
this.targetDelta = a, this.root.scheduleUpdateProjection(), this.isProjectionDirty = !0;
|
|
@@ -30553,7 +30425,7 @@ function R_({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
30553
30425
|
g && g.layout && this.animationProgress !== 1 ? (this.relativeParent = g, this.forceRelativeParentToResolveTarget(), this.relativeTarget = gn(), this.relativeTargetOrigin = gn(), pc(this.relativeTargetOrigin, this.layout.layoutBox, g.layout.layoutBox), ii(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
|
|
30554
30426
|
}
|
|
30555
30427
|
if (!(!this.relativeTarget && !this.targetDelta)) {
|
|
30556
|
-
if (this.target || (this.target = gn(), this.targetWithTransforms = gn()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(),
|
|
30428
|
+
if (this.target || (this.target = gn(), this.targetWithTransforms = gn()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), aY(this.target, this.relativeTarget, this.relativeParent.target)) : this.targetDelta ? (this.resumingFrom ? this.target = this.applyTransform(this.layout.layoutBox) : ii(this.target, this.layout.layoutBox), $_(this.target, this.targetDelta)) : ii(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget) {
|
|
30557
30429
|
this.attemptToResolveRelativeTarget = !1;
|
|
30558
30430
|
const g = this.getClosestProjectingParent();
|
|
30559
30431
|
g && !!g.resumingFrom == !!this.resumingFrom && !g.options.layoutScroll && g.target && this.animationProgress !== 1 ? (this.relativeParent = g, this.forceRelativeParentToResolveTarget(), this.relativeTarget = gn(), this.relativeTargetOrigin = gn(), pc(this.relativeTargetOrigin, this.target, g.target), ii(this.relativeTarget, this.relativeTargetOrigin)) : this.relativeParent = this.relativeTarget = void 0;
|
|
@@ -30563,7 +30435,7 @@ function R_({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
30563
30435
|
}
|
|
30564
30436
|
}
|
|
30565
30437
|
getClosestProjectingParent() {
|
|
30566
|
-
if (!(!this.parent || Pv(this.parent.latestValues) ||
|
|
30438
|
+
if (!(!this.parent || Pv(this.parent.latestValues) || b_(this.parent.latestValues)))
|
|
30567
30439
|
return this.parent.isProjecting() ? this.parent : this.parent.getClosestProjectingParent();
|
|
30568
30440
|
}
|
|
30569
30441
|
isProjecting() {
|
|
@@ -30580,13 +30452,13 @@ function R_({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
30580
30452
|
return;
|
|
30581
30453
|
ii(this.layoutCorrected, this.layout.layoutBox);
|
|
30582
30454
|
const m = this.treeScale.x, g = this.treeScale.y;
|
|
30583
|
-
|
|
30455
|
+
mY(this.layoutCorrected, this.treeScale, this.path, c), u.layout && !u.target && (this.treeScale.x !== 1 || this.treeScale.y !== 1) && (u.target = u.layout.layoutBox, u.targetWithTransforms = gn());
|
|
30584
30456
|
const { target: v } = u;
|
|
30585
30457
|
if (!v) {
|
|
30586
30458
|
this.prevProjectionDelta && (this.createProjectionDeltas(), this.scheduleRender());
|
|
30587
30459
|
return;
|
|
30588
30460
|
}
|
|
30589
|
-
!this.projectionDelta || !this.prevProjectionDelta ? this.createProjectionDeltas() : (
|
|
30461
|
+
!this.projectionDelta || !this.prevProjectionDelta ? this.createProjectionDeltas() : (Nw(this.prevProjectionDelta.x, this.projectionDelta.x), Nw(this.prevProjectionDelta.y, this.projectionDelta.y)), hc(this.projectionDelta, this.layoutCorrected, v, this.latestValues), (this.treeScale.x !== m || this.treeScale.y !== g || !qw(this.projectionDelta.x, this.prevProjectionDelta.x) || !qw(this.projectionDelta.y, this.prevProjectionDelta.y)) && (this.hasProjected = !0, this.scheduleRender(), this.notifyListeners("projectionUpdate", v)), ec && Ua.recalculatedProjection++;
|
|
30590
30462
|
}
|
|
30591
30463
|
hide() {
|
|
30592
30464
|
this.isVisible = !1;
|
|
@@ -30608,17 +30480,17 @@ function R_({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
30608
30480
|
setAnimationOrigin(a, u = !1) {
|
|
30609
30481
|
const c = this.snapshot, d = c ? c.latestValues : {}, f = { ...this.latestValues }, h = du();
|
|
30610
30482
|
(!this.relativeParent || !this.relativeParent.options.layoutRoot) && (this.relativeTarget = this.relativeTargetOrigin = void 0), this.attemptToResolveRelativeTarget = !u;
|
|
30611
|
-
const m = gn(), g = c ? c.source : void 0, v = this.layout ? this.layout.source : void 0, b = g !== v, E = this.getStack(), $ = !E || E.members.length <= 1, y = !!(b && !$ && this.options.crossfade === !0 && !this.path.some(
|
|
30483
|
+
const m = gn(), g = c ? c.source : void 0, v = this.layout ? this.layout.source : void 0, b = g !== v, E = this.getStack(), $ = !E || E.members.length <= 1, y = !!(b && !$ && this.options.crossfade === !0 && !this.path.some(eZ));
|
|
30612
30484
|
this.animationProgress = 0;
|
|
30613
30485
|
let w;
|
|
30614
30486
|
this.mixTargetDelta = (A) => {
|
|
30615
30487
|
const D = A / 1e3;
|
|
30616
|
-
|
|
30488
|
+
Xw(h.x, a.x, D), Xw(h.y, a.y, D), this.setTargetDelta(h), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (pc(m, this.layout.layoutBox, this.relativeParent.layout.layoutBox), QY(this.relativeTarget, this.relativeTargetOrigin, m, D), w && IY(this.relativeTarget, w) && (this.isProjectionDirty = !1), w || (w = gn()), ii(w, this.relativeTarget)), b && (this.animationValues = f, RY(f, d, this.latestValues, D, y, $)), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = D;
|
|
30617
30489
|
}, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);
|
|
30618
30490
|
}
|
|
30619
30491
|
startAnimation(a) {
|
|
30620
30492
|
this.notifyListeners("animationStart"), this.currentAnimation && this.currentAnimation.stop(), this.resumingFrom && this.resumingFrom.currentAnimation && this.resumingFrom.currentAnimation.stop(), this.pendingAnimation && (Oo(this.pendingAnimation), this.pendingAnimation = void 0), this.pendingAnimation = Gt.update(() => {
|
|
30621
|
-
Hf.hasAnimatedSinceResize = !0, this.currentAnimation =
|
|
30493
|
+
Hf.hasAnimatedSinceResize = !0, this.currentAnimation = CY(0, Yw, {
|
|
30622
30494
|
...a,
|
|
30623
30495
|
onUpdate: (u) => {
|
|
30624
30496
|
this.mixTargetDelta(u), a.onUpdate && a.onUpdate(u);
|
|
@@ -30635,13 +30507,13 @@ function R_({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
30635
30507
|
a && a.exitAnimationComplete(), this.resumingFrom = this.currentAnimation = this.animationValues = void 0, this.notifyListeners("animationComplete");
|
|
30636
30508
|
}
|
|
30637
30509
|
finishAnimation() {
|
|
30638
|
-
this.currentAnimation && (this.mixTargetDelta && this.mixTargetDelta(
|
|
30510
|
+
this.currentAnimation && (this.mixTargetDelta && this.mixTargetDelta(Yw), this.currentAnimation.stop()), this.completeAnimation();
|
|
30639
30511
|
}
|
|
30640
30512
|
applyTransformsToTarget() {
|
|
30641
30513
|
const a = this.getLead();
|
|
30642
30514
|
let { targetWithTransforms: u, target: c, layout: d, latestValues: f } = a;
|
|
30643
30515
|
if (!(!u || !c || !d)) {
|
|
30644
|
-
if (this !== a && this.layout && d &&
|
|
30516
|
+
if (this !== a && this.layout && d && __(this.options.animationType, this.layout.layoutBox, d.layoutBox)) {
|
|
30645
30517
|
c = this.target || gn();
|
|
30646
30518
|
const h = Kr(this.layout.layoutBox.x);
|
|
30647
30519
|
c.x.min = a.target.x.min, c.x.max = c.x.min + h;
|
|
@@ -30652,7 +30524,7 @@ function R_({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
30652
30524
|
}
|
|
30653
30525
|
}
|
|
30654
30526
|
registerSharedNode(a, u) {
|
|
30655
|
-
this.sharedNodes.has(a) || this.sharedNodes.set(a, new
|
|
30527
|
+
this.sharedNodes.has(a) || this.sharedNodes.set(a, new LY()), this.sharedNodes.get(a).add(u);
|
|
30656
30528
|
const d = u.options.initialPromotionConfig;
|
|
30657
30529
|
u.promote({
|
|
30658
30530
|
transition: d ? d.transition : void 0,
|
|
@@ -30695,9 +30567,9 @@ function R_({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
30695
30567
|
if ((c.z || c.rotate || c.rotateX || c.rotateY || c.rotateZ || c.skewX || c.skewY) && (u = !0), !u)
|
|
30696
30568
|
return;
|
|
30697
30569
|
const d = {};
|
|
30698
|
-
c.z &&
|
|
30699
|
-
for (let f = 0; f <
|
|
30700
|
-
|
|
30570
|
+
c.z && Ng("z", a, d, this.animationValues);
|
|
30571
|
+
for (let f = 0; f < Vg.length; f++)
|
|
30572
|
+
Ng(`rotate${Vg[f]}`, a, d, this.animationValues), Ng(`skew${Vg[f]}`, a, d, this.animationValues);
|
|
30701
30573
|
a.render();
|
|
30702
30574
|
for (const f in d)
|
|
30703
30575
|
a.setStaticValue(f, d[f]), this.animationValues && (this.animationValues[f] = d[f]);
|
|
@@ -30708,7 +30580,7 @@ function R_({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
30708
30580
|
if (!this.instance || this.isSVG)
|
|
30709
30581
|
return;
|
|
30710
30582
|
if (!this.isVisible)
|
|
30711
|
-
return
|
|
30583
|
+
return NY;
|
|
30712
30584
|
const d = {
|
|
30713
30585
|
visibility: ""
|
|
30714
30586
|
}, f = this.getTransformTemplate();
|
|
@@ -30720,7 +30592,7 @@ function R_({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
30720
30592
|
return this.options.layoutId && (b.opacity = this.latestValues.opacity !== void 0 ? this.latestValues.opacity : 1, b.pointerEvents = zf(a == null ? void 0 : a.pointerEvents) || ""), this.hasProjected && !Ka(this.latestValues) && (b.transform = f ? f({}, "") : "none", this.hasProjected = !1), b;
|
|
30721
30593
|
}
|
|
30722
30594
|
const m = h.animationValues || h.latestValues;
|
|
30723
|
-
this.applyTransformsToTarget(), d.transform =
|
|
30595
|
+
this.applyTransformsToTarget(), d.transform = VY(this.projectionDeltaWithTransform, this.treeScale, m), f && (d.transform = f(m, d.transform));
|
|
30724
30596
|
const { x: g, y: v } = this.projectionDelta;
|
|
30725
30597
|
d.transformOrigin = `${g.origin * 100}% ${v.origin * 100}% 0`, h.animationValues ? d.opacity = h === this ? (c = (u = m.opacity) !== null && u !== void 0 ? u : this.latestValues.opacity) !== null && c !== void 0 ? c : 1 : this.preserveOpacity ? this.latestValues.opacity : m.opacityExit : d.opacity = h === this ? m.opacity !== void 0 ? m.opacity : "" : m.opacityExit !== void 0 ? m.opacityExit : 0;
|
|
30726
30598
|
for (const b in Th) {
|
|
@@ -30744,14 +30616,14 @@ function R_({ attachResizeListener: e, defaultParent: t, measureScroll: n, check
|
|
|
30744
30616
|
this.root.nodes.forEach((a) => {
|
|
30745
30617
|
var u;
|
|
30746
30618
|
return (u = a.currentAnimation) === null || u === void 0 ? void 0 : u.stop();
|
|
30747
|
-
}), this.root.nodes.forEach(
|
|
30619
|
+
}), this.root.nodes.forEach(Zw), this.root.sharedNodes.clear();
|
|
30748
30620
|
}
|
|
30749
30621
|
};
|
|
30750
30622
|
}
|
|
30751
|
-
function
|
|
30623
|
+
function KY(e) {
|
|
30752
30624
|
e.updateLayout();
|
|
30753
30625
|
}
|
|
30754
|
-
function
|
|
30626
|
+
function UY(e) {
|
|
30755
30627
|
var t;
|
|
30756
30628
|
const n = ((t = e.resumeFrom) === null || t === void 0 ? void 0 : t.snapshot) || e.snapshot;
|
|
30757
30629
|
if (e.isLead() && e.layout && n && e.hasListeners("didUpdate")) {
|
|
@@ -30759,7 +30631,7 @@ function QY(e) {
|
|
|
30759
30631
|
o === "size" ? ai((h) => {
|
|
30760
30632
|
const m = a ? n.measuredBox[h] : n.layoutBox[h], g = Kr(m);
|
|
30761
30633
|
m.min = r[h].min, m.max = m.min + g;
|
|
30762
|
-
}) :
|
|
30634
|
+
}) : __(o, n.layoutBox, r) && ai((h) => {
|
|
30763
30635
|
const m = a ? n.measuredBox[h] : n.layoutBox[h], g = Kr(r[h]);
|
|
30764
30636
|
m.max = m.min + g, e.relativeTarget && !e.currentAnimation && (e.isProjectionDirty = !0, e.relativeTarget[h].max = e.relativeTarget[h].min + g);
|
|
30765
30637
|
});
|
|
@@ -30767,7 +30639,7 @@ function QY(e) {
|
|
|
30767
30639
|
hc(u, r, n.layoutBox);
|
|
30768
30640
|
const c = du();
|
|
30769
30641
|
a ? hc(c, e.applyTransform(i, !0), n.measuredBox) : hc(c, r, n.layoutBox);
|
|
30770
|
-
const d = !
|
|
30642
|
+
const d = !S_(u);
|
|
30771
30643
|
let f = !1;
|
|
30772
30644
|
if (!e.resumeFrom) {
|
|
30773
30645
|
const h = e.getClosestProjectingParent();
|
|
@@ -30777,7 +30649,7 @@ function QY(e) {
|
|
|
30777
30649
|
const v = gn();
|
|
30778
30650
|
pc(v, n.layoutBox, m.layoutBox);
|
|
30779
30651
|
const b = gn();
|
|
30780
|
-
pc(b, r, g.layoutBox),
|
|
30652
|
+
pc(b, r, g.layoutBox), T_(v, b) || (f = !0), h.options.layoutRoot && (e.relativeTarget = b, e.relativeTargetOrigin = v, e.relativeParent = h);
|
|
30781
30653
|
}
|
|
30782
30654
|
}
|
|
30783
30655
|
}
|
|
@@ -30795,118 +30667,118 @@ function QY(e) {
|
|
|
30795
30667
|
}
|
|
30796
30668
|
e.options.transition = void 0;
|
|
30797
30669
|
}
|
|
30798
|
-
function
|
|
30670
|
+
function zY(e) {
|
|
30799
30671
|
ec && Ua.totalNodes++, e.parent && (e.isProjecting() || (e.isProjectionDirty = e.parent.isProjectionDirty), e.isSharedProjectionDirty || (e.isSharedProjectionDirty = !!(e.isProjectionDirty || e.parent.isProjectionDirty || e.parent.isSharedProjectionDirty)), e.isTransformDirty || (e.isTransformDirty = e.parent.isTransformDirty));
|
|
30800
30672
|
}
|
|
30801
|
-
function
|
|
30673
|
+
function WY(e) {
|
|
30802
30674
|
e.isProjectionDirty = e.isSharedProjectionDirty = e.isTransformDirty = !1;
|
|
30803
30675
|
}
|
|
30804
|
-
function
|
|
30676
|
+
function HY(e) {
|
|
30805
30677
|
e.clearSnapshot();
|
|
30806
30678
|
}
|
|
30807
|
-
function
|
|
30679
|
+
function Zw(e) {
|
|
30808
30680
|
e.clearMeasurements();
|
|
30809
30681
|
}
|
|
30810
|
-
function
|
|
30682
|
+
function GY(e) {
|
|
30811
30683
|
e.isLayoutDirty = !1;
|
|
30812
30684
|
}
|
|
30813
|
-
function
|
|
30685
|
+
function qY(e) {
|
|
30814
30686
|
const { visualElement: t } = e.options;
|
|
30815
30687
|
t && t.getProps().onBeforeLayoutMeasure && t.notify("BeforeLayoutMeasure"), e.resetTransform();
|
|
30816
30688
|
}
|
|
30817
|
-
function
|
|
30689
|
+
function Jw(e) {
|
|
30818
30690
|
e.finishAnimation(), e.targetDelta = e.relativeTarget = e.target = void 0, e.isProjectionDirty = !0;
|
|
30819
30691
|
}
|
|
30820
|
-
function
|
|
30692
|
+
function YY(e) {
|
|
30821
30693
|
e.resolveTargetDelta();
|
|
30822
30694
|
}
|
|
30823
|
-
function
|
|
30695
|
+
function ZY(e) {
|
|
30824
30696
|
e.calcProjection();
|
|
30825
30697
|
}
|
|
30826
|
-
function
|
|
30698
|
+
function JY(e) {
|
|
30827
30699
|
e.resetSkewAndRotation();
|
|
30828
30700
|
}
|
|
30829
|
-
function
|
|
30701
|
+
function XY(e) {
|
|
30830
30702
|
e.removeLeadSnapshot();
|
|
30831
30703
|
}
|
|
30832
|
-
function
|
|
30704
|
+
function Xw(e, t, n) {
|
|
30833
30705
|
e.translate = en(t.translate, 0, n), e.scale = en(t.scale, 1, n), e.origin = t.origin, e.originPoint = t.originPoint;
|
|
30834
30706
|
}
|
|
30835
|
-
function
|
|
30707
|
+
function Qw(e, t, n, r) {
|
|
30836
30708
|
e.min = en(t.min, n.min, r), e.max = en(t.max, n.max, r);
|
|
30837
30709
|
}
|
|
30838
|
-
function
|
|
30839
|
-
|
|
30710
|
+
function QY(e, t, n, r) {
|
|
30711
|
+
Qw(e.x, t.x, n.x, r), Qw(e.y, t.y, n.y, r);
|
|
30840
30712
|
}
|
|
30841
|
-
function
|
|
30713
|
+
function eZ(e) {
|
|
30842
30714
|
return e.animationValues && e.animationValues.opacityExit !== void 0;
|
|
30843
30715
|
}
|
|
30844
|
-
const
|
|
30716
|
+
const tZ = {
|
|
30845
30717
|
duration: 0.45,
|
|
30846
30718
|
ease: [0.4, 0, 0.1, 1]
|
|
30847
|
-
},
|
|
30848
|
-
function
|
|
30849
|
-
e.min =
|
|
30719
|
+
}, eD = (e) => typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().includes(e), tD = eD("applewebkit/") && !eD("chrome/") ? Math.round : Rr;
|
|
30720
|
+
function nD(e) {
|
|
30721
|
+
e.min = tD(e.min), e.max = tD(e.max);
|
|
30850
30722
|
}
|
|
30851
|
-
function
|
|
30852
|
-
|
|
30723
|
+
function nZ(e) {
|
|
30724
|
+
nD(e.x), nD(e.y);
|
|
30853
30725
|
}
|
|
30854
|
-
function
|
|
30855
|
-
return e === "position" || e === "preserve-aspect" && !
|
|
30726
|
+
function __(e, t, n) {
|
|
30727
|
+
return e === "position" || e === "preserve-aspect" && !oY(Gw(t), Gw(n), 0.2);
|
|
30856
30728
|
}
|
|
30857
|
-
function
|
|
30729
|
+
function rZ(e) {
|
|
30858
30730
|
var t;
|
|
30859
30731
|
return e !== e.root && ((t = e.scroll) === null || t === void 0 ? void 0 : t.wasRoot);
|
|
30860
30732
|
}
|
|
30861
|
-
const
|
|
30733
|
+
const iZ = P_({
|
|
30862
30734
|
attachResizeListener: (e, t) => Rc(e, "resize", t),
|
|
30863
30735
|
measureScroll: () => ({
|
|
30864
30736
|
x: document.documentElement.scrollLeft || document.body.scrollLeft,
|
|
30865
30737
|
y: document.documentElement.scrollTop || document.body.scrollTop
|
|
30866
30738
|
}),
|
|
30867
30739
|
checkIsScrollRoot: () => !0
|
|
30868
|
-
}),
|
|
30740
|
+
}), jg = {
|
|
30869
30741
|
current: void 0
|
|
30870
|
-
},
|
|
30742
|
+
}, R_ = P_({
|
|
30871
30743
|
measureScroll: (e) => ({
|
|
30872
30744
|
x: e.scrollLeft,
|
|
30873
30745
|
y: e.scrollTop
|
|
30874
30746
|
}),
|
|
30875
30747
|
defaultParent: () => {
|
|
30876
|
-
if (!
|
|
30877
|
-
const e = new
|
|
30878
|
-
e.mount(window), e.setOptions({ layoutScroll: !0 }),
|
|
30748
|
+
if (!jg.current) {
|
|
30749
|
+
const e = new iZ({});
|
|
30750
|
+
e.mount(window), e.setOptions({ layoutScroll: !0 }), jg.current = e;
|
|
30879
30751
|
}
|
|
30880
|
-
return
|
|
30752
|
+
return jg.current;
|
|
30881
30753
|
},
|
|
30882
30754
|
resetTransform: (e, t) => {
|
|
30883
30755
|
e.style.transform = t !== void 0 ? t : "none";
|
|
30884
30756
|
},
|
|
30885
30757
|
checkIsScrollRoot: (e) => window.getComputedStyle(e).position === "fixed"
|
|
30886
|
-
}),
|
|
30758
|
+
}), oZ = {
|
|
30887
30759
|
pan: {
|
|
30888
|
-
Feature:
|
|
30760
|
+
Feature: xY
|
|
30889
30761
|
},
|
|
30890
30762
|
drag: {
|
|
30891
|
-
Feature:
|
|
30892
|
-
ProjectionNode:
|
|
30893
|
-
MeasureLayout:
|
|
30763
|
+
Feature: $Y,
|
|
30764
|
+
ProjectionNode: R_,
|
|
30765
|
+
MeasureLayout: D_
|
|
30894
30766
|
}
|
|
30895
30767
|
};
|
|
30896
|
-
function
|
|
30768
|
+
function rD(e, t, n) {
|
|
30897
30769
|
const { props: r } = e;
|
|
30898
30770
|
e.animationState && r.whileHover && e.animationState.setActive("whileHover", n === "Start");
|
|
30899
30771
|
const i = "onHover" + n, o = r[i];
|
|
30900
30772
|
o && Gt.postRender(() => o(t, od(t)));
|
|
30901
30773
|
}
|
|
30902
|
-
let
|
|
30774
|
+
let aZ = class extends Da {
|
|
30903
30775
|
mount() {
|
|
30904
30776
|
const { current: t } = this.node;
|
|
30905
|
-
t && (this.unmount =
|
|
30777
|
+
t && (this.unmount = oG(t, (n) => (rD(this.node, n, "Start"), (r) => rD(this.node, r, "End"))));
|
|
30906
30778
|
}
|
|
30907
30779
|
unmount() {
|
|
30908
30780
|
}
|
|
30909
|
-
},
|
|
30781
|
+
}, sZ = class extends Da {
|
|
30910
30782
|
constructor() {
|
|
30911
30783
|
super(...arguments), this.isActive = !1;
|
|
30912
30784
|
}
|
|
@@ -30928,43 +30800,43 @@ let gZ = class extends Da {
|
|
|
30928
30800
|
unmount() {
|
|
30929
30801
|
}
|
|
30930
30802
|
};
|
|
30931
|
-
function
|
|
30803
|
+
function iD(e, t, n) {
|
|
30932
30804
|
const { props: r } = e;
|
|
30933
30805
|
e.animationState && r.whileTap && e.animationState.setActive("whileTap", n === "Start");
|
|
30934
30806
|
const i = "onTap" + (n === "End" ? "" : n), o = r[i];
|
|
30935
30807
|
o && Gt.postRender(() => o(t, od(t)));
|
|
30936
30808
|
}
|
|
30937
|
-
let
|
|
30809
|
+
let uZ = class extends Da {
|
|
30938
30810
|
mount() {
|
|
30939
30811
|
const { current: t } = this.node;
|
|
30940
|
-
t && (this.unmount =
|
|
30812
|
+
t && (this.unmount = lG(t, (n) => (iD(this.node, n, "Start"), (r, { success: i }) => iD(this.node, r, i ? "End" : "Cancel")), { useGlobalTarget: this.node.props.globalTapTarget }));
|
|
30941
30813
|
}
|
|
30942
30814
|
unmount() {
|
|
30943
30815
|
}
|
|
30944
30816
|
};
|
|
30945
|
-
const Rv = /* @__PURE__ */ new WeakMap(),
|
|
30817
|
+
const Rv = /* @__PURE__ */ new WeakMap(), Kg = /* @__PURE__ */ new WeakMap(), lZ = (e) => {
|
|
30946
30818
|
const t = Rv.get(e.target);
|
|
30947
30819
|
t && t(e);
|
|
30948
|
-
},
|
|
30949
|
-
e.forEach(
|
|
30820
|
+
}, cZ = (e) => {
|
|
30821
|
+
e.forEach(lZ);
|
|
30950
30822
|
};
|
|
30951
|
-
function
|
|
30823
|
+
function dZ({ root: e, ...t }) {
|
|
30952
30824
|
const n = e || document;
|
|
30953
|
-
|
|
30954
|
-
const r =
|
|
30955
|
-
return r[i] || (r[i] = new IntersectionObserver(
|
|
30825
|
+
Kg.has(n) || Kg.set(n, {});
|
|
30826
|
+
const r = Kg.get(n), i = JSON.stringify(t);
|
|
30827
|
+
return r[i] || (r[i] = new IntersectionObserver(cZ, { root: e, ...t })), r[i];
|
|
30956
30828
|
}
|
|
30957
|
-
function
|
|
30958
|
-
const r =
|
|
30829
|
+
function fZ(e, t, n) {
|
|
30830
|
+
const r = dZ(t);
|
|
30959
30831
|
return Rv.set(e, n), r.observe(e), () => {
|
|
30960
30832
|
Rv.delete(e), r.unobserve(e);
|
|
30961
30833
|
};
|
|
30962
30834
|
}
|
|
30963
|
-
const
|
|
30835
|
+
const hZ = {
|
|
30964
30836
|
some: 0,
|
|
30965
30837
|
all: 1
|
|
30966
30838
|
};
|
|
30967
|
-
let
|
|
30839
|
+
let pZ = class extends Da {
|
|
30968
30840
|
constructor() {
|
|
30969
30841
|
super(...arguments), this.hasEnteredView = !1, this.isInView = !1;
|
|
30970
30842
|
}
|
|
@@ -30973,7 +30845,7 @@ let EZ = class extends Da {
|
|
|
30973
30845
|
const { viewport: t = {} } = this.node.getProps(), { root: n, margin: r, amount: i = "some", once: o } = t, a = {
|
|
30974
30846
|
root: n ? n.current : void 0,
|
|
30975
30847
|
rootMargin: r,
|
|
30976
|
-
threshold: typeof i == "number" ? i :
|
|
30848
|
+
threshold: typeof i == "number" ? i : hZ[i]
|
|
30977
30849
|
}, u = (c) => {
|
|
30978
30850
|
const { isIntersecting: d } = c;
|
|
30979
30851
|
if (this.isInView === d || (this.isInView = d, o && !d && this.hasEnteredView))
|
|
@@ -30982,7 +30854,7 @@ let EZ = class extends Da {
|
|
|
30982
30854
|
const { onViewportEnter: f, onViewportLeave: h } = this.node.getProps(), m = d ? f : h;
|
|
30983
30855
|
m && m(c);
|
|
30984
30856
|
};
|
|
30985
|
-
return
|
|
30857
|
+
return fZ(this.node.current, a, u);
|
|
30986
30858
|
}
|
|
30987
30859
|
mount() {
|
|
30988
30860
|
this.startObserver();
|
|
@@ -30991,43 +30863,43 @@ let EZ = class extends Da {
|
|
|
30991
30863
|
if (typeof IntersectionObserver > "u")
|
|
30992
30864
|
return;
|
|
30993
30865
|
const { props: t, prevProps: n } = this.node;
|
|
30994
|
-
["amount", "margin", "root"].some(
|
|
30866
|
+
["amount", "margin", "root"].some(mZ(t, n)) && this.startObserver();
|
|
30995
30867
|
}
|
|
30996
30868
|
unmount() {
|
|
30997
30869
|
}
|
|
30998
30870
|
};
|
|
30999
|
-
function
|
|
30871
|
+
function mZ({ viewport: e = {} }, { viewport: t = {} } = {}) {
|
|
31000
30872
|
return (n) => e[n] !== t[n];
|
|
31001
30873
|
}
|
|
31002
|
-
const
|
|
30874
|
+
const gZ = {
|
|
31003
30875
|
inView: {
|
|
31004
|
-
Feature:
|
|
30876
|
+
Feature: pZ
|
|
31005
30877
|
},
|
|
31006
30878
|
tap: {
|
|
31007
|
-
Feature:
|
|
30879
|
+
Feature: uZ
|
|
31008
30880
|
},
|
|
31009
30881
|
focus: {
|
|
31010
|
-
Feature:
|
|
30882
|
+
Feature: sZ
|
|
31011
30883
|
},
|
|
31012
30884
|
hover: {
|
|
31013
|
-
Feature:
|
|
30885
|
+
Feature: aZ
|
|
31014
30886
|
}
|
|
31015
|
-
},
|
|
30887
|
+
}, yZ = {
|
|
31016
30888
|
layout: {
|
|
31017
|
-
ProjectionNode:
|
|
31018
|
-
MeasureLayout:
|
|
30889
|
+
ProjectionNode: R_,
|
|
30890
|
+
MeasureLayout: D_
|
|
31019
30891
|
}
|
|
31020
|
-
}, Ov = { current: null },
|
|
31021
|
-
function
|
|
31022
|
-
if (
|
|
30892
|
+
}, Ov = { current: null }, O_ = { current: !1 };
|
|
30893
|
+
function vZ() {
|
|
30894
|
+
if (O_.current = !0, !!c0)
|
|
31023
30895
|
if (window.matchMedia) {
|
|
31024
30896
|
const e = window.matchMedia("(prefers-reduced-motion)"), t = () => Ov.current = e.matches;
|
|
31025
30897
|
e.addListener(t), t();
|
|
31026
30898
|
} else
|
|
31027
30899
|
Ov.current = !1;
|
|
31028
30900
|
}
|
|
31029
|
-
const
|
|
31030
|
-
function
|
|
30901
|
+
const bZ = [...n_, tr, va], $Z = (e) => bZ.find(t_(e)), oD = /* @__PURE__ */ new WeakMap();
|
|
30902
|
+
function xZ(e, t, n) {
|
|
31031
30903
|
for (const r in t) {
|
|
31032
30904
|
const i = t[r], o = n[r];
|
|
31033
30905
|
if (Un(i))
|
|
@@ -31047,7 +30919,7 @@ function RZ(e, t, n) {
|
|
|
31047
30919
|
t[r] === void 0 && e.removeValue(r);
|
|
31048
30920
|
return t;
|
|
31049
30921
|
}
|
|
31050
|
-
const
|
|
30922
|
+
const aD = [
|
|
31051
30923
|
"AnimationStart",
|
|
31052
30924
|
"AnimationComplete",
|
|
31053
30925
|
"Update",
|
|
@@ -31056,7 +30928,7 @@ const mD = [
|
|
|
31056
30928
|
"LayoutAnimationStart",
|
|
31057
30929
|
"LayoutAnimationComplete"
|
|
31058
30930
|
];
|
|
31059
|
-
let
|
|
30931
|
+
let wZ = class {
|
|
31060
30932
|
/**
|
|
31061
30933
|
* This method takes React props and returns found MotionValues. For example, HTML
|
|
31062
30934
|
* MotionValues will be found within the style prop, whereas for Three.js within attribute arrays.
|
|
@@ -31075,7 +30947,7 @@ let OZ = class {
|
|
|
31075
30947
|
this.renderScheduledAt < g && (this.renderScheduledAt = g, Gt.render(this.render, !1, !0));
|
|
31076
30948
|
};
|
|
31077
30949
|
const { latestValues: c, renderState: d, onUpdate: f } = a;
|
|
31078
|
-
this.onUpdate = f, this.latestValues = c, this.baseTarget = { ...c }, this.initialValues = n.initial ? { ...c } : {}, this.renderState = d, this.parent = t, this.props = n, this.presenceContext = r, this.depth = t ? t.depth + 1 : 0, this.reducedMotionConfig = i, this.options = u, this.blockInitialAnimation = !!o, this.isControllingVariants = Tp(n), this.isVariantNode =
|
|
30950
|
+
this.onUpdate = f, this.latestValues = c, this.baseTarget = { ...c }, this.initialValues = n.initial ? { ...c } : {}, this.renderState = d, this.parent = t, this.props = n, this.presenceContext = r, this.depth = t ? t.depth + 1 : 0, this.reducedMotionConfig = i, this.options = u, this.blockInitialAnimation = !!o, this.isControllingVariants = Tp(n), this.isVariantNode = c6(n), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(t && t.current);
|
|
31079
30951
|
const { willChange: h, ...m } = this.scrapeMotionValuesFromProps(n, {}, this);
|
|
31080
30952
|
for (const g in m) {
|
|
31081
30953
|
const v = m[g];
|
|
@@ -31083,10 +30955,10 @@ let OZ = class {
|
|
|
31083
30955
|
}
|
|
31084
30956
|
}
|
|
31085
30957
|
mount(t) {
|
|
31086
|
-
this.current = t,
|
|
30958
|
+
this.current = t, oD.set(t, this), this.projection && !this.projection.instance && this.projection.mount(t), this.parent && this.isVariantNode && !this.isControllingVariants && (this.removeFromVariantTree = this.parent.addVariantChild(this)), this.values.forEach((n, r) => this.bindToMotionValue(r, n)), O_.current || vZ(), this.shouldReduceMotion = this.reducedMotionConfig === "never" ? !1 : this.reducedMotionConfig === "always" ? !0 : Ov.current, process.env.NODE_ENV !== "production" && Ep(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);
|
|
31087
30959
|
}
|
|
31088
30960
|
unmount() {
|
|
31089
|
-
|
|
30961
|
+
oD.delete(this.current), this.projection && this.projection.unmount(), Oo(this.notifyUpdate), Oo(this.render), this.valueSubscriptions.forEach((t) => t()), this.valueSubscriptions.clear(), this.removeFromVariantTree && this.removeFromVariantTree(), this.parent && this.parent.children.delete(this);
|
|
31090
30962
|
for (const t in this.events)
|
|
31091
30963
|
this.events[t].clear();
|
|
31092
30964
|
for (const t in this.features) {
|
|
@@ -31144,13 +31016,13 @@ let OZ = class {
|
|
|
31144
31016
|
*/
|
|
31145
31017
|
update(t, n) {
|
|
31146
31018
|
(t.transformTemplate || this.props.transformTemplate) && this.scheduleRender(), this.prevProps = this.props, this.props = t, this.prevPresenceContext = this.presenceContext, this.presenceContext = n;
|
|
31147
|
-
for (let r = 0; r <
|
|
31148
|
-
const i =
|
|
31019
|
+
for (let r = 0; r < aD.length; r++) {
|
|
31020
|
+
const i = aD[r];
|
|
31149
31021
|
this.propEventSubscriptions[i] && (this.propEventSubscriptions[i](), delete this.propEventSubscriptions[i]);
|
|
31150
31022
|
const o = "on" + i, a = t[o];
|
|
31151
31023
|
a && (this.propEventSubscriptions[i] = this.on(i, a));
|
|
31152
31024
|
}
|
|
31153
|
-
this.prevMotionValues =
|
|
31025
|
+
this.prevMotionValues = xZ(this, this.scrapeMotionValuesFromProps(t, this.prevProps, this), this.prevMotionValues), this.handleChildMotionValue && this.handleChildMotionValue(), this.onUpdate && this.onUpdate(this);
|
|
31154
31026
|
}
|
|
31155
31027
|
getProps() {
|
|
31156
31028
|
return this.props;
|
|
@@ -31216,7 +31088,7 @@ let OZ = class {
|
|
|
31216
31088
|
readValue(t, n) {
|
|
31217
31089
|
var r;
|
|
31218
31090
|
let i = this.latestValues[t] !== void 0 || !this.current ? this.latestValues[t] : (r = this.getBaseTargetFromProps(this.props, t)) !== null && r !== void 0 ? r : this.readValueFromInstance(this.current, t, this.options);
|
|
31219
|
-
return i != null && (typeof i == "string" && (
|
|
31091
|
+
return i != null && (typeof i == "string" && (Q6(i) || z6(i)) ? i = parseFloat(i) : !$Z(i) && va.test(n) && (i = Z6(t, n)), this.setBaseTarget(t, Un(i) ? i.get() : i)), Un(i) ? i.get() : i;
|
|
31220
31092
|
}
|
|
31221
31093
|
/**
|
|
31222
31094
|
* Set the base target to later animate back to. This is currently
|
|
@@ -31248,9 +31120,9 @@ let OZ = class {
|
|
|
31248
31120
|
notify(t, ...n) {
|
|
31249
31121
|
this.events[t] && this.events[t].notify(...n);
|
|
31250
31122
|
}
|
|
31251
|
-
},
|
|
31123
|
+
}, F_ = class extends wZ {
|
|
31252
31124
|
constructor() {
|
|
31253
|
-
super(...arguments), this.KeyframeResolver =
|
|
31125
|
+
super(...arguments), this.KeyframeResolver = r_;
|
|
31254
31126
|
}
|
|
31255
31127
|
sortInstanceNodePosition(t, n) {
|
|
31256
31128
|
return t.compareDocumentPosition(n) & 2 ? 1 : -1;
|
|
@@ -31269,24 +31141,24 @@ let OZ = class {
|
|
|
31269
31141
|
}));
|
|
31270
31142
|
}
|
|
31271
31143
|
};
|
|
31272
|
-
function
|
|
31144
|
+
function DZ(e) {
|
|
31273
31145
|
return window.getComputedStyle(e);
|
|
31274
31146
|
}
|
|
31275
|
-
let
|
|
31147
|
+
let EZ = class extends F_ {
|
|
31276
31148
|
constructor() {
|
|
31277
|
-
super(...arguments), this.type = "html", this.renderInstance =
|
|
31149
|
+
super(...arguments), this.type = "html", this.renderInstance = b6;
|
|
31278
31150
|
}
|
|
31279
31151
|
readValueFromInstance(t, n) {
|
|
31280
31152
|
if (ws.has(n)) {
|
|
31281
31153
|
const r = B0(n);
|
|
31282
31154
|
return r && r.default || 0;
|
|
31283
31155
|
} else {
|
|
31284
|
-
const r =
|
|
31156
|
+
const r = DZ(t), i = (g6(n) ? r.getPropertyValue(n) : r[n]) || 0;
|
|
31285
31157
|
return typeof i == "string" ? i.trim() : i;
|
|
31286
31158
|
}
|
|
31287
31159
|
}
|
|
31288
31160
|
measureInstanceViewportBox(t, { transformPagePoint: n }) {
|
|
31289
|
-
return
|
|
31161
|
+
return x_(t, n);
|
|
31290
31162
|
}
|
|
31291
31163
|
build(t, n, r) {
|
|
31292
31164
|
$0(t, n, r.transformTemplate);
|
|
@@ -31294,7 +31166,7 @@ let MZ = class extends k_ {
|
|
|
31294
31166
|
scrapeMotionValuesFromProps(t, n, r) {
|
|
31295
31167
|
return E0(t, n, r);
|
|
31296
31168
|
}
|
|
31297
|
-
},
|
|
31169
|
+
}, CZ = class extends F_ {
|
|
31298
31170
|
constructor() {
|
|
31299
31171
|
super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox = gn;
|
|
31300
31172
|
}
|
|
@@ -31306,30 +31178,30 @@ let MZ = class extends k_ {
|
|
|
31306
31178
|
const r = B0(n);
|
|
31307
31179
|
return r && r.default || 0;
|
|
31308
31180
|
}
|
|
31309
|
-
return n =
|
|
31181
|
+
return n = $6.has(n) ? n : p0(n), t.getAttribute(n);
|
|
31310
31182
|
}
|
|
31311
31183
|
scrapeMotionValuesFromProps(t, n, r) {
|
|
31312
|
-
return
|
|
31184
|
+
return D6(t, n, r);
|
|
31313
31185
|
}
|
|
31314
31186
|
build(t, n, r) {
|
|
31315
31187
|
x0(t, n, this.isSVGTag, r.transformTemplate);
|
|
31316
31188
|
}
|
|
31317
31189
|
renderInstance(t, n, r, i) {
|
|
31318
|
-
|
|
31190
|
+
x6(t, n, r, i);
|
|
31319
31191
|
}
|
|
31320
31192
|
mount(t) {
|
|
31321
31193
|
this.isSVGTag = D0(t.tagName), super.mount(t);
|
|
31322
31194
|
}
|
|
31323
31195
|
};
|
|
31324
|
-
const
|
|
31196
|
+
const SZ = (e, t) => g0(e) ? new CZ(t) : new EZ(t, {
|
|
31325
31197
|
allowProjection: e !== Wh
|
|
31326
|
-
}),
|
|
31327
|
-
...
|
|
31328
|
-
...
|
|
31329
|
-
...
|
|
31330
|
-
...
|
|
31331
|
-
},
|
|
31332
|
-
function
|
|
31198
|
+
}), TZ = /* @__PURE__ */ XH({
|
|
31199
|
+
...Zq,
|
|
31200
|
+
...gZ,
|
|
31201
|
+
...oZ,
|
|
31202
|
+
...yZ
|
|
31203
|
+
}, SZ), M_ = /* @__PURE__ */ hH(TZ);
|
|
31204
|
+
function k_(e) {
|
|
31333
31205
|
const t = td(() => Lu(e)), { isStatic: n } = st(l0);
|
|
31334
31206
|
if (n) {
|
|
31335
31207
|
const [, r] = ke(e);
|
|
@@ -31337,37 +31209,37 @@ function I_(e) {
|
|
|
31337
31209
|
}
|
|
31338
31210
|
return t;
|
|
31339
31211
|
}
|
|
31340
|
-
function
|
|
31341
|
-
const n =
|
|
31342
|
-
return r(),
|
|
31212
|
+
function B_(e, t) {
|
|
31213
|
+
const n = k_(t()), r = () => n.set(t());
|
|
31214
|
+
return r(), a6(() => {
|
|
31343
31215
|
const i = () => Gt.preRender(r, !1, !0), o = e.map((a) => a.on("change", i));
|
|
31344
31216
|
return () => {
|
|
31345
31217
|
o.forEach((a) => a()), Oo(r);
|
|
31346
31218
|
};
|
|
31347
31219
|
}), n;
|
|
31348
31220
|
}
|
|
31349
|
-
const
|
|
31350
|
-
function
|
|
31351
|
-
const t = !Array.isArray(e[0]), n = t ? 0 : -1, r = e[0 + n], i = e[1 + n], o = e[2 + n], a = e[3 + n], u =
|
|
31352
|
-
mixer:
|
|
31221
|
+
const AZ = (e) => e && typeof e == "object" && e.mix, PZ = (e) => AZ(e) ? e.mix : void 0;
|
|
31222
|
+
function _Z(...e) {
|
|
31223
|
+
const t = !Array.isArray(e[0]), n = t ? 0 : -1, r = e[0 + n], i = e[1 + n], o = e[2 + n], a = e[3 + n], u = c_(i, o, {
|
|
31224
|
+
mixer: PZ(o[0]),
|
|
31353
31225
|
...a
|
|
31354
31226
|
});
|
|
31355
31227
|
return t ? u(r) : u;
|
|
31356
31228
|
}
|
|
31357
|
-
function
|
|
31229
|
+
function RZ(e) {
|
|
31358
31230
|
cc.current = [], e();
|
|
31359
|
-
const t =
|
|
31231
|
+
const t = B_(cc.current, e);
|
|
31360
31232
|
return cc.current = void 0, t;
|
|
31361
31233
|
}
|
|
31362
|
-
function
|
|
31234
|
+
function OZ(e, t, n, r) {
|
|
31363
31235
|
if (typeof e == "function")
|
|
31364
|
-
return
|
|
31365
|
-
const i = typeof t == "function" ? t :
|
|
31366
|
-
return Array.isArray(e) ?
|
|
31236
|
+
return RZ(e);
|
|
31237
|
+
const i = typeof t == "function" ? t : _Z(t, n, r);
|
|
31238
|
+
return Array.isArray(e) ? sD(e, i) : sD([e], ([o]) => i(o));
|
|
31367
31239
|
}
|
|
31368
|
-
function
|
|
31240
|
+
function sD(e, t) {
|
|
31369
31241
|
const n = td(() => []);
|
|
31370
|
-
return
|
|
31242
|
+
return B_(e, () => {
|
|
31371
31243
|
n.length = 0;
|
|
31372
31244
|
const r = e.length;
|
|
31373
31245
|
for (let i = 0; i < r; i++)
|
|
@@ -31375,8 +31247,8 @@ function gD(e, t) {
|
|
|
31375
31247
|
return t(n);
|
|
31376
31248
|
});
|
|
31377
31249
|
}
|
|
31378
|
-
const
|
|
31379
|
-
function
|
|
31250
|
+
const I_ = zn(null);
|
|
31251
|
+
function FZ(e, t, n, r) {
|
|
31380
31252
|
if (!r)
|
|
31381
31253
|
return e;
|
|
31382
31254
|
const i = e.findIndex((f) => f.value === t);
|
|
@@ -31386,43 +31258,43 @@ function UZ(e, t, n, r) {
|
|
|
31386
31258
|
if (!a)
|
|
31387
31259
|
return e;
|
|
31388
31260
|
const u = e[i], c = a.layout, d = en(c.min, c.max, 0.5);
|
|
31389
|
-
return o === 1 && u.layout.max + n > d || o === -1 && u.layout.min + n < d ?
|
|
31261
|
+
return o === 1 && u.layout.max + n > d || o === -1 && u.layout.min + n < d ? fG(e, i, i + o) : e;
|
|
31390
31262
|
}
|
|
31391
|
-
function
|
|
31392
|
-
const u = td(() =>
|
|
31263
|
+
function MZ({ children: e, as: t = "ul", axis: n = "y", onReorder: r, values: i, ...o }, a) {
|
|
31264
|
+
const u = td(() => M_[t]), c = [], d = $e(!1);
|
|
31393
31265
|
io(!!i, "Reorder.Group must be provided a values prop");
|
|
31394
31266
|
const f = {
|
|
31395
31267
|
axis: n,
|
|
31396
31268
|
registerItem: (h, m) => {
|
|
31397
31269
|
const g = c.findIndex((v) => h === v.value);
|
|
31398
|
-
g !== -1 ? c[g].layout = m[n] : c.push({ value: h, layout: m[n] }), c.sort(
|
|
31270
|
+
g !== -1 ? c[g].layout = m[n] : c.push({ value: h, layout: m[n] }), c.sort(BZ);
|
|
31399
31271
|
},
|
|
31400
31272
|
updateOrder: (h, m, g) => {
|
|
31401
31273
|
if (d.current)
|
|
31402
31274
|
return;
|
|
31403
|
-
const v =
|
|
31404
|
-
c !== v && (d.current = !0, r(v.map(
|
|
31275
|
+
const v = FZ(c, h, m, g);
|
|
31276
|
+
c !== v && (d.current = !0, r(v.map(kZ).filter((b) => i.indexOf(b) !== -1)));
|
|
31405
31277
|
}
|
|
31406
31278
|
};
|
|
31407
31279
|
return Re(() => {
|
|
31408
31280
|
d.current = !1;
|
|
31409
|
-
}), as(u, { ...o, ref: a, ignoreStrict: !0, children: as(
|
|
31281
|
+
}), as(u, { ...o, ref: a, ignoreStrict: !0, children: as(I_.Provider, { value: f, children: e }) });
|
|
31410
31282
|
}
|
|
31411
|
-
const
|
|
31412
|
-
function
|
|
31283
|
+
const Pie = /* @__PURE__ */ Ic(MZ);
|
|
31284
|
+
function kZ(e) {
|
|
31413
31285
|
return e.value;
|
|
31414
31286
|
}
|
|
31415
|
-
function
|
|
31287
|
+
function BZ(e, t) {
|
|
31416
31288
|
return e.layout.min - t.layout.min;
|
|
31417
31289
|
}
|
|
31418
|
-
function
|
|
31419
|
-
return Un(e) ? e :
|
|
31290
|
+
function uD(e, t = 0) {
|
|
31291
|
+
return Un(e) ? e : k_(t);
|
|
31420
31292
|
}
|
|
31421
|
-
function
|
|
31422
|
-
const c = td(() =>
|
|
31423
|
-
x:
|
|
31424
|
-
y:
|
|
31425
|
-
}, h =
|
|
31293
|
+
function IZ({ children: e, style: t = {}, value: n, as: r = "li", onDrag: i, layout: o = !0, ...a }, u) {
|
|
31294
|
+
const c = td(() => M_[r]), d = st(I_), f = {
|
|
31295
|
+
x: uD(t.x),
|
|
31296
|
+
y: uD(t.y)
|
|
31297
|
+
}, h = OZ([f.x, f.y], ([b, E]) => b || E ? 1 : "unset");
|
|
31426
31298
|
io(!!d, "Reorder.Item must be a child of Reorder.Group");
|
|
31427
31299
|
const { axis: m, registerItem: g, updateOrder: v } = d;
|
|
31428
31300
|
return as(c, { drag: m, ...a, dragSnapToOrigin: !0, style: { ...t, x: f.x, y: f.y, zIndex: h }, layout: o, onDrag: (b, E) => {
|
|
@@ -31430,7 +31302,135 @@ function GZ({ children: e, style: t = {}, value: n, as: r = "li", onDrag: i, lay
|
|
|
31430
31302
|
$[m] && v(n, f[m].get(), $[m]), i && i(b, E);
|
|
31431
31303
|
}, onLayoutMeasure: (b) => g(n, b), ref: u, ignoreStrict: !0, children: e });
|
|
31432
31304
|
}
|
|
31433
|
-
const
|
|
31305
|
+
const _ie = /* @__PURE__ */ Ic(IZ), lD = (e, t, n) => {
|
|
31306
|
+
if (e && "reportValidity" in e) {
|
|
31307
|
+
const r = _e(n, t);
|
|
31308
|
+
e.setCustomValidity(r && r.message || ""), e.reportValidity();
|
|
31309
|
+
}
|
|
31310
|
+
}, L_ = (e, t) => {
|
|
31311
|
+
for (const n in t.fields) {
|
|
31312
|
+
const r = t.fields[n];
|
|
31313
|
+
r && r.ref && "reportValidity" in r.ref ? lD(r.ref, n, e) : r.refs && r.refs.forEach((i) => lD(i, n, e));
|
|
31314
|
+
}
|
|
31315
|
+
}, LZ = (e, t) => {
|
|
31316
|
+
t.shouldUseNativeValidation && L_(e, t);
|
|
31317
|
+
const n = {};
|
|
31318
|
+
for (const r in e) {
|
|
31319
|
+
const i = _e(t.fields, r), o = Object.assign(e[r] || {}, { ref: i && i.ref });
|
|
31320
|
+
if (VZ(t.names || Object.keys(e), r)) {
|
|
31321
|
+
const a = Object.assign({}, _e(n, r));
|
|
31322
|
+
Ot(a, "root", o), Ot(n, r, a);
|
|
31323
|
+
} else Ot(n, r, o);
|
|
31324
|
+
}
|
|
31325
|
+
return n;
|
|
31326
|
+
}, VZ = (e, t) => e.some((n) => n.startsWith(t + "."));
|
|
31327
|
+
function Rie(e, t, n) {
|
|
31328
|
+
return t === void 0 && (t = {}), n === void 0 && (n = {}), function(r, i, o) {
|
|
31329
|
+
try {
|
|
31330
|
+
return Promise.resolve(function(a, u) {
|
|
31331
|
+
try {
|
|
31332
|
+
var c = (t.context && process.env.NODE_ENV === "development" && console.warn("You should not used the yup options context. Please, use the 'useForm' context object instead"), Promise.resolve(e[n.mode === "sync" ? "validateSync" : "validate"](r, Object.assign({ abortEarly: !1 }, t, { context: i }))).then(function(d) {
|
|
31333
|
+
return o.shouldUseNativeValidation && L_({}, o), { values: n.raw ? r : d, errors: {} };
|
|
31334
|
+
}));
|
|
31335
|
+
} catch (d) {
|
|
31336
|
+
return u(d);
|
|
31337
|
+
}
|
|
31338
|
+
return c && c.then ? c.then(void 0, u) : c;
|
|
31339
|
+
}(0, function(a) {
|
|
31340
|
+
if (!a.inner) throw a;
|
|
31341
|
+
return { values: {}, errors: LZ((u = a, c = !o.shouldUseNativeValidation && o.criteriaMode === "all", (u.inner || []).reduce(function(d, f) {
|
|
31342
|
+
if (d[f.path] || (d[f.path] = { message: f.message, type: f.type }), c) {
|
|
31343
|
+
var h = d[f.path].types, m = h && h[f.type];
|
|
31344
|
+
d[f.path] = LC(f.path, c, d, f.type, m ? [].concat(m, f.message) : f.message);
|
|
31345
|
+
}
|
|
31346
|
+
return d;
|
|
31347
|
+
}, {})), o) };
|
|
31348
|
+
var u, c;
|
|
31349
|
+
}));
|
|
31350
|
+
} catch (a) {
|
|
31351
|
+
return Promise.reject(a);
|
|
31352
|
+
}
|
|
31353
|
+
};
|
|
31354
|
+
}
|
|
31355
|
+
var Ug, cD;
|
|
31356
|
+
function NZ() {
|
|
31357
|
+
if (cD) return Ug;
|
|
31358
|
+
cD = 1;
|
|
31359
|
+
var e = typeof Hi == "object" && Hi && Hi.Object === Object && Hi;
|
|
31360
|
+
return Ug = e, Ug;
|
|
31361
|
+
}
|
|
31362
|
+
var zg, dD;
|
|
31363
|
+
function jZ() {
|
|
31364
|
+
if (dD) return zg;
|
|
31365
|
+
dD = 1;
|
|
31366
|
+
var e = NZ(), t = typeof self == "object" && self && self.Object === Object && self, n = e || t || Function("return this")();
|
|
31367
|
+
return zg = n, zg;
|
|
31368
|
+
}
|
|
31369
|
+
var Wg, fD;
|
|
31370
|
+
function V_() {
|
|
31371
|
+
if (fD) return Wg;
|
|
31372
|
+
fD = 1;
|
|
31373
|
+
var e = jZ(), t = e.Symbol;
|
|
31374
|
+
return Wg = t, Wg;
|
|
31375
|
+
}
|
|
31376
|
+
var Hg, hD;
|
|
31377
|
+
function KZ() {
|
|
31378
|
+
if (hD) return Hg;
|
|
31379
|
+
hD = 1;
|
|
31380
|
+
var e = V_(), t = Object.prototype, n = t.hasOwnProperty, r = t.toString, i = e ? e.toStringTag : void 0;
|
|
31381
|
+
function o(a) {
|
|
31382
|
+
var u = n.call(a, i), c = a[i];
|
|
31383
|
+
try {
|
|
31384
|
+
a[i] = void 0;
|
|
31385
|
+
var d = !0;
|
|
31386
|
+
} catch {
|
|
31387
|
+
}
|
|
31388
|
+
var f = r.call(a);
|
|
31389
|
+
return d && (u ? a[i] = c : delete a[i]), f;
|
|
31390
|
+
}
|
|
31391
|
+
return Hg = o, Hg;
|
|
31392
|
+
}
|
|
31393
|
+
var Gg, pD;
|
|
31394
|
+
function UZ() {
|
|
31395
|
+
if (pD) return Gg;
|
|
31396
|
+
pD = 1;
|
|
31397
|
+
var e = Object.prototype, t = e.toString;
|
|
31398
|
+
function n(r) {
|
|
31399
|
+
return t.call(r);
|
|
31400
|
+
}
|
|
31401
|
+
return Gg = n, Gg;
|
|
31402
|
+
}
|
|
31403
|
+
var qg, mD;
|
|
31404
|
+
function zZ() {
|
|
31405
|
+
if (mD) return qg;
|
|
31406
|
+
mD = 1;
|
|
31407
|
+
var e = V_(), t = KZ(), n = UZ(), r = "[object Null]", i = "[object Undefined]", o = e ? e.toStringTag : void 0;
|
|
31408
|
+
function a(u) {
|
|
31409
|
+
return u == null ? u === void 0 ? i : r : o && o in Object(u) ? t(u) : n(u);
|
|
31410
|
+
}
|
|
31411
|
+
return qg = a, qg;
|
|
31412
|
+
}
|
|
31413
|
+
var Yg, gD;
|
|
31414
|
+
function WZ() {
|
|
31415
|
+
if (gD) return Yg;
|
|
31416
|
+
gD = 1;
|
|
31417
|
+
function e(t) {
|
|
31418
|
+
return t != null && typeof t == "object";
|
|
31419
|
+
}
|
|
31420
|
+
return Yg = e, Yg;
|
|
31421
|
+
}
|
|
31422
|
+
var Zg, yD;
|
|
31423
|
+
function HZ() {
|
|
31424
|
+
if (yD) return Zg;
|
|
31425
|
+
yD = 1;
|
|
31426
|
+
var e = zZ(), t = WZ(), n = "[object Number]";
|
|
31427
|
+
function r(i) {
|
|
31428
|
+
return typeof i == "number" || t(i) && e(i) == n;
|
|
31429
|
+
}
|
|
31430
|
+
return Zg = r, Zg;
|
|
31431
|
+
}
|
|
31432
|
+
var GZ = HZ();
|
|
31433
|
+
const Oie = /* @__PURE__ */ Mo(GZ), vD = /* @__PURE__ */ new Set();
|
|
31434
31434
|
function _p(e, t, n) {
|
|
31435
31435
|
e || vD.has(t) || (console.warn(t), vD.add(t));
|
|
31436
31436
|
}
|
|
@@ -39231,15 +39231,15 @@ export {
|
|
|
39231
39231
|
ure as _,
|
|
39232
39232
|
are as a,
|
|
39233
39233
|
sie as a0,
|
|
39234
|
-
|
|
39235
|
-
|
|
39236
|
-
|
|
39237
|
-
|
|
39238
|
-
|
|
39239
|
-
|
|
39240
|
-
|
|
39241
|
-
|
|
39242
|
-
|
|
39234
|
+
Pie as a1,
|
|
39235
|
+
_ie as a2,
|
|
39236
|
+
fre as a3,
|
|
39237
|
+
Rie as a4,
|
|
39238
|
+
cre as a5,
|
|
39239
|
+
hb as a6,
|
|
39240
|
+
mL as a7,
|
|
39241
|
+
Oie as a8,
|
|
39242
|
+
ire as a9,
|
|
39243
39243
|
kie as aa,
|
|
39244
39244
|
Bie as ab,
|
|
39245
39245
|
Iie as ac,
|