tuqin
3 天以前 ac695f6b977351916edbf16b7cd34ce8b6790adb
fix(map): 改用百度地图 v1.4(普通 PNG 瓦片),瓦片实测 12KB 真实地图

诊断页第 9 块定位到两个新事实:
1) 即使 v2.0 的 SDK,瓦片请求仍是 qt=vtile(矢量)且 v=2.1,
而矢量瓦片当前 ak 未授权,实测直连百度全部 403。
2) 瓦片协议仍是 https://<host>:9023,而该端口没有 SSL,必然 0 字节。

逐版本实测瓦片接口(同一坐标、同一 ak):
qt=vtile (v2.0/2.1/3.0) -> 403 / 152B ❌ 矢量瓦片未授权
qt=tile (v2.0/2.1/3.0) -> 200 / 12013B ✅ 普通 PNG 瓦片正常

v1.4 的关键差异(源码可见):
var streetLayer = new TileLayer({"transparentPng": true});
streetLayer["getTilesUrl"] = ... + "?qt=tile&x=...&styles=sl"
var TILE_ONLINE_URLS = [
"http://maponline0.bdimg.com/tile/", ... "http://maponline3.bdimg.com/tile/"
];
var BMap = window["BMap"] || {}; BMap.version = "1.4";
即:v1.4 主图层用的就是 qt=tile,且域名是完整 http:// URL,
改写后协议自动跟随页面(用 window.location.origin),彻底避开 https 问题。

新增 scripts/fix-bmap-sdk-v14.mjs,重写 public/bmap-sdk2d.js 为 v1.4 改写产物:
4 个瓦片域名 -> window.location.origin + /bmap-tileN/tile/
api/images/getmodules 等 -> window.location.origin + /bmap-api/...
共 14 处替换,语法 OK,BMap.version=1.4,144KB(比 875KB 的 GL 版小得多)
残留 8 处为卫星图(shangetu*)/路况(its.map)/统计(dlswbr)/帮助链接(lbsyun),不影响街道地图。

实测:
/bmap-sdk2d.js HTTP 200 / 147379B / 0.79s
/bmap-tile0/tile/?qt=tile&x=2381&y=1320&z=14&styles=sl
HTTP 200 / 12785B(真实地图瓦片)
已添加1个文件
已修改1个文件
82 ■■■■■ 文件已修改
public/bmap-sdk2d.js 2 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
scripts/fix-bmap-sdk-v14.mjs 80 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
public/bmap-sdk2d.js
@@ -1 +1 @@
window.B_BUSINESS_INFO={"business":0,"unauth":0,"popup_code":"Vyhqhnd5Mq","popup_block_time":60,"popup_timestamp":1793871530,"watermark_ratio":0,"signature":"7206d4","sign_content":"{\"business\":0,\"unauth\":0,\"popup_code\":\"Vyhqhnd5Mq\",\"popup_block_time\":60,\"popup_timestamp\":1793871530,\"watermark_ratio\":0}"};window.B_HOST_TILE_ONLINE_URLS=[(window.location.host + "/bmap-tile0"),(window.location.host + "/bmap-tile1"),(window.location.host + "/bmap-tile2"),(window.location.host + "/bmap-tile3")];window.B_HOST_TILE_BASE_URLS=["apimaponline0.bdimg.com\/starpic\/?qt=satepc&","apimaponline1.bdimg.com\/starpic\/?qt=satepc&","apimaponline2.bdimg.com\/starpic\/?qt=satepc&","apimaponline3.bdimg.com\/starpic\/?qt=satepc&"];window.TILE_VERSION={"ditu":{"normal":{"version":"088","updateDate":"20261102"},"satellite":{"version":"009","updateDate":"20261102"},"normalTraffic":{"version":"081","updateDate":"20261102"},"satelliteTraffic":{"version":"083","updateDate":"20261102"},"mapJS":{"version":"104","updateDate":"20261102"},"satelliteStreet":{"version":"083","updateDate":"20261102"},"earthVector":{"version":"001","updateDate":"20261102"}},"webapp":{"high_normal":{"version":"001","updateDate":"20261102"},"lower_normal":{"version":"002","updateDate":"20261102"}},"api_for_mobile":{"vector":{"version":"002","updateDate":"20261102"},"vectorIcon":{"version":"002","updateDate":"20261102"}}};window.BMAP_AUTHENTIC_KEY="Y2aJXiswwPxy6mwFs1z9c7U5gwX9WfUN";(function(){function aa(a){throw a;}var k=void 0,o=!0,p=null,q=!1;function t(){return function(){}}function ba(a){return function(b){this[a]=b}}function v(a){return function(){return this[a]}}function ea(a){return function(){return a}}var fa,ga=[];function ha(a){return function(){return ga[a].apply(this,arguments)}}function ia(a,b){return ga[a]=b}var ja,x=ja=x||{version:"1.3.4"};x.ba="$BAIDU$";window[x.ba]=window[x.ba]||{};x.object=x.object||{}; x.extend=x.object.extend=function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c]);return a};x.K=x.K||{};x.K.$=function(a){return"string"==typeof a||a instanceof String?document.getElementById(a):a&&a.nodeName&&(1==a.nodeType||9==a.nodeType)?a:p};x.$=x.Ec=x.K.$;x.K.U=function(a){a=x.K.$(a);if(a===p)return a;a.style.display="none";return a};x.U=x.K.U;x.lang=x.lang||{};x.lang.zg=function(a){return"[object String]"==Object.prototype.toString.call(a)};x.zg=x.lang.zg; x.K.$j=function(a){return x.lang.zg(a)?document.getElementById(a):a};x.$j=x.K.$j;x.K.getElementsByClassName=function(a,b){var c;if(a.getElementsByClassName)c=a.getElementsByClassName(b);else{var d=a;d==p&&(d=document);c=[];var d=d.getElementsByTagName("*"),e=d.length,f=RegExp("(^|\\s)"+b+"(\\s|$)"),g,i;for(i=g=0;g<e;g++)f.test(d[g].className)&&(c[i]=d[g],i++)}return c};x.getElementsByClassName=x.K.getElementsByClassName; x.K.contains=function(a,b){var c=x.K.$j,a=c(a),b=c(b);return a.contains?a!=b&&a.contains(b):!!(a.compareDocumentPosition(b)&16)};x.ca=x.ca||{};/msie (\d+\.\d)/i.test(navigator.userAgent)&&(x.ca.ma=x.ma=document.documentMode||+RegExp.$1);var ka={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",rowspan:"rowSpan",valign:"vAlign",usemap:"useMap",frameborder:"frameBorder"};8>x.ca.ma?(ka["for"]="htmlFor",ka["class"]="className"):(ka.htmlFor="for",ka.className="class");x.K.jH=ka; x.K.VF=function(a,b,c){a=x.K.$(a);if(a===p)return a;if("style"==b)a.style.cssText=c;else{b=x.K.jH[b]||b;a.setAttribute(b,c)}return a};x.VF=x.K.VF;x.K.WF=function(a,b){a=x.K.$(a);if(a===p)return a;for(var c in b)x.K.VF(a,c,b[c]);return a};x.WF=x.K.WF;x.dl=x.dl||{};(function(){var a=RegExp("(^[\\s\\t\\xa0\\u3000]+)|([\\u3000\\xa0\\s\\t]+$)","g");x.dl.trim=function(b){return(""+b).replace(a,"")}})();x.trim=x.dl.trim; x.dl.kp=function(a,b){var a=""+a,c=Array.prototype.slice.call(arguments,1),d=Object.prototype.toString;if(c.length){c=c.length==1?b!==p&&/\[object Array\]|\[object Object\]/.test(d.call(b))?b:c:c;return a.replace(/#\{(.+?)\}/g,function(a,b){var g=c[b];"[object Function]"==d.call(g)&&(g=g(b));return"undefined"==typeof g?"":g})}return a};x.kp=x.dl.kp; x.K.Tb=function(a,b){a=x.K.$(a);if(a===p)return a;for(var c=a.className.split(/\s+/),d=b.split(/\s+/),e,f=d.length,g,i=0;i<f;++i){g=0;for(e=c.length;g<e;++g)if(c[g]==d[i]){c.splice(g,1);break}}a.className=c.join(" ");return a};x.Tb=x.K.Tb; x.K.ly=function(a,b,c){a=x.K.$(a);if(a===p)return a;var d;if(a.insertAdjacentHTML)a.insertAdjacentHTML(b,c);else{d=a.ownerDocument.createRange();b=b.toUpperCase();if(b=="AFTERBEGIN"||b=="BEFOREEND"){d.selectNodeContents(a);d.collapse(b=="AFTERBEGIN")}else{b=b=="BEFOREBEGIN";d[b?"setStartBefore":"setEndAfter"](a);d.collapse(b)}d.insertNode(d.createContextualFragment(c))}return a};x.ly=x.K.ly;x.K.show=function(a){a=x.K.$(a);if(a===p)return a;a.style.display="";return a};x.show=x.K.show; x.K.kE=function(a){a=x.K.$(a);return a===p?a:a.nodeType==9?a:a.ownerDocument||a.document};x.K.Ta=function(a,b){a=x.K.$(a);if(a===p)return a;for(var c=b.split(/\s+/),d=a.className,e=" "+d+" ",f=0,g=c.length;f<g;f++)e.indexOf(" "+c[f]+" ")<0&&(d=d+(" "+c[f]));a.className=d;return a};x.Ta=x.K.Ta;x.K.gC=x.K.gC||{};x.K.Zl=x.K.Zl||[];x.K.Zl.filter=function(a,b,c){for(var d=0,e=x.K.Zl,f;f=e[d];d++)if(f=f[c])b=f(a,b);return b}; x.dl.pP=function(a){return a.indexOf("-")<0&&a.indexOf("_")<0?a:a.replace(/[-_][^-_]/g,function(a){return a.charAt(1).toUpperCase()})};x.K.R0=function(a){x.K.Ct(a,"expand")?x.K.Tb(a,"expand"):x.K.Ta(a,"expand")}; x.K.Ct=function(a){if(arguments.length<=0||typeof a==="function")return this;if(this.size()<=0)return q;var a=a.replace(/^\s+/g,"").replace(/\s+$/g,"").replace(/\s+/g," "),b=a.split(" "),c;x.forEach(this,function(a){for(var a=a.className,e=0;e<b.length;e++)if(!~(" "+a+" ").indexOf(" "+b[e]+" ")){c=q;return}c!==q&&(c=o)});return c}; x.K.zj=function(a,b){var c=x.K,a=c.$(a);if(a===p)return a;var b=x.dl.pP(b),d=a.style[b];if(!d)var e=c.gC[b],d=a.currentStyle||(x.ca.ma?a.style:getComputedStyle(a,p)),d=e&&e.get?e.get(a,d):d[e||b];if(e=c.Zl)d=e.filter(b,d,"get");return d};x.zj=x.K.zj;/opera\/(\d+\.\d)/i.test(navigator.userAgent)&&(x.ca.opera=+RegExp.$1);x.ca.bN=/webkit/i.test(navigator.userAgent);x.ca.zZ=/gecko/i.test(navigator.userAgent)&&!/like gecko/i.test(navigator.userAgent);x.ca.XE="CSS1Compat"==document.compatMode; x.K.ia=function(a){a=x.K.$(a);if(a===p)return a;var b=x.K.kE(a),c=x.ca,d=x.K.zj;c.zZ>0&&b.getBoxObjectFor&&d(a,"position");var e={left:0,top:0},f;if(a==(c.ma&&!c.XE?b.body:b.documentElement))return e;if(a.getBoundingClientRect){a=a.getBoundingClientRect();e.left=Math.floor(a.left)+Math.max(b.documentElement.scrollLeft,b.body.scrollLeft);e.top=Math.floor(a.top)+Math.max(b.documentElement.scrollTop,b.body.scrollTop);e.left=e.left-b.documentElement.clientLeft;e.top=e.top-b.documentElement.clientTop; a=b.body;b=parseInt(d(a,"borderLeftWidth"));d=parseInt(d(a,"borderTopWidth"));if(c.ma&&!c.XE){e.left=e.left-(isNaN(b)?2:b);e.top=e.top-(isNaN(d)?2:d)}}else{f=a;do{e.left=e.left+f.offsetLeft;e.top=e.top+f.offsetTop;if(c.bN>0&&d(f,"position")=="fixed"){e.left=e.left+b.body.scrollLeft;e.top=e.top+b.body.scrollTop;break}f=f.offsetParent}while(f&&f!=a);if(c.opera>0||c.bN>0&&d(a,"position")=="absolute")e.top=e.top-b.body.offsetTop;for(f=a.offsetParent;f&&f!=b.body;){e.left=e.left-f.scrollLeft;if(!c.opera|| f.tagName!="TR")e.top=e.top-f.scrollTop;f=f.offsetParent}}return e};/firefox\/(\d+\.\d)/i.test(navigator.userAgent)&&(x.ca.We=+RegExp.$1);/BIDUBrowser/i.test(navigator.userAgent)&&(x.ca.R2=o);var la=navigator.userAgent;/(\d+\.\d)?(?:\.\d)?\s+safari\/?(\d+\.\d+)?/i.test(la)&&!/chrome/i.test(la)&&(x.ca.PF=+(RegExp.$1||RegExp.$2));/chrome\/(\d+\.\d)/i.test(navigator.userAgent)&&(x.ca.dx=+RegExp.$1);x.kc=x.kc||{}; x.kc.Gb=function(a,b){var c,d,e=a.length;if("function"==typeof b)for(d=0;d<e;d++){c=a[d];c=b.call(a,c,d);if(c===q)break}return a};x.Gb=x.kc.Gb;x.lang.ba=function(){return"TANGRAM__"+(window[x.ba]._counter++).toString(36)};window[x.ba]._counter=window[x.ba]._counter||1;window[x.ba]._instances=window[x.ba]._instances||{};x.lang.Nt=function(a){return"[object Function]"==Object.prototype.toString.call(a)};x.lang.Da=function(a){this.ba=a||x.lang.ba();window[x.ba]._instances[this.ba]=this}; window[x.ba]._instances=window[x.ba]._instances||{};x.lang.Da.prototype.oi=ha(2);x.lang.Da.prototype.toString=function(){return"[object "+(this.AR||"Object")+"]"};x.lang.Fz=function(a,b){this.type=a;this.returnValue=o;this.target=b||p;this.currentTarget=p}; x.lang.Da.prototype.addEventListener=function(a,b,c){if(x.lang.Nt(b)){!b.Rj&&(b.Rj={});!this.Pi&&(this.Pi={});var d=this.Pi,e;if(typeof c=="string"&&c){/[^\w\-]/.test(c)&&aa("nonstandard key:"+c);e=b.Dt=c}a.indexOf("on")!=0&&(a="on"+a);typeof d[a]!="object"&&(d[a]={});typeof b.Rj[a]!="object"&&(b.Rj[a]={});e=e||x.lang.ba();!b.Rj[a].Dt&&(b.Rj[a].Dt=e);d[a][e]=b}}; x.lang.Da.prototype.removeEventListener=function(a,b){a.indexOf("on")!=0&&(a="on"+a);if(x.lang.Nt(b)){if(!b.Rj||!b.Rj[a])return;b=b.Rj[a].Dt}else if(!x.lang.zg(b))return;!this.Pi&&(this.Pi={});var c=this.Pi;c[a]&&c[a][b]&&delete c[a][b]}; x.lang.Da.prototype.dispatchEvent=function(a,b){x.lang.zg(a)&&(a=new x.lang.Fz(a));!this.Pi&&(this.Pi={});var b=b||{},c;for(c in b)a[c]=b[c];var d=this.Pi,e=a.type;a.target=a.target||this;a.currentTarget=this;e.indexOf("on")!=0&&(e="on"+e);x.lang.Nt(this[e])&&this[e].apply(this,arguments);if(typeof d[e]=="object")for(c in d[e])d[e][c].apply(this,arguments);return a.returnValue}; x.lang.ua=function(a,b,c){var d,e,f=a.prototype;e=new Function;e.prototype=b.prototype;e=a.prototype=new e;for(d in f)e[d]=f[d];a.prototype.constructor=a;a.J0=b.prototype;if("string"==typeof c)e.AR=c};x.ua=x.lang.ua;x.lang.Lc=function(a){return window[x.ba]._instances[a]||p};x.platform=x.platform||{};x.platform.VM=/macintosh/i.test(navigator.userAgent);x.platform.E4=/MicroMessenger/i.test(navigator.userAgent);x.platform.cN=/windows/i.test(navigator.userAgent);x.platform.HZ=/x11/i.test(navigator.userAgent);x.platform.Xm=/android/i.test(navigator.userAgent);/android (\d+(\.\d)?)/i.test(navigator.userAgent)&&(x.platform.CK=x.CK=RegExp.$1);x.platform.BZ=/ipad/i.test(navigator.userAgent);x.platform.TE=/iphone/i.test(navigator.userAgent); function ma(a,b){a.domEvent=b=window.event||b;a.clientX=b.clientX||b.pageX;a.clientY=b.clientY||b.pageY;a.offsetX=b.offsetX||b.layerX;a.offsetY=b.offsetY||b.layerY;a.screenX=b.screenX;a.screenY=b.screenY;a.ctrlKey=b.ctrlKey||b.metaKey;a.shiftKey=b.shiftKey;a.altKey=b.altKey;if(b.touches){a.touches=[];for(var c=0;c<b.touches.length;c++)a.touches.push({clientX:b.touches[c].clientX,clientY:b.touches[c].clientY,screenX:b.touches[c].screenX,screenY:b.touches[c].screenY,pageX:b.touches[c].pageX,pageY:b.touches[c].pageY, target:b.touches[c].target,identifier:b.touches[c].identifier})}if(b.changedTouches){a.changedTouches=[];for(c=0;c<b.changedTouches.length;c++)a.changedTouches.push({clientX:b.changedTouches[c].clientX,clientY:b.changedTouches[c].clientY,screenX:b.changedTouches[c].screenX,screenY:b.changedTouches[c].screenY,pageX:b.changedTouches[c].pageX,pageY:b.changedTouches[c].pageY,target:b.changedTouches[c].target,identifier:b.changedTouches[c].identifier})}if(b.targetTouches){a.targetTouches=[];for(c=0;c< b.targetTouches.length;c++)a.targetTouches.push({clientX:b.targetTouches[c].clientX,clientY:b.targetTouches[c].clientY,screenX:b.targetTouches[c].screenX,screenY:b.targetTouches[c].screenY,pageX:b.targetTouches[c].pageX,pageY:b.targetTouches[c].pageY,target:b.targetTouches[c].target,identifier:b.targetTouches[c].identifier})}a.rotation=b.rotation;a.scale=b.scale;return a}x.lang.wx=function(a){var b=window[x.ba];b.PT&&delete b.PT[a]};x.event={}; x.M=x.event.M=function(a,b,c){if(!(a=x.$(a)))return a;b=b.replace(/^on/,"");a.addEventListener?a.addEventListener(b,c,q):a.attachEvent&&a.attachEvent("on"+b,c);return a};x.dd=x.event.dd=function(a,b,c){if(!(a=x.$(a)))return a;b=b.replace(/^on/,"");a.removeEventListener?a.removeEventListener(b,c,q):a.detachEvent&&a.detachEvent("on"+b,c);return a}; x.K.Ct=function(a,b){if(!a||!a.className||typeof a.className!="string")return q;var c=-1;try{c=a.className==b||a.className.search(RegExp("(\\s|^)"+b+"(\\s|$)"))}catch(d){return q}return c>-1};x.IL=function(){function a(a){document.addEventListener&&(this.element=a,this.ML=this.Mk?"touchstart":"mousedown",this.TD=this.Mk?"touchmove":"mousemove",this.SD=this.Mk?"touchend":"mouseup",this.wh=q,this.Eu=this.Du=0,this.element.addEventListener(this.ML,this,q),ja.M(this.element,"mousedown",t()),this.handleEvent(p))}a.prototype={Mk:"ontouchstart"in window||"createTouch"in document,start:function(a){na(a);this.wh=q;this.Du=this.Mk?a.touches[0].clientX:a.clientX;this.Eu=this.Mk?a.touches[0].clientY: a.clientY;this.element.addEventListener(this.TD,this,q);this.element.addEventListener(this.SD,this,q)},move:function(a){oa(a);var c=this.Mk?a.touches[0].clientY:a.clientY;if(10<Math.abs((this.Mk?a.touches[0].clientX:a.clientX)-this.Du)||10<Math.abs(c-this.Eu))this.wh=o},end:function(a){oa(a);this.wh||(a=document.createEvent("Event"),a.initEvent("tap",q,o),this.element.dispatchEvent(a));this.element.removeEventListener(this.TD,this,q);this.element.removeEventListener(this.SD,this,q)},handleEvent:function(a){if(a)switch(a.type){case this.ML:this.start(a); break;case this.TD:this.move(a);break;case this.SD:this.end(a)}}};return function(b){return new a(b)}}();var B=window.BMap||{};B.version="2.0";function pa(a,b){if(navigator.cookieEnabled){var c=new Date;c.setTime(c.getTime()+2592E6);document.cookie=a+"="+escape(b)+";expires="+c.toGMTString()}else localStorage?localStorage.setItem(a,b):sessionStorage&&sessionStorage.setItem(a,b)}B.RV=0.34>Math.random();0<=B.version.indexOf("#")&&(B.version="2.0");B.$r=[];B.af=function(a){this.$r.push(a)};B.Qr=[];B.jn=function(a){this.Qr.push(a)}; B.q1=function(){if(!x.ca.ma){var a=+new Date,b=H("script",{type:"text/javascript",async:""});b.charset="utf-8";b.src="https://dlswbr.baidu.com/heicha/mw/abclite-2063-s.js?_t="+a;b.onload=function(){window.___abvk&&pa("SECKEY_ABVK",window.___abvk)};window.__abbaidu_2063_cb=function(a){a=JSON.parse(a);pa("BMAP_SECKEY",a.data)};b.addEventListener?b.addEventListener("load",function(a){a=a.target;a.parentNode.removeChild(a)},q):b.attachEvent&&b.attachEvent("onreadystatechange",function(){var a=window.event.srcElement; a&&(a.readyState=="loaded"||a.readyState=="complete")&&a.parentNode.removeChild(a)});setTimeout(function(){document.getElementsByTagName("head")[0].appendChild(b);b=p},1)}}; B.Tw=B.apiLoad||function(a){if(B.version&&B.version>=1.5){var b=window._BMapSecurityConfig&&window._BMapSecurityConfig.serviceHost?B.Xb+"?qt=verify&v=2.1":B.Xb+"?qt=verify&v=2.1&ak="+qa;a&&(b=b+"&fromPanorama="+a);ra(b,function(a){if(a&&a.popup===1&&a.error_msg)sa(a.error_msg,{Yc:"verify"});else if(a&&a.error!==0){B=p;var b="\u60a8\u63d0\u4f9b\u7684\u5bc6\u94a5\u4e0d\u662f\u6709\u6548\u7684\u767e\u5ea6LBS\u5f00\u653e\u5e73\u53f0\u5bc6\u94a5\u3002\u60a8\u53ef\u4ee5\u8bbf\u95ee\u5982\u4e0b\u7f51\u5740\u4e86\u89e3\u5982\u4f55\u83b7\u53d6\u6709\u6548\u7684\u5bc6\u94a5\uff1ahttp://lbsyun.baidu.com/apiconsole/key#\u3002";a.error&& ta[a.error]&&(b=ta[a.error]+"\u8be6\u60c5\u67e5\u770b\uff1ahttp://lbsyun.baidu.com/apiconsole/key#\u3002");alert(b);if(typeof map!=="undefined"&&typeof map.Fa==="function"){map.Fa().innerHTML="";map.Pi={}}}})}};var qa=window.BMAP_AUTHENTIC_KEY;window.BMAP_AUTHENTIC_KEY=p; var ua=window.BMap_loadScriptTime,va=(new Date).getTime(),wa=p,xa=o,ya=5042,za=5002,Aa=5003,Ba="load_mapclick",Ca=5038,Da=5041,Ea=5047,Fa=5036,Ga=5039,Ha=5037,Ia=5040,Ja=5011,Ka=7E3,ta={101:"\u60a8\u6240\u4f7f\u7528\u7684\u5bc6\u94a5ak\u6709\u95ee\u9898\uff0c\u4e0d\u652f\u6301jsapi\u670d\u52a1\uff0c\u53ef\u4ee5\u8bbf\u95ee\u8be5\u7f51\u5740\u4e86\u89e3\u5982\u4f55\u83b7\u53d6\u6709\u6548\u5bc6\u94a5\u3002",102:"MCODE\u53c2\u6570\u4e0d\u5b58\u5728\uff0cmobile\u7c7b\u578bMCODE\u53c2\u6570\u5fc5\u9700\u3002", 200:"APP\u4e0d\u5b58\u5728\uff0cAK\u6709\u8bef\u8bf7\u68c0\u67e5\u518d\u91cd\u8bd5\u3002",201:"APP\u88ab\u60a8\u7981\u7528\u5566\u3002",202:"APP\u88ab\u7ba1\u7406\u5458\u5220\u9664\u5566\u3002",203:"APP\u7c7b\u578b\u9519\u8bef\u3002",210:"APP IP\u6821\u9a8c\u5931\u8d25\u3002",220:"APP Referer\u6821\u9a8c\u5931\u8d25\u3002\u8bf7\u68c0\u67e5\u8be5ak\u8bbe\u7f6e\u7684\u767d\u540d\u5355\u4e0e\u8bbf\u95ee\u6240\u6709\u7684\u57df\u540d\u662f\u5426\u4e00\u81f4\u3002",230:"APP Mcode\u7801\u6821\u9a8c\u5931\u8d25\u3002", 240:"APP\u670d\u52a1\u88ab\u7981\u7528\u4e86\u3002",250:"\u8be5\u7528\u6237\u4e0d\u5b58\u5728...",251:"\u8be5\u7528\u6237\u88ab\u81ea\u5df1\u5220\u9664\u5566\u3002",252:"\u8be5\u7528\u6237\u88ab\u7ba1\u7406\u5458\u5220\u9664\u5566\u3002",260:"\u60a8\u6240\u4f7f\u7528\u7684\u5bc6\u94a5AK\u4e0d\u5305\u542b\u8be5\u670d\u52a1\u5462\uff0c",261:"\u60a8\u6240\u4f7f\u7528\u7684\u5bc6\u94a5AK\u7684\u8be5\u670d\u52a1\u88ab\u7981\u7528\u5566\uff0c",401:"\u60a8\u6240\u4f7f\u7528\u7684AK\u5e76\u53d1\u8d85\u9650\u4e86\uff0c", 302:"\u60a8\u6240\u4f7f\u7528\u7684AK\u5929\u914d\u989d\u8d85\u9650\u4e86\uff0c"};var La=0,Ma={};if(window.B_BUSINESS_INFO&&window.B_BUSINESS_INFO.sign_content)try{Ma=JSON.parse(window.B_BUSINESS_INFO.sign_content)}catch(Na){Ma=window.B_BUSINESS_INFO}var Pa="BMAP_COORD_GCJ02";window.BMAP_COORD_MERCATOR="BMAP_COORD_MERCATOR";window.BMAP_COORD_GCJ02="BMAP_COORD_GCJ02";window.BMAP_COORD_BD09="BMAP_COORD_BD09";window.BMAP_COORD_GCJ02MERCATOR="BMAP_COORD_GCJ02MERCATOR";window.BMAP_COORD_WGS84="BMAP_COORD_WGS84";window.BMAP_COORD_EPSG3857="BMAP_COORD_EPSG3857"; function Qa(a,b){"undefined"!==typeof Sa&&I&&I("Map");if(a=x.$(a)){var c=this;x.lang.Da.call(c);b=b||{};c.B={Dk:b.fixedZoomCenter||q,MC:200,Hb:o,Ex:q,LD:o,hp:o,ip:b.enableWheelZoom||q,GL:o,ND:o,Cm:o,bt:o,Dm:o,fp:b.enable3DBuilding||q,Hc:25,C1:240,TV:450,Yb:J.Yb,Kd:J.Kd,oy:!!b.oy,gc:Math.round(b.minZoom)||1,$b:Math.round(b.maxZoom)||19,yb:b.mapType||Ta,v5:q,BL:b.drawer||La,Dx:o,Ax:500,HX:b.enableHighResolution!==q,sj:b.enableMapClick!==q,devicePixelRatio:b.devicePixelRatio||window.devicePixelRatio|| 1,zG:99,Be:b.mapStyle||p,PZ:b.logoControl===q?q:o,jW:[],Xw:b.beforeClickIcon||p,GD:b.enableBizAuthLogo===q?q:o,mx:b.coordsType||5};window.GCJMAP=this;c.B.Be&&(this.qZ(c.B.Be.controls),this.QM(c.B.Be.geotableId));c.B.Be&&c.B.Be.styleId&&c.o4(c.B.Be.styleId);c.B.um={dark:{backColor:"#2D2D2D",textColor:"#bfbfbf",iconUrl:"dicons"},normal:{backColor:"#F3F1EC",textColor:"#c61b1b",iconUrl:"icons"},light:{backColor:"#EBF8FC",textColor:"#017fb4",iconUrl:"licons"}};b.enableAutoResize&&(c.B.bt=b.enableAutoResize); b.enableStreetEntrance===q&&(c.B.Dm=b.enableStreetEntrance);b.enableDeepZoom===q&&(c.B.GL=b.enableDeepZoom);var d=c.B.jW;if(K())for(var e=0,f=d.length;e<f;e++)if(x.ca[d[e]]){c.B.devicePixelRatio=1;break}d=-1<navigator.userAgent.toLowerCase().indexOf("android");e=-1<navigator.userAgent.toLowerCase().indexOf("mqqbrowser");if(-1<navigator.userAgent.toLowerCase().indexOf("UCBrowser")||d&&e)c.B.zG=99;c.Ua=a;c.$B(a);a.unselectable="on";a.innerHTML="";a.appendChild(c.va());b.size&&this.Fe(b.size);d=c.wb(); c.width=d.width;c.height=d.height;c.offsetX=0;c.offsetY=0;c.platform=a.firstChild;c.De=c.platform.firstChild;c.De.style.width=c.width+"px";c.De.style.height=c.height+"px";c.ae={};c.te=new L(0,0);c.fc=new L(0,0);c.Oa=3;c.Mc=0;c.eD=p;c.dD=p;c.Sb="";c.fx="";c.Vh={};c.Vh.custom={};c.Sa=0;b.useWebGL===q&&Va(q);c.P=new Wa(a,{Yc:"api",UT:o});c.P.U();c.P.bz(c);b=b||{};d=c.yb=c.B.yb;c.Pd=d.Mm();c.B.yb&&this.oa().bG(this);d===Xa&&Ya(za);d===Za&&Ya(Aa);I("Map","instance","engine");d===ab||d===Za?I("Map","maptype", "satellite"):I("Map","maptype","normal");d=c.B;d.HP=Math.round(b.minZoom);d.GP=Math.round(b.maxZoom);c.rv();c.R={Ic:q,lc:0,Lp:0,gN:0,I4:0,EC:q,HF:-1,Ue:[]};c.platform.style.cursor=c.B.Yb;for(e=0;e<B.$r.length;e++)B.$r[e](c);c.R.HF=e;c.da();bb.load("map",function(){c.Bb()});c.B.sj&&(setTimeout(function(){Ya(Ba)},1E3),bb.load("mapclick",function(){window.MPC_Mgr=window.MPC_Mgr||{};window.MPC_Mgr[c.ba]=new cb(c)},o));db()&&bb.load("oppc",function(){c.hv()});K()&&bb.load("opmb",function(){c.hv()});/PC/i.test(navigator.userAgent)&& (!db()&&!K())&&bb.load("oppc",function(){c.hv()});a=p;c.nC=[]}}x.lang.ua(Qa,x.lang.Da,"Map"); x.extend(Qa.prototype,{va:function(){var a=H("div"),b=a.style;b.overflow="visible";b.position="absolute";b.zIndex="0";b.top=b.left="0px";var b=H("div",{"class":"BMap_mask"}),c=b.style;c.position="absolute";c.top=c.left="0px";c.zIndex="9";c.overflow="hidden";c.WebkitUserSelect="none";a.appendChild(b);return a},$B:function(a){var b=a.style;b.overflow="hidden";"absolute"!==eb(a).position&&(b.position="relative",b.zIndex=0);b.backgroundColor="#F3F1EC";b.color="#000";b.textAlign="left"},da:function(){var a= this;a.Ko=function(){var b=a.wb();if(a.width!==b.width||a.height!==b.height){var c=new M(a.width,a.height),d=new N("onbeforeresize");d.size=c;a.dispatchEvent(d);a.sk((b.width-a.width)/2,(b.height-a.height)/2);a.De.style.width=(a.width=b.width)+"px";a.De.style.height=(a.height=b.height)+"px";c=new N("onresize");c.size=b;a.dispatchEvent(c)}};a.B.bt&&(a.R.lm=setInterval(a.Ko,80))},sk:function(a,b,c,d){var e=this.oa().yc(this.ga()),f=this.Pd,g=o;c&&O.SE(c)&&(this.te=new L(c.lng,c.lat),g=q);if(c=c&&d? f.Ok(c,this.Sb):this.fc)if(this.fc=new L(c.lng+a*e,c.lat-b*e),(a=f.uh(this.fc,this.Sb))&&g)this.te=a},Mg:function(a,b){if(fb(a)&&(this.rv(),this.dispatchEvent(new N("onzoomstart")),a=this.no(a).zoom,a!==this.Oa)){this.Mc=this.Oa;this.Oa=a;var c;b?c=new L(gb(cp,me).lng,gb(b,me).lat):this.oh()&&(c=this.oh().ia());c&&(c=this.Cc(c,this.Mc),this.sk(this.width/2-c.x,this.height/2-c.y,this.Rb(c,this.Mc),o));this.dispatchEvent(new N("onzoomstartcode"))}},Oc:function(a){this.Mg(a)},DG:function(a){this.Mg(this.Oa+ 1,a)},EG:function(a){this.Mg(this.Oa-1,a)},Ci:function(a){if(a instanceof O||a instanceof L)a=gb(a,this),this.fc=this.Pd.Ok(a,this.Sb),this.te=L.SE(a)?new L(a.lng,a.lat):this.Pd.uh(this.fc,this.Sb)},Dg:function(a,b){a=Math.round(a)||0;b=Math.round(b)||0;this.sk(-a,-b)},em:function(a){a&&hb(a.Le)&&(a.Le(this),this.dispatchEvent(new N("onaddcontrol",a)))},tO:function(a){a&&hb(a.remove)&&(a.remove(),this.dispatchEvent(new N("onremovecontrol",a)))},No:function(a){a&&hb(a.ra)&&(a.ra(this),this.dispatchEvent(new N("onaddcontextmenu", a)))},Xp:function(a){a&&hb(a.remove)&&(this.dispatchEvent(new N("onremovecontextmenu",a)),a.remove())},Ka:function(a){a&&hb(a.Le)&&(a.Le(this),this.dispatchEvent(new N("onaddoverlay",a)))},Ub:function(a){a&&hb(a.remove)&&(a.remove(),this.dispatchEvent(new N("onremoveoverlay",a)))},XK:function(){this.dispatchEvent(new N("onclearoverlays"))},eh:function(a){a&&this.dispatchEvent(new N("onaddtilelayer",a))},Dh:function(a){a&&this.dispatchEvent(new N("onremovetilelayer",a))},Jg:function(a){if(this.yb!== a){var b=new N("onsetmaptype");b.m5=this.yb;this.yb=this.B.yb=a;this.Pd=this.yb.Mm();this.sk(0,0,this.wc(),o);this.yb.bG(this);this.rv();var c=this.no(this.ga()).zoom;this.Mg(c);this.dispatchEvent(b);b=new N("onmaptypechange");b.Oa=c;b.yb=a;this.dispatchEvent(b);a===ab||a===Za?(Ya(Aa),I("Map","maptype","satellite")):I("Map","maptype","normal")}},$f:function(a){var b=this;if(a instanceof O||a instanceof L)a=new L(gb(a,b).lng,gb(a,b).lat),b.Ci(a,{noAnimation:o});else if(ib(a))if(b.yb===Xa){var c=J.IC[a]; c&&(pt=c.o,b.$f(pt))}else{var d=this.qI();d.cG(function(c){0===d.Nm()&&2===d.Ha.result.type&&(b.$f(c.Kk(0).point),Xa.Gk(a)&&b.XF(a))});d.search(a,{log:"center"})}},Id:function(a,b){"[object Undefined]"!==Object.prototype.toString.call(b)&&(b=parseInt(b));B.Rn("cus.fire","time",{z_loadscripttime:va-ua});var c=this;if(ib(a))if(c.yb===Xa){var d=J.IC[a];d&&(pt=d.o,c.Id(pt,b))}else{var e=c.qI();e.cG(function(d){if(0===e.Nm()&&(2===e.Ha.result.type||11===e.Ha.result.type)){var d=d.Kk(0).point,f=b||P.Ix(e.Ha.content.level, c);c.Id(d,f);Xa.Gk(a)&&c.XF(a)}});e.search(a,{log:"center"})}else if((a instanceof L||a instanceof O)&&b){var b=c.no(b).zoom,f=gb(a,c);c.Mc=c.Oa||b;c.Oa=b;d=c.te;c.te=new L(f.lng,f.lat);c.fc=c.Pd.Ok(c.te,c.Sb);c.eD=c.eD||c.Oa;c.dD=c.dD||c.te;var g=new N("onload"),i=new N("onloadcode");g.point=new L(f.lng,f.lat);g.pixel=c.Cc(c.te,c.Oa);g.zoom=b;c.loaded||(c.loaded=o,c.dispatchEvent(g),wa||(wa=jb()),ra(window._BMapSecurityConfig&&window._BMapSecurityConfig.serviceHost?window._BMapSecurityConfig.serviceHost+ "?qt=business":("http:"===window.location.protocol?"http:":"https:")+"//" + window.location.host + "/bmap-api?qt=business&ak="+qa,function(a){a&&(0===a.error&&a.content&&0===a.content.business&&1===a.content.unauth)&&0<c.ab.Zt&&(c.ab.Zt=0,sa("\u68c0\u6d4b\u5230\u5f53\u524d\u4ea7\u54c1\u4f7f\u7528\u7684\u5730\u56fe\u670d\u52a1\u672a\u5b8c\u6210\u6280\u672f\u670d\u52a1\u6388\u6743\uff0c\u53ef\u80fd\u51fa\u73b0\u4e0d\u7a33\u5b9a/\u53d7\u9650\uff1b\u3010\u4ea7\u54c1\u7528\u6237\u3011\u8bf7\u8054\u7cfb\u4ea7\u54c1\u5b98\u65b9\u5ba2\u670d\uff1b\u3010\u4ea7\u54c1\u5f00\u53d1\u8005\u3011\u8bf7\u4e8e3\u4e2a\u5de5\u4f5c\u65e5\u5185\u5b8c\u6210\u6388\u6743\u6216\u8054\u7cfb\uff1ahttps://lbsyun.baidu.com/surl/f5d6f5 \u6216\u8054\u7cfb\u7535\u8bdd\uff1a400-099-8998\uff08\u5f00\u53d1\u8005\u4e13\u7528\uff09\u3002", {Yc:"vtile"}),B.Bn&&B.Bn.update("\u68c0\u6d4b\u5230\u5f53\u524d\u4ea7\u54c1\u4f7f\u7528\u7684\u5730\u56fe\u670d\u52a1\u672a\u5b8c\u6210\u6280\u672f\u670d\u52a1\u6388\u6743\uff0c\u53ef\u80fd\u51fa\u73b0\u4e0d\u7a33\u5b9a/\u53d7\u9650\uff1b\u3010\u4ea7\u54c1\u7528\u6237\u3011\u8bf7\u8054\u7cfb\u4ea7\u54c1\u5b98\u65b9\u5ba2\u670d\uff1b\u3010\u4ea7\u54c1\u5f00\u53d1\u8005\u3011\u8bf7\u4e8e3\u4e2a\u5de5\u4f5c\u65e5\u5185\u5b8c\u6210\u6388\u6743\u6216\u8054\u7cfb\uff1ahttps://lbsyun.baidu.com/surl/f5d6f5 \u6216\u8054\u7cfb\u7535\u8bdd\uff1a400-099-8998\uff08\u5f00\u53d1\u8005\u4e13\u7528\uff09\u3002"))})); c.dispatchEvent(i);f=new N("onmoveend");f.TH="centerAndZoom";d.cb(c.te)||c.dispatchEvent(f);c.dispatchEvent(new N("onmoveend"));c.Mc!==c.Oa&&(d=new N("onzoomend"),d.TH="centerAndZoom",c.dispatchEvent(d));c.B.fp&&c.fp()}},qI:function(){this.R.rN||(this.R.rN=new kb(1));return this.R.rN},reset:function(){this.Id(this.dD,this.eD,o)},enableDragging:function(){this.B.Hb=o},disableDragging:function(){this.B.Hb=q},enableInertialDragging:function(){this.B.Dx=o},disableInertialDragging:function(){this.B.Dx= q},enableScrollWheelZoom:function(){this.B.ip=o},disableScrollWheelZoom:function(){this.B.ip=q},enableContinuousZoom:function(){this.B.hp=o},disableContinuousZoom:function(){this.B.hp=q},enableDoubleClickZoom:function(){this.B.LD=o},disableDoubleClickZoom:function(){this.B.LD=q},enableKeyboard:function(){this.B.Ex=o},disableKeyboard:function(){this.B.Ex=q},enablePinchToZoom:function(){this.B.Cm=o},disablePinchToZoom:function(){this.B.Cm=q},enableAutoResize:function(){this.B.bt=o;this.Ko();this.R.lm|| (this.R.lm=setInterval(this.Ko,80))},disableAutoResize:function(){this.B.bt=q;this.R.lm&&(clearInterval(this.R.lm),this.R.lm=p)},enableBizAuthLogo:function(){this.B.GD=o;this.Yw&&this.Yw.show()},disableBizAuthLogo:function(){this.B.GD=q;this.Yw&&this.Yw.U()},fp:function(){this.B.fp=o;this.Zn||(this.Zn=new lb({RL:o}),this.eh(this.Zn))},rX:function(){this.B.fp=q;this.Zn&&(this.Dh(this.Zn),this.Zn=p,delete this.Zn)},wb:function(){return this.Ns&&this.Ns instanceof M?new M(this.Ns.width,this.Ns.height): new M(this.Ua.clientWidth,this.Ua.clientHeight)},Fe:function(a){a&&a instanceof M?(this.Ns=a,this.Ua.style.width=a.width+"px",this.Ua.style.height=a.height+"px"):this.Ns=p},wc:v("te"),pc:function(){return mb(this.te,this)},ga:v("Oa"),GW:function(){this.Ko()},no:function(a){var b=this.B.gc,c=this.B.$b,d=q,a=Math.round(a);a<b&&(d=o,a=b);a>c&&(d=o,a=c);return{zoom:a,UD:d}},Fa:v("Ua"),Cc:function(a,b){b=b||this.ga();return this.Pd.Vp(a,b,this.fc,this.wb(),this.Sb)},Vp:function(a,b){b=b||this.ga();if(a&& (a instanceof O||a instanceof L))return a=gb(a,this),this.Pd.Vp(a,b,this.fc,this.wb(),this.Sb)},Rb:function(a,b){b=b||this.ga();return this.Pd.Eg(a,b,this.fc,this.wb(),this.Sb)},Eg:function(a,b){b=b||this.ga();return mb(this.Rb(a,b),this)},$e:function(a,b){if(a){var a=gb(a,this),c=this.Cc(new L(a.lng,a.lat),b);c.x-=this.offsetX;c.y-=this.offsetY;return c}},vU:function(a,b){if(a){var c=new Q(a.x,a.y);c.x+=this.offsetX;c.y+=this.offsetY;return this.Rb(c,b)}},gO:function(a,b){if(a){var c=new Q(a.x,a.y); c.x+=this.offsetX;c.y+=this.offsetY;return this.Eg(c,b)}},pointToPixelFor3D:function(a,b){var c=map.Sb;this.yb===Xa&&c&&nb.cL(a,this,b)},g5:function(a,b){var c=map.Sb;this.yb===Xa&&c&&nb.bL(a,this,b)},h5:function(a,b){var c=this,d=map.Sb;c.yb===Xa&&d&&nb.cL(a,c,function(a){a.x-=c.offsetX;a.y-=c.offsetY;b&&b(a)})},e5:function(a,b){var c=map.Sb;this.yb===Xa&&c&&(a.x+=this.offsetX,a.y+=this.offsetY,nb.bL(a,this,b))},Md:function(a){if(!this.ny())return new ob;var b=a||{},a=b.margins||[0,0,0,0],c=b.zoom|| p,b=this.Eg({x:a[3],y:this.height-a[2]},c),a=this.Eg({x:this.width-a[1],y:a[0]},c);return new ob(b,a)},ny:function(){return!!this.loaded},WS:function(a,b){for(var c=this.oa(),d=b.margins||[10,10,10,10],e=b.zoomFactor||0,f=d[1]+d[3],d=d[0]+d[2],g=c.qp(),i=c=c.Im();i>=g;i--){var j=this.oa().yc(i);if(a.rG().lng/j<this.width-f&&a.rG().lat/j<this.height-d)break}i+=e;i<g&&(i=g);i>c&&(i=c);return i},Bt:function(a,b){var c={center:this.wc(),zoom:this.ga()};if(!a||!a instanceof ob&&0===a.length||a instanceof ob&&a.Fj())return c;var d=[];a instanceof ob?(d.push(gb(a.sf(),this)),d.push(gb(a.ze(),this))):d=a.slice(0);for(var b=b||{},e=[],f=0,g=d.length;f<g;f++)e.push(this.Pd.Ok(gb(d[f],this),this.Sb));d=new ob;for(f=e.length-1;0<=f;f--)d.extend(e[f]);if(d.Fj())return c;c=d.pc();e=this.WS(d,b);b.margins&&(d=b.margins,f=(d[1]-d[3])/2,d=(d[0]-d[2])/2,g=this.oa().yc(e),b.offset&&(f=b.offset.width,d=b.offset.height),c.lng+=g*f,c.lat+=g*d);c=this.Pd.uh(c,this.Sb);return{center:mb(c,this),zoom:e}},Gh:function(a, b){var c;c=a&&a.center?a:this.Bt(a,b);var b=b||{},d=b.delay||200;if(c.zoom===this.Oa&&b.enableAnimation!==q){var e=this;setTimeout(function(){e.Ci(c.center,{duration:210})},d)}else this.Id(c.center,c.zoom)},Tf:v("ae"),oh:function(){return this.R.pb&&this.R.pb.Va()?this.R.pb:p},getDistance:function(a,b){if(a&&b){if(a.cb(b))return 0;var a=gb(a,this),b=gb(b,this),c=0,c=R.op(a,b);if(c===p||c===k)c=0;return c}},Xx:function(){var a=[],b=this.wa,c=this.Ie;if(b)for(var d in b)b[d]instanceof pb&&a.push(b[d]); if(c){d=0;for(b=c.length;d<b;d++)a.push(c[d])}return a},oa:function(){this.yb.bG(this);return this.yb},hv:function(){for(var a=this.R.HF;a<B.$r.length;a++)B.$r[a](this);this.R.HF=a},XF:function(a){this.Sb=Xa.Gk(a);this.fx=Xa.cM(this.Sb);this.yb===Xa&&this.Pd instanceof qb&&(this.Pd.lj=this.Sb)},setDefaultCursor:function(a){this.B.Yb=a;this.platform&&(this.platform.style.cursor=this.B.Yb)},getDefaultCursor:function(){return this.B.Yb},setDraggingCursor:function(a){this.B.Kd=a},getDraggingCursor:function(){return this.B.Kd}, iy:function(){return this.B.HX&&1.5<=this.B.devicePixelRatio},Pw:function(a,b){b?this.Vh[b]||(this.Vh[b]={}):b="custom";a.tag=b;a instanceof rb&&(this.Vh[b][a.ba]=a,a.ra(this));var c=this;bb.load("hotspot",function(){c.hv()},o)},B_:function(a,b){b||(b="custom");this.Vh[b][a.ba]&&delete this.Vh[b][a.ba]},rm:function(a){a||(a="custom");this.Vh[a]={}},rv:function(){var a=this.yb.qp(),b=this.yb.Im(),c=this.B;c.gc=c.HP||a;c.$b=c.GP||b;c.gc<a&&(c.gc=a);c.$b>b&&(c.$b=b)},setMinZoom:function(a){a=Math.round(a); a>this.B.$b&&(a=this.B.$b);this.B.HP=a;this.cK()},setMaxZoom:function(a){a=Math.round(a);a<this.B.gc&&(a=this.B.gc);this.B.GP=a;this.cK()},cK:function(){this.rv();var a=this.B;this.Oa<a.gc?this.Oc(a.gc):this.Oa>a.$b&&this.Oc(a.$b);var b=new N("onzoomspanchange");b.gc=a.gc;b.$b=a.$b;this.dispatchEvent(b)},q4:v("nC"),getKey:function(){return qa},ou:function(a){var b=this;window.MPC_Mgr&&window.MPC_Mgr[b.ba]&&window.MPC_Mgr[b.ba].close();b.B.sj=q;B.Rn("cus.fire","count","z_setmapstylecount");if(a){b= this;a.styleJson&&(a.styleStr=b.G0(a.styleJson));K()&&x.ca.PF?setTimeout(function(){b.B.Be=a;b.dispatchEvent(new N("onsetcustomstyles",a))},50):(this.B.Be=a,this.dispatchEvent(new N("onsetcustomstyles",a)),this.QM(b.B.Be.geotableId));var c={style:a.style};a.features&&0<a.features.length&&(c.features=o);a.styleJson&&0<a.styleJson.length&&(c.styleJson=o);Ya(5050,c);a.style&&(c=b.B.um[a.style]?b.B.um[a.style].backColor:b.B.um.normal.backColor)&&(this.Fa().style.backgroundColor=c)}},qZ:function(a){this.controls|| (this.controls={navigationControl:new sb,scaleControl:new tb,overviewMapControl:new ub,mapTypeControl:new vb});var b=this,c;for(c in this.controls)b.tO(b.controls[c]);a=a||[];x.kc.Gb(a,function(a){b.em(b.controls[a])})},QM:function(a){a?this.Ls&&this.Ls.Df===a||(this.Dh(this.Ls),this.Ls=new wb({geotableId:a}),this.eh(this.Ls)):this.Dh(this.Ls)},Wb:function(){var a=this.ga()>=this.B.zG&&this.oa()===Ta&&18>=this.ga(),b=q;try{document.createElement("canvas").getContext("2d"),b=o}catch(c){b=q}return a&& b},getCurrentCity:function(){return{name:this.gh,code:this.As}},Jm:function(){this.P.so();return this.P},setPanorama:function(a){this.P=a;this.P.bz(this)},G0:function(a){for(var b={featureType:"t",elementType:"e",visibility:"v",color:"c",lightness:"l",saturation:"s",weight:"w",zoom:"z",hue:"h"},c={all:"all",geometry:"g","geometry.fill":"g.f","geometry.stroke":"g.s",labels:"l","labels.text.fill":"l.t.f","labels.text.stroke":"l.t.s","lables.text":"l.t","labels.icon":"l.i"},d=[],e=0,f;f=a[e];e++){var g= f.stylers;delete f.stylers;x.extend(f,g);var g=[],i;for(i in b)if(f[i])if("elementType"===i)g.push(b[i]+":"+c[f[i]]);else{switch(f[i]){case "poilabel":f[i]="poi";break;case "districtlabel":f[i]="label"}g.push(b[i]+":"+f[i])}2<g.length&&d.push(g.join("|"))}return d.join(",")},a0:function(a){this.B.FL=a}}); function Ya(a,b){if(a){var b=b||{},c="",d;for(d in b)c=c+"&"+d+"="+encodeURIComponent(b[d]);var e=function(a){a&&(xb=o,setTimeout(function(){yb.src=B.Xb+"images/blank.gif?"+a.src},50))},f=function(){var a=zb.shift();a&&e(a)};d=(1E8*Math.random()).toFixed(0);xb?zb.push({src:"product=jsapi&sub_product=jsapi&v="+B.version+"&sub_product_v="+B.version+"&t="+d+"&code="+a+"&da_src="+a+c}):e({src:"product=jsapi&sub_product=jsapi&v="+B.version+"&sub_product_v="+B.version+"&t="+d+"&code="+a+"&da_src="+a+c}); Ab||(x.M(yb,"load",function(){xb=q;f()}),x.M(yb,"error",function(){xb=q;f()}),Ab=o)}}var xb,Ab,zb=[],yb=new Image;Ya(5E3,{device_pixel_ratio:window.devicePixelRatio,platform:navigator.platform});var Bb;window.B_HOST_TILE_BASE_URLS&&4<=window.B_HOST_TILE_BASE_URLS.length&&(Bb=window.B_HOST_TILE_BASE_URLS);var Cb;window.B_HOST_TILE_ONLINE_URLS&&4<=window.B_HOST_TILE_ONLINE_URLS.length&&(Cb=window.B_HOST_TILE_ONLINE_URLS); B.KM={TILE_BASE_URLS:Bb||["apimaponline0.bdimg.com/starpic/?qt=satepc&","apimaponline1.bdimg.com/starpic/?qt=satepc&","apimaponline2.bdimg.com/starpic/?qt=satepc&","apimaponline3.bdimg.com/starpic/?qt=satepc&"],TILE_ONLINE_URLS:Cb||[(window.location.host + "/bmap-tile0"),(window.location.host + "/bmap-tile1"),(window.location.host + "/bmap-tile2"),(window.location.host + "/bmap-tile3")],TIlE_PERSPECT_URLS:["gss0.bdstatic.com/-OR1cTe9KgQFm2e88IuM_a","gss0.bdstatic.com/-ON1cTe9KgQFm2e88IuM_a","gss0.bdstatic.com/-OZ1cTe9KgQFm2e88IuM_a","gss0.bdstatic.com/-OV1cTe9KgQFm2e88IuM_a"], geolocControl:"gsp0.baidu.com/8LkJsjOpB1gCo2Kml5_Y_D3",TILES_YUN_HOST:["gsp0.baidu.com/-eR1bSahKgkFkRGko9WTAnF6hhy","gsp0.baidu.com/-eN1bSahKgkFkRGko9WTAnF6hhy","gsp0.baidu.com/-eZ1bSahKgkFkRGko9WTAnF6hhy","gsp0.baidu.com/-eV1bSahKgkFkRGko9WTAnF6hhy"],traffic:"itsmap2.baidu.com",message:"j.map.baidu.com",baidumap:"map.baidu.com",wuxian:"gsp0.baidu.com/6a1OdTeaKgQFm2e88IuM_a",pano:["apisv0.bdimg.com","apisv1.bdimg.com"],panoVerify:"api.map.baidu.com",main_domain_nocdn:{baidu:"api.map.baidu.com",other:"api.map.baidu.com"}, main_domain_cdn:{baidu:["mapapip0.bdimg.com","mapapip1.bdimg.com","mapapip2.bdimg.com"],other:["api.map.baidu.com"],webmap:["webmap0.bdimg.com"]},map_click:"gsp0.baidu.com/80MWbzKh2wt3n2qy8IqW0jdnxx1xbK",vector_traffic:"maponline0.bdimg.com"}; B.kZ={TILE_BASE_URLS:Bb||["apimaponline0.bdimg.com/starpic/?qt=satepc&","apimaponline1.bdimg.com/starpic/?qt=satepc&","apimaponline2.bdimg.com/starpic/?qt=satepc&","apimaponline3.bdimg.com/starpic/?qt=satepc&"],TILE_ONLINE_URLS:Cb||[(window.location.host + "/bmap-tile0"),(window.location.host + "/bmap-tile1"),(window.location.host + "/bmap-tile2"),(window.location.host + "/bmap-tile3")],TIlE_PERSPECT_URLS:["d0.map.baidu.com","d1.map.baidu.com","d2.map.baidu.com","d3.map.baidu.com"],geolocControl:"loc.map.baidu.com",TILES_YUN_HOST:["g0.api.map.baidu.com", "g1.api.map.baidu.com","g2.api.map.baidu.com","g3.api.map.baidu.com"],traffic:"itsmap2.baidu.com",message:"j.map.baidu.com",baidumap:"map.baidu.com",wuxian:"wuxian.baidu.com",pano:["apisv0.bdimg.com","apisv1.bdimg.com"],panoVerify:"api.map.baidu.com",main_domain_nocdn:{baidu:"api.map.baidu.com"},main_domain_cdn:{baidu:["mapapip0.bdimg.com","mapapip1.bdimg.com","mapapip2.bdimg.com"],webmap:["webmap0.bdimg.com"]},map_click:"mapclick.map.baidu.com",vector_traffic:"maponline0.bdimg.com"}; B.h1={"0":{proto:"http://",domain:B.kZ},1:{proto:"https://",domain:B.KM},2:{proto:"https://",domain:B.KM}};B.uz=window.HOST_TYPE||"0";B.url=B.h1[B.uz];B.Op=B.url.proto+B.url.domain.baidumap+"/";B.Xb=window._BMapSecurityConfig&&window._BMapSecurityConfig.serviceHost?window._BMapSecurityConfig.serviceHost:B.url.proto+("2"==B.uz?B.url.domain.main_domain_nocdn.other:B.url.domain.main_domain_nocdn.baidu)+"/"; B.la=B.url.proto+("2"==B.uz?B.url.domain.main_domain_cdn.other[0]:B.url.domain.main_domain_nocdn.baidu)+"/";B.jj=B.url.proto+B.url.domain.main_domain_cdn.webmap[0]+"/";B.hO=B.url.proto+B.url.domain.panoVerify+"/"; B.Uf=function(a,b){var c,d,b=b||"";switch(a){case "main_domain_nocdn":c=B.Xb+b;break;case "main_domain_cdn":c=B.la+b;break;default:d=B.url.domain[a],"[object Array]"==Object.prototype.toString.call(d)?(c=[],x.kc.Gb(d,function(a,d){c[d]=B.url.proto+a+"/"+b})):c=B.url.proto+B.url.domain[a]+"/"+b}return c};function Db(a){var b={duration:1E3,Hc:30,bp:0,jc:Eb.pN,$t:t()};this.eg=[];if(a)for(var c in a)b[c]=a[c];this.k=b;if(fb(b.bp)){var d=this;setTimeout(function(){d.start()},b.bp)}else b.bp!=Gb&&this.start()}var Gb="INFINITE";Db.prototype.start=function(){this.jv=jb();this.zA=this.jv+this.k.duration;Hb(this)};Db.prototype.add=function(a){this.eg.push(a)}; function Hb(a){var b=jb();b>=a.zA?(hb(a.k.va)&&a.k.va(a.k.jc(1)),hb(a.k.finish)&&a.k.finish(),0<a.eg.length&&(b=a.eg[0],b.eg=[].concat(a.eg.slice(1)),b.start())):(a.Zy=a.k.jc((b-a.jv)/a.k.duration),hb(a.k.va)&&a.k.va(a.Zy),a.lG||(a.rs=setTimeout(function(){Hb(a)},1E3/a.k.Hc)))}Db.prototype.stop=function(a){this.lG=o;for(var b=0;b<this.eg.length;b++)this.eg[b].stop(),this.eg[b]=p;this.eg.length=0;this.rs&&(clearTimeout(this.rs),this.rs=p);this.k.$t(this.Zy);a&&(this.zA=this.jv,Hb(this))}; Db.prototype.cancel=ha(0);var Eb={pN:function(a){return a},reverse:function(a){return 1-a},ED:function(a){return a*a},DD:function(a){return Math.pow(a,3)},$s:function(a){return-(a*(a-2))},DL:function(a){return Math.pow(a-1,3)+1},CL:function(a){return 0.5>a?2*a*a:-2*(a-2)*a-1},r3:function(a){return 0.5>a?4*Math.pow(a,3):4*Math.pow(a-1,3)+1},s3:function(a){return(1-Math.cos(Math.PI*a))/2}};Eb["ease-in"]=Eb.ED;Eb["ease-out"]=Eb.$s;var J={HG:34,IG:21,JG:new M(21,32),$P:new M(10,32),ZP:new M(24,36),YP:new M(12,36),FG:new M(13,1),pa:B.la+"images/",z4:"http://mapapip0.bdimg.com/images/",GG:B.la+"images/markers_new.png",WP:24,XP:73,IC:{"\u5317\u4eac":{Qy:"bj",o:new L(116.403874,39.914889)},"\u4e0a\u6d77":{Qy:"sh",o:new L(121.487899,31.249162)},"\u6df1\u5733":{Qy:"sz",o:new L(114.025974,22.546054)},"\u5e7f\u5dde":{Qy:"gz",o:new L(113.30765,23.120049)}},fontFamily:"arial,sans-serif"}; x.ca.We?(x.extend(J,{rL:"url("+J.pa+"ruler.cur),crosshair",Yb:"-moz-grab",Kd:"-moz-grabbing"}),x.platform.cN&&(J.fontFamily="arial,simsun,sans-serif")):x.ca.dx||x.ca.PF?x.extend(J,{rL:"url("+J.pa+"ruler.cur) 2 6,crosshair",Yb:"url("+J.pa+"openhand.cur) 8 8,default",Kd:"url("+J.pa+"closedhand.cur) 8 8,move"}):x.extend(J,{rL:"url("+J.pa+"ruler.cur),crosshair",Yb:"url("+J.pa+"openhand.cur),default",Kd:"url("+J.pa+"closedhand.cur),move"});function Ib(){var a=new Date(1E3*Ma.popup_timestamp);return{TP:a.getFullYear(),JN:a.getMonth()+1,mL:a.getDate()}} var sa=function(){var a=0,b=Ma.popup_code,c=1E3*(Ma.popup_block_time||60),d=Ib();return function(e,f){var f=f||{},g=f.Yc,i=(new Date).getTime();if(i-a>c){a=i;e="\u3010"+b+"\u3011"+("\u7cfb\u7edf\u4e8e"+d.TP+"\u5e74"+d.JN+"\u6708"+d.mL+"\u65e5")+e;try{var j=document.createElement("iframe");j.style.display="none";document.body.appendChild(j);j.contentWindow&&j.contentWindow.alert?j.contentWindow.alert(e):window.alert(e);document.body.removeChild(j)}catch(l){window.alert(e)}Jb("popup",g,b)}}}(); function Kb(a,b){var c=a.style;c.left=b[0]+"px";c.top=b[1]+"px"}function Lb(a){0<x.ca.ma?a.unselectable="on":a.style.MozUserSelect="none"}function Mb(a){return a&&a.parentNode&&11!==a.parentNode.nodeType}function Nb(a,b){x.K.ly(a,"beforeEnd",b);return a.lastChild}function Ob(a){for(var b={left:0,top:0};a&&a.offsetParent;)b.left+=a.offsetLeft,b.top+=a.offsetTop,a=a.offsetParent;return b}function na(a){a=window.event||a;a.stopPropagation?a.stopPropagation():a.cancelBubble=o} function Pb(a){a=window.event||a;a.preventDefault?a.preventDefault():a.returnValue=q;return q}function oa(a){na(a);return Pb(a)}function Qb(){var a=document.documentElement,b=document.body;return a&&(a.scrollTop||a.scrollLeft)?[a.scrollTop,a.scrollLeft]:b?[b.scrollTop,b.scrollLeft]:[0,0]}function Rb(a,b){if(a&&b)return Math.round(Math.sqrt(Math.pow(a.x-b.x,2)+Math.pow(a.y-b.y,2)))}function Sb(a,b){var c=[],b=b||function(a){return a},d;for(d in a)c.push(d+"="+b(a[d]));return c.join("&")} function H(a,b,c){var d=document.createElement(a);c&&(d=document.createElementNS(c,a));return x.K.WF(d,b||{})}function eb(a){if(a.currentStyle)return a.currentStyle;if(a.ownerDocument&&a.ownerDocument.defaultView)return a.ownerDocument.defaultView.getComputedStyle(a,p)}function hb(a){return"function"===typeof a}function fb(a){return"number"===typeof a}function ib(a){return"string"==typeof a}function Tb(a){return"undefined"!=typeof a}function Ub(a){return"object"==typeof a}var Vb="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="; function Yb(a){var b="",c,d,e="",f,g="",i=0;f=/[^A-Za-z0-9\+\/\=]/g;if(!a||f.exec(a))return a;a=a.replace(/[^A-Za-z0-9\+\/\=]/g,"");do c=Vb.indexOf(a.charAt(i++)),d=Vb.indexOf(a.charAt(i++)),f=Vb.indexOf(a.charAt(i++)),g=Vb.indexOf(a.charAt(i++)),c=c<<2|d>>4,d=(d&15)<<4|f>>2,e=(f&3)<<6|g,b+=String.fromCharCode(c),64!=f&&(b+=String.fromCharCode(d)),64!=g&&(b+=String.fromCharCode(e));while(i<a.length);return b}var N=x.lang.Fz;function K(){return!(!x.platform.TE&&!x.platform.BZ&&!x.platform.Xm)} function db(){return!(!x.platform.cN&&!x.platform.VM&&!x.platform.HZ)}function jb(){return(new Date).getTime()}function Zb(){var a=document.body.appendChild(H("div"));a.innerHTML='<v:shape id="vml_tester1" adj="1" />';var b=a.firstChild;if(!b.style)return q;b.style.behavior="url(#default#VML)";b=b?"object"===typeof b.adj:o;a.parentNode.removeChild(a);return b}function $b(){return!!document.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#Shape","1.1")} function ac(){return!!H("canvas").getContext}function bc(a){return a*Math.PI/180}B.OZ=function(){var a=o,b=o,c=o,d=o,e=0,f=0,g=0,i=0;return{LR:function(){e+=1;a&&(a=q,setTimeout(function(){Ya(5054,{pic:e});a=o;e=0},1E4))},Z1:function(){f+=1;b&&(b=q,setTimeout(function(){Ya(5055,{move:f});b=o;f=0},1E4))},b2:function(){g+=1;c&&(c=q,setTimeout(function(){Ya(5056,{zoom:g});c=o;g=0},1E4))},a2:function(a){i+=a;d&&(d=q,setTimeout(function(){Ya(5057,{tile:i});d=o;i=0},5E3))}}}();B.Dq={UG:"#83a1ff",Fq:"#808080"}; function cc(a,b,c){b.bn||(b.bn=[],b.handle={});b.bn.push({filter:c,Em:a});b.addEventListener||(b.addEventListener=function(a,c){b.attachEvent("on"+a,c)});b.handle.click||(b.addEventListener("click",function(a){for(var c=a.target||a.srcElement;c!=b;){dc(b.bn,function(b,g){RegExp(g.filter).test(c.getAttribute("filter"))&&g.Em.call(c,a,c.getAttribute("filter"))});c=c.parentNode}},q),b.handle.click=o)}function dc(a,b){for(var c=0,d=a.length;c<d;c++)b(c,a[c])} void function(a,b,c){void function(a,b,c){function g(a){if(!a.ap){for(var c=o,d=[],f=a.F_,i=0;f&&i<f.length;i++){var j=f[i],l=da[j]=da[j]||{};if(l.ap||l==a)d.push(l.Lc);else{c=q;if(!l.kX&&(j=(Oa.get("alias")||{})[j]||j+".js",!G[j])){G[j]=o;var m=b.createElement("script"),n=b.getElementsByTagName("script")[0];m.async=o;m.src=j;n.parentNode.insertBefore(m,n)}l.vz=l.vz||{};l.vz[a.name]=a}}if(c){a.ap=o;a.jL&&(a.Lc=a.jL.apply(a,d));for(var s in a.vz)g(a.vz[s])}}}function i(a){return(a||new Date)-F}function j(a, b,c){if(a){"string"==typeof a&&(c=b,b=a,a=E);try{a==E?(T[b]=T[b]||[],T[b].unshift(c)):a.addEventListener?a.addEventListener(b,c,q):a.attachEvent&&a.attachEvent("on"+b,c)}catch(d){}}}function l(a,b,c){if(a){"string"==typeof a&&(c=b,b=a,a=E);try{if(a==E){var d=T[b];if(d)for(var e=d.length;e--;)d[e]===c&&d.splice(e,1)}else a.removeEventListener?a.removeEventListener(b,c,q):a.detachEvent&&a.detachEvent("on"+b,c)}catch(f){}}}function m(a){var b=T[a],c=0;if(b){for(var d=[],e=arguments,f=1;f<e.length;f++)d.push(e[f]); for(f=b.length;f--;)b[f].apply(this,d)&&c++;return c}}function n(a,b){if(a&&b){var c=new Image(1,1),d=[],e="img_"+ +new Date,f;for(f in b)b[f]&&d.push(f+"="+encodeURIComponent(b[f]));E[e]=c;c.onload=c.onerror=function(){E[e]=c=c.onload=c.onerror=p;delete E[e]};c.src=a+"?"+d.join("&")}}function s(){var a=arguments,b=a[0];if(this.iL||/^(on|un|set|get|create)$/.test(b)){for(var b=w.prototype[b],c=[],d=1,e=a.length;d<e;d++)c.push(a[d]);"function"==typeof b&&b.apply(this,c)}else this.HK.push(a)}function u(a, b){var c={},d;for(d in a)a.hasOwnProperty(d)&&(c[d]=a[d]);for(d in b)b.hasOwnProperty(d)&&(c[d]=b[d]);return c}function w(a){this.name=a;this.ft={protocolParameter:{postUrl:p,protocolParameter:p}};this.HK=[];this.alog=E}function y(a){a=a||"default";if("*"==a){var a=[],b;for(b in S)a.push(S[b]);return a}(b=S[a])||(b=S[a]=new w(a));return b}var D=c.alog;if(!D||!D.ap){var C=b.all&&a.attachEvent,F=D&&D.bF||+new Date,z=a.L4||(+new Date).toString(36)+Math.random().toString(36).substr(2,3),A=0,G={},E=function(a){var b= arguments,c,d,e,f;if("define"==a||"require"==a){for(d=1;d<b.length;d++)switch(typeof b[d]){case "string":c=b[d];break;case "object":e=b[d];break;case "function":f=b[d]}"require"==a&&(c&&!e&&(e=[c]),c=p);c=!c?"#"+A++:c;d=da[c]=da[c]||{};d.ap||(d.name=c,d.F_=e,d.jL=f,"define"==a&&(d.kX=o),g(d))}else"function"==typeof a?a(E):(""+a).replace(/^(?:([\w$_]+)\.)?(\w+)$/,function(a,c,d){b[0]=d;s.apply(E.uG(c),b)})},T={},S={},da={L2:{name:"alog",ap:o,Lc:E}};w.prototype.start=w.prototype.create=function(a){if(!this.iL){"object"== typeof a&&this.set(a);this.iL=new Date;for(this.gt("create",this);a=this.HK.shift();)s.apply(this,a)}};w.prototype.send=function(a,b){var c=u({ts:i().toString(36),t:a,sid:z},this.ft);if("object"==typeof b)c=u(c,b);else{var d=arguments;switch(a){case "pageview":d[1]&&(c.page=d[1]);d[2]&&(c.title=d[2]);break;case "event":d[1]&&(c.eventCategory=d[1]);d[2]&&(c.eventAction=d[2]);d[3]&&(c.eventLabel=d[3]);d[4]&&(c.eventValue=d[4]);break;case "timing":d[1]&&(c.timingCategory=d[1]);d[2]&&(c.timingVar=d[2]); d[3]&&(c.timingValue=d[3]);d[4]&&(c.timingLabel=d[4]);break;case "exception":d[1]&&(c.exDescription=d[1]);d[2]&&(c.exFatal=d[2]);break;default:return}}this.gt("send",c);var e;if(d=this.ft.protocolParameter){var f={};for(e in c)d[e]!==p&&(f[d[e]||e]=c[e]);e=f}else e=c;n(this.ft.postUrl,e)};w.prototype.set=function(a,b){if("string"==typeof a)"protocolParameter"==a&&(b=u({postUrl:p,protocolParameter:p},b)),this.ft[a]=b;else if("object"==typeof a)for(var c in a)this.set(c,a[c])};w.prototype.get=function(a, b){var c=this.ft[a];"function"==typeof b&&b(c);return c};w.prototype.gt=function(a,b){return E.gt(this.name+"."+a,b)};w.prototype.M=function(a,b){E.M(this.name+"."+a,b)};w.prototype.dd=function(a,b){E.dd(this.name+"."+a,b)};E.name="alog";E.XO=z;E.ap=o;E.timestamp=i;E.dd=l;E.M=j;E.gt=m;E.uG=y;E("init");var ca=w.prototype;U(ca,{start:ca.start,create:ca.create,send:ca.send,set:ca.set,get:ca.get,on:ca.M,un:ca.dd,fire:ca.gt});var Oa=y();Oa.set("protocolParameter",{K2:p});if(D){ca=[].concat(D.zb||[],D.Ij|| []);D.zb=D.Ij=p;for(var $a in E)E.hasOwnProperty($a)&&(D[$a]=E[$a]);E.zb=E.Ij={push:function(a){E.apply(E,a)}};for(D=0;D<ca.length;D++)E.apply(E,ca[D])}c.alog=E;C&&j(b,"mouseup",function(a){a=a.target||a.srcElement;1==a.nodeType&&/^ajavascript:/i.test(a.tagName+a.href)});var Ua=q;a.onerror=function(a,b,d,e){var g=o;!b&&/^script error/i.test(a)&&(Ua?g=q:Ua=o);g&&c.alog("exception.send","exception",{Wt:a,aF:b,St:d,tm:e});return q};c.alog("exception.on","catch",function(a){c.alog("exception.send","exception", {Wt:a.Wt,aF:a.path,St:a.St,method:a.method,TL:"catch"})})}}(a,b,c);void function(a,b,c){var g="18_1";K()&&(g="18_2");var i="http://static.tieba.baidu.com";"https:"===a.location.protocol&&(i="https://gsp0.baidu.com/5aAHeD3nKhI2p27j8IqW0jdnxx1xbK");var j=Math.random,i=i+"/tb/pms/img/st.gif",l={Eh:"0.1"},m={Eh:"0.1"},n={Eh:"0.1"},s={Eh:"0"};if(l&&l.Eh&&j()<l.Eh){var u=c.alog.uG("monkey"),w,l=a.screen,y=b.referrer;u.set("ver",5);u.set("pid",241);l&&u.set("px",l.width+"*"+l.height);u.set("ref",y);c.alog("monkey.on", "create",function(){w=c.alog.timestamp;u.set("protocolParameter",{reports:p})});c.alog("monkey.on","send",function(a){"pageview"==a.t&&(a.cmd="open");a.now&&(a.ts=w(a.now).toString(36),a.now="")});c.alog("monkey.create",{page:g,pid:"241",p:"18",dv:6,postUrl:i,reports:{refer:1}});c.alog("monkey.send","pageview",{now:+new Date})}if(m&&m.Eh&&j()<m.Eh){var D=q;a.onerror=function(a,b,d,e){var g=o;!b&&/^script error/i.test(a)&&(D?g=q:D=o);g&&c.alog("exception.send","exception",{Wt:a,aF:b,St:d,tm:e});return q}; c.alog("exception.on","catch",function(a){c.alog("exception.send","exception",{Wt:a.Wt,aF:a.path,St:a.St,method:a.method,TL:"catch"})});c.alog("exception.create",{postUrl:i,dv:7,page:g,pid:"170",p:"18"})}n&&(n.Eh&&j()<n.Eh)&&(c.alog("cus.on","time",function(a){var b={},d=q,e;if("[object Object]"===a.toString()){for(var g in a)"page"==g?b.page=a[g]:(e=parseInt(a[g]),0<e&&/^z_/.test(g)&&(d=o,b[g]=e));d&&c.alog("cus.send","time",b)}}),c.alog("cus.on","count",function(a){var b={},d=q;"string"===typeof a&& (a=[a]);if(a instanceof Array)for(var e=0;e<a.length;e++)/^z_/.test(a[e])?(d=o,b[a[e]]=1):/^page:/.test(a[e])&&(b.page=a[e].substring(5));d&&c.alog("cus.send","count",b)}),c.alog("cus.create",{dv:3,postUrl:i,page:g,p:"18"}));if(s&&s.Eh&&j()<s.Eh){var C=["Moz","O","ms","Webkit"],F=["-webkit-","-moz-","-o-","-ms-"],z=function(){return typeof b.createElement!=="function"?b.createElement(arguments[0]):b.createElement.apply(b,arguments)},A=z("dpFeatureTest").style,G=function(a){return E(a,k,k)},E=function(a, b,c){var d=a.charAt(0).toUpperCase()+a.slice(1),e=(a+" "+C.join(d+" ")+d).split(" ");if(typeof b==="string"||typeof b==="undefined")return T(e,b);e=(a+" "+C.join(d+" ")+d).split(" ");a:{var a=e,f;for(f in a)if(a[f]in b){if(c===q){b=a[f];break a}f=b[a[f]];b=typeof f==="function"?fnBind(f,c||b):f;break a}b=q}return b},T=function(a,b){var c,d,e;d=a.length;for(c=0;c<d;c++){e=a[c];~(""+e).indexOf("-")&&(e=S(e));if(A[e]!==k)return b=="pfx"?e:o}return q},S=function(a){return a.replace(/([a-z])-([a-z])/g, function(a,b,c){return b+c.toUpperCase()}).replace(/^-/,"")},da=function(a,b,c){if(a.indexOf("@")===0)return atRule(a);a.indexOf("-")!=-1&&(a=S(a));return!b?E(a,"pfx"):E(a,b,c)},ca=function(){var a=z("canvas");return!(!a.getContext||!a.getContext("2d"))},Oa=function(){var a=z("div");return"draggable"in a||"ondragstart"in a&&"ondrop"in a},$a=function(){try{localStorage.setItem("localStorage","localStorage");localStorage.removeItem("localStorage");return o}catch(a){return q}},Ua=function(){return"content"in b.createElement("template")},Ra=function(){return"createShadowRoot"in b.createElement("a")},ic=function(){return"registerElement"in b},Ec=function(){return"import"in b.createElement("link")},he=function(){return"getItems"in b},lg=function(){return"EventSource"in window},jc=function(a,b){var c=new Image;c.onload=function(){b(a,c.width>0&&c.height>0)};c.onerror=function(){b(a,q)};c.src="data:image/webp;base64,"+{O4:"UklGRiIAAABXRUJQVlA4IBYAAAAwAQCdASoBAAEADsD+JaQAA3AAAAAA",N4:"UklGRhoAAABXRUJQVlA4TA0AAAAvAAAAEAcQERGIiP4HAA==", alpha:"UklGRkoAAABXRUJQVlA4WAoAAAAQAAAAAAAAAAAAQUxQSAwAAAARBxAR/Q9ERP8DAABWUDggGAAAABQBAJ0BKgEAAQAAAP4AAA3AAP7mtQAAAA==",uk:"UklGRlIAAABXRUJQVlA4WAoAAAASAAAAAAAAAAAAQU5JTQYAAAD/////AABBTk1GJgAAAAAAAAAAAAAAAAAAAGQAAABWUDhMDQAAAC8AAAAQBxAREYiI/gcA"}[a]},Wb=function(a,b){return Xb.qi["WebP-"+a]=b},ie=function(){return"openDatabase"in a},Ze=function(){return"performance"in a&&"timing"in a.performance},$e=function(){return"performance"in a&&"mark"in a.performance},dd=function(){return!(!Array.prototype|| !Array.prototype.every||!Array.prototype.filter||!Array.prototype.forEach||!Array.prototype.indexOf||!Array.prototype.lastIndexOf||!Array.prototype.map||!Array.prototype.some||!Array.prototype.reduce||!Array.prototype.reduceRight||!Array.isArray)},zd=function(){return"Promise"in a&&"cast"in a.Gq&&"resolve"in a.Gq&&"reject"in a.Gq&&"all"in a.Gq&&"race"in a.Gq&&function(){var b;new a.Gq(function(a){b=a});return typeof b==="function"}()},af=function(){var b=!!a.K1,c=a.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest;return!!a.P1&&b&&c},Ad=function(){return"geolocation"in navigator},mg=function(){var b=z("canvas"),c="probablySupportsContext"in b?"probablySupportsContext":"supportsContext";return c in b?b[c]("webgl")||b[c]("experimental-webgl"):"WebGLRenderingContext"in a},bf=function(){return!!b.createElementNS&&!!b.createElementNS("http://www.w3.org/2000/svg","svg").e3},Kj=function(){return!!a.W1},Lj=function(){return"WebSocket"in a&&a.T1.H1===2},Mj=function(){return!!b.createElement("video").canPlayType}, Nj=function(){return!!b.createElement("audio").canPlayType},Oj=function(){return!!(a.history&&"pushState"in a.history)},Pj=function(){return!(!a.I1||!a.J1)},Qj=function(){return"postMessage"in window},Rj=function(){return!!a.webkitNotifications||"Notification"in a&&"permission"in a.tQ&&"requestPermission"in a.tQ},Sj=function(){for(var b=["webkit","moz","o","ms"],c=a.requestAnimationFrame,e=0;e<b.length&&!c;++e)c=a[b[e]+"RequestAnimationFrame"];return!!c},Tj=function(){return"JSON"in a&&"parse"in JSON&& "stringify"in JSON},Uj=function(){return!(!da("exitFullscreen",b,q)&&!da("cancelFullScreen",b,q))},Vj=function(){return!!da("Intl",a)},Wj=function(){return G("flexBasis")},Xj=function(){return!!G("perspective")},Yj=function(){return G("shapeOutside")},Zj=function(){var a=z("div");a.style.cssText=F.join("filter:blur(2px); ");return!!a.style.length&&(b.documentMode===k||b.documentMode>9)},$j=function(){return"XMLHttpRequest"in a&&"withCredentials"in new XMLHttpRequest},ak=function(){return z("progress").max!== k},bk=function(){return z("meter").max!==k},ck=function(){return"sendBeacon"in navigator},dk=function(){return G("borderRadius")},ek=function(){return G("boxShadow")},fk=function(){var a=z("div").style;a.cssText=F.join("opacity:.55;");return/^0.55$/.test(a.opacity)},gk=function(){return T(["textShadow"],k)},hk=function(){return G("animationName")},ik=function(){return G("transition")},jk=function(){return navigator.userAgent.indexOf("Android 2.")===-1&&G("transform")},Xb={qi:{},qa:function(a,b,c){this.qi[a]= b.apply(this,[].slice.call(arguments,2))},Hd:function(a,b){a.apply(this,[].slice.call(arguments,1))},M_:function(){this.qa("bdrs",dk);this.qa("bxsd",ek);this.qa("opat",fk);this.qa("txsd",gk);this.qa("anim",hk);this.qa("trsi",ik);this.qa("trfm",jk);this.qa("flex",Wj);this.qa("3dtr",Xj);this.qa("shpe",Yj);this.qa("fltr",Zj);this.qa("cavs",ca);this.qa("dgdp",Oa);this.qa("locs",$a);this.qa("wctem",Ua);this.qa("wcsdd",Ra);this.qa("wccse",ic);this.qa("wchti",Ec);this.Hd(jc,"lossy",Wb);this.Hd(jc,"lossless", Wb);this.Hd(jc,"alpha",Wb);this.Hd(jc,"animation",Wb);this.qa("wsql",ie);this.qa("natm",Ze);this.qa("ustm",$e);this.qa("arra",dd);this.qa("prms",zd);this.qa("xhr2",af);this.qa("wbgl",mg);this.qa("geol",Ad);this.qa("svg",bf);this.qa("work",Kj);this.qa("wbsk",Lj);this.qa("vido",Mj);this.qa("audo",Nj);this.qa("hsty",Oj);this.qa("file",Pj);this.qa("psmg",Qj);this.qa("wknf",Rj);this.qa("rqaf",Sj);this.qa("json",Tj);this.qa("flsc",Uj);this.qa("i18n",Vj);this.qa("cors",$j);this.qa("prog",ak);this.qa("metr", bk);this.qa("becn",ck);this.qa("mcrd",he);this.qa("esrc",lg)}},u=c.alog.uG("feature");u.M("commit",function(){Xb.M_();var a=setInterval(function(){if("WebP-lossy"in Xb.qi&&"WebP-lossless"in Xb.qi&&"WebP-alpha"in Xb.qi&&"WebP-animation"in Xb.qi){for(var b in Xb.qi)Xb.qi[b]=Xb.qi[b]?"y":"n";u.send("feature",Xb.qi);clearInterval(a)}},500)});c.alog("feature.create",{p3:4,i5:i,page:g,zb:"18"});c.alog("feature.fire","commit")}}(a,b,c)}(window,document,B);B.Rn=B.alog||t();B.alog("cus.fire","count","z_loadscriptcount"); "https:"===location.protocol&&B.alog("cus.fire","count","z_httpscount");function ec(a){var b=window.TILE_VERSION,c="20211014";b&&b.ditu&&(b=b.ditu,b[a]&&b[a].updateDate&&(c=b[a].updateDate));return c} var fc=[72.6892532,0.1939743381,136.1168614,54.392257],gc=[72.69566833,0.1999420909,136.1232863,54.39791217],hc=158,kc=[98.795985,122.960792,107.867379,118.093451,119.139658,128.035888,79.948212,99.029524,119.923388,122.094977,127.918527,130.94789,106.50606,108.076783,119.8329,126.382207,111.803567,119.324928,100.749858,102.227985,99.860885,100.788921,97.529435,98.841564,99.100017,99.90035,122.917416,123.774367,123.728314,125.507211,123.736065,124.767299,125.488463,126.410675,125.484326,126.07764, 130.830784,133.620042,127.912178,128.668957,128.658937,129.638599,132.894179,134.119086,117.379378,119.244569,116.086736,117.431212,114.420233,116.137458,116.492775,119.605527,110.579401,111.86488,74.468228,80.001908,82.867432,91.353788,85.721075,98.976964,127.664757,129.546833,129.476893,130.22449,133.730358,134.745235,134.381034,135.1178,130.868117,131.34409,115.513245,117.544751,115.779271,116.748045,108.536254,110.614326,121.365534,124.626434,126.165992,127.347013,91.281869,95.611754,79.879648, 82.945041,76.413314,78.345207,78.275229,80.002329,83.956612,85.734098,85.510186,89.356499,97.997001,98.948845,106.653208,108.610811,111.400183,111.824179,111.592224,111.817136,116.00682,117.024631,116.258574,116.689291,119.436876,119.922961,120.659806,121.395479,120.349116,120.676014,124.59389,125.787788,126.221756,126.788962,95.572955,102.046581,95.583772,96.165551,95.564318,97.806095,91.30446,93.356438,93.330319,94.698145,89.349129,90.548677,82.268802,82.892025,78.335615,80.032266,76.625755,78.361413, 73.498248,74.490992,74.846872,76.488771,91.563521,94.878444,88.768214,89.244787,83.247076,83.974127,82.29595,83.256003,81.885315,83.26249,80.760619,81.472404,86.470983,88.276988,102.207537,104.234614,112.164795,116.833667,108.965663,113.032246,111.166575,117.983363],lc=[22.551183,42.284787,17.227969,22.738314,41.300981,50.749638,30.368087,42.332701,21.705055,22.696452,42.426047,48.944674,21.432184,22.651387,50.657409,52.92296,42.212192,45.206905,21.137031,22.57186,21.444502,22.586566,23.741571,25.301472, 22.006806,22.56637,38.985114,41.346531,40.295617,41.338581,39.740021,40.351012,40.974644,41.331562,40.726852,41.067192,44.877158,48.018285,41.344597,42.451798,42.016305,42.443235,45.880906,48.214001,45.140027,46.792775,45.141083,46.400433,45.156418,45.748281,47.485889,50.071879,42.223667,43.469487,37.019867,40.668675,42.226823,47.321605,27.72944,30.469853,48.919002,49.650614,48.840188,49.443166,46.949801,48.382798,47.660603,48.472692,42.859946,44.913298,47.605896,48.445914,48.41698,48.909667,42.23507, 42.914193,52.8281,53.585952,50.709311,51.662219,42.29968,44.399225,42.302746,45.391958,34.680866,37.03377,30.743515,37.07228,28.245649,30.408935,47.277693,48.504255,25.241528,27.780726,42.223363,42.548418,43.435888,44.696952,44.693193,45.00187,48.886267,49.326755,49.288642,49.632304,50.717486,51.314369,52.914204,53.33964,52.910094,53.115926,52.908382,53.258095,51.64533,52.408305,42.236825,42.699126,43.068466,43.898632,42.670403,43.082219,44.379045,45.187742,44.382336,44.981379,47.310362,48.06019, 45.359099,46.814439,40.569751,42.047741,40.587956,41.41263,38.519192,40.185033,35.790476,37.029005,26.825605,27.763896,27.199658,27.751649,29.150192,30.381073,29.573886,30.065162,30.047775,30.384089,30.001277,30.388525,48.494118,49.173841,22.398528,22.601198,7.441114,11.505968,3.767491,9.005209,12.642067,17.410886],mc=95,nc=[110.3961374,105.0743788,96.8991824,95.61810411,93.82412598,91.3892353,91.38931858,89.08325955,87.22469808,86.26278402,85.17353,85.23741211,82.86627441,81.90481038,79.59687147, 80.39829237,79.93319363,77.80279948,75.2557704,73.49357829,73.1892532,73.87758816,74.4064738,74.10215224,75.46409695,76.77739692,78.28299615,78.15499485,78.37920654,78.89145345,79.69282199,81.19938178,81.80830295,83.89093424,85.94149523,87.86447266,89.03414958,90.05918132,91.10026937,92.15733832,93.74361735,95.82597331,97.95655545,97.12363037,98.2129739,99.2068571,101.6587874,102.5239084,102.2356106,105.0249238,106.0992342,107.8617093,111.6439372,109.591869,112.284586,117.7961157,118.9495128,114.2076584, 118.693565,123.1475225,122.730705,120.9361393,123.4207441,122.3787782,122.1385425,121.5904281,121.1773763,120.6805404,120.2483355,122.795807,122.8759077,121.3060262,122.1392177,123.7418799,126.4177599,128.5647409,129.7194884,131.2259136,131.9950494,133.6289931,135.6168614,131.3875545,130.8743365,128.6303223,126.0997773,124.4015375,122.22161,119.6586483,119.7866827,118.5685878,116.5177976,114.819101,119.0812964,116.453265,111.7431171],oc=[43.2190351,42.38053385,43.17417589,44.42226915,45.09863634, 45.56708116,47.33599718,48.68832709,49.62448486,48.9482175,48.4800472,47.33564399,47.43948676,46.03452067,45.20221788,43.34563043,42.32965739,41.39690972,40.82972331,39.95567654,39.25892877,38.36098768,38.05441569,37.16878445,36.38899414,35.36126817,34.30953451,32.58503879,31.56975694,30.77800266,30.43559814,29.7744892,30.0931977,28.71103299,27.70739665,27.5775472,27.01096137,27.77857883,27.50707954,26.50328315,26.70387804,27.95548557,27.29428901,23.64685493,23.62310601,21.67493381,20.77751465,21.32070991, 22.1824113,22.31232964,22.51316054,16.80037679,13.19749864,0.6939743381,1.541660428,10.50208252,15.58926975,17.89090007,19.94928467,22.18490153,25.37285292,25.61456434,30.62532552,31.08099284,31.89238173,32.50092692,32.80325765,34.25546956,35.15486138,36.90170139,37.8348272,37.941604,38.6480797,38.96797201,40.98146918,41.25573296,42.07218153,42.49132813,44.65259766,44.69330702,48.62286865,48.09383952,49.19628499,50.03402317,53.27678901,53.62976345,53.89420546,52.98933322,52.01872884,50.23210259,50.18807048, 47.49769857,47.34362712,46.50502143,45.24770128],pc=[98.7895,122.954182,107.860913,118.087007,119.133165,128.029533,79.941749,99.023087,119.916883,122.08841,127.912143,130.941471,106.499502,108.070244,119.826245,126.375818,111.797006,119.318387,100.743285,102.221517,99.854448,100.782445,97.522928,98.835028,99.093518,99.893783,122.910927,123.767769,123.721954,125.50077,123.729657,124.760724,125.481902,126.404079,125.477737,126.071019,130.824331,133.613395,127.905767,128.662524,128.652527,129.6321, 132.887552,134.11249,117.37297,119.237999,116.080154,117.424589,114.413586,116.130948,116.486264,119.598927,110.5728,111.858437,74.465162,79.995337,82.860821,91.347291,85.716024,98.970481,127.658331,129.540202,129.470528,130.21808,133.723748,134.738785,134.374555,135.111443,130.861475,131.337438,115.506627,117.538123,115.772783,116.741632,108.529656,110.60782,121.358945,124.619773,126.159424,127.340582,91.275275,95.605228,79.874427,82.938601,76.413314,78.338763,78.275229,79.995765,83.956612,85.727511, 85.503554,89.349858,97.990418,98.942257,106.646704,108.604437,111.393667,111.817723,111.585811,111.810645,116.000232,117.018216,116.252108,116.682705,119.430384,119.916417,120.653168,121.38883,120.342727,120.669383,124.587426,125.781376,126.215282,126.782323,95.566367,102.040026,95.577158,96.159009,95.557772,97.799728,91.298032,93.350057,93.323794,94.691771,89.342471,90.542019,82.264229,82.885485,78.335615,80.025844,76.623947,78.355027,73.495149,74.484473,74.846872,76.482208,91.560117,94.871859,88.761692, 89.23822,83.240549,83.967602,82.292367,83.2495,81.878825,83.256003,80.75421,81.465955,86.465421,88.270356,102.201019,104.228033,112.158282,116.827153,108.965663,113.025767,111.166575,117.97687],qc=[22.545421,42.279053,17.226272,22.731982,41.294917,50.743316,30.361986,42.326603,21.699185,22.690751,42.419757,48.938435,21.426505,22.64567,50.651745,52.916705,42.20641,45.201064,21.131326,22.565685,21.438288,22.580379,23.735785,25.295582,22.001087,22.560315,38.979333,41.340757,40.28938,41.332289,39.734164, 40.344718,40.968803,41.325813,40.721073,41.061503,44.871533,48.012179,41.338366,42.445601,42.010343,42.436934,45.875217,48.208327,45.134237,46.786509,45.135376,46.394665,45.150734,45.742257,47.480099,50.065931,42.217982,43.46329,37.014057,40.662848,42.221079,47.315558,27.723432,30.46385,48.913298,49.644555,48.83396,49.436824,46.944059,48.376613,47.654503,48.466331,42.854333,44.907682,47.600253,48.440245,48.410926,48.903468,42.229292,42.908294,52.822466,53.58012,50.703491,51.656037,42.29378,44.393379, 42.296912,45.385809,34.679282,37.027699,30.740622,37.066377,28.241967,30.403134,47.271949,48.49848,25.235818,27.774976,42.217425,42.542102,43.429763,44.691016,44.687044,44.995758,48.880431,49.320551,49.282865,49.626267,50.711607,51.308382,52.908547,53.333963,52.904419,53.109706,52.902338,53.251938,51.639701,52.402205,42.231045,42.693581,43.062756,43.892771,42.664519,43.075927,44.372942,45.1815,44.376327,44.975476,47.304623,48.054453,45.353174,46.808493,40.563653,42.041556,40.582164,41.4064,38.51618, 40.179105,35.789745,37.023144,26.825402,27.757641,27.193806,27.745766,29.144229,30.375186,29.567889,30.059102,30.041938,30.378006,29.995047,30.382338,48.48834,49.169021,22.392816,22.595333,7.439914,11.500161,3.766676,9.000793,12.640512,17.406563],rc=3E3,sc=2.0E-5,tc=3.0E-6,uc=0.0174532925194,vc=0.0065,wc=0.006,xc=4E4,yc=0,zc=3,Ac=1.0E-10,Bc=6370996.81,Cc=1E8;function Dc(a,b,c){for(var d=hc,e=0;e<d;e+=2)if(a.lng>=b[e]&&a.lng<=b[e+1]&&a.lat>=c[e]&&a.lat<=c[e+1])return o;return q} function Fc(a){var b=a.lng,c=a.lat,a=Math.sqrt(b*b+c*c)+Math.sin(c*rc*uc)*sc,b=Math.atan2(c,b)+Math.cos(b*rc*uc)*tc;return{lng:a*Math.cos(b)+vc,lat:a*Math.sin(b)+wc}} function Gc(a){var b=Hc,c={},d=a.lng,e=a.lat,f=1,g=a.lng,i=a.lat,j=d-f,l=0,m=e+f,n=0,s=d-f,u=0,w=e-f,y=0,D=d+f,C=0,F=e-f,z=0,A=d+f,G=0,E=e+f,T=0,m=j=0,m=Ic(b,d,e),j=m.lng,m=m.lat;if(1.0E-6>=Jc(j,m,g,i))return c.lng=d,c.lat=e,c;for(;;){j=d-f;m=e+f;s=d-f;w=e-f;D=d+f;F=e-f;A=d+f;E=e+f;d=Ic(b,j,m);l=d.lng;n=d.lat;d=Ic(b,s,w);u=d.lng;y=d.lat;d=Ic(b,D,F);C=d.lng;z=d.lat;d=Ic(b,A,E);G=d.lng;T=d.lat;d=Jc(l,n,g,i);l=Jc(u,y,g,i);u=Jc(C,z,g,i);G=Jc(G,T,g,i);if(1.0E-6>d)return c.lng=j,c.lat=m,c;if(1.0E-6>l)return c.lng= s,c.lat=w,c;if(1.0E-6>u)return c.lng=D,c.lat=F,c;if(1.0E-6>G)return c.lng=A,c.lat=E,c;C=1/d;l=1/l;u=1/u;G=1/G;d=(j*C+s*l+D*u+A*G)/(C+l+u+G);e=(m*C+w*l+F*u+E*G)/(C+l+u+G);m=Ic(b,d,e);j=m.lng;m=m.lat;if(1.0E-6>=Jc(j,m,g,i))return c.lng=d,c.lat=e,c;f*=0.6;if(1.0E-6>f){a:{c=(a.lng+0.03-(a.lng-0.03))/1.0E-4+0.5;f=(a.lat+0.03-(a.lat-0.03))/1.0E-4+0.5;g=a.lng*Cc;i=a.lat*Cc;w=1.0E-4*Cc;j=g-w;m=g+w;s=i-w;D=i+w;C=l=u=G=k;A=l=w=F=u=G=0;b(a);C=k;for(E=0;E<=c;E++){for(d=0;d<=f;d++)if(C=b(k),G=k.lng*Cc,u=k.lat* Cc,l=C.lng*Cc,C=C.lat*Cc,!(l<j||C<s||l>m||C>D)){G-=l;u-=C;l=Math.sqrt((g-l)*(g-l)+(i-C)*(i-C));if(1>l){c={};c.lng=k.lng;c.lat=k.lat;break a}F+=1*G/l;w+=1*u/l;A+=1/l}F/=A*Cc;w/=A*Cc}b=F*Cc/Cc;f=w*Cc/Cc;c={};c.lng=a.lng+b;c.lat=a.lat+f}return c}}}function Ic(a,b,c){a=a({lng:b,lat:c});b={};b.lng=a.lng;b.lat=a.lat;return b}function Kc(a,b,c,d){var e=arguments.length;this.Bg={};this.Ig={};0!==e&&4===e&&this.normalize(a,b,c,d)} Kc.prototype.contains=function(a){return a.lng>this.Bg.lng&&a.lng<this.Ig.lng&&a.lat>this.Bg.lat&&a.lat<this.Ig.lat?zc:Math.abs(a.lng-this.Bg.lng)<Ac||Math.abs(a.lng-this.Ig.lng)<Ac||Math.abs(a.lat-this.Bg.lat)<Ac||Math.abs(a.y-this.Ig.lat)>Ac?2:yc};Kc.prototype.normalize=function(a,b,c,d){a>c?(this.Bg.lng=c,this.Ig.lng=a):(this.Bg.lng=a,this.Ig.lng=c);b>d?(this.Bg.lat=d,this.Ig.lat=b):(this.Bg.lat=b,this.Ig.lat=d)}; function Lc(a,b,c,d){this.Au={lng:a,lat:b};this.Gx={lng:c,lat:d};this.By=new Kc(a,b,c,d)}function Mc(a,b){var c=a.lat*uc,d=b.lat*uc,e=c-d,f=a.lng*uc-b.lng*uc;return 2*Math.asin(Math.sqrt(Math.sin(e/2)*Math.sin(e/2)+Math.cos(c)*Math.cos(d)*Math.sin(f/2)*Math.sin(f/2)))*Bc}function Jc(a,b,c,d){return Math.sqrt((a-c)*(a-c)+(b-d)*(b-d))}function Nc(a,b,c){return(b.lng-a.lng)*(c.lat-a.lat)-(c.lng-a.lng)*(b.lat-a.lat)} function Hc(a){var b={};if(a.lng<fc[0]-0.4||a.lat<fc[1]-0.4||a.lng>fc[2]+0.4||a.lat>fc[3]+0.4)return b.lng=a.lng,b.lat=a.lat,b;if(Dc(a,pc,qc))return b=Fc(a);for(var b=0,c=xc,d=0,e=new Kc,f=0,d=0;d<mc;++d)oc[d]<=a.lat?oc[(d+1)%mc]>a.lat&&0<Nc({lng:nc[d],lat:oc[d]},{lng:nc[(d+1)%mc],lat:oc[(d+1)%mc]},a)&&++f:oc[(d+1)%mc]<=a.lat&&0>Nc({lng:nc[d],lat:oc[d]},{lng:nc[(d+1)%mc],lat:oc[(d+1)%mc]},a)&&--f;if((0===f?yc:zc)===yc){for(f=0;f<mc;++f)if(d=new Lc(nc[f],oc[f],nc[(f+1)%mc],oc[(f+1)%mc]),e.Bg.lng=d.By.Bg.lng- 0.5,e.Bg.lat=d.By.Bg.lat-0.5,e.Ig.lng=d.By.Ig.lng+0.5,e.Ig.lat=d.By.Ig.lat+0.5,e.contains(a)!==yc){var g;var i=d.Au.lng,j=d.Au.lat,l=d.Gx.lng,m=d.Gx.lat;g=m-j;var n=i-l;!(Math.abs(g-0)>Ac)&&!(Math.abs(n-0)>Ac)?g=d.Au:(i=l*j-i*m,j=n*a.lng-g*a.lat,l=g*g-n*n,g={lng:(n*j-g*i)/l,lat:-(g*j+n*i)/l});n=180;i=90;j=-180;l=-90;l=d.Au;m=d.Gx;n=l.lng<m.lng?l.lng:m.lng;i=l.lat<m.lat?l.lat:m.lat;j=l.lng<m.lng?l.lng:m.lng;l=l.lat<m.lat?l.lat:m.lat;g.lng<=j&&g.lng>=n&&g.lng<=l&&g.lat>=i?(d=a.lat*uc,n=a.lng*uc,i=g.lat* uc,g=g.lng*uc,j=Math.cos(d)*Math.cos(i),d=j*Math.cos(n)*Math.cos(g)+j*Math.sin(n)*Math.sin(g)+Math.sin(d)*Math.sin(i),-1>d?d=-1:1<d&&(d=1),d=Math.acos(d)*Bc):(g=Mc(a,d.Au),d=Mc(a,d.Gx),d=g<d?g:d);d<c&&(c=d)}c<xc&&(b=(xc-c)/xc)}else b=1;c=Fc(a);return b={lng:a.lng+(c.lng-a.lng)*b,lat:a.lat+(c.lat-a.lat)*b}} function Oc(a){var b={};if(a.lng<gc[0]-0.4||a.lat<gc[1]-0.4||a.lng>gc[2]+0.4||a.lat>gc[3]+0.4)return b.lng=a.lng,b.lat=a.lat,b;if(Dc(a,kc,lc)){var b=a.lng-vc,c=a.lat-wc,a=Math.sqrt(b*b+c*c)-Math.sin(c*rc*uc)*sc,b=Math.atan2(c,b)-Math.cos(b*rc*uc)*tc;return b={lng:a*Math.cos(b),lat:a*Math.sin(b)}}c=Hc(a);return a.lng===c.lng&&a.lat===c.lng?(b.lng=a.lng,b.lat=a.lat,b):Gc(a)} function gb(a,b){if(b&&b.B&&b.B.mx&&b.B.mx===Pa&&a instanceof O){var c=Hc(a);return new L(c.lng,c.lat)}return b&&b.B&&3===b.B.mx&&a instanceof O?(c=Hc(a),new L(c.lng,c.lat)):a}function mb(a,b){if(b&&b.B&&b.B.mx===Pa&&a instanceof L){var c=Oc(a);return new O(c.lng,c.lat)}return new O(a.lng,a.lat)} function Pc(a){a=a.split("//");if(2<=a.length){var b=a[1].split("?");if(1<=b.length){var c=b[0].split("/"),d;d=b.length-1;var e=1,f="/",g=c.length;e||(e=0);d||(d=g-1);f||(f="");if(e>g-1||d>g-1)d="";else{for(g="";e<=d;e++)g=e===d?g+c[e]:g+(c[e]+f);d=g}return{host:b[0],origin:a[0]+"//"+c[0],path:"/"+d}}}return p};function ra(a,b,c){if(b){var d=(1E5*Math.random()).toFixed(0);B._rd["_cbk"+d]=function(a){b&&b(a);delete B._rd["_cbk"+d]};a+="&callback=BMap._rd._cbk"+d}c||(a=Qc(a));var e=H("script",{type:"text/javascript"});e.charset="utf-8";e.src=a;e.addEventListener?e.addEventListener("load",function(a){a=a.target;a.parentNode.removeChild(a)},q):e.attachEvent&&e.attachEvent("onreadystatechange",function(){var a=window.event.srcElement;a&&("loaded"===a.readyState||"complete"===a.readyState)&&a.parentNode.removeChild(a)}); setTimeout(function(){document.getElementsByTagName("head")[0].appendChild(e);e=p},1)}function Qc(a){var b=decodeURIComponent(a.substring(a.indexOf("?")+1)),c=(new Date).getTime(),d=window.___abvk?window.___abvk:Rc("SECKEY_ABVK"),e=Rc("BMAP_SECKEY"),f=encodeURIComponent(d+","+e);-1===a.indexOf("v=")&&(a+="&v=2.1",b+="&v=2.1");return a=a+("&seckey="+f+"&timeStamp="+c)+Sc()(b+("&seckey="+d+","+e+"&timeStamp="+c))} function Rc(a){if(navigator.cookieEnabled)return(a=document.cookie.match(RegExp("(^| )"+a+"=([^;]*)(;|$)")))?unescape(a[2]):-1;if(localStorage)return localStorage.getItem(a)?localStorage.getItem(a):-1;if(sessionStorage)return sessionStorage.getItem(a)?sessionStorage.getItem(a):-1};var Tc={map:"fjzm13",common:"gd20m1",style:"yyr3qx",tile:"njlr24",vectordrawlib:"bcu4vs",newvectordrawlib:"uolith",groundoverlay:"w32n1e",pointcollection:"lfcwnu",marker:"v3xzlo",symbol:"nvf3l5",canvablepath:"q4z2xs",vmlcontext:"oiinz4",markeranimation:"pkxzj2",poly:"imptdn",draw:"ejsw1u",drawbysvg:"g4lqsr", drawbyvml:"tuwn5w",drawbycanvas:"lzgw0s",infowindow:"ygpu55",oppc:"x5bzt2",opmb:"o21sku",menu:"5na3kr",control:"bhxc0q",navictrl:"aq223n",geoctrl:"fdqrea",copyrightctrl:"rsphjp",citylistcontrol:"12fvzw",scommon:"vqyedn",local:"eiwkgq",route:"p3fdqy",othersearch:"qh513m",mapclick:"gfcrd1",buslinesearch:"mgavys", hotspot:"touxzg",autocomplete:"5xln1x",coordtrans:"oxicxb",coordtransutils:"55y4e3",convertor:"dpvl13",clayer:"5np03e",pservice:"le3ifk",pcommon:"4shhn0",panorama:"c431tx",panoramaflash:"2gm2jw",vector:"wprzgk"}; x.oz=function(){function a(a){return d&&!!c[b+a+"_"+Tc[a]]}var b="BMap_",c=window.localStorage,d="localStorage"in window&&c!==p&&c!==k;return{DZ:d,set:function(a,f){if(d){for(var g=b+a+"_",i=c.length,j;i--;)j=c.key(i),-1<j.indexOf(g)&&c.removeItem(j);try{c.setItem(b+a+"_"+Tc[a],f)}catch(l){c.clear()}}},get:function(e){return d&&a(e)?c.getItem(b+e+"_"+Tc[e]):q},TK:a}}();function bb(){} x.object.extend(bb,{Pj:{XG:-1,IQ:0,yq:1},gM:function(){var a="canvablepath",b=B.RV?"newvectordrawlib":"vectordrawlib";if(!K()||!ac())$b()||(Zb()?a="vmlcontext":ac());return{tile:[b,"style"],control:[],marker:["symbol"],symbol:["canvablepath","common"],canvablepath:"canvablepath"===a?[]:[a],vmlcontext:[],style:[],poly:["marker","drawbycanvas","drawbysvg","drawbyvml"],drawbysvg:["draw"],drawbyvml:["draw"],drawbycanvas:["draw"],infowindow:["common","marker"],menu:[],oppc:[],opmb:[],scommon:[],local:["scommon"], route:["scommon"],othersearch:["scommon"],autocomplete:["scommon"],citylistcontrol:["autocomplete"],mapclick:["scommon"],buslinesearch:["route"],hotspot:[],coordtransutils:["coordtrans"],convertor:[],clayer:["tile"],pservice:[],pcommon:["style","pservice"],panorama:["pcommon"],panoramaflash:["pcommon"]}},l5:{},OG:{$Q:window._BMapSecurityConfig&&window._BMapSecurityConfig.serviceHost?window._BMapSecurityConfig.serviceHost+"getmodules?v=2.0&t=20140707":B.la+"getmodules?v=2.0&t=20140707",HV:5E3},fD:q, Ud:{Gl:{},Tn:[],uw:[]},load:function(a,b,c){var d=this.kb(a);if(d.Fd==this.Pj.yq)c&&b();else{if(d.Fd==this.Pj.XG){this.ZK(a);this.qO(a);var e=this;e.fD==q&&(e.fD=o,setTimeout(function(){for(var a=[],b=0,c=e.Ud.Tn.length;b<c;b++){var d=e.Ud.Tn[b],l="";ja.oz.TK(d)?l=ja.oz.get(d):(l="",a.push(d+"_"+Tc[d]));e.Ud.uw.push({IN:d,pF:l})}e.fD=q;e.Ud.Tn.length=0;0==a.length?e.LL():ra(e.OG.$Q+"&mod="+a.join(","))},1));d.Fd=this.Pj.IQ}d.nv.push(b)}},ZK:function(a){if(a&&this.gM()[a])for(var a=this.gM()[a],b= 0;b<a.length;b++)this.ZK(a[b]),this.Ud.Gl[a[b]]||this.qO(a[b])},qO:function(a){for(var b=0;b<this.Ud.Tn.length;b++)if(this.Ud.Tn[b]==a)return;this.Ud.Tn.push(a)},L_:function(a,b){var c=this.kb(a);try{eval(b)}catch(d){return}c.Fd=this.Pj.yq;for(var e=0,f=c.nv.length;e<f;e++)c.nv[e]();c.nv.length=0},TK:function(a,b){var c=this;c.timeout=setTimeout(function(){c.Ud.Gl[a].Fd!=c.Pj.yq?(c.remove(a),c.load(a,b)):clearTimeout(c.timeout)},c.OG.HV)},kb:function(a){this.Ud.Gl[a]||(this.Ud.Gl[a]={},this.Ud.Gl[a].Fd= this.Pj.XG,this.Ud.Gl[a].nv=[]);return this.Ud.Gl[a]},remove:function(a){delete this.kb(a)},DW:function(a,b){for(var c=this.Ud.uw,d=o,e=0,f=c.length;e<f;e++)""==c[e].pF&&(c[e].IN==a?c[e].pF=b:d=q);d&&this.LL()},LL:function(){for(var a=this.Ud.uw,b=0,c=a.length;b<c;b++)this.L_(a[b].IN,a[b].pF);this.Ud.uw.length=0}});function Q(a,b){this.x=a||0;this.y=b||0;this.x=this.x;this.y=this.y}Q.prototype.cb=function(a){return a&&a.x==this.x&&a.y==this.y};function M(a,b){this.width=a||0;this.height=b||0}M.prototype.cb=function(a){return a&&this.width==a.width&&this.height==a.height};(function(a){function b(a,b){var c=(a&65535)+(b&65535);return(a>>16)+(b>>16)+(c>>16)<<16|c&65535}function c(a,c,d,e,f,g){return b(b(b(c,a),b(e,g))<<f|b(b(c,a),b(e,g))>>>32-f,d)}function d(a,b,d,e,f,g,i){return c(b&d|~b&e,a,b,f,g,i)}function e(a,b,d,e,f,g,i){return c(b&e|d&~e,a,b,f,g,i)}function f(a,b,d,e,f,g,i){return c(d^(b|~e),a,b,f,g,i)}function g(a,g){a[g>>5]|=128<<g%32;a[(g+64>>>9<<4)+14]=g;var i,j,l,m,n,z=1732584193,A=-271733879,G=-1732584194,E=271733878;for(i=0;i<a.length;i+=16)j=z,l=A,m=G, n=E,z=d(z,A,G,E,a[i],7,-680876936),E=d(E,z,A,G,a[i+1],12,-389564586),G=d(G,E,z,A,a[i+2],17,606105819),A=d(A,G,E,z,a[i+3],22,-1044525330),z=d(z,A,G,E,a[i+4],7,-176418897),E=d(E,z,A,G,a[i+5],12,1200080426),G=d(G,E,z,A,a[i+6],17,-1473231341),A=d(A,G,E,z,a[i+7],22,-45705983),z=d(z,A,G,E,a[i+8],7,1770035416),E=d(E,z,A,G,a[i+9],12,-1958414417),G=d(G,E,z,A,a[i+10],17,-42063),A=d(A,G,E,z,a[i+11],22,-1990404162),z=d(z,A,G,E,a[i+12],7,1804603682),E=d(E,z,A,G,a[i+13],12,-40341101),G=d(G,E,z,A,a[i+14],17,-1502002290), A=d(A,G,E,z,a[i+15],22,1236535329),z=e(z,A,G,E,a[i+1],5,-165796510),E=e(E,z,A,G,a[i+6],9,-1069501632),G=e(G,E,z,A,a[i+11],14,643717713),A=e(A,G,E,z,a[i],20,-373897302),z=e(z,A,G,E,a[i+5],5,-701558691),E=e(E,z,A,G,a[i+10],9,38016083),G=e(G,E,z,A,a[i+15],14,-660478335),A=e(A,G,E,z,a[i+4],20,-405537848),z=e(z,A,G,E,a[i+9],5,568446438),E=e(E,z,A,G,a[i+14],9,-1019803690),G=e(G,E,z,A,a[i+3],14,-187363961),A=e(A,G,E,z,a[i+8],20,1163531501),z=e(z,A,G,E,a[i+13],5,-1444681467),E=e(E,z,A,G,a[i+2],9,-51403784), G=e(G,E,z,A,a[i+7],14,1735328473),A=e(A,G,E,z,a[i+12],20,-1926607734),z=c(A^G^E,z,A,a[i+5],4,-378558),E=c(z^A^G,E,z,a[i+8],11,-2022574463),G=c(E^z^A,G,E,a[i+11],16,1839030562),A=c(G^E^z,A,G,a[i+14],23,-35309556),z=c(A^G^E,z,A,a[i+1],4,-1530992060),E=c(z^A^G,E,z,a[i+4],11,1272893353),G=c(E^z^A,G,E,a[i+7],16,-155497632),A=c(G^E^z,A,G,a[i+10],23,-1094730640),z=c(A^G^E,z,A,a[i+13],4,681279174),E=c(z^A^G,E,z,a[i],11,-358537222),G=c(E^z^A,G,E,a[i+3],16,-722521979),A=c(G^E^z,A,G,a[i+6],23,76029189),z=c(A^ G^E,z,A,a[i+9],4,-640364487),E=c(z^A^G,E,z,a[i+12],11,-421815835),G=c(E^z^A,G,E,a[i+15],16,530742520),A=c(G^E^z,A,G,a[i+2],23,-995338651),z=f(z,A,G,E,a[i],6,-198630844),E=f(E,z,A,G,a[i+7],10,1126891415),G=f(G,E,z,A,a[i+14],15,-1416354905),A=f(A,G,E,z,a[i+5],21,-57434055),z=f(z,A,G,E,a[i+12],6,1700485571),E=f(E,z,A,G,a[i+3],10,-1894986606),G=f(G,E,z,A,a[i+10],15,-1051523),A=f(A,G,E,z,a[i+1],21,-2054922799),z=f(z,A,G,E,a[i+8],6,1873313359),E=f(E,z,A,G,a[i+15],10,-30611744),G=f(G,E,z,A,a[i+6],15,-1560198380), A=f(A,G,E,z,a[i+13],21,1309151649),z=f(z,A,G,E,a[i+4],6,-145523070),E=f(E,z,A,G,a[i+11],10,-1120210379),G=f(G,E,z,A,a[i+2],15,718787259),A=f(A,G,E,z,a[i+9],21,-343485551),z=b(z,j),A=b(A,l),G=b(G,m),E=b(E,n);return[z,A,G,E]}function i(a){var b,c="",d=32*a.length;for(b=0;b<d;b+=8)c+=String.fromCharCode(a[b>>5]>>>b%32&255);return c}function j(a){var b,c=[];c[(a.length>>2)-1]=k;for(b=0;b<c.length;b+=1)c[b]=0;var d=8*a.length;for(b=0;b<d;b+=8)c[b>>5]|=(a.charCodeAt(b/8)&255)<<b%32;return c}function l(a){var b= "",c,d;for(d=0;d<a.length;d+=1)c=a.charCodeAt(d),b+="0123456789abcdef".charAt(c>>>4&15)+"0123456789abcdef".charAt(c&15);return b}function m(a,b){var c=unescape(encodeURIComponent(a)),d=unescape(encodeURIComponent(b)),e=j(c),f=[],l=[];f[15]=l[15]=k;16<e.length&&(e=g(e,8*c.length));for(c=0;16>c;c+=1)f[c]=e[c]^909522486,l[c]=e[c]^1549556828;d=g(f.concat(j(d)),512+8*d.length);return i(g(l.concat(d),640))}function n(a,b,c){return!b?!c?l(i(g(j(unescape(encodeURIComponent(a))),8*unescape(encodeURIComponent(a)).length))): i(g(j(unescape(encodeURIComponent(a))),8*unescape(encodeURIComponent(a)).length)):!c?l(m(b,a)):m(b,a)}"function"===typeof define&&define.M2?define(function(){return n}):"object"===typeof module&&module.NX?module.NX=n:a.md5=n})(this);var Uc=o,Vc=B.Xb+"?qt=jsapi_log",Wc={},Xc={},Yc={},Zc=3E4;function I(){}function $c(a){var b=q,c;for(c in Wc)0<Wc[c]&&(Yc[c]={value:Xc[c],count:1E4<Wc[c]?1E4:Wc[c]},Wc[c]=0,b=o);b&&!ad&&bd&&(ad=setInterval(bd,a))} function cd(){var a=o,b;for(b in Yc){a=q;break}if(a)clearInterval(ad),ad=p;else{var a=p,c;for(c in Yc){a=c;break}b=Yc[a]||{};c=b.value||[];b=b.count||1;var d=(new Date).getTime(),e="logCbk"+Math.floor(1E10*Math.random());window.BMap[e]=function(){delete window.BMap[e]};c=window._BMapSecurityConfig&&window._BMapSecurityConfig.serviceHost?Vc+"&bmap2=1&v=2.0&device="+(K()?1:0)+"&module="+(c[0]||"")+"&func="+(c[1]||"")+"&subfunc="+(c[2]||"")+"&count="+b+"&t="+d+"&callback=BMap."+e:Vc+"&ak="+qa+"&bmap2=1&v=2.0&device="+ (K()?1:0)+"&module="+(c[0]||"")+"&func="+(c[1]||"")+"&subfunc="+(c[2]||"")+"&count="+b+"&t="+d+"&callback=BMap."+e;c+=Sc()(c);if(Uc)try{ra(c,p,o),delete Yc[a]}catch(f){}var a=o,g;for(g in Yc){a=q;break}a&&(clearInterval(ad),ad=p)}}var Sa={},bd,ed,fd,ad; (function(a,b){ad&&(clearInterval(ad),ad=p);ed&&(clearInterval(ed),ed=p);fd&&(clearTimeout(fd),fd=p);bd=p;Wc={};Xc={};Yc={};Uc=!!a;b=b||{};b.TX&&(Zc=b.TX);var c=b.Q5||200;bd=function(){cd()};ed=setInterval(function(){$c(c)},Zc);fd=setTimeout(function(){$c(c);fd=p},5E3);"undefined"!==typeof document&&("visibilityState"in document?x.M(document,"visibilitychange",function(){document.i6==="hidden"&&$c(c)}):x.M(window,"beforeunload",function(){$c(c)}));I=function(a,b,c){if(!window.navigator||navigator.onLine){var a= a||"",b=b||"",c=c||"",g=a+"-"+b+"-"+c;Wc[g]||(Wc[g]=0);Wc[g]++;Xc[g]=[a,b,c]}}})(o);var gd=B.Xb+"?qt=jsapi_log",hd={},id={};function Jb(a,b,c){if(!window.navigator||navigator.onLine){var a=a||"",b=b||"",c=c||"",d=a+"-"+b+"-"+c;hd[d]||(hd[d]=o,id[d]=[a,b,c],jd())}} function kd(){var a=o,b;for(b in id){a=q;break}if(a)clearInterval(ld),ld=p;else{var a=p,c;for(c in id){a=c;break}c=id[a]||[];b=(new Date).getTime();var d="logCbk"+Math.floor(1E10*Math.random());window.BMap[d]=function(){delete window.BMap[d]};c=window._BMapSecurityConfig&&window._BMapSecurityConfig.serviceHost?gd+"&bmap2=1&v=2.0&device="+(K()?1:0)+"&module="+(c[0]||"")+"&func="+(c[1]||"")+"&subfunc="+(c[2]||"")+"&count=1&t="+b+"&callback=BMap."+d:gd+"&ak="+qa+"&bmap2=1&v=2.0&device="+(K()?1:0)+"&module="+ (c[0]||"")+"&func="+(c[1]||"")+"&subfunc="+(c[2]||"")+"&count=1&t="+b+"&callback=BMap."+d;c+=Sc()(c);try{ra(c,p,o),delete id[a]}catch(e){}var a=o,f;for(f in id){a=q;break}a&&(clearInterval(ld),ld=p)}}function jd(){ld||(ld=setInterval(function(){kd()},200))}var ld;var md=function(a){var b=Object.create||function(){function a(){}return function(b){a.prototype=b;b=new a;a.prototype=p;return b}}(),c={},d=c.KZ={},e=d.Az=function(){return{extend:function(a){var c=b(this);a&&c.TZ(a);if(!c.hasOwnProperty("init")||this.init===c.init)c.init=function(){c.VP.init.apply(this,arguments)};c.init.prototype=c;c.VP=this;return c},create:function(){var a=this.extend();a.init.apply(a,arguments);return a},init:t(),TZ:function(a){for(var b in a)a.hasOwnProperty(b)&&(this[b]=a[b]); a.hasOwnProperty("toString")&&(this.toString=a.toString)},qd:function(){return this.init.prototype.extend(this)}}}(),f=d.JQ=e.extend({init:function(a,b){a=this.Li=a||[];this.ag=b!=k?b:4*a.length},toString:function(a){return(a||i).stringify(this)},concat:function(a){var b=this.Li,c=a.Li,d=this.ag,a=a.ag;this.JW();if(d%4)for(var e=0;e<a;e++)b[d+e>>>2]|=(c[e>>>2]>>>24-8*(e%4)&255)<<24-8*((d+e)%4);else for(e=0;e<a;e+=4)b[d+e>>>2]=c[e>>>2];this.ag+=a;return this},JW:function(){var b=this.Li,c=this.ag; b[c>>>2]&=4294967295<<32-8*(c%4);b.length=a.ceil(c/4)},qd:function(){var a=e.qd.call(this);a.Li=this.Li.slice(0);return a},random:function(b){function c(b){var d=987654321;return function(){d=36969*(d&65535)+(d>>16)&4294967295;b=18E3*(b&65535)+(b>>16)&4294967295;var c=(d<<16)+b&4294967295;return(c/4294967296+0.5)*(0.5<a.random()?1:-1)}}for(var d=[],e=0,g;e<b;e+=4){var i=c(4294967296*(g||a.random()));g=987654071*i();d.push(4294967296*i()|0)}return new f.init(d,b)}}),g=c.JL={},i=g.lQ={stringify:function(a){for(var b= a.Li,a=a.ag,c=[],d=0;d<a;d++){var e=b[d>>>2]>>>24-8*(d%4)&255;c.push((e>>>4).toString(16));c.push((e&15).toString(16))}return c.join("")},parse:function(a){for(var b=a.length,c=[],d=0;d<b;d+=2)c[d>>>3]|=parseInt(a.substr(d,2),16)<<24-4*(d%8);return new f.init(c,b/2)}},j=g.N1={stringify:function(a){for(var b=a.Li,a=a.ag,c=[],d=0;d<a;d++)c.push(String.fromCharCode(b[d>>>2]>>>24-8*(d%4)&255));return c.join("")},parse:function(a){for(var b=a.length,c=[],d=0;d<b;d++)c[d>>>2]|=(a.charCodeAt(d)&255)<<24- 8*(d%4);return new f.init(c,b)}},l=g.FQ={stringify:function(a){try{return decodeURIComponent(escape(j.stringify(a)))}catch(b){aa(Error("Malformed UTF-8 data"))}},parse:function(a){return j.parse(unescape(encodeURIComponent(a)))}},m=d.G1=e.extend({reset:function(){this.ea=new f.init;this.xB=0},vH:function(a){"string"==typeof a&&(a=l.parse(a));this.ea.concat(a);this.xB+=a.ag},rJ:function(b){var c=this.ea,d=c.Li,e=c.ag,g=this.rW,i=e/(4*g),i=b?a.ceil(i):a.max((i|0)-this.fU,0),b=i*g,e=a.min(4*b,e);if(b){for(var j= 0;j<b;j+=g)this.jS(d,j);j=d.splice(0,b);c.ag-=e}return new f.init(j,e)},qd:function(){var a=e.qd.call(this);a.ea=this.ea.qd();return a},fU:0});d.VG=m.extend({RK:e.extend(),init:function(a){this.RK=this.RK.extend(a);this.reset()},reset:function(){m.reset.call(this);this.kS()},update:function(a){this.vH(a);this.rJ();return this},PL:function(a){a&&this.vH(a);return this.iS()},rW:16,RR:function(a){return function(b,c){return(new a.init(c)).PL(b)}},SR:function(a){return function(b,c){return(new n.L1.init(a, c)).PL(b)}}});var n=c.zK={};return c}(Math),nd=md; (function(a){var b=nd.KZ;if(!b||!b.VG)return console.error("CryptoJS core library not properly loaded - missing Hasher class");var c=b.JQ,d=b.VG,b=nd.zK||(nd.zK={});if("function"!==typeof d.extend)return console.error("Hasher.extend is not a function");var e=[],f=[];(function(){for(var b=2,c=0;64>c;){var d;a:{d=a.sqrt(b);for(var g=2;g<=d;g++)if(!(b%g)){d=q;break a}d=o}d&&(8>c&&(e[c]=4294967296*(a.pow(b,0.5)-(a.pow(b,0.5)|0))|0),f[c]=4294967296*(a.pow(b,1/3)-(a.pow(b,1/3)|0))|0,c++);b++}})();var g= [],b=b.bv=d.extend({kS:function(){this.Kv=new c.init(e.slice(0))},jS:function(a,b){for(var c=this.Kv.Li,d=c[0],e=c[1],s=c[2],u=c[3],w=c[4],y=c[5],D=c[6],C=c[7],F=0;64>F;F++){if(16>F)g[F]=a[b+F]|0;else{var z=g[F-15],A=g[F-2];g[F]=((z<<25|z>>>7)^(z<<14|z>>>18)^z>>>3)+g[F-7]+((A<<15|A>>>17)^(A<<13|A>>>19)^A>>>10)+g[F-16]}z=C+((w<<26|w>>>6)^(w<<21|w>>>11)^(w<<7|w>>>25))+(w&y^~w&D)+f[F]+g[F];A=((d<<30|d>>>2)^(d<<19|d>>>13)^(d<<10|d>>>22))+(d&e^d&s^e&s);C=D;D=y;y=w;w=u+z|0;u=s;s=e;e=d;d=z+A|0}c[0]=c[0]+ d|0;c[1]=c[1]+e|0;c[2]=c[2]+s|0;c[3]=c[3]+u|0;c[4]=c[4]+w|0;c[5]=c[5]+y|0;c[6]=c[6]+D|0;c[7]=c[7]+C|0},iS:function(){var b=this.ea,c=b.Li,d=8*this.xB,e=8*b.ag;c[e>>>5]|=128<<24-e%32;c[(e+64>>>9<<4)+14]=a.floor(d/4294967296);c[(e+64>>>9<<4)+15]=d;b.ag=4*c.length;this.rJ();return this.Kv},qd:function(){var a=d.qd.call(this);a.Kv=this.Kv.qd();return a}});nd.bv=d.RR(b);nd.WG=d.SR(b)})(Math);md.bv=nd.bv;md.WG=nd.WG;var od; try{od="undefined"!==typeof BigInt&&"undefined"!==typeof BigInt("1")}catch(pd){od=q}function qd(a,b){for(var c=md.bv(md.JL.FQ.parse(a)).toString(md.JL.lQ),d=[],e=0;e<c.length;e+=2)d.push(parseInt(c.substr(e,2),16));b(d)} function rd(a){if("string"===typeof a){if(0===a.indexOf("0x")||0===a.indexOf("0X"))a=a.substring(2);for(var b=[],c=a.length-2;0<=c;c-=2)b.push(parseInt(a.substr(c,2),16));1===a.length%2&&b.push(parseInt(a.charAt(0),16));this.value=b}else{if("number"===typeof a)if(0===a)a=[0];else{for(b=[];0<a;)b.push(a&255),a=Math.floor(a/256);a=b}else a=a instanceof Array?a.slice():[0];this.value=a}this.normalize()}rd.prototype.normalize=function(){for(;1<this.value.length&&0===this.value[this.value.length-1];)this.value.pop()}; function sd(a,b){if(a.value.length!==b.value.length)return a.value.length-b.value.length;for(var c=a.value.length-1;0<=c;c--)if(a.value[c]!==b.value[c])return a.value[c]-b.value[c];return 0}rd.prototype.add=function(a){for(var b=[],c=0,d=Math.max(this.value.length,a.value.length),e=0;e<d;e++)c=(e<this.value.length?this.value[e]:0)+(e<a.value.length?a.value[e]:0)+c,b.push(c%256),c=Math.floor(c/256);0<c&&b.push(c);return new rd(b)}; rd.prototype.En=function(a){for(var b=[],c=0,d=Math.max(this.value.length,a.value.length),e=0;e<d;e++){var f=(e<this.value.length?this.value[e]:0)-(e<a.value.length?a.value[e]:0)-c;0>f?(f+=256,c=1):c=0;b.push(f)}return new rd(b)};rd.prototype.multiply=function(a){for(var b=[],c=this.value.length+a.value.length,d=0;d<c;d++)b.push(0);for(d=0;d<this.value.length;d++)for(c=0;c<a.value.length;c++)b[d+c]+=this.value[d]*a.value[c];for(d=0;d<b.length-1;d++)b[d+1]+=Math.floor(b[d]/256),b[d]%=256;return new rd(b)}; function td(a,b){for(var c=new rd(a.value);0<=sd(c,b);){for(var d=new rd(b.value);;){var e=new rd(d.value);e.value.unshift(0);if(0<sd(e,c))break;d=e}c=c.En(d)}return c} function ud(){var a=vd,b=wd,c=xd,d=yd;qd(a,function(e){try{for(var f=BigInt(0),g=BigInt(256),i=0;8>i;i++)f=(f*g+BigInt(e[i]))%c.m;var j;var l=b.toLowerCase().replace(/^0x/,"");/^[0-9a-f]+$/.test(l)||aa(Error("invalid hex"));try{j=BigInt("0x"+l)}catch(m){aa(Error("BigInt conversion failed"))}var n=BigInt(0);if(j<n||j>=c.m)d(q);else{var s;var e=j,u=c.Cx,w=c.m;try{for(var e=e%w,y=BigInt(1),D=BigInt(0),g=y%w;u>D;)u&y&&(g=g*e%w),u>>=y,u>D&&(e=e*e%w);s=g}catch(C){aa(Error("BigInt operation failed"))}d(s=== f)}}catch(F){Bd(a,b,c,d)}})} function Bd(a,b,c,d){qd(a,function(a){try{for(var f=new rd(0),g=new rd(256),i=0;8>i;i++)var f=f.multiply(g),j=new rd(a[i]),f=f.add(j),f=td(f,c.m);var l,m=b.toLowerCase().replace(/^0x/,"");/^[0-9a-f]+$/.test(m)||aa(Error("invalid hex"));l=new rd(m);if(0>sd(l,new rd(0))||0<=sd(l,c.m))d(q);else{for(var a=l,n=c.Cx,s=c.m,a=td(a,s),u=new rd(1);!(1===n.value.length&&0===n.value[0]);){n.value[0]&1&&(u=td(u.multiply(a),s));for(var g=0,w=n.value.length-1;0<=w;w--){var y=n.value[w]|g<<8;n.value[w]=y>>1;g=y& 1}n.normalize();1===n.value.length&&0===n.value[0]||(a=td(a.multiply(a),s))}d(0===sd(u,f))}}catch(D){d(q)}})}var xd;xd=od?{m:BigInt(9173503),Cx:BigInt(65537)}:{m:new rd(9173503),Cx:new rd(65537)}; if(window.B_BUSINESS_INFO){var yd=function(a){a?0===Ma.business&&1===Ma.unauth&&sa("\u68c0\u6d4b\u5230\u5f53\u524d\u4ea7\u54c1\u4f7f\u7528\u7684\u5730\u56fe\u670d\u52a1\u672a\u5b8c\u6210\u6280\u672f\u670d\u52a1\u6388\u6743\uff0c\u53ef\u80fd\u51fa\u73b0\u4e0d\u7a33\u5b9a/\u53d7\u9650\uff1b\u3010\u4ea7\u54c1\u7528\u6237\u3011\u8bf7\u8054\u7cfb\u4ea7\u54c1\u5b98\u65b9\u5ba2\u670d\uff1b\u3010\u4ea7\u54c1\u5f00\u53d1\u8005\u3011\u8bf7\u4e8e3\u4e2a\u5de5\u4f5c\u65e5\u5185\u5b8c\u6210\u6388\u6743\u6216\u8054\u7cfb\uff1ahttps://lbsyun.baidu.com/surl/f5d6f5 \u6216\u8054\u7cfb\u7535\u8bdd\uff1a400-099-8998\uff08\u5f00\u53d1\u8005\u4e13\u7528\uff09\u3002",{Yc:"vtile"}): Jb("sign_check","sign_error",Ma.popup_code)},vd=window.B_BUSINESS_INFO.sign_content,wd=window.B_BUSINESS_INFO.signature;if(!vd||!wd||!xd||!yd)yd&&yd(q);else if(od)try{ud()}catch(Cd){Bd(vd,wd,xd,yd)}else Bd(vd,wd,xd,yd)};for(var Dd=function(a,b){function c(a){return f.iexdl(e,a,function(a){return f.hhxah(d,a)})}function d(a){return f.adame(a,"")[f.dxeeh][f.adame(f.adame("from","Char"),i)](a)}function e(a,b){for(var c="eem";"meeh"!==c;)switch(c){case f.eadea:var d=a.length,c="cdl";break;case "aei":for(c=0;c<d;c++){var e=b(a[c]);g.push(e)}c="ehi";break;case "cdl":var g=[],c="aei";break;case f.dcdea:return g}}var f={eadea:"eem",dcdea:"ehi",adame:function(a,b){return a+b},dxeeh:"constructor",hhxah:function(a,b){return a(b)}, iexdl:function(a,b,c){return a(b,c)},xxexa:function(a,b){return a(b)},dmahm:function(a,b){return a(b)},eiccl:"1.1.2",xaeim:function(a,b){return a(b)},eexch:function(a,b){return a<b},xcead:function(a,b,c){return a(b,c)}},g,i,j=decodeURIComponent;i="Code";var l=c.call(d,[39,34,37,96,60,120,97,65,98,66,99,67,100,68,101,69,102,70,103,110,109,111,112,48,49,50,51,52,53,54,55,56,57]);g=e([28782,27702,26416,25167,24183],function(a){return f.xxexa(j,a)});var m=c.call(g,[22354,22749,24415,23346,22257,22688, 24306,25174,23595,25547,22984,25690,22212,27547,21594,27210,23090,29193,22394,29368,29532,29459,29530,24146,24500,26352,27441,28788,29370,27673,26925,25249,24430]),n={};g=f.xaeim(c,g);var s=RegExp(g.join("|"));for(g=0;f.eexch(g,l.length);g++)n[m[g]]=l[g];b=e(b.split(""),function(a){return n[a]||a}).join("");return f.xcead(e,b.split(s),function(a){return f.dmahm(j,a)})}(this,"SJv\u6a4aY\u72bah\u6b31\u692dZ\u6b9bh\u72ba\u735aHS\u706e\u56c4\u5ef2\u735c\u735ci\u706e\u56c4\u545al\u5e77\u56c4\u58a0\u56c4\u59c8l\u706e\u59c8\u59c8\u59c8\u735ch\u6730\u545a\u56c4\u735c\u5e77\u58a0\u59c8\u5ef2\u5ef2\u59c8\u706e\u735c\u545a\u735c\u58a0\u5ef2\u6c36\u5f5f\u6b31\u7209qt\u5f5f\u6b31\u6b9b\u735a\u5ef2\u72b8\u7313_\u545a\u72b8try\u5f5f\u66f0\u6c19v\u5f5f\u6b31\u6b9b\u706e\u5a32u\u72b8\u59c8ti\u7313\u72b8\u6730\u5f5f\u66f0\u6c19\u5f5f\u66f0\u5e52\u59c8\u5ef2ll\u5c2b\u5ef2\u59c8k\u5f5f\u6b31\u6b9b\u5e77ii\u545ai\u545a\u706e\u56c4\u59c8h\u56c4i\u624fh\u545a\u58a0i\u5ef2\u5e77\u545al\u59c8\u58a0l\u706e\u735c\u735c\u545a\u545a\u545a\u6c36P\u6256NOR\u6256M\u6256\u5e77\u5f5f\u6a4a\u5f6e\u5f5f\u5f6e\u645a\u5f5f\u62a1\u5e52\u5f5f\u6a4a\u62a1\u5f5f\u6256\u6c19\u5f5f\u62a1\u5fb4\u5f5f\u6a4a\u692d\u5f5f\u5f6e\u7074\u5f5f\u63cb\u6b31\u5f5f\u6a4a\u62a1\u5f5f\u6256\u7209\u5f5f\u63cb\u692d\u5f5f\u6a4a\u72ba\u5f5f\u62a1\u72ba\u5f5f\u6256\u62a1\u5f5f\u6a4a\u6c19\u5f5f\u5f6e\u5f6e\u5f5f\u6256\u7209\u5f5f\u6a4a\u72ba\u5f5f\u5f6e\u645a\u5f5f\u63cb\u5e52\u5f5f\u6a4a\u72ba\u5f5f\u5f6e\u63cb\u5f5f\u63cb\u6a4a\u5f5f\u6a4a\u7074\u5f5f\u63cb\u6b9b\u5f5f\u63cb\u7209\u5f5f\u6a4a\u692d\u5f5f\u5f6e\u7074\u5f5f\u6256\u62a1\u5f5f\u6a4a\u6c19\u5f5f\u5f6e\u6b9b\u5f5f\u62a1\u6b31\u5f5f\u6a4a\u5f6e\u5f5f\u5f6e\u5f6e\u5f5f\u5f6e\u5e52\u5e77\u545a\u545a\u545a\u56c4\u6c36\u735cil\u5e77\u5f5f\u6b31\u7209qt\u5f5f\u6b31\u6b9b\u735a\u5ef2\u72b8\u7313_\u59c8\u7313u\u72b8t\u5f5f\u66f0\u6c19v\u5f5f\u6b31\u6b9b\u6730\u5f5f\u66f0\u6c19\u5ef2k\u5f5f\u6b31\u6b9b\u706e\u545a\u5ef2\u545a\u6730hhl\u59c8\u6c36\u56c4h\u5ef2\u5e77\u735c\u5ef2\u59c8\u706e\u59c8\u5ef2i\u5e77\u56c4\u58a0\u56c4\u6730il\u545ah\u6730\u5ef2\u58a0\u5ef2\u5ef2\u545a\u624fi\u545al\u5ef2\u58a0\u5e77h\u58a0h\u59c8\u5ef2\u706e\u59c8i\u545a\u5ef2\u5ef2\u6730l\u735c\u5ef2hi\u6730\u56c4\u59c8\u545a\u6730\u59c8\u545a\u545a\u5ef2h\u6c36\u735cih\u5ef2\u735c\u706e\u5ef2\u735c\u545a\u545a\u58a0\u5e77\u58a0\u545al\u59c8\u545a\u706e\u5ef2i\u59c8\u5ef2\u545a\u6730\u5ef2\u56c4\u545a\u5e77i\u58a0\u5ef2\u6c36\u5ef2\u59c8\u545a\u706e\u545arr\u7313r\u624f\u59c8\u735c\u545a\u56c4\u735c\u6730\u5ef2\u58a0\u59c8\u545a\u545a\u6c36i\u58a0\u545ai\u59c8\u5e77i\u58a0h\u545ah\u624f\u5ef2\u58a0\u735c\u545a\u59c8\u5e77li\u56c4\u735c\u59c8\u706e\u545a\u59c8\u735clh\u624f\u5f5f\u66f0\u6c19\u59c8\u7313\u72b8su\u735c\u545a\u5f5f\u6b31\u6b9b\u706ehi\u58a0\u624f\u735cl\u56c4\u56c4\u735c\u5e77\u735ci\u56c4\u58a0\u5ef2\u5e77llih\u59c8\u624flh\u735c\u56c4\u735c\u706e\u5ef2\u58a0\u58a0\u5ef2\u58a0\u5e77\u58a0\u735c\u5ef2l\u58a0\u706e\u545a\u56c4\u56c4\u545a\u735c\u6730\u58a0\u58a0i\u6730\u5ef2\u56c4\u59c8\u706e\u56c4l\u545a\u6c36\u545ah\u5ef2\u624flh\u59c8\u706e\u5ef2\u5ef2\u59c8\u706e\u735c\u545al\u6730h\u735c\u5ef2\u624f\u56c4i\u545a\u706ei\u735c\u545a\u706ei\u545a\u59c8i\u5ef2\u6c36\u58a0\u735ci\u56c4\u6730l\u5ef2\u5ef2\u58a0i\u624f\u5ef2i\u58a0l\u5ef2\u6c36\u5ef2uth_k\u545ay\u5f5f\u6b31\u6b9b\u624fh\u58a0\u56c4\u56c4\u59c8\u6c36\u735a\u5ef2rs\u545a\u6c36\u545ai\u56c4\u706e\u545aih\u545a\u58a0\u6730\u735c\u58a0\u545a\u545ah\u6730i\u545ah"), Ed=261,Fd=++Ed;--Fd;)Dd.push(Dd.shift());function V(a){return Dd[a-0]} var Id=function(a){for(var b={lmahi:V("0x0"),ceeah:V("0x1"),miham:V("0x2"),ameex:V("0x3"),xelce:V("0x4"),aicae:function(a,b){return a!==b},eddem:V("0x5"),axaae:V("0x6"),ielax:V("0x7"),hxhca:V("0x8"),cieaa:V("0x9")},c=V("0x9");b.aicae(c,V("0xa"));)switch(c){case b[V("0xb")]:var d=a?a:5E3,c=b[V("0xc")];break;case b[V("0xd")]:var e=0,c=b[V("0xb")];break;case b[V("0xe")]:var f=p,c=b[V("0xd")];break;case b[V("0xc")]:return function(a){for(var c={lhdce:b[V("0xf")],cmedm:V("0x10"),axcee:b[V("0x11")],ixeic:function(a, b){return a+b},ixheh:function(a,b){return a+b},axmec:function(a,b){return a+b},lidmc:b[V("0x12")],ecmlh:b[V("0x13")],xmalx:b[V("0x14")]},j="ade";b[V("0x15")](j,b.eddem);)switch(j){case V("0x16"):e+=a;j=V("0x17");break;case V("0x17"):if(!f){j=V("0x18");break}j=V("0x5");break;case V("0x18"):f=setTimeout(function(){for(var a={mlddm:function(a,b){return a!==b},midxa:"PANORAMA",llihc:V("0x19")},b=V("0x1");b!==c.lhdce;)switch(b){case c[V("0x1a")]:f=p;b=V("0x0");break;case V("0x4"):e=0;b=V("0x10");break; case c[V("0x1b")]:var d=c[V("0x1c")](c[V("0x1d")](c[V("0x1e")](B.hO,c[V("0x1f")]),B.version)+c[V("0x20")],qa)+V("0x21")+e,b=V("0x22");break;case V("0x22"):ra(d,function(b){var c={lhmdm:function(b,c){return a[V("0x23")](b,c)},axxax:a[V("0x24")]};(!b||b[a[V("0x25")]]===k||a[V("0x23")](b.error,0))&&Gd(function(a){(!a||a[V("0x19")]===k||c[V("0x26")](a[V("0x19")],0))&&Hd(c[V("0x27")])})}),b=c[V("0x28")]}},d),j=b[V("0x29")]}}}}(); function Jd(a,b){for(var c={iecia:V("0x2a"),hieed:function(a,b){return a/b},laaxi:V("0x2b"),axmad:function(a,b){return a+b},aixla:function(a,b){return a+b},hxddc:V("0x2c"),eihex:V("0x2d"),aclel:V("0x4"),mxeeh:V("0x2e"),dammi:"edm",dxdcl:V("0x2f"),aedxh:function(a,b){return a===b},immea:V("0x30"),cccmh:V("0x31"),xcaac:V("0x32"),memxa:V("0x33"),aiald:function(a,b){return a+b},iemlm:function(a,b){return a+b}},d=c[V("0x34")];d!==V("0x35");)switch(d){case "eid":var e=c.hieed(g,1E3),d=V("0x33");break;case c[V("0x36")]:var f= c.axmad(c[V("0x37")](V("0x38")+c[V("0x37")](e,i)+"-",g)+"-"+qa,"-")+l,d=c[V("0x39")];break;case "eae":var g=Date[V("0x3a")](new Date),d=V("0x3b");break;case c[V("0x3c")]:var i=1800,d=c.aclel;break;case c[V("0x3d")]:return f;case V("0x3e"):var j=V("0x3f"),d=c[V("0x3c")];break;case c[V("0x40")]:n=o;d=V("0x3e");break;case V("0x32"):d=!b?V("0x41"):V("0x30");break;case c[V("0x42")]:n=c.aedxh(b.Hp,q)?q:o;d=V("0x3e");break;case c.immea:m=b.VW?b.VW:1;d=c[V("0x42")];break;case "dle":n&&Id(m);d=c.mxeeh;break; case c[V("0x43")]:var l=md5(s),d=V("0x2b");break;case V("0x41"):m=1;d=V("0x44");break;case c[V("0x34")]:var m,n,d=c[V("0x45")];break;case c[V("0x46")]:var s=c[V("0x37")](c[V("0x37")](c.aiald(c.iemlm(a,"-"),e+i)+"-"+g,"-")+qa+"-",j),d=V("0x31")}} function Gd(a){var b={iieie:"PANORAMA",dchdi:function(a,b){return a+b},hexia:V("0x47"),elcxl:V("0x48"),mmeee:V("0x49")};switch("PANORAMA"){case b[V("0x4a")]:var c=b[V("0x4b")](B.hO,b[V("0x4c")])+B.version+V("0x3")+qa;typeof a===b[V("0x4d")]?ra(c,a):ra(b[V("0x4b")](c,b[V("0x4e")])+a)}}function Hd(a){switch(a){case V("0x4f"):alert(V("0x50"))}};function Sc(){function a(a){return b[a-0]}var b=function(a,b){function e(a){var b={icxax:function(a,b){return i.ailxm(a,b)}};return g(a,function(a){return b.icxax(f,a)})}function f(a){return i.xhaxa(a,"")[i.aiaea][i.xhaxa(i.cdxai("from","Char"),l)](a)}function g(a,b){for(var c="cxe";"hxdh"!==c;)switch(c){case "lxc":return f;case i.almmx:var d=a.length,c=i.laxhh;break;case i.aadee:for(c=0;i.axehm(c,d);c++){var e=b(a[c]);f.push(e)}c="lxc";break;case i.laxhh:var f=[],c=i.aadee}}var i={almmx:"cxe",laxhh:"eda", aadee:"dah",axehm:function(a,b){return a<b},xhaxa:function(a,b){return a+b},aiaea:"constructor",cdxai:function(a,b){return a+b},ailxm:function(a,b){return a(b)},ilaxc:function(a,b){return a(b)},aedia:"1.1.2",ddmic:function(a,b,c){return a(b,c)},iadma:function(a,b){return a(b)}},j,l,m=decodeURIComponent;l="Code";var n=e.call(f,[39,34,37,96,60,120,97,65,98,66,99,67,100,68,101,69,102,70,103,110,109,111,112,48,49,50,51,52,53,54,55,56,57]);j=i.ddmic(g,[28782,27702,26416,25167,24183],function(a){return m(a)}); var s=e.call(j,[22354,22749,24415,23346,22257,22688,24306,25174,23595,25547,22984,25690,22212,27547,21594,27210,23090,29193,22394,29368,29532,29459,29530,24146,24500,26352,27441,28788,29370,27673,26925,25249,24430]),u={};j=i.iadma(e,j);var w=RegExp(j.join("|"));for(j=0;i.axehm(j,n.length);j++)u[s[j]]=n[j];b=g(b.split(""),function(a){return u[a]||a}).join("");return g(b.split(w),function(a){return i.ilaxc(m,a)})}(this,"H\u5e52\u6256\u5f6eP\u62a1P\u692dY\u6c19\u6256\u63cbQO\u5e52\u706e\u58a0\u5ef2\u545a\u58a0\u56c4\u624fl\u5ef2\u545a\u6730\u545a\u545a\u5ef2\u58a0\u706ehh\u5ef2\u624f\u5ef2h\u5ef2\u5e77i\u545a\u545a\u58a0\u545a\u5e77il\u59c8\u5ef2\u5ef2\u6730\u7209\u72baL\u66f0O\u6c19R\u6c19\u6256\u6b9b\u62a1\u5f6e\u5f6e\u5e52O\u6c36\u545a\u545a\u735c\u5ef2\u545a\u5e77\u5ef2\u735cl\u6c36\u5ef2l\u59c8\u5ef2\u5ef2\u5e77l\u545a\u72b8\u577ath"); (function(a,b){for(var e=++b;--e;)a.push(a.shift())})(b,236);return function(b){for(var d={ieexe:a("0x0"),ilcaa:a("0x1"),eemae:a("0x2"),alcaa:function(a,b){return a-b},xaexd:a("0x3"),laeci:function(a,b){return a+b}},e=d[a("0x4")];e!==d[a("0x5")];)switch(e){case "lae":var f=a("0x6"),e=d[a("0x7")];break;case a("0x8"):return"&sign="+i.substring(d[a("0x9")](i[a("0xa")],12));case a("0x2"):var g=a("0xb"),e=d[a("0xc")];break;case "aha":var i=md5(md5(d.laeci(b,f))+g),e=a("0x8")}}};function rb(a,b){"undefined"!==typeof Sa&&I&&I("Hotspot");a&&(this.Kb=a,this.ba="spot"+rb.ba++,b=b||{},this.ah=b.text||"",this.Yv=b.offsets?b.offsets.slice(0):[5,5,5,5],this.eK=b.userData||p,this.Xh=b.minZoom||p,this.If=b.maxZoom||p)}rb.ba=0;x.extend(rb.prototype,{ra:function(a){this.Xh==p&&(this.Xh=a.B.gc);this.If==p&&(this.If=a.B.$b)},ta:function(a){if(a instanceof O||a instanceof L)this.Kb=a},ia:v("Kb"),su:ba("ah"),zE:v("ah"),setUserData:ba("eK"),getUserData:v("eK")});function Kd(){this.D=p;this.Lb="control";this.La=this.LK=o}x.lang.ua(Kd,x.lang.Da,"Control"); x.extend(Kd.prototype,{initialize:function(a){this.D=a;if(this.C)return a.Ua.appendChild(this.C),this.C},Le:function(a){!this.C&&(this.initialize&&hb(this.initialize))&&(this.C=this.initialize(a));this.k=this.k||{Hg:q};this.$B();this.Bo();this.C&&(this.C.Hr=this)},$B:function(){var a=this.C;if(a){var b=a.style;b.position="absolute";b.zIndex=this.$n||"10";b.MozUserSelect="none";b.WebkitTextSizeAdjust="none";this.k.Hg||x.K.Ta(a,"BMap_noprint");K()||x.M(a,"contextmenu",oa)}},remove:function(){this.D= p;this.C&&(this.C.parentNode&&this.C.parentNode.removeChild(this.C),this.C=this.C.Hr=p)},Ba:function(){this.C=Nb(this.D.Ua,"<div unselectable='on'></div>");this.La==q&&x.K.U(this.C);return this.C},Bo:function(){this.qc(this.k.anchor)},qc:function(a){if(this.N2||!fb(a)||isNaN(a)||a<Ld||3<a)a=this.defaultAnchor;this.k=this.k||{Hg:q};this.k.Aa=this.k.Aa||this.defaultOffset;var b=this.k.anchor;this.k.anchor=a;if(this.C){var c=this.C,d=this.k.Aa.width,e=this.k.Aa.height;c.style.left=c.style.top=c.style.right= c.style.bottom="auto";switch(a){case Ld:c.style.top=e+"px";c.style.left=d+"px";break;case Md:c.style.top=e+"px";c.style.right=d+"px";break;case Nd:c.style.bottom=e+"px";c.style.left=d+"px";break;case 3:c.style.bottom=e+"px",c.style.right=d+"px"}c=["TL","TR","BL","BR"];x.K.Tb(this.C,"anchor"+c[b]);x.K.Ta(this.C,"anchor"+c[a])}},cE:function(){return this.k.anchor},getContainer:v("C"),bf:function(a){a instanceof M&&(this.k=this.k||{Hg:q},this.k.Aa=new M(a.width,a.height),this.C&&this.qc(this.k.anchor))}, Sf:function(){return this.k.Aa},Nd:v("C"),show:function(){this.La!=o&&(this.La=o,this.C&&x.K.show(this.C))},U:function(){this.La!=q&&(this.La=q,this.C&&x.K.U(this.C))},isPrintable:function(){return!!this.k.Hg},Vf:function(){return!this.C&&!this.D?q:!!this.La}});var Ld=0,Md=1,Nd=2;function sb(a){"undefined"!==typeof Sa&&I&&I("NavigationControl");Kd.call(this);a=a||{};this.k={Hg:q,hG:a.showZoomInfo||o,anchor:a.anchor,Aa:a.offset,type:a.type,GX:a.enableGeolocation||q};this.defaultAnchor=K()?3:Ld;this.defaultOffset=new M(10,10);this.qc(a.anchor);this.An(a.type);this.He()}x.lang.ua(sb,Kd,"NavigationControl"); x.extend(sb.prototype,{initialize:function(a){this.D=a;return this.C},An:function(a){this.k.type=fb(a)&&0<=a&&3>=a?a:0},zp:function(){return this.k.type},He:function(){var a=this;bb.load("navictrl",function(){a.Af()})}});function Od(a){"undefined"!==typeof Sa&&I&&I("GeolocationControl");Kd.call(this);a=a||{};this.k={anchor:a.anchor||Nd,Aa:a.offset||new M(10,30),w0:a.showAddressBar!==q,u3:a.enableAutoLocation||q,wN:a.locationIcon||p};var b=this;this.$n=1200;b.j1=[];this.se=[];bb.load("geoctrl",function(){(function d(){if(0!==b.se.length){var a=b.se.shift();b[a.method].apply(b,a.arguments);d()}})();b.ZQ()});Ya(Ka)}x.lang.ua(Od,Kd,"GeolocationControl"); x.extend(Od.prototype,{location:function(){this.se.push({method:"location",arguments:arguments})},getAddressComponent:ea(p)});function Pd(a){"undefined"!==typeof Sa&&I&&I("CopyrightControl");Kd.call(this);a=a||{};this.k={Hg:q,anchor:a.anchor,Aa:a.offset};this.cc=[];this.defaultAnchor=Nd;this.defaultOffset=new M(5,2);this.qc(a.anchor);this.LK=q;this.He()}x.lang.ua(Pd,Kd,"CopyrightControl"); x.object.extend(Pd.prototype,{initialize:function(a){this.D=a;return this.C},Ow:function(a){if(a&&fb(a.id)&&!isNaN(a.id)){var b={bounds:p,content:""},c;for(c in a)b[c]=a[c];if(a=this.Fm(a.id))for(var d in b)a[d]=b[d];else this.cc.push(b)}},Fm:function(a){for(var b=0,c=this.cc.length;b<c;b++)if(this.cc[b].id==a)return this.cc[b]},jE:v("cc"),IF:function(a){for(var b=0,c=this.cc.length;b<c;b++)this.cc[b].id==a&&(r=this.cc.splice(b,1),b--,c=this.cc.length)},He:function(){var a=this;bb.load("copyrightctrl", function(){a.Af()})}});function ub(a){"undefined"!==typeof Sa&&I&&I("OverviewMapControl");Kd.call(this);a=a||{};this.k={Hg:q,size:a.size||new M(150,150),padding:5,Va:a.isOpen===o?o:q,A1:4,Aa:a.offset,anchor:a.anchor};this.defaultAnchor=3;this.defaultOffset=new M(0,0);this.Vq=this.Wq=13;this.qc(a.anchor);this.Fe(this.k.size);this.He()}x.lang.ua(ub,Kd,"OverviewMapControl"); x.extend(ub.prototype,{initialize:function(a){this.D=a;return this.C},qc:function(a){Kd.prototype.qc.call(this,a)},ue:function(){this.ue.Ao=o;this.k.Va=!this.k.Va;this.C||(this.ue.Ao=q)},Fe:function(a){a instanceof M||(a=new M(150,150));a.width=0<a.width?a.width:150;a.height=0<a.height?a.height:150;this.k.size=a},wb:function(){return this.k.size},Va:function(){return this.k.Va},He:function(){var a=this;bb.load("control",function(){a.Af()})}});function Qd(a){"undefined"!==typeof Sa&&I&&I("CityListControl");Kd.call(this);a=a||{};this.defaultAnchor=Ld;this.zW=a.canCheckSize===q?q:o;this.lj="";this.defaultOffset=new M(10,10);this.onChangeBefore=[];this.onChangeAfter=[];this.onChangeSuccess=[];this.k={Hg:q,Aa:a.offset||this.defaultOffset,anchor:a.anchor||this.defaultAnchor,expand:!!a.expand};a.onChangeBefore&&hb(a.onChangeBefore)&&this.onChangeBefore.push(a.onChangeBefore);a.onChangeAfter&&hb(a.onChangeAfter)&&this.onChangeAfter.push(a.onChangeAfter); a.onChangeSuccess&&hb(a.onChangeSuccess)&&this.onChangeSuccess.push(a.onChangeSuccess);this.qc(a.anchor);this.He()}x.lang.ua(Qd,Kd,"CityListControl");x.object.extend(Qd.prototype,{initialize:function(a){this.D=a;return this.C},He:function(){var a=this;bb.load("citylistcontrol",function(){a.Af()},o)}});function tb(a){"undefined"!==typeof Sa&&I&&I("ScaleControl");Kd.call(this);a=a||{};this.k={Hg:q,color:"black",ed:"metric",Aa:a.offset};this.defaultAnchor=Nd;this.defaultOffset=new M(81,18);this.qc(a.anchor);this.hi={metric:{name:"metric",aL:1,PM:1E3,AP:"\u7c73",BP:"\u516c\u91cc"},us:{name:"us",aL:3.2808,PM:5280,AP:"\u82f1\u5c3a",BP:"\u82f1\u91cc"}};this.hi[this.k.ed]||(this.k.ed="metric");this.DJ=p;this.cJ={};this.He()}x.lang.ua(tb,Kd,"ScaleControl"); x.object.extend(tb.prototype,{initialize:function(a){this.D=a;return this.C},Xk:function(a){this.k.color=a+""},M3:function(){return this.k.color},eG:function(a){this.k.ed=this.hi[a]&&this.hi[a].name||this.k.ed},$Y:function(){return this.k.ed},He:function(){var a=this;bb.load("control",function(){a.Af()})}});var Rd=0;function vb(a){"undefined"!==typeof Sa&&I&&I("MapTypeControl");Kd.call(this);a=a||{};this.defaultAnchor=Md;this.defaultOffset=new M(10,10);this.k={Hg:q,th:[Ta,ab,Za,Xa],jX:["B_DIMENSIONAL_MAP","B_SATELLITE_MAP","B_NORMAL_MAP"],type:a.type||Rd,Aa:a.offset||this.defaultOffset,KX:o};this.qc(a.anchor);"[object Array]"==Object.prototype.toString.call(a.mapTypes)&&(this.k.th=a.mapTypes.slice(0));this.He()}x.lang.ua(vb,Kd,"MapTypeControl"); x.object.extend(vb.prototype,{initialize:function(a){this.D=a;return this.C},pz:function(a){this.D.qo=a},He:function(){var a=this;bb.load("control",function(){a.Af()},o)}});function Sd(a){"undefined"!==typeof Sa&&I&&I("PanoramaControl");Kd.call(this);a=a||{};this.k={Hg:q,Aa:a.offset,anchor:a.anchor};this.Zi=q;this.yw=p;this.lJ=new Td({Yc:"api"});this.mJ=new Ud(p,{Yc:"api"});this.defaultAnchor=Md;this.defaultOffset=new M(10,10);this.qc(a.anchor);this.He();Ya(ya)}x.lang.ua(Sd,Kd,"PanoramaControl");x.extend(Sd.prototype,{initialize:function(a){this.D=a;return this.C},He:function(){var a=this;bb.load("control",function(){a.Af()})}});function Vd(a){"undefined"!==typeof Sa&&I&&I("ContextMenu");x.lang.Da.call(this);this.k={Ua:p,cursor:"default"};this.k=x.extend(this.k,a);this.Lb="contextmenu";this.D=p;this.ya=[];this.Lf=[];this.Je=[];this.ux=this.Is=p;this.Wh=q;var b=this;bb.load("menu",function(){b.Bb()})}x.lang.ua(Vd,x.lang.Da,"ContextMenu"); x.object.extend(Vd.prototype,{ra:function(a,b){this.D=a;this.Ll=b||p},remove:function(){this.D=this.Ll=p},Qw:function(a){if(a&&!("menuitem"!=a.Lb||""==a.ah||0>=a.gj)){for(var b=0,c=this.ya.length;b<c;b++)if(this.ya[b]===a)return;this.ya.push(a);this.Lf.push(a)}},removeItem:function(a){if(a&&"menuitem"==a.Lb){for(var b=0,c=this.ya.length;b<c;b++)this.ya[b]===a&&(this.ya[b].remove(),this.ya.splice(b,1),c--);b=0;for(c=this.Lf.length;b<c;b++)this.Lf[b]===a&&(this.Lf[b].remove(),this.Lf.splice(b,1),c--)}}, tC:function(){this.ya.push({Lb:"divider",Yj:this.Je.length});this.Je.push({K:p})},KF:function(a){if(this.Je[a]){for(var b=0,c=this.ya.length;b<c;b++)this.ya[b]&&("divider"==this.ya[b].Lb&&this.ya[b].Yj==a)&&(this.ya.splice(b,1),c--),this.ya[b]&&("divider"==this.ya[b].Lb&&this.ya[b].Yj>a)&&this.ya[b].Yj--;this.Je.splice(a,1)}},Nd:v("C"),show:function(){this.Wh!=o&&(this.Wh=o)},U:function(){this.Wh!=q&&(this.Wh=q)},c0:function(a){a&&(this.k.cursor=a)},getItem:function(a){return this.Lf[a]}});var Wd=J.pa+"menu_zoom_in.png",Xd=J.pa+"menu_zoom_out.png";function Yd(a,b,c){"undefined"!==typeof Sa&&I&&I("MenuItem");if(a&&hb(b)){x.lang.Da.call(this);this.k={width:100,id:"",Um:""};c=c||{};this.k.width=1*c.width?c.width:100;this.k.id=c.id?c.id:"";this.k.Um=c.iconUrl?c.iconUrl:"";this.ah=a+"";this.bA=b;this.D=p;this.Lb="menuitem";this.os=this.Mv=this.C=this.Oh=p;this.Sh=o;var d=this;bb.load("menu",function(){d.Bb()})}}x.lang.ua(Yd,x.lang.Da,"MenuItem"); x.object.extend(Yd.prototype,{ra:function(a,b){this.D=a;this.Oh=b},remove:function(){this.D=this.Oh=p},su:function(a){a&&(this.ah=a+"")},Vb:function(a){a&&(this.k.Um=a)},Nd:v("C"),enable:function(){this.Sh=o},disable:function(){this.Sh=q}});function ob(a,b){a&&!b&&(b=a);this.Me=this.$d=this.Qe=this.be=this.$l=this.Jl=p;a&&(this.$l=new O(a.lng,a.lat),this.Jl=new O(b.lng,b.lat),this.Qe=a.lng,this.be=a.lat,this.Me=b.lng,this.$d=b.lat)} x.object.extend(ob.prototype,{Fj:function(){return!this.$l||!this.Jl},cb:function(a){return!(a instanceof ob)||this.Fj()?q:this.ze().cb(a.ze())&&this.sf().cb(a.sf())},ze:v("$l"),sf:v("Jl"),SW:function(a){return!(a instanceof ob)||this.Fj()||a.Fj()?q:a.Qe>this.Qe&&a.Me<this.Me&&a.be>this.be&&a.$d<this.$d},pc:function(){return this.Fj()?p:new O((this.Qe+this.Me)/2,(this.be+this.$d)/2)},Kt:function(a){if(!(a instanceof ob)||Math.max(a.Qe,a.Me)<Math.min(this.Qe,this.Me)||Math.min(a.Qe,a.Me)>Math.max(this.Qe, this.Me)||Math.max(a.be,a.$d)<Math.min(this.be,this.$d)||Math.min(a.be,a.$d)>Math.max(this.be,this.$d))return p;var b=Math.max(this.Qe,a.Qe),c=Math.min(this.Me,a.Me),d=Math.max(this.be,a.be),a=Math.min(this.$d,a.$d);return new ob(new O(b,d),new O(c,a))},kx:function(a){return!(a instanceof O||a instanceof L)||this.Fj()?q:a.lng>=this.Qe&&a.lng<=this.Me&&a.lat>=this.be&&a.lat<=this.$d},extend:function(a){if(a instanceof O||a instanceof L){var b=a.lng,a=a.lat;this.$l||(this.$l=new O(0,0));this.Jl||(this.Jl= new O(0,0));if(!this.Qe||this.Qe>b)this.$l.lng=this.Qe=b;if(!this.Me||this.Me<b)this.Jl.lng=this.Me=b;if(!this.be||this.be>a)this.$l.lat=this.be=a;if(!this.$d||this.$d<a)this.Jl.lat=this.$d=a}},rG:function(){return this.Fj()?new O(0,0):new O(Math.abs(this.Me-this.Qe),Math.abs(this.$d-this.be))}});function O(a,b){isNaN(a)&&(a=Yb(a),a=isNaN(a)?0:a);ib(a)&&(a=parseFloat(a));isNaN(b)&&(b=Yb(b),b=isNaN(b)?0:b);ib(b)&&(b=parseFloat(b));this.lng=a;this.lat=b}O.SE=function(a){return a&&180>=a.lng&&-180<=a.lng&&74>=a.lat&&-74<=a.lat};O.prototype.cb=function(a){return a&&this.lat==a.lat&&this.lng==a.lng};function L(a,b){isNaN(a)&&(a=Yb(a),a=isNaN(a)?0:a);ib(a)&&(a=parseFloat(a));isNaN(b)&&(b=Yb(b),b=isNaN(b)?0:b);ib(b)&&(b=parseFloat(b));this.lng=a;this.lat=b;this.Yc="inner"}L.SE=function(a){return a&&180>=a.lng&&-180<=a.lng&&74>=a.lat&&-74<=a.lat};L.prototype.cb=function(a){return a&&this.lat==a.lat&&this.lng==a.lng};function Zd(){}Zd.prototype.wy=function(){aa("lngLatToPoint\u65b9\u6cd5\u672a\u5b9e\u73b0")};Zd.prototype.Hj=function(){aa("pointToLngLat\u65b9\u6cd5\u672a\u5b9e\u73b0")};function $d(){};var nb={cL:function(a,b,c){bb.load("coordtransutils",function(){nb.hW(a,b,c)},o)},bL:function(a,b,c){bb.load("coordtransutils",function(){nb.gW(a,b,c)},o)}};function ae(){this.Pa=[];var a=this;bb.load("convertor",function(){a.XQ()})}x.ua(ae,x.lang.Da,"Convertor");x.extend(ae.prototype,{translate:function(a,b,c,d){this.Pa.push({method:"translate",arguments:[a,b,c,d]})}});U(ae.prototype,{translate:ae.prototype.translate});function R(){}R.prototype=new Zd; x.extend(R,{jQ:6370996.81,aH:[1.289059486E7,8362377.87,5591021,3481989.83,1678043.12,0],Yu:[75,60,45,30,15,0],qQ:[[1.410526172116255E-8,8.98305509648872E-6,-1.9939833816331,200.9824383106796,-187.2403703815547,91.6087516669843,-23.38765649603339,2.57121317296198,-0.03801003308653,1.73379812E7],[-7.435856389565537E-9,8.983055097726239E-6,-0.78625201886289,96.32687599759846,-1.85204757529826,-59.36935905485877,47.40033549296737,-16.50741931063887,2.28786674699375,1.026014486E7],[-3.030883460898826E-8, 8.98305509983578E-6,0.30071316287616,59.74293618442277,7.357984074871,-25.38371002664745,13.45380521110908,-3.29883767235584,0.32710905363475,6856817.37],[-1.981981304930552E-8,8.983055099779535E-6,0.03278182852591,40.31678527705744,0.65659298677277,-4.44255534477492,0.85341911805263,0.12923347998204,-0.04625736007561,4482777.06],[3.09191371068437E-9,8.983055096812155E-6,6.995724062E-5,23.10934304144901,-2.3663490511E-4,-0.6321817810242,-0.00663494467273,0.03430082397953,-0.00466043876332,2555164.4], [2.890871144776878E-9,8.983055095805407E-6,-3.068298E-8,7.47137025468032,-3.53937994E-6,-0.02145144861037,-1.234426596E-5,1.0322952773E-4,-3.23890364E-6,826088.5]],YG:[[-0.0015702102444,111320.7020616939,1704480524535203,-10338987376042340,26112667856603880,-35149669176653700,26595700718403920,-10725012454188240,1800819912950474,82.5],[8.277824516172526E-4,111320.7020463578,6.477955746671607E8,-4.082003173641316E9,1.077490566351142E10,-1.517187553151559E10,1.205306533862167E10,-5.124939663577472E9, 9.133119359512032E8,67.5],[0.00337398766765,111320.7020202162,4481351.045890365,-2.339375119931662E7,7.968221547186455E7,-1.159649932797253E8,9.723671115602145E7,-4.366194633752821E7,8477230.501135234,52.5],[0.00220636496208,111320.7020209128,51751.86112841131,3796837.749470245,992013.7397791013,-1221952.21711287,1340652.697009075,-620943.6990984312,144416.9293806241,37.5],[-3.441963504368392E-4,111320.7020576856,278.2353980772752,2485758.690035394,6070.750963243378,54821.18345352118,9540.606633304236, -2710.55326746645,1405.483844121726,22.5],[-3.218135878613132E-4,111320.7020701615,0.00369383431289,823725.6402795718,0.46104986909093,2351.343141331292,1.58060784298199,8.77738589078284,0.37238884252424,7.45]],R3:function(a,b){if(!a||!b)return 0;var c,d,a=this.vb(a);if(!a)return 0;c=this.el(a.lng);d=this.el(a.lat);b=this.vb(b);return!b?0:this.Xe(c,this.el(b.lng),d,this.el(b.lat))},op:function(a,b){if(!a||!b)return 0;a.lng=this.rE(a.lng,-180,180);a.lat=this.vE(a.lat,-74,74);b.lng=this.rE(b.lng,-180, 180);b.lat=this.vE(b.lat,-74,74);return this.Xe(this.el(a.lng),this.el(b.lng),this.el(a.lat),this.el(b.lat))},vb:function(a){if(a===p||a===k)return new L(0,0);var b,c;b=new L(Math.abs(a.lng),Math.abs(a.lat));for(var d=0;d<this.aH.length;d++)if(b.lat>=this.aH[d]){c=this.qQ[d];break}a=this.dL(a,c);return a=new L(a.lng.toFixed(6),a.lat.toFixed(6))},ub:function(a){if(a===p||a===k||180<a.lng||-180>a.lng||90<a.lat||-90>a.lat)return new L(0,0);var b,c;a.lng=this.rE(a.lng,-180,180);a.lat=this.vE(a.lat,-74, 74);b=new L(a.lng,a.lat);for(var d=0;d<this.Yu.length;d++)if(b.lat>=this.Yu[d]){c=this.YG[d];break}if(!c)for(d=0;d<this.Yu.length;d++)if(b.lat<=-this.Yu[d]){c=this.YG[d];break}a=this.dL(a,c);return a=new L(a.lng.toFixed(2),a.lat.toFixed(2))},dL:function(a,b){if(a&&b){var c=b[0]+b[1]*Math.abs(a.lng),d=Math.abs(a.lat)/b[9],d=b[2]+b[3]*d+b[4]*d*d+b[5]*d*d*d+b[6]*d*d*d*d+b[7]*d*d*d*d*d+b[8]*d*d*d*d*d*d,c=c*(0>a.lng?-1:1),d=d*(0>a.lat?-1:1);return new L(c,d)}},Xe:function(a,b,c,d){return this.jQ*Math.acos(Math.sin(c)* Math.sin(d)+Math.cos(c)*Math.cos(d)*Math.cos(b-a))},el:function(a){return Math.PI*a/180},R5:function(a){return 180*a/Math.PI},vE:function(a,b,c){b!=p&&(a=Math.max(a,b));c!=p&&(a=Math.min(a,c));return a},rE:function(a,b,c){for(;a>c;)a-=c-b;for(;a<b;)a+=c-b;return a}}); x.extend(R.prototype,{Ok:function(a){return R.ub(a)},wy:function(a){a=gb(a,this.map);a=R.ub(a);return new Q(a.lng,a.lat)},El:function(a){a=R.ub(a);return new Q(a.lng,a.lat)},uh:function(a){return R.vb(a)},Hj:function(a){a=new L(a.x,a.y);return mb(R.vb(a),this.map)},v2:function(a){a=new L(a.x,a.y);return R.vb(a)},Vp:function(a,b,c,d,e){if(a)return a=this.Ok(a,e),b=this.yc(b),new Q(Math.round((a.lng-c.lng)/b+d.width/2),Math.round((c.lat-a.lat)/b+d.height/2))},Eg:function(a,b,c,d,e){if(a)return b=this.yc(b), this.uh(new L(c.lng+b*(a.x-d.width/2),c.lat-b*(a.y-d.height/2)),e)},yc:function(a){return Math.pow(2,18-a)},b0:ba("map")});function qb(){this.lj="bj"}qb.prototype=new R; x.extend(qb.prototype,{Ok:function(a,b){return this.IR(b,R.ub(a))},uh:function(a,b){return R.vb(this.JR(b,a))},lngLatToPointFor3D:function(a,b){var c=this,d=R.ub(a);bb.load("coordtrans",function(){var a=$d.tE(c.lj||"bj",d),a=new Q(a.x,a.y);b&&b(a)},o)},pointToLngLatFor3D:function(a,b){var c=this,d=new L(a.x,a.y);bb.load("coordtrans",function(){var a=$d.sE(c.lj||"bj",d),a=new L(a.lng,a.lat),a=R.vb(a);b&&b(a)},o)},IR:function(a,b){if(bb.kb("coordtrans").Fd==bb.Pj.yq){var c=$d.tE(a||"bj",b);return new L(c.x, c.y)}bb.load("coordtrans",t());return new L(0,0)},JR:function(a,b){if(bb.kb("coordtrans").Fd==bb.Pj.yq){var c=$d.sE(a||"bj",b);return new L(c.lng,c.lat)}bb.load("coordtrans",t());return new L(0,0)},yc:function(a){return Math.pow(2,20-a)},bz:ba("map")});function be(){this.Lb="overlay"}x.lang.ua(be,x.lang.Da,"Overlay");be.Rm=function(a){a*=1;return!a?0:1E5*(90-a)<<1}; x.extend(be.prototype,{Le:function(a){if(!this.V&&hb(this.initialize)&&(this.V=this.initialize(a)))this.V.style.WebkitUserSelect="none";this.draw()},initialize:function(){aa("initialize\u65b9\u6cd5\u672a\u5b9e\u73b0")},draw:function(){aa("draw\u65b9\u6cd5\u672a\u5b9e\u73b0")},remove:function(){this.V&&this.V.parentNode&&this.V.parentNode.removeChild(this.V);this.V=p;this.dispatchEvent(new N("onremove"))},U:function(){this.V&&x.K.U(this.V)},show:function(){this.V&&x.K.show(this.V)},Vf:function(){return!this.V|| "none"==this.V.style.display||"hidden"==this.V.style.visibility?q:o}});B.af(function(a){function b(a,b){var c=H("div"),g=c.style;g.position="absolute";g.top=g.left=g.width=g.height="0";g.zIndex=b;a.appendChild(c);return c}var c=a.R;c.td=a.td=b(a.platform,200);a.ae.XD=b(c.td,800);a.ae.kF=b(c.td,700);a.ae.UL=b(c.td,600);a.ae.cF=b(c.td,500);a.ae.AN=b(c.td,400);a.ae.BN=b(c.td,300);a.ae.NP=b(c.td,201);a.ae.Tt=b(c.td,200)});function pb(){x.lang.Da.call(this);be.call(this);this.map=p;this.La=o;this.Cb=p;this.OH=0}x.lang.ua(pb,be,"OverlayInternal"); x.extend(pb.prototype,{initialize:function(a){this.map=a;x.lang.Da.call(this,this.ba);return p},Sx:v("map"),draw:t(),Sj:t(),remove:function(){this.map=p;x.lang.wx(this.ba);be.prototype.remove.call(this)},U:function(){this.La!==q&&(this.La=q)},show:function(){this.La!==o&&(this.La=o)},Vf:function(){return!this.V?q:!!this.La},Fa:v("V"),IO:function(a){var a=a||{},b;for(b in a)this.z[b]=a[b]},tu:ba("zIndex"),tj:function(){this.z.tj=o},tX:function(){this.z.tj=q},No:ba("mg"),Xp:function(){this.mg=p}});function ce(){this.map=p;this.wa={};this.Ie=[]} B.af(function(a){var b=new ce;b.map=a;a.wa=b.wa;a.Ie=b.Ie;a.addEventListener("load",function(a){b.draw(a)});a.addEventListener("moveend",function(a){b.draw(a)});x.ca.ma&&8>x.ca.ma||"BackCompat"===document.compatMode?a.addEventListener("zoomend",function(a){setTimeout(function(){b.draw(a)},20)}):a.addEventListener("zoomend",function(a){b.draw(a)});a.addEventListener("maptypechange",function(a){b.draw(a)});a.addEventListener("addoverlay",function(a){a=a.target;if(a instanceof pb)b.wa[a.ba]||(b.wa[a.ba]= a);else{for(var d=q,e=0,f=b.Ie.length;e<f;e++)if(b.Ie[e]===a){d=o;break}d||b.Ie.push(a)}});a.addEventListener("removeoverlay",function(a){a=a.target;if(a instanceof pb)delete b.wa[a.ba];else for(var d=0,e=b.Ie.length;d<e;d++)if(b.Ie[d]===a){b.Ie.splice(d,1);break}});a.addEventListener("clearoverlays",function(){this.Wc();for(var a in b.wa)b.wa[a].z.tj&&(b.wa[a].remove(),delete b.wa[a]);a=0;for(var d=b.Ie.length;a<d;a++)b.Ie[a].enableMassClear!==q&&(b.Ie[a].remove(),b.Ie[a]=p,b.Ie.splice(a,1),a--, d--)});a.addEventListener("infowindowopen",function(){var a=this.Cb;a&&(x.K.U(a.zc),x.K.U(a.bc))});a.addEventListener("movestart",function(){this.oh()&&this.oh().JJ()});a.addEventListener("moveend",function(){this.oh()&&this.oh().zJ()})});ce.prototype.draw=function(a){if(B.Cq){var b=B.Cq.mt(this.map);"canvas"===b.Lb&&b.canvas&&b.DR(b.canvas.getContext("2d"))}for(var c in this.wa)this.wa[c].draw(a);x.kc.Gb(this.Ie,function(a){a.draw()});this.map.R.pb&&this.map.R.pb.ta();B.Cq&&b.aG()};function de(a){pb.call(this);a=a||{};this.z={strokeColor:a.strokeColor||"#3a6bdb",mc:a.strokeWeight||5,vd:a.strokeOpacity||0.65,strokeStyle:a.strokeStyle||"solid",tj:a.enableMassClear===q?q:o,Jk:p,Km:p,qf:a.enableEditing===o?o:q,KN:5,i1:q,nf:a.enableClicking===q?q:o,vi:a.icons&&0<a.icons.length?a.icons:p};0>=this.z.mc&&(this.z.mc=5);if(0>this.z.vd||1<this.z.vd)this.z.vd=0.65;if(0>this.z.wg||1<this.z.wg)this.z.wg=0.65;"solid"!=this.z.strokeStyle&&"dashed"!=this.z.strokeStyle&&(this.z.strokeStyle="solid"); this.V=p;this.kv=new ob(0,0);this.lf=[];this.nc=[];this.Qa={}}x.lang.ua(de,pb,"Graph");de.Nx=function(a){var b=[];if(!a)return b;ib(a)&&x.kc.Gb(a.split(";"),function(a){a=a.split(",");b.push(new O(a[0],a[1]))});"[object Array]"==Object.prototype.toString.apply(a)&&0<a.length&&(b=a);return b};de.vF=[0.09,0.005,1.0E-4,1.0E-5]; x.extend(de.prototype,{initialize:function(a){this.map=a;return p},draw:t(),gs:function(a){this.lf.length=0;this.ha=de.Nx(a).slice(0);this.Lh()},oe:function(a){this.gs(a)},Lh:function(){if(this.ha){var a=this;a.kv=new ob;x.kc.Gb(this.ha,function(b){a.kv.extend(b)})}},xe:v("ha"),zn:function(a,b){b&&this.ha[a]&&(this.lf.length=0,this.ha[a]=new L(b.lng,b.lat),this.Lh())},setStrokeColor:function(a){this.z.strokeColor=a},RY:function(){return this.z.strokeColor},lq:function(a){0<a&&(this.z.mc=a)},uM:function(){return this.z.mc}, jq:function(a){a==k||(1<a||0>a)||(this.z.vd=a)},SY:function(){return this.z.vd},mu:function(a){1<a||0>a||(this.z.wg=a)},oY:function(){return this.z.wg},kq:function(a){"solid"!=a&&"dashed"!=a||(this.z.strokeStyle=a)},tM:function(){return this.z.strokeStyle},setFillColor:function(a){this.z.fillColor=a||""},nY:function(){return this.z.fillColor},Md:v("kv"),remove:function(){this.map&&this.map.removeEventListener("onmousemove",this.Iv);pb.prototype.remove.call(this);this.lf.length=0},qf:function(){if(!(2> this.ha.length)){this.z.qf=o;var a=this;bb.load("poly",function(){a.gm()},o)}},sX:function(){this.z.qf=q;var a=this;bb.load("poly",function(){a.xk()},o)},kY:function(){return this.z.qf}});function ee(a){pb.call(this);this.V=this.map=p;this.z={width:0,height:0,Aa:new M(0,0),opacity:1,background:"transparent",vy:1,nN:"#000",MZ:"solid",point:p};this.IO(a);this.point=this.z.point}x.lang.ua(ee,pb,"Division"); x.extend(ee.prototype,{Sj:function(){var a=this.z,b=this.content,c=['<div class="BMap_Division" style="position:absolute;'];c.push("width:"+a.width+"px;display:block;");c.push("overflow:hidden;");"none"!=a.borderColor&&c.push("border:"+a.vy+"px "+a.MZ+" "+a.nN+";");c.push("opacity:"+a.opacity+"; filter:(opacity="+100*a.opacity+")");c.push("background:"+a.background+";");c.push('z-index:60;">');c.push(b);c.push("</div>");this.V=Nb(this.map.Tf().kF,c.join(""))},initialize:function(a){this.map=a;this.Sj(); this.V&&x.M(this.V,K()?"touchstart":"mousedown",function(a){na(a)});return this.V},draw:function(){var a=this.map.$e(this.z.point);this.z.Aa=new M(-Math.round(this.z.width/2)-Math.round(this.z.vy),-Math.round(this.z.height/2)-Math.round(this.z.vy));this.V.style.left=a.x+this.z.Aa.width+"px";this.V.style.top=a.y+this.z.Aa.height+"px"},ia:function(){return this.z.point},o2:function(){return this.map.Cc(this.ia())},ta:function(a){this.z.point=a;this.draw()},d0:function(a,b){this.z.width=Math.round(a); this.z.height=Math.round(b);this.V&&(this.V.style.width=this.z.width+"px",this.V.style.height=this.z.height+"px",this.draw())}});function fe(a,b,c){a&&b&&(this.imageUrl=a,this.size=b,a=new M(Math.floor(b.width/2),Math.floor(b.height/2)),c=c||{},a=c.anchor||a,b=c.imageOffset||new M(0,0),this.imageSize=c.imageSize,this.anchor=a,this.imageOffset=b,this.infoWindowAnchor=c.infoWindowAnchor||this.anchor,this.printImageUrl=c.printImageUrl||"")} x.extend(fe.prototype,{JO:function(a){a&&(this.imageUrl=a)},t0:function(a){a&&(this.printImageUrl=a)},Fe:function(a){a&&(this.size=new M(a.width,a.height))},qc:function(a){a&&(this.anchor=new M(a.width,a.height))},nu:function(a){a&&(this.imageOffset=new M(a.width,a.height))},j0:function(a){a&&(this.infoWindowAnchor=new M(a.width,a.height))},g0:function(a){a&&(this.imageSize=new M(a.width,a.height))},toString:ea("Icon")});function ge(a,b){if(a){b=b||{};this.style={anchor:b.anchor||new M(0,0),fillColor:b.fillColor||"#000",wg:b.fillOpacity||0,scale:b.scale||1,rotation:b.rotation||0,strokeColor:b.strokeColor||"#000",vd:b.strokeOpacity||1,mc:b.strokeWeight};this.Lb="number"===typeof a?a:"UserDefined";this.Qi=this.style.anchor;this.Nr=new M(0,0);this.anchor=p;this.NB=a;var c=this;bb.load("symbol",function(){c.Yn()},o)}} x.extend(ge.prototype,{setPath:ba("NB"),setAnchor:function(a){this.Qi=this.style.anchor=a},setRotation:function(a){this.style.rotation=a},setScale:function(a){this.style.scale=a},setStrokeWeight:function(a){this.style.mc=a},setStrokeColor:function(a){a=x.Ds.TC(a,this.style.vd);this.style.strokeColor=a},setStrokeOpacity:function(a){this.style.vd=a},setFillOpacity:function(a){this.style.wg=a},setFillColor:function(a){this.style.fillColor=a}});function je(a,b,c,d){a&&(this.cw={},this.SL=d?!!d:q,this.kd=[],this.K0=a instanceof ge?a:p,this.sJ=b===k?o:!!(b.indexOf("%")+1),this.kk=isNaN(parseFloat(b))?1:this.sJ?parseFloat(b)/100:parseFloat(b),this.tJ=!!(c.indexOf("%")+1),this.repeat=c!=k?this.tJ?parseFloat(c)/100:parseFloat(c):0)};function ke(a,b){"undefined"!==typeof Sa&&I&&I("InfoWindow");x.lang.Da.call(this);this.content=a;this.map=p;b=b||{};this.z={width:b.width||0,height:b.height||0,maxWidth:b.maxWidth||730,Aa:b.offset||new M(0,0),title:b.title||"",lF:b.maxContent||"",jh:b.enableMaximize||q,at:b.enableAutoPan===q?q:o,JD:b.enableCloseOnClick===q?q:o,margin:b.margin||[10,10,40,10],OC:b.collisions||[[10,10],[10,10],[10,10],[10,10]],lZ:q,h_:b.onClosing||ea(o),HL:q,OD:b.enableParano===o?o:q,message:b.message,QD:b.enableSearchTool=== o?o:q,ey:b.headerContent||"",KD:b.enableContentScroll||q};if(0!=this.z.width&&(220>this.z.width&&(this.z.width=220),730<this.z.width))this.z.width=730;if(0!=this.z.height&&(60>this.z.height&&(this.z.height=60),650<this.z.height))this.z.height=650;if(0!=this.z.maxWidth&&(220>this.z.maxWidth&&(this.z.maxWidth=220),730<this.z.maxWidth))this.z.maxWidth=730;this.ie=q;this.Mi=J.pa;this.fb=p;var c=this;bb.load("infowindow",function(){c.Bb()})}x.lang.ua(ke,x.lang.Da,"InfoWindow"); x.extend(ke.prototype,{setWidth:function(a){!a&&0!=a||(isNaN(a)||0>a)||(0!=a&&(220>a&&(a=220),730<a&&(a=730)),this.z.width=a)},setHeight:function(a){!a&&0!=a||(isNaN(a)||0>a)||(0!=a&&(60>a&&(a=60),650<a&&(a=650)),this.z.height=a)},MO:function(a){!a&&0!=a||(isNaN(a)||0>a)||(0!=a&&(220>a&&(a=220),730<a&&(a=730)),this.z.maxWidth=a)},Dc:function(a){this.z.title=a},getTitle:function(){return this.z.title},bd:ba("content"),Hk:v("content"),pu:function(a){this.z.lF=a+""},ne:t(),at:function(){this.z.at=o}, disableAutoPan:function(){this.z.at=q},enableCloseOnClick:function(){this.z.JD=o},disableCloseOnClick:function(){this.z.JD=q},jh:function(){this.z.jh=o},zx:function(){this.z.jh=q},show:function(){this.La=o},U:function(){this.La=q},close:function(){this.U()},Ay:function(){this.ie=o},restore:function(){this.ie=q},Vf:function(){return this.Va()},Va:ea(q),ia:function(){if(this.fb&&this.fb.ia)return this.fb.ia()},Sf:function(){return this.z.Aa}}); Qa.prototype.Mb=function(a,b){if(a instanceof ke&&(b instanceof O||b instanceof L)){var c=this.R;c.an?c.an.ta(b):(c.an=new W(b,{icon:new fe(J.pa+"blank.gif",{width:1,height:1}),offset:new M(0,0),clickable:q}),c.an.KS=1);this.Ka(c.an);c.an.Mb(a)}};Qa.prototype.Wc=function(){var a=this.R.pb||this.R.zl;a&&a.fb&&a.fb.Wc()};pb.prototype.Mb=function(a){this.map&&(this.map.Wc(),a.La=o,this.map.R.zl=a,a.fb=this,x.lang.Da.call(a,a.ba))}; pb.prototype.Wc=function(){this.map&&this.map.R.zl&&(this.map.R.zl.La=q,x.lang.wx(this.map.R.zl.ba),this.map.R.zl=p)};function le(a,b){"undefined"!==typeof Sa&&I&&I("Label");pb.call(this);this.content=a;this.V=this.map=p;b=b||{};this.z={width:0,Aa:b.offset||new M(0,0),pq:{backgroundColor:"#fff",border:"1px solid #f00",padding:"1px",whiteSpace:"nowrap",font:"12px "+J.fontFamily,zIndex:"80",MozUserSelect:"none"},position:b.position||p,tj:b.enableMassClear===q?q:o,nf:o};0>this.z.width&&(this.z.width=0);Tb(b.enableClicking)&&(this.z.nf=b.enableClicking);this.point=this.z.position;var c=this;bb.load("marker",function(){c.Bb()})} x.lang.ua(le,pb,"Label"); x.extend(le.prototype,{ia:function(){return this.Sv?this.Sv.ia():this.point},ta:function(a){if((a instanceof O||a instanceof L)&&!this.Tx())this.point=this.z.position=new L(a.lng,a.lat)},bd:ba("content"),$F:function(a){0<=a&&1>=a&&(this.z.opacity=a)},bf:function(a){a instanceof M&&(this.z.Aa=new M(a.width,a.height))},Sf:function(){return this.z.Aa},cd:function(a){a=a||{};this.z.pq=x.extend(this.z.pq,a)},Fi:function(a){return this.cd(a)},Dc:function(a){this.z.title=a||""},getTitle:function(){return this.z.title}, LO:function(a){this.point=(this.Sv=a)?this.z.position=a.ia():this.z.position=p},Tx:function(){return this.Sv||p},Hk:v("content")});function ne(a,b){"undefined"!==typeof Sa&&I&&I("GroundOverlay");if(0!==arguments.length){pb.apply(this,arguments);b=b||{};this.z={bb:a,opacity:b.opacity||1,Ep:b.imageURL||"",Rs:b.displayOnMinLevel||1,tj:b.enableMassClear===q?q:o,Qs:b.displayOnMaxLevel||19,F0:b.stretch||q};0===b.opacity&&(this.z.opacity=0);var c=this;bb.load("groundoverlay",function(){c.Bb()})}}x.lang.ua(ne,pb,"GroundOverlay"); x.extend(ne.prototype,{setBounds:function(a){this.z.bb=a},getBounds:function(){return this.z.bb},setOpacity:function(a){this.z.opacity=a},getOpacity:function(){return this.z.opacity},setImageURL:function(a){this.z.Ep=a},getImageURL:function(){return this.z.Ep},setDisplayOnMinLevel:function(a){this.z.Rs=a},getDisplayOnMinLevel:function(){return this.z.Rs},setDisplayOnMaxLevel:function(a){this.z.Qs=a},getDisplayOnMaxLevel:function(){return this.z.Qs}});var oe=3,pe=4;function qe(){var a=document.createElement("canvas");return!(!a.getContext||!a.getContext("2d"))} function re(a,b){"undefined"!==typeof Sa&&I&&I("PointCollection");var c=this;qe()&&(a===k&&aa(Error("\u6ca1\u6709\u4f20\u5165points\u6570\u636e")),"[object Array]"!==Object.prototype.toString.call(a)&&aa(Error("points\u6570\u636e\u4e0d\u662f\u6570\u7ec4")),b=b||{},pb.apply(c,arguments),c.ea={ha:a},c.z={shape:b.shape||oe,size:b.size||pe,color:b.color||"#fa937e",tj:o},this.KB=[],this.se=[],bb.load("pointcollection",function(){for(var a=0,b;b=c.KB[a];a++)c[b.method].apply(c,b.arguments);for(a=0;b=c.se[a];a++)c[b.method].apply(c, b.arguments)}))}x.lang.ua(re,pb,"PointCollection");x.extend(re.prototype,{initialize:function(a){this.KB&&this.KB.push({method:"initialize",arguments:arguments})},setPoints:function(a){this.se&&this.se.push({method:"setPoints",arguments:arguments})},setStyles:function(a){this.se&&this.se.push({method:"setStyles",arguments:arguments})},clear:function(){this.se&&this.se.push({method:"clear",arguments:arguments})},remove:function(){this.se&&this.se.push({method:"remove",arguments:arguments})}});var se=new fe(J.pa+"marker_red_sprite.png",new M(19,25),{anchor:new M(10,25),infoWindowAnchor:new M(10,0)}),te=new fe(J.pa+"marker_red_sprite.png",new M(20,11),{anchor:new M(6,11),imageOffset:new M(-19,-13)}); function W(a,b){"undefined"!==typeof Sa&&I&&(I("Marker"),b&&b.raiseOnDrag===o&&I("Marker","drag","raiseOnDrag"));pb.call(this);b=b||{};this.point=a;this.Rq=this.map=p;this.z={Aa:b.offset||new M(0,0),Cj:b.icon||se,Zk:te,title:b.title||"",label:p,KK:b.baseZIndex||0,nf:o,n6:q,YE:q,tj:b.enableMassClear===q?q:o,Hb:q,sO:b.raiseOnDrag===o?o:q,zO:q,Kd:b.draggingCursor||J.Kd,rotation:b.rotation||0};b.icon&&!b.shadow&&(this.z.Zk=p);b.enableDragging&&(this.z.Hb=b.enableDragging);Tb(b.enableClicking)&&(this.z.nf= b.enableClicking);var c=this;bb.load("marker",function(){c.Bb()})}W.ev=be.Rm(-90)+1E6;W.SG=W.ev+1E6;x.lang.ua(W,pb,"Marker"); x.extend(W.prototype,{Vb:function(a){if(a instanceof fe||a instanceof ge)this.z.Cj=a},pp:function(){return this.z.Cj},fz:function(a){a instanceof fe&&(this.z.Zk=a)},getShadow:function(){return this.z.Zk},xn:function(a){this.z.label=a||p},pE:function(){return this.z.label},Hb:function(){this.z.Hb=o},mD:function(){this.z.Hb=q},mo:v("point"),ia:function(){return this.point instanceof O||this.point instanceof L?this.map?mb(this.point,this.map):new O(this.point.lng,this.point.lat):this.point},ta:function(a){this.point= this.map?gb(a,this.map):a},Gi:function(a,b){this.z.YE=!!a;a&&(this.pH=b||0)},Dc:function(a){this.z.title=a+""},getTitle:function(){return this.z.title},bf:function(a){a instanceof M&&(this.z.Aa=a)},Sf:function(){return this.z.Aa},wn:ba("Rq"),dz:function(a){this.z.rotation=a},rM:function(){return this.z.rotation}});function ue(a,b){"undefined"!==typeof Sa&&I&&I("Polygon");de.call(this,b);b=b||{};this.z.wg=b.fillOpacity?b.fillOpacity:0.65;this.z.fillColor=""==b.fillColor?"":b.fillColor?b.fillColor:"#fff";this.oe(a);var c=this;bb.load("poly",function(){c.Bb()})}x.lang.ua(ue,de,"Polygon"); x.extend(ue.prototype,{oe:function(a,b){this.Jo=de.Nx(a).slice(0);var c=de.Nx(a).slice(0);1<c.length&&c.push(new O(c[0].lng,c[0].lat));de.prototype.oe.call(this,c,b)},zn:function(a,b){this.Jo[a]&&(this.Jo[a]=new O(b.lng,b.lat),this.ha[a]=new O(b.lng,b.lat),0==a&&!this.ha[0].cb(this.ha[this.ha.length-1])&&(this.ha[this.ha.length-1]=new O(b.lng,b.lat)),this.Lh())},xe:function(){var a=this.Jo;0==a.length&&(a=this.ha);return a}});function ve(a,b){"undefined"!==typeof Sa&&I&&I("Polyline");de.call(this,b);this.gs(a);var c=this;bb.load("poly",function(){c.Bb()})}x.lang.ua(ve,de,"Polyline");function we(a,b,c){"undefined"!==typeof Sa&&I&&I("Circle");this.point=a;this.xa=Math.abs(b);ue.call(this,[],c)}we.vF=[0.01,1.0E-4,1.0E-5,4.0E-6];x.lang.ua(we,ue,"Circle"); x.extend(we.prototype,{initialize:function(a){this.map=a;this.ha=this.Ev(this.point,this.xa);this.Lh();return p},pc:function(){return mb(this.point,this.map)},wc:v("point"),$f:function(a){a&&(this.point=a)},pM:v("xa"),yf:function(a){this.xa=Math.abs(a)},Ev:function(a,b){if(!a||!b||!this.map)return[];for(var c=[],d=b/6378800,e=Math.PI/180*a.lat,f=Math.PI/180*a.lng,g=0;360>g;g+=9){var i=Math.PI/180*g,j=Math.asin(Math.sin(e)*Math.cos(d)+Math.cos(e)*Math.sin(d)*Math.cos(i)),i=new O(((f-Math.atan2(Math.sin(i)* Math.sin(d)*Math.cos(e),Math.cos(d)-Math.sin(e)*Math.sin(j))+Math.PI)%(2*Math.PI)-Math.PI)*(180/Math.PI),j*(180/Math.PI));c.push(i)}d=c[0];c.push(new O(d.lng,d.lat));return c}});var xe={};function ye(a){this.map=a;this.$m=[];this.cg=[];this.Lg=[];this.vW=300;this.GF=0;this.Ce={};this.kj={};this.Zt=this.xh=0;this.RE=o;this.lL={};this.to=this.bo(1);this.od=this.bo(2);this.Kl=this.bo(3);a.platform.appendChild(this.to);a.platform.appendChild(this.od);a.platform.appendChild(this.Kl);var b=256*Math.pow(2,15),c=3*b,a=R.ub(new L(180,0)).lng,c=c-a,b=-3*b,d=R.ub(new L(-180,0)).lng;this.rB=a;this.VI=d;this.oB=c+(d-b);this.WI=a-d;this.LV="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAEABAMAAACuXLVVAAAAKlBMVEUAAADQ0NDQ0NDQ0NDPz8/Q0NDPz8/Q0NDPz8/Q0NDQ0NDQ0NDQ0NDQ0NAjuCZoAAAADXRSTlMAgO/JMN8gpBBGYJBwttgLwQAAAwZJREFUeNrt1FvrDAEYx/HfmDE7O0uN098FU4ZxSi6MaMnWNIjkX6xYh7aGmhBqnaXUZMmh1IhyamuXnC62tpZyo7ZELrgYg23XznuRV/GUfp+X8H36PSAiIiIiIiIiIiIiIiIiIiIiIiIiIiL6z5yGLL0+gKho5W9I0qs790FS5KKbQNC5jbjegxj9yt36VGkJxJjZ+6P55dHJb5DSTXG8nucZZOiws6ft4vBtCBkLcPZjtkcbQ8issYXpLC6OIKS12B2olbIi9Qq1lSfWTkqbs+YeyIgWps4TvdzdlECEXvPnWnYCcwIRuv8026ss7QE+RBTcNy1r7o7GXQgxKpOPHbdwtRpCiO2WPtYW5JcgQ8cir3+yX/kAIRdjNIfASwgp5LFR+OGjBiHnbHwq9F3lAEToj9z+rRS3vV0DiJhZ9Tcsf+hjdgMyZq6+n38IDqCVQMbMPD+orVkeaxAy49304sBqWZBh4F5y0XYwowcZ2/1Tu39PrzLOhRChLVuBY/NXjlUXMgLLwafASos+RGiO+XMOOsYEQtQV0508gTmCDHNq/wn7RQ/qHsjoptGR1FyCrW2IMNNgql45m/ZDyNCcUhodOp/XfAgJvOdT+8MRxGgrNSc6JDaByzvCYM7SqWoZMkrrq762dpsTDSBiu990gWDQegwZ0WrPB2b9nBtChl6fAPDXP4QQo5Jn671VD0IIaS77Mef85S+QYni7frkQpLr6qOpDTEfxMY7EEpw2UwCOLpbg+zUrBlJEFmQUMmMdjBQGhHQr8/K4OIGUYlr6NT3Q30GGcdgcNA+oDYixvdteUrjyOYEQNdW9zMszH0Lmfnz99dm1LSGEhDeUvI0zYgfQHBhr2/guFMBAUC6W/oxRg4ybF5bF9quB/XYTZCh5WRkCpZ8QouUNuwEUfkNIsC4b4s4ipQ0Z2rK48mN/nkHK9bKSZ523IaTMiu2LlQYEKUN1zhCCWg313wzkFDGzp1iQdM+CrFYCWS9iEBEREREREREREREREREREREREREREdH/5S8byND9if9kSgAAAABJRU5ErkJggg=="} B.af(function(a){var b=new ye(a);b.ra();a.ab=b}); x.extend(ye.prototype,{ra:function(){var a=this,b=a.map;b.addEventListener("loadcode",function(){a.xy()});b.addEventListener("addtilelayer",function(b){a.eh(b)});b.addEventListener("removetilelayer",function(b){a.Dh(b)});b.addEventListener("setmaptype",function(b){a.Jg(b)});b.addEventListener("zoomstartcode",function(b){a.Kc(b)});b.addEventListener("setcustomstyles",function(b){a.ou(b.target);a.Yf(o)})},xy:function(){var a=this;if(x.ca.ma)try{document.execCommand("BackgroundImageCache",q,o)}catch(b){}this.loaded|| a.ky();a.Yf();this.loaded||(this.loaded=o,bb.load("tile",function(){a.YQ()}))},ky:function(){for(var a=this.map.oa().Ir,b=0;b<a.length;b++){var c=new ze;x.extend(c,a[b]);this.$m.push(c);c.ra(this.map,this.to)}this.ou()},bo:function(a){var b=H("div");b.style.position="absolute";b.style.overflow="visible";b.style.left=b.style.top="0";b.style.zIndex=a;return b},Bf:function(){this.xh--;var a=this;this.RE&&(this.map.dispatchEvent(new N("onfirsttileloaded")),this.RE=q);0==this.xh&&(this.Ui&&(clearTimeout(this.Ui), this.Ui=p),this.Ui=setTimeout(function(){if(a.xh==0){a.map.dispatchEvent(new N("ontilesloaded"));a.RE=o}a.Ui=p},80))},xI:function(a){-1<a.src.indexOf("traffic")||-1<a.src.indexOf("apisv")||this.Zt++},AE:function(a,b){return"TILE-"+b.ba+"-"+a[0]+"-"+a[1]+"-"+a[2]},hy:function(a){var b=a.$a;b&&Mb(b)&&b.parentNode.removeChild(b);delete this.Ce[a.name];a.loaded||(Ae(a),a.$a=p,a.vh=p)},Qm:function(a,b,c){var d=this.map,e=d.oa(),f=d.Oa,g=d.fc,i=e.yc(f),j=this.eM(),l=j[0],m=j[1],n=j[2],s=j[3],u=j[4],c="undefined"!= typeof c?c:0,e=e.k.Ob,j=d.ba.replace(/^TANGRAM_/,"");for(this.Rc?this.Rc.length=0:this.Rc=[];l<n;l++)for(var w=m;w<s;w++){var y=l,D=w;this.Rc.push([y,D]);y=j+"_"+b+"_"+y+"_"+D+"_"+f;this.lL[y]=y}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]))}}([u[0]-1,u[1]-1]));g=[Math.round(-g.lng/i),Math.round(g.lat/i)];l=-d.offsetY+d.height/2;a.style.left=-d.offsetX+d.width/2+"px";a.style.top=l+"px";this.Re? this.Re.length=0:this.Re=[];l=0;for(d=a.childNodes.length;l<d;l++)w=a.childNodes[l],w.Er=q,this.Re.push(w);if(l=this.gn)for(var C in l)delete l[C];else this.gn={};this.Se?this.Se.length=0:this.Se=[];l=0;for(d=this.Rc.length;l<d;l++){C=this.Rc[l][0];i=this.Rc[l][1];w=0;for(m=this.Re.length;w<m;w++)if(n=this.Re[w],n.id==j+"_"+b+"_"+C+"_"+i+"_"+f){n.Er=o;this.gn[n.id]=n;break}}l=0;for(d=this.Re.length;l<d;l++)n=this.Re[l],n.Er||this.Se.push(n);this.Gn=[];w=(e+c)*this.map.B.devicePixelRatio;l=0;for(d= this.Rc.length;l<d;l++)C=this.Rc[l][0],i=this.Rc[l][1],s=C*e+g[0]-c/2,u=(-1-i)*e+g[1]-c/2,y=j+"_"+b+"_"+C+"_"+i+"_"+f,m=this.gn[y],n=p,m?(n=m.style,n.left=s+"px",n.top=u+"px",m.ff||this.Gn.push([C,i,m])):(0<this.Se.length?(m=this.Se.shift(),m.getContext("2d").clearRect(-c/2,-c/2,w,w),n=m.style):(m=document.createElement("canvas"),n=m.style,n.position="absolute",n.width=e+c+"px",n.height=e+c+"px",this.py()&&(n.WebkitTransform="scale(1.001)"),m.setAttribute("width",w),m.setAttribute("height",w),a.appendChild(m)), m.id=y,n.left=s+"px",n.top=u+"px",-1<y.indexOf("bg")&&(s="#F3F1EC",this.map.B.To&&(s=this.map.B.To),n.background=s?s:""),this.Gn.push([C,i,m])),m.style.visibility="";l=0;for(d=this.Se.length;l<d;l++)this.Se[l].style.visibility="hidden";return this.Gn},py:function(){return/M040/i.test(navigator.userAgent)},eM:function(){var a=this.map,b=a.oa(),c=b.FE(a.Oa),d=a.fc,e=Math.ceil(d.lng/c),f=Math.ceil(d.lat/c),b=b.k.Ob,c=[e,f,(d.lng-e*c)/c*b,(d.lat-f*c)/c*b];return[c[0]-Math.ceil((a.width/2-c[2])/b),c[1]- Math.ceil((a.height/2-c[3])/b),c[0]+Math.ceil((a.width/2+c[2])/b),c[1]+Math.ceil((a.height/2+c[3])/b),c]},z0:function(a,b,c,d){var e=this;e.Y2=b;var f=this.map.oa(),g=e.AE(a,c),i=f.k.Ob,b=[a[0]*i+b[0],(-1-a[1])*i+b[1]],j=this.Ce[g];if(this.map.oa()!==ab&&this.map.oa()!==Za){var l=this.Bs(a[0],a[2]).offsetX;b[0]+=l;b.s2=l}j&&j.$a?(Kb(j.$a,b),d&&(d=new Q(a[0],a[1]),f=this.map.B.Be?this.map.B.Be.style:"normal",d=c.getTilesUrl(d,a[2],f),j.loaded=q,Be(j,d)),j.loaded?this.Bf():Ce(j,function(){e.Bf()})): (j=this.kj[g])&&j.$a?(c.Pb.insertBefore(j.$a,c.Pb.lastChild),this.Ce[g]=j,Kb(j.$a,b),d&&(d=new Q(a[0],a[1]),f=this.map.B.Be?this.map.B.Be.style:"normal",d=c.getTilesUrl(d,a[2],f),j.loaded=q,Be(j,d)),j.loaded?this.Bf():Ce(j,function(){e.Bf()})):(j=i*Math.pow(2,f.Im()-a[2]),new L(a[0]*j,a[1]*j),d=new Q(a[0],a[1]),f=this.map.B.Be?this.map.B.Be.style:"normal",d=c.getTilesUrl(d,a[2],f),j=new De(this,d,b,a,c),Ce(j,function(){e.Bf()}),j.so(),this.Ce[g]=j)},Bf:function(){this.xh--;var a=this;0==this.xh&& (this.Ui&&(clearTimeout(this.Ui),this.Ui=p),this.Ui=setTimeout(function(){if(a.xh==0){if(Ma.business===0&&Ma.unauth===1){var b=[],c;for(c in a.Ce)if(a.Ce[c].bJ){b.push(c);a.Ce[c].bJ=q}b.length>0&&a.A0(b)}a.map.dispatchEvent(new N("ontilesloaded"));if(xa){if(ua&&va&&wa){var d=jb(),e=a.map.wb();setTimeout(function(){Ya(5030,{load_script_time:va-ua,load_tiles_time:d-wa,map_width:e.width,map_height:e.height,map_size:e.width*e.height})},1E4);B.Rn("cus.fire","time",{z_imgfirstloaded:d-wa})}xa=q}}a.Ui=p}, 80));0<this.Zt&&(this.map.dispatchEvent(new N("ontileloaderror")),B.Bn&&(0===Ma.business&&1===Ma.unauth)&&(this.Zt=0,sa("\u68c0\u6d4b\u5230\u5f53\u524d\u4ea7\u54c1\u4f7f\u7528\u7684\u5730\u56fe\u670d\u52a1\u672a\u5b8c\u6210\u6280\u672f\u670d\u52a1\u6388\u6743\uff0c\u53ef\u80fd\u51fa\u73b0\u4e0d\u7a33\u5b9a/\u53d7\u9650\uff1b\u3010\u4ea7\u54c1\u7528\u6237\u3011\u8bf7\u8054\u7cfb\u4ea7\u54c1\u5b98\u65b9\u5ba2\u670d\uff1b\u3010\u4ea7\u54c1\u5f00\u53d1\u8005\u3011\u8bf7\u4e8e3\u4e2a\u5de5\u4f5c\u65e5\u5185\u5b8c\u6210\u6388\u6743\u6216\u8054\u7cfb\uff1ahttps://lbsyun.baidu.com/surl/f5d6f5 \u6216\u8054\u7cfb\u7535\u8bdd\uff1a400-099-8998\uff08\u5f00\u53d1\u8005\u4e13\u7528\uff09\u3002", {Yc:"vtile"}),B.Bn.update("\u68c0\u6d4b\u5230\u5f53\u524d\u4ea7\u54c1\u4f7f\u7528\u7684\u5730\u56fe\u670d\u52a1\u672a\u5b8c\u6210\u6280\u672f\u670d\u52a1\u6388\u6743\uff0c\u53ef\u80fd\u51fa\u73b0\u4e0d\u7a33\u5b9a/\u53d7\u9650\uff1b\u3010\u4ea7\u54c1\u7528\u6237\u3011\u8bf7\u8054\u7cfb\u4ea7\u54c1\u5b98\u65b9\u5ba2\u670d\uff1b\u3010\u4ea7\u54c1\u5f00\u53d1\u8005\u3011\u8bf7\u4e8e3\u4e2a\u5de5\u4f5c\u65e5\u5185\u5b8c\u6210\u6388\u6743\u6216\u8054\u7cfb\uff1ahttps://lbsyun.baidu.com/surl/f5d6f5 \u6216\u8054\u7cfb\u7535\u8bdd\uff1a400-099-8998\uff08\u5f00\u53d1\u8005\u4e13\u7528\uff09\u3002")))}, A0:function(a){for(var a=a||[],b=a.length-1;0<b;b--){var c=Math.floor(Math.random()*(b+1)),d=a[b];a[b]=a[c];a[c]=d}c=Math.floor(a.length*Ma.watermark_ratio);b=[];for(d=0;d<c;d++)b.push(a[d]);for(a=0;a<b.length;a++)if((c=this.Ce[b[a]])&&c.$a)c.$a.src=this.LV},AE:function(a,b){return this.map.oa()===Xa?"TILE-"+b.ba+"-"+this.map.fx+"-"+a[0]+"-"+a[1]+"-"+a[2]:"TILE-"+b.ba+"-"+a[0]+"-"+a[1]+"-"+a[2]},hy:function(a){var b=a.$a;b&&(Ee(b),Mb(b)&&b.parentNode.removeChild(b));delete this.Ce[a.name];a.loaded|| (Ee(b),Ae(a),a.$a=p,a.vh=p)},Bs:function(a,b){for(var c=0,d=6*Math.pow(2,b-3),e=d/2-1,f=-d/2;a>e;)a-=d,c-=this.oB;for(;a<f;)a+=d,c+=this.oB;c=Math.round(c/Math.pow(2,18-b));return{offsetX:c,tm:a}},xW:function(a){for(var b=a.lng;b>this.rB;)b-=this.WI;for(;b<this.VI;)b+=this.WI;a.lng=b;return a},yW:function(a,b){for(var c=256*Math.pow(2,18-b),d=Math.floor(this.rB/c),e=Math.floor(this.VI/c),c=Math.floor(this.oB/c),f=[],g=0;g<a.length;g++){var i=a[g],j=i[0],i=i[1];if(j>=d){var j=j+c,l="id_"+j+"_"+i+"_"+ b;a[l]||(a[l]=o,f.push([j,i]))}else j<=e&&(j-=c,l="id_"+j+"_"+i+"_"+b,a[l]||(a[l]=o,f.push([j,i])))}for(g=0;g<f.length;g++)a.push(f[g]);return a},Yf:function(a){var b=this;if(b.map.oa()==Xa)bb.load("coordtrans",function(){b.map.Sb||(b.map.Sb=Xa.Gk(b.map.gh),b.map.fx=Xa.cM(b.map.Sb));b.YI()},o);else{if(a&&a)for(var c in this.kj)delete this.kj[c];b.YI(a)}},YI:function(a){var b=this.$m.concat(this.cg),c=b.length,d=this.map,e=d.oa(),f=d.fc;this.map.oa()!==ab&&this.map.oa()!==Za&&(f=this.xW(f));for(var g= 0;g<c;g++){var i=b[g];if(i.gc&&d.Oa<i.gc)break;if(i.Ww){var j=this.Pb=i.Pb;if(a){var l=j;if(l&&l.childNodes)for(var m=l.childNodes.length,n=m-1;0<=n;n--)m=l.childNodes[n],l.removeChild(m),m=p}if(this.map.Wb()){this.od.style.display="block";j.style.display="none";this.map.dispatchEvent(new N("vectorchanged"),{isvector:o});continue}else j.style.display="block",this.od.style.display="none",this.map.dispatchEvent(new N("vectorchanged"),{isvector:q})}if(!i.KI&&!(i.Jp&&!this.map.Wb()||i.aN&&this.map.Wb())){d= this.map;e=d.oa();j=e.Mm();m=d.Oa;f=d.fc;e==Xa&&f.cb(new L(0,0))&&(f=d.fc=j.Ok(d.te,d.Sb));var s=e.yc(m),j=e.FE(m),l=Math.ceil(f.lng/j),u=Math.ceil(f.lat/j),w=e.k.Ob,j=[l,u,(f.lng-l*j)/j*w,(f.lat-u*j)/j*w],u=2*d.width,n=j[0]-Math.ceil((u/2-j[2])/w),l=j[1]-Math.ceil((d.height/2-j[3])/w),u=j[0]+Math.ceil((u/2+j[2])/w),y=0;e===Xa&&15==d.ga()&&(y=1);e=j[1]+Math.ceil((d.height/2+j[3])/w)+y;this.FK=new L(f.lng,f.lat);var D=this.Ce,w=-this.FK.lng/s,y=this.FK.lat/s,s=[Math.ceil(w),Math.ceil(y)],f=d.ga(), C;for(C in D){var F=D[C],z=F.info;(z[2]!=f||z[2]==f&&(n>z[0]||u<=z[0]||l>z[1]||e<=z[1]))&&this.hy(F)}D=-d.offsetX+d.width/2;F=-d.offsetY+d.height/2;i.Pb&&(i.Pb.style.left=Math.ceil(w+D)-s[0]+"px",i.Pb.style.top=Math.ceil(y+F)-s[1]+"px",i.Pb.style.WebkitTransform="translate3d(0,0,0)");w=[];for(d.nC=[];n<u;n++)for(y=l;y<e;y++)w.push([n,y]),d.nC.push({x:n,y:y});this.map.oa()!==ab&&this.map.oa()!==Za&&(w=this.yW(w,m));w.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]));j=Math.ceil(this.rB/(256*Math.pow(2,18-f)));m=w.length;this.xh+=m;for(n=0;n<m;n++){if(i.VO===o&&(l=this.Bs(w[n][0],f),l.tm>j-1||l.tm<-j))continue;this.z0([w[n][0],w[n][1],f],s,i,a)}}}},eh:function(a){var b=this,c=a.target,a=b.map.Wb();if(c instanceof lb)a&&!c.Wm&&(c.ra(this.map,this.od),c.Wm=o);else if(c.Jh&&this.map.eh(c.Jh),c.Jp){for(a=0;a<b.Lg.length;a++)if(b.Lg[a]==c)return;bb.load("vector",function(){c.ra(b.map,b.od); b.Lg.push(c)},o)}else{for(a=0;a<b.cg.length;a++)if(b.cg[a]==c)return;c.ra(this.map,this.Kl);b.cg.push(c)}},Dh:function(a){var a=a.target,b=this.map.Wb();if(a instanceof lb)b&&a.Wm&&(a.remove(),a.Wm=q);else{a.Jh&&this.map.Dh(a.Jh);if(a.Jp)for(var b=0,c=this.Lg.length;b<c;b++)a==this.Lg[b]&&this.Lg.splice(b,1);else{b=0;for(c=this.cg.length;b<c;b++)a==this.cg[b]&&this.cg.splice(b,1)}a.remove()}},Jg:function(){for(var a=this.$m,b=0,c=a.length;b<c;b++)a[b].remove();delete this.Pb;this.$m=[];this.kj=this.Ce= {};this.ky();this.Yf()},Kc:function(){var a=this;a.yd&&x.K.U(a.yd);setTimeout(function(){a.Yf();a.map.dispatchEvent(new N("onzoomend"))},10)},b6:t(),ou:function(a){var b=this.map.oa();if(!this.map.Wb()&&(a?this.map.B.H0=a:a=this.map.B.H0,a))for(var c=p,c="2"==B.uz?[B.url.proto+B.url.domain.main_domain_cdn.other[0]+"/"]:[B.url.proto+B.url.domain.main_domain_cdn.baidu[0]+"/",B.url.proto+B.url.domain.main_domain_cdn.baidu[1]+"/",B.url.proto+B.url.domain.main_domain_cdn.baidu[2]+"/"],d=0,e;e=this.$m[d];d++)if(e.VO== o){b.k.$b=18;e.getTilesUrl=function(b,d){var e=b.x,e=this.map.ab.Bs(e,d).tm,j=b.y,l=ec("normal"),m=1;this.map.iy()&&(m=2);l=window._BMapSecurityConfig&&window._BMapSecurityConfig.serviceHost?"customimage/tile?qt=customimage&x="+e+"&y="+j+"&z="+d+"&udt="+l+"&scale="+m:"customimage/tile?qt=customimage&x="+e+"&y="+j+"&z="+d+"&udt="+l+"&scale="+m+"&ak="+qa;l=a.styleStr?l+("&styles="+encodeURIComponent(a.styleStr)):l+("&customid="+a.style);l=c[Math.abs(e+j)%c.length]+l;return l=Qc(l)};break}}});function De(a,b,c,d,e){this.vh=a;this.position=c;this.pv=[];this.name=a.AE(d,e);this.info=d;this.lP=e;this.bK=e.Qt();a=H("img");Lb(a);a.WL=q;this.cd(a);this.$a=a;this.src=b;Fe&&(this.$a.style.opacity=0);var f=this;this.$a.onload=function(){B.OZ.LR();Ge(f)};this.$a.onerror=function(){Ae(f);if(f.vh){var a=f.vh,b=a.map.oa();a.xI(f);if(b.k.RD){f.error=o;f.$a.src=b.k.RD;f.$a&&!Mb(f.$a)&&e.Pb.appendChild(f.$a)}}};this.uR=function(a){try{var b=new XMLHttpRequest;b.open("GET",a,o);b.responseType="blob";b.onreadystatechange= function(){if(b.readyState===4)if(b.status===200){var a=URL.createObjectURL(b.response);if(f.$a)f.$a.src=a}else if(b.status===403){f.vh&&f.vh.xI(f);f.bJ=o;f.loaded=o;Ae(f)}};b.send()}catch(c){if(f.$a)f.$a.src=a}};a=p} function Ge(a){a.loaded=o;if(a.vh){var b=a.vh,c=b.kj;c[a.name]||(b.GF++,c[a.name]=a);a.$a&&!Mb(a.$a)&&a.lP.Pb&&(a.lP.Pb.appendChild(a.$a),6>=x.ca.ma&&(0<x.ca.ma&&a.bK)&&(a.$a.style.cssText+=';filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="'+a.src+'",sizingMethod=scale);'));var d=b.GF-b.vW,e;for(e in c){if(0>=d)break;if(!b.Ce[e]){c[e].vh=p;var f=c[e].$a;f&&f.parentNode&&(f.parentNode.removeChild(f),Ee(f));f=p;c[e].$a=p;delete c[e];b.GF--;d--}}Fe&&new Db({Hc:20,duration:200,va:function(b){if(a.$a&& a.$a.style)a.$a.style.opacity=b*1},finish:function(){a.$a&&a.$a.style&&delete a.$a.style.opacity}});Ae(a)}}De.prototype.cd=function(a){a=a.style;if(this.vh){var b=this.vh.map.oa();a.position="absolute";a.border="none";a.width=b.k.Ob+"px";a.height=b.k.Ob+"px";a.left=this.position[0]+"px";a.top=this.position[1]+"px";a.maxWidth="none"}};function Ce(a,b){a.pv.push(b)} De.prototype.so=function(){if(0<x.ca.ma&&6>=x.ca.ma&&this.bK)this.$a.src=J.pa+"blank.gif";else{var a=this.src;""!==this.src&&this.$a.src===this.src&&(a=this.src+"&t = "+Date.now());0===Ma.business&&1===Ma.unauth?9>=x.ca.ma?this.$a.src=a:this.uR(a):this.$a.src=a}};function Ae(a){for(var b=0;b<a.pv.length;b++)a.pv[b]();a.pv.length=0} function Ee(a){if(a){a.onload=a.onerror=p;var b=a.attributes,c,d,e;if(b){d=b.length;for(c=0;c<d;c+=1)e=b[c].name,"unknown"!==typeof a[e]&&hb(a[e])&&(a[e]=p)}if(b=a.children){d=b.length;for(c=0;c<d;c+=1)Ee(a.children[c])}}}function Be(a,b){a.src=b;a.so()}var Fe=!x.ca.ma||8<x.ca.ma;function ze(a){this.yh=a||{};this.UW=this.yh.copyright||p;this.e1=this.yh.transparentPng||q;this.Ww=this.yh.baseLayer||q;this.zIndex=this.yh.zIndex||0;this.ba=ze.DT++}ze.DT=0;x.lang.ua(ze,x.lang.Da,"TileLayer"); x.extend(ze.prototype,{ra:function(a,b){this.Ww&&(this.zIndex=-100);this.map=a;if(!this.Pb){var c=H("div"),d=c.style;d.position="absolute";d.overflow="visible";d.zIndex=this.zIndex;d.left=Math.ceil(-a.offsetX+a.width/2)+"px";d.top=Math.ceil(-a.offsetY+a.height/2)+"px";b.appendChild(c);this.Pb=c}},remove:function(){this.Pb&&this.Pb.parentNode&&(this.Pb.innerHTML="",this.Pb.parentNode.removeChild(this.Pb));delete this.Pb},Qt:v("e1"),getTilesUrl:function(a,b){if(this.map.oa()!==ab&&this.map.oa()!==Za)var c= this.map.ab.Bs(a.x,b).tm;var d="";this.yh.tileUrlTemplate&&(d=this.yh.tileUrlTemplate.replace(/\{X\}/,c),d=d.replace(/\{Y\}/,a.y),d=d.replace(/\{Z\}/,b));return d},Fm:v("UW"),oa:function(){return this.yb||Ta}});function He(a,b){Ub(a)?b=a||{}:(b=b||{},b.databoxId=a);this.k=window._BMapSecurityConfig&&window._BMapSecurityConfig.serviceHost?{cD:b.databoxId,yg:b.geotableId,Ij:b.q||"",qq:b.tags||"",filter:b.filter||"",nq:b.sortby||"",eP:b.styleId||"",Ro:b.age||36E5,zIndex:11,lN:"VectorCloudLayer",Aj:b.hotspotName||"vector_md_"+(1E5*Math.random()).toFixed(0),AK:"LBS\u4e91\u9ebb\u70b9\u5c42"}:{cD:b.databoxId,yg:b.geotableId,Ij:b.q||"",qq:b.tags||"",filter:b.filter||"",nq:b.sortby||"",eP:b.styleId||"",hm:b.ak|| qa,Ro:b.age||36E5,zIndex:11,lN:"VectorCloudLayer",Aj:b.hotspotName||"vector_md_"+(1E5*Math.random()).toFixed(0),AK:"LBS\u4e91\u9ebb\u70b9\u5c42"};this.Jp=o;ze.call(this,this.k);this.nX=B.Xb+"geosearch/detail/";this.oX=B.Xb+"geosearch/v2/detail/";this.Cp={}}x.ua(He,ze,"VectorCloudLayer");function Ie(a){a=a||{};this.k=x.extend(a,{zIndex:1,lN:"VectorTrafficLayer",AK:"\u77e2\u91cf\u8def\u51b5\u5c42"});this.Jp=o;ze.call(this,this.k);this.a1=B.url.proto+B.url.domain.vector_traffic+"/gvd/?qt=lgvd&styles=pl&layers=tf";this.Fb={"0":[2,1354709503,2,2,0,[],0,0],1:[2,1354709503,3,2,0,[],0,0],10:[2,-231722753,2,2,0,[],0,0],11:[2,-231722753,3,2,0,[],0,0],12:[2,-231722753,4,2,0,[],0,0],13:[2,-231722753,5,2,0,[],0,0],14:[2,-231722753,6,2,0,[],0,0],15:[2,-1,4,0,0,[],0,0],16:[2,-1,5.5,0,0,[],0,0], 17:[2,-1,7,0,0,[],0,0],18:[2,-1,8.5,0,0,[],0,0],19:[2,-1,10,0,0,[],0,0],2:[2,1354709503,4,2,0,[],0,0],3:[2,1354709503,5,2,0,[],0,0],4:[2,1354709503,6,2,0,[],0,0],5:[2,-6350337,2,2,0,[],0,0],6:[2,-6350337,3,2,0,[],0,0],7:[2,-6350337,4,2,0,[],0,0],8:[2,-6350337,5,2,0,[],0,0],9:[2,-6350337,6,2,0,[],0,0]}}x.ua(Ie,ze,"VectorTrafficLayer");function lb(a){"undefined"!==typeof Sa&&I&&I("BuildingLayer");this.wW=[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.k={RL:q};for(var b in a)this.k[b]=a[b];this.gi=this.Ph=this.Xa=this.C=this.D=p;this.fN=0;var c=this;bb.load("vector",function(){c.He()})}x.extend(lb.prototype,{ra:function(a,b){this.D=a;this.C=b},remove:function(){this.C=this.D=p}});function Je(a){"undefined"!==typeof Sa&&I&&I("TrafficLayer");ze.call(this,a);this.k=a||{};this.aN=o;if(this.k.predictDate){if(1>this.k.predictDate.weekday||7<this.k.predictDate.weekday)this.k.predictDate=1;if(0>this.k.predictDate.hour||23<this.k.predictDate.hour)this.k.predictDate.hour=0}this.GV=B.url.proto+B.url.domain.traffic+"/traffic/"}Je.prototype=new ze;Je.prototype.ra=function(a,b){ze.prototype.ra.call(this,a,b);this.D=a};Je.prototype.Qt=ea(o); Je.prototype.getTilesUrl=function(a,b){var c="";this.k.predictDate?c="HistoryService?day="+(this.k.predictDate.weekday-1)+"&hour="+this.k.predictDate.hour+"&t="+(new Date).getTime()+"&":(c="TrafficTileService?time="+(new Date).getTime()+"&",c+="label=web2D&v=016&");var c=this.GV+c+"level="+b+"&x="+a.x+"&y="+a.y,d=1;this.D.iy()&&(d=2);return(c+"&scaler="+d).replace(/-(\d+)/gi,"M$1")};var Ke=[B.url.proto+B.url.domain.TILES_YUN_HOST[0]+"/georender/gss",B.url.proto+B.url.domain.TILES_YUN_HOST[1]+"/georender/gss",B.url.proto+B.url.domain.TILES_YUN_HOST[2]+"/georender/gss",B.url.proto+B.url.domain.TILES_YUN_HOST[3]+"/georender/gss"],Le=B.url.proto+B.url.domain.main_domain_nocdn.baidu+"/style/poi/rangestyle",Me=100; function wb(a,b){"undefined"!==typeof Sa&&I&&I("CustomLayer");ze.call(this);var c=this;this.aN=o;var d=q;try{document.createElement("canvas").getContext("2d"),d=o}catch(e){d=q}d&&(this.Jh=new He(a,b),this.Jh.oG=this);Ub(a)?b=a||{}:(c.fo=a,b=b||{});b.geotableId&&(c.Df=b.geotableId);b.databoxId&&(c.fo=b.databoxId);d=B.Xb+"geosearch";c.oc={AF:b.pointDensity||Me,iZ:d+"/detail/",jZ:d+"/v2/detail/",Ro:b.age||36E5,Ij:b.q||"",mP:"png",x4:[5,5,5,5],JZ:{backgroundColor:"#FFFFD5",borderColor:"#808080"},hm:b.ak|| qa,qq:b.tags||"",filter:b.filter||"",nq:b.sortby||"",Aj:b.hotspotName||"tile_md_"+(1E5*Math.random()).toFixed(0),xG:o};bb.load("clayer",function(){c.Vd()})}wb.prototype=new ze;wb.prototype.ra=function(a,b){ze.prototype.ra.call(this,a,b);this.D=a}; wb.prototype.getTilesUrl=function(a,b){var c=a.x,d=a.y,e=this.oc,f=Ke[Math.abs(c+d)%Ke.length],c=window._BMapSecurityConfig&&window._BMapSecurityConfig.serviceHost?f+"/image?grids="+c+"_"+d+"_"+b+"&q="+e.Ij+"&tags="+e.qq+"&filter="+e.filter+"&sortby="+e.nq+"&age="+e.Ro+"&page_size="+e.AF+"&format="+e.mP:f+"/image?grids="+c+"_"+d+"_"+b+"&q="+e.Ij+"&tags="+e.qq+"&filter="+e.filter+"&sortby="+e.nq+"&ak="+this.oc.hm+"&age="+e.Ro+"&page_size="+e.AF+"&format="+e.mP;e.xG||(e=(1E5*Math.random()).toFixed(0), c+="&timeStamp="+e);this.Df?c+="&geotable_id="+this.Df:this.fo&&(c+="&databox_id="+this.fo);return c};wb.prototype.enableUseCache=function(){this.oc.xG=o};wb.prototype.disableUseCache=function(){this.oc.xG=q};wb.dV=/^point\(|\)$/ig;wb.eV=/\s+/;wb.gV=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;function Ne(a,b,c){this.kf=a;this.Ir=b instanceof ze?[b]:b.slice(0);c=c||{};this.k={P0:c.tips||"",dF:"",gc:c.minZoom||4,$b:c.maxZoom||18,w4:c.minZoom||4,v4:c.maxZoom||18,Ob:256,mG:c.textColor||"black",RD:c.errorImageUrl||"",bb:new ob(new L(-21364736,-16023552),new L(23855104,19431424)),Pd:c.projection||new R};1<=this.Ir.length&&(this.Ir[0].Ww=o);x.extend(this.k,c)} x.extend(Ne.prototype,{getName:v("kf"),At:function(){return this.k.P0},b4:function(){return this.k.dF},WY:function(){return this.Ir[0]},p4:v("Ir"),XY:function(){return this.k.Ob},qp:function(){return this.k.gc},Im:function(){return this.k.$b},setMaxZoom:function(a){this.k.$b=a},Pm:function(){return this.k.mG},Mm:function(){return this.k.Pd},S3:function(){return this.k.RD},XY:function(){return this.k.Ob},yc:function(a){return Math.pow(2,18-a)},FE:function(a){return this.yc(a)*this.k.Ob},bG:function(a){this.Mm().b0(a)}}); var Oe=[B.url.proto+B.url.domain.TILE_BASE_URLS[0],B.url.proto+B.url.domain.TILE_BASE_URLS[1],B.url.proto+B.url.domain.TILE_BASE_URLS[2],B.url.proto+B.url.domain.TILE_BASE_URLS[3]],Pe=[B.url.proto+B.url.domain.TILE_ONLINE_URLS[0]+"/tile/",B.url.proto+B.url.domain.TILE_ONLINE_URLS[1]+"/tile/",B.url.proto+B.url.domain.TILE_ONLINE_URLS[2]+"/tile/",B.url.proto+B.url.domain.TILE_ONLINE_URLS[3]+"/tile/"],Qe={dark:"dl",light:"ll",normal:"pl"},Re=q; window._BMapSecurityConfig&&window._BMapSecurityConfig.serviceHost&&(Re=o);var Se=new ze;Se.VO=o;Se.getTilesUrl=function(a,b,c){var d=a.x,a=a.y,e=ec("normal"),f=1,c=Qe[c];this.map.iy()&&(f=2);d=this.map.ab.Bs(d,b).tm;return(Pe[Math.abs(d+a)%Pe.length]+"?qt=vtile&x="+(d+"").replace(/-/gi,"M")+"&y="+(a+"").replace(/-/gi,"M")+"&z="+b+"&styles="+c+"&scaler="+f+(6==x.ca.ma?"&color_dep=32&colors=50":"")+"&udt="+e+"&v=2.1&ak="+qa+"&is_has_bmap_proxy="+Re+"&from=jsapi2_0").replace(/-(\d+)/gi,"M$1")}; var Ta=new Ne("\u5730\u56fe",Se,{tips:"\u663e\u793a\u666e\u901a\u5730\u56fe",maxZoom:19}),Te=new ze;Te.kP=[B.url.proto+B.url.domain.TIlE_PERSPECT_URLS[0]+"/resource/mappic/",B.url.proto+B.url.domain.TIlE_PERSPECT_URLS[1]+"/resource/mappic/",B.url.proto+B.url.domain.TIlE_PERSPECT_URLS[2]+"/resource/mappic/",B.url.proto+B.url.domain.TIlE_PERSPECT_URLS[3]+"/resource/mappic/"]; Te.getTilesUrl=function(a,b){var c=a.x,d=a.y,e=256*Math.pow(2,20-b),d=Math.round((9998336-e*d)/e)-1;return url=this.kP[Math.abs(c+d)%this.kP.length]+this.map.Sb+"/"+this.map.fx+"/3/lv"+(21-b)+"/"+c+","+d+".jpg"};var Xa=new Ne("\u4e09\u7ef4",Te,{tips:"\u663e\u793a\u4e09\u7ef4\u5730\u56fe",minZoom:15,maxZoom:20,textColor:"white",projection:new qb});Xa.yc=function(a){return Math.pow(2,20-a)};Xa.Gk=function(a){if(!a)return"";var b=J.IC,c;for(c in b)if(-1<a.search(c))return b[c].Qy;return""}; Xa.cM=function(a){return{bj:2,gz:1,sz:14,sh:4}[a]};var Ue=new ze({Ww:o});Ue.getTilesUrl=function(a,b){var c=a.x,d=a.y;return(Oe[Math.abs(c+d)%Oe.length]+"u=x="+c+";y="+d+";z="+b+";v=009;type=sate&fm=46&udt="+ec("satellite")+"&ak="+qa+"&is_has_bmap_proxy="+Re+"&from=jsapi2_0").replace(/-(\d+)/gi,"M$1")};var ab=new Ne("\u536b\u661f",Ue,{tips:"\u663e\u793a\u536b\u661f\u5f71\u50cf",minZoom:4,maxZoom:19,textColor:"white"}),Ve=new ze({transparentPng:o}); Ve.getTilesUrl=function(a,b){var c=a.x,d=a.y,e=ec("satelliteStreet");return(Pe[Math.abs(c+d)%Pe.length]+"?qt=vtile&x="+(c+"").replace(/-/gi,"M")+"&y="+(d+"").replace(/-/gi,"M")+"&z="+b+"&styles=sl"+(6==x.ca.ma?"&color_dep=32&colors=50":"")+"&v=2.1&ak="+qa+"&from=jsapi2_0&is_has_bmap_proxy="+Re+"&udt="+e).replace(/-(\d+)/gi,"M$1")};var Za=new Ne("\u6df7\u5408",[Ue,Ve],{tips:"\u663e\u793a\u5e26\u6709\u8857\u9053\u7684\u536b\u661f\u5f71\u50cf",labelText:"\u8def\u7f51",minZoom:4,maxZoom:19,textColor:"white"});var We=1,X={};window.D1=X;function Y(a,b){x.lang.Da.call(this);this.Cd={};this.yn(a);b=b||{};b.ja=b.renderOptions||{};this.k={ja:{Ia:b.ja.panel||p,map:b.ja.map||p,fh:b.ja.autoViewport||o,ju:b.ja.selectFirstResult,Ft:b.ja.highlightMode,Hb:b.ja.enableDragging||q},Jy:b.onSearchComplete||t(),ZN:b.onMarkersSet||t(),YN:b.onInfoHtmlSet||t(),aO:b.onResultsHtmlSet||t(),XN:b.onGetBusListComplete||t(),WN:b.onGetBusLineComplete||t(),UN:b.onBusListHtmlSet||t(),TN:b.onBusLineHtmlSet||t(),sF:b.onPolylinesSet||t(),Yp:b.reqFrom||""};this.map= b.ja.map||window.GCJMAP;this.k.ja.fh="undefined"!=typeof b&&"undefined"!=typeof b.renderOptions&&"undefined"!=typeof b.renderOptions.autoViewport?b.renderOptions.autoViewport:o;this.k.ja.Ia=x.Ec(this.k.ja.Ia)}x.ua(Y,x.lang.Da); x.extend(Y.prototype,{getResults:function(){return this.Gc?this.Ri:this.ka},enableAutoViewport:function(){this.k.ja.fh=o},disableAutoViewport:function(){this.k.ja.fh=q},yn:function(a){a&&(this.Cd.src=a)},cG:function(a){this.k.Jy=a||t()},setMarkersSetCallback:function(a){this.k.ZN=a||t()},setPolylinesSetCallback:function(a){this.k.sF=a||t()},setInfoHtmlSetCallback:function(a){this.k.YN=a||t()},setResultsHtmlSetCallback:function(a){this.k.aO=a||t()},Nm:v("Fd")});var Xe={cH:B.Xb,gb:function(a,b,c,d,e){this.y_(b);var f=(1E5*Math.random()).toFixed(0);B._rd["_cbk"+f]=function(d){d.result&&d.result.popup&&1===d.result.popup&&d.result.error_msg?sa(d.result.error_msg,{Yc:b.qt}):(c=c||{},a&&a(d,c),delete B._rd["_cbk"+f])};var d=d||"",g;g=c&&c.EP?Sb(b,encodeURI):Sb(b,encodeURIComponent);this.cH=c&&c.ct?c.yO?c.yO:B.Op:B.Xb;d=this.cH+d+"?"+g+"&ie=utf-8&oue=1&fromproduct=jsapi&v=2.1";e||(d+="&res=api");d+="&callback=BMap._rd._cbk"+f;window._BMapSecurityConfig||(d+="&ak="+ qa);ra(d)},decrypt:function(a,b){var c=md.enc.Utf8.parse(b);return md.AES.decrypt(a,c,{mode:md.mode.ECB,padding:md.pad.Pkcs7}).toString(md.enc.Utf8)},enCrypt:function(a,b){var c=md.enc.Utf8.parse(b);return md.AES.encrypt(a,c,{mode:md.mode.ECB,padding:md.pad.Pkcs7}).toString()},enKey:function(a){a+=md5(a);return md5(a.split("").reverse().join("")).substr(8,16)},enReqToken:function(a){return md5(md5(a)+a).substr(5,16)},y_:function(a){if(a.qt){var b="";switch(a.qt){case "bt":b="z_qt|bt";break;case "nav":b= "z_qt|nav";break;case "walk":b="z_qt|walk";break;case "bse":b="z_qt|bse";break;case "nse":b="z_qt|nse";break;case "drag":b="z_qt|drag";break;case "s":b="z_qt|s";break;case "ext":b="z_qt|ext";break;case "gc":b="z_qt|gc";break;case "rgc":b="z_qt|rgc";break;case "bl":b="z_qt|bl";break;case "bsl":b="z_qt|bsl";break;case "con":b="z_qt|con";break;case "bd":b="z_qt|bd";break;case "nb":b="z_qt|nb";break;case "bda":b="z_qt|bda";break;case "sa":b="z_qt|sa";break;case "nba":b="z_qt|nba";break;case "dec":b="z_qt|dec"}""!== b&&B.alog("cus.fire","count",b)}}};window.S1=Xe;B._rd={};var P={};window.R1=P;P.uO=function(a){a=a.replace(/<\/?[^>]*>/g,"");return a=a.replace(/[ | ]* /g," ")};P.p_=function(a){return a.replace(/([1-9]\d*\.\d*|0\.\d*[1-9]\d*|0?\.0+|0|[1-9]\d*),([1-9]\d*\.\d*|0\.\d*[1-9]\d*|0?\.0+|0|[1-9]\d*)(,)/g,"$1,$2;")};P.q_=function(a,b){return a.replace(RegExp("(((-?\\d+)(\\.\\d+)?),((-?\\d+)(\\.\\d+)?);)(((-?\\d+)(\\.\\d+)?),((-?\\d+)(\\.\\d+)?);){"+b+"}","ig"),"$1")};var Ye=2,cf=3,df=0,ef="bt",ff="nav",gf="walk",hf="bl",jf="bsl",kf=14,lf=15,mf=18,nf=20,of=31;B.I=window.Instance=x.lang.Lc;function pf(a,b,c){x.lang.Da.call(this);if(a){this.Ua="object"==typeof a?a:x.Ec(a);this.page=1;this.Od=100;this.GK="pg";this.Zf=4;this.OK=b;this.update=o;a={page:1,cf:100,Od:100,Zf:4,GK:"pg",update:o};c||(c=a);for(var d in c)"undefined"!=typeof c[d]&&(this[d]=c[d]);this.va()}} x.extend(pf.prototype,{va:function(){this.ra()},ra:function(){this.FW();this.Ua.innerHTML=this.cX()},FW:function(){isNaN(parseInt(this.page))&&(this.page=1);isNaN(parseInt(this.Od))&&(this.Od=1);1>this.page&&(this.page=1);1>this.Od&&(this.Od=1);this.page>this.Od&&(this.page=this.Od);this.page=parseInt(this.page);this.Od=parseInt(this.Od)},g4:function(){location.search.match(RegExp("[?&]?"+this.GK+"=([^&]*)[&$]?","gi"));this.page=RegExp.$1},cX:function(){var a=[],b=this.page-1,c=this.page+1;a.push('<p style="margin:0;padding:0;white-space:nowrap">'); if(!(1>b)){if(this.page>=this.Zf){var d;a.push('<span style="margin-right:3px"><a style="color:#7777cc" href="javascript:void(0)" onclick="{temp1}">\u9996\u9875</a></span>'.replace("{temp1}","BMap.I('"+this.ba+"').toPage(1);"))}a.push('<span style="margin-right:3px"><a style="color:#7777cc" href="javascript:void(0)" onclick="{temp2}">\u4e0a\u4e00\u9875</a></span>'.replace("{temp2}","BMap.I('"+this.ba+"').toPage("+b+");"))}if(this.page<this.Zf)d=0==this.page%this.Zf?this.page-this.Zf-1:this.page-this.page% this.Zf+1,b=d+this.Zf-1;else{d=Math.floor(this.Zf/2);var e=this.Zf%2-1,b=this.Od>this.page+d?this.page+d:this.Od;d=this.page-d-e}this.page>this.Od-this.Zf&&this.page>=this.Zf&&(d=this.Od-this.Zf+1,b=this.Od);for(e=d;e<=b;e++)0<e&&(e==this.page?a.push('<span style="margin-right:3px">'+e+"</span>"):1<=e&&e<=this.Od&&(d='<span><a style="color:#7777cc;margin-right:3px" href="javascript:void(0)" onclick="{temp3}">['+e+"]</a></span>",a.push(d.replace("{temp3}","BMap.I('"+this.ba+"').toPage("+e+");")))); c>this.Od||a.push('<span><a style="color:#7777cc" href="javascript:void(0)" onclick="{temp4}">\u4e0b\u4e00\u9875</a></span>'.replace("{temp4}","BMap.I('"+this.ba+"').toPage("+c+");"));a.push("</p>");return a.join("")},toPage:function(a){a=a?a:1;"function"==typeof this.OK&&(this.OK(a),this.page=a);this.update&&this.va()}});function kb(a,b){"undefined"!==typeof Sa&&I&&I("LocalSearch");Y.call(this,a,b);b=b||{};b.renderOptions=b.renderOptions||{};this.iq(b.pageCapacity);"undefined"!=typeof b.renderOptions.selectFirstResult&&!b.renderOptions.selectFirstResult?this.nD():this.MD();this.wa=[];this.zf=[];this.mb=-1;this.Pa=[];var c=this;bb.load("local",function(){c.eA()},o)}x.ua(kb,Y,"LocalSearch");kb.Aq=10;kb.O1=1;kb.Qn=100;kb.RG=2E3;kb.$G=1E5; x.extend(kb.prototype,{search:function(a,b){this.Pa.push({method:"search",arguments:[a,b]})},vn:function(a,b,c){this.Pa.push({method:"searchInBounds",arguments:[a,b,c]})},dq:function(a,b,c,d){this.Pa.push({method:"searchNearby",arguments:[a,b,c,d]})},Te:function(){delete this.Ha;delete this.Fd;delete this.ka;delete this.fa;this.mb=-1;this.tb();this.k.ja.Ia&&(this.k.ja.Ia.innerHTML="")},Sm:t(),MD:function(){this.k.ja.ju=o},nD:function(){this.k.ja.ju=q},iq:function(a){this.k.Sk="number"==typeof a&& !isNaN(a)?1>a?kb.Aq:a>kb.Qn?kb.Aq:a:kb.Aq},Ye:function(){return this.k.Sk},toString:ea("LocalSearch")});var qf=kb.prototype;U(qf,{clearResults:qf.Te,setPageCapacity:qf.iq,getPageCapacity:qf.Ye,gotoPage:qf.Sm,searchNearby:qf.dq,searchInBounds:qf.vn,search:qf.search,enableFirstResultSelection:qf.MD,disableFirstResultSelection:qf.nD});function rf(a,b){Y.call(this,a,b)}x.ua(rf,Y,"BaseRoute");x.extend(rf.prototype,{Te:t()});function sf(a,b){"undefined"!==typeof Sa&&I&&I("TransitRoute");Y.call(this,a,b);b=b||{};this.ru(b.policy);this.iq(b.pageCapacity);this.zd=ef;this.Zu=kf;this.$u=We;this.wa=[];this.mb=-1;this.k.gd=b.enableTraffic||q;this.Pa=[];var c=this;bb.load("route",function(){c.Vd()})}sf.Qn=100;sf.mQ=[0,1,0,0,0,0,0,0,2,0,0,0,1,1,1];x.ua(sf,rf,"TransitRoute"); x.extend(sf.prototype,{ru:function(a){this.k.ad=0<=a&&4>=a?a:0},dB:function(a,b){this.Pa.push({method:"_internalSearch",arguments:[a,b]})},search:function(a,b){this.Pa.push({method:"search",arguments:[a,b]})},iq:function(a){if("string"===typeof a&&(a=parseInt(a,10),isNaN(a))){this.k.Sk=sf.Qn;return}this.k.Sk="number"!==typeof a?sf.Qn:1<=a&&a<=sf.Qn?Math.round(a):sf.Qn},toString:ea("TransitRoute"),sV:function(a){return a.replace(/\(.*\)/,"")}});var tf=sf.prototype;U(tf,{_internalSearch:tf.dB});function uf(a,b){Y.call(this,a,b);this.wa=[];this.mb=-1;this.Pa=[];var c=this,d=this.k.ja;1!==d.Ft&&2!==d.Ft&&(d.Ft=1);this.yA=this.k.ja.Hb?o:q;bb.load("route",function(){c.Vd()});this.OE&&this.OE()}uf.AQ=" \u73af\u5c9b \u65e0\u5c5e\u6027\u9053\u8def \u4e3b\u8def \u9ad8\u901f\u8fde\u63a5\u8def \u4ea4\u53c9\u70b9\u5185\u8def\u6bb5 \u8fde\u63a5\u9053\u8def \u505c\u8f66\u573a\u5185\u90e8\u9053\u8def \u670d\u52a1\u533a\u5185\u90e8\u9053\u8def \u6865 \u6b65\u884c\u8857 \u8f85\u8def \u531d\u9053 \u5168\u5c01\u95ed\u9053\u8def \u672a\u5b9a\u4e49\u4ea4\u901a\u533a\u57df POI\u8fde\u63a5\u8def \u96a7\u9053 \u6b65\u884c\u9053 \u516c\u4ea4\u4e13\u7528\u9053 \u63d0\u524d\u53f3\u8f6c\u9053".split(" "); x.ua(uf,rf,"DWRoute");x.extend(uf.prototype,{search:function(a,b,c){this.Pa.push({method:"search",arguments:[a,b,c]})}});function vf(a,b){"undefined"!==typeof Sa&&I&&I("DrivingRoute");uf.call(this,a,b);b=b||{};this.k.gd=b.enableTraffic||q;this.ru(b.policy);this.zd=ff;this.Zu=nf;this.$u=cf}x.ua(vf,uf,"DrivingRoute");vf.prototype.ru=function(a){this.k.ad=0<=a&&2>=a?a:0};function wf(a,b){"undefined"!==typeof Sa&&I&&I("WalkingRoute");uf.call(this,a,b);this.zd=gf;this.Zu=of;this.$u=Ye;this.yA=q}x.ua(wf,uf,"WalkingRoute");function xf(a,b){x.lang.Da.call(this);this.Xf=[];this.kn=[];this.k=b;this.dc=a;this.map=this.k.ja.map||p;this.Yy=this.k.Yy;this.Cb=p;this.mj=0;this.nz="";this.he=1;this.Fx="";this.Zp=[0,0,0,0,0,0,0];this.gF=[];this.Hs=[1,1,1,1,1,1,1];this.uP=[1,1,1,1,1,1,1];this.hu=[0,0,0,0,0,0,0];this.$p=[0,0,0,0,0,0,0];this.Na=[{m:"",Hd:0,In:0,x:0,y:0,qa:-1},{m:"",Hd:0,In:0,x:0,y:0,qa:-1},{m:"",Hd:0,In:0,x:0,y:0,qa:-1},{m:"",Hd:0,In:0,x:0,y:0,qa:-1},{m:"",Hd:0,In:0,x:0,y:0,qa:-1},{m:"",Hd:0,In:0,x:0,y:0,qa:-1}, {m:"",Hd:0,In:0,x:0,y:0,qa:-1}];this.ni=-1;this.Gu=[];this.Hu=[];bb.load("route",t())}x.lang.ua(xf,x.lang.Da,"RouteAddr");var yf=navigator.userAgent;/ipad|iphone|ipod|iph/i.test(yf);var zf=/android/i.test(yf);function Af(a){this.yh=a||{}}x.extend(Af.prototype,{EO:function(a,b,c){var d=this;bb.load("route",function(){d.Vd(a,b,c)})}});function Bf(a){"undefined"!==typeof Sa&&I&&I("Geocoder");this.k={};x.extend(this.k,a);this.Pa=[];var b=this;bb.load("othersearch",function(){b.Vd()})}x.ua(Bf,x.lang.Da,"Geocoder");x.extend(Bf.prototype,{Lm:function(a,b,c){this.Pa.push({method:"getPoint",arguments:[a,b,c]})},Hm:function(a,b,c){this.Pa.push({method:"getLocation",arguments:[a,b,c]})},toString:ea("Geocoder")});var Cf=Bf.prototype;U(Cf,{getPoint:Cf.Lm,getLocation:Cf.Hm});function Geolocation(a){"undefined"!==typeof Sa&&I&&I("Geolocation");a=a||{};this.B={timeout:a.timeout||1E4,maximumAge:a.maximumAge||6E5,nl:q,zk:a.cryptky||""};this.se=[];var b=this;bb.load("othersearch",function(){for(var a=0,d;d=b.se[a];a++)b[d.method].apply(b,d.arguments)})} x.extend(Geolocation.prototype,{getCurrentPosition:function(a,b){this.se.push({method:"getCurrentPosition",arguments:arguments})},getStatus:ea(2),enableSDKLocation:function(){K()&&(this.B.nl=o)},disableSDKLocation:function(){this.B.nl=q}});function Df(a){"undefined"!==typeof Sa&&I&&I("LocalCity");a=a||{};a.ja=a.renderOptions||{};this.k={ja:{map:a.ja.map||p}};this.Pa=[];var b=this;bb.load("othersearch",function(){b.Vd()})}x.ua(Df,x.lang.Da,"LocalCity");x.extend(Df.prototype,{get:function(a){this.Pa.push({method:"get",arguments:[a]})},toString:ea("LocalCity")});function Ef(){"undefined"!==typeof Sa&&I&&I("Boundary");this.Pa=[];var a=this;bb.load("othersearch",function(){a.Vd()})}x.ua(Ef,x.lang.Da,"Boundary");x.extend(Ef.prototype,{get:function(a,b){this.Pa.push({method:"get",arguments:[a,b]})},toString:ea("Boundary")});function Ff(a,b){"undefined"!==typeof Sa&&I&&I("BusLineSearch");Y.call(this,a,b);this.xQ=hf;this.zQ=lf;this.wQ=jf;this.yQ=mf;this.Pa=[];var c=this;bb.load("buslinesearch",function(){c.Vd()})}Ff.Nv=J.pa+"iw_plus.gif";Ff.JT=J.pa+"iw_minus.gif";Ff.CV=J.pa+"stop_icon.png";x.ua(Ff,Y); x.extend(Ff.prototype,{getBusList:function(a){this.Pa.push({method:"getBusList",arguments:[a]})},getBusLine:function(a){this.Pa.push({method:"getBusLine",arguments:[a]})},setGetBusListCompleteCallback:function(a){this.k.XN=a||t()},setGetBusLineCompleteCallback:function(a){this.k.WN=a||t()},setBusListHtmlSetCallback:function(a){this.k.UN=a||t()},setBusLineHtmlSetCallback:function(a){this.k.TN=a||t()},setPolylinesSetCallback:function(a){this.k.sF=a||t()}});function Gf(a){"undefined"!==typeof Sa&&I&&I("Autocomplete");Y.call(this,a);a=a||{};this.oc={input:a.input||p,yC:a.baseDom||p,types:a.types||[],Jy:a.onSearchComplete||t()};this.Cd.src=a.location||"\u5168\u56fd";this.hj="";this.sg=p;this.GI="";this.Yi();Ya(Ja);var b=this;bb.load("autocomplete",function(){b.Vd()})}x.ua(Gf,Y,"Autocomplete");x.extend(Gf.prototype,{Yi:t(),show:t(),U:t(),dG:function(a){this.oc.types=a},yn:function(a){this.Cd.src=a},search:ba("hj"),az:ba("GI")});var cb;function Wa(a,b){function c(){e.k.visible?("inter"===e.Oe&&db()&&e.k.haveBreakId&&e.k.indoorExitControl===o?x.K.show(e.Ar):x.K.U(e.Ar),this.Gd&&this.k.closeControl&&this.Cf&&this.D&&this.D.Fa()===this.C?x.K.show(e.Cf):x.K.U(e.Cf),this.k.forceCloseControl&&x.K.show(e.Cf)):(x.K.U(e.Cf),x.K.U(e.Ar))}"undefined"!==typeof Sa&&I&&I("Panorama");this.C="string"==typeof a?x.$(a):a;this.ba=Hf++;this.k={enableScrollWheelZoom:o,panoramaRenderer:Va()?"javascript":"flash",swfSrc:B.Uf("main_domain_nocdn","res/swf/")+ "APILoader.swf",visible:o,indoorExitControl:o,indoorFloorControl:q,linksControl:o,clickOnRoad:o,navigationControl:o,closeControl:o,indoorSceneSwitchControl:o,albumsControl:q,albumsControlOptions:{},copyrightControlOptions:{},forceCloseControl:q,haveBreakId:q};var b=b||{},d;for(d in b)this.k[d]=b[d];b.closeControl===o&&(this.k.forceCloseControl=o);b.useWebGL===q&&Va(q);this.Ea={heading:0,pitch:0};this.ro=[];this.Kb=this.Ya=p;this.nk=this.xr();this.wa=[];this.Kc=1;this.Oe=this.gU=this.rl="";this.Ne= {};this.Pf=p;this.Yg=[];this.Tr=[];"cvsRender"==this.nk||Va()?(this.gk=90,this.ik=-90):"cssRender"==this.nk&&(this.gk=45,this.ik=-45);this.Xr=q;var e=this,f=(1E5*Math.random()).toFixed(0);B._rd=B._rd||{};B._rd["_cbk"+f]=function(a){if(!a||a.error===k||a.error!==0)Hd("PANORAMA");else{this.nk==="flashRender"?bb.load("panoramaflash",function(){e.Yi()},o):bb.load("panorama",function(){e.Bb()},o);b.Yc=="api"?Ya(Fa):Ya(Ga)}delete B._rd["_cbk"+f]};this.so=function(){Gd("BMap._rd._cbk"+f);this.so=t()};this.k.UT!== o&&(this.so(),B.Rn("cus.fire","count","z_loadpanoramacount"));this.MU(this.C);this.addEventListener("id_changed",function(){Ya(Ea,{from:b.Yc})});this.TQ();this.addEventListener("indoorexit_options_changed",c);this.addEventListener("scene_type_changed",c);this.addEventListener("onclose_options_changed",c);this.addEventListener("onvisible_changed",c)}var If=4,Jf=1,Hf=0;x.lang.ua(Wa,x.lang.Da,"Panorama"); x.extend(Wa.prototype,{TQ:function(){var a=this,b=this.Cf=H("div");b.className="pano_close";b.style.cssText="z-index: 1201;display: none";b.title="\u9000\u51fa\u5168\u666f";b.onclick=function(){a.U()};this.C.appendChild(b);var c=this.Ar=H("a");c.className="pano_pc_indoor_exit";c.style.cssText="z-index: 1201;display: none";c.innerHTML='<span style="float:right;margin-right:12px;">\u51fa\u53e3</span>';c.title="\u9000\u51fa\u5ba4\u5185\u666f";c.onclick=function(){a.jp()};this.C.appendChild(c);window.ActiveXObject&& !document.addEventListener&&(b.style.backgroundColor="rgb(37,37,37)",c.style.backgroundColor="rgb(37,37,37)")},jp:t(),MU:function(a){var b,c;b=a.style;c=eb(a).position;"absolute"!=c&&"relative"!=c&&(b.position="relative",b.zIndex=0);if("absolute"===c||"relative"===c)if(a=eb(a).zIndex,!a||"auto"===a)b.zIndex=0},wY:v("ro"),Zb:v("Ya"),YY:v("zw"),TO:v("zw"),ia:v("Kb"),Ga:v("Ea"),ga:v("Kc"),mh:v("rl"),i4:function(){return this.y2||[]},d4:v("gU"),zt:v("Oe"),ez:function(a){a!==this.Oe&&(this.Oe=a,this.dispatchEvent(new N("onscene_type_changed")))}, rc:function(a,b,c){"object"===typeof b&&(c=b,b=k);a!=this.Ya&&(this.Cl=this.Ya,this.Dl=this.Kb,this.Ya=a,this.Oe=b||"street",this.Kb=p,c&&c.pov&&this.Nc(c.pov))},ta:function(a){a.cb(this.Kb)||(this.Cl=this.Ya,this.Dl=this.Kb,this.Kb=a,this.Ya=p)},Nc:function(a){a&&(this.Ea=a,a=this.Ea.pitch,a>this.gk?a=this.gk:a<this.ik&&(a=this.ik),this.Xr=o,this.Ea.pitch=a)},q0:function(a,b){this.ik=0<=a?0:a;this.gk=0>=b?0:b},Oc:function(a){a!=this.Kc&&(a>If&&(a=If),a<Jf&&(a=Jf),a!=this.Kc&&(this.Kc=a),"cssRender"=== this.nk&&this.Nc(this.Ea))},YB:function(){if(this.D)for(var a=this.D.Xx(),b=0;b<a.length;b++)(a[b]instanceof W||a[b]instanceof le)&&a[b].point&&this.wa.push(a[b])},bz:ba("D"),qu:function(a){this.Pf=a||"none"},Jj:function(a){for(var b in a){if("object"==typeof a[b])for(var c in a[b])this.k[b][c]=a[b][c];else this.k[b]=a[b];a.closeControl===o&&(this.k.forceCloseControl=o);a.closeControl===q&&(this.k.forceCloseControl=q);switch(b){case "linksControl":this.dispatchEvent(new N("onlinks_visible_changed")); break;case "clickOnRoad":this.dispatchEvent(new N("onclickonroad_changed"));break;case "navigationControl":this.dispatchEvent(new N("onnavigation_visible_changed"));break;case "indoorSceneSwitchControl":this.dispatchEvent(new N("onindoor_default_switch_mode_changed"));break;case "albumsControl":this.dispatchEvent(new N("onalbums_visible_changed"));break;case "albumsControlOptions":this.dispatchEvent(new N("onalbums_options_changed"));break;case "copyrightControlOptions":this.dispatchEvent(new N("oncopyright_options_changed")); break;case "closeControl":this.dispatchEvent(new N("onclose_options_changed"));break;case "indoorExitControl":this.dispatchEvent(new N("onindoorexit_options_changed"));break;case "indoorFloorControl":this.dispatchEvent(new N("onindoorfloor_options_changed"))}}},Nk:function(){this.Ml.style.visibility="hidden"},jz:function(){this.Ml.style.visibility="visible"},JX:function(){this.k.enableScrollWheelZoom=o},uX:function(){this.k.enableScrollWheelZoom=q},show:function(){this.k.visible=o},U:function(){this.k.visible= q},xr:function(){return db()&&!K()&&"javascript"!==this.k.panoramaRenderer?"flashRender":!K()&&ac()?"cvsRender":"cssRender"},Ka:function(a){this.Ne[a.ld]=a},Ub:function(a){delete this.Ne[a]},DE:function(){return this.k.visible},lh:function(){return new M(this.C.clientWidth,this.C.clientHeight)},Fa:v("C"),ZL:function(){var a=B.Uf("baidumap","?"),b=this.Zb();if(b){var b={panotype:this.zt(),heading:this.Ga().heading,pitch:this.Ga().pitch,pid:b,panoid:b,from:"api"},c;for(c in b)a+=c+"="+b[c]+"&"}return a.slice(0, -1)},fy:function(){this.Jj({copyrightControlOptions:{logoVisible:q}})},gG:function(){this.Jj({copyrightControlOptions:{logoVisible:o}})},sC:function(a){function b(a,b){return function(){a.Tr.push({FN:b,EN:arguments})}}for(var c=a.getPanoMethodList(),d="",e=0,f=c.length;e<f;e++)d=c[e],this[d]=b(this,d);this.Yg.push(a)},JF:function(a){for(var b=this.Yg.length;b--;)this.Yg[b]===a&&this.Yg.splice(b,1)},ZF:t()});var Kf=Wa.prototype; U(Kf,{setId:Kf.rc,setPosition:Kf.ta,setPov:Kf.Nc,setZoom:Kf.Oc,setOptions:Kf.Jj,getId:Kf.Zb,getPosition:Kf.ia,getPov:Kf.Ga,getZoom:Kf.ga,getLinks:Kf.wY,getBaiduMapUrl:Kf.ZL,hideMapLogo:Kf.fy,showMapLogo:Kf.gG,enableDoubleClickZoom:Kf.w3,disableDoubleClickZoom:Kf.l3,enableScrollWheelZoom:Kf.JX,disableScrollWheelZoom:Kf.uX,show:Kf.show,hide:Kf.U,addPlugin:Kf.sC,removePlugin:Kf.JF,getVisible:Kf.DE,addOverlay:Kf.Ka,removeOverlay:Kf.Ub,getSceneType:Kf.zt,setPanoramaPOIType:Kf.qu,exitInter:Kf.jp,setInteractiveState:Kf.ZF}); U(window,{BMAP_PANORAMA_POI_HOTEL:"hotel",BMAP_PANORAMA_POI_CATERING:"catering",BMAP_PANORAMA_POI_MOVIE:"movie",BMAP_PANORAMA_POI_TRANSIT:"transit",BMAP_PANORAMA_POI_INDOOR_SCENE:"indoor_scene",BMAP_PANORAMA_POI_NONE:"none",BMAP_PANORAMA_INDOOR_SCENE:"inter",BMAP_PANORAMA_STREET_SCENE:"street"});function Lf(){x.lang.Da.call(this);this.ld="PanoramaOverlay_"+this.ba;this.P=p;this.La=o}x.lang.ua(Lf,x.lang.Da,"PanoramaOverlayBase");x.extend(Lf.prototype,{e4:v("ld"),ra:function(){aa("initialize\u65b9\u6cd5\u672a\u5b9e\u73b0")},remove:function(){aa("remove\u65b9\u6cd5\u672a\u5b9e\u73b0")},Of:function(){aa("_setOverlayProperty\u65b9\u6cd5\u672a\u5b9e\u73b0")}});function Mf(a,b){"undefined"!==typeof Sa&&I&&I("PanoramaLabel");Lf.call(this);var c={position:p,altitude:2,displayDistance:o},b=b||{},d;for(d in b)c[d]=b[d];this.Kb=c.position;this.Wj=a;this.Qq=c.altitude;this.hS=c.displayDistance;this.mG=c.color;this.IM=c.hoverColor;this.backgroundColor=c.backgroundColor;this.IK=c.backgroundHoverColor;this.borderColor=c.borderColor;this.MK=c.borderHoverColor;this.fontSize=c.fontSize;this.padding=c.padding;this.JE=c.imageUrl;this.size=c.size;this.Ae=c.image;this.width= c.width;this.height=c.height;this.mZ=c.imageData;this.borderWidth=c.borderWidth}x.lang.ua(Mf,Lf,"PanoramaLabel"); x.extend(Mf.prototype,{J3:v("borderWidth"),getImageData:v("mZ"),Pm:v("mG"),X3:v("IM"),F3:v("backgroundColor"),G3:v("IK"),H3:v("borderColor"),I3:v("MK"),U3:v("fontSize"),f4:v("padding"),Y3:v("JE"),wb:v("size"),Ox:v("Ae"),ta:function(a){this.Kb=a;this.Of("position",a)},ia:v("Kb"),bd:function(a){this.Wj=a;this.Of("content",a)},Hk:v("Wj"),UF:function(a){this.Qq=a;this.Of("altitude",a)},mp:v("Qq"),Ga:function(){var a=this.ia(),b=p,c=p;this.P&&(c=this.P.ia());if(a&&c)if(a.cb(c))b=this.P.Ga();else{b={}; b.heading=Nf(a.lng-c.lng,a.lat-c.lat)||0;var a=b,c=this.mp(),d=this.lo();a.pitch=Math.round(180*(Math.atan(c/d)/Math.PI))||0}return b},lo:function(){var a=0,b,c;this.P&&(b=this.P.ia(),(c=this.ia())&&!c.cb(b)&&(a=R.op(b,c)));return a},U:function(){aa("hide\u65b9\u6cd5\u672a\u5b9e\u73b0")},show:function(){aa("show\u65b9\u6cd5\u672a\u5b9e\u73b0")},Of:t()});var Of=Mf.prototype; U(Of,{setPosition:Of.ta,getPosition:Of.ia,setContent:Of.bd,getContent:Of.Hk,setAltitude:Of.UF,getAltitude:Of.mp,getPov:Of.Ga,show:Of.show,hide:Of.U});function Pf(a,b){Lf.call(this);var c={icon:"",title:"",panoInfo:p,altitude:2},b=b||{},d;for(d in b)c[d]=b[d];this.Kb=a;this.BI=c.icon;this.$J=c.title;this.Qq=c.altitude;this.yU=c.panoInfo;this.Ea={heading:0,pitch:0}}x.lang.ua(Pf,Lf,"PanoramaMarker"); x.extend(Pf.prototype,{ta:function(a){this.Kb=a;this.Of("position",a)},ia:v("Kb"),Dc:function(a){this.$J=a;this.Of("title",a)},xp:v("$J"),Vb:function(a){this.BI=icon;this.Of("icon",a)},pp:v("BI"),UF:function(a){this.Qq=a;this.Of("altitude",a)},mp:v("Qq"),uE:v("yU"),Ga:function(){var a=p;if(this.P){var a=this.P.ia(),b=this.ia(),a=Nf(b.lng-a.lng,b.lat-a.lat);isNaN(a)&&(a=0);a={heading:a,pitch:0}}else a=this.Ea;return a},Of:t()});var Qf=Pf.prototype; U(Qf,{setPosition:Qf.ta,getPosition:Qf.ia,setTitle:Qf.Dc,getTitle:Qf.xp,setAltitude:Qf.UF,getAltitude:Qf.mp,getPanoInfo:Qf.uE,getIcon:Qf.pp,setIcon:Qf.Vb,getPov:Qf.Ga});function Nf(a,b){var c=0;if(0!==a&&0!==b){var c=180*(Math.atan(a/b)/Math.PI),d=0;0<a&&0>b&&(d=90);0>a&&0>b&&(d=180);0>a&&0<b&&(d=270);c=(c+90)%90+d}else 0===a?c=0>b?180:0:0===b&&(c=0<a?90:270);return Math.round(c)} function Va(a){if("boolean"===typeof Rf)return Rf;if(a===q||!window.WebGLRenderingContext)return Rf=q;if(x.platform.Xm){a=0;try{a=navigator.userAgent.split("Android ")[1].charAt(0)}catch(b){}if(5>a)return Rf=q}var a=document.createElement("canvas"),c=p;try{c=a.getContext("webgl")}catch(d){Rf=q}return Rf=c===p?q:o}var Rf;function Sf(){if("boolean"===typeof Tf)return Tf;Tf=o;if(x.platform.TE)return o;var a=navigator.userAgent;return-1<a.indexOf("Chrome")||-1<a.indexOf("SAMSUNG-GT-I9508")?o:Tf=q}var Tf;function Ud(a,b){"undefined"!==typeof Sa&&I&&I("PanoramaService");this.P=a||p;var c=this;c.P&&c.da();bb.load("pservice",function(){c.yR()});"api"==(b||{}).Yc?Ya(Ha):Ya(Ia);this.Ad={getPanoramaById:[],getPanoramaByLocation:[],getVisiblePOIs:[],getRecommendPanosById:[],getPanoramaVersions:[],checkPanoSupportByCityCode:[],getPanoramaByPOIId:[],getCopyrightProviders:[]}}B.jn(function(a){"flashRender"!==a.xr()&&new Ud(a,{Yc:"api"})}); x.extend(Ud.prototype,{da:function(){function a(a){if(a){if(a.id!=b.zw){b.TO(a.id);b.ea=a;Sf()||b.dispatchEvent(new N("onthumbnail_complete"));b.Ya!=p&&(b.Dl=b._position);for(var c in a)if(a.hasOwnProperty(c))switch(b["_"+c]=a[c],c){case "position":b.Kb=a[c];break;case "id":b.Ya=a[c];break;case "links":b.ro=a[c];break;case "zoom":b.Kc=a[c]}if(b.Dl){var f=b.Dl,g=b._position;c=f.lat;var i=g.lat,j=bc(i-c),f=bc(g.lng-f.lng);c=Math.sin(j/2)*Math.sin(j/2)+Math.cos(bc(c))*Math.cos(bc(i))*Math.sin(f/2)*Math.sin(f/ 2);b.PH=6371E3*2*Math.atan2(Math.sqrt(c),Math.sqrt(1-c))}c=new N("ondataload");b.show();c.data=a;b.dispatchEvent(c);b.dispatchEvent(new N("onposition_changed"));b.dispatchEvent(new N("onlinks_changed"));b.dispatchEvent(new N("oncopyright_changed"),{copyright:a.copyright});a.pm?(b.Jj({haveBreakId:o}),db()&&b.k.closeControl&&x.K.show(b.Ar)):x.K.U(b.Ar)}}else b.Ya=b.Cl,b.Kb=b.Dl,b.dispatchEvent(new N("onnoresult"))}var b=this.P,c=this;b.addEventListener("id_changed",function(){B.Tw("y");c.up(b.Zb(), a)});b.addEventListener("iid_changed",function(){B.Tw("y");c.qg(Ud.ol+"qt=idata&iid="+b.UA+"&fn=",function(b){if(b&&b.result&&0==b.result.error){var b=b.content[0].interinfo,e={};e.pm=b.BreakID;for(var f=b.Defaultfloor,g=p,i=0;i<b.Floors.length;i++)if(b.Floors[i].Floor==f){g=b.Floors[i];break}e.id=g.StartID||g.Points[0].PID;c.up(e.id,a,e)}})});b.addEventListener("position_changed_inner",function(){B.Tw("y");c.wj(b.ia(),a)})},up:function(a,b){this.Ad.getPanoramaById.push(arguments)},wj:function(a, b,c){this.Ad.getPanoramaByLocation.push(arguments)},EE:function(a,b,c,d){this.Ad.getVisiblePOIs.push(arguments)},$x:function(a,b){this.Ad.getRecommendPanosById.push(arguments)},Zx:function(a){this.Ad.getPanoramaVersions.push(arguments)},GC:function(a,b){this.Ad.checkPanoSupportByCityCode.push(arguments)},Yx:function(a,b){this.Ad.getPanoramaByPOIId.push(arguments)},dM:function(a){this.Ad.getCopyrightProviders.push(arguments)}});var Uf=Ud.prototype; U(Uf,{getPanoramaById:Uf.up,getPanoramaByLocation:Uf.wj,getPanoramaByPOIId:Uf.Yx});function Td(a){"undefined"!==typeof Sa&&I&&I("PanoramaCoverageLayer");ze.call(this);"api"==(a||{}).Yc?Ya(Ca):Ya(Da)}Td.gH=B.Uf("pano","");Td.prototype=new ze;Td.prototype.getTilesUrl=function(a,b){var c=Td.gH[(a.x+a.y)%Td.gH.length]+"?udt=20150114&qt=tile&styles=pl&x="+a.x+"&y="+a.y+"&z="+b;x.ca.ma&&6>=x.ca.ma&&(c+="&color_dep=32");var d=Pc(c);d?(d=Jd(d.path,{Hp:q}),c+="&"+d):c=p;return c};Td.prototype.Qt=ea(o);Vf.Zd=new R;function Vf(){}x.extend(Vf,{vX:function(a,b,c){c=x.lang.Lc(c);b={data:b};"position_changed"==a&&(b.data=Vf.Zd.Hj(new Q(b.data.mercatorX,b.data.mercatorY)));c.dispatchEvent(new N("on"+a),b)}});var Wf=Vf;U(Wf,{dispatchFlashEvent:Wf.vX});var Xf={oQ:50};Xf.av=B.Uf("pano")[0];Xf.Xu={width:220,height:60}; x.extend(Xf,{Fp:function(a,b,c,d){if(!b||!c||!c.lngLat||!c.panoInstance)d();else{this.xo===k&&(this.xo=new Ud(p,{Yc:"api"}));var e=this;this.xo.GC(b,function(b){b?e.xo.wj(c.lngLat,Xf.oQ,function(b){if(b&&b.id){var f=b.id,j=b.zh,b=b.Ah,l=Ud.Zd.El(c.lngLat),m=e.kT(l,{x:j,y:b}),j=e.nM(f,m,0,Xf.Xu.width,Xf.Xu.height);a.content=e.lT(a.content,j,c.titleTip,c.beforeDomId);a.addEventListener("open",function(){ja.M(x.Ec("infoWndPano"),"click",function(){c.panoInstance.rc(f);c.panoInstance.show();c.panoInstance.Nc({heading:m, pitch:0})})})}d()}):d()})}},lT:function(a,b,c,d){var c=c||"",e;!d||!a.split(d)[0]?(d=a,a=""):(d=a.split(d)[0],e=d.lastIndexOf("<"),d=a.substring(0,e),a=a.substring(e));e=[];var f=Xf.Xu.width,g=Xf.Xu.height;e.push(d);e.push("<div id='infoWndPano' class='panoInfoBox' style='height:"+g+"px;width:"+f+"px; margin-top: -19px;'>");e.push("<img class='pano_thumnail_img' width='"+f+"' height='"+g+"' border='0' alt='"+c+"\u5916\u666f' title='"+c+"\u5916\u666f' src='"+b+"' onerror='Pano.PanoEntranceUtil.thumbnailNotFound(this, "+ f+", "+g+");' />");e.push("<div class='panoInfoBoxTitleBg' style='width:"+f+"px;'></div><a href='javascript:void(0)' class='panoInfoBoxTitleContent' >\u8fdb\u5165\u5168\u666f&gt;&gt;</a>");e.push("</div>");e.push(a);return e.join("")},kT:function(a,b){var c=90-180*Math.atan2(a.y-b.y,a.x-b.x)/Math.PI;0>c&&(c+=360);return c},nM:function(a,b,c,d,e){var f=Xf.av+"?qt=pr3d&fovy=75&quality=80&panoid={panoId}&heading={panoHeading}&pitch={panoPitch}&width={width}&height={height}",g={panoId:a,panoHeading:b|| 0,panoPitch:c||0,width:d,height:e},f=f.replace(/\{(.*?)\}/g,function(a,b){return g[b]});return(a=Pc(f))?(a=Jd(a.path,{Hp:q}),f+("&"+a)):p}});var Yf=document,Zf=Math,$f=Yf.createElement("div").style,ag;a:{for(var cg=["t","webkitT","MozT","msT","OT"],dg,eg=0,fg=cg.length;eg<fg;eg++)if(dg=cg[eg]+"ransform",dg in $f){ag=cg[eg].substr(0,cg[eg].length-1);break a}ag=q} var gg=ag?"-"+ag.toLowerCase()+"-":"",ig=hg("transform"),jg=hg("transitionProperty"),kg=hg("transitionDuration"),ng=hg("transformOrigin"),og=hg("transitionTimingFunction"),pg=hg("transitionDelay"),zf=/android/gi.test(navigator.appVersion),qg=/iphone|ipad/gi.test(navigator.appVersion),rg=/hp-tablet/gi.test(navigator.appVersion),sg=hg("perspective")in $f,tg="ontouchstart"in window&&!rg,ug=ag!==q,vg=hg("transition")in $f,wg="onorientationchange"in window?"orientationchange":"resize",xg=tg?"touchstart": "mousedown",yg=tg?"touchmove":"mousemove",zg=tg?"touchend":"mouseup",Ag=tg?"touchcancel":"mouseup",Bg=ag===q?q:{"":"transitionend",webkit:"webkitTransitionEnd",Moz:"transitionend",O:"otransitionend",ms:"MSTransitionEnd"}[ag],Cg=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(a){return setTimeout(a,1)},Dg=window.cancelRequestAnimationFrame||window.k6||window.webkitCancelRequestAnimationFrame|| window.mozCancelRequestAnimationFrame||window.oCancelRequestAnimationFrame||window.msCancelRequestAnimationFrame||clearTimeout,Eg=sg?" translateZ(0)":""; function Fg(a,b){var c=this,d;c.Ln="object"==typeof a?a:Yf.getElementById(a);c.Ln.style.overflow="hidden";c.Nb=c.Ln.children[0];c.options={Bp:o,Jn:o,x:0,y:0,Vo:o,sW:q,Cy:o,hF:o,fl:o,Ii:q,S0:0,bx:q,dy:o,ui:o,Ji:o,WD:zf,gy:qg,QX:qg&&sg,RF:"",zoom:q,hl:1,wq:4,xX:2,RP:"scroll",zu:q,mz:1,$N:p,SN:function(a){a.preventDefault()},cO:p,RN:p,bO:p,QN:p,Iy:p,dO:p,VN:p,Sp:p,eO:p,Rp:p};for(d in b)c.options[d]=b[d];c.x=c.options.x;c.y=c.options.y;c.options.fl=ug&&c.options.fl;c.options.ui=c.options.Bp&&c.options.ui; c.options.Ji=c.options.Jn&&c.options.Ji;c.options.zoom=c.options.fl&&c.options.zoom;c.options.Ii=vg&&c.options.Ii;c.options.zoom&&zf&&(Eg="");c.Nb.style[jg]=c.options.fl?gg+"transform":"top left";c.Nb.style[kg]="0";c.Nb.style[ng]="0 0";c.options.Ii&&(c.Nb.style[og]="cubic-bezier(0.33,0.66,0.66,1)");c.options.fl?c.Nb.style[ig]="translate("+c.x+"px,"+c.y+"px)"+Eg:c.Nb.style.cssText+=";position:absolute;top:"+c.y+"px;left:"+c.x+"px";c.options.Ii&&(c.options.WD=o);c.refresh();c.da(wg,window);c.da(xg); !tg&&"none"!=c.options.RP&&(c.da("DOMMouseScroll"),c.da("mousewheel"));c.options.bx&&(c.EW=setInterval(function(){c.vR()},500));this.options.dy&&(Event.prototype.stopImmediatePropagation||(document.body.removeEventListener=function(a,b,c){var d=Node.prototype.removeEventListener;a==="click"?d.call(document.body,a,b.GM||b,c):d.call(document.body,a,b,c)},document.body.addEventListener=function(a,b,c){var d=Node.prototype.addEventListener;a==="click"?d.call(document.body,a,b.GM||(b.GM=function(a){a.x_|| b(a)}),c):d.call(document.body,a,b,c)}),c.da("click",document.body,o))} Fg.prototype={enabled:o,x:0,y:0,Kj:[],scale:1,$C:0,aD:0,Ze:[],xf:[],xC:p,wz:0,handleEvent:function(a){switch(a.type){case xg:if(!tg&&0!==a.button)break;this.sw(a);break;case yg:this.iU(a);break;case zg:case Ag:this.Av(a);break;case wg:this.RB();break;case "DOMMouseScroll":case "mousewheel":this.PV(a);break;case Bg:this.KV(a);break;case "click":this.GR(a)}},vR:function(){!this.wh&&(!this.il&&!(this.km||this.$y==this.Nb.offsetWidth*this.scale&&this.cq==this.Nb.offsetHeight*this.scale))&&this.refresh()}, hw:function(a){var b;this[a+"Scrollbar"]?(this[a+"ScrollbarWrapper"]||(b=Yf.createElement("div"),this.options.RF?b.className=this.options.RF+a.toUpperCase():b.style.cssText="position:absolute;z-index:100;"+("h"==a?"height:7px;bottom:1px;left:2px;right:"+(this.Ji?"7":"2")+"px":"width:7px;bottom:"+(this.ui?"7":"2")+"px;top:2px;right:1px"),b.style.cssText+=";pointer-events:none;"+gg+"transition-property:opacity;"+gg+"transition-duration:"+(this.options.QX?"350ms":"0")+";overflow:hidden;opacity:"+(this.options.gy? "0":"1"),this.Ln.appendChild(b),this[a+"ScrollbarWrapper"]=b,b=Yf.createElement("div"),this.options.RF||(b.style.cssText="position:absolute;z-index:100;background:rgba(0,0,0,0.5);border:1px solid rgba(255,255,255,0.9);"+gg+"background-clip:padding-box;"+gg+"box-sizing:border-box;"+("h"==a?"height:100%":"width:100%")+";"+gg+"border-radius:3px;border-radius:3px"),b.style.cssText+=";pointer-events:none;"+gg+"transition-property:"+gg+"transform;"+gg+"transition-timing-function:cubic-bezier(0.33,0.66,0.66,1);"+ gg+"transition-duration:0;"+gg+"transform: translate(0,0)"+Eg,this.options.Ii&&(b.style.cssText+=";"+gg+"transition-timing-function:cubic-bezier(0.33,0.66,0.66,1)"),this[a+"ScrollbarWrapper"].appendChild(b),this[a+"ScrollbarIndicator"]=b),"h"==a?(this.DM=this.EM.clientWidth,this.fZ=Zf.max(Zf.round(this.DM*this.DM/this.$y),8),this.eZ.style.width=this.fZ+"px"):(this.IP=this.JP.clientHeight,this.m1=Zf.max(Zf.round(this.IP*this.IP/this.cq),8),this.l1.style.height=this.m1+"px"),this.SB(a,o)):this[a+"ScrollbarWrapper"]&& (ug&&(this[a+"ScrollbarIndicator"].style[ig]=""),this[a+"ScrollbarWrapper"].parentNode.removeChild(this[a+"ScrollbarWrapper"]),this[a+"ScrollbarWrapper"]=p,this[a+"ScrollbarIndicator"]=p)},RB:function(){var a=this;setTimeout(function(){a.refresh()},zf?200:0)},Wr:function(a,b){this.il||(a=this.Bp?a:0,b=this.Jn?b:0,this.options.fl?this.Nb.style[ig]="translate("+a+"px,"+b+"px) scale("+this.scale+")"+Eg:(a=Zf.round(a),b=Zf.round(b),this.Nb.style.left=a+"px",this.Nb.style.top=b+"px"),this.x=a,this.y=b, this.SB("h"),this.SB("v"))},SB:function(a,b){var c="h"==a?this.x:this.y;this[a+"Scrollbar"]&&(c*=this[a+"ScrollbarProp"],0>c?(this.options.WD||(c=this[a+"ScrollbarIndicatorSize"]+Zf.round(3*c),8>c&&(c=8),this[a+"ScrollbarIndicator"].style["h"==a?"width":"height"]=c+"px"),c=0):c>this[a+"ScrollbarMaxScroll"]&&(this.options.WD?c=this[a+"ScrollbarMaxScroll"]:(c=this[a+"ScrollbarIndicatorSize"]-Zf.round(3*(c-this[a+"ScrollbarMaxScroll"])),8>c&&(c=8),this[a+"ScrollbarIndicator"].style["h"==a?"width":"height"]= c+"px",c=this[a+"ScrollbarMaxScroll"]+(this[a+"ScrollbarIndicatorSize"]-c))),this[a+"ScrollbarWrapper"].style[pg]="0",this[a+"ScrollbarWrapper"].style.opacity=b&&this.options.gy?"0":"1",this[a+"ScrollbarIndicator"].style[ig]="translate("+("h"==a?c+"px,0)":"0,"+c+"px)")+Eg)},GR:function(a){if(a.GS===o)return this.pC=a.target,this.Hx=Date.now(),o;if(this.pC&&this.Hx){if(600<Date.now()-this.Hx)return this.Hx=this.pC=p,o}else{for(var b=a.target;b!=this.Nb&&b!=document.body;)b=b.parentNode;if(b==document.body)return o}for(b= a.target;1!=b.nodeType;)b=b.parentNode;b=b.tagName.toLowerCase();if("select"!=b&&"input"!=b&&"textarea"!=b)return a.stopImmediatePropagation?a.stopImmediatePropagation():a.x_=o,a.stopPropagation(),a.preventDefault(),this.Hx=this.pC=p,q},sw:function(a){var b=tg?a.touches[0]:a,c,d;if(this.enabled){this.options.SN&&this.options.SN.call(this,a);(this.options.Ii||this.options.zoom)&&this.aK(0);this.il=this.km=this.wh=q;this.kD=this.jD=this.Jw=this.Iw=this.qD=this.pD=0;this.options.zoom&&(tg&&1<a.touches.length)&& (d=Zf.abs(a.touches[0].pageX-a.touches[1].pageX),c=Zf.abs(a.touches[0].pageY-a.touches[1].pageY),this.U0=Zf.sqrt(d*d+c*c),this.Ky=Zf.abs(a.touches[0].pageX+a.touches[1].pageX-2*this.BG)/2-this.x,this.Ly=Zf.abs(a.touches[0].pageY+a.touches[1].pageY-2*this.CG)/2-this.y,this.options.Sp&&this.options.Sp.call(this,a));if(this.options.Cy&&(this.options.fl?(c=getComputedStyle(this.Nb,p)[ig].replace(/[^0-9\-.,]/g,"").split(","),d=+(c[12]||c[4]),c=+(c[13]||c[5])):(d=+getComputedStyle(this.Nb,p).left.replace(/[^0-9-]/g, ""),c=+getComputedStyle(this.Nb,p).top.replace(/[^0-9-]/g,"")),d!=this.x||c!=this.y))this.options.Ii?this.ce(Bg):Dg(this.xC),this.Kj=[],this.Wr(d,c),this.options.Iy&&this.options.Iy.call(this);this.Kw=this.x;this.Lw=this.y;this.Du=this.x;this.Eu=this.y;this.zh=b.pageX;this.Ah=b.pageY;this.startTime=a.timeStamp||Date.now();this.options.cO&&this.options.cO.call(this,a);this.da(yg,window);this.da(zg,window);this.da(Ag,window)}},iU:function(a){var b=tg?a.touches[0]:a,c=b.pageX-this.zh,d=b.pageY-this.Ah, e=this.x+c,f=this.y+d,g=a.timeStamp||Date.now();this.options.RN&&this.options.RN.call(this,a);if(this.options.zoom&&tg&&1<a.touches.length)e=Zf.abs(a.touches[0].pageX-a.touches[1].pageX),f=Zf.abs(a.touches[0].pageY-a.touches[1].pageY),this.T0=Zf.sqrt(e*e+f*f),this.il=o,b=1/this.U0*this.T0*this.scale,b<this.options.hl?b=0.5*this.options.hl*Math.pow(2,b/this.options.hl):b>this.options.wq&&(b=2*this.options.wq*Math.pow(0.5,this.options.wq/b)),this.Mp=b/this.scale,e=this.Ky-this.Ky*this.Mp+this.x,f=this.Ly- this.Ly*this.Mp+this.y,this.Nb.style[ig]="translate("+e+"px,"+f+"px) scale("+b+")"+Eg,this.options.eO&&this.options.eO.call(this,a);else{this.zh=b.pageX;this.Ah=b.pageY;if(0<e||e<this.me)e=this.options.Vo?this.x+c/2:0<=e||0<=this.me?0:this.me;if(f>this.vf||f<this.sd)f=this.options.Vo?this.y+d/2:f>=this.vf||0<=this.sd?this.vf:this.sd;this.pD+=c;this.qD+=d;this.Iw=Zf.abs(this.pD);this.Jw=Zf.abs(this.qD);6>this.Iw&&6>this.Jw||(this.options.hF&&(this.Iw>this.Jw+5?(f=this.y,d=0):this.Jw>this.Iw+5&&(e= this.x,c=0)),this.wh=o,this.Wr(e,f),this.jD=0<c?-1:0>c?1:0,this.kD=0<d?-1:0>d?1:0,300<g-this.startTime&&(this.startTime=g,this.Du=this.x,this.Eu=this.y),this.options.bO&&this.options.bO.call(this,a))}},Av:function(a){if(!(tg&&0!==a.touches.length)){var b=this,c=tg?a.changedTouches[0]:a,d,e,f={Ca:0,time:0},g={Ca:0,time:0},i=(a.timeStamp||Date.now())-b.startTime;d=b.x;e=b.y;b.ce(yg,window);b.ce(zg,window);b.ce(Ag,window);b.options.QN&&b.options.QN.call(b,a);if(b.il)d=b.scale*b.Mp,d=Math.max(b.options.hl, d),d=Math.min(b.options.wq,d),b.Mp=d/b.scale,b.scale=d,b.x=b.Ky-b.Ky*b.Mp+b.x,b.y=b.Ly-b.Ly*b.Mp+b.y,b.Nb.style[kg]="200ms",b.Nb.style[ig]="translate("+b.x+"px,"+b.y+"px) scale("+b.scale+")"+Eg,b.il=q,b.refresh(),b.options.Rp&&b.options.Rp.call(b,a);else{if(b.wh){if(300>i&&b.options.Cy){f=d?b.XI(d-b.Du,i,-b.x,b.$y-b.Qu+b.x,b.options.Vo?b.Qu:0):f;g=e?b.XI(e-b.Eu,i,-b.y,0>b.sd?b.cq-b.Mn+b.y-b.vf:0,b.options.Vo?b.Mn:0):g;d=b.x+f.Ca;e=b.y+g.Ca;if(0<b.x&&0<d||b.x<b.me&&d<b.me)f={Ca:0,time:0};if(b.y>b.vf&& e>b.vf||b.y<b.sd&&e<b.sd)g={Ca:0,time:0}}f.Ca||g.Ca?(c=Zf.max(Zf.max(f.time,g.time),10),b.options.zu&&(f=d-b.Kw,g=e-b.Lw,Zf.abs(f)<b.options.mz&&Zf.abs(g)<b.options.mz?b.scrollTo(b.Kw,b.Lw,200):(f=b.SJ(d,e),d=f.x,e=f.y,c=Zf.max(f.time,c))),b.scrollTo(Zf.round(d),Zf.round(e),c)):b.options.zu?(f=d-b.Kw,g=e-b.Lw,Zf.abs(f)<b.options.mz&&Zf.abs(g)<b.options.mz?b.scrollTo(b.Kw,b.Lw,200):(f=b.SJ(b.x,b.y),(f.x!=b.x||f.y!=b.y)&&b.scrollTo(f.x,f.y,f.time))):b.zo(200)}else{if(tg)if(b.tL&&b.options.zoom)clearTimeout(b.tL), b.tL=p,b.options.Sp&&b.options.Sp.call(b,a),b.zoom(b.zh,b.Ah,1==b.scale?b.options.xX:1),b.options.Rp&&setTimeout(function(){b.options.Rp.call(b,a)},200);else if(this.options.dy){for(d=c.target;1!=d.nodeType;)d=d.parentNode;e=d.tagName.toLowerCase();"select"!=e&&"input"!=e&&"textarea"!=e?(e=Yf.createEvent("MouseEvents"),e.initMouseEvent("click",o,o,a.view,1,c.screenX,c.screenY,c.clientX,c.clientY,a.ctrlKey,a.altKey,a.shiftKey,a.metaKey,0,p),e.GS=o,d.dispatchEvent(e)):d.focus()}b.zo(400)}b.options.dO&& b.options.dO.call(b,a)}}},zo:function(a){var b=0<=this.x?0:this.x<this.me?this.me:this.x,c=this.y>=this.vf||0<this.sd?this.vf:this.y<this.sd?this.sd:this.y;if(b==this.x&&c==this.y){if(this.wh&&(this.wh=q,this.options.Iy&&this.options.Iy.call(this)),this.ui&&this.options.gy&&("webkit"==ag&&(this.EM.style[pg]="300ms"),this.EM.style.opacity="0"),this.Ji&&this.options.gy)"webkit"==ag&&(this.JP.style[pg]="300ms"),this.JP.style.opacity="0"}else this.scrollTo(b,c,a||0)},PV:function(a){var b=this,c,d;if("wheelDeltaX"in a)c=a.wheelDeltaX/12,d=a.wheelDeltaY/12;else if("wheelDelta"in a)c=d=a.wheelDelta/12;else if("detail"in a)c=d=3*-a.detail;else return;if("zoom"==b.options.RP){if(d=b.scale*Math.pow(2,1/3*(d?d/Math.abs(d):0)),d<b.options.hl&&(d=b.options.hl),d>b.options.wq&&(d=b.options.wq),d!=b.scale)!b.wz&&b.options.Sp&&b.options.Sp.call(b,a),b.wz++,b.zoom(a.pageX,a.pageY,d,400),setTimeout(function(){b.wz--;!b.wz&&b.options.Rp&&b.options.Rp.call(b,a)},400)}else c=b.x+c,d=b.y+d,0<c?c=0:c<b.me&&(c=b.me),d>b.vf?d=b.vf: d<b.sd&&(d=b.sd),0>b.sd&&b.scrollTo(c,d,0)},KV:function(a){a.target==this.Nb&&(this.ce(Bg),this.dC())},dC:function(){var a=this,b=a.x,c=a.y,d=Date.now(),e,f,g;a.km||(a.Kj.length?(e=a.Kj.shift(),e.x==b&&e.y==c&&(e.time=0),a.km=o,a.wh=o,a.options.Ii)?(a.aK(e.time),a.Wr(e.x,e.y),a.km=q,e.time?a.da(Bg):a.zo(0)):(g=function(){var i=Date.now(),j;if(i>=d+e.time){a.Wr(e.x,e.y);a.km=q;a.options.g_&&a.options.g_.call(a);a.dC()}else{i=(i-d)/e.time-1;f=Zf.sqrt(1-i*i);i=(e.x-b)*f+b;j=(e.y-c)*f+c;a.Wr(i,j);if(a.km)a.xC= Cg(g)}},g()):a.zo(400))},aK:function(a){a+="ms";this.Nb.style[kg]=a;this.ui&&(this.eZ.style[kg]=a);this.Ji&&(this.l1.style[kg]=a)},XI:function(a,b,c,d,e){var b=Zf.abs(a)/b,f=b*b/0.0012;0<a&&f>c?(c+=e/(6/(6.0E-4*(f/b))),b=b*c/f,f=c):0>a&&f>d&&(d+=e/(6/(6.0E-4*(f/b))),b=b*d/f,f=d);return{Ca:f*(0>a?-1:1),time:Zf.round(b/6.0E-4)}},kk:function(a){for(var b=-a.offsetLeft,c=-a.offsetTop;a=a.offsetParent;)b-=a.offsetLeft,c-=a.offsetTop;a!=this.Ln&&(b*=this.scale,c*=this.scale);return{left:b,top:c}},SJ:function(a, b){var c,d,e;e=this.Ze.length-1;c=0;for(d=this.Ze.length;c<d;c++)if(a>=this.Ze[c]){e=c;break}e==this.$C&&(0<e&&0>this.jD)&&e--;a=this.Ze[e];d=(d=Zf.abs(a-this.Ze[this.$C]))?500*(Zf.abs(this.x-a)/d):0;this.$C=e;e=this.xf.length-1;for(c=0;c<e;c++)if(b>=this.xf[c]){e=c;break}e==this.aD&&(0<e&&0>this.kD)&&e--;b=this.xf[e];c=(c=Zf.abs(b-this.xf[this.aD]))?500*(Zf.abs(this.y-b)/c):0;this.aD=e;e=Zf.round(Zf.max(d,c))||200;return{x:a,y:b,time:e}},da:function(a,b,c){(b||this.Nb).addEventListener(a,this,!!c)}, ce:function(a,b,c){(b||this.Nb).removeEventListener(a,this,!!c)},gD:ha(1),refresh:function(){var a,b,c,d=0;b=0;this.scale<this.options.hl&&(this.scale=this.options.hl);this.Qu=this.Ln.clientWidth||1;this.Mn=this.Ln.clientHeight||1;this.vf=-this.options.S0||0;this.$y=Zf.round(this.Nb.offsetWidth*this.scale);this.cq=Zf.round((this.Nb.offsetHeight+this.vf)*this.scale);this.me=this.Qu-this.$y;this.sd=this.Mn-this.cq+this.vf;this.kD=this.jD=0;this.options.$N&&this.options.$N.call(this);this.Bp=this.options.Bp&& 0>this.me;this.Jn=this.options.Jn&&(!this.options.sW&&!this.Bp||this.cq>this.Mn);this.ui=this.Bp&&this.options.ui;this.Ji=this.Jn&&this.options.Ji&&this.cq>this.Mn;a=this.kk(this.Ln);this.BG=-a.left;this.CG=-a.top;if("string"==typeof this.options.zu){this.Ze=[];this.xf=[];c=this.Nb.querySelectorAll(this.options.zu);a=0;for(b=c.length;a<b;a++)d=this.kk(c[a]),d.left+=this.BG,d.top+=this.CG,this.Ze[a]=d.left<this.me?this.me:d.left*this.scale,this.xf[a]=d.top<this.sd?this.sd:d.top*this.scale}else if(this.options.zu){for(this.Ze= [];d>=this.me;)this.Ze[b]=d,d-=this.Qu,b++;this.me%this.Qu&&(this.Ze[this.Ze.length]=this.me-this.Ze[this.Ze.length-1]+this.Ze[this.Ze.length-1]);b=d=0;for(this.xf=[];d>=this.sd;)this.xf[b]=d,d-=this.Mn,b++;this.sd%this.Mn&&(this.xf[this.xf.length]=this.sd-this.xf[this.xf.length-1]+this.xf[this.xf.length-1])}this.hw("h");this.hw("v");this.il||(this.Nb.style[kg]="0",this.zo(400))},scrollTo:function(a,b,c,d){var e=a;this.stop();e.length||(e=[{x:a,y:b,time:c,z_:d}]);a=0;for(b=e.length;a<b;a++)e[a].z_&& (e[a].x=this.x-e[a].x,e[a].y=this.y-e[a].y),this.Kj.push({x:e[a].x,y:e[a].y,time:e[a].time||0});this.dC()},disable:function(){this.stop();this.zo(0);this.enabled=q;this.ce(yg,window);this.ce(zg,window);this.ce(Ag,window)},enable:function(){this.enabled=o},stop:function(){this.options.Ii?this.ce(Bg):Dg(this.xC);this.Kj=[];this.km=this.wh=q},zoom:function(a,b,c,d){var e=c/this.scale;this.options.fl&&(this.il=o,d=d===k?200:d,a=a-this.BG-this.x,b=b-this.CG-this.y,this.x=a-a*e+this.x,this.y=b-b*e+this.y, this.scale=c,this.refresh(),this.x=0<this.x?0:this.x<this.me?this.me:this.x,this.y=this.y>this.vf?this.vf:this.y<this.sd?this.sd:this.y,this.Nb.style[kg]=d+"ms",this.Nb.style[ig]="translate("+this.x+"px,"+this.y+"px) scale("+c+")"+Eg,this.il=q)}};function hg(a){if(""===ag)return a;a=a.charAt(0).toUpperCase()+a.substr(1);return ag+a}$f=p;function Gg(a){this.k={anchor:Nd,offset:new M(0,0),maxWidth:"100%",imageHeight:80};var a=a||{},b;for(b in a)this.k[b]=a[b];this.Wl=new Ud(p,{Yc:"api"});this.lk=[];this.P=p;this.jg={height:this.k.imageHeight,width:this.k.imageHeight*Hg};this.Pc=this.TB=this.pm=this.Xc=p}var Ig=[0,1,2,2,2,2,2,2,2,3,3,3,3,4,5,5,5,6,6,7,8,8,8,9,10],Jg="\u5176\u4ed6 \u6b63\u95e8 \u623f\u578b \u8bbe\u65bd \u6b63\u95e8 \u9910\u996e\u8bbe\u65bd \u5176\u4ed6\u8bbe\u65bd \u6b63\u95e8 \u8bbe\u65bd \u89c2\u5f71\u5385 \u5176\u4ed6\u8bbe\u65bd".split(" "); B.jn(function(a){var b=p;a.addEventListener("position_changed",function(){a.k.visible&&a.k.albumsControl===o&&(b?b.Uy(a.Zb()):(b=new Gg(a.k.albumsControlOptions),b.ra(a)))});a.addEventListener("albums_visible_changed",function(){a.k.albumsControl===o?(b?b.Uy(a.Zb()):(b=new Gg(a.k.albumsControlOptions),b.ra(a)),b.show()):b.U()});a.addEventListener("albums_options_changed",function(){b&&b.Jj(a.k.albumsControlOptions)});a.addEventListener("visible_changed",function(){b&&(a.DE()?a.k.albumsControl===o&& (b.C.style.visibility="visible"):b.C.style.visibility="hidden")})});var Hg=1.8;K()&&(Hg=1); x.extend(Gg.prototype,{Jj:function(a){for(var b in a)this.k[b]=a[b];a=this.k.imageHeight+"px";this.qc(this.k.anchor);this.C.style.width=isNaN(Number(this.k.maxWidth))===o?this.k.maxWidth:this.k.maxWidth+"px";this.C.style.height=a;this.qk.style.height=a;this.ci.style.height=a;this.jg={height:this.k.imageHeight,width:this.k.imageHeight*Hg};this.pk.style.height=this.jg.height-6+"px";this.pk.style.width=this.jg.width-6+"px";this.Uy(this.P.Zb(),o)},ra:function(a){this.P=a;this.Fs();this.dR();this.tZ(); this.Uy(a.Zb())},Fs:function(){var a=this.k.imageHeight+"px";this.C=H("div");var b=this.C.style;b.cssText="background:rgb(37,37,37);background:rgba(37,37,37,0.9);";b.position="absolute";b.zIndex="2000";b.width=isNaN(Number(this.k.maxWidth))===o?this.k.maxWidth:this.k.maxWidth+"px";b.padding="8px 0";b.visibility="hidden";b.height=a;this.qk=H("div");b=this.qk.style;b.position="absolute";b.overflow="hidden";b.width="100%";b.height=a;this.ci=H("div");b=this.ci.style;b.height=a;this.qk.appendChild(this.ci); this.C.appendChild(this.qk);this.P.C.appendChild(this.C);this.pk=H("div",{"class":"pano_photo_item_seleted"});this.pk.style.height=this.jg.height-6+"px";this.pk.style.width=this.jg.width-6+"px";this.qc(this.k.anchor)},lI:function(a){for(var b=this.lk,c=b.length-1;0<=c;c--)if(b[c].panoId==a)return c;return-1},Uy:function(a,b){if(b||!this.lk[this.Xc]||!(this.lk[this.Xc].panoId==a&&3!==this.lk[this.Xc].recoType)){var c=this,d=this.lI(a);!b&&-1!==d&&this.lk[d]&&3!==this.lk[d].recoType?this.hq(d):this.LY(function(a){for(var b= {},d,i,j=q,l=[],m=0,n=a.length;m<n;m++)d=a[m].catlog,i=a[m].floor,k!==d&&(""===d&&k!==i?(j=o,b[i]||(b[i]=[]),b[i].push(a[m])):(b[Ig[d]]||(b[Ig[d]]=[]),b[Ig[d]].push(a[m])));for(var s in b)j?l.push({data:s+"F",index:s}):l.push({data:Jg[s],index:s});c.DH=b;c.Wi=l;c.Sl(a);0==a.length?c.U():c.show()})}},dX:function(){if(!this.Ti){var a=this.zY(this.Wi),b=H("div");b.style.cssText=["width:"+134*this.Wi.length+"px;","overflow:hidden;-ms-user-select:none;-moz-user-select:none;-webkit-user-select:none;"].join(""); b.innerHTML=a;a=H("div");a.appendChild(b);a.style.cssText="position:absolute;top:-25px;background:rgb(37,37,37);background:rgba(37,37,37,0.9);border-bottom:1px solid #4e596a;width:100%;line-height:25px;height:25px;overflow:scroll;outline:0";new Fg(a,{Vo:q,Cy:o,ui:q,Ji:q,Jn:q,hF:o,bx:o,dy:o});this.C.appendChild(a);for(var c=this,d=b.getElementsByTagName("span"),e=0,f=d.length;e<f;e++)b=d[e],x.M(b,"click",function(){if(this.getAttribute("dataindex")){c.Sl(c.DH[this.getAttribute("dataindex")]);for(var a= 0,b=d.length;a<b;a++)d[a].style.color="#FFFFFF";this.style.color="#3383FF"}});this.Ti=a}},aX:function(){if(this.Ti)a=this.bM(this.Wi),this.tR.innerHTML=a;else{var a=this.bM(this.Wi),b=H("ul"),c=this;b.style.cssText="list-style: none;padding:0px;margin:0px;display:block;width:60px;position:absolute;top:7px";b.innerHTML=a;x.M(b,"click",function(a){if(a=(a.srcElement||a.target).getAttribute("dataindex")){c.Sl(c.DH[a]);for(var d=b.getElementsByTagName("li"),e=0,f=d.length;e<f;e++)d[e].childNodes[0].getAttribute("dataindex")=== a?x.K.Ta(d[e],"pano_catlogLiActive"):x.K.Tb(d[e],"pano_catlogLiActive")}});var a=H("div"),d=H("a"),e=H("span"),f=H("a"),g=H("span"),i=["background:url("+J.pa+"panorama/catlog_icon.png) no-repeat;","display:block;width:10px;height:7px;margin:0 auto;"].join("");e.style.cssText=i+"background-position:-18px 0;";d.style.cssText="background:#1C1C1C;display:block;position:absolute;width:58px;";g.style.cssText=i+"background-position:0 0;";f.style.cssText="background:#1C1C1C;display:block;position:absolute;width:58px;"; f.style.top=this.k.imageHeight-7+"px";a.style.cssText="position:absolute;top:0px;left:0px;width:60px;";d.appendChild(e);f.appendChild(g);x.M(d,"mouseover",function(){var a=parseInt(b.style.top,10);7!==a&&(e.style.backgroundPosition="-27px 0");new Db({Hc:60,jc:Eb.$s,duration:300,va:function(c){b.style.top=a+(7-a)*c+"px"}})});x.M(d,"mouseout",function(){e.style.backgroundPosition="-18px 0"});x.M(f,"mouseover",function(){var a=parseInt(b.style.top,10),d=c.k.imageHeight-14;if(!(parseInt(b.offsetHeight, 10)<d)){var e=d-parseInt(b.offsetHeight,10)+7;e!==a&&(g.style.backgroundPosition="-9px 0");new Db({Hc:60,jc:Eb.$s,duration:300,va:function(c){b.style.top=a+(e-a)*c+"px"}})}});x.M(f,"mouseout",function(){g.style.backgroundPosition="0 0"});a.appendChild(d);a.appendChild(f);d=H("div");d.style.cssText=["position:absolute;z-index:2001;left:20px;","height:"+this.k.imageHeight+"px;","width:62px;overflow:hidden;background:rgb(37,37,37);background:rgba(37,37,37,0.9);"].join("");d.appendChild(b);d.appendChild(a); this.Ti=d;this.tR=b;this.C.appendChild(d)}},bX:function(){if(this.Wi&&!(0>=this.Wi.length)){var a=H("div");a.innerHTML=this.AA;a.style.cssText="position:absolute;background:#252525";this.C.appendChild(a);this.dt=a;this.Pc.kg.style.left=this.jg.width+8+"px";this.Ti&&(this.Ti.style.left=parseInt(this.Ti.style.left,10)+this.jg.width+8+"px");var b=this;x.M(a,"click",function(){b.P.rc(b.MX)})}},Sl:function(a){this.lk=a;this.k.showCatalog&&(0<this.Wi.length?(db()?this.aX():this.dX(),this.Pc.offsetLeft= 60):(this.dt&&(this.C.removeChild(this.dt),this.dt=p,this.Pc.kg.style.left="0px"),this.Ti&&(this.C.removeChild(this.Ti),this.Ti=p),this.Pc.offsetLeft=0));var b=this.tY(a);db()&&(this.Wi&&0<this.Wi.length&&this.k.showExit&&this.AA)&&(this.Pc.offsetLeft+=this.jg.width+8,this.dt?this.dt.innerHTML=this.AA:this.bX());this.ci.innerHTML=b;this.ci.style.width=(this.jg.width+8)*a.length+8+"px";a=this.C.offsetWidth;b=this.ci.offsetWidth;this.Pc.lt&&(b+=this.Pc.lt());b<a-2*this.Pc.Ni-this.Pc.offsetLeft?this.C.style.width= b+this.Pc.offsetLeft+"px":(this.C.style.width=isNaN(Number(this.k.maxWidth))===o?this.k.maxWidth:this.k.maxWidth+"px",b<this.C.offsetWidth-2*this.Pc.Ni-this.Pc.offsetLeft&&(this.C.style.width=b+this.Pc.offsetLeft+"px"));this.Pc.refresh();this.TB=this.ci.children;this.ci.appendChild(this.pk);this.pk.style.left="-100000px";a=this.lI(this.P.Zb(),this.C2);-1!==a&&this.hq(a)},zY:function(a){for(var b="",c,d=0,e=a.length;d<e;d++)c='<div style="color:white;opacity:0.5;margin:0 35px;float:left;text-align: center"><span  dataIndex="'+ a[d].index+'">'+a[d].data+"</span></div>",b+=c;return b},bM:function(a){for(var b="",c,d=0,e=a.length;d<e;d++)c='<li class="pano_catlogLi"><span style="display:block;width:100%;" dataIndex="'+a[d].index+'">'+a[d].data+"</span></li>",b+=c;return b},tY:function(a){for(var b,c,d,e,f=[],g=this.jg.height,i=this.jg.width,j=0;j<a.length;j++)b=a[j],recoType=b.recoType,d=b.panoId,e=b.name,c=b.heading,b=b.pitch,c=Xf.nM(d,c,b,198,108),b='<a href="javascript:void(0);" class="pano_photo_item" data-index="'+j+ '"><img style="width:'+(i-2)+"px;height:"+(g-2)+'px;" data-index="'+j+'" name="'+e+'" src="'+c+'" alt="'+e+'"/><span class="pano_photo_decs" data-index="'+j+'" style="width:'+i+"px;font-size:"+Math.floor(g/6)+"px; line-height:"+Math.floor(g/6)+'px;"><em class="pano_poi_'+recoType+'"></em>'+e+"</span></a>",3===recoType?db()?(this.AA=b,this.MX=d,a.splice(j,1),j--):(b='<a href="javascript:void(0);" class="pano_photo_item" data-index="'+j+'"><img style="width:'+(i-2)+"px;height:"+(g-2)+'px;" data-index="'+ j+'" name="'+e+'" src="'+c+'" alt="'+e+'"/><div style="background:rgba(37,37,37,0.5);position:absolute;top:0px;left:0px;width:100%;height:100%;text-align: center;line-height:'+this.k.imageHeight+'px;" data-index="'+j+'"><img src="'+J.pa+'panorama/photoexit.png" style="border:none;vertical-align:middle;" data-index="'+j+'" alt=""/></div></a>',f.push(b)):f.push(b);return f.join("")},LY:function(a){var b=this,c=this.P.Zb();c&&this.Wl.$x(c,function(d){b.P.Zb()===c&&a(d)})},qc:function(a){if(!fb(a)||isNaN(a)|| a<Ld||3<a)a=this.defaultAnchor;var b=this.C,c=this.k.offset.width,d=this.k.offset.height;b.style.left=b.style.top=b.style.right=b.style.bottom="auto";switch(a){case Ld:b.style.top=d+"px";b.style.left=c+"px";break;case Md:b.style.top=d+"px";b.style.right=c+"px";break;case Nd:b.style.bottom=d+"px";b.style.left=c+"px";break;case 3:b.style.bottom=d+"px",b.style.right=c+"px"}},dR:function(){this.bR()},bR:function(){var a=this;x.M(this.C,"touchstart",function(a){a.stopPropagation()});x.M(this.qk,"click", function(b){if((b=(b.srcElement||b.target).getAttribute("data-index"))&&b!=a.Xc)a.hq(b),a.P.rc(a.lk[b].panoId)});x.M(this.ci,"mouseover",function(b){b=(b.srcElement||b.target).getAttribute("data-index");b!==p&&a.$K(b,o)});this.P.addEventListener("size_changed",function(){isNaN(Number(a.k.maxWidth))&&a.Jj({maxWidth:a.k.maxWidth})})},hq:function(a){this.pk.style.left=this.TB[a].offsetLeft+8+"px";this.pk.setAttribute("data-index",this.TB[a].getAttribute("data-index"));this.Xc=a;this.$K(a)},$K:function(a, b){var c=this.jg.width+8,d=0;this.Pc.lt&&(d=this.Pc.lt()/2);var e=this.qk.offsetWidth-2*d,f=this.ci.offsetLeft||this.Pc.x,f=f-d,g=-a*c;g>f&&this.Pc.scrollTo(g+d);c=g-c;f-=e;c<f&&(!b||b&&8<g-f)&&this.Pc.scrollTo(c+e+d)},tZ:function(){this.Pc=K()?new Fg(this.qk,{Vo:q,Cy:o,ui:q,Ji:q,Jn:q,hF:o,bx:o,dy:o}):new Kg(this.qk)},U:function(){this.C.style.visibility="hidden"},show:function(){this.C.style.visibility="visible"}}); function Kg(a){this.C=a;this.$g=a.children[0];this.is=p;this.Ni=20;this.offsetLeft=0;this.ra()} Kg.prototype={ra:function(){this.$g.style.position="relative";this.refresh();this.Fs();this.nm()},refresh:function(){this.vo=this.C.offsetWidth-this.lt();this.qB=-(this.$g.offsetWidth-this.vo-this.Ni);this.Tv=this.Ni+this.offsetLeft;this.$g.style.left=this.Tv+"px";this.$g.children[0]&&(this.is=this.$g.children[0].offsetWidth);this.kg&&(this.kg.children[0].style.marginTop=this.bs.children[0].style.marginTop=this.kg.offsetHeight/2-this.kg.children[0].offsetHeight/2+"px")},lt:function(){return 2*this.Ni}, Fs:function(){this.jw=H("div");this.jw.innerHTML='<a class="pano_photo_arrow_l" style="background:rgb(37,37,37);background:rgba(37,37,37,0.9);" href="javascript:void(0)" title="\u4e0a\u4e00\u9875"><span class="pano_arrow_l"></span></a><a class="pano_photo_arrow_r" style="background:rgb(37,37,37);background:rgba(37,37,37,0.9);" href="javascript:void(0)" title="\u4e0b\u4e00\u9875"><span class="pano_arrow_r"></span></a>';this.kg=this.jw.children[0];this.bs=this.jw.children[1];this.C.appendChild(this.jw); this.kg.children[0].style.marginTop=this.bs.children[0].style.marginTop=this.kg.offsetHeight/2-this.kg.children[0].offsetHeight/2+"px"},nm:function(){var a=this;x.M(this.kg,"click",function(){a.scrollTo(a.$g.offsetLeft+a.vo)});x.M(this.bs,"click",function(){a.scrollTo(a.$g.offsetLeft-a.vo)})},MV:function(){x.K.Tb(this.kg,"pano_arrow_disable");x.K.Tb(this.bs,"pano_arrow_disable");var a=this.$g.offsetLeft;a>=this.Tv&&x.K.Ta(this.kg,"pano_arrow_disable");a-this.vo<=this.qB&&x.K.Ta(this.bs,"pano_arrow_disable")}, scrollTo:function(a){a=a<this.$g.offsetLeft?Math.ceil((a-this.Ni-this.vo)/this.is)*this.is+this.vo+this.Ni-8:Math.ceil((a-this.Ni)/this.is)*this.is+this.Ni;a<this.qB?a=this.qB:a>this.Tv&&(a=this.Tv);var b=this.$g.offsetLeft,c=this;new Db({Hc:60,jc:Eb.$s,duration:300,va:function(d){c.$g.style.left=b+(a-b)*d+"px"},finish:function(){c.MV()}})}};B.Map=Qa;B.Hotspot=rb;B.MapType=Ne;B.Point=O;B.Pixel=Q;B.Size=M;B.Bounds=ob;B.TileLayer=ze;B.Projection=Zd;B.MercatorProjection=R;B.PerspectiveProjection=qb;B.Copyright=function(a,b,c){this.id=a;this.bb=b;this.content=c};B.Overlay=be;B.Label=le;B.GroundOverlay=ne;B.PointCollection=re;B.Marker=W;B.Icon=fe;B.IconSequence=je;B.Symbol=ge;B.Polyline=ve;B.Polygon=ue;B.InfoWindow=ke;B.Circle=we;B.Control=Kd;B.NavigationControl=sb;B.GeolocationControl=Od;B.OverviewMapControl=ub;B.CopyrightControl=Pd; B.ScaleControl=tb;B.MapTypeControl=vb;B.CityListControl=Qd;B.PanoramaControl=Sd;B.TrafficLayer=Je;B.CustomLayer=wb;B.ContextMenu=Vd;B.MenuItem=Yd;B.LocalSearch=kb;B.TransitRoute=sf;B.DrivingRoute=vf;B.WalkingRoute=wf;B.Autocomplete=Gf;B.RouteSearch=Af;B.Geocoder=Bf;B.LocalCity=Df;B.Geolocation=Geolocation;B.Convertor=ae;B.BusLineSearch=Ff;B.Boundary=Ef;B.VectorCloudLayer=He;B.VectorTrafficLayer=Ie;B.Panorama=Wa;B.PanoramaLabel=Mf;B.PanoramaService=Ud;B.PanoramaCoverageLayer=Td; B.PanoramaFlashInterface=Vf;function U(a,b){for(var c in b)a[c]=b[c]}U(window,{BMap:B,_jsload2:function(a,b){ja.oz.DZ&&ja.oz.set(a,b);bb.DW(a,b)},BMAP_API_VERSION:"2.0"});var Lg=Qa.prototype; U(Lg,{getBounds:Lg.Md,getCenter:Lg.pc,getMapType:Lg.oa,getSize:Lg.wb,setSize:Lg.Fe,getViewport:Lg.Bt,getZoom:Lg.ga,centerAndZoom:Lg.Id,panTo:Lg.Ci,panBy:Lg.Dg,setCenter:Lg.$f,setCurrentCity:Lg.XF,setMapType:Lg.Jg,setViewport:Lg.Gh,setZoom:Lg.Oc,highResolutionEnabled:Lg.iy,zoomTo:Lg.Mg,zoomIn:Lg.DG,zoomOut:Lg.EG,addHotspot:Lg.Pw,removeHotspot:Lg.B_,clearHotspots:Lg.rm,checkResize:Lg.GW,addControl:Lg.em,removeControl:Lg.tO,getContainer:Lg.Fa,addContextMenu:Lg.No,removeContextMenu:Lg.Xp,addOverlay:Lg.Ka, removeOverlay:Lg.Ub,clearOverlays:Lg.XK,openInfoWindow:Lg.Mb,closeInfoWindow:Lg.Wc,pointToOverlayPixel:Lg.$e,overlayPixelToPoint:Lg.gO,getInfoWindow:Lg.oh,getOverlays:Lg.Xx,getPanes:function(){return{floatPane:this.ae.XD,markerMouseTarget:this.ae.kF,floatShadow:this.ae.UL,labelPane:this.ae.cF,markerPane:this.ae.AN,markerShadow:this.ae.BN,mapPane:this.ae.Tt,vertexPane:this.ae.NP}},addTileLayer:Lg.eh,removeTileLayer:Lg.Dh,pixelToPoint:Lg.Eg,pointToPixel:Lg.Vp,setFeatureStyle:Lg.gq,selectBaseElement:Lg.z5, setMapStyle:Lg.ou,enable3DBuilding:Lg.fp,disable3DBuilding:Lg.rX,getPanorama:Lg.Jm,setBrowserContextmenu:Lg.a0});var Mg=Ne.prototype;U(Mg,{getTileLayer:Mg.WY,getMinZoom:Mg.qp,getMaxZoom:Mg.Im,getProjection:Mg.Mm,getTextColor:Mg.Pm,getTips:Mg.At});U(window,{BMAP_NORMAL_MAP:Ta,BMAP_PERSPECTIVE_MAP:Xa,BMAP_SATELLITE_MAP:ab,BMAP_HYBRID_MAP:Za});var Ng=R.prototype;U(Ng,{lngLatToPoint:Ng.wy,pointToLngLat:Ng.Hj});var Og=qb.prototype;U(Og,{lngLatToPoint:Og.wy,pointToLngLat:Og.Hj});var Pg=ob.prototype; U(Pg,{equals:Pg.cb,containsPoint:Pg.kx,containsBounds:Pg.SW,intersects:Pg.Kt,extend:Pg.extend,getCenter:Pg.pc,isEmpty:Pg.Fj,getSouthWest:Pg.ze,getNorthEast:Pg.sf,toSpan:Pg.rG});var Qg=be.prototype;U(Qg,{isVisible:Qg.Vf,show:Qg.show,hide:Qg.U});be.getZIndex=be.Rm;var Rg=pb.prototype;U(Rg,{openInfoWindow:Rg.Mb,closeInfoWindow:Rg.Wc,enableMassClear:Rg.tj,disableMassClear:Rg.tX,show:Rg.show,hide:Rg.U,getMap:Rg.Sx,addContextMenu:Rg.No,removeContextMenu:Rg.Xp});var Sg=W.prototype; U(Sg,{setIcon:Sg.Vb,getIcon:Sg.pp,setPosition:Sg.ta,getPosition:Sg.ia,setOffset:Sg.bf,getOffset:Sg.Sf,getLabel:Sg.pE,setLabel:Sg.xn,setTitle:Sg.Dc,setTop:Sg.Gi,enableDragging:Sg.Hb,disableDragging:Sg.mD,setZIndex:Sg.tu,getMap:Sg.Sx,setAnimation:Sg.wn,setShadow:Sg.fz,hide:Sg.U,setRotation:Sg.dz,getRotation:Sg.rM});U(window,{BMAP_ANIMATION_DROP:1,BMAP_ANIMATION_BOUNCE:2});var Tg=le.prototype; U(Tg,{setStyle:Tg.cd,setStyles:Tg.Fi,setContent:Tg.bd,setPosition:Tg.ta,getPosition:Tg.ia,setOffset:Tg.bf,getOffset:Tg.Sf,setTitle:Tg.Dc,setZIndex:Tg.tu,getMap:Tg.Sx,getContent:Tg.Hk});var Ug=fe.prototype;U(Ug,{setImageUrl:Ug.JO,setSize:Ug.Fe,setAnchor:Ug.qc,setImageOffset:Ug.nu,setImageSize:Ug.g0,setInfoWindowAnchor:Ug.j0,setPrintImageUrl:Ug.t0});var Vg=ke.prototype; U(Vg,{redraw:Vg.ne,setTitle:Vg.Dc,setContent:Vg.bd,getContent:Vg.Hk,getPosition:Vg.ia,enableMaximize:Vg.jh,disableMaximize:Vg.zx,isOpen:Vg.Va,setMaxContent:Vg.pu,maximize:Vg.Ay,enableAutoPan:Vg.at});var Wg=de.prototype; U(Wg,{getPath:Wg.xe,setPath:Wg.oe,setPositionAt:Wg.zn,getStrokeColor:Wg.RY,setStrokeWeight:Wg.lq,getStrokeWeight:Wg.uM,setStrokeOpacity:Wg.jq,getStrokeOpacity:Wg.SY,setFillOpacity:Wg.mu,getFillOpacity:Wg.oY,setStrokeStyle:Wg.kq,getStrokeStyle:Wg.tM,getFillColor:Wg.nY,getBounds:Wg.Md,enableEditing:Wg.qf,disableEditing:Wg.sX,getEditing:Wg.kY});var Xg=we.prototype;U(Xg,{setCenter:Xg.$f,getCenter:Xg.pc,getRadius:Xg.pM,setRadius:Xg.yf});var Yg=ue.prototype;U(Yg,{getPath:Yg.xe,setPath:Yg.oe,setPositionAt:Yg.zn}); var Zg=rb.prototype;U(Zg,{getPosition:Zg.ia,setPosition:Zg.ta,getText:Zg.zE,setText:Zg.su});O.prototype.equals=O.prototype.cb;Q.prototype.equals=Q.prototype.cb;M.prototype.equals=M.prototype.cb;U(window,{BMAP_ANCHOR_TOP_LEFT:Ld,BMAP_ANCHOR_TOP_RIGHT:Md,BMAP_ANCHOR_BOTTOM_LEFT:Nd,BMAP_ANCHOR_BOTTOM_RIGHT:3});var $g=Kd.prototype;U($g,{setAnchor:$g.qc,getAnchor:$g.cE,setOffset:$g.bf,getOffset:$g.Sf,show:$g.show,hide:$g.U,isVisible:$g.Vf,toString:$g.toString});var ah=sb.prototype; U(ah,{getType:ah.zp,setType:ah.An});U(window,{BMAP_NAVIGATION_CONTROL_LARGE:0,BMAP_NAVIGATION_CONTROL_SMALL:1,BMAP_NAVIGATION_CONTROL_PAN:2,BMAP_NAVIGATION_CONTROL_ZOOM:3});var bh=ub.prototype;U(bh,{changeView:bh.ue,setSize:bh.Fe,getSize:bh.wb});var ch=tb.prototype;U(ch,{getUnit:ch.$Y,setUnit:ch.eG});U(window,{BMAP_UNIT_METRIC:"metric",BMAP_UNIT_IMPERIAL:"us"});var dh=Pd.prototype;U(dh,{addCopyright:dh.Ow,removeCopyright:dh.IF,getCopyright:dh.Fm,getCopyrightCollection:dh.jE}); U(window,{BMAP_MAPTYPE_CONTROL_HORIZONTAL:Rd,BMAP_MAPTYPE_CONTROL_DROPDOWN:1,BMAP_MAPTYPE_CONTROL_MAP:2});var eh=ze.prototype;U(eh,{getMapType:eh.oa,getCopyright:eh.Fm,isTransparentPng:eh.Qt});var fh=Vd.prototype;U(fh,{addItem:fh.Qw,addSeparator:fh.tC,removeSeparator:fh.KF});var gh=Yd.prototype;U(gh,{setText:gh.su});var hh=Y.prototype; U(hh,{getStatus:hh.Nm,setSearchCompleteCallback:hh.cG,getPageCapacity:hh.Ye,setPageCapacity:hh.iq,setLocation:hh.yn,disableFirstResultSelection:hh.nD,enableFirstResultSelection:hh.MD,gotoPage:hh.Sm,searchNearby:hh.dq,searchInBounds:hh.vn,search:hh.search});U(window,{BMAP_STATUS_SUCCESS:0,BMAP_STATUS_CITY_LIST:1,BMAP_STATUS_UNKNOWN_LOCATION:2,BMAP_STATUS_UNKNOWN_ROUTE:3,BMAP_STATUS_INVALID_KEY:4,BMAP_STATUS_INVALID_REQUEST:5,BMAP_STATUS_PERMISSION_DENIED:6,BMAP_STATUS_SERVICE_UNAVAILABLE:7,BMAP_STATUS_TIMEOUT:8}); U(window,{BMAP_POI_TYPE_NORMAL:0,BMAP_POI_TYPE_BUSSTOP:1,BMAP_POI_TYPE_BUSLINE:2,BMAP_POI_TYPE_SUBSTOP:3,BMAP_POI_TYPE_SUBLINE:4});U(window,{BMAP_TRANSIT_POLICY_LEAST_TIME:0,BMAP_TRANSIT_POLICY_LEAST_TRANSFER:2,BMAP_TRANSIT_POLICY_LEAST_WALKING:3,BMAP_TRANSIT_POLICY_AVOID_SUBWAYS:4,BMAP_LINE_TYPE_BUS:0,BMAP_LINE_TYPE_SUBWAY:1,BMAP_LINE_TYPE_FERRY:2});var ih=rf.prototype;U(ih,{clearResults:ih.Te});tf=sf.prototype;U(tf,{setPolicy:tf.ru,toString:tf.toString,setPageCapacity:tf.iq}); U(window,{BMAP_DRIVING_POLICY_LEAST_TIME:0,BMAP_DRIVING_POLICY_LEAST_DISTANCE:1,BMAP_DRIVING_POLICY_AVOID_HIGHWAYS:2});U(window,{BMAP_MODE_DRIVING:"driving",BMAP_MODE_TRANSIT:"transit",BMAP_MODE_WALKING:"walking",BMAP_MODE_NAVIGATION:"navigation"});var jh=Af.prototype;U(jh,{routeCall:jh.EO});U(window,{BMAP_HIGHLIGHT_STEP:1,BMAP_HIGHLIGHT_ROUTE:2});U(window,{BMAP_ROUTE_TYPE_DRIVING:cf,BMAP_ROUTE_TYPE_WALKING:Ye});U(window,{BMAP_ROUTE_STATUS_NORMAL:df,BMAP_ROUTE_STATUS_EMPTY:1,BMAP_ROUTE_STATUS_ADDRESS:2}); var kh=vf.prototype;U(kh,{setPolicy:kh.ru});var lh=Gf.prototype;U(lh,{show:lh.show,hide:lh.U,setTypes:lh.dG,setLocation:lh.yn,search:lh.search,setInputValue:lh.az});U(wb.prototype,{});var mh=Ef.prototype;U(mh,{get:mh.get});U(Td.prototype,{});U(lb.prototype,{});U(window,{BMAP_POINT_DENSITY_HIGH:200,BMAP_POINT_DENSITY_MEDIUM:Me,BMAP_POINT_DENSITY_LOW:50});U(window,{BMAP_POINT_SHAPE_STAR:1,BMAP_POINT_SHAPE_WATERDROP:2,BMAP_POINT_SHAPE_CIRCLE:oe,BMAP_POINT_SHAPE_SQUARE:4,BMAP_POINT_SHAPE_RHOMBUS:5}); U(window,{BMAP_POINT_SIZE_TINY:1,BMAP_POINT_SIZE_SMALLER:2,BMAP_POINT_SIZE_SMALL:3,BMAP_POINT_SIZE_NORMAL:pe,BMAP_POINT_SIZE_BIG:5,BMAP_POINT_SIZE_BIGGER:6,BMAP_POINT_SIZE_HUGE:7}); U(window,{BMap_Symbol_SHAPE_CAMERA:11,BMap_Symbol_SHAPE_WARNING:12,BMap_Symbol_SHAPE_SMILE:13,BMap_Symbol_SHAPE_CLOCK:14,BMap_Symbol_SHAPE_POINT:9,BMap_Symbol_SHAPE_PLANE:10,BMap_Symbol_SHAPE_CIRCLE:1,BMap_Symbol_SHAPE_RECTANGLE:2,BMap_Symbol_SHAPE_RHOMBUS:3,BMap_Symbol_SHAPE_STAR:4,BMap_Symbol_SHAPE_BACKWARD_CLOSED_ARROW:5,BMap_Symbol_SHAPE_FORWARD_CLOSED_ARROW:6,BMap_Symbol_SHAPE_BACKWARD_OPEN_ARROW:7,BMap_Symbol_SHAPE_FORWARD_OPEN_ARROW:8});U(window,{BMAP_CONTEXT_MENU_ICON_ZOOMIN:Wd,BMAP_CONTEXT_MENU_ICON_ZOOMOUT:Xd}); U(window,{BMAP_SYS_DRAWER:La,BMAP_SVG_DRAWER:1,BMAP_VML_DRAWER:2,BMAP_CANVAS_DRAWER:3,BMAP_SVG_DRAWER_FIRST:4});B.Tw();B.q1(); })()
window.TILE_VERSION={"ditu":{"normal":{"version":"088","updateDate":"20261102"},"satellite":{"version":"009","updateDate":"20261102"},"normalTraffic":{"version":"081","updateDate":"20261102"},"satelliteTraffic":{"version":"083","updateDate":"20261102"},"mapJS":{"version":"104","updateDate":"20261102"},"satelliteStreet":{"version":"083","updateDate":"20261102"},"earthVector":{"version":"001","updateDate":"20261102"}},"webapp":{"high_normal":{"version":"001","updateDate":"20261102"},"lower_normal":{"version":"002","updateDate":"20261102"}},"api_for_mobile":{"vector":{"version":"002","updateDate":"20261102"},"vectorIcon":{"version":"002","updateDate":"20261102"}}};window.BMAP_AUTHENTIC_KEY="Y2aJXiswwPxy6mwFs1z9c7U5gwX9WfUN";(function(){var Twindow=window,Tdocument=document,TMath=Math,TRegExp=RegExp,TparseInt=parseInt,TparseFloat=parseFloat,Tprototype="prototype",TappendChild="appendChild",TremoveChild="removeChild",Tlength="length",Textend="extend",Twidth="width",Theight="height",ToffsetX="offsetX",ToffsetY="offsetY",TaddEventListener="addEventListener",TremoveEventListener="removeEventListener",Tstyle="style",Tanchor="anchor",TparentNode="parentNode",Tposition="position";var T,baidu=T=baidu||{version:"1.3.4"};baidu.guid="$BAIDU$";window[baidu.guid]=window[baidu.guid]||{};baidu.object=baidu.object||{};baidu[Textend]=baidu.object[Textend]=function(target,source){for(var p in source)if(source.hasOwnProperty(p))target[p]=source[p];return target};baidu.dom=baidu.dom||{};baidu.dom.g=function(id){if("string"==typeof id||id instanceof String)return Tdocument.getElementById(id);else if(id&&id.nodeName&&(id.nodeType==1||id.nodeType==9))return id;return null}; baidu.g=baidu.G=baidu.dom.g;baidu.dom.hide=function(element){element=baidu.dom.g(element);element.style.display="none";return element};baidu.hide=baidu.dom.hide;baidu.lang=baidu.lang||{};baidu.lang.isString=function(source){return"[object String]"==Object[Tprototype].toString.call(source)};baidu.isString=baidu.lang.isString;baidu.dom._g=function(id){if(baidu.lang.isString(id))return Tdocument.getElementById(id);return id};baidu._g=baidu.dom._g; baidu.dom.contains=function(container,contained){var g=baidu.dom._g;container=g(container);contained=g(contained);return container.contains?container!=contained&&container.contains(contained):!!(container.compareDocumentPosition(contained)&16)};baidu.browser=baidu.browser||{};if(/msie (\d+\.\d)/i.test(navigator.userAgent))baidu.browser.ie=baidu.ie=Tdocument.documentMode||+TRegExp["$1"]; baidu.dom._NAME_ATTRS=function(){var result={"cellpadding":"cellPadding","cellspacing":"cellSpacing","colspan":"colSpan","rowspan":"rowSpan","valign":"vAlign","usemap":"useMap","frameborder":"frameBorder"};if(baidu.browser.ie<8){result["for"]="htmlFor";result["class"]="className"}else{result["htmlFor"]="for";result["className"]="class"}return result}(); baidu.dom.setAttr=function(element,key,value){element=baidu.dom.g(element);if("style"==key)element.style.cssText=value;else{key=baidu.dom._NAME_ATTRS[key]||key;element.setAttribute(key,value)}return element};baidu.setAttr=baidu.dom.setAttr;baidu.dom.setAttrs=function(element,attributes){element=baidu.dom.g(element);for(var key in attributes)baidu.dom.setAttr(element,key,attributes[key]);return element};baidu.setAttrs=baidu.dom.setAttrs;baidu.string=baidu.string||{}; (function(){var trimer=new TRegExp("(^[\\s\\t\\xa0\\u3000]+)|([\\u3000\\xa0\\s\\t]+$)","g");baidu.string.trim=function(source){return String(source).replace(trimer,"")}})();baidu.trim=baidu.string.trim; baidu.string.format=function(source,opts){source=String(source);var data=Array[Tprototype].slice.call(arguments,1),toString=Object[Tprototype].toString;if(data[Tlength]){data=data[Tlength]==1?opts!==null&&/\[object Array\]|\[object Object\]/.test(toString.call(opts))?opts:data:data;return source.replace(/#\{(.+?)\}/g,function(match,key){var replacer=data[key];if("[object Function]"==toString.call(replacer))replacer=replacer(key);return"undefined"==typeof replacer?"":replacer})}return source}; baidu.format=baidu.string.format;baidu.dom.removeClass=function(element,className){element=baidu.dom.g(element);var oldClasses=element.className.split(/\s+/),newClasses=className.split(/\s+/),lenOld,lenDel=newClasses[Tlength],j,i=0;for(;i<lenDel;++i)for(j=0,lenOld=oldClasses[Tlength];j<lenOld;++j)if(oldClasses[j]==newClasses[i]){oldClasses.splice(j,1);break}element.className=oldClasses.join(" ");return element};baidu.removeClass=baidu.dom.removeClass; baidu.dom.insertHTML=function(element,position,html){element=baidu.dom.g(element);var range,begin;if(element.insertAdjacentHTML)element.insertAdjacentHTML(position,html);else{range=element.ownerDocument.createRange();position=position.toUpperCase();if(position=="AFTERBEGIN"||position=="BEFOREEND"){range.selectNodeContents(element);range.collapse(position=="AFTERBEGIN")}else{begin=position=="BEFOREBEGIN";range[begin?"setStartBefore":"setEndAfter"](element);range.collapse(begin)}range.insertNode(range.createContextualFragment(html))}return element}; baidu.insertHTML=baidu.dom.insertHTML;baidu.dom.show=function(element){element=baidu.dom.g(element);element.style.display="";return element};baidu.show=baidu.dom.show;baidu.dom.getDocument=function(element){element=baidu.dom.g(element);return element.nodeType==9?element:element.ownerDocument||element.document}; baidu.dom.addClass=function(element,className){element=baidu.dom.g(element);var classArray=className.split(/\s+/),result=element.className,classMatch=" "+result+" ",i=0,l=classArray[Tlength];for(;i<l;i++)if(classMatch.indexOf(" "+classArray[i]+" ")<0)result+=" "+classArray[i];element.className=result;return element};baidu.addClass=baidu.dom.addClass;baidu.dom._styleFixer=baidu.dom._styleFixer||{};baidu.dom._styleFilter=baidu.dom._styleFilter||[]; baidu.dom._styleFilter.filter=function(key,value,method){for(var i=0,filters=baidu.dom._styleFilter,filter;filter=filters[i];i++)if(filter=filter[method])value=filter(key,value);return value};baidu.string.toCamelCase=function(source){if(source.indexOf("-")<0&&source.indexOf("_")<0)return source;return source.replace(/[-_][^-_]/g,function(match){return match.charAt(1).toUpperCase()})}; baidu.dom.getStyle=function(element,key){var dom=baidu.dom;element=dom.g(element);key=baidu.string.toCamelCase(key);var value=element.style[key];if(!value){var fixer=dom._styleFixer[key],style=element.currentStyle||(baidu.browser.ie?element[Tstyle]:getComputedStyle(element,null));value=fixer&&fixer.get?fixer.get(element,style):style[fixer||key]}if(fixer=dom._styleFilter)value=fixer.filter(key,value,"get");return value};baidu.getStyle=baidu.dom.getStyle; if(/opera\/(\d+\.\d)/i.test(navigator.userAgent))baidu.browser.opera=+TRegExp["$1"];baidu.browser.isWebkit=/webkit/i.test(navigator.userAgent);baidu.browser.isGecko=/gecko/i.test(navigator.userAgent)&&!/like gecko/i.test(navigator.userAgent);baidu.browser.isStrict=Tdocument.compatMode=="CSS1Compat"; baidu.dom.getPosition=function(element){element=baidu.dom.g(element);var doc=baidu.dom.getDocument(element),browser=baidu.browser,getStyle=baidu.dom.getStyle,BUGGY_GECKO_BOX_OBJECT=browser.isGecko>0&&doc.getBoxObjectFor&&getStyle(element,"position")=="absolute"&&(element.style.top===""||element.style.left===""),pos={"left":0,"top":0},viewport=browser.ie&&!browser.isStrict?doc.body:doc.documentElement,parent,box;if(element==viewport)return pos;if(element.getBoundingClientRect){box=element.getBoundingClientRect(); pos.left=TMath.floor(box.left)+TMath.max(doc.documentElement.scrollLeft,doc.body.scrollLeft);pos.top=TMath.floor(box.top)+TMath.max(doc.documentElement.scrollTop,doc.body.scrollTop);pos.left-=doc.documentElement.clientLeft;pos.top-=doc.documentElement.clientTop;var htmlDom=doc.body,htmlBorderLeftWidth=TparseInt(getStyle(htmlDom,"borderLeftWidth")),htmlBorderTopWidth=TparseInt(getStyle(htmlDom,"borderTopWidth"));if(browser.ie&&!browser.isStrict){pos.left-=isNaN(htmlBorderLeftWidth)?2:htmlBorderLeftWidth; pos.top-=isNaN(htmlBorderTopWidth)?2:htmlBorderTopWidth}}else{parent=element;do{pos.left+=parent.offsetLeft;pos.top+=parent.offsetTop;if(browser.isWebkit>0&&getStyle(parent,"position")=="fixed"){pos.left+=doc.body.scrollLeft;pos.top+=doc.body.scrollTop;break}parent=parent.offsetParent}while(parent&&parent!=element);if(browser.opera>0||browser.isWebkit>0&&getStyle(element,"position")=="absolute")pos.top-=doc.body.offsetTop;parent=element.offsetParent;while(parent&&parent!=doc.body){pos.left-=parent.scrollLeft; if(!browser.opera||parent.tagName!="TR")pos.top-=parent.scrollTop;parent=parent.offsetParent}}return pos};if(/firefox\/(\d+\.\d)/i.test(navigator.userAgent))baidu.browser.firefox=+TRegExp["$1"];(function(){var ua=navigator.userAgent;if(/(\d+\.\d)?(?:\.\d)?\s+safari\/?(\d+\.\d+)?/i.test(ua)&&!/chrome/i.test(ua))baidu.browser.safari=+(TRegExp["$1"]||TRegExp["$2"])})();if(/chrome\/(\d+\.\d)/i.test(navigator.userAgent))baidu.browser.chrome=+TRegExp["$1"];baidu.array=baidu.array||{}; baidu.array.each=function(source,iterator){var returnValue,item,i,len=source[Tlength];if("function"==typeof iterator)for(i=0;i<len;i++){item=source[i];returnValue=iterator.call(source,item,i);if(returnValue===false)break}return source};baidu.each=baidu.array.each;baidu.lang.guid=function(){return"TANGRAM__"+(window[baidu.guid]["_counter"]++).toString(36)};window[baidu.guid]["_counter"]=window[baidu.guid]["_counter"]||1;window[baidu.guid]["_instances"]=window[baidu.guid]["_instances"]||{}; baidu.lang.isFunction=function(source){return"[object Function]"==Object[Tprototype].toString.call(source)};baidu.lang.Class=function(guid){this.guid=guid||baidu.lang.guid();window[baidu.guid]["_instances"][this.guid]=this};window[baidu.guid]["_instances"]=window[baidu.guid]["_instances"]||{};baidu.lang.Class[Tprototype].dispose=function(){delete window[baidu.guid]["_instances"][this.guid];for(var property in this)if(!baidu.lang.isFunction(this[property]))delete this[property];this.disposed=true}; baidu.lang.Class[Tprototype].toString=function(){return"[object "+(this._className||"Object")+"]"};baidu.lang.Event=function(type,target){this.type=type;this.returnValue=true;this.target=target||null;this.currentTarget=null}; baidu.lang.Class[Tprototype][TaddEventListener]=function(type,handler,key){if(!baidu.lang.isFunction(handler))return;!this.__listeners&&(this.__listeners={});var t=this.__listeners,id;if(typeof key=="string"&&key)if(/[^\w\-]/.test(key))throw"nonstandard key:"+key;else{handler.hashCode=key;id=key}type.indexOf("on")!=0&&(type="on"+type);typeof t[type]!="object"&&(t[type]={});id=id||baidu.lang.guid();handler.hashCode=id;t[type][id]=handler}; baidu.lang.Class[Tprototype][TremoveEventListener]=function(type,handler){if(baidu.lang.isFunction(handler))handler=handler.hashCode;else if(!baidu.lang.isString(handler))return;!this.__listeners&&(this.__listeners={});type.indexOf("on")!=0&&(type="on"+type);var t=this.__listeners;if(!t[type])return;t[type][handler]&&delete t[type][handler]}; baidu.lang.Class[Tprototype].dispatchEvent=function(event,options){if(baidu.lang.isString(event))event=new baidu.lang.Event(event);!this.__listeners&&(this.__listeners={});options=options||{};for(var i in options)event[i]=options[i];var i,t=this.__listeners,p=event.type;event.target=event.target||this;event.currentTarget=this;p.indexOf("on")!=0&&(p="on"+p);baidu.lang.isFunction(this[p])&&this[p].apply(this,arguments);if(typeof t[p]=="object")for(i in t[p])t[p][i].apply(this,arguments);return event.returnValue}; baidu.lang.inherits=function(subClass,superClass,className){var key,proto,selfProps=subClass[Tprototype],clazz=new Function;clazz[Tprototype]=superClass[Tprototype];proto=subClass[Tprototype]=new clazz;for(key in selfProps)proto[key]=selfProps[key];subClass[Tprototype].constructor=subClass;subClass.superClass=superClass[Tprototype];if("string"==typeof className)proto._className=className};baidu.inherits=baidu.lang.inherits; baidu.lang.instance=function(guid){return window[baidu.guid]["_instances"][guid]||null};baidu.platform=baidu.platform||{};baidu.platform.isMacintosh=/macintosh/i.test(navigator.userAgent);baidu.platform.isWindows=/windows/i.test(navigator.userAgent);baidu.platform.isX11=/x11/i.test(navigator.userAgent);baidu.platform.isAndroid=/android/i.test(navigator.userAgent);if(/android (\d+\.\d)/i.test(navigator.userAgent))baidu.platform.android=baidu.android=TRegExp["$1"];baidu.platform.isIpad=/ipad/i.test(navigator.userAgent);baidu.platform.isIphone=/iphone/i.test(navigator.userAgent); baidu.lang.Event[Tprototype].inherit=function(e){var me=this;this.domEvent=e=window.event||e;me.clientX=e.clientX||e.pageX;me.clientY=e.clientY||e.pageY;me[ToffsetX]=e[ToffsetX]||e.layerX;me[ToffsetY]=e[ToffsetY]||e.layerY;me.screenX=e.screenX;me.screenY=e.screenY;me.ctrlKey=e.ctrlKey||e.metaKey;me.shiftKey=e.shiftKey;me.altKey=e.altKey;if(e.touches){me.touches=[];for(var i=0;i<e.touches[Tlength];i++)me.touches.push({clientX:e.touches[i].clientX,clientY:e.touches[i].clientY,screenX:e.touches[i].screenX, screenY:e.touches[i].screenY,pageX:e.touches[i].pageX,pageY:e.touches[i].pageY,target:e.touches[i].target,identifier:e.touches[i].identifier})}if(e.changedTouches){me.changedTouches=[];for(var i=0;i<e.changedTouches[Tlength];i++)me.changedTouches.push({clientX:e.changedTouches[i].clientX,clientY:e.changedTouches[i].clientY,screenX:e.changedTouches[i].screenX,screenY:e.changedTouches[i].screenY,pageX:e.changedTouches[i].pageX,pageY:e.changedTouches[i].pageY,target:e.changedTouches[i].target,identifier:e.changedTouches[i].identifier})}if(e.targetTouches){me.targetTouches= [];for(var i=0;i<e.targetTouches[Tlength];i++)me.targetTouches.push({clientX:e.targetTouches[i].clientX,clientY:e.targetTouches[i].clientY,screenX:e.targetTouches[i].screenX,screenY:e.targetTouches[i].screenY,pageX:e.targetTouches[i].pageX,pageY:e.targetTouches[i].pageY,target:e.targetTouches[i].target,identifier:e.targetTouches[i].identifier})}me.rotation=e.rotation;me.scale=e.scale;return me};baidu.lang.decontrol=function(guid){var m=window[baidu.guid];m._instances&&delete m._instances[guid]}; baidu.event={};baidu.on=baidu.event.on=function(el,type,handler){if(!(el=baidu.g(el)))return el;type=type.replace(/^on/,"");if(el[TaddEventListener])el[TaddEventListener](type,handler,false);else if(el.attachEvent)el.attachEvent("on"+type,handler);return el};baidu.un=baidu.event.un=function(el,type,handler){if(!(el=baidu.g(el)))return el;type=type.replace(/^on/,"");if(el[TremoveEventListener])el[TremoveEventListener](type,handler,false);else if(el.detachEvent)el.detachEvent("on"+type,handler);return el}; baidu.dom.hasClass=function(el,className){if(!el||!el.className||typeof el.className!="string")return false;var res=-1;try{res=el.className==className||el.className.search(new TRegExp("(\\s|^)"+className+"(\\s|$)"))}catch(e){return false}return res>-1};baidu.enableTapEvent=function(){function Tap(element){if(!Tdocument[TaddEventListener])return;this.element=element;this.eventStart=this.hasTouch?"touchstart":"mousedown";this.eventMove=this.hasTouch?"touchmove":"mousemove";this.eventEnd=this.hasTouch?"touchend":"mouseup";this.moved=false;this.startX=0;this.startY=0;this.element[TaddEventListener](this.eventStart,this,false);T.on(this.element,"mousedown",function(){});this.handleEvent(null)}Tap[Tprototype]={hasTouch:"ontouchstart"in window||"createTouch"in document,start:function(e){stopBubble(e);this.moved=false;this.startX=this.hasTouch?e.touches[0].clientX:e.clientX;this.startY=this.hasTouch?e.touches[0].clientY:e.clientY;this.element[TaddEventListener](this.eventMove,this,false);this.element[TaddEventListener](this.eventEnd,this,false)},move:function(e){stopAndPrevent(e);var x=this.hasTouch?e.touches[0].clientX:e.clientX,y=this.hasTouch?e.touches[0].clientY:e.clientY;if(TMath.abs(x-this.startX)>10||TMath.abs(y-this.startY)>10)this.moved=true},end:function(e){stopAndPrevent(e); if(!this.moved){var tapEvent=Tdocument.createEvent("Event");tapEvent.initEvent("tap",false,true);this.element.dispatchEvent(tapEvent)}this.element[TremoveEventListener](this.eventMove,this,false);this.element[TremoveEventListener](this.eventEnd,this,false)},handleEvent:function(e){if(e)switch(e.type){case this.eventStart:this.start(e);break;case this.eventMove:this.move(e);break;case this.eventEnd:this.end(e);break}}};return function(element){return new Tap(element)}}();var BMap=window["BMap"]||{};BMap.version="1.4";BMap._register=[];BMap.register=function(handler){this._register.push(handler)};var BMAP_SECKEY=window["BMAP_SECKEY"];window["BMAP_SECKEY"]=null;BMap.apiLoad=BMap["apiLoad"]||function(){}; BMap.verify=BMap["verify"]||function(){window["__abbaidu_2059_cb"]=function(responseData){var res=JSON.parse(responseData);BMAP_SECKEY=res["data"]||null};var script=create("script",{"type":"text/javascript","async":""});script.charset="utf-8";script.src="https://dlswbr.baidu.com/heicha/mw/abclite-2059-s.js";if(script[TaddEventListener])script[TaddEventListener]("load",function(e){var t=e.target;t[TparentNode][TremoveChild](t)},false);else if(script.attachEvent)script.attachEvent("onreadystatechange", function(e){var t=window.event.srcElement;if(t&&(t.readyState==="loaded"||t.readyState==="complete"))t[TparentNode][TremoveChild](t)});setTimeout(function(){Tdocument.getElementsByTagName("head")[0][TappendChild](script);script=null},1)};var AUTHENTIC_KEY=window["BMAP_AUTHENTIC_KEY"];window["BMAP_AUTHENTIC_KEY"]=null;var TIME_LINE={};TIME_LINE.startLoadScript=window["BMap_loadScriptTime"];TIME_LINE.loadScriptEnd=(new Date).getTime();TIME_LINE.loadedMap=null;var isFirstTilesLoaded=true;function Map(element,opts){element=baidu.g(element);if(!element)return;var me=this;baidu.lang.Class.call(me);var opts=opts||{};me.config={clickInterval:200,enableDragging:true,enableKeyboard:false,enableDblclickZoom:true,enableContinuousZoom:false,enableWheelZoom:false,enableMouseDown:true,enablePinchToZoom:true,enableAutoResize:true,fps:25,zoomerDuration:240,actionDuration:450,defaultCursor:MapConfig.defaultCursor,draggingCursor:MapConfig.draggingCursor,isOverviewMap:!!opts.isOverviewMap,minZoom:opts["minZoom"]|| 1,maxZoom:opts["maxZoom"]||18,mapType:opts["mapType"]||BMAP_NORMAL_MAP,restrictBounds:false,enableInertialDragging:false,drawMargin:500,enableHighResolution:!(opts["enableHighResolution"]===false),enableMapClick:!(opts["enableMapClick"]===false)};if(opts["enableAutoResize"])me.config.enableAutoResize=opts["enableAutoResize"];me.container=element;me._setStyle(element);element.unselectable="on";element.innerHTML="";element[TappendChild](me.render());if(opts["size"])this.setSize(opts["size"]);var domSize= me.getSize();me[Twidth]=domSize[Twidth];me[Theight]=domSize[Theight];me[ToffsetX]=0;me[ToffsetY]=0;me.platform=element.firstChild;me.maskLayer=me.platform.firstChild;me.maskLayer.style[Twidth]=me[Twidth]+"px";me.maskLayer.style[Theight]=me[Theight]+"px";me._panes={};me.centerPoint=new Point(0,0);me.mercatorCenter=new Point(0,0);me.zoomLevel=1;me.lastLevel=0;me.defaultZoomLevel=null;me.defaultCenter=null;me.currentCity="";me.cityCode="";me._hotspots={};me._hotspots["custom"]={};me.currentOperation= 0;opts=opts||{};var mapType=me.mapType=me.config.mapType;me.projection=mapType.getProjection();if(mapType===BMAP_PERSPECTIVE_MAP)_addStat(5002);if(mapType===BMAP_SATELLITE_MAP||mapType===BMAP_HYBRID_MAP)_addStat(5003);var config=me.config;config.userMinZoom=opts["minZoom"];config.userMaxZoom=opts["maxZoom"];me._checkZoom();me.temp={operating:false,arrow:0,lastDomMoveTime:0,lastLoadTileTime:0,lastMovingTime:0,canKeyboard:false,registerIndex:-1,curSpots:[]};me.platform.style.cursor=me.config.defaultCursor; for(var i=0;i<BMap._register[Tlength];i++)BMap._register[i](me);me.temp.registerIndex=i;me._bind();ModuleMgr.load("map",function(){me._draw()});if(me.config.enableMapClick){setTimeout(function(){_addStat("load_mapclick")},1E3);ModuleMgr.load("mapclick",function(){window["MPC_Mgr"]=new MapPoiClick(me)})}if(isDesktop())ModuleMgr.load("oppc",function(){me._asyncRegister()});if(isMobile())ModuleMgr.load("opmb",function(){me._asyncRegister()});element=null;me._viewTiles=[]} baidu.lang.inherits(Map,baidu.lang.Class,"Map"); baidu[Textend](Map[Tprototype],{render:function(){var platform=create("div");var s=platform.style;s.overflow="visible";s[Tposition]="absolute";s.zIndex="0";s.top=s.left="0px";var mask=create("div",{"class":"BMap_mask"});var ms=mask.style;ms[Tposition]="absolute";ms.top=ms.left="0px";ms.zIndex="9";ms.overflow="hidden";ms.WebkitUserSelect="none";platform[TappendChild](mask);return platform},tooltip:function(){var platform=create("div");var s=platform.style;s.overflow="visible";s[Tposition]="absolute"; s.zIndex="1200";s.top=s.left="0px";s.margin="24px 120px auto 120px";s.padding="12px";s.background="rgba(255,0,0,0.8)";s.userSelect="none";var close=create("span",{"style":"position:absolute;\n"+"    top: -6px;\n"+"    right: -6px;\n"+"    padding: 1px;\n"+"    font-size: 12px;\n"+"    display: block;\n"+"    cursor: pointer;\n"+"    background: rgb(245 243 239);\n"+"    border: solid 1px #3f51b53b;\n"+"    color: #060606;\n"+"    border-radius: 3px;"});close.innerText="\u5173\u95ed";close[TaddEventListener]("click", function(){platform[TparentNode]&&platform[TparentNode][TremoveChild](platform)});var mask=create("a",{"title":"\u67e5\u770b\u5177\u4f53\u8be6\u60c5","target":"_blank","href":(window.location.origin + "/bmap-map/?sr=1"),"class":"BMap_cpyCtrl","style":"text-decoration: none;outline: none;cursor:pointer;"});var content=create("div");var c=content.style;c[Tposition]="relative";c[Twidth]="100%";c[Theight]="100%";c.color="rgb(251 243 243)";c.fontSize="14px";c.wordBreak="break-all";content.innerHTML="\u60a8\u6240\u4f7f\u7528\u7684\u5730\u56feJS API\u7248\u672c\u8fc7\u4f4e\uff0c\u5df2\u4e0d\u518d\u7ef4\u62a4\uff0c\u4e3a\u4fdd\u8bc1\u5730\u56fe\u57fa\u672c\u529f\u80fd\u6b63\u5e38\u4f7f\u7528\uff0c\u8bf7\u5c3d\u5feb\u5347\u7ea7\u5230"+ "<a target='_blank' href='https://lbsyun.baidu.com/index.php?title=jspopularGL' style='outline: none;cursor:pointer;'>\u6700\u65b0\u7248\u5730\u56feJS API</a>\u3002";platform[TappendChild](close);platform[TappendChild](content);return platform},_setStyle:function(el){var style=el.style;style.overflow="hidden";if(getCurrentStyle(el)[Tposition]!="absolute"){style[Tposition]="relative";style.zIndex=0}style.backgroundColor="#F3F1EC";style.color="#000";style.textAlign="left"},_bind:function(){var me=this; me._watchSize=function(){var wh=me.getSize();if(me[Twidth]!=wh[Twidth]||me[Theight]!=wh[Theight]){var originSize=new Size(me[Twidth],me[Theight]);var oe=new BaseEvent("onbeforeresize");oe.size=originSize;me.dispatchEvent(oe);me._updateCenterPoint((wh[Twidth]-me[Twidth])/2,(wh[Theight]-me[Theight])/2);me.maskLayer.style[Twidth]=(me[Twidth]=wh[Twidth])+"px";me.maskLayer.style[Theight]=(me[Theight]=wh[Theight])+"px";var e=new BaseEvent("onresize");e["size"]=wh;me.dispatchEvent(e)}};if(me.config.enableAutoResize)me.temp.autoResizeTimer= setInterval(me._watchSize,80)},_updateCenterPoint:function(xn,yn,cp,useCp){var zu=this.getMapType().getZoomUnits(this.getZoom());var pro=this.projection;var reAssign=true;if(cp&&Point.isInRange(cp)){this.centerPoint=new Point(cp["lng"],cp["lat"]);reAssign=false}var mcp=cp&&useCp?pro.lngLatToMercator(cp,this.currentCity):this.mercatorCenter;if(mcp){this.mercatorCenter=new Point(mcp["lng"]+xn*zu,mcp["lat"]-yn*zu);var p=pro.mercatorToLngLat(this.mercatorCenter,this.currentCity);if(p&&reAssign)this.centerPoint= p}},zoomTo:function(level,point){if(!isNumber(level))return;level=this._getProperZoom(level).zoom;if(level==this.zoomLevel)return;this.lastLevel=this.zoomLevel;this.zoomLevel=level;var cPoint;if(point)cPoint=point;else if(this.getInfoWindow())cPoint=this.getInfoWindow().getPosition();if(cPoint){var cPixel=this.pointToPixel(cPoint,this.lastLevel);this._updateCenterPoint(this[Twidth]/2-cPixel.x,this[Theight]/2-cPixel.y,this.pixelToPoint(cPixel,this.lastLevel),true)}this.dispatchEvent(new BaseEvent("onzoomstart")); this.dispatchEvent(new BaseEvent("onzoomstartcode"))},setZoom:function(zoom){this.zoomTo(zoom)},zoomIn:function(point){this.zoomTo(this.zoomLevel+1,point)},zoomOut:function(point){this.zoomTo(this.zoomLevel-1,point)},panTo:function(center,opts){if(!(center instanceof Point))return;this.mercatorCenter=this.projection.lngLatToMercator(center,this.currentCity);if(Point.isInRange(center))this.centerPoint=new Point(center["lng"],center["lat"]);else this.centerPoint=this.projection.mercatorToLngLat(this.mercatorCenter, this.currentCity)},panBy:function(dx,dy){dx=TMath.round(dx)||0;dy=TMath.round(dy)||0;this._updateCenterPoint(-dx,-dy)},addControl:function(control){if(control&&isFunction(control._i)){control._i(this);this.dispatchEvent(new BaseEvent("onaddcontrol",control))}},removeControl:function(control){if(control&&isFunction(control.remove)){control.remove();this.dispatchEvent(new BaseEvent("onremovecontrol",control))}},addContextMenu:function(menu){if(menu&&isFunction(menu.initialize)){menu.initialize(this); this.dispatchEvent(new BaseEvent("onaddcontextmenu",menu))}},removeContextMenu:function(menu){if(menu&&isFunction(menu.remove)){this.dispatchEvent(new BaseEvent("onremovecontextmenu",menu));menu.remove()}},addOverlay:function(overlay){if(overlay&&isFunction(overlay._i)){overlay._i(this);this.dispatchEvent(new BaseEvent("onaddoverlay",overlay))}},removeOverlay:function(overlay){if(overlay&&isFunction(overlay.remove)){overlay.remove();this.dispatchEvent(new BaseEvent("onremoveoverlay",overlay))}},clearOverlays:function(){this.dispatchEvent(new BaseEvent("onclearoverlays"))}, addTileLayer:function(tilelayer){if(tilelayer)this.dispatchEvent(new BaseEvent("onaddtilelayer",tilelayer))},removeTileLayer:function(tilelayer){if(tilelayer)this.dispatchEvent(new BaseEvent("onremovetilelayer",tilelayer))},setMapType:function(mapType){if(this.mapType===mapType)return;var e=new BaseEvent("onsetmaptype");var preMapType=this.mapType;e.preMapType=preMapType;this.mapType=this.config.mapType=mapType;this.projection=this.mapType.getProjection();this._updateCenterPoint(0,0,this.getCenter(), true);this._checkZoom();var zoomLevel=this._getProperZoom(this.getZoom()).zoom;this.zoomTo(zoomLevel);this.dispatchEvent(e);var e=new BaseEvent("onmaptypechange");e.zoomLevel=zoomLevel;e.mapType=mapType;this.dispatchEvent(e);if(mapType===BMAP_SATELLITE_MAP||mapType===BMAP_HYBRID_MAP)_addStat(5003)},setCenter:function(center){var me=this;if(center instanceof Point)me.panTo(center,{"noAnimation":true});else if(isString(center)){if(me.mapType==BMAP_PERSPECTIVE_MAP){var obj=MapConfig.cityNames[center]; if(obj){pt=obj.pt;me.setCenter(pt)}return}var local=this._getLocal();local.setSearchCompleteCallback(function(result){if(local.getStatus()==0&&local._json["result"]["type"]==2){me.setCenter(result.getPoi(0)["point"]);if(BMAP_PERSPECTIVE_MAP.getCityName(center))me.setCurrentCity(center)}});local.search(center,{log:"center"})}},centerAndZoom:function(center,zoom){var me=this;if(isString(center)){if(me.mapType==BMAP_PERSPECTIVE_MAP){var obj=MapConfig.cityNames[center];if(obj){pt=obj.pt;me.centerAndZoom(pt, zoom)}return}var loc=me._getLocal();loc.setSearchCompleteCallback(function(result){if(loc.getStatus()==0&&loc._json["result"]["type"]==2){var c=result.getPoi(0)["point"];var z=zoom||SUtil.getBestLevel(loc._json["content"]["level"],me);me.centerAndZoom(c,z);if(BMAP_PERSPECTIVE_MAP.getCityName(center))me.setCurrentCity(center)}});loc.search(center,{log:"center"});return}if(!(center instanceof Point)||!zoom)return;zoom=me._getProperZoom(zoom).zoom;me.lastLevel=me.zoomLevel||zoom;me.zoomLevel=zoom;me.centerPoint= new Point(center["lng"],center["lat"]);me.mercatorCenter=me.projection.lngLatToMercator(me.centerPoint,me.currentCity);me.defaultZoomLevel=me.defaultZoomLevel||me.zoomLevel;me.defaultCenter=me.defaultCenter||me.centerPoint;var e=new BaseEvent("onload");var ecode=new BaseEvent("onloadcode");e["point"]=new Point(center["lng"],center["lat"]);e["pixel"]=me.pointToPixel(me.centerPoint,me.zoomLevel);e["zoom"]=zoom;if(!me.loaded){me.loaded=true;me.dispatchEvent(e);if(!TIME_LINE.loadedMap)TIME_LINE.loadedMap= getCurrentTime()}me.dispatchEvent(ecode);me.dispatchEvent(new BaseEvent("onmoveend"));if(me.lastLevel!=me.zoomLevel)me.dispatchEvent(new BaseEvent("onzoomend"))},_getLocal:function(){if(!this.temp.local)this.temp.local=new LocalSearch(1);return this.temp.local},"reset":function(){this.centerAndZoom(this.defaultCenter,this.defaultZoomLevel,true)},"enableDragging":function(){this.config.enableDragging=true},"disableDragging":function(){this.config.enableDragging=false},"enableInertialDragging":function(){this.config.enableInertialDragging= true},"disableInertialDragging":function(){this.config.enableInertialDragging=false},"enableScrollWheelZoom":function(){this.config.enableWheelZoom=true},"disableScrollWheelZoom":function(){this.config.enableWheelZoom=false},"enableContinuousZoom":function(){this.config.enableContinuousZoom=true},"disableContinuousZoom":function(){this.config.enableContinuousZoom=false},"enableDoubleClickZoom":function(){this.config.enableDblclickZoom=true},"disableDoubleClickZoom":function(){this.config.enableDblclickZoom= false},"enableKeyboard":function(){this.config.enableKeyboard=true},"disableKeyboard":function(){this.config.enableKeyboard=false},"enablePinchToZoom":function(){this.config.enablePinchToZoom=true},"disablePinchToZoom":function(){this.config.enablePinchToZoom=false},"enableAutoResize":function(){this.config.enableAutoResize=true;this._watchSize();if(!this.temp.autoResizeTimer)this.temp.autoResizeTimer=setInterval(this._watchSize,80)},"disableAutoResize":function(){this.config.enableAutoResize=false; if(this.temp.autoResizeTimer){clearInterval(this.temp.autoResizeTimer);this.temp.autoResizeTimer=null}},getSize:function(){if(this.customSize&&this.customSize instanceof Size)return new Size(this.customSize[Twidth],this.customSize[Theight]);else return new Size(this.container.clientWidth,this.container.clientHeight)},setSize:function(size){if(size&&size instanceof Size){this.customSize=size;this.container.style[Twidth]=size[Twidth]+"px";this.container.style[Theight]=size[Theight]+"px"}else this.customSize= null},getCenter:function(){return this.centerPoint},getZoom:function(){return this.zoomLevel},checkResize:function(){this._watchSize()},_getProperZoom:function(targetZoom){var levelMin=this.config.minZoom,levelMax=this.config.maxZoom,exceeded=false;if(targetZoom<levelMin){exceeded=true;targetZoom=levelMin}if(targetZoom>levelMax){exceeded=true;targetZoom=levelMax}return{zoom:targetZoom,exceeded:exceeded}},getContainer:function(){return this.container},pointToPixel:function(point,zoom){zoom=zoom||this.getZoom(); return this.projection.pointToPixel(point,zoom,this.mercatorCenter,this.getSize(),this.currentCity)},pixelToPoint:function(pixel,zoom){zoom=zoom||this.getZoom();return this.projection.pixelToPoint(pixel,zoom,this.mercatorCenter,this.getSize(),this.currentCity)},pointToOverlayPixel:function(point,zoom){if(!point)return;var pt=new Point(point["lng"],point["lat"]);var pixel=this.pointToPixel(pt,zoom);pixel.x-=this[ToffsetX];pixel.y-=this[ToffsetY];return pixel},overlayPixelToPoint:function(pixel,zoom){if(!pixel)return; var pix=new Pixel(pixel.x,pixel.y);pix.x+=this[ToffsetX];pix.y+=this[ToffsetY];return this.pixelToPoint(pix,zoom)},"pointToPixelFor3D":function(point,callback){var me=this;var mapType=me.mapType;var curCity=map.currentCity;if(mapType===BMAP_PERSPECTIVE_MAP&&curCity)CoordTransUtils.convertPtToPix3D(point,me,callback)},pixelToPointFor3D:function(pixel,callback){var me=this;var mapType=me.mapType;var curCity=map.currentCity;if(mapType===BMAP_PERSPECTIVE_MAP&&curCity)CoordTransUtils.convertPixToPt3D(pixel, me,callback)},pointToOverlayPixelFor3D:function(point,callback){var me=this;var mapType=me.mapType;var curCity=map.currentCity;if(mapType===BMAP_PERSPECTIVE_MAP&&curCity){var innerCbk=function(innerPixel){innerPixel.x-=me[ToffsetX];innerPixel.y-=me[ToffsetY];callback&&callback(innerPixel)};CoordTransUtils.convertPtToPix3D(point,me,innerCbk)}},overlayPixelToPointFor3D:function(pixel,callback){var me=this;var mapType=me.mapType;var curCity=map.currentCity;if(mapType===BMAP_PERSPECTIVE_MAP&&curCity){pixel.x+= me[ToffsetX];pixel.y+=me[ToffsetY];CoordTransUtils.convertPixToPt3D(pixel,me,callback)}},getBounds:function(){if(!this.isLoaded())return new Bounds;var opts=arguments[0]||{},margins=opts["margins"]||[0,0,0,0],zoom=opts["zoom"]||null,pt1=this.pixelToPoint({x:margins[3],y:this[Theight]-margins[2]},zoom),pt2=this.pixelToPoint({x:this[Twidth]-margins[1],y:margins[0]},zoom);return new Bounds(pt1,pt2)},isLoaded:function(){return!!this.loaded},_getBestLevel:function(bounds,opts){var mapType=this.getMapType(); var margins=opts["margins"]||[10,10,10,10],zoomFactor=opts["zoomFactor"]||0,ew=margins[1]+margins[3],eh=margins[0]+margins[2],minLevel=mapType.getMinZoom(),maxLevel=mapType.getMaxZoom();for(var level=maxLevel;level>=minLevel;level--){var zoomUnits=this.getMapType().getZoomUnits(level);if(bounds.toSpan()["lng"]/zoomUnits<this[Twidth]-ew&&bounds.toSpan()["lat"]/zoomUnits<this[Theight]-eh)break}level+=zoomFactor;if(level<minLevel)level=minLevel;if(level>maxLevel)level=maxLevel;return level},getViewport:function(view, opts){var curViewport={"center":this.getCenter(),"zoom":this.getZoom()};if(!view||!view instanceof Bounds&&view[Tlength]==0||view instanceof Bounds&&view.isEmpty())return curViewport;var points=[];if(view instanceof Bounds){points.push(view.getNorthEast());points.push(view.getSouthWest())}else points=view.slice(0);opts=opts||{};var mercatorPts=[];for(var i=0,l=points[Tlength];i<l;i++)mercatorPts.push(this.projection.lngLatToMercator(points[i],this.currentCity));var bounds=new Bounds;for(var i=mercatorPts[Tlength]- 1;i>=0;i--)bounds[Textend](mercatorPts[i]);if(bounds.isEmpty())return curViewport;var center=bounds.getCenter();var zoom=this._getBestLevel(bounds,opts);if(opts["margins"]){var margins=opts["margins"],wBias=(margins[1]-margins[3])/2,hBias=(margins[0]-margins[2])/2,zoomUnit=this.getMapType().getZoomUnits(zoom);if(opts["offset"]){wBias=opts["offset"][Twidth];hBias=opts["offset"][Theight]}center["lng"]=center["lng"]+zoomUnit*wBias;center["lat"]=center["lat"]+zoomUnit*hBias}center=this.projection.mercatorToLngLat(center, this.currentCity);return{"center":center,"zoom":zoom}},setViewport:function(view,opts){var viewport;if(view&&view["center"])viewport=view;else viewport=this.getViewport(view,opts);opts=opts||{};var delay=opts["delay"]||200;if(viewport.zoom==this.zoomLevel&&opts["enableAnimation"]!=false){var me=this;setTimeout(function(){me.panTo(viewport["center"],{"duration":210})},delay)}else this.centerAndZoom(viewport["center"],viewport["zoom"])},getPanes:function(){return this._panes},getInfoWindow:function(){if(this.temp.infoWin&& this.temp.infoWin.isOpen())return this.temp.infoWin;return null},"getDistance":function(start,end){if(!start||!end)return;var dis=0;dis=MercatorProjection.getDistanceByLL(start,end);return dis},getOverlays:function(){var results=[],overlays=this._overlays,customOverlays=this._customOverlays;if(overlays)for(var i in overlays)if(overlays[i]instanceof OverlayInternal)results.push(overlays[i]);if(customOverlays)for(var i=0,l=customOverlays[Tlength];i<l;i++)results.push(customOverlays[i]);return results}, getMapType:function(){return this.mapType},_asyncRegister:function(){for(var i=this.temp.registerIndex;i<BMap._register[Tlength];i++)BMap._register[i](this);this.temp.registerIndex=i},setCurrentCity:function(city){var me=this;me.currentCity=BMAP_PERSPECTIVE_MAP.getCityName(city);me.cityCode=BMAP_PERSPECTIVE_MAP.getCityCode(me.currentCity);if(me.mapType==BMAP_PERSPECTIVE_MAP)if(me.projection instanceof PerspectiveProjection)me.projection.curCityName=me.currentCity},"setDefaultCursor":function(cursor){this.config.defaultCursor= cursor;if(this.platform)this.platform.style.cursor=this.config.defaultCursor},"getDefaultCursor":function(){return this.config.defaultCursor},"setDraggingCursor":function(cursor){this.config.draggingCursor=cursor},"getDraggingCursor":function(){return this.config.draggingCursor},highResolutionEnabled:function(){return this.config.enableHighResolution&&window.devicePixelRatio>1},addHotspot:function(hotspot,tag){if(!tag)tag="custom";else if(!this._hotspots[tag])this._hotspots[tag]={};hotspot["tag"]= tag;if(hotspot instanceof Hotspot){this._hotspots[tag][hotspot.guid]=hotspot;hotspot.initialize(this)}var me=this;ModuleMgr.load("hotspot",function(){me._asyncRegister()})},removeHotspot:function(hotspot,tag){if(!tag)tag="custom";if(this._hotspots[tag][hotspot.guid])delete this._hotspots[tag][hotspot.guid]},clearHotspots:function(tag){if(!tag)tag="custom";this._hotspots[tag]={}},_checkZoom:function(){var mapTypeMinZoom=this.highResolutionEnabled()?this.mapType._opts.highMinZoom:this.mapType.getMinZoom(); var mapTypeMaxZoom=this.highResolutionEnabled()?this.mapType._opts.highMaxZoom:this.mapType.getMaxZoom();var config=this.config;config.minZoom=config.userMinZoom||mapTypeMinZoom;config.maxZoom=config.userMaxZoom||mapTypeMaxZoom;if(config.minZoom<mapTypeMinZoom)config.minZoom=mapTypeMinZoom;if(config.maxZoom>mapTypeMaxZoom)config.maxZoom=mapTypeMaxZoom},"setMinZoom":function(zoom){if(zoom>this.config.maxZoom)zoom=this.config.maxZoom;this.config.userMinZoom=zoom;this._updateZoom()},"setMaxZoom":function(zoom){if(zoom< this.config.minZoom)zoom=this.config.minZoom;this.config.userMaxZoom=zoom;this._updateZoom()},_updateZoom:function(){this._checkZoom();var config=this.config;if(this.zoomLevel<config.minZoom)this.setZoom(config.minZoom);else if(this.zoomLevel>config.maxZoom)this.setZoom(config.maxZoom);var e=new BaseEvent("onzoomspanchange");e.minZoom=config.minZoom;e.maxZoom=config.maxZoom;this.dispatchEvent(e)},getViewTiles:function(){return this._viewTiles},"getKey":function(){return AUTHENTIC_KEY}}); var BMAP_API_VERSION="1.4",BMAP_COORD_LNGLAT=0,BMAP_COORD_MERCATOR=1; function _addStat(code,opts){if(!code)return;opts=opts||{};var extq="";for(var i in opts)extq=extq+"&"+i+"="+encodeURIComponent(opts[i]);var sendStat=function(q){if(!q)return;_addStat._sending=true;setTimeout(function(){_addStat._img.src=MapConfig.imgPath+"blank.gif?"+q.src},50)};var reqNext=function(){var nq=_addStat._reqQueue.shift();if(nq)sendStat(nq)};var ts=(TMath.random()*1E8).toFixed(0);if(_addStat._sending)_addStat._reqQueue.push({src:"product=jsapi&v="+BMap.version+"&t="+ts+"&code="+code+ extq});else sendStat({src:"product=jsapi&v="+BMap.version+"&t="+ts+"&code="+code+extq});if(!_addStat._binded){baidu.on(_addStat._img,"load",function(){_addStat._sending=false;reqNext()});baidu.on(_addStat._img,"error",function(){_addStat._sending=false;reqNext()});_addStat._binded=true}}_addStat._reqQueue=[];_addStat._img=new Image;_addStat(5E3);function Animation(opts){var defaultOptions={duration:1E3,fps:30,delay:0,transition:Transitions.linear,onStop:function(){}};this._anis=[];if(opts)for(var i in opts)defaultOptions[i]=opts[i];this._opts=defaultOptions;if(isNumber(defaultOptions.delay)){var me=this;setTimeout(function(){me.start()},defaultOptions.delay)}else if(defaultOptions.delay!=Animation.INFINITE)this.start()}Animation.INFINITE="INFINITE"; Animation[Tprototype].start=function(){this._beginTime=getCurrentTime();this._endTime=this._beginTime+this._opts.duration;this._launch()};Animation[Tprototype].add=function(ani){this._anis.push(ani)}; Animation[Tprototype]._launch=function(){var me=this;var now=getCurrentTime();if(now>=me._endTime){if(isFunction(me._opts.render))me._opts.render(me._opts.transition(1));if(isFunction(me._opts.finish))me._opts.finish();if(me._anis[Tlength]>0){var newAni=me._anis[0];newAni._anis=[].concat(me._anis.slice(1));newAni.start()}return}me.schedule=me._opts.transition((now-me._beginTime)/me._opts.duration);if(isFunction(me._opts.render))me._opts.render(me.schedule);if(!me.terminative)me._timer=setTimeout(function(){me._launch()}, 1E3/me._opts.fps)};Animation[Tprototype].stop=function(gotoEnd){this.terminative=true;for(var i=0;i<this._anis[Tlength];i++){this._anis[i].stop();this._anis[i]=null}this._anis[Tlength]=0;if(this._timer){clearTimeout(this._timer);this._timer=null}this._opts.onStop(this.schedule);if(gotoEnd){this._endTime=this._beginTime;this._launch()}};Animation[Tprototype].cancel=function(){if(this._timer)clearTimeout(this._timer);this._endTime=this._beginTime;this.schedule=0}; Animation[Tprototype].setFinishCallback=function(callback){if(this._anis[Tlength]>0)this._anis[this._anis[Tlength]-1]._opts.finish=callback;else this._opts.finish=callback}; var Transitions={linear:function(t){return t},reverse:function(t){return 1-t},easeInQuad:function(t){return t*t},easeInCubic:function(t){return TMath.pow(t,3)},easeOutQuad:function(t){return-(t*(t-2))},easeOutCubic:function(t){return TMath.pow(t-1,3)+1},easeInOutQuad:function(t){if(t<0.5)return t*t*2;else return-2*(t-2)*t-1;return},easeInOutCubic:function(t){if(t<0.5)return TMath.pow(t,3)*4;else return TMath.pow(t-1,3)*4+1},easeInOutSine:function(t){return(1-TMath.cos(TMath.PI*t))/2}}; Transitions["ease-in"]=Transitions.easeInQuad;Transitions["ease-out"]=Transitions.easeOutQuad;var MapConfig={imgPath:(window.location.origin + "/bmap-api/images/"),cityNames:{"\u5317\u4eac":{pinyin:"bj",pt:new Point(116.403874,39.914889)},"\u4e0a\u6d77":{pinyin:"sh",pt:new Point(121.487899,31.249162)},"\u6df1\u5733":{pinyin:"sz",pt:new Point(114.025974,22.546054)},"\u5e7f\u5dde":{pinyin:"gz",pt:new Point(113.30765,23.120049)}},fontFamily:"arial,sans-serif"}; if(baidu.browser.firefox){baidu[Textend](MapConfig,{distCursor:"url("+MapConfig.imgPath+"ruler.cur),crosshair",defaultCursor:"-moz-grab",draggingCursor:"-moz-grabbing"});if(baidu.platform.isWindows)MapConfig.fontFamily="arial,simsun,sans-serif"}else if(baidu.browser.chrome||baidu.browser.safari)baidu[Textend](MapConfig,{distCursor:"url("+MapConfig.imgPath+"ruler.cur) 2 6,crosshair",defaultCursor:"url("+MapConfig.imgPath+"openhand.cur) 8 8,default",draggingCursor:"url("+MapConfig.imgPath+"closedhand.cur) 8 8,move"}); else baidu[Textend](MapConfig,{distCursor:"url("+MapConfig.imgPath+"ruler.cur),crosshair",defaultCursor:"url("+MapConfig.imgPath+"openhand.cur),default",draggingCursor:"url("+MapConfig.imgPath+"closedhand.cur),move"});function Copyright(id,bounds,content){this.id=id;this.bounds=bounds;this.content=content};var Operation={undo:1,redo:2,zoom:4,drag:8,move:16,mousewheel:32,toolbarOperation:64,stdMapCtrlDrag:128,dblclick:256};function setPosition(obj,position){var s=obj.style;s.left=position[0]+"px";s.top=position[1]+"px"}function setUnSelectable(obj){if(baidu.browser.ie>0)obj.unselectable="on";else obj.style.MozUserSelect="none"}function isInDocument(obj){return obj&&obj[TparentNode]&&obj[TparentNode].nodeType!=11}function beforeEndHTML(parent,chlidHTML){baidu.dom.insertHTML(parent,"beforeEnd",chlidHTML);return parent.lastChild} function getPosition(obj){var pos={left:0,top:0};while(obj&&obj.offsetParent){pos.left+=obj.offsetLeft;pos.top+=obj.offsetTop;obj=obj.offsetParent}return pos}function stopBubble(e){var e=window.event||e;e.stopPropagation?e.stopPropagation():e.cancelBubble=true}function preventDefault(e){var e=window.event||e;e.preventDefault?e.preventDefault():e.returnValue=false;return false}function stopAndPrevent(e){stopBubble(e);return preventDefault(e)} function getScroll(){var dd=Tdocument.documentElement,db=Tdocument.body;if(dd&&(dd.scrollTop||dd.scrollLeft))return[dd.scrollTop,dd.scrollLeft];else if(db)return[db.scrollTop,db.scrollLeft];else return[0,0]}function getDistanceByPixel(px1,px2){if(!px1||!px2)return;return TMath.round(TMath.sqrt(TMath.pow(px1.x-px2.x,2)+TMath.pow(px1.y-px2.y,2)))}function jsonToQuery(json,encode){var s=[];encode=encode||function(v){return v};for(var n in json)s.push(n+"="+encode(json[n]));return s.join("&")} function create(tag,attr,ns){var e=Tdocument.createElement(tag);if(ns)e=Tdocument.createElementNS(ns,tag);return baidu.dom.setAttrs(e,attr||{})}function getCurrentStyle(el){if(el.currentStyle)return el.currentStyle;else if(el.ownerDocument&&el.ownerDocument.defaultView)return el.ownerDocument.defaultView.getComputedStyle(el,null)}function isFunction(func){return typeof func=="function"}function isNumber(number){return typeof number=="number"} function isString(string){return typeof string=="string"}function isDefined(object){return typeof object!="undefined"}function isObject(object){return typeof object=="object"}function isArray(source){return"[object Array]"==Object[Tprototype].toString.call(source)}var b64array="ABCDEFGHIJKLMNOP"+"QRSTUVWXYZabcdef"+"ghijklmnopqrstuv"+"wxyz0123456789+/"+"="; function decode64(input){var output="";var chr1,chr2,chr3="";var enc1,enc2,enc3,enc4="";var i=0;var base64test=/[^A-Za-z0-9\+\/\=]/g;if(!input||base64test.exec(input))return input;input=input.replace(/[^A-Za-z0-9\+\/\=]/g,"");do{enc1=b64array.indexOf(input.charAt(i++));enc2=b64array.indexOf(input.charAt(i++));enc3=b64array.indexOf(input.charAt(i++));enc4=b64array.indexOf(input.charAt(i++));chr1=enc1<<2|enc2>>4;chr2=(enc2&15)<<4|enc3>>2;chr3=(enc3&3)<<6|enc4;output=output+String.fromCharCode(chr1); if(enc3!=64)output=output+String.fromCharCode(chr2);if(enc4!=64)output=output+String.fromCharCode(chr3);chr1=chr2=chr3="";enc1=enc2=enc3=enc4=""}while(i<input[Tlength]);return output}var BaseEvent=baidu.lang.Event;function isMobile(){return!!(baidu.platform.isIphone||baidu.platform.isIpad||baidu.platform.isAndroid)}function isDesktop(){return!!(baidu.platform.isWindows||baidu.platform.isMacintosh||baidu.platform.isX11)}function getCurrentTime(){return(new Date).getTime()} function isVml(){var a=Tdocument.body[TappendChild](create("div"));a.innerHTML='<v:shape id="vml_tester1" adj="1" />';var b=a.firstChild;if(!b.style)return false;b.style["behavior"]="url(#default#VML)";var supported=b?typeof b["adj"]=="object":true;a[TparentNode][TremoveChild](a);return supported}function isSvg(){return!!Tdocument.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#Shape","1.1")}function isCanvas(){return!!create("canvas").getContext};var DataMgr={request:function(url){url=url+"&seckey="+BMAP_SECKEY+"&v=1.4";var script=create("script",{"src":url,"type":"text/javascript","charset":"utf-8"});if(script[TaddEventListener])script[TaddEventListener]("load",function(e){var t=e.target;t[TparentNode][TremoveChild](t)},false);else if(script.attachEvent)script.attachEvent("onreadystatechange",function(e){var t=window.event.srcElement;if(t&&(t.readyState==="loaded"||t.readyState==="complete"))t[TparentNode][TremoveChild](t)});setTimeout(function(){Tdocument.getElementsByTagName("head")[0][TappendChild](script); script=null},1)}};var ModuleVersion={"map":"20250206081903","tile":"20250206081903","marker":"20250206081903","markeranimation":"20250206081903","poly":"20250206081903","draw":"20250206081903","drawbysvg":"20250206081903","drawbyvml":"20250206081903","drawbycanvas":"20250206081903","infowindow":"20250206081903","oppc":"20250206081903","opmb":"20250206081903","menu":"20250206081903","control":"20250206081903","navictrl":"20250206081903","geoctrl":"20250206081903","copyrightctrl":"20250206081903", "scommon":"20250206081903","local":"20250206081903","route":"20250206081903","othersearch":"20250206081903","buslinesearch":"20250206081903","hotspot":"20250206081903","autocomplete":"20250206081903","coordtrans":"20250206081903","coordtransutils":"20250206081903","mapclick":"20250206081903"}; baidu.storage=function(){var _prefix="BMap_",ls=window.localStorage,_isSupportLocalStorage="localStorage"in window&&ls!==null&&ls!==undefined;function _getRealyModuleName(moduleName){return _prefix+moduleName+"_"+ModuleVersion[moduleName]}function _check(moduleName){return _isSupportLocalStorage&&!!ls[_getRealyModuleName(moduleName)]}function _set(moduleName,moduleCode){if(_isSupportLocalStorage){_remove(moduleName);try{ls.setItem(_getRealyModuleName(moduleName),moduleCode)}catch(e){ls.clear()}}} function _remove(moduleName){var prefix=_prefix+moduleName+"_",l=ls[Tlength],strKey;while(l--){strKey=ls.key(l);if(strKey.indexOf(prefix)>-1)ls.removeItem(strKey)}}function _get(moduleName){if(_isSupportLocalStorage&&_check(moduleName))return ls.getItem(_getRealyModuleName(moduleName));else return false}return{isSupportLocalStorage:_isSupportLocalStorage,set:_set,get:_get,check:_check}}();function ModuleMgr(){} baidu.object[Textend](ModuleMgr,{Request:{INITIAL:-1,WAITING:0,COMPLETED:1},getDependency:function(){var drawType="drawbysvg";if(isSvg())drawType="drawbysvg";else if(isVml())drawType="drawbyvml";else if(isCanvas())drawType="drawbycanvas";return{"control":[],"marker":[],"poly":["marker",drawType],"drawbysvg":["draw"],"drawbyvml":["draw"],"drawbycanvas":["draw"],"infowindow":["marker"],"menu":[],"oppc":[],"opmb":[],"scommon":[],"local":["scommon"],"route":["scommon"],"othersearch":["scommon"],"autocomplete":["scommon"], "mapclick":["scommon"],"buslinesearch":["route"],"hotspot":[],"coordtransutils":["coordtrans"]}},preLoaded:{},Config:{_baseUrl:(window.location.origin + "/bmap-api/getmodules?v=1.4"),_timeout:5E3},delayFlag:false,Module:{_modules:{},_arrMdls:[],_tempMdls:[]},load:function(moduleName,callback,bExeLoadedCbk){var currentModule=this.current(moduleName);if(currentModule._status==this.Request.COMPLETED){if(bExeLoadedCbk)callback();return}else{if(currentModule._status==this.Request.INITIAL){this.combine(moduleName); this.pushUniqueMdl(moduleName);var me=this;if(me.delayFlag==false){me.delayFlag=true;setTimeout(function(){var mdlsFromServer=[];for(var i=0,l=me.Module._arrMdls[Tlength];i<l;i++){var mdlName=me.Module._arrMdls[i],mdlCode="";if(!T.storage.check(mdlName)){mdlCode="";mdlsFromServer.push(mdlName)}else mdlCode=T.storage.get(mdlName);me.Module._tempMdls.push({mdlName:mdlName,mdlCode:mdlCode})}me.delayFlag=false;me.Module._arrMdls[Tlength]=0;if(mdlsFromServer[Tlength]==0)me.evalAllCode();else{var modpath= me.Config._baseUrl+"&mod="+mdlsFromServer.join(",");DataMgr.request(modpath)}},1)}currentModule._status=this.Request.WAITING}currentModule._callbacks.push(callback)}},combine:function(moduleName){if(moduleName&&this.getDependency()[moduleName]){var dep=this.getDependency()[moduleName];for(var i=0;i<dep[Tlength];i++){this.combine(dep[i]);if(!this.Module._modules[dep[i]])this.pushUniqueMdl(dep[i])}}},pushUniqueMdl:function(mdl){for(var i=0;i<this.Module._arrMdls[Tlength];i++)if(this.Module._arrMdls[i]== mdl)return;this.Module._arrMdls.push(mdl)},run:function(moduleName,moduleCode){var currentModule=this.current(moduleName);try{eval(moduleCode)}catch(e){return}currentModule._status=this.Request.COMPLETED;for(var i=0,l=currentModule._callbacks[Tlength];i<l;i++)currentModule._callbacks[i]();currentModule._callbacks[Tlength]=0},check:function(moduleName,callback){var _self=this;_self.timeout=setTimeout(function(){var status=_self.Module._modules[moduleName]._status;if(status!=_self.Request.COMPLETED){_self.remove(moduleName); _self.load(moduleName,callback)}else clearTimeout(_self.timeout)},_self.Config._timeout)},current:function(moduleName){var currentModule;if(!this.Module._modules[moduleName]){this.Module._modules[moduleName]={};this.Module._modules[moduleName]._status=this.Request.INITIAL;this.Module._modules[moduleName]._callbacks=[]}currentModule=this.Module._modules[moduleName];return currentModule},remove:function(moduleName){var currentModule=this.current(moduleName);delete currentModule},checkCodesStatus:function(mdlName, mdlCode){var tempMdl=this.Module._tempMdls;for(var i=0,l=tempMdl[Tlength];i<l;i++)if(tempMdl[i].mdlCode=="")if(tempMdl[i].mdlName==mdlName)tempMdl[i].mdlCode=mdlCode;else return;this.evalAllCode()},evalAllCode:function(){var tempMdl=this.Module._tempMdls;for(var i=0,l=tempMdl[Tlength];i<l;i++)this.run(tempMdl[i].mdlName,tempMdl[i].mdlCode);this.Module._tempMdls[Tlength]=0}}); function _jsload(mdlName,mdlCode){if(T.storage.isSupportLocalStorage)T.storage.set(mdlName,mdlCode);ModuleMgr.checkCodesStatus(mdlName,mdlCode)};function Pixel(x,y){this.x=x||0;this.y=y||0;this["x"]=this.x;this["y"]=this.y}Pixel[Tprototype].equals=function(other){return other&&other.x==this.x&&other.y==this.y};function Size(width,height){this[Twidth]=width||0;this[Theight]=height||0}Size[Tprototype].equals=function(size){return size&&this[Twidth]==size[Twidth]&&this[Theight]==size[Theight]};function Hotspot(position,opts){if(!position)return;this._position=position;this.guid="spot"+Hotspot.guid++;opts=opts||{};this._text=opts["text"]||"";this._offsets=opts["offsets"]?opts["offsets"].slice(0):[5,5,5,5];this._userData=opts["userData"]||null;this._minZoom=opts["minZoom"]||null;this._maxZoom=opts["maxZoom"]||null}Hotspot.guid=0; baidu[Textend](Hotspot[Tprototype],{initialize:function(map){if(this._minZoom==null)this._minZoom=map.config.minZoom;if(this._maxZoom==null)this._maxZoom=map.config.maxZoom},setPosition:function(position){if(position instanceof Point)this._position=position},getPosition:function(){return this._position},setText:function(text){this._text=text},getText:function(){return this._text},setUserData:function(userData){this._userData=userData},getUserData:function(){return this._userData}});function Control(){this._map=null;this._container;this._type="control";this.blockInfoWindow=true;this._visible=true}baidu.lang.inherits(Control,baidu.lang.Class,"Control"); baidu[Textend](Control[Tprototype],{"initialize":function(map){this._map=map;if(this._container){map.container[TappendChild](this._container);return this._container}return},_i:function(map){if(!this._container&&this["initialize"]&&isFunction(this["initialize"]))this._container=this["initialize"](map);this._opts=this._opts||{printable:false};this._setStyle();this._setPosition();if(this._container)this._container._jsobj=this},_setStyle:function(){var c=this._container;if(c){var s=c.style;s[Tposition]= "absolute";s.zIndex=this._cZIndex||"10";s.MozUserSelect="none";s.WebkitTextSizeAdjust="none";if(!this._opts.printable)baidu.dom.addClass(c,"BMap_noprint");if(!isMobile())baidu.on(c,"contextmenu",stopAndPrevent)}},remove:function(){this._map=null;if(!this._container)return;this._container[TparentNode]&&this._container[TparentNode][TremoveChild](this._container);this._container._jsobj=null;this._container=null},_render:function(){this._container=beforeEndHTML(this._map.container,"<div unselectable='on'></div>"); if(this._visible==false)baidu.dom.hide(this._container);return this._container},_setPosition:function(){this.setAnchor(this._opts.anchor)},setAnchor:function(anchor){if(this.anchorFixed||!isNumber(anchor)||isNaN(anchor)||anchor<BMAP_ANCHOR_TOP_LEFT||anchor>BMAP_ANCHOR_BOTTOM_RIGHT)anchor=this["defaultAnchor"];this._opts=this._opts||{printable:false};this._opts.offset=this._opts.offset||this["defaultOffset"];var preAnchor=this._opts.anchor;this._opts[Tanchor]=anchor;if(!this._container)return;var c= this._container;var x=this._opts.offset[Twidth];var y=this._opts.offset[Theight];c.style.left=c.style.top=c.style.right=c.style.bottom="auto";switch(anchor){case BMAP_ANCHOR_TOP_LEFT:c.style.top=y+"px";c.style.left=x+"px";break;case BMAP_ANCHOR_TOP_RIGHT:c.style.top=y+"px";c.style.right=x+"px";break;case BMAP_ANCHOR_BOTTOM_LEFT:c.style.bottom=y+"px";c.style.left=x+"px";break;case BMAP_ANCHOR_BOTTOM_RIGHT:c.style.bottom=y+"px";c.style.right=x+"px";break;default:break}var a=["TL","TR","BL","BR"];baidu.dom.removeClass(this._container, "anchor"+a[preAnchor]);baidu.dom.addClass(this._container,"anchor"+a[anchor])},getAnchor:function(){return this._opts.anchor},setOffset:function(size){if(!(size instanceof Size))return;this._opts=this._opts||{printable:false};this._opts.offset=new Size(size[Twidth],size[Theight]);if(!this._container)return;this.setAnchor(this._opts.anchor)},getOffset:function(){return this._opts.offset},getDom:function(){return this._container},show:function(){if(this._visible==true)return;this._visible=true;if(this._container)baidu.dom.show(this._container)}, hide:function(){if(this._visible==false)return;this._visible=false;if(this._container)baidu.dom.hide(this._container)},"isPrintable":function(){return!!this._opts.printable},isVisible:function(){if(!this._container&&!this._map)return false;return!!this._visible}});var BMAP_ANCHOR_TOP_LEFT=0,BMAP_ANCHOR_TOP_RIGHT=1,BMAP_ANCHOR_BOTTOM_LEFT=2,BMAP_ANCHOR_BOTTOM_RIGHT=3;var BMAP_NAVIGATION_CONTROL_LARGE=0,BMAP_NAVIGATION_CONTROL_SMALL=1,BMAP_NAVIGATION_CONTROL_PAN=2,BMAP_NAVIGATION_CONTROL_ZOOM=3; function NavigationControl(opts){Control.call(this);opts=opts||{};this._opts={printable:false,showZoomInfo:opts["showZoomInfo"]||true,anchor:opts["anchor"],offset:opts["offset"],type:opts["type"]};this["defaultAnchor"]=isMobile()?BMAP_ANCHOR_BOTTOM_RIGHT:BMAP_ANCHOR_TOP_LEFT;this["defaultOffset"]=new Size(10,10);this.setAnchor(opts["anchor"]);this.setType(opts["type"]);this._asyncLoadCode()}baidu.lang.inherits(NavigationControl,Control,"NavigationControl"); baidu[Textend](NavigationControl[Tprototype],{"initialize":function(map){this._map=map;return this._container},setType:function(type){if(isNumber(type)&&type>=BMAP_NAVIGATION_CONTROL_LARGE&&type<=BMAP_NAVIGATION_CONTROL_ZOOM)this._opts.type=type;else this._opts.type=BMAP_NAVIGATION_CONTROL_LARGE},getType:function(){return this._opts.type},_asyncLoadCode:function(){var me=this;ModuleMgr.load("navictrl",function(){me._asyncLoad()})}});function GeolocationControl(opts){Control.call(this);opts=opts||{};this._opts={anchor:opts["anchor"],offset:opts["offset"],showAddressBar:opts["showAddressBar"],enableAutoLocation:opts["enableAutoLocation"],locationIcon:opts["locationIcon"]};this["defaultAnchor"]=BMAP_ANCHOR_BOTTOM_LEFT;this["defaultOffset"]=new Size(0,4);this._asyncLoadCode()}baidu.lang.inherits(GeolocationControl,Control,"GeolocationControl"); baidu[Textend](GeolocationControl[Tprototype],{"initialize":function(map){this._map=map;return this._container},_asyncLoadCode:function(){var me=this;ModuleMgr.load("geoctrl",function(){me._asyncLoad()})},"getAddressComponent":function(){return this.addressComponent||null},"location":function(){this._opts.enableAutoLocation=true}});function CopyrightControl(opts){Control.call(this);opts=opts||{};this._opts={printable:false,anchor:opts["anchor"],offset:opts["offset"]};this._copyrightCollection=[];this["defaultAnchor"]=BMAP_ANCHOR_BOTTOM_LEFT;this["defaultOffset"]=new Size(5,2);this.setAnchor(opts["anchor"]);this._canShow=true;this.blockInfoWindow=false;this._asyncLoadCode()}baidu.lang.inherits(CopyrightControl,Control,"CopyrightControl"); baidu.object[Textend](CopyrightControl[Tprototype],{"initialize":function(map){this._map=map;return this._container},addCopyright:function(copyright){if(!copyright||!isNumber(copyright["id"])||isNaN(copyright["id"]))return;var ncpy={"bounds":null,"content":""};for(var i in copyright)ncpy[i]=copyright[i];var cp=this.getCopyright(copyright["id"]);if(cp)for(var o in ncpy)cp[o]=ncpy[o];else this._copyrightCollection.push(ncpy)},getCopyright:function(id){for(var i=0,l=this._copyrightCollection[Tlength];i< l;i++)if(this._copyrightCollection[i]["id"]==id)return this._copyrightCollection[i]},getCopyrightCollection:function(){return this._copyrightCollection},removeCopyright:function(id){for(var i=0,l=this._copyrightCollection[Tlength];i<l;i++)if(this._copyrightCollection[i]["id"]==id){r=this._copyrightCollection.splice(i,1);i--;l=this._copyrightCollection[Tlength]}},_asyncLoadCode:function(){var me=this;ModuleMgr.load("copyrightctrl",function(){me._asyncLoad()})}});function OverviewMapControl(opts){Control.call(this);opts=opts||{};this._opts={printable:false,size:opts["size"]||new Size(150,150),padding:5,isOpen:opts["isOpen"]===true?true:false,zoomInterval:4,offset:opts["offset"],anchor:opts["anchor"]};this["defaultAnchor"]=BMAP_ANCHOR_BOTTOM_RIGHT;this["defaultOffset"]=new Size(0,0);this._btnWidth=13;this._btnHeight=13;this.setAnchor(opts.anchor);this.setSize(this._opts.size);this._asyncLoadCode()}baidu.lang.inherits(OverviewMapControl,Control,"OverviewMapControl"); baidu[Textend](OverviewMapControl[Tprototype],{"initialize":function(map){this._map=map;return this._container},setAnchor:function(anchor){Control[Tprototype].setAnchor.call(this,anchor)},changeView:function(){this.changeView._running=true;this._opts.isOpen=!this._opts.isOpen;if(!this._container)this.changeView._running=false},setSize:function(size){if(!(size instanceof Size))size=new Size(150,150);size[Twidth]=size[Twidth]>0?size[Twidth]:150;size[Theight]=size[Theight]>0?size[Theight]:150;this._opts.size= size},getSize:function(){return this._opts.size},isOpen:function(){return this._opts.isOpen},_asyncLoadCode:function(){var me=this;ModuleMgr.load("control",function(){me._asyncLoad()})}});function ScaleControl(opts){Control.call(this);opts=opts||{};this._opts={printable:false,color:"black",unit:"metric",offset:opts["offset"]};this["defaultAnchor"]=BMAP_ANCHOR_BOTTOM_LEFT;this["defaultOffset"]=new Size(81,18);this.setAnchor(opts["anchor"]);this._units={"metric":{name:"metric",conv:1,incon:1E3,u1:"\u7c73",u2:"\u516c\u91cc"},"us":{name:"us",conv:3.2808,incon:5280,u1:"\u82f1\u5c3a",u2:"\u82f1\u91cc"}};if(!this._units[this._opts.unit])this._opts.unit="metric";this._scaleText=null;this._numberArray= {};this._asyncLoadCode()}var BMAP_UNIT_METRIC="metric",BMAP_UNIT_IMPERIAL="us";baidu.lang.inherits(ScaleControl,Control,"ScaleControl"); baidu.object[Textend](ScaleControl[Tprototype],{"initialize":function(map){this._map=map;return this._container},setColor:function(color){this._opts.color=color+""},getColor:function(){return this._opts.color},setUnit:function(unit){this._opts.unit=this._units[unit]&&this._units[unit].name||this._opts.unit},getUnit:function(){return this._opts.unit},_asyncLoadCode:function(){var me=this;ModuleMgr.load("control",function(){me._asyncLoad()})}});var BMAP_MAPTYPE_CONTROL_HORIZONTAL=0,BMAP_MAPTYPE_CONTROL_DROPDOWN=1; function MapTypeControl(opts){Control.call(this);opts=opts||{};this["defaultAnchor"]=BMAP_ANCHOR_TOP_RIGHT;this["defaultOffset"]=new Size(10,10);this._opts={printable:false,mapTypes:[BMAP_NORMAL_MAP,BMAP_SATELLITE_MAP,BMAP_HYBRID_MAP,BMAP_PERSPECTIVE_MAP],type:opts["type"]||BMAP_MAPTYPE_CONTROL_HORIZONTAL,offset:opts["offset"]||this["defaultOffset"],enableSwitch:true};this.setAnchor(opts["anchor"]);if(isArray(opts["mapTypes"]))this._opts.mapTypes=opts["mapTypes"].slice(0);this._asyncLoadCode()} baidu.lang.inherits(MapTypeControl,Control,"MapTypeControl");baidu.object[Textend](MapTypeControl[Tprototype],{"initialize":function(map){this._map=map;return this._container},_asyncLoadCode:function(){var me=this;ModuleMgr.load("control",function(){me._asyncLoad()})}});function ContextMenu(opts){baidu.lang.Class.call(this);this._opts={container:null,cursor:"default"};this._opts=baidu[Textend](this._opts,opts);this._type="contextmenu";this._map=null;this._container;this._shadow;this._left=0;this._top=0;this._items=[];this._rItems=[];this._dividers=[];this.curPixel=null;this.curPoint=null;this._isOpen=false;var me=this;ModuleMgr.load("menu",function(){me._draw()})}baidu.lang.inherits(ContextMenu,baidu.lang.Class,"ContextMenu"); baidu.object[Textend](ContextMenu[Tprototype],{initialize:function(map,overlay){this._map=map;this._overlay=overlay||null},remove:function(){this._map=this._overlay=null},addItem:function(item){if(!item||item._type!="menuitem"||item._text==""||item._width<=0)return;for(var i=0,l=this._items[Tlength];i<l;i++)if(this._items[i]===item)return;this._items.push(item);this._rItems.push(item)},removeItem:function(item){if(!item||item._type!="menuitem")return;for(var i=0,l=this._items[Tlength];i<l;i++)if(this._items[i]=== item){this._items[i].remove();this._items.splice(i,1);l--}for(var i=0,l=this._rItems[Tlength];i<l;i++)if(this._rItems[i]===item){this._rItems[i].remove();this._rItems.splice(i,1);l--}},addSeparator:function(){this._items.push({_type:"divider",_dIndex:this._dividers[Tlength]});this._dividers.push({dom:null})},removeSeparator:function(index){if(!this._dividers[index])return;for(var i=0,l=this._items[Tlength];i<l;i++){if(this._items[i]&&this._items[i]._type=="divider"&&this._items[i]._dIndex==index){this._items.splice(i, 1);l--}if(this._items[i]&&this._items[i]._type=="divider"&&this._items[i]._dIndex>index)this._items[i]._dIndex--}this._dividers.splice(index,1)},getDom:function(){return this._container},show:function(){if(this._isOpen==true)return;this._isOpen=true},hide:function(){if(this._isOpen==false)return;this._isOpen=false},setCursor:function(cursor){if(!cursor)return;this._opts.cursor=cursor},getItem:function(index){return this._rItems[index]}});function MenuItem(text,callback,opts){if(!text||!isFunction(callback))return;baidu.lang.Class.call(this);this._opts={width:100,id:""};opts=opts||{};this._opts[Twidth]=opts["width"]*1?opts["width"]:100;this._opts.id=opts["id"]?opts["id"]:"";this._text=text+"";this._callback=callback;this._map=null;this._type="menuitem";this._contextmenu=null;this._container=null;this._enabled=true;var me=this;ModuleMgr.load("menu",function(){me._draw()})}baidu.lang.inherits(MenuItem,baidu.lang.Class,"MenuItem"); baidu.object[Textend](MenuItem[Tprototype],{initialize:function(map,menu){this._map=map;this._contextmenu=menu},remove:function(){this._contextmenu=null;this._map=null},setText:function(text){if(!text)return;this._text=text+""},getDom:function(){return this._container},enable:function(){this._enabled=true},disable:function(){this._enabled=false}});function Bounds(sw,ne){if(sw&&!ne)ne=sw;this._sw=this._ne=null;this._swLng=this._swLat=null;this._neLng=this._neLat=null;if(sw){this._sw=new Point(sw["lng"],sw["lat"]);this._ne=new Point(ne["lng"],ne["lat"]);this._swLng=sw["lng"];this._swLat=sw["lat"];this._neLng=ne["lng"];this._neLat=ne["lat"]}} baidu.object[Textend](Bounds[Tprototype],{isEmpty:function(){return!this._sw||!this._ne},equals:function(other){if(!(other instanceof Bounds)||this.isEmpty())return false;return this.getSouthWest().equals(other.getSouthWest())&&this.getNorthEast().equals(other.getNorthEast())},getSouthWest:function(){return this._sw},getNorthEast:function(){return this._ne},containsBounds:function(bounds){if(!(bounds instanceof Bounds)||this.isEmpty()||bounds.isEmpty())return false;return bounds._swLng>this._swLng&& bounds._neLng<this._neLng&&bounds._swLat>this._swLat&&bounds._neLat<this._neLat},getCenter:function(){if(this.isEmpty())return null;return new Point((this._swLng+this._neLng)/2,(this._swLat+this._neLat)/2)},intersects:function(bounds){if(!(bounds instanceof Bounds))return null;if(TMath.max(bounds._swLng,bounds._neLng)<TMath.min(this._swLng,this._neLng)||TMath.min(bounds._swLng,bounds._neLng)>TMath.max(this._swLng,this._neLng)||TMath.max(bounds._swLat,bounds._neLat)<TMath.min(this._swLat,this._neLat)|| TMath.min(bounds._swLat,bounds._neLat)>TMath.max(this._swLat,this._neLat))return null;var newMinX=TMath.max(this._swLng,bounds._swLng);var newMaxX=TMath.min(this._neLng,bounds._neLng);var newMinY=TMath.max(this._swLat,bounds._swLat);var newMaxY=TMath.min(this._neLat,bounds._neLat);return new Bounds(new Point(newMinX,newMinY),new Point(newMaxX,newMaxY))},containsPoint:function(point){if(!(point instanceof Point)||this.isEmpty())return false;return point["lng"]>=this._swLng&&point["lng"]<=this._neLng&& point["lat"]>=this._swLat&&point["lat"]<=this._neLat},extend:function(point){if(!(point instanceof Point))return;var lng=point["lng"],lat=point["lat"];if(!this._sw)this._sw=new Point(0,0);if(!this._ne)this._ne=new Point(0,0);if(!this._swLng||this._swLng>lng)this._sw["lng"]=this._swLng=lng;if(!this._neLng||this._neLng<lng)this._ne["lng"]=this._neLng=lng;if(!this._swLat||this._swLat>lat)this._sw["lat"]=this._swLat=lat;if(!this._neLat||this._neLat<lat)this._ne["lat"]=this._neLat=lat},toSpan:function(){if(this.isEmpty())return new Point(0, 0);return new Point(TMath.abs(this._neLng-this._swLng),TMath.abs(this._neLat-this._swLat))}});function Point(lng,lat){if(isNaN(lng)){lng=decode64(lng);lng=isNaN(lng)?0:lng}if(isString(lng))lng=TparseFloat(lng);if(isNaN(lat)){lat=decode64(lat);lat=isNaN(lat)?0:lat}if(isString(lat))lat=TparseFloat(lat);this["lng"]=lng;this["lat"]=lat}Point.isInRange=function(pt){return pt&&pt["lng"]<=180&&pt["lng"]>=-180&&pt["lat"]<=74&&pt["lat"]>=-74};Point[Tprototype].equals=function(other){return other&&this["lat"]==other["lat"]&&this["lng"]==other["lng"]};function Projection(){}Projection[Tprototype].lngLatToPoint=function(){throw"lngLatToPoint\u65b9\u6cd5\u672a\u5b9e\u73b0";};Projection[Tprototype].pointToLngLat=function(){throw"pointToLngLat\u65b9\u6cd5\u672a\u5b9e\u73b0";};function CoordTrans(){};var CoordTransUtils={convertPtToPix3D:function(point,map,cbk){ModuleMgr.load("coordtransutils",function(){CoordTransUtils.asyncConvertPtToPix3D(point,map,cbk)},true)},convertPixToPt3D:function(pixel,map,cbk){ModuleMgr.load("coordtransutils",function(){CoordTransUtils.asyncConvertPixToPt3D(pixel,map,cbk)},true)}};function MercatorProjection(){}MercatorProjection[Tprototype]=new Projection; baidu[Textend](MercatorProjection,{EARTHRADIUS:6370996.81,MCBAND:[1.289059486E7,8362377.87,5591021,3481989.83,1678043.12,0],LLBAND:[75,60,45,30,15,0],MC2LL:[[1.410526172116255E-8,8.98305509648872E-6,-1.9939833816331,200.9824383106796,-187.2403703815547,91.6087516669843,-23.38765649603339,2.57121317296198,-0.03801003308653,1.73379812E7],[-7.435856389565537E-9,8.983055097726239E-6,-0.78625201886289,96.32687599759846,-1.85204757529826,-59.36935905485877,47.40033549296737,-16.50741931063887,2.28786674699375, 1.026014486E7],[-3.030883460898826E-8,8.98305509983578E-6,0.30071316287616,59.74293618442277,7.357984074871,-25.38371002664745,13.45380521110908,-3.29883767235584,0.32710905363475,6856817.37],[-1.981981304930552E-8,8.983055099779535E-6,0.03278182852591,40.31678527705744,0.65659298677277,-4.44255534477492,0.85341911805263,0.12923347998204,-0.04625736007561,4482777.06],[3.09191371068437E-9,8.983055096812155E-6,6.995724062E-5,23.10934304144901,-2.3663490511E-4,-0.6321817810242,-0.00663494467273,0.03430082397953, -0.00466043876332,2555164.4],[2.890871144776878E-9,8.983055095805407E-6,-3.068298E-8,7.47137025468032,-3.53937994E-6,-0.02145144861037,-1.234426596E-5,1.0322952773E-4,-3.23890364E-6,826088.5]],LL2MC:[[-0.0015702102444,111320.7020616939,1704480524535203,-10338987376042340,26112667856603880,-35149669176653700,26595700718403920,-10725012454188240,1800819912950474,82.5],[8.277824516172526E-4,111320.7020463578,6.477955746671607E8,-4.082003173641316E9,1.077490566351142E10,-1.517187553151559E10,1.205306533862167E10, -5.124939663577472E9,9.133119359512032E8,67.5],[0.00337398766765,111320.7020202162,4481351.045890365,-2.339375119931662E7,7.968221547186455E7,-1.159649932797253E8,9.723671115602145E7,-4.366194633752821E7,8477230.501135234,52.5],[0.00220636496208,111320.7020209128,51751.86112841131,3796837.749470245,992013.7397791013,-1221952.21711287,1340652.697009075,-620943.6990984312,144416.9293806241,37.5],[-3.441963504368392E-4,111320.7020576856,278.2353980772752,2485758.690035394,6070.750963243378,54821.18345352118, 9540.606633304236,-2710.55326746645,1405.483844121726,22.5],[-3.218135878613132E-4,111320.7020701615,0.00369383431289,823725.6402795718,0.46104986909093,2351.343141331292,1.58060784298199,8.77738589078284,0.37238884252424,7.45]],getDistanceByMC:function(point1,point2){if(!point1||!point2)return 0;var x1,y1,x2,y2;point1=this.convertMC2LL(point1);if(!point1)return 0;x1=this.toRadians(point1["lng"]);y1=this.toRadians(point1["lat"]);point2=this.convertMC2LL(point2);if(!point2)return 0;x2=this.toRadians(point2["lng"]); y2=this.toRadians(point2["lat"]);return this.getDistance(x1,x2,y1,y2)},getDistanceByLL:function(point1,point2){if(!point1||!point2)return 0;point1["lng"]=this.getLoop(point1["lng"],-180,180);point1["lat"]=this.getRange(point1["lat"],-74,74);point2["lng"]=this.getLoop(point2["lng"],-180,180);point2["lat"]=this.getRange(point2["lat"],-74,74);var x1,x2,y1,y2;x1=this.toRadians(point1["lng"]);y1=this.toRadians(point1["lat"]);x2=this.toRadians(point2["lng"]);y2=this.toRadians(point2["lat"]);return this.getDistance(x1, x2,y1,y2)},convertMC2LL:function(point){var temp,factor;temp=new Point(TMath.abs(point["lng"]),TMath.abs(point["lat"]));for(var i=0;i<this.MCBAND[Tlength];i++)if(temp["lat"]>=this.MCBAND[i]){factor=this.MC2LL[i];break}var lnglat=this.convertor(point,factor);var point=new Point(lnglat["lng"].toFixed(6),lnglat["lat"].toFixed(6));return point},convertLL2MC:function(point){var temp,factor;point["lng"]=this.getLoop(point["lng"],-180,180);point["lat"]=this.getRange(point["lat"],-74,74);temp=new Point(point["lng"], point["lat"]);for(var i=0;i<this.LLBAND[Tlength];i++)if(temp["lat"]>=this.LLBAND[i]){factor=this.LL2MC[i];break}if(!factor)for(var i=this.LLBAND[Tlength]-1;i>=0;i--)if(temp["lat"]<=-this.LLBAND[i]){factor=this.LL2MC[i];break}var mc=this.convertor(point,factor);var point=new Point(mc["lng"].toFixed(2),mc["lat"].toFixed(2));return point},convertor:function(fromPoint,factor){if(!fromPoint||!factor)return;var x=factor[0]+factor[1]*TMath.abs(fromPoint["lng"]);var temp=TMath.abs(fromPoint["lat"])/factor[9]; var y=factor[2]+factor[3]*temp+factor[4]*temp*temp+factor[5]*temp*temp*temp+factor[6]*temp*temp*temp*temp+factor[7]*temp*temp*temp*temp*temp+factor[8]*temp*temp*temp*temp*temp*temp;x*=fromPoint["lng"]<0?-1:1;y*=fromPoint["lat"]<0?-1:1;return new Point(x,y)},getDistance:function(x1,x2,y1,y2){return this.EARTHRADIUS*TMath.acos(TMath.sin(y1)*TMath.sin(y2)+TMath.cos(y1)*TMath.cos(y2)*TMath.cos(x2-x1))},toRadians:function(angdeg){return TMath.PI*angdeg/180},toDegrees:function(angrad){return 180*angrad/ TMath.PI},getRange:function(v,a,b){if(a!=null)v=TMath.max(v,a);if(b!=null)v=TMath.min(v,b);return v},getLoop:function(v,a,b){while(v>b)v-=b-a;while(v<a)v+=b-a;return v}}); baidu[Textend](MercatorProjection[Tprototype],{lngLatToMercator:function(point){return MercatorProjection.convertLL2MC(point)},lngLatToPoint:function(point){var mercator=MercatorProjection.convertLL2MC(point);return new Pixel(mercator["lng"],mercator["lat"])},mercatorToLngLat:function(point){return MercatorProjection.convertMC2LL(point)},pointToLngLat:function(point){var mercator=new Point(point.x,point.y);return MercatorProjection.convertMC2LL(mercator)},pointToPixel:function(point,zoom,mapCenter, mapSize,curCity){if(!point)return;point=this.lngLatToMercator(point,curCity);var zoomUnits=this.getZoomUnits(zoom);var x=TMath.round((point["lng"]-mapCenter["lng"])/zoomUnits+mapSize[Twidth]/2);var y=TMath.round((mapCenter["lat"]-point["lat"])/zoomUnits+mapSize[Theight]/2);return new Pixel(x,y)},pixelToPoint:function(pixel,zoom,mapCenter,mapSize,curCity){if(!pixel)return;var zoomUnits=this.getZoomUnits(zoom);var lng=mapCenter["lng"]+zoomUnits*(pixel.x-mapSize[Twidth]/2);var lat=mapCenter["lat"]-zoomUnits* (pixel.y-mapSize[Theight]/2);var point=new Point(lng,lat);return this.mercatorToLngLat(point,curCity)},getZoomUnits:function(zoom){return TMath.pow(2,18-zoom)}});function PerspectiveProjection(){this.curCityName="bj"}PerspectiveProjection[Tprototype]=new MercatorProjection; baidu[Textend](PerspectiveProjection[Tprototype],{lngLatToMercator:function(lngLat,mapCity){return this._convert2DTo3D(mapCity,MercatorProjection.convertLL2MC(lngLat))},mercatorToLngLat:function(mercator,mapCity){return MercatorProjection.convertMC2LL(this._convert3DTo2D(mapCity,mercator))},"lngLatToPointFor3D":function(lngLat,callback){var me=this;var mcPt=MercatorProjection.convertLL2MC(lngLat);ModuleMgr.load("coordtrans",function(){var obj=CoordTrans.getOMap_pts(me.curCityName||"bj",mcPt);var pix= new Pixel(obj.x,obj.y);callback&&callback(pix)},true)},"pointToLngLatFor3D":function(point,callback){var me=this;var pixPt=new Point(point.x,point.y);ModuleMgr.load("coordtrans",function(){var obj=CoordTrans.getMapJw_pts(me.curCityName||"bj",pixPt);var mcPt=new Point(obj["lng"],obj["lat"]);var llPt=MercatorProjection.convertMC2LL(mcPt);callback&&callback(llPt)},true)},_convert2DTo3D:function(city,point){if(ModuleMgr.current("coordtrans")._status==ModuleMgr.Request.COMPLETED){var obj=CoordTrans.getOMap_pts(city|| "bj",point);return new Point(obj.x,obj.y)}else{ModuleMgr.load("coordtrans",function(){});return new Point(0,0)}},_convert3DTo2D:function(city,point){if(ModuleMgr.current("coordtrans")._status==ModuleMgr.Request.COMPLETED){var obj=CoordTrans.getMapJw_pts(city||"bj",point);return new Point(obj["lng"],obj["lat"])}else{ModuleMgr.load("coordtrans",function(){});return new Point(0,0)}},getZoomUnits:function(zoom){return TMath.pow(2,20-zoom)}});function Overlay(){this._type="overlay"}baidu.lang.inherits(Overlay,baidu.lang.Class,"Overlay");Overlay.getZIndex=function(lat){lat=lat*1;if(!lat)return 0;return lat*-1E5<<1}; baidu[Textend](Overlay[Tprototype],{_i:function(map){if(!this.domElement&&isFunction(this["initialize"])){this.domElement=this["initialize"](map);if(this.domElement)this.domElement.style.WebkitUserSelect="none"}isFunction(this["draw"])?this["draw"]():this["draw"]()},"initialize":function(map){throw"initialize\u65b9\u6cd5\u672a\u5b9e\u73b0";},"draw":function(){throw"draw\u65b9\u6cd5\u672a\u5b9e\u73b0";},remove:function(){if(this.domElement&&this.domElement[TparentNode])this.domElement[TparentNode][TremoveChild](this.domElement); this.domElement=null;this.dispatchEvent(new BaseEvent("onremove"))},hide:function(){if(this.domElement)baidu.dom.hide(this.domElement)},show:function(){if(this.domElement)baidu.dom.show(this.domElement)},isVisible:function(){if(!this.domElement)return false;if(this.domElement.style.display=="none"||this.domElement.style.visibility=="hidden")return false;return true}}); BMap.register(function(map){var t=map.temp;t.overlayDiv=map.overlayDiv=_createOverlayDiv(map.platform,200);map._panes.floatPane=_createOverlayDiv(t.overlayDiv,800);map._panes.markerMouseTarget=_createOverlayDiv(t.overlayDiv,700);map._panes.floatShadow=_createOverlayDiv(t.overlayDiv,600);map._panes.labelPane=_createOverlayDiv(t.overlayDiv,500);map._panes.markerPane=_createOverlayDiv(t.overlayDiv,400);map._panes.markerShadow=_createOverlayDiv(t.overlayDiv,300);map._panes.vertexPane=_createOverlayDiv(t.overlayDiv, 201);map._panes.mapPane=_createOverlayDiv(t.overlayDiv,200);function _createOverlayDiv(container,zIndex){var div=create("div"),s=div.style;s[Tposition]="absolute";s.top=s.left=s[Twidth]=s[Theight]="0";s.zIndex=zIndex;container[TappendChild](div);return div}});function OverlayInternal(){baidu.lang.Class.call(this);Overlay.call(this);this.map=null;this._visible=true;this.infoWindow=null;this._dblclickTime=0}baidu.lang.inherits(OverlayInternal,Overlay,"OverlayInternal"); baidu[Textend](OverlayInternal[Tprototype],{"initialize":function(map){this.map=map;baidu.lang.Class.call(this,this.guid);return null},getMap:function(){return this.map},"draw":function(){},remove:function(){this.map=null;baidu.lang.decontrol(this.guid);Overlay[Tprototype].remove.call(this)},hide:function(){if(this._visible==false)return;this._visible=false},show:function(){if(this._visible==true)return;this._visible=true},isVisible:function(){if(!this.domElement)return false;return!!this._visible}, getContainer:function(){return this.domElement},setConfig:function(opts){opts=opts||{};for(var k in opts)this._config[k]=opts[k]},setZIndex:function(index){this.zIndex=index},enableMassClear:function(){this._config.enableMassClear=true},disableMassClear:function(){this._config.enableMassClear=false},addContextMenu:function(menu){this._menu=menu},removeContextMenu:function(menu){this._menu=null}});function OverlayMgr(){this.map=null;this._overlays={};this._customOverlays=[]} BMap.register(function(map){var mgr=new OverlayMgr;mgr.map=map;map._overlays=mgr._overlays;map._customOverlays=mgr._customOverlays;map[TaddEventListener]("load",function(e){mgr["draw"](e)});map[TaddEventListener]("moveend",function(e){mgr["draw"](e)});if(baidu.browser.ie&&baidu.browser.ie<8||Tdocument.compatMode=="BackCompat")map[TaddEventListener]("zoomend",function(e){setTimeout(function(){mgr["draw"](e)},20)});else map[TaddEventListener]("zoomend",function(e){mgr["draw"](e)});map[TaddEventListener]("maptypechange", function(e){mgr["draw"](e)});map[TaddEventListener]("addoverlay",function(e){var overlay=e.target;if(overlay instanceof OverlayInternal){if(!mgr._overlays[overlay.guid])mgr._overlays[overlay.guid]=overlay}else{var exist=false;for(var i=0,l=mgr._customOverlays[Tlength];i<l;i++)if(mgr._customOverlays[i]===overlay){exist=true;break}if(!exist)mgr._customOverlays.push(overlay)}});map[TaddEventListener]("removeoverlay",function(e){var overlay=e.target;if(overlay instanceof OverlayInternal)delete mgr._overlays[overlay.guid]; else for(var i=0,l=mgr._customOverlays[Tlength];i<l;i++)if(mgr._customOverlays[i]===overlay){mgr._customOverlays.splice(i,1);break}});map[TaddEventListener]("clearoverlays",function(e){this.closeInfoWindow();for(var overlayHashCode in mgr._overlays)if(mgr._overlays[overlayHashCode]._config.enableMassClear){mgr._overlays[overlayHashCode].remove();delete mgr._overlays[overlayHashCode]}for(var i=0,l=mgr._customOverlays[Tlength];i<l;i++)if(mgr._customOverlays[i].enableMassClear!=false){mgr._customOverlays[i].remove(); mgr._customOverlays[i]=null;mgr._customOverlays.splice(i,1);i--;l--}});map[TaddEventListener]("infowindowopen",function(e){var bubble=this.infoWindow;if(bubble){baidu.dom.hide(bubble.popDom);baidu.dom.hide(bubble.shadowDom)}});map[TaddEventListener]("movestart",function(){if(this.getInfoWindow())this.getInfoWindow()._setOverflow()});map[TaddEventListener]("moveend",function(){if(this.getInfoWindow())this.getInfoWindow()._resetOverflow()})}); OverlayMgr[Tprototype]["draw"]=function(e){for(var overlayHashCode in this._overlays)this._overlays[overlayHashCode]["draw"]();baidu.array.each(this._customOverlays,function(overlay){overlay["draw"]()});if(this.map.temp.infoWin)this.map.temp.infoWin.setPosition();if(BMap.DrawerSelector){var drawer=BMap.DrawerSelector.getDrawer(this.map);drawer.setPalette()}};function Graph(opts){OverlayInternal.call(this);opts=opts||{};this._config={strokeColor:opts["strokeColor"]||"#3a6bdb",strokeWeight:opts["strokeWeight"]||5,strokeOpacity:opts["strokeOpacity"]||0.65,strokeStyle:opts["strokeStyle"]||"solid",enableMassClear:opts["enableMassClear"]===false?false:true,getParseTolerance:null,getParseCacheIndex:null,enableEditing:opts["enableEditing"]===true?true:false,mouseOverTolerance:15,use3DCoords:false,clickable:opts["enableClicking"]===false?false:true};if(this._config.strokeWeight<= 0)this._config.strokeWeight=5;if(this._config.strokeOpacity<0||this._config.strokeOpacity>1)this._config.strokeOpacity=0.65;if(this._config.fillOpacity<0||this._config.fillOpacity>1)this._config.fillOpacity=0.65;if(this._config.strokeStyle!="solid"&&this._config.strokeStyle!="dashed")this._config.strokeStyle="solid";this.domElement=null;this._bounds=new Bounds(0,0,0,0);this._parseCache=[];this.vertexMarkers=[];this._temp={}}baidu.lang.inherits(Graph,OverlayInternal,"Graph"); Graph.getGraphPoints=function(points){var result=[];if(!points)return result;if(isString(points)){var pts=points.split(";");baidu.array.each(pts,function(pt){var ptxy=pt.split(",");result.push(new Point(ptxy[0],ptxy[1]))})}if(Object[Tprototype].toString.apply(points)=="[object Array]"&&points[Tlength]>0)result=points;return result};Graph.parseTolerance=[0.09,0.0050,1.0E-4,1.0E-5]; baidu[Textend](Graph[Tprototype],{"initialize":function(map){this.map=map;return null},"draw":function(){return;if(!this.domElement)return;if(this._drawer)this._drawer.setPath(this.domElement,this._getDisplayPixels(this.points))},_setPath:function(points){this._parseCache[Tlength]=0;this.points=Graph.getGraphPoints(points).slice(0);this._calcBounds()},setPath:function(points){this._setPath(points)},_calcBounds:function(){if(!this.points)return;var me=this;me._bounds=new Bounds;baidu.array.each(this.points, function(point){me._bounds[Textend](point)})},getPath:function(){return this.points},setPositionAt:function(index,point){if(!point||!this.points[index])return;this._parseCache[Tlength]=0;this.points[index]=new Point(point["lng"],point["lat"]);this._calcBounds()},setStrokeColor:function(color){this._config.strokeColor=color},getStrokeColor:function(){return this._config.strokeColor},setStrokeWeight:function(weight){if(weight>0)this._config.strokeWeight=weight},getStrokeWeight:function(){return this._config.strokeWeight}, setStrokeOpacity:function(opacity){if(!opacity||opacity>1||opacity<0)return;this._config.strokeOpacity=opacity},getStrokeOpacity:function(){return this._config.strokeOpacity},setFillOpacity:function(opacity){if(opacity>1||opacity<0)return;this._config.fillOpacity=opacity},getFillOpacity:function(){return this._config.fillOpacity},setStrokeStyle:function(strokeStyle){if(strokeStyle!="solid"&&strokeStyle!="dashed")return;this._config.strokeStyle=strokeStyle},getStrokeStyle:function(){return this._config.strokeStyle}, setFillColor:function(color){this._config.fillColor=color||""},getFillColor:function(){return this._config.fillColor},getBounds:function(){return this._bounds},remove:function(){if(this.map)this.map[TremoveEventListener]("onmousemove",this._graphMouseEvent);OverlayInternal[Tprototype].remove.call(this);this._parseCache[Tlength]=0},enableEditing:function(){if(this.points[Tlength]<2)return;this._config.enableEditing=true;var me=this;ModuleMgr.load("poly",function(){me.addVertexs()},true)},disableEditing:function(){this._config.enableEditing= false;var me=this;ModuleMgr.load("poly",function(){me.clearVertexs()},true)}});function Division(opts){OverlayInternal.call(this);this.map=null;this.domElement=null;this._config={width:0,height:0,offset:new Size(0,0),opacity:1,background:"transparent",lineStroke:1,lineColor:"#000",lineStyle:"solid",point:null};this.setConfig(opts);this.point=this._config.point}baidu.lang.inherits(Division,OverlayInternal,"Division"); baidu[Textend](Division[Tprototype],{_addDom:function(){var config=this._config;var content=this.content;var html=['<div class="BMap_Division" style="position:absolute;'];html.push("width:"+config[Twidth]+"px;display:block;");html.push("overflow:hidden;");if(config.borderColor!="none")html.push("border:"+config.lineStroke+"px "+config.lineStyle+" "+config.lineColor+";");html.push("opacity:"+config.opacity+"; filter:(opacity="+config.opacity*100+")");html.push("background:"+config.background+";"); html.push('z-index:60;">');html.push(content);html.push("</div>");this.domElement=beforeEndHTML(this.map.getPanes().markerMouseTarget,html.join(""))},"initialize":function(map){this.map=map;this._addDom();if(this.domElement){var eventName=isMobile()?"touchstart":"mousedown";baidu.on(this.domElement,eventName,function(e){stopBubble(e)})}return this.domElement},"draw":function(){var pix=this.map.pointToOverlayPixel(this._config.point);this._config.offset=new Size(-TMath.round(this._config[Twidth]/2)- TMath.round(this._config.lineStroke),-TMath.round(this._config[Theight]/2)-TMath.round(this._config.lineStroke));this.domElement.style.left=pix.x+this._config.offset[Twidth]+"px";this.domElement.style.top=pix.y+this._config.offset[Theight]+"px"},getPosition:function(){return this._config.point},_getPixel:function(point){return this.map.pointToPixel(this.getPosition())},setPosition:function(point){this._config.point=point;this["draw"]()},setDimension:function(w,h){this._config[Twidth]=TMath.round(w); this._config[Theight]=TMath.round(h);if(this.domElement){this.domElement.style[Twidth]=this._config[Twidth]+"px";this.domElement.style[Theight]=this._config[Theight]+"px";this["draw"]()}}});function Icon(imageUrl,size,opts){if(!imageUrl||!size)return;this["imageUrl"]=imageUrl;this["size"]=size;var defaultAnchor=new Size(TMath.floor(size[Twidth]/2),TMath.floor(size[Theight]/2));opts=opts||{};var _config={anchor:opts["anchor"]||defaultAnchor,imageOffset:opts["imageOffset"]||new Size(0,0)};this["imageSize"]=opts["imageSize"];this["anchor"]=_config.anchor;this["imageOffset"]=_config.imageOffset;this["infoWindowAnchor"]=opts["infoWindowAnchor"]||this["anchor"];this["printImageUrl"]=opts["printImageUrl"]|| ""}var IconPrototype=Icon[Tprototype]; baidu[Textend](Icon[Tprototype],{setImageUrl:function(url){if(!url)return;this["imageUrl"]=url},setPrintImageUrl:function(url){if(!url)return;this["printImageUrl"]=url},setSize:function(size){if(!size)return;this["size"]=new Size(size[Twidth],size[Theight])},setAnchor:function(size){if(!size)return;this["anchor"]=new Size(size[Twidth],size[Theight])},setImageOffset:function(size){if(!size)return;this["imageOffset"]=new Size(size[Twidth],size[Theight])},setInfoWindowAnchor:function(size){if(!size)return;this["infoWindowAnchor"]= new Size(size[Twidth],size[Theight])},setImageSize:function(size){if(!size)return;this["imageSize"]=new Size(size[Twidth],size[Theight])},toString:function(){return"Icon"}});function InfoWindow(content,opts){baidu.lang.Class.call(this);this.content=content;this.map=null;opts=opts||{};this._config={width:opts["width"]||0,height:opts["height"]||0,maxWidth:opts["maxWidth"]||600,offset:opts["offset"]||new Size(0,0),title:opts["title"]||"",maxContent:opts["maxContent"]||"",enableMaximize:opts["enableMaximize"]||false,enableAutoPan:opts["enableAutoPan"]===false?false:true,enableCloseOnClick:opts["enableCloseOnClick"]===false?false:true,margin:[10,10,40,10],collisions:[[10, 10],[10,10],[10,10],[10,10]],ifMaxScene:false,onClosing:function(){return true},enableSearchTool:opts["enableSearchTool"]===true?true:false};if(this._config[Twidth]!=0){if(this._config[Twidth]<220)this._config[Twidth]=220;if(this._config[Twidth]>730)this._config[Twidth]=730}if(this._config[Theight]!=0){if(this._config[Theight]<60)this._config[Theight]=60;if(this._config[Theight]>650)this._config[Theight]=650}if(this._config.maxWidth!=0){if(this._config.maxWidth<220)this._config.maxWidth=220;if(this._config.maxWidth> 730)this._config.maxWidth=730}this.isWinMax=false;this.IMG_PATH=MapConfig.imgPath;this.overlay=null;var me=this;ModuleMgr.load("infowindow",function(){me._draw()})}baidu.lang.inherits(InfoWindow,baidu.lang.Class,"InfoWindow"); baidu[Textend](InfoWindow[Tprototype],{"setWidth":function(width){if(!width&&width!=0||isNaN(width)||width<0)return;if(width!=0){if(width<220)width=220;if(width>730)width=730}this._config[Twidth]=width},"setHeight":function(height){if(!height&&height!=0||isNaN(height)||height<0)return;if(height!=0){if(height<60)height=60;if(height>650)height=650}this._config[Theight]=height},setMaxWidth:function(width){if(!width&&width!=0||isNaN(width)||width<0)return;if(width!=0){if(width<220)width=220;if(width> 730)width=730}this._config.maxWidth=width},setTitle:function(title){this._config.title=title},"getTitle":function(){return this._config.title},setContent:function(content){this.content=content},getContent:function(){return this.content},setMaxContent:function(content){this._config.maxContent=content+""},redraw:function(){},enableAutoPan:function(){this._config.enableAutoPan=true},"disableAutoPan":function(){this._config.enableAutoPan=false},"enableCloseOnClick":function(){this._config.enableCloseOnClick= true},"disableCloseOnClick":function(){this._config.enableCloseOnClick=false},enableMaximize:function(){this._config.enableMaximize=true},disableMaximize:function(){this._config.enableMaximize=false},show:function(){this._visible=true},hide:function(){this._visible=false},close:function(){this.hide()},maximize:function(){this.isWinMax=true},restore:function(){this.isWinMax=false},isVisible:function(){return this.isOpen()},isOpen:function(){return false},getPosition:function(){if(this.overlay&&this.overlay.getPosition)return this.overlay.getPosition()}, getOffset:function(){return this._config.offset}});Map[Tprototype].openInfoWindow=function(infoWin,point){if(!(infoWin instanceof InfoWindow)||!(point instanceof Point))return;var t=this.temp;if(!t.marker){var icon=new Icon(MapConfig.imgPath+"blank.gif",{"width":1,"height":1});t.marker=new Marker(point,{"icon":icon,"offset":new Size(0,0),"clickable":false});t.marker._fromMap=1}else t.marker.setPosition(point);this.addOverlay(t.marker);t.marker.openInfoWindow(infoWin)}; Map[Tprototype].closeInfoWindow=function(){var infoWin=this.temp.infoWin||this.temp._infoWin;if(infoWin&&infoWin.overlay)infoWin.overlay.closeInfoWindow()};OverlayInternal[Tprototype].openInfoWindow=function(infoWin){if(this.map){this.map.closeInfoWindow();infoWin._visible=true;this.map.temp._infoWin=infoWin;infoWin.overlay=this;baidu.lang.Class.call(infoWin,infoWin.guid)}}; OverlayInternal[Tprototype].closeInfoWindow=function(){if(this.map&&this.map.temp._infoWin){this.map.temp._infoWin._visible=false;baidu.lang.decontrol(this.map.temp._infoWin.guid);this.map.temp._infoWin=null}};function Label(content,opts){OverlayInternal.call(this);this.content=content;this.map=null;this.domElement=null;opts=opts||{};this._config={width:0,offset:opts["offset"]||new Size(0,0),styles:{backgroundColor:"#fff",border:"1px solid #f00",padding:"1px",whiteSpace:"nowrap",font:"12px "+MapConfig.fontFamily,zIndex:"80",MozUserSelect:"none"},position:opts["position"]||null,enableMassClear:opts["enableMassClear"]===false?false:true,clickable:true};if(this._config[Twidth]<0)this._config[Twidth]=0;if(isDefined(opts["enableClicking"]))this._config.clickable= opts["enableClicking"];this.point=this._config[Tposition];var me=this;ModuleMgr.load("marker",function(){me._draw()})}baidu.lang.inherits(Label,OverlayInternal,"Label"); baidu[Textend](Label[Tprototype],{getPosition:function(){if(this._marker)return this._marker.getPosition();return this.point},setPosition:function(point){if(point instanceof Point&&!this.getMarker())this.point=this._config[Tposition]=new Point(point["lng"],point["lat"])},setContent:function(content){this.content=content},setOpacity:function(opacity){if(opacity>=0&&opacity<=1)this._config.opacity=opacity},setOffset:function(size){if(!(size instanceof Size))return;this._config.offset=new Size(size[Twidth], size[Theight])},getOffset:function(){return this._config.offset},setStyle:function(styles){styles=styles||{};this._config.styles=baidu[Textend](this._config.styles,styles)},setStyles:function(styles){return this.setStyle(styles)},setTitle:function(title){this._config.title=title||""},"getTitle":function(){return this._config.title},setMarker:function(marker){this._marker=marker;if(marker)this.point=this._config[Tposition]=marker.getPosition();else this.point=this._config[Tposition]=null},getMarker:function(){return this._marker|| null}});var BMAP_ANIMATION_DROP=1,BMAP_ANIMATION_BOUNCE=2;var DEFAULT_ICON=new Icon(MapConfig.imgPath+"marker_red_sprite.png",new Size(19,25),{"anchor":new Size(10,25),"infoWindowAnchor":new Size(10,0)});var DEFAULT_SHADOW=new Icon(MapConfig.imgPath+"marker_red_sprite.png",new Size(20,11),{"anchor":new Size(6,11),"imageOffset":new Size(-19,-13)}); function Marker(point,opts){OverlayInternal.call(this);opts=opts||{};this.point=point;this.map=null;this._animation=null;this._config={offset:opts["offset"]||new Size(0,0),icon:opts["icon"]||DEFAULT_ICON,shadow:DEFAULT_SHADOW,title:opts["title"]||"",label:null,baseZIndex:opts["baseZIndex"]||0,clickable:true,zIndexFixed:false,isTop:false,enableMassClear:true,enableDragging:false,raiseOnDrag:opts["raiseOnDrag"]||false,restrictDraggingArea:false,draggingCursor:opts["draggingCursor "]||MapConfig.draggingCursor}; if(opts["icon"]&&!opts["shadow"])this._config.shadow=null;if(opts["enableDragging"])this._config.enableDragging=opts["enableDragging"];if(opts["enableMassClear"])this._config.enableMassClear=opts["enableMassClear"];if(isDefined(opts["enableClicking"]))this._config.clickable=opts["enableClicking"];var me=this;ModuleMgr.load("marker",function(){me._draw()})}Marker.TOP_ZINDEX=Overlay.getZIndex(-90)+1E6;Marker.DRAG_ZINDEX=Marker.TOP_ZINDEX+1E6;baidu.lang.inherits(Marker,OverlayInternal,"Marker"); baidu[Textend](Marker[Tprototype],{setIcon:function(icon){if(icon instanceof Icon)this._config.icon=icon},getIcon:function(){return this._config.icon},setShadow:function(shadow){if(shadow instanceof Icon)this._config.shadow=shadow},"getShadow":function(){return this._config.shadow},setLabel:function(label){this._config.label=label||null},getLabel:function(){return this._config.label},enableDragging:function(){this._config.enableDragging=true},disableDragging:function(){this._config.enableDragging= false},getPosition:function(){return this.point},setPosition:function(point){if(point instanceof Point)this.point=new Point(point["lng"],point["lat"])},setTop:function(top,addi){this._config.isTop=!!top;if(top)this._addi=addi||0},setTitle:function(title){this._config.title=title+""},"getTitle":function(){return this._config.title},setOffset:function(offset){if(offset instanceof Size)this._config.offset=offset},getOffset:function(){return this._config.offset},setAnimation:function(animation){this._animation= animation}});function Polygon(points,opts){Graph.call(this,opts);opts=opts||{};this._config.fillOpacity=opts["fillOpacity"]?opts["fillOpacity"]:0.65;if(opts.fillColor=="")this._config.fillColor="";else this._config.fillColor=opts["fillColor"]?opts["fillColor"]:"#fff";this.setPath(points);var me=this;ModuleMgr.load("poly",function(){me._draw()})}baidu.lang.inherits(Polygon,Graph,"Polygon"); baidu[Textend](Polygon[Tprototype],{setPath:function(points,flag){this._userPoints=Graph.getGraphPoints(points).slice(0);var pts=Graph.getGraphPoints(points).slice(0);if(pts[Tlength]>1&&!pts[0].equals(pts[pts[Tlength]-1]))pts.push(new Point(pts[0]["lng"],pts[0]["lat"]));Graph[Tprototype].setPath.call(this,pts,flag)},setPositionAt:function(index,point){if(!this._userPoints[index])return;this._userPoints[index]=new Point(point["lng"],point["lat"]);this.points[index]=new Point(point["lng"],point["lat"]); if(index==0&&!this.points[0].equals(this.points[this.points[Tlength]-1]))this.points[this.points[Tlength]-1]=new Point(point["lng"],point["lat"]);this._calcBounds()},getPath:function(){var res=this._userPoints;if(res[Tlength]==0)res=this.points;return res}});function Polyline(points,opts){Graph.call(this,opts);this._setPath(points);var me=this;ModuleMgr.load("poly",function(){me._draw()})}baidu.lang.inherits(Polyline,Graph,"Polyline");function Circle(center,radius,opts){this.point=center;this.radius=TMath.abs(radius);Polygon.call(this,[],opts)}Circle.parseTolerance=[0.01,1.0E-4,1.0E-5,4.0E-6];baidu.lang.inherits(Circle,Polygon,"Circle"); baidu[Textend](Circle[Tprototype],{"initialize":function(map){this.map=map;this.points=this._getPerimeterPoints(this.point,this.radius);this._calcBounds();return null},getCenter:function(){return this.point},setCenter:function(point,keepVertexCache){if(!point)return;this.point=point},getRadius:function(){return this.radius},setRadius:function(radius){this.radius=TMath.abs(radius)},_getPerimeterPoints:function(center,radius){if(!center||!radius||!this.map)return[];var map=this.map;var cx=center["lng"], cy=center["lat"];var points=[];var d=radius/6378800,lat1=TMath.PI/180*cy,lng1=TMath.PI/180*cx;for(var i=0;i<360;i+=9){var tc=TMath.PI/180*i,y=TMath.asin(TMath.sin(lat1)*TMath.cos(d)+TMath.cos(lat1)*TMath.sin(d)*TMath.cos(tc)),dlng=TMath.atan2(TMath.sin(tc)*TMath.sin(d)*TMath.cos(lat1),TMath.cos(d)-TMath.sin(lat1)*TMath.sin(y)),x=(lng1-dlng+TMath.PI)%(2*TMath.PI)-TMath.PI,point=new Point(x*(180/TMath.PI),y*(180/TMath.PI));points.push(point)}var fstPoint=points[0];points.push(new Point(fstPoint["lng"], fstPoint["lat"]));return points}});var MarkerAnimations={};function TileMgr(map){this.map=map;this.mapTypeLayers=[];this.tileLayers=[];this.bufferNumber=300;this.realBufferNumber=0;this.mapTiles={};this.bufferTiles={};this.numLoading=0;this._mapTypeLayerContainer=this._createDiv(1);this._normalLayerContainer=this._createDiv(2);map.platform[TappendChild](this._mapTypeLayerContainer);map.platform[TappendChild](this._normalLayerContainer)}BMap.register(function(map){var mgr=new TileMgr(map);mgr.initialize()}); baidu[Textend](TileMgr[Tprototype],{initialize:function(){var me=this,map=me.map;map[TaddEventListener]("loadcode",function(){me.loadTiles()});map[TaddEventListener]("addtilelayer",function(e){me.addTileLayer(e)});map[TaddEventListener]("removetilelayer",function(e){me.removeTileLayer(e)});map[TaddEventListener]("setmaptype",function(e){me.setMapType(e)});map[TaddEventListener]("zoomstartcode",function(e){me._zoom(e)})},loadTiles:function(){var me=this;if(baidu.browser.ie)try{Tdocument.execCommand("BackgroundImageCache", false,true)}catch(e){}if(!this.loaded)me.initMapTypeTiles();me.moveGridTiles();if(!this.loaded){this.loaded=true;ModuleMgr.load("tile",function(){me._asyncLoadTiles()})}},initMapTypeTiles:function(){var mapType=this.map.getMapType();var layers=mapType.getTileLayers();for(var i=0;i<layers[Tlength];i++){var thisLayer=new TileLayer;baidu[Textend](thisLayer,layers[i]);this.mapTypeLayers.push(thisLayer);thisLayer.initialize(this.map,this._mapTypeLayerContainer)}},_createDiv:function(zIndex){var div=create("div"); div.style[Tposition]="absolute";div.style.overflow="visible";div.style.left=div.style.top="0";div.style.zIndex=zIndex;return div},showTile:function(tileInfo,centerPos,tilelayer){var me=this;me.centerPos=centerPos;var mapType=this.map.getMapType();var tileName=me.getTileName(tileInfo,tilelayer);var tileSize=mapType.getTileSize();var posX=tileInfo[0]*tileSize+centerPos[0];var rpix=0;if(mapType===BMAP_PERSPECTIVE_MAP&&me.map.getZoom()==15)rpix=0.5;var posY=(rpix-1-tileInfo[1])*tileSize+centerPos[1]; var position=[posX,posY];var tile=this.mapTiles[tileName];if(tile&&tile.img){setPosition(tile.img,position);if(tile.loaded)this._checkTilesLoaded();else tile._addLoadCbk(function(){me._checkTilesLoaded()});return}tile=this.bufferTiles[tileName];if(tile&&tile.img){tilelayer.tilesDiv.insertBefore(tile.img,tilelayer.tilesDiv.lastChild);this.mapTiles[tileName]=tile;setPosition(tile.img,position);if(tile.loaded)this._checkTilesLoaded();else tile._addLoadCbk(function(){me._checkTilesLoaded()});return}var zoomUnits= 256*TMath.pow(2,mapType.getMaxZoom()-tileInfo[2]);var point=new Point(tileInfo[0]*zoomUnits,tileInfo[1]*zoomUnits);var tileCoord=new Pixel(tileInfo[0],tileInfo[1]);var src=tilelayer["getTilesUrl"](tileCoord,tileInfo[2]);tile=new Tile(this,src,position,tileInfo,tilelayer);tile._addLoadCbk(function(){me._checkTilesLoaded()});tile._load();this.mapTiles[tileName]=tile},_checkTilesLoaded:function(){this.numLoading--;var me=this;if(this.numLoading==0){if(this._checkLoadedTimer){clearTimeout(this._checkLoadedTimer); this._checkLoadedTimer=null}this._checkLoadedTimer=setTimeout(function(){if(me.numLoading==0){me.map.dispatchEvent(new BaseEvent("ontilesloaded"));if(isFirstTilesLoaded){if(TIME_LINE.startLoadScript&&TIME_LINE.loadScriptEnd&&TIME_LINE.loadedMap){var currentTime=TIME_LINE.firstTilesLoaded=getCurrentTime();var size=me.map.getSize();setTimeout(function(){_addStat(5030,{"load_script_time":TIME_LINE.loadScriptEnd-TIME_LINE.startLoadScript,"load_tiles_time":currentTime-TIME_LINE.loadedMap,"map_width":size[Twidth], "map_height":size[Theight],"map_size":size[Twidth]*size[Theight]})},1E4)}isFirstTilesLoaded=false}}me._checkLoadedTimer=null},80)}},getTileName:function(tileInfo,tilelayer){if(this.map.getMapType()===BMAP_PERSPECTIVE_MAP)return"TILE-"+tilelayer.guid+"-"+this.map.cityCode+"-"+tileInfo[0]+"-"+tileInfo[1]+"-"+tileInfo[2];else return"TILE-"+tilelayer.guid+"-"+tileInfo[0]+"-"+tileInfo[1]+"-"+tileInfo[2]},hideTile:function(tile){var img=tile.img;if(img){purge(img);if(isInDocument(img))img[TparentNode][TremoveChild](img)}delete this.mapTiles[tile.name]; if(!tile.loaded){purge(img);img=null;tile._callCbks();tile.img=null;tile.mgr=null}},moveGridTiles:function(){var me=this,map=me.map,mapType=map.getMapType();if(mapType==BMAP_PERSPECTIVE_MAP)ModuleMgr.load("coordtrans",function(){me._moveGridTiles()},true);else me._moveGridTiles()},_moveGridTiles:function(){var mapTypeLayers=this.mapTypeLayers;var layers=mapTypeLayers.concat(this.tileLayers);var layernums=layers[Tlength];for(var n=0;n<layernums;n++){var tilelayer=layers[n];if(tilelayer.baseLayer)this.tilesDiv= tilelayer.tilesDiv;var map=this.map;var mapType=map.getMapType();var projection=mapType.getProjection();var zoomLevel=map.zoomLevel;var centerPoint=map.mercatorCenter;if(mapType==BMAP_PERSPECTIVE_MAP)if(centerPoint.equals(new Point(0,0)))centerPoint=map.mercatorCenter=projection.lngLatToMercator(map.centerPoint,map.currentCity);var zoomUnits=mapType.getZoomUnits(zoomLevel);var levelUnits=mapType.getZoomFactor(zoomLevel);var row=TMath.ceil(centerPoint["lng"]/levelUnits);var column=TMath.ceil(centerPoint["lat"]/ levelUnits);var tileSize=mapType.getTileSize();var cell=[row,column,(centerPoint["lng"]-row*levelUnits)/levelUnits*tileSize,(centerPoint["lat"]-column*levelUnits)/levelUnits*tileSize];var fromRow=cell[0]-TMath.ceil((map[Twidth]/2-cell[2])/tileSize);var fromColumn=cell[1]-TMath.ceil((map[Theight]/2-cell[3])/tileSize);var toRow=cell[0]+TMath.ceil((map[Twidth]/2+cell[2])/tileSize);var addC=0;if(mapType===BMAP_PERSPECTIVE_MAP&&map.getZoom()==15)addC=1;var toColumn=cell[1]+TMath.ceil((map[Theight]/2+cell[3])/ tileSize)+addC;this.areaCenter=new Point(centerPoint["lng"],centerPoint["lat"]);var mapTiles=this.mapTiles;var centerPixX=-this.areaCenter["lng"]/zoomUnits;var centerPixY=this.areaCenter["lat"]/zoomUnits;var centerPosition=[TMath.ceil(centerPixX),TMath.ceil(centerPixY)];var zoom=map.getZoom();for(var tileName in mapTiles){var tile=mapTiles[tileName];var info=tile.info;if(info[2]!=zoom||info[2]==zoom&&(fromRow>info[0]||toRow<=info[0]||fromColumn>info[1]||toColumn<=info[1]))this.hideTile(tile)}var divLeft= -map[ToffsetX]+map[Twidth]/2;var divTop=-map[ToffsetY]+map[Theight]/2;tilelayer.tilesDiv.style.left=TMath.ceil(centerPixX+divLeft)-centerPosition[0]+"px";tilelayer.tilesDiv.style.top=TMath.ceil(centerPixY+divTop)-centerPosition[1]+"px";var tilesOrder=[];for(var i=fromRow;i<toRow;i++)for(var j=fromColumn;j<toColumn;j++)tilesOrder.push([i,j]);tilesOrder.sort(function(center){return function(x,y){return 0.4*TMath.abs(x[0]-center[0])+0.6*TMath.abs(x[1]-center[1])-(0.4*TMath.abs(y[0]-center[0])+0.6*TMath.abs(y[1]- center[1]))}}([cell[0]-1,cell[1]-1]));this.numLoading+=tilesOrder[Tlength];for(var i=0,l=tilesOrder[Tlength];i<l;i++)this.showTile([tilesOrder[i][0],tilesOrder[i][1],zoom],centerPosition,tilelayer)}return},addTileLayer:function(e){var me=this;var tilelayer=e.target;for(var i=0;i<me.tileLayers[Tlength];i++)if(me.tileLayers[i]==tilelayer)return;tilelayer.initialize(this.map,this._normalLayerContainer);me.tileLayers.push(tilelayer)},removeTileLayer:function(e){var me=this;var tilelayer=e.target;for(var i= 0,l=me.tileLayers[Tlength];i<l;i++)if(tilelayer==me.tileLayers[i])me.tileLayers.splice(i,1);tilelayer.remove()},setMapType:function(){var me=this;var layers=this.mapTypeLayers;for(var i=0,l=layers[Tlength];i<l;i++)layers[i].remove();delete this.tilesDiv;this.mapTypeLayers=[];this.bufferTiles=this.mapTiles={};this.initMapTypeTiles();this.moveGridTiles()},_zoom:function(){var me=this;if(me.zoomsDiv)baidu.dom.hide(me.zoomsDiv);setTimeout(function(){me.moveGridTiles();me.map.dispatchEvent(new BaseEvent("onzoomend"))}, 10)}});function Tile(mgr,src,position,tileInfo,tilelayer){this.mgr=mgr;this[Tposition]=position;this._cbks=[];this.name=mgr.getTileName(tileInfo,tilelayer);this.info=tileInfo;this._transparentPng=tilelayer.isTransparentPng();var tileImg=create("img");setUnSelectable(tileImg);tileImg.galleryImg=false;var imgStyle=tileImg.style;var mapType=mgr.map.getMapType();imgStyle[Tposition]="absolute";imgStyle.border="none";imgStyle[Twidth]=mapType.getTileSize()+"px";imgStyle[Theight]=mapType.getTileSize()+"px";imgStyle.left= position[0]+"px";imgStyle.top=position[1]+"px";imgStyle.maxWidth="none";this.img=tileImg;this.src=src;if(fadeInTile)this.img.style.opacity=0;var me=this;this.img.onload=function(e){me.loaded=true;if(!me.mgr)return;var tileMgr=me.mgr;var bufferTiles=tileMgr.bufferTiles;if(!bufferTiles[me.name]){tileMgr.realBufferNumber++;bufferTiles[me.name]=me}if(me.img&&!isInDocument(me.img))if(tilelayer.tilesDiv){tilelayer.tilesDiv[TappendChild](me.img);if(baidu.browser.ie<=6&&baidu.browser.ie>0&&me._transparentPng)me.img.style.cssText+= ';filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src="'+me.src+'",sizingMethod=scale);'}var bufDiffer=tileMgr.realBufferNumber-tileMgr.bufferNumber;for(var tileName in bufferTiles){if(bufDiffer<=0)break;if(!tileMgr.mapTiles[tileName]){bufferTiles[tileName].mgr=null;var img=bufferTiles[tileName].img;if(img&&img[TparentNode]){img[TparentNode][TremoveChild](img);purge(img)}img=null;bufferTiles[tileName].img=null;delete bufferTiles[tileName];tileMgr.realBufferNumber--;bufDiffer--}}if(fadeInTile)new Animation({fps:20, duration:200,render:function(s){if(me.img&&me.img.style)me.img.style.opacity=s*1},finish:function(){if(me.img&&me.img.style)delete me.img.style.opacity}});me._callCbks()};this.img.onerror=function(){me._callCbks();if(!me.mgr)return;var tileMgr=me.mgr;var mapType=tileMgr.map.getMapType();if(mapType.getErrorImageUrl()){me.error=true;me.img.src=mapType.getErrorImageUrl();if(me.img&&!isInDocument(me.img))tilelayer.tilesDiv[TappendChild](me.img)}};tileImg=null}Tile[Tprototype]._addLoadCbk=function(cbk){this._cbks.push(cbk)}; Tile[Tprototype]._load=function(){if(baidu.browser.ie>0&&baidu.browser.ie<=6&&this._transparentPng)this.img.src=MapConfig.imgPath+"blank.gif";else this.img.src=this.src};Tile[Tprototype]._callCbks=function(){var me=this;for(var i=0;i<me._cbks[Tlength];i++)me._cbks[i]();me._cbks[Tlength]=0}; function purge(d){if(!d)return;d.onload=d.onerror=null;var a=d.attributes,i,l,n;if(a){l=a[Tlength];for(i=0;i<l;i+=1){n=a[i].name;if(isFunction(d[n]))d[n]=null}}a=d.children;if(a){l=a[Tlength];for(i=0;i<l;i+=1)purge(d.children[i])}}var fadeInTile=!baidu.browser.ie||baidu.browser.ie>8;function TileLayer(opts){this.opts=opts||{};this.copyright=this.opts["copyright"]||null;this.transparentPng=this.opts["transparentPng"]||false;this.baseLayer=this.opts["baseLayer"]||false;this.zIndex=this.opts["zIndex"]||0;this.guid=TileLayer._guid++}TileLayer._guid=0;baidu.lang.inherits(TileLayer,baidu.lang.Class,"TileLayer"); baidu[Textend](TileLayer[Tprototype],{initialize:function(map,container){if(this.baseLayer)this.zIndex=-100;this.map=map;if(!this.tilesDiv){var div=create("div");var style=div.style;style[Tposition]="absolute";style.overflow="visible";style.zIndex=this.zIndex;style.left=TMath.ceil(-map[ToffsetX]+map[Twidth]/2)+"px";style.top=TMath.ceil(-map[ToffsetY]+map[Theight]/2)+"px";container[TappendChild](div);this.tilesDiv=div}var mapType=map.getMapType();if(map.highResolutionEnabled()&&mapType==BMAP_NORMAL_MAP){mapType._opts.tileSize= 128;var getZoomUnits=function(zoom){return TMath.pow(2,18-zoom)*2};mapType.getZoomUnits=getZoomUnits;mapType._opts.projection.getZoomUnits=getZoomUnits}},remove:function(){if(this.tilesDiv&&this.tilesDiv[TparentNode]){this.tilesDiv.innerHTML="";this.tilesDiv[TparentNode][TremoveChild](this.tilesDiv)}delete this.tilesDiv},isTransparentPng:function(){return this.transparentPng},"getTilesUrl":function(tileCoord,zoom){var url="";if(this.opts["tileUrlTemplate"]){url=this.opts["tileUrlTemplate"].replace(/\{X\}/, tileCoord.x);url=url.replace(/\{Y\}/,tileCoord.y);url=url.replace(/\{Z\}/,zoom)}return url},getCopyright:function(){return this.copyright},getMapType:function(){return this.mapType||BMAP_NORMAL_MAP}});function TrafficLayer(opts){TileLayer.call(this,opts);this._opts=opts||{};if(this._opts["predictDate"]){if(this._opts["predictDate"]["weekday"]<1||this._opts["predictDate"]["weekday"]>7)this._opts["predictDate"]=1;if(this._opts["predictDate"]["hour"]<0||this._opts["predictDate"]["hour"]>23)this._opts["predictDate"]["hour"]=0}this._tileUrl="http://its.map.baidu.com:8002/traffic/"}TrafficLayer[Tprototype]=new TileLayer; TrafficLayer[Tprototype].initialize=function(map,container){TileLayer[Tprototype].initialize.call(this,map,container);this._map=map};TrafficLayer[Tprototype].isTransparentPng=function(){return true}; TrafficLayer[Tprototype]["getTilesUrl"]=function(point,level){var pDate="";if(this._opts["predictDate"])pDate="HistoryService?"+"day="+(this._opts["predictDate"]["weekday"]-1)+"&hour="+this._opts["predictDate"]["hour"]+"&t="+(new Date).getTime()+"&";else{pDate="TrafficTileService?"+"time="+(new Date).getTime()+"&";if(!this._map.highResolutionEnabled())pDate+="label=web2D&v=016&"}var map=this._map,row=point.x,column=point.y,px=TMath.floor(row/200),py=TMath.floor(column/200),url=this._tileUrl+pDate+ "level="+level+"&x="+row+"&y="+column;return url.replace(/-(\d+)/gi,"M$1")};function MapType(name,layer,opts){this._name=name;this._layers=layer instanceof TileLayer?[layer]:layer.slice(0);opts=opts||{};this._opts={tips:opts["tips"]||"",labelText:"",minZoom:opts["minZoom"]||3,maxZoom:opts["maxZoom"]||19,highMinZoom:opts["minZoom"]||3,highMaxZoom:opts["maxZoom"]||18,tileSize:256,textColor:opts["textColor"]||"black",errorImageUrl:opts["errorImageUrl"]||"",projection:opts["projection"]||new MercatorProjection};if(this._layers[Tlength]>=1)this._layers[0].baseLayer=true;baidu[Textend](this._opts, opts)} baidu[Textend](MapType[Tprototype],{getName:function(){return this._name},getTips:function(){return this._opts.tips},getLabelText:function(){return this._opts.labelText},getTileLayer:function(){return this._layers[0]},getTileLayers:function(){return this._layers},getTileSize:function(){return this._opts.tileSize},getMinZoom:function(){return this._opts.minZoom},getMaxZoom:function(){return this._opts.maxZoom},getTextColor:function(){return this._opts.textColor},getProjection:function(){return this._opts.projection},getErrorImageUrl:function(){return this._opts.errorImageUrl}, getTileSize:function(){return this._opts.tileSize},getZoomUnits:function(zoom){return TMath.pow(2,18-zoom)},getZoomFactor:function(zoom){return this.getZoomUnits(zoom)*this.getTileSize()}});var TILE_BASE_URLS=["http://shangetu0.map.bdimg.com/it/","http://shangetu1.map.bdimg.com/it/","http://shangetu2.map.bdimg.com/it/","http://shangetu3.map.bdimg.com/it/","http://shangetu4.map.bdimg.com/it/"]; var TILE_ONLINE_URLS=[(window.location.origin + "/bmap-tile0/tile/"),(window.location.origin + "/bmap-tile1/tile/"),(window.location.origin + "/bmap-tile2/tile/"),(window.location.origin + "/bmap-tile3/tile/")];var normalMapTileLayer=new TileLayer; normalMapTileLayer["getTilesUrl"]=function(tileCoord,zoom){var row=tileCoord.x;var column=tileCoord.y;var udt="20150518";var styles="pl";if(this.map.highResolutionEnabled())styles="ph";var url=TILE_ONLINE_URLS[TMath.abs(row+column)%TILE_ONLINE_URLS[Tlength]]+"?qt=vtile&x="+(row+"").replace(/-/gi,"M")+"&y="+(column+"").replace(/-/gi,"M")+"&z="+zoom+"&styles="+styles+(baidu.browser.ie==6?"&color_dep=32&colors=50":"")+"&udt="+udt;return url.replace(/-(\d+)/gi,"M$1")}; var BMAP_NORMAL_MAP=new MapType("\u5730\u56fe",normalMapTileLayer,{"tips":"\u663e\u793a\u666e\u901a\u5730\u56fe"});var PerspectiveTileLayer=new TileLayer;PerspectiveTileLayer.tileUrls=[(window.location.origin + "/bmap-api/resource/mappic/"),(window.location.origin + "/bmap-api/resource/mappic/"),(window.location.origin + "/bmap-api/resource/mappic/"),(window.location.origin + "/bmap-api/resource/mappic/")]; PerspectiveTileLayer["getTilesUrl"]=function(tileCoord,zoom){var row=tileCoord.x;var column=tileCoord.y;var scale=TMath.pow(2,20-zoom)*256;column=TMath.round((9998336-scale*column)/scale)-1;url=this.tileUrls[TMath.abs(row+column)%this.tileUrls[Tlength]]+this.map.currentCity+"/"+this.map.cityCode+"/3/"+"lv"+(21-zoom)+"/"+row+","+column+"."+"jpg";return url}; var BMAP_PERSPECTIVE_MAP=new MapType("\u4e09\u7ef4",PerspectiveTileLayer,{"tips":"\u663e\u793a\u4e09\u7ef4\u5730\u56fe","minZoom":15,"maxZoom":20,"textColor":"white","projection":new PerspectiveProjection});BMAP_PERSPECTIVE_MAP.getZoomUnits=function(zoom){return TMath.pow(2,20-zoom)};BMAP_PERSPECTIVE_MAP.getCityName=function(cname){if(!cname)return"";var cns=MapConfig.cityNames;for(var cn in cns)if(cname.search(cn)>-1)return cns[cn].pinyin;return""}; BMAP_PERSPECTIVE_MAP.getCityCode=function(city){return{"bj":2,"gz":1,"sz":14,"sh":4}[city]};var satelliteTileLayer=new TileLayer({baseLayer:true});satelliteTileLayer["getTilesUrl"]=function(tileCoord,zoom){var row=tileCoord.x;var column=tileCoord.y;var url=TILE_BASE_URLS[TMath.abs(row+column)%TILE_BASE_URLS[Tlength]]+"u=x="+row+";y="+column+";z="+zoom+";v=009;type=sate&fm=46&udt=20141015";return url.replace(/-(\d+)/gi,"M$1")}; var BMAP_SATELLITE_MAP=new MapType("\u536b\u661f",satelliteTileLayer,{"tips":"\u663e\u793a\u536b\u661f\u5f71\u50cf","minZoom":1,"maxZoom":19,"textColor":"white"});var streetLayer=new TileLayer({"transparentPng":true}); streetLayer["getTilesUrl"]=function(tileCoord,zoom){var row=tileCoord.x;var column=tileCoord.y;var udt="20141015";var styles="sl";var url=TILE_ONLINE_URLS[TMath.abs(row+column)%TILE_ONLINE_URLS[Tlength]]+"?qt=tile&x="+(row+"").replace(/-/gi,"M")+"&y="+(column+"").replace(/-/gi,"M")+"&z="+zoom+"&styles="+styles+(baidu.browser.ie==6?"&color_dep=32&colors=50":"")+"&udt="+udt;return url.replace(/-(\d+)/gi,"M$1")}; var BMAP_HYBRID_MAP=new MapType("\u6df7\u5408",[satelliteTileLayer,streetLayer],{"tips":"\u663e\u793a\u5e26\u6709\u8857\u9053\u7684\u536b\u661f\u5f71\u50cf","labelText":"\u8def\u7f51","minZoom":1,"maxZoom":19,"textColor":"white"});var BMAP_POI_TYPE_NORMAL=0,BMAP_POI_TYPE_BUSSTOP=1,BMAP_POI_TYPE_BUSLINE=2,BMAP_POI_TYPE_SUBSTOP=3,BMAP_POI_TYPE_SUBLINE=4;var ROUTE_TYPE_DEFAULT=0;var ROUTE_TYPE_TRANSIT=1;var APIPack={};window.APIPack=APIPack;function BaseSearch(loc,opts){baidu.lang.Class.call(this);this._loc={};this.setLocation(loc);opts=opts||{};opts.renderOptions=opts["renderOptions"]||{};this._opts={renderOptions:{panel:opts.renderOptions["panel"]||null,map:opts.renderOptions["map"]||null,autoViewport:opts.renderOptions["autoViewport"]||true,selectFirstResult:opts.renderOptions["selectFirstResult"],highlightMode:opts.renderOptions["highlightMode"],enableDragging:opts.renderOptions["enableDragging"]||false},onSearchComplete:opts["onSearchComplete"]|| function(){},onMarkersSet:opts["onMarkersSet"]||function(){},onInfoHtmlSet:opts["onInfoHtmlSet"]||function(){},onResultsHtmlSet:opts["onResultsHtmlSet"]||function(){},onGetBusListComplete:opts["onGetBusListComplete"]||function(){},onGetBusLineComplete:opts["onGetBusLineComplete"]||function(){},onBusListHtmlSet:opts["onBusListHtmlSet"]||function(){},onBusLineHtmlSet:opts["onBusLineHtmlSet"]||function(){},onPolylinesSet:opts["onPolylinesSet"]||function(){},reqFrom:opts["reqFrom"]||""};if(typeof opts!= "undefined"&&typeof opts["renderOptions"]!="undefined"&&typeof opts["renderOptions"]["autoViewport"]!="undefined")this._opts.renderOptions.autoViewport=opts["renderOptions"]["autoViewport"];else this._opts.renderOptions.autoViewport=true;this._opts.renderOptions.panel=baidu.G(this._opts.renderOptions.panel)}baidu.inherits(BaseSearch,baidu.lang.Class); baidu[Textend](BaseSearch[Tprototype],{"getResults":function(){if(!this._isMultiKey)return this._results;else return this._arrResults},"enableAutoViewport":function(){this._opts.renderOptions.autoViewport=true},"disableAutoViewport":function(){this._opts.renderOptions.autoViewport=false},setLocation:function(loc){if(!loc)return;this._loc.src=loc},setSearchCompleteCallback:function(cbk){this._opts.onSearchComplete=cbk||function(){}},"setMarkersSetCallback":function(cbk){this._opts.onMarkersSet=cbk|| function(){}},"setPolylinesSetCallback":function(cbk){this._opts.onPolylinesSet=cbk||function(){}},"setInfoHtmlSetCallback":function(cbk){this._opts.onInfoHtmlSet=cbk||function(){}},"setResultsHtmlSetCallback":function(cbk){this._opts.onResultsHtmlSet=cbk||function(){}},getStatus:function(){return this._status}});var SearchRequestMgr={REQ_BASE_URL:(window.location.origin + "/bmap-api/"),request:function(cbk,params,userData,path,disableLog){var timeStamp=(TMath.random()*1E5).toFixed(0);BMap["_rd"]["_cbk"+timeStamp]=function(json){userData=userData||{};cbk&&cbk(json,userData);delete BMap["_rd"]["_cbk"+timeStamp]};path=path||"";var reqParam;if(userData&&userData.useEncodeURI)reqParam=jsonToQuery(params,encodeURI);else reqParam=jsonToQuery(params,encodeURIComponent);var me=this,url=me.REQ_BASE_URL+path+"?"+reqParam+"&ie=utf-8&oue=1&fromproduct=jsapi"; if(!disableLog)url+="&res=api";url+="&callback=BMap._rd._cbk"+timeStamp;url+="&ak="+AUTHENTIC_KEY;DataMgr.request(url)}};window.SearchRequestMgr=SearchRequestMgr;BMap["_rd"]={};var SUtil={};window.SUtil=SUtil;SUtil.removeHtml=function(s){return s.replace(/<\/?b>/g,"")};SUtil.parseGeoExtReg1=function(s){return s.replace(/([1-9]\d*\.\d*|0\.\d*[1-9]\d*|0?\.0+|0|[1-9]\d*),([1-9]\d*\.\d*|0\.\d*[1-9]\d*|0?\.0+|0|[1-9]\d*)(,)/g,"$1,$2;")};SUtil.parseGeoExtReg2=function(s,factor){var _re=new TRegExp("(((-?\\d+)(\\.\\d+)?),((-?\\d+)(\\.\\d+)?);)(((-?\\d+)(\\.\\d+)?),((-?\\d+)(\\.\\d+)?);){"+factor+"}","ig");return s.replace(_re,"$1")};var BMAP_STATUS_SUCCESS=0,BMAP_STATUS_CITY_LIST=1,BMAP_STATUS_UNKNOWN_LOCATION=2,BMAP_STATUS_UNKNOWN_ROUTE=3,BMAP_STATUS_INVALID_KEY=4,BMAP_STATUS_INVALID_REQUEST=5,BMAP_STATUS_PERMISSION_DENIED=6,BMAP_STATUS_SERVICE_UNAVAILABLE=7,BMAP_STATUS_TIMEOUT=8;var BMAP_ROUTE_TYPE_WALKING=2,BMAP_ROUTE_TYPE_DRIVING=3;var BMAP_ROUTE_STATUS_NORMAL=0,BMAP_ROUTE_STATUS_EMPTY=1,BMAP_ROUTE_STATUS_ADDRESS=2;var QUERY_TYPE_CURRENT_CITY="cur";var QUERY_TYPE_CENTER="cen";var QUERY_TYPE_POI_SEARCH="s"; var QUERY_TYPE_POI_SEARCH_CON="con";var QUERY_TYPE_SEARCH_INBOUNDS="bd";var QUERY_TYPE_SEARCH_NEARBY="nb";var QUERY_TYPE_TRANSIT="bt";var QUERY_TYPE_DRIVING="nav";var QUERY_TYPE_WALKING="walk";var QUERY_TYPE_GEOCODER="gc";var QUERY_TYPE_REVERSE_GEOCODER="rgc";var QUERY_TYPE_LOCALCITY="dec";var QUERY_TYPE_TRANSIT_SINGLE="bse";var QUERY_TYPE_DRIVING_SINGLE="nse";var QUERY_TYPE_BUSLIST="bl";var QUERY_TYPE_BUSLINE="bsl";var QUERY_TYPE_SEARCH_INBOUNDS_MULTIKEY="bda";var QUERY_TYPE_SEARCH_MULTIKEY="sa"; var QUERY_TYPE_SEARCH_NEARBY_MULTIKEY="nba";var QUERY_TYPE_DARG="drag";var QUERY_TYPE_EXT="ext";var RETURN_TYPE_CURRENT_CITY=2;var RETURN_TYPE_CENTER=4;var RETURN_TYPE_CITY_LIST=7;var RETURN_TYPE_POI_SEARCH=11;var RETURN_TYPE_SEARCH_NEARBY=12;var RETURN_TYPE_TRANSIT=14;var RETURN_TYPE_BUSLIST=15;var RETURN_TYPE_BUSLINE=18;var RETURN_TYPE_DRIVING=20;var RETURN_TYPE_SEARCH_INBOUNDS=21;var RETURN_TYPE_ROUTE_ADDRESS=23;var RETURN_TYPE_SPECIAL_REGION=26;var RETURN_TYPE_NODATA_REGION=28; var RETURN_TYPE_WALKING=31;var RETURN_TYPE_GEOCODER=35;var RETURN_TYPE_REVERSE_GEOCODER=44;var RETURN_TYPE_SEARCH_INBOUNDS_MULTIKEY=45;var RETURN_TYPE_SEARCH_MULTIKEY=46;var RETURN_TYPE_SEARCH_NEARBY_MULTIKEY=47;var LOC_TYPE_UNKNOWN=-1;var LOC_TYPE_MAP=0;var LOC_TYPE_POINT=1;var LOC_TYPE_STRING=2;var LOC_TYPE_NUMBER=3;var MAP_URL=(window.location.origin + "/bmap-map/");var API_URL=(window.location.origin + "/bmap-api/");BMap["I"]=window["Instance"]=baidu.lang.instance;var LocalSearch=function(loc,opts){BaseSearch.call(this,loc,opts);opts=opts||{};opts["renderOptions"]=opts["renderOptions"]||{};this.setPageCapacity(opts["pageCapacity"]);if(typeof opts["renderOptions"]["selectFirstResult"]!="undefined"&&!opts["renderOptions"]["selectFirstResult"])this.disableFirstResultSelection();else this.enableFirstResultSelection();this._overlays=[];this._arrPois=[];this._curIndex=-1;this._queryList=[];var me=this;ModuleMgr.load("local",function(){me._check()},true)}; baidu.inherits(LocalSearch,BaseSearch,"LocalSearch");LocalSearch.DEFAULT_PAGE_CAPACITY=10;LocalSearch.MIN_PAGE_CAPACITY=1;LocalSearch.MAX_PAGE_CAPACITY=100;LocalSearch.DEFAULT_RADIUS=2E3;LocalSearch.MAX_RADIUS=1E5; baidu[Textend](LocalSearch[Tprototype],{search:function(keyword,options){this._queryList.push({method:"search",arguments:[keyword,options]})},searchInBounds:function(keyword,bounds,options){this._queryList.push({method:"searchInBounds",arguments:[keyword,bounds,options]})},searchNearby:function(keyword,center,radius,options){this._queryList.push({method:"searchNearby",arguments:[keyword,center,radius,options]})},clearResults:function(){delete this._json;delete this._status;delete this._results;delete this._ud; this._curIndex=-1;this._setStatus();if(this._opts.renderOptions.panel)this._opts.renderOptions.panel.innerHTML=""},gotoPage:function(){},enableFirstResultSelection:function(){this._opts.renderOptions.selectFirstResult=true},disableFirstResultSelection:function(){this._opts.renderOptions.selectFirstResult=false},setPageCapacity:function(cap){if(typeof cap=="number"&&!isNaN(cap))this._opts.pageCapacity=cap<1?LocalSearch.DEFAULT_PAGE_CAPACITY:cap>LocalSearch.MAX_PAGE_CAPACITY?LocalSearch.DEFAULT_PAGE_CAPACITY: cap;else this._opts.pageCapacity=LocalSearch.DEFAULT_PAGE_CAPACITY},getPageCapacity:function(){return this._opts.pageCapacity},toString:function(){return"LocalSearch"}});var LocalSearchP=LocalSearch[Tprototype]; exportSymbol(LocalSearchP,{"clearResults":LocalSearchP.clearResults,"setPageCapacity":LocalSearchP.setPageCapacity,"getPageCapacity":LocalSearchP.getPageCapacity,"gotoPage":LocalSearchP.gotoPage,"searchNearby":LocalSearchP.searchNearby,"searchInBounds":LocalSearchP.searchInBounds,"search":LocalSearchP.search,"enableFirstResultSelection":LocalSearchP.enableFirstResultSelection,"disableFirstResultSelection":LocalSearchP.disableFirstResultSelection});var BaseRoute=function(loc,opts){BaseSearch.call(this,loc,opts)};baidu.inherits(BaseRoute,BaseSearch,"BaseRoute");baidu[Textend](BaseRoute[Tprototype],{clearResults:function(){}});var BMAP_TRANSIT_POLICY_LEAST_TIME=0,BMAP_TRANSIT_POLICY_LEAST_TRANSFER=2,BMAP_TRANSIT_POLICY_LEAST_WALKING=3,BMAP_TRANSIT_POLICY_AVOID_SUBWAYS=4;var BMAP_LINE_TYPE_BUS=0,BMAP_LINE_TYPE_SUBWAY=1,BMAP_LINE_TYPE_FERRY=2; function TransitRoute(loc,opts){BaseRoute.call(this,loc,opts);opts=opts||{};this.setPolicy(opts["policy"]);this.setPageCapacity(opts["pageCapacity"]);this.QUERY_TYPE=QUERY_TYPE_TRANSIT;this.RETURN_TYPE=RETURN_TYPE_TRANSIT;this.ROUTE_TYPE=ROUTE_TYPE_TRANSIT;this._overlays=[];this._curIndex=-1;this._queryList=[];var me=this;ModuleMgr.load("route",function(){me._asyncSearch()})}TransitRoute.MAX_PAGE_CAPACITY=100;TransitRoute.LINE_TYPE_MAPPING=[0,1,0,0,0,0,0,0,2,0,0,0,1,1,1]; baidu.inherits(TransitRoute,BaseRoute,"TransitRoute"); baidu[Textend](TransitRoute[Tprototype],{setPolicy:function(policy){if(policy>=BMAP_TRANSIT_POLICY_LEAST_TIME&&policy<=BMAP_TRANSIT_POLICY_AVOID_SUBWAYS)this._opts.policy=policy;else this._opts.policy=BMAP_TRANSIT_POLICY_LEAST_TIME},_internalSearch:function(sn,en){this._queryList.push({method:"_internalSearch",arguments:[sn,en]})},search:function(start,end){this._queryList.push({method:"search",arguments:[start,end]})},setPageCapacity:function(cp){if(typeof cp=="string"){cp=TparseInt(cp);if(isNaN(cp)){this._opts.pageCapacity= TransitRoute.MAX_PAGE_CAPACITY;return}}if(typeof cp!="number"){this._opts.pageCapacity=TransitRoute.MAX_PAGE_CAPACITY;return}if(cp>=1&&cp<=TransitRoute.MAX_PAGE_CAPACITY)this._opts.pageCapacity=TMath.round(cp);else this._opts.pageCapacity=TransitRoute.MAX_PAGE_CAPACITY},toString:function(){return"TransitRoute"},_shortTitle:function(title){return title.replace(/\(.*\)/,"")}});var BMAP_HIGHLIGHT_STEP=1,BMAP_HIGHLIGHT_ROUTE=2; var DWRoute=function(location,opts){BaseRoute.call(this,location,opts);this._overlays=[];this._curIndex=-1;this._queryList=[];var me=this;var renderOptions=this._opts.renderOptions;if(renderOptions.highlightMode!=BMAP_HIGHLIGHT_STEP&&renderOptions.highlightMode!=BMAP_HIGHLIGHT_ROUTE)renderOptions.highlightMode=BMAP_HIGHLIGHT_STEP;this._enableDragging=this._opts.renderOptions.enableDragging?true:false;ModuleMgr.load("route",function(){me._asyncSearch()});if(this.init_d)this.init_d()}; DWRoute.ROAD_TYPE=["","\u73af\u5c9b","\u65e0\u5c5e\u6027\u9053\u8def","\u4e3b\u8def","\u9ad8\u901f\u8fde\u63a5\u8def","\u4ea4\u53c9\u70b9\u5185\u8def\u6bb5","\u8fde\u63a5\u9053\u8def","\u505c\u8f66\u573a\u5185\u90e8\u9053\u8def","\u670d\u52a1\u533a\u5185\u90e8\u9053\u8def","\u6865","\u6b65\u884c\u8857","\u8f85\u8def","\u531d\u9053","\u5168\u5c01\u95ed\u9053\u8def","\u672a\u5b9a\u4e49\u4ea4\u901a\u533a\u57df","POI\u8fde\u63a5\u8def","\u96a7\u9053","\u6b65\u884c\u9053","\u516c\u4ea4\u4e13\u7528\u9053", "\u63d0\u524d\u53f3\u8f6c\u9053"];baidu.inherits(DWRoute,BaseRoute,"DWRoute");baidu[Textend](DWRoute[Tprototype],{search:function(start,end,opts){this._queryList.push({method:"search",arguments:[start,end,opts]})}});var BMAP_DRIVING_POLICY_LEAST_TIME=0,BMAP_DRIVING_POLICY_LEAST_DISTANCE=1,BMAP_DRIVING_POLICY_AVOID_HIGHWAYS=2;function DrivingRoute(location,opts){DWRoute.call(this,location,opts);opts=opts||{};this.setPolicy(opts["policy"]);this.QUERY_TYPE=QUERY_TYPE_DRIVING;this.RETURN_TYPE=RETURN_TYPE_DRIVING;this.ROUTE_TYPE=BMAP_ROUTE_TYPE_DRIVING}baidu.inherits(DrivingRoute,DWRoute,"DrivingRoute"); baidu[Textend](DrivingRoute[Tprototype],{setPolicy:function(policy){if(policy>=BMAP_DRIVING_POLICY_LEAST_TIME&&policy<=BMAP_DRIVING_POLICY_AVOID_HIGHWAYS)this._opts.policy=policy;else this._opts.policy=BMAP_DRIVING_POLICY_LEAST_TIME}});function WalkingRoute(location,opts){DWRoute.call(this,location,opts);this.QUERY_TYPE=QUERY_TYPE_WALKING;this.RETURN_TYPE=RETURN_TYPE_WALKING;this.ROUTE_TYPE=BMAP_ROUTE_TYPE_WALKING;this._enableDragging=false}baidu.inherits(WalkingRoute,DWRoute,"WalkingRoute");function Geocoder(opts){this._opts={};baidu[Textend](this._opts,opts);this._queryList=[];var me=this;ModuleMgr.load("othersearch",function(){me._asyncSearch()})}baidu.inherits(Geocoder,baidu.lang.Class,"Geocoder");baidu[Textend](Geocoder[Tprototype],{getPoint:function(address,callback,city){this._queryList.push({method:"getPoint",arguments:[address,callback,city]})},getLocation:function(point,callback,opts){this._queryList.push({method:"getLocation",arguments:[point,callback,opts]})},"toString":function(){return"Geocoder"}}); var GeocoderP=Geocoder[Tprototype];exportSymbol(GeocoderP,{"getPoint":GeocoderP.getPoint,"getLocation":GeocoderP.getLocation});function Geolocation(opts){this._opts={};baidu[Textend](this._opts,opts);this._queryList=[];var me=this;ModuleMgr.load("othersearch",function(){me._asyncSearch()})}baidu[Textend](Geolocation[Tprototype],{getCurrentPosition:function(callback,opts){this._queryList.push({method:"getCurrentPosition",arguments:[callback,opts]})},getStatus:function(){return this._status}});var GeolocationP=Geolocation[Tprototype];exportSymbol(GeolocationP,{"getCurrentPosition":GeolocationP.getCurrentPosition,"getStatus":GeolocationP.getStatus});function LocalCity(opts){opts=opts||{};opts.renderOptions=opts["renderOptions"]||{};this._opts={renderOptions:{map:opts.renderOptions["map"]||null}};this._queryList=[];var me=this;ModuleMgr.load("othersearch",function(){me._asyncSearch()})}baidu.inherits(LocalCity,baidu.lang.Class,"LocalCity");baidu[Textend](LocalCity[Tprototype],{"get":function(callback){this._queryList.push({method:"get",arguments:[callback]})},"toString":function(){return"LocalCity"}});function Boundary(){this._queryList=[];var me=this;ModuleMgr.load("othersearch",function(){me._asyncSearch()})}baidu.inherits(Boundary,baidu.lang.Class,"Boundary");baidu[Textend](Boundary[Tprototype],{get:function(name,cbk){this._queryList.push({method:"get",arguments:[name,cbk]})},toString:function(){return"Boundary"}});function BusLineSearch(loc,opts){BaseSearch.call(this,loc,opts);this.QUERY_TYPE_BUSLIST=QUERY_TYPE_BUSLIST;this.RETURN_TYPE_BUSLIST=RETURN_TYPE_BUSLIST;this.QUERY_TYPE_BUSLINE=QUERY_TYPE_BUSLINE;this.RETURN_TYPE_BUSLINE=RETURN_TYPE_BUSLINE;this._queryList=[];var me=this;ModuleMgr.load("buslinesearch",function(){me._asyncSearch()})}BusLineSearch._iconOpen=MapConfig.imgPath+"iw_plus.gif";BusLineSearch._iconClose=MapConfig.imgPath+"iw_minus.gif";BusLineSearch._stopUrl=MapConfig.imgPath+"stop_icon.png"; baidu.inherits(BusLineSearch,BaseSearch); baidu[Textend](BusLineSearch[Tprototype],{"getBusList":function(lineName){this._queryList.push({method:"getBusList",arguments:[lineName]})},"getBusLine":function(busListItem){this._queryList.push({method:"getBusLine",arguments:[busListItem]})},"setGetBusListCompleteCallback":function(cbk){this._opts.onGetBusListComplete=cbk||function(){}},"setGetBusLineCompleteCallback":function(cbk){this._opts.onGetBusLineComplete=cbk||function(){}},"setBusListHtmlSetCallback":function(cbk){this._opts.onBusListHtmlSet=cbk|| function(){}},"setBusLineHtmlSetCallback":function(cbk){this._opts.onBusLineHtmlSet=cbk||function(){}},"setPolylinesSetCallback":function(cbk){this._opts.onPolylinesSet=cbk||function(){}}});function Autocomplete(opts){BaseSearch.call(this,opts);opts=opts||{};this._options={input:opts["input"]||null,baseDom:opts["baseDom"]||null,types:opts["types"]||[],onSearchComplete:opts["onSearchComplete"]||function(){}};this._loc.src=opts["location"]||"\u5168\u56fd";this._word="";this._show=false;this._suggestion=null;this._inputValue="";this._initialize();_addStat(5011);var me=this;ModuleMgr.load("autocomplete",function(){me._asyncSearch()})}baidu.inherits(Autocomplete,BaseSearch,"Autocomplete"); baidu[Textend](Autocomplete[Tprototype],{_initialize:function(){},show:function(){this._show=true},hide:function(){this._show=false},setTypes:function(types){this._options.types=types},setLocation:function(location){this._loc.src=location},search:function(word){this._word=word},setInputValue:function(value){this._inputValue=value}});var MapPoiClick;function makeGlobal(name,value){BMap[name]=value}makeGlobal("Map",Map);makeGlobal("Hotspot",Hotspot);makeGlobal("MapType",MapType);makeGlobal("Point",Point);makeGlobal("Pixel",Pixel);makeGlobal("Size",Size);makeGlobal("Bounds",Bounds);makeGlobal("TileLayer",TileLayer);makeGlobal("Projection",Projection);makeGlobal("MercatorProjection",MercatorProjection);makeGlobal("PerspectiveProjection",PerspectiveProjection);makeGlobal("Copyright",Copyright);makeGlobal("Overlay",Overlay);makeGlobal("Label",Label); makeGlobal("Marker",Marker);makeGlobal("Icon",Icon);makeGlobal("Polyline",Polyline);makeGlobal("Polygon",Polygon);makeGlobal("InfoWindow",InfoWindow);makeGlobal("Circle",Circle);makeGlobal("Control",Control);makeGlobal("NavigationControl",NavigationControl);makeGlobal("GeolocationControl",GeolocationControl);makeGlobal("OverviewMapControl",OverviewMapControl);makeGlobal("CopyrightControl",CopyrightControl);makeGlobal("ScaleControl",ScaleControl);makeGlobal("MapTypeControl",MapTypeControl); makeGlobal("TrafficLayer",TrafficLayer);makeGlobal("ContextMenu",ContextMenu);makeGlobal("MenuItem",MenuItem);makeGlobal("LocalSearch",LocalSearch);makeGlobal("TransitRoute",TransitRoute);makeGlobal("DrivingRoute",DrivingRoute);makeGlobal("WalkingRoute",WalkingRoute);makeGlobal("Autocomplete",Autocomplete);makeGlobal("Geocoder",Geocoder);makeGlobal("LocalCity",LocalCity);makeGlobal("Geolocation",Geolocation);makeGlobal("BusLineSearch",BusLineSearch);makeGlobal("Boundary",Boundary);function exportProperty(object,publicName,symbol){object[publicName]=symbol}function exportSymbol(object,opts){for(var property in opts)object[property]=opts[property]}exportSymbol(window,{"BMap":BMap,"_jsload":_jsload,"BMAP_API_VERSION":BMAP_API_VERSION});var MapP=Map[Tprototype]; exportSymbol(MapP,{"getBounds":MapP.getBounds,"getCenter":MapP.getCenter,"getMapType":MapP.getMapType,"getSize":MapP.getSize,"setSize":MapP.setSize,"getViewport":MapP.getViewport,"getZoom":MapP.getZoom,"centerAndZoom":MapP.centerAndZoom,"panTo":MapP.panTo,"panBy":MapP.panBy,"setCenter":MapP.setCenter,"setCurrentCity":MapP.setCurrentCity,"setMapType":MapP.setMapType,"setViewport":MapP.setViewport,"setZoom":MapP.setZoom,"highResolutionEnabled":MapP.highResolutionEnabled,"zoomTo":MapP.zoomTo,"zoomIn":MapP.zoomIn, "zoomOut":MapP.zoomOut,"addHotspot":MapP.addHotspot,"removeHotspot":MapP.removeHotspot,"clearHotspots":MapP.clearHotspots,"checkResize":MapP.checkResize,"addControl":MapP.addControl,"removeControl":MapP.removeControl,"getContainer":MapP.getContainer,"addContextMenu":MapP.addContextMenu,"removeContextMenu":MapP.removeContextMenu,"addOverlay":MapP.addOverlay,"removeOverlay":MapP.removeOverlay,"clearOverlays":MapP.clearOverlays,"openInfoWindow":MapP.openInfoWindow,"closeInfoWindow":MapP.closeInfoWindow, "pointToOverlayPixel":MapP.pointToOverlayPixel,"overlayPixelToPoint":MapP.overlayPixelToPoint,"getInfoWindow":MapP.getInfoWindow,"getOverlays":MapP.getOverlays,"getPanes":function(){return{"floatPane":this._panes.floatPane,"markerMouseTarget":this._panes.markerMouseTarget,"floatShadow":this._panes.floatShadow,"labelPane":this._panes.labelPane,"markerPane":this._panes.markerPane,"markerShadow":this._panes.markerShadow,"mapPane":this._panes.mapPane}},"addTileLayer":MapP.addTileLayer,"removeTileLayer":MapP.removeTileLayer, "pixelToPoint":MapP.pixelToPoint,"pointToPixel":MapP.pointToPixel});var MapTypeP=MapType[Tprototype];exportSymbol(MapTypeP,{"getTileLayer":MapTypeP.getTileLayer,"getMinZoom":MapTypeP.getMinZoom,"getMaxZoom":MapTypeP.getMaxZoom,"getProjection":MapTypeP.getProjection,"getTextColor":MapTypeP.getTextColor,"getTips":MapTypeP.getTips});exportSymbol(window,{"BMAP_NORMAL_MAP":BMAP_NORMAL_MAP,"BMAP_PERSPECTIVE_MAP":BMAP_PERSPECTIVE_MAP,"BMAP_SATELLITE_MAP":BMAP_SATELLITE_MAP,"BMAP_HYBRID_MAP":BMAP_HYBRID_MAP}); var MercatorProjectionP=MercatorProjection[Tprototype];exportSymbol(MercatorProjectionP,{"lngLatToPoint":MercatorProjectionP.lngLatToPoint,"pointToLngLat":MercatorProjectionP.pointToLngLat});var PerspectiveProjectionP=PerspectiveProjection[Tprototype];exportSymbol(PerspectiveProjectionP,{"lngLatToPoint":PerspectiveProjectionP.lngLatToPoint,"pointToLngLat":PerspectiveProjectionP.pointToLngLat});var BoundsP=Bounds[Tprototype]; exportSymbol(BoundsP,{"equals":BoundsP.equals,"containsPoint":BoundsP.containsPoint,"containsBounds":BoundsP.containsBounds,"intersects":BoundsP.intersects,"extend":BoundsP[Textend],"getCenter":BoundsP.getCenter,"isEmpty":BoundsP.isEmpty,"getSouthWest":BoundsP.getSouthWest,"getNorthEast":BoundsP.getNorthEast,"toSpan":BoundsP.toSpan});var OverlayP=Overlay[Tprototype];exportSymbol(OverlayP,{"isVisible":OverlayP.isVisible,"show":OverlayP.show,"hide":OverlayP.hide}); exportProperty(Overlay,"getZIndex",Overlay.getZIndex);var OverlayInternalP=OverlayInternal[Tprototype];exportSymbol(OverlayInternalP,{"openInfoWindow":OverlayInternalP.openInfoWindow,"closeInfoWindow":OverlayInternalP.closeInfoWindow,"enableMassClear":OverlayInternalP.enableMassClear,"disableMassClear":OverlayInternalP.disableMassClear,"show":OverlayInternalP.show,"hide":OverlayInternalP.hide,"getMap":OverlayInternalP.getMap});var MarkerP=Marker[Tprototype]; exportSymbol(MarkerP,{"setIcon":MarkerP.setIcon,"getIcon":MarkerP.getIcon,"setPosition":MarkerP.setPosition,"getPosition":MarkerP.getPosition,"setOffset":MarkerP.setOffset,"getOffset":MarkerP.getOffset,"getLabel":MarkerP.getLabel,"setLabel":MarkerP.setLabel,"setTitle":MarkerP.setTitle,"setTop":MarkerP.setTop,"enableDragging":MarkerP.enableDragging,"disableDragging":MarkerP.disableDragging,"setZIndex":MarkerP.setZIndex,"getMap":MarkerP.getMap,"addContextMenu":MarkerP.addContextMenu,"removeContextMenu":MarkerP.removeContextMenu, "setAnimation":MarkerP.setAnimation,"setShadow":MarkerP.setShadow,"hide":MarkerP.hide});exportSymbol(window,{"BMAP_ANIMATION_DROP":BMAP_ANIMATION_DROP,"BMAP_ANIMATION_BOUNCE":BMAP_ANIMATION_BOUNCE});var LabelP=Label[Tprototype]; exportSymbol(LabelP,{"setStyle":LabelP.setStyle,"setStyles":LabelP.setStyles,"setContent":LabelP.setContent,"setPosition":LabelP.setPosition,"getPosition":LabelP.getPosition,"setOffset":LabelP.setOffset,"getOffset":LabelP.getOffset,"setTitle":LabelP.setTitle,"setZIndex":LabelP.setZIndex,"getMap":LabelP.getMap});var IconP=Icon[Tprototype]; exportSymbol(IconP,{"setImageUrl":IconP.setImageUrl,"setSize":IconP.setSize,"setAnchor":IconP.setAnchor,"setImageOffset":IconP.setImageOffset,"setImageSize":IconP.setImageSize,"setInfoWindowAnchor":IconP.setInfoWindowAnchor,"setPrintImageUrl":IconP.setPrintImageUrl});var InfoWindowP=InfoWindow[Tprototype]; exportSymbol(InfoWindowP,{"redraw":InfoWindowP.redraw,"setTitle":InfoWindowP.setTitle,"setContent":InfoWindowP.setContent,"getContent":InfoWindowP.getContent,"getPosition":InfoWindowP.getPosition,"enableMaximize":InfoWindowP.enableMaximize,"disableMaximize":InfoWindowP.disableMaximize,"isOpen":InfoWindowP.isOpen,"setMaxContent":InfoWindowP.setMaxContent,"maximize":InfoWindowP.maximize,"enableAutoPan":InfoWindowP.enableAutoPan});var GraphP=Graph[Tprototype]; exportSymbol(GraphP,{"getPath":GraphP.getPath,"setPath":GraphP.setPath,"setPositionAt":GraphP.setPositionAt,"getStrokeColor":GraphP.getStrokeColor,"setStrokeWeight":GraphP.setStrokeWeight,"getStrokeWeight":GraphP.getStrokeWeight,"setStrokeOpacity":GraphP.setStrokeOpacity,"getStrokeOpacity":GraphP.getStrokeOpacity,"setFillOpacity":GraphP.setFillOpacity,"getFillOpacity":GraphP.getFillOpacity,"setStrokeStyle":GraphP.setStrokeStyle,"getStrokeStyle":GraphP.getStrokeStyle,"getFillColor":GraphP.getFillColor, "getBounds":GraphP.getBounds,"enableEditing":GraphP.enableEditing,"disableEditing":GraphP.disableEditing});var CircleP=Circle[Tprototype];exportSymbol(CircleP,{"setCenter":CircleP.setCenter,"getCenter":CircleP.getCenter,"getRadius":CircleP.getRadius,"setRadius":CircleP.setRadius});var PolygonP=Polygon[Tprototype];exportSymbol(PolygonP,{"getPath":PolygonP.getPath,"setPath":PolygonP.setPath,"setPositionAt":PolygonP.setPositionAt});var HotspotP=Hotspot[Tprototype]; exportSymbol(HotspotP,{"getPosition":HotspotP.getPosition,"setPosition":HotspotP.setPosition,"getText":HotspotP.getText,"setText":HotspotP.setText});exportProperty(Point[Tprototype],"equals",Point[Tprototype].equals);exportProperty(Pixel[Tprototype],"equals",Pixel[Tprototype].equals);exportProperty(Size[Tprototype],"equals",Size[Tprototype].equals); exportSymbol(window,{"BMAP_ANCHOR_TOP_LEFT":BMAP_ANCHOR_TOP_LEFT,"BMAP_ANCHOR_TOP_RIGHT":BMAP_ANCHOR_TOP_RIGHT,"BMAP_ANCHOR_BOTTOM_LEFT":BMAP_ANCHOR_BOTTOM_LEFT,"BMAP_ANCHOR_BOTTOM_RIGHT":BMAP_ANCHOR_BOTTOM_RIGHT});var ControlP=Control[Tprototype];exportSymbol(ControlP,{"setAnchor":ControlP.setAnchor,"getAnchor":ControlP.getAnchor,"setOffset":ControlP.setOffset,"getOffset":ControlP.getOffset,"show":ControlP.show,"hide":ControlP.hide,"isVisible":ControlP.isVisible,"toString":ControlP.toString}); var NavigationControlP=NavigationControl[Tprototype];exportSymbol(NavigationControlP,{"getType":NavigationControlP.getType,"setType":NavigationControlP.setType});exportSymbol(window,{"BMAP_NAVIGATION_CONTROL_LARGE":BMAP_NAVIGATION_CONTROL_LARGE,"BMAP_NAVIGATION_CONTROL_SMALL":BMAP_NAVIGATION_CONTROL_SMALL,"BMAP_NAVIGATION_CONTROL_PAN":BMAP_NAVIGATION_CONTROL_PAN,"BMAP_NAVIGATION_CONTROL_ZOOM":BMAP_NAVIGATION_CONTROL_ZOOM});var OverviewMapControlP=OverviewMapControl[Tprototype]; exportSymbol(OverviewMapControlP,{"changeView":OverviewMapControlP.changeView,"setSize":OverviewMapControlP.setSize,"getSize":OverviewMapControlP.getSize});var ScaleControlP=ScaleControl[Tprototype];exportSymbol(ScaleControlP,{"getUnit":ScaleControlP.getUnit,"setUnit":ScaleControlP.setUnit});exportSymbol(window,{"BMAP_UNIT_METRIC":BMAP_UNIT_METRIC,"BMAP_UNIT_IMPERIAL":BMAP_UNIT_IMPERIAL});var CopyrightControlP=CopyrightControl[Tprototype]; exportSymbol(CopyrightControlP,{"addCopyright":CopyrightControlP.addCopyright,"removeCopyright":CopyrightControlP.removeCopyright,"getCopyright":CopyrightControlP.getCopyright,"getCopyrightCollection":CopyrightControlP.getCopyrightCollection});exportSymbol(window,{"BMAP_MAPTYPE_CONTROL_HORIZONTAL":BMAP_MAPTYPE_CONTROL_HORIZONTAL,"BMAP_MAPTYPE_CONTROL_DROPDOWN":BMAP_MAPTYPE_CONTROL_DROPDOWN});var TileLayerP=TileLayer[Tprototype]; exportSymbol(TileLayerP,{"getMapType":TileLayerP.getMapType,"getCopyright":TileLayerP.getCopyright,"isTransparentPng":TileLayerP.isTransparentPng});var ContextMenuP=ContextMenu[Tprototype];exportSymbol(ContextMenuP,{"addItem":ContextMenuP.addItem,"addSeparator":ContextMenuP.addSeparator,"removeSeparator":ContextMenuP.removeSeparator});var MenuItemP=MenuItem[Tprototype];exportSymbol(MenuItemP,{"setText":MenuItemP.setText});var BaseSearchP=BaseSearch[Tprototype]; exportSymbol(BaseSearchP,{"getStatus":BaseSearchP.getStatus,"setSearchCompleteCallback":BaseSearchP.setSearchCompleteCallback,"getPageCapacity":BaseSearchP.getPageCapacity,"setPageCapacity":BaseSearchP.setPageCapacity,"setLocation":BaseSearchP.setLocation,"disableFirstResultSelection":BaseSearchP.disableFirstResultSelection,"enableFirstResultSelection":BaseSearchP.enableFirstResultSelection,"gotoPage":BaseSearchP.gotoPage,"searchNearby":BaseSearchP.searchNearby,"searchInBounds":BaseSearchP.searchInBounds, "search":BaseSearchP.search});exportSymbol(window,{"BMAP_STATUS_SUCCESS":BMAP_STATUS_SUCCESS,"BMAP_STATUS_CITY_LIST":BMAP_STATUS_CITY_LIST,"BMAP_STATUS_UNKNOWN_LOCATION":BMAP_STATUS_UNKNOWN_LOCATION,"BMAP_STATUS_UNKNOWN_ROUTE":BMAP_STATUS_UNKNOWN_ROUTE,"BMAP_STATUS_INVALID_KEY":BMAP_STATUS_INVALID_KEY,"BMAP_STATUS_INVALID_REQUEST":BMAP_STATUS_INVALID_REQUEST,"BMAP_STATUS_PERMISSION_DENIED":BMAP_STATUS_PERMISSION_DENIED,"BMAP_STATUS_SERVICE_UNAVAILABLE":BMAP_STATUS_SERVICE_UNAVAILABLE,"BMAP_STATUS_TIMEOUT":BMAP_STATUS_TIMEOUT}); exportSymbol(window,{"BMAP_POI_TYPE_NORMAL":BMAP_POI_TYPE_NORMAL,"BMAP_POI_TYPE_BUSSTOP":BMAP_POI_TYPE_BUSSTOP,"BMAP_POI_TYPE_BUSLINE":BMAP_POI_TYPE_BUSLINE,"BMAP_POI_TYPE_SUBSTOP":BMAP_POI_TYPE_SUBSTOP,"BMAP_POI_TYPE_SUBLINE":BMAP_POI_TYPE_SUBLINE}); exportSymbol(window,{"BMAP_TRANSIT_POLICY_LEAST_TIME":BMAP_TRANSIT_POLICY_LEAST_TIME,"BMAP_TRANSIT_POLICY_LEAST_TRANSFER":BMAP_TRANSIT_POLICY_LEAST_TRANSFER,"BMAP_TRANSIT_POLICY_LEAST_WALKING":BMAP_TRANSIT_POLICY_LEAST_WALKING,"BMAP_TRANSIT_POLICY_AVOID_SUBWAYS":BMAP_TRANSIT_POLICY_AVOID_SUBWAYS,"BMAP_LINE_TYPE_BUS":BMAP_LINE_TYPE_BUS,"BMAP_LINE_TYPE_SUBWAY":BMAP_LINE_TYPE_SUBWAY,"BMAP_LINE_TYPE_FERRY":BMAP_LINE_TYPE_FERRY});var BaseRouteP=BaseRoute[Tprototype];exportSymbol(BaseRouteP,{"clearResults":BaseRouteP.clearResults}); var TransitRouteP=TransitRoute[Tprototype];exportSymbol(TransitRouteP,{"setPolicy":TransitRouteP.setPolicy,"toString":TransitRouteP.toString,"setPageCapacity":TransitRouteP.setPageCapacity});exportSymbol(window,{"BMAP_DRIVING_POLICY_LEAST_TIME":BMAP_DRIVING_POLICY_LEAST_TIME,"BMAP_DRIVING_POLICY_LEAST_DISTANCE":BMAP_DRIVING_POLICY_LEAST_DISTANCE,"BMAP_DRIVING_POLICY_AVOID_HIGHWAYS":BMAP_DRIVING_POLICY_AVOID_HIGHWAYS});exportSymbol(window,{"BMAP_HIGHLIGHT_STEP":BMAP_HIGHLIGHT_STEP,"BMAP_HIGHLIGHT_ROUTE":BMAP_HIGHLIGHT_ROUTE}); exportSymbol(window,{"BMAP_ROUTE_TYPE_DRIVING":BMAP_ROUTE_TYPE_DRIVING,"BMAP_ROUTE_TYPE_WALKING":BMAP_ROUTE_TYPE_WALKING});exportSymbol(window,{"BMAP_ROUTE_STATUS_NORMAL":BMAP_ROUTE_STATUS_NORMAL,"BMAP_ROUTE_STATUS_EMPTY":BMAP_ROUTE_STATUS_EMPTY,"BMAP_ROUTE_STATUS_ADDRESS":BMAP_ROUTE_STATUS_ADDRESS});var DrivingRouteP=DrivingRoute[Tprototype];exportSymbol(DrivingRouteP,{"setPolicy":DrivingRouteP.setPolicy});var AutocompleteP=Autocomplete[Tprototype]; exportSymbol(AutocompleteP,{"show":AutocompleteP.show,"hide":AutocompleteP.hide,"setTypes":AutocompleteP.setTypes,"setLocation":AutocompleteP.setLocation,"search":AutocompleteP.search,"setInputValue":AutocompleteP.setInputValue});var BoundaryP=Boundary[Tprototype];exportSymbol(BoundaryP,{"get":BoundaryP.get});BMap.apiLoad();BMap.verify(); })()
scripts/fix-bmap-sdk-v14.mjs
¶Ô±ÈÐÂÎļþ
@@ -0,0 +1,80 @@
import fs from 'node:fs';
const srcPath = process.argv[2];
const outPath = process.argv[3];
let s = fs.readFileSync(srcPath, 'utf8');
const O = 'window.location.origin';
// v1.4 çš„域名都是完整的 http:// URL,逐条精确替换(含闭合引号,避免破坏语法)
// ç“¦ç‰‡ï¼šmaponline0-3.bdimg.com/tile/  ->  /bmap-tileN/tile/
// API ï¼šapi.map.baidu.com             ->  /bmap-api
const rules = [
  // ---- ç“¦ç‰‡ï¼ˆæœ€å…³é”®ï¼‰----
  ['"http://maponline0.bdimg.com/tile/"', `(${O} + "/bmap-tile0/tile/")`],
  ['"http://maponline1.bdimg.com/tile/"', `(${O} + "/bmap-tile1/tile/")`],
  ['"http://maponline2.bdimg.com/tile/"', `(${O} + "/bmap-tile2/tile/")`],
  ['"http://maponline3.bdimg.com/tile/"', `(${O} + "/bmap-tile3/tile/")`],
  // ---- ä¸» API(含带参数的完整形式,必须整串替换)----
  ['"http://api.map.baidu.com/getmodules?v=1.4"', `(${O} + "/bmap-api/getmodules?v=1.4")`],
  ['"http://api.map.baidu.com/images/"', `(${O} + "/bmap-api/images/")`],
  ['"http://api.map.baidu.com/"', `(${O} + "/bmap-api/")`],
  // ---- å…¶ä»–静态资源 ----
  ['"http://map.baidu.com/?sr=1"', `(${O} + "/bmap-map/?sr=1")`],
  ['"http://map.baidu.com/"', `(${O} + "/bmap-map/")`],
  ['"http://d0.map.baidu.com/resource/mappic/"', `(${O} + "/bmap-api/resource/mappic/")`],
  ['"http://d1.map.baidu.com/resource/mappic/"', `(${O} + "/bmap-api/resource/mappic/")`],
  ['"http://d2.map.baidu.com/resource/mappic/"', `(${O} + "/bmap-api/resource/mappic/")`],
  ['"http://d3.map.baidu.com/resource/mappic/"', `(${O} + "/bmap-api/resource/mappic/")`],
];
function syntaxError(code) {
  try {
    new Function(code);
    return null;
  } catch (e) {
    return e.message;
  }
}
console.log('初始语法: ' + (syntaxError(s) || 'OK'));
let applied = 0;
for (const [from, to] of rules) {
  const n = s.split(from).length - 1;
  if (n === 0) {
    continue;
  }
  const before = s;
  s = s.split(from).join(to);
  const err = syntaxError(s);
  if (err) {
    console.log(`  X   ${from} (${n} å¤„) -> ${err}`);
    s = before;
  } else {
    applied += n;
    console.log(`  OK  ${from} (${n} å¤„)`);
  }
}
console.log('最终语法: ' + (syntaxError(s) || 'OK'));
console.log(`  å…±æ›¿æ¢ ${applied} å¤„`);
// å…³é”®æŒ‡æ ‡æ ¡éªŒ
const hasTile = s.includes('qt=tile');
const hasVtile = s.includes('qt=vtile');
const hasBMap = /BMap\s*\.\s*version\s*=/.test(s) || s.includes('window["BMap"]');
const leftover = (s.match(/https?:\/\/[a-z0-9.-]+\.(?:baidu|bdimg)\.com/g) || []);
console.log(`  ä¸»ç“¦ç‰‡ qt=tile: ${hasTile ? '是' : '否'}`);
console.log(`  å« qt=vtile   : ${hasVtile ? '是(可能走矢量,需注意)' : '否'}`);
console.log(`  æš´éœ² window.BMap: ${hasBMap ? '是' : '否'}`);
console.log(`  æ®‹ç•™ç™¾åº¦åŸŸåå¼•用: ${leftover.length} å¤„`);
if (leftover.length > 0) {
  const uniq = [...new Set(leftover)];
  console.log('    ' + uniq.slice(0, 10).join('\n    '));
}
fs.writeFileSync(outPath, s);
console.log('已写出: ' + outPath);