@g4rcez/components 4.1.3 → 5.0.1
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/ai/docs/AnimatedList.md +1 -1
- package/ai/docs/Autocomplete.md +2 -2
- package/ai/docs/Button.md +1 -1
- package/ai/docs/Card.md +7 -7
- package/ai/docs/DatePicker.md +2 -2
- package/ai/docs/Dropdown.md +7 -7
- package/ai/docs/Expand.md +5 -5
- package/ai/docs/Input.md +3 -3
- package/ai/docs/InputField.md +24 -14
- package/ai/docs/List.md +1 -1
- package/ai/docs/Modal.md +4 -4
- package/ai/docs/MultiSelect.md +2 -2
- package/ai/docs/PageCalendar.md +2 -2
- package/ai/docs/Polymorph.md +1 -1
- package/ai/docs/Resizable.md +3 -3
- package/ai/docs/Select.md +2 -2
- package/ai/docs/Skeleton.md +1 -1
- package/ai/docs/Slot.md +3 -3
- package/ai/docs/Spinner.md +1 -1
- package/ai/docs/Stats.md +1 -1
- package/ai/docs/Step.md +1 -1
- package/ai/docs/Tabs.md +1 -1
- package/ai/docs/Tag.md +1 -1
- package/ai/docs/TaskList.md +3 -3
- package/ai/docs/Textarea.md +2 -2
- package/ai/docs/Tooltip.md +13 -9
- package/ai/docs/Typography.md +1 -1
- package/ai/docs/index.md +17 -17
- package/dist/CaretDown.es-BXl0Ixp3.js +23 -0
- package/dist/CaretDown.es-BXl0Ixp3.js.map +1 -0
- package/dist/CaretRight.es-B2mpMfqU.js +23 -0
- package/dist/CaretRight.es-B2mpMfqU.js.map +1 -0
- package/dist/CheckCircle.es-BB91gLT-.js +23 -0
- package/dist/CheckCircle.es-BB91gLT-.js.map +1 -0
- package/dist/File.es-CjNVQ00B.js +23 -0
- package/dist/File.es-CjNVQ00B.js.map +1 -0
- package/dist/IconBase.es-BlJQ9IXo.js +27 -0
- package/dist/IconBase.es-BlJQ9IXo.js.map +1 -0
- package/dist/Info.es-Dvln8pws.js +23 -0
- package/dist/Info.es-Dvln8pws.js.map +1 -0
- package/dist/MotionConfig-DKKYqBH2.js +27 -0
- package/dist/MotionConfig-DKKYqBH2.js.map +1 -0
- package/dist/MotionConfigContext-BORpSKe8.js +2571 -0
- package/dist/MotionConfigContext-BORpSKe8.js.map +1 -0
- package/dist/Warning.es-B_xCn-P5.js +23 -0
- package/dist/Warning.es-B_xCn-P5.js.map +1 -0
- package/dist/X.es-Cjq2a_OA.js +23 -0
- package/dist/X.es-Cjq2a_OA.js.map +1 -0
- package/dist/animate-BNYgkk_j.js +387 -0
- package/dist/animate-BNYgkk_j.js.map +1 -0
- package/dist/autocomplete-D3VOTihi.js +415 -0
- package/dist/autocomplete-D3VOTihi.js.map +1 -0
- package/dist/calendar-PCCZDUIL.js +1678 -0
- package/dist/calendar-PCCZDUIL.js.map +1 -0
- package/dist/components/core/button.js +75 -75
- package/dist/components/core/button.js.map +1 -1
- package/dist/components/core/tag.js +66 -66
- package/dist/components/core/tag.js.map +1 -1
- package/dist/components/display/alert.js +133 -95
- package/dist/components/display/alert.js.map +1 -1
- package/dist/components/display/calendar.js +3 -15
- package/dist/components/display/card.js +73 -82
- package/dist/components/display/card.js.map +1 -1
- package/dist/components/display/list.js +153 -93
- package/dist/components/display/list.js.map +1 -1
- package/dist/components/display/notifications.js +3 -15
- package/dist/components/display/stats.js +30 -16
- package/dist/components/display/stats.js.map +1 -1
- package/dist/components/display/tabs.js +3 -12
- package/dist/components/display/timeline.js +47 -28
- package/dist/components/display/timeline.js.map +1 -1
- package/dist/components/floating/dropdown.js +76 -65
- package/dist/components/floating/dropdown.js.map +1 -1
- package/dist/components/floating/expand.js +62 -40
- package/dist/components/floating/expand.js.map +1 -1
- package/dist/components/floating/menu.js +195 -177
- package/dist/components/floating/menu.js.map +1 -1
- package/dist/components/floating/modal.js +3 -301
- package/dist/components/floating/tooltip.js +63 -73
- package/dist/components/floating/tooltip.js.map +1 -1
- package/dist/components/form/autocomplete.js +3 -16
- package/dist/components/form/checkbox.js +34 -44
- package/dist/components/form/checkbox.js.map +1 -1
- package/dist/components/form/date-picker.js +3 -12
- package/dist/components/form/file-upload.js +3 -11
- package/dist/components/form/form.js +16 -7
- package/dist/components/form/form.js.map +1 -1
- package/dist/components/form/input.js +3 -5
- package/dist/components/form/radiobox.js +19 -30
- package/dist/components/form/radiobox.js.map +1 -1
- package/dist/components/form/select.js +77 -106
- package/dist/components/form/select.js.map +1 -1
- package/dist/components/form/switch.js +73 -64
- package/dist/components/form/switch.js.map +1 -1
- package/dist/components/form/task-list.js +3 -68
- package/dist/components/table/table.js +3 -10
- package/dist/date-picker-BhKEFZew.js +1498 -0
- package/dist/date-picker-BhKEFZew.js.map +1 -0
- package/dist/dist-BHFtgf5x.js +2593 -0
- package/dist/dist-BHFtgf5x.js.map +1 -0
- package/dist/dist-BrGpYRaj.js +178 -0
- package/dist/dist-BrGpYRaj.js.map +1 -0
- package/dist/dist-NmFtbuK4.js +35 -0
- package/dist/dist-NmFtbuK4.js.map +1 -0
- package/dist/dom-Bn4wY_Zx.js +2168 -0
- package/dist/dom-Bn4wY_Zx.js.map +1 -0
- package/dist/file-upload-DWbZfeG5.js +2966 -0
- package/dist/file-upload-DWbZfeG5.js.map +1 -0
- package/dist/floating-ui.react-CwXtBJ_y.js +3381 -0
- package/dist/floating-ui.react-CwXtBJ_y.js.map +1 -0
- package/dist/floating-ui.utils-CUrVRSbA.js +204 -0
- package/dist/floating-ui.utils-CUrVRSbA.js.map +1 -0
- package/dist/fns-KbsWlOTG.js +29 -0
- package/dist/fns-KbsWlOTG.js.map +1 -0
- package/dist/index.css +1 -1
- package/dist/index.js +7932 -20
- package/dist/index.js.map +1 -1
- package/dist/input-B7jqwPG4.js +473 -0
- package/dist/input-B7jqwPG4.js.map +1 -0
- package/dist/input-field-B_whI66Q.js +137 -0
- package/dist/input-field-B_whI66Q.js.map +1 -0
- package/dist/modal-Bz-61ays.js +373 -0
- package/dist/modal-Bz-61ays.js.map +1 -0
- package/dist/notifications-MT4XkLov.js +2203 -0
- package/dist/notifications-MT4XkLov.js.map +1 -0
- package/dist/polymorph-BLXhrn9n.js +14 -0
- package/dist/polymorph-BLXhrn9n.js.map +1 -0
- package/dist/preset/preset.tailwind.d.ts.map +1 -1
- package/dist/preset/preset.tailwind.js +40 -4
- package/dist/preset/src/styles/common.d.ts +0 -2
- package/dist/preset/src/styles/common.d.ts.map +1 -1
- package/dist/preset/src/styles/common.js +0 -9
- package/dist/preset/src/styles/components.d.ts +3 -0
- package/dist/preset/src/styles/components.d.ts.map +1 -0
- package/dist/preset/src/styles/components.js +400 -0
- package/dist/preset/src/styles/dark.d.ts.map +1 -1
- package/dist/preset/src/styles/dark.js +5 -3
- package/dist/preset/src/styles/default-tokens.d.ts +74 -0
- package/dist/preset/src/styles/default-tokens.d.ts.map +1 -0
- package/dist/preset/src/styles/default-tokens.js +44 -0
- package/dist/preset/src/styles/design-tokens.d.ts +1 -1
- package/dist/preset/src/styles/design-tokens.d.ts.map +1 -1
- package/dist/preset/src/styles/design-tokens.js +6 -2
- package/dist/preset/src/styles/light.d.ts.map +1 -1
- package/dist/preset/src/styles/light.js +22 -20
- package/dist/preset/src/styles/theme.types.d.ts +433 -8
- package/dist/preset/src/styles/theme.types.d.ts.map +1 -1
- package/dist/proxy-BcJ_5Dwq.js +2530 -0
- package/dist/proxy-BcJ_5Dwq.js.map +1 -0
- package/dist/skeleton-CBYEq3lM.js +26 -0
- package/dist/skeleton-CBYEq3lM.js.map +1 -0
- package/dist/slot-pC8kH9De.js +96 -0
- package/dist/slot-pC8kH9De.js.map +1 -0
- package/dist/styles/common.d.ts +0 -2
- package/dist/styles/common.d.ts.map +1 -1
- package/dist/styles/common.js +0 -9
- package/dist/styles/components.d.ts +3 -0
- package/dist/styles/components.d.ts.map +1 -0
- package/dist/styles/components.js +400 -0
- package/dist/styles/dark.d.ts.map +1 -1
- package/dist/styles/dark.js +5 -3
- package/dist/styles/default-tokens.d.ts +74 -0
- package/dist/styles/default-tokens.d.ts.map +1 -0
- package/dist/styles/default-tokens.js +44 -0
- package/dist/styles/design-tokens.d.ts +1 -1
- package/dist/styles/design-tokens.d.ts.map +1 -1
- package/dist/styles/design-tokens.js +6 -2
- package/dist/styles/light.d.ts.map +1 -1
- package/dist/styles/light.js +22 -20
- package/dist/styles/theme.types.d.ts +433 -8
- package/dist/styles/theme.types.d.ts.map +1 -1
- package/dist/table-CUFbAI2k.js +1914 -0
- package/dist/table-CUFbAI2k.js.map +1 -0
- package/dist/tabs-Ciy0l9OF.js +122 -0
- package/dist/tabs-Ciy0l9OF.js.map +1 -0
- package/dist/task-list-tKumO4WH.js +96 -0
- package/dist/task-list-tKumO4WH.js.map +1 -0
- package/dist/use-motion-value-BqPF1j90.js +15 -0
- package/dist/use-motion-value-BqPF1j90.js.map +1 -0
- package/dist/use-stable-ref-D5LFCx0u.js +12 -0
- package/dist/use-stable-ref-D5LFCx0u.js.map +1 -0
- package/dist/use-translations-DTLfPE3_.js +177 -0
- package/dist/use-translations-DTLfPE3_.js.map +1 -0
- package/package.json +17 -17
- package/dist/CaretDown.es-Cj7klWI3.js +0 -33
- package/dist/CaretDown.es-Cj7klWI3.js.map +0 -1
- package/dist/CaretRight.es-0-M8D9y8.js +0 -33
- package/dist/CaretRight.es-0-M8D9y8.js.map +0 -1
- package/dist/CheckCircle.es-C6QWLfk_.js +0 -33
- package/dist/CheckCircle.es-C6QWLfk_.js.map +0 -1
- package/dist/File.es-CA-vuPED.js +0 -33
- package/dist/File.es-CA-vuPED.js.map +0 -1
- package/dist/IconBase.es-DJ1oCtpo.js +0 -50
- package/dist/IconBase.es-DJ1oCtpo.js.map +0 -1
- package/dist/Info.es-CrZKs4q4.js +0 -33
- package/dist/Info.es-CrZKs4q4.js.map +0 -1
- package/dist/MotionConfigContext-C7MqlSdv.js +0 -2713
- package/dist/MotionConfigContext-C7MqlSdv.js.map +0 -1
- package/dist/Warning.es-D_eI6tLe.js +0 -39
- package/dist/Warning.es-D_eI6tLe.js.map +0 -1
- package/dist/X.es-BJ1O93El.js +0 -39
- package/dist/X.es-BJ1O93El.js.map +0 -1
- package/dist/autocomplete-DcTNOwyg.js +0 -393
- package/dist/autocomplete-DcTNOwyg.js.map +0 -1
- package/dist/calendar-BJMHRoy2.js +0 -1746
- package/dist/calendar-BJMHRoy2.js.map +0 -1
- package/dist/components/core/button.d.ts +0 -77
- package/dist/components/core/button.d.ts.map +0 -1
- package/dist/components/core/button.jsx +0 -79
- package/dist/components/core/heading.d.ts +0 -3
- package/dist/components/core/heading.d.ts.map +0 -1
- package/dist/components/core/heading.jsx +0 -4
- package/dist/components/core/polymorph.d.ts +0 -10
- package/dist/components/core/polymorph.d.ts.map +0 -1
- package/dist/components/core/polymorph.jsx +0 -5
- package/dist/components/core/render-on-view.d.ts +0 -7
- package/dist/components/core/render-on-view.d.ts.map +0 -1
- package/dist/components/core/render-on-view.jsx +0 -31
- package/dist/components/core/resizable.d.ts +0 -3
- package/dist/components/core/resizable.d.ts.map +0 -1
- package/dist/components/core/resizable.jsx +0 -51
- package/dist/components/core/slot.d.ts +0 -16
- package/dist/components/core/slot.d.ts.map +0 -1
- package/dist/components/core/slot.jsx +0 -156
- package/dist/components/core/tag.d.ts +0 -35
- package/dist/components/core/tag.d.ts.map +0 -1
- package/dist/components/core/tag.jsx +0 -51
- package/dist/components/core/typography.d.ts +0 -25
- package/dist/components/core/typography.d.ts.map +0 -1
- package/dist/components/core/typography.jsx +0 -18
- package/dist/components/display/alert.d.ts +0 -28
- package/dist/components/display/alert.d.ts.map +0 -1
- package/dist/components/display/alert.jsx +0 -61
- package/dist/components/display/calendar.d.ts +0 -42
- package/dist/components/display/calendar.d.ts.map +0 -1
- package/dist/components/display/calendar.js.map +0 -1
- package/dist/components/display/calendar.jsx +0 -299
- package/dist/components/display/card.d.ts +0 -29
- package/dist/components/display/card.d.ts.map +0 -1
- package/dist/components/display/card.jsx +0 -43
- package/dist/components/display/empty.d.ts +0 -8
- package/dist/components/display/empty.d.ts.map +0 -1
- package/dist/components/display/empty.jsx +0 -11
- package/dist/components/display/list.d.ts +0 -16
- package/dist/components/display/list.d.ts.map +0 -1
- package/dist/components/display/list.jsx +0 -81
- package/dist/components/display/notifications.d.ts +0 -27
- package/dist/components/display/notifications.d.ts.map +0 -1
- package/dist/components/display/notifications.js.map +0 -1
- package/dist/components/display/notifications.jsx +0 -126
- package/dist/components/display/progress.d.ts +0 -13
- package/dist/components/display/progress.d.ts.map +0 -1
- package/dist/components/display/progress.jsx +0 -11
- package/dist/components/display/shortcut.d.ts +0 -4
- package/dist/components/display/shortcut.d.ts.map +0 -1
- package/dist/components/display/shortcut.jsx +0 -23
- package/dist/components/display/skeleton.d.ts +0 -12
- package/dist/components/display/skeleton.d.ts.map +0 -1
- package/dist/components/display/skeleton.jsx +0 -19
- package/dist/components/display/spinner.d.ts +0 -5
- package/dist/components/display/spinner.d.ts.map +0 -1
- package/dist/components/display/spinner.jsx +0 -11
- package/dist/components/display/stats.d.ts +0 -12
- package/dist/components/display/stats.d.ts.map +0 -1
- package/dist/components/display/stats.jsx +0 -20
- package/dist/components/display/step.d.ts +0 -24
- package/dist/components/display/step.d.ts.map +0 -1
- package/dist/components/display/step.jsx +0 -131
- package/dist/components/display/tabs.d.ts +0 -24
- package/dist/components/display/tabs.d.ts.map +0 -1
- package/dist/components/display/tabs.js.map +0 -1
- package/dist/components/display/tabs.jsx +0 -125
- package/dist/components/display/timeline.d.ts +0 -10
- package/dist/components/display/timeline.d.ts.map +0 -1
- package/dist/components/display/timeline.jsx +0 -25
- package/dist/components/floating/command-palette.d.ts +0 -49
- package/dist/components/floating/command-palette.d.ts.map +0 -1
- package/dist/components/floating/command-palette.jsx +0 -197
- package/dist/components/floating/dropdown.d.ts +0 -15
- package/dist/components/floating/dropdown.d.ts.map +0 -1
- package/dist/components/floating/dropdown.jsx +0 -56
- package/dist/components/floating/expand.d.ts +0 -11
- package/dist/components/floating/expand.d.ts.map +0 -1
- package/dist/components/floating/expand.jsx +0 -44
- package/dist/components/floating/menu.d.ts +0 -52
- package/dist/components/floating/menu.d.ts.map +0 -1
- package/dist/components/floating/menu.jsx +0 -147
- package/dist/components/floating/modal.d.ts +0 -60
- package/dist/components/floating/modal.d.ts.map +0 -1
- package/dist/components/floating/modal.js.map +0 -1
- package/dist/components/floating/modal.jsx +0 -301
- package/dist/components/floating/toolbar.d.ts +0 -6
- package/dist/components/floating/toolbar.d.ts.map +0 -1
- package/dist/components/floating/toolbar.jsx +0 -5
- package/dist/components/floating/tooltip.d.ts +0 -17
- package/dist/components/floating/tooltip.d.ts.map +0 -1
- package/dist/components/floating/tooltip.jsx +0 -58
- package/dist/components/floating/wizard.d.ts +0 -26
- package/dist/components/floating/wizard.d.ts.map +0 -1
- package/dist/components/floating/wizard.jsx +0 -161
- package/dist/components/form/autocomplete.d.ts +0 -16
- package/dist/components/form/autocomplete.d.ts.map +0 -1
- package/dist/components/form/autocomplete.js.map +0 -1
- package/dist/components/form/autocomplete.jsx +0 -278
- package/dist/components/form/checkbox.d.ts +0 -12
- package/dist/components/form/checkbox.d.ts.map +0 -1
- package/dist/components/form/checkbox.jsx +0 -12
- package/dist/components/form/date-picker.d.ts +0 -10
- package/dist/components/form/date-picker.d.ts.map +0 -1
- package/dist/components/form/date-picker.js.map +0 -1
- package/dist/components/form/date-picker.jsx +0 -115
- package/dist/components/form/file-upload.d.ts +0 -15
- package/dist/components/form/file-upload.d.ts.map +0 -1
- package/dist/components/form/file-upload.js.map +0 -1
- package/dist/components/form/file-upload.jsx +0 -134
- package/dist/components/form/form.d.ts +0 -3
- package/dist/components/form/form.d.ts.map +0 -1
- package/dist/components/form/form.jsx +0 -10
- package/dist/components/form/formReset.d.ts +0 -2
- package/dist/components/form/formReset.d.ts.map +0 -1
- package/dist/components/form/formReset.jsx +0 -17
- package/dist/components/form/free-text.d.ts +0 -11
- package/dist/components/form/free-text.d.ts.map +0 -1
- package/dist/components/form/free-text.jsx +0 -41
- package/dist/components/form/input-field.d.ts +0 -34
- package/dist/components/form/input-field.d.ts.map +0 -1
- package/dist/components/form/input-field.jsx +0 -58
- package/dist/components/form/input.d.ts +0 -52
- package/dist/components/form/input.d.ts.map +0 -1
- package/dist/components/form/input.js.map +0 -1
- package/dist/components/form/input.jsx +0 -36
- package/dist/components/form/multi-select.d.ts +0 -19
- package/dist/components/form/multi-select.d.ts.map +0 -1
- package/dist/components/form/multi-select.jsx +0 -336
- package/dist/components/form/radiobox.d.ts +0 -7
- package/dist/components/form/radiobox.d.ts.map +0 -1
- package/dist/components/form/radiobox.jsx +0 -6
- package/dist/components/form/select.d.ts +0 -13
- package/dist/components/form/select.d.ts.map +0 -1
- package/dist/components/form/select.jsx +0 -42
- package/dist/components/form/slider.d.ts +0 -7
- package/dist/components/form/slider.d.ts.map +0 -1
- package/dist/components/form/slider.jsx +0 -45
- package/dist/components/form/switch.d.ts +0 -9
- package/dist/components/form/switch.d.ts.map +0 -1
- package/dist/components/form/switch.jsx +0 -46
- package/dist/components/form/task-list.d.ts +0 -3
- package/dist/components/form/task-list.d.ts.map +0 -1
- package/dist/components/form/task-list.js.map +0 -1
- package/dist/components/form/task-list.jsx +0 -26
- package/dist/components/form/textarea.d.ts +0 -6
- package/dist/components/form/textarea.d.ts.map +0 -1
- package/dist/components/form/textarea.jsx +0 -12
- package/dist/components/index.d.ts +0 -45
- package/dist/components/index.d.ts.map +0 -1
- package/dist/components/index.js +0 -44
- package/dist/components/page-calendar/calendar-header.d.ts +0 -16
- package/dist/components/page-calendar/calendar-header.d.ts.map +0 -1
- package/dist/components/page-calendar/calendar-header.jsx +0 -83
- package/dist/components/page-calendar/day-view.d.ts +0 -12
- package/dist/components/page-calendar/day-view.d.ts.map +0 -1
- package/dist/components/page-calendar/day-view.jsx +0 -94
- package/dist/components/page-calendar/event-pill.d.ts +0 -9
- package/dist/components/page-calendar/event-pill.d.ts.map +0 -1
- package/dist/components/page-calendar/event-pill.jsx +0 -25
- package/dist/components/page-calendar/index.d.ts +0 -4
- package/dist/components/page-calendar/index.d.ts.map +0 -1
- package/dist/components/page-calendar/index.js +0 -2
- package/dist/components/page-calendar/month-view.d.ts +0 -11
- package/dist/components/page-calendar/month-view.d.ts.map +0 -1
- package/dist/components/page-calendar/month-view.jsx +0 -46
- package/dist/components/page-calendar/page-calendar.d.ts +0 -18
- package/dist/components/page-calendar/page-calendar.d.ts.map +0 -1
- package/dist/components/page-calendar/page-calendar.jsx +0 -41
- package/dist/components/page-calendar/page-calendar.types.d.ts +0 -18
- package/dist/components/page-calendar/page-calendar.types.d.ts.map +0 -1
- package/dist/components/page-calendar/page-calendar.types.js +0 -1
- package/dist/components/page-calendar/page-calendar.utils.d.ts +0 -24
- package/dist/components/page-calendar/page-calendar.utils.d.ts.map +0 -1
- package/dist/components/page-calendar/page-calendar.utils.js +0 -93
- package/dist/components/page-calendar/week-view.d.ts +0 -11
- package/dist/components/page-calendar/week-view.d.ts.map +0 -1
- package/dist/components/page-calendar/week-view.jsx +0 -71
- package/dist/components/table/filter.d.ts +0 -42
- package/dist/components/table/filter.d.ts.map +0 -1
- package/dist/components/table/filter.jsx +0 -141
- package/dist/components/table/group.d.ts +0 -17
- package/dist/components/table/group.d.ts.map +0 -1
- package/dist/components/table/group.jsx +0 -68
- package/dist/components/table/index.d.ts +0 -19
- package/dist/components/table/index.d.ts.map +0 -1
- package/dist/components/table/index.jsx +0 -60
- package/dist/components/table/inner-table.d.ts +0 -29
- package/dist/components/table/inner-table.d.ts.map +0 -1
- package/dist/components/table/inner-table.jsx +0 -102
- package/dist/components/table/metadata.d.ts +0 -4
- package/dist/components/table/metadata.d.ts.map +0 -1
- package/dist/components/table/metadata.jsx +0 -36
- package/dist/components/table/pagination.d.ts +0 -5
- package/dist/components/table/pagination.d.ts.map +0 -1
- package/dist/components/table/pagination.jsx +0 -74
- package/dist/components/table/row.d.ts +0 -11
- package/dist/components/table/row.d.ts.map +0 -1
- package/dist/components/table/row.jsx +0 -49
- package/dist/components/table/sort.d.ts +0 -28
- package/dist/components/table/sort.d.ts.map +0 -1
- package/dist/components/table/sort.jsx +0 -109
- package/dist/components/table/table-lib.d.ts +0 -135
- package/dist/components/table/table-lib.d.ts.map +0 -1
- package/dist/components/table/table-lib.js +0 -83
- package/dist/components/table/table.context.d.ts +0 -10
- package/dist/components/table/table.context.d.ts.map +0 -1
- package/dist/components/table/table.context.jsx +0 -4
- package/dist/components/table/table.js.map +0 -1
- package/dist/components/table/thead.d.ts +0 -9
- package/dist/components/table/thead.d.ts.map +0 -1
- package/dist/components/table/thead.jsx +0 -103
- package/dist/config/context.d.ts +0 -21
- package/dist/config/context.d.ts.map +0 -1
- package/dist/config/context.js +0 -12
- package/dist/config/default-translations.d.ts +0 -94
- package/dist/config/default-translations.d.ts.map +0 -1
- package/dist/config/default-translations.jsx +0 -87
- package/dist/config/default-tweaks.d.ts +0 -13
- package/dist/config/default-tweaks.d.ts.map +0 -1
- package/dist/config/default-tweaks.js +0 -4
- package/dist/constants-r-AHn273.js +0 -6
- package/dist/constants-r-AHn273.js.map +0 -1
- package/dist/constants.d.ts +0 -3
- package/dist/constants.d.ts.map +0 -1
- package/dist/constants.js +0 -2
- package/dist/date-picker-Bnl07nd8.js +0 -1628
- package/dist/date-picker-Bnl07nd8.js.map +0 -1
- package/dist/dom-CyQHY7ID.js +0 -2838
- package/dist/dom-CyQHY7ID.js.map +0 -1
- package/dist/file-upload-93d5DR4q.js +0 -3255
- package/dist/file-upload-93d5DR4q.js.map +0 -1
- package/dist/floating-ui.react-M2PGXLDp.js +0 -3706
- package/dist/floating-ui.react-M2PGXLDp.js.map +0 -1
- package/dist/fns-C7Dt27Qd.js +0 -33
- package/dist/fns-C7Dt27Qd.js.map +0 -1
- package/dist/hooks/use-click-outside.d.ts +0 -3
- package/dist/hooks/use-click-outside.d.ts.map +0 -1
- package/dist/hooks/use-click-outside.js +0 -17
- package/dist/hooks/use-color-parser.d.ts +0 -2
- package/dist/hooks/use-color-parser.d.ts.map +0 -1
- package/dist/hooks/use-color-parser.js +0 -9
- package/dist/hooks/use-components-provider.d.ts +0 -15
- package/dist/hooks/use-components-provider.d.ts.map +0 -1
- package/dist/hooks/use-components-provider.jsx +0 -22
- package/dist/hooks/use-debounce.d.ts +0 -5
- package/dist/hooks/use-debounce.d.ts.map +0 -1
- package/dist/hooks/use-debounce.js +0 -12
- package/dist/hooks/use-floating-ref.d.ts +0 -2
- package/dist/hooks/use-floating-ref.d.ts.map +0 -1
- package/dist/hooks/use-floating-ref.js +0 -6
- package/dist/hooks/use-form.d.ts +0 -394
- package/dist/hooks/use-form.d.ts.map +0 -1
- package/dist/hooks/use-form.js +0 -563
- package/dist/hooks/use-hover.d.ts +0 -3
- package/dist/hooks/use-hover.d.ts.map +0 -1
- package/dist/hooks/use-hover.js +0 -18
- package/dist/hooks/use-input-id.d.ts +0 -4
- package/dist/hooks/use-input-id.d.ts.map +0 -1
- package/dist/hooks/use-input-id.js +0 -5
- package/dist/hooks/use-is-coarse-device.d.ts +0 -2
- package/dist/hooks/use-is-coarse-device.d.ts.map +0 -1
- package/dist/hooks/use-is-coarse-device.js +0 -12
- package/dist/hooks/use-locale.d.ts +0 -3
- package/dist/hooks/use-locale.d.ts.map +0 -1
- package/dist/hooks/use-locale.js +0 -10
- package/dist/hooks/use-media-query.d.ts +0 -2
- package/dist/hooks/use-media-query.d.ts.map +0 -1
- package/dist/hooks/use-media-query.js +0 -25
- package/dist/hooks/use-on-event.d.ts +0 -4
- package/dist/hooks/use-on-event.d.ts.map +0 -1
- package/dist/hooks/use-on-event.js +0 -7
- package/dist/hooks/use-parent.d.ts +0 -3
- package/dist/hooks/use-parent.d.ts.map +0 -1
- package/dist/hooks/use-parent.js +0 -21
- package/dist/hooks/use-preferences.d.ts +0 -2
- package/dist/hooks/use-preferences.d.ts.map +0 -1
- package/dist/hooks/use-preferences.js +0 -23
- package/dist/hooks/use-previous.d.ts +0 -2
- package/dist/hooks/use-previous.d.ts.map +0 -1
- package/dist/hooks/use-previous.js +0 -9
- package/dist/hooks/use-reactive.d.ts +0 -2
- package/dist/hooks/use-reactive.d.ts.map +0 -1
- package/dist/hooks/use-reactive.js +0 -9
- package/dist/hooks/use-remove-scroll.d.ts +0 -4
- package/dist/hooks/use-remove-scroll.d.ts.map +0 -1
- package/dist/hooks/use-remove-scroll.js +0 -48
- package/dist/hooks/use-resize-observer.d.ts +0 -2
- package/dist/hooks/use-resize-observer.d.ts.map +0 -1
- package/dist/hooks/use-resize-observer.js +0 -17
- package/dist/hooks/use-stable-ref.d.ts +0 -2
- package/dist/hooks/use-stable-ref.d.ts.map +0 -1
- package/dist/hooks/use-stable-ref.js +0 -9
- package/dist/hooks/use-swipe.d.ts +0 -8
- package/dist/hooks/use-swipe.d.ts.map +0 -1
- package/dist/hooks/use-swipe.js +0 -17
- package/dist/hooks/use-translations.d.ts +0 -92
- package/dist/hooks/use-translations.d.ts.map +0 -1
- package/dist/hooks/use-translations.js +0 -9
- package/dist/hooks/use-tweaks.d.ts +0 -3
- package/dist/hooks/use-tweaks.d.ts.map +0 -1
- package/dist/hooks/use-tweaks.js +0 -9
- package/dist/hooks/use-window-size.d.ts +0 -5
- package/dist/hooks/use-window-size.d.ts.map +0 -1
- package/dist/hooks/use-window-size.js +0 -14
- package/dist/index-0YMC-_Lt.js +0 -20
- package/dist/index-0YMC-_Lt.js.map +0 -1
- package/dist/index-BJ1ayTam.js +0 -126
- package/dist/index-BJ1ayTam.js.map +0 -1
- package/dist/index-C-PuFUZi.js +0 -3416
- package/dist/index-C-PuFUZi.js.map +0 -1
- package/dist/index-DDeQW0JW.js +0 -1816
- package/dist/index-DDeQW0JW.js.map +0 -1
- package/dist/index-DE4shK8D.js +0 -215
- package/dist/index-DE4shK8D.js.map +0 -1
- package/dist/index-DlJ_2RBL.js +0 -35
- package/dist/index-DlJ_2RBL.js.map +0 -1
- package/dist/index-t1qLJTt5.js +0 -351
- package/dist/index-t1qLJTt5.js.map +0 -1
- package/dist/index.d.ts +0 -22
- package/dist/index.d.ts.map +0 -1
- package/dist/index.esm-BaIwleSE.js +0 -343
- package/dist/index.esm-BaIwleSE.js.map +0 -1
- package/dist/input-_MVxmIpu.js +0 -443
- package/dist/input-_MVxmIpu.js.map +0 -1
- package/dist/input-field-CDCOODOl.js +0 -182
- package/dist/input-field-CDCOODOl.js.map +0 -1
- package/dist/lib/combi-keys.d.ts +0 -15
- package/dist/lib/combi-keys.d.ts.map +0 -1
- package/dist/lib/combi-keys.js +0 -60
- package/dist/lib/dict.d.ts +0 -9
- package/dist/lib/dict.d.ts.map +0 -1
- package/dist/lib/dict.js +0 -28
- package/dist/lib/dom.d.ts +0 -20
- package/dist/lib/dom.d.ts.map +0 -1
- package/dist/lib/dom.js +0 -66
- package/dist/lib/fns.d.ts +0 -11
- package/dist/lib/fns.d.ts.map +0 -1
- package/dist/lib/fns.js +0 -46
- package/dist/lib/fzf.d.ts +0 -16
- package/dist/lib/fzf.d.ts.map +0 -1
- package/dist/lib/fzf.js +0 -115
- package/dist/lib/keyboard-area.d.ts +0 -16
- package/dist/lib/keyboard-area.d.ts.map +0 -1
- package/dist/lib/keyboard-area.js +0 -14
- package/dist/notifications-Dp0ydKJS.js +0 -2576
- package/dist/notifications-Dp0ydKJS.js.map +0 -1
- package/dist/polymorph-B5n9fs_K.js +0 -10
- package/dist/polymorph-B5n9fs_K.js.map +0 -1
- package/dist/proxy-BZcQiBrp.js +0 -2495
- package/dist/proxy-BZcQiBrp.js.map +0 -1
- package/dist/skeleton-BjJobYYf.js +0 -24
- package/dist/skeleton-BjJobYYf.js.map +0 -1
- package/dist/slot-CRyweuj0.js +0 -79
- package/dist/slot-CRyweuj0.js.map +0 -1
- package/dist/tabs-B0g7YtQv.js +0 -123
- package/dist/tabs-B0g7YtQv.js.map +0 -1
- package/dist/tsconfig.lib.tsbuildinfo +0 -1
- package/dist/types.d.ts +0 -26
- package/dist/types.d.ts.map +0 -1
- package/dist/types.js +0 -1
- package/dist/use-motion-value-eGwNuWuw.js +0 -14
- package/dist/use-motion-value-eGwNuWuw.js.map +0 -1
- package/dist/use-stable-ref-CYh-YkID.js +0 -11
- package/dist/use-stable-ref-CYh-YkID.js.map +0 -1
- package/dist/use-translations-DSltA7H_.js +0 -169
- package/dist/use-translations-DSltA7H_.js.map +0 -1
|
@@ -0,0 +1,2571 @@
|
|
|
1
|
+
import { createContext as e, useRef as t } from "react";
|
|
2
|
+
//#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-constant.mjs
|
|
3
|
+
function n(e) {
|
|
4
|
+
let n = t(null);
|
|
5
|
+
return n.current === null && (n.current = e()), n.current;
|
|
6
|
+
}
|
|
7
|
+
//#endregion
|
|
8
|
+
//#region ../../node_modules/.pnpm/motion-utils@12.39.0/node_modules/motion-utils/dist/es/array.mjs
|
|
9
|
+
function r(e, t) {
|
|
10
|
+
e.indexOf(t) === -1 && e.push(t);
|
|
11
|
+
}
|
|
12
|
+
function i(e, t) {
|
|
13
|
+
let n = e.indexOf(t);
|
|
14
|
+
n > -1 && e.splice(n, 1);
|
|
15
|
+
}
|
|
16
|
+
function a([ ...e], t, n) {
|
|
17
|
+
let r = t < 0 ? e.length + t : t;
|
|
18
|
+
if (r >= 0 && r < e.length) {
|
|
19
|
+
let r = n < 0 ? e.length + n : n, [i] = e.splice(t, 1);
|
|
20
|
+
e.splice(r, 0, i);
|
|
21
|
+
}
|
|
22
|
+
return e;
|
|
23
|
+
}
|
|
24
|
+
//#endregion
|
|
25
|
+
//#region ../../node_modules/.pnpm/motion-utils@12.39.0/node_modules/motion-utils/dist/es/clamp.mjs
|
|
26
|
+
var o = (e, t, n) => n > t ? t : n < e ? e : n;
|
|
27
|
+
//#endregion
|
|
28
|
+
//#region ../../node_modules/.pnpm/motion-utils@12.39.0/node_modules/motion-utils/dist/es/format-error-message.mjs
|
|
29
|
+
function s(e, t) {
|
|
30
|
+
return t ? `${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}` : e;
|
|
31
|
+
}
|
|
32
|
+
//#endregion
|
|
33
|
+
//#region ../../node_modules/.pnpm/motion-utils@12.39.0/node_modules/motion-utils/dist/es/errors.mjs
|
|
34
|
+
var c = () => {}, l = () => {};
|
|
35
|
+
typeof process < "u" && process.env.NODE_ENV !== "production" && (c = (e, t, n) => {
|
|
36
|
+
!e && typeof console < "u" && console.warn(s(t, n));
|
|
37
|
+
}, l = (e, t, n) => {
|
|
38
|
+
if (!e) throw Error(s(t, n));
|
|
39
|
+
});
|
|
40
|
+
//#endregion
|
|
41
|
+
//#region ../../node_modules/.pnpm/motion-utils@12.39.0/node_modules/motion-utils/dist/es/global-config.mjs
|
|
42
|
+
var u = {}, d = (e) => /^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e), f = (e) => typeof e == "object" && !!e, p = (e) => /^0[^.\s]+$/u.test(e);
|
|
43
|
+
//#endregion
|
|
44
|
+
//#region ../../node_modules/.pnpm/motion-utils@12.39.0/node_modules/motion-utils/dist/es/memo.mjs
|
|
45
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
46
|
+
function m(e) {
|
|
47
|
+
let t;
|
|
48
|
+
return () => (t === void 0 && (t = e()), t);
|
|
49
|
+
}
|
|
50
|
+
//#endregion
|
|
51
|
+
//#region ../../node_modules/.pnpm/motion-utils@12.39.0/node_modules/motion-utils/dist/es/noop.mjs
|
|
52
|
+
var h = /* @__NO_SIDE_EFFECTS__ */ (e) => e, g = (...e) => e.reduce((e, t) => (n) => t(e(n))), _ = /* @__NO_SIDE_EFFECTS__ */ (e, t, n) => {
|
|
53
|
+
let r = t - e;
|
|
54
|
+
return r ? (n - e) / r : 1;
|
|
55
|
+
}, v = class {
|
|
56
|
+
constructor() {
|
|
57
|
+
this.subscriptions = [];
|
|
58
|
+
}
|
|
59
|
+
add(e) {
|
|
60
|
+
return r(this.subscriptions, e), () => i(this.subscriptions, e);
|
|
61
|
+
}
|
|
62
|
+
notify(e, t, n) {
|
|
63
|
+
let r = this.subscriptions.length;
|
|
64
|
+
if (r) if (r === 1) this.subscriptions[0](e, t, n);
|
|
65
|
+
else for (let i = 0; i < r; i++) {
|
|
66
|
+
let r = this.subscriptions[i];
|
|
67
|
+
r && r(e, t, n);
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
getSize() {
|
|
71
|
+
return this.subscriptions.length;
|
|
72
|
+
}
|
|
73
|
+
clear() {
|
|
74
|
+
this.subscriptions.length = 0;
|
|
75
|
+
}
|
|
76
|
+
}, y = /* @__NO_SIDE_EFFECTS__ */ (e) => e * 1e3, b = /* @__NO_SIDE_EFFECTS__ */ (e) => e / 1e3, x = /* @__NO_SIDE_EFFECTS__ */ (e, t) => t ? 1e3 / t * e : 0, S = /* @__PURE__ */ new Set();
|
|
77
|
+
function C(e, t, n) {
|
|
78
|
+
e || S.has(t) || (console.warn(s(t, n)), S.add(t));
|
|
79
|
+
}
|
|
80
|
+
//#endregion
|
|
81
|
+
//#region ../../node_modules/.pnpm/motion-utils@12.39.0/node_modules/motion-utils/dist/es/easing/cubic-bezier.mjs
|
|
82
|
+
var w = (e, t, n) => (((1 - 3 * n + 3 * t) * e + (3 * n - 6 * t)) * e + 3 * t) * e, ee = 1e-7, te = 12;
|
|
83
|
+
function ne(e, t, n, r, i) {
|
|
84
|
+
let a, o, s = 0;
|
|
85
|
+
do
|
|
86
|
+
o = t + (n - t) / 2, a = w(o, r, i) - e, a > 0 ? n = o : t = o;
|
|
87
|
+
while (Math.abs(a) > ee && ++s < te);
|
|
88
|
+
return o;
|
|
89
|
+
}
|
|
90
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
91
|
+
function T(e, t, n, r) {
|
|
92
|
+
if (e === t && n === r) return h;
|
|
93
|
+
let i = (t) => ne(t, 0, 1, e, n);
|
|
94
|
+
return (e) => e === 0 || e === 1 ? e : w(i(e), t, r);
|
|
95
|
+
}
|
|
96
|
+
//#endregion
|
|
97
|
+
//#region ../../node_modules/.pnpm/motion-utils@12.39.0/node_modules/motion-utils/dist/es/easing/modifiers/mirror.mjs
|
|
98
|
+
var re = /* @__NO_SIDE_EFFECTS__ */ (e) => (t) => t <= .5 ? e(2 * t) / 2 : (2 - e(2 * (1 - t))) / 2, ie = /* @__NO_SIDE_EFFECTS__ */ (e) => (t) => 1 - e(1 - t), ae = /* @__PURE__ */ T(.33, 1.53, .69, .99), oe = /* @__PURE__ */ ie(ae), se = /* @__PURE__ */ re(oe), ce = (e) => e >= 1 ? 1 : (e *= 2) < 1 ? .5 * oe(e) : .5 * (2 - 2 ** (-10 * (e - 1))), le = (e) => 1 - Math.sin(Math.acos(e)), ue = /* @__PURE__ */ ie(le), de = /* @__PURE__ */ re(le), fe = /* @__PURE__ */ T(.42, 0, 1, 1), pe = /* @__PURE__ */ T(0, 0, .58, 1), me = /* @__PURE__ */ T(.42, 0, .58, 1), he = /* @__NO_SIDE_EFFECTS__ */ (e) => Array.isArray(e) && typeof e[0] != "number", ge = /* @__NO_SIDE_EFFECTS__ */ (e) => Array.isArray(e) && typeof e[0] == "number", _e = {
|
|
99
|
+
linear: h,
|
|
100
|
+
easeIn: fe,
|
|
101
|
+
easeInOut: me,
|
|
102
|
+
easeOut: pe,
|
|
103
|
+
circIn: le,
|
|
104
|
+
circInOut: de,
|
|
105
|
+
circOut: ue,
|
|
106
|
+
backIn: oe,
|
|
107
|
+
backInOut: se,
|
|
108
|
+
backOut: ae,
|
|
109
|
+
anticipate: ce
|
|
110
|
+
}, ve = (e) => typeof e == "string", ye = (e) => {
|
|
111
|
+
if (/* @__PURE__ */ ge(e)) {
|
|
112
|
+
l(e.length === 4, "Cubic bezier arrays must contain four numerical values.", "cubic-bezier-length");
|
|
113
|
+
let [t, n, r, i] = e;
|
|
114
|
+
return /* @__PURE__ */ T(t, n, r, i);
|
|
115
|
+
} else if (ve(e)) return l(_e[e] !== void 0, `Invalid easing type '${e}'`, "invalid-easing-type"), _e[e];
|
|
116
|
+
return e;
|
|
117
|
+
}, be = [
|
|
118
|
+
"setup",
|
|
119
|
+
"read",
|
|
120
|
+
"resolveKeyframes",
|
|
121
|
+
"preUpdate",
|
|
122
|
+
"update",
|
|
123
|
+
"preRender",
|
|
124
|
+
"render",
|
|
125
|
+
"postRender"
|
|
126
|
+
], E = {
|
|
127
|
+
value: null,
|
|
128
|
+
addProjectionMetrics: null
|
|
129
|
+
};
|
|
130
|
+
//#endregion
|
|
131
|
+
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/frameloop/render-step.mjs
|
|
132
|
+
function xe(e, t) {
|
|
133
|
+
let n = /* @__PURE__ */ new Set(), r = /* @__PURE__ */ new Set(), i = !1, a = !1, o = /* @__PURE__ */ new WeakSet(), s = {
|
|
134
|
+
delta: 0,
|
|
135
|
+
timestamp: 0,
|
|
136
|
+
isProcessing: !1
|
|
137
|
+
}, c = 0;
|
|
138
|
+
function l(t) {
|
|
139
|
+
o.has(t) && (u.schedule(t), e()), c++, t(s);
|
|
140
|
+
}
|
|
141
|
+
let u = {
|
|
142
|
+
schedule: (e, t = !1, a = !1) => {
|
|
143
|
+
let s = a && i ? n : r;
|
|
144
|
+
return t && o.add(e), s.add(e), e;
|
|
145
|
+
},
|
|
146
|
+
cancel: (e) => {
|
|
147
|
+
r.delete(e), o.delete(e);
|
|
148
|
+
},
|
|
149
|
+
process: (e) => {
|
|
150
|
+
if (s = e, i) {
|
|
151
|
+
a = !0;
|
|
152
|
+
return;
|
|
153
|
+
}
|
|
154
|
+
i = !0;
|
|
155
|
+
let o = n;
|
|
156
|
+
n = r, r = o, n.forEach(l), t && E.value && E.value.frameloop[t].push(c), c = 0, n.clear(), i = !1, a && (a = !1, u.process(e));
|
|
157
|
+
}
|
|
158
|
+
};
|
|
159
|
+
return u;
|
|
160
|
+
}
|
|
161
|
+
//#endregion
|
|
162
|
+
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/frameloop/batcher.mjs
|
|
163
|
+
var Se = 40;
|
|
164
|
+
function Ce(e, t) {
|
|
165
|
+
let n = !1, r = !0, i = {
|
|
166
|
+
delta: 0,
|
|
167
|
+
timestamp: 0,
|
|
168
|
+
isProcessing: !1
|
|
169
|
+
}, a = () => n = !0, o = be.reduce((e, n) => (e[n] = xe(a, t ? n : void 0), e), {}), { setup: s, read: c, resolveKeyframes: l, preUpdate: d, update: f, preRender: p, render: m, postRender: h } = o, g = () => {
|
|
170
|
+
let a = u.useManualTiming, o = a ? i.timestamp : performance.now();
|
|
171
|
+
n = !1, a || (i.delta = r ? 1e3 / 60 : Math.max(Math.min(o - i.timestamp, Se), 1)), i.timestamp = o, i.isProcessing = !0, s.process(i), c.process(i), l.process(i), d.process(i), f.process(i), p.process(i), m.process(i), h.process(i), i.isProcessing = !1, n && t && (r = !1, e(g));
|
|
172
|
+
}, _ = () => {
|
|
173
|
+
n = !0, r = !0, i.isProcessing || e(g);
|
|
174
|
+
};
|
|
175
|
+
return {
|
|
176
|
+
schedule: be.reduce((e, t) => {
|
|
177
|
+
let r = o[t];
|
|
178
|
+
return e[t] = (e, t = !1, i = !1) => (n || _(), r.schedule(e, t, i)), e;
|
|
179
|
+
}, {}),
|
|
180
|
+
cancel: (e) => {
|
|
181
|
+
for (let t = 0; t < be.length; t++) o[be[t]].cancel(e);
|
|
182
|
+
},
|
|
183
|
+
state: i,
|
|
184
|
+
steps: o
|
|
185
|
+
};
|
|
186
|
+
}
|
|
187
|
+
//#endregion
|
|
188
|
+
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/frameloop/frame.mjs
|
|
189
|
+
var { schedule: D, cancel: we, state: O, steps: Te } = /* @__PURE__ */ Ce(typeof requestAnimationFrame < "u" ? requestAnimationFrame : h, !0), Ee;
|
|
190
|
+
function De() {
|
|
191
|
+
Ee = void 0;
|
|
192
|
+
}
|
|
193
|
+
var k = {
|
|
194
|
+
now: () => (Ee === void 0 && k.set(O.isProcessing || u.useManualTiming ? O.timestamp : performance.now()), Ee),
|
|
195
|
+
set: (e) => {
|
|
196
|
+
Ee = e, queueMicrotask(De);
|
|
197
|
+
}
|
|
198
|
+
}, Oe = {
|
|
199
|
+
layout: 0,
|
|
200
|
+
mainThread: 0,
|
|
201
|
+
waapi: 0
|
|
202
|
+
}, ke = (e) => (t) => typeof t == "string" && t.startsWith(e), Ae = /* @__PURE__ */ ke("--"), je = /* @__PURE__ */ ke("var(--"), Me = (e) => je(e) ? Ne.test(e.split("/*")[0].trim()) : !1, Ne = /var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;
|
|
203
|
+
function Pe(e) {
|
|
204
|
+
return typeof e == "string" ? e.split("/*")[0].includes("var(--") : !1;
|
|
205
|
+
}
|
|
206
|
+
//#endregion
|
|
207
|
+
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/value/types/numbers/index.mjs
|
|
208
|
+
var A = {
|
|
209
|
+
test: (e) => typeof e == "number",
|
|
210
|
+
parse: parseFloat,
|
|
211
|
+
transform: (e) => e
|
|
212
|
+
}, j = {
|
|
213
|
+
...A,
|
|
214
|
+
transform: (e) => o(0, 1, e)
|
|
215
|
+
}, Fe = {
|
|
216
|
+
...A,
|
|
217
|
+
default: 1
|
|
218
|
+
}, M = (e) => Math.round(e * 1e5) / 1e5, Ie = /-?(?:\d+(?:\.\d+)?|\.\d+)/gu;
|
|
219
|
+
//#endregion
|
|
220
|
+
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/value/types/utils/is-nullish.mjs
|
|
221
|
+
function Le(e) {
|
|
222
|
+
return e == null;
|
|
223
|
+
}
|
|
224
|
+
//#endregion
|
|
225
|
+
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/value/types/utils/single-color-regex.mjs
|
|
226
|
+
var Re = /^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu, ze = (e, t) => (n) => !!(typeof n == "string" && Re.test(n) && n.startsWith(e) || t && !Le(n) && Object.prototype.hasOwnProperty.call(n, t)), Be = (e, t, n) => (r) => {
|
|
227
|
+
if (typeof r != "string") return r;
|
|
228
|
+
let [i, a, o, s] = r.match(Ie);
|
|
229
|
+
return {
|
|
230
|
+
[e]: parseFloat(i),
|
|
231
|
+
[t]: parseFloat(a),
|
|
232
|
+
[n]: parseFloat(o),
|
|
233
|
+
alpha: s === void 0 ? 1 : parseFloat(s)
|
|
234
|
+
};
|
|
235
|
+
}, Ve = (e) => o(0, 255, e), He = {
|
|
236
|
+
...A,
|
|
237
|
+
transform: (e) => Math.round(Ve(e))
|
|
238
|
+
}, N = {
|
|
239
|
+
test: /* @__PURE__ */ ze("rgb", "red"),
|
|
240
|
+
parse: /* @__PURE__ */ Be("red", "green", "blue"),
|
|
241
|
+
transform: ({ red: e, green: t, blue: n, alpha: r = 1 }) => "rgba(" + He.transform(e) + ", " + He.transform(t) + ", " + He.transform(n) + ", " + M(j.transform(r)) + ")"
|
|
242
|
+
};
|
|
243
|
+
//#endregion
|
|
244
|
+
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/value/types/color/hex.mjs
|
|
245
|
+
function Ue(e) {
|
|
246
|
+
let t = "", n = "", r = "", i = "";
|
|
247
|
+
return e.length > 5 ? (t = e.substring(1, 3), n = e.substring(3, 5), r = e.substring(5, 7), i = e.substring(7, 9)) : (t = e.substring(1, 2), n = e.substring(2, 3), r = e.substring(3, 4), i = e.substring(4, 5), t += t, n += n, r += r, i += i), {
|
|
248
|
+
red: parseInt(t, 16),
|
|
249
|
+
green: parseInt(n, 16),
|
|
250
|
+
blue: parseInt(r, 16),
|
|
251
|
+
alpha: i ? parseInt(i, 16) / 255 : 1
|
|
252
|
+
};
|
|
253
|
+
}
|
|
254
|
+
var We = {
|
|
255
|
+
test: /* @__PURE__ */ ze("#"),
|
|
256
|
+
parse: Ue,
|
|
257
|
+
transform: N.transform
|
|
258
|
+
}, P = /* @__NO_SIDE_EFFECTS__ */ (e) => ({
|
|
259
|
+
test: (t) => typeof t == "string" && t.endsWith(e) && t.split(" ").length === 1,
|
|
260
|
+
parse: parseFloat,
|
|
261
|
+
transform: (t) => `${t}${e}`
|
|
262
|
+
}), F = /* @__PURE__ */ P("deg"), I = /* @__PURE__ */ P("%"), L = /* @__PURE__ */ P("px"), Ge = /* @__PURE__ */ P("vh"), Ke = /* @__PURE__ */ P("vw"), qe = {
|
|
263
|
+
...I,
|
|
264
|
+
parse: (e) => I.parse(e) / 100,
|
|
265
|
+
transform: (e) => I.transform(e * 100)
|
|
266
|
+
}, R = {
|
|
267
|
+
test: /* @__PURE__ */ ze("hsl", "hue"),
|
|
268
|
+
parse: /* @__PURE__ */ Be("hue", "saturation", "lightness"),
|
|
269
|
+
transform: ({ hue: e, saturation: t, lightness: n, alpha: r = 1 }) => "hsla(" + Math.round(e) + ", " + I.transform(M(t)) + ", " + I.transform(M(n)) + ", " + M(j.transform(r)) + ")"
|
|
270
|
+
}, z = {
|
|
271
|
+
test: (e) => N.test(e) || We.test(e) || R.test(e),
|
|
272
|
+
parse: (e) => N.test(e) ? N.parse(e) : R.test(e) ? R.parse(e) : We.parse(e),
|
|
273
|
+
transform: (e) => typeof e == "string" ? e : e.hasOwnProperty("red") ? N.transform(e) : R.transform(e),
|
|
274
|
+
getAnimatableNone: (e) => {
|
|
275
|
+
let t = z.parse(e);
|
|
276
|
+
return t.alpha = 0, z.transform(t);
|
|
277
|
+
}
|
|
278
|
+
}, Je = /(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;
|
|
279
|
+
//#endregion
|
|
280
|
+
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/value/types/complex/index.mjs
|
|
281
|
+
function Ye(e) {
|
|
282
|
+
return isNaN(e) && typeof e == "string" && (e.match(Ie)?.length || 0) + (e.match(Je)?.length || 0) > 0;
|
|
283
|
+
}
|
|
284
|
+
var Xe = "number", Ze = "color", Qe = "var", $e = "var(", et = "${}", tt = /var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;
|
|
285
|
+
function B(e) {
|
|
286
|
+
let t = e.toString(), n = [], r = {
|
|
287
|
+
color: [],
|
|
288
|
+
number: [],
|
|
289
|
+
var: []
|
|
290
|
+
}, i = [], a = 0;
|
|
291
|
+
return {
|
|
292
|
+
values: n,
|
|
293
|
+
split: t.replace(tt, (e) => (z.test(e) ? (r.color.push(a), i.push(Ze), n.push(z.parse(e))) : e.startsWith($e) ? (r.var.push(a), i.push(Qe), n.push(e)) : (r.number.push(a), i.push(Xe), n.push(parseFloat(e))), ++a, et)).split(et),
|
|
294
|
+
indexes: r,
|
|
295
|
+
types: i
|
|
296
|
+
};
|
|
297
|
+
}
|
|
298
|
+
function nt(e) {
|
|
299
|
+
return B(e).values;
|
|
300
|
+
}
|
|
301
|
+
function rt({ split: e, types: t }) {
|
|
302
|
+
let n = e.length;
|
|
303
|
+
return (r) => {
|
|
304
|
+
let i = "";
|
|
305
|
+
for (let a = 0; a < n; a++) if (i += e[a], r[a] !== void 0) {
|
|
306
|
+
let e = t[a];
|
|
307
|
+
e === Xe ? i += M(r[a]) : e === Ze ? i += z.transform(r[a]) : i += r[a];
|
|
308
|
+
}
|
|
309
|
+
return i;
|
|
310
|
+
};
|
|
311
|
+
}
|
|
312
|
+
function it(e) {
|
|
313
|
+
return rt(B(e));
|
|
314
|
+
}
|
|
315
|
+
var at = (e) => typeof e == "number" ? 0 : z.test(e) ? z.getAnimatableNone(e) : e, ot = (e, t) => typeof e == "number" ? t?.trim().endsWith("/") ? e : 0 : at(e);
|
|
316
|
+
function st(e) {
|
|
317
|
+
let t = B(e);
|
|
318
|
+
return rt(t)(t.values.map((e, n) => ot(e, t.split[n])));
|
|
319
|
+
}
|
|
320
|
+
var V = {
|
|
321
|
+
test: Ye,
|
|
322
|
+
parse: nt,
|
|
323
|
+
createTransformer: it,
|
|
324
|
+
getAnimatableNone: st
|
|
325
|
+
};
|
|
326
|
+
//#endregion
|
|
327
|
+
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/value/types/color/hsla-to-rgba.mjs
|
|
328
|
+
function ct(e, t, n) {
|
|
329
|
+
return n < 0 && (n += 1), n > 1 && --n, n < 1 / 6 ? e + (t - e) * 6 * n : n < 1 / 2 ? t : n < 2 / 3 ? e + (t - e) * (2 / 3 - n) * 6 : e;
|
|
330
|
+
}
|
|
331
|
+
function lt({ hue: e, saturation: t, lightness: n, alpha: r }) {
|
|
332
|
+
e /= 360, t /= 100, n /= 100;
|
|
333
|
+
let i = 0, a = 0, o = 0;
|
|
334
|
+
if (!t) i = a = o = n;
|
|
335
|
+
else {
|
|
336
|
+
let r = n < .5 ? n * (1 + t) : n + t - n * t, s = 2 * n - r;
|
|
337
|
+
i = ct(s, r, e + 1 / 3), a = ct(s, r, e), o = ct(s, r, e - 1 / 3);
|
|
338
|
+
}
|
|
339
|
+
return {
|
|
340
|
+
red: Math.round(i * 255),
|
|
341
|
+
green: Math.round(a * 255),
|
|
342
|
+
blue: Math.round(o * 255),
|
|
343
|
+
alpha: r
|
|
344
|
+
};
|
|
345
|
+
}
|
|
346
|
+
//#endregion
|
|
347
|
+
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/utils/mix/immediate.mjs
|
|
348
|
+
function ut(e, t) {
|
|
349
|
+
return (n) => n > 0 ? t : e;
|
|
350
|
+
}
|
|
351
|
+
//#endregion
|
|
352
|
+
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/utils/mix/number.mjs
|
|
353
|
+
var H = (e, t, n) => e + (t - e) * n, dt = (e, t, n) => {
|
|
354
|
+
let r = e * e, i = n * (t * t - r) + r;
|
|
355
|
+
return i < 0 ? 0 : Math.sqrt(i);
|
|
356
|
+
}, ft = [
|
|
357
|
+
We,
|
|
358
|
+
N,
|
|
359
|
+
R
|
|
360
|
+
], pt = (e) => ft.find((t) => t.test(e));
|
|
361
|
+
function mt(e) {
|
|
362
|
+
let t = pt(e);
|
|
363
|
+
if (c(!!t, `'${e}' is not an animatable color. Use the equivalent color code instead.`, "color-not-animatable"), !t) return !1;
|
|
364
|
+
let n = t.parse(e);
|
|
365
|
+
return t === R && (n = lt(n)), n;
|
|
366
|
+
}
|
|
367
|
+
var ht = (e, t) => {
|
|
368
|
+
let n = mt(e), r = mt(t);
|
|
369
|
+
if (!n || !r) return ut(e, t);
|
|
370
|
+
let i = { ...n };
|
|
371
|
+
return (e) => (i.red = dt(n.red, r.red, e), i.green = dt(n.green, r.green, e), i.blue = dt(n.blue, r.blue, e), i.alpha = H(n.alpha, r.alpha, e), N.transform(i));
|
|
372
|
+
}, gt = new Set(["none", "hidden"]);
|
|
373
|
+
function _t(e, t) {
|
|
374
|
+
return gt.has(e) ? (n) => n <= 0 ? e : t : (n) => n >= 1 ? t : e;
|
|
375
|
+
}
|
|
376
|
+
//#endregion
|
|
377
|
+
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/utils/mix/complex.mjs
|
|
378
|
+
function vt(e, t) {
|
|
379
|
+
return (n) => H(e, t, n);
|
|
380
|
+
}
|
|
381
|
+
function yt(e) {
|
|
382
|
+
return typeof e == "number" ? vt : typeof e == "string" ? Me(e) ? ut : z.test(e) ? ht : Ct : Array.isArray(e) ? bt : typeof e == "object" ? z.test(e) ? ht : xt : ut;
|
|
383
|
+
}
|
|
384
|
+
function bt(e, t) {
|
|
385
|
+
let n = [...e], r = n.length, i = e.map((e, n) => yt(e)(e, t[n]));
|
|
386
|
+
return (e) => {
|
|
387
|
+
for (let t = 0; t < r; t++) n[t] = i[t](e);
|
|
388
|
+
return n;
|
|
389
|
+
};
|
|
390
|
+
}
|
|
391
|
+
function xt(e, t) {
|
|
392
|
+
let n = {
|
|
393
|
+
...e,
|
|
394
|
+
...t
|
|
395
|
+
}, r = {};
|
|
396
|
+
for (let i in n) e[i] !== void 0 && t[i] !== void 0 && (r[i] = yt(e[i])(e[i], t[i]));
|
|
397
|
+
return (e) => {
|
|
398
|
+
for (let t in r) n[t] = r[t](e);
|
|
399
|
+
return n;
|
|
400
|
+
};
|
|
401
|
+
}
|
|
402
|
+
function St(e, t) {
|
|
403
|
+
let n = [], r = {
|
|
404
|
+
color: 0,
|
|
405
|
+
var: 0,
|
|
406
|
+
number: 0
|
|
407
|
+
};
|
|
408
|
+
for (let i = 0; i < t.values.length; i++) {
|
|
409
|
+
let a = t.types[i], o = e.indexes[a][r[a]];
|
|
410
|
+
n[i] = e.values[o] ?? 0, r[a]++;
|
|
411
|
+
}
|
|
412
|
+
return n;
|
|
413
|
+
}
|
|
414
|
+
var Ct = (e, t) => {
|
|
415
|
+
let n = V.createTransformer(t), r = B(e), i = B(t);
|
|
416
|
+
return r.indexes.var.length === i.indexes.var.length && r.indexes.color.length === i.indexes.color.length && r.indexes.number.length >= i.indexes.number.length ? gt.has(e) && !i.values.length || gt.has(t) && !r.values.length ? _t(e, t) : g(bt(St(r, i), i.values), n) : (c(!0, `Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`, "complex-values-different"), ut(e, t));
|
|
417
|
+
};
|
|
418
|
+
//#endregion
|
|
419
|
+
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/utils/mix/index.mjs
|
|
420
|
+
function wt(e, t, n) {
|
|
421
|
+
return typeof e == "number" && typeof t == "number" && typeof n == "number" ? H(e, t, n) : yt(e)(e, t);
|
|
422
|
+
}
|
|
423
|
+
//#endregion
|
|
424
|
+
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/animation/drivers/frame.mjs
|
|
425
|
+
var Tt = (e) => {
|
|
426
|
+
let t = ({ timestamp: t }) => e(t);
|
|
427
|
+
return {
|
|
428
|
+
start: (e = !0) => D.update(t, e),
|
|
429
|
+
stop: () => we(t),
|
|
430
|
+
now: () => O.isProcessing ? O.timestamp : k.now()
|
|
431
|
+
};
|
|
432
|
+
}, Et = (e, t, n = 10) => {
|
|
433
|
+
let r = "", i = Math.max(Math.round(t / n), 2);
|
|
434
|
+
for (let t = 0; t < i; t++) r += Math.round(e(t / (i - 1)) * 1e4) / 1e4 + ", ";
|
|
435
|
+
return `linear(${r.substring(0, r.length - 2)})`;
|
|
436
|
+
}, Dt = 2e4;
|
|
437
|
+
function Ot(e) {
|
|
438
|
+
let t = 0, n = e.next(t);
|
|
439
|
+
for (; !n.done && t < 2e4;) t += 50, n = e.next(t);
|
|
440
|
+
return t >= 2e4 ? Infinity : t;
|
|
441
|
+
}
|
|
442
|
+
//#endregion
|
|
443
|
+
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/animation/generators/utils/create-generator-easing.mjs
|
|
444
|
+
function kt(e, t = 100, n) {
|
|
445
|
+
let r = n({
|
|
446
|
+
...e,
|
|
447
|
+
keyframes: [0, t]
|
|
448
|
+
}), i = Math.min(Ot(r), Dt);
|
|
449
|
+
return {
|
|
450
|
+
type: "keyframes",
|
|
451
|
+
ease: (e) => r.next(i * e).value / t,
|
|
452
|
+
duration: /* @__PURE__ */ b(i)
|
|
453
|
+
};
|
|
454
|
+
}
|
|
455
|
+
//#endregion
|
|
456
|
+
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/animation/generators/spring.mjs
|
|
457
|
+
var U = {
|
|
458
|
+
stiffness: 100,
|
|
459
|
+
damping: 10,
|
|
460
|
+
mass: 1,
|
|
461
|
+
velocity: 0,
|
|
462
|
+
duration: 800,
|
|
463
|
+
bounce: .3,
|
|
464
|
+
visualDuration: .3,
|
|
465
|
+
restSpeed: {
|
|
466
|
+
granular: .01,
|
|
467
|
+
default: 2
|
|
468
|
+
},
|
|
469
|
+
restDelta: {
|
|
470
|
+
granular: .005,
|
|
471
|
+
default: .5
|
|
472
|
+
},
|
|
473
|
+
minDuration: .01,
|
|
474
|
+
maxDuration: 10,
|
|
475
|
+
minDamping: .05,
|
|
476
|
+
maxDamping: 1
|
|
477
|
+
};
|
|
478
|
+
function At(e, t) {
|
|
479
|
+
return e * Math.sqrt(1 - t * t);
|
|
480
|
+
}
|
|
481
|
+
var jt = 12;
|
|
482
|
+
function Mt(e, t, n) {
|
|
483
|
+
let r = n;
|
|
484
|
+
for (let n = 1; n < jt; n++) r -= e(r) / t(r);
|
|
485
|
+
return r;
|
|
486
|
+
}
|
|
487
|
+
var Nt = .001;
|
|
488
|
+
function Pt({ duration: e = U.duration, bounce: t = U.bounce, velocity: n = U.velocity, mass: r = U.mass }) {
|
|
489
|
+
let i, a;
|
|
490
|
+
c(e <= /* @__PURE__ */ y(U.maxDuration), "Spring duration must be 10 seconds or less", "spring-duration-limit");
|
|
491
|
+
let s = 1 - t;
|
|
492
|
+
s = o(U.minDamping, U.maxDamping, s), e = o(U.minDuration, U.maxDuration, /* @__PURE__ */ b(e)), s < 1 ? (i = (t) => {
|
|
493
|
+
let r = t * s, i = r * e, a = r - n, o = At(t, s), c = Math.exp(-i);
|
|
494
|
+
return Nt - a / o * c;
|
|
495
|
+
}, a = (t) => {
|
|
496
|
+
let r = t * s * e, a = r * n + n, o = s ** 2 * t ** 2 * e, c = Math.exp(-r), l = At(t ** 2, s);
|
|
497
|
+
return (-i(t) + Nt > 0 ? -1 : 1) * ((a - o) * c) / l;
|
|
498
|
+
}) : (i = (t) => -.001 + Math.exp(-t * e) * ((t - n) * e + 1), a = (t) => Math.exp(-t * e) * ((n - t) * (e * e)));
|
|
499
|
+
let l = 5 / e, u = Mt(i, a, l);
|
|
500
|
+
if (e = /* @__PURE__ */ y(e), isNaN(u)) return {
|
|
501
|
+
stiffness: U.stiffness,
|
|
502
|
+
damping: U.damping,
|
|
503
|
+
duration: e
|
|
504
|
+
};
|
|
505
|
+
{
|
|
506
|
+
let t = u ** 2 * r;
|
|
507
|
+
return {
|
|
508
|
+
stiffness: t,
|
|
509
|
+
damping: s * 2 * Math.sqrt(r * t),
|
|
510
|
+
duration: e
|
|
511
|
+
};
|
|
512
|
+
}
|
|
513
|
+
}
|
|
514
|
+
var Ft = ["duration", "bounce"], It = [
|
|
515
|
+
"stiffness",
|
|
516
|
+
"damping",
|
|
517
|
+
"mass"
|
|
518
|
+
];
|
|
519
|
+
function Lt(e, t) {
|
|
520
|
+
return t.some((t) => e[t] !== void 0);
|
|
521
|
+
}
|
|
522
|
+
function Rt(e) {
|
|
523
|
+
let t = {
|
|
524
|
+
velocity: U.velocity,
|
|
525
|
+
stiffness: U.stiffness,
|
|
526
|
+
damping: U.damping,
|
|
527
|
+
mass: U.mass,
|
|
528
|
+
isResolvedFromDuration: !1,
|
|
529
|
+
...e
|
|
530
|
+
};
|
|
531
|
+
if (!Lt(e, It) && Lt(e, Ft)) if (t.velocity = 0, e.visualDuration) {
|
|
532
|
+
let n = e.visualDuration, r = 2 * Math.PI / (n * 1.2), i = r * r, a = 2 * o(.05, 1, 1 - (e.bounce || 0)) * Math.sqrt(i);
|
|
533
|
+
t = {
|
|
534
|
+
...t,
|
|
535
|
+
mass: U.mass,
|
|
536
|
+
stiffness: i,
|
|
537
|
+
damping: a
|
|
538
|
+
};
|
|
539
|
+
} else {
|
|
540
|
+
let n = Pt({
|
|
541
|
+
...e,
|
|
542
|
+
velocity: 0
|
|
543
|
+
});
|
|
544
|
+
t = {
|
|
545
|
+
...t,
|
|
546
|
+
...n,
|
|
547
|
+
mass: U.mass
|
|
548
|
+
}, t.isResolvedFromDuration = !0;
|
|
549
|
+
}
|
|
550
|
+
return t;
|
|
551
|
+
}
|
|
552
|
+
function W(e = U.visualDuration, t = U.bounce) {
|
|
553
|
+
let n = typeof e == "object" ? e : {
|
|
554
|
+
visualDuration: e,
|
|
555
|
+
keyframes: [0, 1],
|
|
556
|
+
bounce: t
|
|
557
|
+
}, { restSpeed: r, restDelta: i } = n, a = n.keyframes[0], o = n.keyframes[n.keyframes.length - 1], s = {
|
|
558
|
+
done: !1,
|
|
559
|
+
value: a
|
|
560
|
+
}, { stiffness: c, damping: l, mass: u, duration: d, velocity: f, isResolvedFromDuration: p } = Rt({
|
|
561
|
+
...n,
|
|
562
|
+
velocity: -/* @__PURE__ */ b(n.velocity || 0)
|
|
563
|
+
}), m = f || 0, h = l / (2 * Math.sqrt(c * u)), g = o - a, _ = /* @__PURE__ */ b(Math.sqrt(c / u)), v = Math.abs(g) < 5;
|
|
564
|
+
r ||= v ? U.restSpeed.granular : U.restSpeed.default, i ||= v ? U.restDelta.granular : U.restDelta.default;
|
|
565
|
+
let x, S, C, w, ee, te;
|
|
566
|
+
if (h < 1) C = At(_, h), w = (m + h * _ * g) / C, x = (e) => o - Math.exp(-h * _ * e) * (w * Math.sin(C * e) + g * Math.cos(C * e)), ee = h * _ * w + g * C, te = h * _ * g - w * C, S = (e) => Math.exp(-h * _ * e) * (ee * Math.sin(C * e) + te * Math.cos(C * e));
|
|
567
|
+
else if (h === 1) {
|
|
568
|
+
x = (e) => o - Math.exp(-_ * e) * (g + (m + _ * g) * e);
|
|
569
|
+
let e = m + _ * g;
|
|
570
|
+
S = (t) => Math.exp(-_ * t) * (_ * e * t - m);
|
|
571
|
+
} else {
|
|
572
|
+
let e = _ * Math.sqrt(h * h - 1);
|
|
573
|
+
x = (t) => {
|
|
574
|
+
let n = Math.exp(-h * _ * t), r = Math.min(e * t, 300);
|
|
575
|
+
return o - n * ((m + h * _ * g) * Math.sinh(r) + e * g * Math.cosh(r)) / e;
|
|
576
|
+
};
|
|
577
|
+
let t = (m + h * _ * g) / e, n = h * _ * t - g * e, r = h * _ * g - t * e;
|
|
578
|
+
S = (t) => {
|
|
579
|
+
let i = Math.exp(-h * _ * t), a = Math.min(e * t, 300);
|
|
580
|
+
return i * (n * Math.sinh(a) + r * Math.cosh(a));
|
|
581
|
+
};
|
|
582
|
+
}
|
|
583
|
+
let ne = {
|
|
584
|
+
calculatedDuration: p && d || null,
|
|
585
|
+
velocity: (e) => /* @__PURE__ */ y(S(e)),
|
|
586
|
+
next: (e) => {
|
|
587
|
+
if (!p && h < 1) {
|
|
588
|
+
let t = Math.exp(-h * _ * e), n = Math.sin(C * e), a = Math.cos(C * e), c = o - t * (w * n + g * a), l = /* @__PURE__ */ y(t * (ee * n + te * a));
|
|
589
|
+
return s.done = Math.abs(l) <= r && Math.abs(o - c) <= i, s.value = s.done ? o : c, s;
|
|
590
|
+
}
|
|
591
|
+
let t = x(e);
|
|
592
|
+
if (p) s.done = e >= d;
|
|
593
|
+
else {
|
|
594
|
+
let n = /* @__PURE__ */ y(S(e));
|
|
595
|
+
s.done = Math.abs(n) <= r && Math.abs(o - t) <= i;
|
|
596
|
+
}
|
|
597
|
+
return s.value = s.done ? o : t, s;
|
|
598
|
+
},
|
|
599
|
+
toString: () => {
|
|
600
|
+
let e = Math.min(Ot(ne), Dt), t = Et((t) => ne.next(e * t).value, e, 30);
|
|
601
|
+
return e + "ms " + t;
|
|
602
|
+
},
|
|
603
|
+
toTransition: () => {}
|
|
604
|
+
};
|
|
605
|
+
return ne;
|
|
606
|
+
}
|
|
607
|
+
W.applyToOptions = (e) => {
|
|
608
|
+
let t = kt(e, 100, W);
|
|
609
|
+
return e.ease = t.ease, e.duration = /* @__PURE__ */ y(t.duration), e.type = "keyframes", e;
|
|
610
|
+
};
|
|
611
|
+
//#endregion
|
|
612
|
+
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/animation/generators/utils/velocity.mjs
|
|
613
|
+
var zt = 5;
|
|
614
|
+
function Bt(e, t, n) {
|
|
615
|
+
let r = Math.max(t - zt, 0);
|
|
616
|
+
return /* @__PURE__ */ x(n - e(r), t - r);
|
|
617
|
+
}
|
|
618
|
+
//#endregion
|
|
619
|
+
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/animation/generators/inertia.mjs
|
|
620
|
+
function Vt({ keyframes: e, velocity: t = 0, power: n = .8, timeConstant: r = 325, bounceDamping: i = 10, bounceStiffness: a = 500, modifyTarget: o, min: s, max: c, restDelta: l = .5, restSpeed: u }) {
|
|
621
|
+
let d = e[0], f = {
|
|
622
|
+
done: !1,
|
|
623
|
+
value: d
|
|
624
|
+
}, p = (e) => s !== void 0 && e < s || c !== void 0 && e > c, m = (e) => s === void 0 ? c : c === void 0 || Math.abs(s - e) < Math.abs(c - e) ? s : c, h = n * t, g = d + h, _ = o === void 0 ? g : o(g);
|
|
625
|
+
_ !== g && (h = _ - d);
|
|
626
|
+
let v = (e) => -h * Math.exp(-e / r), y = (e) => _ + v(e), b = (e) => {
|
|
627
|
+
let t = v(e), n = y(e);
|
|
628
|
+
f.done = Math.abs(t) <= l, f.value = f.done ? _ : n;
|
|
629
|
+
}, x, S, C = (e) => {
|
|
630
|
+
p(f.value) && (x = e, S = W({
|
|
631
|
+
keyframes: [f.value, m(f.value)],
|
|
632
|
+
velocity: Bt(y, e, f.value),
|
|
633
|
+
damping: i,
|
|
634
|
+
stiffness: a,
|
|
635
|
+
restDelta: l,
|
|
636
|
+
restSpeed: u
|
|
637
|
+
}));
|
|
638
|
+
};
|
|
639
|
+
return C(0), {
|
|
640
|
+
calculatedDuration: null,
|
|
641
|
+
next: (e) => {
|
|
642
|
+
let t = !1;
|
|
643
|
+
return !S && x === void 0 && (t = !0, b(e), C(e)), x !== void 0 && e >= x ? S.next(e - x) : (!t && b(e), f);
|
|
644
|
+
}
|
|
645
|
+
};
|
|
646
|
+
}
|
|
647
|
+
//#endregion
|
|
648
|
+
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/utils/interpolate.mjs
|
|
649
|
+
function Ht(e, t, n) {
|
|
650
|
+
let r = [], i = n || u.mix || wt, a = e.length - 1;
|
|
651
|
+
for (let n = 0; n < a; n++) {
|
|
652
|
+
let a = i(e[n], e[n + 1]);
|
|
653
|
+
t && (a = g(Array.isArray(t) ? t[n] || h : t, a)), r.push(a);
|
|
654
|
+
}
|
|
655
|
+
return r;
|
|
656
|
+
}
|
|
657
|
+
function Ut(e, t, { clamp: n = !0, ease: r, mixer: i } = {}) {
|
|
658
|
+
let a = e.length;
|
|
659
|
+
if (l(a === t.length, "Both input and output ranges must be the same length", "range-length"), a === 1) return () => t[0];
|
|
660
|
+
if (a === 2 && t[0] === t[1]) return () => t[1];
|
|
661
|
+
let s = e[0] === e[1];
|
|
662
|
+
e[0] > e[a - 1] && (e = [...e].reverse(), t = [...t].reverse());
|
|
663
|
+
let c = Ht(t, r, i), u = c.length, d = (n) => {
|
|
664
|
+
if (s && n < e[0]) return t[0];
|
|
665
|
+
let r = 0;
|
|
666
|
+
if (u > 1) for (; r < e.length - 2 && !(n < e[r + 1]); r++);
|
|
667
|
+
let i = /* @__PURE__ */ _(e[r], e[r + 1], n);
|
|
668
|
+
return c[r](i);
|
|
669
|
+
};
|
|
670
|
+
return n ? (t) => d(o(e[0], e[a - 1], t)) : d;
|
|
671
|
+
}
|
|
672
|
+
//#endregion
|
|
673
|
+
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/animation/keyframes/offsets/fill.mjs
|
|
674
|
+
function Wt(e, t) {
|
|
675
|
+
let n = e[e.length - 1];
|
|
676
|
+
for (let r = 1; r <= t; r++) {
|
|
677
|
+
let i = /* @__PURE__ */ _(0, t, r);
|
|
678
|
+
e.push(H(n, 1, i));
|
|
679
|
+
}
|
|
680
|
+
}
|
|
681
|
+
//#endregion
|
|
682
|
+
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/animation/keyframes/offsets/default.mjs
|
|
683
|
+
function Gt(e) {
|
|
684
|
+
let t = [0];
|
|
685
|
+
return Wt(t, e.length - 1), t;
|
|
686
|
+
}
|
|
687
|
+
//#endregion
|
|
688
|
+
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/animation/keyframes/offsets/time.mjs
|
|
689
|
+
function Kt(e, t) {
|
|
690
|
+
return e.map((e) => e * t);
|
|
691
|
+
}
|
|
692
|
+
//#endregion
|
|
693
|
+
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/animation/generators/keyframes.mjs
|
|
694
|
+
function qt(e, t) {
|
|
695
|
+
return e.map(() => t || me).splice(0, e.length - 1);
|
|
696
|
+
}
|
|
697
|
+
function G({ duration: e = 300, keyframes: t, times: n, ease: r = "easeInOut" }) {
|
|
698
|
+
let i = /* @__PURE__ */ he(r) ? r.map(ye) : ye(r), a = {
|
|
699
|
+
done: !1,
|
|
700
|
+
value: t[0]
|
|
701
|
+
}, o = Ut(Kt(n && n.length === t.length ? n : Gt(t), e), t, { ease: Array.isArray(i) ? i : qt(t, i) });
|
|
702
|
+
return {
|
|
703
|
+
calculatedDuration: e,
|
|
704
|
+
next: (t) => (a.value = o(t), a.done = t >= e, a)
|
|
705
|
+
};
|
|
706
|
+
}
|
|
707
|
+
//#endregion
|
|
708
|
+
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/animation/keyframes/get-final.mjs
|
|
709
|
+
var Jt = (e) => e !== null;
|
|
710
|
+
function Yt(e, { repeat: t, repeatType: n = "loop" }, r, i = 1) {
|
|
711
|
+
let a = e.filter(Jt), o = i < 0 || t && n !== "loop" && t % 2 == 1 ? 0 : a.length - 1;
|
|
712
|
+
return !o || r === void 0 ? a[o] : r;
|
|
713
|
+
}
|
|
714
|
+
//#endregion
|
|
715
|
+
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/animation/utils/replace-transition-type.mjs
|
|
716
|
+
var Xt = {
|
|
717
|
+
decay: Vt,
|
|
718
|
+
inertia: Vt,
|
|
719
|
+
tween: G,
|
|
720
|
+
keyframes: G,
|
|
721
|
+
spring: W
|
|
722
|
+
};
|
|
723
|
+
function Zt(e) {
|
|
724
|
+
typeof e.type == "string" && (e.type = Xt[e.type]);
|
|
725
|
+
}
|
|
726
|
+
//#endregion
|
|
727
|
+
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/animation/utils/WithPromise.mjs
|
|
728
|
+
var Qt = class {
|
|
729
|
+
constructor() {
|
|
730
|
+
this.updateFinished();
|
|
731
|
+
}
|
|
732
|
+
get finished() {
|
|
733
|
+
return this._finished;
|
|
734
|
+
}
|
|
735
|
+
updateFinished() {
|
|
736
|
+
this._finished = new Promise((e) => {
|
|
737
|
+
this.resolve = e;
|
|
738
|
+
});
|
|
739
|
+
}
|
|
740
|
+
notifyFinished() {
|
|
741
|
+
this.resolve();
|
|
742
|
+
}
|
|
743
|
+
then(e, t) {
|
|
744
|
+
return this.finished.then(e, t);
|
|
745
|
+
}
|
|
746
|
+
}, $t = (e) => e / 100, en = class extends Qt {
|
|
747
|
+
constructor(e) {
|
|
748
|
+
super(), this.state = "idle", this.startTime = null, this.isStopped = !1, this.currentTime = 0, this.holdTime = null, this.playbackSpeed = 1, this.delayState = {
|
|
749
|
+
done: !1,
|
|
750
|
+
value: void 0
|
|
751
|
+
}, this.stop = () => {
|
|
752
|
+
let { motionValue: e } = this.options;
|
|
753
|
+
e && e.updatedAt !== k.now() && this.tick(k.now()), this.isStopped = !0, this.state !== "idle" && (this.teardown(), this.options.onStop?.());
|
|
754
|
+
}, Oe.mainThread++, this.options = e, this.initAnimation(), this.play(), e.autoplay === !1 && this.pause();
|
|
755
|
+
}
|
|
756
|
+
initAnimation() {
|
|
757
|
+
let { options: e } = this;
|
|
758
|
+
Zt(e);
|
|
759
|
+
let { type: t = G, repeat: n = 0, repeatDelay: r = 0, repeatType: i, velocity: a = 0 } = e, { keyframes: o } = e, s = t || G;
|
|
760
|
+
process.env.NODE_ENV !== "production" && s !== G && l(o.length <= 2, `Only two keyframes currently supported with spring and inertia animations. Trying to animate ${o}`, "spring-two-frames"), s !== G && typeof o[0] != "number" && (this.mixKeyframes = g($t, wt(o[0], o[1])), o = [0, 100]);
|
|
761
|
+
let c = s({
|
|
762
|
+
...e,
|
|
763
|
+
keyframes: o
|
|
764
|
+
});
|
|
765
|
+
i === "mirror" && (this.mirroredGenerator = s({
|
|
766
|
+
...e,
|
|
767
|
+
keyframes: [...o].reverse(),
|
|
768
|
+
velocity: -a
|
|
769
|
+
})), c.calculatedDuration === null && (c.calculatedDuration = Ot(c));
|
|
770
|
+
let { calculatedDuration: u } = c;
|
|
771
|
+
this.calculatedDuration = u, this.resolvedDuration = u + r, this.totalDuration = this.resolvedDuration * (n + 1) - r, this.generator = c;
|
|
772
|
+
}
|
|
773
|
+
updateTime(e) {
|
|
774
|
+
let t = Math.round(e - this.startTime) * this.playbackSpeed;
|
|
775
|
+
this.holdTime === null ? this.currentTime = t : this.currentTime = this.holdTime;
|
|
776
|
+
}
|
|
777
|
+
tick(e, t = !1) {
|
|
778
|
+
let { generator: n, totalDuration: r, mixKeyframes: i, mirroredGenerator: a, resolvedDuration: s, calculatedDuration: c } = this;
|
|
779
|
+
if (this.startTime === null) return n.next(0);
|
|
780
|
+
let { delay: l = 0, keyframes: u, repeat: d, repeatType: f, repeatDelay: p, type: m, onUpdate: h, finalKeyframe: g } = this.options;
|
|
781
|
+
this.speed > 0 ? this.startTime = Math.min(this.startTime, e) : this.speed < 0 && (this.startTime = Math.min(e - r / this.speed, this.startTime)), t ? this.currentTime = e : this.updateTime(e);
|
|
782
|
+
let _ = this.currentTime - l * (this.playbackSpeed >= 0 ? 1 : -1), v = this.playbackSpeed >= 0 ? _ < 0 : _ > r;
|
|
783
|
+
this.currentTime = Math.max(_, 0), this.state === "finished" && this.holdTime === null && (this.currentTime = r);
|
|
784
|
+
let y = this.currentTime, b = n;
|
|
785
|
+
if (d) {
|
|
786
|
+
let e = Math.min(this.currentTime, r) / s, t = Math.floor(e), n = e % 1;
|
|
787
|
+
!n && e >= 1 && (n = 1), n === 1 && t--, t = Math.min(t, d + 1), t % 2 && (f === "reverse" ? (n = 1 - n, p && (n -= p / s)) : f === "mirror" && (b = a)), y = o(0, 1, n) * s;
|
|
788
|
+
}
|
|
789
|
+
let x;
|
|
790
|
+
v ? (this.delayState.value = u[0], x = this.delayState) : x = b.next(y), i && !v && (x.value = i(x.value));
|
|
791
|
+
let { done: S } = x;
|
|
792
|
+
!v && c !== null && (S = this.playbackSpeed >= 0 ? this.currentTime >= r : this.currentTime <= 0);
|
|
793
|
+
let C = this.holdTime === null && (this.state === "finished" || this.state === "running" && S);
|
|
794
|
+
return C && m !== Vt && (x.value = Yt(u, this.options, g, this.speed)), h && h(x.value), C && this.finish(), x;
|
|
795
|
+
}
|
|
796
|
+
then(e, t) {
|
|
797
|
+
return this.finished.then(e, t);
|
|
798
|
+
}
|
|
799
|
+
get duration() {
|
|
800
|
+
return /* @__PURE__ */ b(this.calculatedDuration);
|
|
801
|
+
}
|
|
802
|
+
get iterationDuration() {
|
|
803
|
+
let { delay: e = 0 } = this.options || {};
|
|
804
|
+
return this.duration + /* @__PURE__ */ b(e);
|
|
805
|
+
}
|
|
806
|
+
get time() {
|
|
807
|
+
return /* @__PURE__ */ b(this.currentTime);
|
|
808
|
+
}
|
|
809
|
+
set time(e) {
|
|
810
|
+
e = /* @__PURE__ */ y(e), this.currentTime = e, this.startTime === null || this.holdTime !== null || this.playbackSpeed === 0 ? this.holdTime = e : this.driver && (this.startTime = this.driver.now() - e / this.playbackSpeed), this.driver ? this.driver.start(!1) : (this.startTime = 0, this.state = "paused", this.holdTime = e, this.tick(e));
|
|
811
|
+
}
|
|
812
|
+
getGeneratorVelocity() {
|
|
813
|
+
let e = this.currentTime;
|
|
814
|
+
if (e <= 0) return this.options.velocity || 0;
|
|
815
|
+
if (this.generator.velocity) return this.generator.velocity(e);
|
|
816
|
+
let t = this.generator.next(e).value;
|
|
817
|
+
return Bt((e) => this.generator.next(e).value, e, t);
|
|
818
|
+
}
|
|
819
|
+
get speed() {
|
|
820
|
+
return this.playbackSpeed;
|
|
821
|
+
}
|
|
822
|
+
set speed(e) {
|
|
823
|
+
let t = this.playbackSpeed !== e;
|
|
824
|
+
t && this.driver && this.updateTime(k.now()), this.playbackSpeed = e, t && this.driver && (this.time = /* @__PURE__ */ b(this.currentTime));
|
|
825
|
+
}
|
|
826
|
+
play() {
|
|
827
|
+
if (this.isStopped) return;
|
|
828
|
+
let { driver: e = Tt, startTime: t } = this.options;
|
|
829
|
+
this.driver ||= e((e) => this.tick(e)), this.options.onPlay?.();
|
|
830
|
+
let n = this.driver.now();
|
|
831
|
+
this.state === "finished" ? (this.updateFinished(), this.startTime = n) : this.holdTime === null ? this.startTime ||= t ?? n : this.startTime = n - this.holdTime, this.state === "finished" && this.speed < 0 && (this.startTime += this.calculatedDuration), this.holdTime = null, this.state = "running", this.driver.start();
|
|
832
|
+
}
|
|
833
|
+
pause() {
|
|
834
|
+
this.state = "paused", this.updateTime(k.now()), this.holdTime = this.currentTime;
|
|
835
|
+
}
|
|
836
|
+
complete() {
|
|
837
|
+
this.state !== "running" && this.play(), this.state = "finished", this.holdTime = null;
|
|
838
|
+
}
|
|
839
|
+
finish() {
|
|
840
|
+
this.notifyFinished(), this.teardown(), this.state = "finished", this.options.onComplete?.();
|
|
841
|
+
}
|
|
842
|
+
cancel() {
|
|
843
|
+
this.holdTime = null, this.startTime = 0, this.tick(0), this.teardown(), this.options.onCancel?.();
|
|
844
|
+
}
|
|
845
|
+
teardown() {
|
|
846
|
+
this.state = "idle", this.stopDriver(), this.startTime = this.holdTime = null, Oe.mainThread--;
|
|
847
|
+
}
|
|
848
|
+
stopDriver() {
|
|
849
|
+
this.driver &&= (this.driver.stop(), void 0);
|
|
850
|
+
}
|
|
851
|
+
sample(e) {
|
|
852
|
+
return this.startTime = 0, this.tick(e, !0);
|
|
853
|
+
}
|
|
854
|
+
attachTimeline(e) {
|
|
855
|
+
return this.options.allowFlatten && (this.options.type = "keyframes", this.options.ease = "linear", this.initAnimation()), this.driver?.stop(), e.observe(this);
|
|
856
|
+
}
|
|
857
|
+
};
|
|
858
|
+
//#endregion
|
|
859
|
+
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/animation/keyframes/utils/fill-wildcards.mjs
|
|
860
|
+
function tn(e) {
|
|
861
|
+
for (let t = 1; t < e.length; t++) e[t] ?? (e[t] = e[t - 1]);
|
|
862
|
+
}
|
|
863
|
+
//#endregion
|
|
864
|
+
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/render/dom/parse-transform.mjs
|
|
865
|
+
var K = (e) => e * 180 / Math.PI, nn = (e) => an(K(Math.atan2(e[1], e[0]))), rn = {
|
|
866
|
+
x: 4,
|
|
867
|
+
y: 5,
|
|
868
|
+
translateX: 4,
|
|
869
|
+
translateY: 5,
|
|
870
|
+
scaleX: 0,
|
|
871
|
+
scaleY: 3,
|
|
872
|
+
scale: (e) => (Math.abs(e[0]) + Math.abs(e[3])) / 2,
|
|
873
|
+
rotate: nn,
|
|
874
|
+
rotateZ: nn,
|
|
875
|
+
skewX: (e) => K(Math.atan(e[1])),
|
|
876
|
+
skewY: (e) => K(Math.atan(e[2])),
|
|
877
|
+
skew: (e) => (Math.abs(e[1]) + Math.abs(e[2])) / 2
|
|
878
|
+
}, an = (e) => (e %= 360, e < 0 && (e += 360), e), on = nn, sn = (e) => Math.sqrt(e[0] * e[0] + e[1] * e[1]), cn = (e) => Math.sqrt(e[4] * e[4] + e[5] * e[5]), ln = {
|
|
879
|
+
x: 12,
|
|
880
|
+
y: 13,
|
|
881
|
+
z: 14,
|
|
882
|
+
translateX: 12,
|
|
883
|
+
translateY: 13,
|
|
884
|
+
translateZ: 14,
|
|
885
|
+
scaleX: sn,
|
|
886
|
+
scaleY: cn,
|
|
887
|
+
scale: (e) => (sn(e) + cn(e)) / 2,
|
|
888
|
+
rotateX: (e) => an(K(Math.atan2(e[6], e[5]))),
|
|
889
|
+
rotateY: (e) => an(K(Math.atan2(-e[2], e[0]))),
|
|
890
|
+
rotateZ: on,
|
|
891
|
+
rotate: on,
|
|
892
|
+
skewX: (e) => K(Math.atan(e[4])),
|
|
893
|
+
skewY: (e) => K(Math.atan(e[1])),
|
|
894
|
+
skew: (e) => (Math.abs(e[1]) + Math.abs(e[4])) / 2
|
|
895
|
+
};
|
|
896
|
+
function un(e) {
|
|
897
|
+
return +!!e.includes("scale");
|
|
898
|
+
}
|
|
899
|
+
function dn(e, t) {
|
|
900
|
+
if (!e || e === "none") return un(t);
|
|
901
|
+
let n = e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u), r, i;
|
|
902
|
+
if (n) r = ln, i = n;
|
|
903
|
+
else {
|
|
904
|
+
let t = e.match(/^matrix\(([-\d.e\s,]+)\)$/u);
|
|
905
|
+
r = rn, i = t;
|
|
906
|
+
}
|
|
907
|
+
if (!i) return un(t);
|
|
908
|
+
let a = r[t], o = i[1].split(",").map(pn);
|
|
909
|
+
return typeof a == "function" ? a(o) : o[a];
|
|
910
|
+
}
|
|
911
|
+
var fn = (e, t) => {
|
|
912
|
+
let { transform: n = "none" } = getComputedStyle(e);
|
|
913
|
+
return dn(n, t);
|
|
914
|
+
};
|
|
915
|
+
function pn(e) {
|
|
916
|
+
return parseFloat(e.trim());
|
|
917
|
+
}
|
|
918
|
+
//#endregion
|
|
919
|
+
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/render/utils/keys-transform.mjs
|
|
920
|
+
var q = [
|
|
921
|
+
"transformPerspective",
|
|
922
|
+
"x",
|
|
923
|
+
"y",
|
|
924
|
+
"z",
|
|
925
|
+
"translateX",
|
|
926
|
+
"translateY",
|
|
927
|
+
"translateZ",
|
|
928
|
+
"scale",
|
|
929
|
+
"scaleX",
|
|
930
|
+
"scaleY",
|
|
931
|
+
"rotate",
|
|
932
|
+
"rotateX",
|
|
933
|
+
"rotateY",
|
|
934
|
+
"rotateZ",
|
|
935
|
+
"skew",
|
|
936
|
+
"skewX",
|
|
937
|
+
"skewY"
|
|
938
|
+
], J = /* @__PURE__ */ new Set([...q, "pathRotation"]), mn = (e) => e === A || e === L, hn = new Set([
|
|
939
|
+
"x",
|
|
940
|
+
"y",
|
|
941
|
+
"z"
|
|
942
|
+
]), gn = q.filter((e) => !hn.has(e));
|
|
943
|
+
function _n(e) {
|
|
944
|
+
let t = [];
|
|
945
|
+
return gn.forEach((n) => {
|
|
946
|
+
let r = e.getValue(n);
|
|
947
|
+
r !== void 0 && (t.push([n, r.get()]), r.set(+!!n.startsWith("scale")));
|
|
948
|
+
}), t;
|
|
949
|
+
}
|
|
950
|
+
var Y = {
|
|
951
|
+
width: ({ x: e }, { paddingLeft: t = "0", paddingRight: n = "0", boxSizing: r }) => {
|
|
952
|
+
let i = e.max - e.min;
|
|
953
|
+
return r === "border-box" ? i : i - parseFloat(t) - parseFloat(n);
|
|
954
|
+
},
|
|
955
|
+
height: ({ y: e }, { paddingTop: t = "0", paddingBottom: n = "0", boxSizing: r }) => {
|
|
956
|
+
let i = e.max - e.min;
|
|
957
|
+
return r === "border-box" ? i : i - parseFloat(t) - parseFloat(n);
|
|
958
|
+
},
|
|
959
|
+
top: (e, { top: t }) => parseFloat(t),
|
|
960
|
+
left: (e, { left: t }) => parseFloat(t),
|
|
961
|
+
bottom: ({ y: e }, { top: t }) => parseFloat(t) + (e.max - e.min),
|
|
962
|
+
right: ({ x: e }, { left: t }) => parseFloat(t) + (e.max - e.min),
|
|
963
|
+
x: (e, { transform: t }) => dn(t, "x"),
|
|
964
|
+
y: (e, { transform: t }) => dn(t, "y")
|
|
965
|
+
};
|
|
966
|
+
Y.translateX = Y.x, Y.translateY = Y.y;
|
|
967
|
+
//#endregion
|
|
968
|
+
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/animation/keyframes/KeyframesResolver.mjs
|
|
969
|
+
var X = /* @__PURE__ */ new Set(), vn = !1, yn = !1, bn = !1;
|
|
970
|
+
function xn() {
|
|
971
|
+
if (yn) {
|
|
972
|
+
let e = Array.from(X).filter((e) => e.needsMeasurement), t = new Set(e.map((e) => e.element)), n = /* @__PURE__ */ new Map();
|
|
973
|
+
t.forEach((e) => {
|
|
974
|
+
let t = _n(e);
|
|
975
|
+
t.length && (n.set(e, t), e.render());
|
|
976
|
+
}), e.forEach((e) => e.measureInitialState()), t.forEach((e) => {
|
|
977
|
+
e.render();
|
|
978
|
+
let t = n.get(e);
|
|
979
|
+
t && t.forEach(([t, n]) => {
|
|
980
|
+
e.getValue(t)?.set(n);
|
|
981
|
+
});
|
|
982
|
+
}), e.forEach((e) => e.measureEndState()), e.forEach((e) => {
|
|
983
|
+
e.suspendedScrollY !== void 0 && window.scrollTo(0, e.suspendedScrollY);
|
|
984
|
+
});
|
|
985
|
+
}
|
|
986
|
+
yn = !1, vn = !1, X.forEach((e) => e.complete(bn)), X.clear();
|
|
987
|
+
}
|
|
988
|
+
function Sn() {
|
|
989
|
+
X.forEach((e) => {
|
|
990
|
+
e.readKeyframes(), e.needsMeasurement && (yn = !0);
|
|
991
|
+
});
|
|
992
|
+
}
|
|
993
|
+
function Cn() {
|
|
994
|
+
bn = !0, Sn(), xn(), bn = !1;
|
|
995
|
+
}
|
|
996
|
+
var wn = class {
|
|
997
|
+
constructor(e, t, n, r, i, a = !1) {
|
|
998
|
+
this.state = "pending", this.isAsync = !1, this.needsMeasurement = !1, this.unresolvedKeyframes = [...e], this.onComplete = t, this.name = n, this.motionValue = r, this.element = i, this.isAsync = a;
|
|
999
|
+
}
|
|
1000
|
+
scheduleResolve() {
|
|
1001
|
+
this.state = "scheduled", this.isAsync ? (X.add(this), vn || (vn = !0, D.read(Sn), D.resolveKeyframes(xn))) : (this.readKeyframes(), this.complete());
|
|
1002
|
+
}
|
|
1003
|
+
readKeyframes() {
|
|
1004
|
+
let { unresolvedKeyframes: e, name: t, element: n, motionValue: r } = this;
|
|
1005
|
+
if (e[0] === null) {
|
|
1006
|
+
let i = r?.get(), a = e[e.length - 1];
|
|
1007
|
+
if (i !== void 0) e[0] = i;
|
|
1008
|
+
else if (n && t) {
|
|
1009
|
+
let r = n.readValue(t, a);
|
|
1010
|
+
r != null && (e[0] = r);
|
|
1011
|
+
}
|
|
1012
|
+
e[0] === void 0 && (e[0] = a), r && i === void 0 && r.set(e[0]);
|
|
1013
|
+
}
|
|
1014
|
+
tn(e);
|
|
1015
|
+
}
|
|
1016
|
+
setFinalKeyframe() {}
|
|
1017
|
+
measureInitialState() {}
|
|
1018
|
+
renderEndStyles() {}
|
|
1019
|
+
measureEndState() {}
|
|
1020
|
+
complete(e = !1) {
|
|
1021
|
+
this.state = "complete", this.onComplete(this.unresolvedKeyframes, this.finalKeyframe, e), X.delete(this);
|
|
1022
|
+
}
|
|
1023
|
+
cancel() {
|
|
1024
|
+
this.state === "scheduled" && (X.delete(this), this.state = "pending");
|
|
1025
|
+
}
|
|
1026
|
+
resume() {
|
|
1027
|
+
this.state === "pending" && this.scheduleResolve();
|
|
1028
|
+
}
|
|
1029
|
+
}, Tn = (e) => e.startsWith("--");
|
|
1030
|
+
//#endregion
|
|
1031
|
+
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/render/dom/style-set.mjs
|
|
1032
|
+
function En(e, t, n) {
|
|
1033
|
+
Tn(t) ? e.style.setProperty(t, n) : e.style[t] = n;
|
|
1034
|
+
}
|
|
1035
|
+
//#endregion
|
|
1036
|
+
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/utils/supports/flags.mjs
|
|
1037
|
+
var Dn = {};
|
|
1038
|
+
//#endregion
|
|
1039
|
+
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/utils/supports/memo.mjs
|
|
1040
|
+
function On(e, t) {
|
|
1041
|
+
let n = /* @__PURE__ */ m(e);
|
|
1042
|
+
return () => Dn[t] ?? n();
|
|
1043
|
+
}
|
|
1044
|
+
//#endregion
|
|
1045
|
+
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/utils/supports/scroll-timeline.mjs
|
|
1046
|
+
var kn = /* @__PURE__ */ On(() => window.ScrollTimeline !== void 0, "scrollTimeline"), An = /* @__PURE__ */ On(() => {
|
|
1047
|
+
try {
|
|
1048
|
+
document.createElement("div").animate({ opacity: 0 }, { easing: "linear(0, 1)" });
|
|
1049
|
+
} catch {
|
|
1050
|
+
return !1;
|
|
1051
|
+
}
|
|
1052
|
+
return !0;
|
|
1053
|
+
}, "linearEasing"), Z = ([e, t, n, r]) => `cubic-bezier(${e}, ${t}, ${n}, ${r})`, jn = {
|
|
1054
|
+
linear: "linear",
|
|
1055
|
+
ease: "ease",
|
|
1056
|
+
easeIn: "ease-in",
|
|
1057
|
+
easeOut: "ease-out",
|
|
1058
|
+
easeInOut: "ease-in-out",
|
|
1059
|
+
circIn: /* @__PURE__ */ Z([
|
|
1060
|
+
0,
|
|
1061
|
+
.65,
|
|
1062
|
+
.55,
|
|
1063
|
+
1
|
|
1064
|
+
]),
|
|
1065
|
+
circOut: /* @__PURE__ */ Z([
|
|
1066
|
+
.55,
|
|
1067
|
+
0,
|
|
1068
|
+
1,
|
|
1069
|
+
.45
|
|
1070
|
+
]),
|
|
1071
|
+
backIn: /* @__PURE__ */ Z([
|
|
1072
|
+
.31,
|
|
1073
|
+
.01,
|
|
1074
|
+
.66,
|
|
1075
|
+
-.59
|
|
1076
|
+
]),
|
|
1077
|
+
backOut: /* @__PURE__ */ Z([
|
|
1078
|
+
.33,
|
|
1079
|
+
1.53,
|
|
1080
|
+
.69,
|
|
1081
|
+
.99
|
|
1082
|
+
])
|
|
1083
|
+
};
|
|
1084
|
+
//#endregion
|
|
1085
|
+
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/animation/waapi/easing/map-easing.mjs
|
|
1086
|
+
function Mn(e, t) {
|
|
1087
|
+
if (e) return typeof e == "function" ? An() ? Et(e, t) : "ease-out" : /* @__PURE__ */ ge(e) ? Z(e) : Array.isArray(e) ? e.map((e) => Mn(e, t) || jn.easeOut) : jn[e];
|
|
1088
|
+
}
|
|
1089
|
+
//#endregion
|
|
1090
|
+
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/animation/waapi/start-waapi-animation.mjs
|
|
1091
|
+
function Nn(e, t, n, { delay: r = 0, duration: i = 300, repeat: a = 0, repeatType: o = "loop", ease: s = "easeOut", times: c } = {}, l = void 0) {
|
|
1092
|
+
let u = { [t]: n };
|
|
1093
|
+
c && (u.offset = c);
|
|
1094
|
+
let d = Mn(s, i);
|
|
1095
|
+
Array.isArray(d) && (u.easing = d), E.value && Oe.waapi++;
|
|
1096
|
+
let f = {
|
|
1097
|
+
delay: r,
|
|
1098
|
+
duration: i,
|
|
1099
|
+
easing: Array.isArray(d) ? "linear" : d,
|
|
1100
|
+
fill: "both",
|
|
1101
|
+
iterations: a + 1,
|
|
1102
|
+
direction: o === "reverse" ? "alternate" : "normal"
|
|
1103
|
+
};
|
|
1104
|
+
l && (f.pseudoElement = l);
|
|
1105
|
+
let p = e.animate(u, f);
|
|
1106
|
+
return E.value && p.finished.finally(() => {
|
|
1107
|
+
Oe.waapi--;
|
|
1108
|
+
}), p;
|
|
1109
|
+
}
|
|
1110
|
+
//#endregion
|
|
1111
|
+
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/animation/generators/utils/is-generator.mjs
|
|
1112
|
+
function Pn(e) {
|
|
1113
|
+
return typeof e == "function" && "applyToOptions" in e;
|
|
1114
|
+
}
|
|
1115
|
+
//#endregion
|
|
1116
|
+
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/animation/waapi/utils/apply-generator.mjs
|
|
1117
|
+
function Fn({ type: e, ...t }) {
|
|
1118
|
+
return Pn(e) && An() ? e.applyToOptions(t) : (t.duration ??= 300, t.ease ??= "easeOut", t);
|
|
1119
|
+
}
|
|
1120
|
+
//#endregion
|
|
1121
|
+
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/animation/NativeAnimation.mjs
|
|
1122
|
+
var In = class extends Qt {
|
|
1123
|
+
constructor(e) {
|
|
1124
|
+
if (super(), this.finishedTime = null, this.isStopped = !1, this.manualStartTime = null, !e) return;
|
|
1125
|
+
let { element: t, name: n, keyframes: r, pseudoElement: i, allowFlatten: a = !1, finalKeyframe: o, onComplete: s } = e;
|
|
1126
|
+
this.isPseudoElement = !!i, this.allowFlatten = a, this.options = e, l(typeof e.type != "string", "Mini animate() doesn't support \"type\" as a string.", "mini-spring");
|
|
1127
|
+
let c = Fn(e);
|
|
1128
|
+
this.animation = Nn(t, n, r, c, i), c.autoplay === !1 && this.animation.pause(), this.animation.onfinish = () => {
|
|
1129
|
+
if (this.finishedTime = this.time, !i) {
|
|
1130
|
+
let e = Yt(r, this.options, o, this.speed);
|
|
1131
|
+
this.updateMotionValue && this.updateMotionValue(e), En(t, n, e), this.animation.cancel();
|
|
1132
|
+
}
|
|
1133
|
+
s?.(), this.notifyFinished();
|
|
1134
|
+
};
|
|
1135
|
+
}
|
|
1136
|
+
play() {
|
|
1137
|
+
this.isStopped || (this.manualStartTime = null, this.animation.play(), this.state === "finished" && this.updateFinished());
|
|
1138
|
+
}
|
|
1139
|
+
pause() {
|
|
1140
|
+
this.animation.pause();
|
|
1141
|
+
}
|
|
1142
|
+
complete() {
|
|
1143
|
+
this.animation.finish?.();
|
|
1144
|
+
}
|
|
1145
|
+
cancel() {
|
|
1146
|
+
try {
|
|
1147
|
+
this.animation.cancel();
|
|
1148
|
+
} catch {}
|
|
1149
|
+
}
|
|
1150
|
+
stop() {
|
|
1151
|
+
if (this.isStopped) return;
|
|
1152
|
+
this.isStopped = !0;
|
|
1153
|
+
let { state: e } = this;
|
|
1154
|
+
e === "idle" || e === "finished" || (this.updateMotionValue ? this.updateMotionValue() : this.commitStyles(), this.isPseudoElement || this.cancel());
|
|
1155
|
+
}
|
|
1156
|
+
commitStyles() {
|
|
1157
|
+
let e = this.options?.element;
|
|
1158
|
+
!this.isPseudoElement && e?.isConnected && this.animation.commitStyles?.();
|
|
1159
|
+
}
|
|
1160
|
+
get duration() {
|
|
1161
|
+
let e = this.animation.effect?.getComputedTiming?.().duration || 0;
|
|
1162
|
+
return /* @__PURE__ */ b(Number(e));
|
|
1163
|
+
}
|
|
1164
|
+
get iterationDuration() {
|
|
1165
|
+
let { delay: e = 0 } = this.options || {};
|
|
1166
|
+
return this.duration + /* @__PURE__ */ b(e);
|
|
1167
|
+
}
|
|
1168
|
+
get time() {
|
|
1169
|
+
return /* @__PURE__ */ b(Number(this.animation.currentTime) || 0);
|
|
1170
|
+
}
|
|
1171
|
+
set time(e) {
|
|
1172
|
+
let t = this.finishedTime !== null;
|
|
1173
|
+
this.manualStartTime = null, this.finishedTime = null, this.animation.currentTime = /* @__PURE__ */ y(e), t && this.animation.pause();
|
|
1174
|
+
}
|
|
1175
|
+
get speed() {
|
|
1176
|
+
return this.animation.playbackRate;
|
|
1177
|
+
}
|
|
1178
|
+
set speed(e) {
|
|
1179
|
+
e < 0 && (this.finishedTime = null), this.animation.playbackRate = e;
|
|
1180
|
+
}
|
|
1181
|
+
get state() {
|
|
1182
|
+
return this.finishedTime === null ? this.animation.playState : "finished";
|
|
1183
|
+
}
|
|
1184
|
+
get startTime() {
|
|
1185
|
+
return this.manualStartTime ?? Number(this.animation.startTime);
|
|
1186
|
+
}
|
|
1187
|
+
set startTime(e) {
|
|
1188
|
+
this.manualStartTime = this.animation.startTime = e;
|
|
1189
|
+
}
|
|
1190
|
+
attachTimeline({ timeline: e, rangeStart: t, rangeEnd: n, observe: r }) {
|
|
1191
|
+
return this.allowFlatten && this.animation.effect?.updateTiming({ easing: "linear" }), this.animation.onfinish = null, e && kn() ? (this.animation.timeline = e, t && (this.animation.rangeStart = t), n && (this.animation.rangeEnd = n), h) : r(this);
|
|
1192
|
+
}
|
|
1193
|
+
}, Ln = {
|
|
1194
|
+
anticipate: ce,
|
|
1195
|
+
backInOut: se,
|
|
1196
|
+
circInOut: de
|
|
1197
|
+
};
|
|
1198
|
+
function Rn(e) {
|
|
1199
|
+
return e in Ln;
|
|
1200
|
+
}
|
|
1201
|
+
function zn(e) {
|
|
1202
|
+
typeof e.ease == "string" && Rn(e.ease) && (e.ease = Ln[e.ease]);
|
|
1203
|
+
}
|
|
1204
|
+
//#endregion
|
|
1205
|
+
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/animation/NativeAnimationExtended.mjs
|
|
1206
|
+
var Bn = 10, Vn = class extends In {
|
|
1207
|
+
constructor(e) {
|
|
1208
|
+
zn(e), Zt(e), super(e), e.startTime !== void 0 && e.autoplay !== !1 && (this.startTime = e.startTime), this.options = e;
|
|
1209
|
+
}
|
|
1210
|
+
updateMotionValue(e) {
|
|
1211
|
+
let { motionValue: t, onUpdate: n, onComplete: r, element: i, ...a } = this.options;
|
|
1212
|
+
if (!t) return;
|
|
1213
|
+
if (e !== void 0) {
|
|
1214
|
+
t.set(e);
|
|
1215
|
+
return;
|
|
1216
|
+
}
|
|
1217
|
+
let s = new en({
|
|
1218
|
+
...a,
|
|
1219
|
+
autoplay: !1
|
|
1220
|
+
}), c = Math.max(Bn, k.now() - this.startTime), l = o(0, Bn, c - Bn), u = s.sample(c).value, { name: d } = this.options;
|
|
1221
|
+
i && d && En(i, d, u), t.setWithVelocity(s.sample(Math.max(0, c - l)).value, u, l), s.stop();
|
|
1222
|
+
}
|
|
1223
|
+
}, Hn = (e, t) => t === "zIndex" ? !1 : !!(typeof e == "number" || Array.isArray(e) || typeof e == "string" && (V.test(e) || e === "0") && !e.startsWith("url("));
|
|
1224
|
+
//#endregion
|
|
1225
|
+
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/animation/utils/can-animate.mjs
|
|
1226
|
+
function Un(e) {
|
|
1227
|
+
let t = e[0];
|
|
1228
|
+
if (e.length === 1) return !0;
|
|
1229
|
+
for (let n = 0; n < e.length; n++) if (e[n] !== t) return !0;
|
|
1230
|
+
}
|
|
1231
|
+
function Wn(e, t, n, r) {
|
|
1232
|
+
let i = e[0];
|
|
1233
|
+
if (i === null) return !1;
|
|
1234
|
+
if (t === "display" || t === "visibility") return !0;
|
|
1235
|
+
let a = e[e.length - 1], o = Hn(i, t), s = Hn(a, t);
|
|
1236
|
+
return c(o === s, `You are trying to animate ${t} from "${i}" to "${a}". "${o ? a : i}" is not an animatable value.`, "value-not-animatable"), !o || !s ? !1 : Un(e) || (n === "spring" || Pn(n)) && r;
|
|
1237
|
+
}
|
|
1238
|
+
//#endregion
|
|
1239
|
+
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/animation/utils/make-animation-instant.mjs
|
|
1240
|
+
function Gn(e) {
|
|
1241
|
+
e.duration = 0, e.type = "keyframes";
|
|
1242
|
+
}
|
|
1243
|
+
//#endregion
|
|
1244
|
+
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/animation/waapi/utils/accelerated-values.mjs
|
|
1245
|
+
var Kn = new Set([
|
|
1246
|
+
"opacity",
|
|
1247
|
+
"clipPath",
|
|
1248
|
+
"filter",
|
|
1249
|
+
"transform"
|
|
1250
|
+
]), qn = /^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;
|
|
1251
|
+
function Jn(e) {
|
|
1252
|
+
for (let t = 0; t < e.length; t++) if (typeof e[t] == "string" && qn.test(e[t])) return !0;
|
|
1253
|
+
return !1;
|
|
1254
|
+
}
|
|
1255
|
+
//#endregion
|
|
1256
|
+
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/animation/waapi/supports/waapi.mjs
|
|
1257
|
+
var Yn = new Set([
|
|
1258
|
+
"color",
|
|
1259
|
+
"backgroundColor",
|
|
1260
|
+
"outlineColor",
|
|
1261
|
+
"fill",
|
|
1262
|
+
"stroke",
|
|
1263
|
+
"borderColor",
|
|
1264
|
+
"borderTopColor",
|
|
1265
|
+
"borderRightColor",
|
|
1266
|
+
"borderBottomColor",
|
|
1267
|
+
"borderLeftColor"
|
|
1268
|
+
]), Xn = /* @__PURE__ */ m(() => Object.hasOwnProperty.call(Element.prototype, "animate"));
|
|
1269
|
+
function Zn(e) {
|
|
1270
|
+
let { motionValue: t, name: n, repeatDelay: r, repeatType: i, damping: a, type: o, keyframes: s } = e;
|
|
1271
|
+
if (!(t?.owner?.current instanceof HTMLElement)) return !1;
|
|
1272
|
+
let { onUpdate: c, transformTemplate: l } = t.owner.getProps();
|
|
1273
|
+
return Xn() && n && (Kn.has(n) || Yn.has(n) && Jn(s)) && (n !== "transform" || !l) && !c && !r && i !== "mirror" && a !== 0 && o !== "inertia";
|
|
1274
|
+
}
|
|
1275
|
+
//#endregion
|
|
1276
|
+
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/animation/AsyncMotionValueAnimation.mjs
|
|
1277
|
+
var Qn = 40, $n = class extends Qt {
|
|
1278
|
+
constructor({ autoplay: e = !0, delay: t = 0, type: n = "keyframes", repeat: r = 0, repeatDelay: i = 0, repeatType: a = "loop", keyframes: o, name: s, motionValue: c, element: l, ...u }) {
|
|
1279
|
+
super(), this.stop = () => {
|
|
1280
|
+
this._animation && (this._animation.stop(), this.stopTimeline?.()), this.keyframeResolver?.cancel();
|
|
1281
|
+
}, this.createdAt = k.now();
|
|
1282
|
+
let d = {
|
|
1283
|
+
autoplay: e,
|
|
1284
|
+
delay: t,
|
|
1285
|
+
type: n,
|
|
1286
|
+
repeat: r,
|
|
1287
|
+
repeatDelay: i,
|
|
1288
|
+
repeatType: a,
|
|
1289
|
+
name: s,
|
|
1290
|
+
motionValue: c,
|
|
1291
|
+
element: l,
|
|
1292
|
+
...u
|
|
1293
|
+
}, f = l?.KeyframeResolver || wn;
|
|
1294
|
+
this.keyframeResolver = new f(o, (e, t, n) => this.onKeyframesResolved(e, t, d, !n), s, c, l), this.keyframeResolver?.scheduleResolve();
|
|
1295
|
+
}
|
|
1296
|
+
onKeyframesResolved(e, t, n, r) {
|
|
1297
|
+
this.keyframeResolver = void 0;
|
|
1298
|
+
let { name: i, type: a, velocity: o, delay: s, isHandoff: c, onUpdate: l } = n;
|
|
1299
|
+
this.resolvedAt = k.now();
|
|
1300
|
+
let d = !0;
|
|
1301
|
+
Wn(e, i, a, o) || (d = !1, (u.instantAnimations || !s) && l?.(Yt(e, n, t)), e[0] = e[e.length - 1], Gn(n), n.repeat = 0);
|
|
1302
|
+
let f = {
|
|
1303
|
+
startTime: r ? this.resolvedAt && this.resolvedAt - this.createdAt > Qn ? this.resolvedAt : this.createdAt : void 0,
|
|
1304
|
+
finalKeyframe: t,
|
|
1305
|
+
...n,
|
|
1306
|
+
keyframes: e
|
|
1307
|
+
}, p = d && !c && Zn(f), m = f.motionValue?.owner?.current, g;
|
|
1308
|
+
if (p) try {
|
|
1309
|
+
g = new Vn({
|
|
1310
|
+
...f,
|
|
1311
|
+
element: m
|
|
1312
|
+
});
|
|
1313
|
+
} catch {
|
|
1314
|
+
g = new en(f);
|
|
1315
|
+
}
|
|
1316
|
+
else g = new en(f);
|
|
1317
|
+
g.finished.then(() => {
|
|
1318
|
+
this.notifyFinished();
|
|
1319
|
+
}).catch(h), this.pendingTimeline &&= (this.stopTimeline = g.attachTimeline(this.pendingTimeline), void 0), this._animation = g;
|
|
1320
|
+
}
|
|
1321
|
+
get finished() {
|
|
1322
|
+
return this._animation ? this.animation.finished : this._finished;
|
|
1323
|
+
}
|
|
1324
|
+
then(e, t) {
|
|
1325
|
+
return this.finished.finally(e).then(() => {});
|
|
1326
|
+
}
|
|
1327
|
+
get animation() {
|
|
1328
|
+
return this._animation || (this.keyframeResolver?.resume(), Cn()), this._animation;
|
|
1329
|
+
}
|
|
1330
|
+
get duration() {
|
|
1331
|
+
return this.animation.duration;
|
|
1332
|
+
}
|
|
1333
|
+
get iterationDuration() {
|
|
1334
|
+
return this.animation.iterationDuration;
|
|
1335
|
+
}
|
|
1336
|
+
get time() {
|
|
1337
|
+
return this.animation.time;
|
|
1338
|
+
}
|
|
1339
|
+
set time(e) {
|
|
1340
|
+
this.animation.time = e;
|
|
1341
|
+
}
|
|
1342
|
+
get speed() {
|
|
1343
|
+
return this.animation.speed;
|
|
1344
|
+
}
|
|
1345
|
+
get state() {
|
|
1346
|
+
return this.animation.state;
|
|
1347
|
+
}
|
|
1348
|
+
set speed(e) {
|
|
1349
|
+
this.animation.speed = e;
|
|
1350
|
+
}
|
|
1351
|
+
get startTime() {
|
|
1352
|
+
return this.animation.startTime;
|
|
1353
|
+
}
|
|
1354
|
+
attachTimeline(e) {
|
|
1355
|
+
return this._animation ? this.stopTimeline = this.animation.attachTimeline(e) : this.pendingTimeline = e, () => this.stop();
|
|
1356
|
+
}
|
|
1357
|
+
play() {
|
|
1358
|
+
this.animation.play();
|
|
1359
|
+
}
|
|
1360
|
+
pause() {
|
|
1361
|
+
this.animation.pause();
|
|
1362
|
+
}
|
|
1363
|
+
complete() {
|
|
1364
|
+
this.animation.complete();
|
|
1365
|
+
}
|
|
1366
|
+
cancel() {
|
|
1367
|
+
this._animation && this.animation.cancel(), this.keyframeResolver?.cancel();
|
|
1368
|
+
}
|
|
1369
|
+
}, er = 30, tr = (e) => !isNaN(parseFloat(e)), nr = { current: void 0 }, rr = class {
|
|
1370
|
+
constructor(e, t = {}) {
|
|
1371
|
+
this.canTrackVelocity = null, this.events = {}, this.updateAndNotify = (e) => {
|
|
1372
|
+
let t = k.now();
|
|
1373
|
+
if (this.updatedAt !== t && this.setPrevFrameValue(), this.prev = this.current, this.setCurrent(e), this.current !== this.prev && (this.events.change?.notify(this.current), this.dependents)) for (let e of this.dependents) e.dirty();
|
|
1374
|
+
}, this.hasAnimated = !1, this.setCurrent(e), this.owner = t.owner;
|
|
1375
|
+
}
|
|
1376
|
+
setCurrent(e) {
|
|
1377
|
+
this.current = e, this.updatedAt = k.now(), this.canTrackVelocity === null && e !== void 0 && (this.canTrackVelocity = tr(this.current));
|
|
1378
|
+
}
|
|
1379
|
+
setPrevFrameValue(e = this.current) {
|
|
1380
|
+
this.prevFrameValue = e, this.prevUpdatedAt = this.updatedAt;
|
|
1381
|
+
}
|
|
1382
|
+
onChange(e) {
|
|
1383
|
+
return process.env.NODE_ENV !== "production" && C(!1, "value.onChange(callback) is deprecated. Switch to value.on(\"change\", callback)."), this.on("change", e);
|
|
1384
|
+
}
|
|
1385
|
+
on(e, t) {
|
|
1386
|
+
this.events[e] || (this.events[e] = new v());
|
|
1387
|
+
let n = this.events[e].add(t);
|
|
1388
|
+
return e === "change" ? () => {
|
|
1389
|
+
n(), D.read(() => {
|
|
1390
|
+
this.events.change.getSize() || this.stop();
|
|
1391
|
+
});
|
|
1392
|
+
} : n;
|
|
1393
|
+
}
|
|
1394
|
+
clearListeners() {
|
|
1395
|
+
for (let e in this.events) this.events[e].clear();
|
|
1396
|
+
}
|
|
1397
|
+
attach(e, t) {
|
|
1398
|
+
this.passiveEffect = e, this.stopPassiveEffect = t;
|
|
1399
|
+
}
|
|
1400
|
+
set(e) {
|
|
1401
|
+
this.passiveEffect ? this.passiveEffect(e, this.updateAndNotify) : this.updateAndNotify(e);
|
|
1402
|
+
}
|
|
1403
|
+
setWithVelocity(e, t, n) {
|
|
1404
|
+
this.set(t), this.prev = void 0, this.prevFrameValue = e, this.prevUpdatedAt = this.updatedAt - n;
|
|
1405
|
+
}
|
|
1406
|
+
jump(e, t = !0) {
|
|
1407
|
+
this.updateAndNotify(e), this.prev = e, this.prevUpdatedAt = this.prevFrameValue = void 0, t && this.stop(), this.stopPassiveEffect && this.stopPassiveEffect();
|
|
1408
|
+
}
|
|
1409
|
+
dirty() {
|
|
1410
|
+
this.events.change?.notify(this.current);
|
|
1411
|
+
}
|
|
1412
|
+
addDependent(e) {
|
|
1413
|
+
this.dependents ||= /* @__PURE__ */ new Set(), this.dependents.add(e);
|
|
1414
|
+
}
|
|
1415
|
+
removeDependent(e) {
|
|
1416
|
+
this.dependents && this.dependents.delete(e);
|
|
1417
|
+
}
|
|
1418
|
+
get() {
|
|
1419
|
+
return nr.current && nr.current.push(this), this.current;
|
|
1420
|
+
}
|
|
1421
|
+
getPrevious() {
|
|
1422
|
+
return this.prev;
|
|
1423
|
+
}
|
|
1424
|
+
getVelocity() {
|
|
1425
|
+
let e = k.now();
|
|
1426
|
+
if (!this.canTrackVelocity || this.prevFrameValue === void 0 || e - this.updatedAt > er) return 0;
|
|
1427
|
+
let t = Math.min(this.updatedAt - this.prevUpdatedAt, er);
|
|
1428
|
+
return /* @__PURE__ */ x(parseFloat(this.current) - parseFloat(this.prevFrameValue), t);
|
|
1429
|
+
}
|
|
1430
|
+
start(e) {
|
|
1431
|
+
return this.stop(), new Promise((t) => {
|
|
1432
|
+
this.hasAnimated = !0, this.animation = e(t), this.events.animationStart && this.events.animationStart.notify();
|
|
1433
|
+
}).then(() => {
|
|
1434
|
+
this.events.animationComplete && this.events.animationComplete.notify(), this.clearAnimation();
|
|
1435
|
+
});
|
|
1436
|
+
}
|
|
1437
|
+
stop() {
|
|
1438
|
+
this.animation && (this.animation.stop(), this.events.animationCancel && this.events.animationCancel.notify()), this.clearAnimation();
|
|
1439
|
+
}
|
|
1440
|
+
isAnimating() {
|
|
1441
|
+
return !!this.animation;
|
|
1442
|
+
}
|
|
1443
|
+
clearAnimation() {
|
|
1444
|
+
delete this.animation;
|
|
1445
|
+
}
|
|
1446
|
+
destroy() {
|
|
1447
|
+
this.dependents?.clear(), this.events.destroy?.notify(), this.clearListeners(), this.stop(), this.stopPassiveEffect && this.stopPassiveEffect();
|
|
1448
|
+
}
|
|
1449
|
+
};
|
|
1450
|
+
function Q(e, t) {
|
|
1451
|
+
return new rr(e, t);
|
|
1452
|
+
}
|
|
1453
|
+
//#endregion
|
|
1454
|
+
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/animation/utils/resolve-transition.mjs
|
|
1455
|
+
function ir(e, t) {
|
|
1456
|
+
if (e?.inherit && t) {
|
|
1457
|
+
let { inherit: n, ...r } = e;
|
|
1458
|
+
return {
|
|
1459
|
+
...t,
|
|
1460
|
+
...r
|
|
1461
|
+
};
|
|
1462
|
+
}
|
|
1463
|
+
return e;
|
|
1464
|
+
}
|
|
1465
|
+
//#endregion
|
|
1466
|
+
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/animation/utils/get-value-transition.mjs
|
|
1467
|
+
function ar(e, t) {
|
|
1468
|
+
let n = e?.[t] ?? e?.default ?? e;
|
|
1469
|
+
return n === e ? n : ir(n, e);
|
|
1470
|
+
}
|
|
1471
|
+
//#endregion
|
|
1472
|
+
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/animation/utils/default-transitions.mjs
|
|
1473
|
+
var or = {
|
|
1474
|
+
type: "spring",
|
|
1475
|
+
stiffness: 500,
|
|
1476
|
+
damping: 25,
|
|
1477
|
+
restSpeed: 10
|
|
1478
|
+
}, sr = (e) => ({
|
|
1479
|
+
type: "spring",
|
|
1480
|
+
stiffness: 550,
|
|
1481
|
+
damping: e === 0 ? 2 * Math.sqrt(550) : 30,
|
|
1482
|
+
restSpeed: 10
|
|
1483
|
+
}), cr = {
|
|
1484
|
+
type: "keyframes",
|
|
1485
|
+
duration: .8
|
|
1486
|
+
}, lr = {
|
|
1487
|
+
type: "keyframes",
|
|
1488
|
+
ease: [
|
|
1489
|
+
.25,
|
|
1490
|
+
.1,
|
|
1491
|
+
.35,
|
|
1492
|
+
1
|
|
1493
|
+
],
|
|
1494
|
+
duration: .3
|
|
1495
|
+
}, ur = (e, { keyframes: t }) => t.length > 2 ? cr : J.has(e) ? e.startsWith("scale") ? sr(t[1]) : or : lr, dr = new Set([
|
|
1496
|
+
"when",
|
|
1497
|
+
"delay",
|
|
1498
|
+
"delayChildren",
|
|
1499
|
+
"staggerChildren",
|
|
1500
|
+
"staggerDirection",
|
|
1501
|
+
"repeat",
|
|
1502
|
+
"repeatType",
|
|
1503
|
+
"repeatDelay",
|
|
1504
|
+
"from",
|
|
1505
|
+
"elapsed"
|
|
1506
|
+
]);
|
|
1507
|
+
function fr(e) {
|
|
1508
|
+
for (let t in e) if (!dr.has(t)) return !0;
|
|
1509
|
+
return !1;
|
|
1510
|
+
}
|
|
1511
|
+
//#endregion
|
|
1512
|
+
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/animation/interfaces/motion-value.mjs
|
|
1513
|
+
var pr = (e, t, n, r = {}, i, a) => (o) => {
|
|
1514
|
+
let s = ar(r, e) || {}, c = s.delay || r.delay || 0, { elapsed: l = 0 } = r;
|
|
1515
|
+
l -= /* @__PURE__ */ y(c);
|
|
1516
|
+
let d = {
|
|
1517
|
+
keyframes: Array.isArray(n) ? n : [null, n],
|
|
1518
|
+
ease: "easeOut",
|
|
1519
|
+
velocity: t.getVelocity(),
|
|
1520
|
+
...s,
|
|
1521
|
+
delay: -l,
|
|
1522
|
+
onUpdate: (e) => {
|
|
1523
|
+
t.set(e), s.onUpdate && s.onUpdate(e);
|
|
1524
|
+
},
|
|
1525
|
+
onComplete: () => {
|
|
1526
|
+
o(), s.onComplete && s.onComplete();
|
|
1527
|
+
},
|
|
1528
|
+
name: e,
|
|
1529
|
+
motionValue: t,
|
|
1530
|
+
element: a ? void 0 : i
|
|
1531
|
+
};
|
|
1532
|
+
fr(s) || Object.assign(d, ur(e, d)), d.duration &&= /* @__PURE__ */ y(d.duration), d.repeatDelay &&= /* @__PURE__ */ y(d.repeatDelay), d.from !== void 0 && (d.keyframes[0] = d.from);
|
|
1533
|
+
let f = !1;
|
|
1534
|
+
if ((d.type === !1 || d.duration === 0 && !d.repeatDelay) && (Gn(d), d.delay === 0 && (f = !0)), (u.instantAnimations || u.skipAnimations || i?.shouldSkipAnimations || s.skipAnimations) && (f = !0, Gn(d), d.delay = 0), d.allowFlatten = !s.type && !s.ease, f && !a && t.get() !== void 0) {
|
|
1535
|
+
let e = Yt(d.keyframes, s);
|
|
1536
|
+
if (e !== void 0) {
|
|
1537
|
+
D.update(() => {
|
|
1538
|
+
d.onUpdate(e), d.onComplete();
|
|
1539
|
+
});
|
|
1540
|
+
return;
|
|
1541
|
+
}
|
|
1542
|
+
}
|
|
1543
|
+
return s.isSync ? new en(d) : new $n(d);
|
|
1544
|
+
}, mr = /^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;
|
|
1545
|
+
function hr(e) {
|
|
1546
|
+
let t = mr.exec(e);
|
|
1547
|
+
if (!t) return [,];
|
|
1548
|
+
let [, n, r, i] = t;
|
|
1549
|
+
return [`--${n ?? r}`, i];
|
|
1550
|
+
}
|
|
1551
|
+
var gr = 4;
|
|
1552
|
+
function _r(e, t, n = 1) {
|
|
1553
|
+
l(n <= gr, `Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`, "max-css-var-depth");
|
|
1554
|
+
let [r, i] = hr(e);
|
|
1555
|
+
if (!r) return;
|
|
1556
|
+
let a = window.getComputedStyle(t).getPropertyValue(r);
|
|
1557
|
+
if (a) {
|
|
1558
|
+
let e = a.trim();
|
|
1559
|
+
return d(e) ? parseFloat(e) : e;
|
|
1560
|
+
}
|
|
1561
|
+
return Me(i) ? _r(i, t, n + 1) : i;
|
|
1562
|
+
}
|
|
1563
|
+
//#endregion
|
|
1564
|
+
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/render/utils/resolve-variants.mjs
|
|
1565
|
+
function vr(e) {
|
|
1566
|
+
let t = [{}, {}];
|
|
1567
|
+
return e?.values.forEach((e, n) => {
|
|
1568
|
+
t[0][n] = e.get(), t[1][n] = e.getVelocity();
|
|
1569
|
+
}), t;
|
|
1570
|
+
}
|
|
1571
|
+
function yr(e, t, n, r) {
|
|
1572
|
+
if (typeof t == "function") {
|
|
1573
|
+
let [i, a] = vr(r);
|
|
1574
|
+
t = t(n === void 0 ? e.custom : n, i, a);
|
|
1575
|
+
}
|
|
1576
|
+
if (typeof t == "string" && (t = e.variants && e.variants[t]), typeof t == "function") {
|
|
1577
|
+
let [i, a] = vr(r);
|
|
1578
|
+
t = t(n === void 0 ? e.custom : n, i, a);
|
|
1579
|
+
}
|
|
1580
|
+
return t;
|
|
1581
|
+
}
|
|
1582
|
+
//#endregion
|
|
1583
|
+
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/render/utils/resolve-dynamic-variants.mjs
|
|
1584
|
+
function br(e, t, n) {
|
|
1585
|
+
let r = e.getProps();
|
|
1586
|
+
return yr(r, t, n === void 0 ? r.custom : n, e);
|
|
1587
|
+
}
|
|
1588
|
+
//#endregion
|
|
1589
|
+
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/render/utils/keys-position.mjs
|
|
1590
|
+
var xr = new Set([
|
|
1591
|
+
"width",
|
|
1592
|
+
"height",
|
|
1593
|
+
"top",
|
|
1594
|
+
"left",
|
|
1595
|
+
"right",
|
|
1596
|
+
"bottom",
|
|
1597
|
+
...q
|
|
1598
|
+
]), Sr = (e) => Array.isArray(e);
|
|
1599
|
+
//#endregion
|
|
1600
|
+
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/render/utils/setters.mjs
|
|
1601
|
+
function Cr(e, t, n) {
|
|
1602
|
+
e.hasValue(t) ? e.getValue(t).set(n) : e.addValue(t, Q(n));
|
|
1603
|
+
}
|
|
1604
|
+
function wr(e) {
|
|
1605
|
+
return Sr(e) ? e[e.length - 1] || 0 : e;
|
|
1606
|
+
}
|
|
1607
|
+
function Tr(e, t) {
|
|
1608
|
+
let { transitionEnd: n = {}, transition: r = {}, ...i } = br(e, t) || {};
|
|
1609
|
+
i = {
|
|
1610
|
+
...i,
|
|
1611
|
+
...n
|
|
1612
|
+
};
|
|
1613
|
+
for (let t in i) Cr(e, t, wr(i[t]));
|
|
1614
|
+
}
|
|
1615
|
+
//#endregion
|
|
1616
|
+
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/value/utils/is-motion-value.mjs
|
|
1617
|
+
var $ = (e) => !!(e && e.getVelocity);
|
|
1618
|
+
//#endregion
|
|
1619
|
+
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/value/will-change/is.mjs
|
|
1620
|
+
function Er(e) {
|
|
1621
|
+
return !!($(e) && e.add);
|
|
1622
|
+
}
|
|
1623
|
+
//#endregion
|
|
1624
|
+
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/value/will-change/add-will-change.mjs
|
|
1625
|
+
function Dr(e, t) {
|
|
1626
|
+
let n = e.getValue("willChange");
|
|
1627
|
+
if (Er(n)) return n.add(t);
|
|
1628
|
+
if (!n && u.WillChange) {
|
|
1629
|
+
let n = new u.WillChange("auto");
|
|
1630
|
+
e.addValue("willChange", n), n.add(t);
|
|
1631
|
+
}
|
|
1632
|
+
}
|
|
1633
|
+
//#endregion
|
|
1634
|
+
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/render/dom/utils/camel-to-dash.mjs
|
|
1635
|
+
function Or(e) {
|
|
1636
|
+
return e.replace(/([A-Z])/g, (e) => `-${e.toLowerCase()}`);
|
|
1637
|
+
}
|
|
1638
|
+
var kr = "data-" + Or("framerAppearId");
|
|
1639
|
+
//#endregion
|
|
1640
|
+
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/animation/optimized-appear/get-appear-id.mjs
|
|
1641
|
+
function Ar(e) {
|
|
1642
|
+
return e.props[kr];
|
|
1643
|
+
}
|
|
1644
|
+
//#endregion
|
|
1645
|
+
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-target.mjs
|
|
1646
|
+
function jr({ protectedKeys: e, needsAnimating: t }, n) {
|
|
1647
|
+
let r = e.hasOwnProperty(n) && t[n] !== !0;
|
|
1648
|
+
return t[n] = !1, r;
|
|
1649
|
+
}
|
|
1650
|
+
function Mr(e, t, { delay: n = 0, transitionOverride: r, type: i } = {}) {
|
|
1651
|
+
let { transition: a, transitionEnd: o, ...s } = t, c = e.getDefaultTransition();
|
|
1652
|
+
a = a ? ir(a, c) : c;
|
|
1653
|
+
let l = a?.reduceMotion, u = a?.skipAnimations;
|
|
1654
|
+
r && (a = r);
|
|
1655
|
+
let d = [], f = i && e.animationState && e.animationState.getState()[i], p = a?.path;
|
|
1656
|
+
p && p.animateVisualElement(e, s, a, n, d);
|
|
1657
|
+
for (let t in s) {
|
|
1658
|
+
let r = e.getValue(t, e.latestValues[t] ?? null), i = s[t];
|
|
1659
|
+
if (i === void 0 || f && jr(f, t)) continue;
|
|
1660
|
+
let o = {
|
|
1661
|
+
delay: n,
|
|
1662
|
+
...ar(a || {}, t)
|
|
1663
|
+
};
|
|
1664
|
+
u && (o.skipAnimations = !0);
|
|
1665
|
+
let c = r.get();
|
|
1666
|
+
if (c !== void 0 && !r.isAnimating() && !Array.isArray(i) && i === c && !o.velocity) {
|
|
1667
|
+
D.update(() => r.set(i));
|
|
1668
|
+
continue;
|
|
1669
|
+
}
|
|
1670
|
+
let p = !1;
|
|
1671
|
+
if (window.MotionHandoffAnimation) {
|
|
1672
|
+
let n = Ar(e);
|
|
1673
|
+
if (n) {
|
|
1674
|
+
let e = window.MotionHandoffAnimation(n, t, D);
|
|
1675
|
+
e !== null && (o.startTime = e, p = !0);
|
|
1676
|
+
}
|
|
1677
|
+
}
|
|
1678
|
+
Dr(e, t);
|
|
1679
|
+
let m = l ?? e.shouldReduceMotion;
|
|
1680
|
+
r.start(pr(t, r, i, m && xr.has(t) ? { type: !1 } : o, e, p));
|
|
1681
|
+
let h = r.animation;
|
|
1682
|
+
h && d.push(h);
|
|
1683
|
+
}
|
|
1684
|
+
if (o) {
|
|
1685
|
+
let t = () => D.update(() => {
|
|
1686
|
+
o && Tr(e, o);
|
|
1687
|
+
});
|
|
1688
|
+
d.length ? Promise.all(d).then(t) : t();
|
|
1689
|
+
}
|
|
1690
|
+
return d;
|
|
1691
|
+
}
|
|
1692
|
+
//#endregion
|
|
1693
|
+
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/value/types/auto.mjs
|
|
1694
|
+
var Nr = {
|
|
1695
|
+
test: (e) => e === "auto",
|
|
1696
|
+
parse: (e) => e
|
|
1697
|
+
}, Pr = (e) => (t) => t.test(e), Fr = [
|
|
1698
|
+
A,
|
|
1699
|
+
L,
|
|
1700
|
+
I,
|
|
1701
|
+
F,
|
|
1702
|
+
Ke,
|
|
1703
|
+
Ge,
|
|
1704
|
+
Nr
|
|
1705
|
+
], Ir = (e) => Fr.find(Pr(e));
|
|
1706
|
+
//#endregion
|
|
1707
|
+
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/animation/keyframes/utils/is-none.mjs
|
|
1708
|
+
function Lr(e) {
|
|
1709
|
+
return typeof e == "number" ? e === 0 : e === null ? !0 : e === "none" || e === "0" || p(e);
|
|
1710
|
+
}
|
|
1711
|
+
//#endregion
|
|
1712
|
+
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/value/types/complex/filter.mjs
|
|
1713
|
+
var Rr = new Set([
|
|
1714
|
+
"brightness",
|
|
1715
|
+
"contrast",
|
|
1716
|
+
"saturate",
|
|
1717
|
+
"opacity"
|
|
1718
|
+
]);
|
|
1719
|
+
function zr(e) {
|
|
1720
|
+
let [t, n] = e.slice(0, -1).split("(");
|
|
1721
|
+
if (t === "drop-shadow") return e;
|
|
1722
|
+
let [r] = n.match(Ie) || [];
|
|
1723
|
+
if (!r) return e;
|
|
1724
|
+
let i = n.replace(r, ""), a = +!!Rr.has(t);
|
|
1725
|
+
return r !== n && (a *= 100), t + "(" + a + i + ")";
|
|
1726
|
+
}
|
|
1727
|
+
var Br = /\b([a-z-]*)\(.*?\)/gu, Vr = {
|
|
1728
|
+
...V,
|
|
1729
|
+
getAnimatableNone: (e) => {
|
|
1730
|
+
let t = e.match(Br);
|
|
1731
|
+
return t ? t.map(zr).join(" ") : e;
|
|
1732
|
+
}
|
|
1733
|
+
}, Hr = {
|
|
1734
|
+
...V,
|
|
1735
|
+
getAnimatableNone: (e) => {
|
|
1736
|
+
let t = V.parse(e);
|
|
1737
|
+
return V.createTransformer(e)(t.map((e) => typeof e == "number" ? 0 : typeof e == "object" ? {
|
|
1738
|
+
...e,
|
|
1739
|
+
alpha: 1
|
|
1740
|
+
} : e));
|
|
1741
|
+
}
|
|
1742
|
+
}, Ur = {
|
|
1743
|
+
...A,
|
|
1744
|
+
transform: Math.round
|
|
1745
|
+
}, Wr = {
|
|
1746
|
+
borderWidth: L,
|
|
1747
|
+
borderTopWidth: L,
|
|
1748
|
+
borderRightWidth: L,
|
|
1749
|
+
borderBottomWidth: L,
|
|
1750
|
+
borderLeftWidth: L,
|
|
1751
|
+
borderRadius: L,
|
|
1752
|
+
borderTopLeftRadius: L,
|
|
1753
|
+
borderTopRightRadius: L,
|
|
1754
|
+
borderBottomRightRadius: L,
|
|
1755
|
+
borderBottomLeftRadius: L,
|
|
1756
|
+
width: L,
|
|
1757
|
+
maxWidth: L,
|
|
1758
|
+
height: L,
|
|
1759
|
+
maxHeight: L,
|
|
1760
|
+
top: L,
|
|
1761
|
+
right: L,
|
|
1762
|
+
bottom: L,
|
|
1763
|
+
left: L,
|
|
1764
|
+
inset: L,
|
|
1765
|
+
insetBlock: L,
|
|
1766
|
+
insetBlockStart: L,
|
|
1767
|
+
insetBlockEnd: L,
|
|
1768
|
+
insetInline: L,
|
|
1769
|
+
insetInlineStart: L,
|
|
1770
|
+
insetInlineEnd: L,
|
|
1771
|
+
padding: L,
|
|
1772
|
+
paddingTop: L,
|
|
1773
|
+
paddingRight: L,
|
|
1774
|
+
paddingBottom: L,
|
|
1775
|
+
paddingLeft: L,
|
|
1776
|
+
paddingBlock: L,
|
|
1777
|
+
paddingBlockStart: L,
|
|
1778
|
+
paddingBlockEnd: L,
|
|
1779
|
+
paddingInline: L,
|
|
1780
|
+
paddingInlineStart: L,
|
|
1781
|
+
paddingInlineEnd: L,
|
|
1782
|
+
margin: L,
|
|
1783
|
+
marginTop: L,
|
|
1784
|
+
marginRight: L,
|
|
1785
|
+
marginBottom: L,
|
|
1786
|
+
marginLeft: L,
|
|
1787
|
+
marginBlock: L,
|
|
1788
|
+
marginBlockStart: L,
|
|
1789
|
+
marginBlockEnd: L,
|
|
1790
|
+
marginInline: L,
|
|
1791
|
+
marginInlineStart: L,
|
|
1792
|
+
marginInlineEnd: L,
|
|
1793
|
+
fontSize: L,
|
|
1794
|
+
backgroundPositionX: L,
|
|
1795
|
+
backgroundPositionY: L,
|
|
1796
|
+
rotate: F,
|
|
1797
|
+
pathRotation: F,
|
|
1798
|
+
rotateX: F,
|
|
1799
|
+
rotateY: F,
|
|
1800
|
+
rotateZ: F,
|
|
1801
|
+
scale: Fe,
|
|
1802
|
+
scaleX: Fe,
|
|
1803
|
+
scaleY: Fe,
|
|
1804
|
+
scaleZ: Fe,
|
|
1805
|
+
skew: F,
|
|
1806
|
+
skewX: F,
|
|
1807
|
+
skewY: F,
|
|
1808
|
+
distance: L,
|
|
1809
|
+
translateX: L,
|
|
1810
|
+
translateY: L,
|
|
1811
|
+
translateZ: L,
|
|
1812
|
+
x: L,
|
|
1813
|
+
y: L,
|
|
1814
|
+
z: L,
|
|
1815
|
+
perspective: L,
|
|
1816
|
+
transformPerspective: L,
|
|
1817
|
+
opacity: j,
|
|
1818
|
+
originX: qe,
|
|
1819
|
+
originY: qe,
|
|
1820
|
+
originZ: L,
|
|
1821
|
+
zIndex: Ur,
|
|
1822
|
+
fillOpacity: j,
|
|
1823
|
+
strokeOpacity: j,
|
|
1824
|
+
numOctaves: Ur
|
|
1825
|
+
}, Gr = {
|
|
1826
|
+
...Wr,
|
|
1827
|
+
color: z,
|
|
1828
|
+
backgroundColor: z,
|
|
1829
|
+
outlineColor: z,
|
|
1830
|
+
fill: z,
|
|
1831
|
+
stroke: z,
|
|
1832
|
+
borderColor: z,
|
|
1833
|
+
borderTopColor: z,
|
|
1834
|
+
borderRightColor: z,
|
|
1835
|
+
borderBottomColor: z,
|
|
1836
|
+
borderLeftColor: z,
|
|
1837
|
+
filter: Vr,
|
|
1838
|
+
WebkitFilter: Vr,
|
|
1839
|
+
mask: Hr,
|
|
1840
|
+
WebkitMask: Hr
|
|
1841
|
+
}, Kr = (e) => Gr[e], qr = /* @__PURE__ */ new Set([Vr, Hr]);
|
|
1842
|
+
function Jr(e, t) {
|
|
1843
|
+
let n = Kr(e);
|
|
1844
|
+
return qr.has(n) || (n = V), n.getAnimatableNone ? n.getAnimatableNone(t) : void 0;
|
|
1845
|
+
}
|
|
1846
|
+
//#endregion
|
|
1847
|
+
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/animation/keyframes/utils/make-none-animatable.mjs
|
|
1848
|
+
var Yr = new Set([
|
|
1849
|
+
"auto",
|
|
1850
|
+
"none",
|
|
1851
|
+
"0"
|
|
1852
|
+
]);
|
|
1853
|
+
function Xr(e, t, n) {
|
|
1854
|
+
let r = 0, i;
|
|
1855
|
+
for (; r < e.length && !i;) {
|
|
1856
|
+
let t = e[r];
|
|
1857
|
+
typeof t == "string" && !Yr.has(t) && B(t).values.length && (i = e[r]), r++;
|
|
1858
|
+
}
|
|
1859
|
+
if (i && n) for (let r of t) e[r] = Jr(n, i);
|
|
1860
|
+
}
|
|
1861
|
+
//#endregion
|
|
1862
|
+
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/animation/keyframes/DOMKeyframesResolver.mjs
|
|
1863
|
+
var Zr = class extends wn {
|
|
1864
|
+
constructor(e, t, n, r, i) {
|
|
1865
|
+
super(e, t, n, r, i, !0);
|
|
1866
|
+
}
|
|
1867
|
+
readKeyframes() {
|
|
1868
|
+
let { unresolvedKeyframes: e, element: t, name: n } = this;
|
|
1869
|
+
if (!t || !t.current) return;
|
|
1870
|
+
super.readKeyframes();
|
|
1871
|
+
for (let n = 0; n < e.length; n++) {
|
|
1872
|
+
let r = e[n];
|
|
1873
|
+
if (typeof r == "string" && (r = r.trim(), Me(r))) {
|
|
1874
|
+
let i = _r(r, t.current);
|
|
1875
|
+
i !== void 0 && (e[n] = i), n === e.length - 1 && (this.finalKeyframe = r);
|
|
1876
|
+
}
|
|
1877
|
+
}
|
|
1878
|
+
if (this.resolveNoneKeyframes(), !xr.has(n) || e.length !== 2) return;
|
|
1879
|
+
let [r, i] = e, a = Ir(r), o = Ir(i);
|
|
1880
|
+
if (Pe(r) !== Pe(i) && Y[n]) {
|
|
1881
|
+
this.needsMeasurement = !0;
|
|
1882
|
+
return;
|
|
1883
|
+
}
|
|
1884
|
+
if (a !== o) if (mn(a) && mn(o)) for (let t = 0; t < e.length; t++) {
|
|
1885
|
+
let n = e[t];
|
|
1886
|
+
typeof n == "string" && (e[t] = parseFloat(n));
|
|
1887
|
+
}
|
|
1888
|
+
else Y[n] && (this.needsMeasurement = !0);
|
|
1889
|
+
}
|
|
1890
|
+
resolveNoneKeyframes() {
|
|
1891
|
+
let { unresolvedKeyframes: e, name: t } = this, n = [];
|
|
1892
|
+
for (let t = 0; t < e.length; t++) (e[t] === null || Lr(e[t])) && n.push(t);
|
|
1893
|
+
n.length && Xr(e, n, t);
|
|
1894
|
+
}
|
|
1895
|
+
measureInitialState() {
|
|
1896
|
+
let { element: e, unresolvedKeyframes: t, name: n } = this;
|
|
1897
|
+
if (!e || !e.current) return;
|
|
1898
|
+
n === "height" && (this.suspendedScrollY = window.pageYOffset), this.measuredOrigin = Y[n](e.measureViewportBox(), window.getComputedStyle(e.current)), t[0] = this.measuredOrigin;
|
|
1899
|
+
let r = t[t.length - 1];
|
|
1900
|
+
r !== void 0 && e.getValue(n, r).jump(r, !1);
|
|
1901
|
+
}
|
|
1902
|
+
measureEndState() {
|
|
1903
|
+
let { element: e, name: t, unresolvedKeyframes: n } = this;
|
|
1904
|
+
if (!e || !e.current) return;
|
|
1905
|
+
let r = e.getValue(t);
|
|
1906
|
+
r && r.jump(this.measuredOrigin, !1);
|
|
1907
|
+
let i = n.length - 1, a = n[i];
|
|
1908
|
+
n[i] = Y[t](e.measureViewportBox(), window.getComputedStyle(e.current)), a !== null && this.finalKeyframe === void 0 && (this.finalKeyframe = a), this.removedTransforms?.length && this.removedTransforms.forEach(([t, n]) => {
|
|
1909
|
+
e.getValue(t).set(n);
|
|
1910
|
+
}), this.resolveNoneKeyframes();
|
|
1911
|
+
}
|
|
1912
|
+
};
|
|
1913
|
+
//#endregion
|
|
1914
|
+
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/utils/resolve-elements.mjs
|
|
1915
|
+
function Qr(e, t, n) {
|
|
1916
|
+
if (e == null) return [];
|
|
1917
|
+
if (e instanceof EventTarget) return [e];
|
|
1918
|
+
if (typeof e == "string") {
|
|
1919
|
+
let r = document;
|
|
1920
|
+
t && (r = t.current);
|
|
1921
|
+
let i = n?.[e] ?? r.querySelectorAll(e);
|
|
1922
|
+
return i ? Array.from(i) : [];
|
|
1923
|
+
}
|
|
1924
|
+
return Array.from(e).filter((e) => e != null);
|
|
1925
|
+
}
|
|
1926
|
+
//#endregion
|
|
1927
|
+
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/value/types/utils/get-as-type.mjs
|
|
1928
|
+
var $r = (e, t) => t && typeof e == "number" ? t.transform(e) : e, { schedule: ei, cancel: ti } = /* @__PURE__ */ Ce(queueMicrotask, !1);
|
|
1929
|
+
//#endregion
|
|
1930
|
+
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/utils/is-svg-element.mjs
|
|
1931
|
+
function ni(e) {
|
|
1932
|
+
return f(e) && "ownerSVGElement" in e;
|
|
1933
|
+
}
|
|
1934
|
+
//#endregion
|
|
1935
|
+
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/utils/is-svg-svg-element.mjs
|
|
1936
|
+
function ri(e) {
|
|
1937
|
+
return ni(e) && e.tagName === "svg";
|
|
1938
|
+
}
|
|
1939
|
+
//#endregion
|
|
1940
|
+
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/value/types/utils/find.mjs
|
|
1941
|
+
var ii = [
|
|
1942
|
+
...Fr,
|
|
1943
|
+
z,
|
|
1944
|
+
V
|
|
1945
|
+
], ai = (e) => ii.find(Pr(e)), oi = () => ({
|
|
1946
|
+
translate: 0,
|
|
1947
|
+
scale: 1,
|
|
1948
|
+
origin: 0,
|
|
1949
|
+
originPoint: 0
|
|
1950
|
+
}), si = () => ({
|
|
1951
|
+
x: oi(),
|
|
1952
|
+
y: oi()
|
|
1953
|
+
}), ci = () => ({
|
|
1954
|
+
min: 0,
|
|
1955
|
+
max: 0
|
|
1956
|
+
}), li = () => ({
|
|
1957
|
+
x: ci(),
|
|
1958
|
+
y: ci()
|
|
1959
|
+
}), ui = /* @__PURE__ */ new WeakMap();
|
|
1960
|
+
//#endregion
|
|
1961
|
+
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/render/utils/is-animation-controls.mjs
|
|
1962
|
+
function di(e) {
|
|
1963
|
+
return typeof e == "object" && !!e && typeof e.start == "function";
|
|
1964
|
+
}
|
|
1965
|
+
//#endregion
|
|
1966
|
+
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/render/utils/is-variant-label.mjs
|
|
1967
|
+
function fi(e) {
|
|
1968
|
+
return typeof e == "string" || Array.isArray(e);
|
|
1969
|
+
}
|
|
1970
|
+
//#endregion
|
|
1971
|
+
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/render/utils/variant-props.mjs
|
|
1972
|
+
var pi = [
|
|
1973
|
+
"animate",
|
|
1974
|
+
"whileInView",
|
|
1975
|
+
"whileFocus",
|
|
1976
|
+
"whileHover",
|
|
1977
|
+
"whileTap",
|
|
1978
|
+
"whileDrag",
|
|
1979
|
+
"exit"
|
|
1980
|
+
], mi = ["initial", ...pi];
|
|
1981
|
+
//#endregion
|
|
1982
|
+
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/render/utils/is-controlling-variants.mjs
|
|
1983
|
+
function hi(e) {
|
|
1984
|
+
return di(e.animate) || mi.some((t) => fi(e[t]));
|
|
1985
|
+
}
|
|
1986
|
+
function gi(e) {
|
|
1987
|
+
return !!(hi(e) || e.variants);
|
|
1988
|
+
}
|
|
1989
|
+
//#endregion
|
|
1990
|
+
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/render/utils/motion-values.mjs
|
|
1991
|
+
function _i(e, t, n) {
|
|
1992
|
+
for (let r in t) {
|
|
1993
|
+
let i = t[r], a = n[r];
|
|
1994
|
+
if ($(i)) e.addValue(r, i);
|
|
1995
|
+
else if ($(a)) e.addValue(r, Q(i, { owner: e }));
|
|
1996
|
+
else if (a !== i) if (e.hasValue(r)) {
|
|
1997
|
+
let t = e.getValue(r);
|
|
1998
|
+
t.liveStyle === !0 ? t.jump(i) : t.hasAnimated || t.set(i);
|
|
1999
|
+
} else {
|
|
2000
|
+
let t = e.getStaticValue(r);
|
|
2001
|
+
e.addValue(r, Q(t === void 0 ? i : t, { owner: e }));
|
|
2002
|
+
}
|
|
2003
|
+
}
|
|
2004
|
+
for (let r in n) t[r] === void 0 && e.removeValue(r);
|
|
2005
|
+
return t;
|
|
2006
|
+
}
|
|
2007
|
+
//#endregion
|
|
2008
|
+
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/render/utils/reduced-motion/state.mjs
|
|
2009
|
+
var vi = { current: null }, yi = { current: !1 }, bi = typeof window < "u";
|
|
2010
|
+
function xi() {
|
|
2011
|
+
if (yi.current = !0, bi) if (window.matchMedia) {
|
|
2012
|
+
let e = window.matchMedia("(prefers-reduced-motion)"), t = () => vi.current = e.matches;
|
|
2013
|
+
e.addEventListener("change", t), t();
|
|
2014
|
+
} else vi.current = !1;
|
|
2015
|
+
}
|
|
2016
|
+
//#endregion
|
|
2017
|
+
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/render/VisualElement.mjs
|
|
2018
|
+
var Si = [
|
|
2019
|
+
"AnimationStart",
|
|
2020
|
+
"AnimationComplete",
|
|
2021
|
+
"Update",
|
|
2022
|
+
"BeforeLayoutMeasure",
|
|
2023
|
+
"LayoutMeasure",
|
|
2024
|
+
"LayoutAnimationStart",
|
|
2025
|
+
"LayoutAnimationComplete"
|
|
2026
|
+
], Ci = {};
|
|
2027
|
+
function wi(e) {
|
|
2028
|
+
Ci = e;
|
|
2029
|
+
}
|
|
2030
|
+
function Ti() {
|
|
2031
|
+
return Ci;
|
|
2032
|
+
}
|
|
2033
|
+
var Ei = class {
|
|
2034
|
+
scrapeMotionValuesFromProps(e, t, n) {
|
|
2035
|
+
return {};
|
|
2036
|
+
}
|
|
2037
|
+
constructor({ parent: e, props: t, presenceContext: n, reducedMotionConfig: r, skipAnimations: i, blockInitialAnimation: a, visualState: o }, s = {}) {
|
|
2038
|
+
this.current = null, this.children = /* @__PURE__ */ new Set(), this.isVariantNode = !1, this.isControllingVariants = !1, this.shouldReduceMotion = null, this.shouldSkipAnimations = !1, this.values = /* @__PURE__ */ new Map(), this.KeyframeResolver = wn, this.features = {}, this.valueSubscriptions = /* @__PURE__ */ new Map(), this.prevMotionValues = {}, this.hasBeenMounted = !1, this.events = {}, this.propEventSubscriptions = {}, this.notifyUpdate = () => this.notify("Update", this.latestValues), this.render = () => {
|
|
2039
|
+
this.current && (this.triggerBuild(), this.renderInstance(this.current, this.renderState, this.props.style, this.projection));
|
|
2040
|
+
}, this.renderScheduledAt = 0, this.scheduleRender = () => {
|
|
2041
|
+
let e = k.now();
|
|
2042
|
+
this.renderScheduledAt < e && (this.renderScheduledAt = e, D.render(this.render, !1, !0));
|
|
2043
|
+
};
|
|
2044
|
+
let { latestValues: c, renderState: l } = o;
|
|
2045
|
+
this.latestValues = c, this.baseTarget = { ...c }, this.initialValues = t.initial ? { ...c } : {}, this.renderState = l, this.parent = e, this.props = t, this.presenceContext = n, this.depth = e ? e.depth + 1 : 0, this.reducedMotionConfig = r, this.skipAnimationsConfig = i, this.options = s, this.blockInitialAnimation = !!a, this.isControllingVariants = hi(t), this.isVariantNode = gi(t), this.isVariantNode && (this.variantChildren = /* @__PURE__ */ new Set()), this.manuallyAnimateOnMount = !!(e && e.current);
|
|
2046
|
+
let { willChange: u, ...d } = this.scrapeMotionValuesFromProps(t, {}, this);
|
|
2047
|
+
for (let e in d) {
|
|
2048
|
+
let t = d[e];
|
|
2049
|
+
c[e] !== void 0 && $(t) && t.set(c[e]);
|
|
2050
|
+
}
|
|
2051
|
+
}
|
|
2052
|
+
mount(e) {
|
|
2053
|
+
if (this.hasBeenMounted) for (let e in this.initialValues) this.values.get(e)?.jump(this.initialValues[e]), this.latestValues[e] = this.initialValues[e];
|
|
2054
|
+
this.current = e, ui.set(e, this), this.projection && !this.projection.instance && this.projection.mount(e), this.parent && this.isVariantNode && !this.isControllingVariants && (this.removeFromVariantTree = this.parent.addVariantChild(this)), this.values.forEach((e, t) => this.bindToMotionValue(t, e)), this.reducedMotionConfig === "never" ? this.shouldReduceMotion = !1 : this.reducedMotionConfig === "always" ? this.shouldReduceMotion = !0 : (yi.current || xi(), this.shouldReduceMotion = vi.current), process.env.NODE_ENV !== "production" && C(this.shouldReduceMotion !== !0, "You have Reduced Motion enabled on your device. Animations may not appear as expected.", "reduced-motion-disabled"), this.shouldSkipAnimations = this.skipAnimationsConfig ?? !1, this.parent?.addChild(this), this.update(this.props, this.presenceContext), this.hasBeenMounted = !0;
|
|
2055
|
+
}
|
|
2056
|
+
unmount() {
|
|
2057
|
+
this.projection && this.projection.unmount(), we(this.notifyUpdate), we(this.render), this.valueSubscriptions.forEach((e) => e()), this.valueSubscriptions.clear(), this.removeFromVariantTree && this.removeFromVariantTree(), this.parent?.removeChild(this);
|
|
2058
|
+
for (let e in this.events) this.events[e].clear();
|
|
2059
|
+
for (let e in this.features) {
|
|
2060
|
+
let t = this.features[e];
|
|
2061
|
+
t && (t.unmount(), t.isMounted = !1);
|
|
2062
|
+
}
|
|
2063
|
+
this.current = null;
|
|
2064
|
+
}
|
|
2065
|
+
addChild(e) {
|
|
2066
|
+
this.children.add(e), this.enteringChildren ??= /* @__PURE__ */ new Set(), this.enteringChildren.add(e);
|
|
2067
|
+
}
|
|
2068
|
+
removeChild(e) {
|
|
2069
|
+
this.children.delete(e), this.enteringChildren && this.enteringChildren.delete(e);
|
|
2070
|
+
}
|
|
2071
|
+
bindToMotionValue(e, t) {
|
|
2072
|
+
if (this.valueSubscriptions.has(e) && this.valueSubscriptions.get(e)(), t.accelerate && Kn.has(e) && this.current instanceof HTMLElement) {
|
|
2073
|
+
let { factory: n, keyframes: r, times: i, ease: a, duration: o } = t.accelerate, s = new In({
|
|
2074
|
+
element: this.current,
|
|
2075
|
+
name: e,
|
|
2076
|
+
keyframes: r,
|
|
2077
|
+
times: i,
|
|
2078
|
+
ease: a,
|
|
2079
|
+
duration: /* @__PURE__ */ y(o)
|
|
2080
|
+
}), c = n(s);
|
|
2081
|
+
this.valueSubscriptions.set(e, () => {
|
|
2082
|
+
c(), s.cancel();
|
|
2083
|
+
});
|
|
2084
|
+
return;
|
|
2085
|
+
}
|
|
2086
|
+
let n = J.has(e);
|
|
2087
|
+
n && this.onBindTransform && this.onBindTransform();
|
|
2088
|
+
let r = t.on("change", (t) => {
|
|
2089
|
+
this.latestValues[e] = t, this.props.onUpdate && D.preRender(this.notifyUpdate), n && this.projection && (this.projection.isTransformDirty = !0), this.scheduleRender();
|
|
2090
|
+
}), i;
|
|
2091
|
+
typeof window < "u" && window.MotionCheckAppearSync && (i = window.MotionCheckAppearSync(this, e, t)), this.valueSubscriptions.set(e, () => {
|
|
2092
|
+
r(), i && i();
|
|
2093
|
+
});
|
|
2094
|
+
}
|
|
2095
|
+
sortNodePosition(e) {
|
|
2096
|
+
return !this.current || !this.sortInstanceNodePosition || this.type !== e.type ? 0 : this.sortInstanceNodePosition(this.current, e.current);
|
|
2097
|
+
}
|
|
2098
|
+
updateFeatures() {
|
|
2099
|
+
let e = "animation";
|
|
2100
|
+
for (e in Ci) {
|
|
2101
|
+
let t = Ci[e];
|
|
2102
|
+
if (!t) continue;
|
|
2103
|
+
let { isEnabled: n, Feature: r } = t;
|
|
2104
|
+
if (!this.features[e] && r && n(this.props) && (this.features[e] = new r(this)), this.features[e]) {
|
|
2105
|
+
let t = this.features[e];
|
|
2106
|
+
t.isMounted ? t.update() : (t.mount(), t.isMounted = !0);
|
|
2107
|
+
}
|
|
2108
|
+
}
|
|
2109
|
+
}
|
|
2110
|
+
triggerBuild() {
|
|
2111
|
+
this.build(this.renderState, this.latestValues, this.props);
|
|
2112
|
+
}
|
|
2113
|
+
measureViewportBox() {
|
|
2114
|
+
return this.current ? this.measureInstanceViewportBox(this.current, this.props) : li();
|
|
2115
|
+
}
|
|
2116
|
+
getStaticValue(e) {
|
|
2117
|
+
return this.latestValues[e];
|
|
2118
|
+
}
|
|
2119
|
+
setStaticValue(e, t) {
|
|
2120
|
+
this.latestValues[e] = t;
|
|
2121
|
+
}
|
|
2122
|
+
update(e, t) {
|
|
2123
|
+
(e.transformTemplate || this.props.transformTemplate) && this.scheduleRender(), this.prevProps = this.props, this.props = e, this.prevPresenceContext = this.presenceContext, this.presenceContext = t;
|
|
2124
|
+
for (let t = 0; t < Si.length; t++) {
|
|
2125
|
+
let n = Si[t];
|
|
2126
|
+
this.propEventSubscriptions[n] && (this.propEventSubscriptions[n](), delete this.propEventSubscriptions[n]);
|
|
2127
|
+
let r = e["on" + n];
|
|
2128
|
+
r && (this.propEventSubscriptions[n] = this.on(n, r));
|
|
2129
|
+
}
|
|
2130
|
+
this.prevMotionValues = _i(this, this.scrapeMotionValuesFromProps(e, this.prevProps || {}, this), this.prevMotionValues), this.handleChildMotionValue && this.handleChildMotionValue();
|
|
2131
|
+
}
|
|
2132
|
+
getProps() {
|
|
2133
|
+
return this.props;
|
|
2134
|
+
}
|
|
2135
|
+
getVariant(e) {
|
|
2136
|
+
return this.props.variants ? this.props.variants[e] : void 0;
|
|
2137
|
+
}
|
|
2138
|
+
getDefaultTransition() {
|
|
2139
|
+
return this.props.transition;
|
|
2140
|
+
}
|
|
2141
|
+
getTransformPagePoint() {
|
|
2142
|
+
return this.props.transformPagePoint;
|
|
2143
|
+
}
|
|
2144
|
+
getClosestVariantNode() {
|
|
2145
|
+
return this.isVariantNode ? this : this.parent ? this.parent.getClosestVariantNode() : void 0;
|
|
2146
|
+
}
|
|
2147
|
+
addVariantChild(e) {
|
|
2148
|
+
let t = this.getClosestVariantNode();
|
|
2149
|
+
if (t) return t.variantChildren && t.variantChildren.add(e), () => t.variantChildren.delete(e);
|
|
2150
|
+
}
|
|
2151
|
+
addValue(e, t) {
|
|
2152
|
+
let n = this.values.get(e);
|
|
2153
|
+
t !== n && (n && this.removeValue(e), this.bindToMotionValue(e, t), this.values.set(e, t), this.latestValues[e] = t.get());
|
|
2154
|
+
}
|
|
2155
|
+
removeValue(e) {
|
|
2156
|
+
this.values.delete(e);
|
|
2157
|
+
let t = this.valueSubscriptions.get(e);
|
|
2158
|
+
t && (t(), this.valueSubscriptions.delete(e)), delete this.latestValues[e], this.removeValueFromRenderState(e, this.renderState);
|
|
2159
|
+
}
|
|
2160
|
+
hasValue(e) {
|
|
2161
|
+
return this.values.has(e);
|
|
2162
|
+
}
|
|
2163
|
+
getValue(e, t) {
|
|
2164
|
+
if (this.props.values && this.props.values[e]) return this.props.values[e];
|
|
2165
|
+
let n = this.values.get(e);
|
|
2166
|
+
return n === void 0 && t !== void 0 && (n = Q(t === null ? void 0 : t, { owner: this }), this.addValue(e, n)), n;
|
|
2167
|
+
}
|
|
2168
|
+
readValue(e, t) {
|
|
2169
|
+
let n = this.latestValues[e] !== void 0 || !this.current ? this.latestValues[e] : this.getBaseTargetFromProps(this.props, e) ?? this.readValueFromInstance(this.current, e, this.options);
|
|
2170
|
+
return n != null && (typeof n == "string" && (d(n) || p(n)) ? n = parseFloat(n) : !ai(n) && V.test(t) && (n = Jr(e, t)), this.setBaseTarget(e, $(n) ? n.get() : n)), $(n) ? n.get() : n;
|
|
2171
|
+
}
|
|
2172
|
+
setBaseTarget(e, t) {
|
|
2173
|
+
this.baseTarget[e] = t;
|
|
2174
|
+
}
|
|
2175
|
+
getBaseTarget(e) {
|
|
2176
|
+
let { initial: t } = this.props, n;
|
|
2177
|
+
if (typeof t == "string" || typeof t == "object") {
|
|
2178
|
+
let r = yr(this.props, t, this.presenceContext?.custom);
|
|
2179
|
+
r && (n = r[e]);
|
|
2180
|
+
}
|
|
2181
|
+
if (t && n !== void 0) return n;
|
|
2182
|
+
let r = this.getBaseTargetFromProps(this.props, e);
|
|
2183
|
+
return r !== void 0 && !$(r) ? r : this.initialValues[e] !== void 0 && n === void 0 ? void 0 : this.baseTarget[e];
|
|
2184
|
+
}
|
|
2185
|
+
on(e, t) {
|
|
2186
|
+
return this.events[e] || (this.events[e] = new v()), this.events[e].add(t);
|
|
2187
|
+
}
|
|
2188
|
+
notify(e, ...t) {
|
|
2189
|
+
this.events[e] && this.events[e].notify(...t);
|
|
2190
|
+
}
|
|
2191
|
+
scheduleRenderMicrotask() {
|
|
2192
|
+
ei.render(this.render);
|
|
2193
|
+
}
|
|
2194
|
+
}, Di = class extends Ei {
|
|
2195
|
+
constructor() {
|
|
2196
|
+
super(...arguments), this.KeyframeResolver = Zr;
|
|
2197
|
+
}
|
|
2198
|
+
sortInstanceNodePosition(e, t) {
|
|
2199
|
+
return e.compareDocumentPosition(t) & 2 ? 1 : -1;
|
|
2200
|
+
}
|
|
2201
|
+
getBaseTargetFromProps(e, t) {
|
|
2202
|
+
let n = e.style;
|
|
2203
|
+
return n ? n[t] : void 0;
|
|
2204
|
+
}
|
|
2205
|
+
removeValueFromRenderState(e, { vars: t, style: n }) {
|
|
2206
|
+
delete t[e], delete n[e];
|
|
2207
|
+
}
|
|
2208
|
+
handleChildMotionValue() {
|
|
2209
|
+
this.childSubscription && (this.childSubscription(), delete this.childSubscription);
|
|
2210
|
+
let { children: e } = this.props;
|
|
2211
|
+
$(e) && (this.childSubscription = e.on("change", (e) => {
|
|
2212
|
+
this.current && (this.current.textContent = `${e}`);
|
|
2213
|
+
}));
|
|
2214
|
+
}
|
|
2215
|
+
};
|
|
2216
|
+
//#endregion
|
|
2217
|
+
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/projection/geometry/conversion.mjs
|
|
2218
|
+
function Oi({ top: e, left: t, right: n, bottom: r }) {
|
|
2219
|
+
return {
|
|
2220
|
+
x: {
|
|
2221
|
+
min: t,
|
|
2222
|
+
max: n
|
|
2223
|
+
},
|
|
2224
|
+
y: {
|
|
2225
|
+
min: e,
|
|
2226
|
+
max: r
|
|
2227
|
+
}
|
|
2228
|
+
};
|
|
2229
|
+
}
|
|
2230
|
+
function ki({ x: e, y: t }) {
|
|
2231
|
+
return {
|
|
2232
|
+
top: t.min,
|
|
2233
|
+
right: e.max,
|
|
2234
|
+
bottom: t.max,
|
|
2235
|
+
left: e.min
|
|
2236
|
+
};
|
|
2237
|
+
}
|
|
2238
|
+
function Ai(e, t) {
|
|
2239
|
+
if (!t) return e;
|
|
2240
|
+
let n = t({
|
|
2241
|
+
x: e.left,
|
|
2242
|
+
y: e.top
|
|
2243
|
+
}), r = t({
|
|
2244
|
+
x: e.right,
|
|
2245
|
+
y: e.bottom
|
|
2246
|
+
});
|
|
2247
|
+
return {
|
|
2248
|
+
top: n.y,
|
|
2249
|
+
left: n.x,
|
|
2250
|
+
bottom: r.y,
|
|
2251
|
+
right: r.x
|
|
2252
|
+
};
|
|
2253
|
+
}
|
|
2254
|
+
//#endregion
|
|
2255
|
+
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/projection/utils/has-transform.mjs
|
|
2256
|
+
function ji(e) {
|
|
2257
|
+
return e === void 0 || e === 1;
|
|
2258
|
+
}
|
|
2259
|
+
function Mi({ scale: e, scaleX: t, scaleY: n }) {
|
|
2260
|
+
return !ji(e) || !ji(t) || !ji(n);
|
|
2261
|
+
}
|
|
2262
|
+
function Ni(e) {
|
|
2263
|
+
return Mi(e) || Pi(e) || e.z || e.rotate || e.rotateX || e.rotateY || e.skewX || e.skewY;
|
|
2264
|
+
}
|
|
2265
|
+
function Pi(e) {
|
|
2266
|
+
return Fi(e.x) || Fi(e.y);
|
|
2267
|
+
}
|
|
2268
|
+
function Fi(e) {
|
|
2269
|
+
return e && e !== "0%";
|
|
2270
|
+
}
|
|
2271
|
+
//#endregion
|
|
2272
|
+
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/projection/geometry/delta-apply.mjs
|
|
2273
|
+
function Ii(e, t, n) {
|
|
2274
|
+
return n + t * (e - n);
|
|
2275
|
+
}
|
|
2276
|
+
function Li(e, t, n, r, i) {
|
|
2277
|
+
return i !== void 0 && (e = Ii(e, i, r)), Ii(e, n, r) + t;
|
|
2278
|
+
}
|
|
2279
|
+
function Ri(e, t = 0, n = 1, r, i) {
|
|
2280
|
+
e.min = Li(e.min, t, n, r, i), e.max = Li(e.max, t, n, r, i);
|
|
2281
|
+
}
|
|
2282
|
+
function zi(e, { x: t, y: n }) {
|
|
2283
|
+
Ri(e.x, t.translate, t.scale, t.originPoint), Ri(e.y, n.translate, n.scale, n.originPoint);
|
|
2284
|
+
}
|
|
2285
|
+
var Bi = .999999999999, Vi = 1.0000000000001;
|
|
2286
|
+
function Hi(e, t, n, r = !1) {
|
|
2287
|
+
let i = n.length;
|
|
2288
|
+
if (!i) return;
|
|
2289
|
+
t.x = t.y = 1;
|
|
2290
|
+
let a, o;
|
|
2291
|
+
for (let s = 0; s < i; s++) {
|
|
2292
|
+
a = n[s], o = a.projectionDelta;
|
|
2293
|
+
let { visualElement: i } = a.options;
|
|
2294
|
+
i && i.props.style && i.props.style.display === "contents" || (r && a.options.layoutScroll && a.scroll && a !== a.root && (Ui(e.x, -a.scroll.offset.x), Ui(e.y, -a.scroll.offset.y)), o && (t.x *= o.x.scale, t.y *= o.y.scale, zi(e, o)), r && Ni(a.latestValues) && Ki(e, a.latestValues, a.layout?.layoutBox));
|
|
2295
|
+
}
|
|
2296
|
+
t.x < Vi && t.x > Bi && (t.x = 1), t.y < Vi && t.y > Bi && (t.y = 1);
|
|
2297
|
+
}
|
|
2298
|
+
function Ui(e, t) {
|
|
2299
|
+
e.min += t, e.max += t;
|
|
2300
|
+
}
|
|
2301
|
+
function Wi(e, t, n, r, i = .5) {
|
|
2302
|
+
Ri(e, t, n, H(e.min, e.max, i), r);
|
|
2303
|
+
}
|
|
2304
|
+
function Gi(e, t) {
|
|
2305
|
+
return typeof e == "string" ? parseFloat(e) / 100 * (t.max - t.min) : e;
|
|
2306
|
+
}
|
|
2307
|
+
function Ki(e, t, n) {
|
|
2308
|
+
let r = n ?? e;
|
|
2309
|
+
Wi(e.x, Gi(t.x, r.x), t.scaleX, t.scale, t.originX), Wi(e.y, Gi(t.y, r.y), t.scaleY, t.scale, t.originY);
|
|
2310
|
+
}
|
|
2311
|
+
//#endregion
|
|
2312
|
+
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/projection/utils/measure.mjs
|
|
2313
|
+
function qi(e, t) {
|
|
2314
|
+
return Oi(Ai(e.getBoundingClientRect(), t));
|
|
2315
|
+
}
|
|
2316
|
+
function Ji(e, t, n) {
|
|
2317
|
+
let r = qi(e, n), { scroll: i } = t;
|
|
2318
|
+
return i && (Ui(r.x, i.offset.x), Ui(r.y, i.offset.y)), r;
|
|
2319
|
+
}
|
|
2320
|
+
//#endregion
|
|
2321
|
+
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/render/html/utils/build-transform.mjs
|
|
2322
|
+
var Yi = {
|
|
2323
|
+
x: "translateX",
|
|
2324
|
+
y: "translateY",
|
|
2325
|
+
z: "translateZ",
|
|
2326
|
+
transformPerspective: "perspective"
|
|
2327
|
+
}, Xi = q.length;
|
|
2328
|
+
function Zi(e, t, n) {
|
|
2329
|
+
let r = "", i = !0;
|
|
2330
|
+
for (let a = 0; a < Xi; a++) {
|
|
2331
|
+
let o = q[a], s = e[o];
|
|
2332
|
+
if (s === void 0) continue;
|
|
2333
|
+
let c = !0;
|
|
2334
|
+
if (typeof s == "number") c = s === +!!o.startsWith("scale");
|
|
2335
|
+
else {
|
|
2336
|
+
let e = parseFloat(s);
|
|
2337
|
+
c = o.startsWith("scale") ? e === 1 : e === 0;
|
|
2338
|
+
}
|
|
2339
|
+
if (!c || n) {
|
|
2340
|
+
let e = $r(s, Wr[o]);
|
|
2341
|
+
if (!c) {
|
|
2342
|
+
i = !1;
|
|
2343
|
+
let t = Yi[o] || o;
|
|
2344
|
+
r += `${t}(${e}) `;
|
|
2345
|
+
}
|
|
2346
|
+
n && (t[o] = e);
|
|
2347
|
+
}
|
|
2348
|
+
}
|
|
2349
|
+
let a = e.pathRotation;
|
|
2350
|
+
return a && (i = !1, r += `rotate(${$r(a, Wr.pathRotation)}) `), r = r.trim(), n ? r = n(t, i ? "" : r) : i && (r = "none"), r;
|
|
2351
|
+
}
|
|
2352
|
+
//#endregion
|
|
2353
|
+
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/render/html/utils/build-styles.mjs
|
|
2354
|
+
function Qi(e, t, n) {
|
|
2355
|
+
let { style: r, vars: i, transformOrigin: a } = e, o = !1, s = !1;
|
|
2356
|
+
for (let e in t) {
|
|
2357
|
+
let n = t[e];
|
|
2358
|
+
if (J.has(e)) {
|
|
2359
|
+
o = !0;
|
|
2360
|
+
continue;
|
|
2361
|
+
} else if (Ae(e)) {
|
|
2362
|
+
i[e] = n;
|
|
2363
|
+
continue;
|
|
2364
|
+
} else {
|
|
2365
|
+
let t = $r(n, Wr[e]);
|
|
2366
|
+
e.startsWith("origin") ? (s = !0, a[e] = t) : r[e] = t;
|
|
2367
|
+
}
|
|
2368
|
+
}
|
|
2369
|
+
if (t.transform || (o || n ? r.transform = Zi(t, e.transform, n) : r.transform &&= "none"), s) {
|
|
2370
|
+
let { originX: e = "50%", originY: t = "50%", originZ: n = 0 } = a;
|
|
2371
|
+
r.transformOrigin = `${e} ${t} ${n}`;
|
|
2372
|
+
}
|
|
2373
|
+
}
|
|
2374
|
+
//#endregion
|
|
2375
|
+
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/render/html/utils/render.mjs
|
|
2376
|
+
function $i(e, { style: t, vars: n }, r, i) {
|
|
2377
|
+
let a = e.style, o;
|
|
2378
|
+
for (o in t) a[o] = t[o];
|
|
2379
|
+
for (o in i?.applyProjectionStyles(a, r), n) a.setProperty(o, n[o]);
|
|
2380
|
+
}
|
|
2381
|
+
//#endregion
|
|
2382
|
+
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/projection/styles/scale-border-radius.mjs
|
|
2383
|
+
function ea(e, t) {
|
|
2384
|
+
return t.max === t.min ? 0 : e / (t.max - t.min) * 100;
|
|
2385
|
+
}
|
|
2386
|
+
var ta = { correct: (e, t) => {
|
|
2387
|
+
if (!t.target) return e;
|
|
2388
|
+
if (typeof e == "string") if (L.test(e)) e = parseFloat(e);
|
|
2389
|
+
else return e;
|
|
2390
|
+
return `${ea(e, t.target.x)}% ${ea(e, t.target.y)}%`;
|
|
2391
|
+
} }, na = { correct: (e, { treeScale: t, projectionDelta: n }) => {
|
|
2392
|
+
let r = e, i = V.parse(e);
|
|
2393
|
+
if (i.length > 5) return r;
|
|
2394
|
+
let a = V.createTransformer(e), o = typeof i[0] == "number" ? 0 : 1, s = n.x.scale * t.x, c = n.y.scale * t.y;
|
|
2395
|
+
i[0 + o] /= s, i[1 + o] /= c;
|
|
2396
|
+
let l = H(s, c, .5);
|
|
2397
|
+
return typeof i[2 + o] == "number" && (i[2 + o] /= l), typeof i[3 + o] == "number" && (i[3 + o] /= l), a(i);
|
|
2398
|
+
} }, ra = {
|
|
2399
|
+
borderRadius: {
|
|
2400
|
+
...ta,
|
|
2401
|
+
applyTo: [
|
|
2402
|
+
"borderTopLeftRadius",
|
|
2403
|
+
"borderTopRightRadius",
|
|
2404
|
+
"borderBottomLeftRadius",
|
|
2405
|
+
"borderBottomRightRadius"
|
|
2406
|
+
]
|
|
2407
|
+
},
|
|
2408
|
+
borderTopLeftRadius: ta,
|
|
2409
|
+
borderTopRightRadius: ta,
|
|
2410
|
+
borderBottomLeftRadius: ta,
|
|
2411
|
+
borderBottomRightRadius: ta,
|
|
2412
|
+
boxShadow: na
|
|
2413
|
+
};
|
|
2414
|
+
//#endregion
|
|
2415
|
+
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/render/utils/is-forced-motion-value.mjs
|
|
2416
|
+
function ia(e, { layout: t, layoutId: n }) {
|
|
2417
|
+
return J.has(e) || e.startsWith("origin") || (t || n !== void 0) && (!!ra[e] || e === "opacity");
|
|
2418
|
+
}
|
|
2419
|
+
//#endregion
|
|
2420
|
+
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/render/html/utils/scrape-motion-values.mjs
|
|
2421
|
+
function aa(e, t, n) {
|
|
2422
|
+
let r = e.style, i = t?.style, a = {};
|
|
2423
|
+
if (!r) return a;
|
|
2424
|
+
for (let t in r) ($(r[t]) || i && $(i[t]) || ia(t, e) || n?.getValue(t)?.liveStyle !== void 0) && (a[t] = r[t]);
|
|
2425
|
+
return a;
|
|
2426
|
+
}
|
|
2427
|
+
//#endregion
|
|
2428
|
+
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/render/html/HTMLVisualElement.mjs
|
|
2429
|
+
function oa(e) {
|
|
2430
|
+
return window.getComputedStyle(e);
|
|
2431
|
+
}
|
|
2432
|
+
var sa = class extends Di {
|
|
2433
|
+
constructor() {
|
|
2434
|
+
super(...arguments), this.type = "html", this.renderInstance = $i;
|
|
2435
|
+
}
|
|
2436
|
+
readValueFromInstance(e, t) {
|
|
2437
|
+
if (J.has(t)) return this.projection?.isProjecting ? un(t) : fn(e, t);
|
|
2438
|
+
{
|
|
2439
|
+
let n = oa(e), r = (Ae(t) ? n.getPropertyValue(t) : n[t]) || 0;
|
|
2440
|
+
return typeof r == "string" ? r.trim() : r;
|
|
2441
|
+
}
|
|
2442
|
+
}
|
|
2443
|
+
measureInstanceViewportBox(e, { transformPagePoint: t }) {
|
|
2444
|
+
return qi(e, t);
|
|
2445
|
+
}
|
|
2446
|
+
build(e, t, n) {
|
|
2447
|
+
Qi(e, t, n.transformTemplate);
|
|
2448
|
+
}
|
|
2449
|
+
scrapeMotionValuesFromProps(e, t, n) {
|
|
2450
|
+
return aa(e, t, n);
|
|
2451
|
+
}
|
|
2452
|
+
}, ca = {
|
|
2453
|
+
offset: "stroke-dashoffset",
|
|
2454
|
+
array: "stroke-dasharray"
|
|
2455
|
+
}, la = {
|
|
2456
|
+
offset: "strokeDashoffset",
|
|
2457
|
+
array: "strokeDasharray"
|
|
2458
|
+
};
|
|
2459
|
+
function ua(e, t, n = 1, r = 0, i = !0) {
|
|
2460
|
+
e.pathLength = 1;
|
|
2461
|
+
let a = i ? ca : la;
|
|
2462
|
+
e[a.offset] = `${-r}`, e[a.array] = `${t} ${n}`;
|
|
2463
|
+
}
|
|
2464
|
+
//#endregion
|
|
2465
|
+
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/render/svg/utils/build-attrs.mjs
|
|
2466
|
+
var da = [
|
|
2467
|
+
"offsetDistance",
|
|
2468
|
+
"offsetPath",
|
|
2469
|
+
"offsetRotate",
|
|
2470
|
+
"offsetAnchor"
|
|
2471
|
+
];
|
|
2472
|
+
function fa(e, { attrX: t, attrY: n, attrScale: r, pathLength: i, pathSpacing: a = 1, pathOffset: o = 0, ...s }, c, l, u) {
|
|
2473
|
+
if (Qi(e, s, l), c) {
|
|
2474
|
+
e.style.viewBox && (e.attrs.viewBox = e.style.viewBox);
|
|
2475
|
+
return;
|
|
2476
|
+
}
|
|
2477
|
+
e.attrs = e.style, e.style = {};
|
|
2478
|
+
let { attrs: d, style: f } = e;
|
|
2479
|
+
d.transform && (f.transform = d.transform, delete d.transform), (f.transform || d.transformOrigin) && (f.transformOrigin = d.transformOrigin ?? "50% 50%", delete d.transformOrigin), f.transform && (f.transformBox = u?.transformBox ?? "fill-box", delete d.transformBox);
|
|
2480
|
+
for (let e of da) d[e] !== void 0 && (f[e] = d[e], delete d[e]);
|
|
2481
|
+
t !== void 0 && (d.x = t), n !== void 0 && (d.y = n), r !== void 0 && (d.scale = r), i !== void 0 && ua(d, i, a, o, !1);
|
|
2482
|
+
}
|
|
2483
|
+
//#endregion
|
|
2484
|
+
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/render/svg/utils/camel-case-attrs.mjs
|
|
2485
|
+
var pa = new Set([
|
|
2486
|
+
"baseFrequency",
|
|
2487
|
+
"diffuseConstant",
|
|
2488
|
+
"kernelMatrix",
|
|
2489
|
+
"kernelUnitLength",
|
|
2490
|
+
"keySplines",
|
|
2491
|
+
"keyTimes",
|
|
2492
|
+
"limitingConeAngle",
|
|
2493
|
+
"markerHeight",
|
|
2494
|
+
"markerWidth",
|
|
2495
|
+
"numOctaves",
|
|
2496
|
+
"targetX",
|
|
2497
|
+
"targetY",
|
|
2498
|
+
"surfaceScale",
|
|
2499
|
+
"specularConstant",
|
|
2500
|
+
"specularExponent",
|
|
2501
|
+
"stdDeviation",
|
|
2502
|
+
"tableValues",
|
|
2503
|
+
"viewBox",
|
|
2504
|
+
"gradientTransform",
|
|
2505
|
+
"pathLength",
|
|
2506
|
+
"startOffset",
|
|
2507
|
+
"textLength",
|
|
2508
|
+
"lengthAdjust"
|
|
2509
|
+
]), ma = (e) => typeof e == "string" && e.toLowerCase() === "svg";
|
|
2510
|
+
//#endregion
|
|
2511
|
+
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/render/svg/utils/render.mjs
|
|
2512
|
+
function ha(e, t, n, r) {
|
|
2513
|
+
$i(e, t, void 0, r);
|
|
2514
|
+
for (let n in t.attrs) e.setAttribute(pa.has(n) ? n : Or(n), t.attrs[n]);
|
|
2515
|
+
}
|
|
2516
|
+
//#endregion
|
|
2517
|
+
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/render/svg/utils/scrape-motion-values.mjs
|
|
2518
|
+
function ga(e, t, n) {
|
|
2519
|
+
let r = aa(e, t, n);
|
|
2520
|
+
for (let n in e) if ($(e[n]) || $(t[n])) {
|
|
2521
|
+
let t = q.indexOf(n) === -1 ? n : "attr" + n.charAt(0).toUpperCase() + n.substring(1);
|
|
2522
|
+
r[t] = e[n];
|
|
2523
|
+
}
|
|
2524
|
+
return r;
|
|
2525
|
+
}
|
|
2526
|
+
//#endregion
|
|
2527
|
+
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/render/svg/SVGVisualElement.mjs
|
|
2528
|
+
var _a = class extends Di {
|
|
2529
|
+
constructor() {
|
|
2530
|
+
super(...arguments), this.type = "svg", this.isSVGTag = !1, this.measureInstanceViewportBox = li;
|
|
2531
|
+
}
|
|
2532
|
+
getBaseTargetFromProps(e, t) {
|
|
2533
|
+
return e[t];
|
|
2534
|
+
}
|
|
2535
|
+
readValueFromInstance(e, t) {
|
|
2536
|
+
if (J.has(t)) {
|
|
2537
|
+
let e = Kr(t);
|
|
2538
|
+
return e && e.default || 0;
|
|
2539
|
+
}
|
|
2540
|
+
return t = pa.has(t) ? t : Or(t), e.getAttribute(t);
|
|
2541
|
+
}
|
|
2542
|
+
scrapeMotionValuesFromProps(e, t, n) {
|
|
2543
|
+
return ga(e, t, n);
|
|
2544
|
+
}
|
|
2545
|
+
build(e, t, n) {
|
|
2546
|
+
fa(e, t, this.isSVGTag, n.transformTemplate, n.style);
|
|
2547
|
+
}
|
|
2548
|
+
renderInstance(e, t, n, r) {
|
|
2549
|
+
ha(e, t, n, r);
|
|
2550
|
+
}
|
|
2551
|
+
mount(e) {
|
|
2552
|
+
this.isSVGTag = ma(e.tagName), super.mount(e);
|
|
2553
|
+
}
|
|
2554
|
+
};
|
|
2555
|
+
//#endregion
|
|
2556
|
+
//#region ../../node_modules/.pnpm/motion-dom@12.40.0/node_modules/motion-dom/dist/es/animation/animate/single-value.mjs
|
|
2557
|
+
function va(e, t, n) {
|
|
2558
|
+
let r = $(e) ? e : Q(e);
|
|
2559
|
+
return r.start(pr("", r, t, n)), r.animation;
|
|
2560
|
+
}
|
|
2561
|
+
//#endregion
|
|
2562
|
+
//#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/MotionConfigContext.mjs
|
|
2563
|
+
var ya = e({
|
|
2564
|
+
transformPagePoint: (e) => e,
|
|
2565
|
+
isStatic: !1,
|
|
2566
|
+
reducedMotion: "never"
|
|
2567
|
+
});
|
|
2568
|
+
//#endregion
|
|
2569
|
+
export { nr as $, gi as A, c as At, ei as B, Ei as C, y as Ct, yi as D, h as Dt, xi as E, g as Et, ui as F, n as Ft, Dr as G, Mr as H, li as I, br as J, $ as K, si as L, mi as M, r as Mt, fi as N, a as Nt, vi as O, f as Ot, di as P, i as Pt, ir as Q, ri as R, ki as S, b as St, wi as T, _ as Tt, Ar as U, Qr as V, kr as W, pr as X, yr as Y, ar as Z, Ui as _, ye as _t, ma as a, W as at, Ni as b, ie as bt, aa as c, I as ct, Qi as d, k as dt, Q as et, Ji as f, we as ft, Ki as g, E as gt, Ii as h, Te as ht, ga as i, Ut as it, pi as j, o as jt, hi as k, l as kt, ia as l, L as lt, Hi as m, O as mt, va as n, Gt as nt, fa as o, kt as ot, zi as p, D as pt, Sr as q, _a as r, Wt as rt, sa as s, H as st, ya as t, Pn as tt, ra as u, Oe as ut, Pi as v, he as vt, Ti as w, v as wt, Oi as x, C as xt, Mi as y, ue as yt, ni as z };
|
|
2570
|
+
|
|
2571
|
+
//# sourceMappingURL=MotionConfigContext-BORpSKe8.js.map
|