"use strict";(globalThis.webpackChunk_tsparticles_wordpress=globalThis.webpackChunk_tsparticles_wordpress||[]).push([[8970],{8970(e,t,a){a.d(t,{MotionPluginInstance:()=>n});var r=a(3199);class n{#e;constructor(e){this.#e=e}async init(){const e=this.#e,t=e.actualOptions.motion;if(!t||!t.disable&&!t.reduce.value)return void(e.retina.reduceFactor=1);const a=(0,r.lVH)("(prefers-reduced-motion: reduce)");a?(this.#t(a),a.addEventListener("change",()=>{(async()=>{this.#t(a);try{await e.refresh()}catch{}})()}),await Promise.resolve()):e.retina.reduceFactor=1}#t(e){const t=this.#e,a=t.actualOptions.motion;a&&(e.matches?a.disable?t.retina.reduceFactor=0:t.retina.reduceFactor=a.reduce.value?1/a.reduce.factor:1:t.retina.reduceFactor=1)}}}}]);