!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.Raphael=e():t.Raphael=e()}(this,function(){return function(i){function r(t){if(n[t])return n[t].exports;var e=n[t]={exports:{},id:t,loaded:!1};return i[t].call(e.exports,e,e.exports,r),e.loaded=!0,e.exports}var n={};return r.m=i,r.c=n,r.p="",r(0)}([function(t,e,i){var r,n;r=[i(1),i(3),i(4)],void 0===(n=function(t){return t}.apply(e,r))||(t.exports=n)},function(t,e,i){var r,n;r=[i(2)],void 0===(n=function(z){function I(t){if(I.is(t,"function"))return r?t():z.on("raphael.DOMload",t);if(I.is(t,T))return I._engine.create[b](I,t.splice(0,3+I.is(t[0],Y))).add(t);var e=Array.prototype.slice.call(arguments,0);if(I.is(e[e.length-1],"function")){var i=e.pop();return r?i.call(I._engine.create[b](I,e)):z.on("raphael.DOMload",function(){i.call(I._engine.create[b](I,e))})}return I._engine.create[b](I,arguments)}function v(t){if("function"==typeof t||Object(t)!==t)return t;var e=new t.constructor;for(var i in t)t[N](i)&&(e[i]=v(t[i]));return e}function O(s,o,a){return function t(){var e=Array.prototype.slice.call(arguments,0),i=e.join("␀"),r=t.cache=t.cache||{},n=t.count=t.count||[];return r[N](i)?function(t,e){for(var i=0,r=t.length;iM(n,o)||M(e,r)M(s,a))){var h=(t-i)*(s-a)-(e-r)*(n-o);if(h){var l=((t*r-e*i)*(n-o)-(t-i)*(n*a-s*o))/h,u=((t*r-e*i)*(s-a)-(e-r)*(n*a-s*o))/h,c=+l.toFixed(2),p=+u.toFixed(2);if(!(c<+L(t,i).toFixed(2)||c>+M(t,i).toFixed(2)||c<+L(n,o).toFixed(2)||c>+M(n,o).toFixed(2)||p<+L(e,r).toFixed(2)||p>+M(e,r).toFixed(2)||p<+L(s,a).toFixed(2)||p>+M(s,a).toFixed(2)))return{x:l,y:u}}}}function k(t,e,i){var r=I.bezierBBox(t),n=I.bezierBBox(e);if(!I.isBBoxIntersect(r,n))return i?0:[];for(var s=S.apply(0,t),o=S.apply(0,e),a=M(~~(s/5),1),h=M(~~(o/5),1),l=[],u=[],c={},p=i?0:[],f=0;f(n=t))return i;if(rr*t.top){i=t.percents[v],u=t.percents[v-1]||0,p=p/t.top*(i-u),l=t.percents[v+1],o=t.anim[i];break}r&&e.attr(t.anim[t.percents[v]])}if(o){if(a)a.initstatus=r,a.start=new Date-a.ms*r;else{for(var m in o)if(o[N](m)&&(K[N](m)||e.paper.customAttributes[N](m)))switch(f[m]=e.attr(m),null==f[m]&&(f[m]=J[m]),d[m]=o[m],K[m]){case Y:g[m]=(d[m]-f[m])/p;break;case"colour":f[m]=I.getRGB(f[m]);var b=I.getRGB(d[m]);g[m]={r:(b.r-f[m].r)/p,g:(b.g-f[m].g)/p,b:(b.b-f[m].b)/p};break;case"path":var w=Pt(f[m],d[m]),_=w[1];for(f[m]=w[0],g[m]=[],v=0,y=f[m].length;v',(ft=dt.firstChild).style.behavior="url(#default#VML)",!ft||"object"!=typeof ft.adj)return I.type="";dt=null}I.svg=!(I.vml="VML"==I.type),I._Paper=l,I.fn=e=l.prototype=I.prototype,I._id=0,I._oid=0,I.is=function(t,e){return"finite"==(e=w.call(e))?!E[N](+t):"array"==e?t instanceof Array:"null"==e&&null===t||e==typeof t&&null!==t||"object"==e&&t===Object(t)||"array"==e&&Array.isArray&&Array.isArray(t)||x.call(t).slice(8,-1).toLowerCase()==e},I.angle=function(t,e,i,r,n,s){if(null!=n)return I.angle(t,e,n,s)-I.angle(i,r,n,s);var o=t-i,a=e-r;return o||a?(180+180*q.atan2(-a,-o)/U+360)%360:0},I.rad=function(t){return t%360*U/180},I.deg=function(t){return Math.round(180*t/U%360*1e3)/1e3},I.snapTo=function(t,e,i){if(i=I.is(i,"finite")?i:10,I.is(t,T)){for(var r=t.length;r--;)if(V(t[r]-e)<=i)return t[r]}else{var n=e%(t=+t);if(n"),e.close(),i=e.body}catch(t){i=createPopup().document.body}var n=i.createTextRange();vt=O(function(t){try{i.style.color=G(t).replace(r,"");var e=n.queryCommandValue("ForeColor");return"#"+("000000"+(e=(255&e)<<16|65280&e|(16711680&e)>>>16).toString(16)).slice(-6)}catch(t){return"none"}})}else{var s=d.doc.createElement("i");s.title="Raphaël Colour Picker",s.style.display="none",d.doc.body.appendChild(s),vt=O(function(t){return s.style.color=t,d.doc.defaultView.getComputedStyle(s,"").getPropertyValue("color")})}return vt(t)},yt=function(){return"hsb("+[this.h,this.s,this.b]+")"},mt=function(){return"hsl("+[this.h,this.s,this.l]+")"},bt=function(){return this.hex},wt=function(t,e,i){if(null==e&&I.is(t,"object")&&"r"in t&&"g"in t&&"b"in t&&(i=t.b,e=t.g,t=t.r),null==e&&I.is(t,f)){var r=I.getRGB(t);t=r.r,e=r.g,i=r.b}return(1=s[n]&&(o.push([e][j](r.splice(0,s[n]))),s[n]););}),o.toString=I._path2string,e.arr=St(o),o},I.parseTransformString=O(function(t){if(!t)return null;var n=[];return I.is(t,T)&&I.is(t[0],T)&&(n=St(t)),n.length||G(t).replace(nt,function(t,e,i){var r=[];w.call(e);i.replace(st,function(t,e){e&&r.push(+e)}),n.push([e][j](r))}),n.toString=I._path2string,n});var kt=function(e){var i=kt.ps=kt.ps||{};return i[e]?i[e].sleep=100:i[e]={sleep:100},setTimeout(function(){for(var t in i)i[N](t)&&t!=e&&(i[t].sleep--,!i[t].sleep&&delete i[t])}),i[e]};I.findDotsAtSegment=function(t,e,i,r,n,s,o,a,h){var l=1-h,u=F(l,3),c=F(l,2),p=h*h,f=p*h,d=u*t+3*c*h*i+3*l*h*h*n+f*o,g=u*e+3*c*h*r+3*l*h*h*s+f*a,x=t+2*h*(i-t)+p*(n-2*i+t),v=e+2*h*(r-e)+p*(s-2*r+e),y=i+2*h*(n-i)+p*(o-2*n+i),m=r+2*h*(s-r)+p*(a-2*s+r),b=l*t+h*i,w=l*e+h*r,_=l*n+h*o,k=l*s+h*a,C=90-180*q.atan2(x-y,v-m)/U;return(y=t.x&&e<=t.x2&&i>=t.y&&i<=t.y2},I.isBBoxIntersect=function(t,e){var i=I.isPointInsideBBox;return i(e,t.x,t.y)||i(e,t.x2,t.y)||i(e,t.x,t.y2)||i(e,t.x2,t.y2)||i(t,e.x,e.y)||i(t,e.x2,e.y)||i(t,e.x,e.y2)||i(t,e.x2,e.y2)||(t.xe.x||e.xt.x)&&(t.ye.y||e.yt.y)},I.pathIntersection=function(t,e){return n(t,e)},I.pathIntersectionNumber=function(t,e){return n(t,e,1)},I.isPointInsidePath=function(t,e,i){var r=I.pathBBox(t);return I.isPointInsideBBox(r,e,i)&&n(t,[["M",e,i],["H",r.x2+10]],1)%2==1},I._removedFactory=function(t){return function(){z("raphael.log",null,"Raphaël: you are calling to method “"+t+"” of removed object",t)}};var Ct=I.pathBBox=function(t){var e=kt(t);if(e.bbox)return v(e.bbox);if(!t)return{x:0,y:0,width:0,height:0,x2:0,y2:0};for(var i,r=0,n=0,s=[],o=[],a=0,h=(t=Pt(t)).length;ac){var B=C,M=a,L=h;C=k+c*(o&&k":function(t){return F(t,.48)},"<>":function(t){var e=.48-t/1.04,i=q.sqrt(.1734+e*e),r=i-e,n=-i-e,s=F(V(r),1/3)*(r<0?-1:1)+F(V(n),1/3)*(n<0?-1:1)+.5;return 3*(1-s)*s*s+s*s*s},backIn:function(t){return t*t*(2.70158*t-1.70158)},backOut:function(t){return(t-=1)*t*(2.70158*t+1.70158)+1},elastic:function(t){return t==!!t?t:F(2,-10*t)*q.sin(2*U*(t-.075)/.3)+1},bounce:function(t){var e=7.5625,i=2.75;return t<1/i?e*t*t:t<2/i?e*(t-=1.5/i)*t+.75:t<2.5/i?e*(t-=2.25/i)*t+.9375:e*(t-=2.625/i)*t+.984375}};ie.easeIn=ie["ease-in"]=ie["<"],ie.easeOut=ie["ease-out"]=ie[">"],ie.easeInOut=ie["ease-in-out"]=ie["<>"],ie["back-in"]=ie.backIn,ie["back-out"]=ie.backOut;var re=[],ne=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(t){setTimeout(t,16)},se=function(){for(var t=+new Date,e=0;e"));var L=B.getBoundingClientRect();a.W=r.w=(L.right-L.left)/100,a.H=r.h=(L.bottom-L.top)/100,a.X=r.x,a.Y=r.y+a.H/2,("x"in e||"y"in e)&&(a.path.v=E.format("m{0},{1}l{2},{1}",D(r.x*X),D(r.y*X),D(r.x*X)+1));for(var F=["x","y","text","font","font-family","font-weight","font-style","font-size"],T=0,A=F.length;T')}}catch(t){$=function(t){return e.createElement("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="rvml">')}}},E._engine.initWin(E._g.win),E._engine.create=function(){var t=E._getContainer.apply(0,arguments),e=t.container,i=t.height,r=t.width,n=t.x,s=t.y;if(!e)throw new Error("VML container not found.");var o=new E._Paper,a=o.canvas=E._g.doc.createElement("div"),h=a.style;return n=n||0,s=s||0,r=r||512,i=i||342,(o.width=r)==+r&&(r+="px"),(o.height=i)==+i&&(i+="px"),o.coordsize=216e5+Y+216e5,o.coordorigin="0 0",o.span=E._g.doc.createElement("span"),o.span.style.cssText="position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;",a.appendChild(o.span),h.cssText=E.format("top:0;left:0;width:{0};height:{1};display:inline-block;position:relative;clip:rect(0 {0} {1} 0);overflow:hidden",r,i),1==e?(E._g.doc.body.appendChild(a),h.left=n+"px",h.top=s+"px",h.position="absolute"):e.firstChild?e.insertBefore(a,e.firstChild):e.appendChild(a),o.renderfix=function(){},o},E.prototype.clear=function(){E.eve("raphael.clear",this),this.canvas.innerHTML="",this.span=E._g.doc.createElement("span"),this.span.style.cssText="position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;display:inline;",this.canvas.appendChild(this.span),this.bottom=this.top=null},E.prototype.remove=function(){for(var t in E.eve("raphael.remove",this),this.canvas.parentNode.removeChild(this.canvas),this)this[t]="function"==typeof this[t]?E._removedFactory(t):null;return!0};var e=E.st;for(var i in t)t[P](i)&&!e[P](i)&&(e[i]=function(i){return function(){var e=arguments;return this.forEach(function(t){t[i].apply(t,e)})}}(i))}}.apply(e,r))||(t.exports=n)}])}),function(){var x,_,t,e,a=[].slice,u=function(t,e){return function(){return t.apply(e,arguments)}},n={}.hasOwnProperty,s=function(t,e){for(var i in e)n.call(e,i)&&(t[i]=e[i]);function r(){this.constructor=t}return r.prototype=e.prototype,t.prototype=new r,t.__super__=e.prototype,t},h=[].indexOf||function(t){for(var e=0,i=this.length;ei.length&&(r+=n.slice(i.length)),r):"-"},_.pad2=function(t){return(t<10?"0":"")+t},_.Grid=function(t){function e(t){this.resizeHandler=u(this.resizeHandler,this);var s=this;if("string"==typeof t.element?this.el=x(document.getElementById(t.element)):this.el=x(t.element),null==this.el||0===this.el.length)throw new Error("Graph container element not found");"static"===this.el.css("position")&&this.el.css("position","relative"),this.options=x.extend({},this.gridDefaults,this.defaults||{},t),"string"==typeof this.options.units&&(this.options.postUnits=t.units),this.raphael=new Raphael(this.el[0]),this.elementWidth=null,this.elementHeight=null,this.dirty=!1,this.selectFrom=null,this.init&&this.init(),this.setData(this.options.data),this.el.bind("mousemove",function(t){var e,i,r,n;return i=s.el.offset(),n=t.pageX-i.left,s.selectFrom?(e=s.data[s.hitTest(Math.min(n,s.selectFrom))]._x,r=s.data[s.hitTest(Math.max(n,s.selectFrom))]._x-e,s.selectionRect.attr({x:e,width:r})):s.fire("hovermove",n,t.pageY-i.top)}),this.el.bind("mouseleave",function(t){return s.selectFrom&&(s.selectionRect.hide(),s.selectFrom=null),s.fire("hoverout")}),this.el.bind("touchstart touchmove touchend",function(t){var e,i;return i=t.originalEvent.touches[0]||t.originalEvent.changedTouches[0],e=s.el.offset(),s.fire("hovermove",i.pageX-e.left,i.pageY-e.top)}),this.el.bind("click",function(t){var e;return e=s.el.offset(),s.fire("gridclick",t.pageX-e.left,t.pageY-e.top)}),this.options.rangeSelect&&(this.selectionRect=this.raphael.rect(0,0,0,this.el.innerHeight()).attr({fill:this.options.rangeSelectColor,stroke:!1}).toBack().hide(),this.el.bind("mousedown",function(t){var e;return e=s.el.offset(),s.startRange(t.pageX-e.left)}),this.el.bind("mouseup",function(t){var e;return e=s.el.offset(),s.endRange(t.pageX-e.left),s.fire("hovermove",t.pageX-e.left,t.pageY-e.top)})),this.options.resize&&x(window).bind("resize",function(t){return null!=s.timeoutId&&window.clearTimeout(s.timeoutId),s.timeoutId=window.setTimeout(s.resizeHandler,100)}),this.el.css("-webkit-tap-highlight-color","rgba(0,0,0,0)"),this.postInit&&this.postInit()}return s(e,t),e.prototype.gridDefaults={dateFormat:null,axes:!0,grid:!0,gridLineColor:"#aaa",gridStrokeWidth:.5,gridTextColor:"#888",gridTextSize:12,gridTextFamily:"sans-serif",gridTextWeight:"normal",hideHover:!1,yLabelFormat:null,xLabelAngle:0,numLines:5,padding:25,parseTime:!0,postUnits:"",preUnits:"",ymax:"auto",ymin:"auto 0",goals:[],goalStrokeWidth:1,goalLineColors:["#666633","#999966","#cc6666","#663333"],events:[],eventStrokeWidth:1,eventLineColors:["#005a04","#ccffbb","#3a5f0b","#005502"],rangeSelect:null,rangeSelectColor:"#eef",resize:!1},e.prototype.setData=function(r,t){var n,s,o,e,i,a,h,l,u,c,p,f,d,g,x;return null==t&&(t=!0),null==(this.options.data=r)||0===r.length?(this.data=[],this.raphael.clear(),void(null!=this.hover&&this.hover.hide())):(f=this.cumulative?0:null,d=this.cumulative?0:null,0e.x)-(e.x>t.x)})),this.xmin=this.data[0].x,this.xmax=this.data[this.data.length-1].x,this.events=[],0"),this.el.hide(),this.options.parent.append(this.el)}return t.defaults={class:"morris-hover morris-default-style"},t.prototype.update=function(t,e,i){return t?(this.html(t),this.show(),this.moveTo(e,i)):this.hide()},t.prototype.html=function(t){return this.el.html(t)},t.prototype.moveTo=function(t,e){var i,r,n,s,o,a;return o=this.options.parent.innerWidth(),s=this.options.parent.innerHeight(),r=this.el.outerWidth(),i=this.el.outerHeight(),n=Math.min(Math.max(0,t-r/2),o-r),null!=e?(a=e-i-10)<0&&s<(a=e+10)+i&&(a=s/2-i/2):a=s/2-i/2,this.el.css({left:n+"px",top:parseInt(a)+"px"})},t.prototype.show=function(){return this.el.show()},t.prototype.hide=function(){return this.el.hide()},t}(),_.Line=function(t){function e(t){if(this.hilight=u(this.hilight,this),this.onHoverOut=u(this.onHoverOut,this),this.onHoverMove=u(this.onHoverMove,this),this.onGridClick=u(this.onGridClick,this),!(this instanceof _.Line))return new _.Line(t);e.__super__.constructor.call(this,t)}return s(e,t),e.prototype.init=function(){if("always"!==this.options.hideHover)return this.hover=new _.Hover({parent:this.el}),this.on("hovermove",this.onHoverMove),this.on("hoverout",this.onHoverOut),this.on("gridclick",this.onGridClick)},e.prototype.defaults={lineWidth:3,pointSize:4,lineColors:["#0b62a4","#7A92A3","#4da74d","#afd8f8","#edc240","#cb4b4b","#9440ed"],pointStrokeWidths:[1],pointStrokeColors:["#ffffff"],pointFillColors:[],smooth:!0,xLabels:"auto",xLabelFormat:null,xLabelMargin:24,hideHover:!1},e.prototype.calc=function(){return this.calcPoints(),this.generatePaths()},e.prototype.calcPoints=function(){var n,s,t,e,i,r;for(r=[],t=0,e=(i=this.data).length;t",i=s=0,o=(a=r.y).length;s\n "+this.options.labels[i]+":\n "+this.yLabelFormat(n)+"\n";return"function"==typeof this.options.hoverCallback&&(e=this.options.hoverCallback(t,this.options,e,r.src)),[e,r._x,r._ymax]},e.prototype.generatePaths=function(){var n,s,o,a;return this.paths=function(){var t,e,i,r;for(r=[],s=t=0,e=this.options.ykeys.length;0<=e?t=r.x+r.width||null!=a&&a>=r.x)&&0<=r.x&&r.x+r.width=(u=_.LABEL_SPECS[h]).span){c=u;break}for(void 0===c&&(c=_.LABEL_SPECS.second),n&&(c=x.extend({},c,{fmt:n})),s=c.start(o),l=[];(p=s.getTime())<=e;)t<=p&&l.push([c.fmt(s),p]),c.incr(s);return l},t=function(e){return{span:60*e*1e3,start:function(t){return new Date(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours())},fmt:function(t){return _.pad2(t.getHours())+":"+_.pad2(t.getMinutes())},incr:function(t){return t.setUTCMinutes(t.getUTCMinutes()+e)}}},e=function(e){return{span:1e3*e,start:function(t){return new Date(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes())},fmt:function(t){return _.pad2(t.getHours())+":"+_.pad2(t.getMinutes())+":"+_.pad2(t.getSeconds())},incr:function(t){return t.setUTCSeconds(t.getUTCSeconds()+e)}}},_.LABEL_SPECS={decade:{span:1728e8,start:function(t){return new Date(t.getFullYear()-t.getFullYear()%10,0,1)},fmt:function(t){return""+t.getFullYear()},incr:function(t){return t.setFullYear(t.getFullYear()+10)}},year:{span:1728e7,start:function(t){return new Date(t.getFullYear(),0,1)},fmt:function(t){return""+t.getFullYear()},incr:function(t){return t.setFullYear(t.getFullYear()+1)}},month:{span:24192e5,start:function(t){return new Date(t.getFullYear(),t.getMonth(),1)},fmt:function(t){return t.getFullYear()+"-"+_.pad2(t.getMonth()+1)},incr:function(t){return t.setMonth(t.getMonth()+1)}},week:{span:6048e5,start:function(t){return new Date(t.getFullYear(),t.getMonth(),t.getDate())},fmt:function(t){return t.getFullYear()+"-"+_.pad2(t.getMonth()+1)+"-"+_.pad2(t.getDate())},incr:function(t){return t.setDate(t.getDate()+7)}},day:{span:864e5,start:function(t){return new Date(t.getFullYear(),t.getMonth(),t.getDate())},fmt:function(t){return t.getFullYear()+"-"+_.pad2(t.getMonth()+1)+"-"+_.pad2(t.getDate())},incr:function(t){return t.setDate(t.getDate()+1)}},hour:t(60),"30min":t(30),"15min":t(15),"10min":t(10),"5min":t(5),minute:t(1),"30sec":e(30),"15sec":e(15),"10sec":e(10),"5sec":e(5),second:e(1)},_.AUTO_LABEL_ORDER=["decade","year","month","week","day","hour","30min","15min","10min","5min","minute","30sec","15sec","10sec","5sec","second"],_.Area=function(t){var i;function r(t){var e;if(!(this instanceof _.Area))return new _.Area(t);e=x.extend({},i,t),this.cumulative=!e.behaveLikeLine,"auto"===e.fillOpacity&&(e.fillOpacity=e.behaveLikeLine?.8:1),r.__super__.constructor.call(this,e)}return s(r,t),i={fillOpacity:"auto",behaveLikeLine:!1},r.prototype.calcPoints=function(){var n,s,o,t,e,i,r;for(r=[],t=0,e=(i=this.data).length;t=i.x+i.width||null!=s&&s>=i.x)&&0<=i.x&&i.x+i.width",i=s=0,o=(a=r.y).length;s\n "+this.options.labels[i]+":\n "+this.yLabelFormat(n)+"\n";return"function"==typeof this.options.hoverCallback&&(e=this.options.hoverCallback(t,this.options,e,r.src)),[e,this.left+(t+.5)*this.width/this.data.length]},e.prototype.drawXAxisLabel=function(t,e,i){return this.raphael.text(t,e,i).attr("font-size",this.options.gridTextSize).attr("font-family",this.options.gridTextFamily).attr("font-weight",this.options.gridTextWeight).attr("fill",this.options.gridTextColor)},e.prototype.drawBar=function(t,e,i,r,n,s,o){var a;return(0===(a=Math.max.apply(Math,o))||rMath.PI?1:0,this.path=this.calcSegment(this.inner+3,this.inner+this.outer-5),this.selectedPath=this.calcSegment(this.inner+3,this.inner+this.outer),this.hilight=this.calcArc(this.inner)}return s(e,t),e.prototype.calcArcPoints=function(t){return[this.cx+t*this.sin_p0,this.cy+t*this.cos_p0,this.cx+t*this.sin_p1,this.cy+t*this.cos_p1]},e.prototype.calcSegment=function(t,e){var i,r,n,s,o,a,h,l,u,c;return i=(u=this.calcArcPoints(t))[0],n=u[1],r=u[2],s=u[3],o=(c=this.calcArcPoints(e))[0],h=c[1],a=c[2],l=c[3],"M"+i+","+n+"A"+t+","+t+",0,"+this.is_long+",0,"+r+","+s+"L"+a+","+l+"A"+e+","+e+",0,"+this.is_long+",1,"+o+","+h+"Z"},e.prototype.calcArc=function(t){var e,i,r,n,s;return e=(s=this.calcArcPoints(t))[0],r=s[1],i=s[2],n=s[3],"M"+e+","+r+"A"+t+","+t+",0,"+this.is_long+",0,"+i+","+n},e.prototype.render=function(){var t=this;return this.arc=this.drawDonutArc(this.hilight,this.color),this.seg=this.drawDonutSegment(this.path,this.color,this.backgroundColor,function(){return t.fire("hover",t.index)},function(){return t.fire("click",t.index)})},e.prototype.drawDonutArc=function(t,e){return this.raphael.path(t).attr({stroke:e,"stroke-width":2,opacity:0})},e.prototype.drawDonutSegment=function(t,e,i,r,n){return this.raphael.path(t).attr({fill:e,stroke:i,"stroke-width":3}).hover(r).click(n)},e.prototype.select=function(){if(!this.selected)return this.seg.animate({path:this.selectedPath},150,"<>"),this.arc.animate({opacity:1},150,"<>"),this.selected=!0},e.prototype.deselect=function(){if(this.selected)return this.seg.animate({path:this.path},150,"<>"),this.arc.animate({opacity:0},150,"<>"),this.selected=!1},e}(_.EventEmitter)}.call(this);