@tsparticles/preset-bubbles 4.0.0-beta.0 → 4.0.0-beta.15
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/browser/browser.js +5 -0
- package/browser/bundle.js +4 -0
- package/browser/index.js +3 -5
- package/browser/index.lazy.js +15 -0
- package/cjs/browser.js +5 -0
- package/cjs/bundle.js +4 -0
- package/cjs/index.js +3 -5
- package/cjs/index.lazy.js +15 -0
- package/esm/browser.js +5 -0
- package/esm/bundle.js +4 -0
- package/esm/index.js +3 -5
- package/esm/index.lazy.js +15 -0
- package/package.json +12 -5
- package/report.html +4949 -94
- package/tsparticles.preset.bubbles.bundle.js +6613 -967
- package/tsparticles.preset.bubbles.bundle.min.js +1 -2
- package/tsparticles.preset.bubbles.js +77 -362
- package/tsparticles.preset.bubbles.min.js +1 -2
- package/types/browser.d.ts +1 -0
- package/types/index.lazy.d.ts +2 -0
- package/172.min.js +0 -1
- package/188.min.js +0 -1
- package/245.min.js +0 -1
- package/304.min.js +0 -1
- package/326.min.js +0 -1
- package/358.min.js +0 -1
- package/361.min.js +0 -1
- package/392.min.js +0 -1
- package/404.min.js +0 -1
- package/467.min.js +0 -1
- package/48.min.js +0 -1
- package/592.min.js +0 -1
- package/619.min.js +0 -1
- package/63.min.js +0 -1
- package/632.min.js +0 -1
- package/659.min.js +0 -1
- package/700.min.js +0 -1
- package/714.min.js +0 -1
- package/719.min.js +0 -1
- package/72.min.js +0 -1
- package/74.min.js +0 -1
- package/750.min.js +0 -1
- package/778.min.js +0 -1
- package/824.min.js +0 -1
- package/857.min.js +0 -1
- package/86.min.js +0 -1
- package/892.min.js +0 -1
- package/925.min.js +0 -1
- package/957.min.js +0 -1
- package/990.min.js +0 -1
- package/dist_browser_options_js.js +0 -30
- package/node_modules_pnpm_tsparticles_basic_4_0_0-beta_11_node_modules_tsparticles_basic_browser_index_js.js +0 -30
- package/node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11-09a57e.js +0 -100
- package/node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11-74f6c1.js +0 -50
- package/node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11-7e9977.js +0 -30
- package/node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11-7f13fa.js +0 -30
- package/node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11-b6bb50.js +0 -30
- package/node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11-cf6e0a.js +0 -30
- package/node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11-daf8cd.js +0 -100
- package/node_modules_pnpm_tsparticles_plugin-hex-color_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_1-5e0ff2.js +0 -30
- package/node_modules_pnpm_tsparticles_plugin-hex-color_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_1-b0d0ee.js +0 -30
- package/node_modules_pnpm_tsparticles_plugin-hsl-color_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_1-060416.js +0 -30
- package/node_modules_pnpm_tsparticles_plugin-hsl-color_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_1-a6d106.js +0 -30
- package/node_modules_pnpm_tsparticles_plugin-move_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11_nod-3a792b.js +0 -30
- package/node_modules_pnpm_tsparticles_plugin-move_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11_nod-e1bc4b.js +0 -30
- package/node_modules_pnpm_tsparticles_plugin-rgb-color_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_1-d9836d.js +0 -30
- package/node_modules_pnpm_tsparticles_plugin-rgb-color_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_1-f22022.js +0 -30
- package/node_modules_pnpm_tsparticles_shape-circle_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11_no-7552ae.js +0 -40
- package/node_modules_pnpm_tsparticles_shape-circle_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11_no-b06fc7.js +0 -30
- package/node_modules_pnpm_tsparticles_updater-opacity_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11-8f9e09.js +0 -30
- package/node_modules_pnpm_tsparticles_updater-opacity_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11-da77ce.js +0 -30
- package/node_modules_pnpm_tsparticles_updater-out-modes_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_-df7144.js +0 -30
- package/node_modules_pnpm_tsparticles_updater-paint_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11_n-589482.js +0 -30
- package/node_modules_pnpm_tsparticles_updater-paint_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11_n-b1f330.js +0 -30
- package/node_modules_pnpm_tsparticles_updater-size_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11_no-a47b81.js +0 -30
- package/node_modules_pnpm_tsparticles_updater-size_4_0_0-beta_11__tsparticles_engine_4_0_0-beta_11_no-d2508a.js +0 -30
- package/vendors-node_modules_pnpm_tsparticles_engine_4_0_0-beta_11_node_modules_tsparticles_engine_br-ca098e.js +0 -100
- package/vendors-node_modules_pnpm_tsparticles_plugin-emitters_4_0_0-beta_11__tsparticles_engine_4_0_0-6e84d5.js +0 -30
- package/vendors-node_modules_pnpm_tsparticles_plugin-move_4_0_0-beta_11__tsparticles_engine_4_0_0-bet-5f2b78.js +0 -40
- package/vendors-node_modules_pnpm_tsparticles_updater-out-modes_4_0_0-beta_11__tsparticles_engine_4_0-09fa1a.js +0 -80
|
@@ -1,2 +1 @@
|
|
|
1
|
-
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var i=t();for(var a in i)("object"==typeof exports?exports:e)[a]=i[a]}}(this,()=>(()=>{"use strict";var e,t,i,a={8660(e,t,i){i.d(t,{$G:()=>D,$_:()=>O,$v:()=>B,$x:()=>z,BF:()=>ep,DN:()=>j,D_:()=>eo,Dv:()=>er,Eo:()=>Y,Fl:()=>ev,Ie:()=>A,JC:()=>C,K3:()=>ei,L1:()=>T,LD:()=>es,MX:()=>l,NF:()=>n,Nu:()=>eu,Nx:()=>H,PZ:()=>X,Pf:()=>em,R1:()=>v,RF:()=>m,RV:()=>Z,Rq:()=>R,U0:()=>I,Ug:()=>c,WH:()=>J,X$:()=>y,X_:()=>Q,Xu:()=>d,Zp:()=>k,a5:()=>r,aE:()=>eh,bo:()=>u,ce:()=>g,dm:()=>w,dv:()=>U,eb:()=>a,eu:()=>E,gd:()=>p,hB:()=>S,hK:()=>eg,hv:()=>V,i8:()=>q,iU:()=>el,iX:()=>x,jn:()=>ef,lA:()=>ea,mR:()=>h,nK:()=>o,nq:()=>K,oi:()=>_,ou:()=>W,rq:()=>b,tA:()=>en,tR:()=>ey,vF:()=>G,vS:()=>P,vd:()=>ed,w2:()=>F,wM:()=>ee,xH:()=>N,xd:()=>M,yj:()=>s,yx:()=>L,z$:()=>f,z9:()=>et,zg:()=>ec,zs:()=>$});let a="generated",s="source-over",n="resize",o="visibilitychange",r=100,l=.5,d=1e3,u={x:0,y:0,z:0},c={a:1,b:0,c:0,d:1},h="random",p=2,v=2*Math.PI,f=60,g="true",y="false",m="canvas",b=0,w=2,x=100,M=1,z=1,k=1,S=1,_=255,P=360,E=100,O=100,T=0,L=0,I=60,A=0,D=.25,R=.75,$=1,F=0,Z=1,V=1,C=1,G=0,q=120,j=0,H=0,B=1e4,X=0,N=1,U=0,J=1,Y=1,Q=0,W=0,K=1,ee=0,et=0,ei=1,ea=1,es=1,en=0,eo=1,er=0,el=1,ed=0,eu=3,ec=6,eh=1,ep=1,ev=0,ef=0,eg=0,ey=0,em=1},6197(e,t,i){i.d(t,{jl:()=>l,M_:()=>d}),(a=s||(s={})).circle="circle",a.rectangle="rectangle";var a,s,n=i(8770),o=i(8660);class r{position;type;constructor(e,t,i){this.position={x:e,y:t},this.type=i}_resetPosition(e,t){this.position.x=e,this.position.y=t}}class l extends r{radius;constructor(e,t,i){super(e,t,s.circle),this.radius=i}contains(e){return(0,n.gp)(e,this.position,this.radius)}intersects(e){let t=this.position,i=e.position,a=this.radius,n=Math.abs(i.x-t.x),r=Math.abs(i.y-t.y);if(e instanceof l||e.type===s.circle)return a+e.radius>Math.hypot(n,r);if(e instanceof d||e.type===s.rectangle){let{width:t,height:i}=e.size;return Math.pow(n-t,o.dm)+Math.pow(r-i,o.dm)<=a**o.dm||n<=a+t&&r<=a+i||n<=t||r<=i}return!1}reset(e,t,i){return this._resetPosition(e,t),this.radius=i,this}}class d extends r{size;constructor(e,t,i,a){super(e,t,s.rectangle),this.size={height:a,width:i}}contains(e){let t=this.size.width,i=this.size.height,a=this.position;return e.x>=a.x&&e.x<=a.x+t&&e.y>=a.y&&e.y<=a.y+i}intersects(e){if(e instanceof l)return e.intersects(this);if(!(e instanceof d))return!1;let t=this.size.width,i=this.size.height,a=this.position,s=e.position,n=e.size,o=n.width,r=n.height;return s.x<a.x+t&&s.x+o>a.x&&s.y<a.y+i&&s.y+r>a.y}reset(e,t,i,a){return this._resetPosition(e,t),this.size.width=i,this.size.height=a,this}}},4037(e,t,i){i.d(t,{M:()=>o,p:()=>n});var a=i(8660);function s(e){return"z"in e?e.z:a.bo.z}class n{x;y;z;constructor(e=a.bo.x,t=a.bo.y,i=a.bo.z){this.x=e,this.y=t,this.z=i}static get origin(){return n.create(a.bo.x,a.bo.y,a.bo.z)}get angle(){return Math.atan2(this.y,this.x)}set angle(e){this._updateFromAngle(e,this.length)}get length(){return Math.sqrt(this.getLengthSq())}set length(e){this._updateFromAngle(this.angle,e)}static clone(e){return n.create(e.x,e.y,s(e))}static create(e,t,i){return"number"==typeof e?new n(e,t??a.bo.y,i??a.bo.z):new n(e.x,e.y,s(e))}add(e){return n.create(this.x+e.x,this.y+e.y,this.z+s(e))}addTo(e){this.x+=e.x,this.y+=e.y,this.z+=s(e)}copy(){return n.clone(this)}div(e){return n.create(this.x/e,this.y/e,this.z/e)}divTo(e){this.x/=e,this.y/=e,this.z/=e}getLengthSq(){return this.x**a.dm+this.y**a.dm}mult(e){return n.create(this.x*e,this.y*e,this.z*e)}multTo(e){this.x*=e,this.y*=e,this.z*=e}normalize(){let e=this.length;e!=a.dv&&this.multTo(a.hB/e)}rotate(e){return n.create(this.x*Math.cos(e)-this.y*Math.sin(e),this.x*Math.sin(e)+this.y*Math.cos(e),a.bo.z)}setTo(e){this.x=e.x,this.y=e.y,this.z=s(e)}sub(e){return n.create(this.x-e.x,this.y-e.y,this.z-s(e))}subFrom(e){this.x-=e.x,this.y-=e.y,this.z-=s(e)}_updateFromAngle(e,t){this.x=Math.cos(e)*t,this.y=Math.sin(e)*t}}class o extends n{constructor(e=a.bo.x,t=a.bo.y){super(e,t,a.bo.z)}static get origin(){return o.create(a.bo.x,a.bo.y)}static clone(e){return o.create(e.x,e.y)}static create(e,t){return"number"==typeof e?new o(e,t??a.bo.y):new o(e.x,e.y)}}},2314(e,t,i){var a,s;i.d(t,{H:()=>a}),(s=a||(a={})).increasing="increasing",s.decreasing="decreasing"},5327(e,t,i){var a,s;i.d(t,{F:()=>a}),(s=a||(a={})).bottom="bottom",s.bottomLeft="bottom-left",s.bottomRight="bottom-right",s.left="left",s.none="none",s.right="right",s.top="top",s.topLeft="top-left",s.topRight="top-right",s.outside="outside",s.inside="inside"},7341(e,t,i){var a,s;i.d(t,{v:()=>a}),(s=a||(a={})).bottom="bottom",s.left="left",s.right="right",s.top="top"},4992(e,t,i){var a,s;i.d(t,{g:()=>a}),(s=a||(a={})).auto="auto",s.increase="increase",s.decrease="decrease",s.random="random"},7345(e,t,i){var a,s;i.d(t,{d:()=>a}),(s=a||(a={})).delete="delete",s.wait="wait"},3942(e,t,i){var a,s;i.d(t,{Y:()=>a}),(s=a||(a={})).bounce="bounce",s.none="none",s.out="out",s.destroy="destroy",s.split="split"},2702(e,t,i){var a,s;i.d(t,{q:()=>a}),(s=a||(a={})).precise="precise",s.percent="percent"},6932(e,t,i){var a,s;i.d(t,{H:()=>a}),(s=a||(a={})).darken="darken",s.enlighten="enlighten"},202(e,t,i){var a,s;i.d(t,{V:()=>a}),(s=a||(a={})).none="none",s.max="max",s.min="min"},6128(e,t,i){var a,s;i.d(t,{B:()=>a}),(s=a||(a={})).configAdded="configAdded",s.containerInit="containerInit",s.particlesSetup="particlesSetup",s.containerStarted="containerStarted",s.containerStopped="containerStopped",s.containerDestroyed="containerDestroyed",s.containerPaused="containerPaused",s.containerPlay="containerPlay",s.containerBuilt="containerBuilt",s.particleAdded="particleAdded",s.particleDestroyed="particleDestroyed",s.particleRemoved="particleRemoved"},510(e,t,i){var a,s;i.d(t,{x:()=>a}),(s=a||(a={})).normal="normal",s.inside="inside",s.outside="outside"},9983(e,t,i){var a,s;i.d(t,{S:()=>a}),(s=a||(a={})).max="max",s.min="min",s.random="random"},2078(e,t,i){i.d(t,{A:()=>o});var a=i(4920),s=i(3410),n=i(9744);class o extends n.O{animation;constructor(){super(),this.animation=new s.i}static create(e,t){let i=new o;return i.load(e),void 0!==t&&((0,a.Kg)(t)||(0,a.cy)(t)?i.load({value:t}):i.load(t)),i}load(e){if(super.load(e),(0,a.kZ)(e))return;let t=e.animation;void 0!==t&&(void 0===t.enable?this.animation.load(e.animation):this.animation.h.load(t))}}},6753(e,t,i){i.d(t,{Q:()=>l,p:()=>r});var a=i(4992),s=i(9983),n=i(4920),o=i(8770);class r{count;decay;delay;enable;speed;sync;constructor(){this.count=0,this.enable=!1,this.speed=1,this.decay=0,this.delay=0,this.sync=!1}load(e){(0,n.kZ)(e)||(void 0!==e.count&&(this.count=(0,o.DT)(e.count)),void 0!==e.enable&&(this.enable=e.enable),void 0!==e.speed&&(this.speed=(0,o.DT)(e.speed)),void 0!==e.decay&&(this.decay=(0,o.DT)(e.decay)),void 0!==e.delay&&(this.delay=(0,o.DT)(e.delay)),void 0!==e.sync&&(this.sync=e.sync))}}class l extends r{mode;startValue;constructor(){super(),this.mode=a.g.auto,this.startValue=s.S.random}load(e){super.load(e),(0,n.kZ)(e)||(void 0!==e.mode&&(this.mode=e.mode),void 0!==e.startValue&&(this.startValue=e.startValue))}}},3086(e,t,i){i.d(t,{e:()=>o});var a=i(6753),s=i(4920),n=i(8770);class o extends a.p{max;min;offset;constructor(e,t){super(),this.min=e,this.max=t,this.offset=0,this.sync=!0}load(e){super.load(e),(0,s.kZ)(e)||(void 0!==e.max&&(this.max=e.max),void 0!==e.min&&(this.min=e.min),void 0!==e.offset&&(this.offset=(0,n.DT)(e.offset)))}}},3410(e,t,i){i.d(t,{i:()=>o});var a=i(8660),s=i(3086),n=i(4920);class o{h=new s.e(a.L1,a.vS);l=new s.e(a.vd,a.$_);s=new s.e(a.yx,a.eu);load(e){(0,n.kZ)(e)||(this.h.load(e.h),this.s.load(e.s),this.l.load(e.l))}}},8850(e,t,i){i.d(t,{J:()=>c});var a=i(8664),s=i(4920),n=i(9744);class o{color;image;opacity;position;repeat;size;constructor(){this.color=new n.O,this.color.value="",this.image="",this.position="",this.repeat="",this.size="",this.opacity=1}load(e){(0,s.kZ)(e)||(void 0!==e.color&&(this.color=n.O.create(this.color,e.color)),void 0!==e.image&&(this.image=e.image),void 0!==e.position&&(this.position=e.position),void 0!==e.repeat&&(this.repeat=e.repeat),void 0!==e.size&&(this.size=e.size),void 0!==e.opacity&&(this.opacity=e.opacity))}}class r{enable;zIndex;constructor(){this.enable=!0,this.zIndex=0}load(e){(0,s.kZ)(e)||(void 0!==e.enable&&(this.enable=e.enable),void 0!==e.zIndex&&(this.zIndex=e.zIndex))}}class l{delay;enable;constructor(){this.delay=.5,this.enable=!0}load(e){(0,s.kZ)(e)||(void 0!==e.delay&&(this.delay=e.delay),void 0!==e.enable&&(this.enable=e.enable))}}var d=i(2222),u=i(8770);class c{autoPlay;background;clear;defaultThemes;delay;detectRetina;duration;fpsLimit;fullScreen;hdr;key;name;palette;particles;pauseOnBlur;pauseOnOutsideViewport;preset;resize;smooth;style;zLayers;_container;_pluginManager;constructor(e,t){this._pluginManager=e,this._container=t,this.autoPlay=!0,this.background=new o,this.clear=!0,this.defaultThemes={},this.delay=0,this.fullScreen=new r,this.detectRetina=!0,this.duration=0,this.fpsLimit=120,this.hdr=!0,this.particles=(0,d.y)(this._pluginManager,this._container),this.pauseOnBlur=!0,this.pauseOnOutsideViewport=!0,this.resize=new l,this.smooth=!1,this.style={},this.zLayers=100}load(e){if((0,s.kZ)(e))return;void 0!==e.preset&&(this.preset=e.preset,(0,a.wJ)(this.preset,e=>{this._importPreset(e)})),void 0!==e.palette&&(this.palette=e.palette,this._importPalette(this.palette)),void 0!==e.autoPlay&&(this.autoPlay=e.autoPlay),void 0!==e.clear&&(this.clear=e.clear),void 0!==e.key&&(this.key=e.key),void 0!==e.name&&(this.name=e.name),void 0!==e.delay&&(this.delay=(0,u.DT)(e.delay));let t=e.detectRetina;void 0!==t&&(this.detectRetina=t),void 0!==e.duration&&(this.duration=(0,u.DT)(e.duration));let i=e.fpsLimit;void 0!==i&&(this.fpsLimit=i),void 0!==e.hdr&&(this.hdr=e.hdr),void 0!==e.pauseOnBlur&&(this.pauseOnBlur=e.pauseOnBlur),void 0!==e.pauseOnOutsideViewport&&(this.pauseOnOutsideViewport=e.pauseOnOutsideViewport),void 0!==e.zLayers&&(this.zLayers=e.zLayers),this.background.load(e.background);let n=e.fullScreen;(0,s.Lm)(n)?this.fullScreen.enable=n:this.fullScreen.load(n),this.particles.load(e.particles),this.resize.load(e.resize),this.style=(0,a.zw)(this.style,e.style),void 0!==e.smooth&&(this.smooth=e.smooth),this._pluginManager.plugins.forEach(t=>{t.loadOptions(this._container,this,e)})}_importPalette=e=>{let t=this._pluginManager.getPalette(e);t&&this.load({background:{color:t.background},blend:{enable:!0,mode:t.blendMode},particles:{palette:e}})};_importPreset=e=>{this.load(this._pluginManager.getPreset(e))}}},9744(e,t,i){i.d(t,{O:()=>s});var a=i(4920);class s{value;constructor(){this.value=""}static create(e,t){let i=new s;return i.load(e),void 0!==t&&((0,a.Kg)(t)||(0,a.cy)(t)?i.load({value:t}):i.load(t)),i}load(e){!(0,a.kZ)(e)&&((0,a.kZ)(e.value)||(this.value=e.value))}}},8805(e,t,i){i.d(t,{w:()=>n});var a=i(3182),s=i(4920);class n{horizontal;vertical;constructor(){this.horizontal=new a.F,this.vertical=new a.F}load(e){(0,s.kZ)(e)||(this.horizontal.load(e.horizontal),this.vertical.load(e.vertical))}}},3182(e,t,i){i.d(t,{F:()=>s});var a=i(5603);class s extends a.PV{constructor(){super(),this.value=1}}},5240(e,t,i){i.d(t,{S:()=>o});var a=i(2078),s=i(4920),n=i(8770);class o{color;enable;opacity;constructor(){this.enable=!0,this.color=new a.A,this.color.value="#fff",this.opacity=1}load(e){(0,s.kZ)(e)||(void 0!==e.color&&(this.color=a.A.create(this.color,e.color)),void 0!==e.enable&&(this.enable=e.enable),void 0!==e.opacity&&(this.opacity=(0,n.DT)(e.opacity)))}}},3690(e,t,i){i.d(t,{y:()=>h});var a=i(5327),s=i(4920),n=i(2379),o=i(5695),r=i(8954),l=i(7677),d=i(495),u=i(7187),c=i(8770);class h{angle;center;decay;direction;distance;drift;enable;gravity;outModes;path;random;size;speed;spin;straight;vibrate;warp;constructor(){this.angle=new n.h,this.center=new o.Z,this.decay=0,this.distance={},this.direction=a.F.none,this.drift=0,this.enable=!1,this.gravity=new r.y,this.path=new l.v,this.outModes=new d.j,this.random=!1,this.size=!1,this.speed=2,this.spin=new u.t,this.straight=!1,this.vibrate=!1,this.warp=!1}load(e){if((0,s.kZ)(e))return;this.angle.load((0,s.Et)(e.angle)?{value:e.angle}:e.angle),this.center.load(e.center),void 0!==e.decay&&(this.decay=(0,c.DT)(e.decay)),void 0!==e.direction&&(this.direction=e.direction),void 0!==e.distance&&(this.distance=(0,s.Et)(e.distance)?{horizontal:e.distance,vertical:e.distance}:{...e.distance}),void 0!==e.drift&&(this.drift=(0,c.DT)(e.drift)),void 0!==e.enable&&(this.enable=e.enable),this.gravity.load(e.gravity);let t=e.outModes;void 0!==t&&((0,s.Gv)(t)?this.outModes.load(t):this.outModes.load({default:t})),this.path.load(e.path),void 0!==e.random&&(this.random=e.random),void 0!==e.size&&(this.size=e.size),void 0!==e.speed&&(this.speed=(0,c.DT)(e.speed)),this.spin.load(e.spin),void 0!==e.straight&&(this.straight=e.straight),void 0!==e.vibrate&&(this.vibrate=e.vibrate),void 0!==e.warp&&(this.warp=e.warp)}}},2379(e,t,i){i.d(t,{h:()=>n});var a=i(4920),s=i(8770);class n{offset;value;constructor(){this.offset=0,this.value=90}load(e){(0,a.kZ)(e)||(void 0!==e.offset&&(this.offset=(0,s.DT)(e.offset)),void 0!==e.value&&(this.value=(0,s.DT)(e.value)))}}},5695(e,t,i){i.d(t,{Z:()=>n});var a=i(2702),s=i(4920);class n{mode;radius;x;y;constructor(){this.x=50,this.y=50,this.mode=a.q.percent,this.radius=0}load(e){(0,s.kZ)(e)||(void 0!==e.x&&(this.x=e.x),void 0!==e.y&&(this.y=e.y),void 0!==e.mode&&(this.mode=e.mode),void 0!==e.radius&&(this.radius=e.radius))}}},8954(e,t,i){i.d(t,{y:()=>n});var a=i(4920),s=i(8770);class n{acceleration;enable;inverse;maxSpeed;constructor(){this.acceleration=9.81,this.enable=!1,this.inverse=!1,this.maxSpeed=50}load(e){(0,a.kZ)(e)||(void 0!==e.acceleration&&(this.acceleration=(0,s.DT)(e.acceleration)),void 0!==e.enable&&(this.enable=e.enable),void 0!==e.inverse&&(this.inverse=e.inverse),void 0!==e.maxSpeed&&(this.maxSpeed=(0,s.DT)(e.maxSpeed)))}}},495(e,t,i){i.d(t,{j:()=>n});var a=i(3942),s=i(4920);class n{bottom;default;left;right;top;constructor(){this.default=a.Y.out}load(e){(0,s.kZ)(e)||(void 0!==e.default&&(this.default=e.default),this.bottom=e.bottom??e.default,this.left=e.left??e.default,this.right=e.right??e.default,this.top=e.top??e.default)}}},7677(e,t,i){i.d(t,{v:()=>o});var a=i(5603),s=i(8664),n=i(4920);class o{clamp;delay;enable;generator;options;constructor(){this.clamp=!0,this.delay=new a.PV,this.enable=!1,this.options={}}load(e){!(0,n.kZ)(e)&&(void 0!==e.clamp&&(this.clamp=e.clamp),this.delay.load(e.delay),void 0!==e.enable&&(this.enable=e.enable),this.generator=e.generator,e.options&&(this.options=(0,s.zw)(this.options,e.options)))}}},7187(e,t,i){i.d(t,{t:()=>o});var a=i(8664),s=i(4920),n=i(8770);class o{acceleration;enable;position;constructor(){this.acceleration=0,this.enable=!1}load(e){!(0,s.kZ)(e)&&(void 0!==e.acceleration&&(this.acceleration=(0,n.DT)(e.acceleration)),void 0!==e.enable&&(this.enable=e.enable),e.position&&(this.position=(0,a.zw)({},e.position)))}}},6177(e,t,i){i.d(t,{N:()=>o});var a=i(4920);class s{enable;height;width;constructor(){this.enable=!1,this.width=1920,this.height=1080}load(e){if((0,a.kZ)(e))return;void 0!==e.enable&&(this.enable=e.enable);let t=e.width;void 0!==t&&(this.width=t);let i=e.height;void 0!==i&&(this.height=i)}}var n=i(5358);class o{density;limit;value;constructor(){this.density=new s,this.limit=new n.A,this.value=0}load(e){(0,a.kZ)(e)||(this.density.load(e.density),this.limit.load(e.limit),void 0!==e.value&&(this.value=e.value))}}},5358(e,t,i){i.d(t,{A:()=>n});var a=i(7345),s=i(4920);class n{mode;value;constructor(){this.mode=a.d.delete,this.value=0}load(e){(0,s.kZ)(e)||(void 0!==e.mode&&(this.mode=e.mode),void 0!==e.value&&(this.value=e.value))}}},5446(e,t,i){i.d(t,{Y:()=>o});var a=i(1918),s=i(5603),n=i(4920);class o extends s.AI{animation;constructor(){super(),this.animation=new a.I,this.value=1}load(e){if((0,n.kZ)(e))return;super.load(e);let t=e.animation;void 0!==t&&this.animation.load(t)}}},1918(e,t,i){i.d(t,{I:()=>o});var a=i(202),s=i(6753),n=i(4920);class o extends s.Q{destroy;constructor(){super(),this.destroy=a.V.none,this.speed=2}load(e){super.load(e),(0,n.kZ)(e)||void 0!==e.destroy&&(this.destroy=e.destroy)}}},8869(e,t,i){i.d(t,{P:()=>o});var a=i(5240),s=i(7349),n=i(4920);class o{fill;stroke;load(e){(0,n.kZ)(e)||(void 0!==e.fill&&(this.fill??=new a.S,this.fill.load(e.fill)),void 0!==e.stroke&&(this.stroke??=new s.t,this.stroke.load(e.stroke)))}}},6334(e,t,i){i.d(t,{U:()=>v});var a=i(8664),s=i(4920);class n{close;options;type;constructor(){this.close=!0,this.options={},this.type=[]}load(e){if((0,s.kZ)(e))return;let t=e.options;if(void 0!==t)for(let e in t){let i=t[e];i&&(this.options[e]=(0,a.zw)(this.options[e]??{},i))}void 0!==e.close&&(this.close=e.close),void 0!==e.type&&(this.type=e.type)}}var o=i(3690),r=i(5446),l=i(8869),d=i(8805),u=i(6177),c=i(5746),h=i(3442),p=i(6992);class v{bounce;effect;groups;move;number;opacity;paint;palette;reduceDuplicates;shape;size;zIndex;_container;_pluginManager;constructor(e,t){this._pluginManager=e,this._container=t,this.bounce=new d.w,this.effect=new n,this.groups={},this.move=new o.y,this.number=new u.N,this.opacity=new r.Y,this.paint=new l.P,this.reduceDuplicates=!1,this.shape=new c.y,this.size=new h.o,this.zIndex=new p.P}load(e){if((0,s.kZ)(e))return;if(e.palette&&(this.palette=e.palette,this._importPalette(this.palette)),void 0!==e.groups)for(let t of Object.keys(e.groups)){if(!(t in e.groups))continue;let i=e.groups[t];void 0!==i&&(this.groups[t]=(0,a.zw)(this.groups[t]??{},i))}void 0!==e.reduceDuplicates&&(this.reduceDuplicates=e.reduceDuplicates),this.bounce.load(e.bounce),this.effect.load(e.effect),this.move.load(e.move),this.number.load(e.number),this.opacity.load(e.opacity);let t=e.paint;if(t&&(this.paint=(0,a.wJ)(t,e=>{let t=new l.P;return t.load(e),t})),this.shape.load(e.shape),this.size.load(e.size),this.zIndex.load(e.zIndex),this._container){for(let t of this._pluginManager.plugins)t.loadParticlesOptions&&t.loadParticlesOptions(this._container,this,e);let t=this._pluginManager.updaters.get(this._container);if(t)for(let i of t)i.loadOptions&&i.loadOptions(this,e)}}_importPalette=e=>{let t=this._pluginManager.getPalette(e);if(!t)return;let i=t.colors,a=((0,s.cy)(i)?i:[i]).flatMap(e=>{let t=e.fill,i=e.stroke,a=t?{color:{value:t.value},enable:t.enable,opacity:t.opacity}:void 0;return i?[{fill:a,stroke:{color:{value:i.value},opacity:i.opacity,width:i.width||0}}]:[{fill:a}]}),n=a.length>1?a:a[0]??{};this.load({paint:n,blend:{enable:!0,mode:t.blendMode}})}}},5746(e,t,i){i.d(t,{y:()=>n});var a=i(8664),s=i(4920);class n{close;options;type;constructor(){this.close=!0,this.options={},this.type="circle"}load(e){if((0,s.kZ)(e))return;let t=e.options;if(void 0!==t)for(let e in t){let i=t[e];i&&(this.options[e]=(0,a.zw)(this.options[e]??{},i))}void 0!==e.close&&(this.close=e.close),void 0!==e.type&&(this.type=e.type)}}},3442(e,t,i){i.d(t,{o:()=>o});var a=i(5603),s=i(4234),n=i(4920);class o extends a.AI{animation;constructor(){super(),this.animation=new s.q,this.value=3}load(e){if(super.load(e),(0,n.kZ)(e))return;let t=e.animation;void 0!==t&&this.animation.load(t)}}},4234(e,t,i){i.d(t,{q:()=>o});var a=i(202),s=i(6753),n=i(4920);class o extends s.Q{destroy;constructor(){super(),this.destroy=a.V.none,this.speed=5}load(e){super.load(e),(0,n.kZ)(e)||void 0!==e.destroy&&(this.destroy=e.destroy)}}},7349(e,t,i){i.d(t,{t:()=>o});var a=i(2078),s=i(4920),n=i(8770);class o{color;opacity;width;constructor(){this.width=0}load(e){(0,s.kZ)(e)||(void 0!==e.color&&(this.color=a.A.create(this.color,e.color)),void 0!==e.width&&(this.width=(0,n.DT)(e.width)),void 0!==e.opacity&&(this.opacity=(0,n.DT)(e.opacity)))}}},6992(e,t,i){i.d(t,{P:()=>n});var a=i(5603),s=i(4920);class n extends a.PV{opacityRate;sizeRate;velocityRate;constructor(){super(),this.opacityRate=1,this.sizeRate=1,this.velocityRate=1}load(e){super.load(e),(0,s.kZ)(e)||(void 0!==e.opacityRate&&(this.opacityRate=e.opacityRate),void 0!==e.sizeRate&&(this.sizeRate=e.sizeRate),void 0!==e.velocityRate&&(this.velocityRate=e.velocityRate))}}},5603(e,t,i){i.d(t,{AI:()=>l,PV:()=>o});var a=i(6753),s=i(4920),n=i(8770);class o{value;constructor(){this.value=0}load(e){!(0,s.kZ)(e)&&((0,s.kZ)(e.value)||(this.value=(0,n.DT)(e.value)))}}class r extends o{animation=new a.p;load(e){if(super.load(e),(0,s.kZ)(e))return;let t=e.animation;void 0!==t&&this.animation.load(t)}}class l extends r{animation;constructor(){super(),this.animation=new a.Q}load(e){super.load(e)}}},3252(e,t,i){i.d(t,{IU:()=>o,Md:()=>n,Sn:()=>s,Wb:()=>l,p0:()=>r});var a=i(8660);function s(e,t,i){e.fillStyle=i??"rgba(0,0,0,0)",e.fillRect(a.bo.x,a.bo.y,t.width,t.height)}function n(e,t,i,s){if(!i)return;let n=e.globalAlpha;e.globalAlpha=s,e.drawImage(i,a.bo.x,a.bo.y,t.width,t.height),e.globalAlpha=n}function o(e,t){e.clearRect(a.bo.x,a.bo.y,t.width,t.height)}function r(e){let{container:t,context:i,particle:s,delta:n,colorStyles:o,radius:r,opacity:l,transform:d}=e,{effectDrawers:u,shapeDrawers:c}=t,h=s.getPosition(),p=s.getTransformData(d),v=a.Pf,f={x:h.x,y:h.y};i.setTransform(p.a,p.b,p.c,p.d,h.x,h.y),o.fill&&(i.fillStyle=o.fill);let g=!!s.fillEnabled,y=s.strokeWidth??a.Dv;i.lineWidth=y,o.stroke&&(i.strokeStyle=o.stroke);let m={context:i,particle:s,radius:r,drawRadius:r*v,opacity:l,delta:n,pixelRatio:t.retina.pixelRatio,fill:g,stroke:y>a.Dv,transformData:p,position:{...h},drawPosition:f,drawScale:v};for(let e of t.plugins)e.drawParticleTransform?.(m);let b=s.effect?u.get(s.effect):void 0,w=s.shape?c.get(s.shape):void 0;(function(e,t){if(!e?.drawBefore)return;let{particle:i}=t;i.effect&&e.drawBefore(t)})(b,m),function(e,t){if(!e?.beforeDraw)return;let{particle:i}=t;i.shape&&e.beforeDraw(t)}(w,m),function(e,t){if(!e)return;let{context:i,fill:a,particle:s,stroke:n}=t;s.shape&&(i.beginPath(),e.draw(t),s.shapeClose&&i.closePath(),a&&i.fill(),n&&i.stroke())}(w,m),function(e,t){if(!e?.afterDraw)return;let{particle:i}=t;i.shape&&e.afterDraw(t)}(w,m),function(e,t){if(!e?.drawAfter)return;let{particle:i}=t;i.effect&&e.drawAfter(t)}(b,m),i.resetTransform()}function l(e,t,i,a){t.drawParticle&&t.drawParticle(e,i,a)}},7621(e,t,i){i.d(t,{BN:()=>c,Jv:()=>M,LC:()=>y,O_:()=>m,R5:()=>h,YL:()=>p,ay:()=>v,pz:()=>b,xx:()=>f,yx:()=>z});var a=i(8770),s=i(8660),n=i(4920),o=i(6932),r=i(2314),l=i(8664);let d=new Map;function u(e,t){let i=d.get(e);return i||(i=t(),d.size>=1e3&&[...d.keys()].slice(0,1e3*s.MX).forEach(e=>d.delete(e)),d.set(e,i)),i}function c(e,t,i,o=!0){if(!t)return;let r=(0,n.Kg)(t)?{value:t}:t;if((0,n.Kg)(r.value))return function e(t,i,o,r=!0){if(!i)return;let d=(0,n.Kg)(i)?{value:i}:i;if((0,n.Kg)(d.value)){let e,i,n;return d.value===s.mR?(e=(void 0)??s.Fl,i=s.oi+s.D_,{b:(n=()=>Math.floor((0,a.e4)(e,i)))(),g:n(),r:n()}):function(e,t){if(t){for(let i of e.colorManagers.values())if(i.accepts(t))return i.parseString(t)}}(t,d.value)}if((0,n.cy)(d.value)){let i=(0,l.Vh)(d.value,o,r);if(!i)return;return e(t,{value:i})}for(let e of t.colorManagers.values()){let t=e.handleColor(d);if(t)return t}}(e,r.value,i,o);if((0,n.cy)(r.value)){let t=(0,l.Vh)(r.value,i,o);if(!t)return;return c(e,{value:t})}for(let t of e.colorManagers.values()){let e=t.handleRangeColor(r);if(e)return e}}function h(e,t,i,a=!0){var n;let o,r,l,d,u,p,v=c(e,t,i,a);return v?(o=(n=v).r/s.oi,r=n.g/s.oi,d=Math.max(o,r,l=n.b/s.oi),u=Math.min(o,r,l),p={h:s.L1,l:(d+u)*s.MX,s:s.yx},d!==u&&(p.s=p.l<s.MX?(d-u)/(d+u):(d-u)/(s.gd-d-u),o===d?p.h=(r-l)/(d-u):r===d?p.h=s.gd+(l-o)/(d-u):p.h=s.gd*s.gd+(o-r)/(d-u)),p.l*=s.$_,p.s*=s.eu,p.h*=s.U0,p.h<s.L1&&(p.h+=s.vS),p.h>=s.vS&&(p.h-=s.vS),p):void 0}function p(e){let t=(e.h%s.vS+s.vS)%s.vS,i=Math.max(s.yx,Math.min(s.eu,e.s)),a=Math.max(s.vd,Math.min(s.$_,e.l)),n=t/s.vS,o=i/s.eu,r=a/s.$_;if(i===s.yx){let e=Math.round(r*s.oi);return{r:e,g:e,b:e}}let l=(e,t,i)=>(i<0&&i++,i>1&&i--,i*s.zg<1)?e+(t-e)*s.zg*i:i*s.gd<1?t:i*s.Nu<+s.gd?e+(t-e)*(s.gd/s.Nu-i)*s.zg:e,d=r<s.MX?r*(s.aE+o):r+o-r*o,u=s.gd*r-d,c=s.BF/s.Nu;return{r:Math.round(Math.min(s.oi,s.oi*l(u,d,n+c))),g:Math.round(Math.min(s.oi,s.oi*l(u,d,n))),b:Math.round(Math.min(s.oi,s.oi*l(u,d,n-c)))}}function v(e){let t=p(e);return{a:e.a,b:t.b,g:t.g,r:t.r}}function f(e,t,i){let a=i??s.hv;return u(`rgb-${e.r.toFixed(2)}-${e.g.toFixed(2)}-${e.b.toFixed(2)}-${t?"hdr":"sdr"}-${a.toString()}`,()=>{var a,n;return t?g(e,i):(a=e,n=i,`rgba(${a.r.toString()}, ${a.g.toString()}, ${a.b.toString()}, ${(n??s.hv).toString()})`)})}function g(e,t){return`color(display-p3 ${(e.r/s.oi).toString()} ${(e.g/s.oi).toString()} ${(e.b/s.oi).toString()} / ${(t??s.hv).toString()})`}function y(e,t,i){let a=i??s.hv;return u(`hsl-${e.h.toFixed(2)}-${e.s.toFixed(2)}-${e.l.toFixed(2)}-${t?"hdr":"sdr"}-${a.toString()}`,()=>{var a,n,o,r;return t?(a=e,n=i,g(p(a),n)):(o=e,r=i,`hsla(${o.h.toString()}, ${o.s.toString()}%, ${o.l.toString()}%, ${(r??s.hv).toString()})`)})}function m(e){return void 0===e?void 0:{h:e.h.value,s:e.s.value,l:e.l.value}}function b(e,t,i){let a={h:{enable:!1,value:e.h,min:s.L1,max:s.vS},s:{enable:!1,value:e.s,min:s.yx,max:s.eu},l:{enable:!1,value:e.l,min:s.vd,max:s.$_}};return t&&(w(a.h,t.h,i),w(a.s,t.s,i),w(a.l,t.l,i)),a}function w(e,t,i){e.enable=t.enable,e.min=t.min,e.max=t.max,e.enable?(e.velocity=(0,a.VG)(t.speed)/s.a5*i,e.decay=s.WH-(0,a.VG)(t.decay),e.status=r.H.increasing,e.loops=s.hK,e.maxLoops=(0,a.VG)(t.count),e.time=s.tR,e.delayTime=(0,a.VG)(t.delay)*s.Xu,t.sync||(e.velocity*=(0,a.G0)(),e.value*=(0,a.G0)()),e.initialValue=e.value,e.offset=(0,a.DT)(t.offset)):e.velocity=s.jn}function x(e,t,i){if(!e.enable||(e.maxLoops??0)>0&&(e.loops??0)>(e.maxLoops??0)||(e.time??=0,(e.delayTime??0)>0&&e.time<(e.delayTime??0)&&(e.time+=i.value),(e.delayTime??0)>0&&e.time<(e.delayTime??0)))return;let s=e.offset?(0,a.vE)(e.offset):0,n=(e.velocity??0)*i.factor+3.6*s,o=e.decay??1,l=e.max,d=e.min;t&&e.status!==r.H.increasing?(e.value-=n,e.value<d&&(e.loops??=0,e.loops++,e.status=r.H.increasing)):(e.value+=n,e.value>l&&(e.loops??=0,e.loops++,t?e.status=r.H.decreasing:e.value-=l)),e.velocity&&1!==o&&(e.velocity*=o),e.value=(0,a.qE)(e.value,d,l)}function M(e,t){if(!e)return;let{h:i,s:a,l:s}=e;x(i,!1,t),x(a,!0,t),x(s,!0,t)}function z(e,t,i){return{h:e.h,s:e.s,l:e.l+(t===o.H.darken?-s.iU:s.iU)*i}}},2914(e,t,i){i.d(t,{t:()=>s});let a={debug:console.debug,error:(e,t)=>{console.error(`tsParticles - Error - ${e}`,t)},info:console.info,log:console.log,trace:console.trace,verbose:console.log,warning:console.warn};function s(){return a}},8770(e,t,i){i.d(t,{$m:()=>k,DT:()=>function e(t,i){if(t===i||void 0===i&&(0,o.Et)(t))return t;let a=g(t),s=y(t);return void 0!==i?{min:Math.min(a,i),max:Math.max(s,i)}:e(a,s)},G0:()=>d,JY:()=>z,M3:()=>P,Nx:()=>_,Sg:()=>g,VG:()=>f,W9:()=>y,Yf:()=>w,e4:()=>u,gp:()=>x,i0:()=>c,l1:()=>S,pu:()=>M,px:()=>h,qE:()=>p,vE:()=>v,vr:()=>m});var a=i(5327),s=i(8660),n=i(4037),o=i(4920);let r=Math.PI/180,l=Math.random;function d(){return p(l(),0,1-Number.EPSILON)}function u(e,t){return d()*(t-e)+e}function c(e){return requestAnimationFrame(e)}function h(e){cancelAnimationFrame(e)}function p(e,t,i){return Math.min(Math.max(e,t),i)}function v(e){let t=y(e),i=g(e);return t===i&&(i=0),u(i,t)}function f(e){return(0,o.Et)(e)?e:v(e)}function g(e){return(0,o.Et)(e)?e:e.min}function y(e){return(0,o.Et)(e)?e:e.max}function m(e,t){let i=e.x-t.x,a=e.y-t.y;return{dx:i,dy:a,distance:Math.hypot(i,a)}}function b(e,t){let i=e.x-t.x,a=e.y-t.y;return i*i+a*a}function w(e,t){return Math.sqrt(b(e,t))}function x(e,t,i){return b(e,t)<=i*i}function M(e){return e*r}function z(e,t,i){if((0,o.Et)(e))return e*r;switch(e){case a.F.top:return-Math.PI*s.MX;case a.F.topRight:return-Math.PI*s.$G;case a.F.right:return s.Ie;case a.F.bottomRight:return Math.PI*s.$G;case a.F.bottom:return Math.PI*s.MX;case a.F.bottomLeft:return Math.PI*s.Rq;case a.F.left:return Math.PI;case a.F.topLeft:return-Math.PI*s.Rq;case a.F.inside:return Math.atan2(i.y-t.y,i.x-t.x);case a.F.outside:return Math.atan2(t.y-i.y,t.x-i.x);default:return d()*s.R1}}function k(e){let t=n.M.origin;return t.length=1,t.angle=e,t}function S(e){var t;let i={x:e.position?.x!==void 0?f(e.position.x):void 0,y:e.position?.y!==void 0?f(e.position.y):void 0};return t={size:e.size,position:i},{x:(t.position?.x??d()*s.a5)*t.size.width/s.a5,y:(t.position?.y??d()*s.a5)*t.size.height/s.a5}}function _(e){let{position:t,size:i}=e;return{x:t?.x??d()*i.width,y:t?.y??d()*i.height}}function P(e){return e?e.endsWith("%")?parseFloat(e)/s.a5:parseFloat(e):1}},2222(e,t,i){i.d(t,{Z:()=>s,y:()=>n});var a=i(6334);function s(e,...t){for(let i of t)e.load(i)}function n(e,t,...i){let o=new a.U(e,t);return s(o,...i),o}},4920(e,t,i){function a(e){return"boolean"==typeof e}function s(e){return"string"==typeof e}function n(e){return"number"==typeof e}function o(e){return"object"==typeof e&&null!==e}function r(e){return Array.isArray(e)}function l(e){return null==e}i.d(t,{Et:()=>n,Gv:()=>o,Kg:()=>s,Lm:()=>a,cy:()=>r,kZ:()=>l})},8664(e,t,i){let a,s,n,o,r;i.d(t,{AE:()=>k,E9:()=>O,HQ:()=>R,Kp:()=>D,Ot:()=>$,T5:()=>m,TA:()=>_,Tj:()=>z,UC:()=>L,Vh:()=>M,Xs:()=>P,YC:()=>T,hJ:()=>A,hn:()=>x,lV:()=>b,tG:()=>w,td:()=>I,wJ:()=>S,zw:()=>function e(t,...i){for(let a of i){if((0,c.kZ)(a))continue;if(!(0,c.Gv)(a)){t=a;continue}Array.isArray(a)?Array.isArray(t)||(t=[]):(!(0,c.Gv)(t)||Array.isArray(t))&&(t={});let i=Object.keys(a),s=new Set(["__proto__","constructor","prototype"]);if(!i.some(e=>{let t=a[e];return(0,c.Gv)(t)||Array.isArray(t)})){let e=t;for(let t of i)if(!s.has(t)&&t in a){let i=a[t];void 0!==i&&(e[t]=i)}continue}for(let n of i){if(s.has(n))continue;let i=t,o=a[n];i[n]=Array.isArray(o)?o.map(t=>e(void 0,t)):e(i[n],o)}}return t}});var l,d=i(8770),u=i(8660),c=i(4920),h=i(4992),p=i(2314),v=i(202),f=i(7341),g=i(2702),y=i(9983);function m(){return globalThis.document}function b(e){if("u">typeof matchMedia)return matchMedia(e)}function w(e){if("u">typeof MutationObserver)return new MutationObserver(e)}function x(e,t){return e===t||(0,c.cy)(t)&&t.includes(e)}function M(e,t,i=!0){return e[void 0!==t&&i?t%e.length:Math.floor((0,d.G0)()*e.length)]}function z(e,t,i,a,s){var n,o,r,l;let d;return n=k(e,a??0),o=t,r=i,d=!0,(l=s)&&l!==f.v.bottom||(d=n.top<o.height+r.x),d&&(!l||l===f.v.left)&&(d=n.right>r.x),d&&(!l||l===f.v.right)&&(d=n.left<o.width+r.y),d&&(!l||l===f.v.top)&&(d=n.bottom>r.y),d}function k(e,t){return{bottom:e.y+t,left:e.x-t,right:e.x+t,top:e.y-t}}function S(e,t){return(0,c.cy)(e)?e.map((e,i)=>t(e,i)):t(e,0)}function _(e,t,i){return(0,c.cy)(e)?M(e,t,i):e}function P(e,t){let i=e.value,a=e.animation,s={delayTime:(0,d.VG)(a.delay)*u.Xu,enable:a.enable,value:(0,d.VG)(e.value)*t,max:(0,d.W9)(i)*t,min:(0,d.Sg)(i)*t,loops:0,maxLoops:(0,d.VG)(a.count),time:0};if(a.enable){switch(s.decay=1-(0,d.VG)(a.decay),a.mode){case h.g.increase:s.status=p.H.increasing;break;case h.g.decrease:s.status=p.H.decreasing;break;case h.g.random:s.status=(0,d.G0)()>=u.MX?p.H.increasing:p.H.decreasing}let e=a.mode===h.g.auto;switch(a.startValue){case y.S.min:s.value=s.min,e&&(s.status=p.H.increasing);break;case y.S.max:s.value=s.max,e&&(s.status=p.H.decreasing);break;case y.S.random:default:s.value=(0,d.vE)(s),e&&(s.status=(0,d.G0)()>=u.MX?p.H.increasing:p.H.decreasing)}}return s.initialValue=s.value,s}function E(e,t){if(e.mode!==g.q.percent){let{mode:t,...i}=e;return i}return"x"in e?{x:e.x/u.a5*t.width,y:e.y/u.a5*t.height}:{width:e.width/u.a5*t.width,height:e.height/u.a5*t.height}}function O(e,t){return E(e,t)}function T(e,t){return E(e,t)}function L(e,t,i,a,s){if(e.destroyed||!t.enable||(t.maxLoops??0)>0&&(t.loops??0)>(t.maxLoops??0))return;let n=(t.velocity??0)*s.factor,o=t.min,r=t.max,l=t.decay??1;if(t.time??=0,(t.delayTime??0)>0&&t.time<(t.delayTime??0)&&(t.time+=s.value),!((t.delayTime??0)>0)||!(t.time<(t.delayTime??0))){switch(t.status){case p.H.increasing:t.value+=n;break;case p.H.decreasing:t.value-=n}switch(t.velocity&&1!==l&&(t.velocity*=l),t.status){case p.H.increasing:t.value>=r&&(i?t.status=p.H.decreasing:t.value-=r,t.loops??=0,t.loops++);break;case p.H.decreasing:t.value<=o&&(i?t.status=p.H.increasing:t.value+=r,t.loops??=0,t.loops++)}var u=t.value;switch(a){case v.V.max:u>=r&&e.destroy();break;case v.V.min:u<=o&&e.destroy()}e.destroyed||(t.value=(0,d.qE)(t.value,o,r))}}function I(e){let t=m().createElement("div").style;for(let i in e){let a=e[i];if(!(i in e)||(0,c.kZ)(a))continue;let s=e.getPropertyValue?.(a);if(!s)continue;let n=e.getPropertyPriority?.(a);n?t.setProperty(a,s,n):t.setProperty(a,s)}return t}i(4037);let A=(l=function(e){let t=m().createElement("div").style,i={width:"100%",height:"100%",margin:"0",padding:"0",borderWidth:"0",position:"fixed",zIndex:e.toString(10),"z-index":e.toString(10),top:"0",left:"0"};for(let e in i){let a=i[e];void 0!==a&&t.setProperty(e,a)}return t},a=new Map,s=void 0,n=void 0,o=void 0,r=(e,t=new WeakSet)=>{if(null===e)return"null";let i=typeof e;if("undefined"===i)return"undefined";if("number"===i||"boolean"===i||"string"===i)return JSON.stringify(e);if("function"===i)try{return e.toString()}catch{return'"[Function]"'}if("symbol"===i)try{return e.toString()}catch{return'"[Symbol]"'}if(Array.isArray(e))return`[${e.map(e=>r(e,t)).join(",")}]`;if(t.has(e))return'"[Circular]"';t.add(e);let a=Object.keys(e).sort();return`{${a.map(i=>`${JSON.stringify(i)}:${r(e[i],t)}`).join(",")}}`},(...e)=>{let t,i=(t=e,o?o(t):r(t)),d=Date.now(),u=a.get(i);if(void 0!==u)if(!n||!(d-u.ts>n))return a.delete(i),a.set(i,{value:u.value,ts:u.ts}),u.value;else a.delete(i);let c=l(...e);if(a.set(i,{value:c,ts:d}),"number"==typeof s&&s>=0)for(;a.size>s;){let e=a.keys().next().value;if(void 0===e)break;a.delete(e)}return c});function D(e,t,i,a,s){if(a){let a={passive:!0};(0,c.Lm)(s)?a.capture=s:void 0!==s&&(a=s),e.addEventListener(t,i,a)}else e.removeEventListener(t,i,s)}async function R(e,t,i,a=!1){let s=t.get(e);return(!s||a)&&(s=await Promise.all([...i.values()].map(t=>t(e))),t.set(e,s)),s}async function $(e,t,i,a=!1){let s=t.get(e);return(!s||a)&&(s=new Map(await Promise.all([...i.entries()].map(([t,i])=>i(e).then(e=>[t,e])))),t.set(e,s)),s}},3227(e,t,i){i.d(t,{A9e:()=>S.A,SQl:()=>_.S,FWc:()=>w.F,Yzx:()=>M.Y,v5k:()=>x.v,PiR:()=>P.P,x_I:()=>k.x,qiC:()=>z.q,pTR:()=>o,tcj:()=>E.t,Miz:()=>b.M,l1q:()=>f.l1,AEc:()=>u.AE,qE8:()=>f.qE,WH8:()=>d.WH,zwS:()=>u.zw,hvP:()=>d.hv,puj:()=>f.pu,R1e:()=>d.R1,wJ2:()=>u.wJ,YfF:()=>f.Yf,vrU:()=>f.vr,pzy:()=>O.pz,OtU:()=>u.Ot,G0i:()=>f.G0,W9e:()=>f.W9,VGA:()=>f.VG,YCE:()=>u.YC,vSh:()=>d.vS,MXx:()=>d.MX,YLU:()=>O.YL,ayx:()=>O.ay,XsS:()=>u.Xs,cyL:()=>T.cy,kZJ:()=>T.kZ,EtT:()=>T.Et,Gvm:()=>T.Gv,Tj8:()=>u.Tj,TA3:()=>u.TA,$_c:()=>d.$_,XuV:()=>d.Xu,boI:()=>d.bo,M3Y:()=>f.M3,a56:()=>d.a5,vEz:()=>f.vE,R5R:()=>O.R5,euA:()=>d.eu,T5G:()=>u.T5,DT4:()=>f.DT,$k3:()=>L,UC0:()=>u.UC,JvX:()=>O.Jv});var a,s,n,o,r,l,d=i(8660),u=i(8664);class c{_listeners;constructor(){this._listeners=new Map}addEventListener(e,t){this.removeEventListener(e,t);let i=this._listeners.get(e);i||(i=[],this._listeners.set(e,i)),i.push(t)}dispatchEvent(e,t){let i=this._listeners.get(e);i?.forEach(e=>{e(t)})}hasEventListener(e){return!!this._listeners.get(e)}removeAllEventListeners(e){e?this._listeners.delete(e):this._listeners=new Map}removeEventListener(e,t){let i=this._listeners.get(e);if(!i)return;let a=i.length,s=i.indexOf(t);s<d.z9||(a===d.LD?this._listeners.delete(e):i.splice(s,d.LD))}}var h=i(6128);class p{colorManagers=new Map;easingFunctions=new Map;effectDrawers=new Map;initializers={effects:new Map,shapes:new Map,updaters:new Map};palettes=new Map;plugins=[];presets=new Map;shapeDrawers=new Map;updaters=new Map;_allLoadersSet=new Set;_configs=new Map;_engine;_executedSet=new Set;_initialized=!1;_isRunningLoaders=!1;_loadPromises=new Set;constructor(e){this._engine=e}get configs(){let e={};for(let[t,i]of this._configs)e[t]=i;return e}addColorManager(e,t){this.colorManagers.set(e,t)}addConfig(e){let t=e.key??e.name??"default";this._configs.set(t,e),this._engine.dispatchEvent(h.B.configAdded,{data:{name:t,config:e}})}addEasing(e,t){this.easingFunctions.get(e)||this.easingFunctions.set(e,t)}addEffect(e,t){this.initializers.effects.set(e,t)}addPalette(e,t){this.palettes.set(e,t)}addParticleUpdater(e,t){this.initializers.updaters.set(e,t)}addPlugin(e){this.getPlugin(e.id)||this.plugins.push(e)}addPreset(e,t,i=!1){(i||!this.getPreset(e))&&this.presets.set(e,t)}addShape(e,t){for(let i of e)this.initializers.shapes.set(i,t)}clearPlugins(e){this.effectDrawers.delete(e),this.shapeDrawers.delete(e),this.updaters.delete(e)}getEasing(e){return this.easingFunctions.get(e)??(e=>e)}getEffectDrawers(e,t=!1){return(0,u.Ot)(e,this.effectDrawers,this.initializers.effects,t)}getPalette(e){return this.palettes.get(e)}getPlugin(e){return this.plugins.find(t=>t.id===e)}getPreset(e){return this.presets.get(e)}async getShapeDrawers(e,t=!1){return(0,u.Ot)(e,this.shapeDrawers,this.initializers.shapes,t)}async getUpdaters(e,t=!1){return(0,u.HQ)(e,this.updaters,this.initializers.updaters,t)}async init(){if(!this._initialized&&!this._isRunningLoaders){this._isRunningLoaders=!0,this._executedSet=new Set,this._allLoadersSet=new Set(this._loadPromises);try{for(let e of this._allLoadersSet)await this._runLoader(e,this._executedSet,this._allLoadersSet)}finally{this._loadPromises.clear(),this._isRunningLoaders=!1,this._initialized=!0}}}loadParticlesOptions(e,t,...i){let a=this.updaters.get(e);a&&a.forEach(e=>e.loadOptions?.(t,...i))}async register(...e){if(this._initialized)throw Error("Register plugins can only be done before calling tsParticles.load()");for(let t of e)this._isRunningLoaders?await this._runLoader(t,this._executedSet,this._allLoadersSet):this._loadPromises.add(t)}async _runLoader(e,t,i){t.has(e)||(t.add(e),i.add(e),await e(this._engine))}}var v=i(2914),f=i(8770);let g="100%";async function y(e){let t=(0,u.TA)(e.url,e.index);if(!t)return e.fallback;let i=await fetch(t);return i.ok?await i.json():((0,v.t)().error(`${i.status.toString()} while retrieving config file`),e.fallback)}class m{pluginManager=new p(this);_domArray=[];_eventDispatcher=new c;_initialized=!1;get items(){return this._domArray}get version(){return"4.0.0-beta.11"}addEventListener(e,t){this._eventDispatcher.addEventListener(e,t)}checkVersion(e){if(this.version!==e)throw Error(`The tsParticles version is different from the loaded plugins version. Engine version: ${this.version}. Plugin version: ${e}`)}dispatchEvent(e,t){this._eventDispatcher.dispatchEvent(e,t)}async init(){this._initialized||(await this.pluginManager.init(),this._initialized=!0)}item(e){let{items:t}=this,i=t[e];return i?.destroyed?void t.splice(e,d.JC):i}async load(e){var t;let a,s;await this.init();let{Container:n}=await i.e(467).then(i.bind(i,1467)),o=e.id??e.element?.id??`tsparticles${Math.floor((0,f.G0)()*d.$v).toString()}`,{index:r,url:l}=e,c=l?await y({fallback:e.options,url:l,index:r}):e.options,h=(0,u.TA)(c,r),{items:p}=this,v=p.findIndex(e=>e.id.description===o),m=new n({dispatchCallback:(e,t)=>{this.dispatchEvent(e,t)},id:o,onDestroy:e=>{if(!e)return;let t=this.items,i=t.indexOf(m);i>=d.vF&&t.splice(i,d.JC)},pluginManager:this.pluginManager,sourceOptions:h});if(v>=d.PZ){let e=this.item(v),t=e?d.xH:d.dv;e&&!e.destroyed&&e.destroy(!1),p.splice(v,t,m)}else p.push(m);let b=(e=>{let t,i=(0,u.T5)();if(e instanceof HTMLCanvasElement||e.tagName.toLowerCase()===d.RF)t=e,t.dataset[d.eb]??=d.X$;else{let a=e.getElementsByTagName(d.RF)[d.Nx];a?(t=a).dataset[d.eb]=d.X$:((t=i.createElement(d.RF)).dataset[d.eb]=d.ce,e.appendChild(t))}return t.style.width||=g,t.style.height||=g,t})((t=e.element,a=(0,u.T5)(),(s=t??a.getElementById(o))||((s=a.createElement("canvas")).id=o,s.dataset[d.eb]=d.ce,a.body.append(s)),s));return m.canvas.loadCanvas(b),await m.start(),m}async refresh(e=!0){e&&await Promise.all(this.items.map(e=>e.refresh()))}removeEventListener(e,t){this._eventDispatcher.removeEventListener(e,t)}}i(6197);var b=i(4037),w=i(5327);(a=o||(o={})).clockwise="clockwise",a.counterClockwise="counter-clockwise",a.random="random";var x=i(7341);i(4992),i(7345);var M=i(3942),z=i(2702);i(6932),i(202),(s=r||(r={})).linear="linear",s.radial="radial",s.random="random";var k=i(510);i(9983),(n=l||(l={})).easeInBack="ease-in-back",n.easeInBounce="ease-in-bounce",n.easeInCirc="ease-in-circ",n.easeInCubic="ease-in-cubic",n.easeInElastic="ease-in-elastic",n.easeInExpo="ease-in-expo",n.easeInGaussian="ease-in-gaussian",n.easeInLinear="ease-in-linear",n.easeInQuad="ease-in-quad",n.easeInQuart="ease-in-quart",n.easeInQuint="ease-in-quint",n.easeInSigmoid="ease-in-sigmoid",n.easeInSine="ease-in-sine",n.easeInSmoothstep="ease-in-smoothstep",n.easeOutBack="ease-out-back",n.easeOutBounce="ease-out-bounce",n.easeOutCirc="ease-out-circ",n.easeOutCubic="ease-out-cubic",n.easeOutElastic="ease-out-elastic",n.easeOutExpo="ease-out-expo",n.easeOutGaussian="ease-out-gaussian",n.easeOutLinear="ease-out-linear",n.easeOutQuad="ease-out-quad",n.easeOutQuart="ease-out-quart",n.easeOutQuint="ease-out-quint",n.easeOutSigmoid="ease-out-sigmoid",n.easeOutSine="ease-out-sine",n.easeOutSmoothstep="ease-out-smoothstep",n.easeInOutBack="ease-in-out-back",n.easeInOutBounce="ease-in-out-bounce",n.easeInOutCirc="ease-in-out-circ",n.easeInOutCubic="ease-in-out-cubic",n.easeInOutElastic="ease-in-out-elastic",n.easeInOutExpo="ease-in-out-expo",n.easeInOutGaussian="ease-in-out-gaussian",n.easeInOutLinear="ease-in-out-linear",n.easeInOutQuad="ease-in-out-quad",n.easeInOutQuart="ease-in-out-quart",n.easeInOutQuint="ease-in-out-quint",n.easeInOutSigmoid="ease-in-out-sigmoid",n.easeInOutSine="ease-in-out-sine",n.easeInOutSmoothstep="ease-in-out-smoothstep",i(2314);var S=i(2078);i(6753),i(3086),i(3410),i(8850),i(8805),i(3182),i(6334);var _=i(5240),P=i(8869),E=i(7349);i(3690),i(2379),i(5695),i(8954),i(495),i(7677),i(7187),i(6177),i(5358),i(5446),i(1918),i(5746),i(3442),i(4234),i(6992),i(5603),i(3252);var O=i(7621);i(2222);var T=i(4920);let L=new m;globalThis.tsParticles=L}},s={};function n(e){var t=s[e];if(void 0!==t)return t.exports;var i=s[e]={exports:{}};return a[e](i,i.exports,n),i.exports}n.m=a,n.d=(e,t)=>{for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.f={},n.e=e=>Promise.all(Object.keys(n.f).reduce((t,i)=>(n.f[i](e,t),t),[])),n.u=e=>""+e+".min.js",n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o={},n.l=(e,t,i,a)=>{if(o[e])return void o[e].push(t);if(void 0!==i)for(var s,r,l=document.getElementsByTagName("script"),d=0;d<l.length;d++){var u=l[d];if(u.getAttribute("src")==e||u.getAttribute("data-webpack")=="@tsparticles/preset-bubbles:"+i){s=u;break}}s||(r=!0,(s=document.createElement("script")).charset="utf-8",n.nc&&s.setAttribute("nonce",n.nc),s.setAttribute("data-webpack","@tsparticles/preset-bubbles:"+i),s.src=e),o[e]=[t];var c=(t,i)=>{s.onerror=s.onload=null,clearTimeout(h);var a=o[e];if(delete o[e],s.parentNode&&s.parentNode.removeChild(s),a&&a.forEach(e=>e(i)),t)return t(i)},h=setTimeout(c.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=c.bind(null,s.onerror),s.onload=c.bind(null,s.onload),r&&document.head.appendChild(s)},n.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.g.importScripts&&(r=n.g.location+"");var o,r,l=n.g.document;if(!r&&l&&(l.currentScript&&"SCRIPT"===l.currentScript.tagName.toUpperCase()&&(r=l.currentScript.src),!r)){var d=l.getElementsByTagName("script");if(d.length)for(var u=d.length-1;u>-1&&(!r||!/^http(s?):/.test(r));)r=d[u--].src}if(!r)throw Error("Automatic publicPath is not supported in this browser");n.p=r=r.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),e={213:0},n.f.j=(t,i)=>{var a=n.o(e,t)?e[t]:void 0;if(0!==a)if(a)i.push(a[2]);else{var s=new Promise((i,s)=>a=e[t]=[i,s]);i.push(a[2]=s);var o=n.p+n.u(t),r=Error();n.l(o,i=>{if(n.o(e,t)&&(0!==(a=e[t])&&(e[t]=void 0),a)){var s=i&&("load"===i.type?"missing":i.type),o=i&&i.target&&i.target.src;r.message="Loading chunk "+t+` failed.
|
|
2
|
-
(`+s+": "+o+")",r.name="ChunkLoadError",r.type=s,r.request=o,a[1](r)}},"chunk-"+t,t)}},t=(t,i)=>{var a,s,[o,r,l]=i,d=0;if(o.some(t=>0!==e[t])){for(a in r)n.o(r,a)&&(n.m[a]=r[a]);l&&l(n)}for(t&&t(i);d<o.length;d++)s=o[d],n.o(e,s)&&e[s]&&e[s][0](),e[s]=0},(i=this.webpackChunk_tsparticles_preset_bubbles=this.webpackChunk_tsparticles_preset_bubbles||[]).forEach(t.bind(null,0)),i.push=t.bind(null,i.push.bind(i));var c={};async function h(e){await e.pluginManager.register(async e=>{let[{loadBasic:t},{loadEmittersPluginSimple:i},{options:a}]=await Promise.all([n.e(719).then(n.bind(n,9719)),n.e(990).then(n.bind(n,8990)),n.e(361).then(n.bind(n,1361))]);await Promise.all([t(e),i(e)]),e.pluginManager.addPreset("bubbles",a)})}n.r(c),n.d(c,{loadBubblesPreset:()=>h,tsParticles:()=>p.$k3});var p=n(3227);return c})());
|
|
1
|
+
!function(t){t.__tsParticlesInternals=t.__tsParticlesInternals||{},t.__tsParticlesInternals.bundles=t.__tsParticlesInternals.bundles||{},t.__tsParticlesInternals.effects=t.__tsParticlesInternals.effects||{},t.__tsParticlesInternals.engine=t.__tsParticlesInternals.engine||{},t.__tsParticlesInternals.interactions=t.__tsParticlesInternals.interactions||{},t.__tsParticlesInternals.palettes=t.__tsParticlesInternals.palettes||{},t.__tsParticlesInternals.paths=t.__tsParticlesInternals.paths||{},t.__tsParticlesInternals.plugins=t.__tsParticlesInternals.plugins||{},t.__tsParticlesInternals.plugins=t.__tsParticlesInternals.plugins||{},t.__tsParticlesInternals.plugins.emittersShapes=t.__tsParticlesInternals.plugins.emittersShapes||{},t.__tsParticlesInternals.presets=t.__tsParticlesInternals.presets||{},t.__tsParticlesInternals.shapes=t.__tsParticlesInternals.shapes||{},t.__tsParticlesInternals.updaters=t.__tsParticlesInternals.updaters||{},t.__tsParticlesInternals.utils=t.__tsParticlesInternals.utils||{},t.__tsParticlesInternals.canvas=t.__tsParticlesInternals.canvas||{},t.__tsParticlesInternals.canvas=t.__tsParticlesInternals.canvas||{},t.__tsParticlesInternals.canvas.utils=t.__tsParticlesInternals.canvas.utils||{},t.__tsParticlesInternals.path=t.__tsParticlesInternals.path||{},t.__tsParticlesInternals.path=t.__tsParticlesInternals.path||{},t.__tsParticlesInternals.path.utils=t.__tsParticlesInternals.path.utils||{};var e="undefined"!=typeof Proxy?function(t){return new Proxy(t,{get:function(t,e){return e in t||(t[e]={}),t[e]}})}:function(t){return t};t.__tsParticlesInternals.bundles=e(t.__tsParticlesInternals.bundles),t.__tsParticlesInternals.effects=e(t.__tsParticlesInternals.effects),t.__tsParticlesInternals.interactions=e(t.__tsParticlesInternals.interactions),t.__tsParticlesInternals.palettes=e(t.__tsParticlesInternals.palettes),t.__tsParticlesInternals.paths=e(t.__tsParticlesInternals.paths),t.__tsParticlesInternals.plugins=e(t.__tsParticlesInternals.plugins),t.__tsParticlesInternals.plugins.emittersShapes=e(t.__tsParticlesInternals.plugins.emittersShapes),t.__tsParticlesInternals.presets=e(t.__tsParticlesInternals.presets),t.__tsParticlesInternals.shapes=e(t.__tsParticlesInternals.shapes),t.__tsParticlesInternals.updaters=e(t.__tsParticlesInternals.updaters),t.__tsParticlesInternals.utils=e(t.__tsParticlesInternals.utils),t.__tsParticlesInternals.canvas=e(t.__tsParticlesInternals.canvas),t.__tsParticlesInternals.path=e(t.__tsParticlesInternals.path),t.tsparticlesInternalExports=t.tsparticlesInternalExports||{}}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:this),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(((t="undefined"!=typeof globalThis?globalThis:t||self).__tsParticlesInternals=t.__tsParticlesInternals||{},t.__tsParticlesInternals.presets=t.__tsParticlesInternals.presets||{},t.__tsParticlesInternals.presets.bubbles=t.__tsParticlesInternals.presets.bubbles||{}))}(this,function(t){"use strict";const e="generated",i=100,s=.5,n=1e3,a={x:0,y:0,z:0},o=1,r=0,l=0,c=1,h="random",d=2*Math.PI,u="true",p="false",f="canvas",g=255,_=360,y=100,m=100,v=.25;var w;function P(t){return"z"in t?t.z:a.z}!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"}(w||(w={}));class b{x;y;z;constructor(t=a.x,e=a.y,i=a.z){this.x=t,this.y=e,this.z=i}static get origin(){return b.create(a.x,a.y,a.z)}get angle(){return Math.atan2(this.y,this.x)}set angle(t){this._updateFromAngle(t,this.length)}get length(){return Math.sqrt(this.getLengthSq())}set length(t){this._updateFromAngle(this.angle,t)}static clone(t){return b.create(t.x,t.y,P(t))}static create(t,e,i){return"number"==typeof t?new b(t,e??a.y,i??a.z):new b(t.x,t.y,P(t))}add(t){return b.create(this.x+t.x,this.y+t.y,this.z+P(t))}addTo(t){this.x+=t.x,this.y+=t.y,this.z+=P(t)}copy(){return b.clone(this)}div(t){return b.create(this.x/t,this.y/t,this.z/t)}divTo(t){this.x/=t,this.y/=t,this.z/=t}getLengthSq(){return this.x**2+this.y**2}mult(t){return b.create(this.x*t,this.y*t,this.z*t)}multTo(t){this.x*=t,this.y*=t,this.z*=t}normalize(){const t=this.length;0!=t&&this.multTo(1/t)}rotate(t){return b.create(this.x*Math.cos(t)-this.y*Math.sin(t),this.x*Math.sin(t)+this.y*Math.cos(t),a.z)}setTo(t){this.x=t.x,this.y=t.y,this.z=P(t)}sub(t){return b.create(this.x-t.x,this.y-t.y,this.z-P(t))}subFrom(t){this.x-=t.x,this.y-=t.y,this.z-=P(t)}_updateFromAngle(t,e){this.x=Math.cos(t)*e,this.y=Math.sin(t)*e}}class x extends b{constructor(t=a.x,e=a.y){super(t,e,a.z)}static get origin(){return x.create(a.x,a.y)}static clone(t){return x.create(t.x,t.y)}static create(t,e){return"number"==typeof t?new x(t,e??a.y):new x(t.x,t.y)}}function z(t){return"boolean"==typeof t}function M(t){return"string"==typeof t}function S(t){return"number"==typeof t}function C(t){return"object"==typeof t&&null!==t}function I(t){return Array.isArray(t)}function k(t){return null==t}const O=Math.PI/180;let D=Math.random;const R=t=>requestAnimationFrame(t),E=t=>{cancelAnimationFrame(t)};function A(){return F(D(),0,1-Number.EPSILON)}function T(t,e){return A()*(e-t)+t}function F(t,e,i){return Math.min(Math.max(t,e),i)}function L(t){const e=V(t);let i=B(t);return e===i&&(i=0),T(i,e)}function U(t){return S(t)?t:L(t)}function B(t){return S(t)?t:t.min}function V(t){return S(t)?t:t.max}function $(t,e){if(t===e||void 0===e&&S(t))return t;const i=B(t),s=V(t);return void 0!==e?{min:Math.min(i,e),max:Math.max(s,e)}:$(i,s)}function G(t,e){const i=t.x-e.x,s=t.y-e.y;return{dx:i,dy:s,distance:Math.hypot(i,s)}}function q(t,e){const i=t.x-e.x,s=t.y-e.y;return i*i+s*s}function W(t){return t*O}function j(t){const e={x:void 0!==t.position?.x?U(t.position.x):void 0,y:void 0!==t.position?.y?U(t.position.y):void 0};return function(t){return{x:(t.position?.x??A()*i)*t.size.width/i,y:(t.position?.y??A()*i)*t.size.height/i}}({size:t.size,position:e})}function N(t){const{position:e,size:i}=t;return{x:e?.x??A()*i.width,y:e?.y??A()*i.height}}function Z(t){return t?t.endsWith("%")?parseFloat(t)/i:parseFloat(t):1}var H,Q,X,Y,J,K;!function(t){t.auto="auto",t.increase="increase",t.decrease="decrease",t.random="random"}(H||(H={})),function(t){t.increasing="increasing",t.decreasing="decreasing"}(Q||(Q={})),function(t){t.none="none",t.max="max",t.min="min"}(X||(X={})),function(t){t.bottom="bottom",t.left="left",t.right="right",t.top="top"}(Y||(Y={})),function(t){t.precise="precise",t.percent="percent"}(J||(J={})),function(t){t.max="max",t.min="min",t.random="random"}(K||(K={}));function tt(){return globalThis.document}function et(t){if("undefined"!=typeof matchMedia)return matchMedia(t)}function it(t,e,i=!0){return t[void 0!==e&&i?e%t.length:function(t){return Math.floor(A()*t.length)}(t)]}function st(t,e,i,s,n){return function(t,e,i,s){let n=!0;s&&s!==Y.bottom||(n=t.top<e.height+i.x);!n||s&&s!==Y.left||(n=t.right>i.x);!n||s&&s!==Y.right||(n=t.left<e.width+i.y);!n||s&&s!==Y.top||(n=t.bottom>i.y);return n}(nt(t,s??0),e,i,n)}function nt(t,e){return{bottom:t.y+e,left:t.x-e,right:t.x+e,top:t.y-e}}function at(t,...e){for(const i of e){if(k(i))continue;if(!C(i)){t=i;continue}Array.isArray(i)?Array.isArray(t)||(t=[]):C(t)&&!Array.isArray(t)||(t={});const e=Object.keys(i),s=new Set(["__proto__","constructor","prototype"]);if(!e.some(t=>{const e=i[t];return C(e)||Array.isArray(e)})){const n=i,a=t;for(const t of e)if(!s.has(t)&&t in n){const e=n[t];void 0!==e&&(a[t]=e)}continue}for(const n of e){if(s.has(n))continue;const e=t,a=i[n];e[n]=Array.isArray(a)?a.map(t=>at(void 0,t)):at(e[n],a)}}return t}function ot(t,e){return I(t)?t.map((t,i)=>e(t,i)):e(t,0)}function rt(t,e,i){return I(t)?it(t,e,i):t}function lt(t,e){const i=t.value,a=t.animation,o={delayTime:U(a.delay)*n,enable:a.enable,value:U(t.value)*e,max:V(i)*e,min:B(i)*e,loops:0,maxLoops:U(a.count),time:0};if(a.enable){switch(o.decay=1-U(a.decay),a.mode){case H.increase:o.status=Q.increasing;break;case H.decrease:o.status=Q.decreasing;break;case H.random:o.status=A()>=s?Q.increasing:Q.decreasing}const t=a.mode===H.auto;switch(a.startValue){case K.min:o.value=o.min,t&&(o.status=Q.increasing);break;case K.max:o.value=o.max,t&&(o.status=Q.decreasing);break;case K.random:default:o.value=L(o),t&&(o.status=A()>=s?Q.increasing:Q.decreasing)}}return o.initialValue=o.value,o}function ct(t,e){if(!(t.mode===J.percent)){const{mode:e,...i}=t;return i}return"x"in t?{x:t.x/i*e.width,y:t.y/i*e.height}:{width:t.width/i*e.width,height:t.height/i*e.height}}function ht(t,e){return ct(t,e)}function dt(t,e){return ct(t,e)}function ut(t,e,i,s,n){if(t.destroyed||!e.enable||(e.maxLoops??0)>0&&(e.loops??0)>(e.maxLoops??0))return;const a=(e.velocity??0)*n.factor,o=e.min,r=e.max,l=e.decay??1;if(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 Q.increasing:e.value+=a;break;case Q.decreasing:e.value-=a}switch(e.velocity&&1!==l&&(e.velocity*=l),e.status){case Q.increasing:e.value>=r&&(e.status=Q.decreasing,e.loops??=0,e.loops++);break;case Q.decreasing:e.value<=o&&(e.status=Q.increasing,e.loops??=0,e.loops++)}!function(t,e,i,s,n){switch(e){case X.max:i>=n&&t.destroy();break;case X.min:i<=s&&t.destroy()}}(t,s,e.value,o,r),t.destroyed||(e.value=F(e.value,o,r))}}const pt=function(t){const e=new Map,i=(t,e=new WeakSet)=>{if(null===t)return"null";const s=typeof t;if("undefined"===s)return"undefined";if("number"===s||"boolean"===s||"string"===s)return JSON.stringify(t);if("function"===s)try{return t.toString()}catch{return'"[Function]"'}if("symbol"===s)try{return t.toString()}catch{return'"[Symbol]"'}if(Array.isArray(t))return`[${t.map(t=>i(t,e)).join(",")}]`;if(e.has(t))return'"[Circular]"';e.add(t);return`{${Object.keys(t).sort().map(s=>`${JSON.stringify(s)}:${i(t[s],e)}`).join(",")}}`},s=t=>(t=>i(t))(t);return(...i)=>{const n=s(i),a=Date.now(),o=e.get(n);if(void 0!==o)return e.delete(n),e.set(n,{value:o.value,ts:o.ts}),o.value;const r=t(...i);return e.set(n,{value:r,ts:a}),r}}(function(t){const e=tt().createElement("div").style,i={width:"100%",height:"100%",margin:"0",padding:"0",borderWidth:"0",position:"fixed",zIndex:t.toString(10),"z-index":t.toString(10),top:"0",left:"0","pointer-events":"none"};for(const t in i){const s=i[t];void 0!==s&&e.setProperty(t,s)}return e});function ft(t,e,i,s,n){if(s){let s={passive:!0};z(n)?s.capture=n:void 0!==n&&(s=n),t.addEventListener(e,i,s)}else{const s=n;t.removeEventListener(e,i,s)}}async function gt(t,e,i,s=!1){let n=e.get(t);if(!n||s){const s=await Promise.all([...i.entries()].map(([e,i])=>i(t).then(t=>[e,t])));n=new Map(s),e.set(t,n)}return n}class _t{_listeners;constructor(){this._listeners=new Map}addEventListener(t,e){this.removeEventListener(t,e);let i=this._listeners.get(t);i||(i=[],this._listeners.set(t,i)),i.push(e)}dispatchEvent(t,e){const i=this._listeners.get(t);i?.forEach(t=>{t(e)})}hasEventListener(t){return!!this._listeners.get(t)}removeAllEventListeners(t){t?this._listeners.delete(t):this._listeners=new Map}removeEventListener(t,e){const i=this._listeners.get(t);if(!i)return;const s=i.length,n=i.indexOf(e);n<0||(1===s?this._listeners.delete(t):i.splice(n,1))}}var yt;!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"}(yt||(yt={}));class mt{colorManagers=new Map;easingFunctions=new Map;effectDrawers=new Map;initializers={effects:new Map,shapes:new Map,updaters:new Map};palettes=new Map;plugins=[];presets=new Map;shapeDrawers=new Map;updaters=new Map;_allLoadersSet=new Set;_configs=new Map;_engine;_executedSet=new Set;_initialized=!1;_isRunningLoaders=!1;_loadPromises=new Set;constructor(t){this._engine=t}get configs(){const t={};for(const[e,i]of this._configs)t[e]=i;return t}addColorManager(t,e){this.colorManagers.set(t,e)}addConfig(t){const e=t.key??t.name??"default";this._configs.set(e,t),this._engine.dispatchEvent(yt.configAdded,{data:{name:e,config:t}})}addEasing(t,e){this.easingFunctions.get(t)||this.easingFunctions.set(t,e)}addEffect(t,e){this.initializers.effects.set(t,e)}addPalette(t,e){this.palettes.set(t,e)}addParticleUpdater(t,e){this.initializers.updaters.set(t,e)}addPlugin(t){this.getPlugin(t.id)||this.plugins.push(t)}addPreset(t,e,i=!1){!i&&this.getPreset(t)||this.presets.set(t,e)}addShape(t,e){for(const i of t)this.initializers.shapes.set(i,e)}clearPlugins(t){this.effectDrawers.delete(t),this.shapeDrawers.delete(t),this.updaters.delete(t)}getEasing(t){return this.easingFunctions.get(t)??(t=>t)}getEffectDrawers(t,e=!1){return gt(t,this.effectDrawers,this.initializers.effects,e)}getPalette(t){return this.palettes.get(t)}getPlugin(t){return this.plugins.find(e=>e.id===t)}getPreset(t){return this.presets.get(t)}async getShapeDrawers(t,e=!1){return gt(t,this.shapeDrawers,this.initializers.shapes,e)}async getUpdaters(t,e=!1){return async function(t,e,i,s=!1){let n=e.get(t);return n&&!s||(n=await Promise.all([...i.values()].map(e=>e(t))),e.set(t,n)),n}(t,this.updaters,this.initializers.updaters,e)}async init(){if(!this._initialized&&!this._isRunningLoaders){this._isRunningLoaders=!0,this._executedSet=new Set,this._allLoadersSet=new Set(this._loadPromises);try{for(const t of this._allLoadersSet)await this._runLoader(t,this._executedSet,this._allLoadersSet)}finally{this._loadPromises.clear(),this._isRunningLoaders=!1,this._initialized=!0}}}loadParticlesOptions(t,e,...i){const s=this.updaters.get(t);s&&s.forEach(t=>t.loadOptions?.(e,...i))}async register(...t){if(this._initialized)throw new Error("Register plugins can only be done before calling tsParticles.load()");for(const e of t)this._isRunningLoaders?await this._runLoader(e,this._executedSet,this._allLoadersSet):this._loadPromises.add(e)}async _runLoader(t,e,i){e.has(t)||(e.add(t),i.add(t),await t(this._engine))}}const vt=t=>(...e)=>{t(...e)},wt={debug:vt(console.debug),error:(t,...e)=>{console.error(`tsParticles - Error - ${t}`,...e)},info:vt(console.info),log:vt(console.log),trace:vt(console.trace),verbose:vt(console.log),warning:vt(console.warn)};function Pt(){return wt}const bt="100%";class xt{pluginManager=new mt(this);_domArray=[];_eventDispatcher=new _t;_initialized=!1;get items(){return this._domArray}get version(){return"4.0.0-beta.15"}addEventListener(t,e){this._eventDispatcher.addEventListener(t,e)}checkVersion(t){if(this.version!==t)throw new Error(`The tsParticles version is different from the loaded plugins version. Engine version: ${this.version}. Plugin version: ${t}`)}dispatchEvent(t,e){this._eventDispatcher.dispatchEvent(t,e)}async init(){this._initialized||(await this.pluginManager.init(),this._initialized=!0)}item(t){const{items:e}=this,i=e[t];if(!i?.destroyed)return i;e.splice(t,1)}async load(t){await this.init();const{Container:i}=await Promise.resolve().then(function(){return Bi}),s=t.id??t.element?.id??`tsparticles${Math.floor(1e4*A()).toString()}`,{index:n,url:a}=t,o=a?await async function(t){const e=rt(t.url,t.index);if(!e)return t.fallback;const i=await fetch(e);return i.ok?await i.json():(Pt().error(`${i.status.toString()} while retrieving config file`),t.fallback)}({fallback:t.options,url:a,index:n}):t.options,r=rt(o,n),{items:l}=this,c=l.findIndex(t=>t.id.description===s),h=new i({dispatchCallback:(t,e)=>{this.dispatchEvent(t,e)},id:s,onDestroy:t=>{if(!t)return;const e=this.items,i=e.indexOf(h);i>=0&&e.splice(i,1)},pluginManager:this.pluginManager,sourceOptions:r});if(c>=0){const t=this.item(c),e=t?1:0;t&&!t.destroyed&&t.destroy(!1),l.splice(c,e,h)}else l.push(h);const d=((t,i)=>{const s=tt();let n=i??s.getElementById(t);return n||(n=s.createElement("canvas"),n.id=t,n.dataset[e]=u,s.body.append(n),n)})(s,t.element),g=(t=>{const i=tt();let s;if(t instanceof HTMLCanvasElement||t.tagName.toLowerCase()===f)s=t,s.dataset[e]??=p,s.dataset[e]===u&&(s.style.width||=bt,s.style.height||=bt,s.style.pointerEvents="none",s.style.setProperty("pointer-events","none"));else{const n=t.getElementsByTagName(f)[0];n?(s=n,s.dataset[e]=p):(s=i.createElement(f),s.dataset[e]=u,t.appendChild(s)),s.style.width||=bt,s.style.height||=bt,s.style.pointerEvents="none",s.style.setProperty("pointer-events","none")}return s})(d);return h.canvas.loadCanvas(g),await h.start(),h}async refresh(t=!0){t&&await Promise.all(this.items.map(t=>t.refresh()))}removeEventListener(t,e){this._eventDispatcher.removeEventListener(t,e)}}var zt,Mt,St,Ct,It,kt,Ot,Dt;!function(t){t.circle="circle",t.rectangle="rectangle"}(zt||(zt={}));class Rt{position;type;constructor(t,e,i){this.position={x:t,y:e},this.type=i}_resetPosition(t,e){this.position.x=t,this.position.y=e}}class Et extends Rt{radius;constructor(t,e,i){super(t,e,zt.circle),this.radius=i}contains(t){return e=t,i=this.position,s=this.radius,q(e,i)<=s*s;var e,i,s}intersects(t){const e=this.position,i=t.position,s=this.radius,n=Math.abs(i.x-e.x),a=Math.abs(i.y-e.y);if(t instanceof Et||t.type===zt.circle){return s+t.radius>Math.hypot(n,a)}if(t instanceof At||t.type===zt.rectangle){const e=t,{width:i,height:o}=e.size;return Math.pow(n-i,2)+Math.pow(a-o,2)<=s**2||n<=s+i&&a<=s+o||n<=i||a<=o}return!1}reset(t,e,i){return this._resetPosition(t,e),this.radius=i,this}}class At extends Rt{size;constructor(t,e,i,s){super(t,e,zt.rectangle),this.size={height:s,width:i}}contains(t){const e=this.size.width,i=this.size.height,s=this.position;return t.x>=s.x&&t.x<=s.x+e&&t.y>=s.y&&t.y<=s.y+i}intersects(t){if(t instanceof Et)return t.intersects(this);if(!(t instanceof At))return!1;const e=this.size.width,i=this.size.height,s=this.position,n=t.position,a=t.size,o=a.width,r=a.height;return n.x<s.x+e&&n.x+o>s.x&&n.y<s.y+i&&n.y+r>s.y}reset(t,e,i,s){return this._resetPosition(t,e),this.size.width=i,this.size.height=s,this}}!function(t){t.clockwise="clockwise",t.counterClockwise="counter-clockwise",t.random="random"}(Mt||(Mt={})),function(t){t.delete="delete",t.wait="wait"}(St||(St={})),function(t){t.bounce="bounce",t.none="none",t.out="out",t.destroy="destroy",t.split="split"}(Ct||(Ct={})),function(t){t.darken="darken",t.enlighten="enlighten"}(It||(It={})),function(t){t.linear="linear",t.radial="radial",t.random="random"}(kt||(kt={})),function(t){t.normal="normal",t.inside="inside",t.outside="outside"}(Ot||(Ot={})),function(t){t.easeInBack="ease-in-back",t.easeInBounce="ease-in-bounce",t.easeInCirc="ease-in-circ",t.easeInCubic="ease-in-cubic",t.easeInElastic="ease-in-elastic",t.easeInExpo="ease-in-expo",t.easeInGaussian="ease-in-gaussian",t.easeInLinear="ease-in-linear",t.easeInQuad="ease-in-quad",t.easeInQuart="ease-in-quart",t.easeInQuint="ease-in-quint",t.easeInSigmoid="ease-in-sigmoid",t.easeInSine="ease-in-sine",t.easeInSmoothstep="ease-in-smoothstep",t.easeOutBack="ease-out-back",t.easeOutBounce="ease-out-bounce",t.easeOutCirc="ease-out-circ",t.easeOutCubic="ease-out-cubic",t.easeOutElastic="ease-out-elastic",t.easeOutExpo="ease-out-expo",t.easeOutGaussian="ease-out-gaussian",t.easeOutLinear="ease-out-linear",t.easeOutQuad="ease-out-quad",t.easeOutQuart="ease-out-quart",t.easeOutQuint="ease-out-quint",t.easeOutSigmoid="ease-out-sigmoid",t.easeOutSine="ease-out-sine",t.easeOutSmoothstep="ease-out-smoothstep",t.easeInOutBack="ease-in-out-back",t.easeInOutBounce="ease-in-out-bounce",t.easeInOutCirc="ease-in-out-circ",t.easeInOutCubic="ease-in-out-cubic",t.easeInOutElastic="ease-in-out-elastic",t.easeInOutExpo="ease-in-out-expo",t.easeInOutGaussian="ease-in-out-gaussian",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.easeInOutSigmoid="ease-in-out-sigmoid",t.easeInOutSine="ease-in-out-sine",t.easeInOutSmoothstep="ease-in-out-smoothstep"}(Dt||(Dt={}));class Tt{count;decay;delay;enable;speed;sync;constructor(){this.count=0,this.enable=!1,this.speed=1,this.decay=0,this.delay=0,this.sync=!1}load(t){k(t)||(void 0!==t.count&&(this.count=$(t.count)),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.speed&&(this.speed=$(t.speed)),void 0!==t.decay&&(this.decay=$(t.decay)),void 0!==t.delay&&(this.delay=$(t.delay)),void 0!==t.sync&&(this.sync=t.sync))}}class Ft extends Tt{mode;startValue;constructor(){super(),this.mode=H.auto,this.startValue=K.random}load(t){super.load(t),k(t)||(void 0!==t.mode&&(this.mode=t.mode),void 0!==t.startValue&&(this.startValue=t.startValue))}}class Lt extends Tt{max;min;offset;constructor(t,e){super(),this.min=t,this.max=e,this.offset=0,this.sync=!0}load(t){super.load(t),k(t)||(void 0!==t.max&&(this.max=t.max),void 0!==t.min&&(this.min=t.min),void 0!==t.offset&&(this.offset=$(t.offset)))}}class Ut{h=new Lt(0,_);l=new Lt(0,m);s=new Lt(0,y);load(t){k(t)||(this.h.load(t.h),this.s.load(t.s),this.l.load(t.l))}}class Bt{value;constructor(){this.value=""}static create(t,e){const i=new Bt;return i.load(t),void 0!==e&&(M(e)||I(e)?i.load({value:e}):i.load(e)),i}load(t){k(t)||k(t.value)||(this.value=t.value)}}class Vt extends Bt{animation;constructor(){super(),this.animation=new Ut}static create(t,e){const i=new Vt;return i.load(t),void 0!==e&&(M(e)||I(e)?i.load({value:e}):i.load(e)),i}load(t){if(super.load(t),k(t))return;const e=t.animation;void 0!==e&&(void 0===e.enable?this.animation.load(t.animation):this.animation.h.load(e))}}class $t{color;image;opacity;position;repeat;size;constructor(){this.color=new Bt,this.color.value="",this.image="",this.position="",this.repeat="",this.size="",this.opacity=1}load(t){k(t)||(void 0!==t.color&&(this.color=Bt.create(this.color,t.color)),void 0!==t.image&&(this.image=t.image),void 0!==t.position&&(this.position=t.position),void 0!==t.repeat&&(this.repeat=t.repeat),void 0!==t.size&&(this.size=t.size),void 0!==t.opacity&&(this.opacity=t.opacity))}}class Gt{enable;zIndex;constructor(){this.enable=!0,this.zIndex=0}load(t){k(t)||(void 0!==t.enable&&(this.enable=t.enable),void 0!==t.zIndex&&(this.zIndex=t.zIndex))}}class qt{delay;enable;constructor(){this.delay=.5,this.enable=!0}load(t){k(t)||(void 0!==t.delay&&(this.delay=t.delay),void 0!==t.enable&&(this.enable=t.enable))}}class Wt{close;options;type;constructor(){this.close=!0,this.options={},this.type=[]}load(t){if(k(t))return;const e=t.options;if(void 0!==e)for(const t in e){const i=e[t];i&&(this.options[t]=at(this.options[t]??{},i))}void 0!==t.close&&(this.close=t.close),void 0!==t.type&&(this.type=t.type)}}class jt{color;enable;opacity;constructor(){this.enable=!0,this.opacity=1}load(t){k(t)||(void 0!==t.color&&(this.color=Vt.create(this.color,t.color)),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.opacity&&(this.opacity=$(t.opacity)))}}class Nt{offset;value;constructor(){this.offset=0,this.value=90}load(t){k(t)||(void 0!==t.offset&&(this.offset=$(t.offset)),void 0!==t.value&&(this.value=$(t.value)))}}class Zt{mode;radius;x;y;constructor(){this.x=50,this.y=50,this.mode=J.percent,this.radius=0}load(t){k(t)||(void 0!==t.x&&(this.x=t.x),void 0!==t.y&&(this.y=t.y),void 0!==t.mode&&(this.mode=t.mode),void 0!==t.radius&&(this.radius=t.radius))}}class Ht{acceleration;enable;inverse;maxSpeed;constructor(){this.acceleration=9.81,this.enable=!1,this.inverse=!1,this.maxSpeed=50}load(t){k(t)||(void 0!==t.acceleration&&(this.acceleration=$(t.acceleration)),void 0!==t.enable&&(this.enable=t.enable),void 0!==t.inverse&&(this.inverse=t.inverse),void 0!==t.maxSpeed&&(this.maxSpeed=$(t.maxSpeed)))}}class Qt{value;constructor(){this.value=0}load(t){k(t)||k(t.value)||(this.value=$(t.value))}}class Xt extends Qt{animation=new Tt;load(t){if(super.load(t),k(t))return;const e=t.animation;void 0!==e&&this.animation.load(e)}}class Yt extends Xt{animation;constructor(){super(),this.animation=new Ft}load(t){super.load(t)}}class Jt{clamp;delay;enable;generator;options;constructor(){this.clamp=!0,this.delay=new Qt,this.enable=!1,this.options={}}load(t){k(t)||(void 0!==t.clamp&&(this.clamp=t.clamp),this.delay.load(t.delay),void 0!==t.enable&&(this.enable=t.enable),this.generator=t.generator,t.options&&(this.options=at(this.options,t.options)))}}class Kt{bottom;default;left;right;top;constructor(){this.default=Ct.out}load(t){k(t)||(void 0!==t.default&&(this.default=t.default),this.bottom=t.bottom??t.default,this.left=t.left??t.default,this.right=t.right??t.default,this.top=t.top??t.default)}}class te{acceleration;enable;position;constructor(){this.acceleration=0,this.enable=!1}load(t){k(t)||(void 0!==t.acceleration&&(this.acceleration=$(t.acceleration)),void 0!==t.enable&&(this.enable=t.enable),t.position&&(this.position=at({},t.position)))}}class ee{angle;center;decay;direction;distance;drift;enable;gravity;outModes;path;random;size;speed;spin;straight;vibrate;warp;constructor(){this.angle=new Nt,this.center=new Zt,this.decay=0,this.distance={},this.direction=w.none,this.drift=0,this.enable=!1,this.gravity=new Ht,this.path=new Jt,this.outModes=new Kt,this.random=!1,this.size=!1,this.speed=2,this.spin=new te,this.straight=!1,this.vibrate=!1,this.warp=!1}load(t){if(k(t))return;this.angle.load(S(t.angle)?{value:t.angle}:t.angle),this.center.load(t.center),void 0!==t.decay&&(this.decay=$(t.decay)),void 0!==t.direction&&(this.direction=t.direction),void 0!==t.distance&&(this.distance=S(t.distance)?{horizontal:t.distance,vertical:t.distance}:{...t.distance}),void 0!==t.drift&&(this.drift=$(t.drift)),void 0!==t.enable&&(this.enable=t.enable),this.gravity.load(t.gravity);const e=t.outModes;void 0!==e&&(C(e)?this.outModes.load(e):this.outModes.load({default:e})),this.path.load(t.path),void 0!==t.random&&(this.random=t.random),void 0!==t.size&&(this.size=t.size),void 0!==t.speed&&(this.speed=$(t.speed)),this.spin.load(t.spin),void 0!==t.straight&&(this.straight=t.straight),void 0!==t.vibrate&&(this.vibrate=t.vibrate),void 0!==t.warp&&(this.warp=t.warp)}}class ie extends Ft{destroy;constructor(){super(),this.destroy=X.none,this.speed=2}load(t){super.load(t),k(t)||void 0!==t.destroy&&(this.destroy=t.destroy)}}class se extends Yt{animation;constructor(){super(),this.animation=new ie,this.value=1}load(t){if(k(t))return;super.load(t);const e=t.animation;void 0!==e&&this.animation.load(e)}}class ne{color;opacity;width;constructor(){this.width=0}load(t){k(t)||(void 0!==t.color&&(this.color=Vt.create(this.color,t.color)),void 0!==t.width&&(this.width=$(t.width)),void 0!==t.opacity&&(this.opacity=$(t.opacity)))}}class ae{color;fill;stroke;load(t){k(t)||(void 0!==t.color&&(this.color=Vt.create(this.color,t.color)),void 0!==t.fill&&(this.fill??=new jt,this.fill.load(t.fill)),void 0!==t.stroke&&(this.stroke??=new ne,this.stroke.load(t.stroke)))}}class oe extends Qt{constructor(){super(),this.value=1}}class re{horizontal;vertical;constructor(){this.horizontal=new oe,this.vertical=new oe}load(t){k(t)||(this.horizontal.load(t.horizontal),this.vertical.load(t.vertical))}}class le{enable;height;width;constructor(){this.enable=!1,this.width=1920,this.height=1080}load(t){if(k(t))return;void 0!==t.enable&&(this.enable=t.enable);const e=t.width;void 0!==e&&(this.width=e);const i=t.height;void 0!==i&&(this.height=i)}}class ce{mode;value;constructor(){this.mode=St.delete,this.value=0}load(t){k(t)||(void 0!==t.mode&&(this.mode=t.mode),void 0!==t.value&&(this.value=t.value))}}class he{density;limit;value;constructor(){this.density=new le,this.limit=new ce,this.value=0}load(t){k(t)||(this.density.load(t.density),this.limit.load(t.limit),void 0!==t.value&&(this.value=t.value))}}class de{close;options;type;constructor(){this.close=!0,this.options={},this.type="circle"}load(t){if(k(t))return;const e=t.options;if(void 0!==e)for(const t in e){const i=e[t];i&&(this.options[t]=at(this.options[t]??{},i))}void 0!==t.close&&(this.close=t.close),void 0!==t.type&&(this.type=t.type)}}class ue extends Ft{destroy;constructor(){super(),this.destroy=X.none,this.speed=5}load(t){super.load(t),k(t)||void 0!==t.destroy&&(this.destroy=t.destroy)}}class pe extends Yt{animation;constructor(){super(),this.animation=new ue,this.value=3}load(t){if(super.load(t),k(t))return;const e=t.animation;void 0!==e&&this.animation.load(e)}}class fe extends Qt{opacityRate;sizeRate;velocityRate;constructor(){super(),this.opacityRate=1,this.sizeRate=1,this.velocityRate=1}load(t){super.load(t),k(t)||(void 0!==t.opacityRate&&(this.opacityRate=t.opacityRate),void 0!==t.sizeRate&&(this.sizeRate=t.sizeRate),void 0!==t.velocityRate&&(this.velocityRate=t.velocityRate))}}class ge{bounce;effect;groups;move;number;opacity;paint;palette;reduceDuplicates;shape;size;zIndex;_container;_pluginManager;constructor(t,e){this._pluginManager=t,this._container=e,this.bounce=new re,this.effect=new Wt,this.groups={},this.move=new ee,this.number=new he,this.opacity=new se,this.paint=new ae,this.paint.color=new Vt,this.paint.color.value="#fff",this.paint.fill=new jt,this.paint.fill.enable=!0,this.reduceDuplicates=!1,this.shape=new de,this.size=new pe,this.zIndex=new fe}load(t){if(k(t))return;if(t.palette&&(this.palette=t.palette,this._importPalette(this.palette)),void 0!==t.groups)for(const e of Object.keys(t.groups)){if(!(e in t.groups))continue;const i=t.groups[e];void 0!==i&&(this.groups[e]=at(this.groups[e]??{},i))}void 0!==t.reduceDuplicates&&(this.reduceDuplicates=t.reduceDuplicates),this.bounce.load(t.bounce),this.effect.load(t.effect),this.move.load(t.move),this.number.load(t.number),this.opacity.load(t.opacity);const e=t.paint;if(e&&(I(e)?this.paint=ot(e,t=>{const e=new ae;return e.load(t),e}):I(this.paint)?(this.paint=new ae,this.paint.load(e)):this.paint.load(e)),this.shape.load(t.shape),this.size.load(t.size),this.zIndex.load(t.zIndex),this._container){for(const e of this._pluginManager.plugins)e.loadParticlesOptions&&e.loadParticlesOptions(this._container,this,t);const e=this._pluginManager.updaters.get(this._container);if(e)for(const i of e)i.loadOptions&&i.loadOptions(this,t)}}_importPalette=t=>{const e=this._pluginManager.getPalette(t);if(!e)return;const i=e.colors,s=(I(i)?i:[i]).flatMap(t=>{const e=t.fill,i=t.stroke,s=e?{color:{value:e.value},enable:e.enable,opacity:e.opacity}:void 0;return i?[{fill:s,stroke:{color:{value:i.value},opacity:i.opacity,width:i.width||0}}]:[{fill:s}]}),n=s.length>1?s:s[0]??{};this.load({paint:n,blend:{enable:!0,mode:e.blendMode}})}}function _e(t,...e){for(const i of e)t.load(i)}function ye(t,e,...i){const s=new ge(t,e);return _e(s,...i),s}class me{autoPlay;background;clear;defaultThemes;delay;detectRetina;duration;fpsLimit;fullScreen;hdr;key;name;palette;particles;pauseOnBlur;pauseOnOutsideViewport;preset;resize;smooth;style;zLayers;_container;_pluginManager;constructor(t,e){this._pluginManager=t,this._container=e,this.autoPlay=!0,this.background=new $t,this.clear=!0,this.defaultThemes={},this.delay=0,this.fullScreen=new Gt,this.detectRetina=!0,this.duration=0,this.fpsLimit=120,this.hdr=!0,this.particles=ye(this._pluginManager,this._container),this.pauseOnBlur=!0,this.pauseOnOutsideViewport=!0,this.resize=new qt,this.smooth=!1,this.style={},this.zLayers=100}load(t){if(k(t))return;void 0!==t.preset&&(this.preset=t.preset,ot(this.preset,t=>{this._importPreset(t)})),void 0!==t.palette&&(this.palette=t.palette,this._importPalette(this.palette)),void 0!==t.autoPlay&&(this.autoPlay=t.autoPlay),void 0!==t.clear&&(this.clear=t.clear),void 0!==t.key&&(this.key=t.key),void 0!==t.name&&(this.name=t.name),void 0!==t.delay&&(this.delay=$(t.delay));const e=t.detectRetina;void 0!==e&&(this.detectRetina=e),void 0!==t.duration&&(this.duration=$(t.duration));const i=t.fpsLimit;void 0!==i&&(this.fpsLimit=i),void 0!==t.hdr&&(this.hdr=t.hdr),void 0!==t.pauseOnBlur&&(this.pauseOnBlur=t.pauseOnBlur),void 0!==t.pauseOnOutsideViewport&&(this.pauseOnOutsideViewport=t.pauseOnOutsideViewport),void 0!==t.zLayers&&(this.zLayers=t.zLayers),this.background.load(t.background);const s=t.fullScreen;z(s)?this.fullScreen.enable=s:this.fullScreen.load(s),this.particles.load(t.particles),this.resize.load(t.resize),this.style=at(this.style,t.style),void 0!==t.smooth&&(this.smooth=t.smooth),this._pluginManager.plugins.forEach(e=>{e.loadOptions(this._container,this,t)})}_importPalette=t=>{const e=this._pluginManager.getPalette(t);e&&this.load({background:{color:e.background},blend:{enable:!0,mode:e.blendMode},particles:{palette:t}})};_importPreset=t=>{this.load(this._pluginManager.getPreset(t))}}function ve(t,e){t.clearRect(a.x,a.y,e.width,e.height)}function we(t,e,i,s){e.drawParticle&&e.drawParticle(t,i,s)}const Pe=new Map;function be(t,e){let i=Pe.get(t);if(!i){if(i=e(),Pe.size>=1e3){[...Pe.keys()].slice(0,500).forEach(t=>Pe.delete(t))}Pe.set(t,i)}return i}function xe(t,e,i,s=!0){if(!e)return;const n=M(e)?{value:e}:e;if(M(n.value))return ze(t,n.value,i,s);if(I(n.value)){const e=it(n.value,i,s);if(!e)return;return xe(t,{value:e})}for(const e of t.colorManagers.values()){const t=e.handleRangeColor(n);if(t)return t}}function ze(t,e,i,s=!0){if(!e)return;const n=M(e)?{value:e}:e;if(M(n.value))return n.value===h?function(){const t=0,e=256,i=()=>Math.floor(T(t,e));return{b:i(),g:i(),r:i()}}():function(t,e){return function(t,e){if(e)for(const i of t.colorManagers.values())if(i.accepts(e))return i.parseString(e)}(t,e)}(t,n.value);if(I(n.value)){const e=it(n.value,i,s);if(!e)return;return ze(t,{value:e})}for(const e of t.colorManagers.values()){const t=e.handleColor(n);if(t)return t}}function Me(t,e,i,n=!0){const a=xe(t,e,i,n);return a?function(t){const e=t.r/g,i=t.g/g,n=t.b/g,a=Math.max(e,i,n),o=Math.min(e,i,n),r={h:0,l:(a+o)*s,s:0};a!==o&&(r.s=r.l<s?(a-o)/(a+o):(a-o)/(2-a-o),r.h=e===a?(i-n)/(a-o):i===a?2+(n-e)/(a-o):4+(e-i)/(a-o));r.l*=m,r.s*=y,r.h*=60,r.h<0&&(r.h+=_);r.h>=_&&(r.h-=_);return r}(a):void 0}function Se(t){const e=(t.h%_+_)%_,i=Math.max(0,Math.min(y,t.s)),n=Math.max(0,Math.min(m,t.l)),a=e/_,o=i/y,r=n/m;if(0===i){const t=Math.round(r*g);return{r:t,g:t,b:t}}const l=(t,e,i)=>{if(i<0&&i++,i>1&&i--,6*i<1)return t+6*(e-t)*i;if(2*i<1)return e;if(3*i<2){return t+(e-t)*(2/3-i)*6}return t},c=r<s?r*(1+o):r+o-r*o,h=2*r-c,d=1/3,u=Math.min(g,g*l(h,c,a+d)),p=Math.min(g,g*l(h,c,a)),f=Math.min(g,g*l(h,c,a-d));return{r:Math.round(u),g:Math.round(p),b:Math.round(f)}}function Ce(t,e,i){const s=i??1;return be(`rgb-${t.r.toFixed(2)}-${t.g.toFixed(2)}-${t.b.toFixed(2)}-${e?"hdr":"sdr"}-${s.toString()}`,()=>e?Ie(t,i):function(t,e){return`rgba(${t.r.toString()}, ${t.g.toString()}, ${t.b.toString()}, ${(e??1).toString()})`}(t,i))}function Ie(t,e){return`color(display-p3 ${(t.r/g).toString()} ${(t.g/g).toString()} ${(t.b/g).toString()} / ${(e??1).toString()})`}function ke(t,e,i){const s=i??1;return be(`hsl-${t.h.toFixed(2)}-${t.s.toFixed(2)}-${t.l.toFixed(2)}-${e?"hdr":"sdr"}-${s.toString()}`,()=>e?function(t,e){return Ie(Se(t),e)}(t,i):function(t,e){return`hsla(${t.h.toString()}, ${t.s.toString()}%, ${t.l.toString()}%, ${(e??1).toString()})`}(t,i))}function Oe(t){return void 0===t?void 0:{h:t.h.value,s:t.s.value,l:t.l.value}}function De(t,e,i){const s={h:{enable:!1,value:t.h,min:0,max:_},s:{enable:!1,value:t.s,min:0,max:y},l:{enable:!1,value:t.l,min:0,max:m}};return e&&(Re(s.h,e.h,i),Re(s.s,e.s,i),Re(s.l,e.l,i)),s}function Re(t,e,s){t.enable=e.enable,t.min=e.min,t.max=e.max,t.enable?(t.velocity=U(e.speed)/i*s,t.decay=1-U(e.decay),t.status=Q.increasing,t.loops=0,t.maxLoops=U(e.count),t.time=0,t.delayTime=U(e.delay)*n,e.sync||(t.velocity*=A(),t.value*=A()),t.initialValue=t.value,t.offset=$(e.offset)):t.velocity=0}function Ee(t,e,i){if(!t.enable||(t.maxLoops??0)>0&&(t.loops??0)>(t.maxLoops??0))return;if(t.time??=0,(t.delayTime??0)>0&&t.time<(t.delayTime??0)&&(t.time+=i.value),(t.delayTime??0)>0&&t.time<(t.delayTime??0))return;const s=t.offset?L(t.offset):0,n=(t.velocity??0)*i.factor+3.6*s,a=t.decay??1,o=t.max,r=t.min;e&&t.status!==Q.increasing?(t.value-=n,t.value<r&&(t.loops??=0,t.loops++,t.status=Q.increasing)):(t.value+=n,t.value>o&&(t.loops??=0,t.loops++,e?t.status=Q.decreasing:t.value-=o)),t.velocity&&1!==a&&(t.velocity*=a),t.value=F(t.value,r,o)}function Ae(t,e){if(!t)return;const{h:i,s:s,l:n}=t;Ee(i,!1,e),Ee(s,!0,e),Ee(n,!0,e)}const Te=new xt;class Fe{draw(t){!function(t){const{context:e,particle:i,radius:s}=t;i.circleRange??={min:0,max:d};const n=i.circleRange;e.arc(a.x,a.y,s,n.min,n.max,!1)}(t)}getSidesCount(){return 12}particleInit(t,e){const i=e.shapeData,s=i?.angle??{max:360,min:0};e.circleRange=C(s)?{min:W(s.min),max:W(s.max)}:{min:0,max:W(s)}}}async function Le(t){t.checkVersion("4.0.0-beta.15"),await t.pluginManager.register(t=>{t.pluginManager.addShape(["circle"],()=>Promise.resolve(new Fe))})}var Ue;!function(t){t[t.r=1]="r",t[t.g=2]="g",t[t.b=3]="b",t[t.a=4]="a"}(Ue||(Ue={}));const Be=/^#?([a-f\d])([a-f\d])([a-f\d])([a-f\d])?$/i,Ve=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})?$/i;class $e{accepts(t){return t.startsWith("#")}handleColor(t){return this._parseString(t.value)}handleRangeColor(t){return this._parseString(t.value)}parseString(t){return this._parseString(t)}_parseString(t){if("string"!=typeof t||!this.accepts(t))return;const e=t.replace(Be,(t,e,i,s,n)=>e+e+i+i+s+s+(void 0===n?"":n+n)),i=Ve.exec(e);return i?{a:i[Ue.a]?Number.parseInt(i[Ue.a],16)/255:1,b:Number.parseInt(i[Ue.b]??"0",16),g:Number.parseInt(i[Ue.g]??"0",16),r:Number.parseInt(i[Ue.r]??"0",16)}:void 0}}async function Ge(t){t.checkVersion("4.0.0-beta.15"),await t.pluginManager.register(t=>{t.pluginManager.addColorManager("hex",new $e)})}var qe;!function(t){t[t.h=1]="h",t[t.s=2]="s",t[t.l=3]="l",t[t.a=5]="a"}(qe||(qe={}));const We=/hsla?\(\s*(\d+)\s*[\s,]\s*(\d+)%\s*[\s,]\s*(\d+)%\s*([\s,]\s*(0|1|0?\.\d+|(\d{1,3})%)\s*)?\)/i;class je{accepts(t){return t.startsWith("hsl")}handleColor(t){const e=t.value.hsl??t.value;if("h"in e&&"s"in e&&"l"in e)return Se(e)}handleRangeColor(t){const e=t.value.hsl??t.value;if("h"in e&&"s"in e&&"l"in e)return Se({h:U(e.h),l:U(e.l),s:U(e.s)})}parseString(t){if(!this.accepts(t))return;const e=We.exec(t);return e?function(t){const e=Se(t);return{a:t.a,b:e.b,g:e.g,r:e.r}}({a:e.length>4?Z(e[qe.a]):1,h:Number.parseInt(e[qe.h]??"0",10),l:Number.parseInt(e[qe.l]??"0",10),s:Number.parseInt(e[qe.s]??"0",10)}):void 0}}async function Ne(t){t.checkVersion("4.0.0-beta.15"),await t.pluginManager.register(t=>{t.pluginManager.addColorManager("hsl",new je)})}class Ze{id="move";_pluginManager;constructor(t){this._pluginManager=t}async getPlugin(t){const{MovePluginInstance:e}=await Promise.resolve().then(function(){return Gi});return new e(this._pluginManager,t)}loadOptions(){}needsPlugin(){return!0}}async function He(t){t.checkVersion("4.0.0-beta.15"),await t.pluginManager.register(t=>{const e=t.pluginManager;e.initializers.pathGenerators??=new Map,e.pathGenerators??=new Map,e.addPathGenerator=(t,i)=>{e.initializers.pathGenerators??=new Map,e.initializers.pathGenerators.set(t,i)},e.getPathGenerators=async(t,i=!1)=>(e.initializers.pathGenerators??=new Map,e.pathGenerators??=new Map,gt(t,e.pathGenerators,e.initializers.pathGenerators,i)),t.pluginManager.addPlugin(new Ze(t.pluginManager))})}class Qe{container;constructor(t){this.container=t}init(t){const e=t.options.opacity;t.opacity=lt(e,1);const s=e.animation;s.enable&&(t.opacity.velocity=U(s.speed)/i*this.container.retina.reduceFactor,s.sync||(t.opacity.velocity*=A()))}isEnabled(t){return!t.destroyed&&!t.spawning&&!!t.opacity&&t.opacity.enable&&((t.opacity.maxLoops??0)<=0||(t.opacity.maxLoops??0)>0&&(t.opacity.loops??0)<(t.opacity.maxLoops??0))}reset(t){t.opacity&&(t.opacity.time=0,t.opacity.loops=0)}update(t,e){this.isEnabled(t)&&t.opacity&&ut(t,t.opacity,0,t.options.opacity.animation.destroy,e)}}async function Xe(t){t.checkVersion("4.0.0-beta.15"),await t.pluginManager.register(t=>{t.pluginManager.addParticleUpdater("opacity",t=>Promise.resolve(new Qe(t)))})}class Ye{container;modes;_particleBouncePlugins;constructor(t){this.container=t,this.modes=[Ct.bounce,Ct.split],this._particleBouncePlugins=t.plugins.filter(t=>void 0!==t.particleBounce)}update(t,e,i,s){if(!this.modes.includes(s))return;const n=this.container;let a=!1;for(const s of this._particleBouncePlugins)if(a=s.particleBounce?.(t,i,e)??!1,a)break;if(a)return;const o=t.getPosition(),r=t.offset,l=t.getRadius(),c=nt(o,l),h=n.canvas.size;!function(t){if(t.outMode!==Ct.bounce&&t.outMode!==Ct.split||t.direction!==Y.left&&t.direction!==Y.right)return;t.bounds.right<0&&t.direction===Y.left?t.particle.position.x=t.size+t.offset.x:t.bounds.left>t.canvasSize.width&&t.direction===Y.right&&(t.particle.position.x=t.canvasSize.width-t.size-t.offset.x);const e=t.particle.velocity.x;let i=!1;if(t.direction===Y.right&&t.bounds.right>=t.canvasSize.width&&e>0||t.direction===Y.left&&t.bounds.left<=0&&e<0){const e=U(t.particle.options.bounce.horizontal.value);t.particle.velocity.x*=-e,i=!0}if(!i)return;const s=t.offset.x+t.size;t.bounds.right>=t.canvasSize.width&&t.direction===Y.right?t.particle.position.x=t.canvasSize.width-s:t.bounds.left<=0&&t.direction===Y.left&&(t.particle.position.x=s),t.outMode===Ct.split&&t.particle.destroy()}({particle:t,outMode:s,direction:e,bounds:c,canvasSize:h,offset:r,size:l}),function(t){if(t.outMode!==Ct.bounce&&t.outMode!==Ct.split||t.direction!==Y.bottom&&t.direction!==Y.top)return;t.bounds.bottom<0&&t.direction===Y.top?t.particle.position.y=t.size+t.offset.y:t.bounds.top>t.canvasSize.height&&t.direction===Y.bottom&&(t.particle.position.y=t.canvasSize.height-t.size-t.offset.y);const e=t.particle.velocity.y;let i=!1;if(t.direction===Y.bottom&&t.bounds.bottom>=t.canvasSize.height&&e>0||t.direction===Y.top&&t.bounds.top<=0&&e<0){const e=U(t.particle.options.bounce.vertical.value);t.particle.velocity.y*=-e,i=!0}if(!i)return;const s=t.offset.y+t.size;t.bounds.bottom>=t.canvasSize.height&&t.direction===Y.bottom?t.particle.position.y=t.canvasSize.height-s:t.bounds.top<=0&&t.direction===Y.top&&(t.particle.position.y=s),t.outMode===Ct.split&&t.particle.destroy()}({particle:t,outMode:s,direction:e,bounds:c,canvasSize:h,offset:r,size:l})}}class Je{container;modes;constructor(t){this.container=t,this.modes=[Ct.destroy]}update(t,e,i,s){if(!this.modes.includes(s))return;const n=this.container;switch(t.outType){case Ot.normal:case Ot.outside:if(st(t.position,n.canvas.size,a,t.getRadius(),e))return;break;case Ot.inside:{const{dx:e,dy:i}=G(t.position,t.moveCenter),{x:s,y:n}=t.velocity;if(s<0&&e>t.moveCenter.radius||n<0&&i>t.moveCenter.radius||s>=0&&e<-t.moveCenter.radius||n>=0&&i<-t.moveCenter.radius)return;break}}t.destroy(!0)}}class Ke{container;modes;constructor(t){this.container=t,this.modes=[Ct.none]}update(t,e,i,s){if(!this.modes.includes(s))return;if((t.options.move.distance.horizontal&&(e===Y.left||e===Y.right))??(t.options.move.distance.vertical&&(e===Y.top||e===Y.bottom)))return;const n=t.options.move.gravity,o=this.container,r=o.canvas.size,l=t.getRadius();if(n.enable){const i=t.position;(!n.inverse&&i.y>r.height+l&&e===Y.bottom||n.inverse&&i.y<-l&&e===Y.top)&&t.destroy()}else{if(t.velocity.y>0&&t.position.y<=r.height+l||t.velocity.y<0&&t.position.y>=-l||t.velocity.x>0&&t.position.x<=r.width+l||t.velocity.x<0&&t.position.x>=-l)return;st(t.position,o.canvas.size,a,l,e)||t.destroy()}}}const ti=x.origin;class ei{container;modes;constructor(t){this.container=t,this.modes=[Ct.out]}update(t,e,i,s){if(!this.modes.includes(s))return;const n=this.container;switch(t.outType){case Ot.inside:{const{x:e,y:i}=t.velocity;ti.setTo(a),ti.length=t.moveCenter.radius,ti.angle=t.velocity.angle+Math.PI,ti.addTo(t.moveCenter);const{dx:s,dy:o}=G(t.position,ti);if(e<=0&&s>=0||i<=0&&o>=0||e>=0&&s<=0||i>=0&&o<=0)return;t.position.x=Math.floor(L({min:0,max:n.canvas.size.width})),t.position.y=Math.floor(L({min:0,max:n.canvas.size.height}));const{dx:r,dy:l}=G(t.position,t.moveCenter);t.direction=Math.atan2(-l,-r),t.velocity.angle=t.direction,t.justWarped=!0;break}default:if(st(t.position,n.canvas.size,a,t.getRadius(),e))return;switch(t.outType){case Ot.outside:{t.position.x=Math.floor(L({min:-t.moveCenter.radius,max:t.moveCenter.radius}))+t.moveCenter.x,t.position.y=Math.floor(L({min:-t.moveCenter.radius,max:t.moveCenter.radius}))+t.moveCenter.y;const{dx:e,dy:i}=G(t.position,t.moveCenter);t.moveCenter.radius&&(t.direction=Math.atan2(i,e),t.velocity.angle=t.direction),t.justWarped=!0;break}case Ot.normal:{const i=t.options.move.warp,s=n.canvas.size,a={bottom:s.height+t.getRadius()+t.offset.y,left:-t.getRadius()-t.offset.x,right:s.width+t.getRadius()+t.offset.x,top:-t.getRadius()-t.offset.y},o=t.getRadius(),r=nt(t.position,o);e===Y.right&&r.left>s.width+t.offset.x?(t.position.x=a.left,t.initialPosition.x=t.position.x,i||(t.position.y=A()*s.height,t.initialPosition.y=t.position.y),t.justWarped=!0):e===Y.left&&r.right<-t.offset.x&&(t.position.x=a.right,t.initialPosition.x=t.position.x,i||(t.position.y=A()*s.height,t.initialPosition.y=t.position.y),t.justWarped=!0),e===Y.bottom&&r.top>s.height+t.offset.y?(i||(t.position.x=A()*s.width,t.initialPosition.x=t.position.x),t.position.y=a.top,t.initialPosition.y=t.position.y,t.justWarped=!0):e===Y.top&&r.bottom<-t.offset.y&&(i||(t.position.x=A()*s.width,t.initialPosition.x=t.position.x),t.position.y=a.bottom,t.initialPosition.y=t.position.y,t.justWarped=!0);break}}}}}class ii{updaters;container;constructor(t){this.container=t,this.updaters=new Map}init(t){this._addUpdaterIfMissing(t,Ct.bounce,t=>new Ye(t)),this._addUpdaterIfMissing(t,Ct.out,t=>new ei(t)),this._addUpdaterIfMissing(t,Ct.destroy,t=>new Je(t)),this._addUpdaterIfMissing(t,Ct.none,t=>new Ke(t))}isEnabled(t){return!t.destroyed&&!t.spawning}update(t,e){const i=t.options.move.outModes;t.justWarped=!1,this._updateOutMode(t,e,i.bottom??i.default,Y.bottom),this._updateOutMode(t,e,i.left??i.default,Y.left),this._updateOutMode(t,e,i.right??i.default,Y.right),this._updateOutMode(t,e,i.top??i.default,Y.top)}_addUpdaterIfMissing=(t,e,i)=>{const s=t.options.move.outModes;!this.updaters.has(e)&&((t,e)=>t.default===e||t.bottom===e||t.left===e||t.right===e||t.top===e)(s,e)&&this.updaters.set(e,i(this.container))};_updateOutMode=(t,e,i,s)=>{for(const n of this.updaters.values())n.update(t,s,e,i)}}async function si(t){t.checkVersion("4.0.0-beta.15"),await t.pluginManager.register(t=>{t.pluginManager.addParticleUpdater("outModes",t=>Promise.resolve(new ii(t)))})}class ni{_container;_pluginManager;constructor(t,e){this._container=e,this._pluginManager=t}init(t){const e=this._container,i=t.options,s=rt(i.paint,t.id,i.reduceDuplicates),n=s?.color,a=n??void 0,o=s?.fill,r=s?.stroke;if(o){const i=Vt.create(void 0===a?void 0:Vt.create(void 0,a),o.color);t.fillEnabled=o.enable,t.fillOpacity=U(o.opacity),t.fillAnimation=i.animation;const s=Me(this._pluginManager,i);s&&(t.fillColor=De(s,t.fillAnimation,e.retina.reduceFactor))}else t.fillEnabled=!1,t.fillAnimation=void 0,t.fillColor=void 0,t.fillOpacity=1;if(r){const i=Vt.create(void 0===a?void 0:Vt.create(void 0,a),r.color);t.strokeWidth=U(r.width)*e.retina.pixelRatio,t.strokeOpacity=U(r.opacity??1),t.strokeAnimation=i.animation;const s=Me(this._pluginManager,i)??t.getFillColor();s&&(t.strokeColor=De(s,t.strokeAnimation,e.retina.reduceFactor))}else t.strokeAnimation=void 0,t.strokeColor=void 0,t.strokeOpacity=1,t.strokeWidth=0}isEnabled(t){const{fillAnimation:e,fillColor:i,strokeAnimation:s,strokeColor:n}=t,a=!!e&&(void 0!==i?.h.value&&i.h.enable||void 0!==i?.s.value&&i.s.enable||void 0!==i?.l.value&&i.l.enable),o=!!s&&(void 0!==n?.h.value&&n.h.enable||void 0!==n?.s.value&&n.s.enable||void 0!==n?.l.value&&n.l.enable);return!t.destroyed&&!t.spawning&&(a||o)}update(t,e){this.isEnabled(t)&&(Ae(t.fillColor,e),Ae(t.strokeColor,e))}}async function ai(t){t.checkVersion("4.0.0-beta.15"),await t.pluginManager.register(t=>{t.pluginManager.addParticleUpdater("paint",e=>Promise.resolve(new ni(t.pluginManager,e)))})}var oi;!function(t){t[t.r=1]="r",t[t.g=2]="g",t[t.b=3]="b",t[t.a=5]="a"}(oi||(oi={}));const ri=/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;class li{accepts(t){return t.startsWith("rgb")}handleColor(t){const e=t.value.rgb??t.value;if("r"in e&&"g"in e&&"b"in e)return e}handleRangeColor(t){const e=t.value.rgb??t.value;if("r"in e&&"g"in e&&"b"in e)return{r:U(e.r),g:U(e.g),b:U(e.b)}}parseString(t){if(!this.accepts(t))return;const e=ri.exec(t);return e?{a:e.length>4?Z(e[oi.a]):1,b:parseInt(e[oi.b]??"0",10),g:parseInt(e[oi.g]??"0",10),r:parseInt(e[oi.r]??"0",10)}:void 0}}async function ci(t){t.checkVersion("4.0.0-beta.15"),await t.pluginManager.register(t=>{t.pluginManager.addColorManager("rgb",new li)})}class hi{_container;constructor(t){this._container=t}init(t){const e=this._container,s=t.options.size.animation;s.enable&&(t.size.velocity=t.retina.sizeAnimationSpeed/i*e.retina.reduceFactor,s.sync||(t.size.velocity*=A()))}isEnabled(t){return!t.destroyed&&!t.spawning&&t.size.enable&&((t.size.maxLoops??0)<=0||(t.size.maxLoops??0)>0&&(t.size.loops??0)<(t.size.maxLoops??0))}reset(t){t.size.time=0,t.size.loops=0}update(t,e){this.isEnabled(t)&&ut(t,t.size,0,t.options.size.animation.destroy,e)}}async function di(t){t.checkVersion("4.0.0-beta.15"),await t.pluginManager.register(t=>{t.pluginManager.addParticleUpdater("size",t=>Promise.resolve(new hi(t)))})}async function ui(t){t.checkVersion("4.0.0-beta.15"),await t.pluginManager.register(async t=>{await Promise.all([Ge(t),Ne(t),ci(t),He(t),Le(t),ai(t),Xe(t),si(t),di(t)])})}class pi{count;delay;duration;wait;constructor(){this.wait=!1}load(t){k(t)||(void 0!==t.count&&(this.count=t.count),void 0!==t.delay&&(this.delay=$(t.delay)),void 0!==t.duration&&(this.duration=$(t.duration)),void 0!==t.wait&&(this.wait=t.wait))}}class fi{delay;quantity;constructor(){this.quantity=1,this.delay=.1}load(t){k(t)||(void 0!==t.quantity&&(this.quantity=$(t.quantity)),void 0!==t.delay&&(this.delay=$(t.delay)))}}class gi{color;opacity;constructor(){this.color=!1,this.opacity=!1}load(t){k(t)||(void 0!==t.color&&(this.color=t.color),void 0!==t.opacity&&(this.opacity=t.opacity))}}class _i{options;replace;type;constructor(){this.options={},this.replace=new gi,this.type="square"}load(t){k(t)||(void 0!==t.options&&(this.options=at({},t.options??{})),this.replace.load(t.replace),void 0!==t.type&&(this.type=t.type))}}class yi{height;mode;width;constructor(){this.mode=J.percent,this.height=0,this.width=0}load(t){k(t)||(void 0!==t.mode&&(this.mode=t.mode),void 0!==t.height&&(this.height=t.height),void 0!==t.width&&(this.width=t.width))}}class mi{fill;stroke;load(t){k(t)||(t.fill&&(this.fill??=new jt,this.fill.load(t.fill)),t.stroke&&(this.stroke??=new ne,this.stroke.load(t.stroke)))}}class vi{autoPlay;direction;domId;fill;life;name;particles;position;rate;shape;size;spawn;spawnFillColor;spawnStrokeColor;startCount;constructor(){this.autoPlay=!0,this.fill=!0,this.life=new pi,this.rate=new fi,this.shape=new _i,this.spawn=new mi,this.startCount=0}load(t){k(t)||(void 0!==t.autoPlay&&(this.autoPlay=t.autoPlay),void 0!==t.size&&(this.size??=new yi,this.size.load(t.size)),void 0!==t.direction&&(this.direction=t.direction),this.domId=t.domId,void 0!==t.fill&&(this.fill=t.fill),this.life.load(t.life),this.name=t.name,this.particles=ot(t.particles,t=>at({},t)),this.rate.load(t.rate),this.shape.load(t.shape),this.spawn.load(t.spawn),void 0!==t.position&&(this.position={},void 0!==t.position.x&&(this.position.x=$(t.position.x)),void 0!==t.position.y&&(this.position.y=$(t.position.y))),void 0!==t.spawnFillColor&&(this.spawnFillColor??=new Vt,this.spawnFillColor.load(t.spawnFillColor)),void 0!==t.spawnStrokeColor&&(this.spawnStrokeColor??=new Vt,this.spawnStrokeColor.load(t.spawnStrokeColor)),void 0!==t.startCount&&(this.startCount=t.startCount))}}class wi{id="emitters";_instancesManager;constructor(t){this._instancesManager=t}async getPlugin(t){const{EmittersPluginInstance:e}=await Promise.resolve().then(function(){return qi});return new e(this._instancesManager,t)}loadOptions(t,e,i){(this.needsPlugin(e)||this.needsPlugin(i))&&i?.emitters&&(e.emitters=ot(i.emitters,t=>{const e=new vi;return e.load(t),e}))}needsPlugin(t){if(!t)return!1;const e=t.emitters;return I(e)&&!!e.length||void 0!==e}}const Pi=new WeakMap;var bi;async function xi(t){t.checkVersion("4.0.0-beta.15"),await t.pluginManager.register(async t=>{const e=await function(t){const e=t.pluginManager;let i=Pi.get(e);return i||(i=Promise.resolve().then(function(){return Ni}).then(({EmittersInstancesManager:t})=>new t(e)).catch(t=>{throw Pi.delete(e),t}),Pi.set(e,i)),i}(t);await async function(t){const{ShapeManager:e}=await Promise.resolve().then(function(){return ji}),i=t.pluginManager;i.emitterShapeManager??=new e,i.addEmitterShapeGenerator??=(t,e)=>{i.emitterShapeManager?.addShapeGenerator(t,e)}}(t),t.pluginManager.addPlugin(new wi(e))})}!function(t){t.emitter="emitter"}(bi||(bi={}));const zi={fpsLimit:120,particles:{paint:{fill:{color:{value:"random"},enable:!0}},shape:{type:"circle"},opacity:{value:.3},size:{value:{min:5,max:10}},move:{angle:{offset:0,value:30},enable:!0,speed:15,direction:w.top,random:!1,straight:!1,outModes:{default:Ct.destroy}}},detectRetina:!0,background:{color:"#fff"},emitters:[{direction:w.top,position:{y:100},life:{duration:3,delay:5,count:0}}]};async function Mi(t){await t.pluginManager.register(async t=>{await Promise.all([ui(t),xi(t)]),t.pluginManager.addPreset("bubbles",zi)})}const Si=globalThis;Si.__tsParticlesInternals=Si.__tsParticlesInternals??{},Si.loadBubblesPreset=Mi;function Ci(t,e,i){const s=e[i];void 0!==s&&(t[i]=(t[i]??1)*s)}class Ii{_canvasClearPlugins;_canvasManager;_canvasPaintPlugins;_clearDrawPlugins;_colorPlugins;_container;_context;_contextSettings;_drawParticlePlugins;_drawParticlesCleanupPlugins;_drawParticlesSetupPlugins;_drawPlugins;_drawSettingsCleanupPlugins;_drawSettingsSetupPlugins;_pluginManager;_postDrawUpdaters;_preDrawUpdaters;_reusableColorStyles={};_reusablePluginColors=[void 0,void 0];_reusableTransform={};constructor(t,e,i){this._pluginManager=t,this._container=e,this._canvasManager=i,this._context=null,this._preDrawUpdaters=[],this._postDrawUpdaters=[],this._colorPlugins=[],this._canvasClearPlugins=[],this._canvasPaintPlugins=[],this._clearDrawPlugins=[],this._drawParticlePlugins=[],this._drawParticlesCleanupPlugins=[],this._drawParticlesSetupPlugins=[],this._drawPlugins=[],this._drawSettingsSetupPlugins=[],this._drawSettingsCleanupPlugins=[]}get settings(){return this._contextSettings}canvasClear(){this._container.actualOptions.clear&&this.draw(t=>{ve(t,this._canvasManager.size)})}clear(){let t=!1;for(const e of this._canvasClearPlugins)if(t=e.canvasClear?.()??!1,t)break;t||this.canvasClear()}destroy(){this.stop(),this._preDrawUpdaters=[],this._postDrawUpdaters=[],this._colorPlugins=[],this._canvasClearPlugins=[],this._canvasPaintPlugins=[],this._clearDrawPlugins=[],this._drawParticlePlugins=[],this._drawParticlesCleanupPlugins=[],this._drawParticlesSetupPlugins=[],this._drawPlugins=[],this._drawSettingsSetupPlugins=[],this._drawSettingsCleanupPlugins=[]}draw(t){const e=this._context;if(e)return t(e)}drawParticle(t,e){if(t.spawning||t.destroyed)return;const i=t.getRadius();if(i<=0)return;const s=t.getFillColor(),n=t.getStrokeColor();let[a,o]=this._getPluginParticleColors(t);if(a??=s,o??=n,!a&&!o)return;const r=this._container,l=t.options.zIndex,c=1-t.zIndexFactor,{fillOpacity:h,opacity:d,strokeOpacity:u}=t.getOpacity(),p=this._reusableTransform,f=this._reusableColorStyles,g=a?ke(a,r.hdr,h*d):void 0,_=o?ke(o,r.hdr,u*d):g;p.a=p.b=p.c=p.d=void 0,f.fill=g,f.stroke=_,this.draw(s=>{for(const i of this._drawParticlesSetupPlugins)i.drawParticleSetup?.(s,t,e);this._applyPreDrawUpdaters(s,t,i,d,f,p),function(t){const{container:e,context:i,particle:s,delta:n,colorStyles:a,radius:o,opacity:r,transform:l}=t,{effectDrawers:c,shapeDrawers:h}=e,d=s.getPosition(),u=s.getTransformData(l),p={x:d.x,y:d.y};i.setTransform(u.a,u.b,u.c,u.d,d.x,d.y),a.fill&&(i.fillStyle=a.fill);const f=!!s.fillEnabled,g=s.strokeWidth??0;i.lineWidth=g,a.stroke&&(i.strokeStyle=a.stroke);const _={context:i,particle:s,radius:o,drawRadius:1*o,opacity:r,delta:n,pixelRatio:e.retina.pixelRatio,fill:f,stroke:g>0,transformData:u,position:{...d},drawPosition:p,drawScale:1};for(const t of e.plugins)t.drawParticleTransform?.(_);const y=s.effect?c.get(s.effect):void 0,m=s.shape?h.get(s.shape):void 0;!function(t,e){if(!t?.drawBefore)return;const{particle:i}=e;i.effect&&t.drawBefore(e)}(y,_),function(t,e){if(!t?.beforeDraw)return;const{particle:i}=e;i.shape&&t.beforeDraw(e)}(m,_),function(t,e){if(!t)return;const{context:i,fill:s,particle:n,stroke:a}=e;n.shape&&(i.beginPath(),t.draw(e),n.shapeClose&&i.closePath(),s&&i.fill(),a&&i.stroke())}(m,_),function(t,e){if(!t?.afterDraw)return;const{particle:i}=e;i.shape&&t.afterDraw(e)}(m,_),function(t,e){if(!t?.drawAfter)return;const{particle:i}=e;i.effect&&t.drawAfter(e)}(y,_),i.resetTransform()}({container:r,context:s,particle:t,delta:e,colorStyles:f,radius:i*c**l.sizeRate,opacity:d,transform:p}),this._applyPostDrawUpdaters(t);for(const i of this._drawParticlesCleanupPlugins)i.drawParticleCleanup?.(s,t,e)})}drawParticlePlugins(t,e){this.draw(i=>{for(const s of this._drawParticlePlugins)we(i,s,t,e)})}drawParticles(t){const{particles:e}=this._container;this.clear(),e.update(t),this.draw(i=>{for(const e of this._drawSettingsSetupPlugins)e.drawSettingsSetup?.(i,t);for(const e of this._drawPlugins)e.draw?.(i,t);e.drawParticles(t);for(const e of this._clearDrawPlugins)e.clearDraw?.(i,t);for(const e of this._drawSettingsCleanupPlugins)e.drawSettingsCleanup?.(i,t)})}init(){this.initUpdaters(),this.initPlugins(),this.paint()}initPlugins(){this._colorPlugins=[],this._canvasClearPlugins=[],this._canvasPaintPlugins=[],this._clearDrawPlugins=[],this._drawParticlePlugins=[],this._drawParticlesSetupPlugins=[],this._drawParticlesCleanupPlugins=[],this._drawPlugins=[],this._drawSettingsSetupPlugins=[],this._drawSettingsCleanupPlugins=[];for(const t of this._container.plugins)(t.particleFillColor??t.particleStrokeColor)&&this._colorPlugins.push(t),t.canvasClear&&this._canvasClearPlugins.push(t),t.canvasPaint&&this._canvasPaintPlugins.push(t),t.drawParticle&&this._drawParticlePlugins.push(t),t.drawParticleSetup&&this._drawParticlesSetupPlugins.push(t),t.drawParticleCleanup&&this._drawParticlesCleanupPlugins.push(t),t.draw&&this._drawPlugins.push(t),t.drawSettingsSetup&&this._drawSettingsSetupPlugins.push(t),t.drawSettingsCleanup&&this._drawSettingsCleanupPlugins.push(t),t.clearDraw&&this._clearDrawPlugins.push(t)}initUpdaters(){this._preDrawUpdaters=[],this._postDrawUpdaters=[];for(const t of this._container.particleUpdaters)t.afterDraw&&this._postDrawUpdaters.push(t),(t.getColorStyles??t.getTransformValues??t.beforeDraw)&&this._preDrawUpdaters.push(t)}paint(){let t=!1;for(const e of this._canvasPaintPlugins)if(t=e.canvasPaint?.()??!1,t)break;t||this.paintBase()}paintBase(t){this.draw(e=>{!function(t,e,i){t.fillStyle=i??"rgba(0,0,0,0)",t.fillRect(a.x,a.y,e.width,e.height)}(e,this._canvasManager.size,t)})}paintImage(t,e){this.draw(i=>{!function(t,e,i,s){if(!i)return;const n=t.globalAlpha;t.globalAlpha=s,t.drawImage(i,a.x,a.y,e.width,e.height),t.globalAlpha=n}(i,this._canvasManager.size,t,e)})}setContext(t){this._context=t,this._context&&(this._context.globalCompositeOperation="source-over")}setContextSettings(t){this._contextSettings=t}stop(){this.draw(t=>{ve(t,this._canvasManager.size)})}_applyPostDrawUpdaters=t=>{for(const e of this._postDrawUpdaters)e.afterDraw?.(t)};_applyPreDrawUpdaters=(t,e,i,s,n,a)=>{for(const o of this._preDrawUpdaters){if(o.getColorStyles){const{fill:a,stroke:r}=o.getColorStyles(e,t,i,s);a&&(n.fill=a),r&&(n.stroke=r)}if(o.getTransformValues){const t=o.getTransformValues(e);for(const e in t)Ci(a,t,e)}o.beforeDraw?.(e)}};_getPluginParticleColors=t=>{let e,i;for(const s of this._colorPlugins)if(!e&&s.particleFillColor&&(e=Me(this._pluginManager,s.particleFillColor(t))),!i&&s.particleStrokeColor&&(i=Me(this._pluginManager,s.particleStrokeColor(t))),e&&i)break;return this._reusablePluginColors[0]=e,this._reusablePluginColors[1]=i,this._reusablePluginColors}}function ki(t,e,i=!1){if(!e)return;const s=t.style,n=new Set;for(let t=0;t<s.length;t++){const e=s.item(t);e&&n.add(e)}for(let t=0;t<e.length;t++){const i=e.item(t);i&&n.add(i)}for(const t of n){const n=e.getPropertyValue(t);n?s.setProperty(t,n,i?"important":""):s.removeProperty(t)}}class Oi{element;render;size;zoom=1;_container;_generated;_mutationObserver;_originalStyle;_pluginManager;_pointerEvents;_resizePlugins;_standardSize;_zoomCenter;constructor(t,e){this._pluginManager=t,this._container=e,this.render=new Ii(t,e,this),this._standardSize={height:0,width:0};const i=e.retina.pixelRatio,s=this._standardSize;this.size={height:s.height*i,width:s.width*i},this._generated=!1,this._resizePlugins=[],this._pointerEvents="none"}get _fullScreen(){return this._container.actualOptions.fullScreen.enable}destroy(){if(this.stop(),this._generated){const t=this.element;t?.remove(),this.element=void 0}else this._resetOriginalStyle();this.render.destroy(),this._resizePlugins=[]}getZoomCenter(){const t=this._container.retina.pixelRatio,{width:e,height:i}=this.size;return this._zoomCenter?this._zoomCenter:{x:e*s/t,y:i*s/t}}init(){this._safeMutationObserver(t=>{t.disconnect()}),this._mutationObserver=function(t){if("undefined"!=typeof MutationObserver)return new MutationObserver(t)}(t=>{for(const e of t)"attributes"===e.type&&"style"===e.attributeName&&this._repairStyle()}),this.resize(),this._initStyle(),this.initBackground(),this._safeMutationObserver(t=>{this.element&&this.element instanceof Node&&t.observe(this.element,{attributes:!0})}),this.initPlugins(),this.render.init()}initBackground(){const{_container:t}=this,e=t.actualOptions.background,i=this.element;if(!i)return;const s=i.style,n=xe(this._pluginManager,e.color);s.backgroundColor=n?Ce(n,t.hdr,e.opacity):"",s.backgroundImage=e.image||"",s.backgroundPosition=e.position||"",s.backgroundRepeat=e.repeat||"",s.backgroundSize=e.size||""}initPlugins(){this._resizePlugins=[];for(const t of this._container.plugins)t.resize&&this._resizePlugins.push(t)}loadCanvas(t){this._generated&&this.element&&this.element.remove();const i=this._container;this._generated=e in t.dataset?"true"===t.dataset[e]:this._generated,this.element=t,this.element.ariaHidden="true",this._originalStyle=function(t){const e=tt().createElement("div").style;for(const i in t){const s=t[i];if(!(i in t)||k(s))continue;const n=t.getPropertyValue?.(s);if(!n)continue;const a=t.getPropertyPriority?.(s);a?e.setProperty(s,n,a):e.setProperty(s,n)}return e}(this.element.style);const s=this._standardSize;s.height=t.offsetHeight,s.width=t.offsetWidth;const n=this._container.retina.pixelRatio,a=this.size;t.height=a.height=s.height*n,t.width=a.width=s.width*n;const o=et("(color-gamut: p3)");this.render.setContextSettings({alpha:!0,colorSpace:o?.matches&&i.hdr?"display-p3":"srgb",desynchronized:!0,willReadFrequently:!1}),this.render.setContext(this.element.getContext("2d",this.render.settings)),this._safeMutationObserver(t=>{t.disconnect()}),i.retina.init(),this.initBackground(),this._safeMutationObserver(t=>{this.element&&this.element instanceof Node&&t.observe(this.element,{attributes:!0})})}resize(){if(!this.element)return!1;const t=this._container,e=t.canvas._standardSize,i={width:this.element.offsetWidth,height:this.element.offsetHeight},s=t.retina.pixelRatio,n={width:i.width*s,height:i.height*s};if(i.height===e.height&&i.width===e.width&&n.height===this.element.height&&n.width===this.element.width)return!1;const a={...e};e.height=i.height,e.width=i.width;const o=this.size;return this.element.width=o.width=n.width,this.element.height=o.height=n.height,this._container.started&&t.particles.setResizeFactor({width:e.width/a.width,height:e.height/a.height}),!0}setPointerEvents(t){this.element&&(this._pointerEvents=t,this._repairStyle())}setZoom(t,e){this.zoom=t,this._zoomCenter=e}stop(){this._safeMutationObserver(t=>{t.disconnect()}),this._mutationObserver=void 0,this.render.stop()}async windowResize(){if(!this.element||!this.resize())return;const t=this._container,e=t.updateActualOptions();t.particles.setDensity(),this._applyResizePlugins(),e&&await t.refresh()}_applyResizePlugins=()=>{for(const t of this._resizePlugins)t.resize?.()};_initStyle=()=>{const t=this.element,e=this._container.actualOptions;if(t){this._fullScreen?this._setFullScreenStyle():this._resetOriginalStyle();for(const i in e.style){if(!i||!(i in e.style))continue;const s=e.style[i];s&&t.style.setProperty(i,s,"important")}}};_repairStyle=()=>{const t=this.element;if(!t)return;this._safeMutationObserver(t=>{t.disconnect()}),this._initStyle(),this.initBackground();const e=this._pointerEvents;t.style.pointerEvents=e,t.style.setProperty("pointer-events",e),this._safeMutationObserver(e=>{t instanceof Node&&e.observe(t,{attributes:!0})})};_resetOriginalStyle=()=>{const t=this.element,e=this._originalStyle;t&&e&&ki(t,e,!0)};_safeMutationObserver=t=>{this._mutationObserver&&t(this._mutationObserver)};_setFullScreenStyle=()=>{const t=this.element;t&&ki(t,pt(this._container.actualOptions.fullScreen.zIndex),!0)}}class Di{container;_handlers;_resizeObserver;_resizeTimeout;constructor(t){this.container=t,this._handlers={visibilityChange:()=>{this._handleVisibilityChange()},resize:()=>{this._handleWindowResize()}}}addListeners(){this._manageListeners(!0)}removeListeners(){this._manageListeners(!1)}_handleVisibilityChange=()=>{const t=this.container;t.actualOptions.pauseOnBlur&&(tt().hidden?(t.pageHidden=!0,t.pause()):(t.pageHidden=!1,t.animationStatus?t.play(!0):t.draw(!0)))};_handleWindowResize=()=>{this._resizeTimeout&&(clearTimeout(this._resizeTimeout),delete this._resizeTimeout);const t=async()=>{const t=this.container.canvas;await t.windowResize()};this._resizeTimeout=setTimeout(()=>{t()},this.container.actualOptions.resize.delay*n)};_manageListeners=t=>{const e=this._handlers;this._manageResize(t),ft(document,"visibilitychange",e.visibilityChange,t,!1)};_manageResize=t=>{const e=this._handlers,i=this.container;if(!i.actualOptions.resize.enable)return;if("undefined"==typeof ResizeObserver)return void ft(globalThis,"resize",e.resize,t);const s=i.canvas.element;this._resizeObserver&&!t?(s&&this._resizeObserver.unobserve(s),this._resizeObserver.disconnect(),delete this._resizeObserver):!this._resizeObserver&&t&&s&&(this._resizeObserver=new ResizeObserver(t=>{t.find(t=>t.target===s)&&this._handleWindowResize()}),this._resizeObserver.observe(s))}}function Ri(t){if(e=t.outMode,i=t.checkModes,!(e===i||I(i)&&i.includes(e)))return;var e,i;const s=2*t.radius;t.coord>t.maxCoord-s?t.setCb(-t.radius):t.coord<s&&t.setCb(t.radius)}class Ei{backColor;bubble;destroyed;direction;effect;effectClose;effectData;fillColor;fillEnabled;fillOpacity;group;id;ignoresResizeRatio;initialPosition;initialVelocity;isRotating;justWarped;lastPathTime;misplaced;moveCenter;offset;opacity;options;outType;pathRotation;position;randomIndexData;retina;roll;rotation;shape;shapeClose;shapeData;sides;size;slow;spawning;strokeColor;strokeOpacity;strokeWidth;unbreakable;velocity;zIndexFactor;_cachedOpacityData={fillOpacity:1,opacity:1,strokeOpacity:1};_cachedPosition=b.origin;_cachedRotateData={sin:0,cos:0};_cachedTransform={a:1,b:0,c:0,d:1};_container;_pluginManager;constructor(t,e){this._pluginManager=t,this._container=e}destroy(t){if(this.unbreakable||this.destroyed)return;this.destroyed=!0,this.bubble.inRange=!1,this.slow.inRange=!1;const e=this._container,i=this.shape?e.shapeDrawers.get(this.shape):void 0;i?.particleDestroy?.(this);for(const i of e.particleDestroyedPlugins)i.particleDestroyed?.(this,t);for(const i of e.particleUpdaters)i.particleDestroyed?.(this,t);this._container.dispatchEvent(yt.particleDestroyed,{particle:this})}draw(t){const e=this._container.canvas.render;e.drawParticlePlugins(this,t),e.drawParticle(this,t)}getAngle(){return this.rotation+(this.pathRotation?this.velocity.angle:0)}getFillColor(){return this._getRollColor(this.bubble.color??Oe(this.fillColor))}getMass(){return this.getRadius()**2*Math.PI*s}getOpacity(){const t=this.options.zIndex,e=(1-this.zIndexFactor)**t.opacityRate,i=this.bubble.opacity??U(this.opacity?.value??1),s=this.fillOpacity??1,n=this.strokeOpacity??1;return this._cachedOpacityData.fillOpacity=i*s*e,this._cachedOpacityData.opacity=i*e,this._cachedOpacityData.strokeOpacity=i*n*e,this._cachedOpacityData}getPosition(){return this._cachedPosition.x=this.position.x+this.offset.x,this._cachedPosition.y=this.position.y+this.offset.y,this._cachedPosition.z=this.position.z,this._cachedPosition}getRadius(){return this.bubble.radius??this.size.value}getRotateData(){const t=this.getAngle();return this._cachedRotateData.sin=Math.sin(t),this._cachedRotateData.cos=Math.cos(t),this._cachedRotateData}getStrokeColor(){return this._getRollColor(this.bubble.color??Oe(this.strokeColor))}getTransformData(t){const e=this.getRotateData(),i=this.isRotating;return this._cachedTransform.a=e.cos*(t.a??o),this._cachedTransform.b=i?e.sin*(t.b??1):t.b??r,this._cachedTransform.c=i?-e.sin*(t.c??1):t.c??l,this._cachedTransform.d=e.cos*(t.d??c),this._cachedTransform}init(t,e,i,s){const n=this._container;this.id=t,this.group=s,this.justWarped=!1,this.effectClose=!0,this.shapeClose=!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:{},maxSpeed:0,moveDrift:0,moveSpeed:0,sizeAnimationSpeed:0},this.outType=Ot.normal,this.ignoresResizeRatio=!0;const a=n.retina.pixelRatio,o=n.actualOptions,r=ye(this._pluginManager,n,o.particles),l=r.reduceDuplicates,c=r.effect.type,d=r.shape.type;this.effect=rt(c,this.id,l),this.shape=rt(d,this.id,l);const u=r.effect,p=r.shape;if(i){if(i.effect?.type){const t=rt(i.effect.type,this.id,l);t&&(this.effect=t,u.load(i.effect))}if(i.shape?.type){const t=rt(i.shape.type,this.id,l);t&&(this.shape=t,p.load(i.shape))}}if(this.effect===h){const t=[...this._container.effectDrawers.keys()];this.effect=t[Math.floor(A()*t.length)]}if(this.shape===h){const t=[...this._container.shapeDrawers.keys()];this.shape=t[Math.floor(A()*t.length)]}this.effectData=this.effect?function(t,e,i,s){const n=e.options[t];return at({close:e.close},rt(n,i,s))}(this.effect,u,this.id,l):void 0,this.shapeData=this.shape?function(t,e,i,s){const n=e.options[t];return at({close:e.close},rt(n,i,s))}(this.shape,p,this.id,l):void 0,r.load(i);const f=this.effectData;f&&r.load(f.particles);const g=this.shapeData;g&&r.load(g.particles),this.effectClose=f?.close??r.effect.close,this.shapeClose=g?.close??r.shape.close,this.options=r,n.retina.initParticle(this),this.size=lt(this.options.size,a),this.bubble={inRange:!1},this.slow={inRange:!1,factor:1},this._initPosition(e),this.initialVelocity=this._calculateVelocity(),this.velocity=this.initialVelocity.copy();let _,y;n.particles.setLastZIndex(this.position.z),this.zIndexFactor=this.position.z/n.zLayers,this.sides=24,this.effect&&(_=n.effectDrawers.get(this.effect)),_?.loadEffect&&_.loadEffect(this),this.shape&&(y=n.shapeDrawers.get(this.shape)),y?.loadShape&&y.loadShape(this);const m=y?.getSidesCount;m&&(this.sides=m(this)),this.spawning=!1;for(const t of n.particleUpdaters)t.init(this);_?.particleInit?.(n,this),y?.particleInit?.(n,this);for(const t of n.particleCreatedPlugins)t.particleCreated?.(this)}isInsideCanvas(){const t=this.getRadius(),e=this._container.canvas.size,i=this.position;return i.x>=-t&&i.y>=-t&&i.y<=e.height+t&&i.x<=e.width+t}isShowingBack(){if(!this.roll)return!1;const t=this.roll.angle;if(this.roll.horizontal&&this.roll.vertical){const e=t%d,i=e<0?e+d:e;return i>=Math.PI*s&&i<3*Math.PI*s}if(this.roll.horizontal){const e=(t+Math.PI*s)%(2*Math.PI),i=e<0?e+2*Math.PI:e;return i>=Math.PI&&i<2*Math.PI}if(this.roll.vertical){const e=t%(2*Math.PI),i=e<0?e+2*Math.PI:e;return i>=Math.PI&&i<2*Math.PI}return!1}isVisible(){return!this.destroyed&&!this.spawning&&this.isInsideCanvas()}reset(){for(const t of this._container.particleUpdaters)t.reset?.(this)}_calcPosition=(t,e)=>{let i=0,s=t?b.create(t.x,t.y,e):void 0;const n=this._container,a=n.particlePositionPlugins,o=this.options.move.outModes,r=this.getRadius(),l=n.canvas.size,c=new AbortController,{signal:h}=c;for(;!h.aborted;){for(const t of a){const i=t.particlePosition?.(s,this);if(i)return b.create(i.x,i.y,e)}const t=N({size:l,position:s}),c=b.create(t.x,t.y,e);this._fixHorizontal(c,r,o.left??o.default),this._fixHorizontal(c,r,o.right??o.default),this._fixVertical(c,r,o.top??o.default),this._fixVertical(c,r,o.bottom??o.default);let h=!0;for(const t of n.particles.checkParticlePositionPlugins)if(h=t.checkParticlePosition?.(this,c,i)??!0,!h)break;if(h)return c;i+=1,s=void 0}return s};_calculateVelocity=()=>{const t=function(t){const e=x.origin;return e.length=1,e.angle=t,e}(this.direction).copy(),e=this.options.move;if(e.direction===w.inside||e.direction===w.outside)return t;const i=W(U(e.angle.value)),n=W(U(e.angle.offset)),a={left:n-i*s,right:n+i*s};return e.straight||(t.angle+=L($(a.left,a.right))),e.random&&"number"==typeof e.speed&&(t.length*=A()),t};_fixHorizontal=(t,e,i)=>{Ri({outMode:i,checkModes:[Ct.bounce],coord:t.x,maxCoord:this._container.canvas.size.width,setCb:e=>t.x+=e,radius:e})};_fixVertical=(t,e,i)=>{Ri({outMode:i,checkModes:[Ct.bounce],coord:t.y,maxCoord:this._container.canvas.size.height,setCb:e=>t.y+=e,radius:e})};_getRollColor=t=>t&&this.roll&&(this.backColor||this.roll.alter)&&this.isShowingBack()?this.backColor?this.backColor:this.roll.alter?function(t,e,i){return{h:t.h,s:t.s,l:t.l+(e===It.darken?-1:1)*i}}(t,this.roll.alter.type,this.roll.alter.value):t:t;_initPosition=t=>{const e=this._container,i=U(this.options.zIndex.value),n=this._calcPosition(t,F(i,0,e.zLayers));if(!n)throw new Error("a valid position cannot be found for particle");this.position=n,this.initialPosition=this.position.copy();const a=e.canvas.size;switch(this.moveCenter={...ht(this.options.move.center,a),radius:this.options.move.center.radius,mode:this.options.move.center.mode},this.direction=function(t,e,i){if(S(t))return W(t);switch(t){case w.top:return-Math.PI*s;case w.topRight:return-Math.PI*v;case w.right:return 0;case w.bottomRight:return Math.PI*v;case w.bottom:return Math.PI*s;case w.bottomLeft:return.75*Math.PI;case w.left:return Math.PI;case w.topLeft:return.75*-Math.PI;case w.inside:return Math.atan2(i.y-e.y,i.x-e.x);case w.outside:return Math.atan2(e.y-i.y,e.x-i.x);default:return A()*d}}(this.options.move.direction,this.position,this.moveCenter),this.options.move.direction){case w.inside:this.outType=Ot.inside;break;case w.outside:this.outType=Ot.outside}this.offset=x.origin}}class Ai{_cellSize;_cells=new Map;_circlePool=[];_circlePoolIdx;_pendingCellSize;_rectanglePool=[];_rectanglePoolIdx;constructor(t){this._cellSize=t,this._circlePoolIdx=0,this._rectanglePoolIdx=0}clear(){this._cells.clear();const t=this._pendingCellSize;t&&(this._cellSize=t),this._pendingCellSize=void 0}insert(t){const{x:e,y:i}=t.getPosition(),s=this._cellKeyFromCoords(e,i);this._cells.has(s)||this._cells.set(s,[]),this._cells.get(s)?.push(t)}query(t,e,i=[]){const s=this._getRangeBounds(t);if(!s)return i;const n=Math.floor(s.minX/this._cellSize),a=Math.floor(s.maxX/this._cellSize),o=Math.floor(s.minY/this._cellSize),r=Math.floor(s.maxY/this._cellSize);for(let s=n;s<=a;s++)for(let n=o;n<=r;n++){const a=`${s}_${n}`,o=this._cells.get(a);if(o)for(const s of o)e&&!e(s)||t.contains(s.getPosition())&&i.push(s)}return i}queryCircle(t,e,i,s=[]){const n=this._acquireCircle(t.x,t.y,e),a=this.query(n,i,s);return this._releaseShapes(),a}queryRectangle(t,e,i,s=[]){const n=this._acquireRectangle(t.x,t.y,e.width,e.height),a=this.query(n,i,s);return this._releaseShapes(),a}setCellSize(t){this._pendingCellSize=t}_acquireCircle(t,e,i){return(this._circlePool[this._circlePoolIdx++]??=new Et(t,e,i)).reset(t,e,i)}_acquireRectangle(t,e,i,s){return(this._rectanglePool[this._rectanglePoolIdx++]??=new At(t,e,i,s)).reset(t,e,i,s)}_cellKeyFromCoords(t,e){return`${Math.floor(t/this._cellSize)}_${Math.floor(e/this._cellSize)}`}_getRangeBounds(t){if(t instanceof Et){const e=t.radius,{x:i,y:s}=t.position;return{minX:i-e,maxX:i+e,minY:s-e,maxY:s+e}}if(t instanceof At){const{x:e,y:i}=t.position,{width:s,height:n}=t.size;return{minX:e,maxX:e+s,minY:i,maxY:i+n}}return null}_releaseShapes(){this._circlePoolIdx=0,this._rectanglePoolIdx=0}}class Ti{checkParticlePositionPlugins;grid;_array;_container;_groupLimits;_limit;_maxZIndex;_minZIndex;_needsSort;_nextId;_particleResetPlugins;_particleUpdatePlugins;_pluginManager;_pool;_postParticleUpdatePlugins;_postUpdatePlugins;_resizeFactor;_updatePlugins;_zArray;constructor(t,e){this._pluginManager=t,this._container=e,this._nextId=0,this._array=[],this._zArray=[],this._pool=[],this._limit=0,this._groupLimits=new Map,this._needsSort=!1,this._minZIndex=0,this._maxZIndex=0,this.grid=new Ai(100),this.checkParticlePositionPlugins=[],this._particleResetPlugins=[],this._particleUpdatePlugins=[],this._postUpdatePlugins=[],this._postParticleUpdatePlugins=[],this._updatePlugins=[]}get count(){return this._array.length}addParticle(t,e,i,s){const n=this._container.actualOptions.particles.number.limit.mode,a=void 0===i?this._limit:this._groupLimits.get(i)??this._limit,o=this.count;if(a>0)switch(n){case St.delete:{const t=o+1-a;t>0&&this.removeQuantity(t);break}case St.wait:if(o>=a)return}try{const n=this._pool.pop()??new Ei(this._pluginManager,this._container);n.init(this._nextId,t,e,i);let a=!0;return s&&(a=s(n)),a?(this._array.push(n),this._zArray.push(n),this._nextId++,this._container.dispatchEvent(yt.particleAdded,{particle:n}),n):void this._pool.push(n)}catch(t){Pt().warning(`error adding particle: ${t}`)}}clear(){this._array=[],this._zArray=[]}destroy(){this._array=[],this._pool.length=0,this._zArray=[],this.checkParticlePositionPlugins=[],this._particleResetPlugins=[],this._particleUpdatePlugins=[],this._postUpdatePlugins=[],this._postParticleUpdatePlugins=[],this._updatePlugins=[]}drawParticles(t){for(const e of this._zArray)e.draw(t)}filter(t){return this._array.filter(t)}find(t){return this._array.find(t)}get(t){return this._array[t]}async init(){const t=this._container,e=t.actualOptions;this._minZIndex=0,this._maxZIndex=0,this._needsSort=!1,this.checkParticlePositionPlugins=[],this._updatePlugins=[],this._particleUpdatePlugins=[],this._postUpdatePlugins=[],this._particleResetPlugins=[],this._postParticleUpdatePlugins=[],this.grid=new Ai(100*t.retina.pixelRatio);for(const e of t.plugins)e.redrawInit&&await e.redrawInit(),e.checkParticlePosition&&this.checkParticlePositionPlugins.push(e),e.update&&this._updatePlugins.push(e),e.particleUpdate&&this._particleUpdatePlugins.push(e),e.postUpdate&&this._postUpdatePlugins.push(e),e.particleReset&&this._particleResetPlugins.push(e),e.postParticleUpdate&&this._postParticleUpdatePlugins.push(e);await this._container.initDrawersAndUpdaters();for(const e of this._container.effectDrawers.values())await(e.init?.(t));for(const e of this._container.shapeDrawers.values())await(e.init?.(t));let i=!1;for(const e of t.plugins)if(i=e.particlesInitialization?.()??i,i)break;if(!i){const t=e.particles,i=t.groups;for(const e in i){const s=i[e];if(s)for(let i=this.count,n=0;n<s.number.value&&i<t.number.value;i++,n++)this.addParticle(void 0,s,e)}for(let e=this.count;e<t.number.value;e++)this.addParticle()}}push(t,e,i,s){for(let n=0;n<t;n++)this.addParticle(e,i,s)}async redraw(){this.clear(),await this.init(),this._container.canvas.render.drawParticles({value:0,factor:0})}remove(t,e,i){this.removeAt(this._array.indexOf(t),void 0,e,i)}removeAt(t,e=1,i,s){if(t<0||t>this.count)return;let n=0;for(let a=t;n<e&&a<this.count;a++)this._removeParticle(a,i,s)&&(a--,n++)}removeQuantity(t,e){this.removeAt(0,t,e)}setDensity(){const t=this._container.actualOptions,e=t.particles.groups;let i=0;for(const t of this._container.plugins)t.particlesDensityCount&&(i+=t.particlesDensityCount());for(const t in e){const s=e[t];if(!s)continue;const n=ye(this._pluginManager,this._container,s);this._applyDensity(n,i,t)}this._applyDensity(t.particles,i)}setLastZIndex(t){this._needsSort||=t>=this._maxZIndex||t>this._minZIndex&&t<this._maxZIndex}setResizeFactor(t){this._resizeFactor=t}update(t){const e=new Set;this.grid.clear();for(const e of this._updatePlugins)e.update?.(t);const i=this._resizeFactor;for(const s of this._array){i&&!s.ignoresResizeRatio&&(s.position.x*=i.width,s.position.y*=i.height,s.initialPosition.x*=i.width,s.initialPosition.y*=i.height),s.ignoresResizeRatio=!1;for(const t of this._particleResetPlugins)t.particleReset?.(s);for(const e of this._particleUpdatePlugins){if(s.destroyed)break;e.particleUpdate?.(s,t)}s.destroyed?e.add(s):this.grid.insert(s)}for(const e of this._postUpdatePlugins)e.postUpdate?.(t);for(const i of this._array)if(i.destroyed)e.add(i);else{for(const e of this._container.particleUpdaters)e.update(i,t);if(i.destroyed||i.spawning)i.destroyed&&e.add(i);else for(const e of this._postParticleUpdatePlugins)e.postParticleUpdate?.(i,t)}if(e.size)for(const t of e)this.remove(t);if(delete this._resizeFactor,this._needsSort){const t=this._zArray;t.sort((t,e)=>e.position.z-t.position.z||t.id-e.id);const e=t[0],i=t[t.length-1];if(!e||!i)return;this._maxZIndex=e.position.z,this._minZIndex=i.position.z,this._needsSort=!1}}_addToPool=(...t)=>{this._pool.push(...t)};_applyDensity=(t,e,i,s)=>{const n=t.number;if(!n.density.enable)return void(void 0===i?this._limit=n.limit.value:(s?.number.limit.value??n.limit.value)&&this._groupLimits.set(i,s?.number.limit.value??n.limit.value));const a=this._initDensityFactor(n.density),o=n.value,r=n.limit.value>0?n.limit.value:o,l=Math.min(o,r)*a+e,c=Math.min(this.count,this.filter(t=>t.group===i).length);void 0===i?this._limit=n.limit.value*a:this._groupLimits.set(i,n.limit.value*a),c<l?this.push(Math.abs(l-c),void 0,t,i):c>l&&this.removeQuantity(c-l,i)};_initDensityFactor=t=>{const e=this._container;if(!e.canvas.element||!t.enable)return 1;const i=e.canvas.element,s=e.retina.pixelRatio;return i.width*i.height/(t.height*t.width*s**2)};_removeParticle=(t,e,i)=>{const s=this._array[t];if(!s)return!1;if(s.group!==e)return!1;const n=this._zArray.indexOf(s);return this._array.splice(t,1),this._zArray.splice(n,1),s.destroy(i),this._container.dispatchEvent(yt.particleRemoved,{particle:s}),this._addToPool(s),!0}}class Fi{container;pixelRatio;reduceFactor;constructor(t){this.container=t,this.pixelRatio=1,this.reduceFactor=1}init(){const t=this.container,e=t.actualOptions;this.pixelRatio=e.detectRetina?devicePixelRatio:1,this.reduceFactor=1;const i=this.pixelRatio,s=t.canvas;if(s.element){const t=s.element;s.size.width=t.offsetWidth*i,s.size.height=t.offsetHeight*i}}initParticle(t){const e=t.options,i=this.pixelRatio,s=e.move,n=s.distance,a=t.retina;a.maxSpeed=U(s.gravity.maxSpeed)*i,a.moveDrift=U(s.drift)*i,a.moveSpeed=U(s.speed)*i,a.sizeAnimationSpeed=U(e.size.animation.speed)*i;const o=a.maxDistance;o.horizontal=void 0===n.horizontal?void 0:n.horizontal*i,o.vertical=void 0===n.vertical?void 0:n.vertical*i}}function Li(t){return!t.destroyed}function Ui(t,e,...i){const s=new me(t,e);return _e(s,...i),s}var Bi=Object.freeze({__proto__:null,Container:class{actualOptions;canvas;destroyed;effectDrawers;fpsLimit;hdr;id;pageHidden;particleCreatedPlugins;particleDestroyedPlugins;particlePositionPlugins;particleUpdaters;particles;plugins;retina;shapeDrawers;started;zLayers;_delay;_delayTimeout;_delta={value:0,factor:0};_dispatchCallback;_drawAnimationFrame;_duration;_eventListeners;_firstStart;_initialSourceOptions;_lastFrameTime;_lifeTime;_onDestroy;_options;_paused;_pluginManager;_smooth;_sourceOptions;constructor(t){const{dispatchCallback:e,pluginManager:i,id:s,onDestroy:n,sourceOptions:a}=t;this._pluginManager=i,this._dispatchCallback=e,this._onDestroy=n,this.id=Symbol(s),this.fpsLimit=120,this.hdr=!1,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=a,this._initialSourceOptions=a,this.effectDrawers=new Map,this.shapeDrawers=new Map,this.particleUpdaters=[],this.retina=new Fi(this),this.canvas=new Oi(this._pluginManager,this),this.particles=new Ti(this._pluginManager,this),this.plugins=[],this.particleDestroyedPlugins=[],this.particleCreatedPlugins=[],this.particlePositionPlugins=[],this._options=Ui(this._pluginManager,this),this.actualOptions=Ui(this._pluginManager,this),this._eventListeners=new Di(this),this.dispatchEvent(yt.containerBuilt)}get animationStatus(){return!this._paused&&!this.pageHidden&&Li(this)}get options(){return this._options}get sourceOptions(){return this._sourceOptions}addLifeTime(t){this._lifeTime+=t}alive(){return!this._duration||this._lifeTime<=this._duration}destroy(t=!0){if(Li(this)){this.stop(),this.particles.destroy(),this.canvas.destroy();for(const[,t]of this.effectDrawers)t.destroy?.(this);for(const[,t]of this.shapeDrawers)t.destroy?.(this);for(const t of this.plugins)t.destroy?.();this.effectDrawers=new Map,this.shapeDrawers=new Map,this.particleUpdaters=[],this.plugins.length=0,this._pluginManager.clearPlugins(this),this.destroyed=!0,this._onDestroy(t),this.dispatchEvent(yt.containerDestroyed)}}dispatchEvent(t,e){this._dispatchCallback(t,{container:this,data:e})}draw(t){if(!Li(this))return;let e=t;this._drawAnimationFrame=R(t=>{e&&(this._lastFrameTime=void 0,e=!1),this._nextFrame(t)})}async export(t,e={}){for(const i of this.plugins){if(!i.export)continue;const s=await i.export(t,e);if(s.supported)return s.blob}Pt().error(`Export plugin with type ${t} not found`)}async init(){if(!Li(this))return;const t=new Map;for(const e of this._pluginManager.plugins){const i=await e.getPlugin(this);i.preInit&&await i.preInit(),t.set(e,i)}await this.initDrawersAndUpdaters(),this._options=Ui(this._pluginManager,this,this._initialSourceOptions,this.sourceOptions),this.actualOptions=Ui(this._pluginManager,this,this._options),this.plugins.length=0,this.particleDestroyedPlugins.length=0,this.particleCreatedPlugins.length=0,this.particlePositionPlugins.length=0;for(const[e,i]of t)e.needsPlugin(this.actualOptions)&&(this.plugins.push(i),i.particleCreated&&this.particleCreatedPlugins.push(i),i.particleDestroyed&&this.particleDestroyedPlugins.push(i),i.particlePosition&&this.particlePositionPlugins.push(i));this.retina.init(),this.canvas.init(),this.updateActualOptions(),this.canvas.initBackground(),this.canvas.resize();const{delay:e,duration:i,fpsLimit:s,hdr:a,smooth:o,zLayers:r}=this.actualOptions;this.hdr=a,this.zLayers=r,this._duration=U(i)*n,this._delay=U(e)*n,this._lifeTime=0,this.fpsLimit=s>0?s:120,this._smooth=o;for(const t of this.plugins)await(t.init?.());await this.particles.init(),this.dispatchEvent(yt.containerInit),this.particles.setDensity();for(const t of this.plugins)t.particlesSetup?.();this.dispatchEvent(yt.particlesSetup)}async initDrawersAndUpdaters(){const t=this._pluginManager;this.effectDrawers=await t.getEffectDrawers(this,!0),this.shapeDrawers=await t.getShapeDrawers(this,!0),this.particleUpdaters=await t.getUpdaters(this,!0)}pause(){var t;if(Li(this)&&(void 0!==this._drawAnimationFrame&&(t=this._drawAnimationFrame,E(t),delete this._drawAnimationFrame),!this._paused)){for(const t of this.plugins)t.pause?.();this.pageHidden||(this._paused=!0),this.dispatchEvent(yt.containerPaused)}}play(t){if(!Li(this))return;const e=this._paused||t;if(!this._firstStart||this.actualOptions.autoPlay){if(this._paused&&(this._paused=!1),e)for(const t of this.plugins)t.play&&t.play();this.dispatchEvent(yt.containerPlay),this.draw(e??!1)}else this._firstStart=!1}async refresh(){if(Li(this))return this.stop(),this.start()}async reset(t){if(Li(this))return this._initialSourceOptions=t,this._sourceOptions=t,this._options=Ui(this._pluginManager,this,this._initialSourceOptions,this.sourceOptions),this.actualOptions=Ui(this._pluginManager,this,this._options),this.refresh()}async start(){Li(this)&&!this.started&&(await this.init(),this.started=!0,await new Promise(t=>{const e=async()=>{this._eventListeners.addListeners();for(const t of this.plugins)await(t.start?.());this.dispatchEvent(yt.containerStarted),this.play(),t()};this._delayTimeout=setTimeout(()=>{e()},this._delay)}))}stop(){if(Li(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();for(const t of this.plugins)t.stop?.();this.particleCreatedPlugins.length=0,this.particleDestroyedPlugins.length=0,this.particlePositionPlugins.length=0,this._sourceOptions=this._options,this.dispatchEvent(yt.containerStopped)}}updateActualOptions(){let t=!1;for(const e of this.plugins)e.updateActualOptions&&(t=e.updateActualOptions()||t);return t}_nextFrame=t=>{try{if(!this._smooth&&void 0!==this._lastFrameTime&&t<this._lastFrameTime+n/this.fpsLimit)return void this.draw(!1);if(this._lastFrameTime??=t,function(t,e,i=60,s=!1){t.value=e,t.factor=s?60/i:60*e/n}(this._delta,t-this._lastFrameTime,this.fpsLimit,this._smooth),this.addLifeTime(this._delta.value),this._lastFrameTime=t,this._delta.value>n)return void this.draw(!1);if(this.canvas.render.drawParticles(this._delta),!this.alive())return void this.destroy();this.animationStatus&&this.draw(!1)}catch(t){Pt().error("error in animation loop",t)}}}});function Vi(t,e,i,s,n,a,o){!function(t,e){const i=t.options,s=i.move.path;if(!s.enable)return;const n=t.pathDelay??0;if(t.lastPathTime<=n)return void(t.lastPathTime+=e.value);const a=t.pathGenerator?.generate(t,e);a&&t.velocity.addTo(a);s.clamp&&(t.velocity.x=F(t.velocity.x,-1,1),t.velocity.y=F(t.velocity.y,-1,1));t.lastPathTime-=n}(t,o);const r=t.gravity,l=r?.enable&&r.inverse?-1:1;n&&i&&(t.velocity.x+=n*o.factor/(60*i)),r?.enable&&i&&(t.velocity.y+=l*(r.acceleration*o.factor)/(60*i));const c=t.moveDecay;t.velocity.multTo(c??1);const h=t.velocity.mult(i);r?.enable&&s>0&&(!r.inverse&&h.y>=0&&h.y>=s||r.inverse&&h.y<=0&&h.y<=-s)&&(h.y=l*s,i&&(t.velocity.y=h.y/i));const d=t.options.zIndex,u=(1-t.zIndexFactor)**d.velocityRate;h.multTo(u),h.multTo(a);const{position:p}=t;p.addTo(h),e.vibrate&&(p.x+=Math.sin(p.x*Math.cos(p.y))*a,p.y+=Math.cos(p.y*Math.sin(p.x))*a)}function $i(t,e){const i=e.options.move.spin;if(!i.enable)return;const s=i.position??{x:50,y:50},n={x:.01*s.x*t.canvas.size.width,y:.01*s.y*t.canvas.size.height},a=e.getPosition(),o=(l=a,c=n,Math.sqrt(q(l,c))),r=U(i.acceleration);var l,c;e.retina.spinAcceleration=r*t.retina.pixelRatio,e.spin={center:n,direction:e.velocity.x>=0?Mt.clockwise:Mt.counterClockwise,angle:A()*d,radius:o,acceleration:e.retina.spinAcceleration}}var Gi=Object.freeze({__proto__:null,MovePluginInstance:class{availablePathGenerators;pathGenerators;_container;_pluginManager;constructor(t,e){this._pluginManager=t,this._container=e,this.availablePathGenerators=new Map,this.pathGenerators=new Map}destroy(){this.availablePathGenerators=new Map,this.pathGenerators=new Map}isEnabled(t){return!t.destroyed&&t.options.move.enable}particleCreated(t){const e=t.options.move,i=e.gravity,s=e.path;if(t.moveDecay=1-U(e.decay),t.pathDelay=U(s.delay.value)*n,s.generator){let e=this.pathGenerators.get(s.generator);e||(e=this.availablePathGenerators.get(s.generator),e&&(this.pathGenerators.set(s.generator,e),e.init())),t.pathGenerator=e}t.gravity={enable:i.enable,acceleration:U(i.acceleration),inverse:i.inverse},$i(this._container,t)}particleDestroyed(t){const e=t.pathGenerator;e?.reset(t)}particleUpdate(t,e){const i=t.options,n=i.move;if(!n.enable)return;const a=this._container,o=a.retina.pixelRatio,r=function(t){return t.slow.inRange?t.slow.factor:1}(t),l=a.retina.reduceFactor,c=t.retina.moveSpeed,h=t.retina.moveDrift,d=V(i.size.value)*o,u=c*(n.size?t.getRadius()/d:1)*r*(e.factor||1)*s,p=t.retina.maxSpeed;n.spin.enable?function(t,e,i,n){if(!e.spin)return;const a=e.spin.direction===Mt.clockwise,o={x:a?Math.cos:Math.sin,y:a?Math.sin:Math.cos};e.position.x=e.spin.center.x+e.spin.radius*o.x(e.spin.angle)*n,e.position.y=e.spin.center.y+e.spin.radius*o.y(e.spin.angle)*n,e.spin.radius+=e.spin.acceleration*n;const r=Math.max(t.canvas.size.width,t.canvas.size.height),l=r*s;e.spin.radius>l?(e.spin.radius=l,e.spin.acceleration*=-1):e.spin.radius<0&&(e.spin.radius=0,e.spin.acceleration*=-1),e.spin.angle+=.01*i*(1-e.spin.radius/r)}(a,t,u,l):Vi(t,n,u,p,h,l,e),function(t){const e=t.initialPosition,{dx:i,dy:n}=G(e,t.position),a=Math.abs(i),o=Math.abs(n),{maxDistance:r}=t.retina,l=r.horizontal,c=r.vertical;if(!l&&!c)return;if((l&&a>=l||c&&o>=c)&&!t.misplaced)t.misplaced=!!l&&a>l||!!c&&o>c,l&&(t.velocity.x=t.velocity.y*s-t.velocity.x),c&&(t.velocity.y=t.velocity.x*s-t.velocity.y);else if((!l||a<l)&&(!c||o<c)&&t.misplaced)t.misplaced=!1;else if(t.misplaced){const i=t.position,s=t.velocity;l&&(i.x<e.x&&s.x<0||i.x>e.x&&s.x>0)&&(s.x*=-A()),c&&(i.y<e.y&&s.y<0||i.y>e.y&&s.y>0)&&(s.y*=-A())}}(t)}preInit(){return this._init()}redrawInit(){return this._init()}update(){for(const t of this.pathGenerators.values())t.update()}async _init(){const t=await(this._pluginManager.getPathGenerators?.(this._container,!0));if(t){this.availablePathGenerators=t,this.pathGenerators=new Map;for(const t of this.pathGenerators.values())t.init()}}}});var qi=Object.freeze({__proto__:null,EmittersPluginInstance:class{container;_instancesManager;constructor(t,e){this.container=e,this._instancesManager=t,this._instancesManager.initContainer(e)}async init(){const t=this.container.actualOptions.emitters;if(I(t))for(const e of t)await this._instancesManager.addEmitter(this.container,e);else await this._instancesManager.addEmitter(this.container,t)}pause(){for(const t of this._instancesManager.getArray(this.container))t.pause()}play(){for(const t of this._instancesManager.getArray(this.container))t.play()}resize(){for(const t of this._instancesManager.getArray(this.container))t.resize()}stop(){this._instancesManager.clear(this.container)}update(t){this._instancesManager.getArray(this.container).forEach(e=>{e.update(t)})}}});const Wi=new Map;var ji=Object.freeze({__proto__:null,ShapeManager:class{addShapeGenerator(t,e){this.getShapeGenerator(t)||Wi.set(t,e)}getShapeGenerator(t){return Wi.get(t)}getSupportedShapeGenerators(){return Wi.keys()}}});var Ni=Object.freeze({__proto__:null,EmittersInstancesManager:class{_containerArrays;_pluginManager;constructor(t){this._containerArrays=new Map,this._pluginManager=t}async addEmitter(t,e,i){const s=new vi;s.load(e);const{EmitterInstance:n}=await Promise.resolve().then(function(){return Qi}),a=new n(this._pluginManager,t,e=>{this.removeEmitter(t,e)},s,i);return await a.init(),this.getArray(t).push(a),a}clear(t){this.initContainer(t),this._containerArrays.set(t,[])}getArray(t){this.initContainer(t);let e=this._containerArrays.get(t);return e||(e=[],this._containerArrays.set(t,e)),e}initContainer(t){this._containerArrays.has(t)||(this._containerArrays.set(t,[]),t.getEmitter=e=>{const i=this.getArray(t);return void 0===e||S(e)?i[e??0]:i.find(t=>t.name===e)},t.addEmitter=async(e,i)=>this.addEmitter(t,e,i),t.removeEmitter=e=>{const i=t.getEmitter?.(e);i&&this.removeEmitter(t,i)},t.playEmitter=e=>{const i=t.getEmitter?.(e);i&&i.externalPlay()},t.pauseEmitter=e=>{const i=t.getEmitter?.(e);i&&i.externalPause()})}removeEmitter(t,e){const i=this.getArray(t).indexOf(e);i>=0&&this.getArray(t).splice(i,1)}}});function Zi(t,e,i,s){(t.paint??=new ae).fill={color:Vt.create(void 0,{value:e}),enable:s,opacity:i}}function Hi(t,e,i,s){(t.paint??=new ae).stroke={color:Vt.create(void 0,{value:e}),opacity:i,width:s}}var Qi=Object.freeze({__proto__:null,EmitterInstance:class{fill;name;options;position;size;spawnFillColor;spawnFillEnabled;spawnFillOpacity;spawnStrokeColor;spawnStrokeOpacity;spawnStrokeWidth;_container;_currentDuration;_currentEmitDelay;_currentSpawnDelay;_duration;_emitDelay;_firstSpawn;_immortal;_initialPosition;_lifeCount;_mutationObserver;_particlesOptions;_paused;_pluginManager;_removeCallback;_resizeObserver;_shape;_size;_spawnDelay;_startParticlesAdded;constructor(t,e,i,s,a){this._pluginManager=t,this._container=e,this._removeCallback=i,this._currentDuration=0,this._currentEmitDelay=0,this._currentSpawnDelay=0,this._initialPosition=a,s instanceof vi?this.options=s:(this.options=new vi,this.options.load(s)),this._spawnDelay=e.retina.reduceFactor?U(this.options.life.delay??0)*n/e.retina.reduceFactor:1/0,this.position=this._initialPosition??this._calcPosition(),this.name=this.options.name,this.fill=this.options.fill,this._firstSpawn=!this.options.life.wait,this._startParticlesAdded=!1;const o=at({},this.options.particles);if(o.move??={},o.move.direction??=this.options.direction,this.options.spawn.fill?.color&&(this.spawnFillColor=Me(this._pluginManager,this.options.spawn.fill.color)),this.options.spawn.stroke?.color&&(this.spawnStrokeColor=Me(this._pluginManager,this.options.spawn.stroke.color)),this._paused=!this.options.autoPlay,this._particlesOptions=o,this._size=this._calcSize(),this.size=dt(this._size,this._container.canvas.size),this._lifeCount=this.options.life.count??-1,this._immortal=this._lifeCount<=0,this.options.domId){const t=tt().getElementById(this.options.domId);t&&(this._mutationObserver=new MutationObserver(()=>{this.resize()}),this._resizeObserver=new ResizeObserver(()=>{this.resize()}),this._mutationObserver.observe(t,{attributes:!0,attributeFilter:["style","width","height"]}),this._resizeObserver.observe(t))}const r=this.options.shape,l=this._pluginManager.emitterShapeManager?.getShapeGenerator(r.type);l&&(this._shape=l.generate(this._container,this.position,this.size,this.fill,r.options)),this._container.dispatchEvent("emitterCreated",{emitter:this}),this.play()}externalPause(){this._paused=!0,this.pause()}externalPlay(){this._paused=!1,this.play()}async init(){await(this._shape?.init())}pause(){this._paused||delete this._emitDelay}play(){if(this._paused)return;if(!(this._lifeCount>0||this._immortal)&&this.options.life.count||!(this._firstSpawn||this._currentSpawnDelay>=(this._spawnDelay??0)))return;const t=this._container;if(void 0===this._emitDelay){const e=U(this.options.rate.delay);this._emitDelay=t.retina.reduceFactor?e*n/t.retina.reduceFactor:1/0}(this._lifeCount>0||this._immortal)&&this._prepareToDie()}resize(){const t=this._initialPosition,e=this._container;this.position=t&&st(t,e.canvas.size,x.origin)?t:this._calcPosition(),this._size=this._calcSize(),this.size=dt(this._size,e.canvas.size),this._shape?.resize(this.position,this.size)}update(t){if(this._paused)return;const e=this._container;this._firstSpawn&&(this._firstSpawn=!1,this._currentSpawnDelay=this._spawnDelay??0,this._currentEmitDelay=this._emitDelay??0),this._startParticlesAdded||(this._startParticlesAdded=!0,this._emitParticles(this.options.startCount)),void 0!==this._duration&&(this._currentDuration+=t.value,this._currentDuration>=this._duration&&(this.pause(),void 0!==this._spawnDelay&&delete this._spawnDelay,this._immortal||this._lifeCount--,this._lifeCount>0||this._immortal?(this.position=this._calcPosition(),this._shape?.resize(this.position,this.size),this._spawnDelay=e.retina.reduceFactor?U(this.options.life.delay??0)*n/e.retina.reduceFactor:1/0):this._destroy(),this._currentDuration-=this._duration,delete this._duration)),void 0!==this._spawnDelay&&(this._currentSpawnDelay+=t.value,this._currentSpawnDelay>=this._spawnDelay&&(this._container.dispatchEvent("emitterPlay"),this.play(),this._currentSpawnDelay-=this._spawnDelay,delete this._spawnDelay)),void 0!==this._emitDelay&&(this._currentEmitDelay+=t.value,this._currentEmitDelay>=this._emitDelay&&(this._emit(),this._currentEmitDelay-=this._emitDelay))}_calcPosition(){const t=this._container;if(this.options.domId){const e=tt().getElementById(this.options.domId);if(e){const i=e.getBoundingClientRect(),n=t.retina.pixelRatio;return{x:(i.x+i.width*s)*n,y:(i.y+i.height*s)*n}}}return j({size:t.canvas.size,position:this.options.position})}_calcSize(){const t=this._container;if(this.options.domId){const e=tt().getElementById(this.options.domId);if(e){const i=e.getBoundingClientRect();return{width:i.width*t.retina.pixelRatio,height:i.height*t.retina.pixelRatio,mode:J.precise}}}return this.options.size??(()=>{const t=new yi;return t.load({height:0,mode:J.percent,width:0}),t})()}_destroy=()=>{this._mutationObserver?.disconnect(),this._mutationObserver=void 0,this._resizeObserver?.disconnect(),this._resizeObserver=void 0,this._removeCallback(this),this._container.dispatchEvent("emitterDestroyed",{emitter:this})};_emit(){if(this._paused)return;const t=U(this.options.rate.quantity);this._emitParticles(t)}_emitParticles(t){const e=rt(this._particlesOptions)??{},i=this.options.spawn.fill?.color?.animation,s=this.options.spawn.fill?.enable??!!this.options.spawn.fill?.color,n=void 0===this.options.spawn.fill?.opacity?1:U(this.options.spawn.fill.opacity),a=this.options.spawn.stroke?.color?.animation,o=void 0===this.options.spawn.stroke?.opacity?1:U(this.options.spawn.stroke.opacity),r=void 0===this.options.spawn.stroke?.width?1:U(this.options.spawn.stroke.width),l=this._container.retina.reduceFactor,c=!!i,h=!!a,d=!!this._shape,u=c||h,p=u||d,f=u?{h:_,s:y,l:m}:null,g=this.options.shape;for(let c=0;c<t*l;c++){const t=p?at({},e):e;this.spawnFillOpacity=n,this.spawnFillEnabled=s,this.spawnStrokeOpacity=o,this.spawnStrokeWidth=r,this.spawnFillColor&&(i&&f&&(this.spawnFillColor.h=this._setColorAnimation(i.h,this.spawnFillColor.h,f.h,3.6),this.spawnFillColor.s=this._setColorAnimation(i.s,this.spawnFillColor.s,f.s),this.spawnFillColor.l=this._setColorAnimation(i.l,this.spawnFillColor.l,f.l)),Zi(t,this.spawnFillColor,this.spawnFillOpacity,this.spawnFillEnabled)),this.spawnStrokeColor&&(a&&f&&(this.spawnStrokeColor.h=this._setColorAnimation(a.h,this.spawnStrokeColor.h,f.h,3.6),this.spawnStrokeColor.s=this._setColorAnimation(a.s,this.spawnStrokeColor.s,f.s),this.spawnStrokeColor.l=this._setColorAnimation(a.l,this.spawnStrokeColor.l,f.l)),Hi(t,this.spawnStrokeColor,this.spawnStrokeOpacity,this.spawnStrokeWidth));let l=this.position;if(this._shape){const e=this._shape.randomPosition();if(e){l=e.position;const i=g.replace;i.color&&e.color&&Zi(t,e.color,i.opacity?e.opacity??1:1,!0)}else l=null}l&&this._container.particles.addParticle(l,t)}}_prepareToDie=()=>{if(this._paused)return;const t=void 0!==this.options.life.duration?U(this.options.life.duration):void 0;(this._lifeCount>0||this._immortal)&&void 0!==t&&t>0&&(this._duration=t*n)};_setColorAnimation=(t,e,i,s=1)=>{const a=this._container;if(!t.enable)return e;const o=L(t.offset),r=U(this.options.rate.delay),l=a.retina.reduceFactor?r*n/a.retina.reduceFactor:1/0;return(e+U(t.speed)*a.fpsLimit/l+o*s)%i}}});t.loadBubblesPreset=Mi,t.tsParticles=Te}),Object.assign(globalThis.window||globalThis,{loadBubblesPreset:(globalThis.__tsParticlesInternals.presets.bubbles||{}).loadBubblesPreset}),delete(globalThis.window||globalThis).tsparticlesInternalExports;
|