forked from lynndon/cloudrelation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathraphael-min.js
175 lines (175 loc) · 86.7 KB
/
raphael-min.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
(function(h){var A=/[\.\/]/,v=function(){},ba=function(h,A){return h-A},F,J,V={n:{}},D=function(h,A){var v=J,s=Array.prototype.slice.call(arguments,2),p=D.listeners(h),d=0,E,M=[],G={},W=[],I=F;F=h;for(var u=J=0,Q=p.length;u<Q;u++)"zIndex"in p[u]&&(M.push(p[u].zIndex),0>p[u].zIndex&&(G[p[u].zIndex]=p[u]));for(M.sort(ba);0>M[d];)if(E=G[M[d++]],W.push(E.apply(A,s)),J)return J=v,W;for(u=0;u<Q;u++)if(E=p[u],"zIndex"in E)if(E.zIndex==M[d]){W.push(E.apply(A,s));if(J)break;do if(d++,(E=G[M[d]])&&W.push(E.apply(A,
s)),J)break;while(E)}else G[E.zIndex]=E;else if(W.push(E.apply(A,s)),J)break;J=v;F=I;return W.length?W:null};D.listeners=function(h){h=h.split(A);var v=V,F,s,p,d,E,M,G,D=[v],I=[];p=0;for(d=h.length;p<d;p++){G=[];E=0;for(M=D.length;E<M;E++)for(v=D[E].n,F=[v[h[p]],v["*"]],s=2;s--;)(v=F[s])&&(G.push(v),I=I.concat(v.f||[]));D=G}return I};D.on=function(h,F){for(var D=h.split(A),s=V,p=0,d=D.length;p<d;p++)s=s.n,!s[D[p]]&&(s[D[p]]={n:{}}),s=s[D[p]];s.f=s.f||[];p=0;for(d=s.f.length;p<d;p++)if(s.f[p]==F)return v;
s.f.push(F);return function(d){+d==+d&&(F.zIndex=+d)}};D.stop=function(){J=1};D.nt=function(h){return h?RegExp("(?:\\.|\\/|^)"+h+"(?:\\.|\\/|$)").test(F):F};D.off=D.unbind=function(h,v){var F=h.split(A),s,p,d,E,D,G,J=[V];E=0;for(D=F.length;E<D;E++)for(G=0;G<J.length;G+=d.length-2){d=[G,1];s=J[G].n;if("*"!=F[E])s[F[E]]&&d.push(s[F[E]]);else for(p in s)s.hasOwnProperty(p)&&d.push(s[p]);J.splice.apply(J,d)}E=0;for(D=J.length;E<D;E++)for(s=J[E];s.n;){if(v){if(s.f){G=0;for(F=s.f.length;G<F;G++)if(s.f[G]==
v){s.f.splice(G,1);break}!s.f.length&&delete s.f}for(p in s.n)if(s.n.hasOwnProperty(p)&&s.n[p].f){d=s.n[p].f;G=0;for(F=d.length;G<F;G++)if(d[G]==v){d.splice(G,1);break}!d.length&&delete s.n[p].f}}else for(p in delete s.f,s.n)s.n.hasOwnProperty(p)&&s.n[p].f&&delete s.n[p].f;s=s.n}};D.once=function(h,v){var A=function(){var s=v.apply(this,arguments);D.unbind(h,A);return s};return D.on(h,A)};D.version="0.3.4";D.toString=function(){return"You are running Eve 0.3.4"};"undefined"!=typeof module&&module.exports?
module.exports=D:"undefined"!=typeof define?define("eve",[],function(){return D}):h.eve=D})(this);
(function(){function h(a){for(var f=0;f<K.length;f++)K[f].el.paper==a&&K.splice(f--,1)}function A(a,f,q,r,Ya,z){q=O(q);var b,c,e,l,h,C,m=a.ms,n={},w={},t={};if(r)for(C=0,H=K.length;C<H;C++){var p=K[C];if(p.el.id==f.id&&p.anim==a){p.percent!=q?(K.splice(C,1),e=1):c=p;f.attr(p.totalOrigin);break}}else r=+w;C=0;for(var H=a.percents.length;C<H;C++){if(a.percents[C]==q||a.percents[C]>r*a.top){q=a.percents[C];h=a.percents[C-1]||0;m=m/a.top*(q-h);l=a.percents[C+1];b=a.anim[q];break}r&&f.attr(a.anim[a.percents[C]])}if(b){if(c)c.initstatus=
r,c.start=new Date-c.ms*r;else{for(var x in b)if(b[I](x)&&(ta[I](x)||f.paper.customAttributes[I](x)))switch(n[x]=f.attr(x),null==n[x]&&(n[x]=Za[x]),w[x]=b[x],ta[x]){case U:t[x]=(w[x]-n[x])/m;break;case "colour":n[x]=d.getRGB(n[x]);C=d.getRGB(w[x]);t[x]={r:(C.r-n[x].r)/m,g:(C.g-n[x].g)/m,b:(C.b-n[x].b)/m};break;case "path":C=la(n[x],w[x]);p=C[1];n[x]=C[0];t[x]=[];C=0;for(H=n[x].length;C<H;C++){t[x][C]=[0];for(var s=1,u=n[x][C].length;s<u;s++)t[x][C][s]=(p[C][s]-n[x][C][s])/m}break;case "transform":C=
f._;if(H=$a(C[x],w[x]))for(n[x]=H.from,w[x]=H.to,t[x]=[],t[x].real=!0,C=0,H=n[x].length;C<H;C++)for(t[x][C]=[n[x][C][0]],s=1,u=n[x][C].length;s<u;s++)t[x][C][s]=(w[x][C][s]-n[x][C][s])/m;else H=f.matrix||new J,C={_:{transform:C.transform},getBBox:function(){return f.getBBox(1)}},n[x]=[H.a,H.b,H.c,H.d,H.e,H.f],Ia(C,w[x]),w[x]=C._.transform,t[x]=[(C.matrix.a-H.a)/m,(C.matrix.b-H.b)/m,(C.matrix.c-H.c)/m,(C.matrix.d-H.d)/m,(C.matrix.e-H.e)/m,(C.matrix.f-H.f)/m];break;case "csv":H=g(b[x])[k](M);p=g(n[x])[k](M);
if("clip-rect"==x)for(n[x]=p,t[x]=[],C=p.length;C--;)t[x][C]=(H[C]-n[x][C])/m;w[x]=H;break;default:for(H=[][y](b[x]),p=[][y](n[x]),t[x]=[],C=f.paper.customAttributes[x].length;C--;)t[x][C]=((H[C]||0)-(p[C]||0))/m}C=b.easing;x=d.easing_formulas[C];if(!x)if((x=g(C).match(ab))&&5==x.length){var N=x;x=function(a){return ba(a,+N[1],+N[2],+N[3],+N[4],m)}}else x=bb;C=b.start||a.start||+new Date;p={anim:a,percent:q,timestamp:C,start:C+(a.del||0),status:0,initstatus:r||0,stop:!1,ms:m,easing:x,from:n,diff:t,
to:w,el:f,callback:b.callback,prev:h,next:l,repeat:z||a.times,origin:f.attr(),totalOrigin:Ya};K.push(p);if(r&&(!c&&!e)&&(p.stop=!0,p.start=new Date-m*r,1==K.length))return ua();e&&(p.start=new Date-p.ms*r);1==K.length&&Ja(ua)}eve("raphael.anim.start."+f.id,f,a)}}function v(a,f){var q=[],r={};this.ms=f;this.times=1;if(a){for(var b in a)a[I](b)&&(r[O(b)]=a[b],q.push(O(b)));q.sort(cb)}this.anim=r;this.top=q[q.length-1];this.percents=q}function ba(a,f,q,r,b,z){function c(a,f){var q,r,b,z;b=a;for(r=0;8>
r;r++){z=((e*b+k)*b+g)*b-a;if(R(z)<f)return b;q=(3*e*b+2*k)*b+g;if(1E-6>R(q))break;b-=z/q}q=0;r=1;b=a;if(b<q)return q;if(b>r)return r;for(;q<r;){z=((e*b+k)*b+g)*b;if(R(z-a)<f)break;a>z?q=b:r=b;b=(r-q)/2+q}return b}var g=3*f,k=3*(r-f)-g,e=1-g-k,d=3*q,l=3*(b-q)-d,m=1-d-l;return function(a,f){var q=c(a,f);return((m*q+l)*q+d)*q}(a,1/(200*z))}function F(){return this.x+b+this.y+b+this.width+" × "+this.height}function J(a,f,q,r,b,z){null!=a?(this.a=+a,this.b=+f,this.c=+q,this.d=+r,this.e=+b,this.f=+z):
(this.a=1,this.b=0,this.c=0,this.d=1,this.e=0,this.f=0)}function V(a,f,q){a=d._path2curve(a);f=d._path2curve(f);for(var r,b,z,c,g,k,e,l,m,n,h=q?0:[],y=0,w=a.length;y<w;y++){var p=a[y];if("M"==p[0])r=g=p[1],b=k=p[2];else{"C"==p[0]?(m=[r,b].concat(p.slice(1)),r=m[6],b=m[7]):(m=[r,b,r,b,g,k,g,k],r=g,b=k);for(var p=0,H=f.length;p<H;p++){var x=f[p];if("M"==x[0])z=e=x[1],c=l=x[2];else{"C"==x[0]?(n=[z,c].concat(x.slice(1)),z=n[6],c=n[7]):(n=[z,c,z,c,e,l,e,l],z=e,c=l);var s=m,u=n,x=q,v=d.bezierBBox(s),A=
d.bezierBBox(u);if(d.isBBoxIntersect(v,A)){for(var v=Y.apply(0,s),A=Y.apply(0,u),v=~~(v/5),A=~~(A/5),B=[],F=[],U={},X=x?0:[],D=0;D<v+1;D++){var E=d.findDotsAtSegment.apply(d,s.concat(D/v));B.push({x:E.x,y:E.y,t:D/v})}for(D=0;D<A+1;D++)E=d.findDotsAtSegment.apply(d,u.concat(D/A)),F.push({x:E.x,y:E.y,t:D/A});for(D=0;D<v;D++)for(s=0;s<A;s++){var I=B[D],K=B[D+1],u=F[s],E=F[s+1],Z=0.001>R(K.x-I.x)?"y":"x",J=0.001>R(E.x-u.x)?"y":"x",G;G=I.x;var T=I.y,L=K.x,O=K.y,M=u.x,P=u.y,Q=E.x,ea=E.y;if(t(G,L)<N(M,Q)||
N(G,L)>t(M,Q)||t(T,O)<N(P,ea)||N(T,O)>t(P,ea))G=void 0;else{var V=(G*O-T*L)*(M-Q)-(G-L)*(M*ea-P*Q),W=(G*O-T*L)*(P-ea)-(T-O)*(M*ea-P*Q),S=(G-L)*(P-ea)-(T-O)*(M-Q);if(S){var V=V/S,W=W/S,S=+V.toFixed(2),$=+W.toFixed(2);G=S<+N(G,L).toFixed(2)||S>+t(G,L).toFixed(2)||S<+N(M,Q).toFixed(2)||S>+t(M,Q).toFixed(2)||$<+N(T,O).toFixed(2)||$>+t(T,O).toFixed(2)||$<+N(P,ea).toFixed(2)||$>+t(P,ea).toFixed(2)?void 0:{x:V,y:W}}else G=void 0}G&&U[G.x.toFixed(4)]!=G.y.toFixed(4)&&(U[G.x.toFixed(4)]=G.y.toFixed(4),I=I.t+
R((G[Z]-I[Z])/(K[Z]-I[Z]))*(K.t-I.t),u=u.t+R((G[J]-u[J])/(E[J]-u[J]))*(E.t-u.t),0<=I&&1>=I&&0<=u&&1>=u&&(x?X++:X.push({x:G.x,y:G.y,t1:I,t2:u})))}x=X}else x=x?0:[];if(q)h+=x;else{v=0;for(A=x.length;v<A;v++)x[v].segment1=y,x[v].segment2=p,x[v].bez1=m,x[v].bez2=n;h=h.concat(x)}}}}}return h}function D(a,f,q,r,b,z,c,g,k){if(!(0>k||Y(a,f,q,r,b,z,c,g)<k)){var e=0.5,d=1-e,l;for(l=Y(a,f,q,r,b,z,c,g,d);0.01<R(l-k);)e/=2,d+=(l<k?1:-1)*e,l=Y(a,f,q,r,b,z,c,g,d);return d}}function Y(a,f,q,r,b,z,c,g,k){null==k&&
(k=1);k=(1<k?1:0>k?0:k)/2;for(var e=[-0.1252,0.1252,-0.3678,0.3678,-0.5873,0.5873,-0.7699,0.7699,-0.9041,0.9041,-0.9816,0.9816],d=[0.2491,0.2491,0.2335,0.2335,0.2032,0.2032,0.1601,0.1601,0.1069,0.1069,0.0472,0.0472],l=0,m=0;12>m;m++)var h=k*e[m]+k,y=h*(h*(-3*a+9*q-9*b+3*c)+6*a-12*q+6*b)-3*a+3*q,h=h*(h*(-3*f+9*r-9*z+3*g)+6*f-12*r+6*z)-3*f+3*r,l=l+d[m]*n.sqrt(y*y+h*h);return k*l}function aa(a,f){for(var q=[],r=0,b=a.length;b-2*!f>r;r+=2){var z=[{x:+a[r-2],y:+a[r-1]},{x:+a[r],y:+a[r+1]},{x:+a[r+2],y:+a[r+
3]},{x:+a[r+4],y:+a[r+5]}];f?r?b-4==r?z[3]={x:+a[0],y:+a[1]}:b-2==r&&(z[2]={x:+a[0],y:+a[1]},z[3]={x:+a[2],y:+a[3]}):z[0]={x:+a[b-2],y:+a[b-1]}:b-4==r?z[3]=z[2]:r||(z[0]={x:+a[r],y:+a[r+1]});q.push(["C",(-z[0].x+6*z[1].x+z[2].x)/6,(-z[0].y+6*z[1].y+z[2].y)/6,(z[1].x+6*z[2].x-z[3].x)/6,(z[1].y+6*z[2].y-z[3].y)/6,z[2].x,z[2].y])}return q}function fa(){return this.hex}function s(a,f,q){function r(){var b=Array.prototype.slice.call(arguments,0),z=b.join("␀"),g=r.cache=r.cache||{},k=r.count=r.count||[];
if(g[I](z)){a:for(var b=k,k=z,e=0,d=b.length;e<d;e++)if(b[e]===k){b.push(b.splice(e,1)[0]);break a}return q?q(g[z]):g[z]}1E3<=k.length&&delete g[k.shift()];k.push(z);g[z]=a[c](f,b);return q?q(g[z]):g[z]}return r}function p(a){if(Object(a)!==a)return a;var f=new a.constructor,q;for(q in a)a[I](q)&&(f[q]=p(a[q]));return f}function d(a){if(d.is(a,"function"))return E?a():eve.on("raphael.DOMload",a);if(d.is(a,T))return d._engine.create[c](d,a.splice(0,3+d.is(a[0],U))).add(a);var f=Array.prototype.slice.call(arguments,
0);if(d.is(f[f.length-1],"function")){var q=f.pop();return E?q.call(d._engine.create[c](d,f)):eve.on("raphael.DOMload",function(){q.call(d._engine.create[c](d,f))})}return d._engine.create[c](d,arguments)}d.version="2.1.0";d.eve=eve;var E,M=/[, ]+/,G={circle:1,rect:1,path:1,ellipse:1,text:1,image:1},W=/\{(\d+)\}/g,I="hasOwnProperty",u={doc:document,win:window},Q=Object.prototype[I].call(u.win,"Raphael"),P=u.win.Raphael,da=function(){this.ca=this.customAttributes={}},B,c="apply",y="concat",m="createTouch"in
u.doc,b=" ",g=String,k="split",e="click dblclick mousedown mousemove mouseout mouseover mouseup touchstart touchmove touchend touchcancel"[k](b),l={mousedown:"touchstart",mousemove:"touchmove",mouseup:"touchend"},w=g.prototype.toLowerCase,n=Math,t=n.max,N=n.min,R=n.abs,Z=n.pow,X=n.PI,U="number",T="array",ea=Object.prototype.toString;d._ISURL=/^url\(['"]?([^\)]+?)['"]?\)$/i;var db=/^\s*((#[a-f\d]{6})|(#[a-f\d]{3})|rgba?\(\s*([\d\.]+%?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+%?(?:\s*,\s*[\d\.]+%?)?)\s*\)|hsba?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?)%?\s*\)|hsla?\(\s*([\d\.]+(?:deg|\xb0|%)?\s*,\s*[\d\.]+%?\s*,\s*[\d\.]+(?:%?\s*,\s*[\d\.]+)?)%?\s*\))\s*$/i,
eb={NaN:1,Infinity:1,"-Infinity":1},ab=/^(?:cubic-)?bezier\(([^,]+),([^,]+),([^,]+),([^\)]+)\)/,va=n.round,O=parseFloat,ga=parseInt,Ka=g.prototype.toUpperCase,Za=d._availableAttrs={"arrow-end":"none","arrow-start":"none",blur:0,"clip-rect":"0 0 1e9 1e9",cursor:"default",cx:0,cy:0,fill:"#fff","fill-opacity":1,font:'10px "Arial"',"font-family":'"Arial"',"font-size":"10","font-style":"normal","font-weight":400,gradient:0,height:0,href:"http://raphaeljs.com/","letter-spacing":0,opacity:1,path:"M0,0",
r:0,rx:0,ry:0,src:"",stroke:"#000","stroke-dasharray":"","stroke-linecap":"butt","stroke-linejoin":"butt","stroke-miterlimit":0,"stroke-opacity":1,"stroke-width":1,target:"_blank","text-anchor":"middle",title:"Raphael",transform:"",width:0,x:0,y:0},ta=d._availableAnimAttrs={blur:U,"clip-rect":"csv",cx:U,cy:U,fill:"colour","fill-opacity":U,"font-size":U,height:U,opacity:U,path:"path",r:U,rx:U,ry:U,stroke:"colour","stroke-opacity":U,"stroke-width":U,transform:"transform",width:U,x:U,y:U},wa=/[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*/,
fb={hs:1,rg:1},gb=/,?([achlmqrstvxz]),?/gi,hb=/([achlmrqstvz])[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*)+)/ig,
ib=/([rstm])[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029,]*((-?\d*\.?\d*(?:e[\-+]?\d+)?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*)+)/ig,La=/(-?\d*\.?\d*(?:e[\-+]?\d+)?)[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,?[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*/ig;
d._radial_gradient=/^r(?:\(([^,]+?)[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*,[\x09\x0a\x0b\x0c\x0d\x20\xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029]*([^\)]+?)\))?/;var ma={},cb=function(a,f){return O(a)-O(f)},jb=function(){},bb=function(a){return a},xa=d._rectPath=function(a,f,q,r,b){return b?[["M",a+b,f],["l",q-2*b,0],["a",b,b,0,0,1,
b,b],["l",0,r-2*b],["a",b,b,0,0,1,-b,b],["l",2*b-q,0],["a",b,b,0,0,1,-b,-b],["l",0,2*b-r],["a",b,b,0,0,1,b,-b],["z"]]:[["M",a,f],["l",q,0],["l",0,r],["l",-q,0],["z"]]},Ma=function(a,f,q,r){null==r&&(r=q);return[["M",a,f],["m",0,-r],["a",q,r,0,1,1,0,2*r],["a",q,r,0,1,1,0,-2*r],["z"]]},na=d._getPath={path:function(a){return a.attr("path")},circle:function(a){a=a.attrs;return Ma(a.cx,a.cy,a.r)},ellipse:function(a){a=a.attrs;return Ma(a.cx,a.cy,a.rx,a.ry)},rect:function(a){a=a.attrs;return xa(a.x,a.y,
a.width,a.height,a.r)},image:function(a){a=a.attrs;return xa(a.x,a.y,a.width,a.height)},text:function(a){a=a._getBBox();return xa(a.x,a.y,a.width,a.height)}},ya=d.mapPath=function(a,f){if(!f)return a;var q,r,b,z,c,g,k;a=la(a);b=0;for(c=a.length;b<c;b++)for(k=a[b],z=1,g=k.length;z<g;z+=2)q=f.x(k[z],k[z+1]),r=f.y(k[z],k[z+1]),k[z]=q,k[z+1]=r;return a};d._g=u;d.type=u.win.SVGAngle||u.doc.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#BasicStructure","1.1")?"SVG":"VML";if("VML"==d.type){var za=
u.doc.createElement("div"),oa;za.innerHTML='<v:shape adj="1"/>';oa=za.firstChild;oa.style.behavior="url(#default#VML)";if(!oa||"object"!=typeof oa.adj)return d.type="";za=null}d.svg=!(d.vml="VML"==d.type);d._Paper=da;d.fn=B=da.prototype=d.prototype;d._id=0;d._oid=0;d.is=function(a,f){f=w.call(f);return"finite"==f?!eb[I](+a):"array"==f?a instanceof Array:"null"==f&&null===a||f==typeof a&&null!==a||"object"==f&&a===Object(a)||"array"==f&&Array.isArray&&Array.isArray(a)||ea.call(a).slice(8,-1).toLowerCase()==
f};d.angle=function(a,f,q,r,b,z){return null==b?(a-=q,f-=r,a||f?(180*n.atan2(-f,-a)/X+540)%360:0):d.angle(a,f,b,z)-d.angle(q,r,b,z)};d.rad=function(a){return a%360*X/180};d.deg=function(a){return 180*a/X%360};d.snapTo=function(a,f,q){q=d.is(q,"finite")?q:10;if(d.is(a,T))for(var r=a.length;r--;){if(R(a[r]-f)<=q)return a[r]}else{a=+a;r=f%a;if(r<q)return f-r;if(r>a-q)return f-r+a}return f};d.createUUID=function(a,f){return function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(a,f).toUpperCase()}}(/[xy]/g,
function(a){var f=16*n.random()|0;return("x"==a?f:f&3|8).toString(16)});d.setWindow=function(a){eve("raphael.setWindow",d,u.win,a);u.win=a;u.doc=u.win.document;d._engine.initWin&&d._engine.initWin(u.win)};var pa=function(a){if(d.vml){var f=/^\s+|\s+$/g,q;try{var r=new ActiveXObject("htmlfile");r.write("<body>");r.close();q=r.body}catch(b){q=createPopup().document.body}var z=q.createTextRange();pa=s(function(a){try{q.style.color=g(a).replace(f,"");var r=z.queryCommandValue("ForeColor");return"#"+("000000"+
((r&255)<<16|r&65280|(r&16711680)>>>16).toString(16)).slice(-6)}catch(b){return"none"}})}else{var c=u.doc.createElement("i");c.title="Raphaël Colour Picker";c.style.display="none";u.doc.body.appendChild(c);pa=s(function(a){c.style.color=a;return u.doc.defaultView.getComputedStyle(c,"").getPropertyValue("color")})}return pa(a)},kb=function(){return"hsb("+[this.h,this.s,this.b]+")"},lb=function(){return"hsl("+[this.h,this.s,this.l]+")"},Na=function(){return this.hex},Oa=function(a,f,q){null==f&&d.is(a,
"object")&&"r"in a&&"g"in a&&"b"in a&&(q=a.b,f=a.g,a=a.r);null==f&&d.is(a,"string")&&(q=d.getRGB(a),a=q.r,f=q.g,q=q.b);if(1<a||1<f||1<q)a/=255,f/=255,q/=255;return[a,f,q]},Pa=function(a,f,q,r){a*=255;f*=255;q*=255;a={r:a,g:f,b:q,hex:d.rgb(a,f,q),toString:Na};d.is(r,"finite")&&(a.opacity=r);return a};d.color=function(a){var f;d.is(a,"object")&&"h"in a&&"s"in a&&"b"in a?(f=d.hsb2rgb(a),a.r=f.r,a.g=f.g,a.b=f.b,a.hex=f.hex):d.is(a,"object")&&"h"in a&&"s"in a&&"l"in a?(f=d.hsl2rgb(a),a.r=f.r,a.g=f.g,a.b=
f.b,a.hex=f.hex):(d.is(a,"string")&&(a=d.getRGB(a)),d.is(a,"object")&&"r"in a&&"g"in a&&"b"in a?(f=d.rgb2hsl(a),a.h=f.h,a.s=f.s,a.l=f.l,f=d.rgb2hsb(a),a.v=f.b):(a={hex:"none"},a.r=a.g=a.b=a.h=a.s=a.v=a.l=-1));a.toString=Na;return a};d.hsb2rgb=function(a,f,q,r){this.is(a,"object")&&"h"in a&&"s"in a&&"b"in a&&(q=a.b,f=a.s,a=a.h,r=a.o);var b,z,c;a=360*a%360/60;c=q*f;f=c*(1-R(a%2-1));q=b=z=q-c;a=~~a;q+=[c,f,0,0,f,c][a];b+=[f,c,c,f,0,0][a];z+=[0,0,f,c,c,f][a];return Pa(q,b,z,r)};d.hsl2rgb=function(a,f,
q,r){this.is(a,"object")&&"h"in a&&"s"in a&&"l"in a&&(q=a.l,f=a.s,a=a.h);if(1<a||1<f||1<q)a/=360,f/=100,q/=100;var b,c,g;a=360*a%360/60;g=2*f*(0.5>q?q:1-q);f=g*(1-R(a%2-1));q=b=c=q-g/2;a=~~a;q+=[g,f,0,0,f,g][a];b+=[f,g,g,f,0,0][a];c+=[0,0,f,g,g,f][a];return Pa(q,b,c,r)};d.rgb2hsb=function(a,f,q){q=Oa(a,f,q);a=q[0];f=q[1];q=q[2];var r,b;r=t(a,f,q);b=r-N(a,f,q);a=60*(((0==b?0:r==a?(f-q)/b:r==f?(q-a)/b+2:(a-f)/b+4)+360)%6)/360;return{h:a,s:0==b?0:b/r,b:r,toString:kb}};d.rgb2hsl=function(a,f,q){q=Oa(a,
f,q);a=q[0];f=q[1];q=q[2];var r,b,c;r=t(a,f,q);b=N(a,f,q);c=r-b;a=60*(((0==c?0:r==a?(f-q)/c:r==f?(q-a)/c+2:(a-f)/c+4)+360)%6)/360;r=(r+b)/2;return{h:a,s:0==c?0:0.5>r?c/(2*r):c/(2-2*r),l:r,toString:lb}};d._path2string=function(){return this.join(",").replace(gb,"$1")};d._preload=function(a,f){var q=u.doc.createElement("img");q.style.cssText="position:absolute;left:-9999em;top:-9999em";q.onload=function(){f.call(this);this.onload=null;u.doc.body.removeChild(this)};q.onerror=function(){u.doc.body.removeChild(this)};
u.doc.body.appendChild(q);q.src=a};d.getRGB=s(function(a){if(!a||(a=g(a)).indexOf("-")+1)return{r:-1,g:-1,b:-1,hex:"none",error:1,toString:fa};if("none"==a)return{r:-1,g:-1,b:-1,hex:"none",toString:fa};!fb[I](a.toLowerCase().substring(0,2))&&"#"!=a.charAt()&&(a=pa(a));var f,q,r,b,c,e;if(a=a.match(db)){a[2]&&(r=ga(a[2].substring(5),16),q=ga(a[2].substring(3,5),16),f=ga(a[2].substring(1,3),16));a[3]&&(r=ga((c=a[3].charAt(3))+c,16),q=ga((c=a[3].charAt(2))+c,16),f=ga((c=a[3].charAt(1))+c,16));a[4]&&(e=
a[4][k](wa),f=O(e[0]),"%"==e[0].slice(-1)&&(f*=2.55),q=O(e[1]),"%"==e[1].slice(-1)&&(q*=2.55),r=O(e[2]),"%"==e[2].slice(-1)&&(r*=2.55),"rgba"==a[1].toLowerCase().slice(0,4)&&(b=O(e[3])),e[3]&&"%"==e[3].slice(-1)&&(b/=100));if(a[5])return e=a[5][k](wa),f=O(e[0]),"%"==e[0].slice(-1)&&(f*=2.55),q=O(e[1]),"%"==e[1].slice(-1)&&(q*=2.55),r=O(e[2]),"%"==e[2].slice(-1)&&(r*=2.55),"deg"!=e[0].slice(-3)&&"°"!=e[0].slice(-1)||(f/=360),"hsba"==a[1].toLowerCase().slice(0,4)&&(b=O(e[3])),e[3]&&"%"==e[3].slice(-1)&&
(b/=100),d.hsb2rgb(f,q,r,b);if(a[6])return e=a[6][k](wa),f=O(e[0]),"%"==e[0].slice(-1)&&(f*=2.55),q=O(e[1]),"%"==e[1].slice(-1)&&(q*=2.55),r=O(e[2]),"%"==e[2].slice(-1)&&(r*=2.55),"deg"!=e[0].slice(-3)&&"°"!=e[0].slice(-1)||(f/=360),"hsla"==a[1].toLowerCase().slice(0,4)&&(b=O(e[3])),e[3]&&"%"==e[3].slice(-1)&&(b/=100),d.hsl2rgb(f,q,r,b);a={r:f,g:q,b:r,toString:fa};a.hex="#"+(16777216|r|q<<8|f<<16).toString(16).slice(1);d.is(b,"finite")&&(a.opacity=b);return a}return{r:-1,g:-1,b:-1,hex:"none",error:1,
toString:fa}},d);d.hsb=s(function(a,f,q){return d.hsb2rgb(a,f,q).hex});d.hsl=s(function(a,f,q){return d.hsl2rgb(a,f,q).hex});d.rgb=s(function(a,f,q){return"#"+(16777216|q|f<<8|a<<16).toString(16).slice(1)});d.getColor=function(a){a=this.getColor.start=this.getColor.start||{h:0,s:1,b:a||0.75};var f=this.hsb2rgb(a.h,a.s,a.b);a.h+=0.075;1<a.h&&(a.h=0,a.s-=0.2,0>=a.s&&(this.getColor.start={h:0,s:1,b:a.b}));return f.hex};d.getColor.reset=function(){delete this.start};d.parsePathString=function(a){if(!a)return null;
var f=ha(a);if(f.arr)return ca(f.arr);var q={a:7,c:6,h:1,l:2,m:2,r:4,q:4,s:4,t:2,v:1,z:0},r=[];d.is(a,T)&&d.is(a[0],T)&&(r=ca(a));r.length||g(a).replace(hb,function(a,f,b){var c=[];a=f.toLowerCase();b.replace(La,function(a,f){f&&c.push(+f)});"m"==a&&2<c.length&&(r.push([f][y](c.splice(0,2))),a="l",f="m"==f?"l":"L");if("r"==a)r.push([f][y](c));else for(;c.length>=q[a]&&(r.push([f][y](c.splice(0,q[a]))),q[a]););});r.toString=d._path2string;f.arr=ca(r);return r};d.parseTransformString=s(function(a){if(!a)return null;
var f=[];d.is(a,T)&&d.is(a[0],T)&&(f=ca(a));f.length||g(a).replace(ib,function(a,r,b){var c=[];w.call(r);b.replace(La,function(a,f){f&&c.push(+f)});f.push([r][y](c))});f.toString=d._path2string;return f});var ha=function(a){var f=ha.ps=ha.ps||{};f[a]?f[a].sleep=100:f[a]={sleep:100};setTimeout(function(){for(var q in f)f[I](q)&&q!=a&&(f[q].sleep--,!f[q].sleep&&delete f[q])});return f[a]};d.findDotsAtSegment=function(a,f,q,r,b,c,g,k,e){var d=1-e,l=Z(d,3),m=Z(d,2),h=e*e,y=h*e,p=l*a+3*m*e*q+3*d*e*e*b+
y*g,l=l*f+3*m*e*r+3*d*e*e*c+y*k,m=a+2*e*(q-a)+h*(b-2*q+a),y=f+2*e*(r-f)+h*(c-2*r+f),w=q+2*e*(b-q)+h*(g-2*b+q),h=r+2*e*(c-r)+h*(k-2*c+r);a=d*a+e*q;f=d*f+e*r;b=d*b+e*g;c=d*c+e*k;k=90-180*n.atan2(m-w,y-h)/X;(m>w||y<h)&&(k+=180);return{x:p,y:l,m:{x:m,y:y},n:{x:w,y:h},start:{x:a,y:f},end:{x:b,y:c},alpha:k}};d.bezierBBox=function(a,f,q,b,c,g,k,e){d.is(a,"array")||(a=[a,f,q,b,c,g,k,e]);a=Qa.apply(null,a);return{x:a.min.x,y:a.min.y,x2:a.max.x,y2:a.max.y,width:a.max.x-a.min.x,height:a.max.y-a.min.y}};d.isPointInsideBBox=
function(a,f,q){return f>=a.x&&f<=a.x2&&q>=a.y&&q<=a.y2};d.isBBoxIntersect=function(a,f){var q=d.isPointInsideBBox;return q(f,a.x,a.y)||q(f,a.x2,a.y)||q(f,a.x,a.y2)||q(f,a.x2,a.y2)||q(a,f.x,f.y)||q(a,f.x2,f.y)||q(a,f.x,f.y2)||q(a,f.x2,f.y2)||(a.x<f.x2&&a.x>f.x||f.x<a.x2&&f.x>a.x)&&(a.y<f.y2&&a.y>f.y||f.y<a.y2&&f.y>a.y)};d.pathIntersection=function(a,f){return V(a,f)};d.pathIntersectionNumber=function(a,f){return V(a,f,1)};d.isPointInsidePath=function(a,f,q){var b=d.pathBBox(a);return d.isPointInsideBBox(b,
f,q)&&1==V(a,[["M",f,q],["H",b.x2+10]],1)%2};d._removedFactory=function(a){return function(){eve("raphael.log",null,"Raphaël: you are calling to method “"+a+"” of removed object",a)}};var Aa=d.pathBBox=function(a){var f=ha(a);if(f.bbox)return p(f.bbox);if(!a)return{x:0,y:0,width:0,height:0,x2:0,y2:0};a=la(a);for(var q=0,b=0,g=[],z=[],k,e=0,d=a.length;e<d;e++)k=a[e],"M"==k[0]?(q=k[1],b=k[2],g.push(q),z.push(b)):(q=Qa(q,b,k[1],k[2],k[3],k[4],k[5],k[6]),g=g[y](q.min.x,q.max.x),z=z[y](q.min.y,q.max.y),
q=k[5],b=k[6]);a=N[c](0,g);k=N[c](0,z);g=t[c](0,g);z=t[c](0,z);z={x:a,y:k,x2:g,y2:z,width:g-a,height:z-k};f.bbox=p(z);return z},ca=function(a){a=p(a);a.toString=d._path2string;return a},mb=d._pathToRelative=function(a){var f=ha(a);if(f.rel)return ca(f.rel);d.is(a,T)&&d.is(a&&a[0],T)||(a=d.parsePathString(a));var q=[],b=0,c=0,g=0,k=0,e=0;"M"==a[0][0]&&(b=a[0][1],c=a[0][2],g=b,k=c,e++,q.push(["M",b,c]));for(var l=a.length;e<l;e++){var m=q[e]=[],h=a[e];if(h[0]!=w.call(h[0]))switch(m[0]=w.call(h[0]),
m[0]){case "a":m[1]=h[1];m[2]=h[2];m[3]=h[3];m[4]=h[4];m[5]=h[5];m[6]=+(h[6]-b).toFixed(3);m[7]=+(h[7]-c).toFixed(3);break;case "v":m[1]=+(h[1]-c).toFixed(3);break;case "m":g=h[1],k=h[2];default:for(var y=1,n=h.length;y<n;y++)m[y]=+(h[y]-(y%2?b:c)).toFixed(3)}else for(q[e]=[],"m"==h[0]&&(g=h[1]+b,k=h[2]+c),m=0,y=h.length;m<y;m++)q[e][m]=h[m];h=q[e].length;switch(q[e][0]){case "z":b=g;c=k;break;case "h":b+=+q[e][h-1];break;case "v":c+=+q[e][h-1];break;default:b+=+q[e][h-2],c+=+q[e][h-1]}}q.toString=
d._path2string;f.rel=ca(q);return q},Ra=d._pathToAbsolute=function(a){var f=ha(a);if(f.abs)return ca(f.abs);d.is(a,T)&&d.is(a&&a[0],T)||(a=d.parsePathString(a));if(!a||!a.length)return[["M",0,0]];var q=[],b=0,c=0,g=0,k=0,e=0;"M"==a[0][0]&&(b=+a[0][1],c=+a[0][2],g=b,k=c,e++,q[0]=["M",b,c]);for(var l=3==a.length&&"M"==a[0][0]&&"R"==a[1][0].toUpperCase()&&"Z"==a[2][0].toUpperCase(),h,m=e,n=a.length;m<n;m++){q.push(e=[]);h=a[m];if(h[0]!=Ka.call(h[0]))switch(e[0]=Ka.call(h[0]),e[0]){case "A":e[1]=h[1];
e[2]=h[2];e[3]=h[3];e[4]=h[4];e[5]=h[5];e[6]=+(h[6]+b);e[7]=+(h[7]+c);break;case "V":e[1]=+h[1]+c;break;case "H":e[1]=+h[1]+b;break;case "R":for(var p=[b,c][y](h.slice(1)),w=2,t=p.length;w<t;w++)p[w]=+p[w]+b,p[++w]=+p[w]+c;q.pop();q=q[y](aa(p,l));break;case "M":g=+h[1]+b,k=+h[2]+c;default:for(w=1,t=h.length;w<t;w++)e[w]=+h[w]+(w%2?b:c)}else if("R"==h[0])p=[b,c][y](h.slice(1)),q.pop(),q=q[y](aa(p,l)),e=["R"][y](h.slice(-2));else for(p=0,w=h.length;p<w;p++)e[p]=h[p];switch(e[0]){case "Z":b=g;c=k;break;
case "H":b=e[1];break;case "V":c=e[1];break;case "M":g=e[e.length-2],k=e[e.length-1];default:b=e[e.length-2],c=e[e.length-1]}}q.toString=d._path2string;f.abs=ca(q);return q},Sa=function(a,f,b,r,c,g){var e=1/3,k=2/3;return[e*a+k*b,e*f+k*r,e*c+k*b,e*g+k*r,c,g]},Ta=function(a,f,b,r,c,g,e,d,l,h){var m=120*X/180,w=X/180*(+c||0),p=[],t,u=s(function(a,f,b){var q=a*n.cos(b)-f*n.sin(b);a=a*n.sin(b)+f*n.cos(b);return{x:q,y:a}});if(h)H=h[0],t=h[1],g=h[2],v=h[3];else{t=u(a,f,-w);a=t.x;f=t.y;t=u(d,l,-w);d=t.x;
l=t.y;n.cos(X/180*c);n.sin(X/180*c);t=(a-d)/2;H=(f-l)/2;v=t*t/(b*b)+H*H/(r*r);1<v&&(v=n.sqrt(v),b*=v,r*=v);var v=b*b,N=r*r,v=(g==e?-1:1)*n.sqrt(R((v*N-v*H*H-N*t*t)/(v*H*H+N*t*t)));g=v*b*H/r+(a+d)/2;var v=v*-r*t/b+(f+l)/2,H=n.asin(((f-v)/r).toFixed(9));t=n.asin(((l-v)/r).toFixed(9));H=a<g?X-H:H;t=d<g?X-t:t;0>H&&(H=2*X+H);0>t&&(t=2*X+t);e&&H>t&&(H-=2*X);!e&&t>H&&(t-=2*X)}if(R(t-H)>m){var p=t,N=d,x=l;t=H+m*(e&&t>H?1:-1);d=g+b*n.cos(t);l=v+r*n.sin(t);p=Ta(d,l,b,r,c,0,e,N,x,[t,p,g,v])}g=t-H;c=n.cos(H);
m=n.sin(H);e=n.cos(t);t=n.sin(t);g=n.tan(g/4);b=4/3*b*g;g*=4/3*r;r=[a,f];a=[a+b*m,f-g*c];f=[d+b*t,l-g*e];d=[d,l];a[0]=2*r[0]-a[0];a[1]=2*r[1]-a[1];if(h)return[a,f,d][y](p);p=[a,f,d][y](p).join()[k](",");h=[];d=0;for(l=p.length;d<l;d++)h[d]=d%2?u(p[d-1],p[d],w).y:u(p[d],p[d+1],w).x;return h},qa=function(a,f,b,r,c,g,e,k,d){var l=1-d;return{x:Z(l,3)*a+3*Z(l,2)*d*b+3*l*d*d*c+Z(d,3)*e,y:Z(l,3)*f+3*Z(l,2)*d*r+3*l*d*d*g+Z(d,3)*k}},Qa=s(function(a,f,b,r,g,e,k,d){var l=g-2*b+a-(k-2*g+b),h=2*(b-a)-2*(g-b),
m=a-b,y=(-h+n.sqrt(h*h-4*l*m))/2/l,l=(-h-n.sqrt(h*h-4*l*m))/2/l,p=[f,d],w=[a,k],s;"1e12"<R(y)&&(y=0.5);"1e12"<R(l)&&(l=0.5);0<y&&1>y&&(s=qa(a,f,b,r,g,e,k,d,y),w.push(s.x),p.push(s.y));0<l&&1>l&&(s=qa(a,f,b,r,g,e,k,d,l),w.push(s.x),p.push(s.y));l=e-2*r+f-(d-2*e+r);h=2*(r-f)-2*(e-r);m=f-r;y=(-h+n.sqrt(h*h-4*l*m))/2/l;l=(-h-n.sqrt(h*h-4*l*m))/2/l;"1e12"<R(y)&&(y=0.5);"1e12"<R(l)&&(l=0.5);0<y&&1>y&&(s=qa(a,f,b,r,g,e,k,d,y),w.push(s.x),p.push(s.y));0<l&&1>l&&(s=qa(a,f,b,r,g,e,k,d,l),w.push(s.x),p.push(s.y));
return{min:{x:N[c](0,w),y:N[c](0,p)},max:{x:t[c](0,w),y:t[c](0,p)}}}),la=d._path2curve=s(function(a,f){var b=!f&&ha(a);if(!f&&b.curve)return ca(b.curve);var r=Ra(a),g=f&&Ra(f),e={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},k={x:0,y:0,bx:0,by:0,X:0,Y:0,qx:null,qy:null},d=function(a,f){var b,q;if(!a)return["C",f.x,f.y,f.x,f.y,f.x,f.y];a[0]in{T:1,Q:1}||(f.qx=f.qy=null);switch(a[0]){case "M":f.X=a[1];f.Y=a[2];break;case "A":a=["C"][y](Ta[c](0,[f.x,f.y][y](a.slice(1))));break;case "S":b=f.x+(f.x-(f.bx||
f.x));q=f.y+(f.y-(f.by||f.y));a=["C",b,q][y](a.slice(1));break;case "T":f.qx=f.x+(f.x-(f.qx||f.x));f.qy=f.y+(f.y-(f.qy||f.y));a=["C"][y](Sa(f.x,f.y,f.qx,f.qy,a[1],a[2]));break;case "Q":f.qx=a[1];f.qy=a[2];a=["C"][y](Sa(f.x,f.y,a[1],a[2],a[3],a[4]));break;case "L":a=["C"][y]([f.x,f.y,a[1],a[2],a[1],a[2]]);break;case "H":a=["C"][y]([f.x,f.y,a[1],f.y,a[1],f.y]);break;case "V":a=["C"][y]([f.x,f.y,f.x,a[1],f.x,a[1]]);break;case "Z":a=["C"][y]([f.x,f.y,f.X,f.Y,f.X,f.Y])}return a},l=function(a,f){if(7<a[f].length){a[f].shift();
for(var b=a[f];b.length;)a.splice(f++,0,["C"][y](b.splice(0,6)));a.splice(f,1);n=t(r.length,g&&g.length||0)}},h=function(a,f,b,q,c){a&&f&&"M"==a[c][0]&&"M"!=f[c][0]&&(f.splice(c,0,["M",q.x,q.y]),b.bx=0,b.by=0,b.x=a[c][1],b.y=a[c][2],n=t(r.length,g&&g.length||0))},m=0,n=t(r.length,g&&g.length||0);for(;m<n;m++){r[m]=d(r[m],e);l(r,m);g&&(g[m]=d(g[m],k));g&&l(g,m);h(r,g,e,k,m);h(g,r,k,e,m);var p=r[m],w=g&&g[m],s=p.length,v=g&&w.length;e.x=p[s-2];e.y=p[s-1];e.bx=O(p[s-4])||e.x;e.by=O(p[s-3])||e.y;k.bx=
g&&(O(w[v-4])||k.x);k.by=g&&(O(w[v-3])||k.y);k.x=g&&w[v-2];k.y=g&&w[v-1]}g||(b.curve=ca(r));return g?[r,g]:r},null,ca);d._parseDots=s(function(a){for(var f=[],b=0,r=a.length;b<r;b++){var c={},g=a[b].match(/^([^:]*):?([\d\.]*)/);c.color=d.getRGB(g[1]);if(c.color.error)return null;c.color=c.color.hex;g[2]&&(c.offset=g[2]+"%");f.push(c)}b=1;for(r=f.length-1;b<r;b++)if(!f[b].offset){a=O(f[b-1].offset||0);g=0;for(c=b+1;c<r;c++)if(f[c].offset){g=f[c].offset;break}g||(g=100,c=r);g=O(g);for(g=(g-a)/(c-b+
1);b<c;b++)a+=g,f[b].offset=a+"%"}return f});var ra=d._tear=function(a,f){a==f.top&&(f.top=a.prev);a==f.bottom&&(f.bottom=a.next);a.next&&(a.next.prev=a.prev);a.prev&&(a.prev.next=a.next)};d._tofront=function(a,f){f.top!==a&&(ra(a,f),a.next=null,a.prev=f.top,f.top.next=a,f.top=a)};d._toback=function(a,f){f.bottom!==a&&(ra(a,f),a.next=f.bottom,a.prev=null,f.bottom.prev=a,f.bottom=a)};d._insertafter=function(a,f,b){ra(a,b);f==b.top&&(b.top=a);f.next&&(f.next.prev=a);a.next=f.next;a.prev=f;f.next=a};
d._insertbefore=function(a,f,b){ra(a,b);f==b.bottom&&(b.bottom=a);f.prev&&(f.prev.next=a);a.prev=f.prev;f.prev=a;a.next=f};var nb=d.toMatrix=function(a,f){var b=Aa(a),c={_:{transform:""},getBBox:function(){return b}};Ia(c,f);return c.matrix};d.transformPath=function(a,f){return ya(a,nb(a,f))};var Ia=d._extractTransform=function(a,f){if(null==f)return a._.transform;f=g(f).replace(/\.{3}|\u2026/g,a._.transform||"");var b=d.parseTransformString(f),c=0,e=0,k=0,l=1,h=1,m=a._,k=new J;m.transform=b||[];
if(b)for(var e=0,y=b.length;e<y;e++){var n=b[e],p=n.length,t=g(n[0]).toLowerCase(),w=n[0]!=t,s=w?k.invert():0,v,u,N,x,A;"t"==t&&3==p?w?(v=s.x(0,0),u=s.y(0,0),N=s.x(n[1],n[2]),x=s.y(n[1],n[2]),k.translate(N-v,x-u)):k.translate(n[1],n[2]):"r"==t?2==p?(A=A||a.getBBox(1),k.rotate(n[1],A.x+A.width/2,A.y+A.height/2),c+=n[1]):4==p&&(w?(N=s.x(n[2],n[3]),x=s.y(n[2],n[3]),k.rotate(n[1],N,x)):k.rotate(n[1],n[2],n[3]),c+=n[1]):"s"==t?2==p||3==p?(A=A||a.getBBox(1),k.scale(n[1],n[p-1],A.x+A.width/2,A.y+A.height/
2),l*=n[1],h*=n[p-1]):5==p&&(w?(N=s.x(n[3],n[4]),x=s.y(n[3],n[4]),k.scale(n[1],n[2],N,x)):k.scale(n[1],n[2],n[3],n[4]),l*=n[1],h*=n[2]):"m"==t&&7==p&&k.add(n[1],n[2],n[3],n[4],n[5],n[6]);m.dirtyT=1;a.matrix=k}a.matrix=k;m.sx=l;m.sy=h;m.deg=c;m.dx=e=k.e;m.dy=k=k.f;1==l&&1==h&&!c&&m.bbox?(m.bbox.x+=+e,m.bbox.y+=+k):m.dirtyT=1},Ua=function(a){var f=a[0];switch(f.toLowerCase()){case "t":return[f,0,0];case "m":return[f,1,0,0,1,0,0];case "r":return 4==a.length?[f,0,a[2],a[3]]:[f,0];case "s":return 5==a.length?
[f,1,1,a[3],a[4]]:3==a.length?[f,1,1]:[f,1]}},$a=d._equaliseTransform=function(a,f){f=g(f).replace(/\.{3}|\u2026/g,a);a=d.parseTransformString(a)||[];f=d.parseTransformString(f)||[];for(var b=t(a.length,f.length),c=[],e=[],k=0,l,h,m,n;k<b;k++){m=a[k]||Ua(f[k]);n=f[k]||Ua(m);if(m[0]!=n[0]||"r"==m[0].toLowerCase()&&(m[2]!=n[2]||m[3]!=n[3])||"s"==m[0].toLowerCase()&&(m[3]!=n[3]||m[4]!=n[4]))return;c[k]=[];e[k]=[];l=0;for(h=t(m.length,n.length);l<h;l++)l in m&&(c[k][l]=m[l]),l in n&&(e[k][l]=n[l])}return{from:c,
to:e}};d._getContainer=function(a,f,b,c){var g;g=null!=c||d.is(a,"object")?a:u.doc.getElementById(a);if(null!=g)return g.tagName?null==f?{container:g,width:g.style.pixelWidth||g.offsetWidth,height:g.style.pixelHeight||g.offsetHeight}:{container:g,width:f,height:b}:{container:1,x:a,y:f,width:b,height:c}};d.pathToRelative=mb;d._engine={};d.path2curve=la;d.matrix=function(a,f,b,c,g,e){return new J(a,f,b,c,g,e)};(function(a){function f(a){var f=n.sqrt(b(a));a[0]&&(a[0]/=f);a[1]&&(a[1]/=f)}function b(a){return a[0]*
a[0]+a[1]*a[1]}a.add=function(a,f,b,c,q,g){var e=[[],[],[]],k=[[this.a,this.c,this.e],[this.b,this.d,this.f],[0,0,1]];f=[[a,b,q],[f,c,g],[0,0,1]];a&&a instanceof J&&(f=[[a.a,a.c,a.e],[a.b,a.d,a.f],[0,0,1]]);for(a=0;3>a;a++)for(b=0;3>b;b++){for(c=q=0;3>c;c++)q+=k[a][c]*f[c][b];e[a][b]=q}this.a=e[0][0];this.b=e[1][0];this.c=e[0][1];this.d=e[1][1];this.e=e[0][2];this.f=e[1][2]};a.invert=function(){var a=this.a*this.d-this.b*this.c;return new J(this.d/a,-this.b/a,-this.c/a,this.a/a,(this.c*this.f-this.d*
this.e)/a,(this.b*this.e-this.a*this.f)/a)};a.clone=function(){return new J(this.a,this.b,this.c,this.d,this.e,this.f)};a.translate=function(a,f){this.add(1,0,0,1,a,f)};a.scale=function(a,f,b,c){null==f&&(f=a);(b||c)&&this.add(1,0,0,1,b,c);this.add(a,0,0,f,0,0);(b||c)&&this.add(1,0,0,1,-b,-c)};a.rotate=function(a,f,b){a=d.rad(a);f=f||0;b=b||0;var c=+n.cos(a).toFixed(9);a=+n.sin(a).toFixed(9);this.add(c,a,-a,c,f,b);this.add(1,0,0,1,-f,-b)};a.x=function(a,f){return a*this.a+f*this.c+this.e};a.y=function(a,
f){return a*this.b+f*this.d+this.f};a.get=function(a){return+this[g.fromCharCode(97+a)].toFixed(4)};a.toString=function(){return d.svg?"matrix("+[this.get(0),this.get(1),this.get(2),this.get(3),this.get(4),this.get(5)].join()+")":[this.get(0),this.get(2),this.get(1),this.get(3),0,0].join()};a.toFilter=function(){return"progid:DXImageTransform.Microsoft.Matrix(M11="+this.get(0)+", M12="+this.get(2)+", M21="+this.get(1)+", M22="+this.get(3)+", Dx="+this.get(4)+", Dy="+this.get(5)+", sizingmethod='auto expand')"};
a.offset=function(){return[this.e.toFixed(4),this.f.toFixed(4)]};a.split=function(){var a={};a.dx=this.e;a.dy=this.f;var c=[[this.a,this.c],[this.b,this.d]];a.scalex=n.sqrt(b(c[0]));f(c[0]);a.shear=c[0][0]*c[1][0]+c[0][1]*c[1][1];c[1]=[c[1][0]-c[0][0]*a.shear,c[1][1]-c[0][1]*a.shear];a.scaley=n.sqrt(b(c[1]));f(c[1]);a.shear/=a.scaley;var g=-c[0][1],c=c[1][1];0>c?(a.rotate=d.deg(n.acos(c)),0>g&&(a.rotate=360-a.rotate)):a.rotate=d.deg(n.asin(g));a.isSimple=!+a.shear.toFixed(9)&&(a.scalex.toFixed(9)==
a.scaley.toFixed(9)||!a.rotate);a.isSuperSimple=!+a.shear.toFixed(9)&&a.scalex.toFixed(9)==a.scaley.toFixed(9)&&!a.rotate;a.noRotation=!+a.shear.toFixed(9)&&!a.rotate;return a};a.toTransformString=function(a){a=a||this[k]();return a.isSimple?(a.scalex=+a.scalex.toFixed(4),a.scaley=+a.scaley.toFixed(4),a.rotate=+a.rotate.toFixed(4),(a.dx||a.dy?"t"+[a.dx,a.dy]:"")+(1!=a.scalex||1!=a.scaley?"s"+[a.scalex,a.scaley,0,0]:"")+(a.rotate?"r"+[a.rotate,0,0]:"")):"m"+[this.get(0),this.get(1),this.get(2),this.get(3),
this.get(4),this.get(5)]}})(J.prototype);var sa=navigator.userAgent.match(/Version\/(.*?)\s/)||navigator.userAgent.match(/Chrome\/(\d+)/);"Apple Computer, Inc."==navigator.vendor&&(sa&&4>sa[1]||"iP"==navigator.platform.slice(0,2))||"Google Inc."==navigator.vendor&&sa&&8>sa[1]?B.safari=function(){var a=this.rect(-99,-99,this.width+99,this.height+99).attr({stroke:"none"});setTimeout(function(){a.remove()})}:B.safari=jb;for(var ob=function(){this.returnValue=!1},pb=function(){return this.originalEvent.preventDefault()},
qb=function(){this.cancelBubble=!0},rb=function(){return this.originalEvent.stopPropagation()},sb=function(){if(u.doc.addEventListener)return function(a,f,b,c){var g=m&&l[f]?l[f]:f,e=function(g){var e=g.clientX+(u.doc.documentElement.scrollLeft||u.doc.body.scrollLeft),k=g.clientY+(u.doc.documentElement.scrollTop||u.doc.body.scrollTop);if(m&&l[I](f))for(var d=0,h=g.targetTouches&&g.targetTouches.length;d<h;d++)if(g.targetTouches[d].target==a){h=g;g=g.targetTouches[d];g.originalEvent=h;g.preventDefault=
pb;g.stopPropagation=rb;break}return b.call(c,g,e,k)};a.addEventListener(g,e,!1);return function(){a.removeEventListener(g,e,!1);return!0}};if(u.doc.attachEvent)return function(a,f,b,c){var g=function(a){a=a||u.win.event;var f=a.clientX+(u.doc.documentElement.scrollLeft||u.doc.body.scrollLeft),g=a.clientY+(u.doc.documentElement.scrollTop||u.doc.body.scrollTop);a.preventDefault=a.preventDefault||ob;a.stopPropagation=a.stopPropagation||qb;return b.call(c,a,f,g)};a.attachEvent("on"+f,g);return function(){a.detachEvent("on"+
f,g);return!0}}}(),ia=[],Ba=function(a){for(var f=a.clientX,b=a.clientY,c=u.doc.documentElement.scrollTop||u.doc.body.scrollTop,g=u.doc.documentElement.scrollLeft||u.doc.body.scrollLeft,e,k=ia.length;k--;){e=ia[k];if(m)for(var l=a.touches.length,d;l--;){if(d=a.touches[l],d.identifier==e.el._drag.id){f=d.clientX;b=d.clientY;(a.originalEvent?a.originalEvent:a).preventDefault();break}}else a.preventDefault();var l=e.el.node,h=l.nextSibling,n=l.parentNode,y=l.style.display;u.win.opera&&n.removeChild(l);
l.style.display="none";d=e.el.paper.getElementByPoint(f,b);l.style.display=y;u.win.opera&&(h?n.insertBefore(l,h):n.appendChild(l));d&&eve("raphael.drag.over."+e.el.id,e.el,d);f+=g;b+=c;eve("raphael.drag.move."+e.el.id,e.move_scope||e.el,f-e.el._drag.x,b-e.el._drag.y,f,b,a)}},Ca=function(a){d.unmousemove(Ba).unmouseup(Ca);for(var f=ia.length,b;f--;)b=ia[f],b.el._drag={},eve("raphael.drag.end."+b.el.id,b.end_scope||b.start_scope||b.move_scope||b.el,a);ia=[]},L=d.el={},Va=e.length;Va--;)(function(a){d[a]=
L[a]=function(f,b){d.is(f,"function")&&(this.events=this.events||[],this.events.push({name:a,f:f,unbind:sb(this.shape||this.node||u.doc,a,f,b||this)}));return this};d["un"+a]=L["un"+a]=function(f){for(var b=this.events||[],c=b.length;c--;)if(b[c].name==a&&b[c].f==f){b[c].unbind();b.splice(c,1);!b.length&&delete this.events;break}return this}})(e[Va]);L.data=function(a,f){var b=ma[this.id]=ma[this.id]||{};if(1==arguments.length){if(d.is(a,"object")){for(var c in a)a[I](c)&&this.data(c,a[c]);return this}eve("raphael.data.get."+
this.id,this,b[a],a);return b[a]}b[a]=f;eve("raphael.data.set."+this.id,this,f,a);return this};L.removeData=function(a){null==a?ma[this.id]={}:ma[this.id]&&delete ma[this.id][a];return this};L.hover=function(a,f,b,c){return this.mouseover(a,b).mouseout(f,c||b)};L.unhover=function(a,f){return this.unmouseover(a).unmouseout(f)};var ja=[];L.drag=function(a,f,b,c,g,e){function k(l){(l.originalEvent||l).preventDefault();var h=u.doc.documentElement.scrollTop||u.doc.body.scrollTop,m=u.doc.documentElement.scrollLeft||
u.doc.body.scrollLeft;this._drag.x=l.clientX+m;this._drag.y=l.clientY+h;this._drag.id=l.identifier;!ia.length&&d.mousemove(Ba).mouseup(Ca);ia.push({el:this,move_scope:c,start_scope:g,end_scope:e});f&&eve.on("raphael.drag.start."+this.id,f);a&&eve.on("raphael.drag.move."+this.id,a);b&&eve.on("raphael.drag.end."+this.id,b);eve("raphael.drag.start."+this.id,g||c||this,l.clientX+m,l.clientY+h,l)}this._drag={};ja.push({el:this,start:k});this.mousedown(k);return this};L.onDragOver=function(a){a?eve.on("raphael.drag.over."+
this.id,a):eve.unbind("raphael.drag.over."+this.id)};L.undrag=function(){for(var a=ja.length;a--;)ja[a].el==this&&(this.unmousedown(ja[a].start),ja.splice(a,1),eve.unbind("raphael.drag.*."+this.id));!ja.length&&d.unmousemove(Ba).unmouseup(Ca)};B.circle=function(a,f,b){a=d._engine.circle(this,a||0,f||0,b||0);this.__set__&&this.__set__.push(a);return a};B.rect=function(a,f,b,c,g){a=d._engine.rect(this,a||0,f||0,b||0,c||0,g||0);this.__set__&&this.__set__.push(a);return a};B.ellipse=function(a,f,b,c){a=
d._engine.ellipse(this,a||0,f||0,b||0,c||0);this.__set__&&this.__set__.push(a);return a};B.path=function(a){a&&!d.is(a,"string")&&!d.is(a[0],T)&&(a+="");var f=d._engine.path(d.format[c](d,arguments),this);this.__set__&&this.__set__.push(f);return f};B.image=function(a,f,b,c,g){a=d._engine.image(this,a||"about:blank",f||0,b||0,c||0,g||0);this.__set__&&this.__set__.push(a);return a};B.text=function(a,f,b){a=d._engine.text(this,a||0,f||0,g(b));this.__set__&&this.__set__.push(a);return a};B.set=function(a){!d.is(a,
"array")&&(a=Array.prototype.splice.call(arguments,0,arguments.length));var b=new ka(a);this.__set__&&this.__set__.push(b);return b};B.setStart=function(a){this.__set__=a||this.set()};B.setFinish=function(a){a=this.__set__;delete this.__set__;return a};B.setSize=function(a,b){return d._engine.setSize.call(this,a,b)};B.setViewBox=function(a,b,c,g,e){return d._engine.setViewBox.call(this,a,b,c,g,e)};B.top=B.bottom=null;B.raphael=d;B.getElementByPoint=function(a,b){var c,g,e=this.canvas,k=u.doc.elementFromPoint(a,
b);if(u.win.opera&&"svg"==k.tagName){g=e.getBoundingClientRect();c=e.ownerDocument;var l=c.body,d=c.documentElement;c=g.top+(u.win.pageYOffset||d.scrollTop||l.scrollTop)-(d.clientTop||l.clientTop||0);g=g.left+(u.win.pageXOffset||d.scrollLeft||l.scrollLeft)-(d.clientLeft||l.clientLeft||0);l=e.createSVGRect();l.x=a-g;l.y=b-c;l.width=l.height=1;c=e.getIntersectionList(l,null);c.length&&(k=c[c.length-1])}if(!k)return null;for(;k.parentNode&&k!=e.parentNode&&!k.raphael;)k=k.parentNode;k==this.canvas.parentNode&&
(k=e);return k=k&&k.raphael?this.getById(k.raphaelid):null};B.getById=function(a){for(var b=this.bottom;b;){if(b.id==a)return b;b=b.next}return null};B.forEach=function(a,b){for(var c=this.bottom;c&&!1!==a.call(b,c);)c=c.next;return this};B.getElementsByPoint=function(a,b){var c=this.set();this.forEach(function(g){g.isPointInside(a,b)&&c.push(g)});return c};L.isPointInside=function(a,b){var c=this.realPath=this.realPath||na[this.type](this);return d.isPointInsidePath(c,a,b)};L.getBBox=function(a){if(this.removed)return{};
var b=this._;if(a){if(b.dirty||!b.bboxwt)this.realPath=na[this.type](this),b.bboxwt=Aa(this.realPath),b.bboxwt.toString=F,b.dirty=0;return p(b.bboxwt)}if(b.dirty||b.dirtyT||!b.bbox){if(b.dirty||!this.realPath)b.bboxwt=0,this.realPath=na[this.type](this);b.bbox=Aa(ya(this.realPath,this.matrix));b.bbox.toString=F;b.dirty=b.dirtyT=0}return p(b.bbox)};L.getBBoxWOTransform=function(){return this.getBBox(1)};L.clone=function(){if(this.removed)return null;var a=this.paper[this.type]().attr(this.attr());
this.__set__&&this.__set__.push(a);return a};L.glow=function(a){if("text"==this.type)return null;a=a||{};var b=(a.width||10)+(+this.attr("stroke-width")||1),c=a.fill||!1,g=a.opacity||0.5,e=a.offsetx||0,k=a.offsety||0;a=a.color||"#000";for(var l=b/2,d=this.paper,h=d.set(),m=this.realPath||na[this.type](this),m=this.matrix?ya(m,this.matrix):m,n=1;n<l+1;n++)h.push(d.path(m).attr({stroke:a,fill:c?a:"none","stroke-linejoin":"round","stroke-linecap":"round","stroke-width":+(b/l*n).toFixed(3),opacity:+(g/
l).toFixed(3)}));return h.insertBefore(this).translate(e,k)};var Da=function(a,b,c,g,e,k,l,h,m){return null==m?Y(a,b,c,g,e,k,l,h):d.findDotsAtSegment(a,b,c,g,e,k,l,h,D(a,b,c,g,e,k,l,h,m))},Ea=function(a,b){return function(c,g,e){c=la(c);for(var k,l,h,m,n="",y={},p=0,t=0,w=c.length;t<w;t++){h=c[t];if("M"==h[0])k=+h[1],l=+h[2];else{m=Da(k,l,h[1],h[2],h[3],h[4],h[5],h[6]);if(p+m>g){if(b&&!y.start){k=Da(k,l,h[1],h[2],h[3],h[4],h[5],h[6],g-p);n+=["C"+k.start.x,k.start.y,k.m.x,k.m.y,k.x,k.y];if(e)return n;
y.start=n;n=["M"+k.x,k.y+"C"+k.n.x,k.n.y,k.end.x,k.end.y,h[5],h[6]].join();p+=m;k=+h[5];l=+h[6];continue}if(!a&&!b)return k=Da(k,l,h[1],h[2],h[3],h[4],h[5],h[6],g-p),{x:k.x,y:k.y,alpha:k.alpha}}p+=m;k=+h[5];l=+h[6]}n+=h.shift()+h}y.end=n;k=a?p:b?y:d.findDotsAtSegment(k,l,h[0],h[1],h[2],h[3],h[4],h[5],1);k.alpha&&(k={x:k.x,y:k.y,alpha:k.alpha});return k}},Wa=Ea(1),Xa=Ea(),Fa=Ea(0,1);d.getTotalLength=Wa;d.getPointAtLength=Xa;d.getSubpath=function(a,b,c){if(1E-6>this.getTotalLength(a)-c)return Fa(a,
b).end;a=Fa(a,c,1);return b?Fa(a,b).end:a};L.getTotalLength=function(){if("path"==this.type)return this.node.getTotalLength?this.node.getTotalLength():Wa(this.attrs.path)};L.getPointAtLength=function(a){if("path"==this.type)return Xa(this.attrs.path,a)};L.getSubpath=function(a,b){if("path"==this.type)return d.getSubpath(this.attrs.path,a,b)};var $=d.easing_formulas={linear:function(a){return a},"<":function(a){return Z(a,1.7)},">":function(a){return Z(a,0.48)},"<>":function(a){var b=0.48-a/1.04,c=
n.sqrt(0.1734+b*b);a=c-b;a=Z(R(a),1/3)*(0>a?-1:1);b=-c-b;b=Z(R(b),1/3)*(0>b?-1:1);a=a+b+0.5;return 3*(1-a)*a*a+a*a*a},backIn:function(a){return a*a*(2.70158*a-1.70158)},backOut:function(a){a-=1;return a*a*(2.70158*a+1.70158)+1},elastic:function(a){return a==!!a?a:Z(2,-10*a)*n.sin(2*(a-0.075)*X/0.3)+1},bounce:function(a){var b;a<1/2.75?b=7.5625*a*a:a<2/2.75?(a-=1.5/2.75,b=7.5625*a*a+0.75):a<2.5/2.75?(a-=2.25/2.75,b=7.5625*a*a+0.9375):(a-=2.625/2.75,b=7.5625*a*a+0.984375);return b}};$.easeIn=$["ease-in"]=
$["<"];$.easeOut=$["ease-out"]=$[">"];$.easeInOut=$["ease-in-out"]=$["<>"];$["back-in"]=$.backIn;$["back-out"]=$.backOut;var K=[],Ja=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(a){setTimeout(a,16)},ua=function(){for(var a=+new Date,f=0;f<K.length;f++){var c=K[f];if(!c.el.removed&&!c.paused){var g=a-c.start,k=c.ms,e=c.easing,l=c.from,h=c.diff,m=c.to,n=c.el,p={},t,w={},s;c.initstatus?
(g=(c.initstatus*c.anim.top-c.prev)/(c.percent-c.prev)*k,c.status=c.initstatus,delete c.initstatus,c.stop&&K.splice(f--,1)):c.status=(c.prev+(c.percent-c.prev)*(g/k))/c.anim.top;if(!(0>g))if(g<k){var v=e(g/k),u;for(u in l)if(l[I](u)){switch(ta[u]){case U:t=+l[u]+v*k*h[u];break;case "colour":t="rgb("+[Ga(va(l[u].r+v*k*h[u].r)),Ga(va(l[u].g+v*k*h[u].g)),Ga(va(l[u].b+v*k*h[u].b))].join()+")";break;case "path":t=[];g=0;for(e=l[u].length;g<e;g++){t[g]=[l[u][g][0]];m=1;for(w=l[u][g].length;m<w;m++)t[g][m]=
+l[u][g][m]+v*k*h[u][g][m];t[g]=t[g].join(b)}t=t.join(b);break;case "transform":if(h[u].real)for(t=[],g=0,e=l[u].length;g<e;g++)for(t[g]=[l[u][g][0]],m=1,w=l[u][g].length;m<w;m++)t[g][m]=l[u][g][m]+v*k*h[u][g][m];else t=function(a){return+l[u][a]+v*k*h[u][a]},t=[["m",t(0),t(1),t(2),t(3),t(4),t(5)]];break;case "csv":if("clip-rect"==u)for(t=[],g=4;g--;)t[g]=+l[u][g]+v*k*h[u][g];break;default:for(e=[][y](l[u]),t=[],g=n.paper.customAttributes[u].length;g--;)t[g]=+e[g]+v*k*h[u][g]}p[u]=t}n.attr(p);(function(a,
b,c){setTimeout(function(){eve("raphael.anim.frame."+a,b,c)})})(n.id,n,c.anim)}else{(function(a,b,c){setTimeout(function(){eve("raphael.anim.frame."+b.id,b,c);eve("raphael.anim.finish."+b.id,b,c);d.is(a,"function")&&a.call(b)})})(c.callback,n,c.anim);n.attr(m);K.splice(f--,1);if(1<c.repeat&&!c.next){for(s in m)m[I](s)&&(w[s]=c.totalOrigin[s]);c.el.attr(w);A(c.anim,c.el,c.anim.percents[0],null,c.totalOrigin,c.repeat-1)}c.next&&!c.stop&&A(c.anim,c.el,c.next,null,c.totalOrigin,c.repeat)}}}d.svg&&n&&
n.paper&&n.paper.safari();K.length&&Ja(ua)},Ga=function(a){return 255<a?255:0>a?0:a};L.animateWith=function(a,b,c,g,k,e){if(this.removed)return e&&e.call(this),this;c=c instanceof v?c:d.animation(c,g,k,e);A(c,this,c.percents[0],null,this.attr());c=0;for(g=K.length;c<g;c++)if(K[c].anim==b&&K[c].el==a){K[g-1].start=K[c].start;break}return this};L.onAnimation=function(a){a?eve.on("raphael.anim.frame."+this.id,a):eve.unbind("raphael.anim.frame."+this.id);return this};v.prototype.delay=function(a){var b=
new v(this.anim,this.ms);b.times=this.times;b.del=+a||0;return b};v.prototype.repeat=function(a){var b=new v(this.anim,this.ms);b.del=this.del;b.times=n.floor(t(a,0))||1;return b};d.animation=function(a,b,c,g){if(a instanceof v)return a;if(d.is(c,"function")||!c)g=g||c||null,c=null;a=Object(a);b=+b||0;var k={},e,l;for(l in a)a[I](l)&&O(l)!=l&&O(l)+"%"!=l&&(e=!0,k[l]=a[l]);if(!e)return new v(a,b);c&&(k.easing=c);g&&(k.callback=g);return new v({100:k},b)};L.animate=function(a,b,c,g){if(this.removed)return g&&
g.call(this),this;a=a instanceof v?a:d.animation(a,b,c,g);A(a,this,a.percents[0],null,this.attr());return this};L.setTime=function(a,b){a&&null!=b&&this.status(a,N(b,a.ms)/a.ms);return this};L.status=function(a,b){var c=[],g=0,k,e;if(null!=b)return A(a,this,-1,N(b,1)),this;for(k=K.length;g<k;g++)if(e=K[g],e.el.id==this.id&&(!a||e.anim==a)){if(a)return e.status;c.push({anim:e.anim,status:e.status})}return a?0:c};L.pause=function(a){for(var b=0;b<K.length;b++)K[b].el.id!=this.id||a&&K[b].anim!=a||!1===
eve("raphael.anim.pause."+this.id,this,K[b].anim)||(K[b].paused=!0);return this};L.resume=function(a){for(var b=0;b<K.length;b++)if(K[b].el.id==this.id&&(!a||K[b].anim==a)){var c=K[b];!1!==eve("raphael.anim.resume."+this.id,this,c.anim)&&(delete c.paused,this.status(c.anim,c.status))}return this};L.stop=function(a){for(var b=0;b<K.length;b++)K[b].el.id!=this.id||a&&K[b].anim!=a||!1===eve("raphael.anim.stop."+this.id,this,K[b].anim)||K.splice(b--,1);return this};eve.on("raphael.remove",h);eve.on("raphael.clear",
h);L.toString=function(){return"Raphaël’s object"};var ka=function(a){this.items=[];this.length=0;this.type="set";if(a)for(var b=0,c=a.length;b<c;b++)a[b]&&(a[b].constructor==L.constructor||a[b].constructor==ka)&&(this[this.items.length]=this.items[this.items.length]=a[b],this.length++)},S=ka.prototype;S.push=function(){for(var a,b,c=0,g=arguments.length;c<g;c++)(a=arguments[c])&&(a.constructor==L.constructor||a.constructor==ka)&&(b=this.items.length,this[b]=this.items[b]=a,this.length++);return this};
S.pop=function(){this.length&&delete this[this.length--];return this.items.pop()};S.forEach=function(a,b){for(var c=0,g=this.items.length;c<g&&!1!==a.call(b,this.items[c],c);c++);return this};for(var Ha in L)L[I](Ha)&&(S[Ha]=function(a){return function(){var b=arguments;return this.forEach(function(g){g[a][c](g,b)})}}(Ha));S.attr=function(a,b){if(a&&d.is(a,T)&&d.is(a[0],"object"))for(var c=0,g=a.length;c<g;c++)this.items[c].attr(a[c]);else for(c=0,g=this.items.length;c<g;c++)this.items[c].attr(a,
b);return this};S.clear=function(){for(;this.length;)this.pop()};S.splice=function(a,b,c){a=0>a?t(this.length+a,0):a;b=t(0,N(this.length-a,b));var g=[],k=[],e=[],l;for(l=2;l<arguments.length;l++)e.push(arguments[l]);for(l=0;l<b;l++)k.push(this[a+l]);for(;l<this.length-a;l++)g.push(this[a+l]);var h=e.length;for(l=0;l<h+g.length;l++)this.items[a+l]=this[a+l]=l<h?e[l]:g[l-h];for(l=this.items.length=this.length-=b-h;this[l];)delete this[l++];return new ka(k)};S.exclude=function(a){for(var b=0,c=this.length;b<
c;b++)if(this[b]==a)return this.splice(b,1),!0};S.animate=function(a,b,c,g){!d.is(c,"function")&&c||(g=c||null);var k=this.items.length,e=k,l=this,h;if(!k)return this;g&&(h=function(){!--k&&g.call(l)});c=d.is(c,"string")?c:h;b=d.animation(a,b,c,h);for(a=this.items[--e].animate(b);e--;)this.items[e]&&!this.items[e].removed&&this.items[e].animateWith(a,b,b);return this};S.insertAfter=function(a){for(var b=this.items.length;b--;)this.items[b].insertAfter(a);return this};S.getBBox=function(){for(var a=
[],b=[],g=[],k=[],e=this.items.length;e--;)if(!this.items[e].removed){var l=this.items[e].getBBox();a.push(l.x);b.push(l.y);g.push(l.x+l.width);k.push(l.y+l.height)}a=N[c](0,a);b=N[c](0,b);g=t[c](0,g);k=t[c](0,k);return{x:a,y:b,x2:g,y2:k,width:g-a,height:k-b}};S.clone=function(a){a=new ka;for(var b=0,c=this.items.length;b<c;b++)a.push(this.items[b].clone());return a};S.toString=function(){return"Raphaël‘s set"};d.registerFont=function(a){if(!a.face)return a;this.fonts=this.fonts||{};var b={w:a.w,
face:{},glyphs:{}},c=a.face["font-family"],g;for(g in a.face)a.face[I](g)&&(b.face[g]=a.face[g]);this.fonts[c]?this.fonts[c].push(b):this.fonts[c]=[b];if(!a.svg){b.face["units-per-em"]=ga(a.face["units-per-em"],10);for(var k in a.glyphs)if(a.glyphs[I](k)&&(c=a.glyphs[k],b.glyphs[k]={w:c.w,k:{},d:c.d&&"M"+c.d.replace(/[mlcxtrv]/g,function(a){return{l:"L",c:"C",x:"z",t:"m",r:"l",v:"c"}[a]||"M"})+"z"},c.k))for(var e in c.k)c[I](e)&&(b.glyphs[k].k[e]=c.k[e])}return a};B.getFont=function(a,b,c,g){g=g||
"normal";c=c||"normal";b=+b||{normal:400,bold:700,lighter:300,bolder:800}[b]||400;if(d.fonts){var k=d.fonts[a];if(!k){a=RegExp("(^|\\s)"+a.replace(/[^\w\d\s+!~.:_-]/g,"")+"(\\s|$)","i");for(var e in d.fonts)if(d.fonts[I](e)&&a.test(e)){k=d.fonts[e];break}}var l;if(k)for(e=0,a=k.length;e<a&&(l=k[e],l.face["font-weight"]!=b||l.face["font-style"]!=c&&l.face["font-style"]||l.face["font-stretch"]!=g);e++);return l}};B.print=function(a,b,c,e,l,h,m){h=h||"middle";m=t(N(m||0,1),-1);var n=g(c)[k](""),y=0,
p=0,w="";d.is(e,c)&&(e=this.getFont(e));if(e){c=(l||16)/e.face["units-per-em"];var s=e.face.bbox[k](M);l=+s[0];var u=s[3]-s[1],v=0;h=+s[1]+("baseline"==h?u+ +e.face.descent:u/2);for(var s=0,A=n.length;s<A;s++){if("\n"==n[s])p=D=y=0,v+=u;else var R=p&&e.glyphs[n[s-1]]||{},D=e.glyphs[n[s]],y=y+(p?(R.w||e.w)+(R.k&&R.k[n[s]]||0)+e.w*m:0),p=1;D&&D.d&&(w+=d.transformPath(D.d,["t",y*c,v*c,"s",c,c,l,h,"t",(a-l)/c,(b-h)/c]))}}return this.path(w).attr({fill:"#000",stroke:"none"})};B.add=function(a){if(d.is(a,
"array"))for(var b=this.set(),c=0,g=a.length,e;c<g;c++)e=a[c]||{},G[I](e.type)&&b.push(this[e.type]().attr(e));return b};d.format=function(a,b){var c=d.is(b,T)?[0][y](b):arguments;a&&d.is(a,"string")&&c.length-1&&(a=a.replace(W,function(a,b){return null==c[++b]?"":c[b]}));return a||""};d.fullfill=function(){var a=/\{([^\}]+)\}/g,b=/(?:(?:^|\.)(.+?)(?=\[|\.|$|\()|\[('|")(.+?)\2\])(\(\))?/g,c=function(a,c,g){var e=g;c.replace(b,function(a,b,c,g,f){b=b||g;e&&(b in e&&(e=e[b]),"function"==typeof e&&f&&
(e=e()))});return e=(null==e||e==g?a:e)+""};return function(b,g){return String(b).replace(a,function(a,b){return c(a,b,g)})}}();d.ninja=function(){Q?u.win.Raphael=P:delete Raphael;return d};d.st=S;(function(a,b,c){function g(){/in/.test(a.readyState)?setTimeout(g,9):d.eve("raphael.DOMload")}null==a.readyState&&a.addEventListener&&(a.addEventListener(b,c=function(){a.removeEventListener(b,c,!1);a.readyState="complete"},!1),a.readyState="loading");g()})(document,"DOMContentLoaded");Q?u.win.Raphael=
d:Raphael=d;eve.on("raphael.DOMload",function(){E=!0})})();
window.Raphael.svg&&function(h){var A=String,v=parseFloat,ba=parseInt,F=Math,J=F.max,V=F.abs,D=F.pow,Y=/[, ]+/,aa=h.eve,fa={block:"M5,0 0,2.5 5,5z",classic:"M5,0 0,2.5 5,5 3.5,3 3.5,2z",diamond:"M2.5,0 5,2.5 2.5,5 0,2.5z",open:"M6,1 1,3.5 6,6",oval:"M2.5,0A2.5,2.5,0,0,1,2.5,5 2.5,2.5,0,0,1,2.5,0z"},s={};h.toString=function(){return"Your browser supports SVG.\nYou are running Raphaël "+this.version};var p=function(c,d){if(d){"string"==typeof c&&(c=p(c));for(var m in d)d.hasOwnProperty(m)&&("xlink:"==
m.substring(0,6)?c.setAttributeNS("http://www.w3.org/1999/xlink",m.substring(6),A(d[m])):c.setAttribute(m,A(d[m])))}else c=h._g.doc.createElementNS("http://www.w3.org/2000/svg",c),c.style&&(c.style.webkitTapHighlightColor="rgba(0,0,0,0)");return c},d=function(c,d){var m="linear",b=c.id+d,g=0.5,k=0.5,e=c.node,l=c.paper,w=e.style,n=h._g.doc.getElementById(b);if(!n){d=A(d).replace(h._radial_gradient,function(b,c,e){m="radial";c&&e&&(g=v(c),k=v(e),b=2*(0.5<k)-1,0.25<D(g-0.5,2)+D(k-0.5,2)&&(k=F.sqrt(0.25-
D(g-0.5,2))*b+0.5)&&0.5!=k&&(k=k.toFixed(5)-1E-5*b));return""});d=d.split(/\s*\-\s*/);if("linear"==m){n=d.shift();n=-v(n);if(isNaN(n))return null;var t=[0,0,F.cos(h.rad(n)),F.sin(h.rad(n))],n=1/(J(V(t[2]),V(t[3]))||1);t[2]*=n;t[3]*=n;0>t[2]&&(t[0]=-t[2],t[2]=0);0>t[3]&&(t[1]=-t[3],t[3]=0)}var s=h._parseDots(d);if(!s)return null;b=b.replace(/[\(\)\s,\xb0#]/g,"_");c.gradient&&b!=c.gradient.id&&(l.defs.removeChild(c.gradient),delete c.gradient);if(!c.gradient)for(n=p(m+"Gradient",{id:b}),c.gradient=
n,p(n,"radial"==m?{fx:g,fy:k}:{x1:t[0],y1:t[1],x2:t[2],y2:t[3],gradientTransform:c.matrix.invert()}),l.defs.appendChild(n),l=0,t=s.length;l<t;l++)n.appendChild(p("stop",{offset:s[l].offset?s[l].offset:l?"100%":"0%","stop-color":s[l].color||"#fff"}))}p(e,{fill:"url(#"+b+")",opacity:1,"fill-opacity":1});w.fill="";w.opacity=1;return w.fillOpacity=1},E=function(c){var h=c.getBBox(1);p(c.pattern,{patternTransform:c.matrix.invert()+" translate("+h.x+","+h.y+")"})},M=function(c,d,m){if("path"==c.type){for(var b=
A(d).toLowerCase().split("-"),g=c.paper,k=m?"end":"start",e=c.node,l=c.attrs,w=l["stroke-width"],n=b.length,t="classic",u,v,D,G,B,E=3,F=3,I=5;n--;)switch(b[n]){case "block":case "classic":case "oval":case "diamond":case "open":case "none":t=b[n];break;case "wide":F=5;break;case "narrow":F=2;break;case "long":E=5;break;case "short":E=2}"open"==t?(E+=2,F+=2,I+=2,D=1,G=m?4:1,B={fill:"none",stroke:l.stroke}):(G=D=E/2,B={fill:l.stroke,stroke:"none"});c._.arrows?m?(c._.arrows.endPath&&s[c._.arrows.endPath]--,
c._.arrows.endMarker&&s[c._.arrows.endMarker]--):(c._.arrows.startPath&&s[c._.arrows.startPath]--,c._.arrows.startMarker&&s[c._.arrows.startMarker]--):c._.arrows={};if("none"!=t){b="raphael-marker-"+t;n="raphael-marker-"+k+t+E+F;h._g.doc.getElementById(b)?s[b]++:(g.defs.appendChild(p(p("path"),{"stroke-linecap":"round",d:fa[t],id:b})),s[b]=1);var J=h._g.doc.getElementById(n),M;J?(s[n]++,M=J.getElementsByTagName("use")[0]):(J=p(p("marker"),{id:n,markerHeight:F,markerWidth:E,orient:"auto",refX:G,refY:F/
2}),M=p(p("use"),{"xlink:href":"#"+b,transform:(m?"rotate(180 "+E/2+" "+F/2+") ":"")+"scale("+E/I+","+F/I+")","stroke-width":(1/((E/I+F/I)/2)).toFixed(4)}),J.appendChild(M),g.defs.appendChild(J),s[n]=1);p(M,B);g=D*("diamond"!=t&&"oval"!=t);m?(u=c._.arrows.startdx*w||0,v=h.getTotalLength(l.path)-g*w):(u=g*w,v=h.getTotalLength(l.path)-(c._.arrows.enddx*w||0));B={};B["marker-"+k]="url(#"+n+")";if(v||u)B.d=Raphael.getSubpath(l.path,u,v);p(e,B);c._.arrows[k+"Path"]=b;c._.arrows[k+"Marker"]=n;c._.arrows[k+
"dx"]=g;c._.arrows[k+"Type"]=t;c._.arrows[k+"String"]=d}else m?(u=c._.arrows.startdx*w||0,v=h.getTotalLength(l.path)-u):(u=0,v=h.getTotalLength(l.path)-(c._.arrows.enddx*w||0)),c._.arrows[k+"Path"]&&p(e,{d:Raphael.getSubpath(l.path,u,v)}),delete c._.arrows[k+"Path"],delete c._.arrows[k+"Marker"],delete c._.arrows[k+"dx"],delete c._.arrows[k+"Type"],delete c._.arrows[k+"String"];for(B in s)s.hasOwnProperty(B)&&!s[B]&&(c=h._g.doc.getElementById(B))&&c.parentNode.removeChild(c)}},G={"":[0],none:[0],
"-":[3,1],".":[1,1],"-.":[3,1,1,1],"-..":[3,1,1,1,1,1],". ":[1,3],"- ":[4,3],"--":[8,3],"- .":[4,3,1,3],"--.":[8,3,1,3],"--..":[8,3,1,3,1,3]},W=function(c,h,d){if(h=G[A(h).toLowerCase()]){var b=c.attrs["stroke-width"]||"1";d={round:b,square:b,butt:0}[c.attrs["stroke-linecap"]||d["stroke-linecap"]]||0;for(var g=[],k=h.length;k--;)g[k]=h[k]*b+(k%2?1:-1)*d;p(c.node,{"stroke-dasharray":g.join(",")})}};aa.on("raphael.util.attr.blur",function(c){this.blur(c)});aa.on("raphael.util.attr.cursor",function(c){this.node.style.cursor=
c});var I=function(c,y){var m=c.node,b=c.attrs,g=m.style.visibility;m.style.visibility="hidden";for(var k in y)if(aa("raphael.util.attr."+k,c,y[k]),y.hasOwnProperty(k)&&h._availableAttrs.hasOwnProperty(k)){var e=y[k];b[k]=e;switch(k){case "blur":c.blur(e);break;case "href":case "title":case "target":var l=m.parentNode;if("a"!=l.tagName.toLowerCase()){var w=p("a");l.insertBefore(w,m);w.appendChild(m);l=w}"target"==k?l.setAttributeNS("http://www.w3.org/1999/xlink","show","blank"==e?"new":e):l.setAttributeNS("http://www.w3.org/1999/xlink",
k,e);break;case "cursor":break;case "transform":c.transform(e);break;case "arrow-start":M(c,e);break;case "arrow-end":M(c,e,1);break;case "clip-rect":l=A(e).split(Y);if(4==l.length){c.clip&&c.clip.parentNode.parentNode.removeChild(c.clip.parentNode);var w=p("clipPath"),n=p("rect");w.id=h.createUUID();p(n,{x:l[0],y:l[1],width:l[2],height:l[3]});w.appendChild(n);c.paper.defs.appendChild(w);p(m,{"clip-path":"url(#"+w.id+")"});c.clip=n}!e&&(e=m.getAttribute("clip-path"))&&((e=h._g.doc.getElementById(e.replace(/(^url\(#|\)$)/g,
"")))&&e.parentNode.removeChild(e),p(m,{"clip-path":""}),delete c.clip);break;case "path":"path"==c.type&&(p(m,{d:e?b.path=h._pathToAbsolute(e):"M0,0"}),c._.dirty=1,c._.arrows&&("startString"in c._.arrows&&M(c,c._.arrows.startString),"endString"in c._.arrows&&M(c,c._.arrows.endString,1)));break;case "width":if(m.setAttribute(k,e),c._.dirty=1,b.fx)k="x",e=b.x;else break;case "x":b.fx&&(e=-b.x-(b.width||0));case "rx":if("rx"==k&&"rect"==c.type)break;case "cx":m.setAttribute(k,e);c.pattern&&E(c);c._.dirty=
1;break;case "height":if(m.setAttribute(k,e),c._.dirty=1,b.fy)k="y",e=b.y;else break;case "y":b.fy&&(e=-b.y-(b.height||0));case "ry":if("ry"==k&&"rect"==c.type)break;case "cy":m.setAttribute(k,e);c.pattern&&E(c);c._.dirty=1;break;case "r":"rect"==c.type?p(m,{rx:e,ry:e}):m.setAttribute(k,e);c._.dirty=1;break;case "src":"image"==c.type&&m.setAttributeNS("http://www.w3.org/1999/xlink","href",e);break;case "stroke-width":if(1!=c._.sx||1!=c._.sy)e/=J(V(c._.sx),V(c._.sy))||1;c.paper._vbSize&&(e*=c.paper._vbSize);
m.setAttribute(k,e);b["stroke-dasharray"]&&W(c,b["stroke-dasharray"],y);c._.arrows&&("startString"in c._.arrows&&M(c,c._.arrows.startString),"endString"in c._.arrows&&M(c,c._.arrows.endString,1));break;case "stroke-dasharray":W(c,e,y);break;case "fill":var t=A(e).match(h._ISURL);if(t){var w=p("pattern"),s=p("image");w.id=h.createUUID();p(w,{x:0,y:0,patternUnits:"userSpaceOnUse",height:1,width:1});p(s,{x:0,y:0,"xlink:href":t[1]});w.appendChild(s);(function(b){h._preload(t[1],function(){var g=this.offsetWidth,
e=this.offsetHeight;p(b,{width:g,height:e});p(s,{width:g,height:e});c.paper.safari()})})(w);c.paper.defs.appendChild(w);p(m,{fill:"url(#"+w.id+")"});c.pattern=w;c.pattern&&E(c);break}l=h.getRGB(e);if(!l.error)delete y.gradient,delete b.gradient,!h.is(b.opacity,"undefined")&&h.is(y.opacity,"undefined")&&p(m,{opacity:b.opacity}),!h.is(b["fill-opacity"],"undefined")&&h.is(y["fill-opacity"],"undefined")&&p(m,{"fill-opacity":b["fill-opacity"]});else if(("circle"==c.type||"ellipse"==c.type||"r"!=A(e).charAt())&&
d(c,e)){if("opacity"in b||"fill-opacity"in b)if(l=h._g.doc.getElementById(m.getAttribute("fill").replace(/^url\(#|\)$/g,""))){var v=l.getElementsByTagName("stop");p(v[v.length-1],{"stop-opacity":("opacity"in b?b.opacity:1)*("fill-opacity"in b?b["fill-opacity"]:1)})}b.gradient=e;b.fill="none";break}l.hasOwnProperty("opacity")&&p(m,{"fill-opacity":1<l.opacity?l.opacity/100:l.opacity});case "stroke":l=h.getRGB(e);m.setAttribute(k,l.hex);"stroke"==k&&l.hasOwnProperty("opacity")&&p(m,{"stroke-opacity":1<
l.opacity?l.opacity/100:l.opacity});"stroke"==k&&c._.arrows&&("startString"in c._.arrows&&M(c,c._.arrows.startString),"endString"in c._.arrows&&M(c,c._.arrows.endString,1));break;case "gradient":"circle"!=c.type&&"ellipse"!=c.type&&"r"==A(e).charAt()||d(c,e);break;case "opacity":b.gradient&&!b.hasOwnProperty("stroke-opacity")&&p(m,{"stroke-opacity":1<e?e/100:e});case "fill-opacity":if(b.gradient){(l=h._g.doc.getElementById(m.getAttribute("fill").replace(/^url\(#|\)$/g,"")))&&(v=l.getElementsByTagName("stop"),
p(v[v.length-1],{"stop-opacity":e}));break}default:"font-size"==k&&(e=ba(e,10)+"px"),l=k.replace(/(\-.)/g,function(b){return b.substring(1).toUpperCase()}),m.style[l]=e,c._.dirty=1,m.setAttribute(k,e)}}u(c,y);m.style.visibility=g},u=function(c,d){if("text"==c.type&&(d.hasOwnProperty("text")||d.hasOwnProperty("font")||d.hasOwnProperty("font-size")||d.hasOwnProperty("x")||d.hasOwnProperty("y"))){var m=c.attrs,b=c.node,g=b.firstChild?ba(h._g.doc.defaultView.getComputedStyle(b.firstChild,"").getPropertyValue("font-size"),
10):10;if(d.hasOwnProperty("text")){for(m.text=d.text;b.firstChild;)b.removeChild(b.firstChild);for(var k=A(d.text).split("\n"),e=[],l,w=0,n=k.length;w<n;w++)l=p("tspan"),w&&p(l,{dy:1.2*g,x:m.x}),l.appendChild(h._g.doc.createTextNode(k[w])),b.appendChild(l),e[w]=l}else for(e=b.getElementsByTagName("tspan"),w=0,n=e.length;w<n;w++)w?p(e[w],{dy:1.2*g,x:m.x}):p(e[0],{dy:0});p(b,{x:m.x,y:m.y});c._.dirty=1;b=c._getBBox();(m=m.y-(b.y+b.height/2))&&h.is(m,"finite")&&p(e[0],{dy:m})}},Q=function(c,d){this[0]=
this.node=c;c.raphael=!0;this.id=h._oid++;c.raphaelid=this.id;this.matrix=h.matrix();this.realPath=null;this.paper=d;this.attrs=this.attrs||{};this._={transform:[],sx:1,sy:1,deg:0,dx:0,dy:0,dirty:1};!d.bottom&&(d.bottom=this);(this.prev=d.top)&&(d.top.next=this);d.top=this;this.next=null},P=h.el;Q.prototype=P;P.constructor=Q;h._engine.path=function(c,h){var d=p("path");h.canvas&&h.canvas.appendChild(d);d=new Q(d,h);d.type="path";I(d,{fill:"none",stroke:"#000",path:c});return d};P.rotate=function(c,
h,d){if(this.removed)return this;c=A(c).split(Y);c.length-1&&(h=v(c[1]),d=v(c[2]));c=v(c[0]);null==d&&(h=d);if(null==h||null==d)d=this.getBBox(1),h=d.x+d.width/2,d=d.y+d.height/2;this.transform(this._.transform.concat([["r",c,h,d]]));return this};P.scale=function(c,d,h,b){if(this.removed)return this;c=A(c).split(Y);c.length-1&&(d=v(c[1]),h=v(c[2]),b=v(c[3]));c=v(c[0]);null==d&&(d=c);null==b&&(h=b);if(null==h||null==b)var g=this.getBBox(1);h=null==h?g.x+g.width/2:h;b=null==b?g.y+g.height/2:b;this.transform(this._.transform.concat([["s",
c,d,h,b]]));return this};P.translate=function(c,d){if(this.removed)return this;c=A(c).split(Y);c.length-1&&(d=v(c[1]));c=v(c[0])||0;this.transform(this._.transform.concat([["t",c,+d||0]]));return this};P.transform=function(c){var d=this._;if(null==c)return d.transform;h._extractTransform(this,c);this.clip&&p(this.clip,{transform:this.matrix.invert()});this.pattern&&E(this);this.node&&p(this.node,{transform:this.matrix});if(1!=d.sx||1!=d.sy)c=this.attrs.hasOwnProperty("stroke-width")?this.attrs["stroke-width"]:
1,this.attr({"stroke-width":c});return this};P.hide=function(){!this.removed&&this.paper.safari(this.node.style.display="none");return this};P.show=function(){!this.removed&&this.paper.safari(this.node.style.display="");return this};P.remove=function(){if(!this.removed&&this.node.parentNode){var c=this.paper;c.__set__&&c.__set__.exclude(this);aa.unbind("raphael.*.*."+this.id);this.gradient&&c.defs.removeChild(this.gradient);h._tear(this,c);"a"==this.node.parentNode.tagName.toLowerCase()?this.node.parentNode.parentNode.removeChild(this.node.parentNode):
this.node.parentNode.removeChild(this.node);for(var d in this)this[d]="function"==typeof this[d]?h._removedFactory(d):null;this.removed=!0}};P._getBBox=function(){if("none"==this.node.style.display){this.show();var c=!0}var d={};try{d=this.node.getBBox()}catch(h){}finally{d=d||{}}c&&this.hide();return d};P.attr=function(c,d){if(this.removed)return this;if(null==c){var m={},b;for(b in this.attrs)this.attrs.hasOwnProperty(b)&&(m[b]=this.attrs[b]);m.gradient&&"none"==m.fill&&(m.fill=m.gradient)&&delete m.gradient;
m.transform=this._.transform;return m}if(null==d&&h.is(c,"string")){if("fill"==c&&"none"==this.attrs.fill&&this.attrs.gradient)return this.attrs.gradient;if("transform"==c)return this._.transform;b=c.split(Y);for(var m={},g=0,k=b.length;g<k;g++)c=b[g],c in this.attrs?m[c]=this.attrs[c]:h.is(this.paper.customAttributes[c],"function")?m[c]=this.paper.customAttributes[c].def:m[c]=h._availableAttrs[c];return k-1?m:m[b[0]]}if(null==d&&h.is(c,"array")){m={};g=0;for(k=c.length;g<k;g++)m[c[g]]=this.attr(c[g]);
return m}null!=d?(m={},m[c]=d):null!=c&&h.is(c,"object")&&(m=c);for(g in m)aa("raphael.attr."+g+"."+this.id,this,m[g]);for(g in this.paper.customAttributes)if(this.paper.customAttributes.hasOwnProperty(g)&&m.hasOwnProperty(g)&&h.is(this.paper.customAttributes[g],"function"))for(k in b=this.paper.customAttributes[g].apply(this,[].concat(m[g])),this.attrs[g]=m[g],b)b.hasOwnProperty(k)&&(m[k]=b[k]);I(this,m);return this};P.toFront=function(){if(this.removed)return this;"a"==this.node.parentNode.tagName.toLowerCase()?
this.node.parentNode.parentNode.appendChild(this.node.parentNode):this.node.parentNode.appendChild(this.node);var c=this.paper;c.top!=this&&h._tofront(this,c);return this};P.toBack=function(){if(this.removed)return this;var c=this.node.parentNode;"a"==c.tagName.toLowerCase()?c.parentNode.insertBefore(this.node.parentNode,this.node.parentNode.parentNode.firstChild):c.firstChild!=this.node&&c.insertBefore(this.node,this.node.parentNode.firstChild);h._toback(this,this.paper);return this};P.insertAfter=
function(c){if(this.removed)return this;var d=c.node||c[c.length-1].node;d.nextSibling?d.parentNode.insertBefore(this.node,d.nextSibling):d.parentNode.appendChild(this.node);h._insertafter(this,c,this.paper);return this};P.insertBefore=function(c){if(this.removed)return this;var d=c.node||c[0].node;d.parentNode.insertBefore(this.node,d);h._insertbefore(this,c,this.paper);return this};P.blur=function(c){if(0!==+c){var d=p("filter"),m=p("feGaussianBlur");this.attrs.blur=c;d.id=h.createUUID();p(m,{stdDeviation:+c||
1.5});d.appendChild(m);this.paper.defs.appendChild(d);this._blur=d;p(this.node,{filter:"url(#"+d.id+")"})}else this._blur&&(this._blur.parentNode.removeChild(this._blur),delete this._blur,delete this.attrs.blur),this.node.removeAttribute("filter")};h._engine.circle=function(c,d,h,b){var g=p("circle");c.canvas&&c.canvas.appendChild(g);c=new Q(g,c);c.attrs={cx:d,cy:h,r:b,fill:"none",stroke:"#000"};c.type="circle";p(g,c.attrs);return c};h._engine.rect=function(c,d,h,b,g,k){var e=p("rect");c.canvas&&
c.canvas.appendChild(e);c=new Q(e,c);c.attrs={x:d,y:h,width:b,height:g,r:k||0,rx:k||0,ry:k||0,fill:"none",stroke:"#000"};c.type="rect";p(e,c.attrs);return c};h._engine.ellipse=function(c,d,h,b,g){var k=p("ellipse");c.canvas&&c.canvas.appendChild(k);c=new Q(k,c);c.attrs={cx:d,cy:h,rx:b,ry:g,fill:"none",stroke:"#000"};c.type="ellipse";p(k,c.attrs);return c};h._engine.image=function(c,d,h,b,g,k){var e=p("image");p(e,{x:h,y:b,width:g,height:k,preserveAspectRatio:"none"});e.setAttributeNS("http://www.w3.org/1999/xlink",
"href",d);c.canvas&&c.canvas.appendChild(e);c=new Q(e,c);c.attrs={x:h,y:b,width:g,height:k,src:d};c.type="image";return c};h._engine.text=function(c,d,m,b){var g=p("text");c.canvas&&c.canvas.appendChild(g);c=new Q(g,c);c.attrs={x:d,y:m,"text-anchor":"middle",text:b,font:h._availableAttrs.font,stroke:"none",fill:"#000"};c.type="text";I(c,c.attrs);return c};h._engine.setSize=function(c,d){this.width=c||this.width;this.height=d||this.height;this.canvas.setAttribute("width",this.width);this.canvas.setAttribute("height",
this.height);this._viewBox&&this.setViewBox.apply(this,this._viewBox);return this};h._engine.create=function(){var c=h._getContainer.apply(0,arguments),d=c&&c.container,m=c.x,b=c.y,g=c.width,c=c.height;if(!d)throw Error("SVG container not found.");var k=p("svg"),e,m=m||0,b=b||0,g=g||512,c=c||342;p(k,{height:c,version:1.1,width:g,xmlns:"http://www.w3.org/2000/svg"});1==d?(k.style.cssText="overflow:hidden;position:absolute;left:"+m+"px;top:"+b+"px",h._g.doc.body.appendChild(k),e=1):(k.style.cssText=
"overflow:hidden;position:relative",d.firstChild?d.insertBefore(k,d.firstChild):d.appendChild(k));d=new h._Paper;d.width=g;d.height=c;d.canvas=k;d.clear();d._left=d._top=0;e&&(d.renderfix=function(){});d.renderfix();return d};h._engine.setViewBox=function(c,d,h,b,g){aa("raphael.setViewBox",this,this._viewBox,[c,d,h,b,g]);var k=J(h/this.width,b/this.height),e=this.top,l=g?"meet":"xMinYMin",w;null==c?(this._vbSize&&(k=1),delete this._vbSize,w="0 0 "+this.width+" "+this.height):(this._vbSize=k,w=c+" "+
d+" "+h+" "+b);for(p(this.canvas,{viewBox:w,preserveAspectRatio:l});k&&e;)l="stroke-width"in e.attrs?e.attrs["stroke-width"]:1,e.attr({"stroke-width":l}),e._.dirty=1,e._.dirtyT=1,e=e.prev;this._viewBox=[c,d,h,b,!!g];return this};h.prototype.renderfix=function(){var c=this.canvas,d=c.style,h;try{h=c.getScreenCTM()||c.createSVGMatrix()}catch(b){h=c.createSVGMatrix()}c=-h.e%1;h=-h.f%1;if(c||h)c&&(this._left=(this._left+c)%1,d.left=this._left+"px"),h&&(this._top=(this._top+h)%1,d.top=this._top+"px")};
h.prototype.clear=function(){h.eve("raphael.clear",this);for(var c=this.canvas;c.firstChild;)c.removeChild(c.firstChild);this.bottom=this.top=null;(this.desc=p("desc")).appendChild(h._g.doc.createTextNode("Created with Raphaël "+h.version));c.appendChild(this.desc);c.appendChild(this.defs=p("defs"))};h.prototype.remove=function(){aa("raphael.remove",this);this.canvas.parentNode&&this.canvas.parentNode.removeChild(this.canvas);for(var c in this)this[c]="function"==typeof this[c]?h._removedFactory(c):
null};var da=h.st,B;for(B in P)P.hasOwnProperty(B)&&!da.hasOwnProperty(B)&&(da[B]=function(c){return function(){var d=arguments;return this.forEach(function(h){h[c].apply(h,d)})}}(B))}(window.Raphael);
window.Raphael.vml&&function(h){var A=String,v=parseFloat,ba=Math,F=ba.round,J=ba.max,V=ba.min,D=ba.abs,Y=/[, ]+/,aa=h.eve,fa={M:"m",L:"l",C:"c",Z:"x",m:"t",l:"r",c:"v",z:"x"},s=/([clmz]),?([^clmz]*)/gi,p=/ progid:\S+Blur\([^\)]+\)/g,d=/-?[^,\s-]+/g,E={path:1,rect:1,image:1},M={circle:1,ellipse:1},G=function(b){var c=/[ahqstv]/ig,k=h._pathToAbsolute;A(b).match(c)&&(k=h._path2curve);c=/[clmz]/g;if(k==h._pathToAbsolute&&!A(b).match(c))return b=A(b).replace(s,function(b,c,g){var e=[],k="m"==c.toLowerCase(),
l=fa[c];g.replace(d,function(b){k&&2==e.length&&(l+=e+fa["m"==c?"l":"L"],e=[]);e.push(F(21600*b))});return l+e});var c=k(b),e;b=[];for(var l=0,m=c.length;l<m;l++){k=c[l];e=c[l][0].toLowerCase();"z"==e&&(e="x");for(var n=1,t=k.length;n<t;n++)e+=F(21600*k[n])+(n!=t-1?",":"");b.push(e)}return b.join(" ")},W=function(b,c,k){var e=h.matrix();e.rotate(-b,0.5,0.5);return{dx:e.x(c,k),dy:e.y(c,k)}},I=function(b,c,k,e,d,h){var n=b._,m=b.matrix,p=n.fillpos;b=b.node;var s=b.style,u=1,v="",y=21600/c,A=21600/k;
s.visibility="hidden";if(c&&k){b.coordsize=D(y)+" "+D(A);s.rotation=h*(0>c*k?-1:1);if(h){var B=W(h,e,d);e=B.dx;d=B.dy}0>c&&(v+="x");0>k&&(v+=" y")&&(u=-1);s.flip=v;b.coordorigin=e*-y+" "+d*-A;if(p||n.fillsize)e=(e=b.getElementsByTagName("fill"))&&e[0],b.removeChild(e),p&&(B=W(h,m.x(p[0],p[1]),m.y(p[0],p[1])),e.position=B.dx*u+" "+B.dy*u),n.fillsize&&(e.size=n.fillsize[0]*D(c)+" "+n.fillsize[1]*D(k)),b.appendChild(e);s.visibility="visible"}};h.toString=function(){return"Your browser doesn’t support SVG. Falling down to VML.\nYou are running Raphaël "+
this.version};var u=function(b,c,k){c=A(c).toLowerCase().split("-");k=k?"end":"start";for(var e=c.length,d="classic",h="medium",n="medium";e--;)switch(c[e]){case "block":case "classic":case "oval":case "diamond":case "open":case "none":d=c[e];break;case "wide":case "narrow":n=c[e];break;case "long":case "short":h=c[e]}b=b.node.getElementsByTagName("stroke")[0];b[k+"arrow"]=d;b[k+"arrowlength"]=h;b[k+"arrowwidth"]=n},Q=function(b,g){b.attrs=b.attrs||{};var k=b.node,e=b.attrs,d=k.style,m=E[b.type]&&
(g.x!=e.x||g.y!=e.y||g.width!=e.width||g.height!=e.height||g.cx!=e.cx||g.cy!=e.cy||g.rx!=e.rx||g.ry!=e.ry||g.r!=e.r),n=M[b.type]&&(e.cx!=g.cx||e.cy!=g.cy||e.r!=g.r||e.rx!=g.rx||e.ry!=g.ry),p;for(p in g)g.hasOwnProperty(p)&&(e[p]=g[p]);m&&(e.path=h._getPath[b.type](b),b._.dirty=1);g.href&&(k.href=g.href);g.title&&(k.title=g.title);g.target&&(k.target=g.target);g.cursor&&(d.cursor=g.cursor);"blur"in g&&b.blur(g.blur);if(g.path&&"path"==b.type||m)k.path=G(~A(e.path).toLowerCase().indexOf("r")?h._pathToAbsolute(e.path):
e.path),"image"==b.type&&(b._.fillpos=[e.x,e.y],b._.fillsize=[e.width,e.height],I(b,1,1,0,0,0));"transform"in g&&b.transform(g.transform);n&&(d=+e.cx,m=+e.cy,n=+e.rx||+e.r||0,p=+e.ry||+e.r||0,k.path=h.format("ar{0},{1},{2},{3},{4},{1},{4},{1}x",F(21600*(d-n)),F(21600*(m-p)),F(21600*(d+n)),F(21600*(m+p)),F(21600*d)));"clip-rect"in g&&(d=A(g["clip-rect"]).split(Y),4==d.length&&(d[2]=+d[2]+ +d[0],d[3]=+d[3]+ +d[1],m=k.clipRect||h._g.doc.createElement("div"),n=m.style,n.clip=h.format("rect({1}px {2}px {3}px {0}px)",
d),k.clipRect||(n.position="absolute",n.top=0,n.left=0,n.width=b.paper.width+"px",n.height=b.paper.height+"px",k.parentNode.insertBefore(m,k),m.appendChild(k),k.clipRect=m)),g["clip-rect"]||k.clipRect&&(k.clipRect.style.clip="auto"));b.textpath&&(d=b.textpath.style,g.font&&(d.font=g.font),g["font-family"]&&(d.fontFamily='"'+g["font-family"].split(",")[0].replace(/^['"]+|['"]+$/g,"")+'"'),g["font-size"]&&(d.fontSize=g["font-size"]),g["font-weight"]&&(d.fontWeight=g["font-weight"]),g["font-style"]&&
(d.fontStyle=g["font-style"]));"arrow-start"in g&&u(b,g["arrow-start"]);"arrow-end"in g&&u(b,g["arrow-end"],1);if(null!=g.opacity||null!=g["stroke-width"]||null!=g.fill||null!=g.src||null!=g.stroke||null!=g["stroke-width"]||null!=g["stroke-opacity"]||null!=g["fill-opacity"]||null!=g["stroke-dasharray"]||null!=g["stroke-miterlimit"]||null!=g["stroke-linejoin"]||null!=g["stroke-linecap"]){d=(d=k.getElementsByTagName("fill"))&&d[0];!d&&(d=c("fill"));"image"==b.type&&g.src&&(d.src=g.src);g.fill&&(d.on=
!0);if(null==d.on||"none"==g.fill||null===g.fill)d.on=!1;d.on&&g.fill&&((m=A(g.fill).match(h._ISURL))?(d.parentNode==k&&k.removeChild(d),d.rotate=!0,d.src=m[1],d.type="tile",n=b.getBBox(1),d.position=n.x+" "+n.y,b._.fillpos=[n.x,n.y],h._preload(m[1],function(){b._.fillsize=[this.offsetWidth,this.offsetHeight]})):(d.color=h.getRGB(g.fill).hex,d.src="",d.type="solid",h.getRGB(g.fill).error&&(b.type in{circle:1,ellipse:1}||"r"!=A(g.fill).charAt())&&P(b,g.fill,d)&&(e.fill="none",e.gradient=g.fill,d.rotate=
!1)));if("fill-opacity"in g||"opacity"in g)n=((+e["fill-opacity"]+1||2)-1)*((+e.opacity+1||2)-1)*((+h.getRGB(g.fill).o+1||2)-1),n=V(J(n,0),1),d.opacity=n,d.src&&(d.color="none");k.appendChild(d);d=k.getElementsByTagName("stroke")&&k.getElementsByTagName("stroke")[0];m=!1;!d&&(m=d=c("stroke"));if(g.stroke&&"none"!=g.stroke||g["stroke-width"]||null!=g["stroke-opacity"]||g["stroke-dasharray"]||g["stroke-miterlimit"]||g["stroke-linejoin"]||g["stroke-linecap"])d.on=!0;"none"!=g.stroke&&null!==g.stroke&&
null!=d.on&&0!=g.stroke&&0!=g["stroke-width"]||(d.on=!1);n=h.getRGB(g.stroke);d.on&&g.stroke&&(d.color=n.hex);n=((+e["stroke-opacity"]+1||2)-1)*((+e.opacity+1||2)-1)*((+n.o+1||2)-1);p=0.75*(v(g["stroke-width"])||1);n=V(J(n,0),1);null==g["stroke-width"]&&(p=e["stroke-width"]);g["stroke-width"]&&(d.weight=p);p&&1>p&&(n*=p)&&(d.weight=1);d.opacity=n;g["stroke-linejoin"]&&(d.joinstyle=g["stroke-linejoin"]||"miter");d.miterlimit=g["stroke-miterlimit"]||8;g["stroke-linecap"]&&(d.endcap="butt"==g["stroke-linecap"]?
"flat":"square"==g["stroke-linecap"]?"square":"round");g["stroke-dasharray"]&&(n={"-":"shortdash",".":"shortdot","-.":"shortdashdot","-..":"shortdashdotdot",". ":"dot","- ":"dash","--":"longdash","- .":"dashdot","--.":"longdashdot","--..":"longdashdotdot"},d.dashstyle=n.hasOwnProperty(g["stroke-dasharray"])?n[g["stroke-dasharray"]]:"");m&&k.appendChild(d)}if("text"==b.type){b.paper.canvas.style.display="";k=b.paper.span;m=e.font&&e.font.match(/\d+(?:\.\d*)?(?=px)/);d=k.style;e.font&&(d.font=e.font);
e["font-family"]&&(d.fontFamily=e["font-family"]);e["font-weight"]&&(d.fontWeight=e["font-weight"]);e["font-style"]&&(d.fontStyle=e["font-style"]);m=v(e["font-size"]||m&&m[0])||10;d.fontSize=100*m+"px";b.textpath.string&&(k.innerHTML=A(b.textpath.string).replace(/</g,"<").replace(/&/g,"&").replace(/\n/g,"<br>"));k=k.getBoundingClientRect();b.W=e.w=(k.right-k.left)/100;b.H=e.h=(k.bottom-k.top)/100;b.X=e.x;b.Y=e.y+b.H/2;("x"in g||"y"in g)&&(b.path.v=h.format("m{0},{1}l{2},{1}",F(21600*e.x),
F(21600*e.y),F(21600*e.x)+1));k="x y text font font-family font-weight font-style font-size".split(" ");d=0;for(m=k.length;d<m;d++)if(k[d]in g){b._.dirty=1;break}switch(e["text-anchor"]){case "start":b.textpath.style["v-text-align"]="left";b.bbx=b.W/2;break;case "end":b.textpath.style["v-text-align"]="right";b.bbx=-b.W/2;break;default:b.textpath.style["v-text-align"]="center",b.bbx=0}b.textpath.style["v-text-kern"]=!0}},P=function(b,c,d){b.attrs=b.attrs||{};var e=Math.pow,l="linear",m=".5 .5";b.attrs.gradient=
c;c=A(c).replace(h._radial_gradient,function(b,c,g){l="radial";c&&g&&(c=v(c),g=v(g),0.25<e(c-0.5,2)+e(g-0.5,2)&&(g=ba.sqrt(0.25-e(c-0.5,2))*(2*(0.5<g)-1)+0.5),m=c+" "+g);return""});c=c.split(/\s*\-\s*/);if("linear"==l){var n=c.shift(),n=-v(n);if(isNaN(n))return null}c=h._parseDots(c);if(!c)return null;b=b.shape||b.node;if(c.length){b.removeChild(d);d.on=!0;d.method="none";d.color=c[0].color;d.color2=c[c.length-1].color;for(var p=[],s=0,u=c.length;s<u;s++)c[s].offset&&p.push(c[s].offset+" "+c[s].color);
d.colors=p.length?p.join():"0% "+d.color;"radial"==l?(d.type="gradientTitle",d.focus="100%",d.focussize="0 0",d.focusposition=m,d.angle=0):(d.type="gradient",d.angle=(270-n)%360);b.appendChild(d)}return 1},da=function(b,c){this[0]=this.node=b;b.raphael=!0;this.id=h._oid++;b.raphaelid=this.id;this.Y=this.X=0;this.attrs={};this.paper=c;this.matrix=h.matrix();this._={transform:[],sx:1,sy:1,dx:0,dy:0,deg:0,dirty:1,dirtyT:1};!c.bottom&&(c.bottom=this);(this.prev=c.top)&&(c.top.next=this);c.top=this;this.next=
null},B=h.el;da.prototype=B;B.constructor=da;B.transform=function(b){if(null==b)return this._.transform;var c=this.paper._viewBoxShift,d=c?"s"+[c.scale,c.scale]+"-1-1t"+[c.dx,c.dy]:"",e;c&&(e=b=A(b).replace(/\.{3}|\u2026/g,this._.transform||""));h._extractTransform(this,d+b);var c=this.matrix.clone(),l=this.skew;b=this.node;var d=~A(this.attrs.fill).indexOf("-"),m=!A(this.attrs.fill).indexOf("url(");c.translate(-0.5,-0.5);m||d||"image"==this.type?(l.matrix="1 0 0 1",l.offset="0 0",l=c.split(),d&&
l.noRotation||!l.isSimple?(b.style.filter=c.toFilter(),d=this.getBBox(),l=this.getBBox(1),c=d.x-l.x,d=d.y-l.y,b.coordorigin=-21600*c+" "+-21600*d,I(this,1,1,c,d,0)):(b.style.filter="",I(this,l.scalex,l.scaley,l.dx,l.dy,l.rotate))):(b.style.filter="",l.matrix=A(c),l.offset=c.offset());e&&(this._.transform=e);return this};B.rotate=function(b,c,d){if(this.removed)return this;if(null!=b){b=A(b).split(Y);b.length-1&&(c=v(b[1]),d=v(b[2]));b=v(b[0]);null==d&&(c=d);if(null==c||null==d)d=this.getBBox(1),c=
d.x+d.width/2,d=d.y+d.height/2;this._.dirtyT=1;this.transform(this._.transform.concat([["r",b,c,d]]));return this}};B.translate=function(b,c){if(this.removed)return this;b=A(b).split(Y);b.length-1&&(c=v(b[1]));b=v(b[0])||0;c=+c||0;this._.bbox&&(this._.bbox.x+=b,this._.bbox.y+=c);this.transform(this._.transform.concat([["t",b,c]]));return this};B.scale=function(b,c,d,e){if(this.removed)return this;b=A(b).split(Y);b.length-1&&(c=v(b[1]),d=v(b[2]),e=v(b[3]),isNaN(d)&&(d=null),isNaN(e)&&(e=null));b=v(b[0]);
null==c&&(c=b);null==e&&(d=e);if(null==d||null==e)var h=this.getBBox(1);d=null==d?h.x+h.width/2:d;e=null==e?h.y+h.height/2:e;this.transform(this._.transform.concat([["s",b,c,d,e]]));this._.dirtyT=1;return this};B.hide=function(){!this.removed&&(this.node.style.display="none");return this};B.show=function(){!this.removed&&(this.node.style.display="");return this};B._getBBox=function(){return this.removed?{}:{x:this.X+(this.bbx||0)-this.W/2,y:this.Y-this.H,width:this.W,height:this.H}};B.remove=function(){if(!this.removed&&
this.node.parentNode){this.paper.__set__&&this.paper.__set__.exclude(this);h.eve.unbind("raphael.*.*."+this.id);h._tear(this,this.paper);this.node.parentNode.removeChild(this.node);this.shape&&this.shape.parentNode.removeChild(this.shape);for(var b in this)this[b]="function"==typeof this[b]?h._removedFactory(b):null;this.removed=!0}};B.attr=function(b,c){if(this.removed)return this;if(null==b){var d={},e;for(e in this.attrs)this.attrs.hasOwnProperty(e)&&(d[e]=this.attrs[e]);d.gradient&&"none"==d.fill&&
(d.fill=d.gradient)&&delete d.gradient;d.transform=this._.transform;return d}if(null==c&&h.is(b,"string")){if("fill"==b&&"none"==this.attrs.fill&&this.attrs.gradient)return this.attrs.gradient;e=b.split(Y);for(var d={},l=0,m=e.length;l<m;l++)b=e[l],b in this.attrs?d[b]=this.attrs[b]:h.is(this.paper.customAttributes[b],"function")?d[b]=this.paper.customAttributes[b].def:d[b]=h._availableAttrs[b];return m-1?d:d[e[0]]}if(this.attrs&&null==c&&h.is(b,"array")){d={};l=0;for(m=b.length;l<m;l++)d[b[l]]=this.attr(b[l]);
return d}null!=c&&(d={},d[b]=c);null==c&&h.is(b,"object")&&(d=b);for(l in d)aa("raphael.attr."+l+"."+this.id,this,d[l]);if(d){for(l in this.paper.customAttributes)if(this.paper.customAttributes.hasOwnProperty(l)&&d.hasOwnProperty(l)&&h.is(this.paper.customAttributes[l],"function"))for(m in e=this.paper.customAttributes[l].apply(this,[].concat(d[l])),this.attrs[l]=d[l],e)e.hasOwnProperty(m)&&(d[m]=e[m]);d.text&&"text"==this.type&&(this.textpath.string=d.text);Q(this,d)}return this};B.toFront=function(){!this.removed&&
this.node.parentNode.appendChild(this.node);this.paper&&this.paper.top!=this&&h._tofront(this,this.paper);return this};B.toBack=function(){if(this.removed)return this;this.node.parentNode.firstChild!=this.node&&(this.node.parentNode.insertBefore(this.node,this.node.parentNode.firstChild),h._toback(this,this.paper));return this};B.insertAfter=function(b){if(this.removed)return this;b.constructor==h.st.constructor&&(b=b[b.length-1]);b.node.nextSibling?b.node.parentNode.insertBefore(this.node,b.node.nextSibling):
b.node.parentNode.appendChild(this.node);h._insertafter(this,b,this.paper);return this};B.insertBefore=function(b){if(this.removed)return this;b.constructor==h.st.constructor&&(b=b[0]);b.node.parentNode.insertBefore(this.node,b.node);h._insertbefore(this,b,this.paper);return this};B.blur=function(b){var c=this.node.runtimeStyle,d=c.filter,d=d.replace(p,"");0!==+b?(this.attrs.blur=b,c.filter=d+" progid:DXImageTransform.Microsoft.Blur(pixelradius="+(+b||1.5)+")",c.margin=h.format("-{0}px 0 0 -{0}px",
F(+b||1.5))):(c.filter=d,c.margin=0,delete this.attrs.blur)};h._engine.path=function(b,d){var k=c("shape");k.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px";k.coordsize="21600 21600";k.coordorigin=d.coordorigin;var e=new da(k,d),h={fill:"none",stroke:"#000"};b&&(h.path=b);e.type="path";e.path=[];e.Path="";Q(e,h);d.canvas.appendChild(k);h=c("skew");h.on=!0;k.appendChild(h);e.skew=h;e.transform("");return e};h._engine.rect=function(b,c,d,e,l,m){var n=h._rectPath(c,d,e,l,m);b=b.path(n);
var p=b.attrs;b.X=p.x=c;b.Y=p.y=d;b.W=p.width=e;b.H=p.height=l;p.r=m;p.path=n;b.type="rect";return b};h._engine.ellipse=function(b,c,d,e,h){b=b.path();b.X=c-e;b.Y=d-h;b.W=2*e;b.H=2*h;b.type="ellipse";Q(b,{cx:c,cy:d,rx:e,ry:h});return b};h._engine.circle=function(b,c,d,e){b=b.path();b.X=c-e;b.Y=d-e;b.W=b.H=2*e;b.type="circle";Q(b,{cx:c,cy:d,r:e});return b};h._engine.image=function(b,c,d,e,l,m){var n=h._rectPath(d,e,l,m);b=b.path(n).attr({stroke:"none"});var p=b.attrs,s=b.node,u=s.getElementsByTagName("fill")[0];
p.src=c;b.X=p.x=d;b.Y=p.y=e;b.W=p.width=l;b.H=p.height=m;p.path=n;b.type="image";u.parentNode==s&&s.removeChild(u);u.rotate=!0;u.src=c;u.type="tile";b._.fillpos=[d,e];b._.fillsize=[l,m];s.appendChild(u);I(b,1,1,0,0,0);return b};h._engine.text=function(b,d,k,e){var l=c("shape"),m=c("path"),n=c("textpath");d=d||0;k=k||0;e=e||"";m.v=h.format("m{0},{1}l{2},{1}",F(21600*d),F(21600*k),F(21600*d)+1);m.textpathok=!0;n.string=A(e);n.on=!0;l.style.cssText="position:absolute;left:0;top:0;width:1px;height:1px";
l.coordsize="21600 21600";l.coordorigin="0 0";var p=new da(l,b),s={fill:"#000",stroke:"none",font:h._availableAttrs.font,text:e};p.shape=l;p.path=m;p.textpath=n;p.type="text";p.attrs.text=A(e);p.attrs.x=d;p.attrs.y=k;p.attrs.w=1;p.attrs.h=1;Q(p,s);l.appendChild(n);l.appendChild(m);b.canvas.appendChild(l);b=c("skew");b.on=!0;l.appendChild(b);p.skew=b;p.transform("");return p};h._engine.setSize=function(b,c){var d=this.canvas.style;this.width=b;this.height=c;b==+b&&(b+="px");c==+c&&(c+="px");d.width=
b;d.height=c;d.clip="rect(0 "+b+" "+c+" 0)";this._viewBox&&h._engine.setViewBox.apply(this,this._viewBox);return this};h._engine.setViewBox=function(b,c,d,e,l){h.eve("raphael.setViewBox",this,this._viewBox,[b,c,d,e,l]);var m=this.width,n=this.height,p=1/J(d/m,e/n),s,u;l&&(s=n/e,u=m/d,d*s<m&&(b-=(m-d*s)/2/s),e*u<n&&(c-=(n-e*u)/2/u));this._viewBox=[b,c,d,e,!!l];this._viewBoxShift={dx:-b,dy:-c,scale:p};this.forEach(function(b){b.transform("...")});return this};var c;h._engine.initWin=function(b){var d=
b.document;d.createStyleSheet().addRule(".rvml","behavior:url(#default#VML)");try{!d.namespaces.rvml&&d.namespaces.add("rvml","urn:schemas-microsoft-com:vml"),c=function(b){return d.createElement("<rvml:"+b+' class="rvml">')}}catch(h){c=function(b){return d.createElement("<"+b+' xmlns="urn:schemas-microsoft.com:vml" class="rvml">')}}};h._engine.initWin(h._g.win);h._engine.create=function(){var b=h._getContainer.apply(0,arguments),c=b.container,d=b.height,e=b.width,l=b.x,b=b.y;if(!c)throw Error("VML container not found.");
var m=new h._Paper,n=m.canvas=h._g.doc.createElement("div"),p=n.style,l=l||0,b=b||0,e=e||512,d=d||342;m.width=e;m.height=d;e==+e&&(e+="px");d==+d&&(d+="px");m.coordsize="21600000 21600000";m.coordorigin="0 0";m.span=h._g.doc.createElement("span");m.span.style.cssText="position:absolute;left:-9999em;top:-9999em;padding:0;margin:0;line-height:1;";n.appendChild(m.span);p.cssText=h.format("top:0;left:0;width:{0};height:{1};display:inline-block;position:relative;clip:rect(0 {0} {1} 0);overflow:hidden",
e,d);1==c?(h._g.doc.body.appendChild(n),p.left=l+"px",p.top=b+"px",p.position="absolute"):c.firstChild?c.insertBefore(n,c.firstChild):c.appendChild(n);m.renderfix=function(){};return m};h.prototype.clear=function(){h.eve("raphael.clear",this);this.canvas.innerHTML="";this.span=h._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};h.prototype.remove=
function(){h.eve("raphael.remove",this);this.canvas.parentNode.removeChild(this.canvas);for(var b in this)this[b]="function"==typeof this[b]?h._removedFactory(b):null;return!0};var y=h.st,m;for(m in B)B.hasOwnProperty(m)&&!y.hasOwnProperty(m)&&(y[m]=function(b){return function(){var c=arguments;return this.forEach(function(d){d[b].apply(d,c)})}}(m))}(window.Raphael);