@tsparticles/engine 4.0.0-alpha.0 → 4.0.0-alpha.14

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 (429) hide show
  1. package/219.min.js +1 -0
  2. package/README.md +2 -5
  3. package/browser/Core/Canvas.js +238 -154
  4. package/browser/Core/Container.js +111 -227
  5. package/browser/Core/Engine.js +84 -124
  6. package/browser/Core/Particle.js +236 -140
  7. package/browser/Core/Particles.js +212 -123
  8. package/browser/Core/Retina.js +5 -0
  9. package/browser/Core/Utils/Constants.js +2 -2
  10. package/browser/Core/Utils/EventListeners.js +69 -310
  11. package/browser/Core/Utils/Point.js +2 -0
  12. package/browser/Core/Utils/QuadTree.js +13 -8
  13. package/browser/Core/Utils/Ranges.js +4 -0
  14. package/browser/Core/Utils/Vectors.js +7 -4
  15. package/browser/Enums/Types/EasingType.js +18 -3
  16. package/browser/Options/Classes/AnimatableColor.js +1 -0
  17. package/browser/Options/Classes/AnimationOptions.js +8 -0
  18. package/browser/Options/Classes/Background/Background.js +6 -0
  19. package/browser/Options/Classes/ColorAnimation.js +1 -0
  20. package/browser/Options/Classes/FullScreen/FullScreen.js +2 -0
  21. package/browser/Options/Classes/HslAnimation.js +3 -5
  22. package/browser/Options/Classes/Options.js +32 -78
  23. package/browser/Options/Classes/OptionsColor.js +1 -0
  24. package/browser/Options/Classes/Particles/Bounce/ParticlesBounce.js +2 -0
  25. package/browser/Options/Classes/Particles/Effect/Effect.js +4 -0
  26. package/browser/Options/Classes/Particles/Move/Move.js +18 -0
  27. package/browser/Options/Classes/Particles/Move/MoveAngle.js +2 -0
  28. package/browser/Options/Classes/Particles/Move/MoveAttract.js +3 -0
  29. package/browser/Options/Classes/Particles/Move/MoveCenter.js +4 -0
  30. package/browser/Options/Classes/Particles/Move/MoveGravity.js +4 -0
  31. package/browser/Options/Classes/Particles/Move/OutModes.js +5 -0
  32. package/browser/Options/Classes/Particles/Move/Path/MovePath.js +5 -0
  33. package/browser/Options/Classes/Particles/Move/Spin.js +3 -0
  34. package/browser/Options/Classes/Particles/Number/ParticlesDensity.js +3 -0
  35. package/browser/Options/Classes/Particles/Number/ParticlesNumber.js +3 -0
  36. package/browser/Options/Classes/Particles/Number/ParticlesNumberLimit.js +2 -0
  37. package/browser/Options/Classes/Particles/Opacity/Opacity.js +1 -0
  38. package/browser/Options/Classes/Particles/Opacity/OpacityAnimation.js +1 -0
  39. package/browser/Options/Classes/Particles/ParticlesOptions.js +19 -11
  40. package/browser/Options/Classes/Particles/Shape/Shape.js +4 -0
  41. package/browser/Options/Classes/Particles/Size/Size.js +1 -0
  42. package/browser/Options/Classes/Particles/Size/SizeAnimation.js +1 -0
  43. package/browser/Options/Classes/Particles/Stroke.js +3 -0
  44. package/browser/Options/Classes/Particles/ZIndex/ZIndex.js +3 -0
  45. package/{esm/Options/Classes/Interactivity/Events → browser/Options/Classes}/ResizeEvent.js +3 -1
  46. package/browser/Options/Classes/ValueWithRandom.js +3 -4
  47. package/browser/Utils/CanvasUtils.js +31 -106
  48. package/browser/Utils/ColorUtils.js +17 -2
  49. package/browser/Utils/EventDispatcher.js +1 -0
  50. package/browser/Utils/MathUtils.js +3 -2
  51. package/browser/Utils/Utils.js +53 -44
  52. package/browser/exports.js +1 -21
  53. package/cjs/Core/Canvas.js +238 -154
  54. package/cjs/Core/Container.js +111 -227
  55. package/cjs/Core/Engine.js +84 -124
  56. package/cjs/Core/Particle.js +236 -140
  57. package/cjs/Core/Particles.js +212 -123
  58. package/cjs/Core/Retina.js +5 -0
  59. package/cjs/Core/Utils/Constants.js +2 -2
  60. package/cjs/Core/Utils/EventListeners.js +69 -310
  61. package/cjs/Core/Utils/Point.js +2 -0
  62. package/cjs/Core/Utils/QuadTree.js +13 -8
  63. package/cjs/Core/Utils/Ranges.js +4 -0
  64. package/cjs/Core/Utils/Vectors.js +7 -4
  65. package/cjs/Enums/Types/EasingType.js +18 -3
  66. package/cjs/Options/Classes/AnimatableColor.js +1 -0
  67. package/cjs/Options/Classes/AnimationOptions.js +8 -0
  68. package/cjs/Options/Classes/Background/Background.js +6 -0
  69. package/cjs/Options/Classes/ColorAnimation.js +1 -0
  70. package/cjs/Options/Classes/FullScreen/FullScreen.js +2 -0
  71. package/cjs/Options/Classes/HslAnimation.js +3 -5
  72. package/cjs/Options/Classes/Options.js +32 -78
  73. package/cjs/Options/Classes/OptionsColor.js +1 -0
  74. package/cjs/Options/Classes/Particles/Bounce/ParticlesBounce.js +2 -0
  75. package/cjs/Options/Classes/Particles/Effect/Effect.js +4 -0
  76. package/cjs/Options/Classes/Particles/Move/Move.js +18 -0
  77. package/cjs/Options/Classes/Particles/Move/MoveAngle.js +2 -0
  78. package/cjs/Options/Classes/Particles/Move/MoveAttract.js +3 -0
  79. package/cjs/Options/Classes/Particles/Move/MoveCenter.js +4 -0
  80. package/cjs/Options/Classes/Particles/Move/MoveGravity.js +4 -0
  81. package/cjs/Options/Classes/Particles/Move/OutModes.js +5 -0
  82. package/cjs/Options/Classes/Particles/Move/Path/MovePath.js +5 -0
  83. package/cjs/Options/Classes/Particles/Move/Spin.js +3 -0
  84. package/cjs/Options/Classes/Particles/Number/ParticlesDensity.js +3 -0
  85. package/cjs/Options/Classes/Particles/Number/ParticlesNumber.js +3 -0
  86. package/cjs/Options/Classes/Particles/Number/ParticlesNumberLimit.js +2 -0
  87. package/cjs/Options/Classes/Particles/Opacity/Opacity.js +1 -0
  88. package/cjs/Options/Classes/Particles/Opacity/OpacityAnimation.js +1 -0
  89. package/cjs/Options/Classes/Particles/ParticlesOptions.js +19 -11
  90. package/cjs/Options/Classes/Particles/Shape/Shape.js +4 -0
  91. package/cjs/Options/Classes/Particles/Size/Size.js +1 -0
  92. package/cjs/Options/Classes/Particles/Size/SizeAnimation.js +1 -0
  93. package/cjs/Options/Classes/Particles/Stroke.js +3 -0
  94. package/cjs/Options/Classes/Particles/ZIndex/ZIndex.js +3 -0
  95. package/cjs/Options/Classes/{Interactivity/Events/ResizeEvent.js → ResizeEvent.js} +3 -1
  96. package/cjs/Options/Classes/ValueWithRandom.js +3 -4
  97. package/cjs/Utils/CanvasUtils.js +31 -106
  98. package/cjs/Utils/ColorUtils.js +17 -2
  99. package/cjs/Utils/EventDispatcher.js +1 -0
  100. package/cjs/Utils/MathUtils.js +3 -2
  101. package/cjs/Utils/Utils.js +53 -44
  102. package/cjs/exports.js +1 -21
  103. package/dist_browser_Core_Container_js.js +8 -18
  104. package/esm/Core/Canvas.js +238 -154
  105. package/esm/Core/Container.js +111 -227
  106. package/esm/Core/Engine.js +84 -124
  107. package/esm/Core/Particle.js +236 -140
  108. package/esm/Core/Particles.js +212 -123
  109. package/esm/Core/Retina.js +5 -0
  110. package/esm/Core/Utils/Constants.js +2 -2
  111. package/esm/Core/Utils/EventListeners.js +69 -310
  112. package/esm/Core/Utils/Point.js +2 -0
  113. package/esm/Core/Utils/QuadTree.js +13 -8
  114. package/esm/Core/Utils/Ranges.js +4 -0
  115. package/esm/Core/Utils/Vectors.js +7 -4
  116. package/esm/Enums/Types/EasingType.js +18 -3
  117. package/esm/Options/Classes/AnimatableColor.js +1 -0
  118. package/esm/Options/Classes/AnimationOptions.js +8 -0
  119. package/esm/Options/Classes/Background/Background.js +6 -0
  120. package/esm/Options/Classes/ColorAnimation.js +1 -0
  121. package/esm/Options/Classes/FullScreen/FullScreen.js +2 -0
  122. package/esm/Options/Classes/HslAnimation.js +3 -5
  123. package/esm/Options/Classes/Options.js +32 -78
  124. package/esm/Options/Classes/OptionsColor.js +1 -0
  125. package/esm/Options/Classes/Particles/Bounce/ParticlesBounce.js +2 -0
  126. package/esm/Options/Classes/Particles/Effect/Effect.js +4 -0
  127. package/esm/Options/Classes/Particles/Move/Move.js +18 -0
  128. package/esm/Options/Classes/Particles/Move/MoveAngle.js +2 -0
  129. package/esm/Options/Classes/Particles/Move/MoveAttract.js +3 -0
  130. package/esm/Options/Classes/Particles/Move/MoveCenter.js +4 -0
  131. package/esm/Options/Classes/Particles/Move/MoveGravity.js +4 -0
  132. package/esm/Options/Classes/Particles/Move/OutModes.js +5 -0
  133. package/esm/Options/Classes/Particles/Move/Path/MovePath.js +5 -0
  134. package/esm/Options/Classes/Particles/Move/Spin.js +3 -0
  135. package/esm/Options/Classes/Particles/Number/ParticlesDensity.js +3 -0
  136. package/esm/Options/Classes/Particles/Number/ParticlesNumber.js +3 -0
  137. package/esm/Options/Classes/Particles/Number/ParticlesNumberLimit.js +2 -0
  138. package/esm/Options/Classes/Particles/Opacity/Opacity.js +1 -0
  139. package/esm/Options/Classes/Particles/Opacity/OpacityAnimation.js +1 -0
  140. package/esm/Options/Classes/Particles/ParticlesOptions.js +19 -11
  141. package/esm/Options/Classes/Particles/Shape/Shape.js +4 -0
  142. package/esm/Options/Classes/Particles/Size/Size.js +1 -0
  143. package/esm/Options/Classes/Particles/Size/SizeAnimation.js +1 -0
  144. package/esm/Options/Classes/Particles/Stroke.js +3 -0
  145. package/esm/Options/Classes/Particles/ZIndex/ZIndex.js +3 -0
  146. package/{browser/Options/Classes/Interactivity/Events → esm/Options/Classes}/ResizeEvent.js +3 -1
  147. package/esm/Options/Classes/ValueWithRandom.js +3 -4
  148. package/esm/Utils/CanvasUtils.js +31 -106
  149. package/esm/Utils/ColorUtils.js +17 -2
  150. package/esm/Utils/EventDispatcher.js +1 -0
  151. package/esm/Utils/MathUtils.js +3 -2
  152. package/esm/Utils/Utils.js +53 -44
  153. package/esm/exports.js +1 -21
  154. package/package.json +1 -1
  155. package/report.html +3 -3
  156. package/scripts/install.js +219 -195
  157. package/tsparticles.engine.js +67 -247
  158. package/tsparticles.engine.min.js +2 -2
  159. package/types/Core/Canvas.d.ts +15 -4
  160. package/types/Core/Container.d.ts +5 -20
  161. package/types/Core/Engine.d.ts +18 -32
  162. package/types/Core/Interfaces/IColorManager.d.ts +0 -1
  163. package/types/Core/Interfaces/IContainerPlugin.d.ts +12 -2
  164. package/types/Core/Interfaces/IDrawParticleParams.d.ts +1 -1
  165. package/types/Core/Interfaces/IMovePathGenerator.d.ts +1 -2
  166. package/types/Core/Interfaces/IParticleOpacityData.d.ts +4 -0
  167. package/types/Core/Interfaces/IParticleRotateData.d.ts +4 -0
  168. package/types/Core/Interfaces/IParticleTransformValues.d.ts +4 -4
  169. package/types/Core/Interfaces/IParticleUpdater.d.ts +1 -1
  170. package/types/Core/Interfaces/IPlugin.d.ts +5 -1
  171. package/types/Core/Interfaces/IShapeDrawer.d.ts +0 -1
  172. package/types/Core/Particle.d.ts +13 -2
  173. package/types/Core/Particles.d.ts +17 -8
  174. package/types/Core/Utils/Constants.d.ts +2 -2
  175. package/types/Core/Utils/EventListeners.d.ts +0 -14
  176. package/types/Enums/Types/EasingType.d.ts +20 -5
  177. package/types/Options/Classes/HslAnimation.d.ts +3 -4
  178. package/types/Options/Classes/Options.d.ts +2 -11
  179. package/types/Options/Classes/Particles/ParticlesOptions.d.ts +0 -2
  180. package/types/Options/Classes/ResizeEvent.d.ts +9 -0
  181. package/types/Options/Classes/ValueWithRandom.d.ts +0 -1
  182. package/types/Options/Interfaces/IOptions.d.ts +2 -8
  183. package/types/Options/Interfaces/Particles/IParticlesOptions.d.ts +0 -3
  184. package/types/Types/CustomEventListener.d.ts +1 -1
  185. package/types/Types/EngineInitializers.d.ts +19 -0
  186. package/types/Utils/CanvasUtils.d.ts +6 -25
  187. package/types/Utils/EventDispatcher.d.ts +1 -1
  188. package/types/Utils/Utils.d.ts +5 -7
  189. package/types/export-types.d.ts +3 -19
  190. package/types/exports.d.ts +1 -21
  191. package/umd/Core/Canvas.js +236 -152
  192. package/umd/Core/Container.js +111 -227
  193. package/umd/Core/Engine.js +83 -123
  194. package/umd/Core/Particle.js +236 -140
  195. package/umd/Core/Particles.js +213 -124
  196. package/umd/Core/Retina.js +5 -0
  197. package/umd/Core/Utils/Constants.js +3 -3
  198. package/umd/Core/Utils/EventListeners.js +69 -310
  199. package/umd/Core/Utils/Point.js +2 -0
  200. package/umd/Core/Utils/QuadTree.js +13 -8
  201. package/umd/Core/Utils/Ranges.js +4 -0
  202. package/umd/Core/Utils/Vectors.js +7 -4
  203. package/umd/Enums/Types/EasingType.js +18 -3
  204. package/umd/Options/Classes/AnimatableColor.js +1 -0
  205. package/umd/Options/Classes/AnimationOptions.js +8 -0
  206. package/umd/Options/Classes/Background/Background.js +6 -0
  207. package/umd/Options/Classes/ColorAnimation.js +1 -0
  208. package/umd/Options/Classes/FullScreen/FullScreen.js +2 -0
  209. package/umd/Options/Classes/HslAnimation.js +3 -5
  210. package/umd/Options/Classes/Options.js +32 -78
  211. package/umd/Options/Classes/OptionsColor.js +1 -0
  212. package/umd/Options/Classes/Particles/Bounce/ParticlesBounce.js +2 -0
  213. package/umd/Options/Classes/Particles/Effect/Effect.js +4 -0
  214. package/umd/Options/Classes/Particles/Move/Move.js +18 -0
  215. package/umd/Options/Classes/Particles/Move/MoveAngle.js +2 -0
  216. package/umd/Options/Classes/Particles/Move/MoveAttract.js +3 -0
  217. package/umd/Options/Classes/Particles/Move/MoveCenter.js +4 -0
  218. package/umd/Options/Classes/Particles/Move/MoveGravity.js +4 -0
  219. package/umd/Options/Classes/Particles/Move/OutModes.js +5 -0
  220. package/umd/Options/Classes/Particles/Move/Path/MovePath.js +5 -0
  221. package/umd/Options/Classes/Particles/Move/Spin.js +3 -0
  222. package/umd/Options/Classes/Particles/Number/ParticlesDensity.js +3 -0
  223. package/umd/Options/Classes/Particles/Number/ParticlesNumber.js +3 -0
  224. package/umd/Options/Classes/Particles/Number/ParticlesNumberLimit.js +2 -0
  225. package/umd/Options/Classes/Particles/Opacity/Opacity.js +1 -0
  226. package/umd/Options/Classes/Particles/Opacity/OpacityAnimation.js +1 -0
  227. package/umd/Options/Classes/Particles/ParticlesOptions.js +19 -11
  228. package/umd/Options/Classes/Particles/Shape/Shape.js +4 -0
  229. package/umd/Options/Classes/Particles/Size/Size.js +1 -0
  230. package/umd/Options/Classes/Particles/Size/SizeAnimation.js +1 -0
  231. package/umd/Options/Classes/Particles/Stroke.js +3 -0
  232. package/umd/Options/Classes/Particles/ZIndex/ZIndex.js +3 -0
  233. package/umd/Options/Classes/{Interactivity/Events/ResizeEvent.js → ResizeEvent.js} +4 -2
  234. package/umd/Options/Classes/ValueWithRandom.js +3 -4
  235. package/umd/Utils/CanvasUtils.js +30 -108
  236. package/umd/Utils/ColorUtils.js +17 -2
  237. package/umd/Utils/EventDispatcher.js +1 -0
  238. package/umd/Utils/MathUtils.js +3 -2
  239. package/umd/Utils/Utils.js +55 -48
  240. package/umd/exports.js +2 -22
  241. package/638.min.js +0 -2
  242. package/638.min.js.LICENSE.txt +0 -1
  243. package/browser/Core/Utils/ExternalInteractorBase.js +0 -7
  244. package/browser/Core/Utils/InteractionManager.js +0 -60
  245. package/browser/Core/Utils/ParticlesInteractorBase.js +0 -7
  246. package/browser/Enums/InteractivityDetect.js +0 -6
  247. package/browser/Enums/Modes/ResponsiveMode.js +0 -5
  248. package/browser/Enums/Modes/ThemeMode.js +0 -6
  249. package/browser/Enums/Types/DivType.js +0 -5
  250. package/browser/Enums/Types/InteractorType.js +0 -5
  251. package/browser/Options/Classes/Interactivity/Events/ClickEvent.js +0 -18
  252. package/browser/Options/Classes/Interactivity/Events/DivEvent.js +0 -27
  253. package/browser/Options/Classes/Interactivity/Events/Events.js +0 -30
  254. package/browser/Options/Classes/Interactivity/Events/HoverEvent.js +0 -21
  255. package/browser/Options/Classes/Interactivity/Events/Parallax.js +0 -22
  256. package/browser/Options/Classes/Interactivity/Interactivity.js +0 -22
  257. package/browser/Options/Classes/Interactivity/Modes/Modes.js +0 -25
  258. package/browser/Options/Classes/ManualParticle.js +0 -21
  259. package/browser/Options/Classes/Responsive.js +0 -29
  260. package/browser/Options/Classes/Theme/Theme.js +0 -21
  261. package/browser/Options/Classes/Theme/ThemeDefault.js +0 -23
  262. package/browser/Options/Interfaces/Interactivity/Events/IEvents.js +0 -1
  263. package/browser/Options/Interfaces/Interactivity/Events/IHoverEvent.js +0 -1
  264. package/browser/Options/Interfaces/Interactivity/Events/IParallax.js +0 -1
  265. package/browser/Options/Interfaces/Interactivity/IInteractivity.js +0 -1
  266. package/browser/Options/Interfaces/Interactivity/Modes/IModeDiv.js +0 -1
  267. package/browser/Options/Interfaces/Interactivity/Modes/IModes.js +0 -1
  268. package/browser/Options/Interfaces/Theme/ITheme.js +0 -1
  269. package/browser/Options/Interfaces/Theme/IThemeDefault.js +0 -1
  270. package/cjs/Core/Interfaces/IContainerInteractivity.js +0 -1
  271. package/cjs/Core/Interfaces/IExternalInteractor.js +0 -1
  272. package/cjs/Core/Interfaces/IInteractor.js +0 -1
  273. package/cjs/Core/Interfaces/IMouseData.js +0 -1
  274. package/cjs/Core/Interfaces/IParticlesInteractor.js +0 -1
  275. package/cjs/Core/Utils/ExternalInteractorBase.js +0 -7
  276. package/cjs/Core/Utils/InteractionManager.js +0 -60
  277. package/cjs/Core/Utils/ParticlesInteractorBase.js +0 -7
  278. package/cjs/Enums/InteractivityDetect.js +0 -6
  279. package/cjs/Enums/Modes/ResponsiveMode.js +0 -5
  280. package/cjs/Enums/Modes/ThemeMode.js +0 -6
  281. package/cjs/Enums/Types/DivType.js +0 -5
  282. package/cjs/Enums/Types/InteractorType.js +0 -5
  283. package/cjs/Options/Classes/Interactivity/Events/ClickEvent.js +0 -18
  284. package/cjs/Options/Classes/Interactivity/Events/DivEvent.js +0 -27
  285. package/cjs/Options/Classes/Interactivity/Events/Events.js +0 -30
  286. package/cjs/Options/Classes/Interactivity/Events/HoverEvent.js +0 -21
  287. package/cjs/Options/Classes/Interactivity/Events/Parallax.js +0 -22
  288. package/cjs/Options/Classes/Interactivity/Interactivity.js +0 -22
  289. package/cjs/Options/Classes/Interactivity/Modes/Modes.js +0 -25
  290. package/cjs/Options/Classes/ManualParticle.js +0 -21
  291. package/cjs/Options/Classes/Responsive.js +0 -29
  292. package/cjs/Options/Classes/Theme/Theme.js +0 -21
  293. package/cjs/Options/Classes/Theme/ThemeDefault.js +0 -23
  294. package/cjs/Options/Interfaces/IManualParticle.js +0 -1
  295. package/cjs/Options/Interfaces/IResponsive.js +0 -1
  296. package/cjs/Options/Interfaces/Interactivity/Events/IClickEvent.js +0 -1
  297. package/cjs/Options/Interfaces/Interactivity/Events/IDivEvent.js +0 -1
  298. package/cjs/Options/Interfaces/Interactivity/Events/IEvents.js +0 -1
  299. package/cjs/Options/Interfaces/Interactivity/Events/IHoverEvent.js +0 -1
  300. package/cjs/Options/Interfaces/Interactivity/Events/IParallax.js +0 -1
  301. package/cjs/Options/Interfaces/Interactivity/IInteractivity.js +0 -1
  302. package/cjs/Options/Interfaces/Interactivity/Modes/IModeDiv.js +0 -1
  303. package/cjs/Options/Interfaces/Interactivity/Modes/IModes.js +0 -1
  304. package/cjs/Options/Interfaces/Theme/ITheme.js +0 -1
  305. package/cjs/Options/Interfaces/Theme/IThemeDefault.js +0 -1
  306. package/esm/Core/Interfaces/IContainerInteractivity.js +0 -1
  307. package/esm/Core/Interfaces/IExternalInteractor.js +0 -1
  308. package/esm/Core/Interfaces/IInteractor.js +0 -1
  309. package/esm/Core/Interfaces/IMouseData.js +0 -1
  310. package/esm/Core/Interfaces/IParticlesInteractor.js +0 -1
  311. package/esm/Core/Utils/ExternalInteractorBase.js +0 -7
  312. package/esm/Core/Utils/InteractionManager.js +0 -60
  313. package/esm/Core/Utils/ParticlesInteractorBase.js +0 -7
  314. package/esm/Enums/InteractivityDetect.js +0 -6
  315. package/esm/Enums/Modes/ResponsiveMode.js +0 -5
  316. package/esm/Enums/Modes/ThemeMode.js +0 -6
  317. package/esm/Enums/Types/DivType.js +0 -5
  318. package/esm/Enums/Types/InteractorType.js +0 -5
  319. package/esm/Options/Classes/Interactivity/Events/ClickEvent.js +0 -18
  320. package/esm/Options/Classes/Interactivity/Events/DivEvent.js +0 -27
  321. package/esm/Options/Classes/Interactivity/Events/Events.js +0 -30
  322. package/esm/Options/Classes/Interactivity/Events/HoverEvent.js +0 -21
  323. package/esm/Options/Classes/Interactivity/Events/Parallax.js +0 -22
  324. package/esm/Options/Classes/Interactivity/Interactivity.js +0 -22
  325. package/esm/Options/Classes/Interactivity/Modes/Modes.js +0 -25
  326. package/esm/Options/Classes/ManualParticle.js +0 -21
  327. package/esm/Options/Classes/Responsive.js +0 -29
  328. package/esm/Options/Classes/Theme/Theme.js +0 -21
  329. package/esm/Options/Classes/Theme/ThemeDefault.js +0 -23
  330. package/esm/Options/Interfaces/IManualParticle.js +0 -1
  331. package/esm/Options/Interfaces/IResponsive.js +0 -1
  332. package/esm/Options/Interfaces/Interactivity/Events/IClickEvent.js +0 -1
  333. package/esm/Options/Interfaces/Interactivity/Events/IDivEvent.js +0 -1
  334. package/esm/Options/Interfaces/Interactivity/Events/IEvents.js +0 -1
  335. package/esm/Options/Interfaces/Interactivity/Events/IHoverEvent.js +0 -1
  336. package/esm/Options/Interfaces/Interactivity/Events/IParallax.js +0 -1
  337. package/esm/Options/Interfaces/Interactivity/IInteractivity.js +0 -1
  338. package/esm/Options/Interfaces/Interactivity/Modes/IModeDiv.js +0 -1
  339. package/esm/Options/Interfaces/Interactivity/Modes/IModes.js +0 -1
  340. package/esm/Options/Interfaces/Theme/ITheme.js +0 -1
  341. package/esm/Options/Interfaces/Theme/IThemeDefault.js +0 -1
  342. package/tsparticles.engine.min.js.LICENSE.txt +0 -1
  343. package/types/Core/Interfaces/IContainerInteractivity.d.ts +0 -6
  344. package/types/Core/Interfaces/IExternalInteractor.d.ts +0 -12
  345. package/types/Core/Interfaces/IInteractor.d.ts +0 -16
  346. package/types/Core/Interfaces/IMouseData.d.ts +0 -9
  347. package/types/Core/Interfaces/IParticlesInteractor.d.ts +0 -7
  348. package/types/Core/Utils/ExternalInteractorBase.d.ts +0 -15
  349. package/types/Core/Utils/InteractionManager.d.ts +0 -17
  350. package/types/Core/Utils/ParticlesInteractorBase.d.ts +0 -15
  351. package/types/Enums/InteractivityDetect.d.ts +0 -5
  352. package/types/Enums/Modes/ResponsiveMode.d.ts +0 -4
  353. package/types/Enums/Modes/ThemeMode.d.ts +0 -5
  354. package/types/Enums/Types/DivType.d.ts +0 -4
  355. package/types/Enums/Types/InteractorType.d.ts +0 -4
  356. package/types/Options/Classes/Interactivity/Events/ClickEvent.d.ts +0 -10
  357. package/types/Options/Classes/Interactivity/Events/DivEvent.d.ts +0 -13
  358. package/types/Options/Classes/Interactivity/Events/Events.d.ts +0 -16
  359. package/types/Options/Classes/Interactivity/Events/HoverEvent.d.ts +0 -12
  360. package/types/Options/Classes/Interactivity/Events/Parallax.d.ts +0 -10
  361. package/types/Options/Classes/Interactivity/Events/ResizeEvent.d.ts +0 -9
  362. package/types/Options/Classes/Interactivity/Interactivity.d.ts +0 -16
  363. package/types/Options/Classes/Interactivity/Modes/Modes.d.ts +0 -12
  364. package/types/Options/Classes/ManualParticle.d.ts +0 -10
  365. package/types/Options/Classes/Responsive.d.ts +0 -12
  366. package/types/Options/Classes/Theme/Theme.d.ts +0 -12
  367. package/types/Options/Classes/Theme/ThemeDefault.d.ts +0 -11
  368. package/types/Options/Interfaces/IManualParticle.d.ts +0 -7
  369. package/types/Options/Interfaces/IResponsive.d.ts +0 -7
  370. package/types/Options/Interfaces/Interactivity/Events/IClickEvent.d.ts +0 -5
  371. package/types/Options/Interfaces/Interactivity/Events/IDivEvent.d.ts +0 -8
  372. package/types/Options/Interfaces/Interactivity/Events/IEvents.d.ts +0 -11
  373. package/types/Options/Interfaces/Interactivity/Events/IHoverEvent.d.ts +0 -7
  374. package/types/Options/Interfaces/Interactivity/Events/IParallax.d.ts +0 -5
  375. package/types/Options/Interfaces/Interactivity/IInteractivity.d.ts +0 -9
  376. package/types/Options/Interfaces/Interactivity/Modes/IModeDiv.d.ts +0 -4
  377. package/types/Options/Interfaces/Interactivity/Modes/IModes.d.ts +0 -1
  378. package/types/Options/Interfaces/Theme/ITheme.d.ts +0 -7
  379. package/types/Options/Interfaces/Theme/IThemeDefault.d.ts +0 -6
  380. package/umd/Core/Interfaces/IMouseData.js +0 -12
  381. package/umd/Core/Interfaces/IParticlesInteractor.js +0 -12
  382. package/umd/Core/Utils/ExternalInteractorBase.js +0 -21
  383. package/umd/Core/Utils/InteractionManager.js +0 -74
  384. package/umd/Core/Utils/ParticlesInteractorBase.js +0 -21
  385. package/umd/Enums/InteractivityDetect.js +0 -19
  386. package/umd/Enums/Modes/ResponsiveMode.js +0 -18
  387. package/umd/Enums/Modes/ThemeMode.js +0 -19
  388. package/umd/Enums/Types/DivType.js +0 -18
  389. package/umd/Enums/Types/InteractorType.js +0 -18
  390. package/umd/Options/Classes/Interactivity/Events/ClickEvent.js +0 -32
  391. package/umd/Options/Classes/Interactivity/Events/DivEvent.js +0 -41
  392. package/umd/Options/Classes/Interactivity/Events/Events.js +0 -44
  393. package/umd/Options/Classes/Interactivity/Events/HoverEvent.js +0 -35
  394. package/umd/Options/Classes/Interactivity/Events/Parallax.js +0 -36
  395. package/umd/Options/Classes/Interactivity/Interactivity.js +0 -36
  396. package/umd/Options/Classes/Interactivity/Modes/Modes.js +0 -39
  397. package/umd/Options/Classes/ManualParticle.js +0 -35
  398. package/umd/Options/Classes/Responsive.js +0 -43
  399. package/umd/Options/Classes/Theme/Theme.js +0 -35
  400. package/umd/Options/Classes/Theme/ThemeDefault.js +0 -37
  401. package/umd/Options/Interfaces/IManualParticle.js +0 -12
  402. package/umd/Options/Interfaces/IResponsive.js +0 -12
  403. package/umd/Options/Interfaces/Interactivity/Events/IClickEvent.js +0 -12
  404. package/umd/Options/Interfaces/Interactivity/Events/IDivEvent.js +0 -12
  405. package/umd/Options/Interfaces/Interactivity/Events/IEvents.js +0 -12
  406. package/umd/Options/Interfaces/Interactivity/Events/IHoverEvent.js +0 -12
  407. package/umd/Options/Interfaces/Interactivity/Events/IParallax.js +0 -12
  408. package/umd/Options/Interfaces/Interactivity/IInteractivity.js +0 -12
  409. package/umd/Options/Interfaces/Interactivity/Modes/IModeDiv.js +0 -12
  410. package/umd/Options/Interfaces/Interactivity/Modes/IModes.js +0 -12
  411. package/umd/Options/Interfaces/Theme/ITheme.js +0 -12
  412. package/umd/Options/Interfaces/Theme/IThemeDefault.js +0 -12
  413. /package/browser/Core/Interfaces/{IContainerInteractivity.js → IParticleOpacityData.js} +0 -0
  414. /package/browser/Core/Interfaces/{IExternalInteractor.js → IParticleRotateData.js} +0 -0
  415. /package/browser/Options/Interfaces/{Interactivity/Events/IResizeEvent.js → IResizeEvent.js} +0 -0
  416. /package/browser/{Core/Interfaces/IInteractor.js → Types/EngineInitializers.js} +0 -0
  417. /package/{browser/Core/Interfaces/IMouseData.js → cjs/Core/Interfaces/IParticleOpacityData.js} +0 -0
  418. /package/{browser/Core/Interfaces/IParticlesInteractor.js → cjs/Core/Interfaces/IParticleRotateData.js} +0 -0
  419. /package/cjs/Options/Interfaces/{Interactivity/Events/IResizeEvent.js → IResizeEvent.js} +0 -0
  420. /package/{browser/Options/Interfaces/IManualParticle.js → cjs/Types/EngineInitializers.js} +0 -0
  421. /package/{browser/Options/Interfaces/IResponsive.js → esm/Core/Interfaces/IParticleOpacityData.js} +0 -0
  422. /package/{browser/Options/Interfaces/Interactivity/Events/IClickEvent.js → esm/Core/Interfaces/IParticleRotateData.js} +0 -0
  423. /package/esm/Options/Interfaces/{Interactivity/Events/IResizeEvent.js → IResizeEvent.js} +0 -0
  424. /package/{browser/Options/Interfaces/Interactivity/Events/IDivEvent.js → esm/Types/EngineInitializers.js} +0 -0
  425. /package/types/Options/Interfaces/{Interactivity/Events/IResizeEvent.d.ts → IResizeEvent.d.ts} +0 -0
  426. /package/umd/Core/Interfaces/{IContainerInteractivity.js → IParticleOpacityData.js} +0 -0
  427. /package/umd/Core/Interfaces/{IExternalInteractor.js → IParticleRotateData.js} +0 -0
  428. /package/umd/Options/Interfaces/{Interactivity/Events/IResizeEvent.js → IResizeEvent.js} +0 -0
  429. /package/umd/{Core/Interfaces/IInteractor.js → Types/EngineInitializers.js} +0 -0
@@ -1,2 +1,2 @@
1
- /*! For license information please see tsparticles.engine.min.js.LICENSE.txt */
2
- !function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var i=e();for(var n in i)("object"==typeof exports?exports:t)[n]=i[n]}}(this,(()=>(()=>{var t,e,i={181(t,e,i){var n;i.d(e,{V:()=>n}),function(t){t.none="none",t.max="max",t.min="min"}(n||(n={}))},183(t,e,i){i.d(e,{B:()=>o,t:()=>s});const n={debug:console.debug,error:(t,e)=>{console.error(`tsParticles - Error - ${t}`,e)},info:console.info,log:console.log,verbose:console.log,warning:console.warn};function o(t){n.debug=t.debug,n.error=t.error,n.info=t.info,n.log=t.log,n.verbose=t.verbose,n.warning=t.warning}function s(){return n}},397(t,e,i){i.d(e,{$m:()=>O,AD:()=>p,DT:()=>M,G0:()=>h,JY:()=>D,M3:()=>_,Mh:()=>T,Nx:()=>F,OE:()=>d,OW:()=>S,Sg:()=>x,VG:()=>b,W9:()=>w,Yf:()=>z,e4:()=>u,eh:()=>R,i0:()=>f,jh:()=>g,l1:()=>E,pu:()=>P,px:()=>v,qE:()=>m,qM:()=>A,vE:()=>y,vr:()=>k});var n=i(4342),o=i(4117),s=i(560),a=i(3631);const r=Math.PI/180;let c=Math.random;const l={nextFrame:t=>requestAnimationFrame(t),cancel:t=>{cancelAnimationFrame(t)}};function d(t=Math.random){c=t}function h(){return m(c(),0,1-Number.EPSILON)}function u(t,e){return h()*(e-t)+t}function p(t,e){l.nextFrame=e=>t(e),l.cancel=t=>{e(t)}}function f(t){return l.nextFrame(t)}function v(t){l.cancel(t)}function m(t,e,i){return Math.min(Math.max(t,e),i)}function g(t,e,i,n){return Math.floor((t*i+e*n)/(i+n))}function y(t){const e=w(t);let i=x(t);return e===i&&(i=0),u(i,e)}function b(t){return(0,a.Et)(t)?t:y(t)}function x(t){return(0,a.Et)(t)?t:t.min}function w(t){return(0,a.Et)(t)?t:t.max}function M(t,e){if(t===e||void 0===e&&(0,a.Et)(t))return t;const i=x(t),n=w(t);return void 0!==e?{min:Math.min(i,e),max:Math.max(n,e)}:M(i,n)}function k(t,e){const i=t.x-e.x,n=t.y-e.y;return{dx:i,dy:n,distance:Math.sqrt(i**2+n**2)}}function z(t,e){return k(t,e).distance}function P(t){return t*r}function D(t,e,i){if((0,a.Et)(t))return P(t);switch(t){case n.F.top:return-Math.PI*o.MX;case n.F.topRight:return-Math.PI*o.$G;case n.F.right:return o.Ie;case n.F.bottomRight:return Math.PI*o.$G;case n.F.bottom:return Math.PI*o.MX;case n.F.bottomLeft:return Math.PI*o.Rq;case n.F.left:return Math.PI;case n.F.topLeft:return-Math.PI*o.Rq;case n.F.inside:return Math.atan2(i.y-e.y,i.x-e.x);case n.F.outside:return Math.atan2(e.y-i.y,e.x-i.x);default:return h()*o.R1}}function O(t){const e=s.M.origin;return e.length=1,e.angle=t,e}function S(t,e,i,n){return s.M.create(t.x*(i-n)/(i+n)+e.x*o.gd*n/(i+n),t.y)}function R(t){return void 0!==t.position?.x&&void 0!==t.position.y?{x:t.position.x*t.size.width/o.a5,y:t.position.y*t.size.height/o.a5}:void 0}function T(t){return{x:(t.position?.x??h()*o.a5)*t.size.width/o.a5,y:(t.position?.y??h()*o.a5)*t.size.height/o.a5}}function E(t){const e={x:void 0!==t.position?.x?b(t.position.x):void 0,y:void 0!==t.position?.y?b(t.position.y):void 0};return T({size:t.size,position:e})}function F(t){return{x:t.position?.x??h()*t.size.width,y:t.position?.y??h()*t.size.height}}function A(t){const e={x:void 0!==t.position?.x?b(t.position.x):void 0,y:void 0!==t.position?.y?b(t.position.y):void 0};return F({size:t.size,position:e})}function _(t){return t?t.endsWith("%")?parseFloat(t)/o.a5:parseFloat(t):1}},560(t,e,i){i.d(e,{M:()=>s,p:()=>o});var n=i(4117);class o{constructor(t=n.bo.x,e=n.bo.y,i=n.bo.z){this._updateFromAngle=(t,e)=>{this.x=Math.cos(t)*e,this.y=Math.sin(t)*e},this.x=t,this.y=e,this.z=i}static get origin(){return o.create(n.bo.x,n.bo.y,n.bo.z)}get angle(){return Math.atan2(this.y,this.x)}set angle(t){this._updateFromAngle(t,this.length)}get length(){return Math.sqrt(this.getLengthSq())}set length(t){this._updateFromAngle(this.angle,t)}static clone(t){return o.create(t.x,t.y,t.z)}static create(t,e,i){return"number"==typeof t?new o(t,e??n.bo.y,i??n.bo.z):new o(t.x,t.y,Object.hasOwn(t,"z")?t.z:n.bo.z)}add(t){return o.create(this.x+t.x,this.y+t.y,this.z+t.z)}addTo(t){this.x+=t.x,this.y+=t.y,this.z+=t.z}copy(){return o.clone(this)}distanceTo(t){return this.sub(t).length}distanceToSq(t){return this.sub(t).getLengthSq()}div(t){return o.create(this.x/t,this.y/t,this.z/t)}divTo(t){this.x/=t,this.y/=t,this.z/=t}getLengthSq(){return this.x**n.dm+this.y**n.dm}mult(t){return o.create(this.x*t,this.y*t,this.z*t)}multTo(t){this.x*=t,this.y*=t,this.z*=t}normalize(){const t=this.length;t!=n.dv&&this.multTo(n.hB/t)}rotate(t){return o.create(this.x*Math.cos(t)-this.y*Math.sin(t),this.x*Math.sin(t)+this.y*Math.cos(t),n.bo.z)}setTo(t){this.x=t.x,this.y=t.y;const e=t;this.z=e.z?e.z:n.bo.z}sub(t){return o.create(this.x-t.x,this.y-t.y,this.z-t.z)}subFrom(t){this.x-=t.x,this.y-=t.y,this.z-=t.z}}class s extends o{constructor(t=n.bo.x,e=n.bo.y){super(t,e,n.bo.z)}static get origin(){return s.create(n.bo.x,n.bo.y)}static clone(t){return s.create(t.x,t.y)}static create(t,e){return"number"==typeof t?new s(t,e??n.bo.y):new s(t.x,t.y)}}},615(t,e,i){i.d(e,{AE:()=>z,Al:()=>b,BR:()=>m,E9:()=>L,NV:()=>R,O2:()=>k,S7:()=>S,T5:()=>f,TA:()=>A,Tg:()=>T,Tj:()=>M,U6:()=>O,UC:()=>C,Vh:()=>w,Xs:()=>I,YC:()=>Z,hJ:()=>B,hn:()=>y,iK:()=>D,lV:()=>v,n0:()=>x,pE:()=>E,q8:()=>p,tG:()=>g,td:()=>G,w3:()=>_,wJ:()=>F,zw:()=>P});var n=i(397),o=i(4117),s=i(3631),a=i(3551),r=i(1689),c=i(181),l=i(1874),d=i(7997),h=i(782),u=i(560);function p(){return"undefined"!=typeof matchMedia}function f(){return globalThis.document}function v(t){if(p())return matchMedia(t)}function m(t){if("undefined"!=typeof IntersectionObserver)return new IntersectionObserver(t)}function g(t){if("undefined"!=typeof MutationObserver)return new MutationObserver(t)}function y(t,e){return t===e||(0,s.cy)(e)&&e.includes(t)}async function b(t,e){try{await f().fonts.load(`${e??"400"} 36px '${t??"Verdana"}'`)}catch{}}function x(t){return Math.floor((0,n.G0)()*t.length)}function w(t,e,i=!0){return t[void 0!==e&&i?e%t.length:x(t)]}function M(t,e,i,n,o){return k(z(t,n??0),e,i,o)}function k(t,e,i,n){let o=!0;return n&&n!==l.v.bottom||(o=t.top<e.height+i.x),!o||n&&n!==l.v.left||(o=t.right>i.x),!o||n&&n!==l.v.right||(o=t.left<e.width+i.y),!o||n&&n!==l.v.top||(o=t.bottom>i.y),o}function z(t,e){return{bottom:t.y+e,left:t.x-e,right:t.x+e,top:t.y-e}}function P(t,...e){for(const i of e){if(null==i)continue;if(!(0,s.Gv)(i)){t=i;continue}const e=Array.isArray(i);!e||!(0,s.Gv)(t)&&t&&Array.isArray(t)?e||!(0,s.Gv)(t)&&t&&!Array.isArray(t)||(t={}):t=[];for(const e in i){if("__proto__"===e)continue;const n=i[e],o=t;o[e]=(0,s.Gv)(n)&&Array.isArray(n)?n.map((t=>P(o[e],t))):P(o[e],n)}}return t}function D(t,e){return!!_(e,(e=>e.enable&&y(t,e.mode)))}function O(t,e,i){F(e,(e=>{const n=e.mode;e.enable&&y(t,n)&&S(e,i)}))}function S(t,e){F(t.selectors,(i=>{e(i,t)}))}function R(t,e){if(e&&t)return _(t,(t=>function(t,e){const i=F(e,(e=>t.matches(e)));return(0,s.cy)(i)?i.some((t=>t)):i}(e,t.selectors)))}function T(t){return{position:t.getPosition(),radius:t.getRadius(),mass:t.getMass(),velocity:t.velocity,factor:u.M.create((0,n.VG)(t.options.bounce.horizontal.value),(0,n.VG)(t.options.bounce.vertical.value))}}function E(t,e){const{x:i,y:o}=t.velocity.sub(e.velocity),[s,a]=[t.position,e.position],{dx:r,dy:c}=(0,n.vr)(a,s);if(i*r+o*c<0)return;const l=-Math.atan2(c,r),d=t.mass,h=e.mass,u=t.velocity.rotate(l),p=e.velocity.rotate(l),f=(0,n.OW)(u,p,d,h),v=(0,n.OW)(p,u,d,h),m=f.rotate(-l),g=v.rotate(-l);t.velocity.x=m.x*t.factor.x,t.velocity.y=m.y*t.factor.y,e.velocity.x=g.x*e.factor.x,e.velocity.y=g.y*e.factor.y}function F(t,e){return(0,s.cy)(t)?t.map(((t,i)=>e(t,i))):e(t,0)}function A(t,e,i){return(0,s.cy)(t)?w(t,e,i):t}function _(t,e){if((0,s.cy)(t))return t.find(((t,i)=>e(t,i)));return e(t,0)?t:void 0}function I(t,e){const i=t.value,s=t.animation,c={delayTime:(0,n.VG)(s.delay)*o.Xu,enable:s.enable,value:(0,n.VG)(t.value)*e,max:(0,n.W9)(i)*e,min:(0,n.Sg)(i)*e,loops:0,maxLoops:(0,n.VG)(s.count),time:0};if(s.enable){switch(c.decay=1-(0,n.VG)(s.decay),s.mode){case a.g.increase:c.status=r.H.increasing;break;case a.g.decrease:c.status=r.H.decreasing;break;case a.g.random:c.status=(0,n.G0)()>=o.MX?r.H.increasing:r.H.decreasing}const t=s.mode===a.g.auto;switch(s.startValue){case h.S.min:c.value=c.min,t&&(c.status=r.H.increasing);break;case h.S.max:c.value=c.max,t&&(c.status=r.H.decreasing);break;case h.S.random:default:c.value=(0,n.vE)(c),t&&(c.status=(0,n.G0)()>=o.MX?r.H.increasing:r.H.decreasing)}}return c.initialValue=c.value,c}function V(t,e){if(!(t.mode===d.q.percent)){const{mode:e,...i}=t;return i}return"x"in t?{x:t.x/o.a5*e.width,y:t.y/o.a5*e.height}:{width:t.width/o.a5*e.width,height:t.height/o.a5*e.height}}function L(t,e){return V(t,e)}function Z(t,e){return V(t,e)}function C(t,e,i,o,s){if(t.destroyed||!e.enable||(e.maxLoops??0)>0&&(e.loops??0)>(e.maxLoops??0))return;const a=(e.velocity??0)*s.factor,l=e.min,d=e.max,h=e.decay??1;if(e.time??=0,(e.delayTime??0)>0&&e.time<(e.delayTime??0)&&(e.time+=s.value),!((e.delayTime??0)>0&&e.time<(e.delayTime??0))){switch(e.status){case r.H.increasing:e.value>=d?(i?e.status=r.H.decreasing:e.value-=d,e.loops??=0,e.loops++):e.value+=a;break;case r.H.decreasing:e.value<=l?(i?e.status=r.H.increasing:e.value+=d,e.loops??=0,e.loops++):e.value-=a}e.velocity&&1!==h&&(e.velocity*=h),function(t,e,i,n,o){switch(e){case c.V.max:i>=o&&t.destroy();break;case c.V.min:i<=n&&t.destroy()}}(t,o,e.value,l,d),e.value=(0,n.qE)(e.value,l,d)}}function G(t){const e=f().createElement("div").style;for(const i in t){const n=t[i];if(!Object.prototype.hasOwnProperty.call(t,i)||(0,s.kZ)(n))continue;const o=t.getPropertyValue?.(n);if(!o)continue;const a=t.getPropertyPriority?.(n);a?e.setProperty(n,o,a):e.setProperty(n,o)}return e}const B=function(t){const e=new Map;return(...i)=>{const n=JSON.stringify(i);if(e.has(n))return e.get(n);const o=t(...i);return e.set(n,o),o}}((function(t){const e=f().createElement("div").style,i={width:"100%",height:"100%",margin:"0",padding:"0",borderWidth:"0",position:"fixed",zIndex:t.toString(10),"z-index":t.toString(10),top:"0",left:"0"};for(const t in i){const n=i[t];void 0!==n&&e.setProperty(t,n)}return e}))},753(t,e,i){var n;i.d(e,{x:()=>n}),function(t){t.normal="normal",t.inside="inside",t.outside="outside"}(n||(n={}))},782(t,e,i){var n;i.d(e,{S:()=>n}),function(t){t.max="max",t.min="min",t.random="random"}(n||(n={}))},894(t,e,i){i.d(e,{U:()=>v});var n=i(615),o=i(6521),s=i(3631);class a{constructor(){this.close=!0,this.fill=!0,this.options={},this.type=[]}load(t){if((0,s.kZ)(t))return;const e=t.options;if(void 0!==e)for(const t in e){const i=e[t];i&&(this.options[t]=(0,n.zw)(this.options[t]??{},i))}void 0!==t.close&&(this.close=t.close),void 0!==t.fill&&(this.fill=t.fill),void 0!==t.type&&(this.type=t.type)}}var r=i(4209),c=i(3969),l=i(8892),d=i(5504),h=i(6861),u=i(4377),p=i(9128),f=i(1603);class v{constructor(t,e){this._engine=t,this._container=e,this.bounce=new l.w,this.color=new o.A,this.color.value="#fff",this.effect=new a,this.groups={},this.move=new r.y,this.number=new d.N,this.opacity=new c.Y,this.reduceDuplicates=!1,this.shape=new h.y,this.size=new u.o,this.stroke=new p.t,this.zIndex=new f.P}load(t){if((0,s.kZ)(t))return;if(void 0!==t.groups)for(const e of Object.keys(t.groups)){if(!Object.hasOwn(t.groups,e))continue;const i=t.groups[e];void 0!==i&&(this.groups[e]=(0,n.zw)(this.groups[e]??{},i))}void 0!==t.reduceDuplicates&&(this.reduceDuplicates=t.reduceDuplicates),this.bounce.load(t.bounce),this.color.load(o.A.create(this.color,t.color)),this.effect.load(t.effect),this.move.load(t.move),this.number.load(t.number),this.opacity.load(t.opacity),this.shape.load(t.shape),this.size.load(t.size),this.zIndex.load(t.zIndex),void 0!==t.interactivity&&(this.interactivity=(0,n.zw)({},t.interactivity));const e=t.stroke;if(e&&(this.stroke=(0,n.wJ)(e,(t=>{const e=new p.t;return e.load(t),e}))),this._container){const e=this._engine.updaters.get(this._container);if(e)for(const i of e)i.loadOptions&&i.loadOptions(this,t);const i=this._engine.interactors.get(this._container);if(i)for(const e of i)e.loadParticlesOptions&&e.loadParticlesOptions(this,t)}}}},1049(t,e,i){var n;i.d(e,{Y:()=>n}),function(t){t.bounce="bounce",t.none="none",t.out="out",t.destroy="destroy",t.split="split"}(n||(n={}))},1163(t,e,i){i.d(e,{I:()=>a});var n=i(181),o=i(3544),s=i(3631);class a extends o.Q{constructor(){super(),this.destroy=n.V.none,this.speed=2}load(t){super.load(t),(0,s.kZ)(t)||void 0!==t.destroy&&(this.destroy=t.destroy)}}},1317(t,e,i){i.d(e,{d:()=>o});var n=i(3631);class o{constructor(t,e){this._engine=t,this._container=e}load(t){if((0,n.kZ)(t))return;if(!this._container)return;const e=this._engine.interactors.get(this._container);if(e)for(const i of e)i.loadModeOptions&&i.loadModeOptions(this,t)}}},1603(t,e,i){i.d(e,{P:()=>s});var n=i(4696),o=i(3631);class s extends n.PV{constructor(){super(),this.opacityRate=1,this.sizeRate=1,this.velocityRate=1}load(t){super.load(t),(0,o.kZ)(t)||(void 0!==t.opacityRate&&(this.opacityRate=t.opacityRate),void 0!==t.sizeRate&&(this.sizeRate=t.sizeRate),void 0!==t.velocityRate&&(this.velocityRate=t.velocityRate))}}},1617(t,e,i){i.d(e,{s:()=>l});var n=i(9460),o=i(4981),s=i(7778),a=i(8890),r=i(615),c=i(3631);class l{constructor(){this.onClick=new n.r,this.onDiv=new o.G,this.onHover=new s.L,this.resize=new a.z}load(t){if((0,c.kZ)(t))return;this.onClick.load(t.onClick);const e=t.onDiv;void 0!==e&&(this.onDiv=(0,r.wJ)(e,(t=>{const e=new o.G;return e.load(t),e}))),this.onHover.load(t.onHover),this.resize.load(t.resize)}}},1689(t,e,i){var n;i.d(e,{H:()=>n}),function(t){t.increasing="increasing",t.decreasing="decreasing"}(n||(n={}))},1690(t,e,i){var n;i.d(e,{d:()=>n}),function(t){t.delete="delete",t.wait="wait"}(n||(n={}))},1874(t,e,i){var n;i.d(e,{v:()=>n}),function(t){t.bottom="bottom",t.left="left",t.right="right",t.top="top"}(n||(n={}))},1917(t,e,i){i.d(e,{O:()=>o});var n=i(3631);class o{constructor(){this.value=""}static create(t,e){const i=new o;return i.load(t),void 0!==e&&((0,n.Kg)(e)||(0,n.cy)(e)?i.load({value:e}):i.load(e)),i}load(t){(0,n.kZ)(t)||(0,n.kZ)(t.value)||(this.value=t.value)}}},1983(t,e,i){var n;i.d(e,{H:()=>n}),function(t){t.darken="darken",t.enlighten="enlighten"}(n||(n={}))},2186(t,e,i){i.d(e,{b:()=>n});class n{constructor(t,e){this.position=t,this.particle=e}}},2480(t,e,i){var n;i.d(e,{Q:()=>n}),function(t){t.circle="circle",t.rectangle="rectangle"}(n||(n={}))},2620(t,e,i){i.d(e,{j:()=>s});var n=i(1049),o=i(3631);class s{constructor(){this.default=n.Y.out}load(t){(0,o.kZ)(t)||(void 0!==t.default&&(this.default=t.default),this.bottom=t.bottom??t.default,this.left=t.left??t.default,this.right=t.right??t.default,this.top=t.top??t.default)}}},3271(t,e,i){i.d(e,{F:()=>o});var n=i(4696);class o extends n.PV{constructor(){super(),this.value=1}}},3544(t,e,i){i.d(e,{Q:()=>c,p:()=>r});var n=i(3551),o=i(782),s=i(3631),a=i(397);class r{constructor(){this.count=0,this.enable=!1,this.speed=1,this.decay=0,this.delay=0,this.sync=!1}load(t){(0,s.kZ)(t)||(void 0!==t.count&&(this.count=(0,a.DT)(t.count)),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.speed&&(this.speed=(0,a.DT)(t.speed)),void 0!==t.decay&&(this.decay=(0,a.DT)(t.decay)),void 0!==t.delay&&(this.delay=(0,a.DT)(t.delay)),void 0!==t.sync&&(this.sync=t.sync))}}class c extends r{constructor(){super(),this.mode=n.g.auto,this.startValue=o.S.random}load(t){super.load(t),(0,s.kZ)(t)||(void 0!==t.mode&&(this.mode=t.mode),void 0!==t.startValue&&(this.startValue=t.startValue))}}},3551(t,e,i){var n;i.d(e,{g:()=>n}),function(t){t.auto="auto",t.increase="increase",t.decrease="decrease",t.random="random"}(n||(n={}))},3631(t,e,i){function n(t){return"boolean"==typeof t}function o(t){return"string"==typeof t}function s(t){return"number"==typeof t}function a(t){return"function"==typeof t}function r(t){return"object"==typeof t&&null!==t}function c(t){return Array.isArray(t)}function l(t){return null==t}i.d(e,{Et:()=>s,Gv:()=>r,Kg:()=>o,Lm:()=>n,Tn:()=>a,cy:()=>c,kZ:()=>l})},3969(t,e,i){i.d(e,{Y:()=>a});var n=i(1163),o=i(4696),s=i(3631);class a extends o.AI{constructor(){super(),this.animation=new n.I,this.value=1}load(t){if((0,s.kZ)(t))return;super.load(t);const e=t.animation;void 0!==e&&this.animation.load(e)}}},3984(t,e,i){i.d(e,{J:()=>v});var n=i(615),o=i(3631),s=i(7415),a=i(9845),r=i(4997),c=i(4712),l=i(7582),d=i(8325),h=i(7461),u=i(5392),p=i(8627),f=i(397);class v{constructor(t,e){this._findDefaultTheme=t=>this.themes.find((e=>e.default.value&&e.default.mode===t))??this.themes.find((t=>t.default.value&&t.default.mode===u.l.any)),this._importPreset=t=>{this.load(this._engine.getPreset(t))},this._engine=t,this._container=e,this.autoPlay=!0,this.background=new s.V,this.clear=!0,this.defaultThemes={},this.delay=0,this.fullScreen=new a.m,this.detectRetina=!0,this.duration=0,this.fpsLimit=120,this.hdr=!0,this.interactivity=new r.k(t,e),this.manualParticles=[],this.particles=(0,p.y)(this._engine,this._container),this.pauseOnBlur=!0,this.pauseOnOutsideViewport=!0,this.responsive=[],this.smooth=!1,this.style={},this.themes=[],this.zLayers=100}load(t){if((0,o.kZ)(t))return;void 0!==t.preset&&(0,n.wJ)(t.preset,(t=>{this._importPreset(t)})),void 0!==t.autoPlay&&(this.autoPlay=t.autoPlay),void 0!==t.clear&&(this.clear=t.clear),void 0!==t.key&&(this.key=t.key),void 0!==t.name&&(this.name=t.name),void 0!==t.delay&&(this.delay=(0,f.DT)(t.delay));const e=t.detectRetina;void 0!==e&&(this.detectRetina=e),void 0!==t.duration&&(this.duration=(0,f.DT)(t.duration));const i=t.fpsLimit;void 0!==i&&(this.fpsLimit=i),void 0!==t.hdr&&(this.hdr=t.hdr),void 0!==t.pauseOnBlur&&(this.pauseOnBlur=t.pauseOnBlur),void 0!==t.pauseOnOutsideViewport&&(this.pauseOnOutsideViewport=t.pauseOnOutsideViewport),void 0!==t.zLayers&&(this.zLayers=t.zLayers),this.background.load(t.background);const s=t.fullScreen;(0,o.Lm)(s)?this.fullScreen.enable=s:this.fullScreen.load(s),this.interactivity.load(t.interactivity),t.manualParticles&&(this.manualParticles=t.manualParticles.map((t=>{const e=new c.j;return e.load(t),e}))),this.particles.load(t.particles),this.style=(0,n.zw)(this.style,t.style),this._engine.loadOptions(this,t),void 0!==t.smooth&&(this.smooth=t.smooth);const a=this._engine.interactors.get(this._container);if(a)for(const e of a)e.loadOptions&&e.loadOptions(this,t);if(void 0!==t.responsive)for(const e of t.responsive){const t=new l.F;t.load(e),this.responsive.push(t)}if(this.responsive.sort(((t,e)=>t.maxWidth-e.maxWidth)),void 0!==t.themes)for(const e of t.themes){const t=this.themes.find((t=>t.name===e.name));if(t)t.load(e);else{const t=new h.S;t.load(e),this.themes.push(t)}}this.defaultThemes.dark=this._findDefaultTheme(u.l.dark)?.name,this.defaultThemes.light=this._findDefaultTheme(u.l.light)?.name}setResponsive(t,e,i){this.load(i);const n=this.responsive.find((i=>i.mode===d.A.screen?i.maxWidth>screen.availWidth:i.maxWidth*e>t));return this.load(n?.options),n?.maxWidth}setTheme(t){if(t){const e=this.themes.find((e=>e.name===t));e&&this.load(e.options)}else{const t=(0,n.lV)("(prefers-color-scheme: dark)"),e=t?.matches,i=this._findDefaultTheme(e?u.l.dark:u.l.light);i&&this.load(i.options)}}}},4117(t,e,i){i.d(e,{$G:()=>W,$O:()=>X,$_:()=>G,$v:()=>rt,$x:()=>A,BF:()=>Lt,BW:()=>w,Bp:()=>d,DG:()=>h,DN:()=>st,D_:()=>Tt,Dv:()=>Et,Eo:()=>ut,FS:()=>Y,Fl:()=>Zt,G3:()=>u,GW:()=>j,IU:()=>kt,Ie:()=>$,JC:()=>it,K3:()=>zt,KZ:()=>tt,Kw:()=>E,L1:()=>B,LD:()=>Dt,M1:()=>mt,MX:()=>m,N5:()=>pt,NF:()=>p,Nu:()=>_t,Nx:()=>at,PZ:()=>ct,Pg:()=>I,R1:()=>k,RF:()=>S,RV:()=>J,Rb:()=>c,Rh:()=>yt,Rq:()=>N,TL:()=>et,U0:()=>H,Ug:()=>b,WH:()=>ht,X$:()=>O,X_:()=>vt,Xu:()=>g,Z0:()=>a,Zp:()=>_,a5:()=>v,aE:()=>Vt,aZ:()=>P,bo:()=>y,ce:()=>D,dm:()=>T,dv:()=>dt,eb:()=>n,eu:()=>C,gd:()=>M,hB:()=>V,hK:()=>Gt,hv:()=>Q,i8:()=>ot,iU:()=>Ft,jn:()=>Ct,l:()=>ft,lA:()=>Pt,mR:()=>x,ms:()=>o,nK:()=>f,nq:()=>xt,oi:()=>L,ou:()=>bt,pH:()=>Ot,rq:()=>R,s7:()=>l,sf:()=>r,tA:()=>Rt,tR:()=>Bt,td:()=>St,un:()=>gt,vF:()=>nt,vS:()=>Z,vd:()=>At,vo:()=>s,w2:()=>U,wM:()=>wt,xH:()=>lt,xd:()=>F,yx:()=>q,z$:()=>z,z9:()=>Mt,zg:()=>It,zs:()=>K});const n="generated",o="pointerdown",s="pointerup",a="pointerleave",r="pointerout",c="pointermove",l="touchstart",d="touchend",h="touchmove",u="touchcancel",p="resize",f="visibilitychange",v=100,m=.5,g=1e3,y={x:0,y:0,z:0},b={a:1,b:0,c:0,d:1},x="random",w="mid",M=2,k=Math.PI*M,z=60,P=1,D="true",O="false",S="canvas",R=0,T=2,E=4,F=1,A=1,_=1,I=4,V=1,L=255,Z=360,C=100,G=100,B=0,q=0,H=60,$=0,W=.25,N=m+W,j=0,K=1,U=0,X=0,J=1,Q=1,Y=1,tt=1,et=0,it=1,nt=0,ot=120,st=0,at=0,rt=1e4,ct=0,lt=1,dt=0,ht=1,ut=1,pt=0,ft=1,vt=0,mt=0,gt=-W,yt=1.5,bt=0,xt=1,wt=0,Mt=0,kt=0,zt=1,Pt=1,Dt=1,Ot=500,St=50,Rt=0,Tt=1,Et=0,Ft=1,At=0,_t=3,It=6,Vt=1,Lt=1,Zt=0,Ct=0,Gt=0,Bt=0},4209(t,e,i){i.d(e,{y:()=>p});var n=i(4342),o=i(3631),s=i(8502),a=i(4640),r=i(7488),c=i(8051),l=i(7464),d=i(2620),h=i(4624),u=i(397);class p{constructor(){this.angle=new s.h,this.attract=new a.R,this.center=new r.Z,this.decay=0,this.distance={},this.direction=n.F.none,this.drift=0,this.enable=!1,this.gravity=new c.y,this.path=new l.v,this.outModes=new d.j,this.random=!1,this.size=!1,this.speed=2,this.spin=new h.t,this.straight=!1,this.vibrate=!1,this.warp=!1}load(t){if((0,o.kZ)(t))return;this.angle.load((0,o.Et)(t.angle)?{value:t.angle}:t.angle),this.attract.load(t.attract),this.center.load(t.center),void 0!==t.decay&&(this.decay=(0,u.DT)(t.decay)),void 0!==t.direction&&(this.direction=t.direction),void 0!==t.distance&&(this.distance=(0,o.Et)(t.distance)?{horizontal:t.distance,vertical:t.distance}:{...t.distance}),void 0!==t.drift&&(this.drift=(0,u.DT)(t.drift)),void 0!==t.enable&&(this.enable=t.enable),this.gravity.load(t.gravity);const e=t.outModes;void 0!==e&&((0,o.Gv)(e)?this.outModes.load(e):this.outModes.load({default:e})),this.path.load(t.path),void 0!==t.random&&(this.random=t.random),void 0!==t.size&&(this.size=t.size),void 0!==t.speed&&(this.speed=(0,u.DT)(t.speed)),this.spin.load(t.spin),void 0!==t.straight&&(this.straight=t.straight),void 0!==t.vibrate&&(this.vibrate=t.vibrate),void 0!==t.warp&&(this.warp=t.warp)}}},4342(t,e,i){var n;i.d(e,{F:()=>n}),function(t){t.bottom="bottom",t.bottomLeft="bottom-left",t.bottomRight="bottom-right",t.left="left",t.none="none",t.right="right",t.top="top",t.topLeft="top-left",t.topRight="top-right",t.outside="outside",t.inside="inside"}(n||(n={}))},4377(t,e,i){i.d(e,{o:()=>a});var n=i(4696),o=i(4883),s=i(3631);class a extends n.AI{constructor(){super(),this.animation=new o.q,this.value=3}load(t){if(super.load(t),(0,s.kZ)(t))return;const e=t.animation;void 0!==e&&this.animation.load(e)}}},4624(t,e,i){i.d(e,{t:()=>a});var n=i(615),o=i(3631),s=i(397);class a{constructor(){this.acceleration=0,this.enable=!1}load(t){(0,o.kZ)(t)||(void 0!==t.acceleration&&(this.acceleration=(0,s.DT)(t.acceleration)),void 0!==t.enable&&(this.enable=t.enable),t.position&&(this.position=(0,n.zw)({},t.position)))}}},4640(t,e,i){i.d(e,{R:()=>s});var n=i(3631),o=i(397);class s{constructor(){this.distance=200,this.enable=!1,this.rotate={x:3e3,y:3e3}}load(t){if(!(0,n.kZ)(t)&&(void 0!==t.distance&&(this.distance=(0,o.DT)(t.distance)),void 0!==t.enable&&(this.enable=t.enable),t.rotate)){const e=t.rotate.x;void 0!==e&&(this.rotate.x=e);const i=t.rotate.y;void 0!==i&&(this.rotate.y=i)}}}},4696(t,e,i){i.d(e,{AI:()=>c,Jm:()=>r,PV:()=>a});var n=i(3544),o=i(3631),s=i(397);class a{constructor(){this.value=0}load(t){(0,o.kZ)(t)||(0,o.kZ)(t.value)||(this.value=(0,s.DT)(t.value))}}class r extends a{constructor(){super(),this.animation=new n.p}load(t){if(super.load(t),(0,o.kZ)(t))return;const e=t.animation;void 0!==e&&this.animation.load(e)}}class c extends r{constructor(){super(),this.animation=new n.Q}load(t){super.load(t)}}},4712(t,e,i){i.d(e,{j:()=>r});var n=i(7997),o=i(615),s=i(3631),a=i(4117);class r{load(t){(0,s.kZ)(t)||(t.position&&(this.position={x:t.position.x??a.td,y:t.position.y??a.td,mode:t.position.mode??n.q.percent}),t.options&&(this.options=(0,o.zw)({},t.options)))}}},4883(t,e,i){i.d(e,{q:()=>a});var n=i(181),o=i(3544),s=i(3631);class a extends o.Q{constructor(){super(),this.destroy=n.V.none,this.speed=5}load(t){super.load(t),(0,s.kZ)(t)||void 0!==t.destroy&&(this.destroy=t.destroy)}}},4981(t,e,i){i.d(e,{G:()=>s});var n=i(2480),o=i(3631);class s{constructor(){this.selectors=[],this.enable=!1,this.mode=[],this.type=n.Q.circle}load(t){(0,o.kZ)(t)||(void 0!==t.selectors&&(this.selectors=t.selectors),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.mode&&(this.mode=t.mode),void 0!==t.type&&(this.type=t.type))}}},4997(t,e,i){i.d(e,{k:()=>r});var n=i(1617),o=i(6249),s=i(1317),a=i(3631);class r{constructor(t,e){this.detectsOn=o.h.window,this.events=new n.s,this.modes=new s.d(t,e)}load(t){if((0,a.kZ)(t))return;const e=t.detectsOn;void 0!==e&&(this.detectsOn=e),this.events.load(t.events),this.modes.load(t.modes)}}},5043(t,e,i){i.d(e,{k:()=>o});var n=i(3631);class o{constructor(){this.enable=!1,this.force=2,this.smooth=10}load(t){(0,n.kZ)(t)||(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.force&&(this.force=t.force),void 0!==t.smooth&&(this.smooth=t.smooth))}}},5247(t,e,i){i.d(e,{i:()=>s});var n=i(9499),o=i(3631);class s{constructor(){this.h=new n.e,this.s=new n.e,this.l=new n.e}load(t){(0,o.kZ)(t)||(this.h.load(t.h),this.s.load(t.s),this.l.load(t.l))}}},5317(t,e,i){i.d(e,{M:()=>o});var n=i(3631);class o{constructor(){this.enable=!1,this.width=1920,this.height=1080}load(t){if((0,n.kZ)(t))return;void 0!==t.enable&&(this.enable=t.enable);const e=t.width;void 0!==e&&(this.width=e);const i=t.height;void 0!==i&&(this.height=i)}}},5392(t,e,i){var n;i.d(e,{l:()=>n}),function(t){t.any="any",t.dark="dark",t.light="light"}(n||(n={}))},5504(t,e,i){i.d(e,{N:()=>a});var n=i(5317),o=i(8465),s=i(3631);class a{constructor(){this.density=new n.M,this.limit=new o.A,this.value=0}load(t){(0,s.kZ)(t)||(this.density.load(t.density),this.limit.load(t.limit),void 0!==t.value&&(this.value=t.value))}}},5536(t,e,i){var n;i.d(e,{e:()=>n}),function(t){t.external="external",t.particles="particles"}(n||(n={}))},6192(t,e,i){i.d(e,{BN:()=>l,EY:()=>M,Jv:()=>R,K6:()=>p,Ko:()=>S,LC:()=>w,OH:()=>y,O_:()=>P,PG:()=>z,R5:()=>u,YL:()=>m,_h:()=>k,ay:()=>g,eg:()=>v,mK:()=>h,pz:()=>D,qe:()=>d,xx:()=>b,zI:()=>f});var n=i(397),o=i(4117),s=i(3631),a=i(1689),r=i(615);function c(t,e){if(e)for(const i of t.colorManagers.values())if(i.accepts(e))return i.parseString(e)}function l(t,e,i,n=!0){if(!e)return;const o=(0,s.Kg)(e)?{value:e}:e;if((0,s.Kg)(o.value))return d(t,o.value,i,n);if((0,s.cy)(o.value)){const e=(0,r.Vh)(o.value,i,n);if(!e)return;return l(t,{value:e})}for(const e of t.colorManagers.values()){const t=e.handleRangeColor(o);if(t)return t}}function d(t,e,i,n=!0){if(!e)return;const a=(0,s.Kg)(e)?{value:e}:e;if((0,s.Kg)(a.value))return a.value===o.mR?y():v(t,a.value);if((0,s.cy)(a.value)){const e=(0,r.Vh)(a.value,i,n);if(!e)return;return d(t,{value:e})}for(const e of t.colorManagers.values()){const t=e.handleColor(a);if(t)return t}}function h(t,e,i,n=!0){const o=d(t,e,i,n);return o?p(o):void 0}function u(t,e,i,n=!0){const o=l(t,e,i,n);return o?p(o):void 0}function p(t){const e=t.r/o.oi,i=t.g/o.oi,n=t.b/o.oi,s=Math.max(e,i,n),a=Math.min(e,i,n),r={h:o.L1,l:(s+a)*o.MX,s:o.yx};return s!==a&&(r.s=r.l<o.MX?(s-a)/(s+a):(s-a)/(o.gd-s-a),r.h=e===s?(i-n)/(s-a):i===s?o.gd+(n-e)/(s-a):o.gd*o.gd+(e-i)/(s-a)),r.l*=o.$_,r.s*=o.eu,r.h*=o.U0,r.h<o.L1&&(r.h+=o.vS),r.h>=o.vS&&(r.h-=o.vS),r}function f(t,e){return c(t,e)?.a}function v(t,e){return c(t,e)}function m(t){const e=(t.h%o.vS+o.vS)%o.vS,i=Math.max(o.yx,Math.min(o.eu,t.s)),n=Math.max(o.vd,Math.min(o.$_,t.l)),s=e/o.vS,a=i/o.eu,r=n/o.$_;if(i===o.yx){const t=Math.round(r*o.oi);return{r:t,g:t,b:t}}const c=(t,e,i)=>{if(i<0&&i++,i>1&&i--,i*o.zg<1)return t+(e-t)*o.zg*i;if(i*o.gd<1)return e;if(i*o.Nu<1*o.gd){return t+(e-t)*(o.gd/o.Nu-i)*o.zg}return t},l=r<o.MX?r*(o.aE+a):r+a-r*a,d=o.gd*r-l,h=o.BF/o.Nu,u=Math.min(o.oi,o.oi*c(d,l,s+h)),p=Math.min(o.oi,o.oi*c(d,l,s)),f=Math.min(o.oi,o.oi*c(d,l,s-h));return{r:Math.round(u),g:Math.round(p),b:Math.round(f)}}function g(t){const e=m(t);return{a:t.a,b:e.b,g:e.g,r:e.r}}function y(t){const e=t??o.Fl,i=o.oi+o.D_,s=()=>Math.floor((0,n.e4)(e,i));return{b:s(),g:s(),r:s()}}function b(t,e,i){return e?x(t,i):function(t,e){return`rgba(${t.r.toString()}, ${t.g.toString()}, ${t.b.toString()}, ${(e??o.hv).toString()})`}(t,i)}function x(t,e){return`color(display-p3 ${(t.r/o.oi).toString()} ${(t.g/o.oi).toString()} ${(t.b/o.oi).toString()} / ${(e??o.hv).toString()})`}function w(t,e,i){return e?function(t,e){return x(m(t),e)}(t,i):function(t,e){return`hsla(${t.h.toString()}, ${t.s.toString()}%, ${t.l.toString()}%, ${(e??o.hv).toString()})`}(t,i)}function M(t,e,i,o){let s=t,a=e;return Object.hasOwn(s,"r")||(s=m(t)),Object.hasOwn(a,"r")||(a=m(e)),{b:(0,n.jh)(s.b,a.b,i,o),g:(0,n.jh)(s.g,a.g,i,o),r:(0,n.jh)(s.r,a.r,i,o)}}function k(t,e,i){if(i===o.mR)return y();if(i!==o.BW)return i;{const i=t.getFillColor()??t.getStrokeColor(),n=e?.getFillColor()??e?.getStrokeColor();if(i&&n&&e)return M(i,n,t.getRadius(),e.getRadius());{const t=i??n;if(t)return m(t)}}}function z(t,e,i,n){const a=(0,s.Kg)(e)?e:e.value;return a===o.mR?n?l(t,{value:a}):i?o.mR:o.BW:a===o.BW?o.BW:l(t,{value:a})}function P(t){return void 0!==t?{h:t.h.value,s:t.s.value,l:t.l.value}:void 0}function D(t,e,i){const n={h:{enable:!1,value:t.h},s:{enable:!1,value:t.s},l:{enable:!1,value:t.l}};return e&&(O(n.h,e.h,i),O(n.s,e.s,i),O(n.l,e.l,i)),n}function O(t,e,i){t.enable=e.enable,t.enable?(t.velocity=(0,n.VG)(e.speed)/o.a5*i,t.decay=o.WH-(0,n.VG)(e.decay),t.status=a.H.increasing,t.loops=o.hK,t.maxLoops=(0,n.VG)(e.count),t.time=o.tR,t.delayTime=(0,n.VG)(e.delay)*o.Xu,e.sync||(t.velocity*=(0,n.G0)(),t.value*=(0,n.G0)()),t.initialValue=t.value,t.offset=(0,n.DT)(e.offset)):t.velocity=o.jn}function S(t,e,i,o){if(!t.enable||(t.maxLoops??0)>0&&(t.loops??0)>(t.maxLoops??0))return;if(t.time??=0,(t.delayTime??0)>0&&t.time<(t.delayTime??0)&&(t.time+=o.value),(t.delayTime??0)>0&&t.time<(t.delayTime??0))return;const s=t.offset?(0,n.vE)(t.offset):0,r=(t.velocity??0)*o.factor+3.6*s,c=t.decay??1,l=(0,n.W9)(e),d=(0,n.Sg)(e);if(i&&t.status!==a.H.increasing){t.value-=r;const e=0;t.value<e&&(t.loops??=0,t.loops++,t.status=a.H.increasing)}else t.value+=r,t.value>l&&(t.loops??=0,t.loops++,i?t.status=a.H.decreasing:t.value-=l);t.velocity&&1!==c&&(t.velocity*=c),t.value=(0,n.qE)(t.value,d,l)}function R(t,e){if(!t)return;const{h:i,s:n,l:s}=t,a={h:{min:o.L1,max:o.vS},s:{min:o.yx,max:o.eu},l:{min:o.vd,max:o.$_}};S(i,a.h,!1,e),S(n,a.s,!0,e),S(s,a.l,!0,e)}},6249(t,e,i){var n;i.d(e,{h:()=>n}),function(t){t.canvas="canvas",t.parent="parent",t.window="window"}(n||(n={}))},6521(t,e,i){i.d(e,{A:()=>a});var n=i(3631),o=i(5247),s=i(1917);class a extends s.O{constructor(){super(),this.animation=new o.i}static create(t,e){const i=new a;return i.load(t),void 0!==e&&((0,n.Kg)(e)||(0,n.cy)(e)?i.load({value:e}):i.load(e)),i}load(t){if(super.load(t),(0,n.kZ)(t))return;const e=t.animation;void 0!==e&&(void 0===e.enable?this.animation.load(t.animation):this.animation.h.load(e))}}},6861(t,e,i){i.d(e,{y:()=>s});var n=i(615),o=i(3631);class s{constructor(){this.close=!0,this.fill=!0,this.options={},this.type="circle"}load(t){if((0,o.kZ)(t))return;const e=t.options;if(void 0!==e)for(const t in e){const i=e[t];i&&(this.options[t]=(0,n.zw)(this.options[t]??{},i))}void 0!==t.close&&(this.close=t.close),void 0!==t.fill&&(this.fill=t.fill),void 0!==t.type&&(this.type=t.type)}}},6978(t,e,i){var n;i.d(e,{dg:()=>a,jl:()=>r,M_:()=>c}),function(t){t.circle="circle",t.rectangle="rectangle"}(n||(n={}));var o=i(397),s=i(4117);class a{constructor(t,e,i){this.position={x:t,y:e},this.type=i}}class r extends a{constructor(t,e,i){super(t,e,n.circle),this.radius=i}contains(t){return(0,o.Yf)(t,this.position)<=this.radius}intersects(t){const e=this.position,i=t.position,o=Math.abs(i.x-e.x),a=Math.abs(i.y-e.y),l=this.radius;if(t instanceof r||t.type===n.circle){return l+t.radius>Math.sqrt(o**s.dm+a**s.dm)}if(t instanceof c||t.type===n.rectangle){const e=t,{width:i,height:n}=e.size;return Math.pow(o-i,s.dm)+Math.pow(a-n,s.dm)<=l**s.dm||o<=l+i&&a<=l+n||o<=i||a<=n}return!1}}class c extends a{constructor(t,e,i,o){super(t,e,n.rectangle),this.size={height:o,width:i}}contains(t){const e=this.size.width,i=this.size.height,n=this.position;return t.x>=n.x&&t.x<=n.x+e&&t.y>=n.y&&t.y<=n.y+i}intersects(t){if(t instanceof r)return t.intersects(this);const e=this.size.width,i=this.size.height,n=this.position,o=t.position,s=t instanceof c?t.size:{width:0,height:0},a=s.width,l=s.height;return o.x<n.x+e&&o.x+a>n.x&&o.y<n.y+i&&o.y+l>n.y}}},6991(t,e,i){var n;i.d(e,{B:()=>n}),function(t){t.configAdded="configAdded",t.containerInit="containerInit",t.particlesSetup="particlesSetup",t.containerStarted="containerStarted",t.containerStopped="containerStopped",t.containerDestroyed="containerDestroyed",t.containerPaused="containerPaused",t.containerPlay="containerPlay",t.containerBuilt="containerBuilt",t.particleAdded="particleAdded",t.particleDestroyed="particleDestroyed",t.particleRemoved="particleRemoved"}(n||(n={}))},7415(t,e,i){i.d(e,{V:()=>s});var n=i(1917),o=i(3631);class s{constructor(){this.color=new n.O,this.color.value="",this.image="",this.position="",this.repeat="",this.size="",this.opacity=1}load(t){(0,o.kZ)(t)||(void 0!==t.color&&(this.color=n.O.create(this.color,t.color)),void 0!==t.image&&(this.image=t.image),void 0!==t.position&&(this.position=t.position),void 0!==t.repeat&&(this.repeat=t.repeat),void 0!==t.size&&(this.size=t.size),void 0!==t.opacity&&(this.opacity=t.opacity))}}},7461(t,e,i){i.d(e,{S:()=>a});var n=i(8388),o=i(615),s=i(3631);class a{constructor(){this.name="",this.default=new n.f}load(t){(0,s.kZ)(t)||(void 0!==t.name&&(this.name=t.name),this.default.load(t.default),void 0!==t.options&&(this.options=(0,o.zw)({},t.options)))}}},7464(t,e,i){i.d(e,{v:()=>a});var n=i(4696),o=i(615),s=i(3631);class a{constructor(){this.clamp=!0,this.delay=new n.PV,this.enable=!1,this.options={}}load(t){(0,s.kZ)(t)||(void 0!==t.clamp&&(this.clamp=t.clamp),this.delay.load(t.delay),void 0!==t.enable&&(this.enable=t.enable),this.generator=t.generator,t.options&&(this.options=(0,o.zw)(this.options,t.options)))}}},7488(t,e,i){i.d(e,{Z:()=>s});var n=i(7997),o=i(3631);class s{constructor(){this.x=50,this.y=50,this.mode=n.q.percent,this.radius=0}load(t){(0,o.kZ)(t)||(void 0!==t.x&&(this.x=t.x),void 0!==t.y&&(this.y=t.y),void 0!==t.mode&&(this.mode=t.mode),void 0!==t.radius&&(this.radius=t.radius))}}},7582(t,e,i){i.d(e,{F:()=>a});var n=i(8325),o=i(615),s=i(3631);class a{constructor(){this.maxWidth=1/0,this.options={},this.mode=n.A.canvas}load(t){(0,s.kZ)(t)||((0,s.kZ)(t.maxWidth)||(this.maxWidth=t.maxWidth),(0,s.kZ)(t.mode)||(t.mode===n.A.screen?this.mode=n.A.screen:this.mode=n.A.canvas),(0,s.kZ)(t.options)||(this.options=(0,o.zw)({},t.options)))}}},7778(t,e,i){i.d(e,{L:()=>s});var n=i(5043),o=i(3631);class s{constructor(){this.enable=!1,this.mode=[],this.parallax=new n.k}load(t){(0,o.kZ)(t)||(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.mode&&(this.mode=t.mode),this.parallax.load(t.parallax))}}},7997(t,e,i){var n;i.d(e,{q:()=>n}),function(t){t.precise="precise",t.percent="percent"}(n||(n={}))},8051(t,e,i){i.d(e,{y:()=>s});var n=i(3631),o=i(397);class s{constructor(){this.acceleration=9.81,this.enable=!1,this.inverse=!1,this.maxSpeed=50}load(t){(0,n.kZ)(t)||(void 0!==t.acceleration&&(this.acceleration=(0,o.DT)(t.acceleration)),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.inverse&&(this.inverse=t.inverse),void 0!==t.maxSpeed&&(this.maxSpeed=(0,o.DT)(t.maxSpeed)))}}},8325(t,e,i){var n;i.d(e,{A:()=>n}),function(t){t.screen="screen",t.canvas="canvas"}(n||(n={}))},8388(t,e,i){i.d(e,{f:()=>s});var n=i(5392),o=i(3631);class s{constructor(){this.auto=!1,this.mode=n.l.any,this.value=!1}load(t){(0,o.kZ)(t)||(void 0!==t.auto&&(this.auto=t.auto),void 0!==t.mode&&(this.mode=t.mode),void 0!==t.value&&(this.value=t.value))}}},8465(t,e,i){i.d(e,{A:()=>s});var n=i(1690),o=i(3631);class s{constructor(){this.mode=n.d.delete,this.value=0}load(t){(0,o.kZ)(t)||(void 0!==t.mode&&(this.mode=t.mode),void 0!==t.value&&(this.value=t.value))}}},8502(t,e,i){i.d(e,{h:()=>s});var n=i(3631),o=i(397);class s{constructor(){this.offset=0,this.value=90}load(t){(0,n.kZ)(t)||(void 0!==t.offset&&(this.offset=(0,o.DT)(t.offset)),void 0!==t.value&&(this.value=(0,o.DT)(t.value)))}}},8627(t,e,i){i.d(e,{Z:()=>o,y:()=>s});var n=i(894);function o(t,...e){for(const i of e)t.load(i)}function s(t,e,...i){const s=new n.U(t,e);return o(s,...i),s}},8890(t,e,i){i.d(e,{z:()=>o});var n=i(3631);class o{constructor(){this.delay=.5,this.enable=!0}load(t){(0,n.kZ)(t)||(void 0!==t.delay&&(this.delay=t.delay),void 0!==t.enable&&(this.enable=t.enable))}}},8892(t,e,i){i.d(e,{w:()=>s});var n=i(3271),o=i(3631);class s{constructor(){this.horizontal=new n.F,this.vertical=new n.F}load(t){(0,o.kZ)(t)||(this.horizontal.load(t.horizontal),this.vertical.load(t.vertical))}}},9128(t,e,i){i.d(e,{t:()=>a});var n=i(6521),o=i(3631),s=i(397);class a{constructor(){this.width=0}load(t){(0,o.kZ)(t)||(void 0!==t.color&&(this.color=n.A.create(this.color,t.color)),void 0!==t.width&&(this.width=(0,s.DT)(t.width)),void 0!==t.opacity&&(this.opacity=(0,s.DT)(t.opacity)))}}},9259(t,e,i){i.d(e,{IU:()=>l,KG:()=>p,Md:()=>c,Sn:()=>r,V6:()=>a,VG:()=>v,Wb:()=>g,e_:()=>m,gF:()=>f,k:()=>h,l7:()=>s,p0:()=>d,yx:()=>y,z5:()=>u});var n=i(4117),o=i(1983);function s(t,e,i){e.clearDraw&&e.clearDraw(t,i)}function a(t,e,i){t.beginPath(),t.moveTo(e.x,e.y),t.lineTo(i.x,i.y),t.closePath()}function r(t,e,i){t.fillStyle=i??"rgba(0,0,0,0)",t.fillRect(n.bo.x,n.bo.y,e.width,e.height)}function c(t,e,i,o){i&&(t.globalAlpha=o,t.drawImage(i,n.bo.x,n.bo.y,e.width,e.height),t.globalAlpha=1)}function l(t,e){t.clearRect(n.bo.x,n.bo.y,e.width,e.height)}function d(t){const{container:e,context:i,particle:o,delta:s,colorStyles:a,radius:r,opacity:c,transform:l}=t,d=o.getPosition(),m=o.getAngle(),g=Math.sin(m),y=Math.cos(m),b=o.isRotating,x={a:y*(l.a??n.Ug.a),b:b?g*(l.b??n.D_):l.b??n.Ug.b,c:b?-g*(l.c??n.D_):l.c??n.Ug.c,d:y*(l.d??n.Ug.d)};i.setTransform(x.a,x.b,x.c,x.d,d.x,d.y),a.fill&&(i.fillStyle=a.fill);const w=o.strokeWidth??n.Dv;i.lineWidth=w,a.stroke&&(i.strokeStyle=a.stroke);const M={container:e,context:i,particle:o,radius:r,opacity:c,delta:s,transformData:x,strokeWidth:w};u(M),v(M),p(M),f(M),h(M),i.resetTransform()}function h(t){const{container:e,context:i,particle:o,radius:s,opacity:a,strokeWidth:r,delta:c,transformData:l}=t;if(!o.effect)return;const d=e.effectDrawers.get(o.effect),h=d?.drawAfter;h&&h({context:i,particle:o,radius:s,opacity:a,delta:c,pixelRatio:e.retina.pixelRatio,fill:o.shapeFill,stroke:r>n.Dv||!o.shapeFill,transformData:{...l}})}function u(t){const{container:e,context:i,particle:o,radius:s,opacity:a,strokeWidth:r,delta:c,transformData:l}=t;if(!o.effect)return;const d=e.effectDrawers.get(o.effect);d?.drawBefore&&d.drawBefore({context:i,particle:o,radius:s,opacity:a,delta:c,pixelRatio:e.retina.pixelRatio,fill:o.shapeFill,stroke:r>n.Dv||!o.shapeFill,transformData:{...l}})}function p(t){const{container:e,context:i,particle:o,radius:s,opacity:a,delta:r,strokeWidth:c,transformData:l}=t;if(!o.shape)return;const d=e.shapeDrawers.get(o.shape);d&&(i.beginPath(),d.draw({context:i,particle:o,radius:s,opacity:a,delta:r,pixelRatio:e.retina.pixelRatio,fill:o.shapeFill,stroke:c>n.Dv||!o.shapeFill,transformData:{...l}}),o.shapeClose&&i.closePath(),c>n.Dv&&i.stroke(),o.shapeFill&&i.fill())}function f(t){const{container:e,context:i,particle:o,radius:s,opacity:a,strokeWidth:r,delta:c,transformData:l}=t;if(!o.shape)return;const d=e.shapeDrawers.get(o.shape);d?.afterDraw&&d.afterDraw({context:i,particle:o,radius:s,opacity:a,delta:c,pixelRatio:e.retina.pixelRatio,fill:o.shapeFill,stroke:r>n.Dv||!o.shapeFill,transformData:{...l}})}function v(t){const{container:e,context:i,particle:o,radius:s,opacity:a,strokeWidth:r,delta:c,transformData:l}=t;if(!o.shape)return;const d=e.shapeDrawers.get(o.shape);d?.beforeDraw&&d.beforeDraw({context:i,particle:o,radius:s,opacity:a,delta:c,pixelRatio:e.retina.pixelRatio,fill:o.shapeFill,stroke:r>n.Dv||!o.shapeFill,transformData:{...l}})}function m(t,e,i){e.draw&&e.draw(t,i)}function g(t,e,i,n){e.drawParticle&&e.drawParticle(t,i,n)}function y(t,e,i){return{h:t.h,s:t.s,l:t.l+(e===o.H.darken?-n.iU:n.iU)*i}}},9460(t,e,i){i.d(e,{r:()=>o});var n=i(3631);class o{constructor(){this.enable=!1,this.mode=[]}load(t){(0,n.kZ)(t)||(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.mode&&(this.mode=t.mode))}}},9499(t,e,i){i.d(e,{e:()=>a});var n=i(3544),o=i(3631),s=i(397);class a extends n.p{constructor(){super(),this.offset=0,this.sync=!0}load(t){super.load(t),(0,o.kZ)(t)||void 0!==t.offset&&(this.offset=(0,s.DT)(t.offset))}}},9845(t,e,i){i.d(e,{m:()=>o});var n=i(3631);class o{constructor(){this.enable=!0,this.zIndex=0}load(t){(0,n.kZ)(t)||(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.zIndex&&(this.zIndex=t.zIndex))}}}},n={};function o(t){var e=n[t];if(void 0!==e)return e.exports;var s=n[t]={exports:{}};return i[t](s,s.exports,o),s.exports}o.m=i,o.d=(t,e)=>{for(var i in e)o.o(e,i)&&!o.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},o.f={},o.e=t=>Promise.all(Object.keys(o.f).reduce(((e,i)=>(o.f[i](t,e),e)),[])),o.u=t=>t+".min.js",o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),o.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),t={},e="@tsparticles/engine:",o.l=(i,n,s,a)=>{if(t[i])t[i].push(n);else{var r,c;if(void 0!==s)for(var l=document.getElementsByTagName("script"),d=0;d<l.length;d++){var h=l[d];if(h.getAttribute("src")==i||h.getAttribute("data-webpack")==e+s){r=h;break}}r||(c=!0,(r=document.createElement("script")).charset="utf-8",o.nc&&r.setAttribute("nonce",o.nc),r.setAttribute("data-webpack",e+s),r.src=i),t[i]=[n];var u=(e,n)=>{r.onerror=r.onload=null,clearTimeout(p);var o=t[i];if(delete t[i],r.parentNode&&r.parentNode.removeChild(r),o&&o.forEach((t=>t(n))),e)return e(n)},p=setTimeout(u.bind(null,void 0,{type:"timeout",target:r}),12e4);r.onerror=u.bind(null,r.onerror),r.onload=u.bind(null,r.onload),c&&document.head.appendChild(r)}},o.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},(()=>{var t;o.g.importScripts&&(t=o.g.location+"");var e=o.g.document;if(!t&&e&&(e.currentScript&&"SCRIPT"===e.currentScript.tagName.toUpperCase()&&(t=e.currentScript.src),!t)){var i=e.getElementsByTagName("script");if(i.length)for(var n=i.length-1;n>-1&&(!t||!/^http(s?):/.test(t));)t=i[n--].src}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),o.p=t})(),(()=>{var t={397:0};o.f.j=(e,i)=>{var n=o.o(t,e)?t[e]:void 0;if(0!==n)if(n)i.push(n[2]);else{var s=new Promise(((i,o)=>n=t[e]=[i,o]));i.push(n[2]=s);var a=o.p+o.u(e),r=new Error;o.l(a,(i=>{if(o.o(t,e)&&(0!==(n=t[e])&&(t[e]=void 0),n)){var s=i&&("load"===i.type?"missing":i.type),a=i&&i.target&&i.target.src;r.message="Loading chunk "+e+" failed.\n("+s+": "+a+")",r.name="ChunkLoadError",r.type=s,r.request=a,n[1](r)}}),"chunk-"+e,e)}};var e=(e,i)=>{var n,s,[a,r,c]=i,l=0;if(a.some((e=>0!==t[e]))){for(n in r)o.o(r,n)&&(o.m[n]=r[n]);if(c)c(o)}for(e&&e(i);l<a.length;l++)s=a[l],o.o(t,s)&&t[s]&&t[s][0](),t[s]=0},i=this.webpackChunk_tsparticles_engine=this.webpackChunk_tsparticles_engine||[];i.forEach(e.bind(null,0)),i.push=e.bind(null,i.push.bind(i))})();var s={};o.r(s),o.d(s,{AlterType:()=>T.H,AnimatableColor:()=>Z.A,AnimationMode:()=>z.g,AnimationOptions:()=>C.p,AnimationStatus:()=>V.H,AnimationValueWithRandom:()=>Pt.Jm,Background:()=>G.V,BaseRange:()=>b.dg,Circle:()=>b.jl,ClickEvent:()=>$.r,ColorAnimation:()=>B.e,DestroyType:()=>E.V,DivEvent:()=>W.G,DivType:()=>I.Q,EasingType:()=>F,EventType:()=>l.B,Events:()=>N.s,ExternalInteractorBase:()=>v,FullScreen:()=>q.m,GradientType:()=>M,HoverEvent:()=>j.L,HslAnimation:()=>H.i,Interactivity:()=>X.k,InteractivityDetect:()=>L.h,InteractorType:()=>f.e,LimitMode:()=>P.d,ManualParticle:()=>Q.j,Modes:()=>J.d,Move:()=>at.y,MoveAngle:()=>rt.h,MoveAttract:()=>st.R,MoveCenter:()=>ct.Z,MoveDirection:()=>w.F,MoveGravity:()=>lt.y,MovePath:()=>ht.v,Opacity:()=>mt.Y,OpacityAnimation:()=>gt.I,Options:()=>Y.J,OptionsColor:()=>tt.O,OutMode:()=>D.Y,OutModeDirection:()=>k.v,OutModes:()=>dt.j,Parallax:()=>K.k,ParticleOutType:()=>A.x,ParticlesBounce:()=>et.w,ParticlesBounceFactor:()=>it.F,ParticlesDensity:()=>vt.M,ParticlesInteractorBase:()=>m,ParticlesNumber:()=>pt.N,ParticlesNumberLimit:()=>ft.A,ParticlesOptions:()=>nt.U,PixelMode:()=>O.q,Point:()=>y.b,RangedAnimationOptions:()=>C.Q,RangedAnimationValueWithRandom:()=>Pt.AI,Rectangle:()=>b.M_,ResizeEvent:()=>U.z,Responsive:()=>Mt.F,ResponsiveMode:()=>R.A,RotateDirection:()=>g,Shape:()=>yt.y,Size:()=>bt.o,SizeAnimation:()=>xt.q,Spin:()=>ut.t,StartValueType:()=>_.S,Stroke:()=>ot.t,Theme:()=>kt.S,ThemeDefault:()=>zt.f,ThemeMode:()=>S.l,ValueWithRandom:()=>Pt.PV,Vector:()=>x.M,Vector3d:()=>x.p,ZIndex:()=>wt.P,alterHsl:()=>Dt.yx,animate:()=>h.i0,areBoundsInside:()=>r.O2,arrayRandomIndex:()=>r.n0,calcExactPositionOrRandomFromSize:()=>h.Nx,calcExactPositionOrRandomFromSizeRanged:()=>h.qM,calcPositionFromSize:()=>h.eh,calcPositionOrRandomFromSize:()=>h.Mh,calcPositionOrRandomFromSizeRanged:()=>h.l1,calculateBounds:()=>r.AE,cancelAnimation:()=>h.px,canvasFirstIndex:()=>a.Nx,canvasTag:()=>a.RF,circleBounce:()=>r.pE,circleBounceDataFromParticle:()=>r.Tg,clamp:()=>h.qE,clear:()=>Dt.IU,clearDrawPlugin:()=>Dt.l7,clickRadius:()=>a.FS,cloneStyle:()=>r.td,collisionVelocity:()=>h.OW,colorMix:()=>Ot.EY,colorToHsl:()=>Ot.mK,colorToRgb:()=>Ot.qe,countOffset:()=>a.nq,decayOffset:()=>a.WH,deepExtend:()=>r.zw,defaultAlpha:()=>a.aZ,defaultAngle:()=>a.tA,defaultDensityFactor:()=>a.lA,defaultFps:()=>a.z$,defaultFpsLimit:()=>a.i8,defaultLoops:()=>a.hK,defaultOpacity:()=>a.hv,defaultRadius:()=>a.M1,defaultRatio:()=>a.$x,defaultReduceFactor:()=>a.Zp,defaultRemoveQuantity:()=>a.xd,defaultRetryCount:()=>a.rq,defaultRgbMin:()=>a.Fl,defaultTime:()=>a.tR,defaultTransform:()=>a.Ug,defaultTransformValue:()=>a.zs,defaultVelocity:()=>a.jn,degToRad:()=>h.pu,deleteCount:()=>a.LD,divMode:()=>r.NV,divModeExecute:()=>r.U6,double:()=>a.gd,doublePI:()=>a.R1,drawAfterEffect:()=>Dt.k,drawBeforeEffect:()=>Dt.z5,drawLine:()=>Dt.V6,drawParticle:()=>Dt.p0,drawParticlePlugin:()=>Dt.Wb,drawPlugin:()=>Dt.e_,drawShape:()=>Dt.KG,drawShapeAfterDraw:()=>Dt.gF,drawShapeBeforeDraw:()=>Dt.VG,empty:()=>a.Ie,executeOnSingleOrMultiple:()=>r.wJ,findItemFromSingleOrMultiple:()=>r.w3,generatedAttribute:()=>a.eb,generatedFalse:()=>a.X$,generatedTrue:()=>a.ce,getDistance:()=>h.Yf,getDistances:()=>h.vr,getFullScreenStyle:()=>r.hJ,getHslAnimationFromHsl:()=>Ot.pz,getHslFromAnimation:()=>Ot.O_,getLinkColor:()=>Ot._h,getLinkRandomColor:()=>Ot.PG,getLogger:()=>d.t,getParticleBaseVelocity:()=>h.$m,getParticleDirectionAngle:()=>h.JY,getPosition:()=>r.E9,getRandom:()=>h.G0,getRandomInRange:()=>h.e4,getRandomRgbColor:()=>Ot.OH,getRangeMax:()=>h.W9,getRangeMin:()=>h.Sg,getRangeValue:()=>h.VG,getSize:()=>r.YC,getStyleFromHsl:()=>Ot.LC,getStyleFromRgb:()=>Ot.xx,hMax:()=>a.vS,hMin:()=>a.L1,hPhase:()=>a.U0,half:()=>a.MX,hasMatchMedia:()=>r.q8,hslToRgb:()=>Ot.YL,hslaToRgba:()=>Ot.ay,identity:()=>a.D_,initParticleNumericAnimationValue:()=>r.Xs,inverseFactorNumerator:()=>a.hB,isArray:()=>Rt.cy,isBoolean:()=>Rt.Lm,isDivModeEnabled:()=>r.iK,isFunction:()=>Rt.Tn,isInArray:()=>r.hn,isNull:()=>Rt.kZ,isNumber:()=>Rt.Et,isObject:()=>Rt.Gv,isPointInside:()=>r.Tj,isString:()=>Rt.Kg,itemFromArray:()=>r.Vh,itemFromSingleOrMultiple:()=>r.TA,lFactor:()=>a.iU,lMax:()=>a.$_,lMin:()=>a.vd,lengthOffset:()=>a.K3,loadFont:()=>r.Al,loadMinIndex:()=>a.PZ,loadOptions:()=>St.Z,loadParticlesOptions:()=>St.y,loadRandomFactor:()=>a.$v,manualCount:()=>a.IU,manualDefaultPosition:()=>a.td,midColorValue:()=>a.BW,millisecondsToSeconds:()=>a.Xu,minCoordinate:()=>a.TL,minCount:()=>a.wM,minFpsLimit:()=>a.DN,minIndex:()=>a.z9,minLimit:()=>a.ou,minRetries:()=>a.N5,minStrokeWidth:()=>a.Dv,minVelocity:()=>a.GW,minZ:()=>a.X_,minimumLength:()=>a.$O,minimumSize:()=>a.w2,mix:()=>h.jh,mouseDownEvent:()=>a.ms,mouseLeaveEvent:()=>a.Z0,mouseMoveEvent:()=>a.Rb,mouseOutEvent:()=>a.sf,mouseUpEvent:()=>a.vo,none:()=>a.dv,one:()=>a.xH,originPoint:()=>a.bo,paintBase:()=>Dt.Sn,paintImage:()=>Dt.Md,parseAlpha:()=>h.M3,percentDenominator:()=>a.a5,phaseNumerator:()=>a.BF,posOffset:()=>a.un,qTreeCapacity:()=>a.Kw,quarter:()=>a.$G,randomColorValue:()=>a.mR,randomInRangeValue:()=>h.vE,rangeColorToHsl:()=>Ot.R5,rangeColorToRgb:()=>Ot.BN,removeDeleteCount:()=>a.JC,removeMinIndex:()=>a.vF,resizeEvent:()=>a.NF,rgbMax:()=>a.oi,rgbToHsl:()=>Ot.K6,rollFactor:()=>a.l,sMax:()=>a.eu,sMin:()=>a.yx,sNormalizedOffset:()=>a.aE,safeDocument:()=>r.T5,safeIntersectionObserver:()=>r.BR,safeMatchMedia:()=>r.lV,safeMutationObserver:()=>r.tG,setAnimationFunctions:()=>h.AD,setLogger:()=>d.B,setRandom:()=>h.OE,setRangeValue:()=>h.DT,sextuple:()=>a.zg,singleDivModeExecute:()=>r.S7,sizeFactor:()=>a.Rh,squareExp:()=>a.dm,stringToAlpha:()=>Ot.zI,stringToRgb:()=>Ot.eg,subdivideCount:()=>a.Pg,threeQuarter:()=>a.Rq,touchCancelEvent:()=>a.G3,touchDelay:()=>a.pH,touchEndEvent:()=>a.Bp,touchEndLengthOffset:()=>a.KZ,touchMoveEvent:()=>a.DG,touchStartEvent:()=>a.s7,triple:()=>a.Nu,tryCountIncrement:()=>a.Eo,tsParticles:()=>Tt,updateAnimation:()=>r.UC,updateColor:()=>Ot.Jv,updateColorValue:()=>Ot.Ko,visibilityChangeEvent:()=>a.nK,zIndexFactorOffset:()=>a.RV});var a=o(4117),r=o(615);class c{constructor(){this._listeners=new Map}addEventListener(t,e){this.removeEventListener(t,e);let i=this._listeners.get(t);i||(i=[],this._listeners.set(t,i)),i.push(e)}dispatchEvent(t,e){const i=this._listeners.get(t);i?.forEach((t=>{t(e)}))}hasEventListener(t){return!!this._listeners.get(t)}removeAllEventListeners(t){t?this._listeners.delete(t):this._listeners=new Map}removeEventListener(t,e){const i=this._listeners.get(t);if(!i)return;const n=i.length,o=i.indexOf(e);o<a.z9||(n===a.LD?this._listeners.delete(t):i.splice(o,a.LD))}}var l=o(6991),d=o(183),h=o(397);async function u(t,e,i,n=!1){let o=e.get(t);return o&&!n||(o=await Promise.all([...i.values()].map((e=>e(t)))),e.set(t,o)),o}class p{constructor(){this._configs=new Map,this._domArray=[],this._eventDispatcher=new c,this._initialized=!1,this._loadPromises=new Set,this.plugins=[],this.colorManagers=new Map,this.easingFunctions=new Map,this._initializers={interactors:new Map,movers:new Map,updaters:new Map},this.interactors=new Map,this.movers=new Map,this.updaters=new Map,this.presets=new Map,this.effectDrawers=new Map,this.shapeDrawers=new Map,this.pathGenerators=new Map}get configs(){const t={};for(const[e,i]of this._configs)t[e]=i;return t}get items(){return this._domArray}get version(){return"4.0.0-alpha.0"}addColorManager(t){this.colorManagers.set(t.key,t)}addConfig(t){const e=t.key??t.name??"default";this._configs.set(e,t),this._eventDispatcher.dispatchEvent(l.B.configAdded,{data:{name:e,config:t}})}addEasing(t,e){this.easingFunctions.get(t)||this.easingFunctions.set(t,e)}addEffect(t,e){this.getEffectDrawer(t)||this.effectDrawers.set(t,e)}addEventListener(t,e){this._eventDispatcher.addEventListener(t,e)}addInteractor(t,e){this._initializers.interactors.set(t,e)}addMover(t,e){this._initializers.movers.set(t,e)}addParticleUpdater(t,e){this._initializers.updaters.set(t,e)}addPathGenerator(t,e){this.getPathGenerator(t)||this.pathGenerators.set(t,e)}addPlugin(t){this.getPlugin(t.id)||this.plugins.push(t)}addPreset(t,e,i=!1){!i&&this.getPreset(t)||this.presets.set(t,e)}addShape(t){for(const e of t.validTypes)this.getShapeDrawer(e)||this.shapeDrawers.set(e,t)}checkVersion(t){if(this.version!==t)throw new Error(`The tsParticles version is different from the loaded plugins version. Engine version: ${this.version}. Plugin version: ${t}`)}clearPlugins(t){this.updaters.delete(t),this.movers.delete(t),this.interactors.delete(t)}dispatchEvent(t,e){this._eventDispatcher.dispatchEvent(t,e)}dom(){return this.items}domItem(t){return this.item(t)}async getAvailablePlugins(t){const e=new Map;for(const i of this.plugins)i.needsPlugin(t.actualOptions)&&e.set(i.id,await i.getPlugin(t));return e}getEasing(t){return this.easingFunctions.get(t)??(t=>t)}getEffectDrawer(t){return this.effectDrawers.get(t)}async getInteractors(t,e=!1){return u(t,this.interactors,this._initializers.interactors,e)}async getMovers(t,e=!1){return u(t,this.movers,this._initializers.movers,e)}getPathGenerator(t){return this.pathGenerators.get(t)}getPlugin(t){return this.plugins.find((e=>e.id===t))}getPreset(t){return this.presets.get(t)}getShapeDrawer(t){return this.shapeDrawers.get(t)}getSupportedEffects(){return this.effectDrawers.keys()}getSupportedShapes(){return this.shapeDrawers.keys()}async getUpdaters(t,e=!1){return u(t,this.updaters,this._initializers.updaters,e)}async init(){if(!this._initialized){for(const t of this._loadPromises)await t(this);this._loadPromises.clear(),this._initialized=!0}}item(t){const{items:e}=this,i=e[t];if(!i?.destroyed)return i;e.splice(t,a.JC)}async load(t){await this.init();const{Container:e}=await o.e(638).then(o.bind(o,1638)),i=t.id??t.element?.id??`tsparticles${Math.floor((0,h.G0)()*a.$v).toString()}`,{index:n,url:s}=t,c=s?await async function(t){const e=(0,r.TA)(t.url,t.index);if(!e)return t.fallback;const i=await fetch(e);return i.ok?await i.json():((0,d.t)().error(`${i.status.toString()} while retrieving config file`),t.fallback)}({fallback:t.options,url:s,index:n}):t.options,l=(0,r.TA)(c,n),{items:u}=this,p=u.findIndex((t=>t.id.description===i)),f=new e(this,i,l);if(p>=a.PZ){const t=this.item(p),e=t?a.xH:a.dv;t&&!t.destroyed&&t.destroy(!1),u.splice(p,e,f)}else u.push(f);const v=((t,e)=>{let i=e??(0,r.T5)().getElementById(t);return i||(i=(0,r.T5)().createElement("div"),i.id=t,i.dataset[a.eb]=a.ce,(0,r.T5)().body.append(i),i)})(i,t.element),m=(t=>{let e;if(t instanceof HTMLCanvasElement||t.tagName.toLowerCase()===a.RF)e=t,e.dataset[a.eb]??=a.X$;else{const i=t.getElementsByTagName(a.RF)[a.Nx];i?(e=i,e.dataset[a.eb]=a.X$):(e=(0,r.T5)().createElement(a.RF),e.dataset[a.eb]=a.ce,t.appendChild(e))}const i="100%";return e.style.width||(e.style.width=i),e.style.height||(e.style.height=i),e})(v);return f.canvas.loadCanvas(m),await f.start(),f}loadOptions(t,e){this.plugins.forEach((i=>{i.loadOptions(t,e)}))}loadParticlesOptions(t,e,...i){const n=this.updaters.get(t);n&&n.forEach((t=>t.loadOptions?.(e,...i)))}async refresh(t=!0){t&&await Promise.all(this.items.map((t=>t.refresh())))}register(...t){if(this._initialized)throw new Error("Register plugins can only be done before calling tsParticles.load()");for(const e of t)this._loadPromises.add(e)}removeEventListener(t,e){this._eventDispatcher.removeEventListener(t,e)}setOnClickHandler(t){const{items:e}=this;if(!e.length)throw new Error("Click handlers can only be set after calling tsParticles.load()");e.forEach((e=>{e.addClickHandler(t)}))}}var f=o(5536);class v{constructor(t){this.type=f.e.external,this.container=t}}class m{constructor(t){this.type=f.e.particles,this.container=t}}var g,y=o(2186),b=o(6978),x=o(560),w=o(4342);!function(t){t.clockwise="clockwise",t.counterClockwise="counter-clockwise",t.random="random"}(g||(g={}));var M,k=o(1874),z=o(3551),P=o(1690),D=o(1049),O=o(7997),S=o(5392),R=o(8325),T=o(1983),E=o(181);!function(t){t.linear="linear",t.radial="radial",t.random="random"}(M||(M={}));var F,A=o(753),_=o(782),I=o(2480);!function(t){t.easeInBack="ease-in-back",t.easeInCirc="ease-in-circ",t.easeInCubic="ease-in-cubic",t.easeInLinear="ease-in-linear",t.easeInQuad="ease-in-quad",t.easeInQuart="ease-in-quart",t.easeInQuint="ease-in-quint",t.easeInExpo="ease-in-expo",t.easeInSine="ease-in-sine",t.easeOutBack="ease-out-back",t.easeOutCirc="ease-out-circ",t.easeOutCubic="ease-out-cubic",t.easeOutLinear="ease-out-linear",t.easeOutQuad="ease-out-quad",t.easeOutQuart="ease-out-quart",t.easeOutQuint="ease-out-quint",t.easeOutExpo="ease-out-expo",t.easeOutSine="ease-out-sine",t.easeInOutBack="ease-in-out-back",t.easeInOutCirc="ease-in-out-circ",t.easeInOutCubic="ease-in-out-cubic",t.easeInOutLinear="ease-in-out-linear",t.easeInOutQuad="ease-in-out-quad",t.easeInOutQuart="ease-in-out-quart",t.easeInOutQuint="ease-in-out-quint",t.easeInOutExpo="ease-in-out-expo",t.easeInOutSine="ease-in-out-sine"}(F||(F={}));var V=o(1689),L=o(6249),Z=o(6521),C=o(3544),G=o(7415),B=o(9499),q=o(9845),H=o(5247),$=o(9460),W=o(4981),N=o(1617),j=o(7778),K=o(5043),U=o(8890),X=o(4997),J=o(1317),Q=o(4712),Y=o(3984),tt=o(1917),et=o(8892),it=o(3271),nt=o(894),ot=o(9128),st=o(4640),at=o(4209),rt=o(8502),ct=o(7488),lt=o(8051),dt=o(2620),ht=o(7464),ut=o(4624),pt=o(5504),ft=o(8465),vt=o(5317),mt=o(3969),gt=o(1163),yt=o(6861),bt=o(4377),xt=o(4883),wt=o(1603),Mt=o(7582),kt=o(7461),zt=o(8388),Pt=o(4696),Dt=o(9259),Ot=o(6192),St=o(8627),Rt=o(3631);const Tt=new p;return globalThis.tsParticles=Tt,s})()));
1
+ !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var i=t();for(var a in i)("object"==typeof exports?exports:e)[a]=i[a]}}(this,()=>(()=>{"use strict";var e,t,i,a,n,s,o,r,l,d={299(e,t,i){var a,n;i.d(t,{B:()=>a}),(n=a||(a={})).configAdded="configAdded",n.containerInit="containerInit",n.particlesSetup="particlesSetup",n.containerStarted="containerStarted",n.containerStopped="containerStopped",n.containerDestroyed="containerDestroyed",n.containerPaused="containerPaused",n.containerPlay="containerPlay",n.containerBuilt="containerBuilt",n.particleAdded="particleAdded",n.particleDestroyed="particleDestroyed",n.particleRemoved="particleRemoved"},546(e,t,i){var a,n;i.d(t,{F:()=>a}),(n=a||(a={})).bottom="bottom",n.bottomLeft="bottom-left",n.bottomRight="bottom-right",n.left="left",n.none="none",n.right="right",n.top="top",n.topLeft="top-left",n.topRight="top-right",n.outside="outside",n.inside="inside"},816(e,t,i){i.d(t,{j:()=>s});var a=i(5045),n=i(9739);class s{bottom;default;left;right;top;constructor(){this.default=a.Y.out}load(e){(0,n.kZ)(e)||(void 0!==e.default&&(this.default=e.default),this.bottom=e.bottom??e.default,this.left=e.left??e.default,this.right=e.right??e.default,this.top=e.top??e.default)}}},884(e,t,i){i.d(t,{v:()=>o});var a=i(4860),n=i(5107),s=i(9739);class o{clamp;delay;enable;generator;options;constructor(){this.clamp=!0,this.delay=new a.PV,this.enable=!1,this.options={}}load(e){!(0,s.kZ)(e)&&(void 0!==e.clamp&&(this.clamp=e.clamp),this.delay.load(e.delay),void 0!==e.enable&&(this.enable=e.enable),this.generator=e.generator,e.options&&(this.options=(0,n.zw)(this.options,e.options)))}}},1139(e,t,i){i.d(t,{V:()=>s});var a=i(5633),n=i(9739);class s{color;image;opacity;position;repeat;size;constructor(){this.color=new a.O,this.color.value="",this.image="",this.position="",this.repeat="",this.size="",this.opacity=1}load(e){(0,n.kZ)(e)||(void 0!==e.color&&(this.color=a.O.create(this.color,e.color)),void 0!==e.image&&(this.image=e.image),void 0!==e.position&&(this.position=e.position),void 0!==e.repeat&&(this.repeat=e.repeat),void 0!==e.size&&(this.size=e.size),void 0!==e.opacity&&(this.opacity=e.opacity))}}},1412(e,t,i){i.d(t,{t:()=>o});var a=i(5107),n=i(9739),s=i(1913);class o{acceleration;enable;position;constructor(){this.acceleration=0,this.enable=!1}load(e){!(0,n.kZ)(e)&&(void 0!==e.acceleration&&(this.acceleration=(0,s.DT)(e.acceleration)),void 0!==e.enable&&(this.enable=e.enable),e.position&&(this.position=(0,a.zw)({},e.position)))}}},1695(e,t,i){i.d(t,{y:()=>s});var a=i(9739),n=i(1913);class s{acceleration;enable;inverse;maxSpeed;constructor(){this.acceleration=9.81,this.enable=!1,this.inverse=!1,this.maxSpeed=50}load(e){(0,a.kZ)(e)||(void 0!==e.acceleration&&(this.acceleration=(0,n.DT)(e.acceleration)),void 0!==e.enable&&(this.enable=e.enable),void 0!==e.inverse&&(this.inverse=e.inverse),void 0!==e.maxSpeed&&(this.maxSpeed=(0,n.DT)(e.maxSpeed)))}}},1789(e,t,i){i.d(t,{Y:()=>o});var a=i(4615),n=i(4860),s=i(9739);class o extends n.AI{animation;constructor(){super(),this.animation=new a.I,this.value=1}load(e){if((0,s.kZ)(e))return;super.load(e);let t=e.animation;void 0!==t&&this.animation.load(t)}}},1803(e,t,i){i.d(t,{i:()=>s});var a=i(5127),n=i(9739);class s{h=new a.e;l=new a.e;s=new a.e;load(e){(0,n.kZ)(e)||(this.h.load(e.h),this.s.load(e.s),this.l.load(e.l))}}},1913(e,t,i){i.d(t,{$m:()=>R,AD:()=>p,DT:()=>function e(t,i){if(t===i||void 0===i&&(0,o.Et)(t))return t;let a=x(t),n=w(t);return void 0!==i?{min:Math.min(a,i),max:Math.max(n,i)}:e(a,n)},G0:()=>u,JY:()=>O,M3:()=>I,Mh:()=>T,Nx:()=>_,OE:()=>c,OW:()=>P,Sg:()=>x,VG:()=>b,W9:()=>w,Yf:()=>z,e4:()=>h,eh:()=>k,i0:()=>f,jh:()=>m,l1:()=>F,pu:()=>S,px:()=>v,qE:()=>g,qM:()=>E,vE:()=>y,vr:()=>M});var a=i(546),n=i(7313),s=i(2740),o=i(9739);let r=Math.PI/180,l=Math.random,d={nextFrame:e=>requestAnimationFrame(e),cancel:e=>{cancelAnimationFrame(e)}};function c(e=Math.random){l=e}function u(){return g(l(),0,1-Number.EPSILON)}function h(e,t){return u()*(t-e)+e}function p(e,t){d.nextFrame=t=>e(t),d.cancel=e=>{t(e)}}function f(e){return d.nextFrame(e)}function v(e){d.cancel(e)}function g(e,t,i){return Math.min(Math.max(e,t),i)}function m(e,t,i,a){return Math.floor((e*i+t*a)/(i+a))}function y(e){let t=w(e),i=x(e);return t===i&&(i=0),h(i,t)}function b(e){return(0,o.Et)(e)?e:y(e)}function x(e){return(0,o.Et)(e)?e:e.min}function w(e){return(0,o.Et)(e)?e:e.max}function M(e,t){let i=e.x-t.x,a=e.y-t.y;return{dx:i,dy:a,distance:Math.sqrt(i**2+a**2)}}function z(e,t){return M(e,t).distance}function S(e){return e*r}function O(e,t,i){if((0,o.Et)(e))return e*r;switch(e){case a.F.top:return-Math.PI*n.MX;case a.F.topRight:return-Math.PI*n.$G;case a.F.right:return n.Ie;case a.F.bottomRight:return Math.PI*n.$G;case a.F.bottom:return Math.PI*n.MX;case a.F.bottomLeft:return Math.PI*n.Rq;case a.F.left:return Math.PI;case a.F.topLeft:return-Math.PI*n.Rq;case a.F.inside:return Math.atan2(i.y-t.y,i.x-t.x);case a.F.outside:return Math.atan2(t.y-i.y,t.x-i.x);default:return u()*n.R1}}function R(e){let t=s.M.origin;return t.length=1,t.angle=e,t}function P(e,t,i,a){return s.M.create(e.x*(i-a)/(i+a)+t.x*n.gd*a/(i+a),e.y)}function k(e){return e.position?.x!==void 0&&void 0!==e.position.y?{x:e.position.x*e.size.width/n.a5,y:e.position.y*e.size.height/n.a5}:void 0}function T(e){return{x:(e.position?.x??u()*n.a5)*e.size.width/n.a5,y:(e.position?.y??u()*n.a5)*e.size.height/n.a5}}function F(e){let t={x:e.position?.x!==void 0?b(e.position.x):void 0,y:e.position?.y!==void 0?b(e.position.y):void 0};return T({size:e.size,position:t})}function _(e){let{position:t,size:i}=e;return{x:t?.x??u()*i.width,y:t?.y??u()*i.height}}function E(e){let t={x:e.position?.x!==void 0?b(e.position.x):void 0,y:e.position?.y!==void 0?b(e.position.y):void 0};return _({size:e.size,position:t})}function I(e){return e?e.endsWith("%")?parseFloat(e)/n.a5:parseFloat(e):1}},1964(e,t,i){i.d(t,{BN:()=>u,EY:()=>S,Jv:()=>_,K6:()=>v,Ko:()=>F,LC:()=>z,OH:()=>x,O_:()=>P,PG:()=>R,R5:()=>f,YL:()=>y,_h:()=>O,ay:()=>b,eg:()=>m,mK:()=>p,pz:()=>k,qe:()=>h,xx:()=>w,zI:()=>g});var a=i(1913),n=i(7313),s=i(9739),o=i(7205),r=i(5107);let l=new Map;function d(e,t){let i=l.get(e);return i||(i=t(),l.size>=1e3&&[...l.keys()].slice(0,1e3*n.MX).forEach(e=>l.delete(e)),l.set(e,i)),i}function c(e,t){if(t){for(let i of e.colorManagers.values())if(i.accepts(t))return i.parseString(t)}}function u(e,t,i,a=!0){if(!t)return;let n=(0,s.Kg)(t)?{value:t}:t;if((0,s.Kg)(n.value))return h(e,n.value,i,a);if((0,s.cy)(n.value)){let t=(0,r.Vh)(n.value,i,a);if(!t)return;return u(e,{value:t})}for(let t of e.colorManagers.values()){let e=t.handleRangeColor(n);if(e)return e}}function h(e,t,i,a=!0){if(!t)return;let o=(0,s.Kg)(t)?{value:t}:t;if((0,s.Kg)(o.value))return o.value===n.mR?x():c(e,o.value);if((0,s.cy)(o.value)){let t=(0,r.Vh)(o.value,i,a);if(!t)return;return h(e,{value:t})}for(let t of e.colorManagers.values()){let e=t.handleColor(o);if(e)return e}}function p(e,t,i,a=!0){let n=h(e,t,i,a);return n?v(n):void 0}function f(e,t,i,a=!0){let n=u(e,t,i,a);return n?v(n):void 0}function v(e){let t=e.r/n.oi,i=e.g/n.oi,a=e.b/n.oi,s=Math.max(t,i,a),o=Math.min(t,i,a),r={h:n.L1,l:(s+o)*n.MX,s:n.yx};return s!==o&&(r.s=r.l<n.MX?(s-o)/(s+o):(s-o)/(n.gd-s-o),t===s?r.h=(i-a)/(s-o):i===s?r.h=n.gd+(a-t)/(s-o):r.h=n.gd*n.gd+(t-i)/(s-o)),r.l*=n.$_,r.s*=n.eu,r.h*=n.U0,r.h<n.L1&&(r.h+=n.vS),r.h>=n.vS&&(r.h-=n.vS),r}function g(e,t){return c(e,t)?.a}function m(e,t){return c(e,t)}function y(e){let t=(e.h%n.vS+n.vS)%n.vS,i=Math.max(n.yx,Math.min(n.eu,e.s)),a=Math.max(n.vd,Math.min(n.$_,e.l)),s=t/n.vS,o=i/n.eu,r=a/n.$_;if(i===n.yx){let e=Math.round(r*n.oi);return{r:e,g:e,b:e}}let l=(e,t,i)=>(i<0&&i++,i>1&&i--,i*n.zg<1)?e+(t-e)*n.zg*i:i*n.gd<1?t:i*n.Nu<+n.gd?e+(t-e)*(n.gd/n.Nu-i)*n.zg:e,d=r<n.MX?r*(n.aE+o):r+o-r*o,c=n.gd*r-d,u=n.BF/n.Nu;return{r:Math.round(Math.min(n.oi,n.oi*l(c,d,s+u))),g:Math.round(Math.min(n.oi,n.oi*l(c,d,s))),b:Math.round(Math.min(n.oi,n.oi*l(c,d,s-u)))}}function b(e){let t=y(e);return{a:e.a,b:t.b,g:t.g,r:t.r}}function x(e){let t=e??n.Fl,i=n.oi+n.D_,s=()=>Math.floor((0,a.e4)(t,i));return{b:s(),g:s(),r:s()}}function w(e,t,i){let a=i??n.hv;return d(`rgb-${e.r.toFixed(2)}-${e.g.toFixed(2)}-${e.b.toFixed(2)}-${t?"hdr":"sdr"}-${a.toString()}`,()=>{var a,s;return t?M(e,i):(a=e,s=i,`rgba(${a.r.toString()}, ${a.g.toString()}, ${a.b.toString()}, ${(s??n.hv).toString()})`)})}function M(e,t){return`color(display-p3 ${(e.r/n.oi).toString()} ${(e.g/n.oi).toString()} ${(e.b/n.oi).toString()} / ${(t??n.hv).toString()})`}function z(e,t,i){let a=i??n.hv;return d(`hsl-${e.h.toFixed(2)}-${e.s.toFixed(2)}-${e.l.toFixed(2)}-${t?"hdr":"sdr"}-${a.toString()}`,()=>{var a,s,o,r;return t?(a=e,s=i,M(y(a),s)):(o=e,r=i,`hsla(${o.h.toString()}, ${o.s.toString()}%, ${o.l.toString()}%, ${(r??n.hv).toString()})`)})}function S(e,t,i,n){let s=e,o=t;return Object.hasOwn(s,"r")||(s=y(e)),Object.hasOwn(o,"r")||(o=y(t)),{b:(0,a.jh)(s.b,o.b,i,n),g:(0,a.jh)(s.g,o.g,i,n),r:(0,a.jh)(s.r,o.r,i,n)}}function O(e,t,i){if(i===n.mR)return x();if(i!==n.BW)return i;{let i=e.getFillColor()??e.getStrokeColor(),a=t?.getFillColor()??t?.getStrokeColor();if(i&&a&&t)return S(i,a,e.getRadius(),t.getRadius());{let e=i??a;if(e)return y(e)}}}function R(e,t,i,a){let o=(0,s.Kg)(t)?t:t.value;return o===n.mR?a?u(e,{value:o}):i?n.mR:n.BW:o===n.BW?n.BW:u(e,{value:o})}function P(e){return void 0!==e?{h:e.h.value,s:e.s.value,l:e.l.value}:void 0}function k(e,t,i){let a={h:{enable:!1,value:e.h},s:{enable:!1,value:e.s},l:{enable:!1,value:e.l}};return t&&(T(a.h,t.h,i),T(a.s,t.s,i),T(a.l,t.l,i)),a}function T(e,t,i){e.enable=t.enable,e.enable?(e.velocity=(0,a.VG)(t.speed)/n.a5*i,e.decay=n.WH-(0,a.VG)(t.decay),e.status=o.H.increasing,e.loops=n.hK,e.maxLoops=(0,a.VG)(t.count),e.time=n.tR,e.delayTime=(0,a.VG)(t.delay)*n.Xu,t.sync||(e.velocity*=(0,a.G0)(),e.value*=(0,a.G0)()),e.initialValue=e.value,e.offset=(0,a.DT)(t.offset)):e.velocity=n.jn}function F(e,t,i,n){if(!e.enable||(e.maxLoops??0)>0&&(e.loops??0)>(e.maxLoops??0)||(e.time??=0,(e.delayTime??0)>0&&e.time<(e.delayTime??0)&&(e.time+=n.value),(e.delayTime??0)>0&&e.time<(e.delayTime??0)))return;let s=e.offset?(0,a.vE)(e.offset):0,r=(e.velocity??0)*n.factor+3.6*s,l=e.decay??1,d=(0,a.W9)(t),c=(0,a.Sg)(t);i&&e.status!==o.H.increasing?(e.value-=r,e.value<0&&(e.loops??=0,e.loops++,e.status=o.H.increasing)):(e.value+=r,e.value>d&&(e.loops??=0,e.loops++,i?e.status=o.H.decreasing:e.value-=d)),e.velocity&&1!==l&&(e.velocity*=l),e.value=(0,a.qE)(e.value,c,d)}function _(e,t){if(!e)return;let{h:i,s:a,l:s}=e,o={h:{min:n.L1,max:n.vS},s:{min:n.yx,max:n.eu},l:{min:n.vd,max:n.$_}};F(i,o.h,!1,t),F(a,o.s,!0,t),F(s,o.l,!0,t)}},2010(e,t,i){var a,n;i.d(t,{S:()=>a}),(n=a||(a={})).max="max",n.min="min",n.random="random"},2057(e,t,i){i.d(t,{y:()=>s});var a=i(5107),n=i(9739);class s{close;fill;options;type;constructor(){this.close=!0,this.fill=!0,this.options={},this.type="circle"}load(e){if((0,n.kZ)(e))return;let t=e.options;if(void 0!==t)for(let e in t){let i=t[e];i&&(this.options[e]=(0,a.zw)(this.options[e]??{},i))}void 0!==e.close&&(this.close=e.close),void 0!==e.fill&&(this.fill=e.fill),void 0!==e.type&&(this.type=e.type)}}},2268(e,t,i){i.d(t,{Z:()=>s});var a=i(7073),n=i(9739);class s{mode;radius;x;y;constructor(){this.x=50,this.y=50,this.mode=a.q.percent,this.radius=0}load(e){(0,n.kZ)(e)||(void 0!==e.x&&(this.x=e.x),void 0!==e.y&&(this.y=e.y),void 0!==e.mode&&(this.mode=e.mode),void 0!==e.radius&&(this.radius=e.radius))}}},2679(e,t,i){i.d(t,{Z:()=>n,y:()=>s});var a=i(5953);function n(e,...t){for(let i of t)e.load(i)}function s(e,t,...i){let o=new a.U(e,t);return n(o,...i),o}},2685(e,t,i){i.d(t,{A:()=>o});var a=i(9739),n=i(1803),s=i(5633);class o extends s.O{animation;constructor(){super(),this.animation=new n.i}static create(e,t){let i=new o;return i.load(e),void 0!==t&&((0,a.Kg)(t)||(0,a.cy)(t)?i.load({value:t}):i.load(t)),i}load(e){if(super.load(e),(0,a.kZ)(e))return;let t=e.animation;void 0!==t&&(void 0===t.enable?this.animation.load(e.animation):this.animation.h.load(t))}}},2740(e,t,i){i.d(t,{M:()=>s,p:()=>n});var a=i(7313);class n{x;y;z;constructor(e=a.bo.x,t=a.bo.y,i=a.bo.z){this.x=e,this.y=t,this.z=i}static get origin(){return n.create(a.bo.x,a.bo.y,a.bo.z)}get angle(){return Math.atan2(this.y,this.x)}set angle(e){this._updateFromAngle(e,this.length)}get length(){return Math.sqrt(this.getLengthSq())}set length(e){this._updateFromAngle(this.angle,e)}static clone(e){return n.create(e.x,e.y,e.z)}static create(e,t,i){return"number"==typeof e?new n(e,t??a.bo.y,i??a.bo.z):new n(e.x,e.y,Object.hasOwn(e,"z")?e.z:a.bo.z)}add(e){return n.create(this.x+e.x,this.y+e.y,this.z+e.z)}addTo(e){this.x+=e.x,this.y+=e.y,this.z+=e.z}copy(){return n.clone(this)}distanceTo(e){return this.sub(e).length}distanceToSq(e){return this.sub(e).getLengthSq()}div(e){return n.create(this.x/e,this.y/e,this.z/e)}divTo(e){this.x/=e,this.y/=e,this.z/=e}getLengthSq(){return this.x**a.dm+this.y**a.dm}mult(e){return n.create(this.x*e,this.y*e,this.z*e)}multTo(e){this.x*=e,this.y*=e,this.z*=e}normalize(){let e=this.length;e!=a.dv&&this.multTo(a.hB/e)}rotate(e){return n.create(this.x*Math.cos(e)-this.y*Math.sin(e),this.x*Math.sin(e)+this.y*Math.cos(e),a.bo.z)}setTo(e){this.x=e.x,this.y=e.y,this.z=e.z?e.z:a.bo.z}sub(e){return n.create(this.x-e.x,this.y-e.y,this.z-e.z)}subFrom(e){this.x-=e.x,this.y-=e.y,this.z-=e.z}_updateFromAngle=(e,t)=>{this.x=Math.cos(e)*t,this.y=Math.sin(e)*t}}class s extends n{constructor(e=a.bo.x,t=a.bo.y){super(e,t,a.bo.z)}static get origin(){return s.create(a.bo.x,a.bo.y)}static clone(e){return s.create(e.x,e.y)}static create(e,t){return"number"==typeof e?new s(e,t??a.bo.y):new s(e.x,e.y)}}},3801(e,t,i){i.d(t,{M:()=>n});var a=i(9739);class n{enable;height;width;constructor(){this.enable=!1,this.width=1920,this.height=1080}load(e){if((0,a.kZ)(e))return;void 0!==e.enable&&(this.enable=e.enable);let t=e.width;void 0!==t&&(this.width=t);let i=e.height;void 0!==i&&(this.height=i)}}},3996(e,t,i){i.d(t,{Q:()=>l,p:()=>r});var a=i(9355),n=i(2010),s=i(9739),o=i(1913);class r{count;decay;delay;enable;speed;sync;constructor(){this.count=0,this.enable=!1,this.speed=1,this.decay=0,this.delay=0,this.sync=!1}load(e){(0,s.kZ)(e)||(void 0!==e.count&&(this.count=(0,o.DT)(e.count)),void 0!==e.enable&&(this.enable=e.enable),void 0!==e.speed&&(this.speed=(0,o.DT)(e.speed)),void 0!==e.decay&&(this.decay=(0,o.DT)(e.decay)),void 0!==e.delay&&(this.delay=(0,o.DT)(e.delay)),void 0!==e.sync&&(this.sync=e.sync))}}class l extends r{mode;startValue;constructor(){super(),this.mode=a.g.auto,this.startValue=n.S.random}load(e){super.load(e),(0,s.kZ)(e)||(void 0!==e.mode&&(this.mode=e.mode),void 0!==e.startValue&&(this.startValue=e.startValue))}}},4508(e,t,i){i.d(t,{t:()=>o});var a=i(2685),n=i(9739),s=i(1913);class o{color;opacity;width;constructor(){this.width=0}load(e){(0,n.kZ)(e)||(void 0!==e.color&&(this.color=a.A.create(this.color,e.color)),void 0!==e.width&&(this.width=(0,s.DT)(e.width)),void 0!==e.opacity&&(this.opacity=(0,s.DT)(e.opacity)))}}},4575(e,t,i){i.d(t,{q:()=>o});var a=i(6761),n=i(3996),s=i(9739);class o extends n.Q{destroy;constructor(){super(),this.destroy=a.V.none,this.speed=5}load(e){super.load(e),(0,s.kZ)(e)||void 0!==e.destroy&&(this.destroy=e.destroy)}}},4615(e,t,i){i.d(t,{I:()=>o});var a=i(6761),n=i(3996),s=i(9739);class o extends n.Q{destroy;constructor(){super(),this.destroy=a.V.none,this.speed=2}load(e){super.load(e),(0,s.kZ)(e)||void 0!==e.destroy&&(this.destroy=e.destroy)}}},4860(e,t,i){i.d(t,{AI:()=>l,Jm:()=>r,PV:()=>o});var a=i(3996),n=i(9739),s=i(1913);class o{value;constructor(){this.value=0}load(e){!(0,n.kZ)(e)&&((0,n.kZ)(e.value)||(this.value=(0,s.DT)(e.value)))}}class r extends o{animation=new a.p;load(e){if(super.load(e),(0,n.kZ)(e))return;let t=e.animation;void 0!==t&&this.animation.load(t)}}class l extends r{animation;constructor(){super(),this.animation=new a.Q}load(e){super.load(e)}}},4939(e,t,i){i.d(t,{F:()=>n});var a=i(4860);class n extends a.PV{constructor(){super(),this.value=1}}},4975(e,t,i){i.d(t,{P:()=>s});var a=i(4860),n=i(9739);class s extends a.PV{opacityRate;sizeRate;velocityRate;constructor(){super(),this.opacityRate=1,this.sizeRate=1,this.velocityRate=1}load(e){super.load(e),(0,n.kZ)(e)||(void 0!==e.opacityRate&&(this.opacityRate=e.opacityRate),void 0!==e.sizeRate&&(this.sizeRate=e.sizeRate),void 0!==e.velocityRate&&(this.velocityRate=e.velocityRate))}}},5045(e,t,i){var a,n;i.d(t,{Y:()=>a}),(n=a||(a={})).bounce="bounce",n.none="none",n.out="out",n.destroy="destroy",n.split="split"},5107(e,t,i){let a;i.d(t,{AE:()=>O,BR:()=>y,E9:()=>I,HQ:()=>$,Kp:()=>C,O2:()=>S,Ot:()=>Z,T5:()=>g,TA:()=>T,Tg:()=>R,Tj:()=>z,UC:()=>D,Vh:()=>M,Xs:()=>_,YC:()=>A,hJ:()=>V,hn:()=>x,lV:()=>m,n0:()=>w,pE:()=>P,q8:()=>v,tG:()=>b,td:()=>L,w3:()=>F,wJ:()=>k,zw:()=>function e(t,...i){for(let a of i)if(null!=a){if(!(0,r.Gv)(a)){t=a;continue}for(let i in Array.isArray(a)?Array.isArray(t)||(t=[]):(!(0,r.Gv)(t)||Array.isArray(t))&&(t={}),a){if("__proto__"===i)continue;let n=a[i],s=t;s[i]=(0,r.Gv)(n)&&Array.isArray(n)?n.map(t=>e(s[i],t)):e(s[i],n)}}return t}});var n,s=i(1913),o=i(7313),r=i(9739),l=i(9355),d=i(7205),c=i(6761),u=i(7230),h=i(7073),p=i(2010),f=i(2740);function v(){return"u">typeof matchMedia}function g(){return globalThis.document}function m(e){if(v())return matchMedia(e)}function y(e){if("u">typeof IntersectionObserver)return new IntersectionObserver(e)}function b(e){if("u">typeof MutationObserver)return new MutationObserver(e)}function x(e,t){return e===t||(0,r.cy)(t)&&t.includes(e)}function w(e){return Math.floor((0,s.G0)()*e.length)}function M(e,t,i=!0){return e[void 0!==t&&i?t%e.length:w(e)]}function z(e,t,i,a,n){return S(O(e,a??0),t,i,n)}function S(e,t,i,a){let n=!0;return a&&a!==u.v.bottom||(n=e.top<t.height+i.x),n&&(!a||a===u.v.left)&&(n=e.right>i.x),n&&(!a||a===u.v.right)&&(n=e.left<t.width+i.y),n&&(!a||a===u.v.top)&&(n=e.bottom>i.y),n}function O(e,t){return{bottom:e.y+t,left:e.x-t,right:e.x+t,top:e.y-t}}function R(e){return{position:e.getPosition(),radius:e.getRadius(),mass:e.getMass(),velocity:e.velocity,factor:f.M.create((0,s.VG)(e.options.bounce.horizontal.value),(0,s.VG)(e.options.bounce.vertical.value))}}function P(e,t){let{x:i,y:a}=e.velocity.sub(t.velocity),[n,o]=[e.position,t.position],{dx:r,dy:l}=(0,s.vr)(o,n);if(i*r+a*l<0)return;let d=-Math.atan2(l,r),c=e.mass,u=t.mass,h=e.velocity.rotate(d),p=t.velocity.rotate(d),f=(0,s.OW)(h,p,c,u),v=(0,s.OW)(p,h,c,u),g=f.rotate(-d),m=v.rotate(-d);e.velocity.x=g.x*e.factor.x,e.velocity.y=g.y*e.factor.y,t.velocity.x=m.x*t.factor.x,t.velocity.y=m.y*t.factor.y}function k(e,t){return(0,r.cy)(e)?e.map((e,i)=>t(e,i)):t(e,0)}function T(e,t,i){return(0,r.cy)(e)?M(e,t,i):e}function F(e,t){return(0,r.cy)(e)?e.find((e,i)=>t(e,i)):t(e,0)?e:void 0}function _(e,t){let i=e.value,a=e.animation,n={delayTime:(0,s.VG)(a.delay)*o.Xu,enable:a.enable,value:(0,s.VG)(e.value)*t,max:(0,s.W9)(i)*t,min:(0,s.Sg)(i)*t,loops:0,maxLoops:(0,s.VG)(a.count),time:0};if(a.enable){switch(n.decay=1-(0,s.VG)(a.decay),a.mode){case l.g.increase:n.status=d.H.increasing;break;case l.g.decrease:n.status=d.H.decreasing;break;case l.g.random:n.status=(0,s.G0)()>=o.MX?d.H.increasing:d.H.decreasing}let e=a.mode===l.g.auto;switch(a.startValue){case p.S.min:n.value=n.min,e&&(n.status=d.H.increasing);break;case p.S.max:n.value=n.max,e&&(n.status=d.H.decreasing);break;case p.S.random:default:n.value=(0,s.vE)(n),e&&(n.status=(0,s.G0)()>=o.MX?d.H.increasing:d.H.decreasing)}}return n.initialValue=n.value,n}function E(e,t){if(e.mode!==h.q.percent){let{mode:t,...i}=e;return i}return"x"in e?{x:e.x/o.a5*t.width,y:e.y/o.a5*t.height}:{width:e.width/o.a5*t.width,height:e.height/o.a5*t.height}}function I(e,t){return E(e,t)}function A(e,t){return E(e,t)}function D(e,t,i,a,n){if(e.destroyed||!t.enable||(t.maxLoops??0)>0&&(t.loops??0)>(t.maxLoops??0))return;let o=(t.velocity??0)*n.factor,r=t.min,l=t.max,u=t.decay??1;if(t.time??=0,(t.delayTime??0)>0&&t.time<(t.delayTime??0)&&(t.time+=n.value),!((t.delayTime??0)>0)||!(t.time<(t.delayTime??0))){switch(t.status){case d.H.increasing:t.value>=l?(i?t.status=d.H.decreasing:t.value-=l,t.loops??=0,t.loops++):t.value+=o;break;case d.H.decreasing:t.value<=r?(i?t.status=d.H.increasing:t.value+=l,t.loops??=0,t.loops++):t.value-=o}t.velocity&&1!==u&&(t.velocity*=u);var h=t.value;switch(a){case c.V.max:h>=l&&e.destroy();break;case c.V.min:h<=r&&e.destroy()}t.value=(0,s.qE)(t.value,r,l)}}function L(e){let t=g().createElement("div").style;for(let i in e){let a=e[i];if(!Object.hasOwn(e,i)||(0,r.kZ)(a))continue;let n=e.getPropertyValue?.(a);if(!n)continue;let s=e.getPropertyPriority?.(a);s?t.setProperty(a,n,s):t.setProperty(a,n)}return t}let V=(n=function(e){let t=g().createElement("div").style,i={width:"100%",height:"100%",margin:"0",padding:"0",borderWidth:"0",position:"fixed",zIndex:e.toString(10),"z-index":e.toString(10),top:"0",left:"0"};for(let e in i){let a=i[e];void 0!==a&&t.setProperty(e,a)}return t},a=new Map,(...e)=>{let t=JSON.stringify(e);if(a.has(t))return a.get(t);let i=n(...e);return a.set(t,i),i});function C(e,t,i,a,n){if(a){let a={passive:!0};(0,r.Lm)(n)?a.capture=n:void 0!==n&&(a=n),e.addEventListener(t,i,a)}else e.removeEventListener(t,i,n)}async function $(e,t,i,a=!1){let n=t.get(e);return(!n||a)&&(n=await Promise.all([...i.values()].map(t=>t(e))),t.set(e,n)),n}async function Z(e,t,i,a=!1){let n=t.get(e);if(!n||a){for(let[t,a]of(n=new Map,await Promise.all([...i.entries()].map(async([t,i])=>[t,await i(e)]))))n.set(t,a);t.set(e,n)}return n}},5127(e,t,i){i.d(t,{e:()=>o});var a=i(3996),n=i(9739),s=i(1913);class o extends a.p{offset;constructor(){super(),this.offset=0,this.sync=!0}load(e){super.load(e),(0,n.kZ)(e)||void 0!==e.offset&&(this.offset=(0,s.DT)(e.offset))}}},5373(e,t,i){i.d(t,{y:()=>p});var a=i(546),n=i(9739),s=i(9114),o=i(6156),r=i(2268),l=i(1695),d=i(884),c=i(816),u=i(1412),h=i(1913);class p{angle;attract;center;decay;direction;distance;drift;enable;gravity;outModes;path;random;size;speed;spin;straight;vibrate;warp;constructor(){this.angle=new s.h,this.attract=new o.R,this.center=new r.Z,this.decay=0,this.distance={},this.direction=a.F.none,this.drift=0,this.enable=!1,this.gravity=new l.y,this.path=new d.v,this.outModes=new c.j,this.random=!1,this.size=!1,this.speed=2,this.spin=new u.t,this.straight=!1,this.vibrate=!1,this.warp=!1}load(e){if((0,n.kZ)(e))return;this.angle.load((0,n.Et)(e.angle)?{value:e.angle}:e.angle),this.attract.load(e.attract),this.center.load(e.center),void 0!==e.decay&&(this.decay=(0,h.DT)(e.decay)),void 0!==e.direction&&(this.direction=e.direction),void 0!==e.distance&&(this.distance=(0,n.Et)(e.distance)?{horizontal:e.distance,vertical:e.distance}:{...e.distance}),void 0!==e.drift&&(this.drift=(0,h.DT)(e.drift)),void 0!==e.enable&&(this.enable=e.enable),this.gravity.load(e.gravity);let t=e.outModes;void 0!==t&&((0,n.Gv)(t)?this.outModes.load(t):this.outModes.load({default:t})),this.path.load(e.path),void 0!==e.random&&(this.random=e.random),void 0!==e.size&&(this.size=e.size),void 0!==e.speed&&(this.speed=(0,h.DT)(e.speed)),this.spin.load(e.spin),void 0!==e.straight&&(this.straight=e.straight),void 0!==e.vibrate&&(this.vibrate=e.vibrate),void 0!==e.warp&&(this.warp=e.warp)}}},5398(e,t,i){var a,n;i.d(t,{d:()=>a}),(n=a||(a={})).delete="delete",n.wait="wait"},5563(e,t,i){var a,n;i.d(t,{H:()=>a}),(n=a||(a={})).darken="darken",n.enlighten="enlighten"},5633(e,t,i){i.d(t,{O:()=>n});var a=i(9739);class n{value;constructor(){this.value=""}static create(e,t){let i=new n;return i.load(e),void 0!==t&&((0,a.Kg)(t)||(0,a.cy)(t)?i.load({value:t}):i.load(t)),i}load(e){!(0,a.kZ)(e)&&((0,a.kZ)(e.value)||(this.value=e.value))}}},5668(e,t,i){i.d(t,{dg:()=>r,jl:()=>l,M_:()=>d}),(a=n||(n={})).circle="circle",a.rectangle="rectangle";var a,n,s=i(1913),o=i(7313);class r{position;type;constructor(e,t,i){this.position={x:e,y:t},this.type=i}}class l extends r{radius;constructor(e,t,i){super(e,t,n.circle),this.radius=i}contains(e){return(0,s.Yf)(e,this.position)<=this.radius}intersects(e){let t=this.position,i=e.position,a={x:Math.abs(i.x-t.x),y:Math.abs(i.y-t.y)},s=this.radius;if(e instanceof l||e.type===n.circle)return s+e.radius>Math.sqrt(a.x**o.dm+a.y**o.dm);if(e instanceof d||e.type===n.rectangle){let{width:t,height:i}=e.size;return Math.pow(a.x-t,o.dm)+Math.pow(a.y-i,o.dm)<=s**o.dm||a.x<=s+t&&a.y<=s+i||a.x<=t||a.y<=i}return!1}}class d extends r{size;constructor(e,t,i,a){super(e,t,n.rectangle),this.size={height:a,width:i}}contains(e){let t=this.size.width,i=this.size.height,a=this.position;return e.x>=a.x&&e.x<=a.x+t&&e.y>=a.y&&e.y<=a.y+i}intersects(e){if(e instanceof l)return e.intersects(this);let t=this.size.width,i=this.size.height,a=this.position,n=e.position,s=e instanceof d?e.size:{width:0,height:0},o=s.width,r=s.height;return n.x<a.x+t&&n.x+o>a.x&&n.y<a.y+i&&n.y+r>a.y}}},5953(e,t,i){i.d(t,{U:()=>v});var a=i(5107),n=i(2685),s=i(9739);class o{close;fill;options;type;constructor(){this.close=!0,this.fill=!0,this.options={},this.type=[]}load(e){if((0,s.kZ)(e))return;let t=e.options;if(void 0!==t)for(let e in t){let i=t[e];i&&(this.options[e]=(0,a.zw)(this.options[e]??{},i))}void 0!==e.close&&(this.close=e.close),void 0!==e.fill&&(this.fill=e.fill),void 0!==e.type&&(this.type=e.type)}}var r=i(5373),l=i(1789),d=i(6408),c=i(6556),u=i(2057),h=i(8997),p=i(4508),f=i(4975);class v{bounce;color;effect;groups;move;number;opacity;reduceDuplicates;shape;size;stroke;zIndex;_container;_engine;constructor(e,t){this._engine=e,this._container=t,this.bounce=new d.w,this.color=new n.A,this.color.value="#fff",this.effect=new o,this.groups={},this.move=new r.y,this.number=new c.N,this.opacity=new l.Y,this.reduceDuplicates=!1,this.shape=new u.y,this.size=new h.o,this.stroke=new p.t,this.zIndex=new f.P}load(e){if((0,s.kZ)(e))return;if(void 0!==e.groups)for(let t of Object.keys(e.groups)){if(!Object.hasOwn(e.groups,t))continue;let i=e.groups[t];void 0!==i&&(this.groups[t]=(0,a.zw)(this.groups[t]??{},i))}void 0!==e.reduceDuplicates&&(this.reduceDuplicates=e.reduceDuplicates),this.bounce.load(e.bounce),this.color.load(n.A.create(this.color,e.color)),this.effect.load(e.effect),this.move.load(e.move),this.number.load(e.number),this.opacity.load(e.opacity),this.shape.load(e.shape),this.size.load(e.size),this.zIndex.load(e.zIndex);let t=e.stroke;if(t&&(this.stroke=(0,a.wJ)(t,e=>{let t=new p.t;return t.load(e),t})),this._container){for(let t of this._engine.plugins)t.loadParticlesOptions&&t.loadParticlesOptions(this._container,this,e);let t=this._engine.updaters.get(this._container);if(t)for(let i of t)i.loadOptions&&i.loadOptions(this,e)}}}},6156(e,t,i){i.d(t,{R:()=>s});var a=i(9739),n=i(1913);class s{distance;enable;rotate;constructor(){this.distance=200,this.enable=!1,this.rotate={x:3e3,y:3e3}}load(e){if(!(0,a.kZ)(e)&&(void 0!==e.distance&&(this.distance=(0,n.DT)(e.distance)),void 0!==e.enable&&(this.enable=e.enable),e.rotate)){let t=e.rotate.x;void 0!==t&&(this.rotate.x=t);let i=e.rotate.y;void 0!==i&&(this.rotate.y=i)}}}},6408(e,t,i){i.d(t,{w:()=>s});var a=i(4939),n=i(9739);class s{horizontal;vertical;constructor(){this.horizontal=new a.F,this.vertical=new a.F}load(e){(0,n.kZ)(e)||(this.horizontal.load(e.horizontal),this.vertical.load(e.vertical))}}},6556(e,t,i){i.d(t,{N:()=>o});var a=i(3801),n=i(9197),s=i(9739);class o{density;limit;value;constructor(){this.density=new a.M,this.limit=new n.A,this.value=0}load(e){(0,s.kZ)(e)||(this.density.load(e.density),this.limit.load(e.limit),void 0!==e.value&&(this.value=e.value))}}},6761(e,t,i){var a,n;i.d(t,{V:()=>a}),(n=a||(a={})).none="none",n.max="max",n.min="min"},6996(e,t,i){i.d(t,{J:()=>c});var a=i(5107),n=i(9739),s=i(1139),o=i(8705),r=i(9946),l=i(2679),d=i(1913);class c{autoPlay;background;clear;defaultThemes;delay;detectRetina;duration;fpsLimit;fullScreen;hdr;key;name;particles;pauseOnBlur;pauseOnOutsideViewport;preset;resize;smooth;style;zLayers;_container;_engine;constructor(e,t){this._engine=e,this._container=t,this.autoPlay=!0,this.background=new s.V,this.clear=!0,this.defaultThemes={},this.delay=0,this.fullScreen=new o.m,this.detectRetina=!0,this.duration=0,this.fpsLimit=120,this.hdr=!0,this.particles=(0,l.y)(this._engine,this._container),this.pauseOnBlur=!0,this.pauseOnOutsideViewport=!0,this.resize=new r.z,this.smooth=!1,this.style={},this.zLayers=100}load(e){if((0,n.kZ)(e))return;void 0!==e.preset&&(0,a.wJ)(e.preset,e=>{this._importPreset(e)}),void 0!==e.autoPlay&&(this.autoPlay=e.autoPlay),void 0!==e.clear&&(this.clear=e.clear),void 0!==e.key&&(this.key=e.key),void 0!==e.name&&(this.name=e.name),void 0!==e.delay&&(this.delay=(0,d.DT)(e.delay));let t=e.detectRetina;void 0!==t&&(this.detectRetina=t),void 0!==e.duration&&(this.duration=(0,d.DT)(e.duration));let i=e.fpsLimit;void 0!==i&&(this.fpsLimit=i),void 0!==e.hdr&&(this.hdr=e.hdr),void 0!==e.pauseOnBlur&&(this.pauseOnBlur=e.pauseOnBlur),void 0!==e.pauseOnOutsideViewport&&(this.pauseOnOutsideViewport=e.pauseOnOutsideViewport),void 0!==e.zLayers&&(this.zLayers=e.zLayers),this.background.load(e.background);let s=e.fullScreen;(0,n.Lm)(s)?this.fullScreen.enable=s:this.fullScreen.load(s),this.particles.load(e.particles),this.resize.load(e.resize),this.style=(0,a.zw)(this.style,e.style),void 0!==e.smooth&&(this.smooth=e.smooth),this._engine.plugins.forEach(t=>{t.loadOptions(this._container,this,e)})}_importPreset=e=>{this.load(this._engine.getPreset(e))}}},7073(e,t,i){var a,n;i.d(t,{q:()=>a}),(n=a||(a={})).precise="precise",n.percent="percent"},7205(e,t,i){var a,n;i.d(t,{H:()=>a}),(n=a||(a={})).increasing="increasing",n.decreasing="decreasing"},7230(e,t,i){var a,n;i.d(t,{v:()=>a}),(n=a||(a={})).bottom="bottom",n.left="left",n.right="right",n.top="top"},7313(e,t,i){i.d(t,{$G:()=>L,$O:()=>B,$_:()=>_,$v:()=>J,$x:()=>S,BF:()=>eR,BW:()=>h,DN:()=>Q,D_:()=>eb,Dv:()=>ex,Eo:()=>ea,FS:()=>H,Fl:()=>eP,GW:()=>C,Ie:()=>D,JC:()=>K,K3:()=>ep,KZ:()=>N,Kw:()=>M,L1:()=>E,LD:()=>ev,M1:()=>eo,MX:()=>r,N5:()=>en,NF:()=>n,Nu:()=>ez,Nx:()=>U,PZ:()=>Y,Pg:()=>R,R1:()=>f,RF:()=>b,RV:()=>G,Rh:()=>el,Rq:()=>V,TL:()=>j,U0:()=>A,Ug:()=>c,WH:()=>ei,X$:()=>y,X_:()=>es,Xu:()=>l,Zp:()=>O,a5:()=>o,aE:()=>eO,aZ:()=>g,bo:()=>d,ce:()=>m,dm:()=>w,dv:()=>et,eb:()=>a,eu:()=>F,gd:()=>p,hB:()=>P,hK:()=>eT,hv:()=>q,i8:()=>X,iU:()=>ew,jn:()=>ek,lA:()=>ef,mR:()=>u,nK:()=>s,nq:()=>ec,oi:()=>k,ou:()=>ed,pH:()=>eg,rq:()=>x,tA:()=>ey,tR:()=>eF,td:()=>em,un:()=>er,vF:()=>W,vS:()=>T,vd:()=>eM,w2:()=>Z,wM:()=>eu,xH:()=>ee,xd:()=>z,yx:()=>I,z$:()=>v,z9:()=>eh,zg:()=>eS,zs:()=>$});let a="generated",n="resize",s="visibilitychange",o=100,r=.5,l=1e3,d={x:0,y:0,z:0},c={a:1,b:0,c:0,d:1},u="random",h="mid",p=2,f=2*Math.PI,v=60,g=1,m="true",y="false",b="canvas",x=0,w=2,M=4,z=1,S=1,O=1,R=4,P=1,k=255,T=360,F=100,_=100,E=0,I=0,A=60,D=0,L=.25,V=.75,C=0,$=1,Z=0,B=0,G=1,q=1,H=1,N=1,j=0,K=1,W=0,X=120,Q=0,U=0,J=1e4,Y=0,ee=1,et=0,ei=1,ea=1,en=0,es=0,eo=0,er=-.25,el=1.5,ed=0,ec=1,eu=0,eh=0,ep=1,ef=1,ev=1,eg=500,em=50,ey=0,eb=1,ex=0,ew=1,eM=0,ez=3,eS=6,eO=1,eR=1,eP=0,ek=0,eT=0,eF=0},7927(e,t,i){i.d(t,{IU:()=>r,KG:()=>u,Md:()=>o,Sn:()=>s,VG:()=>p,Wb:()=>f,gF:()=>h,k:()=>d,p0:()=>l,yx:()=>v,z5:()=>c});var a=i(7313),n=i(5563);function s(e,t,i){e.fillStyle=i??"rgba(0,0,0,0)",e.fillRect(a.bo.x,a.bo.y,t.width,t.height)}function o(e,t,i,n){i&&(e.globalAlpha=n,e.drawImage(i,a.bo.x,a.bo.y,t.width,t.height),e.globalAlpha=1)}function r(e,t){e.clearRect(a.bo.x,a.bo.y,t.width,t.height)}function l(e){let{container:t,context:i,particle:n,delta:s,colorStyles:o,radius:r,opacity:l,transform:f}=e,v=n.getPosition(),g=n.getTransformData(f);i.setTransform(g.a,g.b,g.c,g.d,v.x,v.y),o.fill&&(i.fillStyle=o.fill);let m=n.strokeWidth??a.Dv;i.lineWidth=m,o.stroke&&(i.strokeStyle=o.stroke);let y={context:i,particle:n,radius:r,opacity:l,delta:s,pixelRatio:t.retina.pixelRatio,fill:n.shapeFill,stroke:m>a.Dv||!n.shapeFill,transformData:g};c(t,y),p(t,y),u(t,y),h(t,y),d(t,y),i.resetTransform()}function d(e,t){let{particle:i}=t;if(!i.effect)return;let a=e.particles.effectDrawers.get(i.effect),n=a?.drawAfter;n&&n(t)}function c(e,t){let{particle:i}=t;if(!i.effect)return;let a=e.particles.effectDrawers.get(i.effect);a?.drawBefore&&a.drawBefore(t)}function u(e,t){let{context:i,particle:a,stroke:n}=t;if(!a.shape)return;let s=e.particles.shapeDrawers.get(a.shape);s&&(i.beginPath(),s.draw(t),a.shapeClose&&i.closePath(),n&&i.stroke(),a.shapeFill&&i.fill())}function h(e,t){let{particle:i}=t;if(!i.shape)return;let a=e.particles.shapeDrawers.get(i.shape);a?.afterDraw&&a.afterDraw(t)}function p(e,t){let{particle:i}=t;if(!i.shape)return;let a=e.particles.shapeDrawers.get(i.shape);a?.beforeDraw&&a.beforeDraw(t)}function f(e,t,i,a){t.drawParticle&&t.drawParticle(e,i,a)}function v(e,t,i){return{h:e.h,s:e.s,l:e.l+(t===n.H.darken?-a.iU:a.iU)*i}}},8150(e,t,i){i.d(t,{b:()=>a});class a{particle;position;constructor(e,t){this.position=e,this.particle=t}}},8405(e,t,i){var a,n;i.d(t,{x:()=>a}),(n=a||(a={})).normal="normal",n.inside="inside",n.outside="outside"},8705(e,t,i){i.d(t,{m:()=>n});var a=i(9739);class n{enable;zIndex;constructor(){this.enable=!0,this.zIndex=0}load(e){(0,a.kZ)(e)||(void 0!==e.enable&&(this.enable=e.enable),void 0!==e.zIndex&&(this.zIndex=e.zIndex))}}},8963(e,t,i){i.d(t,{B:()=>n,t:()=>s});let a={debug:console.debug,error:(e,t)=>{console.error(`tsParticles - Error - ${e}`,t)},info:console.info,log:console.log,verbose:console.log,warning:console.warn};function n(e){a.debug=e.debug,a.error=e.error,a.info=e.info,a.log=e.log,a.verbose=e.verbose,a.warning=e.warning}function s(){return a}},8997(e,t,i){i.d(t,{o:()=>o});var a=i(4860),n=i(4575),s=i(9739);class o extends a.AI{animation;constructor(){super(),this.animation=new n.q,this.value=3}load(e){if(super.load(e),(0,s.kZ)(e))return;let t=e.animation;void 0!==t&&this.animation.load(t)}}},9114(e,t,i){i.d(t,{h:()=>s});var a=i(9739),n=i(1913);class s{offset;value;constructor(){this.offset=0,this.value=90}load(e){(0,a.kZ)(e)||(void 0!==e.offset&&(this.offset=(0,n.DT)(e.offset)),void 0!==e.value&&(this.value=(0,n.DT)(e.value)))}}},9197(e,t,i){i.d(t,{A:()=>s});var a=i(5398),n=i(9739);class s{mode;value;constructor(){this.mode=a.d.delete,this.value=0}load(e){(0,n.kZ)(e)||(void 0!==e.mode&&(this.mode=e.mode),void 0!==e.value&&(this.value=e.value))}}},9355(e,t,i){var a,n;i.d(t,{g:()=>a}),(n=a||(a={})).auto="auto",n.increase="increase",n.decrease="decrease",n.random="random"},9739(e,t,i){function a(e){return"boolean"==typeof e}function n(e){return"string"==typeof e}function s(e){return"number"==typeof e}function o(e){return"function"==typeof e}function r(e){return"object"==typeof e&&null!==e}function l(e){return Array.isArray(e)}function d(e){return null==e}i.d(t,{Et:()=>s,Gv:()=>r,Kg:()=>n,Lm:()=>a,Tn:()=>o,cy:()=>l,kZ:()=>d})},9946(e,t,i){i.d(t,{z:()=>n});var a=i(9739);class n{delay;enable;constructor(){this.delay=.5,this.enable=!0}load(e){(0,a.kZ)(e)||(void 0!==e.delay&&(this.delay=e.delay),void 0!==e.enable&&(this.enable=e.enable))}}}},c={};function u(e){var t=c[e];if(void 0!==t)return t.exports;var i=c[e]={exports:{}};return d[e](i,i.exports,u),i.exports}u.m=d,u.d=(e,t)=>{for(var i in t)u.o(t,i)&&!u.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},u.f={},u.e=e=>Promise.all(Object.keys(u.f).reduce((t,i)=>(u.f[i](e,t),t),[])),u.u=e=>""+e+".min.js",u.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}(),u.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),h={},u.l=(e,t,i,a)=>{if(h[e])return void h[e].push(t);if(void 0!==i)for(var n,s,o=document.getElementsByTagName("script"),r=0;r<o.length;r++){var l=o[r];if(l.getAttribute("src")==e||l.getAttribute("data-webpack")=="@tsparticles/engine:"+i){n=l;break}}n||(s=!0,(n=document.createElement("script")).charset="utf-8",u.nc&&n.setAttribute("nonce",u.nc),n.setAttribute("data-webpack","@tsparticles/engine:"+i),n.src=e),h[e]=[t];var d=(t,i)=>{n.onerror=n.onload=null,clearTimeout(c);var a=h[e];if(delete h[e],n.parentNode&&n.parentNode.removeChild(n),a&&a.forEach(e=>e(i)),t)return t(i)},c=setTimeout(d.bind(null,void 0,{type:"timeout",target:n}),12e4);n.onerror=d.bind(null,n.onerror),n.onload=d.bind(null,n.onload),s&&document.head.appendChild(n)},u.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},u.g.importScripts&&(p=u.g.location+"");var h,p,f=u.g.document;if(!p&&f&&(f.currentScript&&"SCRIPT"===f.currentScript.tagName.toUpperCase()&&(p=f.currentScript.src),!p)){var v=f.getElementsByTagName("script");if(v.length)for(var g=v.length-1;g>-1&&(!p||!/^http(s?):/.test(p));)p=v[g--].src}if(!p)throw Error("Automatic publicPath is not supported in this browser");u.p=p=p.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),e={397:0},u.f.j=(t,i)=>{var a=u.o(e,t)?e[t]:void 0;if(0!==a)if(a)i.push(a[2]);else{var n=new Promise((i,n)=>a=e[t]=[i,n]);i.push(a[2]=n);var s=u.p+u.u(t),o=Error();u.l(s,i=>{if(u.o(e,t)&&(0!==(a=e[t])&&(e[t]=void 0),a)){var n=i&&("load"===i.type?"missing":i.type),s=i&&i.target&&i.target.src;o.message="Loading chunk "+t+` failed.
2
+ (`+n+": "+s+")",o.name="ChunkLoadError",o.type=n,o.request=s,a[1](o)}},"chunk-"+t,t)}},t=(t,i)=>{var a,n,[s,o,r]=i,l=0;if(s.some(t=>0!==e[t])){for(a in o)u.o(o,a)&&(u.m[a]=o[a]);r&&r(u)}for(t&&t(i);l<s.length;l++)n=s[l],u.o(e,n)&&e[n]&&e[n][0](),e[n]=0},(i=this.webpackChunk_tsparticles_engine=this.webpackChunk_tsparticles_engine||[]).forEach(t.bind(null,0)),i.push=t.bind(null,i.push.bind(i));var m={};u.r(m),u.d(m,{AlterType:()=>L.H,AnimatableColor:()=>B.A,AnimationMode:()=>E.g,AnimationOptions:()=>G.p,AnimationStatus:()=>Z.H,AnimationValueWithRandom:()=>em.Jm,Background:()=>q.V,BaseRange:()=>k.dg,Circle:()=>k.jl,ColorAnimation:()=>H.e,DestroyType:()=>V.V,EasingType:()=>l,EventType:()=>w.B,FullScreen:()=>N.m,GradientType:()=>r,HslAnimation:()=>j.i,LimitMode:()=>I.d,Move:()=>ee.y,MoveAngle:()=>et.h,MoveAttract:()=>Y.R,MoveCenter:()=>ei.Z,MoveDirection:()=>F.F,MoveGravity:()=>ea.y,MovePath:()=>es.v,Opacity:()=>ec.Y,OpacityAnimation:()=>eu.I,Options:()=>K.J,OptionsColor:()=>W.O,OutMode:()=>A.Y,OutModeDirection:()=>_.v,OutModes:()=>en.j,ParticleOutType:()=>C.x,ParticlesBounce:()=>X.w,ParticlesBounceFactor:()=>Q.F,ParticlesDensity:()=>ed.M,ParticlesNumber:()=>er.N,ParticlesNumberLimit:()=>el.A,ParticlesOptions:()=>U.U,PixelMode:()=>D.q,Point:()=>P.b,RangedAnimationOptions:()=>G.Q,RangedAnimationValueWithRandom:()=>em.AI,Rectangle:()=>k.M_,ResizeEvent:()=>eg.z,RotateDirection:()=>o,Shape:()=>eh.y,Size:()=>ep.o,SizeAnimation:()=>ef.q,Spin:()=>eo.t,StartValueType:()=>$.S,Stroke:()=>J.t,ValueWithRandom:()=>em.PV,Vector:()=>T.M,Vector3d:()=>T.p,ZIndex:()=>ev.P,alterHsl:()=>ey.yx,animate:()=>z.i0,areBoundsInside:()=>b.O2,arrayRandomIndex:()=>b.n0,calcExactPositionOrRandomFromSize:()=>z.Nx,calcExactPositionOrRandomFromSizeRanged:()=>z.qM,calcPositionFromSize:()=>z.eh,calcPositionOrRandomFromSize:()=>z.Mh,calcPositionOrRandomFromSizeRanged:()=>z.l1,calculateBounds:()=>b.AE,cancelAnimation:()=>z.px,canvasFirstIndex:()=>y.Nx,canvasTag:()=>y.RF,circleBounce:()=>b.pE,circleBounceDataFromParticle:()=>b.Tg,clamp:()=>z.qE,clear:()=>ey.IU,clickRadius:()=>y.FS,cloneStyle:()=>b.td,collisionVelocity:()=>z.OW,colorMix:()=>eb.EY,colorToHsl:()=>eb.mK,colorToRgb:()=>eb.qe,countOffset:()=>y.nq,decayOffset:()=>y.WH,deepExtend:()=>b.zw,defaultAlpha:()=>y.aZ,defaultAngle:()=>y.tA,defaultDensityFactor:()=>y.lA,defaultFps:()=>y.z$,defaultFpsLimit:()=>y.i8,defaultLoops:()=>y.hK,defaultOpacity:()=>y.hv,defaultRadius:()=>y.M1,defaultRatio:()=>y.$x,defaultReduceFactor:()=>y.Zp,defaultRemoveQuantity:()=>y.xd,defaultRetryCount:()=>y.rq,defaultRgbMin:()=>y.Fl,defaultTime:()=>y.tR,defaultTransform:()=>y.Ug,defaultTransformValue:()=>y.zs,defaultVelocity:()=>y.jn,degToRad:()=>z.pu,deleteCount:()=>y.LD,double:()=>y.gd,doublePI:()=>y.R1,drawAfterEffect:()=>ey.k,drawBeforeEffect:()=>ey.z5,drawParticle:()=>ey.p0,drawParticlePlugin:()=>ey.Wb,drawShape:()=>ey.KG,drawShapeAfterDraw:()=>ey.gF,drawShapeBeforeDraw:()=>ey.VG,empty:()=>y.Ie,executeOnSingleOrMultiple:()=>b.wJ,findItemFromSingleOrMultiple:()=>b.w3,generatedAttribute:()=>y.eb,generatedFalse:()=>y.X$,generatedTrue:()=>y.ce,getDistance:()=>z.Yf,getDistances:()=>z.vr,getFullScreenStyle:()=>b.hJ,getHslAnimationFromHsl:()=>eb.pz,getHslFromAnimation:()=>eb.O_,getItemMapFromInitializer:()=>b.Ot,getItemsFromInitializer:()=>b.HQ,getLinkColor:()=>eb._h,getLinkRandomColor:()=>eb.PG,getLogger:()=>M.t,getParticleBaseVelocity:()=>z.$m,getParticleDirectionAngle:()=>z.JY,getPosition:()=>b.E9,getRandom:()=>z.G0,getRandomInRange:()=>z.e4,getRandomRgbColor:()=>eb.OH,getRangeMax:()=>z.W9,getRangeMin:()=>z.Sg,getRangeValue:()=>z.VG,getSize:()=>b.YC,getStyleFromHsl:()=>eb.LC,getStyleFromRgb:()=>eb.xx,hMax:()=>y.vS,hMin:()=>y.L1,hPhase:()=>y.U0,half:()=>y.MX,hasMatchMedia:()=>b.q8,hslToRgb:()=>eb.YL,hslaToRgba:()=>eb.ay,identity:()=>y.D_,initParticleNumericAnimationValue:()=>b.Xs,inverseFactorNumerator:()=>y.hB,isArray:()=>ew.cy,isBoolean:()=>ew.Lm,isFunction:()=>ew.Tn,isInArray:()=>b.hn,isNull:()=>ew.kZ,isNumber:()=>ew.Et,isObject:()=>ew.Gv,isPointInside:()=>b.Tj,isString:()=>ew.Kg,itemFromArray:()=>b.Vh,itemFromSingleOrMultiple:()=>b.TA,lFactor:()=>y.iU,lMax:()=>y.$_,lMin:()=>y.vd,lengthOffset:()=>y.K3,loadMinIndex:()=>y.PZ,loadOptions:()=>ex.Z,loadParticlesOptions:()=>ex.y,loadRandomFactor:()=>y.$v,manageListener:()=>b.Kp,manualDefaultPosition:()=>y.td,midColorValue:()=>y.BW,millisecondsToSeconds:()=>y.Xu,minCoordinate:()=>y.TL,minCount:()=>y.wM,minFpsLimit:()=>y.DN,minIndex:()=>y.z9,minLimit:()=>y.ou,minRetries:()=>y.N5,minStrokeWidth:()=>y.Dv,minVelocity:()=>y.GW,minZ:()=>y.X_,minimumLength:()=>y.$O,minimumSize:()=>y.w2,mix:()=>z.jh,none:()=>y.dv,one:()=>y.xH,originPoint:()=>y.bo,paintBase:()=>ey.Sn,paintImage:()=>ey.Md,parseAlpha:()=>z.M3,percentDenominator:()=>y.a5,phaseNumerator:()=>y.BF,posOffset:()=>y.un,qTreeCapacity:()=>y.Kw,quarter:()=>y.$G,randomColorValue:()=>y.mR,randomInRangeValue:()=>z.vE,rangeColorToHsl:()=>eb.R5,rangeColorToRgb:()=>eb.BN,removeDeleteCount:()=>y.JC,removeMinIndex:()=>y.vF,resizeEvent:()=>y.NF,rgbMax:()=>y.oi,rgbToHsl:()=>eb.K6,sMax:()=>y.eu,sMin:()=>y.yx,sNormalizedOffset:()=>y.aE,safeDocument:()=>b.T5,safeIntersectionObserver:()=>b.BR,safeMatchMedia:()=>b.lV,safeMutationObserver:()=>b.tG,setAnimationFunctions:()=>z.AD,setLogger:()=>M.B,setRandom:()=>z.OE,setRangeValue:()=>z.DT,sextuple:()=>y.zg,sizeFactor:()=>y.Rh,squareExp:()=>y.dm,stringToAlpha:()=>eb.zI,stringToRgb:()=>eb.eg,subdivideCount:()=>y.Pg,threeQuarter:()=>y.Rq,touchDelay:()=>y.pH,touchEndLengthOffset:()=>y.KZ,triple:()=>y.Nu,tryCountIncrement:()=>y.Eo,tsParticles:()=>eM,updateAnimation:()=>b.UC,updateColor:()=>eb.Jv,updateColorValue:()=>eb.Ko,visibilityChangeEvent:()=>y.nK,zIndexFactorOffset:()=>y.RV});var y=u(7313),b=u(5107);class x{_listeners;constructor(){this._listeners=new Map}addEventListener(e,t){this.removeEventListener(e,t);let i=this._listeners.get(e);i||(i=[],this._listeners.set(e,i)),i.push(t)}dispatchEvent(e,t){let i=this._listeners.get(e);i?.forEach(e=>{e(t)})}hasEventListener(e){return!!this._listeners.get(e)}removeAllEventListeners(e){e?this._listeners.delete(e):this._listeners=new Map}removeEventListener(e,t){let i=this._listeners.get(e);if(!i)return;let a=i.length,n=i.indexOf(t);n<y.z9||(a===y.LD?this._listeners.delete(e):i.splice(n,y.LD))}}var w=u(299),M=u(8963),z=u(1913);let S="100%";async function O(e){let t=(0,b.TA)(e.url,e.index);if(!t)return e.fallback;let i=await fetch(t);return i.ok?await i.json():((0,M.t)().error(`${i.status.toString()} while retrieving config file`),e.fallback)}class R{colorManagers=new Map;easingFunctions=new Map;effectDrawers=new Map;initializers={effects:new Map,movers:new Map,pathGenerators:new Map,shapes:new Map,updaters:new Map};movers=new Map;pathGenerators=new Map;plugins=[];presets=new Map;shapeDrawers=new Map;updaters=new Map;_allLoadersSet=new Set;_configs=new Map;_domArray=[];_eventDispatcher=new x;_executedSet=new Set;_initialized=!1;_isRunningLoaders=!1;_loadPromises=new Set;get configs(){let e={};for(let[t,i]of this._configs)e[t]=i;return e}get items(){return this._domArray}get version(){return"4.0.0-alpha.14"}addColorManager(e,t){this.colorManagers.set(e,t)}addConfig(e){let t=e.key??e.name??"default";this._configs.set(t,e),this._eventDispatcher.dispatchEvent(w.B.configAdded,{data:{name:t,config:e}})}addEasing(e,t){this.easingFunctions.get(e)||this.easingFunctions.set(e,t)}addEffect(e,t){this.initializers.effects.set(e,t)}addEventListener(e,t){this._eventDispatcher.addEventListener(e,t)}addMover(e,t){this.initializers.movers.set(e,t)}addParticleUpdater(e,t){this.initializers.updaters.set(e,t)}addPathGenerator(e,t){this.initializers.pathGenerators.set(e,t)}addPlugin(e){this.getPlugin(e.id)||this.plugins.push(e)}addPreset(e,t,i=!1){(i||!this.getPreset(e))&&this.presets.set(e,t)}addShape(e,t){for(let i of e)this.initializers.shapes.set(i,t)}checkVersion(e){if(this.version!==e)throw Error(`The tsParticles version is different from the loaded plugins version. Engine version: ${this.version}. Plugin version: ${e}`)}clearPlugins(e){this.effectDrawers.delete(e),this.movers.delete(e),this.shapeDrawers.delete(e),this.updaters.delete(e)}dispatchEvent(e,t){this._eventDispatcher.dispatchEvent(e,t)}getEasing(e){return this.easingFunctions.get(e)??(e=>e)}getEffectDrawers(e,t=!1){return(0,b.Ot)(e,this.effectDrawers,this.initializers.effects,t)}getMovers(e,t=!1){return(0,b.HQ)(e,this.movers,this.initializers.movers,t)}getPathGenerators(e,t=!1){return(0,b.Ot)(e,this.pathGenerators,this.initializers.pathGenerators,t)}getPlugin(e){return this.plugins.find(t=>t.id===e)}getPreset(e){return this.presets.get(e)}async getShapeDrawers(e,t=!1){return(0,b.Ot)(e,this.shapeDrawers,this.initializers.shapes,t)}async getUpdaters(e,t=!1){return(0,b.HQ)(e,this.updaters,this.initializers.updaters,t)}async init(){if(!this._initialized&&!this._isRunningLoaders){this._isRunningLoaders=!0,this._executedSet=new Set,this._allLoadersSet=new Set(this._loadPromises);try{for(let e of this._allLoadersSet)await this._runLoader(e,this._executedSet,this._allLoadersSet)}finally{this._loadPromises.clear(),this._isRunningLoaders=!1,this._initialized=!0}}}item(e){let{items:t}=this,i=t[e];return i?.destroyed?void t.splice(e,y.JC):i}async load(e){var t;let i,a;await this.init();let{Container:n}=await u.e(219).then(u.bind(u,3219)),s=e.id??e.element?.id??`tsparticles${Math.floor((0,z.G0)()*y.$v).toString()}`,{index:o,url:r}=e,l=r?await O({fallback:e.options,url:r,index:o}):e.options,d=(0,b.TA)(l,o),{items:c}=this,h=c.findIndex(e=>e.id.description===s),p=new n(this,s,d);if(h>=y.PZ){let e=this.item(h),t=e?y.xH:y.dv;e&&!e.destroyed&&e.destroy(!1),c.splice(h,t,p)}else c.push(p);let f=(e=>{let t,i=(0,b.T5)();if(e instanceof HTMLCanvasElement||e.tagName.toLowerCase()===y.RF)t=e,t.dataset[y.eb]??=y.X$;else{let a=e.getElementsByTagName(y.RF)[y.Nx];a?(t=a).dataset[y.eb]=y.X$:((t=i.createElement(y.RF)).dataset[y.eb]=y.ce,e.appendChild(t))}return t.style.width||=S,t.style.height||=S,t})((t=e.element,i=(0,b.T5)(),(a=t??i.getElementById(s))||((a=i.createElement("div")).id=s,a.dataset[y.eb]=y.ce,i.body.append(a)),a));return p.canvas.loadCanvas(f),await p.start(),p}loadParticlesOptions(e,t,...i){let a=this.updaters.get(e);a&&a.forEach(e=>e.loadOptions?.(t,...i))}async refresh(e=!0){e&&await Promise.all(this.items.map(e=>e.refresh()))}async register(...e){if(this._initialized)throw Error("Register plugins can only be done before calling tsParticles.load()");for(let t of e)this._isRunningLoaders?await this._runLoader(t,this._executedSet,this._allLoadersSet):this._loadPromises.add(t)}removeEventListener(e,t){this._eventDispatcher.removeEventListener(e,t)}async _runLoader(e,t,i){t.has(e)||(t.add(e),i.add(e),await e(this))}}var P=u(8150),k=u(5668),T=u(2740),F=u(546);(a=o||(o={})).clockwise="clockwise",a.counterClockwise="counter-clockwise",a.random="random";var _=u(7230),E=u(9355),I=u(5398),A=u(5045),D=u(7073),L=u(5563),V=u(6761);(n=r||(r={})).linear="linear",n.radial="radial",n.random="random";var C=u(8405),$=u(2010);(s=l||(l={})).easeInBack="ease-in-back",s.easeInBounce="ease-in-bounce",s.easeInCirc="ease-in-circ",s.easeInCubic="ease-in-cubic",s.easeInElastic="ease-in-elastic",s.easeInExpo="ease-in-expo",s.easeInGaussian="ease-in-gaussian",s.easeInLinear="ease-in-linear",s.easeInQuad="ease-in-quad",s.easeInQuart="ease-in-quart",s.easeInQuint="ease-in-quint",s.easeInSigmoid="ease-in-sigmoid",s.easeInSine="ease-in-sine",s.easeInSmoothstep="ease-in-smoothstep",s.easeOutBack="ease-out-back",s.easeOutBounce="ease-out-bounce",s.easeOutCirc="ease-out-circ",s.easeOutCubic="ease-out-cubic",s.easeOutElastic="ease-out-elastic",s.easeOutExpo="ease-out-expo",s.easeOutGaussian="ease-out-gaussian",s.easeOutLinear="ease-out-linear",s.easeOutQuad="ease-out-quad",s.easeOutQuart="ease-out-quart",s.easeOutQuint="ease-out-quint",s.easeOutSigmoid="ease-out-sigmoid",s.easeOutSine="ease-out-sine",s.easeOutSmoothstep="ease-out-smoothstep",s.easeInOutBack="ease-in-out-back",s.easeInOutBounce="ease-in-out-bounce",s.easeInOutCirc="ease-in-out-circ",s.easeInOutCubic="ease-in-out-cubic",s.easeInOutElastic="ease-in-out-elastic",s.easeInOutExpo="ease-in-out-expo",s.easeInOutGaussian="ease-in-out-gaussian",s.easeInOutLinear="ease-in-out-linear",s.easeInOutQuad="ease-in-out-quad",s.easeInOutQuart="ease-in-out-quart",s.easeInOutQuint="ease-in-out-quint",s.easeInOutSigmoid="ease-in-out-sigmoid",s.easeInOutSine="ease-in-out-sine",s.easeInOutSmoothstep="ease-in-out-smoothstep";var Z=u(7205),B=u(2685),G=u(3996),q=u(1139),H=u(5127),N=u(8705),j=u(1803),K=u(6996),W=u(5633),X=u(6408),Q=u(4939),U=u(5953),J=u(4508),Y=u(6156),ee=u(5373),et=u(9114),ei=u(2268),ea=u(1695),en=u(816),es=u(884),eo=u(1412),er=u(6556),el=u(9197),ed=u(3801),ec=u(1789),eu=u(4615),eh=u(2057),ep=u(8997),ef=u(4575),ev=u(4975),eg=u(9946),em=u(4860),ey=u(7927),eb=u(1964),ex=u(2679),ew=u(9739);let eM=new R;return globalThis.tsParticles=eM,m})());
@@ -1,6 +1,5 @@
1
1
  import type { Container } from "./Container.js";
2
2
  import type { Engine } from "./Engine.js";
3
- import type { IContainerPlugin } from "./Interfaces/IContainerPlugin.js";
4
3
  import type { IDelta } from "./Interfaces/IDelta.js";
5
4
  import type { IDimension } from "./Interfaces/IDimension.js";
6
5
  import type { Particle } from "./Particle.js";
@@ -8,8 +7,18 @@ export declare class Canvas {
8
7
  private readonly container;
9
8
  element?: HTMLCanvasElement;
10
9
  readonly size: IDimension;
10
+ private _canvasClearPlugins;
11
+ private _canvasPaintPlugins;
12
+ private _canvasSettings?;
13
+ private _clearDrawPlugins;
11
14
  private _colorPlugins;
12
15
  private _context;
16
+ private _drawParticlePlugins;
17
+ private _drawParticlesCleanupPlugins;
18
+ private _drawParticlesSetupPlugins;
19
+ private _drawPlugins;
20
+ private _drawSettingsCleanupPlugins;
21
+ private _drawSettingsSetupPlugins;
13
22
  private readonly _engine;
14
23
  private _generated;
15
24
  private _mutationObserver?;
@@ -18,18 +27,20 @@ export declare class Canvas {
18
27
  private _postDrawUpdaters;
19
28
  private _preDrawUpdaters;
20
29
  private _resizePlugins;
30
+ private readonly _reusableColorStyles;
31
+ private readonly _reusablePluginColors;
32
+ private readonly _reusableTransform;
21
33
  private readonly _standardSize;
22
34
  constructor(container: Container, engine: Engine);
35
+ get settings(): CanvasRenderingContext2DSettings | undefined;
23
36
  private get _fullScreen();
24
37
  canvasClear(): void;
25
38
  clear(): void;
26
- clearDrawPlugin(plugin: IContainerPlugin, delta: IDelta): void;
27
39
  destroy(): void;
28
40
  draw<T>(cb: (context: CanvasRenderingContext2D) => T): T | undefined;
29
41
  drawParticle(particle: Particle, delta: IDelta): void;
30
- drawParticlePlugin(plugin: IContainerPlugin, particle: Particle, delta: IDelta): void;
42
+ drawParticlePlugins(particle: Particle, delta: IDelta): void;
31
43
  drawParticles(delta: IDelta): void;
32
- drawPlugin(plugin: IContainerPlugin, delta: IDelta): void;
33
44
  init(): void;
34
45
  initBackground(): void;
35
46
  initPlugins(): void;
@@ -1,65 +1,51 @@
1
1
  import { Canvas } from "./Canvas.js";
2
2
  import type { Engine } from "./Engine.js";
3
- import type { IContainerInteractivity } from "./Interfaces/IContainerInteractivity.js";
4
3
  import type { IContainerPlugin } from "./Interfaces/IContainerPlugin.js";
5
- import type { IEffectDrawer } from "./Interfaces/IEffectDrawer.js";
6
- import type { IMovePathGenerator } from "./Interfaces/IMovePathGenerator.js";
7
- import type { IShapeDrawer } from "./Interfaces/IShapeDrawer.js";
8
4
  import type { ISourceOptions } from "../Types/ISourceOptions.js";
9
5
  import { Options } from "../Options/Classes/Options.js";
10
- import type { Particle } from "./Particle.js";
11
6
  import { Particles } from "./Particles.js";
12
7
  import { Retina } from "./Retina.js";
13
8
  export declare class Container {
14
9
  actualOptions: Options;
15
10
  readonly canvas: Canvas;
16
11
  destroyed: boolean;
17
- readonly effectDrawers: Map<string, IEffectDrawer<Particle>>;
18
12
  fpsLimit: number;
19
13
  hdr: boolean;
20
14
  readonly id: symbol;
21
- interactivity: IContainerInteractivity;
22
15
  pageHidden: boolean;
16
+ readonly particleCreatedPlugins: IContainerPlugin[];
17
+ readonly particleDestroyedPlugins: IContainerPlugin[];
18
+ readonly particlePositionPlugins: IContainerPlugin[];
23
19
  readonly particles: Particles;
24
- readonly pathGenerators: Map<string, IMovePathGenerator>;
25
- readonly plugins: Map<string, IContainerPlugin>;
20
+ readonly plugins: IContainerPlugin[];
26
21
  readonly retina: Retina;
27
- readonly shapeDrawers: Map<string, IShapeDrawer<Particle>>;
28
22
  started: boolean;
29
23
  zLayers: number;
30
- private readonly _clickHandlers;
31
- private _currentTheme?;
32
24
  private _delay;
33
25
  private _delayTimeout?;
26
+ private readonly _delta;
34
27
  private _drawAnimationFrame?;
35
28
  private _duration;
36
29
  private readonly _engine;
37
30
  private readonly _eventListeners;
38
31
  private _firstStart;
39
32
  private _initialSourceOptions;
40
- private readonly _intersectionObserver;
41
33
  private _lastFrameTime?;
42
34
  private _lifeTime;
43
35
  private _options;
44
36
  private _paused;
45
- private _responsiveMaxWidth?;
46
37
  private _smooth;
47
38
  private _sourceOptions;
48
39
  constructor(engine: Engine, id: string, sourceOptions?: ISourceOptions);
49
40
  get animationStatus(): boolean;
50
41
  get options(): Options;
51
42
  get sourceOptions(): ISourceOptions | undefined;
52
- addClickHandler(callback: (evt: Event, particles?: Particle[]) => void): void;
53
43
  addLifeTime(value: number): void;
54
- addPath(key: string, generator: IMovePathGenerator, override?: boolean): boolean;
55
44
  alive(): boolean;
56
- clearClickHandlers(): void;
57
45
  destroy(remove?: boolean): void;
58
46
  draw(force: boolean): void;
59
47
  export(type: string, options?: Record<string, unknown>): Promise<Blob | undefined>;
60
- handleClickMode(mode: string): void;
61
48
  init(): Promise<void>;
62
- loadTheme(name?: string): Promise<void>;
63
49
  pause(): void;
64
50
  play(force?: boolean): void;
65
51
  refresh(): Promise<void>;
@@ -67,6 +53,5 @@ export declare class Container {
67
53
  start(): Promise<void>;
68
54
  stop(): void;
69
55
  updateActualOptions(): boolean;
70
- private readonly _intersectionManager;
71
56
  private readonly _nextFrame;
72
57
  }
@@ -1,12 +1,11 @@
1
1
  import type { EasingType, EasingTypeAlt } from "../Enums/Types/EasingType.js";
2
+ import type { EffectInitializer, Initializers, MoverInitializer, PathGeneratorInitializer, ShapeInitializer, UpdaterInitializer } from "../Types/EngineInitializers.js";
2
3
  import type { Container } from "./Container.js";
3
4
  import type { CustomEventArgs } from "../Types/CustomEventArgs.js";
4
5
  import type { CustomEventListener } from "../Types/CustomEventListener.js";
5
6
  import type { EasingFunction } from "../Types/EasingFunction.js";
6
7
  import type { IColorManager } from "./Interfaces/IColorManager.js";
7
- import type { IContainerPlugin } from "./Interfaces/IContainerPlugin.js";
8
8
  import type { IEffectDrawer } from "./Interfaces/IEffectDrawer.js";
9
- import type { IInteractor } from "./Interfaces/IInteractor.js";
10
9
  import type { ILoadParams } from "./Interfaces/ILoadParams.js";
11
10
  import type { IMovePathGenerator } from "./Interfaces/IMovePathGenerator.js";
12
11
  import type { IParticleMover } from "./Interfaces/IParticleMover.js";
@@ -15,17 +14,11 @@ import type { IParticlesOptions } from "../Options/Interfaces/Particles/IParticl
15
14
  import type { IPlugin } from "./Interfaces/IPlugin.js";
16
15
  import type { IShapeDrawer } from "./Interfaces/IShapeDrawer.js";
17
16
  import type { ISourceOptions } from "../Types/ISourceOptions.js";
18
- import type { Options } from "../Options/Classes/Options.js";
19
- import type { Particle } from "./Particle.js";
20
17
  import type { ParticlesOptions } from "../Options/Classes/Particles/ParticlesOptions.js";
21
18
  import type { RecursivePartial } from "../Types/RecursivePartial.js";
22
19
  declare global {
23
20
  var tsParticles: Engine;
24
21
  }
25
- type GenericInitializer<T> = (container: Container) => Promise<T>;
26
- type InteractorInitializer = GenericInitializer<IInteractor>;
27
- type MoverInitializer = GenericInitializer<IParticleMover>;
28
- type UpdaterInitializer = GenericInitializer<IParticleUpdater>;
29
22
  type AsyncLoadPluginFunction = (engine: Engine) => Promise<void>;
30
23
  type SyncLoadPluginFunction = (engine: Engine) => void;
31
24
  type AsyncLoadPluginNoEngine = () => Promise<void>;
@@ -34,61 +27,54 @@ type LoadPluginFunction = AsyncLoadPluginFunction | SyncLoadPluginFunction | Asy
34
27
  export declare class Engine {
35
28
  readonly colorManagers: Map<string, IColorManager>;
36
29
  readonly easingFunctions: Map<EasingTypeAlt | EasingType, EasingFunction>;
37
- readonly effectDrawers: Map<string, IEffectDrawer<Particle>>;
38
- readonly interactors: Map<Container, IInteractor<Particle>[]>;
30
+ readonly effectDrawers: Map<Container, Map<string, IEffectDrawer<import("./Particle.js").Particle>>>;
31
+ readonly initializers: Initializers;
39
32
  readonly movers: Map<Container, IParticleMover[]>;
40
- readonly pathGenerators: Map<string, IMovePathGenerator>;
33
+ readonly pathGenerators: Map<Container, Map<string, IMovePathGenerator>>;
41
34
  readonly plugins: IPlugin[];
42
35
  readonly presets: Map<string, RecursivePartial<import("../export-types.js").IOptions>>;
43
- readonly shapeDrawers: Map<string, IShapeDrawer<Particle>>;
36
+ readonly shapeDrawers: Map<Container, Map<string, IShapeDrawer<import("./Particle.js").Particle>>>;
44
37
  readonly updaters: Map<Container, IParticleUpdater[]>;
38
+ private _allLoadersSet;
45
39
  private readonly _configs;
46
40
  private readonly _domArray;
47
41
  private readonly _eventDispatcher;
42
+ private _executedSet;
48
43
  private _initialized;
49
- private readonly _initializers;
44
+ private _isRunningLoaders;
50
45
  private readonly _loadPromises;
51
- constructor();
52
46
  get configs(): Record<string, ISourceOptions>;
53
47
  get items(): Container[];
54
48
  get version(): string;
55
- addColorManager(manager: IColorManager): void;
49
+ addColorManager(name: string, manager: IColorManager): void;
56
50
  addConfig(config: ISourceOptions): void;
57
51
  addEasing(name: EasingType | EasingTypeAlt, easing: EasingFunction): void;
58
- addEffect(effect: string, drawer: IEffectDrawer): void;
52
+ addEffect(effect: string, drawer: EffectInitializer): void;
59
53
  addEventListener(type: string, listener: CustomEventListener): void;
60
- addInteractor(name: string, interactorInitializer: InteractorInitializer): void;
61
54
  addMover(name: string, moverInitializer: MoverInitializer): void;
62
55
  addParticleUpdater(name: string, updaterInitializer: UpdaterInitializer): void;
63
- addPathGenerator(name: string, generator: IMovePathGenerator): void;
56
+ addPathGenerator(name: string, generator: PathGeneratorInitializer): void;
64
57
  addPlugin(plugin: IPlugin): void;
65
58
  addPreset(preset: string, options: Readonly<ISourceOptions>, override?: boolean): void;
66
- addShape(drawer: IShapeDrawer): void;
59
+ addShape(shapes: string[], drawer: ShapeInitializer): void;
67
60
  checkVersion(pluginVersion: string): void;
68
61
  clearPlugins(container: Container): void;
69
- dispatchEvent(type: string, args: CustomEventArgs): void;
70
- dom(): Container[];
71
- domItem(index: number): Container | undefined;
72
- getAvailablePlugins(container: Container): Promise<Map<string, IContainerPlugin>>;
62
+ dispatchEvent(type: string, args?: CustomEventArgs): void;
73
63
  getEasing(name: EasingType | EasingTypeAlt): EasingFunction;
74
- getEffectDrawer(type: string): IEffectDrawer | undefined;
75
- getInteractors(container: Container, force?: boolean): Promise<IInteractor[]>;
64
+ getEffectDrawers(container: Container, force?: boolean): Promise<Map<string, IEffectDrawer>>;
76
65
  getMovers(container: Container, force?: boolean): Promise<IParticleMover[]>;
77
- getPathGenerator(type: string): IMovePathGenerator | undefined;
66
+ getPathGenerators(container: Container, force?: boolean): Promise<Map<string, IMovePathGenerator>>;
78
67
  getPlugin(plugin: string): IPlugin | undefined;
79
68
  getPreset(preset: string): ISourceOptions | undefined;
80
- getShapeDrawer(type: string): IShapeDrawer | undefined;
81
- getSupportedEffects(): IterableIterator<string>;
82
- getSupportedShapes(): IterableIterator<string>;
69
+ getShapeDrawers(container: Container, force?: boolean): Promise<Map<string, IShapeDrawer>>;
83
70
  getUpdaters(container: Container, force?: boolean): Promise<IParticleUpdater[]>;
84
71
  init(): Promise<void>;
85
72
  item(index: number): Container | undefined;
86
73
  load(params: ILoadParams): Promise<Container | undefined>;
87
- loadOptions(options: Options, sourceOptions: ISourceOptions): void;
88
74
  loadParticlesOptions(container: Container, options: ParticlesOptions, ...sourceOptions: (RecursivePartial<IParticlesOptions> | undefined)[]): void;
89
75
  refresh(refresh?: boolean): Promise<void>;
90
- register(...loadPromises: LoadPluginFunction[]): void;
76
+ register(...loaders: LoadPluginFunction[]): Promise<void>;
91
77
  removeEventListener(type: string, listener: CustomEventListener): void;
92
- setOnClickHandler(callback: (e: Event, particles?: Particle[]) => void): void;
78
+ private _runLoader;
93
79
  }
94
80
  export {};
@@ -1,6 +1,5 @@
1
1
  import type { IColor, IRangeColor, IRgb, IRgba } from "./Colors.js";
2
2
  export interface IColorManager {
3
- readonly key: string;
4
3
  accepts(input: string): boolean;
5
4
  handleColor(color: IColor): IRgb | undefined;
6
5
  handleRangeColor(color: IRangeColor): IRgb | undefined;
@@ -10,25 +10,35 @@ export interface IContainerPlugin {
10
10
  checkParticlePosition?: (particle: Particle, position: ICoordinates, tryCount: number) => boolean;
11
11
  clearDraw?: (context: CanvasRenderingContext2D, delta: IDelta) => void;
12
12
  clickPositionValid?: (position: ICoordinates) => boolean;
13
+ destroy?: () => void;
13
14
  draw?: (context: CanvasRenderingContext2D, delta: IDelta) => void;
14
15
  drawParticle?: (context: CanvasRenderingContext2D, particle: Particle, delta: IDelta) => void;
16
+ drawParticleCleanup?: (context: CanvasRenderingContext2D, particle: Particle, delta: IDelta) => void;
17
+ drawParticleSetup?: (context: CanvasRenderingContext2D, particle: Particle, delta: IDelta) => void;
18
+ drawSettingsCleanup?: (context: CanvasRenderingContext2D, delta: IDelta) => void;
19
+ drawSettingsSetup?: (context: CanvasRenderingContext2D, delta: IDelta) => void;
15
20
  export?: (type: string, data: Record<string, unknown>) => Promise<ExportResult>;
16
- handleClickMode?: (mode: string) => void;
17
21
  init?: () => Promise<void>;
18
22
  particleBounce?: (particle: Particle, delta: IDelta, direction: OutModeDirection) => boolean;
19
23
  particleCreated?: (particle: Particle) => void;
20
24
  particleDestroyed?: (particle: Particle, override?: boolean) => void;
21
25
  particleFillColor?: (particle: Particle) => string | IOptionsColor | undefined;
22
26
  particlePosition?: (position?: ICoordinates, particle?: Particle) => ICoordinates | undefined;
27
+ particleReset?: (particle: Particle) => void;
23
28
  particleStrokeColor?: (particle: Particle) => string | IOptionsColor | undefined;
24
29
  particleUpdate?: (particle: Particle, delta: IDelta) => void;
30
+ particlesDensityCount?: () => number;
25
31
  particlesInitialization?: () => boolean;
26
32
  particlesSetup?: () => void;
27
33
  pause?: () => void;
28
34
  play?: () => void;
29
- reset?: () => void;
35
+ postParticleUpdate?: (particle: Particle, delta: IDelta) => void;
36
+ postUpdate?: (delta: IDelta) => void;
37
+ preInit?: () => Promise<void>;
38
+ redrawInit?: () => Promise<void>;
30
39
  resize?: () => void;
31
40
  start?: () => Promise<void>;
32
41
  stop?: () => void;
33
42
  update?: (delta: IDelta) => void;
43
+ updateActualOptions?: () => boolean;
34
44
  }
@@ -11,5 +11,5 @@ export interface IDrawParticleParams {
11
11
  opacity: number;
12
12
  particle: Particle;
13
13
  radius: number;
14
- transform: IParticleTransformValues;
14
+ transform: Partial<IParticleTransformValues>;
15
15
  }
@@ -1,10 +1,9 @@
1
- import type { Container } from "../Container.js";
2
1
  import type { IDelta } from "./IDelta.js";
3
2
  import type { Particle } from "../Particle.js";
4
3
  import type { Vector } from "../Utils/Vectors.js";
5
4
  export interface IMovePathGenerator {
6
5
  generate: (particle: Particle, delta: IDelta) => Vector;
7
- init: (container: Container) => void;
6
+ init: () => void;
8
7
  reset: (particle: Particle) => void;
9
8
  update: () => void;
10
9
  }
@@ -0,0 +1,4 @@
1
+ export interface IParticleOpacityData {
2
+ opacity: number;
3
+ strokeOpacity: number;
4
+ }
@@ -0,0 +1,4 @@
1
+ export interface IParticleRotateData {
2
+ cos: number;
3
+ sin: number;
4
+ }
@@ -1,6 +1,6 @@
1
1
  export interface IParticleTransformValues {
2
- a?: number;
3
- b?: number;
4
- c?: number;
5
- d?: number;
2
+ a: number;
3
+ b: number;
4
+ c: number;
5
+ d: number;
6
6
  }
@@ -9,7 +9,7 @@ export interface IParticleUpdater {
9
9
  afterDraw?: (particle: Particle) => void;
10
10
  beforeDraw?: (particle: Particle) => void;
11
11
  getColorStyles?: (particle: Particle, context: CanvasRenderingContext2D, radius: number, opacity: number) => IParticleColorStyle;
12
- getTransformValues?: (particle: Particle) => IParticleTransformValues;
12
+ getTransformValues?: (particle: Particle) => Partial<IParticleTransformValues>;
13
13
  loadOptions?: (options: ParticlesOptions, ...sources: (RecursivePartial<IParticlesOptions> | undefined)[]) => void;
14
14
  particleDestroyed?: (particle: Particle, override?: boolean) => void;
15
15
  reset?: (particle: Particle) => void;