"use strict";(globalThis.webpackChunk_tsparticles_wordpress=globalThis.webpackChunk_tsparticles_wordpress||[]).push([[7524],{7524:(e,t,s)=>{s.d(t,{loadExportImagePlugin:()=>a});class n{constructor(e,t){this._exportImage=async e=>{const t=this._container.canvas.element;if(t)return new Promise((s=>{t.toBlob((e=>{s(e||void 0)}),e.type??"image/png",e.quality)}))},this._container=e,this._engine=t}async export(e,t){const s={supported:!1};return"image"===e&&(s.supported=!0,s.blob=await this._exportImage(t)),s}}class i{constructor(e){this.id="export-image",this._engine=e}getPlugin(e){return new n(e,this._engine)}loadOptions(){}needsPlugin(){return!0}}async function a(e,t=!0){await e.addPlugin(new i(e),t)}}}]);