"use strict";(globalThis.webpackChunk_tsparticles_wordpress=globalThis.webpackChunk_tsparticles_wordpress||[]).push([[7013],{4922(i,t,n){var e;n.d(t,{G:()=>e}),function(i){i.equidistant="equidistant",i.onePerPoint="one-per-point",i.perPoint="per-point",i.randomLength="random-length",i.randomPoint="random-point"}(e||(e={}))},9929(i,t,n){var e;n.d(t,{T:()=>e}),function(i){i.inline="inline",i.inside="inside",i.outside="outside",i.none="none"}(e||(e={}))},7013(i,t,n){n.d(t,{loadPolygonMaskPlugin:()=>u});var e=n(3199);class a{color=new e.Oit;opacity=1;width=.5;#i;constructor(i){this.#i=i}load(i){(0,e.kZJ)(i)||(this.color=e.Oit.create(this.color,i.color),(0,e.KgX)(this.color.value)&&(this.opacity=(0,e.zIs)(this.#i,this.color.value)??this.opacity),(0,e.kBH)(this,"opacity",i.opacity),(0,e.kBH)(this,"width",i.width))}}class s{enable=!1;stroke;constructor(i){this.stroke=new a(i)}load(i){if((0,e.kZJ)(i))return;(0,e.kBH)(this,"enable",i.enable);const t=i.stroke;this.stroke.load(t)}}var o,r=n(4922);class l{arrangement;constructor(){this.arrangement=r.G.onePerPoint}load(i){(0,e.kZJ)(i)||(0,e.kBH)(this,"arrangement",i.arrangement)}}class h{path=[];size;constructor(){this.size={height:0,width:0}}load(i){(0,e.kZJ)(i)||((0,e.kBH)(this,"path",i.path),void 0!==i.size&&(void 0!==i.size.width&&(this.size.width=i.size.width),void 0!==i.size.height&&(this.size.height=i.size.height)))}}!function(i){i.path="path",i.radius="radius"}(o||(o={}));class d{radius=10;type=o.path;load(i){(0,e.kZJ)(i)||((0,e.kBH)(this,"radius",i.radius),(0,e.kBH)(this,"type",i.type))}}var p=n(9929);class g{data;draw;enable=!1;inline=new l;move=new d;position;scale=1;type=p.T.none;url;constructor(i){this.draw=new s(i)}load(i){(0,e.kZJ)(i)||(this.draw.load(i.draw),this.inline.load(i.inline),this.move.load(i.move),(0,e.kBH)(this,"scale",i.scale),(0,e.kBH)(this,"type",i.type),void 0!==i.enable?this.enable=i.enable:this.enable=this.type!==p.T.none,(0,e.kBH)(this,"url",i.url),void 0!==i.data&&((0,e.KgX)(i.data)?this.data=i.data:(this.data=new h,this.data.load(i.data))),void 0!==i.position&&(this.position=(0,e.zwS)({},i.position)))}}class c{id="polygon-mask";#i;constructor(i){this.#i=i}async getPlugin(i){const{PolygonMaskInstance:t}=await n.e(2355).then(n.bind(n,2355));return new t(this.#i,i)}loadOptions(i,t,n){if(!this.needsPlugin(t)&&!this.needsPlugin(n))return;let e=t.polygon;void 0===e?.load&&(t.polygon=e=new g(this.#i)),e.load(n?.polygon)}needsPlugin(i){return i?.polygon?.enable??(void 0!==i?.polygon?.type&&i.polygon.type!==p.T.none)}}async function u(i){i.checkVersion("4.1.3"),await i.pluginManager.register(i=>{i.pluginManager.addPlugin(new c(i.pluginManager))})}}}]);