"use strict";(self.webpackChunkwordpress_particles=self.webpackChunkwordpress_particles||[]).push([[8772],{8772:function(t,e,a){a.r(e),a.d(e,{loadParticlesAttractInteraction:function(){return c}});var n=a(3563);class r extends n.$S{constructor(t){super(t)}clear(){}init(){}async interact(t){var e;const a=this.container,r=null!==(e=t.retina.attractDistance)&&void 0!==e?e:a.retina.attractDistance,c=t.getPosition(),i=a.particles.quadTree.queryCircle(c,r);for(const e of i){if(t===e||!e.options.move.attract.enable||e.destroyed||e.spawning)continue;const a=e.getPosition(),{dx:r,dy:i}=(0,n.oW)(c,a),o=t.options.move.attract.rotate,s=r/(1e3*o.x),l=i/(1e3*o.y),u=e.size.value/t.size.value,d=1/u;t.velocity.x-=s*u,t.velocity.y-=l*u,e.velocity.x+=s*d,e.velocity.y+=l*d}}isEnabled(t){return t.options.move.attract.enable}reset(){}}async function c(t){await t.addInteractor("particlesAttract",(t=>new r(t)))}}}]);