@vkzstudio/muza-ui 1.0.48 → 1.2.0
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/README.md +173 -171
- package/dist/Muza_BP_logo.svg +26 -26
- package/dist/components/Alert/Alert.d.ts +3 -1
- package/dist/components/Alert/Alert.d.ts.map +1 -1
- package/dist/components/Alert/Alert.js +28 -24
- package/dist/components/Button/Button.stories.d.ts.map +1 -1
- package/dist/components/Calendar/Calendar.js +10 -11
- package/dist/components/Card/Card.stories.d.ts.map +1 -1
- package/dist/components/Carousel/Carousel.d.ts +30 -3
- package/dist/components/Carousel/Carousel.d.ts.map +1 -1
- package/dist/components/Carousel/Carousel.js +112 -92
- package/dist/components/Carousel/Carousel.stories.d.ts.map +1 -1
- package/dist/components/DataTable/DataTable.stories.d.ts.map +1 -1
- package/dist/components/DatePicker/DatePicker.stories.d.ts +1 -0
- package/dist/components/DatePicker/DatePicker.stories.d.ts.map +1 -1
- package/dist/components/DatePickerButton/DatePickerButton.stories.d.ts.map +1 -1
- package/dist/components/Dialog/Dialog.stories.d.ts +1 -0
- package/dist/components/Dialog/Dialog.stories.d.ts.map +1 -1
- package/dist/components/DropdownMenu/DropdownMenu.stories.d.ts +1 -0
- package/dist/components/DropdownMenu/DropdownMenu.stories.d.ts.map +1 -1
- package/dist/components/Icons/CustomBadges.d.ts +5 -0
- package/dist/components/Icons/CustomBadges.d.ts.map +1 -1
- package/dist/components/Icons/CustomBadges.js +216 -13
- package/dist/components/Input/Input.js +22 -32
- package/dist/components/LanguageSwitcher/LanguageSwitcher.stories.d.ts +1 -0
- package/dist/components/LanguageSwitcher/LanguageSwitcher.stories.d.ts.map +1 -1
- package/dist/components/Lightbox/Lightbox.d.ts.map +1 -1
- package/dist/components/Lightbox/Lightbox.js +70 -54
- package/dist/components/Lightbox/Lightbox.stories.d.ts +1 -0
- package/dist/components/Lightbox/Lightbox.stories.d.ts.map +1 -1
- package/dist/components/Lightbox/LightboxOverrides.css +5 -5
- package/dist/components/LoginScreen/LoginScreen.d.ts +11 -1
- package/dist/components/LoginScreen/LoginScreen.d.ts.map +1 -1
- package/dist/components/LoginScreen/LoginScreen.js +27 -27
- package/dist/components/LoginScreen/LoginScreen.stories.d.ts +2 -2
- package/dist/components/LoginScreen/LoginScreen.stories.d.ts.map +1 -1
- package/dist/components/LoginScreen/LoginScreen3D/LoginScreen3DModel.js +10 -9
- package/dist/components/LoginScreen/LoginScreen3D/LoginScreen3DScene.js +21 -22
- package/dist/components/LoginScreen/LoginScreenItem.js +1 -1
- package/dist/components/MultiSelect/MultiSelect.stories.d.ts +1 -0
- package/dist/components/MultiSelect/MultiSelect.stories.d.ts.map +1 -1
- package/dist/components/Pagination/Pagination.stories.d.ts.map +1 -1
- package/dist/components/Popover/Popover.stories.d.ts +1 -0
- package/dist/components/Popover/Popover.stories.d.ts.map +1 -1
- package/dist/components/Reorderable/Reorderable.js +74 -78
- package/dist/components/Reorderable/Reorderable.stories.d.ts.map +1 -1
- package/dist/components/ReorderableTable/ReorderableTable.js +1 -1
- package/dist/components/Select/Select.stories.d.ts +1 -0
- package/dist/components/Select/Select.stories.d.ts.map +1 -1
- package/dist/components/Sheet/Sheet.stories.d.ts +1 -0
- package/dist/components/Sheet/Sheet.stories.d.ts.map +1 -1
- package/dist/components/SwipeButton/SwipeButton.js +37 -42
- package/dist/components/Tag/Tag.js +1 -1
- package/dist/components/TextEditor/LinkBubbleMenu.js +2 -2
- package/dist/components/TextEditor/TextEditor.js +5 -5
- package/dist/components/Toast/Toast.stories.d.ts +1 -0
- package/dist/components/Toast/Toast.stories.d.ts.map +1 -1
- package/dist/components/Tooltip/Tooltip.stories.d.ts +1 -0
- package/dist/components/Tooltip/Tooltip.stories.d.ts.map +1 -1
- package/dist/components/TypographyLink/TypographyLink.stories.d.ts.map +1 -1
- package/dist/fonts/Objectivity/OFL.txt +92 -92
- package/dist/globals.css +12 -12
- package/dist/index.js +194 -193
- package/dist/muza-ui.css +1 -1
- package/dist/styles/3rd-parties.css +5 -5
- package/dist/styles/animations.css +21 -21
- package/dist/styles/breakpoints.css +4 -4
- package/dist/styles/primitives.css +163 -163
- package/dist/styles/token-colors.css +1445 -1445
- package/dist/styles/token-sizes.css +1553 -1553
- package/dist/styles/typography.css +113 -113
- package/dist/styles/utilities.css +66 -66
- package/dist/styles/white-label.css +26 -26
- package/dist/translations/TranslationContext.js +22 -24
- package/dist/translations/locales/cs.d.ts.map +1 -1
- package/dist/translations/locales/cs.js +3 -0
- package/dist/translations/locales/en.d.ts.map +1 -1
- package/dist/translations/locales/en.js +3 -0
- package/dist/translations/locales/sk.d.ts.map +1 -1
- package/dist/translations/locales/sk.js +3 -0
- package/dist/translations/types.d.ts +8 -0
- package/dist/translations/types.d.ts.map +1 -1
- package/llms-full.md +584 -584
- package/llms.txt +37 -37
- package/package.json +165 -171
- package/dist/_virtual/_commonjsHelpers.js +0 -6
- package/dist/_virtual/constants.js +0 -5
- package/dist/_virtual/constants2.js +0 -4
- package/dist/_virtual/index.js +0 -7
- package/dist/_virtual/index2.js +0 -4
- package/dist/_virtual/index3.js +0 -4
- package/dist/_virtual/index4.js +0 -7
- package/dist/_virtual/index5.js +0 -5
- package/dist/_virtual/index6.js +0 -4
- package/dist/_virtual/index7.js +0 -4
- package/dist/_virtual/react-dom-server-legacy.browser.development.js +0 -4
- package/dist/_virtual/react-dom-server-legacy.browser.production.min.js +0 -4
- package/dist/_virtual/react-dom-server.browser.development.js +0 -4
- package/dist/_virtual/react-dom-server.browser.production.min.js +0 -4
- package/dist/_virtual/react-is.development.js +0 -4
- package/dist/_virtual/react-is.production.min.js +0 -4
- package/dist/_virtual/react-reconciler-constants.development.js +0 -4
- package/dist/_virtual/react-reconciler-constants.production.min.js +0 -4
- package/dist/_virtual/react-reconciler.development.js +0 -4
- package/dist/_virtual/scheduler.development.js +0 -4
- package/dist/_virtual/scheduler.production.min.js +0 -4
- package/dist/_virtual/server.browser.js +0 -5
- package/dist/_virtual/server.browser2.js +0 -4
- package/dist/node_modules/@date-fns/tz/date/index.js +0 -61
- package/dist/node_modules/@date-fns/tz/date/mini.js +0 -69
- package/dist/node_modules/@date-fns/tz/tzName/index.js +0 -11
- package/dist/node_modules/@date-fns/tz/tzOffset/index.js +0 -22
- package/dist/node_modules/@popperjs/core/lib/createPopper.js +0 -122
- package/dist/node_modules/@popperjs/core/lib/dom-utils/contains.js +0 -18
- package/dist/node_modules/@popperjs/core/lib/dom-utils/getBoundingClientRect.js +0 -23
- package/dist/node_modules/@popperjs/core/lib/dom-utils/getClippingRect.js +0 -37
- package/dist/node_modules/@popperjs/core/lib/dom-utils/getCompositeRect.js +0 -32
- package/dist/node_modules/@popperjs/core/lib/dom-utils/getComputedStyle.js +0 -7
- package/dist/node_modules/@popperjs/core/lib/dom-utils/getDocumentElement.js +0 -10
- package/dist/node_modules/@popperjs/core/lib/dom-utils/getDocumentRect.js +0 -17
- package/dist/node_modules/@popperjs/core/lib/dom-utils/getHTMLElementScroll.js +0 -9
- package/dist/node_modules/@popperjs/core/lib/dom-utils/getLayoutRect.js +0 -13
- package/dist/node_modules/@popperjs/core/lib/dom-utils/getNodeName.js +0 -6
- package/dist/node_modules/@popperjs/core/lib/dom-utils/getNodeScroll.js +0 -10
- package/dist/node_modules/@popperjs/core/lib/dom-utils/getOffsetParent.js +0 -35
- package/dist/node_modules/@popperjs/core/lib/dom-utils/getParentNode.js +0 -18
- package/dist/node_modules/@popperjs/core/lib/dom-utils/getScrollParent.js +0 -10
- package/dist/node_modules/@popperjs/core/lib/dom-utils/getViewportRect.js +0 -21
- package/dist/node_modules/@popperjs/core/lib/dom-utils/getWindow.js +0 -12
- package/dist/node_modules/@popperjs/core/lib/dom-utils/getWindowScroll.js +0 -11
- package/dist/node_modules/@popperjs/core/lib/dom-utils/getWindowScrollBarX.js +0 -9
- package/dist/node_modules/@popperjs/core/lib/dom-utils/instanceOf.js +0 -20
- package/dist/node_modules/@popperjs/core/lib/dom-utils/isLayoutViewport.js +0 -7
- package/dist/node_modules/@popperjs/core/lib/dom-utils/isScrollParent.js +0 -8
- package/dist/node_modules/@popperjs/core/lib/dom-utils/isTableElement.js +0 -7
- package/dist/node_modules/@popperjs/core/lib/dom-utils/listScrollParents.js +0 -16
- package/dist/node_modules/@popperjs/core/lib/enums.js +0 -31
- package/dist/node_modules/@popperjs/core/lib/modifiers/applyStyles.js +0 -47
- package/dist/node_modules/@popperjs/core/lib/modifiers/arrow.js +0 -37
- package/dist/node_modules/@popperjs/core/lib/modifiers/computeStyles.js +0 -99
- package/dist/node_modules/@popperjs/core/lib/modifiers/eventListeners.js +0 -26
- package/dist/node_modules/@popperjs/core/lib/modifiers/flip.js +0 -74
- package/dist/node_modules/@popperjs/core/lib/modifiers/hide.js +0 -44
- package/dist/node_modules/@popperjs/core/lib/modifiers/offset.js +0 -31
- package/dist/node_modules/@popperjs/core/lib/modifiers/popperOffsets.js +0 -19
- package/dist/node_modules/@popperjs/core/lib/modifiers/preventOverflow.js +0 -54
- package/dist/node_modules/@popperjs/core/lib/popper.js +0 -27
- package/dist/node_modules/@popperjs/core/lib/utils/computeAutoPlacement.js +0 -27
- package/dist/node_modules/@popperjs/core/lib/utils/computeOffsets.js +0 -54
- package/dist/node_modules/@popperjs/core/lib/utils/debounce.js +0 -13
- package/dist/node_modules/@popperjs/core/lib/utils/detectOverflow.js +0 -33
- package/dist/node_modules/@popperjs/core/lib/utils/expandToHashMap.js +0 -8
- package/dist/node_modules/@popperjs/core/lib/utils/getAltAxis.js +0 -6
- package/dist/node_modules/@popperjs/core/lib/utils/getBasePlacement.js +0 -6
- package/dist/node_modules/@popperjs/core/lib/utils/getFreshSideObject.js +0 -11
- package/dist/node_modules/@popperjs/core/lib/utils/getMainAxisFromPlacement.js +0 -6
- package/dist/node_modules/@popperjs/core/lib/utils/getOppositePlacement.js +0 -14
- package/dist/node_modules/@popperjs/core/lib/utils/getOppositeVariationPlacement.js +0 -12
- package/dist/node_modules/@popperjs/core/lib/utils/getVariation.js +0 -6
- package/dist/node_modules/@popperjs/core/lib/utils/math.js +0 -6
- package/dist/node_modules/@popperjs/core/lib/utils/mergeByName.js +0 -15
- package/dist/node_modules/@popperjs/core/lib/utils/mergePaddingObject.js +0 -7
- package/dist/node_modules/@popperjs/core/lib/utils/orderModifiers.js +0 -31
- package/dist/node_modules/@popperjs/core/lib/utils/rectToClientRect.js +0 -11
- package/dist/node_modules/@popperjs/core/lib/utils/userAgent.js +0 -9
- package/dist/node_modules/@popperjs/core/lib/utils/within.js +0 -12
- package/dist/node_modules/@react-three/drei/core/useAnimations.js +0 -34
- package/dist/node_modules/@react-three/drei/core/useGLTF.js +0 -18
- package/dist/node_modules/@react-three/fiber/dist/events-776716bd.esm.js +0 -1311
- package/dist/node_modules/@react-three/fiber/dist/react-three-fiber.esm.js +0 -145
- package/dist/node_modules/@react-three/fiber/node_modules/suspend-react/index.js +0 -47
- package/dist/node_modules/@tiptap/core/dist/index.js +0 -2857
- package/dist/node_modules/@tiptap/extension-blockquote/dist/index.js +0 -45
- package/dist/node_modules/@tiptap/extension-bold/dist/index.js +0 -76
- package/dist/node_modules/@tiptap/extension-bubble-menu/dist/index.js +0 -129
- package/dist/node_modules/@tiptap/extension-bullet-list/dist/index.js +0 -55
- package/dist/node_modules/@tiptap/extension-character-count/dist/index.js +0 -73
- package/dist/node_modules/@tiptap/extension-code/dist/index.js +0 -54
- package/dist/node_modules/@tiptap/extension-code-block/dist/index.js +0 -136
- package/dist/node_modules/@tiptap/extension-document/dist/index.js +0 -10
- package/dist/node_modules/@tiptap/extension-dropcursor/dist/index.js +0 -21
- package/dist/node_modules/@tiptap/extension-gapcursor/dist/index.js +0 -25
- package/dist/node_modules/@tiptap/extension-hard-break/dist/index.js +0 -56
- package/dist/node_modules/@tiptap/extension-heading/dist/index.js +0 -55
- package/dist/node_modules/@tiptap/extension-history/dist/index.js +0 -36
- package/dist/node_modules/@tiptap/extension-horizontal-rule/dist/index.js +0 -59
- package/dist/node_modules/@tiptap/extension-italic/dist/index.js +0 -75
- package/dist/node_modules/@tiptap/extension-link/dist/index.js +0 -272
- package/dist/node_modules/@tiptap/extension-list-item/dist/index.js +0 -34
- package/dist/node_modules/@tiptap/extension-ordered-list/dist/index.js +0 -73
- package/dist/node_modules/@tiptap/extension-paragraph/dist/index.js +0 -34
- package/dist/node_modules/@tiptap/extension-placeholder/dist/index.js +0 -53
- package/dist/node_modules/@tiptap/extension-strike/dist/index.js +0 -64
- package/dist/node_modules/@tiptap/extension-text/dist/index.js +0 -9
- package/dist/node_modules/@tiptap/react/dist/index.js +0 -709
- package/dist/node_modules/@tiptap/starter-kit/dist/index.js +0 -30
- package/dist/node_modules/color/index.js +0 -262
- package/dist/node_modules/color/node_modules/color-convert/conversions.js +0 -421
- package/dist/node_modules/color/node_modules/color-convert/index.js +0 -35
- package/dist/node_modules/color/node_modules/color-convert/route.js +0 -46
- package/dist/node_modules/color/node_modules/color-name/index.js +0 -153
- package/dist/node_modules/color-string/index.js +0 -105
- package/dist/node_modules/color-string/node_modules/color-name/index.js +0 -153
- package/dist/node_modules/date-fns/_lib/defaultOptions.js +0 -7
- package/dist/node_modules/date-fns/_lib/normalizeDates.js +0 -11
- package/dist/node_modules/date-fns/constants.js +0 -4
- package/dist/node_modules/date-fns/constructFrom.js +0 -8
- package/dist/node_modules/date-fns/isSameWeek.js +0 -14
- package/dist/node_modules/date-fns/locale/_lib/buildFormatLongFn.js +0 -9
- package/dist/node_modules/date-fns/locale/_lib/buildLocalizeFn.js +0 -18
- package/dist/node_modules/date-fns/locale/_lib/buildMatchFn.js +0 -31
- package/dist/node_modules/date-fns/locale/_lib/buildMatchPatternFn.js +0 -15
- package/dist/node_modules/date-fns/locale/cs/_lib/formatDistance.js +0 -275
- package/dist/node_modules/date-fns/locale/cs/_lib/formatLong.js +0 -33
- package/dist/node_modules/date-fns/locale/cs/_lib/formatRelative.js +0 -25
- package/dist/node_modules/date-fns/locale/cs/_lib/localize.js +0 -167
- package/dist/node_modules/date-fns/locale/cs/_lib/match.js +0 -109
- package/dist/node_modules/date-fns/locale/cs.js +0 -21
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatDistance.js +0 -70
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatLong.js +0 -33
- package/dist/node_modules/date-fns/locale/en-US/_lib/formatRelative.js +0 -11
- package/dist/node_modules/date-fns/locale/en-US/_lib/localize.js +0 -155
- package/dist/node_modules/date-fns/locale/en-US/_lib/match.js +0 -110
- package/dist/node_modules/date-fns/locale/en-US.js +0 -21
- package/dist/node_modules/date-fns/locale/sk/_lib/formatDistance.js +0 -158
- package/dist/node_modules/date-fns/locale/sk/_lib/formatLong.js +0 -33
- package/dist/node_modules/date-fns/locale/sk/_lib/formatRelative.js +0 -60
- package/dist/node_modules/date-fns/locale/sk/_lib/localize.js +0 -175
- package/dist/node_modules/date-fns/locale/sk/_lib/match.js +0 -111
- package/dist/node_modules/date-fns/locale/sk.js +0 -21
- package/dist/node_modules/date-fns/startOfWeek.js +0 -11
- package/dist/node_modules/date-fns/toDate.js +0 -8
- package/dist/node_modules/framer-motion/dist/es/animation/animate/index.js +0 -25
- package/dist/node_modules/framer-motion/dist/es/animation/animate/resolve-subjects.js +0 -8
- package/dist/node_modules/framer-motion/dist/es/animation/animate/sequence.js +0 -12
- package/dist/node_modules/framer-motion/dist/es/animation/animate/subject.js +0 -32
- package/dist/node_modules/framer-motion/dist/es/animation/sequence/create.js +0 -128
- package/dist/node_modules/framer-motion/dist/es/animation/sequence/utils/calc-repeat-duration.js +0 -6
- package/dist/node_modules/framer-motion/dist/es/animation/sequence/utils/calc-time.js +0 -6
- package/dist/node_modules/framer-motion/dist/es/animation/sequence/utils/edit.js +0 -22
- package/dist/node_modules/framer-motion/dist/es/animation/sequence/utils/normalize-times.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/animation/sequence/utils/sort.js +0 -6
- package/dist/node_modules/framer-motion/dist/es/animation/utils/create-visual-element.js +0 -40
- package/dist/node_modules/framer-motion/dist/es/animation/utils/is-dom-keyframes.js +0 -6
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.js +0 -59
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.js +0 -34
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/index.js +0 -47
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/use-presence.js +0 -17
- package/dist/node_modules/framer-motion/dist/es/components/AnimatePresence/utils.js +0 -12
- package/dist/node_modules/framer-motion/dist/es/components/Reorder/Group.js +0 -46
- package/dist/node_modules/framer-motion/dist/es/components/Reorder/Item.js +0 -34
- package/dist/node_modules/framer-motion/dist/es/components/Reorder/utils/auto-scroll.js +0 -64
- package/dist/node_modules/framer-motion/dist/es/components/Reorder/utils/check-reorder.js +0 -17
- package/dist/node_modules/framer-motion/dist/es/context/LayoutGroupContext.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/context/LazyContext.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/context/MotionConfigContext.js +0 -9
- package/dist/node_modules/framer-motion/dist/es/context/MotionContext/create.js +0 -13
- package/dist/node_modules/framer-motion/dist/es/context/MotionContext/index.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/context/MotionContext/utils.js +0 -15
- package/dist/node_modules/framer-motion/dist/es/context/PresenceContext.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/context/ReorderContext.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/context/SwitchLayoutGroupContext.js +0 -5
- package/dist/node_modules/framer-motion/dist/es/events/add-pointer-event.js +0 -8
- package/dist/node_modules/framer-motion/dist/es/events/event-info.js +0 -14
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/VisualElementDragControls.js +0 -277
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/index.js +0 -22
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/use-drag-controls.js +0 -70
- package/dist/node_modules/framer-motion/dist/es/gestures/drag/utils/constraints.js +0 -67
- package/dist/node_modules/framer-motion/dist/es/gestures/focus.js +0 -28
- package/dist/node_modules/framer-motion/dist/es/gestures/hover.js +0 -21
- package/dist/node_modules/framer-motion/dist/es/gestures/pan/PanSession.js +0 -131
- package/dist/node_modules/framer-motion/dist/es/gestures/pan/index.js +0 -43
- package/dist/node_modules/framer-motion/dist/es/gestures/press.js +0 -23
- package/dist/node_modules/framer-motion/dist/es/motion/features/animation/exit.js +0 -27
- package/dist/node_modules/framer-motion/dist/es/motion/features/animation/index.js +0 -34
- package/dist/node_modules/framer-motion/dist/es/motion/features/animations.js +0 -13
- package/dist/node_modules/framer-motion/dist/es/motion/features/definitions.js +0 -39
- package/dist/node_modules/framer-motion/dist/es/motion/features/drag.js +0 -17
- package/dist/node_modules/framer-motion/dist/es/motion/features/gestures.js +0 -21
- package/dist/node_modules/framer-motion/dist/es/motion/features/layout/MeasureLayout.js +0 -60
- package/dist/node_modules/framer-motion/dist/es/motion/features/layout.js +0 -11
- package/dist/node_modules/framer-motion/dist/es/motion/features/load-features.js +0 -14
- package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/index.js +0 -44
- package/dist/node_modules/framer-motion/dist/es/motion/features/viewport/observers.js +0 -21
- package/dist/node_modules/framer-motion/dist/es/motion/index.js +0 -63
- package/dist/node_modules/framer-motion/dist/es/motion/utils/symbol.js +0 -4
- package/dist/node_modules/framer-motion/dist/es/motion/utils/use-motion-ref.js +0 -22
- package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-element.js +0 -65
- package/dist/node_modules/framer-motion/dist/es/motion/utils/use-visual-state.js +0 -52
- package/dist/node_modules/framer-motion/dist/es/motion/utils/valid-prop.js +0 -38
- package/dist/node_modules/framer-motion/dist/es/render/components/create-proxy.js +0 -18
- package/dist/node_modules/framer-motion/dist/es/render/components/motion/feature-bundle.js +0 -13
- package/dist/node_modules/framer-motion/dist/es/render/components/motion/proxy.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/render/dom/create-visual-element.js +0 -10
- package/dist/node_modules/framer-motion/dist/es/render/dom/use-render.js +0 -16
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/filter-props.js +0 -20
- package/dist/node_modules/framer-motion/dist/es/render/dom/utils/is-svg-component.js +0 -24
- package/dist/node_modules/framer-motion/dist/es/render/html/use-html-visual-state.js +0 -10
- package/dist/node_modules/framer-motion/dist/es/render/html/use-props.js +0 -27
- package/dist/node_modules/framer-motion/dist/es/render/html/utils/create-render-state.js +0 -9
- package/dist/node_modules/framer-motion/dist/es/render/svg/lowercase-elements.js +0 -30
- package/dist/node_modules/framer-motion/dist/es/render/svg/use-props.js +0 -22
- package/dist/node_modules/framer-motion/dist/es/render/svg/use-svg-visual-state.js +0 -10
- package/dist/node_modules/framer-motion/dist/es/render/svg/utils/create-render-state.js +0 -8
- package/dist/node_modules/framer-motion/dist/es/utils/distance.js +0 -9
- package/dist/node_modules/framer-motion/dist/es/utils/get-context-window.js +0 -4
- package/dist/node_modules/framer-motion/dist/es/utils/is-browser.js +0 -4
- package/dist/node_modules/framer-motion/dist/es/utils/is-ref-object.js +0 -6
- package/dist/node_modules/framer-motion/dist/es/utils/use-composed-ref.js +0 -28
- package/dist/node_modules/framer-motion/dist/es/utils/use-constant.js +0 -8
- package/dist/node_modules/framer-motion/dist/es/utils/use-isomorphic-effect.js +0 -6
- package/dist/node_modules/framer-motion/dist/es/utils/use-motion-value-event.js +0 -7
- package/dist/node_modules/framer-motion/dist/es/value/use-combine-values.js +0 -15
- package/dist/node_modules/framer-motion/dist/es/value/use-computed.js +0 -10
- package/dist/node_modules/framer-motion/dist/es/value/use-motion-value.js +0 -15
- package/dist/node_modules/framer-motion/dist/es/value/use-transform.js +0 -31
- package/dist/node_modules/imask/esm/controls/html-contenteditable-mask-element.js +0 -34
- package/dist/node_modules/imask/esm/controls/html-input-mask-element.js +0 -31
- package/dist/node_modules/imask/esm/controls/html-mask-element.js +0 -48
- package/dist/node_modules/imask/esm/controls/input-history.js +0 -30
- package/dist/node_modules/imask/esm/controls/input.js +0 -222
- package/dist/node_modules/imask/esm/controls/mask-element.js +0 -43
- package/dist/node_modules/imask/esm/core/action-details.js +0 -51
- package/dist/node_modules/imask/esm/core/change-details.js +0 -36
- package/dist/node_modules/imask/esm/core/continuous-tail-details.js +0 -42
- package/dist/node_modules/imask/esm/core/holder.js +0 -6
- package/dist/node_modules/imask/esm/core/utils.js +0 -67
- package/dist/node_modules/imask/esm/index.js +0 -50
- package/dist/node_modules/imask/esm/masked/base.js +0 -252
- package/dist/node_modules/imask/esm/masked/date.js +0 -117
- package/dist/node_modules/imask/esm/masked/dynamic.js +0 -222
- package/dist/node_modules/imask/esm/masked/enum.js +0 -69
- package/dist/node_modules/imask/esm/masked/factory.js +0 -46
- package/dist/node_modules/imask/esm/masked/function.js +0 -23
- package/dist/node_modules/imask/esm/masked/number.js +0 -212
- package/dist/node_modules/imask/esm/masked/pattern/chunk-tail-details.js +0 -103
- package/dist/node_modules/imask/esm/masked/pattern/cursor.js +0 -100
- package/dist/node_modules/imask/esm/masked/pattern/fixed-definition.js +0 -102
- package/dist/node_modules/imask/esm/masked/pattern/input-definition.js +0 -133
- package/dist/node_modules/imask/esm/masked/pattern.js +0 -322
- package/dist/node_modules/imask/esm/masked/pipe.js +0 -23
- package/dist/node_modules/imask/esm/masked/range.js +0 -78
- package/dist/node_modules/imask/esm/masked/regexp.js +0 -21
- package/dist/node_modules/imask/esm/masked/repeat.js +0 -104
- package/dist/node_modules/its-fine/dist/index.js +0 -116
- package/dist/node_modules/linkifyjs/dist/linkify.js +0 -707
- package/dist/node_modules/motion-dom/dist/es/animation/AsyncMotionValueAnimation.js +0 -106
- package/dist/node_modules/motion-dom/dist/es/animation/GroupAnimation.js +0 -76
- package/dist/node_modules/motion-dom/dist/es/animation/GroupAnimationWithThen.js +0 -10
- package/dist/node_modules/motion-dom/dist/es/animation/JSAnimation.js +0 -133
- package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimation.js +0 -108
- package/dist/node_modules/motion-dom/dist/es/animation/NativeAnimationExtended.js +0 -37
- package/dist/node_modules/motion-dom/dist/es/animation/animate/single-value.js +0 -10
- package/dist/node_modules/motion-dom/dist/es/animation/drivers/frame.js +0 -17
- package/dist/node_modules/motion-dom/dist/es/animation/generators/inertia.js +0 -37
- package/dist/node_modules/motion-dom/dist/es/animation/generators/keyframes.js +0 -30
- package/dist/node_modules/motion-dom/dist/es/animation/generators/spring/defaults.js +0 -32
- package/dist/node_modules/motion-dom/dist/es/animation/generators/spring/find.js +0 -52
- package/dist/node_modules/motion-dom/dist/es/animation/generators/spring/index.js +0 -98
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/calc-duration.js +0 -13
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/create-generator-easing.js +0 -13
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/is-generator.js +0 -6
- package/dist/node_modules/motion-dom/dist/es/animation/generators/utils/velocity.js +0 -9
- package/dist/node_modules/motion-dom/dist/es/animation/interfaces/motion-value.js +0 -46
- package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-target.js +0 -46
- package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element-variant.js +0 -30
- package/dist/node_modules/motion-dom/dist/es/animation/interfaces/visual-element.js +0 -22
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/DOMKeyframesResolver.js +0 -69
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/KeyframesResolver.js +0 -75
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/get-final.js +0 -8
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/default.js +0 -8
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/fill.js +0 -12
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/offsets/time.js +0 -6
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/fill-wildcards.js +0 -7
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/is-none.js +0 -7
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/make-none-animatable.js +0 -16
- package/dist/node_modules/motion-dom/dist/es/animation/keyframes/utils/unit-conversion.js +0 -31
- package/dist/node_modules/motion-dom/dist/es/animation/optimized-appear/data-id.js +0 -6
- package/dist/node_modules/motion-dom/dist/es/animation/optimized-appear/get-appear-id.js +0 -7
- package/dist/node_modules/motion-dom/dist/es/animation/utils/WithPromise.js +0 -27
- package/dist/node_modules/motion-dom/dist/es/animation/utils/calc-child-stagger.js +0 -7
- package/dist/node_modules/motion-dom/dist/es/animation/utils/can-animate.js +0 -23
- package/dist/node_modules/motion-dom/dist/es/animation/utils/css-variables-conversion.js +0 -31
- package/dist/node_modules/motion-dom/dist/es/animation/utils/default-transitions.js +0 -22
- package/dist/node_modules/motion-dom/dist/es/animation/utils/get-final-keyframe.js +0 -8
- package/dist/node_modules/motion-dom/dist/es/animation/utils/get-value-transition.js +0 -6
- package/dist/node_modules/motion-dom/dist/es/animation/utils/is-animatable.js +0 -7
- package/dist/node_modules/motion-dom/dist/es/animation/utils/is-css-variable.js +0 -9
- package/dist/node_modules/motion-dom/dist/es/animation/utils/is-transition-defined.js +0 -6
- package/dist/node_modules/motion-dom/dist/es/animation/utils/make-animation-instant.js +0 -6
- package/dist/node_modules/motion-dom/dist/es/animation/utils/replace-transition-type.js +0 -16
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/cubic-bezier.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/map-easing.js +0 -12
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/easing/supported.js +0 -15
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/start-waapi-animation.js +0 -21
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/supports/waapi.js +0 -24
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/apply-generator.js +0 -8
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/linear.js +0 -10
- package/dist/node_modules/motion-dom/dist/es/animation/waapi/utils/unsupported-easing.js +0 -17
- package/dist/node_modules/motion-dom/dist/es/events/add-dom-event.js +0 -6
- package/dist/node_modules/motion-dom/dist/es/frameloop/batcher.js +0 -27
- package/dist/node_modules/motion-dom/dist/es/frameloop/frame.js +0 -9
- package/dist/node_modules/motion-dom/dist/es/frameloop/microtask.js +0 -5
- package/dist/node_modules/motion-dom/dist/es/frameloop/order.js +0 -21
- package/dist/node_modules/motion-dom/dist/es/frameloop/render-step.js +0 -41
- package/dist/node_modules/motion-dom/dist/es/frameloop/sync-time.js +0 -15
- package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/is-active.js +0 -11
- package/dist/node_modules/motion-dom/dist/es/gestures/drag/state/set-active.js +0 -11
- package/dist/node_modules/motion-dom/dist/es/gestures/hover.js +0 -24
- package/dist/node_modules/motion-dom/dist/es/gestures/press/index.js +0 -33
- package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/is-keyboard-accessible.js +0 -13
- package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/keyboard.js +0 -27
- package/dist/node_modules/motion-dom/dist/es/gestures/press/utils/state.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-node-or-child.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/gestures/utils/is-primary-pointer.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/gestures/utils/setup.js +0 -12
- package/dist/node_modules/motion-dom/dist/es/projection/animation/mix-values.js +0 -27
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/conversion.js +0 -25
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/copy.js +0 -14
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-apply.js +0 -52
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-calc.js +0 -36
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/delta-remove.js +0 -25
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/models.js +0 -18
- package/dist/node_modules/motion-dom/dist/es/projection/geometry/utils.js +0 -34
- package/dist/node_modules/motion-dom/dist/es/projection/node/DocumentProjectionNode.js +0 -16
- package/dist/node_modules/motion-dom/dist/es/projection/node/HTMLProjectionNode.js +0 -25
- package/dist/node_modules/motion-dom/dist/es/projection/node/create-projection-node.js +0 -623
- package/dist/node_modules/motion-dom/dist/es/projection/node/state.js +0 -15
- package/dist/node_modules/motion-dom/dist/es/projection/shared/stack.js +0 -60
- package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-border-radius.js +0 -21
- package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-box-shadow.js +0 -16
- package/dist/node_modules/motion-dom/dist/es/projection/styles/scale-correction.js +0 -21
- package/dist/node_modules/motion-dom/dist/es/projection/styles/transform.js +0 -13
- package/dist/node_modules/motion-dom/dist/es/projection/utils/compare-by-depth.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/projection/utils/each-axis.js +0 -6
- package/dist/node_modules/motion-dom/dist/es/projection/utils/flat-tree.js +0 -19
- package/dist/node_modules/motion-dom/dist/es/projection/utils/has-transform.js +0 -20
- package/dist/node_modules/motion-dom/dist/es/projection/utils/measure.js +0 -13
- package/dist/node_modules/motion-dom/dist/es/render/Feature.js +0 -10
- package/dist/node_modules/motion-dom/dist/es/render/VisualElement.js +0 -247
- package/dist/node_modules/motion-dom/dist/es/render/dom/DOMVisualElement.js +0 -28
- package/dist/node_modules/motion-dom/dist/es/render/dom/is-css-var.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/render/dom/parse-transform.js +0 -65
- package/dist/node_modules/motion-dom/dist/es/render/dom/style-set.js +0 -7
- package/dist/node_modules/motion-dom/dist/es/render/dom/utils/camel-to-dash.js +0 -6
- package/dist/node_modules/motion-dom/dist/es/render/html/HTMLVisualElement.js +0 -38
- package/dist/node_modules/motion-dom/dist/es/render/html/utils/build-styles.js +0 -29
- package/dist/node_modules/motion-dom/dist/es/render/html/utils/build-transform.js +0 -37
- package/dist/node_modules/motion-dom/dist/es/render/html/utils/render.js +0 -12
- package/dist/node_modules/motion-dom/dist/es/render/html/utils/scrape-motion-values.js +0 -14
- package/dist/node_modules/motion-dom/dist/es/render/object/ObjectVisualElement.js +0 -37
- package/dist/node_modules/motion-dom/dist/es/render/store.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/render/svg/SVGVisualElement.js +0 -40
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/build-attrs.js +0 -32
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/camel-case-attrs.js +0 -28
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/is-svg-tag.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/path.js +0 -15
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/render.js +0 -11
- package/dist/node_modules/motion-dom/dist/es/render/svg/utils/scrape-motion-values.js +0 -15
- package/dist/node_modules/motion-dom/dist/es/render/utils/animation-state.js +0 -141
- package/dist/node_modules/motion-dom/dist/es/render/utils/get-variant-context.js +0 -20
- package/dist/node_modules/motion-dom/dist/es/render/utils/is-animation-controls.js +0 -6
- package/dist/node_modules/motion-dom/dist/es/render/utils/is-controlling-variants.js +0 -13
- package/dist/node_modules/motion-dom/dist/es/render/utils/is-forced-motion-value.js +0 -9
- package/dist/node_modules/motion-dom/dist/es/render/utils/is-keyframes-target.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/render/utils/is-variant-label.js +0 -6
- package/dist/node_modules/motion-dom/dist/es/render/utils/keys-position.js +0 -13
- package/dist/node_modules/motion-dom/dist/es/render/utils/keys-transform.js +0 -23
- package/dist/node_modules/motion-dom/dist/es/render/utils/motion-values.js +0 -25
- package/dist/node_modules/motion-dom/dist/es/render/utils/reduced-motion/index.js +0 -15
- package/dist/node_modules/motion-dom/dist/es/render/utils/reduced-motion/state.js +0 -5
- package/dist/node_modules/motion-dom/dist/es/render/utils/resolve-dynamic-variants.js +0 -8
- package/dist/node_modules/motion-dom/dist/es/render/utils/resolve-variants.js +0 -20
- package/dist/node_modules/motion-dom/dist/es/render/utils/setters.js +0 -21
- package/dist/node_modules/motion-dom/dist/es/render/utils/shallow-compare.js +0 -14
- package/dist/node_modules/motion-dom/dist/es/render/utils/variant-props.js +0 -13
- package/dist/node_modules/motion-dom/dist/es/utils/delay.js +0 -12
- package/dist/node_modules/motion-dom/dist/es/utils/interpolate.js +0 -42
- package/dist/node_modules/motion-dom/dist/es/utils/is-html-element.js +0 -7
- package/dist/node_modules/motion-dom/dist/es/utils/is-svg-element.js +0 -7
- package/dist/node_modules/motion-dom/dist/es/utils/is-svg-svg-element.js +0 -7
- package/dist/node_modules/motion-dom/dist/es/utils/mix/color.js +0 -29
- package/dist/node_modules/motion-dom/dist/es/utils/mix/complex.js +0 -51
- package/dist/node_modules/motion-dom/dist/es/utils/mix/immediate.js +0 -6
- package/dist/node_modules/motion-dom/dist/es/utils/mix/index.js +0 -8
- package/dist/node_modules/motion-dom/dist/es/utils/mix/number.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/utils/mix/visibility.js +0 -8
- package/dist/node_modules/motion-dom/dist/es/utils/resolve-elements.js +0 -15
- package/dist/node_modules/motion-dom/dist/es/utils/supports/flags.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/utils/supports/linear-easing.js +0 -12
- package/dist/node_modules/motion-dom/dist/es/utils/supports/memo.js +0 -9
- package/dist/node_modules/motion-dom/dist/es/utils/supports/scroll-timeline.js +0 -5
- package/dist/node_modules/motion-dom/dist/es/utils/transform.js +0 -8
- package/dist/node_modules/motion-dom/dist/es/value/index.js +0 -218
- package/dist/node_modules/motion-dom/dist/es/value/types/auto.js +0 -7
- package/dist/node_modules/motion-dom/dist/es/value/types/color/hex.js +0 -19
- package/dist/node_modules/motion-dom/dist/es/value/types/color/hsla-to-rgba.js +0 -22
- package/dist/node_modules/motion-dom/dist/es/value/types/color/hsla.js +0 -12
- package/dist/node_modules/motion-dom/dist/es/value/types/color/index.js +0 -15
- package/dist/node_modules/motion-dom/dist/es/value/types/color/rgba.js +0 -16
- package/dist/node_modules/motion-dom/dist/es/value/types/color/utils.js +0 -18
- package/dist/node_modules/motion-dom/dist/es/value/types/complex/filter.js +0 -24
- package/dist/node_modules/motion-dom/dist/es/value/types/complex/index.js +0 -49
- package/dist/node_modules/motion-dom/dist/es/value/types/dimensions.js +0 -9
- package/dist/node_modules/motion-dom/dist/es/value/types/int.js +0 -8
- package/dist/node_modules/motion-dom/dist/es/value/types/maps/defaults.js +0 -24
- package/dist/node_modules/motion-dom/dist/es/value/types/maps/number.js +0 -70
- package/dist/node_modules/motion-dom/dist/es/value/types/maps/transform.js +0 -31
- package/dist/node_modules/motion-dom/dist/es/value/types/numbers/index.js +0 -17
- package/dist/node_modules/motion-dom/dist/es/value/types/numbers/units.js +0 -17
- package/dist/node_modules/motion-dom/dist/es/value/types/test.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/animatable-none.js +0 -10
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/color-regex.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/find.js +0 -8
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/float-regex.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/get-as-type.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/is-nullish.js +0 -6
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/sanitize.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/value/types/utils/single-color-regex.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/value/utils/is-motion-value.js +0 -4
- package/dist/node_modules/motion-dom/dist/es/value/utils/resolve-motion-value.js +0 -7
- package/dist/node_modules/motion-dom/dist/es/value/will-change/add-will-change.js +0 -14
- package/dist/node_modules/motion-dom/dist/es/value/will-change/is.js +0 -7
- package/dist/node_modules/motion-utils/dist/es/array.js +0 -20
- package/dist/node_modules/motion-utils/dist/es/clamp.js +0 -4
- package/dist/node_modules/motion-utils/dist/es/easing/anticipate.js +0 -5
- package/dist/node_modules/motion-utils/dist/es/easing/back.js +0 -9
- package/dist/node_modules/motion-utils/dist/es/easing/circ.js +0 -8
- package/dist/node_modules/motion-utils/dist/es/easing/cubic-bezier.js +0 -18
- package/dist/node_modules/motion-utils/dist/es/easing/ease.js +0 -7
- package/dist/node_modules/motion-utils/dist/es/easing/modifiers/mirror.js +0 -4
- package/dist/node_modules/motion-utils/dist/es/easing/modifiers/reverse.js +0 -4
- package/dist/node_modules/motion-utils/dist/es/easing/utils/get-easing-for-segment.js +0 -8
- package/dist/node_modules/motion-utils/dist/es/easing/utils/is-bezier-definition.js +0 -4
- package/dist/node_modules/motion-utils/dist/es/easing/utils/is-easing-array.js +0 -4
- package/dist/node_modules/motion-utils/dist/es/easing/utils/map.js +0 -32
- package/dist/node_modules/motion-utils/dist/es/errors.js +0 -15
- package/dist/node_modules/motion-utils/dist/es/format-error-message.js +0 -6
- package/dist/node_modules/motion-utils/dist/es/global-config.js +0 -4
- package/dist/node_modules/motion-utils/dist/es/is-numerical-string.js +0 -4
- package/dist/node_modules/motion-utils/dist/es/is-object.js +0 -6
- package/dist/node_modules/motion-utils/dist/es/is-zero-value-string.js +0 -4
- package/dist/node_modules/motion-utils/dist/es/memo.js +0 -8
- package/dist/node_modules/motion-utils/dist/es/noop.js +0 -4
- package/dist/node_modules/motion-utils/dist/es/pipe.js +0 -4
- package/dist/node_modules/motion-utils/dist/es/progress.js +0 -7
- package/dist/node_modules/motion-utils/dist/es/subscription-manager.js +0 -29
- package/dist/node_modules/motion-utils/dist/es/time-conversion.js +0 -5
- package/dist/node_modules/motion-utils/dist/es/velocity-per-second.js +0 -6
- package/dist/node_modules/motion-utils/dist/es/warn-once.js +0 -8
- package/dist/node_modules/motion-utils/dist/es/wrap.js +0 -7
- package/dist/node_modules/object-assign/index.js +0 -54
- package/dist/node_modules/orderedmap/dist/index.js +0 -103
- package/dist/node_modules/photoswipe/dist/photoswipe.esm.js +0 -2956
- package/dist/node_modules/prop-types/checkPropTypes.js +0 -54
- package/dist/node_modules/prop-types/factoryWithThrowingShims.js +0 -52
- package/dist/node_modules/prop-types/factoryWithTypeCheckers.js +0 -329
- package/dist/node_modules/prop-types/index.js +0 -17
- package/dist/node_modules/prop-types/lib/ReactPropTypesSecret.js +0 -10
- package/dist/node_modules/prop-types/lib/has.js +0 -7
- package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js +0 -95
- package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js +0 -78
- package/dist/node_modules/prop-types/node_modules/react-is/index.js +0 -10
- package/dist/node_modules/prosemirror-commands/dist/index.js +0 -388
- package/dist/node_modules/prosemirror-dropcursor/dist/index.js +0 -86
- package/dist/node_modules/prosemirror-gapcursor/dist/index.js +0 -204
- package/dist/node_modules/prosemirror-history/dist/index.js +0 -248
- package/dist/node_modules/prosemirror-keymap/dist/index.js +0 -62
- package/dist/node_modules/prosemirror-model/dist/index.js +0 -2733
- package/dist/node_modules/prosemirror-schema-list/dist/index.js +0 -88
- package/dist/node_modules/prosemirror-state/dist/index.js +0 -822
- package/dist/node_modules/prosemirror-transform/dist/index.js +0 -1520
- package/dist/node_modules/prosemirror-view/dist/index.js +0 -3794
- package/dist/node_modules/react-day-picker/dist/esm/DayPicker.js +0 -229
- package/dist/node_modules/react-day-picker/dist/esm/UI.js +0 -22
- package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarDay.js +0 -19
- package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarMonth.js +0 -8
- package/dist/node_modules/react-day-picker/dist/esm/classes/CalendarWeek.js +0 -8
- package/dist/node_modules/react-day-picker/dist/esm/classes/DateLib.js +0 -222
- package/dist/node_modules/react-day-picker/dist/esm/components/Button.js +0 -7
- package/dist/node_modules/react-day-picker/dist/esm/components/CaptionLabel.js +0 -7
- package/dist/node_modules/react-day-picker/dist/esm/components/Chevron.js +0 -18
- package/dist/node_modules/react-day-picker/dist/esm/components/Day.js +0 -8
- package/dist/node_modules/react-day-picker/dist/esm/components/DayButton.js +0 -11
- package/dist/node_modules/react-day-picker/dist/esm/components/Dropdown.js +0 -19
- package/dist/node_modules/react-day-picker/dist/esm/components/DropdownNav.js +0 -7
- package/dist/node_modules/react-day-picker/dist/esm/components/Footer.js +0 -7
- package/dist/node_modules/react-day-picker/dist/esm/components/Month.js +0 -8
- package/dist/node_modules/react-day-picker/dist/esm/components/MonthCaption.js +0 -8
- package/dist/node_modules/react-day-picker/dist/esm/components/MonthGrid.js +0 -7
- package/dist/node_modules/react-day-picker/dist/esm/components/Months.js +0 -7
- package/dist/node_modules/react-day-picker/dist/esm/components/MonthsDropdown.js +0 -9
- package/dist/node_modules/react-day-picker/dist/esm/components/Nav.js +0 -27
- package/dist/node_modules/react-day-picker/dist/esm/components/NextMonthButton.js +0 -9
- package/dist/node_modules/react-day-picker/dist/esm/components/Option.js +0 -7
- package/dist/node_modules/react-day-picker/dist/esm/components/PreviousMonthButton.js +0 -9
- package/dist/node_modules/react-day-picker/dist/esm/components/Root.js +0 -8
- package/dist/node_modules/react-day-picker/dist/esm/components/Select.js +0 -7
- package/dist/node_modules/react-day-picker/dist/esm/components/Week.js +0 -8
- package/dist/node_modules/react-day-picker/dist/esm/components/WeekNumber.js +0 -8
- package/dist/node_modules/react-day-picker/dist/esm/components/WeekNumberHeader.js +0 -7
- package/dist/node_modules/react-day-picker/dist/esm/components/Weekday.js +0 -7
- package/dist/node_modules/react-day-picker/dist/esm/components/Weekdays.js +0 -11
- package/dist/node_modules/react-day-picker/dist/esm/components/Weeks.js +0 -7
- package/dist/node_modules/react-day-picker/dist/esm/components/YearsDropdown.js +0 -9
- package/dist/node_modules/react-day-picker/dist/esm/components/custom-components.js +0 -54
- package/dist/node_modules/react-day-picker/dist/esm/formatters/formatCaption.js +0 -9
- package/dist/node_modules/react-day-picker/dist/esm/formatters/formatDay.js +0 -7
- package/dist/node_modules/react-day-picker/dist/esm/formatters/formatMonthDropdown.js +0 -7
- package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumber.js +0 -7
- package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekNumberHeader.js +0 -6
- package/dist/node_modules/react-day-picker/dist/esm/formatters/formatWeekdayName.js +0 -7
- package/dist/node_modules/react-day-picker/dist/esm/formatters/formatYearDropdown.js +0 -9
- package/dist/node_modules/react-day-picker/dist/esm/formatters/index.js +0 -18
- package/dist/node_modules/react-day-picker/dist/esm/helpers/calculateFocusTarget.js +0 -19
- package/dist/node_modules/react-day-picker/dist/esm/helpers/createGetModifiers.js +0 -42
- package/dist/node_modules/react-day-picker/dist/esm/helpers/endOfBroadcastWeek.js +0 -9
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getBroadcastWeeksInMonth.js +0 -7
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getClassNamesForModifiers.js +0 -7
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getComponents.js +0 -10
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getDataAttributes.js +0 -16
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getDates.js +0 -21
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getDays.js +0 -10
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getDefaultClassNames.js +0 -16
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getDisplayMonths.js +0 -13
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getFocusableDate.js +0 -15
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getFormatters.js +0 -10
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getInitialMonth.js +0 -13
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getMonthOptions.js +0 -13
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getMonths.js +0 -24
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getNavMonth.js +0 -13
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getNextFocus.js +0 -12
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getNextMonth.js +0 -12
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getPreviousMonth.js +0 -12
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getStyleForModifiers.js +0 -13
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getWeekdays.js +0 -11
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getWeeks.js +0 -7
- package/dist/node_modules/react-day-picker/dist/esm/helpers/getYearOptions.js +0 -16
- package/dist/node_modules/react-day-picker/dist/esm/helpers/startOfBroadcastWeek.js +0 -7
- package/dist/node_modules/react-day-picker/dist/esm/helpers/useControlledValue.js +0 -8
- package/dist/node_modules/react-day-picker/dist/esm/labels/index.js +0 -26
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelDayButton.js +0 -10
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelGrid.js +0 -9
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelGridcell.js +0 -8
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelMonthDropdown.js +0 -6
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelNav.js +0 -6
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelNext.js +0 -6
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelPrevious.js +0 -6
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekNumber.js +0 -6
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekNumberHeader.js +0 -6
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelWeekday.js +0 -7
- package/dist/node_modules/react-day-picker/dist/esm/labels/labelYearDropdown.js +0 -6
- package/dist/node_modules/react-day-picker/dist/esm/selection/useMulti.js +0 -21
- package/dist/node_modules/react-day-picker/dist/esm/selection/useRange.js +0 -18
- package/dist/node_modules/react-day-picker/dist/esm/selection/useSingle.js +0 -15
- package/dist/node_modules/react-day-picker/dist/esm/useAnimation.js +0 -56
- package/dist/node_modules/react-day-picker/dist/esm/useCalendar.js +0 -44
- package/dist/node_modules/react-day-picker/dist/esm/useDayPicker.js +0 -12
- package/dist/node_modules/react-day-picker/dist/esm/useFocus.js +0 -23
- package/dist/node_modules/react-day-picker/dist/esm/useSelection.js +0 -19
- package/dist/node_modules/react-day-picker/dist/esm/utils/addToRange.js +0 -32
- package/dist/node_modules/react-day-picker/dist/esm/utils/dateMatchModifiers.js +0 -26
- package/dist/node_modules/react-day-picker/dist/esm/utils/rangeContainsDayOfWeek.js +0 -15
- package/dist/node_modules/react-day-picker/dist/esm/utils/rangeContainsModifiers.js +0 -28
- package/dist/node_modules/react-day-picker/dist/esm/utils/rangeIncludesDate.js +0 -9
- package/dist/node_modules/react-day-picker/dist/esm/utils/rangeOverlaps.js +0 -8
- package/dist/node_modules/react-day-picker/dist/esm/utils/typeguards.js +0 -26
- package/dist/node_modules/react-dom/cjs/react-dom-server-legacy.browser.development.js +0 -3621
- package/dist/node_modules/react-dom/cjs/react-dom-server-legacy.browser.production.min.js +0 -1234
- package/dist/node_modules/react-dom/cjs/react-dom-server.browser.development.js +0 -3600
- package/dist/node_modules/react-dom/cjs/react-dom-server.browser.production.min.js +0 -1255
- package/dist/node_modules/react-dom/server.browser.js +0 -15
- package/dist/node_modules/react-imask/esm/hook.js +0 -75
- package/dist/node_modules/react-imask/esm/input.js +0 -23
- package/dist/node_modules/react-imask/esm/mixin.js +0 -131
- package/dist/node_modules/react-photoswipe-gallery/dist/context.js +0 -17
- package/dist/node_modules/react-photoswipe-gallery/dist/gallery.js +0 -216
- package/dist/node_modules/react-photoswipe-gallery/dist/helpers/ensure-ref-passed.js +0 -10
- package/dist/node_modules/react-photoswipe-gallery/dist/helpers/entry-item-ref-is-element.js +0 -4
- package/dist/node_modules/react-photoswipe-gallery/dist/helpers/get-base-url.js +0 -6
- package/dist/node_modules/react-photoswipe-gallery/dist/helpers/get-hash-value.js +0 -6
- package/dist/node_modules/react-photoswipe-gallery/dist/helpers/get-hash-without-gid-and-pid.js +0 -9
- package/dist/node_modules/react-photoswipe-gallery/dist/helpers/get-initial-active-slide-index.js +0 -6
- package/dist/node_modules/react-photoswipe-gallery/dist/helpers/get-slides-and-index-from-data-source.js +0 -39
- package/dist/node_modules/react-photoswipe-gallery/dist/helpers/get-slides-and-index-from-items-refs.js +0 -31
- package/dist/node_modules/react-photoswipe-gallery/dist/helpers/hash-includes-navigation-query-params.js +0 -8
- package/dist/node_modules/react-photoswipe-gallery/dist/helpers/hash-to-object.js +0 -9
- package/dist/node_modules/react-photoswipe-gallery/dist/helpers/item-to-slide.js +0 -37
- package/dist/node_modules/react-photoswipe-gallery/dist/helpers/object-to-hash.js +0 -6
- package/dist/node_modules/react-photoswipe-gallery/dist/helpers/sort-nodes.js +0 -6
- package/dist/node_modules/react-photoswipe-gallery/dist/hooks.js +0 -22
- package/dist/node_modules/react-photoswipe-gallery/dist/item.js +0 -54
- package/dist/node_modules/react-photoswipe-gallery/dist/lightbox-stub.js +0 -8
- package/dist/node_modules/react-photoswipe-gallery/dist/no-ref-error.js +0 -14
- package/dist/node_modules/react-photoswipe-gallery/dist/no-source-id-error.js +0 -18
- package/dist/node_modules/react-reconciler/cjs/react-reconciler-constants.development.js +0 -32
- package/dist/node_modules/react-reconciler/cjs/react-reconciler-constants.production.min.js +0 -17
- package/dist/node_modules/react-reconciler/cjs/react-reconciler.development.js +0 -9139
- package/dist/node_modules/react-reconciler/cjs/react-reconciler.production.min.js +0 -3778
- package/dist/node_modules/react-reconciler/constants.js +0 -10
- package/dist/node_modules/react-reconciler/index.js +0 -10
- package/dist/node_modules/react-use-measure/dist/index.js +0 -60
- package/dist/node_modules/rope-sequence/dist/index.js +0 -100
- package/dist/node_modules/scheduler/cjs/scheduler.development.js +0 -277
- package/dist/node_modules/scheduler/cjs/scheduler.production.min.js +0 -213
- package/dist/node_modules/scheduler/index.js +0 -10
- package/dist/node_modules/three/build/three.module.js +0 -20599
- package/dist/node_modules/three-stdlib/_polyfill/LoaderUtils.js +0 -15
- package/dist/node_modules/three-stdlib/_polyfill/constants.js +0 -5
- package/dist/node_modules/three-stdlib/libs/MeshoptDecoder.js +0 -201
- package/dist/node_modules/three-stdlib/loaders/DRACOLoader.js +0 -246
- package/dist/node_modules/three-stdlib/loaders/GLTFLoader.js +0 -1670
- package/dist/node_modules/three-stdlib/utils/BufferGeometryUtils.js +0 -34
- package/dist/node_modules/tippy.js/dist/tippy.esm.js +0 -813
- package/dist/node_modules/w3c-keyname/index.js +0 -93
- package/dist/node_modules/zustand/esm/index.js +0 -61
|
@@ -1,1311 +0,0 @@
|
|
|
1
|
-
import { Raycaster as Fe, OrthographicCamera as Ie, PerspectiveCamera as Be, Scene as He, PCFSoftShadowMap as Q, VSMShadowMap as Ne, PCFShadowMap as qe, BasicShadowMap as Ge, NoToneMapping as Ue, ACESFilmicToneMapping as Ve, WebGLRenderer as We, Camera as $e, Vector3 as X, Vector2 as Xe, Clock as Ye, Layers as Z, RGBAFormat as Ke, UnsignedByteType as Je } from "../../../three/build/three.module.js";
|
|
2
|
-
import * as D from "react";
|
|
3
|
-
import { c as H } from "../../../../_virtual/constants.js";
|
|
4
|
-
import Qe from "../../../zustand/esm/index.js";
|
|
5
|
-
import { suspend as Ze, preload as et, clear as tt } from "../node_modules/suspend-react/index.js";
|
|
6
|
-
import { jsx as Pe } from "react/jsx-runtime";
|
|
7
|
-
import nt from "../../../../_virtual/index4.js";
|
|
8
|
-
import { s as he } from "../../../../_virtual/index5.js";
|
|
9
|
-
const fe = {}, Tt = (e) => void Object.assign(fe, e);
|
|
10
|
-
function rt(e, n) {
|
|
11
|
-
function o(t, {
|
|
12
|
-
args: r = [],
|
|
13
|
-
attach: f,
|
|
14
|
-
...l
|
|
15
|
-
}, c) {
|
|
16
|
-
let w = `${t[0].toUpperCase()}${t.slice(1)}`, h;
|
|
17
|
-
if (t === "primitive") {
|
|
18
|
-
if (l.object === void 0) throw new Error("R3F: Primitives without 'object' are invalid!");
|
|
19
|
-
const s = l.object;
|
|
20
|
-
h = I(s, {
|
|
21
|
-
type: t,
|
|
22
|
-
root: c,
|
|
23
|
-
attach: f,
|
|
24
|
-
primitive: !0
|
|
25
|
-
});
|
|
26
|
-
} else {
|
|
27
|
-
const s = fe[w];
|
|
28
|
-
if (!s)
|
|
29
|
-
throw new Error(`R3F: ${w} is not part of the THREE namespace! Did you forget to extend? See: https://docs.pmnd.rs/react-three-fiber/api/objects#using-3rd-party-objects-declaratively`);
|
|
30
|
-
if (!Array.isArray(r)) throw new Error("R3F: The args prop must be an array!");
|
|
31
|
-
h = I(new s(...r), {
|
|
32
|
-
type: t,
|
|
33
|
-
root: c,
|
|
34
|
-
attach: f,
|
|
35
|
-
// Save args in case we need to reconstruct later for HMR
|
|
36
|
-
memoizedProps: {
|
|
37
|
-
args: r
|
|
38
|
-
}
|
|
39
|
-
});
|
|
40
|
-
}
|
|
41
|
-
return h.__r3f.attach === void 0 && (h.isBufferGeometry ? h.__r3f.attach = "geometry" : h.isMaterial && (h.__r3f.attach = "material")), w !== "inject" && ne(h, l), h;
|
|
42
|
-
}
|
|
43
|
-
function i(t, r) {
|
|
44
|
-
let f = !1;
|
|
45
|
-
if (r) {
|
|
46
|
-
var l, c;
|
|
47
|
-
(l = r.__r3f) != null && l.attach ? te(t, r, r.__r3f.attach) : r.isObject3D && t.isObject3D && (t.add(r), f = !0), f || (c = t.__r3f) == null || c.objects.push(r), r.__r3f || I(r, {}), r.__r3f.parent = t, ce(r), B(r);
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
function u(t, r, f) {
|
|
51
|
-
let l = !1;
|
|
52
|
-
if (r) {
|
|
53
|
-
var c, w;
|
|
54
|
-
if ((c = r.__r3f) != null && c.attach)
|
|
55
|
-
te(t, r, r.__r3f.attach);
|
|
56
|
-
else if (r.isObject3D && t.isObject3D) {
|
|
57
|
-
r.parent = t, r.dispatchEvent({
|
|
58
|
-
type: "added"
|
|
59
|
-
}), t.dispatchEvent({
|
|
60
|
-
type: "childadded",
|
|
61
|
-
child: r
|
|
62
|
-
});
|
|
63
|
-
const h = t.children.filter((a) => a !== r), s = h.indexOf(f);
|
|
64
|
-
t.children = [...h.slice(0, s), r, ...h.slice(s)], l = !0;
|
|
65
|
-
}
|
|
66
|
-
l || (w = t.__r3f) == null || w.objects.push(r), r.__r3f || I(r, {}), r.__r3f.parent = t, ce(r), B(r);
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
function p(t, r, f = !1) {
|
|
70
|
-
t && [...t].forEach((l) => _(r, l, f));
|
|
71
|
-
}
|
|
72
|
-
function _(t, r, f) {
|
|
73
|
-
if (r) {
|
|
74
|
-
var l, c, w;
|
|
75
|
-
if (r.__r3f && (r.__r3f.parent = null), (l = t.__r3f) != null && l.objects && (t.__r3f.objects = t.__r3f.objects.filter((b) => b !== r)), (c = r.__r3f) != null && c.attach)
|
|
76
|
-
be(t, r, r.__r3f.attach);
|
|
77
|
-
else if (r.isObject3D && t.isObject3D) {
|
|
78
|
-
var h;
|
|
79
|
-
t.remove(r), (h = r.__r3f) != null && h.root && dt(Y(r), r);
|
|
80
|
-
}
|
|
81
|
-
const a = (w = r.__r3f) == null ? void 0 : w.primitive, m = !a && (f === void 0 ? r.dispose !== null : f);
|
|
82
|
-
if (!a) {
|
|
83
|
-
var s;
|
|
84
|
-
p((s = r.__r3f) == null ? void 0 : s.objects, r, m), p(r.children, r, m);
|
|
85
|
-
}
|
|
86
|
-
if (delete r.__r3f, m && r.dispose && r.type !== "Scene") {
|
|
87
|
-
const b = () => {
|
|
88
|
-
try {
|
|
89
|
-
r.dispose();
|
|
90
|
-
} catch {
|
|
91
|
-
}
|
|
92
|
-
};
|
|
93
|
-
typeof IS_REACT_ACT_ENVIRONMENT > "u" ? he.unstable_scheduleCallback(he.unstable_IdlePriority, b) : b();
|
|
94
|
-
}
|
|
95
|
-
B(t);
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
function g(t, r, f, l) {
|
|
99
|
-
var c;
|
|
100
|
-
const w = (c = t.__r3f) == null ? void 0 : c.parent;
|
|
101
|
-
if (!w) return;
|
|
102
|
-
const h = o(r, f, t.__r3f.root);
|
|
103
|
-
if (t.children) {
|
|
104
|
-
for (const s of t.children)
|
|
105
|
-
s.__r3f && i(h, s);
|
|
106
|
-
t.children = t.children.filter((s) => !s.__r3f);
|
|
107
|
-
}
|
|
108
|
-
t.__r3f.objects.forEach((s) => i(h, s)), t.__r3f.objects = [], t.__r3f.autoRemovedBeforeAppend || _(w, t), h.parent && (h.__r3f.autoRemovedBeforeAppend = !0), i(w, h), h.raycast && h.__r3f.eventCount && Y(h).getState().internal.interaction.push(h), [l, l.alternate].forEach((s) => {
|
|
109
|
-
s !== null && (s.stateNode = h, s.ref && (typeof s.ref == "function" ? s.ref(h) : s.ref.current = h));
|
|
110
|
-
});
|
|
111
|
-
}
|
|
112
|
-
const d = () => {
|
|
113
|
-
};
|
|
114
|
-
return {
|
|
115
|
-
reconciler: nt({
|
|
116
|
-
createInstance: o,
|
|
117
|
-
removeChild: _,
|
|
118
|
-
appendChild: i,
|
|
119
|
-
appendInitialChild: i,
|
|
120
|
-
insertBefore: u,
|
|
121
|
-
supportsMutation: !0,
|
|
122
|
-
isPrimaryRenderer: !1,
|
|
123
|
-
supportsPersistence: !1,
|
|
124
|
-
supportsHydration: !1,
|
|
125
|
-
noTimeout: -1,
|
|
126
|
-
appendChildToContainer: (t, r) => {
|
|
127
|
-
if (!r) return;
|
|
128
|
-
const f = t.getState().scene;
|
|
129
|
-
f.__r3f && (f.__r3f.root = t, i(f, r));
|
|
130
|
-
},
|
|
131
|
-
removeChildFromContainer: (t, r) => {
|
|
132
|
-
r && _(t.getState().scene, r);
|
|
133
|
-
},
|
|
134
|
-
insertInContainerBefore: (t, r, f) => {
|
|
135
|
-
if (!r || !f) return;
|
|
136
|
-
const l = t.getState().scene;
|
|
137
|
-
l.__r3f && u(l, r, f);
|
|
138
|
-
},
|
|
139
|
-
getRootHostContext: () => null,
|
|
140
|
-
getChildHostContext: (t) => t,
|
|
141
|
-
finalizeInitialChildren(t) {
|
|
142
|
-
var r;
|
|
143
|
-
return !!((r = t == null ? void 0 : t.__r3f) != null ? r : {}).handlers;
|
|
144
|
-
},
|
|
145
|
-
prepareUpdate(t, r, f, l) {
|
|
146
|
-
var c;
|
|
147
|
-
if (((c = t == null ? void 0 : t.__r3f) != null ? c : {}).primitive && l.object && l.object !== t)
|
|
148
|
-
return [!0];
|
|
149
|
-
{
|
|
150
|
-
const {
|
|
151
|
-
args: h = [],
|
|
152
|
-
children: s,
|
|
153
|
-
...a
|
|
154
|
-
} = l, {
|
|
155
|
-
args: m = [],
|
|
156
|
-
children: b,
|
|
157
|
-
...C
|
|
158
|
-
} = f;
|
|
159
|
-
if (!Array.isArray(h)) throw new Error("R3F: the args prop must be an array!");
|
|
160
|
-
if (h.some((M, j) => M !== m[j])) return [!0];
|
|
161
|
-
const S = Re(t, a, C, !0);
|
|
162
|
-
return S.changes.length ? [!1, S] : null;
|
|
163
|
-
}
|
|
164
|
-
},
|
|
165
|
-
commitUpdate(t, [r, f], l, c, w, h) {
|
|
166
|
-
r ? g(t, l, w, h) : ne(t, f);
|
|
167
|
-
},
|
|
168
|
-
commitMount(t, r, f, l) {
|
|
169
|
-
var c;
|
|
170
|
-
const w = (c = t.__r3f) != null ? c : {};
|
|
171
|
-
t.raycast && w.handlers && w.eventCount && Y(t).getState().internal.interaction.push(t);
|
|
172
|
-
},
|
|
173
|
-
getPublicInstance: (t) => t,
|
|
174
|
-
prepareForCommit: () => null,
|
|
175
|
-
preparePortalMount: (t) => I(t.getState().scene),
|
|
176
|
-
resetAfterCommit: () => {
|
|
177
|
-
},
|
|
178
|
-
shouldSetTextContent: () => !1,
|
|
179
|
-
clearContainer: () => !1,
|
|
180
|
-
hideInstance(t) {
|
|
181
|
-
var r;
|
|
182
|
-
const {
|
|
183
|
-
attach: f,
|
|
184
|
-
parent: l
|
|
185
|
-
} = (r = t.__r3f) != null ? r : {};
|
|
186
|
-
f && l && be(l, t, f), t.isObject3D && (t.visible = !1), B(t);
|
|
187
|
-
},
|
|
188
|
-
unhideInstance(t, r) {
|
|
189
|
-
var f;
|
|
190
|
-
const {
|
|
191
|
-
attach: l,
|
|
192
|
-
parent: c
|
|
193
|
-
} = (f = t.__r3f) != null ? f : {};
|
|
194
|
-
l && c && te(c, t, l), (t.isObject3D && r.visible == null || r.visible) && (t.visible = !0), B(t);
|
|
195
|
-
},
|
|
196
|
-
createTextInstance: d,
|
|
197
|
-
hideTextInstance: d,
|
|
198
|
-
unhideTextInstance: d,
|
|
199
|
-
// https://github.com/pmndrs/react-three-fiber/pull/2360#discussion_r916356874
|
|
200
|
-
// @ts-expect-error
|
|
201
|
-
getCurrentEventPriority: () => n ? n() : H.DefaultEventPriority,
|
|
202
|
-
beforeActiveInstanceBlur: () => {
|
|
203
|
-
},
|
|
204
|
-
afterActiveInstanceBlur: () => {
|
|
205
|
-
},
|
|
206
|
-
detachDeletedInstance: () => {
|
|
207
|
-
},
|
|
208
|
-
now: typeof performance < "u" && E.fun(performance.now) ? performance.now : E.fun(Date.now) ? Date.now : () => 0,
|
|
209
|
-
// https://github.com/pmndrs/react-three-fiber/pull/2360#discussion_r920883503
|
|
210
|
-
scheduleTimeout: E.fun(setTimeout) ? setTimeout : void 0,
|
|
211
|
-
cancelTimeout: E.fun(clearTimeout) ? clearTimeout : void 0
|
|
212
|
-
}),
|
|
213
|
-
applyProps: ne
|
|
214
|
-
};
|
|
215
|
-
}
|
|
216
|
-
var ge, ye;
|
|
217
|
-
const ee = (e) => "colorSpace" in e || "outputColorSpace" in e, Me = () => {
|
|
218
|
-
var e;
|
|
219
|
-
return (e = fe.ColorManagement) != null ? e : null;
|
|
220
|
-
}, Oe = (e) => e && e.isOrthographicCamera, At = (e) => e && e.hasOwnProperty("current"), J = typeof window < "u" && ((ge = window.document) != null && ge.createElement || ((ye = window.navigator) == null ? void 0 : ye.product) === "ReactNative") ? D.useLayoutEffect : D.useEffect;
|
|
221
|
-
function ot(e) {
|
|
222
|
-
const n = D.useRef(e);
|
|
223
|
-
return J(() => void (n.current = e), [e]), n;
|
|
224
|
-
}
|
|
225
|
-
function kt({
|
|
226
|
-
set: e
|
|
227
|
-
}) {
|
|
228
|
-
return J(() => (e(new Promise(() => null)), () => e(!1)), [e]), null;
|
|
229
|
-
}
|
|
230
|
-
class it extends D.Component {
|
|
231
|
-
constructor(...n) {
|
|
232
|
-
super(...n), this.state = {
|
|
233
|
-
error: !1
|
|
234
|
-
};
|
|
235
|
-
}
|
|
236
|
-
componentDidCatch(n) {
|
|
237
|
-
this.props.set(n);
|
|
238
|
-
}
|
|
239
|
-
render() {
|
|
240
|
-
return this.state.error ? null : this.props.children;
|
|
241
|
-
}
|
|
242
|
-
}
|
|
243
|
-
it.getDerivedStateFromError = () => ({
|
|
244
|
-
error: !0
|
|
245
|
-
});
|
|
246
|
-
const xe = "__default", _e = /* @__PURE__ */ new Map(), st = (e) => e && !!e.memoized && !!e.changes;
|
|
247
|
-
function je(e) {
|
|
248
|
-
var n;
|
|
249
|
-
const o = typeof window < "u" ? (n = window.devicePixelRatio) != null ? n : 2 : 1;
|
|
250
|
-
return Array.isArray(e) ? Math.min(Math.max(e[0], o), e[1]) : e;
|
|
251
|
-
}
|
|
252
|
-
const G = (e) => {
|
|
253
|
-
var n;
|
|
254
|
-
return (n = e.__r3f) == null ? void 0 : n.root.getState();
|
|
255
|
-
};
|
|
256
|
-
function Y(e) {
|
|
257
|
-
let n = e.__r3f.root;
|
|
258
|
-
for (; n.getState().previousRoot; ) n = n.getState().previousRoot;
|
|
259
|
-
return n;
|
|
260
|
-
}
|
|
261
|
-
const E = {
|
|
262
|
-
obj: (e) => e === Object(e) && !E.arr(e) && typeof e != "function",
|
|
263
|
-
fun: (e) => typeof e == "function",
|
|
264
|
-
str: (e) => typeof e == "string",
|
|
265
|
-
num: (e) => typeof e == "number",
|
|
266
|
-
boo: (e) => typeof e == "boolean",
|
|
267
|
-
und: (e) => e === void 0,
|
|
268
|
-
arr: (e) => Array.isArray(e),
|
|
269
|
-
equ(e, n, {
|
|
270
|
-
arrays: o = "shallow",
|
|
271
|
-
objects: i = "reference",
|
|
272
|
-
strict: u = !0
|
|
273
|
-
} = {}) {
|
|
274
|
-
if (typeof e != typeof n || !!e != !!n) return !1;
|
|
275
|
-
if (E.str(e) || E.num(e) || E.boo(e)) return e === n;
|
|
276
|
-
const p = E.obj(e);
|
|
277
|
-
if (p && i === "reference") return e === n;
|
|
278
|
-
const _ = E.arr(e);
|
|
279
|
-
if (_ && o === "reference") return e === n;
|
|
280
|
-
if ((_ || p) && e === n) return !0;
|
|
281
|
-
let g;
|
|
282
|
-
for (g in e) if (!(g in n)) return !1;
|
|
283
|
-
if (p && o === "shallow" && i === "shallow") {
|
|
284
|
-
for (g in u ? n : e) if (!E.equ(e[g], n[g], {
|
|
285
|
-
strict: u,
|
|
286
|
-
objects: "reference"
|
|
287
|
-
})) return !1;
|
|
288
|
-
} else
|
|
289
|
-
for (g in u ? n : e) if (e[g] !== n[g]) return !1;
|
|
290
|
-
if (E.und(g)) {
|
|
291
|
-
if (_ && e.length === 0 && n.length === 0 || p && Object.keys(e).length === 0 && Object.keys(n).length === 0) return !0;
|
|
292
|
-
if (e !== n) return !1;
|
|
293
|
-
}
|
|
294
|
-
return !0;
|
|
295
|
-
}
|
|
296
|
-
};
|
|
297
|
-
function at(e) {
|
|
298
|
-
const n = {
|
|
299
|
-
nodes: {},
|
|
300
|
-
materials: {}
|
|
301
|
-
};
|
|
302
|
-
return e && e.traverse((o) => {
|
|
303
|
-
o.name && (n.nodes[o.name] = o), o.material && !n.materials[o.material.name] && (n.materials[o.material.name] = o.material);
|
|
304
|
-
}), n;
|
|
305
|
-
}
|
|
306
|
-
function lt(e) {
|
|
307
|
-
e.dispose && e.type !== "Scene" && e.dispose();
|
|
308
|
-
for (const n in e)
|
|
309
|
-
n.dispose == null || n.dispose(), delete e[n];
|
|
310
|
-
}
|
|
311
|
-
function I(e, n) {
|
|
312
|
-
const o = e;
|
|
313
|
-
return o.__r3f = {
|
|
314
|
-
type: "",
|
|
315
|
-
root: null,
|
|
316
|
-
previousAttach: null,
|
|
317
|
-
memoizedProps: {},
|
|
318
|
-
eventCount: 0,
|
|
319
|
-
handlers: {},
|
|
320
|
-
objects: [],
|
|
321
|
-
parent: null,
|
|
322
|
-
...n
|
|
323
|
-
}, e;
|
|
324
|
-
}
|
|
325
|
-
function le(e, n) {
|
|
326
|
-
let o = e;
|
|
327
|
-
if (n.includes("-")) {
|
|
328
|
-
const i = n.split("-"), u = i.pop();
|
|
329
|
-
return o = i.reduce((p, _) => p[_], e), {
|
|
330
|
-
target: o,
|
|
331
|
-
key: u
|
|
332
|
-
};
|
|
333
|
-
} else return {
|
|
334
|
-
target: o,
|
|
335
|
-
key: n
|
|
336
|
-
};
|
|
337
|
-
}
|
|
338
|
-
const we = /-\d+$/;
|
|
339
|
-
function te(e, n, o) {
|
|
340
|
-
if (E.str(o)) {
|
|
341
|
-
if (we.test(o)) {
|
|
342
|
-
const p = o.replace(we, ""), {
|
|
343
|
-
target: _,
|
|
344
|
-
key: g
|
|
345
|
-
} = le(e, p);
|
|
346
|
-
Array.isArray(_[g]) || (_[g] = []);
|
|
347
|
-
}
|
|
348
|
-
const {
|
|
349
|
-
target: i,
|
|
350
|
-
key: u
|
|
351
|
-
} = le(e, o);
|
|
352
|
-
n.__r3f.previousAttach = i[u], i[u] = n;
|
|
353
|
-
} else n.__r3f.previousAttach = o(e, n);
|
|
354
|
-
}
|
|
355
|
-
function be(e, n, o) {
|
|
356
|
-
var i, u;
|
|
357
|
-
if (E.str(o)) {
|
|
358
|
-
const {
|
|
359
|
-
target: p,
|
|
360
|
-
key: _
|
|
361
|
-
} = le(e, o), g = n.__r3f.previousAttach;
|
|
362
|
-
g === void 0 ? delete p[_] : p[_] = g;
|
|
363
|
-
} else (i = n.__r3f) == null || i.previousAttach == null || i.previousAttach(e, n);
|
|
364
|
-
(u = n.__r3f) == null || delete u.previousAttach;
|
|
365
|
-
}
|
|
366
|
-
function Re(e, {
|
|
367
|
-
children: n,
|
|
368
|
-
key: o,
|
|
369
|
-
ref: i,
|
|
370
|
-
...u
|
|
371
|
-
}, {
|
|
372
|
-
children: p,
|
|
373
|
-
key: _,
|
|
374
|
-
ref: g,
|
|
375
|
-
...d
|
|
376
|
-
} = {}, v = !1) {
|
|
377
|
-
const t = e.__r3f, r = Object.entries(u), f = [];
|
|
378
|
-
if (v) {
|
|
379
|
-
const c = Object.keys(d);
|
|
380
|
-
for (let w = 0; w < c.length; w++)
|
|
381
|
-
u.hasOwnProperty(c[w]) || r.unshift([c[w], xe + "remove"]);
|
|
382
|
-
}
|
|
383
|
-
r.forEach(([c, w]) => {
|
|
384
|
-
var h;
|
|
385
|
-
if ((h = e.__r3f) != null && h.primitive && c === "object" || E.equ(w, d[c])) return;
|
|
386
|
-
if (/^on(Pointer|Click|DoubleClick|ContextMenu|Wheel)/.test(c)) return f.push([c, w, !0, []]);
|
|
387
|
-
let s = [];
|
|
388
|
-
c.includes("-") && (s = c.split("-")), f.push([c, w, !1, s]);
|
|
389
|
-
for (const a in u) {
|
|
390
|
-
const m = u[a];
|
|
391
|
-
a.startsWith(`${c}-`) && f.push([a, m, !1, a.split("-")]);
|
|
392
|
-
}
|
|
393
|
-
});
|
|
394
|
-
const l = {
|
|
395
|
-
...u
|
|
396
|
-
};
|
|
397
|
-
return t != null && t.memoizedProps && t != null && t.memoizedProps.args && (l.args = t.memoizedProps.args), t != null && t.memoizedProps && t != null && t.memoizedProps.attach && (l.attach = t.memoizedProps.attach), {
|
|
398
|
-
memoized: l,
|
|
399
|
-
changes: f
|
|
400
|
-
};
|
|
401
|
-
}
|
|
402
|
-
const ct = typeof process < "u" && process.env.NODE_ENV !== "production";
|
|
403
|
-
function ne(e, n) {
|
|
404
|
-
var o;
|
|
405
|
-
const i = e.__r3f, u = i == null ? void 0 : i.root, p = u == null || u.getState == null ? void 0 : u.getState(), {
|
|
406
|
-
memoized: _,
|
|
407
|
-
changes: g
|
|
408
|
-
} = st(n) ? n : Re(e, n), d = i == null ? void 0 : i.eventCount;
|
|
409
|
-
e.__r3f && (e.__r3f.memoizedProps = _);
|
|
410
|
-
for (let f = 0; f < g.length; f++) {
|
|
411
|
-
let [l, c, w, h] = g[f];
|
|
412
|
-
if (ee(e)) {
|
|
413
|
-
const b = "srgb", C = "srgb-linear";
|
|
414
|
-
l === "encoding" ? (l = "colorSpace", c = c === 3001 ? b : C) : l === "outputEncoding" && (l = "outputColorSpace", c = c === 3001 ? b : C);
|
|
415
|
-
}
|
|
416
|
-
let s = e, a = s[l];
|
|
417
|
-
if (h.length && (a = h.reduce((m, b) => m[b], e), !(a && a.set))) {
|
|
418
|
-
const [m, ...b] = h.reverse();
|
|
419
|
-
s = b.reverse().reduce((C, S) => C[S], e), l = m;
|
|
420
|
-
}
|
|
421
|
-
if (c === xe + "remove")
|
|
422
|
-
if (s.constructor) {
|
|
423
|
-
let m = _e.get(s.constructor);
|
|
424
|
-
m || (m = new s.constructor(), _e.set(s.constructor, m)), c = m[l];
|
|
425
|
-
} else
|
|
426
|
-
c = 0;
|
|
427
|
-
if (w && i)
|
|
428
|
-
c ? i.handlers[l] = c : delete i.handlers[l], i.eventCount = Object.keys(i.handlers).length;
|
|
429
|
-
else if (a && a.set && (a.copy || a instanceof Z)) {
|
|
430
|
-
if (Array.isArray(c))
|
|
431
|
-
a.fromArray ? a.fromArray(c) : a.set(...c);
|
|
432
|
-
else if (a.copy && c && c.constructor && // Some environments may break strict identity checks by duplicating versions of three.js.
|
|
433
|
-
// Loosen to unminified names, ignoring descendents.
|
|
434
|
-
// https://github.com/pmndrs/react-three-fiber/issues/2856
|
|
435
|
-
// TODO: fix upstream and remove in v9
|
|
436
|
-
(ct ? a.constructor.name === c.constructor.name : a.constructor === c.constructor))
|
|
437
|
-
a.copy(c);
|
|
438
|
-
else if (c !== void 0) {
|
|
439
|
-
var v;
|
|
440
|
-
const m = (v = a) == null ? void 0 : v.isColor;
|
|
441
|
-
!m && a.setScalar ? a.setScalar(c) : a instanceof Z && c instanceof Z ? a.mask = c.mask : a.set(c), !Me() && p && !p.linear && m && a.convertSRGBToLinear();
|
|
442
|
-
}
|
|
443
|
-
} else {
|
|
444
|
-
var t;
|
|
445
|
-
if (s[l] = c, (t = s[l]) != null && t.isTexture && // sRGB textures must be RGBA8 since r137 https://github.com/mrdoob/three.js/pull/23129
|
|
446
|
-
s[l].format === Ke && s[l].type === Je && p) {
|
|
447
|
-
const m = s[l];
|
|
448
|
-
ee(m) && ee(p.gl) ? m.colorSpace = p.gl.outputColorSpace : m.encoding = p.gl.outputEncoding;
|
|
449
|
-
}
|
|
450
|
-
}
|
|
451
|
-
B(e);
|
|
452
|
-
}
|
|
453
|
-
if (i && i.parent && e.raycast && d !== i.eventCount) {
|
|
454
|
-
const f = Y(e).getState().internal, l = f.interaction.indexOf(e);
|
|
455
|
-
l > -1 && f.interaction.splice(l, 1), i.eventCount && f.interaction.push(e);
|
|
456
|
-
}
|
|
457
|
-
return !(g.length === 1 && g[0][0] === "onUpdate") && g.length && (o = e.__r3f) != null && o.parent && ce(e), e;
|
|
458
|
-
}
|
|
459
|
-
function B(e) {
|
|
460
|
-
var n, o;
|
|
461
|
-
const i = (n = e.__r3f) == null || (o = n.root) == null || o.getState == null ? void 0 : o.getState();
|
|
462
|
-
i && i.internal.frames === 0 && i.invalidate();
|
|
463
|
-
}
|
|
464
|
-
function ce(e) {
|
|
465
|
-
e.onUpdate == null || e.onUpdate(e);
|
|
466
|
-
}
|
|
467
|
-
function ft(e, n) {
|
|
468
|
-
e.manual || (Oe(e) ? (e.left = n.width / -2, e.right = n.width / 2, e.top = n.height / 2, e.bottom = n.height / -2) : e.aspect = n.width / n.height, e.updateProjectionMatrix(), e.updateMatrixWorld());
|
|
469
|
-
}
|
|
470
|
-
function W(e) {
|
|
471
|
-
return (e.eventObject || e.object).uuid + "/" + e.index + e.instanceId;
|
|
472
|
-
}
|
|
473
|
-
function ut() {
|
|
474
|
-
var e;
|
|
475
|
-
const n = typeof self < "u" && self || typeof window < "u" && window;
|
|
476
|
-
if (!n) return H.DefaultEventPriority;
|
|
477
|
-
switch ((e = n.event) == null ? void 0 : e.type) {
|
|
478
|
-
case "click":
|
|
479
|
-
case "contextmenu":
|
|
480
|
-
case "dblclick":
|
|
481
|
-
case "pointercancel":
|
|
482
|
-
case "pointerdown":
|
|
483
|
-
case "pointerup":
|
|
484
|
-
return H.DiscreteEventPriority;
|
|
485
|
-
case "pointermove":
|
|
486
|
-
case "pointerout":
|
|
487
|
-
case "pointerover":
|
|
488
|
-
case "pointerenter":
|
|
489
|
-
case "pointerleave":
|
|
490
|
-
case "wheel":
|
|
491
|
-
return H.ContinuousEventPriority;
|
|
492
|
-
default:
|
|
493
|
-
return H.DefaultEventPriority;
|
|
494
|
-
}
|
|
495
|
-
}
|
|
496
|
-
function Te(e, n, o, i) {
|
|
497
|
-
const u = o.get(n);
|
|
498
|
-
u && (o.delete(n), o.size === 0 && (e.delete(i), u.target.releasePointerCapture(i)));
|
|
499
|
-
}
|
|
500
|
-
function dt(e, n) {
|
|
501
|
-
const {
|
|
502
|
-
internal: o
|
|
503
|
-
} = e.getState();
|
|
504
|
-
o.interaction = o.interaction.filter((i) => i !== n), o.initialHits = o.initialHits.filter((i) => i !== n), o.hovered.forEach((i, u) => {
|
|
505
|
-
(i.eventObject === n || i.object === n) && o.hovered.delete(u);
|
|
506
|
-
}), o.capturedMap.forEach((i, u) => {
|
|
507
|
-
Te(o.capturedMap, n, i, u);
|
|
508
|
-
});
|
|
509
|
-
}
|
|
510
|
-
function pt(e) {
|
|
511
|
-
function n(d) {
|
|
512
|
-
const {
|
|
513
|
-
internal: v
|
|
514
|
-
} = e.getState(), t = d.offsetX - v.initialClick[0], r = d.offsetY - v.initialClick[1];
|
|
515
|
-
return Math.round(Math.sqrt(t * t + r * r));
|
|
516
|
-
}
|
|
517
|
-
function o(d) {
|
|
518
|
-
return d.filter((v) => ["Move", "Over", "Enter", "Out", "Leave"].some((t) => {
|
|
519
|
-
var r;
|
|
520
|
-
return (r = v.__r3f) == null ? void 0 : r.handlers["onPointer" + t];
|
|
521
|
-
}));
|
|
522
|
-
}
|
|
523
|
-
function i(d, v) {
|
|
524
|
-
const t = e.getState(), r = /* @__PURE__ */ new Set(), f = [], l = v ? v(t.internal.interaction) : t.internal.interaction;
|
|
525
|
-
for (let s = 0; s < l.length; s++) {
|
|
526
|
-
const a = G(l[s]);
|
|
527
|
-
a && (a.raycaster.camera = void 0);
|
|
528
|
-
}
|
|
529
|
-
t.previousRoot || t.events.compute == null || t.events.compute(d, t);
|
|
530
|
-
function c(s) {
|
|
531
|
-
const a = G(s);
|
|
532
|
-
if (!a || !a.events.enabled || a.raycaster.camera === null) return [];
|
|
533
|
-
if (a.raycaster.camera === void 0) {
|
|
534
|
-
var m;
|
|
535
|
-
a.events.compute == null || a.events.compute(d, a, (m = a.previousRoot) == null ? void 0 : m.getState()), a.raycaster.camera === void 0 && (a.raycaster.camera = null);
|
|
536
|
-
}
|
|
537
|
-
return a.raycaster.camera ? a.raycaster.intersectObject(s, !0) : [];
|
|
538
|
-
}
|
|
539
|
-
let w = l.flatMap(c).sort((s, a) => {
|
|
540
|
-
const m = G(s.object), b = G(a.object);
|
|
541
|
-
return !m || !b ? s.distance - a.distance : b.events.priority - m.events.priority || s.distance - a.distance;
|
|
542
|
-
}).filter((s) => {
|
|
543
|
-
const a = W(s);
|
|
544
|
-
return r.has(a) ? !1 : (r.add(a), !0);
|
|
545
|
-
});
|
|
546
|
-
t.events.filter && (w = t.events.filter(w, t));
|
|
547
|
-
for (const s of w) {
|
|
548
|
-
let a = s.object;
|
|
549
|
-
for (; a; ) {
|
|
550
|
-
var h;
|
|
551
|
-
(h = a.__r3f) != null && h.eventCount && f.push({
|
|
552
|
-
...s,
|
|
553
|
-
eventObject: a
|
|
554
|
-
}), a = a.parent;
|
|
555
|
-
}
|
|
556
|
-
}
|
|
557
|
-
if ("pointerId" in d && t.internal.capturedMap.has(d.pointerId))
|
|
558
|
-
for (let s of t.internal.capturedMap.get(d.pointerId).values())
|
|
559
|
-
r.has(W(s.intersection)) || f.push(s.intersection);
|
|
560
|
-
return f;
|
|
561
|
-
}
|
|
562
|
-
function u(d, v, t, r) {
|
|
563
|
-
const f = e.getState();
|
|
564
|
-
if (d.length) {
|
|
565
|
-
const l = {
|
|
566
|
-
stopped: !1
|
|
567
|
-
};
|
|
568
|
-
for (const c of d) {
|
|
569
|
-
const w = G(c.object) || f, {
|
|
570
|
-
raycaster: h,
|
|
571
|
-
pointer: s,
|
|
572
|
-
camera: a,
|
|
573
|
-
internal: m
|
|
574
|
-
} = w, b = new X(s.x, s.y, 0).unproject(a), C = (x) => {
|
|
575
|
-
var y, P;
|
|
576
|
-
return (y = (P = m.capturedMap.get(x)) == null ? void 0 : P.has(c.eventObject)) != null ? y : !1;
|
|
577
|
-
}, S = (x) => {
|
|
578
|
-
const y = {
|
|
579
|
-
intersection: c,
|
|
580
|
-
target: v.target
|
|
581
|
-
};
|
|
582
|
-
m.capturedMap.has(x) ? m.capturedMap.get(x).set(c.eventObject, y) : m.capturedMap.set(x, /* @__PURE__ */ new Map([[c.eventObject, y]])), v.target.setPointerCapture(x);
|
|
583
|
-
}, M = (x) => {
|
|
584
|
-
const y = m.capturedMap.get(x);
|
|
585
|
-
y && Te(m.capturedMap, c.eventObject, y, x);
|
|
586
|
-
};
|
|
587
|
-
let j = {};
|
|
588
|
-
for (let x in v) {
|
|
589
|
-
let y = v[x];
|
|
590
|
-
typeof y != "function" && (j[x] = y);
|
|
591
|
-
}
|
|
592
|
-
let O = {
|
|
593
|
-
...c,
|
|
594
|
-
...j,
|
|
595
|
-
pointer: s,
|
|
596
|
-
intersections: d,
|
|
597
|
-
stopped: l.stopped,
|
|
598
|
-
delta: t,
|
|
599
|
-
unprojectedPoint: b,
|
|
600
|
-
ray: h.ray,
|
|
601
|
-
camera: a,
|
|
602
|
-
// Hijack stopPropagation, which just sets a flag
|
|
603
|
-
stopPropagation() {
|
|
604
|
-
const x = "pointerId" in v && m.capturedMap.get(v.pointerId);
|
|
605
|
-
if (
|
|
606
|
-
// ...if this pointer hasn't been captured
|
|
607
|
-
(!x || // ... or if the hit object is capturing the pointer
|
|
608
|
-
x.has(c.eventObject)) && (O.stopped = l.stopped = !0, m.hovered.size && Array.from(m.hovered.values()).find((y) => y.eventObject === c.eventObject))
|
|
609
|
-
) {
|
|
610
|
-
const y = d.slice(0, d.indexOf(c));
|
|
611
|
-
p([...y, c]);
|
|
612
|
-
}
|
|
613
|
-
},
|
|
614
|
-
// there should be a distinction between target and currentTarget
|
|
615
|
-
target: {
|
|
616
|
-
hasPointerCapture: C,
|
|
617
|
-
setPointerCapture: S,
|
|
618
|
-
releasePointerCapture: M
|
|
619
|
-
},
|
|
620
|
-
currentTarget: {
|
|
621
|
-
hasPointerCapture: C,
|
|
622
|
-
setPointerCapture: S,
|
|
623
|
-
releasePointerCapture: M
|
|
624
|
-
},
|
|
625
|
-
nativeEvent: v
|
|
626
|
-
};
|
|
627
|
-
if (r(O), l.stopped === !0) break;
|
|
628
|
-
}
|
|
629
|
-
}
|
|
630
|
-
return d;
|
|
631
|
-
}
|
|
632
|
-
function p(d) {
|
|
633
|
-
const {
|
|
634
|
-
internal: v
|
|
635
|
-
} = e.getState();
|
|
636
|
-
for (const t of v.hovered.values())
|
|
637
|
-
if (!d.length || !d.find((r) => r.object === t.object && r.index === t.index && r.instanceId === t.instanceId)) {
|
|
638
|
-
const f = t.eventObject.__r3f, l = f == null ? void 0 : f.handlers;
|
|
639
|
-
if (v.hovered.delete(W(t)), f != null && f.eventCount) {
|
|
640
|
-
const c = {
|
|
641
|
-
...t,
|
|
642
|
-
intersections: d
|
|
643
|
-
};
|
|
644
|
-
l.onPointerOut == null || l.onPointerOut(c), l.onPointerLeave == null || l.onPointerLeave(c);
|
|
645
|
-
}
|
|
646
|
-
}
|
|
647
|
-
}
|
|
648
|
-
function _(d, v) {
|
|
649
|
-
for (let t = 0; t < v.length; t++) {
|
|
650
|
-
const r = v[t].__r3f;
|
|
651
|
-
r == null || r.handlers.onPointerMissed == null || r.handlers.onPointerMissed(d);
|
|
652
|
-
}
|
|
653
|
-
}
|
|
654
|
-
function g(d) {
|
|
655
|
-
switch (d) {
|
|
656
|
-
case "onPointerLeave":
|
|
657
|
-
case "onPointerCancel":
|
|
658
|
-
return () => p([]);
|
|
659
|
-
case "onLostPointerCapture":
|
|
660
|
-
return (v) => {
|
|
661
|
-
const {
|
|
662
|
-
internal: t
|
|
663
|
-
} = e.getState();
|
|
664
|
-
"pointerId" in v && t.capturedMap.has(v.pointerId) && requestAnimationFrame(() => {
|
|
665
|
-
t.capturedMap.has(v.pointerId) && (t.capturedMap.delete(v.pointerId), p([]));
|
|
666
|
-
});
|
|
667
|
-
};
|
|
668
|
-
}
|
|
669
|
-
return function(t) {
|
|
670
|
-
const {
|
|
671
|
-
onPointerMissed: r,
|
|
672
|
-
internal: f
|
|
673
|
-
} = e.getState();
|
|
674
|
-
f.lastEvent.current = t;
|
|
675
|
-
const l = d === "onPointerMove", c = d === "onClick" || d === "onContextMenu" || d === "onDoubleClick", h = i(t, l ? o : void 0), s = c ? n(t) : 0;
|
|
676
|
-
d === "onPointerDown" && (f.initialClick = [t.offsetX, t.offsetY], f.initialHits = h.map((m) => m.eventObject)), c && !h.length && s <= 2 && (_(t, f.interaction), r && r(t)), l && p(h);
|
|
677
|
-
function a(m) {
|
|
678
|
-
const b = m.eventObject, C = b.__r3f, S = C == null ? void 0 : C.handlers;
|
|
679
|
-
if (C != null && C.eventCount)
|
|
680
|
-
if (l) {
|
|
681
|
-
if (S.onPointerOver || S.onPointerEnter || S.onPointerOut || S.onPointerLeave) {
|
|
682
|
-
const M = W(m), j = f.hovered.get(M);
|
|
683
|
-
j ? j.stopped && m.stopPropagation() : (f.hovered.set(M, m), S.onPointerOver == null || S.onPointerOver(m), S.onPointerEnter == null || S.onPointerEnter(m));
|
|
684
|
-
}
|
|
685
|
-
S.onPointerMove == null || S.onPointerMove(m);
|
|
686
|
-
} else {
|
|
687
|
-
const M = S[d];
|
|
688
|
-
M ? (!c || f.initialHits.includes(b)) && (_(t, f.interaction.filter((j) => !f.initialHits.includes(j))), M(m)) : c && f.initialHits.includes(b) && _(t, f.interaction.filter((j) => !f.initialHits.includes(j)));
|
|
689
|
-
}
|
|
690
|
-
}
|
|
691
|
-
u(h, t, s, a);
|
|
692
|
-
};
|
|
693
|
-
}
|
|
694
|
-
return {
|
|
695
|
-
handlePointer: g
|
|
696
|
-
};
|
|
697
|
-
}
|
|
698
|
-
const Ae = (e) => !!(e != null && e.render), ke = /* @__PURE__ */ D.createContext(null), vt = (e, n) => {
|
|
699
|
-
const o = Qe((g, d) => {
|
|
700
|
-
const v = new X(), t = new X(), r = new X();
|
|
701
|
-
function f(s = d().camera, a = t, m = d().size) {
|
|
702
|
-
const {
|
|
703
|
-
width: b,
|
|
704
|
-
height: C,
|
|
705
|
-
top: S,
|
|
706
|
-
left: M
|
|
707
|
-
} = m, j = b / C;
|
|
708
|
-
a.isVector3 ? r.copy(a) : r.set(...a);
|
|
709
|
-
const O = s.getWorldPosition(v).distanceTo(r);
|
|
710
|
-
if (Oe(s))
|
|
711
|
-
return {
|
|
712
|
-
width: b / s.zoom,
|
|
713
|
-
height: C / s.zoom,
|
|
714
|
-
top: S,
|
|
715
|
-
left: M,
|
|
716
|
-
factor: 1,
|
|
717
|
-
distance: O,
|
|
718
|
-
aspect: j
|
|
719
|
-
};
|
|
720
|
-
{
|
|
721
|
-
const x = s.fov * Math.PI / 180, y = 2 * Math.tan(x / 2) * O, P = y * (b / C);
|
|
722
|
-
return {
|
|
723
|
-
width: P,
|
|
724
|
-
height: y,
|
|
725
|
-
top: S,
|
|
726
|
-
left: M,
|
|
727
|
-
factor: b / P,
|
|
728
|
-
distance: O,
|
|
729
|
-
aspect: j
|
|
730
|
-
};
|
|
731
|
-
}
|
|
732
|
-
}
|
|
733
|
-
let l;
|
|
734
|
-
const c = (s) => g((a) => ({
|
|
735
|
-
performance: {
|
|
736
|
-
...a.performance,
|
|
737
|
-
current: s
|
|
738
|
-
}
|
|
739
|
-
})), w = new Xe();
|
|
740
|
-
return {
|
|
741
|
-
set: g,
|
|
742
|
-
get: d,
|
|
743
|
-
// Mock objects that have to be configured
|
|
744
|
-
gl: null,
|
|
745
|
-
camera: null,
|
|
746
|
-
raycaster: null,
|
|
747
|
-
events: {
|
|
748
|
-
priority: 1,
|
|
749
|
-
enabled: !0,
|
|
750
|
-
connected: !1
|
|
751
|
-
},
|
|
752
|
-
xr: null,
|
|
753
|
-
scene: null,
|
|
754
|
-
invalidate: (s = 1) => e(d(), s),
|
|
755
|
-
advance: (s, a) => n(s, a, d()),
|
|
756
|
-
legacy: !1,
|
|
757
|
-
linear: !1,
|
|
758
|
-
flat: !1,
|
|
759
|
-
controls: null,
|
|
760
|
-
clock: new Ye(),
|
|
761
|
-
pointer: w,
|
|
762
|
-
mouse: w,
|
|
763
|
-
frameloop: "always",
|
|
764
|
-
onPointerMissed: void 0,
|
|
765
|
-
performance: {
|
|
766
|
-
current: 1,
|
|
767
|
-
min: 0.5,
|
|
768
|
-
max: 1,
|
|
769
|
-
debounce: 200,
|
|
770
|
-
regress: () => {
|
|
771
|
-
const s = d();
|
|
772
|
-
l && clearTimeout(l), s.performance.current !== s.performance.min && c(s.performance.min), l = setTimeout(() => c(d().performance.max), s.performance.debounce);
|
|
773
|
-
}
|
|
774
|
-
},
|
|
775
|
-
size: {
|
|
776
|
-
width: 0,
|
|
777
|
-
height: 0,
|
|
778
|
-
top: 0,
|
|
779
|
-
left: 0,
|
|
780
|
-
updateStyle: !1
|
|
781
|
-
},
|
|
782
|
-
viewport: {
|
|
783
|
-
initialDpr: 0,
|
|
784
|
-
dpr: 0,
|
|
785
|
-
width: 0,
|
|
786
|
-
height: 0,
|
|
787
|
-
top: 0,
|
|
788
|
-
left: 0,
|
|
789
|
-
aspect: 0,
|
|
790
|
-
distance: 0,
|
|
791
|
-
factor: 0,
|
|
792
|
-
getCurrentViewport: f
|
|
793
|
-
},
|
|
794
|
-
setEvents: (s) => g((a) => ({
|
|
795
|
-
...a,
|
|
796
|
-
events: {
|
|
797
|
-
...a.events,
|
|
798
|
-
...s
|
|
799
|
-
}
|
|
800
|
-
})),
|
|
801
|
-
setSize: (s, a, m, b, C) => {
|
|
802
|
-
const S = d().camera, M = {
|
|
803
|
-
width: s,
|
|
804
|
-
height: a,
|
|
805
|
-
top: b || 0,
|
|
806
|
-
left: C || 0,
|
|
807
|
-
updateStyle: m
|
|
808
|
-
};
|
|
809
|
-
g((j) => ({
|
|
810
|
-
size: M,
|
|
811
|
-
viewport: {
|
|
812
|
-
...j.viewport,
|
|
813
|
-
...f(S, t, M)
|
|
814
|
-
}
|
|
815
|
-
}));
|
|
816
|
-
},
|
|
817
|
-
setDpr: (s) => g((a) => {
|
|
818
|
-
const m = je(s);
|
|
819
|
-
return {
|
|
820
|
-
viewport: {
|
|
821
|
-
...a.viewport,
|
|
822
|
-
dpr: m,
|
|
823
|
-
initialDpr: a.viewport.initialDpr || m
|
|
824
|
-
}
|
|
825
|
-
};
|
|
826
|
-
}),
|
|
827
|
-
setFrameloop: (s = "always") => {
|
|
828
|
-
const a = d().clock;
|
|
829
|
-
a.stop(), a.elapsedTime = 0, s !== "never" && (a.start(), a.elapsedTime = 0), g(() => ({
|
|
830
|
-
frameloop: s
|
|
831
|
-
}));
|
|
832
|
-
},
|
|
833
|
-
previousRoot: void 0,
|
|
834
|
-
internal: {
|
|
835
|
-
active: !1,
|
|
836
|
-
priority: 0,
|
|
837
|
-
frames: 0,
|
|
838
|
-
lastEvent: /* @__PURE__ */ D.createRef(),
|
|
839
|
-
interaction: [],
|
|
840
|
-
hovered: /* @__PURE__ */ new Map(),
|
|
841
|
-
subscribers: [],
|
|
842
|
-
initialClick: [0, 0],
|
|
843
|
-
initialHits: [],
|
|
844
|
-
capturedMap: /* @__PURE__ */ new Map(),
|
|
845
|
-
subscribe: (s, a, m) => {
|
|
846
|
-
const b = d().internal;
|
|
847
|
-
return b.priority = b.priority + (a > 0 ? 1 : 0), b.subscribers.push({
|
|
848
|
-
ref: s,
|
|
849
|
-
priority: a,
|
|
850
|
-
store: m
|
|
851
|
-
}), b.subscribers = b.subscribers.sort((C, S) => C.priority - S.priority), () => {
|
|
852
|
-
const C = d().internal;
|
|
853
|
-
C != null && C.subscribers && (C.priority = C.priority - (a > 0 ? 1 : 0), C.subscribers = C.subscribers.filter((S) => S.ref !== s));
|
|
854
|
-
};
|
|
855
|
-
}
|
|
856
|
-
}
|
|
857
|
-
};
|
|
858
|
-
}), i = o.getState();
|
|
859
|
-
let u = i.size, p = i.viewport.dpr, _ = i.camera;
|
|
860
|
-
return o.subscribe(() => {
|
|
861
|
-
const {
|
|
862
|
-
camera: g,
|
|
863
|
-
size: d,
|
|
864
|
-
viewport: v,
|
|
865
|
-
gl: t,
|
|
866
|
-
set: r
|
|
867
|
-
} = o.getState();
|
|
868
|
-
if (d.width !== u.width || d.height !== u.height || v.dpr !== p) {
|
|
869
|
-
var f;
|
|
870
|
-
u = d, p = v.dpr, ft(g, d), t.setPixelRatio(v.dpr);
|
|
871
|
-
const l = (f = d.updateStyle) != null ? f : typeof HTMLCanvasElement < "u" && t.domElement instanceof HTMLCanvasElement;
|
|
872
|
-
t.setSize(d.width, d.height, l);
|
|
873
|
-
}
|
|
874
|
-
g !== _ && (_ = g, r((l) => ({
|
|
875
|
-
viewport: {
|
|
876
|
-
...l.viewport,
|
|
877
|
-
...l.viewport.getCurrentViewport(g)
|
|
878
|
-
}
|
|
879
|
-
})));
|
|
880
|
-
}), o.subscribe((g) => e(g)), o;
|
|
881
|
-
};
|
|
882
|
-
let $, mt = /* @__PURE__ */ new Set(), ht = /* @__PURE__ */ new Set(), gt = /* @__PURE__ */ new Set();
|
|
883
|
-
function re(e, n) {
|
|
884
|
-
if (e.size)
|
|
885
|
-
for (const {
|
|
886
|
-
callback: o
|
|
887
|
-
} of e.values())
|
|
888
|
-
o(n);
|
|
889
|
-
}
|
|
890
|
-
function U(e, n) {
|
|
891
|
-
switch (e) {
|
|
892
|
-
case "before":
|
|
893
|
-
return re(mt, n);
|
|
894
|
-
case "after":
|
|
895
|
-
return re(ht, n);
|
|
896
|
-
case "tail":
|
|
897
|
-
return re(gt, n);
|
|
898
|
-
}
|
|
899
|
-
}
|
|
900
|
-
let oe, ie;
|
|
901
|
-
function se(e, n, o) {
|
|
902
|
-
let i = n.clock.getDelta();
|
|
903
|
-
for (n.frameloop === "never" && typeof e == "number" && (i = e - n.clock.elapsedTime, n.clock.oldTime = n.clock.elapsedTime, n.clock.elapsedTime = e), oe = n.internal.subscribers, $ = 0; $ < oe.length; $++)
|
|
904
|
-
ie = oe[$], ie.ref.current(ie.store.getState(), i, o);
|
|
905
|
-
return !n.internal.priority && n.gl.render && n.gl.render(n.scene, n.camera), n.internal.frames = Math.max(0, n.internal.frames - 1), n.frameloop === "always" ? 1 : n.internal.frames;
|
|
906
|
-
}
|
|
907
|
-
function yt(e) {
|
|
908
|
-
let n = !1, o = !1, i, u, p;
|
|
909
|
-
function _(v) {
|
|
910
|
-
u = requestAnimationFrame(_), n = !0, i = 0, U("before", v), o = !0;
|
|
911
|
-
for (const r of e.values()) {
|
|
912
|
-
var t;
|
|
913
|
-
p = r.store.getState(), p.internal.active && (p.frameloop === "always" || p.internal.frames > 0) && !((t = p.gl.xr) != null && t.isPresenting) && (i += se(v, p));
|
|
914
|
-
}
|
|
915
|
-
if (o = !1, U("after", v), i === 0)
|
|
916
|
-
return U("tail", v), n = !1, cancelAnimationFrame(u);
|
|
917
|
-
}
|
|
918
|
-
function g(v, t = 1) {
|
|
919
|
-
var r;
|
|
920
|
-
if (!v) return e.forEach((f) => g(f.store.getState(), t));
|
|
921
|
-
(r = v.gl.xr) != null && r.isPresenting || !v.internal.active || v.frameloop === "never" || (t > 1 ? v.internal.frames = Math.min(60, v.internal.frames + t) : o ? v.internal.frames = 2 : v.internal.frames = 1, n || (n = !0, requestAnimationFrame(_)));
|
|
922
|
-
}
|
|
923
|
-
function d(v, t = !0, r, f) {
|
|
924
|
-
if (t && U("before", v), r) se(v, r, f);
|
|
925
|
-
else for (const l of e.values()) se(v, l.store.getState());
|
|
926
|
-
t && U("after", v);
|
|
927
|
-
}
|
|
928
|
-
return {
|
|
929
|
-
loop: _,
|
|
930
|
-
invalidate: g,
|
|
931
|
-
advance: d
|
|
932
|
-
};
|
|
933
|
-
}
|
|
934
|
-
function _t() {
|
|
935
|
-
const e = D.useContext(ke);
|
|
936
|
-
if (!e) throw new Error("R3F: Hooks can only be used within the Canvas component!");
|
|
937
|
-
return e;
|
|
938
|
-
}
|
|
939
|
-
function Dt(e, n = 0) {
|
|
940
|
-
const o = _t(), i = o.getState().internal.subscribe, u = ot(e);
|
|
941
|
-
return J(() => i(u, n, o), [n, i, o]), null;
|
|
942
|
-
}
|
|
943
|
-
const Ce = /* @__PURE__ */ new WeakMap();
|
|
944
|
-
function De(e, n) {
|
|
945
|
-
return function(o, ...i) {
|
|
946
|
-
let u = Ce.get(o);
|
|
947
|
-
return u || (u = new o(), Ce.set(o, u)), e && e(u), Promise.all(i.map((p) => new Promise((_, g) => u.load(p, (d) => {
|
|
948
|
-
d.scene && Object.assign(d, at(d.scene)), _(d);
|
|
949
|
-
}, n, (d) => g(new Error(`Could not load ${p}: ${d == null ? void 0 : d.message}`))))));
|
|
950
|
-
};
|
|
951
|
-
}
|
|
952
|
-
function Le(e, n, o, i) {
|
|
953
|
-
const u = Array.isArray(n) ? n : [n], p = Ze(De(o, i), [e, ...u], {
|
|
954
|
-
equal: E.equ
|
|
955
|
-
});
|
|
956
|
-
return Array.isArray(n) ? p : p[0];
|
|
957
|
-
}
|
|
958
|
-
Le.preload = function(e, n, o) {
|
|
959
|
-
const i = Array.isArray(n) ? n : [n];
|
|
960
|
-
return et(De(o), [e, ...i]);
|
|
961
|
-
};
|
|
962
|
-
Le.clear = function(e, n) {
|
|
963
|
-
const o = Array.isArray(n) ? n : [n];
|
|
964
|
-
return tt([e, ...o]);
|
|
965
|
-
};
|
|
966
|
-
const N = /* @__PURE__ */ new Map(), {
|
|
967
|
-
invalidate: Se,
|
|
968
|
-
advance: Ee
|
|
969
|
-
} = yt(N), {
|
|
970
|
-
reconciler: K,
|
|
971
|
-
applyProps: z
|
|
972
|
-
} = rt(N, ut), F = {
|
|
973
|
-
objects: "shallow",
|
|
974
|
-
strict: !1
|
|
975
|
-
}, wt = (e, n) => {
|
|
976
|
-
const o = typeof e == "function" ? e(n) : e;
|
|
977
|
-
return Ae(o) ? o : new We({
|
|
978
|
-
powerPreference: "high-performance",
|
|
979
|
-
canvas: n,
|
|
980
|
-
antialias: !0,
|
|
981
|
-
alpha: !0,
|
|
982
|
-
...e
|
|
983
|
-
});
|
|
984
|
-
};
|
|
985
|
-
function bt(e, n) {
|
|
986
|
-
const o = typeof HTMLCanvasElement < "u" && e instanceof HTMLCanvasElement;
|
|
987
|
-
if (n) {
|
|
988
|
-
const {
|
|
989
|
-
width: i,
|
|
990
|
-
height: u,
|
|
991
|
-
top: p,
|
|
992
|
-
left: _,
|
|
993
|
-
updateStyle: g = o
|
|
994
|
-
} = n;
|
|
995
|
-
return {
|
|
996
|
-
width: i,
|
|
997
|
-
height: u,
|
|
998
|
-
top: p,
|
|
999
|
-
left: _,
|
|
1000
|
-
updateStyle: g
|
|
1001
|
-
};
|
|
1002
|
-
} else if (typeof HTMLCanvasElement < "u" && e instanceof HTMLCanvasElement && e.parentElement) {
|
|
1003
|
-
const {
|
|
1004
|
-
width: i,
|
|
1005
|
-
height: u,
|
|
1006
|
-
top: p,
|
|
1007
|
-
left: _
|
|
1008
|
-
} = e.parentElement.getBoundingClientRect();
|
|
1009
|
-
return {
|
|
1010
|
-
width: i,
|
|
1011
|
-
height: u,
|
|
1012
|
-
top: p,
|
|
1013
|
-
left: _,
|
|
1014
|
-
updateStyle: o
|
|
1015
|
-
};
|
|
1016
|
-
} else if (typeof OffscreenCanvas < "u" && e instanceof OffscreenCanvas)
|
|
1017
|
-
return {
|
|
1018
|
-
width: e.width,
|
|
1019
|
-
height: e.height,
|
|
1020
|
-
top: 0,
|
|
1021
|
-
left: 0,
|
|
1022
|
-
updateStyle: o
|
|
1023
|
-
};
|
|
1024
|
-
return {
|
|
1025
|
-
width: 0,
|
|
1026
|
-
height: 0,
|
|
1027
|
-
top: 0,
|
|
1028
|
-
left: 0
|
|
1029
|
-
};
|
|
1030
|
-
}
|
|
1031
|
-
function Lt(e) {
|
|
1032
|
-
const n = N.get(e), o = n == null ? void 0 : n.fiber, i = n == null ? void 0 : n.store;
|
|
1033
|
-
n && console.warn("R3F.createRoot should only be called once!");
|
|
1034
|
-
const u = typeof reportError == "function" ? (
|
|
1035
|
-
// In modern browsers, reportError will dispatch an error event,
|
|
1036
|
-
// emulating an uncaught JavaScript error.
|
|
1037
|
-
reportError
|
|
1038
|
-
) : (
|
|
1039
|
-
// In older browsers and test environments, fallback to console.error.
|
|
1040
|
-
console.error
|
|
1041
|
-
), p = i || vt(Se, Ee), _ = o || K.createContainer(p, H.ConcurrentRoot, null, !1, null, "", u, null);
|
|
1042
|
-
n || N.set(e, {
|
|
1043
|
-
fiber: _,
|
|
1044
|
-
store: p
|
|
1045
|
-
});
|
|
1046
|
-
let g, d = !1, v;
|
|
1047
|
-
return {
|
|
1048
|
-
configure(t = {}) {
|
|
1049
|
-
let {
|
|
1050
|
-
gl: r,
|
|
1051
|
-
size: f,
|
|
1052
|
-
scene: l,
|
|
1053
|
-
events: c,
|
|
1054
|
-
onCreated: w,
|
|
1055
|
-
shadows: h = !1,
|
|
1056
|
-
linear: s = !1,
|
|
1057
|
-
flat: a = !1,
|
|
1058
|
-
legacy: m = !1,
|
|
1059
|
-
orthographic: b = !1,
|
|
1060
|
-
frameloop: C = "always",
|
|
1061
|
-
dpr: S = [1, 2],
|
|
1062
|
-
performance: M,
|
|
1063
|
-
raycaster: j,
|
|
1064
|
-
camera: O,
|
|
1065
|
-
onPointerMissed: x
|
|
1066
|
-
} = t, y = p.getState(), P = y.gl;
|
|
1067
|
-
y.gl || y.set({
|
|
1068
|
-
gl: P = wt(r, e)
|
|
1069
|
-
});
|
|
1070
|
-
let k = y.raycaster;
|
|
1071
|
-
k || y.set({
|
|
1072
|
-
raycaster: k = new Fe()
|
|
1073
|
-
});
|
|
1074
|
-
const {
|
|
1075
|
-
params: ue,
|
|
1076
|
-
...de
|
|
1077
|
-
} = j || {};
|
|
1078
|
-
if (E.equ(de, k, F) || z(k, {
|
|
1079
|
-
...de
|
|
1080
|
-
}), E.equ(ue, k.params, F) || z(k, {
|
|
1081
|
-
params: {
|
|
1082
|
-
...k.params,
|
|
1083
|
-
...ue
|
|
1084
|
-
}
|
|
1085
|
-
}), !y.camera || y.camera === v && !E.equ(v, O, F)) {
|
|
1086
|
-
v = O;
|
|
1087
|
-
const T = O instanceof $e, R = T ? O : b ? new Ie(0, 0, 0, 0, 0.1, 1e3) : new Be(75, 0, 0.1, 1e3);
|
|
1088
|
-
T || (R.position.z = 5, O && (z(R, O), ("aspect" in O || "left" in O || "right" in O || "bottom" in O || "top" in O) && (R.manual = !0, R.updateProjectionMatrix())), !y.camera && !(O != null && O.rotation) && R.lookAt(0, 0, 0)), y.set({
|
|
1089
|
-
camera: R
|
|
1090
|
-
}), k.camera = R;
|
|
1091
|
-
}
|
|
1092
|
-
if (!y.scene) {
|
|
1093
|
-
let T;
|
|
1094
|
-
l != null && l.isScene ? T = l : (T = new He(), l && z(T, l)), y.set({
|
|
1095
|
-
scene: I(T)
|
|
1096
|
-
});
|
|
1097
|
-
}
|
|
1098
|
-
if (!y.xr) {
|
|
1099
|
-
var pe;
|
|
1100
|
-
const T = (A, ze) => {
|
|
1101
|
-
const me = p.getState();
|
|
1102
|
-
me.frameloop !== "never" && Ee(A, !0, me, ze);
|
|
1103
|
-
}, R = () => {
|
|
1104
|
-
const A = p.getState();
|
|
1105
|
-
A.gl.xr.enabled = A.gl.xr.isPresenting, A.gl.xr.setAnimationLoop(A.gl.xr.isPresenting ? T : null), A.gl.xr.isPresenting || Se(A);
|
|
1106
|
-
}, V = {
|
|
1107
|
-
connect() {
|
|
1108
|
-
const A = p.getState().gl;
|
|
1109
|
-
A.xr.addEventListener("sessionstart", R), A.xr.addEventListener("sessionend", R);
|
|
1110
|
-
},
|
|
1111
|
-
disconnect() {
|
|
1112
|
-
const A = p.getState().gl;
|
|
1113
|
-
A.xr.removeEventListener("sessionstart", R), A.xr.removeEventListener("sessionend", R);
|
|
1114
|
-
}
|
|
1115
|
-
};
|
|
1116
|
-
typeof ((pe = P.xr) == null ? void 0 : pe.addEventListener) == "function" && V.connect(), y.set({
|
|
1117
|
-
xr: V
|
|
1118
|
-
});
|
|
1119
|
-
}
|
|
1120
|
-
if (P.shadowMap) {
|
|
1121
|
-
const T = P.shadowMap.enabled, R = P.shadowMap.type;
|
|
1122
|
-
if (P.shadowMap.enabled = !!h, E.boo(h))
|
|
1123
|
-
P.shadowMap.type = Q;
|
|
1124
|
-
else if (E.str(h)) {
|
|
1125
|
-
var ve;
|
|
1126
|
-
const V = {
|
|
1127
|
-
basic: Ge,
|
|
1128
|
-
percentage: qe,
|
|
1129
|
-
soft: Q,
|
|
1130
|
-
variance: Ne
|
|
1131
|
-
};
|
|
1132
|
-
P.shadowMap.type = (ve = V[h]) != null ? ve : Q;
|
|
1133
|
-
} else E.obj(h) && Object.assign(P.shadowMap, h);
|
|
1134
|
-
(T !== P.shadowMap.enabled || R !== P.shadowMap.type) && (P.shadowMap.needsUpdate = !0);
|
|
1135
|
-
}
|
|
1136
|
-
const q = Me();
|
|
1137
|
-
q && ("enabled" in q ? q.enabled = !m : "legacyMode" in q && (q.legacyMode = m)), d || z(P, {
|
|
1138
|
-
outputEncoding: s ? 3e3 : 3001,
|
|
1139
|
-
toneMapping: a ? Ue : Ve
|
|
1140
|
-
}), y.legacy !== m && y.set(() => ({
|
|
1141
|
-
legacy: m
|
|
1142
|
-
})), y.linear !== s && y.set(() => ({
|
|
1143
|
-
linear: s
|
|
1144
|
-
})), y.flat !== a && y.set(() => ({
|
|
1145
|
-
flat: a
|
|
1146
|
-
})), r && !E.fun(r) && !Ae(r) && !E.equ(r, P, F) && z(P, r), c && !y.events.handlers && y.set({
|
|
1147
|
-
events: c(p)
|
|
1148
|
-
});
|
|
1149
|
-
const L = bt(e, f);
|
|
1150
|
-
return E.equ(L, y.size, F) || y.setSize(L.width, L.height, L.updateStyle, L.top, L.left), S && y.viewport.dpr !== je(S) && y.setDpr(S), y.frameloop !== C && y.setFrameloop(C), y.onPointerMissed || y.set({
|
|
1151
|
-
onPointerMissed: x
|
|
1152
|
-
}), M && !E.equ(M, y.performance, F) && y.set((T) => ({
|
|
1153
|
-
performance: {
|
|
1154
|
-
...T.performance,
|
|
1155
|
-
...M
|
|
1156
|
-
}
|
|
1157
|
-
})), g = w, d = !0, this;
|
|
1158
|
-
},
|
|
1159
|
-
render(t) {
|
|
1160
|
-
return d || this.configure(), K.updateContainer(/* @__PURE__ */ Pe(Ct, {
|
|
1161
|
-
store: p,
|
|
1162
|
-
children: t,
|
|
1163
|
-
onCreated: g,
|
|
1164
|
-
rootElement: e
|
|
1165
|
-
}), _, null, () => {
|
|
1166
|
-
}), p;
|
|
1167
|
-
},
|
|
1168
|
-
unmount() {
|
|
1169
|
-
St(e);
|
|
1170
|
-
}
|
|
1171
|
-
};
|
|
1172
|
-
}
|
|
1173
|
-
function Ct({
|
|
1174
|
-
store: e,
|
|
1175
|
-
children: n,
|
|
1176
|
-
onCreated: o,
|
|
1177
|
-
rootElement: i
|
|
1178
|
-
}) {
|
|
1179
|
-
return J(() => {
|
|
1180
|
-
const u = e.getState();
|
|
1181
|
-
u.set((p) => ({
|
|
1182
|
-
internal: {
|
|
1183
|
-
...p.internal,
|
|
1184
|
-
active: !0
|
|
1185
|
-
}
|
|
1186
|
-
})), o && o(u), e.getState().events.connected || u.events.connect == null || u.events.connect(i);
|
|
1187
|
-
}, []), /* @__PURE__ */ Pe(ke.Provider, {
|
|
1188
|
-
value: e,
|
|
1189
|
-
children: n
|
|
1190
|
-
});
|
|
1191
|
-
}
|
|
1192
|
-
function St(e, n) {
|
|
1193
|
-
const o = N.get(e), i = o == null ? void 0 : o.fiber;
|
|
1194
|
-
if (i) {
|
|
1195
|
-
const u = o == null ? void 0 : o.store.getState();
|
|
1196
|
-
u && (u.internal.active = !1), K.updateContainer(null, i, null, () => {
|
|
1197
|
-
u && setTimeout(() => {
|
|
1198
|
-
try {
|
|
1199
|
-
var p, _, g, d;
|
|
1200
|
-
u.events.disconnect == null || u.events.disconnect(), (p = u.gl) == null || (_ = p.renderLists) == null || _.dispose == null || _.dispose(), (g = u.gl) == null || g.forceContextLoss == null || g.forceContextLoss(), (d = u.gl) != null && d.xr && u.xr.disconnect(), lt(u), N.delete(e);
|
|
1201
|
-
} catch {
|
|
1202
|
-
}
|
|
1203
|
-
}, 500);
|
|
1204
|
-
});
|
|
1205
|
-
}
|
|
1206
|
-
}
|
|
1207
|
-
K.injectIntoDevTools({
|
|
1208
|
-
bundleType: process.env.NODE_ENV === "production" ? 0 : 1,
|
|
1209
|
-
rendererPackageName: "@react-three/fiber",
|
|
1210
|
-
version: D.version
|
|
1211
|
-
});
|
|
1212
|
-
const ae = {
|
|
1213
|
-
onClick: ["click", !1],
|
|
1214
|
-
onContextMenu: ["contextmenu", !1],
|
|
1215
|
-
onDoubleClick: ["dblclick", !1],
|
|
1216
|
-
onWheel: ["wheel", !0],
|
|
1217
|
-
onPointerDown: ["pointerdown", !0],
|
|
1218
|
-
onPointerUp: ["pointerup", !0],
|
|
1219
|
-
onPointerLeave: ["pointerleave", !0],
|
|
1220
|
-
onPointerMove: ["pointermove", !0],
|
|
1221
|
-
onPointerCancel: ["pointercancel", !0],
|
|
1222
|
-
onLostPointerCapture: ["lostpointercapture", !0]
|
|
1223
|
-
};
|
|
1224
|
-
function zt(e) {
|
|
1225
|
-
const {
|
|
1226
|
-
handlePointer: n
|
|
1227
|
-
} = pt(e);
|
|
1228
|
-
return {
|
|
1229
|
-
priority: 1,
|
|
1230
|
-
enabled: !0,
|
|
1231
|
-
compute(o, i, u) {
|
|
1232
|
-
i.pointer.set(o.offsetX / i.size.width * 2 - 1, -(o.offsetY / i.size.height) * 2 + 1), i.raycaster.setFromCamera(i.pointer, i.camera);
|
|
1233
|
-
},
|
|
1234
|
-
connected: void 0,
|
|
1235
|
-
handlers: Object.keys(ae).reduce((o, i) => ({
|
|
1236
|
-
...o,
|
|
1237
|
-
[i]: n(i)
|
|
1238
|
-
}), {}),
|
|
1239
|
-
update: () => {
|
|
1240
|
-
var o;
|
|
1241
|
-
const {
|
|
1242
|
-
events: i,
|
|
1243
|
-
internal: u
|
|
1244
|
-
} = e.getState();
|
|
1245
|
-
(o = u.lastEvent) != null && o.current && i.handlers && i.handlers.onPointerMove(u.lastEvent.current);
|
|
1246
|
-
},
|
|
1247
|
-
connect: (o) => {
|
|
1248
|
-
var i;
|
|
1249
|
-
const {
|
|
1250
|
-
set: u,
|
|
1251
|
-
events: p
|
|
1252
|
-
} = e.getState();
|
|
1253
|
-
p.disconnect == null || p.disconnect(), u((_) => ({
|
|
1254
|
-
events: {
|
|
1255
|
-
..._.events,
|
|
1256
|
-
connected: o
|
|
1257
|
-
}
|
|
1258
|
-
})), Object.entries((i = p.handlers) != null ? i : []).forEach(([_, g]) => {
|
|
1259
|
-
const [d, v] = ae[_];
|
|
1260
|
-
o.addEventListener(d, g, {
|
|
1261
|
-
passive: v
|
|
1262
|
-
});
|
|
1263
|
-
});
|
|
1264
|
-
},
|
|
1265
|
-
disconnect: () => {
|
|
1266
|
-
const {
|
|
1267
|
-
set: o,
|
|
1268
|
-
events: i
|
|
1269
|
-
} = e.getState();
|
|
1270
|
-
if (i.connected) {
|
|
1271
|
-
var u;
|
|
1272
|
-
Object.entries((u = i.handlers) != null ? u : []).forEach(([p, _]) => {
|
|
1273
|
-
if (i && i.connected instanceof HTMLElement) {
|
|
1274
|
-
const [g] = ae[p];
|
|
1275
|
-
i.connected.removeEventListener(g, _);
|
|
1276
|
-
}
|
|
1277
|
-
}), o((p) => ({
|
|
1278
|
-
events: {
|
|
1279
|
-
...p.events,
|
|
1280
|
-
connected: void 0
|
|
1281
|
-
}
|
|
1282
|
-
}));
|
|
1283
|
-
}
|
|
1284
|
-
}
|
|
1285
|
-
};
|
|
1286
|
-
}
|
|
1287
|
-
export {
|
|
1288
|
-
kt as B,
|
|
1289
|
-
_t as C,
|
|
1290
|
-
it as E,
|
|
1291
|
-
Dt as F,
|
|
1292
|
-
Le as H,
|
|
1293
|
-
J as a,
|
|
1294
|
-
Lt as b,
|
|
1295
|
-
zt as c,
|
|
1296
|
-
St as d,
|
|
1297
|
-
Tt as e,
|
|
1298
|
-
pt as f,
|
|
1299
|
-
ke as g,
|
|
1300
|
-
At as i,
|
|
1301
|
-
K as j,
|
|
1302
|
-
z as k,
|
|
1303
|
-
lt as l,
|
|
1304
|
-
Se as m,
|
|
1305
|
-
Ee as n,
|
|
1306
|
-
U as s,
|
|
1307
|
-
ot as u,
|
|
1308
|
-
G as w,
|
|
1309
|
-
at as y,
|
|
1310
|
-
N as z
|
|
1311
|
-
};
|