YUI.add("series-curve-util",function(t,r){function n(){}n.prototype={getCurveControlPoints:function(t,r){var n=[],o=1,l=t.length-1,u=[],c=[];if(l<1)return null;if(n[0]={startx:t[0],starty:r[0],endx:t[1],endy:r[1]},1==l)n[0].ctrlx1=(2*t[0]+t[1])/3,n[0].ctrly2=(2*r[0]+r[1])/3,n[0].ctrlx2=2*n[0].ctrlx1-t[0],n[0].ctrly2=2*n[0].ctrly1-r[0];else{for(;o<l;++o)n.push({startx:Math.round(t[o]),starty:Math.round(r[o]),endx:Math.round(t[o+1]),endy:Math.round(r[o+1])}),u[o]=4*t[o]+2*t[o+1],c[o]=4*r[o]+2*r[o+1];for(u[0]=t[0]+2*t[1],u[l-1]=(8*t[l-1]+t[l])/2,u=this.getControlPoints(u.concat()),c[0]=r[0]+2*r[1],c[l-1]=(8*r[l-1]+r[l])/2,c=this.getControlPoints(c.concat()),o=0;o<l;++o)n[o].ctrlx1=Math.round(u[o]),n[o].ctrly1=Math.round(c[o]),o<l-1?(n[o].ctrlx2=Math.round(2*t[o+1]-u[o+1]),n[o].ctrly2=Math.round(2*r[o+1]-c[o+1])):(n[o].ctrlx2=Math.round((t[l]+u[l-1])/2),n[o].ctrly2=Math.round((r[l]+c[l-1])/2))}return n},getControlPoints:function(t){var r=t.length,n=[],o=[],l=2,u=1;for(n[0]=t[0]/l;u<r;++u)o[u]=1/l,n[u]=(t[u]-n[u-1])/(l=(u<r-1?4:3.5)-o[u]);for(u=1;u<r;++u)n[r-u-1]-=o[r-u]*n[r-u];return n}},t.CurveUtil=n},"patched-v3.18.7");