@g4rcez/components 5.0.2 → 5.0.3
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/AnimatePresence-j36AYeOQ.js +181 -0
- package/dist/AnimatePresence-j36AYeOQ.js.map +1 -0
- package/dist/Calendar.es-xICmgvjq.js +23 -0
- package/dist/Calendar.es-xICmgvjq.js.map +1 -0
- package/dist/Funnel.es-DjKVl8Nj.js +23 -0
- package/dist/Funnel.es-DjKVl8Nj.js.map +1 -0
- package/dist/{MotionConfig-DKKYqBH2.js → MotionConfig-CXHoPGbK.js} +2 -2
- package/dist/{MotionConfig-DKKYqBH2.js.map → MotionConfig-CXHoPGbK.js.map} +1 -1
- package/dist/Plus.es-DbyRkEE2.js +23 -0
- package/dist/Plus.es-DbyRkEE2.js.map +1 -0
- package/dist/Trash.es-BFAc8PMf.js +23 -0
- package/dist/Trash.es-BFAc8PMf.js.map +1 -0
- package/dist/{calendar-PCCZDUIL.js → calendar-DEPkz8sw.js} +364 -502
- package/dist/calendar-DEPkz8sw.js.map +1 -0
- package/dist/calendar-header-Dfr-CwkY.js +174 -0
- package/dist/calendar-header-Dfr-CwkY.js.map +1 -0
- package/dist/chunk-jwUa06l-.js +23 -0
- package/dist/components/core/button.js +1 -1
- package/dist/components/core/heading.js +11 -0
- package/dist/components/core/heading.js.map +1 -0
- package/dist/{polymorph-BLXhrn9n.js → components/core/polymorph.js} +2 -2
- package/dist/components/core/polymorph.js.map +1 -0
- package/dist/components/core/render-on-view.js +29 -0
- package/dist/components/core/render-on-view.js.map +1 -0
- package/dist/components/core/resizable.d.ts +7 -1
- package/dist/components/core/resizable.d.ts.map +1 -1
- package/dist/components/core/resizable.js +60 -0
- package/dist/components/core/resizable.js.map +1 -0
- package/dist/components/core/resizable.jsx +46 -40
- package/dist/{slot-pC8kH9De.js → components/core/slot.js} +2 -2
- package/dist/components/core/slot.js.map +1 -0
- package/dist/components/core/tag.js +1 -1
- package/dist/components/core/typography.js +40 -0
- package/dist/components/core/typography.js.map +1 -0
- package/dist/components/display/alert.d.ts.map +1 -1
- package/dist/components/display/alert.js +83 -102
- package/dist/components/display/alert.js.map +1 -1
- package/dist/components/display/alert.jsx +26 -29
- package/dist/components/display/calendar.d.ts.map +1 -1
- package/dist/components/display/calendar.js +1 -1
- package/dist/components/display/calendar.jsx +15 -10
- package/dist/components/display/card.js +2 -2
- package/dist/components/display/empty.d.ts.map +1 -1
- package/dist/components/display/empty.js +25 -0
- package/dist/components/display/empty.js.map +1 -0
- package/dist/components/display/empty.jsx +3 -1
- package/dist/components/display/list.d.ts.map +1 -1
- package/dist/components/display/list.js +132 -122
- package/dist/components/display/list.js.map +1 -1
- package/dist/components/display/list.jsx +30 -25
- package/dist/components/display/notifications.d.ts.map +1 -1
- package/dist/components/display/notifications.js +1 -1
- package/dist/components/display/notifications.jsx +8 -6
- package/dist/components/display/progress.d.ts.map +1 -1
- package/dist/components/display/progress.js +3 -0
- package/dist/components/display/progress.jsx +6 -8
- package/dist/components/display/shortcut.js +2 -0
- package/dist/components/display/skeleton.js +41 -0
- package/dist/components/display/skeleton.js.map +1 -0
- package/dist/components/display/spinner.js +17 -0
- package/dist/components/display/spinner.js.map +1 -0
- package/dist/components/display/step.d.ts.map +1 -1
- package/dist/components/display/step.js +3 -0
- package/dist/components/display/step.jsx +5 -5
- package/dist/components/display/tabs.js +1 -1
- package/dist/components/display/timeline.js +1 -1
- package/dist/components/floating/command-palette.d.ts.map +1 -1
- package/dist/components/floating/command-palette.js +255 -0
- package/dist/components/floating/command-palette.js.map +1 -0
- package/dist/components/floating/command-palette.jsx +34 -25
- package/dist/components/floating/dropdown.js +1 -1
- package/dist/components/floating/dropdown.js.map +1 -1
- package/dist/components/floating/dropdown.jsx +1 -1
- package/dist/components/floating/expand.js +15 -14
- package/dist/components/floating/expand.js.map +1 -1
- package/dist/components/floating/menu.js +1 -1
- package/dist/components/floating/modal.d.ts +14 -11
- package/dist/components/floating/modal.d.ts.map +1 -1
- package/dist/components/floating/modal.js +1 -1
- package/dist/components/floating/modal.jsx +56 -17
- package/dist/components/floating/toolbar.d.ts +3 -3
- package/dist/components/floating/toolbar.d.ts.map +1 -1
- package/dist/components/floating/toolbar.js +20 -0
- package/dist/components/floating/toolbar.js.map +1 -0
- package/dist/components/floating/toolbar.jsx +7 -3
- package/dist/components/floating/tooltip.js +2 -2
- package/dist/components/floating/tooltip.js.map +1 -1
- package/dist/components/floating/tooltip.jsx +1 -1
- package/dist/components/floating/wizard.js +3 -0
- package/dist/components/form/autocomplete.d.ts.map +1 -1
- package/dist/components/form/autocomplete.js +344 -2
- package/dist/components/form/autocomplete.js.map +1 -0
- package/dist/components/form/autocomplete.jsx +27 -18
- package/dist/components/form/checkbox.d.ts.map +1 -1
- package/dist/components/form/checkbox.js +29 -27
- package/dist/components/form/checkbox.js.map +1 -1
- package/dist/components/form/checkbox.jsx +21 -6
- package/dist/components/form/date-picker.js +1 -1
- package/dist/components/form/date-picker.jsx +1 -1
- package/dist/components/form/file-upload.d.ts +6 -1
- package/dist/components/form/file-upload.d.ts.map +1 -1
- package/dist/components/form/file-upload.js +1 -1
- package/dist/components/form/file-upload.jsx +34 -12
- package/dist/components/form/formReset.js +10 -0
- package/dist/components/form/formReset.js.map +1 -0
- package/dist/components/form/free-text.js +70 -0
- package/dist/components/form/free-text.js.map +1 -0
- package/dist/components/form/free-text.jsx +1 -1
- package/dist/components/form/input-field.d.ts.map +1 -1
- package/dist/components/form/input-field.js +3 -0
- package/dist/components/form/input-field.jsx +14 -8
- package/dist/components/form/input.js +1 -1
- package/dist/components/form/multi-select.d.ts.map +1 -1
- package/dist/components/form/multi-select.js +420 -0
- package/dist/components/form/multi-select.js.map +1 -0
- package/dist/components/form/multi-select.jsx +41 -33
- package/dist/components/form/select.d.ts.map +1 -1
- package/dist/components/form/select.js +55 -51
- package/dist/components/form/select.js.map +1 -1
- package/dist/components/form/select.jsx +8 -5
- package/dist/components/form/slider.js +3 -0
- package/dist/components/form/switch.d.ts +2 -1
- package/dist/components/form/switch.d.ts.map +1 -1
- package/dist/components/form/switch.js +32 -26
- package/dist/components/form/switch.js.map +1 -1
- package/dist/components/form/switch.jsx +26 -13
- package/dist/components/form/textarea.js +19 -0
- package/dist/components/form/textarea.js.map +1 -0
- package/dist/components/page-calendar/calendar-header.d.ts.map +1 -1
- package/dist/components/page-calendar/calendar-header.js +2 -0
- package/dist/components/page-calendar/calendar-header.jsx +6 -4
- package/dist/components/page-calendar/day-view.js +124 -0
- package/dist/components/page-calendar/day-view.js.map +1 -0
- package/dist/components/page-calendar/event-pill.js +44 -0
- package/dist/components/page-calendar/event-pill.js.map +1 -0
- package/dist/components/page-calendar/month-view.d.ts.map +1 -1
- package/dist/components/page-calendar/month-view.js +109 -0
- package/dist/components/page-calendar/month-view.js.map +1 -0
- package/dist/components/page-calendar/month-view.jsx +78 -31
- package/dist/components/page-calendar/page-calendar.d.ts.map +1 -1
- package/dist/components/page-calendar/page-calendar.js +75 -0
- package/dist/components/page-calendar/page-calendar.js.map +1 -0
- package/dist/components/page-calendar/page-calendar.jsx +2 -2
- package/dist/components/page-calendar/week-view.js +88 -0
- package/dist/components/page-calendar/week-view.js.map +1 -0
- package/dist/components/table/filter.d.ts.map +1 -1
- package/dist/components/table/filter.js +239 -0
- package/dist/components/table/filter.js.map +1 -0
- package/dist/components/table/filter.jsx +9 -4
- package/dist/components/table/group.d.ts.map +1 -1
- package/dist/components/table/group.js +3 -0
- package/dist/components/table/group.jsx +5 -3
- package/dist/components/table/index.js +102 -0
- package/dist/components/table/index.js.map +1 -0
- package/dist/components/table/inner-table.js +2 -0
- package/dist/components/table/inner-table.jsx +1 -1
- package/dist/components/table/metadata.js +73 -0
- package/dist/components/table/metadata.js.map +1 -0
- package/dist/components/table/metadata.jsx +1 -1
- package/dist/components/table/pagination.js +70 -0
- package/dist/components/table/pagination.js.map +1 -0
- package/dist/components/table/row.js +58 -0
- package/dist/components/table/row.js.map +1 -0
- package/dist/components/table/sort.d.ts.map +1 -1
- package/dist/components/table/sort.js +3 -0
- package/dist/components/table/sort.jsx +3 -1
- package/dist/components/table/thead.js +3 -0
- package/dist/config/default-translations.d.ts +18 -0
- package/dist/config/default-translations.d.ts.map +1 -1
- package/dist/config/default-translations.jsx +18 -0
- package/dist/{use-translations-DTLfPE3_.js → context-CsnUsfeP.js} +55 -40
- package/dist/context-CsnUsfeP.js.map +1 -0
- package/dist/{date-picker-BhKEFZew.js → date-picker-DNzupG8R.js} +301 -317
- package/dist/date-picker-DNzupG8R.js.map +1 -0
- package/dist/dict-CisoYSMO.js +28 -0
- package/dist/dict-CisoYSMO.js.map +1 -0
- package/dist/dist-ChfJ5LO9.js +498 -0
- package/dist/dist-ChfJ5LO9.js.map +1 -0
- package/dist/{dist-BrGpYRaj.js → dist-DIjUECx9.js} +56 -56
- package/dist/{dist-BrGpYRaj.js.map → dist-DIjUECx9.js.map} +1 -1
- package/dist/dom-Bn4wY_Zx.js.map +1 -1
- package/dist/{file-upload-DWbZfeG5.js → file-upload-C2zNnv9n.js} +501 -481
- package/dist/{file-upload-DWbZfeG5.js.map → file-upload-C2zNnv9n.js.map} +1 -1
- package/dist/fzf-CPGDDCoU.js +64 -0
- package/dist/fzf-CPGDDCoU.js.map +1 -0
- package/dist/getISOWeek-EcB4Ebqp.js +72 -0
- package/dist/getISOWeek-EcB4Ebqp.js.map +1 -0
- package/dist/group-Dl14TJXO.js +222 -0
- package/dist/group-Dl14TJXO.js.map +1 -0
- package/dist/hooks/use-translations.d.ts +18 -0
- package/dist/hooks/use-translations.d.ts.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.js.map +1 -1
- package/dist/inner-table-CeDX60cL.js +151 -0
- package/dist/inner-table-CeDX60cL.js.map +1 -0
- package/dist/input-Cmyuea4Y.js +412 -0
- package/dist/input-Cmyuea4Y.js.map +1 -0
- package/dist/{input-field-B_whI66Q.js → input-field-ffx1MbHo.js} +29 -16
- package/dist/input-field-ffx1MbHo.js.map +1 -0
- package/dist/isSameMonth-C3lsSwcg.js +10 -0
- package/dist/isSameMonth-C3lsSwcg.js.map +1 -0
- package/dist/isToday-COXfxFui.js +32 -0
- package/dist/isToday-COXfxFui.js.map +1 -0
- package/dist/lib/dom.d.ts.map +1 -1
- package/dist/modal-Df8-6i-o.js +408 -0
- package/dist/modal-Df8-6i-o.js.map +1 -0
- package/dist/notifications-NhCESJUV.js +1697 -0
- package/dist/notifications-NhCESJUV.js.map +1 -0
- package/dist/page-calendar.utils-Bd0PHktL.js +102 -0
- package/dist/page-calendar.utils-Bd0PHktL.js.map +1 -0
- package/dist/preset/preset.tailwind.d.ts.map +1 -1
- package/dist/preset/preset.tailwind.js +6 -7
- package/dist/preset/src/styles/dark.js +1 -1
- package/dist/progress-8LO5gWLp.js +104 -0
- package/dist/progress-8LO5gWLp.js.map +1 -0
- package/dist/{proxy-BcJ_5Dwq.js → proxy-fP2NxmhM.js} +658 -844
- package/dist/proxy-fP2NxmhM.js.map +1 -0
- package/dist/shim-Czv-YhKR.js +93 -0
- package/dist/shim-Czv-YhKR.js.map +1 -0
- package/dist/shortcut-CQCmgmlU.js +100 -0
- package/dist/shortcut-CQCmgmlU.js.map +1 -0
- package/dist/slider-TX9hiHO-.js +1196 -0
- package/dist/slider-TX9hiHO-.js.map +1 -0
- package/dist/sort-DGmiselV.js +195 -0
- package/dist/sort-DGmiselV.js.map +1 -0
- package/dist/step-DFpJ7zCG.js +185 -0
- package/dist/step-DFpJ7zCG.js.map +1 -0
- package/dist/styles/dark.js +1 -1
- package/dist/subMonths-QcCnE3Yh.js +43 -0
- package/dist/subMonths-QcCnE3Yh.js.map +1 -0
- package/dist/table-lib-1bkYSklk.js +174 -0
- package/dist/table-lib-1bkYSklk.js.map +1 -0
- package/dist/{tabs-Ciy0l9OF.js → tabs-Brc963EW.js} +2 -2
- package/dist/{tabs-Ciy0l9OF.js.map → tabs-Brc963EW.js.map} +1 -1
- package/dist/thead-B6WELJZ-.js +211 -0
- package/dist/thead-B6WELJZ-.js.map +1 -0
- package/dist/use-locale-DPM_sg4s.js +12 -0
- package/dist/use-locale-DPM_sg4s.js.map +1 -0
- package/dist/use-remove-scroll-pAgC09Sq.js +38 -0
- package/dist/use-remove-scroll-pAgC09Sq.js.map +1 -0
- package/dist/use-translations-BE4PuhLm.js +11 -0
- package/dist/use-translations-BE4PuhLm.js.map +1 -0
- package/dist/useAnimationFrame-DnKbaXfi.js +223 -0
- package/dist/useAnimationFrame-DnKbaXfi.js.map +1 -0
- package/dist/valueToPercent-DZc_m1tm.js +43 -0
- package/dist/valueToPercent-DZc_m1tm.js.map +1 -0
- package/dist/visuallyHidden-B7wI86yi.js +303 -0
- package/dist/visuallyHidden-B7wI86yi.js.map +1 -0
- package/dist/with-selector-BFW5n-pb.js +102 -0
- package/dist/with-selector-BFW5n-pb.js.map +1 -0
- package/dist/wizard-7u_qZ-78.js +218 -0
- package/dist/wizard-7u_qZ-78.js.map +1 -0
- package/package.json +19 -11
- package/dist/autocomplete-D3VOTihi.js +0 -415
- package/dist/autocomplete-D3VOTihi.js.map +0 -1
- package/dist/calendar-PCCZDUIL.js.map +0 -1
- package/dist/components/table/table.js +0 -3
- package/dist/date-picker-BhKEFZew.js.map +0 -1
- package/dist/input-B7jqwPG4.js +0 -473
- package/dist/input-B7jqwPG4.js.map +0 -1
- package/dist/input-field-B_whI66Q.js.map +0 -1
- package/dist/modal-Bz-61ays.js +0 -373
- package/dist/modal-Bz-61ays.js.map +0 -1
- package/dist/notifications-MT4XkLov.js +0 -2203
- package/dist/notifications-MT4XkLov.js.map +0 -1
- package/dist/polymorph-BLXhrn9n.js.map +0 -1
- package/dist/proxy-BcJ_5Dwq.js.map +0 -1
- package/dist/skeleton-CBYEq3lM.js +0 -26
- package/dist/skeleton-CBYEq3lM.js.map +0 -1
- package/dist/slot-pC8kH9De.js.map +0 -1
- package/dist/table-CUFbAI2k.js +0 -1914
- package/dist/table-CUFbAI2k.js.map +0 -1
- package/dist/use-translations-DTLfPE3_.js.map +0 -1
|
@@ -1,65 +1,49 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
//#region
|
|
6
|
-
var tt =
|
|
7
|
-
let n = {};
|
|
8
|
-
for (var r in e) L(n, r, {
|
|
9
|
-
get: e[r],
|
|
10
|
-
enumerable: !0
|
|
11
|
-
});
|
|
12
|
-
return t || L(n, Symbol.toStringTag, { value: "Module" }), n;
|
|
13
|
-
}, lt = (e, t, n, r) => {
|
|
14
|
-
if (t && typeof t == "object" || typeof t == "function") for (var i = rt(t), a = 0, o = i.length, s; a < o; a++) s = i[a], !at.call(e, s) && s !== n && L(e, s, {
|
|
15
|
-
get: ((e) => t[e]).bind(null, s),
|
|
16
|
-
enumerable: !(r = nt(t, s)) || r.enumerable
|
|
17
|
-
});
|
|
18
|
-
return e;
|
|
19
|
-
}, ut = (e, t, n) => (n = e == null ? {} : tt(it(e)), lt(t || !e || !e.__esModule ? L(n, "default", {
|
|
20
|
-
value: e,
|
|
21
|
-
enumerable: !0
|
|
22
|
-
}) : n, e)), dt = (e) => at.call(e, "module.exports") ? e["module.exports"] : lt(L({}, "__esModule", { value: !0 }), e), R = M({}), ft = typeof window < "u" ? Ze : Je, z = /* @__PURE__ */ M(null);
|
|
1
|
+
import { a as e, n as t, r as n } from "./chunk-jwUa06l-.js";
|
|
2
|
+
import { A as r, At as i, B as a, Ct as o, Dt as s, Et as c, Ft as l, G as u, H as d, I as f, J as p, K as m, L as h, M as g, Mt as _, N as v, Ot as y, P as ee, Pt as b, R as te, S as ne, St as re, T as x, Tt as S, U as ie, V as ae, W as oe, X as se, Y as ce, Z as le, _ as C, a as ue, b as w, c as de, ct as T, d as fe, dt as pe, et as me, f as he, ft as E, g as ge, gt as D, h as _e, ht as ve, i as ye, j as be, jt as xe, k as Se, kt as Ce, l as we, lt as Te, m as Ee, mt as O, n as De, o as Oe, p as ke, pt as k, q as Ae, r as je, s as Me, st as A, t as Ne, u as Pe, ut as Fe, v as Ie, w as Le, wt as Re, x as ze, xt as Be, y as Ve, yt as He, z as Ue } from "./MotionConfigContext-BORpSKe8.js";
|
|
3
|
+
import { Component as We, Fragment as Ge, createContext as j, createElement as Ke, forwardRef as qe, useCallback as Je, useContext as M, useEffect as Ye, useId as Xe, useInsertionEffect as Ze, useLayoutEffect as Qe, useMemo as N, useRef as P } from "react";
|
|
4
|
+
import { jsx as $e, jsxs as et } from "react/jsx-runtime";
|
|
5
|
+
//#region ../../node_modules/.pnpm/framer-motion@12.40.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/context/LayoutGroupContext.mjs
|
|
6
|
+
var tt = j({}), nt = typeof window < "u" ? Qe : Ye, F = /* @__PURE__ */ j(null);
|
|
23
7
|
//#endregion
|
|
24
8
|
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/animation/utils/calc-child-stagger.mjs
|
|
25
|
-
function
|
|
9
|
+
function rt(e, t, n, r = 0, i = 1) {
|
|
26
10
|
let a = Array.from(e).sort((e, t) => e.sortNodePosition(t)).indexOf(t), o = e.size, s = (o - 1) * r;
|
|
27
11
|
return typeof n == "function" ? n(a, o) : i === 1 ? a * r : s - a * r;
|
|
28
12
|
}
|
|
29
13
|
//#endregion
|
|
30
14
|
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-variant.mjs
|
|
31
|
-
function
|
|
32
|
-
let r =
|
|
15
|
+
function it(e, t, n = {}) {
|
|
16
|
+
let r = p(e, t, n.type === "exit" ? e.presenceContext?.custom : void 0), { transition: i = e.getDefaultTransition() || {} } = r || {};
|
|
33
17
|
n.transitionOverride && (i = n.transitionOverride);
|
|
34
|
-
let a = r ? () => Promise.all(
|
|
18
|
+
let a = r ? () => Promise.all(d(e, r, n)) : () => Promise.resolve(), o = e.variantChildren && e.variantChildren.size ? (r = 0) => {
|
|
35
19
|
let { delayChildren: a = 0, staggerChildren: o, staggerDirection: s } = i;
|
|
36
|
-
return
|
|
20
|
+
return at(e, t, r, a, o, s, n);
|
|
37
21
|
} : () => Promise.resolve(), { when: s } = i;
|
|
38
22
|
if (s) {
|
|
39
23
|
let [e, t] = s === "beforeChildren" ? [a, o] : [o, a];
|
|
40
24
|
return e().then(() => t());
|
|
41
25
|
} else return Promise.all([a(), o(n.delay)]);
|
|
42
26
|
}
|
|
43
|
-
function
|
|
27
|
+
function at(e, t, n = 0, r = 0, i = 0, a = 1, o) {
|
|
44
28
|
let s = [];
|
|
45
|
-
for (let c of e.variantChildren) c.notify("AnimationStart", t), s.push(
|
|
29
|
+
for (let c of e.variantChildren) c.notify("AnimationStart", t), s.push(it(c, t, {
|
|
46
30
|
...o,
|
|
47
|
-
delay: n + (typeof r == "function" ? 0 : r) +
|
|
31
|
+
delay: n + (typeof r == "function" ? 0 : r) + rt(e.variantChildren, c, r, i, a)
|
|
48
32
|
}).then(() => c.notify("AnimationComplete", t)));
|
|
49
33
|
return Promise.all(s);
|
|
50
34
|
}
|
|
51
35
|
//#endregion
|
|
52
36
|
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/animation/interfaces/visual-element.mjs
|
|
53
|
-
function
|
|
37
|
+
function ot(e, t, n = {}) {
|
|
54
38
|
e.notify("AnimationStart", t);
|
|
55
39
|
let r;
|
|
56
40
|
if (Array.isArray(t)) {
|
|
57
|
-
let i = t.map((t) =>
|
|
41
|
+
let i = t.map((t) => it(e, t, n));
|
|
58
42
|
r = Promise.all(i);
|
|
59
|
-
} else if (typeof t == "string") r =
|
|
43
|
+
} else if (typeof t == "string") r = it(e, t, n);
|
|
60
44
|
else {
|
|
61
|
-
let i = typeof t == "function" ?
|
|
62
|
-
r = Promise.all(
|
|
45
|
+
let i = typeof t == "function" ? p(e, t, n.custom) : t;
|
|
46
|
+
r = Promise.all(d(e, i, n));
|
|
63
47
|
}
|
|
64
48
|
return r.then(() => {
|
|
65
49
|
e.notify("AnimationComplete", t);
|
|
@@ -67,31 +51,31 @@ function gt(e, t, n = {}) {
|
|
|
67
51
|
}
|
|
68
52
|
//#endregion
|
|
69
53
|
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/utils/is-html-element.mjs
|
|
70
|
-
function
|
|
71
|
-
return
|
|
54
|
+
function st(e) {
|
|
55
|
+
return y(e) && "offsetHeight" in e && !("ownerSVGElement" in e);
|
|
72
56
|
}
|
|
73
57
|
//#endregion
|
|
74
58
|
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/gestures/drag/state/is-active.mjs
|
|
75
|
-
var
|
|
59
|
+
var I = {
|
|
76
60
|
x: !1,
|
|
77
61
|
y: !1
|
|
78
62
|
};
|
|
79
|
-
function
|
|
80
|
-
return
|
|
63
|
+
function ct() {
|
|
64
|
+
return I.x || I.y;
|
|
81
65
|
}
|
|
82
66
|
//#endregion
|
|
83
67
|
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/gestures/drag/state/set-active.mjs
|
|
84
|
-
function
|
|
85
|
-
return e === "x" || e === "y" ?
|
|
86
|
-
|
|
87
|
-
}) :
|
|
88
|
-
|
|
68
|
+
function lt(e) {
|
|
69
|
+
return e === "x" || e === "y" ? I[e] ? null : (I[e] = !0, () => {
|
|
70
|
+
I[e] = !1;
|
|
71
|
+
}) : I.x || I.y ? null : (I.x = I.y = !0, () => {
|
|
72
|
+
I.x = I.y = !1;
|
|
89
73
|
});
|
|
90
74
|
}
|
|
91
75
|
//#endregion
|
|
92
76
|
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/gestures/utils/setup.mjs
|
|
93
|
-
function
|
|
94
|
-
let n =
|
|
77
|
+
function ut(e, t) {
|
|
78
|
+
let n = ae(e), r = new AbortController();
|
|
95
79
|
return [
|
|
96
80
|
n,
|
|
97
81
|
{
|
|
@@ -104,11 +88,11 @@ function bt(e, t) {
|
|
|
104
88
|
}
|
|
105
89
|
//#endregion
|
|
106
90
|
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/gestures/hover.mjs
|
|
107
|
-
function
|
|
108
|
-
return !(e.pointerType === "touch" ||
|
|
91
|
+
function dt(e) {
|
|
92
|
+
return !(e.pointerType === "touch" || ct());
|
|
109
93
|
}
|
|
110
|
-
function
|
|
111
|
-
let [r, i, a] =
|
|
94
|
+
function ft(e, t, n = {}) {
|
|
95
|
+
let [r, i, a] = ut(e, n);
|
|
112
96
|
return r.forEach((e) => {
|
|
113
97
|
let n = !1, r = !1, a, o = () => {
|
|
114
98
|
e.removeEventListener("pointerleave", u);
|
|
@@ -128,7 +112,7 @@ function St(e, t, n = {}) {
|
|
|
128
112
|
}
|
|
129
113
|
};
|
|
130
114
|
e.addEventListener("pointerenter", (n) => {
|
|
131
|
-
if (!
|
|
115
|
+
if (!dt(n)) return;
|
|
132
116
|
r = !1;
|
|
133
117
|
let o = t(e, n);
|
|
134
118
|
typeof o == "function" && (a = o, e.addEventListener("pointerleave", u, i));
|
|
@@ -137,115 +121,115 @@ function St(e, t, n = {}) {
|
|
|
137
121
|
}
|
|
138
122
|
//#endregion
|
|
139
123
|
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/gestures/utils/is-node-or-child.mjs
|
|
140
|
-
var
|
|
124
|
+
var pt = (e, t) => t ? e === t ? !0 : pt(e, t.parentElement) : !1, mt = (e) => e.pointerType === "mouse" ? typeof e.button != "number" || e.button <= 0 : e.isPrimary !== !1, ht = new Set([
|
|
141
125
|
"BUTTON",
|
|
142
126
|
"INPUT",
|
|
143
127
|
"SELECT",
|
|
144
128
|
"TEXTAREA",
|
|
145
129
|
"A"
|
|
146
130
|
]);
|
|
147
|
-
function
|
|
148
|
-
return
|
|
131
|
+
function gt(e) {
|
|
132
|
+
return ht.has(e.tagName) || e.isContentEditable === !0;
|
|
149
133
|
}
|
|
150
|
-
var
|
|
134
|
+
var _t = new Set([
|
|
151
135
|
"INPUT",
|
|
152
136
|
"SELECT",
|
|
153
137
|
"TEXTAREA"
|
|
154
138
|
]);
|
|
155
|
-
function
|
|
156
|
-
return
|
|
139
|
+
function vt(e) {
|
|
140
|
+
return _t.has(e.tagName) || e.isContentEditable === !0;
|
|
157
141
|
}
|
|
158
142
|
//#endregion
|
|
159
143
|
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/gestures/press/utils/state.mjs
|
|
160
|
-
var
|
|
144
|
+
var L = /* @__PURE__ */ new WeakSet();
|
|
161
145
|
//#endregion
|
|
162
146
|
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/gestures/press/utils/keyboard.mjs
|
|
163
|
-
function
|
|
147
|
+
function yt(e) {
|
|
164
148
|
return (t) => {
|
|
165
149
|
t.key === "Enter" && e(t);
|
|
166
150
|
};
|
|
167
151
|
}
|
|
168
|
-
function
|
|
152
|
+
function bt(e, t) {
|
|
169
153
|
e.dispatchEvent(new PointerEvent("pointer" + t, {
|
|
170
154
|
isPrimary: !0,
|
|
171
155
|
bubbles: !0
|
|
172
156
|
}));
|
|
173
157
|
}
|
|
174
|
-
var
|
|
158
|
+
var xt = (e, t) => {
|
|
175
159
|
let n = e.currentTarget;
|
|
176
160
|
if (!n) return;
|
|
177
|
-
let r =
|
|
178
|
-
if (
|
|
179
|
-
|
|
180
|
-
let e =
|
|
181
|
-
|
|
161
|
+
let r = yt(() => {
|
|
162
|
+
if (L.has(n)) return;
|
|
163
|
+
bt(n, "down");
|
|
164
|
+
let e = yt(() => {
|
|
165
|
+
bt(n, "up");
|
|
182
166
|
});
|
|
183
|
-
n.addEventListener("keyup", e, t), n.addEventListener("blur", () =>
|
|
167
|
+
n.addEventListener("keyup", e, t), n.addEventListener("blur", () => bt(n, "cancel"), t);
|
|
184
168
|
});
|
|
185
169
|
n.addEventListener("keydown", r, t), n.addEventListener("blur", () => n.removeEventListener("keydown", r), t);
|
|
186
170
|
};
|
|
187
171
|
//#endregion
|
|
188
172
|
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/gestures/press/index.mjs
|
|
189
|
-
function
|
|
190
|
-
return
|
|
173
|
+
function St(e) {
|
|
174
|
+
return mt(e) && !ct();
|
|
191
175
|
}
|
|
192
|
-
var
|
|
193
|
-
function
|
|
194
|
-
let [r, i, a] =
|
|
176
|
+
var Ct = /* @__PURE__ */ new WeakSet();
|
|
177
|
+
function wt(e, t, n = {}) {
|
|
178
|
+
let [r, i, a] = ut(e, n), o = (e) => {
|
|
195
179
|
let r = e.currentTarget;
|
|
196
|
-
if (!
|
|
197
|
-
|
|
180
|
+
if (!St(e) || Ct.has(e)) return;
|
|
181
|
+
L.add(r), n.stopPropagation && Ct.add(e);
|
|
198
182
|
let a = t(r, e), o = (e, t) => {
|
|
199
|
-
window.removeEventListener("pointerup", s), window.removeEventListener("pointercancel", c),
|
|
183
|
+
window.removeEventListener("pointerup", s), window.removeEventListener("pointercancel", c), L.has(r) && L.delete(r), St(e) && typeof a == "function" && a(e, { success: t });
|
|
200
184
|
}, s = (e) => {
|
|
201
|
-
o(e, r === window || r === document || n.useGlobalTarget ||
|
|
185
|
+
o(e, r === window || r === document || n.useGlobalTarget || pt(r, e.target));
|
|
202
186
|
}, c = (e) => {
|
|
203
187
|
o(e, !1);
|
|
204
188
|
};
|
|
205
189
|
window.addEventListener("pointerup", s, i), window.addEventListener("pointercancel", c, i);
|
|
206
190
|
};
|
|
207
191
|
return r.forEach((e) => {
|
|
208
|
-
(n.useGlobalTarget ? window : e).addEventListener("pointerdown", o, i),
|
|
192
|
+
(n.useGlobalTarget ? window : e).addEventListener("pointerdown", o, i), st(e) && (e.addEventListener("focus", (e) => xt(e, i)), !gt(e) && !e.hasAttribute("tabindex") && (e.tabIndex = 0));
|
|
209
193
|
}), a;
|
|
210
194
|
}
|
|
211
195
|
//#endregion
|
|
212
196
|
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/resize/handle-element.mjs
|
|
213
|
-
var
|
|
214
|
-
function
|
|
215
|
-
|
|
197
|
+
var R = /* @__PURE__ */ new WeakMap(), z, Tt = (e, t, n) => (r, i) => i && i[0] ? i[0][e + "Size"] : Ue(r) && "getBBox" in r ? r.getBBox()[t] : r[n], Et = /* @__PURE__ */ Tt("inline", "width", "offsetWidth"), Dt = /* @__PURE__ */ Tt("block", "height", "offsetHeight");
|
|
198
|
+
function Ot({ target: e, borderBoxSize: t }) {
|
|
199
|
+
R.get(e)?.forEach((n) => {
|
|
216
200
|
n(e, {
|
|
217
201
|
get width() {
|
|
218
|
-
return
|
|
202
|
+
return Et(e, t);
|
|
219
203
|
},
|
|
220
204
|
get height() {
|
|
221
|
-
return
|
|
205
|
+
return Dt(e, t);
|
|
222
206
|
}
|
|
223
207
|
});
|
|
224
208
|
});
|
|
225
209
|
}
|
|
226
|
-
function
|
|
227
|
-
e.forEach(
|
|
210
|
+
function kt(e) {
|
|
211
|
+
e.forEach(Ot);
|
|
228
212
|
}
|
|
229
|
-
function
|
|
230
|
-
typeof ResizeObserver > "u" || (
|
|
213
|
+
function At() {
|
|
214
|
+
typeof ResizeObserver > "u" || (z = new ResizeObserver(kt));
|
|
231
215
|
}
|
|
232
|
-
function
|
|
233
|
-
|
|
234
|
-
let n =
|
|
216
|
+
function jt(e, t) {
|
|
217
|
+
z || At();
|
|
218
|
+
let n = ae(e);
|
|
235
219
|
return n.forEach((e) => {
|
|
236
|
-
let n =
|
|
237
|
-
n || (n = /* @__PURE__ */ new Set(),
|
|
220
|
+
let n = R.get(e);
|
|
221
|
+
n || (n = /* @__PURE__ */ new Set(), R.set(e, n)), n.add(t), z?.observe(e);
|
|
238
222
|
}), () => {
|
|
239
223
|
n.forEach((e) => {
|
|
240
|
-
let n =
|
|
241
|
-
n?.delete(t), n?.size ||
|
|
224
|
+
let n = R.get(e);
|
|
225
|
+
n?.delete(t), n?.size || z?.unobserve(e);
|
|
242
226
|
});
|
|
243
227
|
};
|
|
244
228
|
}
|
|
245
229
|
//#endregion
|
|
246
230
|
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/resize/handle-window.mjs
|
|
247
|
-
var
|
|
248
|
-
function
|
|
231
|
+
var B = /* @__PURE__ */ new Set(), V;
|
|
232
|
+
function Mt() {
|
|
249
233
|
V = () => {
|
|
250
234
|
let e = {
|
|
251
235
|
get width() {
|
|
@@ -255,18 +239,18 @@ function Kt() {
|
|
|
255
239
|
return window.innerHeight;
|
|
256
240
|
}
|
|
257
241
|
};
|
|
258
|
-
|
|
242
|
+
B.forEach((t) => t(e));
|
|
259
243
|
}, window.addEventListener("resize", V);
|
|
260
244
|
}
|
|
261
|
-
function
|
|
262
|
-
return
|
|
263
|
-
|
|
245
|
+
function Nt(e) {
|
|
246
|
+
return B.add(e), V || Mt(), () => {
|
|
247
|
+
B.delete(e), !B.size && typeof V == "function" && (window.removeEventListener("resize", V), V = void 0);
|
|
264
248
|
};
|
|
265
249
|
}
|
|
266
250
|
//#endregion
|
|
267
251
|
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/resize/index.mjs
|
|
268
|
-
function
|
|
269
|
-
return typeof e == "function" ?
|
|
252
|
+
function Pt(e, t) {
|
|
253
|
+
return typeof e == "function" ? Nt(e) : jt(e, t);
|
|
270
254
|
}
|
|
271
255
|
//#endregion
|
|
272
256
|
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/render/Feature.mjs
|
|
@@ -275,23 +259,23 @@ var H = class {
|
|
|
275
259
|
this.isMounted = !1, this.node = e;
|
|
276
260
|
}
|
|
277
261
|
update() {}
|
|
278
|
-
},
|
|
279
|
-
function
|
|
262
|
+
}, Ft = g.length;
|
|
263
|
+
function It(e) {
|
|
280
264
|
if (!e) return;
|
|
281
265
|
if (!e.isControllingVariants) {
|
|
282
|
-
let t = e.parent &&
|
|
266
|
+
let t = e.parent && It(e.parent) || {};
|
|
283
267
|
return e.props.initial !== void 0 && (t.initial = e.props.initial), t;
|
|
284
268
|
}
|
|
285
269
|
let t = {};
|
|
286
|
-
for (let n = 0; n <
|
|
287
|
-
let r =
|
|
288
|
-
(
|
|
270
|
+
for (let n = 0; n < Ft; n++) {
|
|
271
|
+
let r = g[n], i = e.props[r];
|
|
272
|
+
(v(i) || i === !1) && (t[r] = i);
|
|
289
273
|
}
|
|
290
274
|
return t;
|
|
291
275
|
}
|
|
292
276
|
//#endregion
|
|
293
277
|
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/render/utils/shallow-compare.mjs
|
|
294
|
-
function
|
|
278
|
+
function Lt(e, t) {
|
|
295
279
|
if (!Array.isArray(t)) return !1;
|
|
296
280
|
let n = t.length;
|
|
297
281
|
if (n !== e.length) return !1;
|
|
@@ -300,13 +284,13 @@ function Zt(e, t) {
|
|
|
300
284
|
}
|
|
301
285
|
//#endregion
|
|
302
286
|
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/render/utils/animation-state.mjs
|
|
303
|
-
var
|
|
304
|
-
function
|
|
305
|
-
return (t) => Promise.all(t.map(({ animation: t, options: n }) =>
|
|
287
|
+
var Rt = [...be].reverse(), zt = be.length;
|
|
288
|
+
function Bt(e) {
|
|
289
|
+
return (t) => Promise.all(t.map(({ animation: t, options: n }) => ot(e, t, n)));
|
|
306
290
|
}
|
|
307
|
-
function
|
|
308
|
-
let t =
|
|
309
|
-
let i =
|
|
291
|
+
function Vt(e) {
|
|
292
|
+
let t = Bt(e), n = Ut(), r = !0, i = !1, a = (t) => (n, r) => {
|
|
293
|
+
let i = p(e, r, t === "exit" ? e.presenceContext?.custom : void 0);
|
|
310
294
|
if (i) {
|
|
311
295
|
let { transition: e, transitionEnd: t, ...r } = i;
|
|
312
296
|
n = {
|
|
@@ -321,47 +305,47 @@ function tn(e) {
|
|
|
321
305
|
t = n(e);
|
|
322
306
|
}
|
|
323
307
|
function s(o) {
|
|
324
|
-
let { props: s } = e, c =
|
|
325
|
-
for (let t = 0; t <
|
|
326
|
-
let m =
|
|
327
|
-
|
|
328
|
-
let
|
|
329
|
-
if (
|
|
330
|
-
if (m === "exit" &&
|
|
331
|
-
|
|
332
|
-
...
|
|
333
|
-
...
|
|
308
|
+
let { props: s } = e, c = It(e.parent) || {}, l = [], u = /* @__PURE__ */ new Set(), d = {}, f = Infinity;
|
|
309
|
+
for (let t = 0; t < zt; t++) {
|
|
310
|
+
let m = Rt[t], h = n[m], g = s[m] === void 0 ? c[m] : s[m], _ = v(g), y = m === o ? h.isActive : null;
|
|
311
|
+
y === !1 && (f = t);
|
|
312
|
+
let b = g === c[m] && g !== s[m] && _;
|
|
313
|
+
if (b && (r || i) && e.manuallyAnimateOnMount && (b = !1), h.protectedKeys = { ...d }, !h.isActive && y === null || !g && !h.prevProp || ee(g) || typeof g == "boolean") continue;
|
|
314
|
+
if (m === "exit" && h.isActive && y !== !0) {
|
|
315
|
+
h.prevResolvedValues && (d = {
|
|
316
|
+
...d,
|
|
317
|
+
...h.prevResolvedValues
|
|
334
318
|
});
|
|
335
319
|
continue;
|
|
336
320
|
}
|
|
337
|
-
let
|
|
338
|
-
|
|
339
|
-
let { prevResolvedValues:
|
|
340
|
-
...
|
|
341
|
-
...
|
|
342
|
-
},
|
|
343
|
-
|
|
321
|
+
let te = Ht(h.prevProp, g), ne = te || m === o && h.isActive && !b && _ || t > f && _, re = !1, x = Array.isArray(g) ? g : [g], S = x.reduce(a(m), {});
|
|
322
|
+
y === !1 && (S = {});
|
|
323
|
+
let { prevResolvedValues: ie = {} } = h, ae = {
|
|
324
|
+
...ie,
|
|
325
|
+
...S
|
|
326
|
+
}, oe = (t) => {
|
|
327
|
+
ne = !0, u.has(t) && (re = !0, u.delete(t)), h.needsAnimating[t] = !0;
|
|
344
328
|
let n = e.getValue(t);
|
|
345
329
|
n && (n.liveStyle = !1);
|
|
346
330
|
};
|
|
347
|
-
for (let e in
|
|
348
|
-
let t =
|
|
349
|
-
if (
|
|
331
|
+
for (let e in ae) {
|
|
332
|
+
let t = S[e], n = ie[e];
|
|
333
|
+
if (d.hasOwnProperty(e)) continue;
|
|
350
334
|
let r = !1;
|
|
351
|
-
r =
|
|
335
|
+
r = Ae(t) && Ae(n) ? !Lt(t, n) || te : t !== n, r ? t == null ? u.add(e) : oe(e) : t !== void 0 && u.has(e) ? oe(e) : h.protectedKeys[e] = !0;
|
|
352
336
|
}
|
|
353
|
-
|
|
354
|
-
...
|
|
355
|
-
...
|
|
356
|
-
}), (r || i) && e.blockInitialAnimation && (
|
|
357
|
-
let
|
|
358
|
-
|
|
337
|
+
h.prevProp = g, h.prevResolvedValues = S, h.isActive && (d = {
|
|
338
|
+
...d,
|
|
339
|
+
...S
|
|
340
|
+
}), (r || i) && e.blockInitialAnimation && (ne = !1);
|
|
341
|
+
let se = b && te;
|
|
342
|
+
ne && (!se || re) && l.push(...x.map((t) => {
|
|
359
343
|
let n = { type: m };
|
|
360
|
-
if (typeof t == "string" && (r || i) && !
|
|
361
|
-
let { parent: r } = e, i =
|
|
344
|
+
if (typeof t == "string" && (r || i) && !se && e.manuallyAnimateOnMount && e.parent) {
|
|
345
|
+
let { parent: r } = e, i = p(r, t);
|
|
362
346
|
if (r.enteringChildren && i) {
|
|
363
347
|
let { delayChildren: t } = i.transition || {};
|
|
364
|
-
n.delay =
|
|
348
|
+
n.delay = rt(r.enteringChildren, e, t);
|
|
365
349
|
}
|
|
366
350
|
}
|
|
367
351
|
return {
|
|
@@ -370,13 +354,13 @@ function tn(e) {
|
|
|
370
354
|
};
|
|
371
355
|
}));
|
|
372
356
|
}
|
|
373
|
-
if (
|
|
357
|
+
if (u.size) {
|
|
374
358
|
let t = {};
|
|
375
359
|
if (typeof s.initial != "boolean") {
|
|
376
|
-
let n =
|
|
360
|
+
let n = p(e, Array.isArray(s.initial) ? s.initial[0] : s.initial);
|
|
377
361
|
n && n.transition && (t.transition = n.transition);
|
|
378
362
|
}
|
|
379
|
-
|
|
363
|
+
u.forEach((n) => {
|
|
380
364
|
let r = e.getBaseTarget(n), i = e.getValue(n);
|
|
381
365
|
i && (i.liveStyle = !0), t[n] = r ?? null;
|
|
382
366
|
}), l.push({ animation: t });
|
|
@@ -397,12 +381,12 @@ function tn(e) {
|
|
|
397
381
|
setAnimateFunction: o,
|
|
398
382
|
getState: () => n,
|
|
399
383
|
reset: () => {
|
|
400
|
-
n =
|
|
384
|
+
n = Ut(), i = !0;
|
|
401
385
|
}
|
|
402
386
|
};
|
|
403
387
|
}
|
|
404
|
-
function
|
|
405
|
-
return typeof t == "string" ? t !== e : Array.isArray(t) ? !
|
|
388
|
+
function Ht(e, t) {
|
|
389
|
+
return typeof t == "string" ? t !== e : Array.isArray(t) ? !Lt(t, e) : !1;
|
|
406
390
|
}
|
|
407
391
|
function U(e = !1) {
|
|
408
392
|
return {
|
|
@@ -412,7 +396,7 @@ function U(e = !1) {
|
|
|
412
396
|
prevResolvedValues: {}
|
|
413
397
|
};
|
|
414
398
|
}
|
|
415
|
-
function
|
|
399
|
+
function Ut() {
|
|
416
400
|
return {
|
|
417
401
|
animate: U(!0),
|
|
418
402
|
whileInView: U(),
|
|
@@ -425,102 +409,102 @@ function rn() {
|
|
|
425
409
|
}
|
|
426
410
|
//#endregion
|
|
427
411
|
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/projection/geometry/copy.mjs
|
|
428
|
-
function
|
|
412
|
+
function Wt(e, t) {
|
|
429
413
|
e.min = t.min, e.max = t.max;
|
|
430
414
|
}
|
|
431
415
|
function W(e, t) {
|
|
432
|
-
|
|
416
|
+
Wt(e.x, t.x), Wt(e.y, t.y);
|
|
433
417
|
}
|
|
434
|
-
function
|
|
418
|
+
function Gt(e, t) {
|
|
435
419
|
e.translate = t.translate, e.scale = t.scale, e.originPoint = t.originPoint, e.origin = t.origin;
|
|
436
420
|
}
|
|
437
421
|
//#endregion
|
|
438
422
|
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/projection/geometry/delta-calc.mjs
|
|
439
|
-
var
|
|
423
|
+
var Kt = .9999, qt = 1.0001, Jt = -.01, Yt = .01;
|
|
440
424
|
function G(e) {
|
|
441
425
|
return e.max - e.min;
|
|
442
426
|
}
|
|
443
|
-
function
|
|
427
|
+
function Xt(e, t, n) {
|
|
444
428
|
return Math.abs(e - t) <= n;
|
|
445
429
|
}
|
|
446
|
-
function
|
|
447
|
-
e.origin = r, e.originPoint =
|
|
430
|
+
function Zt(e, t, n, r = .5) {
|
|
431
|
+
e.origin = r, e.originPoint = A(t.min, t.max, e.origin), e.scale = G(n) / G(t), e.translate = A(n.min, n.max, e.origin) - e.originPoint, (e.scale >= Kt && e.scale <= qt || isNaN(e.scale)) && (e.scale = 1), (e.translate >= Jt && e.translate <= Yt || isNaN(e.translate)) && (e.translate = 0);
|
|
448
432
|
}
|
|
449
433
|
function K(e, t, n, r) {
|
|
450
|
-
|
|
434
|
+
Zt(e.x, t.x, n.x, r ? r.originX : void 0), Zt(e.y, t.y, n.y, r ? r.originY : void 0);
|
|
451
435
|
}
|
|
452
|
-
function
|
|
453
|
-
e.min = (r ?
|
|
436
|
+
function Qt(e, t, n, r = 0) {
|
|
437
|
+
e.min = (r ? A(n.min, n.max, r) : n.min) + t.min, e.max = e.min + G(t);
|
|
454
438
|
}
|
|
455
|
-
function
|
|
456
|
-
|
|
439
|
+
function $t(e, t, n, r) {
|
|
440
|
+
Qt(e.x, t.x, n.x, r?.x), Qt(e.y, t.y, n.y, r?.y);
|
|
457
441
|
}
|
|
458
|
-
function
|
|
459
|
-
let i = r ?
|
|
442
|
+
function en(e, t, n, r = 0) {
|
|
443
|
+
let i = r ? A(n.min, n.max, r) : n.min;
|
|
460
444
|
e.min = t.min - i, e.max = e.min + G(t);
|
|
461
445
|
}
|
|
462
|
-
function
|
|
463
|
-
|
|
446
|
+
function q(e, t, n, r) {
|
|
447
|
+
en(e.x, t.x, n.x, r?.x), en(e.y, t.y, n.y, r?.y);
|
|
464
448
|
}
|
|
465
449
|
//#endregion
|
|
466
450
|
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/projection/geometry/delta-remove.mjs
|
|
467
|
-
function
|
|
468
|
-
return e -= t, e =
|
|
451
|
+
function tn(e, t, n, r, i) {
|
|
452
|
+
return e -= t, e = _e(e, 1 / n, r), i !== void 0 && (e = _e(e, 1 / i, r)), e;
|
|
469
453
|
}
|
|
470
|
-
function
|
|
471
|
-
if (
|
|
472
|
-
let s =
|
|
473
|
-
e === a && (s -= t), e.min =
|
|
454
|
+
function nn(e, t = 0, n = 1, r = .5, i, a = e, o = e) {
|
|
455
|
+
if (T.test(t) && (t = parseFloat(t), t = A(o.min, o.max, t / 100) - o.min), typeof t != "number") return;
|
|
456
|
+
let s = A(a.min, a.max, r);
|
|
457
|
+
e === a && (s -= t), e.min = tn(e.min, t, n, s, i), e.max = tn(e.max, t, n, s, i);
|
|
474
458
|
}
|
|
475
|
-
function
|
|
476
|
-
|
|
459
|
+
function rn(e, t, [n, r, i], a, o) {
|
|
460
|
+
nn(e, t[n], t[r], t[i], t.scale, a, o);
|
|
477
461
|
}
|
|
478
|
-
var
|
|
462
|
+
var an = [
|
|
479
463
|
"x",
|
|
480
464
|
"scaleX",
|
|
481
465
|
"originX"
|
|
482
|
-
],
|
|
466
|
+
], on = [
|
|
483
467
|
"y",
|
|
484
468
|
"scaleY",
|
|
485
469
|
"originY"
|
|
486
470
|
];
|
|
487
|
-
function
|
|
488
|
-
|
|
471
|
+
function sn(e, t, n, r) {
|
|
472
|
+
rn(e.x, t, an, n ? n.x : void 0, r ? r.x : void 0), rn(e.y, t, on, n ? n.y : void 0, r ? r.y : void 0);
|
|
489
473
|
}
|
|
490
474
|
//#endregion
|
|
491
475
|
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/projection/geometry/utils.mjs
|
|
492
|
-
function
|
|
476
|
+
function cn(e) {
|
|
493
477
|
return e.translate === 0 && e.scale === 1;
|
|
494
478
|
}
|
|
495
|
-
function
|
|
496
|
-
return
|
|
479
|
+
function ln(e) {
|
|
480
|
+
return cn(e.x) && cn(e.y);
|
|
497
481
|
}
|
|
498
|
-
function
|
|
482
|
+
function un(e, t) {
|
|
499
483
|
return e.min === t.min && e.max === t.max;
|
|
500
484
|
}
|
|
501
|
-
function
|
|
502
|
-
return
|
|
485
|
+
function dn(e, t) {
|
|
486
|
+
return un(e.x, t.x) && un(e.y, t.y);
|
|
503
487
|
}
|
|
504
|
-
function
|
|
488
|
+
function fn(e, t) {
|
|
505
489
|
return Math.round(e.min) === Math.round(t.min) && Math.round(e.max) === Math.round(t.max);
|
|
506
490
|
}
|
|
507
|
-
function
|
|
508
|
-
return
|
|
491
|
+
function pn(e, t) {
|
|
492
|
+
return fn(e.x, t.x) && fn(e.y, t.y);
|
|
509
493
|
}
|
|
510
|
-
function
|
|
494
|
+
function mn(e) {
|
|
511
495
|
return G(e.x) / G(e.y);
|
|
512
496
|
}
|
|
513
|
-
function
|
|
497
|
+
function hn(e, t) {
|
|
514
498
|
return e.translate === t.translate && e.scale === t.scale && e.originPoint === t.originPoint;
|
|
515
499
|
}
|
|
516
500
|
//#endregion
|
|
517
501
|
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/projection/utils/each-axis.mjs
|
|
518
|
-
function
|
|
502
|
+
function J(e) {
|
|
519
503
|
return [e("x"), e("y")];
|
|
520
504
|
}
|
|
521
505
|
//#endregion
|
|
522
506
|
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/projection/styles/transform.mjs
|
|
523
|
-
function
|
|
507
|
+
function gn(e, t, n) {
|
|
524
508
|
let r = "", i = e.x.translate / t.x, a = e.y.translate / t.y, o = n?.z || 0;
|
|
525
509
|
if ((i || a || o) && (r = `translate3d(${i}px, ${a}px, ${o}px) `), (t.x !== 1 || t.y !== 1) && (r += `scale(${1 / t.x}, ${1 / t.y}) `), n) {
|
|
526
510
|
let { transformPerspective: e, rotate: t, pathRotation: i, rotateX: a, rotateY: o, skewX: s, skewY: c } = n;
|
|
@@ -531,80 +515,80 @@ function jn(e, t, n) {
|
|
|
531
515
|
}
|
|
532
516
|
//#endregion
|
|
533
517
|
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/projection/animation/mix-values.mjs
|
|
534
|
-
var
|
|
518
|
+
var _n = [
|
|
535
519
|
"borderTopLeftRadius",
|
|
536
520
|
"borderTopRightRadius",
|
|
537
521
|
"borderBottomLeftRadius",
|
|
538
522
|
"borderBottomRightRadius"
|
|
539
|
-
],
|
|
540
|
-
function
|
|
541
|
-
i ? (e.opacity =
|
|
542
|
-
for (let i = 0; i <
|
|
543
|
-
let a =
|
|
544
|
-
o === void 0 && s === void 0 || (o ||= 0, s ||= 0, o === 0 || s === 0 ||
|
|
523
|
+
], vn = _n.length, yn = (e) => typeof e == "string" ? parseFloat(e) : e, bn = (e) => typeof e == "number" || Te.test(e);
|
|
524
|
+
function xn(e, t, n, r, i, a) {
|
|
525
|
+
i ? (e.opacity = A(0, n.opacity ?? 1, Cn(r)), e.opacityExit = A(t.opacity ?? 1, 0, wn(r))) : a && (e.opacity = A(t.opacity ?? 1, n.opacity ?? 1, r));
|
|
526
|
+
for (let i = 0; i < vn; i++) {
|
|
527
|
+
let a = _n[i], o = Sn(t, a), s = Sn(n, a);
|
|
528
|
+
o === void 0 && s === void 0 || (o ||= 0, s ||= 0, o === 0 || s === 0 || bn(o) === bn(s) ? (e[a] = Math.max(A(yn(o), yn(s), r), 0), (T.test(s) || T.test(o)) && (e[a] += "%")) : e[a] = s);
|
|
545
529
|
}
|
|
546
|
-
(t.rotate || n.rotate) && (e.rotate =
|
|
530
|
+
(t.rotate || n.rotate) && (e.rotate = A(t.rotate || 0, n.rotate || 0, r));
|
|
547
531
|
}
|
|
548
|
-
function
|
|
532
|
+
function Sn(e, t) {
|
|
549
533
|
return e[t] === void 0 ? e.borderRadius : e[t];
|
|
550
534
|
}
|
|
551
|
-
var
|
|
552
|
-
function
|
|
553
|
-
return (r) => r < e ? 0 : r > t ? 1 : n(
|
|
535
|
+
var Cn = /* @__PURE__ */ Tn(0, .5, He), wn = /* @__PURE__ */ Tn(.5, .95, s);
|
|
536
|
+
function Tn(e, t, n) {
|
|
537
|
+
return (r) => r < e ? 0 : r > t ? 1 : n(S(e, t, r));
|
|
554
538
|
}
|
|
555
539
|
//#endregion
|
|
556
540
|
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/events/add-dom-event.mjs
|
|
557
|
-
function
|
|
541
|
+
function Y(e, t, n, r = { passive: !0 }) {
|
|
558
542
|
return e.addEventListener(t, n, r), () => e.removeEventListener(t, n);
|
|
559
543
|
}
|
|
560
544
|
//#endregion
|
|
561
545
|
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/projection/utils/compare-by-depth.mjs
|
|
562
|
-
var
|
|
546
|
+
var En = (e, t) => e.depth - t.depth, Dn = class {
|
|
563
547
|
constructor() {
|
|
564
548
|
this.children = [], this.isDirty = !1;
|
|
565
549
|
}
|
|
566
550
|
add(e) {
|
|
567
|
-
|
|
551
|
+
_(this.children, e), this.isDirty = !0;
|
|
568
552
|
}
|
|
569
553
|
remove(e) {
|
|
570
|
-
|
|
554
|
+
b(this.children, e), this.isDirty = !0;
|
|
571
555
|
}
|
|
572
556
|
forEach(e) {
|
|
573
|
-
this.isDirty && this.children.sort(
|
|
557
|
+
this.isDirty && this.children.sort(En), this.isDirty = !1, this.children.forEach(e);
|
|
574
558
|
}
|
|
575
559
|
};
|
|
576
560
|
//#endregion
|
|
577
561
|
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/utils/delay.mjs
|
|
578
|
-
function
|
|
579
|
-
let n =
|
|
562
|
+
function On(e, t) {
|
|
563
|
+
let n = pe.now(), r = ({ timestamp: i }) => {
|
|
580
564
|
let a = i - n;
|
|
581
|
-
a >= t && (
|
|
565
|
+
a >= t && (E(r), e(a - t));
|
|
582
566
|
};
|
|
583
|
-
return
|
|
567
|
+
return k.setup(r, !0), () => E(r);
|
|
584
568
|
}
|
|
585
569
|
//#endregion
|
|
586
570
|
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/value/utils/resolve-motion-value.mjs
|
|
587
|
-
function
|
|
588
|
-
return
|
|
571
|
+
function kn(e) {
|
|
572
|
+
return m(e) ? e.get() : e;
|
|
589
573
|
}
|
|
590
574
|
//#endregion
|
|
591
575
|
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/projection/shared/stack.mjs
|
|
592
|
-
var
|
|
576
|
+
var An = class {
|
|
593
577
|
constructor() {
|
|
594
578
|
this.members = [];
|
|
595
579
|
}
|
|
596
580
|
add(e) {
|
|
597
|
-
|
|
581
|
+
_(this.members, e);
|
|
598
582
|
for (let t = this.members.length - 1; t >= 0; t--) {
|
|
599
583
|
let n = this.members[t];
|
|
600
584
|
if (n === e || n === this.lead || n === this.prevLead) continue;
|
|
601
585
|
let r = n.instance;
|
|
602
|
-
(!r || r.isConnected === !1) && !n.snapshot && (
|
|
586
|
+
(!r || r.isConnected === !1) && !n.snapshot && (b(this.members, n), n.unmount());
|
|
603
587
|
}
|
|
604
588
|
e.scheduleRender();
|
|
605
589
|
}
|
|
606
590
|
remove(e) {
|
|
607
|
-
if (
|
|
591
|
+
if (b(this.members, e), e === this.prevLead && (this.prevLead = void 0), e === this.lead) {
|
|
608
592
|
let e = this.members[this.members.length - 1];
|
|
609
593
|
e && this.promote(e);
|
|
610
594
|
}
|
|
@@ -635,51 +619,51 @@ var Gn = class {
|
|
|
635
619
|
removeLeadSnapshot() {
|
|
636
620
|
this.lead?.snapshot && (this.lead.snapshot = void 0);
|
|
637
621
|
}
|
|
638
|
-
},
|
|
622
|
+
}, jn = {
|
|
639
623
|
hasAnimatedSinceResize: !0,
|
|
640
624
|
hasEverUpdated: !1
|
|
641
|
-
},
|
|
625
|
+
}, X = {
|
|
642
626
|
nodes: 0,
|
|
643
627
|
calculatedTargetDeltas: 0,
|
|
644
628
|
calculatedProjections: 0
|
|
645
|
-
},
|
|
629
|
+
}, Mn = [
|
|
646
630
|
"",
|
|
647
631
|
"X",
|
|
648
632
|
"Y",
|
|
649
633
|
"Z"
|
|
650
|
-
],
|
|
651
|
-
function
|
|
634
|
+
], Nn = 1e3, Pn = 0;
|
|
635
|
+
function Fn(e, t, n, r) {
|
|
652
636
|
let { latestValues: i } = t;
|
|
653
637
|
i[e] && (n[e] = i[e], t.setStaticValue(e, 0), r && (r[e] = 0));
|
|
654
638
|
}
|
|
655
|
-
function
|
|
639
|
+
function In(e) {
|
|
656
640
|
if (e.hasCheckedOptimisedAppear = !0, e.root === e) return;
|
|
657
641
|
let { visualElement: t } = e.options;
|
|
658
642
|
if (!t) return;
|
|
659
|
-
let n =
|
|
643
|
+
let n = ie(t);
|
|
660
644
|
if (window.MotionHasOptimisedAnimation(n, "transform")) {
|
|
661
645
|
let { layout: t, layoutId: r } = e.options;
|
|
662
|
-
window.MotionCancelOptimisedAnimation(n, "transform",
|
|
646
|
+
window.MotionCancelOptimisedAnimation(n, "transform", k, !(t || r));
|
|
663
647
|
}
|
|
664
648
|
let { parent: r } = e;
|
|
665
|
-
r && !r.hasCheckedOptimisedAppear &&
|
|
649
|
+
r && !r.hasCheckedOptimisedAppear && In(r);
|
|
666
650
|
}
|
|
667
|
-
function
|
|
651
|
+
function Ln({ attachResizeListener: e, defaultParent: t, measureScroll: n, checkIsScrollRoot: r, resetTransform: i }) {
|
|
668
652
|
return class {
|
|
669
653
|
constructor(e = {}, n = t?.()) {
|
|
670
|
-
this.id =
|
|
654
|
+
this.id = Pn++, this.animationId = 0, this.animationCommitId = 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 = {
|
|
671
655
|
x: 1,
|
|
672
656
|
y: 1
|
|
673
657
|
}, this.eventHandlers = /* @__PURE__ */ new Map(), this.hasTreeAnimated = !1, this.layoutVersion = 0, this.updateScheduled = !1, this.scheduleUpdate = () => this.update(), this.projectionUpdateScheduled = !1, this.checkUpdateFailed = () => {
|
|
674
658
|
this.isUpdating && (this.isUpdating = !1, this.clearAllSnapshots());
|
|
675
659
|
}, this.updateProjection = () => {
|
|
676
|
-
this.projectionUpdateScheduled = !1,
|
|
660
|
+
this.projectionUpdateScheduled = !1, D.value && (X.nodes = X.calculatedTargetDeltas = X.calculatedProjections = 0), this.nodes.forEach(Bn), this.nodes.forEach(Yn), this.nodes.forEach(Xn), this.nodes.forEach(Vn), D.addProjectionMetrics && D.addProjectionMetrics(X);
|
|
677
661
|
}, this.resolvedRelativeTargetAt = 0, this.linkedParentVersion = 0, this.hasProjected = !1, this.isVisible = !0, this.animationProgress = 0, this.sharedNodes = /* @__PURE__ */ new Map(), this.latestValues = e, this.root = n ? n.root || n : this, this.path = n ? [...n.path, n] : [], this.parent = n, this.depth = n ? n.depth + 1 : 0;
|
|
678
662
|
for (let e = 0; e < this.path.length; e++) this.path[e].shouldResetTransform = !0;
|
|
679
|
-
this.root === this && (this.nodes = new
|
|
663
|
+
this.root === this && (this.nodes = new Dn());
|
|
680
664
|
}
|
|
681
665
|
addEventListener(e, t) {
|
|
682
|
-
return this.eventHandlers.has(e) || this.eventHandlers.set(e, new
|
|
666
|
+
return this.eventHandlers.has(e) || this.eventHandlers.set(e, new Re()), this.eventHandlers.get(e).add(t);
|
|
683
667
|
}
|
|
684
668
|
notifyListeners(e, ...t) {
|
|
685
669
|
let n = this.eventHandlers.get(e);
|
|
@@ -690,15 +674,15 @@ function Qn({ attachResizeListener: e, defaultParent: t, measureScroll: r, check
|
|
|
690
674
|
}
|
|
691
675
|
mount(t) {
|
|
692
676
|
if (this.instance) return;
|
|
693
|
-
this.isSVG =
|
|
677
|
+
this.isSVG = Ue(t) && !te(t), this.instance = t;
|
|
694
678
|
let { layoutId: n, layout: r, visualElement: i } = this.options;
|
|
695
679
|
if (i && !i.current && i.mount(t), this.root.nodes.add(this), this.parent && this.parent.children.add(this), this.root.hasTreeAnimated && (r || n) && (this.isLayoutDirty = !0), e) {
|
|
696
680
|
let n, r = 0, i = () => this.root.updateBlockedByResize = !1;
|
|
697
|
-
|
|
681
|
+
k.read(() => {
|
|
698
682
|
r = window.innerWidth;
|
|
699
683
|
}), e(t, () => {
|
|
700
684
|
let e = window.innerWidth;
|
|
701
|
-
e !== r && (r = e, this.root.updateBlockedByResize = !0, n && n(), n =
|
|
685
|
+
e !== r && (r = e, this.root.updateBlockedByResize = !0, n && n(), n = On(i, 250), jn.hasAnimatedSinceResize && (jn.hasAnimatedSinceResize = !1, this.nodes.forEach(Jn)));
|
|
702
686
|
});
|
|
703
687
|
}
|
|
704
688
|
n && this.root.registerSharedNode(n, this), this.options.animate !== !1 && i && (n || r) && this.addEventListener("didUpdate", ({ delta: e, hasLayoutChanged: t, hasRelativeLayoutChanged: n, layout: r }) => {
|
|
@@ -706,23 +690,23 @@ function Qn({ attachResizeListener: e, defaultParent: t, measureScroll: r, check
|
|
|
706
690
|
this.target = void 0, this.relativeTarget = void 0;
|
|
707
691
|
return;
|
|
708
692
|
}
|
|
709
|
-
let a = this.options.transition || i.getDefaultTransition() ||
|
|
693
|
+
let a = this.options.transition || i.getDefaultTransition() || rr, { onLayoutAnimationStart: o, onLayoutAnimationComplete: s } = i.getProps(), c = !this.targetLayout || !pn(this.targetLayout, r), l = !t && n;
|
|
710
694
|
if (this.options.layoutRoot || this.resumeFrom || l || t && (c || !this.currentAnimation)) {
|
|
711
695
|
this.resumeFrom && (this.resumingFrom = this.resumeFrom, this.resumingFrom.resumingFrom = void 0);
|
|
712
696
|
let t = {
|
|
713
|
-
...
|
|
697
|
+
...le(a, "layout"),
|
|
714
698
|
onPlay: o,
|
|
715
699
|
onComplete: s
|
|
716
700
|
};
|
|
717
701
|
(i.shouldReduceMotion || this.options.layoutRoot) && (t.delay = 0, t.type = !1), this.startAnimation(t), this.setAnimationOrigin(e, l, t.path);
|
|
718
|
-
} else t ||
|
|
702
|
+
} else t || Jn(this), this.isLead() && this.options.onExitComplete && this.options.onExitComplete();
|
|
719
703
|
this.targetLayout = r;
|
|
720
704
|
});
|
|
721
705
|
}
|
|
722
706
|
unmount() {
|
|
723
707
|
this.options.layoutId && this.willUpdate(), this.root.nodes.remove(this);
|
|
724
708
|
let e = this.getStack();
|
|
725
|
-
e && e.remove(this), this.parent && this.parent.children.delete(this), this.instance = void 0, this.eventHandlers.clear(),
|
|
709
|
+
e && e.remove(this), this.parent && this.parent.children.delete(this), this.instance = void 0, this.eventHandlers.clear(), E(this.updateProjection);
|
|
726
710
|
}
|
|
727
711
|
blockUpdate() {
|
|
728
712
|
this.updateManuallyBlocked = !0;
|
|
@@ -737,7 +721,7 @@ function Qn({ attachResizeListener: e, defaultParent: t, measureScroll: r, check
|
|
|
737
721
|
return this.isAnimationBlocked || this.parent && this.parent.isTreeAnimationBlocked() || !1;
|
|
738
722
|
}
|
|
739
723
|
startUpdate() {
|
|
740
|
-
this.isUpdateBlocked() || (this.isUpdating = !0, this.nodes && this.nodes.forEach(
|
|
724
|
+
this.isUpdateBlocked() || (this.isUpdating = !0, this.nodes && this.nodes.forEach(Zn), this.animationId++);
|
|
741
725
|
}
|
|
742
726
|
getTransformTemplate() {
|
|
743
727
|
let { visualElement: e } = this.options;
|
|
@@ -748,7 +732,7 @@ function Qn({ attachResizeListener: e, defaultParent: t, measureScroll: r, check
|
|
|
748
732
|
this.options.onExitComplete && this.options.onExitComplete();
|
|
749
733
|
return;
|
|
750
734
|
}
|
|
751
|
-
if (window.MotionCancelOptimisedAnimation && !this.hasCheckedOptimisedAppear &&
|
|
735
|
+
if (window.MotionCancelOptimisedAnimation && !this.hasCheckedOptimisedAppear && In(this), !this.root.isUpdating && this.root.startUpdate(), this.isLayoutDirty) return;
|
|
752
736
|
this.isLayoutDirty = !0;
|
|
753
737
|
for (let e = 0; e < this.path.length; e++) {
|
|
754
738
|
let t = this.path[e];
|
|
@@ -762,28 +746,28 @@ function Qn({ attachResizeListener: e, defaultParent: t, measureScroll: r, check
|
|
|
762
746
|
update() {
|
|
763
747
|
if (this.updateScheduled = !1, this.isUpdateBlocked()) {
|
|
764
748
|
let e = this.updateBlockedByResize;
|
|
765
|
-
this.unblockUpdate(), this.updateBlockedByResize = !1, this.clearAllSnapshots(), e && this.nodes.forEach(
|
|
749
|
+
this.unblockUpdate(), this.updateBlockedByResize = !1, this.clearAllSnapshots(), e && this.nodes.forEach(Wn), this.nodes.forEach(Un);
|
|
766
750
|
return;
|
|
767
751
|
}
|
|
768
752
|
if (this.animationId <= this.animationCommitId) {
|
|
769
|
-
this.nodes.forEach(
|
|
753
|
+
this.nodes.forEach(Gn);
|
|
770
754
|
return;
|
|
771
755
|
}
|
|
772
|
-
this.animationCommitId = this.animationId, this.isUpdating ? (this.isUpdating = !1, this.nodes.forEach(
|
|
773
|
-
let e =
|
|
774
|
-
|
|
756
|
+
this.animationCommitId = this.animationId, this.isUpdating ? (this.isUpdating = !1, this.nodes.forEach(Kn), this.nodes.forEach(qn), this.nodes.forEach(Rn), this.nodes.forEach(zn)) : this.nodes.forEach(Gn), this.clearAllSnapshots();
|
|
757
|
+
let e = pe.now();
|
|
758
|
+
O.delta = xe(0, 1e3 / 60, e - O.timestamp), O.timestamp = e, O.isProcessing = !0, ve.update.process(O), ve.preRender.process(O), ve.render.process(O), O.isProcessing = !1;
|
|
775
759
|
}
|
|
776
760
|
didUpdate() {
|
|
777
|
-
this.updateScheduled || (this.updateScheduled = !0,
|
|
761
|
+
this.updateScheduled || (this.updateScheduled = !0, a.read(this.scheduleUpdate));
|
|
778
762
|
}
|
|
779
763
|
clearAllSnapshots() {
|
|
780
|
-
this.nodes.forEach(
|
|
764
|
+
this.nodes.forEach(Hn), this.sharedNodes.forEach(Qn);
|
|
781
765
|
}
|
|
782
766
|
scheduleUpdateProjection() {
|
|
783
|
-
this.projectionUpdateScheduled || (this.projectionUpdateScheduled = !0,
|
|
767
|
+
this.projectionUpdateScheduled || (this.projectionUpdateScheduled = !0, k.preRender(this.updateProjection, !1, !0));
|
|
784
768
|
}
|
|
785
769
|
scheduleCheckAfterUnmount() {
|
|
786
|
-
|
|
770
|
+
k.postRender(() => {
|
|
787
771
|
this.isLayoutDirty ? this.root.didUpdate() : this.root.checkUpdateFailed();
|
|
788
772
|
});
|
|
789
773
|
}
|
|
@@ -794,31 +778,31 @@ function Qn({ attachResizeListener: e, defaultParent: t, measureScroll: r, check
|
|
|
794
778
|
if (!this.instance || (this.updateScroll(), !(this.options.alwaysMeasureLayout && this.isLead()) && !this.isLayoutDirty)) return;
|
|
795
779
|
if (this.resumeFrom && !this.resumeFrom.instance) for (let e = 0; e < this.path.length; e++) this.path[e].updateScroll();
|
|
796
780
|
let e = this.layout;
|
|
797
|
-
this.layout = this.measure(!1), this.layoutVersion++, this.layoutCorrected ||=
|
|
781
|
+
this.layout = this.measure(!1), this.layoutVersion++, this.layoutCorrected ||= f(), this.isLayoutDirty = !1, this.projectionDelta = void 0, this.notifyListeners("measure", this.layout.layoutBox);
|
|
798
782
|
let { visualElement: t } = this.options;
|
|
799
783
|
t && t.notify("LayoutMeasure", this.layout.layoutBox, e ? e.layoutBox : void 0);
|
|
800
784
|
}
|
|
801
785
|
updateScroll(e = "measure") {
|
|
802
786
|
let t = !!(this.options.layoutScroll && this.instance);
|
|
803
787
|
if (this.scroll && this.scroll.animationId === this.root.animationId && this.scroll.phase === e && (t = !1), t && this.instance) {
|
|
804
|
-
let t =
|
|
788
|
+
let t = r(this.instance);
|
|
805
789
|
this.scroll = {
|
|
806
790
|
animationId: this.root.animationId,
|
|
807
791
|
phase: e,
|
|
808
792
|
isRoot: t,
|
|
809
|
-
offset:
|
|
793
|
+
offset: n(this.instance),
|
|
810
794
|
wasRoot: this.scroll ? this.scroll.isRoot : t
|
|
811
795
|
};
|
|
812
796
|
}
|
|
813
797
|
}
|
|
814
798
|
resetTransform() {
|
|
815
|
-
if (!
|
|
816
|
-
let e = this.isLayoutDirty || this.shouldResetTransform || this.options.alwaysMeasureLayout, t = this.projectionDelta && !
|
|
817
|
-
e && this.instance && (t ||
|
|
799
|
+
if (!i) return;
|
|
800
|
+
let e = this.isLayoutDirty || this.shouldResetTransform || this.options.alwaysMeasureLayout, t = this.projectionDelta && !ln(this.projectionDelta), n = this.getTransformTemplate(), r = n ? n(this.latestValues, "") : void 0, a = r !== this.prevTransformTemplateValue;
|
|
801
|
+
e && this.instance && (t || w(this.latestValues) || a) && (i(this.instance, r), this.shouldResetTransform = !1, this.scheduleRender());
|
|
818
802
|
}
|
|
819
803
|
measure(e = !0) {
|
|
820
804
|
let t = this.measurePageBox(), n = this.removeElementScroll(t);
|
|
821
|
-
return e && (n = this.removeTransform(n)),
|
|
805
|
+
return e && (n = this.removeTransform(n)), sr(n), {
|
|
822
806
|
animationId: this.root.animationId,
|
|
823
807
|
measuredBox: t,
|
|
824
808
|
layoutBox: n,
|
|
@@ -828,42 +812,42 @@ function Qn({ attachResizeListener: e, defaultParent: t, measureScroll: r, check
|
|
|
828
812
|
}
|
|
829
813
|
measurePageBox() {
|
|
830
814
|
let { visualElement: e } = this.options;
|
|
831
|
-
if (!e) return
|
|
815
|
+
if (!e) return f();
|
|
832
816
|
let t = e.measureViewportBox();
|
|
833
|
-
if (!(this.scroll?.wasRoot || this.path.some(
|
|
817
|
+
if (!(this.scroll?.wasRoot || this.path.some(lr))) {
|
|
834
818
|
let { scroll: e } = this.root;
|
|
835
|
-
e && (
|
|
819
|
+
e && (C(t.x, e.offset.x), C(t.y, e.offset.y));
|
|
836
820
|
}
|
|
837
821
|
return t;
|
|
838
822
|
}
|
|
839
823
|
removeElementScroll(e) {
|
|
840
|
-
let t =
|
|
824
|
+
let t = f();
|
|
841
825
|
if (W(t, e), this.scroll?.wasRoot) return t;
|
|
842
826
|
for (let n = 0; n < this.path.length; n++) {
|
|
843
827
|
let r = this.path[n], { scroll: i, options: a } = r;
|
|
844
|
-
r !== this.root && i && a.layoutScroll && (i.wasRoot && W(t, e),
|
|
828
|
+
r !== this.root && i && a.layoutScroll && (i.wasRoot && W(t, e), C(t.x, i.offset.x), C(t.y, i.offset.y));
|
|
845
829
|
}
|
|
846
830
|
return t;
|
|
847
831
|
}
|
|
848
832
|
applyTransform(e, t = !1, n) {
|
|
849
|
-
let r = n ||
|
|
833
|
+
let r = n || f();
|
|
850
834
|
W(r, e);
|
|
851
835
|
for (let e = 0; e < this.path.length; e++) {
|
|
852
836
|
let n = this.path[e];
|
|
853
|
-
!t && n.options.layoutScroll && n.scroll && n !== n.root && (
|
|
837
|
+
!t && n.options.layoutScroll && n.scroll && n !== n.root && (C(r.x, -n.scroll.offset.x), C(r.y, -n.scroll.offset.y)), w(n.latestValues) && ge(r, n.latestValues, n.layout?.layoutBox);
|
|
854
838
|
}
|
|
855
|
-
return
|
|
839
|
+
return w(this.latestValues) && ge(r, this.latestValues, this.layout?.layoutBox), r;
|
|
856
840
|
}
|
|
857
841
|
removeTransform(e) {
|
|
858
|
-
let t =
|
|
842
|
+
let t = f();
|
|
859
843
|
W(t, e);
|
|
860
844
|
for (let e = 0; e < this.path.length; e++) {
|
|
861
845
|
let n = this.path[e];
|
|
862
|
-
if (!
|
|
846
|
+
if (!w(n.latestValues)) continue;
|
|
863
847
|
let r;
|
|
864
|
-
n.instance && (
|
|
848
|
+
n.instance && (Ve(n.latestValues) && n.updateSnapshot(), r = f(), W(r, n.measurePageBox())), sn(t, n.latestValues, n.snapshot?.layoutBox, r);
|
|
865
849
|
}
|
|
866
|
-
return
|
|
850
|
+
return w(this.latestValues) && sn(t, this.latestValues), t;
|
|
867
851
|
}
|
|
868
852
|
setTargetDelta(e) {
|
|
869
853
|
this.targetDelta = e, this.root.scheduleUpdateProjection(), this.isProjectionDirty = !0;
|
|
@@ -879,7 +863,7 @@ function Qn({ attachResizeListener: e, defaultParent: t, measureScroll: r, check
|
|
|
879
863
|
this.scroll = void 0, this.layout = void 0, this.snapshot = void 0, this.prevTransformTemplateValue = void 0, this.targetDelta = void 0, this.target = void 0, this.isLayoutDirty = !1;
|
|
880
864
|
}
|
|
881
865
|
forceRelativeParentToResolveTarget() {
|
|
882
|
-
this.relativeParent && this.relativeParent.resolvedRelativeTargetAt !==
|
|
866
|
+
this.relativeParent && this.relativeParent.resolvedRelativeTargetAt !== O.timestamp && this.relativeParent.resolveTargetDelta(!0);
|
|
883
867
|
}
|
|
884
868
|
resolveTargetDelta(e = !1) {
|
|
885
869
|
let t = this.getLead();
|
|
@@ -888,36 +872,36 @@ function Qn({ attachResizeListener: e, defaultParent: t, measureScroll: r, check
|
|
|
888
872
|
if (!(e || n && this.isSharedProjectionDirty || this.isProjectionDirty || this.parent?.isProjectionDirty || this.attemptToResolveRelativeTarget || this.root.updateBlockedByResize)) return;
|
|
889
873
|
let { layout: r, layoutId: i } = this.options;
|
|
890
874
|
if (!this.layout || !(r || i)) return;
|
|
891
|
-
this.resolvedRelativeTargetAt =
|
|
875
|
+
this.resolvedRelativeTargetAt = O.timestamp;
|
|
892
876
|
let a = this.getClosestProjectingParent();
|
|
893
|
-
a && this.linkedParentVersion !== a.layoutVersion && !a.options.layoutRoot && this.removeRelativeTarget(), !this.targetDelta && !this.relativeTarget && (this.options.layoutAnchor !== !1 && a && a.layout ? this.createRelativeTarget(a, this.layout.layoutBox, a.layout.layoutBox) : this.removeRelativeTarget()), !(!this.relativeTarget && !this.targetDelta) && (this.target || (this.target =
|
|
877
|
+
a && this.linkedParentVersion !== a.layoutVersion && !a.options.layoutRoot && this.removeRelativeTarget(), !this.targetDelta && !this.relativeTarget && (this.options.layoutAnchor !== !1 && a && a.layout ? this.createRelativeTarget(a, this.layout.layoutBox, a.layout.layoutBox) : this.removeRelativeTarget()), !(!this.relativeTarget && !this.targetDelta) && (this.target || (this.target = f(), this.targetWithTransforms = f()), this.relativeTarget && this.relativeTargetOrigin && this.relativeParent && this.relativeParent.target ? (this.forceRelativeParentToResolveTarget(), $t(this.target, this.relativeTarget, this.relativeParent.target, this.options.layoutAnchor || void 0)) : this.targetDelta ? (this.resumingFrom ? this.applyTransform(this.layout.layoutBox, !1, this.target) : W(this.target, this.layout.layoutBox), ke(this.target, this.targetDelta)) : W(this.target, this.layout.layoutBox), this.attemptToResolveRelativeTarget && (this.attemptToResolveRelativeTarget = !1, this.options.layoutAnchor !== !1 && a && !!a.resumingFrom == !!this.resumingFrom && !a.options.layoutScroll && a.target && this.animationProgress !== 1 ? this.createRelativeTarget(a, this.target, a.target) : this.relativeParent = this.relativeTarget = void 0), D.value && X.calculatedTargetDeltas++);
|
|
894
878
|
}
|
|
895
879
|
getClosestProjectingParent() {
|
|
896
|
-
if (!(!this.parent ||
|
|
880
|
+
if (!(!this.parent || Ve(this.parent.latestValues) || Ie(this.parent.latestValues))) return this.parent.isProjecting() ? this.parent : this.parent.getClosestProjectingParent();
|
|
897
881
|
}
|
|
898
882
|
isProjecting() {
|
|
899
883
|
return !!((this.relativeTarget || this.targetDelta || this.options.layoutRoot) && this.layout);
|
|
900
884
|
}
|
|
901
885
|
createRelativeTarget(e, t, n) {
|
|
902
|
-
this.relativeParent = e, this.linkedParentVersion = e.layoutVersion, this.forceRelativeParentToResolveTarget(), this.relativeTarget =
|
|
886
|
+
this.relativeParent = e, this.linkedParentVersion = e.layoutVersion, this.forceRelativeParentToResolveTarget(), this.relativeTarget = f(), this.relativeTargetOrigin = f(), q(this.relativeTargetOrigin, t, n, this.options.layoutAnchor || void 0), W(this.relativeTarget, this.relativeTargetOrigin);
|
|
903
887
|
}
|
|
904
888
|
removeRelativeTarget() {
|
|
905
889
|
this.relativeParent = this.relativeTarget = void 0;
|
|
906
890
|
}
|
|
907
891
|
calcProjection() {
|
|
908
892
|
let e = this.getLead(), t = !!this.resumingFrom || this !== e, n = !0;
|
|
909
|
-
if ((this.isProjectionDirty || this.parent?.isProjectionDirty) && (n = !1), t && (this.isSharedProjectionDirty || this.isTransformDirty) && (n = !1), this.resolvedRelativeTargetAt ===
|
|
893
|
+
if ((this.isProjectionDirty || this.parent?.isProjectionDirty) && (n = !1), t && (this.isSharedProjectionDirty || this.isTransformDirty) && (n = !1), this.resolvedRelativeTargetAt === O.timestamp && (n = !1), n) return;
|
|
910
894
|
let { layout: r, layoutId: i } = this.options;
|
|
911
895
|
if (this.isTreeAnimating = !!(this.parent && this.parent.isTreeAnimating || this.currentAnimation || this.pendingAnimation), this.isTreeAnimating || (this.targetDelta = this.relativeTarget = void 0), !this.layout || !(r || i)) return;
|
|
912
896
|
W(this.layoutCorrected, this.layout.layoutBox);
|
|
913
897
|
let a = this.treeScale.x, o = this.treeScale.y;
|
|
914
|
-
|
|
898
|
+
Ee(this.layoutCorrected, this.treeScale, this.path, t), e.layout && !e.target && (this.treeScale.x !== 1 || this.treeScale.y !== 1) && (e.target = e.layout.layoutBox, e.targetWithTransforms = f());
|
|
915
899
|
let { target: s } = e;
|
|
916
900
|
if (!s) {
|
|
917
901
|
this.prevProjectionDelta && (this.createProjectionDeltas(), this.scheduleRender());
|
|
918
902
|
return;
|
|
919
903
|
}
|
|
920
|
-
!this.projectionDelta || !this.prevProjectionDelta ? this.createProjectionDeltas() : (
|
|
904
|
+
!this.projectionDelta || !this.prevProjectionDelta ? this.createProjectionDeltas() : (Gt(this.prevProjectionDelta.x, this.projectionDelta.x), Gt(this.prevProjectionDelta.y, this.projectionDelta.y)), K(this.projectionDelta, this.layoutCorrected, s, this.latestValues), (this.treeScale.x !== a || this.treeScale.y !== o || !hn(this.projectionDelta.x, this.prevProjectionDelta.x) || !hn(this.projectionDelta.y, this.prevProjectionDelta.y)) && (this.hasProjected = !0, this.scheduleRender(), this.notifyListeners("projectionUpdate", s)), D.value && X.calculatedProjections++;
|
|
921
905
|
}
|
|
922
906
|
hide() {
|
|
923
907
|
this.isVisible = !1;
|
|
@@ -933,22 +917,22 @@ function Qn({ attachResizeListener: e, defaultParent: t, measureScroll: r, check
|
|
|
933
917
|
this.resumingFrom && !this.resumingFrom.instance && (this.resumingFrom = void 0);
|
|
934
918
|
}
|
|
935
919
|
createProjectionDeltas() {
|
|
936
|
-
this.prevProjectionDelta =
|
|
920
|
+
this.prevProjectionDelta = h(), this.projectionDelta = h(), this.projectionDeltaWithTransform = h();
|
|
937
921
|
}
|
|
938
922
|
setAnimationOrigin(e, t = !1, n) {
|
|
939
|
-
let r = this.snapshot, i = r ? r.latestValues : {}, a = { ...this.latestValues }, o =
|
|
923
|
+
let r = this.snapshot, i = r ? r.latestValues : {}, a = { ...this.latestValues }, o = h();
|
|
940
924
|
(!this.relativeParent || !this.relativeParent.options.layoutRoot) && (this.relativeTarget = this.relativeTargetOrigin = void 0), this.attemptToResolveRelativeTarget = !t;
|
|
941
|
-
let s =
|
|
925
|
+
let s = f(), c = (r ? r.source : void 0) !== (this.layout ? this.layout.source : void 0), l = this.getStack(), u = !l || l.members.length <= 1, d = !!(c && !u && this.options.crossfade === !0 && !this.path.some(nr));
|
|
942
926
|
this.animationProgress = 0;
|
|
943
|
-
let
|
|
927
|
+
let p, m = n?.interpolateProjection(e);
|
|
944
928
|
this.mixTargetDelta = (t) => {
|
|
945
|
-
let n = t / 1e3, r =
|
|
946
|
-
r ? (o.x.translate = r.x, o.x.scale =
|
|
929
|
+
let n = t / 1e3, r = m?.(n);
|
|
930
|
+
r ? (o.x.translate = r.x, o.x.scale = A(e.x.scale, 1, n), o.x.origin = e.x.origin, o.x.originPoint = e.x.originPoint, o.y.translate = r.y, o.y.scale = A(e.y.scale, 1, n), o.y.origin = e.y.origin, o.y.originPoint = e.y.originPoint) : ($n(o.x, e.x, n), $n(o.y, e.y, n)), this.setTargetDelta(o), this.relativeTarget && this.relativeTargetOrigin && this.layout && this.relativeParent && this.relativeParent.layout && (q(s, this.layout.layoutBox, this.relativeParent.layout.layoutBox, this.options.layoutAnchor || void 0), tr(this.relativeTarget, this.relativeTargetOrigin, s, n), p && dn(this.relativeTarget, p) && (this.isProjectionDirty = !1), p ||= f(), W(p, this.relativeTarget)), c && (this.animationValues = a, xn(a, i, this.latestValues, n, d, u)), r && r.rotate !== void 0 && (this.animationValues ||= a, this.animationValues.pathRotation = r.rotate), this.root.scheduleUpdateProjection(), this.scheduleRender(), this.animationProgress = n;
|
|
947
931
|
}, this.mixTargetDelta(this.options.layoutRoot ? 1e3 : 0);
|
|
948
932
|
}
|
|
949
933
|
startAnimation(e) {
|
|
950
|
-
this.notifyListeners("animationStart"), this.currentAnimation?.stop(), this.resumingFrom?.currentAnimation?.stop(), this.pendingAnimation &&= (
|
|
951
|
-
|
|
934
|
+
this.notifyListeners("animationStart"), this.currentAnimation?.stop(), this.resumingFrom?.currentAnimation?.stop(), this.pendingAnimation &&= (E(this.pendingAnimation), void 0), this.pendingAnimation = k.update(() => {
|
|
935
|
+
jn.hasAnimatedSinceResize = !0, Fe.layout++, this.motionValue ||= me(0), this.motionValue.jump(0, !1), this.currentAnimation = De(this.motionValue, [0, 1e3], {
|
|
952
936
|
...e,
|
|
953
937
|
velocity: 0,
|
|
954
938
|
isSync: !0,
|
|
@@ -956,10 +940,10 @@ function Qn({ attachResizeListener: e, defaultParent: t, measureScroll: r, check
|
|
|
956
940
|
this.mixTargetDelta(t), e.onUpdate && e.onUpdate(t);
|
|
957
941
|
},
|
|
958
942
|
onStop: () => {
|
|
959
|
-
|
|
943
|
+
Fe.layout--;
|
|
960
944
|
},
|
|
961
945
|
onComplete: () => {
|
|
962
|
-
|
|
946
|
+
Fe.layout--, e.onComplete && e.onComplete(), this.completeAnimation();
|
|
963
947
|
}
|
|
964
948
|
}), this.resumingFrom && (this.resumingFrom.currentAnimation = this.currentAnimation), this.pendingAnimation = void 0;
|
|
965
949
|
});
|
|
@@ -970,23 +954,23 @@ function Qn({ attachResizeListener: e, defaultParent: t, measureScroll: r, check
|
|
|
970
954
|
e && e.exitAnimationComplete(), this.resumingFrom = this.currentAnimation = this.animationValues = void 0, this.notifyListeners("animationComplete");
|
|
971
955
|
}
|
|
972
956
|
finishAnimation() {
|
|
973
|
-
this.currentAnimation && (this.mixTargetDelta && this.mixTargetDelta(
|
|
957
|
+
this.currentAnimation && (this.mixTargetDelta && this.mixTargetDelta(Nn), this.currentAnimation.stop()), this.completeAnimation();
|
|
974
958
|
}
|
|
975
959
|
applyTransformsToTarget() {
|
|
976
960
|
let e = this.getLead(), { targetWithTransforms: t, target: n, layout: r, latestValues: i } = e;
|
|
977
961
|
if (!(!t || !n || !r)) {
|
|
978
|
-
if (this !== e && this.layout && r &&
|
|
979
|
-
n = this.target ||
|
|
962
|
+
if (this !== e && this.layout && r && cr(this.options.animationType, this.layout.layoutBox, r.layoutBox)) {
|
|
963
|
+
n = this.target || f();
|
|
980
964
|
let t = G(this.layout.layoutBox.x);
|
|
981
965
|
n.x.min = e.target.x.min, n.x.max = n.x.min + t;
|
|
982
966
|
let r = G(this.layout.layoutBox.y);
|
|
983
967
|
n.y.min = e.target.y.min, n.y.max = n.y.min + r;
|
|
984
968
|
}
|
|
985
|
-
W(t, n),
|
|
969
|
+
W(t, n), ge(t, i), K(this.projectionDeltaWithTransform, this.layoutCorrected, t, i);
|
|
986
970
|
}
|
|
987
971
|
}
|
|
988
972
|
registerSharedNode(e, t) {
|
|
989
|
-
this.sharedNodes.has(e) || this.sharedNodes.set(e, new
|
|
973
|
+
this.sharedNodes.has(e) || this.sharedNodes.set(e, new An()), this.sharedNodes.get(e).add(t);
|
|
990
974
|
let n = t.options.initialPromotionConfig;
|
|
991
975
|
t.promote({
|
|
992
976
|
transition: n ? n.transition : void 0,
|
|
@@ -1023,8 +1007,8 @@ function Qn({ attachResizeListener: e, defaultParent: t, measureScroll: r, check
|
|
|
1023
1007
|
let t = !1, { latestValues: n } = e;
|
|
1024
1008
|
if ((n.z || n.rotate || n.rotateX || n.rotateY || n.rotateZ || n.skewX || n.skewY) && (t = !0), !t) return;
|
|
1025
1009
|
let r = {};
|
|
1026
|
-
n.z &&
|
|
1027
|
-
for (let t = 0; t <
|
|
1010
|
+
n.z && Fn("z", e, r, this.animationValues);
|
|
1011
|
+
for (let t = 0; t < Mn.length; t++) Fn(`rotate${Mn[t]}`, e, r, this.animationValues), Fn(`skew${Mn[t]}`, e, r, this.animationValues);
|
|
1028
1012
|
e.render();
|
|
1029
1013
|
for (let t in r) e.setStaticValue(t, r[t]), this.animationValues && (this.animationValues[t] = r[t]);
|
|
1030
1014
|
e.scheduleRender();
|
|
@@ -1037,71 +1021,71 @@ function Qn({ attachResizeListener: e, defaultParent: t, measureScroll: r, check
|
|
|
1037
1021
|
}
|
|
1038
1022
|
let n = this.getTransformTemplate();
|
|
1039
1023
|
if (this.needsReset) {
|
|
1040
|
-
this.needsReset = !1, e.visibility = "", e.opacity = "", e.pointerEvents =
|
|
1024
|
+
this.needsReset = !1, e.visibility = "", e.opacity = "", e.pointerEvents = kn(t?.pointerEvents) || "", e.transform = n ? n(this.latestValues, "") : "none";
|
|
1041
1025
|
return;
|
|
1042
1026
|
}
|
|
1043
1027
|
let r = this.getLead();
|
|
1044
1028
|
if (!this.projectionDelta || !this.layout || !r.target) {
|
|
1045
|
-
this.options.layoutId && (e.opacity = this.latestValues.opacity === void 0 ? 1 : this.latestValues.opacity, e.pointerEvents =
|
|
1029
|
+
this.options.layoutId && (e.opacity = this.latestValues.opacity === void 0 ? 1 : this.latestValues.opacity, e.pointerEvents = kn(t?.pointerEvents) || ""), this.hasProjected && !w(this.latestValues) && (e.transform = n ? n({}, "") : "none", this.hasProjected = !1);
|
|
1046
1030
|
return;
|
|
1047
1031
|
}
|
|
1048
1032
|
e.visibility = "";
|
|
1049
1033
|
let i = r.animationValues || r.latestValues;
|
|
1050
1034
|
this.applyTransformsToTarget();
|
|
1051
|
-
let a =
|
|
1035
|
+
let a = gn(this.projectionDeltaWithTransform, this.treeScale, i);
|
|
1052
1036
|
n && (a = n(i, a)), e.transform = a;
|
|
1053
1037
|
let { x: o, y: s } = this.projectionDelta;
|
|
1054
1038
|
e.transformOrigin = `${o.origin * 100}% ${s.origin * 100}% 0`, r.animationValues ? e.opacity = r === this ? i.opacity ?? this.latestValues.opacity ?? 1 : this.preserveOpacity ? this.latestValues.opacity : i.opacityExit : e.opacity = r === this ? i.opacity === void 0 ? "" : i.opacity : i.opacityExit === void 0 ? 0 : i.opacityExit;
|
|
1055
|
-
for (let t in
|
|
1039
|
+
for (let t in Pe) {
|
|
1056
1040
|
if (i[t] === void 0) continue;
|
|
1057
|
-
let { correct: n, applyTo: o, isCSSVariable: s } =
|
|
1041
|
+
let { correct: n, applyTo: o, isCSSVariable: s } = Pe[t], c = a === "none" ? i[t] : n(i[t], r);
|
|
1058
1042
|
if (o) {
|
|
1059
1043
|
let t = o.length;
|
|
1060
1044
|
for (let n = 0; n < t; n++) e[o[n]] = c;
|
|
1061
1045
|
} else s ? this.options.visualElement.renderState.vars[t] = c : e[t] = c;
|
|
1062
1046
|
}
|
|
1063
|
-
this.options.layoutId && (e.pointerEvents = r === this ?
|
|
1047
|
+
this.options.layoutId && (e.pointerEvents = r === this ? kn(t?.pointerEvents) || "" : "none");
|
|
1064
1048
|
}
|
|
1065
1049
|
clearSnapshot() {
|
|
1066
1050
|
this.resumeFrom = this.snapshot = void 0;
|
|
1067
1051
|
}
|
|
1068
1052
|
resetTree() {
|
|
1069
|
-
this.root.nodes.forEach((e) => e.currentAnimation?.stop()), this.root.nodes.forEach(
|
|
1053
|
+
this.root.nodes.forEach((e) => e.currentAnimation?.stop()), this.root.nodes.forEach(Un), this.root.sharedNodes.clear();
|
|
1070
1054
|
}
|
|
1071
1055
|
};
|
|
1072
1056
|
}
|
|
1073
|
-
function
|
|
1057
|
+
function Rn(e) {
|
|
1074
1058
|
e.updateLayout();
|
|
1075
1059
|
}
|
|
1076
|
-
function
|
|
1060
|
+
function zn(e) {
|
|
1077
1061
|
let t = e.resumeFrom?.snapshot || e.snapshot;
|
|
1078
1062
|
if (e.isLead() && e.layout && t && e.hasListeners("didUpdate")) {
|
|
1079
1063
|
let { layoutBox: n, measuredBox: r } = e.layout, { animationType: i } = e.options, a = t.source !== e.layout.source;
|
|
1080
|
-
if (i === "size")
|
|
1064
|
+
if (i === "size") J((e) => {
|
|
1081
1065
|
let r = a ? t.measuredBox[e] : t.layoutBox[e], i = G(r);
|
|
1082
1066
|
r.min = n[e].min, r.max = r.min + i;
|
|
1083
1067
|
});
|
|
1084
1068
|
else if (i === "x" || i === "y") {
|
|
1085
1069
|
let e = i === "x" ? "y" : "x";
|
|
1086
|
-
|
|
1087
|
-
} else
|
|
1070
|
+
Wt(a ? t.measuredBox[e] : t.layoutBox[e], n[e]);
|
|
1071
|
+
} else cr(i, t.layoutBox, n) && J((r) => {
|
|
1088
1072
|
let i = a ? t.measuredBox[r] : t.layoutBox[r], o = G(n[r]);
|
|
1089
1073
|
i.max = i.min + o, e.relativeTarget && !e.currentAnimation && (e.isProjectionDirty = !0, e.relativeTarget[r].max = e.relativeTarget[r].min + o);
|
|
1090
1074
|
});
|
|
1091
|
-
let o =
|
|
1075
|
+
let o = h();
|
|
1092
1076
|
K(o, n, t.layoutBox);
|
|
1093
|
-
let s =
|
|
1077
|
+
let s = h();
|
|
1094
1078
|
a ? K(s, e.applyTransform(r, !0), t.measuredBox) : K(s, n, t.layoutBox);
|
|
1095
|
-
let c = !
|
|
1079
|
+
let c = !ln(o), l = !1;
|
|
1096
1080
|
if (!e.resumeFrom) {
|
|
1097
1081
|
let r = e.getClosestProjectingParent();
|
|
1098
1082
|
if (r && !r.resumeFrom) {
|
|
1099
1083
|
let { snapshot: i, layout: a } = r;
|
|
1100
1084
|
if (i && a) {
|
|
1101
|
-
let o = e.options.layoutAnchor || void 0, s =
|
|
1102
|
-
|
|
1103
|
-
let c =
|
|
1104
|
-
|
|
1085
|
+
let o = e.options.layoutAnchor || void 0, s = f();
|
|
1086
|
+
q(s, t.layoutBox, i.layoutBox, o);
|
|
1087
|
+
let c = f();
|
|
1088
|
+
q(c, n, a.layoutBox, o), pn(s, c) || (l = !0), r.options.layoutRoot && (e.relativeTarget = c, e.relativeTargetOrigin = s, e.relativeParent = r);
|
|
1105
1089
|
}
|
|
1106
1090
|
}
|
|
1107
1091
|
}
|
|
@@ -1111,7 +1095,7 @@ function er(e) {
|
|
|
1111
1095
|
delta: s,
|
|
1112
1096
|
layoutDelta: o,
|
|
1113
1097
|
hasLayoutChanged: c,
|
|
1114
|
-
hasRelativeLayoutChanged:
|
|
1098
|
+
hasRelativeLayoutChanged: l
|
|
1115
1099
|
});
|
|
1116
1100
|
} else if (e.isLead()) {
|
|
1117
1101
|
let { onExitComplete: t } = e.options;
|
|
@@ -1119,59 +1103,59 @@ function er(e) {
|
|
|
1119
1103
|
}
|
|
1120
1104
|
e.options.transition = void 0;
|
|
1121
1105
|
}
|
|
1122
|
-
function
|
|
1123
|
-
|
|
1106
|
+
function Bn(e) {
|
|
1107
|
+
D.value && X.nodes++, e.parent && (e.isProjecting() || (e.isProjectionDirty = e.parent.isProjectionDirty), e.isSharedProjectionDirty ||= !!(e.isProjectionDirty || e.parent.isProjectionDirty || e.parent.isSharedProjectionDirty), e.isTransformDirty ||= e.parent.isTransformDirty);
|
|
1124
1108
|
}
|
|
1125
|
-
function
|
|
1109
|
+
function Vn(e) {
|
|
1126
1110
|
e.isProjectionDirty = e.isSharedProjectionDirty = e.isTransformDirty = !1;
|
|
1127
1111
|
}
|
|
1128
|
-
function
|
|
1112
|
+
function Hn(e) {
|
|
1129
1113
|
e.clearSnapshot();
|
|
1130
1114
|
}
|
|
1131
|
-
function
|
|
1115
|
+
function Un(e) {
|
|
1132
1116
|
e.clearMeasurements();
|
|
1133
1117
|
}
|
|
1134
|
-
function
|
|
1118
|
+
function Wn(e) {
|
|
1135
1119
|
e.isLayoutDirty = !0, e.updateLayout();
|
|
1136
1120
|
}
|
|
1137
|
-
function
|
|
1121
|
+
function Gn(e) {
|
|
1138
1122
|
e.isLayoutDirty = !1;
|
|
1139
1123
|
}
|
|
1140
|
-
function
|
|
1124
|
+
function Kn(e) {
|
|
1141
1125
|
e.isAnimationBlocked && e.layout && !e.isLayoutDirty && (e.snapshot = e.layout, e.isLayoutDirty = !0);
|
|
1142
1126
|
}
|
|
1143
|
-
function
|
|
1127
|
+
function qn(e) {
|
|
1144
1128
|
let { visualElement: t } = e.options;
|
|
1145
1129
|
t && t.getProps().onBeforeLayoutMeasure && t.notify("BeforeLayoutMeasure"), e.resetTransform();
|
|
1146
1130
|
}
|
|
1147
|
-
function
|
|
1131
|
+
function Jn(e) {
|
|
1148
1132
|
e.finishAnimation(), e.targetDelta = e.relativeTarget = e.target = void 0, e.isProjectionDirty = !0;
|
|
1149
1133
|
}
|
|
1150
|
-
function
|
|
1134
|
+
function Yn(e) {
|
|
1151
1135
|
e.resolveTargetDelta();
|
|
1152
1136
|
}
|
|
1153
|
-
function
|
|
1137
|
+
function Xn(e) {
|
|
1154
1138
|
e.calcProjection();
|
|
1155
1139
|
}
|
|
1156
|
-
function
|
|
1140
|
+
function Zn(e) {
|
|
1157
1141
|
e.resetSkewAndRotation();
|
|
1158
1142
|
}
|
|
1159
|
-
function
|
|
1143
|
+
function Qn(e) {
|
|
1160
1144
|
e.removeLeadSnapshot();
|
|
1161
1145
|
}
|
|
1162
|
-
function
|
|
1163
|
-
e.translate =
|
|
1146
|
+
function $n(e, t, n) {
|
|
1147
|
+
e.translate = A(t.translate, 0, n), e.scale = A(t.scale, 1, n), e.origin = t.origin, e.originPoint = t.originPoint;
|
|
1164
1148
|
}
|
|
1165
|
-
function
|
|
1166
|
-
e.min =
|
|
1149
|
+
function er(e, t, n, r) {
|
|
1150
|
+
e.min = A(t.min, n.min, r), e.max = A(t.max, n.max, r);
|
|
1167
1151
|
}
|
|
1168
|
-
function
|
|
1169
|
-
|
|
1152
|
+
function tr(e, t, n, r) {
|
|
1153
|
+
er(e.x, t.x, n.x, r), er(e.y, t.y, n.y, r);
|
|
1170
1154
|
}
|
|
1171
|
-
function
|
|
1155
|
+
function nr(e) {
|
|
1172
1156
|
return e.animationValues && e.animationValues.opacityExit !== void 0;
|
|
1173
1157
|
}
|
|
1174
|
-
var
|
|
1158
|
+
var rr = {
|
|
1175
1159
|
duration: .45,
|
|
1176
1160
|
ease: [
|
|
1177
1161
|
.4,
|
|
@@ -1179,39 +1163,39 @@ var vr = {
|
|
|
1179
1163
|
.1,
|
|
1180
1164
|
1
|
|
1181
1165
|
]
|
|
1182
|
-
},
|
|
1183
|
-
function
|
|
1184
|
-
e.min =
|
|
1166
|
+
}, ir = (e) => typeof navigator < "u" && navigator.userAgent && navigator.userAgent.toLowerCase().includes(e), ar = ir("applewebkit/") && !ir("chrome/") ? Math.round : s;
|
|
1167
|
+
function or(e) {
|
|
1168
|
+
e.min = ar(e.min), e.max = ar(e.max);
|
|
1185
1169
|
}
|
|
1186
|
-
function
|
|
1187
|
-
|
|
1170
|
+
function sr(e) {
|
|
1171
|
+
or(e.x), or(e.y);
|
|
1188
1172
|
}
|
|
1189
|
-
function
|
|
1190
|
-
return e === "position" || e === "preserve-aspect" && !
|
|
1173
|
+
function cr(e, t, n) {
|
|
1174
|
+
return e === "position" || e === "preserve-aspect" && !Xt(mn(t), mn(n), .2);
|
|
1191
1175
|
}
|
|
1192
|
-
function
|
|
1176
|
+
function lr(e) {
|
|
1193
1177
|
return e !== e.root && e.scroll?.wasRoot;
|
|
1194
1178
|
}
|
|
1195
1179
|
//#endregion
|
|
1196
1180
|
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/projection/node/DocumentProjectionNode.mjs
|
|
1197
|
-
var
|
|
1198
|
-
attachResizeListener: (e, t) =>
|
|
1181
|
+
var ur = Ln({
|
|
1182
|
+
attachResizeListener: (e, t) => Y(e, "resize", t),
|
|
1199
1183
|
measureScroll: () => ({
|
|
1200
1184
|
x: document.documentElement.scrollLeft || document.body?.scrollLeft || 0,
|
|
1201
1185
|
y: document.documentElement.scrollTop || document.body?.scrollTop || 0
|
|
1202
1186
|
}),
|
|
1203
1187
|
checkIsScrollRoot: () => !0
|
|
1204
|
-
}),
|
|
1188
|
+
}), dr = { current: void 0 }, fr = Ln({
|
|
1205
1189
|
measureScroll: (e) => ({
|
|
1206
1190
|
x: e.scrollLeft,
|
|
1207
1191
|
y: e.scrollTop
|
|
1208
1192
|
}),
|
|
1209
1193
|
defaultParent: () => {
|
|
1210
|
-
if (!
|
|
1211
|
-
let e = new
|
|
1212
|
-
e.mount(window), e.setOptions({ layoutScroll: !0 }),
|
|
1194
|
+
if (!dr.current) {
|
|
1195
|
+
let e = new ur({});
|
|
1196
|
+
e.mount(window), e.setOptions({ layoutScroll: !0 }), dr.current = e;
|
|
1213
1197
|
}
|
|
1214
|
-
return
|
|
1198
|
+
return dr.current;
|
|
1215
1199
|
},
|
|
1216
1200
|
resetTransform: (e, t) => {
|
|
1217
1201
|
e.style.transform = t === void 0 ? "none" : t;
|
|
@@ -1219,129 +1203,15 @@ var Tr = Qn({
|
|
|
1219
1203
|
checkIsScrollRoot: (e) => window.getComputedStyle(e).position === "fixed"
|
|
1220
1204
|
});
|
|
1221
1205
|
//#endregion
|
|
1222
|
-
//#region ../../node_modules/.pnpm/framer-motion@12.40.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/utils/use-composed-ref.mjs
|
|
1223
|
-
function Or(e, t) {
|
|
1224
|
-
if (typeof e == "function") return e(t);
|
|
1225
|
-
e != null && (e.current = t);
|
|
1226
|
-
}
|
|
1227
|
-
function kr(...e) {
|
|
1228
|
-
return (t) => {
|
|
1229
|
-
let n = !1, r = e.map((e) => {
|
|
1230
|
-
let r = Or(e, t);
|
|
1231
|
-
return !n && typeof r == "function" && (n = !0), r;
|
|
1232
|
-
});
|
|
1233
|
-
if (n) return () => {
|
|
1234
|
-
for (let t = 0; t < r.length; t++) {
|
|
1235
|
-
let n = r[t];
|
|
1236
|
-
typeof n == "function" ? n() : Or(e[t], null);
|
|
1237
|
-
}
|
|
1238
|
-
};
|
|
1239
|
-
};
|
|
1240
|
-
}
|
|
1241
|
-
function Ar(...e) {
|
|
1242
|
-
return Be.useCallback(kr(...e), e);
|
|
1243
|
-
}
|
|
1244
|
-
//#endregion
|
|
1245
|
-
//#region ../../node_modules/.pnpm/framer-motion@12.40.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.mjs
|
|
1246
|
-
var jr = class extends Be.Component {
|
|
1247
|
-
getSnapshotBeforeUpdate(e) {
|
|
1248
|
-
let t = this.props.childRef.current;
|
|
1249
|
-
if (_t(t) && e.isPresent && !this.props.isPresent && this.props.pop !== !1) {
|
|
1250
|
-
let e = t.offsetParent, n = _t(e) && e.offsetWidth || 0, r = _t(e) && e.offsetHeight || 0, i = getComputedStyle(t), a = this.props.sizeRef.current;
|
|
1251
|
-
a.height = parseFloat(i.height), a.width = parseFloat(i.width), a.top = t.offsetTop, a.left = t.offsetLeft, a.right = n - a.width - a.left, a.bottom = r - a.height - a.top, a.direction = i.direction;
|
|
1252
|
-
}
|
|
1253
|
-
return null;
|
|
1254
|
-
}
|
|
1255
|
-
componentDidUpdate() {}
|
|
1256
|
-
render() {
|
|
1257
|
-
return this.props.children;
|
|
1258
|
-
}
|
|
1259
|
-
};
|
|
1260
|
-
function Mr({ children: e, isPresent: t, anchorX: n, anchorY: r, root: i, pop: a }) {
|
|
1261
|
-
let o = Ye(), s = F(null), c = F({
|
|
1262
|
-
width: 0,
|
|
1263
|
-
height: 0,
|
|
1264
|
-
top: 0,
|
|
1265
|
-
left: 0,
|
|
1266
|
-
right: 0,
|
|
1267
|
-
bottom: 0,
|
|
1268
|
-
direction: "ltr"
|
|
1269
|
-
}), { nonce: l } = N(ke), u = Ar(s, e.props?.ref ?? e?.ref);
|
|
1270
|
-
return Xe(() => {
|
|
1271
|
-
let { width: e, height: u, top: d, left: f, right: p, bottom: m, direction: h } = c.current;
|
|
1272
|
-
if (t || a === !1 || !s.current || !e || !u) return;
|
|
1273
|
-
let g = h === "rtl", _ = n === "left" ? g ? `right: ${p}` : `left: ${f}` : g ? `left: ${f}` : `right: ${p}`, v = r === "bottom" ? `bottom: ${m}` : `top: ${d}`;
|
|
1274
|
-
s.current.dataset.motionPopId = o;
|
|
1275
|
-
let y = document.createElement("style");
|
|
1276
|
-
l && (y.nonce = l);
|
|
1277
|
-
let b = i ?? document.head;
|
|
1278
|
-
return b.appendChild(y), y.sheet && y.sheet.insertRule(`
|
|
1279
|
-
[data-motion-pop-id="${o}"] {
|
|
1280
|
-
position: absolute !important;
|
|
1281
|
-
width: ${e}px !important;
|
|
1282
|
-
height: ${u}px !important;
|
|
1283
|
-
${_}px !important;
|
|
1284
|
-
${v}px !important;
|
|
1285
|
-
}
|
|
1286
|
-
`), () => {
|
|
1287
|
-
s.current?.removeAttribute("data-motion-pop-id"), b.contains(y) && b.removeChild(y);
|
|
1288
|
-
};
|
|
1289
|
-
}, [t]), I(jr, {
|
|
1290
|
-
isPresent: t,
|
|
1291
|
-
childRef: s,
|
|
1292
|
-
sizeRef: c,
|
|
1293
|
-
pop: a,
|
|
1294
|
-
children: a === !1 ? e : Be.cloneElement(e, { ref: u })
|
|
1295
|
-
});
|
|
1296
|
-
}
|
|
1297
|
-
//#endregion
|
|
1298
|
-
//#region ../../node_modules/.pnpm/framer-motion@12.40.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.mjs
|
|
1299
|
-
var Nr = ({ children: e, initial: t, isPresent: n, onExitComplete: r, custom: i, presenceAffectsLayout: a, mode: s, anchorX: c, anchorY: l, root: u }) => {
|
|
1300
|
-
let d = o(Pr), f = Ye(), p = !0, m = P(() => (p = !1, {
|
|
1301
|
-
id: f,
|
|
1302
|
-
initial: t,
|
|
1303
|
-
isPresent: n,
|
|
1304
|
-
custom: i,
|
|
1305
|
-
onExitComplete: (e) => {
|
|
1306
|
-
d.set(e, !0);
|
|
1307
|
-
for (let e of d.values()) if (!e) return;
|
|
1308
|
-
r && r();
|
|
1309
|
-
},
|
|
1310
|
-
register: (e) => (d.set(e, !1), () => d.delete(e))
|
|
1311
|
-
}), [
|
|
1312
|
-
n,
|
|
1313
|
-
d,
|
|
1314
|
-
r
|
|
1315
|
-
]);
|
|
1316
|
-
return a && p && (m = { ...m }), P(() => {
|
|
1317
|
-
d.forEach((e, t) => d.set(t, !1));
|
|
1318
|
-
}, [n]), Be.useEffect(() => {
|
|
1319
|
-
!n && !d.size && r && r();
|
|
1320
|
-
}, [n]), e = I(Mr, {
|
|
1321
|
-
pop: s === "popLayout",
|
|
1322
|
-
isPresent: n,
|
|
1323
|
-
anchorX: c,
|
|
1324
|
-
anchorY: l,
|
|
1325
|
-
root: u,
|
|
1326
|
-
children: e
|
|
1327
|
-
}), I(z.Provider, {
|
|
1328
|
-
value: m,
|
|
1329
|
-
children: e
|
|
1330
|
-
});
|
|
1331
|
-
};
|
|
1332
|
-
function Pr() {
|
|
1333
|
-
return /* @__PURE__ */ new Map();
|
|
1334
|
-
}
|
|
1335
|
-
//#endregion
|
|
1336
1206
|
//#region ../../node_modules/.pnpm/framer-motion@12.40.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.mjs
|
|
1337
|
-
function
|
|
1338
|
-
let t =
|
|
1207
|
+
function pr(e = !0) {
|
|
1208
|
+
let t = M(F);
|
|
1339
1209
|
if (t === null) return [!0, null];
|
|
1340
|
-
let { isPresent: n, onExitComplete: r, register: i } = t, a =
|
|
1341
|
-
|
|
1210
|
+
let { isPresent: n, onExitComplete: r, register: i } = t, a = Xe();
|
|
1211
|
+
Ye(() => {
|
|
1342
1212
|
if (e) return i(a);
|
|
1343
1213
|
}, [e]);
|
|
1344
|
-
let o =
|
|
1214
|
+
let o = Je(() => e && r && r(a), [
|
|
1345
1215
|
a,
|
|
1346
1216
|
r,
|
|
1347
1217
|
e
|
|
@@ -1349,64 +1219,8 @@ function Fr(e = !0) {
|
|
|
1349
1219
|
return !n && r ? [!1, o] : [!0];
|
|
1350
1220
|
}
|
|
1351
1221
|
//#endregion
|
|
1352
|
-
//#region ../../node_modules/.pnpm/framer-motion@12.40.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/
|
|
1353
|
-
var
|
|
1354
|
-
function Ir(e) {
|
|
1355
|
-
let t = [];
|
|
1356
|
-
return Ve.forEach(e, (e) => {
|
|
1357
|
-
Ke(e) && t.push(e);
|
|
1358
|
-
}), t;
|
|
1359
|
-
}
|
|
1360
|
-
//#endregion
|
|
1361
|
-
//#region ../../node_modules/.pnpm/framer-motion@12.40.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/components/AnimatePresence/index.mjs
|
|
1362
|
-
var Lr = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presenceAffectsLayout: i = !0, mode: a = "sync", propagate: s = !1, anchorX: c = "left", anchorY: l = "top", root: u }) => {
|
|
1363
|
-
let [d, f] = Fr(s), p = P(() => Ir(e), [e]), m = s && !d ? [] : p.map(X), h = F(!0), g = F(p), _ = o(() => /* @__PURE__ */ new Map()), v = F(/* @__PURE__ */ new Set()), [y, b] = Qe(p), [x, S] = Qe(p);
|
|
1364
|
-
ft(() => {
|
|
1365
|
-
h.current = !1, g.current = p;
|
|
1366
|
-
for (let e = 0; e < x.length; e++) {
|
|
1367
|
-
let t = X(x[e]);
|
|
1368
|
-
m.includes(t) ? (_.delete(t), v.current.delete(t)) : _.get(t) !== !0 && _.set(t, !1);
|
|
1369
|
-
}
|
|
1370
|
-
}, [
|
|
1371
|
-
x,
|
|
1372
|
-
m.length,
|
|
1373
|
-
m.join("-")
|
|
1374
|
-
]);
|
|
1375
|
-
let C = [];
|
|
1376
|
-
if (p !== y) {
|
|
1377
|
-
let e = [...p];
|
|
1378
|
-
for (let t = 0; t < x.length; t++) {
|
|
1379
|
-
let n = x[t], r = X(n);
|
|
1380
|
-
m.includes(r) || (e.splice(t, 0, n), C.push(n));
|
|
1381
|
-
}
|
|
1382
|
-
return a === "wait" && C.length && (e = C), S(Ir(e)), b(p), null;
|
|
1383
|
-
}
|
|
1384
|
-
process.env.NODE_ENV !== "production" && a === "wait" && x.length > 1 && console.warn("You're attempting to animate multiple children within AnimatePresence, but its mode is set to \"wait\". This will lead to odd visual behaviour.");
|
|
1385
|
-
let { forceRender: ee } = N(R);
|
|
1386
|
-
return I($e, { children: x.map((e) => {
|
|
1387
|
-
let o = X(e), y = s && !d ? !1 : p === x || m.includes(o);
|
|
1388
|
-
return I(Nr, {
|
|
1389
|
-
isPresent: y,
|
|
1390
|
-
initial: !h.current || n ? void 0 : !1,
|
|
1391
|
-
custom: t,
|
|
1392
|
-
presenceAffectsLayout: i,
|
|
1393
|
-
mode: a,
|
|
1394
|
-
root: u,
|
|
1395
|
-
onExitComplete: y ? void 0 : () => {
|
|
1396
|
-
if (v.current.has(o)) return;
|
|
1397
|
-
if (_.has(o)) v.current.add(o), _.set(o, !0);
|
|
1398
|
-
else return;
|
|
1399
|
-
let e = !0;
|
|
1400
|
-
_.forEach((t) => {
|
|
1401
|
-
t || (e = !1);
|
|
1402
|
-
}), e && (ee?.(), S(g.current), s && f?.(), r && r());
|
|
1403
|
-
},
|
|
1404
|
-
anchorX: c,
|
|
1405
|
-
anchorY: l,
|
|
1406
|
-
children: e
|
|
1407
|
-
}, o);
|
|
1408
|
-
}) });
|
|
1409
|
-
}, Rr = M({ strict: !1 }), zr = {
|
|
1222
|
+
//#region ../../node_modules/.pnpm/framer-motion@12.40.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/context/LazyContext.mjs
|
|
1223
|
+
var mr = j({ strict: !1 }), hr = {
|
|
1410
1224
|
animation: [
|
|
1411
1225
|
"animate",
|
|
1412
1226
|
"variants",
|
|
@@ -1443,78 +1257,78 @@ var Lr = ({ children: e, custom: t, initial: n = !0, onExitComplete: r, presence
|
|
|
1443
1257
|
"onViewportLeave"
|
|
1444
1258
|
],
|
|
1445
1259
|
layout: ["layout", "layoutId"]
|
|
1446
|
-
},
|
|
1447
|
-
function
|
|
1448
|
-
if (
|
|
1260
|
+
}, gr = !1;
|
|
1261
|
+
function _r() {
|
|
1262
|
+
if (gr) return;
|
|
1449
1263
|
let e = {};
|
|
1450
|
-
for (let t in
|
|
1451
|
-
|
|
1264
|
+
for (let t in hr) e[t] = { isEnabled: (e) => hr[t].some((t) => !!e[t]) };
|
|
1265
|
+
x(e), gr = !0;
|
|
1452
1266
|
}
|
|
1453
|
-
function
|
|
1454
|
-
return
|
|
1267
|
+
function vr() {
|
|
1268
|
+
return _r(), Le();
|
|
1455
1269
|
}
|
|
1456
1270
|
//#endregion
|
|
1457
1271
|
//#region ../../node_modules/.pnpm/framer-motion@12.40.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/motion/features/load-features.mjs
|
|
1458
|
-
function
|
|
1459
|
-
let t =
|
|
1272
|
+
function yr(e) {
|
|
1273
|
+
let t = vr();
|
|
1460
1274
|
for (let n in e) t[n] = {
|
|
1461
1275
|
...t[n],
|
|
1462
1276
|
...e[n]
|
|
1463
1277
|
};
|
|
1464
|
-
|
|
1278
|
+
x(t);
|
|
1465
1279
|
}
|
|
1466
1280
|
//#endregion
|
|
1467
1281
|
//#region ../../node_modules/.pnpm/framer-motion@12.40.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/motion/utils/valid-prop.mjs
|
|
1468
|
-
var
|
|
1469
|
-
function
|
|
1470
|
-
return e.startsWith("while") || e.startsWith("drag") && e !== "draggable" || e.startsWith("layout") || e.startsWith("onTap") || e.startsWith("onPan") || e.startsWith("onLayout") ||
|
|
1282
|
+
var br = new Set(/* @__PURE__ */ "animate.exit.variants.initial.style.values.variants.transition.transformTemplate.custom.inherit.onBeforeLayoutMeasure.onAnimationStart.onAnimationComplete.onUpdate.onDragStart.onDrag.onDragEnd.onMeasureDragConstraints.onDirectionLock.onDragTransitionEnd._dragX._dragY.onHoverStart.onHoverEnd.onViewportEnter.onViewportLeave.globalTapTarget.propagate.ignoreStrict.viewport".split("."));
|
|
1283
|
+
function xr(e) {
|
|
1284
|
+
return e.startsWith("while") || e.startsWith("drag") && e !== "draggable" || e.startsWith("layout") || e.startsWith("onTap") || e.startsWith("onPan") || e.startsWith("onLayout") || br.has(e);
|
|
1471
1285
|
}
|
|
1472
1286
|
//#endregion
|
|
1473
1287
|
//#region __vite-optional-peer-dep:@emotion/is-prop-valid:framer-motion
|
|
1474
|
-
var
|
|
1475
|
-
throw
|
|
1476
|
-
})),
|
|
1477
|
-
function
|
|
1478
|
-
typeof e == "function" && (
|
|
1288
|
+
var Sr = /* @__PURE__ */ n({ default: () => Cr }), Cr, wr = t((() => {
|
|
1289
|
+
throw Cr = {}, Error("Could not resolve \"@emotion/is-prop-valid\" imported by \"framer-motion\". Is it installed?");
|
|
1290
|
+
})), Tr = (e) => !xr(e);
|
|
1291
|
+
function Er(e) {
|
|
1292
|
+
typeof e == "function" && (Tr = (t) => t.startsWith("on") ? !xr(t) : e(t));
|
|
1479
1293
|
}
|
|
1480
1294
|
try {
|
|
1481
|
-
|
|
1295
|
+
Er((wr(), e(Sr)).default);
|
|
1482
1296
|
} catch {}
|
|
1483
|
-
function
|
|
1297
|
+
function Dr(e, t, n) {
|
|
1484
1298
|
let r = {};
|
|
1485
|
-
for (let i in e) i === "values" && typeof e.values == "object" ||
|
|
1299
|
+
for (let i in e) i === "values" && typeof e.values == "object" || m(e[i]) || (Tr(i) || n === !0 && xr(i) || !t && !xr(i) || e.draggable && i.startsWith("onDrag")) && (r[i] = e[i]);
|
|
1486
1300
|
return r;
|
|
1487
1301
|
}
|
|
1488
1302
|
//#endregion
|
|
1489
1303
|
//#region ../../node_modules/.pnpm/framer-motion@12.40.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/context/MotionContext/index.mjs
|
|
1490
|
-
var
|
|
1304
|
+
var Or = /* @__PURE__ */ j({});
|
|
1491
1305
|
//#endregion
|
|
1492
1306
|
//#region ../../node_modules/.pnpm/framer-motion@12.40.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/context/MotionContext/utils.mjs
|
|
1493
|
-
function
|
|
1494
|
-
if (
|
|
1307
|
+
function kr(e, t) {
|
|
1308
|
+
if (Se(e)) {
|
|
1495
1309
|
let { initial: t, animate: n } = e;
|
|
1496
1310
|
return {
|
|
1497
|
-
initial: t === !1 ||
|
|
1498
|
-
animate:
|
|
1311
|
+
initial: t === !1 || v(t) ? t : void 0,
|
|
1312
|
+
animate: v(n) ? n : void 0
|
|
1499
1313
|
};
|
|
1500
1314
|
}
|
|
1501
1315
|
return e.inherit === !1 ? {} : t;
|
|
1502
1316
|
}
|
|
1503
1317
|
//#endregion
|
|
1504
1318
|
//#region ../../node_modules/.pnpm/framer-motion@12.40.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/context/MotionContext/create.mjs
|
|
1505
|
-
function
|
|
1506
|
-
let { initial: t, animate: n } =
|
|
1507
|
-
return
|
|
1319
|
+
function Ar(e) {
|
|
1320
|
+
let { initial: t, animate: n } = kr(e, M(Or));
|
|
1321
|
+
return N(() => ({
|
|
1508
1322
|
initial: t,
|
|
1509
1323
|
animate: n
|
|
1510
|
-
}), [
|
|
1324
|
+
}), [jr(t), jr(n)]);
|
|
1511
1325
|
}
|
|
1512
|
-
function
|
|
1326
|
+
function jr(e) {
|
|
1513
1327
|
return Array.isArray(e) ? e.join(" ") : e;
|
|
1514
1328
|
}
|
|
1515
1329
|
//#endregion
|
|
1516
1330
|
//#region ../../node_modules/.pnpm/framer-motion@12.40.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/render/html/utils/create-render-state.mjs
|
|
1517
|
-
var
|
|
1331
|
+
var Mr = () => ({
|
|
1518
1332
|
style: {},
|
|
1519
1333
|
transform: {},
|
|
1520
1334
|
transformOrigin: {},
|
|
@@ -1522,42 +1336,42 @@ var ni = () => ({
|
|
|
1522
1336
|
});
|
|
1523
1337
|
//#endregion
|
|
1524
1338
|
//#region ../../node_modules/.pnpm/framer-motion@12.40.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/render/html/use-props.mjs
|
|
1525
|
-
function
|
|
1526
|
-
for (let r in t) !
|
|
1339
|
+
function Nr(e, t, n) {
|
|
1340
|
+
for (let r in t) !m(t[r]) && !we(r, n) && (e[r] = t[r]);
|
|
1527
1341
|
}
|
|
1528
|
-
function
|
|
1529
|
-
return
|
|
1530
|
-
let n =
|
|
1531
|
-
return
|
|
1342
|
+
function Pr({ transformTemplate: e }, t) {
|
|
1343
|
+
return N(() => {
|
|
1344
|
+
let n = Mr();
|
|
1345
|
+
return fe(n, t, e), Object.assign({}, n.vars, n.style);
|
|
1532
1346
|
}, [t]);
|
|
1533
1347
|
}
|
|
1534
|
-
function
|
|
1348
|
+
function Fr(e, t) {
|
|
1535
1349
|
let n = e.style || {}, r = {};
|
|
1536
|
-
return
|
|
1350
|
+
return Nr(r, n, e), Object.assign(r, Pr(e, t)), r;
|
|
1537
1351
|
}
|
|
1538
|
-
function
|
|
1539
|
-
let n = {}, r =
|
|
1352
|
+
function Ir(e, t) {
|
|
1353
|
+
let n = {}, r = Fr(e, t);
|
|
1540
1354
|
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;
|
|
1541
1355
|
}
|
|
1542
1356
|
//#endregion
|
|
1543
1357
|
//#region ../../node_modules/.pnpm/framer-motion@12.40.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/render/svg/utils/create-render-state.mjs
|
|
1544
|
-
var
|
|
1545
|
-
...
|
|
1358
|
+
var Lr = () => ({
|
|
1359
|
+
...Mr(),
|
|
1546
1360
|
attrs: {}
|
|
1547
1361
|
});
|
|
1548
1362
|
//#endregion
|
|
1549
1363
|
//#region ../../node_modules/.pnpm/framer-motion@12.40.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/render/svg/use-props.mjs
|
|
1550
|
-
function
|
|
1551
|
-
let i =
|
|
1552
|
-
let n =
|
|
1553
|
-
return
|
|
1364
|
+
function Rr(e, t, n, r) {
|
|
1365
|
+
let i = N(() => {
|
|
1366
|
+
let n = Lr();
|
|
1367
|
+
return Oe(n, t, ue(r), e.transformTemplate, e.style), {
|
|
1554
1368
|
...n.attrs,
|
|
1555
1369
|
style: { ...n.style }
|
|
1556
1370
|
};
|
|
1557
1371
|
}, [t]);
|
|
1558
1372
|
if (e.style) {
|
|
1559
1373
|
let t = {};
|
|
1560
|
-
|
|
1374
|
+
Nr(t, e.style, e), i.style = {
|
|
1561
1375
|
...t,
|
|
1562
1376
|
...i.style
|
|
1563
1377
|
};
|
|
@@ -1566,7 +1380,7 @@ function ci(e, t, n, r) {
|
|
|
1566
1380
|
}
|
|
1567
1381
|
//#endregion
|
|
1568
1382
|
//#region ../../node_modules/.pnpm/framer-motion@12.40.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/render/svg/lowercase-elements.mjs
|
|
1569
|
-
var
|
|
1383
|
+
var zr = [
|
|
1570
1384
|
"animate",
|
|
1571
1385
|
"circle",
|
|
1572
1386
|
"defs",
|
|
@@ -1595,42 +1409,42 @@ var li = [
|
|
|
1595
1409
|
];
|
|
1596
1410
|
//#endregion
|
|
1597
1411
|
//#region ../../node_modules/.pnpm/framer-motion@12.40.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-component.mjs
|
|
1598
|
-
function
|
|
1599
|
-
return typeof e != "string" || e.includes("-") ? !1 : !!(
|
|
1412
|
+
function Br(e) {
|
|
1413
|
+
return typeof e != "string" || e.includes("-") ? !1 : !!(zr.indexOf(e) > -1 || /[A-Z]/u.test(e));
|
|
1600
1414
|
}
|
|
1601
1415
|
//#endregion
|
|
1602
1416
|
//#region ../../node_modules/.pnpm/framer-motion@12.40.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/render/dom/use-render.mjs
|
|
1603
|
-
function
|
|
1604
|
-
let s = (o ??
|
|
1417
|
+
function Vr(e, t, n, { latestValues: r }, i, a = !1, o) {
|
|
1418
|
+
let s = (o ?? Br(e) ? Rr : Ir)(t, r, i, e), c = Dr(t, typeof e == "string", a), l = e === Ge ? {} : {
|
|
1605
1419
|
...c,
|
|
1606
1420
|
...s,
|
|
1607
1421
|
ref: n
|
|
1608
|
-
}, { children: u } = t,
|
|
1609
|
-
return
|
|
1422
|
+
}, { children: u } = t, d = N(() => m(u) ? u.get() : u, [u]);
|
|
1423
|
+
return Ke(e, {
|
|
1610
1424
|
...l,
|
|
1611
|
-
children:
|
|
1425
|
+
children: d
|
|
1612
1426
|
});
|
|
1613
1427
|
}
|
|
1614
1428
|
//#endregion
|
|
1615
1429
|
//#region ../../node_modules/.pnpm/framer-motion@12.40.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/motion/utils/use-visual-state.mjs
|
|
1616
|
-
function
|
|
1430
|
+
function Hr({ scrapeMotionValuesFromProps: e, createRenderState: t }, n, r, i) {
|
|
1617
1431
|
return {
|
|
1618
|
-
latestValues:
|
|
1432
|
+
latestValues: Ur(n, r, i, e),
|
|
1619
1433
|
renderState: t()
|
|
1620
1434
|
};
|
|
1621
1435
|
}
|
|
1622
|
-
function
|
|
1623
|
-
let a = {}, o = i(
|
|
1624
|
-
for (let e in o) a[e] =
|
|
1625
|
-
let { initial: s, animate: c } =
|
|
1626
|
-
|
|
1627
|
-
let d =
|
|
1436
|
+
function Ur(e, t, n, i) {
|
|
1437
|
+
let a = {}, o = i(e, {});
|
|
1438
|
+
for (let e in o) a[e] = kn(o[e]);
|
|
1439
|
+
let { initial: s, animate: c } = e, l = Se(e), u = r(e);
|
|
1440
|
+
t && u && !l && e.inherit !== !1 && (s === void 0 && (s = t.initial), c === void 0 && (c = t.animate));
|
|
1441
|
+
let d = n ? n.initial === !1 : !1;
|
|
1628
1442
|
d ||= s === !1;
|
|
1629
1443
|
let f = d ? c : s;
|
|
1630
|
-
if (f && typeof f != "boolean" && !
|
|
1631
|
-
let
|
|
1632
|
-
for (let n = 0; n <
|
|
1633
|
-
let r =
|
|
1444
|
+
if (f && typeof f != "boolean" && !ee(f)) {
|
|
1445
|
+
let t = Array.isArray(f) ? f : [f];
|
|
1446
|
+
for (let n = 0; n < t.length; n++) {
|
|
1447
|
+
let r = ce(e, t[n]);
|
|
1634
1448
|
if (r) {
|
|
1635
1449
|
let { transitionEnd: e, transition: t, ...n } = r;
|
|
1636
1450
|
for (let e in n) {
|
|
@@ -1647,25 +1461,25 @@ function pi(t, n, r, i) {
|
|
|
1647
1461
|
}
|
|
1648
1462
|
return a;
|
|
1649
1463
|
}
|
|
1650
|
-
var
|
|
1651
|
-
let r =
|
|
1652
|
-
return n ? a() :
|
|
1653
|
-
},
|
|
1654
|
-
scrapeMotionValuesFromProps:
|
|
1655
|
-
createRenderState:
|
|
1656
|
-
}),
|
|
1657
|
-
scrapeMotionValuesFromProps:
|
|
1658
|
-
createRenderState:
|
|
1659
|
-
}),
|
|
1464
|
+
var Wr = (e) => (t, n) => {
|
|
1465
|
+
let r = M(Or), i = M(F), a = () => Hr(e, t, r, i);
|
|
1466
|
+
return n ? a() : l(a);
|
|
1467
|
+
}, Gr = /* @__PURE__ */ Wr({
|
|
1468
|
+
scrapeMotionValuesFromProps: de,
|
|
1469
|
+
createRenderState: Mr
|
|
1470
|
+
}), Kr = /* @__PURE__ */ Wr({
|
|
1471
|
+
scrapeMotionValuesFromProps: ye,
|
|
1472
|
+
createRenderState: Lr
|
|
1473
|
+
}), qr = Symbol.for("motionComponentSymbol");
|
|
1660
1474
|
//#endregion
|
|
1661
1475
|
//#region ../../node_modules/.pnpm/framer-motion@12.40.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.mjs
|
|
1662
|
-
function
|
|
1663
|
-
let r =
|
|
1664
|
-
|
|
1476
|
+
function Jr(e, t, n) {
|
|
1477
|
+
let r = P(n);
|
|
1478
|
+
Ze(() => {
|
|
1665
1479
|
r.current = n;
|
|
1666
1480
|
});
|
|
1667
|
-
let i =
|
|
1668
|
-
return
|
|
1481
|
+
let i = P(null);
|
|
1482
|
+
return Je((n) => {
|
|
1669
1483
|
n && e.onMount?.(n), t && (n ? t.mount(n) : t.unmount());
|
|
1670
1484
|
let a = r.current;
|
|
1671
1485
|
if (typeof a == "function") if (n) {
|
|
@@ -1677,7 +1491,7 @@ function vi(e, t, n) {
|
|
|
1677
1491
|
}
|
|
1678
1492
|
//#endregion
|
|
1679
1493
|
//#region ../../node_modules/.pnpm/framer-motion@12.40.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext.mjs
|
|
1680
|
-
var
|
|
1494
|
+
var Yr = j({});
|
|
1681
1495
|
//#endregion
|
|
1682
1496
|
//#region ../../node_modules/.pnpm/framer-motion@12.40.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/utils/is-ref-object.mjs
|
|
1683
1497
|
function Z(e) {
|
|
@@ -1685,8 +1499,8 @@ function Z(e) {
|
|
|
1685
1499
|
}
|
|
1686
1500
|
//#endregion
|
|
1687
1501
|
//#region ../../node_modules/.pnpm/framer-motion@12.40.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/motion/utils/use-visual-element.mjs
|
|
1688
|
-
function
|
|
1689
|
-
let { visualElement: o } =
|
|
1502
|
+
function Xr(e, t, n, r, i, a) {
|
|
1503
|
+
let { visualElement: o } = M(Or), s = M(mr), c = M(F), l = M(Ne), u = l.reducedMotion, d = l.skipAnimations, f = P(null), p = P(!1);
|
|
1690
1504
|
r ||= s.renderer, !f.current && r && (f.current = r(e, {
|
|
1691
1505
|
visualState: t,
|
|
1692
1506
|
parent: o,
|
|
@@ -1697,24 +1511,24 @@ function bi(e, t, n, r, i, a) {
|
|
|
1697
1511
|
skipAnimations: d,
|
|
1698
1512
|
isSVG: a
|
|
1699
1513
|
}), p.current && f.current && (f.current.manuallyAnimateOnMount = !0));
|
|
1700
|
-
let m = f.current, h =
|
|
1701
|
-
m && !m.projection && i && (m.type === "html" || m.type === "svg") &&
|
|
1702
|
-
let g =
|
|
1703
|
-
|
|
1514
|
+
let m = f.current, h = M(Yr);
|
|
1515
|
+
m && !m.projection && i && (m.type === "html" || m.type === "svg") && Zr(f.current, n, i, h);
|
|
1516
|
+
let g = P(!1);
|
|
1517
|
+
Ze(() => {
|
|
1704
1518
|
m && g.current && m.update(n, c);
|
|
1705
1519
|
});
|
|
1706
|
-
let _ = n[
|
|
1707
|
-
return
|
|
1520
|
+
let _ = n[oe], v = P(!!_ && typeof window < "u" && !window.MotionHandoffIsComplete?.(_) && window.MotionHasOptimisedAnimation?.(_));
|
|
1521
|
+
return nt(() => {
|
|
1708
1522
|
p.current = !0, m && (g.current = !0, window.MotionIsMounted = !0, m.updateFeatures(), m.scheduleRenderMicrotask(), v.current && m.animationState && m.animationState.animateChanges());
|
|
1709
|
-
}),
|
|
1523
|
+
}), Ye(() => {
|
|
1710
1524
|
m && (!v.current && m.animationState && m.animationState.animateChanges(), v.current &&= (queueMicrotask(() => {
|
|
1711
1525
|
window.MotionHandoffMarkAsComplete?.(_);
|
|
1712
1526
|
}), !1), m.enteringChildren = void 0);
|
|
1713
1527
|
}), m;
|
|
1714
1528
|
}
|
|
1715
|
-
function
|
|
1529
|
+
function Zr(e, t, n, r) {
|
|
1716
1530
|
let { layoutId: i, layout: a, drag: o, dragConstraints: s, layoutScroll: c, layoutRoot: l, layoutAnchor: u, layoutCrossfade: d } = t;
|
|
1717
|
-
e.projection = new n(e.latestValues, t["data-framer-portal-id"] ? void 0 :
|
|
1531
|
+
e.projection = new n(e.latestValues, t["data-framer-portal-id"] ? void 0 : Qr(e.parent)), e.projection.setOptions({
|
|
1718
1532
|
layoutId: i,
|
|
1719
1533
|
layout: a,
|
|
1720
1534
|
alwaysMeasureLayout: !!o || s && Z(s),
|
|
@@ -1727,50 +1541,50 @@ function xi(e, t, n, r) {
|
|
|
1727
1541
|
layoutAnchor: u
|
|
1728
1542
|
});
|
|
1729
1543
|
}
|
|
1730
|
-
function
|
|
1731
|
-
if (e) return e.options.allowProjection === !1 ?
|
|
1544
|
+
function Qr(e) {
|
|
1545
|
+
if (e) return e.options.allowProjection === !1 ? Qr(e.parent) : e.projection;
|
|
1732
1546
|
}
|
|
1733
1547
|
//#endregion
|
|
1734
1548
|
//#region ../../node_modules/.pnpm/framer-motion@12.40.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/motion/index.mjs
|
|
1735
|
-
function
|
|
1736
|
-
r &&
|
|
1737
|
-
let a = n ? n === "svg" :
|
|
1549
|
+
function $r(e, { forwardMotionProps: t = !1, type: n } = {}, r, i) {
|
|
1550
|
+
r && yr(r);
|
|
1551
|
+
let a = n ? n === "svg" : Br(e), o = a ? Kr : Gr;
|
|
1738
1552
|
function s(n, s) {
|
|
1739
1553
|
let c, l = {
|
|
1740
|
-
...
|
|
1554
|
+
...M(Ne),
|
|
1741
1555
|
...n,
|
|
1742
|
-
layoutId:
|
|
1743
|
-
}, { isStatic: u } = l, d =
|
|
1556
|
+
layoutId: ei(n)
|
|
1557
|
+
}, { isStatic: u } = l, d = Ar(n), f = o(n, u);
|
|
1744
1558
|
if (!u && typeof window < "u") {
|
|
1745
|
-
|
|
1746
|
-
let t =
|
|
1747
|
-
c = t.MeasureLayout, d.visualElement =
|
|
1559
|
+
ti(l, r);
|
|
1560
|
+
let t = ni(l);
|
|
1561
|
+
c = t.MeasureLayout, d.visualElement = Xr(e, f, l, i, t.ProjectionNode, a);
|
|
1748
1562
|
}
|
|
1749
|
-
return et(
|
|
1563
|
+
return et(Or.Provider, {
|
|
1750
1564
|
value: d,
|
|
1751
|
-
children: [c && d.visualElement ?
|
|
1565
|
+
children: [c && d.visualElement ? $e(c, {
|
|
1752
1566
|
visualElement: d.visualElement,
|
|
1753
1567
|
...l
|
|
1754
|
-
}) : null,
|
|
1568
|
+
}) : null, Vr(e, n, Jr(f, d.visualElement, s), f, u, t, a)]
|
|
1755
1569
|
});
|
|
1756
1570
|
}
|
|
1757
1571
|
s.displayName = `motion.${typeof e == "string" ? e : `create(${e.displayName ?? e.name ?? ""})`}`;
|
|
1758
|
-
let c =
|
|
1759
|
-
return c[
|
|
1572
|
+
let c = qe(s);
|
|
1573
|
+
return c[qr] = e, c;
|
|
1760
1574
|
}
|
|
1761
|
-
function
|
|
1762
|
-
let t =
|
|
1575
|
+
function ei({ layoutId: e }) {
|
|
1576
|
+
let t = M(tt).id;
|
|
1763
1577
|
return t && e !== void 0 ? t + "-" + e : e;
|
|
1764
1578
|
}
|
|
1765
|
-
function
|
|
1766
|
-
let
|
|
1767
|
-
if (process.env.NODE_ENV !== "production" &&
|
|
1768
|
-
let
|
|
1769
|
-
e.ignoreStrict ?
|
|
1579
|
+
function ti(e, t) {
|
|
1580
|
+
let n = M(mr).strict;
|
|
1581
|
+
if (process.env.NODE_ENV !== "production" && t && n) {
|
|
1582
|
+
let t = "You have rendered a `motion` component within a `LazyMotion` component. This will break tree shaking. Import and render a `m` component instead.";
|
|
1583
|
+
e.ignoreStrict ? i(!1, t, "lazy-strict-mode") : Ce(!1, t, "lazy-strict-mode");
|
|
1770
1584
|
}
|
|
1771
1585
|
}
|
|
1772
|
-
function
|
|
1773
|
-
let { drag: t, layout: n } =
|
|
1586
|
+
function ni(e) {
|
|
1587
|
+
let { drag: t, layout: n } = vr();
|
|
1774
1588
|
if (!t && !n) return {};
|
|
1775
1589
|
let r = {
|
|
1776
1590
|
...t,
|
|
@@ -1783,20 +1597,20 @@ function Ei(e) {
|
|
|
1783
1597
|
}
|
|
1784
1598
|
//#endregion
|
|
1785
1599
|
//#region ../../node_modules/.pnpm/framer-motion@12.40.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/render/components/create-proxy.mjs
|
|
1786
|
-
function
|
|
1787
|
-
if (typeof Proxy > "u") return
|
|
1788
|
-
let n = /* @__PURE__ */ new Map(), r = (n, r) =>
|
|
1789
|
-
return new Proxy((e, t) => (process.env.NODE_ENV !== "production" &&
|
|
1600
|
+
function ri(e, t) {
|
|
1601
|
+
if (typeof Proxy > "u") return $r;
|
|
1602
|
+
let n = /* @__PURE__ */ new Map(), r = (n, r) => $r(n, r, e, t);
|
|
1603
|
+
return new Proxy((e, t) => (process.env.NODE_ENV !== "production" && Be(!1, "motion() is deprecated. Use motion.create() instead."), r(e, t)), { get: (i, a) => a === "create" ? r : (n.has(a) || n.set(a, $r(a, void 0, e, t)), n.get(a)) });
|
|
1790
1604
|
}
|
|
1791
1605
|
//#endregion
|
|
1792
1606
|
//#region ../../node_modules/.pnpm/framer-motion@12.40.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/render/dom/create-visual-element.mjs
|
|
1793
|
-
var
|
|
1607
|
+
var ii = (e, t) => t.isSVG ?? Br(e) ? new je(t) : new Me(t, { allowProjection: e !== Ge }), ai = class extends H {
|
|
1794
1608
|
constructor(e) {
|
|
1795
|
-
super(e), e.animationState ||=
|
|
1609
|
+
super(e), e.animationState ||= Vt(e);
|
|
1796
1610
|
}
|
|
1797
1611
|
updateAnimationControlsSubscription() {
|
|
1798
1612
|
let { animate: e } = this.node.getProps();
|
|
1799
|
-
|
|
1613
|
+
ee(e) && (this.unmountControls = e.subscribe(this.node));
|
|
1800
1614
|
}
|
|
1801
1615
|
mount() {
|
|
1802
1616
|
this.updateAnimationControlsSubscription();
|
|
@@ -1808,11 +1622,11 @@ var Oi = (e, t) => t.isSVG ?? ui(e) ? new De(t) : new Oe(t, { allowProjection: e
|
|
|
1808
1622
|
unmount() {
|
|
1809
1623
|
this.node.animationState.reset(), this.unmountControls?.();
|
|
1810
1624
|
}
|
|
1811
|
-
},
|
|
1812
|
-
animation: { Feature:
|
|
1625
|
+
}, oi = 0, si = {
|
|
1626
|
+
animation: { Feature: ai },
|
|
1813
1627
|
exit: { Feature: class extends H {
|
|
1814
1628
|
constructor() {
|
|
1815
|
-
super(...arguments), this.id =
|
|
1629
|
+
super(...arguments), this.id = oi++, this.isExitComplete = !1;
|
|
1816
1630
|
}
|
|
1817
1631
|
update() {
|
|
1818
1632
|
if (!this.node.presenceContext) return;
|
|
@@ -1822,7 +1636,7 @@ var Oi = (e, t) => t.isSVG ?? ui(e) ? new De(t) : new Oe(t, { allowProjection: e
|
|
|
1822
1636
|
if (this.isExitComplete) {
|
|
1823
1637
|
let { initial: e, custom: t } = this.node.getProps();
|
|
1824
1638
|
if (typeof e == "string" || typeof e == "object" && e && !Array.isArray(e)) {
|
|
1825
|
-
let n =
|
|
1639
|
+
let n = p(this.node, e, t);
|
|
1826
1640
|
if (n) {
|
|
1827
1641
|
let { transition: e, transitionEnd: t, ...r } = n;
|
|
1828
1642
|
for (let e in r) this.node.getValue(e)?.jump(r[e]);
|
|
@@ -1853,36 +1667,36 @@ function Q(e) {
|
|
|
1853
1667
|
y: e.pageY
|
|
1854
1668
|
} };
|
|
1855
1669
|
}
|
|
1856
|
-
var
|
|
1670
|
+
var ci = (e) => (t) => mt(t) && e(t, Q(t));
|
|
1857
1671
|
//#endregion
|
|
1858
1672
|
//#region ../../node_modules/.pnpm/framer-motion@12.40.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/events/add-pointer-event.mjs
|
|
1859
1673
|
function $(e, t, n, r) {
|
|
1860
|
-
return
|
|
1674
|
+
return Y(e, t, ci(n), r);
|
|
1861
1675
|
}
|
|
1862
1676
|
//#endregion
|
|
1863
1677
|
//#region ../../node_modules/.pnpm/framer-motion@12.40.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/utils/get-context-window.mjs
|
|
1864
|
-
var
|
|
1865
|
-
function
|
|
1866
|
-
let n =
|
|
1678
|
+
var li = ({ current: e }) => e ? e.ownerDocument.defaultView : null, ui = (e, t) => Math.abs(e - t);
|
|
1679
|
+
function di(e, t) {
|
|
1680
|
+
let n = ui(e.x, t.x), r = ui(e.y, t.y);
|
|
1867
1681
|
return Math.sqrt(n ** 2 + r ** 2);
|
|
1868
1682
|
}
|
|
1869
1683
|
//#endregion
|
|
1870
1684
|
//#region ../../node_modules/.pnpm/framer-motion@12.40.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/gestures/pan/PanSession.mjs
|
|
1871
|
-
var
|
|
1872
|
-
constructor(e, t, { transformPagePoint: n, contextWindow: r = window, dragSnapToOrigin: i = !1, distanceThreshold:
|
|
1685
|
+
var fi = /* @__PURE__ */ new Set(["auto", "scroll"]), pi = class {
|
|
1686
|
+
constructor(e, t, { transformPagePoint: n, contextWindow: r = window, dragSnapToOrigin: i = !1, distanceThreshold: a = 3, element: o } = {}) {
|
|
1873
1687
|
if (this.startEvent = null, this.lastMoveEvent = null, this.lastMoveEventInfo = null, this.lastRawMoveEventInfo = null, this.handlers = {}, this.contextWindow = window, this.scrollPositions = /* @__PURE__ */ new Map(), this.removeScrollListeners = null, this.onElementScroll = (e) => {
|
|
1874
1688
|
this.handleScroll(e.target);
|
|
1875
1689
|
}, this.onWindowScroll = () => {
|
|
1876
1690
|
this.handleScroll(window);
|
|
1877
1691
|
}, this.updatePoint = () => {
|
|
1878
1692
|
if (!(this.lastMoveEvent && this.lastMoveEventInfo)) return;
|
|
1879
|
-
this.lastRawMoveEventInfo && (this.lastMoveEventInfo =
|
|
1880
|
-
let e =
|
|
1693
|
+
this.lastRawMoveEventInfo && (this.lastMoveEventInfo = mi(this.lastRawMoveEventInfo, this.transformPagePoint));
|
|
1694
|
+
let e = gi(this.lastMoveEventInfo, this.history), t = this.startEvent !== null, n = di(e.offset, {
|
|
1881
1695
|
x: 0,
|
|
1882
1696
|
y: 0
|
|
1883
1697
|
}) >= this.distanceThreshold;
|
|
1884
1698
|
if (!t && !n) return;
|
|
1885
|
-
let { point: r } = e, { timestamp: i } =
|
|
1699
|
+
let { point: r } = e, { timestamp: i } = O;
|
|
1886
1700
|
this.history.push({
|
|
1887
1701
|
...r,
|
|
1888
1702
|
timestamp: i
|
|
@@ -1890,28 +1704,28 @@ var Ii = /* @__PURE__ */ new Set(["auto", "scroll"]), Li = class {
|
|
|
1890
1704
|
let { onStart: a, onMove: o } = this.handlers;
|
|
1891
1705
|
t || (a && a(this.lastMoveEvent, e), this.startEvent = this.lastMoveEvent), o && o(this.lastMoveEvent, e);
|
|
1892
1706
|
}, this.handlePointerMove = (e, t) => {
|
|
1893
|
-
this.lastMoveEvent = e, this.lastRawMoveEventInfo = t, this.lastMoveEventInfo =
|
|
1707
|
+
this.lastMoveEvent = e, this.lastRawMoveEventInfo = t, this.lastMoveEventInfo = mi(t, this.transformPagePoint), k.update(this.updatePoint, !0);
|
|
1894
1708
|
}, this.handlePointerUp = (e, t) => {
|
|
1895
1709
|
this.end();
|
|
1896
1710
|
let { onEnd: n, onSessionEnd: r, resumeAnimation: i } = this.handlers;
|
|
1897
1711
|
if ((this.dragSnapToOrigin || !this.startEvent) && i && i(), !(this.lastMoveEvent && this.lastMoveEventInfo)) return;
|
|
1898
|
-
let a =
|
|
1712
|
+
let a = gi(e.type === "pointercancel" ? this.lastMoveEventInfo : mi(t, this.transformPagePoint), this.history);
|
|
1899
1713
|
this.startEvent && n && n(e, a), r && r(e, a);
|
|
1900
|
-
}, !
|
|
1901
|
-
this.dragSnapToOrigin = i, this.handlers = t, this.transformPagePoint = n, this.distanceThreshold =
|
|
1902
|
-
let
|
|
1714
|
+
}, !mt(e)) return;
|
|
1715
|
+
this.dragSnapToOrigin = i, this.handlers = t, this.transformPagePoint = n, this.distanceThreshold = a, this.contextWindow = r || window;
|
|
1716
|
+
let s = mi(Q(e), this.transformPagePoint), { point: l } = s, { timestamp: u } = O;
|
|
1903
1717
|
this.history = [{
|
|
1904
1718
|
...l,
|
|
1905
1719
|
timestamp: u
|
|
1906
1720
|
}];
|
|
1907
1721
|
let { onSessionStart: d } = t;
|
|
1908
|
-
d && d(e,
|
|
1722
|
+
d && d(e, gi(s, this.history)), this.removeListeners = c($(this.contextWindow, "pointermove", this.handlePointerMove), $(this.contextWindow, "pointerup", this.handlePointerUp), $(this.contextWindow, "pointercancel", this.handlePointerUp)), o && this.startScrollTracking(o);
|
|
1909
1723
|
}
|
|
1910
1724
|
startScrollTracking(e) {
|
|
1911
1725
|
let t = e.parentElement;
|
|
1912
1726
|
for (; t;) {
|
|
1913
1727
|
let e = getComputedStyle(t);
|
|
1914
|
-
(
|
|
1728
|
+
(fi.has(e.overflowX) || fi.has(e.overflowY)) && this.scrollPositions.set(t, {
|
|
1915
1729
|
x: t.scrollLeft,
|
|
1916
1730
|
y: t.scrollTop
|
|
1917
1731
|
}), t = t.parentElement;
|
|
@@ -1936,123 +1750,123 @@ var Ii = /* @__PURE__ */ new Set(["auto", "scroll"]), Li = class {
|
|
|
1936
1750
|
x: r.x - t.x,
|
|
1937
1751
|
y: r.y - t.y
|
|
1938
1752
|
};
|
|
1939
|
-
i.x === 0 && i.y === 0 || (n ? this.lastMoveEventInfo && (this.lastMoveEventInfo.point.x += i.x, this.lastMoveEventInfo.point.y += i.y) : this.history.length > 0 && (this.history[0].x -= i.x, this.history[0].y -= i.y), this.scrollPositions.set(e, r),
|
|
1753
|
+
i.x === 0 && i.y === 0 || (n ? this.lastMoveEventInfo && (this.lastMoveEventInfo.point.x += i.x, this.lastMoveEventInfo.point.y += i.y) : this.history.length > 0 && (this.history[0].x -= i.x, this.history[0].y -= i.y), this.scrollPositions.set(e, r), k.update(this.updatePoint, !0));
|
|
1940
1754
|
}
|
|
1941
1755
|
updateHandlers(e) {
|
|
1942
1756
|
this.handlers = e;
|
|
1943
1757
|
}
|
|
1944
1758
|
end() {
|
|
1945
|
-
this.removeListeners && this.removeListeners(), this.removeScrollListeners && this.removeScrollListeners(), this.scrollPositions.clear(),
|
|
1759
|
+
this.removeListeners && this.removeListeners(), this.removeScrollListeners && this.removeScrollListeners(), this.scrollPositions.clear(), E(this.updatePoint);
|
|
1946
1760
|
}
|
|
1947
1761
|
};
|
|
1948
|
-
function
|
|
1762
|
+
function mi(e, t) {
|
|
1949
1763
|
return t ? { point: t(e.point) } : e;
|
|
1950
1764
|
}
|
|
1951
|
-
function
|
|
1765
|
+
function hi(e, t) {
|
|
1952
1766
|
return {
|
|
1953
1767
|
x: e.x - t.x,
|
|
1954
1768
|
y: e.y - t.y
|
|
1955
1769
|
};
|
|
1956
1770
|
}
|
|
1957
|
-
function
|
|
1771
|
+
function gi({ point: e }, t) {
|
|
1958
1772
|
return {
|
|
1959
1773
|
point: e,
|
|
1960
|
-
delta:
|
|
1961
|
-
offset:
|
|
1962
|
-
velocity:
|
|
1774
|
+
delta: hi(e, vi(t)),
|
|
1775
|
+
offset: hi(e, _i(t)),
|
|
1776
|
+
velocity: yi(t, .1)
|
|
1963
1777
|
};
|
|
1964
1778
|
}
|
|
1965
|
-
function
|
|
1779
|
+
function _i(e) {
|
|
1966
1780
|
return e[0];
|
|
1967
1781
|
}
|
|
1968
|
-
function
|
|
1782
|
+
function vi(e) {
|
|
1969
1783
|
return e[e.length - 1];
|
|
1970
1784
|
}
|
|
1971
|
-
function
|
|
1785
|
+
function yi(e, t) {
|
|
1972
1786
|
if (e.length < 2) return {
|
|
1973
1787
|
x: 0,
|
|
1974
1788
|
y: 0
|
|
1975
1789
|
};
|
|
1976
|
-
let n = e.length - 1,
|
|
1977
|
-
for (; n >= 0 && (
|
|
1978
|
-
if (!
|
|
1790
|
+
let n = e.length - 1, r = null, i = vi(e);
|
|
1791
|
+
for (; n >= 0 && (r = e[n], !(i.timestamp - r.timestamp > o(t)));) n--;
|
|
1792
|
+
if (!r) return {
|
|
1979
1793
|
x: 0,
|
|
1980
1794
|
y: 0
|
|
1981
1795
|
};
|
|
1982
|
-
|
|
1983
|
-
let
|
|
1984
|
-
if (
|
|
1796
|
+
r === e[0] && e.length > 2 && i.timestamp - r.timestamp > o(t) * 2 && (r = e[1]);
|
|
1797
|
+
let a = re(i.timestamp - r.timestamp);
|
|
1798
|
+
if (a === 0) return {
|
|
1985
1799
|
x: 0,
|
|
1986
1800
|
y: 0
|
|
1987
1801
|
};
|
|
1988
1802
|
let s = {
|
|
1989
|
-
x: (
|
|
1990
|
-
y: (
|
|
1803
|
+
x: (i.x - r.x) / a,
|
|
1804
|
+
y: (i.y - r.y) / a
|
|
1991
1805
|
};
|
|
1992
1806
|
return s.x === Infinity && (s.x = 0), s.y === Infinity && (s.y = 0), s;
|
|
1993
1807
|
}
|
|
1994
1808
|
//#endregion
|
|
1995
1809
|
//#region ../../node_modules/.pnpm/framer-motion@12.40.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.mjs
|
|
1996
|
-
function
|
|
1997
|
-
return t !== void 0 && e < t ? e = r ?
|
|
1810
|
+
function bi(e, { min: t, max: n }, r) {
|
|
1811
|
+
return t !== void 0 && e < t ? e = r ? A(t, e, r.min) : Math.max(e, t) : n !== void 0 && e > n && (e = r ? A(n, e, r.max) : Math.min(e, n)), e;
|
|
1998
1812
|
}
|
|
1999
|
-
function
|
|
1813
|
+
function xi(e, t, n) {
|
|
2000
1814
|
return {
|
|
2001
1815
|
min: t === void 0 ? void 0 : e.min + t,
|
|
2002
1816
|
max: n === void 0 ? void 0 : e.max + n - (e.max - e.min)
|
|
2003
1817
|
};
|
|
2004
1818
|
}
|
|
2005
|
-
function
|
|
1819
|
+
function Si(e, { top: t, left: n, bottom: r, right: i }) {
|
|
2006
1820
|
return {
|
|
2007
|
-
x:
|
|
2008
|
-
y:
|
|
1821
|
+
x: xi(e.x, n, i),
|
|
1822
|
+
y: xi(e.y, t, r)
|
|
2009
1823
|
};
|
|
2010
1824
|
}
|
|
2011
|
-
function
|
|
1825
|
+
function Ci(e, t) {
|
|
2012
1826
|
let n = t.min - e.min, r = t.max - e.max;
|
|
2013
1827
|
return t.max - t.min < e.max - e.min && ([n, r] = [r, n]), {
|
|
2014
1828
|
min: n,
|
|
2015
1829
|
max: r
|
|
2016
1830
|
};
|
|
2017
1831
|
}
|
|
2018
|
-
function
|
|
1832
|
+
function wi(e, t) {
|
|
2019
1833
|
return {
|
|
2020
|
-
x:
|
|
2021
|
-
y:
|
|
1834
|
+
x: Ci(e.x, t.x),
|
|
1835
|
+
y: Ci(e.y, t.y)
|
|
2022
1836
|
};
|
|
2023
1837
|
}
|
|
2024
|
-
function
|
|
1838
|
+
function Ti(e, t) {
|
|
2025
1839
|
let n = .5, r = G(e), i = G(t);
|
|
2026
|
-
return i > r ? n =
|
|
1840
|
+
return i > r ? n = S(t.min, t.max - r, e.min) : r > i && (n = S(e.min, e.max - i, t.min)), xe(0, 1, n);
|
|
2027
1841
|
}
|
|
2028
|
-
function
|
|
1842
|
+
function Ei(e, t) {
|
|
2029
1843
|
let n = {};
|
|
2030
1844
|
return t.min !== void 0 && (n.min = t.min - e.min), t.max !== void 0 && (n.max = t.max - e.min), n;
|
|
2031
1845
|
}
|
|
2032
|
-
var
|
|
2033
|
-
function
|
|
2034
|
-
return e === !1 ? e = 0 : e === !0 && (e =
|
|
2035
|
-
x:
|
|
2036
|
-
y:
|
|
1846
|
+
var Di = .35;
|
|
1847
|
+
function Oi(e = Di) {
|
|
1848
|
+
return e === !1 ? e = 0 : e === !0 && (e = Di), {
|
|
1849
|
+
x: ki(e, "left", "right"),
|
|
1850
|
+
y: ki(e, "top", "bottom")
|
|
2037
1851
|
};
|
|
2038
1852
|
}
|
|
2039
|
-
function
|
|
1853
|
+
function ki(e, t, n) {
|
|
2040
1854
|
return {
|
|
2041
|
-
min:
|
|
2042
|
-
max:
|
|
1855
|
+
min: Ai(e, t),
|
|
1856
|
+
max: Ai(e, n)
|
|
2043
1857
|
};
|
|
2044
1858
|
}
|
|
2045
|
-
function
|
|
1859
|
+
function Ai(e, t) {
|
|
2046
1860
|
return typeof e == "number" ? e : e[t] || 0;
|
|
2047
1861
|
}
|
|
2048
1862
|
//#endregion
|
|
2049
1863
|
//#region ../../node_modules/.pnpm/framer-motion@12.40.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.mjs
|
|
2050
|
-
var
|
|
1864
|
+
var ji = /* @__PURE__ */ new WeakMap(), Mi = class {
|
|
2051
1865
|
constructor(e) {
|
|
2052
1866
|
this.openDragLock = null, this.isDragging = !1, this.currentDirection = null, this.originPoint = {
|
|
2053
1867
|
x: 0,
|
|
2054
1868
|
y: 0
|
|
2055
|
-
}, this.constraints = !1, this.hasMutatedConstraints = !1, this.elastic =
|
|
1869
|
+
}, this.constraints = !1, this.hasMutatedConstraints = !1, this.elastic = f(), this.latestPointerEvent = null, this.latestPanInfo = null, this.visualElement = e;
|
|
2056
1870
|
}
|
|
2057
1871
|
start(e, { snapToCursor: t = !1, distanceThreshold: n } = {}) {
|
|
2058
1872
|
let { presenceContext: r } = this.visualElement;
|
|
@@ -2061,10 +1875,10 @@ var ta = /* @__PURE__ */ new WeakMap(), na = class {
|
|
|
2061
1875
|
t && this.snapToCursor(Q(e).point), this.stopAnimation();
|
|
2062
1876
|
}, a = (e, t) => {
|
|
2063
1877
|
let { drag: n, dragPropagation: r, onDragStart: i } = this.getProps();
|
|
2064
|
-
if (n && !r && (this.openDragLock && this.openDragLock(), this.openDragLock =
|
|
2065
|
-
this.latestPointerEvent = e, this.latestPanInfo = t, this.isDragging = !0, this.currentDirection = null, this.resolveConstraints(), this.visualElement.projection && (this.visualElement.projection.isAnimationBlocked = !0, this.visualElement.projection.target = void 0),
|
|
1878
|
+
if (n && !r && (this.openDragLock && this.openDragLock(), this.openDragLock = lt(n), !this.openDragLock)) return;
|
|
1879
|
+
this.latestPointerEvent = e, this.latestPanInfo = t, this.isDragging = !0, this.currentDirection = null, this.resolveConstraints(), this.visualElement.projection && (this.visualElement.projection.isAnimationBlocked = !0, this.visualElement.projection.target = void 0), J((e) => {
|
|
2066
1880
|
let t = this.getAxisMotionValue(e).get() || 0;
|
|
2067
|
-
if (
|
|
1881
|
+
if (T.test(t)) {
|
|
2068
1882
|
let { projection: n } = this.visualElement;
|
|
2069
1883
|
if (n && n.layout) {
|
|
2070
1884
|
let r = n.layout.layoutBox[e];
|
|
@@ -2072,7 +1886,7 @@ var ta = /* @__PURE__ */ new WeakMap(), na = class {
|
|
|
2072
1886
|
}
|
|
2073
1887
|
}
|
|
2074
1888
|
this.originPoint[e] = t;
|
|
2075
|
-
}), i &&
|
|
1889
|
+
}), i && k.update(() => i(e, t), !1, !0), u(this.visualElement, "transform");
|
|
2076
1890
|
let { animationState: a } = this.visualElement;
|
|
2077
1891
|
a && a.setActive("whileDrag", !0);
|
|
2078
1892
|
}, o = (e, t) => {
|
|
@@ -2081,30 +1895,30 @@ var ta = /* @__PURE__ */ new WeakMap(), na = class {
|
|
|
2081
1895
|
if (!n && !this.openDragLock) return;
|
|
2082
1896
|
let { offset: o } = t;
|
|
2083
1897
|
if (r && this.currentDirection === null) {
|
|
2084
|
-
this.currentDirection =
|
|
1898
|
+
this.currentDirection = Ii(o), this.currentDirection !== null && i && i(this.currentDirection);
|
|
2085
1899
|
return;
|
|
2086
1900
|
}
|
|
2087
|
-
this.updateAxis("x", t.point, o), this.updateAxis("y", t.point, o), this.visualElement.render(), a &&
|
|
2088
|
-
},
|
|
1901
|
+
this.updateAxis("x", t.point, o), this.updateAxis("y", t.point, o), this.visualElement.render(), a && k.update(() => a(e, t), !1, !0);
|
|
1902
|
+
}, s = (e, t) => {
|
|
2089
1903
|
this.latestPointerEvent = e, this.latestPanInfo = t, this.stop(e, t), this.latestPointerEvent = null, this.latestPanInfo = null;
|
|
2090
|
-
},
|
|
1904
|
+
}, c = () => {
|
|
2091
1905
|
let { dragSnapToOrigin: e } = this.getProps();
|
|
2092
1906
|
(e || this.constraints) && this.startAnimation({
|
|
2093
1907
|
x: 0,
|
|
2094
1908
|
y: 0
|
|
2095
1909
|
});
|
|
2096
|
-
}, { dragSnapToOrigin:
|
|
2097
|
-
this.panSession = new
|
|
1910
|
+
}, { dragSnapToOrigin: l } = this.getProps();
|
|
1911
|
+
this.panSession = new pi(e, {
|
|
2098
1912
|
onSessionStart: i,
|
|
2099
1913
|
onStart: a,
|
|
2100
1914
|
onMove: o,
|
|
2101
|
-
onSessionEnd:
|
|
2102
|
-
resumeAnimation:
|
|
1915
|
+
onSessionEnd: s,
|
|
1916
|
+
resumeAnimation: c
|
|
2103
1917
|
}, {
|
|
2104
1918
|
transformPagePoint: this.visualElement.getTransformPagePoint(),
|
|
2105
|
-
dragSnapToOrigin:
|
|
1919
|
+
dragSnapToOrigin: l,
|
|
2106
1920
|
distanceThreshold: n,
|
|
2107
|
-
contextWindow:
|
|
1921
|
+
contextWindow: li(this.visualElement),
|
|
2108
1922
|
element: this.visualElement.current
|
|
2109
1923
|
});
|
|
2110
1924
|
}
|
|
@@ -2114,7 +1928,7 @@ var ta = /* @__PURE__ */ new WeakMap(), na = class {
|
|
|
2114
1928
|
let { velocity: a } = r;
|
|
2115
1929
|
this.startAnimation(a);
|
|
2116
1930
|
let { onDragEnd: o } = this.getProps();
|
|
2117
|
-
o &&
|
|
1931
|
+
o && k.postRender(() => o(n, r));
|
|
2118
1932
|
}
|
|
2119
1933
|
cancel() {
|
|
2120
1934
|
this.isDragging = !1;
|
|
@@ -2128,34 +1942,34 @@ var ta = /* @__PURE__ */ new WeakMap(), na = class {
|
|
|
2128
1942
|
}
|
|
2129
1943
|
updateAxis(e, t, n) {
|
|
2130
1944
|
let { drag: r } = this.getProps();
|
|
2131
|
-
if (!n || !
|
|
1945
|
+
if (!n || !Fi(e, r, this.currentDirection)) return;
|
|
2132
1946
|
let i = this.getAxisMotionValue(e), a = this.originPoint[e] + n[e];
|
|
2133
|
-
this.constraints && this.constraints[e] && (a =
|
|
1947
|
+
this.constraints && this.constraints[e] && (a = bi(a, this.constraints[e], this.elastic[e])), i.set(a);
|
|
2134
1948
|
}
|
|
2135
1949
|
resolveConstraints() {
|
|
2136
1950
|
let { dragConstraints: e, dragElastic: t } = this.getProps(), n = this.visualElement.projection && !this.visualElement.projection.layout ? this.visualElement.projection.measure(!1) : this.visualElement.projection?.layout, r = this.constraints;
|
|
2137
|
-
e && Z(e) ? this.constraints ||= this.resolveRefConstraints() : e && n ? this.constraints =
|
|
2138
|
-
this.constraints !== !1 && this.getAxisMotionValue(e) && (this.constraints[e] =
|
|
1951
|
+
e && Z(e) ? this.constraints ||= this.resolveRefConstraints() : e && n ? this.constraints = Si(n.layoutBox, e) : this.constraints = !1, this.elastic = Oi(t), r !== this.constraints && !Z(e) && n && this.constraints && !this.hasMutatedConstraints && J((e) => {
|
|
1952
|
+
this.constraints !== !1 && this.getAxisMotionValue(e) && (this.constraints[e] = Ei(n.layoutBox[e], this.constraints[e]));
|
|
2139
1953
|
});
|
|
2140
1954
|
}
|
|
2141
1955
|
resolveRefConstraints() {
|
|
2142
1956
|
let { dragConstraints: e, onMeasureDragConstraints: t } = this.getProps();
|
|
2143
1957
|
if (!e || !Z(e)) return !1;
|
|
2144
1958
|
let n = e.current;
|
|
2145
|
-
|
|
1959
|
+
Ce(n !== null, "If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.", "drag-constraints-ref");
|
|
2146
1960
|
let { projection: r } = this.visualElement;
|
|
2147
1961
|
if (!r || !r.layout) return !1;
|
|
2148
1962
|
r.root && (r.root.scroll = void 0, r.root.updateScroll());
|
|
2149
|
-
let i =
|
|
1963
|
+
let i = he(n, r.root, this.visualElement.getTransformPagePoint()), a = wi(r.layout.layoutBox, i);
|
|
2150
1964
|
if (t) {
|
|
2151
|
-
let e = t(
|
|
2152
|
-
this.hasMutatedConstraints = !!e, e && (a =
|
|
1965
|
+
let e = t(ne(a));
|
|
1966
|
+
this.hasMutatedConstraints = !!e, e && (a = ze(e));
|
|
2153
1967
|
}
|
|
2154
1968
|
return a;
|
|
2155
1969
|
}
|
|
2156
1970
|
startAnimation(e) {
|
|
2157
|
-
let { drag: t, dragMomentum: n, dragElastic: r, dragTransition: i, dragSnapToOrigin: a, onDragTransitionEnd: o } = this.getProps(), s = this.constraints || {}, c =
|
|
2158
|
-
if (!
|
|
1971
|
+
let { drag: t, dragMomentum: n, dragElastic: r, dragTransition: i, dragSnapToOrigin: a, onDragTransitionEnd: o } = this.getProps(), s = this.constraints || {}, c = J((o) => {
|
|
1972
|
+
if (!Fi(o, t, this.currentDirection)) return;
|
|
2159
1973
|
let c = s && s[o] || {};
|
|
2160
1974
|
(a === !0 || a === o) && (c = {
|
|
2161
1975
|
min: 0,
|
|
@@ -2178,23 +1992,23 @@ var ta = /* @__PURE__ */ new WeakMap(), na = class {
|
|
|
2178
1992
|
}
|
|
2179
1993
|
startAxisValueAnimation(e, t) {
|
|
2180
1994
|
let n = this.getAxisMotionValue(e);
|
|
2181
|
-
return
|
|
1995
|
+
return u(this.visualElement, e), n.start(se(e, n, 0, t, this.visualElement, !1));
|
|
2182
1996
|
}
|
|
2183
1997
|
stopAnimation() {
|
|
2184
|
-
|
|
1998
|
+
J((e) => this.getAxisMotionValue(e).stop());
|
|
2185
1999
|
}
|
|
2186
2000
|
getAxisMotionValue(e) {
|
|
2187
2001
|
let t = `_drag${e.toUpperCase()}`;
|
|
2188
2002
|
return this.visualElement.getProps()[t] || this.visualElement.getValue(e, this.visualElement.latestValues[e] ?? 0);
|
|
2189
2003
|
}
|
|
2190
2004
|
snapToCursor(e) {
|
|
2191
|
-
|
|
2005
|
+
J((t) => {
|
|
2192
2006
|
let { drag: n } = this.getProps();
|
|
2193
|
-
if (!
|
|
2007
|
+
if (!Fi(t, n, this.currentDirection)) return;
|
|
2194
2008
|
let { projection: r } = this.visualElement, i = this.getAxisMotionValue(t);
|
|
2195
2009
|
if (r && r.layout) {
|
|
2196
2010
|
let { min: n, max: a } = r.layout.layoutBox[t], o = i.get() || 0;
|
|
2197
|
-
i.set(e[t] -
|
|
2011
|
+
i.set(e[t] - A(n, a, .5) + o);
|
|
2198
2012
|
}
|
|
2199
2013
|
});
|
|
2200
2014
|
}
|
|
@@ -2207,36 +2021,36 @@ var ta = /* @__PURE__ */ new WeakMap(), na = class {
|
|
|
2207
2021
|
x: 0,
|
|
2208
2022
|
y: 0
|
|
2209
2023
|
};
|
|
2210
|
-
|
|
2024
|
+
J((e) => {
|
|
2211
2025
|
let t = this.getAxisMotionValue(e);
|
|
2212
2026
|
if (t && this.constraints !== !1) {
|
|
2213
2027
|
let n = t.get();
|
|
2214
|
-
r[e] =
|
|
2028
|
+
r[e] = Ti({
|
|
2215
2029
|
min: n,
|
|
2216
2030
|
max: n
|
|
2217
2031
|
}, this.constraints[e]);
|
|
2218
2032
|
}
|
|
2219
2033
|
});
|
|
2220
2034
|
let { transformTemplate: i } = this.visualElement.getProps();
|
|
2221
|
-
this.visualElement.current.style.transform = i ? i({}, "") : "none", n.root && n.root.updateScroll(), n.updateLayout(), this.constraints = !1, this.resolveConstraints(),
|
|
2222
|
-
if (!
|
|
2035
|
+
this.visualElement.current.style.transform = i ? i({}, "") : "none", n.root && n.root.updateScroll(), n.updateLayout(), this.constraints = !1, this.resolveConstraints(), J((t) => {
|
|
2036
|
+
if (!Fi(t, e, null)) return;
|
|
2223
2037
|
let n = this.getAxisMotionValue(t), { min: i, max: a } = this.constraints[t];
|
|
2224
|
-
n.set(
|
|
2038
|
+
n.set(A(i, a, r[t]));
|
|
2225
2039
|
}), this.visualElement.render();
|
|
2226
2040
|
}
|
|
2227
2041
|
addListeners() {
|
|
2228
2042
|
if (!this.visualElement.current) return;
|
|
2229
|
-
|
|
2043
|
+
ji.set(this.visualElement, this);
|
|
2230
2044
|
let e = this.visualElement.current, t = $(e, "pointerdown", (t) => {
|
|
2231
|
-
let { drag: n, dragListener: r = !0 } = this.getProps(), i = t.target, a = i !== e &&
|
|
2045
|
+
let { drag: n, dragListener: r = !0 } = this.getProps(), i = t.target, a = i !== e && vt(i);
|
|
2232
2046
|
n && r && !a && this.start(t);
|
|
2233
2047
|
}), n, r = () => {
|
|
2234
2048
|
let { dragConstraints: t } = this.getProps();
|
|
2235
|
-
Z(t) && t.current && (this.constraints = this.resolveRefConstraints(), n ||=
|
|
2049
|
+
Z(t) && t.current && (this.constraints = this.resolveRefConstraints(), n ||= Pi(e, t.current, () => this.scalePositionWithinConstraints()));
|
|
2236
2050
|
}, { projection: i } = this.visualElement, a = i.addEventListener("measure", r);
|
|
2237
|
-
i && !i.layout && (i.root && i.root.updateScroll(), i.updateLayout()),
|
|
2238
|
-
let o =
|
|
2239
|
-
this.isDragging && t && (
|
|
2051
|
+
i && !i.layout && (i.root && i.root.updateScroll(), i.updateLayout()), k.read(r);
|
|
2052
|
+
let o = Y(window, "resize", () => this.scalePositionWithinConstraints()), s = i.addEventListener("didUpdate", (({ delta: e, hasLayoutChanged: t }) => {
|
|
2053
|
+
this.isDragging && t && (J((t) => {
|
|
2240
2054
|
let n = this.getAxisMotionValue(t);
|
|
2241
2055
|
n && (this.originPoint[t] += e[t].translate, n.set(n.get() + e[t].translate));
|
|
2242
2056
|
}), this.visualElement.render());
|
|
@@ -2246,7 +2060,7 @@ var ta = /* @__PURE__ */ new WeakMap(), na = class {
|
|
|
2246
2060
|
};
|
|
2247
2061
|
}
|
|
2248
2062
|
getProps() {
|
|
2249
|
-
let e = this.visualElement.getProps(), { drag: t = !1, dragDirectionLock: n = !1, dragPropagation: r = !1, dragConstraints: i = !1, dragElastic: a =
|
|
2063
|
+
let e = this.visualElement.getProps(), { drag: t = !1, dragDirectionLock: n = !1, dragPropagation: r = !1, dragConstraints: i = !1, dragElastic: a = Di, dragMomentum: o = !0 } = e;
|
|
2250
2064
|
return {
|
|
2251
2065
|
...e,
|
|
2252
2066
|
drag: t,
|
|
@@ -2258,7 +2072,7 @@ var ta = /* @__PURE__ */ new WeakMap(), na = class {
|
|
|
2258
2072
|
};
|
|
2259
2073
|
}
|
|
2260
2074
|
};
|
|
2261
|
-
function
|
|
2075
|
+
function Ni(e) {
|
|
2262
2076
|
let t = !0;
|
|
2263
2077
|
return () => {
|
|
2264
2078
|
if (t) {
|
|
@@ -2268,28 +2082,28 @@ function ra(e) {
|
|
|
2268
2082
|
e();
|
|
2269
2083
|
};
|
|
2270
2084
|
}
|
|
2271
|
-
function
|
|
2272
|
-
let r =
|
|
2085
|
+
function Pi(e, t, n) {
|
|
2086
|
+
let r = Pt(e, Ni(n)), i = Pt(t, Ni(n));
|
|
2273
2087
|
return () => {
|
|
2274
2088
|
r(), i();
|
|
2275
2089
|
};
|
|
2276
2090
|
}
|
|
2277
|
-
function
|
|
2091
|
+
function Fi(e, t, n) {
|
|
2278
2092
|
return (t === !0 || t === e) && (n === null || n === e);
|
|
2279
2093
|
}
|
|
2280
|
-
function
|
|
2094
|
+
function Ii(e, t = 10) {
|
|
2281
2095
|
let n = null;
|
|
2282
2096
|
return Math.abs(e.y) > t ? n = "y" : Math.abs(e.x) > t && (n = "x"), n;
|
|
2283
2097
|
}
|
|
2284
2098
|
//#endregion
|
|
2285
2099
|
//#region ../../node_modules/.pnpm/framer-motion@12.40.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/gestures/drag/index.mjs
|
|
2286
|
-
var
|
|
2100
|
+
var Li = class extends H {
|
|
2287
2101
|
constructor(e) {
|
|
2288
|
-
super(e), this.removeGroupControls =
|
|
2102
|
+
super(e), this.removeGroupControls = s, this.removeListeners = s, this.controls = new Mi(e);
|
|
2289
2103
|
}
|
|
2290
2104
|
mount() {
|
|
2291
2105
|
let { dragControls: e } = this.node.getProps();
|
|
2292
|
-
e && (this.removeGroupControls = e.subscribe(this.controls)), this.removeListeners = this.controls.addListeners() ||
|
|
2106
|
+
e && (this.removeGroupControls = e.subscribe(this.controls)), this.removeListeners = this.controls.addListeners() || s;
|
|
2293
2107
|
}
|
|
2294
2108
|
update() {
|
|
2295
2109
|
let { dragControls: e } = this.node.getProps(), { dragControls: t } = this.node.prevProps || {};
|
|
@@ -2298,26 +2112,26 @@ var sa = class extends H {
|
|
|
2298
2112
|
unmount() {
|
|
2299
2113
|
this.removeGroupControls(), this.removeListeners(), this.controls.isDragging || this.controls.endPanSession();
|
|
2300
2114
|
}
|
|
2301
|
-
},
|
|
2302
|
-
e &&
|
|
2303
|
-
},
|
|
2115
|
+
}, Ri = (e) => (t, n) => {
|
|
2116
|
+
e && k.update(() => e(t, n), !1, !0);
|
|
2117
|
+
}, zi = class extends H {
|
|
2304
2118
|
constructor() {
|
|
2305
|
-
super(...arguments), this.removePointerDownListener =
|
|
2119
|
+
super(...arguments), this.removePointerDownListener = s;
|
|
2306
2120
|
}
|
|
2307
2121
|
onPointerDown(e) {
|
|
2308
|
-
this.session = new
|
|
2122
|
+
this.session = new pi(e, this.createPanHandlers(), {
|
|
2309
2123
|
transformPagePoint: this.node.getTransformPagePoint(),
|
|
2310
|
-
contextWindow:
|
|
2124
|
+
contextWindow: li(this.node)
|
|
2311
2125
|
});
|
|
2312
2126
|
}
|
|
2313
2127
|
createPanHandlers() {
|
|
2314
2128
|
let { onPanSessionStart: e, onPanStart: t, onPan: n, onPanEnd: r } = this.node.getProps();
|
|
2315
2129
|
return {
|
|
2316
|
-
onSessionStart:
|
|
2317
|
-
onStart:
|
|
2318
|
-
onMove:
|
|
2130
|
+
onSessionStart: Ri(e),
|
|
2131
|
+
onStart: Ri(t),
|
|
2132
|
+
onMove: Ri(n),
|
|
2319
2133
|
onEnd: (e, t) => {
|
|
2320
|
-
delete this.session, r &&
|
|
2134
|
+
delete this.session, r && k.postRender(() => r(e, t));
|
|
2321
2135
|
}
|
|
2322
2136
|
};
|
|
2323
2137
|
}
|
|
@@ -2330,36 +2144,36 @@ var sa = class extends H {
|
|
|
2330
2144
|
unmount() {
|
|
2331
2145
|
this.removePointerDownListener(), this.session && this.session.end();
|
|
2332
2146
|
}
|
|
2333
|
-
},
|
|
2147
|
+
}, Bi = !1, Vi = class extends We {
|
|
2334
2148
|
componentDidMount() {
|
|
2335
2149
|
let { visualElement: e, layoutGroup: t, switchLayoutGroup: n, layoutId: r } = this.props, { projection: i } = e;
|
|
2336
|
-
i && (t.group && t.group.add(i), n && n.register && r && n.register(i),
|
|
2150
|
+
i && (t.group && t.group.add(i), n && n.register && r && n.register(i), Bi && i.root.didUpdate(), i.addEventListener("animationComplete", () => {
|
|
2337
2151
|
this.safeToRemove();
|
|
2338
2152
|
}), i.setOptions({
|
|
2339
2153
|
...i.options,
|
|
2340
2154
|
layoutDependency: this.props.layoutDependency,
|
|
2341
2155
|
onExitComplete: () => this.safeToRemove()
|
|
2342
|
-
})),
|
|
2156
|
+
})), jn.hasEverUpdated = !0;
|
|
2343
2157
|
}
|
|
2344
2158
|
getSnapshotBeforeUpdate(e) {
|
|
2345
2159
|
let { layoutDependency: t, visualElement: n, drag: r, isPresent: i } = this.props, { projection: a } = n;
|
|
2346
2160
|
return a ? (a.isPresent = i, e.layoutDependency !== t && a.setOptions({
|
|
2347
2161
|
...a.options,
|
|
2348
2162
|
layoutDependency: t
|
|
2349
|
-
}),
|
|
2163
|
+
}), Bi = !0, r || e.layoutDependency !== t || t === void 0 || e.isPresent !== i ? a.willUpdate() : this.safeToRemove(), e.isPresent !== i && (i ? a.promote() : a.relegate() || k.postRender(() => {
|
|
2350
2164
|
let e = a.getStack();
|
|
2351
2165
|
(!e || !e.members.length) && this.safeToRemove();
|
|
2352
2166
|
})), null) : null;
|
|
2353
2167
|
}
|
|
2354
2168
|
componentDidUpdate() {
|
|
2355
|
-
let { visualElement: e, layoutAnchor: t } = this.props, { projection:
|
|
2356
|
-
|
|
2357
|
-
!
|
|
2169
|
+
let { visualElement: e, layoutAnchor: t } = this.props, { projection: n } = e;
|
|
2170
|
+
n && (n.options.layoutAnchor = t, n.root.didUpdate(), a.postRender(() => {
|
|
2171
|
+
!n.currentAnimation && n.isLead() && this.safeToRemove();
|
|
2358
2172
|
}));
|
|
2359
2173
|
}
|
|
2360
2174
|
componentWillUnmount() {
|
|
2361
2175
|
let { visualElement: e, layoutGroup: t, switchLayoutGroup: n } = this.props, { projection: r } = e;
|
|
2362
|
-
|
|
2176
|
+
Bi = !0, r && (r.scheduleCheckAfterUnmount(), t && t.group && t.group.remove(r), n && n.deregister && n.deregister(r));
|
|
2363
2177
|
}
|
|
2364
2178
|
safeToRemove() {
|
|
2365
2179
|
let { safeToRemove: e } = this.props;
|
|
@@ -2369,41 +2183,41 @@ var sa = class extends H {
|
|
|
2369
2183
|
return null;
|
|
2370
2184
|
}
|
|
2371
2185
|
};
|
|
2372
|
-
function
|
|
2373
|
-
let [t, n] =
|
|
2374
|
-
return
|
|
2186
|
+
function Hi(e) {
|
|
2187
|
+
let [t, n] = pr(), r = M(tt);
|
|
2188
|
+
return $e(Vi, {
|
|
2375
2189
|
...e,
|
|
2376
2190
|
layoutGroup: r,
|
|
2377
|
-
switchLayoutGroup:
|
|
2191
|
+
switchLayoutGroup: M(Yr),
|
|
2378
2192
|
isPresent: t,
|
|
2379
2193
|
safeToRemove: n
|
|
2380
2194
|
});
|
|
2381
2195
|
}
|
|
2382
2196
|
//#endregion
|
|
2383
2197
|
//#region ../../node_modules/.pnpm/framer-motion@12.40.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/motion/features/drag.mjs
|
|
2384
|
-
var
|
|
2385
|
-
pan: { Feature:
|
|
2198
|
+
var Ui = {
|
|
2199
|
+
pan: { Feature: zi },
|
|
2386
2200
|
drag: {
|
|
2387
|
-
Feature:
|
|
2388
|
-
ProjectionNode:
|
|
2389
|
-
MeasureLayout:
|
|
2201
|
+
Feature: Li,
|
|
2202
|
+
ProjectionNode: fr,
|
|
2203
|
+
MeasureLayout: Hi
|
|
2390
2204
|
}
|
|
2391
2205
|
};
|
|
2392
2206
|
//#endregion
|
|
2393
2207
|
//#region ../../node_modules/.pnpm/framer-motion@12.40.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/gestures/hover.mjs
|
|
2394
|
-
function
|
|
2208
|
+
function Wi(e, t, n) {
|
|
2395
2209
|
let { props: r } = e;
|
|
2396
2210
|
e.animationState && r.whileHover && e.animationState.setActive("whileHover", n === "Start");
|
|
2397
2211
|
let i = r["onHover" + n];
|
|
2398
|
-
i &&
|
|
2212
|
+
i && k.postRender(() => i(t, Q(t)));
|
|
2399
2213
|
}
|
|
2400
|
-
var
|
|
2214
|
+
var Gi = class extends H {
|
|
2401
2215
|
mount() {
|
|
2402
2216
|
let { current: e } = this.node;
|
|
2403
|
-
e && (this.unmount =
|
|
2217
|
+
e && (this.unmount = ft(e, (e, t) => (Wi(this.node, t, "Start"), (e) => Wi(this.node, e, "End"))));
|
|
2404
2218
|
}
|
|
2405
2219
|
unmount() {}
|
|
2406
|
-
},
|
|
2220
|
+
}, Ki = class extends H {
|
|
2407
2221
|
constructor() {
|
|
2408
2222
|
super(...arguments), this.isActive = !1;
|
|
2409
2223
|
}
|
|
@@ -2420,57 +2234,57 @@ var ha = class extends H {
|
|
|
2420
2234
|
!this.isActive || !this.node.animationState || (this.node.animationState.setActive("whileFocus", !1), this.isActive = !1);
|
|
2421
2235
|
}
|
|
2422
2236
|
mount() {
|
|
2423
|
-
this.unmount =
|
|
2237
|
+
this.unmount = c(Y(this.node.current, "focus", () => this.onFocus()), Y(this.node.current, "blur", () => this.onBlur()));
|
|
2424
2238
|
}
|
|
2425
2239
|
unmount() {}
|
|
2426
2240
|
};
|
|
2427
2241
|
//#endregion
|
|
2428
2242
|
//#region ../../node_modules/.pnpm/framer-motion@12.40.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/gestures/press.mjs
|
|
2429
|
-
function
|
|
2243
|
+
function qi(e, t, n) {
|
|
2430
2244
|
let { props: r } = e;
|
|
2431
2245
|
if (e.current instanceof HTMLButtonElement && e.current.disabled) return;
|
|
2432
2246
|
e.animationState && r.whileTap && e.animationState.setActive("whileTap", n === "Start");
|
|
2433
2247
|
let i = r["onTap" + (n === "End" ? "" : n)];
|
|
2434
|
-
i &&
|
|
2248
|
+
i && k.postRender(() => i(t, Q(t)));
|
|
2435
2249
|
}
|
|
2436
|
-
var
|
|
2250
|
+
var Ji = class extends H {
|
|
2437
2251
|
mount() {
|
|
2438
2252
|
let { current: e } = this.node;
|
|
2439
2253
|
if (!e) return;
|
|
2440
2254
|
let { globalTapTarget: t, propagate: n } = this.node.props;
|
|
2441
|
-
this.unmount =
|
|
2255
|
+
this.unmount = wt(e, (e, t) => (qi(this.node, t, "Start"), (e, { success: t }) => qi(this.node, e, t ? "End" : "Cancel")), {
|
|
2442
2256
|
useGlobalTarget: t,
|
|
2443
2257
|
stopPropagation: n?.tap === !1
|
|
2444
2258
|
});
|
|
2445
2259
|
}
|
|
2446
2260
|
unmount() {}
|
|
2447
|
-
},
|
|
2448
|
-
let t =
|
|
2261
|
+
}, Yi = /* @__PURE__ */ new WeakMap(), Xi = /* @__PURE__ */ new WeakMap(), Zi = (e) => {
|
|
2262
|
+
let t = Yi.get(e.target);
|
|
2449
2263
|
t && t(e);
|
|
2450
|
-
},
|
|
2451
|
-
e.forEach(
|
|
2264
|
+
}, Qi = (e) => {
|
|
2265
|
+
e.forEach(Zi);
|
|
2452
2266
|
};
|
|
2453
|
-
function
|
|
2267
|
+
function $i({ root: e, ...t }) {
|
|
2454
2268
|
let n = e || document;
|
|
2455
|
-
|
|
2456
|
-
let r =
|
|
2457
|
-
return r[i] || (r[i] = new IntersectionObserver(
|
|
2269
|
+
Xi.has(n) || Xi.set(n, {});
|
|
2270
|
+
let r = Xi.get(n), i = JSON.stringify(t);
|
|
2271
|
+
return r[i] || (r[i] = new IntersectionObserver(Qi, {
|
|
2458
2272
|
root: e,
|
|
2459
2273
|
...t
|
|
2460
2274
|
})), r[i];
|
|
2461
2275
|
}
|
|
2462
|
-
function
|
|
2463
|
-
let r =
|
|
2464
|
-
return
|
|
2465
|
-
|
|
2276
|
+
function ea(e, t, n) {
|
|
2277
|
+
let r = $i(t);
|
|
2278
|
+
return Yi.set(e, n), r.observe(e), () => {
|
|
2279
|
+
Yi.delete(e), r.unobserve(e);
|
|
2466
2280
|
};
|
|
2467
2281
|
}
|
|
2468
2282
|
//#endregion
|
|
2469
2283
|
//#region ../../node_modules/.pnpm/framer-motion@12.40.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/motion/features/viewport/index.mjs
|
|
2470
|
-
var
|
|
2284
|
+
var ta = {
|
|
2471
2285
|
some: 0,
|
|
2472
2286
|
all: 1
|
|
2473
|
-
},
|
|
2287
|
+
}, na = class extends H {
|
|
2474
2288
|
constructor() {
|
|
2475
2289
|
super(...arguments), this.hasEnteredView = !1, this.isInView = !1;
|
|
2476
2290
|
}
|
|
@@ -2479,7 +2293,7 @@ var Ta = {
|
|
|
2479
2293
|
let { viewport: e = {} } = this.node.getProps(), { root: t, margin: n, amount: r = "some", once: i } = e, a = {
|
|
2480
2294
|
root: t ? t.current : void 0,
|
|
2481
2295
|
rootMargin: n,
|
|
2482
|
-
threshold: typeof r == "number" ? r :
|
|
2296
|
+
threshold: typeof r == "number" ? r : ta[r]
|
|
2483
2297
|
}, o = (e) => {
|
|
2484
2298
|
let { isIntersecting: t } = e;
|
|
2485
2299
|
if (this.isInView === t || (this.isInView = t, i && !t && this.hasEnteredView)) return;
|
|
@@ -2487,7 +2301,7 @@ var Ta = {
|
|
|
2487
2301
|
let { onViewportEnter: n, onViewportLeave: r } = this.node.getProps(), a = t ? n : r;
|
|
2488
2302
|
a && a(e);
|
|
2489
2303
|
};
|
|
2490
|
-
this.stopObserver =
|
|
2304
|
+
this.stopObserver = ea(this.node.current, a, o);
|
|
2491
2305
|
}
|
|
2492
2306
|
mount() {
|
|
2493
2307
|
this.startObserver();
|
|
@@ -2499,32 +2313,32 @@ var Ta = {
|
|
|
2499
2313
|
"amount",
|
|
2500
2314
|
"margin",
|
|
2501
2315
|
"root"
|
|
2502
|
-
].some(
|
|
2316
|
+
].some(ra(e, t)) && this.startObserver();
|
|
2503
2317
|
}
|
|
2504
2318
|
unmount() {
|
|
2505
2319
|
this.stopObserver?.(), this.hasEnteredView = !1, this.isInView = !1;
|
|
2506
2320
|
}
|
|
2507
2321
|
};
|
|
2508
|
-
function
|
|
2322
|
+
function ra({ viewport: e = {} }, { viewport: t = {} } = {}) {
|
|
2509
2323
|
return (n) => e[n] !== t[n];
|
|
2510
2324
|
}
|
|
2511
2325
|
//#endregion
|
|
2512
2326
|
//#region ../../node_modules/.pnpm/framer-motion@12.40.0_react-dom@19.2.3_react@19.2.3__react@19.2.3/node_modules/framer-motion/dist/es/motion/features/gestures.mjs
|
|
2513
|
-
var
|
|
2514
|
-
inView: { Feature:
|
|
2515
|
-
tap: { Feature:
|
|
2516
|
-
focus: { Feature:
|
|
2517
|
-
hover: { Feature:
|
|
2518
|
-
},
|
|
2519
|
-
ProjectionNode:
|
|
2520
|
-
MeasureLayout:
|
|
2521
|
-
} },
|
|
2522
|
-
...
|
|
2523
|
-
...
|
|
2524
|
-
...
|
|
2525
|
-
...
|
|
2526
|
-
},
|
|
2527
|
-
//#endregion
|
|
2528
|
-
export {
|
|
2327
|
+
var ia = {
|
|
2328
|
+
inView: { Feature: na },
|
|
2329
|
+
tap: { Feature: Ji },
|
|
2330
|
+
focus: { Feature: Ki },
|
|
2331
|
+
hover: { Feature: Gi }
|
|
2332
|
+
}, aa = { layout: {
|
|
2333
|
+
ProjectionNode: fr,
|
|
2334
|
+
MeasureLayout: Hi
|
|
2335
|
+
} }, oa = /* @__PURE__ */ ri({
|
|
2336
|
+
...si,
|
|
2337
|
+
...ia,
|
|
2338
|
+
...Ui,
|
|
2339
|
+
...aa
|
|
2340
|
+
}, ii);
|
|
2341
|
+
//#endregion
|
|
2342
|
+
export { F as a, st as i, Er as n, nt as o, pr as r, tt as s, oa as t };
|
|
2529
2343
|
|
|
2530
|
-
//# sourceMappingURL=proxy-
|
|
2344
|
+
//# sourceMappingURL=proxy-fP2NxmhM.js.map
|