"use strict";(globalThis.webpackChunk_tsparticles_wordpress=globalThis.webpackChunk_tsparticles_wordpress||[]).push([[1700,9648],{1700:(e,a,o)=>{o.d(a,{loadSnowPreset:()=>i});var s=o(1373),n=o(9648);const t={background:{color:"#333"},particles:{number:{value:100},move:{direction:"bottom",enable:!0,random:!1,straight:!1},opacity:{value:{min:.1,max:.5}},size:{value:{min:1,max:10}},wobble:{distance:20,enable:!0,speed:{min:-5,max:5}}}};async function i(e,a=!0){await(0,s.loadBasic)(e,!1),await(0,n.loadWobbleUpdater)(e,!1),await e.addPreset("snow",t,a)}},9648:(e,a,o)=>{o.d(a,{loadWobbleUpdater:()=>l});var s=o(9201);class n{constructor(){this.angle=50,this.move=10}load(e){e&&(void 0!==e.angle&&(this.angle=(0,s.Cs)(e.angle)),void 0!==e.move&&(this.move=(0,s.Cs)(e.move)))}}class t{constructor(){this.distance=5,this.enable=!1,this.speed=new n}load(e){if(e&&(void 0!==e.distance&&(this.distance=(0,s.Cs)(e.distance)),void 0!==e.enable&&(this.enable=e.enable),void 0!==e.speed))if((0,s.hj)(e.speed))this.speed.load({angle:e.speed});else{const a=e.speed;void 0!==a.min?this.speed.load({angle:a}):this.speed.load(e.speed)}}}class i{constructor(e){this.container=e}init(e){const a=e.options.wobble;e.wobble=a?.enable?{angle:(0,s.sZ)()*Math.PI*2,angleSpeed:(0,s.Gu)(a.speed.angle)/360,moveSpeed:(0,s.Gu)(a.speed.move)/10}:{angle:0,angleSpeed:0,moveSpeed:0},e.retina.wobbleDistance=(0,s.Gu)(a?.distance??0)*this.container.retina.pixelRatio}isEnabled(e){return!e.destroyed&&!e.spawning&&!!e.options.wobble?.enable}loadOptions(e,...a){e.wobble||(e.wobble=new t);for(const o of a)e.wobble.load(o?.wobble)}update(e,a){this.isEnabled(e)&&function(e,a){const{wobble:o}=e.options,{wobble:s}=e;if(!o?.enable||!s)return;const n=s.angleSpeed*a.factor,t=s.moveSpeed*a.factor*((e.retina.wobbleDistance??0)*a.factor)/(1e3/60),i=2*Math.PI,{position:l}=e;s.angle+=n,s.angle>i&&(s.angle-=i),l.x+=t*Math.cos(s.angle),l.y+=t*Math.abs(Math.sin(s.angle))}(e,a)}}async function l(e,a=!0){await e.addParticleUpdater("wobble",(e=>new i(e)),a)}}}]);