AlkantarClanX12
Current Path : /home/thanudqk/www/wp-content/plugins/LayerSlider/assets/static/admin/js/ |
Current File : /home/thanudqk/www/wp-content/plugins/LayerSlider/assets/static/admin/js/MorphSVGPlugin.min.js |
/*! * VERSION: 0.9.2 * DATE: 2019-08-13 * UPDATES AND DOCS AT: http://greensock.com * * @license Copyright (c) 2008-2019, GreenSock. All rights reserved. * MorphSVGPlugin is a Club GreenSock membership benefit; You must have a valid membership to use * this code without violating the terms of use. Visit http://greensock.com/club/ to sign up or get more details. * This work is subject to the software agreement that was issued with your membership. * * @author: Jack Doyle, jack@greensock.com */ var _gsScope="undefined"!=typeof module&&module.exports&&"undefined"!=typeof global?global:this||window;(_gsScope._gsQueue||(_gsScope._gsQueue=[])).push(function(){"use strict";var a,b=Math.PI,c=b/180,d=/[achlmqstvz]|(-?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,e=/(?:(-|-=|\+=)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,f=/(^[#\.][a-z]|[a-y][a-z])/i,g=/[achlmqstvz]/gi,h=/[\+\-]?\d*\.?\d+e[\+\-]?\d+/gi,i=Math.atan2,j=Math.cos,k=Math.sin,l=Math.sqrt,m=2*b,n=.3*b,o=.7*b,p=1e20,q=_gsScope._gsDefine.globals.TweenLite,r=function(a){_gsScope.console&&console.log(a)},s=function(a,d,e,f,g,h,i,n,o){if(a!==n||d!==o){e=Math.abs(e),f=Math.abs(f);var p=g%360*c,q=j(p),r=k(p),s=(a-n)/2,t=(d-o)/2,u=q*s+r*t,v=-r*s+q*t,w=u*u,x=v*v,y=w/(e*e)+x/(f*f);y>1&&(e=l(y)*e,f=l(y)*f);var z=e*e,A=f*f,B=(z*A-z*x-A*w)/(z*x+A*w);0>B&&(B=0);var C=(h===i?-1:1)*l(B),D=C*(e*v/f),E=C*-(f*u/e),F=(a+n)/2,G=(d+o)/2,H=F+(q*D-r*E),I=G+(r*D+q*E),J=(u-D)/e,K=(v-E)/f,L=(-u-D)/e,M=(-v-E)/f,N=J*J+K*K,O=(0>K?-1:1)*Math.acos(J/l(N)),P=(0>J*M-K*L?-1:1)*Math.acos((J*L+K*M)/l(N*(L*L+M*M)));isNaN(P)&&(P=b),!i&&P>0?P-=m:i&&0>P&&(P+=m),O%=m,P%=m;var Q,R=Math.ceil(Math.abs(P)/(m/4)),S=[],T=P/R,U=4/3*k(T/2)/(1+j(T/2)),V=q*e,W=r*e,X=r*-f,Y=q*f;for(Q=0;R>Q;Q++)g=O+Q*T,u=j(g),v=k(g),J=j(g+=T),K=k(g),S.push(u-U*v,v+U*u,J+U*K,K-U*J,J,K);for(Q=0;Q<S.length;Q+=2)u=S[Q],v=S[Q+1],S[Q]=u*V+v*X+H,S[Q+1]=u*W+v*Y+I;return S[Q-2]=n,S[Q-1]=o,S}},t=function(a){var b,c,e,f,g,i,j,k,l,m,n,o,p,q=(a+"").replace(h,function(a){var b=+a;return 1e-4>b&&b>-1e-4?0:b}).match(d)||[],t=[],u=0,v=0,w=2/3,x=q.length,y=0,z="ERROR: malformed path: "+a,A=function(a,b,c,d){m=(c-a)/3,n=(d-b)/3,j.push(a+m,b+n,c-m,d-n,c,d)};if(!a||!isNaN(q[0])||isNaN(q[1]))return r(z),t;for(b=0;x>b;b++)if(p=g,isNaN(q[b])?(g=q[b].toUpperCase(),i=g!==q[b]):b--,e=+q[b+1],f=+q[b+2],i&&(e+=u,f+=v),b||(k=e,l=f),"M"===g)j&&(j.length<8?t.length-=1:y+=j.length),u=k=e,v=l=f,j=[e,f],t.push(j),b+=2,g="L";else if("C"===g)j||(j=[0,0]),i||(u=v=0),j.push(e,f,u+1*q[b+3],v+1*q[b+4],u+=1*q[b+5],v+=1*q[b+6]),b+=6;else if("S"===g)m=u,n=v,("C"===p||"S"===p)&&(m+=u-j[j.length-4],n+=v-j[j.length-3]),i||(u=v=0),j.push(m,n,e,f,u+=1*q[b+3],v+=1*q[b+4]),b+=4;else if("Q"===g)m=u+(e-u)*w,n=v+(f-v)*w,i||(u=v=0),u+=1*q[b+3],v+=1*q[b+4],j.push(m,n,u+(e-u)*w,v+(f-v)*w,u,v),b+=4;else if("T"===g)m=u-j[j.length-4],n=v-j[j.length-3],j.push(u+m,v+n,e+(u+1.5*m-e)*w,f+(v+1.5*n-f)*w,u=e,v=f),b+=2;else if("H"===g)A(u,v,u=e,v),b+=1;else if("V"===g)A(u,v,u,v=e+(i?v-u:0)),b+=1;else if("L"===g||"Z"===g)"Z"===g&&(e=k,f=l,j.closed=!0),("L"===g||Math.abs(u-e)>.5||Math.abs(v-f)>.5)&&(A(u,v,e,f),"L"===g&&(b+=2)),u=e,v=f;else if("A"===g){if(o=s(u,v,+q[b+1],+q[b+2],+q[b+3],+q[b+4],+q[b+5],(i?u:0)+1*q[b+6],(i?v:0)+1*q[b+7]))for(c=0;c<o.length;c++)j.push(o[c]);u=j[j.length-2],v=j[j.length-1],b+=7}else r(z);return b=j.length,6>b?(t.pop(),b=0):j[0]===j[b-2]&&j[1]===j[b-1]&&(j.closed=!0),t.totalPoints=y+b,t},u=function(a,b){var c,d,e,f,g,h,i,j,k,l,m,n,o,p,q=0,r=.999999,s=a.length,t=b/((s-2)/6);for(o=2;s>o;o+=6)for(q+=t;q>r;)c=a[o-2],d=a[o-1],e=a[o],f=a[o+1],g=a[o+2],h=a[o+3],i=a[o+4],j=a[o+5],p=1/((Math.floor(q)||1)+1),k=c+(e-c)*p,m=e+(g-e)*p,k+=(m-k)*p,m+=(g+(i-g)*p-m)*p,l=d+(f-d)*p,n=f+(h-f)*p,l+=(n-l)*p,n+=(h+(j-h)*p-n)*p,a.splice(o,4,c+(e-c)*p,d+(f-d)*p,k,l,k+(m-k)*p,l+(n-l)*p,m,n,g+(i-g)*p,h+(j-h)*p),o+=6,s+=6,q--;return a},v=function(a,b){var c,d,e,f="",g=" ",h=a.length,i=Math.pow(10,b||2);for(d=0;d<a.length;d++){for(e=a[d],h=e.length,f+="M"+(e[0]*i|0)/i+g+(e[1]*i|0)/i+" C",c=2;h>c;c++)f+=(e[c]*i|0)/i+g;e.closed&&(f+="z")}return f},w=function(a){for(var b=[],c=a.length-1,d=0;--c>-1;)b[d++]=a[c],b[d++]=a[c+1],c--;for(c=0;d>c;c++)a[c]=b[c];a.reversed=!a.reversed},x=function(a){var b,c=a.length,d=0,e=0;for(b=0;c>b;b++)d+=a[b++],e+=a[b];return[d/(c/2),e/(c/2)]},y=function(a){var b,c,d,e=a.length,f=a[0],g=f,h=a[1],i=h;for(d=6;e>d;d+=6)b=a[d],c=a[d+1],b>f?f=b:g>b&&(g=b),c>h?h=c:i>c&&(i=c);return a.centerX=(f+g)/2,a.centerY=(h+i)/2,a.size=(f-g)*(h-i)},z=function(a,b){b=b||3;for(var c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s=a.length,t=a[0][0],u=t,v=a[0][1],w=v,x=1/b;--s>-1;)for(g=a[s],c=g.length,f=6;c>f;f+=6)for(k=g[f],l=g[f+1],m=g[f+2]-k,p=g[f+3]-l,n=g[f+4]-k,q=g[f+5]-l,o=g[f+6]-k,r=g[f+7]-l,h=b;--h>-1;)i=x*h,j=1-i,d=(i*i*o+3*j*(i*n+j*m))*i+k,e=(i*i*r+3*j*(i*q+j*p))*i+l,d>t?t=d:u>d&&(u=d),e>v?v=e:w>e&&(w=e);return a.centerX=(t+u)/2,a.centerY=(v+w)/2,a.left=u,a.width=t-u,a.top=w,a.height=v-w,a.size=(t-u)*(v-w)},A=function(a,b){return b.length-a.length},B=function(a,b){var c=a.size||y(a),d=b.size||y(b);return Math.abs(d-c)<(c+d)/20?b.centerX-a.centerX||b.centerY-a.centerY:d-c},C=function(a,b){var c,d,e=a.slice(0),f=a.length,g=f-2;for(b=0|b,c=0;f>c;c++)d=(c+b)%g,a[c++]=e[d],a[c]=e[d+1]},D=function(a,b,c,d,e){var f,g,h,i,j=a.length,k=0,m=j-2;for(c*=6,g=0;j>g;g+=6)f=(g+c)%m,i=a[f]-(b[g]-d),h=a[f+1]-(b[g+1]-e),k+=l(h*h+i*i);return k},E=function(a,b,c){var d,e,f,g=a.length,h=x(a),i=x(b),j=i[0]-h[0],k=i[1]-h[1],l=D(a,b,0,j,k),m=0;for(f=6;g>f;f+=6)e=D(a,b,f/6,j,k),l>e&&(l=e,m=f);if(c)for(d=a.slice(0),w(d),f=6;g>f;f+=6)e=D(d,b,f/6,j,k),l>e&&(l=e,m=-f);return m/6},F=function(a,b,c){for(var d,e,f,g,h,i,j=a.length,k=p,m=0,n=0;--j>-1;)for(d=a[j],i=d.length,h=0;i>h;h+=6)e=d[h]-b,f=d[h+1]-c,g=l(e*e+f*f),k>g&&(k=g,m=d[h],n=d[h+1]);return[m,n]},G=function(a,b,c,d,e,f){var g,h,i,j,k,m=b.length,n=0,o=Math.min(a.size||y(a),b[c].size||y(b[c]))*d,q=p,r=a.centerX+e,s=a.centerY+f;for(h=c;m>h&&(g=b[h].size||y(b[h]),!(o>g));h++)i=b[h].centerX-r,j=b[h].centerY-s,k=l(i*i+j*j),q>k&&(n=h,q=k);return k=b[n],b.splice(n,1),k},H=function(a,b,c,d,e){var f,g,h,i,j,k,l,m=b.length-a.length,n=m>0?b:a,o=m>0?a:b,p=0,q="complexity"===d?A:B,s="position"===d?0:"number"==typeof d?d:.8,t=o.length,v="object"==typeof c&&c.push?c.slice(0):[c],x="reverse"===v[0]||v[0]<0,D="log"===c;if(o[0]){if(n.length>1&&(a.sort(q),b.sort(q),k=n.size||z(n),k=o.size||z(o),k=n.centerX-o.centerX,l=n.centerY-o.centerY,q===B))for(t=0;t<o.length;t++)n.splice(t,0,G(o[t],n,t,s,k,l));if(m)for(0>m&&(m=-m),n[0].length>o[0].length&&u(o[0],(n[0].length-o[0].length)/6|0),t=o.length;m>p;)i=n[t].size||y(n[t]),h=F(o,n[t].centerX,n[t].centerY),i=h[0],j=h[1],o[t++]=[i,j,i,j,i,j,i,j],o.totalPoints+=8,p++;for(t=0;t<a.length;t++)f=b[t],g=a[t],m=f.length-g.length,0>m?u(f,-m/6|0):m>0&&u(g,m/6|0),x&&e!==!1&&!g.reversed&&w(g),c=v[t]||0===v[t]?v[t]:"auto",c&&(g.closed||Math.abs(g[0]-g[g.length-2])<.5&&Math.abs(g[1]-g[g.length-1])<.5?"auto"===c||"log"===c?(v[t]=c=E(g,f,!t||e===!1),0>c&&(x=!0,w(g),c=-c),C(g,6*c)):"reverse"!==c&&(t&&0>c&&w(g),C(g,6*(0>c?-c:c))):!x&&("auto"===c&&Math.abs(f[0]-g[0])+Math.abs(f[1]-g[1])+Math.abs(f[f.length-2]-g[g.length-2])+Math.abs(f[f.length-1]-g[g.length-1])>Math.abs(f[0]-g[g.length-2])+Math.abs(f[1]-g[g.length-1])+Math.abs(f[f.length-2]-g[0])+Math.abs(f[f.length-1]-g[1])||c%2)?(w(g),v[t]=-1,x=!0):"auto"===c?v[t]=0:"reverse"===c&&(v[t]=-1),g.closed!==f.closed&&(g.closed=f.closed=!1));return D&&r("shapeIndex:["+v.join(",")+"]"),a.shapeIndex=v,v}},I=function(a,b,c,d,e){var f=t(a[0]),g=t(a[1]);H(f,g,b||0===b?b:"auto",c,e)&&(a[0]=v(f),a[1]=v(g),("log"===d||d===!0)&&r('precompile:["'+a[0]+'","'+a[1]+'"]'))},J=function(a,b){if(!b)return a;var c,d,f,g=a.match(e)||[],h=g.length,i="";for("reverse"===b?(d=h-1,c=-2):(d=(2*(parseInt(b,10)||0)+1+100*h)%h,c=2),f=0;h>f;f+=2)i+=g[d-1]+","+g[d]+" ",d=(d+c)%h;return i},K=function(a,b){var c,d,e,f,g,h,i,j=0,k=parseFloat(a[0]),l=parseFloat(a[1]),m=k+","+l+" ",n=.999999;for(e=a.length,c=.5*b/(.5*e-1),d=0;e-2>d;d+=2){if(j+=c,h=parseFloat(a[d+2]),i=parseFloat(a[d+3]),j>n)for(g=1/(Math.floor(j)+1),f=1;j>n;)m+=(k+(h-k)*g*f).toFixed(2)+","+(l+(i-l)*g*f).toFixed(2)+" ",j--,f++;m+=h+","+i+" ",k=h,l=i}return m},L=function(a){var b=a[0].match(e)||[],c=a[1].match(e)||[],d=c.length-b.length;d>0?a[0]=K(b,d):a[1]=K(c,-d)},M=function(a){return isNaN(a)?L:function(b){L(b),b[1]=J(b[1],parseInt(a,10))}},N=function(a,b){var c,d=_gsScope.document.createElementNS("http://www.w3.org/2000/svg","path"),e=Array.prototype.slice.call(a.attributes),f=e.length;for(b=","+b+",";--f>-1;)c=e[f].nodeName.toLowerCase(),-1===b.indexOf(","+c+",")&&d.setAttributeNS(null,c,e[f].nodeValue);return d},O={rect:"rx,ry,x,y,width,height",circle:"r,cx,cy",ellipse:"rx,ry,cx,cy",line:"x1,x2,y1,y2"},P=function(a,b){for(var c=b?b.split(","):[],d={},e=c.length;--e>-1;)d[c[e]]=+a.getAttribute(c[e])||0;return d},Q=function(a,b){var c,d,f,g,h,i,j,k,l,m,n,o,p,q,r,s,u,w,x,y,z,A,B=a.tagName.toLowerCase(),C=.552284749831;return"path"!==B&&a.getBBox?(i=N(a,"x,y,width,height,cx,cy,rx,ry,r,x1,x2,y1,y2,points"),A=P(a,O[B]),"rect"===B?(g=A.rx,h=A.ry,d=A.x,f=A.y,m=A.width-2*g,n=A.height-2*h,g||h?(o=d+g*(1-C),p=d+g,q=p+m,r=q+g*C,s=q+g,u=f+h*(1-C),w=f+h,x=w+n,y=x+h*C,z=x+h,c="M"+s+","+w+" V"+x+" C"+[s,y,r,z,q,z,q-(q-p)/3,z,p+(q-p)/3,z,p,z,o,z,d,y,d,x,d,x-(x-w)/3,d,w+(x-w)/3,d,w,d,u,o,f,p,f,p+(q-p)/3,f,q-(q-p)/3,f,q,f,r,f,s,u,s,w].join(",")+"z"):c="M"+(d+m)+","+f+" v"+n+" h"+-m+" v"+-n+" h"+m+"z"):"circle"===B||"ellipse"===B?("circle"===B?(g=h=A.r,k=g*C):(g=A.rx,h=A.ry,k=h*C),d=A.cx,f=A.cy,j=g*C,c="M"+(d+g)+","+f+" C"+[d+g,f+k,d+j,f+h,d,f+h,d-j,f+h,d-g,f+k,d-g,f,d-g,f-k,d-j,f-h,d,f-h,d+j,f-h,d+g,f-k,d+g,f].join(",")+"z"):"line"===B?c="M"+A.x1+","+A.y1+" L"+A.x2+","+A.y2:("polyline"===B||"polygon"===B)&&(l=(a.getAttribute("points")+"").match(e)||[],d=l.shift(),f=l.shift(),c="M"+d+","+f+" L"+l.join(","),"polygon"===B&&(c+=","+d+","+f+"z")),i.setAttribute("d",v(i._gsRawPath=t(c))),b&&a.parentNode&&(a.parentNode.insertBefore(i,a),a.parentNode.removeChild(a)),i):a},R=function(a,b,c){var d,g,h="string"==typeof a;return(!h||f.test(a)||(a.match(e)||[]).length<3)&&(d=h?q.selector(a):a&&a[0]?a:[a],d&&d[0]?(d=d[0],g=(d.nodeName+"").toUpperCase(),b&&"PATH"!==g&&(d=Q(d,!1),g="PATH"),a=d.getAttribute("PATH"===g?"d":"points")||"",d===c&&(a=d.getAttributeNS(null,"data-original")||a)):(r("WARNING: invalid morph to: "+a),a=!1)),a},S=function(a,b){for(var c,d,e,f,g,h,j,k,m,n,o,p,q=a.length,r=.2*(b||1);--q>-1;){for(d=a[q],o=d.isSmooth=d.isSmooth||[0,0,0,0],p=d.smoothData=d.smoothData||[0,0,0,0],o.length=4,k=d.length-2,j=6;k>j;j+=6)e=d[j]-d[j-2],f=d[j+1]-d[j-1],g=d[j+2]-d[j],h=d[j+3]-d[j+1],m=i(f,e),n=i(h,g),c=Math.abs(m-n)<r,c&&(p[j-2]=m,p[j+2]=n,p[j-1]=l(e*e+f*f),p[j+3]=l(g*g+h*h)),o.push(c,c,0,0,c,c);d[k]===d[0]&&d[k+1]===d[1]&&(e=d[0]-d[k-2],f=d[1]-d[k-1],g=d[2]-d[0],h=d[3]-d[1],m=i(f,e),n=i(h,g),Math.abs(m-n)<r&&(p[k-2]=m,p[2]=n,p[k-1]=l(e*e+f*f),p[3]=l(g*g+h*h),o[k-2]=o[k-1]=!0))}return a},T=function(a){var b=a.trim().split(" "),c=a.indexOf("left")>=0?0:a.indexOf("right")>=0?100:isNaN(parseFloat(b[0]))?50:parseFloat(b[0]),d=a.indexOf("top")>=0?0:a.indexOf("bottom")>=0?100:isNaN(parseFloat(b[1]))?50:parseFloat(b[1]);return{x:c/100,y:d/100}},U=function(a){return a!==a%b?a+(0>a?m:-m):a},V="Use MorphSVGPlugin.convertToPath(elementOrSelectorText) to convert to a path before morphing.",W=_gsScope._gsDefine.plugin({propName:"morphSVG",API:2,global:!0,version:"0.9.2",overwriteProps:["morphSVG"],init:function(b,c,d,f){var h,i,j,k,l,m,n,o,p,q,s,u,w,x,y,A,B,C,D,E,F,G,I=b.nodeType?window.getComputedStyle(b):{},J=I.fill+"",K=!("none"===J||"0"===(J.match(e)||[])[3]||"evenodd"===I.fillRule),L=(c.origin||"50 50").split(",");if("function"==typeof c&&(c=c(f,b)),h=(b.nodeName+"").toUpperCase(),l="POLYLINE"===h||"POLYGON"===h,"PATH"!==h&&!l&&!c.prop)return r("WARNING: cannot morph a <"+h+"> element. "+V),!1;if(i="PATH"===h?"d":"points",("string"==typeof c||c.getBBox||c[0])&&(c={shape:c}),!c.prop&&"function"!=typeof b.setAttribute)return!1;if(k=R(c.shape||c.d||c.points||"","d"===i,b),l&&g.test(k))return r("WARNING: a <"+h+"> cannot accept path data. "+V),!1;if(m=c.shapeIndex||0===c.shapeIndex?c.shapeIndex:"auto",n=c.map||W.defaultMap,this._prop=c.prop,this._render=c.render||W.defaultRender,this._apply="updateTarget"in c?c.updateTarget:W.defaultUpdateTarget,this._rnd=Math.pow(10,isNaN(c.precision)?2:+c.precision),this._tween=d,k){if(this._target=b,B="object"==typeof c.precompile,q=this._prop?b[this._prop]:b.getAttribute(i),this._prop||b.getAttributeNS(null,"data-original")||b.setAttributeNS(null,"data-original",q),"d"===i||this._prop){if(q=t(B?c.precompile[0]:q),s=t(B?c.precompile[1]:k),!B&&!H(q,s,m,n,K))return!1;for(("log"===c.precompile||c.precompile===!0)&&r('precompile:["'+v(q)+'","'+v(s)+'"]'),F="linear"!==(c.type||W.defaultType),F&&(q=S(q,c.smoothTolerance),s=S(s,c.smoothTolerance),q.size||z(q),s.size||z(s),E=T(L[0]),this._origin=q.origin={x:q.left+E.x*q.width,y:q.top+E.y*q.height},L[1]&&(E=T(L[1])),this._eOrigin={x:s.left+E.x*s.width,y:s.top+E.y*s.height}),this._rawPath=b._gsRawPath=q,w=q.length;--w>-1;)for(y=q[w],A=s[w],o=y.isSmooth||[],p=A.isSmooth||[],x=y.length,a=0,u=0;x>u;u+=2)(A[u]!==y[u]||A[u+1]!==y[u+1])&&(F?o[u]&&p[u]?(C=y.smoothData,D=A.smoothData,G=u+(u===x-4?7-x:5),this._controlPT={_next:this._controlPT,i:u,j:w,l1s:C[u+1],l1c:D[u+1]-C[u+1],l2s:C[G],l2c:D[G]-C[G]},j=this._tweenRotation(y,A,u+2),this._tweenRotation(y,A,u,j),this._tweenRotation(y,A,G-1,j),u+=4):this._tweenRotation(y,A,u):(j=this._addTween(y,u,y[u],A[u]),j=this._addTween(y,u+1,y[u+1],A[u+1])||j))}else j=this._addTween(b,"setAttribute",b.getAttribute(i)+"",k+"","morphSVG",!1,i,M(m));F&&(this._addTween(this._origin,"x",this._origin.x,this._eOrigin.x),j=this._addTween(this._origin,"y",this._origin.y,this._eOrigin.y)),j&&(this._overwriteProps.push("morphSVG"),j.end=k,j.endProp=i)}return!0},set:function(a){var b,c,d,e,f,g,h,l,m,n,o,p,q,r,s=this._rawPath,t=this._controlPT,u=this._anchorPT,v=this._rnd,w=this._target;if(this._super.setRatio.call(this,a),1===a&&this._apply)for(e=this._firstPT;e;)e.end&&(this._prop?w[this._prop]=e.end:w.setAttribute(e.endProp,e.end)),e=e._next;else if(s){for(;u;)h=u.sa+a*u.ca,g=u.sl+a*u.cl,u.t[u.i]=this._origin.x+j(h)*g,u.t[u.i+1]=this._origin.y+k(h)*g,u=u._next;for(d=.5>a?2*a*a:(4-2*a)*a-1;t;)l=t.i,f=s[t.j],r=l+(l===f.length-4?7-f.length:5),h=i(f[r]-f[l+1],f[r-1]-f[l]),p=k(h),q=j(h),n=f[l+2],o=f[l+3],g=t.l1s+d*t.l1c,f[l]=n-q*g,f[l+1]=o-p*g,g=t.l2s+d*t.l2c,f[r-1]=n+q*g,f[r]=o+p*g,t=t._next;if(w._gsRawPath=s,this._apply){for(b="",c=" ",m=0;m<s.length;m++)for(f=s[m],g=f.length,b+="M"+(f[0]*v|0)/v+c+(f[1]*v|0)/v+" C",l=2;g>l;l++)b+=(f[l]*v|0)/v+c;this._prop?w[this._prop]=b:w.setAttribute("d",b)}}this._render&&s&&this._render.call(this._tween,s,w)}});W.prototype._tweenRotation=function(b,c,d,e){var f,g,h=this._origin,j=this._eOrigin,k=b[d]-h.x,m=b[d+1]-h.y,p=l(k*k+m*m),q=i(m,k);return k=c[d]-j.x,m=c[d+1]-j.y,f=i(m,k)-q,g=U(f),!e&&a&&Math.abs(g+a.ca)<n&&(e=a),this._anchorPT=a={_next:this._anchorPT,t:b,sa:q,ca:e&&g*e.ca<0&&Math.abs(g)>o?f:g,sl:p,cl:l(k*k+m*m)-p,i:d}},W.pathFilter=I,W.pointsFilter=L,W.getTotalSize=z,W.subdivideRawBezier=W.subdivideSegment=u,W.rawPathToString=v,W.defaultType="linear",W.defaultUpdateTarget=!0,W.defaultMap="size",W.stringToRawPath=W.pathDataToRawBezier=function(a){return t(R(a,!0))},W.equalizeSegmentQuantity=H,W.convertToPath=function(a,b){"string"==typeof a&&(a=q.selector(a));for(var c=a&&0!==a.length?a.length&&a[0]&&a[0].nodeType?Array.prototype.slice.call(a,0):[a]:[],d=c.length;--d>-1;)c[d]=Q(c[d],b!==!1);return c},W.pathDataToBezier=function(a,b){var c,d,e,f,g,h,i,j,k=t(R(a,!0))[0]||[],l=0;if(b=b||{},j=b.align||b.relative,f=b.matrix||[1,0,0,1,0,0],g=b.offsetX||0,h=b.offsetY||0,"relative"===j||j===!0?(g-=k[0]*f[0]+k[1]*f[2],h-=k[0]*f[1]+k[1]*f[3],l="+="):(g+=f[4],h+=f[5],j&&(j="string"==typeof j?q.selector(j):j&&j[0]?j:[j],j&&j[0]&&(i=j[0].getBBox()||{x:0,y:0},g-=i.x,h-=i.y))),c=[],e=k.length,f&&"1,0,0,1,0,0"!==f.join(","))for(d=0;e>d;d+=2)c.push({x:l+(k[d]*f[0]+k[d+1]*f[2]+g),y:l+(k[d]*f[1]+k[d+1]*f[3]+h)});else for(d=0;e>d;d+=2)c.push({x:l+(k[d]+g),y:l+(k[d+1]+h)});return c}}),_gsScope._gsDefine&&_gsScope._gsQueue.pop()(),function(a){"use strict";var b=function(){return(_gsScope.GreenSockGlobals||_gsScope)[a]};"undefined"!=typeof module&&module.exports?(require("../TweenLite.min.js"),module.exports=b()):"function"==typeof define&&define.amd&&define(["TweenLite"],b)}("MorphSVGPlugin");