"use strict";(globalThis.webpackChunk_tsparticles_wordpress=globalThis.webpackChunk_tsparticles_wordpress||[]).push([[8084],{8084:(t,o,s)=>{s.d(o,{loadExternalSlowInteraction:()=>e});var i=s(9201);class a{constructor(){this.factor=3,this.radius=200}load(t){t&&(void 0!==t.factor&&(this.factor=t.factor),void 0!==t.radius&&(this.radius=t.radius))}}class n extends i.L8{constructor(t){super(t)}clear(t,o,s){t.slow.inRange&&!s||(t.slow.factor=1)}init(){const t=this.container,o=t.actualOptions.interactivity.modes.slow;o&&(t.retina.slowModeRadius=o.radius*t.retina.pixelRatio)}async interact(){}isEnabled(t){const o=this.container,s=o.interactivity.mouse,a=(t?.interactivity??o.actualOptions.interactivity).events;return a.onHover.enable&&!!s.position&&(0,i.dB)("slow",a.onHover.mode)}loadModeOptions(t,...o){t.slow||(t.slow=new a);for(const s of o)t.slow.load(s?.slow)}reset(t){t.slow.inRange=!1;const o=this.container,s=o.actualOptions,a=o.interactivity.mouse.position,n=o.retina.slowModeRadius,e=s.interactivity.modes.slow;if(!e||!n||n<0||!a)return;const r=t.getPosition(),c=(0,i.Sp)(a,r),l=c/n,d=e.factor,{slow:u}=t;c>n||(u.inRange=!0,u.factor=l/d)}}async function e(t,o=!0){await t.addInteractor("externalSlow",(t=>new n(t)),o)}}}]);