var __assign=this&&this.__assign||Object.assign||function(t){for(var e,n=1,i=arguments.length;n1&&(r-=Math.floor(r)),o.el.childNodes.length===o.opts.lines)for(var a=0;a1)&&(i+=n.direction);var o=1-i/(n.trail/100);return o<0?n.opacity:o*(1-n.opacity)+n.opacity}function vendor(t,e){if(void 0!==t.style[e])return e;var n="ms"+e.charAt(0).toUpperCase()+e.slice(1);return void 0!==t.style[n]?n:""}function css(t,e){for(var n in e)t.style[vendor(t,n)||n]=e[n];return t}function getColor(t,e){return"string"==typeof t?t:t[e%t.length]}function drawLines(t,e){var n=Math.round(e.corners*e.width*500)/1e3+"px",i="none";!0===e.shadow?i="0 2px 4px #000":"string"==typeof e.shadow&&(i=e.shadow);for(var o=parseBoxShadow(i),r=0;r