"use strict";(globalThis.webpackChunk_tsparticles_wordpress=globalThis.webpackChunk_tsparticles_wordpress||[]).push([[1859,5112],{5112(e,t,a){a.d(t,{loadZigZagPath:()=>g});var n=a(1859),i=a(3199);const s=Math.PI*i.MXx,r={waveHeight:{min:0,max:3},waveLength:{min:0,max:5}};class o{options;#e;#t;constructor(e){this.#e=e,this.#t=i.Miz.origin,this.options=(0,i.zwS)({},r)}generate(e,t){const a=this.options;e.zigzag??={counter:(0,i.G0i)(),waveHeight:(0,i.VGA)(a.waveHeight),waveLength:(0,i.VGA)(a.waveLength)};const n=.5/e.zigzag.waveLength*t.factor;e.zigzag.counter+=n;const r=e.zigzag.waveHeight*Math.sin(e.zigzag.counter);return e.position.x+=r*Math.cos(e.velocity.angle+s),e.position.y+=r*Math.sin(e.velocity.angle+s),this.#t.x=0,this.#t.y=0,this.#t}init(){const e=this.#e.actualOptions.particles.move.path.options;this.options.waveLength=e.waveLength??this.options.waveLength,this.options.waveHeight=e.waveHeight??this.options.waveHeight}reset(){}update(){}}async function g(e){e.checkVersion("4.1.3"),await e.pluginManager.register(e=>{(0,n.g)(e),e.pluginManager.addPathGenerator?.("zigZagPathGenerator",e=>Promise.resolve(new o(e)))})}},1859(e,t,a){a.d(t,{g:()=>r,loadMovePlugin:()=>s});var n=a(3199);class i{id="move";#a;constructor(e){this.#a=e}async getPlugin(e){const{MovePluginInstance:t}=await a.e(5272).then(a.bind(a,5272));return new t(this.#a,e)}loadOptions(){}needsPlugin(){return!0}}async function s(e){e.checkVersion("4.1.3"),await e.pluginManager.register(e=>{const t=e.pluginManager;t.initializers.pathGenerators??=new Map,t.pathGenerators??=new Map,t.addPathGenerator=(e,a)=>{t.initializers.pathGenerators??=new Map,t.initializers.pathGenerators.set(e,a)},t.getPathGenerators=async(e,a=!1)=>(t.initializers.pathGenerators??=new Map,t.pathGenerators??=new Map,(0,n.OtU)(e,t.pathGenerators,t.initializers.pathGenerators,a)),e.pluginManager.addPlugin(new i(e.pluginManager))})}function r(e){if(!e.pluginManager.addPathGenerator)throw new Error("tsParticles Base Mover is not loaded")}}}]);