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