!function(e){var t,n,r,i;t=this,n=function(e){"use strict";function t(){return"undefined"!=typeof window}function n(){return s||t()&&(s=window.gsap)&&s.registerPlugin&&s}function v(e){return Math.round(1e4*e)/1e4}function g(e){return parseFloat(e)||0}function p(e,t){var n=g(e);return~e.indexOf("%")?n/100*t:n}function y(e,t){return g(e.getAttribute(t))}function w(e,t,n,r,i,o){return S(Math.pow((g(n)-g(e))*i,2)+Math.pow((g(r)-g(t))*o,2))}function x(e){return console.warn(e)}function b(e){return"non-scaling-stroke"===e.getAttribute("vector-effect")}function d(e){if(!(e=P(e)[0]))return 0;var t,n,r,i,o,s,a,l=e.tagName.toLowerCase(),h=e.style,u=1,f=1;b(e)&&(u=S((f=e.getScreenCTM()).a*f.a+f.b*f.b),f=S(f.d*f.d+f.c*f.c));try{n=e.getBBox()}catch(e){x("Some browsers won't measure invisible elements (like display:none or masks inside defs).")}var g=n||{x:0,y:0,width:0,height:0},p=g.x,d=g.y,c=g.width,m=g.height;if(n&&(c||m)||!N[l]||(c=y(e,N[l][0]),m=y(e,N[l][1]),"rect"!==l&&"line"!==l&&(c*=2,m*=2),"line"===l&&(p=y(e,"x1"),d=y(e,"y1"),c=Math.abs(c-p),m=Math.abs(m-d))),"path"===l)i=h.strokeDasharray,h.strokeDasharray="none",t=e.getTotalLength()||0,v(u)!==v(f)&&!M&&(M=1)&&x("Warning: length cannot be measured when vector-effect is non-scaling-stroke and the element isn't proportionally scaled."),t*=(u+f)/2,h.strokeDasharray=i;else if("rect"===l)t=2*c*u+2*m*f;else if("line"===l)t=w(p,d,p+c,d+m,u,f);else if("polyline"===l||"polygon"===l)for(r=e.getAttribute("points").match(T)||[],"polygon"===l&&r.push(r[0],r[1]),t=0,o=2;ot._length-.2&&(o+=o<0?.1:-.1)&&(n+=.1),a.strokeDashoffset=i?o:o+.001,a.strokeDasharray=n<.2?"none":i?i+"px,"+(t._nowrap?999999:n)+"px":"0px, 999999px"}},getLength:d,getPosition:c};n()&&s.registerPlugin(l),e.PaSvgDrawer=l,e.default=l,"undefined"==typeof window||window!==e?Object.defineProperty(e,"__esModule",{value:!0}):delete e.default},"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n((t=t||self).window=t.window||{}),r=this,i=function(e){"use strict";function r(e){return"string"==typeof e}function k(e){return Math.round(1e10*e)/1e10||0}function A(e,t,n,r){var i=e[t],o=1===r?6:F(i,n,r);return o&&o+n+2t){for(;--i&&e[i]>t;);i<0&&(i=0)}else for(;e[++i] element or an SVG path data string")}function D(e){var t,n=0;for(e.reverse();n