@tsparticles/engine 4.0.0-beta.0 → 4.0.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/155.min.js +1 -0
- package/README.md +0 -21
- package/browser/Core/CanvasManager.js +303 -0
- package/browser/Core/Container.js +64 -34
- package/browser/Core/Engine.js +26 -138
- package/browser/Core/Interfaces/IPositionFromSizeParams.js +1 -1
- package/browser/Core/Particle.js +29 -28
- package/{cjs/Core/Particles.js → browser/Core/ParticlesManager.js} +28 -57
- package/browser/Core/RenderManager.js +303 -0
- package/browser/Core/Retina.js +3 -8
- package/browser/Core/Utils/PluginManager.js +145 -0
- package/browser/Options/Classes/Options.js +7 -7
- package/browser/Options/Classes/Particles/ParticlesOptions.js +5 -5
- package/browser/Types/CanvasContextType.js +1 -0
- package/browser/Utils/CanvasUtils.js +1 -1
- package/browser/Utils/ColorUtils.js +21 -21
- package/browser/Utils/LogUtils.js +1 -0
- package/browser/Utils/OptionsUtils.js +2 -2
- package/cjs/Core/CanvasManager.js +303 -0
- package/cjs/Core/Container.js +64 -34
- package/cjs/Core/Engine.js +26 -138
- package/cjs/Core/Interfaces/IPositionFromSizeParams.js +1 -1
- package/cjs/Core/Particle.js +29 -28
- package/{esm/Core/Particles.js → cjs/Core/ParticlesManager.js} +28 -57
- package/cjs/Core/RenderManager.js +303 -0
- package/cjs/Core/Retina.js +3 -8
- package/cjs/Core/Utils/PluginManager.js +145 -0
- package/cjs/Options/Classes/Options.js +7 -7
- package/cjs/Options/Classes/Particles/ParticlesOptions.js +5 -5
- package/cjs/Types/CanvasContextType.js +1 -0
- package/cjs/Utils/CanvasUtils.js +1 -1
- package/cjs/Utils/ColorUtils.js +21 -21
- package/cjs/Utils/LogUtils.js +1 -0
- package/cjs/Utils/OptionsUtils.js +2 -2
- package/dist_browser_Core_Container_js.js +24 -14
- package/esm/Core/CanvasManager.js +303 -0
- package/esm/Core/Container.js +64 -34
- package/esm/Core/Engine.js +26 -138
- package/esm/Core/Interfaces/IPositionFromSizeParams.js +1 -1
- package/esm/Core/Particle.js +29 -28
- package/{browser/Core/Particles.js → esm/Core/ParticlesManager.js} +28 -57
- package/esm/Core/RenderManager.js +303 -0
- package/esm/Core/Retina.js +3 -8
- package/esm/Core/Utils/PluginManager.js +145 -0
- package/esm/Options/Classes/Options.js +7 -7
- package/esm/Options/Classes/Particles/ParticlesOptions.js +5 -5
- package/esm/Types/CanvasContextType.js +1 -0
- package/esm/Utils/CanvasUtils.js +1 -1
- package/esm/Utils/ColorUtils.js +21 -21
- package/esm/Utils/LogUtils.js +1 -0
- package/esm/Utils/OptionsUtils.js +2 -2
- package/package.json +2 -3
- package/report.html +84 -29
- package/tsparticles.engine.js +18 -8
- package/tsparticles.engine.min.js +2 -2
- package/types/Core/CanvasManager.d.ts +39 -0
- package/types/Core/Container.d.ts +26 -7
- package/types/Core/Engine.d.ts +2 -54
- package/types/Core/Interfaces/IContainerPlugin.d.ts +8 -7
- package/types/Core/Interfaces/IDrawParticleParams.d.ts +2 -1
- package/types/Core/Interfaces/IParticleRetinaProps.d.ts +4 -4
- package/types/Core/Interfaces/IParticleUpdater.d.ts +2 -1
- package/types/Core/Interfaces/IShapeDrawData.d.ts +2 -1
- package/types/Core/Particle.d.ts +4 -4
- package/types/Core/{Particles.d.ts → ParticlesManager.d.ts} +4 -11
- package/types/Core/{Canvas.d.ts → RenderManager.d.ts} +12 -33
- package/types/Core/Retina.d.ts +0 -2
- package/types/Core/Utils/PluginManager.d.ts +62 -0
- package/types/Options/Classes/Options.d.ts +3 -3
- package/types/Options/Classes/Particles/ParticlesOptions.d.ts +3 -3
- package/types/Types/CanvasContextType.d.ts +1 -0
- package/types/Utils/CanvasUtils.d.ts +8 -5
- package/types/Utils/ColorUtils.d.ts +8 -8
- package/types/Utils/LogUtils.d.ts +1 -0
- package/types/Utils/OptionsUtils.d.ts +2 -2
- package/types/export-types.d.ts +4 -2
- package/164.min.js +0 -1
- package/browser/Core/Canvas.js +0 -570
- package/cjs/Core/Canvas.js +0 -570
- package/esm/Core/Canvas.js +0 -570
- package/umd/Core/Canvas.js +0 -584
- package/umd/Core/Container.js +0 -356
- package/umd/Core/Engine.js +0 -295
- package/umd/Core/Interfaces/Colors.js +0 -12
- package/umd/Core/Interfaces/IBounds.js +0 -12
- package/umd/Core/Interfaces/IBubbleParticleData.js +0 -12
- package/umd/Core/Interfaces/ICircleBouncer.js +0 -12
- package/umd/Core/Interfaces/IColorManager.js +0 -12
- package/umd/Core/Interfaces/IContainerPlugin.js +0 -12
- package/umd/Core/Interfaces/ICoordinates.js +0 -12
- package/umd/Core/Interfaces/IDelta.js +0 -12
- package/umd/Core/Interfaces/IDimension.js +0 -12
- package/umd/Core/Interfaces/IDistance.js +0 -12
- package/umd/Core/Interfaces/IDrawParticleParams.js +0 -12
- package/umd/Core/Interfaces/IEffectDrawer.js +0 -12
- package/umd/Core/Interfaces/ILoadParams.js +0 -12
- package/umd/Core/Interfaces/IPalette.js +0 -12
- package/umd/Core/Interfaces/IParticleColorStyle.js +0 -12
- package/umd/Core/Interfaces/IParticleHslAnimation.js +0 -12
- package/umd/Core/Interfaces/IParticleLife.js +0 -12
- package/umd/Core/Interfaces/IParticleOpacityData.js +0 -12
- package/umd/Core/Interfaces/IParticleRetinaProps.js +0 -12
- package/umd/Core/Interfaces/IParticleRoll.js +0 -12
- package/umd/Core/Interfaces/IParticleRotateData.js +0 -12
- package/umd/Core/Interfaces/IParticleTransformValues.js +0 -12
- package/umd/Core/Interfaces/IParticleUpdater.js +0 -12
- package/umd/Core/Interfaces/IParticleValueAnimation.js +0 -12
- package/umd/Core/Interfaces/IPlugin.js +0 -12
- package/umd/Core/Interfaces/IPositionFromSizeParams.js +0 -12
- package/umd/Core/Interfaces/IRangeValue.js +0 -12
- package/umd/Core/Interfaces/IShapeDrawData.js +0 -12
- package/umd/Core/Interfaces/IShapeDrawer.js +0 -12
- package/umd/Core/Interfaces/IShapeValues.js +0 -12
- package/umd/Core/Interfaces/ISlowParticleData.js +0 -12
- package/umd/Core/Particle.js +0 -432
- package/umd/Core/Particles.js +0 -407
- package/umd/Core/Retina.js +0 -52
- package/umd/Core/Utils/Constants.js +0 -23
- package/umd/Core/Utils/EventListeners.js +0 -102
- package/umd/Core/Utils/Ranges.js +0 -91
- package/umd/Core/Utils/SpatialHashGrid.js +0 -116
- package/umd/Core/Utils/Vectors.js +0 -126
- package/umd/Enums/AnimationStatus.js +0 -18
- package/umd/Enums/Directions/MoveDirection.js +0 -27
- package/umd/Enums/Directions/OutModeDirection.js +0 -20
- package/umd/Enums/Directions/RotateDirection.js +0 -19
- package/umd/Enums/Modes/AnimationMode.js +0 -20
- package/umd/Enums/Modes/LimitMode.js +0 -18
- package/umd/Enums/Modes/OutMode.js +0 -21
- package/umd/Enums/Modes/PixelMode.js +0 -18
- package/umd/Enums/RangeType.js +0 -18
- package/umd/Enums/Types/AlterType.js +0 -18
- package/umd/Enums/Types/DestroyType.js +0 -19
- package/umd/Enums/Types/EasingType.js +0 -58
- package/umd/Enums/Types/EventType.js +0 -28
- package/umd/Enums/Types/GradientType.js +0 -19
- package/umd/Enums/Types/ParticleOutType.js +0 -19
- package/umd/Enums/Types/StartValueType.js +0 -19
- package/umd/Options/Classes/AnimatableColor.js +0 -52
- package/umd/Options/Classes/AnimationOptions.js +0 -79
- package/umd/Options/Classes/Background/Background.js +0 -56
- package/umd/Options/Classes/ColorAnimation.js +0 -44
- package/umd/Options/Classes/FullScreen/FullScreen.js +0 -34
- package/umd/Options/Classes/HslAnimation.js +0 -30
- package/umd/Options/Classes/Options.js +0 -171
- package/umd/Options/Classes/OptionsColor.js +0 -42
- package/umd/Options/Classes/Particles/Bounce/ParticlesBounce.js +0 -31
- package/umd/Options/Classes/Particles/Bounce/ParticlesBounceFactor.js +0 -21
- package/umd/Options/Classes/Particles/Effect/Effect.js +0 -46
- package/umd/Options/Classes/Particles/Fill.js +0 -42
- package/umd/Options/Classes/Particles/Move/Move.js +0 -120
- package/umd/Options/Classes/Particles/Move/MoveAngle.js +0 -35
- package/umd/Options/Classes/Particles/Move/MoveCenter.js +0 -45
- package/umd/Options/Classes/Particles/Move/MoveGravity.js +0 -45
- package/umd/Options/Classes/Particles/Move/OutModes.js +0 -38
- package/umd/Options/Classes/Particles/Move/Path/MovePath.js +0 -46
- package/umd/Options/Classes/Particles/Move/Spin.js +0 -40
- package/umd/Options/Classes/Particles/Number/ParticlesDensity.js +0 -41
- package/umd/Options/Classes/Particles/Number/ParticlesNumber.js +0 -37
- package/umd/Options/Classes/Particles/Number/ParticlesNumberLimit.js +0 -35
- package/umd/Options/Classes/Particles/Opacity/Opacity.js +0 -35
- package/umd/Options/Classes/Particles/Opacity/OpacityAnimation.js +0 -34
- package/umd/Options/Classes/Particles/ParticlesOptions.js +0 -116
- package/umd/Options/Classes/Particles/Shape/Shape.js +0 -46
- package/umd/Options/Classes/Particles/Size/Size.js +0 -35
- package/umd/Options/Classes/Particles/Size/SizeAnimation.js +0 -34
- package/umd/Options/Classes/Particles/Stroke.js +0 -39
- package/umd/Options/Classes/Particles/ZIndex/ZIndex.js +0 -42
- package/umd/Options/Classes/ResizeEvent.js +0 -34
- package/umd/Options/Classes/ValueWithRandom.js +0 -56
- package/umd/Options/Interfaces/Background/IBackground.js +0 -12
- package/umd/Options/Interfaces/FullScreen/IFullScreen.js +0 -12
- package/umd/Options/Interfaces/IAnimatable.js +0 -12
- package/umd/Options/Interfaces/IAnimatableColor.js +0 -12
- package/umd/Options/Interfaces/IAnimation.js +0 -12
- package/umd/Options/Interfaces/IColorAnimation.js +0 -12
- package/umd/Options/Interfaces/IHslAnimation.js +0 -12
- package/umd/Options/Interfaces/IOptionLoader.js +0 -12
- package/umd/Options/Interfaces/IOptions.js +0 -12
- package/umd/Options/Interfaces/IOptionsColor.js +0 -12
- package/umd/Options/Interfaces/IResizeEvent.js +0 -12
- package/umd/Options/Interfaces/IValueWithRandom.js +0 -12
- package/umd/Options/Interfaces/Particles/Bounce/IParticlesBounce.js +0 -12
- package/umd/Options/Interfaces/Particles/Effect/IEffect.js +0 -12
- package/umd/Options/Interfaces/Particles/IFill.js +0 -12
- package/umd/Options/Interfaces/Particles/IParticlesOptions.js +0 -12
- package/umd/Options/Interfaces/Particles/IStroke.js +0 -12
- package/umd/Options/Interfaces/Particles/Move/IMove.js +0 -12
- package/umd/Options/Interfaces/Particles/Move/IMoveAngle.js +0 -12
- package/umd/Options/Interfaces/Particles/Move/IMoveCenter.js +0 -12
- package/umd/Options/Interfaces/Particles/Move/IMoveGravity.js +0 -12
- package/umd/Options/Interfaces/Particles/Move/IOutModes.js +0 -12
- package/umd/Options/Interfaces/Particles/Move/ISpin.js +0 -12
- package/umd/Options/Interfaces/Particles/Move/Path/IMovePath.js +0 -12
- package/umd/Options/Interfaces/Particles/Number/IParticlesDensity.js +0 -12
- package/umd/Options/Interfaces/Particles/Number/IParticlesNumber.js +0 -12
- package/umd/Options/Interfaces/Particles/Number/IParticlesNumberLimit.js +0 -12
- package/umd/Options/Interfaces/Particles/Opacity/IOpacity.js +0 -12
- package/umd/Options/Interfaces/Particles/Opacity/IOpacityAnimation.js +0 -12
- package/umd/Options/Interfaces/Particles/Shape/IShape.js +0 -12
- package/umd/Options/Interfaces/Particles/Size/ISize.js +0 -12
- package/umd/Options/Interfaces/Particles/Size/ISizeAnimation.js +0 -12
- package/umd/Options/Interfaces/Particles/ZIndex/IZIndex.js +0 -12
- package/umd/Types/CustomEventArgs.js +0 -12
- package/umd/Types/CustomEventListener.js +0 -12
- package/umd/Types/EasingFunction.js +0 -12
- package/umd/Types/EngineInitializers.js +0 -12
- package/umd/Types/ExportResult.js +0 -12
- package/umd/Types/ISourceOptions.js +0 -12
- package/umd/Types/ParticlesGroups.js +0 -12
- package/umd/Types/PathOptions.js +0 -12
- package/umd/Types/RangeValue.js +0 -12
- package/umd/Types/RecursivePartial.js +0 -12
- package/umd/Types/ShapeData.js +0 -12
- package/umd/Types/SingleOrMultiple.js +0 -12
- package/umd/Utils/CanvasUtils.js +0 -145
- package/umd/Utils/ColorUtils.js +0 -395
- package/umd/Utils/EventDispatcher.js +0 -63
- package/umd/Utils/LogUtils.js +0 -36
- package/umd/Utils/MathUtils.js +0 -203
- package/umd/Utils/OptionsUtils.js +0 -25
- package/umd/Utils/TypeUtils.js +0 -40
- package/umd/Utils/Utils.js +0 -484
- package/umd/bundle.js +0 -32
- package/umd/export-types.js +0 -12
- package/umd/exports.js +0 -82
- package/umd/index.js +0 -32
- package/umd/initEngine.js +0 -17
|
@@ -1,2 +1,2 @@
|
|
|
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,o,s,r,l,d={1590(e,t,i){i.d(t,{$G:()=>L,$_:()=>E,$v:()=>K,$x:()=>O,BF:()=>eg,BW:()=>p,DN:()=>N,D_:()=>ed,Dv:()=>eu,Eo:()=>Y,Fl:()=>em,GW:()=>C,Ie:()=>D,JC:()=>q,K3:()=>eo,L1:()=>F,LD:()=>er,MX:()=>l,NF:()=>o,Nu:()=>ep,Nx:()=>W,PZ:()=>X,Pf:()=>ew,R1:()=>v,RF:()=>x,RV:()=>Z,Rq:()=>V,U0:()=>I,Ug:()=>c,WH:()=>U,X$:()=>b,X_:()=>ee,Xu:()=>d,Zp:()=>P,a5:()=>r,aE:()=>ev,aZ:()=>m,bo:()=>u,ce:()=>y,dm:()=>M,dv:()=>Q,eb:()=>a,eu:()=>T,gd:()=>f,hB:()=>k,hK:()=>eb,hv:()=>G,i8:()=>j,iU:()=>ec,iX:()=>z,jn:()=>ey,lA:()=>es,mR:()=>h,nK:()=>s,nq:()=>ei,oi:()=>R,ou:()=>et,rq:()=>w,tA:()=>el,tR:()=>ex,vF:()=>H,vS:()=>_,vd:()=>eh,w2:()=>B,wM:()=>ea,xH:()=>J,xd:()=>S,yj:()=>n,yx:()=>A,z$:()=>g,z9:()=>en,zg:()=>ef,zs:()=>$});let a="generated",n="source-over",o="resize",s="visibilitychange",r=100,l=.5,d=1e3,u={x:0,y:0,z:0},c={a:1,b:0,c:0,d:1},h="random",p="mid",f=2,v=2*Math.PI,g=60,m=1,y="true",b="false",x="canvas",w=0,M=2,z=100,S=1,O=1,P=1,k=1,R=255,_=360,T=100,E=100,F=0,A=0,I=60,D=0,L=.25,V=.75,C=0,$=1,B=0,Z=1,G=1,q=1,H=0,j=120,N=0,W=0,K=1e4,X=0,J=1,Q=0,U=1,Y=1,ee=0,et=0,ei=1,ea=0,en=0,eo=1,es=1,er=1,el=0,ed=1,eu=0,ec=1,eh=0,ep=3,ef=6,ev=1,eg=1,em=0,ey=0,eb=0,ex=0,ew=1},5821(e,t,i){i.d(t,{dg:()=>r,jl:()=>l,M_:()=>d}),(a=n||(n={})).circle="circle",a.rectangle="rectangle";var a,n,o=i(3884),s=i(1590);class r{position;type;constructor(e,t,i){this.position={x:e,y:t},this.type=i}_resetPosition(e,t){this.position.x=e,this.position.y=t}}class l extends r{radius;constructor(e,t,i){super(e,t,n.circle),this.radius=i}contains(e){return(0,o.gp)(e,this.position,this.radius)}intersects(e){let t=this.position,i=e.position,a=this.radius,o=Math.abs(i.x-t.x),r=Math.abs(i.y-t.y);if(e instanceof l||e.type===n.circle)return a+e.radius>Math.hypot(o,r);if(e instanceof d||e.type===n.rectangle){let{width:t,height:i}=e.size;return Math.pow(o-t,s.dm)+Math.pow(r-i,s.dm)<=a**s.dm||o<=a+t&&r<=a+i||o<=t||r<=i}return!1}reset(e,t,i){return this._resetPosition(e,t),this.radius=i,this}}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);if(!(e instanceof d))return!1;let t=this.size.width,i=this.size.height,a=this.position,n=e.position,o=e.size,s=o.width,r=o.height;return n.x<a.x+t&&n.x+s>a.x&&n.y<a.y+i&&n.y+r>a.y}reset(e,t,i,a){return this._resetPosition(e,t),this.size.width=i,this.size.height=a,this}}},2067(e,t,i){i.d(t,{M:()=>s,p:()=>o});var a=i(1590);function n(e){return"z"in e?e.z:a.bo.z}class o{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 o.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 o.create(e.x,e.y,n(e))}static create(e,t,i){return"number"==typeof e?new o(e,t??a.bo.y,i??a.bo.z):new o(e.x,e.y,n(e))}add(e){return o.create(this.x+e.x,this.y+e.y,this.z+n(e))}addTo(e){this.x+=e.x,this.y+=e.y,this.z+=n(e)}copy(){return o.clone(this)}div(e){return o.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 o.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 o.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=n(e)}sub(e){return o.create(this.x-e.x,this.y-e.y,this.z-n(e))}subFrom(e){this.x-=e.x,this.y-=e.y,this.z-=n(e)}_updateFromAngle(e,t){this.x=Math.cos(e)*t,this.y=Math.sin(e)*t}}class s extends o{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)}}},3096(e,t,i){var a,n;i.d(t,{H:()=>a}),(n=a||(a={})).increasing="increasing",n.decreasing="decreasing"},7613(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"},5735(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"},3494(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"},3443(e,t,i){var a,n;i.d(t,{d:()=>a}),(n=a||(a={})).delete="delete",n.wait="wait"},3652(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"},3048(e,t,i){var a,n;i.d(t,{q:()=>a}),(n=a||(a={})).precise="precise",n.percent="percent"},1826(e,t,i){var a,n;i.d(t,{H:()=>a}),(n=a||(a={})).darken="darken",n.enlighten="enlighten"},7320(e,t,i){var a,n;i.d(t,{V:()=>a}),(n=a||(a={})).none="none",n.max="max",n.min="min"},8202(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"},6492(e,t,i){var a,n;i.d(t,{x:()=>a}),(n=a||(a={})).normal="normal",n.inside="inside",n.outside="outside"},8113(e,t,i){var a,n;i.d(t,{S:()=>a}),(n=a||(a={})).max="max",n.min="min",n.random="random"},4036(e,t,i){i.d(t,{A:()=>s});var a=i(8130),n=i(9892),o=i(3930);class s extends o.O{animation;constructor(){super(),this.animation=new n.i}static create(e,t){let i=new s;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))}}},127(e,t,i){i.d(t,{Q:()=>l,p:()=>r});var a=i(3494),n=i(8113),o=i(8130),s=i(3884);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,o.kZ)(e)||(void 0!==e.count&&(this.count=(0,s.DT)(e.count)),void 0!==e.enable&&(this.enable=e.enable),void 0!==e.speed&&(this.speed=(0,s.DT)(e.speed)),void 0!==e.decay&&(this.decay=(0,s.DT)(e.decay)),void 0!==e.delay&&(this.delay=(0,s.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,o.kZ)(e)||(void 0!==e.mode&&(this.mode=e.mode),void 0!==e.startValue&&(this.startValue=e.startValue))}}},4162(e,t,i){i.d(t,{V:()=>o});var a=i(3930),n=i(8130);class o{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))}}},580(e,t,i){i.d(t,{e:()=>s});var a=i(127),n=i(8130),o=i(3884);class s extends a.p{max;min;offset;constructor(e,t){super(),this.min=e,this.max=t,this.offset=0,this.sync=!0}load(e){super.load(e),(0,n.kZ)(e)||(void 0!==e.max&&(this.max=e.max),void 0!==e.min&&(this.min=e.min),void 0!==e.offset&&(this.offset=(0,o.DT)(e.offset)))}}},3012(e,t,i){i.d(t,{m:()=>n});var a=i(8130);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))}}},9892(e,t,i){i.d(t,{i:()=>s});var a=i(1590),n=i(580),o=i(8130);class s{h=new n.e(a.L1,a.vS);l=new n.e(a.vd,a.$_);s=new n.e(a.yx,a.eu);load(e){(0,o.kZ)(e)||(this.h.load(e.h),this.s.load(e.s),this.l.load(e.l))}}},9289(e,t,i){i.d(t,{J:()=>u});var a=i(4874),n=i(8130),o=i(4162),s=i(3012),r=i(7959),l=i(3692),d=i(3884);class u{autoPlay;background;clear;defaultThemes;delay;detectRetina;duration;fpsLimit;fullScreen;hdr;key;name;palette;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 o.V,this.clear=!0,this.defaultThemes={},this.delay=0,this.fullScreen=new s.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&&(this.preset=e.preset,(0,a.wJ)(this.preset,e=>{this._importPreset(e)})),void 0!==e.palette&&(this.palette=e.palette,this._importPalette(this.palette)),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 o=e.fullScreen;(0,n.Lm)(o)?this.fullScreen.enable=o:this.fullScreen.load(o),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)})}_importPalette=e=>{let t=this._engine.getPalette(e);t&&this.load({background:{color:t.background},blend:{enable:!0,mode:t.blendMode},particles:{fill:{color:t.fill?{value:t.colors}:void 0,enable:t.fill},stroke:t.fill?void 0:t.colors.map(e=>({color:{value:e},width:1}))}})};_importPreset=e=>{this.load(this._engine.getPreset(e))}}},3930(e,t,i){i.d(t,{O:()=>n});var a=i(8130);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))}}},5439(e,t,i){i.d(t,{w:()=>o});var a=i(6912),n=i(8130);class o{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))}}},6912(e,t,i){i.d(t,{F:()=>n});var a=i(7397);class n extends a.PV{constructor(){super(),this.value=1}}},4534(e,t,i){i.d(t,{S:()=>s});var a=i(4036),n=i(8130),o=i(3884);class s{color;enable;opacity;constructor(){this.enable=!0,this.color=new a.A,this.color.value="#fff",this.opacity=1}load(e){(0,n.kZ)(e)||(void 0!==e.color&&(this.color=a.A.create(this.color,e.color)),void 0!==e.enable&&(this.enable=e.enable),void 0!==e.opacity&&(this.opacity=(0,o.DT)(e.opacity)))}}},7764(e,t,i){i.d(t,{y:()=>h});var a=i(7613),n=i(8130),o=i(8577),s=i(6189),r=i(6604),l=i(2135),d=i(3085),u=i(9693),c=i(3884);class h{angle;center;decay;direction;distance;drift;enable;gravity;outModes;path;random;size;speed;spin;straight;vibrate;warp;constructor(){this.angle=new o.h,this.center=new s.Z,this.decay=0,this.distance={},this.direction=a.F.none,this.drift=0,this.enable=!1,this.gravity=new r.y,this.path=new l.v,this.outModes=new d.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.center.load(e.center),void 0!==e.decay&&(this.decay=(0,c.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,c.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,c.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)}}},8577(e,t,i){i.d(t,{h:()=>o});var a=i(8130),n=i(3884);class o{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)))}}},6189(e,t,i){i.d(t,{Z:()=>o});var a=i(3048),n=i(8130);class o{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))}}},6604(e,t,i){i.d(t,{y:()=>o});var a=i(8130),n=i(3884);class o{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)))}}},3085(e,t,i){i.d(t,{j:()=>o});var a=i(3652),n=i(8130);class o{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)}}},2135(e,t,i){i.d(t,{v:()=>s});var a=i(7397),n=i(4874),o=i(8130);class s{clamp;delay;enable;generator;options;constructor(){this.clamp=!0,this.delay=new a.PV,this.enable=!1,this.options={}}load(e){!(0,o.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)))}}},9693(e,t,i){i.d(t,{t:()=>s});var a=i(4874),n=i(8130),o=i(3884);class s{acceleration;enable;position;constructor(){this.acceleration=0,this.enable=!1}load(e){!(0,n.kZ)(e)&&(void 0!==e.acceleration&&(this.acceleration=(0,o.DT)(e.acceleration)),void 0!==e.enable&&(this.enable=e.enable),e.position&&(this.position=(0,a.zw)({},e.position)))}}},5980(e,t,i){i.d(t,{M:()=>n});var a=i(8130);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)}}},1867(e,t,i){i.d(t,{N:()=>s});var a=i(5980),n=i(7076),o=i(8130);class s{density;limit;value;constructor(){this.density=new a.M,this.limit=new n.A,this.value=0}load(e){(0,o.kZ)(e)||(this.density.load(e.density),this.limit.load(e.limit),void 0!==e.value&&(this.value=e.value))}}},7076(e,t,i){i.d(t,{A:()=>o});var a=i(3443),n=i(8130);class o{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))}}},3280(e,t,i){i.d(t,{Y:()=>s});var a=i(9080),n=i(7397),o=i(8130);class s extends n.AI{animation;constructor(){super(),this.animation=new a.I,this.value=1}load(e){if((0,o.kZ)(e))return;super.load(e);let t=e.animation;void 0!==t&&this.animation.load(t)}}},9080(e,t,i){i.d(t,{I:()=>s});var a=i(7320),n=i(127),o=i(8130);class s extends n.Q{destroy;constructor(){super(),this.destroy=a.V.none,this.speed=2}load(e){super.load(e),(0,o.kZ)(e)||void 0!==e.destroy&&(this.destroy=e.destroy)}}},9896(e,t,i){i.d(t,{U:()=>v});var a=i(4874),n=i(8130);class o{close;options;type;constructor(){this.close=!0,this.options={},this.type=[]}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.type&&(this.type=e.type)}}var s=i(4534),r=i(7764),l=i(3280),d=i(5439),u=i(1867),c=i(3212),h=i(4276),p=i(9231),f=i(9578);class v{bounce;effect;fill;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.effect=new o,this.fill=new s.S,this.groups={},this.move=new r.y,this.number=new u.N,this.opacity=new l.Y,this.reduceDuplicates=!1,this.shape=new c.y,this.size=new h.o,this.stroke=new p.t,this.zIndex=new f.P}load(e){if((0,n.kZ)(e))return;if(void 0!==e.groups)for(let t of Object.keys(e.groups)){if(!(t in e.groups))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.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.fill;t&&(this.fill=(0,a.wJ)(t,e=>{let t=new s.S;return t.load(e),t}));let i=e.stroke;if(i&&(this.stroke=(0,a.wJ)(i,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)}}}},3212(e,t,i){i.d(t,{y:()=>o});var a=i(4874),n=i(8130);class o{close;options;type;constructor(){this.close=!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.type&&(this.type=e.type)}}},4276(e,t,i){i.d(t,{o:()=>s});var a=i(7397),n=i(2812),o=i(8130);class s extends a.AI{animation;constructor(){super(),this.animation=new n.q,this.value=3}load(e){if(super.load(e),(0,o.kZ)(e))return;let t=e.animation;void 0!==t&&this.animation.load(t)}}},2812(e,t,i){i.d(t,{q:()=>s});var a=i(7320),n=i(127),o=i(8130);class s extends n.Q{destroy;constructor(){super(),this.destroy=a.V.none,this.speed=5}load(e){super.load(e),(0,o.kZ)(e)||void 0!==e.destroy&&(this.destroy=e.destroy)}}},9231(e,t,i){i.d(t,{t:()=>s});var a=i(4036),n=i(8130),o=i(3884);class s{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,o.DT)(e.width)),void 0!==e.opacity&&(this.opacity=(0,o.DT)(e.opacity)))}}},9578(e,t,i){i.d(t,{P:()=>o});var a=i(7397),n=i(8130);class o 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))}}},7959(e,t,i){i.d(t,{z:()=>n});var a=i(8130);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))}}},7397(e,t,i){i.d(t,{AI:()=>l,Jm:()=>r,PV:()=>s});var a=i(127),n=i(8130),o=i(3884);class s{value;constructor(){this.value=0}load(e){!(0,n.kZ)(e)&&((0,n.kZ)(e.value)||(this.value=(0,o.DT)(e.value)))}}class r extends s{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)}}},9854(e,t,i){i.d(t,{IU:()=>s,KG:()=>u,Md:()=>o,Sn:()=>n,VG:()=>h,Wb:()=>p,gF:()=>c,k:()=>l,p0:()=>r,z5:()=>d});var a=i(1590);function n(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){if(!i)return;let o=e.globalAlpha;e.globalAlpha=n,e.drawImage(i,a.bo.x,a.bo.y,t.width,t.height),e.globalAlpha=o}function s(e,t){e.clearRect(a.bo.x,a.bo.y,t.width,t.height)}function r(e){let{container:t,context:i,particle:n,delta:o,colorStyles:s,radius:r,opacity:p,transform:f}=e,{effectDrawers:v,shapeDrawers:g}=t.particles,m=n.getPosition(),y=n.getTransformData(f),b=a.Pf,x={x:m.x,y:m.y};i.setTransform(y.a,y.b,y.c,y.d,m.x,m.y),s.fill&&(i.fillStyle=s.fill);let w=!!n.fillEnabled,M=n.strokeWidth??a.Dv;i.lineWidth=M,s.stroke&&(i.strokeStyle=s.stroke);let z={context:i,particle:n,radius:r,drawRadius:r*b,opacity:p,delta:o,pixelRatio:t.retina.pixelRatio,fill:w,stroke:M>a.Dv,transformData:y,position:{...m},drawPosition:x,drawScale:b};for(let e of t.plugins)e.drawParticleTransform?.(z);let S=n.effect?v.get(n.effect):void 0,O=n.shape?g.get(n.shape):void 0;d(S,z),h(O,z),u(O,z),c(O,z),l(S,z),i.resetTransform()}function l(e,t){if(!e?.drawAfter)return;let{particle:i}=t;i.effect&&e.drawAfter(t)}function d(e,t){if(!e?.drawBefore)return;let{particle:i}=t;i.effect&&e.drawBefore(t)}function u(e,t){if(!e)return;let{context:i,fill:a,particle:n,stroke:o}=t;n.shape&&(i.beginPath(),e.draw(t),n.shapeClose&&i.closePath(),o&&i.stroke(),a&&i.fill())}function c(e,t){if(!e?.afterDraw)return;let{particle:i}=t;i.shape&&e.afterDraw(t)}function h(e,t){if(!e?.beforeDraw)return;let{particle:i}=t;i.shape&&e.beforeDraw(t)}function p(e,t,i,a){t.drawParticle&&t.drawParticle(e,i,a)}},1339(e,t,i){i.d(t,{BN:()=>h,EY:()=>O,Jv:()=>F,K6:()=>g,Ko:()=>E,LC:()=>S,OH:()=>w,O_:()=>R,PG:()=>k,R5:()=>v,YL:()=>b,_h:()=>P,ay:()=>x,eg:()=>y,mK:()=>f,pz:()=>_,qe:()=>p,xx:()=>M,yx:()=>A,zI:()=>m});var a=i(3884),n=i(1590),o=i(8130),s=i(1826),r=i(3096),l=i(4874);let d=new Map;function u(e,t){let i=d.get(e);return i||(i=t(),d.size>=1e3&&[...d.keys()].slice(0,1e3*n.MX).forEach(e=>d.delete(e)),d.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 h(e,t,i,a=!0){if(!t)return;let n=(0,o.Kg)(t)?{value:t}:t;if((0,o.Kg)(n.value))return p(e,n.value,i,a);if((0,o.cy)(n.value)){let t=(0,l.Vh)(n.value,i,a);if(!t)return;return h(e,{value:t})}for(let t of e.colorManagers.values()){let e=t.handleRangeColor(n);if(e)return e}}function p(e,t,i,a=!0){if(!t)return;let s=(0,o.Kg)(t)?{value:t}:t;if((0,o.Kg)(s.value))return s.value===n.mR?w():c(e,s.value);if((0,o.cy)(s.value)){let t=(0,l.Vh)(s.value,i,a);if(!t)return;return p(e,{value:t})}for(let t of e.colorManagers.values()){let e=t.handleColor(s);if(e)return e}}function f(e,t,i,a=!0){let n=p(e,t,i,a);return n?g(n):void 0}function v(e,t,i,a=!0){let n=h(e,t,i,a);return n?g(n):void 0}function g(e){let t=e.r/n.oi,i=e.g/n.oi,a=e.b/n.oi,o=Math.max(t,i,a),s=Math.min(t,i,a),r={h:n.L1,l:(o+s)*n.MX,s:n.yx};return o!==s&&(r.s=r.l<n.MX?(o-s)/(o+s):(o-s)/(n.gd-o-s),t===o?r.h=(i-a)/(o-s):i===o?r.h=n.gd+(a-t)/(o-s):r.h=n.gd*n.gd+(t-i)/(o-s)),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 m(e,t){return c(e,t)?.a}function y(e,t){return c(e,t)}function b(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)),o=t/n.vS,s=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+s):r+s-r*s,u=n.gd*r-d,c=n.BF/n.Nu;return{r:Math.round(Math.min(n.oi,n.oi*l(u,d,o+c))),g:Math.round(Math.min(n.oi,n.oi*l(u,d,o))),b:Math.round(Math.min(n.oi,n.oi*l(u,d,o-c)))}}function x(e){let t=b(e);return{a:e.a,b:t.b,g:t.g,r:t.r}}function w(e){let t=e??n.Fl,i=n.oi+n.D_,o=()=>Math.floor((0,a.e4)(t,i));return{b:o(),g:o(),r:o()}}function M(e,t,i){let a=i??n.hv;return u(`rgb-${e.r.toFixed(2)}-${e.g.toFixed(2)}-${e.b.toFixed(2)}-${t?"hdr":"sdr"}-${a.toString()}`,()=>{var a,o;return t?z(e,i):(a=e,o=i,`rgba(${a.r.toString()}, ${a.g.toString()}, ${a.b.toString()}, ${(o??n.hv).toString()})`)})}function z(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 S(e,t,i){let a=i??n.hv;return u(`hsl-${e.h.toFixed(2)}-${e.s.toFixed(2)}-${e.l.toFixed(2)}-${t?"hdr":"sdr"}-${a.toString()}`,()=>{var a,o,s,r;return t?(a=e,o=i,z(b(a),o)):(s=e,r=i,`hsla(${s.h.toString()}, ${s.s.toString()}%, ${s.l.toString()}%, ${(r??n.hv).toString()})`)})}function O(e,t,i,n){let o=e,s=t;return"r"in o||(o=b(e)),"r"in s||(s=b(t)),{b:(0,a.jh)(o.b,s.b,i,n),g:(0,a.jh)(o.g,s.g,i,n),r:(0,a.jh)(o.r,s.r,i,n)}}function P(e,t,i){if(i===n.mR)return w();if(i!==n.BW)return i;{let i=e.getFillColor()??e.getStrokeColor(),a=t?.getFillColor()??t?.getStrokeColor();if(i&&a&&t)return O(i,a,e.getRadius(),t.getRadius());{let e=i??a;if(e)return b(e)}}}function k(e,t,i,a){let s=(0,o.Kg)(t)?t:t.value;return s===n.mR?a?h(e,{value:s}):i?n.mR:n.BW:s===n.BW?n.BW:h(e,{value:s})}function R(e){return void 0===e?void 0:{h:e.h.value,s:e.s.value,l:e.l.value}}function _(e,t,i){let a={h:{enable:!1,value:e.h,min:n.L1,max:n.vS},s:{enable:!1,value:e.s,min:n.yx,max:n.eu},l:{enable:!1,value:e.l,min:n.vd,max:n.$_}};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.min=t.min,e.max=t.max,e.enable?(e.velocity=(0,a.VG)(t.speed)/n.a5*i,e.decay=n.WH-(0,a.VG)(t.decay),e.status=r.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 E(e,t,i){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+=i.value),(e.delayTime??0)>0&&e.time<(e.delayTime??0)))return;let n=e.offset?(0,a.vE)(e.offset):0,o=(e.velocity??0)*i.factor+3.6*n,s=e.decay??1,l=e.max,d=e.min;t&&e.status!==r.H.increasing?(e.value-=o,e.value<d&&(e.loops??=0,e.loops++,e.status=r.H.increasing)):(e.value+=o,e.value>l&&(e.loops??=0,e.loops++,t?e.status=r.H.decreasing:e.value-=l)),e.velocity&&1!==s&&(e.velocity*=s),e.value=(0,a.qE)(e.value,d,l)}function F(e,t){if(!e)return;let{h:i,s:a,l:n}=e;E(i,!1,t),E(a,!0,t),E(n,!0,t)}function A(e,t,i){return{h:e.h,s:e.s,l:e.l+(t===s.H.darken?-n.iU:n.iU)*i}}},3112(e,t,i){i.d(t,{B:()=>n,t:()=>o});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 o(){return a}},3884(e,t,i){i.d(t,{$m:()=>R,AD:()=>p,DT:()=>function e(t,i){if(t===i||void 0===i&&(0,s.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:()=>c,JY:()=>k,M3:()=>D,Mh:()=>E,Nx:()=>A,OE:()=>u,OW:()=>_,Sc:()=>z,Sg:()=>x,VG:()=>b,W9:()=>w,Yf:()=>S,e4:()=>h,eh:()=>T,gp:()=>O,i0:()=>f,jh:()=>m,l1:()=>F,pu:()=>P,px:()=>v,qE:()=>g,qM:()=>I,vE:()=>y,vr:()=>M});var a=i(7613),n=i(1590),o=i(2067),s=i(8130);let r=Math.PI/180,l=Math.random,d={nextFrame:e=>requestAnimationFrame(e),cancel:e=>{cancelAnimationFrame(e)}};function u(e=Math.random){l=e}function c(){return g(l(),0,1-Number.EPSILON)}function h(e,t){return c()*(t-e)+e}function p(e,t){d.nextFrame=e,d.cancel=t}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,s.Et)(e)?e:y(e)}function x(e){return(0,s.Et)(e)?e:e.min}function w(e){return(0,s.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.hypot(i,a)}}function z(e,t){let i=e.x-t.x,a=e.y-t.y;return i*i+a*a}function S(e,t){return Math.sqrt(z(e,t))}function O(e,t,i){return z(e,t)<=i*i}function P(e){return e*r}function k(e,t,i){if((0,s.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 c()*n.R1}}function R(e){let t=o.M.origin;return t.length=1,t.angle=e,t}function _(e,t,i,a){return o.M.create(e.x*(i-a)/(i+a)+t.x*n.gd*a/(i+a),e.y)}function T(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 E(e){return{x:(e.position?.x??c()*n.a5)*e.size.width/n.a5,y:(e.position?.y??c()*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 E({size:e.size,position:t})}function A(e){let{position:t,size:i}=e;return{x:t?.x??c()*i.width,y:t?.y??c()*i.height}}function I(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 A({size:e.size,position:t})}function D(e){return e?e.endsWith("%")?parseFloat(e)/n.a5:parseFloat(e):1}},3692(e,t,i){i.d(t,{Z:()=>n,y:()=>o});var a=i(9896);function n(e,...t){for(let i of t)e.load(i)}function o(e,t,...i){let s=new a.U(e,t);return n(s,...i),s}},8130(e,t,i){function a(e){return"boolean"==typeof e}function n(e){return"string"==typeof e}function o(e){return"number"==typeof e}function s(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:()=>o,Gv:()=>r,Kg:()=>n,Lm:()=>a,Tn:()=>s,cy:()=>l,kZ:()=>d})},4874(e,t,i){i.d(t,{AE:()=>S,BR:()=>m,Bj:()=>p,E9:()=>F,HQ:()=>C,Kp:()=>V,O2:()=>z,Ot:()=>$,T5:()=>v,TA:()=>R,Tg:()=>O,Tj:()=>M,UC:()=>I,Vh:()=>w,Xs:()=>T,YC:()=>A,hJ:()=>L,hn:()=>b,lV:()=>g,n0:()=>x,pE:()=>P,q8:()=>f,tG:()=>y,td:()=>D,w3:()=>_,wJ:()=>k,zw:()=>function e(t,...i){for(let a of i){if((0,o.kZ)(a))continue;if(!(0,o.Gv)(a)){t=a;continue}Array.isArray(a)?Array.isArray(t)||(t=[]):(!(0,o.Gv)(t)||Array.isArray(t))&&(t={});let i=Object.keys(a),n=new Set(["__proto__","constructor","prototype"]);if(!i.some(e=>{let t=a[e];return(0,o.Gv)(t)||Array.isArray(t)})){let e=t;for(let t of i)if(!n.has(t)&&t in a){let i=a[t];void 0!==i&&(e[t]=i)}continue}for(let o of i){if(n.has(o))continue;let i=t,s=a[o];i[o]=Array.isArray(s)?s.map(t=>e(void 0,t)):e(i[o],s)}}return t}});var a=i(3884),n=i(1590),o=i(8130),s=i(3494),r=i(3096),l=i(7320),d=i(5735),u=i(3048),c=i(8113),h=i(2067);function p(e,t){let i=new Map,a=t?.maxSize,n=t?.ttlMs,o=t?.keyFn,s=(e,t=new WeakSet)=>{if(null===e)return"null";let i=typeof e;if("undefined"===i)return"undefined";if("number"===i||"boolean"===i||"string"===i)return JSON.stringify(e);if("function"===i)try{return e.toString()}catch{return'"[Function]"'}if("symbol"===i)try{return e.toString()}catch{return'"[Symbol]"'}if(Array.isArray(e))return`[${e.map(e=>s(e,t)).join(",")}]`;if(t.has(e))return'"[Circular]"';t.add(e);let a=Object.keys(e).sort();return`{${a.map(i=>`${JSON.stringify(i)}:${s(e[i],t)}`).join(",")}}`};return(...t)=>{let r,l=(r=t,o?o(r):s(r)),d=Date.now(),u=i.get(l);if(void 0!==u)if(!n||!(d-u.ts>n))return i.delete(l),i.set(l,{value:u.value,ts:u.ts}),u.value;else i.delete(l);let c=e(...t);if(i.set(l,{value:c,ts:d}),"number"==typeof a&&a>=0)for(;i.size>a;){let e=i.keys().next().value;if(void 0===e)break;i.delete(e)}return c}}function f(){return"u">typeof matchMedia}function v(){return globalThis.document}function g(e){if(f())return matchMedia(e)}function m(e){if("u">typeof IntersectionObserver)return new IntersectionObserver(e)}function y(e){if("u">typeof MutationObserver)return new MutationObserver(e)}function b(e,t){return e===t||(0,o.cy)(t)&&t.includes(e)}function x(e){return Math.floor((0,a.G0)()*e.length)}function w(e,t,i=!0){return e[void 0!==t&&i?t%e.length:x(e)]}function M(e,t,i,a,n){return z(S(e,a??0),t,i,n)}function z(e,t,i,a){let n=!0;return a&&a!==d.v.bottom||(n=e.top<t.height+i.x),n&&(!a||a===d.v.left)&&(n=e.right>i.x),n&&(!a||a===d.v.right)&&(n=e.left<t.width+i.y),n&&(!a||a===d.v.top)&&(n=e.bottom>i.y),n}function S(e,t){return{bottom:e.y+t,left:e.x-t,right:e.x+t,top:e.y-t}}function O(e){return{position:e.getPosition(),radius:e.getRadius(),mass:e.getMass(),velocity:e.velocity,factor:h.M.create((0,a.VG)(e.options.bounce.horizontal.value),(0,a.VG)(e.options.bounce.vertical.value))}}function P(e,t){let{x:i,y:n}=e.velocity.sub(t.velocity),[o,s]=[e.position,t.position],{dx:r,dy:l}=(0,a.vr)(s,o);if(i*r+n*l<0)return;let d=-Math.atan2(l,r),u=e.mass,c=t.mass,h=e.velocity.rotate(d),p=t.velocity.rotate(d),f=(0,a.OW)(h,p,u,c),v=(0,a.OW)(p,h,u,c),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,o.cy)(e)?e.map((e,i)=>t(e,i)):t(e,0)}function R(e,t,i){return(0,o.cy)(e)?w(e,t,i):e}function _(e,t){return(0,o.cy)(e)?e.find((e,i)=>t(e,i)):t(e,0)?e:void 0}function T(e,t){let i=e.value,o=e.animation,l={delayTime:(0,a.VG)(o.delay)*n.Xu,enable:o.enable,value:(0,a.VG)(e.value)*t,max:(0,a.W9)(i)*t,min:(0,a.Sg)(i)*t,loops:0,maxLoops:(0,a.VG)(o.count),time:0};if(o.enable){switch(l.decay=1-(0,a.VG)(o.decay),o.mode){case s.g.increase:l.status=r.H.increasing;break;case s.g.decrease:l.status=r.H.decreasing;break;case s.g.random:l.status=(0,a.G0)()>=n.MX?r.H.increasing:r.H.decreasing}let e=o.mode===s.g.auto;switch(o.startValue){case c.S.min:l.value=l.min,e&&(l.status=r.H.increasing);break;case c.S.max:l.value=l.max,e&&(l.status=r.H.decreasing);break;case c.S.random:default:l.value=(0,a.vE)(l),e&&(l.status=(0,a.G0)()>=n.MX?r.H.increasing:r.H.decreasing)}}return l.initialValue=l.value,l}function E(e,t){if(e.mode!==u.q.percent){let{mode:t,...i}=e;return i}return"x"in e?{x:e.x/n.a5*t.width,y:e.y/n.a5*t.height}:{width:e.width/n.a5*t.width,height:e.height/n.a5*t.height}}function F(e,t){return E(e,t)}function A(e,t){return E(e,t)}function I(e,t,i,n,o){if(e.destroyed||!t.enable||(t.maxLoops??0)>0&&(t.loops??0)>(t.maxLoops??0))return;let s=(t.velocity??0)*o.factor,d=t.min,u=t.max,c=t.decay??1;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))){switch(t.status){case r.H.increasing:t.value>=u?(i?t.status=r.H.decreasing:t.value-=u,t.loops??=0,t.loops++):t.value+=s;break;case r.H.decreasing:t.value<=d?(i?t.status=r.H.increasing:t.value+=u,t.loops??=0,t.loops++):t.value-=s}t.velocity&&1!==c&&(t.velocity*=c);var h=t.value;switch(n){case l.V.max:h>=u&&e.destroy();break;case l.V.min:h<=d&&e.destroy()}t.value=(0,a.qE)(t.value,d,u)}}function D(e){let t=v().createElement("div").style;for(let i in e){let a=e[i];if(!(i in e)||(0,o.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 L=p(function(e){let t=v().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});function V(e,t,i,a,n){if(a){let a={passive:!0};(0,o.Lm)(n)?a.capture=n:void 0!==n&&(a=n),e.addEventListener(t,i,a)}else e.removeEventListener(t,i,n)}async function C(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 $(e,t,i,a=!1){let n=t.get(e);return(!n||a)&&(n=new Map(await Promise.all([...i.entries()].map(([t,i])=>i(e).then(e=>[t,e])))),t.set(e,n)),n}}},u={};function c(e){var t=u[e];if(void 0!==t)return t.exports;var i=u[e]={exports:{}};return d[e](i,i.exports,c),i.exports}c.m=d,c.d=(e,t)=>{for(var i in t)c.o(t,i)&&!c.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},c.f={},c.e=e=>Promise.all(Object.keys(c.f).reduce((t,i)=>(c.f[i](e,t),t),[])),c.u=e=>""+e+".min.js",c.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}(),c.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),h={},c.l=(e,t,i,a)=>{if(h[e])return void h[e].push(t);if(void 0!==i)for(var n,o,s=document.getElementsByTagName("script"),r=0;r<s.length;r++){var l=s[r];if(l.getAttribute("src")==e||l.getAttribute("data-webpack")=="@tsparticles/engine:"+i){n=l;break}}n||(o=!0,(n=document.createElement("script")).charset="utf-8",c.nc&&n.setAttribute("nonce",c.nc),n.setAttribute("data-webpack","@tsparticles/engine:"+i),n.src=e),h[e]=[t];var d=(t,i)=>{n.onerror=n.onload=null,clearTimeout(u);var a=h[e];if(delete h[e],n.parentNode&&n.parentNode.removeChild(n),a&&a.forEach(e=>e(i)),t)return t(i)},u=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),o&&document.head.appendChild(n)},c.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},c.g.importScripts&&(p=c.g.location+"");var h,p,f=c.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");c.p=p=p.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),e={397:0},c.f.j=(t,i)=>{var a=c.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 o=c.p+c.u(t),s=Error();c.l(o,i=>{if(c.o(e,t)&&(0!==(a=e[t])&&(e[t]=void 0),a)){var n=i&&("load"===i.type?"missing":i.type),o=i&&i.target&&i.target.src;s.message="Loading chunk "+t+` failed.
|
|
2
|
-
(`+n+": "+o+")",s.name="ChunkLoadError",s.type=n,s.request=o,a[1](s)}},"chunk-"+t,t)}},t=(t,i)=>{var a,n,[o,s,r]=i,l=0;if(o.some(t=>0!==e[t])){for(a in s)c.o(s,a)&&(c.m[a]=s[a]);r&&r(c)}for(t&&t(i);l<o.length;l++)n=o[l],c.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={};c.r(m),c.d(m,{AlterType:()=>D.H,AnimatableColor:()=>B.A,AnimationMode:()=>E.g,AnimationOptions:()=>Z.p,AnimationStatus:()=>$.H,AnimationValueWithRandom:()=>eg.Jm,Background:()=>G.V,BaseRange:()=>k.dg,Circle:()=>k.jl,ColorAnimation:()=>q.e,DestroyType:()=>L.V,EasingType:()=>l,EventType:()=>w.B,Fill:()=>Q.S,FullScreen:()=>H.m,GradientType:()=>r,HslAnimation:()=>j.i,LimitMode:()=>F.d,Move:()=>Y.y,MoveAngle:()=>ee.h,MoveCenter:()=>et.Z,MoveDirection:()=>_.F,MoveGravity:()=>ei.y,MovePath:()=>en.v,Opacity:()=>ed.Y,OpacityAnimation:()=>eu.I,Options:()=>N.J,OptionsColor:()=>W.O,OutMode:()=>A.Y,OutModeDirection:()=>T.v,OutModes:()=>ea.j,ParticleOutType:()=>V.x,ParticlesBounce:()=>K.w,ParticlesBounceFactor:()=>X.F,ParticlesDensity:()=>el.M,ParticlesNumber:()=>es.N,ParticlesNumberLimit:()=>er.A,ParticlesOptions:()=>J.U,PixelMode:()=>I.q,RangedAnimationOptions:()=>Z.Q,RangedAnimationValueWithRandom:()=>eg.AI,Rectangle:()=>k.M_,ResizeEvent:()=>ev.z,RotateDirection:()=>s,Shape:()=>ec.y,Size:()=>eh.o,SizeAnimation:()=>ep.q,Spin:()=>eo.t,StartValueType:()=>C.S,Stroke:()=>U.t,ValueWithRandom:()=>eg.PV,Vector:()=>R.M,Vector3d:()=>R.p,ZIndex:()=>ef.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,checkDistance:()=>z.gp,circleBounce:()=>b.pE,circleBounceDataFromParticle:()=>b.Tg,clamp:()=>z.qE,clear:()=>em.IU,cloneStyle:()=>b.td,collisionVelocity:()=>z.OW,colorMix:()=>ey.EY,colorToHsl:()=>ey.mK,colorToRgb:()=>ey.qe,countOffset:()=>y.nq,decayOffset:()=>y.WH,deepExtend:()=>b.zw,defaultAlpha:()=>y.aZ,defaultAngle:()=>y.tA,defaultCompositeValue:()=>y.yj,defaultDensityFactor:()=>y.lA,defaultFps:()=>y.z$,defaultFpsLimit:()=>y.i8,defaultLoops:()=>y.hK,defaultOpacity:()=>y.hv,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,defaultZoom:()=>y.Pf,degToRad:()=>z.pu,deleteCount:()=>y.LD,double:()=>y.gd,doublePI:()=>y.R1,drawAfterEffect:()=>em.k,drawBeforeEffect:()=>em.z5,drawParticle:()=>em.p0,drawParticlePlugin:()=>em.Wb,drawShape:()=>em.KG,drawShapeAfterDraw:()=>em.gF,drawShapeBeforeDraw:()=>em.VG,empty:()=>y.Ie,executeOnSingleOrMultiple:()=>b.wJ,findItemFromSingleOrMultiple:()=>b.w3,generatedAttribute:()=>y.eb,generatedFalse:()=>y.X$,generatedTrue:()=>y.ce,getDistance:()=>z.Yf,getDistanceSq:()=>z.Sc,getDistances:()=>z.vr,getFullScreenStyle:()=>b.hJ,getHslAnimationFromHsl:()=>ey.pz,getHslFromAnimation:()=>ey.O_,getItemMapFromInitializer:()=>b.Ot,getItemsFromInitializer:()=>b.HQ,getLinkColor:()=>ey._h,getLinkRandomColor:()=>ey.PG,getLogger:()=>M.t,getParticleBaseVelocity:()=>z.$m,getParticleDirectionAngle:()=>z.JY,getPosition:()=>b.E9,getRandom:()=>z.G0,getRandomInRange:()=>z.e4,getRandomRgbColor:()=>ey.OH,getRangeMax:()=>z.W9,getRangeMin:()=>z.Sg,getRangeValue:()=>z.VG,getSize:()=>b.YC,getStyleFromHsl:()=>ey.LC,getStyleFromRgb:()=>ey.xx,hMax:()=>y.vS,hMin:()=>y.L1,hPhase:()=>y.U0,half:()=>y.MX,hasMatchMedia:()=>b.q8,hslToRgb:()=>ey.YL,hslaToRgba:()=>ey.ay,identity:()=>y.D_,initParticleNumericAnimationValue:()=>b.Xs,inverseFactorNumerator:()=>y.hB,isArray:()=>ex.cy,isBoolean:()=>ex.Lm,isFunction:()=>ex.Tn,isInArray:()=>b.hn,isNull:()=>ex.kZ,isNumber:()=>ex.Et,isObject:()=>ex.Gv,isPointInside:()=>b.Tj,isString:()=>ex.Kg,itemFromArray:()=>b.Vh,itemFromSingleOrMultiple:()=>b.TA,lFactor:()=>y.iU,lMax:()=>y.$_,lMin:()=>y.vd,lengthOffset:()=>y.K3,loadMinIndex:()=>y.PZ,loadOptions:()=>eb.Z,loadParticlesOptions:()=>eb.y,loadRandomFactor:()=>y.$v,manageListener:()=>b.Kp,memoize:()=>b.Bj,midColorValue:()=>y.BW,millisecondsToSeconds:()=>y.Xu,minCount:()=>y.wM,minFpsLimit:()=>y.DN,minIndex:()=>y.z9,minLimit:()=>y.ou,minStrokeWidth:()=>y.Dv,minVelocity:()=>y.GW,minZ:()=>y.X_,minimumSize:()=>y.w2,mix:()=>z.jh,none:()=>y.dv,one:()=>y.xH,originPoint:()=>y.bo,paintBase:()=>em.Sn,paintImage:()=>em.Md,parseAlpha:()=>z.M3,percentDenominator:()=>y.a5,phaseNumerator:()=>y.BF,quarter:()=>y.$G,randomColorValue:()=>y.mR,randomInRangeValue:()=>z.vE,rangeColorToHsl:()=>ey.R5,rangeColorToRgb:()=>ey.BN,removeDeleteCount:()=>y.JC,removeMinIndex:()=>y.vF,resizeEvent:()=>y.NF,rgbMax:()=>y.oi,rgbToHsl:()=>ey.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,spatialHashGridCellSize:()=>y.iX,squareExp:()=>y.dm,stringToAlpha:()=>ey.zI,stringToRgb:()=>ey.eg,threeQuarter:()=>y.Rq,triple:()=>y.Nu,tryCountIncrement:()=>y.Eo,tsParticles:()=>ew,updateAnimation:()=>b.UC,updateColor:()=>ey.Jv,updateColorValue:()=>ey.Ko,visibilityChangeEvent:()=>y.nK,zIndexFactorOffset:()=>y.RV});var y=c(1590),b=c(4874);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=c(8202),M=c(3112),z=c(3884);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 P{colorManagers=new Map;easingFunctions=new Map;effectDrawers=new Map;initializers={effects:new Map,shapes:new Map,updaters:new Map};palettes=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-beta.0"}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)}addPalette(e,t){this.palettes.set(e,t)}addParticleUpdater(e,t){this.initializers.updaters.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.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)}getPalette(e){return this.palettes.get(e)}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 c.e(164).then(c.bind(c,8164)),o=e.id??e.element?.id??`tsparticles${Math.floor((0,z.G0)()*y.$v).toString()}`,{index:s,url:r}=e,l=r?await O({fallback:e.options,url:r,index:s}):e.options,d=(0,b.TA)(l,s),{items:u}=this,h=u.findIndex(e=>e.id.description===o),p=new n(this,o,d);if(h>=y.PZ){let e=this.item(h),t=e?y.xH:y.dv;e&&!e.destroyed&&e.destroy(!1),u.splice(h,t,p)}else u.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(o))||((a=i.createElement("div")).id=o,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 k=c(5821),R=c(2067),_=c(7613);(a=s||(s={})).clockwise="clockwise",a.counterClockwise="counter-clockwise",a.random="random";var T=c(5735),E=c(3494),F=c(3443),A=c(3652),I=c(3048),D=c(1826),L=c(7320);(n=r||(r={})).linear="linear",n.radial="radial",n.random="random";var V=c(6492),C=c(8113);(o=l||(l={})).easeInBack="ease-in-back",o.easeInBounce="ease-in-bounce",o.easeInCirc="ease-in-circ",o.easeInCubic="ease-in-cubic",o.easeInElastic="ease-in-elastic",o.easeInExpo="ease-in-expo",o.easeInGaussian="ease-in-gaussian",o.easeInLinear="ease-in-linear",o.easeInQuad="ease-in-quad",o.easeInQuart="ease-in-quart",o.easeInQuint="ease-in-quint",o.easeInSigmoid="ease-in-sigmoid",o.easeInSine="ease-in-sine",o.easeInSmoothstep="ease-in-smoothstep",o.easeOutBack="ease-out-back",o.easeOutBounce="ease-out-bounce",o.easeOutCirc="ease-out-circ",o.easeOutCubic="ease-out-cubic",o.easeOutElastic="ease-out-elastic",o.easeOutExpo="ease-out-expo",o.easeOutGaussian="ease-out-gaussian",o.easeOutLinear="ease-out-linear",o.easeOutQuad="ease-out-quad",o.easeOutQuart="ease-out-quart",o.easeOutQuint="ease-out-quint",o.easeOutSigmoid="ease-out-sigmoid",o.easeOutSine="ease-out-sine",o.easeOutSmoothstep="ease-out-smoothstep",o.easeInOutBack="ease-in-out-back",o.easeInOutBounce="ease-in-out-bounce",o.easeInOutCirc="ease-in-out-circ",o.easeInOutCubic="ease-in-out-cubic",o.easeInOutElastic="ease-in-out-elastic",o.easeInOutExpo="ease-in-out-expo",o.easeInOutGaussian="ease-in-out-gaussian",o.easeInOutLinear="ease-in-out-linear",o.easeInOutQuad="ease-in-out-quad",o.easeInOutQuart="ease-in-out-quart",o.easeInOutQuint="ease-in-out-quint",o.easeInOutSigmoid="ease-in-out-sigmoid",o.easeInOutSine="ease-in-out-sine",o.easeInOutSmoothstep="ease-in-out-smoothstep";var $=c(3096),B=c(4036),Z=c(127),G=c(4162),q=c(580),H=c(3012),j=c(9892),N=c(9289),W=c(3930),K=c(5439),X=c(6912),J=c(9896),Q=c(4534),U=c(9231),Y=c(7764),ee=c(8577),et=c(6189),ei=c(6604),ea=c(3085),en=c(2135),eo=c(9693),es=c(1867),er=c(7076),el=c(5980),ed=c(3280),eu=c(9080),ec=c(3212),eh=c(4276),ep=c(2812),ef=c(9578),ev=c(7959),eg=c(7397),em=c(9854),ey=c(1339),eb=c(3692),ex=c(8130);let ew=new P;return globalThis.tsParticles=ew,m})());
|
|
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,o,s,r,l,d={7574(e,t,i){i.d(t,{$G:()=>L,$_:()=>T,$v:()=>K,$x:()=>O,BF:()=>eg,BW:()=>p,DN:()=>N,D_:()=>ed,Dv:()=>eu,Eo:()=>Y,Fl:()=>em,GW:()=>C,Ie:()=>D,JC:()=>q,K3:()=>eo,L1:()=>F,LD:()=>er,MX:()=>l,NF:()=>o,Nu:()=>ep,Nx:()=>W,PZ:()=>X,Pf:()=>ew,R1:()=>v,RF:()=>x,RV:()=>Z,Rq:()=>V,U0:()=>I,Ug:()=>c,WH:()=>U,X$:()=>b,X_:()=>ee,Xu:()=>d,Zp:()=>P,a5:()=>r,aE:()=>ev,aZ:()=>m,bo:()=>u,ce:()=>y,dm:()=>M,dv:()=>Q,eb:()=>a,eu:()=>E,gd:()=>f,hB:()=>k,hK:()=>eb,hv:()=>G,i8:()=>j,iU:()=>ec,iX:()=>z,jn:()=>ey,lA:()=>es,mR:()=>h,nK:()=>s,nq:()=>ei,oi:()=>R,ou:()=>et,rq:()=>w,tA:()=>el,tR:()=>ex,vF:()=>H,vS:()=>_,vd:()=>eh,w2:()=>B,wM:()=>ea,xH:()=>J,xd:()=>S,yj:()=>n,yx:()=>A,z$:()=>g,z9:()=>en,zg:()=>ef,zs:()=>$});let a="generated",n="source-over",o="resize",s="visibilitychange",r=100,l=.5,d=1e3,u={x:0,y:0,z:0},c={a:1,b:0,c:0,d:1},h="random",p="mid",f=2,v=2*Math.PI,g=60,m=1,y="true",b="false",x="canvas",w=0,M=2,z=100,S=1,O=1,P=1,k=1,R=255,_=360,E=100,T=100,F=0,A=0,I=60,D=0,L=.25,V=.75,C=0,$=1,B=0,Z=1,G=1,q=1,H=0,j=120,N=0,W=0,K=1e4,X=0,J=1,Q=0,U=1,Y=1,ee=0,et=0,ei=1,ea=0,en=0,eo=1,es=1,er=1,el=0,ed=1,eu=0,ec=1,eh=0,ep=3,ef=6,ev=1,eg=1,em=0,ey=0,eb=0,ex=0,ew=1},8450(e,t,i){i.d(t,{dg:()=>r,jl:()=>l,M_:()=>d}),(a=n||(n={})).circle="circle",a.rectangle="rectangle";var a,n,o=i(3404),s=i(7574);class r{position;type;constructor(e,t,i){this.position={x:e,y:t},this.type=i}_resetPosition(e,t){this.position.x=e,this.position.y=t}}class l extends r{radius;constructor(e,t,i){super(e,t,n.circle),this.radius=i}contains(e){return(0,o.gp)(e,this.position,this.radius)}intersects(e){let t=this.position,i=e.position,a=this.radius,o=Math.abs(i.x-t.x),r=Math.abs(i.y-t.y);if(e instanceof l||e.type===n.circle)return a+e.radius>Math.hypot(o,r);if(e instanceof d||e.type===n.rectangle){let{width:t,height:i}=e.size;return Math.pow(o-t,s.dm)+Math.pow(r-i,s.dm)<=a**s.dm||o<=a+t&&r<=a+i||o<=t||r<=i}return!1}reset(e,t,i){return this._resetPosition(e,t),this.radius=i,this}}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);if(!(e instanceof d))return!1;let t=this.size.width,i=this.size.height,a=this.position,n=e.position,o=e.size,s=o.width,r=o.height;return n.x<a.x+t&&n.x+s>a.x&&n.y<a.y+i&&n.y+r>a.y}reset(e,t,i,a){return this._resetPosition(e,t),this.size.width=i,this.size.height=a,this}}},1859(e,t,i){i.d(t,{M:()=>s,p:()=>o});var a=i(7574);function n(e){return"z"in e?e.z:a.bo.z}class o{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 o.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 o.create(e.x,e.y,n(e))}static create(e,t,i){return"number"==typeof e?new o(e,t??a.bo.y,i??a.bo.z):new o(e.x,e.y,n(e))}add(e){return o.create(this.x+e.x,this.y+e.y,this.z+n(e))}addTo(e){this.x+=e.x,this.y+=e.y,this.z+=n(e)}copy(){return o.clone(this)}div(e){return o.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 o.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 o.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=n(e)}sub(e){return o.create(this.x-e.x,this.y-e.y,this.z-n(e))}subFrom(e){this.x-=e.x,this.y-=e.y,this.z-=n(e)}_updateFromAngle(e,t){this.x=Math.cos(e)*t,this.y=Math.sin(e)*t}}class s extends o{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)}}},3608(e,t,i){var a,n;i.d(t,{H:()=>a}),(n=a||(a={})).increasing="increasing",n.decreasing="decreasing"},1341(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"},2487(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"},9798(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"},7171(e,t,i){var a,n;i.d(t,{d:()=>a}),(n=a||(a={})).delete="delete",n.wait="wait"},9300(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"},4568(e,t,i){var a,n;i.d(t,{q:()=>a}),(n=a||(a={})).precise="precise",n.percent="percent"},2354(e,t,i){var a,n;i.d(t,{H:()=>a}),(n=a||(a={})).darken="darken",n.enlighten="enlighten"},1352(e,t,i){var a,n;i.d(t,{V:()=>a}),(n=a||(a={})).none="none",n.max="max",n.min="min"},9898(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"},6028(e,t,i){var a,n;i.d(t,{x:()=>a}),(n=a||(a={})).normal="normal",n.inside="inside",n.outside="outside"},257(e,t,i){var a,n;i.d(t,{S:()=>a}),(n=a||(a={})).max="max",n.min="min",n.random="random"},8468(e,t,i){i.d(t,{A:()=>s});var a=i(1282),n=i(2580),o=i(682);class s extends o.O{animation;constructor(){super(),this.animation=new n.i}static create(e,t){let i=new s;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))}}},8527(e,t,i){i.d(t,{Q:()=>l,p:()=>r});var a=i(9798),n=i(257),o=i(1282),s=i(3404);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,o.kZ)(e)||(void 0!==e.count&&(this.count=(0,s.DT)(e.count)),void 0!==e.enable&&(this.enable=e.enable),void 0!==e.speed&&(this.speed=(0,s.DT)(e.speed)),void 0!==e.decay&&(this.decay=(0,s.DT)(e.decay)),void 0!==e.delay&&(this.delay=(0,s.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,o.kZ)(e)||(void 0!==e.mode&&(this.mode=e.mode),void 0!==e.startValue&&(this.startValue=e.startValue))}}},6322(e,t,i){i.d(t,{V:()=>o});var a=i(682),n=i(1282);class o{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))}}},6676(e,t,i){i.d(t,{e:()=>s});var a=i(8527),n=i(1282),o=i(3404);class s extends a.p{max;min;offset;constructor(e,t){super(),this.min=e,this.max=t,this.offset=0,this.sync=!0}load(e){super.load(e),(0,n.kZ)(e)||(void 0!==e.max&&(this.max=e.max),void 0!==e.min&&(this.min=e.min),void 0!==e.offset&&(this.offset=(0,o.DT)(e.offset)))}}},2292(e,t,i){i.d(t,{m:()=>n});var a=i(1282);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))}}},2580(e,t,i){i.d(t,{i:()=>s});var a=i(7574),n=i(6676),o=i(1282);class s{h=new n.e(a.L1,a.vS);l=new n.e(a.vd,a.$_);s=new n.e(a.yx,a.eu);load(e){(0,o.kZ)(e)||(this.h.load(e.h),this.s.load(e.s),this.l.load(e.l))}}},7849(e,t,i){i.d(t,{J:()=>u});var a=i(7818),n=i(1282),o=i(6322),s=i(2292),r=i(7319),l=i(3468),d=i(3404);class u{autoPlay;background;clear;defaultThemes;delay;detectRetina;duration;fpsLimit;fullScreen;hdr;key;name;palette;particles;pauseOnBlur;pauseOnOutsideViewport;preset;resize;smooth;style;zLayers;_container;_pluginManager;constructor(e,t){this._pluginManager=e,this._container=t,this.autoPlay=!0,this.background=new o.V,this.clear=!0,this.defaultThemes={},this.delay=0,this.fullScreen=new s.m,this.detectRetina=!0,this.duration=0,this.fpsLimit=120,this.hdr=!0,this.particles=(0,l.y)(this._pluginManager,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&&(this.preset=e.preset,(0,a.wJ)(this.preset,e=>{this._importPreset(e)})),void 0!==e.palette&&(this.palette=e.palette,this._importPalette(this.palette)),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 o=e.fullScreen;(0,n.Lm)(o)?this.fullScreen.enable=o:this.fullScreen.load(o),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._pluginManager.plugins.forEach(t=>{t.loadOptions(this._container,this,e)})}_importPalette=e=>{let t=this._pluginManager.getPalette(e);t&&this.load({background:{color:t.background},blend:{enable:!0,mode:t.blendMode},particles:{fill:{color:t.fill?{value:t.colors}:void 0,enable:t.fill},stroke:t.fill?void 0:t.colors.map(e=>({color:{value:e},width:1}))}})};_importPreset=e=>{this.load(this._pluginManager.getPreset(e))}}},682(e,t,i){i.d(t,{O:()=>n});var a=i(1282);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))}}},2175(e,t,i){i.d(t,{w:()=>o});var a=i(2816),n=i(1282);class o{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))}}},2816(e,t,i){i.d(t,{F:()=>n});var a=i(149);class n extends a.PV{constructor(){super(),this.value=1}}},694(e,t,i){i.d(t,{S:()=>s});var a=i(8468),n=i(1282),o=i(3404);class s{color;enable;opacity;constructor(){this.enable=!0,this.color=new a.A,this.color.value="#fff",this.opacity=1}load(e){(0,n.kZ)(e)||(void 0!==e.color&&(this.color=a.A.create(this.color,e.color)),void 0!==e.enable&&(this.enable=e.enable),void 0!==e.opacity&&(this.opacity=(0,o.DT)(e.opacity)))}}},5028(e,t,i){i.d(t,{y:()=>h});var a=i(1341),n=i(1282),o=i(3761),s=i(3389),r=i(4892),l=i(2183),d=i(2221),u=i(9453),c=i(3404);class h{angle;center;decay;direction;distance;drift;enable;gravity;outModes;path;random;size;speed;spin;straight;vibrate;warp;constructor(){this.angle=new o.h,this.center=new s.Z,this.decay=0,this.distance={},this.direction=a.F.none,this.drift=0,this.enable=!1,this.gravity=new r.y,this.path=new l.v,this.outModes=new d.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.center.load(e.center),void 0!==e.decay&&(this.decay=(0,c.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,c.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,c.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)}}},3761(e,t,i){i.d(t,{h:()=>o});var a=i(1282),n=i(3404);class o{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)))}}},3389(e,t,i){i.d(t,{Z:()=>o});var a=i(4568),n=i(1282);class o{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))}}},4892(e,t,i){i.d(t,{y:()=>o});var a=i(1282),n=i(3404);class o{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)))}}},2221(e,t,i){i.d(t,{j:()=>o});var a=i(9300),n=i(1282);class o{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)}}},2183(e,t,i){i.d(t,{v:()=>s});var a=i(149),n=i(7818),o=i(1282);class s{clamp;delay;enable;generator;options;constructor(){this.clamp=!0,this.delay=new a.PV,this.enable=!1,this.options={}}load(e){!(0,o.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)))}}},9453(e,t,i){i.d(t,{t:()=>s});var a=i(7818),n=i(1282),o=i(3404);class s{acceleration;enable;position;constructor(){this.acceleration=0,this.enable=!1}load(e){!(0,n.kZ)(e)&&(void 0!==e.acceleration&&(this.acceleration=(0,o.DT)(e.acceleration)),void 0!==e.enable&&(this.enable=e.enable),e.position&&(this.position=(0,a.zw)({},e.position)))}}},9020(e,t,i){i.d(t,{M:()=>n});var a=i(1282);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)}}},9611(e,t,i){i.d(t,{N:()=>s});var a=i(9020),n=i(5524),o=i(1282);class s{density;limit;value;constructor(){this.density=new a.M,this.limit=new n.A,this.value=0}load(e){(0,o.kZ)(e)||(this.density.load(e.density),this.limit.load(e.limit),void 0!==e.value&&(this.value=e.value))}}},5524(e,t,i){i.d(t,{A:()=>o});var a=i(7171),n=i(1282);class o{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))}}},8976(e,t,i){i.d(t,{Y:()=>s});var a=i(6280),n=i(149),o=i(1282);class s extends n.AI{animation;constructor(){super(),this.animation=new a.I,this.value=1}load(e){if((0,o.kZ)(e))return;super.load(e);let t=e.animation;void 0!==t&&this.animation.load(t)}}},6280(e,t,i){i.d(t,{I:()=>s});var a=i(1352),n=i(8527),o=i(1282);class s extends n.Q{destroy;constructor(){super(),this.destroy=a.V.none,this.speed=2}load(e){super.load(e),(0,o.kZ)(e)||void 0!==e.destroy&&(this.destroy=e.destroy)}}},2926(e,t,i){i.d(t,{U:()=>v});var a=i(7818),n=i(1282);class o{close;options;type;constructor(){this.close=!0,this.options={},this.type=[]}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.type&&(this.type=e.type)}}var s=i(694),r=i(5028),l=i(8976),d=i(2175),u=i(9611),c=i(4332),h=i(804),p=i(7359),f=i(8250);class v{bounce;effect;fill;groups;move;number;opacity;reduceDuplicates;shape;size;stroke;zIndex;_container;_pluginManager;constructor(e,t){this._pluginManager=e,this._container=t,this.bounce=new d.w,this.effect=new o,this.fill=new s.S,this.groups={},this.move=new r.y,this.number=new u.N,this.opacity=new l.Y,this.reduceDuplicates=!1,this.shape=new c.y,this.size=new h.o,this.stroke=new p.t,this.zIndex=new f.P}load(e){if((0,n.kZ)(e))return;if(void 0!==e.groups)for(let t of Object.keys(e.groups)){if(!(t in e.groups))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.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.fill;t&&(this.fill=(0,a.wJ)(t,e=>{let t=new s.S;return t.load(e),t}));let i=e.stroke;if(i&&(this.stroke=(0,a.wJ)(i,e=>{let t=new p.t;return t.load(e),t})),this._container){for(let t of this._pluginManager.plugins)t.loadParticlesOptions&&t.loadParticlesOptions(this._container,this,e);let t=this._pluginManager.updaters.get(this._container);if(t)for(let i of t)i.loadOptions&&i.loadOptions(this,e)}}}},4332(e,t,i){i.d(t,{y:()=>o});var a=i(7818),n=i(1282);class o{close;options;type;constructor(){this.close=!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.type&&(this.type=e.type)}}},804(e,t,i){i.d(t,{o:()=>s});var a=i(149),n=i(3244),o=i(1282);class s extends a.AI{animation;constructor(){super(),this.animation=new n.q,this.value=3}load(e){if(super.load(e),(0,o.kZ)(e))return;let t=e.animation;void 0!==t&&this.animation.load(t)}}},3244(e,t,i){i.d(t,{q:()=>s});var a=i(1352),n=i(8527),o=i(1282);class s extends n.Q{destroy;constructor(){super(),this.destroy=a.V.none,this.speed=5}load(e){super.load(e),(0,o.kZ)(e)||void 0!==e.destroy&&(this.destroy=e.destroy)}}},7359(e,t,i){i.d(t,{t:()=>s});var a=i(8468),n=i(1282),o=i(3404);class s{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,o.DT)(e.width)),void 0!==e.opacity&&(this.opacity=(0,o.DT)(e.opacity)))}}},8250(e,t,i){i.d(t,{P:()=>o});var a=i(149),n=i(1282);class o 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))}}},7319(e,t,i){i.d(t,{z:()=>n});var a=i(1282);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))}}},149(e,t,i){i.d(t,{AI:()=>l,Jm:()=>r,PV:()=>s});var a=i(8527),n=i(1282),o=i(3404);class s{value;constructor(){this.value=0}load(e){!(0,n.kZ)(e)&&((0,n.kZ)(e.value)||(this.value=(0,o.DT)(e.value)))}}class r extends s{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)}}},8862(e,t,i){i.d(t,{IU:()=>s,KG:()=>u,Md:()=>o,Sn:()=>n,VG:()=>h,Wb:()=>p,gF:()=>c,k:()=>l,p0:()=>r,z5:()=>d});var a=i(7574);function n(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){if(!i)return;let o=e.globalAlpha;e.globalAlpha=n,e.drawImage(i,a.bo.x,a.bo.y,t.width,t.height),e.globalAlpha=o}function s(e,t){e.clearRect(a.bo.x,a.bo.y,t.width,t.height)}function r(e){let{container:t,context:i,particle:n,delta:o,colorStyles:s,radius:r,opacity:p,transform:f}=e,{effectDrawers:v,shapeDrawers:g}=t,m=n.getPosition(),y=n.getTransformData(f),b=a.Pf,x={x:m.x,y:m.y};i.setTransform(y.a,y.b,y.c,y.d,m.x,m.y),s.fill&&(i.fillStyle=s.fill);let w=!!n.fillEnabled,M=n.strokeWidth??a.Dv;i.lineWidth=M,s.stroke&&(i.strokeStyle=s.stroke);let z={context:i,particle:n,radius:r,drawRadius:r*b,opacity:p,delta:o,pixelRatio:t.retina.pixelRatio,fill:w,stroke:M>a.Dv,transformData:y,position:{...m},drawPosition:x,drawScale:b};for(let e of t.plugins)e.drawParticleTransform?.(z);let S=n.effect?v.get(n.effect):void 0,O=n.shape?g.get(n.shape):void 0;d(S,z),h(O,z),u(O,z),c(O,z),l(S,z),i.resetTransform()}function l(e,t){if(!e?.drawAfter)return;let{particle:i}=t;i.effect&&e.drawAfter(t)}function d(e,t){if(!e?.drawBefore)return;let{particle:i}=t;i.effect&&e.drawBefore(t)}function u(e,t){if(!e)return;let{context:i,fill:a,particle:n,stroke:o}=t;n.shape&&(i.beginPath(),e.draw(t),n.shapeClose&&i.closePath(),o&&i.stroke(),a&&i.fill())}function c(e,t){if(!e?.afterDraw)return;let{particle:i}=t;i.shape&&e.afterDraw(t)}function h(e,t){if(!e?.beforeDraw)return;let{particle:i}=t;i.shape&&e.beforeDraw(t)}function p(e,t,i,a){t.drawParticle&&t.drawParticle(e,i,a)}},3723(e,t,i){i.d(t,{BN:()=>h,EY:()=>O,Jv:()=>F,K6:()=>g,Ko:()=>T,LC:()=>S,OH:()=>w,O_:()=>R,PG:()=>k,R5:()=>v,YL:()=>b,_h:()=>P,ay:()=>x,eg:()=>y,mK:()=>f,pz:()=>_,qe:()=>p,xx:()=>M,yx:()=>A,zI:()=>m});var a=i(3404),n=i(7574),o=i(1282),s=i(2354),r=i(3608),l=i(7818);let d=new Map;function u(e,t){let i=d.get(e);return i||(i=t(),d.size>=1e3&&[...d.keys()].slice(0,1e3*n.MX).forEach(e=>d.delete(e)),d.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 h(e,t,i,a=!0){if(!t)return;let n=(0,o.Kg)(t)?{value:t}:t;if((0,o.Kg)(n.value))return p(e,n.value,i,a);if((0,o.cy)(n.value)){let t=(0,l.Vh)(n.value,i,a);if(!t)return;return h(e,{value:t})}for(let t of e.colorManagers.values()){let e=t.handleRangeColor(n);if(e)return e}}function p(e,t,i,a=!0){if(!t)return;let s=(0,o.Kg)(t)?{value:t}:t;if((0,o.Kg)(s.value))return s.value===n.mR?w():c(e,s.value);if((0,o.cy)(s.value)){let t=(0,l.Vh)(s.value,i,a);if(!t)return;return p(e,{value:t})}for(let t of e.colorManagers.values()){let e=t.handleColor(s);if(e)return e}}function f(e,t,i,a=!0){let n=p(e,t,i,a);return n?g(n):void 0}function v(e,t,i,a=!0){let n=h(e,t,i,a);return n?g(n):void 0}function g(e){let t=e.r/n.oi,i=e.g/n.oi,a=e.b/n.oi,o=Math.max(t,i,a),s=Math.min(t,i,a),r={h:n.L1,l:(o+s)*n.MX,s:n.yx};return o!==s&&(r.s=r.l<n.MX?(o-s)/(o+s):(o-s)/(n.gd-o-s),t===o?r.h=(i-a)/(o-s):i===o?r.h=n.gd+(a-t)/(o-s):r.h=n.gd*n.gd+(t-i)/(o-s)),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 m(e,t){return c(e,t)?.a}function y(e,t){return c(e,t)}function b(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)),o=t/n.vS,s=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+s):r+s-r*s,u=n.gd*r-d,c=n.BF/n.Nu;return{r:Math.round(Math.min(n.oi,n.oi*l(u,d,o+c))),g:Math.round(Math.min(n.oi,n.oi*l(u,d,o))),b:Math.round(Math.min(n.oi,n.oi*l(u,d,o-c)))}}function x(e){let t=b(e);return{a:e.a,b:t.b,g:t.g,r:t.r}}function w(e){let t=e??n.Fl,i=n.oi+n.D_,o=()=>Math.floor((0,a.e4)(t,i));return{b:o(),g:o(),r:o()}}function M(e,t,i){let a=i??n.hv;return u(`rgb-${e.r.toFixed(2)}-${e.g.toFixed(2)}-${e.b.toFixed(2)}-${t?"hdr":"sdr"}-${a.toString()}`,()=>{var a,o;return t?z(e,i):(a=e,o=i,`rgba(${a.r.toString()}, ${a.g.toString()}, ${a.b.toString()}, ${(o??n.hv).toString()})`)})}function z(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 S(e,t,i){let a=i??n.hv;return u(`hsl-${e.h.toFixed(2)}-${e.s.toFixed(2)}-${e.l.toFixed(2)}-${t?"hdr":"sdr"}-${a.toString()}`,()=>{var a,o,s,r;return t?(a=e,o=i,z(b(a),o)):(s=e,r=i,`hsla(${s.h.toString()}, ${s.s.toString()}%, ${s.l.toString()}%, ${(r??n.hv).toString()})`)})}function O(e,t,i,n){let o=e,s=t;return"r"in o||(o=b(e)),"r"in s||(s=b(t)),{b:(0,a.jh)(o.b,s.b,i,n),g:(0,a.jh)(o.g,s.g,i,n),r:(0,a.jh)(o.r,s.r,i,n)}}function P(e,t,i){if(i===n.mR)return w();if(i!==n.BW)return i;{let i=e.getFillColor()??e.getStrokeColor(),a=t?.getFillColor()??t?.getStrokeColor();if(i&&a&&t)return O(i,a,e.getRadius(),t.getRadius());{let e=i??a;if(e)return b(e)}}}function k(e,t,i,a){let s=(0,o.Kg)(t)?t:t.value;return s===n.mR?a?h(e,{value:s}):i?n.mR:n.BW:s===n.BW?n.BW:h(e,{value:s})}function R(e){return void 0===e?void 0:{h:e.h.value,s:e.s.value,l:e.l.value}}function _(e,t,i){let a={h:{enable:!1,value:e.h,min:n.L1,max:n.vS},s:{enable:!1,value:e.s,min:n.yx,max:n.eu},l:{enable:!1,value:e.l,min:n.vd,max:n.$_}};return t&&(E(a.h,t.h,i),E(a.s,t.s,i),E(a.l,t.l,i)),a}function E(e,t,i){e.enable=t.enable,e.min=t.min,e.max=t.max,e.enable?(e.velocity=(0,a.VG)(t.speed)/n.a5*i,e.decay=n.WH-(0,a.VG)(t.decay),e.status=r.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 T(e,t,i){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+=i.value),(e.delayTime??0)>0&&e.time<(e.delayTime??0)))return;let n=e.offset?(0,a.vE)(e.offset):0,o=(e.velocity??0)*i.factor+3.6*n,s=e.decay??1,l=e.max,d=e.min;t&&e.status!==r.H.increasing?(e.value-=o,e.value<d&&(e.loops??=0,e.loops++,e.status=r.H.increasing)):(e.value+=o,e.value>l&&(e.loops??=0,e.loops++,t?e.status=r.H.decreasing:e.value-=l)),e.velocity&&1!==s&&(e.velocity*=s),e.value=(0,a.qE)(e.value,d,l)}function F(e,t){if(!e)return;let{h:i,s:a,l:n}=e;T(i,!1,t),T(a,!0,t),T(n,!0,t)}function A(e,t,i){return{h:e.h,s:e.s,l:e.l+(t===s.H.darken?-n.iU:n.iU)*i}}},5576(e,t,i){i.d(t,{B:()=>n,t:()=>o});let a={debug:console.debug,error:(e,t)=>{console.error(`tsParticles - Error - ${e}`,t)},info:console.info,log:console.log,trace:console.trace,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 o(){return a}},3404(e,t,i){i.d(t,{$m:()=>R,AD:()=>p,DT:()=>function e(t,i){if(t===i||void 0===i&&(0,s.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:()=>c,JY:()=>k,M3:()=>D,Mh:()=>T,Nx:()=>A,OE:()=>u,OW:()=>_,Sc:()=>z,Sg:()=>x,VG:()=>b,W9:()=>w,Yf:()=>S,e4:()=>h,eh:()=>E,gp:()=>O,i0:()=>f,jh:()=>m,l1:()=>F,pu:()=>P,px:()=>v,qE:()=>g,qM:()=>I,vE:()=>y,vr:()=>M});var a=i(1341),n=i(7574),o=i(1859),s=i(1282);let r=Math.PI/180,l=Math.random,d={nextFrame:e=>requestAnimationFrame(e),cancel:e=>{cancelAnimationFrame(e)}};function u(e=Math.random){l=e}function c(){return g(l(),0,1-Number.EPSILON)}function h(e,t){return c()*(t-e)+e}function p(e,t){d.nextFrame=e,d.cancel=t}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,s.Et)(e)?e:y(e)}function x(e){return(0,s.Et)(e)?e:e.min}function w(e){return(0,s.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.hypot(i,a)}}function z(e,t){let i=e.x-t.x,a=e.y-t.y;return i*i+a*a}function S(e,t){return Math.sqrt(z(e,t))}function O(e,t,i){return z(e,t)<=i*i}function P(e){return e*r}function k(e,t,i){if((0,s.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 c()*n.R1}}function R(e){let t=o.M.origin;return t.length=1,t.angle=e,t}function _(e,t,i,a){return o.M.create(e.x*(i-a)/(i+a)+t.x*n.gd*a/(i+a),e.y)}function E(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??c()*n.a5)*e.size.width/n.a5,y:(e.position?.y??c()*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 A(e){let{position:t,size:i}=e;return{x:t?.x??c()*i.width,y:t?.y??c()*i.height}}function I(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 A({size:e.size,position:t})}function D(e){return e?e.endsWith("%")?parseFloat(e)/n.a5:parseFloat(e):1}},3468(e,t,i){i.d(t,{Z:()=>n,y:()=>o});var a=i(2926);function n(e,...t){for(let i of t)e.load(i)}function o(e,t,...i){let s=new a.U(e,t);return n(s,...i),s}},1282(e,t,i){function a(e){return"boolean"==typeof e}function n(e){return"string"==typeof e}function o(e){return"number"==typeof e}function s(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:()=>o,Gv:()=>r,Kg:()=>n,Lm:()=>a,Tn:()=>s,cy:()=>l,kZ:()=>d})},7818(e,t,i){i.d(t,{AE:()=>S,BR:()=>m,Bj:()=>p,E9:()=>F,HQ:()=>C,Kp:()=>V,O2:()=>z,Ot:()=>$,T5:()=>v,TA:()=>R,Tg:()=>O,Tj:()=>M,UC:()=>I,Vh:()=>w,Xs:()=>E,YC:()=>A,hJ:()=>L,hn:()=>b,lV:()=>g,n0:()=>x,pE:()=>P,q8:()=>f,tG:()=>y,td:()=>D,w3:()=>_,wJ:()=>k,zw:()=>function e(t,...i){for(let a of i){if((0,o.kZ)(a))continue;if(!(0,o.Gv)(a)){t=a;continue}Array.isArray(a)?Array.isArray(t)||(t=[]):(!(0,o.Gv)(t)||Array.isArray(t))&&(t={});let i=Object.keys(a),n=new Set(["__proto__","constructor","prototype"]);if(!i.some(e=>{let t=a[e];return(0,o.Gv)(t)||Array.isArray(t)})){let e=t;for(let t of i)if(!n.has(t)&&t in a){let i=a[t];void 0!==i&&(e[t]=i)}continue}for(let o of i){if(n.has(o))continue;let i=t,s=a[o];i[o]=Array.isArray(s)?s.map(t=>e(void 0,t)):e(i[o],s)}}return t}});var a=i(3404),n=i(7574),o=i(1282),s=i(9798),r=i(3608),l=i(1352),d=i(2487),u=i(4568),c=i(257),h=i(1859);function p(e,t){let i=new Map,a=t?.maxSize,n=t?.ttlMs,o=t?.keyFn,s=(e,t=new WeakSet)=>{if(null===e)return"null";let i=typeof e;if("undefined"===i)return"undefined";if("number"===i||"boolean"===i||"string"===i)return JSON.stringify(e);if("function"===i)try{return e.toString()}catch{return'"[Function]"'}if("symbol"===i)try{return e.toString()}catch{return'"[Symbol]"'}if(Array.isArray(e))return`[${e.map(e=>s(e,t)).join(",")}]`;if(t.has(e))return'"[Circular]"';t.add(e);let a=Object.keys(e).sort();return`{${a.map(i=>`${JSON.stringify(i)}:${s(e[i],t)}`).join(",")}}`};return(...t)=>{let r,l=(r=t,o?o(r):s(r)),d=Date.now(),u=i.get(l);if(void 0!==u)if(!n||!(d-u.ts>n))return i.delete(l),i.set(l,{value:u.value,ts:u.ts}),u.value;else i.delete(l);let c=e(...t);if(i.set(l,{value:c,ts:d}),"number"==typeof a&&a>=0)for(;i.size>a;){let e=i.keys().next().value;if(void 0===e)break;i.delete(e)}return c}}function f(){return"u">typeof matchMedia}function v(){return globalThis.document}function g(e){if(f())return matchMedia(e)}function m(e){if("u">typeof IntersectionObserver)return new IntersectionObserver(e)}function y(e){if("u">typeof MutationObserver)return new MutationObserver(e)}function b(e,t){return e===t||(0,o.cy)(t)&&t.includes(e)}function x(e){return Math.floor((0,a.G0)()*e.length)}function w(e,t,i=!0){return e[void 0!==t&&i?t%e.length:x(e)]}function M(e,t,i,a,n){return z(S(e,a??0),t,i,n)}function z(e,t,i,a){let n=!0;return a&&a!==d.v.bottom||(n=e.top<t.height+i.x),n&&(!a||a===d.v.left)&&(n=e.right>i.x),n&&(!a||a===d.v.right)&&(n=e.left<t.width+i.y),n&&(!a||a===d.v.top)&&(n=e.bottom>i.y),n}function S(e,t){return{bottom:e.y+t,left:e.x-t,right:e.x+t,top:e.y-t}}function O(e){return{position:e.getPosition(),radius:e.getRadius(),mass:e.getMass(),velocity:e.velocity,factor:h.M.create((0,a.VG)(e.options.bounce.horizontal.value),(0,a.VG)(e.options.bounce.vertical.value))}}function P(e,t){let{x:i,y:n}=e.velocity.sub(t.velocity),[o,s]=[e.position,t.position],{dx:r,dy:l}=(0,a.vr)(s,o);if(i*r+n*l<0)return;let d=-Math.atan2(l,r),u=e.mass,c=t.mass,h=e.velocity.rotate(d),p=t.velocity.rotate(d),f=(0,a.OW)(h,p,u,c),v=(0,a.OW)(p,h,u,c),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,o.cy)(e)?e.map((e,i)=>t(e,i)):t(e,0)}function R(e,t,i){return(0,o.cy)(e)?w(e,t,i):e}function _(e,t){return(0,o.cy)(e)?e.find((e,i)=>t(e,i)):t(e,0)?e:void 0}function E(e,t){let i=e.value,o=e.animation,l={delayTime:(0,a.VG)(o.delay)*n.Xu,enable:o.enable,value:(0,a.VG)(e.value)*t,max:(0,a.W9)(i)*t,min:(0,a.Sg)(i)*t,loops:0,maxLoops:(0,a.VG)(o.count),time:0};if(o.enable){switch(l.decay=1-(0,a.VG)(o.decay),o.mode){case s.g.increase:l.status=r.H.increasing;break;case s.g.decrease:l.status=r.H.decreasing;break;case s.g.random:l.status=(0,a.G0)()>=n.MX?r.H.increasing:r.H.decreasing}let e=o.mode===s.g.auto;switch(o.startValue){case c.S.min:l.value=l.min,e&&(l.status=r.H.increasing);break;case c.S.max:l.value=l.max,e&&(l.status=r.H.decreasing);break;case c.S.random:default:l.value=(0,a.vE)(l),e&&(l.status=(0,a.G0)()>=n.MX?r.H.increasing:r.H.decreasing)}}return l.initialValue=l.value,l}function T(e,t){if(e.mode!==u.q.percent){let{mode:t,...i}=e;return i}return"x"in e?{x:e.x/n.a5*t.width,y:e.y/n.a5*t.height}:{width:e.width/n.a5*t.width,height:e.height/n.a5*t.height}}function F(e,t){return T(e,t)}function A(e,t){return T(e,t)}function I(e,t,i,n,o){if(e.destroyed||!t.enable||(t.maxLoops??0)>0&&(t.loops??0)>(t.maxLoops??0))return;let s=(t.velocity??0)*o.factor,d=t.min,u=t.max,c=t.decay??1;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))){switch(t.status){case r.H.increasing:t.value>=u?(i?t.status=r.H.decreasing:t.value-=u,t.loops??=0,t.loops++):t.value+=s;break;case r.H.decreasing:t.value<=d?(i?t.status=r.H.increasing:t.value+=u,t.loops??=0,t.loops++):t.value-=s}t.velocity&&1!==c&&(t.velocity*=c);var h=t.value;switch(n){case l.V.max:h>=u&&e.destroy();break;case l.V.min:h<=d&&e.destroy()}t.value=(0,a.qE)(t.value,d,u)}}function D(e){let t=v().createElement("div").style;for(let i in e){let a=e[i];if(!(i in e)||(0,o.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 L=p(function(e){let t=v().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});function V(e,t,i,a,n){if(a){let a={passive:!0};(0,o.Lm)(n)?a.capture=n:void 0!==n&&(a=n),e.addEventListener(t,i,a)}else e.removeEventListener(t,i,n)}async function C(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 $(e,t,i,a=!1){let n=t.get(e);return(!n||a)&&(n=new Map(await Promise.all([...i.entries()].map(([t,i])=>i(e).then(e=>[t,e])))),t.set(e,n)),n}}},u={};function c(e){var t=u[e];if(void 0!==t)return t.exports;var i=u[e]={exports:{}};return d[e](i,i.exports,c),i.exports}c.m=d,c.d=(e,t)=>{for(var i in t)c.o(t,i)&&!c.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},c.f={},c.e=e=>Promise.all(Object.keys(c.f).reduce((t,i)=>(c.f[i](e,t),t),[])),c.u=e=>""+e+".min.js",c.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}(),c.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),h={},c.l=(e,t,i,a)=>{if(h[e])return void h[e].push(t);if(void 0!==i)for(var n,o,s=document.getElementsByTagName("script"),r=0;r<s.length;r++){var l=s[r];if(l.getAttribute("src")==e||l.getAttribute("data-webpack")=="@tsparticles/engine:"+i){n=l;break}}n||(o=!0,(n=document.createElement("script")).charset="utf-8",c.nc&&n.setAttribute("nonce",c.nc),n.setAttribute("data-webpack","@tsparticles/engine:"+i),n.src=e),h[e]=[t];var d=(t,i)=>{n.onerror=n.onload=null,clearTimeout(u);var a=h[e];if(delete h[e],n.parentNode&&n.parentNode.removeChild(n),a&&a.forEach(e=>e(i)),t)return t(i)},u=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),o&&document.head.appendChild(n)},c.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},c.g.importScripts&&(p=c.g.location+"");var h,p,f=c.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");c.p=p=p.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),e={397:0},c.f.j=(t,i)=>{var a=c.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 o=c.p+c.u(t),s=Error();c.l(o,i=>{if(c.o(e,t)&&(0!==(a=e[t])&&(e[t]=void 0),a)){var n=i&&("load"===i.type?"missing":i.type),o=i&&i.target&&i.target.src;s.message="Loading chunk "+t+` failed.
|
|
2
|
+
(`+n+": "+o+")",s.name="ChunkLoadError",s.type=n,s.request=o,a[1](s)}},"chunk-"+t,t)}},t=(t,i)=>{var a,n,[o,s,r]=i,l=0;if(o.some(t=>0!==e[t])){for(a in s)c.o(s,a)&&(c.m[a]=s[a]);r&&r(c)}for(t&&t(i);l<o.length;l++)n=o[l],c.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={};c.r(m),c.d(m,{AlterType:()=>L.H,AnimatableColor:()=>Z.A,AnimationMode:()=>F.g,AnimationOptions:()=>G.p,AnimationStatus:()=>B.H,AnimationValueWithRandom:()=>em.Jm,Background:()=>q.V,BaseRange:()=>R.dg,Circle:()=>R.jl,ColorAnimation:()=>H.e,DestroyType:()=>V.V,EasingType:()=>l,EventType:()=>w.B,Fill:()=>U.S,FullScreen:()=>j.m,GradientType:()=>r,HslAnimation:()=>N.i,LimitMode:()=>A.d,Move:()=>ee.y,MoveAngle:()=>et.h,MoveCenter:()=>ei.Z,MoveDirection:()=>E.F,MoveGravity:()=>ea.y,MovePath:()=>eo.v,Opacity:()=>eu.Y,OpacityAnimation:()=>ec.I,Options:()=>W.J,OptionsColor:()=>K.O,OutMode:()=>I.Y,OutModeDirection:()=>T.v,OutModes:()=>en.j,ParticleOutType:()=>C.x,ParticlesBounce:()=>X.w,ParticlesBounceFactor:()=>J.F,ParticlesDensity:()=>ed.M,ParticlesNumber:()=>er.N,ParticlesNumberLimit:()=>el.A,ParticlesOptions:()=>Q.U,PixelMode:()=>D.q,RangedAnimationOptions:()=>G.Q,RangedAnimationValueWithRandom:()=>em.AI,Rectangle:()=>R.M_,ResizeEvent:()=>eg.z,RotateDirection:()=>s,Shape:()=>eh.y,Size:()=>ep.o,SizeAnimation:()=>ef.q,Spin:()=>es.t,StartValueType:()=>$.S,Stroke:()=>Y.t,ValueWithRandom:()=>em.PV,Vector:()=>_.M,Vector3d:()=>_.p,ZIndex:()=>ev.P,alterHsl:()=>eb.yx,animate:()=>S.i0,areBoundsInside:()=>b.O2,arrayRandomIndex:()=>b.n0,calcExactPositionOrRandomFromSize:()=>S.Nx,calcExactPositionOrRandomFromSizeRanged:()=>S.qM,calcPositionFromSize:()=>S.eh,calcPositionOrRandomFromSize:()=>S.Mh,calcPositionOrRandomFromSizeRanged:()=>S.l1,calculateBounds:()=>b.AE,cancelAnimation:()=>S.px,canvasFirstIndex:()=>y.Nx,canvasTag:()=>y.RF,checkDistance:()=>S.gp,circleBounce:()=>b.pE,circleBounceDataFromParticle:()=>b.Tg,clamp:()=>S.qE,clear:()=>ey.IU,cloneStyle:()=>b.td,collisionVelocity:()=>S.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,defaultCompositeValue:()=>y.yj,defaultDensityFactor:()=>y.lA,defaultFps:()=>y.z$,defaultFpsLimit:()=>y.i8,defaultLoops:()=>y.hK,defaultOpacity:()=>y.hv,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,defaultZoom:()=>y.Pf,degToRad:()=>S.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:()=>S.Yf,getDistanceSq:()=>S.Sc,getDistances:()=>S.vr,getFullScreenStyle:()=>b.hJ,getHslAnimationFromHsl:()=>eb.pz,getHslFromAnimation:()=>eb.O_,getItemMapFromInitializer:()=>b.Ot,getItemsFromInitializer:()=>b.HQ,getLinkColor:()=>eb._h,getLinkRandomColor:()=>eb.PG,getLogger:()=>z.t,getParticleBaseVelocity:()=>S.$m,getParticleDirectionAngle:()=>S.JY,getPosition:()=>b.E9,getRandom:()=>S.G0,getRandomInRange:()=>S.e4,getRandomRgbColor:()=>eb.OH,getRangeMax:()=>S.W9,getRangeMin:()=>S.Sg,getRangeValue:()=>S.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,memoize:()=>b.Bj,midColorValue:()=>y.BW,millisecondsToSeconds:()=>y.Xu,minCount:()=>y.wM,minFpsLimit:()=>y.DN,minIndex:()=>y.z9,minLimit:()=>y.ou,minStrokeWidth:()=>y.Dv,minVelocity:()=>y.GW,minZ:()=>y.X_,minimumSize:()=>y.w2,mix:()=>S.jh,none:()=>y.dv,one:()=>y.xH,originPoint:()=>y.bo,paintBase:()=>ey.Sn,paintImage:()=>ey.Md,parseAlpha:()=>S.M3,percentDenominator:()=>y.a5,phaseNumerator:()=>y.BF,quarter:()=>y.$G,randomColorValue:()=>y.mR,randomInRangeValue:()=>S.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:()=>S.AD,setLogger:()=>z.B,setRandom:()=>S.OE,setRangeValue:()=>S.DT,sextuple:()=>y.zg,spatialHashGridCellSize:()=>y.iX,squareExp:()=>y.dm,stringToAlpha:()=>eb.zI,stringToRgb:()=>eb.eg,threeQuarter:()=>y.Rq,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=c(7574),b=c(7818);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=c(9898);class M{colorManagers=new Map;easingFunctions=new Map;effectDrawers=new Map;initializers={effects:new Map,shapes:new Map,updaters:new Map};palettes=new Map;plugins=[];presets=new Map;shapeDrawers=new Map;updaters=new Map;_allLoadersSet=new Set;_configs=new Map;_engine;_executedSet=new Set;_initialized=!1;_isRunningLoaders=!1;_loadPromises=new Set;constructor(e){this._engine=e}get configs(){let e={};for(let[t,i]of this._configs)e[t]=i;return e}addColorManager(e,t){this.colorManagers.set(e,t)}addConfig(e){let t=e.key??e.name??"default";this._configs.set(t,e),this._engine.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)}addPalette(e,t){this.palettes.set(e,t)}addParticleUpdater(e,t){this.initializers.updaters.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)}clearPlugins(e){this.effectDrawers.delete(e),this.shapeDrawers.delete(e),this.updaters.delete(e)}getEasing(e){return this.easingFunctions.get(e)??(e=>e)}getEffectDrawers(e,t=!1){return(0,b.Ot)(e,this.effectDrawers,this.initializers.effects,t)}getPalette(e){return this.palettes.get(e)}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}}}loadParticlesOptions(e,t,...i){let a=this.updaters.get(e);a&&a.forEach(e=>e.loadOptions?.(t,...i))}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)}async _runLoader(e,t,i){t.has(e)||(t.add(e),i.add(e),await e(this._engine))}}var z=c(5576),S=c(3404);let O="100%";async function P(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,z.t)().error(`${i.status.toString()} while retrieving config file`),e.fallback)}class k{pluginManager=new M(this);_domArray=[];_eventDispatcher=new x;_initialized=!1;get items(){return this._domArray}get version(){return"4.0.0-beta.2"}addEventListener(e,t){this._eventDispatcher.addEventListener(e,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}`)}dispatchEvent(e,t){this._eventDispatcher.dispatchEvent(e,t)}async init(){this._initialized||(await this.pluginManager.init(),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 c.e(155).then(c.bind(c,2155)),o=e.id??e.element?.id??`tsparticles${Math.floor((0,S.G0)()*y.$v).toString()}`,{index:s,url:r}=e,l=r?await P({fallback:e.options,url:r,index:s}):e.options,d=(0,b.TA)(l,s),{items:u}=this,h=u.findIndex(e=>e.id.description===o),p=new n({dispatchCallback:(e,t)=>{this.dispatchEvent(e,t)},id:o,onDestroy:e=>{if(!e)return;let t=this.items,i=t.indexOf(p);i>=y.vF&&t.splice(i,y.JC)},pluginManager:this.pluginManager,sourceOptions:d});if(h>=y.PZ){let e=this.item(h),t=e?y.xH:y.dv;e&&!e.destroyed&&e.destroy(!1),u.splice(h,t,p)}else u.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||=O,t.style.height||=O,t})((t=e.element,i=(0,b.T5)(),(a=t??i.getElementById(o))||((a=i.createElement("canvas")).id=o,a.dataset[y.eb]=y.ce,i.body.append(a)),a));return p.canvas.loadCanvas(f),await p.start(),p}async refresh(e=!0){e&&await Promise.all(this.items.map(e=>e.refresh()))}removeEventListener(e,t){this._eventDispatcher.removeEventListener(e,t)}}var R=c(8450),_=c(1859),E=c(1341);(a=s||(s={})).clockwise="clockwise",a.counterClockwise="counter-clockwise",a.random="random";var T=c(2487),F=c(9798),A=c(7171),I=c(9300),D=c(4568),L=c(2354),V=c(1352);(n=r||(r={})).linear="linear",n.radial="radial",n.random="random";var C=c(6028),$=c(257);(o=l||(l={})).easeInBack="ease-in-back",o.easeInBounce="ease-in-bounce",o.easeInCirc="ease-in-circ",o.easeInCubic="ease-in-cubic",o.easeInElastic="ease-in-elastic",o.easeInExpo="ease-in-expo",o.easeInGaussian="ease-in-gaussian",o.easeInLinear="ease-in-linear",o.easeInQuad="ease-in-quad",o.easeInQuart="ease-in-quart",o.easeInQuint="ease-in-quint",o.easeInSigmoid="ease-in-sigmoid",o.easeInSine="ease-in-sine",o.easeInSmoothstep="ease-in-smoothstep",o.easeOutBack="ease-out-back",o.easeOutBounce="ease-out-bounce",o.easeOutCirc="ease-out-circ",o.easeOutCubic="ease-out-cubic",o.easeOutElastic="ease-out-elastic",o.easeOutExpo="ease-out-expo",o.easeOutGaussian="ease-out-gaussian",o.easeOutLinear="ease-out-linear",o.easeOutQuad="ease-out-quad",o.easeOutQuart="ease-out-quart",o.easeOutQuint="ease-out-quint",o.easeOutSigmoid="ease-out-sigmoid",o.easeOutSine="ease-out-sine",o.easeOutSmoothstep="ease-out-smoothstep",o.easeInOutBack="ease-in-out-back",o.easeInOutBounce="ease-in-out-bounce",o.easeInOutCirc="ease-in-out-circ",o.easeInOutCubic="ease-in-out-cubic",o.easeInOutElastic="ease-in-out-elastic",o.easeInOutExpo="ease-in-out-expo",o.easeInOutGaussian="ease-in-out-gaussian",o.easeInOutLinear="ease-in-out-linear",o.easeInOutQuad="ease-in-out-quad",o.easeInOutQuart="ease-in-out-quart",o.easeInOutQuint="ease-in-out-quint",o.easeInOutSigmoid="ease-in-out-sigmoid",o.easeInOutSine="ease-in-out-sine",o.easeInOutSmoothstep="ease-in-out-smoothstep";var B=c(3608),Z=c(8468),G=c(8527),q=c(6322),H=c(6676),j=c(2292),N=c(2580),W=c(7849),K=c(682),X=c(2175),J=c(2816),Q=c(2926),U=c(694),Y=c(7359),ee=c(5028),et=c(3761),ei=c(3389),ea=c(4892),en=c(2221),eo=c(2183),es=c(9453),er=c(9611),el=c(5524),ed=c(9020),eu=c(8976),ec=c(6280),eh=c(4332),ep=c(804),ef=c(3244),ev=c(8250),eg=c(7319),em=c(149),ey=c(8862),eb=c(3723),ex=c(3468),ew=c(1282);let eM=new k;return globalThis.tsParticles=eM,m})());
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { Container } from "./Container.js";
|
|
2
|
+
import type { ICoordinates } from "./Interfaces/ICoordinates.js";
|
|
3
|
+
import type { IDimension } from "./Interfaces/IDimension.js";
|
|
4
|
+
import type { PluginManager } from "./Utils/PluginManager.js";
|
|
5
|
+
import { RenderManager } from "./RenderManager.js";
|
|
6
|
+
export declare class CanvasManager {
|
|
7
|
+
element?: HTMLCanvasElement;
|
|
8
|
+
readonly render: RenderManager;
|
|
9
|
+
readonly size: IDimension;
|
|
10
|
+
zoom: number;
|
|
11
|
+
private readonly _container;
|
|
12
|
+
private _generated;
|
|
13
|
+
private _mutationObserver?;
|
|
14
|
+
private _originalStyle?;
|
|
15
|
+
private readonly _pluginManager;
|
|
16
|
+
private _pointerEvents;
|
|
17
|
+
private _resizePlugins;
|
|
18
|
+
private readonly _standardSize;
|
|
19
|
+
private _zoomCenter?;
|
|
20
|
+
constructor(pluginManager: PluginManager, container: Container);
|
|
21
|
+
private get _fullScreen();
|
|
22
|
+
destroy(): void;
|
|
23
|
+
getZoomCenter(): ICoordinates;
|
|
24
|
+
init(): void;
|
|
25
|
+
initBackground(): void;
|
|
26
|
+
initPlugins(): void;
|
|
27
|
+
loadCanvas(canvas: HTMLCanvasElement): void;
|
|
28
|
+
resize(): boolean;
|
|
29
|
+
setPointerEvents(type: string): void;
|
|
30
|
+
setZoom(zoomLevel: number, center?: ICoordinates): void;
|
|
31
|
+
stop(): void;
|
|
32
|
+
windowResize(): Promise<void>;
|
|
33
|
+
private readonly _applyResizePlugins;
|
|
34
|
+
private readonly _initStyle;
|
|
35
|
+
private readonly _repairStyle;
|
|
36
|
+
private readonly _resetOriginalStyle;
|
|
37
|
+
private readonly _safeMutationObserver;
|
|
38
|
+
private readonly _setFullScreenStyle;
|
|
39
|
+
}
|
|
@@ -1,14 +1,26 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import type {
|
|
1
|
+
import { CanvasManager } from "./CanvasManager.js";
|
|
2
|
+
import type { CustomEventArgs } from "../Types/CustomEventArgs.js";
|
|
3
3
|
import type { IContainerPlugin } from "./Interfaces/IContainerPlugin.js";
|
|
4
|
+
import { type IEffectDrawer } from "./Interfaces/IEffectDrawer.js";
|
|
5
|
+
import { type IParticleUpdater } from "./Interfaces/IParticleUpdater.js";
|
|
6
|
+
import { type IShapeDrawer } from "./Interfaces/IShapeDrawer.js";
|
|
4
7
|
import type { ISourceOptions } from "../Types/ISourceOptions.js";
|
|
5
8
|
import { Options } from "../Options/Classes/Options.js";
|
|
6
|
-
import {
|
|
9
|
+
import { ParticlesManager } from "./ParticlesManager.js";
|
|
10
|
+
import type { PluginManager } from "./Utils/PluginManager.js";
|
|
7
11
|
import { Retina } from "./Retina.js";
|
|
12
|
+
interface ContainerParams {
|
|
13
|
+
dispatchCallback: (eventType: string, args?: CustomEventArgs) => void;
|
|
14
|
+
id: string;
|
|
15
|
+
onDestroy: (remove: boolean) => void;
|
|
16
|
+
pluginManager: PluginManager;
|
|
17
|
+
sourceOptions?: ISourceOptions;
|
|
18
|
+
}
|
|
8
19
|
export declare class Container {
|
|
9
20
|
actualOptions: Options;
|
|
10
|
-
readonly canvas:
|
|
21
|
+
readonly canvas: CanvasManager;
|
|
11
22
|
destroyed: boolean;
|
|
23
|
+
effectDrawers: Map<string, IEffectDrawer>;
|
|
12
24
|
fpsLimit: number;
|
|
13
25
|
hdr: boolean;
|
|
14
26
|
readonly id: symbol;
|
|
@@ -16,36 +28,42 @@ export declare class Container {
|
|
|
16
28
|
readonly particleCreatedPlugins: IContainerPlugin[];
|
|
17
29
|
readonly particleDestroyedPlugins: IContainerPlugin[];
|
|
18
30
|
readonly particlePositionPlugins: IContainerPlugin[];
|
|
19
|
-
|
|
31
|
+
particleUpdaters: IParticleUpdater[];
|
|
32
|
+
readonly particles: ParticlesManager;
|
|
20
33
|
readonly plugins: IContainerPlugin[];
|
|
21
34
|
readonly retina: Retina;
|
|
35
|
+
shapeDrawers: Map<string, IShapeDrawer>;
|
|
22
36
|
started: boolean;
|
|
23
37
|
zLayers: number;
|
|
24
38
|
private _delay;
|
|
25
39
|
private _delayTimeout?;
|
|
26
40
|
private readonly _delta;
|
|
41
|
+
private readonly _dispatchCallback;
|
|
27
42
|
private _drawAnimationFrame?;
|
|
28
43
|
private _duration;
|
|
29
|
-
private readonly _engine;
|
|
30
44
|
private readonly _eventListeners;
|
|
31
45
|
private _firstStart;
|
|
32
46
|
private _initialSourceOptions;
|
|
33
47
|
private _lastFrameTime?;
|
|
34
48
|
private _lifeTime;
|
|
49
|
+
private readonly _onDestroy;
|
|
35
50
|
private _options;
|
|
36
51
|
private _paused;
|
|
52
|
+
private readonly _pluginManager;
|
|
37
53
|
private _smooth;
|
|
38
54
|
private _sourceOptions;
|
|
39
|
-
constructor(
|
|
55
|
+
constructor(params: ContainerParams);
|
|
40
56
|
get animationStatus(): boolean;
|
|
41
57
|
get options(): Options;
|
|
42
58
|
get sourceOptions(): ISourceOptions | undefined;
|
|
43
59
|
addLifeTime(value: number): void;
|
|
44
60
|
alive(): boolean;
|
|
45
61
|
destroy(remove?: boolean): void;
|
|
62
|
+
dispatchEvent(type: string, data?: unknown): void;
|
|
46
63
|
draw(force: boolean): void;
|
|
47
64
|
export(type: string, options?: Record<string, unknown>): Promise<Blob | undefined>;
|
|
48
65
|
init(): Promise<void>;
|
|
66
|
+
initDrawersAndUpdaters(): Promise<void>;
|
|
49
67
|
pause(): void;
|
|
50
68
|
play(force?: boolean): void;
|
|
51
69
|
refresh(): Promise<void>;
|
|
@@ -55,3 +73,4 @@ export declare class Container {
|
|
|
55
73
|
updateActualOptions(): boolean;
|
|
56
74
|
private readonly _nextFrame;
|
|
57
75
|
}
|
|
76
|
+
export {};
|
package/types/Core/Engine.d.ts
CHANGED
|
@@ -1,76 +1,24 @@
|
|
|
1
|
-
import type { EasingType, EasingTypeAlt } from "../Enums/Types/EasingType.js";
|
|
2
|
-
import type { EffectInitializer, Initializers, ShapeInitializer, UpdaterInitializer } from "../Types/EngineInitializers.js";
|
|
3
1
|
import type { Container } from "./Container.js";
|
|
4
2
|
import type { CustomEventArgs } from "../Types/CustomEventArgs.js";
|
|
5
3
|
import type { CustomEventListener } from "../Types/CustomEventListener.js";
|
|
6
|
-
import type { EasingFunction } from "../Types/EasingFunction.js";
|
|
7
|
-
import type { IColorManager } from "./Interfaces/IColorManager.js";
|
|
8
|
-
import type { IEffectDrawer } from "./Interfaces/IEffectDrawer.js";
|
|
9
4
|
import type { ILoadParams } from "./Interfaces/ILoadParams.js";
|
|
10
|
-
import
|
|
11
|
-
import type { IParticleUpdater } from "./Interfaces/IParticleUpdater.js";
|
|
12
|
-
import type { IParticlesOptions } from "../Options/Interfaces/Particles/IParticlesOptions.js";
|
|
13
|
-
import type { IPlugin } from "./Interfaces/IPlugin.js";
|
|
14
|
-
import type { IShapeDrawer } from "./Interfaces/IShapeDrawer.js";
|
|
15
|
-
import type { ISourceOptions } from "../Types/ISourceOptions.js";
|
|
16
|
-
import type { ParticlesOptions } from "../Options/Classes/Particles/ParticlesOptions.js";
|
|
17
|
-
import type { RecursivePartial } from "../Types/RecursivePartial.js";
|
|
5
|
+
import { PluginManager } from "./Utils/PluginManager.js";
|
|
18
6
|
declare global {
|
|
19
7
|
var tsParticles: Engine;
|
|
20
8
|
}
|
|
21
|
-
type AsyncLoadPluginFunction = (engine: Engine) => Promise<void>;
|
|
22
|
-
type SyncLoadPluginFunction = (engine: Engine) => void;
|
|
23
|
-
type AsyncLoadPluginNoEngine = () => Promise<void>;
|
|
24
|
-
type SyncLoadPluginNoEngine = () => void;
|
|
25
|
-
type LoadPluginFunction = AsyncLoadPluginFunction | SyncLoadPluginFunction | AsyncLoadPluginNoEngine | SyncLoadPluginNoEngine;
|
|
26
9
|
export declare class Engine {
|
|
27
|
-
readonly
|
|
28
|
-
readonly easingFunctions: Map<EasingTypeAlt | EasingType, EasingFunction>;
|
|
29
|
-
readonly effectDrawers: Map<Container, Map<string, IEffectDrawer<import("./Particle.js").Particle>>>;
|
|
30
|
-
readonly initializers: Initializers;
|
|
31
|
-
readonly palettes: Map<string, IPalette>;
|
|
32
|
-
readonly plugins: IPlugin[];
|
|
33
|
-
readonly presets: Map<string, RecursivePartial<import("../export-types.js").IOptions>>;
|
|
34
|
-
readonly shapeDrawers: Map<Container, Map<string, IShapeDrawer<import("./Particle.js").Particle>>>;
|
|
35
|
-
readonly updaters: Map<Container, IParticleUpdater[]>;
|
|
36
|
-
private _allLoadersSet;
|
|
37
|
-
private readonly _configs;
|
|
10
|
+
readonly pluginManager: PluginManager;
|
|
38
11
|
private readonly _domArray;
|
|
39
12
|
private readonly _eventDispatcher;
|
|
40
|
-
private _executedSet;
|
|
41
13
|
private _initialized;
|
|
42
|
-
private _isRunningLoaders;
|
|
43
|
-
private readonly _loadPromises;
|
|
44
|
-
get configs(): Record<string, ISourceOptions>;
|
|
45
14
|
get items(): Container[];
|
|
46
15
|
get version(): string;
|
|
47
|
-
addColorManager(name: string, manager: IColorManager): void;
|
|
48
|
-
addConfig(config: ISourceOptions): void;
|
|
49
|
-
addEasing(name: EasingType | EasingTypeAlt, easing: EasingFunction): void;
|
|
50
|
-
addEffect(effect: string, drawer: EffectInitializer): void;
|
|
51
16
|
addEventListener(type: string, listener: CustomEventListener): void;
|
|
52
|
-
addPalette(name: string, palette: IPalette): void;
|
|
53
|
-
addParticleUpdater(name: string, updaterInitializer: UpdaterInitializer): void;
|
|
54
|
-
addPlugin(plugin: IPlugin): void;
|
|
55
|
-
addPreset(preset: string, options: Readonly<ISourceOptions>, override?: boolean): void;
|
|
56
|
-
addShape(shapes: string[], drawer: ShapeInitializer): void;
|
|
57
17
|
checkVersion(pluginVersion: string): void;
|
|
58
|
-
clearPlugins(container: Container): void;
|
|
59
18
|
dispatchEvent(type: string, args?: CustomEventArgs): void;
|
|
60
|
-
getEasing(name: EasingType | EasingTypeAlt): EasingFunction;
|
|
61
|
-
getEffectDrawers(container: Container, force?: boolean): Promise<Map<string, IEffectDrawer>>;
|
|
62
|
-
getPalette(name: string): IPalette | undefined;
|
|
63
|
-
getPlugin(plugin: string): IPlugin | undefined;
|
|
64
|
-
getPreset(preset: string): ISourceOptions | undefined;
|
|
65
|
-
getShapeDrawers(container: Container, force?: boolean): Promise<Map<string, IShapeDrawer>>;
|
|
66
|
-
getUpdaters(container: Container, force?: boolean): Promise<IParticleUpdater[]>;
|
|
67
19
|
init(): Promise<void>;
|
|
68
20
|
item(index: number): Container | undefined;
|
|
69
21
|
load(params: ILoadParams): Promise<Container | undefined>;
|
|
70
|
-
loadParticlesOptions(container: Container, options: ParticlesOptions, ...sourceOptions: (RecursivePartial<IParticlesOptions> | undefined)[]): void;
|
|
71
22
|
refresh(refresh?: boolean): Promise<void>;
|
|
72
|
-
register(...loaders: LoadPluginFunction[]): Promise<void>;
|
|
73
23
|
removeEventListener(type: string, listener: CustomEventListener): void;
|
|
74
|
-
private _runLoader;
|
|
75
24
|
}
|
|
76
|
-
export {};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { CanvasContextType } from "../../Types/CanvasContextType.js";
|
|
1
2
|
import type { ExportResult } from "../../Types/ExportResult.js";
|
|
2
3
|
import type { ICoordinates } from "./ICoordinates.js";
|
|
3
4
|
import type { IDelta } from "./IDelta.js";
|
|
@@ -9,16 +10,16 @@ export interface IContainerPlugin {
|
|
|
9
10
|
canvasClear?: () => boolean;
|
|
10
11
|
canvasPaint?: () => boolean;
|
|
11
12
|
checkParticlePosition?: (particle: Particle, position: ICoordinates, tryCount: number) => boolean;
|
|
12
|
-
clearDraw?: (context:
|
|
13
|
+
clearDraw?: (context: CanvasContextType, delta: IDelta) => void;
|
|
13
14
|
clickPositionValid?: (position: ICoordinates) => boolean;
|
|
14
15
|
destroy?: () => void;
|
|
15
|
-
draw?: (context:
|
|
16
|
-
drawParticle?: (context:
|
|
17
|
-
drawParticleCleanup?: (context:
|
|
18
|
-
drawParticleSetup?: (context:
|
|
16
|
+
draw?: (context: CanvasContextType, delta: IDelta) => void;
|
|
17
|
+
drawParticle?: (context: CanvasContextType, particle: Particle, delta: IDelta) => void;
|
|
18
|
+
drawParticleCleanup?: (context: CanvasContextType, particle: Particle, delta: IDelta) => void;
|
|
19
|
+
drawParticleSetup?: (context: CanvasContextType, particle: Particle, delta: IDelta) => void;
|
|
19
20
|
drawParticleTransform?: (data: IShapeDrawData) => void;
|
|
20
|
-
drawSettingsCleanup?: (context:
|
|
21
|
-
drawSettingsSetup?: (context:
|
|
21
|
+
drawSettingsCleanup?: (context: CanvasContextType, delta: IDelta) => void;
|
|
22
|
+
drawSettingsSetup?: (context: CanvasContextType, delta: IDelta) => void;
|
|
22
23
|
export?: (type: string, data: Record<string, unknown>) => Promise<ExportResult>;
|
|
23
24
|
init?: () => Promise<void>;
|
|
24
25
|
particleBounce?: (particle: Particle, delta: IDelta, direction: OutModeDirection) => boolean;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { CanvasContextType } from "../../Types/CanvasContextType.js";
|
|
1
2
|
import type { Container } from "../Container.js";
|
|
2
3
|
import type { IDelta } from "./IDelta.js";
|
|
3
4
|
import type { IParticleColorStyle } from "./IParticleColorStyle.js";
|
|
@@ -6,7 +7,7 @@ import type { Particle } from "../Particle.js";
|
|
|
6
7
|
export interface IDrawParticleParams {
|
|
7
8
|
colorStyles: IParticleColorStyle;
|
|
8
9
|
container: Container;
|
|
9
|
-
context:
|
|
10
|
+
context: CanvasContextType;
|
|
10
11
|
delta: IDelta;
|
|
11
12
|
opacity: number;
|
|
12
13
|
particle: Particle;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { IDistance } from "./IDistance.js";
|
|
2
2
|
export interface IParticleRetinaProps {
|
|
3
3
|
maxDistance: Partial<IDistance>;
|
|
4
|
-
maxSpeed
|
|
5
|
-
moveDrift
|
|
6
|
-
moveSpeed
|
|
7
|
-
sizeAnimationSpeed
|
|
4
|
+
maxSpeed: number;
|
|
5
|
+
moveDrift: number;
|
|
6
|
+
moveSpeed: number;
|
|
7
|
+
sizeAnimationSpeed: number;
|
|
8
8
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { CanvasContextType } from "../../Types/CanvasContextType.js";
|
|
1
2
|
import type { IDelta } from "./IDelta.js";
|
|
2
3
|
import type { IParticleColorStyle } from "./IParticleColorStyle.js";
|
|
3
4
|
import type { IParticleTransformValues } from "./IParticleTransformValues.js";
|
|
@@ -8,7 +9,7 @@ import type { RecursivePartial } from "../../Types/RecursivePartial.js";
|
|
|
8
9
|
export interface IParticleUpdater {
|
|
9
10
|
afterDraw?: (particle: Particle) => void;
|
|
10
11
|
beforeDraw?: (particle: Particle) => void;
|
|
11
|
-
getColorStyles?: (particle: Particle, context:
|
|
12
|
+
getColorStyles?: (particle: Particle, context: CanvasContextType, radius: number, opacity: number) => IParticleColorStyle;
|
|
12
13
|
getTransformValues?: (particle: Particle) => Partial<IParticleTransformValues>;
|
|
13
14
|
loadOptions?: (options: ParticlesOptions, ...sources: (RecursivePartial<IParticlesOptions> | undefined)[]) => void;
|
|
14
15
|
particleDestroyed?: (particle: Particle, override?: boolean) => void;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import type { CanvasContextType } from "../../Types/CanvasContextType.js";
|
|
1
2
|
import type { ICoordinates } from "./ICoordinates.js";
|
|
2
3
|
import type { IDelta } from "./IDelta.js";
|
|
3
4
|
import type { Particle } from "../Particle.js";
|
|
4
5
|
export interface IShapeDrawData<TParticle extends Particle = Particle> {
|
|
5
|
-
context:
|
|
6
|
+
context: CanvasContextType;
|
|
6
7
|
delta: IDelta;
|
|
7
8
|
drawPosition: ICoordinates;
|
|
8
9
|
drawRadius: number;
|
package/types/Core/Particle.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import type { ICenterCoordinates, ICoordinates, ICoordinates3d } from "./Interfaces/ICoordinates.js";
|
|
2
2
|
import { Vector, Vector3d } from "./Utils/Vectors.js";
|
|
3
3
|
import type { Container } from "./Container.js";
|
|
4
|
-
import type { Engine } from "./Engine.js";
|
|
5
4
|
import type { IBubbleParticleData } from "./Interfaces/IBubbleParticleData.js";
|
|
6
5
|
import type { IDelta } from "./Interfaces/IDelta.js";
|
|
7
6
|
import type { IHsl } from "./Interfaces/Colors.js";
|
|
@@ -17,9 +16,9 @@ import type { IShapeValues } from "./Interfaces/IShapeValues.js";
|
|
|
17
16
|
import type { ISlowParticleData } from "./Interfaces/ISlowParticleData.js";
|
|
18
17
|
import { ParticleOutType } from "../Enums/Types/ParticleOutType.js";
|
|
19
18
|
import type { ParticlesOptions } from "../Options/Classes/Particles/ParticlesOptions.js";
|
|
19
|
+
import type { PluginManager } from "./Utils/PluginManager.js";
|
|
20
20
|
import type { RecursivePartial } from "../Types/RecursivePartial.js";
|
|
21
21
|
export declare class Particle {
|
|
22
|
-
readonly container: Container;
|
|
23
22
|
backColor?: IHsl;
|
|
24
23
|
bubble: IBubbleParticleData;
|
|
25
24
|
destroyed: boolean;
|
|
@@ -66,8 +65,9 @@ export declare class Particle {
|
|
|
66
65
|
private readonly _cachedPosition;
|
|
67
66
|
private readonly _cachedRotateData;
|
|
68
67
|
private readonly _cachedTransform;
|
|
69
|
-
private readonly
|
|
70
|
-
|
|
68
|
+
private readonly _container;
|
|
69
|
+
private readonly _pluginManager;
|
|
70
|
+
constructor(pluginManager: PluginManager, container: Container);
|
|
71
71
|
destroy(override?: boolean): void;
|
|
72
72
|
draw(delta: IDelta): void;
|
|
73
73
|
getAngle(): number;
|