@stfrigerio/sito-template 0.1.96 → 0.1.97

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 (181) hide show
  1. package/dist/index.esm.js +1 -1
  2. package/dist/index.esm.js.map +1 -1
  3. package/dist/index.js +1 -1
  4. package/dist/index.js.map +1 -1
  5. package/package.json +1 -1
  6. package/storybook-static/assets/{ASCIIText.stories-BNQcc9gv.js → ASCIIText.stories-Df73neNa.js} +1 -1
  7. package/storybook-static/assets/{AllAtoms.stories-DBpk-rB8.js → AllAtoms.stories-BiI0dRwW.js} +1 -1
  8. package/storybook-static/assets/{AnimatedContent.stories-CCnlHD5Y.js → AnimatedContent.stories-DjkrPhwb.js} +1 -1
  9. package/storybook-static/assets/{AnimatedList.stories-DNI1W5-A.js → AnimatedList.stories-BfUnGN7d.js} +1 -1
  10. package/storybook-static/assets/{Antigravity.stories-BQw1Zvk9.js → Antigravity.stories-BTD9Xg7T.js} +1 -1
  11. package/storybook-static/assets/{ArrayInput.stories-HQd6ODME.js → ArrayInput.stories-B9kdIT9a.js} +1 -1
  12. package/storybook-static/assets/{Aurora.stories-xI4i4wH4.js → Aurora.stories-BKttBo3z.js} +1 -1
  13. package/storybook-static/assets/{Beams.stories-DxSqefhF.js → Beams.stories-BT-94qMG.js} +1 -1
  14. package/storybook-static/assets/{BlobCursor.stories-DNk0BeNz.js → BlobCursor.stories-C0fe-xEI.js} +1 -1
  15. package/storybook-static/assets/{BlurText.stories-DBsRktVj.js → BlurText.stories-CASYZKEu.js} +1 -1
  16. package/storybook-static/assets/{BooleansHeatmap.stories-dsUQfyWg.js → BooleansHeatmap.stories-CUTRmSWT.js} +1 -1
  17. package/storybook-static/assets/{BorderGlow.stories-lgvEGRVA.js → BorderGlow.stories-Cbr654fz.js} +1 -1
  18. package/storybook-static/assets/{BubbleMenu.stories-CXvB9JdY.js → BubbleMenu.stories-D6s9f9iP.js} +1 -1
  19. package/storybook-static/assets/{Button-6nmyMGc3.js → Button-BFN9LHxy.js} +1 -1
  20. package/storybook-static/assets/{Button.stories-DD3HQBXg.js → Button.stories--QkKginK.js} +1 -1
  21. package/storybook-static/assets/{Calendar.stories-_ZDa4YfS.js → Calendar.stories-C6fMirS-.js} +2 -2
  22. package/storybook-static/assets/{Card-B7F8cu_z.js → Card-VJ_YQ2Rs.js} +1 -1
  23. package/storybook-static/assets/{Card.stories-BLbuUq_5.js → Card.stories-BDxNouIx.js} +1 -1
  24. package/storybook-static/assets/{CardNav.stories-CiJ_bFt8.js → CardNav.stories-BnhrMkGa.js} +1 -1
  25. package/storybook-static/assets/{Carousel.stories-BYGW6P4X.js → Carousel.stories-CifGVvYJ.js} +1 -1
  26. package/storybook-static/assets/{Checkbox-xrie0yDX.js → Checkbox-BmAUW9fp.js} +1 -1
  27. package/storybook-static/assets/{Checkbox.stories-D-NYqhCG.js → Checkbox.stories-C_UvBcxW.js} +1 -1
  28. package/storybook-static/assets/{ChromaGrid.stories-yYkbcq2a.js → ChromaGrid.stories-BUUY24tG.js} +1 -1
  29. package/storybook-static/assets/{CircularGallery.stories-Ci3GTUgX.js → CircularGallery.stories-BAHtaC5N.js} +1 -1
  30. package/storybook-static/assets/{CircularText.stories-7QMPmTLn.js → CircularText.stories-Dyfa9TGc.js} +1 -1
  31. package/storybook-static/assets/{ClickSpark.stories-Dz9M-gEC.js → ClickSpark.stories-DyY7-W0U.js} +1 -1
  32. package/storybook-static/assets/{ColorBends.stories-Dfa0YMsf.js → ColorBends.stories-C09fGbbd.js} +1 -1
  33. package/storybook-static/assets/{CountUp.stories-DrdYM8-J.js → CountUp.stories-D319IPzj.js} +1 -1
  34. package/storybook-static/assets/{Counter.stories-3m6ldyes.js → Counter.stories-DyCug9AH.js} +1 -1
  35. package/storybook-static/assets/{Crosshair.stories-DfRqBfZC.js → Crosshair.stories-B0WQ_fE1.js} +1 -1
  36. package/storybook-static/assets/{Cubes.stories-D1sZRgvG.js → Cubes.stories-mKx-JaV9.js} +1 -1
  37. package/storybook-static/assets/{CurvedLoop.stories-D6jowEDF.js → CurvedLoop.stories-CPT1TgIj.js} +1 -1
  38. package/storybook-static/assets/{DarkVeil.stories-DLCrll-I.js → DarkVeil.stories-DO4z0Xfp.js} +1 -1
  39. package/storybook-static/assets/{DateInput-D4MHyeLk.js → DateInput-CgcMwqZf.js} +1 -1
  40. package/storybook-static/assets/{DateInput.stories-BRfVBcf6.js → DateInput.stories-9DZA97sK.js} +1 -1
  41. package/storybook-static/assets/{DecayCard.stories-DX1ak6pd.js → DecayCard.stories-DGvn_IgJ.js} +1 -1
  42. package/storybook-static/assets/{DecryptedText.stories-BcCQ2Tby.js → DecryptedText.stories-_ycl9X6g.js} +1 -1
  43. package/storybook-static/assets/{Dither.stories-BPqBpmFI.js → Dither.stories-B1UXWjuE.js} +1 -1
  44. package/storybook-static/assets/{Dock.stories-CKD_TOGP.js → Dock.stories--hZxLVBG.js} +1 -1
  45. package/storybook-static/assets/{EditFAB.stories-DGVMpMOL.js → EditFAB.stories-ujZfcFCB.js} +1 -1
  46. package/storybook-static/assets/{EvilEye.stories-DNoB6FG0.js → EvilEye.stories-DbdhTF7k.js} +1 -1
  47. package/storybook-static/assets/{FadeContent.stories-C8ppDaXi.js → FadeContent.stories-CwCMoiJh.js} +1 -1
  48. package/storybook-static/assets/{FaultyTerminal.stories-Y8ME_yze.js → FaultyTerminal.stories-DIhmC0oV.js} +1 -1
  49. package/storybook-static/assets/{Fbo-Bkb1mqiu.js → Fbo-X5yWHBm9.js} +1 -1
  50. package/storybook-static/assets/{FloatingLines.stories-ZByyesqH.js → FloatingLines.stories-BVLUpCaG.js} +1 -1
  51. package/storybook-static/assets/{FlowingMenu.stories-CTWLtqhL.js → FlowingMenu.stories-Bz2Hm0ud.js} +1 -1
  52. package/storybook-static/assets/{FluidGlass.stories--PsLBBhn.js → FluidGlass.stories-iKAeEvkd.js} +1 -1
  53. package/storybook-static/assets/{Folder.stories-JNXotEML.js → Folder.stories-DsIub0M3.js} +1 -1
  54. package/storybook-static/assets/{FuzzyText.stories-o6wySpRq.js → FuzzyText.stories-oIYU7hRG.js} +1 -1
  55. package/storybook-static/assets/{Galaxy.stories-DTZantrp.js → Galaxy.stories-CjouLZaF.js} +1 -1
  56. package/storybook-static/assets/{GhostCursor.stories-DXF-m9YM.js → GhostCursor.stories-DCvUCCxa.js} +1 -1
  57. package/storybook-static/assets/{GlareHover.stories-Bb4_dcLV.js → GlareHover.stories-Djk9iCFM.js} +1 -1
  58. package/storybook-static/assets/{GlassSurface.stories-yZ4K521K.js → GlassSurface.stories-VZesotzp.js} +1 -1
  59. package/storybook-static/assets/{GlitchText.stories-B4Eqkyri.js → GlitchText.stories-sn_wSP7G.js} +1 -1
  60. package/storybook-static/assets/{GooeyNav.stories-CqUOrJR-.js → GooeyNav.stories-BFC9B_L0.js} +1 -1
  61. package/storybook-static/assets/{GradientBlinds.stories-DZ6bTCGp.js → GradientBlinds.stories-z-3FXHpB.js} +1 -1
  62. package/storybook-static/assets/{GradientText.stories-DyDht-TI.js → GradientText.stories-B9P29Fe5.js} +1 -1
  63. package/storybook-static/assets/{Grainient.stories-C1PtR90_.js → Grainient.stories-BxQe6t8A.js} +1 -1
  64. package/storybook-static/assets/{GridMotion.stories-BRbD6MZr.js → GridMotion.stories-B8Qfotg2.js} +1 -1
  65. package/storybook-static/assets/{HabitTimeOfDayChart.stories-D3gqeKpl.js → HabitTimeOfDayChart.stories-DqOwaExY.js} +1 -1
  66. package/storybook-static/assets/{ImageSlideshow.stories-BileVQYy.js → ImageSlideshow.stories-C7AUfiPQ.js} +1 -1
  67. package/storybook-static/assets/{Iridescence.stories-BIhFVHOn.js → Iridescence.stories-CmJNPKZp.js} +1 -1
  68. package/storybook-static/assets/{LaserFlow.stories-BSnwH5Mv.js → LaserFlow.stories-Cj36k-Br.js} +1 -1
  69. package/storybook-static/assets/{LetterGlitch.stories-CfGaNSmi.js → LetterGlitch.stories-3n0_SpPW.js} +1 -1
  70. package/storybook-static/assets/{LightPillar.stories-CNtpoF6N.js → LightPillar.stories-DLDV89_g.js} +1 -1
  71. package/storybook-static/assets/{LightRays.stories-DRKVWqXb.js → LightRays.stories-95rx1Jld.js} +1 -1
  72. package/storybook-static/assets/{Lightning.stories-DJOW6kK7.js → Lightning.stories-Ban00VPp.js} +1 -1
  73. package/storybook-static/assets/{LineWaves.stories-17nqJpH2.js → LineWaves.stories-tYVITNBI.js} +1 -1
  74. package/storybook-static/assets/{LiquidChrome.stories-CgmsyPLg.js → LiquidChrome.stories-CRXhS5wG.js} +1 -1
  75. package/storybook-static/assets/{LiquidEther.stories-CKvaP6zm.js → LiquidEther.stories-DFcjj4WN.js} +1 -1
  76. package/storybook-static/assets/{LoadingSpinner-LXRJXAO4.js → LoadingSpinner-BCSPbqAf.js} +1 -1
  77. package/storybook-static/assets/{LoadingSpinner.stories-C0tbgfV3.js → LoadingSpinner.stories-B-3mwj6v.js} +1 -1
  78. package/storybook-static/assets/{MagicRings.stories-qzHi78-J.js → MagicRings.stories-DxX9Y4fZ.js} +1 -1
  79. package/storybook-static/assets/{Magnet.stories-QWTKtI1e.js → Magnet.stories-BtP078KP.js} +1 -1
  80. package/storybook-static/assets/{MagnetLines.stories-BOaR4PZi.js → MagnetLines.stories-Boc9ZU8z.js} +1 -1
  81. package/storybook-static/assets/{Masonry.stories-DLz9dA8U.js → Masonry.stories-BZUo993q.js} +1 -1
  82. package/storybook-static/assets/{MetaBalls.stories-DcleGPI8.js → MetaBalls.stories-DXYO9QHZ.js} +1 -1
  83. package/storybook-static/assets/{MetallicPaint.stories-Dqit7nFj.js → MetallicPaint.stories-BSFAAtcE.js} +1 -1
  84. package/storybook-static/assets/{MoodChart.stories-1otFXWFu.js → MoodChart.stories-CnSQKAhp.js} +1 -1
  85. package/storybook-static/assets/{MotionConfigContext-HXxMOMJo.js → MotionConfigContext-cqdgvETc.js} +1 -1
  86. package/storybook-static/assets/{Navbar.stories-BPE4RMdc.js → Navbar.stories-TgnWvuhq.js} +1 -1
  87. package/storybook-static/assets/{Noise.stories-BktPkK5a.js → Noise.stories-COwmBW-s.js} +1 -1
  88. package/storybook-static/assets/{NumberStepper-D1to6bpi.js → NumberStepper-BLyqaAZY.js} +1 -1
  89. package/storybook-static/assets/{NumberStepper.stories-WnrisOam.js → NumberStepper.stories-BH--ymZD.js} +1 -1
  90. package/storybook-static/assets/{Orb.stories-BtZmx5Sy.js → Orb.stories-BouXCqts.js} +1 -1
  91. package/storybook-static/assets/{OrbitImages.stories-DSTSVc16.js → OrbitImages.stories-DwPbtwmh.js} +1 -1
  92. package/storybook-static/assets/{PieChart.stories-L1NRhd_j.js → PieChart.stories-ThEQ6o4T.js} +1 -1
  93. package/storybook-static/assets/{PixelBlast.stories-CfT09XYZ.js → PixelBlast.stories-CXLoQgLR.js} +1 -1
  94. package/storybook-static/assets/{PixelCard.stories-B2LTanjI.js → PixelCard.stories-CwsDhfSZ.js} +1 -1
  95. package/storybook-static/assets/{PixelSnow.stories-Kg0VE4Bc.js → PixelSnow.stories-B78--r-5.js} +1 -1
  96. package/storybook-static/assets/{PixelTransition.stories-CeanWE2-.js → PixelTransition.stories-CQRCg5Dh.js} +1 -1
  97. package/storybook-static/assets/{Plasma.stories-DujATB5Q.js → Plasma.stories-C4nsJ8m0.js} +1 -1
  98. package/storybook-static/assets/{Prism.stories-Dxke5JPk.js → Prism.stories-CYyW2MhJ.js} +1 -1
  99. package/storybook-static/assets/{PrismaticBurst.stories-xc5NSeNp.js → PrismaticBurst.stories-DPAVXNq-.js} +1 -1
  100. package/storybook-static/assets/{ProfileCard.stories-Cnb3pxki.js → ProfileCard.stories-GQnHhvBL.js} +1 -1
  101. package/storybook-static/assets/{QuantifiableHabitsChart.stories-BMxWoQO4.js → QuantifiableHabitsChart.stories-DQybQV3G.js} +1 -1
  102. package/storybook-static/assets/{Radar.stories-CrJcMxjq.js → Radar.stories-BiS3kVBK.js} +1 -1
  103. package/storybook-static/assets/{RecurrencePicker.stories-vkallG9D.js → RecurrencePicker.stories-AkU87_0U.js} +1 -1
  104. package/storybook-static/assets/{Ribbons.stories-LT5RgvPo.js → Ribbons.stories-OMZCYkS-.js} +1 -1
  105. package/storybook-static/assets/{RippleGrid.stories-Bwsl-Ueq.js → RippleGrid.stories-f-knJ_dC.js} +1 -1
  106. package/storybook-static/assets/{RotatingText.stories-CNDJn3v6.js → RotatingText.stories-Cs5g6eNr.js} +1 -1
  107. package/storybook-static/assets/{ScrollFloat.stories-B0qUJggd.js → ScrollFloat.stories-BkinOlWM.js} +1 -1
  108. package/storybook-static/assets/{ScrollReveal.stories-BBVRW0fh.js → ScrollReveal.stories-DAawYSvS.js} +1 -1
  109. package/storybook-static/assets/{ScrollVelocity.stories-DfKnOsGa.js → ScrollVelocity.stories-DDKvgeRt.js} +1 -1
  110. package/storybook-static/assets/{SearchBar.stories-Coshf_t6.js → SearchBar.stories-DontnpSK.js} +1 -1
  111. package/storybook-static/assets/{SearchableDropdown-CC1-QlKh.js → SearchableDropdown-DOvqXBhT.js} +1 -1
  112. package/storybook-static/assets/{SearchableDropdown.stories-DydVUjWf.js → SearchableDropdown.stories-Ct5wfF8Q.js} +1 -1
  113. package/storybook-static/assets/{SelectInput-BqVWIQmb.js → SelectInput-DTobf0zh.js} +1 -1
  114. package/storybook-static/assets/{SelectInput.stories-I0azAt7k.js → SelectInput.stories-D65m3xT6.js} +1 -1
  115. package/storybook-static/assets/{ShapeBlur.stories-BWBp8nEd.js → ShapeBlur.stories-C2QcmUF6.js} +1 -1
  116. package/storybook-static/assets/{ShapeGrid.stories-DJmnW7fN.js → ShapeGrid.stories-B4UpvWuC.js} +1 -1
  117. package/storybook-static/assets/{ShinyText.stories-7vHIqa03.js → ShinyText.stories-Dx9uB0Ge.js} +1 -1
  118. package/storybook-static/assets/{Silk.stories-CXiaINFD.js → Silk.stories-OqHp151A.js} +1 -1
  119. package/storybook-static/assets/{SleepChart.stories-BmAtNTJP.js → SleepChart.stories-EvXrufhV.js} +1 -1
  120. package/storybook-static/assets/{Slider-BmG0iCoC.js → Slider-B49_dS8L.js} +1 -1
  121. package/storybook-static/assets/{Slider.stories-DZciYzwU.js → Slider.stories-C-WUPilU.js} +1 -1
  122. package/storybook-static/assets/{SoftAurora.stories-BubrO6U4.js → SoftAurora.stories-D3FuYkw4.js} +1 -1
  123. package/storybook-static/assets/{SoundDemo.stories-CDXr3mFW.js → SoundDemo.stories-BgQu6ftq.js} +1 -1
  124. package/storybook-static/assets/{SplashCursor.stories-DgMm9xv3.js → SplashCursor.stories-DWJpmVM0.js} +1 -1
  125. package/storybook-static/assets/{SpotlightCard.stories-ChPn0jeh.js → SpotlightCard.stories-B59YbgvD.js} +1 -1
  126. package/storybook-static/assets/{Stack.stories-DzzqOEhy.js → Stack.stories-C0txqVGC.js} +1 -1
  127. package/storybook-static/assets/{StaggeredMenu.stories-BNHc0PM6.js → StaggeredMenu.stories-B-EDB5Rd.js} +1 -1
  128. package/storybook-static/assets/{StarBorder.stories-DBGelRYw.js → StarBorder.stories-WozhQkt_.js} +1 -1
  129. package/storybook-static/assets/{SunburstChart.stories-KPCIjiOk.js → SunburstChart.stories-B-FtFWzz.js} +1 -1
  130. package/storybook-static/assets/{Table.stories-Bz2NsPvR.js → Table.stories-CnuV2Phn.js} +1 -1
  131. package/storybook-static/assets/{Tabs.stories-DH8uIATQ.js → Tabs.stories-C6Ixt85v.js} +1 -1
  132. package/storybook-static/assets/{TargetCursor.stories-BUrQiofc.js → TargetCursor.stories-D05-aNwu.js} +1 -1
  133. package/storybook-static/assets/{TextArea-DVqzGhY3.js → TextArea-DtQ-6kae.js} +1 -1
  134. package/storybook-static/assets/{TextArea.stories-A0YRdcwk.js → TextArea.stories-DQa3wP_Z.js} +1 -1
  135. package/storybook-static/assets/{TextCursor.stories-B_UinRXa.js → TextCursor.stories-BJTUllxj.js} +1 -1
  136. package/storybook-static/assets/{TextInput-46C4j_hq.js → TextInput-ohzWFFuq.js} +1 -1
  137. package/storybook-static/assets/{TextInput.stories-C7ZC_8wE.js → TextInput.stories-CIFhZSxb.js} +1 -1
  138. package/storybook-static/assets/{TextPressure.stories-Wwlb-VgV.js → TextPressure.stories-BDbHdoj0.js} +1 -1
  139. package/storybook-static/assets/{TextType.stories-DYLMktJi.js → TextType.stories-Dpp0yM1F.js} +1 -1
  140. package/storybook-static/assets/{ThemeSwitcher.stories-8FTV9MJW.js → ThemeSwitcher.stories-Ch3eX-Q4.js} +1 -1
  141. package/storybook-static/assets/{Threads.stories-BDwauY1I.js → Threads.stories-BYlFBArL.js} +1 -1
  142. package/storybook-static/assets/{TimeInput.stories-Bk2lwEyd.js → TimeInput.stories-ChJb0EcK.js} +1 -1
  143. package/storybook-static/assets/{Toggle-BbWuVStR.js → Toggle-Er5JazC4.js} +1 -1
  144. package/storybook-static/assets/{Toggle.stories-Bb7-wtRn.js → Toggle.stories-ClF63HwM.js} +1 -1
  145. package/storybook-static/assets/{ToggleButton-BaLN5DsF.js → ToggleButton-BgyTdkGs.js} +1 -1
  146. package/storybook-static/assets/{ToggleButton.stories-Cdx8eTPI.js → ToggleButton.stories-D2YQjBPU.js} +1 -1
  147. package/storybook-static/assets/{TrueFocus.stories-B_pN3J3c.js → TrueFocus.stories-B4Qoh1Ek.js} +1 -1
  148. package/storybook-static/assets/{VariableProximity.stories-BTLVRXWD.js → VariableProximity.stories-DLzbqQ-q.js} +1 -1
  149. package/storybook-static/assets/{Waves.stories-_NtAqm6K.js → Waves.stories-OX3VExu5.js} +1 -1
  150. package/storybook-static/assets/{calendar-jGMMZsgE.js → calendar-3_ekvfk7.js} +1 -1
  151. package/storybook-static/assets/{chart-column-jT4jlZWv.js → chart-column-B99l8ykF.js} +1 -1
  152. package/storybook-static/assets/{check-D_NpTUYB.js → check-MGuZ-vQU.js} +1 -1
  153. package/storybook-static/assets/{chevron-down-C40D1TRM.js → chevron-down-dMiwJ2Fa.js} +1 -1
  154. package/storybook-static/assets/{chevron-right-pJjQoHt-.js → chevron-right-BGiouhAQ.js} +1 -1
  155. package/storybook-static/assets/client-AUYJ3-v0.js +1 -0
  156. package/storybook-static/assets/{createLucideIcon-DhNY7W9i.js → createLucideIcon-He700CuR.js} +1 -1
  157. package/storybook-static/assets/{download-DDadr76l.js → download-BKSOfxpe.js} +1 -1
  158. package/storybook-static/assets/{folder-Dt06LOrp.js → folder-LestSoCO.js} +1 -1
  159. package/storybook-static/assets/{iconBase-HFPlWF3A.js → iconBase-zJDHXTd9.js} +1 -1
  160. package/storybook-static/assets/{iframe-rPhsLpUF.js → iframe-D8qqeeGJ.js} +3 -3
  161. package/storybook-static/assets/{index-DVywRwbF.js → index-C-VnSuS_.js} +1 -1
  162. package/storybook-static/assets/{index-B9UM6a_o.js → index-CJyQ6SwC.js} +1 -1
  163. package/storybook-static/assets/{index-Ctb6PtgV.js → index-L49vE-ah.js} +1 -1
  164. package/storybook-static/assets/{proxy-uJ8evSzT.js → proxy-1W9qMPm5.js} +1 -1
  165. package/storybook-static/assets/{react-18-CYoR46z3.js → react-18-BVZJZnf4.js} +1 -1
  166. package/storybook-static/assets/{react-three-fiber.esm-A61ChP7H.js → react-three-fiber.esm-Ccm-0uhF.js} +1 -1
  167. package/storybook-static/assets/{search-CIAI1CyG.js → search-BgqlFsxE.js} +1 -1
  168. package/storybook-static/assets/{settings-en9EIxHx.js → settings-BXbuThqT.js} +1 -1
  169. package/storybook-static/assets/{sun-D_CSzOJ1.js → sun-DzhjLvFL.js} +1 -1
  170. package/storybook-static/assets/{trash-2-C2s-nRjQ.js → trash-2-SM79_8re.js} +1 -1
  171. package/storybook-static/assets/{use-animation-frame-B62vi9Ct.js → use-animation-frame-sEnyIjfp.js} +1 -1
  172. package/storybook-static/assets/{use-in-view-BHudJAGG.js → use-in-view-Z5TSuHio.js} +1 -1
  173. package/storybook-static/assets/{use-motion-value-jBEsDEvG.js → use-motion-value-DQT5SPdA.js} +1 -1
  174. package/storybook-static/assets/{use-spring-Bf02nu3H.js → use-spring-DwAy_p1Y.js} +1 -1
  175. package/storybook-static/assets/{use-transform-Cfp6qWZw.js → use-transform-C2Oyk60n.js} +1 -1
  176. package/storybook-static/assets/{useSound-CISJumm6.js → useSound-CUVgLyES.js} +1 -1
  177. package/storybook-static/assets/{users-Bm-CUW6N.js → users-CeDtcuCx.js} +1 -1
  178. package/storybook-static/assets/{x-Bb1g_3HM.js → x-BoXEIqKt.js} +1 -1
  179. package/storybook-static/iframe.html +1 -1
  180. package/storybook-static/project.json +1 -1
  181. package/storybook-static/assets/client-BAyDOFGI.js +0 -1
@@ -1,4 +1,4 @@
1
- import{r as l,j as V}from"./iframe-rPhsLpUF.js";import"./preload-helper-C1FmrZbK.js";const q={"pixel-canvas":"_pixel-canvas_wo94u_1","pixel-card":"_pixel-card_wo94u_7"};class J{constructor(t,u,p,x,i,y,n){this.width=t.width,this.height=t.height,this.ctx=u,this.x=p,this.y=x,this.color=i,this.speed=this.getRandomValue(.1,.9)*y,this.size=0,this.sizeStep=Math.random()*.4,this.minSize=.5,this.maxSizeInteger=2,this.maxSize=this.getRandomValue(this.minSize,this.maxSizeInteger),this.delay=n,this.counter=0,this.counterStep=Math.random()*4+(this.width+this.height)*.01,this.isIdle=!1,this.isReverse=!1,this.isShimmer=!1}getRandomValue(t,u){return Math.random()*(u-t)+t}draw(){const t=this.maxSizeInteger*.5-this.size*.5;this.ctx.fillStyle=this.color,this.ctx.fillRect(this.x+t,this.y+t,this.size,this.size)}appear(){if(this.isIdle=!1,this.counter<=this.delay){this.counter+=this.counterStep;return}this.size>=this.maxSize&&(this.isShimmer=!0),this.isShimmer?this.shimmer():this.size+=this.sizeStep,this.draw()}disappear(){if(this.isShimmer=!1,this.counter=0,this.size<=0){this.isIdle=!0;return}else this.size-=.1;this.draw()}shimmer(){this.size>=this.maxSize?this.isReverse=!0:this.size<=this.minSize&&(this.isReverse=!1),this.isReverse?this.size-=this.speed:this.size+=this.speed}}function K(m,t){const i=parseInt(m,10);return i<=0||t?0:i>=100?100*.001:i*.001}const T={default:{activeColor:null,gap:5,speed:35,colors:"#f8fafc,#f1f5f9,#cbd5e1",noFocus:!1},blue:{activeColor:"#e0f2fe",gap:10,speed:25,colors:"#e0f2fe,#7dd3fc,#0ea5e9",noFocus:!1},yellow:{activeColor:"#fef08a",gap:3,speed:20,colors:"#fef08a,#fde047,#eab308",noFocus:!1},pink:{activeColor:"#fecdd3",gap:6,speed:80,colors:"#fecdd3,#fda4af,#e11d48",noFocus:!0}};function O({variant:m="default",gap:t,speed:u,colors:p,noFocus:x,className:i="",children:y}){const n=l.useRef(null),s=l.useRef(null),I=l.useRef([]),h=l.useRef(null),F=l.useRef(performance.now()),M=l.useRef(window.matchMedia("(prefers-reduced-motion: reduce)").matches).current,g=T[m]||T.default,C=t??g.gap,A=u??g.speed,_=p??g.colors,v=x??g.noFocus,b=()=>{if(!n.current||!s.current)return;const e=n.current.getBoundingClientRect(),a=Math.floor(e.width),o=Math.floor(e.height),z=s.current.getContext("2d");s.current.width=a,s.current.height=o,s.current.style.width=`${a}px`,s.current.style.height=`${o}px`;const d=_.split(","),f=[];for(let c=0;c<a;c+=parseInt(C,10))for(let r=0;r<o;r+=parseInt(C,10)){const S=d[Math.floor(Math.random()*d.length)],E=c-a/2,N=r-o/2,G=Math.sqrt(E*E+N*N),L=M?0:G;f.push(new J(s.current,z,c,r,S,K(A,M),L))}I.current=f},P=e=>{var c;h.current=requestAnimationFrame(()=>P(e));const a=performance.now(),o=a-F.current,z=1e3/60;if(o<z)return;F.current=a-o%z;const d=(c=s.current)==null?void 0:c.getContext("2d");if(!d||!s.current)return;d.clearRect(0,0,s.current.width,s.current.height);let f=!0;for(let r=0;r<I.current.length;r++){const S=I.current[r];S[e](),S.isIdle||(f=!1)}f&&cancelAnimationFrame(h.current)},R=e=>{cancelAnimationFrame(h.current),h.current=requestAnimationFrame(()=>P(e))},D=()=>R("appear"),H=()=>R("disappear"),W=e=>{e.currentTarget.contains(e.relatedTarget)||R("appear")},k=e=>{e.currentTarget.contains(e.relatedTarget)||R("disappear")};return l.useEffect(()=>{b();const e=new ResizeObserver(()=>{b()});return n.current&&e.observe(n.current),()=>{e.disconnect(),cancelAnimationFrame(h.current)}},[C,A,_,v]),V.jsxs("div",{ref:n,className:`${q["pixel-card"]} ${i}`,onMouseEnter:D,onMouseLeave:H,onFocus:v?void 0:W,onBlur:v?void 0:k,tabIndex:v?-1:0,children:[V.jsx("canvas",{className:`${q["pixel-canvas"]}`,ref:s}),y]})}O.__docgenInfo={description:"",methods:[],displayName:"PixelCard",props:{variant:{defaultValue:{value:"'default'",computed:!1},required:!1},className:{defaultValue:{value:"''",computed:!1},required:!1}}};const X={title:"ReactBits/Components/PixelCard",component:O,parameters:{layout:"fullscreen"}},w={args:{variant:"default",children:"Hello World"}};var $,j,B;w.parameters={...w.parameters,docs:{...($=w.parameters)==null?void 0:$.docs,source:{originalSource:`{
1
+ import{r as l,j as V}from"./iframe-D8qqeeGJ.js";import"./preload-helper-C1FmrZbK.js";const q={"pixel-canvas":"_pixel-canvas_wo94u_1","pixel-card":"_pixel-card_wo94u_7"};class J{constructor(t,u,p,x,i,y,n){this.width=t.width,this.height=t.height,this.ctx=u,this.x=p,this.y=x,this.color=i,this.speed=this.getRandomValue(.1,.9)*y,this.size=0,this.sizeStep=Math.random()*.4,this.minSize=.5,this.maxSizeInteger=2,this.maxSize=this.getRandomValue(this.minSize,this.maxSizeInteger),this.delay=n,this.counter=0,this.counterStep=Math.random()*4+(this.width+this.height)*.01,this.isIdle=!1,this.isReverse=!1,this.isShimmer=!1}getRandomValue(t,u){return Math.random()*(u-t)+t}draw(){const t=this.maxSizeInteger*.5-this.size*.5;this.ctx.fillStyle=this.color,this.ctx.fillRect(this.x+t,this.y+t,this.size,this.size)}appear(){if(this.isIdle=!1,this.counter<=this.delay){this.counter+=this.counterStep;return}this.size>=this.maxSize&&(this.isShimmer=!0),this.isShimmer?this.shimmer():this.size+=this.sizeStep,this.draw()}disappear(){if(this.isShimmer=!1,this.counter=0,this.size<=0){this.isIdle=!0;return}else this.size-=.1;this.draw()}shimmer(){this.size>=this.maxSize?this.isReverse=!0:this.size<=this.minSize&&(this.isReverse=!1),this.isReverse?this.size-=this.speed:this.size+=this.speed}}function K(m,t){const i=parseInt(m,10);return i<=0||t?0:i>=100?100*.001:i*.001}const T={default:{activeColor:null,gap:5,speed:35,colors:"#f8fafc,#f1f5f9,#cbd5e1",noFocus:!1},blue:{activeColor:"#e0f2fe",gap:10,speed:25,colors:"#e0f2fe,#7dd3fc,#0ea5e9",noFocus:!1},yellow:{activeColor:"#fef08a",gap:3,speed:20,colors:"#fef08a,#fde047,#eab308",noFocus:!1},pink:{activeColor:"#fecdd3",gap:6,speed:80,colors:"#fecdd3,#fda4af,#e11d48",noFocus:!0}};function O({variant:m="default",gap:t,speed:u,colors:p,noFocus:x,className:i="",children:y}){const n=l.useRef(null),s=l.useRef(null),I=l.useRef([]),h=l.useRef(null),F=l.useRef(performance.now()),M=l.useRef(window.matchMedia("(prefers-reduced-motion: reduce)").matches).current,g=T[m]||T.default,C=t??g.gap,A=u??g.speed,_=p??g.colors,v=x??g.noFocus,b=()=>{if(!n.current||!s.current)return;const e=n.current.getBoundingClientRect(),a=Math.floor(e.width),o=Math.floor(e.height),z=s.current.getContext("2d");s.current.width=a,s.current.height=o,s.current.style.width=`${a}px`,s.current.style.height=`${o}px`;const d=_.split(","),f=[];for(let c=0;c<a;c+=parseInt(C,10))for(let r=0;r<o;r+=parseInt(C,10)){const S=d[Math.floor(Math.random()*d.length)],E=c-a/2,N=r-o/2,G=Math.sqrt(E*E+N*N),L=M?0:G;f.push(new J(s.current,z,c,r,S,K(A,M),L))}I.current=f},P=e=>{var c;h.current=requestAnimationFrame(()=>P(e));const a=performance.now(),o=a-F.current,z=1e3/60;if(o<z)return;F.current=a-o%z;const d=(c=s.current)==null?void 0:c.getContext("2d");if(!d||!s.current)return;d.clearRect(0,0,s.current.width,s.current.height);let f=!0;for(let r=0;r<I.current.length;r++){const S=I.current[r];S[e](),S.isIdle||(f=!1)}f&&cancelAnimationFrame(h.current)},R=e=>{cancelAnimationFrame(h.current),h.current=requestAnimationFrame(()=>P(e))},D=()=>R("appear"),H=()=>R("disappear"),W=e=>{e.currentTarget.contains(e.relatedTarget)||R("appear")},k=e=>{e.currentTarget.contains(e.relatedTarget)||R("disappear")};return l.useEffect(()=>{b();const e=new ResizeObserver(()=>{b()});return n.current&&e.observe(n.current),()=>{e.disconnect(),cancelAnimationFrame(h.current)}},[C,A,_,v]),V.jsxs("div",{ref:n,className:`${q["pixel-card"]} ${i}`,onMouseEnter:D,onMouseLeave:H,onFocus:v?void 0:W,onBlur:v?void 0:k,tabIndex:v?-1:0,children:[V.jsx("canvas",{className:`${q["pixel-canvas"]}`,ref:s}),y]})}O.__docgenInfo={description:"",methods:[],displayName:"PixelCard",props:{variant:{defaultValue:{value:"'default'",computed:!1},required:!1},className:{defaultValue:{value:"''",computed:!1},required:!1}}};const X={title:"ReactBits/Components/PixelCard",component:O,parameters:{layout:"fullscreen"}},w={args:{variant:"default",children:"Hello World"}};var $,j,B;w.parameters={...w.parameters,docs:{...($=w.parameters)==null?void 0:$.docs,source:{originalSource:`{
2
2
  args: {
3
3
  variant: 'default',
4
4
  children: 'Hello World'
@@ -1,4 +1,4 @@
1
- import{r as t,j as B}from"./iframe-rPhsLpUF.js";import{n as K,e as O,S as T,a as U,W as X,i as G,d as H,q as W,M as Y}from"./three.module--_vTUKhS.js";import"./preload-helper-C1FmrZbK.js";const J={"pixel-snow-container":"_pixel-snow-container_udm6i_1"},L=`
1
+ import{r as t,j as B}from"./iframe-D8qqeeGJ.js";import{n as K,e as O,S as T,a as U,W as X,i as G,d as H,q as W,M as Y}from"./three.module--_vTUKhS.js";import"./preload-helper-C1FmrZbK.js";const J={"pixel-snow-container":"_pixel-snow-container_udm6i_1"},L=`
2
2
  void main() {
3
3
  gl_Position = vec4(position, 1.0);
4
4
  }
@@ -1,4 +1,4 @@
1
- import{r,j as l}from"./iframe-rPhsLpUF.js";import{g as d}from"./index-C8pce-KX.js";import"./preload-helper-C1FmrZbK.js";const c={"pixelated-image-card":"_pixelated-image-card_12og9_1","pixelated-image-card__default":"_pixelated-image-card__default_12og9_12","pixelated-image-card__active":"_pixelated-image-card__active_12og9_13","pixelated-image-card__pixels":"_pixelated-image-card__pixels_12og9_14","pixelated-image-card__pixel":"_pixelated-image-card__pixel_12og9_14"};function E({firstContent:b,secondContent:F,gridSize:u=7,pixelColor:_="currentColor",animationStepDuration:m=.3,once:v=!1,aspectRatio:$="100%",className:q="",style:S={}}){const T=r.useRef(null),x=r.useRef(null),h=r.useRef(null),g=r.useRef(null),[i,I]=r.useState(!1),o="ontouchstart"in window||navigator.maxTouchPoints>0||window.matchMedia("(pointer: coarse)").matches;r.useEffect(()=>{const t=x.current;if(t){t.innerHTML="";for(let n=0;n<u;n++)for(let a=0;a<u;a++){const e=document.createElement("div");e.classList.add(c["pixelated-image-card__pixel"]),e.setAttribute("data-pixel",""),e.style.backgroundColor=_;const s=100/u;e.style.width=`${s}%`,e.style.height=`${s}%`,e.style.left=`${a*s}%`,e.style.top=`${n*s}%`,t.appendChild(e)}}},[u,_]);const f=t=>{I(t);const n=x.current,a=h.current;if(!n||!a)return;const e=n.querySelectorAll("[data-pixel]");if(!e.length)return;d.killTweensOf(e),g.current&&g.current.kill(),d.set(e,{display:"none"});const s=e.length,R=m/s;d.to(e,{display:"block",duration:0,stagger:{each:R,from:"random"}}),g.current=d.delayedCall(m,()=>{a.style.display=t?"block":"none",a.style.pointerEvents=t?"none":""}),d.to(e,{display:"none",duration:0,delay:m,stagger:{each:R,from:"random"}})},y=()=>{i||f(!0)},C=()=>{i&&!v&&f(!1)},V=()=>{i?i&&!v&&f(!1):f(!0)};return l.jsxs("div",{ref:T,className:`${c["pixelated-image-card"]} ${q}`,style:S,onMouseEnter:o?void 0:y,onMouseLeave:o?void 0:C,onClick:o?V:void 0,onFocus:o?void 0:y,onBlur:o?void 0:C,tabIndex:0,children:[l.jsx("div",{style:{paddingTop:$}}),l.jsx("div",{className:`${c["pixelated-image-card__default"]}`,"aria-hidden":i,children:b}),l.jsx("div",{className:`${c["pixelated-image-card__active"]}`,ref:h,"aria-hidden":!i,children:F}),l.jsx("div",{className:`${c["pixelated-image-card__pixels"]}`,ref:x})]})}E.__docgenInfo={description:"",methods:[],displayName:"PixelTransition",props:{gridSize:{defaultValue:{value:"7",computed:!1},required:!1},pixelColor:{defaultValue:{value:"'currentColor'",computed:!1},required:!1},animationStepDuration:{defaultValue:{value:"0.3",computed:!1},required:!1},once:{defaultValue:{value:"false",computed:!1},required:!1},aspectRatio:{defaultValue:{value:"'100%'",computed:!1},required:!1},className:{defaultValue:{value:"''",computed:!1},required:!1},style:{defaultValue:{value:"{}",computed:!1},required:!1}}};const A={title:"ReactBits/Animations/PixelTransition",component:E,parameters:{layout:"fullscreen"}},p={args:{firstContent:l.jsx("div",{style:{width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",background:"#1a1a2e",color:"#fff",fontSize:"2rem"},children:"Hover me"}),secondContent:l.jsx("div",{style:{width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",background:"#5227FF",color:"#fff",fontSize:"2rem"},children:"Revealed!"}),gridSize:7,pixelColor:"#5227FF",aspectRatio:"100%"}};var j,k,w;p.parameters={...p.parameters,docs:{...(j=p.parameters)==null?void 0:j.docs,source:{originalSource:`{
1
+ import{r,j as l}from"./iframe-D8qqeeGJ.js";import{g as d}from"./index-C8pce-KX.js";import"./preload-helper-C1FmrZbK.js";const c={"pixelated-image-card":"_pixelated-image-card_12og9_1","pixelated-image-card__default":"_pixelated-image-card__default_12og9_12","pixelated-image-card__active":"_pixelated-image-card__active_12og9_13","pixelated-image-card__pixels":"_pixelated-image-card__pixels_12og9_14","pixelated-image-card__pixel":"_pixelated-image-card__pixel_12og9_14"};function E({firstContent:b,secondContent:F,gridSize:u=7,pixelColor:_="currentColor",animationStepDuration:m=.3,once:v=!1,aspectRatio:$="100%",className:q="",style:S={}}){const T=r.useRef(null),x=r.useRef(null),h=r.useRef(null),g=r.useRef(null),[i,I]=r.useState(!1),o="ontouchstart"in window||navigator.maxTouchPoints>0||window.matchMedia("(pointer: coarse)").matches;r.useEffect(()=>{const t=x.current;if(t){t.innerHTML="";for(let n=0;n<u;n++)for(let a=0;a<u;a++){const e=document.createElement("div");e.classList.add(c["pixelated-image-card__pixel"]),e.setAttribute("data-pixel",""),e.style.backgroundColor=_;const s=100/u;e.style.width=`${s}%`,e.style.height=`${s}%`,e.style.left=`${a*s}%`,e.style.top=`${n*s}%`,t.appendChild(e)}}},[u,_]);const f=t=>{I(t);const n=x.current,a=h.current;if(!n||!a)return;const e=n.querySelectorAll("[data-pixel]");if(!e.length)return;d.killTweensOf(e),g.current&&g.current.kill(),d.set(e,{display:"none"});const s=e.length,R=m/s;d.to(e,{display:"block",duration:0,stagger:{each:R,from:"random"}}),g.current=d.delayedCall(m,()=>{a.style.display=t?"block":"none",a.style.pointerEvents=t?"none":""}),d.to(e,{display:"none",duration:0,delay:m,stagger:{each:R,from:"random"}})},y=()=>{i||f(!0)},C=()=>{i&&!v&&f(!1)},V=()=>{i?i&&!v&&f(!1):f(!0)};return l.jsxs("div",{ref:T,className:`${c["pixelated-image-card"]} ${q}`,style:S,onMouseEnter:o?void 0:y,onMouseLeave:o?void 0:C,onClick:o?V:void 0,onFocus:o?void 0:y,onBlur:o?void 0:C,tabIndex:0,children:[l.jsx("div",{style:{paddingTop:$}}),l.jsx("div",{className:`${c["pixelated-image-card__default"]}`,"aria-hidden":i,children:b}),l.jsx("div",{className:`${c["pixelated-image-card__active"]}`,ref:h,"aria-hidden":!i,children:F}),l.jsx("div",{className:`${c["pixelated-image-card__pixels"]}`,ref:x})]})}E.__docgenInfo={description:"",methods:[],displayName:"PixelTransition",props:{gridSize:{defaultValue:{value:"7",computed:!1},required:!1},pixelColor:{defaultValue:{value:"'currentColor'",computed:!1},required:!1},animationStepDuration:{defaultValue:{value:"0.3",computed:!1},required:!1},once:{defaultValue:{value:"false",computed:!1},required:!1},aspectRatio:{defaultValue:{value:"'100%'",computed:!1},required:!1},className:{defaultValue:{value:"''",computed:!1},required:!1},style:{defaultValue:{value:"{}",computed:!1},required:!1}}};const A={title:"ReactBits/Animations/PixelTransition",component:E,parameters:{layout:"fullscreen"}},p={args:{firstContent:l.jsx("div",{style:{width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",background:"#1a1a2e",color:"#fff",fontSize:"2rem"},children:"Hover me"}),secondContent:l.jsx("div",{style:{width:"100%",height:"100%",display:"flex",alignItems:"center",justifyContent:"center",background:"#5227FF",color:"#fff",fontSize:"2rem"},children:"Revealed!"}),gridSize:7,pixelColor:"#5227FF",aspectRatio:"100%"}};var j,k,w;p.parameters={...p.parameters,docs:{...(j=p.parameters)==null?void 0:j.docs,source:{originalSource:`{
2
2
  args: {
3
3
  firstContent: <div style={{
4
4
  width: '100%',
@@ -1,4 +1,4 @@
1
- import{r as y,j as U}from"./iframe-rPhsLpUF.js";import{R as E,P as Q,M as j}from"./Mesh-CwXV3WjE.js";import{T as k}from"./Triangle-64ffRKNB.js";import"./preload-helper-C1FmrZbK.js";const L={"plasma-container":"_plasma-container_4c6hx_1"},N=n=>{const o=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(n);return o?[parseInt(o[1],16)/255,parseInt(o[2],16)/255,parseInt(o[3],16)/255]:[1,.5,.2]},$=`#version 300 es
1
+ import{r as y,j as U}from"./iframe-D8qqeeGJ.js";import{R as E,P as Q,M as j}from"./Mesh-CwXV3WjE.js";import{T as k}from"./Triangle-64ffRKNB.js";import"./preload-helper-C1FmrZbK.js";const L={"plasma-container":"_plasma-container_4c6hx_1"},N=n=>{const o=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(n);return o?[parseInt(o[1],16)/255,parseInt(o[2],16)/255,parseInt(o[3],16)/255]:[1,.5,.2]},$=`#version 300 es
2
2
  precision highp float;
3
3
  in vec2 position;
4
4
  in vec2 uv;
@@ -1,4 +1,4 @@
1
- import{r as le,j as Ne}from"./iframe-rPhsLpUF.js";import{R as Ye,P as je,M as De}from"./Mesh-CwXV3WjE.js";import{T as Ge}from"./Triangle-64ffRKNB.js";import"./preload-helper-C1FmrZbK.js";const Xe={"prism-container":"_prism-container_sjqpx_1"},ce=({height:T=3.5,baseWidth:z=5.5,animationType:h="rotate",glow:W=1,offset:s={x:0,y:0},noise:U=.5,transparent:E=!0,scale:N=3.6,hueShift:Y=0,colorFrequency:j=1,hoverStrength:D=2,inertia:G=.05,bloom:X=1,suspendWhenOffscreen:P=!1,timeScale:Z=.5})=>{const k=le.useRef(null);return le.useEffect(()=>{const r=k.current;if(!r)return;const b=Math.max(.001,T),H=Math.max(.001,z)*.5,fe=Math.max(0,W),Q=Math.max(0,U),me=(s==null?void 0:s.x)??0,de=(s==null?void 0:s.y)??0,ve=E?1.5:1,I=Math.max(.001,N),he=Y||0,pe=Math.max(0,j||1),xe=Math.max(0,X||1),we=1,Me=1,Se=1,R=Math.max(0,Z||1),$=Math.max(0,D||1),J=Math.max(0,Math.min(1,G||.12)),_=Math.min(2,window.devicePixelRatio||1),A=new Ye({dpr:_,alpha:E,antialias:!1}),a=A.gl;a.disable(a.DEPTH_TEST),a.disable(a.CULL_FACE),a.disable(a.BLEND),Object.assign(a.canvas.style,{position:"absolute",inset:"0",width:"100%",height:"100%",display:"block"}),r.appendChild(a.canvas);const ge=`
1
+ import{r as le,j as Ne}from"./iframe-D8qqeeGJ.js";import{R as Ye,P as je,M as De}from"./Mesh-CwXV3WjE.js";import{T as Ge}from"./Triangle-64ffRKNB.js";import"./preload-helper-C1FmrZbK.js";const Xe={"prism-container":"_prism-container_sjqpx_1"},ce=({height:T=3.5,baseWidth:z=5.5,animationType:h="rotate",glow:W=1,offset:s={x:0,y:0},noise:U=.5,transparent:E=!0,scale:N=3.6,hueShift:Y=0,colorFrequency:j=1,hoverStrength:D=2,inertia:G=.05,bloom:X=1,suspendWhenOffscreen:P=!1,timeScale:Z=.5})=>{const k=le.useRef(null);return le.useEffect(()=>{const r=k.current;if(!r)return;const b=Math.max(.001,T),H=Math.max(.001,z)*.5,fe=Math.max(0,W),Q=Math.max(0,U),me=(s==null?void 0:s.x)??0,de=(s==null?void 0:s.y)??0,ve=E?1.5:1,I=Math.max(.001,N),he=Y||0,pe=Math.max(0,j||1),xe=Math.max(0,X||1),we=1,Me=1,Se=1,R=Math.max(0,Z||1),$=Math.max(0,D||1),J=Math.max(0,Math.min(1,G||.12)),_=Math.min(2,window.devicePixelRatio||1),A=new Ye({dpr:_,alpha:E,antialias:!1}),a=A.gl;a.disable(a.DEPTH_TEST),a.disable(a.CULL_FACE),a.disable(a.BLEND),Object.assign(a.canvas.style,{position:"absolute",inset:"0",width:"100%",height:"100%",display:"block"}),r.appendChild(a.canvas);const ge=`
2
2
  attribute vec2 position;
3
3
  void main() {
4
4
  gl_Position = vec4(position, 0.0, 1.0);
@@ -1,4 +1,4 @@
1
- import{r as n,j as te}from"./iframe-rPhsLpUF.js";import{R as re,P as ae,M as ne}from"./Mesh-CwXV3WjE.js";import{T as oe}from"./Texture-BkQWYNP2.js";import{T as se}from"./Triangle-64ffRKNB.js";import"./preload-helper-C1FmrZbK.js";const ue={"prismatic-burst-container":"_prismatic-burst-container_u2n5x_1"},ce=`#version 300 es
1
+ import{r as n,j as te}from"./iframe-D8qqeeGJ.js";import{R as re,P as ae,M as ne}from"./Mesh-CwXV3WjE.js";import{T as oe}from"./Texture-BkQWYNP2.js";import{T as se}from"./Triangle-64ffRKNB.js";import"./preload-helper-C1FmrZbK.js";const ue={"prismatic-burst-container":"_prismatic-burst-container_u2n5x_1"},ce=`#version 300 es
2
2
  in vec2 position;
3
3
  in vec2 uv;
4
4
  out vec2 vUv;
@@ -1,4 +1,4 @@
1
- import{R as ve,r as o,j as r}from"./iframe-rPhsLpUF.js";import"./preload-helper-C1FmrZbK.js";const he="_active_uxwt3_56",_e="_entering_uxwt3_84",xe="_avatar_uxwt3_252",n={"pc-behind":"_pc-behind_uxwt3_40",active:he,"pc-card":"_pc-card_uxwt3_33","pc-card-shell":"_pc-card-shell_uxwt3_84",entering:_e,"pc-inside":"_pc-inside_uxwt3_100","pc-shine":"_pc-shine_uxwt3_108","pc-glare":"_pc-glare_uxwt3_232","pc-avatar-content":"_pc-avatar-content_uxwt3_245",avatar:xe,"pc-user-info":"_pc-user-info_uxwt3_274","pc-user-details":"_pc-user-details_uxwt3_293","pc-mini-avatar":"_pc-mini-avatar_uxwt3_299","pc-user-text":"_pc-user-text_uxwt3_315","pc-handle":"_pc-handle_uxwt3_322","pc-status":"_pc-status_uxwt3_329","pc-contact-btn":"_pc-contact-btn_uxwt3_335","pc-content":"_pc-content_uxwt3_353","pc-details":"_pc-details_uxwt3_367"},ge="linear-gradient(145deg,#60496e8c 0%,#71C4FF44 100%)",L={INITIAL_DURATION:1200,INITIAL_X_OFFSET:70,INITIAL_Y_OFFSET:60,DEVICE_BETA_OFFSET:20,ENTER_TRANSITION_MS:180},$=(p,d=0,v=100)=>Math.min(Math.max(p,d),v),C=(p,d=3)=>parseFloat(p.toFixed(d)),z=(p,d,v,x,O)=>C(x+(O-x)*(p-d)/(v-d)),Z=({avatarUrl:p="<Placeholder for avatar URL>",iconUrl:d="<Placeholder for icon URL>",grainUrl:v="<Placeholder for grain URL>",innerGradient:x,behindGlowEnabled:O=!0,behindGlowColor:S,behindGlowSize:U,className:ee="",enableTilt:A=!0,enableMobileTilt:V=!1,mobileTiltSensitivity:q=5,miniAvatarUrl:te,name:y="Javi A. Torres",title:ne="Software Engineer",handle:ae="javicodes",status:re="Online",contactText:se="Contact",showUserInfo:ce=!0,onContactClick:F})=>{const M=o.useRef(null),m=o.useRef(null),g=o.useRef(null),h=o.useRef(null),s=o.useMemo(()=>{if(!A)return null;let e=null,t=!1,a=0,c=0,i=0,u=0,f=0;const E=.14,T=.6;let j=0;const H=(l,_)=>{const w=m.current,I=M.current;if(!w||!I)return;const J=w.clientWidth||1,oe=w.clientHeight||1,N=$(100/J*l),b=$(100/oe*_),ue=N-50,de=b-50,pe={"--pointer-x":`${N}%`,"--pointer-y":`${b}%`,"--background-x":`${z(N,0,100,35,65)}%`,"--background-y":`${z(b,0,100,35,65)}%`,"--pointer-from-center":`${$(Math.hypot(b-50,N-50)/50,0,1)}`,"--pointer-from-top":`${b/100}`,"--pointer-from-left":`${N/100}`,"--rotate-x":`${C(-(ue/5))}deg`,"--rotate-y":`${C(de/4)}deg`};for(const[fe,me]of Object.entries(pe))I.style.setProperty(fe,me)},W=l=>{if(!t)return;a===0&&(a=l);const _=(l-a)/1e3;a=l;const w=l<j?T:E,I=1-Math.exp(-_/w);c+=(u-c)*I,i+=(f-i)*I,H(c,i),Math.abs(u-c)>.05||Math.abs(f-i)>.05||document.hasFocus()?e=requestAnimationFrame(W):(t=!1,a=0,e&&(cancelAnimationFrame(e),e=null))},B=()=>{t||(t=!0,a=0,e=requestAnimationFrame(W))};return{setImmediate(l,_){c=l,i=_,H(c,i)},setTarget(l,_){u=l,f=_,B()},toCenter(){const l=m.current;l&&this.setTarget(l.clientWidth/2,l.clientHeight/2)},beginInitial(l){j=performance.now()+l,B()},getCurrent(){return{x:c,y:i,tx:u,ty:f}},cancel(){e&&cancelAnimationFrame(e),e=null,t=!1,a=0}}},[A]),P=(e,t)=>{const a=t.getBoundingClientRect();return{x:e.clientX-a.left,y:e.clientY-a.top}},D=o.useCallback(e=>{const t=m.current;if(!t||!s)return;const{x:a,y:c}=P(e,t);s.setTarget(a,c)},[s]),k=o.useCallback(e=>{const t=m.current;if(!t||!s)return;t.classList.add(n.active),t.classList.add(n.entering),g.current&&window.clearTimeout(g.current),g.current=window.setTimeout(()=>{t.classList.remove(n.entering)},L.ENTER_TRANSITION_MS);const{x:a,y:c}=P(e,t);s.setTarget(a,c)},[s]),X=o.useCallback(()=>{const e=m.current;if(!e||!s)return;s.toCenter();const t=()=>{const{x:a,y:c,tx:i,ty:u}=s.getCurrent();Math.hypot(i-a,u-c)<.6?(e.classList.remove(n.active),h.current=null):h.current=requestAnimationFrame(t)};h.current&&cancelAnimationFrame(h.current),h.current=requestAnimationFrame(t)},[s]),Y=o.useCallback(e=>{const t=m.current;if(!t||!s)return;const{beta:a,gamma:c}=e;if(a==null||c==null)return;const i=t.clientWidth/2,u=t.clientHeight/2,f=$(i+c*q,0,t.clientWidth),E=$(u+(a-L.DEVICE_BETA_OFFSET)*q,0,t.clientHeight);s.setTarget(f,E)},[s,q]);o.useEffect(()=>{if(!A||!s)return;const e=m.current;if(!e)return;const t=D,a=k,c=X,i=Y;e.addEventListener("pointerenter",a),e.addEventListener("pointermove",t),e.addEventListener("pointerleave",c);const u=()=>{if(!V||location.protocol!=="https:")return;const T=window.DeviceMotionEvent;T&&typeof T.requestPermission=="function"?T.requestPermission().then(j=>{j==="granted"&&window.addEventListener("deviceorientation",i)}).catch(console.error):window.addEventListener("deviceorientation",i)};e.addEventListener("click",u);const f=(e.clientWidth||0)-L.INITIAL_X_OFFSET,E=L.INITIAL_Y_OFFSET;return s.setImmediate(f,E),s.toCenter(),s.beginInitial(L.INITIAL_DURATION),()=>{e.removeEventListener("pointerenter",a),e.removeEventListener("pointermove",t),e.removeEventListener("pointerleave",c),e.removeEventListener("click",u),window.removeEventListener("deviceorientation",i),g.current&&window.clearTimeout(g.current),h.current&&cancelAnimationFrame(h.current),s.cancel(),e.classList.remove(n.entering)}},[A,V,s,D,k,X,Y]);const le=o.useMemo(()=>({"--icon":d?`url(${d})`:"none","--grain":v?`url(${v})`:"none","--inner-gradient":x??ge,"--behind-glow-color":S??"rgba(125, 190, 255, 0.67)","--behind-glow-size":U??"50%"}),[d,v,x,S,U]),ie=o.useCallback(()=>{F==null||F()},[F]);return r.jsxs("div",{ref:M,className:`pc-card-wrapper ${ee}`.trim(),style:le,children:[O&&r.jsx("div",{className:`${n["pc-behind"]}`}),r.jsx("div",{ref:m,className:`${n["pc-card-shell"]}`,children:r.jsx("section",{className:`${n["pc-card"]}`,children:r.jsxs("div",{className:`${n["pc-inside"]}`,children:[r.jsx("div",{className:`${n["pc-shine"]}`}),r.jsx("div",{className:`${n["pc-glare"]}`}),r.jsxs("div",{className:`${n["pc-content"]} ${n["pc-avatar-content"]}`,children:[r.jsx("img",{className:`${n.avatar}`,src:p,alt:`${y||"User"} avatar`,loading:"lazy",onError:e=>{const t=e.target;t.style.display="none"}}),ce&&r.jsxs("div",{className:`${n["pc-user-info"]}`,children:[r.jsxs("div",{className:`${n["pc-user-details"]}`,children:[r.jsx("div",{className:`${n["pc-mini-avatar"]}`,children:r.jsx("img",{src:te||p,alt:`${y||"User"} mini avatar`,loading:"lazy",onError:e=>{const t=e.target;t.style.opacity="0.5",t.src=p}})}),r.jsxs("div",{className:`${n["pc-user-text"]}`,children:[r.jsxs("div",{className:`${n["pc-handle"]}`,children:["@",ae]}),r.jsx("div",{className:`${n["pc-status"]}`,children:re})]})]}),r.jsx("button",{className:`${n["pc-contact-btn"]}`,onClick:ie,style:{pointerEvents:"auto"},type:"button","aria-label":`Contact ${y||"user"}`,children:se})]})]}),r.jsx("div",{className:`${n["pc-content"]}`,children:r.jsxs("div",{className:`${n["pc-details"]}`,children:[r.jsx("h3",{children:y}),r.jsx("p",{children:ne})]})})]})})})]})},Ee=ve.memo(Z);Z.__docgenInfo={description:"",methods:[],displayName:"ProfileCardComponent",props:{avatarUrl:{defaultValue:{value:"'<Placeholder for avatar URL>'",computed:!1},required:!1},iconUrl:{defaultValue:{value:"'<Placeholder for icon URL>'",computed:!1},required:!1},grainUrl:{defaultValue:{value:"'<Placeholder for grain URL>'",computed:!1},required:!1},behindGlowEnabled:{defaultValue:{value:"true",computed:!1},required:!1},className:{defaultValue:{value:"''",computed:!1},required:!1},enableTilt:{defaultValue:{value:"true",computed:!1},required:!1},enableMobileTilt:{defaultValue:{value:"false",computed:!1},required:!1},mobileTiltSensitivity:{defaultValue:{value:"5",computed:!1},required:!1},name:{defaultValue:{value:"'Javi A. Torres'",computed:!1},required:!1},title:{defaultValue:{value:"'Software Engineer'",computed:!1},required:!1},handle:{defaultValue:{value:"'javicodes'",computed:!1},required:!1},status:{defaultValue:{value:"'Online'",computed:!1},required:!1},contactText:{defaultValue:{value:"'Contact'",computed:!1},required:!1},showUserInfo:{defaultValue:{value:"true",computed:!1},required:!1}}};const Ie={title:"ReactBits/Components/ProfileCard",component:Ee,parameters:{layout:"fullscreen"}},R={args:{avatarUrl:"https://i.pravatar.cc/300?img=12",behindGlowEnabled:!0,enableTilt:!0,enableMobileTilt:!1,mobileTiltSensitivity:5,name:"Javi A. Torres",title:"Software Engineer",handle:"javicodes",status:"Online",contactText:"Contact",showUserInfo:!0}};var G,K,Q;R.parameters={...R.parameters,docs:{...(G=R.parameters)==null?void 0:G.docs,source:{originalSource:`{
1
+ import{R as ve,r as o,j as r}from"./iframe-D8qqeeGJ.js";import"./preload-helper-C1FmrZbK.js";const he="_active_uxwt3_56",_e="_entering_uxwt3_84",xe="_avatar_uxwt3_252",n={"pc-behind":"_pc-behind_uxwt3_40",active:he,"pc-card":"_pc-card_uxwt3_33","pc-card-shell":"_pc-card-shell_uxwt3_84",entering:_e,"pc-inside":"_pc-inside_uxwt3_100","pc-shine":"_pc-shine_uxwt3_108","pc-glare":"_pc-glare_uxwt3_232","pc-avatar-content":"_pc-avatar-content_uxwt3_245",avatar:xe,"pc-user-info":"_pc-user-info_uxwt3_274","pc-user-details":"_pc-user-details_uxwt3_293","pc-mini-avatar":"_pc-mini-avatar_uxwt3_299","pc-user-text":"_pc-user-text_uxwt3_315","pc-handle":"_pc-handle_uxwt3_322","pc-status":"_pc-status_uxwt3_329","pc-contact-btn":"_pc-contact-btn_uxwt3_335","pc-content":"_pc-content_uxwt3_353","pc-details":"_pc-details_uxwt3_367"},ge="linear-gradient(145deg,#60496e8c 0%,#71C4FF44 100%)",L={INITIAL_DURATION:1200,INITIAL_X_OFFSET:70,INITIAL_Y_OFFSET:60,DEVICE_BETA_OFFSET:20,ENTER_TRANSITION_MS:180},$=(p,d=0,v=100)=>Math.min(Math.max(p,d),v),C=(p,d=3)=>parseFloat(p.toFixed(d)),z=(p,d,v,x,O)=>C(x+(O-x)*(p-d)/(v-d)),Z=({avatarUrl:p="<Placeholder for avatar URL>",iconUrl:d="<Placeholder for icon URL>",grainUrl:v="<Placeholder for grain URL>",innerGradient:x,behindGlowEnabled:O=!0,behindGlowColor:S,behindGlowSize:U,className:ee="",enableTilt:A=!0,enableMobileTilt:V=!1,mobileTiltSensitivity:q=5,miniAvatarUrl:te,name:y="Javi A. Torres",title:ne="Software Engineer",handle:ae="javicodes",status:re="Online",contactText:se="Contact",showUserInfo:ce=!0,onContactClick:F})=>{const M=o.useRef(null),m=o.useRef(null),g=o.useRef(null),h=o.useRef(null),s=o.useMemo(()=>{if(!A)return null;let e=null,t=!1,a=0,c=0,i=0,u=0,f=0;const E=.14,T=.6;let j=0;const H=(l,_)=>{const w=m.current,I=M.current;if(!w||!I)return;const J=w.clientWidth||1,oe=w.clientHeight||1,N=$(100/J*l),b=$(100/oe*_),ue=N-50,de=b-50,pe={"--pointer-x":`${N}%`,"--pointer-y":`${b}%`,"--background-x":`${z(N,0,100,35,65)}%`,"--background-y":`${z(b,0,100,35,65)}%`,"--pointer-from-center":`${$(Math.hypot(b-50,N-50)/50,0,1)}`,"--pointer-from-top":`${b/100}`,"--pointer-from-left":`${N/100}`,"--rotate-x":`${C(-(ue/5))}deg`,"--rotate-y":`${C(de/4)}deg`};for(const[fe,me]of Object.entries(pe))I.style.setProperty(fe,me)},W=l=>{if(!t)return;a===0&&(a=l);const _=(l-a)/1e3;a=l;const w=l<j?T:E,I=1-Math.exp(-_/w);c+=(u-c)*I,i+=(f-i)*I,H(c,i),Math.abs(u-c)>.05||Math.abs(f-i)>.05||document.hasFocus()?e=requestAnimationFrame(W):(t=!1,a=0,e&&(cancelAnimationFrame(e),e=null))},B=()=>{t||(t=!0,a=0,e=requestAnimationFrame(W))};return{setImmediate(l,_){c=l,i=_,H(c,i)},setTarget(l,_){u=l,f=_,B()},toCenter(){const l=m.current;l&&this.setTarget(l.clientWidth/2,l.clientHeight/2)},beginInitial(l){j=performance.now()+l,B()},getCurrent(){return{x:c,y:i,tx:u,ty:f}},cancel(){e&&cancelAnimationFrame(e),e=null,t=!1,a=0}}},[A]),P=(e,t)=>{const a=t.getBoundingClientRect();return{x:e.clientX-a.left,y:e.clientY-a.top}},D=o.useCallback(e=>{const t=m.current;if(!t||!s)return;const{x:a,y:c}=P(e,t);s.setTarget(a,c)},[s]),k=o.useCallback(e=>{const t=m.current;if(!t||!s)return;t.classList.add(n.active),t.classList.add(n.entering),g.current&&window.clearTimeout(g.current),g.current=window.setTimeout(()=>{t.classList.remove(n.entering)},L.ENTER_TRANSITION_MS);const{x:a,y:c}=P(e,t);s.setTarget(a,c)},[s]),X=o.useCallback(()=>{const e=m.current;if(!e||!s)return;s.toCenter();const t=()=>{const{x:a,y:c,tx:i,ty:u}=s.getCurrent();Math.hypot(i-a,u-c)<.6?(e.classList.remove(n.active),h.current=null):h.current=requestAnimationFrame(t)};h.current&&cancelAnimationFrame(h.current),h.current=requestAnimationFrame(t)},[s]),Y=o.useCallback(e=>{const t=m.current;if(!t||!s)return;const{beta:a,gamma:c}=e;if(a==null||c==null)return;const i=t.clientWidth/2,u=t.clientHeight/2,f=$(i+c*q,0,t.clientWidth),E=$(u+(a-L.DEVICE_BETA_OFFSET)*q,0,t.clientHeight);s.setTarget(f,E)},[s,q]);o.useEffect(()=>{if(!A||!s)return;const e=m.current;if(!e)return;const t=D,a=k,c=X,i=Y;e.addEventListener("pointerenter",a),e.addEventListener("pointermove",t),e.addEventListener("pointerleave",c);const u=()=>{if(!V||location.protocol!=="https:")return;const T=window.DeviceMotionEvent;T&&typeof T.requestPermission=="function"?T.requestPermission().then(j=>{j==="granted"&&window.addEventListener("deviceorientation",i)}).catch(console.error):window.addEventListener("deviceorientation",i)};e.addEventListener("click",u);const f=(e.clientWidth||0)-L.INITIAL_X_OFFSET,E=L.INITIAL_Y_OFFSET;return s.setImmediate(f,E),s.toCenter(),s.beginInitial(L.INITIAL_DURATION),()=>{e.removeEventListener("pointerenter",a),e.removeEventListener("pointermove",t),e.removeEventListener("pointerleave",c),e.removeEventListener("click",u),window.removeEventListener("deviceorientation",i),g.current&&window.clearTimeout(g.current),h.current&&cancelAnimationFrame(h.current),s.cancel(),e.classList.remove(n.entering)}},[A,V,s,D,k,X,Y]);const le=o.useMemo(()=>({"--icon":d?`url(${d})`:"none","--grain":v?`url(${v})`:"none","--inner-gradient":x??ge,"--behind-glow-color":S??"rgba(125, 190, 255, 0.67)","--behind-glow-size":U??"50%"}),[d,v,x,S,U]),ie=o.useCallback(()=>{F==null||F()},[F]);return r.jsxs("div",{ref:M,className:`pc-card-wrapper ${ee}`.trim(),style:le,children:[O&&r.jsx("div",{className:`${n["pc-behind"]}`}),r.jsx("div",{ref:m,className:`${n["pc-card-shell"]}`,children:r.jsx("section",{className:`${n["pc-card"]}`,children:r.jsxs("div",{className:`${n["pc-inside"]}`,children:[r.jsx("div",{className:`${n["pc-shine"]}`}),r.jsx("div",{className:`${n["pc-glare"]}`}),r.jsxs("div",{className:`${n["pc-content"]} ${n["pc-avatar-content"]}`,children:[r.jsx("img",{className:`${n.avatar}`,src:p,alt:`${y||"User"} avatar`,loading:"lazy",onError:e=>{const t=e.target;t.style.display="none"}}),ce&&r.jsxs("div",{className:`${n["pc-user-info"]}`,children:[r.jsxs("div",{className:`${n["pc-user-details"]}`,children:[r.jsx("div",{className:`${n["pc-mini-avatar"]}`,children:r.jsx("img",{src:te||p,alt:`${y||"User"} mini avatar`,loading:"lazy",onError:e=>{const t=e.target;t.style.opacity="0.5",t.src=p}})}),r.jsxs("div",{className:`${n["pc-user-text"]}`,children:[r.jsxs("div",{className:`${n["pc-handle"]}`,children:["@",ae]}),r.jsx("div",{className:`${n["pc-status"]}`,children:re})]})]}),r.jsx("button",{className:`${n["pc-contact-btn"]}`,onClick:ie,style:{pointerEvents:"auto"},type:"button","aria-label":`Contact ${y||"user"}`,children:se})]})]}),r.jsx("div",{className:`${n["pc-content"]}`,children:r.jsxs("div",{className:`${n["pc-details"]}`,children:[r.jsx("h3",{children:y}),r.jsx("p",{children:ne})]})})]})})})]})},Ee=ve.memo(Z);Z.__docgenInfo={description:"",methods:[],displayName:"ProfileCardComponent",props:{avatarUrl:{defaultValue:{value:"'<Placeholder for avatar URL>'",computed:!1},required:!1},iconUrl:{defaultValue:{value:"'<Placeholder for icon URL>'",computed:!1},required:!1},grainUrl:{defaultValue:{value:"'<Placeholder for grain URL>'",computed:!1},required:!1},behindGlowEnabled:{defaultValue:{value:"true",computed:!1},required:!1},className:{defaultValue:{value:"''",computed:!1},required:!1},enableTilt:{defaultValue:{value:"true",computed:!1},required:!1},enableMobileTilt:{defaultValue:{value:"false",computed:!1},required:!1},mobileTiltSensitivity:{defaultValue:{value:"5",computed:!1},required:!1},name:{defaultValue:{value:"'Javi A. Torres'",computed:!1},required:!1},title:{defaultValue:{value:"'Software Engineer'",computed:!1},required:!1},handle:{defaultValue:{value:"'javicodes'",computed:!1},required:!1},status:{defaultValue:{value:"'Online'",computed:!1},required:!1},contactText:{defaultValue:{value:"'Contact'",computed:!1},required:!1},showUserInfo:{defaultValue:{value:"true",computed:!1},required:!1}}};const Ie={title:"ReactBits/Components/ProfileCard",component:Ee,parameters:{layout:"fullscreen"}},R={args:{avatarUrl:"https://i.pravatar.cc/300?img=12",behindGlowEnabled:!0,enableTilt:!0,enableMobileTilt:!1,mobileTiltSensitivity:5,name:"Javi A. Torres",title:"Software Engineer",handle:"javicodes",status:"Online",contactText:"Contact",showUserInfo:!0}};var G,K,Q;R.parameters={...R.parameters,docs:{...(G=R.parameters)==null?void 0:G.docs,source:{originalSource:`{
2
2
  args: {
3
3
  avatarUrl: 'https://i.pravatar.cc/300?img=12',
4
4
  behindGlowEnabled: true,
@@ -1,4 +1,4 @@
1
- import{r as d,j as n}from"./iframe-rPhsLpUF.js";import{s as Y}from"./transform-QOf3tDlt.js";import{t as be,e as ke,l as Se,m as Te}from"./monotone-DouxdRGd.js";import{l as je}from"./linear-DhrdWH9x.js";import{C as De}from"./chart-column-jT4jlZWv.js";import{c as H}from"./createLucideIcon-DhNY7W9i.js";import{C as Ce}from"./calendar-jGMMZsgE.js";import{t as Q}from"./defaultLocale-DJ2q5QjE.js";import{a as Ee,b as qe}from"./axis-D3QohQNI.js";import"./preload-helper-C1FmrZbK.js";import"./array-BKyUJesY.js";import"./path-CbwjOpE9.js";/**
1
+ import{r as d,j as n}from"./iframe-D8qqeeGJ.js";import{s as Y}from"./transform-QOf3tDlt.js";import{t as be,e as ke,l as Se,m as Te}from"./monotone-DouxdRGd.js";import{l as je}from"./linear-DhrdWH9x.js";import{C as De}from"./chart-column-B99l8ykF.js";import{c as H}from"./createLucideIcon-He700CuR.js";import{C as Ce}from"./calendar-3_ekvfk7.js";import{t as Q}from"./defaultLocale-DJ2q5QjE.js";import{a as Ee,b as qe}from"./axis-D3QohQNI.js";import"./preload-helper-C1FmrZbK.js";import"./array-BKyUJesY.js";import"./path-CbwjOpE9.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 y,j as W}from"./iframe-rPhsLpUF.js";import{R as D,P as G,M as U}from"./Mesh-CwXV3WjE.js";import{T as z}from"./Triangle-64ffRKNB.js";import"./preload-helper-C1FmrZbK.js";const j={"radar-container":"_radar-container_51ksp_1"};function L(n){const o=n.replace("#","");return[parseInt(o.slice(0,2),16)/255,parseInt(o.slice(2,4),16)/255,parseInt(o.slice(4,6),16)/255]}const N=`
1
+ import{r as y,j as W}from"./iframe-D8qqeeGJ.js";import{R as D,P as G,M as U}from"./Mesh-CwXV3WjE.js";import{T as z}from"./Triangle-64ffRKNB.js";import"./preload-helper-C1FmrZbK.js";const j={"radar-container":"_radar-container_51ksp_1"};function L(n){const o=n.replace("#","");return[parseInt(o.slice(0,2),16)/255,parseInt(o.slice(2,4),16)/255,parseInt(o.slice(4,6),16)/255]}const N=`
2
2
  attribute vec2 uv;
3
3
  attribute vec2 position;
4
4
  varying vec2 vUv;
@@ -1,4 +1,4 @@
1
- import{r as B,j as b}from"./iframe-rPhsLpUF.js";import{C as Tt}from"./Checkbox-xrie0yDX.js";import{N as fe}from"./NumberStepper-D1to6bpi.js";import{S as Le}from"./SelectInput-BqVWIQmb.js";import"./preload-helper-C1FmrZbK.js";import"./useSound-CISJumm6.js";import"./proxy-uJ8evSzT.js";import"./MotionConfigContext-HXxMOMJo.js";import"./index-B9UM6a_o.js";import"./chevron-down-C40D1TRM.js";import"./createLucideIcon-DhNY7W9i.js";var pe=["MO","TU","WE","TH","FR","SA","SU"],O=function(){function t(e,r){if(r===0)throw new Error("Can't create weekday with n == 0");this.weekday=e,this.n=r}return t.fromStr=function(e){return new t(pe.indexOf(e))},t.prototype.nth=function(e){return this.n===e?this:new t(this.weekday,e)},t.prototype.equals=function(e){return this.weekday===e.weekday&&this.n===e.n},t.prototype.toString=function(){var e=pe[this.weekday];return this.n&&(e=(this.n>0?"+":"")+String(this.n)+e),e},t.prototype.getJsWeekday=function(){return this.weekday===6?0:this.weekday+1},t}(),Y=function(t){return t!=null},_=function(t){return typeof t=="number"},Oe=function(t){return typeof t=="string"&&pe.includes(t)},S=Array.isArray,W=function(t,e){e===void 0&&(e=t),arguments.length===1&&(e=t,t=0);for(var r=[],n=t;n<e;n++)r.push(n);return r},w=function(t,e){var r=0,n=[];if(S(t))for(;r<e;r++)n[r]=[].concat(t);else for(;r<e;r++)n[r]=t;return n},Yt=function(t){return S(t)?t:[t]};function z(t,e,r){r===void 0&&(r=" ");var n=String(t);return e=e>>0,n.length>e?String(n):(e=e-n.length,e>r.length&&(r+=w(r,e/r.length)),r.slice(0,e)+String(n))}var xt=function(t,e,r){var n=t.split(e);return r?n.slice(0,r).concat([n.slice(r).join(e)]):n},N=function(t,e){var r=t%e;return r*e<0?r+e:r},de=function(t,e){return{div:Math.floor(t/e),mod:N(t,e)}},I=function(t){return!Y(t)||t.length===0},D=function(t){return!I(t)},g=function(t,e){return D(t)&&t.indexOf(e)!==-1},K=function(t,e,r,n,a,i){return n===void 0&&(n=0),a===void 0&&(a=0),i===void 0&&(i=0),new Date(Date.UTC(t,e-1,r,n,a,i))},Dt=[31,28,31,30,31,30,31,31,30,31,30,31],ft=1e3*60*60*24,dt=9999,yt=K(1970,1,1),Mt=[6,0,1,2,3,4,5],V=function(t){return t%4===0&&t%100!==0||t%400===0},pt=function(t){return t instanceof Date},X=function(t){return pt(t)&&!isNaN(t.getTime())},Lt=function(t,e){var r=t.getTime(),n=e.getTime(),a=r-n;return Math.round(a/ft)},me=function(t){return Lt(t,yt)},mt=function(t){return new Date(yt.getTime()+t*ft)},Ot=function(t){var e=t.getUTCMonth();return e===1&&V(t.getUTCFullYear())?29:Dt[e]},Q=function(t){return Mt[t.getUTCDay()]},Se=function(t,e){var r=K(t,e+1,1);return[Q(r),Ot(r)]},bt=function(t,e){return e=e||t,new Date(Date.UTC(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()))},be=function(t){var e=new Date(t.getTime());return e},Ae=function(t){for(var e=[],r=0;r<t.length;r++)e.push(be(t[r]));return e},ee=function(t){t.sort(function(e,r){return e.getTime()-r.getTime()})},ke=function(t,e){e===void 0&&(e=!0);var r=new Date(t);return[z(r.getUTCFullYear().toString(),4,"0"),z(r.getUTCMonth()+1,2,"0"),z(r.getUTCDate(),2,"0"),"T",z(r.getUTCHours(),2,"0"),z(r.getUTCMinutes(),2,"0"),z(r.getUTCSeconds(),2,"0"),e?"Z":""].join("")},ge=function(t){var e=/^(\d{4})(\d{2})(\d{2})(T(\d{2})(\d{2})(\d{2})Z?)?$/,r=e.exec(t);if(!r)throw new Error("Invalid UNTIL value: ".concat(t));return new Date(Date.UTC(parseInt(r[1],10),parseInt(r[2],10)-1,parseInt(r[3],10),parseInt(r[5],10)||0,parseInt(r[6],10)||0,parseInt(r[7],10)||0))},Ne=function(t,e){var r=t.toLocaleString("sv-SE",{timeZone:e});return r.replace(" ","T")+"Z"},St=function(t,e){var r=Intl.DateTimeFormat().resolvedOptions().timeZone,n=new Date(Ne(t,r)),a=new Date(Ne(t,e??"UTC")),i=a.getTime()-n.getTime();return new Date(t.getTime()-i)},Z=function(){function t(e,r){this.minDate=null,this.maxDate=null,this._result=[],this.total=0,this.method=e,this.args=r,e==="between"?(this.maxDate=r.inc?r.before:new Date(r.before.getTime()-1),this.minDate=r.inc?r.after:new Date(r.after.getTime()+1)):e==="before"?this.maxDate=r.inc?r.dt:new Date(r.dt.getTime()-1):e==="after"&&(this.minDate=r.inc?r.dt:new Date(r.dt.getTime()+1))}return t.prototype.accept=function(e){++this.total;var r=this.minDate&&e<this.minDate,n=this.maxDate&&e>this.maxDate;if(this.method==="between"){if(r)return!0;if(n)return!1}else if(this.method==="before"){if(n)return!1}else if(this.method==="after")return r?!0:(this.add(e),!1);return this.add(e)},t.prototype.add=function(e){return this._result.push(e),!0},t.prototype.getValue=function(){var e=this._result;switch(this.method){case"all":case"between":return e;case"before":case"after":default:return e.length?e[e.length-1]:null}},t.prototype.clone=function(){return new t(this.method,this.args)},t}(),ve=function(t,e){return ve=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(r[a]=n[a])},ve(t,e)};function Te(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");ve(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var A=function(){return A=Object.assign||function(e){for(var r,n=1,a=arguments.length;n<a;n++){r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},A.apply(this,arguments)};function h(t,e,r){if(r||arguments.length===2)for(var n=0,a=e.length,i;n<a;n++)(i||!(n in e))&&(i||(i=Array.prototype.slice.call(e,0,n)),i[n]=e[n]);return t.concat(i||Array.prototype.slice.call(e))}var Re=function(t){Te(e,t);function e(r,n,a){var i=t.call(this,r,n)||this;return i.iterator=a,i}return e.prototype.add=function(r){return this.iterator(r,this._result.length)?(this._result.push(r),!0):!1},e}(Z),oe={dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],tokens:{SKIP:/^[ \r\n\t]+|^\.$/,number:/^[1-9][0-9]*/,numberAsText:/^(one|two|three)/i,every:/^every/i,"day(s)":/^days?/i,"weekday(s)":/^weekdays?/i,"week(s)":/^weeks?/i,"hour(s)":/^hours?/i,"minute(s)":/^minutes?/i,"month(s)":/^months?/i,"year(s)":/^years?/i,on:/^(on|in)/i,at:/^(at)/i,the:/^the/i,first:/^first/i,second:/^second/i,third:/^third/i,nth:/^([1-9][0-9]*)(\.|th|nd|rd|st)/i,last:/^last/i,for:/^for/i,"time(s)":/^times?/i,until:/^(un)?til/i,monday:/^mo(n(day)?)?/i,tuesday:/^tu(e(s(day)?)?)?/i,wednesday:/^we(d(n(esday)?)?)?/i,thursday:/^th(u(r(sday)?)?)?/i,friday:/^fr(i(day)?)?/i,saturday:/^sa(t(urday)?)?/i,sunday:/^su(n(day)?)?/i,january:/^jan(uary)?/i,february:/^feb(ruary)?/i,march:/^mar(ch)?/i,april:/^apr(il)?/i,may:/^may/i,june:/^june?/i,july:/^july?/i,august:/^aug(ust)?/i,september:/^sep(t(ember)?)?/i,october:/^oct(ober)?/i,november:/^nov(ember)?/i,december:/^dec(ember)?/i,comma:/^(,\s*|(and|or)\s*)+/i}},Ue=function(t,e){return t.indexOf(e)!==-1},At=function(t){return t.toString()},Nt=function(t,e,r){return"".concat(e," ").concat(r,", ").concat(t)},H=function(){function t(e,r,n,a){if(r===void 0&&(r=At),n===void 0&&(n=oe),a===void 0&&(a=Nt),this.text=[],this.language=n||oe,this.gettext=r,this.dateFormatter=a,this.rrule=e,this.options=e.options,this.origOptions=e.origOptions,this.origOptions.bymonthday){var i=[].concat(this.options.bymonthday),s=[].concat(this.options.bynmonthday);i.sort(function(l,d){return l-d}),s.sort(function(l,d){return d-l}),this.bymonthday=i.concat(s),this.bymonthday.length||(this.bymonthday=null)}if(Y(this.origOptions.byweekday)){var o=S(this.origOptions.byweekday)?this.origOptions.byweekday:[this.origOptions.byweekday],u=String(o);this.byweekday={allWeeks:o.filter(function(l){return!l.n}),someWeeks:o.filter(function(l){return!!l.n}),isWeekdays:u.indexOf("MO")!==-1&&u.indexOf("TU")!==-1&&u.indexOf("WE")!==-1&&u.indexOf("TH")!==-1&&u.indexOf("FR")!==-1&&u.indexOf("SA")===-1&&u.indexOf("SU")===-1,isEveryDay:u.indexOf("MO")!==-1&&u.indexOf("TU")!==-1&&u.indexOf("WE")!==-1&&u.indexOf("TH")!==-1&&u.indexOf("FR")!==-1&&u.indexOf("SA")!==-1&&u.indexOf("SU")!==-1};var f=function(l,d){return l.weekday-d.weekday};this.byweekday.allWeeks.sort(f),this.byweekday.someWeeks.sort(f),this.byweekday.allWeeks.length||(this.byweekday.allWeeks=null),this.byweekday.someWeeks.length||(this.byweekday.someWeeks=null)}else this.byweekday=null}return t.isFullyConvertible=function(e){var r=!0;if(!(e.options.freq in t.IMPLEMENTED)||e.origOptions.until&&e.origOptions.count)return!1;for(var n in e.origOptions){if(Ue(["dtstart","tzid","wkst","freq"],n))return!0;if(!Ue(t.IMPLEMENTED[e.options.freq],n))return!1}return r},t.prototype.isFullyConvertible=function(){return t.isFullyConvertible(this.rrule)},t.prototype.toString=function(){var e=this.gettext;if(!(this.options.freq in t.IMPLEMENTED))return e("RRule error: Unable to fully convert this rrule to text");if(this.text=[e("every")],this[y.FREQUENCIES[this.options.freq]](),this.options.until){this.add(e("until"));var r=this.options.until;this.add(this.dateFormatter(r.getUTCFullYear(),this.language.monthNames[r.getUTCMonth()],r.getUTCDate()))}else this.options.count&&this.add(e("for")).add(this.options.count.toString()).add(this.plural(this.options.count)?e("times"):e("time"));return this.isFullyConvertible()||this.add(e("(~ approximate)")),this.text.join("")},t.prototype.HOURLY=function(){var e=this.gettext;this.options.interval!==1&&this.add(this.options.interval.toString()),this.add(this.plural(this.options.interval)?e("hours"):e("hour"))},t.prototype.MINUTELY=function(){var e=this.gettext;this.options.interval!==1&&this.add(this.options.interval.toString()),this.add(this.plural(this.options.interval)?e("minutes"):e("minute"))},t.prototype.DAILY=function(){var e=this.gettext;this.options.interval!==1&&this.add(this.options.interval.toString()),this.byweekday&&this.byweekday.isWeekdays?this.add(this.plural(this.options.interval)?e("weekdays"):e("weekday")):this.add(this.plural(this.options.interval)?e("days"):e("day")),this.origOptions.bymonth&&(this.add(e("in")),this._bymonth()),this.bymonthday?this._bymonthday():this.byweekday?this._byweekday():this.origOptions.byhour&&this._byhour()},t.prototype.WEEKLY=function(){var e=this.gettext;this.options.interval!==1&&this.add(this.options.interval.toString()).add(this.plural(this.options.interval)?e("weeks"):e("week")),this.byweekday&&this.byweekday.isWeekdays?this.options.interval===1?this.add(this.plural(this.options.interval)?e("weekdays"):e("weekday")):this.add(e("on")).add(e("weekdays")):this.byweekday&&this.byweekday.isEveryDay?this.add(this.plural(this.options.interval)?e("days"):e("day")):(this.options.interval===1&&this.add(e("week")),this.origOptions.bymonth&&(this.add(e("in")),this._bymonth()),this.bymonthday?this._bymonthday():this.byweekday&&this._byweekday(),this.origOptions.byhour&&this._byhour())},t.prototype.MONTHLY=function(){var e=this.gettext;this.origOptions.bymonth?(this.options.interval!==1&&(this.add(this.options.interval.toString()).add(e("months")),this.plural(this.options.interval)&&this.add(e("in"))),this._bymonth()):(this.options.interval!==1&&this.add(this.options.interval.toString()),this.add(this.plural(this.options.interval)?e("months"):e("month"))),this.bymonthday?this._bymonthday():this.byweekday&&this.byweekday.isWeekdays?this.add(e("on")).add(e("weekdays")):this.byweekday&&this._byweekday()},t.prototype.YEARLY=function(){var e=this.gettext;this.origOptions.bymonth?(this.options.interval!==1&&(this.add(this.options.interval.toString()),this.add(e("years"))),this._bymonth()):(this.options.interval!==1&&this.add(this.options.interval.toString()),this.add(this.plural(this.options.interval)?e("years"):e("year"))),this.bymonthday?this._bymonthday():this.byweekday&&this._byweekday(),this.options.byyearday&&this.add(e("on the")).add(this.list(this.options.byyearday,this.nth,e("and"))).add(e("day")),this.options.byweekno&&this.add(e("in")).add(this.plural(this.options.byweekno.length)?e("weeks"):e("week")).add(this.list(this.options.byweekno,void 0,e("and")))},t.prototype._bymonthday=function(){var e=this.gettext;this.byweekday&&this.byweekday.allWeeks?this.add(e("on")).add(this.list(this.byweekday.allWeeks,this.weekdaytext,e("or"))).add(e("the")).add(this.list(this.bymonthday,this.nth,e("or"))):this.add(e("on the")).add(this.list(this.bymonthday,this.nth,e("and")))},t.prototype._byweekday=function(){var e=this.gettext;this.byweekday.allWeeks&&!this.byweekday.isWeekdays&&this.add(e("on")).add(this.list(this.byweekday.allWeeks,this.weekdaytext)),this.byweekday.someWeeks&&(this.byweekday.allWeeks&&this.add(e("and")),this.add(e("on the")).add(this.list(this.byweekday.someWeeks,this.weekdaytext,e("and"))))},t.prototype._byhour=function(){var e=this.gettext;this.add(e("at")).add(this.list(this.origOptions.byhour,void 0,e("and")))},t.prototype._bymonth=function(){this.add(this.list(this.options.bymonth,this.monthtext,this.gettext("and")))},t.prototype.nth=function(e){e=parseInt(e.toString(),10);var r,n=this.gettext;if(e===-1)return n("last");var a=Math.abs(e);switch(a){case 1:case 21:case 31:r=a+n("st");break;case 2:case 22:r=a+n("nd");break;case 3:case 23:r=a+n("rd");break;default:r=a+n("th")}return e<0?r+" "+n("last"):r},t.prototype.monthtext=function(e){return this.language.monthNames[e-1]},t.prototype.weekdaytext=function(e){var r=_(e)?(e+1)%7:e.getJsWeekday();return(e.n?this.nth(e.n)+" ":"")+this.language.dayNames[r]},t.prototype.plural=function(e){return e%100!==1},t.prototype.add=function(e){return this.text.push(" "),this.text.push(e),this},t.prototype.list=function(e,r,n,a){var i=this;a===void 0&&(a=","),S(e)||(e=[e]);var s=function(u,f,l){for(var d="",c=0;c<u.length;c++)c!==0&&(c===u.length-1?d+=" "+l+" ":d+=f+" "),d+=u[c];return d};r=r||function(u){return u.toString()};var o=function(u){return r&&r.call(i,u)};return n?s(e.map(o),a,n):e.map(o).join(a+" ")},t}(),Rt=function(){function t(e){this.done=!0,this.rules=e}return t.prototype.start=function(e){return this.text=e,this.done=!1,this.nextSymbol()},t.prototype.isDone=function(){return this.done&&this.symbol===null},t.prototype.nextSymbol=function(){var e,r;this.symbol=null,this.value=null;do{if(this.done)return!1;var n=void 0;e=null;for(var a in this.rules){n=this.rules[a];var i=n.exec(this.text);i&&(e===null||i[0].length>e[0].length)&&(e=i,r=a)}if(e!=null&&(this.text=this.text.substr(e[0].length),this.text===""&&(this.done=!0)),e==null){this.done=!0,this.symbol=null,this.value=null;return}}while(r==="SKIP");return this.symbol=r,this.value=e,!0},t.prototype.accept=function(e){if(this.symbol===e){if(this.value){var r=this.value;return this.nextSymbol(),r}return this.nextSymbol(),!0}return!1},t.prototype.acceptNumber=function(){return this.accept("number")},t.prototype.expect=function(e){if(this.accept(e))return!0;throw new Error("expected "+e+" but found "+this.symbol)},t}();function vt(t,e){e===void 0&&(e=oe);var r={},n=new Rt(e.tokens);if(!n.start(t))return null;return a(),r;function a(){n.expect("every");var c=n.acceptNumber();if(c&&(r.interval=parseInt(c[0],10)),n.isDone())throw new Error("Unexpected end");switch(n.symbol){case"day(s)":r.freq=y.DAILY,n.nextSymbol()&&(s(),d());break;case"weekday(s)":r.freq=y.WEEKLY,r.byweekday=[y.MO,y.TU,y.WE,y.TH,y.FR],n.nextSymbol(),s(),d();break;case"week(s)":r.freq=y.WEEKLY,n.nextSymbol()&&(i(),s(),d());break;case"hour(s)":r.freq=y.HOURLY,n.nextSymbol()&&(i(),d());break;case"minute(s)":r.freq=y.MINUTELY,n.nextSymbol()&&(i(),d());break;case"month(s)":r.freq=y.MONTHLY,n.nextSymbol()&&(i(),d());break;case"year(s)":r.freq=y.YEARLY,n.nextSymbol()&&(i(),d());break;case"monday":case"tuesday":case"wednesday":case"thursday":case"friday":case"saturday":case"sunday":r.freq=y.WEEKLY;var p=n.symbol.substr(0,2).toUpperCase();if(r.byweekday=[y[p]],!n.nextSymbol())return;for(;n.accept("comma");){if(n.isDone())throw new Error("Unexpected end");var m=u();if(!m)throw new Error("Unexpected symbol "+n.symbol+", expected weekday");r.byweekday.push(y[m]),n.nextSymbol()}s(),l(),d();break;case"january":case"february":case"march":case"april":case"may":case"june":case"july":case"august":case"september":case"october":case"november":case"december":if(r.freq=y.YEARLY,r.bymonth=[o()],!n.nextSymbol())return;for(;n.accept("comma");){if(n.isDone())throw new Error("Unexpected end");var k=o();if(!k)throw new Error("Unexpected symbol "+n.symbol+", expected month");r.bymonth.push(k),n.nextSymbol()}i(),d();break;default:throw new Error("Unknown symbol")}}function i(){var c=n.accept("on"),p=n.accept("the");if(c||p)do{var m=f(),k=u(),v=o();if(m)k?(n.nextSymbol(),r.byweekday||(r.byweekday=[]),r.byweekday.push(y[k].nth(m))):(r.bymonthday||(r.bymonthday=[]),r.bymonthday.push(m),n.accept("day(s)"));else if(k)n.nextSymbol(),r.byweekday||(r.byweekday=[]),r.byweekday.push(y[k]);else if(n.symbol==="weekday(s)")n.nextSymbol(),r.byweekday||(r.byweekday=[y.MO,y.TU,y.WE,y.TH,y.FR]);else if(n.symbol==="week(s)"){n.nextSymbol();var T=n.acceptNumber();if(!T)throw new Error("Unexpected symbol "+n.symbol+", expected week number");for(r.byweekno=[parseInt(T[0],10)];n.accept("comma");){if(T=n.acceptNumber(),!T)throw new Error("Unexpected symbol "+n.symbol+"; expected monthday");r.byweekno.push(parseInt(T[0],10))}}else if(v)n.nextSymbol(),r.bymonth||(r.bymonth=[]),r.bymonth.push(v);else return}while(n.accept("comma")||n.accept("the")||n.accept("on"))}function s(){var c=n.accept("at");if(c)do{var p=n.acceptNumber();if(!p)throw new Error("Unexpected symbol "+n.symbol+", expected hour");for(r.byhour=[parseInt(p[0],10)];n.accept("comma");){if(p=n.acceptNumber(),!p)throw new Error("Unexpected symbol "+n.symbol+"; expected hour");r.byhour.push(parseInt(p[0],10))}}while(n.accept("comma")||n.accept("at"))}function o(){switch(n.symbol){case"january":return 1;case"february":return 2;case"march":return 3;case"april":return 4;case"may":return 5;case"june":return 6;case"july":return 7;case"august":return 8;case"september":return 9;case"october":return 10;case"november":return 11;case"december":return 12;default:return!1}}function u(){switch(n.symbol){case"monday":case"tuesday":case"wednesday":case"thursday":case"friday":case"saturday":case"sunday":return n.symbol.substr(0,2).toUpperCase();default:return!1}}function f(){switch(n.symbol){case"last":return n.nextSymbol(),-1;case"first":return n.nextSymbol(),1;case"second":return n.nextSymbol(),n.accept("last")?-2:2;case"third":return n.nextSymbol(),n.accept("last")?-3:3;case"nth":var c=parseInt(n.value[1],10);if(c<-366||c>366)throw new Error("Nth out of range: "+c);return n.nextSymbol(),n.accept("last")?-c:c;default:return!1}}function l(){n.accept("on"),n.accept("the");var c=f();if(c)for(r.bymonthday=[c],n.nextSymbol();n.accept("comma");){if(c=f(),!c)throw new Error("Unexpected symbol "+n.symbol+"; expected monthday");r.bymonthday.push(c),n.nextSymbol()}}function d(){if(n.symbol==="until"){var c=Date.parse(n.text);if(!c)throw new Error("Cannot parse until date:"+n.text);r.until=new Date(c)}else n.accept("for")&&(r.count=parseInt(n.value[0],10),n.expect("number"))}}var E;(function(t){t[t.YEARLY=0]="YEARLY",t[t.MONTHLY=1]="MONTHLY",t[t.WEEKLY=2]="WEEKLY",t[t.DAILY=3]="DAILY",t[t.HOURLY=4]="HOURLY",t[t.MINUTELY=5]="MINUTELY",t[t.SECONDLY=6]="SECONDLY"})(E||(E={}));function Ye(t){return t<E.HOURLY}var Ut=function(t,e){return e===void 0&&(e=oe),new y(vt(t,e)||void 0)},$=["count","until","interval","byweekday","bymonthday","bymonth"];H.IMPLEMENTED=[];H.IMPLEMENTED[E.HOURLY]=$;H.IMPLEMENTED[E.MINUTELY]=$;H.IMPLEMENTED[E.DAILY]=["byhour"].concat($);H.IMPLEMENTED[E.WEEKLY]=$;H.IMPLEMENTED[E.MONTHLY]=$;H.IMPLEMENTED[E.YEARLY]=["byweekno","byyearday"].concat($);var _t=function(t,e,r,n){return new H(t,e,r,n).toString()},It=H.isFullyConvertible,ue=function(){function t(e,r,n,a){this.hour=e,this.minute=r,this.second=n,this.millisecond=a||0}return t.prototype.getHours=function(){return this.hour},t.prototype.getMinutes=function(){return this.minute},t.prototype.getSeconds=function(){return this.second},t.prototype.getMilliseconds=function(){return this.millisecond},t.prototype.getTime=function(){return(this.hour*60*60+this.minute*60+this.second)*1e3+this.millisecond},t}(),Wt=function(t){Te(e,t);function e(r,n,a,i,s,o,u){var f=t.call(this,i,s,o,u)||this;return f.year=r,f.month=n,f.day=a,f}return e.fromDate=function(r){return new this(r.getUTCFullYear(),r.getUTCMonth()+1,r.getUTCDate(),r.getUTCHours(),r.getUTCMinutes(),r.getUTCSeconds(),r.valueOf()%1e3)},e.prototype.getWeekday=function(){return Q(new Date(this.getTime()))},e.prototype.getTime=function(){return new Date(Date.UTC(this.year,this.month-1,this.day,this.hour,this.minute,this.second,this.millisecond)).getTime()},e.prototype.getDay=function(){return this.day},e.prototype.getMonth=function(){return this.month},e.prototype.getYear=function(){return this.year},e.prototype.addYears=function(r){this.year+=r},e.prototype.addMonths=function(r){if(this.month+=r,this.month>12){var n=Math.floor(this.month/12),a=N(this.month,12);this.month=a,this.year+=n,this.month===0&&(this.month=12,--this.year)}},e.prototype.addWeekly=function(r,n){n>this.getWeekday()?this.day+=-(this.getWeekday()+1+(6-n))+r*7:this.day+=-(this.getWeekday()-n)+r*7,this.fixDay()},e.prototype.addDaily=function(r){this.day+=r,this.fixDay()},e.prototype.addHours=function(r,n,a){for(n&&(this.hour+=Math.floor((23-this.hour)/r)*r);;){this.hour+=r;var i=de(this.hour,24),s=i.div,o=i.mod;if(s&&(this.hour=o,this.addDaily(s)),I(a)||g(a,this.hour))break}},e.prototype.addMinutes=function(r,n,a,i){for(n&&(this.minute+=Math.floor((1439-(this.hour*60+this.minute))/r)*r);;){this.minute+=r;var s=de(this.minute,60),o=s.div,u=s.mod;if(o&&(this.minute=u,this.addHours(o,!1,a)),(I(a)||g(a,this.hour))&&(I(i)||g(i,this.minute)))break}},e.prototype.addSeconds=function(r,n,a,i,s){for(n&&(this.second+=Math.floor((86399-(this.hour*3600+this.minute*60+this.second))/r)*r);;){this.second+=r;var o=de(this.second,60),u=o.div,f=o.mod;if(u&&(this.second=f,this.addMinutes(u,!1,a,i)),(I(a)||g(a,this.hour))&&(I(i)||g(i,this.minute))&&(I(s)||g(s,this.second)))break}},e.prototype.fixDay=function(){if(!(this.day<=28)){var r=Se(this.year,this.month-1)[1];if(!(this.day<=r))for(;this.day>r;){if(this.day-=r,++this.month,this.month===13&&(this.month=1,++this.year,this.year>dt))return;r=Se(this.year,this.month-1)[1]}}},e.prototype.add=function(r,n){var a=r.freq,i=r.interval,s=r.wkst,o=r.byhour,u=r.byminute,f=r.bysecond;switch(a){case E.YEARLY:return this.addYears(i);case E.MONTHLY:return this.addMonths(i);case E.WEEKLY:return this.addWeekly(i,s);case E.DAILY:return this.addDaily(i);case E.HOURLY:return this.addHours(i,n,o);case E.MINUTELY:return this.addMinutes(i,n,o,u);case E.SECONDLY:return this.addSeconds(i,n,o,u,f)}},e}(ue);function wt(t){for(var e=[],r=Object.keys(t),n=0,a=r;n<a.length;n++){var i=a[n];g(dr,i)||e.push(i),pt(t[i])&&!X(t[i])&&e.push(i)}if(e.length)throw new Error("Invalid options: "+e.join(", "));return A({},t)}function Ct(t){var e=A(A({},xe),wt(t));if(Y(e.byeaster)&&(e.freq=y.YEARLY),!(Y(e.freq)&&y.FREQUENCIES[e.freq]))throw new Error("Invalid frequency: ".concat(e.freq," ").concat(t.freq));if(e.dtstart||(e.dtstart=new Date(new Date().setMilliseconds(0))),Y(e.wkst)?_(e.wkst)||(e.wkst=e.wkst.weekday):e.wkst=y.MO.weekday,Y(e.bysetpos)){_(e.bysetpos)&&(e.bysetpos=[e.bysetpos]);for(var r=0;r<e.bysetpos.length;r++){var n=e.bysetpos[r];if(n===0||!(n>=-366&&n<=366))throw new Error("bysetpos must be between 1 and 366, or between -366 and -1")}}if(!(e.byweekno||D(e.byweekno)||D(e.byyearday)||e.bymonthday||D(e.bymonthday)||Y(e.byweekday)||Y(e.byeaster)))switch(e.freq){case y.YEARLY:e.bymonth||(e.bymonth=e.dtstart.getUTCMonth()+1),e.bymonthday=e.dtstart.getUTCDate();break;case y.MONTHLY:e.bymonthday=e.dtstart.getUTCDate();break;case y.WEEKLY:e.byweekday=[Q(e.dtstart)];break}if(Y(e.bymonth)&&!S(e.bymonth)&&(e.bymonth=[e.bymonth]),Y(e.byyearday)&&!S(e.byyearday)&&_(e.byyearday)&&(e.byyearday=[e.byyearday]),!Y(e.bymonthday))e.bymonthday=[],e.bynmonthday=[];else if(S(e.bymonthday)){for(var a=[],i=[],r=0;r<e.bymonthday.length;r++){var n=e.bymonthday[r];n>0?a.push(n):n<0&&i.push(n)}e.bymonthday=a,e.bynmonthday=i}else e.bymonthday<0?(e.bynmonthday=[e.bymonthday],e.bymonthday=[]):(e.bynmonthday=[],e.bymonthday=[e.bymonthday]);if(Y(e.byweekno)&&!S(e.byweekno)&&(e.byweekno=[e.byweekno]),!Y(e.byweekday))e.bynweekday=null;else if(_(e.byweekday))e.byweekday=[e.byweekday],e.bynweekday=null;else if(Oe(e.byweekday))e.byweekday=[O.fromStr(e.byweekday).weekday],e.bynweekday=null;else if(e.byweekday instanceof O)!e.byweekday.n||e.freq>y.MONTHLY?(e.byweekday=[e.byweekday.weekday],e.bynweekday=null):(e.bynweekday=[[e.byweekday.weekday,e.byweekday.n]],e.byweekday=null);else{for(var s=[],o=[],r=0;r<e.byweekday.length;r++){var u=e.byweekday[r];if(_(u)){s.push(u);continue}else if(Oe(u)){s.push(O.fromStr(u).weekday);continue}!u.n||e.freq>y.MONTHLY?s.push(u.weekday):o.push([u.weekday,u.n])}e.byweekday=D(s)?s:null,e.bynweekday=D(o)?o:null}return Y(e.byhour)?_(e.byhour)&&(e.byhour=[e.byhour]):e.byhour=e.freq<y.HOURLY?[e.dtstart.getUTCHours()]:null,Y(e.byminute)?_(e.byminute)&&(e.byminute=[e.byminute]):e.byminute=e.freq<y.MINUTELY?[e.dtstart.getUTCMinutes()]:null,Y(e.bysecond)?_(e.bysecond)&&(e.bysecond=[e.bysecond]):e.bysecond=e.freq<y.SECONDLY?[e.dtstart.getUTCSeconds()]:null,{parsedOptions:e}}function Ht(t){var e=t.dtstart.getTime()%1e3;if(!Ye(t.freq))return[];var r=[];return t.byhour.forEach(function(n){t.byminute.forEach(function(a){t.bysecond.forEach(function(i){r.push(new ue(n,a,i,e))})})}),r}function we(t){var e=t.split(`
1
+ import{r as B,j as b}from"./iframe-D8qqeeGJ.js";import{C as Tt}from"./Checkbox-BmAUW9fp.js";import{N as fe}from"./NumberStepper-BLyqaAZY.js";import{S as Le}from"./SelectInput-DTobf0zh.js";import"./preload-helper-C1FmrZbK.js";import"./useSound-CUVgLyES.js";import"./proxy-1W9qMPm5.js";import"./MotionConfigContext-cqdgvETc.js";import"./index-CJyQ6SwC.js";import"./chevron-down-dMiwJ2Fa.js";import"./createLucideIcon-He700CuR.js";var pe=["MO","TU","WE","TH","FR","SA","SU"],O=function(){function t(e,r){if(r===0)throw new Error("Can't create weekday with n == 0");this.weekday=e,this.n=r}return t.fromStr=function(e){return new t(pe.indexOf(e))},t.prototype.nth=function(e){return this.n===e?this:new t(this.weekday,e)},t.prototype.equals=function(e){return this.weekday===e.weekday&&this.n===e.n},t.prototype.toString=function(){var e=pe[this.weekday];return this.n&&(e=(this.n>0?"+":"")+String(this.n)+e),e},t.prototype.getJsWeekday=function(){return this.weekday===6?0:this.weekday+1},t}(),Y=function(t){return t!=null},_=function(t){return typeof t=="number"},Oe=function(t){return typeof t=="string"&&pe.includes(t)},S=Array.isArray,W=function(t,e){e===void 0&&(e=t),arguments.length===1&&(e=t,t=0);for(var r=[],n=t;n<e;n++)r.push(n);return r},w=function(t,e){var r=0,n=[];if(S(t))for(;r<e;r++)n[r]=[].concat(t);else for(;r<e;r++)n[r]=t;return n},Yt=function(t){return S(t)?t:[t]};function z(t,e,r){r===void 0&&(r=" ");var n=String(t);return e=e>>0,n.length>e?String(n):(e=e-n.length,e>r.length&&(r+=w(r,e/r.length)),r.slice(0,e)+String(n))}var xt=function(t,e,r){var n=t.split(e);return r?n.slice(0,r).concat([n.slice(r).join(e)]):n},N=function(t,e){var r=t%e;return r*e<0?r+e:r},de=function(t,e){return{div:Math.floor(t/e),mod:N(t,e)}},I=function(t){return!Y(t)||t.length===0},D=function(t){return!I(t)},g=function(t,e){return D(t)&&t.indexOf(e)!==-1},K=function(t,e,r,n,a,i){return n===void 0&&(n=0),a===void 0&&(a=0),i===void 0&&(i=0),new Date(Date.UTC(t,e-1,r,n,a,i))},Dt=[31,28,31,30,31,30,31,31,30,31,30,31],ft=1e3*60*60*24,dt=9999,yt=K(1970,1,1),Mt=[6,0,1,2,3,4,5],V=function(t){return t%4===0&&t%100!==0||t%400===0},pt=function(t){return t instanceof Date},X=function(t){return pt(t)&&!isNaN(t.getTime())},Lt=function(t,e){var r=t.getTime(),n=e.getTime(),a=r-n;return Math.round(a/ft)},me=function(t){return Lt(t,yt)},mt=function(t){return new Date(yt.getTime()+t*ft)},Ot=function(t){var e=t.getUTCMonth();return e===1&&V(t.getUTCFullYear())?29:Dt[e]},Q=function(t){return Mt[t.getUTCDay()]},Se=function(t,e){var r=K(t,e+1,1);return[Q(r),Ot(r)]},bt=function(t,e){return e=e||t,new Date(Date.UTC(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()))},be=function(t){var e=new Date(t.getTime());return e},Ae=function(t){for(var e=[],r=0;r<t.length;r++)e.push(be(t[r]));return e},ee=function(t){t.sort(function(e,r){return e.getTime()-r.getTime()})},ke=function(t,e){e===void 0&&(e=!0);var r=new Date(t);return[z(r.getUTCFullYear().toString(),4,"0"),z(r.getUTCMonth()+1,2,"0"),z(r.getUTCDate(),2,"0"),"T",z(r.getUTCHours(),2,"0"),z(r.getUTCMinutes(),2,"0"),z(r.getUTCSeconds(),2,"0"),e?"Z":""].join("")},ge=function(t){var e=/^(\d{4})(\d{2})(\d{2})(T(\d{2})(\d{2})(\d{2})Z?)?$/,r=e.exec(t);if(!r)throw new Error("Invalid UNTIL value: ".concat(t));return new Date(Date.UTC(parseInt(r[1],10),parseInt(r[2],10)-1,parseInt(r[3],10),parseInt(r[5],10)||0,parseInt(r[6],10)||0,parseInt(r[7],10)||0))},Ne=function(t,e){var r=t.toLocaleString("sv-SE",{timeZone:e});return r.replace(" ","T")+"Z"},St=function(t,e){var r=Intl.DateTimeFormat().resolvedOptions().timeZone,n=new Date(Ne(t,r)),a=new Date(Ne(t,e??"UTC")),i=a.getTime()-n.getTime();return new Date(t.getTime()-i)},Z=function(){function t(e,r){this.minDate=null,this.maxDate=null,this._result=[],this.total=0,this.method=e,this.args=r,e==="between"?(this.maxDate=r.inc?r.before:new Date(r.before.getTime()-1),this.minDate=r.inc?r.after:new Date(r.after.getTime()+1)):e==="before"?this.maxDate=r.inc?r.dt:new Date(r.dt.getTime()-1):e==="after"&&(this.minDate=r.inc?r.dt:new Date(r.dt.getTime()+1))}return t.prototype.accept=function(e){++this.total;var r=this.minDate&&e<this.minDate,n=this.maxDate&&e>this.maxDate;if(this.method==="between"){if(r)return!0;if(n)return!1}else if(this.method==="before"){if(n)return!1}else if(this.method==="after")return r?!0:(this.add(e),!1);return this.add(e)},t.prototype.add=function(e){return this._result.push(e),!0},t.prototype.getValue=function(){var e=this._result;switch(this.method){case"all":case"between":return e;case"before":case"after":default:return e.length?e[e.length-1]:null}},t.prototype.clone=function(){return new t(this.method,this.args)},t}(),ve=function(t,e){return ve=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(r[a]=n[a])},ve(t,e)};function Te(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");ve(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var A=function(){return A=Object.assign||function(e){for(var r,n=1,a=arguments.length;n<a;n++){r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},A.apply(this,arguments)};function h(t,e,r){if(r||arguments.length===2)for(var n=0,a=e.length,i;n<a;n++)(i||!(n in e))&&(i||(i=Array.prototype.slice.call(e,0,n)),i[n]=e[n]);return t.concat(i||Array.prototype.slice.call(e))}var Re=function(t){Te(e,t);function e(r,n,a){var i=t.call(this,r,n)||this;return i.iterator=a,i}return e.prototype.add=function(r){return this.iterator(r,this._result.length)?(this._result.push(r),!0):!1},e}(Z),oe={dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],tokens:{SKIP:/^[ \r\n\t]+|^\.$/,number:/^[1-9][0-9]*/,numberAsText:/^(one|two|three)/i,every:/^every/i,"day(s)":/^days?/i,"weekday(s)":/^weekdays?/i,"week(s)":/^weeks?/i,"hour(s)":/^hours?/i,"minute(s)":/^minutes?/i,"month(s)":/^months?/i,"year(s)":/^years?/i,on:/^(on|in)/i,at:/^(at)/i,the:/^the/i,first:/^first/i,second:/^second/i,third:/^third/i,nth:/^([1-9][0-9]*)(\.|th|nd|rd|st)/i,last:/^last/i,for:/^for/i,"time(s)":/^times?/i,until:/^(un)?til/i,monday:/^mo(n(day)?)?/i,tuesday:/^tu(e(s(day)?)?)?/i,wednesday:/^we(d(n(esday)?)?)?/i,thursday:/^th(u(r(sday)?)?)?/i,friday:/^fr(i(day)?)?/i,saturday:/^sa(t(urday)?)?/i,sunday:/^su(n(day)?)?/i,january:/^jan(uary)?/i,february:/^feb(ruary)?/i,march:/^mar(ch)?/i,april:/^apr(il)?/i,may:/^may/i,june:/^june?/i,july:/^july?/i,august:/^aug(ust)?/i,september:/^sep(t(ember)?)?/i,october:/^oct(ober)?/i,november:/^nov(ember)?/i,december:/^dec(ember)?/i,comma:/^(,\s*|(and|or)\s*)+/i}},Ue=function(t,e){return t.indexOf(e)!==-1},At=function(t){return t.toString()},Nt=function(t,e,r){return"".concat(e," ").concat(r,", ").concat(t)},H=function(){function t(e,r,n,a){if(r===void 0&&(r=At),n===void 0&&(n=oe),a===void 0&&(a=Nt),this.text=[],this.language=n||oe,this.gettext=r,this.dateFormatter=a,this.rrule=e,this.options=e.options,this.origOptions=e.origOptions,this.origOptions.bymonthday){var i=[].concat(this.options.bymonthday),s=[].concat(this.options.bynmonthday);i.sort(function(l,d){return l-d}),s.sort(function(l,d){return d-l}),this.bymonthday=i.concat(s),this.bymonthday.length||(this.bymonthday=null)}if(Y(this.origOptions.byweekday)){var o=S(this.origOptions.byweekday)?this.origOptions.byweekday:[this.origOptions.byweekday],u=String(o);this.byweekday={allWeeks:o.filter(function(l){return!l.n}),someWeeks:o.filter(function(l){return!!l.n}),isWeekdays:u.indexOf("MO")!==-1&&u.indexOf("TU")!==-1&&u.indexOf("WE")!==-1&&u.indexOf("TH")!==-1&&u.indexOf("FR")!==-1&&u.indexOf("SA")===-1&&u.indexOf("SU")===-1,isEveryDay:u.indexOf("MO")!==-1&&u.indexOf("TU")!==-1&&u.indexOf("WE")!==-1&&u.indexOf("TH")!==-1&&u.indexOf("FR")!==-1&&u.indexOf("SA")!==-1&&u.indexOf("SU")!==-1};var f=function(l,d){return l.weekday-d.weekday};this.byweekday.allWeeks.sort(f),this.byweekday.someWeeks.sort(f),this.byweekday.allWeeks.length||(this.byweekday.allWeeks=null),this.byweekday.someWeeks.length||(this.byweekday.someWeeks=null)}else this.byweekday=null}return t.isFullyConvertible=function(e){var r=!0;if(!(e.options.freq in t.IMPLEMENTED)||e.origOptions.until&&e.origOptions.count)return!1;for(var n in e.origOptions){if(Ue(["dtstart","tzid","wkst","freq"],n))return!0;if(!Ue(t.IMPLEMENTED[e.options.freq],n))return!1}return r},t.prototype.isFullyConvertible=function(){return t.isFullyConvertible(this.rrule)},t.prototype.toString=function(){var e=this.gettext;if(!(this.options.freq in t.IMPLEMENTED))return e("RRule error: Unable to fully convert this rrule to text");if(this.text=[e("every")],this[y.FREQUENCIES[this.options.freq]](),this.options.until){this.add(e("until"));var r=this.options.until;this.add(this.dateFormatter(r.getUTCFullYear(),this.language.monthNames[r.getUTCMonth()],r.getUTCDate()))}else this.options.count&&this.add(e("for")).add(this.options.count.toString()).add(this.plural(this.options.count)?e("times"):e("time"));return this.isFullyConvertible()||this.add(e("(~ approximate)")),this.text.join("")},t.prototype.HOURLY=function(){var e=this.gettext;this.options.interval!==1&&this.add(this.options.interval.toString()),this.add(this.plural(this.options.interval)?e("hours"):e("hour"))},t.prototype.MINUTELY=function(){var e=this.gettext;this.options.interval!==1&&this.add(this.options.interval.toString()),this.add(this.plural(this.options.interval)?e("minutes"):e("minute"))},t.prototype.DAILY=function(){var e=this.gettext;this.options.interval!==1&&this.add(this.options.interval.toString()),this.byweekday&&this.byweekday.isWeekdays?this.add(this.plural(this.options.interval)?e("weekdays"):e("weekday")):this.add(this.plural(this.options.interval)?e("days"):e("day")),this.origOptions.bymonth&&(this.add(e("in")),this._bymonth()),this.bymonthday?this._bymonthday():this.byweekday?this._byweekday():this.origOptions.byhour&&this._byhour()},t.prototype.WEEKLY=function(){var e=this.gettext;this.options.interval!==1&&this.add(this.options.interval.toString()).add(this.plural(this.options.interval)?e("weeks"):e("week")),this.byweekday&&this.byweekday.isWeekdays?this.options.interval===1?this.add(this.plural(this.options.interval)?e("weekdays"):e("weekday")):this.add(e("on")).add(e("weekdays")):this.byweekday&&this.byweekday.isEveryDay?this.add(this.plural(this.options.interval)?e("days"):e("day")):(this.options.interval===1&&this.add(e("week")),this.origOptions.bymonth&&(this.add(e("in")),this._bymonth()),this.bymonthday?this._bymonthday():this.byweekday&&this._byweekday(),this.origOptions.byhour&&this._byhour())},t.prototype.MONTHLY=function(){var e=this.gettext;this.origOptions.bymonth?(this.options.interval!==1&&(this.add(this.options.interval.toString()).add(e("months")),this.plural(this.options.interval)&&this.add(e("in"))),this._bymonth()):(this.options.interval!==1&&this.add(this.options.interval.toString()),this.add(this.plural(this.options.interval)?e("months"):e("month"))),this.bymonthday?this._bymonthday():this.byweekday&&this.byweekday.isWeekdays?this.add(e("on")).add(e("weekdays")):this.byweekday&&this._byweekday()},t.prototype.YEARLY=function(){var e=this.gettext;this.origOptions.bymonth?(this.options.interval!==1&&(this.add(this.options.interval.toString()),this.add(e("years"))),this._bymonth()):(this.options.interval!==1&&this.add(this.options.interval.toString()),this.add(this.plural(this.options.interval)?e("years"):e("year"))),this.bymonthday?this._bymonthday():this.byweekday&&this._byweekday(),this.options.byyearday&&this.add(e("on the")).add(this.list(this.options.byyearday,this.nth,e("and"))).add(e("day")),this.options.byweekno&&this.add(e("in")).add(this.plural(this.options.byweekno.length)?e("weeks"):e("week")).add(this.list(this.options.byweekno,void 0,e("and")))},t.prototype._bymonthday=function(){var e=this.gettext;this.byweekday&&this.byweekday.allWeeks?this.add(e("on")).add(this.list(this.byweekday.allWeeks,this.weekdaytext,e("or"))).add(e("the")).add(this.list(this.bymonthday,this.nth,e("or"))):this.add(e("on the")).add(this.list(this.bymonthday,this.nth,e("and")))},t.prototype._byweekday=function(){var e=this.gettext;this.byweekday.allWeeks&&!this.byweekday.isWeekdays&&this.add(e("on")).add(this.list(this.byweekday.allWeeks,this.weekdaytext)),this.byweekday.someWeeks&&(this.byweekday.allWeeks&&this.add(e("and")),this.add(e("on the")).add(this.list(this.byweekday.someWeeks,this.weekdaytext,e("and"))))},t.prototype._byhour=function(){var e=this.gettext;this.add(e("at")).add(this.list(this.origOptions.byhour,void 0,e("and")))},t.prototype._bymonth=function(){this.add(this.list(this.options.bymonth,this.monthtext,this.gettext("and")))},t.prototype.nth=function(e){e=parseInt(e.toString(),10);var r,n=this.gettext;if(e===-1)return n("last");var a=Math.abs(e);switch(a){case 1:case 21:case 31:r=a+n("st");break;case 2:case 22:r=a+n("nd");break;case 3:case 23:r=a+n("rd");break;default:r=a+n("th")}return e<0?r+" "+n("last"):r},t.prototype.monthtext=function(e){return this.language.monthNames[e-1]},t.prototype.weekdaytext=function(e){var r=_(e)?(e+1)%7:e.getJsWeekday();return(e.n?this.nth(e.n)+" ":"")+this.language.dayNames[r]},t.prototype.plural=function(e){return e%100!==1},t.prototype.add=function(e){return this.text.push(" "),this.text.push(e),this},t.prototype.list=function(e,r,n,a){var i=this;a===void 0&&(a=","),S(e)||(e=[e]);var s=function(u,f,l){for(var d="",c=0;c<u.length;c++)c!==0&&(c===u.length-1?d+=" "+l+" ":d+=f+" "),d+=u[c];return d};r=r||function(u){return u.toString()};var o=function(u){return r&&r.call(i,u)};return n?s(e.map(o),a,n):e.map(o).join(a+" ")},t}(),Rt=function(){function t(e){this.done=!0,this.rules=e}return t.prototype.start=function(e){return this.text=e,this.done=!1,this.nextSymbol()},t.prototype.isDone=function(){return this.done&&this.symbol===null},t.prototype.nextSymbol=function(){var e,r;this.symbol=null,this.value=null;do{if(this.done)return!1;var n=void 0;e=null;for(var a in this.rules){n=this.rules[a];var i=n.exec(this.text);i&&(e===null||i[0].length>e[0].length)&&(e=i,r=a)}if(e!=null&&(this.text=this.text.substr(e[0].length),this.text===""&&(this.done=!0)),e==null){this.done=!0,this.symbol=null,this.value=null;return}}while(r==="SKIP");return this.symbol=r,this.value=e,!0},t.prototype.accept=function(e){if(this.symbol===e){if(this.value){var r=this.value;return this.nextSymbol(),r}return this.nextSymbol(),!0}return!1},t.prototype.acceptNumber=function(){return this.accept("number")},t.prototype.expect=function(e){if(this.accept(e))return!0;throw new Error("expected "+e+" but found "+this.symbol)},t}();function vt(t,e){e===void 0&&(e=oe);var r={},n=new Rt(e.tokens);if(!n.start(t))return null;return a(),r;function a(){n.expect("every");var c=n.acceptNumber();if(c&&(r.interval=parseInt(c[0],10)),n.isDone())throw new Error("Unexpected end");switch(n.symbol){case"day(s)":r.freq=y.DAILY,n.nextSymbol()&&(s(),d());break;case"weekday(s)":r.freq=y.WEEKLY,r.byweekday=[y.MO,y.TU,y.WE,y.TH,y.FR],n.nextSymbol(),s(),d();break;case"week(s)":r.freq=y.WEEKLY,n.nextSymbol()&&(i(),s(),d());break;case"hour(s)":r.freq=y.HOURLY,n.nextSymbol()&&(i(),d());break;case"minute(s)":r.freq=y.MINUTELY,n.nextSymbol()&&(i(),d());break;case"month(s)":r.freq=y.MONTHLY,n.nextSymbol()&&(i(),d());break;case"year(s)":r.freq=y.YEARLY,n.nextSymbol()&&(i(),d());break;case"monday":case"tuesday":case"wednesday":case"thursday":case"friday":case"saturday":case"sunday":r.freq=y.WEEKLY;var p=n.symbol.substr(0,2).toUpperCase();if(r.byweekday=[y[p]],!n.nextSymbol())return;for(;n.accept("comma");){if(n.isDone())throw new Error("Unexpected end");var m=u();if(!m)throw new Error("Unexpected symbol "+n.symbol+", expected weekday");r.byweekday.push(y[m]),n.nextSymbol()}s(),l(),d();break;case"january":case"february":case"march":case"april":case"may":case"june":case"july":case"august":case"september":case"october":case"november":case"december":if(r.freq=y.YEARLY,r.bymonth=[o()],!n.nextSymbol())return;for(;n.accept("comma");){if(n.isDone())throw new Error("Unexpected end");var k=o();if(!k)throw new Error("Unexpected symbol "+n.symbol+", expected month");r.bymonth.push(k),n.nextSymbol()}i(),d();break;default:throw new Error("Unknown symbol")}}function i(){var c=n.accept("on"),p=n.accept("the");if(c||p)do{var m=f(),k=u(),v=o();if(m)k?(n.nextSymbol(),r.byweekday||(r.byweekday=[]),r.byweekday.push(y[k].nth(m))):(r.bymonthday||(r.bymonthday=[]),r.bymonthday.push(m),n.accept("day(s)"));else if(k)n.nextSymbol(),r.byweekday||(r.byweekday=[]),r.byweekday.push(y[k]);else if(n.symbol==="weekday(s)")n.nextSymbol(),r.byweekday||(r.byweekday=[y.MO,y.TU,y.WE,y.TH,y.FR]);else if(n.symbol==="week(s)"){n.nextSymbol();var T=n.acceptNumber();if(!T)throw new Error("Unexpected symbol "+n.symbol+", expected week number");for(r.byweekno=[parseInt(T[0],10)];n.accept("comma");){if(T=n.acceptNumber(),!T)throw new Error("Unexpected symbol "+n.symbol+"; expected monthday");r.byweekno.push(parseInt(T[0],10))}}else if(v)n.nextSymbol(),r.bymonth||(r.bymonth=[]),r.bymonth.push(v);else return}while(n.accept("comma")||n.accept("the")||n.accept("on"))}function s(){var c=n.accept("at");if(c)do{var p=n.acceptNumber();if(!p)throw new Error("Unexpected symbol "+n.symbol+", expected hour");for(r.byhour=[parseInt(p[0],10)];n.accept("comma");){if(p=n.acceptNumber(),!p)throw new Error("Unexpected symbol "+n.symbol+"; expected hour");r.byhour.push(parseInt(p[0],10))}}while(n.accept("comma")||n.accept("at"))}function o(){switch(n.symbol){case"january":return 1;case"february":return 2;case"march":return 3;case"april":return 4;case"may":return 5;case"june":return 6;case"july":return 7;case"august":return 8;case"september":return 9;case"october":return 10;case"november":return 11;case"december":return 12;default:return!1}}function u(){switch(n.symbol){case"monday":case"tuesday":case"wednesday":case"thursday":case"friday":case"saturday":case"sunday":return n.symbol.substr(0,2).toUpperCase();default:return!1}}function f(){switch(n.symbol){case"last":return n.nextSymbol(),-1;case"first":return n.nextSymbol(),1;case"second":return n.nextSymbol(),n.accept("last")?-2:2;case"third":return n.nextSymbol(),n.accept("last")?-3:3;case"nth":var c=parseInt(n.value[1],10);if(c<-366||c>366)throw new Error("Nth out of range: "+c);return n.nextSymbol(),n.accept("last")?-c:c;default:return!1}}function l(){n.accept("on"),n.accept("the");var c=f();if(c)for(r.bymonthday=[c],n.nextSymbol();n.accept("comma");){if(c=f(),!c)throw new Error("Unexpected symbol "+n.symbol+"; expected monthday");r.bymonthday.push(c),n.nextSymbol()}}function d(){if(n.symbol==="until"){var c=Date.parse(n.text);if(!c)throw new Error("Cannot parse until date:"+n.text);r.until=new Date(c)}else n.accept("for")&&(r.count=parseInt(n.value[0],10),n.expect("number"))}}var E;(function(t){t[t.YEARLY=0]="YEARLY",t[t.MONTHLY=1]="MONTHLY",t[t.WEEKLY=2]="WEEKLY",t[t.DAILY=3]="DAILY",t[t.HOURLY=4]="HOURLY",t[t.MINUTELY=5]="MINUTELY",t[t.SECONDLY=6]="SECONDLY"})(E||(E={}));function Ye(t){return t<E.HOURLY}var Ut=function(t,e){return e===void 0&&(e=oe),new y(vt(t,e)||void 0)},$=["count","until","interval","byweekday","bymonthday","bymonth"];H.IMPLEMENTED=[];H.IMPLEMENTED[E.HOURLY]=$;H.IMPLEMENTED[E.MINUTELY]=$;H.IMPLEMENTED[E.DAILY]=["byhour"].concat($);H.IMPLEMENTED[E.WEEKLY]=$;H.IMPLEMENTED[E.MONTHLY]=$;H.IMPLEMENTED[E.YEARLY]=["byweekno","byyearday"].concat($);var _t=function(t,e,r,n){return new H(t,e,r,n).toString()},It=H.isFullyConvertible,ue=function(){function t(e,r,n,a){this.hour=e,this.minute=r,this.second=n,this.millisecond=a||0}return t.prototype.getHours=function(){return this.hour},t.prototype.getMinutes=function(){return this.minute},t.prototype.getSeconds=function(){return this.second},t.prototype.getMilliseconds=function(){return this.millisecond},t.prototype.getTime=function(){return(this.hour*60*60+this.minute*60+this.second)*1e3+this.millisecond},t}(),Wt=function(t){Te(e,t);function e(r,n,a,i,s,o,u){var f=t.call(this,i,s,o,u)||this;return f.year=r,f.month=n,f.day=a,f}return e.fromDate=function(r){return new this(r.getUTCFullYear(),r.getUTCMonth()+1,r.getUTCDate(),r.getUTCHours(),r.getUTCMinutes(),r.getUTCSeconds(),r.valueOf()%1e3)},e.prototype.getWeekday=function(){return Q(new Date(this.getTime()))},e.prototype.getTime=function(){return new Date(Date.UTC(this.year,this.month-1,this.day,this.hour,this.minute,this.second,this.millisecond)).getTime()},e.prototype.getDay=function(){return this.day},e.prototype.getMonth=function(){return this.month},e.prototype.getYear=function(){return this.year},e.prototype.addYears=function(r){this.year+=r},e.prototype.addMonths=function(r){if(this.month+=r,this.month>12){var n=Math.floor(this.month/12),a=N(this.month,12);this.month=a,this.year+=n,this.month===0&&(this.month=12,--this.year)}},e.prototype.addWeekly=function(r,n){n>this.getWeekday()?this.day+=-(this.getWeekday()+1+(6-n))+r*7:this.day+=-(this.getWeekday()-n)+r*7,this.fixDay()},e.prototype.addDaily=function(r){this.day+=r,this.fixDay()},e.prototype.addHours=function(r,n,a){for(n&&(this.hour+=Math.floor((23-this.hour)/r)*r);;){this.hour+=r;var i=de(this.hour,24),s=i.div,o=i.mod;if(s&&(this.hour=o,this.addDaily(s)),I(a)||g(a,this.hour))break}},e.prototype.addMinutes=function(r,n,a,i){for(n&&(this.minute+=Math.floor((1439-(this.hour*60+this.minute))/r)*r);;){this.minute+=r;var s=de(this.minute,60),o=s.div,u=s.mod;if(o&&(this.minute=u,this.addHours(o,!1,a)),(I(a)||g(a,this.hour))&&(I(i)||g(i,this.minute)))break}},e.prototype.addSeconds=function(r,n,a,i,s){for(n&&(this.second+=Math.floor((86399-(this.hour*3600+this.minute*60+this.second))/r)*r);;){this.second+=r;var o=de(this.second,60),u=o.div,f=o.mod;if(u&&(this.second=f,this.addMinutes(u,!1,a,i)),(I(a)||g(a,this.hour))&&(I(i)||g(i,this.minute))&&(I(s)||g(s,this.second)))break}},e.prototype.fixDay=function(){if(!(this.day<=28)){var r=Se(this.year,this.month-1)[1];if(!(this.day<=r))for(;this.day>r;){if(this.day-=r,++this.month,this.month===13&&(this.month=1,++this.year,this.year>dt))return;r=Se(this.year,this.month-1)[1]}}},e.prototype.add=function(r,n){var a=r.freq,i=r.interval,s=r.wkst,o=r.byhour,u=r.byminute,f=r.bysecond;switch(a){case E.YEARLY:return this.addYears(i);case E.MONTHLY:return this.addMonths(i);case E.WEEKLY:return this.addWeekly(i,s);case E.DAILY:return this.addDaily(i);case E.HOURLY:return this.addHours(i,n,o);case E.MINUTELY:return this.addMinutes(i,n,o,u);case E.SECONDLY:return this.addSeconds(i,n,o,u,f)}},e}(ue);function wt(t){for(var e=[],r=Object.keys(t),n=0,a=r;n<a.length;n++){var i=a[n];g(dr,i)||e.push(i),pt(t[i])&&!X(t[i])&&e.push(i)}if(e.length)throw new Error("Invalid options: "+e.join(", "));return A({},t)}function Ct(t){var e=A(A({},xe),wt(t));if(Y(e.byeaster)&&(e.freq=y.YEARLY),!(Y(e.freq)&&y.FREQUENCIES[e.freq]))throw new Error("Invalid frequency: ".concat(e.freq," ").concat(t.freq));if(e.dtstart||(e.dtstart=new Date(new Date().setMilliseconds(0))),Y(e.wkst)?_(e.wkst)||(e.wkst=e.wkst.weekday):e.wkst=y.MO.weekday,Y(e.bysetpos)){_(e.bysetpos)&&(e.bysetpos=[e.bysetpos]);for(var r=0;r<e.bysetpos.length;r++){var n=e.bysetpos[r];if(n===0||!(n>=-366&&n<=366))throw new Error("bysetpos must be between 1 and 366, or between -366 and -1")}}if(!(e.byweekno||D(e.byweekno)||D(e.byyearday)||e.bymonthday||D(e.bymonthday)||Y(e.byweekday)||Y(e.byeaster)))switch(e.freq){case y.YEARLY:e.bymonth||(e.bymonth=e.dtstart.getUTCMonth()+1),e.bymonthday=e.dtstart.getUTCDate();break;case y.MONTHLY:e.bymonthday=e.dtstart.getUTCDate();break;case y.WEEKLY:e.byweekday=[Q(e.dtstart)];break}if(Y(e.bymonth)&&!S(e.bymonth)&&(e.bymonth=[e.bymonth]),Y(e.byyearday)&&!S(e.byyearday)&&_(e.byyearday)&&(e.byyearday=[e.byyearday]),!Y(e.bymonthday))e.bymonthday=[],e.bynmonthday=[];else if(S(e.bymonthday)){for(var a=[],i=[],r=0;r<e.bymonthday.length;r++){var n=e.bymonthday[r];n>0?a.push(n):n<0&&i.push(n)}e.bymonthday=a,e.bynmonthday=i}else e.bymonthday<0?(e.bynmonthday=[e.bymonthday],e.bymonthday=[]):(e.bynmonthday=[],e.bymonthday=[e.bymonthday]);if(Y(e.byweekno)&&!S(e.byweekno)&&(e.byweekno=[e.byweekno]),!Y(e.byweekday))e.bynweekday=null;else if(_(e.byweekday))e.byweekday=[e.byweekday],e.bynweekday=null;else if(Oe(e.byweekday))e.byweekday=[O.fromStr(e.byweekday).weekday],e.bynweekday=null;else if(e.byweekday instanceof O)!e.byweekday.n||e.freq>y.MONTHLY?(e.byweekday=[e.byweekday.weekday],e.bynweekday=null):(e.bynweekday=[[e.byweekday.weekday,e.byweekday.n]],e.byweekday=null);else{for(var s=[],o=[],r=0;r<e.byweekday.length;r++){var u=e.byweekday[r];if(_(u)){s.push(u);continue}else if(Oe(u)){s.push(O.fromStr(u).weekday);continue}!u.n||e.freq>y.MONTHLY?s.push(u.weekday):o.push([u.weekday,u.n])}e.byweekday=D(s)?s:null,e.bynweekday=D(o)?o:null}return Y(e.byhour)?_(e.byhour)&&(e.byhour=[e.byhour]):e.byhour=e.freq<y.HOURLY?[e.dtstart.getUTCHours()]:null,Y(e.byminute)?_(e.byminute)&&(e.byminute=[e.byminute]):e.byminute=e.freq<y.MINUTELY?[e.dtstart.getUTCMinutes()]:null,Y(e.bysecond)?_(e.bysecond)&&(e.bysecond=[e.bysecond]):e.bysecond=e.freq<y.SECONDLY?[e.dtstart.getUTCSeconds()]:null,{parsedOptions:e}}function Ht(t){var e=t.dtstart.getTime()%1e3;if(!Ye(t.freq))return[];var r=[];return t.byhour.forEach(function(n){t.byminute.forEach(function(a){t.bysecond.forEach(function(i){r.push(new ue(n,a,i,e))})})}),r}function we(t){var e=t.split(`
2
2
  `).map(jt).filter(function(r){return r!==null});return A(A({},e[0]),e[1])}function le(t){var e={},r=/DTSTART(?:;TZID=([^:=]+?))?(?::|=)([^;\s]+)/i.exec(t);if(!r)return e;var n=r[1],a=r[2];return n&&(e.tzid=n),e.dtstart=ge(a),e}function jt(t){if(t=t.replace(/^\s+|\s+$/,""),!t.length)return null;var e=/^([A-Z]+?)[:;]/.exec(t.toUpperCase());if(!e)return _e(t);var r=e[1];switch(r.toUpperCase()){case"RRULE":case"EXRULE":return _e(t);case"DTSTART":return le(t);default:throw new Error("Unsupported RFC prop ".concat(r," in ").concat(t))}}function _e(t){var e=t.replace(/^RRULE:/i,""),r=le(e),n=t.replace(/^(?:RRULE|EXRULE):/i,"").split(";");return n.forEach(function(a){var i=a.split("="),s=i[0],o=i[1];switch(s.toUpperCase()){case"FREQ":r.freq=E[o.toUpperCase()];break;case"WKST":r.wkst=U[o.toUpperCase()];break;case"COUNT":case"INTERVAL":case"BYSETPOS":case"BYMONTH":case"BYMONTHDAY":case"BYYEARDAY":case"BYWEEKNO":case"BYHOUR":case"BYMINUTE":case"BYSECOND":var u=qt(o),f=s.toLowerCase();r[f]=u;break;case"BYWEEKDAY":case"BYDAY":r.byweekday=Ft(o);break;case"DTSTART":case"TZID":var l=le(t);r.tzid=l.tzid,r.dtstart=l.dtstart;break;case"UNTIL":r.until=ge(o);break;case"BYEASTER":r.byeaster=Number(o);break;default:throw new Error("Unknown RRULE property '"+s+"'")}}),r}function qt(t){if(t.indexOf(",")!==-1){var e=t.split(",");return e.map(Ie)}return Ie(t)}function Ie(t){return/^[+-]?\d+$/.test(t)?Number(t):t}function Ft(t){var e=t.split(",");return e.map(function(r){if(r.length===2)return U[r];var n=r.match(/^([+-]?\d{1,2})([A-Z]{2})$/);if(!n||n.length<3)throw new SyntaxError("Invalid weekday string: ".concat(r));var a=Number(n[1]),i=n[2],s=U[i].weekday;return new O(s,a)})}var ce=function(){function t(e,r){if(isNaN(e.getTime()))throw new RangeError("Invalid date passed to DateWithZone");this.date=e,this.tzid=r}return Object.defineProperty(t.prototype,"isUTC",{get:function(){return!this.tzid||this.tzid.toUpperCase()==="UTC"},enumerable:!1,configurable:!0}),t.prototype.toString=function(){var e=ke(this.date.getTime(),this.isUTC);return this.isUTC?":".concat(e):";TZID=".concat(this.tzid,":").concat(e)},t.prototype.getTime=function(){return this.date.getTime()},t.prototype.rezonedDate=function(){return this.isUTC?this.date:St(this.date,this.tzid)},t}();function Ee(t){for(var e=[],r="",n=Object.keys(t),a=Object.keys(xe),i=0;i<n.length;i++)if(n[i]!=="tzid"&&g(a,n[i])){var s=n[i].toUpperCase(),o=t[n[i]],u="";if(!(!Y(o)||S(o)&&!o.length)){switch(s){case"FREQ":u=y.FREQUENCIES[t.freq];break;case"WKST":_(o)?u=new O(o).toString():u=o.toString();break;case"BYWEEKDAY":s="BYDAY",u=Yt(o).map(function(p){return p instanceof O?p:S(p)?new O(p[0],p[1]):new O(p)}).toString();break;case"DTSTART":r=Kt(o,t.tzid);break;case"UNTIL":u=ke(o,!t.tzid);break;default:if(S(o)){for(var f=[],l=0;l<o.length;l++)f[l]=String(o[l]);u=f.toString()}else u=String(o)}u&&e.push([s,u])}}var d=e.map(function(p){var m=p[0],k=p[1];return"".concat(m,"=").concat(k.toString())}).join(";"),c="";return d!==""&&(c="RRULE:".concat(d)),[r,c].filter(function(p){return!!p}).join(`
3
3
  `)}function Kt(t,e){return t?"DTSTART"+new ce(new Date(t),e).toString():""}function Pt(t,e){return Array.isArray(t)?!Array.isArray(e)||t.length!==e.length?!1:t.every(function(r,n){return r.getTime()===e[n].getTime()}):t instanceof Date?e instanceof Date&&t.getTime()===e.getTime():t===e}var zt=function(){function t(){this.all=!1,this.before=[],this.after=[],this.between=[]}return t.prototype._cacheAdd=function(e,r,n){r&&(r=r instanceof Date?be(r):Ae(r)),e==="all"?this.all=r:(n._value=r,this[e].push(n))},t.prototype._cacheGet=function(e,r){var n=!1,a=r?Object.keys(r):[],i=function(l){for(var d=0;d<a.length;d++){var c=a[d];if(!Pt(r[c],l[c]))return!0}return!1},s=this[e];if(e==="all")n=this.all;else if(S(s))for(var o=0;o<s.length;o++){var u=s[o];if(!(a.length&&i(u))){n=u._value;break}}if(!n&&this.all){for(var f=new Z(e,r),o=0;o<this.all.length&&f.accept(this.all[o]);o++);n=f.getValue(),this._cacheAdd(e,n,r)}return S(n)?Ae(n):n instanceof Date?be(n):n},t}(),Bt=h(h(h(h(h(h(h(h(h(h(h(h(h([],w(1,31),!0),w(2,28),!0),w(3,31),!0),w(4,30),!0),w(5,31),!0),w(6,30),!0),w(7,31),!0),w(8,31),!0),w(9,30),!0),w(10,31),!0),w(11,30),!0),w(12,31),!0),w(1,7),!0),Zt=h(h(h(h(h(h(h(h(h(h(h(h(h([],w(1,31),!0),w(2,29),!0),w(3,31),!0),w(4,30),!0),w(5,31),!0),w(6,30),!0),w(7,31),!0),w(8,31),!0),w(9,30),!0),w(10,31),!0),w(11,30),!0),w(12,31),!0),w(1,7),!0),Qt=W(1,29),$t=W(1,30),j=W(1,31),M=W(1,32),Gt=h(h(h(h(h(h(h(h(h(h(h(h(h([],M,!0),$t,!0),M,!0),j,!0),M,!0),j,!0),M,!0),M,!0),j,!0),M,!0),j,!0),M,!0),M.slice(0,7),!0),Jt=h(h(h(h(h(h(h(h(h(h(h(h(h([],M,!0),Qt,!0),M,!0),j,!0),M,!0),j,!0),M,!0),M,!0),j,!0),M,!0),j,!0),M,!0),M.slice(0,7),!0),Xt=W(-28,0),Vt=W(-29,0),q=W(-30,0),L=W(-31,0),er=h(h(h(h(h(h(h(h(h(h(h(h(h([],L,!0),Vt,!0),L,!0),q,!0),L,!0),q,!0),L,!0),L,!0),q,!0),L,!0),q,!0),L,!0),L.slice(0,7),!0),tr=h(h(h(h(h(h(h(h(h(h(h(h(h([],L,!0),Xt,!0),L,!0),q,!0),L,!0),q,!0),L,!0),L,!0),q,!0),L,!0),q,!0),L,!0),L.slice(0,7),!0),rr=[0,31,60,91,121,152,182,213,244,274,305,335,366],nr=[0,31,59,90,120,151,181,212,243,273,304,334,365],We=function(){for(var t=[],e=0;e<55;e++)t=t.concat(W(7));return t}();function ar(t,e){var r=K(t,1,1),n=V(t)?366:365,a=V(t+1)?366:365,i=me(r),s=Q(r),o=A(A({yearlen:n,nextyearlen:a,yearordinal:i,yearweekday:s},ir(t)),{wnomask:null});if(I(e.byweekno))return o;o.wnomask=w(0,n+7);var u,f,l=u=N(7-s+e.wkst,7);l>=4?(l=0,f=o.yearlen+N(s-e.wkst,7)):f=n-l;for(var d=Math.floor(f/7),c=N(f,7),p=Math.floor(d+c/4),m=0;m<e.byweekno.length;m++){var k=e.byweekno[m];if(k<0&&(k+=p+1),k>0&&k<=p){var v=void 0;k>1?(v=l+(k-1)*7,l!==u&&(v-=7-u)):v=l;for(var T=0;T<7&&(o.wnomask[v]=1,v++,o.wdaymask[v]!==e.wkst);T++);}}if(g(e.byweekno,1)){var v=l+p*7;if(l!==u&&(v-=7-u),v<n)for(var m=0;m<7&&(o.wnomask[v]=1,v+=1,o.wdaymask[v]!==e.wkst);m++);}if(l){var R=void 0;if(g(e.byweekno,-1))R=-1;else{var P=Q(K(t-1,1,1)),J=N(7-P.valueOf()+e.wkst,7),he=V(t-1)?366:365,F=void 0;J>=4?(J=0,F=he+N(P-e.wkst,7)):F=n-l,R=Math.floor(52+N(F,7)/4)}if(g(e.byweekno,R))for(var v=0;v<l;v++)o.wnomask[v]=1}return o}function ir(t){var e=V(t)?366:365,r=K(t,1,1),n=Q(r);return e===365?{mmask:Bt,mdaymask:Jt,nmdaymask:tr,wdaymask:We.slice(n),mrange:nr}:{mmask:Zt,mdaymask:Gt,nmdaymask:er,wdaymask:We.slice(n),mrange:rr}}function sr(t,e,r,n,a,i){var s={lastyear:t,lastmonth:e,nwdaymask:[]},o=[];if(i.freq===y.YEARLY)if(I(i.bymonth))o=[[0,r]];else for(var u=0;u<i.bymonth.length;u++)e=i.bymonth[u],o.push(n.slice(e-1,e+1));else i.freq===y.MONTHLY&&(o=[n.slice(e-1,e+1)]);if(I(o))return s;s.nwdaymask=w(0,r);for(var u=0;u<o.length;u++)for(var f=o[u],l=f[0],d=f[1]-1,c=0;c<i.bynweekday.length;c++){var p=void 0,m=i.bynweekday[c],k=m[0],v=m[1];v<0?(p=d+(v+1)*7,p-=N(a[p]-k,7)):(p=l+(v-1)*7,p+=N(7-a[p]+k,7)),l<=p&&p<=d&&(s.nwdaymask[p]=1)}return s}function or(t,e){e===void 0&&(e=0);var r=t%19,n=Math.floor(t/100),a=t%100,i=Math.floor(n/4),s=n%4,o=Math.floor((n+8)/25),u=Math.floor((n-o+1)/3),f=Math.floor(19*r+n-i-u+15)%30,l=Math.floor(a/4),d=a%4,c=Math.floor(32+2*s+2*l-f-d)%7,p=Math.floor((r+11*f+22*c)/451),m=Math.floor((f+c-7*p+114)/31),k=(f+c-7*p+114)%31+1,v=Date.UTC(t,m-1,k+e),T=Date.UTC(t,0,1);return[Math.ceil((v-T)/(1e3*60*60*24))]}var ur=function(){function t(e){this.options=e}return t.prototype.rebuild=function(e,r){var n=this.options;if(e!==this.lastyear&&(this.yearinfo=ar(e,n)),D(n.bynweekday)&&(r!==this.lastmonth||e!==this.lastyear)){var a=this.yearinfo,i=a.yearlen,s=a.mrange,o=a.wdaymask;this.monthinfo=sr(e,r,i,s,o,n)}Y(n.byeaster)&&(this.eastermask=or(e,n.byeaster))},Object.defineProperty(t.prototype,"lastyear",{get:function(){return this.monthinfo?this.monthinfo.lastyear:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastmonth",{get:function(){return this.monthinfo?this.monthinfo.lastmonth:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"yearlen",{get:function(){return this.yearinfo.yearlen},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"yearordinal",{get:function(){return this.yearinfo.yearordinal},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"mrange",{get:function(){return this.yearinfo.mrange},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"wdaymask",{get:function(){return this.yearinfo.wdaymask},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"mmask",{get:function(){return this.yearinfo.mmask},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"wnomask",{get:function(){return this.yearinfo.wnomask},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"nwdaymask",{get:function(){return this.monthinfo?this.monthinfo.nwdaymask:[]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"nextyearlen",{get:function(){return this.yearinfo.nextyearlen},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"mdaymask",{get:function(){return this.yearinfo.mdaymask},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"nmdaymask",{get:function(){return this.yearinfo.nmdaymask},enumerable:!1,configurable:!0}),t.prototype.ydayset=function(){return[W(this.yearlen),0,this.yearlen]},t.prototype.mdayset=function(e,r){for(var n=this.mrange[r-1],a=this.mrange[r],i=w(null,this.yearlen),s=n;s<a;s++)i[s]=s;return[i,n,a]},t.prototype.wdayset=function(e,r,n){for(var a=w(null,this.yearlen+7),i=me(K(e,r,n))-this.yearordinal,s=i,o=0;o<7&&(a[i]=i,++i,this.wdaymask[i]!==this.options.wkst);o++);return[a,s,i]},t.prototype.ddayset=function(e,r,n){var a=w(null,this.yearlen),i=me(K(e,r,n))-this.yearordinal;return a[i]=i,[a,i,i+1]},t.prototype.htimeset=function(e,r,n,a){var i=this,s=[];return this.options.byminute.forEach(function(o){s=s.concat(i.mtimeset(e,o,n,a))}),ee(s),s},t.prototype.mtimeset=function(e,r,n,a){var i=this.options.bysecond.map(function(s){return new ue(e,r,s,a)});return ee(i),i},t.prototype.stimeset=function(e,r,n,a){return[new ue(e,r,n,a)]},t.prototype.getdayset=function(e){switch(e){case E.YEARLY:return this.ydayset.bind(this);case E.MONTHLY:return this.mdayset.bind(this);case E.WEEKLY:return this.wdayset.bind(this);case E.DAILY:return this.ddayset.bind(this);default:return this.ddayset.bind(this)}},t.prototype.gettimeset=function(e){switch(e){case E.HOURLY:return this.htimeset.bind(this);case E.MINUTELY:return this.mtimeset.bind(this);case E.SECONDLY:return this.stimeset.bind(this)}},t}();function lr(t,e,r,n,a,i){for(var s=[],o=0;o<t.length;o++){var u=void 0,f=void 0,l=t[o];l<0?(u=Math.floor(l/e.length),f=N(l,e.length)):(u=Math.floor((l-1)/e.length),f=N(l-1,e.length));for(var d=[],c=r;c<n;c++){var p=i[c];Y(p)&&d.push(p)}var m=void 0;u<0?m=d.slice(u)[0]:m=d[u];var k=e[f],v=mt(a.yearordinal+m),T=bt(v,k);g(s,T)||s.push(T)}return ee(s),s}function Et(t,e){var r=e.dtstart,n=e.freq,a=e.interval,i=e.until,s=e.bysetpos,o=e.count;if(o===0||a===0)return C(t);var u=Wt.fromDate(r),f=new ur(e);f.rebuild(u.year,u.month);for(var l=fr(f,u,e);;){var d=f.getdayset(n)(u.year,u.month,u.day),c=d[0],p=d[1],m=d[2],k=hr(c,p,m,f,e);if(D(s))for(var v=lr(s,l,p,m,f,c),T=0;T<v.length;T++){var R=v[T];if(i&&R>i)return C(t);if(R>=r){var P=Ce(R,e);if(!t.accept(P)||o&&(--o,!o))return C(t)}}else for(var T=p;T<m;T++){var J=c[T];if(Y(J))for(var he=mt(f.yearordinal+J),F=0;F<l.length;F++){var gt=l[F],R=bt(he,gt);if(i&&R>i)return C(t);if(R>=r){var P=Ce(R,e);if(!t.accept(P)||o&&(--o,!o))return C(t)}}}if(e.interval===0||(u.add(e,k),u.year>dt))return C(t);Ye(n)||(l=f.gettimeset(n)(u.hour,u.minute,u.second,0)),f.rebuild(u.year,u.month)}}function cr(t,e,r){var n=r.bymonth,a=r.byweekno,i=r.byweekday,s=r.byeaster,o=r.bymonthday,u=r.bynmonthday,f=r.byyearday;return D(n)&&!g(n,t.mmask[e])||D(a)&&!t.wnomask[e]||D(i)&&!g(i,t.wdaymask[e])||D(t.nwdaymask)&&!t.nwdaymask[e]||s!==null&&!g(t.eastermask,e)||(D(o)||D(u))&&!g(o,t.mdaymask[e])&&!g(u,t.nmdaymask[e])||D(f)&&(e<t.yearlen&&!g(f,e+1)&&!g(f,-t.yearlen+e)||e>=t.yearlen&&!g(f,e+1-t.yearlen)&&!g(f,-t.nextyearlen+e-t.yearlen))}function Ce(t,e){return new ce(t,e.tzid).rezonedDate()}function C(t){return t.getValue()}function hr(t,e,r,n,a){for(var i=!1,s=e;s<r;s++){var o=t[s];i=cr(n,o,a),i&&(t[o]=null)}return i}function fr(t,e,r){var n=r.freq,a=r.byhour,i=r.byminute,s=r.bysecond;return Ye(n)?Ht(r):n>=y.HOURLY&&D(a)&&!g(a,e.hour)||n>=y.MINUTELY&&D(i)&&!g(i,e.minute)||n>=y.SECONDLY&&D(s)&&!g(s,e.second)?[]:t.gettimeset(n)(e.hour,e.minute,e.second,e.millisecond)}var U={MO:new O(0),TU:new O(1),WE:new O(2),TH:new O(3),FR:new O(4),SA:new O(5),SU:new O(6)},xe={freq:E.YEARLY,dtstart:null,interval:1,wkst:U.MO,count:null,until:null,tzid:null,bysetpos:null,bymonth:null,bymonthday:null,bynmonthday:null,byyearday:null,byweekno:null,byweekday:null,bynweekday:null,byhour:null,byminute:null,bysecond:null,byeaster:null},dr=Object.keys(xe),y=function(){function t(e,r){e===void 0&&(e={}),r===void 0&&(r=!1),this._cache=r?null:new zt,this.origOptions=wt(e);var n=Ct(e).parsedOptions;this.options=n}return t.parseText=function(e,r){return vt(e,r)},t.fromText=function(e,r){return Ut(e,r)},t.fromString=function(e){return new t(t.parseString(e)||void 0)},t.prototype._iter=function(e){return Et(e,this.options)},t.prototype._cacheGet=function(e,r){return this._cache?this._cache._cacheGet(e,r):!1},t.prototype._cacheAdd=function(e,r,n){if(this._cache)return this._cache._cacheAdd(e,r,n)},t.prototype.all=function(e){if(e)return this._iter(new Re("all",{},e));var r=this._cacheGet("all");return r===!1&&(r=this._iter(new Z("all",{})),this._cacheAdd("all",r)),r},t.prototype.between=function(e,r,n,a){if(n===void 0&&(n=!1),!X(e)||!X(r))throw new Error("Invalid date passed in to RRule.between");var i={before:r,after:e,inc:n};if(a)return this._iter(new Re("between",i,a));var s=this._cacheGet("between",i);return s===!1&&(s=this._iter(new Z("between",i)),this._cacheAdd("between",s,i)),s},t.prototype.before=function(e,r){if(r===void 0&&(r=!1),!X(e))throw new Error("Invalid date passed in to RRule.before");var n={dt:e,inc:r},a=this._cacheGet("before",n);return a===!1&&(a=this._iter(new Z("before",n)),this._cacheAdd("before",a,n)),a},t.prototype.after=function(e,r){if(r===void 0&&(r=!1),!X(e))throw new Error("Invalid date passed in to RRule.after");var n={dt:e,inc:r},a=this._cacheGet("after",n);return a===!1&&(a=this._iter(new Z("after",n)),this._cacheAdd("after",a,n)),a},t.prototype.count=function(){return this.all().length},t.prototype.toString=function(){return Ee(this.origOptions)},t.prototype.toText=function(e,r,n){return _t(this,e,r,n)},t.prototype.isFullyConvertibleToText=function(){return It(this)},t.prototype.clone=function(){return new t(this.origOptions)},t.FREQUENCIES=["YEARLY","MONTHLY","WEEKLY","DAILY","HOURLY","MINUTELY","SECONDLY"],t.YEARLY=E.YEARLY,t.MONTHLY=E.MONTHLY,t.WEEKLY=E.WEEKLY,t.DAILY=E.DAILY,t.HOURLY=E.HOURLY,t.MINUTELY=E.MINUTELY,t.SECONDLY=E.SECONDLY,t.MO=U.MO,t.TU=U.TU,t.WE=U.WE,t.TH=U.TH,t.FR=U.FR,t.SA=U.SA,t.SU=U.SU,t.parseString=we,t.optionsToString=Ee,t}();function yr(t,e,r,n,a,i){var s={},o=t.accept;function u(c,p){r.forEach(function(m){m.between(c,p,!0).forEach(function(k){s[Number(k)]=!0})})}a.forEach(function(c){var p=new ce(c,i).rezonedDate();s[Number(p)]=!0}),t.accept=function(c){var p=Number(c);return isNaN(p)?o.call(this,c):!s[p]&&(u(new Date(p-1),new Date(p+1)),!s[p])?(s[p]=!0,o.call(this,c)):!0},t.method==="between"&&(u(t.args.after,t.args.before),t.accept=function(c){var p=Number(c);return s[p]?!0:(s[p]=!0,o.call(this,c))});for(var f=0;f<n.length;f++){var l=new ce(n[f],i).rezonedDate();if(!t.accept(new Date(l.getTime())))break}e.forEach(function(c){Et(t,c.options)});var d=t._result;switch(ee(d),t.method){case"all":case"between":return d;case"before":return d.length&&d[d.length-1]||null;case"after":default:return d.length&&d[0]||null}}var He={dtstart:null,cache:!1,unfold:!1,forceset:!1,compatible:!1,tzid:null};function pr(t,e){var r=[],n=[],a=[],i=[],s=le(t),o=s.dtstart,u=s.tzid,f=Er(t,e.unfold);return f.forEach(function(l){var d;if(l){var c=wr(l),p=c.name,m=c.parms,k=c.value;switch(p.toUpperCase()){case"RRULE":if(m.length)throw new Error("unsupported RRULE parm: ".concat(m.join(",")));r.push(we(l));break;case"RDATE":var v=(d=/RDATE(?:;TZID=([^:=]+))?/i.exec(l))!==null&&d!==void 0?d:[],T=v[1];T&&!u&&(u=T),n=n.concat(qe(k,m));break;case"EXRULE":if(m.length)throw new Error("unsupported EXRULE parm: ".concat(m.join(",")));a.push(we(k));break;case"EXDATE":i=i.concat(qe(k,m));break;case"DTSTART":break;default:throw new Error("unsupported property: "+p)}}}),{dtstart:o,tzid:u,rrulevals:r,rdatevals:n,exrulevals:a,exdatevals:i}}function mr(t,e){var r=pr(t,e),n=r.rrulevals,a=r.rdatevals,i=r.exrulevals,s=r.exdatevals,o=r.dtstart,u=r.tzid,f=e.cache===!1;if(e.compatible&&(e.forceset=!0,e.unfold=!0),e.forceset||n.length>1||a.length||i.length||s.length){var l=new gr(f);return l.dtstart(o),l.tzid(u||void 0),n.forEach(function(c){l.rrule(new y(ye(c,o,u),f))}),a.forEach(function(c){l.rdate(c)}),i.forEach(function(c){l.exrule(new y(ye(c,o,u),f))}),s.forEach(function(c){l.exdate(c)}),e.compatible&&e.dtstart&&l.rdate(o),l}var d=n[0]||{};return new y(ye(d,d.dtstart||e.dtstart||o,d.tzid||e.tzid||u),f)}function je(t,e){return e===void 0&&(e={}),mr(t,br(e))}function ye(t,e,r){return A(A({},t),{dtstart:e,tzid:r})}function br(t){var e=[],r=Object.keys(t),n=Object.keys(He);if(r.forEach(function(a){g(n,a)||e.push(a)}),e.length)throw new Error("Invalid options: "+e.join(", "));return A(A({},He),t)}function vr(t){if(t.indexOf(":")===-1)return{name:"RRULE",value:t};var e=xt(t,":",1),r=e[0],n=e[1];return{name:r,value:n}}function wr(t){var e=vr(t),r=e.name,n=e.value,a=r.split(";");if(!a)throw new Error("empty property name");return{name:a[0].toUpperCase(),parms:a.slice(1),value:n}}function Er(t,e){if(e===void 0&&(e=!1),t=t&&t.trim(),!t)throw new Error("Invalid empty string");if(!e)return t.split(/\s/);for(var r=t.split(`
4
4
  `),n=0;n<r.length;){var a=r[n]=r[n].replace(/\s+$/g,"");a?n>0&&a[0]===" "?(r[n-1]+=a.slice(1),r.splice(n,1)):n+=1:r.splice(n,1)}return r}function kr(t){t.forEach(function(e){if(!/(VALUE=DATE(-TIME)?)|(TZID=)/.test(e))throw new Error("unsupported RDATE/EXDATE parm: "+e)})}function qe(t,e){return kr(e),t.split(",").map(function(r){return ge(r)})}function Fe(t){var e=this;return function(r){if(r!==void 0&&(e["_".concat(t)]=r),e["_".concat(t)]!==void 0)return e["_".concat(t)];for(var n=0;n<e._rrule.length;n++){var a=e._rrule[n].origOptions[t];if(a)return a}}}var gr=function(t){Te(e,t);function e(r){r===void 0&&(r=!1);var n=t.call(this,{},r)||this;return n.dtstart=Fe.apply(n,["dtstart"]),n.tzid=Fe.apply(n,["tzid"]),n._rrule=[],n._rdate=[],n._exrule=[],n._exdate=[],n}return e.prototype._iter=function(r){return yr(r,this._rrule,this._exrule,this._rdate,this._exdate,this.tzid())},e.prototype.rrule=function(r){Ke(r,this._rrule)},e.prototype.exrule=function(r){Ke(r,this._exrule)},e.prototype.rdate=function(r){Pe(r,this._rdate)},e.prototype.exdate=function(r){Pe(r,this._exdate)},e.prototype.rrules=function(){return this._rrule.map(function(r){return je(r.toString())})},e.prototype.exrules=function(){return this._exrule.map(function(r){return je(r.toString())})},e.prototype.rdates=function(){return this._rdate.map(function(r){return new Date(r.getTime())})},e.prototype.exdates=function(){return this._exdate.map(function(r){return new Date(r.getTime())})},e.prototype.valueOf=function(){var r=[];return!this._rrule.length&&this._dtstart&&(r=r.concat(Ee({dtstart:this._dtstart}))),this._rrule.forEach(function(n){r=r.concat(n.toString().split(`
@@ -1,4 +1,4 @@
1
- import{r as D,j as X}from"./iframe-rPhsLpUF.js";import{G as Y,P as $,M as J,V as m,R as K,T as Q}from"./Mesh-CwXV3WjE.js";import{V as Z}from"./Vec2-Cf1C3GIc.js";import{C as j}from"./Color-YRkaOI4u.js";import"./preload-helper-C1FmrZbK.js";const v=new m;class ee{constructor(o,{points:t,vertex:w=te,fragment:E=oe,uniforms:r={},attributes:R={}}){this.gl=o,this.points=t,this.count=t.length,this.position=new Float32Array(this.count*3*2),this.prev=new Float32Array(this.count*3*2),this.next=new Float32Array(this.count*3*2);const h=new Float32Array(this.count*1*2),y=new Float32Array(this.count*2*2),p=new Uint16Array((this.count-1)*3*2);for(let l=0;l<this.count;l++){h.set([-1,1],l*2);const n=l/(this.count-1);if(y.set([0,n,1,n],l*4),l===this.count-1)continue;const s=l*2;p.set([s+0,s+1,s+2],(s+0)*3),p.set([s+2,s+1,s+3],(s+1)*3)}const A=this.geometry=new Y(o,Object.assign(R,{position:{size:3,data:this.position},prev:{size:3,data:this.prev},next:{size:3,data:this.next},side:{size:1,data:h},uv:{size:2,data:y},index:{size:1,data:p}}));this.updateGeometry(),r.uResolution||(this.resolution=r.uResolution={value:new Z}),r.uDPR||(this.dpr=r.uDPR={value:1}),r.uThickness||(this.thickness=r.uThickness={value:1}),r.uColor||(this.color=r.uColor={value:new j("#000")}),r.uMiter||(this.miter=r.uMiter={value:1}),this.resize();const u=this.program=new $(o,{vertex:w,fragment:E,uniforms:r});this.mesh=new J(o,{geometry:A,program:u})}updateGeometry(){this.points.forEach((o,t)=>{o.toArray(this.position,t*3*2),o.toArray(this.position,t*3*2+3),t?(o.toArray(this.next,(t-1)*3*2),o.toArray(this.next,(t-1)*3*2+3)):(v.copy(o).sub(this.points[t+1]).add(o),v.toArray(this.prev,t*3*2),v.toArray(this.prev,t*3*2+3)),t===this.points.length-1?(v.copy(o).sub(this.points[t-1]).add(o),v.toArray(this.next,t*3*2),v.toArray(this.next,t*3*2+3)):(o.toArray(this.prev,(t+1)*3*2),o.toArray(this.prev,(t+1)*3*2+3))}),this.geometry.attributes.position.needsUpdate=!0,this.geometry.attributes.prev.needsUpdate=!0,this.geometry.attributes.next.needsUpdate=!0}resize(){this.resolution&&this.resolution.value.set(this.gl.canvas.width,this.gl.canvas.height),this.dpr&&(this.dpr.value=this.gl.renderer.dpr)}}const te=`
1
+ import{r as D,j as X}from"./iframe-D8qqeeGJ.js";import{G as Y,P as $,M as J,V as m,R as K,T as Q}from"./Mesh-CwXV3WjE.js";import{V as Z}from"./Vec2-Cf1C3GIc.js";import{C as j}from"./Color-YRkaOI4u.js";import"./preload-helper-C1FmrZbK.js";const v=new m;class ee{constructor(o,{points:t,vertex:w=te,fragment:E=oe,uniforms:r={},attributes:R={}}){this.gl=o,this.points=t,this.count=t.length,this.position=new Float32Array(this.count*3*2),this.prev=new Float32Array(this.count*3*2),this.next=new Float32Array(this.count*3*2);const h=new Float32Array(this.count*1*2),y=new Float32Array(this.count*2*2),p=new Uint16Array((this.count-1)*3*2);for(let l=0;l<this.count;l++){h.set([-1,1],l*2);const n=l/(this.count-1);if(y.set([0,n,1,n],l*4),l===this.count-1)continue;const s=l*2;p.set([s+0,s+1,s+2],(s+0)*3),p.set([s+2,s+1,s+3],(s+1)*3)}const A=this.geometry=new Y(o,Object.assign(R,{position:{size:3,data:this.position},prev:{size:3,data:this.prev},next:{size:3,data:this.next},side:{size:1,data:h},uv:{size:2,data:y},index:{size:1,data:p}}));this.updateGeometry(),r.uResolution||(this.resolution=r.uResolution={value:new Z}),r.uDPR||(this.dpr=r.uDPR={value:1}),r.uThickness||(this.thickness=r.uThickness={value:1}),r.uColor||(this.color=r.uColor={value:new j("#000")}),r.uMiter||(this.miter=r.uMiter={value:1}),this.resize();const u=this.program=new $(o,{vertex:w,fragment:E,uniforms:r});this.mesh=new J(o,{geometry:A,program:u})}updateGeometry(){this.points.forEach((o,t)=>{o.toArray(this.position,t*3*2),o.toArray(this.position,t*3*2+3),t?(o.toArray(this.next,(t-1)*3*2),o.toArray(this.next,(t-1)*3*2+3)):(v.copy(o).sub(this.points[t+1]).add(o),v.toArray(this.prev,t*3*2),v.toArray(this.prev,t*3*2+3)),t===this.points.length-1?(v.copy(o).sub(this.points[t-1]).add(o),v.toArray(this.next,t*3*2),v.toArray(this.next,t*3*2+3)):(o.toArray(this.prev,(t+1)*3*2),o.toArray(this.prev,(t+1)*3*2+3))}),this.geometry.attributes.position.needsUpdate=!0,this.geometry.attributes.prev.needsUpdate=!0,this.geometry.attributes.next.needsUpdate=!0}resize(){this.resolution&&this.resolution.value.set(this.gl.canvas.width,this.gl.canvas.height),this.dpr&&(this.dpr.value=this.gl.renderer.dpr)}}const te=`
2
2
  precision highp float;
3
3
 
4
4
  attribute vec3 position;
@@ -1,4 +1,4 @@
1
- import{r as u,j as N}from"./iframe-rPhsLpUF.js";import{R as G,P as j,M as H}from"./Mesh-CwXV3WjE.js";import{T as $}from"./Triangle-64ffRKNB.js";import"./preload-helper-C1FmrZbK.js";const O={"ripple-grid-container":"_ripple-grid-container_1783h_1"},P=({enableRainbow:d=!1,gridColor:v="#ffffff",rippleIntensity:m=.05,gridSize:p=10,gridThickness:g=15,fadeDistance:h=1.5,vignetteStrength:R=2,glowIntensity:y=.1,opacity:x=1,gridRotation:I=0,mouseInteraction:i=!0,mouseInteractionRadius:w=1})=>{const r=u.useRef(null),l=u.useRef({x:.5,y:.5}),T=u.useRef({x:.5,y:.5}),b=u.useRef(0),n=u.useRef(null);return u.useEffect(()=>{if(!r.current)return;const E=o=>{const t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(o);return t?[parseInt(t[1],16)/255,parseInt(t[2],16)/255,parseInt(t[3],16)/255]:[1,1,1]},c=new G({dpr:Math.min(window.devicePixelRatio,2),alpha:!0}),e=c.gl;e.enable(e.BLEND),e.blendFunc(e.SRC_ALPHA,e.ONE_MINUS_SRC_ALPHA),e.canvas.style.width="100%",e.canvas.style.height="100%",r.current.appendChild(e.canvas);const z=`
1
+ import{r as u,j as N}from"./iframe-D8qqeeGJ.js";import{R as G,P as j,M as H}from"./Mesh-CwXV3WjE.js";import{T as $}from"./Triangle-64ffRKNB.js";import"./preload-helper-C1FmrZbK.js";const O={"ripple-grid-container":"_ripple-grid-container_1783h_1"},P=({enableRainbow:d=!1,gridColor:v="#ffffff",rippleIntensity:m=.05,gridSize:p=10,gridThickness:g=15,fadeDistance:h=1.5,vignetteStrength:R=2,glowIntensity:y=.1,opacity:x=1,gridRotation:I=0,mouseInteraction:i=!0,mouseInteractionRadius:w=1})=>{const r=u.useRef(null),l=u.useRef({x:.5,y:.5}),T=u.useRef({x:.5,y:.5}),b=u.useRef(0),n=u.useRef(null);return u.useEffect(()=>{if(!r.current)return;const E=o=>{const t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(o);return t?[parseInt(t[1],16)/255,parseInt(t[2],16)/255,parseInt(t[3],16)/255]:[1,1,1]},c=new G({dpr:Math.min(window.devicePixelRatio,2),alpha:!0}),e=c.gl;e.enable(e.BLEND),e.blendFunc(e.SRC_ALPHA,e.ONE_MINUS_SRC_ALPHA),e.canvas.style.width="100%",e.canvas.style.height="100%",r.current.appendChild(e.canvas);const z=`
2
2
  attribute vec2 position;
3
3
  varying vec2 vUv;
4
4
  void main() {
@@ -1,4 +1,4 @@
1
- import{r as s,j as c}from"./iframe-rPhsLpUF.js";import{m as C}from"./proxy-uJ8evSzT.js";import{A as Q}from"./index-B9UM6a_o.js";import"./preload-helper-C1FmrZbK.js";import"./MotionConfigContext-HXxMOMJo.js";const i={"text-rotate":"_text-rotate_1n8cd_1","text-rotate-sr-only":"_text-rotate-sr-only_1n8cd_8","text-rotate-word":"_text-rotate-word_1n8cd_20","text-rotate-lines":"_text-rotate-lines_1n8cd_24","text-rotate-element":"_text-rotate-element_1n8cd_30","text-rotate-space":"_text-rotate-space_1n8cd_34"};function h(...y){return y.filter(Boolean).join(" ")}const v=s.forwardRef((y,D)=>{const{texts:o,transition:N={type:"spring",damping:25,stiffness:300},initial:w={y:"100%",opacity:0},animate:A={y:0,opacity:1},exit:E={y:"-120%",opacity:0},animatePresenceMode:F="wait",animatePresenceInitial:H=!1,rotationInterval:j=2e3,staggerDuration:m=0,staggerFrom:u="first",loop:d=!0,auto:M=!0,splitBy:p="characters",onNext:_,mainClassName:P,splitLevelClassName:L,elementLevelClassName:W,...$}=y,[e,q]=s.useState(0),z=t=>{if(typeof Intl<"u"&&Intl.Segmenter){const a=new Intl.Segmenter("en",{granularity:"grapheme"});return Array.from(a.segment(t),r=>r.segment)}return Array.from(t)},G=s.useMemo(()=>{const t=o[e];if(p==="characters"){const a=t.split(" ");return a.map((r,n)=>({characters:z(r),needsSpace:n!==a.length-1}))}return p==="words"?t.split(" ").map((a,r,n)=>({characters:[a],needsSpace:r!==n.length-1})):p==="lines"?t.split(`
1
+ import{r as s,j as c}from"./iframe-D8qqeeGJ.js";import{m as C}from"./proxy-1W9qMPm5.js";import{A as Q}from"./index-CJyQ6SwC.js";import"./preload-helper-C1FmrZbK.js";import"./MotionConfigContext-cqdgvETc.js";const i={"text-rotate":"_text-rotate_1n8cd_1","text-rotate-sr-only":"_text-rotate-sr-only_1n8cd_8","text-rotate-word":"_text-rotate-word_1n8cd_20","text-rotate-lines":"_text-rotate-lines_1n8cd_24","text-rotate-element":"_text-rotate-element_1n8cd_30","text-rotate-space":"_text-rotate-space_1n8cd_34"};function h(...y){return y.filter(Boolean).join(" ")}const v=s.forwardRef((y,D)=>{const{texts:o,transition:N={type:"spring",damping:25,stiffness:300},initial:w={y:"100%",opacity:0},animate:A={y:0,opacity:1},exit:E={y:"-120%",opacity:0},animatePresenceMode:F="wait",animatePresenceInitial:H=!1,rotationInterval:j=2e3,staggerDuration:m=0,staggerFrom:u="first",loop:d=!0,auto:M=!0,splitBy:p="characters",onNext:_,mainClassName:P,splitLevelClassName:L,elementLevelClassName:W,...$}=y,[e,q]=s.useState(0),z=t=>{if(typeof Intl<"u"&&Intl.Segmenter){const a=new Intl.Segmenter("en",{granularity:"grapheme"});return Array.from(a.segment(t),r=>r.segment)}return Array.from(t)},G=s.useMemo(()=>{const t=o[e];if(p==="characters"){const a=t.split(" ");return a.map((r,n)=>({characters:z(r),needsSpace:n!==a.length-1}))}return p==="words"?t.split(" ").map((a,r,n)=>({characters:[a],needsSpace:r!==n.length-1})):p==="lines"?t.split(`
2
2
  `).map((a,r,n)=>({characters:[a],needsSpace:r!==n.length-1})):t.split(p).map((a,r,n)=>({characters:[a],needsSpace:r!==n.length-1}))},[o,e,p]),J=s.useCallback((t,a)=>{const r=a;if(u==="first")return t*m;if(u==="last")return(r-1-t)*m;if(u==="center"){const n=Math.floor(r/2);return Math.abs(n-t)*m}if(u==="random"){const n=Math.floor(Math.random()*r);return Math.abs(n-t)*m}return Math.abs(u-t)*m},[u,m]),l=s.useCallback(t=>{q(t),_&&_(t)},[_]),x=s.useCallback(()=>{const t=e===o.length-1?d?0:e:e+1;t!==e&&l(t)},[e,o.length,d,l]),S=s.useCallback(()=>{const t=e===0?d?o.length-1:e:e-1;t!==e&&l(t)},[e,o.length,d,l]),R=s.useCallback(t=>{const a=Math.max(0,Math.min(t,o.length-1));a!==e&&l(a)},[o.length,e,l]),T=s.useCallback(()=>{e!==0&&l(0)},[e,l]);return s.useImperativeHandle(D,()=>({next:x,previous:S,jumpTo:R,reset:T}),[x,S,R,T]),s.useEffect(()=>{if(!M)return;const t=setInterval(x,j);return()=>clearInterval(t)},[x,j,M]),c.jsxs(C.span,{className:h(i["text-rotate"],P),...$,layout:!0,transition:N,children:[c.jsx("span",{className:`${i["text-rotate-sr-only"]}`,children:o[e]}),c.jsx(Q,{mode:F,initial:H,children:c.jsx(C.span,{className:h(p==="lines"?i["text-rotate-lines"]:i["text-rotate"]),layout:!0,"aria-hidden":"true",children:G.map((t,a,r)=>{const n=r.slice(0,a).reduce((I,g)=>I+g.characters.length,0);return c.jsxs("span",{className:h(i["text-rotate-word"],L),children:[t.characters.map((I,g)=>c.jsx(C.span,{initial:w,animate:A,exit:E,transition:{...N,delay:J(n+g,r.reduce((K,O)=>K+O.characters.length,0))},className:h(i["text-rotate-element"],W),children:I},g)),t.needsSpace&&c.jsx("span",{className:`${i["text-rotate-space"]}`,children:" "})]},a)})},e)})]})});v.displayName="RotatingText";v.__docgenInfo={description:"",methods:[],displayName:"RotatingText"};const tt={title:"ReactBits/TextAnimations/RotatingText",component:v,parameters:{layout:"fullscreen"}},f={args:{texts:["Hello","World","React","Bits"],rotationInterval:2e3,loop:!0,auto:!0,splitBy:"characters",staggerDuration:0,staggerFrom:"first"}};var b,B,k;f.parameters={...f.parameters,docs:{...(b=f.parameters)==null?void 0:b.docs,source:{originalSource:`{
3
3
  args: {
4
4
  texts: ['Hello', 'World', 'React', 'Bits'],
@@ -1,4 +1,4 @@
1
- import{r as s,j as c}from"./iframe-rPhsLpUF.js";import{g as _}from"./index-C8pce-KX.js";import{S as q}from"./ScrollTrigger-D1XJUMov.js";import"./preload-helper-C1FmrZbK.js";const v="_char_46mmt_13",n={"scroll-float":"_scroll-float_46mmt_1","scroll-float-text":"_scroll-float-text_46mmt_5",char:v};_.registerPlugin(q);const h=({children:l,scrollContainerRef:e,containerClassName:S="",textClassName:y="",animationDuration:u=1,ease:m="back.inOut(2)",scrollStart:i="center bottom+=50%",scrollEnd:f="bottom bottom-=40%",stagger:d=.03})=>{const p=s.useRef(null),N=s.useMemo(()=>(typeof l=="string"?l:"").split("").map((a,o)=>c.jsx("span",{className:`${n.char}`,children:a===" "?" ":a},o)),[l]);return s.useEffect(()=>{const t=p.current;if(!t)return;const a=e&&e.current?e.current:window,o=t.querySelectorAll(".char");_.fromTo(o,{willChange:"opacity, transform",opacity:0,yPercent:120,scaleY:2.3,scaleX:.7,transformOrigin:"50% 0%"},{duration:u,ease:m,opacity:1,yPercent:0,scaleY:1,scaleX:1,stagger:d,scrollTrigger:{trigger:t,scroller:a,start:i,end:f,scrub:!0}})},[e,u,m,i,f,d]),c.jsx("h2",{ref:p,className:`${n["scroll-float"]} ${S}`,children:c.jsx("span",{className:`${n["scroll-float-text"]} ${y}`,children:N})})};h.__docgenInfo={description:"",methods:[],displayName:"ScrollFloat",props:{containerClassName:{defaultValue:{value:"''",computed:!1},required:!1},textClassName:{defaultValue:{value:"''",computed:!1},required:!1},animationDuration:{defaultValue:{value:"1",computed:!1},required:!1},ease:{defaultValue:{value:"'back.inOut(2)'",computed:!1},required:!1},scrollStart:{defaultValue:{value:"'center bottom+=50%'",computed:!1},required:!1},scrollEnd:{defaultValue:{value:"'bottom bottom-=40%'",computed:!1},required:!1},stagger:{defaultValue:{value:"0.03",computed:!1},required:!1}}};const C={title:"ReactBits/TextAnimations/ScrollFloat",component:h,parameters:{layout:"fullscreen"}},r={args:{children:"Hello World",containerClassName:"",textClassName:"",animationDuration:1,ease:"back.inOut(2)",scrollStart:"center bottom+=50%",scrollEnd:"bottom bottom-=40%",stagger:.03}};var g,x,b;r.parameters={...r.parameters,docs:{...(g=r.parameters)==null?void 0:g.docs,source:{originalSource:`{
1
+ import{r as s,j as c}from"./iframe-D8qqeeGJ.js";import{g as _}from"./index-C8pce-KX.js";import{S as q}from"./ScrollTrigger-D1XJUMov.js";import"./preload-helper-C1FmrZbK.js";const v="_char_46mmt_13",n={"scroll-float":"_scroll-float_46mmt_1","scroll-float-text":"_scroll-float-text_46mmt_5",char:v};_.registerPlugin(q);const h=({children:l,scrollContainerRef:e,containerClassName:S="",textClassName:y="",animationDuration:u=1,ease:m="back.inOut(2)",scrollStart:i="center bottom+=50%",scrollEnd:f="bottom bottom-=40%",stagger:d=.03})=>{const p=s.useRef(null),N=s.useMemo(()=>(typeof l=="string"?l:"").split("").map((a,o)=>c.jsx("span",{className:`${n.char}`,children:a===" "?" ":a},o)),[l]);return s.useEffect(()=>{const t=p.current;if(!t)return;const a=e&&e.current?e.current:window,o=t.querySelectorAll(".char");_.fromTo(o,{willChange:"opacity, transform",opacity:0,yPercent:120,scaleY:2.3,scaleX:.7,transformOrigin:"50% 0%"},{duration:u,ease:m,opacity:1,yPercent:0,scaleY:1,scaleX:1,stagger:d,scrollTrigger:{trigger:t,scroller:a,start:i,end:f,scrub:!0}})},[e,u,m,i,f,d]),c.jsx("h2",{ref:p,className:`${n["scroll-float"]} ${S}`,children:c.jsx("span",{className:`${n["scroll-float-text"]} ${y}`,children:N})})};h.__docgenInfo={description:"",methods:[],displayName:"ScrollFloat",props:{containerClassName:{defaultValue:{value:"''",computed:!1},required:!1},textClassName:{defaultValue:{value:"''",computed:!1},required:!1},animationDuration:{defaultValue:{value:"1",computed:!1},required:!1},ease:{defaultValue:{value:"'back.inOut(2)'",computed:!1},required:!1},scrollStart:{defaultValue:{value:"'center bottom+=50%'",computed:!1},required:!1},scrollEnd:{defaultValue:{value:"'bottom bottom-=40%'",computed:!1},required:!1},stagger:{defaultValue:{value:"0.03",computed:!1},required:!1}}};const C={title:"ReactBits/TextAnimations/ScrollFloat",component:h,parameters:{layout:"fullscreen"}},r={args:{children:"Hello World",containerClassName:"",textClassName:"",animationDuration:1,ease:"back.inOut(2)",scrollStart:"center bottom+=50%",scrollEnd:"bottom bottom-=40%",stagger:.03}};var g,x,b;r.parameters={...r.parameters,docs:{...(g=r.parameters)==null?void 0:g.docs,source:{originalSource:`{
2
2
  args: {
3
3
  children: 'Hello World',
4
4
  containerClassName: '',
@@ -1,4 +1,4 @@
1
- import{r as u,j as c}from"./iframe-rPhsLpUF.js";import{g as l}from"./index-C8pce-KX.js";import{S as _}from"./ScrollTrigger-D1XJUMov.js";import"./preload-helper-C1FmrZbK.js";const T="_word_1yrz7_11",m={"scroll-reveal":"_scroll-reveal_1yrz7_1","scroll-reveal-text":"_scroll-reveal-text_1yrz7_5",word:T};l.registerPlugin(_);const h=({children:s,scrollContainerRef:r,enableBlur:i=!0,baseOpacity:d=.1,baseRotation:f=3,blurStrength:p=4,containerClassName:S="",textClassName:N="",rotationEnd:b="bottom bottom",wordAnimationEnd:n="bottom bottom"})=>{const g=u.useRef(null),q=u.useMemo(()=>(typeof s=="string"?s:"").split(/(\s+)/).map((t,o)=>t.match(/^\s+$/)?t:c.jsx("span",{className:`${m.word}`,children:t},o)),[s]);return u.useEffect(()=>{const e=g.current;if(!e)return;const t=r&&r.current?r.current:window;l.fromTo(e,{transformOrigin:"0% 50%",rotate:f},{ease:"none",rotate:0,scrollTrigger:{trigger:e,scroller:t,start:"top bottom",end:b,scrub:!0}});const o=e.querySelectorAll(".word");return l.fromTo(o,{opacity:d,willChange:"opacity"},{ease:"none",opacity:1,stagger:.05,scrollTrigger:{trigger:e,scroller:t,start:"top bottom-=20%",end:n,scrub:!0}}),i&&l.fromTo(o,{filter:`blur(${p}px)`},{ease:"none",filter:"blur(0px)",stagger:.05,scrollTrigger:{trigger:e,scroller:t,start:"top bottom-=20%",end:n,scrub:!0}}),()=>{_.getAll().forEach(E=>E.kill())}},[r,i,f,d,b,n,p]),c.jsx("h2",{ref:g,className:`${m["scroll-reveal"]} ${S}`,children:c.jsx("p",{className:`${m["scroll-reveal-text"]} ${N}`,children:q})})};h.__docgenInfo={description:"",methods:[],displayName:"ScrollReveal",props:{enableBlur:{defaultValue:{value:"true",computed:!1},required:!1},baseOpacity:{defaultValue:{value:"0.1",computed:!1},required:!1},baseRotation:{defaultValue:{value:"3",computed:!1},required:!1},blurStrength:{defaultValue:{value:"4",computed:!1},required:!1},containerClassName:{defaultValue:{value:"''",computed:!1},required:!1},textClassName:{defaultValue:{value:"''",computed:!1},required:!1},rotationEnd:{defaultValue:{value:"'bottom bottom'",computed:!1},required:!1},wordAnimationEnd:{defaultValue:{value:"'bottom bottom'",computed:!1},required:!1}}};const j={title:"ReactBits/TextAnimations/ScrollReveal",component:h,parameters:{layout:"fullscreen"}},a={args:{children:"Hello World",enableBlur:!0,baseOpacity:.1,baseRotation:3,blurStrength:4,containerClassName:"",textClassName:"",rotationEnd:"bottom bottom",wordAnimationEnd:"bottom bottom"}};var x,v,y;a.parameters={...a.parameters,docs:{...(x=a.parameters)==null?void 0:x.docs,source:{originalSource:`{
1
+ import{r as u,j as c}from"./iframe-D8qqeeGJ.js";import{g as l}from"./index-C8pce-KX.js";import{S as _}from"./ScrollTrigger-D1XJUMov.js";import"./preload-helper-C1FmrZbK.js";const T="_word_1yrz7_11",m={"scroll-reveal":"_scroll-reveal_1yrz7_1","scroll-reveal-text":"_scroll-reveal-text_1yrz7_5",word:T};l.registerPlugin(_);const h=({children:s,scrollContainerRef:r,enableBlur:i=!0,baseOpacity:d=.1,baseRotation:f=3,blurStrength:p=4,containerClassName:S="",textClassName:N="",rotationEnd:b="bottom bottom",wordAnimationEnd:n="bottom bottom"})=>{const g=u.useRef(null),q=u.useMemo(()=>(typeof s=="string"?s:"").split(/(\s+)/).map((t,o)=>t.match(/^\s+$/)?t:c.jsx("span",{className:`${m.word}`,children:t},o)),[s]);return u.useEffect(()=>{const e=g.current;if(!e)return;const t=r&&r.current?r.current:window;l.fromTo(e,{transformOrigin:"0% 50%",rotate:f},{ease:"none",rotate:0,scrollTrigger:{trigger:e,scroller:t,start:"top bottom",end:b,scrub:!0}});const o=e.querySelectorAll(".word");return l.fromTo(o,{opacity:d,willChange:"opacity"},{ease:"none",opacity:1,stagger:.05,scrollTrigger:{trigger:e,scroller:t,start:"top bottom-=20%",end:n,scrub:!0}}),i&&l.fromTo(o,{filter:`blur(${p}px)`},{ease:"none",filter:"blur(0px)",stagger:.05,scrollTrigger:{trigger:e,scroller:t,start:"top bottom-=20%",end:n,scrub:!0}}),()=>{_.getAll().forEach(E=>E.kill())}},[r,i,f,d,b,n,p]),c.jsx("h2",{ref:g,className:`${m["scroll-reveal"]} ${S}`,children:c.jsx("p",{className:`${m["scroll-reveal-text"]} ${N}`,children:q})})};h.__docgenInfo={description:"",methods:[],displayName:"ScrollReveal",props:{enableBlur:{defaultValue:{value:"true",computed:!1},required:!1},baseOpacity:{defaultValue:{value:"0.1",computed:!1},required:!1},baseRotation:{defaultValue:{value:"3",computed:!1},required:!1},blurStrength:{defaultValue:{value:"4",computed:!1},required:!1},containerClassName:{defaultValue:{value:"''",computed:!1},required:!1},textClassName:{defaultValue:{value:"''",computed:!1},required:!1},rotationEnd:{defaultValue:{value:"'bottom bottom'",computed:!1},required:!1},wordAnimationEnd:{defaultValue:{value:"'bottom bottom'",computed:!1},required:!1}}};const j={title:"ReactBits/TextAnimations/ScrollReveal",component:h,parameters:{layout:"fullscreen"}},a={args:{children:"Hello World",enableBlur:!0,baseOpacity:.1,baseRotation:3,blurStrength:4,containerClassName:"",textClassName:"",rotationEnd:"bottom bottom",wordAnimationEnd:"bottom bottom"}};var x,v,y;a.parameters={...a.parameters,docs:{...(x=a.parameters)==null?void 0:x.docs,source:{originalSource:`{
2
2
  args: {
3
3
  children: 'Hello World',
4
4
  enableBlur: true,
@@ -1,4 +1,4 @@
1
- import{r as g,j as v}from"./iframe-rPhsLpUF.js";import{u as re}from"./use-motion-value-jBEsDEvG.js";import{h as ne,j as le,i as Te,r as Ce,m as Oe}from"./proxy-uJ8evSzT.js";import{f as h,I as k,N as Ne,a3 as Pe,Y as He,$ as Be,j as Ae,c as oe,R as ke,U as Re,o as W,u as be,a as q}from"./MotionConfigContext-HXxMOMJo.js";import{u as ze}from"./use-spring-Bf02nu3H.js";import{u as D}from"./use-transform-Cfp6qWZw.js";import{u as je}from"./use-animation-frame-B62vi9Ct.js";import"./preload-helper-C1FmrZbK.js";function ce(e,t){let s;const r=()=>{const{currentTime:n}=t,o=(n===null?0:n.value)/100;s!==o&&e(o),s=o};return h.preUpdate(r,!0),()=>k(r)}function Ie(e,t,s){g.useInsertionEffect(()=>e.on(t,s),[e,t,s])}function O(e){return typeof window>"u"?!1:e?ne():le()}const _e=50,F=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),qe=()=>({time:0,x:F(),y:F()}),De={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function $(e,t,s,r){const n=s[t],{length:l,position:o}=De[t],c=n.current,a=s.time;n.current=Math.abs(e[`scroll${o}`]),n.scrollLength=e[`scroll${l}`]-e[`client${l}`],n.offset.length=0,n.offset[0]=0,n.offset[1]=n.scrollLength,n.progress=Ne(0,n.scrollLength,n.current);const i=r-a;n.velocity=i>_e?0:Pe(n.current-c,i)}function Fe(e,t,s){$(e,"x",t,s),$(e,"y",t,s),t.time=s}function $e(e,t){const s={x:0,y:0};let r=e;for(;r&&r!==t;)if(Te(r))s.x+=r.offsetLeft,s.y+=r.offsetTop,r=r.offsetParent;else if(r.tagName==="svg"){const n=r.getBoundingClientRect();r=r.parentElement;const l=r.getBoundingClientRect();s.x+=n.left-l.left,s.y+=n.top-l.top}else if(r instanceof SVGGraphicsElement){const{x:n,y:l}=r.getBBox();s.x+=n,s.y+=l;let o=null,c=r.parentNode;for(;!o;)c.tagName==="svg"&&(o=c),c=r.parentNode;r=o}else break;return s}const R={start:0,center:.5,end:1};function Y(e,t,s=0){let r=0;if(e in R&&(e=R[e]),typeof e=="string"){const n=parseFloat(e);e.endsWith("px")?r=n:e.endsWith("%")?e=n/100:e.endsWith("vw")?r=n/100*document.documentElement.clientWidth:e.endsWith("vh")?r=n/100*document.documentElement.clientHeight:e=n}return typeof e=="number"&&(r=t*e),s+r}const Ye=[0,0];function Xe(e,t,s,r){let n=Array.isArray(e)?e:Ye,l=0,o=0;return typeof e=="number"?n=[e,e]:typeof e=="string"&&(e=e.trim(),e.includes(" ")?n=e.split(" "):n=[e,R[e]?e:"0"]),l=Y(n[0],s,r),o=Y(n[1],t),l-o}const E={Enter:[[0,1],[1,1]],Exit:[[0,0],[1,0]],Any:[[1,0],[0,1]],All:[[0,0],[1,1]]},Me={x:0,y:0};function Ue(e){return"getBBox"in e&&e.tagName!=="svg"?e.getBBox():{width:e.clientWidth,height:e.clientHeight}}function Ge(e,t,s){const{offset:r=E.All}=s,{target:n=e,axis:l="y"}=s,o=l==="y"?"height":"width",c=n!==e?$e(n,e):Me,a=n===e?{width:e.scrollWidth,height:e.scrollHeight}:Ue(n),i={width:e.clientWidth,height:e.clientHeight};t[l].offset.length=0;let u=!t[l].interpolate;const m=r.length;for(let f=0;f<m;f++){const p=Xe(r[f],i[o],a[o],c[l]);!u&&p!==t[l].interpolatorOffsets[f]&&(u=!0),t[l].offset[f]=p}u&&(t[l].interpolate=He(t[l].offset,Be(r),{clamp:!1}),t[l].interpolatorOffsets=[...t[l].offset]),t[l].progress=Ae(0,1,t[l].interpolate(t[l].current))}function Ke(e,t=e,s){if(s.x.targetOffset=0,s.y.targetOffset=0,t!==e){let r=t;for(;r&&r!==e;)s.x.targetOffset+=r.offsetLeft,s.y.targetOffset+=r.offsetTop,r=r.offsetParent}s.x.targetLength=t===e?t.scrollWidth:t.clientWidth,s.y.targetLength=t===e?t.scrollHeight:t.clientHeight,s.x.containerLength=e.clientWidth,s.y.containerLength=e.clientHeight}function Je(e,t,s,r={}){return{measure:n=>{Ke(e,r.target,s),Fe(e,s,n),(r.offset||r.target)&&Ge(e,s,r)},notify:()=>t(s)}}const x=new WeakMap,X=new WeakMap,A=new WeakMap,M=new WeakMap,L=new WeakMap,U=e=>e===document.scrollingElement?window:e;function ie(e,{container:t=document.scrollingElement,trackContentSize:s=!1,...r}={}){if(!t)return oe;let n=A.get(t);n||(n=new Set,A.set(t,n));const l=qe(),o=Je(t,e,l,r);if(n.add(o),!x.has(t)){const a=()=>{for(const f of n)f.measure(ke.timestamp);h.preUpdate(i)},i=()=>{for(const f of n)f.notify()},u=()=>h.read(a);x.set(t,u);const m=U(t);window.addEventListener("resize",u),t!==document.documentElement&&X.set(t,Ce(t,u)),m.addEventListener("scroll",u),u()}if(s&&!L.has(t)){const a=x.get(t),i={width:t.scrollWidth,height:t.scrollHeight};M.set(t,i);const u=()=>{const f=t.scrollWidth,p=t.scrollHeight;(i.width!==f||i.height!==p)&&(a(),i.width=f,i.height=p)},m=h.read(u,!0);L.set(t,m)}const c=x.get(t);return h.read(c,!1,!0),()=>{var m;k(c);const a=A.get(t);if(!a||(a.delete(o),a.size))return;const i=x.get(t);x.delete(t),i&&(U(t).removeEventListener("scroll",i),(m=X.get(t))==null||m(),window.removeEventListener("resize",i));const u=L.get(t);u&&(k(u),L.delete(t)),M.delete(t)}}const Qe=[[E.Enter,"entry"],[E.Exit,"exit"],[E.Any,"cover"],[E.All,"contain"]],G={start:0,end:1};function Ze(e){const t=e.trim().split(/\s+/);if(t.length!==2)return;const s=G[t[0]],r=G[t[1]];if(!(s===void 0||r===void 0))return[s,r]}function et(e){if(e.length!==2)return;const t=[];for(const s of e)if(Array.isArray(s))t.push(s);else if(typeof s=="string"){const r=Ze(s);if(!r)return;t.push(r)}else return;return t}function tt(e,t){const s=et(e);if(!s)return!1;for(let r=0;r<2;r++){const n=s[r],l=t[r];if(n[0]!==l[0]||n[1]!==l[1])return!1}return!0}function b(e){if(!e)return{rangeStart:"contain 0%",rangeEnd:"contain 100%"};for(const[t,s]of Qe)if(tt(e,t))return{rangeStart:`${s} 0%`,rangeEnd:`${s} 100%`}}const K=new Map;function J(e){const t={value:0},s=ie(r=>{t.value=r[e.axis].progress*100},e);return{currentTime:t,cancel:s}}function ae({source:e,container:t,...s}){const{axis:r}=s;e&&(t=e);let n=K.get(t);n||(n=new Map,K.set(t,n));const l=s.target??"self";let o=n.get(l);o||(o={},n.set(l,o));const c=r+(s.offset??[]).join(",");return o[c]||(s.target&&O(s.target)?b(s.offset)?o[c]=new ViewTimeline({subject:s.target,axis:r}):o[c]=J({container:t,...s}):O()?o[c]=new ScrollTimeline({source:t,axis:r}):o[c]=J({container:t,...s})),o[c]}function st(e,t){const s=ae(t),r=t.target?b(t.offset):void 0,n=t.target?O(t.target)&&!!r:O();return e.attachTimeline({timeline:n?s:void 0,...r&&n&&{rangeStart:r.rangeStart,rangeEnd:r.rangeEnd},observe:l=>(l.pause(),ce(o=>{l.time=l.iterationDuration*o},s))})}function rt(e){return e.length===2}function nt(e,t){return rt(e)?ie(s=>{e(s[t.axis].progress,s)},t):ce(e,ae(t))}function ue(e,{axis:t="y",container:s=document.scrollingElement,...r}={}){if(!s)return oe;const n={axis:t,container:s,...r};return typeof e=="function"?nt(e,n):st(e,n)}const lt=()=>({scrollX:W(0),scrollY:W(0),scrollXProgress:W(0),scrollYProgress:W(0)}),T=e=>e?!e.current:!1;function Q(e,t,s,r){return{factory:n=>ue(n,{...t,axis:e,container:(s==null?void 0:s.current)||void 0,target:(r==null?void 0:r.current)||void 0}),times:[0,1],keyframes:[0,1],ease:n=>n,duration:1}}function ot(e,t){return typeof window>"u"?!1:e?ne()&&!!b(t):le()}function ct({container:e,target:t,...s}={}){const r=Re(lt);ot(t,s.offset)&&(r.scrollXProgress.accelerate=Q("x",s,e,t),r.scrollYProgress.accelerate=Q("y",s,e,t));const n=g.useRef(null),l=g.useRef(!1),o=g.useCallback(()=>(n.current=ue((c,{x:a,y:i})=>{r.scrollX.set(a.current),r.scrollXProgress.set(a.progress),r.scrollY.set(i.current),r.scrollYProgress.set(i.progress)},{...s,container:(e==null?void 0:e.current)||void 0,target:(t==null?void 0:t.current)||void 0}),()=>{var c;(c=n.current)==null||c.call(n)}),[e,t,JSON.stringify(s.offset)]);return be(()=>{if(l.current=!1,T(e)||T(t)){l.current=!0;return}else return o()},[o]),g.useEffect(()=>{if(l.current)return q(!T(e)),q(!T(t)),o()},[o]),r}function it(e){const t=re(e.getVelocity()),s=()=>{const r=e.getVelocity();t.set(r),r&&h.update(s)};return Ie(e,"change",()=>{h.update(s,!1,!0)}),t}const at="_parallax_1s8d6_1",ut="_scroller_1s8d6_6",Z={parallax:at,scroller:ut};function ft(e){const[t,s]=g.useState(0);return g.useLayoutEffect(()=>{function r(){e.current&&s(e.current.offsetWidth)}return r(),window.addEventListener("resize",r),()=>window.removeEventListener("resize",r)},[e]),t}const fe=({scrollContainerRef:e,texts:t=[],velocity:s=100,className:r="",damping:n=50,stiffness:l=400,numCopies:o=6,velocityMapping:c={input:[0,1e3],output:[0,5]},parallaxClassName:a=Z.parallax,scrollerClassName:i=Z.scroller,parallaxStyle:u,scrollerStyle:m})=>{function f({children:p,baseVelocity:S=s,scrollContainerRef:z,className:de="",damping:me,stiffness:pe,numCopies:ge,velocityMapping:y,parallaxClassName:he,scrollerClassName:ye,parallaxStyle:xe,scrollerStyle:we}){const N=re(0),ve=z?{container:z}:{},{scrollY:Ee}=ct(ve),Se=it(Ee),Ve=ze(Se,{damping:me??50,stiffness:pe??400}),P=D(Ve,(y==null?void 0:y.input)||[0,1e3],(y==null?void 0:y.output)||[0,5],{clamp:!1}),j=g.useRef(null),I=ft(j);function We(d,H,w){const B=H-d;return((w-d)%B+B)%B+d}const Le=D(N,d=>I===0?"0px":`${We(-I,0,d)}px`),V=g.useRef(1);je((d,H)=>{let w=V.current*S*(H/1e3);P.get()<0?V.current=-1:P.get()>0&&(V.current=1),w+=V.current*w*P.get(),N.set(N.get()+w)});const _=[];for(let d=0;d<ge;d++)_.push(v.jsxs("span",{className:de,ref:d===0?j:null,children:[p," "]},d));return v.jsx("div",{className:he,style:xe,children:v.jsx(Oe.div,{className:ye,style:{x:Le,...we},children:_})})}return v.jsx("section",{children:t.map((p,S)=>v.jsx(f,{className:r,baseVelocity:S%2!==0?-s:s,scrollContainerRef:e,damping:n,stiffness:l,numCopies:o,velocityMapping:c,parallaxClassName:a,scrollerClassName:i,parallaxStyle:u,scrollerStyle:m,children:p},S))})};fe.__docgenInfo={description:"",methods:[],displayName:"ScrollVelocity",props:{texts:{defaultValue:{value:"[]",computed:!1},required:!1},velocity:{defaultValue:{value:"100",computed:!1},required:!1},className:{defaultValue:{value:"''",computed:!1},required:!1},damping:{defaultValue:{value:"50",computed:!1},required:!1},stiffness:{defaultValue:{value:"400",computed:!1},required:!1},numCopies:{defaultValue:{value:"6",computed:!1},required:!1},velocityMapping:{defaultValue:{value:"{ input: [0, 1000], output: [0, 5] }",computed:!1},required:!1},parallaxClassName:{defaultValue:{value:"styles['parallax']",computed:!0},required:!1},scrollerClassName:{defaultValue:{value:"styles['scroller']",computed:!0},required:!1}}};const Et={title:"ReactBits/TextAnimations/ScrollVelocity",component:fe,parameters:{layout:"fullscreen"}},C={args:{texts:["React Bits","Scroll Velocity"],velocity:100,damping:50,stiffness:400,numCopies:6}};var ee,te,se;C.parameters={...C.parameters,docs:{...(ee=C.parameters)==null?void 0:ee.docs,source:{originalSource:`{
1
+ import{r as g,j as v}from"./iframe-D8qqeeGJ.js";import{u as re}from"./use-motion-value-DQT5SPdA.js";import{h as ne,j as le,i as Te,r as Ce,m as Oe}from"./proxy-1W9qMPm5.js";import{f as h,I as k,N as Ne,a3 as Pe,Y as He,$ as Be,j as Ae,c as oe,R as ke,U as Re,o as W,u as be,a as q}from"./MotionConfigContext-cqdgvETc.js";import{u as ze}from"./use-spring-DwAy_p1Y.js";import{u as D}from"./use-transform-C2Oyk60n.js";import{u as je}from"./use-animation-frame-sEnyIjfp.js";import"./preload-helper-C1FmrZbK.js";function ce(e,t){let s;const r=()=>{const{currentTime:n}=t,o=(n===null?0:n.value)/100;s!==o&&e(o),s=o};return h.preUpdate(r,!0),()=>k(r)}function Ie(e,t,s){g.useInsertionEffect(()=>e.on(t,s),[e,t,s])}function O(e){return typeof window>"u"?!1:e?ne():le()}const _e=50,F=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),qe=()=>({time:0,x:F(),y:F()}),De={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function $(e,t,s,r){const n=s[t],{length:l,position:o}=De[t],c=n.current,a=s.time;n.current=Math.abs(e[`scroll${o}`]),n.scrollLength=e[`scroll${l}`]-e[`client${l}`],n.offset.length=0,n.offset[0]=0,n.offset[1]=n.scrollLength,n.progress=Ne(0,n.scrollLength,n.current);const i=r-a;n.velocity=i>_e?0:Pe(n.current-c,i)}function Fe(e,t,s){$(e,"x",t,s),$(e,"y",t,s),t.time=s}function $e(e,t){const s={x:0,y:0};let r=e;for(;r&&r!==t;)if(Te(r))s.x+=r.offsetLeft,s.y+=r.offsetTop,r=r.offsetParent;else if(r.tagName==="svg"){const n=r.getBoundingClientRect();r=r.parentElement;const l=r.getBoundingClientRect();s.x+=n.left-l.left,s.y+=n.top-l.top}else if(r instanceof SVGGraphicsElement){const{x:n,y:l}=r.getBBox();s.x+=n,s.y+=l;let o=null,c=r.parentNode;for(;!o;)c.tagName==="svg"&&(o=c),c=r.parentNode;r=o}else break;return s}const R={start:0,center:.5,end:1};function Y(e,t,s=0){let r=0;if(e in R&&(e=R[e]),typeof e=="string"){const n=parseFloat(e);e.endsWith("px")?r=n:e.endsWith("%")?e=n/100:e.endsWith("vw")?r=n/100*document.documentElement.clientWidth:e.endsWith("vh")?r=n/100*document.documentElement.clientHeight:e=n}return typeof e=="number"&&(r=t*e),s+r}const Ye=[0,0];function Xe(e,t,s,r){let n=Array.isArray(e)?e:Ye,l=0,o=0;return typeof e=="number"?n=[e,e]:typeof e=="string"&&(e=e.trim(),e.includes(" ")?n=e.split(" "):n=[e,R[e]?e:"0"]),l=Y(n[0],s,r),o=Y(n[1],t),l-o}const E={Enter:[[0,1],[1,1]],Exit:[[0,0],[1,0]],Any:[[1,0],[0,1]],All:[[0,0],[1,1]]},Me={x:0,y:0};function Ue(e){return"getBBox"in e&&e.tagName!=="svg"?e.getBBox():{width:e.clientWidth,height:e.clientHeight}}function Ge(e,t,s){const{offset:r=E.All}=s,{target:n=e,axis:l="y"}=s,o=l==="y"?"height":"width",c=n!==e?$e(n,e):Me,a=n===e?{width:e.scrollWidth,height:e.scrollHeight}:Ue(n),i={width:e.clientWidth,height:e.clientHeight};t[l].offset.length=0;let u=!t[l].interpolate;const m=r.length;for(let f=0;f<m;f++){const p=Xe(r[f],i[o],a[o],c[l]);!u&&p!==t[l].interpolatorOffsets[f]&&(u=!0),t[l].offset[f]=p}u&&(t[l].interpolate=He(t[l].offset,Be(r),{clamp:!1}),t[l].interpolatorOffsets=[...t[l].offset]),t[l].progress=Ae(0,1,t[l].interpolate(t[l].current))}function Ke(e,t=e,s){if(s.x.targetOffset=0,s.y.targetOffset=0,t!==e){let r=t;for(;r&&r!==e;)s.x.targetOffset+=r.offsetLeft,s.y.targetOffset+=r.offsetTop,r=r.offsetParent}s.x.targetLength=t===e?t.scrollWidth:t.clientWidth,s.y.targetLength=t===e?t.scrollHeight:t.clientHeight,s.x.containerLength=e.clientWidth,s.y.containerLength=e.clientHeight}function Je(e,t,s,r={}){return{measure:n=>{Ke(e,r.target,s),Fe(e,s,n),(r.offset||r.target)&&Ge(e,s,r)},notify:()=>t(s)}}const x=new WeakMap,X=new WeakMap,A=new WeakMap,M=new WeakMap,L=new WeakMap,U=e=>e===document.scrollingElement?window:e;function ie(e,{container:t=document.scrollingElement,trackContentSize:s=!1,...r}={}){if(!t)return oe;let n=A.get(t);n||(n=new Set,A.set(t,n));const l=qe(),o=Je(t,e,l,r);if(n.add(o),!x.has(t)){const a=()=>{for(const f of n)f.measure(ke.timestamp);h.preUpdate(i)},i=()=>{for(const f of n)f.notify()},u=()=>h.read(a);x.set(t,u);const m=U(t);window.addEventListener("resize",u),t!==document.documentElement&&X.set(t,Ce(t,u)),m.addEventListener("scroll",u),u()}if(s&&!L.has(t)){const a=x.get(t),i={width:t.scrollWidth,height:t.scrollHeight};M.set(t,i);const u=()=>{const f=t.scrollWidth,p=t.scrollHeight;(i.width!==f||i.height!==p)&&(a(),i.width=f,i.height=p)},m=h.read(u,!0);L.set(t,m)}const c=x.get(t);return h.read(c,!1,!0),()=>{var m;k(c);const a=A.get(t);if(!a||(a.delete(o),a.size))return;const i=x.get(t);x.delete(t),i&&(U(t).removeEventListener("scroll",i),(m=X.get(t))==null||m(),window.removeEventListener("resize",i));const u=L.get(t);u&&(k(u),L.delete(t)),M.delete(t)}}const Qe=[[E.Enter,"entry"],[E.Exit,"exit"],[E.Any,"cover"],[E.All,"contain"]],G={start:0,end:1};function Ze(e){const t=e.trim().split(/\s+/);if(t.length!==2)return;const s=G[t[0]],r=G[t[1]];if(!(s===void 0||r===void 0))return[s,r]}function et(e){if(e.length!==2)return;const t=[];for(const s of e)if(Array.isArray(s))t.push(s);else if(typeof s=="string"){const r=Ze(s);if(!r)return;t.push(r)}else return;return t}function tt(e,t){const s=et(e);if(!s)return!1;for(let r=0;r<2;r++){const n=s[r],l=t[r];if(n[0]!==l[0]||n[1]!==l[1])return!1}return!0}function b(e){if(!e)return{rangeStart:"contain 0%",rangeEnd:"contain 100%"};for(const[t,s]of Qe)if(tt(e,t))return{rangeStart:`${s} 0%`,rangeEnd:`${s} 100%`}}const K=new Map;function J(e){const t={value:0},s=ie(r=>{t.value=r[e.axis].progress*100},e);return{currentTime:t,cancel:s}}function ae({source:e,container:t,...s}){const{axis:r}=s;e&&(t=e);let n=K.get(t);n||(n=new Map,K.set(t,n));const l=s.target??"self";let o=n.get(l);o||(o={},n.set(l,o));const c=r+(s.offset??[]).join(",");return o[c]||(s.target&&O(s.target)?b(s.offset)?o[c]=new ViewTimeline({subject:s.target,axis:r}):o[c]=J({container:t,...s}):O()?o[c]=new ScrollTimeline({source:t,axis:r}):o[c]=J({container:t,...s})),o[c]}function st(e,t){const s=ae(t),r=t.target?b(t.offset):void 0,n=t.target?O(t.target)&&!!r:O();return e.attachTimeline({timeline:n?s:void 0,...r&&n&&{rangeStart:r.rangeStart,rangeEnd:r.rangeEnd},observe:l=>(l.pause(),ce(o=>{l.time=l.iterationDuration*o},s))})}function rt(e){return e.length===2}function nt(e,t){return rt(e)?ie(s=>{e(s[t.axis].progress,s)},t):ce(e,ae(t))}function ue(e,{axis:t="y",container:s=document.scrollingElement,...r}={}){if(!s)return oe;const n={axis:t,container:s,...r};return typeof e=="function"?nt(e,n):st(e,n)}const lt=()=>({scrollX:W(0),scrollY:W(0),scrollXProgress:W(0),scrollYProgress:W(0)}),T=e=>e?!e.current:!1;function Q(e,t,s,r){return{factory:n=>ue(n,{...t,axis:e,container:(s==null?void 0:s.current)||void 0,target:(r==null?void 0:r.current)||void 0}),times:[0,1],keyframes:[0,1],ease:n=>n,duration:1}}function ot(e,t){return typeof window>"u"?!1:e?ne()&&!!b(t):le()}function ct({container:e,target:t,...s}={}){const r=Re(lt);ot(t,s.offset)&&(r.scrollXProgress.accelerate=Q("x",s,e,t),r.scrollYProgress.accelerate=Q("y",s,e,t));const n=g.useRef(null),l=g.useRef(!1),o=g.useCallback(()=>(n.current=ue((c,{x:a,y:i})=>{r.scrollX.set(a.current),r.scrollXProgress.set(a.progress),r.scrollY.set(i.current),r.scrollYProgress.set(i.progress)},{...s,container:(e==null?void 0:e.current)||void 0,target:(t==null?void 0:t.current)||void 0}),()=>{var c;(c=n.current)==null||c.call(n)}),[e,t,JSON.stringify(s.offset)]);return be(()=>{if(l.current=!1,T(e)||T(t)){l.current=!0;return}else return o()},[o]),g.useEffect(()=>{if(l.current)return q(!T(e)),q(!T(t)),o()},[o]),r}function it(e){const t=re(e.getVelocity()),s=()=>{const r=e.getVelocity();t.set(r),r&&h.update(s)};return Ie(e,"change",()=>{h.update(s,!1,!0)}),t}const at="_parallax_1s8d6_1",ut="_scroller_1s8d6_6",Z={parallax:at,scroller:ut};function ft(e){const[t,s]=g.useState(0);return g.useLayoutEffect(()=>{function r(){e.current&&s(e.current.offsetWidth)}return r(),window.addEventListener("resize",r),()=>window.removeEventListener("resize",r)},[e]),t}const fe=({scrollContainerRef:e,texts:t=[],velocity:s=100,className:r="",damping:n=50,stiffness:l=400,numCopies:o=6,velocityMapping:c={input:[0,1e3],output:[0,5]},parallaxClassName:a=Z.parallax,scrollerClassName:i=Z.scroller,parallaxStyle:u,scrollerStyle:m})=>{function f({children:p,baseVelocity:S=s,scrollContainerRef:z,className:de="",damping:me,stiffness:pe,numCopies:ge,velocityMapping:y,parallaxClassName:he,scrollerClassName:ye,parallaxStyle:xe,scrollerStyle:we}){const N=re(0),ve=z?{container:z}:{},{scrollY:Ee}=ct(ve),Se=it(Ee),Ve=ze(Se,{damping:me??50,stiffness:pe??400}),P=D(Ve,(y==null?void 0:y.input)||[0,1e3],(y==null?void 0:y.output)||[0,5],{clamp:!1}),j=g.useRef(null),I=ft(j);function We(d,H,w){const B=H-d;return((w-d)%B+B)%B+d}const Le=D(N,d=>I===0?"0px":`${We(-I,0,d)}px`),V=g.useRef(1);je((d,H)=>{let w=V.current*S*(H/1e3);P.get()<0?V.current=-1:P.get()>0&&(V.current=1),w+=V.current*w*P.get(),N.set(N.get()+w)});const _=[];for(let d=0;d<ge;d++)_.push(v.jsxs("span",{className:de,ref:d===0?j:null,children:[p," "]},d));return v.jsx("div",{className:he,style:xe,children:v.jsx(Oe.div,{className:ye,style:{x:Le,...we},children:_})})}return v.jsx("section",{children:t.map((p,S)=>v.jsx(f,{className:r,baseVelocity:S%2!==0?-s:s,scrollContainerRef:e,damping:n,stiffness:l,numCopies:o,velocityMapping:c,parallaxClassName:a,scrollerClassName:i,parallaxStyle:u,scrollerStyle:m,children:p},S))})};fe.__docgenInfo={description:"",methods:[],displayName:"ScrollVelocity",props:{texts:{defaultValue:{value:"[]",computed:!1},required:!1},velocity:{defaultValue:{value:"100",computed:!1},required:!1},className:{defaultValue:{value:"''",computed:!1},required:!1},damping:{defaultValue:{value:"50",computed:!1},required:!1},stiffness:{defaultValue:{value:"400",computed:!1},required:!1},numCopies:{defaultValue:{value:"6",computed:!1},required:!1},velocityMapping:{defaultValue:{value:"{ input: [0, 1000], output: [0, 5] }",computed:!1},required:!1},parallaxClassName:{defaultValue:{value:"styles['parallax']",computed:!0},required:!1},scrollerClassName:{defaultValue:{value:"styles['scroller']",computed:!0},required:!1}}};const Et={title:"ReactBits/TextAnimations/ScrollVelocity",component:fe,parameters:{layout:"fullscreen"}},C={args:{texts:["React Bits","Scroll Velocity"],velocity:100,damping:50,stiffness:400,numCopies:6}};var ee,te,se;C.parameters={...C.parameters,docs:{...(ee=C.parameters)==null?void 0:ee.docs,source:{originalSource:`{
2
2
  args: {
3
3
  texts: ['React Bits', 'Scroll Velocity'],
4
4
  velocity: 100,
@@ -1,4 +1,4 @@
1
- import{r as o,j as t}from"./iframe-rPhsLpUF.js";import{S as ee}from"./search-CIAI1CyG.js";import{F as te}from"./folder-Dt06LOrp.js";import{U as se}from"./users-Bm-CUW6N.js";import{c as P}from"./createLucideIcon-DhNY7W9i.js";import{m as $}from"./proxy-uJ8evSzT.js";import{X as ye}from"./x-Bb1g_3HM.js";import{A as fe}from"./index-B9UM6a_o.js";import"./preload-helper-C1FmrZbK.js";import"./MotionConfigContext-HXxMOMJo.js";/**
1
+ import{r as o,j as t}from"./iframe-D8qqeeGJ.js";import{S as ee}from"./search-BgqlFsxE.js";import{F as te}from"./folder-LestSoCO.js";import{U as se}from"./users-CeDtcuCx.js";import{c as P}from"./createLucideIcon-He700CuR.js";import{m as $}from"./proxy-1W9qMPm5.js";import{X as ye}from"./x-BoXEIqKt.js";import{A as fe}from"./index-CJyQ6SwC.js";import"./preload-helper-C1FmrZbK.js";import"./MotionConfigContext-cqdgvETc.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,j as n}from"./iframe-rPhsLpUF.js";import{m as p}from"./proxy-uJ8evSzT.js";import{C as V}from"./chevron-down-C40D1TRM.js";import{A as R}from"./index-B9UM6a_o.js";import{S as A}from"./search-CIAI1CyG.js";import{C as T}from"./check-D_NpTUYB.js";const q="_searchableDropdown_13fbr_1",M="_dropdownTrigger_13fbr_17",$="_open_13fbr_45",L="_dropdownValue_13fbr_52",F="_placeholder_13fbr_61",K="_dropdownArrow_13fbr_67",H="_dropdownMenu_13fbr_83",P="_dropdownSearch_13fbr_101",z="_searchInput_13fbr_111",B="_searchIcon_13fbr_136",U="_dropdownOptions_13fbr_152",W="_dropdownOption_13fbr_152",G="_selected_13fbr_221",J="_highlighted_13fbr_243",Q="_checkIcon_13fbr_256",X="_dropdownNoResults_13fbr_276",Y="_loading_13fbr_390",o={searchableDropdown:q,dropdownTrigger:M,open:$,dropdownValue:L,placeholder:F,dropdownArrow:K,dropdownMenu:H,dropdownSearch:P,searchInput:z,searchIcon:B,dropdownOptions:U,dropdownOption:W,selected:G,highlighted:J,checkIcon:Q,dropdownNoResults:X,loading:Y};function Z({label:C,value:m,onChange:k,options:w,placeholder:N="Select...",allowEmpty:j=!0,disabled:u=!1,loading:g=!1,error:D=!1}){const[t,i]=r.useState(!1),[_,d]=r.useState(""),[c,l]=r.useState(-1),h=r.useRef(null),f=r.useRef(null),b=w.find(e=>e.value===m),y=b?b.label:"",v=w.filter(e=>e.label.toLowerCase().includes(_.toLowerCase())),s=j?[{label:"(none)",value:""},...v]:v;r.useEffect(()=>{function e(a){h.current&&!h.current.contains(a.target)&&(i(!1),d(""))}return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]),r.useEffect(()=>{t&&f.current&&f.current.focus()},[t]);const x=e=>{k(e),i(!1),d(""),l(-1)},I=e=>{if(t)switch(e.key){case"ArrowDown":e.preventDefault(),l(a=>a<s.length-1?a+1:0);break;case"ArrowUp":e.preventDefault(),l(a=>a>0?a-1:s.length-1);break;case"Enter":e.preventDefault(),c>=0&&c<s.length&&x(s[c].value);break;case"Escape":e.preventDefault(),i(!1),d(""),l(-1);break}},O=()=>{const e=[o.dropdownTrigger];return t&&e.push(o.open),g&&e.push(o.loading),D&&e.push(o.error),e.join(" ")};return n.jsxs("div",{className:o.searchableDropdown,ref:h,onKeyDown:I,children:[n.jsx("label",{children:C}),n.jsxs(p.button,{type:"button",className:O(),onClick:()=>!u&&!g&&i(!t),whileTap:{scale:u?1:.98},style:{willChange:"transform"},disabled:u,children:[n.jsx("span",{className:`${o.dropdownValue} ${y?"":o.placeholder}`,children:y||N}),n.jsx(V,{className:o.dropdownArrow})]}),n.jsx(R,{children:t&&n.jsxs(p.div,{className:o.dropdownMenu,initial:{opacity:0,y:-10,scale:.95},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:-10,scale:.95},transition:{duration:.2,ease:"easeOut"},children:[n.jsxs("div",{className:o.dropdownSearch,children:[n.jsx(A,{className:o.searchIcon}),n.jsx("input",{ref:f,type:"text",className:o.searchInput,placeholder:"Cerca...",value:_,onChange:e=>d(e.target.value),onClick:e=>e.stopPropagation()})]}),n.jsxs("div",{className:o.dropdownOptions,children:[s.map((e,a)=>{const S=m===e.value,E=c===a;return n.jsxs(p.button,{type:"button",className:`${o.dropdownOption} ${S?o.selected:""} ${E?o.highlighted:""}`,onClick:()=>x(e.value),onMouseEnter:()=>l(a),initial:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{delay:a*.02},whileTap:{scale:.98},style:{willChange:"transform"},children:[n.jsx("span",{children:e.label}),S&&n.jsx(T,{className:o.checkIcon})]},`${e.value}-${a}`)}),s.length===0&&n.jsx(p.div,{className:o.dropdownNoResults,initial:{opacity:0},animate:{opacity:1},children:"No results found"})]})]})})]})}Z.__docgenInfo={description:`SearchableDropdown component - Modern filterable dropdown with animations
1
+ import{r,j as n}from"./iframe-D8qqeeGJ.js";import{m as p}from"./proxy-1W9qMPm5.js";import{C as V}from"./chevron-down-dMiwJ2Fa.js";import{A as R}from"./index-CJyQ6SwC.js";import{S as A}from"./search-BgqlFsxE.js";import{C as T}from"./check-MGuZ-vQU.js";const q="_searchableDropdown_13fbr_1",M="_dropdownTrigger_13fbr_17",$="_open_13fbr_45",L="_dropdownValue_13fbr_52",F="_placeholder_13fbr_61",K="_dropdownArrow_13fbr_67",H="_dropdownMenu_13fbr_83",P="_dropdownSearch_13fbr_101",z="_searchInput_13fbr_111",B="_searchIcon_13fbr_136",U="_dropdownOptions_13fbr_152",W="_dropdownOption_13fbr_152",G="_selected_13fbr_221",J="_highlighted_13fbr_243",Q="_checkIcon_13fbr_256",X="_dropdownNoResults_13fbr_276",Y="_loading_13fbr_390",o={searchableDropdown:q,dropdownTrigger:M,open:$,dropdownValue:L,placeholder:F,dropdownArrow:K,dropdownMenu:H,dropdownSearch:P,searchInput:z,searchIcon:B,dropdownOptions:U,dropdownOption:W,selected:G,highlighted:J,checkIcon:Q,dropdownNoResults:X,loading:Y};function Z({label:C,value:m,onChange:k,options:w,placeholder:N="Select...",allowEmpty:j=!0,disabled:u=!1,loading:g=!1,error:D=!1}){const[t,i]=r.useState(!1),[_,d]=r.useState(""),[c,l]=r.useState(-1),h=r.useRef(null),f=r.useRef(null),b=w.find(e=>e.value===m),y=b?b.label:"",v=w.filter(e=>e.label.toLowerCase().includes(_.toLowerCase())),s=j?[{label:"(none)",value:""},...v]:v;r.useEffect(()=>{function e(a){h.current&&!h.current.contains(a.target)&&(i(!1),d(""))}return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]),r.useEffect(()=>{t&&f.current&&f.current.focus()},[t]);const x=e=>{k(e),i(!1),d(""),l(-1)},I=e=>{if(t)switch(e.key){case"ArrowDown":e.preventDefault(),l(a=>a<s.length-1?a+1:0);break;case"ArrowUp":e.preventDefault(),l(a=>a>0?a-1:s.length-1);break;case"Enter":e.preventDefault(),c>=0&&c<s.length&&x(s[c].value);break;case"Escape":e.preventDefault(),i(!1),d(""),l(-1);break}},O=()=>{const e=[o.dropdownTrigger];return t&&e.push(o.open),g&&e.push(o.loading),D&&e.push(o.error),e.join(" ")};return n.jsxs("div",{className:o.searchableDropdown,ref:h,onKeyDown:I,children:[n.jsx("label",{children:C}),n.jsxs(p.button,{type:"button",className:O(),onClick:()=>!u&&!g&&i(!t),whileTap:{scale:u?1:.98},style:{willChange:"transform"},disabled:u,children:[n.jsx("span",{className:`${o.dropdownValue} ${y?"":o.placeholder}`,children:y||N}),n.jsx(V,{className:o.dropdownArrow})]}),n.jsx(R,{children:t&&n.jsxs(p.div,{className:o.dropdownMenu,initial:{opacity:0,y:-10,scale:.95},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,y:-10,scale:.95},transition:{duration:.2,ease:"easeOut"},children:[n.jsxs("div",{className:o.dropdownSearch,children:[n.jsx(A,{className:o.searchIcon}),n.jsx("input",{ref:f,type:"text",className:o.searchInput,placeholder:"Cerca...",value:_,onChange:e=>d(e.target.value),onClick:e=>e.stopPropagation()})]}),n.jsxs("div",{className:o.dropdownOptions,children:[s.map((e,a)=>{const S=m===e.value,E=c===a;return n.jsxs(p.button,{type:"button",className:`${o.dropdownOption} ${S?o.selected:""} ${E?o.highlighted:""}`,onClick:()=>x(e.value),onMouseEnter:()=>l(a),initial:{opacity:0,x:-20},animate:{opacity:1,x:0},transition:{delay:a*.02},whileTap:{scale:.98},style:{willChange:"transform"},children:[n.jsx("span",{children:e.label}),S&&n.jsx(T,{className:o.checkIcon})]},`${e.value}-${a}`)}),s.length===0&&n.jsx(p.div,{className:o.dropdownNoResults,initial:{opacity:0},animate:{opacity:1},children:"No results found"})]})]})})]})}Z.__docgenInfo={description:`SearchableDropdown component - Modern filterable dropdown with animations
2
2
 
3
3
  @component
4
4
  @description
@@ -1,4 +1,4 @@
1
- import{j as e}from"./iframe-rPhsLpUF.js";import{S as a}from"./SearchableDropdown-CC1-QlKh.js";import"./preload-helper-C1FmrZbK.js";import"./proxy-uJ8evSzT.js";import"./MotionConfigContext-HXxMOMJo.js";import"./chevron-down-C40D1TRM.js";import"./createLucideIcon-DhNY7W9i.js";import"./index-B9UM6a_o.js";import"./search-CIAI1CyG.js";import"./check-D_NpTUYB.js";const j={title:"Atoms/SearchableDropdown",component:a,parameters:{layout:"centered",docs:{description:{component:"A dropdown component with built-in search functionality and smooth animations."}}},tags:["autodocs"],argTypes:{label:{control:"text"},value:{control:"text"},placeholder:{control:"text"},allowEmpty:{control:"boolean"},onChange:{action:"changed"}}},n=[{label:"United States",value:"us"},{label:"United Kingdom",value:"uk"},{label:"Canada",value:"ca"},{label:"Germany",value:"de"},{label:"France",value:"fr"},{label:"Italy",value:"it"},{label:"Spain",value:"es"},{label:"Japan",value:"jp"},{label:"Australia",value:"au"},{label:"Brazil",value:"br"}],r=[{label:"React",value:"react"},{label:"Vue.js",value:"vue"},{label:"Angular",value:"angular"},{label:"Svelte",value:"svelte"},{label:"TypeScript",value:"typescript"},{label:"JavaScript",value:"javascript"},{label:"Node.js",value:"nodejs"},{label:"Python",value:"python"},{label:"Java",value:"java"},{label:"C#",value:"csharp"},{label:"Go",value:"go"},{label:"Rust",value:"rust"}],l={args:{label:"Select Country",value:"",options:n,placeholder:"Choose a country",allowEmpty:!0,onChange:()=>{}}},o={args:{label:"Technology Stack",value:"",options:r,placeholder:"Search technologies...",allowEmpty:!0,onChange:()=>{}}},t={args:{label:"With Empty Option",value:"",options:n.slice(0,5),placeholder:"Choose...",allowEmpty:!0,onChange:()=>{}},render:()=>e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"1rem",width:"300px"},children:[e.jsx(a,{label:"With Empty Option",value:"",onChange:()=>{},options:n.slice(0,5),placeholder:"Choose...",allowEmpty:!0}),e.jsx(a,{label:"No Empty Option",value:"react",onChange:()=>{},options:r.slice(0,5),placeholder:"Choose...",allowEmpty:!1}),e.jsx(a,{label:"Pre-selected",value:"us",onChange:()=>{},options:n.slice(0,5),placeholder:"Choose...",allowEmpty:!0}),e.jsx(a,{label:"Long Options List",value:"",onChange:()=>{},options:r,placeholder:"Search technologies...",allowEmpty:!0})]}),parameters:{controls:{disable:!0}}};var s,p,c;l.parameters={...l.parameters,docs:{...(s=l.parameters)==null?void 0:s.docs,source:{originalSource:`{
1
+ import{j as e}from"./iframe-D8qqeeGJ.js";import{S as a}from"./SearchableDropdown-DOvqXBhT.js";import"./preload-helper-C1FmrZbK.js";import"./proxy-1W9qMPm5.js";import"./MotionConfigContext-cqdgvETc.js";import"./chevron-down-dMiwJ2Fa.js";import"./createLucideIcon-He700CuR.js";import"./index-CJyQ6SwC.js";import"./search-BgqlFsxE.js";import"./check-MGuZ-vQU.js";const j={title:"Atoms/SearchableDropdown",component:a,parameters:{layout:"centered",docs:{description:{component:"A dropdown component with built-in search functionality and smooth animations."}}},tags:["autodocs"],argTypes:{label:{control:"text"},value:{control:"text"},placeholder:{control:"text"},allowEmpty:{control:"boolean"},onChange:{action:"changed"}}},n=[{label:"United States",value:"us"},{label:"United Kingdom",value:"uk"},{label:"Canada",value:"ca"},{label:"Germany",value:"de"},{label:"France",value:"fr"},{label:"Italy",value:"it"},{label:"Spain",value:"es"},{label:"Japan",value:"jp"},{label:"Australia",value:"au"},{label:"Brazil",value:"br"}],r=[{label:"React",value:"react"},{label:"Vue.js",value:"vue"},{label:"Angular",value:"angular"},{label:"Svelte",value:"svelte"},{label:"TypeScript",value:"typescript"},{label:"JavaScript",value:"javascript"},{label:"Node.js",value:"nodejs"},{label:"Python",value:"python"},{label:"Java",value:"java"},{label:"C#",value:"csharp"},{label:"Go",value:"go"},{label:"Rust",value:"rust"}],l={args:{label:"Select Country",value:"",options:n,placeholder:"Choose a country",allowEmpty:!0,onChange:()=>{}}},o={args:{label:"Technology Stack",value:"",options:r,placeholder:"Search technologies...",allowEmpty:!0,onChange:()=>{}}},t={args:{label:"With Empty Option",value:"",options:n.slice(0,5),placeholder:"Choose...",allowEmpty:!0,onChange:()=>{}},render:()=>e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:"1rem",width:"300px"},children:[e.jsx(a,{label:"With Empty Option",value:"",onChange:()=>{},options:n.slice(0,5),placeholder:"Choose...",allowEmpty:!0}),e.jsx(a,{label:"No Empty Option",value:"react",onChange:()=>{},options:r.slice(0,5),placeholder:"Choose...",allowEmpty:!1}),e.jsx(a,{label:"Pre-selected",value:"us",onChange:()=>{},options:n.slice(0,5),placeholder:"Choose...",allowEmpty:!0}),e.jsx(a,{label:"Long Options List",value:"",onChange:()=>{},options:r,placeholder:"Search technologies...",allowEmpty:!0})]}),parameters:{controls:{disable:!0}}};var s,p,c;l.parameters={...l.parameters,docs:{...(s=l.parameters)==null?void 0:s.docs,source:{originalSource:`{
2
2
  args: {
3
3
  label: 'Select Country',
4
4
  value: '',
@@ -1,4 +1,4 @@
1
- import{j as s}from"./iframe-rPhsLpUF.js";import{u as y}from"./useSound-CISJumm6.js";import{C as g}from"./chevron-down-C40D1TRM.js";const I="_selectInput_qebnx_1",S="_selectWrapper_qebnx_16",j="_selectIcon_qebnx_68",q="_error_qebnx_134",C="_success_qebnx_163",V="_loading_qebnx_190",l={selectInput:I,selectWrapper:S,selectIcon:j,error:q,success:C,loading:V};function w({label:r,value:c,onChange:u,options:i,placeholder:p="Select...",disabled:d=!1,error:f=!1,success:m=!1,loading:a=!1,required:t=!1,soundConfig:v,className:n}){const{handlers:h,playSound:b}=y(v),x=()=>{const e=[l.selectInput];return f&&e.push(l.error),m&&e.push(l.success),a&&e.push(l.loading),e.join(" ")};return s.jsxs("div",{className:`${x()}${n?` ${n}`:""}`,children:[s.jsxs("label",{children:[r,t&&s.jsx("span",{style:{color:"var(--color-error)"},children:" *"})]}),s.jsxs("div",{className:l.selectWrapper,children:[s.jsxs("select",{value:c,onChange:e=>{b("click"),u(e.target.value)},disabled:d||a,required:t,...h,children:[s.jsx("option",{value:"",children:p}),i.map(e=>{const o=typeof e=="string"?e:e.value,_=typeof e=="string"?e:e.label;return s.jsx("option",{value:o,children:_},o)})]}),s.jsx(g,{className:l.selectIcon})]})]})}w.__docgenInfo={description:`SelectInput component - Styled dropdown selector with flexible option format
1
+ import{j as s}from"./iframe-D8qqeeGJ.js";import{u as y}from"./useSound-CUVgLyES.js";import{C as g}from"./chevron-down-dMiwJ2Fa.js";const I="_selectInput_qebnx_1",S="_selectWrapper_qebnx_16",j="_selectIcon_qebnx_68",q="_error_qebnx_134",C="_success_qebnx_163",V="_loading_qebnx_190",l={selectInput:I,selectWrapper:S,selectIcon:j,error:q,success:C,loading:V};function w({label:r,value:c,onChange:u,options:i,placeholder:p="Select...",disabled:d=!1,error:f=!1,success:m=!1,loading:a=!1,required:t=!1,soundConfig:v,className:n}){const{handlers:h,playSound:b}=y(v),x=()=>{const e=[l.selectInput];return f&&e.push(l.error),m&&e.push(l.success),a&&e.push(l.loading),e.join(" ")};return s.jsxs("div",{className:`${x()}${n?` ${n}`:""}`,children:[s.jsxs("label",{children:[r,t&&s.jsx("span",{style:{color:"var(--color-error)"},children:" *"})]}),s.jsxs("div",{className:l.selectWrapper,children:[s.jsxs("select",{value:c,onChange:e=>{b("click"),u(e.target.value)},disabled:d||a,required:t,...h,children:[s.jsx("option",{value:"",children:p}),i.map(e=>{const o=typeof e=="string"?e:e.value,_=typeof e=="string"?e:e.label;return s.jsx("option",{value:o,children:_},o)})]}),s.jsx(g,{className:l.selectIcon})]})]})}w.__docgenInfo={description:`SelectInput component - Styled dropdown selector with flexible option format
2
2
 
3
3
  @component
4
4
  @description