"use strict";(globalThis.webpackChunk_tsparticles_wordpress=globalThis.webpackChunk_tsparticles_wordpress||[]).push([[7325],{7325(e,a,i){i.d(a,{loadTiltUpdater:()=>r});var t,s=i(3199);!function(e){e.clockwise="clockwise",e.counterClockwise="counter-clockwise",e.random="random"}(t||(t={}));class n{decay=0;enable=!1;speed=0;sync=!1;load(e){(0,s.kZJ)(e)||((0,s.kBH)(this,"enable",e.enable),(0,s.dPX)(this,"speed",e.speed),(0,s.dPX)(this,"decay",e.decay),(0,s.kBH)(this,"sync",e.sync))}}class c extends s.PVU{animation=new n;direction=t.clockwise;enable=!1;load(e){super.load(e),(0,s.kZJ)(e)||(this.animation.load(e.animation),(0,s.kBH)(this,"direction",e.direction),(0,s.kBH)(this,"enable",e.enable))}}var o=i(5206);class l{#e;constructor(e){this.#e=e}getTransformValues(e){const a=e.tilt?.enable&&e.tilt;return{b:a?Math.cos(a.value)*a.cosDirection:void 0,c:a?Math.sin(a.value)*a.sinDirection:void 0}}init(e){const a=e.options.tilt;if(!a)return;e.tilt={enable:a.enable,value:(0,s.puj)((0,s.VGA)(a.value)),sinDirection:(0,s.G0i)()>=s.MXx?s.D_O:-s.D_O,cosDirection:(0,s.G0i)()>=s.MXx?s.D_O:-s.D_O,min:0,max:s.R1e};let i=a.direction;switch(i===t.random&&(i=Math.floor((0,s.G0i)()*s.gdl)>0?t.counterClockwise:t.clockwise),i){case t.counterClockwise:case"counterClockwise":e.tilt.status=s.H_P.decreasing;break;case t.clockwise:e.tilt.status=s.H_P.increasing}const n=e.options.tilt?.animation;n?.enable&&(e.tilt.decay=s.D_O-(0,s.VGA)(n.decay),e.tilt.velocity=(0,s.VGA)(n.speed)/360*this.#e.retina.reduceFactor,n.sync||(e.tilt.velocity*=(0,s.G0i)()))}isEnabled(e){const a=e.options.tilt?.animation;return!e.destroyed&&!e.spawning&&!!a?.enable}loadOptions(e,...a){(0,s.Ret)(e,"tilt",c,...a)}update(e,a){this.isEnabled(e)&&e.tilt&&(0,o.U)(e,e.tilt,!1,s.VKE.none,a)}}async function r(e){e.checkVersion("4.1.3"),await e.pluginManager.register(e=>{e.pluginManager.addParticleUpdater("tilt",e=>Promise.resolve(new l(e)))})}},5206(e,a,i){i.d(a,{X:()=>s,U:()=>n});var t=i(3199);function s(e,a){const i=e.value,s=e.animation,n={delayTime:(0,t.VGA)(s.delay)*t.XuV,enable:s.enable,value:(0,t.VGA)(e.value)*a,max:(0,t.W9e)(i)*a,min:(0,t.Sgh)(i)*a,loops:0,maxLoops:(0,t.VGA)(s.count),time:0};if(s.enable){switch(n.decay=1-(0,t.VGA)(s.decay),s.mode){case t.gmr.increase:n.status=t.H_P.increasing;break;case t.gmr.decrease:n.status=t.H_P.decreasing;break;case t.gmr.random:n.status=(0,t.G0i)()>=t.MXx?t.H_P.increasing:t.H_P.decreasing}const e=s.mode===t.gmr.auto;switch(s.startValue){case t.SKz.min:n.value=n.min,e&&(n.status=t.H_P.increasing);break;case t.SKz.max:n.value=n.max,e&&(n.status=t.H_P.decreasing);break;case t.SKz.random:default:n.value=(0,t.vEz)(n),e&&(n.status=(0,t.G0i)()>=t.MXx?t.H_P.increasing:t.H_P.decreasing)}}return n.initialValue=n.value,n}function n(e,a,i,s,n){if(e.destroyed||!a.enable||(a.maxLoops??0)>0&&(a.loops??0)>(a.maxLoops??0))return;const c=(a.velocity??0)*n.factor,o=a.min,l=a.max,r=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 t.H_P.increasing:a.value+=c;break;case t.H_P.decreasing:a.value-=c}switch(a.velocity&&1!==r&&(a.velocity*=r),a.status){case t.H_P.increasing:a.value>=l&&(i?a.status=t.H_P.decreasing:a.value-=l,a.loops??=0,a.loops++);break;case t.H_P.decreasing:a.value<=o&&(i?a.status=t.H_P.increasing:a.value+=l,a.loops??=0,a.loops++)}!function(e,a,i,s,n){switch(a){case t.VKE.max:i>=n&&e.destroy();break;case t.VKE.min:i<=s&&e.destroy()}}(e,s,a.value,o,l),e.destroyed||(a.value=(0,t.qE8)(a.value,o,l))}}}}]);