/*! * VERSION: 0.9.1 * DATE: 2019-02-21 * 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,c=Math.PI,H=c/180,S=/[achlmqstvz]|(-?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,R=/(?:(-|-=|\+=)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,a=/(^[#\.][a-z]|[a-y][a-z])/gi,O=/[achlmqstvz]/gi,w=/[\+\-]?\d*\.?\d+e[\+\-]?\d+/gi,C=Math.atan2,U=Math.cos,q=Math.sin,Q=Math.sqrt,E=2*c,u=.3*c,d=.7*c,p=_gsScope._gsDefine.globals.TweenLite,L="MorphSVGPlugin",G=String.fromCharCode(103,114,101,101,110,115,111,99,107,46,99,111,109),I=String.fromCharCode(47,114,101,113,117,105,114,101,115,45,109,101,109,98,101,114,115,104,105,112,47),F=function(e){for(var t=-1!==(window?window.location.href:"").indexOf(String.fromCharCode(103,114,101,101,110,115,111,99,107))&&-1!==e.indexOf(String.fromCharCode(108,111,99,97,108,104,111,115,116)),r=[G,String.fromCharCode(99,111,100,101,112,101,110,46,105,111),String.fromCharCode(99,111,100,101,112,101,110,46,112,108,117,109,98,105,110,103),String.fromCharCode(99,111,100,101,112,101,110,46,100,101,118),String.fromCharCode(99,115,115,45,116,114,105,99,107,115,46,99,111,109),String.fromCharCode(99,100,112,110,46,105,111),String.fromCharCode(103,97,110,110,111,110,46,116,118),String.fromCharCode(99,111,100,101,99,97,110,121,111,110,46,110,101,116),String.fromCharCode(116,104,101,109,101,102,111,114,101,115,116,46,110,101,116),String.fromCharCode(99,101,114,101,98,114,97,120,46,99,111,46,117,107),String.fromCharCode(116,121,109,112,97,110,117,115,46,110,101,116),String.fromCharCode(116,119,101,101,110,109,97,120,46,99,111,109),String.fromCharCode(116,119,101,101,110,108,105,116,101,46,99,111,109),String.fromCharCode(112,108,110,107,114,46,99,111),String.fromCharCode(104,111,116,106,97,114,46,99,111,109),String.fromCharCode(119,101,98,112,97,99,107,98,105,110,46,99,111,109),String.fromCharCode(97,114,99,104,105,118,101,46,111,114,103),String.fromCharCode(99,111,100,101,115,97,110,100,98,111,120,46,105,111),String.fromCharCode(115,116,97,99,107,98,108,105,116,122,46,99,111,109),String.fromCharCode(99,111,100,105,101,114,46,105,111),String.fromCharCode(106,115,102,105,100,100,108,101,46,110,101,116)],n=r.length;-1<--n;)if(-1!==e.indexOf(r[n]))return!0;return t&&window&&window.console&&console.log(String.fromCharCode(87,65,82,78,73,78,71,58,32,97,32,115,112,101,99,105,97,108,32,118,101,114,115,105,111,110,32,111,102,32)+L+String.fromCharCode(32,105,115,32,114,117,110,110,105,110,103,32,108,111,99,97,108,108,121,44,32,98,117,116,32,105,116,32,119,105,108,108,32,110,111,116,32,119,111,114,107,32,111,110,32,97,32,108,105,118,101,32,100,111,109,97,105,110,32,98,101,99,97,117,115,101,32,105,116,32,105,115,32,97,32,109,101,109,98,101,114,115,104,105,112,32,98,101,110,101,102,105,116,32,111,102,32,67,108,117,98,32,71,114,101,101,110,83,111,99,107,46,32,80,108,101,97,115,101,32,115,105,103,110,32,117,112,32,97,116,32,104,116,116,112,58,47,47,103,114,101,101,110,115,111,99,107,46,99,111,109,47,99,108,117,98,47,32,97,110,100,32,116,104,101,110,32,100,111,119,110,108,111,97,100,32,116,104,101,32,39,114,101,97,108,39,32,118,101,114,115,105,111,110,32,102,114,111,109,32,121,111,117,114,32,71,114,101,101,110,83,111,99,107,32,97,99,99,111,117,110,116,32,119,104,105,99,104,32,104,97,115,32,110,111,32,115,117,99,104,32,108,105,109,105,116,97,116,105,111,110,115,46,32,84,104,101,32,102,105,108,101,32,121,111,117,39,114,101,32,117,115,105,110,103,32,119,97,115,32,108,105,107,101,108,121,32,100,111,119,110,108,111,97,100,101,100,32,102,114,111,109,32,101,108,115,101,119,104,101,114,101,32,111,110,32,116,104,101,32,119,101,98,32,97,110,100,32,105,115,32,114,101,115,116,114,105,99,116,101,100,32,116,111,32,108,111,99,97,108,32,117,115,101,32,111,114,32,111,110,32,115,105,116,101,115,32,108,105,107,101,32,99,111,100,101,112,101,110,46,105,111,46)),t}(window?window.location.host:""),Y=function(e){_gsScope.console&&console.log(e)},b=function(e,t,r,n,o,i,a,h,s){if(e!==h||t!==s){r=Math.abs(r),n=Math.abs(n);var l=o%360*H,f=U(l),g=q(l),p=(e-h)/2,c=(t-s)/2,u=f*p+g*c,d=-g*p+f*c,m=u*u,_=d*d,y=m/(r*r)+_/(n*n);1u[0].length&&M(u[0],(c[0].length-u[0].length)/6|0),y=u.length;dMath.abs(i[0]-a[a.length-2])+Math.abs(i[1]-a[a.length-1])+Math.abs(i[i.length-2]-a[0])+Math.abs(i[i.length-1]-a[1])||r%2)?(T(a),C[y]=-1,v=!0):"auto"===r?C[y]=0:"reverse"===r&&(C[y]=-1),a.closed!==i.closed&&(a.closed=i.closed=!1));return x&&Y("shapeIndex:["+C.join(",")+"]"),e.shapeIndex=C}},o=function(e,t){var r,n,o,i,a,h,s,l=0,f=parseFloat(e[0]),g=parseFloat(e[1]),p=f+","+g+" ";for(r=.5*t/(.5*(o=e.length)-1),n=0;n element. "+re),!1;if(i="PATH"===o?"d":"points",("string"==typeof t||t.getBBox||t[0])&&(t={shape:t}),!t.prop&&"function"!=typeof e.setAttribute)return!1;if(h=$(t.shape||t.d||t.points||"","d"===i,e),s&&O.test(h))return Y("WARNING: a <"+o+"> cannot accept path data. "+re),!1;if(l=t.shapeIndex||0===t.shapeIndex?t.shapeIndex:"auto",f=t.map||ne.defaultMap,this._prop=t.prop,this._render=t.render||ne.defaultRender,this._apply="updateTarget"in t?t.updateTarget:ne.defaultUpdateTarget,this._rnd=Math.pow(10,isNaN(t.precision)?2:+t.precision),this._tween=r,h){if(this._target=e,v="object"==typeof t.precompile,c=this._prop?e[this._prop]:e.getAttribute(i),this._prop||e.getAttributeNS(null,"data-original")||e.setAttributeNS(null,"data-original",c),"d"===i||this._prop){if(c=j(v?t.precompile[0]:c),u=j(v?t.precompile[1]:h),!v&&!k(c,u,l,f,P))return!1;for("log"!==t.precompile&&!0!==t.precompile||Y('precompile:["'+B(c)+'","'+B(u)+'"]'),(b="linear"!==(t.type||ne.defaultType))&&(c=ee(c,t.smoothTolerance),u=ee(u,t.smoothTolerance),c.size||V(c),u.size||V(u),w=te(z[0]),this._origin=c.origin={x:c.left+w.x*c.width,y:c.top+w.y*c.height},z[1]&&(w=te(z[1])),this._eOrigin={x:u.left+w.x*u.width,y:u.top+w.y*u.height}),this._rawPath=e._gsRawPath=c,m=c.length;-1<--m;)for(y=c[m],C=u[m],g=y.isSmooth||[],p=C.isSmooth||[],_=y.length,d=A=0;d<_;d+=2)C[d]===y[d]&&C[d+1]===y[d+1]||(b?g[d]&&p[d]?(x=y.smoothData,S=C.smoothData,M=d+(d===_-4?7-_:5),this._controlPT={_next:this._controlPT,i:d,j:m,l1s:x[d+1],l1c:S[d+1]-x[d+1],l2s:x[M],l2c:S[M]-x[M]},a=this._tweenRotation(y,C,d+2),this._tweenRotation(y,C,d,a),this._tweenRotation(y,C,M-1,a),d+=4):this._tweenRotation(y,C,d):(this._addTween(y,d,y[d],C[d]),a=this._addTween(y,d+1,y[d+1],C[d+1])))}else a=this._addTween(e,"setAttribute",e.getAttribute(i)+"",h+"","morphSVG",!1,i,J(l));b&&(this._addTween(this._origin,"x",this._origin.x,this._eOrigin.x),a=this._addTween(this._origin,"y",this._origin.y,this._eOrigin.y)),a&&(this._overwriteProps.push("morphSVG"),a.end=h,a.endProp=i)}return!0},set:function(e){var t,r,n,o,i,a,h,s,l,f,g,p,c,u=this._rawPath,d=this._controlPT,m=this._anchorPT,_=this._rnd,y=this._target;if(this._super.setRatio.call(this,e),1===e&&this._apply)for(n=this._firstPT;n;)n.end&&(this._prop?y[this._prop]=n.end:y.setAttribute(n.endProp,n.end)),n=n._next;else if(u){for(;m;)a=m.sa+e*m.ca,i=m.sl+e*m.cl,m.t[m.i]=this._origin.x+U(a)*i,m.t[m.i+1]=this._origin.y+q(a)*i,m=m._next;for(r=e<.5?2*e*e:(4-2*e)*e-1;d;)c=(h=d.i)+(h===(o=u[d.j]).length-4?7-o.length:5),a=C(o[c]-o[h+1],o[c-1]-o[h]),g=q(a),p=U(a),l=o[h+2],f=o[h+3],i=d.l1s+r*d.l1c,o[h]=l-p*i,o[h+1]=f-g*i,i=d.l2s+r*d.l2c,o[c-1]=l+p*i,o[c]=f+g*i,d=d._next;if(y._gsRawPath=u,this._apply){for(t=""," ",s=0;sd?o:i,sl:g,cl:Q(l*l+f*f)-g,i:r}},ne.pathFilter=function(e,t,r,n,o){var i=j(e[0]),a=j(e[1]);k(i,a,t||0===t?t:"auto",r,o)&&(e[0]=B(i),e[1]=B(a),"log"!==n&&!0!==n||Y('precompile:["'+e[0]+'","'+e[1]+'"]'))},ne.pointsFilter=r,ne.getTotalSize=V,ne.subdivideRawBezier=ne.subdivideSegment=M,ne.rawPathToString=B,ne.defaultType="linear",ne.defaultUpdateTarget=!0,ne.defaultMap="size",ne.stringToRawPath=ne.pathDataToRawBezier=function(e){return j($(e,!0))},ne.equalizeSegmentQuantity=k,ne.convertToPath=function(e,t){"string"==typeof e&&(e=p.selector(e));for(var r=e&&0!==e.length?e.length&&e[0]&&e[0].nodeType?Array.prototype.slice.call(e,0):[e]:[],n=r.length;-1<--n;)r[n]=h(r[n],!1!==t);return r},ne.pathDataToBezier=function(e,t){var r,n,o,i,a,h,s,l,f=j($(e,!0))[0]||[],g=0;if(l=(t=t||{}).align||t.relative,i=t.matrix||[1,0,0,1,0,0],a=t.offsetX||0,h=t.offsetY||0,"relative"===l||!0===l?(a-=f[0]*i[0]+f[1]*i[2],h-=f[0]*i[1]+f[1]*i[3],g="+="):(a+=i[4],h+=i[5],l&&(l="string"==typeof l?p.selector(l):l&&l[0]?l:[l])&&l[0]&&(a-=(s=l[0].getBBox()||{x:0,y:0}).x,h-=s.y)),r=[],o=f.length,i&&"1,0,0,1,0,0"!==i.join(","))for(n=0;n