You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1 line
16 KiB

/**/_jsload2 && _jsload2('newvectordrawlib', 'function Jg(a){this.JI=o;this.k=x.object.extend(a||{},{Gh:o});Hd.call(this,this.k);this.Dg={};this.loaded=q;this.du=p;this.CC=q}Jg.prototype=new Hd; Jg.prototype.ra=function(a){if(!this.loaded){this.loaded=o;var b=this;b.map=a;b.fb=b.map.fb;b.map=a;this.xb=this.map.oa();this.Ob=this.xb.k.Ob;this.Ac=this.map.B.devicePixelRatio;b.Ax=q;b.eL=p;b.Se=b.k.style||"normal";b.En=b.k.styleStr||p;b.Dq=200;b.De=p;b.de=0;b.zb=this.fb.fo(0);b.fb.nd.appendChild(this.zb);b.fb.zb=b.zb;b.Ib=new B.NewVectorDrawLib(a);b.Ib.Ob=this.xb.k.Ob;b.Is="";b.Ib.RC=b.Se;b.nm();b.Se&&"normal"!==b.Se||b.En&&0<b.En.length?b.mu(b.Se,b.En,function(){b.map.addEventListener("click", function(a){b.de++;if(1===b.de)b.De=setTimeout(function(){b.Qu(a);b.de=0},b.Dq);else return clearTimeout(b.De),b.de=0,q});b.zb.innerHTML="";b.ee(o)}):(b.ee(),b.map.addEventListener("click",function(a){b.de++;if(1===b.de)a.cb||(b.De=setTimeout(function(){b.Qu(a);b.de=0},b.Dq));else return clearTimeout(b.De),b.de=0,q}));b.map.B.pj&&(J()&&b.Hf==k)&&(b.Hf=new B.bH(b.map),b.map.Ka(b.Hf))}}; x.extend(Jg.prototype,{nm:function(){var a=this;setTimeout(function(){a.map.addEventListener("moveend",function(b){"centerAndZoom"!=b.TH&&a.ee()});a.map.addEventListener("zoomend",function(){a.Ax=q;a.ee()});a.map.addEventListener("onresize",function(){a.ee()});Xa()&&(a.map.addEventListener("onmoving",function(){a.ee()}),a.map.addEventListener("onmaptypechange",function(){a.ee()}));a.map.addEventListener("mousemove",function(b){a.map.Wb()&&a.iD(b)})},1);a.map.addEventListener("setcustomstyles",function(b){a.SC(b.target)})}, mu:function(a,b,c){if(this.map.Wb()){var d=this,e=B.jc+"custom/",f;b&&0<b.length?(f="setStyle_"+b.length,e+="mapstyle?styles="+encodeURIComponent(b)):(f="setStyle_"+a,e+="getstyle?customid="+a);f+=this.map.ba;window[f]=function(b,e){var j=x.extend({},d.Ib.Yz);d.Ib.Eb=x.extend(j,b);j=B.Cb.we(d.Ib.Eb["3181"][1]);d.map.B.Wo=j;d.map.Ga().style.backgroundColor=j;c(a);d.map.dispatchEvent(new N("onsetmapstylesuccess",e));delete window[f]};sa(e+("&callback="+f+"&udt=20150526"),q)}},kq:function(a){var b=this; b.mu(a.style,a.styleStr,function(a){b.Se=a;b.Ib.RC=b.Se;var a=b.Ib.jt,d;for(d in a)delete a[d];b.GF()})},ee:function(){this.map.ga();this.map.Wb()?(this.zb.style.display="block",this.Ib.$s(this.Rm())):(this.zb.style.display="none",this.zb.innerHTML="")},Rm:function(){var a=this.map,b=this.xb,c=a.ga(),d=a.dc,e=b.yc(c),f=b.GE(c),b=a.ba.replace(/^TANGRAM_/,""),g=Math.ceil(d.lng/f);column=Math.ceil(d.lat/f);var i=this.Ob,j=[g,column,(d.lng-g*f)/f*i,(d.lat-column*f)/f*i],f=j[0]-Math.ceil((a.width/2-j[2])/ i),l=j[1]-Math.ceil((a.height/2-j[3])/i),m=j[0]+Math.ceil((a.width/2+j[2])/i),n=j[1]+Math.ceil((a.height/2+j[3])/i);for(this.Rc?this.Rc.length=0:this.Rc=[];f<m;f++)for(g=l;g<n;g++)this.Rc.push([f,g]);this.Rc.sort(function(a){return function(b,c){return 0.4*Math.abs(b[0]-a[0])+0.6*Math.abs(b[1]-a[1])-(0.4*Math.abs(c[0]-a[0])+0.6*Math.abs(c[1]-a[1]))}}([j[0]-1,j[1]-1]));d=[Math.round(-d.lng/e),Math.round(d.lat/e)];f=-a.offsetY+a.height/2;e=this.zb;e.style.left=-a.offsetX+a.width/2+"px";e.style.top= f+"px";this.Oe?this.Oe.length=0:this.Oe=[];f=0;for(a=e.childNodes.length;f<a;f++)g=e.childNodes[f],g.Hr=q,this.Oe.push(g);if(f=this.hn)for(var s in f)delete f[s];else this.hn={};this.Pe?this.Pe.length=0:this.Pe=[];f=0;for(a=this.Rc.length;f<a;f++){s=this.Rc[f][0];j=this.Rc[f][1];g=0;for(l=this.Oe.length;g<l;g++)if(m=this.Oe[g],m.id==b+"_"+s+"_"+j+"_"+c){m.Hr=o;this.hn[m.id]=m;break}}f=0;for(a=this.Oe.length;f<a;f++)m=this.Oe[f],m.Hr||(m.be=p,delete m.be,this.Pe.push(m));this.Gn=[];g=i*this.Ac;f=0; for(a=this.Rc.length;f<a;f++)s=this.Rc[f][0],j=this.Rc[f][1],l=s*i+d[0],m=(-1-j)*i+d[1],n=b+"_"+s+"_"+j+"_"+c,cvs=this.hn[n],cvsStyle=p,cvs?(cvsStyle=cvs.style,cvsStyle.left=l+"px",cvsStyle.top=m+"px",cvs.af||(cvs.be=p,delete cvs.be,this.Gn.push([s,j,cvs]))):(0<this.Pe.length?(cvs=this.Pe.shift(),cvs.getContext("2d").clearRect(0,0,g,g),cvsStyle=cvs.style):(cvs=document.createElement("canvas"),cvsStyle=cvs.style,cvsStyle.position="absolute",cvsStyle.background="#F5F3F0",cvsStyle.width=i+"px",cvsStyle.height= i+"px",this.qy()&&(cvsStyle.WebkitTransform="scale(1.001)"),cvs.setAttribute("width",g),cvs.setAttribute("height",g),e.appendChild(cvs)),cvs.id=n,cvsStyle.left=l+"px",cvsStyle.top=m+"px",this.Gn.push([s,j,cvs])),cvs.style.visibility="";f=0;for(a=this.Pe.length;f<a;f++)this.Pe[f].style.visibility="hidden";return this.Gn},GF:function(){for(var a=this.zb,b=0,c=a.childNodes.length;b<c;b++)a.childNodes[b].af=q;this.ee()},Qu:function(a){this.map.B.pj&&(a=this.Rs(a),this.map.B.Zw?this.map.B.Zw(a):this.Mb(a))}, Mb:function(a){a?(Xa()&&this.wA(a),J()&&this.Hf&&this.Hf.switchTo(a)):J()&&this.Hf&&this.Hf.U()},iD:function(a){this.map.B.pj&&(this.Rs(a)?(this.map.platform.style.cursor="pointer",this.map.R.ty=o):(this.map.R.ty=q,this.map.platform.style.cursor!=this.map.B.Xb&&0==this.map.R.Re.length&&(this.map.platform.style.cursor=this.map.B.Xb)))},wA:function(a){var b=a.uid;if(b){var c=this;de.eb(function(d){c.DH(b,d,a)},{qt:"inf",uid:b,operate:"mapclick",clicktype:"vector"})}},DH:function(a,b,c){var d=this;if(b&& b.content){var e=b.content,f=e.pano||0,c=d.map.Rb(c.point);if(!g)var g={};g.isFromMPC=o;var i=e.addr,g=e.street_id||"";if(1==e.poiType||3==e.poiType)i=Q.unique(i.split(";")).join("; ");var j=e.tel;j&&(j=j.replace(/,/g,", "));d.vr(e.cla);var l=H("div",{style:"font-size:12px;padding:5px 0;overflow:hidden;*zoom:1;"}),b=q;f&&(360>d.map.height?b=o:(f=[],f.push("<div class=\'panoInfoBox\' id=\'panoInfoBox\' title=\'"+e.name+"\\u5916\\u666f\' title=\'\\u67e5\\u770b\\u5168\\u666f\' >"),f.push("<img filter = \'pano_thumnail_img\' class=\'pano_thumnail_img\' width=323 height=101 border=\'0\' alt=\'"+ e.name+"\\u5916\\u666f\' src=\'"+(B.url.proto+B.url.domain.pano[0]+"/pr/?qt=poiprv&uid="+g+"&width=323&height=101&quality=80&fovx=200")+"\' id=\'pano_"+a+"\'/>"),f.push("<div filter = \'panoInfoBoxTitleBg\' class=\'panoInfoBoxTitleBg\'></div><a href=\'javascript:void(0)\' filter=\'panoInfoBoxTitleContent\' class=\'panoInfoBoxTitleContent\' >\\u8fdb\\u5165\\u5168\\u666f&gt;&gt;</a>"),f.push("</div>"),l.innerHTML=f.join("")));i&&(f=H("p",{style:"padding:0;margin:0;line-height:18px;font-size:12px;color:#4d4d4d;"}),f.innerHTML= "\\u5730\\u5740\\uff1a"+i,l.appendChild(f));j&&(f=H("p",{style:"padding:0;margin:0;line-height:18px;font-size:12px;color:#4d4d4d;"}),f.innerHTML="\\u7535\\u8bdd\\uff1a"+j,l.appendChild(f));e.tag&&(j=H("p",{style:"padding:0;margin:0;line-height:18px;font-size:12px;color:#4d4d4d;color:#7f7f7f;"}),j.innerHTML="\\u6807\\u7b7e\\uff1a"+e.tag,l.appendChild(j));a="http://api.map.baidu.com/place/detail?uid="+a+"&output=html&source=jsapi&operate=mapclick&clicktype=vector";j="<div style=\'height:26px;\'><a href=\'"+a+"\' target=\'_blank\' style=\'font-size:14px;color:#4d4d4d;font-weight:bold;text-decoration:none;\' onmouseover=\'this.style.textDecoration=\\"underline\\";this.style.color=\\"#3d6dcc\\"\' onmouseout =\'this.style.textDecoration=\\"none\\";this.style.color=\\"#4d4d4d\\"\'>"+ e.name+"</a>";a=new td(l,{width:322,enableSearchTool:o,title:j+("<a href=\'"+a+"\' target=\'_blank\' style=\'font-size:12px;color:#3d6dcc;margin-left:5px;text-decoration:none;\' onmouseover=\'this.style.textDecoration=\\"underline\\"\' onmouseout =\'this.style.textDecoration=\\"none\\"\'>\\u8be6\\u60c5&raquo;</a>")+"</div>",enableParano:b});b&&(a.street_id=g);a.addEventListener("open",function(){var a=x.$("panoInfoBox");if(a){var b=e.street_id||"";Ub(function(){Ta(5052);d.cr(b)},a,"pano_thumnail_img|panoInfoBoxTitleBg|panoInfoBoxTitleContent")}}); this.map.Mb(a,c)}},cr:function(a){var b=B.Sf("pano","scape/")[0],c=this,d=(new Date).getTime(),e="Pano"+d;B[e]=function(a){var b=c.map.Km(),a=a.content[0];b.rc(a.poiinfo.PID);b.show();b.Nc({heading:a.poiinfo.Dir,pitch:a.poiinfo.Pitch})};d=(new Date).getTime();sa(b+("?qt=poi&udt=20131021&uid="+a+"&t="+d+"&fn=BMap."+e),q)},vr:function(a){for(var b=[],c=0,d=a.length;c<d;c++)b.push(a[c][1]),c<d-1&&b.push(", ");return b.join("")},Rs:function(a){var b=this.zb.getElementsByTagName("canvas"),c=a.offsetX, d=a.offsetY,e=k,f=k;this.map.vb();for(var f=this.map.oa().k.Ob,g=0,i=b.length;g<i;g++){var j=this.Qf(b[g]);if(c>j.left&&c<=j.left+f&&d>j.top&&d<=j.top+f){e=b[g];break}}if(e==k||e.be==k)return q;f=e.be;b=0;for(i=f.length;b<i;b++){var c=f[b],d=c[0],g=c[1],l=this.Ib.Eb[c[3]]||window.Eb[c[3]],m=l[0],l=this.Ib.wt(l,this.Ib.Eb[c[4]]||window.Eb[c[4]])[1],n=c[5]||{};if(l==k||"empty"==l)break;if(2!=m&&(3!=m&&4!=m&&0<l.length&&n.u)&&(iconX=g[0]+j.left,iconY=g[1]+j.top,a.offsetX>=iconX-15&&a.offsetX<=iconX+ 15&&a.offsetY>=iconY-15&&a.offsetY<=iconY+15))return{type:c[5].c||"",name:d,uid:n.u||"",point:{x:iconX,y:iconY},clickFea:{tileId:e.id,tile:e,fea:c}}}return q},qy:function(){return/M040/i.test(navigator.userAgent)},Qf:function(a){for(var b=a.offsetLeft,c=a.offsetTop,a=a.offsetParent;a&&a!=this.map.Ga();)b+=a.offsetLeft,c+=a.offsetTop,a=a.offsetParent;return{top:c,left:b}},SC:function(a){if(this.map.Wb()){this.map.oa().k.Zb=18;var a=this.du=a,b;for(b in a)switch(b){case "style":this.kq(a);break;case "styleStr":this.kq(a); break;case "features":this.zO(a[b]);break;case "poiElements":this.HO(a[b])}}},HE:function(){this.Nu();"dark"==this.Se?x.K.Ta(this.zb,"light_gray_background"):x.K.Ta(this.zb,"gray_background")},Nu:function(){x.K.Tb(this.zb,"gray_background");x.K.Tb(this.zb,"light_gray_background")}});window.VectorLayer=Jg;var Kg=1,Lg=2,Mg=3,Ng=4,Og=5; function Pg(a){this.Zm=q;this.Jt=[B.url.proto+B.url.domain.TILE_ONLINE_URLS[1]+"/"];this.zG=[B.url.proto+B.url.domain.TILE_ONLINE_URLS[0]+"/gvd/?",B.url.proto+B.url.domain.TILE_ONLINE_URLS[1]+"/gvd/?",B.url.proto+B.url.domain.TILE_ONLINE_URLS[2]+"/gvd/?",B.url.proto+B.url.domain.TILE_ONLINE_URLS[3]+"/gvd/?"];this.fb=p;this.yk={};this.map=a;this.Ze=this.nj=0;this.hi=p;this.Eb=window.Eb;this.Yz=x.extend({},window.Eb);this.um={dark:{backColor:"#2D2D2D",textColor:"#bfbfbf",iconUrl:"vector/dicons"},normal:{backColor:"#F3F1EC", textColor:"#c61b1b",iconUrl:"vector/nicons_hd"},light:{backColor:"#EBF8FC",textColor:"#017fb4",iconUrl:"vector/licons"}};this.jt={};this.Lp=o;this.vk=p;this.om=/.*GT-I9300.*Version\\/\\d+.*Safari\\/\\d+\\.\\d+$/ig.test(navigator.userAgent)||/baiduboxapp/ig.test(navigator.userAgent)} Pg.prototype={$s:function(a){var b=this.map,c=b.ga();this.Ze=a.length;this.nj=0;this.Ac=this.map.B.devicePixelRatio;this.Uz=this.Vz=this.Tz=this.hv=0;b=b.wc();new K(b.lng,b.lat);this.map.dispatchEvent(new N("onvectorbegin"));for(var b=0,d=this.Ze;b<d;b++){var e=a[b][2],f=a[b][0],g=a[b][1];e.af=q;e.Pq=+new Date;this.Oy(f,g,c,e)}},QK:function(){for(var a in this.yk)delete this.yk[a]},Oy:function(a,b,c,d){var e=this,f=e.map,g=e.zG,i=Math.abs(parseInt(a,10)+parseInt(b,10))%g.length,j="x="+a+"&y="+b+"&z="+ c,l="_"+(0>a?"_":"")+(0>b?"$":"")+parseInt(Math.abs(a)+""+Math.abs(b)+""+c,10).toString(36),g=g[i]+"qt=lgvd&layers=bg,df&"+j+"&styles=pl&f=jsapi&v=002&udt=20150526",g=g+("&fn=BMap."+l),f=f.wc(),m=new K(f.lng,f.lat),n=e.map.ga();B[l]=function(f){if(f=f.content){d.Nq=(new Date).getTime();var g=e.map,i=g.wc(),g=g.ga();if(!i.ab(m)||g!=n){delete B[l];return}f=(f.bg||[]).concat(f.df||[]);d.be=f;d.Ya="#c"+a+"r"+b+"z"+c;f&&e.gp(f,d,m,n)}delete B[l]};sa(g)},rj:function(a){var a=a.getContext("2d"),b=this.Ob* this.Ac;this.om||(a.save(),a.clearRect(0,0,b,b),a.restore())},yD:function(a,b,c){a.fillStyle=c||"#F5F3F0";a.fillRect(0,0,b,b)},gp:function(a,b,c,d){function e(){b.EQ=+new Date;var e=i.map.wc(),f=i.map.ga();if(e.ab(c)&&f==d){for(i.map.B.wG&&a.E0&&i.Y2(g,a.E0);l<j;l++){var e=i.wF(a[l]),f=m[e[3]],n=m[e[4]],s=f[0];e.tc=f;e.Qc=n;s==Mg?i.Dx(g,e,d):s==Lg?i.ue(g,e[1],f,n,e[2]):s==Ng?i.xD(g,e):i.zD(g,e)}b.af=o;b.AQ=+new Date;i.Tz+=b.yQ-b.CQ;i.Vz+=b.zQ-b.DQ;i.Uz+=b.AQ-b.EQ;i.hv=i.Tz+i.Vz+i.Uz;i.nj++;i.Ze== i.nj&&(i.Lp&&(i.Lp=q,e={},4E3<+new Date-PDC.FQ&&(e.FirstScreenTime=+new Date-PDC.FQ,e.FST_V_B=+new Date-PDC.I1,e.VectorDrawTime=i.hv,e.userAgent=navigator.userAgent,Ta(8080,e)),B.Vn("cus.fire","time",{z_vectorfirstdrawtime:i.hv})),e=new N("onvectorloaded"),e.a3=i.hv,e.Z2=i.nj,i.map.dispatchEvent(e),i.map.dispatchEvent(new N("ontilesloaded")))}}function f(){b.DQ=+new Date;var e=i.map.wc(),f=i.map.ga();if(e.ab(c)&&f==d){for(;l<j;l++){var e=a[l],f=m[e[3]],n=m[e[4]];17<=d&&(f[5]&&0<f[5].length&&1==f[5][0]&& 6==f[5][1])&&(f[5].length=0,f[6]=0,n[6]=0);5<=d&&(9>=d&&f[5]&&0<f[5].length)&&(f[1]="115,115,115,0.3",f[5].length=0);e.tc=f;e.Qc=n;if(f[0]==Lg)i.wF(e);else break}i.NF(g,a,w,l,d);b.zQ=+new Date}}b.CQ=+new Date;var g=b.getContext("2d");1<this.Ac&&!b.ng&&(g.scale(this.Ac,this.Ac),b.ng=o);g.textBaseline="bottom";this.yD(g,this.Ob,this.map.B.Wo);for(var i=this,j=a.length,l=0,m=this.Eb;l<j;l++){var n=a[l],s=m[n[3]]||window.Eb[n[3]],u=m[n[4]]||window.Eb[n[4]];n.tc=s;n.Qc=u;if(s[0]==Mg)i.Dx(g,i.wF(n),d); else break}b.yQ=+new Date;var w=l;i.p4===o?(f(),e()):(window.setTimeout(f,1),window.setTimeout(e,1))},wF:function(a){for(var b=a[1],c=0,d=0,e=0,f=b.length;e<f;e+=2)c+=b[e]/10,d+=b[e+1]/10,b[e]=c,b[e+1]=d;return a},Dx:function(a,b,c){var d=b.tc,e=d[2],b=b[1];a.fillStyle=B.Cb.we(d[1]);a.beginPath();a.moveTo(b[0],b[1]);for(var d=2,f=b.length;d<f;d+=2)a.lineTo(b[d],b[d+1]);a.closePath();a.fill();0<e.length&&(a.strokeStyle=a.fillStyle,a.lineWidth=12<=c?3:e[3],a.stroke())},ue:function(a,b,c,d){if(c||d){var e= B.Cb.we,f=B.Cb.Rx,g=B.Cb.Sx;if(this.Ot(c,d))firstColor=backColor=(e=d&&d[5]&&0<d[5].length?o:q)?B.Cb.we(c[1]):"rgba(0, 0, 0, 0)",backLineWidth=c[2],foreLineWidth=e?d[2]:c[2],intervalLen=e?d[5][0]:c[5][0],intervalColor=B.Cb.we(e?d[1]:c[1]),B.Cb.kX(a,b,intervalLen,backLineWidth,foreLineWidth,firstColor,p,backColor,intervalColor);else if(1==c[7])a.strokeStyle=e(c[1]),a.fillStyle=a.strokeStyle,a.lineWidth=c[2],a.lineCap=f(c[3]),a.lineJoin=g(c[4]),B.Cb.sL(a,b,a.lineWidth);else{a.beginPath();a.moveTo(b[0], b[1]);for(var i=2,j=b.length;i<j;i+=2)a.lineTo(b[i],b[i+1]);a.strokeStyle=e(c[1]);a.lineCap=f(c[3]);a.lineJoin=g(c[4]);a.lineWidth=c[2];a.stroke();d&&(a.strokeStyle=e(d[1]),a.lineWidth=d[2],a.lineCap=f(d[3]),a.lineJoin=g(d[4]),a.stroke())}}},xD:function(a,b){var c=b[1],d=b.tc,e=B.Cb.we,f=e(d[1]),g=e(d[2]),i=d[4],e=e(i[1]),i=i[2],d=d[5];B.Cb.BD(a,c,0,d,0,f,g,e,i)},zD:function(a,b){a.save();var c=b[1],d=b[0],e=b[2],f=this.wt(b.tc,b.Qc),g=f[1],i=0;if(!("undefined"==typeof g||"number"==typeof g)){var j= -1<g.indexOf("biaopai");g.indexOf("ditie");if(0<g.length){var l="undefined"!=typeof TVC?TVC.zK.U0:{},l=this.Jt[g.length%this.Jt.length]+this.um.normal.iconUrl+"/"+g+".png?v="+(l.version?l.version:"002")+"&udt="+(l.Ou?l.Ou:"20150601"),m=new Image,n=c[0],s=c[1];2<c.length&&(i+=2);var u=this;m.onload=function(){var b=this.width,l=this.height;a.drawImage(this,n-b/4,s-l/4,b/2,l/2);j&&u.at(a,c,f,e,d,g,i,j);m.onload=p;delete m.onload;m=p};m.src=l}!j&&(f[2]&&0<f[2].length)&&this.at(a,c,f,e,d,g,i,j)}a.restore()}, at:function(a,b,c,d,e,f,g,i){var j=B.Cb.we,l=c[2];if(e&&0<l.length){var m=[],c=l[2],n=l[3],s=l[4],l=l[5];m.push(B.Cb.bM(s));x.platform.VE?(m.push("bold"),m.push(c+"px"),m.push("arial,\\u9ed1\\u4f53")):(m.push(c+"px"),m.push("\\u9ed1\\u4f53"));i||m.push("Helvetica Neue,Arial,Hiragino Sans GB,\\u9ed1\\u4f53,sans-serif");a.font=m.join(" ");a.fillStyle=j(n);if(m=B.Cb.MM(s))a.strokeStyle=j(l),a.lineWidth=i?0.5:2;for(var f=-1<f.indexOf("biaopai_xiandao"),n=e.split("\\\\"),u=0,w=n.length,y=b.length;u<w&&g<y;u++){var D= b[g],C=b[g+1],e=n[u],e=a.measureText(e).width,F=c,g=g+2;10<d&&350>d&&this.xG(a,D,C,d);var A=1;B.Cb.LM(s)&&(B.Cb.HL(a,D-e/2,C-F/2,e,F,{fillStyle:j(l)}),A=0);f?(a.save(),a.scale(0.9,0.9),m&&a.strokeText(n[u],(D-e/2+1)/0.9,(C+F/2+1)/0.9),a.fillText(n[u],(D-e/2+1)/0.9,(C+F/2+1)/0.9),a.restore()):(A=i?2:A,m&&a.strokeText(n[u],D-e/2,C+F/2+A),a.fillText(n[u],D-e/2,C+F/2+A))}}},wt:function(a,b){var c=[Kg,"",[]];a&&(a[0]==Og?c[2]=a:c=a);b&&(b[0]==Og?c[2]=b:c[1]=b[1]);return c},xG:function(a,b,c,d){d=d/180* Math.PI;cv=Math.cos(d);sv=Math.sin(d);yy=xx=cv;xy=sv;yx=-sv;x0=b-b*cv-c*sv;y0=c+b*sv-c*cv;a.transform(xx,yx,xy,yy,x0,y0)},NF:function(a,b,c,d,e){if(16>=e)for(var f=c;f<d;){for(var g=b[f],i=this.At(g.tc,g.Qc),c=f+1;c<d;c++){var j=b[c];if(i!=this.At(j.tc,j.Qc))break}for(g=f;g<c;g++){var l=b[g],m=l[1],i=l.tc,j=l.Qc;this.Ot(i,j)?l.RE=o:10<=e&&13>=e?"228,218,201,1"!=i[1]&&this.ue(a,m,i,q):this.ue(a,m,i,q)}for(g=f;g<c;g++)l=b[g],m=l[1],i=l.tc,j=l.Qc,l.RE?this.ue(a,m,i,j,l[2],o):(10<=e&&13>=e&&"228,218,201,1"== i[1]&&(j[1]="231,231,157,1"),this.ue(a,m,j,q));f=c}else{for(f=c;f<d;f++)g=b[f],i=g.tc,j=g.Qc,e=i[6]&1?o:q,j&&!e&&(e=j[6]&1?o:q),e?g.aF=o:this.ue(a,g[1],i,q);for(f=c;f<d;f++)g=b[f],i=g.tc,j=g.Qc,g.aF?this.ue(a,g[1],i,j,g[2]):this.ue(a,g[1],j,q)}},At:function(a,b){if(!b)return 0;var c=a[6],d=b[6];if(1==c||1==d)return 1;switch(c){case 2:return 2==d?1:0;case 4:case 6:case 8:case 10:return 4<=d&&10>=d?1:0;default:return 0}},Ot:function(a,b){return a&&0<a.length&&0<a[5].length||b&&0<b.length&&0<b[5].length? o:q}};B.NewVectorDrawLib=Pg; ');