/*! * DrawSVGPlugin 3.13.0 * https://gsap.com * * @license Copyright 2025, GreenSock. All rights reserved. * Subject to the terms at https://gsap.com/standard-license. * @author: Jack Doyle, jack@greensock.com */ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e=e||self).window=e.window||{})}(this,function(e){"use strict";function t(){return"undefined"!=typeof window}function n(){return c||t()&&(c=window.gsap)&&c.registerPlugin&&c}function r(e){return Math.round(1e4*e)/1e4}function i(e){return parseFloat(e)||0}function s(e,t){var n=i(e);return~e.indexOf("%")?n/100*t:n}function o(e,t){return i(e.getAttribute(t))}function a(e,t,n,r,s,o){return b(Math.pow((i(n)-i(e))*s,2)+Math.pow((i(r)-i(t))*o,2))}function f(e){return console.warn(e)}function h(e){return"non-scaling-stroke"===e.getAttribute("vector-effect")}function d(e){if(!(e=g(e)[0]))return 0;var t,n,i,s,d,l,u,c=e.tagName.toLowerCase(),p=e.style,_=1,y=1;h(e)&&(y=e.getScreenCTM(),_=b(y.a*y.a+y.b*y.b),y=b(y.d*y.d+y.c*y.c));try{n=e.getBBox()}catch(e){f("Some browsers won't measure invisible elements (like display:none or masks inside defs).")}var x=n||{x:0,y:0,width:0,height:0},v=x.x,P=x.y,M=x.width,D=x.height;if(n&&(M||D)||!m[c]||(M=o(e,m[c][0]),D=o(e,m[c][1]),"rect"!==c&&"line"!==c&&(M*=2,D*=2),"line"===c&&(v=o(e,"x1"),P=o(e,"y1"),M=Math.abs(M-v),D=Math.abs(D-P))),"path"===c)s=p.strokeDasharray,p.strokeDasharray="none",t=e.getTotalLength()||0,r(_)!==r(y)&&!w&&(w=1)&&f("Warning: length cannot be measured when vector-effect is non-scaling-stroke and the element isn't proportionally scaled."),t*=(_+y)/2,p.strokeDasharray=s;else if("rect"===c)t=2*M*_+2*D*y;else if("line"===c)t=a(v,P,v+M,P+D,_,y);else if("polyline"===c||"polygon"===c)for(i=e.getAttribute("points").match(k)||[],"polygon"===c&&i.push(i[0],i[1]),t=0,d=2;dt._length-.05&&(s+=s<0?.005:-.005)&&(n+=.005),a.strokeDashoffset=i?s:s+.001,a.strokeDasharray=n<.1?"none":i?i+"px,"+(t._nowrap?999999:n)+"px":"0px, 999999px"}}else t.styles.revert()},getLength:d,getPosition:l};n()&&c.registerPlugin(P),e.DrawSVGPlugin=P,e.default=P,"undefined"==typeof window||window!==e?Object.defineProperty(e,"__esModule",{value:!0}):delete e.default});