"use strict";(globalThis.webpackChunk_tsparticles_wordpress=globalThis.webpackChunk_tsparticles_wordpress||[]).push([[9004],{9004:(o,e,a)=>{a.d(e,{loadCogShape:()=>s});var t=a(9201);class i{afterDraw(o){const{context:e,particle:a,radius:t}=o;if(void 0===a.cogHoleRadius||void 0===a.cogInnerRadius||void 0===a.cogInnerTaper||void 0===a.cogNotches||void 0===a.cogOuterTaper)return;const i=2*Math.PI,s=t*a.cogHoleRadius/100;e.globalCompositeOperation="destination-out",e.beginPath(),e.moveTo(s,0),e.arc(0,0,s,0,i),e.closePath(),e.fill(),e.globalCompositeOperation="source-over"}draw(o){const{context:e,particle:a,radius:t}=o;if(void 0===a.cogHoleRadius||void 0===a.cogInnerRadius||void 0===a.cogInnerTaper||void 0===a.cogNotches||void 0===a.cogOuterTaper)return;const i=2*Math.PI,s=i/(2*a.cogNotches),c=s*a.cogInnerTaper*.005,n=s*a.cogOuterTaper*.005,r=t*a.cogInnerRadius/100;let u=s,d=!1;for(e.moveTo(t*Math.cos(n),t*Math.sin(n));u<=i;u+=s)d?(e.lineTo(r*Math.cos(u-c),r*Math.sin(u-c)),e.lineTo(t*Math.cos(u+n),t*Math.sin(u+n))):(e.lineTo(t*Math.cos(u-n),t*Math.sin(u-n)),e.lineTo(r*Math.cos(u+c),r*Math.sin(u+c))),d=!d}particleInit(o,e){const a=e.shapeData;e.cogHoleRadius=(0,t.Gu)(a?.holeRadius??44),e.cogInnerRadius=(0,t.Gu)(a?.innerRadius??72),e.cogInnerTaper=(0,t.Gu)(a?.innerTaper??35),e.cogNotches=(0,t.Gu)(a?.notches??7),e.cogOuterTaper=(0,t.Gu)(a?.outerTaper??50)}}async function s(o,e=!0){await o.addShape("cog",new i,e)}}}]);