"use strict";(globalThis.webpackChunk_tsparticles_wordpress=globalThis.webpackChunk_tsparticles_wordpress||[]).push([[3254],{3254(e,s,t){t.d(s,{loadSquircleShape:()=>i});var a=t(3199);function n(e){return e<a.dvp?-a.D_O:a.D_O}class r{draw(e){!function(e){const{context:s,particle:t,radius:r}=e;if(void 0===t.squircleExponent||void 0===t.squircleSteps)return;const i=t.squircleSteps,o=a.R1e/i,c=a.gdl/t.squircleExponent;s.save(),s.scale(r,r),s.beginPath();for(let e=0;e<=i;e++){const t=e*o,a=Math.cos(t),r=Math.sin(t),i=n(a)*Math.pow(Math.abs(a),c),l=n(r)*Math.pow(Math.abs(r),c);e?s.lineTo(i,l):s.moveTo(i,l)}s.closePath(),s.restore()}(e)}particleInit(e,s){const t=s.shapeData;s.squircleExponent=(0,a.VGA)(t?.exponent??4),s.squircleSteps=(0,a.VGA)(t?.steps??64)}}async function i(e){e.checkVersion("4.1.3"),await e.pluginManager.register(e=>{e.pluginManager.addShape(["squircle"],()=>Promise.resolve(new r))})}}}]);