"use strict";(globalThis.webpackChunk_tsparticles_wordpress=globalThis.webpackChunk_tsparticles_wordpress||[]).push([[1786],{1786(r,s,a){a.d(s,{loadRgbColorPlugin:()=>g});var n,e=a(3199);!function(r){r[r.r=1]="r",r[r.g=2]="g",r[r.b=3]="b",r[r.a=5]="a"}(n||(n={}));const t=/rgba?\(\s*(\d{1,3})\s*[\s,]\s*(\d{1,3})\s*[\s,]\s*(\d{1,3})\s*([\s,]\s*(0|1|0?\.\d+|(\d{1,3})%)\s*)?\)/i;class i{accepts(r){return r.startsWith("rgb")}handleColor(r){const s=r.value.rgb??r.value;if("r"in s&&"g"in s&&"b"in s)return s}handleRangeColor(r){const s=r.value.rgb??r.value;if("r"in s&&"g"in s&&"b"in s)return{r:(0,e.VGA)(s.r),g:(0,e.VGA)(s.g),b:(0,e.VGA)(s.b)}}parseString(r){if(!this.accepts(r))return;const s=t.exec(r);return s?{a:s.length>4?(0,e.M3Y)(s[n.a]):1,b:parseInt(s[n.b]??"0",10),g:parseInt(s[n.g]??"0",10),r:parseInt(s[n.r]??"0",10)}:void 0}}async function g(r){r.checkVersion("4.1.3"),await r.pluginManager.register(r=>{r.pluginManager.addColorManager("rgb",new i)})}}}]);