"use strict";(globalThis.webpackChunk_tsparticles_wordpress=globalThis.webpackChunk_tsparticles_wordpress||[]).push([[6373],{6373(a,o,e){e.d(o,{loadBackgroundMaskPlugin:()=>c});var i=e(3199);class n{color;image;opacity=1;load(a){(0,i.kZJ)(a)||(void 0!==a.color&&(this.color=i.Oit.create(this.color,a.color)),(0,i.kBH)(this,"image",a.image),(0,i.kBH)(this,"opacity",a.opacity))}}class s{composite="destination-out";cover=new n;enable=!1;load(a){if(!(0,i.kZJ)(a)){if((0,i.kBH)(this,"composite",a.composite),void 0!==a.cover){const o=a.cover,e=(0,i.KgX)(a.cover)?{color:a.cover}:a.cover;this.cover.load(void 0!==o.color||void 0!==o.image?o:{color:e})}(0,i.kBH)(this,"enable",a.enable)}}}class r{id="background-mask";#a;constructor(a){this.#a=a}async getPlugin(a){const{BackgroundMaskPluginInstance:o}=await e.e(6786).then(e.bind(e,6786));return new o(this.#a,a)}loadOptions(a,o,e){if(!this.needsPlugin(o)&&!this.needsPlugin(e))return;let i=o.backgroundMask;i?.load||(o.backgroundMask=i=new s),i.load(e?.backgroundMask)}needsPlugin(a){return!!a?.backgroundMask?.enable}}async function c(a){a.checkVersion("4.1.3"),await a.pluginManager.register(a=>{a.pluginManager.addPlugin(new r(a.pluginManager))})}}}]);