@tsparticles/pjs 3.9.0 → 4.0.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/571.min.js +2 -0
- package/571.min.js.LICENSE.txt +1 -0
- package/browser/bundle.js +1 -1
- package/browser/index.js +6 -6
- package/browser/marcbruederlin/Particles.js +4 -4
- package/cjs/VincentGarreau/IParticlesJS.js +1 -2
- package/cjs/VincentGarreau/particles.js +3 -6
- package/cjs/bundle.js +5 -24
- package/cjs/index.js +9 -12
- package/cjs/marcbruederlin/Particles.js +5 -9
- package/engine_dist_browser_Core_Container_js.js +100 -0
- package/esm/bundle.js +1 -1
- package/esm/index.js +6 -6
- package/esm/marcbruederlin/Particles.js +4 -4
- package/package.json +4 -3
- package/report.html +5 -4
- package/tsparticles.pjs.bundle.js +507 -1466
- package/tsparticles.pjs.bundle.min.js +1 -1
- package/tsparticles.pjs.bundle.min.js.LICENSE.txt +1 -1
- package/tsparticles.pjs.js +22 -28
- package/tsparticles.pjs.min.js +1 -1
- package/tsparticles.pjs.min.js.LICENSE.txt +1 -1
- package/types/bundle.d.ts +1 -1
- package/types/index.d.ts +5 -7
- package/types/marcbruederlin/Particles.d.ts +2 -2
- package/umd/bundle.js +3 -3
- package/umd/index.js +5 -5
- package/umd/marcbruederlin/Particles.js +5 -5
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! For license information please see tsparticles.pjs.bundle.min.js.LICENSE.txt */
|
|
2
|
-
!function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var i=e();for(var s in i)("object"==typeof exports?exports:t)[s]=i[s]}}(this,(()=>(()=>{var t={d:(e,i)=>{for(var s in i)t.o(i,s)&&!t.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:i[s]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};t.r(e),t.d(e,{AlterType:()=>di,AnimatableColor:()=>Os,AnimationMode:()=>Pe,AnimationOptions:()=>zs,AnimationStatus:()=>ke,AnimationValueWithRandom:()=>Ds,Background:()=>rs,BackgroundMask:()=>ls,BackgroundMaskCover:()=>cs,BaseRange:()=>pn,Circle:()=>fn,ClickEvent:()=>ds,CollisionMode:()=>gi,Collisions:()=>Ls,CollisionsAbsorb:()=>Ss,CollisionsOverlap:()=>Cs,ColorAnimation:()=>Ps,DestroyType:()=>Oe,DivEvent:()=>us,DivType:()=>fi,EasingType:()=>Rn,EventType:()=>pi,Events:()=>vs,ExternalInteractorBase:()=>kn,FullScreen:()=>hs,GradientType:()=>Cn,HoverEvent:()=>fs,HslAnimation:()=>ks,Interactivity:()=>ys,InteractivityDetect:()=>ui,InteractorType:()=>bi,LimitMode:()=>_i,ManualParticle:()=>_s,Modes:()=>gs,Move:()=>Gs,MoveAngle:()=>As,MoveAttract:()=>Vs,MoveCenter:()=>Bs,MoveDirection:()=>Ut,MoveGravity:()=>Hs,MovePath:()=>qs,MoveTrail:()=>Us,Opacity:()=>Qs,OpacityAnimation:()=>js,Options:()=>cn,OptionsColor:()=>as,OutMode:()=>yi,OutModeDirection:()=>Se,OutModes:()=>$s,Parallax:()=>ps,ParticleOutType:()=>wi,Particles:()=>Fn,ParticlesBounce:()=>Is,ParticlesBounceFactor:()=>Es,ParticlesDensity:()=>Xs,ParticlesInteractorBase:()=>On,ParticlesNumber:()=>Js,ParticlesNumberLimit:()=>Ys,ParticlesOptions:()=>on,PixelMode:()=>Ce,Point:()=>un,RangedAnimationOptions:()=>Ms,RangedAnimationValueWithRandom:()=>Ts,Rectangle:()=>mn,ResizeEvent:()=>ms,Responsive:()=>bs,ResponsiveMode:()=>mi,RotateDirection:()=>Sn,Shadow:()=>Zs,Shape:()=>Ks,Size:()=>en,SizeAnimation:()=>tn,Spin:()=>Ns,StartValueType:()=>Re,Stroke:()=>sn,Theme:()=>xs,ThemeDefault:()=>ws,ThemeMode:()=>vi,ValueWithRandom:()=>Rs,Vector:()=>Zt,Vector3d:()=>Jt,ZIndex:()=>nn,alterHsl:()=>ts,animate:()=>ne,areBoundsInside:()=>Ne,arrayRandomIndex:()=>We,calcExactPositionOrRandomFromSize:()=>xe,calcExactPositionOrRandomFromSizeRanged:()=>ze,calcPositionFromSize:()=>_e,calcPositionOrRandomFromSize:()=>be,calcPositionOrRandomFromSizeRanged:()=>we,calculateBounds:()=>Ge,cancelAnimation:()=>oe,canvasFirstIndex:()=>at,canvasTag:()=>S,circleBounce:()=>Ke,circleBounceDataFromParticle:()=>Ze,clamp:()=>ae,clear:()=>ji,clickRadius:()=>K,cloneStyle:()=>li,collisionVelocity:()=>ye,colorMix:()=>Fi,colorToHsl:()=>ki,colorToRgb:()=>Pi,countOffset:()=>bt,decayOffset:()=>dt,deepExtend:()=>je,defaultAlpha:()=>P,defaultAngle:()=>Ct,defaultDensityFactor:()=>Pt,defaultFps:()=>M,defaultFpsLimit:()=>nt,defaultLoops:()=>qt,defaultOpacity:()=>Z,defaultRadius:()=>vt,defaultRatio:()=>E,defaultReduceFactor:()=>I,defaultRemoveQuantity:()=>T,defaultRetryCount:()=>C,defaultRgbMin:()=>Bt,defaultTime:()=>Wt,defaultTransform:()=>_,defaultTransformValue:()=>Q,defaultVelocity:()=>Ht,degToRad:()=>me,deleteCount:()=>kt,divMode:()=>Je,divModeExecute:()=>Xe,double:()=>x,doublePI:()=>z,drawEffect:()=>Xi,drawLine:()=>$i,drawParticle:()=>Qi,drawParticlePlugin:()=>Ki,drawPlugin:()=>Zi,drawShape:()=>Yi,drawShapeAfterDraw:()=>Ji,empty:()=>$,errorPrefix:()=>f,executeOnSingleOrMultiple:()=>ei,findItemFromSingleOrMultiple:()=>si,generatedAttribute:()=>i,generatedFalse:()=>O,generatedTrue:()=>k,getDistance:()=>fe,getDistances:()=>pe,getFullScreenStyle:()=>hi,getHslAnimationFromHsl:()=>Hi,getHslFromAnimation:()=>Bi,getLinkColor:()=>Ai,getLinkRandomColor:()=>Vi,getLogger:()=>Ee,getParticleBaseVelocity:()=>ge,getParticleDirectionAngle:()=>ve,getPosition:()=>ai,getRandom:()=>ie,getRandomRgbColor:()=>Ei,getRangeMax:()=>de,getRangeMin:()=>he,getRangeValue:()=>le,getSize:()=>ri,getStyleFromHsl:()=>Li,getStyleFromRgb:()=>Ii,hMax:()=>V,hMin:()=>q,hPhase:()=>U,half:()=>v,hasMatchMedia:()=>Fe,hslToRgb:()=>Di,hslaToRgba:()=>Ti,identity:()=>Rt,initParticleNumericAnimationValue:()=>ni,inverseFactorNumerator:()=>F,isArray:()=>Xt,isBoolean:()=>$t,isDivModeEnabled:()=>Qe,isFunction:()=>jt,isInArray:()=>He,isNull:()=>Yt,isNumber:()=>Gt,isObject:()=>Qt,isPointInside:()=>$e,isSsr:()=>Le,isString:()=>Nt,itemFromArray:()=>Ue,itemFromSingleOrMultiple:()=>ii,lFactor:()=>Tt,lMax:()=>H,lMin:()=>Et,lengthOffset:()=>Mt,loadFont:()=>qe,loadMinIndex:()=>ct,loadOptions:()=>an,loadParticlesOptions:()=>rn,loadRandomFactor:()=>rt,manualCount:()=>zt,manualDefaultPosition:()=>St,midColorValue:()=>w,millisecondsToSeconds:()=>g,minCoordinate:()=>et,minCount:()=>wt,minFpsLimit:()=>ot,minIndex:()=>xt,minLimit:()=>_t,minRetries:()=>pt,minStrokeWidth:()=>Dt,minVelocity:()=>j,minZ:()=>mt,minimumLength:()=>Y,minimumSize:()=>X,mix:()=>re,mouseDownEvent:()=>s,mouseLeaveEvent:()=>o,mouseMoveEvent:()=>r,mouseOutEvent:()=>a,mouseUpEvent:()=>n,none:()=>ht,one:()=>lt,originPoint:()=>y,pJSDom:()=>Ln,paintBase:()=>Ni,paintImage:()=>Gi,parseAlpha:()=>Me,particlesJS:()=>In,percentDenominator:()=>m,phaseNumerator:()=>Vt,posOffset:()=>gt,qTreeCapacity:()=>D,quarter:()=>N,randomColorValue:()=>b,randomInRange:()=>ce,rangeColorToHsl:()=>Oi,rangeColorToRgb:()=>Mi,rectBounce:()=>ti,removeDeleteCount:()=>it,removeMinIndex:()=>st,resizeEvent:()=>u,rgbFactor:()=>It,rgbMax:()=>A,rgbToHsl:()=>Si,rollFactor:()=>ft,sMax:()=>B,sMin:()=>W,sNormalizedOffset:()=>At,safeIntersectionObserver:()=>Ve,safeMatchMedia:()=>Ae,safeMutationObserver:()=>Be,setAnimationFunctions:()=>se,setLogger:()=>Te,setRandom:()=>ee,setRangeValue:()=>ue,sextuple:()=>Ft,singleDivModeExecute:()=>Ye,sizeFactor:()=>yt,squareExp:()=>R,stringToAlpha:()=>Ci,stringToRgb:()=>Ri,subdivideCount:()=>L,threeQuarter:()=>G,touchCancelEvent:()=>d,touchDelay:()=>Ot,touchEndEvent:()=>l,touchEndLengthOffset:()=>tt,touchMoveEvent:()=>h,touchStartEvent:()=>c,triple:()=>Lt,tryCountIncrement:()=>ut,tsParticles:()=>Dn,updateAnimation:()=>ci,updateColor:()=>Ui,updateColorValue:()=>Wi,visibilityChangeEvent:()=>p,zIndexFactorOffset:()=>J});const i="generated",s="pointerdown",n="pointerup",o="pointerleave",a="pointerout",r="pointermove",c="touchstart",l="touchend",h="touchmove",d="touchcancel",u="resize",p="visibilitychange",f="tsParticles - Error",m=100,v=.5,g=1e3,y={x:0,y:0,z:0},_={a:1,b:0,c:0,d:1},b="random",w="mid",x=2,z=Math.PI*x,M=60,P=1,k="true",O="false",S="canvas",C=0,R=2,D=4,T=1,E=1,I=1,L=4,F=1,A=255,V=360,B=100,H=100,q=0,W=0,U=60,$=0,N=.25,G=v+N,j=0,Q=1,X=0,Y=0,J=1,Z=1,K=1,tt=1,et=0,it=1,st=0,nt=120,ot=0,at=0,rt=1e4,ct=0,lt=1,ht=0,dt=1,ut=1,pt=0,ft=1,mt=0,vt=0,gt=-N,yt=1.5,_t=0,bt=1,wt=0,xt=0,zt=0,Mt=1,Pt=1,kt=1,Ot=500,St=50,Ct=0,Rt=1,Dt=0,Tt=1,Et=0,It=255,Lt=3,Ft=6,At=1,Vt=1,Bt=0,Ht=0,qt=0,Wt=0;var Ut;function $t(t){return"boolean"==typeof t}function Nt(t){return"string"==typeof t}function Gt(t){return"number"==typeof t}function jt(t){return"function"==typeof t}function Qt(t){return"object"==typeof t&&null!==t}function Xt(t){return Array.isArray(t)}function Yt(t){return null==t}!function(t){t.bottom="bottom",t.bottomLeft="bottom-left",t.bottomRight="bottom-right",t.left="left",t.none="none",t.right="right",t.top="top",t.topLeft="top-left",t.topRight="top-right",t.outside="outside",t.inside="inside"}(Ut||(Ut={}));class Jt{constructor(t,e,i){if(this._updateFromAngle=(t,e)=>{this.x=Math.cos(t)*e,this.y=Math.sin(t)*e},!Gt(t)&&t){this.x=t.x,this.y=t.y;const e=t;this.z=e.z?e.z:y.z}else{if(void 0===t||void 0===e)throw new Error(`${f} Vector3d not initialized correctly`);this.x=t,this.y=e,this.z=i??y.z}}static get origin(){return Jt.create(y.x,y.y,y.z)}get angle(){return Math.atan2(this.y,this.x)}set angle(t){this._updateFromAngle(t,this.length)}get length(){return Math.sqrt(this.getLengthSq())}set length(t){this._updateFromAngle(this.angle,t)}static clone(t){return Jt.create(t.x,t.y,t.z)}static create(t,e,i){return new Jt(t,e,i)}add(t){return Jt.create(this.x+t.x,this.y+t.y,this.z+t.z)}addTo(t){this.x+=t.x,this.y+=t.y,this.z+=t.z}copy(){return Jt.clone(this)}distanceTo(t){return this.sub(t).length}distanceToSq(t){return this.sub(t).getLengthSq()}div(t){return Jt.create(this.x/t,this.y/t,this.z/t)}divTo(t){this.x/=t,this.y/=t,this.z/=t}getLengthSq(){return this.x**R+this.y**R}mult(t){return Jt.create(this.x*t,this.y*t,this.z*t)}multTo(t){this.x*=t,this.y*=t,this.z*=t}normalize(){const t=this.length;t!=ht&&this.multTo(F/t)}rotate(t){return Jt.create(this.x*Math.cos(t)-this.y*Math.sin(t),this.x*Math.sin(t)+this.y*Math.cos(t),y.z)}setTo(t){this.x=t.x,this.y=t.y;const e=t;this.z=e.z?e.z:y.z}sub(t){return Jt.create(this.x-t.x,this.y-t.y,this.z-t.z)}subFrom(t){this.x-=t.x,this.y-=t.y,this.z-=t.z}}class Zt extends Jt{constructor(t,e){super(t,e,y.z)}static get origin(){return Zt.create(y.x,y.y)}static clone(t){return Zt.create(t.x,t.y)}static create(t,e){return new Zt(t,e)}}let Kt=Math.random;const te={nextFrame:t=>requestAnimationFrame(t),cancel:t=>cancelAnimationFrame(t)};function ee(t=Math.random){Kt=t}function ie(){return ae(Kt(),0,1-Number.EPSILON)}function se(t,e){te.nextFrame=e=>t(e),te.cancel=t=>e(t)}function ne(t){return te.nextFrame(t)}function oe(t){te.cancel(t)}function ae(t,e,i){return Math.min(Math.max(t,e),i)}function re(t,e,i,s){return Math.floor((t*i+e*s)/(i+s))}function ce(t){const e=de(t);let i=he(t);return e===i&&(i=0),ie()*(e-i)+i}function le(t){return Gt(t)?t:ce(t)}function he(t){return Gt(t)?t:t.min}function de(t){return Gt(t)?t:t.max}function ue(t,e){if(t===e||void 0===e&&Gt(t))return t;const i=he(t),s=de(t);return void 0!==e?{min:Math.min(i,e),max:Math.max(s,e)}:ue(i,s)}function pe(t,e){const i=t.x-e.x,s=t.y-e.y;return{dx:i,dy:s,distance:Math.sqrt(i**2+s**2)}}function fe(t,e){return pe(t,e).distance}function me(t){return t*Math.PI/180}function ve(t,e,i){if(Gt(t))return me(t);switch(t){case Ut.top:return-Math.PI*v;case Ut.topRight:return-Math.PI*N;case Ut.right:return $;case Ut.bottomRight:return Math.PI*N;case Ut.bottom:return Math.PI*v;case Ut.bottomLeft:return Math.PI*G;case Ut.left:return Math.PI;case Ut.topLeft:return-Math.PI*G;case Ut.inside:return Math.atan2(i.y-e.y,i.x-e.x);case Ut.outside:return Math.atan2(e.y-i.y,e.x-i.x);default:return ie()*z}}function ge(t){const e=Zt.origin;return e.length=1,e.angle=t,e}function ye(t,e,i,s){return Zt.create(t.x*(i-s)/(i+s)+e.x*x*s/(i+s),t.y)}function _e(t){return void 0!==t.position?.x&&void 0!==t.position.y?{x:t.position.x*t.size.width/m,y:t.position.y*t.size.height/m}:void 0}function be(t){return{x:(t.position?.x??ie()*m)*t.size.width/m,y:(t.position?.y??ie()*m)*t.size.height/m}}function we(t){const e={x:void 0!==t.position?.x?le(t.position.x):void 0,y:void 0!==t.position?.y?le(t.position.y):void 0};return be({size:t.size,position:e})}function xe(t){return{x:t.position?.x??ie()*t.size.width,y:t.position?.y??ie()*t.size.height}}function ze(t){const e={x:void 0!==t.position?.x?le(t.position.x):void 0,y:void 0!==t.position?.y?le(t.position.y):void 0};return xe({size:t.size,position:e})}function Me(t){return t?t.endsWith("%")?parseFloat(t)/m:parseFloat(t):1}var Pe,ke,Oe,Se,Ce,Re;!function(t){t.auto="auto",t.increase="increase",t.decrease="decrease",t.random="random"}(Pe||(Pe={})),function(t){t.increasing="increasing",t.decreasing="decreasing"}(ke||(ke={})),function(t){t.none="none",t.max="max",t.min="min"}(Oe||(Oe={})),function(t){t.bottom="bottom",t.left="left",t.right="right",t.top="top"}(Se||(Se={})),function(t){t.precise="precise",t.percent="percent"}(Ce||(Ce={})),function(t){t.max="max",t.min="min",t.random="random"}(Re||(Re={}));const De={debug:console.debug,error:console.error,info:console.info,log:console.log,verbose:console.log,warning:console.warn};function Te(t){De.debug=t.debug||De.debug,De.error=t.error||De.error,De.info=t.info||De.info,De.log=t.log||De.log,De.verbose=t.verbose||De.verbose,De.warning=t.warning||De.warning}function Ee(){return De}function Ie(t){const e={bounced:!1},{pSide:i,pOtherSide:s,rectSide:n,rectOtherSide:o,velocity:a,factor:r}=t;return s.min<o.min||s.min>o.max||s.max<o.min||s.max>o.max||(i.max>=n.min&&i.max<=(n.max+n.min)*v&&a>j||i.min<=n.max&&i.min>(n.max+n.min)*v&&a<j)&&(e.velocity=a*-r,e.bounced=!0),e}function Le(){return"undefined"==typeof window||!window||void 0===window.document||!window.document}function Fe(){return!Le()&&"undefined"!=typeof matchMedia}function Ae(t){if(Fe())return matchMedia(t)}function Ve(t){if(!Le()&&"undefined"!=typeof IntersectionObserver)return new IntersectionObserver(t)}function Be(t){if(!Le()&&"undefined"!=typeof MutationObserver)return new MutationObserver(t)}function He(t,e){return t===e||Xt(e)&&e.indexOf(t)>-1}async function qe(t,e){try{await document.fonts.load(`${e??"400"} 36px '${t??"Verdana"}'`)}catch{}}function We(t){return Math.floor(ie()*t.length)}function Ue(t,e,i=!0){return t[void 0!==e&&i?e%t.length:We(t)]}function $e(t,e,i,s,n){return Ne(Ge(t,s??0),e,i,n)}function Ne(t,e,i,s){let n=!0;return s&&s!==Se.bottom||(n=t.top<e.height+i.x),!n||s&&s!==Se.left||(n=t.right>i.x),!n||s&&s!==Se.right||(n=t.left<e.width+i.y),!n||s&&s!==Se.top||(n=t.bottom>i.y),n}function Ge(t,e){return{bottom:t.y+e,left:t.x-e,right:t.x+e,top:t.y-e}}function je(t,...e){for(const i of e){if(null==i)continue;if(!Qt(i)){t=i;continue}const e=Array.isArray(i);!e||!Qt(t)&&t&&Array.isArray(t)?e||!Qt(t)&&t&&!Array.isArray(t)||(t={}):t=[];for(const e in i){if("__proto__"===e)continue;const s=i[e],n=t;n[e]=Qt(s)&&Array.isArray(s)?s.map((t=>je(n[e],t))):je(n[e],s)}}return t}function Qe(t,e){return!!si(e,(e=>e.enable&&He(t,e.mode)))}function Xe(t,e,i){ei(e,(e=>{const s=e.mode;e.enable&&He(t,s)&&Ye(e,i)}))}function Ye(t,e){ei(t.selectors,(i=>{e(i,t)}))}function Je(t,e){if(e&&t)return si(t,(t=>function(t,e){const i=ei(e,(e=>t.matches(e)));return Xt(i)?i.some((t=>t)):i}(e,t.selectors)))}function Ze(t){return{position:t.getPosition(),radius:t.getRadius(),mass:t.getMass(),velocity:t.velocity,factor:Zt.create(le(t.options.bounce.horizontal.value),le(t.options.bounce.vertical.value))}}function Ke(t,e){const{x:i,y:s}=t.velocity.sub(e.velocity),[n,o]=[t.position,e.position],{dx:a,dy:r}=pe(o,n);if(i*a+s*r<0)return;const c=-Math.atan2(r,a),l=t.mass,h=e.mass,d=t.velocity.rotate(c),u=e.velocity.rotate(c),p=ye(d,u,l,h),f=ye(u,d,l,h),m=p.rotate(-c),v=f.rotate(-c);t.velocity.x=m.x*t.factor.x,t.velocity.y=m.y*t.factor.y,e.velocity.x=v.x*e.factor.x,e.velocity.y=v.y*e.factor.y}function ti(t,e){const i=Ge(t.getPosition(),t.getRadius()),s=t.options.bounce,n=Ie({pSide:{min:i.left,max:i.right},pOtherSide:{min:i.top,max:i.bottom},rectSide:{min:e.left,max:e.right},rectOtherSide:{min:e.top,max:e.bottom},velocity:t.velocity.x,factor:le(s.horizontal.value)});n.bounced&&(void 0!==n.velocity&&(t.velocity.x=n.velocity),void 0!==n.position&&(t.position.x=n.position));const o=Ie({pSide:{min:i.top,max:i.bottom},pOtherSide:{min:i.left,max:i.right},rectSide:{min:e.top,max:e.bottom},rectOtherSide:{min:e.left,max:e.right},velocity:t.velocity.y,factor:le(s.vertical.value)});o.bounced&&(void 0!==o.velocity&&(t.velocity.y=o.velocity),void 0!==o.position&&(t.position.y=o.position))}function ei(t,e){return Xt(t)?t.map(((t,i)=>e(t,i))):e(t,0)}function ii(t,e,i){return Xt(t)?Ue(t,e,i):t}function si(t,e){if(Xt(t))return t.find(((t,i)=>e(t,i)));return e(t,0)?t:void 0}function ni(t,e){const i=t.value,s=t.animation,n={delayTime:le(s.delay)*g,enable:s.enable,value:le(t.value)*e,max:de(i)*e,min:he(i)*e,loops:0,maxLoops:le(s.count),time:0};if(s.enable){switch(n.decay=1-le(s.decay),s.mode){case Pe.increase:n.status=ke.increasing;break;case Pe.decrease:n.status=ke.decreasing;break;case Pe.random:n.status=ie()>=v?ke.increasing:ke.decreasing}const t=s.mode===Pe.auto;switch(s.startValue){case Re.min:n.value=n.min,t&&(n.status=ke.increasing);break;case Re.max:n.value=n.max,t&&(n.status=ke.decreasing);break;case Re.random:default:n.value=ce(n),t&&(n.status=ie()>=v?ke.increasing:ke.decreasing)}}return n.initialValue=n.value,n}function oi(t,e){if(!(t.mode===Ce.percent)){const{mode:e,...i}=t;return i}return"x"in t?{x:t.x/m*e.width,y:t.y/m*e.height}:{width:t.width/m*e.width,height:t.height/m*e.height}}function ai(t,e){return oi(t,e)}function ri(t,e){return oi(t,e)}function ci(t,e,i,s,n){if(t.destroyed||!e||!e.enable||(e.maxLoops??0)>0&&(e.loops??0)>(e.maxLoops??0))return;const o=(e.velocity??0)*n.factor,a=e.min,r=e.max,c=e.decay??1;if(e.time||(e.time=0),(e.delayTime??0)>0&&e.time<(e.delayTime??0)&&(e.time+=n.value),!((e.delayTime??0)>0&&e.time<(e.delayTime??0))){switch(e.status){case ke.increasing:e.value>=r?(i?e.status=ke.decreasing:e.value-=r,e.loops||(e.loops=0),e.loops++):e.value+=o;break;case ke.decreasing:e.value<=a?(i?e.status=ke.increasing:e.value+=r,e.loops||(e.loops=0),e.loops++):e.value-=o}e.velocity&&1!==c&&(e.velocity*=c),function(t,e,i,s,n){switch(e){case Oe.max:i>=n&&t.destroy();break;case Oe.min:i<=s&&t.destroy()}}(t,s,e.value,a,r),t.destroyed||(e.value=ae(e.value,a,r))}}function li(t){const e=document.createElement("div").style;if(!t)return e;for(const i in t){const s=t[i];if(!Object.prototype.hasOwnProperty.call(t,i)||Yt(s))continue;const n=t.getPropertyValue?.(s);if(!n)continue;const o=t.getPropertyPriority?.(s);o?e.setProperty?.(s,n,o):e.setProperty?.(s,n)}return e}const hi=function(t){const e=new Map;return(...i)=>{const s=JSON.stringify(i);if(e.has(s))return e.get(s);const n=t(...i);return e.set(s,n),n}}((function(t){const e=document.createElement("div").style,i={width:"100%",height:"100%",margin:"0",padding:"0",borderWidth:"0",position:"fixed",zIndex:t.toString(10),"z-index":t.toString(10),top:"0",left:"0"};for(const t in i){const s=i[t];e.setProperty(t,s)}return e}));var di,ui,pi,fi,mi,vi,gi,yi,_i,bi,wi,xi;function zi(t,e){if(e)for(const i of t.colorManagers.values())if(e.startsWith(i.stringPrefix))return i.parseString(e)}function Mi(t,e,i,s=!0){if(!e)return;const n=Nt(e)?{value:e}:e;if(Nt(n.value))return Pi(t,n.value,i,s);if(Xt(n.value))return Mi(t,{value:Ue(n.value,i,s)});for(const e of t.colorManagers.values()){const t=e.handleRangeColor(n);if(t)return t}}function Pi(t,e,i,s=!0){if(!e)return;const n=Nt(e)?{value:e}:e;if(Nt(n.value))return n.value===b?Ei():Ri(t,n.value);if(Xt(n.value))return Pi(t,{value:Ue(n.value,i,s)});for(const e of t.colorManagers.values()){const t=e.handleColor(n);if(t)return t}}function ki(t,e,i,s=!0){const n=Pi(t,e,i,s);return n?Si(n):void 0}function Oi(t,e,i,s=!0){const n=Mi(t,e,i,s);return n?Si(n):void 0}function Si(t){const e=t.r/A,i=t.g/A,s=t.b/A,n=Math.max(e,i,s),o=Math.min(e,i,s),a={h:q,l:(n+o)*v,s:W};return n!==o&&(a.s=a.l<v?(n-o)/(n+o):(n-o)/(x-n-o),a.h=e===n?(i-s)/(n-o):a.h=i===n?x+(s-e)/(n-o):x*x+(e-i)/(n-o)),a.l*=H,a.s*=B,a.h*=U,a.h<q&&(a.h+=V),a.h>=V&&(a.h-=V),a}function Ci(t,e){return zi(t,e)?.a}function Ri(t,e){return zi(t,e)}function Di(t){const e=(t.h%V+V)%V,i=Math.max(W,Math.min(B,t.s)),s=Math.max(Et,Math.min(H,t.l)),n=e/V,o=i/B,a=s/H;if(i===W){const t=Math.round(a*It);return{r:t,g:t,b:t}}const r=(t,e,i)=>{if(i<0&&i++,i>1&&i--,i*Ft<1)return t+(e-t)*Ft*i;if(i*x<1)return e;if(i*Lt<1*x){return t+(e-t)*(x/Lt-i)*Ft}return t},c=a<v?a*(At+o):a+o-a*o,l=x*a-c,h=Vt/Lt,d=Math.min(It,It*r(l,c,n+h)),u=Math.min(It,It*r(l,c,n)),p=Math.min(It,It*r(l,c,n-h));return{r:Math.round(d),g:Math.round(u),b:Math.round(p)}}function Ti(t){const e=Di(t);return{a:t.a,b:e.b,g:e.g,r:e.r}}function Ei(t){const e=t??Bt,i=A+Rt;return{b:Math.floor(ce(ue(e,i))),g:Math.floor(ce(ue(e,i))),r:Math.floor(ce(ue(e,i)))}}function Ii(t,e){return`rgba(${t.r}, ${t.g}, ${t.b}, ${e??Z})`}function Li(t,e){return`hsla(${t.h}, ${t.s}%, ${t.l}%, ${e??Z})`}function Fi(t,e,i,s){let n=t,o=e;return void 0===n.r&&(n=Di(t)),void 0===o.r&&(o=Di(e)),{b:re(n.b,o.b,i,s),g:re(n.g,o.g,i,s),r:re(n.r,o.r,i,s)}}function Ai(t,e,i){if(i===b)return Ei();if(i!==w)return i;{const i=t.getFillColor()??t.getStrokeColor(),s=e?.getFillColor()??e?.getStrokeColor();if(i&&s&&e)return Fi(i,s,t.getRadius(),e.getRadius());{const t=i??s;if(t)return Di(t)}}}function Vi(t,e,i,s){const n=Nt(e)?e:e.value;return n===b?s?Mi(t,{value:n}):i?b:w:n===w?w:Mi(t,{value:n})}function Bi(t){return void 0!==t?{h:t.h.value,s:t.s.value,l:t.l.value}:void 0}function Hi(t,e,i){const s={h:{enable:!1,value:t.h},s:{enable:!1,value:t.s},l:{enable:!1,value:t.l}};return e&&(qi(s.h,e.h,i),qi(s.s,e.s,i),qi(s.l,e.l,i)),s}function qi(t,e,i){t.enable=e.enable,t.enable?(t.velocity=le(e.speed)/m*i,t.decay=dt-le(e.decay),t.status=ke.increasing,t.loops=qt,t.maxLoops=le(e.count),t.time=Wt,t.delayTime=le(e.delay)*g,e.sync||(t.velocity*=ie(),t.value*=ie()),t.initialValue=t.value,t.offset=ue(e.offset)):t.velocity=Ht}function Wi(t,e,i,s){if(!t||!t.enable||(t.maxLoops??0)>0&&(t.loops??0)>(t.maxLoops??0))return;if(t.time||(t.time=0),(t.delayTime??0)>0&&t.time<(t.delayTime??0)&&(t.time+=s.value),(t.delayTime??0)>0&&t.time<(t.delayTime??0))return;const n=t.offset?ce(t.offset):0,o=(t.velocity??0)*s.factor+3.6*n,a=t.decay??1,r=de(e),c=he(e);if(i&&t.status!==ke.increasing){t.value-=o;const e=0;t.value<e&&(t.loops||(t.loops=0),t.loops++,t.status=ke.increasing)}else t.value+=o,t.value>r&&(t.loops||(t.loops=0),t.loops++,i?t.status=ke.decreasing:t.value-=r);t.velocity&&1!==a&&(t.velocity*=a),t.value=ae(t.value,c,r)}function Ui(t,e){if(!t)return;const{h:i,s,l:n}=t,o={min:0,max:100},a={min:0,max:100};i&&Wi(i,{min:0,max:360},!1,e),s&&Wi(s,o,!0,e),n&&Wi(n,a,!0,e)}function $i(t,e,i){t.beginPath(),t.moveTo(e.x,e.y),t.lineTo(i.x,i.y),t.closePath()}function Ni(t,e,i){t.fillStyle=i??"rgba(0,0,0,0)",t.fillRect(y.x,y.y,e.width,e.height)}function Gi(t,e,i,s){i&&(t.globalAlpha=s,t.drawImage(i,y.x,y.y,e.width,e.height),t.globalAlpha=1)}function ji(t,e){t.clearRect(y.x,y.y,e.width,e.height)}function Qi(t){const{container:e,context:i,particle:s,delta:n,colorStyles:o,backgroundMask:a,composite:r,radius:c,opacity:l,shadow:h,transform:d}=t,u=s.getPosition(),p=s.rotation+(s.pathRotation?s.velocity.angle:Ct),f=Math.sin(p),m=Math.cos(p),v=!!p,g={a:m*(d.a??_.a),b:v?f*(d.b??Rt):d.b??_.b,c:v?-f*(d.c??Rt):d.c??_.c,d:m*(d.d??_.d)};i.setTransform(g.a,g.b,g.c,g.d,u.x,u.y),a&&(i.globalCompositeOperation=r);const y=s.shadowColor;h.enable&&y&&(i.shadowBlur=h.blur,i.shadowColor=Ii(y),i.shadowOffsetX=h.offset.x,i.shadowOffsetY=h.offset.y),o.fill&&(i.fillStyle=o.fill);const b=s.strokeWidth??Dt;i.lineWidth=b,o.stroke&&(i.strokeStyle=o.stroke);const w={container:e,context:i,particle:s,radius:c,opacity:l,delta:n,transformData:g,strokeWidth:b};Yi(w),Ji(w),Xi(w),i.globalCompositeOperation="source-over",i.resetTransform()}function Xi(t){const{container:e,context:i,particle:s,radius:n,opacity:o,delta:a,transformData:r}=t;if(!s.effect)return;const c=e.effectDrawers.get(s.effect);c&&c.draw({context:i,particle:s,radius:n,opacity:o,delta:a,pixelRatio:e.retina.pixelRatio,transformData:{...r}})}function Yi(t){const{container:e,context:i,particle:s,radius:n,opacity:o,delta:a,strokeWidth:r,transformData:c}=t;if(!s.shape)return;const l=e.shapeDrawers.get(s.shape);l&&(i.beginPath(),l.draw({context:i,particle:s,radius:n,opacity:o,delta:a,pixelRatio:e.retina.pixelRatio,transformData:{...c}}),s.shapeClose&&i.closePath(),r>Dt&&i.stroke(),s.shapeFill&&i.fill())}function Ji(t){const{container:e,context:i,particle:s,radius:n,opacity:o,delta:a,transformData:r}=t;if(!s.shape)return;const c=e.shapeDrawers.get(s.shape);c?.afterDraw&&c.afterDraw({context:i,particle:s,radius:n,opacity:o,delta:a,pixelRatio:e.retina.pixelRatio,transformData:{...r}})}function Zi(t,e,i){e.draw&&e.draw(t,i)}function Ki(t,e,i,s){e.drawParticle&&e.drawParticle(t,i,s)}function ts(t,e,i){return{h:t.h,s:t.s,l:t.l+(e===di.darken?-Tt:Tt)*i}}function es(t,e,i){const s=e[i];void 0!==s&&(t[i]=(t[i]??Q)*s)}function is(t,e,i=!1){if(!e)return;if(!t)return;const s=t.style;if(!s)return;const n=new Set;for(const t in s)Object.prototype.hasOwnProperty.call(s,t)&&n.add(s[t]);for(const t in e)Object.prototype.hasOwnProperty.call(e,t)&&n.add(e[t]);for(const t of n){const n=e.getPropertyValue(t);n?s.setProperty(t,n,i?"important":""):s.removeProperty(t)}}!function(t){t.darken="darken",t.enlighten="enlighten"}(di||(di={}));class ss{constructor(t,e){this.container=t,this._applyPostDrawUpdaters=t=>{for(const e of this._postDrawUpdaters)e.afterDraw?.(t)},this._applyPreDrawUpdaters=(t,e,i,s,n,o)=>{for(const a of this._preDrawUpdaters){if(a.getColorStyles){const{fill:o,stroke:r}=a.getColorStyles(e,t,i,s);o&&(n.fill=o),r&&(n.stroke=r)}if(a.getTransformValues){const t=a.getTransformValues(e);for(const e in t)es(o,t,e)}a.beforeDraw?.(e)}},this._applyResizePlugins=()=>{for(const t of this._resizePlugins)t.resize?.()},this._getPluginParticleColors=t=>{let e,i;for(const s of this._colorPlugins)if(!e&&s.particleFillColor&&(e=Oi(this._engine,s.particleFillColor(t))),!i&&s.particleStrokeColor&&(i=Oi(this._engine,s.particleStrokeColor(t))),e&&i)break;return[e,i]},this._initCover=async()=>{const t=this.container.actualOptions.backgroundMask.cover,e=t.color;if(e){const i=Mi(this._engine,e);if(i){const e={...i,a:t.opacity};this._coverColorStyle=Ii(e,e.a)}}else await new Promise(((e,i)=>{if(!t.image)return;const s=document.createElement("img");s.addEventListener("load",(()=>{this._coverImage={image:s,opacity:t.opacity},e()})),s.addEventListener("error",(t=>{i(t.error)})),s.src=t.image}))},this._initStyle=()=>{const t=this.element,e=this.container.actualOptions;if(t){this._fullScreen?this._setFullScreenStyle():this._resetOriginalStyle();for(const i in e.style){if(!i||!e.style||!Object.prototype.hasOwnProperty.call(e.style,i))continue;const s=e.style[i];s&&t.style.setProperty(i,s,"important")}}},this._initTrail=async()=>{const t=this.container.actualOptions.particles.move.trail,e=t.fill;if(!t.enable)return;const i=F/t.length;if(e.color){const t=Mi(this._engine,e.color);if(!t)return;this._trailFill={color:{...t},opacity:i}}else await new Promise(((t,s)=>{if(!e.image)return;const n=document.createElement("img");n.addEventListener("load",(()=>{this._trailFill={image:n,opacity:i},t()})),n.addEventListener("error",(t=>{s(t.error)})),n.src=e.image}))},this._paintBase=t=>{this.draw((e=>Ni(e,this.size,t)))},this._paintImage=(t,e)=>{this.draw((i=>Gi(i,this.size,t,e)))},this._repairStyle=()=>{const t=this.element;if(!t)return;this._safeMutationObserver((t=>t.disconnect())),this._initStyle(),this.initBackground();const e=this._pointerEvents;t.style.pointerEvents=e,t.setAttribute("pointer-events",e),this._safeMutationObserver((e=>{t&&t instanceof Node&&e.observe(t,{attributes:!0})}))},this._resetOriginalStyle=()=>{const t=this.element,e=this._originalStyle;t&&e&&is(t,e,!0)},this._safeMutationObserver=t=>{this._mutationObserver&&t(this._mutationObserver)},this._setFullScreenStyle=()=>{const t=this.element;t&&is(t,hi(this.container.actualOptions.fullScreen.zIndex),!0)},this._engine=e,this._standardSize={height:0,width:0};const i=t.retina.pixelRatio,s=this._standardSize;this.size={height:s.height*i,width:s.width*i},this._context=null,this._generated=!1,this._preDrawUpdaters=[],this._postDrawUpdaters=[],this._resizePlugins=[],this._colorPlugins=[],this._pointerEvents="none"}get _fullScreen(){return this.container.actualOptions.fullScreen.enable}clear(){const t=this.container.actualOptions,e=t.particles.move.trail,i=this._trailFill;t.backgroundMask.enable?this.paint():e.enable&&e.length>Y&&i?i.color?this._paintBase(Ii(i.color,i.opacity)):i.image&&this._paintImage(i.image,i.opacity):t.clear&&this.draw((t=>{ji(t,this.size)}))}destroy(){if(this.stop(),this._generated){const t=this.element;t?.remove(),this.element=void 0}else this._resetOriginalStyle();this._preDrawUpdaters=[],this._postDrawUpdaters=[],this._resizePlugins=[],this._colorPlugins=[]}draw(t){const e=this._context;if(e)return t(e)}drawAsync(t){const e=this._context;if(e)return t(e)}drawParticle(t,e){if(t.spawning||t.destroyed)return;const i=t.getRadius();if(i<=X)return;const s=t.getFillColor(),n=t.getStrokeColor()??s;let[o,a]=this._getPluginParticleColors(t);o||(o=s),a||(a=n),(o||a)&&this.draw((s=>{const n=this.container,r=n.actualOptions,c=t.options.zIndex,l=J-t.zIndexFactor,h=l**c.opacityRate,d=t.bubble.opacity??t.opacity?.value??Z,u=d*h,p=(t.strokeOpacity??d)*h,f={},m={fill:o?Li(o,u):void 0};m.stroke=a?Li(a,p):m.fill,this._applyPreDrawUpdaters(s,t,i,u,m,f),Qi({container:n,context:s,particle:t,delta:e,colorStyles:m,backgroundMask:r.backgroundMask.enable,composite:r.backgroundMask.composite,radius:i*l**c.sizeRate,opacity:u,shadow:t.options.shadow,transform:f}),this._applyPostDrawUpdaters(t)}))}drawParticlePlugin(t,e,i){this.draw((s=>Ki(s,t,e,i)))}drawPlugin(t,e){this.draw((i=>Zi(i,t,e)))}async init(){this._safeMutationObserver((t=>t.disconnect())),this._mutationObserver=Be((t=>{for(const e of t)"attributes"===e.type&&"style"===e.attributeName&&this._repairStyle()})),this.resize(),this._initStyle(),await this._initCover();try{await this._initTrail()}catch(t){Ee().error(t)}this.initBackground(),this._safeMutationObserver((t=>{this.element&&this.element instanceof Node&&t.observe(this.element,{attributes:!0})})),this.initUpdaters(),this.initPlugins(),this.paint()}initBackground(){const t=this.container.actualOptions.background,e=this.element;if(!e)return;const i=e.style;if(i){if(t.color){const e=Mi(this._engine,t.color);i.backgroundColor=e?Ii(e,t.opacity):""}else i.backgroundColor="";i.backgroundImage=t.image||"",i.backgroundPosition=t.position||"",i.backgroundRepeat=t.repeat||"",i.backgroundSize=t.size||""}}initPlugins(){this._resizePlugins=[];for(const t of this.container.plugins.values())t.resize&&this._resizePlugins.push(t),(t.particleFillColor??t.particleStrokeColor)&&this._colorPlugins.push(t)}initUpdaters(){this._preDrawUpdaters=[],this._postDrawUpdaters=[];for(const t of this.container.particles.updaters)t.afterDraw&&this._postDrawUpdaters.push(t),(t.getColorStyles??t.getTransformValues??t.beforeDraw)&&this._preDrawUpdaters.push(t)}loadCanvas(t){this._generated&&this.element&&this.element.remove(),this._generated=t.dataset&&i in t.dataset?"true"===t.dataset[i]:this._generated,this.element=t,this.element.ariaHidden="true",this._originalStyle=li(this.element.style);const e=this._standardSize;e.height=t.offsetHeight,e.width=t.offsetWidth;const s=this.container.retina.pixelRatio,n=this.size;t.height=n.height=e.height*s,t.width=n.width=e.width*s,this._context=this.element.getContext("2d"),this._safeMutationObserver((t=>t.disconnect())),this.container.retina.init(),this.initBackground(),this._safeMutationObserver((t=>{this.element&&this.element instanceof Node&&t.observe(this.element,{attributes:!0})}))}paint(){const t=this.container.actualOptions;this.draw((e=>{t.backgroundMask.enable&&t.backgroundMask.cover?(ji(e,this.size),this._coverImage?this._paintImage(this._coverImage.image,this._coverImage.opacity):this._coverColorStyle?this._paintBase(this._coverColorStyle):this._paintBase()):this._paintBase()}))}resize(){if(!this.element)return!1;const t=this.container,e=t.canvas._standardSize,i={width:this.element.offsetWidth,height:this.element.offsetHeight},s=t.retina.pixelRatio,n={width:i.width*s,height:i.height*s};if(i.height===e.height&&i.width===e.width&&n.height===this.element.height&&n.width===this.element.width)return!1;const o={...e};e.height=i.height,e.width=i.width;const a=this.size;return this.element.width=a.width=n.width,this.element.height=a.height=n.height,this.container.started&&t.particles.setResizeFactor({width:e.width/o.width,height:e.height/o.height}),!0}setPointerEvents(t){this.element&&(this._pointerEvents=t,this._repairStyle())}stop(){this._safeMutationObserver((t=>t.disconnect())),this._mutationObserver=void 0,this.draw((t=>ji(t,this.size)))}async windowResize(){if(!this.element||!this.resize())return;const t=this.container,e=t.updateActualOptions();t.particles.setDensity(),this._applyResizePlugins(),e&&await t.refresh()}}function ns(t,e,i,s,n){if(s){let s={passive:!0};$t(n)?s.capture=n:void 0!==n&&(s=n),t.addEventListener(e,i,s)}else{const s=n;t.removeEventListener(e,i,s)}}!function(t){t.canvas="canvas",t.parent="parent",t.window="window"}(ui||(ui={}));class os{constructor(t){this.container=t,this._doMouseTouchClick=t=>{const e=this.container,i=e.actualOptions;if(this._canPush){const t=e.interactivity.mouse,s=t.position;if(!s)return;t.clickPosition={...s},t.clickTime=(new Date).getTime();ei(i.interactivity.events.onClick.mode,(t=>this.container.handleClickMode(t)))}"touchend"===t.type&&setTimeout((()=>this._mouseTouchFinish()),Ot)},this._handleThemeChange=t=>{const e=t,i=this.container,s=i.options,n=s.defaultThemes,o=e.matches?n.dark:n.light,a=s.themes.find((t=>t.name===o));a?.default.auto&&i.loadTheme(o)},this._handleVisibilityChange=()=>{const t=this.container,e=t.actualOptions;this._mouseTouchFinish(),e.pauseOnBlur&&(document?.hidden?(t.pageHidden=!0,t.pause()):(t.pageHidden=!1,t.animationStatus?t.play(!0):t.draw(!0)))},this._handleWindowResize=()=>{this._resizeTimeout&&(clearTimeout(this._resizeTimeout),delete this._resizeTimeout);const t=async()=>{const t=this.container.canvas;await(t?.windowResize())};this._resizeTimeout=setTimeout((()=>{t()}),this.container.actualOptions.interactivity.events.resize.delay*g)},this._manageInteractivityListeners=(t,e)=>{const i=this._handlers,o=this.container,a=o.actualOptions,u=o.interactivity.element;if(!u)return;const p=u,f=o.canvas;f.setPointerEvents(p===f.element?"initial":"none"),(a.interactivity.events.onHover.enable||a.interactivity.events.onClick.enable)&&(ns(u,r,i.mouseMove,e),ns(u,c,i.touchStart,e),ns(u,h,i.touchMove,e),a.interactivity.events.onClick.enable?(ns(u,l,i.touchEndClick,e),ns(u,n,i.mouseUp,e),ns(u,s,i.mouseDown,e)):ns(u,l,i.touchEnd,e),ns(u,t,i.mouseLeave,e),ns(u,d,i.touchCancel,e))},this._manageListeners=t=>{const e=this._handlers,i=this.container,s=i.actualOptions.interactivity.detectsOn,n=i.canvas.element;let r=o;s===ui.window?(i.interactivity.element=window,r=a):s===ui.parent&&n?i.interactivity.element=n.parentElement??n.parentNode:i.interactivity.element=n,this._manageMediaMatch(t),this._manageResize(t),this._manageInteractivityListeners(r,t),document&&ns(document,p,e.visibilityChange,t,!1)},this._manageMediaMatch=t=>{const e=this._handlers,i=Ae("(prefers-color-scheme: dark)");i&&(void 0===i.addEventListener?void 0!==i.addListener&&(t?i.addListener(e.oldThemeChange):i.removeListener(e.oldThemeChange)):ns(i,"change",e.themeChange,t))},this._manageResize=t=>{const e=this._handlers,i=this.container;if(!i.actualOptions.interactivity.events.resize)return;if("undefined"==typeof ResizeObserver)return void ns(window,u,e.resize,t);const s=i.canvas.element;this._resizeObserver&&!t?(s&&this._resizeObserver.unobserve(s),this._resizeObserver.disconnect(),delete this._resizeObserver):!this._resizeObserver&&t&&s&&(this._resizeObserver=new ResizeObserver((t=>{t.find((t=>t.target===s))&&this._handleWindowResize()})),this._resizeObserver.observe(s))},this._mouseDown=()=>{const{interactivity:t}=this.container;if(!t)return;const{mouse:e}=t;e.clicking=!0,e.downPosition=e.position},this._mouseTouchClick=t=>{const e=this.container,i=e.actualOptions,{mouse:s}=e.interactivity;s.inside=!0;let n=!1;const o=s.position;if(o&&i.interactivity.events.onClick.enable){for(const t of e.plugins.values())if(t.clickPositionValid&&(n=t.clickPositionValid(o),n))break;n||this._doMouseTouchClick(t),s.clicking=!1}},this._mouseTouchFinish=()=>{const t=this.container.interactivity;if(!t)return;const e=t.mouse;delete e.position,delete e.clickPosition,delete e.downPosition,t.status=o,e.inside=!1,e.clicking=!1},this._mouseTouchMove=t=>{const e=this.container,i=e.actualOptions,s=e.interactivity,n=e.canvas.element;if(!s?.element)return;let o;if(s.mouse.inside=!0,t.type.startsWith("pointer")){this._canPush=!0;const e=t;if(s.element===window){if(n){const t=n.getBoundingClientRect();o={x:e.clientX-t.left,y:e.clientY-t.top}}}else if(i.interactivity.detectsOn===ui.parent){const t=e.target,i=e.currentTarget;if(t&&i&&n){const s=t.getBoundingClientRect(),a=i.getBoundingClientRect(),r=n.getBoundingClientRect();o={x:e.offsetX+x*s.left-(a.left+r.left),y:e.offsetY+x*s.top-(a.top+r.top)}}else o={x:e.offsetX??e.clientX,y:e.offsetY??e.clientY}}else e.target===n&&(o={x:e.offsetX??e.clientX,y:e.offsetY??e.clientY})}else if(this._canPush="touchmove"!==t.type,n){const e=t,i=e.touches[e.touches.length-Mt],s=n.getBoundingClientRect();o={x:i.clientX-(s.left??et),y:i.clientY-(s.top??et)}}const a=e.retina.pixelRatio;o&&(o.x*=a,o.y*=a),s.mouse.position=o,s.status=r},this._touchEnd=t=>{const e=t,i=Array.from(e.changedTouches);for(const t of i)this._touches.delete(t.identifier);this._mouseTouchFinish()},this._touchEndClick=t=>{const e=t,i=Array.from(e.changedTouches);for(const t of i)this._touches.delete(t.identifier);this._mouseTouchClick(t)},this._touchStart=t=>{const e=t,i=Array.from(e.changedTouches);for(const t of i)this._touches.set(t.identifier,performance.now());this._mouseTouchMove(t)},this._canPush=!0,this._touches=new Map,this._handlers={mouseDown:()=>this._mouseDown(),mouseLeave:()=>this._mouseTouchFinish(),mouseMove:t=>this._mouseTouchMove(t),mouseUp:t=>this._mouseTouchClick(t),touchStart:t=>this._touchStart(t),touchMove:t=>this._mouseTouchMove(t),touchEnd:t=>this._touchEnd(t),touchCancel:t=>this._touchEnd(t),touchEndClick:t=>this._touchEndClick(t),visibilityChange:()=>this._handleVisibilityChange(),themeChange:t=>this._handleThemeChange(t),oldThemeChange:t=>this._handleThemeChange(t),resize:()=>{this._handleWindowResize()}}}addListeners(){this._manageListeners(!0)}removeListeners(){this._manageListeners(!1)}}!function(t){t.configAdded="configAdded",t.containerInit="containerInit",t.particlesSetup="particlesSetup",t.containerStarted="containerStarted",t.containerStopped="containerStopped",t.containerDestroyed="containerDestroyed",t.containerPaused="containerPaused",t.containerPlay="containerPlay",t.containerBuilt="containerBuilt",t.particleAdded="particleAdded",t.particleDestroyed="particleDestroyed",t.particleRemoved="particleRemoved"}(pi||(pi={}));class as{constructor(){this.value=""}static create(t,e){const i=new as;return i.load(t),void 0!==e&&(Nt(e)||Xt(e)?i.load({value:e}):i.load(e)),i}load(t){Yt(t)||Yt(t.value)||(this.value=t.value)}}class rs{constructor(){this.color=new as,this.color.value="",this.image="",this.position="",this.repeat="",this.size="",this.opacity=1}load(t){Yt(t)||(void 0!==t.color&&(this.color=as.create(this.color,t.color)),void 0!==t.image&&(this.image=t.image),void 0!==t.position&&(this.position=t.position),void 0!==t.repeat&&(this.repeat=t.repeat),void 0!==t.size&&(this.size=t.size),void 0!==t.opacity&&(this.opacity=t.opacity))}}class cs{constructor(){this.opacity=1}load(t){Yt(t)||(void 0!==t.color&&(this.color=as.create(this.color,t.color)),void 0!==t.image&&(this.image=t.image),void 0!==t.opacity&&(this.opacity=t.opacity))}}class ls{constructor(){this.composite="destination-out",this.cover=new cs,this.enable=!1}load(t){if(!Yt(t)){if(void 0!==t.composite&&(this.composite=t.composite),void 0!==t.cover){const e=t.cover,i=Nt(t.cover)?{color:t.cover}:t.cover;this.cover.load(void 0!==e.color||void 0!==e.image?e:{color:i})}void 0!==t.enable&&(this.enable=t.enable)}}}class hs{constructor(){this.enable=!0,this.zIndex=0}load(t){Yt(t)||(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.zIndex&&(this.zIndex=t.zIndex))}}class ds{constructor(){this.enable=!1,this.mode=[]}load(t){Yt(t)||(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.mode&&(this.mode=t.mode))}}!function(t){t.circle="circle",t.rectangle="rectangle"}(fi||(fi={}));class us{constructor(){this.selectors=[],this.enable=!1,this.mode=[],this.type=fi.circle}load(t){Yt(t)||(void 0!==t.selectors&&(this.selectors=t.selectors),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.mode&&(this.mode=t.mode),void 0!==t.type&&(this.type=t.type))}}class ps{constructor(){this.enable=!1,this.force=2,this.smooth=10}load(t){Yt(t)||(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.force&&(this.force=t.force),void 0!==t.smooth&&(this.smooth=t.smooth))}}class fs{constructor(){this.enable=!1,this.mode=[],this.parallax=new ps}load(t){Yt(t)||(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.mode&&(this.mode=t.mode),this.parallax.load(t.parallax))}}class ms{constructor(){this.delay=.5,this.enable=!0}load(t){Yt(t)||(void 0!==t.delay&&(this.delay=t.delay),void 0!==t.enable&&(this.enable=t.enable))}}class vs{constructor(){this.onClick=new ds,this.onDiv=new us,this.onHover=new fs,this.resize=new ms}load(t){if(Yt(t))return;this.onClick.load(t.onClick);const e=t.onDiv;void 0!==e&&(this.onDiv=ei(e,(t=>{const e=new us;return e.load(t),e}))),this.onHover.load(t.onHover),this.resize.load(t.resize)}}class gs{constructor(t,e){this._engine=t,this._container=e}load(t){if(Yt(t))return;if(!this._container)return;const e=this._engine.interactors.get(this._container);if(e)for(const i of e)i.loadModeOptions&&i.loadModeOptions(this,t)}}class ys{constructor(t,e){this.detectsOn=ui.window,this.events=new vs,this.modes=new gs(t,e)}load(t){if(Yt(t))return;const e=t.detectsOn;void 0!==e&&(this.detectsOn=e),this.events.load(t.events),this.modes.load(t.modes)}}class _s{load(t){Yt(t)||(t.position&&(this.position={x:t.position.x??St,y:t.position.y??St,mode:t.position.mode??Ce.percent}),t.options&&(this.options=je({},t.options)))}}!function(t){t.screen="screen",t.canvas="canvas"}(mi||(mi={}));class bs{constructor(){this.maxWidth=1/0,this.options={},this.mode=mi.canvas}load(t){Yt(t)||(Yt(t.maxWidth)||(this.maxWidth=t.maxWidth),Yt(t.mode)||(t.mode===mi.screen?this.mode=mi.screen:this.mode=mi.canvas),Yt(t.options)||(this.options=je({},t.options)))}}!function(t){t.any="any",t.dark="dark",t.light="light"}(vi||(vi={}));class ws{constructor(){this.auto=!1,this.mode=vi.any,this.value=!1}load(t){Yt(t)||(void 0!==t.auto&&(this.auto=t.auto),void 0!==t.mode&&(this.mode=t.mode),void 0!==t.value&&(this.value=t.value))}}class xs{constructor(){this.name="",this.default=new ws}load(t){Yt(t)||(void 0!==t.name&&(this.name=t.name),this.default.load(t.default),void 0!==t.options&&(this.options=je({},t.options)))}}class zs{constructor(){this.count=0,this.enable=!1,this.speed=1,this.decay=0,this.delay=0,this.sync=!1}load(t){Yt(t)||(void 0!==t.count&&(this.count=ue(t.count)),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.speed&&(this.speed=ue(t.speed)),void 0!==t.decay&&(this.decay=ue(t.decay)),void 0!==t.delay&&(this.delay=ue(t.delay)),void 0!==t.sync&&(this.sync=t.sync))}}class Ms extends zs{constructor(){super(),this.mode=Pe.auto,this.startValue=Re.random}load(t){super.load(t),Yt(t)||(void 0!==t.mode&&(this.mode=t.mode),void 0!==t.startValue&&(this.startValue=t.startValue))}}class Ps extends zs{constructor(){super(),this.offset=0,this.sync=!0}load(t){super.load(t),Yt(t)||void 0!==t.offset&&(this.offset=ue(t.offset))}}class ks{constructor(){this.h=new Ps,this.s=new Ps,this.l=new Ps}load(t){Yt(t)||(this.h.load(t.h),this.s.load(t.s),this.l.load(t.l))}}class Os extends as{constructor(){super(),this.animation=new ks}static create(t,e){const i=new Os;return i.load(t),void 0!==e&&(Nt(e)||Xt(e)?i.load({value:e}):i.load(e)),i}load(t){if(super.load(t),Yt(t))return;const e=t.animation;void 0!==e&&(void 0!==e.enable?this.animation.h.load(e):this.animation.load(t.animation))}}!function(t){t.absorb="absorb",t.bounce="bounce",t.destroy="destroy"}(gi||(gi={}));class Ss{constructor(){this.speed=2}load(t){Yt(t)||void 0!==t.speed&&(this.speed=t.speed)}}class Cs{constructor(){this.enable=!0,this.retries=0}load(t){Yt(t)||(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.retries&&(this.retries=t.retries))}}class Rs{constructor(){this.value=0}load(t){Yt(t)||Yt(t.value)||(this.value=ue(t.value))}}class Ds extends Rs{constructor(){super(),this.animation=new zs}load(t){if(super.load(t),Yt(t))return;const e=t.animation;void 0!==e&&this.animation.load(e)}}class Ts extends Ds{constructor(){super(),this.animation=new Ms}load(t){super.load(t)}}class Es extends Rs{constructor(){super(),this.value=1}}class Is{constructor(){this.horizontal=new Es,this.vertical=new Es}load(t){Yt(t)||(this.horizontal.load(t.horizontal),this.vertical.load(t.vertical))}}class Ls{constructor(){this.absorb=new Ss,this.bounce=new Is,this.enable=!1,this.maxSpeed=50,this.mode=gi.bounce,this.overlap=new Cs}load(t){Yt(t)||(this.absorb.load(t.absorb),this.bounce.load(t.bounce),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.maxSpeed&&(this.maxSpeed=ue(t.maxSpeed)),void 0!==t.mode&&(this.mode=t.mode),this.overlap.load(t.overlap))}}class Fs{constructor(){this.close=!0,this.fill=!0,this.options={},this.type=[]}load(t){if(Yt(t))return;const e=t.options;if(void 0!==e)for(const t in e){const i=e[t];i&&(this.options[t]=je(this.options[t]??{},i))}void 0!==t.close&&(this.close=t.close),void 0!==t.fill&&(this.fill=t.fill),void 0!==t.type&&(this.type=t.type)}}class As{constructor(){this.offset=0,this.value=90}load(t){Yt(t)||(void 0!==t.offset&&(this.offset=ue(t.offset)),void 0!==t.value&&(this.value=ue(t.value)))}}class Vs{constructor(){this.distance=200,this.enable=!1,this.rotate={x:3e3,y:3e3}}load(t){if(!Yt(t)&&(void 0!==t.distance&&(this.distance=ue(t.distance)),void 0!==t.enable&&(this.enable=t.enable),t.rotate)){const e=t.rotate.x;void 0!==e&&(this.rotate.x=e);const i=t.rotate.y;void 0!==i&&(this.rotate.y=i)}}}class Bs{constructor(){this.x=50,this.y=50,this.mode=Ce.percent,this.radius=0}load(t){Yt(t)||(void 0!==t.x&&(this.x=t.x),void 0!==t.y&&(this.y=t.y),void 0!==t.mode&&(this.mode=t.mode),void 0!==t.radius&&(this.radius=t.radius))}}class Hs{constructor(){this.acceleration=9.81,this.enable=!1,this.inverse=!1,this.maxSpeed=50}load(t){Yt(t)||(void 0!==t.acceleration&&(this.acceleration=ue(t.acceleration)),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.inverse&&(this.inverse=t.inverse),void 0!==t.maxSpeed&&(this.maxSpeed=ue(t.maxSpeed)))}}class qs{constructor(){this.clamp=!0,this.delay=new Rs,this.enable=!1,this.options={}}load(t){Yt(t)||(void 0!==t.clamp&&(this.clamp=t.clamp),this.delay.load(t.delay),void 0!==t.enable&&(this.enable=t.enable),this.generator=t.generator,t.options&&(this.options=je(this.options,t.options)))}}class Ws{load(t){Yt(t)||(void 0!==t.color&&(this.color=as.create(this.color,t.color)),void 0!==t.image&&(this.image=t.image))}}class Us{constructor(){this.enable=!1,this.length=10,this.fill=new Ws}load(t){Yt(t)||(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.fill&&this.fill.load(t.fill),void 0!==t.length&&(this.length=t.length))}}!function(t){t.bounce="bounce",t.none="none",t.out="out",t.destroy="destroy",t.split="split"}(yi||(yi={}));class $s{constructor(){this.default=yi.out}load(t){Yt(t)||(void 0!==t.default&&(this.default=t.default),this.bottom=t.bottom??t.default,this.left=t.left??t.default,this.right=t.right??t.default,this.top=t.top??t.default)}}class Ns{constructor(){this.acceleration=0,this.enable=!1}load(t){Yt(t)||(void 0!==t.acceleration&&(this.acceleration=ue(t.acceleration)),void 0!==t.enable&&(this.enable=t.enable),t.position&&(this.position=je({},t.position)))}}class Gs{constructor(){this.angle=new As,this.attract=new Vs,this.center=new Bs,this.decay=0,this.distance={},this.direction=Ut.none,this.drift=0,this.enable=!1,this.gravity=new Hs,this.path=new qs,this.outModes=new $s,this.random=!1,this.size=!1,this.speed=2,this.spin=new Ns,this.straight=!1,this.trail=new Us,this.vibrate=!1,this.warp=!1}load(t){if(Yt(t))return;this.angle.load(Gt(t.angle)?{value:t.angle}:t.angle),this.attract.load(t.attract),this.center.load(t.center),void 0!==t.decay&&(this.decay=ue(t.decay)),void 0!==t.direction&&(this.direction=t.direction),void 0!==t.distance&&(this.distance=Gt(t.distance)?{horizontal:t.distance,vertical:t.distance}:{...t.distance}),void 0!==t.drift&&(this.drift=ue(t.drift)),void 0!==t.enable&&(this.enable=t.enable),this.gravity.load(t.gravity);const e=t.outModes;void 0!==e&&(Qt(e)?this.outModes.load(e):this.outModes.load({default:e})),this.path.load(t.path),void 0!==t.random&&(this.random=t.random),void 0!==t.size&&(this.size=t.size),void 0!==t.speed&&(this.speed=ue(t.speed)),this.spin.load(t.spin),void 0!==t.straight&&(this.straight=t.straight),this.trail.load(t.trail),void 0!==t.vibrate&&(this.vibrate=t.vibrate),void 0!==t.warp&&(this.warp=t.warp)}}class js extends Ms{constructor(){super(),this.destroy=Oe.none,this.speed=2}load(t){super.load(t),Yt(t)||void 0!==t.destroy&&(this.destroy=t.destroy)}}class Qs extends Ts{constructor(){super(),this.animation=new js,this.value=1}load(t){if(Yt(t))return;super.load(t);const e=t.animation;void 0!==e&&this.animation.load(e)}}class Xs{constructor(){this.enable=!1,this.width=1920,this.height=1080}load(t){if(Yt(t))return;void 0!==t.enable&&(this.enable=t.enable);const e=t.width;void 0!==e&&(this.width=e);const i=t.height;void 0!==i&&(this.height=i)}}!function(t){t.delete="delete",t.wait="wait"}(_i||(_i={}));class Ys{constructor(){this.mode=_i.delete,this.value=0}load(t){Yt(t)||(void 0!==t.mode&&(this.mode=t.mode),void 0!==t.value&&(this.value=t.value))}}class Js{constructor(){this.density=new Xs,this.limit=new Ys,this.value=0}load(t){Yt(t)||(this.density.load(t.density),this.limit.load(t.limit),void 0!==t.value&&(this.value=t.value))}}class Zs{constructor(){this.blur=0,this.color=new as,this.enable=!1,this.offset={x:0,y:0},this.color.value="#000"}load(t){Yt(t)||(void 0!==t.blur&&(this.blur=t.blur),this.color=as.create(this.color,t.color),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.offset&&(void 0!==t.offset.x&&(this.offset.x=t.offset.x),void 0!==t.offset.y&&(this.offset.y=t.offset.y)))}}class Ks{constructor(){this.close=!0,this.fill=!0,this.options={},this.type="circle"}load(t){if(Yt(t))return;const e=t.options;if(void 0!==e)for(const t in e){const i=e[t];i&&(this.options[t]=je(this.options[t]??{},i))}void 0!==t.close&&(this.close=t.close),void 0!==t.fill&&(this.fill=t.fill),void 0!==t.type&&(this.type=t.type)}}class tn extends Ms{constructor(){super(),this.destroy=Oe.none,this.speed=5}load(t){super.load(t),Yt(t)||void 0!==t.destroy&&(this.destroy=t.destroy)}}class en extends Ts{constructor(){super(),this.animation=new tn,this.value=3}load(t){if(super.load(t),Yt(t))return;const e=t.animation;void 0!==e&&this.animation.load(e)}}class sn{constructor(){this.width=0}load(t){Yt(t)||(void 0!==t.color&&(this.color=Os.create(this.color,t.color)),void 0!==t.width&&(this.width=ue(t.width)),void 0!==t.opacity&&(this.opacity=ue(t.opacity)))}}class nn extends Rs{constructor(){super(),this.opacityRate=1,this.sizeRate=1,this.velocityRate=1}load(t){super.load(t),Yt(t)||(void 0!==t.opacityRate&&(this.opacityRate=t.opacityRate),void 0!==t.sizeRate&&(this.sizeRate=t.sizeRate),void 0!==t.velocityRate&&(this.velocityRate=t.velocityRate))}}class on{constructor(t,e){this._engine=t,this._container=e,this.bounce=new Is,this.collisions=new Ls,this.color=new Os,this.color.value="#fff",this.effect=new Fs,this.groups={},this.move=new Gs,this.number=new Js,this.opacity=new Qs,this.reduceDuplicates=!1,this.shadow=new Zs,this.shape=new Ks,this.size=new en,this.stroke=new sn,this.zIndex=new nn}load(t){if(Yt(t))return;if(void 0!==t.groups)for(const e of Object.keys(t.groups)){if(!Object.hasOwn(t.groups,e))continue;const i=t.groups[e];void 0!==i&&(this.groups[e]=je(this.groups[e]??{},i))}void 0!==t.reduceDuplicates&&(this.reduceDuplicates=t.reduceDuplicates),this.bounce.load(t.bounce),this.color.load(Os.create(this.color,t.color)),this.effect.load(t.effect),this.move.load(t.move),this.number.load(t.number),this.opacity.load(t.opacity),this.shape.load(t.shape),this.size.load(t.size),this.shadow.load(t.shadow),this.zIndex.load(t.zIndex),this.collisions.load(t.collisions),void 0!==t.interactivity&&(this.interactivity=je({},t.interactivity));const e=t.stroke;if(e&&(this.stroke=ei(e,(t=>{const e=new sn;return e.load(t),e}))),this._container){const e=this._engine.updaters.get(this._container);if(e)for(const i of e)i.loadOptions&&i.loadOptions(this,t);const i=this._engine.interactors.get(this._container);if(i)for(const e of i)e.loadParticlesOptions&&e.loadParticlesOptions(this,t)}}}function an(t,...e){for(const i of e)t.load(i)}function rn(t,e,...i){const s=new on(t,e);return an(s,...i),s}class cn{constructor(t,e){this._findDefaultTheme=t=>this.themes.find((e=>e.default.value&&e.default.mode===t))??this.themes.find((t=>t.default.value&&t.default.mode===vi.any)),this._importPreset=t=>{this.load(this._engine.getPreset(t))},this._engine=t,this._container=e,this.autoPlay=!0,this.background=new rs,this.backgroundMask=new ls,this.clear=!0,this.defaultThemes={},this.delay=0,this.fullScreen=new hs,this.detectRetina=!0,this.duration=0,this.fpsLimit=120,this.interactivity=new ys(t,e),this.manualParticles=[],this.particles=rn(this._engine,this._container),this.pauseOnBlur=!0,this.pauseOnOutsideViewport=!0,this.responsive=[],this.smooth=!1,this.style={},this.themes=[],this.zLayers=100}load(t){if(Yt(t))return;void 0!==t.preset&&ei(t.preset,(t=>this._importPreset(t))),void 0!==t.autoPlay&&(this.autoPlay=t.autoPlay),void 0!==t.clear&&(this.clear=t.clear),void 0!==t.key&&(this.key=t.key),void 0!==t.name&&(this.name=t.name),void 0!==t.delay&&(this.delay=ue(t.delay));const e=t.detectRetina;void 0!==e&&(this.detectRetina=e),void 0!==t.duration&&(this.duration=ue(t.duration));const i=t.fpsLimit;void 0!==i&&(this.fpsLimit=i),void 0!==t.pauseOnBlur&&(this.pauseOnBlur=t.pauseOnBlur),void 0!==t.pauseOnOutsideViewport&&(this.pauseOnOutsideViewport=t.pauseOnOutsideViewport),void 0!==t.zLayers&&(this.zLayers=t.zLayers),this.background.load(t.background);const s=t.fullScreen;$t(s)?this.fullScreen.enable=s:this.fullScreen.load(s),this.backgroundMask.load(t.backgroundMask),this.interactivity.load(t.interactivity),t.manualParticles&&(this.manualParticles=t.manualParticles.map((t=>{const e=new _s;return e.load(t),e}))),this.particles.load(t.particles),this.style=je(this.style,t.style),this._engine.loadOptions(this,t),void 0!==t.smooth&&(this.smooth=t.smooth);const n=this._engine.interactors.get(this._container);if(n)for(const e of n)e.loadOptions&&e.loadOptions(this,t);if(void 0!==t.responsive)for(const e of t.responsive){const t=new bs;t.load(e),this.responsive.push(t)}if(this.responsive.sort(((t,e)=>t.maxWidth-e.maxWidth)),void 0!==t.themes)for(const e of t.themes){const t=this.themes.find((t=>t.name===e.name));if(t)t.load(e);else{const t=new xs;t.load(e),this.themes.push(t)}}this.defaultThemes.dark=this._findDefaultTheme(vi.dark)?.name,this.defaultThemes.light=this._findDefaultTheme(vi.light)?.name}setResponsive(t,e,i){this.load(i);const s=this.responsive.find((i=>i.mode===mi.screen&&screen?i.maxWidth>screen.availWidth:i.maxWidth*e>t));return this.load(s?.options),s?.maxWidth}setTheme(t){if(t){const e=this.themes.find((e=>e.name===t));e&&this.load(e.options)}else{const t=Ae("(prefers-color-scheme: dark)"),e=t?.matches,i=this._findDefaultTheme(e?vi.dark:vi.light);i&&this.load(i.options)}}}!function(t){t.external="external",t.particles="particles"}(bi||(bi={}));class ln{constructor(t,e){this.container=e,this._engine=t,this._interactors=[],this._externalInteractors=[],this._particleInteractors=[]}externalInteract(t){for(const e of this._externalInteractors)e.isEnabled()&&e.interact(t)}handleClickMode(t){for(const e of this._externalInteractors)e.handleClickMode?.(t)}async init(){this._interactors=await this._engine.getInteractors(this.container,!0),this._externalInteractors=[],this._particleInteractors=[];for(const t of this._interactors){switch(t.type){case bi.external:this._externalInteractors.push(t);break;case bi.particles:this._particleInteractors.push(t)}t.init()}}particlesInteract(t,e){for(const i of this._externalInteractors)i.clear(t,e);for(const i of this._particleInteractors)i.isEnabled(t)&&i.interact(t,e)}reset(t){for(const e of this._externalInteractors)e.isEnabled()&&e.reset(t);for(const e of this._particleInteractors)e.isEnabled(t)&&e.reset(t)}}function hn(t){if(!He(t.outMode,t.checkModes))return;const e=t.radius*x;t.coord>t.maxCoord-e?t.setCb(-t.radius):t.coord<e&&t.setCb(t.radius)}!function(t){t.normal="normal",t.inside="inside",t.outside="outside"}(wi||(wi={}));class dn{constructor(t,e){this.container=e,this._calcPosition=(t,e,i,s=C)=>{for(const s of t.plugins.values()){const t=void 0!==s.particlePosition?s.particlePosition(e,this):void 0;if(t)return Jt.create(t.x,t.y,i)}const n=xe({size:t.canvas.size,position:e}),o=Jt.create(n.x,n.y,i),a=this.getRadius(),r=this.options.move.outModes,c=e=>{hn({outMode:e,checkModes:[yi.bounce],coord:o.x,maxCoord:t.canvas.size.width,setCb:t=>o.x+=t,radius:a})},l=e=>{hn({outMode:e,checkModes:[yi.bounce],coord:o.y,maxCoord:t.canvas.size.height,setCb:t=>o.y+=t,radius:a})};return c(r.left??r.default),c(r.right??r.default),l(r.top??r.default),l(r.bottom??r.default),this._checkOverlap(o,s)?this._calcPosition(t,void 0,i,s+ut):o},this._calculateVelocity=()=>{const t=ge(this.direction).copy(),e=this.options.move;if(e.direction===Ut.inside||e.direction===Ut.outside)return t;const i=me(le(e.angle.value)),s=me(le(e.angle.offset)),n={left:s-i*v,right:s+i*v};return e.straight||(t.angle+=ce(ue(n.left,n.right))),e.random&&"number"==typeof e.speed&&(t.length*=ie()),t},this._checkOverlap=(t,e=C)=>{const i=this.options.collisions,s=this.getRadius();if(!i.enable)return!1;const n=i.overlap;if(n.enable)return!1;const o=n.retries;if(o>=pt&&e>o)throw new Error(`${f} particle is overlapping and can't be placed`);return!!this.container.particles.find((e=>fe(t,e.position)<s+e.getRadius()))},this._getRollColor=t=>{if(!t||!this.roll||!this.backColor&&!this.roll.alter)return t;const e=this.roll.horizontal&&this.roll.vertical?x*ft:ft,i=this.roll.horizontal?Math.PI*v:ht;return Math.floor(((this.roll.angle??ht)+i)/(Math.PI/e))%x?this.backColor?this.backColor:this.roll.alter?ts(t,this.roll.alter.type,this.roll.alter.value):t:t},this._initPosition=t=>{const e=this.container,i=le(this.options.zIndex.value);this.position=this._calcPosition(e,t,ae(i,mt,e.zLayers)),this.initialPosition=this.position.copy();const s=e.canvas.size;switch(this.moveCenter={...ai(this.options.move.center,s),radius:this.options.move.center.radius??vt,mode:this.options.move.center.mode??Ce.percent},this.direction=ve(this.options.move.direction,this.position,this.moveCenter),this.options.move.direction){case Ut.inside:this.outType=wi.inside;break;case Ut.outside:this.outType=wi.outside}this.offset=Zt.origin},this._engine=t}destroy(t){if(this.unbreakable||this.destroyed)return;this.destroyed=!0,this.bubble.inRange=!1,this.slow.inRange=!1;const e=this.container,i=this.pathGenerator,s=e.shapeDrawers.get(this.shape);s?.particleDestroy?.(this);for(const i of e.plugins.values())i.particleDestroyed?.(this,t);for(const i of e.particles.updaters)i.particleDestroyed?.(this,t);i?.reset(this),this._engine.dispatchEvent(pi.particleDestroyed,{container:this.container,data:{particle:this}})}draw(t){const e=this.container,i=e.canvas;for(const s of e.plugins.values())i.drawParticlePlugin(s,this,t);i.drawParticle(this,t)}getFillColor(){return this._getRollColor(this.bubble.color??Bi(this.color))}getMass(){return this.getRadius()**R*Math.PI*v}getPosition(){return{x:this.position.x+this.offset.x,y:this.position.y+this.offset.y,z:this.position.z}}getRadius(){return this.bubble.radius??this.size.value}getStrokeColor(){return this._getRollColor(this.bubble.color??Bi(this.strokeColor))}init(t,e,i,s){const n=this.container,o=this._engine;this.id=t,this.group=s,this.effectClose=!0,this.effectFill=!0,this.shapeClose=!0,this.shapeFill=!0,this.pathRotation=!1,this.lastPathTime=0,this.destroyed=!1,this.unbreakable=!1,this.isRotating=!1,this.rotation=0,this.misplaced=!1,this.retina={maxDistance:{}},this.outType=wi.normal,this.ignoresResizeRatio=!0;const a=n.retina.pixelRatio,r=n.actualOptions,c=rn(this._engine,n,r.particles),{reduceDuplicates:l}=c,h=c.effect.type,d=c.shape.type;this.effect=ii(h,this.id,l),this.shape=ii(d,this.id,l);const u=c.effect,p=c.shape;if(i){if(i.effect?.type){const t=ii(i.effect.type,this.id,l);t&&(this.effect=t,u.load(i.effect))}if(i.shape?.type){const t=ii(i.shape.type,this.id,l);t&&(this.shape=t,p.load(i.shape))}}if(this.effect===b){const t=[...this.container.effectDrawers.keys()];this.effect=t[Math.floor(ie()*t.length)]}if(this.shape===b){const t=[...this.container.shapeDrawers.keys()];this.shape=t[Math.floor(ie()*t.length)]}this.effectData=function(t,e,i,s){const n=e.options[t];if(n)return je({close:e.close,fill:e.fill},ii(n,i,s))}(this.effect,u,this.id,l),this.shapeData=function(t,e,i,s){const n=e.options[t];if(n)return je({close:e.close,fill:e.fill},ii(n,i,s))}(this.shape,p,this.id,l),c.load(i);const f=this.effectData;f&&c.load(f.particles);const m=this.shapeData;m&&c.load(m.particles);const v=new ys(o,n);v.load(n.actualOptions.interactivity),v.load(c.interactivity),this.interactivity=v,this.effectFill=f?.fill??c.effect.fill,this.effectClose=f?.close??c.effect.close,this.shapeFill=m?.fill??c.shape.fill,this.shapeClose=m?.close??c.shape.close,this.options=c;const y=this.options.move.path;this.pathDelay=le(y.delay.value)*g,y.generator&&(this.pathGenerator=this._engine.getPathGenerator(y.generator),this.pathGenerator&&n.addPath(y.generator,this.pathGenerator)&&this.pathGenerator.init(n)),n.retina.initParticle(this),this.size=ni(this.options.size,a),this.bubble={inRange:!1},this.slow={inRange:!1,factor:1},this._initPosition(e),this.initialVelocity=this._calculateVelocity(),this.velocity=this.initialVelocity.copy(),this.moveDecay=dt-le(this.options.move.decay);const _=n.particles;_.setLastZIndex(this.position.z),this.zIndexFactor=this.position.z/n.zLayers,this.sides=24;let w=n.effectDrawers.get(this.effect);w||(w=this._engine.getEffectDrawer(this.effect),w&&n.effectDrawers.set(this.effect,w)),w?.loadEffect&&w.loadEffect(this);let x=n.shapeDrawers.get(this.shape);x||(x=this._engine.getShapeDrawer(this.shape),x&&n.shapeDrawers.set(this.shape,x)),x?.loadShape&&x.loadShape(this);const z=x?.getSidesCount;z&&(this.sides=z(this)),this.spawning=!1,this.shadowColor=Mi(this._engine,this.options.shadow.color);for(const t of _.updaters)t.init(this);for(const t of _.movers)t.init?.(this);w?.particleInit?.(n,this),x?.particleInit?.(n,this);for(const t of n.plugins.values())t.particleCreated?.(this)}isInsideCanvas(){const t=this.getRadius(),e=this.container.canvas.size,i=this.position;return i.x>=-t&&i.y>=-t&&i.y<=e.height+t&&i.x<=e.width+t}isVisible(){return!this.destroyed&&!this.spawning&&this.isInsideCanvas()}reset(){for(const t of this.container.particles.updaters)t.reset?.(this)}}class un{constructor(t,e){this.position=t,this.particle=e}}!function(t){t.circle="circle",t.rectangle="rectangle"}(xi||(xi={}));class pn{constructor(t,e,i){this.position={x:t,y:e},this.type=i}}class fn extends pn{constructor(t,e,i){super(t,e,xi.circle),this.radius=i}contains(t){return fe(t,this.position)<=this.radius}intersects(t){const e=this.position,i=t.position,s=Math.abs(i.x-e.x),n=Math.abs(i.y-e.y),o=this.radius;if(t instanceof fn||t.type===xi.circle){return o+t.radius>Math.sqrt(s**R+n**R)}if(t instanceof mn||t.type===xi.rectangle){const e=t,{width:i,height:a}=e.size;return Math.pow(s-i,R)+Math.pow(n-a,R)<=o**R||s<=o+i&&n<=o+a||s<=i||n<=a}return!1}}class mn extends pn{constructor(t,e,i,s){super(t,e,xi.rectangle),this.size={height:s,width:i}}contains(t){const e=this.size.width,i=this.size.height,s=this.position;return t.x>=s.x&&t.x<=s.x+e&&t.y>=s.y&&t.y<=s.y+i}intersects(t){if(t instanceof fn)return t.intersects(this);const e=this.size.width,i=this.size.height,s=this.position,n=t.position,o=t instanceof mn?t.size:{width:0,height:0},a=o.width,r=o.height;return n.x<s.x+e&&n.x+a>s.x&&n.y<s.y+i&&n.y+r>s.y}}class vn{constructor(t,e){this.rectangle=t,this.capacity=e,this._subdivide=()=>{const{x:t,y:e}=this.rectangle.position,{width:i,height:s}=this.rectangle.size,{capacity:n}=this;for(let o=0;o<L;o++){const a=o%x;this._subs.push(new vn(new mn(t+i*v*a,e+s*v*(Math.round(o*v)-a),i*v,s*v),n))}this._divided=!0},this._points=[],this._divided=!1,this._subs=[]}insert(t){return!!this.rectangle.contains(t.position)&&(this._points.length<this.capacity?(this._points.push(t),!0):(this._divided||this._subdivide(),this._subs.some((e=>e.insert(t)))))}query(t,e){const i=[];if(!t.intersects(this.rectangle))return[];for(const s of this._points)!t.contains(s.position)&&fe(t.position,s.position)>s.particle.getRadius()&&(!e||e(s.particle))||i.push(s.particle);if(this._divided)for(const s of this._subs)i.push(...s.query(t,e));return i}queryCircle(t,e,i){return this.query(new fn(t.x,t.y,e),i)}queryRectangle(t,e,i){return this.query(new mn(t.x,t.y,e.width,e.height),i)}}const gn=t=>{const{height:e,width:i}=t;return new mn(gt*i,gt*e,yt*i,yt*e)};class yn{constructor(t,e){this._addToPool=(...t)=>{this._pool.push(...t)},this._applyDensity=(t,e,i,s)=>{const n=t.number;if(!t.number.density?.enable)return void(void 0===i?this._limit=n.limit.value:(s?.number.limit?.value??n.limit.value)&&this._groupLimits.set(i,s?.number.limit?.value??n.limit.value));const o=this._initDensityFactor(n.density),a=n.value,r=n.limit.value>_t?n.limit.value:a,c=Math.min(a,r)*o+e,l=Math.min(this.count,this.filter((t=>t.group===i)).length);void 0===i?this._limit=n.limit.value*o:this._groupLimits.set(i,n.limit.value*o),l<c?this.push(Math.abs(c-l),void 0,t,i):l>c&&this.removeQuantity(l-c,i)},this._initDensityFactor=t=>{const e=this._container;if(!e.canvas.element||!t.enable)return Pt;const i=e.canvas.element,s=e.retina.pixelRatio;return i.width*i.height/(t.height*t.width*s**R)},this._pushParticle=(t,e,i,s)=>{try{let n=this._pool.pop();n||(n=new dn(this._engine,this._container)),n.init(this._nextId,t,e,i);let o=!0;if(s&&(o=s(n)),!o)return;return this._array.push(n),this._zArray.push(n),this._nextId++,this._engine.dispatchEvent(pi.particleAdded,{container:this._container,data:{particle:n}}),n}catch(t){Ee().warning(`${f} adding particle: ${t}`)}},this._removeParticle=(t,e,i)=>{const s=this._array[t];if(!s||s.group!==e)return!1;const n=this._zArray.indexOf(s);return this._array.splice(t,kt),this._zArray.splice(n,kt),s.destroy(i),this._engine.dispatchEvent(pi.particleRemoved,{container:this._container,data:{particle:s}}),this._addToPool(s),!0},this._engine=t,this._container=e,this._nextId=0,this._array=[],this._zArray=[],this._pool=[],this._limit=0,this._groupLimits=new Map,this._needsSort=!1,this._lastZIndex=0,this._interactionManager=new ln(t,e),this._pluginsInitialized=!1;const i=e.canvas.size;this.quadTree=new vn(gn(i),D),this.movers=[],this.updaters=[]}get count(){return this._array.length}addManualParticles(){const t=this._container;t.actualOptions.manualParticles.forEach((e=>this.addParticle(e.position?ai(e.position,t.canvas.size):void 0,e.options)))}addParticle(t,e,i,s){const n=this._container.actualOptions.particles.number.limit.mode,o=void 0===i?this._limit:this._groupLimits.get(i)??this._limit,a=this.count;if(o>_t)switch(n){case _i.delete:{const t=a+bt-o;t>wt&&this.removeQuantity(t);break}case _i.wait:if(a>=o)return}return this._pushParticle(t,e,i,s)}clear(){this._array=[],this._zArray=[],this._pluginsInitialized=!1}destroy(){this._array=[],this._zArray=[],this.movers=[],this.updaters=[]}draw(t){const e=this._container,i=e.canvas;i.clear(),this.update(t);for(const s of e.plugins.values())i.drawPlugin(s,t);for(const e of this._zArray)e.draw(t)}filter(t){return this._array.filter(t)}find(t){return this._array.find(t)}get(t){return this._array[t]}handleClickMode(t){this._interactionManager.handleClickMode(t)}async init(){const t=this._container,e=t.actualOptions;this._lastZIndex=0,this._needsSort=!1,await this.initPlugins();let i=!1;for(const e of t.plugins.values())if(i=e.particlesInitialization?.()??i,i)break;if(this.addManualParticles(),!i){const t=e.particles,i=t.groups;for(const e in i){const s=i[e];for(let i=this.count,n=0;n<s.number?.value&&i<t.number.value;i++,n++)this.addParticle(void 0,s,e)}for(let e=this.count;e<t.number.value;e++)this.addParticle()}}async initPlugins(){if(this._pluginsInitialized)return;const t=this._container;this.movers=await this._engine.getMovers(t,!0),this.updaters=await this._engine.getUpdaters(t,!0),await this._interactionManager.init();for(const e of t.pathGenerators.values())e.init(t)}push(t,e,i,s){for(let n=0;n<t;n++)this.addParticle(e?.position,i,s)}async redraw(){this.clear(),await this.init(),this.draw({value:0,factor:0})}remove(t,e,i){this.removeAt(this._array.indexOf(t),void 0,e,i)}removeAt(t,e=T,i,s){if(t<xt||t>this.count)return;let n=0;for(let o=t;n<e&&o<this.count;o++)this._removeParticle(o,i,s)&&(o--,n++)}removeQuantity(t,e){this.removeAt(xt,t,e)}setDensity(){const t=this._container.actualOptions,e=t.particles.groups,i=t.manualParticles.length;for(const t in e)this._applyDensity(e[t],i,t);this._applyDensity(t.particles,i)}setLastZIndex(t){this._lastZIndex=t,this._needsSort=this._needsSort||this._lastZIndex<t}setResizeFactor(t){this._resizeFactor=t}update(t){const e=this._container,i=new Set;this.quadTree=new vn(gn(e.canvas.size),D);for(const t of e.pathGenerators.values())t.update();for(const i of e.plugins.values())i.update?.(t);const s=this._resizeFactor;for(const e of this._array){s&&!e.ignoresResizeRatio&&(e.position.x*=s.width,e.position.y*=s.height,e.initialPosition.x*=s.width,e.initialPosition.y*=s.height),e.ignoresResizeRatio=!1,this._interactionManager.reset(e);for(const i of this._container.plugins.values()){if(e.destroyed)break;i.particleUpdate?.(e,t)}for(const i of this.movers)i.isEnabled(e)&&i.move(e,t);e.destroyed?i.add(e):this.quadTree.insert(new un(e.getPosition(),e))}if(i.size){const t=t=>!i.has(t);this._array=this.filter(t),this._zArray=this._zArray.filter(t);for(const t of i)this._engine.dispatchEvent(pi.particleRemoved,{container:this._container,data:{particle:t}});this._addToPool(...i)}this._interactionManager.externalInteract(t);for(const e of this._array){for(const i of this.updaters)i.update(e,t);e.destroyed||e.spawning||this._interactionManager.particlesInteract(e,t)}if(delete this._resizeFactor,this._needsSort){const t=this._zArray;t.sort(((t,e)=>e.position.z-t.position.z||t.id-e.id)),this._lastZIndex=t[t.length-Mt].position.z,this._needsSort=!1}}}class _n{constructor(t){this.container=t,this.pixelRatio=E,this.reduceFactor=I}init(){const t=this.container,e=t.actualOptions;this.pixelRatio=!e.detectRetina||Le()?E:devicePixelRatio,this.reduceFactor=I;const i=this.pixelRatio,s=t.canvas;if(s.element){const t=s.element;s.size.width=t.offsetWidth*i,s.size.height=t.offsetHeight*i}const n=e.particles,o=n.move;this.maxSpeed=le(o.gravity.maxSpeed)*i,this.sizeAnimationSpeed=le(n.size.animation.speed)*i}initParticle(t){const e=t.options,i=this.pixelRatio,s=e.move,n=s.distance,o=t.retina;o.moveDrift=le(s.drift)*i,o.moveSpeed=le(s.speed)*i,o.sizeAnimationSpeed=le(e.size.animation.speed)*i;const a=o.maxDistance;a.horizontal=void 0!==n.horizontal?n.horizontal*i:void 0,a.vertical=void 0!==n.vertical?n.vertical*i:void 0,o.maxSpeed=le(s.gravity.maxSpeed)*i}}function bn(t){return t&&!t.destroyed}function wn(t,e,...i){const s=new cn(t,e);return an(s,...i),s}class xn{constructor(t,e,i){this._intersectionManager=t=>{if(bn(this)&&this.actualOptions.pauseOnOutsideViewport)for(const e of t)e.target===this.interactivity.element&&(e.isIntersecting?this.play():this.pause())},this._nextFrame=t=>{try{if(!this._smooth&&void 0!==this._lastFrameTime&&t<this._lastFrameTime+g/this.fpsLimit)return void this.draw(!1);this._lastFrameTime??=t;const e=function(t,e=M,i=!1){return{value:t,factor:i?M/e:M*t/g}}(t-this._lastFrameTime,this.fpsLimit,this._smooth);if(this.addLifeTime(e.value),this._lastFrameTime=t,e.value>g)return void this.draw(!1);if(this.particles.draw(e),!this.alive())return void this.destroy();this.animationStatus&&this.draw(!1)}catch(t){Ee().error(`${f} in animation loop`,t)}},this._engine=t,this.id=Symbol(e),this.fpsLimit=120,this._smooth=!1,this._delay=0,this._duration=0,this._lifeTime=0,this._firstStart=!0,this.started=!1,this.destroyed=!1,this._paused=!0,this._lastFrameTime=0,this.zLayers=100,this.pageHidden=!1,this._clickHandlers=new Map,this._sourceOptions=i,this._initialSourceOptions=i,this.retina=new _n(this),this.canvas=new ss(this,this._engine),this.particles=new yn(this._engine,this),this.pathGenerators=new Map,this.interactivity={mouse:{clicking:!1,inside:!1}},this.plugins=new Map,this.effectDrawers=new Map,this.shapeDrawers=new Map,this._options=wn(this._engine,this),this.actualOptions=wn(this._engine,this),this._eventListeners=new os(this),this._intersectionObserver=Ve((t=>this._intersectionManager(t))),this._engine.dispatchEvent(pi.containerBuilt,{container:this})}get animationStatus(){return!this._paused&&!this.pageHidden&&bn(this)}get options(){return this._options}get sourceOptions(){return this._sourceOptions}addClickHandler(t){if(!bn(this))return;const e=this.interactivity.element;if(!e)return;const i=(e,i,s)=>{if(!bn(this))return;const n=this.retina.pixelRatio,o={x:i.x*n,y:i.y*n},a=this.particles.quadTree.queryCircle(o,s*n);t(e,a)};let s=!1,n=!1;this._clickHandlers.set("click",(t=>{if(!bn(this))return;const e=t,s={x:e.offsetX||e.clientX,y:e.offsetY||e.clientY};i(t,s,K)})),this._clickHandlers.set("touchstart",(()=>{bn(this)&&(s=!0,n=!1)})),this._clickHandlers.set("touchmove",(()=>{bn(this)&&(n=!0)})),this._clickHandlers.set("touchend",(t=>{if(bn(this)){if(s&&!n){const e=t;let s=e.touches[e.touches.length-tt];if(!s&&(s=e.changedTouches[e.changedTouches.length-tt],!s))return;const n=this.canvas.element,o=n?n.getBoundingClientRect():void 0,a={x:s.clientX-(o?o.left:et),y:s.clientY-(o?o.top:et)};i(t,a,Math.max(s.radiusX,s.radiusY))}s=!1,n=!1}})),this._clickHandlers.set("touchcancel",(()=>{bn(this)&&(s=!1,n=!1)}));for(const[t,i]of this._clickHandlers)e.addEventListener(t,i)}addLifeTime(t){this._lifeTime+=t}addPath(t,e,i=!1){return!(!bn(this)||!i&&this.pathGenerators.has(t))&&(this.pathGenerators.set(t,e),!0)}alive(){return!this._duration||this._lifeTime<=this._duration}clearClickHandlers(){if(bn(this)){for(const[t,e]of this._clickHandlers)this.interactivity.element?.removeEventListener(t,e);this._clickHandlers.clear()}}destroy(t=!0){if(bn(this)){this.stop(),this.clearClickHandlers(),this.particles.destroy(),this.canvas.destroy();for(const t of this.effectDrawers.values())t.destroy?.(this);for(const t of this.shapeDrawers.values())t.destroy?.(this);for(const t of this.effectDrawers.keys())this.effectDrawers.delete(t);for(const t of this.shapeDrawers.keys())this.shapeDrawers.delete(t);if(this._engine.clearPlugins(this),this.destroyed=!0,t){const t=this._engine.items,e=t.findIndex((t=>t===this));e>=st&&t.splice(e,it)}this._engine.dispatchEvent(pi.containerDestroyed,{container:this})}}draw(t){if(!bn(this))return;let e=t;const i=t=>{e&&(this._lastFrameTime=void 0,e=!1),this._nextFrame(t)};this._drawAnimationFrame=ne((t=>i(t)))}async export(t,e={}){for(const i of this.plugins.values()){if(!i.export)continue;const s=await i.export(t,e);if(s.supported)return s.blob}Ee().error(`${f} - Export plugin with type ${t} not found`)}handleClickMode(t){if(bn(this)){this.particles.handleClickMode(t);for(const e of this.plugins.values())e.handleClickMode?.(t)}}async init(){if(!bn(this))return;const t=this._engine.getSupportedEffects();for(const e of t){const t=this._engine.getEffectDrawer(e);t&&this.effectDrawers.set(e,t)}const e=this._engine.getSupportedShapes();for(const t of e){const e=this._engine.getShapeDrawer(t);e&&this.shapeDrawers.set(t,e)}await this.particles.initPlugins(),this._options=wn(this._engine,this,this._initialSourceOptions,this.sourceOptions),this.actualOptions=wn(this._engine,this,this._options);const i=await this._engine.getAvailablePlugins(this);for(const[t,e]of i)this.plugins.set(t,e);this.retina.init(),await this.canvas.init(),this.updateActualOptions(),this.canvas.initBackground(),this.canvas.resize();const{zLayers:s,duration:n,delay:o,fpsLimit:a,smooth:r}=this.actualOptions;this.zLayers=s,this._duration=le(n)*g,this._delay=le(o)*g,this._lifeTime=0,this.fpsLimit=a>ot?a:nt,this._smooth=r;for(const t of this.effectDrawers.values())await(t.init?.(this));for(const t of this.shapeDrawers.values())await(t.init?.(this));for(const t of this.plugins.values())await(t.init?.());this._engine.dispatchEvent(pi.containerInit,{container:this}),await this.particles.init(),this.particles.setDensity();for(const t of this.plugins.values())t.particlesSetup?.();this._engine.dispatchEvent(pi.particlesSetup,{container:this})}async loadTheme(t){bn(this)&&(this._currentTheme=t,await this.refresh())}pause(){if(bn(this)&&(void 0!==this._drawAnimationFrame&&(oe(this._drawAnimationFrame),delete this._drawAnimationFrame),!this._paused)){for(const t of this.plugins.values())t.pause?.();this.pageHidden||(this._paused=!0),this._engine.dispatchEvent(pi.containerPaused,{container:this})}}play(t){if(!bn(this))return;const e=this._paused||t;if(!this._firstStart||this.actualOptions.autoPlay){if(this._paused&&(this._paused=!1),e)for(const t of this.plugins.values())t.play&&t.play();this._engine.dispatchEvent(pi.containerPlay,{container:this}),this.draw(e??!1)}else this._firstStart=!1}async refresh(){if(bn(this))return this.stop(),this.start()}async reset(t){if(bn(this))return this._initialSourceOptions=t,this._sourceOptions=t,this._options=wn(this._engine,this,this._initialSourceOptions,this.sourceOptions),this.actualOptions=wn(this._engine,this,this._options),this.refresh()}async start(){bn(this)&&!this.started&&(await this.init(),this.started=!0,await new Promise((t=>{const e=async()=>{this._eventListeners.addListeners(),this.interactivity.element instanceof HTMLElement&&this._intersectionObserver&&this._intersectionObserver.observe(this.interactivity.element);for(const t of this.plugins.values())await(t.start?.());this._engine.dispatchEvent(pi.containerStarted,{container:this}),this.play(),t()};this._delayTimeout=setTimeout((()=>{e()}),this._delay)})))}stop(){if(bn(this)&&this.started){this._delayTimeout&&(clearTimeout(this._delayTimeout),delete this._delayTimeout),this._firstStart=!0,this.started=!1,this._eventListeners.removeListeners(),this.pause(),this.particles.clear(),this.canvas.stop(),this.interactivity.element instanceof HTMLElement&&this._intersectionObserver&&this._intersectionObserver.unobserve(this.interactivity.element);for(const t of this.plugins.values())t.stop?.();for(const t of this.plugins.keys())this.plugins.delete(t);this._sourceOptions=this._options,this._engine.dispatchEvent(pi.containerStopped,{container:this})}}updateActualOptions(){this.actualOptions.responsive=[];const t=this.actualOptions.setResponsive(this.canvas.size.width,this.retina.pixelRatio,this._options);return this.actualOptions.setTheme(this._currentTheme),this._responsiveMaxWidth!==t&&(this._responsiveMaxWidth=t,!0)}}class zn{constructor(){this._listeners=new Map}addEventListener(t,e){this.removeEventListener(t,e);let i=this._listeners.get(t);i||(i=[],this._listeners.set(t,i)),i.push(e)}dispatchEvent(t,e){const i=this._listeners.get(t);i?.forEach((t=>t(e)))}hasEventListener(t){return!!this._listeners.get(t)}removeAllEventListeners(t){t?this._listeners.delete(t):this._listeners=new Map}removeEventListener(t,e){const i=this._listeners.get(t);if(!i)return;const s=i.length,n=i.indexOf(e);n<xt||(s===kt?this._listeners.delete(t):i.splice(n,kt))}}async function Mn(t,e,i,s=!1){let n=e.get(t);return n&&!s||(n=await Promise.all([...i.values()].map((e=>e(t)))),e.set(t,n)),n}class Pn{constructor(){this._configs=new Map,this._domArray=[],this._eventDispatcher=new zn,this._initialized=!1,this.plugins=[],this.colorManagers=new Map,this.easingFunctions=new Map,this._initializers={interactors:new Map,movers:new Map,updaters:new Map},this.interactors=new Map,this.movers=new Map,this.updaters=new Map,this.presets=new Map,this.effectDrawers=new Map,this.shapeDrawers=new Map,this.pathGenerators=new Map}get configs(){const t={};for(const[e,i]of this._configs)t[e]=i;return t}get items(){return this._domArray}get version(){return"3.9.0"}async addColorManager(t,e=!0){this.colorManagers.set(t.key,t),await this.refresh(e)}addConfig(t){const e=t.key??t.name??"default";this._configs.set(e,t),this._eventDispatcher.dispatchEvent(pi.configAdded,{data:{name:e,config:t}})}async addEasing(t,e,i=!0){this.getEasing(t)||(this.easingFunctions.set(t,e),await this.refresh(i))}async addEffect(t,e,i=!0){ei(t,(t=>{this.getEffectDrawer(t)||this.effectDrawers.set(t,e)})),await this.refresh(i)}addEventListener(t,e){this._eventDispatcher.addEventListener(t,e)}async addInteractor(t,e,i=!0){this._initializers.interactors.set(t,e),await this.refresh(i)}async addMover(t,e,i=!0){this._initializers.movers.set(t,e),await this.refresh(i)}async addParticleUpdater(t,e,i=!0){this._initializers.updaters.set(t,e),await this.refresh(i)}async addPathGenerator(t,e,i=!0){this.getPathGenerator(t)||this.pathGenerators.set(t,e),await this.refresh(i)}async addPlugin(t,e=!0){this.getPlugin(t.id)||this.plugins.push(t),await this.refresh(e)}async addPreset(t,e,i=!1,s=!0){!i&&this.getPreset(t)||this.presets.set(t,e),await this.refresh(s)}async addShape(t,e=!0){for(const e of t.validTypes)this.getShapeDrawer(e)||this.shapeDrawers.set(e,t);await this.refresh(e)}checkVersion(t){if(this.version!==t)throw new Error(`The tsParticles version is different from the loaded plugins version. Engine version: ${this.version}. Plugin version: ${t}`)}clearPlugins(t){this.updaters.delete(t),this.movers.delete(t),this.interactors.delete(t)}dispatchEvent(t,e){this._eventDispatcher.dispatchEvent(t,e)}dom(){return this.items}domItem(t){return this.item(t)}async getAvailablePlugins(t){const e=new Map;for(const i of this.plugins)i.needsPlugin(t.actualOptions)&&e.set(i.id,await i.getPlugin(t));return e}getEasing(t){return this.easingFunctions.get(t)??(t=>t)}getEffectDrawer(t){return this.effectDrawers.get(t)}async getInteractors(t,e=!1){return Mn(t,this.interactors,this._initializers.interactors,e)}async getMovers(t,e=!1){return Mn(t,this.movers,this._initializers.movers,e)}getPathGenerator(t){return this.pathGenerators.get(t)}getPlugin(t){return this.plugins.find((e=>e.id===t))}getPreset(t){return this.presets.get(t)}getShapeDrawer(t){return this.shapeDrawers.get(t)}getSupportedEffects(){return this.effectDrawers.keys()}getSupportedShapes(){return this.shapeDrawers.keys()}async getUpdaters(t,e=!1){return Mn(t,this.updaters,this._initializers.updaters,e)}init(){this._initialized||(this._initialized=!0)}item(t){const{items:e}=this,i=e[t];if(i&&!i.destroyed)return i;e.splice(t,it)}async load(t){const e=t.id??t.element?.id??`tsparticles${Math.floor(ie()*rt)}`,{index:s,url:n}=t,o=n?await async function(t){const e=ii(t.url,t.index);if(!e)return t.fallback;const i=await fetch(e);return i.ok?await i.json():(Ee().error(`${f} ${i.status} while retrieving config file`),t.fallback)}({fallback:t.options,url:n,index:s}):t.options,a=ii(o,s),{items:r}=this,c=r.findIndex((t=>t.id.description===e)),l=new xn(this,e,a);if(c>=ct){const t=this.item(c),e=t?lt:ht;t&&!t.destroyed&&t.destroy(!1),r.splice(c,e,l)}else r.push(l);const h=((t,e)=>{let s=e??document.getElementById(t);return s||(s=document.createElement("div"),s.id=t,s.dataset[i]=k,document.body.append(s),s)})(e,t.element),d=(t=>{let e;if(t instanceof HTMLCanvasElement||t.tagName.toLowerCase()===S)e=t,e.dataset[i]||(e.dataset[i]=O);else{const s=t.getElementsByTagName(S);s.length?(e=s[at],e.dataset[i]=O):(e=document.createElement(S),e.dataset[i]=k,t.appendChild(e))}const s="100%";return e.style.width||(e.style.width=s),e.style.height||(e.style.height=s),e})(h);return l.canvas.loadCanvas(d),await l.start(),l}loadOptions(t,e){this.plugins.forEach((i=>i.loadOptions?.(t,e)))}loadParticlesOptions(t,e,...i){const s=this.updaters.get(t);s&&s.forEach((t=>t.loadOptions?.(e,...i)))}async refresh(t=!0){t&&await Promise.all(this.items.map((t=>t.refresh())))}removeEventListener(t,e){this._eventDispatcher.removeEventListener(t,e)}setOnClickHandler(t){const{items:e}=this;if(!e.length)throw new Error(`${f} can only set click handlers after calling tsParticles.load()`);e.forEach((e=>e.addClickHandler(t)))}}class kn{constructor(t){this.type=bi.external,this.container=t}}class On{constructor(t){this.type=bi.particles,this.container=t}}var Sn,Cn,Rn;!function(t){t.clockwise="clockwise",t.counterClockwise="counter-clockwise",t.random="random"}(Sn||(Sn={})),function(t){t.linear="linear",t.radial="radial",t.random="random"}(Cn||(Cn={})),function(t){t.easeInBack="ease-in-back",t.easeInCirc="ease-in-circ",t.easeInCubic="ease-in-cubic",t.easeInLinear="ease-in-linear",t.easeInQuad="ease-in-quad",t.easeInQuart="ease-in-quart",t.easeInQuint="ease-in-quint",t.easeInExpo="ease-in-expo",t.easeInSine="ease-in-sine",t.easeOutBack="ease-out-back",t.easeOutCirc="ease-out-circ",t.easeOutCubic="ease-out-cubic",t.easeOutLinear="ease-out-linear",t.easeOutQuad="ease-out-quad",t.easeOutQuart="ease-out-quart",t.easeOutQuint="ease-out-quint",t.easeOutExpo="ease-out-expo",t.easeOutSine="ease-out-sine",t.easeInOutBack="ease-in-out-back",t.easeInOutCirc="ease-in-out-circ",t.easeInOutCubic="ease-in-out-cubic",t.easeInOutLinear="ease-in-out-linear",t.easeInOutQuad="ease-in-out-quad",t.easeInOutQuart="ease-in-out-quart",t.easeInOutQuint="ease-in-out-quint",t.easeInOutExpo="ease-in-out-expo",t.easeInOutSine="ease-in-out-sine"}(Rn||(Rn={}));const Dn=function(){const t=new Pn;return t.init(),t}();Le()||(window.tsParticles=Dn);class Tn{static init(t){const e=new Tn,i=t.selector;if(!i)throw new Error("No selector provided");const s=document.querySelector(i);if(!s)throw new Error("No element found for selector");return Dn.load({element:s,id:i.replace(".","").replace("!",""),options:{fullScreen:{enable:!1},particles:{color:{value:t.color??"!000000"},links:{color:"random",distance:t.minDistance??120,enable:t.connectParticles??!1},move:{enable:!0,speed:t.speed??.5},number:{value:t.maxParticles??100},size:{value:{min:1,max:t.sizeVariations??3}}},responsive:t.responsive?.map((e=>({maxWidth:e.breakpoint,options:{particles:{color:{value:e.options?.color},links:{distance:e.options?.minDistance,enable:e.options?.connectParticles},number:{value:t.maxParticles},move:{enable:!0,speed:e.options?.speed},size:{value:e.options?.sizeVariations}}}})))}}).then((t=>{e._container=t})),e}destroy(){const t=this._container;t?.destroy()}pauseAnimation(){const t=this._container;t?.pause()}resumeAnimation(){const t=this._container;t?.play()}}const En={particles:{number:{value:400,density:{enable:!0,value_area:800}},color:{value:"#fff"},shape:{type:"circle",stroke:{width:0,color:"#ff0000"},polygon:{nb_sides:5},image:{src:"",width:100,height:100}},opacity:{value:1,random:!1,anim:{enable:!1,speed:2,opacity_min:0,sync:!1}},size:{value:20,random:!1,anim:{enable:!1,speed:20,size_min:0,sync:!1}},line_linked:{enable:!0,distance:100,color:"#fff",opacity:1,width:1},move:{enable:!0,speed:2,direction:"none",random:!1,straight:!1,out_mode:"out",bounce:!1,attract:{enable:!1,rotateX:3e3,rotateY:3e3}}},interactivity:{detect_on:"canvas",events:{onhover:{enable:!0,mode:"grab"},onclick:{enable:!0,mode:"push"},resize:!0},modes:{grab:{distance:100,line_linked:{opacity:1}},bubble:{distance:200,size:80,duration:.4,opacity:1,speed:3},repulse:{distance:200,duration:.4},push:{particles_nb:4},remove:{particles_nb:2}}},retina_detect:!1},{particlesJS:In,pJSDom:Ln,Particles:Fn}=(t=>{t.checkVersion("3.9.0");const{particlesJS:e,pJSDom:i}=(t=>{const e=(e,i)=>{const s=je(En,i);return t.load({id:e,options:{fullScreen:{enable:!1},detectRetina:s.retina_detect,smooth:!0,interactivity:{detectsOn:s.interactivity.detect_on,events:{onHover:{enable:s.interactivity.events.onhover.enable,mode:s.interactivity.events.onhover.mode},onClick:{enable:s.interactivity.events.onclick.enable,mode:s.interactivity.events.onclick.mode},resize:{enable:s.interactivity.events.resize}},modes:{grab:{distance:s.interactivity.modes.grab.distance,links:{opacity:s.interactivity.modes.grab.line_linked.opacity}},bubble:{distance:s.interactivity.modes.bubble.distance,size:s.interactivity.modes.bubble.size,duration:s.interactivity.modes.bubble.duration,opacity:s.interactivity.modes.bubble.opacity,speed:s.interactivity.modes.bubble.speed},repulse:{distance:s.interactivity.modes.repulse.distance,duration:s.interactivity.modes.repulse.duration},push:{quantity:s.interactivity.modes.push.particles_nb},remove:{quantity:s.interactivity.modes.remove.particles_nb}}},particles:{collisions:{enable:s.particles.move.bounce},number:{value:s.particles.number.value,density:{enable:s.particles.number.density.enable,width:s.particles.number.density.value_area}},color:{value:s.particles.color.value},stroke:{width:s.particles.shape.stroke.width,color:{value:s.particles.shape.stroke.color}},shape:{type:s.particles.shape.type,options:{polygon:{sides:s.particles.shape.polygon.nb_sides},image:{src:s.particles.shape.image.src,width:s.particles.shape.image.width,height:s.particles.shape.image.height}}},opacity:{value:s.particles.opacity.random?{min:s.particles.opacity.anim.enable?s.particles.opacity.anim.opacity_min:0,max:s.particles.opacity.value}:s.particles.opacity.value,animation:{enable:s.particles.opacity.anim.enable,speed:s.particles.opacity.anim.speed,sync:s.particles.opacity.anim.sync}},size:{value:s.particles.size.random?{min:s.particles.size.anim.enable?s.particles.size.anim.size_min:0,max:s.particles.size.value}:s.particles.size.value,animation:{enable:s.particles.size.anim.enable,speed:s.particles.size.anim.speed,sync:s.particles.size.anim.sync}},links:{enable:s.particles.line_linked.enable,distance:s.particles.line_linked.distance,color:s.particles.line_linked.color,opacity:s.particles.line_linked.opacity,width:s.particles.line_linked.width},move:{enable:s.particles.move.enable,speed:s.particles.move.speed/3,direction:s.particles.move.direction,random:s.particles.move.random,straight:s.particles.move.straight,outModes:s.particles.move.out_mode,attract:{enable:s.particles.move.attract.enable,rotate:{x:s.particles.move.attract.rotateX,y:s.particles.move.attract.rotateY}}}}}})};return e.load=(e,i,s)=>{t.load({id:e,url:i}).then((t=>{t&&s(t)})).catch((()=>{s(void 0)}))},e.setOnClickHandler=e=>{t.setOnClickHandler(e)},{particlesJS:e,pJSDom:t.dom()}})(t);return window.particlesJS=e,window.pJSDom=i,window.Particles=Tn,{particlesJS:e,pJSDom:i,Particles:Tn}})(Dn);return e})()));
|
|
2
|
+
!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 n in i)("object"==typeof exports?exports:e)[n]=i[n]}}(this,(()=>(()=>{var e,t,i={75(e,t,i){i.d(t,{j:()=>r});var n=i(6900),o=i(9470),s=i(998),a=i(1546);class r{load(e){(0,s.kZ)(e)||(e.position&&(this.position={x:e.position.x??a.td,y:e.position.y??a.td,mode:e.position.mode??n.q.percent}),e.options&&(this.options=(0,o.zw)({},e.options)))}}},496(e,t,i){i.d(t,{y:()=>s});var n=i(998),o=i(4400);class s{constructor(){this.acceleration=9.81,this.enable=!1,this.inverse=!1,this.maxSpeed=50}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),void 0!==e.inverse&&(this.inverse=e.inverse),void 0!==e.maxSpeed&&(this.maxSpeed=(0,o.DT)(e.maxSpeed)))}}},569(e,t,i){var n;i.d(t,{l:()=>n}),function(e){e.any="any",e.dark="dark",e.light="light"}(n||(n={}))},622(e,t,i){var n;i.d(t,{B:()=>n}),function(e){e.configAdded="configAdded",e.containerInit="containerInit",e.particlesSetup="particlesSetup",e.containerStarted="containerStarted",e.containerStopped="containerStopped",e.containerDestroyed="containerDestroyed",e.containerPaused="containerPaused",e.containerPlay="containerPlay",e.containerBuilt="containerBuilt",e.particleAdded="particleAdded",e.particleDestroyed="particleDestroyed",e.particleRemoved="particleRemoved"}(n||(n={}))},682(e,t,i){var n;i.d(t,{g:()=>n}),function(e){e.auto="auto",e.increase="increase",e.decrease="decrease",e.random="random"}(n||(n={}))},952(e,t,i){i.d(t,{e:()=>a});var n=i(3115),o=i(998),s=i(4400);class a extends n.p{constructor(){super(),this.offset=0,this.sync=!0}load(e){super.load(e),(0,o.kZ)(e)||void 0!==e.offset&&(this.offset=(0,s.DT)(e.offset))}}},998(e,t,i){function n(e){return"boolean"==typeof e}function o(e){return"string"==typeof e}function s(e){return"number"==typeof e}function a(e){return"function"==typeof e}function r(e){return"object"==typeof e&&null!==e}function c(e){return Array.isArray(e)}function l(e){return null==e}i.d(t,{Et:()=>s,Gv:()=>r,Kg:()=>o,Lm:()=>n,Tn:()=>a,cy:()=>c,kZ:()=>l})},1048(e,t,i){i.d(t,{M:()=>o});var n=i(998);class o{constructor(){this.enable=!1,this.width=1920,this.height=1080}load(e){if((0,n.kZ)(e))return;void 0!==e.enable&&(this.enable=e.enable);const t=e.width;void 0!==t&&(this.width=t);const i=e.height;void 0!==i&&(this.height=i)}}},1176(e,t,i){var n;i.d(t,{Y:()=>n}),function(e){e.bounce="bounce",e.none="none",e.out="out",e.destroy="destroy",e.split="split"}(n||(n={}))},1190(e,t,i){i.d(t,{V:()=>s});var n=i(1510),o=i(998);class s{constructor(){this.color=new n.O,this.color.value="",this.image="",this.position="",this.repeat="",this.size="",this.opacity=1}load(e){(0,o.kZ)(e)||(void 0!==e.color&&(this.color=n.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))}}},1273(e,t,i){i.d(t,{j:()=>s});var n=i(1176),o=i(998);class s{constructor(){this.default=n.Y.out}load(e){(0,o.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)}}},1510(e,t,i){i.d(t,{O:()=>o});var n=i(998);class o{constructor(){this.value=""}static create(e,t){const i=new o;return i.load(e),void 0!==t&&((0,n.Kg)(t)||(0,n.cy)(t)?i.load({value:t}):i.load(t)),i}load(e){(0,n.kZ)(e)||(0,n.kZ)(e.value)||(this.value=e.value)}}},1546(e,t,i){i.d(t,{$G:()=>W,$O:()=>U,$_:()=>G,$v:()=>re,$x:()=>F,BF:()=>Ce,BW:()=>w,Bp:()=>d,DG:()=>u,DN:()=>se,D_:()=>Re,Dv:()=>Te,Eo:()=>he,FS:()=>Y,Fl:()=>Le,G3:()=>h,GW:()=>j,IU:()=>Me,Ie:()=>$,JC:()=>ie,K3:()=>ze,KZ:()=>ee,Kw:()=>T,L1:()=>B,LD:()=>Pe,M1:()=>me,MX:()=>m,N5:()=>pe,NF:()=>p,Nu:()=>Ae,Nx:()=>ae,PZ:()=>ce,Pg:()=>I,R1:()=>M,RF:()=>O,RV:()=>X,Rb:()=>c,Rh:()=>ge,Rq:()=>N,TL:()=>te,U0:()=>H,Ug:()=>b,WH:()=>ue,X$:()=>D,X_:()=>fe,Xu:()=>y,Z0:()=>a,Zp:()=>A,a5:()=>f,aE:()=>Ve,aZ:()=>S,bo:()=>g,ce:()=>P,dm:()=>R,dv:()=>de,eb:()=>n,eu:()=>Z,gd:()=>k,hB:()=>V,hK:()=>Ge,hv:()=>Q,i8:()=>oe,iU:()=>Ee,jn:()=>Ze,l:()=>ve,lA:()=>Se,mR:()=>x,ms:()=>o,nK:()=>v,nq:()=>xe,oi:()=>C,ou:()=>be,pH:()=>De,rq:()=>_,s7:()=>l,sf:()=>r,tA:()=>_e,tR:()=>Be,td:()=>Oe,un:()=>ye,vF:()=>ne,vS:()=>L,vd:()=>Fe,vo:()=>s,w2:()=>K,wM:()=>we,xH:()=>le,xd:()=>E,yx:()=>q,z$:()=>z,z9:()=>ke,zg:()=>Ie,zs:()=>J});const n="generated",o="pointerdown",s="pointerup",a="pointerleave",r="pointerout",c="pointermove",l="touchstart",d="touchend",u="touchmove",h="touchcancel",p="resize",v="visibilitychange",f=100,m=.5,y=1e3,g={x:0,y:0,z:0},b={a:1,b:0,c:0,d:1},x="random",w="mid",k=2,M=Math.PI*k,z=60,S=1,P="true",D="false",O="canvas",_=0,R=2,T=4,E=1,F=1,A=1,I=4,V=1,C=255,L=360,Z=100,G=100,B=0,q=0,H=60,$=0,W=.25,N=m+W,j=0,J=1,K=0,U=0,X=1,Q=1,Y=1,ee=1,te=0,ie=1,ne=0,oe=120,se=0,ae=0,re=1e4,ce=0,le=1,de=0,ue=1,he=1,pe=0,ve=1,fe=0,me=0,ye=-W,ge=1.5,be=0,xe=1,we=0,ke=0,Me=0,ze=1,Se=1,Pe=1,De=500,Oe=50,_e=0,Re=1,Te=0,Ee=1,Fe=0,Ae=3,Ie=6,Ve=1,Ce=1,Le=0,Ze=0,Ge=0,Be=0},1602(e,t,i){i.d(t,{k:()=>o});var n=i(998);class o{constructor(){this.enable=!1,this.force=2,this.smooth=10}load(e){(0,n.kZ)(e)||(void 0!==e.enable&&(this.enable=e.enable),void 0!==e.force&&(this.force=e.force),void 0!==e.smooth&&(this.smooth=e.smooth))}}},1896(e,t,i){i.d(t,{Z:()=>o,y:()=>s});var n=i(5343);function o(e,...t){for(const i of t)e.load(i)}function s(e,t,...i){const s=new n.U(e,t);return o(s,...i),s}},1976(e,t,i){i.d(t,{G:()=>s});var n=i(7277),o=i(998);class s{constructor(){this.selectors=[],this.enable=!1,this.mode=[],this.type=n.Q.circle}load(e){(0,o.kZ)(e)||(void 0!==e.selectors&&(this.selectors=e.selectors),void 0!==e.enable&&(this.enable=e.enable),void 0!==e.mode&&(this.mode=e.mode),void 0!==e.type&&(this.type=e.type))}}},1989(e,t,i){i.d(t,{b:()=>n});class n{constructor(e,t){this.position=e,this.particle=t}}},2091(e,t,i){var n;i.d(t,{v:()=>n}),function(e){e.bottom="bottom",e.left="left",e.right="right",e.top="top"}(n||(n={}))},2141(e,t,i){i.d(t,{h:()=>s});var n=i(998),o=i(4400);class s{constructor(){this.offset=0,this.value=90}load(e){(0,n.kZ)(e)||(void 0!==e.offset&&(this.offset=(0,o.DT)(e.offset)),void 0!==e.value&&(this.value=(0,o.DT)(e.value)))}}},2207(e,t,i){i.d(t,{L:()=>s});var n=i(1602),o=i(998);class s{constructor(){this.enable=!1,this.mode=[],this.parallax=new n.k}load(e){(0,o.kZ)(e)||(void 0!==e.enable&&(this.enable=e.enable),void 0!==e.mode&&(this.mode=e.mode),this.parallax.load(e.parallax))}}},2796(e,t,i){i.d(t,{F:()=>o});var n=i(5121);class o extends n.PV{constructor(){super(),this.value=1}}},2903(e,t,i){i.d(t,{R:()=>s});var n=i(998),o=i(4400);class s{constructor(){this.distance=200,this.enable=!1,this.rotate={x:3e3,y:3e3}}load(e){if(!(0,n.kZ)(e)&&(void 0!==e.distance&&(this.distance=(0,o.DT)(e.distance)),void 0!==e.enable&&(this.enable=e.enable),e.rotate)){const t=e.rotate.x;void 0!==t&&(this.rotate.x=t);const i=e.rotate.y;void 0!==i&&(this.rotate.y=i)}}}},3048(e,t,i){i.d(t,{i:()=>s});var n=i(952),o=i(998);class s{constructor(){this.h=new n.e,this.s=new n.e,this.l=new n.e}load(e){(0,o.kZ)(e)||(this.h.load(e.h),this.s.load(e.s),this.l.load(e.l))}}},3083(e,t,i){i.d(t,{t:()=>a});var n=i(6896),o=i(998),s=i(4400);class a{constructor(){this.width=0}load(e){(0,o.kZ)(e)||(void 0!==e.color&&(this.color=n.A.create(this.color,e.color)),void 0!==e.width&&(this.width=(0,s.DT)(e.width)),void 0!==e.opacity&&(this.opacity=(0,s.DT)(e.opacity)))}}},3115(e,t,i){i.d(t,{Q:()=>c,p:()=>r});var n=i(682),o=i(7925),s=i(998),a=i(4400);class r{constructor(){this.count=0,this.enable=!1,this.speed=1,this.decay=0,this.delay=0,this.sync=!1}load(e){(0,s.kZ)(e)||(void 0!==e.count&&(this.count=(0,a.DT)(e.count)),void 0!==e.enable&&(this.enable=e.enable),void 0!==e.speed&&(this.speed=(0,a.DT)(e.speed)),void 0!==e.decay&&(this.decay=(0,a.DT)(e.decay)),void 0!==e.delay&&(this.delay=(0,a.DT)(e.delay)),void 0!==e.sync&&(this.sync=e.sync))}}class c extends r{constructor(){super(),this.mode=n.g.auto,this.startValue=o.S.random}load(e){super.load(e),(0,s.kZ)(e)||(void 0!==e.mode&&(this.mode=e.mode),void 0!==e.startValue&&(this.startValue=e.startValue))}}},3618(e,t,i){i.d(t,{IU:()=>l,KG:()=>p,Md:()=>c,Sn:()=>r,V6:()=>a,VG:()=>f,Wb:()=>y,e_:()=>m,gF:()=>v,k:()=>u,l7:()=>s,p0:()=>d,yx:()=>g,z5:()=>h});var n=i(1546),o=i(5158);function s(e,t,i){t.clearDraw&&t.clearDraw(e,i)}function a(e,t,i){e.beginPath(),e.moveTo(t.x,t.y),e.lineTo(i.x,i.y),e.closePath()}function r(e,t,i){e.fillStyle=i??"rgba(0,0,0,0)",e.fillRect(n.bo.x,n.bo.y,t.width,t.height)}function c(e,t,i,o){i&&(e.globalAlpha=o,e.drawImage(i,n.bo.x,n.bo.y,t.width,t.height),e.globalAlpha=1)}function l(e,t){e.clearRect(n.bo.x,n.bo.y,t.width,t.height)}function d(e){const{container:t,context:i,particle:o,delta:s,colorStyles:a,radius:r,opacity:c,transform:l}=e,d=o.getPosition(),m=o.getAngle(),y=Math.sin(m),g=Math.cos(m),b=o.isRotating,x={a:g*(l.a??n.Ug.a),b:b?y*(l.b??n.D_):l.b??n.Ug.b,c:b?-y*(l.c??n.D_):l.c??n.Ug.c,d:g*(l.d??n.Ug.d)};i.setTransform(x.a,x.b,x.c,x.d,d.x,d.y),a.fill&&(i.fillStyle=a.fill);const w=o.strokeWidth??n.Dv;i.lineWidth=w,a.stroke&&(i.strokeStyle=a.stroke);const k={container:t,context:i,particle:o,radius:r,opacity:c,delta:s,transformData:x,strokeWidth:w};h(k),f(k),p(k),v(k),u(k),i.resetTransform()}function u(e){const{container:t,context:i,particle:o,radius:s,opacity:a,strokeWidth:r,delta:c,transformData:l}=e;if(!o.effect)return;const d=t.effectDrawers.get(o.effect),u=d?.drawAfter;u&&u({context:i,particle:o,radius:s,opacity:a,delta:c,pixelRatio:t.retina.pixelRatio,fill:o.shapeFill,stroke:r>n.Dv||!o.shapeFill,transformData:{...l}})}function h(e){const{container:t,context:i,particle:o,radius:s,opacity:a,strokeWidth:r,delta:c,transformData:l}=e;if(!o.effect)return;const d=t.effectDrawers.get(o.effect);d?.drawBefore&&d.drawBefore({context:i,particle:o,radius:s,opacity:a,delta:c,pixelRatio:t.retina.pixelRatio,fill:o.shapeFill,stroke:r>n.Dv||!o.shapeFill,transformData:{...l}})}function p(e){const{container:t,context:i,particle:o,radius:s,opacity:a,delta:r,strokeWidth:c,transformData:l}=e;if(!o.shape)return;const d=t.shapeDrawers.get(o.shape);d&&(i.beginPath(),d.draw({context:i,particle:o,radius:s,opacity:a,delta:r,pixelRatio:t.retina.pixelRatio,fill:o.shapeFill,stroke:c>n.Dv||!o.shapeFill,transformData:{...l}}),o.shapeClose&&i.closePath(),c>n.Dv&&i.stroke(),o.shapeFill&&i.fill())}function v(e){const{container:t,context:i,particle:o,radius:s,opacity:a,strokeWidth:r,delta:c,transformData:l}=e;if(!o.shape)return;const d=t.shapeDrawers.get(o.shape);d?.afterDraw&&d.afterDraw({context:i,particle:o,radius:s,opacity:a,delta:c,pixelRatio:t.retina.pixelRatio,fill:o.shapeFill,stroke:r>n.Dv||!o.shapeFill,transformData:{...l}})}function f(e){const{container:t,context:i,particle:o,radius:s,opacity:a,strokeWidth:r,delta:c,transformData:l}=e;if(!o.shape)return;const d=t.shapeDrawers.get(o.shape);d?.beforeDraw&&d.beforeDraw({context:i,particle:o,radius:s,opacity:a,delta:c,pixelRatio:t.retina.pixelRatio,fill:o.shapeFill,stroke:r>n.Dv||!o.shapeFill,transformData:{...l}})}function m(e,t,i){t.draw&&t.draw(e,i)}function y(e,t,i,n){t.drawParticle&&t.drawParticle(e,i,n)}function g(e,t,i){return{h:e.h,s:e.s,l:e.l+(t===o.H.darken?-n.iU:n.iU)*i}}},3893(e,t,i){i.d(t,{r:()=>o});var n=i(998);class o{constructor(){this.enable=!1,this.mode=[]}load(e){(0,n.kZ)(e)||(void 0!==e.enable&&(this.enable=e.enable),void 0!==e.mode&&(this.mode=e.mode))}}},4337(e,t,i){i.d(t,{Z:()=>s});var n=i(6900),o=i(998);class s{constructor(){this.x=50,this.y=50,this.mode=n.q.percent,this.radius=0}load(e){(0,o.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))}}},4376(e,t,i){i.d(t,{y:()=>p});var n=i(6657),o=i(998),s=i(2141),a=i(2903),r=i(4337),c=i(496),l=i(9963),d=i(1273),u=i(5241),h=i(4400);class p{constructor(){this.angle=new s.h,this.attract=new a.R,this.center=new r.Z,this.decay=0,this.distance={},this.direction=n.F.none,this.drift=0,this.enable=!1,this.gravity=new c.y,this.path=new l.v,this.outModes=new d.j,this.random=!1,this.size=!1,this.speed=2,this.spin=new u.t,this.straight=!1,this.vibrate=!1,this.warp=!1}load(e){if((0,o.kZ)(e))return;this.angle.load((0,o.Et)(e.angle)?{value:e.angle}:e.angle),this.attract.load(e.attract),this.center.load(e.center),void 0!==e.decay&&(this.decay=(0,h.DT)(e.decay)),void 0!==e.direction&&(this.direction=e.direction),void 0!==e.distance&&(this.distance=(0,o.Et)(e.distance)?{horizontal:e.distance,vertical:e.distance}:{...e.distance}),void 0!==e.drift&&(this.drift=(0,h.DT)(e.drift)),void 0!==e.enable&&(this.enable=e.enable),this.gravity.load(e.gravity);const t=e.outModes;void 0!==t&&((0,o.Gv)(t)?this.outModes.load(t):this.outModes.load({default:t})),this.path.load(e.path),void 0!==e.random&&(this.random=e.random),void 0!==e.size&&(this.size=e.size),void 0!==e.speed&&(this.speed=(0,h.DT)(e.speed)),this.spin.load(e.spin),void 0!==e.straight&&(this.straight=e.straight),void 0!==e.vibrate&&(this.vibrate=e.vibrate),void 0!==e.warp&&(this.warp=e.warp)}}},4400(e,t,i){i.d(t,{$m:()=>D,AD:()=>p,DT:()=>k,G0:()=>u,JY:()=>P,M3:()=>A,Mh:()=>R,Nx:()=>E,OE:()=>d,OW:()=>O,Sg:()=>x,VG:()=>b,W9:()=>w,Yf:()=>z,e4:()=>h,eh:()=>_,i0:()=>v,jh:()=>y,l1:()=>T,pu:()=>S,px:()=>f,qE:()=>m,qM:()=>F,vE:()=>g,vr:()=>M});var n=i(6657),o=i(1546),s=i(7023),a=i(998);const r=Math.PI/180;let c=Math.random;const l={nextFrame:e=>requestAnimationFrame(e),cancel:e=>{cancelAnimationFrame(e)}};function d(e=Math.random){c=e}function u(){return m(c(),0,1-Number.EPSILON)}function h(e,t){return u()*(t-e)+e}function p(e,t){l.nextFrame=t=>e(t),l.cancel=e=>{t(e)}}function v(e){return l.nextFrame(e)}function f(e){l.cancel(e)}function m(e,t,i){return Math.min(Math.max(e,t),i)}function y(e,t,i,n){return Math.floor((e*i+t*n)/(i+n))}function g(e){const t=w(e);let i=x(e);return t===i&&(i=0),h(i,t)}function b(e){return(0,a.Et)(e)?e:g(e)}function x(e){return(0,a.Et)(e)?e:e.min}function w(e){return(0,a.Et)(e)?e:e.max}function k(e,t){if(e===t||void 0===t&&(0,a.Et)(e))return e;const i=x(e),n=w(e);return void 0!==t?{min:Math.min(i,t),max:Math.max(n,t)}:k(i,n)}function M(e,t){const i=e.x-t.x,n=e.y-t.y;return{dx:i,dy:n,distance:Math.sqrt(i**2+n**2)}}function z(e,t){return M(e,t).distance}function S(e){return e*r}function P(e,t,i){if((0,a.Et)(e))return S(e);switch(e){case n.F.top:return-Math.PI*o.MX;case n.F.topRight:return-Math.PI*o.$G;case n.F.right:return o.Ie;case n.F.bottomRight:return Math.PI*o.$G;case n.F.bottom:return Math.PI*o.MX;case n.F.bottomLeft:return Math.PI*o.Rq;case n.F.left:return Math.PI;case n.F.topLeft:return-Math.PI*o.Rq;case n.F.inside:return Math.atan2(i.y-t.y,i.x-t.x);case n.F.outside:return Math.atan2(t.y-i.y,t.x-i.x);default:return u()*o.R1}}function D(e){const t=s.M.origin;return t.length=1,t.angle=e,t}function O(e,t,i,n){return s.M.create(e.x*(i-n)/(i+n)+t.x*o.gd*n/(i+n),e.y)}function _(e){return void 0!==e.position?.x&&void 0!==e.position.y?{x:e.position.x*e.size.width/o.a5,y:e.position.y*e.size.height/o.a5}:void 0}function R(e){return{x:(e.position?.x??u()*o.a5)*e.size.width/o.a5,y:(e.position?.y??u()*o.a5)*e.size.height/o.a5}}function T(e){const t={x:void 0!==e.position?.x?b(e.position.x):void 0,y:void 0!==e.position?.y?b(e.position.y):void 0};return R({size:e.size,position:t})}function E(e){return{x:e.position?.x??u()*e.size.width,y:e.position?.y??u()*e.size.height}}function F(e){const t={x:void 0!==e.position?.x?b(e.position.x):void 0,y:void 0!==e.position?.y?b(e.position.y):void 0};return E({size:e.size,position:t})}function A(e){return e?e.endsWith("%")?parseFloat(e)/o.a5:parseFloat(e):1}},4524(e,t,i){i.d(t,{I:()=>a});var n=i(9732),o=i(3115),s=i(998);class a extends o.Q{constructor(){super(),this.destroy=n.V.none,this.speed=2}load(e){super.load(e),(0,s.kZ)(e)||void 0!==e.destroy&&(this.destroy=e.destroy)}}},4699(e,t,i){i.d(t,{f:()=>s});var n=i(569),o=i(998);class s{constructor(){this.auto=!1,this.mode=n.l.any,this.value=!1}load(e){(0,o.kZ)(e)||(void 0!==e.auto&&(this.auto=e.auto),void 0!==e.mode&&(this.mode=e.mode),void 0!==e.value&&(this.value=e.value))}}},4723(e,t,i){var n;i.d(t,{e:()=>n}),function(e){e.external="external",e.particles="particles"}(n||(n={}))},4764(e,t,i){var n;i.d(t,{H:()=>n}),function(e){e.increasing="increasing",e.decreasing="decreasing"}(n||(n={}))},4805(e,t,i){i.d(t,{J:()=>f});var n=i(9470),o=i(998),s=i(1190),a=i(6440),r=i(5368),c=i(75),l=i(8493),d=i(9442),u=i(9552),h=i(569),p=i(1896),v=i(4400);class f{constructor(e,t){this._findDefaultTheme=e=>this.themes.find((t=>t.default.value&&t.default.mode===e))??this.themes.find((e=>e.default.value&&e.default.mode===h.l.any)),this._importPreset=e=>{this.load(this._engine.getPreset(e))},this._engine=e,this._container=t,this.autoPlay=!0,this.background=new s.V,this.clear=!0,this.defaultThemes={},this.delay=0,this.fullScreen=new a.m,this.detectRetina=!0,this.duration=0,this.fpsLimit=120,this.hdr=!0,this.interactivity=new r.k(e,t),this.manualParticles=[],this.particles=(0,p.y)(this._engine,this._container),this.pauseOnBlur=!0,this.pauseOnOutsideViewport=!0,this.responsive=[],this.smooth=!1,this.style={},this.themes=[],this.zLayers=100}load(e){if((0,o.kZ)(e))return;void 0!==e.preset&&(0,n.wJ)(e.preset,(e=>{this._importPreset(e)})),void 0!==e.autoPlay&&(this.autoPlay=e.autoPlay),void 0!==e.clear&&(this.clear=e.clear),void 0!==e.key&&(this.key=e.key),void 0!==e.name&&(this.name=e.name),void 0!==e.delay&&(this.delay=(0,v.DT)(e.delay));const t=e.detectRetina;void 0!==t&&(this.detectRetina=t),void 0!==e.duration&&(this.duration=(0,v.DT)(e.duration));const 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);const s=e.fullScreen;(0,o.Lm)(s)?this.fullScreen.enable=s:this.fullScreen.load(s),this.interactivity.load(e.interactivity),e.manualParticles&&(this.manualParticles=e.manualParticles.map((e=>{const t=new c.j;return t.load(e),t}))),this.particles.load(e.particles),this.style=(0,n.zw)(this.style,e.style),this._engine.loadOptions(this,e),void 0!==e.smooth&&(this.smooth=e.smooth);const a=this._engine.interactors.get(this._container);if(a)for(const t of a)t.loadOptions&&t.loadOptions(this,e);if(void 0!==e.responsive)for(const t of e.responsive){const e=new l.F;e.load(t),this.responsive.push(e)}if(this.responsive.sort(((e,t)=>e.maxWidth-t.maxWidth)),void 0!==e.themes)for(const t of e.themes){const e=this.themes.find((e=>e.name===t.name));if(e)e.load(t);else{const e=new u.S;e.load(t),this.themes.push(e)}}this.defaultThemes.dark=this._findDefaultTheme(h.l.dark)?.name,this.defaultThemes.light=this._findDefaultTheme(h.l.light)?.name}setResponsive(e,t,i){this.load(i);const n=this.responsive.find((i=>i.mode===d.A.screen?i.maxWidth>screen.availWidth:i.maxWidth*t>e));return this.load(n?.options),n?.maxWidth}setTheme(e){if(e){const t=this.themes.find((t=>t.name===e));t&&this.load(t.options)}else{const e=(0,n.lV)("(prefers-color-scheme: dark)"),t=e?.matches,i=this._findDefaultTheme(t?h.l.dark:h.l.light);i&&this.load(i.options)}}}},4975(e,t,i){i.d(t,{BN:()=>l,EY:()=>k,Jv:()=>_,K6:()=>p,Ko:()=>O,LC:()=>w,OH:()=>g,O_:()=>S,PG:()=>z,R5:()=>h,YL:()=>m,_h:()=>M,ay:()=>y,eg:()=>f,mK:()=>u,pz:()=>P,qe:()=>d,xx:()=>b,zI:()=>v});var n=i(4400),o=i(1546),s=i(998),a=i(4764),r=i(9470);function c(e,t){if(t)for(const i of e.colorManagers.values())if(i.accepts(t))return i.parseString(t)}function l(e,t,i,n=!0){if(!t)return;const o=(0,s.Kg)(t)?{value:t}:t;if((0,s.Kg)(o.value))return d(e,o.value,i,n);if((0,s.cy)(o.value)){const t=(0,r.Vh)(o.value,i,n);if(!t)return;return l(e,{value:t})}for(const t of e.colorManagers.values()){const e=t.handleRangeColor(o);if(e)return e}}function d(e,t,i,n=!0){if(!t)return;const a=(0,s.Kg)(t)?{value:t}:t;if((0,s.Kg)(a.value))return a.value===o.mR?g():f(e,a.value);if((0,s.cy)(a.value)){const t=(0,r.Vh)(a.value,i,n);if(!t)return;return d(e,{value:t})}for(const t of e.colorManagers.values()){const e=t.handleColor(a);if(e)return e}}function u(e,t,i,n=!0){const o=d(e,t,i,n);return o?p(o):void 0}function h(e,t,i,n=!0){const o=l(e,t,i,n);return o?p(o):void 0}function p(e){const t=e.r/o.oi,i=e.g/o.oi,n=e.b/o.oi,s=Math.max(t,i,n),a=Math.min(t,i,n),r={h:o.L1,l:(s+a)*o.MX,s:o.yx};return s!==a&&(r.s=r.l<o.MX?(s-a)/(s+a):(s-a)/(o.gd-s-a),r.h=t===s?(i-n)/(s-a):i===s?o.gd+(n-t)/(s-a):o.gd*o.gd+(t-i)/(s-a)),r.l*=o.$_,r.s*=o.eu,r.h*=o.U0,r.h<o.L1&&(r.h+=o.vS),r.h>=o.vS&&(r.h-=o.vS),r}function v(e,t){return c(e,t)?.a}function f(e,t){return c(e,t)}function m(e){const t=(e.h%o.vS+o.vS)%o.vS,i=Math.max(o.yx,Math.min(o.eu,e.s)),n=Math.max(o.vd,Math.min(o.$_,e.l)),s=t/o.vS,a=i/o.eu,r=n/o.$_;if(i===o.yx){const e=Math.round(r*o.oi);return{r:e,g:e,b:e}}const c=(e,t,i)=>{if(i<0&&i++,i>1&&i--,i*o.zg<1)return e+(t-e)*o.zg*i;if(i*o.gd<1)return t;if(i*o.Nu<1*o.gd){return e+(t-e)*(o.gd/o.Nu-i)*o.zg}return e},l=r<o.MX?r*(o.aE+a):r+a-r*a,d=o.gd*r-l,u=o.BF/o.Nu,h=Math.min(o.oi,o.oi*c(d,l,s+u)),p=Math.min(o.oi,o.oi*c(d,l,s)),v=Math.min(o.oi,o.oi*c(d,l,s-u));return{r:Math.round(h),g:Math.round(p),b:Math.round(v)}}function y(e){const t=m(e);return{a:e.a,b:t.b,g:t.g,r:t.r}}function g(e){const t=e??o.Fl,i=o.oi+o.D_,s=()=>Math.floor((0,n.e4)(t,i));return{b:s(),g:s(),r:s()}}function b(e,t,i){return t?x(e,i):function(e,t){return`rgba(${e.r.toString()}, ${e.g.toString()}, ${e.b.toString()}, ${(t??o.hv).toString()})`}(e,i)}function x(e,t){return`color(display-p3 ${(e.r/o.oi).toString()} ${(e.g/o.oi).toString()} ${(e.b/o.oi).toString()} / ${(t??o.hv).toString()})`}function w(e,t,i){return t?function(e,t){return x(m(e),t)}(e,i):function(e,t){return`hsla(${e.h.toString()}, ${e.s.toString()}%, ${e.l.toString()}%, ${(t??o.hv).toString()})`}(e,i)}function k(e,t,i,o){let s=e,a=t;return Object.hasOwn(s,"r")||(s=m(e)),Object.hasOwn(a,"r")||(a=m(t)),{b:(0,n.jh)(s.b,a.b,i,o),g:(0,n.jh)(s.g,a.g,i,o),r:(0,n.jh)(s.r,a.r,i,o)}}function M(e,t,i){if(i===o.mR)return g();if(i!==o.BW)return i;{const i=e.getFillColor()??e.getStrokeColor(),n=t?.getFillColor()??t?.getStrokeColor();if(i&&n&&t)return k(i,n,e.getRadius(),t.getRadius());{const e=i??n;if(e)return m(e)}}}function z(e,t,i,n){const a=(0,s.Kg)(t)?t:t.value;return a===o.mR?n?l(e,{value:a}):i?o.mR:o.BW:a===o.BW?o.BW:l(e,{value:a})}function S(e){return void 0!==e?{h:e.h.value,s:e.s.value,l:e.l.value}:void 0}function P(e,t,i){const n={h:{enable:!1,value:e.h},s:{enable:!1,value:e.s},l:{enable:!1,value:e.l}};return t&&(D(n.h,t.h,i),D(n.s,t.s,i),D(n.l,t.l,i)),n}function D(e,t,i){e.enable=t.enable,e.enable?(e.velocity=(0,n.VG)(t.speed)/o.a5*i,e.decay=o.WH-(0,n.VG)(t.decay),e.status=a.H.increasing,e.loops=o.hK,e.maxLoops=(0,n.VG)(t.count),e.time=o.tR,e.delayTime=(0,n.VG)(t.delay)*o.Xu,t.sync||(e.velocity*=(0,n.G0)(),e.value*=(0,n.G0)()),e.initialValue=e.value,e.offset=(0,n.DT)(t.offset)):e.velocity=o.jn}function O(e,t,i,o){if(!e.enable||(e.maxLoops??0)>0&&(e.loops??0)>(e.maxLoops??0))return;if(e.time??=0,(e.delayTime??0)>0&&e.time<(e.delayTime??0)&&(e.time+=o.value),(e.delayTime??0)>0&&e.time<(e.delayTime??0))return;const s=e.offset?(0,n.vE)(e.offset):0,r=(e.velocity??0)*o.factor+3.6*s,c=e.decay??1,l=(0,n.W9)(t),d=(0,n.Sg)(t);if(i&&e.status!==a.H.increasing){e.value-=r;const t=0;e.value<t&&(e.loops??=0,e.loops++,e.status=a.H.increasing)}else e.value+=r,e.value>l&&(e.loops??=0,e.loops++,i?e.status=a.H.decreasing:e.value-=l);e.velocity&&1!==c&&(e.velocity*=c),e.value=(0,n.qE)(e.value,d,l)}function _(e,t){if(!e)return;const{h:i,s:n,l:s}=e,a={h:{min:o.L1,max:o.vS},s:{min:o.yx,max:o.eu},l:{min:o.vd,max:o.$_}};O(i,a.h,!1,t),O(n,a.s,!0,t),O(s,a.l,!0,t)}},5121(e,t,i){i.d(t,{AI:()=>c,Jm:()=>r,PV:()=>a});var n=i(3115),o=i(998),s=i(4400);class a{constructor(){this.value=0}load(e){(0,o.kZ)(e)||(0,o.kZ)(e.value)||(this.value=(0,s.DT)(e.value))}}class r extends a{constructor(){super(),this.animation=new n.p}load(e){if(super.load(e),(0,o.kZ)(e))return;const t=e.animation;void 0!==t&&this.animation.load(t)}}class c extends r{constructor(){super(),this.animation=new n.Q}load(e){super.load(e)}}},5158(e,t,i){var n;i.d(t,{H:()=>n}),function(e){e.darken="darken",e.enlighten="enlighten"}(n||(n={}))},5189(e,t,i){var n;i.d(t,{dg:()=>a,jl:()=>r,M_:()=>c}),function(e){e.circle="circle",e.rectangle="rectangle"}(n||(n={}));var o=i(4400),s=i(1546);class a{constructor(e,t,i){this.position={x:e,y:t},this.type=i}}class r extends a{constructor(e,t,i){super(e,t,n.circle),this.radius=i}contains(e){return(0,o.Yf)(e,this.position)<=this.radius}intersects(e){const t=this.position,i=e.position,o=Math.abs(i.x-t.x),a=Math.abs(i.y-t.y),l=this.radius;if(e instanceof r||e.type===n.circle){return l+e.radius>Math.sqrt(o**s.dm+a**s.dm)}if(e instanceof c||e.type===n.rectangle){const t=e,{width:i,height:n}=t.size;return Math.pow(o-i,s.dm)+Math.pow(a-n,s.dm)<=l**s.dm||o<=l+i&&a<=l+n||o<=i||a<=n}return!1}}class c extends a{constructor(e,t,i,o){super(e,t,n.rectangle),this.size={height:o,width:i}}contains(e){const t=this.size.width,i=this.size.height,n=this.position;return e.x>=n.x&&e.x<=n.x+t&&e.y>=n.y&&e.y<=n.y+i}intersects(e){if(e instanceof r)return e.intersects(this);const t=this.size.width,i=this.size.height,n=this.position,o=e.position,s=e instanceof c?e.size:{width:0,height:0},a=s.width,l=s.height;return o.x<n.x+t&&o.x+a>n.x&&o.y<n.y+i&&o.y+l>n.y}}},5241(e,t,i){i.d(t,{t:()=>a});var n=i(9470),o=i(998),s=i(4400);class a{constructor(){this.acceleration=0,this.enable=!1}load(e){(0,o.kZ)(e)||(void 0!==e.acceleration&&(this.acceleration=(0,s.DT)(e.acceleration)),void 0!==e.enable&&(this.enable=e.enable),e.position&&(this.position=(0,n.zw)({},e.position)))}}},5343(e,t,i){i.d(t,{U:()=>f});var n=i(9470),o=i(6896),s=i(998);class a{constructor(){this.close=!0,this.fill=!0,this.options={},this.type=[]}load(e){if((0,s.kZ)(e))return;const t=e.options;if(void 0!==t)for(const e in t){const i=t[e];i&&(this.options[e]=(0,n.zw)(this.options[e]??{},i))}void 0!==e.close&&(this.close=e.close),void 0!==e.fill&&(this.fill=e.fill),void 0!==e.type&&(this.type=e.type)}}var r=i(4376),c=i(7028),l=i(6899),d=i(7663),u=i(6960),h=i(9384),p=i(3083),v=i(5758);class f{constructor(e,t){this._engine=e,this._container=t,this.bounce=new l.w,this.color=new o.A,this.color.value="#fff",this.effect=new a,this.groups={},this.move=new r.y,this.number=new d.N,this.opacity=new c.Y,this.reduceDuplicates=!1,this.shape=new u.y,this.size=new h.o,this.stroke=new p.t,this.zIndex=new v.P}load(e){if((0,s.kZ)(e))return;if(void 0!==e.groups)for(const t of Object.keys(e.groups)){if(!Object.hasOwn(e.groups,t))continue;const i=e.groups[t];void 0!==i&&(this.groups[t]=(0,n.zw)(this.groups[t]??{},i))}void 0!==e.reduceDuplicates&&(this.reduceDuplicates=e.reduceDuplicates),this.bounce.load(e.bounce),this.color.load(o.A.create(this.color,e.color)),this.effect.load(e.effect),this.move.load(e.move),this.number.load(e.number),this.opacity.load(e.opacity),this.shape.load(e.shape),this.size.load(e.size),this.zIndex.load(e.zIndex),void 0!==e.interactivity&&(this.interactivity=(0,n.zw)({},e.interactivity));const t=e.stroke;if(t&&(this.stroke=(0,n.wJ)(t,(e=>{const t=new p.t;return t.load(e),t}))),this._container){const t=this._engine.updaters.get(this._container);if(t)for(const i of t)i.loadOptions&&i.loadOptions(this,e);const i=this._engine.interactors.get(this._container);if(i)for(const t of i)t.loadParticlesOptions&&t.loadParticlesOptions(this,e)}}}},5368(e,t,i){i.d(t,{k:()=>r});var n=i(8944),o=i(8980),s=i(9828),a=i(998);class r{constructor(e,t){this.detectsOn=o.h.window,this.events=new n.s,this.modes=new s.d(e,t)}load(e){if((0,a.kZ)(e))return;const t=e.detectsOn;void 0!==t&&(this.detectsOn=t),this.events.load(e.events),this.modes.load(e.modes)}}},5511(e,t,i){var n;i.d(t,{d:()=>n}),function(e){e.delete="delete",e.wait="wait"}(n||(n={}))},5608(e,t,i){var n;i.d(t,{x:()=>n}),function(e){e.normal="normal",e.inside="inside",e.outside="outside"}(n||(n={}))},5758(e,t,i){i.d(t,{P:()=>s});var n=i(5121),o=i(998);class s extends n.PV{constructor(){super(),this.opacityRate=1,this.sizeRate=1,this.velocityRate=1}load(e){super.load(e),(0,o.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))}}},6440(e,t,i){i.d(t,{m:()=>o});var n=i(998);class o{constructor(){this.enable=!0,this.zIndex=0}load(e){(0,n.kZ)(e)||(void 0!==e.enable&&(this.enable=e.enable),void 0!==e.zIndex&&(this.zIndex=e.zIndex))}}},6657(e,t,i){var n;i.d(t,{F:()=>n}),function(e){e.bottom="bottom",e.bottomLeft="bottom-left",e.bottomRight="bottom-right",e.left="left",e.none="none",e.right="right",e.top="top",e.topLeft="top-left",e.topRight="top-right",e.outside="outside",e.inside="inside"}(n||(n={}))},6728(e,t,i){i.d(t,{A:()=>s});var n=i(5511),o=i(998);class s{constructor(){this.mode=n.d.delete,this.value=0}load(e){(0,o.kZ)(e)||(void 0!==e.mode&&(this.mode=e.mode),void 0!==e.value&&(this.value=e.value))}}},6896(e,t,i){i.d(t,{A:()=>a});var n=i(998),o=i(3048),s=i(1510);class a extends s.O{constructor(){super(),this.animation=new o.i}static create(e,t){const i=new a;return i.load(e),void 0!==t&&((0,n.Kg)(t)||(0,n.cy)(t)?i.load({value:t}):i.load(t)),i}load(e){if(super.load(e),(0,n.kZ)(e))return;const t=e.animation;void 0!==t&&(void 0===t.enable?this.animation.load(e.animation):this.animation.h.load(t))}}},6899(e,t,i){i.d(t,{w:()=>s});var n=i(2796),o=i(998);class s{constructor(){this.horizontal=new n.F,this.vertical=new n.F}load(e){(0,o.kZ)(e)||(this.horizontal.load(e.horizontal),this.vertical.load(e.vertical))}}},6900(e,t,i){var n;i.d(t,{q:()=>n}),function(e){e.precise="precise",e.percent="percent"}(n||(n={}))},6960(e,t,i){i.d(t,{y:()=>s});var n=i(9470),o=i(998);class s{constructor(){this.close=!0,this.fill=!0,this.options={},this.type="circle"}load(e){if((0,o.kZ)(e))return;const t=e.options;if(void 0!==t)for(const e in t){const i=t[e];i&&(this.options[e]=(0,n.zw)(this.options[e]??{},i))}void 0!==e.close&&(this.close=e.close),void 0!==e.fill&&(this.fill=e.fill),void 0!==e.type&&(this.type=e.type)}}},7023(e,t,i){i.d(t,{M:()=>s,p:()=>o});var n=i(1546);class o{constructor(e=n.bo.x,t=n.bo.y,i=n.bo.z){this._updateFromAngle=(e,t)=>{this.x=Math.cos(e)*t,this.y=Math.sin(e)*t},this.x=e,this.y=t,this.z=i}static get origin(){return o.create(n.bo.x,n.bo.y,n.bo.z)}get angle(){return Math.atan2(this.y,this.x)}set angle(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,e.z)}static create(e,t,i){return"number"==typeof e?new o(e,t??n.bo.y,i??n.bo.z):new o(e.x,e.y,Object.hasOwn(e,"z")?e.z:n.bo.z)}add(e){return o.create(this.x+e.x,this.y+e.y,this.z+e.z)}addTo(e){this.x+=e.x,this.y+=e.y,this.z+=e.z}copy(){return o.clone(this)}distanceTo(e){return this.sub(e).length}distanceToSq(e){return this.sub(e).getLengthSq()}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**n.dm+this.y**n.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(){const e=this.length;e!=n.dv&&this.multTo(n.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),n.bo.z)}setTo(e){this.x=e.x,this.y=e.y;const t=e;this.z=t.z?t.z:n.bo.z}sub(e){return o.create(this.x-e.x,this.y-e.y,this.z-e.z)}subFrom(e){this.x-=e.x,this.y-=e.y,this.z-=e.z}}class s extends o{constructor(e=n.bo.x,t=n.bo.y){super(e,t,n.bo.z)}static get origin(){return s.create(n.bo.x,n.bo.y)}static clone(e){return s.create(e.x,e.y)}static create(e,t){return"number"==typeof e?new s(e,t??n.bo.y):new s(e.x,e.y)}}},7028(e,t,i){i.d(t,{Y:()=>a});var n=i(4524),o=i(5121),s=i(998);class a extends o.AI{constructor(){super(),this.animation=new n.I,this.value=1}load(e){if((0,s.kZ)(e))return;super.load(e);const t=e.animation;void 0!==t&&this.animation.load(t)}}},7277(e,t,i){var n;i.d(t,{Q:()=>n}),function(e){e.circle="circle",e.rectangle="rectangle"}(n||(n={}))},7280(e,t,i){i.d(t,{q:()=>a});var n=i(9732),o=i(3115),s=i(998);class a extends o.Q{constructor(){super(),this.destroy=n.V.none,this.speed=5}load(e){super.load(e),(0,s.kZ)(e)||void 0!==e.destroy&&(this.destroy=e.destroy)}}},7452(e,t,i){i.d(t,{B:()=>o,t:()=>s});const n={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 o(e){n.debug=e.debug,n.error=e.error,n.info=e.info,n.log=e.log,n.verbose=e.verbose,n.warning=e.warning}function s(){return n}},7663(e,t,i){i.d(t,{N:()=>a});var n=i(1048),o=i(6728),s=i(998);class a{constructor(){this.density=new n.M,this.limit=new o.A,this.value=0}load(e){(0,s.kZ)(e)||(this.density.load(e.density),this.limit.load(e.limit),void 0!==e.value&&(this.value=e.value))}}},7925(e,t,i){var n;i.d(t,{S:()=>n}),function(e){e.max="max",e.min="min",e.random="random"}(n||(n={}))},8193(e,t,i){i.d(t,{z:()=>o});var n=i(998);class o{constructor(){this.delay=.5,this.enable=!0}load(e){(0,n.kZ)(e)||(void 0!==e.delay&&(this.delay=e.delay),void 0!==e.enable&&(this.enable=e.enable))}}},8493(e,t,i){i.d(t,{F:()=>a});var n=i(9442),o=i(9470),s=i(998);class a{constructor(){this.maxWidth=1/0,this.options={},this.mode=n.A.canvas}load(e){(0,s.kZ)(e)||((0,s.kZ)(e.maxWidth)||(this.maxWidth=e.maxWidth),(0,s.kZ)(e.mode)||(e.mode===n.A.screen?this.mode=n.A.screen:this.mode=n.A.canvas),(0,s.kZ)(e.options)||(this.options=(0,o.zw)({},e.options)))}}},8944(e,t,i){i.d(t,{s:()=>l});var n=i(3893),o=i(1976),s=i(2207),a=i(8193),r=i(9470),c=i(998);class l{constructor(){this.onClick=new n.r,this.onDiv=new o.G,this.onHover=new s.L,this.resize=new a.z}load(e){if((0,c.kZ)(e))return;this.onClick.load(e.onClick);const t=e.onDiv;void 0!==t&&(this.onDiv=(0,r.wJ)(t,(e=>{const t=new o.G;return t.load(e),t}))),this.onHover.load(e.onHover),this.resize.load(e.resize)}}},8980(e,t,i){var n;i.d(t,{h:()=>n}),function(e){e.canvas="canvas",e.parent="parent",e.window="window"}(n||(n={}))},9384(e,t,i){i.d(t,{o:()=>a});var n=i(5121),o=i(7280),s=i(998);class a extends n.AI{constructor(){super(),this.animation=new o.q,this.value=3}load(e){if(super.load(e),(0,s.kZ)(e))return;const t=e.animation;void 0!==t&&this.animation.load(t)}}},9442(e,t,i){var n;i.d(t,{A:()=>n}),function(e){e.screen="screen",e.canvas="canvas"}(n||(n={}))},9470(e,t,i){i.d(t,{AE:()=>z,Al:()=>b,BR:()=>m,E9:()=>C,NV:()=>_,O2:()=>M,S7:()=>O,T5:()=>v,TA:()=>F,Tg:()=>R,Tj:()=>k,U6:()=>D,UC:()=>Z,Vh:()=>w,Xs:()=>I,YC:()=>L,hJ:()=>B,hn:()=>g,iK:()=>P,lV:()=>f,n0:()=>x,pE:()=>T,q8:()=>p,tG:()=>y,td:()=>G,w3:()=>A,wJ:()=>E,zw:()=>S});var n=i(4400),o=i(1546),s=i(998),a=i(682),r=i(4764),c=i(9732),l=i(2091),d=i(6900),u=i(7925),h=i(7023);function p(){return"undefined"!=typeof matchMedia}function v(){return globalThis.document}function f(e){if(p())return matchMedia(e)}function m(e){if("undefined"!=typeof IntersectionObserver)return new IntersectionObserver(e)}function y(e){if("undefined"!=typeof MutationObserver)return new MutationObserver(e)}function g(e,t){return e===t||(0,s.cy)(t)&&t.includes(e)}async function b(e,t){try{await v().fonts.load(`${t??"400"} 36px '${e??"Verdana"}'`)}catch{}}function x(e){return Math.floor((0,n.G0)()*e.length)}function w(e,t,i=!0){return e[void 0!==t&&i?t%e.length:x(e)]}function k(e,t,i,n,o){return M(z(e,n??0),t,i,o)}function M(e,t,i,n){let o=!0;return n&&n!==l.v.bottom||(o=e.top<t.height+i.x),!o||n&&n!==l.v.left||(o=e.right>i.x),!o||n&&n!==l.v.right||(o=e.left<t.width+i.y),!o||n&&n!==l.v.top||(o=e.bottom>i.y),o}function z(e,t){return{bottom:e.y+t,left:e.x-t,right:e.x+t,top:e.y-t}}function S(e,...t){for(const i of t){if(null==i)continue;if(!(0,s.Gv)(i)){e=i;continue}const t=Array.isArray(i);!t||!(0,s.Gv)(e)&&e&&Array.isArray(e)?t||!(0,s.Gv)(e)&&e&&!Array.isArray(e)||(e={}):e=[];for(const t in i){if("__proto__"===t)continue;const n=i[t],o=e;o[t]=(0,s.Gv)(n)&&Array.isArray(n)?n.map((e=>S(o[t],e))):S(o[t],n)}}return e}function P(e,t){return!!A(t,(t=>t.enable&&g(e,t.mode)))}function D(e,t,i){E(t,(t=>{const n=t.mode;t.enable&&g(e,n)&&O(t,i)}))}function O(e,t){E(e.selectors,(i=>{t(i,e)}))}function _(e,t){if(t&&e)return A(e,(e=>function(e,t){const i=E(t,(t=>e.matches(t)));return(0,s.cy)(i)?i.some((e=>e)):i}(t,e.selectors)))}function R(e){return{position:e.getPosition(),radius:e.getRadius(),mass:e.getMass(),velocity:e.velocity,factor:h.M.create((0,n.VG)(e.options.bounce.horizontal.value),(0,n.VG)(e.options.bounce.vertical.value))}}function T(e,t){const{x:i,y:o}=e.velocity.sub(t.velocity),[s,a]=[e.position,t.position],{dx:r,dy:c}=(0,n.vr)(a,s);if(i*r+o*c<0)return;const l=-Math.atan2(c,r),d=e.mass,u=t.mass,h=e.velocity.rotate(l),p=t.velocity.rotate(l),v=(0,n.OW)(h,p,d,u),f=(0,n.OW)(p,h,d,u),m=v.rotate(-l),y=f.rotate(-l);e.velocity.x=m.x*e.factor.x,e.velocity.y=m.y*e.factor.y,t.velocity.x=y.x*t.factor.x,t.velocity.y=y.y*t.factor.y}function E(e,t){return(0,s.cy)(e)?e.map(((e,i)=>t(e,i))):t(e,0)}function F(e,t,i){return(0,s.cy)(e)?w(e,t,i):e}function A(e,t){if((0,s.cy)(e))return e.find(((e,i)=>t(e,i)));return t(e,0)?e:void 0}function I(e,t){const i=e.value,s=e.animation,c={delayTime:(0,n.VG)(s.delay)*o.Xu,enable:s.enable,value:(0,n.VG)(e.value)*t,max:(0,n.W9)(i)*t,min:(0,n.Sg)(i)*t,loops:0,maxLoops:(0,n.VG)(s.count),time:0};if(s.enable){switch(c.decay=1-(0,n.VG)(s.decay),s.mode){case a.g.increase:c.status=r.H.increasing;break;case a.g.decrease:c.status=r.H.decreasing;break;case a.g.random:c.status=(0,n.G0)()>=o.MX?r.H.increasing:r.H.decreasing}const e=s.mode===a.g.auto;switch(s.startValue){case u.S.min:c.value=c.min,e&&(c.status=r.H.increasing);break;case u.S.max:c.value=c.max,e&&(c.status=r.H.decreasing);break;case u.S.random:default:c.value=(0,n.vE)(c),e&&(c.status=(0,n.G0)()>=o.MX?r.H.increasing:r.H.decreasing)}}return c.initialValue=c.value,c}function V(e,t){if(!(e.mode===d.q.percent)){const{mode:t,...i}=e;return i}return"x"in e?{x:e.x/o.a5*t.width,y:e.y/o.a5*t.height}:{width:e.width/o.a5*t.width,height:e.height/o.a5*t.height}}function C(e,t){return V(e,t)}function L(e,t){return V(e,t)}function Z(e,t,i,o,s){if(e.destroyed||!t.enable||(t.maxLoops??0)>0&&(t.loops??0)>(t.maxLoops??0))return;const a=(t.velocity??0)*s.factor,l=t.min,d=t.max,u=t.decay??1;if(t.time??=0,(t.delayTime??0)>0&&t.time<(t.delayTime??0)&&(t.time+=s.value),!((t.delayTime??0)>0&&t.time<(t.delayTime??0))){switch(t.status){case r.H.increasing:t.value>=d?(i?t.status=r.H.decreasing:t.value-=d,t.loops??=0,t.loops++):t.value+=a;break;case r.H.decreasing:t.value<=l?(i?t.status=r.H.increasing:t.value+=d,t.loops??=0,t.loops++):t.value-=a}t.velocity&&1!==u&&(t.velocity*=u),function(e,t,i,n,o){switch(t){case c.V.max:i>=o&&e.destroy();break;case c.V.min:i<=n&&e.destroy()}}(e,o,t.value,l,d),t.value=(0,n.qE)(t.value,l,d)}}function G(e){const t=v().createElement("div").style;for(const i in e){const n=e[i];if(!Object.prototype.hasOwnProperty.call(e,i)||(0,s.kZ)(n))continue;const o=e.getPropertyValue?.(n);if(!o)continue;const a=e.getPropertyPriority?.(n);a?t.setProperty(n,o,a):t.setProperty(n,o)}return t}const B=function(e){const t=new Map;return(...i)=>{const n=JSON.stringify(i);if(t.has(n))return t.get(n);const o=e(...i);return t.set(n,o),o}}((function(e){const 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(const e in i){const n=i[e];void 0!==n&&t.setProperty(e,n)}return t}))},9552(e,t,i){i.d(t,{S:()=>a});var n=i(4699),o=i(9470),s=i(998);class a{constructor(){this.name="",this.default=new n.f}load(e){(0,s.kZ)(e)||(void 0!==e.name&&(this.name=e.name),this.default.load(e.default),void 0!==e.options&&(this.options=(0,o.zw)({},e.options)))}}},9732(e,t,i){var n;i.d(t,{V:()=>n}),function(e){e.none="none",e.max="max",e.min="min"}(n||(n={}))},9828(e,t,i){i.d(t,{d:()=>o});var n=i(998);class o{constructor(e,t){this._engine=e,this._container=t}load(e){if((0,n.kZ)(e))return;if(!this._container)return;const t=this._engine.interactors.get(this._container);if(t)for(const i of t)i.loadModeOptions&&i.loadModeOptions(this,e)}}},9963(e,t,i){i.d(t,{v:()=>a});var n=i(5121),o=i(9470),s=i(998);class a{constructor(){this.clamp=!0,this.delay=new n.PV,this.enable=!1,this.options={}}load(e){(0,s.kZ)(e)||(void 0!==e.clamp&&(this.clamp=e.clamp),this.delay.load(e.delay),void 0!==e.enable&&(this.enable=e.enable),this.generator=e.generator,e.options&&(this.options=(0,o.zw)(this.options,e.options)))}}}},n={};function o(e){var t=n[e];if(void 0!==t)return t.exports;var s=n[e]={exports:{}};return i[e](s,s.exports,o),s.exports}o.m=i,o.d=(e,t)=>{for(var i in t)o.o(t,i)&&!o.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},o.f={},o.e=e=>Promise.all(Object.keys(o.f).reduce(((t,i)=>(o.f[i](e,t),t)),[])),o.u=e=>e+".min.js",o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e={},t="@tsparticles/pjs:",o.l=(i,n,s,a)=>{if(e[i])e[i].push(n);else{var r,c;if(void 0!==s)for(var l=document.getElementsByTagName("script"),d=0;d<l.length;d++){var u=l[d];if(u.getAttribute("src")==i||u.getAttribute("data-webpack")==t+s){r=u;break}}r||(c=!0,(r=document.createElement("script")).charset="utf-8",o.nc&&r.setAttribute("nonce",o.nc),r.setAttribute("data-webpack",t+s),r.src=i),e[i]=[n];var h=(t,n)=>{r.onerror=r.onload=null,clearTimeout(p);var o=e[i];if(delete e[i],r.parentNode&&r.parentNode.removeChild(r),o&&o.forEach((e=>e(n))),t)return t(n)},p=setTimeout(h.bind(null,void 0,{type:"timeout",target:r}),12e4);r.onerror=h.bind(null,r.onerror),r.onload=h.bind(null,r.onload),c&&document.head.appendChild(r)}},o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;o.g.importScripts&&(e=o.g.location+"");var t=o.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var i=t.getElementsByTagName("script");if(i.length)for(var n=i.length-1;n>-1&&(!e||!/^http(s?):/.test(e));)e=i[n--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),o.p=e})(),(()=>{var e={974:0};o.f.j=(t,i)=>{var n=o.o(e,t)?e[t]:void 0;if(0!==n)if(n)i.push(n[2]);else{var s=new Promise(((i,o)=>n=e[t]=[i,o]));i.push(n[2]=s);var a=o.p+o.u(t),r=new Error;o.l(a,(i=>{if(o.o(e,t)&&(0!==(n=e[t])&&(e[t]=void 0),n)){var s=i&&("load"===i.type?"missing":i.type),a=i&&i.target&&i.target.src;r.message="Loading chunk "+t+" failed.\n("+s+": "+a+")",r.name="ChunkLoadError",r.type=s,r.request=a,n[1](r)}}),"chunk-"+t,t)}};var t=(t,i)=>{var n,s,[a,r,c]=i,l=0;if(a.some((t=>0!==e[t]))){for(n in r)o.o(r,n)&&(o.m[n]=r[n]);if(c)c(o)}for(t&&t(i);l<a.length;l++)s=a[l],o.o(e,s)&&e[s]&&e[s][0](),e[s]=0},i=this.webpackChunk_tsparticles_pjs=this.webpackChunk_tsparticles_pjs||[];i.forEach(t.bind(null,0)),i.push=t.bind(null,i.push.bind(i))})();var s={};o.r(s),o.d(s,{AlterType:()=>R.H,AnimatableColor:()=>L.A,AnimationMode:()=>z.g,AnimationOptions:()=>Z.p,AnimationStatus:()=>V.H,AnimationValueWithRandom:()=>Se.Jm,Background:()=>G.V,BaseRange:()=>b.dg,Circle:()=>b.jl,ClickEvent:()=>$.r,ColorAnimation:()=>B.e,DestroyType:()=>T.V,DivEvent:()=>W.G,DivType:()=>I.Q,EasingType:()=>E,EventType:()=>l.B,Events:()=>N.s,ExternalInteractorBase:()=>f,FullScreen:()=>q.m,GradientType:()=>k,HoverEvent:()=>j.L,HslAnimation:()=>H.i,Interactivity:()=>U.k,InteractivityDetect:()=>C.h,InteractorType:()=>v.e,LimitMode:()=>S.d,ManualParticle:()=>Q.j,Modes:()=>X.d,Move:()=>ae.y,MoveAngle:()=>re.h,MoveAttract:()=>se.R,MoveCenter:()=>ce.Z,MoveDirection:()=>w.F,MoveGravity:()=>le.y,MovePath:()=>ue.v,Opacity:()=>me.Y,OpacityAnimation:()=>ye.I,Options:()=>Y.J,OptionsColor:()=>ee.O,OutMode:()=>P.Y,OutModeDirection:()=>M.v,OutModes:()=>de.j,Parallax:()=>J.k,ParticleOutType:()=>F.x,Particles:()=>Ie,ParticlesBounce:()=>te.w,ParticlesBounceFactor:()=>ie.F,ParticlesDensity:()=>fe.M,ParticlesInteractorBase:()=>m,ParticlesNumber:()=>pe.N,ParticlesNumberLimit:()=>ve.A,ParticlesOptions:()=>ne.U,PixelMode:()=>D.q,Point:()=>g.b,RangedAnimationOptions:()=>Z.Q,RangedAnimationValueWithRandom:()=>Se.AI,Rectangle:()=>b.M_,ResizeEvent:()=>K.z,Responsive:()=>ke.F,ResponsiveMode:()=>_.A,RotateDirection:()=>y,Shape:()=>ge.y,Size:()=>be.o,SizeAnimation:()=>xe.q,Spin:()=>he.t,StartValueType:()=>A.S,Stroke:()=>oe.t,Theme:()=>Me.S,ThemeDefault:()=>ze.f,ThemeMode:()=>O.l,ValueWithRandom:()=>Se.PV,Vector:()=>x.M,Vector3d:()=>x.p,ZIndex:()=>we.P,alterHsl:()=>Pe.yx,animate:()=>u.i0,areBoundsInside:()=>r.O2,arrayRandomIndex:()=>r.n0,calcExactPositionOrRandomFromSize:()=>u.Nx,calcExactPositionOrRandomFromSizeRanged:()=>u.qM,calcPositionFromSize:()=>u.eh,calcPositionOrRandomFromSize:()=>u.Mh,calcPositionOrRandomFromSizeRanged:()=>u.l1,calculateBounds:()=>r.AE,cancelAnimation:()=>u.px,canvasFirstIndex:()=>a.Nx,canvasTag:()=>a.RF,circleBounce:()=>r.pE,circleBounceDataFromParticle:()=>r.Tg,clamp:()=>u.qE,clear:()=>Pe.IU,clearDrawPlugin:()=>Pe.l7,clickRadius:()=>a.FS,cloneStyle:()=>r.td,collisionVelocity:()=>u.OW,colorMix:()=>De.EY,colorToHsl:()=>De.mK,colorToRgb:()=>De.qe,countOffset:()=>a.nq,decayOffset:()=>a.WH,deepExtend:()=>r.zw,defaultAlpha:()=>a.aZ,defaultAngle:()=>a.tA,defaultDensityFactor:()=>a.lA,defaultFps:()=>a.z$,defaultFpsLimit:()=>a.i8,defaultLoops:()=>a.hK,defaultOpacity:()=>a.hv,defaultRadius:()=>a.M1,defaultRatio:()=>a.$x,defaultReduceFactor:()=>a.Zp,defaultRemoveQuantity:()=>a.xd,defaultRetryCount:()=>a.rq,defaultRgbMin:()=>a.Fl,defaultTime:()=>a.tR,defaultTransform:()=>a.Ug,defaultTransformValue:()=>a.zs,defaultVelocity:()=>a.jn,degToRad:()=>u.pu,deleteCount:()=>a.LD,divMode:()=>r.NV,divModeExecute:()=>r.U6,double:()=>a.gd,doublePI:()=>a.R1,drawAfterEffect:()=>Pe.k,drawBeforeEffect:()=>Pe.z5,drawLine:()=>Pe.V6,drawParticle:()=>Pe.p0,drawParticlePlugin:()=>Pe.Wb,drawPlugin:()=>Pe.e_,drawShape:()=>Pe.KG,drawShapeAfterDraw:()=>Pe.gF,drawShapeBeforeDraw:()=>Pe.VG,empty:()=>a.Ie,executeOnSingleOrMultiple:()=>r.wJ,findItemFromSingleOrMultiple:()=>r.w3,generatedAttribute:()=>a.eb,generatedFalse:()=>a.X$,generatedTrue:()=>a.ce,getDistance:()=>u.Yf,getDistances:()=>u.vr,getFullScreenStyle:()=>r.hJ,getHslAnimationFromHsl:()=>De.pz,getHslFromAnimation:()=>De.O_,getLinkColor:()=>De._h,getLinkRandomColor:()=>De.PG,getLogger:()=>d.t,getParticleBaseVelocity:()=>u.$m,getParticleDirectionAngle:()=>u.JY,getPosition:()=>r.E9,getRandom:()=>u.G0,getRandomInRange:()=>u.e4,getRandomRgbColor:()=>De.OH,getRangeMax:()=>u.W9,getRangeMin:()=>u.Sg,getRangeValue:()=>u.VG,getSize:()=>r.YC,getStyleFromHsl:()=>De.LC,getStyleFromRgb:()=>De.xx,hMax:()=>a.vS,hMin:()=>a.L1,hPhase:()=>a.U0,half:()=>a.MX,hasMatchMedia:()=>r.q8,hslToRgb:()=>De.YL,hslaToRgba:()=>De.ay,identity:()=>a.D_,initParticleNumericAnimationValue:()=>r.Xs,inverseFactorNumerator:()=>a.hB,isArray:()=>_e.cy,isBoolean:()=>_e.Lm,isDivModeEnabled:()=>r.iK,isFunction:()=>_e.Tn,isInArray:()=>r.hn,isNull:()=>_e.kZ,isNumber:()=>_e.Et,isObject:()=>_e.Gv,isPointInside:()=>r.Tj,isString:()=>_e.Kg,itemFromArray:()=>r.Vh,itemFromSingleOrMultiple:()=>r.TA,lFactor:()=>a.iU,lMax:()=>a.$_,lMin:()=>a.vd,lengthOffset:()=>a.K3,loadFont:()=>r.Al,loadMinIndex:()=>a.PZ,loadOptions:()=>Oe.Z,loadParticlesOptions:()=>Oe.y,loadRandomFactor:()=>a.$v,manualCount:()=>a.IU,manualDefaultPosition:()=>a.td,midColorValue:()=>a.BW,millisecondsToSeconds:()=>a.Xu,minCoordinate:()=>a.TL,minCount:()=>a.wM,minFpsLimit:()=>a.DN,minIndex:()=>a.z9,minLimit:()=>a.ou,minRetries:()=>a.N5,minStrokeWidth:()=>a.Dv,minVelocity:()=>a.GW,minZ:()=>a.X_,minimumLength:()=>a.$O,minimumSize:()=>a.w2,mix:()=>u.jh,mouseDownEvent:()=>a.ms,mouseLeaveEvent:()=>a.Z0,mouseMoveEvent:()=>a.Rb,mouseOutEvent:()=>a.sf,mouseUpEvent:()=>a.vo,none:()=>a.dv,one:()=>a.xH,originPoint:()=>a.bo,pJSDom:()=>Ae,paintBase:()=>Pe.Sn,paintImage:()=>Pe.Md,parseAlpha:()=>u.M3,particlesJS:()=>Fe,percentDenominator:()=>a.a5,phaseNumerator:()=>a.BF,posOffset:()=>a.un,qTreeCapacity:()=>a.Kw,quarter:()=>a.$G,randomColorValue:()=>a.mR,randomInRangeValue:()=>u.vE,rangeColorToHsl:()=>De.R5,rangeColorToRgb:()=>De.BN,removeDeleteCount:()=>a.JC,removeMinIndex:()=>a.vF,resizeEvent:()=>a.NF,rgbMax:()=>a.oi,rgbToHsl:()=>De.K6,rollFactor:()=>a.l,sMax:()=>a.eu,sMin:()=>a.yx,sNormalizedOffset:()=>a.aE,safeDocument:()=>r.T5,safeIntersectionObserver:()=>r.BR,safeMatchMedia:()=>r.lV,safeMutationObserver:()=>r.tG,setAnimationFunctions:()=>u.AD,setLogger:()=>d.B,setRandom:()=>u.OE,setRangeValue:()=>u.DT,sextuple:()=>a.zg,singleDivModeExecute:()=>r.S7,sizeFactor:()=>a.Rh,squareExp:()=>a.dm,stringToAlpha:()=>De.zI,stringToRgb:()=>De.eg,subdivideCount:()=>a.Pg,threeQuarter:()=>a.Rq,touchCancelEvent:()=>a.G3,touchDelay:()=>a.pH,touchEndEvent:()=>a.Bp,touchEndLengthOffset:()=>a.KZ,touchMoveEvent:()=>a.DG,touchStartEvent:()=>a.s7,triple:()=>a.Nu,tryCountIncrement:()=>a.Eo,tsParticles:()=>Re,updateAnimation:()=>r.UC,updateColor:()=>De.Jv,updateColorValue:()=>De.Ko,visibilityChangeEvent:()=>a.nK,zIndexFactorOffset:()=>a.RV});var a=o(1546),r=o(9470);class c{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){const 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){const i=this._listeners.get(e);if(!i)return;const n=i.length,o=i.indexOf(t);o<a.z9||(n===a.LD?this._listeners.delete(e):i.splice(o,a.LD))}}var l=o(622),d=o(7452),u=o(4400);async function h(e,t,i,n=!1){let o=t.get(e);return o&&!n||(o=await Promise.all([...i.values()].map((t=>t(e)))),t.set(e,o)),o}class p{constructor(){this._configs=new Map,this._domArray=[],this._eventDispatcher=new c,this._initialized=!1,this._loadPromises=new Set,this.plugins=[],this.colorManagers=new Map,this.easingFunctions=new Map,this._initializers={interactors:new Map,movers:new Map,updaters:new Map},this.interactors=new Map,this.movers=new Map,this.updaters=new Map,this.presets=new Map,this.effectDrawers=new Map,this.shapeDrawers=new Map,this.pathGenerators=new Map}get configs(){const e={};for(const[t,i]of this._configs)e[t]=i;return e}get items(){return this._domArray}get version(){return"4.0.0-alpha.0"}addColorManager(e){this.colorManagers.set(e.key,e)}addConfig(e){const t=e.key??e.name??"default";this._configs.set(t,e),this._eventDispatcher.dispatchEvent(l.B.configAdded,{data:{name:t,config:e}})}addEasing(e,t){this.easingFunctions.get(e)||this.easingFunctions.set(e,t)}addEffect(e,t){this.getEffectDrawer(e)||this.effectDrawers.set(e,t)}addEventListener(e,t){this._eventDispatcher.addEventListener(e,t)}addInteractor(e,t){this._initializers.interactors.set(e,t)}addMover(e,t){this._initializers.movers.set(e,t)}addParticleUpdater(e,t){this._initializers.updaters.set(e,t)}addPathGenerator(e,t){this.getPathGenerator(e)||this.pathGenerators.set(e,t)}addPlugin(e){this.getPlugin(e.id)||this.plugins.push(e)}addPreset(e,t,i=!1){!i&&this.getPreset(e)||this.presets.set(e,t)}addShape(e){for(const t of e.validTypes)this.getShapeDrawer(t)||this.shapeDrawers.set(t,e)}checkVersion(e){if(this.version!==e)throw new Error(`The tsParticles version is different from the loaded plugins version. Engine version: ${this.version}. Plugin version: ${e}`)}clearPlugins(e){this.updaters.delete(e),this.movers.delete(e),this.interactors.delete(e)}dispatchEvent(e,t){this._eventDispatcher.dispatchEvent(e,t)}dom(){return this.items}domItem(e){return this.item(e)}async getAvailablePlugins(e){const t=new Map;for(const i of this.plugins)i.needsPlugin(e.actualOptions)&&t.set(i.id,await i.getPlugin(e));return t}getEasing(e){return this.easingFunctions.get(e)??(e=>e)}getEffectDrawer(e){return this.effectDrawers.get(e)}async getInteractors(e,t=!1){return h(e,this.interactors,this._initializers.interactors,t)}async getMovers(e,t=!1){return h(e,this.movers,this._initializers.movers,t)}getPathGenerator(e){return this.pathGenerators.get(e)}getPlugin(e){return this.plugins.find((t=>t.id===e))}getPreset(e){return this.presets.get(e)}getShapeDrawer(e){return this.shapeDrawers.get(e)}getSupportedEffects(){return this.effectDrawers.keys()}getSupportedShapes(){return this.shapeDrawers.keys()}async getUpdaters(e,t=!1){return h(e,this.updaters,this._initializers.updaters,t)}async init(){if(!this._initialized){for(const e of this._loadPromises)await e(this);this._loadPromises.clear(),this._initialized=!0}}item(e){const{items:t}=this,i=t[e];if(!i?.destroyed)return i;t.splice(e,a.JC)}async load(e){await this.init();const{Container:t}=await o.e(571).then(o.bind(o,7571)),i=e.id??e.element?.id??`tsparticles${Math.floor((0,u.G0)()*a.$v).toString()}`,{index:n,url:s}=e,c=s?await async function(e){const t=(0,r.TA)(e.url,e.index);if(!t)return e.fallback;const i=await fetch(t);return i.ok?await i.json():((0,d.t)().error(`${i.status.toString()} while retrieving config file`),e.fallback)}({fallback:e.options,url:s,index:n}):e.options,l=(0,r.TA)(c,n),{items:h}=this,p=h.findIndex((e=>e.id.description===i)),v=new t(this,i,l);if(p>=a.PZ){const e=this.item(p),t=e?a.xH:a.dv;e&&!e.destroyed&&e.destroy(!1),h.splice(p,t,v)}else h.push(v);const f=((e,t)=>{let i=t??(0,r.T5)().getElementById(e);return i||(i=(0,r.T5)().createElement("div"),i.id=e,i.dataset[a.eb]=a.ce,(0,r.T5)().body.append(i),i)})(i,e.element),m=(e=>{let t;if(e instanceof HTMLCanvasElement||e.tagName.toLowerCase()===a.RF)t=e,t.dataset[a.eb]??=a.X$;else{const i=e.getElementsByTagName(a.RF)[a.Nx];i?(t=i,t.dataset[a.eb]=a.X$):(t=(0,r.T5)().createElement(a.RF),t.dataset[a.eb]=a.ce,e.appendChild(t))}const i="100%";return t.style.width||(t.style.width=i),t.style.height||(t.style.height=i),t})(f);return v.canvas.loadCanvas(m),await v.start(),v}loadOptions(e,t){this.plugins.forEach((i=>{i.loadOptions(e,t)}))}loadParticlesOptions(e,t,...i){const n=this.updaters.get(e);n&&n.forEach((e=>e.loadOptions?.(t,...i)))}async refresh(e=!0){e&&await Promise.all(this.items.map((e=>e.refresh())))}register(...e){if(this._initialized)throw new Error("Register plugins can only be done before calling tsParticles.load()");for(const t of e)this._loadPromises.add(t)}removeEventListener(e,t){this._eventDispatcher.removeEventListener(e,t)}setOnClickHandler(e){const{items:t}=this;if(!t.length)throw new Error("Click handlers can only be set after calling tsParticles.load()");t.forEach((t=>{t.addClickHandler(e)}))}}var v=o(4723);class f{constructor(e){this.type=v.e.external,this.container=e}}class m{constructor(e){this.type=v.e.particles,this.container=e}}var y,g=o(1989),b=o(5189),x=o(7023),w=o(6657);!function(e){e.clockwise="clockwise",e.counterClockwise="counter-clockwise",e.random="random"}(y||(y={}));var k,M=o(2091),z=o(682),S=o(5511),P=o(1176),D=o(6900),O=o(569),_=o(9442),R=o(5158),T=o(9732);!function(e){e.linear="linear",e.radial="radial",e.random="random"}(k||(k={}));var E,F=o(5608),A=o(7925),I=o(7277);!function(e){e.easeInBack="ease-in-back",e.easeInCirc="ease-in-circ",e.easeInCubic="ease-in-cubic",e.easeInLinear="ease-in-linear",e.easeInQuad="ease-in-quad",e.easeInQuart="ease-in-quart",e.easeInQuint="ease-in-quint",e.easeInExpo="ease-in-expo",e.easeInSine="ease-in-sine",e.easeOutBack="ease-out-back",e.easeOutCirc="ease-out-circ",e.easeOutCubic="ease-out-cubic",e.easeOutLinear="ease-out-linear",e.easeOutQuad="ease-out-quad",e.easeOutQuart="ease-out-quart",e.easeOutQuint="ease-out-quint",e.easeOutExpo="ease-out-expo",e.easeOutSine="ease-out-sine",e.easeInOutBack="ease-in-out-back",e.easeInOutCirc="ease-in-out-circ",e.easeInOutCubic="ease-in-out-cubic",e.easeInOutLinear="ease-in-out-linear",e.easeInOutQuad="ease-in-out-quad",e.easeInOutQuart="ease-in-out-quart",e.easeInOutQuint="ease-in-out-quint",e.easeInOutExpo="ease-in-out-expo",e.easeInOutSine="ease-in-out-sine"}(E||(E={}));var V=o(4764),C=o(8980),L=o(6896),Z=o(3115),G=o(1190),B=o(952),q=o(6440),H=o(3048),$=o(3893),W=o(1976),N=o(8944),j=o(2207),J=o(1602),K=o(8193),U=o(5368),X=o(9828),Q=o(75),Y=o(4805),ee=o(1510),te=o(6899),ie=o(2796),ne=o(5343),oe=o(3083),se=o(2903),ae=o(4376),re=o(2141),ce=o(4337),le=o(496),de=o(1273),ue=o(9963),he=o(5241),pe=o(7663),ve=o(6728),fe=o(1048),me=o(7028),ye=o(4524),ge=o(6960),be=o(9384),xe=o(7280),we=o(5758),ke=o(8493),Me=o(9552),ze=o(4699),Se=o(5121),Pe=o(3618),De=o(4975),Oe=o(1896),_e=o(998);const Re=new p;globalThis.tsParticles=Re;class Te{static init(e){const t=new Te,i=e.selector;if(!i)throw new Error("No selector provided");const n=(0,r.T5)().querySelector(i);if(!n)throw new Error("No element found for selector");return Re.load({element:n,id:i.replace(".","").replace("!",""),options:{fullScreen:{enable:!1},particles:{color:{value:e.color??"!000000"},links:{color:"random",distance:e.minDistance??120,enable:e.connectParticles??!1},move:{enable:!0,speed:e.speed??.5},number:{value:e.maxParticles??100},size:{value:{min:1,max:e.sizeVariations??3}}},responsive:e.responsive?.map((t=>({maxWidth:t.breakpoint,options:{particles:{color:{value:t.options?.color},links:{distance:t.options?.minDistance,enable:t.options?.connectParticles},number:{value:e.maxParticles},move:{enable:!0,speed:t.options?.speed},size:{value:t.options?.sizeVariations}}}})))}}).then((e=>{t._container=e})),t}destroy(){const e=this._container;e?.destroy()}pauseAnimation(){const e=this._container;e?.pause()}resumeAnimation(){const e=this._container;e?.play()}}const Ee={particles:{number:{value:400,density:{enable:!0,value_area:800}},color:{value:"#fff"},shape:{type:"circle",stroke:{width:0,color:"#ff0000"},polygon:{nb_sides:5},image:{src:"",width:100,height:100}},opacity:{value:1,random:!1,anim:{enable:!1,speed:2,opacity_min:0,sync:!1}},size:{value:20,random:!1,anim:{enable:!1,speed:20,size_min:0,sync:!1}},line_linked:{enable:!0,distance:100,color:"#fff",opacity:1,width:1},move:{enable:!0,speed:2,direction:"none",random:!1,straight:!1,out_mode:"out",bounce:!1,attract:{enable:!1,rotateX:3e3,rotateY:3e3}}},interactivity:{detect_on:"canvas",events:{onhover:{enable:!0,mode:"grab"},onclick:{enable:!0,mode:"push"},resize:!0},modes:{grab:{distance:100,line_linked:{opacity:1}},bubble:{distance:200,size:80,duration:.4,opacity:1,speed:3},repulse:{distance:200,duration:.4},push:{particles_nb:4},remove:{particles_nb:2}}},retina_detect:!1},{particlesJS:Fe,pJSDom:Ae,Particles:Ie}=(e=>{e.checkVersion("4.0.0-alpha.0");const{particlesJS:t,pJSDom:i}=(e=>{const t=(t,i)=>{const n=(0,r.zw)(Ee,i);return e.load({id:t,options:{fullScreen:{enable:!1},detectRetina:n.retina_detect,smooth:!0,interactivity:{detectsOn:n.interactivity.detect_on,events:{onHover:{enable:n.interactivity.events.onhover.enable,mode:n.interactivity.events.onhover.mode},onClick:{enable:n.interactivity.events.onclick.enable,mode:n.interactivity.events.onclick.mode},resize:{enable:n.interactivity.events.resize}},modes:{grab:{distance:n.interactivity.modes.grab.distance,links:{opacity:n.interactivity.modes.grab.line_linked.opacity}},bubble:{distance:n.interactivity.modes.bubble.distance,size:n.interactivity.modes.bubble.size,duration:n.interactivity.modes.bubble.duration,opacity:n.interactivity.modes.bubble.opacity,speed:n.interactivity.modes.bubble.speed},repulse:{distance:n.interactivity.modes.repulse.distance,duration:n.interactivity.modes.repulse.duration},push:{quantity:n.interactivity.modes.push.particles_nb},remove:{quantity:n.interactivity.modes.remove.particles_nb}}},particles:{collisions:{enable:n.particles.move.bounce},number:{value:n.particles.number.value,density:{enable:n.particles.number.density.enable,width:n.particles.number.density.value_area}},color:{value:n.particles.color.value},stroke:{width:n.particles.shape.stroke.width,color:{value:n.particles.shape.stroke.color}},shape:{type:n.particles.shape.type,options:{polygon:{sides:n.particles.shape.polygon.nb_sides},image:{src:n.particles.shape.image.src,width:n.particles.shape.image.width,height:n.particles.shape.image.height}}},opacity:{value:n.particles.opacity.random?{min:n.particles.opacity.anim.enable?n.particles.opacity.anim.opacity_min:0,max:n.particles.opacity.value}:n.particles.opacity.value,animation:{enable:n.particles.opacity.anim.enable,speed:n.particles.opacity.anim.speed,sync:n.particles.opacity.anim.sync}},size:{value:n.particles.size.random?{min:n.particles.size.anim.enable?n.particles.size.anim.size_min:0,max:n.particles.size.value}:n.particles.size.value,animation:{enable:n.particles.size.anim.enable,speed:n.particles.size.anim.speed,sync:n.particles.size.anim.sync}},links:{enable:n.particles.line_linked.enable,distance:n.particles.line_linked.distance,color:n.particles.line_linked.color,opacity:n.particles.line_linked.opacity,width:n.particles.line_linked.width},move:{enable:n.particles.move.enable,speed:n.particles.move.speed/3,direction:n.particles.move.direction,random:n.particles.move.random,straight:n.particles.move.straight,outModes:n.particles.move.out_mode,attract:{enable:n.particles.move.attract.enable,rotate:{x:n.particles.move.attract.rotateX,y:n.particles.move.attract.rotateY}}}}}})};return t.load=(t,i,n)=>{e.load({id:t,url:i}).then((e=>{e&&n(e)})).catch((()=>{n(void 0)}))},t.setOnClickHandler=t=>{e.setOnClickHandler(t)},{particlesJS:t,pJSDom:e.dom()}})(e);return globalThis.particlesJS=t,globalThis.pJSDom=i,globalThis.Particles=Te,{particlesJS:t,pJSDom:i,Particles:Te}})(Re);return s})()));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! tsParticles Particles.js
|
|
1
|
+
/*! tsParticles Particles.js v4.0.0-alpha.0 by Matteo Bruni */
|
package/tsparticles.pjs.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Demo / Generator : https://particles.js.org/
|
|
5
5
|
* GitHub : https://www.github.com/matteobruni/tsparticles
|
|
6
6
|
* How to use? : Check the GitHub README
|
|
7
|
-
*
|
|
7
|
+
* v4.0.0-alpha.0
|
|
8
8
|
*/
|
|
9
9
|
/*
|
|
10
10
|
* ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development").
|
|
@@ -28,45 +28,45 @@ return /******/ (() => { // webpackBootstrap
|
|
|
28
28
|
/******/ "use strict";
|
|
29
29
|
/******/ var __webpack_modules__ = ({
|
|
30
30
|
|
|
31
|
-
/***/ "./dist/browser/VincentGarreau/particles.js"
|
|
31
|
+
/***/ "./dist/browser/VincentGarreau/particles.js"
|
|
32
32
|
/*!**************************************************!*\
|
|
33
33
|
!*** ./dist/browser/VincentGarreau/particles.js ***!
|
|
34
34
|
\**************************************************/
|
|
35
|
-
|
|
35
|
+
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
36
36
|
|
|
37
|
-
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ initParticlesJS: () => (/* binding */ initParticlesJS)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"@tsparticles/engine\");\n
|
|
37
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ initParticlesJS: () => (/* binding */ initParticlesJS)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"@tsparticles/engine\");\n\nconst defaultMinOpacity = 0,\n defaultMinSize = 0,\n speedFactor = 3,\n defaultPjsOptions = {\n particles: {\n number: {\n value: 400,\n density: {\n enable: true,\n value_area: 800\n }\n },\n color: {\n value: \"#fff\"\n },\n shape: {\n type: \"circle\",\n stroke: {\n width: 0,\n color: \"#ff0000\"\n },\n polygon: {\n nb_sides: 5\n },\n image: {\n src: \"\",\n width: 100,\n height: 100\n }\n },\n opacity: {\n value: 1,\n random: false,\n anim: {\n enable: false,\n speed: 2,\n opacity_min: 0,\n sync: false\n }\n },\n size: {\n value: 20,\n random: false,\n anim: {\n enable: false,\n speed: 20,\n size_min: 0,\n sync: false\n }\n },\n line_linked: {\n enable: true,\n distance: 100,\n color: \"#fff\",\n opacity: 1,\n width: 1\n },\n move: {\n enable: true,\n speed: 2,\n direction: \"none\",\n random: false,\n straight: false,\n out_mode: \"out\",\n bounce: false,\n attract: {\n enable: false,\n rotateX: 3000,\n rotateY: 3000\n }\n }\n },\n interactivity: {\n detect_on: \"canvas\",\n events: {\n onhover: {\n enable: true,\n mode: \"grab\"\n },\n onclick: {\n enable: true,\n mode: \"push\"\n },\n resize: true\n },\n modes: {\n grab: {\n distance: 100,\n line_linked: {\n opacity: 1\n }\n },\n bubble: {\n distance: 200,\n size: 80,\n duration: 0.4,\n opacity: 1,\n speed: 3\n },\n repulse: {\n distance: 200,\n duration: 0.4\n },\n push: {\n particles_nb: 4\n },\n remove: {\n particles_nb: 2\n }\n }\n },\n retina_detect: false\n };\nconst initParticlesJS = engine => {\n const particlesJS = (tagId, options) => {\n const fixedOptions = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.deepExtend)(defaultPjsOptions, options);\n return engine.load({\n id: tagId,\n options: {\n fullScreen: {\n enable: false\n },\n detectRetina: fixedOptions.retina_detect,\n smooth: true,\n interactivity: {\n detectsOn: fixedOptions.interactivity.detect_on,\n events: {\n onHover: {\n enable: fixedOptions.interactivity.events.onhover.enable,\n mode: fixedOptions.interactivity.events.onhover.mode\n },\n onClick: {\n enable: fixedOptions.interactivity.events.onclick.enable,\n mode: fixedOptions.interactivity.events.onclick.mode\n },\n resize: {\n enable: fixedOptions.interactivity.events.resize\n }\n },\n modes: {\n grab: {\n distance: fixedOptions.interactivity.modes.grab.distance,\n links: {\n opacity: fixedOptions.interactivity.modes.grab.line_linked.opacity\n }\n },\n bubble: {\n distance: fixedOptions.interactivity.modes.bubble.distance,\n size: fixedOptions.interactivity.modes.bubble.size,\n duration: fixedOptions.interactivity.modes.bubble.duration,\n opacity: fixedOptions.interactivity.modes.bubble.opacity,\n speed: fixedOptions.interactivity.modes.bubble.speed\n },\n repulse: {\n distance: fixedOptions.interactivity.modes.repulse.distance,\n duration: fixedOptions.interactivity.modes.repulse.duration\n },\n push: {\n quantity: fixedOptions.interactivity.modes.push.particles_nb\n },\n remove: {\n quantity: fixedOptions.interactivity.modes.remove.particles_nb\n }\n }\n },\n particles: {\n collisions: {\n enable: fixedOptions.particles.move.bounce\n },\n number: {\n value: fixedOptions.particles.number.value,\n density: {\n enable: fixedOptions.particles.number.density.enable,\n width: fixedOptions.particles.number.density.value_area\n }\n },\n color: {\n value: fixedOptions.particles.color.value\n },\n stroke: {\n width: fixedOptions.particles.shape.stroke.width,\n color: {\n value: fixedOptions.particles.shape.stroke.color\n }\n },\n shape: {\n type: fixedOptions.particles.shape.type,\n options: {\n polygon: {\n sides: fixedOptions.particles.shape.polygon.nb_sides\n },\n image: {\n src: fixedOptions.particles.shape.image.src,\n width: fixedOptions.particles.shape.image.width,\n height: fixedOptions.particles.shape.image.height\n }\n }\n },\n opacity: {\n value: fixedOptions.particles.opacity.random ? {\n min: fixedOptions.particles.opacity.anim.enable ? fixedOptions.particles.opacity.anim.opacity_min : defaultMinOpacity,\n max: fixedOptions.particles.opacity.value\n } : fixedOptions.particles.opacity.value,\n animation: {\n enable: fixedOptions.particles.opacity.anim.enable,\n speed: fixedOptions.particles.opacity.anim.speed,\n sync: fixedOptions.particles.opacity.anim.sync\n }\n },\n size: {\n value: fixedOptions.particles.size.random ? {\n min: fixedOptions.particles.size.anim.enable ? fixedOptions.particles.size.anim.size_min : defaultMinSize,\n max: fixedOptions.particles.size.value\n } : fixedOptions.particles.size.value,\n animation: {\n enable: fixedOptions.particles.size.anim.enable,\n speed: fixedOptions.particles.size.anim.speed,\n sync: fixedOptions.particles.size.anim.sync\n }\n },\n links: {\n enable: fixedOptions.particles.line_linked.enable,\n distance: fixedOptions.particles.line_linked.distance,\n color: fixedOptions.particles.line_linked.color,\n opacity: fixedOptions.particles.line_linked.opacity,\n width: fixedOptions.particles.line_linked.width\n },\n move: {\n enable: fixedOptions.particles.move.enable,\n speed: fixedOptions.particles.move.speed / speedFactor,\n direction: fixedOptions.particles.move.direction,\n random: fixedOptions.particles.move.random,\n straight: fixedOptions.particles.move.straight,\n outModes: fixedOptions.particles.move.out_mode,\n attract: {\n enable: fixedOptions.particles.move.attract.enable,\n rotate: {\n x: fixedOptions.particles.move.attract.rotateX,\n y: fixedOptions.particles.move.attract.rotateY\n }\n }\n }\n }\n }\n });\n };\n particlesJS.load = (tagId, pathConfigJson, callback) => {\n engine.load({\n id: tagId,\n url: pathConfigJson\n }).then(container => {\n if (container) {\n callback(container);\n }\n }).catch(() => {\n callback(undefined);\n });\n };\n particlesJS.setOnClickHandler = callback => {\n engine.setOnClickHandler(callback);\n };\n const pJSDom = engine.dom();\n return {\n particlesJS,\n pJSDom\n };\n};\n\n\n//# sourceURL=webpack://@tsparticles/pjs/./dist/browser/VincentGarreau/particles.js?\n}");
|
|
38
38
|
|
|
39
|
-
/***/ }
|
|
39
|
+
/***/ },
|
|
40
40
|
|
|
41
|
-
/***/ "./dist/browser/index.js"
|
|
41
|
+
/***/ "./dist/browser/index.js"
|
|
42
42
|
/*!*******************************!*\
|
|
43
43
|
!*** ./dist/browser/index.js ***!
|
|
44
44
|
\*******************************/
|
|
45
|
-
|
|
45
|
+
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
46
46
|
|
|
47
|
-
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ initPjs: () => (/* binding */ initPjs)\n/* harmony export */ });\n/* harmony import */ var _marcbruederlin_Particles_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./marcbruederlin/Particles.js */ \"./dist/browser/marcbruederlin/Particles.js\");\n/* harmony import */ var _VincentGarreau_particles_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./VincentGarreau/particles.js */ \"./dist/browser/VincentGarreau/particles.js\");\n\n\nconst initPjs = engine => {\n engine.checkVersion(\"
|
|
47
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ initPjs: () => (/* binding */ initPjs)\n/* harmony export */ });\n/* harmony import */ var _marcbruederlin_Particles_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./marcbruederlin/Particles.js */ \"./dist/browser/marcbruederlin/Particles.js\");\n/* harmony import */ var _VincentGarreau_particles_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./VincentGarreau/particles.js */ \"./dist/browser/VincentGarreau/particles.js\");\n\n\nconst initPjs = engine => {\n engine.checkVersion(\"4.0.0-alpha.0\");\n const {\n particlesJS,\n pJSDom\n } = (0,_VincentGarreau_particles_js__WEBPACK_IMPORTED_MODULE_1__.initParticlesJS)(engine);\n globalThis.particlesJS = particlesJS;\n globalThis.pJSDom = pJSDom;\n globalThis.Particles = _marcbruederlin_Particles_js__WEBPACK_IMPORTED_MODULE_0__.MBParticles;\n return {\n particlesJS,\n pJSDom,\n Particles: _marcbruederlin_Particles_js__WEBPACK_IMPORTED_MODULE_0__.MBParticles\n };\n};\n\n\n//# sourceURL=webpack://@tsparticles/pjs/./dist/browser/index.js?\n}");
|
|
48
48
|
|
|
49
|
-
/***/ }
|
|
49
|
+
/***/ },
|
|
50
50
|
|
|
51
|
-
/***/ "./dist/browser/marcbruederlin/Particles.js"
|
|
51
|
+
/***/ "./dist/browser/marcbruederlin/Particles.js"
|
|
52
52
|
/*!**************************************************!*\
|
|
53
53
|
!*** ./dist/browser/marcbruederlin/Particles.js ***!
|
|
54
54
|
\**************************************************/
|
|
55
|
-
|
|
55
|
+
(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
56
56
|
|
|
57
|
-
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */
|
|
57
|
+
eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ MBParticles: () => (/* binding */ MBParticles)\n/* harmony export */ });\n/* harmony import */ var _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @tsparticles/engine */ \"@tsparticles/engine\");\n\nconst linksMinDistance = 120,\n moveMinSpeed = 0.5,\n particlesMinCount = 100,\n sizeMinValue = 3;\nclass MBParticles {\n static init(options) {\n const particles = new MBParticles(),\n selector = options.selector;\n if (!selector) {\n throw new Error(\"No selector provided\");\n }\n const el = (0,_tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.safeDocument)().querySelector(selector);\n if (!el) {\n throw new Error(\"No element found for selector\");\n }\n void _tsparticles_engine__WEBPACK_IMPORTED_MODULE_0__.tsParticles.load({\n element: el,\n id: selector.replace(\".\", \"\").replace(\"!\", \"\"),\n options: {\n fullScreen: {\n enable: false\n },\n particles: {\n color: {\n value: options.color ?? \"!000000\"\n },\n links: {\n color: \"random\",\n distance: options.minDistance ?? linksMinDistance,\n enable: options.connectParticles ?? false\n },\n move: {\n enable: true,\n speed: options.speed ?? moveMinSpeed\n },\n number: {\n value: options.maxParticles ?? particlesMinCount\n },\n size: {\n value: {\n min: 1,\n max: options.sizeVariations ?? sizeMinValue\n }\n }\n },\n responsive: options.responsive?.map(responsive => ({\n maxWidth: responsive.breakpoint,\n options: {\n particles: {\n color: {\n value: responsive.options?.color\n },\n links: {\n distance: responsive.options?.minDistance,\n enable: responsive.options?.connectParticles\n },\n number: {\n value: options.maxParticles\n },\n move: {\n enable: true,\n speed: responsive.options?.speed\n },\n size: {\n value: responsive.options?.sizeVariations\n }\n }\n }\n }))\n }\n }).then(container => {\n particles._container = container;\n });\n return particles;\n }\n destroy() {\n const container = this._container;\n container?.destroy();\n }\n pauseAnimation() {\n const container = this._container;\n container?.pause();\n }\n resumeAnimation() {\n const container = this._container;\n container?.play();\n }\n}\n\n//# sourceURL=webpack://@tsparticles/pjs/./dist/browser/marcbruederlin/Particles.js?\n}");
|
|
58
58
|
|
|
59
|
-
/***/ }
|
|
59
|
+
/***/ },
|
|
60
60
|
|
|
61
|
-
/***/ "@tsparticles/engine"
|
|
61
|
+
/***/ "@tsparticles/engine"
|
|
62
62
|
/*!*********************************************************************************************************************************!*\
|
|
63
63
|
!*** external {"commonjs":"@tsparticles/engine","commonjs2":"@tsparticles/engine","amd":"@tsparticles/engine","root":"window"} ***!
|
|
64
64
|
\*********************************************************************************************************************************/
|
|
65
|
-
|
|
65
|
+
(module) {
|
|
66
66
|
|
|
67
67
|
module.exports = __WEBPACK_EXTERNAL_MODULE__tsparticles_engine__;
|
|
68
68
|
|
|
69
|
-
/***/ }
|
|
69
|
+
/***/ }
|
|
70
70
|
|
|
71
71
|
/******/ });
|
|
72
72
|
/************************************************************************/
|
|
@@ -80,6 +80,12 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__tsparticles_engine__;
|
|
|
80
80
|
/******/ if (cachedModule !== undefined) {
|
|
81
81
|
/******/ return cachedModule.exports;
|
|
82
82
|
/******/ }
|
|
83
|
+
/******/ // Check if module exists (development only)
|
|
84
|
+
/******/ if (__webpack_modules__[moduleId] === undefined) {
|
|
85
|
+
/******/ var e = new Error("Cannot find module '" + moduleId + "'");
|
|
86
|
+
/******/ e.code = 'MODULE_NOT_FOUND';
|
|
87
|
+
/******/ throw e;
|
|
88
|
+
/******/ }
|
|
83
89
|
/******/ // Create a new module (and put it into the cache)
|
|
84
90
|
/******/ var module = __webpack_module_cache__[moduleId] = {
|
|
85
91
|
/******/ // no module.id needed
|
|
@@ -95,18 +101,6 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__tsparticles_engine__;
|
|
|
95
101
|
/******/ }
|
|
96
102
|
/******/
|
|
97
103
|
/************************************************************************/
|
|
98
|
-
/******/ /* webpack/runtime/compat get default export */
|
|
99
|
-
/******/ (() => {
|
|
100
|
-
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
|
101
|
-
/******/ __webpack_require__.n = (module) => {
|
|
102
|
-
/******/ var getter = module && module.__esModule ?
|
|
103
|
-
/******/ () => (module['default']) :
|
|
104
|
-
/******/ () => (module);
|
|
105
|
-
/******/ __webpack_require__.d(getter, { a: getter });
|
|
106
|
-
/******/ return getter;
|
|
107
|
-
/******/ };
|
|
108
|
-
/******/ })();
|
|
109
|
-
/******/
|
|
110
104
|
/******/ /* webpack/runtime/define property getters */
|
|
111
105
|
/******/ (() => {
|
|
112
106
|
/******/ // define getter functions for harmony exports
|
package/tsparticles.pjs.min.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! For license information please see tsparticles.pjs.min.js.LICENSE.txt */
|
|
2
|
-
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("@tsparticles/engine"));else if("function"==typeof define&&define.amd)define(["@tsparticles/engine"],t);else{var i="object"==typeof exports?t(require("@tsparticles/engine")):t(e.window);for(var a in i)("object"==typeof exports?exports:e)[a]=i[a]}}(this,(e=>(()=>{var t={303
|
|
2
|
+
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("@tsparticles/engine"));else if("function"==typeof define&&define.amd)define(["@tsparticles/engine"],t);else{var i="object"==typeof exports?t(require("@tsparticles/engine")):t(e.window);for(var a in i)("object"==typeof exports?exports:e)[a]=i[a]}}(this,(e=>(()=>{var t={303(t){t.exports=e}},i={};function a(e){var n=i[e];if(void 0!==n)return n.exports;var o=i[e]={exports:{}};return t[e](o,o.exports,a),o.exports}a.d=(e,t)=>{for(var i in t)a.o(t,i)&&!a.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};a.r(n),a.d(n,{initPjs:()=>l});var o=a(303);class s{static init(e){const t=new s,i=e.selector;if(!i)throw new Error("No selector provided");const a=(0,o.safeDocument)().querySelector(i);if(!a)throw new Error("No element found for selector");return o.tsParticles.load({element:a,id:i.replace(".","").replace("!",""),options:{fullScreen:{enable:!1},particles:{color:{value:e.color??"!000000"},links:{color:"random",distance:e.minDistance??120,enable:e.connectParticles??!1},move:{enable:!0,speed:e.speed??.5},number:{value:e.maxParticles??100},size:{value:{min:1,max:e.sizeVariations??3}}},responsive:e.responsive?.map((t=>({maxWidth:t.breakpoint,options:{particles:{color:{value:t.options?.color},links:{distance:t.options?.minDistance,enable:t.options?.connectParticles},number:{value:e.maxParticles},move:{enable:!0,speed:t.options?.speed},size:{value:t.options?.sizeVariations}}}})))}}).then((e=>{t._container=e})),t}destroy(){const e=this._container;e?.destroy()}pauseAnimation(){const e=this._container;e?.pause()}resumeAnimation(){const e=this._container;e?.play()}}const r={particles:{number:{value:400,density:{enable:!0,value_area:800}},color:{value:"#fff"},shape:{type:"circle",stroke:{width:0,color:"#ff0000"},polygon:{nb_sides:5},image:{src:"",width:100,height:100}},opacity:{value:1,random:!1,anim:{enable:!1,speed:2,opacity_min:0,sync:!1}},size:{value:20,random:!1,anim:{enable:!1,speed:20,size_min:0,sync:!1}},line_linked:{enable:!0,distance:100,color:"#fff",opacity:1,width:1},move:{enable:!0,speed:2,direction:"none",random:!1,straight:!1,out_mode:"out",bounce:!1,attract:{enable:!1,rotateX:3e3,rotateY:3e3}}},interactivity:{detect_on:"canvas",events:{onhover:{enable:!0,mode:"grab"},onclick:{enable:!0,mode:"push"},resize:!0},modes:{grab:{distance:100,line_linked:{opacity:1}},bubble:{distance:200,size:80,duration:.4,opacity:1,speed:3},repulse:{distance:200,duration:.4},push:{particles_nb:4},remove:{particles_nb:2}}},retina_detect:!1},l=e=>{e.checkVersion("4.0.0-alpha.0");const{particlesJS:t,pJSDom:i}=(e=>{const t=(t,i)=>{const a=(0,o.deepExtend)(r,i);return e.load({id:t,options:{fullScreen:{enable:!1},detectRetina:a.retina_detect,smooth:!0,interactivity:{detectsOn:a.interactivity.detect_on,events:{onHover:{enable:a.interactivity.events.onhover.enable,mode:a.interactivity.events.onhover.mode},onClick:{enable:a.interactivity.events.onclick.enable,mode:a.interactivity.events.onclick.mode},resize:{enable:a.interactivity.events.resize}},modes:{grab:{distance:a.interactivity.modes.grab.distance,links:{opacity:a.interactivity.modes.grab.line_linked.opacity}},bubble:{distance:a.interactivity.modes.bubble.distance,size:a.interactivity.modes.bubble.size,duration:a.interactivity.modes.bubble.duration,opacity:a.interactivity.modes.bubble.opacity,speed:a.interactivity.modes.bubble.speed},repulse:{distance:a.interactivity.modes.repulse.distance,duration:a.interactivity.modes.repulse.duration},push:{quantity:a.interactivity.modes.push.particles_nb},remove:{quantity:a.interactivity.modes.remove.particles_nb}}},particles:{collisions:{enable:a.particles.move.bounce},number:{value:a.particles.number.value,density:{enable:a.particles.number.density.enable,width:a.particles.number.density.value_area}},color:{value:a.particles.color.value},stroke:{width:a.particles.shape.stroke.width,color:{value:a.particles.shape.stroke.color}},shape:{type:a.particles.shape.type,options:{polygon:{sides:a.particles.shape.polygon.nb_sides},image:{src:a.particles.shape.image.src,width:a.particles.shape.image.width,height:a.particles.shape.image.height}}},opacity:{value:a.particles.opacity.random?{min:a.particles.opacity.anim.enable?a.particles.opacity.anim.opacity_min:0,max:a.particles.opacity.value}:a.particles.opacity.value,animation:{enable:a.particles.opacity.anim.enable,speed:a.particles.opacity.anim.speed,sync:a.particles.opacity.anim.sync}},size:{value:a.particles.size.random?{min:a.particles.size.anim.enable?a.particles.size.anim.size_min:0,max:a.particles.size.value}:a.particles.size.value,animation:{enable:a.particles.size.anim.enable,speed:a.particles.size.anim.speed,sync:a.particles.size.anim.sync}},links:{enable:a.particles.line_linked.enable,distance:a.particles.line_linked.distance,color:a.particles.line_linked.color,opacity:a.particles.line_linked.opacity,width:a.particles.line_linked.width},move:{enable:a.particles.move.enable,speed:a.particles.move.speed/3,direction:a.particles.move.direction,random:a.particles.move.random,straight:a.particles.move.straight,outModes:a.particles.move.out_mode,attract:{enable:a.particles.move.attract.enable,rotate:{x:a.particles.move.attract.rotateX,y:a.particles.move.attract.rotateY}}}}}})};return t.load=(t,i,a)=>{e.load({id:t,url:i}).then((e=>{e&&a(e)})).catch((()=>{a(void 0)}))},t.setOnClickHandler=t=>{e.setOnClickHandler(t)},{particlesJS:t,pJSDom:e.dom()}})(e);return globalThis.particlesJS=t,globalThis.pJSDom=i,globalThis.Particles=s,{particlesJS:t,pJSDom:i,Particles:s}};return n})()));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! tsParticles Particles.js
|
|
1
|
+
/*! tsParticles Particles.js v4.0.0-alpha.0 by Matteo Bruni */
|
package/types/bundle.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
declare const particlesJS: import("./VincentGarreau/IParticlesJS").IParticlesJS, pJSDom: import("@tsparticles/engine").Container[], Particles: typeof import("./marcbruederlin/Particles").
|
|
1
|
+
declare const particlesJS: import("./VincentGarreau/IParticlesJS.js").IParticlesJS, pJSDom: import("@tsparticles/engine").Container[], Particles: typeof import("./marcbruederlin/Particles.js").MBParticles;
|
|
2
2
|
export * from "@tsparticles/engine";
|
|
3
3
|
export { particlesJS, pJSDom, Particles };
|