document.createElement("canvas").getContext||function(){function I(){return this.context_||(this.context_=new w(this))}function J(a,b,d){var c=A.call(arguments,2);return function(){return a.apply(b,c.concat(A.call(arguments)))}}function K(a){var b=a.srcElement;switch(a.propertyName){case "width":b.style.width=b.attributes.width.nodeValue+"px";b.getContext().clearRect();break;case "height":b.style.height=b.attributes.height.nodeValue+"px",b.getContext().clearRect()}}function L(a){a=a.srcElement;if(a.firstChild)a.firstChild.style.width=
a.clientWidth+"px",a.firstChild.style.height=a.clientHeight+"px"}function x(){return[[1,0,0],[0,1,0],[0,0,1]]}function n(a,b){for(var d=x(),c=0;c<3;c++)for(var f=0;f<3;f++){for(var B=0,e=0;e<3;e++)B+=a[c][e]*b[e][f];d[c][f]=B}return d}function C(a,b){b.fillStyle=a.fillStyle;b.lineCap=a.lineCap;b.lineJoin=a.lineJoin;b.lineWidth=a.lineWidth;b.miterLimit=a.miterLimit;b.shadowBlur=a.shadowBlur;b.shadowColor=a.shadowColor;b.shadowOffsetX=a.shadowOffsetX;b.shadowOffsetY=a.shadowOffsetY;b.strokeStyle=a.strokeStyle;
b.globalAlpha=a.globalAlpha;b.arcScaleX_=a.arcScaleX_;b.arcScaleY_=a.arcScaleY_;b.lineScale_=a.lineScale_}function D(a){var b,d=1,a=String(a);if(a.substring(0,3)=="rgb"){b=a.indexOf("(",3);var c=a.indexOf(")",b+1),c=a.substring(b+1,c).split(",");b="#";for(var f=0;f<3;f++)b+=E[Number(c[f])];c.length==4&&a.substr(3,1)=="a"&&(d=c[3])}else b=a;return{color:b,alpha:d}}function M(a){switch(a){case "butt":return"flat";case "round":return"round";default:return"square"}}function w(a){this.m_=x();this.mStack_=
[];this.aStack_=[];this.currentPath_=[];this.fillStyle=this.strokeStyle="#000";this.lineWidth=1;this.lineJoin="miter";this.lineCap="butt";this.miterLimit=j*1;this.globalAlpha=1;this.canvas=a;var b=a.ownerDocument.createElement("div");b.style.width=a.clientWidth+"px";b.style.height=a.clientHeight+"px";b.style.overflow="hidden";b.style.position="absolute";a.appendChild(b);this.element_=b;this.lineScale_=this.arcScaleY_=this.arcScaleX_=1}function F(a,b,d,c){a.currentPath_.push({type:"bezierCurveTo",
cp1x:b.x,cp1y:b.y,cp2x:d.x,cp2y:d.y,x:c.x,y:c.y});a.currentX_=c.x;a.currentY_=c.y}function q(a,b,d){var c;a:{for(c=0;c<3;c++)for(var f=0;f<2;f++)if(!isFinite(b[c][f])||isNaN(b[c][f])){c=!1;break a}c=!0}if(c&&(a.m_=b,d))a.lineScale_=N(O(b[0][0]*b[1][1]-b[0][1]*b[1][0]))}function u(a){this.type_=a;this.r1_=this.y1_=this.x1_=this.r0_=this.y0_=this.x0_=0;this.colors_=[]}function G(){}var s=Math,h=s.round,y=s.sin,z=s.cos,O=s.abs,N=s.sqrt,j=10,r=j/2,A=Array.prototype.slice,H={init:function(a){/MSIE/.test(navigator.userAgent)&&
!window.opera&&(a=a||document,a.createElement("canvas"),a.readyState!=="complete"?a.attachEvent("onreadystatechange",J(this.init_,this,a)):this.init_(a))},init_:function(a){a.namespaces.g_vml_||a.namespaces.add("g_vml_","urn:schemas-microsoft-com:vml","#default#VML");a.namespaces.g_o_||a.namespaces.add("g_o_","urn:schemas-microsoft-com:office:office","#default#VML");if(!a.styleSheets.ex_canvas_){var b=a.createStyleSheet();b.owningElement.id="ex_canvas_";b.cssText="canvas{display:inline-block;overflow:hidden;text-align:left;width:300px;height:150px}g_vml_\\:*{behavior:url(#default#VML)}g_o_\\:*{behavior:url(#default#VML)}"}a=
a.getElementsByTagName("canvas");for(b=0;b<a.length;b++)this.initElement(a[b])},initElement:function(a){if(!a.getContext){a.getContext=I;a.innerHTML="";a.attachEvent("onpropertychange",K);a.attachEvent("onresize",L);var b=a.attributes;b.width&&b.width.specified?a.style.width=b.width.nodeValue+"px":a.width=a.clientWidth;b.height&&b.height.specified?a.style.height=b.height.nodeValue+"px":a.height=a.clientHeight}return a}};H.init();for(var E=[],e=0;e<16;e++)for(var v=0;v<16;v++)E[e*16+v]=e.toString(16)+
v.toString(16);e=w.prototype;e.clearRect=function(){this.element_.innerHTML=""};e.beginPath=function(){this.currentPath_=[]};e.moveTo=function(a,b){var d=this.getCoords_(a,b);this.currentPath_.push({type:"moveTo",x:d.x,y:d.y});this.currentX_=d.x;this.currentY_=d.y};e.lineTo=function(a,b){var d=this.getCoords_(a,b);this.currentPath_.push({type:"lineTo",x:d.x,y:d.y});this.currentX_=d.x;this.currentY_=d.y};e.bezierCurveTo=function(a,b,d,c,f,e){f=this.getCoords_(f,e);a=this.getCoords_(a,b);d=this.getCoords_(d,
c);F(this,a,d,f)};e.quadraticCurveTo=function(a,b,d,c){a=this.getCoords_(a,b);d=this.getCoords_(d,c);c={x:this.currentX_+2/3*(a.x-this.currentX_),y:this.currentY_+2/3*(a.y-this.currentY_)};F(this,c,{x:c.x+(d.x-this.currentX_)/3,y:c.y+(d.y-this.currentY_)/3},d)};e.arc=function(a,b,d,c,f,e){d*=j;var k=e?"at":"wa",h=a+z(c)*d-r,i=b+y(c)*d-r,c=a+z(f)*d-r,f=b+y(f)*d-r;h==c&&!e&&(h+=0.125);a=this.getCoords_(a,b);h=this.getCoords_(h,i);c=this.getCoords_(c,f);this.currentPath_.push({type:k,x:a.x,y:a.y,radius:d,
xStart:h.x,yStart:h.y,xEnd:c.x,yEnd:c.y})};e.rect=function(a,b,d,c){this.moveTo(a,b);this.lineTo(a+d,b);this.lineTo(a+d,b+c);this.lineTo(a,b+c);this.closePath()};e.strokeRect=function(a,b,d,c){var f=this.currentPath_;this.beginPath();this.moveTo(a,b);this.lineTo(a+d,b);this.lineTo(a+d,b+c);this.lineTo(a,b+c);this.closePath();this.stroke();this.currentPath_=f};e.fillRect=function(a,b,d,c){var f=this.currentPath_;this.beginPath();this.moveTo(a,b);this.lineTo(a+d,b);this.lineTo(a+d,b+c);this.lineTo(a,
b+c);this.closePath();this.fill();this.currentPath_=f};e.createLinearGradient=function(a,b,d,c){var f=new u("gradient");f.x0_=a;f.y0_=b;f.x1_=d;f.y1_=c;return f};e.createRadialGradient=function(a,b,d,c,f,e){var h=new u("gradientradial");h.x0_=a;h.y0_=b;h.r0_=d;h.x1_=c;h.y1_=f;h.r1_=e;return h};e.drawImage=function(a,b){var d,c,f,e,k,o,i,g;f=a.runtimeStyle.width;e=a.runtimeStyle.height;a.runtimeStyle.width="auto";a.runtimeStyle.height="auto";var l=a.width,p=a.height;a.runtimeStyle.width=f;a.runtimeStyle.height=
e;if(arguments.length==3)d=arguments[1],c=arguments[2],k=o=0,i=f=l,g=e=p;else if(arguments.length==5)d=arguments[1],c=arguments[2],f=arguments[3],e=arguments[4],k=o=0,i=l,g=p;else if(arguments.length==9)k=arguments[1],o=arguments[2],i=arguments[3],g=arguments[4],d=arguments[5],c=arguments[6],f=arguments[7],e=arguments[8];else throw Error("Invalid number of arguments");var m=this.getCoords_(d,c),t=[];t.push(" <g_vml_:group",' coordsize="',j*10,",",j*10,'"',' coordorigin="0,0"',' style="width:',10,
"px;height:",10,"px;position:absolute;");if(this.m_[0][0]!=1||this.m_[0][1]){var r=[];r.push("M11=",this.m_[0][0],",","M12=",this.m_[1][0],",","M21=",this.m_[0][1],",","M22=",this.m_[1][1],",","Dx=",h(m.x/j),",","Dy=",h(m.y/j),"");var n=this.getCoords_(d+f,c),q=this.getCoords_(d,c+e);d=this.getCoords_(d+f,c+e);m.x=s.max(m.x,n.x,q.x,d.x);m.y=s.max(m.y,n.y,q.y,d.y);t.push("padding:0 ",h(m.x/j),"px ",h(m.y/j),"px 0;filter:progid:DXImageTransform.Microsoft.Matrix(",r.join(""),", sizingmethod='clip');")}else t.push("top:",
h(m.y/j),"px;left:",h(m.x/j),"px;");t.push(' ">','<g_vml_:image src="',a.src,'"',' style="width:',j*f,"px;"," height:",j*e,'px;"',' cropleft="',k/l,'"',' croptop="',o/p,'"',' cropright="',(l-k-i)/l,'"',' cropbottom="',(p-o-g)/p,'"'," />","</g_vml_:group>");this.element_.insertAdjacentHTML("BeforeEnd",t.join(""))};e.stroke=function(a){var b=[],d=D(a?this.fillStyle:this.strokeStyle),c=d.color,d=d.alpha*this.globalAlpha;b.push("<g_vml_:shape",' filled="',!!a,'"',' style="position:absolute;width:',10,
"px;height:",10,'px;"',' coordorigin="0 0" coordsize="',j*10," ",j*10,'"',' stroked="',!a,'"',' path="');for(var f=null,e=null,k=null,o=null,i=0;i<this.currentPath_.length;i++){var g=this.currentPath_[i];switch(g.type){case "moveTo":b.push(" m ",h(g.x),",",h(g.y));break;case "lineTo":b.push(" l ",h(g.x),",",h(g.y));break;case "close":b.push(" x ");g=null;break;case "bezierCurveTo":b.push(" c ",h(g.cp1x),",",h(g.cp1y),",",h(g.cp2x),",",h(g.cp2y),",",h(g.x),",",h(g.y));break;case "at":case "wa":b.push(" ",
g.type," ",h(g.x-this.arcScaleX_*g.radius),",",h(g.y-this.arcScaleY_*g.radius)," ",h(g.x+this.arcScaleX_*g.radius),",",h(g.y+this.arcScaleY_*g.radius)," ",h(g.xStart),",",h(g.yStart)," ",h(g.xEnd),",",h(g.yEnd))}if(g){if(f==null||g.x<f)f=g.x;if(k==null||g.x>k)k=g.x;if(e==null||g.y<e)e=g.y;if(o==null||g.y>o)o=g.y}}b.push(' ">');if(a)if(typeof this.fillStyle=="object"){var c=this.fillStyle,l=0,g=d=a=0,p=1;c.type_=="gradient"?(l=c.x1_/this.arcScaleX_,f=c.y1_/this.arcScaleY_,i=this.getCoords_(c.x0_/this.arcScaleX_,
c.y0_/this.arcScaleY_),l=this.getCoords_(l,f),l=Math.atan2(l.x-i.x,l.y-i.y)*180/Math.PI,l<0&&(l+=360),l<1.0E-6&&(l=0)):(i=this.getCoords_(c.x0_,c.y0_),g=k-f,p=o-e,a=(i.x-f)/g,d=(i.y-e)/p,g/=this.arcScaleX_*j,p/=this.arcScaleY_*j,i=s.max(g,p),g=2*c.r0_/i,p=2*c.r1_/i-g);f=c.colors_;f.sort(function(a,b){return a.offset-b.offset});for(var e=f.length,o=f[0].color,k=f[e-1].color,m=f[0].alpha*this.globalAlpha,r=f[e-1].alpha*this.globalAlpha,n=[],i=0;i<e;i++){var q=f[i];n.push(q.offset*p+g+" "+q.color)}b.push('<g_vml_:fill type="',
c.type_,'"',' method="none" focus="100%"',' color="',o,'"',' color2="',k,'"',' colors="',n.join(","),'"',' opacity="',r,'"',' g_o_:opacity2="',m,'"',' angle="',l,'"',' focusposition="',a,",",d,'" />')}else b.push('<g_vml_:fill color="',c,'" opacity="',d,'" />');else a=this.lineScale_*this.lineWidth,a<1&&(d*=a),b.push("<g_vml_:stroke",' opacity="',d,'"',' joinstyle="',this.lineJoin,'"',' miterlimit="',this.miterLimit,'"',' endcap="',M(this.lineCap),'"',' weight="',a,'px"',' color="',c,'" />');b.push("</g_vml_:shape>");
this.element_.insertAdjacentHTML("beforeEnd",b.join(""))};e.fill=function(){this.stroke(!0)};e.closePath=function(){this.currentPath_.push({type:"close"})};e.getCoords_=function(a,b){var d=this.m_;return{x:j*(a*d[0][0]+b*d[1][0]+d[2][0])-r,y:j*(a*d[0][1]+b*d[1][1]+d[2][1])-r}};e.save=function(){var a={};C(this,a);this.aStack_.push(a);this.mStack_.push(this.m_);this.m_=n(x(),this.m_)};e.restore=function(){C(this.aStack_.pop(),this);this.m_=this.mStack_.pop()};e.translate=function(a,b){q(this,n([[1,
0,0],[0,1,0],[a,b,1]],this.m_),!1)};e.rotate=function(a){var b=z(a),a=y(a);q(this,n([[b,a,0],[-a,b,0],[0,0,1]],this.m_),!1)};e.scale=function(a,b){this.arcScaleX_*=a;this.arcScaleY_*=b;q(this,n([[a,0,0],[0,b,0],[0,0,1]],this.m_),!0)};e.transform=function(a,b,d,c,f,e){q(this,n([[a,b,0],[d,c,0],[f,e,1]],this.m_),!0)};e.setTransform=function(a,b,d,c,e,h){q(this,[[a,b,0],[d,c,0],[e,h,1]],!0)};e.drawText_=function(a,b,d,c,e){var n=this.m_,c=0,k=1E3,o=0,i=[],g=getComputedStyle(processFontStyle(this.font),
this.element_),l=buildStyle(g),p=this.element_.currentStyle,m=this.textAlign.toLowerCase();switch(m){case "left":case "center":case "right":break;case "end":m=p.direction=="ltr"?"right":"left";break;case "start":m=p.direction=="rtl"?"right":"left";break;default:m="left"}switch(this.textBaseline){case "hanging":case "top":o=g.size/1.75;break;case "middle":break;default:case null:case "alphabetic":case "ideographic":case "bottom":o=-g.size/2.25}switch(m){case "right":c=1E3;k=0.05;break;case "center":c=
k=500}b=getCoords(this,b+0,d+o);i.push('<g_vml_:line from="',-c,' 0" to="',k,' 0.05" ',' coordsize="100 100" coordorigin="0 0"',' filled="',!e,'" stroked="',!!e,'" style="position:absolute;width:1px;height:1px;">');e?appendStroke(this,i):appendFill(this,i,{x:-c,y:0},{x:k,y:g.size});e=n[0][0].toFixed(3)+","+n[1][0].toFixed(3)+","+n[0][1].toFixed(3)+","+n[1][1].toFixed(3)+",0,0";b=h(b.x/j)+","+h(b.y/j);i.push('<g_vml_:skew on="t" matrix="',e,'" ',' offset="',b,'" origin="',c,' 0" />','<g_vml_:path textpathok="true" />',
'<g_vml_:textpath on="true" string="',encodeHtmlAttribute(a),'" style="v-text-align:',m,";font:",encodeHtmlAttribute(l),'" /></g_vml_:line>');this.element_.insertAdjacentHTML("beforeEnd",i.join(""))};e.fillText=function(a,b,d,c){this.drawText_(a,b,d,c,!1)};e.strokeText=function(a,b,d,c){this.drawText_(a,b,d,c,!0)};e.measureText=function(a){if(!this.textMeasureEl_)this.element_.insertAdjacentHTML("beforeEnd",'<span style="position:absolute;top:-20000px;left:0;padding:0;margin:0;border:none;white-space:pre;"></span>'),
this.textMeasureEl_=this.element_.lastChild;var b=this.element_.ownerDocument;this.textMeasureEl_.innerHTML="";this.textMeasureEl_.style.font=this.font;this.textMeasureEl_.appendChild(b.createTextNode(a));return{width:this.textMeasureEl_.offsetWidth}};e.clip=function(){};e.arcTo=function(){};e.createPattern=function(){return new G};u.prototype.addColorStop=function(a,b){b=D(b);this.colors_.push({offset:a,color:b.color,alpha:b.alpha})};G_vmlCanvasManager=H;CanvasRenderingContext2D=w;CanvasGradient=
u;CanvasPattern=G}();

