"use strict";(globalThis.webpackChunk_tsparticles_wordpress=globalThis.webpackChunk_tsparticles_wordpress||[]).push([[9410],{9410(e,a,s){s.d(a,{loadSizeUpdater:()=>c});var i=s(3199),t=s(5206);class n extends i.Q4c{destroy=i.VKE.none;load(e){super.load(e),(0,i.kZJ)(e)||(0,i.kBH)(this,"destroy",e.destroy)}}class o extends i.AIw{animation=new n;value=3;load(e){if(super.load(e),(0,i.kZJ)(e))return;const a=e.animation;void 0!==a&&this.animation.load(a)}}class r{#e;constructor(e){this.#e=e}init(e){const a=this.#e,s=e.options.size;if(!s)return;const t=s.animation;t.enable&&(e.size.velocity=e.retina.sizeAnimationSpeed/i.a56*a.retina.reduceFactor,t.sync||(e.size.velocity*=(0,i.G0i)()))}isEnabled(e){return!e.destroyed&&!e.spawning&&e.size.enable&&((e.size.maxLoops??0)<=0||(e.size.maxLoops??0)>0&&(e.size.loops??0)<(e.size.maxLoops??0))}loadOptions(e,...a){(0,i.Ret)(e,"size",o,...a)}preInit(e){const a=this.#e.retina.pixelRatio,s=e.options.size;s&&(e.size=(0,t.X)(s,a),e.retina.sizeAnimationSpeed=(0,i.VGA)(s.animation.speed)*a)}reset(e){e.size.time=0,e.size.loops=0}update(e,a){this.isEnabled(e)&&e.options.size&&(0,t.U)(e,e.size,!0,e.options.size.animation.destroy,a)}}async function c(e){e.checkVersion("4.1.3"),await e.pluginManager.register(e=>{e.pluginManager.addParticleUpdater("size",e=>Promise.resolve(new r(e)))})}},5206(e,a,s){s.d(a,{X:()=>t,U:()=>n});var i=s(3199);function t(e,a){const s=e.value,t=e.animation,n={delayTime:(0,i.VGA)(t.delay)*i.XuV,enable:t.enable,value:(0,i.VGA)(e.value)*a,max:(0,i.W9e)(s)*a,min:(0,i.Sgh)(s)*a,loops:0,maxLoops:(0,i.VGA)(t.count),time:0};if(t.enable){switch(n.decay=1-(0,i.VGA)(t.decay),t.mode){case i.gmr.increase:n.status=i.H_P.increasing;break;case i.gmr.decrease:n.status=i.H_P.decreasing;break;case i.gmr.random:n.status=(0,i.G0i)()>=i.MXx?i.H_P.increasing:i.H_P.decreasing}const e=t.mode===i.gmr.auto;switch(t.startValue){case i.SKz.min:n.value=n.min,e&&(n.status=i.H_P.increasing);break;case i.SKz.max:n.value=n.max,e&&(n.status=i.H_P.decreasing);break;case i.SKz.random:default:n.value=(0,i.vEz)(n),e&&(n.status=(0,i.G0i)()>=i.MXx?i.H_P.increasing:i.H_P.decreasing)}}return n.initialValue=n.value,n}function n(e,a,s,t,n){if(e.destroyed||!a.enable||(a.maxLoops??0)>0&&(a.loops??0)>(a.maxLoops??0))return;const o=(a.velocity??0)*n.factor,r=a.min,c=a.max,l=a.decay??1;a.time??=0;const d=a.delayTime??0;if(!(d>0&&a.time<d&&(a.time+=n.value,a.time<d))){switch(a.status){case i.H_P.increasing:a.value+=o;break;case i.H_P.decreasing:a.value-=o}switch(a.velocity&&1!==l&&(a.velocity*=l),a.status){case i.H_P.increasing:a.value>=c&&(s?a.status=i.H_P.decreasing:a.value-=c,a.loops??=0,a.loops++);break;case i.H_P.decreasing:a.value<=r&&(s?a.status=i.H_P.increasing:a.value+=c,a.loops??=0,a.loops++)}!function(e,a,s,t,n){switch(a){case i.VKE.max:s>=n&&e.destroy();break;case i.VKE.min:s<=t&&e.destroy()}}(e,t,a.value,r,c),e.destroyed||(a.value=(0,i.qE8)(a.value,r,c))}}}}]);