"use strict";(globalThis.webpackChunk_tsparticles_wordpress=globalThis.webpackChunk_tsparticles_wordpress||[]).push([[9994],{9994:(t,s,e)=>{e.d(s,{loadEmittersShapeSquare:()=>c});var r=e(1814),i=e(9201);function n(t,s){return t+s*((0,i.sZ)()-.5)}class a extends r.F{constructor(t,s,e,r){super(t,s,e,r)}async init(){}async randomPosition(){const t=this.fill,s=this.position,e=this.size;if(t)return{position:{x:n(s.x,e.width),y:n(s.y,e.height)}};{const t=e.width/2,r=e.height/2,n=Math.floor(4*(0,i.sZ)()),a=2*((0,i.sZ)()-.5);switch(n){case 0:return{position:{x:s.x+a*t,y:s.y-r}};case 1:return{position:{x:s.x-t,y:s.y+a*r}};case 2:return{position:{x:s.x+a*t,y:s.y+r}};default:return{position:{x:s.x+t,y:s.y+a*r}}}}}}class o{generate(t,s,e,r){return new a(t,s,e,r)}}async function c(t,s=!0){const e=t;e.addEmitterShapeGenerator&&e.addEmitterShapeGenerator("square",new o),await e.refresh(s)}}}]);