/**/_jsload2&&_jsload2('drawbycanvas', 'function th(a){this.D=a;this.OQ={strokeweight:"lineWidth",strokecolor:"strokeStyle",fillcolor:"fillStyle",strokeopacity:"globalAlpha",fillopacity:"globalAlpha"};this.Lb="canvas"}th.prototype=new B.tz;var uh=th.prototype;uh.Ho=function(){if(!this.canvas||this.canvas&&!Ab(this.canvas)){var a=this.canvas=H("canvas");this.D.Rf().Jt.appendChild(a);a.style.position="absolute";a=a.getContext("2d");a.lineCap="round";a.lineJoin="round";a.save();this.xU(this.canvas)}return this.canvas}; uh.me=function(a,b,c){if(a&&0!==b[0].length){var d=a.getContext("2d");this.ta(a);var e=parseInt(a.style.top),f=parseInt(a.style.left);d.beginPath();x.jc.Fb(b,function(a){if(0!==a.length){d.moveTo(a[0].x-f,a[0].y-e);for(var b=1,c=a.length;b<c;b++)d.lineTo(a[b].x-f,a[b].y-e)}});this.GR(a,c);"dashed"===c.strokeStyle&&this.IR(d,b,f,e,c)}}; uh.IR=function(a,b,c,d,e){var f=this;a.beginPath();x.jc.Fb(b,function(b){if(0!==b.length){for(var i=[],k=0,l=b.length;k<l;k++)i.push({x:b[k].x-c,y:b[k].y-d});a.strokeStyle=e.strokeColor||"#3a6bdb";f.HR(a,i,{lineWidth:e.lc||5,interval:2*e.lc||10,lineLength:2*e.lc||10,strokeStyle:f.JS(a.strokeStyle,e.td)})}})}; uh.HR=function(a,b,c){for(var c=c||{},d=c.ay||10,e=c.lineWidth||5,f=c.P3||10,c=c.strokeStyle||"#3a6bdb",g=b.length-1,i=0,k=f+d,l=0,m=0;m<g;m++)var n=b[m].x,s=b[m].y,u=b[m+1].x,w=b[m+1].y,l=l+Math.sqrt((u-n)*(u-n)+(w-s)*(w-s));if(l<f)a.strokeStyle=c,a.lineWidth=e,a.lineJoin="round",a.lineCap="round",a.beginPath(),a.moveTo(b[0].x,b[0].y),a.lineTo(b[g].x,b[g].y),a.stroke();else for(l=0;l<g;l++){var n=b[l].x,s=b[l].y,u=b[l+1].x,w=b[l+1].y,m=Math.sqrt((u-n)*(u-n)+(w-s)*(w-s))+i+f,y=k-Math.abs(i);if(i<= k){var D=parseInt(m/k),C=d*(u-n)/m,F=d*(w-s)/m;xMove=f*(u-n)/m;yMove=f*(w-s)/m;startX=n+y*(u-n)/m;startY=s+y*(w-s)/m;tailX=n+(f-Math.abs(i))*(u-n)/m;tailY=s+(f-Math.abs(i))*(w-s)/m;a.beginPath();a.strokeStyle=c;a.lineJoin="round";a.lineCap="round";a.lineWidth=e;z?a.moveTo(z,A):a.moveTo(n,s);0>=i&&a.lineTo(n,s);a.lineTo(tailX,tailY);a.moveTo(startX,startY);z=0;for(A=2*D;z<A;z++)if(z%2)startX+=C,startY+=F,a.moveTo(startX,startY);else{startX+=xMove;startY+=yMove;if(0>(u-startX)*xMove)break;a.lineTo(startX, startY)}a.stroke()}var i=parseInt(m-k*D)-f,z=u-Math.abs(i)*(u-n)/m,A=w-Math.abs(i)*(w-s)/m;l===g-1&&0<i&&(a.beginPath(),a.strokeStyle=c,n=u-i*(u-n)/m,leftY=w-i*(w-s)/m,i<=f?(a.moveTo(n,leftY),a.lineTo(u,w)):(a.moveTo(n,leftY),a.moveTo(n+xMove,leftY+yMove)),a.stroke())}}; uh.JS=function(a,b){if(4===a.length)var c=parseInt(a.substr(1,1)+a.substr(1,1),16),d=parseInt(a.substr(2,1)+a.substr(2,1),16),e=parseInt(a.substr(3,1)+a.substr(3,1),16);else c=parseInt(a.substr(1,2),16),d=parseInt(a.substr(3,2),16),e=parseInt(a.substr(5,2),16);return c="rgba("+c+","+d+","+e+","+b+")"};uh.setAttribute=function(a,b,c){if(a){var d=a.getContext("2d"),e=this.gr(b);try{d[e]=c}catch(f){}a.setAttribute("_"+b,c||"");d.save()}};uh.gr=function(a){return this.OQ[a]||a}; uh.xU=function(a){var b=this.D,c=b.B.px,d=b.width+2*c,e=b.height+2*c,f=-b.offsetX-c,b=-b.offsetY-c,c=a.getContext("2d"),g={strokeStyle:c.strokeStyle,fillStyle:c.fillStyle,globalAlpha:c.globalAlpha,lineWidth:c.lineWidth,lineCap:"round",lineJoin:"round"};a.setAttribute("width",d);a.setAttribute("height",e);for(var i in g)c[i]=g[i];c.save();a=a.style;a.top=b+"px";a.left=f+"px"};uh.YQ=function(a){a.clearRect(0,0,9999,9999)}; uh.GR=function(a,b){var c=a.getContext("2d");c.globalAlpha=a.getAttribute("_fillopacity");0!==c.globalAlpha&&a.getAttribute("_fillcolor")&&c.fill();c.globalAlpha=a.getAttribute("_strokeopacity");0!==c.globalAlpha&&(a.getAttribute("_strokecolor")&&"dashed"!==b.strokeStyle)&&c.stroke()};uh.ta=function(a){var b=this.D,c=b.B.px,d=-b.offsetX-c,a=a.style;a.top=-b.offsetY-c+"px";a.left=d+"px"};B.BP=th; ');
