@tsparticles/fireworks 3.2.2 → 3.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (136) hide show
  1. package/browser/fireworks.js +22 -12
  2. package/cjs/fireworks.js +29 -42
  3. package/esm/fireworks.js +22 -12
  4. package/package.json +10 -10
  5. package/report.html +1 -1
  6. package/tsparticles.fireworks.bundle.js +944 -302
  7. package/tsparticles.fireworks.bundle.min.js +1 -1
  8. package/tsparticles.fireworks.bundle.min.js.LICENSE.txt +1 -1
  9. package/tsparticles.fireworks.js +6 -36
  10. package/tsparticles.fireworks.min.js +1 -1
  11. package/tsparticles.fireworks.min.js.LICENSE.txt +1 -1
  12. package/types/fireworks.d.ts +6 -1
  13. package/umd/fireworks.js +30 -44
  14. package/108.min.js +0 -2
  15. package/108.min.js.LICENSE.txt +0 -1
  16. package/120.min.js +0 -2
  17. package/120.min.js.LICENSE.txt +0 -1
  18. package/126.min.js +0 -2
  19. package/126.min.js.LICENSE.txt +0 -1
  20. package/132.min.js +0 -2
  21. package/132.min.js.LICENSE.txt +0 -1
  22. package/141.min.js +0 -2
  23. package/141.min.js.LICENSE.txt +0 -1
  24. package/163.min.js +0 -2
  25. package/163.min.js.LICENSE.txt +0 -1
  26. package/173.min.js +0 -2
  27. package/173.min.js.LICENSE.txt +0 -1
  28. package/196.min.js +0 -2
  29. package/196.min.js.LICENSE.txt +0 -1
  30. package/245.min.js +0 -2
  31. package/245.min.js.LICENSE.txt +0 -1
  32. package/274.min.js +0 -2
  33. package/274.min.js.LICENSE.txt +0 -1
  34. package/30.min.js +0 -2
  35. package/30.min.js.LICENSE.txt +0 -1
  36. package/308.min.js +0 -2
  37. package/308.min.js.LICENSE.txt +0 -1
  38. package/31.min.js +0 -2
  39. package/31.min.js.LICENSE.txt +0 -1
  40. package/328.min.js +0 -2
  41. package/328.min.js.LICENSE.txt +0 -1
  42. package/329.min.js +0 -2
  43. package/329.min.js.LICENSE.txt +0 -1
  44. package/376.min.js +0 -2
  45. package/376.min.js.LICENSE.txt +0 -1
  46. package/468.min.js +0 -2
  47. package/468.min.js.LICENSE.txt +0 -1
  48. package/49.min.js +0 -2
  49. package/49.min.js.LICENSE.txt +0 -1
  50. package/547.min.js +0 -2
  51. package/547.min.js.LICENSE.txt +0 -1
  52. package/560.min.js +0 -2
  53. package/560.min.js.LICENSE.txt +0 -1
  54. package/580.min.js +0 -2
  55. package/580.min.js.LICENSE.txt +0 -1
  56. package/610.min.js +0 -2
  57. package/610.min.js.LICENSE.txt +0 -1
  58. package/647.min.js +0 -2
  59. package/647.min.js.LICENSE.txt +0 -1
  60. package/648.min.js +0 -2
  61. package/648.min.js.LICENSE.txt +0 -1
  62. package/720.min.js +0 -2
  63. package/720.min.js.LICENSE.txt +0 -1
  64. package/725.min.js +0 -2
  65. package/725.min.js.LICENSE.txt +0 -1
  66. package/749.min.js +0 -2
  67. package/749.min.js.LICENSE.txt +0 -1
  68. package/757.min.js +0 -2
  69. package/757.min.js.LICENSE.txt +0 -1
  70. package/81.min.js +0 -2
  71. package/81.min.js.LICENSE.txt +0 -1
  72. package/835.min.js +0 -2
  73. package/835.min.js.LICENSE.txt +0 -1
  74. package/837.min.js +0 -2
  75. package/837.min.js.LICENSE.txt +0 -1
  76. package/859.min.js +0 -2
  77. package/859.min.js.LICENSE.txt +0 -1
  78. package/866.min.js +0 -2
  79. package/866.min.js.LICENSE.txt +0 -1
  80. package/88.min.js +0 -2
  81. package/88.min.js.LICENSE.txt +0 -1
  82. package/886.min.js +0 -2
  83. package/886.min.js.LICENSE.txt +0 -1
  84. package/921.min.js +0 -2
  85. package/921.min.js.LICENSE.txt +0 -1
  86. package/929.min.js +0 -2
  87. package/929.min.js.LICENSE.txt +0 -1
  88. package/937.min.js +0 -2
  89. package/937.min.js.LICENSE.txt +0 -1
  90. package/952.min.js +0 -2
  91. package/952.min.js.LICENSE.txt +0 -1
  92. package/973.min.js +0 -2
  93. package/973.min.js.LICENSE.txt +0 -1
  94. package/994.min.js +0 -2
  95. package/994.min.js.LICENSE.txt +0 -1
  96. package/basic_dist_browser_index_js.js +0 -30
  97. package/effects_trail_dist_browser_TrailDrawer_js.js +0 -30
  98. package/effects_trail_dist_browser_index_js.js +0 -30
  99. package/engine_dist_browser_Core_Container_js.js +0 -90
  100. package/engine_dist_browser_Core_Particle_js.js +0 -30
  101. package/move_base_dist_browser_BaseMover_js.js +0 -30
  102. package/move_base_dist_browser_Utils_js.js +0 -30
  103. package/move_base_dist_browser_index_js.js +0 -30
  104. package/plugins_emittersShapes_square_dist_browser_EmittersSquareShapeGenerator_js.js +0 -120
  105. package/plugins_emittersShapes_square_dist_browser_index_js.js +0 -30
  106. package/plugins_emitters_dist_browser_EmitterInstance_js.js +0 -30
  107. package/plugins_emitters_dist_browser_EmittersPlugin_js.js +0 -90
  108. package/plugins_emitters_dist_browser_Emitters_js.js +0 -30
  109. package/plugins_emitters_dist_browser_ShapeManager_js.js +0 -30
  110. package/plugins_emitters_dist_browser_index_js.js +0 -100
  111. package/plugins_sounds_dist_browser_SoundsInstance_js.js +0 -30
  112. package/plugins_sounds_dist_browser_SoundsPlugin_js.js +0 -120
  113. package/plugins_sounds_dist_browser_index_js.js +0 -30
  114. package/shapes_circle_dist_browser_CircleDrawer_js.js +0 -30
  115. package/shapes_circle_dist_browser_Utils_js.js +0 -30
  116. package/shapes_circle_dist_browser_index_js.js +0 -30
  117. package/updaters_color_dist_browser_ColorUpdater_js.js +0 -30
  118. package/updaters_color_dist_browser_index_js.js +0 -30
  119. package/updaters_destroy_dist_browser_DestroyUpdater_js.js +0 -90
  120. package/updaters_destroy_dist_browser_index_js.js +0 -30
  121. package/updaters_life_dist_browser_LifeUpdater_js.js +0 -60
  122. package/updaters_life_dist_browser_Utils_js.js +0 -30
  123. package/updaters_life_dist_browser_index_js.js +0 -30
  124. package/updaters_opacity_dist_browser_OpacityUpdater_js.js +0 -30
  125. package/updaters_opacity_dist_browser_index_js.js +0 -30
  126. package/updaters_outModes_dist_browser_BounceOutMode_js.js +0 -30
  127. package/updaters_outModes_dist_browser_DestroyOutMode_js.js +0 -30
  128. package/updaters_outModes_dist_browser_NoneOutMode_js.js +0 -30
  129. package/updaters_outModes_dist_browser_OutOfCanvasUpdater_js.js +0 -30
  130. package/updaters_outModes_dist_browser_OutOutMode_js.js +0 -30
  131. package/updaters_outModes_dist_browser_Utils_js.js +0 -30
  132. package/updaters_outModes_dist_browser_index_js.js +0 -30
  133. package/updaters_rotate_dist_browser_RotateUpdater_js.js +0 -50
  134. package/updaters_rotate_dist_browser_index_js.js +0 -30
  135. package/updaters_size_dist_browser_SizeUpdater_js.js +0 -30
  136. package/updaters_size_dist_browser_index_js.js +0 -30
package/560.min.js DELETED
@@ -1,2 +0,0 @@
1
- /*! For license information please see 560.min.js.LICENSE.txt */
2
- (this.webpackChunk_tsparticles_fireworks=this.webpackChunk_tsparticles_fireworks||[]).push([[560],{560:(e,t,r)=>{r.d(t,{ShapeManager:()=>s});const a=new Map;class s{constructor(e){this._engine=e}addShapeGenerator(e,t){this.getShapeGenerator(e)||a.set(e,t)}getShapeGenerator(e){return a.get(e)}getSupportedShapeGenerators(){return a.keys()}}}}]);
@@ -1 +0,0 @@
1
- /*! tsParticles Fireworks v3.2.2 by Matteo Bruni */
package/580.min.js DELETED
@@ -1,2 +0,0 @@
1
- /*! For license information please see 580.min.js.LICENSE.txt */
2
- (this.webpackChunk_tsparticles_fireworks=this.webpackChunk_tsparticles_fireworks||[]).push([[580],{2580:(i,e,t)=>{t.d(e,{updateLife:()=>o});var n=t(3624);const a=0,r=-1,s=0,u=0;function o(i,e,t){if(!i.life)return;const o=i.life;let l=!1;if(i.spawning){if(o.delayTime+=e.value,!(o.delayTime>=i.life.delay))return;l=!0,i.spawning=!1,o.delayTime=a,o.time=a}if(o.duration===r)return;if(i.spawning)return;if(l?o.time=a:o.time+=e.value,o.time<o.duration)return;if(o.time=a,i.life.count>s&&i.life.count--,i.life.count===s)return void i.destroy();const d=(0,n.Cs)(u,t.width),f=(0,n.Cs)(u,t.width);i.position.x=(0,n.vd)(d),i.position.y=(0,n.vd)(f),i.spawning=!0,o.delayTime=a,o.time=a,i.reset();const p=i.options.life;p&&(o.delay=(0,n.Gu)(p.delay.value)*n.X5,o.duration=(0,n.Gu)(p.duration.value)*n.X5)}}}]);
@@ -1 +0,0 @@
1
- /*! tsParticles Fireworks v3.2.2 by Matteo Bruni */
package/610.min.js DELETED
@@ -1,2 +0,0 @@
1
- /*! For license information please see 610.min.js.LICENSE.txt */
2
- (this.webpackChunk_tsparticles_fireworks=this.webpackChunk_tsparticles_fireworks||[]).push([[610],{3610:(e,a,t)=>{async function i(e,a=!0){if(!e.emitterShapeManager){const{ShapeManager:a}=await t.e(560).then(t.bind(t,560));e.emitterShapeManager=new a(e)}e.addEmitterShapeGenerator||(e.addEmitterShapeGenerator=(a,t)=>{e.emitterShapeManager?.addShapeGenerator(a,t)});const{EmittersPlugin:i}=await t.e(929).then(t.bind(t,5245)),n=new i(e);await e.addPlugin(n,a)}t.d(a,{loadEmittersPlugin:()=>i})}}]);
@@ -1 +0,0 @@
1
- /*! tsParticles Fireworks v3.2.2 by Matteo Bruni */
package/647.min.js DELETED
@@ -1,2 +0,0 @@
1
- /*! For license information please see 647.min.js.LICENSE.txt */
2
- (this.webpackChunk_tsparticles_fireworks=this.webpackChunk_tsparticles_fireworks||[]).push([[647],{5647:(e,i,t)=>{t.d(i,{BaseMover:()=>n});var a=t(3624);class n{async init(e){const i=e.options.move.gravity;e.gravity={enable:i.enable,acceleration:(0,a.Gu)(i.acceleration),inverse:i.inverse};const{initSpin:n}=await t.e(328).then(t.bind(t,4328));n(e),await Promise.resolve()}isEnabled(e){return!e.destroyed&&e.options.move.enable}async move(e,i){const n=e.options,o=n.move;if(!o.enable)return;const s=e.container,r=s.retina.pixelRatio;e.retina.moveSpeed??=(0,a.Gu)(o.speed)*r,e.retina.moveDrift??=(0,a.Gu)(e.options.move.drift)*r;const{getProximitySpeedFactor:c}=await t.e(328).then(t.bind(t,4328)),p=c(e),d=e.retina.moveSpeed*s.retina.reduceFactor,v=e.retina.moveDrift,l=(0,a.KI)(n.size.value)*r,m=d*(o.size?e.getRadius()/l:1)*p*(i.factor||1)/2,b=e.retina.maxSpeed??s.retina.maxSpeed;if(o.spin.enable){const{spin:i}=await t.e(328).then(t.bind(t,4328));i(e,m)}else{const{move:a}=await t.e(328).then(t.bind(t,4328));await a(e,o,m,b,v,i)}const{applyDistance:u}=await t.e(328).then(t.bind(t,4328));u(e)}}}}]);
@@ -1 +0,0 @@
1
- /*! tsParticles Fireworks v3.2.2 by Matteo Bruni */
package/648.min.js DELETED
@@ -1,2 +0,0 @@
1
- /*! For license information please see 648.min.js.LICENSE.txt */
2
- (this.webpackChunk_tsparticles_fireworks=this.webpackChunk_tsparticles_fireworks||[]).push([[648],{3648:(e,s,i)=>{i.d(s,{DestroyOutMode:()=>r});var t=i(3624);class r{constructor(e){this.container=e,this.modes=["destroy"]}async update(e,s,i,r){if(!this.modes.includes(r))return;const o=this.container;switch(e.outType){case"normal":case"outside":if((0,t.Ac)(e.position,o.canvas.size,t.OW.origin,e.getRadius(),s))return;break;case"inside":{const{dx:s,dy:i}=(0,t.oW)(e.position,e.moveCenter),{x:r,y:o}=e.velocity;if(r<0&&s>e.moveCenter.radius||o<0&&i>e.moveCenter.radius||r>=0&&s<-e.moveCenter.radius||o>=0&&i<-e.moveCenter.radius)return;break}}o.particles.remove(e,void 0,!0),await Promise.resolve()}}}}]);
@@ -1 +0,0 @@
1
- /*! tsParticles Fireworks v3.2.2 by Matteo Bruni */
package/720.min.js DELETED
@@ -1,2 +0,0 @@
1
- /*! For license information please see 720.min.js.LICENSE.txt */
2
- (this.webpackChunk_tsparticles_fireworks=this.webpackChunk_tsparticles_fireworks||[]).push([[720],{2720:(t,i,e)=>{e.d(i,{Container:()=>P});var s=e(6830),n=e(1271),a=e(4150),r=e(5063);function o(t,i,e){const s=i[e];void 0!==s&&(t[e]=(t[e]??1)*s)}function h(t,i,e=!1){if(!i)return;if(!t)return;const s=t.style;if(s)for(const t in i){const n=i[t];n&&s.setProperty(t,n,e?"important":"")}}class c{constructor(t){this.container=t,this._applyPostDrawUpdaters=t=>{for(const i of this._postDrawUpdaters)i.afterDraw?.(t)},this._applyPreDrawUpdaters=(t,i,e,s,n,a)=>{for(const r of this._preDrawUpdaters){if(r.getColorStyles){const{fill:a,stroke:o}=r.getColorStyles(i,t,e,s);a&&(n.fill=a),o&&(n.stroke=o)}if(r.getTransformValues){const t=r.getTransformValues(i);for(const i in t)o(a,t,i)}r.beforeDraw?.(i)}},this._applyResizePlugins=()=>{for(const t of this._resizePlugins)t.resize?.()},this._getPluginParticleColors=t=>{let i,e;for(const s of this._colorPlugins)if(!i&&s.particleFillColor&&(i=(0,r.lN)(s.particleFillColor(t))),!e&&s.particleStrokeColor&&(e=(0,r.lN)(s.particleStrokeColor(t))),i&&e)break;return[i,e]},this._initCover=async()=>{const t=this.container.actualOptions.backgroundMask.cover,i=t.color;if(i){const e=(0,r.tX)(i);if(e){const i={...e,a:t.opacity};this._coverColorStyle=(0,r.iz)(i,i.a)}}else await new Promise(((i,e)=>{if(!t.image)return;const s=document.createElement("img");s.addEventListener("load",(()=>{this._coverImage={image:s,opacity:t.opacity},i()})),s.addEventListener("error",(t=>{e(t.error)})),s.src=t.image}))},this._initStyle=()=>{const t=this.element,i=this.container.actualOptions;if(t){this._fullScreen?(this._originalStyle=(0,n.ZB)({},t.style),this._setFullScreenStyle()):this._resetOriginalStyle();for(const e in i.style){if(!e||!i.style)continue;const s=i.style[e];s&&t.style.setProperty(e,s,"important")}}},this._initTrail=async()=>{const t=this.container.actualOptions.particles.move.trail,i=t.fill;if(!t.enable)return;const e=1/t.length;if(i.color){const t=(0,r.tX)(i.color);if(!t)return;this._trailFill={color:{...t},opacity:e}}else await new Promise(((t,s)=>{if(!i.image)return;const n=document.createElement("img");n.addEventListener("load",(()=>{this._trailFill={image:n,opacity:e},t()})),n.addEventListener("error",(t=>{s(t.error)})),n.src=i.image}))},this._paintBase=t=>{this.draw((i=>(0,a.TQ)(i,this.size,t)))},this._paintImage=(t,i)=>{this.draw((e=>(0,a.C3)(e,this.size,t,i)))},this._repairStyle=()=>{const t=this.element;t&&(this._safeMutationObserver((t=>t.disconnect())),this._initStyle(),this.initBackground(),this._safeMutationObserver((i=>i.observe(t,{attributes:!0}))))},this._resetOriginalStyle=()=>{const t=this.element,i=this._originalStyle;t&&i&&h(t,i)},this._safeMutationObserver=t=>{this._mutationObserver&&t(this._mutationObserver)},this._setFullScreenStyle=()=>{const t=this.element;if(!t)return;h(t,{position:"fixed",zIndex:this.container.actualOptions.fullScreen.zIndex.toString(10),top:"0",left:"0",width:"100%",height:"100%"},!0)},this.size={height:0,width:0},this._context=null,this._generated=!1,this._preDrawUpdaters=[],this._postDrawUpdaters=[],this._resizePlugins=[],this._colorPlugins=[]}get _fullScreen(){return this.container.actualOptions.fullScreen.enable}clear(){const t=this.container.actualOptions,i=t.particles.move.trail,e=this._trailFill;t.backgroundMask.enable?this.paint():i.enable&&i.length>0&&e?e.color?this._paintBase((0,r.iz)(e.color,e.opacity)):e.image&&this._paintImage(e.image,e.opacity):t.clear&&this.draw((t=>{(0,a.ZH)(t,this.size)}))}destroy(){if(this.stop(),this._generated){const t=this.element;t?.remove()}else this._resetOriginalStyle();this._preDrawUpdaters=[],this._postDrawUpdaters=[],this._resizePlugins=[],this._colorPlugins=[]}draw(t){const i=this._context;if(i)return t(i)}drawAsync(t){const i=this._context;return i?t(i):Promise.resolve(void 0)}async drawParticle(t,i){if(t.spawning||t.destroyed)return;const e=t.getRadius();if(e<=0)return;const s=t.getFillColor(),n=t.getStrokeColor()??s;let[o,h]=this._getPluginParticleColors(t);o||(o=s),h||(h=n),(o||h)&&await this.drawAsync((async s=>{const n=this.container,c=n.actualOptions,l=t.options.zIndex,d=1-t.zIndexFactor,u=d**l.opacityRate,p=t.bubble.opacity??t.opacity?.value??1,_=p*u,f=(t.strokeOpacity??p)*u,m={},g={fill:o?(0,r.vz)(o,_):void 0};g.stroke=h?(0,r.vz)(h,f):g.fill,this._applyPreDrawUpdaters(s,t,e,_,g,m),await(0,a.zv)({container:n,context:s,particle:t,delta:i,colorStyles:g,backgroundMask:c.backgroundMask.enable,composite:c.backgroundMask.composite,radius:e*d**l.sizeRate,opacity:_,shadow:t.options.shadow,transform:m}),this._applyPostDrawUpdaters(t)}))}async drawParticlePlugin(t,i,e){await this.drawAsync((s=>(0,a.$F)(s,t,i,e)))}async drawPlugin(t,i){await this.drawAsync((e=>(0,a.Zw)(e,t,i)))}async init(){this._safeMutationObserver((t=>t.disconnect())),this._mutationObserver=(0,n.yf)((t=>{for(const i of t)"attributes"===i.type&&"style"===i.attributeName&&this._repairStyle()})),this.resize(),this._initStyle(),await this._initCover();try{await this._initTrail()}catch(t){(0,n.jl)().error(t)}this.initBackground(),this._safeMutationObserver((t=>{this.element&&t.observe(this.element,{attributes:!0})})),this.initUpdaters(),this.initPlugins(),this.paint()}initBackground(){const t=this.container.actualOptions.background,i=this.element;if(!i)return;const e=i.style;if(e){if(t.color){const i=(0,r.tX)(t.color);e.backgroundColor=i?(0,r.iz)(i,t.opacity):""}else e.backgroundColor="";e.backgroundImage=t.image||"",e.backgroundPosition=t.position||"",e.backgroundRepeat=t.repeat||"",e.backgroundSize=t.size||""}}initPlugins(){this._resizePlugins=[];for(const[,t]of this.container.plugins)t.resize&&this._resizePlugins.push(t),(t.particleFillColor??t.particleStrokeColor)&&this._colorPlugins.push(t)}initUpdaters(){this._preDrawUpdaters=[],this._postDrawUpdaters=[];for(const t of this.container.particles.updaters)t.afterDraw&&this._postDrawUpdaters.push(t),(t.getColorStyles??t.getTransformValues??t.beforeDraw)&&this._preDrawUpdaters.push(t)}loadCanvas(t){this._generated&&this.element&&this.element.remove(),this._generated=t.dataset&&s.YU in t.dataset?"true"===t.dataset[s.YU]:this._generated,this.element=t,this.element.ariaHidden="true",this._originalStyle=(0,n.ZB)({},this.element.style),this.size.height=t.offsetHeight,this.size.width=t.offsetWidth,this._context=this.element.getContext("2d"),this._safeMutationObserver((t=>{this.element&&t.observe(this.element,{attributes:!0})})),this.container.retina.init(),this.initBackground()}paint(){const t=this.container.actualOptions;this.draw((i=>{t.backgroundMask.enable&&t.backgroundMask.cover?((0,a.ZH)(i,this.size),this._coverImage?this._paintImage(this._coverImage.image,this._coverImage.opacity):this._coverColorStyle?this._paintBase(this._coverColorStyle):this._paintBase()):this._paintBase()}))}resize(){if(!this.element)return!1;const t=this.container,i=t.retina.pixelRatio,e=t.canvas.size,s=this.element.offsetWidth*i,n=this.element.offsetHeight*i;if(n===e.height&&s===e.width&&n===this.element.height&&s===this.element.width)return!1;const a={...e};return this.element.width=e.width=this.element.offsetWidth*i,this.element.height=e.height=this.element.offsetHeight*i,this.container.started&&t.particles.setResizeFactor({width:e.width/a.width,height:e.height/a.height}),!0}stop(){this._safeMutationObserver((t=>t.disconnect())),this._mutationObserver=void 0,this.draw((t=>(0,a.ZH)(t,this.size)))}async windowResize(){if(!this.element||!this.resize())return;const t=this.container,i=t.updateActualOptions();await t.particles.setDensity(),this._applyResizePlugins(),i&&await t.refresh()}}var l=e(3853);function d(t,i,e,s,n){if(s){let s={passive:!0};(0,l.jn)(n)?s.capture=n:void 0!==n&&(s=n),t.addEventListener(i,e,s)}else{const s=n;t.removeEventListener(i,e,s)}}class u{constructor(t){this.container=t,this._doMouseTouchClick=t=>{const i=this.container,e=i.actualOptions;if(this._canPush){const t=i.interactivity.mouse,s=t.position;if(!s)return;t.clickPosition={...s},t.clickTime=(new Date).getTime();const a=e.interactivity.events.onClick;(0,n.KH)(a.mode,(t=>this.container.handleClickMode(t)))}if("touchend"===t.type){setTimeout((()=>this._mouseTouchFinish()),500)}},this._handleThemeChange=t=>{const i=t,e=this.container,s=e.options,n=s.defaultThemes,a=i.matches?n.dark:n.light,r=s.themes.find((t=>t.name===a));r&&r.default.auto&&e.loadTheme(a)},this._handleVisibilityChange=()=>{const t=this.container,i=t.actualOptions;this._mouseTouchFinish(),i.pauseOnBlur&&(document&&document.hidden?(t.pageHidden=!0,t.pause()):(t.pageHidden=!1,t.animationStatus?t.play(!0):t.draw(!0)))},this._handleWindowResize=()=>{this._resizeTimeout&&(clearTimeout(this._resizeTimeout),delete this._resizeTimeout);const t=async()=>{const t=this.container.canvas;await(t?.windowResize())};this._resizeTimeout=setTimeout((()=>{t()}),this.container.actualOptions.interactivity.events.resize.delay*s.X5)},this._manageInteractivityListeners=(t,i)=>{const e=this._handlers,n=this.container,a=n.actualOptions,r=n.interactivity.element;if(!r)return;const o=r,h=n.canvas.element;h&&(h.style.pointerEvents=o===h?"initial":"none"),(a.interactivity.events.onHover.enable||a.interactivity.events.onClick.enable)&&(d(r,s.Wt,e.mouseMove,i),d(r,s.Re,e.touchStart,i),d(r,s.zX,e.touchMove,i),a.interactivity.events.onClick.enable?(d(r,s.$o,e.touchEndClick,i),d(r,s.zw,e.mouseUp,i),d(r,s.ZL,e.mouseDown,i)):d(r,s.$o,e.touchEnd,i),d(r,t,e.mouseLeave,i),d(r,s.VH,e.touchCancel,i))},this._manageListeners=t=>{const i=this._handlers,e=this.container,n=e.actualOptions.interactivity.detectsOn,a=e.canvas.element;let r=s.aM;"window"===n?(e.interactivity.element=window,r=s.G1):e.interactivity.element="parent"===n&&a?a.parentElement??a.parentNode:a,this._manageMediaMatch(t),this._manageResize(t),this._manageInteractivityListeners(r,t),document&&d(document,s.QL,i.visibilityChange,t,!1)},this._manageMediaMatch=t=>{const i=this._handlers,e=(0,n.HY)("(prefers-color-scheme: dark)");e&&(void 0===e.addEventListener?void 0!==e.addListener&&(t?e.addListener(i.oldThemeChange):e.removeListener(i.oldThemeChange)):d(e,"change",i.themeChange,t))},this._manageResize=t=>{const i=this._handlers,e=this.container;if(!e.actualOptions.interactivity.events.resize)return;if("undefined"==typeof ResizeObserver)return void d(window,s.rR,i.resize,t);const n=e.canvas.element;this._resizeObserver&&!t?(n&&this._resizeObserver.unobserve(n),this._resizeObserver.disconnect(),delete this._resizeObserver):!this._resizeObserver&&t&&n&&(this._resizeObserver=new ResizeObserver((t=>{t.find((t=>t.target===n))&&this._handleWindowResize()})),this._resizeObserver.observe(n))},this._mouseDown=()=>{const{interactivity:t}=this.container;if(!t)return;const{mouse:i}=t;i.clicking=!0,i.downPosition=i.position},this._mouseTouchClick=t=>{const i=this.container,e=i.actualOptions,{mouse:s}=i.interactivity;s.inside=!0;let n=!1;const a=s.position;if(a&&e.interactivity.events.onClick.enable){for(const[,t]of i.plugins)if(t.clickPositionValid&&(n=t.clickPositionValid(a),n))break;n||this._doMouseTouchClick(t),s.clicking=!1}},this._mouseTouchFinish=()=>{const t=this.container.interactivity;if(!t)return;const i=t.mouse;delete i.position,delete i.clickPosition,delete i.downPosition,t.status=s.aM,i.inside=!1,i.clicking=!1},this._mouseTouchMove=t=>{const i=this.container,e=i.actualOptions,n=i.interactivity,a=i.canvas.element;if(!n?.element)return;let r;if(n.mouse.inside=!0,t.type.startsWith("pointer")){this._canPush=!0;const i=t;if(n.element===window){if(a){const t=a.getBoundingClientRect();r={x:i.clientX-t.left,y:i.clientY-t.top}}}else if("parent"===e.interactivity.detectsOn){const t=i.target,e=i.currentTarget;if(t&&e&&a){const s=t.getBoundingClientRect(),n=e.getBoundingClientRect(),o=a.getBoundingClientRect();r={x:i.offsetX+2*s.left-(n.left+o.left),y:i.offsetY+2*s.top-(n.top+o.top)}}else r={x:i.offsetX??i.clientX,y:i.offsetY??i.clientY}}else i.target===a&&(r={x:i.offsetX??i.clientX,y:i.offsetY??i.clientY})}else if(this._canPush="touchmove"!==t.type,a){const i=t,e=1,s=i.touches[i.touches.length-e],n=a.getBoundingClientRect(),o=0;r={x:s.clientX-(n.left??o),y:s.clientY-(n.top??o)}}const o=i.retina.pixelRatio;r&&(r.x*=o,r.y*=o),n.mouse.position=r,n.status=s.Wt},this._touchEnd=t=>{const i=t,e=Array.from(i.changedTouches);for(const t of e)this._touches.delete(t.identifier);this._mouseTouchFinish()},this._touchEndClick=t=>{const i=t,e=Array.from(i.changedTouches);for(const t of e)this._touches.delete(t.identifier);this._mouseTouchClick(t)},this._touchStart=t=>{const i=t,e=Array.from(i.changedTouches);for(const t of e)this._touches.set(t.identifier,performance.now());this._mouseTouchMove(t)},this._canPush=!0,this._touches=new Map,this._handlers={mouseDown:()=>this._mouseDown(),mouseLeave:()=>this._mouseTouchFinish(),mouseMove:t=>this._mouseTouchMove(t),mouseUp:t=>this._mouseTouchClick(t),touchStart:t=>this._touchStart(t),touchMove:t=>this._mouseTouchMove(t),touchEnd:t=>this._touchEnd(t),touchCancel:t=>this._touchEnd(t),touchEndClick:t=>this._touchEndClick(t),visibilityChange:()=>this._handleVisibilityChange(),themeChange:t=>this._handleThemeChange(t),oldThemeChange:t=>this._handleThemeChange(t),resize:()=>{this._handleWindowResize()}}}addListeners(){this._manageListeners(!0)}removeListeners(){this._manageListeners(!1)}}var p=e(7327);class _{constructor(t,i){this.container=i,this._engine=t,this._interactors=[],this._externalInteractors=[],this._particleInteractors=[]}async externalInteract(t){for(const i of this._externalInteractors)i.isEnabled()&&await i.interact(t)}handleClickMode(t){for(const i of this._externalInteractors)i.handleClickMode?.(t)}async init(){this._interactors=await this._engine.getInteractors(this.container,!0),this._externalInteractors=[],this._particleInteractors=[];for(const t of this._interactors){switch(t.type){case"external":this._externalInteractors.push(t);break;case"particles":this._particleInteractors.push(t)}t.init()}}async particlesInteract(t,i){for(const e of this._externalInteractors)e.clear(t,i);for(const e of this._particleInteractors)e.isEnabled(t)&&await e.interact(t,i)}reset(t){for(const i of this._externalInteractors)i.isEnabled()&&i.reset(t);for(const i of this._particleInteractors)i.isEnabled(t)&&i.reset(t)}}var f=e(4158),m=e(7212),g=e(2358);const v=.5;class y{constructor(t,i){this.rectangle=t,this.capacity=i,this._subdivide=()=>{const{x:t,y:i}=this.rectangle.position,{width:e,height:s}=this.rectangle.size,{capacity:n}=this;for(let a=0;a<4;a++){const r=a%2;this._subs.push(new y(new m.Ae(t+e*v*r,i+s*v*(Math.round(a*v)-r),e*v,s*v),n))}this._divided=!0},this._points=[],this._divided=!1,this._subs=[]}insert(t){return!!this.rectangle.contains(t.position)&&(this._points.length<this.capacity?(this._points.push(t),!0):(this._divided||this._subdivide(),this._subs.some((i=>i.insert(t)))))}query(t,i){const e=[];if(!t.intersects(this.rectangle))return[];for(const s of this._points)!t.contains(s.position)&&(0,g.Sp)(t.position,s.position)>s.particle.getRadius()&&(!i||i(s.particle))||e.push(s.particle);if(this._divided)for(const s of this._subs)e.push(...s.query(t,i));return e}queryCircle(t,i,e){return this.query(new m.Cd(t.x,t.y,i),e)}queryRectangle(t,i,e){return this.query(new m.Ae(t.x,t.y,i.width,i.height),e)}}const w=t=>{const{height:i,width:e}=t;return new m.Ae(-.25*e,-.25*i,1.5*e,1.5*i)};class z{constructor(t,i){this._addToPool=(...t)=>{for(const i of t)this._pool.push(i)},this._applyDensity=async(t,i,e)=>{const s=t.number;if(!t.number.density?.enable)return void(void 0===e?this._limit=s.limit.value:s.limit&&this._groupLimits.set(e,s.limit.value));const n=this._initDensityFactor(s.density),a=s.value,r=s.limit.value>0?s.limit.value:a,o=Math.min(a,r)*n+i,h=Math.min(this.count,this.filter((t=>t.group===e)).length);void 0===e?this._limit=s.limit.value*n:this._groupLimits.set(e,s.limit.value*n),h<o?await this.push(Math.abs(o-h),void 0,t,e):h>o&&this.removeQuantity(h-o,e)},this._initDensityFactor=t=>{const i=this._container;if(!i.canvas.element||!t.enable)return 1;const e=i.canvas.element,s=i.retina.pixelRatio;return e.width*e.height/(t.height*t.width*s**2)},this._pushParticle=async(t,i,a,r)=>{try{let s=this._pool.pop();if(!s){const{Particle:t}=await e.e(173).then(e.bind(e,2173));s=new t(this._engine,this._container)}await s.init(this._nextId,t,i,a);let n=!0;if(r&&(n=r(s)),!n)return;return this._array.push(s),this._zArray.push(s),this._nextId++,this._engine.dispatchEvent("particleAdded",{container:this._container,data:{particle:s}}),s}catch(t){(0,n.jl)().warning(`${s.gK} adding particle: ${t}`)}},this._removeParticle=(t,i,e)=>{const s=this._array[t];if(!s||s.group!==i)return!1;const n=this._zArray.indexOf(s);return this._array.splice(t,1),this._zArray.splice(n,1),s.destroy(e),this._engine.dispatchEvent("particleRemoved",{container:this._container,data:{particle:s}}),this._addToPool(s),!0},this._engine=t,this._container=i,this._nextId=0,this._array=[],this._zArray=[],this._pool=[],this._limit=0,this._groupLimits=new Map,this._needsSort=!1,this._lastZIndex=0,this._interactionManager=new _(t,i),this._pluginsInitialized=!1;const a=i.canvas.size;this.quadTree=new y(w(a),4),this.movers=[],this.updaters=[]}get count(){return this._array.length}async addManualParticles(){const t=this._container,i=t.actualOptions;for(const e of i.manualParticles)await this.addParticle(e.position?(0,n.bt)(e.position,t.canvas.size):void 0,e.options)}async addParticle(t,i,e,s){const n=this._container.actualOptions.particles.number.limit,a=void 0===e?this._limit:this._groupLimits.get(e)??this._limit,r=this.count;if(a>0)if("delete"===n.mode){const t=r+1-a;t>0&&this.removeQuantity(t)}else if("wait"===n.mode&&r>=a)return;return await this._pushParticle(t,i,e,s)}clear(){this._array=[],this._zArray=[],this._pluginsInitialized=!1}destroy(){this._array=[],this._zArray=[],this.movers=[],this.updaters=[]}async draw(t){const i=this._container,e=i.canvas;e.clear(),await this.update(t);for(const[,s]of i.plugins)await e.drawPlugin(s,t);for(const i of this._zArray)await i.draw(t)}filter(t){return this._array.filter(t)}find(t){return this._array.find(t)}get(t){return this._array[t]}handleClickMode(t){this._interactionManager.handleClickMode(t)}async init(){const t=this._container,i=t.actualOptions;this._lastZIndex=0,this._needsSort=!1,await this.initPlugins();let e=!1;for(const[,i]of t.plugins)if(void 0!==i.particlesInitialization&&(e=i.particlesInitialization()),e)break;if(await this.addManualParticles(),!e){const t=i.particles,e=t.groups;for(const i in e){const s=e[i];for(let e=this.count,n=0;n<s.number?.value&&e<t.number.value;e++,n++)await this.addParticle(void 0,s,i)}for(let i=this.count;i<t.number.value;i++)await this.addParticle()}}async initPlugins(){if(this._pluginsInitialized)return;const t=this._container;this.movers=await this._engine.getMovers(t,!0),this.updaters=await this._engine.getUpdaters(t,!0),await this._interactionManager.init();for(const[,i]of t.pathGenerators)await i.init(t)}async push(t,i,e,s){for(let n=0;n<t;n++)await this.addParticle(i?.position,e,s)}async redraw(){this.clear(),await this.init(),await this.draw({value:0,factor:0})}remove(t,i,e){this.removeAt(this._array.indexOf(t),void 0,i,e)}removeAt(t,i=1,e,s){if(t<0||t>this.count)return;let n=0;for(let a=t;n<i&&a<this.count;a++)this._removeParticle(a--,e,s)&&n++}removeQuantity(t,i){this.removeAt(0,t,i)}async setDensity(){const t=this._container.actualOptions,i=t.particles.groups;for(const t in i)await this._applyDensity(i[t],0,t);await this._applyDensity(t.particles,t.manualParticles.length)}setLastZIndex(t){this._lastZIndex=t,this._needsSort=this._needsSort||this._lastZIndex<t}setResizeFactor(t){this._resizeFactor=t}async update(t){const i=this._container,e=new Set;this.quadTree=new y(w(i.canvas.size),4);for(const[,t]of i.pathGenerators)t.update();for(const[,e]of i.plugins)await(e.update?.(t));const s=this._resizeFactor;for(const i of this._array){s&&!i.ignoresResizeRatio&&(i.position.x*=s.width,i.position.y*=s.height,i.initialPosition.x*=s.width,i.initialPosition.y*=s.height),i.ignoresResizeRatio=!1,this._interactionManager.reset(i);for(const[,e]of this._container.plugins){if(i.destroyed)break;e.particleUpdate?.(i,t)}for(const e of this.movers)e.isEnabled(i)&&await e.move(i,t);i.destroyed?e.add(i):this.quadTree.insert(new f.E(i.getPosition(),i))}if(e.size){const t=t=>!e.has(t);this._array=this.filter(t),this._zArray=this._zArray.filter(t);for(const t of e)this._engine.dispatchEvent("particleRemoved",{container:this._container,data:{particle:t}});this._addToPool(...e)}await this._interactionManager.externalInteract(t);for(const i of this._array){for(const e of this.updaters)await e.update(i,t);i.destroyed||i.spawning||await this._interactionManager.particlesInteract(i,t)}if(delete this._resizeFactor,this._needsSort){const t=this._zArray;t.sort(((t,i)=>i.position.z-t.position.z||t.id-i.id));const i=1;this._lastZIndex=t[t.length-i].position.z,this._needsSort=!1}}}class b{constructor(t){this.container=t,this.pixelRatio=1,this.reduceFactor=1}init(){const t=this.container,i=t.actualOptions;this.pixelRatio=!i.detectRetina||(0,n.Kr)()?1:window.devicePixelRatio,this.reduceFactor=1;const e=this.pixelRatio,s=t.canvas;if(s.element){const t=s.element;s.size.width=t.offsetWidth*e,s.size.height=t.offsetHeight*e}const a=i.particles,r=a.move;this.maxSpeed=(0,g.Gu)(r.gravity.maxSpeed)*e,this.sizeAnimationSpeed=(0,g.Gu)(a.size.animation.speed)*e}initParticle(t){const i=t.options,e=this.pixelRatio,s=i.move,n=s.distance,a=t.retina;a.moveDrift=(0,g.Gu)(s.drift)*e,a.moveSpeed=(0,g.Gu)(s.speed)*e,a.sizeAnimationSpeed=(0,g.Gu)(i.size.animation.speed)*e;const r=a.maxDistance;r.horizontal=void 0!==n.horizontal?n.horizontal*e:void 0,r.vertical=void 0!==n.vertical?n.vertical*e:void 0,a.maxSpeed=(0,g.Gu)(s.gravity.maxSpeed)*e}}var O=e(8853);function k(t){return t&&!t.destroyed}function T(t,i,...e){const s=new p.E(t,i);return(0,O.h)(s,...e),s}class P{constructor(t,i,e){this._intersectionManager=t=>{if(k(this)&&this.actualOptions.pauseOnOutsideViewport)for(const i of t)i.target===this.interactivity.element&&(i.isIntersecting?this.play():this.pause())},this._nextFrame=async t=>{try{if(!this._smooth&&void 0!==this._lastFrameTime&&t<this._lastFrameTime+s.X5/this.fpsLimit)return void this.draw(!1);this._lastFrameTime??=t;const i=function(t,i=60,e=!1){return{value:t,factor:e?60/i:60*t/s.X5}}(t-this._lastFrameTime,this.fpsLimit,this._smooth);if(this.addLifeTime(i.value),this._lastFrameTime=t,i.value>s.X5)return void this.draw(!1);if(await this.particles.draw(i),!this.alive())return void this.destroy();this.animationStatus&&this.draw(!1)}catch(t){(0,n.jl)().error(`${s.gK} in animation loop`,t)}},this._engine=t,this.id=Symbol(i),this.fpsLimit=120,this._smooth=!1,this._delay=0,this._duration=0,this._lifeTime=0,this._firstStart=!0,this.started=!1,this.destroyed=!1,this._paused=!0,this._lastFrameTime=0,this.zLayers=100,this.pageHidden=!1,this._sourceOptions=e,this._initialSourceOptions=e,this.retina=new b(this),this.canvas=new c(this),this.particles=new z(this._engine,this),this.pathGenerators=new Map,this.interactivity={mouse:{clicking:!1,inside:!1}},this.plugins=new Map,this.effectDrawers=new Map,this.shapeDrawers=new Map,this._options=T(this._engine,this),this.actualOptions=T(this._engine,this),this._eventListeners=new u(this),this._intersectionObserver=(0,n.NM)((t=>this._intersectionManager(t))),this._engine.dispatchEvent("containerBuilt",{container:this})}get animationStatus(){return!this._paused&&!this.pageHidden&&k(this)}get options(){return this._options}get sourceOptions(){return this._sourceOptions}addClickHandler(t){if(!k(this))return;const i=this.interactivity.element;if(!i)return;const e=(i,e,s)=>{if(!k(this))return;const n=this.retina.pixelRatio,a={x:e.x*n,y:e.y*n},r=this.particles.quadTree.queryCircle(a,s*n);t(i,r)};let s=!1,n=!1;i.addEventListener("click",(t=>{if(!k(this))return;const i=t,s={x:i.offsetX||i.clientX,y:i.offsetY||i.clientY};e(t,s,1)})),i.addEventListener("touchstart",(()=>{k(this)&&(s=!0,n=!1)})),i.addEventListener("touchmove",(()=>{k(this)&&(n=!0)})),i.addEventListener("touchend",(t=>{if(k(this)){if(s&&!n){const i=t,s=1;let n=i.touches[i.touches.length-s];if(!n&&(n=i.changedTouches[i.changedTouches.length-s],!n))return;const a=this.canvas.element,r=a?a.getBoundingClientRect():void 0,o=0,h={x:n.clientX-(r?r.left:o),y:n.clientY-(r?r.top:o)};e(t,h,Math.max(n.radiusX,n.radiusY))}s=!1,n=!1}})),i.addEventListener("touchcancel",(()=>{k(this)&&(s=!1,n=!1)}))}addLifeTime(t){this._lifeTime+=t}addPath(t,i,e=!1){return!(!k(this)||!e&&this.pathGenerators.has(t))&&(this.pathGenerators.set(t,i),!0)}alive(){return!this._duration||this._lifeTime<=this._duration}destroy(){if(!k(this))return;this.stop(),this.particles.destroy(),this.canvas.destroy();for(const[,t]of this.effectDrawers)t.destroy?.(this);for(const[,t]of this.shapeDrawers)t.destroy?.(this);for(const t of this.effectDrawers.keys())this.effectDrawers.delete(t);for(const t of this.shapeDrawers.keys())this.shapeDrawers.delete(t);this._engine.clearPlugins(this),this.destroyed=!0;const t=this._engine.dom(),i=t.findIndex((t=>t===this));if(i>=0){const e=1;t.splice(i,e)}this._engine.dispatchEvent("containerDestroyed",{container:this})}draw(t){if(!k(this))return;let i=t;const e=async t=>{i&&(this._lastFrameTime=void 0,i=!1),await this._nextFrame(t)};this._drawAnimationFrame=requestAnimationFrame((t=>{e(t)}))}async export(t,i={}){for(const[,e]of this.plugins){if(!e.export)continue;const s=await e.export(t,i);if(s.supported)return s.blob}(0,n.jl)().error(`${s.gK} - Export plugin with type ${t} not found`)}handleClickMode(t){if(k(this)){this.particles.handleClickMode(t);for(const[,i]of this.plugins)i.handleClickMode?.(t)}}async init(){if(!k(this))return;const t=this._engine.getSupportedEffects();for(const i of t){const t=this._engine.getEffectDrawer(i);t&&this.effectDrawers.set(i,t)}const i=this._engine.getSupportedShapes();for(const t of i){const i=this._engine.getShapeDrawer(t);i&&this.shapeDrawers.set(t,i)}await this.particles.initPlugins(),this._options=T(this._engine,this,this._initialSourceOptions,this.sourceOptions),this.actualOptions=T(this._engine,this,this._options);const e=await this._engine.getAvailablePlugins(this);for(const[t,i]of e)this.plugins.set(t,i);this.retina.init(),await this.canvas.init(),this.updateActualOptions(),this.canvas.initBackground(),this.canvas.resize(),this.zLayers=this.actualOptions.zLayers,this._duration=(0,g.Gu)(this.actualOptions.duration)*s.X5,this._delay=(0,g.Gu)(this.actualOptions.delay)*s.X5,this._lifeTime=0;this.fpsLimit=this.actualOptions.fpsLimit>0?this.actualOptions.fpsLimit:120,this._smooth=this.actualOptions.smooth;for(const[,t]of this.effectDrawers)await(t.init?.(this));for(const[,t]of this.shapeDrawers)await(t.init?.(this));for(const[,t]of this.plugins)await(t.init?.());this._engine.dispatchEvent("containerInit",{container:this}),await this.particles.init(),await this.particles.setDensity();for(const[,t]of this.plugins)t.particlesSetup?.();this._engine.dispatchEvent("particlesSetup",{container:this})}async loadTheme(t){k(this)&&(this._currentTheme=t,await this.refresh())}pause(){if(k(this)&&(void 0!==this._drawAnimationFrame&&(cancelAnimationFrame(this._drawAnimationFrame),delete this._drawAnimationFrame),!this._paused)){for(const[,t]of this.plugins)t.pause?.();this.pageHidden||(this._paused=!0),this._engine.dispatchEvent("containerPaused",{container:this})}}play(t){if(!k(this))return;const i=this._paused||t;if(!this._firstStart||this.actualOptions.autoPlay){if(this._paused&&(this._paused=!1),i)for(const[,t]of this.plugins)t.play&&t.play();this._engine.dispatchEvent("containerPlay",{container:this}),this.draw(i??!1)}else this._firstStart=!1}async refresh(){if(k(this))return this.stop(),this.start()}async reset(){if(k(this))return this._initialSourceOptions=void 0,this._options=T(this._engine,this),this.actualOptions=T(this._engine,this,this._options),this.refresh()}async start(){k(this)&&!this.started&&(await this.init(),this.started=!0,await new Promise((t=>{const i=async()=>{this._eventListeners.addListeners(),this.interactivity.element instanceof HTMLElement&&this._intersectionObserver&&this._intersectionObserver.observe(this.interactivity.element);for(const[,t]of this.plugins)await(t.start?.());this._engine.dispatchEvent("containerStarted",{container:this}),this.play(),t()};this._delayTimeout=setTimeout((()=>{i()}),this._delay)})))}stop(){if(k(this)&&this.started){this._delayTimeout&&(clearTimeout(this._delayTimeout),delete this._delayTimeout),this._firstStart=!0,this.started=!1,this._eventListeners.removeListeners(),this.pause(),this.particles.clear(),this.canvas.stop(),this.interactivity.element instanceof HTMLElement&&this._intersectionObserver&&this._intersectionObserver.unobserve(this.interactivity.element);for(const[,t]of this.plugins)t.stop?.();for(const t of this.plugins.keys())this.plugins.delete(t);this._sourceOptions=this._options,this._engine.dispatchEvent("containerStopped",{container:this})}}updateActualOptions(){this.actualOptions.responsive=[];const t=this.actualOptions.setResponsive(this.canvas.size.width,this.retina.pixelRatio,this._options);return this.actualOptions.setTheme(this._currentTheme),this._responsiveMaxWidth!==t&&(this._responsiveMaxWidth=t,!0)}}}}]);
@@ -1 +0,0 @@
1
- /*! tsParticles Fireworks v3.2.2 by Matteo Bruni */
package/725.min.js DELETED
@@ -1,2 +0,0 @@
1
- /*! For license information please see 725.min.js.LICENSE.txt */
2
- (this.webpackChunk_tsparticles_fireworks=this.webpackChunk_tsparticles_fireworks||[]).push([[725],{7725:(e,s,i)=>{i.d(s,{SizeUpdater:()=>o});var a=i(3624);class o{async init(e){const s=e.container,i=e.options.size.animation;i.enable&&(e.size.velocity=(e.retina.sizeAnimationSpeed??s.retina.sizeAnimationSpeed)/a.tZ*s.retina.reduceFactor,i.sync||(e.size.velocity*=(0,a.sZ)())),await Promise.resolve()}isEnabled(e){return!e.destroyed&&!e.spawning&&e.size.enable&&((e.size.maxLoops??0)<=0||(e.size.maxLoops??0)>0&&(e.size.loops??0)<(e.size.maxLoops??0))}reset(e){e.size.loops=0}async update(e,s){this.isEnabled(e)&&((0,a.Cr)(e,e.size,!0,e.options.size.animation.destroy,s),await Promise.resolve())}}}}]);
@@ -1 +0,0 @@
1
- /*! tsParticles Fireworks v3.2.2 by Matteo Bruni */
package/749.min.js DELETED
@@ -1,2 +0,0 @@
1
- /*! For license information please see 749.min.js.LICENSE.txt */
2
- (this.webpackChunk_tsparticles_fireworks=this.webpackChunk_tsparticles_fireworks||[]).push([[749],{8749:(s,t,i)=>{i.d(t,{EmittersSquareShapeGenerator:()=>h});class e{constructor(s,t,i,e){this.position=s,this.size=t,this.fill=i,this.options=e}resize(s,t){this.position=s,this.size=t}}var r=i(3624);function n(s,t){return s+t*((0,r.sZ)()-r.vq)}class o extends e{constructor(s,t,i,e){super(s,t,i,e)}async init(){}async randomPosition(){return await new Promise((s=>{const t=this.fill,i=this.position,e=this.size;if(t)return s({position:{x:n(i.x,e.width),y:n(i.y,e.height)}});{const t=.5*e.width,n=.5*e.height,o=Math.floor(4*(0,r.sZ)()),h=2*((0,r.sZ)()-r.vq);switch(o){case 0:return s({position:{x:i.x+h*t,y:i.y-n}});case 1:return s({position:{x:i.x-t,y:i.y+h*n}});case 2:return s({position:{x:i.x+h*t,y:i.y+n}});default:return s({position:{x:i.x+t,y:i.y+h*n}})}}}))}}class h{generate(s,t,i,e){return new o(s,t,i,e)}}}}]);
@@ -1 +0,0 @@
1
- /*! tsParticles Fireworks v3.2.2 by Matteo Bruni */
package/757.min.js DELETED
@@ -1,2 +0,0 @@
1
- /*! For license information please see 757.min.js.LICENSE.txt */
2
- (this.webpackChunk_tsparticles_fireworks=this.webpackChunk_tsparticles_fireworks||[]).push([[757],{7757:(t,i,o)=>{o.d(i,{bounceHorizontal:()=>s,bounceVertical:()=>r});var e=o(3624);const n=0,c=0;function s(t){if("bounce"!==t.outMode&&"split"!==t.outMode||"left"!==t.direction&&"right"!==t.direction)return;t.bounds.right<c&&"left"===t.direction?t.particle.position.x=t.size+t.offset.x:t.bounds.left>t.canvasSize.width&&"right"===t.direction&&(t.particle.position.x=t.canvasSize.width-t.size-t.offset.x);const i=t.particle.velocity.x;let o=!1;if("right"===t.direction&&t.bounds.right>=t.canvasSize.width&&i>n||"left"===t.direction&&t.bounds.left<=c&&i<n){const i=(0,e.Gu)(t.particle.options.bounce.horizontal.value);t.particle.velocity.x*=-i,o=!0}if(!o)return;const s=t.offset.x+t.size;t.bounds.right>=t.canvasSize.width&&"right"===t.direction?t.particle.position.x=t.canvasSize.width-s:t.bounds.left<=c&&"left"===t.direction&&(t.particle.position.x=s),"split"===t.outMode&&t.particle.destroy()}function r(t){if("bounce"!==t.outMode&&"split"!==t.outMode||"bottom"!==t.direction&&"top"!==t.direction)return;t.bounds.bottom<c&&"top"===t.direction?t.particle.position.y=t.size+t.offset.y:t.bounds.top>t.canvasSize.height&&"bottom"===t.direction&&(t.particle.position.y=t.canvasSize.height-t.size-t.offset.y);const i=t.particle.velocity.y;let o=!1;if("bottom"===t.direction&&t.bounds.bottom>=t.canvasSize.height&&i>n||"top"===t.direction&&t.bounds.top<=c&&i<n){const i=(0,e.Gu)(t.particle.options.bounce.vertical.value);t.particle.velocity.y*=-i,o=!0}if(!o)return;const s=t.offset.y+t.size;t.bounds.bottom>=t.canvasSize.height&&"bottom"===t.direction?t.particle.position.y=t.canvasSize.height-s:t.bounds.top<=c&&"top"===t.direction&&(t.particle.position.y=s),"split"===t.outMode&&t.particle.destroy()}}}]);
@@ -1 +0,0 @@
1
- /*! tsParticles Fireworks v3.2.2 by Matteo Bruni */
package/81.min.js DELETED
@@ -1,2 +0,0 @@
1
- /*! For license information please see 81.min.js.LICENSE.txt */
2
- (this.webpackChunk_tsparticles_fireworks=this.webpackChunk_tsparticles_fireworks||[]).push([[81],{2081:(e,a,t)=>{async function r(e,a=!0){const r=e,{EmittersSquareShapeGenerator:s}=await t.e(749).then(t.bind(t,8749));r.addEmitterShapeGenerator?.("square",new s),await r.refresh(a)}t.d(a,{loadEmittersShapeSquare:()=>r})}}]);
@@ -1 +0,0 @@
1
- /*! tsParticles Fireworks v3.2.2 by Matteo Bruni */
package/835.min.js DELETED
@@ -1,2 +0,0 @@
1
- /*! For license information please see 835.min.js.LICENSE.txt */
2
- (this.webpackChunk_tsparticles_fireworks=this.webpackChunk_tsparticles_fireworks||[]).push([[835],{7835:(e,a,s)=>{async function t(e,a=!0){await e.addMover("base",(async()=>{const{BaseMover:e}=await s.e(647).then(s.bind(s,5647));return new e}),a)}s.d(a,{loadBaseMover:()=>t})}}]);
@@ -1 +0,0 @@
1
- /*! tsParticles Fireworks v3.2.2 by Matteo Bruni */
package/837.min.js DELETED
@@ -1,2 +0,0 @@
1
- /*! For license information please see 837.min.js.LICENSE.txt */
2
- (this.webpackChunk_tsparticles_fireworks=this.webpackChunk_tsparticles_fireworks||[]).push([[837],{3837:(a,t,i)=>{async function e(a,t=!0){const{TrailDrawer:e}=await i.e(952).then(i.bind(i,952));await a.addEffect("trail",new e,t)}i.d(t,{loadTrailEffect:()=>e})}}]);
@@ -1 +0,0 @@
1
- /*! tsParticles Fireworks v3.2.2 by Matteo Bruni */
package/859.min.js DELETED
@@ -1,2 +0,0 @@
1
- /*! For license information please see 859.min.js.LICENSE.txt */
2
- (this.webpackChunk_tsparticles_fireworks=this.webpackChunk_tsparticles_fireworks||[]).push([[859],{7859:(e,t,i)=>{i.d(t,{BounceOutMode:()=>o});var s=i(3624);class o{constructor(e){this.container=e,this.modes=["bounce","split"]}async update(e,t,o,n){if(!this.modes.includes(n))return;const c=this.container;let a=!1;for(const[,i]of c.plugins)if(void 0!==i.particleBounce&&(a=await i.particleBounce(e,o,t)),a)break;if(a)return;const r=e.getPosition(),u=e.offset,d=e.getRadius(),f=(0,s.M_)(r,d),l=c.canvas.size,{bounceHorizontal:p,bounceVertical:h}=await i.e(757).then(i.bind(i,7757));p({particle:e,outMode:n,direction:t,bounds:f,canvasSize:l,offset:u,size:d}),h({particle:e,outMode:n,direction:t,bounds:f,canvasSize:l,offset:u,size:d})}}}}]);
@@ -1 +0,0 @@
1
- /*! tsParticles Fireworks v3.2.2 by Matteo Bruni */
package/866.min.js DELETED
@@ -1,2 +0,0 @@
1
- /*! For license information please see 866.min.js.LICENSE.txt */
2
- (this.webpackChunk_tsparticles_fireworks=this.webpackChunk_tsparticles_fireworks||[]).push([[866],{4866:(i,t,o)=>{o.d(t,{OutOutMode:()=>s});var e=o(3624);class s{constructor(i){this.container=i,this.modes=["out"]}async update(i,t,o,s){if(!this.modes.includes(s))return;const n=this.container;switch(i.outType){case"inside":{const{x:t,y:o}=i.velocity,s=e.OW.origin;s.length=i.moveCenter.radius,s.angle=i.velocity.angle+Math.PI,s.addTo(e.OW.create(i.moveCenter));const{dx:a,dy:r}=(0,e.oW)(i.position,s);if(t<=0&&a>=0||o<=0&&r>=0||t>=0&&a<=0||o>=0&&r<=0)return;i.position.x=Math.floor((0,e.vd)({min:0,max:n.canvas.size.width})),i.position.y=Math.floor((0,e.vd)({min:0,max:n.canvas.size.height}));const{dx:d,dy:p}=(0,e.oW)(i.position,i.moveCenter);i.direction=Math.atan2(-p,-d),i.velocity.angle=i.direction;break}default:if((0,e.Ac)(i.position,n.canvas.size,e.OW.origin,i.getRadius(),t))return;switch(i.outType){case"outside":{i.position.x=Math.floor((0,e.vd)({min:-i.moveCenter.radius,max:i.moveCenter.radius}))+i.moveCenter.x,i.position.y=Math.floor((0,e.vd)({min:-i.moveCenter.radius,max:i.moveCenter.radius}))+i.moveCenter.y;const{dx:t,dy:o}=(0,e.oW)(i.position,i.moveCenter);i.moveCenter.radius&&(i.direction=Math.atan2(o,t),i.velocity.angle=i.direction);break}case"normal":{const o=i.options.move.warp,s=n.canvas.size,a={bottom:s.height+i.getRadius()+i.offset.y,left:-i.getRadius()-i.offset.x,right:s.width+i.getRadius()+i.offset.x,top:-i.getRadius()-i.offset.y},r=i.getRadius(),d=(0,e.M_)(i.position,r);"right"===t&&d.left>s.width+i.offset.x?(i.position.x=a.left,i.initialPosition.x=i.position.x,o||(i.position.y=(0,e.sZ)()*s.height,i.initialPosition.y=i.position.y)):"left"===t&&d.right<-i.offset.x&&(i.position.x=a.right,i.initialPosition.x=i.position.x,o||(i.position.y=(0,e.sZ)()*s.height,i.initialPosition.y=i.position.y)),"bottom"===t&&d.top>s.height+i.offset.y?(o||(i.position.x=(0,e.sZ)()*s.width,i.initialPosition.x=i.position.x),i.position.y=a.top,i.initialPosition.y=i.position.y):"top"===t&&d.bottom<-i.offset.y&&(o||(i.position.x=(0,e.sZ)()*s.width,i.initialPosition.x=i.position.x),i.position.y=a.bottom,i.initialPosition.y=i.position.y);break}}}await Promise.resolve()}}}}]);
@@ -1 +0,0 @@
1
- /*! tsParticles Fireworks v3.2.2 by Matteo Bruni */
package/88.min.js DELETED
@@ -1,2 +0,0 @@
1
- /*! For license information please see 88.min.js.LICENSE.txt */
2
- (this.webpackChunk_tsparticles_fireworks=this.webpackChunk_tsparticles_fireworks||[]).push([[88],{8088:(t,o,s)=>{s.d(o,{DestroyUpdater:()=>v});var e=s(3624);class i{load(t){t&&(void 0!==t.bottom&&(this.bottom=(0,e.Cs)(t.bottom)),void 0!==t.left&&(this.left=(0,e.Cs)(t.left)),void 0!==t.right&&(this.right=(0,e.Cs)(t.right)),void 0!==t.top&&(this.top=(0,e.Cs)(t.top)))}}class r extends e.SW{constructor(){super(),this.value=3}}class l extends e.SW{constructor(){super(),this.value={min:4,max:9}}}class n{constructor(){this.count=1,this.factor=new r,this.rate=new l,this.sizeOffset=!0}load(t){t&&(void 0!==t.color&&(this.color=e.Oz.create(this.color,t.color)),void 0!==t.count&&(this.count=t.count),this.factor.load(t.factor),this.rate.load(t.rate),this.particles=(0,e.KH)(t.particles,(t=>(0,e.ZB)({},t))),void 0!==t.sizeOffset&&(this.sizeOffset=t.sizeOffset),t.colorOffset&&(this.colorOffset=this.colorOffset??{},void 0!==t.colorOffset.h&&(this.colorOffset.h=t.colorOffset.h),void 0!==t.colorOffset.s&&(this.colorOffset.s=t.colorOffset.s),void 0!==t.colorOffset.l&&(this.colorOffset.l=t.colorOffset.l)))}}class c{constructor(){this.bounds=new i,this.mode="none",this.split=new n}load(t){t&&(t.mode&&(this.mode=t.mode),t.bounds&&this.bounds.load(t.bounds),this.split.load(t.split))}}const a=0,d=.5,u=0,f=1,h=500;async function p(t,o,s,i){const r=s.options.destroy;if(!r)return;const l=r.split,n=(0,e.hT)(t,o,s.options),c=(0,e.Gu)(l.factor.value),p=s.getFillColor();l.color?n.color.load(l.color):l.colorOffset&&p?n.color.load({value:{hsl:{h:p.h+(0,e.Gu)(l.colorOffset.h??a),s:p.s+(0,e.Gu)(l.colorOffset.s??a),l:p.l+(0,e.Gu)(l.colorOffset.l??a)}}}):n.color.load({value:{hsl:s.getFillColor()}}),n.move.load({center:{x:s.position.x,y:s.position.y,mode:"precise"}}),(0,e.hj)(n.size.value)?n.size.value/=c:(n.size.value.min/=c,n.size.value.max/=c),n.load(i);const v=l.sizeOffset?(0,e.Cs)(-s.size.value,s.size.value):a,y={x:s.position.x+(0,e.vd)(v),y:s.position.y+(0,e.vd)(v)};return o.particles.addParticle(y,n,s.group,(t=>!(t.size.value<d)&&(t.velocity.length=(0,e.vd)((0,e.Cs)(s.velocity.length,t.velocity.length)),t.splitCount=(s.splitCount??u)+f,t.unbreakable=!0,setTimeout((()=>{t.unbreakable=!1}),h),!0)))}class v{constructor(t,o){this.container=o,this.engine=t}async init(t){const o=this.container,s=t.options.destroy;if(!s)return;t.splitCount=0;const i=s.bounds;t.destroyBounds||(t.destroyBounds={});const{bottom:r,left:l,right:n,top:c}=i,{destroyBounds:a}=t,d=o.canvas.size;r&&(a.bottom=(0,e.Gu)(r)*d.height/e.tZ),l&&(a.left=(0,e.Gu)(l)*d.width/e.tZ),n&&(a.right=(0,e.Gu)(n)*d.width/e.tZ),c&&(a.top=(0,e.Gu)(c)*d.height/e.tZ),await Promise.resolve()}isEnabled(t){return!t.destroyed}loadOptions(t,...o){t.destroy||(t.destroy=new c);for(const s of o)t.destroy.load(s?.destroy)}particleDestroyed(t,o){if(o)return;const s=t.options.destroy;s&&"split"===s.mode&&async function(t,o,s){const i=s.options.destroy;if(!i)return;const r=i.split;if(r.count>=0&&(void 0===s.splitCount||s.splitCount++>r.count))return;const l=(0,e.Gu)(r.rate.value),n=(0,e.wA)(r.particles);for(let e=0;e<l;e++)await p(t,o,s,n)}(this.engine,this.container,t)}async update(t){if(!this.isEnabled(t))return;const o=t.getPosition(),s=t.destroyBounds;s&&((void 0!==s.bottom&&o.y>=s.bottom||void 0!==s.left&&o.x<=s.left||void 0!==s.right&&o.x>=s.right||void 0!==s.top&&o.y<=s.top)&&t.destroy(),await Promise.resolve())}}}}]);
@@ -1 +0,0 @@
1
- /*! tsParticles Fireworks v3.2.2 by Matteo Bruni */
package/886.min.js DELETED
@@ -1,2 +0,0 @@
1
- /*! For license information please see 886.min.js.LICENSE.txt */
2
- (this.webpackChunk_tsparticles_fireworks=this.webpackChunk_tsparticles_fireworks||[]).push([[886],{7886:(i,t,e)=>{e.d(t,{NoneOutMode:()=>s});var o=e(3624);class s{constructor(i){this.container=i,this.modes=["none"]}async update(i,t,e,s){if(!this.modes.includes(s))return;if((i.options.move.distance.horizontal&&("left"===t||"right"===t))??(i.options.move.distance.vertical&&("top"===t||"bottom"===t)))return;const n=i.options.move.gravity,r=this.container,a=r.canvas.size,c=i.getRadius();if(n.enable){const e=i.position;(!n.inverse&&e.y>a.height+c&&"bottom"===t||n.inverse&&e.y<-c&&"top"===t)&&r.particles.remove(i)}else{if(i.velocity.y>0&&i.position.y<=a.height+c||i.velocity.y<0&&i.position.y>=-c||i.velocity.x>0&&i.position.x<=a.width+c||i.velocity.x<0&&i.position.x>=-c)return;(0,o.Ac)(i.position,r.canvas.size,o.OW.origin,c,t)||r.particles.remove(i)}await Promise.resolve()}}}}]);
@@ -1 +0,0 @@
1
- /*! tsParticles Fireworks v3.2.2 by Matteo Bruni */
package/921.min.js DELETED
@@ -1,2 +0,0 @@
1
- /*! For license information please see 921.min.js.LICENSE.txt */
2
- (this.webpackChunk_tsparticles_fireworks=this.webpackChunk_tsparticles_fireworks||[]).push([[921],{9921:(e,a,t)=>{async function i(e,a=!0){await e.addParticleUpdater("life",(async e=>{const{LifeUpdater:a}=await t.e(126).then(t.bind(t,9126));return new a(e)}),a)}t.d(a,{loadLifeUpdater:()=>i})}}]);
@@ -1 +0,0 @@
1
- /*! tsParticles Fireworks v3.2.2 by Matteo Bruni */
package/929.min.js DELETED
@@ -1,2 +0,0 @@
1
- /*! For license information please see 929.min.js.LICENSE.txt */
2
- (this.webpackChunk_tsparticles_fireworks=this.webpackChunk_tsparticles_fireworks||[]).push([[929],{5245:(t,i,e)=>{e.d(i,{EmittersPlugin:()=>n});var o=e(3624),s=e(4718);class n{constructor(t){this._engine=t,this.id="emitters"}async getPlugin(t){const{Emitters:i}=await e.e(245).then(e.bind(e,4245));return new i(this._engine,t)}loadOptions(t,i){if(!this.needsPlugin(t)&&!this.needsPlugin(i))return;i?.emitters&&(t.emitters=(0,o.KH)(i.emitters,(t=>{const i=new s.Emitter;return i.load(t),i})));const e=i?.interactivity?.modes?.emitters;if(e)if((0,o.kJ)(e))t.interactivity.modes.emitters={random:{count:1,enable:!0},value:e.map((t=>{const i=new s.Emitter;return i.load(t),i}))};else{const i=e;if(void 0!==i.value){const e=1;if((0,o.kJ)(i.value))t.interactivity.modes.emitters={random:{count:i.random.count??e,enable:i.random.enable??!1},value:i.value.map((t=>{const i=new s.Emitter;return i.load(t),i}))};else{const o=new s.Emitter;o.load(i.value),t.interactivity.modes.emitters={random:{count:i.random.count??e,enable:i.random.enable??!1},value:o}}}else{(t.interactivity.modes.emitters={random:{count:1,enable:!1},value:new s.Emitter}).value.load(e)}}}needsPlugin(t){if(!t)return!1;const i=t.emitters;return(0,o.kJ)(i)&&!!i.length||void 0!==i||!!t.interactivity?.events?.onClick?.mode&&(0,o.dB)("emitter",t.interactivity.events.onClick.mode)}}},4718:(t,i,e)=>{e.d(i,{Emitter:()=>l});var o=e(3624);class s{constructor(){this.wait=!1}load(t){t&&(void 0!==t.count&&(this.count=t.count),void 0!==t.delay&&(this.delay=(0,o.Cs)(t.delay)),void 0!==t.duration&&(this.duration=(0,o.Cs)(t.duration)),void 0!==t.wait&&(this.wait=t.wait))}}class n{constructor(){this.quantity=1,this.delay=.1}load(t){void 0!==t&&(void 0!==t.quantity&&(this.quantity=(0,o.Cs)(t.quantity)),void 0!==t.delay&&(this.delay=(0,o.Cs)(t.delay)))}}class a{constructor(){this.color=!1,this.opacity=!1}load(t){t&&(void 0!==t.color&&(this.color=t.color),void 0!==t.opacity&&(this.opacity=t.opacity))}}class r{constructor(){this.options={},this.replace=new a,this.type="square"}load(t){t&&(void 0!==t.options&&(this.options=(0,o.ZB)({},t.options??{})),this.replace.load(t.replace),void 0!==t.type&&(this.type=t.type))}}var d=e(4777);class l{constructor(){this.autoPlay=!0,this.fill=!0,this.life=new s,this.rate=new n,this.shape=new r,this.startCount=0}load(t){t&&(void 0!==t.autoPlay&&(this.autoPlay=t.autoPlay),void 0!==t.size&&(this.size||(this.size=new d.r),this.size.load(t.size)),void 0!==t.direction&&(this.direction=t.direction),this.domId=t.domId,void 0!==t.fill&&(this.fill=t.fill),this.life.load(t.life),this.name=t.name,this.particles=(0,o.KH)(t.particles,(t=>(0,o.ZB)({},t))),this.rate.load(t.rate),this.shape.load(t.shape),void 0!==t.position&&(this.position={},void 0!==t.position.x&&(this.position.x=(0,o.Cs)(t.position.x)),void 0!==t.position.y&&(this.position.y=(0,o.Cs)(t.position.y))),void 0!==t.spawnColor&&(void 0===this.spawnColor&&(this.spawnColor=new o.RC),this.spawnColor.load(t.spawnColor)),void 0!==t.startCount&&(this.startCount=t.startCount))}}},4777:(t,i,e)=>{e.d(i,{r:()=>o});class o{constructor(){this.mode="percent",this.height=0,this.width=0}load(t){void 0!==t&&(void 0!==t.mode&&(this.mode=t.mode),void 0!==t.height&&(this.height=t.height),void 0!==t.width&&(this.width=t.width))}}}}]);
@@ -1 +0,0 @@
1
- /*! tsParticles Fireworks v3.2.2 by Matteo Bruni */
package/937.min.js DELETED
@@ -1,2 +0,0 @@
1
- /*! For license information please see 937.min.js.LICENSE.txt */
2
- (this.webpackChunk_tsparticles_fireworks=this.webpackChunk_tsparticles_fireworks||[]).push([[937],{9937:(t,e,a)=>{async function r(t,e=!0){await t.addParticleUpdater("destroy",(async e=>{const{DestroyUpdater:r}=await a.e(88).then(a.bind(a,8088));return new r(t,e)}),e)}a.d(e,{loadDestroyUpdater:()=>r})}}]);
@@ -1 +0,0 @@
1
- /*! tsParticles Fireworks v3.2.2 by Matteo Bruni */
package/952.min.js DELETED
@@ -1,2 +0,0 @@
1
- /*! For license information please see 952.min.js.LICENSE.txt */
2
- (this.webpackChunk_tsparticles_fireworks=this.webpackChunk_tsparticles_fireworks||[]).push([[952],{952:(t,i,a)=>{a.d(i,{TrailDrawer:()=>l});var r=a(3624);const e=.5;class l{async draw(t){const{context:i,radius:a,particle:r}=t,l=2*a,n=r.container.retina.pixelRatio,o=r.getPosition();if(!r.trail||!r.trailLength)return;const s=r.trailLength+a;if(r.trail.push({color:i.fillStyle??i.strokeStyle,position:{x:o.x,y:o.y}}),r.trail.length<2)return;for(;r.trail.length>s;)r.trail.shift();const h=Math.min(r.trail.length,s),c=o.x,x=o.y,d=r.container.canvas.size.width+l,y=r.container.canvas.size.height+l;let p=r.trail[h-1].position;const f=1,g=0,m=0,M=1;i.setTransform(f,g,m,M,o.x,o.y);for(let t=h;t>0;t--){const a=r.trail[t-1],o=a.position;i.beginPath(),i.moveTo(p.x-c,p.y-x);const s={x:(p.x+d)%d,y:(p.y+y)%y};if(Math.abs(p.x-o.x)>d*e||Math.abs(p.y-o.y)>y*e){p=o;continue}i.lineTo((Math.abs(p.x-o.x)>d*e?s.x:o.x)-c,(Math.abs(p.y-o.y)>y*e?s.y:o.y)-x);const f=Math.max(t/h*l,n,r.trailMinWidth??-1),g=i.globalAlpha;i.globalAlpha=r.trailFade?t/h:1,i.lineWidth=r.trailMaxWidth?Math.min(f,r.trailMaxWidth):f,i.strokeStyle=a.color,i.stroke(),i.globalAlpha=g,p=o}const{transformData:b}=t;i.setTransform(b.a,b.b,b.c,b.d,o.x,o.y),await Promise.resolve()}async particleInit(t,i){i.trail=[];const a=i.effectData;i.trailFade=a?.fade??!0,i.trailLength=(0,r.Gu)(a?.length??10)*t.retina.pixelRatio,i.trailMaxWidth=a?.maxWidth?(0,r.Gu)(a.maxWidth)*t.retina.pixelRatio:void 0,i.trailMinWidth=a?.minWidth?(0,r.Gu)(a.minWidth)*t.retina.pixelRatio:void 0,await Promise.resolve()}}}}]);
@@ -1 +0,0 @@
1
- /*! tsParticles Fireworks v3.2.2 by Matteo Bruni */
package/973.min.js DELETED
@@ -1,2 +0,0 @@
1
- /*! For license information please see 973.min.js.LICENSE.txt */
2
- (this.webpackChunk_tsparticles_fireworks=this.webpackChunk_tsparticles_fireworks||[]).push([[973],{4973:(c,e,i)=>{i.d(e,{drawCircle:()=>n});const a=2*Math.PI,r=0,t={x:0,y:0};function n(c){const{context:e,particle:i,radius:n}=c;i.circleRange||(i.circleRange={min:r,max:a});const s=i.circleRange;e.arc(t.x,t.y,n,s.min,s.max,!1)}}}]);
@@ -1 +0,0 @@
1
- /*! tsParticles Fireworks v3.2.2 by Matteo Bruni */
package/994.min.js DELETED
@@ -1,2 +0,0 @@
1
- /*! For license information please see 994.min.js.LICENSE.txt */
2
- (this.webpackChunk_tsparticles_fireworks=this.webpackChunk_tsparticles_fireworks||[]).push([[994],{4994:(t,e,a)=>{a.d(e,{RotateUpdater:()=>r});var o=a(3624);class s{constructor(){this.enable=!1,this.speed=0,this.decay=0,this.sync=!1}load(t){t&&(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.speed&&(this.speed=(0,o.Cs)(t.speed)),void 0!==t.decay&&(this.decay=(0,o.Cs)(t.decay)),void 0!==t.sync&&(this.sync=t.sync))}}class i extends o.SW{constructor(){super(),this.animation=new s,this.direction="clockwise",this.path=!1,this.value=0}load(t){t&&(super.load(t),void 0!==t.direction&&(this.direction=t.direction),this.animation.load(t.animation),void 0!==t.path&&(this.path=t.path))}}const n=2*Math.PI;class r{constructor(t){this.container=t}async init(t){const e=t.options.rotate;if(!e)return;t.rotate={enable:e.animation.enable,value:(0,o.Id)((0,o.Gu)(e.value)),min:0,max:n},t.pathRotation=e.path;let a=e.direction;if("random"===a){a=Math.floor(2*(0,o.sZ)())>0?"counter-clockwise":"clockwise"}switch(a){case"counter-clockwise":case"counterClockwise":t.rotate.status="decreasing";break;case"clockwise":t.rotate.status="increasing"}const s=e.animation;s.enable&&(t.rotate.decay=1-(0,o.Gu)(s.decay),t.rotate.velocity=(0,o.Gu)(s.speed)/360*this.container.retina.reduceFactor,s.sync||(t.rotate.velocity*=(0,o.sZ)())),t.rotation=t.rotate.value,await Promise.resolve()}isEnabled(t){const e=t.options.rotate;return!!e&&(!t.destroyed&&!t.spawning&&e.animation.enable&&!e.path)}loadOptions(t,...e){t.rotate||(t.rotate=new i);for(const a of e)t.rotate.load(a?.rotate)}async update(t,e){this.isEnabled(t)&&t.rotate&&((0,o.Cr)(t,t.rotate,!1,"none",e),t.rotation=t.rotate.value,await Promise.resolve())}}}}]);
@@ -1 +0,0 @@
1
- /*! tsParticles Fireworks v3.2.2 by Matteo Bruni */
@@ -1,30 +0,0 @@
1
- /*!
2
- * Author : Matteo Bruni
3
- * MIT license: https://opensource.org/licenses/MIT
4
- * Demo / Generator : https://particles.js.org/
5
- * GitHub : https://www.github.com/matteobruni/tsparticles
6
- * How to use? : Check the GitHub README
7
- * v3.2.2
8
- */
9
- "use strict";
10
- /*
11
- * ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development").
12
- * This devtool is neither made for production nor for readable output files.
13
- * It uses "eval()" calls to create a separate source file in the browser devtools.
14
- * If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
15
- * or disable the default devtool with "devtool: false".
16
- * If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
17
- */
18
- (this["webpackChunk_tsparticles_fireworks"] = this["webpackChunk_tsparticles_fireworks"] || []).push([["basic_dist_browser_index_js"],{
19
-
20
- /***/ "../basic/dist/browser/index.js":
21
- /*!**************************************!*\
22
- !*** ../basic/dist/browser/index.js ***!
23
- \**************************************/
24
- /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
25
-
26
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ loadBasic: () => (/* binding */ loadBasic)\n/* harmony export */ });\nasync function loadBasic(engine, refresh = true) {\n const {\n loadBaseMover\n } = await __webpack_require__.e(/*! import() */ \"move_base_dist_browser_index_js\").then(__webpack_require__.bind(__webpack_require__, /*! @tsparticles/move-base */ \"../../move/base/dist/browser/index.js\")),\n {\n loadCircleShape\n } = await __webpack_require__.e(/*! import() */ \"shapes_circle_dist_browser_index_js\").then(__webpack_require__.bind(__webpack_require__, /*! @tsparticles/shape-circle */ \"../../shapes/circle/dist/browser/index.js\")),\n {\n loadColorUpdater\n } = await __webpack_require__.e(/*! import() */ \"updaters_color_dist_browser_index_js\").then(__webpack_require__.bind(__webpack_require__, /*! @tsparticles/updater-color */ \"../../updaters/color/dist/browser/index.js\")),\n {\n loadOpacityUpdater\n } = await __webpack_require__.e(/*! import() */ \"updaters_opacity_dist_browser_index_js\").then(__webpack_require__.bind(__webpack_require__, /*! @tsparticles/updater-opacity */ \"../../updaters/opacity/dist/browser/index.js\")),\n {\n loadOutModesUpdater\n } = await __webpack_require__.e(/*! import() */ \"updaters_outModes_dist_browser_index_js\").then(__webpack_require__.bind(__webpack_require__, /*! @tsparticles/updater-out-modes */ \"../../updaters/outModes/dist/browser/index.js\")),\n {\n loadSizeUpdater\n } = await __webpack_require__.e(/*! import() */ \"updaters_size_dist_browser_index_js\").then(__webpack_require__.bind(__webpack_require__, /*! @tsparticles/updater-size */ \"../../updaters/size/dist/browser/index.js\"));\n await loadBaseMover(engine, false);\n await loadCircleShape(engine, false);\n await loadColorUpdater(engine, false);\n await loadOpacityUpdater(engine, false);\n await loadOutModesUpdater(engine, false);\n await loadSizeUpdater(engine, false);\n await engine.refresh(refresh);\n}\n\n//# sourceURL=webpack://@tsparticles/fireworks/../basic/dist/browser/index.js?");
27
-
28
- /***/ })
29
-
30
- }]);
@@ -1,30 +0,0 @@
1
- /*!
2
- * Author : Matteo Bruni
3
- * MIT license: https://opensource.org/licenses/MIT
4
- * Demo / Generator : https://particles.js.org/
5
- * GitHub : https://www.github.com/matteobruni/tsparticles
6
- * How to use? : Check the GitHub README
7
- * v3.2.2
8
- */
9
- "use strict";
10
- /*
11
- * ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development").
12
- * This devtool is neither made for production nor for readable output files.
13
- * It uses "eval()" calls to create a separate source file in the browser devtools.
14
- * If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
15
- * or disable the default devtool with "devtool: false".
16
- * If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
17
- */
18
- (this["webpackChunk_tsparticles_fireworks"] = this["webpackChunk_tsparticles_fireworks"] || []).push([["effects_trail_dist_browser_TrailDrawer_js"],{
19
-
20
- /***/ "../../effects/trail/dist/browser/TrailDrawer.js":
21
- /*!*******************************************************!*\
22
- !*** ../../effects/trail/dist/browser/TrailDrawer.js ***!
23
- \*******************************************************/
24
- /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
25
-
26
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ TrailDrawer: () => (/* binding */ TrailDrawer)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"../../engine/dist/browser/index.js\");\n\nconst double = 2,\n minTrailLength = 2,\n trailLengthOffset = 1,\n noItems = 0,\n half = 0.5,\n minWidth = -1,\n defaultLength = 10,\n defaultAlpha = 1;\nclass TrailDrawer {\n async draw(data) {\n const {\n context,\n radius,\n particle\n } = data,\n diameter = radius * double,\n pxRatio = particle.container.retina.pixelRatio,\n currentPos = particle.getPosition();\n if (!particle.trail || !particle.trailLength) {\n return;\n }\n const pathLength = particle.trailLength + radius;\n particle.trail.push({\n color: context.fillStyle ?? context.strokeStyle,\n position: {\n x: currentPos.x,\n y: currentPos.y\n }\n });\n if (particle.trail.length < minTrailLength) {\n return;\n }\n while (particle.trail.length > pathLength) {\n particle.trail.shift();\n }\n const trailLength = Math.min(particle.trail.length, pathLength),\n offsetPos = {\n x: currentPos.x,\n y: currentPos.y\n },\n canvasSize = {\n width: particle.container.canvas.size.width + diameter,\n height: particle.container.canvas.size.height + diameter\n };\n let lastPos = particle.trail[trailLength - trailLengthOffset].position;\n const defaultTransform = {\n a: 1,\n b: 0,\n c: 0,\n d: 1\n };\n context.setTransform(defaultTransform.a, defaultTransform.b, defaultTransform.c, defaultTransform.d, currentPos.x, currentPos.y);\n for (let i = trailLength; i > noItems; i--) {\n const step = particle.trail[i - trailLengthOffset],\n position = step.position;\n context.beginPath();\n context.moveTo(lastPos.x - offsetPos.x, lastPos.y - offsetPos.y);\n const warp = {\n x: (lastPos.x + canvasSize.width) % canvasSize.width,\n y: (lastPos.y + canvasSize.height) % canvasSize.height\n };\n if (Math.abs(lastPos.x - position.x) > canvasSize.width * half || Math.abs(lastPos.y - position.y) > canvasSize.height * half) {\n lastPos = position;\n continue;\n }\n context.lineTo((Math.abs(lastPos.x - position.x) > canvasSize.width * half ? warp.x : position.x) - offsetPos.x, (Math.abs(lastPos.y - position.y) > canvasSize.height * half ? warp.y : position.y) - offsetPos.y);\n const width = Math.max(i / trailLength * diameter, pxRatio, particle.trailMinWidth ?? minWidth),\n oldAlpha = context.globalAlpha;\n context.globalAlpha = particle.trailFade ? i / trailLength : defaultAlpha;\n context.lineWidth = particle.trailMaxWidth ? Math.min(width, particle.trailMaxWidth) : width;\n context.strokeStyle = step.color;\n context.stroke();\n context.globalAlpha = oldAlpha;\n lastPos = position;\n }\n const {\n transformData\n } = data;\n context.setTransform(transformData.a, transformData.b, transformData.c, transformData.d, currentPos.x, currentPos.y);\n await Promise.resolve();\n }\n async particleInit(container, particle) {\n particle.trail = [];\n const effectData = particle.effectData;\n particle.trailFade = effectData?.fade ?? true;\n particle.trailLength = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(effectData?.length ?? defaultLength) * container.retina.pixelRatio;\n particle.trailMaxWidth = effectData?.maxWidth ? (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(effectData.maxWidth) * container.retina.pixelRatio : undefined;\n particle.trailMinWidth = effectData?.minWidth ? (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.getRangeValue)(effectData.minWidth) * container.retina.pixelRatio : undefined;\n await Promise.resolve();\n }\n}\n\n//# sourceURL=webpack://@tsparticles/fireworks/../../effects/trail/dist/browser/TrailDrawer.js?");
27
-
28
- /***/ })
29
-
30
- }]);
@@ -1,30 +0,0 @@
1
- /*!
2
- * Author : Matteo Bruni
3
- * MIT license: https://opensource.org/licenses/MIT
4
- * Demo / Generator : https://particles.js.org/
5
- * GitHub : https://www.github.com/matteobruni/tsparticles
6
- * How to use? : Check the GitHub README
7
- * v3.2.2
8
- */
9
- "use strict";
10
- /*
11
- * ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development").
12
- * This devtool is neither made for production nor for readable output files.
13
- * It uses "eval()" calls to create a separate source file in the browser devtools.
14
- * If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
15
- * or disable the default devtool with "devtool: false".
16
- * If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
17
- */
18
- (this["webpackChunk_tsparticles_fireworks"] = this["webpackChunk_tsparticles_fireworks"] || []).push([["effects_trail_dist_browser_index_js"],{
19
-
20
- /***/ "../../effects/trail/dist/browser/index.js":
21
- /*!*************************************************!*\
22
- !*** ../../effects/trail/dist/browser/index.js ***!
23
- \*************************************************/
24
- /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
25
-
26
- eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ loadTrailEffect: () => (/* binding */ loadTrailEffect)\n/* harmony export */ });\nasync function loadTrailEffect(engine, refresh = true) {\n const {\n TrailDrawer\n } = await __webpack_require__.e(/*! import() */ \"effects_trail_dist_browser_TrailDrawer_js\").then(__webpack_require__.bind(__webpack_require__, /*! ./TrailDrawer.js */ \"../../effects/trail/dist/browser/TrailDrawer.js\"));\n await engine.addEffect(\"trail\", new TrailDrawer(), refresh);\n}\n\n//# sourceURL=webpack://@tsparticles/fireworks/../../effects/trail/dist/browser/index.js?");
27
-
28
- /***/ })
29
-
30
- }]);