@novely/particles 0.6.0 → 0.7.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/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +7 -7
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var $d=Object.defineProperty;var c=(i,e)=>()=>(i&&(e=i(i=0)),e);var v=(i,e)=>{for(var t in e)$d(i,t,{get:e[t],enumerable:!0})};var ke,er,tr,tt,ir,ne,or,Eo,nr,sr,rr,ar,G,se=c(()=>{"use strict";ke="generated",er="pointerdown",tr="pointerup",tt="pointerleave",ir="pointerout",ne="pointermove",or="touchstart",Eo="touchend",nr="touchmove",sr="touchcancel",rr="resize",ar="visibilitychange",G="tsParticles - Error"});function Et(i){return typeof i=="boolean"}function re(i){return typeof i=="string"}function he(i){return typeof i=="number"}function xe(i){return typeof i=="object"&&i!==null}function K(i){return Array.isArray(i)}var ae=c(()=>{"use strict"});var pe,cr,Nd,Ae,I,it=c(()=>{"use strict";se();ae();pe={x:0,y:0,z:0},cr=2,Nd=1,Ae=class i{constructor(e,t,o){if(this._updateFromAngle=(n,s)=>{this.x=Math.cos(n)*s,this.y=Math.sin(n)*s},!he(e)&&e){this.x=e.x,this.y=e.y;let n=e;this.z=n.z?n.z:pe.z}else if(e!==void 0&&t!==void 0)this.x=e,this.y=t,this.z=o??pe.z;else throw new Error(`${G} Vector3d not initialized correctly`)}static get origin(){return i.create(pe.x,pe.y,pe.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 i.create(e.x,e.y,e.z)}static create(e,t,o){return new i(e,t,o)}add(e){return i.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 i.clone(this)}distanceTo(e){return this.sub(e).length}distanceToSq(e){return this.sub(e).getLengthSq()}div(e){return i.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**cr+this.y**cr}mult(e){return i.create(this.x*e,this.y*e,this.z*e)}multTo(e){this.x*=e,this.y*=e,this.z*=e}normalize(){let e=this.length;e!=0&&this.multTo(Nd/e)}rotate(e){return i.create(this.x*Math.cos(e)-this.y*Math.sin(e),this.x*Math.sin(e)+this.y*Math.cos(e),pe.z)}setTo(e){this.x=e.x,this.y=e.y;let t=e;this.z=t.z?t.z:pe.z}sub(e){return i.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}},I=class i extends Ae{constructor(e,t){super(e,t,pe.z)}static get origin(){return i.create(pe.x,pe.y)}static clone(e){return i.create(e.x,e.y)}static create(e,t){return new i(e,t)}}});function Tt(i,e){To.get(i)||To.set(i,e)}function Lt(i){return To.get(i)??(e=>e)}function R(){return W(Yd(),0,1-Number.EPSILON)}function W(i,e,t){return Math.min(Math.max(i,e),t)}function Ft(i,e,t,o){return Math.floor((i*t+e*o)/(t+o))}function $(i){let e=X(i),t=0,o=Be(i);return e===o&&(o=t),R()*(e-o)+o}function g(i){return he(i)?i:$(i)}function Be(i){return he(i)?i:i.min}function X(i){return he(i)?i:i.max}function M(i,e){if(i===e||e===void 0&&he(i))return i;let t=Be(i),o=X(i);return e!==void 0?{min:Math.min(t,e),max:Math.max(o,e)}:M(t,o)}function F(i,e){let t=i.x-e.x,o=i.y-e.y,n=2;return{dx:t,dy:o,distance:Math.sqrt(t**n+o**n)}}function A(i,e){return F(i,e).distance}function le(i){return i*Math.PI/180}function lr(i,e,t){if(he(i))return le(i);let o=0,n=.5,s=.25,r=n+s;switch(i){case"top":return-Math.PI*n;case"top-right":return-Math.PI*s;case"right":return o;case"bottom-right":return Math.PI*s;case"bottom":return Math.PI*n;case"bottom-left":return Math.PI*r;case"left":return Math.PI;case"top-left":return-Math.PI*r;case"inside":return Math.atan2(t.y-e.y,t.x-e.x);case"outside":return Math.atan2(e.y-t.y,e.x-t.x);default:return R()*Qd}}function fr(i){let e=I.origin;return e.length=1,e.angle=i,e}function Lo(i,e,t,o){return I.create(i.x*(t-o)/(t+o)+e.x*2*o/(t+o),i.y)}function ur(i){return{x:i.position?.x??R()*i.size.width,y:i.position?.y??R()*i.size.height}}function At(i){return i?i.endsWith("%")?parseFloat(i)/100:parseFloat(i):1}var Yd,To,Xd,Qd,B=c(()=>{"use strict";it();ae();se();Yd=Math.random,To=new Map,Xd=2,Qd=Math.PI*Xd});function fe(){return Zd}function dr(i){let e={bounced:!1},{pSide:t,pOtherSide:o,rectSide:n,rectOtherSide:s,velocity:r,factor:a}=i,l=.5,f=0;return o.min<s.min||o.min>s.max||o.max<s.min||o.max>s.max||(t.max>=n.min&&t.max<=(n.max+n.min)*l&&r>f||t.min<=n.max&&t.min>(n.max+n.min)*l&&r<f)&&(e.velocity=r*-a,e.bounced=!0),e}function Kd(i,e){let t=V(e,o=>i.matches(o));return K(t)?t.some(o=>o):t}function me(){return typeof window>"u"||!window||typeof window.document>"u"||!window.document}function Jd(){return!me()&&typeof matchMedia<"u"}function Bt(i){if(Jd())return matchMedia(i)}function pr(i){if(!(me()||typeof IntersectionObserver>"u"))return new IntersectionObserver(i)}function mr(i){if(!(me()||typeof MutationObserver>"u"))return new MutationObserver(i)}function z(i,e){return i===e||K(e)&&e.indexOf(i)>-1}async function Fo(i,e){try{await document.fonts.load(`${e??"400"} 36px '${i??"Verdana"}'`)}catch{}}function ep(i){return Math.floor(R()*i.length)}function qe(i,e,t=!0){return i[e!==void 0&&t?e%i.length:ep(i)]}function Ve(i,e,t,o,n){return tp(ye(i,o??0),e,t,n)}function tp(i,e,t,o){let n=!0;return(!o||o==="bottom")&&(n=i.top<e.height+t.x),n&&(!o||o==="left")&&(n=i.right>t.x),n&&(!o||o==="right")&&(n=i.left<e.width+t.y),n&&(!o||o==="top")&&(n=i.bottom>t.y),n}function ye(i,e){return{bottom:i.y+e,left:i.x-e,right:i.x+e,top:i.y-e}}function D(i,...e){for(let t of e){if(t==null)continue;if(!xe(t)){i=t;continue}let o=Array.isArray(t);o&&(xe(i)||!i||!Array.isArray(i))?i=[]:!o&&(xe(i)||!i||Array.isArray(i))&&(i={});for(let n in t){if(n==="__proto__")continue;let s=t,r=s[n],a=i;a[n]=xe(r)&&Array.isArray(r)?r.map(l=>D(a[n],l)):D(a[n],r)}}return i}function He(i,e){return!!gr(e,t=>t.enable&&z(i,t.mode))}function We(i,e,t){V(e,o=>{let n=o.mode;o.enable&&z(i,n)&&ip(o,t)})}function ip(i,e){let t=i.selectors;V(t,o=>{e(o,i)})}function qt(i,e){if(!(!e||!i))return gr(i,t=>Kd(e,t.selectors))}function ot(i){return{position:i.getPosition(),radius:i.getRadius(),mass:i.getMass(),velocity:i.velocity,factor:I.create(g(i.options.bounce.horizontal.value),g(i.options.bounce.vertical.value))}}function Vt(i,e){let{x:t,y:o}=i.velocity.sub(e.velocity),[n,s]=[i.position,e.position],{dx:r,dy:a}=F(s,n),l=0;if(t*r+o*a<l)return;let f=-Math.atan2(a,r),u=i.mass,h=e.mass,d=i.velocity.rotate(f),p=e.velocity.rotate(f),x=Lo(d,p,u,h),m=Lo(p,d,u,h),w=x.rotate(-f),y=m.rotate(-f);i.velocity.x=w.x*i.factor.x,i.velocity.y=w.y*i.factor.y,e.velocity.x=y.x*e.factor.x,e.velocity.y=y.y*e.factor.y}function xr(i,e){let t=i.getPosition(),o=i.getRadius(),n=ye(t,o),s=i.options.bounce,r=dr({pSide:{min:n.left,max:n.right},pOtherSide:{min:n.top,max:n.bottom},rectSide:{min:e.left,max:e.right},rectOtherSide:{min:e.top,max:e.bottom},velocity:i.velocity.x,factor:g(s.horizontal.value)});r.bounced&&(r.velocity!==void 0&&(i.velocity.x=r.velocity),r.position!==void 0&&(i.position.x=r.position));let a=dr({pSide:{min:n.top,max:n.bottom},pOtherSide:{min:n.left,max:n.right},rectSide:{min:e.top,max:e.bottom},rectOtherSide:{min:e.left,max:e.right},velocity:i.velocity.y,factor:g(s.vertical.value)});a.bounced&&(a.velocity!==void 0&&(i.velocity.y=a.velocity),a.position!==void 0&&(i.position.y=a.position))}function V(i,e){return K(i)?i.map((o,n)=>e(o,n)):e(i,0)}function Q(i,e,t){return K(i)?qe(i,e,t):i}function gr(i,e){return K(i)?i.find((o,n)=>e(o,n)):e(i,0)?i:void 0}function Ht(i,e){let t=i.value,o=i.animation,n={delayTime:g(o.delay)*1e3,enable:o.enable,value:g(i.value)*e,max:X(t)*e,min:Be(t)*e,loops:0,maxLoops:g(o.count),time:0},s=1;if(o.enable){switch(n.decay=s-g(o.decay),o.mode){case"increase":n.status="increasing";break;case"decrease":n.status="decreasing";break;case"random":n.status=R()>=.5?"increasing":"decreasing";break}let r=o.mode==="auto";switch(o.startValue){case"min":n.value=n.min,r&&(n.status="increasing");break;case"max":n.value=n.max,r&&(n.status="decreasing");break;case"random":default:n.value=$(n),r&&(n.status=R()>=.5?"increasing":"decreasing");break}}return n.initialValue=n.value,n}function op(i,e){if(!(i.mode==="percent")){let{mode:n,...s}=i;return s}return"x"in i?{x:i.x/100*e.width,y:i.y/100*e.height}:{width:i.width/100*e.width,height:i.height/100*e.height}}function Wt(i,e){return op(i,e)}function np(i,e,t,o,n){switch(e){case"max":t>=n&&i.destroy();break;case"min":t<=o&&i.destroy();break}}function Ue(i,e,t,o,n){if(i.destroyed||!e||!e.enable||(e.maxLoops??0)>0&&(e.loops??0)>(e.maxLoops??0))return;let u=(e.velocity??0)*n.factor,h=e.min,d=e.max,p=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"increasing":e.value>=d?(t?e.status="decreasing":e.value-=d,e.loops||(e.loops=0),e.loops++):e.value+=u;break;case"decreasing":e.value<=h?(t?e.status="increasing":e.value+=d,e.loops||(e.loops=0),e.loops++):e.value-=u}e.velocity&&p!==1&&(e.velocity*=p),np(i,o,e.value,h,d),i.destroyed||(e.value=W(e.value,h,d))}}var Zd,U=c(()=>{"use strict";B();se();ae();it();Zd={debug:console.debug,error:console.error,info:console.info,log:console.log,verbose:console.log,warning:console.warn}});var Ut,yr=c(()=>{"use strict";Ut=class{constructor(){this._listeners=new Map}addEventListener(e,t){this.removeEventListener(e,t);let o=this._listeners.get(e);o||(o=[],this._listeners.set(e,o)),o.push(t)}dispatchEvent(e,t){this._listeners.get(e)?.forEach(n=>n(t))}hasEventListener(e){return!!this._listeners.get(e)}removeAllEventListeners(e){e?this._listeners.delete(e):this._listeners=new Map}removeEventListener(e,t){let o=this._listeners.get(e);if(!o)return;let n=o.length,s=o.indexOf(t);if(s<0)return;let a=1;n===a?this._listeners.delete(e):o.splice(s,a)}}});function qo(i){$t.set(i.key,i)}function sp(i){for(let[,l]of $t)if(i.startsWith(l.stringPrefix))return l.parseString(i);let e=/^#?([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i,t=i.replace(e,(l,f,u,h,d)=>f+f+u+u+h+h+(d!==void 0?d+d:"")),o=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i,n=o.exec(t),s=16,r=1,a=255;return n?{a:n[4]!==void 0?parseInt(n[4],s)/a:r,b:parseInt(n[3],s),g:parseInt(n[2],s),r:parseInt(n[1],s)}:void 0}function J(i,e,t=!0){if(!i)return;let o=re(i)?{value:i}:i;if(re(o.value))return vr(o.value,e,t);if(K(o.value))return J({value:qe(o.value,e,t)});for(let[,n]of $t){let s=n.handleRangeColor(o);if(s)return s}}function vr(i,e,t=!0){if(!i)return;let o=re(i)?{value:i}:i;if(re(o.value))return o.value===Gt?wr():rp(o.value);if(K(o.value))return vr({value:qe(o.value,e,t)});for(let[,n]of $t){let s=n.handleColor(o);if(s)return s}}function ge(i,e,t=!0){let o=J(i,e,t);return o?Vo(o):void 0}function Vo(i){let u=i.r/255,h=i.g/255,d=i.b/255,p=Math.max(u,h,d),x=Math.min(u,h,d),m={h:0,l:(p+x)*.5,s:0};return p!==x&&(m.s=m.l<.5?(p-x)/(p+x):(p-x)/(2-p-x),m.h=u===p?(h-d)/(p-x):m.h=h===p?2+(d-u)/(p-x):2*2+(u-h)/(p-x)),m.l*=100,m.s*=100,m.h*=60,m.h<0&&(m.h+=360),m.h>=360&&(m.h-=360),m}function rp(i){return sp(i)}function Me(i){let r=(i.h%360+360)%360,a=Math.max(0,Math.min(100,i.s)),l=Math.max(0,Math.min(100,i.l)),f=r/360,u=a/100,h=l/100,d=255,p=3;if(a===0){let L=Math.round(h*d);return{r:L,g:L,b:L}}let x=.5,m=2,w=(L,Z,oe)=>{if(oe<0&&oe++,oe>1&&oe--,oe*6<1)return L+(Z-L)*6*oe;if(oe*m<1)return Z;if(oe*p<1*m){let Gd=m/p;return L+(Z-L)*(Gd-oe)*6}return L},y=1,k=h<x?h*(y+u):h+u-h*u,C=m*h-k,b=1,O=b/p,P=Math.min(d,d*w(C,k,f+O)),Y=Math.min(d,d*w(C,k,f)),T=Math.min(d,d*w(C,k,f-O));return{r:Math.round(P),g:Math.round(Y),b:Math.round(T)}}function br(i){let e=Me(i);return{a:i.a,b:e.b,g:e.g,r:e.r}}function wr(i){let t=i??0,o=256;return{b:Math.floor($(M(t,o))),g:Math.floor($(M(t,o))),r:Math.floor($(M(t,o)))}}function te(i,e){return`rgba(${i.r}, ${i.g}, ${i.b}, ${e??1})`}function ve(i,e){return`hsla(${i.h}, ${i.s}%, ${i.l}%, ${e??1})`}function nt(i,e,t,o){let n=i,s=e;return n.r===void 0&&(n=Me(i)),s.r===void 0&&(s=Me(e)),{b:Ft(n.b,s.b,t,o),g:Ft(n.g,s.g,t,o),r:Ft(n.r,s.r,t,o)}}function st(i,e,t){if(t===Gt)return wr();if(t===jt){let o=i.getFillColor()??i.getStrokeColor(),n=e?.getFillColor()??e?.getStrokeColor();if(o&&n&&e)return nt(o,n,i.getRadius(),e.getRadius());{let s=o??n;if(s)return Me(s)}}else return t}function Nt(i,e,t){let o=re(i)?i:i.value;return o===Gt?t?J({value:o}):e?Gt:jt:o===jt?jt:J({value:o})}function Ho(i){return i!==void 0?{h:i.h.value,s:i.s.value,l:i.l.value}:void 0}function Yt(i,e,t){let o={h:{enable:!1,value:i.h},s:{enable:!1,value:i.s},l:{enable:!1,value:i.l}};return e&&(Ao(o.h,e.h,t),Ao(o.s,e.s,t),Ao(o.l,e.l,t)),o}function Ao(i,e,t){i.enable=e.enable;let o=0,n=1,s=0,r=0;i.enable?(i.velocity=g(e.speed)/100*t,i.decay=n-g(e.decay),i.status="increasing",i.loops=s,i.maxLoops=g(e.count),i.time=r,i.delayTime=g(e.delay)*1e3,e.sync||(i.velocity*=R(),i.value*=R()),i.initialValue=i.value,i.offset=M(e.offset)):i.velocity=o}function Bo(i,e,t,o){if(!i||!i.enable||(i.maxLoops??0)>0&&(i.loops??0)>(i.maxLoops??0)||(i.time||(i.time=0),(i.delayTime??0)>0&&i.time<(i.delayTime??0)&&(i.time+=o.value),(i.delayTime??0)>0&&i.time<(i.delayTime??0)))return;let u=i.offset?$(i.offset):0,h=(i.velocity??0)*o.factor+u*3.6,d=i.decay??1,p=X(e),x=Be(e);if(!t||i.status==="increasing")i.value+=h,i.value>p&&(i.loops||(i.loops=0),i.loops++,t?i.status="decreasing":i.value-=p);else{i.value-=h;let m=0;i.value<m&&(i.loops||(i.loops=0),i.loops++,i.status="increasing")}i.velocity&&d!==1&&(i.velocity*=d),i.value=W(i.value,x,p)}function Xt(i,e){if(!i)return;let{h:t,s:o,l:n}=i,s={h:{min:0,max:360},s:{min:0,max:100},l:{min:0,max:100}};t&&Bo(t,s.h,!1,e),o&&Bo(o,s.s,!0,e),n&&Bo(n,s.l,!0,e)}var Gt,jt,$t,Ce=c(()=>{"use strict";B();ae();se();U();Gt="random",jt="mid",$t=new Map});function be(i,e,t){i.beginPath(),i.moveTo(e.x,e.y),i.lineTo(t.x,t.y),i.closePath()}function _r(i,e,t){i.fillStyle=t??"rgba(0,0,0,0)",i.fillRect(je.x,je.y,e.width,e.height)}function kr(i,e,t,o){t&&(i.globalAlpha=o,i.drawImage(t,je.x,je.y,e.width,e.height),i.globalAlpha=1)}function Qt(i,e){i.clearRect(je.x,je.y,e.width,e.height)}function Mr(i){let{container:e,context:t,particle:o,delta:n,colorStyles:s,backgroundMask:r,composite:a,radius:l,opacity:f,shadow:u,transform:h}=i,d=o.getPosition(),p=0,x=o.rotation+(o.pathRotation?o.velocity.angle:p),m={sin:Math.sin(x),cos:Math.cos(x)},w=1,y={a:m.cos*(h.a??w),b:m.sin*(h.b??w),c:-m.sin*(h.c??w),d:m.cos*(h.d??w)};t.setTransform(y.a,y.b,y.c,y.d,d.x,d.y),r&&(t.globalCompositeOperation=a);let k=o.shadowColor;u.enable&&k&&(t.shadowBlur=u.blur,t.shadowColor=te(k),t.shadowOffsetX=u.offset.x,t.shadowOffsetY=u.offset.y),s.fill&&(t.fillStyle=s.fill);let C=0,b=o.strokeWidth??C;t.lineWidth=b,s.stroke&&(t.strokeStyle=s.stroke);let O={container:e,context:t,particle:o,radius:l,opacity:f,delta:n,transformData:y,strokeWidth:b};cp(O),lp(O),ap(O),t.globalCompositeOperation="source-over",t.resetTransform()}function ap(i){let{container:e,context:t,particle:o,radius:n,opacity:s,delta:r,transformData:a}=i;if(!o.effect)return;let l=e.effectDrawers.get(o.effect);l&&l.draw({context:t,particle:o,radius:n,opacity:s,delta:r,pixelRatio:e.retina.pixelRatio,transformData:{...a}})}function cp(i){let{container:e,context:t,particle:o,radius:n,opacity:s,delta:r,strokeWidth:a,transformData:l}=i,f=0;if(!o.shape)return;let u=e.shapeDrawers.get(o.shape);u&&(t.beginPath(),u.draw({context:t,particle:o,radius:n,opacity:s,delta:r,pixelRatio:e.retina.pixelRatio,transformData:{...l}}),o.shapeClose&&t.closePath(),a>f&&t.stroke(),o.shapeFill&&t.fill())}function lp(i){let{container:e,context:t,particle:o,radius:n,opacity:s,delta:r,transformData:a}=i;if(!o.shape)return;let l=e.shapeDrawers.get(o.shape);l?.afterDraw&&l.afterDraw({context:t,particle:o,radius:n,opacity:s,delta:r,pixelRatio:e.retina.pixelRatio,transformData:{...a}})}function Cr(i,e,t){e.draw&&e.draw(i,t)}function Rr(i,e,t,o){e.drawParticle&&e.drawParticle(i,t,o)}function Or(i,e,t){return{h:i.h,s:i.s,l:i.l+(e==="darken"?-1:1)*t}}var je,Zt=c(()=>{"use strict";Ce();je={x:0,y:0}});function fp(i,e,t){let o=e[t],n=1;o!==void 0&&(i[t]=(i[t]??n)*o)}function Pr(i,e,t=!1){if(!e)return;let o=i;if(!o)return;let n=o.style;if(n)for(let s in e){let r=e[s];r&&n.setProperty(s,r,t?"important":"")}}var Kt,zr=c(()=>{"use strict";Zt();U();Ce();se();Kt=class{constructor(e){this.container=e,this._applyPostDrawUpdaters=t=>{for(let o of this._postDrawUpdaters)o.afterDraw?.(t)},this._applyPreDrawUpdaters=(t,o,n,s,r,a)=>{for(let l of this._preDrawUpdaters){if(l.getColorStyles){let{fill:f,stroke:u}=l.getColorStyles(o,t,n,s);f&&(r.fill=f),u&&(r.stroke=u)}if(l.getTransformValues){let f=l.getTransformValues(o);for(let u in f)fp(a,f,u)}l.beforeDraw?.(o)}},this._applyResizePlugins=()=>{for(let t of this._resizePlugins)t.resize?.()},this._getPluginParticleColors=t=>{let o,n;for(let s of this._colorPlugins)if(!o&&s.particleFillColor&&(o=ge(s.particleFillColor(t))),!n&&s.particleStrokeColor&&(n=ge(s.particleStrokeColor(t))),o&&n)break;return[o,n]},this._initCover=async()=>{let t=this.container.actualOptions,o=t.backgroundMask.cover,n=o.color;if(n){let s=J(n);if(s){let r={...s,a:o.opacity};this._coverColorStyle=te(r,r.a)}}else await new Promise((s,r)=>{if(!o.image)return;let a=document.createElement("img");a.addEventListener("load",()=>{this._coverImage={image:a,opacity:o.opacity},s()}),a.addEventListener("error",l=>{r(l.error)}),a.src=o.image})},this._initStyle=()=>{let t=this.element,o=this.container.actualOptions;if(t){this._fullScreen?(this._originalStyle=D({},t.style),this._setFullScreenStyle()):this._resetOriginalStyle();for(let n in o.style){if(!n||!o.style)continue;let s=o.style[n];s&&t.style.setProperty(n,s,"important")}}},this._initTrail=async()=>{let t=this.container.actualOptions,o=t.particles.move.trail,n=o.fill;if(!o.enable)return;let s=1,r=s/o.length;if(n.color){let a=J(n.color);if(!a)return;this._trailFill={color:{...a},opacity:r}}else await new Promise((a,l)=>{if(!n.image)return;let f=document.createElement("img");f.addEventListener("load",()=>{this._trailFill={image:f,opacity:r},a()}),f.addEventListener("error",u=>{l(u.error)}),f.src=n.image})},this._paintBase=t=>{this.draw(o=>_r(o,this.size,t))},this._paintImage=(t,o)=>{this.draw(n=>kr(n,this.size,t,o))},this._repairStyle=()=>{let t=this.element;t&&(this._safeMutationObserver(o=>o.disconnect()),this._initStyle(),this.initBackground(),this._safeMutationObserver(o=>o.observe(t,{attributes:!0})))},this._resetOriginalStyle=()=>{let t=this.element,o=this._originalStyle;t&&o&&Pr(t,o)},this._safeMutationObserver=t=>{this._mutationObserver&&t(this._mutationObserver)},this._setFullScreenStyle=()=>{let t=this.element;if(!t)return;let o=10;Pr(t,{position:"fixed",zIndex:this.container.actualOptions.fullScreen.zIndex.toString(o),top:"0",left:"0",width:"100%",height:"100%"},!0)},this.size={height:0,width:0},this._context=null,this._generated=!1,this._preDrawUpdaters=[],this._postDrawUpdaters=[],this._resizePlugins=[],this._colorPlugins=[]}get _fullScreen(){return this.container.actualOptions.fullScreen.enable}clear(){let e=this.container.actualOptions,t=e.particles.move.trail,o=this._trailFill,n=0;e.backgroundMask.enable?this.paint():t.enable&&t.length>n&&o?o.color?this._paintBase(te(o.color,o.opacity)):o.image&&this._paintImage(o.image,o.opacity):e.clear&&this.draw(s=>{Qt(s,this.size)})}destroy(){this.stop(),this._generated?this.element?.remove():this._resetOriginalStyle(),this._preDrawUpdaters=[],this._postDrawUpdaters=[],this._resizePlugins=[],this._colorPlugins=[]}draw(e){let t=this._context;if(t)return e(t)}drawAsync(e){let t=this._context;if(t)return e(t)}drawParticle(e,t){if(e.spawning||e.destroyed)return;let o=e.getRadius();if(o<=0)return;let s=e.getFillColor(),r=e.getStrokeColor()??s,[a,l]=this._getPluginParticleColors(e);a||(a=s),l||(l=r),!(!a&&!l)&&this.draw(f=>{let u=this.container,h=u.actualOptions,d=e.options.zIndex,p=1,x=p-e.zIndexFactor,m=x**d.opacityRate,w=1,y=e.bubble.opacity??e.opacity?.value??w,k=e.strokeOpacity??y,C=y*m,b=k*m,O={},P={fill:a?ve(a,C):void 0};P.stroke=l?ve(l,b):P.fill,this._applyPreDrawUpdaters(f,e,o,C,P,O),Mr({container:u,context:f,particle:e,delta:t,colorStyles:P,backgroundMask:h.backgroundMask.enable,composite:h.backgroundMask.composite,radius:o*x**d.sizeRate,opacity:C,shadow:e.options.shadow,transform:O}),this._applyPostDrawUpdaters(e)})}drawParticlePlugin(e,t,o){this.draw(n=>Rr(n,e,t,o))}drawPlugin(e,t){this.draw(o=>Cr(o,e,t))}async init(){this._safeMutationObserver(e=>e.disconnect()),this._mutationObserver=mr(e=>{for(let t of e)t.type==="attributes"&&t.attributeName==="style"&&this._repairStyle()}),this.resize(),this._initStyle(),await this._initCover();try{await this._initTrail()}catch(e){fe().error(e)}this.initBackground(),this._safeMutationObserver(e=>{this.element&&e.observe(this.element,{attributes:!0})}),this.initUpdaters(),this.initPlugins(),this.paint()}initBackground(){let e=this.container.actualOptions,t=e.background,o=this.element;if(!o)return;let n=o.style;if(n){if(t.color){let s=J(t.color);n.backgroundColor=s?te(s,t.opacity):""}else n.backgroundColor="";n.backgroundImage=t.image||"",n.backgroundPosition=t.position||"",n.backgroundRepeat=t.repeat||"",n.backgroundSize=t.size||""}}initPlugins(){this._resizePlugins=[];for(let[,e]of this.container.plugins)e.resize&&this._resizePlugins.push(e),(e.particleFillColor??e.particleStrokeColor)&&this._colorPlugins.push(e)}initUpdaters(){this._preDrawUpdaters=[],this._postDrawUpdaters=[];for(let e of this.container.particles.updaters)e.afterDraw&&this._postDrawUpdaters.push(e),(e.getColorStyles??e.getTransformValues??e.beforeDraw)&&this._preDrawUpdaters.push(e)}loadCanvas(e){this._generated&&this.element&&this.element.remove(),this._generated=e.dataset&&ke in e.dataset?e.dataset[ke]==="true":this._generated,this.element=e,this.element.ariaHidden="true",this._originalStyle=D({},this.element.style),this.size.height=e.offsetHeight,this.size.width=e.offsetWidth,this._context=this.element.getContext("2d"),this._safeMutationObserver(t=>{this.element&&t.observe(this.element,{attributes:!0})}),this.container.retina.init(),this.initBackground()}paint(){let e=this.container.actualOptions;this.draw(t=>{e.backgroundMask.enable&&e.backgroundMask.cover?(Qt(t,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;let e=this.container,t=e.retina.pixelRatio,o=e.canvas.size,n={width:this.element.offsetWidth*t,height:this.element.offsetHeight*t};if(n.height===o.height&&n.width===o.width&&n.height===this.element.height&&n.width===this.element.width)return!1;let s={...o};return this.element.width=o.width=this.element.offsetWidth*t,this.element.height=o.height=this.element.offsetHeight*t,this.container.started&&e.particles.setResizeFactor({width:o.width/s.width,height:o.height/s.height}),!0}stop(){this._safeMutationObserver(e=>e.disconnect()),this._mutationObserver=void 0,this.draw(e=>Qt(e,this.size))}async windowResize(){if(!this.element||!this.resize())return;let e=this.container,t=e.updateActualOptions();e.particles.setDensity(),this._applyResizePlugins(),t&&await e.refresh()}}});function ue(i,e,t,o,n){if(o){let s={passive:!0};Et(n)?s.capture=n:n!==void 0&&(s=n),i.addEventListener(e,t,s)}else{let s=n;i.removeEventListener(e,t,s)}}var Dr,Jt,Sr=c(()=>{"use strict";U();se();ae();Dr=2;Jt=class{constructor(e){this.container=e,this._doMouseTouchClick=t=>{let o=this.container,n=o.actualOptions;if(this._canPush){let s=o.interactivity.mouse,r=s.position;if(!r)return;s.clickPosition={...r},s.clickTime=new Date().getTime();let a=n.interactivity.events.onClick;V(a.mode,l=>this.container.handleClickMode(l))}t.type==="touchend"&&setTimeout(()=>this._mouseTouchFinish(),500)},this._handleThemeChange=t=>{let o=t,n=this.container,s=n.options,r=s.defaultThemes,a=o.matches?r.dark:r.light,l=s.themes.find(f=>f.name===a);l&&l.default.auto&&n.loadTheme(a)},this._handleVisibilityChange=()=>{let t=this.container,o=t.actualOptions;this._mouseTouchFinish(),o.pauseOnBlur&&(document&&document.hidden?(t.pageHidden=!0,t.pause()):(t.pageHidden=!1,t.animationStatus?t.play(!0):t.draw(!0)))},this._handleWindowResize=()=>{this._resizeTimeout&&(clearTimeout(this._resizeTimeout),delete this._resizeTimeout);let t=async()=>{await this.container.canvas?.windowResize()};this._resizeTimeout=setTimeout(()=>void t(),this.container.actualOptions.interactivity.events.resize.delay*1e3)},this._manageInteractivityListeners=(t,o)=>{let n=this._handlers,s=this.container,r=s.actualOptions,a=s.interactivity.element;if(!a)return;let l=a,f=s.canvas.element;f&&(f.style.pointerEvents=l===f?"initial":"none"),(r.interactivity.events.onHover.enable||r.interactivity.events.onClick.enable)&&(ue(a,ne,n.mouseMove,o),ue(a,or,n.touchStart,o),ue(a,nr,n.touchMove,o),r.interactivity.events.onClick.enable?(ue(a,Eo,n.touchEndClick,o),ue(a,tr,n.mouseUp,o),ue(a,er,n.mouseDown,o)):ue(a,Eo,n.touchEnd,o),ue(a,t,n.mouseLeave,o),ue(a,sr,n.touchCancel,o))},this._manageListeners=t=>{let o=this._handlers,n=this.container,s=n.actualOptions,r=s.interactivity.detectsOn,a=n.canvas.element,l=tt;r==="window"?(n.interactivity.element=window,l=ir):r==="parent"&&a?n.interactivity.element=a.parentElement??a.parentNode:n.interactivity.element=a,this._manageMediaMatch(t),this._manageResize(t),this._manageInteractivityListeners(l,t),document&&ue(document,ar,o.visibilityChange,t,!1)},this._manageMediaMatch=t=>{let o=this._handlers,n=Bt("(prefers-color-scheme: dark)");if(n){if(n.addEventListener!==void 0){ue(n,"change",o.themeChange,t);return}n.addListener!==void 0&&(t?n.addListener(o.oldThemeChange):n.removeListener(o.oldThemeChange))}},this._manageResize=t=>{let o=this._handlers,n=this.container;if(!n.actualOptions.interactivity.events.resize)return;if(typeof ResizeObserver>"u"){ue(window,rr,o.resize,t);return}let r=n.canvas.element;this._resizeObserver&&!t?(r&&this._resizeObserver.unobserve(r),this._resizeObserver.disconnect(),delete this._resizeObserver):!this._resizeObserver&&t&&r&&(this._resizeObserver=new ResizeObserver(a=>{a.find(f=>f.target===r)&&this._handleWindowResize()}),this._resizeObserver.observe(r))},this._mouseDown=()=>{let{interactivity:t}=this.container;if(!t)return;let{mouse:o}=t;o.clicking=!0,o.downPosition=o.position},this._mouseTouchClick=t=>{let o=this.container,n=o.actualOptions,{mouse:s}=o.interactivity;s.inside=!0;let r=!1,a=s.position;if(!(!a||!n.interactivity.events.onClick.enable)){for(let[,l]of o.plugins)if(l.clickPositionValid&&(r=l.clickPositionValid(a),r))break;r||this._doMouseTouchClick(t),s.clicking=!1}},this._mouseTouchFinish=()=>{let t=this.container.interactivity;if(!t)return;let o=t.mouse;delete o.position,delete o.clickPosition,delete o.downPosition,t.status=tt,o.inside=!1,o.clicking=!1},this._mouseTouchMove=t=>{let o=this.container,n=o.actualOptions,s=o.interactivity,r=o.canvas.element;if(!s?.element)return;s.mouse.inside=!0;let a;if(t.type.startsWith("pointer")){this._canPush=!0;let f=t;if(s.element===window){if(r){let u=r.getBoundingClientRect();a={x:f.clientX-u.left,y:f.clientY-u.top}}}else if(n.interactivity.detectsOn==="parent"){let u=f.target,h=f.currentTarget;if(u&&h&&r){let d=u.getBoundingClientRect(),p=h.getBoundingClientRect(),x=r.getBoundingClientRect();a={x:f.offsetX+Dr*d.left-(p.left+x.left),y:f.offsetY+Dr*d.top-(p.top+x.top)}}else a={x:f.offsetX??f.clientX,y:f.offsetY??f.clientY}}else f.target===r&&(a={x:f.offsetX??f.clientX,y:f.offsetY??f.clientY})}else if(this._canPush=t.type!=="touchmove",r){let f=t,u=1,h=f.touches[f.touches.length-u],d=r.getBoundingClientRect(),p=0;a={x:h.clientX-(d.left??p),y:h.clientY-(d.top??p)}}let l=o.retina.pixelRatio;a&&(a.x*=l,a.y*=l),s.mouse.position=a,s.status=ne},this._touchEnd=t=>{let o=t,n=Array.from(o.changedTouches);for(let s of n)this._touches.delete(s.identifier);this._mouseTouchFinish()},this._touchEndClick=t=>{let o=t,n=Array.from(o.changedTouches);for(let s of n)this._touches.delete(s.identifier);this._mouseTouchClick(t)},this._touchStart=t=>{let o=t,n=Array.from(o.changedTouches);for(let s of n)this._touches.set(s.identifier,performance.now());this._mouseTouchMove(t)},this._canPush=!0,this._touches=new Map,this._handlers={mouseDown:()=>this._mouseDown(),mouseLeave:()=>this._mouseTouchFinish(),mouseMove:t=>this._mouseTouchMove(t),mouseUp:t=>this._mouseTouchClick(t),touchStart:t=>this._touchStart(t),touchMove:t=>this._mouseTouchMove(t),touchEnd:t=>this._touchEnd(t),touchCancel:t=>this._touchEnd(t),touchEndClick:t=>this._touchEndClick(t),visibilityChange:()=>this._handleVisibilityChange(),themeChange:t=>this._handleThemeChange(t),oldThemeChange:t=>this._handleThemeChange(t),resize:()=>{this._handleWindowResize()}}}addListeners(){this._manageListeners(!0)}removeListeners(){this._manageListeners(!1)}}});var S,Re=c(()=>{"use strict";ae();S=class i{constructor(){this.value=""}static create(e,t){let o=new i;return o.load(e),t!==void 0&&(re(t)||K(t)?o.load({value:t}):o.load(t)),o}load(e){e?.value!==void 0&&(this.value=e.value)}}});var ei,Wo=c(()=>{"use strict";Re();ei=class{constructor(){this.color=new S,this.color.value="",this.image="",this.position="",this.repeat="",this.size="",this.opacity=1}load(e){e&&(e.color!==void 0&&(this.color=S.create(this.color,e.color)),e.image!==void 0&&(this.image=e.image),e.position!==void 0&&(this.position=e.position),e.repeat!==void 0&&(this.repeat=e.repeat),e.size!==void 0&&(this.size=e.size),e.opacity!==void 0&&(this.opacity=e.opacity))}}});var ti,Uo=c(()=>{"use strict";Re();ti=class{constructor(){this.opacity=1}load(e){e&&(e.color!==void 0&&(this.color=S.create(this.color,e.color)),e.image!==void 0&&(this.image=e.image),e.opacity!==void 0&&(this.opacity=e.opacity))}}});var ii,jo=c(()=>{"use strict";Uo();ae();ii=class{constructor(){this.composite="destination-out",this.cover=new ti,this.enable=!1}load(e){if(e){if(e.composite!==void 0&&(this.composite=e.composite),e.cover!==void 0){let t=e.cover,o=re(e.cover)?{color:e.cover}:e.cover;this.cover.load(t.color!==void 0||t.image!==void 0?t:{color:o})}e.enable!==void 0&&(this.enable=e.enable)}}}});var oi,Go=c(()=>{"use strict";oi=class{constructor(){this.enable=!0,this.zIndex=0}load(e){e&&(e.enable!==void 0&&(this.enable=e.enable),e.zIndex!==void 0&&(this.zIndex=e.zIndex))}}});var ni,si=c(()=>{"use strict";ni=class{constructor(){this.enable=!1,this.mode=[]}load(e){e&&(e.enable!==void 0&&(this.enable=e.enable),e.mode!==void 0&&(this.mode=e.mode))}}});var rt,ri=c(()=>{"use strict";rt=class{constructor(){this.selectors=[],this.enable=!1,this.mode=[],this.type="circle"}load(e){e&&(e.selectors!==void 0&&(this.selectors=e.selectors),e.enable!==void 0&&(this.enable=e.enable),e.mode!==void 0&&(this.mode=e.mode),e.type!==void 0&&(this.type=e.type))}}});var ai,$o=c(()=>{"use strict";ai=class{constructor(){this.enable=!1,this.force=2,this.smooth=10}load(e){e&&(e.enable!==void 0&&(this.enable=e.enable),e.force!==void 0&&(this.force=e.force),e.smooth!==void 0&&(this.smooth=e.smooth))}}});var ci,No=c(()=>{"use strict";$o();ci=class{constructor(){this.enable=!1,this.mode=[],this.parallax=new ai}load(e){e&&(e.enable!==void 0&&(this.enable=e.enable),e.mode!==void 0&&(this.mode=e.mode),this.parallax.load(e.parallax))}}});var li,Yo=c(()=>{"use strict";li=class{constructor(){this.delay=.5,this.enable=!0}load(e){e!==void 0&&(e.delay!==void 0&&(this.delay=e.delay),e.enable!==void 0&&(this.enable=e.enable))}}});var fi,Xo=c(()=>{"use strict";si();ri();No();Yo();U();fi=class{constructor(){this.onClick=new ni,this.onDiv=new rt,this.onHover=new ci,this.resize=new li}load(e){if(!e)return;this.onClick.load(e.onClick);let t=e.onDiv;t!==void 0&&(this.onDiv=V(t,o=>{let n=new rt;return n.load(o),n})),this.onHover.load(e.onHover),this.resize.load(e.resize)}}});var ui,Qo=c(()=>{"use strict";ui=class{constructor(e,t){this._engine=e,this._container=t}load(e){if(!e||!this._container)return;let t=this._engine.interactors.get(this._container);if(t)for(let o of t)o.loadModeOptions&&o.loadModeOptions(this,e)}}});var Ge,hi=c(()=>{"use strict";Xo();Qo();Ge=class{constructor(e,t){this.detectsOn="window",this.events=new fi,this.modes=new ui(e,t)}load(e){if(!e)return;let t=e.detectsOn;t!==void 0&&(this.detectsOn=t),this.events.load(e.events),this.modes.load(e.modes)}}});var Ir,di,Zo=c(()=>{"use strict";U();Ir=50,di=class{load(e){e&&(e.position&&(this.position={x:e.position.x??Ir,y:e.position.y??Ir,mode:e.position.mode??"percent"}),e.options&&(this.options=D({},e.options)))}}});var pi,Ko=c(()=>{"use strict";U();pi=class{constructor(){this.maxWidth=1/0,this.options={},this.mode="canvas"}load(e){e&&(e.maxWidth!==void 0&&(this.maxWidth=e.maxWidth),e.mode!==void 0&&(e.mode==="screen"?this.mode="screen":this.mode="canvas"),e.options!==void 0&&(this.options=D({},e.options)))}}});var mi,Jo=c(()=>{"use strict";mi=class{constructor(){this.auto=!1,this.mode="any",this.value=!1}load(e){e&&(e.auto!==void 0&&(this.auto=e.auto),e.mode!==void 0&&(this.mode=e.mode),e.value!==void 0&&(this.value=e.value))}}});var xi,en=c(()=>{"use strict";Jo();U();xi=class{constructor(){this.name="",this.default=new mi}load(e){e&&(e.name!==void 0&&(this.name=e.name),this.default.load(e.default),e.options!==void 0&&(this.options=D({},e.options)))}}});var Oe,we,$e=c(()=>{"use strict";B();Oe=class{constructor(){this.count=0,this.enable=!1,this.speed=1,this.decay=0,this.delay=0,this.sync=!1}load(e){e&&(e.count!==void 0&&(this.count=M(e.count)),e.enable!==void 0&&(this.enable=e.enable),e.speed!==void 0&&(this.speed=M(e.speed)),e.decay!==void 0&&(this.decay=M(e.decay)),e.delay!==void 0&&(this.delay=M(e.delay)),e.sync!==void 0&&(this.sync=e.sync))}},we=class extends Oe{constructor(){super(),this.mode="auto",this.startValue="random"}load(e){super.load(e),e&&(e.mode!==void 0&&(this.mode=e.mode),e.startValue!==void 0&&(this.startValue=e.startValue))}}});var Ne,tn=c(()=>{"use strict";$e();B();Ne=class extends Oe{constructor(){super(),this.offset=0,this.sync=!0}load(e){super.load(e),e&&e.offset!==void 0&&(this.offset=M(e.offset))}}});var gi,on=c(()=>{"use strict";tn();gi=class{constructor(){this.h=new Ne,this.s=new Ne,this.l=new Ne}load(e){e&&(this.h.load(e.h),this.s.load(e.s),this.l.load(e.l))}}});var Pe,yi=c(()=>{"use strict";ae();on();Re();Pe=class i extends S{constructor(){super(),this.animation=new gi}static create(e,t){let o=new i;return o.load(e),t!==void 0&&(re(t)||K(t)?o.load({value:t}):o.load(t)),o}load(e){if(super.load(e),!e)return;let t=e.animation;t!==void 0&&(t.enable!==void 0?this.animation.h.load(t):this.animation.load(e.animation))}}});var vi,nn=c(()=>{"use strict";vi=class{constructor(){this.speed=2}load(e){e&&e.speed!==void 0&&(this.speed=e.speed)}}});var bi,sn=c(()=>{"use strict";bi=class{constructor(){this.enable=!0,this.retries=0}load(e){e&&(e.enable!==void 0&&(this.enable=e.enable),e.retries!==void 0&&(this.retries=e.retries))}}});var ee,rn,Ye,ze=c(()=>{"use strict";$e();B();ee=class{constructor(){this.value=0}load(e){e&&e.value!==void 0&&(this.value=M(e.value))}},rn=class extends ee{constructor(){super(),this.animation=new Oe}load(e){if(super.load(e),!e)return;let t=e.animation;t!==void 0&&this.animation.load(t)}},Ye=class extends rn{constructor(){super(),this.animation=new we}load(e){super.load(e)}}});var at,an=c(()=>{"use strict";ze();at=class extends ee{constructor(){super(),this.value=1}}});var Xe,wi=c(()=>{"use strict";an();Xe=class{constructor(){this.horizontal=new at,this.vertical=new at}load(e){e&&(this.horizontal.load(e.horizontal),this.vertical.load(e.vertical))}}});var _i,cn=c(()=>{"use strict";nn();sn();wi();B();_i=class{constructor(){this.absorb=new vi,this.bounce=new Xe,this.enable=!1,this.maxSpeed=50,this.mode="bounce",this.overlap=new bi}load(e){e&&(this.absorb.load(e.absorb),this.bounce.load(e.bounce),e.enable!==void 0&&(this.enable=e.enable),e.maxSpeed!==void 0&&(this.maxSpeed=M(e.maxSpeed)),e.mode!==void 0&&(this.mode=e.mode),this.overlap.load(e.overlap))}}});var ki,Er=c(()=>{"use strict";U();ki=class{constructor(){this.close=!0,this.fill=!0,this.options={},this.type=[]}load(e){if(!e)return;let t=e.options;if(t!==void 0)for(let o in t){let n=t[o];n&&(this.options[o]=D(this.options[o]??{},n))}e.close!==void 0&&(this.close=e.close),e.fill!==void 0&&(this.fill=e.fill),e.type!==void 0&&(this.type=e.type)}}});var Mi,ln=c(()=>{"use strict";B();Mi=class{constructor(){this.offset=0,this.value=90}load(e){e&&(e.offset!==void 0&&(this.offset=M(e.offset)),e.value!==void 0&&(this.value=M(e.value)))}}});var Ci,fn=c(()=>{"use strict";B();Ci=class{constructor(){this.distance=200,this.enable=!1,this.rotate={x:3e3,y:3e3}}load(e){if(e&&(e.distance!==void 0&&(this.distance=M(e.distance)),e.enable!==void 0&&(this.enable=e.enable),e.rotate)){let t=e.rotate.x;t!==void 0&&(this.rotate.x=t);let o=e.rotate.y;o!==void 0&&(this.rotate.y=o)}}}});var Ri,un=c(()=>{"use strict";Ri=class{constructor(){this.x=50,this.y=50,this.mode="percent",this.radius=0}load(e){e&&(e.x!==void 0&&(this.x=e.x),e.y!==void 0&&(this.y=e.y),e.mode!==void 0&&(this.mode=e.mode),e.radius!==void 0&&(this.radius=e.radius))}}});var Oi,hn=c(()=>{"use strict";B();Oi=class{constructor(){this.acceleration=9.81,this.enable=!1,this.inverse=!1,this.maxSpeed=50}load(e){e&&(e.acceleration!==void 0&&(this.acceleration=M(e.acceleration)),e.enable!==void 0&&(this.enable=e.enable),e.inverse!==void 0&&(this.inverse=e.inverse),e.maxSpeed!==void 0&&(this.maxSpeed=M(e.maxSpeed)))}}});var Pi,dn=c(()=>{"use strict";ze();U();Pi=class{constructor(){this.clamp=!0,this.delay=new ee,this.enable=!1,this.options={}}load(e){e&&(e.clamp!==void 0&&(this.clamp=e.clamp),this.delay.load(e.delay),e.enable!==void 0&&(this.enable=e.enable),this.generator=e.generator,e.options&&(this.options=D(this.options,e.options)))}}});var zi,Tr=c(()=>{"use strict";Re();zi=class{load(e){e&&(e.color!==void 0&&(this.color=S.create(this.color,e.color)),e.image!==void 0&&(this.image=e.image))}}});var Di,pn=c(()=>{"use strict";Tr();Di=class{constructor(){this.enable=!1,this.length=10,this.fill=new zi}load(e){e&&(e.enable!==void 0&&(this.enable=e.enable),e.fill!==void 0&&this.fill.load(e.fill),e.length!==void 0&&(this.length=e.length))}}});var Si,mn=c(()=>{"use strict";Si=class{constructor(){this.default="out"}load(e){e&&(e.default!==void 0&&(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)}}});var Ii,xn=c(()=>{"use strict";U();B();Ii=class{constructor(){this.acceleration=0,this.enable=!1}load(e){e&&(e.acceleration!==void 0&&(this.acceleration=M(e.acceleration)),e.enable!==void 0&&(this.enable=e.enable),e.position&&(this.position=D({},e.position)))}}});var Ei,gn=c(()=>{"use strict";ae();ln();fn();un();hn();dn();pn();mn();xn();B();Ei=class{constructor(){this.angle=new Mi,this.attract=new Ci,this.center=new Ri,this.decay=0,this.distance={},this.direction="none",this.drift=0,this.enable=!1,this.gravity=new Oi,this.path=new Pi,this.outModes=new Si,this.random=!1,this.size=!1,this.speed=2,this.spin=new Ii,this.straight=!1,this.trail=new Di,this.vibrate=!1,this.warp=!1}load(e){if(!e)return;this.angle.load(he(e.angle)?{value:e.angle}:e.angle),this.attract.load(e.attract),this.center.load(e.center),e.decay!==void 0&&(this.decay=M(e.decay)),e.direction!==void 0&&(this.direction=e.direction),e.distance!==void 0&&(this.distance=he(e.distance)?{horizontal:e.distance,vertical:e.distance}:{...e.distance}),e.drift!==void 0&&(this.drift=M(e.drift)),e.enable!==void 0&&(this.enable=e.enable),this.gravity.load(e.gravity);let t=e.outModes;t!==void 0&&(xe(t)?this.outModes.load(t):this.outModes.load({default:t})),this.path.load(e.path),e.random!==void 0&&(this.random=e.random),e.size!==void 0&&(this.size=e.size),e.speed!==void 0&&(this.speed=M(e.speed)),this.spin.load(e.spin),e.straight!==void 0&&(this.straight=e.straight),this.trail.load(e.trail),e.vibrate!==void 0&&(this.vibrate=e.vibrate),e.warp!==void 0&&(this.warp=e.warp)}}});var Ti,yn=c(()=>{"use strict";$e();Ti=class extends we{constructor(){super(),this.destroy="none",this.speed=2}load(e){super.load(e),e&&e.destroy!==void 0&&(this.destroy=e.destroy)}}});var Li,vn=c(()=>{"use strict";yn();ze();Li=class extends Ye{constructor(){super(),this.animation=new Ti,this.value=1}load(e){if(!e)return;super.load(e);let t=e.animation;t!==void 0&&this.animation.load(t)}}});var Fi,bn=c(()=>{"use strict";Fi=class{constructor(){this.enable=!1,this.width=1920,this.height=1080}load(e){if(!e)return;e.enable!==void 0&&(this.enable=e.enable);let t=e.width;t!==void 0&&(this.width=t);let o=e.height;o!==void 0&&(this.height=o)}}});var Ai,wn=c(()=>{"use strict";Ai=class{constructor(){this.mode="delete",this.value=0}load(e){e&&(e.mode!==void 0&&(this.mode=e.mode),e.value!==void 0&&(this.value=e.value))}}});var Bi,_n=c(()=>{"use strict";bn();wn();Bi=class{constructor(){this.density=new Fi,this.limit=new Ai,this.value=0}load(e){e&&(this.density.load(e.density),this.limit.load(e.limit),e.value!==void 0&&(this.value=e.value))}}});var qi,kn=c(()=>{"use strict";Re();qi=class{constructor(){this.blur=0,this.color=new S,this.enable=!1,this.offset={x:0,y:0},this.color.value="#000"}load(e){e&&(e.blur!==void 0&&(this.blur=e.blur),this.color=S.create(this.color,e.color),e.enable!==void 0&&(this.enable=e.enable),e.offset!==void 0&&(e.offset.x!==void 0&&(this.offset.x=e.offset.x),e.offset.y!==void 0&&(this.offset.y=e.offset.y)))}}});var Vi,Mn=c(()=>{"use strict";U();Vi=class{constructor(){this.close=!0,this.fill=!0,this.options={},this.type="circle"}load(e){if(!e)return;let t=e.options;if(t!==void 0)for(let o in t){let n=t[o];n&&(this.options[o]=D(this.options[o]??{},n))}e.close!==void 0&&(this.close=e.close),e.fill!==void 0&&(this.fill=e.fill),e.type!==void 0&&(this.type=e.type)}}});var Hi,Cn=c(()=>{"use strict";$e();Hi=class extends we{constructor(){super(),this.destroy="none",this.speed=5}load(e){super.load(e),e&&e.destroy!==void 0&&(this.destroy=e.destroy)}}});var Wi,Rn=c(()=>{"use strict";ze();Cn();Wi=class extends Ye{constructor(){super(),this.animation=new Hi,this.value=3}load(e){if(super.load(e),!e)return;let t=e.animation;t!==void 0&&this.animation.load(t)}}});var ct,On=c(()=>{"use strict";yi();B();ct=class{constructor(){this.width=0}load(e){e&&(e.color!==void 0&&(this.color=Pe.create(this.color,e.color)),e.width!==void 0&&(this.width=M(e.width)),e.opacity!==void 0&&(this.opacity=M(e.opacity)))}}});var Ui,Pn=c(()=>{"use strict";ze();Ui=class extends ee{constructor(){super(),this.opacityRate=1,this.sizeRate=1,this.velocityRate=1}load(e){super.load(e),e&&(e.opacityRate!==void 0&&(this.opacityRate=e.opacityRate),e.sizeRate!==void 0&&(this.sizeRate=e.sizeRate),e.velocityRate!==void 0&&(this.velocityRate=e.velocityRate))}}});var ji,zn=c(()=>{"use strict";U();yi();cn();Er();gn();vn();wi();_n();kn();Mn();Rn();On();Pn();ji=class{constructor(e,t){this._engine=e,this._container=t,this.bounce=new Xe,this.collisions=new _i,this.color=new Pe,this.color.value="#fff",this.effect=new ki,this.groups={},this.move=new Ei,this.number=new Bi,this.opacity=new Li,this.reduceDuplicates=!1,this.shadow=new qi,this.shape=new Vi,this.size=new Wi,this.stroke=new ct,this.zIndex=new Ui}load(e){if(!e)return;if(e.groups!==void 0)for(let o of Object.keys(e.groups)){if(!Object.hasOwn(e.groups,o))continue;let n=e.groups[o];n!==void 0&&(this.groups[o]=D(this.groups[o]??{},n))}e.reduceDuplicates!==void 0&&(this.reduceDuplicates=e.reduceDuplicates),this.bounce.load(e.bounce),this.color.load(Pe.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.shadow.load(e.shadow),this.zIndex.load(e.zIndex),this.collisions.load(e.collisions),e.interactivity!==void 0&&(this.interactivity=D({},e.interactivity));let t=e.stroke;if(t&&(this.stroke=V(t,o=>{let n=new ct;return n.load(o),n})),this._container){let o=this._engine.updaters.get(this._container);if(o)for(let s of o)s.loadOptions&&s.loadOptions(this,e);let n=this._engine.interactors.get(this._container);if(n)for(let s of n)s.loadParticlesOptions&&s.loadParticlesOptions(this,e)}}}});function Dn(i,...e){for(let t of e)i.load(t)}function Gi(i,e,...t){let o=new ji(i,e);return Dn(o,...t),o}var lt=c(()=>{"use strict";zn()});var $i,Sn=c(()=>{"use strict";U();Wo();jo();Go();hi();Zo();Ko();en();ae();lt();B();$i=class{constructor(e,t){this._findDefaultTheme=o=>this.themes.find(n=>n.default.value&&n.default.mode===o)??this.themes.find(n=>n.default.value&&n.default.mode==="any"),this._importPreset=o=>{this.load(this._engine.getPreset(o))},this._engine=e,this._container=t,this.autoPlay=!0,this.background=new ei,this.backgroundMask=new ii,this.clear=!0,this.defaultThemes={},this.delay=0,this.fullScreen=new oi,this.detectRetina=!0,this.duration=0,this.fpsLimit=120,this.interactivity=new Ge(e,t),this.manualParticles=[],this.particles=Gi(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(!e)return;e.preset!==void 0&&V(e.preset,r=>this._importPreset(r)),e.autoPlay!==void 0&&(this.autoPlay=e.autoPlay),e.clear!==void 0&&(this.clear=e.clear),e.key!==void 0&&(this.key=e.key),e.name!==void 0&&(this.name=e.name),e.delay!==void 0&&(this.delay=M(e.delay));let t=e.detectRetina;t!==void 0&&(this.detectRetina=t),e.duration!==void 0&&(this.duration=M(e.duration));let o=e.fpsLimit;o!==void 0&&(this.fpsLimit=o),e.pauseOnBlur!==void 0&&(this.pauseOnBlur=e.pauseOnBlur),e.pauseOnOutsideViewport!==void 0&&(this.pauseOnOutsideViewport=e.pauseOnOutsideViewport),e.zLayers!==void 0&&(this.zLayers=e.zLayers),this.background.load(e.background);let n=e.fullScreen;Et(n)?this.fullScreen.enable=n:this.fullScreen.load(n),this.backgroundMask.load(e.backgroundMask),this.interactivity.load(e.interactivity),e.manualParticles&&(this.manualParticles=e.manualParticles.map(r=>{let a=new di;return a.load(r),a})),this.particles.load(e.particles),this.style=D(this.style,e.style),this._engine.loadOptions(this,e),e.smooth!==void 0&&(this.smooth=e.smooth);let s=this._engine.interactors.get(this._container);if(s)for(let r of s)r.loadOptions&&r.loadOptions(this,e);if(e.responsive!==void 0)for(let r of e.responsive){let a=new pi;a.load(r),this.responsive.push(a)}if(this.responsive.sort((r,a)=>r.maxWidth-a.maxWidth),e.themes!==void 0)for(let r of e.themes){let a=this.themes.find(l=>l.name===r.name);if(a)a.load(r);else{let l=new xi;l.load(r),this.themes.push(l)}}this.defaultThemes.dark=this._findDefaultTheme("dark")?.name,this.defaultThemes.light=this._findDefaultTheme("light")?.name}setResponsive(e,t,o){this.load(o);let n=this.responsive.find(s=>s.mode==="screen"&&screen?s.maxWidth>screen.availWidth:s.maxWidth*t>e);return this.load(n?.options),n?.maxWidth}setTheme(e){if(e){let t=this.themes.find(o=>o.name===e);t&&this.load(t.options)}else{let t=Bt("(prefers-color-scheme: dark)"),o=t&&t.matches,n=this._findDefaultTheme(o?"dark":"light");n&&this.load(n.options)}}}});var Ni,Lr=c(()=>{"use strict";Ni=class{constructor(e,t){this.container=t,this._engine=e,this._interactors=[],this._externalInteractors=[],this._particleInteractors=[]}externalInteract(e){for(let t of this._externalInteractors)t.isEnabled()&&t.interact(e)}handleClickMode(e){for(let t of this._externalInteractors)t.handleClickMode?.(e)}async init(){this._interactors=await this._engine.getInteractors(this.container,!0),this._externalInteractors=[],this._particleInteractors=[];for(let e of this._interactors){switch(e.type){case"external":this._externalInteractors.push(e);break;case"particles":this._particleInteractors.push(e);break}e.init()}}particlesInteract(e,t){for(let o of this._externalInteractors)o.clear(e,t);for(let o of this._particleInteractors)o.isEnabled(e)&&o.interact(e,t)}reset(e){for(let t of this._externalInteractors)t.isEnabled()&&t.reset(e);for(let t of this._particleInteractors)t.isEnabled(e)&&t.reset(e)}}});function hp(i,e,t,o){let n=e.options[i];if(n)return D({close:e.close,fill:e.fill},Q(n,t,o))}function dp(i,e,t,o){let n=e.options[i];if(n)return D({close:e.close,fill:e.fill},Q(n,t,o))}function Ar(i){if(!z(i.outMode,i.checkModes))return;let e=i.radius*In;i.coord>i.maxCoord-e?i.setCb(-i.radius):i.coord<e&&i.setCb(i.radius)}var Fr,In,Yi,up,Xi,Br=c(()=>{"use strict";it();B();U();se();Ce();hi();Zt();lt();Fr=0,In=2,Yi=.5,up=2;Xi=class{constructor(e,t){this.container=t,this._calcPosition=(o,n,s,r=Fr)=>{for(let[,x]of o.plugins){let m=x.particlePosition!==void 0?x.particlePosition(n,this):void 0;if(m)return Ae.create(m.x,m.y,s)}let a=o.canvas.size,l=ur({size:a,position:n}),f=Ae.create(l.x,l.y,s),u=this.getRadius(),h=this.options.move.outModes,d=x=>{Ar({outMode:x,checkModes:["bounce"],coord:f.x,maxCoord:o.canvas.size.width,setCb:m=>f.x+=m,radius:u})},p=x=>{Ar({outMode:x,checkModes:["bounce"],coord:f.y,maxCoord:o.canvas.size.height,setCb:m=>f.y+=m,radius:u})};return d(h.left??h.default),d(h.right??h.default),p(h.top??h.default),p(h.bottom??h.default),this._checkOverlap(f,r)?this._calcPosition(o,void 0,s,r+1):f},this._calculateVelocity=()=>{let o=fr(this.direction),n=o.copy(),s=this.options.move;if(s.direction==="inside"||s.direction==="outside")return n;let r=le(g(s.angle.value)),a=le(g(s.angle.offset)),l={left:a-r*Yi,right:a+r*Yi};return s.straight||(n.angle+=$(M(l.left,l.right))),s.random&&typeof s.speed=="number"&&(n.length*=R()),n},this._checkOverlap=(o,n=Fr)=>{let s=this.options.collisions,r=this.getRadius();if(!s.enable)return!1;let a=s.overlap;if(a.enable)return!1;let l=a.retries;if(l>=0&&n>l)throw new Error(`${G} particle is overlapping and can't be placed`);return!!this.container.particles.find(u=>A(o,u.position)<r+u.getRadius())},this._getRollColor=o=>{if(!o||!this.roll||!this.backColor&&!this.roll.alter)return o;let n=1,s=0,r=this.roll.horizontal&&this.roll.vertical?In*n:n,a=this.roll.horizontal?Math.PI*Yi:s;return Math.floor(((this.roll.angle??s)+a)/(Math.PI/r))%In?this.backColor?this.backColor:this.roll.alter?Or(o,this.roll.alter.type,this.roll.alter.value):o:o},this._initPosition=o=>{let n=this.container,s=g(this.options.zIndex.value),r=0;this.position=this._calcPosition(n,o,W(s,r,n.zLayers)),this.initialPosition=this.position.copy();let a=n.canvas.size,l=0;switch(this.moveCenter={...Wt(this.options.move.center,a),radius:this.options.move.center.radius??l,mode:this.options.move.center.mode??"percent"},this.direction=lr(this.options.move.direction,this.position,this.moveCenter),this.options.move.direction){case"inside":this.outType="inside";break;case"outside":this.outType="outside";break}this.offset=I.origin},this._engine=e}destroy(e){if(this.unbreakable||this.destroyed)return;this.destroyed=!0,this.bubble.inRange=!1,this.slow.inRange=!1;let t=this.container,o=this.pathGenerator;t.shapeDrawers.get(this.shape)?.particleDestroy?.(this);for(let[,s]of t.plugins)s.particleDestroyed?.(this,e);for(let s of t.particles.updaters)s.particleDestroyed?.(this,e);o?.reset(this),this._engine.dispatchEvent("particleDestroyed",{container:this.container,data:{particle:this}})}draw(e){let t=this.container,o=t.canvas;for(let[,n]of t.plugins)o.drawParticlePlugin(n,this,e);o.drawParticle(this,e)}getFillColor(){return this._getRollColor(this.bubble.color??Ho(this.color))}getMass(){return this.getRadius()**up*Math.PI*Yi}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??Ho(this.strokeColor))}init(e,t,o,n){let s=this.container,r=this._engine;this.id=e,this.group=n,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.rotation=0,this.misplaced=!1,this.retina={maxDistance:{}},this.outType="normal",this.ignoresResizeRatio=!0;let a=s.retina.pixelRatio,l=s.actualOptions,f=Gi(this._engine,s,l.particles),u=f.effect.type,h=f.shape.type,{reduceDuplicates:d}=f;this.effect=Q(u,this.id,d),this.shape=Q(h,this.id,d);let p=f.effect,x=f.shape;if(o){if(o.effect?.type){let T=o.effect.type,L=Q(T,this.id,d);L&&(this.effect=L,p.load(o.effect))}if(o.shape?.type){let T=o.shape.type,L=Q(T,this.id,d);L&&(this.shape=L,x.load(o.shape))}}this.effectData=hp(this.effect,p,this.id,d),this.shapeData=dp(this.shape,x,this.id,d),f.load(o);let m=this.effectData;m&&f.load(m.particles);let w=this.shapeData;w&&f.load(w.particles);let y=new Ge(r,s);y.load(s.actualOptions.interactivity),y.load(f.interactivity),this.interactivity=y,this.effectFill=m?.fill??f.effect.fill,this.effectClose=m?.close??f.effect.close,this.shapeFill=w?.fill??f.shape.fill,this.shapeClose=w?.close??f.shape.close,this.options=f;let k=this.options.move.path;this.pathDelay=g(k.delay.value)*1e3,k.generator&&(this.pathGenerator=this._engine.getPathGenerator(k.generator),this.pathGenerator&&s.addPath(k.generator,this.pathGenerator)&&this.pathGenerator.init(s)),s.retina.initParticle(this),this.size=Ht(this.options.size,a),this.bubble={inRange:!1},this.slow={inRange:!1,factor:1},this._initPosition(t),this.initialVelocity=this._calculateVelocity(),this.velocity=this.initialVelocity.copy();let C=1;this.moveDecay=C-g(this.options.move.decay);let b=s.particles;b.setLastZIndex(this.position.z),this.zIndexFactor=this.position.z/s.zLayers,this.sides=24;let O=s.effectDrawers.get(this.effect);O||(O=this._engine.getEffectDrawer(this.effect),O&&s.effectDrawers.set(this.effect,O)),O?.loadEffect&&O.loadEffect(this);let P=s.shapeDrawers.get(this.shape);P||(P=this._engine.getShapeDrawer(this.shape),P&&s.shapeDrawers.set(this.shape,P)),P?.loadShape&&P.loadShape(this);let Y=P?.getSidesCount;Y&&(this.sides=Y(this)),this.spawning=!1,this.shadowColor=J(this.options.shadow.color);for(let T of b.updaters)T.init(this);for(let T of b.movers)T.init?.(this);O?.particleInit?.(s,this),P?.particleInit?.(s,this);for(let[,T]of s.plugins)T.particleCreated?.(this)}isInsideCanvas(){let e=this.getRadius(),t=this.container.canvas.size,o=this.position;return o.x>=-e&&o.y>=-e&&o.y<=t.height+e&&o.x<=t.width+e}isVisible(){return!this.destroyed&&!this.spawning&&this.isInsideCanvas()}reset(){for(let e of this.container.particles.updaters)e.reset?.(this)}}});var Qi,En=c(()=>{"use strict";Qi=class{constructor(e,t){this.position=e,this.particle=t}}});var ft,Zi,q,N,Ki=c(()=>{"use strict";B();ft=2,Zi=class{constructor(e,t,o){this.position={x:e,y:t},this.type=o}},q=class i extends Zi{constructor(e,t,o){super(e,t,"circle"),this.radius=o}contains(e){return A(e,this.position)<=this.radius}intersects(e){let t=this.position,o=e.position,n={x:Math.abs(o.x-t.x),y:Math.abs(o.y-t.y)},s=this.radius;if(e instanceof i||e.type==="circle"){let r=e,a=s+r.radius,l=Math.sqrt(n.x**ft+n.y**ft);return a>l}else if(e instanceof N||e.type==="rectangle"){let r=e,{width:a,height:l}=r.size;return Math.pow(n.x-a,ft)+Math.pow(n.y-l,ft)<=s**ft||n.x<=s+a&&n.y<=s+l||n.x<=a||n.y<=l}return!1}},N=class i extends Zi{constructor(e,t,o,n){super(e,t,"rectangle"),this.size={height:n,width:o}}contains(e){let t=this.size.width,o=this.size.height,n=this.position;return e.x>=n.x&&e.x<=n.x+t&&e.y>=n.y&&e.y<=n.y+o}intersects(e){if(e instanceof q)return e.intersects(this);let t=this.size.width,o=this.size.height,n=this.position,s=e.position,r=e instanceof i?e.size:{width:0,height:0},a=r.width,l=r.height;return s.x<n.x+t&&s.x+a>n.x&&s.y<n.y+o&&s.y+l>n.y}}});var ut,pp,mp,ht,qr=c(()=>{"use strict";Ki();B();ut=.5,pp=2,mp=4,ht=class i{constructor(e,t){this.rectangle=e,this.capacity=t,this._subdivide=()=>{let{x:o,y:n}=this.rectangle.position,{width:s,height:r}=this.rectangle.size,{capacity:a}=this;for(let l=0;l<mp;l++){let f=l%pp;this._subs.push(new i(new N(o+s*ut*f,n+r*ut*(Math.round(l*ut)-f),s*ut,r*ut),a))}this._divided=!0},this._points=[],this._divided=!1,this._subs=[]}insert(e){return this.rectangle.contains(e.position)?this._points.length<this.capacity?(this._points.push(e),!0):(this._divided||this._subdivide(),this._subs.some(t=>t.insert(e))):!1}query(e,t){let o=[];if(!e.intersects(this.rectangle))return[];for(let n of this._points)!e.contains(n.position)&&A(e.position,n.position)>n.particle.getRadius()&&(!t||t(n.particle))||o.push(n.particle);if(this._divided)for(let n of this._subs)o.push(...n.query(e,t));return o}queryCircle(e,t,o){return this.query(new q(e.x,e.y,t),o)}queryRectangle(e,t,o){return this.query(new N(e.x,e.y,t.width,t.height),o)}}});var Vr,xp,gp,Hr,Ji,Wr=c(()=>{"use strict";U();Lr();Br();En();qr();Ki();se();Vr=4,xp=2,gp=1,Hr=i=>{let{height:e,width:t}=i,o=-.25,n=1.5;return new N(o*t,o*e,n*t,n*e)},Ji=class{constructor(e,t){this._addToPool=(...n)=>{for(let s of n)this._pool.push(s)},this._applyDensity=(n,s,r)=>{let a=n.number;if(!n.number.density?.enable){r===void 0?this._limit=a.limit.value:a.limit&&this._groupLimits.set(r,a.limit.value);return}let l=this._initDensityFactor(a.density),f=a.value,u=0,h=a.limit.value>u?a.limit.value:f,d=Math.min(f,h)*l+s,p=Math.min(this.count,this.filter(x=>x.group===r).length);r===void 0?this._limit=a.limit.value*l:this._groupLimits.set(r,a.limit.value*l),p<d?this.push(Math.abs(d-p),void 0,n,r):p>d&&this.removeQuantity(p-d,r)},this._initDensityFactor=n=>{let s=this._container,r=1;if(!s.canvas.element||!n.enable)return r;let a=s.canvas.element,l=s.retina.pixelRatio;return a.width*a.height/(n.height*n.width*l**xp)},this._pushParticle=(n,s,r,a)=>{try{let l=this._pool.pop();l||(l=new Xi(this._engine,this._container)),l.init(this._nextId,n,s,r);let f=!0;return a&&(f=a(l)),f?(this._array.push(l),this._zArray.push(l),this._nextId++,this._engine.dispatchEvent("particleAdded",{container:this._container,data:{particle:l}}),l):void 0}catch(l){fe().warning(`${G} adding particle: ${l}`)}},this._removeParticle=(n,s,r)=>{let a=this._array[n];if(!a||a.group!==s)return!1;let l=this._zArray.indexOf(a),f=1;return this._array.splice(n,f),this._zArray.splice(l,f),a.destroy(r),this._engine.dispatchEvent("particleRemoved",{container:this._container,data:{particle:a}}),this._addToPool(a),!0},this._engine=e,this._container=t,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 Ni(e,t),this._pluginsInitialized=!1;let o=t.canvas.size;this.quadTree=new ht(Hr(o),Vr),this.movers=[],this.updaters=[]}get count(){return this._array.length}addManualParticles(){let e=this._container,t=e.actualOptions;for(let o of t.manualParticles)this.addParticle(o.position?Wt(o.position,e.canvas.size):void 0,o.options)}addParticle(e,t,o,n){let s=this._container.actualOptions.particles.number.limit,r=o===void 0?this._limit:this._groupLimits.get(o)??this._limit,a=this.count;if(r>0){if(s.mode==="delete"){let h=a+1-r;h>0&&this.removeQuantity(h)}else if(s.mode==="wait"&&a>=r)return}return this._pushParticle(e,t,o,n)}clear(){this._array=[],this._zArray=[],this._pluginsInitialized=!1}destroy(){this._array=[],this._zArray=[],this.movers=[],this.updaters=[]}draw(e){let t=this._container,o=t.canvas;o.clear(),this.update(e);for(let[,n]of t.plugins)o.drawPlugin(n,e);for(let n of this._zArray)n.draw(e)}filter(e){return this._array.filter(e)}find(e){return this._array.find(e)}get(e){return this._array[e]}handleClickMode(e){this._interactionManager.handleClickMode(e)}async init(){let e=this._container,t=e.actualOptions;this._lastZIndex=0,this._needsSort=!1,await this.initPlugins();let o=!1;for(let[,n]of e.plugins)if(n.particlesInitialization!==void 0&&(o=n.particlesInitialization()),o)break;if(this.addManualParticles(),!o){let n=t.particles,s=n.groups;for(let r in s){let a=s[r];for(let l=this.count,f=0;f<a.number?.value&&l<n.number.value;l++,f++)this.addParticle(void 0,a,r)}for(let r=this.count;r<n.number.value;r++)this.addParticle()}}async initPlugins(){if(this._pluginsInitialized)return;let e=this._container;this.movers=await this._engine.getMovers(e,!0),this.updaters=await this._engine.getUpdaters(e,!0),await this._interactionManager.init();for(let[,t]of e.pathGenerators)t.init(e)}push(e,t,o,n){for(let s=0;s<e;s++)this.addParticle(t?.position,o,n)}async redraw(){this.clear(),await this.init(),this.draw({value:0,factor:0})}remove(e,t,o){this.removeAt(this._array.indexOf(e),void 0,t,o)}removeAt(e,t=gp,o,n){if(e<0||e>this.count)return;let r=0;for(let a=e;r<t&&a<this.count;a++)this._removeParticle(a--,o,n)&&r++}removeQuantity(e,t){this.removeAt(0,e,t)}setDensity(){let e=this._container.actualOptions,t=e.particles.groups,o=0;for(let n in t)this._applyDensity(t[n],o,n);this._applyDensity(e.particles,e.manualParticles.length)}setLastZIndex(e){this._lastZIndex=e,this._needsSort=this._needsSort||this._lastZIndex<e}setResizeFactor(e){this._resizeFactor=e}update(e){let t=this._container,o=new Set;this.quadTree=new ht(Hr(t.canvas.size),Vr);for(let[,s]of t.pathGenerators)s.update();for(let[,s]of t.plugins)s.update?.(e);let n=this._resizeFactor;for(let s of this._array){n&&!s.ignoresResizeRatio&&(s.position.x*=n.width,s.position.y*=n.height,s.initialPosition.x*=n.width,s.initialPosition.y*=n.height),s.ignoresResizeRatio=!1,this._interactionManager.reset(s);for(let[,r]of this._container.plugins){if(s.destroyed)break;r.particleUpdate?.(s,e)}for(let r of this.movers)r.isEnabled(s)&&r.move(s,e);if(s.destroyed){o.add(s);continue}this.quadTree.insert(new Qi(s.getPosition(),s))}if(o.size){let s=r=>!o.has(r);this._array=this.filter(s),this._zArray=this._zArray.filter(s);for(let r of o)this._engine.dispatchEvent("particleRemoved",{container:this._container,data:{particle:r}});this._addToPool(...o)}this._interactionManager.externalInteract(e);for(let s of this._array){for(let r of this.updaters)r.update(s,e);!s.destroyed&&!s.spawning&&this._interactionManager.particlesInteract(s,e)}if(delete this._resizeFactor,this._needsSort){let s=this._zArray;s.sort((a,l)=>l.position.z-a.position.z||a.id-l.id);let r=1;this._lastZIndex=s[s.length-r].position.z,this._needsSort=!1}}}});var Ur,jr,eo,Gr=c(()=>{"use strict";B();U();Ur=1,jr=1,eo=class{constructor(e){this.container=e,this.pixelRatio=Ur,this.reduceFactor=jr}init(){let e=this.container,t=e.actualOptions;this.pixelRatio=!t.detectRetina||me()?Ur:window.devicePixelRatio,this.reduceFactor=jr;let o=this.pixelRatio,n=e.canvas;if(n.element){let a=n.element;n.size.width=a.offsetWidth*o,n.size.height=a.offsetHeight*o}let s=t.particles,r=s.move;this.maxSpeed=g(r.gravity.maxSpeed)*o,this.sizeAnimationSpeed=g(s.size.animation.speed)*o}initParticle(e){let t=e.options,o=this.pixelRatio,n=t.move,s=n.distance,r=e.retina;r.moveDrift=g(n.drift)*o,r.moveSpeed=g(n.speed)*o,r.sizeAnimationSpeed=g(t.size.animation.speed)*o;let a=r.maxDistance;a.horizontal=s.horizontal!==void 0?s.horizontal*o:void 0,a.vertical=s.vertical!==void 0?s.vertical*o:void 0,r.maxSpeed=g(n.gravity.maxSpeed)*o}}});var $r={};v($r,{Container:()=>Ln});function j(i){return i&&!i.destroyed}function yp(i,e=Tn,t=!1){return{value:i,factor:t?Tn/e:Tn*i/1e3}}function Qe(i,e,...t){let o=new $i(i,e);return Dn(o,...t),o}var Tn,Ln,Nr=c(()=>{"use strict";se();U();zr();Sr();Sn();Wr();Gr();B();lt();Tn=60;Ln=class{constructor(e,t,o){this._intersectionManager=n=>{if(!(!j(this)||!this.actualOptions.pauseOnOutsideViewport))for(let s of n)s.target===this.interactivity.element&&(s.isIntersecting?this.play():this.pause())},this._nextFrame=n=>{try{if(!this._smooth&&this._lastFrameTime!==void 0&&n<this._lastFrameTime+1e3/this.fpsLimit){this.draw(!1);return}this._lastFrameTime??=n;let s=yp(n-this._lastFrameTime,this.fpsLimit,this._smooth);if(this.addLifeTime(s.value),this._lastFrameTime=n,s.value>1e3){this.draw(!1);return}if(this.particles.draw(s),!this.alive()){this.destroy();return}this.animationStatus&&this.draw(!1)}catch(s){fe().error(`${G} in animation loop`,s)}},this._engine=e,this.id=Symbol(t),this.fpsLimit=120,this._smooth=!1,this._delay=0,this._duration=0,this._lifeTime=0,this._firstStart=!0,this.started=!1,this.destroyed=!1,this._paused=!0,this._lastFrameTime=0,this.zLayers=100,this.pageHidden=!1,this._sourceOptions=o,this._initialSourceOptions=o,this.retina=new eo(this),this.canvas=new Kt(this),this.particles=new Ji(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=Qe(this._engine,this),this.actualOptions=Qe(this._engine,this),this._eventListeners=new Jt(this),this._intersectionObserver=pr(n=>this._intersectionManager(n)),this._engine.dispatchEvent("containerBuilt",{container:this})}get animationStatus(){return!this._paused&&!this.pageHidden&&j(this)}get options(){return this._options}get sourceOptions(){return this._sourceOptions}addClickHandler(e){if(!j(this))return;let t=this.interactivity.element;if(!t)return;let o=(h,d,p)=>{if(!j(this))return;let x=this.retina.pixelRatio,m={x:d.x*x,y:d.y*x},w=this.particles.quadTree.queryCircle(m,p*x);e(h,w)},n=h=>{if(!j(this))return;let d=h,p={x:d.offsetX||d.clientX,y:d.offsetY||d.clientY};o(h,p,1)},s=()=>{j(this)&&(f=!0,u=!1)},r=()=>{j(this)&&(u=!0)},a=h=>{if(j(this)){if(f&&!u){let d=h,p=1,x=d.touches[d.touches.length-p];if(!x&&(x=d.changedTouches[d.changedTouches.length-p],!x))return;let m=this.canvas.element,w=m?m.getBoundingClientRect():void 0,y=0,k={x:x.clientX-(w?w.left:y),y:x.clientY-(w?w.top:y)};o(h,k,Math.max(x.radiusX,x.radiusY))}f=!1,u=!1}},l=()=>{j(this)&&(f=!1,u=!1)},f=!1,u=!1;t.addEventListener("click",n),t.addEventListener("touchstart",s),t.addEventListener("touchmove",r),t.addEventListener("touchend",a),t.addEventListener("touchcancel",l)}addLifeTime(e){this._lifeTime+=e}addPath(e,t,o=!1){return!j(this)||!o&&this.pathGenerators.has(e)?!1:(this.pathGenerators.set(e,t),!0)}alive(){return!this._duration||this._lifeTime<=this._duration}destroy(){if(!j(this))return;this.stop(),this.particles.destroy(),this.canvas.destroy();for(let[,n]of this.effectDrawers)n.destroy?.(this);for(let[,n]of this.shapeDrawers)n.destroy?.(this);for(let n of this.effectDrawers.keys())this.effectDrawers.delete(n);for(let n of this.shapeDrawers.keys())this.shapeDrawers.delete(n);this._engine.clearPlugins(this),this.destroyed=!0;let e=this._engine.dom(),t=e.findIndex(n=>n===this);t>=0&&e.splice(t,1),this._engine.dispatchEvent("containerDestroyed",{container:this})}draw(e){if(!j(this))return;let t=e,o=n=>{t&&(this._lastFrameTime=void 0,t=!1),this._nextFrame(n)};this._drawAnimationFrame=requestAnimationFrame(n=>o(n))}async export(e,t={}){for(let[,o]of this.plugins){if(!o.export)continue;let n=await o.export(e,t);if(n.supported)return n.blob}fe().error(`${G} - Export plugin with type ${e} not found`)}handleClickMode(e){if(j(this)){this.particles.handleClickMode(e);for(let[,t]of this.plugins)t.handleClickMode?.(e)}}async init(){if(!j(this))return;let e=this._engine.getSupportedEffects();for(let r of e){let a=this._engine.getEffectDrawer(r);a&&this.effectDrawers.set(r,a)}let t=this._engine.getSupportedShapes();for(let r of t){let a=this._engine.getShapeDrawer(r);a&&this.shapeDrawers.set(r,a)}await this.particles.initPlugins(),this._options=Qe(this._engine,this,this._initialSourceOptions,this.sourceOptions),this.actualOptions=Qe(this._engine,this,this._options);let o=await this._engine.getAvailablePlugins(this);for(let[r,a]of o)this.plugins.set(r,a);this.retina.init(),await this.canvas.init(),this.updateActualOptions(),this.canvas.initBackground(),this.canvas.resize(),this.zLayers=this.actualOptions.zLayers,this._duration=g(this.actualOptions.duration)*1e3,this._delay=g(this.actualOptions.delay)*1e3,this._lifeTime=0;let n=120,s=0;this.fpsLimit=this.actualOptions.fpsLimit>s?this.actualOptions.fpsLimit:n,this._smooth=this.actualOptions.smooth;for(let[,r]of this.effectDrawers)await r.init?.(this);for(let[,r]of this.shapeDrawers)await r.init?.(this);for(let[,r]of this.plugins)await r.init?.();this._engine.dispatchEvent("containerInit",{container:this}),await this.particles.init(),this.particles.setDensity();for(let[,r]of this.plugins)r.particlesSetup?.();this._engine.dispatchEvent("particlesSetup",{container:this})}async loadTheme(e){j(this)&&(this._currentTheme=e,await this.refresh())}pause(){if(j(this)&&(this._drawAnimationFrame!==void 0&&(cancelAnimationFrame(this._drawAnimationFrame),delete this._drawAnimationFrame),!this._paused)){for(let[,e]of this.plugins)e.pause?.();this.pageHidden||(this._paused=!0),this._engine.dispatchEvent("containerPaused",{container:this})}}play(e){if(!j(this))return;let t=this._paused||e;if(this._firstStart&&!this.actualOptions.autoPlay){this._firstStart=!1;return}if(this._paused&&(this._paused=!1),t)for(let[,o]of this.plugins)o.play&&o.play();this._engine.dispatchEvent("containerPlay",{container:this}),this.draw(t??!1)}async refresh(){if(j(this))return this.stop(),this.start()}async reset(){if(j(this))return this._initialSourceOptions=void 0,this._options=Qe(this._engine,this),this.actualOptions=Qe(this._engine,this,this._options),this.refresh()}async start(){!j(this)||this.started||(await this.init(),this.started=!0,await new Promise(e=>{let t=async()=>{this._eventListeners.addListeners(),this.interactivity.element instanceof HTMLElement&&this._intersectionObserver&&this._intersectionObserver.observe(this.interactivity.element);for(let[,o]of this.plugins)await o.start?.();this._engine.dispatchEvent("containerStarted",{container:this}),this.play(),e()};this._delayTimeout=setTimeout(()=>void t(),this._delay)}))}stop(){if(!(!j(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(let[,e]of this.plugins)e.stop?.();for(let e of this.plugins.keys())this.plugins.delete(e);this._sourceOptions=this._options,this._engine.dispatchEvent("containerStopped",{container:this})}}updateActualOptions(){this.actualOptions.responsive=[];let e=this.actualOptions.setResponsive(this.canvas.size.width,this.retina.pixelRatio,this._options);return this.actualOptions.setTheme(this._currentTheme),this._responsiveMaxWidth===e?!1:(this._responsiveMaxWidth=e,!0)}}});async function Fn(i,e,t,o=!1){let n=e.get(i);return(!n||o)&&(n=await Promise.all([...t.values()].map(s=>s(i))),e.set(i,n)),n}async function vp(i){let e=Q(i.url,i.index);if(!e)return i.fallback;let t=await fetch(e);return t.ok?await t.json():(fe().error(`${G} ${t.status} while retrieving config file`),i.fallback)}var to,Yr=c(()=>{"use strict";se();U();yr();B();to=class{constructor(){this._configs=new Map,this._domArray=[],this._eventDispatcher=new Ut,this._initialized=!1,this.plugins=[],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(){let e={};for(let[t,o]of this._configs)e[t]=o;return e}get version(){return"3.3.0"}addConfig(e){let t=e.key??e.name??"default";this._configs.set(t,e),this._eventDispatcher.dispatchEvent("configAdded",{data:{name:t,config:e}})}async addEffect(e,t,o=!0){V(e,n=>{this.getEffectDrawer(n)||this.effectDrawers.set(n,t)}),await this.refresh(o)}addEventListener(e,t){this._eventDispatcher.addEventListener(e,t)}async addInteractor(e,t,o=!0){this._initializers.interactors.set(e,t),await this.refresh(o)}async addMover(e,t,o=!0){this._initializers.movers.set(e,t),await this.refresh(o)}async addParticleUpdater(e,t,o=!0){this._initializers.updaters.set(e,t),await this.refresh(o)}async addPathGenerator(e,t,o=!0){this.getPathGenerator(e)||this.pathGenerators.set(e,t),await this.refresh(o)}async addPlugin(e,t=!0){this.getPlugin(e.id)||this.plugins.push(e),await this.refresh(t)}async addPreset(e,t,o=!1,n=!0){(o||!this.getPreset(e))&&this.presets.set(e,t),await this.refresh(n)}async addShape(e,t,o=!0){V(e,n=>{this.getShapeDrawer(n)||this.shapeDrawers.set(n,t)}),await this.refresh(o)}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._domArray}domItem(e){let t=this.dom(),o=t[e];if(!o||o.destroyed){t.splice(e,1);return}return o}async getAvailablePlugins(e){let t=new Map;for(let o of this.plugins)o.needsPlugin(e.actualOptions)&&t.set(o.id,await o.getPlugin(e));return t}getEffectDrawer(e){return this.effectDrawers.get(e)}async getInteractors(e,t=!1){return await Fn(e,this.interactors,this._initializers.interactors,t)}async getMovers(e,t=!1){return await Fn(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 await Fn(e,this.updaters,this._initializers.updaters,t)}init(){this._initialized||(this._initialized=!0)}async load(e){let o=e.id??e.element?.id??`tsparticles${Math.floor(R()*1e4)}`,{index:n,url:s}=e,r=s?await vp({fallback:e.options,url:s,index:n}):e.options,a=e.element??document.getElementById(o);a||(a=document.createElement("div"),a.id=o,document.body.append(a));let l=Q(r,n),f=this.dom(),u=f.findIndex(m=>m.id.description===o),h=0;if(u>=h){let m=this.domItem(u);if(m&&!m.destroyed){m.destroy();let w=1;f.splice(u,w)}}let d;if(a.tagName.toLowerCase()==="canvas")d=a,d.dataset[ke]="false";else{let m=a.getElementsByTagName("canvas");m.length?(d=m[0],d.dataset[ke]="false"):(d=document.createElement("canvas"),d.dataset[ke]="true",a.appendChild(d))}d.style.width||(d.style.width="100%"),d.style.height||(d.style.height="100%");let{Container:p}=await Promise.resolve().then(()=>(Nr(),$r)),x=new p(this,o,l);return u>=h?f.splice(u,0,x):f.push(x),x.canvas.loadCanvas(d),await x.start(),x}loadOptions(e,t){for(let o of this.plugins)o.loadOptions(e,t)}loadParticlesOptions(e,t,...o){let n=this.updaters.get(e);if(n)for(let s of n)s.loadOptions?.(t,...o)}async refresh(e=!0){e&&await Promise.all(this.dom().map(t=>t.refresh()))}removeEventListener(e,t){this._eventDispatcher.removeEventListener(e,t)}setOnClickHandler(e){let t=this.dom();if(!t.length)throw new Error(`${G} can only set click handlers after calling tsParticles.load()`);for(let o of t)o.addClickHandler(e)}}});var io,An=c(()=>{"use strict";B();Ce();io=class{constructor(){this.key="hsl",this.stringPrefix="hsl"}handleColor(e){let t=e.value,o=t.hsl??e.value;if(o.h!==void 0&&o.s!==void 0&&o.l!==void 0)return Me(o)}handleRangeColor(e){let t=e.value,o=t.hsl??e.value;if(o.h!==void 0&&o.l!==void 0)return Me({h:g(o.h),l:g(o.l),s:g(o.s)})}parseString(e){if(!e.startsWith("hsl"))return;let t=/hsla?\(\s*(\d+)\s*,\s*(\d+)%\s*,\s*(\d+)%\s*(,\s*([\d.%]+)\s*)?\)/i,o=t.exec(e),n=4,s=1,r=10;return o?br({a:o.length>n?At(o[5]):s,h:parseInt(o[1],r),l:parseInt(o[3],r),s:parseInt(o[2],r)}):void 0}}});var oo,Bn=c(()=>{"use strict";B();oo=class{constructor(){this.key="rgb",this.stringPrefix="rgb"}handleColor(e){let t=e.value,o=t.rgb??e.value;if(o.r!==void 0)return o}handleRangeColor(e){let t=e.value,o=t.rgb??e.value;if(o.r!==void 0)return{r:g(o.r),g:g(o.g),b:g(o.b)}}parseString(e){if(!e.startsWith(this.stringPrefix))return;let t=/rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(,\s*([\d.%]+)\s*)?\)/i,o=t.exec(e),n=10,s=4,r=1;return o?{a:o.length>s?At(o[5]):r,b:parseInt(o[3],n),g:parseInt(o[2],n),r:parseInt(o[1],n)}:void 0}}});function Xr(){let i=new oo,e=new io;qo(i),qo(e);let t=new to;return t.init(),t}var Qr=c(()=>{"use strict";Yr();An();Bn();Ce()});var H,Zr=c(()=>{"use strict";H=class{constructor(e){this.type="external",this.container=e}}});var _e,Kr=c(()=>{"use strict";_e=class{constructor(e){this.type="particles",this.container=e}}});var Jr=c(()=>{"use strict"});var ea=c(()=>{"use strict"});var ta=c(()=>{"use strict"});var ia=c(()=>{"use strict"});var oa=c(()=>{"use strict"});var na=c(()=>{"use strict"});var sa=c(()=>{"use strict"});var ra=c(()=>{"use strict"});var aa=c(()=>{"use strict"});var ca=c(()=>{"use strict"});var la=c(()=>{"use strict"});var fa=c(()=>{"use strict"});var ua=c(()=>{"use strict"});var ha=c(()=>{"use strict"});var da=c(()=>{"use strict"});var pa=c(()=>{"use strict"});var ma=c(()=>{"use strict"});var xa=c(()=>{"use strict"});var ga=c(()=>{"use strict"});var ya=c(()=>{"use strict"});var va=c(()=>{"use strict"});var ba=c(()=>{"use strict";se();Zr();Kr();En();Ki();it();Jr();ea();ta();ia();oa();na();sa();ra();aa();ca();la();fa();ua();ha();da();pa();ma();xa();ga();ya();va();yi();$e();Wo();jo();Uo();tn();Go();on();si();ri();si();ri();Xo();No();$o();Yo();hi();Qo();Zo();Sn();Re();wi();an();cn();nn();sn();zn();kn();On();fn();gn();ln();un();hn();mn();dn();xn();pn();_n();wn();bn();vn();yn();Mn();Rn();Cn();Pn();Ko();en();Jo();ze();Zt();Ce();An();B();lt();Bn();U();ae()});var wa=c(()=>{"use strict"});var _a=c(()=>{"use strict"});var ka=c(()=>{"use strict"});var Ma=c(()=>{"use strict"});var Ca=c(()=>{"use strict"});var Ra=c(()=>{"use strict"});var Oa=c(()=>{"use strict"});var Pa=c(()=>{"use strict"});var za=c(()=>{"use strict"});var Da=c(()=>{"use strict"});var Sa=c(()=>{"use strict"});var Ia=c(()=>{"use strict"});var Ea=c(()=>{"use strict"});var Ta=c(()=>{"use strict"});var La=c(()=>{"use strict"});var Fa=c(()=>{"use strict"});var Aa=c(()=>{"use strict"});var Ba=c(()=>{"use strict"});var qa=c(()=>{"use strict"});var Va=c(()=>{"use strict"});var Ha=c(()=>{"use strict"});var Wa=c(()=>{"use strict"});var Ua=c(()=>{"use strict"});var ja=c(()=>{"use strict"});var Ga=c(()=>{"use strict"});var $a=c(()=>{"use strict"});var Na=c(()=>{"use strict"});var Ya=c(()=>{"use strict"});var Xa=c(()=>{"use strict"});var Qa=c(()=>{"use strict"});var Za=c(()=>{"use strict"});var Ka=c(()=>{"use strict"});var Ja=c(()=>{"use strict"});var ec=c(()=>{"use strict"});var tc=c(()=>{"use strict"});var ic=c(()=>{"use strict"});var oc=c(()=>{"use strict"});var nc=c(()=>{"use strict"});var sc=c(()=>{"use strict"});var rc=c(()=>{"use strict"});var ac=c(()=>{"use strict"});var cc=c(()=>{"use strict"});var lc=c(()=>{"use strict"});var fc=c(()=>{"use strict"});var uc=c(()=>{"use strict"});var hc=c(()=>{"use strict"});var dc=c(()=>{"use strict"});var pc=c(()=>{"use strict"});var mc=c(()=>{"use strict"});var xc=c(()=>{"use strict"});var gc=c(()=>{"use strict"});var yc=c(()=>{"use strict"});var vc=c(()=>{"use strict"});var bc=c(()=>{"use strict"});var wc=c(()=>{"use strict"});var _c=c(()=>{"use strict"});var kc=c(()=>{"use strict"});var Mc=c(()=>{"use strict"});var Cc=c(()=>{"use strict"});var Rc=c(()=>{"use strict"});var Oc=c(()=>{"use strict"});var Pc=c(()=>{"use strict"});var zc=c(()=>{"use strict"});var Dc=c(()=>{"use strict"});var Sc=c(()=>{"use strict"});var Ic=c(()=>{"use strict"});var Ec=c(()=>{"use strict"});var Tc=c(()=>{"use strict"});var Lc=c(()=>{"use strict"});var Fc=c(()=>{"use strict"});var Ac=c(()=>{"use strict"});var Bc=c(()=>{"use strict"});var qc=c(()=>{"use strict"});var Vc=c(()=>{"use strict"});var Hc=c(()=>{"use strict"});var Wc=c(()=>{"use strict"});var Uc=c(()=>{"use strict"});var jc=c(()=>{"use strict"});var Gc=c(()=>{"use strict"});var $c=c(()=>{"use strict"});var Nc=c(()=>{"use strict"});var Yc=c(()=>{"use strict"});var Xc=c(()=>{"use strict"});var Qc=c(()=>{"use strict"});var Zc=c(()=>{"use strict"});var Kc=c(()=>{"use strict"});var Jc=c(()=>{"use strict"});var el=c(()=>{"use strict"});var tl=c(()=>{"use strict"});var il=c(()=>{"use strict"});var ol=c(()=>{"use strict"});var nl=c(()=>{"use strict"});var sl=c(()=>{"use strict"});var rl=c(()=>{"use strict"});var al=c(()=>{"use strict"});var cl=c(()=>{"use strict"});var ll=c(()=>{"use strict"});var fl=c(()=>{"use strict"});var ul=c(()=>{"use strict"});var hl=c(()=>{"use strict";wa();_a();ka();Ma();Ca();Ra();Oa();Pa();za();Da();Sa();Ia();Ea();Ta();La();Fa();Aa();Ba();qa();Va();Ha();Wa();Ua();ja();Ga();$a();Na();Ya();Xa();Qa();Za();Ka();Ja();ec();tc();ic();oc();nc();sc();rc();ac();cc();lc();fc();uc();hc();dc();pc();mc();xc();gc();yc();vc();bc();wc();_c();kc();Mc();Cc();Rc();Oc();Pc();zc();Dc();Sc();Ic();Ec();Tc();Lc();Fc();Ac();Bc();qc();Vc();Hc();Wc();Uc();jc();Gc();$c();Nc();Yc();Xc();Qc();Zc();Kc();Jc();el();tl();il();ol();nl();sl();rl();al();cl();ll();fl();ul()});var no,_=c(()=>{"use strict";Qr();U();ba();hl();no=Xr();me()||(window.tsParticles=no)});var pl={};v(pl,{ParallaxMover:()=>qn});var dl,qn,ml=c(()=>{"use strict";_();dl=.5,qn=class{init(){}isEnabled(e){return!me()&&!e.destroyed&&e.container.actualOptions.interactivity.events.onHover.parallax.enable}move(e){let t=e.container,o=t.actualOptions,n=o.interactivity.events.onHover.parallax;if(me()||!n.enable)return;let s=n.force,r=t.interactivity.mouse.position;if(!r)return;let a=t.canvas.size,l={x:a.width*dl,y:a.height*dl},f=n.smooth,u=e.getRadius()/s,h={x:(r.x-l.x)*u,y:(r.y-l.y)*u},{offset:d}=e;d.x+=(h.x-d.x)/f,d.y+=(h.y-d.y)/f}}});var xl={};v(xl,{loadParallaxMover:()=>bp});async function bp(i,e=!0){await i.addMover("parallax",async()=>{let{ParallaxMover:t}=await Promise.resolve().then(()=>(ml(),pl));return new t},e)}var gl=c(()=>{"use strict"});var dt,Vn=c(()=>{"use strict";dt=class{constructor(){this.distance=200,this.duration=.4,this.easing="ease-out-quad",this.factor=1,this.maxSpeed=50,this.speed=1}load(e){e&&(e.distance!==void 0&&(this.distance=e.distance),e.duration!==void 0&&(this.duration=e.duration),e.easing!==void 0&&(this.easing=e.easing),e.factor!==void 0&&(this.factor=e.factor),e.maxSpeed!==void 0&&(this.maxSpeed=e.maxSpeed),e.speed!==void 0&&(this.speed=e.speed))}}});var yl=c(()=>{"use strict"});function bl(i,e,t,o,n){let s=i.actualOptions.interactivity.modes.attract;if(!s)return;let r=i.particles.quadTree.query(o,n);for(let a of r){let{dx:l,dy:f,distance:u}=F(a.position,e),h=s.speed*s.factor,d=W(Lt(s.easing)(_p-u/t)*h,wp,s.maxSpeed),p=I.create(u?l/u*d:h,u?f/u*d:h);a.position.subFrom(p)}}function wl(i,e){i.attract||(i.attract={particles:[]});let{attract:t}=i;if(t.finish||(t.count||(t.count=0),t.count++,t.count===i.particles.count&&(t.finish=!0)),t.clicking){let o=i.interactivity.mouse.clickPosition,n=i.retina.attractModeDistance;if(!n||n<vl||!o)return;bl(i,o,n,new q(o.x,o.y,n),s=>e(s))}else t.clicking===!1&&(t.particles=[])}function _l(i,e){let t=i.interactivity.mouse.position,o=i.retina.attractModeDistance;!o||o<vl||!t||bl(i,t,o,new q(t.x,t.y,o),n=>e(n))}var wp,_p,vl,kl=c(()=>{"use strict";_();wp=1,_p=1,vl=0});var Ml={};v(Ml,{Attractor:()=>Hn});var pt,Hn,Cl=c(()=>{"use strict";_();kl();Vn();pt="attract",Hn=class extends H{constructor(e,t){super(t),this._engine=e,t.attract||(t.attract={particles:[]}),this.handleClickMode=o=>{let n=this.container.actualOptions,s=n.interactivity.modes.attract;if(!(!s||o!==pt)){t.attract||(t.attract={particles:[]}),t.attract.clicking=!0,t.attract.count=0;for(let r of t.attract.particles)this.isEnabled(r)&&r.velocity.setTo(r.initialVelocity);t.attract.particles=[],t.attract.finish=!1,setTimeout(()=>{t.destroyed||(t.attract||(t.attract={particles:[]}),t.attract.clicking=!1)},s.duration*1e3)}}}clear(){}init(){let e=this.container,t=e.actualOptions.interactivity.modes.attract;t&&(e.retina.attractModeDistance=t.distance*e.retina.pixelRatio)}interact(){let e=this.container,t=e.actualOptions,o=e.interactivity.status===ne,n=t.interactivity.events,{enable:s,mode:r}=n.onHover,{enable:a,mode:l}=n.onClick;o&&s&&z(pt,r)?_l(this.container,f=>this.isEnabled(f)):a&&z(pt,l)&&wl(this.container,f=>this.isEnabled(f))}isEnabled(e){let t=this.container,o=t.actualOptions,n=t.interactivity.mouse,s=(e?.interactivity??o.interactivity).events;if((!n.position||!s.onHover.enable)&&(!n.clickPosition||!s.onClick.enable))return!1;let r=s.onHover.mode,a=s.onClick.mode;return z(pt,r)||z(pt,a)}loadModeOptions(e,...t){e.attract||(e.attract=new dt);for(let o of t)e.attract.load(o?.attract)}reset(){}}});var Rl={};v(Rl,{Attract:()=>dt,loadExternalAttractInteraction:()=>kp});async function kp(i,e=!0){await i.addInteractor("externalAttract",async t=>{let{Attractor:o}=await Promise.resolve().then(()=>(Cl(),Ml));return new o(i,t)},e)}var Ol=c(()=>{"use strict";Vn();yl()});var mt,Wn=c(()=>{"use strict";mt=class{constructor(){this.distance=200}load(e){e&&e.distance!==void 0&&(this.distance=e.distance)}}});var Pl=c(()=>{"use strict"});function Sl(i,e,t,o,n){let s=i.particles.quadTree.query(o,n);for(let r of s)o instanceof q?Vt(ot(r),{position:e,radius:t,mass:t**Mp*Cp,velocity:I.origin,factor:I.origin}):o instanceof N&&xr(r,ye(e,t))}function Op(i,e,t,o){let n=document.querySelectorAll(e);n.length&&n.forEach(s=>{let r=s,a=i.retina.pixelRatio,l={x:(r.offsetLeft+r.offsetWidth*so)*a,y:(r.offsetTop+r.offsetHeight*so)*a},f=r.offsetWidth*so*a,u=Dl*a,h=t.type==="circle"?new q(l.x,l.y,f+u):new N(r.offsetLeft*a-u,r.offsetTop*a-u,r.offsetWidth*a+u*zl,r.offsetHeight*a+u*zl);o(l,f,h)})}function Il(i,e,t,o){We(t,e,(n,s)=>Op(i,n,s,(r,a,l)=>Sl(i,r,a,l,o)))}function El(i,e){let t=i.retina.pixelRatio,o=Dl*t,n=i.interactivity.mouse.position,s=i.retina.bounceModeDistance;!s||s<Rp||!n||Sl(i,n,s,new q(n.x,n.y,s+o),e)}var Mp,so,Cp,zl,Dl,Rp,Tl=c(()=>{"use strict";_();Mp=2,so=.5,Cp=Math.PI*so,zl=2,Dl=10,Rp=0});var Ll={};v(Ll,{Bouncer:()=>Un});var ro,Un,Fl=c(()=>{"use strict";_();Tl();Wn();ro="bounce",Un=class extends H{constructor(e){super(e)}clear(){}init(){let e=this.container,t=e.actualOptions.interactivity.modes.bounce;t&&(e.retina.bounceModeDistance=t.distance*e.retina.pixelRatio)}interact(){let e=this.container,t=e.actualOptions,o=t.interactivity.events,n=e.interactivity.status===ne,s=o.onHover.enable,r=o.onHover.mode,a=o.onDiv;n&&s&&z(ro,r)?El(this.container,l=>this.isEnabled(l)):Il(this.container,a,ro,l=>this.isEnabled(l))}isEnabled(e){let t=this.container,o=t.actualOptions,n=t.interactivity.mouse,s=(e?.interactivity??o.interactivity).events,r=s.onDiv;return!!n.position&&s.onHover.enable&&z(ro,s.onHover.mode)||He(ro,r)}loadModeOptions(e,...t){e.bounce||(e.bounce=new mt);for(let o of t)e.bounce.load(o?.bounce)}reset(){}}});var Al={};v(Al,{Bounce:()=>mt,loadExternalBounceInteraction:()=>Pp});async function Pp(i,e=!0){await i.addInteractor("externalBounce",async t=>{let{Bouncer:o}=await Promise.resolve().then(()=>(Fl(),Ll));return new o(t)},e)}var Bl=c(()=>{"use strict";Wn();Pl()});var De,ao=c(()=>{"use strict";_();De=class{constructor(){this.distance=200,this.duration=.4,this.mix=!1}load(e){if(e){if(e.distance!==void 0&&(this.distance=e.distance),e.duration!==void 0&&(this.duration=e.duration),e.mix!==void 0&&(this.mix=e.mix),e.opacity!==void 0&&(this.opacity=e.opacity),e.color!==void 0){let t=K(this.color)?void 0:this.color;this.color=V(e.color,o=>S.create(t,o))}e.size!==void 0&&(this.size=e.size)}}}});var xt,jn=c(()=>{"use strict";ao();xt=class extends De{constructor(){super(),this.selectors=[]}load(e){super.load(e),e&&e.selectors!==void 0&&(this.selectors=e.selectors)}}});var gt,Gn=c(()=>{"use strict";_();ao();jn();gt=class extends De{load(e){super.load(e),e&&(this.divs=V(e.divs,t=>{let o=new xt;return o.load(t),o}))}}});var ql=c(()=>{"use strict"});var Vl=c(()=>{"use strict"});var Hl=c(()=>{"use strict"});function $n(i,e,t,o){if(e>=t){let n=i+(e-t)*o;return W(n,i,e)}else if(e<t){let n=i-(t-e)*o;return W(n,e,i)}}var Wl=c(()=>{"use strict";_()});var Gl={};v(Gl,{Bubbler:()=>Qn});var Se,Nn,zp,Dp,Ul,jl,Sp,Ip,Yn,Xn,Qn,$l=c(()=>{"use strict";_();Gn();Wl();Se="bubble",Nn=0,zp=0,Dp=2,Ul=1,jl=1,Sp=0,Ip=0,Yn=.5,Xn=1,Qn=class extends H{constructor(e){super(e),this._clickBubble=()=>{let t=this.container,o=t.actualOptions,n=t.interactivity.mouse.clickPosition,s=o.interactivity.modes.bubble;if(!s||!n)return;t.bubble||(t.bubble={});let r=t.retina.bubbleModeDistance;if(!r||r<Nn)return;let a=t.particles.quadTree.queryCircle(n,r,f=>this.isEnabled(f)),{bubble:l}=t;for(let f of a){if(!l.clicking)continue;f.bubble.inRange=!l.durationEnd;let u=f.getPosition(),h=A(u,n),d=(new Date().getTime()-(t.interactivity.mouse.clickTime??zp))/1e3;d>s.duration&&(l.durationEnd=!0),d>s.duration*Dp&&(l.clicking=!1,l.durationEnd=!1);let p={bubbleObj:{optValue:t.retina.bubbleModeSize,value:f.bubble.radius},particlesObj:{optValue:X(f.options.size.value)*t.retina.pixelRatio,value:f.size.value},type:"size"};this._process(f,h,d,p);let x={bubbleObj:{optValue:s.opacity,value:f.bubble.opacity},particlesObj:{optValue:X(f.options.opacity.value),value:f.opacity?.value??Ul},type:"opacity"};this._process(f,h,d,x),!l.durationEnd&&h<=r?this._hoverBubbleColor(f,h):delete f.bubble.color}},this._hoverBubble=()=>{let t=this.container,o=t.interactivity.mouse.position,n=t.retina.bubbleModeDistance;if(!n||n<Nn||!o)return;let s=t.particles.quadTree.queryCircle(o,n,r=>this.isEnabled(r));for(let r of s){r.bubble.inRange=!0;let a=r.getPosition(),l=A(a,o),f=jl-l/n;l<=n?f>=Ip&&t.interactivity.status===ne&&(this._hoverBubbleSize(r,f),this._hoverBubbleOpacity(r,f),this._hoverBubbleColor(r,f)):this.reset(r),t.interactivity.status===tt&&this.reset(r)}},this._hoverBubbleColor=(t,o,n)=>{let s=this.container.actualOptions,r=n??s.interactivity.modes.bubble;if(r){if(!t.bubble.finalColor){let a=r.color;if(!a)return;let l=Q(a);t.bubble.finalColor=ge(l)}if(t.bubble.finalColor)if(r.mix){t.bubble.color=void 0;let a=t.getFillColor();t.bubble.color=a?Vo(nt(a,t.bubble.finalColor,jl-o,o)):t.bubble.finalColor}else t.bubble.color=t.bubble.finalColor}},this._hoverBubbleOpacity=(t,o,n)=>{let s=this.container,r=s.actualOptions,a=n?.opacity??r.interactivity.modes.bubble?.opacity;if(!a)return;let l=t.options.opacity.value,f=t.opacity?.value??Ul,u=$n(f,a,X(l),o);u!==void 0&&(t.bubble.opacity=u)},this._hoverBubbleSize=(t,o,n)=>{let s=this.container,r=n?.size?n.size*s.retina.pixelRatio:s.retina.bubbleModeSize;if(r===void 0)return;let a=X(t.options.size.value)*s.retina.pixelRatio,l=t.size.value,f=$n(l,r,a,o);f!==void 0&&(t.bubble.radius=f)},this._process=(t,o,n,s)=>{let r=this.container,a=s.bubbleObj.optValue,l=r.actualOptions,f=l.interactivity.modes.bubble;if(!f||a===void 0)return;let u=f.duration,h=r.retina.bubbleModeDistance,d=s.particlesObj.optValue,p=s.bubbleObj.value,x=s.particlesObj.value??Sp,m=s.type;if(!(!h||h<Nn||a===d))if(r.bubble||(r.bubble={}),r.bubble.durationEnd)p&&(m==="size"&&delete t.bubble.radius,m==="opacity"&&delete t.bubble.opacity);else if(o<=h){if((p??x)!==a){let y=x-n*(x-a)/u;m==="size"&&(t.bubble.radius=y),m==="opacity"&&(t.bubble.opacity=y)}}else m==="size"&&delete t.bubble.radius,m==="opacity"&&delete t.bubble.opacity},this._singleSelectorHover=(t,o,n)=>{let s=this.container,r=document.querySelectorAll(o),a=s.actualOptions.interactivity.modes.bubble;!a||!r.length||r.forEach(l=>{let f=l,u=s.retina.pixelRatio,h={x:(f.offsetLeft+f.offsetWidth*Yn)*u,y:(f.offsetTop+f.offsetHeight*Yn)*u},d=f.offsetWidth*Yn*u,p=n.type==="circle"?new q(h.x,h.y,d):new N(f.offsetLeft*u,f.offsetTop*u,f.offsetWidth*u,f.offsetHeight*u),x=s.particles.quadTree.query(p,m=>this.isEnabled(m));for(let m of x){if(!p.contains(m.getPosition()))continue;m.bubble.inRange=!0;let w=a.divs,y=qt(w,f);(!m.bubble.div||m.bubble.div!==f)&&(this.clear(m,t,!0),m.bubble.div=f),this._hoverBubbleSize(m,Xn,y),this._hoverBubbleOpacity(m,Xn,y),this._hoverBubbleColor(m,Xn,y)}})},e.bubble||(e.bubble={}),this.handleClickMode=t=>{t===Se&&(e.bubble||(e.bubble={}),e.bubble.clicking=!0)}}clear(e,t,o){e.bubble.inRange&&!o||(delete e.bubble.div,delete e.bubble.opacity,delete e.bubble.radius,delete e.bubble.color)}init(){let e=this.container,t=e.actualOptions.interactivity.modes.bubble;t&&(e.retina.bubbleModeDistance=t.distance*e.retina.pixelRatio,t.size!==void 0&&(e.retina.bubbleModeSize=t.size*e.retina.pixelRatio))}interact(e){let t=this.container.actualOptions,o=t.interactivity.events,n=o.onHover,s=o.onClick,r=n.enable,a=n.mode,l=s.enable,f=s.mode,u=o.onDiv;r&&z(Se,a)?this._hoverBubble():l&&z(Se,f)?this._clickBubble():We(Se,u,(h,d)=>this._singleSelectorHover(e,h,d))}isEnabled(e){let t=this.container,o=t.actualOptions,n=t.interactivity.mouse,s=(e?.interactivity??o.interactivity).events,{onClick:r,onDiv:a,onHover:l}=s,f=He(Se,a);return f||l.enable&&n.position||r.enable&&n.clickPosition?z(Se,l.mode)||z(Se,r.mode)||f:!1}loadModeOptions(e,...t){e.bubble||(e.bubble=new gt);for(let o of t)e.bubble.load(o?.bubble)}reset(e){e.bubble.inRange=!1}}});var Nl={};v(Nl,{Bubble:()=>gt,BubbleBase:()=>De,BubbleDiv:()=>xt,loadExternalBubbleInteraction:()=>Ep});async function Ep(i,e=!0){await i.addInteractor("externalBubble",async t=>{let{Bubbler:o}=await Promise.resolve().then(()=>($l(),Gl));return new o(t)},e)}var Yl=c(()=>{"use strict";ao();jn();Gn();ql();Vl();Hl()});var yt,Zn=c(()=>{"use strict";yt=class{constructor(){this.opacity=.5}load(e){e&&e.opacity!==void 0&&(this.opacity=e.opacity)}}});var vt,Kn=c(()=>{"use strict";Zn();vt=class{constructor(){this.distance=80,this.links=new yt,this.radius=60}load(e){e&&(e.distance!==void 0&&(this.distance=e.distance),this.links.load(e.links),e.radius!==void 0&&(this.radius=e.radius))}}});var Xl=c(()=>{"use strict"});var Ql=c(()=>{"use strict"});function Lp(i,e,t,o){let n=Math.floor(t.getRadius()/e.getRadius()),s=e.getFillColor(),r=t.getFillColor();if(!s||!r)return;let a=e.getPosition(),l=t.getPosition(),f=nt(s,r,e.getRadius(),t.getRadius()),u=i.createLinearGradient(a.x,a.y,l.x,l.y);return u.addColorStop(Zl,ve(s,o)),u.addColorStop(W(n,Zl,Kl),te(f,o)),u.addColorStop(Kl,ve(r,o)),u}function Fp(i,e,t,o,n){be(i,o,n),i.lineWidth=e,i.strokeStyle=t,i.stroke()}function Ap(i,e,t,o){let n=i.actualOptions,s=n.interactivity.modes.connect;if(s)return Lp(e,t,o,s.links.opacity)}function Jl(i,e,t){i.canvas.draw(o=>{let n=Ap(i,o,e,t);if(!n)return;let s=e.getPosition(),r=t.getPosition();Fp(o,e.retina.linksWidth??Tp,n,s,r)})}var Zl,Kl,Tp,ef=c(()=>{"use strict";_();Zl=0,Kl=1,Tp=0});var of={};v(of,{Connector:()=>Jn});var Bp,tf,Jn,nf=c(()=>{"use strict";_();Kn();ef();Bp="connect",tf=0,Jn=class extends H{constructor(e){super(e)}clear(){}init(){let e=this.container,t=e.actualOptions.interactivity.modes.connect;t&&(e.retina.connectModeDistance=t.distance*e.retina.pixelRatio,e.retina.connectModeRadius=t.radius*e.retina.pixelRatio)}interact(){let e=this.container;if(e.actualOptions.interactivity.events.onHover.enable&&e.interactivity.status==="pointermove"){let o=e.interactivity.mouse.position,{connectModeDistance:n,connectModeRadius:s}=e.retina;if(!n||n<tf||!s||s<tf||!o)return;let r=Math.abs(s),a=e.particles.quadTree.queryCircle(o,r,l=>this.isEnabled(l));a.forEach((l,f)=>{let u=l.getPosition(),h=1;for(let d of a.slice(f+h)){let p=d.getPosition(),x=Math.abs(n),m=Math.abs(u.x-p.x),w=Math.abs(u.y-p.y);m<x&&w<x&&Jl(e,l,d)}})}}isEnabled(e){let t=this.container,o=t.interactivity.mouse,n=(e?.interactivity??t.actualOptions.interactivity).events;return n.onHover.enable&&o.position?z(Bp,n.onHover.mode):!1}loadModeOptions(e,...t){e.connect||(e.connect=new vt);for(let o of t)e.connect.load(o?.connect)}reset(){}}});var sf={};v(sf,{Connect:()=>vt,ConnectLinks:()=>yt,loadExternalConnectInteraction:()=>qp});async function qp(i,e=!0){await i.addInteractor("externalConnect",async t=>{let{Connector:o}=await Promise.resolve().then(()=>(nf(),of));return new o(t)},e)}var rf=c(()=>{"use strict";Kn();Zn();Xl();Ql()});var bt,es=c(()=>{"use strict";_();bt=class{constructor(){this.blink=!1,this.consent=!1,this.opacity=1}load(e){e&&(e.blink!==void 0&&(this.blink=e.blink),e.color!==void 0&&(this.color=S.create(this.color,e.color)),e.consent!==void 0&&(this.consent=e.consent),e.opacity!==void 0&&(this.opacity=e.opacity))}}});var wt,ts=c(()=>{"use strict";es();wt=class{constructor(){this.distance=100,this.links=new bt}load(e){e&&(e.distance!==void 0&&(this.distance=e.distance),this.links.load(e.links))}}});var af=c(()=>{"use strict"});var cf=c(()=>{"use strict"});function Hp(i,e,t,o,n,s){be(i,t,o),i.strokeStyle=te(n,s),i.lineWidth=e,i.stroke()}function lf(i,e,t,o,n){i.canvas.draw(s=>{let r=e.getPosition();Hp(s,e.retina.linksWidth??Vp,r,n,t,o)})}var Vp,ff=c(()=>{"use strict";_();Vp=0});var uf={};v(uf,{Grabber:()=>is});var Wp,Up,jp,is,hf=c(()=>{"use strict";_();ts();ff();Wp="grab",Up=0,jp=0,is=class extends H{constructor(e){super(e)}clear(){}init(){let e=this.container,t=e.actualOptions.interactivity.modes.grab;t&&(e.retina.grabModeDistance=t.distance*e.retina.pixelRatio)}interact(){let e=this.container,t=e.actualOptions,o=t.interactivity;if(!o.modes.grab||!o.events.onHover.enable||e.interactivity.status!==ne)return;let n=e.interactivity.mouse.position;if(!n)return;let s=e.retina.grabModeDistance;if(!s||s<Up)return;let r=e.particles.quadTree.queryCircle(n,s,a=>this.isEnabled(a));for(let a of r){let l=a.getPosition(),f=A(l,n);if(f>s)continue;let u=o.modes.grab.links,h=u.opacity,d=h-f*h/s;if(d<=jp)continue;let p=u.color??a.options.links?.color;if(!e.particles.grabLineColor&&p){let m=o.modes.grab.links;e.particles.grabLineColor=Nt(p,m.blink,m.consent)}let x=st(a,void 0,e.particles.grabLineColor);x&&lf(e,a,x,d,n)}}isEnabled(e){let t=this.container,o=t.interactivity.mouse,n=(e?.interactivity??t.actualOptions.interactivity).events;return n.onHover.enable&&!!o.position&&z(Wp,n.onHover.mode)}loadModeOptions(e,...t){e.grab||(e.grab=new wt);for(let o of t)e.grab.load(o?.grab)}reset(){}}});var df={};v(df,{Grab:()=>wt,GrabLinks:()=>bt,loadExternalGrabInteraction:()=>Gp});async function Gp(i,e=!0){await i.addInteractor("externalGrab",async t=>{let{Grabber:o}=await Promise.resolve().then(()=>(hf(),uf));return new o(t)},e)}var pf=c(()=>{"use strict";ts();es();af();cf()});var mf={};v(mf,{Pauser:()=>os});var $p,os,xf=c(()=>{"use strict";_();$p="pause",os=class extends H{constructor(e){super(e),this.handleClickMode=t=>{if(t!==$p)return;let o=this.container;o.animationStatus?o.pause():o.play()}}clear(){}init(){}interact(){}isEnabled(){return!0}reset(){}}});var gf={};v(gf,{loadExternalPauseInteraction:()=>Np});async function Np(i,e=!0){await i.addInteractor("externalPause",async t=>{let{Pauser:o}=await Promise.resolve().then(()=>(xf(),mf));return new o(t)},e)}var yf=c(()=>{"use strict"});var _t,ns=c(()=>{"use strict";_();_t=class{constructor(){this.default=!0,this.groups=[],this.quantity=4}load(e){if(!e)return;e.default!==void 0&&(this.default=e.default),e.groups!==void 0&&(this.groups=e.groups.map(o=>o)),this.groups.length||(this.default=!0);let t=e.quantity;t!==void 0&&(this.quantity=M(t))}}});var vf=c(()=>{"use strict"});var bf={};v(bf,{Pusher:()=>ss});var Yp,Xp,ss,wf=c(()=>{"use strict";_();ns();Yp="push",Xp=0,ss=class extends H{constructor(e){super(e),this.handleClickMode=t=>{if(t!==Yp)return;let o=this.container,n=o.actualOptions,s=n.interactivity.modes.push;if(!s)return;let r=g(s.quantity);if(r<=Xp)return;let a=qe([void 0,...s.groups]),l=a!==void 0?o.actualOptions.particles.groups[a]:void 0;o.particles.push(r,o.interactivity.mouse,l,a)}}clear(){}init(){}interact(){}isEnabled(){return!0}loadModeOptions(e,...t){e.push||(e.push=new _t);for(let o of t)e.push.load(o?.push)}reset(){}}});var _f={};v(_f,{Push:()=>_t,loadExternalPushInteraction:()=>Qp});async function Qp(i,e=!0){await i.addInteractor("externalPush",async t=>{let{Pusher:o}=await Promise.resolve().then(()=>(wf(),bf));return new o(t)},e)}var kf=c(()=>{"use strict";ns();vf()});var kt,rs=c(()=>{"use strict";_();kt=class{constructor(){this.quantity=2}load(e){if(!e)return;let t=e.quantity;t!==void 0&&(this.quantity=M(t))}}});var Mf=c(()=>{"use strict"});var Cf={};v(Cf,{Remover:()=>as});var Zp,as,Rf=c(()=>{"use strict";_();rs();Zp="remove",as=class extends H{constructor(e){super(e),this.handleClickMode=t=>{let o=this.container,n=o.actualOptions;if(!n.interactivity.modes.remove||t!==Zp)return;let s=g(n.interactivity.modes.remove.quantity);o.particles.removeQuantity(s)}}clear(){}init(){}interact(){}isEnabled(){return!0}loadModeOptions(e,...t){e.remove||(e.remove=new kt);for(let o of t)e.remove.load(o?.remove)}reset(){}}});var Of={};v(Of,{Remove:()=>kt,loadExternalRemoveInteraction:()=>Kp});async function Kp(i,e=!0){await i.addInteractor("externalRemove",async t=>{let{Remover:o}=await Promise.resolve().then(()=>(Rf(),Cf));return new o(t)},e)}var Pf=c(()=>{"use strict";rs();Mf()});var Ie,co=c(()=>{"use strict";Ie=class{constructor(){this.distance=200,this.duration=.4,this.factor=100,this.speed=1,this.maxSpeed=50,this.easing="ease-out-quad"}load(e){e&&(e.distance!==void 0&&(this.distance=e.distance),e.duration!==void 0&&(this.duration=e.duration),e.easing!==void 0&&(this.easing=e.easing),e.factor!==void 0&&(this.factor=e.factor),e.speed!==void 0&&(this.speed=e.speed),e.maxSpeed!==void 0&&(this.maxSpeed=e.maxSpeed))}}});var Mt,cs=c(()=>{"use strict";co();Mt=class extends Ie{constructor(){super(),this.selectors=[]}load(e){super.load(e),e&&e.selectors!==void 0&&(this.selectors=e.selectors)}}});var Ct,ls=c(()=>{"use strict";_();co();cs();Ct=class extends Ie{load(e){super.load(e),e&&(this.divs=V(e.divs,t=>{let o=new Mt;return o.load(t),o}))}}});var zf=c(()=>{"use strict"});var Df=c(()=>{"use strict"});var Sf=c(()=>{"use strict"});var If={};v(If,{Repulser:()=>us});var Ee,Jp,em,tm,im,om,nm,sm,fs,us,Ef=c(()=>{"use strict";_();ls();Ee="repulse",Jp=0,em=6,tm=3,im=2,om=0,nm=0,sm=1,fs=.5,us=class extends H{constructor(e,t){super(t),this._clickRepulse=()=>{let o=this.container,n=o.actualOptions.interactivity.modes.repulse;if(!n)return;let s=o.repulse??{particles:[]};if(s.finish||(s.count||(s.count=0),s.count++,s.count===o.particles.count&&(s.finish=!0)),s.clicking){let r=o.retina.repulseModeDistance;if(!r||r<Jp)return;let a=Math.pow(r/em,tm),l=o.interactivity.mouse.clickPosition;if(l===void 0)return;let f=new q(l.x,l.y,a),u=o.particles.quadTree.query(f,h=>this.isEnabled(h));for(let h of u){let{dx:d,dy:p,distance:x}=F(l,h.position),m=x**im,w=n.speed,y=-a*w/m;if(m<=a){s.particles.push(h);let k=I.create(d,p);k.length=y,h.velocity.setTo(k)}}}else if(s.clicking===!1){for(let r of s.particles)r.velocity.setTo(r.initialVelocity);s.particles=[]}},this._hoverRepulse=()=>{let o=this.container,n=o.interactivity.mouse.position,s=o.retina.repulseModeDistance;!s||s<om||!n||this._processRepulse(n,s,new q(n.x,n.y,s))},this._processRepulse=(o,n,s,r)=>{let a=this.container,l=a.particles.quadTree.query(s,w=>this.isEnabled(w)),f=a.actualOptions.interactivity.modes.repulse;if(!f)return;let{easing:u,speed:h,factor:d,maxSpeed:p}=f,x=Lt(u),m=(r?.speed??h)*d;for(let w of l){let{dx:y,dy:k,distance:C}=F(w.position,o),b=W(x(sm-C/n)*m,nm,p),O=I.create(C?y/C*b:m,C?k/C*b:m);w.position.addTo(O)}},this._singleSelectorRepulse=(o,n)=>{let s=this.container,r=s.actualOptions.interactivity.modes.repulse;if(!r)return;let a=document.querySelectorAll(o);a.length&&a.forEach(l=>{let f=l,u=s.retina.pixelRatio,h={x:(f.offsetLeft+f.offsetWidth*fs)*u,y:(f.offsetTop+f.offsetHeight*fs)*u},d=f.offsetWidth*fs*u,p=n.type==="circle"?new q(h.x,h.y,d):new N(f.offsetLeft*u,f.offsetTop*u,f.offsetWidth*u,f.offsetHeight*u),x=r.divs,m=qt(x,f);this._processRepulse(h,d,p,m)})},this._engine=e,t.repulse||(t.repulse={particles:[]}),this.handleClickMode=o=>{let n=this.container.actualOptions,s=n.interactivity.modes.repulse;if(!s||o!==Ee)return;t.repulse||(t.repulse={particles:[]});let r=t.repulse;r.clicking=!0,r.count=0;for(let a of t.repulse.particles)this.isEnabled(a)&&a.velocity.setTo(a.initialVelocity);r.particles=[],r.finish=!1,setTimeout(()=>{t.destroyed||(r.clicking=!1)},s.duration*1e3)}}clear(){}init(){let e=this.container,t=e.actualOptions.interactivity.modes.repulse;t&&(e.retina.repulseModeDistance=t.distance*e.retina.pixelRatio)}interact(){let e=this.container,t=e.actualOptions,o=e.interactivity.status===ne,n=t.interactivity.events,s=n.onHover,r=s.enable,a=s.mode,l=n.onClick,f=l.enable,u=l.mode,h=n.onDiv;o&&r&&z(Ee,a)?this._hoverRepulse():f&&z(Ee,u)?this._clickRepulse():We(Ee,h,(d,p)=>this._singleSelectorRepulse(d,p))}isEnabled(e){let t=this.container,o=t.actualOptions,n=t.interactivity.mouse,s=(e?.interactivity??o.interactivity).events,r=s.onDiv,a=s.onHover,l=s.onClick,f=He(Ee,r);if(!(f||a.enable&&n.position||l.enable&&n.clickPosition))return!1;let u=a.mode,h=l.mode;return z(Ee,u)||z(Ee,h)||f}loadModeOptions(e,...t){e.repulse||(e.repulse=new Ct);for(let o of t)e.repulse.load(o?.repulse)}reset(){}}});var Tf={};v(Tf,{Repulse:()=>Ct,RepulseBase:()=>Ie,RepulseDiv:()=>Mt,loadExternalRepulseInteraction:()=>rm});async function rm(i,e=!0){await i.addInteractor("externalRepulse",async t=>{let{Repulser:o}=await Promise.resolve().then(()=>(Ef(),If));return new o(i,t)},e)}var Lf=c(()=>{"use strict";co();cs();ls();zf();Df();Sf()});var Rt,hs=c(()=>{"use strict";Rt=class{constructor(){this.factor=3,this.radius=200}load(e){e&&(e.factor!==void 0&&(this.factor=e.factor),e.radius!==void 0&&(this.radius=e.radius))}}});var Ff=c(()=>{"use strict"});var Af={};v(Af,{Slower:()=>ds});var am,cm,ds,Bf=c(()=>{"use strict";_();hs();am="slow",cm=0,ds=class extends H{constructor(e){super(e)}clear(e,t,o){e.slow.inRange&&!o||(e.slow.factor=1)}init(){let e=this.container,t=e.actualOptions.interactivity.modes.slow;t&&(e.retina.slowModeRadius=t.radius*e.retina.pixelRatio)}interact(){}isEnabled(e){let t=this.container,o=t.interactivity.mouse,n=(e?.interactivity??t.actualOptions.interactivity).events;return n.onHover.enable&&!!o.position&&z(am,n.onHover.mode)}loadModeOptions(e,...t){e.slow||(e.slow=new Rt);for(let o of t)e.slow.load(o?.slow)}reset(e){e.slow.inRange=!1;let t=this.container,o=t.actualOptions,n=t.interactivity.mouse.position,s=t.retina.slowModeRadius,r=o.interactivity.modes.slow;if(!r||!s||s<cm||!n)return;let a=e.getPosition(),l=A(n,a),f=l/s,u=r.factor,{slow:h}=e;l>s||(h.inRange=!0,h.factor=f/u)}}});var qf={};v(qf,{Slow:()=>Rt,loadExternalSlowInteraction:()=>lm});async function lm(i,e=!0){await i.addInteractor("externalSlow",async t=>{let{Slower:o}=await Promise.resolve().then(()=>(Bf(),Af));return new o(t)},e)}var Vf=c(()=>{"use strict";hs();Ff()});var Wf={};v(Wf,{Attractor:()=>ps});var Hf,fm,ps,Uf=c(()=>{"use strict";_();Hf=1e3,fm=1,ps=class extends _e{constructor(e){super(e)}clear(){}init(){}interact(e){let t=this.container;e.attractDistance===void 0&&(e.attractDistance=g(e.options.move.attract.distance)*t.retina.pixelRatio);let o=e.attractDistance,n=e.getPosition(),s=t.particles.quadTree.queryCircle(n,o);for(let r of s){if(e===r||!r.options.move.attract.enable||r.destroyed||r.spawning)continue;let a=r.getPosition(),{dx:l,dy:f}=F(n,a),u=e.options.move.attract.rotate,h=l/(u.x*Hf),d=f/(u.y*Hf),p=r.size.value/e.size.value,x=fm/p;e.velocity.x-=h*p,e.velocity.y-=d*p,r.velocity.x+=h*x,r.velocity.y+=d*x}}isEnabled(e){return e.options.move.attract.enable}reset(){}}});var jf={};v(jf,{loadParticlesAttractInteraction:()=>um});async function um(i,e=!0){await i.addInteractor("particlesAttract",async t=>{let{Attractor:o}=await Promise.resolve().then(()=>(Uf(),Wf));return new o(t)},e)}var Gf=c(()=>{"use strict"});function $f(i,e,t,o,n,s){let r=W(i.options.collisions.absorb.speed*n.factor/dm,pm,o);i.size.value+=r*hm,t.size.value-=r,o<=s&&(t.size.value=0,t.destroy())}function Nf(i,e,t,o){let n=i.getRadius(),s=e.getRadius();n===void 0&&s!==void 0?i.destroy():n!==void 0&&s===void 0?e.destroy():n!==void 0&&s!==void 0&&(n>=s?$f(i,n,e,s,t,o):$f(e,s,i,n,t,o))}var hm,dm,pm,Yf=c(()=>{"use strict";_();hm=.5,dm=10,pm=0});function lo(i,e){Vt(ot(i),ot(e)),Xf(i),Xf(e)}var Xf,ms=c(()=>{"use strict";_();Xf=i=>{i.collisionMaxSpeed===void 0&&(i.collisionMaxSpeed=g(i.options.collisions.maxSpeed)),i.velocity.length>i.collisionMaxSpeed&&(i.velocity.length=i.collisionMaxSpeed)}});function Qf(i,e){!i.unbreakable&&!e.unbreakable&&lo(i,e),i.getRadius()===void 0&&e.getRadius()!==void 0?i.destroy():i.getRadius()!==void 0&&e.getRadius()===void 0?e.destroy():i.getRadius()!==void 0&&e.getRadius()!==void 0&&(i.getRadius()>=e.getRadius()?e:i).destroy()}var Zf=c(()=>{"use strict";ms()});function Kf(i,e,t,o){switch(i.options.collisions.mode){case"absorb":{Nf(i,e,t,o);break}case"bounce":{lo(i,e);break}case"destroy":{Qf(i,e);break}}}var Jf=c(()=>{"use strict";Yf();ms();Zf()});var eu={};v(eu,{Collider:()=>xs});var mm,xs,tu=c(()=>{"use strict";_();Jf();mm=2,xs=class extends _e{constructor(e){super(e)}clear(){}init(){}interact(e,t){if(e.destroyed||e.spawning)return;let o=this.container,n=e.getPosition(),s=e.getRadius(),r=o.particles.quadTree.queryCircle(n,s*mm);for(let a of r){if(e===a||!a.options.collisions.enable||e.options.collisions.mode!==a.options.collisions.mode||a.destroyed||a.spawning)continue;let l=a.getPosition(),f=a.getRadius();if(Math.abs(Math.round(n.z)-Math.round(l.z))>s+f)continue;let u=A(n,l),h=s+f;u>h||Kf(e,a,t,o.retina.pixelRatio)}}isEnabled(e){return e.options.collisions.enable}reset(){}}});var iu={};v(iu,{loadParticlesCollisionsInteraction:()=>xm});async function xm(i,e=!0){await i.addInteractor("particlesCollisions",async t=>{let{Collider:o}=await Promise.resolve().then(()=>(tu(),eu));return new o(t)},e)}var ou=c(()=>{"use strict"});var Ot,gs=c(()=>{"use strict";_();Ot=class{constructor(){this.blur=5,this.color=new S,this.color.value="#000",this.enable=!1}load(e){e&&(e.blur!==void 0&&(this.blur=e.blur),this.color=S.create(this.color,e.color),e.enable!==void 0&&(this.enable=e.enable))}}});var Pt,ys=c(()=>{"use strict";_();Pt=class{constructor(){this.enable=!1,this.frequency=1}load(e){e&&(e.color!==void 0&&(this.color=S.create(this.color,e.color)),e.enable!==void 0&&(this.enable=e.enable),e.frequency!==void 0&&(this.frequency=e.frequency),e.opacity!==void 0&&(this.opacity=e.opacity))}}});var zt,vs=c(()=>{"use strict";_();gs();ys();zt=class{constructor(){this.blink=!1,this.color=new S,this.color.value="#fff",this.consent=!1,this.distance=100,this.enable=!1,this.frequency=1,this.opacity=1,this.shadow=new Ot,this.triangles=new Pt,this.width=1,this.warp=!1}load(e){e&&(e.id!==void 0&&(this.id=e.id),e.blink!==void 0&&(this.blink=e.blink),this.color=S.create(this.color,e.color),e.consent!==void 0&&(this.consent=e.consent),e.distance!==void 0&&(this.distance=e.distance),e.enable!==void 0&&(this.enable=e.enable),e.frequency!==void 0&&(this.frequency=e.frequency),e.opacity!==void 0&&(this.opacity=e.opacity),this.shadow.load(e.shadow),this.triangles.load(e.triangles),e.width!==void 0&&(this.width=e.width),e.warp!==void 0&&(this.warp=e.warp))}}});var nu=c(()=>{"use strict"});var su=c(()=>{"use strict"});var ru=c(()=>{"use strict"});var bs,fo,au=c(()=>{"use strict";_();bs=2,fo=class extends q{constructor(e,t,o,n){super(e,t,o),this.canvasSize=n,this.canvasSize={...n}}contains(e){let{width:t,height:o}=this.canvasSize,{x:n,y:s}=e;return super.contains(e)||super.contains({x:n-t,y:s})||super.contains({x:n-t,y:s-o})||super.contains({x:n,y:s-o})}intersects(e){if(super.intersects(e))return!0;let t=e,o=e,n={x:e.position.x-this.canvasSize.width,y:e.position.y-this.canvasSize.height};if(o.radius!==void 0){let s=new q(n.x,n.y,o.radius*bs);return super.intersects(s)}else if(t.size!==void 0){let s=new N(n.x,n.y,t.size.width*bs,t.size.height*bs);return super.intersects(s)}return!1}}});var lu={};v(lu,{Linker:()=>ws});function vm(i,e,t,o,n){let{dx:s,dy:r,distance:a}=F(i,e);if(!n||a<=t)return a;let l={x:Math.abs(s),y:Math.abs(r)},f={x:Math.min(l.x,o.width-l.x),y:Math.min(l.y,o.height-l.y)};return Math.sqrt(f.x**cu+f.y**cu)}var cu,gm,uo,ym,ws,fu=c(()=>{"use strict";_();au();vs();cu=2,gm=1,uo={x:0,y:0},ym=0;ws=class extends _e{constructor(e){super(e),this._setColor=t=>{if(!t.options.links)return;let o=this.linkContainer,n=t.options.links,s=n.id===void 0?o.particles.linksColor:o.particles.linksColors.get(n.id);if(s)return;let r=n.color;s=Nt(r,n.blink,n.consent),n.id===void 0?o.particles.linksColor=s:o.particles.linksColors.set(n.id,s)},this.linkContainer=e}clear(){}init(){this.linkContainer.particles.linksColor=void 0,this.linkContainer.particles.linksColors=new Map}interact(e){if(!e.options.links)return;e.links=[];let t=e.getPosition(),o=this.container,n=o.canvas.size;if(t.x<uo.x||t.y<uo.y||t.x>n.width||t.y>n.height)return;let s=e.options.links,r=s.opacity,a=e.retina.linksDistance??ym,l=s.warp,f;l?f=new fo(t.x,t.y,a,n):f=new q(t.x,t.y,a);let u=o.particles.quadTree.query(f);for(let h of u){let d=h.options.links;if(e===h||!d?.enable||s.id!==d.id||h.spawning||h.destroyed||!h.links||e.links.some(w=>w.destination===h)||h.links.some(w=>w.destination===e))continue;let p=h.getPosition();if(p.x<uo.x||p.y<uo.y||p.x>n.width||p.y>n.height)continue;let x=vm(t,p,a,n,l&&d.warp);if(x>a)continue;let m=(gm-x/a)*r;this._setColor(e),e.links.push({destination:h,opacity:m})}}isEnabled(e){return!!e.options.links?.enable}loadParticlesOptions(e,...t){e.links||(e.links=new zt);for(let o of t)e.links.load(o?.links)}reset(){}}});var uu={};v(uu,{loadLinksInteraction:()=>bm});async function bm(i,e=!0){await i.addInteractor("particlesLinks",async t=>{let{Linker:o}=await Promise.resolve().then(()=>(fu(),lu));return new o(t)},e)}var hu=c(()=>{"use strict"});function wm(i,e,t,o){i.beginPath(),i.moveTo(e.x,e.y),i.lineTo(t.x,t.y),i.lineTo(o.x,o.y),i.closePath()}function du(i){let e=!1,{begin:t,end:o,maxDistance:n,context:s,canvasSize:r,width:a,backgroundMask:l,colorLine:f,opacity:u,links:h}=i;if(A(t,o)<=n)be(s,t,o),e=!0;else if(h.warp){let p,x,m={x:o.x-r.width,y:o.y},w=F(t,m);if(w.distance<=n){let y=t.y-w.dy/w.dx*t.x;p={x:0,y},x={x:r.width,y}}else{let y={x:o.x,y:o.y-r.height},k=F(t,y);if(k.distance<=n){let b=-(t.y-k.dy/k.dx*t.x)/(k.dy/k.dx);p={x:b,y:0},x={x:b,y:r.height}}else{let C={x:o.x-r.width,y:o.y-r.height},b=F(t,C);if(b.distance<=n){let O=t.y-b.dy/b.dx*t.x;p={x:-O/(b.dy/b.dx),y:O},x={x:p.x+r.width,y:p.y+r.height}}}}p&&x&&(be(s,t,p),be(s,o,x),e=!0)}if(!e)return;s.lineWidth=a,l.enable&&(s.globalCompositeOperation=l.composite),s.strokeStyle=te(f,u);let{shadow:d}=h;if(d.enable){let p=J(d.color);p&&(s.shadowBlur=d.blur,s.shadowColor=te(p))}s.stroke()}function pu(i){let{context:e,pos1:t,pos2:o,pos3:n,backgroundMask:s,colorTriangle:r,opacityTriangle:a}=i;wm(e,t,o,n),s.enable&&(e.globalCompositeOperation=s.composite),e.fillStyle=te(r,a),e.fill()}function _m(i){return i.sort((e,t)=>e-t),i.join("_")}function _s(i,e){let t=_m(i.map(n=>n.id)),o=e.get(t);return o===void 0&&(o=R(),e.set(t,o)),o}var mu=c(()=>{"use strict";_()});var yu={};v(yu,{LinkInstance:()=>Ms});var xu,ks,gu,km,Mm,Ms,vu=c(()=>{"use strict";_();mu();xu=0,ks=0,gu=0,km=.5,Mm=1,Ms=class{constructor(e){this.container=e,this._drawLinkLine=(t,o)=>{let n=t.options.links;if(!n?.enable)return;let s=this.container,r=s.actualOptions,a=o.destination,l=t.getPosition(),f=a.getPosition(),u=o.opacity;s.canvas.draw(h=>{let d,p=t.options.twinkle?.lines;if(p?.enable){let y=p.frequency,k=J(p.color);R()<y&&k&&(d=k,u=g(p.opacity))}if(!d){let y=n.id!==void 0?s.particles.linksColors.get(n.id):s.particles.linksColor;d=st(t,a,y)}if(!d)return;let x=t.retina.linksWidth??ks,m=t.retina.linksDistance??gu,{backgroundMask:w}=r;du({context:h,width:x,begin:l,end:f,maxDistance:m,canvasSize:s.canvas.size,links:n,backgroundMask:w,colorLine:d,opacity:u})})},this._drawLinkTriangle=(t,o,n)=>{let s=t.options.links;if(!s?.enable)return;let r=s.triangles;if(!r.enable)return;let a=this.container,l=a.actualOptions,f=o.destination,u=n.destination,h=r.opacity??(o.opacity+n.opacity)*km;h<=xu||a.canvas.draw(d=>{let p=t.getPosition(),x=f.getPosition(),m=u.getPosition(),w=t.retina.linksDistance??gu;if(A(p,x)>w||A(m,x)>w||A(m,p)>w)return;let y=J(r.color);if(!y){let k=s.id!==void 0?a.particles.linksColors.get(s.id):a.particles.linksColor;y=st(t,f,k)}y&&pu({context:d,pos1:p,pos2:x,pos3:m,backgroundMask:l.backgroundMask,colorTriangle:y,opacityTriangle:h})})},this._drawTriangles=(t,o,n,s)=>{let r=n.destination;if(!(t.links?.triangles.enable&&r.options.links?.triangles.enable))return;let a=r.links?.filter(l=>{let f=this._getLinkFrequency(r,l.destination),u=0;return r.options.links&&f<=r.options.links.frequency&&s.findIndex(h=>h.destination===l.destination)>=u});if(a?.length)for(let l of a){let f=l.destination;this._getTriangleFrequency(o,r,f)>t.links.triangles.frequency||this._drawLinkTriangle(o,n,l)}},this._getLinkFrequency=(t,o)=>_s([t,o],this._freqs.links),this._getTriangleFrequency=(t,o,n)=>_s([t,o,n],this._freqs.triangles),this._freqs={links:new Map,triangles:new Map}}drawParticle(e,t){let{links:o,options:n}=t;if(!o?.length)return;let s=o.filter(r=>n.links&&(n.links.frequency>=Mm||this._getLinkFrequency(t,r.destination)<=n.links.frequency));for(let r of s)this._drawTriangles(n,t,r,s),r.opacity>xu&&(t.retina.linksWidth??ks)>ks&&this._drawLinkLine(t,r)}async init(){this._freqs.links=new Map,this._freqs.triangles=new Map,await Promise.resolve()}particleCreated(e){if(e.links=[],!e.options.links)return;let t=this.container.retina.pixelRatio,{retina:o}=e,{distance:n,width:s}=e.options.links;o.linksDistance=n*t,o.linksWidth=s*t}particleDestroyed(e){e.links=[]}}});var bu={};v(bu,{LinksPlugin:()=>Cs});var Cs,wu=c(()=>{"use strict";Cs=class{constructor(){this.id="links"}async getPlugin(e){let{LinkInstance:t}=await Promise.resolve().then(()=>(vu(),yu));return new t(e)}loadOptions(){}needsPlugin(){return!0}}});var _u={};v(_u,{loadLinksPlugin:()=>Cm});async function Cm(i,e=!0){let{LinksPlugin:t}=await Promise.resolve().then(()=>(wu(),bu)),o=new t;await i.addPlugin(o,e)}var ku=c(()=>{"use strict"});var Mu={};v(Mu,{Links:()=>zt,LinksShadow:()=>Ot,LinksTriangle:()=>Pt,loadParticlesLinksInteraction:()=>Rm});async function Rm(i,e=!0){let{loadLinksInteraction:t}=await Promise.resolve().then(()=>(hu(),uu)),{loadLinksPlugin:o}=await Promise.resolve().then(()=>(ku(),_u));await t(i,e),await o(i,e)}var Cu=c(()=>{"use strict";vs();gs();ys();nu();su();ru()});var Ru={};v(Ru,{loadEasingQuadPlugin:()=>Om});async function Om(){Tt("ease-in-quad",i=>i**2),Tt("ease-out-quad",i=>1-(1-i)**2),Tt("ease-in-out-quad",i=>i<.5?2*i**2:1-(-2*i+2)**2/2),await Promise.resolve()}var Ou=c(()=>{"use strict";_()});var Dt,Rs=c(()=>{"use strict";Dt=["emoji"]});function Pu(i){let{context:e,particle:t,radius:o,opacity:n}=i,s=t.emojiData,r=2,a=o*r,l=e.globalAlpha;s&&(e.globalAlpha=n,e.drawImage(s,-o,-o,a,a),e.globalAlpha=l)}var zu=c(()=>{"use strict"});var Su={};v(Su,{EmojiDrawer:()=>Os});var Du,Os,Iu=c(()=>{"use strict";_();zu();Rs();Du='"Twemoji Mozilla", Apple Color Emoji, "Segoe UI Emoji", "Noto Color Emoji", "EmojiOne Color"',Os=class{constructor(){this._emojiShapeDict=new Map}destroy(){for(let[e,t]of this._emojiShapeDict)t instanceof ImageBitmap&&(t?.close(),this._emojiShapeDict.delete(e))}draw(e){Pu(e)}async init(e){let t=e.actualOptions;if(!Dt.find(s=>z(s,t.particles.shape.type)))return;let o=[Fo(Du)],n=Dt.map(s=>t.particles.shape.options[s]).find(s=>!!s);n&&V(n,s=>{s.font&&o.push(Fo(s.font))}),await Promise.all(o)}particleDestroy(e){delete e.emojiData}particleInit(e,t){let n=t.shapeData;if(!n?.value)return;let s=Q(n.value,t.randomIndexData),r=n.font??Du;if(!s)return;let a=`${s}_${r}`,l=this._emojiShapeDict.get(a);if(l){t.emojiData=l;return}let f=X(t.size.value)*2,u,h=X(t.size.value);if(typeof OffscreenCanvas<"u"){let d=new OffscreenCanvas(f,f),p=d.getContext("2d");if(!p)return;p.font=`400 ${h*2}px ${r}`,p.textBaseline="middle",p.textAlign="center",p.fillText(s,h,h),u=d.transferToImageBitmap()}else{let d=document.createElement("canvas");d.width=f,d.height=f;let p=d.getContext("2d");if(!p)return;p.font=`400 ${h*2}px ${r}`,p.textBaseline="middle",p.textAlign="center",p.fillText(s,h,h),u=d}this._emojiShapeDict.set(a,u),t.emojiData=u}}});var Eu={};v(Eu,{loadEmojiShape:()=>Pm});async function Pm(i,e=!0){let{EmojiDrawer:t}=await Promise.resolve().then(()=>(Iu(),Su));await i.addShape(Dt,new t,e)}var Tu=c(()=>{"use strict";Rs()});var Lu={};v(Lu,{downloadSvgImage:()=>Ps,loadImage:()=>St,replaceImageColor:()=>zs});function Im(i,e,t){let{svgData:o}=i;if(!o)return"";let n=ve(e,t);if(o.includes("fill"))return o.replace(Sm,()=>n);let s=o.indexOf(">");return`${o.substring(zm,s)} fill="${n}"${o.substring(s)}`}async function St(i){return new Promise(e=>{i.loading=!0;let t=new Image;i.element=t,t.addEventListener("load",()=>{i.loading=!1,e()}),t.addEventListener("error",()=>{i.element=void 0,i.error=!0,i.loading=!1,fe().error(`${G} loading image: ${i.source}`),e()}),t.src=i.source})}async function Ps(i){if(i.type!=="svg"){await St(i);return}i.loading=!0;let e=await fetch(i.source);e.ok?i.svgData=await e.text():(fe().error(`${G} Image not found`),i.error=!0),i.loading=!1}function zs(i,e,t,o){let n=Im(i,t,o.opacity?.value??Dm),s={color:t,gif:e.gif,data:{...i,svgData:n},loaded:!1,ratio:e.width/e.height,replaceColor:e.replaceColor,source:e.src};return new Promise(r=>{let a=new Blob([n],{type:"image/svg+xml"}),l=URL||window.URL||window.webkitURL||window,f=l.createObjectURL(a),u=new Image;u.addEventListener("load",()=>{s.loaded=!0,s.element=u,r(s),l.revokeObjectURL(f)});let h=async()=>{l.revokeObjectURL(f);let d={...i,error:!1,loading:!0};await St(d),s.loaded=!0,s.element=d.element,r(s)};u.addEventListener("error",()=>void h()),u.src=f})}var zm,Dm,Sm,ho=c(()=>{"use strict";_();zm=0,Dm=1,Sm=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d.]+%?\))|currentcolor/gi});var po,Ds,Fu=c(()=>{"use strict";po=[0,4,2,1],Ds=[8,8,4,2]});var mo,Au=c(()=>{"use strict";mo=class{constructor(e){this.pos=0,this.data=new Uint8ClampedArray(e)}getString(e){let t=this.data.slice(this.pos,this.pos+e);return this.pos+=t.length,t.reduce((o,n)=>o+String.fromCharCode(n),"")}nextByte(){return this.data[this.pos++]}nextTwoBytes(){return this.pos+=2,this.data[this.pos-2]+(this.data[this.pos-1]<<8)}readSubBlocks(){let e="",t=0,o=0,n=0;do{t=this.data[this.pos++];for(let s=t;--s>=o;e+=String.fromCharCode(this.data[this.pos++]));}while(t!==n);return e}readSubBlocksBin(){let e=this.data[this.pos],t=0,o=0,n=1;for(let r=0;e!==o;r+=e+n,e=this.data[this.pos+r])t+=e;let s=new Uint8Array(t);e=this.data[this.pos++];for(let r=0;e!==o;e=this.data[this.pos++])for(let a=e;--a>=o;s[r++]=this.data[this.pos++]);return s}skipSubBlocks(){for(let e=1,t=0;this.data[this.pos]!==t;this.pos+=this.data[this.pos]+e);this.pos++}}});var Uu={};v(Uu,{decodeGIF:()=>Wu,drawGif:()=>Is,getGIFLoopAmount:()=>Hu,loadGifImage:()=>Bm});function Vu(i,e){let t=[];for(let o=0;o<e;o++)t.push({r:i.data[i.pos],g:i.data[i.pos+1],b:i.data[i.pos+2]}),i.pos+=3;return t}function Lm(i,e,t,o){switch(i.nextByte()){case 249:{let n=e.frames[t(!1)];i.pos++;let s=i.nextByte();n.GCreserved=(s&224)>>>5,n.disposalMethod=(s&28)>>>2,n.userInputDelayFlag=(s&2)===2;let r=(s&1)===1;n.delayTime=i.nextTwoBytes()*10;let a=i.nextByte();r&&o(a),i.pos++;break}case 255:{i.pos++;let n={identifier:i.getString(8),authenticationCode:i.getString(3),data:i.readSubBlocksBin()};e.applicationExtensions.push(n);break}case 254:{e.comments.push([t(!1),i.readSubBlocks()]);break}case 1:{if(e.globalColorTable.length===0)throw new EvalError("plain text extension without global color table");i.pos++,e.frames[t(!1)].plainTextData={left:i.nextTwoBytes(),top:i.nextTwoBytes(),width:i.nextTwoBytes(),height:i.nextTwoBytes(),charSize:{width:i.nextTwoBytes(),height:i.nextTwoBytes()},foregroundColor:i.nextByte(),backgroundColor:i.nextByte(),text:i.readSubBlocks()};break}default:i.skipSubBlocks();break}}async function Fm(i,e,t,o,n,s){let r=e.frames[o(!0)];r.left=i.nextTwoBytes(),r.top=i.nextTwoBytes(),r.width=i.nextTwoBytes(),r.height=i.nextTwoBytes();let a=i.nextByte(),l=(a&128)===128,f=(a&64)===64;r.sortFlag=(a&32)===32,r.reserved=(a&24)>>>3;let u=1<<(a&7)+1;l&&(r.localColorTable=Vu(i,u));let h=y=>{let{r:k,g:C,b}=(l?r.localColorTable:e.globalColorTable)[y];return y!==n(null)?{r:k,g:C,b,a:255}:{r:k,g:C,b,a:t?~~((k+C+b)/3):0}},d=(()=>{try{return new ImageData(r.width,r.height,{colorSpace:"srgb"})}catch(y){if(y instanceof DOMException&&y.name==="IndexSizeError")return null;throw y}})();if(d==null)throw new EvalError("GIF frame size is to large");let p=i.nextByte(),x=i.readSubBlocksBin(),m=1<<p,w=(y,k)=>{let C=y>>>3,b=y&7;return(x[C]+(x[C+1]<<8)+(x[C+2]<<16)&(1<<k)-1<<b)>>>b};if(f){for(let y=0,k=p+1,C=0,b=[[0]],O=0;O<4;O++){if(po[O]<r.height){let P=0,Y=0,T=!1;for(;!T;){let L=y;if(y=w(C,k),C+=k+1,y===m){k=p+1,b.length=m+2;for(let Z=0;Z<b.length;Z++)b[Z]=Z<m?[Z]:[]}else{y>=b.length?b.push(b[L].concat(b[L][0])):L!==m&&b.push(b[L].concat(b[y][0]));for(let Z of b[y]){let{r:oe,g:It,b:Ks,a:Js}=h(Z);d.data.set([oe,It,Ks,Js],po[O]*r.width+Ds[O]*Y+P%(r.width*4)),P+=4}b.length===1<<k&&k<12&&k++}P===r.width*4*(Y+1)&&(Y++,po[O]+Ds[O]*Y>=r.height&&(T=!0))}}s?.(i.pos/(i.data.length-1),o(!1)+1,d,{x:r.left,y:r.top},{width:e.width,height:e.height})}r.image=d,r.bitmap=await createImageBitmap(d)}else{let y=0,k=p+1,C=0,b=-4,O=!1,P=[[0]];for(;!O;){let Y=y;if(y=w(C,k),C+=k,y===m){k=p+1,P.length=m+2;for(let T=0;T<P.length;T++)P[T]=T<m?[T]:[]}else{if(y===m+1){O=!0;break}y>=P.length?P.push(P[Y].concat(P[Y][0])):Y!==m&&P.push(P[Y].concat(P[y][0]));for(let T of P[y]){let{r:L,g:Z,b:oe,a:It}=h(T);d.data.set([L,Z,oe,It],b+=4)}P.length>=1<<k&&k<12&&k++}}r.image=d,r.bitmap=await createImageBitmap(d),s?.((i.pos+1)/i.data.length,o(!1)+1,r.image,{x:r.left,y:r.top},{width:e.width,height:e.height})}}async function Am(i,e,t,o,n,s){switch(i.nextByte()){case 59:return!0;case 44:await Fm(i,e,t,o,n,s);break;case 33:Lm(i,e,o,n);break;default:throw new EvalError("undefined block found")}return!1}function Hu(i){for(let e of i.applicationExtensions)if(e.identifier+e.authenticationCode==="NETSCAPE2.0")return e.data[1]+(e.data[2]<<8);return NaN}async function Wu(i,e,t){t||(t=!1);let o=await fetch(i);if(!o.ok&&o.status===404)throw new EvalError("file not found");let n=await o.arrayBuffer(),s={width:0,height:0,totalTime:0,colorRes:0,pixelAspectRatio:0,frames:[],sortFlag:!1,globalColorTable:[],backgroundImage:new ImageData(1,1,{colorSpace:"srgb"}),comments:[],applicationExtensions:[]},r=new mo(new Uint8ClampedArray(n));if(r.getString(6)!=="GIF89a")throw new Error("not a supported GIF file");s.width=r.nextTwoBytes(),s.height=r.nextTwoBytes();let a=r.nextByte(),l=(a&128)===128;s.colorRes=(a&112)>>>4,s.sortFlag=(a&8)===8;let f=1<<(a&7)+1,u=r.nextByte();s.pixelAspectRatio=r.nextByte(),s.pixelAspectRatio!==0&&(s.pixelAspectRatio=(s.pixelAspectRatio+15)/64),l&&(s.globalColorTable=Vu(r,f));let h=(()=>{try{return new ImageData(s.width,s.height,{colorSpace:"srgb"})}catch(b){if(b instanceof DOMException&&b.name==="IndexSizeError")return null;throw b}})();if(h==null)throw new Error("GIF frame size is to large");let{r:d,g:p,b:x}=s.globalColorTable[u];h.data.set(l?[d,p,x,255]:[0,0,0,0]);for(let b=4;b<h.data.length;b*=2)h.data.copyWithin(b,0,b);s.backgroundImage=h;let m=-1,w=!0,y=-1,k=b=>(b&&(w=!0),m),C=b=>(b!=null&&(y=b),y);try{do w&&(s.frames.push({left:0,top:0,width:0,height:0,disposalMethod:0,image:new ImageData(1,1,{colorSpace:"srgb"}),plainTextData:null,userInputDelayFlag:!1,delayTime:0,sortFlag:!1,localColorTable:[],reserved:0,GCreserved:0}),m++,y=-1,w=!1);while(!await Am(r,s,t,k,C,e));s.frames.length--;for(let b of s.frames){if(b.userInputDelayFlag&&b.delayTime===0){s.totalTime=1/0;break}s.totalTime+=b.delayTime}return s}catch(b){throw b instanceof EvalError?new Error(`error while parsing frame ${m} "${b.message}"`):b}}function Is(i){let{context:e,radius:t,particle:o,delta:n}=i,s=o.image;if(!s?.gifData||!s.gif)return;let r=new OffscreenCanvas(s.gifData.width,s.gifData.height),a=r.getContext("2d");if(!a)throw new Error("could not create offscreen canvas context");a.imageSmoothingQuality="low",a.imageSmoothingEnabled=!1,a.clearRect(ie.x,ie.y,r.width,r.height),o.gifLoopCount===void 0&&(o.gifLoopCount=s.gifLoopCount??Ss);let l=o.gifFrame??Em,f={x:-s.gifData.width*Bu,y:-s.gifData.height*Bu},u=s.gifData.frames[l];if(o.gifTime===void 0&&(o.gifTime=Tm),!!u.bitmap){switch(e.scale(t/s.gifData.width,t/s.gifData.height),u.disposalMethod){case 4:case 5:case 6:case 7:case 0:a.drawImage(u.bitmap,u.left,u.top),e.drawImage(r,f.x,f.y),a.clearRect(ie.x,ie.y,r.width,r.height);break;case 1:a.drawImage(u.bitmap,u.left,u.top),e.drawImage(r,f.x,f.y);break;case 2:a.drawImage(u.bitmap,u.left,u.top),e.drawImage(r,f.x,f.y),a.clearRect(ie.x,ie.y,r.width,r.height),s.gifData.globalColorTable.length?a.putImageData(s.gifData.backgroundImage,f.x,f.y):a.putImageData(s.gifData.frames[qu].image,f.x+u.left,f.y+u.top);break;case 3:{let h=a.getImageData(ie.x,ie.y,r.width,r.height);a.drawImage(u.bitmap,u.left,u.top),e.drawImage(r,f.x,f.y),a.clearRect(ie.x,ie.y,r.width,r.height),a.putImageData(h,ie.x,ie.y)}break}if(o.gifTime+=n.value,o.gifTime>u.delayTime){if(o.gifTime-=u.delayTime,++l>=s.gifData.frames.length){if(--o.gifLoopCount<=Ss)return;l=qu,a.clearRect(ie.x,ie.y,r.width,r.height)}o.gifFrame=l}e.scale(s.gifData.width/t,s.gifData.height/t)}}async function Bm(i){if(i.type!=="gif"){let{loadImage:e}=await Promise.resolve().then(()=>(ho(),Lu));await e(i);return}i.loading=!0;try{i.gifData=await Wu(i.source),i.gifLoopCount=Hu(i.gifData)??Ss,i.gifLoopCount||(i.gifLoopCount=1/0)}catch{i.error=!0}i.loading=!1}var ie,Em,Bu,Tm,qu,Ss,Es=c(()=>{"use strict";Fu();Au();ie={x:0,y:0},Em=0,Bu=.5,Tm=0,qu=0,Ss=0});var xo,ju=c(()=>{"use strict";xo=class{constructor(){this.src="",this.gif=!1}load(e){e&&(e.gif!==void 0&&(this.gif=e.gif),e.height!==void 0&&(this.height=e.height),e.name!==void 0&&(this.name=e.name),e.replaceColor!==void 0&&(this.replaceColor=e.replaceColor),e.src!==void 0&&(this.src=e.src),e.width!==void 0&&(this.width=e.width))}}});var Gu={};v(Gu,{ImagePreloaderPlugin:()=>Ts});var Ts,$u=c(()=>{"use strict";ju();Ts=class{constructor(e){this.id="imagePreloader",this._engine=e}async getPlugin(){return await Promise.resolve(),{}}loadOptions(e,t){if(!t?.preload)return;e.preload||(e.preload=[]);let o=e.preload;for(let n of t.preload){let s=o.find(r=>r.name===n.name||r.src===n.src);if(s)s.load(n);else{let r=new xo;r.load(n),o.push(r)}}}needsPlugin(){return!0}}});var Nu={};v(Nu,{ImageDrawer:()=>Ls});var qm,Vm,Hm,Wm,Ls,Yu=c(()=>{"use strict";_();ho();Es();qm=2,Vm=1,Hm=12,Wm=1,Ls=class{constructor(e){this.loadImageShape=async t=>{if(!this._engine.loadImage)throw new Error(`${G} image shape not initialized`);await this._engine.loadImage({gif:t.gif,name:t.name,replaceColor:t.replaceColor??!1,src:t.src})},this._engine=e}addImage(e){this._engine.images||(this._engine.images=[]),this._engine.images.push(e)}draw(e){let{context:t,radius:o,particle:n,opacity:s}=e,r=n.image,a=r?.element;if(r){if(t.globalAlpha=s,r.gif&&r.gifData)Is(e);else if(a){let l=r.ratio,f={x:-o,y:-o},u=o*qm;t.drawImage(a,f.x,f.y,u,u/l)}t.globalAlpha=Vm}}getSidesCount(){return Hm}async init(e){let t=e.actualOptions;if(!(!t.preload||!this._engine.loadImage))for(let o of t.preload)await this._engine.loadImage(o)}loadShape(e){if(e.shape!=="image"&&e.shape!=="images")return;this._engine.images||(this._engine.images=[]);let t=e.shapeData;if(!t)return;this._engine.images.find(n=>n.name===t.name||n.source===t.src)||this.loadImageShape(t).then(()=>{this.loadShape(e)})}particleInit(e,t){if(t.shape!=="image"&&t.shape!=="images")return;this._engine.images||(this._engine.images=[]);let o=this._engine.images,n=t.shapeData;if(!n)return;let s=t.getFillColor(),r=o.find(l=>l.name===n.name||l.source===n.src);if(!r)return;let a=n.replaceColor??r.replaceColor;if(r.loading){setTimeout(()=>{this.particleInit(e,t)});return}(async()=>{let l;r.svgData&&s?l=await zs(r,n,s,t):l={color:s,data:r,element:r.element,gif:r.gif,gifData:r.gifData,gifLoopCount:r.gifLoopCount,loaded:!0,ratio:n.width&&n.height?n.width/n.height:r.ratio??Wm,replaceColor:a,source:n.src},l.ratio||(l.ratio=1);let f=n.fill??t.shapeFill,u=n.close??t.shapeClose,h={image:l,fill:f,close:u};t.image=h.image,t.shapeFill=h.fill,t.shapeClose=h.close})()}}});var Xu={};v(Xu,{loadImageShape:()=>Gm});function jm(i){i.loadImage||(i.loadImage=async e=>{if(!e.name&&!e.src)throw new Error(`${G} no image source provided`);if(i.images||(i.images=[]),!i.images.find(t=>t.name===e.name||t.source===e.src))try{let t={gif:e.gif??!1,name:e.name??e.src,source:e.src,type:e.src.substring(e.src.length-Um),error:!1,loading:!0,replaceColor:e.replaceColor,ratio:e.width&&e.height?e.width/e.height:void 0};i.images.push(t);let o;if(e.gif){let{loadGifImage:n}=await Promise.resolve().then(()=>(Es(),Uu));o=n}else o=e.replaceColor?Ps:St;await o(t)}catch{throw new Error(`${G} ${e.name??e.src} not found`)}})}async function Gm(i,e=!0){jm(i);let{ImagePreloaderPlugin:t}=await Promise.resolve().then(()=>($u(),Gu)),{ImageDrawer:o}=await Promise.resolve().then(()=>(Yu(),Nu)),n=new t(i);await i.addPlugin(n,e),await i.addShape(["image","images"],new o(i),e)}var Um,Qu=c(()=>{"use strict";ho();_();Um=3});function Zu(i){let{context:e,particle:t,radius:o}=i,n=t.shapeData,s=0;e.moveTo(-o,s),e.lineTo(o,s),e.lineCap=n?.cap??"butt"}var Ku=c(()=>{"use strict"});var Ju={};v(Ju,{LineDrawer:()=>Fs});var $m,Fs,eh=c(()=>{"use strict";Ku();$m=1,Fs=class{draw(e){Zu(e)}getSidesCount(){return $m}}});var th={};v(th,{loadLineShape:()=>Nm});async function Nm(i,e=!0){let{LineDrawer:t}=await Promise.resolve().then(()=>(eh(),Ju));await i.addShape("line",new t,e)}var ih=c(()=>{"use strict"});function oh(i,e,t){let{context:o}=i,n=t.count.numerator*t.count.denominator,s=t.count.numerator/t.count.denominator,r=Ym*(s-Xm)/s,a=Math.PI-le(r);if(o){o.beginPath(),o.translate(e.x,e.y),o.moveTo(go.x,go.y);for(let l=0;l<n;l++)o.lineTo(t.length,go.y),o.translate(t.length,go.y),o.rotate(a)}}var Ym,go,Xm,nh=c(()=>{"use strict";_();Ym=180,go={x:0,y:0},Xm=2});var Qm,Ze,As=c(()=>{"use strict";_();nh();Qm=5,Ze=class{draw(e){let{particle:t,radius:o}=e,n=this.getCenter(t,o),s=this.getSidesData(t,o);oh(e,n,s)}getSidesCount(e){let t=e.shapeData;return Math.round(g(t?.sides??Qm))}}});var ah={};v(ah,{PolygonDrawer:()=>Bs});var sh,rh,Zm,Bs,ch=c(()=>{"use strict";As();sh=3.5,rh=2.66,Zm=3,Bs=class extends Ze{getCenter(e,t){return{x:-t/(e.sides/sh),y:-t/(rh/sh)}}getSidesData(e,t){let o=e.sides;return{count:{denominator:1,numerator:o},length:t*rh/(o/Zm)}}}});var lh={};v(lh,{TriangleDrawer:()=>qs});var Km,Jm,ex,qs,fh=c(()=>{"use strict";As();Km=1.66,Jm=3,ex=2,qs=class extends Ze{getCenter(e,t){return{x:-t,y:t/Km}}getSidesCount(){return Jm}getSidesData(e,t){let o=t*ex;return{count:{denominator:2,numerator:3},length:o}}}});var dh={};v(dh,{loadGenericPolygonShape:()=>uh,loadPolygonShape:()=>tx,loadTriangleShape:()=>hh});async function uh(i,e=!0){let{PolygonDrawer:t}=await Promise.resolve().then(()=>(ch(),ah));await i.addShape("polygon",new t,e)}async function hh(i,e=!0){let{TriangleDrawer:t}=await Promise.resolve().then(()=>(fh(),lh));await i.addShape("triangle",new t,e)}async function tx(i,e=!0){await uh(i,e),await hh(i,e)}var ph=c(()=>{"use strict"});function mh(i){let{context:e,radius:t}=i,o=t/ix,n=o*ox;e.rect(-o,-o,n,n)}var ix,ox,xh=c(()=>{"use strict";ix=Math.sqrt(2),ox=2});var gh={};v(gh,{SquareDrawer:()=>Vs});var nx,Vs,yh=c(()=>{"use strict";xh();nx=4,Vs=class{draw(e){mh(e)}getSidesCount(){return nx}}});var vh={};v(vh,{loadSquareShape:()=>sx});async function sx(i,e=!0){let{SquareDrawer:t}=await Promise.resolve().then(()=>(yh(),gh));await i.addShape(["edge","square"],new t,e)}var bh=c(()=>{"use strict"});function wh(i){let{context:e,particle:t,radius:o}=i,n=t.sides,s=t.starInset??2;e.moveTo(Ke.x,Ke.y-o);for(let r=0;r<n;r++)e.rotate(Math.PI/n),e.lineTo(Ke.x,Ke.y-o*s),e.rotate(Math.PI/n),e.lineTo(Ke.x,Ke.y-o)}var Ke,_h=c(()=>{"use strict";Ke={x:0,y:0}});var kh={};v(kh,{StarDrawer:()=>Hs});var rx,ax,Hs,Mh=c(()=>{"use strict";_();_h();rx=2,ax=5,Hs=class{draw(e){wh(e)}getSidesCount(e){let t=e.shapeData;return Math.round(g(t?.sides??ax))}particleInit(e,t){let o=t.shapeData;t.starInset=g(o?.inset??rx)}}});var Ch={};v(Ch,{loadStarShape:()=>cx});async function cx(i,e=!0){let{StarDrawer:t}=await Promise.resolve().then(()=>(Mh(),kh));await i.addShape("star",new t,e)}var Rh=c(()=>{"use strict"});var yo,Oh=c(()=>{"use strict";_();yo=class extends ee{constructor(){super(),this.sync=!1}load(e){e&&(super.load(e),e.sync!==void 0&&(this.sync=e.sync))}}});var vo,Ph=c(()=>{"use strict";_();vo=class extends ee{constructor(){super(),this.sync=!1}load(e){e&&(super.load(e),e.sync!==void 0&&(this.sync=e.sync))}}});var bo,zh=c(()=>{"use strict";Oh();Ph();bo=class{constructor(){this.count=0,this.delay=new yo,this.duration=new vo}load(e){e&&(e.count!==void 0&&(this.count=e.count),this.delay.load(e.delay),this.duration.load(e.duration))}}});function Ih(i,e,t){if(!i.life)return;let o=i.life,n=!1;if(i.spawning)if(o.delayTime+=e.value,o.delayTime>=i.life.delay)n=!0,i.spawning=!1,o.delayTime=Je,o.time=Je;else return;if(o.duration===lx||i.spawning||(n?o.time=Je:o.time+=e.value,o.time<o.duration))return;if(o.time=Je,i.life.count>Dh&&i.life.count--,i.life.count===Dh){i.destroy();return}let s=M(Sh,t.width),r=M(Sh,t.width);i.position.x=$(s),i.position.y=$(r),i.spawning=!0,o.delayTime=Je,o.time=Je,i.reset();let a=i.options.life;a&&(o.delay=g(a.delay.value)*1e3,o.duration=g(a.duration.value)*1e3)}var Je,lx,Dh,Sh,Eh=c(()=>{"use strict";_();Je=0,lx=-1,Dh=0,Sh=0});var Fh={};v(Fh,{LifeUpdater:()=>Ws});var Te,Th,Lh,Ws,Ah=c(()=>{"use strict";_();zh();Eh();Te=0,Th=1,Lh=-1,Ws=class{constructor(e){this.container=e}init(e){let t=this.container,o=e.options,n=o.life;n&&(e.life={delay:t.retina.reduceFactor?g(n.delay.value)*(n.delay.sync?Th:R())/t.retina.reduceFactor*1e3:Te,delayTime:Te,duration:t.retina.reduceFactor?g(n.duration.value)*(n.duration.sync?Th:R())/t.retina.reduceFactor*1e3:Te,time:Te,count:n.count},e.life.duration<=Te&&(e.life.duration=Lh),e.life.count<=Te&&(e.life.count=Lh),e.life&&(e.spawning=e.life.delay>Te))}isEnabled(e){return!e.destroyed}loadOptions(e,...t){e.life||(e.life=new bo);for(let o of t)e.life.load(o?.life)}update(e,t){!this.isEnabled(e)||!e.life||Ih(e,t,this.container.canvas.size)}}});var Bh={};v(Bh,{loadLifeUpdater:()=>fx});async function fx(i,e=!0){await i.addParticleUpdater("life",async t=>{let{LifeUpdater:o}=await Promise.resolve().then(()=>(Ah(),Fh));return new o(t)},e)}var qh=c(()=>{"use strict"});var wo,Vh=c(()=>{"use strict";_();wo=class{constructor(){this.enable=!1,this.speed=0,this.decay=0,this.sync=!1}load(e){e&&(e.enable!==void 0&&(this.enable=e.enable),e.speed!==void 0&&(this.speed=M(e.speed)),e.decay!==void 0&&(this.decay=M(e.decay)),e.sync!==void 0&&(this.sync=e.sync))}}});var _o,Hh=c(()=>{"use strict";_();Vh();_o=class extends ee{constructor(){super(),this.animation=new wo,this.direction="clockwise",this.path=!1,this.value=0}load(e){e&&(super.load(e),e.direction!==void 0&&(this.direction=e.direction),this.animation.load(e.animation),e.path!==void 0&&(this.path=e.path))}}});var Uh={};v(Uh,{RotateUpdater:()=>Us});var Wh,ux,hx,dx,Us,jh=c(()=>{"use strict";_();Hh();Wh=2,ux=Math.PI*Wh,hx=1,dx=360,Us=class{constructor(e){this.container=e}init(e){let t=e.options.rotate;if(!t)return;e.rotate={enable:t.animation.enable,value:le(g(t.value)),min:0,max:ux},e.pathRotation=t.path;let o=t.direction;switch(o==="random"&&(o=Math.floor(R()*Wh)>0?"counter-clockwise":"clockwise"),o){case"counter-clockwise":case"counterClockwise":e.rotate.status="decreasing";break;case"clockwise":e.rotate.status="increasing";break}let n=t.animation;n.enable&&(e.rotate.decay=hx-g(n.decay),e.rotate.velocity=g(n.speed)/dx*this.container.retina.reduceFactor,n.sync||(e.rotate.velocity*=R())),e.rotation=e.rotate.value}isEnabled(e){let t=e.options.rotate;return t?!e.destroyed&&!e.spawning&&t.animation.enable&&!t.path:!1}loadOptions(e,...t){e.rotate||(e.rotate=new _o);for(let o of t)e.rotate.load(o?.rotate)}update(e,t){this.isEnabled(e)&&e.rotate&&(Ue(e,e.rotate,!1,"none",t),e.rotation=e.rotate.value)}}});var Gh={};v(Gh,{loadRotateUpdater:()=>px});async function px(i,e=!0){await i.addParticleUpdater("rotate",async t=>{let{RotateUpdater:o}=await Promise.resolve().then(()=>(jh(),Uh));return new o(t)},e)}var $h=c(()=>{"use strict"});var Nh={};v(Nh,{StrokeColorUpdater:()=>js});var mx,js,Yh=c(()=>{"use strict";_();mx=1,js=class{constructor(e){this.container=e}init(e){let t=this.container,o=e.options,n=Q(o.stroke,e.id,o.reduceDuplicates);e.strokeWidth=g(n.width)*t.retina.pixelRatio,e.strokeOpacity=g(n.opacity??mx),e.strokeAnimation=n.color?.animation;let s=ge(n.color)??e.getFillColor();s&&(e.strokeColor=Yt(s,e.strokeAnimation,t.retina.reduceFactor))}isEnabled(e){let t=e.strokeAnimation,{strokeColor:o}=e;return!e.destroyed&&!e.spawning&&!!t&&(o?.h.value!==void 0&&o.h.enable||o?.s.value!==void 0&&o.s.enable||o?.l.value!==void 0&&o.l.enable)}update(e,t){this.isEnabled(e)&&Xt(e.strokeColor,t)}}});var Xh={};v(Xh,{loadStrokeColorUpdater:()=>xx});async function xx(i,e=!0){await i.addParticleUpdater("strokeColor",async t=>{let{StrokeColorUpdater:o}=await Promise.resolve().then(()=>(Yh(),Nh));return new o(t)},e)}var Qh=c(()=>{"use strict"});function Jh(i){let e=i.initialPosition,{dx:t,dy:o}=F(e,i.position),n=Math.abs(t),s=Math.abs(o),{maxDistance:r}=i.retina,a=r.horizontal,l=r.vertical;if(!a&&!l)return;let f=(a&&n>=a)??!1,u=(l&&s>=l)??!1;if((f||u)&&!i.misplaced)i.misplaced=!!a&&n>a||!!l&&s>l,a&&(i.velocity.x=i.velocity.y*Gs-i.velocity.x),l&&(i.velocity.y=i.velocity.x*Gs-i.velocity.y);else if((!a||n<a)&&(!l||s<l)&&i.misplaced)i.misplaced=!1;else if(i.misplaced){let h=i.position,d=i.velocity;a&&(h.x<e.x&&d.x<Le||h.x>e.x&&d.x>Le)&&(d.x*=-R()),l&&(h.y<e.y&&d.y<Le||h.y>e.y&&d.y>Le)&&(d.y*=-R())}}function ed(i,e,t,o,n,s){yx(i,s);let r=i.gravity,a=r?.enable&&r.inverse?-de:de;n&&t&&(i.velocity.x+=n*s.factor/(Zh*t)),r?.enable&&t&&(i.velocity.y+=a*(r.acceleration*s.factor)/(Zh*t));let l=i.moveDecay;i.velocity.multTo(l);let f=i.velocity.mult(t);r?.enable&&o>Le&&(!r.inverse&&f.y>=Le&&f.y>=o||r.inverse&&f.y<=Le&&f.y<=-o)&&(f.y=a*o,t&&(i.velocity.y=f.y/t));let u=i.options.zIndex,h=(de-i.zIndexFactor)**u.velocityRate;f.multTo(h);let{position:d}=i;d.addTo(f),e.vibrate&&(d.x+=Math.sin(d.x*Math.cos(d.y)),d.y+=Math.cos(d.y*Math.sin(d.x)))}function td(i,e){let t=i.container;if(!i.spin)return;let o={x:i.spin.direction==="clockwise"?Math.cos:Math.sin,y:i.spin.direction==="clockwise"?Math.sin:Math.cos};i.position.x=i.spin.center.x+i.spin.radius*o.x(i.spin.angle),i.position.y=i.spin.center.y+i.spin.radius*o.y(i.spin.angle),i.spin.radius+=i.spin.acceleration;let n=Math.max(t.canvas.size.width,t.canvas.size.height),s=n*Gs;i.spin.radius>s?(i.spin.radius=s,i.spin.acceleration*=-de):i.spin.radius<Kh&&(i.spin.radius=Kh,i.spin.acceleration*=-de),i.spin.angle+=e*gx*(de-i.spin.radius/n)}function yx(i,e){let t=i.options,o=t.move.path;if(!o.enable)return;if(i.lastPathTime<=i.pathDelay){i.lastPathTime+=e.value;return}let s=i.pathGenerator?.generate(i,e);s&&i.velocity.addTo(s),o.clamp&&(i.velocity.x=W(i.velocity.x,-de,de),i.velocity.y=W(i.velocity.y,-de,de)),i.lastPathTime-=i.pathDelay}function id(i){return i.slow.inRange?i.slow.factor:de}function od(i){let e=i.container,t=i.options,o=t.move.spin;if(!o.enable)return;let n=o.position??{x:50,y:50},s=.01,r={x:n.x*s*e.canvas.size.width,y:n.y*s*e.canvas.size.height},a=i.getPosition(),l=A(a,r),f=g(o.acceleration);i.retina.spinAcceleration=f*e.retina.pixelRatio;let u=0;i.spin={center:r,direction:i.velocity.x>=u?"clockwise":"counter-clockwise",angle:i.velocity.angle,radius:l,acceleration:i.retina.spinAcceleration}}var Gs,Le,de,Zh,Kh,gx,nd=c(()=>{"use strict";_();Gs=.5,Le=0,de=1,Zh=60,Kh=0,gx=.01});var sd={};v(sd,{BaseMover:()=>$s});var vx,bx,wx,$s,rd=c(()=>{"use strict";_();nd();vx=2,bx=1,wx=1,$s=class{init(e){let t=e.options,o=t.move.gravity;e.gravity={enable:o.enable,acceleration:g(o.acceleration),inverse:o.inverse},od(e)}isEnabled(e){return!e.destroyed&&e.options.move.enable}move(e,t){let o=e.options,n=o.move;if(!n.enable)return;let s=e.container,r=s.retina.pixelRatio;e.retina.moveSpeed??=g(n.speed)*r,e.retina.moveDrift??=g(e.options.move.drift)*r;let a=id(e),l=e.retina.moveSpeed*s.retina.reduceFactor,f=e.retina.moveDrift,u=X(o.size.value)*r,h=n.size?e.getRadius()/u:bx,d=t.factor||wx,p=l*h*a*d/vx,x=e.retina.maxSpeed??s.retina.maxSpeed;n.spin.enable?td(e,p):ed(e,n,p,x,f,t),Jh(e)}}});var ad={};v(ad,{loadBaseMover:()=>_x});async function _x(i,e=!0){await i.addMover("base",async()=>{let{BaseMover:t}=await Promise.resolve().then(()=>(rd(),sd));return new t},e)}var cd=c(()=>{"use strict"});function fd(i){let{context:e,particle:t,radius:o}=i;t.circleRange||(t.circleRange={min:Mx,max:kx});let n=t.circleRange;e.arc(ld.x,ld.y,o,n.min,n.max,!1)}var kx,Mx,ld,ud=c(()=>{"use strict";kx=Math.PI*2,Mx=0,ld={x:0,y:0}});var dd={};v(dd,{CircleDrawer:()=>Ns});var Cx,Rx,hd,Ns,pd=c(()=>{"use strict";_();ud();Cx=12,Rx=360,hd=0,Ns=class{draw(e){fd(e)}getSidesCount(){return Cx}particleInit(e,t){let o=t.shapeData,n=o?.angle??{max:Rx,min:hd};t.circleRange=xe(n)?{min:le(n.min),max:le(n.max)}:{min:hd,max:le(n)}}}});var md={};v(md,{loadCircleShape:()=>Ox});async function Ox(i,e=!0){let{CircleDrawer:t}=await Promise.resolve().then(()=>(pd(),dd));await i.addShape("circle",new t,e)}var xd=c(()=>{"use strict"});var gd={};v(gd,{ColorUpdater:()=>Ys});var Ys,yd=c(()=>{"use strict";_();Ys=class{constructor(e){this.container=e}init(e){let t=ge(e.options.color,e.id,e.options.reduceDuplicates);t&&(e.color=Yt(t,e.options.color.animation,this.container.retina.reduceFactor))}isEnabled(e){let{h:t,s:o,l:n}=e.options.color.animation,{color:s}=e;return!e.destroyed&&!e.spawning&&(s?.h.value!==void 0&&t.enable||s?.s.value!==void 0&&o.enable||s?.l.value!==void 0&&n.enable)}update(e,t){Xt(e.color,t)}}});var vd={};v(vd,{loadColorUpdater:()=>Px});async function Px(i,e=!0){await i.addParticleUpdater("color",async t=>{let{ColorUpdater:o}=await Promise.resolve().then(()=>(yd(),gd));return new o(t)},e)}var bd=c(()=>{"use strict"});var wd={};v(wd,{OpacityUpdater:()=>Xs});var Xs,_d=c(()=>{"use strict";_();Xs=class{constructor(e){this.container=e}init(e){let t=e.options.opacity,o=1;e.opacity=Ht(t,o);let n=t.animation;n.enable&&(e.opacity.velocity=g(n.speed)/100*this.container.retina.reduceFactor,n.sync||(e.opacity.velocity*=R()))}isEnabled(e){return!e.destroyed&&!e.spawning&&!!e.opacity&&e.opacity.enable&&((e.opacity.maxLoops??0)<=0||(e.opacity.maxLoops??0)>0&&(e.opacity.loops??0)<(e.opacity.maxLoops??0))}reset(e){e.opacity&&(e.opacity.time=0,e.opacity.loops=0)}update(e,t){!this.isEnabled(e)||!e.opacity||Ue(e,e.opacity,!0,e.options.opacity.animation.destroy,t)}}});var kd={};v(kd,{loadOpacityUpdater:()=>zx});async function zx(i,e=!0){await i.addParticleUpdater("opacity",async t=>{let{OpacityUpdater:o}=await Promise.resolve().then(()=>(_d(),wd));return new o(t)},e)}var Md=c(()=>{"use strict"});function Cd(i){if(i.outMode!=="bounce"&&i.outMode!=="split"||i.direction!=="left"&&i.direction!=="right")return;i.bounds.right<et&&i.direction==="left"?i.particle.position.x=i.size+i.offset.x:i.bounds.left>i.canvasSize.width&&i.direction==="right"&&(i.particle.position.x=i.canvasSize.width-i.size-i.offset.x);let e=i.particle.velocity.x,t=!1;if(i.direction==="right"&&i.bounds.right>=i.canvasSize.width&&e>ko||i.direction==="left"&&i.bounds.left<=et&&e<ko){let n=g(i.particle.options.bounce.horizontal.value);i.particle.velocity.x*=-n,t=!0}if(!t)return;let o=i.offset.x+i.size;i.bounds.right>=i.canvasSize.width&&i.direction==="right"?i.particle.position.x=i.canvasSize.width-o:i.bounds.left<=et&&i.direction==="left"&&(i.particle.position.x=o),i.outMode==="split"&&i.particle.destroy()}function Rd(i){if(i.outMode!=="bounce"&&i.outMode!=="split"||i.direction!=="bottom"&&i.direction!=="top")return;i.bounds.bottom<et&&i.direction==="top"?i.particle.position.y=i.size+i.offset.y:i.bounds.top>i.canvasSize.height&&i.direction==="bottom"&&(i.particle.position.y=i.canvasSize.height-i.size-i.offset.y);let e=i.particle.velocity.y,t=!1;if(i.direction==="bottom"&&i.bounds.bottom>=i.canvasSize.height&&e>ko||i.direction==="top"&&i.bounds.top<=et&&e<ko){let n=g(i.particle.options.bounce.vertical.value);i.particle.velocity.y*=-n,t=!0}if(!t)return;let o=i.offset.y+i.size;i.bounds.bottom>=i.canvasSize.height&&i.direction==="bottom"?i.particle.position.y=i.canvasSize.height-o:i.bounds.top<=et&&i.direction==="top"&&(i.particle.position.y=o),i.outMode==="split"&&i.particle.destroy()}var ko,et,Od=c(()=>{"use strict";_();ko=0,et=0});var Mo,Pd=c(()=>{"use strict";_();Od();Mo=class{constructor(e){this.container=e,this.modes=["bounce","split"]}update(e,t,o,n){if(!this.modes.includes(n))return;let s=this.container,r=!1;for(let[,d]of s.plugins)if(d.particleBounce!==void 0&&(r=d.particleBounce(e,o,t)),r)break;if(r)return;let a=e.getPosition(),l=e.offset,f=e.getRadius(),u=ye(a,f),h=s.canvas.size;Cd({particle:e,outMode:n,direction:t,bounds:u,canvasSize:h,offset:l,size:f}),Rd({particle:e,outMode:n,direction:t,bounds:u,canvasSize:h,offset:l,size:f})}}});var Co,Ro,zd=c(()=>{"use strict";_();Co=0,Ro=class{constructor(e){this.container=e,this.modes=["destroy"]}update(e,t,o,n){if(!this.modes.includes(n))return;let s=this.container;switch(e.outType){case"normal":case"outside":if(Ve(e.position,s.canvas.size,I.origin,e.getRadius(),t))return;break;case"inside":{let{dx:r,dy:a}=F(e.position,e.moveCenter),{x:l,y:f}=e.velocity;if(l<Co&&r>e.moveCenter.radius||f<Co&&a>e.moveCenter.radius||l>=Co&&r<-e.moveCenter.radius||f>=Co&&a<-e.moveCenter.radius)return;break}}s.particles.remove(e,void 0,!0)}}});var Oo,Po,Dd=c(()=>{"use strict";_();Oo=0,Po=class{constructor(e){this.container=e,this.modes=["none"]}update(e,t,o,n){if(!this.modes.includes(n)||((e.options.move.distance.horizontal&&(t==="left"||t==="right"))??(e.options.move.distance.vertical&&(t==="top"||t==="bottom"))))return;let s=e.options.move.gravity,r=this.container,a=r.canvas.size,l=e.getRadius();if(s.enable){let f=e.position;(!s.inverse&&f.y>a.height+l&&t==="bottom"||s.inverse&&f.y<-l&&t==="top")&&r.particles.remove(e)}else{if(e.velocity.y>Oo&&e.position.y<=a.height+l||e.velocity.y<Oo&&e.position.y>=-l||e.velocity.x>Oo&&e.position.x<=a.width+l||e.velocity.x<Oo&&e.position.x>=-l)return;Ve(e.position,r.canvas.size,I.origin,l,t)||r.particles.remove(e)}}}});var zo,Do,So,Sd=c(()=>{"use strict";_();zo=0,Do=0,So=class{constructor(e){this.container=e,this.modes=["out"]}update(e,t,o,n){if(!this.modes.includes(n))return;let s=this.container;switch(e.outType){case"inside":{let{x:r,y:a}=e.velocity,l=I.origin;l.length=e.moveCenter.radius,l.angle=e.velocity.angle+Math.PI,l.addTo(I.create(e.moveCenter));let{dx:f,dy:u}=F(e.position,l);if(r<=zo&&f>=Do||a<=zo&&u>=Do||r>=zo&&f<=Do||a>=zo&&u<=Do)return;e.position.x=Math.floor($({min:0,max:s.canvas.size.width})),e.position.y=Math.floor($({min:0,max:s.canvas.size.height}));let{dx:h,dy:d}=F(e.position,e.moveCenter);e.direction=Math.atan2(-d,-h),e.velocity.angle=e.direction;break}default:{if(Ve(e.position,s.canvas.size,I.origin,e.getRadius(),t))return;switch(e.outType){case"outside":{e.position.x=Math.floor($({min:-e.moveCenter.radius,max:e.moveCenter.radius}))+e.moveCenter.x,e.position.y=Math.floor($({min:-e.moveCenter.radius,max:e.moveCenter.radius}))+e.moveCenter.y;let{dx:r,dy:a}=F(e.position,e.moveCenter);e.moveCenter.radius&&(e.direction=Math.atan2(a,r),e.velocity.angle=e.direction);break}case"normal":{let r=e.options.move.warp,a=s.canvas.size,l={bottom:a.height+e.getRadius()+e.offset.y,left:-e.getRadius()-e.offset.x,right:a.width+e.getRadius()+e.offset.x,top:-e.getRadius()-e.offset.y},f=e.getRadius(),u=ye(e.position,f);t==="right"&&u.left>a.width+e.offset.x?(e.position.x=l.left,e.initialPosition.x=e.position.x,r||(e.position.y=R()*a.height,e.initialPosition.y=e.position.y)):t==="left"&&u.right<-e.offset.x&&(e.position.x=l.right,e.initialPosition.x=e.position.x,r||(e.position.y=R()*a.height,e.initialPosition.y=e.position.y)),t==="bottom"&&u.top>a.height+e.offset.y?(r||(e.position.x=R()*a.width,e.initialPosition.x=e.position.x),e.position.y=l.top,e.initialPosition.y=e.position.y):t==="top"&&u.bottom<-e.offset.y&&(r||(e.position.x=R()*a.width,e.initialPosition.x=e.position.x),e.position.y=l.bottom,e.initialPosition.y=e.position.y);break}}break}}}}});var Id={};v(Id,{OutOfCanvasUpdater:()=>Qs});var Io,Qs,Ed=c(()=>{"use strict";Pd();zd();Dd();Sd();Io=(i,e)=>i.default===e||i.bottom===e||i.left===e||i.right===e||i.top===e,Qs=class{constructor(e){this._updateOutMode=(t,o,n,s)=>{for(let r of this.updaters)r.update(t,s,o,n)},this.container=e,this.updaters=[]}init(e){this.updaters=[];let t=e.options.move.outModes;Io(t,"bounce")?this.updaters.push(new Mo(this.container)):Io(t,"out")?this.updaters.push(new So(this.container)):Io(t,"destroy")?this.updaters.push(new Ro(this.container)):Io(t,"none")&&this.updaters.push(new Po(this.container))}isEnabled(e){return!e.destroyed&&!e.spawning}update(e,t){let o=e.options.move.outModes;this._updateOutMode(e,t,o.bottom??o.default,"bottom"),this._updateOutMode(e,t,o.left??o.default,"left"),this._updateOutMode(e,t,o.right??o.default,"right"),this._updateOutMode(e,t,o.top??o.default,"top")}}});var Td={};v(Td,{loadOutModesUpdater:()=>Dx});async function Dx(i,e=!0){await i.addParticleUpdater("outModes",async t=>{let{OutOfCanvasUpdater:o}=await Promise.resolve().then(()=>(Ed(),Id));return new o(t)},e)}var Ld=c(()=>{"use strict"});var Fd={};v(Fd,{SizeUpdater:()=>Zs});var Fe,Zs,Ad=c(()=>{"use strict";_();Fe=0,Zs=class{init(e){let t=e.container,o=e.options.size,n=o.animation;n.enable&&(e.size.velocity=(e.retina.sizeAnimationSpeed??t.retina.sizeAnimationSpeed)/100*t.retina.reduceFactor,n.sync||(e.size.velocity*=R()))}isEnabled(e){return!e.destroyed&&!e.spawning&&e.size.enable&&((e.size.maxLoops??Fe)<=Fe||(e.size.maxLoops??Fe)>Fe&&(e.size.loops??Fe)<(e.size.maxLoops??Fe))}reset(e){e.size.loops=Fe}update(e,t){this.isEnabled(e)&&Ue(e,e.size,!0,e.options.size.animation.destroy,t)}}});var Bd={};v(Bd,{loadSizeUpdater:()=>Sx});async function Sx(i,e=!0){await i.addParticleUpdater("size",async()=>{let{SizeUpdater:t}=await Promise.resolve().then(()=>(Ad(),Fd));return new t},e)}var qd=c(()=>{"use strict"});var Vd={};v(Vd,{loadBasic:()=>Ix});async function Ix(i,e=!0){let{loadBaseMover:t}=await Promise.resolve().then(()=>(cd(),ad)),{loadCircleShape:o}=await Promise.resolve().then(()=>(xd(),md)),{loadColorUpdater:n}=await Promise.resolve().then(()=>(bd(),vd)),{loadOpacityUpdater:s}=await Promise.resolve().then(()=>(Md(),kd)),{loadOutModesUpdater:r}=await Promise.resolve().then(()=>(Ld(),Td)),{loadSizeUpdater:a}=await Promise.resolve().then(()=>(qd(),Bd));await t(i,!1),await o(i,!1),await n(i,!1),await s(i,!1),await r(i,!1),await a(i,!1),await i.refresh(e)}var Hd=c(()=>{"use strict"});_();async function Wd(i,e=!0){let{loadParallaxMover:t}=await Promise.resolve().then(()=>(gl(),xl)),{loadExternalAttractInteraction:o}=await Promise.resolve().then(()=>(Ol(),Rl)),{loadExternalBounceInteraction:n}=await Promise.resolve().then(()=>(Bl(),Al)),{loadExternalBubbleInteraction:s}=await Promise.resolve().then(()=>(Yl(),Nl)),{loadExternalConnectInteraction:r}=await Promise.resolve().then(()=>(rf(),sf)),{loadExternalGrabInteraction:a}=await Promise.resolve().then(()=>(pf(),df)),{loadExternalPauseInteraction:l}=await Promise.resolve().then(()=>(yf(),gf)),{loadExternalPushInteraction:f}=await Promise.resolve().then(()=>(kf(),_f)),{loadExternalRemoveInteraction:u}=await Promise.resolve().then(()=>(Pf(),Of)),{loadExternalRepulseInteraction:h}=await Promise.resolve().then(()=>(Lf(),Tf)),{loadExternalSlowInteraction:d}=await Promise.resolve().then(()=>(Vf(),qf)),{loadParticlesAttractInteraction:p}=await Promise.resolve().then(()=>(Gf(),jf)),{loadParticlesCollisionsInteraction:x}=await Promise.resolve().then(()=>(ou(),iu)),{loadParticlesLinksInteraction:m}=await Promise.resolve().then(()=>(Cu(),Mu)),{loadEasingQuadPlugin:w}=await Promise.resolve().then(()=>(Ou(),Ru)),{loadEmojiShape:y}=await Promise.resolve().then(()=>(Tu(),Eu)),{loadImageShape:k}=await Promise.resolve().then(()=>(Qu(),Xu)),{loadLineShape:C}=await Promise.resolve().then(()=>(ih(),th)),{loadPolygonShape:b}=await Promise.resolve().then(()=>(ph(),dh)),{loadSquareShape:O}=await Promise.resolve().then(()=>(bh(),vh)),{loadStarShape:P}=await Promise.resolve().then(()=>(Rh(),Ch)),{loadLifeUpdater:Y}=await Promise.resolve().then(()=>(qh(),Bh)),{loadRotateUpdater:T}=await Promise.resolve().then(()=>($h(),Gh)),{loadStrokeColorUpdater:L}=await Promise.resolve().then(()=>(Qh(),Xh)),{loadBasic:Z}=await Promise.resolve().then(()=>(Hd(),Vd));await t(i,!1),await o(i,!1),await n(i,!1),await s(i,!1),await r(i,!1),await a(i,!1),await l(i,!1),await f(i,!1),await u(i,!1),await h(i,!1),await d(i,!1),await p(i,!1),await x(i,!1),await m(i,!1),await w(),await y(i,!1),await k(i,!1),await C(i,!1),await b(i,!1),await O(i,!1),await P(i,!1),await Y(i,!1),await T(i,!1),await L(i,!1),await Z(i,e)}var Ud=!1,jd=Symbol(),Ex=i=>(i.autoPlay||=!0,i.fullScreen||={enable:!0},i),Tx=(()=>{let i=0;return()=>`np-${i++}`})(),Lx=i=>{let e=async({clear:t,data:o,getDomNodes:n,flags:{goingBack:s,preview:r}})=>{if(r)return;Ud||(await Wd(no),Ud=!0);let{element:a}=n(!0);t(()=>{let h=o().instance;h&&(h.destroy(),o({}))});let l=o().options===i;if(l&&o().instance||l&&s)return;let f=Tx();(async()=>{let h=await no.load({id:f,element:a,options:Ex(i)});h&&h.canvas.element&&h.canvas.element.style.setProperty("z-index","2"),o({instance:h,options:i})})()};return e.callOnlyLatest=e.skipClearOnGoingBack=!0,e.id=jd,e.key="particles",e},Fx=()=>{let i=({data:e,remove:t,flags:{preview:o}})=>{if(o)return;let n=e().instance;n&&n.destroy(),t()};return i.callOnlyLatest=!0,i.id=jd,i.key="particles",i};export{Fx as hideParticles,Lx as showParticles};
|
|
1
|
+
var Me="generated",Gn="pointerdown",Qn="pointerup",yt="pointerleave",Yn="pointerout",ae="pointermove",Xn="touchstart",yn="touchend",Zn="touchmove",Kn="touchcancel",Jn="resize",es="visibilitychange",W="tsParticles - Error";var $;(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"})($||($={}));function St(t){return typeof t=="boolean"}function ce(t){return typeof t=="string"}function pe(t){return typeof t=="number"}function Pe(t){return typeof t=="object"&&t!==null}function X(t){return Array.isArray(t)}function d(t){return t==null}var ye={x:0,y:0,z:0},ts=2,Oa=1,Xe=class t{constructor(e,i,o){if(this._updateFromAngle=(n,s)=>{this.x=Math.cos(n)*s,this.y=Math.sin(n)*s},!pe(e)&&e){this.x=e.x,this.y=e.y;let n=e;this.z=n.z?n.z:ye.z}else if(e!==void 0&&i!==void 0)this.x=e,this.y=i,this.z=o??ye.z;else throw new Error(`${W} Vector3d not initialized correctly`)}static get origin(){return t.create(ye.x,ye.y,ye.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 t.create(e.x,e.y,e.z)}static create(e,i,o){return new t(e,i,o)}add(e){return t.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 t.clone(this)}distanceTo(e){return this.sub(e).length}distanceToSq(e){return this.sub(e).getLengthSq()}div(e){return t.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**ts+this.y**ts}mult(e){return t.create(this.x*e,this.y*e,this.z*e)}multTo(e){this.x*=e,this.y*=e,this.z*=e}normalize(){let e=this.length;e!=0&&this.multTo(Oa/e)}rotate(e){return t.create(this.x*Math.cos(e)-this.y*Math.sin(e),this.x*Math.sin(e)+this.y*Math.cos(e),ye.z)}setTo(e){this.x=e.x,this.y=e.y;let i=e;this.z=i.z?i.z:ye.z}sub(e){return t.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}},T=class t extends Xe{constructor(e,i){super(e,i,ye.z)}static get origin(){return t.create(ye.x,ye.y)}static clone(e){return t.create(e.x,e.y)}static create(e,i){return new t(e,i)}};var Ra=Math.random,is={nextFrame:t=>requestAnimationFrame(t),cancel:t=>cancelAnimationFrame(t)},vn=new Map,za=2,Sa=Math.PI*za;function Dt(t,e){vn.get(t)||vn.set(t,e)}function It(t){return vn.get(t)??(e=>e)}function P(){return H(Ra(),0,1-Number.EPSILON)}function os(t){return is.nextFrame(t)}function ns(t){is.cancel(t)}function H(t,e,i){return Math.min(Math.max(t,e),i)}function Tt(t,e,i,o){return Math.floor((t*i+e*o)/(i+o))}function G(t){let e=Z(t),i=0,o=Ze(t);return e===o&&(o=i),P()*(e-o)+o}function g(t){return pe(t)?t:G(t)}function Ze(t){return pe(t)?t:t.min}function Z(t){return pe(t)?t:t.max}function _(t,e){if(t===e||e===void 0&&pe(t))return t;let i=Ze(t),o=Z(t);return e!==void 0?{min:Math.min(i,e),max:Math.max(o,e)}:_(i,o)}function L(t,e){let i=t.x-e.x,o=t.y-e.y,n=2;return{dx:i,dy:o,distance:Math.sqrt(i**n+o**n)}}function F(t,e){return L(t,e).distance}function fe(t){return t*Math.PI/180}function ss(t,e,i){if(pe(t))return fe(t);let o=0,n=.5,s=.25,r=n+s;switch(t){case $.top:return-Math.PI*n;case $.topRight:return-Math.PI*s;case $.right:return o;case $.bottomRight:return Math.PI*s;case $.bottom:return Math.PI*n;case $.bottomLeft:return Math.PI*r;case $.left:return Math.PI;case $.topLeft:return-Math.PI*r;case $.inside:return Math.atan2(i.y-e.y,i.x-e.x);case $.outside:return Math.atan2(e.y-i.y,e.x-i.x);default:return P()*Sa}}function rs(t){let e=T.origin;return e.length=1,e.angle=t,e}function bn(t,e,i,o){return T.create(t.x*(i-o)/(i+o)+e.x*2*o/(i+o),t.y)}function as(t){return{x:t.position?.x??P()*t.size.width,y:t.position?.y??P()*t.size.height}}function Et(t){return t?t.endsWith("%")?parseFloat(t)/100:parseFloat(t):1}var Oe;(function(t){t.auto="auto",t.increase="increase",t.decrease="decrease",t.random="random"})(Oe||(Oe={}));var A;(function(t){t.increasing="increasing",t.decreasing="decreasing"})(A||(A={}));var me;(function(t){t.none="none",t.max="max",t.min="min"})(me||(me={}));var k;(function(t){t.bottom="bottom",t.left="left",t.right="right",t.top="top"})(k||(k={}));var ve;(function(t){t.precise="precise",t.percent="percent"})(ve||(ve={}));var De;(function(t){t.max="max",t.min="min",t.random="random"})(De||(De={}));var Da={debug:console.debug,error:console.error,info:console.info,log:console.log,verbose:console.log,warning:console.warn};function ue(){return Da}function ls(t){let e={bounced:!1},{pSide:i,pOtherSide:o,rectSide:n,rectOtherSide:s,velocity:r,factor:a}=t,c=.5,l=0;return o.min<s.min||o.min>s.max||o.max<s.min||o.max>s.max||(i.max>=n.min&&i.max<=(n.max+n.min)*c&&r>l||i.min<=n.max&&i.min>(n.max+n.min)*c&&r<l)&&(e.velocity=r*-a,e.bounced=!0),e}function Ia(t,e){let i=U(e,o=>t.matches(o));return X(i)?i.some(o=>o):i}function be(){return typeof window>"u"||!window||typeof window.document>"u"||!window.document}function Ta(){return!be()&&typeof matchMedia<"u"}function Lt(t){if(Ta())return matchMedia(t)}function fs(t){if(!(be()||typeof IntersectionObserver>"u"))return new IntersectionObserver(t)}function us(t){if(!(be()||typeof MutationObserver>"u"))return new MutationObserver(t)}function R(t,e){return t===e||X(e)&&e.indexOf(t)>-1}async function wn(t,e){try{await document.fonts.load(`${e??"400"} 36px '${t??"Verdana"}'`)}catch{}}function Ea(t){return Math.floor(P()*t.length)}function Ke(t,e,i=!0){return t[e!==void 0&&i?e%t.length:Ea(t)]}function Je(t,e,i,o,n){return La(Ie(t,o??0),e,i,n)}function La(t,e,i,o){let n=!0;return(!o||o===k.bottom)&&(n=t.top<e.height+i.x),n&&(!o||o===k.left)&&(n=t.right>i.x),n&&(!o||o===k.right)&&(n=t.left<e.width+i.y),n&&(!o||o===k.top)&&(n=t.bottom>i.y),n}function Ie(t,e){return{bottom:t.y+e,left:t.x-e,right:t.x+e,top:t.y-e}}function D(t,...e){for(let i of e){if(i==null)continue;if(!Pe(i)){t=i;continue}let o=Array.isArray(i);o&&(Pe(t)||!t||!Array.isArray(t))?t=[]:!o&&(Pe(t)||!t||Array.isArray(t))&&(t={});for(let n in i){if(n==="__proto__")continue;let s=i,r=s[n],a=t;a[n]=Pe(r)&&Array.isArray(r)?r.map(c=>D(a[n],c)):D(a[n],r)}}return t}function et(t,e){return!!ds(e,i=>i.enable&&R(t,i.mode))}function tt(t,e,i){U(e,o=>{let n=o.mode;o.enable&&R(t,n)&&Fa(o,i)})}function Fa(t,e){let i=t.selectors;U(i,o=>{e(o,t)})}function Ft(t,e){if(!(!e||!t))return ds(t,i=>Ia(e,i.selectors))}function vt(t){return{position:t.getPosition(),radius:t.getRadius(),mass:t.getMass(),velocity:t.velocity,factor:T.create(g(t.options.bounce.horizontal.value),g(t.options.bounce.vertical.value))}}function At(t,e){let{x:i,y:o}=t.velocity.sub(e.velocity),[n,s]=[t.position,e.position],{dx:r,dy:a}=L(s,n);if(i*r+o*a<0)return;let l=-Math.atan2(a,r),f=t.mass,u=e.mass,h=t.velocity.rotate(l),p=e.velocity.rotate(l),x=bn(h,p,f,u),m=bn(p,h,f,u),v=x.rotate(-l),y=m.rotate(-l);t.velocity.x=v.x*t.factor.x,t.velocity.y=v.y*t.factor.y,e.velocity.x=y.x*e.factor.x,e.velocity.y=y.y*e.factor.y}function hs(t,e){let i=t.getPosition(),o=t.getRadius(),n=Ie(i,o),s=t.options.bounce,r=ls({pSide:{min:n.left,max:n.right},pOtherSide:{min:n.top,max:n.bottom},rectSide:{min:e.left,max:e.right},rectOtherSide:{min:e.top,max:e.bottom},velocity:t.velocity.x,factor:g(s.horizontal.value)});r.bounced&&(r.velocity!==void 0&&(t.velocity.x=r.velocity),r.position!==void 0&&(t.position.x=r.position));let a=ls({pSide:{min:n.top,max:n.bottom},pOtherSide:{min:n.left,max:n.right},rectSide:{min:e.top,max:e.bottom},rectOtherSide:{min:e.left,max:e.right},velocity:t.velocity.y,factor:g(s.vertical.value)});a.bounced&&(a.velocity!==void 0&&(t.velocity.y=a.velocity),a.position!==void 0&&(t.position.y=a.position))}function U(t,e){return X(t)?t.map((o,n)=>e(o,n)):e(t,0)}function Y(t,e,i){return X(t)?Ke(t,e,i):t}function ds(t,e){return X(t)?t.find((o,n)=>e(o,n)):e(t,0)?t:void 0}function Bt(t,e){let i=t.value,o=t.animation,n={delayTime:g(o.delay)*1e3,enable:o.enable,value:g(t.value)*e,max:Z(i)*e,min:Ze(i)*e,loops:0,maxLoops:g(o.count),time:0},s=1;if(o.enable){switch(n.decay=s-g(o.decay),o.mode){case Oe.increase:n.status=A.increasing;break;case Oe.decrease:n.status=A.decreasing;break;case Oe.random:n.status=P()>=.5?A.increasing:A.decreasing;break}let r=o.mode===Oe.auto;switch(o.startValue){case De.min:n.value=n.min,r&&(n.status=A.increasing);break;case De.max:n.value=n.max,r&&(n.status=A.decreasing);break;case De.random:default:n.value=G(n),r&&(n.status=P()>=.5?A.increasing:A.decreasing);break}}return n.initialValue=n.value,n}function Aa(t,e){if(!(t.mode===ve.percent)){let{mode:n,...s}=t;return s}return"x"in t?{x:t.x/100*e.width,y:t.y/100*e.height}:{width:t.width/100*e.width,height:t.height/100*e.height}}function qt(t,e){return Aa(t,e)}function Ba(t,e,i,o,n){switch(e){case me.max:i>=n&&t.destroy();break;case me.min:i<=o&&t.destroy();break}}function it(t,e,i,o,n){if(t.destroyed||!e||!e.enable||(e.maxLoops??0)>0&&(e.loops??0)>(e.maxLoops??0))return;let f=(e.velocity??0)*n.factor,u=e.min,h=e.max,p=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 A.increasing:e.value>=h?(i?e.status=A.decreasing:e.value-=h,e.loops||(e.loops=0),e.loops++):e.value+=f;break;case A.decreasing:e.value<=u?(i?e.status=A.increasing:e.value+=h,e.loops||(e.loops=0),e.loops++):e.value-=f}e.velocity&&p!==1&&(e.velocity*=p),Ba(t,o,e.value,u,h),t.destroyed||(e.value=H(e.value,u,h))}}var Vt;(function(t){t.darken="darken",t.enlighten="enlighten"})(Vt||(Vt={}));var qe;(function(t){t[t.r=1]="r",t[t.g=2]="g",t[t.b=3]="b",t[t.a=4]="a"})(qe||(qe={}));var Ht="random",Nt="mid",Ut=new Map;function Cn(t){Ut.set(t.key,t)}function qa(t){for(let c of Ut.values())if(t.startsWith(c.stringPrefix))return c.parseString(t);let e=/^#?([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i,i=t.replace(e,(c,l,f,u,h)=>l+l+f+f+u+u+(h!==void 0?h+h:"")),o=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i,n=o.exec(i),s=16;return n?{a:n[qe.a]!==void 0?parseInt(n[qe.a],s)/255:1,b:parseInt(n[qe.b],s),g:parseInt(n[qe.g],s),r:parseInt(n[qe.r],s)}:void 0}function K(t,e,i=!0){if(!t)return;let o=ce(t)?{value:t}:t;if(ce(o.value))return ps(o.value,e,i);if(X(o.value))return K({value:Ke(o.value,e,i)});for(let n of Ut.values()){let s=n.handleRangeColor(o);if(s)return s}}function ps(t,e,i=!0){if(!t)return;let o=ce(t)?{value:t}:t;if(ce(o.value))return o.value===Ht?xs():Va(o.value);if(X(o.value))return ps({value:Ke(o.value,e,i)});for(let n of Ut.values()){let s=n.handleColor(o);if(s)return s}}function Re(t,e,i=!0){let o=K(t,e,i);return o?Mn(o):void 0}function Mn(t){let f=t.r/255,u=t.g/255,h=t.b/255,p=Math.max(f,u,h),x=Math.min(f,u,h),m={h:0,l:(p+x)*.5,s:0};return p!==x&&(m.s=m.l<.5?(p-x)/(p+x):(p-x)/(2-p-x),m.h=f===p?(u-h)/(p-x):m.h=u===p?2+(h-f)/(p-x):2*2+(f-u)/(p-x)),m.l*=100,m.s*=100,m.h*=60,m.h<0&&(m.h+=360),m.h>=360&&(m.h-=360),m}function Va(t){return qa(t)}function Ve(t){let r=(t.h%360+360)%360,a=Math.max(0,Math.min(100,t.s)),c=Math.max(0,Math.min(100,t.l)),l=r/360,f=a/100,u=c/100,h=255,p=3;if(a===0){let q=Math.round(u*h);return{r:q,g:q,b:q}}let x=.5,m=2,v=(q,se,re)=>{if(re<0&&re++,re>1&&re--,re*6<1)return q+(se-q)*6*re;if(re*m<1)return se;if(re*p<1*m){let Pa=m/p;return q+(se-q)*(Pa-re)*6}return q},y=1,w=u<x?u*(y+f):u+f-u*f,C=m*u-w,b=1,O=b/p,M=Math.min(h,h*v(C,w,l+O)),te=Math.min(h,h*v(C,w,l)),z=Math.min(h,h*v(C,w,l-O));return{r:Math.round(M),g:Math.round(te),b:Math.round(z)}}function ms(t){let e=Ve(t);return{a:t.a,b:e.b,g:e.g,r:e.r}}function xs(t){let i=t??0,o=256;return{b:Math.floor(G(_(i,o))),g:Math.floor(G(_(i,o))),r:Math.floor(G(_(i,o)))}}function ie(t,e){return`rgba(${t.r}, ${t.g}, ${t.b}, ${e??1})`}function Te(t,e){return`hsla(${t.h}, ${t.s}%, ${t.l}%, ${e??1})`}function bt(t,e,i,o){let n=t,s=e;return n.r===void 0&&(n=Ve(t)),s.r===void 0&&(s=Ve(e)),{b:Tt(n.b,s.b,i,o),g:Tt(n.g,s.g,i,o),r:Tt(n.r,s.r,i,o)}}function wt(t,e,i){if(i===Ht)return xs();if(i===Nt){let o=t.getFillColor()??t.getStrokeColor(),n=e?.getFillColor()??e?.getStrokeColor();if(o&&n&&e)return bt(o,n,t.getRadius(),e.getRadius());{let s=o??n;if(s)return Ve(s)}}else return i}function Wt(t,e,i){let o=ce(t)?t:t.value;return o===Ht?i?K({value:o}):e?Ht:Nt:o===Nt?Nt:K({value:o})}function Pn(t){return t!==void 0?{h:t.h.value,s:t.s.value,l:t.l.value}:void 0}function $t(t,e,i){let o={h:{enable:!1,value:t.h},s:{enable:!1,value:t.s},l:{enable:!1,value:t.l}};return e&&(_n(o.h,e.h,i),_n(o.s,e.s,i),_n(o.l,e.l,i)),o}function _n(t,e,i){t.enable=e.enable;let o=0,n=1,s=0,r=0;t.enable?(t.velocity=g(e.speed)/100*i,t.decay=n-g(e.decay),t.status=A.increasing,t.loops=s,t.maxLoops=g(e.count),t.time=r,t.delayTime=g(e.delay)*1e3,e.sync||(t.velocity*=P(),t.value*=P()),t.initialValue=t.value,t.offset=_(e.offset)):t.velocity=o}function kn(t,e,i,o){if(!t||!t.enable||(t.maxLoops??0)>0&&(t.loops??0)>(t.maxLoops??0)||(t.time||(t.time=0),(t.delayTime??0)>0&&t.time<(t.delayTime??0)&&(t.time+=o.value),(t.delayTime??0)>0&&t.time<(t.delayTime??0)))return;let f=t.offset?G(t.offset):0,u=(t.velocity??0)*o.factor+f*3.6,h=t.decay??1,p=Z(e),x=Ze(e);!i||t.status===A.increasing?(t.value+=u,t.value>p&&(t.loops||(t.loops=0),t.loops++,i?t.status=A.decreasing:t.value-=p)):(t.value-=u,t.value<0&&(t.loops||(t.loops=0),t.loops++,t.status=A.increasing)),t.velocity&&h!==1&&(t.velocity*=h),t.value=H(t.value,x,p)}function jt(t,e){if(!t)return;let{h:i,s:o,l:n}=t,s={h:{min:0,max:360},s:{min:0,max:100},l:{min:0,max:100}};i&&kn(i,s.h,!1,e),o&&kn(o,s.s,!0,e),n&&kn(n,s.l,!0,e)}var ot={x:0,y:0},Gt={a:1,b:0,c:0,d:1};function Ee(t,e,i){t.beginPath(),t.moveTo(e.x,e.y),t.lineTo(i.x,i.y),t.closePath()}function gs(t,e,i){t.fillStyle=i??"rgba(0,0,0,0)",t.fillRect(ot.x,ot.y,e.width,e.height)}function ys(t,e,i,o){i&&(t.globalAlpha=o,t.drawImage(i,ot.x,ot.y,e.width,e.height),t.globalAlpha=1)}function Qt(t,e){t.clearRect(ot.x,ot.y,e.width,e.height)}function vs(t){let{container:e,context:i,particle:o,delta:n,colorStyles:s,backgroundMask:r,composite:a,radius:c,opacity:l,shadow:f,transform:u}=t,h=o.getPosition(),p=0,x=o.rotation+(o.pathRotation?o.velocity.angle:p),m={sin:Math.sin(x),cos:Math.cos(x)},v=!!x,y=1,w={a:m.cos*(u.a??Gt.a),b:v?m.sin*(u.b??y):u.b??Gt.b,c:v?-m.sin*(u.c??y):u.c??Gt.c,d:m.cos*(u.d??Gt.d)};i.setTransform(w.a,w.b,w.c,w.d,h.x,h.y),r&&(i.globalCompositeOperation=a);let C=o.shadowColor;f.enable&&C&&(i.shadowBlur=f.blur,i.shadowColor=ie(C),i.shadowOffsetX=f.offset.x,i.shadowOffsetY=f.offset.y),s.fill&&(i.fillStyle=s.fill);let b=0,O=o.strokeWidth??b;i.lineWidth=O,s.stroke&&(i.strokeStyle=s.stroke);let M={container:e,context:i,particle:o,radius:c,opacity:l,delta:n,transformData:w,strokeWidth:O};Ha(M),Ua(M),Na(M),i.globalCompositeOperation="source-over",i.resetTransform()}function Na(t){let{container:e,context:i,particle:o,radius:n,opacity:s,delta:r,transformData:a}=t;if(!o.effect)return;let c=e.effectDrawers.get(o.effect);c&&c.draw({context:i,particle:o,radius:n,opacity:s,delta:r,pixelRatio:e.retina.pixelRatio,transformData:{...a}})}function Ha(t){let{container:e,context:i,particle:o,radius:n,opacity:s,delta:r,strokeWidth:a,transformData:c}=t,l=0;if(!o.shape)return;let f=e.shapeDrawers.get(o.shape);f&&(i.beginPath(),f.draw({context:i,particle:o,radius:n,opacity:s,delta:r,pixelRatio:e.retina.pixelRatio,transformData:{...c}}),o.shapeClose&&i.closePath(),a>l&&i.stroke(),o.shapeFill&&i.fill())}function Ua(t){let{container:e,context:i,particle:o,radius:n,opacity:s,delta:r,transformData:a}=t;if(!o.shape)return;let c=e.shapeDrawers.get(o.shape);c?.afterDraw&&c.afterDraw({context:i,particle:o,radius:n,opacity:s,delta:r,pixelRatio:e.retina.pixelRatio,transformData:{...a}})}function bs(t,e,i){e.draw&&e.draw(t,i)}function ws(t,e,i,o){e.drawParticle&&e.drawParticle(t,i,o)}function _s(t,e,i){return{h:t.h,s:t.s,l:t.l+(e===Vt.darken?-1:1)*i}}function Wa(t,e,i){let o=e[i],n=1;o!==void 0&&(t[i]=(t[i]??n)*o)}function ks(t,e,i=!1){if(!e)return;let o=t;if(!o)return;let n=o.style;if(n)for(let s in e){let r=e[s];n.setProperty(s,r,i?"important":"")}}var Yt=class{constructor(e){this.container=e,this._applyPostDrawUpdaters=i=>{for(let o of this._postDrawUpdaters)o.afterDraw?.(i)},this._applyPreDrawUpdaters=(i,o,n,s,r,a)=>{for(let c of this._preDrawUpdaters){if(c.getColorStyles){let{fill:l,stroke:f}=c.getColorStyles(o,i,n,s);l&&(r.fill=l),f&&(r.stroke=f)}if(c.getTransformValues){let l=c.getTransformValues(o);for(let f in l)Wa(a,l,f)}c.beforeDraw?.(o)}},this._applyResizePlugins=()=>{for(let i of this._resizePlugins)i.resize?.()},this._getPluginParticleColors=i=>{let o,n;for(let s of this._colorPlugins)if(!o&&s.particleFillColor&&(o=Re(s.particleFillColor(i))),!n&&s.particleStrokeColor&&(n=Re(s.particleStrokeColor(i))),o&&n)break;return[o,n]},this._initCover=async()=>{let i=this.container.actualOptions,o=i.backgroundMask.cover,n=o.color;if(n){let s=K(n);if(s){let r={...s,a:o.opacity};this._coverColorStyle=ie(r,r.a)}}else await new Promise((s,r)=>{if(!o.image)return;let a=document.createElement("img");a.addEventListener("load",()=>{this._coverImage={image:a,opacity:o.opacity},s()}),a.addEventListener("error",c=>{r(c.error)}),a.src=o.image})},this._initStyle=()=>{let i=this.element,o=this.container.actualOptions;if(i){this._fullScreen?(this._originalStyle=D({},i.style),this._setFullScreenStyle()):this._resetOriginalStyle();for(let n in o.style){if(!n||!o.style)continue;let s=o.style[n];s&&i.style.setProperty(n,s,"important")}}},this._initTrail=async()=>{let i=this.container.actualOptions,o=i.particles.move.trail,n=o.fill;if(!o.enable)return;let s=1,r=s/o.length;if(n.color){let a=K(n.color);if(!a)return;this._trailFill={color:{...a},opacity:r}}else await new Promise((a,c)=>{if(!n.image)return;let l=document.createElement("img");l.addEventListener("load",()=>{this._trailFill={image:l,opacity:r},a()}),l.addEventListener("error",f=>{c(f.error)}),l.src=n.image})},this._paintBase=i=>{this.draw(o=>gs(o,this.size,i))},this._paintImage=(i,o)=>{this.draw(n=>ys(n,this.size,i,o))},this._repairStyle=()=>{let i=this.element;i&&(this._safeMutationObserver(o=>o.disconnect()),this._initStyle(),this.initBackground(),this._safeMutationObserver(o=>{!i||!(i instanceof Node)||o.observe(i,{attributes:!0})}))},this._resetOriginalStyle=()=>{let i=this.element,o=this._originalStyle;i&&o&&ks(i,o)},this._safeMutationObserver=i=>{this._mutationObserver&&i(this._mutationObserver)},this._setFullScreenStyle=()=>{let i=this.element;if(!i)return;let o=10,n=this.container.actualOptions.fullScreen.zIndex.toString(o);ks(i,{position:"fixed","z-index":n,zIndex:n,top:"0",left:"0",width:"100%",height:"100%"},!0)},this.size={height:0,width:0},this._context=null,this._generated=!1,this._preDrawUpdaters=[],this._postDrawUpdaters=[],this._resizePlugins=[],this._colorPlugins=[]}get _fullScreen(){return this.container.actualOptions.fullScreen.enable}clear(){let e=this.container.actualOptions,i=e.particles.move.trail,o=this._trailFill;e.backgroundMask.enable?this.paint():i.enable&&i.length>0&&o?o.color?this._paintBase(ie(o.color,o.opacity)):o.image&&this._paintImage(o.image,o.opacity):e.clear&&this.draw(s=>{Qt(s,this.size)})}destroy(){this.stop(),this._generated?this.element?.remove():this._resetOriginalStyle(),this._preDrawUpdaters=[],this._postDrawUpdaters=[],this._resizePlugins=[],this._colorPlugins=[]}draw(e){let i=this._context;if(i)return e(i)}drawAsync(e){let i=this._context;if(i)return e(i)}drawParticle(e,i){if(e.spawning||e.destroyed)return;let o=e.getRadius();if(o<=0)return;let s=e.getFillColor(),r=e.getStrokeColor()??s,[a,c]=this._getPluginParticleColors(e);a||(a=s),c||(c=r),!(!a&&!c)&&this.draw(l=>{let f=this.container,u=f.actualOptions,h=e.options.zIndex,p=1,x=p-e.zIndexFactor,m=x**h.opacityRate,v=1,y=e.bubble.opacity??e.opacity?.value??v,w=e.strokeOpacity??y,C=y*m,b=w*m,O={},M={fill:a?Te(a,C):void 0};M.stroke=c?Te(c,b):M.fill,this._applyPreDrawUpdaters(l,e,o,C,M,O),vs({container:f,context:l,particle:e,delta:i,colorStyles:M,backgroundMask:u.backgroundMask.enable,composite:u.backgroundMask.composite,radius:o*x**h.sizeRate,opacity:C,shadow:e.options.shadow,transform:O}),this._applyPostDrawUpdaters(e)})}drawParticlePlugin(e,i,o){this.draw(n=>ws(n,e,i,o))}drawPlugin(e,i){this.draw(o=>bs(o,e,i))}async init(){this._safeMutationObserver(e=>e.disconnect()),this._mutationObserver=us(e=>{for(let i of e)i.type==="attributes"&&i.attributeName==="style"&&this._repairStyle()}),this.resize(),this._initStyle(),await this._initCover();try{await this._initTrail()}catch(e){ue().error(e)}this.initBackground(),this._safeMutationObserver(e=>{!this.element||!(this.element instanceof Node)||e.observe(this.element,{attributes:!0})}),this.initUpdaters(),this.initPlugins(),this.paint()}initBackground(){let e=this.container.actualOptions,i=e.background,o=this.element;if(!o)return;let n=o.style;if(n){if(i.color){let s=K(i.color);n.backgroundColor=s?ie(s,i.opacity):""}else n.backgroundColor="";n.backgroundImage=i.image||"",n.backgroundPosition=i.position||"",n.backgroundRepeat=i.repeat||"",n.backgroundSize=i.size||""}}initPlugins(){this._resizePlugins=[];for(let e of this.container.plugins.values())e.resize&&this._resizePlugins.push(e),(e.particleFillColor??e.particleStrokeColor)&&this._colorPlugins.push(e)}initUpdaters(){this._preDrawUpdaters=[],this._postDrawUpdaters=[];for(let e of this.container.particles.updaters)e.afterDraw&&this._postDrawUpdaters.push(e),(e.getColorStyles??e.getTransformValues??e.beforeDraw)&&this._preDrawUpdaters.push(e)}loadCanvas(e){this._generated&&this.element&&this.element.remove(),this._generated=e.dataset&&Me in e.dataset?e.dataset[Me]==="true":this._generated,this.element=e,this.element.ariaHidden="true",this._originalStyle=D({},this.element.style),this.size.height=e.offsetHeight,this.size.width=e.offsetWidth,this._context=this.element.getContext("2d"),this._safeMutationObserver(i=>{!this.element||!(this.element instanceof Node)||i.observe(this.element,{attributes:!0})}),this.container.retina.init(),this.initBackground()}paint(){let e=this.container.actualOptions;this.draw(i=>{e.backgroundMask.enable&&e.backgroundMask.cover?(Qt(i,this.size),this._coverImage?this._paintImage(this._coverImage.image,this._coverImage.opacity):this._coverColorStyle?this._paintBase(this._coverColorStyle):this._paintBase()):this._paintBase()})}resize(){if(!this.element)return!1;let e=this.container,i=e.retina.pixelRatio,o=e.canvas.size,n={width:this.element.offsetWidth*i,height:this.element.offsetHeight*i};if(n.height===o.height&&n.width===o.width&&n.height===this.element.height&&n.width===this.element.width)return!1;let s={...o};return this.element.width=o.width=this.element.offsetWidth*i,this.element.height=o.height=this.element.offsetHeight*i,this.container.started&&e.particles.setResizeFactor({width:o.width/s.width,height:o.height/s.height}),!0}stop(){this._safeMutationObserver(e=>e.disconnect()),this._mutationObserver=void 0,this.draw(e=>Qt(e,this.size))}async windowResize(){if(!this.element||!this.resize())return;let e=this.container,i=e.updateActualOptions();e.particles.setDensity(),this._applyResizePlugins(),i&&await e.refresh()}};var Le;(function(t){t.canvas="canvas",t.parent="parent",t.window="window"})(Le||(Le={}));var Cs=2;function he(t,e,i,o,n){if(o){let s={passive:!0};St(n)?s.capture=n:n!==void 0&&(s=n),t.addEventListener(e,i,s)}else{let s=n;t.removeEventListener(e,i,s)}}var Xt=class{constructor(e){this.container=e,this._doMouseTouchClick=i=>{let o=this.container,n=o.actualOptions;if(this._canPush){let s=o.interactivity.mouse,r=s.position;if(!r)return;s.clickPosition={...r},s.clickTime=new Date().getTime();let a=n.interactivity.events.onClick;U(a.mode,c=>this.container.handleClickMode(c))}i.type==="touchend"&&setTimeout(()=>this._mouseTouchFinish(),500)},this._handleThemeChange=i=>{let o=i,n=this.container,s=n.options,r=s.defaultThemes,a=o.matches?r.dark:r.light;s.themes.find(l=>l.name===a)?.default.auto&&n.loadTheme(a)},this._handleVisibilityChange=()=>{let i=this.container,o=i.actualOptions;this._mouseTouchFinish(),o.pauseOnBlur&&(document?.hidden?(i.pageHidden=!0,i.pause()):(i.pageHidden=!1,i.animationStatus?i.play(!0):i.draw(!0)))},this._handleWindowResize=()=>{this._resizeTimeout&&(clearTimeout(this._resizeTimeout),delete this._resizeTimeout);let i=async()=>{await this.container.canvas?.windowResize()};this._resizeTimeout=setTimeout(()=>void i(),this.container.actualOptions.interactivity.events.resize.delay*1e3)},this._manageInteractivityListeners=(i,o)=>{let n=this._handlers,s=this.container,r=s.actualOptions,a=s.interactivity.element;if(!a)return;let c=a,l=s.canvas.element;l&&(l.style.pointerEvents=c===l?"initial":"none"),(r.interactivity.events.onHover.enable||r.interactivity.events.onClick.enable)&&(he(a,ae,n.mouseMove,o),he(a,Xn,n.touchStart,o),he(a,Zn,n.touchMove,o),r.interactivity.events.onClick.enable?(he(a,yn,n.touchEndClick,o),he(a,Qn,n.mouseUp,o),he(a,Gn,n.mouseDown,o)):he(a,yn,n.touchEnd,o),he(a,i,n.mouseLeave,o),he(a,Kn,n.touchCancel,o))},this._manageListeners=i=>{let o=this._handlers,n=this.container,s=n.actualOptions,r=s.interactivity.detectsOn,a=n.canvas.element,c=yt;r===Le.window?(n.interactivity.element=window,c=Yn):r===Le.parent&&a?n.interactivity.element=a.parentElement??a.parentNode:n.interactivity.element=a,this._manageMediaMatch(i),this._manageResize(i),this._manageInteractivityListeners(c,i),document&&he(document,es,o.visibilityChange,i,!1)},this._manageMediaMatch=i=>{let o=this._handlers,n=Lt("(prefers-color-scheme: dark)");if(n){if(n.addEventListener!==void 0){he(n,"change",o.themeChange,i);return}n.addListener!==void 0&&(i?n.addListener(o.oldThemeChange):n.removeListener(o.oldThemeChange))}},this._manageResize=i=>{let o=this._handlers,n=this.container;if(!n.actualOptions.interactivity.events.resize)return;if(typeof ResizeObserver>"u"){he(window,Jn,o.resize,i);return}let r=n.canvas.element;this._resizeObserver&&!i?(r&&this._resizeObserver.unobserve(r),this._resizeObserver.disconnect(),delete this._resizeObserver):!this._resizeObserver&&i&&r&&(this._resizeObserver=new ResizeObserver(a=>{a.find(l=>l.target===r)&&this._handleWindowResize()}),this._resizeObserver.observe(r))},this._mouseDown=()=>{let{interactivity:i}=this.container;if(!i)return;let{mouse:o}=i;o.clicking=!0,o.downPosition=o.position},this._mouseTouchClick=i=>{let o=this.container,n=o.actualOptions,{mouse:s}=o.interactivity;s.inside=!0;let r=!1,a=s.position;if(!(!a||!n.interactivity.events.onClick.enable)){for(let c of o.plugins.values())if(c.clickPositionValid&&(r=c.clickPositionValid(a),r))break;r||this._doMouseTouchClick(i),s.clicking=!1}},this._mouseTouchFinish=()=>{let i=this.container.interactivity;if(!i)return;let o=i.mouse;delete o.position,delete o.clickPosition,delete o.downPosition,i.status=yt,o.inside=!1,o.clicking=!1},this._mouseTouchMove=i=>{let o=this.container,n=o.actualOptions,s=o.interactivity,r=o.canvas.element;if(!s?.element)return;s.mouse.inside=!0;let a;if(i.type.startsWith("pointer")){this._canPush=!0;let l=i;if(s.element===window){if(r){let f=r.getBoundingClientRect();a={x:l.clientX-f.left,y:l.clientY-f.top}}}else if(n.interactivity.detectsOn===Le.parent){let f=l.target,u=l.currentTarget;if(f&&u&&r){let h=f.getBoundingClientRect(),p=u.getBoundingClientRect(),x=r.getBoundingClientRect();a={x:l.offsetX+Cs*h.left-(p.left+x.left),y:l.offsetY+Cs*h.top-(p.top+x.top)}}else a={x:l.offsetX??l.clientX,y:l.offsetY??l.clientY}}else l.target===r&&(a={x:l.offsetX??l.clientX,y:l.offsetY??l.clientY})}else if(this._canPush=i.type!=="touchmove",r){let l=i,f=1,u=l.touches[l.touches.length-f],h=r.getBoundingClientRect(),p=0;a={x:u.clientX-(h.left??p),y:u.clientY-(h.top??p)}}let c=o.retina.pixelRatio;a&&(a.x*=c,a.y*=c),s.mouse.position=a,s.status=ae},this._touchEnd=i=>{let o=i,n=Array.from(o.changedTouches);for(let s of n)this._touches.delete(s.identifier);this._mouseTouchFinish()},this._touchEndClick=i=>{let o=i,n=Array.from(o.changedTouches);for(let s of n)this._touches.delete(s.identifier);this._mouseTouchClick(i)},this._touchStart=i=>{let o=i,n=Array.from(o.changedTouches);for(let s of n)this._touches.set(s.identifier,performance.now());this._mouseTouchMove(i)},this._canPush=!0,this._touches=new Map,this._handlers={mouseDown:()=>this._mouseDown(),mouseLeave:()=>this._mouseTouchFinish(),mouseMove:i=>this._mouseTouchMove(i),mouseUp:i=>this._mouseTouchClick(i),touchStart:i=>this._touchStart(i),touchMove:i=>this._mouseTouchMove(i),touchEnd:i=>this._touchEnd(i),touchCancel:i=>this._touchEnd(i),touchEndClick:i=>this._touchEndClick(i),visibilityChange:()=>this._handleVisibilityChange(),themeChange:i=>this._handleThemeChange(i),oldThemeChange:i=>this._handleThemeChange(i),resize:()=>{this._handleWindowResize()}}}addListeners(){this._manageListeners(!0)}removeListeners(){this._manageListeners(!1)}};var j;(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"})(j||(j={}));var I=class t{constructor(){this.value=""}static create(e,i){let o=new t;return o.load(e),i!==void 0&&(ce(i)||X(i)?o.load({value:i}):o.load(i)),o}load(e){d(e)||d(e.value)||(this.value=e.value)}};var Zt=class{constructor(){this.color=new I,this.color.value="",this.image="",this.position="",this.repeat="",this.size="",this.opacity=1}load(e){d(e)||(e.color!==void 0&&(this.color=I.create(this.color,e.color)),e.image!==void 0&&(this.image=e.image),e.position!==void 0&&(this.position=e.position),e.repeat!==void 0&&(this.repeat=e.repeat),e.size!==void 0&&(this.size=e.size),e.opacity!==void 0&&(this.opacity=e.opacity))}};var Kt=class{constructor(){this.opacity=1}load(e){d(e)||(e.color!==void 0&&(this.color=I.create(this.color,e.color)),e.image!==void 0&&(this.image=e.image),e.opacity!==void 0&&(this.opacity=e.opacity))}};var Jt=class{constructor(){this.composite="destination-out",this.cover=new Kt,this.enable=!1}load(e){if(!d(e)){if(e.composite!==void 0&&(this.composite=e.composite),e.cover!==void 0){let i=e.cover,o=ce(e.cover)?{color:e.cover}:e.cover;this.cover.load(i.color!==void 0||i.image!==void 0?i:{color:o})}e.enable!==void 0&&(this.enable=e.enable)}}};var ei=class{constructor(){this.enable=!0,this.zIndex=0}load(e){d(e)||(e.enable!==void 0&&(this.enable=e.enable),e.zIndex!==void 0&&(this.zIndex=e.zIndex))}};var ti=class{constructor(){this.enable=!1,this.mode=[]}load(e){d(e)||(e.enable!==void 0&&(this.enable=e.enable),e.mode!==void 0&&(this.mode=e.mode))}};var we;(function(t){t.circle="circle",t.rectangle="rectangle"})(we||(we={}));var _t=class{constructor(){this.selectors=[],this.enable=!1,this.mode=[],this.type=we.circle}load(e){d(e)||(e.selectors!==void 0&&(this.selectors=e.selectors),e.enable!==void 0&&(this.enable=e.enable),e.mode!==void 0&&(this.mode=e.mode),e.type!==void 0&&(this.type=e.type))}};var ii=class{constructor(){this.enable=!1,this.force=2,this.smooth=10}load(e){d(e)||(e.enable!==void 0&&(this.enable=e.enable),e.force!==void 0&&(this.force=e.force),e.smooth!==void 0&&(this.smooth=e.smooth))}};var oi=class{constructor(){this.enable=!1,this.mode=[],this.parallax=new ii}load(e){d(e)||(e.enable!==void 0&&(this.enable=e.enable),e.mode!==void 0&&(this.mode=e.mode),this.parallax.load(e.parallax))}};var ni=class{constructor(){this.delay=.5,this.enable=!0}load(e){d(e)||(e.delay!==void 0&&(this.delay=e.delay),e.enable!==void 0&&(this.enable=e.enable))}};var si=class{constructor(){this.onClick=new ti,this.onDiv=new _t,this.onHover=new oi,this.resize=new ni}load(e){if(d(e))return;this.onClick.load(e.onClick);let i=e.onDiv;i!==void 0&&(this.onDiv=U(i,o=>{let n=new _t;return n.load(o),n})),this.onHover.load(e.onHover),this.resize.load(e.resize)}};var ri=class{constructor(e,i){this._engine=e,this._container=i}load(e){if(d(e)||!this._container)return;let i=this._engine.interactors.get(this._container);if(i)for(let o of i)o.loadModeOptions&&o.loadModeOptions(this,e)}};var nt=class{constructor(e,i){this.detectsOn=Le.window,this.events=new si,this.modes=new ri(e,i)}load(e){if(d(e))return;let i=e.detectsOn;i!==void 0&&(this.detectsOn=i),this.events.load(e.events),this.modes.load(e.modes)}};var Ms=50,ai=class{load(e){d(e)||(e.position&&(this.position={x:e.position.x??Ms,y:e.position.y??Ms,mode:e.position.mode??ve.percent}),e.options&&(this.options=D({},e.options)))}};var ze;(function(t){t.screen="screen",t.canvas="canvas"})(ze||(ze={}));var ci=class{constructor(){this.maxWidth=1/0,this.options={},this.mode=ze.canvas}load(e){d(e)||(d(e.maxWidth)||(this.maxWidth=e.maxWidth),d(e.mode)||(e.mode===ze.screen?this.mode=ze.screen:this.mode=ze.canvas),d(e.options)||(this.options=D({},e.options)))}};var _e;(function(t){t.any="any",t.dark="dark",t.light="light"})(_e||(_e={}));var li=class{constructor(){this.auto=!1,this.mode=_e.any,this.value=!1}load(e){d(e)||(e.auto!==void 0&&(this.auto=e.auto),e.mode!==void 0&&(this.mode=e.mode),e.value!==void 0&&(this.value=e.value))}};var fi=class{constructor(){this.name="",this.default=new li}load(e){d(e)||(e.name!==void 0&&(this.name=e.name),this.default.load(e.default),e.options!==void 0&&(this.options=D({},e.options)))}};var Ne=class{constructor(){this.count=0,this.enable=!1,this.speed=1,this.decay=0,this.delay=0,this.sync=!1}load(e){d(e)||(e.count!==void 0&&(this.count=_(e.count)),e.enable!==void 0&&(this.enable=e.enable),e.speed!==void 0&&(this.speed=_(e.speed)),e.decay!==void 0&&(this.decay=_(e.decay)),e.delay!==void 0&&(this.delay=_(e.delay)),e.sync!==void 0&&(this.sync=e.sync))}},Fe=class extends Ne{constructor(){super(),this.mode=Oe.auto,this.startValue=De.random}load(e){super.load(e),!d(e)&&(e.mode!==void 0&&(this.mode=e.mode),e.startValue!==void 0&&(this.startValue=e.startValue))}};var st=class extends Ne{constructor(){super(),this.offset=0,this.sync=!0}load(e){super.load(e),!d(e)&&e.offset!==void 0&&(this.offset=_(e.offset))}};var ui=class{constructor(){this.h=new st,this.s=new st,this.l=new st}load(e){d(e)||(this.h.load(e.h),this.s.load(e.s),this.l.load(e.l))}};var He=class t extends I{constructor(){super(),this.animation=new ui}static create(e,i){let o=new t;return o.load(e),i!==void 0&&(ce(i)||X(i)?o.load({value:i}):o.load(i)),o}load(e){if(super.load(e),d(e))return;let i=e.animation;i!==void 0&&(i.enable!==void 0?this.animation.h.load(i):this.animation.load(e.animation))}};var Ae;(function(t){t.absorb="absorb",t.bounce="bounce",t.destroy="destroy"})(Ae||(Ae={}));var hi=class{constructor(){this.speed=2}load(e){d(e)||e.speed!==void 0&&(this.speed=e.speed)}};var di=class{constructor(){this.enable=!0,this.retries=0}load(e){d(e)||(e.enable!==void 0&&(this.enable=e.enable),e.retries!==void 0&&(this.retries=e.retries))}};var J=class{constructor(){this.value=0}load(e){d(e)||d(e.value)||(this.value=_(e.value))}},On=class extends J{constructor(){super(),this.animation=new Ne}load(e){if(super.load(e),d(e))return;let i=e.animation;i!==void 0&&this.animation.load(i)}},rt=class extends On{constructor(){super(),this.animation=new Fe}load(e){super.load(e)}};var kt=class extends J{constructor(){super(),this.value=1}};var at=class{constructor(){this.horizontal=new kt,this.vertical=new kt}load(e){d(e)||(this.horizontal.load(e.horizontal),this.vertical.load(e.vertical))}};var pi=class{constructor(){this.absorb=new hi,this.bounce=new at,this.enable=!1,this.maxSpeed=50,this.mode=Ae.bounce,this.overlap=new di}load(e){d(e)||(this.absorb.load(e.absorb),this.bounce.load(e.bounce),e.enable!==void 0&&(this.enable=e.enable),e.maxSpeed!==void 0&&(this.maxSpeed=_(e.maxSpeed)),e.mode!==void 0&&(this.mode=e.mode),this.overlap.load(e.overlap))}};var mi=class{constructor(){this.close=!0,this.fill=!0,this.options={},this.type=[]}load(e){if(d(e))return;let i=e.options;if(i!==void 0)for(let o in i){let n=i[o];n&&(this.options[o]=D(this.options[o]??{},n))}e.close!==void 0&&(this.close=e.close),e.fill!==void 0&&(this.fill=e.fill),e.type!==void 0&&(this.type=e.type)}};var xi=class{constructor(){this.offset=0,this.value=90}load(e){d(e)||(e.offset!==void 0&&(this.offset=_(e.offset)),e.value!==void 0&&(this.value=_(e.value)))}};var gi=class{constructor(){this.distance=200,this.enable=!1,this.rotate={x:3e3,y:3e3}}load(e){if(!d(e)&&(e.distance!==void 0&&(this.distance=_(e.distance)),e.enable!==void 0&&(this.enable=e.enable),e.rotate)){let i=e.rotate.x;i!==void 0&&(this.rotate.x=i);let o=e.rotate.y;o!==void 0&&(this.rotate.y=o)}}};var yi=class{constructor(){this.x=50,this.y=50,this.mode=ve.percent,this.radius=0}load(e){d(e)||(e.x!==void 0&&(this.x=e.x),e.y!==void 0&&(this.y=e.y),e.mode!==void 0&&(this.mode=e.mode),e.radius!==void 0&&(this.radius=e.radius))}};var vi=class{constructor(){this.acceleration=9.81,this.enable=!1,this.inverse=!1,this.maxSpeed=50}load(e){d(e)||(e.acceleration!==void 0&&(this.acceleration=_(e.acceleration)),e.enable!==void 0&&(this.enable=e.enable),e.inverse!==void 0&&(this.inverse=e.inverse),e.maxSpeed!==void 0&&(this.maxSpeed=_(e.maxSpeed)))}};var bi=class{constructor(){this.clamp=!0,this.delay=new J,this.enable=!1,this.options={}}load(e){d(e)||(e.clamp!==void 0&&(this.clamp=e.clamp),this.delay.load(e.delay),e.enable!==void 0&&(this.enable=e.enable),this.generator=e.generator,e.options&&(this.options=D(this.options,e.options)))}};var wi=class{load(e){d(e)||(e.color!==void 0&&(this.color=I.create(this.color,e.color)),e.image!==void 0&&(this.image=e.image))}};var _i=class{constructor(){this.enable=!1,this.length=10,this.fill=new wi}load(e){d(e)||(e.enable!==void 0&&(this.enable=e.enable),e.fill!==void 0&&this.fill.load(e.fill),e.length!==void 0&&(this.length=e.length))}};var S;(function(t){t.bounce="bounce",t.none="none",t.out="out",t.destroy="destroy",t.split="split"})(S||(S={}));var ki=class{constructor(){this.default=S.out}load(e){d(e)||(e.default!==void 0&&(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)}};var Ci=class{constructor(){this.acceleration=0,this.enable=!1}load(e){d(e)||(e.acceleration!==void 0&&(this.acceleration=_(e.acceleration)),e.enable!==void 0&&(this.enable=e.enable),e.position&&(this.position=D({},e.position)))}};var Mi=class{constructor(){this.angle=new xi,this.attract=new gi,this.center=new yi,this.decay=0,this.distance={},this.direction=$.none,this.drift=0,this.enable=!1,this.gravity=new vi,this.path=new bi,this.outModes=new ki,this.random=!1,this.size=!1,this.speed=2,this.spin=new Ci,this.straight=!1,this.trail=new _i,this.vibrate=!1,this.warp=!1}load(e){if(d(e))return;this.angle.load(pe(e.angle)?{value:e.angle}:e.angle),this.attract.load(e.attract),this.center.load(e.center),e.decay!==void 0&&(this.decay=_(e.decay)),e.direction!==void 0&&(this.direction=e.direction),e.distance!==void 0&&(this.distance=pe(e.distance)?{horizontal:e.distance,vertical:e.distance}:{...e.distance}),e.drift!==void 0&&(this.drift=_(e.drift)),e.enable!==void 0&&(this.enable=e.enable),this.gravity.load(e.gravity);let i=e.outModes;i!==void 0&&(Pe(i)?this.outModes.load(i):this.outModes.load({default:i})),this.path.load(e.path),e.random!==void 0&&(this.random=e.random),e.size!==void 0&&(this.size=e.size),e.speed!==void 0&&(this.speed=_(e.speed)),this.spin.load(e.spin),e.straight!==void 0&&(this.straight=e.straight),this.trail.load(e.trail),e.vibrate!==void 0&&(this.vibrate=e.vibrate),e.warp!==void 0&&(this.warp=e.warp)}};var Pi=class extends Fe{constructor(){super(),this.destroy=me.none,this.speed=2}load(e){super.load(e),!d(e)&&e.destroy!==void 0&&(this.destroy=e.destroy)}};var Oi=class extends rt{constructor(){super(),this.animation=new Pi,this.value=1}load(e){if(d(e))return;super.load(e);let i=e.animation;i!==void 0&&this.animation.load(i)}};var Ri=class{constructor(){this.enable=!1,this.width=1920,this.height=1080}load(e){if(d(e))return;e.enable!==void 0&&(this.enable=e.enable);let i=e.width;i!==void 0&&(this.width=i);let o=e.height;o!==void 0&&(this.height=o)}};var Ue;(function(t){t.delete="delete",t.wait="wait"})(Ue||(Ue={}));var zi=class{constructor(){this.mode=Ue.delete,this.value=0}load(e){d(e)||(e.mode!==void 0&&(this.mode=e.mode),e.value!==void 0&&(this.value=e.value))}};var Si=class{constructor(){this.density=new Ri,this.limit=new zi,this.value=0}load(e){d(e)||(this.density.load(e.density),this.limit.load(e.limit),e.value!==void 0&&(this.value=e.value))}};var Di=class{constructor(){this.blur=0,this.color=new I,this.enable=!1,this.offset={x:0,y:0},this.color.value="#000"}load(e){d(e)||(e.blur!==void 0&&(this.blur=e.blur),this.color=I.create(this.color,e.color),e.enable!==void 0&&(this.enable=e.enable),e.offset!==void 0&&(e.offset.x!==void 0&&(this.offset.x=e.offset.x),e.offset.y!==void 0&&(this.offset.y=e.offset.y)))}};var Ii=class{constructor(){this.close=!0,this.fill=!0,this.options={},this.type="circle"}load(e){if(d(e))return;let i=e.options;if(i!==void 0)for(let o in i){let n=i[o];n&&(this.options[o]=D(this.options[o]??{},n))}e.close!==void 0&&(this.close=e.close),e.fill!==void 0&&(this.fill=e.fill),e.type!==void 0&&(this.type=e.type)}};var Ti=class extends Fe{constructor(){super(),this.destroy=me.none,this.speed=5}load(e){super.load(e),!d(e)&&e.destroy!==void 0&&(this.destroy=e.destroy)}};var Ei=class extends rt{constructor(){super(),this.animation=new Ti,this.value=3}load(e){if(super.load(e),d(e))return;let i=e.animation;i!==void 0&&this.animation.load(i)}};var Ct=class{constructor(){this.width=0}load(e){d(e)||(e.color!==void 0&&(this.color=He.create(this.color,e.color)),e.width!==void 0&&(this.width=_(e.width)),e.opacity!==void 0&&(this.opacity=_(e.opacity)))}};var Li=class extends J{constructor(){super(),this.opacityRate=1,this.sizeRate=1,this.velocityRate=1}load(e){super.load(e),!d(e)&&(e.opacityRate!==void 0&&(this.opacityRate=e.opacityRate),e.sizeRate!==void 0&&(this.sizeRate=e.sizeRate),e.velocityRate!==void 0&&(this.velocityRate=e.velocityRate))}};var Fi=class{constructor(e,i){this._engine=e,this._container=i,this.bounce=new at,this.collisions=new pi,this.color=new He,this.color.value="#fff",this.effect=new mi,this.groups={},this.move=new Mi,this.number=new Si,this.opacity=new Oi,this.reduceDuplicates=!1,this.shadow=new Di,this.shape=new Ii,this.size=new Ei,this.stroke=new Ct,this.zIndex=new Li}load(e){if(d(e))return;if(e.groups!==void 0)for(let o of Object.keys(e.groups)){if(!Object.hasOwn(e.groups,o))continue;let n=e.groups[o];n!==void 0&&(this.groups[o]=D(this.groups[o]??{},n))}e.reduceDuplicates!==void 0&&(this.reduceDuplicates=e.reduceDuplicates),this.bounce.load(e.bounce),this.color.load(He.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.shadow.load(e.shadow),this.zIndex.load(e.zIndex),this.collisions.load(e.collisions),e.interactivity!==void 0&&(this.interactivity=D({},e.interactivity));let i=e.stroke;if(i&&(this.stroke=U(i,o=>{let n=new Ct;return n.load(o),n})),this._container){let o=this._engine.updaters.get(this._container);if(o)for(let s of o)s.loadOptions&&s.loadOptions(this,e);let n=this._engine.interactors.get(this._container);if(n)for(let s of n)s.loadParticlesOptions&&s.loadParticlesOptions(this,e)}}};function Rn(t,...e){for(let i of e)t.load(i)}function Ai(t,e,...i){let o=new Fi(t,e);return Rn(o,...i),o}var Bi=class{constructor(e,i){this._findDefaultTheme=o=>this.themes.find(n=>n.default.value&&n.default.mode===o)??this.themes.find(n=>n.default.value&&n.default.mode===_e.any),this._importPreset=o=>{this.load(this._engine.getPreset(o))},this._engine=e,this._container=i,this.autoPlay=!0,this.background=new Zt,this.backgroundMask=new Jt,this.clear=!0,this.defaultThemes={},this.delay=0,this.fullScreen=new ei,this.detectRetina=!0,this.duration=0,this.fpsLimit=120,this.interactivity=new nt(e,i),this.manualParticles=[],this.particles=Ai(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(d(e))return;e.preset!==void 0&&U(e.preset,r=>this._importPreset(r)),e.autoPlay!==void 0&&(this.autoPlay=e.autoPlay),e.clear!==void 0&&(this.clear=e.clear),e.key!==void 0&&(this.key=e.key),e.name!==void 0&&(this.name=e.name),e.delay!==void 0&&(this.delay=_(e.delay));let i=e.detectRetina;i!==void 0&&(this.detectRetina=i),e.duration!==void 0&&(this.duration=_(e.duration));let o=e.fpsLimit;o!==void 0&&(this.fpsLimit=o),e.pauseOnBlur!==void 0&&(this.pauseOnBlur=e.pauseOnBlur),e.pauseOnOutsideViewport!==void 0&&(this.pauseOnOutsideViewport=e.pauseOnOutsideViewport),e.zLayers!==void 0&&(this.zLayers=e.zLayers),this.background.load(e.background);let n=e.fullScreen;St(n)?this.fullScreen.enable=n:this.fullScreen.load(n),this.backgroundMask.load(e.backgroundMask),this.interactivity.load(e.interactivity),e.manualParticles&&(this.manualParticles=e.manualParticles.map(r=>{let a=new ai;return a.load(r),a})),this.particles.load(e.particles),this.style=D(this.style,e.style),this._engine.loadOptions(this,e),e.smooth!==void 0&&(this.smooth=e.smooth);let s=this._engine.interactors.get(this._container);if(s)for(let r of s)r.loadOptions&&r.loadOptions(this,e);if(e.responsive!==void 0)for(let r of e.responsive){let a=new ci;a.load(r),this.responsive.push(a)}if(this.responsive.sort((r,a)=>r.maxWidth-a.maxWidth),e.themes!==void 0)for(let r of e.themes){let a=this.themes.find(c=>c.name===r.name);if(a)a.load(r);else{let c=new fi;c.load(r),this.themes.push(c)}}this.defaultThemes.dark=this._findDefaultTheme(_e.dark)?.name,this.defaultThemes.light=this._findDefaultTheme(_e.light)?.name}setResponsive(e,i,o){this.load(o);let n=this.responsive.find(s=>s.mode===ze.screen&&screen?s.maxWidth>screen.availWidth:s.maxWidth*i>e);return this.load(n?.options),n?.maxWidth}setTheme(e){if(e){let i=this.themes.find(o=>o.name===e);i&&this.load(i.options)}else{let i=Lt("(prefers-color-scheme: dark)"),o=i?.matches,n=this._findDefaultTheme(o?_e.dark:_e.light);n&&this.load(n.options)}}};var Se;(function(t){t.external="external",t.particles="particles"})(Se||(Se={}));var qi=class{constructor(e,i){this.container=i,this._engine=e,this._interactors=[],this._externalInteractors=[],this._particleInteractors=[]}externalInteract(e){for(let i of this._externalInteractors)i.isEnabled()&&i.interact(e)}handleClickMode(e){for(let i of this._externalInteractors)i.handleClickMode?.(e)}async init(){this._interactors=await this._engine.getInteractors(this.container,!0),this._externalInteractors=[],this._particleInteractors=[];for(let e of this._interactors){switch(e.type){case Se.external:this._externalInteractors.push(e);break;case Se.particles:this._particleInteractors.push(e);break}e.init()}}particlesInteract(e,i){for(let o of this._externalInteractors)o.clear(e,i);for(let o of this._particleInteractors)o.isEnabled(e)&&o.interact(e,i)}reset(e){for(let i of this._externalInteractors)i.isEnabled()&&i.reset(e);for(let i of this._particleInteractors)i.isEnabled(e)&&i.reset(e)}};var oe;(function(t){t.normal="normal",t.inside="inside",t.outside="outside"})(oe||(oe={}));var Ps=0,zn=2,Vi=.5,$a=2,Os="random";function ja(t,e,i,o){let n=e.options[t];if(n)return D({close:e.close,fill:e.fill},Y(n,i,o))}function Ga(t,e,i,o){let n=e.options[t];if(n)return D({close:e.close,fill:e.fill},Y(n,i,o))}function Rs(t){if(!R(t.outMode,t.checkModes))return;let e=t.radius*zn;t.coord>t.maxCoord-e?t.setCb(-t.radius):t.coord<e&&t.setCb(t.radius)}var Ni=class{constructor(e,i){this.container=i,this._calcPosition=(o,n,s,r=Ps)=>{for(let x of o.plugins.values()){let m=x.particlePosition!==void 0?x.particlePosition(n,this):void 0;if(m)return Xe.create(m.x,m.y,s)}let a=o.canvas.size,c=as({size:a,position:n}),l=Xe.create(c.x,c.y,s),f=this.getRadius(),u=this.options.move.outModes,h=x=>{Rs({outMode:x,checkModes:[S.bounce],coord:l.x,maxCoord:o.canvas.size.width,setCb:m=>l.x+=m,radius:f})},p=x=>{Rs({outMode:x,checkModes:[S.bounce],coord:l.y,maxCoord:o.canvas.size.height,setCb:m=>l.y+=m,radius:f})};return h(u.left??u.default),h(u.right??u.default),p(u.top??u.default),p(u.bottom??u.default),this._checkOverlap(l,r)?this._calcPosition(o,void 0,s,r+1):l},this._calculateVelocity=()=>{let o=rs(this.direction),n=o.copy(),s=this.options.move;if(s.direction===$.inside||s.direction===$.outside)return n;let r=fe(g(s.angle.value)),a=fe(g(s.angle.offset)),c={left:a-r*Vi,right:a+r*Vi};return s.straight||(n.angle+=G(_(c.left,c.right))),s.random&&typeof s.speed=="number"&&(n.length*=P()),n},this._checkOverlap=(o,n=Ps)=>{let s=this.options.collisions,r=this.getRadius();if(!s.enable)return!1;let a=s.overlap;if(a.enable)return!1;let c=a.retries;if(c>=0&&n>c)throw new Error(`${W} particle is overlapping and can't be placed`);return!!this.container.particles.find(f=>F(o,f.position)<r+f.getRadius())},this._getRollColor=o=>{if(!o||!this.roll||!this.backColor&&!this.roll.alter)return o;let n=1,s=0,r=this.roll.horizontal&&this.roll.vertical?zn*n:n,a=this.roll.horizontal?Math.PI*Vi:s;return Math.floor(((this.roll.angle??s)+a)/(Math.PI/r))%zn?this.backColor?this.backColor:this.roll.alter?_s(o,this.roll.alter.type,this.roll.alter.value):o:o},this._initPosition=o=>{let n=this.container,s=g(this.options.zIndex.value),r=0;this.position=this._calcPosition(n,o,H(s,r,n.zLayers)),this.initialPosition=this.position.copy();let a=n.canvas.size,c=0;switch(this.moveCenter={...qt(this.options.move.center,a),radius:this.options.move.center.radius??c,mode:this.options.move.center.mode??ve.percent},this.direction=ss(this.options.move.direction,this.position,this.moveCenter),this.options.move.direction){case $.inside:this.outType=oe.inside;break;case $.outside:this.outType=oe.outside;break}this.offset=T.origin},this._engine=e}destroy(e){if(this.unbreakable||this.destroyed)return;this.destroyed=!0,this.bubble.inRange=!1,this.slow.inRange=!1;let i=this.container,o=this.pathGenerator;i.shapeDrawers.get(this.shape)?.particleDestroy?.(this);for(let s of i.plugins.values())s.particleDestroyed?.(this,e);for(let s of i.particles.updaters)s.particleDestroyed?.(this,e);o?.reset(this),this._engine.dispatchEvent(j.particleDestroyed,{container:this.container,data:{particle:this}})}draw(e){let i=this.container,o=i.canvas;for(let n of i.plugins.values())o.drawParticlePlugin(n,this,e);o.drawParticle(this,e)}getFillColor(){return this._getRollColor(this.bubble.color??Pn(this.color))}getMass(){return this.getRadius()**$a*Math.PI*Vi}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??Pn(this.strokeColor))}init(e,i,o,n){let s=this.container,r=this._engine;this.id=e,this.group=n,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=oe.normal,this.ignoresResizeRatio=!0;let a=s.retina.pixelRatio,c=s.actualOptions,l=Ai(this._engine,s,c.particles),{reduceDuplicates:f}=l,u=l.effect.type,h=l.shape.type;this.effect=Y(u,this.id,f),this.shape=Y(h,this.id,f);let p=l.effect,x=l.shape;if(o){if(o.effect?.type){let z=o.effect.type,q=Y(z,this.id,f);q&&(this.effect=q,p.load(o.effect))}if(o.shape?.type){let z=o.shape.type,q=Y(z,this.id,f);q&&(this.shape=q,x.load(o.shape))}}if(this.effect===Os){let z=[...this.container.effectDrawers.keys()];this.effect=z[Math.floor(Math.random()*z.length)]}if(this.shape===Os){let z=[...this.container.shapeDrawers.keys()];this.shape=z[Math.floor(Math.random()*z.length)]}this.effectData=ja(this.effect,p,this.id,f),this.shapeData=Ga(this.shape,x,this.id,f),l.load(o);let m=this.effectData;m&&l.load(m.particles);let v=this.shapeData;v&&l.load(v.particles);let y=new nt(r,s);y.load(s.actualOptions.interactivity),y.load(l.interactivity),this.interactivity=y,this.effectFill=m?.fill??l.effect.fill,this.effectClose=m?.close??l.effect.close,this.shapeFill=v?.fill??l.shape.fill,this.shapeClose=v?.close??l.shape.close,this.options=l;let w=this.options.move.path;this.pathDelay=g(w.delay.value)*1e3,w.generator&&(this.pathGenerator=this._engine.getPathGenerator(w.generator),this.pathGenerator&&s.addPath(w.generator,this.pathGenerator)&&this.pathGenerator.init(s)),s.retina.initParticle(this),this.size=Bt(this.options.size,a),this.bubble={inRange:!1},this.slow={inRange:!1,factor:1},this._initPosition(i),this.initialVelocity=this._calculateVelocity(),this.velocity=this.initialVelocity.copy();let C=1;this.moveDecay=C-g(this.options.move.decay);let b=s.particles;b.setLastZIndex(this.position.z),this.zIndexFactor=this.position.z/s.zLayers,this.sides=24;let O=s.effectDrawers.get(this.effect);O||(O=this._engine.getEffectDrawer(this.effect),O&&s.effectDrawers.set(this.effect,O)),O?.loadEffect&&O.loadEffect(this);let M=s.shapeDrawers.get(this.shape);M||(M=this._engine.getShapeDrawer(this.shape),M&&s.shapeDrawers.set(this.shape,M)),M?.loadShape&&M.loadShape(this);let te=M?.getSidesCount;te&&(this.sides=te(this)),this.spawning=!1,this.shadowColor=K(this.options.shadow.color);for(let z of b.updaters)z.init(this);for(let z of b.movers)z.init?.(this);O?.particleInit?.(s,this),M?.particleInit?.(s,this);for(let z of s.plugins.values())z.particleCreated?.(this)}isInsideCanvas(){let e=this.getRadius(),i=this.container.canvas.size,o=this.position;return o.x>=-e&&o.y>=-e&&o.y<=i.height+e&&o.x<=i.width+e}isVisible(){return!this.destroyed&&!this.spawning&&this.isInsideCanvas()}reset(){for(let e of this.container.particles.updaters)e.reset?.(this)}};var Hi=class{constructor(e,i){this.position=e,this.particle=i}};var We;(function(t){t.circle="circle",t.rectangle="rectangle"})(We||(We={}));var Mt=2,Ui=class{constructor(e,i,o){this.position={x:e,y:i},this.type=o}},B=class t extends Ui{constructor(e,i,o){super(e,i,We.circle),this.radius=o}contains(e){return F(e,this.position)<=this.radius}intersects(e){let i=this.position,o=e.position,n={x:Math.abs(o.x-i.x),y:Math.abs(o.y-i.y)},s=this.radius;if(e instanceof t||e.type===We.circle){let r=e,a=s+r.radius,c=Math.sqrt(n.x**Mt+n.y**Mt);return a>c}else if(e instanceof Q||e.type===We.rectangle){let r=e,{width:a,height:c}=r.size;return Math.pow(n.x-a,Mt)+Math.pow(n.y-c,Mt)<=s**Mt||n.x<=s+a&&n.y<=s+c||n.x<=a||n.y<=c}return!1}},Q=class t extends Ui{constructor(e,i,o,n){super(e,i,We.rectangle),this.size={height:n,width:o}}contains(e){let i=this.size.width,o=this.size.height,n=this.position;return e.x>=n.x&&e.x<=n.x+i&&e.y>=n.y&&e.y<=n.y+o}intersects(e){if(e instanceof B)return e.intersects(this);let i=this.size.width,o=this.size.height,n=this.position,s=e.position,r=e instanceof t?e.size:{width:0,height:0},a=r.width,c=r.height;return s.x<n.x+i&&s.x+a>n.x&&s.y<n.y+o&&s.y+c>n.y}};var Pt=.5,Qa=2,Ya=4,Ot=class t{constructor(e,i){this.rectangle=e,this.capacity=i,this._subdivide=()=>{let{x:o,y:n}=this.rectangle.position,{width:s,height:r}=this.rectangle.size,{capacity:a}=this;for(let c=0;c<Ya;c++){let l=c%Qa;this._subs.push(new t(new Q(o+s*Pt*l,n+r*Pt*(Math.round(c*Pt)-l),s*Pt,r*Pt),a))}this._divided=!0},this._points=[],this._divided=!1,this._subs=[]}insert(e){return this.rectangle.contains(e.position)?this._points.length<this.capacity?(this._points.push(e),!0):(this._divided||this._subdivide(),this._subs.some(i=>i.insert(e))):!1}query(e,i){let o=[];if(!e.intersects(this.rectangle))return[];for(let n of this._points)!e.contains(n.position)&&F(e.position,n.position)>n.particle.getRadius()&&(!i||i(n.particle))||o.push(n.particle);if(this._divided)for(let n of this._subs)o.push(...n.query(e,i));return o}queryCircle(e,i,o){return this.query(new B(e.x,e.y,i),o)}queryRectangle(e,i,o){return this.query(new Q(e.x,e.y,i.width,i.height),o)}};var zs=4,Xa=2,Za=1,Ss=t=>{let{height:e,width:i}=t,o=-.25,n=1.5;return new Q(o*i,o*e,n*i,n*e)},Wi=class{constructor(e,i){this._addToPool=(...n)=>{this._pool.push(...n)},this._applyDensity=(n,s,r)=>{let a=n.number;if(!n.number.density?.enable){r===void 0?this._limit=a.limit.value:a.limit&&this._groupLimits.set(r,a.limit.value);return}let c=this._initDensityFactor(a.density),l=a.value,f=0,u=a.limit.value>f?a.limit.value:l,h=Math.min(l,u)*c+s,p=Math.min(this.count,this.filter(x=>x.group===r).length);r===void 0?this._limit=a.limit.value*c:this._groupLimits.set(r,a.limit.value*c),p<h?this.push(Math.abs(h-p),void 0,n,r):p>h&&this.removeQuantity(p-h,r)},this._initDensityFactor=n=>{let s=this._container,r=1;if(!s.canvas.element||!n.enable)return r;let a=s.canvas.element,c=s.retina.pixelRatio;return a.width*a.height/(n.height*n.width*c**Xa)},this._pushParticle=(n,s,r,a)=>{try{let c=this._pool.pop();c||(c=new Ni(this._engine,this._container)),c.init(this._nextId,n,s,r);let l=!0;return a&&(l=a(c)),l?(this._array.push(c),this._zArray.push(c),this._nextId++,this._engine.dispatchEvent(j.particleAdded,{container:this._container,data:{particle:c}}),c):void 0}catch(c){ue().warning(`${W} adding particle: ${c}`)}},this._removeParticle=(n,s,r)=>{let a=this._array[n];if(!a||a.group!==s)return!1;let c=this._zArray.indexOf(a),l=1;return this._array.splice(n,l),this._zArray.splice(c,l),a.destroy(r),this._engine.dispatchEvent(j.particleRemoved,{container:this._container,data:{particle:a}}),this._addToPool(a),!0},this._engine=e,this._container=i,this._nextId=0,this._array=[],this._zArray=[],this._pool=[],this._limit=0,this._groupLimits=new Map,this._needsSort=!1,this._lastZIndex=0,this._interactionManager=new qi(e,i),this._pluginsInitialized=!1;let o=i.canvas.size;this.quadTree=new Ot(Ss(o),zs),this.movers=[],this.updaters=[]}get count(){return this._array.length}addManualParticles(){let e=this._container;e.actualOptions.manualParticles.forEach(o=>this.addParticle(o.position?qt(o.position,e.canvas.size):void 0,o.options))}addParticle(e,i,o,n){let s=this._container.actualOptions.particles.number.limit.mode,r=o===void 0?this._limit:this._groupLimits.get(o)??this._limit,a=this.count;if(r>0)switch(s){case Ue.delete:{let u=a+1-r;u>0&&this.removeQuantity(u);break}case Ue.wait:if(a>=r)return;break}return this._pushParticle(e,i,o,n)}clear(){this._array=[],this._zArray=[],this._pluginsInitialized=!1}destroy(){this._array=[],this._zArray=[],this.movers=[],this.updaters=[]}draw(e){let i=this._container,o=i.canvas;o.clear(),this.update(e);for(let n of i.plugins.values())o.drawPlugin(n,e);for(let n of this._zArray)n.draw(e)}filter(e){return this._array.filter(e)}find(e){return this._array.find(e)}get(e){return this._array[e]}handleClickMode(e){this._interactionManager.handleClickMode(e)}async init(){let e=this._container,i=e.actualOptions;this._lastZIndex=0,this._needsSort=!1,await this.initPlugins();let o=!1;for(let n of e.plugins.values())if(o=n.particlesInitialization?.()??o,o)break;if(this.addManualParticles(),!o){let n=i.particles,s=n.groups;for(let r in s){let a=s[r];for(let c=this.count,l=0;l<a.number?.value&&c<n.number.value;c++,l++)this.addParticle(void 0,a,r)}for(let r=this.count;r<n.number.value;r++)this.addParticle()}}async initPlugins(){if(this._pluginsInitialized)return;let e=this._container;this.movers=await this._engine.getMovers(e,!0),this.updaters=await this._engine.getUpdaters(e,!0),await this._interactionManager.init();for(let i of e.pathGenerators.values())i.init(e)}push(e,i,o,n){for(let s=0;s<e;s++)this.addParticle(i?.position,o,n)}async redraw(){this.clear(),await this.init(),this.draw({value:0,factor:0})}remove(e,i,o){this.removeAt(this._array.indexOf(e),void 0,i,o)}removeAt(e,i=Za,o,n){if(e<0||e>this.count)return;let r=0;for(let a=e;r<i&&a<this.count;a++)this._removeParticle(a,o,n)&&(a--,r++)}removeQuantity(e,i){this.removeAt(0,e,i)}setDensity(){let e=this._container.actualOptions,i=e.particles.groups,o=0;for(let n in i)this._applyDensity(i[n],o,n);this._applyDensity(e.particles,e.manualParticles.length)}setLastZIndex(e){this._lastZIndex=e,this._needsSort=this._needsSort||this._lastZIndex<e}setResizeFactor(e){this._resizeFactor=e}update(e){let i=this._container,o=new Set;this.quadTree=new Ot(Ss(i.canvas.size),zs);for(let s of i.pathGenerators.values())s.update();for(let s of i.plugins.values())s.update?.(e);let n=this._resizeFactor;for(let s of this._array){n&&!s.ignoresResizeRatio&&(s.position.x*=n.width,s.position.y*=n.height,s.initialPosition.x*=n.width,s.initialPosition.y*=n.height),s.ignoresResizeRatio=!1,this._interactionManager.reset(s);for(let r of this._container.plugins.values()){if(s.destroyed)break;r.particleUpdate?.(s,e)}for(let r of this.movers)r.isEnabled(s)&&r.move(s,e);if(s.destroyed){o.add(s);continue}this.quadTree.insert(new Hi(s.getPosition(),s))}if(o.size){let s=r=>!o.has(r);this._array=this.filter(s),this._zArray=this._zArray.filter(s);for(let r of o)this._engine.dispatchEvent(j.particleRemoved,{container:this._container,data:{particle:r}});this._addToPool(...o)}this._interactionManager.externalInteract(e);for(let s of this._array){for(let r of this.updaters)r.update(s,e);!s.destroyed&&!s.spawning&&this._interactionManager.particlesInteract(s,e)}if(delete this._resizeFactor,this._needsSort){let s=this._zArray;s.sort((a,c)=>c.position.z-a.position.z||a.id-c.id);let r=1;this._lastZIndex=s[s.length-r].position.z,this._needsSort=!1}}};var Ds=1,Is=1,$i=class{constructor(e){this.container=e,this.pixelRatio=Ds,this.reduceFactor=Is}init(){let e=this.container,i=e.actualOptions;this.pixelRatio=!i.detectRetina||be()?Ds:window.devicePixelRatio,this.reduceFactor=Is;let o=this.pixelRatio,n=e.canvas;if(n.element){let a=n.element;n.size.width=a.offsetWidth*o,n.size.height=a.offsetHeight*o}let s=i.particles,r=s.move;this.maxSpeed=g(r.gravity.maxSpeed)*o,this.sizeAnimationSpeed=g(s.size.animation.speed)*o}initParticle(e){let i=e.options,o=this.pixelRatio,n=i.move,s=n.distance,r=e.retina;r.moveDrift=g(n.drift)*o,r.moveSpeed=g(n.speed)*o,r.sizeAnimationSpeed=g(i.size.animation.speed)*o;let a=r.maxDistance;a.horizontal=s.horizontal!==void 0?s.horizontal*o:void 0,a.vertical=s.vertical!==void 0?s.vertical*o:void 0,r.maxSpeed=g(n.gravity.maxSpeed)*o}};function V(t){return t&&!t.destroyed}var Sn=60;function Ka(t,e=Sn,i=!1){return{value:t,factor:i?Sn/e:Sn*t/1e3}}function ct(t,e,...i){let o=new Bi(t,e);return Rn(o,...i),o}var ji=class{constructor(e,i,o){this._intersectionManager=n=>{if(!(!V(this)||!this.actualOptions.pauseOnOutsideViewport))for(let s of n)s.target===this.interactivity.element&&(s.isIntersecting?this.play():this.pause())},this._nextFrame=n=>{try{if(!this._smooth&&this._lastFrameTime!==void 0&&n<this._lastFrameTime+1e3/this.fpsLimit){this.draw(!1);return}this._lastFrameTime??=n;let s=Ka(n-this._lastFrameTime,this.fpsLimit,this._smooth);if(this.addLifeTime(s.value),this._lastFrameTime=n,s.value>1e3){this.draw(!1);return}if(this.particles.draw(s),!this.alive()){this.destroy();return}this.animationStatus&&this.draw(!1)}catch(s){ue().error(`${W} in animation loop`,s)}},this._engine=e,this.id=Symbol(i),this.fpsLimit=120,this._smooth=!1,this._delay=0,this._duration=0,this._lifeTime=0,this._firstStart=!0,this.started=!1,this.destroyed=!1,this._paused=!0,this._lastFrameTime=0,this.zLayers=100,this.pageHidden=!1,this._clickHandlers=new Map,this._sourceOptions=o,this._initialSourceOptions=o,this.retina=new $i(this),this.canvas=new Yt(this),this.particles=new Wi(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=ct(this._engine,this),this.actualOptions=ct(this._engine,this),this._eventListeners=new Xt(this),this._intersectionObserver=fs(n=>this._intersectionManager(n)),this._engine.dispatchEvent(j.containerBuilt,{container:this})}get animationStatus(){return!this._paused&&!this.pageHidden&&V(this)}get options(){return this._options}get sourceOptions(){return this._sourceOptions}addClickHandler(e){if(!V(this))return;let i=this.interactivity.element;if(!i)return;let o=(u,h,p)=>{if(!V(this))return;let x=this.retina.pixelRatio,m={x:h.x*x,y:h.y*x},v=this.particles.quadTree.queryCircle(m,p*x);e(u,v)},n=u=>{if(!V(this))return;let h=u,p={x:h.offsetX||h.clientX,y:h.offsetY||h.clientY};o(u,p,1)},s=()=>{V(this)&&(l=!0,f=!1)},r=()=>{V(this)&&(f=!0)},a=u=>{if(V(this)){if(l&&!f){let h=u,p=1,x=h.touches[h.touches.length-p];if(!x&&(x=h.changedTouches[h.changedTouches.length-p],!x))return;let m=this.canvas.element,v=m?m.getBoundingClientRect():void 0,y=0,w={x:x.clientX-(v?v.left:y),y:x.clientY-(v?v.top:y)};o(u,w,Math.max(x.radiusX,x.radiusY))}l=!1,f=!1}},c=()=>{V(this)&&(l=!1,f=!1)},l=!1,f=!1;this._clickHandlers.set("click",n),this._clickHandlers.set("touchstart",s),this._clickHandlers.set("touchmove",r),this._clickHandlers.set("touchend",a),this._clickHandlers.set("touchcancel",c);for(let[u,h]of this._clickHandlers)i.addEventListener(u,h)}addLifeTime(e){this._lifeTime+=e}addPath(e,i,o=!1){return!V(this)||!o&&this.pathGenerators.has(e)?!1:(this.pathGenerators.set(e,i),!0)}alive(){return!this._duration||this._lifeTime<=this._duration}clearClickHandlers(){if(V(this)){for(let[e,i]of this._clickHandlers)this.interactivity.element?.removeEventListener(e,i);this._clickHandlers.clear()}}destroy(e=!0){if(V(this)){this.stop(),this.clearClickHandlers(),this.particles.destroy(),this.canvas.destroy();for(let i of this.effectDrawers.values())i.destroy?.(this);for(let i of this.shapeDrawers.values())i.destroy?.(this);for(let i of this.effectDrawers.keys())this.effectDrawers.delete(i);for(let i of this.shapeDrawers.keys())this.shapeDrawers.delete(i);if(this._engine.clearPlugins(this),this.destroyed=!0,e){let i=this._engine.items,o=i.findIndex(s=>s===this);o>=0&&i.splice(o,1)}this._engine.dispatchEvent(j.containerDestroyed,{container:this})}}draw(e){if(!V(this))return;let i=e,o=n=>{i&&(this._lastFrameTime=void 0,i=!1),this._nextFrame(n)};this._drawAnimationFrame=os(n=>o(n))}async export(e,i={}){for(let o of this.plugins.values()){if(!o.export)continue;let n=await o.export(e,i);if(n.supported)return n.blob}ue().error(`${W} - Export plugin with type ${e} not found`)}handleClickMode(e){if(V(this)){this.particles.handleClickMode(e);for(let i of this.plugins.values())i.handleClickMode?.(e)}}async init(){if(!V(this))return;let e=this._engine.getSupportedEffects();for(let u of e){let h=this._engine.getEffectDrawer(u);h&&this.effectDrawers.set(u,h)}let i=this._engine.getSupportedShapes();for(let u of i){let h=this._engine.getShapeDrawer(u);h&&this.shapeDrawers.set(u,h)}await this.particles.initPlugins(),this._options=ct(this._engine,this,this._initialSourceOptions,this.sourceOptions),this.actualOptions=ct(this._engine,this,this._options);let o=await this._engine.getAvailablePlugins(this);for(let[u,h]of o)this.plugins.set(u,h);this.retina.init(),await this.canvas.init(),this.updateActualOptions(),this.canvas.initBackground(),this.canvas.resize();let{zLayers:n,duration:s,delay:r,fpsLimit:a,smooth:c}=this.actualOptions;this.zLayers=n,this._duration=g(s)*1e3,this._delay=g(r)*1e3,this._lifeTime=0;let l=120,f=0;this.fpsLimit=a>f?a:l,this._smooth=c;for(let u of this.effectDrawers.values())await u.init?.(this);for(let u of this.shapeDrawers.values())await u.init?.(this);for(let u of this.plugins.values())await u.init?.();this._engine.dispatchEvent(j.containerInit,{container:this}),await this.particles.init(),this.particles.setDensity();for(let u of this.plugins.values())u.particlesSetup?.();this._engine.dispatchEvent(j.particlesSetup,{container:this})}async loadTheme(e){V(this)&&(this._currentTheme=e,await this.refresh())}pause(){if(V(this)&&(this._drawAnimationFrame!==void 0&&(ns(this._drawAnimationFrame),delete this._drawAnimationFrame),!this._paused)){for(let e of this.plugins.values())e.pause?.();this.pageHidden||(this._paused=!0),this._engine.dispatchEvent(j.containerPaused,{container:this})}}play(e){if(!V(this))return;let i=this._paused||e;if(this._firstStart&&!this.actualOptions.autoPlay){this._firstStart=!1;return}if(this._paused&&(this._paused=!1),i)for(let o of this.plugins.values())o.play&&o.play();this._engine.dispatchEvent(j.containerPlay,{container:this}),this.draw(i??!1)}async refresh(){if(V(this))return this.stop(),this.start()}async reset(e){if(V(this))return this._initialSourceOptions=e,this._sourceOptions=e,this._options=ct(this._engine,this,this._initialSourceOptions,this.sourceOptions),this.actualOptions=ct(this._engine,this,this._options),this.refresh()}async start(){!V(this)||this.started||(await this.init(),this.started=!0,await new Promise(e=>{let i=async()=>{this._eventListeners.addListeners(),this.interactivity.element instanceof HTMLElement&&this._intersectionObserver&&this._intersectionObserver.observe(this.interactivity.element);for(let o of this.plugins.values())await o.start?.();this._engine.dispatchEvent(j.containerStarted,{container:this}),this.play(),e()};this._delayTimeout=setTimeout(()=>void i(),this._delay)}))}stop(){if(!(!V(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(let e of this.plugins.values())e.stop?.();for(let e of this.plugins.keys())this.plugins.delete(e);this._sourceOptions=this._options,this._engine.dispatchEvent(j.containerStopped,{container:this})}}updateActualOptions(){this.actualOptions.responsive=[];let e=this.actualOptions.setResponsive(this.canvas.size.width,this.retina.pixelRatio,this._options);return this.actualOptions.setTheme(this._currentTheme),this._responsiveMaxWidth===e?!1:(this._responsiveMaxWidth=e,!0)}};var Gi=class{constructor(){this._listeners=new Map}addEventListener(e,i){this.removeEventListener(e,i);let o=this._listeners.get(e);o||(o=[],this._listeners.set(e,o)),o.push(i)}dispatchEvent(e,i){this._listeners.get(e)?.forEach(n=>n(i))}hasEventListener(e){return!!this._listeners.get(e)}removeAllEventListeners(e){e?this._listeners.delete(e):this._listeners=new Map}removeEventListener(e,i){let o=this._listeners.get(e);if(!o)return;let n=o.length,s=o.indexOf(i);if(s<0)return;let a=1;n===a?this._listeners.delete(e):o.splice(s,a)}};async function Dn(t,e,i,o=!1){let n=e.get(t);return(!n||o)&&(n=await Promise.all([...i.values()].map(s=>s(t))),e.set(t,n)),n}async function Ja(t){let e=Y(t.url,t.index);if(!e)return t.fallback;let i=await fetch(e);return i.ok?await i.json():(ue().error(`${W} ${i.status} while retrieving config file`),t.fallback)}var Es="true",Ts="false",In="canvas",ec=t=>{let e;if(t instanceof HTMLCanvasElement||t.tagName.toLowerCase()===In)e=t,e.dataset[Me]||(e.dataset[Me]=Ts);else{let o=t.getElementsByTagName(In);o.length?(e=o[0],e.dataset[Me]=Ts):(e=document.createElement(In),e.dataset[Me]=Es,t.appendChild(e))}let i="100%";return e.style.width||(e.style.width=i),e.style.height||(e.style.height=i),e},tc=(t,e)=>{let i=e??document.getElementById(t);return i||(i=document.createElement("div"),i.id=t,i.dataset[Me]=Es,document.body.append(i),i)},Qi=class{constructor(){this._configs=new Map,this._domArray=[],this._eventDispatcher=new Gi,this._initialized=!1,this.plugins=[],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(){let e={};for(let[i,o]of this._configs)e[i]=o;return e}get items(){return this._domArray}get version(){return"3.6.0"}addConfig(e){let i=e.key??e.name??"default";this._configs.set(i,e),this._eventDispatcher.dispatchEvent(j.configAdded,{data:{name:i,config:e}})}async addEffect(e,i,o=!0){U(e,n=>{this.getEffectDrawer(n)||this.effectDrawers.set(n,i)}),await this.refresh(o)}addEventListener(e,i){this._eventDispatcher.addEventListener(e,i)}async addInteractor(e,i,o=!0){this._initializers.interactors.set(e,i),await this.refresh(o)}async addMover(e,i,o=!0){this._initializers.movers.set(e,i),await this.refresh(o)}async addParticleUpdater(e,i,o=!0){this._initializers.updaters.set(e,i),await this.refresh(o)}async addPathGenerator(e,i,o=!0){this.getPathGenerator(e)||this.pathGenerators.set(e,i),await this.refresh(o)}async addPlugin(e,i=!0){this.getPlugin(e.id)||this.plugins.push(e),await this.refresh(i)}async addPreset(e,i,o=!1,n=!0){(o||!this.getPreset(e))&&this.presets.set(e,i),await this.refresh(n)}async addShape(e,i=!0){for(let o of e.validTypes)this.getShapeDrawer(o)||this.shapeDrawers.set(o,e);await this.refresh(i)}clearPlugins(e){this.updaters.delete(e),this.movers.delete(e),this.interactors.delete(e)}dispatchEvent(e,i){this._eventDispatcher.dispatchEvent(e,i)}dom(){return this.items}domItem(e){return this.item(e)}async getAvailablePlugins(e){let i=new Map;for(let o of this.plugins)o.needsPlugin(e.actualOptions)&&i.set(o.id,await o.getPlugin(e));return i}getEffectDrawer(e){return this.effectDrawers.get(e)}async getInteractors(e,i=!1){return Dn(e,this.interactors,this._initializers.interactors,i)}async getMovers(e,i=!1){return Dn(e,this.movers,this._initializers.movers,i)}getPathGenerator(e){return this.pathGenerators.get(e)}getPlugin(e){return this.plugins.find(i=>i.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,i=!1){return Dn(e,this.updaters,this._initializers.updaters,i)}init(){this._initialized||(this._initialized=!0)}item(e){let{items:i}=this,o=i[e];if(!o||o.destroyed){i.splice(e,1);return}return o}async load(e){let o=e.id??e.element?.id??`tsparticles${Math.floor(P()*1e4)}`,{index:n,url:s}=e,r=s?await Ja({fallback:e.options,url:s,index:n}):e.options,a=Y(r,n),{items:c}=this,l=c.findIndex(x=>x.id.description===o),f=0,u=new ji(this,o,a);if(l>=f){let x=this.item(l),m=1,v=0,y=x?m:v;x&&!x.destroyed&&x.destroy(!1),c.splice(l,y,u)}else c.push(u);let h=tc(o,e.element),p=ec(h);return u.canvas.loadCanvas(p),await u.start(),u}loadOptions(e,i){this.plugins.forEach(o=>o.loadOptions?.(e,i))}loadParticlesOptions(e,i,...o){let n=this.updaters.get(e);n&&n.forEach(s=>s.loadOptions?.(i,...o))}async refresh(e=!0){e&&await Promise.all(this.items.map(i=>i.refresh()))}removeEventListener(e,i){this._eventDispatcher.removeEventListener(e,i)}setOnClickHandler(e){let{items:i}=this;if(!i.length)throw new Error(`${W} can only set click handlers after calling tsParticles.load()`);i.forEach(o=>o.addClickHandler(e))}};var lt;(function(t){t[t.h=1]="h",t[t.s=2]="s",t[t.l=3]="l",t[t.a=5]="a"})(lt||(lt={}));var Yi=class{constructor(){this.key="hsl",this.stringPrefix="hsl"}handleColor(e){let i=e.value,o=i.hsl??e.value;if(o.h!==void 0&&o.s!==void 0&&o.l!==void 0)return Ve(o)}handleRangeColor(e){let i=e.value,o=i.hsl??e.value;if(o.h!==void 0&&o.l!==void 0)return Ve({h:g(o.h),l:g(o.l),s:g(o.s)})}parseString(e){if(!e.startsWith("hsl"))return;let i=/hsla?\(\s*(\d+)\s*[\s,]\s*(\d+)%\s*[\s,]\s*(\d+)%\s*([\s,]\s*(0|1|0?\.\d+|(\d{1,3})%)\s*)?\)/i,o=i.exec(e),n=4,s=1,r=10;return o?ms({a:o.length>n?Et(o[lt.a]):s,h:parseInt(o[lt.h],r),l:parseInt(o[lt.l],r),s:parseInt(o[lt.s],r)}):void 0}};var ft;(function(t){t[t.r=1]="r",t[t.g=2]="g",t[t.b=3]="b",t[t.a=5]="a"})(ft||(ft={}));var Xi=class{constructor(){this.key="rgb",this.stringPrefix="rgb"}handleColor(e){let i=e.value,o=i.rgb??e.value;if(o.r!==void 0)return o}handleRangeColor(e){let i=e.value,o=i.rgb??e.value;if(o.r!==void 0)return{r:g(o.r),g:g(o.g),b:g(o.b)}}parseString(e){if(!e.startsWith(this.stringPrefix))return;let i=/rgba?\(\s*(\d{1,3})\s*[\s,]\s*(\d{1,3})\s*[\s,]\s*(\d{1,3})\s*([\s,]\s*(0|1|0?\.\d+|(\d{1,3})%)\s*)?\)/i,o=i.exec(e),n=10;return o?{a:o.length>4?Et(o[ft.a]):1,b:parseInt(o[ft.b],n),g:parseInt(o[ft.g],n),r:parseInt(o[ft.r],n)}:void 0}};function Ls(){let t=new Xi,e=new Yi;Cn(t),Cn(e);let i=new Qi;return i.init(),i}var N=class{constructor(e){this.type=Se.external,this.container=e}};var Be=class{constructor(e){this.type=Se.particles,this.container=e}};var ee;(function(t){t.clockwise="clockwise",t.counterClockwise="counter-clockwise",t.random="random"})(ee||(ee={}));var Fs;(function(t){t.linear="linear",t.radial="radial",t.random="random"})(Fs||(Fs={}));var ke;(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"})(ke||(ke={}));var Zi=Ls();be()||(window.tsParticles=Zi);var Tn=.5,$e=0,xe=1,As=60,Bs=0,ic=.01;function qs(t){let e=t.initialPosition,{dx:i,dy:o}=L(e,t.position),n=Math.abs(i),s=Math.abs(o),{maxDistance:r}=t.retina,a=r.horizontal,c=r.vertical;if(!a&&!c)return;let l=(a&&n>=a)??!1,f=(c&&s>=c)??!1;if((l||f)&&!t.misplaced)t.misplaced=!!a&&n>a||!!c&&s>c,a&&(t.velocity.x=t.velocity.y*Tn-t.velocity.x),c&&(t.velocity.y=t.velocity.x*Tn-t.velocity.y);else if((!a||n<a)&&(!c||s<c)&&t.misplaced)t.misplaced=!1;else if(t.misplaced){let u=t.position,h=t.velocity;a&&(u.x<e.x&&h.x<$e||u.x>e.x&&h.x>$e)&&(h.x*=-P()),c&&(u.y<e.y&&h.y<$e||u.y>e.y&&h.y>$e)&&(h.y*=-P())}}function Vs(t,e,i,o,n,s){oc(t,s);let r=t.gravity,a=r?.enable&&r.inverse?-xe:xe;n&&i&&(t.velocity.x+=n*s.factor/(As*i)),r?.enable&&i&&(t.velocity.y+=a*(r.acceleration*s.factor)/(As*i));let c=t.moveDecay;t.velocity.multTo(c);let l=t.velocity.mult(i);r?.enable&&o>$e&&(!r.inverse&&l.y>=$e&&l.y>=o||r.inverse&&l.y<=$e&&l.y<=-o)&&(l.y=a*o,i&&(t.velocity.y=l.y/i));let f=t.options.zIndex,u=(xe-t.zIndexFactor)**f.velocityRate;l.multTo(u);let{position:h}=t;h.addTo(l),e.vibrate&&(h.x+=Math.sin(h.x*Math.cos(h.y)),h.y+=Math.cos(h.y*Math.sin(h.x)))}function Ns(t,e){let i=t.container;if(!t.spin)return;let o={x:t.spin.direction===ee.clockwise?Math.cos:Math.sin,y:t.spin.direction===ee.clockwise?Math.sin:Math.cos};t.position.x=t.spin.center.x+t.spin.radius*o.x(t.spin.angle),t.position.y=t.spin.center.y+t.spin.radius*o.y(t.spin.angle),t.spin.radius+=t.spin.acceleration;let n=Math.max(i.canvas.size.width,i.canvas.size.height),s=n*Tn;t.spin.radius>s?(t.spin.radius=s,t.spin.acceleration*=-xe):t.spin.radius<Bs&&(t.spin.radius=Bs,t.spin.acceleration*=-xe),t.spin.angle+=e*ic*(xe-t.spin.radius/n)}function oc(t,e){let i=t.options,o=i.move.path;if(!o.enable)return;if(t.lastPathTime<=t.pathDelay){t.lastPathTime+=e.value;return}let s=t.pathGenerator?.generate(t,e);s&&t.velocity.addTo(s),o.clamp&&(t.velocity.x=H(t.velocity.x,-xe,xe),t.velocity.y=H(t.velocity.y,-xe,xe)),t.lastPathTime-=t.pathDelay}function Hs(t){return t.slow.inRange?t.slow.factor:xe}function Us(t){let e=t.container,i=t.options,o=i.move.spin;if(!o.enable)return;let n=o.position??{x:50,y:50},s=.01,r={x:n.x*s*e.canvas.size.width,y:n.y*s*e.canvas.size.height},a=t.getPosition(),c=F(a,r),l=g(o.acceleration);t.retina.spinAcceleration=l*e.retina.pixelRatio;let f=0;t.spin={center:r,direction:t.velocity.x>=f?ee.clockwise:ee.counterClockwise,angle:t.velocity.angle,radius:c,acceleration:t.retina.spinAcceleration}}var nc=2,sc=1,rc=1,Ki=class{init(e){let i=e.options,o=i.move.gravity;e.gravity={enable:o.enable,acceleration:g(o.acceleration),inverse:o.inverse},Us(e)}isEnabled(e){return!e.destroyed&&e.options.move.enable}move(e,i){let o=e.options,n=o.move;if(!n.enable)return;let s=e.container,r=s.retina.pixelRatio;e.retina.moveSpeed??=g(n.speed)*r,e.retina.moveDrift??=g(e.options.move.drift)*r;let a=Hs(e),c=e.retina.moveSpeed*s.retina.reduceFactor,l=e.retina.moveDrift,f=Z(o.size.value)*r,u=n.size?e.getRadius()/f:sc,h=i.factor||rc,p=c*u*a*h/nc,x=e.retina.maxSpeed??s.retina.maxSpeed;n.spin.enable?Ns(e,p):Vs(e,n,p,x,l,i),qs(e)}};async function Ws(t,e=!0){await t.addMover("base",()=>Promise.resolve(new Ki),e)}var ac=Math.PI*2,cc=0,$s={x:0,y:0};function js(t){let{context:e,particle:i,radius:o}=t;i.circleRange||(i.circleRange={min:cc,max:ac});let n=i.circleRange;e.arc($s.x,$s.y,o,n.min,n.max,!1)}var lc=12,fc=360,Gs=0,Ji=class{constructor(){this.validTypes=["circle"]}draw(e){js(e)}getSidesCount(){return lc}particleInit(e,i){let o=i.shapeData,n=o?.angle??{max:fc,min:Gs};i.circleRange=Pe(n)?{min:fe(n.min),max:fe(n.max)}:{min:Gs,max:fe(n)}}};async function Qs(t,e=!0){await t.addShape(new Ji,e)}var eo=class{constructor(e){this.container=e}init(e){let i=Re(e.options.color,e.id,e.options.reduceDuplicates);i&&(e.color=$t(i,e.options.color.animation,this.container.retina.reduceFactor))}isEnabled(e){let{h:i,s:o,l:n}=e.options.color.animation,{color:s}=e;return!e.destroyed&&!e.spawning&&(s?.h.value!==void 0&&i.enable||s?.s.value!==void 0&&o.enable||s?.l.value!==void 0&&n.enable)}update(e,i){jt(e.color,i)}};async function Ys(t,e=!0){await t.addParticleUpdater("color",i=>Promise.resolve(new eo(i)),e)}var to=class{constructor(e){this.container=e}init(e){let i=e.options.opacity,o=1;e.opacity=Bt(i,o);let n=i.animation;n.enable&&(e.opacity.velocity=g(n.speed)/100*this.container.retina.reduceFactor,n.sync||(e.opacity.velocity*=P()))}isEnabled(e){return!e.destroyed&&!e.spawning&&!!e.opacity&&e.opacity.enable&&((e.opacity.maxLoops??0)<=0||(e.opacity.maxLoops??0)>0&&(e.opacity.loops??0)<(e.opacity.maxLoops??0))}reset(e){e.opacity&&(e.opacity.time=0,e.opacity.loops=0)}update(e,i){!this.isEnabled(e)||!e.opacity||it(e,e.opacity,!0,e.options.opacity.animation.destroy,i)}};async function Xs(t,e=!0){await t.addParticleUpdater("opacity",i=>Promise.resolve(new to(i)),e)}var io=0,ut=0;function Zs(t){if(t.outMode!==S.bounce&&t.outMode!==S.split||t.direction!==k.left&&t.direction!==k.right)return;t.bounds.right<ut&&t.direction===k.left?t.particle.position.x=t.size+t.offset.x:t.bounds.left>t.canvasSize.width&&t.direction===k.right&&(t.particle.position.x=t.canvasSize.width-t.size-t.offset.x);let e=t.particle.velocity.x,i=!1;if(t.direction===k.right&&t.bounds.right>=t.canvasSize.width&&e>io||t.direction===k.left&&t.bounds.left<=ut&&e<io){let n=g(t.particle.options.bounce.horizontal.value);t.particle.velocity.x*=-n,i=!0}if(!i)return;let o=t.offset.x+t.size;t.bounds.right>=t.canvasSize.width&&t.direction===k.right?t.particle.position.x=t.canvasSize.width-o:t.bounds.left<=ut&&t.direction===k.left&&(t.particle.position.x=o),t.outMode===S.split&&t.particle.destroy()}function Ks(t){if(t.outMode!==S.bounce&&t.outMode!==S.split||t.direction!==k.bottom&&t.direction!==k.top)return;t.bounds.bottom<ut&&t.direction===k.top?t.particle.position.y=t.size+t.offset.y:t.bounds.top>t.canvasSize.height&&t.direction===k.bottom&&(t.particle.position.y=t.canvasSize.height-t.size-t.offset.y);let e=t.particle.velocity.y,i=!1;if(t.direction===k.bottom&&t.bounds.bottom>=t.canvasSize.height&&e>io||t.direction===k.top&&t.bounds.top<=ut&&e<io){let n=g(t.particle.options.bounce.vertical.value);t.particle.velocity.y*=-n,i=!0}if(!i)return;let o=t.offset.y+t.size;t.bounds.bottom>=t.canvasSize.height&&t.direction===k.bottom?t.particle.position.y=t.canvasSize.height-o:t.bounds.top<=ut&&t.direction===k.top&&(t.particle.position.y=o),t.outMode===S.split&&t.particle.destroy()}var oo=class{constructor(e){this.container=e,this.modes=[S.bounce,S.split]}update(e,i,o,n){if(!this.modes.includes(n))return;let s=this.container,r=!1;for(let h of s.plugins.values())if(h.particleBounce!==void 0&&(r=h.particleBounce(e,o,i)),r)break;if(r)return;let a=e.getPosition(),c=e.offset,l=e.getRadius(),f=Ie(a,l),u=s.canvas.size;Zs({particle:e,outMode:n,direction:i,bounds:f,canvasSize:u,offset:c,size:l}),Ks({particle:e,outMode:n,direction:i,bounds:f,canvasSize:u,offset:c,size:l})}};var no=0,so=class{constructor(e){this.container=e,this.modes=[S.destroy]}update(e,i,o,n){if(!this.modes.includes(n))return;let s=this.container;switch(e.outType){case oe.normal:case oe.outside:if(Je(e.position,s.canvas.size,T.origin,e.getRadius(),i))return;break;case oe.inside:{let{dx:r,dy:a}=L(e.position,e.moveCenter),{x:c,y:l}=e.velocity;if(c<no&&r>e.moveCenter.radius||l<no&&a>e.moveCenter.radius||c>=no&&r<-e.moveCenter.radius||l>=no&&a<-e.moveCenter.radius)return;break}}s.particles.remove(e,e.group,!0)}};var ro=0,ao=class{constructor(e){this.container=e,this.modes=[S.none]}update(e,i,o,n){if(!this.modes.includes(n)||((e.options.move.distance.horizontal&&(i===k.left||i===k.right))??(e.options.move.distance.vertical&&(i===k.top||i===k.bottom))))return;let s=e.options.move.gravity,r=this.container,a=r.canvas.size,c=e.getRadius();if(s.enable){let l=e.position;(!s.inverse&&l.y>a.height+c&&i===k.bottom||s.inverse&&l.y<-c&&i===k.top)&&r.particles.remove(e)}else{if(e.velocity.y>ro&&e.position.y<=a.height+c||e.velocity.y<ro&&e.position.y>=-c||e.velocity.x>ro&&e.position.x<=a.width+c||e.velocity.x<ro&&e.position.x>=-c)return;Je(e.position,r.canvas.size,T.origin,c,i)||r.particles.remove(e)}}};var co=0,lo=0,fo=class{constructor(e){this.container=e,this.modes=[S.out]}update(e,i,o,n){if(!this.modes.includes(n))return;let s=this.container;switch(e.outType){case oe.inside:{let{x:r,y:a}=e.velocity,c=T.origin;c.length=e.moveCenter.radius,c.angle=e.velocity.angle+Math.PI,c.addTo(T.create(e.moveCenter));let{dx:l,dy:f}=L(e.position,c);if(r<=co&&l>=lo||a<=co&&f>=lo||r>=co&&l<=lo||a>=co&&f<=lo)return;e.position.x=Math.floor(G({min:0,max:s.canvas.size.width})),e.position.y=Math.floor(G({min:0,max:s.canvas.size.height}));let{dx:u,dy:h}=L(e.position,e.moveCenter);e.direction=Math.atan2(-h,-u),e.velocity.angle=e.direction;break}default:{if(Je(e.position,s.canvas.size,T.origin,e.getRadius(),i))return;switch(e.outType){case oe.outside:{e.position.x=Math.floor(G({min:-e.moveCenter.radius,max:e.moveCenter.radius}))+e.moveCenter.x,e.position.y=Math.floor(G({min:-e.moveCenter.radius,max:e.moveCenter.radius}))+e.moveCenter.y;let{dx:r,dy:a}=L(e.position,e.moveCenter);e.moveCenter.radius&&(e.direction=Math.atan2(a,r),e.velocity.angle=e.direction);break}case oe.normal:{let r=e.options.move.warp,a=s.canvas.size,c={bottom:a.height+e.getRadius()+e.offset.y,left:-e.getRadius()-e.offset.x,right:a.width+e.getRadius()+e.offset.x,top:-e.getRadius()-e.offset.y},l=e.getRadius(),f=Ie(e.position,l);i===k.right&&f.left>a.width+e.offset.x?(e.position.x=c.left,e.initialPosition.x=e.position.x,r||(e.position.y=P()*a.height,e.initialPosition.y=e.position.y)):i===k.left&&f.right<-e.offset.x&&(e.position.x=c.right,e.initialPosition.x=e.position.x,r||(e.position.y=P()*a.height,e.initialPosition.y=e.position.y)),i===k.bottom&&f.top>a.height+e.offset.y?(r||(e.position.x=P()*a.width,e.initialPosition.x=e.position.x),e.position.y=c.top,e.initialPosition.y=e.position.y):i===k.top&&f.bottom<-e.offset.y&&(r||(e.position.x=P()*a.width,e.initialPosition.x=e.position.x),e.position.y=c.bottom,e.initialPosition.y=e.position.y);break}}break}}}};var uc=(t,e)=>t.default===e||t.bottom===e||t.left===e||t.right===e||t.top===e,uo=class{constructor(e){this._addUpdaterIfMissing=(i,o,n)=>{let s=i.options.move.outModes;!this.updaters.has(o)&&uc(s,o)&&this.updaters.set(o,n(this.container))},this._updateOutMode=(i,o,n,s)=>{for(let r of this.updaters.values())r.update(i,s,o,n)},this.container=e,this.updaters=new Map}init(e){this._addUpdaterIfMissing(e,S.bounce,i=>new oo(i)),this._addUpdaterIfMissing(e,S.out,i=>new fo(i)),this._addUpdaterIfMissing(e,S.destroy,i=>new so(i)),this._addUpdaterIfMissing(e,S.none,i=>new ao(i))}isEnabled(e){return!e.destroyed&&!e.spawning}update(e,i){let o=e.options.move.outModes;this._updateOutMode(e,i,o.bottom??o.default,k.bottom),this._updateOutMode(e,i,o.left??o.default,k.left),this._updateOutMode(e,i,o.right??o.default,k.right),this._updateOutMode(e,i,o.top??o.default,k.top)}};async function Js(t,e=!0){await t.addParticleUpdater("outModes",i=>Promise.resolve(new uo(i)),e)}var je=0,ho=class{init(e){let i=e.container,o=e.options.size,n=o.animation;n.enable&&(e.size.velocity=(e.retina.sizeAnimationSpeed??i.retina.sizeAnimationSpeed)/100*i.retina.reduceFactor,n.sync||(e.size.velocity*=P()))}isEnabled(e){return!e.destroyed&&!e.spawning&&e.size.enable&&((e.size.maxLoops??je)<=je||(e.size.maxLoops??je)>je&&(e.size.loops??je)<(e.size.maxLoops??je))}reset(e){e.size.loops=je}update(e,i){this.isEnabled(e)&&it(e,e.size,!0,e.options.size.animation.destroy,i)}};async function er(t,e=!0){await t.addParticleUpdater("size",()=>Promise.resolve(new ho),e)}async function tr(t,e=!0){await Ws(t,!1),await Qs(t,!1),await Ys(t,!1),await Xs(t,!1),await Js(t,!1),await er(t,!1),await t.refresh(e)}async function ir(){Dt(ke.easeInQuad,t=>t**2),Dt(ke.easeOutQuad,t=>1-(1-t)**2),Dt(ke.easeInOutQuad,t=>t<.5?2*t**2:1-(-2*t+2)**2/2),await Promise.resolve()}function or(t,e){let{context:i,opacity:o}=t,n=.5,s=i.globalAlpha;if(!e)return;let r=e.width,a=r*n;i.globalAlpha=o,i.drawImage(e,-a,-a,r,r),i.globalAlpha=s}var En='"Twemoji Mozilla", Apple Color Emoji, "Segoe UI Emoji", "Noto Color Emoji", "EmojiOne Color"',nr=0,po=class{constructor(){this.validTypes=["emoji"],this._emojiShapeDict=new Map}destroy(){for(let[e,i]of this._emojiShapeDict)i instanceof ImageBitmap&&i?.close(),this._emojiShapeDict.delete(e)}draw(e){let i=e.particle.emojiDataKey;if(!i)return;let o=this._emojiShapeDict.get(i);o&&or(e,o)}async init(e){let i=e.actualOptions,{validTypes:o}=this;if(!o.find(r=>R(r,i.particles.shape.type)))return;let n=[wn(En)],s=o.map(r=>i.particles.shape.options[r]).find(r=>!!r);s&&U(s,r=>{r.font&&n.push(wn(r.font))}),await Promise.all(n)}particleDestroy(e){e.emojiDataKey=void 0}particleInit(e,i){let n=i.shapeData;if(!n?.value)return;let s=Y(n.value,i.randomIndexData);if(!s)return;let r=typeof s=="string"?{font:n.font??En,padding:n.padding??nr,value:s}:{font:En,padding:nr,...n,...s},a=r.font,c=r.value,l=`${c}_${a}`;if(this._emojiShapeDict.has(l)){i.emojiDataKey=l;return}let f=r.padding*2,u=Z(i.size.value),h=u+f,p=h*2,x;if(typeof OffscreenCanvas<"u"){let m=new OffscreenCanvas(p,p),v=m.getContext("2d");if(!v)return;v.font=`400 ${u*2}px ${a}`,v.textBaseline="middle",v.textAlign="center",v.fillText(c,h,h),x=m.transferToImageBitmap()}else{let m=document.createElement("canvas");m.width=p,m.height=p;let v=m.getContext("2d");if(!v)return;v.font=`400 ${u*2}px ${a}`,v.textBaseline="middle",v.textAlign="center",v.fillText(c,h,h),x=m}this._emojiShapeDict.set(l,x),i.emojiDataKey=l}};async function sr(t,e=!0){await t.addShape(new po,e)}var hc=1,dc=1,rr=0;function ar(t,e,i,o,n){let s=t.actualOptions.interactivity.modes.attract;if(!s)return;let r=t.particles.quadTree.query(o,n);for(let a of r){let{dx:c,dy:l,distance:f}=L(a.position,e),u=s.speed*s.factor,h=H(It(s.easing)(dc-f/i)*u,hc,s.maxSpeed),p=T.create(f?c/f*h:u,f?l/f*h:u);a.position.subFrom(p)}}function cr(t,e){t.attract||(t.attract={particles:[]});let{attract:i}=t;if(i.finish||(i.count||(i.count=0),i.count++,i.count===t.particles.count&&(i.finish=!0)),i.clicking){let o=t.interactivity.mouse.clickPosition,n=t.retina.attractModeDistance;if(!n||n<rr||!o)return;ar(t,o,n,new B(o.x,o.y,n),s=>e(s))}else i.clicking===!1&&(i.particles=[])}function lr(t,e){let i=t.interactivity.mouse.position,o=t.retina.attractModeDistance;!o||o<rr||!i||ar(t,i,o,new B(i.x,i.y,o),n=>e(n))}var mo=class{constructor(){this.distance=200,this.duration=.4,this.easing=ke.easeOutQuad,this.factor=1,this.maxSpeed=50,this.speed=1}load(e){d(e)||(e.distance!==void 0&&(this.distance=e.distance),e.duration!==void 0&&(this.duration=e.duration),e.easing!==void 0&&(this.easing=e.easing),e.factor!==void 0&&(this.factor=e.factor),e.maxSpeed!==void 0&&(this.maxSpeed=e.maxSpeed),e.speed!==void 0&&(this.speed=e.speed))}};var Rt="attract",xo=class extends N{constructor(e,i){super(i),this._engine=e,i.attract||(i.attract={particles:[]}),this.handleClickMode=o=>{let n=this.container.actualOptions,s=n.interactivity.modes.attract;if(!(!s||o!==Rt)){i.attract||(i.attract={particles:[]}),i.attract.clicking=!0,i.attract.count=0;for(let r of i.attract.particles)this.isEnabled(r)&&r.velocity.setTo(r.initialVelocity);i.attract.particles=[],i.attract.finish=!1,setTimeout(()=>{i.destroyed||(i.attract||(i.attract={particles:[]}),i.attract.clicking=!1)},s.duration*1e3)}}}clear(){}init(){let e=this.container,i=e.actualOptions.interactivity.modes.attract;i&&(e.retina.attractModeDistance=i.distance*e.retina.pixelRatio)}interact(){let e=this.container,i=e.actualOptions,o=e.interactivity.status===ae,n=i.interactivity.events,{enable:s,mode:r}=n.onHover,{enable:a,mode:c}=n.onClick;o&&s&&R(Rt,r)?lr(this.container,l=>this.isEnabled(l)):a&&R(Rt,c)&&cr(this.container,l=>this.isEnabled(l))}isEnabled(e){let i=this.container,o=i.actualOptions,n=i.interactivity.mouse,s=(e?.interactivity??o.interactivity).events;if((!n.position||!s.onHover.enable)&&(!n.clickPosition||!s.onClick.enable))return!1;let r=s.onHover.mode,a=s.onClick.mode;return R(Rt,r)||R(Rt,a)}loadModeOptions(e,...i){e.attract||(e.attract=new mo);for(let o of i)e.attract.load(o?.attract)}reset(){}};async function fr(t,e=!0){await t.addInteractor("externalAttract",i=>Promise.resolve(new xo(t,i)),e)}var pc=2,go=.5,mc=Math.PI*go,ur=2,hr=10,xc=0;function dr(t,e,i,o,n){let s=t.particles.quadTree.query(o,n);for(let r of s)o instanceof B?At(vt(r),{position:e,radius:i,mass:i**pc*mc,velocity:T.origin,factor:T.origin}):o instanceof Q&&hs(r,Ie(e,i))}function gc(t,e,i,o){let n=document.querySelectorAll(e);n.length&&n.forEach(s=>{let r=s,a=t.retina.pixelRatio,c={x:(r.offsetLeft+r.offsetWidth*go)*a,y:(r.offsetTop+r.offsetHeight*go)*a},l=r.offsetWidth*go*a,f=hr*a,u=i.type===we.circle?new B(c.x,c.y,l+f):new Q(r.offsetLeft*a-f,r.offsetTop*a-f,r.offsetWidth*a+f*ur,r.offsetHeight*a+f*ur);o(c,l,u)})}function pr(t,e,i,o){tt(i,e,(n,s)=>gc(t,n,s,(r,a,c)=>dr(t,r,a,c,o)))}function mr(t,e){let i=t.retina.pixelRatio,o=hr*i,n=t.interactivity.mouse.position,s=t.retina.bounceModeDistance;!s||s<xc||!n||dr(t,n,s,new B(n.x,n.y,s+o),e)}var yo=class{constructor(){this.distance=200}load(e){d(e)||e.distance!==void 0&&(this.distance=e.distance)}};var vo="bounce",bo=class extends N{constructor(e){super(e)}clear(){}init(){let e=this.container,i=e.actualOptions.interactivity.modes.bounce;i&&(e.retina.bounceModeDistance=i.distance*e.retina.pixelRatio)}interact(){let e=this.container,i=e.actualOptions,o=i.interactivity.events,n=e.interactivity.status===ae,s=o.onHover.enable,r=o.onHover.mode,a=o.onDiv;n&&s&&R(vo,r)?mr(this.container,c=>this.isEnabled(c)):pr(this.container,a,vo,c=>this.isEnabled(c))}isEnabled(e){let i=this.container,o=i.actualOptions,n=i.interactivity.mouse,s=(e?.interactivity??o.interactivity).events,r=s.onDiv;return!!n.position&&s.onHover.enable&&R(vo,s.onHover.mode)||et(vo,r)}loadModeOptions(e,...i){e.bounce||(e.bounce=new yo);for(let o of i)e.bounce.load(o?.bounce)}reset(){}};async function xr(t,e=!0){await t.addInteractor("externalBounce",i=>Promise.resolve(new bo(i)),e)}var ht=class{constructor(){this.distance=200,this.duration=.4,this.mix=!1}load(e){if(!d(e)){if(e.distance!==void 0&&(this.distance=e.distance),e.duration!==void 0&&(this.duration=e.duration),e.mix!==void 0&&(this.mix=e.mix),e.opacity!==void 0&&(this.opacity=e.opacity),e.color!==void 0){let i=X(this.color)?void 0:this.color;this.color=U(e.color,o=>I.create(i,o))}e.size!==void 0&&(this.size=e.size)}}};var wo=class extends ht{constructor(){super(),this.selectors=[]}load(e){super.load(e),!d(e)&&e.selectors!==void 0&&(this.selectors=e.selectors)}};var _o=class extends ht{load(e){super.load(e),!d(e)&&(this.divs=U(e.divs,i=>{let o=new wo;return o.load(i),o}))}};var ge;(function(t){t.color="color",t.opacity="opacity",t.size="size"})(ge||(ge={}));function Ln(t,e,i,o){if(e>=i){let n=t+(e-i)*o;return H(n,t,e)}else if(e<i){let n=t-(i-e)*o;return H(n,e,t)}}var Ge="bubble",Fn=0,yc=0,vc=2,gr=1,yr=1,bc=0,wc=0,An=.5,Bn=1,ko=class extends N{constructor(e){super(e),this._clickBubble=()=>{let i=this.container,o=i.actualOptions,n=i.interactivity.mouse.clickPosition,s=o.interactivity.modes.bubble;if(!s||!n)return;i.bubble||(i.bubble={});let r=i.retina.bubbleModeDistance;if(!r||r<Fn)return;let a=i.particles.quadTree.queryCircle(n,r,l=>this.isEnabled(l)),{bubble:c}=i;for(let l of a){if(!c.clicking)continue;l.bubble.inRange=!c.durationEnd;let f=l.getPosition(),u=F(f,n),h=(new Date().getTime()-(i.interactivity.mouse.clickTime??yc))/1e3;h>s.duration&&(c.durationEnd=!0),h>s.duration*vc&&(c.clicking=!1,c.durationEnd=!1);let p={bubbleObj:{optValue:i.retina.bubbleModeSize,value:l.bubble.radius},particlesObj:{optValue:Z(l.options.size.value)*i.retina.pixelRatio,value:l.size.value},type:ge.size};this._process(l,u,h,p);let x={bubbleObj:{optValue:s.opacity,value:l.bubble.opacity},particlesObj:{optValue:Z(l.options.opacity.value),value:l.opacity?.value??gr},type:ge.opacity};this._process(l,u,h,x),!c.durationEnd&&u<=r?this._hoverBubbleColor(l,u):delete l.bubble.color}},this._hoverBubble=()=>{let i=this.container,o=i.interactivity.mouse.position,n=i.retina.bubbleModeDistance;if(!n||n<Fn||!o)return;let s=i.particles.quadTree.queryCircle(o,n,r=>this.isEnabled(r));for(let r of s){r.bubble.inRange=!0;let a=r.getPosition(),c=F(a,o),l=yr-c/n;c<=n?l>=wc&&i.interactivity.status===ae&&(this._hoverBubbleSize(r,l),this._hoverBubbleOpacity(r,l),this._hoverBubbleColor(r,l)):this.reset(r),i.interactivity.status===yt&&this.reset(r)}},this._hoverBubbleColor=(i,o,n)=>{let s=this.container.actualOptions,r=n??s.interactivity.modes.bubble;if(r){if(!i.bubble.finalColor){let a=r.color;if(!a)return;let c=Y(a);i.bubble.finalColor=Re(c)}if(i.bubble.finalColor)if(r.mix){i.bubble.color=void 0;let a=i.getFillColor();i.bubble.color=a?Mn(bt(a,i.bubble.finalColor,yr-o,o)):i.bubble.finalColor}else i.bubble.color=i.bubble.finalColor}},this._hoverBubbleOpacity=(i,o,n)=>{let s=this.container,r=s.actualOptions,a=n?.opacity??r.interactivity.modes.bubble?.opacity;if(!a)return;let c=i.options.opacity.value,l=i.opacity?.value??gr,f=Ln(l,a,Z(c),o);f!==void 0&&(i.bubble.opacity=f)},this._hoverBubbleSize=(i,o,n)=>{let s=this.container,r=n?.size?n.size*s.retina.pixelRatio:s.retina.bubbleModeSize;if(r===void 0)return;let a=Z(i.options.size.value)*s.retina.pixelRatio,c=i.size.value,l=Ln(c,r,a,o);l!==void 0&&(i.bubble.radius=l)},this._process=(i,o,n,s)=>{let r=this.container,a=s.bubbleObj.optValue,c=r.actualOptions,l=c.interactivity.modes.bubble;if(!l||a===void 0)return;let f=l.duration,u=r.retina.bubbleModeDistance,h=s.particlesObj.optValue,p=s.bubbleObj.value,x=s.particlesObj.value??bc,m=s.type;if(!(!u||u<Fn||a===h))if(r.bubble||(r.bubble={}),r.bubble.durationEnd)p&&(m===ge.size&&delete i.bubble.radius,m===ge.opacity&&delete i.bubble.opacity);else if(o<=u){if((p??x)!==a){let y=x-n*(x-a)/f;m===ge.size&&(i.bubble.radius=y),m===ge.opacity&&(i.bubble.opacity=y)}}else m===ge.size&&delete i.bubble.radius,m===ge.opacity&&delete i.bubble.opacity},this._singleSelectorHover=(i,o,n)=>{let s=this.container,r=document.querySelectorAll(o),a=s.actualOptions.interactivity.modes.bubble;!a||!r.length||r.forEach(c=>{let l=c,f=s.retina.pixelRatio,u={x:(l.offsetLeft+l.offsetWidth*An)*f,y:(l.offsetTop+l.offsetHeight*An)*f},h=l.offsetWidth*An*f,p=n.type===we.circle?new B(u.x,u.y,h):new Q(l.offsetLeft*f,l.offsetTop*f,l.offsetWidth*f,l.offsetHeight*f),x=s.particles.quadTree.query(p,m=>this.isEnabled(m));for(let m of x){if(!p.contains(m.getPosition()))continue;m.bubble.inRange=!0;let v=a.divs,y=Ft(v,l);(!m.bubble.div||m.bubble.div!==l)&&(this.clear(m,i,!0),m.bubble.div=l),this._hoverBubbleSize(m,Bn,y),this._hoverBubbleOpacity(m,Bn,y),this._hoverBubbleColor(m,Bn,y)}})},e.bubble||(e.bubble={}),this.handleClickMode=i=>{i===Ge&&(e.bubble||(e.bubble={}),e.bubble.clicking=!0)}}clear(e,i,o){e.bubble.inRange&&!o||(delete e.bubble.div,delete e.bubble.opacity,delete e.bubble.radius,delete e.bubble.color)}init(){let e=this.container,i=e.actualOptions.interactivity.modes.bubble;i&&(e.retina.bubbleModeDistance=i.distance*e.retina.pixelRatio,i.size!==void 0&&(e.retina.bubbleModeSize=i.size*e.retina.pixelRatio))}interact(e){let i=this.container.actualOptions,o=i.interactivity.events,n=o.onHover,s=o.onClick,r=n.enable,a=n.mode,c=s.enable,l=s.mode,f=o.onDiv;r&&R(Ge,a)?this._hoverBubble():c&&R(Ge,l)?this._clickBubble():tt(Ge,f,(u,h)=>this._singleSelectorHover(e,u,h))}isEnabled(e){let i=this.container,o=i.actualOptions,n=i.interactivity.mouse,s=(e?.interactivity??o.interactivity).events,{onClick:r,onDiv:a,onHover:c}=s,l=et(Ge,a);return l||c.enable&&n.position||r.enable&&n.clickPosition?R(Ge,c.mode)||R(Ge,r.mode)||l:!1}loadModeOptions(e,...i){e.bubble||(e.bubble=new _o);for(let o of i)e.bubble.load(o?.bubble)}reset(e){e.bubble.inRange=!1}};async function vr(t,e=!0){await t.addInteractor("externalBubble",i=>Promise.resolve(new ko(i)),e)}var Co=class{constructor(){this.opacity=.5}load(e){d(e)||e.opacity!==void 0&&(this.opacity=e.opacity)}};var Mo=class{constructor(){this.distance=80,this.links=new Co,this.radius=60}load(e){d(e)||(e.distance!==void 0&&(this.distance=e.distance),this.links.load(e.links),e.radius!==void 0&&(this.radius=e.radius))}};var br=0,wr=1,_c=0;function kc(t,e,i,o){let n=Math.floor(i.getRadius()/e.getRadius()),s=e.getFillColor(),r=i.getFillColor();if(!s||!r)return;let a=e.getPosition(),c=i.getPosition(),l=bt(s,r,e.getRadius(),i.getRadius()),f=t.createLinearGradient(a.x,a.y,c.x,c.y);return f.addColorStop(br,Te(s,o)),f.addColorStop(H(n,br,wr),ie(l,o)),f.addColorStop(wr,Te(r,o)),f}function Cc(t,e,i,o,n){Ee(t,o,n),t.lineWidth=e,t.strokeStyle=i,t.stroke()}function Mc(t,e,i,o){let n=t.actualOptions,s=n.interactivity.modes.connect;if(s)return kc(e,i,o,s.links.opacity)}function _r(t,e,i){t.canvas.draw(o=>{let n=Mc(t,o,e,i);if(!n)return;let s=e.getPosition(),r=i.getPosition();Cc(o,e.retina.linksWidth??_c,n,s,r)})}var Pc="connect",kr=0,Po=class extends N{constructor(e){super(e)}clear(){}init(){let e=this.container,i=e.actualOptions.interactivity.modes.connect;i&&(e.retina.connectModeDistance=i.distance*e.retina.pixelRatio,e.retina.connectModeRadius=i.radius*e.retina.pixelRatio)}interact(){let e=this.container;if(e.actualOptions.interactivity.events.onHover.enable&&e.interactivity.status==="pointermove"){let o=e.interactivity.mouse.position,{connectModeDistance:n,connectModeRadius:s}=e.retina;if(!n||n<kr||!s||s<kr||!o)return;let r=Math.abs(s),a=e.particles.quadTree.queryCircle(o,r,c=>this.isEnabled(c));a.forEach((c,l)=>{let f=c.getPosition(),u=1;for(let h of a.slice(l+u)){let p=h.getPosition(),x=Math.abs(n),m=Math.abs(f.x-p.x),v=Math.abs(f.y-p.y);m<x&&v<x&&_r(e,c,h)}})}}isEnabled(e){let i=this.container,o=i.interactivity.mouse,n=(e?.interactivity??i.actualOptions.interactivity).events;return n.onHover.enable&&o.position?R(Pc,n.onHover.mode):!1}loadModeOptions(e,...i){e.connect||(e.connect=new Mo);for(let o of i)e.connect.load(o?.connect)}reset(){}};async function Cr(t,e=!0){await t.addInteractor("externalConnect",i=>Promise.resolve(new Po(i)),e)}var Oo=class{constructor(){this.blink=!1,this.consent=!1,this.opacity=1}load(e){d(e)||(e.blink!==void 0&&(this.blink=e.blink),e.color!==void 0&&(this.color=I.create(this.color,e.color)),e.consent!==void 0&&(this.consent=e.consent),e.opacity!==void 0&&(this.opacity=e.opacity))}};var Ro=class{constructor(){this.distance=100,this.links=new Oo}load(e){d(e)||(e.distance!==void 0&&(this.distance=e.distance),this.links.load(e.links))}};var Oc=0;function Rc(t,e,i,o,n,s){Ee(t,i,o),t.strokeStyle=ie(n,s),t.lineWidth=e,t.stroke()}function Mr(t,e,i,o,n){t.canvas.draw(s=>{let r=e.getPosition();Rc(s,e.retina.linksWidth??Oc,r,n,i,o)})}var zc="grab",Sc=0,Dc=0,zo=class extends N{constructor(e){super(e)}clear(){}init(){let e=this.container,i=e.actualOptions.interactivity.modes.grab;i&&(e.retina.grabModeDistance=i.distance*e.retina.pixelRatio)}interact(){let e=this.container,i=e.actualOptions,o=i.interactivity;if(!o.modes.grab||!o.events.onHover.enable||e.interactivity.status!==ae)return;let n=e.interactivity.mouse.position;if(!n)return;let s=e.retina.grabModeDistance;if(!s||s<Sc)return;let r=e.particles.quadTree.queryCircle(n,s,a=>this.isEnabled(a));for(let a of r){let c=a.getPosition(),l=F(c,n);if(l>s)continue;let f=o.modes.grab.links,u=f.opacity,h=u-l*u/s;if(h<=Dc)continue;let p=f.color??a.options.links?.color;if(!e.particles.grabLineColor&&p){let m=o.modes.grab.links;e.particles.grabLineColor=Wt(p,m.blink,m.consent)}let x=wt(a,void 0,e.particles.grabLineColor);x&&Mr(e,a,x,h,n)}}isEnabled(e){let i=this.container,o=i.interactivity.mouse,n=(e?.interactivity??i.actualOptions.interactivity).events;return n.onHover.enable&&!!o.position&&R(zc,n.onHover.mode)}loadModeOptions(e,...i){e.grab||(e.grab=new Ro);for(let o of i)e.grab.load(o?.grab)}reset(){}};async function Pr(t,e=!0){await t.addInteractor("externalGrab",i=>Promise.resolve(new zo(i)),e)}var Ic="pause",So=class extends N{constructor(e){super(e),this.handleClickMode=i=>{if(i!==Ic)return;let o=this.container;o.animationStatus?o.pause():o.play()}}clear(){}init(){}interact(){}isEnabled(){return!0}reset(){}};async function Or(t,e=!0){await t.addInteractor("externalPause",i=>Promise.resolve(new So(i)),e)}var Do=class{constructor(){this.default=!0,this.groups=[],this.quantity=4}load(e){if(d(e))return;e.default!==void 0&&(this.default=e.default),e.groups!==void 0&&(this.groups=e.groups.map(o=>o)),this.groups.length||(this.default=!0);let i=e.quantity;i!==void 0&&(this.quantity=_(i))}};var Tc="push",Ec=0,Io=class extends N{constructor(e){super(e),this.handleClickMode=i=>{if(i!==Tc)return;let o=this.container,n=o.actualOptions,s=n.interactivity.modes.push;if(!s)return;let r=g(s.quantity);if(r<=Ec)return;let a=Ke([void 0,...s.groups]),c=a!==void 0?o.actualOptions.particles.groups[a]:void 0;o.particles.push(r,o.interactivity.mouse,c,a)}}clear(){}init(){}interact(){}isEnabled(){return!0}loadModeOptions(e,...i){e.push||(e.push=new Do);for(let o of i)e.push.load(o?.push)}reset(){}};async function Rr(t,e=!0){await t.addInteractor("externalPush",i=>Promise.resolve(new Io(i)),e)}var To=class{constructor(){this.quantity=2}load(e){if(d(e))return;let i=e.quantity;i!==void 0&&(this.quantity=_(i))}};var Lc="remove",Eo=class extends N{constructor(e){super(e),this.handleClickMode=i=>{let o=this.container,n=o.actualOptions;if(!n.interactivity.modes.remove||i!==Lc)return;let s=g(n.interactivity.modes.remove.quantity);o.particles.removeQuantity(s)}}clear(){}init(){}interact(){}isEnabled(){return!0}loadModeOptions(e,...i){e.remove||(e.remove=new To);for(let o of i)e.remove.load(o?.remove)}reset(){}};async function zr(t,e=!0){await t.addInteractor("externalRemove",i=>Promise.resolve(new Eo(i)),e)}var dt=class{constructor(){this.distance=200,this.duration=.4,this.factor=100,this.speed=1,this.maxSpeed=50,this.easing=ke.easeOutQuad}load(e){d(e)||(e.distance!==void 0&&(this.distance=e.distance),e.duration!==void 0&&(this.duration=e.duration),e.easing!==void 0&&(this.easing=e.easing),e.factor!==void 0&&(this.factor=e.factor),e.speed!==void 0&&(this.speed=e.speed),e.maxSpeed!==void 0&&(this.maxSpeed=e.maxSpeed))}};var Lo=class extends dt{constructor(){super(),this.selectors=[]}load(e){super.load(e),!d(e)&&e.selectors!==void 0&&(this.selectors=e.selectors)}};var Fo=class extends dt{load(e){super.load(e),!d(e)&&(this.divs=U(e.divs,i=>{let o=new Lo;return o.load(i),o}))}};var Qe="repulse",Fc=0,Ac=6,Bc=3,qc=2,Vc=0,Nc=0,Hc=1,qn=.5,Ao=class extends N{constructor(e,i){super(i),this._clickRepulse=()=>{let o=this.container,n=o.actualOptions.interactivity.modes.repulse;if(!n)return;let s=o.repulse??{particles:[]};if(s.finish||(s.count||(s.count=0),s.count++,s.count===o.particles.count&&(s.finish=!0)),s.clicking){let r=o.retina.repulseModeDistance;if(!r||r<Fc)return;let a=Math.pow(r/Ac,Bc),c=o.interactivity.mouse.clickPosition;if(c===void 0)return;let l=new B(c.x,c.y,a),f=o.particles.quadTree.query(l,u=>this.isEnabled(u));for(let u of f){let{dx:h,dy:p,distance:x}=L(c,u.position),m=x**qc,v=n.speed,y=-a*v/m;if(m<=a){s.particles.push(u);let w=T.create(h,p);w.length=y,u.velocity.setTo(w)}}}else if(s.clicking===!1){for(let r of s.particles)r.velocity.setTo(r.initialVelocity);s.particles=[]}},this._hoverRepulse=()=>{let o=this.container,n=o.interactivity.mouse.position,s=o.retina.repulseModeDistance;!s||s<Vc||!n||this._processRepulse(n,s,new B(n.x,n.y,s))},this._processRepulse=(o,n,s,r)=>{let a=this.container,c=a.particles.quadTree.query(s,v=>this.isEnabled(v)),l=a.actualOptions.interactivity.modes.repulse;if(!l)return;let{easing:f,speed:u,factor:h,maxSpeed:p}=l,x=It(f),m=(r?.speed??u)*h;for(let v of c){let{dx:y,dy:w,distance:C}=L(v.position,o),b=H(x(Hc-C/n)*m,Nc,p),O=T.create(C?y/C*b:m,C?w/C*b:m);v.position.addTo(O)}},this._singleSelectorRepulse=(o,n)=>{let s=this.container,r=s.actualOptions.interactivity.modes.repulse;if(!r)return;let a=document.querySelectorAll(o);a.length&&a.forEach(c=>{let l=c,f=s.retina.pixelRatio,u={x:(l.offsetLeft+l.offsetWidth*qn)*f,y:(l.offsetTop+l.offsetHeight*qn)*f},h=l.offsetWidth*qn*f,p=n.type===we.circle?new B(u.x,u.y,h):new Q(l.offsetLeft*f,l.offsetTop*f,l.offsetWidth*f,l.offsetHeight*f),x=r.divs,m=Ft(x,l);this._processRepulse(u,h,p,m)})},this._engine=e,i.repulse||(i.repulse={particles:[]}),this.handleClickMode=o=>{let n=this.container.actualOptions,s=n.interactivity.modes.repulse;if(!s||o!==Qe)return;i.repulse||(i.repulse={particles:[]});let r=i.repulse;r.clicking=!0,r.count=0;for(let a of i.repulse.particles)this.isEnabled(a)&&a.velocity.setTo(a.initialVelocity);r.particles=[],r.finish=!1,setTimeout(()=>{i.destroyed||(r.clicking=!1)},s.duration*1e3)}}clear(){}init(){let e=this.container,i=e.actualOptions.interactivity.modes.repulse;i&&(e.retina.repulseModeDistance=i.distance*e.retina.pixelRatio)}interact(){let e=this.container,i=e.actualOptions,o=e.interactivity.status===ae,n=i.interactivity.events,s=n.onHover,r=s.enable,a=s.mode,c=n.onClick,l=c.enable,f=c.mode,u=n.onDiv;o&&r&&R(Qe,a)?this._hoverRepulse():l&&R(Qe,f)?this._clickRepulse():tt(Qe,u,(h,p)=>this._singleSelectorRepulse(h,p))}isEnabled(e){let i=this.container,o=i.actualOptions,n=i.interactivity.mouse,s=(e?.interactivity??o.interactivity).events,r=s.onDiv,a=s.onHover,c=s.onClick,l=et(Qe,r);if(!(l||a.enable&&n.position||c.enable&&n.clickPosition))return!1;let f=a.mode,u=c.mode;return R(Qe,f)||R(Qe,u)||l}loadModeOptions(e,...i){e.repulse||(e.repulse=new Fo);for(let o of i)e.repulse.load(o?.repulse)}reset(){}};async function Sr(t,e=!0){await t.addInteractor("externalRepulse",i=>Promise.resolve(new Ao(t,i)),e)}var Bo=class{constructor(){this.factor=3,this.radius=200}load(e){d(e)||(e.factor!==void 0&&(this.factor=e.factor),e.radius!==void 0&&(this.radius=e.radius))}};var Uc="slow",Wc=0,qo=class extends N{constructor(e){super(e)}clear(e,i,o){e.slow.inRange&&!o||(e.slow.factor=1)}init(){let e=this.container,i=e.actualOptions.interactivity.modes.slow;i&&(e.retina.slowModeRadius=i.radius*e.retina.pixelRatio)}interact(){}isEnabled(e){let i=this.container,o=i.interactivity.mouse,n=(e?.interactivity??i.actualOptions.interactivity).events;return n.onHover.enable&&!!o.position&&R(Uc,n.onHover.mode)}loadModeOptions(e,...i){e.slow||(e.slow=new Bo);for(let o of i)e.slow.load(o?.slow)}reset(e){e.slow.inRange=!1;let i=this.container,o=i.actualOptions,n=i.interactivity.mouse.position,s=i.retina.slowModeRadius,r=o.interactivity.modes.slow;if(!r||!s||s<Wc||!n)return;let a=e.getPosition(),c=F(n,a),l=c/s,f=r.factor,{slow:u}=e;c>s||(u.inRange=!0,u.factor=l/f)}};async function Dr(t,e=!0){await t.addInteractor("externalSlow",i=>Promise.resolve(new qo(i)),e)}var $c=0,jc=1,Gc=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d.]+%?\))|currentcolor/gi;function Qc(t,e,i){let{svgData:o}=t;if(!o)return"";let n=Te(e,i);if(o.includes("fill"))return o.replace(Gc,()=>n);let s=o.indexOf(">");return`${o.substring($c,s)} fill="${n}"${o.substring(s)}`}async function pt(t){return new Promise(e=>{t.loading=!0;let i=new Image;t.element=i,i.addEventListener("load",()=>{t.loading=!1,e()}),i.addEventListener("error",()=>{t.element=void 0,t.error=!0,t.loading=!1,ue().error(`${W} loading image: ${t.source}`),e()}),i.src=t.source})}async function Ir(t){if(t.type!=="svg"){await pt(t);return}t.loading=!0;let e=await fetch(t.source);e.ok?t.svgData=await e.text():(ue().error(`${W} Image not found`),t.error=!0),t.loading=!1}function Tr(t,e,i,o){let n=Qc(t,i,o.opacity?.value??jc),s={color:i,gif:e.gif,data:{...t,svgData:n},loaded:!1,ratio:e.width/e.height,replaceColor:e.replaceColor,source:e.src};return new Promise(r=>{let a=new Blob([n],{type:"image/svg+xml"}),c=URL||window.URL||window.webkitURL||window,l=c.createObjectURL(a),f=new Image;f.addEventListener("load",()=>{s.loaded=!0,s.element=f,r(s),c.revokeObjectURL(l)});let u=async()=>{c.revokeObjectURL(l);let h={...t,error:!1,loading:!0};await pt(h),s.loaded=!0,s.element=h.element,r(s)};f.addEventListener("error",()=>void u()),f.src=l})}var Vo=[0,4,2,1],Vn=[8,8,4,2];var No=class{constructor(e){this.pos=0,this.data=new Uint8ClampedArray(e)}getString(e){let i=this.data.slice(this.pos,this.pos+e);return this.pos+=i.length,i.reduce((o,n)=>o+String.fromCharCode(n),"")}nextByte(){return this.data[this.pos++]}nextTwoBytes(){return this.pos+=2,this.data[this.pos-2]+(this.data[this.pos-1]<<8)}readSubBlocks(){let e="",i=0,o=0,n=0;do{i=this.data[this.pos++];for(let s=i;--s>=o;e+=String.fromCharCode(this.data[this.pos++]));}while(i!==n);return e}readSubBlocksBin(){let e=this.data[this.pos],i=0,o=0,n=1;for(let r=0;e!==o;r+=e+n,e=this.data[this.pos+r])i+=e;let s=new Uint8Array(i);e=this.data[this.pos++];for(let r=0;e!==o;e=this.data[this.pos++])for(let a=e;--a>=o;s[r++]=this.data[this.pos++]);return s}skipSubBlocks(){for(let e=1,i=0;this.data[this.pos]!==i;this.pos+=this.data[this.pos]+e);this.pos++}};var de;(function(t){t[t.Replace=0]="Replace",t[t.Combine=1]="Combine",t[t.RestoreBackground=2]="RestoreBackground",t[t.RestorePrevious=3]="RestorePrevious",t[t.UndefinedA=4]="UndefinedA",t[t.UndefinedB=5]="UndefinedB",t[t.UndefinedC=6]="UndefinedC",t[t.UndefinedD=7]="UndefinedD"})(de||(de={}));var Ce;(function(t){t[t.Extension=33]="Extension",t[t.ApplicationExtension=255]="ApplicationExtension",t[t.GraphicsControlExtension=249]="GraphicsControlExtension",t[t.PlainTextExtension=1]="PlainTextExtension",t[t.CommentExtension=254]="CommentExtension",t[t.Image=44]="Image",t[t.EndOfFile=59]="EndOfFile"})(Ce||(Ce={}));var ne={x:0,y:0},Yc=0,Er=.5,Xc=0,Lr=0,Nn=0;function Fr(t,e){let i=[];for(let o=0;o<e;o++)i.push({r:t.data[t.pos],g:t.data[t.pos+1],b:t.data[t.pos+2]}),t.pos+=3;return i}function Zc(t,e,i,o){switch(t.nextByte()){case Ce.GraphicsControlExtension:{let n=e.frames[i(!1)];t.pos++;let s=t.nextByte();n.GCreserved=(s&224)>>>5,n.disposalMethod=(s&28)>>>2,n.userInputDelayFlag=(s&2)===2;let r=(s&1)===1;n.delayTime=t.nextTwoBytes()*10;let a=t.nextByte();r&&o(a),t.pos++;break}case Ce.ApplicationExtension:{t.pos++;let n={identifier:t.getString(8),authenticationCode:t.getString(3),data:t.readSubBlocksBin()};e.applicationExtensions.push(n);break}case Ce.CommentExtension:{e.comments.push([i(!1),t.readSubBlocks()]);break}case Ce.PlainTextExtension:{if(e.globalColorTable.length===0)throw new EvalError("plain text extension without global color table");t.pos++,e.frames[i(!1)].plainTextData={left:t.nextTwoBytes(),top:t.nextTwoBytes(),width:t.nextTwoBytes(),height:t.nextTwoBytes(),charSize:{width:t.nextTwoBytes(),height:t.nextTwoBytes()},foregroundColor:t.nextByte(),backgroundColor:t.nextByte(),text:t.readSubBlocks()};break}default:t.skipSubBlocks();break}}async function Kc(t,e,i,o,n,s){let r=e.frames[o(!0)];r.left=t.nextTwoBytes(),r.top=t.nextTwoBytes(),r.width=t.nextTwoBytes(),r.height=t.nextTwoBytes();let a=t.nextByte(),c=(a&128)===128,l=(a&64)===64;r.sortFlag=(a&32)===32,r.reserved=(a&24)>>>3;let f=1<<(a&7)+1;c&&(r.localColorTable=Fr(t,f));let u=y=>{let{r:w,g:C,b}=(c?r.localColorTable:e.globalColorTable)[y];return y!==n(null)?{r:w,g:C,b,a:255}:{r:w,g:C,b,a:i?~~((w+C+b)/3):0}},h=(()=>{try{return new ImageData(r.width,r.height,{colorSpace:"srgb"})}catch(y){if(y instanceof DOMException&&y.name==="IndexSizeError")return null;throw y}})();if(h==null)throw new EvalError("GIF frame size is to large");let p=t.nextByte(),x=t.readSubBlocksBin(),m=1<<p,v=(y,w)=>{let C=y>>>3,b=y&7;return(x[C]+(x[C+1]<<8)+(x[C+2]<<16)&(1<<w)-1<<b)>>>b};if(l){for(let y=0,w=p+1,C=0,b=[[0]],O=0;O<4;O++){if(Vo[O]<r.height){let M=0,te=0,z=!1;for(;!z;){let q=y;if(y=v(C,w),C+=w+1,y===m){w=p+1,b.length=m+2;for(let se=0;se<b.length;se++)b[se]=se<m?[se]:[]}else{y>=b.length?b.push(b[q].concat(b[q][0])):q!==m&&b.push(b[q].concat(b[y][0]));for(let se of b[y]){let{r:re,g:zt,b:$n,a:jn}=u(se);h.data.set([re,zt,$n,jn],Vo[O]*r.width+Vn[O]*te+M%(r.width*4)),M+=4}b.length===1<<w&&w<12&&w++}M===r.width*4*(te+1)&&(te++,Vo[O]+Vn[O]*te>=r.height&&(z=!0))}}s?.(t.pos/(t.data.length-1),o(!1)+1,h,{x:r.left,y:r.top},{width:e.width,height:e.height})}r.image=h,r.bitmap=await createImageBitmap(h)}else{let y=0,w=p+1,C=0,b=-4,O=!1,M=[[0]];for(;!O;){let te=y;if(y=v(C,w),C+=w,y===m){w=p+1,M.length=m+2;for(let z=0;z<M.length;z++)M[z]=z<m?[z]:[]}else{if(y===m+1){O=!0;break}y>=M.length?M.push(M[te].concat(M[te][0])):te!==m&&M.push(M[te].concat(M[y][0]));for(let z of M[y]){let{r:q,g:se,b:re,a:zt}=u(z);h.data.set([q,se,re,zt],b+=4)}M.length>=1<<w&&w<12&&w++}}r.image=h,r.bitmap=await createImageBitmap(h),s?.((t.pos+1)/t.data.length,o(!1)+1,r.image,{x:r.left,y:r.top},{width:e.width,height:e.height})}}async function Jc(t,e,i,o,n,s){switch(t.nextByte()){case Ce.EndOfFile:return!0;case Ce.Image:await Kc(t,e,i,o,n,s);break;case Ce.Extension:Zc(t,e,o,n);break;default:throw new EvalError("undefined block found")}return!1}function el(t){for(let e of t.applicationExtensions)if(e.identifier+e.authenticationCode==="NETSCAPE2.0")return e.data[1]+(e.data[2]<<8);return NaN}async function tl(t,e,i){i||(i=!1);let o=await fetch(t);if(!o.ok&&o.status===404)throw new EvalError("file not found");let n=await o.arrayBuffer(),s={width:0,height:0,totalTime:0,colorRes:0,pixelAspectRatio:0,frames:[],sortFlag:!1,globalColorTable:[],backgroundImage:new ImageData(1,1,{colorSpace:"srgb"}),comments:[],applicationExtensions:[]},r=new No(new Uint8ClampedArray(n));if(r.getString(6)!=="GIF89a")throw new Error("not a supported GIF file");s.width=r.nextTwoBytes(),s.height=r.nextTwoBytes();let a=r.nextByte(),c=(a&128)===128;s.colorRes=(a&112)>>>4,s.sortFlag=(a&8)===8;let l=1<<(a&7)+1,f=r.nextByte();s.pixelAspectRatio=r.nextByte(),s.pixelAspectRatio!==0&&(s.pixelAspectRatio=(s.pixelAspectRatio+15)/64),c&&(s.globalColorTable=Fr(r,l));let u=(()=>{try{return new ImageData(s.width,s.height,{colorSpace:"srgb"})}catch(b){if(b instanceof DOMException&&b.name==="IndexSizeError")return null;throw b}})();if(u==null)throw new Error("GIF frame size is to large");let{r:h,g:p,b:x}=s.globalColorTable[f];u.data.set(c?[h,p,x,255]:[0,0,0,0]);for(let b=4;b<u.data.length;b*=2)u.data.copyWithin(b,0,b);s.backgroundImage=u;let m=-1,v=!0,y=-1,w=b=>(b&&(v=!0),m),C=b=>(b!=null&&(y=b),y);try{do v&&(s.frames.push({left:0,top:0,width:0,height:0,disposalMethod:de.Replace,image:new ImageData(1,1,{colorSpace:"srgb"}),plainTextData:null,userInputDelayFlag:!1,delayTime:0,sortFlag:!1,localColorTable:[],reserved:0,GCreserved:0}),m++,y=-1,v=!1);while(!await Jc(r,s,i,w,C,e));s.frames.length--;for(let b of s.frames){if(b.userInputDelayFlag&&b.delayTime===0){s.totalTime=1/0;break}s.totalTime+=b.delayTime}return s}catch(b){throw b instanceof EvalError?new Error(`error while parsing frame ${m} "${b.message}"`):b}}function Ar(t){let{context:e,radius:i,particle:o,delta:n}=t,s=o.image;if(!s?.gifData||!s.gif)return;let r=new OffscreenCanvas(s.gifData.width,s.gifData.height),a=r.getContext("2d");if(!a)throw new Error("could not create offscreen canvas context");a.imageSmoothingQuality="low",a.imageSmoothingEnabled=!1,a.clearRect(ne.x,ne.y,r.width,r.height),o.gifLoopCount===void 0&&(o.gifLoopCount=s.gifLoopCount??Nn);let c=o.gifFrame??Yc,l={x:-s.gifData.width*Er,y:-s.gifData.height*Er},f=s.gifData.frames[c];if(o.gifTime===void 0&&(o.gifTime=Xc),!!f.bitmap){switch(e.scale(i/s.gifData.width,i/s.gifData.height),f.disposalMethod){case de.UndefinedA:case de.UndefinedB:case de.UndefinedC:case de.UndefinedD:case de.Replace:a.drawImage(f.bitmap,f.left,f.top),e.drawImage(r,l.x,l.y),a.clearRect(ne.x,ne.y,r.width,r.height);break;case de.Combine:a.drawImage(f.bitmap,f.left,f.top),e.drawImage(r,l.x,l.y);break;case de.RestoreBackground:a.drawImage(f.bitmap,f.left,f.top),e.drawImage(r,l.x,l.y),a.clearRect(ne.x,ne.y,r.width,r.height),s.gifData.globalColorTable.length?a.putImageData(s.gifData.backgroundImage,l.x,l.y):a.putImageData(s.gifData.frames[Lr].image,l.x+f.left,l.y+f.top);break;case de.RestorePrevious:{let u=a.getImageData(ne.x,ne.y,r.width,r.height);a.drawImage(f.bitmap,f.left,f.top),e.drawImage(r,l.x,l.y),a.clearRect(ne.x,ne.y,r.width,r.height),a.putImageData(u,ne.x,ne.y)}break}if(o.gifTime+=n.value,o.gifTime>f.delayTime){if(o.gifTime-=f.delayTime,++c>=s.gifData.frames.length){if(--o.gifLoopCount<=Nn)return;c=Lr,a.clearRect(ne.x,ne.y,r.width,r.height)}o.gifFrame=c}e.scale(s.gifData.width/i,s.gifData.height/i)}}async function Br(t){if(t.type!=="gif"){await pt(t);return}t.loading=!0;try{t.gifData=await tl(t.source),t.gifLoopCount=el(t.gifData)??Nn,t.gifLoopCount||(t.gifLoopCount=1/0)}catch{t.error=!0}t.loading=!1}var il=2,ol=1,nl=12,sl=1,Ho=class{constructor(e){this.validTypes=["image","images"],this.loadImageShape=async i=>{if(!this._engine.loadImage)throw new Error(`${W} image shape not initialized`);await this._engine.loadImage({gif:i.gif,name:i.name,replaceColor:i.replaceColor??!1,src:i.src})},this._engine=e}addImage(e){this._engine.images||(this._engine.images=[]),this._engine.images.push(e)}draw(e){let{context:i,radius:o,particle:n,opacity:s}=e,r=n.image,a=r?.element;if(r){if(i.globalAlpha=s,r.gif&&r.gifData)Ar(e);else if(a){let c=r.ratio,l={x:-o,y:-o},f=o*il;i.drawImage(a,l.x,l.y,f,f/c)}i.globalAlpha=ol}}getSidesCount(){return nl}async init(e){let i=e.actualOptions;if(!(!i.preload||!this._engine.loadImage))for(let o of i.preload)await this._engine.loadImage(o)}loadShape(e){if(e.shape!=="image"&&e.shape!=="images")return;this._engine.images||(this._engine.images=[]);let i=e.shapeData;if(!i)return;this._engine.images.find(n=>n.name===i.name||n.source===i.src)||this.loadImageShape(i).then(()=>{this.loadShape(e)})}particleInit(e,i){if(i.shape!=="image"&&i.shape!=="images")return;this._engine.images||(this._engine.images=[]);let o=this._engine.images,n=i.shapeData;if(!n)return;let s=i.getFillColor(),r=o.find(c=>c.name===n.name||c.source===n.src);if(!r)return;let a=n.replaceColor??r.replaceColor;if(r.loading){setTimeout(()=>{this.particleInit(e,i)});return}(async()=>{let c;r.svgData&&s?c=await Tr(r,n,s,i):c={color:s,data:r,element:r.element,gif:r.gif,gifData:r.gifData,gifLoopCount:r.gifLoopCount,loaded:!0,ratio:n.width&&n.height?n.width/n.height:r.ratio??sl,replaceColor:a,source:n.src},c.ratio||(c.ratio=1);let l=n.fill??i.shapeFill,f=n.close??i.shapeClose,u={image:c,fill:l,close:f};i.image=u.image,i.shapeFill=u.fill,i.shapeClose=u.close})()}};var Uo=class{constructor(){this.src="",this.gif=!1}load(e){d(e)||(e.gif!==void 0&&(this.gif=e.gif),e.height!==void 0&&(this.height=e.height),e.name!==void 0&&(this.name=e.name),e.replaceColor!==void 0&&(this.replaceColor=e.replaceColor),e.src!==void 0&&(this.src=e.src),e.width!==void 0&&(this.width=e.width))}};var Wo=class{constructor(e){this.id="imagePreloader",this._engine=e}async getPlugin(){return await Promise.resolve(),{}}loadOptions(e,i){if(!i?.preload)return;e.preload||(e.preload=[]);let o=e.preload;for(let n of i.preload){let s=o.find(r=>r.name===n.name||r.src===n.src);if(s)s.load(n);else{let r=new Uo;r.load(n),o.push(r)}}}needsPlugin(){return!0}};var rl=3;function al(t){t.loadImage||(t.loadImage=async e=>{if(!e.name&&!e.src)throw new Error(`${W} no image source provided`);if(t.images||(t.images=[]),!t.images.find(i=>i.name===e.name||i.source===e.src))try{let i={gif:e.gif??!1,name:e.name??e.src,source:e.src,type:e.src.substring(e.src.length-rl),error:!1,loading:!0,replaceColor:e.replaceColor,ratio:e.width&&e.height?e.width/e.height:void 0};t.images.push(i);let o;e.gif?o=Br:o=e.replaceColor?Ir:pt,await o(i)}catch{throw new Error(`${W} ${e.name??e.src} not found`)}})}async function qr(t,e=!0){al(t);let i=new Wo(t);await t.addPlugin(i,e),await t.addShape(new Ho(t),e)}var $o=class extends J{constructor(){super(),this.sync=!1}load(e){d(e)||(super.load(e),e.sync!==void 0&&(this.sync=e.sync))}};var jo=class extends J{constructor(){super(),this.sync=!1}load(e){d(e)||(super.load(e),e.sync!==void 0&&(this.sync=e.sync))}};var Go=class{constructor(){this.count=0,this.delay=new $o,this.duration=new jo}load(e){d(e)||(e.count!==void 0&&(this.count=e.count),this.delay.load(e.delay),this.duration.load(e.duration))}};var mt=0,cl=-1,Vr=0,Nr=0;function Hr(t,e,i){if(!t.life)return;let o=t.life,n=!1;if(t.spawning)if(o.delayTime+=e.value,o.delayTime>=t.life.delay)n=!0,t.spawning=!1,o.delayTime=mt,o.time=mt;else return;if(o.duration===cl||t.spawning||(n?o.time=mt:o.time+=e.value,o.time<o.duration))return;if(o.time=mt,t.life.count>Vr&&t.life.count--,t.life.count===Vr){t.destroy();return}let s=_(Nr,i.width),r=_(Nr,i.width);t.position.x=G(s),t.position.y=G(r),t.spawning=!0,o.delayTime=mt,o.time=mt,t.reset();let a=t.options.life;a&&(o.delay=g(a.delay.value)*1e3,o.duration=g(a.duration.value)*1e3)}var Ye=0,Ur=1,Wr=-1,Qo=class{constructor(e){this.container=e}init(e){let i=this.container,o=e.options,n=o.life;n&&(e.life={delay:i.retina.reduceFactor?g(n.delay.value)*(n.delay.sync?Ur:P())/i.retina.reduceFactor*1e3:Ye,delayTime:Ye,duration:i.retina.reduceFactor?g(n.duration.value)*(n.duration.sync?Ur:P())/i.retina.reduceFactor*1e3:Ye,time:Ye,count:n.count},e.life.duration<=Ye&&(e.life.duration=Wr),e.life.count<=Ye&&(e.life.count=Wr),e.life&&(e.spawning=e.life.delay>Ye))}isEnabled(e){return!e.destroyed}loadOptions(e,...i){e.life||(e.life=new Go);for(let o of i)e.life.load(o?.life)}update(e,i){!this.isEnabled(e)||!e.life||Hr(e,i,this.container.canvas.size)}};async function $r(t,e=!0){await t.addParticleUpdater("life",async i=>Promise.resolve(new Qo(i)),e)}function jr(t){let{context:e,particle:i,radius:o}=t,n=i.shapeData,s=0;e.moveTo(-o,s),e.lineTo(o,s),e.lineCap=n?.cap??"butt"}var ll=1,Yo=class{constructor(){this.validTypes=["line"]}draw(e){jr(e)}getSidesCount(){return ll}};async function Gr(t,e=!0){await t.addShape(new Yo,e)}var Qr=.5,Xo=class{init(){}isEnabled(e){return!be()&&!e.destroyed&&e.container.actualOptions.interactivity.events.onHover.parallax.enable}move(e){let i=e.container,o=i.actualOptions,n=o.interactivity.events.onHover.parallax;if(be()||!n.enable)return;let s=n.force,r=i.interactivity.mouse.position;if(!r)return;let a=i.canvas.size,c={x:a.width*Qr,y:a.height*Qr},l=n.smooth,f=e.getRadius()/s,u={x:(r.x-c.x)*f,y:(r.y-c.y)*f},{offset:h}=e;h.x+=(u.x-h.x)/l,h.y+=(u.y-h.y)/l}};async function Yr(t,e=!0){await t.addMover("parallax",()=>Promise.resolve(new Xo),e)}var Xr=1e3,fl=1,Zo=class extends Be{constructor(e){super(e)}clear(){}init(){}interact(e){let i=this.container;e.attractDistance===void 0&&(e.attractDistance=g(e.options.move.attract.distance)*i.retina.pixelRatio);let o=e.attractDistance,n=e.getPosition(),s=i.particles.quadTree.queryCircle(n,o);for(let r of s){if(e===r||!r.options.move.attract.enable||r.destroyed||r.spawning)continue;let a=r.getPosition(),{dx:c,dy:l}=L(n,a),f=e.options.move.attract.rotate,u=c/(f.x*Xr),h=l/(f.y*Xr),p=r.size.value/e.size.value,x=fl/p;e.velocity.x-=u*p,e.velocity.y-=h*p,r.velocity.x+=u*x,r.velocity.y+=h*x}}isEnabled(e){return e.options.move.attract.enable}reset(){}};async function Zr(t,e=!0){await t.addInteractor("particlesAttract",i=>Promise.resolve(new Zo(i)),e)}var ul=.5,hl=10,dl=0;function Kr(t,e,i,o,n,s){let r=H(t.options.collisions.absorb.speed*n.factor/hl,dl,o);t.size.value+=r*ul,i.size.value-=r,o<=s&&(i.size.value=0,i.destroy())}function Jr(t,e,i,o){let n=t.getRadius(),s=e.getRadius();n===void 0&&s!==void 0?t.destroy():n!==void 0&&s===void 0?e.destroy():n!==void 0&&s!==void 0&&(n>=s?Kr(t,n,e,s,i,o):Kr(e,s,t,n,i,o))}var ea=t=>{t.collisionMaxSpeed===void 0&&(t.collisionMaxSpeed=g(t.options.collisions.maxSpeed)),t.velocity.length>t.collisionMaxSpeed&&(t.velocity.length=t.collisionMaxSpeed)};function Ko(t,e){At(vt(t),vt(e)),ea(t),ea(e)}function ta(t,e){!t.unbreakable&&!e.unbreakable&&Ko(t,e),t.getRadius()===void 0&&e.getRadius()!==void 0?t.destroy():t.getRadius()!==void 0&&e.getRadius()===void 0?e.destroy():t.getRadius()!==void 0&&e.getRadius()!==void 0&&(t.getRadius()>=e.getRadius()?e:t).destroy()}function ia(t,e,i,o){switch(t.options.collisions.mode){case Ae.absorb:{Jr(t,e,i,o);break}case Ae.bounce:{Ko(t,e);break}case Ae.destroy:{ta(t,e);break}}}var pl=2,Jo=class extends Be{constructor(e){super(e)}clear(){}init(){}interact(e,i){if(e.destroyed||e.spawning)return;let o=this.container,n=e.getPosition(),s=e.getRadius(),r=o.particles.quadTree.queryCircle(n,s*pl);for(let a of r){if(e===a||!a.options.collisions.enable||e.options.collisions.mode!==a.options.collisions.mode||a.destroyed||a.spawning)continue;let c=a.getPosition(),l=a.getRadius();if(Math.abs(Math.round(n.z)-Math.round(c.z))>s+l)continue;let f=F(n,c),u=s+l;f>u||ia(e,a,i,o.retina.pixelRatio)}}isEnabled(e){return e.options.collisions.enable}reset(){}};async function oa(t,e=!0){await t.addInteractor("particlesCollisions",i=>Promise.resolve(new Jo(i)),e)}var Hn=2,en=class extends B{constructor(e,i,o,n){super(e,i,o),this.canvasSize=n,this.canvasSize={...n}}contains(e){let{width:i,height:o}=this.canvasSize,{x:n,y:s}=e;return super.contains(e)||super.contains({x:n-i,y:s})||super.contains({x:n-i,y:s-o})||super.contains({x:n,y:s-o})}intersects(e){if(super.intersects(e))return!0;let i=e,o=e,n={x:e.position.x-this.canvasSize.width,y:e.position.y-this.canvasSize.height};if(o.radius!==void 0){let s=new B(n.x,n.y,o.radius*Hn);return super.intersects(s)}else if(i.size!==void 0){let s=new Q(n.x,n.y,i.size.width*Hn,i.size.height*Hn);return super.intersects(s)}return!1}};var tn=class{constructor(){this.blur=5,this.color=new I,this.color.value="#000",this.enable=!1}load(e){d(e)||(e.blur!==void 0&&(this.blur=e.blur),this.color=I.create(this.color,e.color),e.enable!==void 0&&(this.enable=e.enable))}};var on=class{constructor(){this.enable=!1,this.frequency=1}load(e){d(e)||(e.color!==void 0&&(this.color=I.create(this.color,e.color)),e.enable!==void 0&&(this.enable=e.enable),e.frequency!==void 0&&(this.frequency=e.frequency),e.opacity!==void 0&&(this.opacity=e.opacity))}};var nn=class{constructor(){this.blink=!1,this.color=new I,this.color.value="#fff",this.consent=!1,this.distance=100,this.enable=!1,this.frequency=1,this.opacity=1,this.shadow=new tn,this.triangles=new on,this.width=1,this.warp=!1}load(e){d(e)||(e.id!==void 0&&(this.id=e.id),e.blink!==void 0&&(this.blink=e.blink),this.color=I.create(this.color,e.color),e.consent!==void 0&&(this.consent=e.consent),e.distance!==void 0&&(this.distance=e.distance),e.enable!==void 0&&(this.enable=e.enable),e.frequency!==void 0&&(this.frequency=e.frequency),e.opacity!==void 0&&(this.opacity=e.opacity),this.shadow.load(e.shadow),this.triangles.load(e.triangles),e.width!==void 0&&(this.width=e.width),e.warp!==void 0&&(this.warp=e.warp))}};var na=2,ml=1,sn={x:0,y:0},xl=0;function gl(t,e,i,o,n){let{dx:s,dy:r,distance:a}=L(t,e);if(!n||a<=i)return a;let c={x:Math.abs(s),y:Math.abs(r)},l={x:Math.min(c.x,o.width-c.x),y:Math.min(c.y,o.height-c.y)};return Math.sqrt(l.x**na+l.y**na)}var rn=class extends Be{constructor(e){super(e),this._setColor=i=>{if(!i.options.links)return;let o=this.linkContainer,n=i.options.links,s=n.id===void 0?o.particles.linksColor:o.particles.linksColors.get(n.id);if(s)return;let r=n.color;s=Wt(r,n.blink,n.consent),n.id===void 0?o.particles.linksColor=s:o.particles.linksColors.set(n.id,s)},this.linkContainer=e}clear(){}init(){this.linkContainer.particles.linksColor=void 0,this.linkContainer.particles.linksColors=new Map}interact(e){if(!e.options.links)return;e.links=[];let i=e.getPosition(),o=this.container,n=o.canvas.size;if(i.x<sn.x||i.y<sn.y||i.x>n.width||i.y>n.height)return;let s=e.options.links,r=s.opacity,a=e.retina.linksDistance??xl,c=s.warp,l;c?l=new en(i.x,i.y,a,n):l=new B(i.x,i.y,a);let f=o.particles.quadTree.query(l);for(let u of f){let h=u.options.links;if(e===u||!h?.enable||s.id!==h.id||u.spawning||u.destroyed||!u.links||e.links.some(v=>v.destination===u)||u.links.some(v=>v.destination===e))continue;let p=u.getPosition();if(p.x<sn.x||p.y<sn.y||p.x>n.width||p.y>n.height)continue;let x=gl(i,p,a,n,c&&h.warp);if(x>a)continue;let m=(ml-x/a)*r;this._setColor(e),e.links.push({destination:u,opacity:m})}}isEnabled(e){return!!e.options.links?.enable}loadParticlesOptions(e,...i){e.links||(e.links=new nn);for(let o of i)e.links.load(o?.links)}reset(){}};async function sa(t,e=!0){await t.addInteractor("particlesLinks",async i=>Promise.resolve(new rn(i)),e)}function yl(t,e,i,o){t.beginPath(),t.moveTo(e.x,e.y),t.lineTo(i.x,i.y),t.lineTo(o.x,o.y),t.closePath()}function ra(t){let e=!1,{begin:i,end:o,maxDistance:n,context:s,canvasSize:r,width:a,backgroundMask:c,colorLine:l,opacity:f,links:u}=t;if(F(i,o)<=n)Ee(s,i,o),e=!0;else if(u.warp){let p,x,m={x:o.x-r.width,y:o.y},v=L(i,m);if(v.distance<=n){let y=i.y-v.dy/v.dx*i.x;p={x:0,y},x={x:r.width,y}}else{let y={x:o.x,y:o.y-r.height},w=L(i,y);if(w.distance<=n){let b=-(i.y-w.dy/w.dx*i.x)/(w.dy/w.dx);p={x:b,y:0},x={x:b,y:r.height}}else{let C={x:o.x-r.width,y:o.y-r.height},b=L(i,C);if(b.distance<=n){let O=i.y-b.dy/b.dx*i.x;p={x:-O/(b.dy/b.dx),y:O},x={x:p.x+r.width,y:p.y+r.height}}}}p&&x&&(Ee(s,i,p),Ee(s,o,x),e=!0)}if(!e)return;s.lineWidth=a,c.enable&&(s.globalCompositeOperation=c.composite),s.strokeStyle=ie(l,f);let{shadow:h}=u;if(h.enable){let p=K(h.color);p&&(s.shadowBlur=h.blur,s.shadowColor=ie(p))}s.stroke()}function aa(t){let{context:e,pos1:i,pos2:o,pos3:n,backgroundMask:s,colorTriangle:r,opacityTriangle:a}=t;yl(e,i,o,n),s.enable&&(e.globalCompositeOperation=s.composite),e.fillStyle=ie(r,a),e.fill()}function vl(t){return t.sort((e,i)=>e-i),t.join("_")}function Un(t,e){let i=vl(t.map(n=>n.id)),o=e.get(i);return o===void 0&&(o=P(),e.set(i,o)),o}var ca=0,Wn=0,la=0,bl=.5,wl=1,an=class{constructor(e){this.container=e,this._drawLinkLine=(i,o)=>{let n=i.options.links;if(!n?.enable)return;let s=this.container,r=s.actualOptions,a=o.destination,c=i.getPosition(),l=a.getPosition(),f=o.opacity;s.canvas.draw(u=>{let h,p=i.options.twinkle?.lines;if(p?.enable){let y=p.frequency,w=K(p.color);P()<y&&w&&(h=w,f=g(p.opacity))}if(!h){let y=n.id!==void 0?s.particles.linksColors.get(n.id):s.particles.linksColor;h=wt(i,a,y)}if(!h)return;let x=i.retina.linksWidth??Wn,m=i.retina.linksDistance??la,{backgroundMask:v}=r;ra({context:u,width:x,begin:c,end:l,maxDistance:m,canvasSize:s.canvas.size,links:n,backgroundMask:v,colorLine:h,opacity:f})})},this._drawLinkTriangle=(i,o,n)=>{let s=i.options.links;if(!s?.enable)return;let r=s.triangles;if(!r.enable)return;let a=this.container,c=a.actualOptions,l=o.destination,f=n.destination,u=r.opacity??(o.opacity+n.opacity)*bl;u<=ca||a.canvas.draw(h=>{let p=i.getPosition(),x=l.getPosition(),m=f.getPosition(),v=i.retina.linksDistance??la;if(F(p,x)>v||F(m,x)>v||F(m,p)>v)return;let y=K(r.color);if(!y){let w=s.id!==void 0?a.particles.linksColors.get(s.id):a.particles.linksColor;y=wt(i,l,w)}y&&aa({context:h,pos1:p,pos2:x,pos3:m,backgroundMask:c.backgroundMask,colorTriangle:y,opacityTriangle:u})})},this._drawTriangles=(i,o,n,s)=>{let r=n.destination;if(!(i.links?.triangles.enable&&r.options.links?.triangles.enable))return;let a=r.links?.filter(c=>{let l=this._getLinkFrequency(r,c.destination);return r.options.links&&l<=r.options.links.frequency&&s.findIndex(u=>u.destination===c.destination)>=0});if(a?.length)for(let c of a){let l=c.destination;this._getTriangleFrequency(o,r,l)>i.links.triangles.frequency||this._drawLinkTriangle(o,n,c)}},this._getLinkFrequency=(i,o)=>Un([i,o],this._freqs.links),this._getTriangleFrequency=(i,o,n)=>Un([i,o,n],this._freqs.triangles),this._freqs={links:new Map,triangles:new Map}}drawParticle(e,i){let{links:o,options:n}=i;if(!o?.length)return;let s=o.filter(r=>n.links&&(n.links.frequency>=wl||this._getLinkFrequency(i,r.destination)<=n.links.frequency));for(let r of s)this._drawTriangles(n,i,r,s),r.opacity>ca&&(i.retina.linksWidth??Wn)>Wn&&this._drawLinkLine(i,r)}async init(){this._freqs.links=new Map,this._freqs.triangles=new Map,await Promise.resolve()}particleCreated(e){if(e.links=[],!e.options.links)return;let i=this.container.retina.pixelRatio,{retina:o}=e,{distance:n,width:s}=e.options.links;o.linksDistance=n*i,o.linksWidth=s*i}particleDestroyed(e){e.links=[]}};var cn=class{constructor(){this.id="links"}getPlugin(e){return Promise.resolve(new an(e))}loadOptions(){}needsPlugin(){return!0}};async function fa(t,e=!0){let i=new cn;await t.addPlugin(i,e)}async function ua(t,e=!0){await sa(t,e),await fa(t,e)}var _l=180,ln={x:0,y:0},kl=2;function ha(t,e,i){let{context:o}=t,n=i.count.numerator*i.count.denominator,s=i.count.numerator/i.count.denominator,r=_l*(s-kl)/s,a=Math.PI-fe(r);if(o){o.beginPath(),o.translate(e.x,e.y),o.moveTo(ln.x,ln.y);for(let c=0;c<n;c++)o.lineTo(i.length,ln.y),o.translate(i.length,ln.y),o.rotate(a)}}var Cl=5,xt=class{draw(e){let{particle:i,radius:o}=e,n=this.getCenter(i,o),s=this.getSidesData(i,o);ha(e,n,s)}getSidesCount(e){let i=e.shapeData;return Math.round(g(i?.sides??Cl))}};var da=3.5,pa=2.66,Ml=3,fn=class extends xt{constructor(){super(...arguments),this.validTypes=["polygon"]}getCenter(e,i){return{x:-i/(e.sides/da),y:-i/(pa/da)}}getSidesData(e,i){let o=e.sides;return{count:{denominator:1,numerator:o},length:i*pa/(o/Ml)}}};var Pl=1.66,Ol=3,Rl=2,un=class extends xt{constructor(){super(...arguments),this.validTypes=["triangle"]}getCenter(e,i){return{x:-i,y:i/Pl}}getSidesCount(){return Ol}getSidesData(e,i){let o=i*Rl;return{count:{denominator:2,numerator:3},length:o}}};async function zl(t,e=!0){await t.addShape(new fn,e)}async function Sl(t,e=!0){await t.addShape(new un,e)}async function ma(t,e=!0){await zl(t,e),await Sl(t,e)}var hn=class{constructor(){this.enable=!1,this.speed=0,this.decay=0,this.sync=!1}load(e){d(e)||(e.enable!==void 0&&(this.enable=e.enable),e.speed!==void 0&&(this.speed=_(e.speed)),e.decay!==void 0&&(this.decay=_(e.decay)),e.sync!==void 0&&(this.sync=e.sync))}};var dn=class extends J{constructor(){super(),this.animation=new hn,this.direction=ee.clockwise,this.path=!1,this.value=0}load(e){d(e)||(super.load(e),e.direction!==void 0&&(this.direction=e.direction),this.animation.load(e.animation),e.path!==void 0&&(this.path=e.path))}};var xa=2,Dl=Math.PI*xa,Il=1,Tl=360,pn=class{constructor(e){this.container=e}init(e){let i=e.options.rotate;if(!i)return;e.rotate={enable:i.animation.enable,value:fe(g(i.value)),min:0,max:Dl},e.pathRotation=i.path;let o=i.direction;switch(o===ee.random&&(o=Math.floor(P()*xa)>0?ee.counterClockwise:ee.clockwise),o){case ee.counterClockwise:case"counterClockwise":e.rotate.status=A.decreasing;break;case ee.clockwise:e.rotate.status=A.increasing;break}let n=i.animation;n.enable&&(e.rotate.decay=Il-g(n.decay),e.rotate.velocity=g(n.speed)/Tl*this.container.retina.reduceFactor,n.sync||(e.rotate.velocity*=P())),e.rotation=e.rotate.value}isEnabled(e){let i=e.options.rotate;return i?!e.destroyed&&!e.spawning&&(!!i.value||i.animation.enable||i.path):!1}loadOptions(e,...i){e.rotate||(e.rotate=new dn);for(let o of i)e.rotate.load(o?.rotate)}update(e,i){this.isEnabled(e)&&(e.isRotating=!!e.rotate,e.rotate&&(it(e,e.rotate,!1,me.none,i),e.rotation=e.rotate.value))}};async function ga(t,e=!0){await t.addParticleUpdater("rotate",i=>Promise.resolve(new pn(i)),e)}var El=Math.sqrt(2),Ll=2;function ya(t){let{context:e,radius:i}=t,o=i/El,n=o*Ll;e.rect(-o,-o,n,n)}var Fl=4,mn=class{constructor(){this.validTypes=["edge","square"]}draw(e){ya(e)}getSidesCount(){return Fl}};async function va(t,e=!0){await t.addShape(new mn,e)}var gt={x:0,y:0};function ba(t){let{context:e,particle:i,radius:o}=t,n=i.sides,s=i.starInset??2;e.moveTo(gt.x,gt.y-o);for(let r=0;r<n;r++)e.rotate(Math.PI/n),e.lineTo(gt.x,gt.y-o*s),e.rotate(Math.PI/n),e.lineTo(gt.x,gt.y-o)}var Al=2,Bl=5,xn=class{constructor(){this.validTypes=["star"]}draw(e){ba(e)}getSidesCount(e){let i=e.shapeData;return Math.round(g(i?.sides??Bl))}particleInit(e,i){let o=i.shapeData;i.starInset=g(o?.inset??Al)}};async function wa(t,e=!0){await t.addShape(new xn,e)}var ql=1,gn=class{constructor(e){this.container=e}init(e){let i=this.container,o=e.options,n=Y(o.stroke,e.id,o.reduceDuplicates);e.strokeWidth=g(n.width)*i.retina.pixelRatio,e.strokeOpacity=g(n.opacity??ql),e.strokeAnimation=n.color?.animation;let s=Re(n.color)??e.getFillColor();s&&(e.strokeColor=$t(s,e.strokeAnimation,i.retina.reduceFactor))}isEnabled(e){let i=e.strokeAnimation,{strokeColor:o}=e;return!e.destroyed&&!e.spawning&&!!i&&(o?.h.value!==void 0&&o.h.enable||o?.s.value!==void 0&&o.s.enable||o?.l.value!==void 0&&o.l.enable)}update(e,i){this.isEnabled(e)&&jt(e.strokeColor,i)}};async function _a(t,e=!0){await t.addParticleUpdater("strokeColor",i=>Promise.resolve(new gn(i)),e)}async function ka(t,e=!0){await Yr(t,!1),await fr(t,!1),await xr(t,!1),await vr(t,!1),await Cr(t,!1),await Pr(t,!1),await Or(t,!1),await Rr(t,!1),await zr(t,!1),await Sr(t,!1),await Dr(t,!1),await Zr(t,!1),await oa(t,!1),await ua(t,!1),await ir(),await sr(t,!1),await qr(t,!1),await Gr(t,!1),await ma(t,!1),await va(t,!1),await wa(t,!1),await $r(t,!1),await ga(t,!1),await _a(t,!1),await tr(t,e)}var Ca=!1,Ma=Symbol(),Vl=t=>(t.autoPlay||=!0,t.fullScreen||={enable:!0},t),Nl=(()=>{let t=0;return()=>`np-${t++}`})(),Hl=t=>{let e=async({clear:i,data:o,getDomNodes:n,flags:{goingBack:s,preview:r}})=>{if(r)return;Ca||(await ka(Zi),Ca=!0);let{element:a}=n(!0);i(()=>{let u=o().instance;u&&(u.destroy(),o({}))});let c=o().options===t;if(c&&o().instance||c&&s)return;let l=Nl();(async()=>{let u=await Zi.load({id:l,element:a,options:Vl(t)});a.style.setProperty("position","absolute"),a.style.setProperty("z-index","2"),o({instance:u,options:t})})()};return e.callOnlyLatest=e.skipClearOnGoingBack=!0,e.id=Ma,e.key="particles",e},Ul=()=>{let t=({data:e,remove:i,flags:{preview:o}})=>{if(o)return;let n=e().instance;n&&n.destroy(),i()};return t.callOnlyLatest=!0,t.id=Ma,t.key="particles",t};export{Ul as hideParticles,Hl as showParticles};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|