"use strict";(globalThis.webpackChunkwordpress_particles=globalThis.webpackChunkwordpress_particles||[]).push([[6554],{6554:(a,s,t)=>{t.r(s),t.d(s,{loadStarShape:()=>n});var e=t(1197);class l{draw(a,s,t){var e;const l=s.sides,n=null!==(e=s.starInset)&&void 0!==e?e:2;a.moveTo(0,0-t);for(let s=0;s<l;s++)a.rotate(Math.PI/l),a.lineTo(0,0-t*n),a.rotate(Math.PI/l),a.lineTo(0,0-t)}getSidesCount(a){var s,t;const l=a.shapeData;return Math.round((0,e.Gu)(null!==(t=null!==(s=null==l?void 0:l.sides)&&void 0!==s?s:null==l?void 0:l.nb_sides)&&void 0!==t?t:5))}particleInit(a,s){var t;const l=s.shapeData,n=(0,e.Gu)(null!==(t=null==l?void 0:l.inset)&&void 0!==t?t:2);s.starInset=n}}async function n(a){await a.addShape("star",new l)}}}]);