@stfrigerio/sito-template 0.1.64 → 0.1.66

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.
Files changed (179) hide show
  1. package/dist/styles.css +1 -1
  2. package/dist/styles.css.map +1 -1
  3. package/package.json +1 -1
  4. package/storybook-static/assets/{ASCIIText.stories-D1Xf4qUP.js → ASCIIText.stories-BQt8B6As.js} +1 -1
  5. package/storybook-static/assets/{AllAtoms.stories-BWZpG8YP.js → AllAtoms.stories-8mBdcCeY.js} +1 -1
  6. package/storybook-static/assets/{AnimatedContent.stories-JsJZW15E.js → AnimatedContent.stories-iIqm9cZL.js} +1 -1
  7. package/storybook-static/assets/{AnimatedList.stories-CcfSw525.js → AnimatedList.stories-Duey4ijf.js} +1 -1
  8. package/storybook-static/assets/{Antigravity.stories-LGQb0uWU.js → Antigravity.stories-CuJYSpj7.js} +1 -1
  9. package/storybook-static/assets/{ArrayInput.stories-C_NfcMRX.js → ArrayInput.stories-CqXFEZSr.js} +1 -1
  10. package/storybook-static/assets/{Aurora.stories-CJaNMHWy.js → Aurora.stories-Ccg1Zxc3.js} +1 -1
  11. package/storybook-static/assets/{Beams.stories-DJBLky2z.js → Beams.stories-D50tODHz.js} +1 -1
  12. package/storybook-static/assets/{BlobCursor.stories-D3s5SIIZ.js → BlobCursor.stories-BqwP46t8.js} +1 -1
  13. package/storybook-static/assets/{BlurText.stories-Wa5QMu-F.js → BlurText.stories-BuDb8a2q.js} +1 -1
  14. package/storybook-static/assets/{BooleansHeatmap.stories-DZUhByYN.js → BooleansHeatmap.stories-Byhs6Zes.js} +1 -1
  15. package/storybook-static/assets/{BorderGlow.stories-DC_aZNge.js → BorderGlow.stories-hxlNhbIt.js} +1 -1
  16. package/storybook-static/assets/{BubbleMenu.stories-ByI_irJ5.js → BubbleMenu.stories-DT9s0HGy.js} +1 -1
  17. package/storybook-static/assets/{Button-ca-WP0WI.js → Button-CHt05Jbq.js} +1 -1
  18. package/storybook-static/assets/{Button.stories-B-RlJwIP.js → Button.stories-CDGEs6zV.js} +1 -1
  19. package/storybook-static/assets/Calendar-CYo2UzOE.css +1 -0
  20. package/storybook-static/assets/{Calendar.stories-BAC0V9U_.js → Calendar.stories-D6K4DcbO.js} +14 -14
  21. package/storybook-static/assets/{Card-zYnUu79L.js → Card-Bj2f3gkT.js} +1 -1
  22. package/storybook-static/assets/{Card.stories-D3nX7F1p.js → Card.stories-C1A8NBTN.js} +1 -1
  23. package/storybook-static/assets/{CardNav.stories-DRFo00SW.js → CardNav.stories-BSezT2Mu.js} +1 -1
  24. package/storybook-static/assets/{Carousel.stories-HbqEyU8u.js → Carousel.stories-CdOtBTqT.js} +1 -1
  25. package/storybook-static/assets/{Checkbox-_QVpBl9h.js → Checkbox-BZw1-CjZ.js} +1 -1
  26. package/storybook-static/assets/{Checkbox.stories-DBj6Gf_0.js → Checkbox.stories-CP7266xH.js} +1 -1
  27. package/storybook-static/assets/{ChromaGrid.stories-CEWWsyh9.js → ChromaGrid.stories-BrS0NLKl.js} +1 -1
  28. package/storybook-static/assets/{CircularGallery.stories-C7Xyelp6.js → CircularGallery.stories-CsDrteyz.js} +1 -1
  29. package/storybook-static/assets/{CircularText.stories-BN4-zQYC.js → CircularText.stories-DNkBFKK7.js} +1 -1
  30. package/storybook-static/assets/{ClickSpark.stories-CgOAOvv1.js → ClickSpark.stories-BqJSrjeV.js} +1 -1
  31. package/storybook-static/assets/{ColorBends.stories-D3HYC9rL.js → ColorBends.stories-tjTDyHin.js} +1 -1
  32. package/storybook-static/assets/{CountUp.stories-tCzExq-Z.js → CountUp.stories-Wz9xxsr8.js} +1 -1
  33. package/storybook-static/assets/{Counter.stories-zCflYapu.js → Counter.stories-BYSWP3Ry.js} +1 -1
  34. package/storybook-static/assets/{Crosshair.stories-COhV5_Y7.js → Crosshair.stories-Bt7Ee7MB.js} +1 -1
  35. package/storybook-static/assets/{Cubes.stories-BtnbTbvB.js → Cubes.stories-Ds4ynqYx.js} +1 -1
  36. package/storybook-static/assets/{CurvedLoop.stories-CJ5pLoIz.js → CurvedLoop.stories-M2vftkyO.js} +1 -1
  37. package/storybook-static/assets/{DarkVeil.stories-CK2esiiE.js → DarkVeil.stories-PeZl2yff.js} +1 -1
  38. package/storybook-static/assets/{DateInput-DO3zkLe0.js → DateInput-BX5D1pMg.js} +1 -1
  39. package/storybook-static/assets/{DateInput.stories-CxgW9cZx.js → DateInput.stories-Bb5zGjzs.js} +1 -1
  40. package/storybook-static/assets/{DecayCard.stories-UBtFVBLm.js → DecayCard.stories-Dxa_Vqrc.js} +1 -1
  41. package/storybook-static/assets/{DecryptedText.stories-b4fTRSry.js → DecryptedText.stories-yUFdFIFO.js} +1 -1
  42. package/storybook-static/assets/{Dither.stories-m9NAEf3T.js → Dither.stories-DiyNOgY2.js} +1 -1
  43. package/storybook-static/assets/{Dock.stories-I1MBrUpZ.js → Dock.stories-XNu7kNIX.js} +1 -1
  44. package/storybook-static/assets/{EditFAB.stories-BBvvPWME.js → EditFAB.stories-D_ZD4rSm.js} +1 -1
  45. package/storybook-static/assets/{EvilEye.stories-C_IRHT0H.js → EvilEye.stories-C0S3sEvk.js} +1 -1
  46. package/storybook-static/assets/{FadeContent.stories-cA0ehF9u.js → FadeContent.stories-C-ipTGqJ.js} +1 -1
  47. package/storybook-static/assets/{FaultyTerminal.stories-BH17AZyd.js → FaultyTerminal.stories-10c-i_01.js} +1 -1
  48. package/storybook-static/assets/{Fbo-s3d9A5Ww.js → Fbo-Cr10jzQa.js} +1 -1
  49. package/storybook-static/assets/{FloatingLines.stories-D08G-orK.js → FloatingLines.stories-DkZO2qzt.js} +1 -1
  50. package/storybook-static/assets/{FlowingMenu.stories-lt-kmfSP.js → FlowingMenu.stories-DS10XeZI.js} +1 -1
  51. package/storybook-static/assets/{FluidGlass.stories-BuhWZ_Ae.js → FluidGlass.stories-B-R5wDkB.js} +1 -1
  52. package/storybook-static/assets/{Folder.stories-DkcDSS4C.js → Folder.stories-BUmZH2ka.js} +1 -1
  53. package/storybook-static/assets/{FuzzyText.stories--rgAbGdd.js → FuzzyText.stories-BRnWU0yr.js} +1 -1
  54. package/storybook-static/assets/{Galaxy.stories-BtoQgZ5g.js → Galaxy.stories-hqhjEO_R.js} +1 -1
  55. package/storybook-static/assets/{GhostCursor.stories-DdZuzAPN.js → GhostCursor.stories-BB2e8hmO.js} +1 -1
  56. package/storybook-static/assets/{GlareHover.stories-BRqYHSpA.js → GlareHover.stories-BF6kB7EN.js} +1 -1
  57. package/storybook-static/assets/{GlassSurface.stories-DRIBU9EM.js → GlassSurface.stories-iF01agCe.js} +1 -1
  58. package/storybook-static/assets/{GlitchText.stories-BpY-FnEO.js → GlitchText.stories-CITlEyXQ.js} +1 -1
  59. package/storybook-static/assets/{GooeyNav.stories-BRcQ83Ow.js → GooeyNav.stories-vYR6zhI-.js} +1 -1
  60. package/storybook-static/assets/{GradientBlinds.stories-CBDfLww2.js → GradientBlinds.stories-DSf-fXuF.js} +1 -1
  61. package/storybook-static/assets/{GradientText.stories-X35aGA0z.js → GradientText.stories-DncdPs2z.js} +1 -1
  62. package/storybook-static/assets/{Grainient.stories-DxXaNTYL.js → Grainient.stories-BP35oJuG.js} +1 -1
  63. package/storybook-static/assets/{GridMotion.stories-DqSG90cL.js → GridMotion.stories-Ck8lERpS.js} +1 -1
  64. package/storybook-static/assets/{ImageSlideshow.stories-CtfQ0gfF.js → ImageSlideshow.stories-D5CGI0M5.js} +1 -1
  65. package/storybook-static/assets/{Iridescence.stories-Dg0-a4BI.js → Iridescence.stories-DSEIJRrO.js} +1 -1
  66. package/storybook-static/assets/{LaserFlow.stories-HphAKxl3.js → LaserFlow.stories-B-m7sVx7.js} +1 -1
  67. package/storybook-static/assets/{LetterGlitch.stories-DLHnI11F.js → LetterGlitch.stories-D2KK0k49.js} +1 -1
  68. package/storybook-static/assets/{LightPillar.stories-CUbwXI-r.js → LightPillar.stories-0fWLIQfM.js} +1 -1
  69. package/storybook-static/assets/{LightRays.stories-CN6SEiVL.js → LightRays.stories-U8mBgBFu.js} +1 -1
  70. package/storybook-static/assets/{Lightning.stories-DKPrYnXR.js → Lightning.stories-qzK5B63O.js} +1 -1
  71. package/storybook-static/assets/{LineWaves.stories-CQG48pTS.js → LineWaves.stories-Dh0hHXd-.js} +1 -1
  72. package/storybook-static/assets/{LiquidChrome.stories-eT_xiYak.js → LiquidChrome.stories-D-nD2mFo.js} +1 -1
  73. package/storybook-static/assets/{LiquidEther.stories-DXBLkgMd.js → LiquidEther.stories-DO-bW-67.js} +1 -1
  74. package/storybook-static/assets/{LoadingSpinner-CZ8UT8Bc.js → LoadingSpinner-D2u7X2s9.js} +1 -1
  75. package/storybook-static/assets/{LoadingSpinner.stories-CR6A9mp_.js → LoadingSpinner.stories-CASjGJF0.js} +1 -1
  76. package/storybook-static/assets/{MagicRings.stories-DfJhHwvh.js → MagicRings.stories-CYDU5wlq.js} +1 -1
  77. package/storybook-static/assets/{Magnet.stories-B-jKkHeX.js → Magnet.stories-BzWFxE-V.js} +1 -1
  78. package/storybook-static/assets/{MagnetLines.stories-CxFq3Ubm.js → MagnetLines.stories-BLt0dpNN.js} +1 -1
  79. package/storybook-static/assets/{Masonry.stories-BdK8xuEJ.js → Masonry.stories-CdsgD1y4.js} +1 -1
  80. package/storybook-static/assets/{MetaBalls.stories-C46SwkDW.js → MetaBalls.stories-1ggXqut_.js} +1 -1
  81. package/storybook-static/assets/{MetallicPaint.stories-DoezHDKx.js → MetallicPaint.stories-5ZCaxSOk.js} +1 -1
  82. package/storybook-static/assets/{MoodChart.stories-B9OgTXVp.js → MoodChart.stories-Bv5VWVvQ.js} +1 -1
  83. package/storybook-static/assets/{MotionConfigContext-Bw_b3ZUg.js → MotionConfigContext-BPeKZQwM.js} +1 -1
  84. package/storybook-static/assets/{Navbar.stories-kGHTDdld.js → Navbar.stories-PxIAocvK.js} +1 -1
  85. package/storybook-static/assets/{Noise.stories-DVCl2Bri.js → Noise.stories-qu_z-yQ8.js} +1 -1
  86. package/storybook-static/assets/{NumberStepper-YeXfyuax.js → NumberStepper-CnpXSMIl.js} +1 -1
  87. package/storybook-static/assets/{NumberStepper.stories-DH0q8Pfx.js → NumberStepper.stories-Cw-zOdLi.js} +1 -1
  88. package/storybook-static/assets/{Orb.stories-DqhtrskE.js → Orb.stories-DgKOlXK_.js} +1 -1
  89. package/storybook-static/assets/{OrbitImages.stories-DkgbzqRA.js → OrbitImages.stories-Bv5vyiHA.js} +1 -1
  90. package/storybook-static/assets/{PieChart.stories-DtsuEu3P.js → PieChart.stories-2s1TKZIh.js} +1 -1
  91. package/storybook-static/assets/{PixelBlast.stories-DFVJyyCJ.js → PixelBlast.stories-C28Fm0cc.js} +1 -1
  92. package/storybook-static/assets/{PixelCard.stories-rN2a2n6z.js → PixelCard.stories-DSmyTgrk.js} +1 -1
  93. package/storybook-static/assets/{PixelSnow.stories-CTi1PQmJ.js → PixelSnow.stories-D0XEmW1E.js} +1 -1
  94. package/storybook-static/assets/{PixelTransition.stories-2HV20X_n.js → PixelTransition.stories-CG2BkKyJ.js} +1 -1
  95. package/storybook-static/assets/{Plasma.stories-CRgiU8eT.js → Plasma.stories-BK2e28Ch.js} +1 -1
  96. package/storybook-static/assets/{Prism.stories-DXiBjhaz.js → Prism.stories-BEUiZCms.js} +1 -1
  97. package/storybook-static/assets/{PrismaticBurst.stories-C-0bgAlq.js → PrismaticBurst.stories-COY077W0.js} +1 -1
  98. package/storybook-static/assets/{ProfileCard.stories-DqaByaZ1.js → ProfileCard.stories-BPB50mBw.js} +1 -1
  99. package/storybook-static/assets/{QuantifiableHabitsChart.stories-BZunSv8G.js → QuantifiableHabitsChart.stories-Dh4BO8wA.js} +1 -1
  100. package/storybook-static/assets/{Radar.stories-C8wwlosb.js → Radar.stories-C9TRaVRk.js} +1 -1
  101. package/storybook-static/assets/{Ribbons.stories-CmNeTz58.js → Ribbons.stories-BK6afGL-.js} +1 -1
  102. package/storybook-static/assets/{RippleGrid.stories-hdUoMUQU.js → RippleGrid.stories-CLkgzs8T.js} +1 -1
  103. package/storybook-static/assets/{RotatingText.stories-ByoOkJK3.js → RotatingText.stories-BqRKm4Pk.js} +1 -1
  104. package/storybook-static/assets/{ScrollFloat.stories-DzBb88Gj.js → ScrollFloat.stories-CyVus5Hn.js} +1 -1
  105. package/storybook-static/assets/{ScrollReveal.stories-Cvj4Nyqh.js → ScrollReveal.stories-HNSNKMZC.js} +1 -1
  106. package/storybook-static/assets/{ScrollVelocity.stories-Dv-M9Wnr.js → ScrollVelocity.stories-Bl2UPKz8.js} +1 -1
  107. package/storybook-static/assets/{SearchBar.stories-CerIHZtb.js → SearchBar.stories-zTNrUibf.js} +1 -1
  108. package/storybook-static/assets/{SearchableDropdown-BYUsXzuw.js → SearchableDropdown-jZtEQYje.js} +1 -1
  109. package/storybook-static/assets/{SearchableDropdown.stories-Be0en2w9.js → SearchableDropdown.stories-DeTNwt1p.js} +1 -1
  110. package/storybook-static/assets/{SelectInput-B1qnSkvU.js → SelectInput-CTOoI-ar.js} +1 -1
  111. package/storybook-static/assets/{SelectInput.stories-rG534PQk.js → SelectInput.stories-CXKqi4k2.js} +1 -1
  112. package/storybook-static/assets/{ShapeBlur.stories-C0OfXwcj.js → ShapeBlur.stories-on96JVhG.js} +1 -1
  113. package/storybook-static/assets/{ShapeGrid.stories-CGVyt0ij.js → ShapeGrid.stories-BRxQh7UX.js} +1 -1
  114. package/storybook-static/assets/{ShinyText.stories-CdqZ9sbE.js → ShinyText.stories-BSiGTTuW.js} +1 -1
  115. package/storybook-static/assets/{Silk.stories-C-SfR0Jg.js → Silk.stories-DLh6h5sr.js} +1 -1
  116. package/storybook-static/assets/{SleepChart.stories-aftHcHdn.js → SleepChart.stories-CqgT_xSG.js} +1 -1
  117. package/storybook-static/assets/{Slider-83i6BK20.js → Slider-DkwynjlW.js} +1 -1
  118. package/storybook-static/assets/{Slider.stories-B8uqaRWJ.js → Slider.stories-xzy9LCKq.js} +1 -1
  119. package/storybook-static/assets/{SoftAurora.stories-B7X9ZV2K.js → SoftAurora.stories-BEGlyxv2.js} +1 -1
  120. package/storybook-static/assets/{SoundDemo.stories-B2dUHnjX.js → SoundDemo.stories-lnHQaZRf.js} +1 -1
  121. package/storybook-static/assets/{SplashCursor.stories-B-X6nqbL.js → SplashCursor.stories-BLuoT7bI.js} +1 -1
  122. package/storybook-static/assets/{SpotlightCard.stories-DzWyLfst.js → SpotlightCard.stories-8rbsIN_x.js} +1 -1
  123. package/storybook-static/assets/{Stack.stories-Difhxomv.js → Stack.stories-rXRU4bV_.js} +1 -1
  124. package/storybook-static/assets/{StaggeredMenu.stories-jMzvdn-y.js → StaggeredMenu.stories-CTOihDVq.js} +1 -1
  125. package/storybook-static/assets/{StarBorder.stories-tllhEWZ6.js → StarBorder.stories-D42G2awE.js} +1 -1
  126. package/storybook-static/assets/{SunburstChart.stories-5vIpij27.js → SunburstChart.stories-CqJjS5Ra.js} +1 -1
  127. package/storybook-static/assets/{Table.stories-BkYY9ch2.js → Table.stories-DpQG-25p.js} +1 -1
  128. package/storybook-static/assets/Tabs-DrFUc5M1.css +1 -0
  129. package/storybook-static/assets/{Tabs.stories-BNA5iGAY.js → Tabs.stories-YHLNdl7B.js} +4 -4
  130. package/storybook-static/assets/{TargetCursor.stories-DtezwDkw.js → TargetCursor.stories-DRsMwPSK.js} +1 -1
  131. package/storybook-static/assets/{TextArea-B2Ks28b3.js → TextArea-CngqtNxw.js} +1 -1
  132. package/storybook-static/assets/{TextArea.stories-DkqiL7is.js → TextArea.stories-D1_hrHZS.js} +1 -1
  133. package/storybook-static/assets/{TextCursor.stories-BA8KwHmz.js → TextCursor.stories-UtxhqemP.js} +1 -1
  134. package/storybook-static/assets/{TextInput-RcF1I7gc.js → TextInput-BehfCmY5.js} +1 -1
  135. package/storybook-static/assets/{TextInput.stories-1ZvqndSt.js → TextInput.stories-BvXJYvPz.js} +1 -1
  136. package/storybook-static/assets/{TextPressure.stories-CagLTfG3.js → TextPressure.stories-CVxoipZx.js} +1 -1
  137. package/storybook-static/assets/{TextType.stories-D_VO9NN0.js → TextType.stories-Wbl-e4FH.js} +1 -1
  138. package/storybook-static/assets/{ThemeSwitcher.stories-D65qyRcn.js → ThemeSwitcher.stories-DJtkbIsv.js} +1 -1
  139. package/storybook-static/assets/{Threads.stories-BKuIk-S8.js → Threads.stories-lWTZV9-e.js} +1 -1
  140. package/storybook-static/assets/{TimeInput.stories-CtLYgtN1.js → TimeInput.stories-BRAnNdr7.js} +1 -1
  141. package/storybook-static/assets/{Toggle-DoFVZPP7.js → Toggle-Cox_9XI4.js} +1 -1
  142. package/storybook-static/assets/{Toggle.stories-BphSAMdU.js → Toggle.stories-D-LdkyEg.js} +1 -1
  143. package/storybook-static/assets/{ToggleButton-CMV9gTJe.js → ToggleButton-CJKNj0SW.js} +1 -1
  144. package/storybook-static/assets/{ToggleButton.stories-1J1Cc9rs.js → ToggleButton.stories-1ap-eMVz.js} +1 -1
  145. package/storybook-static/assets/{TrueFocus.stories-BF_15cUA.js → TrueFocus.stories-HdARUvZK.js} +1 -1
  146. package/storybook-static/assets/{VariableProximity.stories-CCJGixEX.js → VariableProximity.stories-Bs1ntmHm.js} +1 -1
  147. package/storybook-static/assets/{Waves.stories-5St-l3Wf.js → Waves.stories-DZefHbtX.js} +1 -1
  148. package/storybook-static/assets/{check-BeLtWVMx.js → check-C2eSkRHq.js} +1 -1
  149. package/storybook-static/assets/{chevron-down-D_mEXhKp.js → chevron-down-C-70uzgo.js} +1 -1
  150. package/storybook-static/assets/{chevron-right-DBSgwEbi.js → chevron-right-wsLgLx3I.js} +1 -1
  151. package/storybook-static/assets/client-BF4QBMW1.js +1 -0
  152. package/storybook-static/assets/{createLucideIcon-DuhF9yZF.js → createLucideIcon-DaHCgKFX.js} +1 -1
  153. package/storybook-static/assets/{download-j4xSjMSA.js → download--Xa2UKO-.js} +1 -1
  154. package/storybook-static/assets/{folder-Bwjab-Ym.js → folder-DCpVGUxB.js} +1 -1
  155. package/storybook-static/assets/{iconBase-qbjzzLYR.js → iconBase-B-RSH0v3.js} +1 -1
  156. package/storybook-static/assets/{iframe-CK6Mw28k.js → iframe-BVoBDGkl.js} +3 -3
  157. package/storybook-static/assets/{index-CQOm43iW.js → index-C5uOIRS9.js} +1 -1
  158. package/storybook-static/assets/{index-Dwwpkjqo.js → index-CyoTMuJi.js} +1 -1
  159. package/storybook-static/assets/{index-DhjWRu4G.js → index-DufMyQUu.js} +1 -1
  160. package/storybook-static/assets/{proxy-Bl04PYET.js → proxy-DTYfJ2to.js} +1 -1
  161. package/storybook-static/assets/{react-18-CDj_Zhc2.js → react-18-Blvw7U7X.js} +1 -1
  162. package/storybook-static/assets/{react-three-fiber.esm-B-YAFtc0.js → react-three-fiber.esm-C85N-HX5.js} +1 -1
  163. package/storybook-static/assets/{search-Bjs6a96N.js → search-MU52wG37.js} +1 -1
  164. package/storybook-static/assets/{settings-Z-MOtXdz.js → settings-s6BFzNVN.js} +1 -1
  165. package/storybook-static/assets/{sun-Ci0RAefo.js → sun-CEL81Yx2.js} +1 -1
  166. package/storybook-static/assets/{trash-2-G87MiWs9.js → trash-2-DEEOdkJB.js} +1 -1
  167. package/storybook-static/assets/{use-animation-frame-CHMft_Mi.js → use-animation-frame-BdekcKuM.js} +1 -1
  168. package/storybook-static/assets/{use-in-view-DJYXLAij.js → use-in-view-vaSz56VM.js} +1 -1
  169. package/storybook-static/assets/{use-motion-value-Do20FICu.js → use-motion-value-Cruaf_HC.js} +1 -1
  170. package/storybook-static/assets/{use-spring-BK29UAI4.js → use-spring-QrlvhiwT.js} +1 -1
  171. package/storybook-static/assets/{use-transform-whfZpWa9.js → use-transform-I-in6IUD.js} +1 -1
  172. package/storybook-static/assets/{useSound-D6Fr1PWT.js → useSound-D3odJ6j_.js} +1 -1
  173. package/storybook-static/assets/{users-BZc8oR_p.js → users-V3YzqUXe.js} +1 -1
  174. package/storybook-static/assets/{x-lYUPUVqC.js → x-CIfb6lfQ.js} +1 -1
  175. package/storybook-static/iframe.html +1 -1
  176. package/storybook-static/project.json +1 -1
  177. package/storybook-static/assets/Calendar-CmqcM0p9.css +0 -1
  178. package/storybook-static/assets/Tabs-CxzfjVJB.css +0 -1
  179. package/storybook-static/assets/client-C7ctmdCq.js +0 -1
@@ -1,4 +1,4 @@
1
- import{j as r,r as R}from"./iframe-CK6Mw28k.js";import{u as M}from"./use-spring-BK29UAI4.js";import{u as k}from"./use-transform-whfZpWa9.js";import{m as D}from"./proxy-Bl04PYET.js";import"./preload-helper-C1FmrZbK.js";import"./MotionConfigContext-Bw_b3ZUg.js";import"./use-motion-value-Do20FICu.js";const u={"counter-container":"_counter-container_1x3ml_1","counter-counter":"_counter-counter_1x3ml_6","counter-digit":"_counter-digit_1x3ml_12","counter-number":"_counter-number_1x3ml_18","gradient-container":"_gradient-container_1x3ml_29","bottom-gradient":"_bottom-gradient_1x3ml_38"};function E({mv:e,number:t,height:a}){let i=k(e,o=>{let s=o%10,n=(10+t-s)%10,d=n*a;return n>5&&(d-=10*a),d});return r.jsx(D.span,{className:`${u["counter-number"]}`,style:{y:i},children:t})}function S(e){const t=Math.round(e),a=1e-9*Math.max(1,Math.abs(e));return Math.abs(e-t)<a?t:e}function T(e,t){const a=e/t;return Math.floor(S(a))}function B({place:e,value:t,height:a,digitStyle:i}){const o=e===".",s=o?0:T(t,e),n=M(s);return R.useEffect(()=>{o||n.set(s)},[n,s,o]),o?r.jsx("span",{className:`${u["counter-digit"]}`,style:{height:a,...i,width:"fit-content"},children:"."}):r.jsx("span",{className:`${u["counter-digit"]}`,style:{height:a,...i},children:Array.from({length:10},(d,f)=>r.jsx(E,{mv:n,number:f,height:a},f))})}function q({value:e,fontSize:t=100,padding:a=0,places:i=[...e.toString()].map((p,c,l)=>p==="."?".":10**(l.indexOf(".")===-1?l.length-c-1:c<l.indexOf(".")?l.indexOf(".")-c-1:-(c-l.indexOf(".")))),gap:o=8,borderRadius:s=4,horizontalPadding:n=8,textColor:d="inherit",fontWeight:f="inherit",containerStyle:N,counterStyle:$,digitStyle:O,gradientHeight:g=16,gradientFrom:x="black",gradientTo:h="transparent",topGradientStyle:_,bottomGradientStyle:v}){const p=t+a,c={fontSize:t,gap:o,borderRadius:s,paddingLeft:n,paddingRight:n,color:d,fontWeight:f},l={height:g,background:`linear-gradient(to bottom, ${x}, ${h})`},C={height:g,background:`linear-gradient(to top, ${x}, ${h})`};return r.jsxs("span",{className:`${u["counter-container"]}`,style:N,children:[r.jsx("span",{className:`${u["counter-counter"]}`,style:{...c,...$},children:i.map(b=>r.jsx(B,{place:b,value:e,height:p,digitStyle:O},b))}),r.jsxs("span",{className:`${u["gradient-container"]}`,children:[r.jsx("span",{className:"top-gradient",style:_||l}),r.jsx("span",{className:`${u["bottom-gradient"]}`,style:v||C})]})]})}q.__docgenInfo={description:"",methods:[],displayName:"Counter",props:{fontSize:{defaultValue:{value:"100",computed:!1},required:!1},padding:{defaultValue:{value:"0",computed:!1},required:!1},places:{defaultValue:{value:`[...value.toString()].map((ch, i, a) => {
1
+ import{j as r,r as R}from"./iframe-BVoBDGkl.js";import{u as M}from"./use-spring-QrlvhiwT.js";import{u as k}from"./use-transform-I-in6IUD.js";import{m as D}from"./proxy-DTYfJ2to.js";import"./preload-helper-C1FmrZbK.js";import"./MotionConfigContext-BPeKZQwM.js";import"./use-motion-value-Cruaf_HC.js";const u={"counter-container":"_counter-container_1x3ml_1","counter-counter":"_counter-counter_1x3ml_6","counter-digit":"_counter-digit_1x3ml_12","counter-number":"_counter-number_1x3ml_18","gradient-container":"_gradient-container_1x3ml_29","bottom-gradient":"_bottom-gradient_1x3ml_38"};function E({mv:e,number:t,height:a}){let i=k(e,o=>{let s=o%10,n=(10+t-s)%10,d=n*a;return n>5&&(d-=10*a),d});return r.jsx(D.span,{className:`${u["counter-number"]}`,style:{y:i},children:t})}function S(e){const t=Math.round(e),a=1e-9*Math.max(1,Math.abs(e));return Math.abs(e-t)<a?t:e}function T(e,t){const a=e/t;return Math.floor(S(a))}function B({place:e,value:t,height:a,digitStyle:i}){const o=e===".",s=o?0:T(t,e),n=M(s);return R.useEffect(()=>{o||n.set(s)},[n,s,o]),o?r.jsx("span",{className:`${u["counter-digit"]}`,style:{height:a,...i,width:"fit-content"},children:"."}):r.jsx("span",{className:`${u["counter-digit"]}`,style:{height:a,...i},children:Array.from({length:10},(d,f)=>r.jsx(E,{mv:n,number:f,height:a},f))})}function q({value:e,fontSize:t=100,padding:a=0,places:i=[...e.toString()].map((p,c,l)=>p==="."?".":10**(l.indexOf(".")===-1?l.length-c-1:c<l.indexOf(".")?l.indexOf(".")-c-1:-(c-l.indexOf(".")))),gap:o=8,borderRadius:s=4,horizontalPadding:n=8,textColor:d="inherit",fontWeight:f="inherit",containerStyle:N,counterStyle:$,digitStyle:O,gradientHeight:g=16,gradientFrom:x="black",gradientTo:h="transparent",topGradientStyle:_,bottomGradientStyle:v}){const p=t+a,c={fontSize:t,gap:o,borderRadius:s,paddingLeft:n,paddingRight:n,color:d,fontWeight:f},l={height:g,background:`linear-gradient(to bottom, ${x}, ${h})`},C={height:g,background:`linear-gradient(to top, ${x}, ${h})`};return r.jsxs("span",{className:`${u["counter-container"]}`,style:N,children:[r.jsx("span",{className:`${u["counter-counter"]}`,style:{...c,...$},children:i.map(b=>r.jsx(B,{place:b,value:e,height:p,digitStyle:O},b))}),r.jsxs("span",{className:`${u["gradient-container"]}`,children:[r.jsx("span",{className:"top-gradient",style:_||l}),r.jsx("span",{className:`${u["bottom-gradient"]}`,style:v||C})]})]})}q.__docgenInfo={description:"",methods:[],displayName:"Counter",props:{fontSize:{defaultValue:{value:"100",computed:!1},required:!1},padding:{defaultValue:{value:"0",computed:!1},required:!1},places:{defaultValue:{value:`[...value.toString()].map((ch, i, a) => {
2
2
  ch == '.';
3
3
  if (ch === '.') {
4
4
  return '.';
@@ -1,4 +1,4 @@
1
- import{r as c,j as n}from"./iframe-CK6Mw28k.js";import{g as i}from"./index-C8pce-KX.js";import"./preload-helper-C1FmrZbK.js";const C=(o,e,l)=>(1-l)*o+l*e,M=(o,e)=>{if(e){const l=e.getBoundingClientRect();return{x:o.clientX-l.left,y:o.clientY-l.top}}return{x:o.clientX,y:o.clientY}},A=({color:o="white",containerRef:e=null})=>{const l=c.useRef(null),s=c.useRef(null),u=c.useRef(null),f=c.useRef(null),v=c.useRef(null);let a={x:0,y:0};return c.useEffect(()=>{const h=t=>{if(a=M(t,e==null?void 0:e.current),e!=null&&e.current){const m=e.current.getBoundingClientRect();t.clientX<m.left||t.clientX>m.right||t.clientY<m.top||t.clientY>m.bottom?i.to([s.current,u.current],{opacity:0}):i.to([s.current,u.current],{opacity:1})}},p=(e==null?void 0:e.current)||window;p.addEventListener("mousemove",h);const r={tx:{previous:0,current:0,amt:.15},ty:{previous:0,current:0,amt:.15}};i.set([s.current,u.current],{opacity:0});const y=()=>{r.tx.previous=r.tx.current=a.x,r.ty.previous=r.ty.current=a.y,i.to([s.current,u.current],{duration:.9,ease:"Power3.easeOut",opacity:1}),requestAnimationFrame(j),p.removeEventListener("mousemove",y)};p.addEventListener("mousemove",y);const x={turbulence:0},b=i.timeline({paused:!0,onStart:()=>{s.current.style.filter="url(#filter-noise-x)",u.current.style.filter="url(#filter-noise-y)"},onUpdate:()=>{f.current&&v.current&&(f.current.setAttribute("baseFrequency",x.turbulence),v.current.setAttribute("baseFrequency",x.turbulence))},onComplete:()=>{s.current&&u.current&&(s.current.style.filter=u.current.style.filter="none")}}).to(x,{duration:.5,ease:"power1",startAt:{turbulence:1},turbulence:0}),g=()=>b.restart(),E=()=>b.progress(1).kill(),j=()=>{r.tx.current=a.x,r.ty.current=a.y;for(const t in r)r[t].previous=C(r[t].previous,r[t].current,r[t].amt);s.current&&s.current&&(i.set(u.current,{x:r.tx.previous}),i.set(s.current,{y:r.ty.previous})),requestAnimationFrame(j)},w=e!=null&&e.current?e.current.querySelectorAll("a"):document.querySelectorAll("a");return w.forEach(t=>{t.addEventListener("mouseenter",g),t.addEventListener("mouseleave",E)}),()=>{p.removeEventListener("mousemove",h),p.removeEventListener("mousemove",y),w.forEach(t=>{t.removeEventListener("mouseenter",g),t.removeEventListener("mouseleave",E)})}},[e]),n.jsxs("div",{ref:l,className:"cursor",style:{position:e?"absolute":"fixed",top:0,left:0,width:"100%",height:"100%",pointerEvents:"none",zIndex:1e4},children:[n.jsx("svg",{style:{position:"absolute",left:0,top:0,width:"100%",height:"100%"},children:n.jsxs("defs",{children:[n.jsxs("filter",{id:"filter-noise-x",children:[n.jsx("feTurbulence",{type:"fractalNoise",baseFrequency:"0.000001",numOctaves:"1",ref:f}),n.jsx("feDisplacementMap",{in:"SourceGraphic",scale:"40"})]}),n.jsxs("filter",{id:"filter-noise-y",children:[n.jsx("feTurbulence",{type:"fractalNoise",baseFrequency:"0.000001",numOctaves:"1",ref:v}),n.jsx("feDisplacementMap",{in:"SourceGraphic",scale:"40"})]})]})}),n.jsx("div",{ref:s,style:{position:"absolute",width:"100%",height:"1px",background:o,pointerEvents:"none",transform:"translateY(50%)",opacity:0}}),n.jsx("div",{ref:u,style:{position:"absolute",height:"100%",width:"1px",background:o,pointerEvents:"none",transform:"translateX(50%)",opacity:0}})]})};A.__docgenInfo={description:"",methods:[],displayName:"Crosshair",props:{color:{defaultValue:{value:"'white'",computed:!1},required:!1},containerRef:{defaultValue:{value:"null",computed:!1},required:!1}}};const D={title:"ReactBits/Animations/Crosshair",component:A,parameters:{layout:"fullscreen"}},d={args:{color:"white",containerRef:null}};var q,L,S;d.parameters={...d.parameters,docs:{...(q=d.parameters)==null?void 0:q.docs,source:{originalSource:`{
1
+ import{r as c,j as n}from"./iframe-BVoBDGkl.js";import{g as i}from"./index-C8pce-KX.js";import"./preload-helper-C1FmrZbK.js";const C=(o,e,l)=>(1-l)*o+l*e,M=(o,e)=>{if(e){const l=e.getBoundingClientRect();return{x:o.clientX-l.left,y:o.clientY-l.top}}return{x:o.clientX,y:o.clientY}},A=({color:o="white",containerRef:e=null})=>{const l=c.useRef(null),s=c.useRef(null),u=c.useRef(null),f=c.useRef(null),v=c.useRef(null);let a={x:0,y:0};return c.useEffect(()=>{const h=t=>{if(a=M(t,e==null?void 0:e.current),e!=null&&e.current){const m=e.current.getBoundingClientRect();t.clientX<m.left||t.clientX>m.right||t.clientY<m.top||t.clientY>m.bottom?i.to([s.current,u.current],{opacity:0}):i.to([s.current,u.current],{opacity:1})}},p=(e==null?void 0:e.current)||window;p.addEventListener("mousemove",h);const r={tx:{previous:0,current:0,amt:.15},ty:{previous:0,current:0,amt:.15}};i.set([s.current,u.current],{opacity:0});const y=()=>{r.tx.previous=r.tx.current=a.x,r.ty.previous=r.ty.current=a.y,i.to([s.current,u.current],{duration:.9,ease:"Power3.easeOut",opacity:1}),requestAnimationFrame(j),p.removeEventListener("mousemove",y)};p.addEventListener("mousemove",y);const x={turbulence:0},b=i.timeline({paused:!0,onStart:()=>{s.current.style.filter="url(#filter-noise-x)",u.current.style.filter="url(#filter-noise-y)"},onUpdate:()=>{f.current&&v.current&&(f.current.setAttribute("baseFrequency",x.turbulence),v.current.setAttribute("baseFrequency",x.turbulence))},onComplete:()=>{s.current&&u.current&&(s.current.style.filter=u.current.style.filter="none")}}).to(x,{duration:.5,ease:"power1",startAt:{turbulence:1},turbulence:0}),g=()=>b.restart(),E=()=>b.progress(1).kill(),j=()=>{r.tx.current=a.x,r.ty.current=a.y;for(const t in r)r[t].previous=C(r[t].previous,r[t].current,r[t].amt);s.current&&s.current&&(i.set(u.current,{x:r.tx.previous}),i.set(s.current,{y:r.ty.previous})),requestAnimationFrame(j)},w=e!=null&&e.current?e.current.querySelectorAll("a"):document.querySelectorAll("a");return w.forEach(t=>{t.addEventListener("mouseenter",g),t.addEventListener("mouseleave",E)}),()=>{p.removeEventListener("mousemove",h),p.removeEventListener("mousemove",y),w.forEach(t=>{t.removeEventListener("mouseenter",g),t.removeEventListener("mouseleave",E)})}},[e]),n.jsxs("div",{ref:l,className:"cursor",style:{position:e?"absolute":"fixed",top:0,left:0,width:"100%",height:"100%",pointerEvents:"none",zIndex:1e4},children:[n.jsx("svg",{style:{position:"absolute",left:0,top:0,width:"100%",height:"100%"},children:n.jsxs("defs",{children:[n.jsxs("filter",{id:"filter-noise-x",children:[n.jsx("feTurbulence",{type:"fractalNoise",baseFrequency:"0.000001",numOctaves:"1",ref:f}),n.jsx("feDisplacementMap",{in:"SourceGraphic",scale:"40"})]}),n.jsxs("filter",{id:"filter-noise-y",children:[n.jsx("feTurbulence",{type:"fractalNoise",baseFrequency:"0.000001",numOctaves:"1",ref:v}),n.jsx("feDisplacementMap",{in:"SourceGraphic",scale:"40"})]})]})}),n.jsx("div",{ref:s,style:{position:"absolute",width:"100%",height:"1px",background:o,pointerEvents:"none",transform:"translateY(50%)",opacity:0}}),n.jsx("div",{ref:u,style:{position:"absolute",height:"100%",width:"1px",background:o,pointerEvents:"none",transform:"translateX(50%)",opacity:0}})]})};A.__docgenInfo={description:"",methods:[],displayName:"Crosshair",props:{color:{defaultValue:{value:"'white'",computed:!1},required:!1},containerRef:{defaultValue:{value:"null",computed:!1},required:!1}}};const D={title:"ReactBits/Animations/Crosshair",component:A,parameters:{layout:"fullscreen"}},d={args:{color:"white",containerRef:null}};var q,L,S;d.parameters={...d.parameters,docs:{...(q=d.parameters)==null?void 0:q.docs,source:{originalSource:`{
2
2
  args: {
3
3
  color: 'white',
4
4
  containerRef: null
@@ -1 +1 @@
1
- import{r as c,j as l}from"./iframe-CK6Mw28k.js";import{g as $}from"./index-C8pce-KX.js";import"./preload-helper-C1FmrZbK.js";const fe="_cube_lig8l_26",n={"default-animation":"_default-animation_lig8l_9","default-animation--scene":"_default-animation--scene_lig8l_16",cube:fe,"cube-face":"_cube-face_lig8l_43","cube-face--top":"_cube-face--top_lig8l_55","cube-face--bottom":"_cube-face--bottom_lig8l_59","cube-face--left":"_cube-face--left_lig8l_63","cube-face--right":"_cube-face--right_lig8l_67","cube-face--back":"_cube-face--back_lig8l_71","cube-face--front":"_cube-face--front_lig8l_72"},z=({gridSize:t=10,cubeSize:b,maxAngle:H=45,radius:k=3,easing:B="power3.out",duration:W={enter:.3,leave:.6},cellGap:s,borderStyle:ee="1px solid #fff",faceColor:M="#060010",shadow:O=!1,autoAnimate:P=!0,rippleOnClick:I=!0,rippleColor:J="#fff",rippleSpeed:w=2})=>{const u=c.useRef(null),f=c.useRef(null),i=c.useRef(null),v=c.useRef(!1),K=c.useRef({x:0,y:0}),T=c.useRef({x:0,y:0}),E=c.useRef(null),te=typeof s=="number"?`${s}px`:(s==null?void 0:s.col)!==void 0?`${s.col}px`:"5%",ae=typeof s=="number"?`${s}px`:(s==null?void 0:s.row)!==void 0?`${s.row}px`:"5%",Q=W.enter,R=W.leave,h=c.useCallback((e,a)=>{u.current&&u.current.querySelectorAll("[data-cube]").forEach(r=>{const o=+r.dataset.row,d=+r.dataset.col,m=Math.hypot(o-e,d-a);if(m<=k){const q=(1-m/k)*H;$.to(r,{duration:Q,ease:B,overwrite:!0,rotateX:-q,rotateY:q})}else $.to(r,{duration:R,ease:"power3.out",overwrite:!0,rotateX:0,rotateY:0})})},[k,H,Q,R,B]),j=c.useCallback(e=>{v.current=!0,i.current&&clearTimeout(i.current);const a=u.current.getBoundingClientRect(),r=a.width/t,o=a.height/t,d=(e.clientX-a.left)/r,m=(e.clientY-a.top)/o;f.current&&cancelAnimationFrame(f.current),f.current=requestAnimationFrame(()=>h(m,d)),i.current=setTimeout(()=>{v.current=!1},3e3)},[t,h]),x=c.useCallback(()=>{u.current&&u.current.querySelectorAll("[data-cube]").forEach(e=>$.to(e,{duration:R,rotateX:0,rotateY:0,ease:"power3.out"}))},[R]),L=c.useCallback(e=>{e.preventDefault(),v.current=!0,i.current&&clearTimeout(i.current);const a=u.current.getBoundingClientRect(),r=a.width/t,o=a.height/t,d=e.touches[0],m=(d.clientX-a.left)/r,C=(d.clientY-a.top)/o;f.current&&cancelAnimationFrame(f.current),f.current=requestAnimationFrame(()=>h(C,m)),i.current=setTimeout(()=>{v.current=!1},3e3)},[t,h]),V=c.useCallback(()=>{v.current=!0},[]),N=c.useCallback(()=>{u.current&&x()},[x]),D=c.useCallback(e=>{if(!I||!u.current)return;const a=u.current.getBoundingClientRect(),r=a.width/t,o=a.height/t,d=e.clientX||e.touches&&e.touches[0].clientX,m=e.clientY||e.touches&&e.touches[0].clientY,C=Math.floor((d-a.left)/r),q=Math.floor((m-a.top)/o),oe=.15,ne=.3,ue=.6,se=oe/w,F=ne/w,le=ue/w,y={};u.current.querySelectorAll("[data-cube]").forEach(p=>{const _=+p.dataset.row,A=+p.dataset.col,X=Math.hypot(_-q,A-C),Y=Math.round(X);y[Y]||(y[Y]=[]),y[Y].push(p)}),Object.keys(y).map(Number).sort((p,_)=>p-_).forEach(p=>{const _=p*se,A=y[p].flatMap(X=>Array.from(X.querySelectorAll("[data-cube-face]")));$.to(A,{backgroundColor:J,duration:F,delay:_,ease:"power3.out"}),$.to(A,{backgroundColor:M,duration:F,delay:_+F+le,ease:"power3.out"})})},[I,t,M,J,w]);c.useEffect(()=>{if(!P||!u.current)return;K.current={x:Math.random()*t,y:Math.random()*t},T.current={x:Math.random()*t,y:Math.random()*t};const e=.02,a=()=>{if(!v.current){const r=K.current,o=T.current;r.x+=(o.x-r.x)*e,r.y+=(o.y-r.y)*e,h(r.y,r.x),Math.hypot(r.x-o.x,r.y-o.y)<.1&&(T.current={x:Math.random()*t,y:Math.random()*t})}E.current=requestAnimationFrame(a)};return E.current=requestAnimationFrame(a),()=>{E.current!=null&&cancelAnimationFrame(E.current)}},[P,t,h]),c.useEffect(()=>{const e=u.current;if(e)return e.addEventListener("pointermove",j),e.addEventListener("pointerleave",x),e.addEventListener("click",D),e.addEventListener("touchmove",L,{passive:!1}),e.addEventListener("touchstart",V,{passive:!0}),e.addEventListener("touchend",N,{passive:!0}),()=>{e.removeEventListener("pointermove",j),e.removeEventListener("pointerleave",x),e.removeEventListener("click",D),e.removeEventListener("touchmove",L),e.removeEventListener("touchstart",V),e.removeEventListener("touchend",N),f.current!=null&&cancelAnimationFrame(f.current),i.current&&clearTimeout(i.current)}},[j,x,D,L,V,N]);const U=Array.from({length:t}),re={gridTemplateColumns:b?`repeat(${t}, ${b}px)`:`repeat(${t}, 1fr)`,gridTemplateRows:b?`repeat(${t}, ${b}px)`:`repeat(${t}, 1fr)`,columnGap:te,rowGap:ae},ce={"--cube-face-border":ee,"--cube-face-bg":M,"--cube-face-shadow":O===!0?"0 0 6px rgba(0,0,0,.5)":O||"none",...b?{width:`${t*b}px`,height:`${t*b}px`}:{}};return l.jsx("div",{className:`${n["default-animation"]}`,style:ce,children:l.jsx("div",{ref:u,className:`${n["default-animation--scene"]}`,style:re,children:U.map((e,a)=>U.map((r,o)=>l.jsxs("div",{className:`${n.cube}`,"data-cube":!0,"data-row":a,"data-col":o,children:[l.jsx("div",{className:`${n["cube-face"]} ${n["cube-face--top"]}`,"data-cube-face":!0}),l.jsx("div",{className:`${n["cube-face"]} ${n["cube-face--bottom"]}`,"data-cube-face":!0}),l.jsx("div",{className:`${n["cube-face"]} ${n["cube-face--left"]}`,"data-cube-face":!0}),l.jsx("div",{className:`${n["cube-face"]} ${n["cube-face--right"]}`,"data-cube-face":!0}),l.jsx("div",{className:`${n["cube-face"]} ${n["cube-face--front"]}`,"data-cube-face":!0}),l.jsx("div",{className:`${n["cube-face"]} ${n["cube-face--back"]}`,"data-cube-face":!0})]},`${a}-${o}`)))})})};z.__docgenInfo={description:"",methods:[],displayName:"Cubes",props:{gridSize:{defaultValue:{value:"10",computed:!1},required:!1},maxAngle:{defaultValue:{value:"45",computed:!1},required:!1},radius:{defaultValue:{value:"3",computed:!1},required:!1},easing:{defaultValue:{value:"'power3.out'",computed:!1},required:!1},duration:{defaultValue:{value:"{ enter: 0.3, leave: 0.6 }",computed:!1},required:!1},borderStyle:{defaultValue:{value:"'1px solid #fff'",computed:!1},required:!1},faceColor:{defaultValue:{value:"'#060010'",computed:!1},required:!1},shadow:{defaultValue:{value:"false",computed:!1},required:!1},autoAnimate:{defaultValue:{value:"true",computed:!1},required:!1},rippleOnClick:{defaultValue:{value:"true",computed:!1},required:!1},rippleColor:{defaultValue:{value:"'#fff'",computed:!1},required:!1},rippleSpeed:{defaultValue:{value:"2",computed:!1},required:!1}}};const pe={title:"ReactBits/Animations/Cubes",component:z,parameters:{layout:"fullscreen"}},g={};var Z,G,S;g.parameters={...g.parameters,docs:{...(Z=g.parameters)==null?void 0:Z.docs,source:{originalSource:"{}",...(S=(G=g.parameters)==null?void 0:G.docs)==null?void 0:S.source}}};const be=["Default"];export{g as Default,be as __namedExportsOrder,pe as default};
1
+ import{r as c,j as l}from"./iframe-BVoBDGkl.js";import{g as $}from"./index-C8pce-KX.js";import"./preload-helper-C1FmrZbK.js";const fe="_cube_lig8l_26",n={"default-animation":"_default-animation_lig8l_9","default-animation--scene":"_default-animation--scene_lig8l_16",cube:fe,"cube-face":"_cube-face_lig8l_43","cube-face--top":"_cube-face--top_lig8l_55","cube-face--bottom":"_cube-face--bottom_lig8l_59","cube-face--left":"_cube-face--left_lig8l_63","cube-face--right":"_cube-face--right_lig8l_67","cube-face--back":"_cube-face--back_lig8l_71","cube-face--front":"_cube-face--front_lig8l_72"},z=({gridSize:t=10,cubeSize:b,maxAngle:H=45,radius:k=3,easing:B="power3.out",duration:W={enter:.3,leave:.6},cellGap:s,borderStyle:ee="1px solid #fff",faceColor:M="#060010",shadow:O=!1,autoAnimate:P=!0,rippleOnClick:I=!0,rippleColor:J="#fff",rippleSpeed:w=2})=>{const u=c.useRef(null),f=c.useRef(null),i=c.useRef(null),v=c.useRef(!1),K=c.useRef({x:0,y:0}),T=c.useRef({x:0,y:0}),E=c.useRef(null),te=typeof s=="number"?`${s}px`:(s==null?void 0:s.col)!==void 0?`${s.col}px`:"5%",ae=typeof s=="number"?`${s}px`:(s==null?void 0:s.row)!==void 0?`${s.row}px`:"5%",Q=W.enter,R=W.leave,h=c.useCallback((e,a)=>{u.current&&u.current.querySelectorAll("[data-cube]").forEach(r=>{const o=+r.dataset.row,d=+r.dataset.col,m=Math.hypot(o-e,d-a);if(m<=k){const q=(1-m/k)*H;$.to(r,{duration:Q,ease:B,overwrite:!0,rotateX:-q,rotateY:q})}else $.to(r,{duration:R,ease:"power3.out",overwrite:!0,rotateX:0,rotateY:0})})},[k,H,Q,R,B]),j=c.useCallback(e=>{v.current=!0,i.current&&clearTimeout(i.current);const a=u.current.getBoundingClientRect(),r=a.width/t,o=a.height/t,d=(e.clientX-a.left)/r,m=(e.clientY-a.top)/o;f.current&&cancelAnimationFrame(f.current),f.current=requestAnimationFrame(()=>h(m,d)),i.current=setTimeout(()=>{v.current=!1},3e3)},[t,h]),x=c.useCallback(()=>{u.current&&u.current.querySelectorAll("[data-cube]").forEach(e=>$.to(e,{duration:R,rotateX:0,rotateY:0,ease:"power3.out"}))},[R]),L=c.useCallback(e=>{e.preventDefault(),v.current=!0,i.current&&clearTimeout(i.current);const a=u.current.getBoundingClientRect(),r=a.width/t,o=a.height/t,d=e.touches[0],m=(d.clientX-a.left)/r,C=(d.clientY-a.top)/o;f.current&&cancelAnimationFrame(f.current),f.current=requestAnimationFrame(()=>h(C,m)),i.current=setTimeout(()=>{v.current=!1},3e3)},[t,h]),V=c.useCallback(()=>{v.current=!0},[]),N=c.useCallback(()=>{u.current&&x()},[x]),D=c.useCallback(e=>{if(!I||!u.current)return;const a=u.current.getBoundingClientRect(),r=a.width/t,o=a.height/t,d=e.clientX||e.touches&&e.touches[0].clientX,m=e.clientY||e.touches&&e.touches[0].clientY,C=Math.floor((d-a.left)/r),q=Math.floor((m-a.top)/o),oe=.15,ne=.3,ue=.6,se=oe/w,F=ne/w,le=ue/w,y={};u.current.querySelectorAll("[data-cube]").forEach(p=>{const _=+p.dataset.row,A=+p.dataset.col,X=Math.hypot(_-q,A-C),Y=Math.round(X);y[Y]||(y[Y]=[]),y[Y].push(p)}),Object.keys(y).map(Number).sort((p,_)=>p-_).forEach(p=>{const _=p*se,A=y[p].flatMap(X=>Array.from(X.querySelectorAll("[data-cube-face]")));$.to(A,{backgroundColor:J,duration:F,delay:_,ease:"power3.out"}),$.to(A,{backgroundColor:M,duration:F,delay:_+F+le,ease:"power3.out"})})},[I,t,M,J,w]);c.useEffect(()=>{if(!P||!u.current)return;K.current={x:Math.random()*t,y:Math.random()*t},T.current={x:Math.random()*t,y:Math.random()*t};const e=.02,a=()=>{if(!v.current){const r=K.current,o=T.current;r.x+=(o.x-r.x)*e,r.y+=(o.y-r.y)*e,h(r.y,r.x),Math.hypot(r.x-o.x,r.y-o.y)<.1&&(T.current={x:Math.random()*t,y:Math.random()*t})}E.current=requestAnimationFrame(a)};return E.current=requestAnimationFrame(a),()=>{E.current!=null&&cancelAnimationFrame(E.current)}},[P,t,h]),c.useEffect(()=>{const e=u.current;if(e)return e.addEventListener("pointermove",j),e.addEventListener("pointerleave",x),e.addEventListener("click",D),e.addEventListener("touchmove",L,{passive:!1}),e.addEventListener("touchstart",V,{passive:!0}),e.addEventListener("touchend",N,{passive:!0}),()=>{e.removeEventListener("pointermove",j),e.removeEventListener("pointerleave",x),e.removeEventListener("click",D),e.removeEventListener("touchmove",L),e.removeEventListener("touchstart",V),e.removeEventListener("touchend",N),f.current!=null&&cancelAnimationFrame(f.current),i.current&&clearTimeout(i.current)}},[j,x,D,L,V,N]);const U=Array.from({length:t}),re={gridTemplateColumns:b?`repeat(${t}, ${b}px)`:`repeat(${t}, 1fr)`,gridTemplateRows:b?`repeat(${t}, ${b}px)`:`repeat(${t}, 1fr)`,columnGap:te,rowGap:ae},ce={"--cube-face-border":ee,"--cube-face-bg":M,"--cube-face-shadow":O===!0?"0 0 6px rgba(0,0,0,.5)":O||"none",...b?{width:`${t*b}px`,height:`${t*b}px`}:{}};return l.jsx("div",{className:`${n["default-animation"]}`,style:ce,children:l.jsx("div",{ref:u,className:`${n["default-animation--scene"]}`,style:re,children:U.map((e,a)=>U.map((r,o)=>l.jsxs("div",{className:`${n.cube}`,"data-cube":!0,"data-row":a,"data-col":o,children:[l.jsx("div",{className:`${n["cube-face"]} ${n["cube-face--top"]}`,"data-cube-face":!0}),l.jsx("div",{className:`${n["cube-face"]} ${n["cube-face--bottom"]}`,"data-cube-face":!0}),l.jsx("div",{className:`${n["cube-face"]} ${n["cube-face--left"]}`,"data-cube-face":!0}),l.jsx("div",{className:`${n["cube-face"]} ${n["cube-face--right"]}`,"data-cube-face":!0}),l.jsx("div",{className:`${n["cube-face"]} ${n["cube-face--front"]}`,"data-cube-face":!0}),l.jsx("div",{className:`${n["cube-face"]} ${n["cube-face--back"]}`,"data-cube-face":!0})]},`${a}-${o}`)))})})};z.__docgenInfo={description:"",methods:[],displayName:"Cubes",props:{gridSize:{defaultValue:{value:"10",computed:!1},required:!1},maxAngle:{defaultValue:{value:"45",computed:!1},required:!1},radius:{defaultValue:{value:"3",computed:!1},required:!1},easing:{defaultValue:{value:"'power3.out'",computed:!1},required:!1},duration:{defaultValue:{value:"{ enter: 0.3, leave: 0.6 }",computed:!1},required:!1},borderStyle:{defaultValue:{value:"'1px solid #fff'",computed:!1},required:!1},faceColor:{defaultValue:{value:"'#060010'",computed:!1},required:!1},shadow:{defaultValue:{value:"false",computed:!1},required:!1},autoAnimate:{defaultValue:{value:"true",computed:!1},required:!1},rippleOnClick:{defaultValue:{value:"true",computed:!1},required:!1},rippleColor:{defaultValue:{value:"'#fff'",computed:!1},required:!1},rippleSpeed:{defaultValue:{value:"2",computed:!1},required:!1}}};const pe={title:"ReactBits/Animations/Cubes",component:z,parameters:{layout:"fullscreen"}},g={};var Z,G,S;g.parameters={...g.parameters,docs:{...(Z=g.parameters)==null?void 0:Z.docs,source:{originalSource:"{}",...(S=(G=g.parameters)==null?void 0:G.docs)==null?void 0:S.source}}};const be=["Default"];export{g as Default,be as __namedExportsOrder,pe as default};
@@ -1,4 +1,4 @@
1
- import{r as t,j as u}from"./iframe-CK6Mw28k.js";import"./preload-helper-C1FmrZbK.js";const P={"curved-loop-jacket":"_curved-loop-jacket_1xrkt_1","curved-loop-svg":"_curved-loop-svg_1xrkt_9"},C=({marqueeText:i="",speed:m=2,className:A,curveAmount:E=400,direction:T="left",interactive:f=!0})=>{const l=t.useMemo(()=>(/\s|\u00A0$/.test(i)?i.replace(/\s+$/,""):i)+" ",[i]),v=t.useRef(null),s=t.useRef(null),$=t.useRef(null),[n,k]=t.useState(0),[w,x]=t.useState(0),O=`curve-${t.useId()}`,D=`M-100,40 Q500,${40+E} 1540,40`,c=t.useRef(!1),g=t.useRef(0),j=t.useRef(T),h=t.useRef(0),b=n,F=b?Array(Math.ceil(1800/b)+2).fill(l).join(""):l,d=n>0;t.useEffect(()=>{v.current&&k(v.current.getComputedTextLength())},[l,A]),t.useEffect(()=>{if(n&&s.current){const e=-n;s.current.setAttribute("startOffset",e+"px"),x(e)}},[n]),t.useEffect(()=>{if(!n||!d)return;let e=0;const a=()=>{if(!c.current&&s.current){const _=j.current==="right"?m:-m;let r=parseFloat(s.current.getAttribute("startOffset")||"0")+_;const R=n;r<=-R&&(r+=R),r>0&&(r-=R),s.current.setAttribute("startOffset",r+"px"),x(r)}e=requestAnimationFrame(a)};return e=requestAnimationFrame(a),()=>cancelAnimationFrame(e)},[n,m,d]);const V=e=>{f&&(c.current=!0,g.current=e.clientX,h.current=0,e.target.setPointerCapture(e.pointerId))},B=e=>{if(!f||!c.current||!s.current)return;const a=e.clientX-g.current;g.current=e.clientX,h.current=a;let o=parseFloat(s.current.getAttribute("startOffset")||"0")+a;const r=n;o<=-r&&(o+=r),o>0&&(o-=r),s.current.setAttribute("startOffset",o+"px"),x(o)},y=()=>{f&&(c.current=!1,j.current=h.current>0?"right":"left")},I=f?c.current?"grabbing":"grab":"auto";return u.jsx("div",{className:`${P["curved-loop-jacket"]}`,style:{visibility:d?"visible":"hidden",cursor:I},onPointerDown:V,onPointerMove:B,onPointerUp:y,onPointerLeave:y,children:u.jsxs("svg",{className:`${P["curved-loop-svg"]}`,viewBox:"0 0 1440 120",children:[u.jsx("text",{ref:v,xmlSpace:"preserve",style:{visibility:"hidden",opacity:0,pointerEvents:"none"},children:l}),u.jsx("defs",{children:u.jsx("path",{ref:$,id:O,d:D,fill:"none",stroke:"transparent"})}),d&&u.jsx("text",{fontWeight:"bold",xmlSpace:"preserve",className:A,children:u.jsx("textPath",{ref:s,href:`#${O}`,startOffset:w+"px",xmlSpace:"preserve",children:F})})]})})};C.__docgenInfo={description:"",methods:[],displayName:"CurvedLoop",props:{marqueeText:{defaultValue:{value:"''",computed:!1},required:!1},speed:{defaultValue:{value:"2",computed:!1},required:!1},curveAmount:{defaultValue:{value:"400",computed:!1},required:!1},direction:{defaultValue:{value:"'left'",computed:!1},required:!1},interactive:{defaultValue:{value:"true",computed:!1},required:!1}}};const Q={title:"ReactBits/TextAnimations/CurvedLoop",component:C,parameters:{layout:"fullscreen"}},p={args:{marqueeText:"React Bits - Curved Loop Text Animation - ",speed:2,curveAmount:400,direction:"left",interactive:!0}};var L,S,q;p.parameters={...p.parameters,docs:{...(L=p.parameters)==null?void 0:L.docs,source:{originalSource:`{
1
+ import{r as t,j as u}from"./iframe-BVoBDGkl.js";import"./preload-helper-C1FmrZbK.js";const P={"curved-loop-jacket":"_curved-loop-jacket_1xrkt_1","curved-loop-svg":"_curved-loop-svg_1xrkt_9"},C=({marqueeText:i="",speed:m=2,className:A,curveAmount:E=400,direction:T="left",interactive:f=!0})=>{const l=t.useMemo(()=>(/\s|\u00A0$/.test(i)?i.replace(/\s+$/,""):i)+" ",[i]),v=t.useRef(null),s=t.useRef(null),$=t.useRef(null),[n,k]=t.useState(0),[w,x]=t.useState(0),O=`curve-${t.useId()}`,D=`M-100,40 Q500,${40+E} 1540,40`,c=t.useRef(!1),g=t.useRef(0),j=t.useRef(T),h=t.useRef(0),b=n,F=b?Array(Math.ceil(1800/b)+2).fill(l).join(""):l,d=n>0;t.useEffect(()=>{v.current&&k(v.current.getComputedTextLength())},[l,A]),t.useEffect(()=>{if(n&&s.current){const e=-n;s.current.setAttribute("startOffset",e+"px"),x(e)}},[n]),t.useEffect(()=>{if(!n||!d)return;let e=0;const a=()=>{if(!c.current&&s.current){const _=j.current==="right"?m:-m;let r=parseFloat(s.current.getAttribute("startOffset")||"0")+_;const R=n;r<=-R&&(r+=R),r>0&&(r-=R),s.current.setAttribute("startOffset",r+"px"),x(r)}e=requestAnimationFrame(a)};return e=requestAnimationFrame(a),()=>cancelAnimationFrame(e)},[n,m,d]);const V=e=>{f&&(c.current=!0,g.current=e.clientX,h.current=0,e.target.setPointerCapture(e.pointerId))},B=e=>{if(!f||!c.current||!s.current)return;const a=e.clientX-g.current;g.current=e.clientX,h.current=a;let o=parseFloat(s.current.getAttribute("startOffset")||"0")+a;const r=n;o<=-r&&(o+=r),o>0&&(o-=r),s.current.setAttribute("startOffset",o+"px"),x(o)},y=()=>{f&&(c.current=!1,j.current=h.current>0?"right":"left")},I=f?c.current?"grabbing":"grab":"auto";return u.jsx("div",{className:`${P["curved-loop-jacket"]}`,style:{visibility:d?"visible":"hidden",cursor:I},onPointerDown:V,onPointerMove:B,onPointerUp:y,onPointerLeave:y,children:u.jsxs("svg",{className:`${P["curved-loop-svg"]}`,viewBox:"0 0 1440 120",children:[u.jsx("text",{ref:v,xmlSpace:"preserve",style:{visibility:"hidden",opacity:0,pointerEvents:"none"},children:l}),u.jsx("defs",{children:u.jsx("path",{ref:$,id:O,d:D,fill:"none",stroke:"transparent"})}),d&&u.jsx("text",{fontWeight:"bold",xmlSpace:"preserve",className:A,children:u.jsx("textPath",{ref:s,href:`#${O}`,startOffset:w+"px",xmlSpace:"preserve",children:F})})]})})};C.__docgenInfo={description:"",methods:[],displayName:"CurvedLoop",props:{marqueeText:{defaultValue:{value:"''",computed:!1},required:!1},speed:{defaultValue:{value:"2",computed:!1},required:!1},curveAmount:{defaultValue:{value:"400",computed:!1},required:!1},direction:{defaultValue:{value:"'left'",computed:!1},required:!1},interactive:{defaultValue:{value:"true",computed:!1},required:!1}}};const Q={title:"ReactBits/TextAnimations/CurvedLoop",component:C,parameters:{layout:"fullscreen"}},p={args:{marqueeText:"React Bits - Curved Loop Text Animation - ",speed:2,curveAmount:400,direction:"left",interactive:!0}};var L,S,q;p.parameters={...p.parameters,docs:{...(L=p.parameters)==null?void 0:L.docs,source:{originalSource:`{
2
2
  args: {
3
3
  marqueeText: 'React Bits - Curved Loop Text Animation - ',
4
4
  speed: 2,
@@ -1,4 +1,4 @@
1
- import{r as q,j as V}from"./iframe-CK6Mw28k.js";import{R as F,P as C,M as E}from"./Mesh-CwXV3WjE.js";import{T as k}from"./Triangle-64ffRKNB.js";import{V as z}from"./Vec2-Cf1C3GIc.js";import"./preload-helper-C1FmrZbK.js";const N={"darkveil-canvas":"_darkveil-canvas_1jcqg_1"},D=`
1
+ import{r as q,j as V}from"./iframe-BVoBDGkl.js";import{R as F,P as C,M as E}from"./Mesh-CwXV3WjE.js";import{T as k}from"./Triangle-64ffRKNB.js";import{V as z}from"./Vec2-Cf1C3GIc.js";import"./preload-helper-C1FmrZbK.js";const N={"darkveil-canvas":"_darkveil-canvas_1jcqg_1"},D=`
2
2
  attribute vec2 position;
3
3
  void main(){gl_Position=vec4(position,0.0,1.0);}
4
4
  `,H=`
@@ -1,4 +1,4 @@
1
- import{r as v,j as o}from"./iframe-CK6Mw28k.js";import{u as k}from"./useSound-D6Fr1PWT.js";import{c as N}from"./createLucideIcon-DuhF9yZF.js";/**
1
+ import{r as v,j as o}from"./iframe-BVoBDGkl.js";import{u as k}from"./useSound-D3odJ6j_.js";import{c as N}from"./createLucideIcon-DaHCgKFX.js";/**
2
2
  * @license lucide-react v0.539.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -1,4 +1,4 @@
1
- import{r as c,j as e}from"./iframe-CK6Mw28k.js";import{D as n}from"./DateInput-DO3zkLe0.js";import"./preload-helper-C1FmrZbK.js";import"./useSound-D6Fr1PWT.js";import"./createLucideIcon-DuhF9yZF.js";const b={title:"Atoms/DateInput",component:n,parameters:{layout:"centered",docs:{description:{component:"A date input component with European format (dd/mm/yyyy) and calendar picker support."}}},tags:["autodocs"],argTypes:{label:{control:"text"},value:{control:"text"},placeholder:{control:"text"},onChange:{action:"changed"},onFocus:{action:"focused"},onBlur:{action:"blurred"}}},a={args:{label:"Select Date",value:"",placeholder:"25/12/2024",onChange:()=>{}}},r={args:{label:"Check-in",value:"",placeholder:"dd/mm/yyyy",onChange:()=>{}},render:()=>{const[t,p]=c.useState(""),[o,h]=c.useState("");return e.jsxs("div",{style:{padding:"1.5rem",background:"var(--color-background)",border:"1px solid var(--color-border)",borderRadius:"var(--radius-md)",maxWidth:"400px"},children:[e.jsx("h3",{style:{marginTop:0,marginBottom:"1rem"},children:"Hotel Booking"}),e.jsxs("div",{style:{display:"flex",gap:"1rem",marginBottom:"1rem"},children:[e.jsx(n,{label:"Check-in",value:t,onChange:p,placeholder:"dd/mm/yyyy"}),e.jsx(n,{label:"Check-out",value:o,onChange:h,placeholder:"dd/mm/yyyy"})]}),t&&o&&e.jsxs("p",{style:{margin:0,fontSize:"0.875rem",color:"var(--color-text-secondary)"},children:["Your stay: ",new Date(t).toLocaleDateString("en-GB")," - ",new Date(o).toLocaleDateString("en-GB")]})]})},parameters:{controls:{disable:!0}}};var l,s,d;a.parameters={...a.parameters,docs:{...(l=a.parameters)==null?void 0:l.docs,source:{originalSource:`{
1
+ import{r as c,j as e}from"./iframe-BVoBDGkl.js";import{D as n}from"./DateInput-BX5D1pMg.js";import"./preload-helper-C1FmrZbK.js";import"./useSound-D3odJ6j_.js";import"./createLucideIcon-DaHCgKFX.js";const b={title:"Atoms/DateInput",component:n,parameters:{layout:"centered",docs:{description:{component:"A date input component with European format (dd/mm/yyyy) and calendar picker support."}}},tags:["autodocs"],argTypes:{label:{control:"text"},value:{control:"text"},placeholder:{control:"text"},onChange:{action:"changed"},onFocus:{action:"focused"},onBlur:{action:"blurred"}}},a={args:{label:"Select Date",value:"",placeholder:"25/12/2024",onChange:()=>{}}},r={args:{label:"Check-in",value:"",placeholder:"dd/mm/yyyy",onChange:()=>{}},render:()=>{const[t,p]=c.useState(""),[o,h]=c.useState("");return e.jsxs("div",{style:{padding:"1.5rem",background:"var(--color-background)",border:"1px solid var(--color-border)",borderRadius:"var(--radius-md)",maxWidth:"400px"},children:[e.jsx("h3",{style:{marginTop:0,marginBottom:"1rem"},children:"Hotel Booking"}),e.jsxs("div",{style:{display:"flex",gap:"1rem",marginBottom:"1rem"},children:[e.jsx(n,{label:"Check-in",value:t,onChange:p,placeholder:"dd/mm/yyyy"}),e.jsx(n,{label:"Check-out",value:o,onChange:h,placeholder:"dd/mm/yyyy"})]}),t&&o&&e.jsxs("p",{style:{margin:0,fontSize:"0.875rem",color:"var(--color-text-secondary)"},children:["Your stay: ",new Date(t).toLocaleDateString("en-GB")," - ",new Date(o).toLocaleDateString("en-GB")]})]})},parameters:{controls:{disable:!0}}};var l,s,d;a.parameters={...a.parameters,docs:{...(l=a.parameters)==null?void 0:l.docs,source:{originalSource:`{
2
2
  args: {
3
3
  label: 'Select Date',
4
4
  value: '',
@@ -1,4 +1,4 @@
1
- import{r as c,j as a}from"./iframe-CK6Mw28k.js";import{g as v}from"./index-C8pce-KX.js";import"./preload-helper-C1FmrZbK.js";const D="_content_deiue_1",W="_svg_deiue_5",f={content:D,svg:W,"card-text":"_card-text_deiue_13"},j=({width:M=300,height:S=400,image:z="https://picsum.photos/300/400?grayscale",children:C})=>{const h=c.useRef(null),p=c.useRef(null),n=c.useRef({x:window.innerWidth/2,y:window.innerHeight/2}),g=c.useRef({...n.current}),l=c.useRef({width:window.innerWidth,height:window.innerHeight});return c.useEffect(()=>{const d=(t,r,i)=>(1-i)*t+i*r,u=(t,r,i,e,o)=>(t-r)*(o-e)/(i-r)+e,E=(t,r,i,e)=>{const o=t-r,b=i-e;return Math.hypot(o,b)},x=()=>{l.current={width:window.innerWidth,height:window.innerHeight}},w=t=>{n.current={x:t.clientX,y:t.clientY}};window.addEventListener("resize",x),window.addEventListener("mousemove",w);const s={imgTransforms:{x:0,y:0,rz:0},displacementScale:0},y=()=>{let t=d(s.imgTransforms.x,u(n.current.x,0,l.current.width,-120,120),.1),r=d(s.imgTransforms.y,u(n.current.y,0,l.current.height,-120,120),.1),i=d(s.imgTransforms.rz,u(n.current.x,0,l.current.width,-10,10),.1);const e=50;t>e&&(t=e+(t-e)*.2),t<-e&&(t=-e+(t+e)*.2),r>e&&(r=e+(r-e)*.2),r<-e&&(r=-e+(r+e)*.2),s.imgTransforms.x=t,s.imgTransforms.y=r,s.imgTransforms.rz=i,h.current&&v.set(h.current,{x:s.imgTransforms.x,y:s.imgTransforms.y,rotateZ:s.imgTransforms.rz});const o=E(g.current.x,n.current.x,g.current.y,n.current.y);s.displacementScale=d(s.displacementScale,u(o,0,200,0,400),.06),p.current&&v.set(p.current,{attr:{scale:s.displacementScale}}),g.current={...n.current},requestAnimationFrame(y)};return y(),()=>{window.removeEventListener("resize",x),window.removeEventListener("mousemove",w)}},[]),a.jsxs("div",{className:`${f.content}`,style:{width:`${M}px`,height:`${S}px`},ref:h,children:[a.jsxs("svg",{viewBox:"-60 -75 720 900",preserveAspectRatio:"xMidYMid slice",className:`${f.svg}`,children:[a.jsxs("filter",{id:"imgFilter",children:[a.jsx("feTurbulence",{type:"turbulence",baseFrequency:"0.015",numOctaves:"5",seed:"4",stitchTiles:"stitch",x:"0%",y:"0%",width:"100%",height:"100%",result:"turbulence1"}),a.jsx("feDisplacementMap",{ref:p,in:"SourceGraphic",in2:"turbulence1",scale:"0",xChannelSelector:"R",yChannelSelector:"B",x:"0%",y:"0%",width:"100%",height:"100%",result:"displacementMap3"})]}),a.jsx("g",{children:a.jsx("image",{href:z,x:"0",y:"0",width:"600",height:"750",filter:"url(#imgFilter)",preserveAspectRatio:"xMidYMid slice"})})]}),a.jsx("div",{className:`${f["card-text"]}`,children:C})]})};j.__docgenInfo={description:"",methods:[],displayName:"DecayCard",props:{width:{defaultValue:{value:"300",computed:!1},required:!1},height:{defaultValue:{value:"400",computed:!1},required:!1},image:{defaultValue:{value:"'https://picsum.photos/300/400?grayscale'",computed:!1},required:!1}}};const F={title:"ReactBits/Components/DecayCard",component:j,parameters:{layout:"fullscreen"}},m={args:{width:300,height:400,image:"https://picsum.photos/300/400?grayscale",children:"Hello World"}};var R,T,_;m.parameters={...m.parameters,docs:{...(R=m.parameters)==null?void 0:R.docs,source:{originalSource:`{
1
+ import{r as c,j as a}from"./iframe-BVoBDGkl.js";import{g as v}from"./index-C8pce-KX.js";import"./preload-helper-C1FmrZbK.js";const D="_content_deiue_1",W="_svg_deiue_5",f={content:D,svg:W,"card-text":"_card-text_deiue_13"},j=({width:M=300,height:S=400,image:z="https://picsum.photos/300/400?grayscale",children:C})=>{const h=c.useRef(null),p=c.useRef(null),n=c.useRef({x:window.innerWidth/2,y:window.innerHeight/2}),g=c.useRef({...n.current}),l=c.useRef({width:window.innerWidth,height:window.innerHeight});return c.useEffect(()=>{const d=(t,r,i)=>(1-i)*t+i*r,u=(t,r,i,e,o)=>(t-r)*(o-e)/(i-r)+e,E=(t,r,i,e)=>{const o=t-r,b=i-e;return Math.hypot(o,b)},x=()=>{l.current={width:window.innerWidth,height:window.innerHeight}},w=t=>{n.current={x:t.clientX,y:t.clientY}};window.addEventListener("resize",x),window.addEventListener("mousemove",w);const s={imgTransforms:{x:0,y:0,rz:0},displacementScale:0},y=()=>{let t=d(s.imgTransforms.x,u(n.current.x,0,l.current.width,-120,120),.1),r=d(s.imgTransforms.y,u(n.current.y,0,l.current.height,-120,120),.1),i=d(s.imgTransforms.rz,u(n.current.x,0,l.current.width,-10,10),.1);const e=50;t>e&&(t=e+(t-e)*.2),t<-e&&(t=-e+(t+e)*.2),r>e&&(r=e+(r-e)*.2),r<-e&&(r=-e+(r+e)*.2),s.imgTransforms.x=t,s.imgTransforms.y=r,s.imgTransforms.rz=i,h.current&&v.set(h.current,{x:s.imgTransforms.x,y:s.imgTransforms.y,rotateZ:s.imgTransforms.rz});const o=E(g.current.x,n.current.x,g.current.y,n.current.y);s.displacementScale=d(s.displacementScale,u(o,0,200,0,400),.06),p.current&&v.set(p.current,{attr:{scale:s.displacementScale}}),g.current={...n.current},requestAnimationFrame(y)};return y(),()=>{window.removeEventListener("resize",x),window.removeEventListener("mousemove",w)}},[]),a.jsxs("div",{className:`${f.content}`,style:{width:`${M}px`,height:`${S}px`},ref:h,children:[a.jsxs("svg",{viewBox:"-60 -75 720 900",preserveAspectRatio:"xMidYMid slice",className:`${f.svg}`,children:[a.jsxs("filter",{id:"imgFilter",children:[a.jsx("feTurbulence",{type:"turbulence",baseFrequency:"0.015",numOctaves:"5",seed:"4",stitchTiles:"stitch",x:"0%",y:"0%",width:"100%",height:"100%",result:"turbulence1"}),a.jsx("feDisplacementMap",{ref:p,in:"SourceGraphic",in2:"turbulence1",scale:"0",xChannelSelector:"R",yChannelSelector:"B",x:"0%",y:"0%",width:"100%",height:"100%",result:"displacementMap3"})]}),a.jsx("g",{children:a.jsx("image",{href:z,x:"0",y:"0",width:"600",height:"750",filter:"url(#imgFilter)",preserveAspectRatio:"xMidYMid slice"})})]}),a.jsx("div",{className:`${f["card-text"]}`,children:C})]})};j.__docgenInfo={description:"",methods:[],displayName:"DecayCard",props:{width:{defaultValue:{value:"300",computed:!1},required:!1},height:{defaultValue:{value:"400",computed:!1},required:!1},image:{defaultValue:{value:"'https://picsum.photos/300/400?grayscale'",computed:!1},required:!1}}};const F={title:"ReactBits/Components/DecayCard",component:j,parameters:{layout:"fullscreen"}},m={args:{width:300,height:400,image:"https://picsum.photos/300/400?grayscale",children:"Hello World"}};var R,T,_;m.parameters={...m.parameters,docs:{...(R=m.parameters)==null?void 0:R.docs,source:{originalSource:`{
2
2
  args: {
3
3
  width: 300,
4
4
  height: 400,
@@ -1,4 +1,4 @@
1
- import{r as n,j as N}from"./iframe-CK6Mw28k.js";import{m as te}from"./proxy-Bl04PYET.js";import"./preload-helper-C1FmrZbK.js";import"./MotionConfigContext-Bw_b3ZUg.js";const P={wrapper:{display:"inline-block",whiteSpace:"pre-wrap"},srOnly:{position:"absolute",width:"1px",height:"1px",padding:0,margin:"-1px",overflow:"hidden",clip:"rect(0,0,0,0)",border:0}};function G({text:t,speed:j=50,maxIterations:I=10,sequential:w=!1,revealDirection:y="start",useOriginalCharsOnly:z=!1,characters:T="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz!@#$%^&*()_+",className:J="",parentClassName:K="",encryptedClassName:Q="",animateOn:i="hover",clickMode:x="once",...U}){const[R,c]=n.useState(t),[v,f]=n.useState(!1),[X,d]=n.useState(new Set),[H,Y]=n.useState(!1),[A,p]=n.useState(i!=="click"),[C,h]=n.useState("forward"),_=n.useRef(null),b=n.useRef([]),k=n.useRef(0),E=n.useMemo(()=>z?Array.from(new Set(t.split(""))).filter(r=>r!==" "):T.split(""),[z,t,T]),u=n.useCallback((r,a)=>r.split("").map((l,e)=>l===" "?" ":a.has(e)?r[e]:E[Math.floor(Math.random()*E.length)]).join(""),[E]),S=n.useCallback(r=>{const a=[];if(r<=0)return a;if(y==="start"){for(let s=0;s<r;s++)a.push(s);return a}if(y==="end"){for(let s=r-1;s>=0;s--)a.push(s);return a}const l=Math.floor(r/2);let e=0;for(;a.length<r;){if(e%2===0){const s=l+e/2;s>=0&&s<r&&a.push(s)}else{const s=l-Math.ceil(e/2);s>=0&&s<r&&a.push(s)}e++}return a.slice(0,r)},[y]),m=n.useCallback(()=>{const r=new Set;for(let a=0;a<t.length;a++)r.add(a);return r},[t]),O=n.useCallback((r,a)=>{const l=Array.from(r);for(let e=0;e<a&&l.length>0;e++){const s=Math.floor(Math.random()*l.length);l.splice(s,1)}return new Set(l)},[]),L=n.useCallback(()=>{const r=new Set;d(r),c(u(t,r)),p(!1)},[t,u]),M=n.useCallback(()=>{w?(b.current=S(t.length),k.current=0,d(new Set)):d(new Set),h("forward"),f(!0)},[w,S,t.length]),Z=n.useCallback(()=>{w?(b.current=S(t.length).slice().reverse(),k.current=0,d(m()),c(u(t,m()))):(d(m()),c(u(t,m()))),h("reverse"),f(!0)},[w,S,m,u,t]);n.useEffect(()=>{if(!v)return;let r,a=0;const l=e=>{const s=t.length;switch(y){case"start":return e.size;case"end":return s-1-e.size;case"center":{const o=Math.floor(s/2),g=Math.floor(e.size/2),V=e.size%2===0?o+g:o-g-1;if(V>=0&&V<s&&!e.has(V))return V;for(let D=0;D<s;D++)if(!e.has(D))return D;return 0}default:return e.size}};return r=setInterval(()=>{d(e=>{if(w){if(C==="forward")if(e.size<t.length){const s=l(e),o=new Set(e);return o.add(s),c(u(t,o)),o}else return clearInterval(r),f(!1),p(!0),e;if(C==="reverse")if(k.current<b.current.length){const s=b.current[k.current++],o=new Set(e);return o.delete(s),c(u(t,o)),o.size===0&&(clearInterval(r),f(!1),p(!1)),o}else return clearInterval(r),f(!1),p(!1),e}else{if(C==="forward")return c(u(t,e)),a++,a>=I&&(clearInterval(r),f(!1),c(t),p(!0)),e;if(C==="reverse"){let s=e;s.size===0&&(s=m());const o=Math.max(1,Math.ceil(t.length/Math.max(1,I))),g=O(s,o);return c(u(t,g)),a++,g.size===0||a>=I?(clearInterval(r),f(!1),p(!1),c(u(t,new Set)),new Set):g}}return e})},j),()=>clearInterval(r)},[v,t,j,I,w,y,u,C,m,O,T,z]);const $=()=>{if(i==="click"){if(x==="once"){if(A)return;h("forward"),M()}x==="toggle"&&(A?Z():(h("forward"),M()))}},ee=n.useCallback(()=>{v||(d(new Set),p(!1),c(t),h("forward"),f(!0))},[v,t]),re=n.useCallback(()=>{f(!1),d(new Set),c(t),p(!0),h("forward")},[t]);n.useEffect(()=>{if(i!=="view"&&i!=="inViewHover")return;const r=s=>{s.forEach(o=>{o.isIntersecting&&!H&&(M(),Y(!0))})},a={root:null,rootMargin:"0px",threshold:.1},l=new IntersectionObserver(r,a),e=_.current;return e&&l.observe(e),()=>{e&&l.unobserve(e)}},[i,H,M]),n.useEffect(()=>{i==="click"?L():(c(t),p(!0)),d(new Set),h("forward")},[i,t,L]);const se=i==="hover"||i==="inViewHover"?{onMouseEnter:ee,onMouseLeave:re}:i==="click"?{onClick:$}:{};return N.jsxs(te.span,{className:K,ref:_,style:P.wrapper,...se,...U,children:[N.jsx("span",{style:P.srOnly,children:R}),N.jsx("span",{"aria-hidden":"true",children:R.split("").map((r,a)=>{const l=X.has(a)||!v&&A;return N.jsx("span",{className:l?J:Q,children:r},a)})})]})}G.__docgenInfo={description:"",methods:[],displayName:"DecryptedText",props:{speed:{defaultValue:{value:"50",computed:!1},required:!1},maxIterations:{defaultValue:{value:"10",computed:!1},required:!1},sequential:{defaultValue:{value:"false",computed:!1},required:!1},revealDirection:{defaultValue:{value:"'start'",computed:!1},required:!1},useOriginalCharsOnly:{defaultValue:{value:"false",computed:!1},required:!1},characters:{defaultValue:{value:"'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz!@#$%^&*()_+'",computed:!1},required:!1},className:{defaultValue:{value:"''",computed:!1},required:!1},parentClassName:{defaultValue:{value:"''",computed:!1},required:!1},encryptedClassName:{defaultValue:{value:"''",computed:!1},required:!1},animateOn:{defaultValue:{value:"'hover'",computed:!1},required:!1},clickMode:{defaultValue:{value:"'once'",computed:!1},required:!1}}};const ce={title:"ReactBits/TextAnimations/DecryptedText",component:G,parameters:{layout:"fullscreen"}},q={args:{text:"Hello World",speed:50,maxIterations:10,sequential:!1,revealDirection:"start",useOriginalCharsOnly:!1,characters:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz!@#$%^&*()_+",parentClassName:"",encryptedClassName:"",animateOn:"hover",clickMode:"once"}};var W,B,F;q.parameters={...q.parameters,docs:{...(W=q.parameters)==null?void 0:W.docs,source:{originalSource:`{
1
+ import{r as n,j as N}from"./iframe-BVoBDGkl.js";import{m as te}from"./proxy-DTYfJ2to.js";import"./preload-helper-C1FmrZbK.js";import"./MotionConfigContext-BPeKZQwM.js";const P={wrapper:{display:"inline-block",whiteSpace:"pre-wrap"},srOnly:{position:"absolute",width:"1px",height:"1px",padding:0,margin:"-1px",overflow:"hidden",clip:"rect(0,0,0,0)",border:0}};function G({text:t,speed:j=50,maxIterations:I=10,sequential:w=!1,revealDirection:y="start",useOriginalCharsOnly:z=!1,characters:T="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz!@#$%^&*()_+",className:J="",parentClassName:K="",encryptedClassName:Q="",animateOn:i="hover",clickMode:x="once",...U}){const[R,c]=n.useState(t),[v,f]=n.useState(!1),[X,d]=n.useState(new Set),[H,Y]=n.useState(!1),[A,p]=n.useState(i!=="click"),[C,h]=n.useState("forward"),_=n.useRef(null),b=n.useRef([]),k=n.useRef(0),E=n.useMemo(()=>z?Array.from(new Set(t.split(""))).filter(r=>r!==" "):T.split(""),[z,t,T]),u=n.useCallback((r,a)=>r.split("").map((l,e)=>l===" "?" ":a.has(e)?r[e]:E[Math.floor(Math.random()*E.length)]).join(""),[E]),S=n.useCallback(r=>{const a=[];if(r<=0)return a;if(y==="start"){for(let s=0;s<r;s++)a.push(s);return a}if(y==="end"){for(let s=r-1;s>=0;s--)a.push(s);return a}const l=Math.floor(r/2);let e=0;for(;a.length<r;){if(e%2===0){const s=l+e/2;s>=0&&s<r&&a.push(s)}else{const s=l-Math.ceil(e/2);s>=0&&s<r&&a.push(s)}e++}return a.slice(0,r)},[y]),m=n.useCallback(()=>{const r=new Set;for(let a=0;a<t.length;a++)r.add(a);return r},[t]),O=n.useCallback((r,a)=>{const l=Array.from(r);for(let e=0;e<a&&l.length>0;e++){const s=Math.floor(Math.random()*l.length);l.splice(s,1)}return new Set(l)},[]),L=n.useCallback(()=>{const r=new Set;d(r),c(u(t,r)),p(!1)},[t,u]),M=n.useCallback(()=>{w?(b.current=S(t.length),k.current=0,d(new Set)):d(new Set),h("forward"),f(!0)},[w,S,t.length]),Z=n.useCallback(()=>{w?(b.current=S(t.length).slice().reverse(),k.current=0,d(m()),c(u(t,m()))):(d(m()),c(u(t,m()))),h("reverse"),f(!0)},[w,S,m,u,t]);n.useEffect(()=>{if(!v)return;let r,a=0;const l=e=>{const s=t.length;switch(y){case"start":return e.size;case"end":return s-1-e.size;case"center":{const o=Math.floor(s/2),g=Math.floor(e.size/2),V=e.size%2===0?o+g:o-g-1;if(V>=0&&V<s&&!e.has(V))return V;for(let D=0;D<s;D++)if(!e.has(D))return D;return 0}default:return e.size}};return r=setInterval(()=>{d(e=>{if(w){if(C==="forward")if(e.size<t.length){const s=l(e),o=new Set(e);return o.add(s),c(u(t,o)),o}else return clearInterval(r),f(!1),p(!0),e;if(C==="reverse")if(k.current<b.current.length){const s=b.current[k.current++],o=new Set(e);return o.delete(s),c(u(t,o)),o.size===0&&(clearInterval(r),f(!1),p(!1)),o}else return clearInterval(r),f(!1),p(!1),e}else{if(C==="forward")return c(u(t,e)),a++,a>=I&&(clearInterval(r),f(!1),c(t),p(!0)),e;if(C==="reverse"){let s=e;s.size===0&&(s=m());const o=Math.max(1,Math.ceil(t.length/Math.max(1,I))),g=O(s,o);return c(u(t,g)),a++,g.size===0||a>=I?(clearInterval(r),f(!1),p(!1),c(u(t,new Set)),new Set):g}}return e})},j),()=>clearInterval(r)},[v,t,j,I,w,y,u,C,m,O,T,z]);const $=()=>{if(i==="click"){if(x==="once"){if(A)return;h("forward"),M()}x==="toggle"&&(A?Z():(h("forward"),M()))}},ee=n.useCallback(()=>{v||(d(new Set),p(!1),c(t),h("forward"),f(!0))},[v,t]),re=n.useCallback(()=>{f(!1),d(new Set),c(t),p(!0),h("forward")},[t]);n.useEffect(()=>{if(i!=="view"&&i!=="inViewHover")return;const r=s=>{s.forEach(o=>{o.isIntersecting&&!H&&(M(),Y(!0))})},a={root:null,rootMargin:"0px",threshold:.1},l=new IntersectionObserver(r,a),e=_.current;return e&&l.observe(e),()=>{e&&l.unobserve(e)}},[i,H,M]),n.useEffect(()=>{i==="click"?L():(c(t),p(!0)),d(new Set),h("forward")},[i,t,L]);const se=i==="hover"||i==="inViewHover"?{onMouseEnter:ee,onMouseLeave:re}:i==="click"?{onClick:$}:{};return N.jsxs(te.span,{className:K,ref:_,style:P.wrapper,...se,...U,children:[N.jsx("span",{style:P.srOnly,children:R}),N.jsx("span",{"aria-hidden":"true",children:R.split("").map((r,a)=>{const l=X.has(a)||!v&&A;return N.jsx("span",{className:l?J:Q,children:r},a)})})]})}G.__docgenInfo={description:"",methods:[],displayName:"DecryptedText",props:{speed:{defaultValue:{value:"50",computed:!1},required:!1},maxIterations:{defaultValue:{value:"10",computed:!1},required:!1},sequential:{defaultValue:{value:"false",computed:!1},required:!1},revealDirection:{defaultValue:{value:"'start'",computed:!1},required:!1},useOriginalCharsOnly:{defaultValue:{value:"false",computed:!1},required:!1},characters:{defaultValue:{value:"'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz!@#$%^&*()_+'",computed:!1},required:!1},className:{defaultValue:{value:"''",computed:!1},required:!1},parentClassName:{defaultValue:{value:"''",computed:!1},required:!1},encryptedClassName:{defaultValue:{value:"''",computed:!1},required:!1},animateOn:{defaultValue:{value:"'hover'",computed:!1},required:!1},clickMode:{defaultValue:{value:"'once'",computed:!1},required:!1}}};const ce={title:"ReactBits/TextAnimations/DecryptedText",component:G,parameters:{layout:"fullscreen"}},q={args:{text:"Hello World",speed:50,maxIterations:10,sequential:!1,revealDirection:"start",useOriginalCharsOnly:!1,characters:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz!@#$%^&*()_+",parentClassName:"",encryptedClassName:"",animateOn:"hover",clickMode:"once"}};var W,B,F;q.parameters={...q.parameters,docs:{...(W=q.parameters)==null?void 0:W.docs,source:{originalSource:`{
2
2
  args: {
3
3
  text: 'Hello World',
4
4
  speed: 50,
@@ -1,4 +1,4 @@
1
- import{R as D,r as i,j as n}from"./iframe-CK6Mw28k.js";import{u as I,a as $,e as K,C as Q}from"./react-three-fiber.esm-B-YAFtc0.js";import{H as Z,N as ee,d as V,G as p,n as oe}from"./three.module--_vTUKhS.js";import{E as te,R as ae,N as re,D as ne,a as F,b as se,c as L,P as ie}from"./index-DcRHiSf7.js";import"./preload-helper-C1FmrZbK.js";let _;function le(){var a;if(_!==void 0)return _;try{let o;const v=document.createElement("canvas");return _=!!(window.WebGL2RenderingContext&&(o=v.getContext("webgl2"))),o&&((a=o.getExtension("WEBGL_lose_context"))==null||a.loseContext()),_}catch{return _=!1}}const ue=i.createContext(null),T=a=>(a.getAttributes()&L.CONVOLUTION)===L.CONVOLUTION,ce=D.memo(i.forwardRef(({children:a,camera:o,scene:v,resolutionScale:r,enabled:y=!0,renderPriority:x=1,autoClear:P=!0,depthBuffer:u,enableNormalPass:w,stencilBuffer:C,multisampling:l=8,frameBufferType:g=Z},z)=>{const{gl:s,scene:E,camera:j,size:N}=I(),c=v||E,e=o||j,[t,f,S]=i.useMemo(()=>{const b=le(),d=new te(s,{depthBuffer:u,stencilBuffer:C,multisampling:l>0&&b?l:0,frameBufferType:g});d.addPass(new ae(c,e));let h=null,m=null;return w&&(m=new re(c,e),m.enabled=!1,d.addPass(m),r!==void 0&&b&&(h=new ne({normalBuffer:m.texture,resolutionScale:r}),h.enabled=!1,d.addPass(h))),[d,m,h]},[e,s,u,C,l,g,c,w,r]);i.useEffect(()=>t==null?void 0:t.setSize(N.width,N.height),[t,N]),$((b,d)=>{if(y){const h=s.autoClear;s.autoClear=P,C&&!P&&s.clearStencil(),t.render(d),s.autoClear=h}},y?x:0);const O=i.useRef(null);i.useLayoutEffect(()=>{var b;const d=[],h=(b=O.current)==null?void 0:b.__r3f;if(h&&t){const m=h.objects;for(let R=0;R<m.length;R++){const M=m[R];if(M instanceof F){const G=[M];if(!T(M)){let A=null;for(;(A=m[R+1])instanceof F&&!T(A);)G.push(A),R++}const Y=new se(e,...G);d.push(Y)}else M instanceof ie&&d.push(M)}for(const R of d)t==null||t.addPass(R);f&&(f.enabled=!0),S&&(S.enabled=!0)}return()=>{for(const m of d)t==null||t.removePass(m);f&&(f.enabled=!1),S&&(S.enabled=!1)}},[t,a,e,f,S]),i.useEffect(()=>{const b=s.toneMapping;return s.toneMapping=ee,()=>{s.toneMapping=b}},[s]);const X=i.useMemo(()=>({composer:t,normalPass:f,downSamplingPass:S,resolutionScale:r,camera:e,scene:c}),[t,f,S,r,e,c]);return i.useImperativeHandle(z,()=>t,[t]),n.jsx(ue.Provider,{value:X,children:n.jsx("group",{ref:O,children:a})})}));let fe=0;const U=new WeakMap,ve=(a,o)=>D.forwardRef(function({blendFunction:r=void 0,opacity:y=void 0,...x},P){let u=U.get(a);if(!u){const l=`@react-three/postprocessing/${a.name}-${fe++}`;K({[l]:a}),U.set(a,u=l)}const w=I(l=>l.camera),C=D.useMemo(()=>{var l,g;return[...(l=void 0)!=null?l:[],...(g=x.args)!=null?g:[{...o,...x}]]},[JSON.stringify(x)]);return n.jsx(u,{camera:w,"blendMode-blendFunction":r,"blendMode-opacity-value":y,...x,ref:P,args:C})}),de={"dither-container":"_dither-container_8gdcp_1"},me=`
1
+ import{R as D,r as i,j as n}from"./iframe-BVoBDGkl.js";import{u as I,a as $,e as K,C as Q}from"./react-three-fiber.esm-C85N-HX5.js";import{H as Z,N as ee,d as V,G as p,n as oe}from"./three.module--_vTUKhS.js";import{E as te,R as ae,N as re,D as ne,a as F,b as se,c as L,P as ie}from"./index-DcRHiSf7.js";import"./preload-helper-C1FmrZbK.js";let _;function le(){var a;if(_!==void 0)return _;try{let o;const v=document.createElement("canvas");return _=!!(window.WebGL2RenderingContext&&(o=v.getContext("webgl2"))),o&&((a=o.getExtension("WEBGL_lose_context"))==null||a.loseContext()),_}catch{return _=!1}}const ue=i.createContext(null),T=a=>(a.getAttributes()&L.CONVOLUTION)===L.CONVOLUTION,ce=D.memo(i.forwardRef(({children:a,camera:o,scene:v,resolutionScale:r,enabled:y=!0,renderPriority:x=1,autoClear:P=!0,depthBuffer:u,enableNormalPass:w,stencilBuffer:C,multisampling:l=8,frameBufferType:g=Z},z)=>{const{gl:s,scene:E,camera:j,size:N}=I(),c=v||E,e=o||j,[t,f,S]=i.useMemo(()=>{const b=le(),d=new te(s,{depthBuffer:u,stencilBuffer:C,multisampling:l>0&&b?l:0,frameBufferType:g});d.addPass(new ae(c,e));let h=null,m=null;return w&&(m=new re(c,e),m.enabled=!1,d.addPass(m),r!==void 0&&b&&(h=new ne({normalBuffer:m.texture,resolutionScale:r}),h.enabled=!1,d.addPass(h))),[d,m,h]},[e,s,u,C,l,g,c,w,r]);i.useEffect(()=>t==null?void 0:t.setSize(N.width,N.height),[t,N]),$((b,d)=>{if(y){const h=s.autoClear;s.autoClear=P,C&&!P&&s.clearStencil(),t.render(d),s.autoClear=h}},y?x:0);const O=i.useRef(null);i.useLayoutEffect(()=>{var b;const d=[],h=(b=O.current)==null?void 0:b.__r3f;if(h&&t){const m=h.objects;for(let R=0;R<m.length;R++){const M=m[R];if(M instanceof F){const G=[M];if(!T(M)){let A=null;for(;(A=m[R+1])instanceof F&&!T(A);)G.push(A),R++}const Y=new se(e,...G);d.push(Y)}else M instanceof ie&&d.push(M)}for(const R of d)t==null||t.addPass(R);f&&(f.enabled=!0),S&&(S.enabled=!0)}return()=>{for(const m of d)t==null||t.removePass(m);f&&(f.enabled=!1),S&&(S.enabled=!1)}},[t,a,e,f,S]),i.useEffect(()=>{const b=s.toneMapping;return s.toneMapping=ee,()=>{s.toneMapping=b}},[s]);const X=i.useMemo(()=>({composer:t,normalPass:f,downSamplingPass:S,resolutionScale:r,camera:e,scene:c}),[t,f,S,r,e,c]);return i.useImperativeHandle(z,()=>t,[t]),n.jsx(ue.Provider,{value:X,children:n.jsx("group",{ref:O,children:a})})}));let fe=0;const U=new WeakMap,ve=(a,o)=>D.forwardRef(function({blendFunction:r=void 0,opacity:y=void 0,...x},P){let u=U.get(a);if(!u){const l=`@react-three/postprocessing/${a.name}-${fe++}`;K({[l]:a}),U.set(a,u=l)}const w=I(l=>l.camera),C=D.useMemo(()=>{var l,g;return[...(l=void 0)!=null?l:[],...(g=x.args)!=null?g:[{...o,...x}]]},[JSON.stringify(x)]);return n.jsx(u,{camera:w,"blendMode-blendFunction":r,"blendMode-opacity-value":y,...x,ref:P,args:C})}),de={"dither-container":"_dither-container_8gdcp_1"},me=`
2
2
  precision highp float;
3
3
  varying vec2 vUv;
4
4
  void main() {
@@ -1,4 +1,4 @@
1
- import{r as d,j as e}from"./iframe-CK6Mw28k.js";import{u as y}from"./use-motion-value-Do20FICu.js";import{u as S}from"./use-transform-whfZpWa9.js";import{u as H}from"./use-spring-BK29UAI4.js";import{m as k}from"./proxy-Bl04PYET.js";import{A as D}from"./index-DhjWRu4G.js";import"./preload-helper-C1FmrZbK.js";import"./MotionConfigContext-Bw_b3ZUg.js";const p={"dock-outer":"_dock-outer_12xx3_1","dock-panel":"_dock-panel_12xx3_8","dock-item":"_dock-item_12xx3_23","dock-icon":"_dock-icon_12xx3_38","dock-label":"_dock-label_12xx3_44"};function M({children:t,className:l="",onClick:i,mouseX:o,spring:m,distance:a,magnification:r,baseItemSize:c}){const u=d.useRef(null),s=y(0),x=S(o,n=>{var v;const b=((v=u.current)==null?void 0:v.getBoundingClientRect())??{x:0};return n-b.x-c/2}),g=S(x,[-a,0,a],[c,r,c]),f=H(g,m);return e.jsx(k.div,{ref:u,style:{width:f,height:f},onHoverStart:()=>s.set(1),onHoverEnd:()=>s.set(0),onFocus:()=>s.set(1),onBlur:()=>s.set(0),onClick:i,className:`${p["dock-item"]} ${l}`,tabIndex:0,role:"button","aria-haspopup":"true",children:d.Children.map(t,n=>d.cloneElement(n,{isHovered:s}))})}function V({children:t,className:l="",...i}){const{isHovered:o}=i,[m,a]=d.useState(!1);return d.useEffect(()=>{const r=o.on("change",c=>{a(c===1)});return()=>r()},[o]),e.jsx(D,{children:m&&e.jsx(k.div,{initial:{opacity:0,y:0},animate:{opacity:1,y:-10},exit:{opacity:0,y:0},transition:{duration:.2},className:`${p["dock-label"]} ${l}`,role:"tooltip",style:{x:"-50%"},children:t})})}function N({children:t,className:l=""}){return e.jsx("div",{className:`${p["dock-icon"]} ${l}`,children:t})}function z({items:t,className:l="",spring:i={mass:.1,stiffness:150,damping:12},magnification:o=70,distance:m=200,panelHeight:a=68,dockHeight:r=256,baseItemSize:c=50}){const u=y(1/0),s=y(0),x=d.useMemo(()=>Math.max(r,o+o/2+4),[o,r]),g=S(s,[0,1],[a,x]),f=H(g,i);return e.jsx(k.div,{style:{height:f,scrollbarWidth:"none"},className:`${p["dock-outer"]}`,children:e.jsx(k.div,{onMouseMove:({pageX:n})=>{s.set(1),u.set(n)},onMouseLeave:()=>{s.set(0),u.set(1/0)},className:`${p["dock-panel"]} ${l}`,style:{height:a},role:"toolbar","aria-label":"Application dock",children:t.map((n,b)=>e.jsxs(M,{onClick:n.onClick,className:n.className,mouseX:u,spring:i,distance:m,magnification:o,baseItemSize:c,children:[e.jsx(N,{children:n.icon}),e.jsx(V,{children:n.label})]},b))})})}z.__docgenInfo={description:"",methods:[],displayName:"Dock",props:{className:{defaultValue:{value:"''",computed:!1},required:!1},spring:{defaultValue:{value:"{ mass: 0.1, stiffness: 150, damping: 12 }",computed:!1},required:!1},magnification:{defaultValue:{value:"70",computed:!1},required:!1},distance:{defaultValue:{value:"200",computed:!1},required:!1},panelHeight:{defaultValue:{value:"68",computed:!1},required:!1},dockHeight:{defaultValue:{value:"256",computed:!1},required:!1},baseItemSize:{defaultValue:{value:"50",computed:!1},required:!1}}};const L={title:"ReactBits/Components/Dock",component:z,parameters:{layout:"fullscreen"}},h={args:{items:[{icon:e.jsx("span",{style:{fontSize:24},children:"🏠"}),label:"Home",onClick:()=>console.log("Home")},{icon:e.jsx("span",{style:{fontSize:24},children:"📄"}),label:"Documents",onClick:()=>console.log("Documents")},{icon:e.jsx("span",{style:{fontSize:24},children:"⚙️"}),label:"Settings",onClick:()=>console.log("Settings")},{icon:e.jsx("span",{style:{fontSize:24},children:"📧"}),label:"Mail",onClick:()=>console.log("Mail")},{icon:e.jsx("span",{style:{fontSize:24},children:"🔍"}),label:"Search",onClick:()=>console.log("Search")}],magnification:70,distance:200,panelHeight:68,dockHeight:256,baseItemSize:50}};var _,j,C;h.parameters={...h.parameters,docs:{...(_=h.parameters)==null?void 0:_.docs,source:{originalSource:`{
1
+ import{r as d,j as e}from"./iframe-BVoBDGkl.js";import{u as y}from"./use-motion-value-Cruaf_HC.js";import{u as S}from"./use-transform-I-in6IUD.js";import{u as H}from"./use-spring-QrlvhiwT.js";import{m as k}from"./proxy-DTYfJ2to.js";import{A as D}from"./index-DufMyQUu.js";import"./preload-helper-C1FmrZbK.js";import"./MotionConfigContext-BPeKZQwM.js";const p={"dock-outer":"_dock-outer_12xx3_1","dock-panel":"_dock-panel_12xx3_8","dock-item":"_dock-item_12xx3_23","dock-icon":"_dock-icon_12xx3_38","dock-label":"_dock-label_12xx3_44"};function M({children:t,className:l="",onClick:i,mouseX:o,spring:m,distance:a,magnification:r,baseItemSize:c}){const u=d.useRef(null),s=y(0),x=S(o,n=>{var v;const b=((v=u.current)==null?void 0:v.getBoundingClientRect())??{x:0};return n-b.x-c/2}),g=S(x,[-a,0,a],[c,r,c]),f=H(g,m);return e.jsx(k.div,{ref:u,style:{width:f,height:f},onHoverStart:()=>s.set(1),onHoverEnd:()=>s.set(0),onFocus:()=>s.set(1),onBlur:()=>s.set(0),onClick:i,className:`${p["dock-item"]} ${l}`,tabIndex:0,role:"button","aria-haspopup":"true",children:d.Children.map(t,n=>d.cloneElement(n,{isHovered:s}))})}function V({children:t,className:l="",...i}){const{isHovered:o}=i,[m,a]=d.useState(!1);return d.useEffect(()=>{const r=o.on("change",c=>{a(c===1)});return()=>r()},[o]),e.jsx(D,{children:m&&e.jsx(k.div,{initial:{opacity:0,y:0},animate:{opacity:1,y:-10},exit:{opacity:0,y:0},transition:{duration:.2},className:`${p["dock-label"]} ${l}`,role:"tooltip",style:{x:"-50%"},children:t})})}function N({children:t,className:l=""}){return e.jsx("div",{className:`${p["dock-icon"]} ${l}`,children:t})}function z({items:t,className:l="",spring:i={mass:.1,stiffness:150,damping:12},magnification:o=70,distance:m=200,panelHeight:a=68,dockHeight:r=256,baseItemSize:c=50}){const u=y(1/0),s=y(0),x=d.useMemo(()=>Math.max(r,o+o/2+4),[o,r]),g=S(s,[0,1],[a,x]),f=H(g,i);return e.jsx(k.div,{style:{height:f,scrollbarWidth:"none"},className:`${p["dock-outer"]}`,children:e.jsx(k.div,{onMouseMove:({pageX:n})=>{s.set(1),u.set(n)},onMouseLeave:()=>{s.set(0),u.set(1/0)},className:`${p["dock-panel"]} ${l}`,style:{height:a},role:"toolbar","aria-label":"Application dock",children:t.map((n,b)=>e.jsxs(M,{onClick:n.onClick,className:n.className,mouseX:u,spring:i,distance:m,magnification:o,baseItemSize:c,children:[e.jsx(N,{children:n.icon}),e.jsx(V,{children:n.label})]},b))})})}z.__docgenInfo={description:"",methods:[],displayName:"Dock",props:{className:{defaultValue:{value:"''",computed:!1},required:!1},spring:{defaultValue:{value:"{ mass: 0.1, stiffness: 150, damping: 12 }",computed:!1},required:!1},magnification:{defaultValue:{value:"70",computed:!1},required:!1},distance:{defaultValue:{value:"200",computed:!1},required:!1},panelHeight:{defaultValue:{value:"68",computed:!1},required:!1},dockHeight:{defaultValue:{value:"256",computed:!1},required:!1},baseItemSize:{defaultValue:{value:"50",computed:!1},required:!1}}};const L={title:"ReactBits/Components/Dock",component:z,parameters:{layout:"fullscreen"}},h={args:{items:[{icon:e.jsx("span",{style:{fontSize:24},children:"🏠"}),label:"Home",onClick:()=>console.log("Home")},{icon:e.jsx("span",{style:{fontSize:24},children:"📄"}),label:"Documents",onClick:()=>console.log("Documents")},{icon:e.jsx("span",{style:{fontSize:24},children:"⚙️"}),label:"Settings",onClick:()=>console.log("Settings")},{icon:e.jsx("span",{style:{fontSize:24},children:"📧"}),label:"Mail",onClick:()=>console.log("Mail")},{icon:e.jsx("span",{style:{fontSize:24},children:"🔍"}),label:"Search",onClick:()=>console.log("Search")}],magnification:70,distance:200,panelHeight:68,dockHeight:256,baseItemSize:50}};var _,j,C;h.parameters={...h.parameters,docs:{...(_=h.parameters)==null?void 0:_.docs,source:{originalSource:`{
2
2
  args: {
3
3
  items: [{
4
4
  icon: <span style={{
@@ -1,4 +1,4 @@
1
- import{r as a,j as e}from"./iframe-CK6Mw28k.js";import{m as Y}from"./proxy-Bl04PYET.js";import{C as O}from"./check-BeLtWVMx.js";import{X as G}from"./x-lYUPUVqC.js";import{c as J}from"./createLucideIcon-DuhF9yZF.js";import"./preload-helper-C1FmrZbK.js";import"./MotionConfigContext-Bw_b3ZUg.js";/**
1
+ import{r as a,j as e}from"./iframe-BVoBDGkl.js";import{m as Y}from"./proxy-DTYfJ2to.js";import{C as O}from"./check-C2eSkRHq.js";import{X as G}from"./x-CIfb6lfQ.js";import{c as J}from"./createLucideIcon-DaHCgKFX.js";import"./preload-helper-C1FmrZbK.js";import"./MotionConfigContext-BPeKZQwM.js";/**
2
2
  * @license lucide-react v0.539.0 - ISC
3
3
  *
4
4
  * This source code is licensed under the ISC license.
@@ -1,4 +1,4 @@
1
- import{r as G,j as P}from"./iframe-CK6Mw28k.js";import{R as _,P as V,M as q}from"./Mesh-CwXV3WjE.js";import{T as L}from"./Texture-BkQWYNP2.js";import{T as U}from"./Triangle-64ffRKNB.js";import"./preload-helper-C1FmrZbK.js";const D={"evil-eye-container":"_evil-eye-container_184dx_1"};function C(i){const r=i.replace("#","");return[parseInt(r.slice(0,2),16)/255,parseInt(r.slice(2,4),16)/255,parseInt(r.slice(4,6),16)/255]}function W(i=256){const r=new Uint8Array(i*i*4);function m(s,c,a){let n=s*374761393+c*668265263+a*1274126177;return n=Math.imul(n^n>>>13,1274126177),((n^n>>>16)>>>0)/4294967296}function w(s,c,a,n){const p=s/i*a,v=c/i*a,l=Math.floor(p),o=Math.floor(v),f=p-l,t=v-o,e=a|0,d=m((l%e+e)%e,(o%e+e)%e,n),u=m(((l+1)%e+e)%e,(o%e+e)%e,n),h=m((l%e+e)%e,((o+1)%e+e)%e,n),E=m(((l+1)%e+e)%e,((o+1)%e+e)%e,n);return d*(1-f)*(1-t)+u*f*(1-t)+h*(1-f)*t+E*f*t}for(let s=0;s<i;s++)for(let c=0;c<i;c++){let a=0,n=.4,p=0;for(let o=0;o<8;o++){const f=32*(1<<o);a+=n*w(c,s,f,o*31),p+=n,n*=.65}a/=p,a=(a-.5)*2.2+.5,a=Math.max(0,Math.min(1,a));const v=Math.round(a*255),l=(s*i+c)*4;r[l]=v,r[l+1]=v,r[l+2]=v,r[l+3]=255}return r}const b=`
1
+ import{r as G,j as P}from"./iframe-BVoBDGkl.js";import{R as _,P as V,M as q}from"./Mesh-CwXV3WjE.js";import{T as L}from"./Texture-BkQWYNP2.js";import{T as U}from"./Triangle-64ffRKNB.js";import"./preload-helper-C1FmrZbK.js";const D={"evil-eye-container":"_evil-eye-container_184dx_1"};function C(i){const r=i.replace("#","");return[parseInt(r.slice(0,2),16)/255,parseInt(r.slice(2,4),16)/255,parseInt(r.slice(4,6),16)/255]}function W(i=256){const r=new Uint8Array(i*i*4);function m(s,c,a){let n=s*374761393+c*668265263+a*1274126177;return n=Math.imul(n^n>>>13,1274126177),((n^n>>>16)>>>0)/4294967296}function w(s,c,a,n){const p=s/i*a,v=c/i*a,l=Math.floor(p),o=Math.floor(v),f=p-l,t=v-o,e=a|0,d=m((l%e+e)%e,(o%e+e)%e,n),u=m(((l+1)%e+e)%e,(o%e+e)%e,n),h=m((l%e+e)%e,((o+1)%e+e)%e,n),E=m(((l+1)%e+e)%e,((o+1)%e+e)%e,n);return d*(1-f)*(1-t)+u*f*(1-t)+h*(1-f)*t+E*f*t}for(let s=0;s<i;s++)for(let c=0;c<i;c++){let a=0,n=.4,p=0;for(let o=0;o<8;o++){const f=32*(1<<o);a+=n*w(c,s,f,o*31),p+=n,n*=.65}a/=p,a=(a-.5)*2.2+.5,a=Math.max(0,Math.min(1,a));const v=Math.round(a*255),l=(s*i+c)*4;r[l]=v,r[l+1]=v,r[l+2]=v,r[l+3]=255}return r}const b=`
2
2
  attribute vec2 uv;
3
3
  attribute vec2 position;
4
4
  varying vec2 vUv;
@@ -1,4 +1,4 @@
1
- import{r as c,j as R}from"./iframe-CK6Mw28k.js";import{g as a}from"./index-C8pce-KX.js";import{S as h}from"./ScrollTrigger-D1XJUMov.js";import"./preload-helper-C1FmrZbK.js";a.registerPlugin(h);const w=({children:q,container:x,blur:d=!1,duration:V=1e3,ease:E="power2.out",delay:b=0,threshold:v=.1,initialOpacity:i=0,disappearAfter:n=0,disappearDuration:S=.5,disappearEase:A="power2.in",onComplete:f,onDisappearanceComplete:s,className:O="",style:_,...j})=>{const p=c.useRef(null);return c.useEffect(()=>{const e=p.current;if(!e)return;let r=x||document.getElementById("snap-main-container")||null;typeof r=="string"&&(r=document.querySelector(r));const k=(1-v)*100,t=l=>typeof l=="number"&&l>10?l/1e3:l;a.set(e,{autoAlpha:i,filter:d?"blur(10px)":"blur(0px)",willChange:"opacity, filter, transform"});const o=a.timeline({paused:!0,delay:t(b),onComplete:()=>{f&&f(),n>0&&a.to(e,{autoAlpha:i,filter:d?"blur(10px)":"blur(0px)",delay:t(n),duration:t(S),ease:A,onComplete:()=>s==null?void 0:s()})}});o.to(e,{autoAlpha:1,filter:"blur(0px)",duration:t(V),ease:E});const F=h.create({trigger:e,scroller:r||window,start:`top ${k}%`,once:!0,onEnter:()=>o.play()});return()=>{F.kill(),o.kill(),a.killTweensOf(e)}},[]),R.jsx("div",{ref:p,className:O,style:_,...j,children:q})};w.__docgenInfo={description:"",methods:[],displayName:"FadeContent",props:{blur:{defaultValue:{value:"false",computed:!1},required:!1},duration:{defaultValue:{value:"1000",computed:!1},required:!1},ease:{defaultValue:{value:"'power2.out'",computed:!1},required:!1},delay:{defaultValue:{value:"0",computed:!1},required:!1},threshold:{defaultValue:{value:"0.1",computed:!1},required:!1},initialOpacity:{defaultValue:{value:"0",computed:!1},required:!1},disappearAfter:{defaultValue:{value:"0",computed:!1},required:!1},disappearDuration:{defaultValue:{value:"0.5",computed:!1},required:!1},disappearEase:{defaultValue:{value:"'power2.in'",computed:!1},required:!1},className:{defaultValue:{value:"''",computed:!1},required:!1}}};const H={title:"ReactBits/Animations/FadeContent",component:w,parameters:{layout:"fullscreen"}},u={args:{children:"Hello World",blur:!1,duration:1e3,ease:"power2.out",delay:0,threshold:.1,initialOpacity:0,disappearAfter:0,disappearDuration:.5,disappearEase:"power2.in"}};var m,g,y;u.parameters={...u.parameters,docs:{...(m=u.parameters)==null?void 0:m.docs,source:{originalSource:`{
1
+ import{r as c,j as R}from"./iframe-BVoBDGkl.js";import{g as a}from"./index-C8pce-KX.js";import{S as h}from"./ScrollTrigger-D1XJUMov.js";import"./preload-helper-C1FmrZbK.js";a.registerPlugin(h);const w=({children:q,container:x,blur:d=!1,duration:V=1e3,ease:E="power2.out",delay:b=0,threshold:v=.1,initialOpacity:i=0,disappearAfter:n=0,disappearDuration:S=.5,disappearEase:A="power2.in",onComplete:f,onDisappearanceComplete:s,className:O="",style:_,...j})=>{const p=c.useRef(null);return c.useEffect(()=>{const e=p.current;if(!e)return;let r=x||document.getElementById("snap-main-container")||null;typeof r=="string"&&(r=document.querySelector(r));const k=(1-v)*100,t=l=>typeof l=="number"&&l>10?l/1e3:l;a.set(e,{autoAlpha:i,filter:d?"blur(10px)":"blur(0px)",willChange:"opacity, filter, transform"});const o=a.timeline({paused:!0,delay:t(b),onComplete:()=>{f&&f(),n>0&&a.to(e,{autoAlpha:i,filter:d?"blur(10px)":"blur(0px)",delay:t(n),duration:t(S),ease:A,onComplete:()=>s==null?void 0:s()})}});o.to(e,{autoAlpha:1,filter:"blur(0px)",duration:t(V),ease:E});const F=h.create({trigger:e,scroller:r||window,start:`top ${k}%`,once:!0,onEnter:()=>o.play()});return()=>{F.kill(),o.kill(),a.killTweensOf(e)}},[]),R.jsx("div",{ref:p,className:O,style:_,...j,children:q})};w.__docgenInfo={description:"",methods:[],displayName:"FadeContent",props:{blur:{defaultValue:{value:"false",computed:!1},required:!1},duration:{defaultValue:{value:"1000",computed:!1},required:!1},ease:{defaultValue:{value:"'power2.out'",computed:!1},required:!1},delay:{defaultValue:{value:"0",computed:!1},required:!1},threshold:{defaultValue:{value:"0.1",computed:!1},required:!1},initialOpacity:{defaultValue:{value:"0",computed:!1},required:!1},disappearAfter:{defaultValue:{value:"0",computed:!1},required:!1},disappearDuration:{defaultValue:{value:"0.5",computed:!1},required:!1},disappearEase:{defaultValue:{value:"'power2.in'",computed:!1},required:!1},className:{defaultValue:{value:"''",computed:!1},required:!1}}};const H={title:"ReactBits/Animations/FadeContent",component:w,parameters:{layout:"fullscreen"}},u={args:{children:"Hello World",blur:!1,duration:1e3,ease:"power2.out",delay:0,threshold:.1,initialOpacity:0,disappearAfter:0,disappearDuration:.5,disappearEase:"power2.in"}};var m,g,y;u.parameters={...u.parameters,docs:{...(m=u.parameters)==null?void 0:m.docs,source:{originalSource:`{
2
2
  args: {
3
3
  children: 'Hello World',
4
4
  blur: false,
@@ -1,4 +1,4 @@
1
- import{r as a,j as ee}from"./iframe-CK6Mw28k.js";import{R as te,P as ae,M as oe}from"./Mesh-CwXV3WjE.js";import{T as re}from"./Triangle-64ffRKNB.js";import{C as w}from"./Color-YRkaOI4u.js";import"./preload-helper-C1FmrZbK.js";const ie={"faulty-terminal-container":"_faulty-terminal-container_kw0wy_1"},ne=`
1
+ import{r as a,j as ee}from"./iframe-BVoBDGkl.js";import{R as te,P as ae,M as oe}from"./Mesh-CwXV3WjE.js";import{T as re}from"./Triangle-64ffRKNB.js";import{C as w}from"./Color-YRkaOI4u.js";import"./preload-helper-C1FmrZbK.js";const ie={"faulty-terminal-container":"_faulty-terminal-container_kw0wy_1"},ne=`
2
2
  attribute vec2 position;
3
3
  attribute vec2 uv;
4
4
  varying vec2 vUv;
@@ -1 +1 @@
1
- import{r as n}from"./iframe-CK6Mw28k.js";import{u}from"./react-three-fiber.esm-B-YAFtc0.js";import{k as l,H as y,z as m,D as F,E as T}from"./three.module--_vTUKhS.js";function b(s,d,f){const i=u(e=>e.size),p=u(e=>e.viewport),r=typeof s=="number"?s:i.width*p.dpr,o=i.height*p.dpr,c=(typeof s=="number"?f:s)||{},{samples:a=0,depth:g,...h}=c,t=n.useMemo(()=>{const e=new l(r,o,{minFilter:m,magFilter:m,type:y,...h});return g&&(e.depthTexture=new F(r,o,T)),e.samples=a,e},[]);return n.useLayoutEffect(()=>{t.setSize(r,o),a&&(t.samples=a)},[a,t,r,o]),n.useEffect(()=>()=>t.dispose(),[]),t}export{b as u};
1
+ import{r as n}from"./iframe-BVoBDGkl.js";import{u}from"./react-three-fiber.esm-C85N-HX5.js";import{k as l,H as y,z as m,D as F,E as T}from"./three.module--_vTUKhS.js";function b(s,d,f){const i=u(e=>e.size),p=u(e=>e.viewport),r=typeof s=="number"?s:i.width*p.dpr,o=i.height*p.dpr,c=(typeof s=="number"?f:s)||{},{samples:a=0,depth:g,...h}=c,t=n.useMemo(()=>{const e=new l(r,o,{minFilter:m,magFilter:m,type:y,...h});return g&&(e.depthTexture=new F(r,o,T)),e.samples=a,e},[]);return n.useLayoutEffect(()=>{t.setSize(r,o),a&&(t.samples=a)},[a,t,r,o]),n.useEffect(()=>()=>t.dispose(),[]),t}export{b as u};
@@ -1,4 +1,4 @@
1
- import{r as d,j as se}from"./iframe-CK6Mw28k.js";import{d as g,S as fe,a as de,W as me,e as x,i as ve,q as pe,M as ge,f as xe}from"./three.module--_vTUKhS.js";import"./preload-helper-C1FmrZbK.js";const he={"floating-lines-container":"_floating-lines-container_1a3kk_1"},be=`
1
+ import{r as d,j as se}from"./iframe-BVoBDGkl.js";import{d as g,S as fe,a as de,W as me,e as x,i as ve,q as pe,M as ge,f as xe}from"./three.module--_vTUKhS.js";import"./preload-helper-C1FmrZbK.js";const he={"floating-lines-container":"_floating-lines-container_1a3kk_1"},be=`
2
2
  precision highp float;
3
3
 
4
4
  void main() {
@@ -1,4 +1,4 @@
1
- import{j as u,r as c}from"./iframe-CK6Mw28k.js";import{g as v}from"./index-C8pce-KX.js";import"./preload-helper-C1FmrZbK.js";const W="_menu_hu66r_1",B="_menu__item_hu66r_15",S="_marquee_hu66r_49",T="_marquee__inner_hu66r_60",I="_marquee__part_hu66r_75",L="_marquee__img_hu66r_90",a={"menu-wrap":"_menu-wrap_hu66r_1",menu:W,menu__item:B,"menu__item-link":"_menu__item-link_hu66r_27",marquee:S,"marquee__inner-wrap":"_marquee__inner-wrap_hu66r_60",marquee__inner:T,marquee__part:I,marquee__img:L};function N({items:q=[],speed:l=15,textColor:f="#fff",bgColor:p="#060010",marqueeBgColor:g="#fff",marqueeTextColor:x="#060010",borderColor:C="#fff"}){return u.jsx("div",{className:`${a["menu-wrap"]}`,style:{backgroundColor:p},children:u.jsx("nav",{className:`${a.menu}`,children:q.map((y,i)=>u.jsx(A,{...y,speed:l,textColor:f,marqueeBgColor:g,marqueeTextColor:x,borderColor:C},i))})})}function A({link:q,text:l,image:f,speed:p,textColor:g,marqueeBgColor:x,marqueeTextColor:C,borderColor:y}){const i=c.useRef(null),m=c.useRef(null),o=c.useRef(null),d=c.useRef(null),[w,$]=c.useState(4),k={duration:.6,ease:"expo"},b=(t,e,r,n)=>{const s=j(t,e,r/2,0),_=j(t,e,r/2,n);return s<_?"top":"bottom"},j=(t,e,r,n)=>{const s=t-r,_=e-n;return s*s+_*_};c.useEffect(()=>{const t=()=>{if(!o.current)return;const e=o.current.querySelector("[data-marquee-part]");if(!e)return;const r=e.offsetWidth,n=window.innerWidth,s=Math.ceil(n/r)+2;$(Math.max(4,s))};return t(),window.addEventListener("resize",t),()=>window.removeEventListener("resize",t)},[l,f]),c.useEffect(()=>{const e=setTimeout(()=>{if(!o.current)return;const r=o.current.querySelector("[data-marquee-part]");if(!r)return;const n=r.offsetWidth;n!==0&&(d.current&&d.current.kill(),d.current=v.to(o.current,{x:-n,duration:p,ease:"none",repeat:-1}))},50);return()=>{clearTimeout(e),d.current&&d.current.kill()}},[l,f,w,p]);const D=t=>{if(!i.current||!m.current||!o.current)return;const e=i.current.getBoundingClientRect(),r=t.clientX-e.left,n=t.clientY-e.top,s=b(r,n,e.width,e.height);v.timeline({defaults:k}).set(m.current,{y:s==="top"?"-101%":"101%"},0).set(o.current,{y:s==="top"?"101%":"-101%"},0).to([m.current,o.current],{y:"0%"},0)},V=t=>{if(!i.current||!m.current||!o.current)return;const e=i.current.getBoundingClientRect(),r=t.clientX-e.left,n=t.clientY-e.top,s=b(r,n,e.width,e.height);v.timeline({defaults:k}).to(m.current,{y:s==="top"?"-101%":"101%"},0).to(o.current,{y:s==="top"?"101%":"-101%"},0)};return u.jsxs("div",{className:`${a.menu__item}`,ref:i,style:{borderColor:y},children:[u.jsx("a",{className:`${a["menu__item-link"]}`,href:q,onMouseEnter:D,onMouseLeave:V,style:{color:g},children:l}),u.jsx("div",{className:`${a.marquee}`,ref:m,style:{backgroundColor:x},children:u.jsx("div",{className:`${a["marquee__inner-wrap"]}`,children:u.jsx("div",{className:`${a.marquee__inner}`,ref:o,"aria-hidden":"true",children:[...Array(w)].map((t,e)=>u.jsxs("div",{className:`${a.marquee__part}`,"data-marquee-part":!0,style:{color:C},children:[u.jsx("span",{children:l}),u.jsx("div",{className:`${a.marquee__img}`,style:{backgroundImage:`url(${f})`}})]},e))})})})]})}N.__docgenInfo={description:"",methods:[],displayName:"FlowingMenu",props:{items:{defaultValue:{value:"[]",computed:!1},required:!1},speed:{defaultValue:{value:"15",computed:!1},required:!1},textColor:{defaultValue:{value:"'#fff'",computed:!1},required:!1},bgColor:{defaultValue:{value:"'#060010'",computed:!1},required:!1},marqueeBgColor:{defaultValue:{value:"'#fff'",computed:!1},required:!1},marqueeTextColor:{defaultValue:{value:"'#060010'",computed:!1},required:!1},borderColor:{defaultValue:{value:"'#fff'",computed:!1},required:!1}}};const P={title:"ReactBits/Components/FlowingMenu",component:N,parameters:{layout:"fullscreen"}},h={args:{items:[{link:"#",text:"Home",image:"https://picsum.photos/seed/a/600/400"},{link:"#",text:"About",image:"https://picsum.photos/seed/b/600/400"},{link:"#",text:"Projects",image:"https://picsum.photos/seed/c/600/400"},{link:"#",text:"Contact",image:"https://picsum.photos/seed/d/600/400"}],speed:15,textColor:"#fff",bgColor:"#060010",marqueeBgColor:"#fff",marqueeTextColor:"#060010",borderColor:"#fff"}};var R,M,E;h.parameters={...h.parameters,docs:{...(R=h.parameters)==null?void 0:R.docs,source:{originalSource:`{
1
+ import{j as u,r as c}from"./iframe-BVoBDGkl.js";import{g as v}from"./index-C8pce-KX.js";import"./preload-helper-C1FmrZbK.js";const W="_menu_hu66r_1",B="_menu__item_hu66r_15",S="_marquee_hu66r_49",T="_marquee__inner_hu66r_60",I="_marquee__part_hu66r_75",L="_marquee__img_hu66r_90",a={"menu-wrap":"_menu-wrap_hu66r_1",menu:W,menu__item:B,"menu__item-link":"_menu__item-link_hu66r_27",marquee:S,"marquee__inner-wrap":"_marquee__inner-wrap_hu66r_60",marquee__inner:T,marquee__part:I,marquee__img:L};function N({items:q=[],speed:l=15,textColor:f="#fff",bgColor:p="#060010",marqueeBgColor:g="#fff",marqueeTextColor:x="#060010",borderColor:C="#fff"}){return u.jsx("div",{className:`${a["menu-wrap"]}`,style:{backgroundColor:p},children:u.jsx("nav",{className:`${a.menu}`,children:q.map((y,i)=>u.jsx(A,{...y,speed:l,textColor:f,marqueeBgColor:g,marqueeTextColor:x,borderColor:C},i))})})}function A({link:q,text:l,image:f,speed:p,textColor:g,marqueeBgColor:x,marqueeTextColor:C,borderColor:y}){const i=c.useRef(null),m=c.useRef(null),o=c.useRef(null),d=c.useRef(null),[w,$]=c.useState(4),k={duration:.6,ease:"expo"},b=(t,e,r,n)=>{const s=j(t,e,r/2,0),_=j(t,e,r/2,n);return s<_?"top":"bottom"},j=(t,e,r,n)=>{const s=t-r,_=e-n;return s*s+_*_};c.useEffect(()=>{const t=()=>{if(!o.current)return;const e=o.current.querySelector("[data-marquee-part]");if(!e)return;const r=e.offsetWidth,n=window.innerWidth,s=Math.ceil(n/r)+2;$(Math.max(4,s))};return t(),window.addEventListener("resize",t),()=>window.removeEventListener("resize",t)},[l,f]),c.useEffect(()=>{const e=setTimeout(()=>{if(!o.current)return;const r=o.current.querySelector("[data-marquee-part]");if(!r)return;const n=r.offsetWidth;n!==0&&(d.current&&d.current.kill(),d.current=v.to(o.current,{x:-n,duration:p,ease:"none",repeat:-1}))},50);return()=>{clearTimeout(e),d.current&&d.current.kill()}},[l,f,w,p]);const D=t=>{if(!i.current||!m.current||!o.current)return;const e=i.current.getBoundingClientRect(),r=t.clientX-e.left,n=t.clientY-e.top,s=b(r,n,e.width,e.height);v.timeline({defaults:k}).set(m.current,{y:s==="top"?"-101%":"101%"},0).set(o.current,{y:s==="top"?"101%":"-101%"},0).to([m.current,o.current],{y:"0%"},0)},V=t=>{if(!i.current||!m.current||!o.current)return;const e=i.current.getBoundingClientRect(),r=t.clientX-e.left,n=t.clientY-e.top,s=b(r,n,e.width,e.height);v.timeline({defaults:k}).to(m.current,{y:s==="top"?"-101%":"101%"},0).to(o.current,{y:s==="top"?"101%":"-101%"},0)};return u.jsxs("div",{className:`${a.menu__item}`,ref:i,style:{borderColor:y},children:[u.jsx("a",{className:`${a["menu__item-link"]}`,href:q,onMouseEnter:D,onMouseLeave:V,style:{color:g},children:l}),u.jsx("div",{className:`${a.marquee}`,ref:m,style:{backgroundColor:x},children:u.jsx("div",{className:`${a["marquee__inner-wrap"]}`,children:u.jsx("div",{className:`${a.marquee__inner}`,ref:o,"aria-hidden":"true",children:[...Array(w)].map((t,e)=>u.jsxs("div",{className:`${a.marquee__part}`,"data-marquee-part":!0,style:{color:C},children:[u.jsx("span",{children:l}),u.jsx("div",{className:`${a.marquee__img}`,style:{backgroundImage:`url(${f})`}})]},e))})})})]})}N.__docgenInfo={description:"",methods:[],displayName:"FlowingMenu",props:{items:{defaultValue:{value:"[]",computed:!1},required:!1},speed:{defaultValue:{value:"15",computed:!1},required:!1},textColor:{defaultValue:{value:"'#fff'",computed:!1},required:!1},bgColor:{defaultValue:{value:"'#060010'",computed:!1},required:!1},marqueeBgColor:{defaultValue:{value:"'#fff'",computed:!1},required:!1},marqueeTextColor:{defaultValue:{value:"'#060010'",computed:!1},required:!1},borderColor:{defaultValue:{value:"'#fff'",computed:!1},required:!1}}};const P={title:"ReactBits/Components/FlowingMenu",component:N,parameters:{layout:"fullscreen"}},h={args:{items:[{link:"#",text:"Home",image:"https://picsum.photos/seed/a/600/400"},{link:"#",text:"About",image:"https://picsum.photos/seed/b/600/400"},{link:"#",text:"Projects",image:"https://picsum.photos/seed/c/600/400"},{link:"#",text:"Contact",image:"https://picsum.photos/seed/d/600/400"}],speed:15,textColor:"#fff",bgColor:"#060010",marqueeBgColor:"#fff",marqueeTextColor:"#060010",borderColor:"#fff"}};var R,M,E;h.parameters={...h.parameters,docs:{...(R=h.parameters)==null?void 0:R.docs,source:{originalSource:`{
2
2
  args: {
3
3
  items: [{
4
4
  link: '#',
@@ -1,4 +1,4 @@
1
- import{r as V,j as Ee}from"./iframe-CK6Mw28k.js";import{u as We,a as yt,c as oo,s as os,b as Ut,e as pa,C as as,d as ss}from"./react-three-fiber.esm-B-YAFtc0.js";import{d as qe,e as ke,aa as bt,ab as Ct,ac as is,u as wt,n as Pe,ad as cs,a0 as ma,ae as ls,af as mr,ag as Ba,ah as va,ai as nn,aj as xn,ak as $e,al as us,am as fs,an as ds,ao as hs,ap as ga,O as Ca,aq as Un,ar as As,t as rn,as as ps,at as ya,au as ms,av as Bs,aw as vs,z as In,a5 as gs,ax as Br,ay as Cs,a7 as ys,az as bs,a1 as or,aA as Fs,x as ba,_ as Fa,p as xt,aB as Es,h as Ea,aC as Ms,M as _n,a8 as Ts,aD as Ds,aE as Gs,aF as Rs,aG as ar,P as xs,r as Ma,a as Is,aH as Ss,aI as ws,aJ as Us,aK as _s,aL as Ta,aM as Ls,a2 as cn,aN as ao,aO as so,aP as io,$ as Da,aQ as ks,aR as Gr,aS as Ga,aT as Os,aU as Hs,aV as Ps,j as Ra,aW as Js,aX as Ns,aY as Ks,q as Rr,i as js,N as Qs,Z as Xs,aZ as Ws,a_ as Ys,S as Vs}from"./three.module--_vTUKhS.js";import{_ as st}from"./extends-CF3RwP-h.js";import{c as zs}from"./client-C7ctmdCq.js";import{u as vr}from"./Fbo-s3d9A5Ww.js";import"./preload-helper-C1FmrZbK.js";import"./index-Dwwpkjqo.js";function on(u,t,i){return t in u?Object.defineProperty(u,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):u[t]=i,u}function gr(u,t){(t==null||t>u.length)&&(t=u.length);for(var i=0,c=new Array(t);i<t;i++)c[i]=u[i];return c}function Zs(u,t){if(u){if(typeof u=="string")return gr(u,t);var i=Object.prototype.toString.call(u).slice(8,-1);if(i==="Object"&&u.constructor&&(i=u.constructor.name),i==="Map"||i==="Set")return Array.from(u);if(i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return gr(u,t)}}function qs(u){if(Array.isArray(u))return gr(u)}function $s(u){if(typeof Symbol<"u"&&u[Symbol.iterator]!=null||u["@@iterator"]!=null)return Array.from(u)}function ei(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
1
+ import{r as V,j as Ee}from"./iframe-BVoBDGkl.js";import{u as We,a as yt,c as oo,s as os,b as Ut,e as pa,C as as,d as ss}from"./react-three-fiber.esm-C85N-HX5.js";import{d as qe,e as ke,aa as bt,ab as Ct,ac as is,u as wt,n as Pe,ad as cs,a0 as ma,ae as ls,af as mr,ag as Ba,ah as va,ai as nn,aj as xn,ak as $e,al as us,am as fs,an as ds,ao as hs,ap as ga,O as Ca,aq as Un,ar as As,t as rn,as as ps,at as ya,au as ms,av as Bs,aw as vs,z as In,a5 as gs,ax as Br,ay as Cs,a7 as ys,az as bs,a1 as or,aA as Fs,x as ba,_ as Fa,p as xt,aB as Es,h as Ea,aC as Ms,M as _n,a8 as Ts,aD as Ds,aE as Gs,aF as Rs,aG as ar,P as xs,r as Ma,a as Is,aH as Ss,aI as ws,aJ as Us,aK as _s,aL as Ta,aM as Ls,a2 as cn,aN as ao,aO as so,aP as io,$ as Da,aQ as ks,aR as Gr,aS as Ga,aT as Os,aU as Hs,aV as Ps,j as Ra,aW as Js,aX as Ns,aY as Ks,q as Rr,i as js,N as Qs,Z as Xs,aZ as Ws,a_ as Ys,S as Vs}from"./three.module--_vTUKhS.js";import{_ as st}from"./extends-CF3RwP-h.js";import{c as zs}from"./client-BF4QBMW1.js";import{u as vr}from"./Fbo-Cr10jzQa.js";import"./preload-helper-C1FmrZbK.js";import"./index-CyoTMuJi.js";function on(u,t,i){return t in u?Object.defineProperty(u,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):u[t]=i,u}function gr(u,t){(t==null||t>u.length)&&(t=u.length);for(var i=0,c=new Array(t);i<t;i++)c[i]=u[i];return c}function Zs(u,t){if(u){if(typeof u=="string")return gr(u,t);var i=Object.prototype.toString.call(u).slice(8,-1);if(i==="Object"&&u.constructor&&(i=u.constructor.name),i==="Map"||i==="Set")return Array.from(u);if(i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return gr(u,t)}}function qs(u){if(Array.isArray(u))return gr(u)}function $s(u){if(typeof Symbol<"u"&&u[Symbol.iterator]!=null||u["@@iterator"]!=null)return Array.from(u)}function ei(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
2
2
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ti(u){return qs(u)||$s(u)||Zs(u)||ei()}new qe;new qe;function ni(u,t,i){return Math.max(t,Math.min(i,u))}function ri(u,t){return ni(u-Math.floor(u/t)*t,0,t)}function oi(u,t){var i=ri(t-u,Math.PI*2);return i>Math.PI&&(i-=Math.PI*2),i}function xa(u,t){if(!(u instanceof t))throw new TypeError("Cannot call a class as a function")}var Qe=function u(t,i,c){var n=this;xa(this,u),on(this,"dot2",function(e,r){return n.x*e+n.y*r}),on(this,"dot3",function(e,r,a){return n.x*e+n.y*r+n.z*a}),this.x=t,this.y=i,this.z=c},ai=[new Qe(1,1,0),new Qe(-1,1,0),new Qe(1,-1,0),new Qe(-1,-1,0),new Qe(1,0,1),new Qe(-1,0,1),new Qe(1,0,-1),new Qe(-1,0,-1),new Qe(0,1,1),new Qe(0,-1,1),new Qe(0,1,-1),new Qe(0,-1,-1)],co=[151,160,137,91,90,15,131,13,201,95,96,53,194,233,7,225,140,36,103,30,69,142,8,99,37,240,21,10,23,190,6,148,247,120,234,75,0,26,197,62,94,252,219,203,117,35,11,32,57,177,33,88,237,149,56,87,174,20,125,136,171,168,68,175,74,165,71,134,139,48,27,166,77,146,158,231,83,111,229,122,60,211,133,230,220,105,92,41,55,46,245,40,244,102,143,54,65,25,63,161,1,216,80,73,209,76,132,187,208,89,18,169,200,196,135,130,116,188,159,86,164,100,109,198,173,186,3,64,52,217,226,250,124,123,5,202,38,147,118,126,255,82,85,212,207,206,59,227,47,16,58,17,182,189,28,42,223,183,170,213,119,248,152,2,44,154,163,70,221,153,101,155,167,43,172,9,129,22,39,253,19,98,108,110,79,113,224,232,178,185,112,104,218,246,97,228,251,34,242,193,238,210,144,12,191,179,162,241,81,51,145,235,249,14,239,107,49,192,214,31,181,199,106,157,184,84,204,176,115,121,50,45,127,4,150,254,138,236,205,93,222,114,67,29,24,72,243,141,128,195,78,66,215,61,156,180],lo=new Array(512),uo=new Array(512),si=function(t){t>0&&t<1&&(t*=65536),t=Math.floor(t),t<256&&(t|=t<<8);for(var i=0;i<256;i++){var c;i&1?c=co[i]^t&255:c=co[i]^t>>8&255,lo[i]=lo[i+256]=c,uo[i]=uo[i+256]=ai[c%12]}};si(0);function ii(u){if(typeof u=="number")u=Math.abs(u);else if(typeof u=="string"){var t=u;u=0;for(var i=0;i<t.length;i++)u=(u+(i+1)*(t.charCodeAt(i)%96))%2147483647}return u===0&&(u=311),u}function fo(u){var t=ii(u);return function(){var i=t*48271%2147483647;return t=i,i/2147483647}}var ci=function u(t){var i=this;xa(this,u),on(this,"seed",0),on(this,"init",function(c){i.seed=c,i.value=fo(c)}),on(this,"value",fo(this.seed)),this.init(t)};new ci(Math.random());var li=function(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:.01,c=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1/(2*Math.PI);return c/Math.atan(1/i)*Math.atan(Math.sin(2*Math.PI*t*n)/i)},Ia=function(t){return 1/(1+t+.48*t*t+.235*t*t*t)},ui=function(t){return t},fi={in:function(t){return 1-Math.cos(t*Math.PI/2)},out:function(t){return Math.sin(t*Math.PI/2)},inOut:function(t){return-(Math.cos(Math.PI*t)-1)/2}},di={in:function(t){return t*t*t},out:function(t){return 1-Math.pow(1-t,3)},inOut:function(t){return t<.5?4*t*t*t:1-Math.pow(-2*t+2,3)/2}},hi={in:function(t){return t*t*t*t*t},out:function(t){return 1-Math.pow(1-t,5)},inOut:function(t){return t<.5?16*t*t*t*t*t:1-Math.pow(-2*t+2,5)/2}},Ai={in:function(t){return 1-Math.sqrt(1-Math.pow(t,2))},out:function(t){return Math.sqrt(1-Math.pow(t-1,2))},inOut:function(t){return t<.5?(1-Math.sqrt(1-Math.pow(2*t,2)))/2:(Math.sqrt(1-Math.pow(-2*t+2,2))+1)/2}},pi={in:function(t){return t*t*t*t},out:function(t){return 1- --t*t*t*t},inOut:function(t){return t<.5?8*t*t*t*t:1-8*--t*t*t*t}},mi={in:function(t){return t===0?0:Math.pow(2,10*t-10)},out:function(t){return t===1?1:1-Math.pow(2,-10*t)},inOut:function(t){return t===0?0:t===1?1:t<.5?Math.pow(2,20*t-10)/2:(2-Math.pow(2,-20*t+10))/2}};function Ue(u,t,i){var c=arguments.length>3&&arguments[3]!==void 0?arguments[3]:.25,n=arguments.length>4&&arguments[4]!==void 0?arguments[4]:.01,e=arguments.length>5&&arguments[5]!==void 0?arguments[5]:1/0,r=arguments.length>6&&arguments[6]!==void 0?arguments[6]:Ia,a=arguments.length>7&&arguments[7]!==void 0?arguments[7]:.001,o="velocity_"+t;if(u.__damp===void 0&&(u.__damp={}),u.__damp[o]===void 0&&(u.__damp[o]=0),Math.abs(u[t]-i)<=a)return u[t]=i,!1;c=Math.max(1e-4,c);var s=2/c,l=r(s*n),f=u[t]-i,d=i,h=e*c;f=Math.min(Math.max(f,-h),h),i=u[t]-f;var A=(u.__damp[o]+s*f)*n;u.__damp[o]=(u.__damp[o]-s*A)*l;var m=i+(f+A)*l;return d-u[t]>0==m>d&&(m=d,u.__damp[o]=(m-d)/n),u[t]=m,!0}var Bi=function(t){return t&&t.isCamera},vi=function(t){return t&&t.isLight},Xt=new ke,ho=new bt,Ao=new bt,Wt=new Ct,sr=new ke;function gi(u,t,i,c,n,e,r){typeof t=="number"?Xt.setScalar(t):Array.isArray(t)?Xt.set(t[0],t[1],t[2]):Xt.copy(t);var a=u.parent;u.updateWorldMatrix(!0,!1),sr.setFromMatrixPosition(u.matrixWorld),Bi(u)||vi(u)?Wt.lookAt(sr,Xt,u.up):Wt.lookAt(Xt,sr,u.up),Sn(u.quaternion,Ao.setFromRotationMatrix(Wt),i,c,n,e,r),a&&(Wt.extractRotation(a.matrixWorld),ho.setFromRotationMatrix(Wt),Sn(u.quaternion,Ao.copy(u.quaternion).premultiply(ho.invert()),i,c,n,e,r))}function It(u,t,i,c,n,e,r,a){return Ue(u,t,u[t]+oi(u[t],i),c,n,e,r,a)}var Yt=new qe,po,mo;function Ci(u,t,i,c,n,e,r){return typeof t=="number"?Yt.setScalar(t):Array.isArray(t)?Yt.set(t[0],t[1]):Yt.copy(t),po=Ue(u,"x",Yt.x,i,c,n,e,r),mo=Ue(u,"y",Yt.y,i,c,n,e,r),po||mo}var Dt=new ke,Bo,vo,go;function Cr(u,t,i,c,n,e,r){return typeof t=="number"?Dt.setScalar(t):Array.isArray(t)?Dt.set(t[0],t[1],t[2]):Dt.copy(t),Bo=Ue(u,"x",Dt.x,i,c,n,e,r),vo=Ue(u,"y",Dt.y,i,c,n,e,r),go=Ue(u,"z",Dt.z,i,c,n,e,r),Bo||vo||go}var pt=new wt,Co,yo,bo,Fo;function yi(u,t,i,c,n,e,r){return typeof t=="number"?pt.setScalar(t):Array.isArray(t)?pt.set(t[0],t[1],t[2],t[3]):pt.copy(t),Co=Ue(u,"x",pt.x,i,c,n,e,r),yo=Ue(u,"y",pt.y,i,c,n,e,r),bo=Ue(u,"z",pt.z,i,c,n,e,r),Fo=Ue(u,"w",pt.w,i,c,n,e,r),Co||yo||bo||Fo}var Vt=new cs,Eo,Mo,To;function bi(u,t,i,c,n,e,r){return Array.isArray(t)?Vt.set(t[0],t[1],t[2],t[3]):Vt.copy(t),Eo=It(u,"x",Vt.x,i,c,n,e,r),Mo=It(u,"y",Vt.y,i,c,n,e,r),To=It(u,"z",Vt.z,i,c,n,e,r),Eo||Mo||To}var Gt=new Pe,Do,Go,Ro;function Fi(u,t,i,c,n,e,r){return t instanceof Pe?Gt.copy(t):Array.isArray(t)?Gt.setRGB(t[0],t[1],t[2]):Gt.set(t),Do=Ue(u,"r",Gt.r,i,c,n,e,r),Go=Ue(u,"g",Gt.g,i,c,n,e,r),Ro=Ue(u,"b",Gt.b,i,c,n,e,r),Do||Go||Ro}var Ze=new bt,rt=new wt,xo=new wt,zt=new wt,Io,So,wo,Uo;function Sn(u,t,i,c,n,e,r){var a=u;Array.isArray(t)?Ze.set(t[0],t[1],t[2],t[3]):Ze.copy(t);var o=u.dot(Ze)>0?1:-1;return Ze.x*=o,Ze.y*=o,Ze.z*=o,Ze.w*=o,Io=Ue(u,"x",Ze.x,i,c,n,e,r),So=Ue(u,"y",Ze.y,i,c,n,e,r),wo=Ue(u,"z",Ze.z,i,c,n,e,r),Uo=Ue(u,"w",Ze.w,i,c,n,e,r),rt.set(u.x,u.y,u.z,u.w).normalize(),xo.set(a.__damp.velocity_x,a.__damp.velocity_y,a.__damp.velocity_z,a.__damp.velocity_w),zt.copy(rt).multiplyScalar(xo.dot(rt)/rt.dot(rt)),a.__damp.velocity_x-=zt.x,a.__damp.velocity_y-=zt.y,a.__damp.velocity_z-=zt.z,a.__damp.velocity_w-=zt.w,u.set(rt.x,rt.y,rt.z,rt.w),Io||So||wo||Uo}var Zt=new is,_o,Lo,ko;function Ei(u,t,i,c,n,e,r){return Array.isArray(t)?Zt.set(t[0],t[1],t[2]):Zt.copy(t),_o=Ue(u,"radius",Zt.radius,i,c,n,e,r),Lo=It(u,"phi",Zt.phi,i,c,n,e,r),ko=It(u,"theta",Zt.theta,i,c,n,e,r),_o||Lo||ko}var bn=new Ct,Oo=new ke,Ho=new bt,Po=new ke,Jo,No,Ko;function Mi(u,t,i,c,n,e,r){var a=u;return a.__damp===void 0&&(a.__damp={position:new ke,rotation:new bt,scale:new ke},u.decompose(a.__damp.position,a.__damp.rotation,a.__damp.scale)),Array.isArray(t)?bn.set.apply(bn,ti(t)):bn.copy(t),bn.decompose(Oo,Ho,Po),Jo=Cr(a.__damp.position,Oo,i,c,n,e,r),No=Sn(a.__damp.rotation,Ho,i,c,n,e,r),Ko=Cr(a.__damp.scale,Po,i,c,n,e,r),u.compose(a.__damp.position,a.__damp.rotation,a.__damp.scale),Jo||No||Ko}var yr=Object.freeze({__proto__:null,rsqw:li,exp:Ia,linear:ui,sine:fi,cubic:di,quint:hi,circ:Ai,quart:pi,expo:mi,damp:Ue,dampLookAt:gi,dampAngle:It,damp2:Ci,damp3:Cr,damp4:yi,dampE:bi,dampC:Fi,dampQ:Sn,dampS:Ei,dampM:Mi});const xr=V.createContext(null);function Ir(){return V.useContext(xr)}function Ti({eps:u=1e-5,enabled:t=!0,infinite:i,horizontal:c,pages:n=1,distance:e=1,damping:r=.25,maxSpeed:a=1/0,prepend:o=!1,style:s={},children:l}){const{get:f,setEvents:d,gl:h,size:A,invalidate:m,events:p}=We(),[v]=V.useState(()=>document.createElement("div")),[C]=V.useState(()=>document.createElement("div")),[b]=V.useState(()=>document.createElement("div")),g=h.domElement.parentNode,E=V.useRef(0),D=V.useMemo(()=>({el:v,eps:u,fill:C,fixed:b,horizontal:c,damping:r,offset:0,delta:0,scroll:E,pages:n,range(U,x,K=0){const y=U-K,S=y+x+K*2;return this.offset<y?0:this.offset>S?1:(this.offset-y)/(S-y)},curve(U,x,K=0){return Math.sin(this.range(U,x,K)*Math.PI)},visible(U,x,K=0){const y=U-K,S=y+x+K*2;return this.offset>=y&&this.offset<=S}}),[u,r,c,n]);V.useEffect(()=>{v.style.position="absolute",v.style.width="100%",v.style.height="100%",v.style[c?"overflowX":"overflowY"]="auto",v.style[c?"overflowY":"overflowX"]="hidden",v.style.top="0px",v.style.left="0px";for(const x in s)v.style[x]=s[x];b.style.position="sticky",b.style.top="0px",b.style.left="0px",b.style.width="100%",b.style.height="100%",b.style.overflow="hidden",v.appendChild(b),C.style.height=c?"100%":`${n*e*100}%`,C.style.width=c?`${n*e*100}%`:"100%",C.style.pointerEvents="none",v.appendChild(C),o?g.prepend(v):g.appendChild(v),v[c?"scrollLeft":"scrollTop"]=1;const M=p.connected||h.domElement;requestAnimationFrame(()=>p.connect==null?void 0:p.connect(v));const U=f().events.compute;return d({compute(x,K){const{left:y,top:S}=g.getBoundingClientRect(),G=x.clientX-y,j=x.clientY-S;K.pointer.set(G/K.size.width*2-1,-(j/K.size.height)*2+1),K.raycaster.setFromCamera(K.pointer,K.camera)}}),()=>{g.removeChild(v),d({compute:U}),p.connect==null||p.connect(M)}},[n,e,c,v,C,b,g]),V.useEffect(()=>{if(p.connected===v){const M=A[c?"width":"height"],U=v[c?"scrollWidth":"scrollHeight"],x=U-M;let K=0,y=!0,S=!0;const G=()=>{if(!(!t||S)&&(m(),K=v[c?"scrollLeft":"scrollTop"],E.current=K/x,i)){if(!y){if(K>=x){const P=1-D.offset;v[c?"scrollLeft":"scrollTop"]=1,E.current=D.offset=-P,y=!0}else if(K<=0){const P=1+D.offset;v[c?"scrollLeft":"scrollTop"]=U,E.current=D.offset=P,y=!0}}y&&setTimeout(()=>y=!1,40)}};v.addEventListener("scroll",G,{passive:!0}),requestAnimationFrame(()=>S=!1);const j=P=>v.scrollLeft+=P.deltaY/2;return c&&v.addEventListener("wheel",j,{passive:!0}),()=>{v.removeEventListener("scroll",G),c&&v.removeEventListener("wheel",j)}}},[v,p,A,i,D,m,c,t]);let F=0;return yt((M,U)=>{F=D.offset,yr.damp(D,"offset",E.current,r,U,a,void 0,u),yr.damp(D,"delta",Math.abs(F-D.offset),r,U,a,void 0,u),D.delta>u&&m()}),V.createElement(xr.Provider,{value:D},l)}const Di=V.forwardRef(({children:u},t)=>{const i=V.useRef(null);V.useImperativeHandle(t,()=>i.current,[]);const c=Ir(),{width:n,height:e}=We(r=>r.viewport);return yt(()=>{i.current.position.x=c.horizontal?-n*(c.pages-1)*c.offset:0,i.current.position.y=c.horizontal?0:e*(c.pages-1)*c.offset}),V.createElement("group",{ref:i},u)}),Gi=V.forwardRef(({children:u,style:t,...i},c)=>{const n=Ir(),e=V.useRef(null);V.useImperativeHandle(c,()=>e.current,[]);const{width:r,height:a}=We(l=>l.size),o=V.useContext(oo),s=V.useMemo(()=>zs(n.fixed),[n.fixed]);return yt(()=>{n.delta>n.eps&&(e.current.style.transform=`translate3d(${n.horizontal?-r*(n.pages-1)*n.offset:0}px,${n.horizontal?0:a*(n.pages-1)*-n.offset}px,0)`)}),s.render(V.createElement("div",st({ref:e,style:{...t,position:"absolute",top:0,left:0,willChange:"transform"}},i),V.createElement(xr.Provider,{value:n},V.createElement(oo.Provider,{value:o},u)))),null}),jo=V.forwardRef(({html:u,...t},i)=>{const c=u?Gi:Di;return V.createElement(c,st({ref:i},t))}),Ri=parseInt(ma.replace(/\D+/g,""));function Qo(u,t){if(t===ls)return console.warn("THREE.BufferGeometryUtils.toTrianglesDrawMode(): Geometry already defined as triangles."),u;if(t===mr||t===Ba){let i=u.getIndex();if(i===null){const r=[],a=u.getAttribute("position");if(a!==void 0){for(let o=0;o<a.count;o++)r.push(o);u.setIndex(r),i=u.getIndex()}else return console.error("THREE.BufferGeometryUtils.toTrianglesDrawMode(): Undefined position attribute. Processing not possible."),u}const c=i.count-2,n=[];if(i)if(t===mr)for(let r=1;r<=c;r++)n.push(i.getX(0)),n.push(i.getX(r)),n.push(i.getX(r+1));else for(let r=0;r<c;r++)r%2===0?(n.push(i.getX(r)),n.push(i.getX(r+1)),n.push(i.getX(r+2))):(n.push(i.getX(r+2)),n.push(i.getX(r+1)),n.push(i.getX(r)));n.length/3!==c&&console.error("THREE.BufferGeometryUtils.toTrianglesDrawMode(): Unable to generate correct amount of triangles.");const e=u.clone();return e.setIndex(n),e.clearGroups(),e}else return console.error("THREE.BufferGeometryUtils.toTrianglesDrawMode(): Unknown draw mode:",t),u}function wn(u){if(typeof TextDecoder<"u")return new TextDecoder().decode(u);let t="";for(let i=0,c=u.length;i<c;i++)t+=String.fromCharCode(u[i]);try{return decodeURIComponent(escape(t))}catch{return t}}const vt="srgb",at="srgb-linear",Xo=3001,xi=3e3;class Sr extends va{constructor(t){super(t),this.dracoLoader=null,this.ktx2Loader=null,this.meshoptDecoder=null,this.pluginCallbacks=[],this.register(function(i){return new _i(i)}),this.register(function(i){return new Li(i)}),this.register(function(i){return new Qi(i)}),this.register(function(i){return new Xi(i)}),this.register(function(i){return new Wi(i)}),this.register(function(i){return new Oi(i)}),this.register(function(i){return new Hi(i)}),this.register(function(i){return new Pi(i)}),this.register(function(i){return new Ji(i)}),this.register(function(i){return new Ui(i)}),this.register(function(i){return new Ni(i)}),this.register(function(i){return new ki(i)}),this.register(function(i){return new ji(i)}),this.register(function(i){return new Ki(i)}),this.register(function(i){return new Si(i)}),this.register(function(i){return new Yi(i)}),this.register(function(i){return new Vi(i)})}load(t,i,c,n){const e=this;let r;if(this.resourcePath!=="")r=this.resourcePath;else if(this.path!==""){const s=nn.extractUrlBase(t);r=nn.resolveURL(s,this.path)}else r=nn.extractUrlBase(t);this.manager.itemStart(t);const a=function(s){n?n(s):console.error(s),e.manager.itemError(t),e.manager.itemEnd(t)},o=new xn(this.manager);o.setPath(this.path),o.setResponseType("arraybuffer"),o.setRequestHeader(this.requestHeader),o.setWithCredentials(this.withCredentials),o.load(t,function(s){try{e.parse(s,r,function(l){i(l),e.manager.itemEnd(t)},a)}catch(l){a(l)}},c,a)}setDRACOLoader(t){return this.dracoLoader=t,this}setDDSLoader(){throw new Error('THREE.GLTFLoader: "MSFT_texture_dds" no longer supported. Please update to "KHR_texture_basisu".')}setKTX2Loader(t){return this.ktx2Loader=t,this}setMeshoptDecoder(t){return this.meshoptDecoder=t,this}register(t){return this.pluginCallbacks.indexOf(t)===-1&&this.pluginCallbacks.push(t),this}unregister(t){return this.pluginCallbacks.indexOf(t)!==-1&&this.pluginCallbacks.splice(this.pluginCallbacks.indexOf(t),1),this}parse(t,i,c,n){let e;const r={},a={};if(typeof t=="string")e=JSON.parse(t);else if(t instanceof ArrayBuffer)if(wn(new Uint8Array(t.slice(0,4)))===Sa){try{r[ge.KHR_BINARY_GLTF]=new zi(t)}catch(l){n&&n(l);return}e=JSON.parse(r[ge.KHR_BINARY_GLTF].content)}else e=JSON.parse(wn(new Uint8Array(t)));else e=t;if(e.asset===void 0||e.asset.version[0]<2){n&&n(new Error("THREE.GLTFLoader: Unsupported asset. glTF versions >=2.0 are supported."));return}const o=new lc(e,{path:i||this.resourcePath||"",crossOrigin:this.crossOrigin,requestHeader:this.requestHeader,manager:this.manager,ktx2Loader:this.ktx2Loader,meshoptDecoder:this.meshoptDecoder});o.fileLoader.setRequestHeader(this.requestHeader);for(let s=0;s<this.pluginCallbacks.length;s++){const l=this.pluginCallbacks[s](o);l.name||console.error("THREE.GLTFLoader: Invalid plugin found: missing name"),a[l.name]=l,r[l.name]=!0}if(e.extensionsUsed)for(let s=0;s<e.extensionsUsed.length;++s){const l=e.extensionsUsed[s],f=e.extensionsRequired||[];switch(l){case ge.KHR_MATERIALS_UNLIT:r[l]=new wi;break;case ge.KHR_DRACO_MESH_COMPRESSION:r[l]=new Zi(e,this.dracoLoader);break;case ge.KHR_TEXTURE_TRANSFORM:r[l]=new qi;break;case ge.KHR_MESH_QUANTIZATION:r[l]=new $i;break;default:f.indexOf(l)>=0&&a[l]===void 0&&console.warn('THREE.GLTFLoader: Unknown extension "'+l+'".')}}o.setExtensions(r),o.setPlugins(a),o.parse(c,n)}parseAsync(t,i){const c=this;return new Promise(function(n,e){c.parse(t,i,n,e)})}}function Ii(){let u={};return{get:function(t){return u[t]},add:function(t,i){u[t]=i},remove:function(t){delete u[t]},removeAll:function(){u={}}}}const ge={KHR_BINARY_GLTF:"KHR_binary_glTF",KHR_DRACO_MESH_COMPRESSION:"KHR_draco_mesh_compression",KHR_LIGHTS_PUNCTUAL:"KHR_lights_punctual",KHR_MATERIALS_CLEARCOAT:"KHR_materials_clearcoat",KHR_MATERIALS_DISPERSION:"KHR_materials_dispersion",KHR_MATERIALS_IOR:"KHR_materials_ior",KHR_MATERIALS_SHEEN:"KHR_materials_sheen",KHR_MATERIALS_SPECULAR:"KHR_materials_specular",KHR_MATERIALS_TRANSMISSION:"KHR_materials_transmission",KHR_MATERIALS_IRIDESCENCE:"KHR_materials_iridescence",KHR_MATERIALS_ANISOTROPY:"KHR_materials_anisotropy",KHR_MATERIALS_UNLIT:"KHR_materials_unlit",KHR_MATERIALS_VOLUME:"KHR_materials_volume",KHR_TEXTURE_BASISU:"KHR_texture_basisu",KHR_TEXTURE_TRANSFORM:"KHR_texture_transform",KHR_MESH_QUANTIZATION:"KHR_mesh_quantization",KHR_MATERIALS_EMISSIVE_STRENGTH:"KHR_materials_emissive_strength",EXT_MATERIALS_BUMP:"EXT_materials_bump",EXT_TEXTURE_WEBP:"EXT_texture_webp",EXT_TEXTURE_AVIF:"EXT_texture_avif",EXT_MESHOPT_COMPRESSION:"EXT_meshopt_compression",EXT_MESH_GPU_INSTANCING:"EXT_mesh_gpu_instancing"};class Si{constructor(t){this.parser=t,this.name=ge.KHR_LIGHTS_PUNCTUAL,this.cache={refs:{},uses:{}}}_markDefs(){const t=this.parser,i=this.parser.json.nodes||[];for(let c=0,n=i.length;c<n;c++){const e=i[c];e.extensions&&e.extensions[this.name]&&e.extensions[this.name].light!==void 0&&t._addNodeRef(this.cache,e.extensions[this.name].light)}}_loadLight(t){const i=this.parser,c="light:"+t;let n=i.cache.get(c);if(n)return n;const e=i.json,o=((e.extensions&&e.extensions[this.name]||{}).lights||[])[t];let s;const l=new Pe(16777215);o.color!==void 0&&l.setRGB(o.color[0],o.color[1],o.color[2],at);const f=o.range!==void 0?o.range:0;switch(o.type){case"directional":s=new ds(l),s.target.position.set(0,0,-1),s.add(s.target);break;case"point":s=new fs(l),s.distance=f;break;case"spot":s=new us(l),s.distance=f,o.spot=o.spot||{},o.spot.innerConeAngle=o.spot.innerConeAngle!==void 0?o.spot.innerConeAngle:0,o.spot.outerConeAngle=o.spot.outerConeAngle!==void 0?o.spot.outerConeAngle:Math.PI/4,s.angle=o.spot.outerConeAngle,s.penumbra=1-o.spot.innerConeAngle/o.spot.outerConeAngle,s.target.position.set(0,0,-1),s.add(s.target);break;default:throw new Error("THREE.GLTFLoader: Unexpected light type: "+o.type)}return s.position.set(0,0,0),s.decay=2,ot(s,o),o.intensity!==void 0&&(s.intensity=o.intensity),s.name=i.createUniqueName(o.name||"light_"+t),n=Promise.resolve(s),i.cache.add(c,n),n}getDependency(t,i){if(t==="light")return this._loadLight(i)}createNodeAttachment(t){const i=this,c=this.parser,e=c.json.nodes[t],a=(e.extensions&&e.extensions[this.name]||{}).light;return a===void 0?null:this._loadLight(a).then(function(o){return c._getNodeRef(i.cache,a,o)})}}class wi{constructor(){this.name=ge.KHR_MATERIALS_UNLIT}getMaterialType(){return xt}extendParams(t,i,c){const n=[];t.color=new Pe(1,1,1),t.opacity=1;const e=i.pbrMetallicRoughness;if(e){if(Array.isArray(e.baseColorFactor)){const r=e.baseColorFactor;t.color.setRGB(r[0],r[1],r[2],at),t.opacity=r[3]}e.baseColorTexture!==void 0&&n.push(c.assignTexture(t,"map",e.baseColorTexture,vt))}return Promise.all(n)}}class Ui{constructor(t){this.parser=t,this.name=ge.KHR_MATERIALS_EMISSIVE_STRENGTH}extendMaterialParams(t,i){const n=this.parser.json.materials[t];if(!n.extensions||!n.extensions[this.name])return Promise.resolve();const e=n.extensions[this.name].emissiveStrength;return e!==void 0&&(i.emissiveIntensity=e),Promise.resolve()}}class _i{constructor(t){this.parser=t,this.name=ge.KHR_MATERIALS_CLEARCOAT}getMaterialType(t){const c=this.parser.json.materials[t];return!c.extensions||!c.extensions[this.name]?null:$e}extendMaterialParams(t,i){const c=this.parser,n=c.json.materials[t];if(!n.extensions||!n.extensions[this.name])return Promise.resolve();const e=[],r=n.extensions[this.name];if(r.clearcoatFactor!==void 0&&(i.clearcoat=r.clearcoatFactor),r.clearcoatTexture!==void 0&&e.push(c.assignTexture(i,"clearcoatMap",r.clearcoatTexture)),r.clearcoatRoughnessFactor!==void 0&&(i.clearcoatRoughness=r.clearcoatRoughnessFactor),r.clearcoatRoughnessTexture!==void 0&&e.push(c.assignTexture(i,"clearcoatRoughnessMap",r.clearcoatRoughnessTexture)),r.clearcoatNormalTexture!==void 0&&(e.push(c.assignTexture(i,"clearcoatNormalMap",r.clearcoatNormalTexture)),r.clearcoatNormalTexture.scale!==void 0)){const a=r.clearcoatNormalTexture.scale;i.clearcoatNormalScale=new qe(a,a)}return Promise.all(e)}}class Li{constructor(t){this.parser=t,this.name=ge.KHR_MATERIALS_DISPERSION}getMaterialType(t){const c=this.parser.json.materials[t];return!c.extensions||!c.extensions[this.name]?null:$e}extendMaterialParams(t,i){const n=this.parser.json.materials[t];if(!n.extensions||!n.extensions[this.name])return Promise.resolve();const e=n.extensions[this.name];return i.dispersion=e.dispersion!==void 0?e.dispersion:0,Promise.resolve()}}class ki{constructor(t){this.parser=t,this.name=ge.KHR_MATERIALS_IRIDESCENCE}getMaterialType(t){const c=this.parser.json.materials[t];return!c.extensions||!c.extensions[this.name]?null:$e}extendMaterialParams(t,i){const c=this.parser,n=c.json.materials[t];if(!n.extensions||!n.extensions[this.name])return Promise.resolve();const e=[],r=n.extensions[this.name];return r.iridescenceFactor!==void 0&&(i.iridescence=r.iridescenceFactor),r.iridescenceTexture!==void 0&&e.push(c.assignTexture(i,"iridescenceMap",r.iridescenceTexture)),r.iridescenceIor!==void 0&&(i.iridescenceIOR=r.iridescenceIor),i.iridescenceThicknessRange===void 0&&(i.iridescenceThicknessRange=[100,400]),r.iridescenceThicknessMinimum!==void 0&&(i.iridescenceThicknessRange[0]=r.iridescenceThicknessMinimum),r.iridescenceThicknessMaximum!==void 0&&(i.iridescenceThicknessRange[1]=r.iridescenceThicknessMaximum),r.iridescenceThicknessTexture!==void 0&&e.push(c.assignTexture(i,"iridescenceThicknessMap",r.iridescenceThicknessTexture)),Promise.all(e)}}class Oi{constructor(t){this.parser=t,this.name=ge.KHR_MATERIALS_SHEEN}getMaterialType(t){const c=this.parser.json.materials[t];return!c.extensions||!c.extensions[this.name]?null:$e}extendMaterialParams(t,i){const c=this.parser,n=c.json.materials[t];if(!n.extensions||!n.extensions[this.name])return Promise.resolve();const e=[];i.sheenColor=new Pe(0,0,0),i.sheenRoughness=0,i.sheen=1;const r=n.extensions[this.name];if(r.sheenColorFactor!==void 0){const a=r.sheenColorFactor;i.sheenColor.setRGB(a[0],a[1],a[2],at)}return r.sheenRoughnessFactor!==void 0&&(i.sheenRoughness=r.sheenRoughnessFactor),r.sheenColorTexture!==void 0&&e.push(c.assignTexture(i,"sheenColorMap",r.sheenColorTexture,vt)),r.sheenRoughnessTexture!==void 0&&e.push(c.assignTexture(i,"sheenRoughnessMap",r.sheenRoughnessTexture)),Promise.all(e)}}class Hi{constructor(t){this.parser=t,this.name=ge.KHR_MATERIALS_TRANSMISSION}getMaterialType(t){const c=this.parser.json.materials[t];return!c.extensions||!c.extensions[this.name]?null:$e}extendMaterialParams(t,i){const c=this.parser,n=c.json.materials[t];if(!n.extensions||!n.extensions[this.name])return Promise.resolve();const e=[],r=n.extensions[this.name];return r.transmissionFactor!==void 0&&(i.transmission=r.transmissionFactor),r.transmissionTexture!==void 0&&e.push(c.assignTexture(i,"transmissionMap",r.transmissionTexture)),Promise.all(e)}}class Pi{constructor(t){this.parser=t,this.name=ge.KHR_MATERIALS_VOLUME}getMaterialType(t){const c=this.parser.json.materials[t];return!c.extensions||!c.extensions[this.name]?null:$e}extendMaterialParams(t,i){const c=this.parser,n=c.json.materials[t];if(!n.extensions||!n.extensions[this.name])return Promise.resolve();const e=[],r=n.extensions[this.name];i.thickness=r.thicknessFactor!==void 0?r.thicknessFactor:0,r.thicknessTexture!==void 0&&e.push(c.assignTexture(i,"thicknessMap",r.thicknessTexture)),i.attenuationDistance=r.attenuationDistance||1/0;const a=r.attenuationColor||[1,1,1];return i.attenuationColor=new Pe().setRGB(a[0],a[1],a[2],at),Promise.all(e)}}class Ji{constructor(t){this.parser=t,this.name=ge.KHR_MATERIALS_IOR}getMaterialType(t){const c=this.parser.json.materials[t];return!c.extensions||!c.extensions[this.name]?null:$e}extendMaterialParams(t,i){const n=this.parser.json.materials[t];if(!n.extensions||!n.extensions[this.name])return Promise.resolve();const e=n.extensions[this.name];return i.ior=e.ior!==void 0?e.ior:1.5,Promise.resolve()}}class Ni{constructor(t){this.parser=t,this.name=ge.KHR_MATERIALS_SPECULAR}getMaterialType(t){const c=this.parser.json.materials[t];return!c.extensions||!c.extensions[this.name]?null:$e}extendMaterialParams(t,i){const c=this.parser,n=c.json.materials[t];if(!n.extensions||!n.extensions[this.name])return Promise.resolve();const e=[],r=n.extensions[this.name];i.specularIntensity=r.specularFactor!==void 0?r.specularFactor:1,r.specularTexture!==void 0&&e.push(c.assignTexture(i,"specularIntensityMap",r.specularTexture));const a=r.specularColorFactor||[1,1,1];return i.specularColor=new Pe().setRGB(a[0],a[1],a[2],at),r.specularColorTexture!==void 0&&e.push(c.assignTexture(i,"specularColorMap",r.specularColorTexture,vt)),Promise.all(e)}}class Ki{constructor(t){this.parser=t,this.name=ge.EXT_MATERIALS_BUMP}getMaterialType(t){const c=this.parser.json.materials[t];return!c.extensions||!c.extensions[this.name]?null:$e}extendMaterialParams(t,i){const c=this.parser,n=c.json.materials[t];if(!n.extensions||!n.extensions[this.name])return Promise.resolve();const e=[],r=n.extensions[this.name];return i.bumpScale=r.bumpFactor!==void 0?r.bumpFactor:1,r.bumpTexture!==void 0&&e.push(c.assignTexture(i,"bumpMap",r.bumpTexture)),Promise.all(e)}}class ji{constructor(t){this.parser=t,this.name=ge.KHR_MATERIALS_ANISOTROPY}getMaterialType(t){const c=this.parser.json.materials[t];return!c.extensions||!c.extensions[this.name]?null:$e}extendMaterialParams(t,i){const c=this.parser,n=c.json.materials[t];if(!n.extensions||!n.extensions[this.name])return Promise.resolve();const e=[],r=n.extensions[this.name];return r.anisotropyStrength!==void 0&&(i.anisotropy=r.anisotropyStrength),r.anisotropyRotation!==void 0&&(i.anisotropyRotation=r.anisotropyRotation),r.anisotropyTexture!==void 0&&e.push(c.assignTexture(i,"anisotropyMap",r.anisotropyTexture)),Promise.all(e)}}class Qi{constructor(t){this.parser=t,this.name=ge.KHR_TEXTURE_BASISU}loadTexture(t){const i=this.parser,c=i.json,n=c.textures[t];if(!n.extensions||!n.extensions[this.name])return null;const e=n.extensions[this.name],r=i.options.ktx2Loader;if(!r){if(c.extensionsRequired&&c.extensionsRequired.indexOf(this.name)>=0)throw new Error("THREE.GLTFLoader: setKTX2Loader must be called before loading KTX2 textures");return null}return i.loadTextureImage(t,e.source,r)}}class Xi{constructor(t){this.parser=t,this.name=ge.EXT_TEXTURE_WEBP,this.isSupported=null}loadTexture(t){const i=this.name,c=this.parser,n=c.json,e=n.textures[t];if(!e.extensions||!e.extensions[i])return null;const r=e.extensions[i],a=n.images[r.source];let o=c.textureLoader;if(a.uri){const s=c.options.manager.getHandler(a.uri);s!==null&&(o=s)}return this.detectSupport().then(function(s){if(s)return c.loadTextureImage(t,r.source,o);if(n.extensionsRequired&&n.extensionsRequired.indexOf(i)>=0)throw new Error("THREE.GLTFLoader: WebP required by asset but unsupported.");return c.loadTexture(t)})}detectSupport(){return this.isSupported||(this.isSupported=new Promise(function(t){const i=new Image;i.src="data:image/webp;base64,UklGRiIAAABXRUJQVlA4IBYAAAAwAQCdASoBAAEADsD+JaQAA3AAAAAA",i.onload=i.onerror=function(){t(i.height===1)}})),this.isSupported}}class Wi{constructor(t){this.parser=t,this.name=ge.EXT_TEXTURE_AVIF,this.isSupported=null}loadTexture(t){const i=this.name,c=this.parser,n=c.json,e=n.textures[t];if(!e.extensions||!e.extensions[i])return null;const r=e.extensions[i],a=n.images[r.source];let o=c.textureLoader;if(a.uri){const s=c.options.manager.getHandler(a.uri);s!==null&&(o=s)}return this.detectSupport().then(function(s){if(s)return c.loadTextureImage(t,r.source,o);if(n.extensionsRequired&&n.extensionsRequired.indexOf(i)>=0)throw new Error("THREE.GLTFLoader: AVIF required by asset but unsupported.");return c.loadTexture(t)})}detectSupport(){return this.isSupported||(this.isSupported=new Promise(function(t){const i=new Image;i.src="data:image/avif;base64,AAAAIGZ0eXBhdmlmAAAAAGF2aWZtaWYxbWlhZk1BMUIAAADybWV0YQAAAAAAAAAoaGRscgAAAAAAAAAAcGljdAAAAAAAAAAAAAAAAGxpYmF2aWYAAAAADnBpdG0AAAAAAAEAAAAeaWxvYwAAAABEAAABAAEAAAABAAABGgAAABcAAAAoaWluZgAAAAAAAQAAABppbmZlAgAAAAABAABhdjAxQ29sb3IAAAAAamlwcnAAAABLaXBjbwAAABRpc3BlAAAAAAAAAAEAAAABAAAAEHBpeGkAAAAAAwgICAAAAAxhdjFDgQAMAAAAABNjb2xybmNseAACAAIABoAAAAAXaXBtYQAAAAAAAAABAAEEAQKDBAAAAB9tZGF0EgAKCBgABogQEDQgMgkQAAAAB8dSLfI=",i.onload=i.onerror=function(){t(i.height===1)}})),this.isSupported}}class Yi{constructor(t){this.name=ge.EXT_MESHOPT_COMPRESSION,this.parser=t}loadBufferView(t){const i=this.parser.json,c=i.bufferViews[t];if(c.extensions&&c.extensions[this.name]){const n=c.extensions[this.name],e=this.parser.getDependency("buffer",n.buffer),r=this.parser.options.meshoptDecoder;if(!r||!r.supported){if(i.extensionsRequired&&i.extensionsRequired.indexOf(this.name)>=0)throw new Error("THREE.GLTFLoader: setMeshoptDecoder must be called before loading compressed files");return null}return e.then(function(a){const o=n.byteOffset||0,s=n.byteLength||0,l=n.count,f=n.byteStride,d=new Uint8Array(a,o,s);return r.decodeGltfBufferAsync?r.decodeGltfBufferAsync(l,f,d,n.mode,n.filter).then(function(h){return h.buffer}):r.ready.then(function(){const h=new ArrayBuffer(l*f);return r.decodeGltfBuffer(new Uint8Array(h),l,f,d,n.mode,n.filter),h})})}else return null}}class Vi{constructor(t){this.name=ge.EXT_MESH_GPU_INSTANCING,this.parser=t}createNodeMesh(t){const i=this.parser.json,c=i.nodes[t];if(!c.extensions||!c.extensions[this.name]||c.mesh===void 0)return null;const n=i.meshes[c.mesh];for(const s of n.primitives)if(s.mode!==Xe.TRIANGLES&&s.mode!==Xe.TRIANGLE_STRIP&&s.mode!==Xe.TRIANGLE_FAN&&s.mode!==void 0)return null;const r=c.extensions[this.name].attributes,a=[],o={};for(const s in r)a.push(this.parser.getDependency("accessor",r[s]).then(l=>(o[s]=l,o[s])));return a.length<1?null:(a.push(this.parser.createNodeMesh(t)),Promise.all(a).then(s=>{const l=s.pop(),f=l.isGroup?l.children:[l],d=s[0].count,h=[];for(const A of f){const m=new Ct,p=new ke,v=new bt,C=new ke(1,1,1),b=new hs(A.geometry,A.material,d);for(let g=0;g<d;g++)o.TRANSLATION&&p.fromBufferAttribute(o.TRANSLATION,g),o.ROTATION&&v.fromBufferAttribute(o.ROTATION,g),o.SCALE&&C.fromBufferAttribute(o.SCALE,g),b.setMatrixAt(g,m.compose(p,v,C));for(const g in o)if(g==="_COLOR_0"){const E=o[g];b.instanceColor=new ga(E.array,E.itemSize,E.normalized)}else g!=="TRANSLATION"&&g!=="ROTATION"&&g!=="SCALE"&&A.geometry.setAttribute(g,o[g]);Ca.prototype.copy.call(b,A),this.parser.assignFinalMaterial(b),h.push(b)}return l.isGroup?(l.clear(),l.add(...h),l):h[0]}))}}const Sa="glTF",qt=12,Wo={JSON:1313821514,BIN:5130562};class zi{constructor(t){this.name=ge.KHR_BINARY_GLTF,this.content=null,this.body=null;const i=new DataView(t,0,qt);if(this.header={magic:wn(new Uint8Array(t.slice(0,4))),version:i.getUint32(4,!0),length:i.getUint32(8,!0)},this.header.magic!==Sa)throw new Error("THREE.GLTFLoader: Unsupported glTF-Binary header.");if(this.header.version<2)throw new Error("THREE.GLTFLoader: Legacy binary file detected.");const c=this.header.length-qt,n=new DataView(t,qt);let e=0;for(;e<c;){const r=n.getUint32(e,!0);e+=4;const a=n.getUint32(e,!0);if(e+=4,a===Wo.JSON){const o=new Uint8Array(t,qt+e,r);this.content=wn(o)}else if(a===Wo.BIN){const o=qt+e;this.body=t.slice(o,o+r)}e+=r}if(this.content===null)throw new Error("THREE.GLTFLoader: JSON content not found.")}}class Zi{constructor(t,i){if(!i)throw new Error("THREE.GLTFLoader: No DRACOLoader instance provided.");this.name=ge.KHR_DRACO_MESH_COMPRESSION,this.json=t,this.dracoLoader=i,this.dracoLoader.preload()}decodePrimitive(t,i){const c=this.json,n=this.dracoLoader,e=t.extensions[this.name].bufferView,r=t.extensions[this.name].attributes,a={},o={},s={};for(const l in r){const f=br[l]||l.toLowerCase();a[f]=r[l]}for(const l in t.attributes){const f=br[l]||l.toLowerCase();if(r[l]!==void 0){const d=c.accessors[t.attributes[l]],h=St[d.componentType];s[f]=h.name,o[f]=d.normalized===!0}}return i.getDependency("bufferView",e).then(function(l){return new Promise(function(f,d){n.decodeDracoFile(l,function(h){for(const A in h.attributes){const m=h.attributes[A],p=o[A];p!==void 0&&(m.normalized=p)}f(h)},a,s,at,d)})})}}class qi{constructor(){this.name=ge.KHR_TEXTURE_TRANSFORM}extendTexture(t,i){return(i.texCoord===void 0||i.texCoord===t.channel)&&i.offset===void 0&&i.rotation===void 0&&i.scale===void 0||(t=t.clone(),i.texCoord!==void 0&&(t.channel=i.texCoord),i.offset!==void 0&&t.offset.fromArray(i.offset),i.rotation!==void 0&&(t.rotation=i.rotation),i.scale!==void 0&&t.repeat.fromArray(i.scale),t.needsUpdate=!0),t}}class $i{constructor(){this.name=ge.KHR_MESH_QUANTIZATION}}class wa extends ks{constructor(t,i,c,n){super(t,i,c,n)}copySampleValue_(t){const i=this.resultBuffer,c=this.sampleValues,n=this.valueSize,e=t*n*3+n;for(let r=0;r!==n;r++)i[r]=c[e+r];return i}interpolate_(t,i,c,n){const e=this.resultBuffer,r=this.sampleValues,a=this.valueSize,o=a*2,s=a*3,l=n-i,f=(c-i)/l,d=f*f,h=d*f,A=t*s,m=A-s,p=-2*h+3*d,v=h-d,C=1-p,b=v-d+f;for(let g=0;g!==a;g++){const E=r[m+g+a],D=r[m+g+o]*l,F=r[A+g+a],M=r[A+g]*l;e[g]=C*E+b*D+p*F+v*M}return e}}const ec=new bt;class tc extends wa{interpolate_(t,i,c,n){const e=super.interpolate_(t,i,c,n);return ec.fromArray(e).normalize().toArray(e),e}}const Xe={POINTS:0,LINES:1,LINE_LOOP:2,LINE_STRIP:3,TRIANGLES:4,TRIANGLE_STRIP:5,TRIANGLE_FAN:6},St={5120:Int8Array,5121:Uint8Array,5122:Int16Array,5123:Uint16Array,5125:Uint32Array,5126:Float32Array},Yo={9728:gs,9729:In,9984:vs,9985:Bs,9986:ms,9987:ya},Vo={33071:ys,33648:Cs,10497:Br},ir={SCALAR:1,VEC2:2,VEC3:3,VEC4:4,MAT2:4,MAT3:9,MAT4:16},br={POSITION:"position",NORMAL:"normal",TANGENT:"tangent",...Ri>=152?{TEXCOORD_0:"uv",TEXCOORD_1:"uv1",TEXCOORD_2:"uv2",TEXCOORD_3:"uv3"}:{TEXCOORD_0:"uv",TEXCOORD_1:"uv2"},COLOR_0:"color",WEIGHTS_0:"skinWeight",JOINTS_0:"skinIndex"},dt={scale:"scale",translation:"position",rotation:"quaternion",weights:"morphTargetInfluences"},nc={CUBICSPLINE:void 0,LINEAR:Ta,STEP:_s},cr={OPAQUE:"OPAQUE",MASK:"MASK",BLEND:"BLEND"};function rc(u){return u.DefaultMaterial===void 0&&(u.DefaultMaterial=new ba({color:16777215,emissive:0,metalness:1,roughness:1,transparent:!1,depthTest:!0,side:Da})),u.DefaultMaterial}function mt(u,t,i){for(const c in i.extensions)u[c]===void 0&&(t.userData.gltfExtensions=t.userData.gltfExtensions||{},t.userData.gltfExtensions[c]=i.extensions[c])}function ot(u,t){t.extras!==void 0&&(typeof t.extras=="object"?Object.assign(u.userData,t.extras):console.warn("THREE.GLTFLoader: Ignoring primitive type .extras, "+t.extras))}function oc(u,t,i){let c=!1,n=!1,e=!1;for(let s=0,l=t.length;s<l;s++){const f=t[s];if(f.POSITION!==void 0&&(c=!0),f.NORMAL!==void 0&&(n=!0),f.COLOR_0!==void 0&&(e=!0),c&&n&&e)break}if(!c&&!n&&!e)return Promise.resolve(u);const r=[],a=[],o=[];for(let s=0,l=t.length;s<l;s++){const f=t[s];if(c){const d=f.POSITION!==void 0?i.getDependency("accessor",f.POSITION):u.attributes.position;r.push(d)}if(n){const d=f.NORMAL!==void 0?i.getDependency("accessor",f.NORMAL):u.attributes.normal;a.push(d)}if(e){const d=f.COLOR_0!==void 0?i.getDependency("accessor",f.COLOR_0):u.attributes.color;o.push(d)}}return Promise.all([Promise.all(r),Promise.all(a),Promise.all(o)]).then(function(s){const l=s[0],f=s[1],d=s[2];return c&&(u.morphAttributes.position=l),n&&(u.morphAttributes.normal=f),e&&(u.morphAttributes.color=d),u.morphTargetsRelative=!0,u})}function ac(u,t){if(u.updateMorphTargets(),t.weights!==void 0)for(let i=0,c=t.weights.length;i<c;i++)u.morphTargetInfluences[i]=t.weights[i];if(t.extras&&Array.isArray(t.extras.targetNames)){const i=t.extras.targetNames;if(u.morphTargetInfluences.length===i.length){u.morphTargetDictionary={};for(let c=0,n=i.length;c<n;c++)u.morphTargetDictionary[i[c]]=c}else console.warn("THREE.GLTFLoader: Invalid extras.targetNames length. Ignoring names.")}}function sc(u){let t;const i=u.extensions&&u.extensions[ge.KHR_DRACO_MESH_COMPRESSION];if(i?t="draco:"+i.bufferView+":"+i.indices+":"+lr(i.attributes):t=u.indices+":"+lr(u.attributes)+":"+u.mode,u.targets!==void 0)for(let c=0,n=u.targets.length;c<n;c++)t+=":"+lr(u.targets[c]);return t}function lr(u){let t="";const i=Object.keys(u).sort();for(let c=0,n=i.length;c<n;c++)t+=i[c]+":"+u[i[c]]+";";return t}function Fr(u){switch(u){case Int8Array:return 1/127;case Uint8Array:return 1/255;case Int16Array:return 1/32767;case Uint16Array:return 1/65535;default:throw new Error("THREE.GLTFLoader: Unsupported normalized accessor component type.")}}function ic(u){return u.search(/\.jpe?g($|\?)/i)>0||u.search(/^data\:image\/jpeg/)===0?"image/jpeg":u.search(/\.webp($|\?)/i)>0||u.search(/^data\:image\/webp/)===0?"image/webp":"image/png"}const cc=new Ct;class lc{constructor(t={},i={}){this.json=t,this.extensions={},this.plugins={},this.options=i,this.cache=new Ii,this.associations=new Map,this.primitiveCache={},this.nodeCache={},this.meshCache={refs:{},uses:{}},this.cameraCache={refs:{},uses:{}},this.lightCache={refs:{},uses:{}},this.sourceCache={},this.textureCache={},this.nodeNamesUsed={};let c=!1,n=!1,e=-1;typeof navigator<"u"&&typeof navigator.userAgent<"u"&&(c=/^((?!chrome|android).)*safari/i.test(navigator.userAgent)===!0,n=navigator.userAgent.indexOf("Firefox")>-1,e=n?navigator.userAgent.match(/Firefox\/([0-9]+)\./)[1]:-1),typeof createImageBitmap>"u"||c||n&&e<98?this.textureLoader=new Un(this.options.manager):this.textureLoader=new As(this.options.manager),this.textureLoader.setCrossOrigin(this.options.crossOrigin),this.textureLoader.setRequestHeader(this.options.requestHeader),this.fileLoader=new xn(this.options.manager),this.fileLoader.setResponseType("arraybuffer"),this.options.crossOrigin==="use-credentials"&&this.fileLoader.setWithCredentials(!0)}setExtensions(t){this.extensions=t}setPlugins(t){this.plugins=t}parse(t,i){const c=this,n=this.json,e=this.extensions;this.cache.removeAll(),this.nodeCache={},this._invokeAll(function(r){return r._markDefs&&r._markDefs()}),Promise.all(this._invokeAll(function(r){return r.beforeRoot&&r.beforeRoot()})).then(function(){return Promise.all([c.getDependencies("scene"),c.getDependencies("animation"),c.getDependencies("camera")])}).then(function(r){const a={scene:r[0][n.scene||0],scenes:r[0],animations:r[1],cameras:r[2],asset:n.asset,parser:c,userData:{}};return mt(e,a,n),ot(a,n),Promise.all(c._invokeAll(function(o){return o.afterRoot&&o.afterRoot(a)})).then(function(){for(const o of a.scenes)o.updateMatrixWorld();t(a)})}).catch(i)}_markDefs(){const t=this.json.nodes||[],i=this.json.skins||[],c=this.json.meshes||[];for(let n=0,e=i.length;n<e;n++){const r=i[n].joints;for(let a=0,o=r.length;a<o;a++)t[r[a]].isBone=!0}for(let n=0,e=t.length;n<e;n++){const r=t[n];r.mesh!==void 0&&(this._addNodeRef(this.meshCache,r.mesh),r.skin!==void 0&&(c[r.mesh].isSkinnedMesh=!0)),r.camera!==void 0&&this._addNodeRef(this.cameraCache,r.camera)}}_addNodeRef(t,i){i!==void 0&&(t.refs[i]===void 0&&(t.refs[i]=t.uses[i]=0),t.refs[i]++)}_getNodeRef(t,i,c){if(t.refs[i]<=1)return c;const n=c.clone(),e=(r,a)=>{const o=this.associations.get(r);o!=null&&this.associations.set(a,o);for(const[s,l]of r.children.entries())e(l,a.children[s])};return e(c,n),n.name+="_instance_"+t.uses[i]++,n}_invokeOne(t){const i=Object.values(this.plugins);i.push(this);for(let c=0;c<i.length;c++){const n=t(i[c]);if(n)return n}return null}_invokeAll(t){const i=Object.values(this.plugins);i.unshift(this);const c=[];for(let n=0;n<i.length;n++){const e=t(i[n]);e&&c.push(e)}return c}getDependency(t,i){const c=t+":"+i;let n=this.cache.get(c);if(!n){switch(t){case"scene":n=this.loadScene(i);break;case"node":n=this._invokeOne(function(e){return e.loadNode&&e.loadNode(i)});break;case"mesh":n=this._invokeOne(function(e){return e.loadMesh&&e.loadMesh(i)});break;case"accessor":n=this.loadAccessor(i);break;case"bufferView":n=this._invokeOne(function(e){return e.loadBufferView&&e.loadBufferView(i)});break;case"buffer":n=this.loadBuffer(i);break;case"material":n=this._invokeOne(function(e){return e.loadMaterial&&e.loadMaterial(i)});break;case"texture":n=this._invokeOne(function(e){return e.loadTexture&&e.loadTexture(i)});break;case"skin":n=this.loadSkin(i);break;case"animation":n=this._invokeOne(function(e){return e.loadAnimation&&e.loadAnimation(i)});break;case"camera":n=this.loadCamera(i);break;default:if(n=this._invokeOne(function(e){return e!=this&&e.getDependency&&e.getDependency(t,i)}),!n)throw new Error("Unknown type: "+t);break}this.cache.add(c,n)}return n}getDependencies(t){let i=this.cache.get(t);if(!i){const c=this,n=this.json[t+(t==="mesh"?"es":"s")]||[];i=Promise.all(n.map(function(e,r){return c.getDependency(t,r)})),this.cache.add(t,i)}return i}loadBuffer(t){const i=this.json.buffers[t],c=this.fileLoader;if(i.type&&i.type!=="arraybuffer")throw new Error("THREE.GLTFLoader: "+i.type+" buffer type is not supported.");if(i.uri===void 0&&t===0)return Promise.resolve(this.extensions[ge.KHR_BINARY_GLTF].body);const n=this.options;return new Promise(function(e,r){c.load(nn.resolveURL(i.uri,n.path),e,void 0,function(){r(new Error('THREE.GLTFLoader: Failed to load buffer "'+i.uri+'".'))})})}loadBufferView(t){const i=this.json.bufferViews[t];return this.getDependency("buffer",i.buffer).then(function(c){const n=i.byteLength||0,e=i.byteOffset||0;return c.slice(e,e+n)})}loadAccessor(t){const i=this,c=this.json,n=this.json.accessors[t];if(n.bufferView===void 0&&n.sparse===void 0){const r=ir[n.type],a=St[n.componentType],o=n.normalized===!0,s=new a(n.count*r);return Promise.resolve(new rn(s,r,o))}const e=[];return n.bufferView!==void 0?e.push(this.getDependency("bufferView",n.bufferView)):e.push(null),n.sparse!==void 0&&(e.push(this.getDependency("bufferView",n.sparse.indices.bufferView)),e.push(this.getDependency("bufferView",n.sparse.values.bufferView))),Promise.all(e).then(function(r){const a=r[0],o=ir[n.type],s=St[n.componentType],l=s.BYTES_PER_ELEMENT,f=l*o,d=n.byteOffset||0,h=n.bufferView!==void 0?c.bufferViews[n.bufferView].byteStride:void 0,A=n.normalized===!0;let m,p;if(h&&h!==f){const v=Math.floor(d/h),C="InterleavedBuffer:"+n.bufferView+":"+n.componentType+":"+v+":"+n.count;let b=i.cache.get(C);b||(m=new s(a,v*h,n.count*h/l),b=new ps(m,h/l),i.cache.add(C,b)),p=new Ls(b,o,d%h/l,A)}else a===null?m=new s(n.count*o):m=new s(a,d,n.count*o),p=new rn(m,o,A);if(n.sparse!==void 0){const v=ir.SCALAR,C=St[n.sparse.indices.componentType],b=n.sparse.indices.byteOffset||0,g=n.sparse.values.byteOffset||0,E=new C(r[1],b,n.sparse.count*v),D=new s(r[2],g,n.sparse.count*o);a!==null&&(p=new rn(p.array.slice(),p.itemSize,p.normalized));for(let F=0,M=E.length;F<M;F++){const U=E[F];if(p.setX(U,D[F*o]),o>=2&&p.setY(U,D[F*o+1]),o>=3&&p.setZ(U,D[F*o+2]),o>=4&&p.setW(U,D[F*o+3]),o>=5)throw new Error("THREE.GLTFLoader: Unsupported itemSize in sparse BufferAttribute.")}}return p})}loadTexture(t){const i=this.json,c=this.options,e=i.textures[t].source,r=i.images[e];let a=this.textureLoader;if(r.uri){const o=c.manager.getHandler(r.uri);o!==null&&(a=o)}return this.loadTextureImage(t,e,a)}loadTextureImage(t,i,c){const n=this,e=this.json,r=e.textures[t],a=e.images[i],o=(a.uri||a.bufferView)+":"+r.sampler;if(this.textureCache[o])return this.textureCache[o];const s=this.loadImageSource(i,c).then(function(l){l.flipY=!1,l.name=r.name||a.name||"",l.name===""&&typeof a.uri=="string"&&a.uri.startsWith("data:image/")===!1&&(l.name=a.uri);const d=(e.samplers||{})[r.sampler]||{};return l.magFilter=Yo[d.magFilter]||In,l.minFilter=Yo[d.minFilter]||ya,l.wrapS=Vo[d.wrapS]||Br,l.wrapT=Vo[d.wrapT]||Br,n.associations.set(l,{textures:t}),l}).catch(function(){return null});return this.textureCache[o]=s,s}loadImageSource(t,i){const c=this,n=this.json,e=this.options;if(this.sourceCache[t]!==void 0)return this.sourceCache[t].then(f=>f.clone());const r=n.images[t],a=self.URL||self.webkitURL;let o=r.uri||"",s=!1;if(r.bufferView!==void 0)o=c.getDependency("bufferView",r.bufferView).then(function(f){s=!0;const d=new Blob([f],{type:r.mimeType});return o=a.createObjectURL(d),o});else if(r.uri===void 0)throw new Error("THREE.GLTFLoader: Image "+t+" is missing URI and bufferView");const l=Promise.resolve(o).then(function(f){return new Promise(function(d,h){let A=d;i.isImageBitmapLoader===!0&&(A=function(m){const p=new cn(m);p.needsUpdate=!0,d(p)}),i.load(nn.resolveURL(f,e.path),A,void 0,h)})}).then(function(f){return s===!0&&a.revokeObjectURL(o),ot(f,r),f.userData.mimeType=r.mimeType||ic(r.uri),f}).catch(function(f){throw console.error("THREE.GLTFLoader: Couldn't load texture",o),f});return this.sourceCache[t]=l,l}assignTexture(t,i,c,n){const e=this;return this.getDependency("texture",c.index).then(function(r){if(!r)return null;if(c.texCoord!==void 0&&c.texCoord>0&&(r=r.clone(),r.channel=c.texCoord),e.extensions[ge.KHR_TEXTURE_TRANSFORM]){const a=c.extensions!==void 0?c.extensions[ge.KHR_TEXTURE_TRANSFORM]:void 0;if(a){const o=e.associations.get(r);r=e.extensions[ge.KHR_TEXTURE_TRANSFORM].extendTexture(r,a),e.associations.set(r,o)}}return n!==void 0&&(typeof n=="number"&&(n=n===Xo?vt:at),"colorSpace"in r?r.colorSpace=n:r.encoding=n===vt?Xo:xi),t[i]=r,r})}assignFinalMaterial(t){const i=t.geometry;let c=t.material;const n=i.attributes.tangent===void 0,e=i.attributes.color!==void 0,r=i.attributes.normal===void 0;if(t.isPoints){const a="PointsMaterial:"+c.uuid;let o=this.cache.get(a);o||(o=new bs,or.prototype.copy.call(o,c),o.color.copy(c.color),o.map=c.map,o.sizeAttenuation=!1,this.cache.add(a,o)),c=o}else if(t.isLine){const a="LineBasicMaterial:"+c.uuid;let o=this.cache.get(a);o||(o=new Fs,or.prototype.copy.call(o,c),o.color.copy(c.color),o.map=c.map,this.cache.add(a,o)),c=o}if(n||e||r){let a="ClonedMaterial:"+c.uuid+":";n&&(a+="derivative-tangents:"),e&&(a+="vertex-colors:"),r&&(a+="flat-shading:");let o=this.cache.get(a);o||(o=c.clone(),e&&(o.vertexColors=!0),r&&(o.flatShading=!0),n&&(o.normalScale&&(o.normalScale.y*=-1),o.clearcoatNormalScale&&(o.clearcoatNormalScale.y*=-1)),this.cache.add(a,o),this.associations.set(o,this.associations.get(c))),c=o}t.material=c}getMaterialType(){return ba}loadMaterial(t){const i=this,c=this.json,n=this.extensions,e=c.materials[t];let r;const a={},o=e.extensions||{},s=[];if(o[ge.KHR_MATERIALS_UNLIT]){const f=n[ge.KHR_MATERIALS_UNLIT];r=f.getMaterialType(),s.push(f.extendParams(a,e,i))}else{const f=e.pbrMetallicRoughness||{};if(a.color=new Pe(1,1,1),a.opacity=1,Array.isArray(f.baseColorFactor)){const d=f.baseColorFactor;a.color.setRGB(d[0],d[1],d[2],at),a.opacity=d[3]}f.baseColorTexture!==void 0&&s.push(i.assignTexture(a,"map",f.baseColorTexture,vt)),a.metalness=f.metallicFactor!==void 0?f.metallicFactor:1,a.roughness=f.roughnessFactor!==void 0?f.roughnessFactor:1,f.metallicRoughnessTexture!==void 0&&(s.push(i.assignTexture(a,"metalnessMap",f.metallicRoughnessTexture)),s.push(i.assignTexture(a,"roughnessMap",f.metallicRoughnessTexture))),r=this._invokeOne(function(d){return d.getMaterialType&&d.getMaterialType(t)}),s.push(Promise.all(this._invokeAll(function(d){return d.extendMaterialParams&&d.extendMaterialParams(t,a)})))}e.doubleSided===!0&&(a.side=Fa);const l=e.alphaMode||cr.OPAQUE;if(l===cr.BLEND?(a.transparent=!0,a.depthWrite=!1):(a.transparent=!1,l===cr.MASK&&(a.alphaTest=e.alphaCutoff!==void 0?e.alphaCutoff:.5)),e.normalTexture!==void 0&&r!==xt&&(s.push(i.assignTexture(a,"normalMap",e.normalTexture)),a.normalScale=new qe(1,1),e.normalTexture.scale!==void 0)){const f=e.normalTexture.scale;a.normalScale.set(f,f)}if(e.occlusionTexture!==void 0&&r!==xt&&(s.push(i.assignTexture(a,"aoMap",e.occlusionTexture)),e.occlusionTexture.strength!==void 0&&(a.aoMapIntensity=e.occlusionTexture.strength)),e.emissiveFactor!==void 0&&r!==xt){const f=e.emissiveFactor;a.emissive=new Pe().setRGB(f[0],f[1],f[2],at)}return e.emissiveTexture!==void 0&&r!==xt&&s.push(i.assignTexture(a,"emissiveMap",e.emissiveTexture,vt)),Promise.all(s).then(function(){const f=new r(a);return e.name&&(f.name=e.name),ot(f,e),i.associations.set(f,{materials:t}),e.extensions&&mt(n,f,e),f})}createUniqueName(t){const i=Es.sanitizeNodeName(t||"");return i in this.nodeNamesUsed?i+"_"+ ++this.nodeNamesUsed[i]:(this.nodeNamesUsed[i]=0,i)}loadGeometries(t){const i=this,c=this.extensions,n=this.primitiveCache;function e(a){return c[ge.KHR_DRACO_MESH_COMPRESSION].decodePrimitive(a,i).then(function(o){return zo(o,a,i)})}const r=[];for(let a=0,o=t.length;a<o;a++){const s=t[a],l=sc(s),f=n[l];if(f)r.push(f.promise);else{let d;s.extensions&&s.extensions[ge.KHR_DRACO_MESH_COMPRESSION]?d=e(s):d=zo(new Ea,s,i),n[l]={primitive:s,promise:d},r.push(d)}}return Promise.all(r)}loadMesh(t){const i=this,c=this.json,n=this.extensions,e=c.meshes[t],r=e.primitives,a=[];for(let o=0,s=r.length;o<s;o++){const l=r[o].material===void 0?rc(this.cache):this.getDependency("material",r[o].material);a.push(l)}return a.push(i.loadGeometries(r)),Promise.all(a).then(function(o){const s=o.slice(0,o.length-1),l=o[o.length-1],f=[];for(let h=0,A=l.length;h<A;h++){const m=l[h],p=r[h];let v;const C=s[h];if(p.mode===Xe.TRIANGLES||p.mode===Xe.TRIANGLE_STRIP||p.mode===Xe.TRIANGLE_FAN||p.mode===void 0)v=e.isSkinnedMesh===!0?new Ms(m,C):new _n(m,C),v.isSkinnedMesh===!0&&v.normalizeSkinWeights(),p.mode===Xe.TRIANGLE_STRIP?v.geometry=Qo(v.geometry,Ba):p.mode===Xe.TRIANGLE_FAN&&(v.geometry=Qo(v.geometry,mr));else if(p.mode===Xe.LINES)v=new Ts(m,C);else if(p.mode===Xe.LINE_STRIP)v=new Ds(m,C);else if(p.mode===Xe.LINE_LOOP)v=new Gs(m,C);else if(p.mode===Xe.POINTS)v=new Rs(m,C);else throw new Error("THREE.GLTFLoader: Primitive mode unsupported: "+p.mode);Object.keys(v.geometry.morphAttributes).length>0&&ac(v,e),v.name=i.createUniqueName(e.name||"mesh_"+t),ot(v,e),p.extensions&&mt(n,v,p),i.assignFinalMaterial(v),f.push(v)}for(let h=0,A=f.length;h<A;h++)i.associations.set(f[h],{meshes:t,primitives:h});if(f.length===1)return e.extensions&&mt(n,f[0],e),f[0];const d=new ar;e.extensions&&mt(n,d,e),i.associations.set(d,{meshes:t});for(let h=0,A=f.length;h<A;h++)d.add(f[h]);return d})}loadCamera(t){let i;const c=this.json.cameras[t],n=c[c.type];if(!n){console.warn("THREE.GLTFLoader: Missing camera parameters.");return}return c.type==="perspective"?i=new xs(Ma.radToDeg(n.yfov),n.aspectRatio||1,n.znear||1,n.zfar||2e6):c.type==="orthographic"&&(i=new Is(-n.xmag,n.xmag,n.ymag,-n.ymag,n.znear,n.zfar)),c.name&&(i.name=this.createUniqueName(c.name)),ot(i,c),Promise.resolve(i)}loadSkin(t){const i=this.json.skins[t],c=[];for(let n=0,e=i.joints.length;n<e;n++)c.push(this._loadNodeShallow(i.joints[n]));return i.inverseBindMatrices!==void 0?c.push(this.getDependency("accessor",i.inverseBindMatrices)):c.push(null),Promise.all(c).then(function(n){const e=n.pop(),r=n,a=[],o=[];for(let s=0,l=r.length;s<l;s++){const f=r[s];if(f){a.push(f);const d=new Ct;e!==null&&d.fromArray(e.array,s*16),o.push(d)}else console.warn('THREE.GLTFLoader: Joint "%s" could not be found.',i.joints[s])}return new Ss(a,o)})}loadAnimation(t){const i=this.json,c=this,n=i.animations[t],e=n.name?n.name:"animation_"+t,r=[],a=[],o=[],s=[],l=[];for(let f=0,d=n.channels.length;f<d;f++){const h=n.channels[f],A=n.samplers[h.sampler],m=h.target,p=m.node,v=n.parameters!==void 0?n.parameters[A.input]:A.input,C=n.parameters!==void 0?n.parameters[A.output]:A.output;m.node!==void 0&&(r.push(this.getDependency("node",p)),a.push(this.getDependency("accessor",v)),o.push(this.getDependency("accessor",C)),s.push(A),l.push(m))}return Promise.all([Promise.all(r),Promise.all(a),Promise.all(o),Promise.all(s),Promise.all(l)]).then(function(f){const d=f[0],h=f[1],A=f[2],m=f[3],p=f[4],v=[];for(let C=0,b=d.length;C<b;C++){const g=d[C],E=h[C],D=A[C],F=m[C],M=p[C];if(g===void 0)continue;g.updateMatrix&&g.updateMatrix();const U=c._createAnimationTracks(g,E,D,F,M);if(U)for(let x=0;x<U.length;x++)v.push(U[x])}return new ws(e,void 0,v)})}createNodeMesh(t){const i=this.json,c=this,n=i.nodes[t];return n.mesh===void 0?null:c.getDependency("mesh",n.mesh).then(function(e){const r=c._getNodeRef(c.meshCache,n.mesh,e);return n.weights!==void 0&&r.traverse(function(a){if(a.isMesh)for(let o=0,s=n.weights.length;o<s;o++)a.morphTargetInfluences[o]=n.weights[o]}),r})}loadNode(t){const i=this.json,c=this,n=i.nodes[t],e=c._loadNodeShallow(t),r=[],a=n.children||[];for(let s=0,l=a.length;s<l;s++)r.push(c.getDependency("node",a[s]));const o=n.skin===void 0?Promise.resolve(null):c.getDependency("skin",n.skin);return Promise.all([e,Promise.all(r),o]).then(function(s){const l=s[0],f=s[1],d=s[2];d!==null&&l.traverse(function(h){h.isSkinnedMesh&&h.bind(d,cc)});for(let h=0,A=f.length;h<A;h++)l.add(f[h]);return l})}_loadNodeShallow(t){const i=this.json,c=this.extensions,n=this;if(this.nodeCache[t]!==void 0)return this.nodeCache[t];const e=i.nodes[t],r=e.name?n.createUniqueName(e.name):"",a=[],o=n._invokeOne(function(s){return s.createNodeMesh&&s.createNodeMesh(t)});return o&&a.push(o),e.camera!==void 0&&a.push(n.getDependency("camera",e.camera).then(function(s){return n._getNodeRef(n.cameraCache,e.camera,s)})),n._invokeAll(function(s){return s.createNodeAttachment&&s.createNodeAttachment(t)}).forEach(function(s){a.push(s)}),this.nodeCache[t]=Promise.all(a).then(function(s){let l;if(e.isBone===!0?l=new Us:s.length>1?l=new ar:s.length===1?l=s[0]:l=new Ca,l!==s[0])for(let f=0,d=s.length;f<d;f++)l.add(s[f]);if(e.name&&(l.userData.name=e.name,l.name=r),ot(l,e),e.extensions&&mt(c,l,e),e.matrix!==void 0){const f=new Ct;f.fromArray(e.matrix),l.applyMatrix4(f)}else e.translation!==void 0&&l.position.fromArray(e.translation),e.rotation!==void 0&&l.quaternion.fromArray(e.rotation),e.scale!==void 0&&l.scale.fromArray(e.scale);return n.associations.has(l)||n.associations.set(l,{}),n.associations.get(l).nodes=t,l}),this.nodeCache[t]}loadScene(t){const i=this.extensions,c=this.json.scenes[t],n=this,e=new ar;c.name&&(e.name=n.createUniqueName(c.name)),ot(e,c),c.extensions&&mt(i,e,c);const r=c.nodes||[],a=[];for(let o=0,s=r.length;o<s;o++)a.push(n.getDependency("node",r[o]));return Promise.all(a).then(function(o){for(let l=0,f=o.length;l<f;l++)e.add(o[l]);const s=l=>{const f=new Map;for(const[d,h]of n.associations)(d instanceof or||d instanceof cn)&&f.set(d,h);return l.traverse(d=>{const h=n.associations.get(d);h!=null&&f.set(d,h)}),f};return n.associations=s(e),e})}_createAnimationTracks(t,i,c,n,e){const r=[],a=t.name?t.name:t.uuid,o=[];dt[e.path]===dt.weights?t.traverse(function(d){d.morphTargetInfluences&&o.push(d.name?d.name:d.uuid)}):o.push(a);let s;switch(dt[e.path]){case dt.weights:s=so;break;case dt.rotation:s=io;break;case dt.position:case dt.scale:s=ao;break;default:switch(c.itemSize){case 1:s=so;break;case 2:case 3:default:s=ao;break}break}const l=n.interpolation!==void 0?nc[n.interpolation]:Ta,f=this._getArrayFromAccessor(c);for(let d=0,h=o.length;d<h;d++){const A=new s(o[d]+"."+dt[e.path],i.array,f,l);n.interpolation==="CUBICSPLINE"&&this._createCubicSplineTrackInterpolant(A),r.push(A)}return r}_getArrayFromAccessor(t){let i=t.array;if(t.normalized){const c=Fr(i.constructor),n=new Float32Array(i.length);for(let e=0,r=i.length;e<r;e++)n[e]=i[e]*c;i=n}return i}_createCubicSplineTrackInterpolant(t){t.createInterpolant=function(c){const n=this instanceof io?tc:wa;return new n(this.times,this.values,this.getValueSize()/3,c)},t.createInterpolant.isInterpolantFactoryMethodGLTFCubicSpline=!0}}function uc(u,t,i){const c=t.attributes,n=new Gr;if(c.POSITION!==void 0){const a=i.json.accessors[c.POSITION],o=a.min,s=a.max;if(o!==void 0&&s!==void 0){if(n.set(new ke(o[0],o[1],o[2]),new ke(s[0],s[1],s[2])),a.normalized){const l=Fr(St[a.componentType]);n.min.multiplyScalar(l),n.max.multiplyScalar(l)}}else{console.warn("THREE.GLTFLoader: Missing min/max properties for accessor POSITION.");return}}else return;const e=t.targets;if(e!==void 0){const a=new ke,o=new ke;for(let s=0,l=e.length;s<l;s++){const f=e[s];if(f.POSITION!==void 0){const d=i.json.accessors[f.POSITION],h=d.min,A=d.max;if(h!==void 0&&A!==void 0){if(o.setX(Math.max(Math.abs(h[0]),Math.abs(A[0]))),o.setY(Math.max(Math.abs(h[1]),Math.abs(A[1]))),o.setZ(Math.max(Math.abs(h[2]),Math.abs(A[2]))),d.normalized){const m=Fr(St[d.componentType]);o.multiplyScalar(m)}a.max(o)}else console.warn("THREE.GLTFLoader: Missing min/max properties for accessor POSITION.")}}n.expandByVector(a)}u.boundingBox=n;const r=new Ga;n.getCenter(r.center),r.radius=n.min.distanceTo(n.max)/2,u.boundingSphere=r}function zo(u,t,i){const c=t.attributes,n=[];function e(r,a){return i.getDependency("accessor",r).then(function(o){u.setAttribute(a,o)})}for(const r in c){const a=br[r]||r.toLowerCase();a in u.attributes||n.push(e(c[r],a))}if(t.indices!==void 0&&!u.index){const r=i.getDependency("accessor",t.indices).then(function(a){u.setIndex(a)});n.push(r)}return ot(u,t),uc(u,t,i),Promise.all(n).then(function(){return t.targets!==void 0?oc(u,t.targets,i):u})}const ur=new WeakMap;class fc extends va{constructor(t){super(t),this.decoderPath="",this.decoderConfig={},this.decoderBinary=null,this.decoderPending=null,this.workerLimit=4,this.workerPool=[],this.workerNextTaskID=1,this.workerSourceURL="",this.defaultAttributeIDs={position:"POSITION",normal:"NORMAL",color:"COLOR",uv:"TEX_COORD"},this.defaultAttributeTypes={position:"Float32Array",normal:"Float32Array",color:"Float32Array",uv:"Float32Array"}}setDecoderPath(t){return this.decoderPath=t,this}setDecoderConfig(t){return this.decoderConfig=t,this}setWorkerLimit(t){return this.workerLimit=t,this}load(t,i,c,n){const e=new xn(this.manager);e.setPath(this.path),e.setResponseType("arraybuffer"),e.setRequestHeader(this.requestHeader),e.setWithCredentials(this.withCredentials),e.load(t,r=>{const a={attributeIDs:this.defaultAttributeIDs,attributeTypes:this.defaultAttributeTypes,useUniqueIDs:!1};this.decodeGeometry(r,a).then(i).catch(n)},c,n)}decodeDracoFile(t,i,c,n){const e={attributeIDs:c||this.defaultAttributeIDs,attributeTypes:n||this.defaultAttributeTypes,useUniqueIDs:!!c};this.decodeGeometry(t,e).then(i)}decodeGeometry(t,i){for(const o in i.attributeTypes){const s=i.attributeTypes[o];s.BYTES_PER_ELEMENT!==void 0&&(i.attributeTypes[o]=s.name)}const c=JSON.stringify(i);if(ur.has(t)){const o=ur.get(t);if(o.key===c)return o.promise;if(t.byteLength===0)throw new Error("THREE.DRACOLoader: Unable to re-decode a buffer with different settings. Buffer has already been transferred.")}let n;const e=this.workerNextTaskID++,r=t.byteLength,a=this._getWorker(e,r).then(o=>(n=o,new Promise((s,l)=>{n._callbacks[e]={resolve:s,reject:l},n.postMessage({type:"decode",id:e,taskConfig:i,buffer:t},[t])}))).then(o=>this._createGeometry(o.geometry));return a.catch(()=>!0).then(()=>{n&&e&&this._releaseTask(n,e)}),ur.set(t,{key:c,promise:a}),a}_createGeometry(t){const i=new Ea;t.index&&i.setIndex(new rn(t.index.array,1));for(let c=0;c<t.attributes.length;c++){const n=t.attributes[c],e=n.name,r=n.array,a=n.itemSize;i.setAttribute(e,new rn(r,a))}return i}_loadLibrary(t,i){const c=new xn(this.manager);return c.setPath(this.decoderPath),c.setResponseType(i),c.setWithCredentials(this.withCredentials),new Promise((n,e)=>{c.load(t,n,void 0,e)})}preload(){return this._initDecoder(),this}_initDecoder(){if(this.decoderPending)return this.decoderPending;const t=typeof WebAssembly!="object"||this.decoderConfig.type==="js",i=[];return t?i.push(this._loadLibrary("draco_decoder.js","text")):(i.push(this._loadLibrary("draco_wasm_wrapper.js","text")),i.push(this._loadLibrary("draco_decoder.wasm","arraybuffer"))),this.decoderPending=Promise.all(i).then(c=>{const n=c[0];t||(this.decoderConfig.wasmBinary=c[1]);const e=dc.toString(),r=["/* draco decoder */",n,"","/* worker */",e.substring(e.indexOf("{")+1,e.lastIndexOf("}"))].join(`
3
3
  `);this.workerSourceURL=URL.createObjectURL(new Blob([r]))}),this.decoderPending}_getWorker(t,i){return this._initDecoder().then(()=>{if(this.workerPool.length<this.workerLimit){const n=new Worker(this.workerSourceURL);n._callbacks={},n._taskCosts={},n._taskLoad=0,n.postMessage({type:"init",decoderConfig:this.decoderConfig}),n.onmessage=function(e){const r=e.data;switch(r.type){case"decode":n._callbacks[r.id].resolve(r);break;case"error":n._callbacks[r.id].reject(r);break;default:console.error('THREE.DRACOLoader: Unexpected message, "'+r.type+'"')}},this.workerPool.push(n)}else this.workerPool.sort(function(n,e){return n._taskLoad>e._taskLoad?-1:1});const c=this.workerPool[this.workerPool.length-1];return c._taskCosts[t]=i,c._taskLoad+=i,c})}_releaseTask(t,i){t._taskLoad-=t._taskCosts[i],delete t._callbacks[i],delete t._taskCosts[i]}debug(){console.log("Task load: ",this.workerPool.map(t=>t._taskLoad))}dispose(){for(let t=0;t<this.workerPool.length;++t)this.workerPool[t].terminate();return this.workerPool.length=0,this}}function dc(){let u,t;onmessage=function(r){const a=r.data;switch(a.type){case"init":u=a.decoderConfig,t=new Promise(function(l){u.onModuleLoaded=function(f){l({draco:f})},DracoDecoderModule(u)});break;case"decode":const o=a.buffer,s=a.taskConfig;t.then(l=>{const f=l.draco,d=new f.Decoder,h=new f.DecoderBuffer;h.Init(new Int8Array(o),o.byteLength);try{const A=i(f,d,h,s),m=A.attributes.map(p=>p.array.buffer);A.index&&m.push(A.index.array.buffer),self.postMessage({type:"decode",id:a.id,geometry:A},m)}catch(A){console.error(A),self.postMessage({type:"error",id:a.id,error:A.message})}finally{f.destroy(h),f.destroy(d)}});break}};function i(r,a,o,s){const l=s.attributeIDs,f=s.attributeTypes;let d,h;const A=a.GetEncodedGeometryType(o);if(A===r.TRIANGULAR_MESH)d=new r.Mesh,h=a.DecodeBufferToMesh(o,d);else if(A===r.POINT_CLOUD)d=new r.PointCloud,h=a.DecodeBufferToPointCloud(o,d);else throw new Error("THREE.DRACOLoader: Unexpected geometry type.");if(!h.ok()||d.ptr===0)throw new Error("THREE.DRACOLoader: Decoding failed: "+h.error_msg());const m={index:null,attributes:[]};for(const p in l){const v=self[f[p]];let C,b;if(s.useUniqueIDs)b=l[p],C=a.GetAttributeByUniqueId(d,b);else{if(b=a.GetAttributeId(d,r[l[p]]),b===-1)continue;C=a.GetAttribute(d,b)}m.attributes.push(n(r,a,d,p,v,C))}return A===r.TRIANGULAR_MESH&&(m.index=c(r,a,d)),r.destroy(d),m}function c(r,a,o){const l=o.num_faces()*3,f=l*4,d=r._malloc(f);a.GetTrianglesUInt32Array(o,f,d);const h=new Uint32Array(r.HEAPF32.buffer,d,l).slice();return r._free(d),{array:h,itemSize:1}}function n(r,a,o,s,l,f){const d=f.num_components(),A=o.num_points()*d,m=A*l.BYTES_PER_ELEMENT,p=e(r,l),v=r._malloc(m);a.GetAttributeDataArrayForAllPoints(o,f,p,m,v);const C=new l(r.HEAPF32.buffer,v,A).slice();return r._free(v),{name:s,array:C,itemSize:d}}function e(r,a){switch(a){case Float32Array:return r.DT_FLOAT32;case Int8Array:return r.DT_INT8;case Int16Array:return r.DT_INT16;case Int32Array:return r.DT_INT32;case Uint8Array:return r.DT_UINT8;case Uint16Array:return r.DT_UINT16;case Uint32Array:return r.DT_UINT32}}}let Fn;const fr=()=>{if(Fn)return Fn;const u="B9h9z9tFBBBF8fL9gBB9gLaaaaaFa9gEaaaB9gFaFa9gEaaaFaE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HVD/mF9DBBX9LDYHLD/kFCggEDtHMD9OAcAVD/mFALD/kFCTD+rFD9QHcANAVD/mFALD/kFCTD+rFAOAVD/mFALD/kFAMD9OD9QHVDQBFTtGEmYILPdKOenHLD8dBAEDBIBDyB+t+J83EBABCNJALD8dFAEDBIBDyF+t+J83EBAKAcAVDQNVi8ZcMpySQ8c8dfb8e8fHVD8dBAEDBIBDyG+t+J83EBABCiJAVD8dFAEDBIBDyE+t+J83EBABCAJRBAICIJHIAF9JQBMMM9jFF97GXAGCGrAF9sHG9FQBCBRFEXABABDBBBHECND+rFCND+sFD/6FAECiD+sFCnD+rFCUUU/8EDtD+uFD/mFDMBBABCTJRBAFCIJHFAG9JQBMMM9TFEaCBCB8oGUkUUBHFABCEJC98ZJHBjGUkUUBGXGXAB8/BCTWHGuQBCaREABAGlCggEJCTrXBCa6QFMAFREMAEMMMFBCUNMIT9tBB",i=new Uint8Array([0,97,115,109,1,0,0,0,1,4,1,96,0,0,3,3,2,0,0,5,3,1,0,1,12,1,0,10,22,2,12,0,65,0,65,0,65,0,252,10,0,0,11,7,0,65,0,253,15,26,11]),c=new Uint8Array([32,0,65,253,3,1,2,34,4,106,6,5,11,8,7,20,13,33,12,16,128,9,116,64,19,113,127,15,10,21,22,14,255,66,24,54,136,107,18,23,192,26,114,118,132,17,77,101,130,144,27,87,131,44,45,74,156,154,70,167]);if(typeof WebAssembly!="object")return{supported:!1};let n=u;WebAssembly.validate(i)&&(n=t);let e;const r=WebAssembly.instantiate(a(n),{}).then(f=>{e=f.instance,e.exports.__wasm_call_ctors()});function a(f){const d=new Uint8Array(f.length);for(let A=0;A<f.length;++A){const m=f.charCodeAt(A);d[A]=m>96?m-71:m>64?m-65:m>47?m+4:m>46?63:62}let h=0;for(let A=0;A<f.length;++A)d[h++]=d[A]<60?c[d[A]]:(d[A]-60)*64+d[++A];return d.buffer.slice(0,h)}function o(f,d,h,A,m,p){const v=e.exports.sbrk,C=h+3&-4,b=v(C*A),g=v(m.length),E=new Uint8Array(e.exports.memory.buffer);E.set(m,g);const D=f(b,h,A,g,m.length);if(D===0&&p&&p(b,C,A),d.set(E.subarray(b,b+h*A)),v(b-v(0)),D!==0)throw new Error(`Malformed buffer data: ${D}`)}const s={0:"",1:"meshopt_decodeFilterOct",2:"meshopt_decodeFilterQuat",3:"meshopt_decodeFilterExp",NONE:"",OCTAHEDRAL:"meshopt_decodeFilterOct",QUATERNION:"meshopt_decodeFilterQuat",EXPONENTIAL:"meshopt_decodeFilterExp"},l={0:"meshopt_decodeVertexBuffer",1:"meshopt_decodeIndexBuffer",2:"meshopt_decodeIndexSequence",ATTRIBUTES:"meshopt_decodeVertexBuffer",TRIANGLES:"meshopt_decodeIndexBuffer",INDICES:"meshopt_decodeIndexSequence"};return Fn={ready:r,supported:!0,decodeVertexBuffer(f,d,h,A,m){o(e.exports.meshopt_decodeVertexBuffer,f,d,h,A,e.exports[s[m]])},decodeIndexBuffer(f,d,h,A){o(e.exports.meshopt_decodeIndexBuffer,f,d,h,A)},decodeIndexSequence(f,d,h,A){o(e.exports.meshopt_decodeIndexSequence,f,d,h,A)},decodeGltfBuffer(f,d,h,A,m,p){o(e.exports[l[m]],f,d,h,A,e.exports[s[p]])}},Fn};function hc(){var u=Object.create(null);function t(n,e){var r=n.id,a=n.name,o=n.dependencies;o===void 0&&(o=[]);var s=n.init;s===void 0&&(s=function(){});var l=n.getTransferables;if(l===void 0&&(l=null),!u[r])try{o=o.map(function(d){return d&&d.isWorkerModule&&(t(d,function(h){if(h instanceof Error)throw h}),d=u[d.id].value),d}),s=c("<"+a+">.init",s),l&&(l=c("<"+a+">.getTransferables",l));var f=null;typeof s=="function"?f=s.apply(void 0,o):console.error("worker module init function failed to rehydrate"),u[r]={id:r,value:f,getTransferables:l},e(f)}catch(d){d&&d.noLog||console.error(d),e(d)}}function i(n,e){var r,a=n.id,o=n.args;(!u[a]||typeof u[a].value!="function")&&e(new Error("Worker module "+a+": not found or its 'init' did not return a function"));try{var s=(r=u[a]).value.apply(r,o);s&&typeof s.then=="function"?s.then(l,function(f){return e(f instanceof Error?f:new Error(""+f))}):l(s)}catch(f){e(f)}function l(f){try{var d=u[a].getTransferables&&u[a].getTransferables(f);(!d||!Array.isArray(d)||!d.length)&&(d=void 0),e(f,d)}catch(h){console.error(h),e(h)}}}function c(n,e){var r=void 0;self.troikaDefine=function(o){return r=o};var a=URL.createObjectURL(new Blob(["/** "+n.replace(/\*/g,"")+` **/
4
4