/**/_jsload2&&_jsload2('map', 'Db.prototype.cancel=ia(1,function(){this.rs&&clearTimeout(this.rs);this.kA=this.lv;this.Ry=0}); F.df(function(a){if(!a.M||!a.M.Ot){a.Nt()?(sh(a),th(a),uh(a)):a.addEventListener("load",function(){sh(this);th(this);uh(this)});a.qh="\\u4e2d\\u56fd";a.Cs="1";var b={yD:p,lb:function(){if(b.yD){b.yD=t;setTimeout(function(){b.wg()},500)}},wg:function(){var c=a.ke(),e=a.la(),f=T.Sa(c.Be()),c=T.Sa(c.tf());Xe.lb(function(c){c.current_city.code>=9E3&&c.current_city.code<=9378&&(c.current_city.name="\\u53f0\\u6e7e\\u7701");c.current_city.code>=2E4&&c.current_city.code<=20499&&(c.current_city.name="\\u65b0\\u52a0\\u5761"); c.current_city.code>=20500&&c.current_city.code<=25999&&(c.current_city.name="\\u6cf0\\u56fd");c.current_city.code>=26E3&&c.current_city.code<=29999&&(c.current_city.name="\\u65e5\\u672c");c.current_city.code>=3E4&&c.current_city.code<=30999&&(c.current_city.name="\\u97e9\\u56fd");c.current_city.code>=31E3&&c.current_city.code<=37E3&&(c.current_city.name="\\u4e9a\\u592a");c.current_city.code>=46609&&c.current_city.code<=52505&&(c.current_city.name="\\u6b27\\u6d32");c.current_city.code>=39509&&c.current_city.code<= 53500&&(c.current_city.name="\\u5357\\u7f8e\\u6d32");c.current_city.code>=54E3&&c.current_city.code<=7E4&&(c.current_city.name="\\u5317\\u7f8e\\u6d32");c.current_city.code===54003&&(c.current_city.code>=60731&&c.current_city.code<=61123)&&(c.current_city.name="\\u7f8e\\u56fd");if(c.current_city.code===54015||c.current_city.code>=57970&&c.current_city.code<=60223)c.current_city.name="\\u52a0\\u62ff\\u5927";if(c.current_city.code===54025||c.current_city.code>=54338&&c.current_city.code<=57374)c.current_city.name= "\\u58a8\\u897f\\u54e5";b.yD=p;if(c&&c.current_city){var e=c.current_city.name,f=c.current_city.code;f!==a.Cs&&a.dispatchEvent("citychange",{name:e,code:f});a.qh=e;a.Cs=c.current_city.code;L()||vh(a)}},{qt:"cen",b:f.lng+","+f.lat+";"+c.lng+","+c.lat,l:e},"","",p)}};a.addEventListener("load",function(){b.lb()});a.addEventListener("moveend",function(){b.lb()});a.addEventListener("zoomend",function(){b.lb()});b.lb()}}); function sh(a){if(!a.ba.mW){a.ba.mW=p;if(!a.Dk){var b=new P(2,2);a.M.SK=b;L()&&(b.width=72,b.height=0);var c=new fd({offset:b,printable:p});a.Dk=c}L()||(vh(a),a.addEventListener("maptypechange",function(){vh(a)}));a.Vo(c);var e=new wh;e.m={Qg:p};a.IZ=e;a.Vo(e);a.addEventListener("resize",function(){if(this.wb().width>=300&&a.wb().height>=100){e.show();c.Rd(a.M.SK)}else{e.aa();c.Rd(new P(4,2))}});300<=a.wb().width&&100<=a.wb().height&&a.M.HZ?e.show():(e.aa(),c.Rd(new P(4,2)));a.addEventListener("oncopyrightoffsetchange", function(b){a.IZ.Rd(b.target.WE);a.Dk.Rd(b.target.uW);a.$o&&a.$o.Rd(new P(b.target.WE.width+90,b.target.WE.height))});a.dispatchEvent(new Q("hidecopyright"))}} function vh(a){if(!a.Dk){var b=new P(2,2);L()&&(b.width=72,b.height=0);b=new fd({offset:b,printable:p});a.Dk=b}var c=a.qh||"\\u4e2d\\u56fd",b=a.ya(),e="\\u5e38\\u5dde\\u5e02 \\u5357\\u660c\\u5e02 \\u4e4c\\u9c81\\u6728\\u9f50\\u5e02 \\u65e0\\u9521\\u5e02 \\u798f\\u5dde\\u5e02 \\u6cc9\\u5dde\\u5e02 \\u73e0\\u6d77\\u5e02 \\u8d35\\u9633\\u5e02".split(" "),f="\\u5317\\u4eac\\u5e02 \\u4e0a\\u6d77\\u5e02 \\u5e7f\\u5dde\\u5e02 \\u6df1\\u5733\\u5e02 \\u5b81\\u6ce2\\u5e02 \\u77f3\\u5bb6\\u5e84\\u5e02 \\u6c88\\u9633\\u5e02 \\u957f\\u6625\\u5e02 \\u9752\\u5c9b\\u5e02 \\u6e29\\u5dde\\u5e02 \\u53f0\\u5dde\\u5e02 \\u91d1\\u534e\\u5e02 \\u4f5b\\u5c71\\u5e02 \\u4e2d\\u5c71\\u5e02 \\u6606\\u660e\\u5e02 \\u5357\\u5b81\\u5e02 \\u82cf\\u5dde\\u5e02 \\u897f\\u5b89\\u5e02 \\u6d4e\\u5357\\u5e02 \\u90d1\\u5dde\\u5e02 \\u5408\\u80a5\\u5e02 \\u547c\\u548c\\u6d69\\u7279\\u5e02 \\u676d\\u5dde\\u5e02 \\u6210\\u90fd\\u5e02 \\u6b66\\u6c49\\u5e02 \\u957f\\u6c99\\u5e02 \\u5929\\u6d25\\u5e02 \\u5357\\u4eac\\u5e02 \\u91cd\\u5e86\\u5e02 \\u5927\\u8fde\\u5e02 \\u4e1c\\u839e\\u5e02 \\u53a6\\u95e8\\u5e02".split(" "),g= ["\\u9999\\u6e2f\\u7279\\u522b\\u884c\\u653f\\u533a"],i;for(i in e)if(e[i]===c){var k=p;break}for(i in f)if(f[i]===c)break;for(i in g)if(g[i]===c){var m=p;break}if("\\u53f0\\u6e7e\\u7701"===c)var n=p;if("\\u65b0\\u52a0\\u5761"===c)var o=p;if("\\u65e5\\u672c"===c)var q=p;if("\\u97e9\\u56fd"===c)var v=p;if("\\u6cf0\\u56fd"===c)var w=p;if("\\u4e9a\\u592a"===c)var y=p;if("\\u6b27\\u6d32"===c)var z=p;if("\\u5357\\u7f8e\\u6d32"===c)var B=p;if("\\u5317\\u7f8e\\u6d32"===c)var D=p;if("\\u7f8e\\u56fd"===c)var G=p;if("\\u52a0\\u62ff\\u5927"=== c)var E=p;if("\\u58a8\\u897f\\u54e5"===c)var C=p;i=["© 2023 Baidu - GS(2021)6026\\u53f7 - \\u7532\\u6d4b\\u8d44\\u5b5711111342 - \\u4eacICP\\u8bc1030173\\u53f7 - Data © "];c="rgba(255, 255, 255, 0.701961)";9>=a.la()?i=["© 2023 Baidu - GS(2021)6026\\u53f7 - \\u7532\\u6d4b\\u8d44\\u5b5711111342 - \\u4eacICP\\u8bc1030173\\u53f7 - Data © "]:n?i=["© 2023 Baidu - GS(2021)6026\\u53f7 - \\u7532\\u6d4b\\u8d44\\u5b5711111342 - \\u4eacICP\\u8bc1030173\\u53f7 - Data © "]:q||v?i=["© 2023 Baidu - GS(2021)6026\\u53f7 - \\u7532\\u6d4b\\u8d44\\u5b5711111342 - \\u4eacICP\\u8bc1030173\\u53f7 - Data © "]: o||w?i=["© 2023 Baidu - GS(2021)6026\\u53f7 - \\u7532\\u6d4b\\u8d44\\u5b5711111342 - \\u4eacICP\\u8bc1030173\\u53f7 - Data © "]:y?i=["© 2023 Baidu - GS(2021)6026\\u53f7 - \\u7532\\u6d4b\\u8d44\\u5b5711111342 - \\u4eacICP\\u8bc1030173\\u53f7 - Data © "]:z?i=["© 2023 Baidu - GS(2021)6026\\u53f7 - \\u7532\\u6d4b\\u8d44\\u5b5711111342 - \\u4eacICP\\u8bc1030173\\u53f7 - Data © "]:B?i=["© 2023 Baidu - GS(2021)6026\\u53f7 - \\u7532\\u6d4b\\u8d44\\u5b5711111342 - \\u4eacICP\\u8bc1030173\\u53f7 - Data © "]: D&&(i=["© 2023 Baidu - GS(2021)6026\\u53f7 - \\u7532\\u6d4b\\u8d44\\u5b5711111342 - \\u4eacICP\\u8bc1030173\\u53f7 - Data © "]);if(9>=a.la()){i.push("\\u767e\\u5ea6\\u667a\\u56fe");i.push(\' & OpenStreetMap\');i.push(\' & HERE\');if(b===Ya||b===Xa)i.push(\' & ESO\'),c="rgba(0,0,0,.7)";b===Va&&(i.push(\' & \\u90fd\\u5e02\\u5708\'), c="none")}else if(q||v)i.push(\'OpenStreetMap\');else if(o||w)i.push(\'HERE\');else if(y)i.push(\'HERE\'),i.push(\' & Mapbox\');else if(z)i.push(\'OpenStreetMap\'),i.push(\' & Mapbox\'); else if(B)i.push(\'OpenStreetMap\'),i.push(\' & Mapbox\');else if(G||C||E)i.push(\'HERE\'),i.push(\' & Mapbox\');else if(D)i.push(\'OpenStreetMap\'),i.push(\' & Mapbox\'); else{i.push("\\u767e\\u5ea6\\u667a\\u56fe");k&&i.push(\' & PalmCity\');m&&i.push(\' & MapKing\');n&&(i.push(\' & HERE\'),i.push(\' & \\u6a02\\u5ba2LocalKing\'));if(b===Ya||b===Xa)c="rgba(0,0,0,.7)"; b===Va&&(i.push(\' & \\u90fd\\u5e02\\u5708\'),c="none")}i.unshift(\'\');i.push("");i=i.join("");a.Dk.Tw({id:1,content:i})} function th(a){L()||ra(F.cd+"?qt=business_accredit&ak="+qa,function(b){b&&(0===b.error&&b.content&&0===b.content.status)&&(b.content.data&&b.content.data.is_auth)&&(b={},a.M.gF||(b.defaultOffset=new P(91,1)),b=new xh(b),a.$o=b,a.Vo(b),a.M.pD||b.aa())})}F.Yp=s;function uh(a){F.Yp=new yh({});a.Vo(F.Yp)}function wh(){this.defaultAnchor=cd;this.defaultOffset=new P(1,20);L()&&(this.defaultOffset=new P(1,1));this.cr=30;this.vl=K.ta+(L()?"copyright_logo_s.png":"copyright_logo.png")}wh.prototype=new $c; wh.prototype.initialize=function(a){this.P=a;var b=J("div");b.style.height="32px";var c=J("a",{title:"\\u5230\\u767e\\u5ea6\\u5730\\u56fe\\u67e5\\u770b\\u6b64\\u533a\\u57df",target:"_blank",href:"http://map.baidu.com/?sr=1"});c.style.outline="none";c.innerHTML=6===A.ga.oa?"
":"";L()&&(1");b.appendChild(c);a.Ta().appendChild(b);return b};function xh(a){this.defaultAnchor=cd;this.defaultOffset=a.defaultOffset||new P(90,20);this.cr=30;this.vl=K.ta+"bizAuth.png"}xh.prototype=new $c; xh.prototype.initialize=function(a){this.P=a;var b=J("div");b.style.height="27px";var c=J("a",{title:"\\u767e\\u5ea6\\u5730\\u56fe\\u5546\\u7528\\u6388\\u6743",target:"_blank",href:"http://lbs.baidu.com/cashier/auth?src=jsapi3.0"});c.style.outline="none";c.innerHTML=6===A.ga.oa?"
":"";b.appendChild(c);a.Ta().appendChild(b); return b};function yh(a){this.defaultAnchor=bd;this.defaultOffset=a.defaultOffset||new P(90,6);this.cr=9999;this.Va=t}yh.prototype=new $c; yh.prototype.initialize=function(a){this.P=a;var b=this,c=J("div"),e=c.style;e.left=e.top="50%";e.display="none";e.padding="24px";e.overflow="visible";e.position="absolute";e.width="50%";e.maxWidth="360px";e.transform="translate(-50% , -50%)";e.zIndex="9999";e.background="#fff";e.u7="none";e=J("span",{style:"margin-top: 12px;\\n margin-bottom: -12px;\\n margin-left: calc(100% - 48px);\\n width: 56px;\\n height: 32px;\\n font-size: 14px;\\n text-align: center;\\n line-height: 32px;\\n display: block;\\n cursor: pointer;\\n background: #3894FF;\\n border: solid 1px #3f51b53b;\\n color: #fff;\\n border-radius: 3px;"});e.innerText= "\\u786e\\u5b9a";A.V(e,"click",function(){b.aa()});var f=J("div"),g=f.style;g.position="relative";g.width="100%";g.height="100%";g.color="#000";g.fontSize="14px";g.F7="break-all";c.appendChild(f);c.appendChild(e);a.Ta().appendChild(c);return c};yh.prototype.Go=u();yh.prototype.update=function(a){this.Oc()||(this.R.children[0].innerText=a,this.show())};A.extend(Pa.prototype,{ob:function(){this.ha()},ha:function(){var a=this;a.Ro=function(){var b=a.wb();if(a.width!=b.width||a.height!=b.height){var c=new P(a.width,a.height),e=new Q("onbeforeresize");e.size=c;a.dispatchEvent(e);a.xk((b.width-a.width)/2,(b.height-a.height)/2);a.Fe.style.width=(a.width=b.width)+"px";a.Fe.style.height=(a.height=b.height)+"px";c=new Q("onresize");c.size=b;a.dispatchEvent(c);b=parseInt(a.platform.style.left)||0;c=parseInt(a.platform.style.top)||0;0!=a.$a&&(a.offsetX!=b|| a.offsetY!=c)&&a.Qe(b,c)}};a.M.dt&&!a.ba.rm&&(a.ba.rm=setInterval(a.Ro,80));L()||(A.V(a.Fe,"mouseover",function(b){Mb(b);a.dispatchEvent(new Q("onmouseover"))}),A.V(a.Fe,"mouseout",function(b){Mb(b);a.dispatchEvent(new Q("onmouseout"))}))},Qe:function(a,b,c,e){if(!isNaN(a)&&!isNaN(b)&&!(this.offsetX==a&&this.offsetY==b)){var f=this.ya(),g=f.m.jb,i=this.offsetY-b,f=f.Wb(this.Za),k=s,k=this.Jb?this.Jb:this.Dc.Ai(this.ge),m=new M(k.lng+(this.offsetX-a)*f,k.lat-(this.offsetY-b)*f);m.lat-this.height/2* f<=g.de&&0<=i&&(b=g.de+this.height/2*f,b=this.offsetY-(k.lat-b)/f);m.lat+this.height/2*f>g.be&&0>i&&(b=g.be-this.height/2*f,b=this.offsetY-(k.lat-b)/f);this.xk(this.offsetX-a,this.offsetY-b,c);a=Math.round(a);b=Math.round(b);this.offsetX=a;this.offsetY=b;this.platform.style.left=a+"px";this.platform.style.top=b+"px";this.Fe.style.left=-a+"px";this.Fe.style.top=-b+"px";e!=t&&this.dispatchEvent(new Q("onmoving"))}},Ii:function(a,b){if(a instanceof R||a instanceof M){var c=this.vc(a),e=Math.round(this.width/ 2),f=Math.round(this.height/2),b=b||{};Math.abs(e-c.x)>this.width||Math.abs(f-c.y)>this.height||b.noAnimation?this.UI(e-c.x,f-c.y,a):this.Wl(e-c.x,f-c.y,{duration:b.duration})}},UI:function(a,b,c){var e=this.ba;e.Pc!=p&&(e.vb&&e.vb.stop(),this.dispatchEvent(new Q("onmovestart")),this.Qe(this.offsetX+a,this.offsetY+b,c),this.dispatchEvent(new Q("onmoveend")))},Og:function(a,b,c){a=Math.round(a)||0;b=Math.round(b)||0;c=c||{};Math.abs(a)<=this.width&&Math.abs(b)<=this.height&&!c.noAnimation?this.Wl(a, b):this.UI(a,b)},Wl:function(a,b,c){if(this.ba.Pc!=p){c=c||{};this.dispatchEvent(new Q("onmovestart"));var e=this,f=e.ba;f.Iy=e.offsetX;f.o=e.offsetY;f.gG&&f.gG.cancel();f.vb&&f.vb.stop();f.gG=new Db({Nc:c.Nc||e.M.Nc,duration:c.duration||e.M.gV,fc:c.fc||Eb.mD,Ba:function(c){(this.bG=e.ba.Pc)||e.Qe(f.Iy+Math.ceil(a*c),f.o+Math.ceil(b*c))},finish:function(){e.dispatchEvent(new Q("onmoveend"));e.ba.gG=t;e.ba.Ni==p&&(e.ba.Ni=t,0!=e.ba.pc&&e.mb())}})}},hM:function(a,b){var c=this.ya();if("object"!=typeof c)return s; c=this.M.Gk?this.Id.le(b)*c.Wb(b):256*c.Wb(b);a=T.Sa(a);return{qn:parseInt(a.lng/c),Gs:parseInt(a.lat/c),Jg:b}}});U(Lg,{panTo:Lg.Ii,panBy:Lg.Og}); ');_jsload2&&_jsload2('scommon', 'var Gi=new P(23,25),Hi=new P(9,25),Ii=new P(9,0);X.nV=function(a,b,c,e){var f=Ji(b);if(f&&!(0>c||9b.length)return;b[0]=parseFloat(A.trim(b[0]));b[1]=parseFloat(A.trim(b[1]))}else if(b=a.slice(0),2>b.length)return;b=new R(b[0],b[1])}return b} X.zW=function(a){var b=a.title,c=a.As,e=a.P0,f=a.MW,a=a.x_||0;if(!b)return s;var g=b;1==a?g+="-\\u516c\\u4ea4\\u8f66\\u7ad9":3==a&&(g+="-\\u5730\\u94c1\\u7ad9");var i=13;f&&(i=10);g.replace(/[\\u0100-\\uffff]/g,"##").length>2*i+1&&(g=g.substring(0,i)+"…");b="

"+g;f&&(b+="\\u8be6\\u60c5\\u00bb"); b+="

";f=[];f.push("
");if(c){g="\\u5730\\u5740\\uff1a";if(1==a||3==a)g="\\u8f66\\u6b21\\uff1a";f.push(\'\');f.push(\'");e&&f.push(\'");f.push("
\'+g+\' \');f.push(c+" 
\\u7535\\u8bdd\\uff1a\'+ e+"
")}else e&&(f.push(\'\'),f.push(\'
\\u7535\\u8bdd\\uff1a\'+e+"
"));f.push("
");return new zd(f.join(""),{title:b,height:0,width:230,margin:[10,10,20,10]})}; X.zk=function(a,b,c,e){if(b=Ji(b))return e=new W(b,{icon:L()?new wd(K.ta+"dest_mkr.png",new P(29,34),{anchor:new P(14,32),imageSize:new P(94,41),imageOffset:new P(-29*e,0),infoWindowAnchor:new P(14,0)}):new wd(K.ta+"dest_markers.png",new P(42,34),{anchor:new P(14,32),imageOffset:new P(0,-34*e),infoWindowAnchor:new P(14,0)}),baseZIndex:35E5,draggingCursor:"pointer"}),a.Ra(e),c&&e.Hc(c),e};X.Wo=function(a,b){return X.nm(a,b,We)}; X.jQ=[{stroke:6,color:"#0030ff",opacity:0.45,style:"solid"},{stroke:5,color:"#00bd00",opacity:0.95,style:"solid"},{stroke:5,color:"#ffac00",opacity:0.95,style:"solid"},{stroke:5,color:"#f41c0d",opacity:0.95,style:"solid"}]; X.iQ=[{stroke:6,color:"#5298fe",opacity:1,style:"solid"},{stroke:6,color:"#5298fe",opacity:1,style:"solid"},{stroke:6,color:"#4ddc26",opacity:1,style:"solid"},{stroke:6,color:"#00bd01",opacity:1,style:"solid"},{stroke:6,color:"#ff0103",opacity:0.65,style:"dashed"},{stroke:6,color:"#ff0103",opacity:0.65,style:"solid"},{stroke:6,color:"#5298ff",opacity:1,style:"solid"},{stroke:6,color:"#5298ff",opacity:1,style:"solid"},{stroke:6,color:"#ff0103",opacity:0.65,style:"dashed"}]; X.lV=function(a,b,c){var e=X.jQ;"undefined"==typeof c&&(c=0);if(e[c])return e=e[c],b=new Md(b,{strokeWeight:e.stroke,strokeColor:e.color,strokeOpacity:e.opacity,strokeStyle:e.style,clickable:t}),a.Ra(b),b.d3=c,b}; X.nm=function(a,b,c){var e=X.iQ;"undefined"==typeof c&&(c=0);if(e[c]){var f=e[c],e=new Md(b,{strokeWeight:f.stroke,strokeColor:f.color,strokeOpacity:f.opacity,strokeStyle:f.style,clickable:t});a.Ra(e);e.W2=c;c==We&&(b=new Md(b,{strokeWeight:f.stroke-2,strokeColor:"#fff",strokeOpacity:0.3,clickable:t}),e.xo=b,a.Ra(b));return e}}; X.gp=function(a){var b=a.content,c=a.jp,e=a.total,f=a.$p,g=a.b6,a=a.rE,i=["
"];b&&i.push("
"+b+"
");a||i.push(X.GX(e,c));i.push("
");b=new zd(i.join(""),{title:"",height:0,width:220,margin:[10,10,20,10]});if(a)return b;b.addEventListener("open",function(){var a=L()?"touchend":"click";A.Ic("trans_prev")&&A.V(A.Ic("trans_prev"),a,function(){f&&"function"==typeof f&&f(c-1,g)});A.Ic("trans_next")&&A.V(A.Ic("trans_next"), a,function(){f&&"function"==typeof f&&f(c+1,g)})});return b}; X.GX=function(a,b){var c=[];c.push(\'\');c.push(\'");c.push(\'
\');0==b?c.push(\'\\u4e0a\\u4e00\\u6b65\'):c.push(\'\\u4e0a\\u4e00\\u6b65\');c.push("\'); b==a+1?c.push(\'\\u4e0b\\u4e00\\u6b65\'):c.push(\'\\u4e0b\\u4e00\\u6b65\');c.push("
");return c.join("")}; X.jK=function(a,b,c,e){if(b=Ji(b)){c=c||0;if(L())c=new wd(K.ta+"dest_mkr.png",new P(20,20),{imageSize:new P(94,41),imageOffset:new P(-59,-21*c),infoWindowAnchor:new P(10,0)});else{var f=-55;switch(c){case 1:f=-76;break;case 3:f=-118;break;case 4:f=-139;break;default:f=-55}c=new wd(K.ta+"trans_icons.png",new P(21,21),{imageOffset:new P(0,f),infoWindowAnchor:new P(10,0)})}c=new W(b,{icon:c});a.Ra(c);e&&c.Hc(e);return c}};X.Km=function(a){return a&&a.Ua&&a.Ua.Cg?a.Ua.Cg.childNodes[0]:s}; X.qV=function(a,b,c){b=new W(b,{icon:new wd(Ff.TU,new P(11,11))});c&&b.Hc(c);a.Ra(b);return b};X.Uw=function(a,b){var c=new W(b,{icon:new wd(K.ta+"drag.png",new P(11,11)),draggingCursor:"pointer"});a.Ra(c);c.vq(10);return c};X.mC=function(a,b,c){b=new W(b,{icon:new wd(K.ta+"way-points.png",new P(36,40),{imageOffset:new P(-11+-36*c,-35)}),draggingCursor:"pointer",offset:new P(5,-20)});a.Ra(b);b.vq(10);return b}; X.lx=function(){var a=new Ad("\\u62d6\\u52a8\\u4ee5\\u66f4\\u6539\\u8def\\u7ebf",{offset:new P(30,-10)});a.Td({border:"solid 1px gray",padding:"2px",whiteSpace:"nowrap",background:"#fff"});return a};X.UX=function(a,b){if(a&&b)return Math.round(Math.sqrt(Math.pow(a.x-b.x,2)+Math.pow(a.y-b.y,2)))}; X.oV=function(a,b,c,e){var f={type:"RouteAddrMarker"},a=Ji(a),f=f||{};f.type=f.type||"normal";if(a&&!("undefined"==typeof b||0>b||9a&&(a=1);18b?b=0:0.25b?b=1:32=k&&(g=g.join(";")); if(2==k){b=(g[0]+";"+g[1]).split(";");f=[];for(c=0;cb.length)return;b[0]=parseFloat(ja.trim(b[0]));b[1]=parseFloat(ja.trim(b[1]))}else if(b=a.slice(0),2>b.length)return;b=new F.hg(b[0],b[1])}return b};jb.m_=function(a){a=a.split(",");a=new R(a[0],a[1]);return T.Zb(a)}; jb.Jg={country:4,province:11,city:12,m3:13};var Oi=["=",".","-","*"],Pi=8388608; function Ni(a){var b;b=a.charAt(0);var c=-1;b==Oi[1]?c=Mi:b==Oi[2]?c=Li:b==Oi[3]&&(c=Ki);b=c;for(var c=a.substr(1),e=0,f=c.length,g=[],a=[],i=[];ef-e)return 0;a:{for(var i=c.substr(e,13),k=g,m=0,n=0,o=0,q=0;6>q;q++){o=Qi(i.substr(1+q,1));if(0>o){i=-1-q;break a}m+=o<<6*q;o=Qi(i.substr(7+q,1));if(0>o){i=-7-q;break a}n+=o<<6*q}k.push(m);k.push(n);i=0}if(0>i)return 0;e+=13}else if(";"==c.charAt(e))a.push(g.slice(0)),g.length=0,++e;else{if(8>f-e)return 0;i=Ri(c.substr(e, 8),g);if(0>i)return 0;e+=8}c=0;for(e=a.length;cc)return-1;for(var e=0,f=0,g=0,i=0;4>i;i++){g=Qi(a.substr(i,1));if(0>g)return-1-i;e+=g<<6*i;g=Qi(a.substr(4+i,1));if(0>g)return-5-i;f+=g<<6*i}e>Pi&&(e=Pi-e);f>Pi&&(f=Pi-f);b.push(b[c-2]+e);b.push(b[c-1]+f);return 0}function Qi(a){var b=a.charCodeAt(0);return"A"<=a&&"Z">=a?b-65:"a"<=a&&"z">=a?26+b-97:"0"<=a&&"9">=a?52+b-48:"+"==a?62:"/"==a?63:-1} jb.fu=function(a){var b=[];if("string"===typeof a)for(var a=a.split(";"),c=0;cb.la())this.xm();else if(this.CC(),a&&a.point)if(this.yi&&(this.NN=a.point),this.IE=p,1!=this.yi&&(this.ne&&this.ne.aa(),this.oe&&this.oe.aa(),this.Qd&&this.Qd.aa()),a=b.hM(a.point,b.la()),a.qn&&a.Gs&&a.Jg)this.zm=a.Jg+"_"+a.qn+"_"+a.Gs,this.cp[a.Jg+"_"+a.qn+"_"+a.Gs]?this.XF!=this.zm&&this.hH(this.zm):this.X_({PE:a.Jg,x:a.qn,y:a.Gs})}; Cj.hH=function(a){var b=this.map;if(b.ya()!=Qa&&b.ya()!=Xa)this.xm(),this.Uk();else if(b=a.split("_"),b=b[0]+"_"+b[1]+"_"+b[2],this.cp[b]){this.xm();this.lF=this.iK(this.cp[b][a]?this.cp[b][a]:[],"MAP_CLICK_POI");this.XF=a;for(var a=-1,c=0,e=this.um.length;cthis.map.la())for(var b=0,c=a.spots.length;bb.la())&&a&&(this.yi=0,this.hl&&(b.ba.xb&&b.ba.xb.close(),this.Hi=a,b.M.Em&&this.$_(this.hl)))};Cj.$_=function(a){if(a){var b=this;Xe.lb(function(c){b.yS(a,c)},{qt:"inf",uid:a,operate:"mapclick",clicktype:"tile"})}}; Cj.yS=function(a,b){var c=this,e=this.map;if(b&&b.content){var f=b.content,g=f.pano||0;jb.bf(f.geo,p);if(!i)var i={};i.isFromMPC=p;var k=f.addr,i=f.street_id||"";if(1==f.poiType||3==f.poiType)k=jb.unique(k.split(";")).join("; ");var m=f.tel;m&&(m=m.replace(/,/g,", "));c.sS(f.cla);var n=J("div",{style:"font-size:12px;padding:5px 0;overflow:hidden;*zoom:1;"}),o=t;if(g)if(360>c.map.height)o=p;else{g=[];g.push("
"); var q=F.url.proto+F.url.domain.pano[0]+"/?qt=poiprv&uid="+i+"&width=323&height=101&quality=80&fovx=200",v=Vb(q);v?(v=Zc(v.path,{Qp:t}),q+="&"+v):q=s;g.push("\'"+f.name+"\\u5916\\u666f\'");g.push("
\\u8fdb\\u5165\\u5168\\u666f>>"); g.push("
");n.innerHTML=g.join("")}k&&(g=J("p",{style:"padding:0;margin:0;line-height:18px;font-size:12px;color:#4d4d4d;"}),g.innerHTML="\\u5730\\u5740\\uff1a"+k,n.appendChild(g));m&&(k=J("p",{style:"padding:0;margin:0;line-height:18px;font-size:12px;color:#4d4d4d;"}),k.innerHTML="\\u7535\\u8bdd\\uff1a"+m,n.appendChild(k));f.tag&&(m=J("p",{style:"padding:0;margin:0;line-height:18px;font-size:12px;color:#4d4d4d;color:#7f7f7f;"}),m.innerHTML="\\u6807\\u7b7e\\uff1a"+f.tag,n.appendChild(m));var m="http://api.map.baidu.com/place/detail?uid="+ a+"&output=html&source=jsapi&operate=mapclick&clicktype=tile",k="
"+f.name+"",w=new zd(n,{width:322,enableSearchTool:p,title:k+("\\u8be6\\u60c5»")+ "
",enableParano:o});o&&(w.street_id=i);w.addEventListener("open",function(){var a=A.fa("panoInfoBox");if(a){var b=f.street_id||"";$b(function(){Wa(6006);c.WQ(b)},a,"pano_thumnail_img|panoInfoBoxTitleBg|panoInfoBoxTitleContent")}a=A.fa("detailDiv");$b(function(){Wa(6001)},a,"detailInfo")});w.addEventListener("close",function(){c.ne&&c.ne.aa();c.oe&&c.oe.aa();c.Qd&&c.Qd.aa();e.ba.xb.yb&&e.ba.xb.yb.aa();Bj=c.Hi=s;w.removeEventListener("close",arguments.callee)});c.Hi?(c.Hi.Vc(w),Bj||(Bj=c.hl+"|"+ (c.Np?c.Np:c.Ft))):c.Ge||(i=jb.bf(f.geo,p).point,c.Np&&(n=Dj.blank,c.Ej.ru(new P(n.x,n.y)),n=Ej[n.ea],c.Ej.He(new P(n.a,n.kb)),c.Ej.wc(new P(n.a/2,n.kb/2))),c.Ge=new W(i,{icon:c.Ej,zIndexFixed:p}),e.Ra(c.Ge),c.Ge.addEventListener("click",function(){Bj=c.hl+"|"+(c.Np?c.Np:c.Ft);c.GC(c.Ge)}),c.Ge.addEventListener("mouseout",function(){c.sN(c.Ge)}),c.Ge.Vc(w));c.ne&&c.ne.aa();c.oe&&c.oe.aa();c.Qd&&c.Qd.aa()}}; Cj.WQ=function(a){var b=F.xh("pano","")[0],c=this,e=(new Date).getTime(),f="Pano"+e;F[f]=function(a){var b=c.map.xt(),a=a.content[0];b.Gc(a.poiinfo.PID);b.show();b.zd({heading:a.poiinfo.Dir,pitch:a.poiinfo.Pitch})};e=(new Date).getTime();b+="?qt=poi&udt=20131021&uid="+a+"&t="+e+"&fn=BMap."+f;if(a=Vb(b))a=Zc(a.path,{Qp:t}),ra(b+("&"+a),t)}; Cj.TZ=function(a){var b=this.map;if(!(10>b.la())){var c=a.spots;if(c&&!(1>c.length||"MAP_CLICK_POI"!=c[0].tag)){var e=this,f=s,g=s,i=0;e.Hi&&e.Hi===e.Ge?(f=e.an,g=e.oe,i=2):(f=e.Ge,g=e.ne,i=1);if(!b.ba.xb||!(b.ba.xb.eb()==p&&Bj&&c[0].Lh.uid==Bj.split("|")[0])){var k=Dj.blank;e.Ft="blank";var m=Ej[k.ea];e.Ej.He(new P(m.a,m.kb));e.Ej.wc(new P(m.a/2,m.kb/2));e.Ej.ru(new P(k.x,k.y));m=c[0].Lh.zM?c[0].Lh.zM:c[0].o;f&&f.map?(f.aa(),f.va(m),f.Xb(e.Ej),f.show(),e.hl=c[0].Lh.uid):(f=new W(m,{icon:e.Ej,zIndexFixed:p, baseZIndex:3E6}),e.hl=c[0].Lh.uid,b.Ra(f),1==i?e.Ge=f:e.an=f,f.addEventListener("click",function(){e.Np=e.Ft;Bj=e.hl+"|"+e.Ft;e.GC(f)}),f.addEventListener("mouseout",function(){e.sN(f)}));f.Mi(p);k=[{backgroundColor:"#FFFFE1",borderColor:"#8C8C8C",color:"#4D4D4D"},{backgroundColor:"#F0F7FF",borderColor:"#7AA3CC",color:"#224B73"}];e.hz=f;g&&g.map?(g.aa(),c[0].Lh.name?(e.yi=1,g.Qc(c[0].Lh.name),a=e.Ix(m,1,{x:Math.abs(c[0].C[0])+6,y:-9}),g.va(a),g.Td(k[1]),g.show()):(e.yi=2,g.Qc("\\u70b9\\u51fb\\u53ef\\u67e5\\u770b\\u8be6\\u60c5"), g.Td(k[0]),e.WO(g))):c[0].Lh.name?(e.yi=1,a=e.Ix(m,1,{x:Math.abs(c[0].C[0])+6,y:-9}),g=new Ad(c[0].Lh.name,{position:a}),b.Ra(g),1==i?e.ne=g:e.oe=g,g.Td(k[1])):(e.yi=2,g=new Ad("\\u70b9\\u51fb\\u53ef\\u67e5\\u770b\\u8be6\\u60c5",{position:e.Ix(a.point,0)}),b.Ra(g),g.aa(),1==i?e.ne=g:e.oe=g,g.Td(k[0]),e.WO(g))}}}};Cj.WO=function(a){var b=this;b.Cn=setInterval(function(){b.IE||setTimeout(function(){if(2==b.yi){var c=b.Ix(b.NN,0);a.va(c);a.show()}clearInterval(b.Cn)},500)},200)}; Cj.Ix=function(a,b,c){var e=this.map,a=e.vc(a);if(c)var f=c;else 0==b?f={x:-1,y:24}:1==b&&(f={x:12,y:-9});try{if(0==b||1==b)return e.cc(new S(a.x+f.x,a.y+f.y))}catch(g){}}; Cj.SZ=function(){var a=this.map;if(!(10>a.la())){this.yi=0;this.ne&&this.ne.aa();this.oe&&this.oe.aa();this.Qd&&this.Qd.aa();this.Cn&&clearInterval(this.Cn);this.hz=s;var b=this.an;if(b&&b.map&&(!a.ba.xb||a.ba.xb.eb()==t||a.ba.xb.yb!==b)){if(this.Hi&&this.Hi===b)return;b.aa()}(b=this.Ge)&&b.map&&((!a.ba.xb||a.ba.xb.eb()==t||a.ba.xb.yb!==b)&&!(this.Hi&&this.Hi===b))&&b.aa()}}; Cj.sN=function(a){var b=this.map;!(10>b.la())&&a&&(this.ne&&this.ne.aa(),this.oe&&this.oe.aa(),this.Qd&&this.Qd.aa(),this.Hi!==a&&!(b.ba.xb&&b.ba.xb.eb()==p)&&(this.hl=""))}; Cj.EV=function(){var a=this,b=this.map;b.addEventListener("load",function(){a.Zn()});b.addEventListener("moveend",function(){a.Zn()});b.addEventListener("dragend",function(){a.Zn()});b.addEventListener("zoomend",function(){a.CC();a.xm();if(!b.ba.xb||b.ba.xb.eb()!=p)a.Ge&&a.Ge.aa(),a.an&&a.an.aa(),a.ne&&a.ne.aa(),a.oe&&a.oe.aa(),a.Qd&&a.Qd.aa(),a.yi=0,a.Cn&&clearInterval(a.Cn);a.Zn()});b.addEventListener("resize",function(){a.Zn()})}; Cj.Zn=function(){var a=this.map;this.eb&&10>a.la()&&(this.xm(),this.fx||(this.fx=this.iK(Fj,"MAP_CLICK_CITY")))};Cj.X_=function(a){var b=this.map,c=this.map.da;if(a&&this.vL!=a.PE+"_"+a.x+"_"+a.y){this.vL=a.PE+"_"+a.x+"_"+a.y;var e=[];e.push(F.url.proto+F.url.domain.TILE_ONLINE_URLS[Math.abs(a.x+a.y)%3]+"/js/?qt=vtileQuest&styles=pl");e.push("&x="+a.x+"&y="+a.y+"&z="+b.Za+"&v=056&fn=MPC_Mgr."+c+".getPoiData");ra(e.join(""))}}; Cj.getPoiData=function(a){var b=a.content[0],c=this.map;if(!(0b.uids.length)){for(var e={},a=t,f=[],g=0,i=b.uids.length;gthis.LZ&&(e=this.um.shift(),delete this.cp[e],delete e);a&&this.hH(this.zm)}};Cj.xm=function(){var a=this.map;this.lF&&(a.gx("MAP_CLICK_POI"),this.lF=s,this.zm=this.XF="")};Cj.CC=function(){var a=this.map;this.fx&&(a.gx("MAP_CLICK_CITY"),this.fx=s)}; Cj.Uk=function(){this.Ge&&this.Ge.aa();this.an&&this.an.aa();this.ne&&this.ne.aa();this.oe&&this.oe.aa();this.Qd&&this.Qd.aa();this.Cn&&clearInterval(this.Cn)};Cj.sS=function(a){for(var b=[],c=0,e=a.length;c