api_https_amap.js 301 KB
!function(config){var aa=navigator.userAgent.toLowerCase(),ea=window,fa=document,ha=fa.documentElement;function f(t){return-1!==aa.indexOf(t)}var ma=/([a-z0-9]*\d+[a-z0-9]*)/;function na(){if(!(t=oa))return null;var t,e=null;if((e=(t=t.toLowerCase()).match(/angle \((.*)\)/))&&(t=(t=e[1]).replace(/\s*direct3d.*$/,"")),0<=(t=t.replace(/\s*\([^\)]*wddm[^\)]*\)/,"")).indexOf("intel")){if(e=["Intel"],0<=t.indexOf("mobile")&&e.push("Mobile"),(0<=t.indexOf("gma")||0<=t.indexOf("graphics media accelerator"))&&e.push("GMA"),0<=t.indexOf("haswell"))e.push("Haswell");else if(0<=t.indexOf("ivy"))e.push("HD 4000");else if(0<=t.indexOf("sandy"))e.push("HD 3000");else if(0<=t.indexOf("ironlake"))e.push("HD");else{0<=t.indexOf("hd")&&e.push("HD");var i=t.match(ma);i&&e.push(i[1].toUpperCase())}return e.join(" ")}return 0<=t.indexOf("nvidia")||0<=t.indexOf("quadro")||0<=t.indexOf("geforce")||0<=t.indexOf("nvs")?(e=["nVidia"],0<=t.indexOf("geforce")&&e.push("geForce"),0<=t.indexOf("quadro")&&e.push("Quadro"),0<=t.indexOf("nvs")&&e.push("NVS"),t.match(/\bion\b/)&&e.push("ION"),t.match(/gtx\b/)?e.push("GTX"):t.match(/gts\b/)?e.push("GTS"):t.match(/gt\b/)?e.push("GT"):t.match(/gs\b/)?e.push("GS"):t.match(/ge\b/)?e.push("GE"):t.match(/fx\b/)&&e.push("FX"),(i=t.match(ma))&&e.push(i[1].toUpperCase().replace("GS","")),0<=t.indexOf("titan")?e.push("TITAN"):0<=t.indexOf("ti")&&e.push("Ti"),e=e.join(" ")):0<=t.indexOf("amd")||0<=t.indexOf("ati")||0<=t.indexOf("radeon")||0<=t.indexOf("firegl")||0<=t.indexOf("firepro")?(e=["AMD"],0<=t.indexOf("mobil")&&e.push("Mobility"),0<=(i=t.indexOf("radeon"))&&e.push("Radeon"),0<=t.indexOf("firepro")?e.push("FirePro"):0<=t.indexOf("firegl")&&e.push("FireGL"),0<=t.indexOf("hd")&&e.push("HD"),0<=i&&(t=t.substring(i)),(i=t.match(ma))&&e.push(i[1].toUpperCase().replace("HD","")),e=e.join(" ")):t.substring(0,100)}var qa="microsoft basic render driver;vmware svga 3d;Intel 965GM;Intel B43;Intel G41;Intel G45;Intel G965;Intel GMA 3600;Intel Mobile 4;Intel Mobile 45;Intel Mobile 965".split(";"),ra="ActiveXObject"in ea,sa="devicePixelRatio"in ea&&1<ea.devicePixelRatio||ra&&"matchMedia"in ea&&ea.matchMedia("(min-resolution:144dpi)")&&ea.matchMedia("(min-resolution:144dpi)").matches,xa=f("windows nt"),za=-1!==aa.search(/windows nt [1-5]\./),Aa=-1!==aa.search(/windows nt 5\.[12]/),Ba=za&&!Aa;f("windows nt 10");var Ca=f("windows phone"),Da=f("macintosh"),Ea=f("Mb2345Browser"),Fa=f("ipad;")||f("ipad "),Ga=Fa&&sa,Ha=f("ipod touch;"),Ia=f("iphone;")||f("iphone "),Ja=Ia||Fa||Ha,Ka=Ja&&-1!==aa.search(/ os [456]_/);Ja&&aa.search(/ os [4-8]_/),Ja&&aa.search(/ os [78]_/),Ja&&f("os 8_");var La=Ja&&f("os 10_"),Oa=f("android"),Pa=-1!==aa.search(/android [123]/);f("android 4"),Oa&&-1===aa.search(/android [1-4]/)||aa.search(/android 4.4/);var Qa=Oa?"android":Ja?"ios":xa?"windows":Da?"mac":"other",Ra=ra&&!ea.XMLHttpRequest,Sa=ra&&!fa.querySelector,Ta=ra&&!fa.addEventListener,Ua=ra&&f("ie 9"),Va=ra&&f("msie 10"),Wa=ra&&f("rv:11"),Xa=f("edge"),Ya=f("qtweb"),Za=f("ucbrowser"),$a=f("alipay")||Oa&&Za,ab=f("miuibrowser"),bb=f("micromessenger"),cb=f("mqqbrowser"),db=f("baidubrowser"),chrome=(f("chrome")||f("crios"))&&!bb&&!db&&!cb&&!Xa&&!ab,eb=chrome&&f("chromium"),fb=chrome&&!eb&&30<parseInt(aa.split("chrome/")[1]),gb=f("firefox"),hb=gb&&27<parseInt(aa.split("firefox/")[1]),ib=(Da||Ja)&&f("safari")&&f("version/"),jb=Da&&ib&&7<parseInt(aa.split("version/")[1]),kb=Ja&&f("aliapp"),lb=Ja&&(!cb&&!Za&&!bb&&!chrome&&!gb&&!ib||kb&&!Za),mb=Oa||Ja||Ca||f("mobile"),nb=ea.navigator&&ea.navigator.msPointerEnabled&&!!ea.navigator.msMaxTouchPoints,ob=ea.navigator&&ea.navigator.pointerEnabled&&!!ea.navigator.maxTouchPoints,pb=ob||nb,qb="ontouchstart"in fa||pb,rb=function(){if(!mb)return ea.devicePixelRatio||1;var t=document.getElementsByTagName("meta");if(window.parent&&window.parent!==window)try{if(window.parent.location.origin!==window.location.origin)return 1;t=window.parent.document.getElementsByTagName("meta")}catch(t){return 1}for(var e=t.length-1;0<=e;e-=1)if("viewport"===t[e].name){var i;if(-1!==(e=t[e].content).indexOf("initial-scale")&&(i=parseFloat(e.split("initial-scale=")[1])),t=-1!==e.indexOf("minimum-scale")?parseFloat(e.split("minimum-scale=")[1]):0,e=-1!==e.indexOf("maximum-scale")?parseFloat(e.split("maximum-scale=")[1]):1/0,i){if(t<=e)return e<i?e:i<t?t:i}else if(t<=e)return 1<=t?1:Math.min(e,1);return console&&console.log&&console.log("viewport参数不合法"),null}}(),sb=sa&&(!mb||!!rb&&1<=rb),tb=ra&&"transition"in ha.style,ub=!!fa.createElementNS&&!!fa.createElementNS("http://www.w3.org/2000/svg","svg").createSVGRect,vb=fa.createElement("canvas"),wb=!(!vb||!vb.getContext),xb=window.URL||window.webkitURL,Ab=!ra&&!(Za&&Oa)&&window.Worker&&xb&&xb.createObjectURL&&window.Blob,Bb="",oa="",Cb=0,Db={alpha:!0,antialias:!0,depth:!0,failIfMajorPerformanceCaveat:!0,preserveDrawingBuffer:!0,stencil:!1},Eb=function(){if(!window.forceWebGL&&(!wb||!Ab||lb&&kb&&!Za))return!1;for(var t=["webgl","experimental-webgl","moz-webgl"],e=null,i=0;i<t.length;i+=1){try{e=vb.getContext(t[i],window.forceWebGL?{alpha:!1,antialias:!0,depth:!0}:Db)}catch(t){}if(e){if(e.drawingBufferWidth!==vb.width||e.drawingBufferHeight!==vb.height)break;if(window.forceWebGL)return Bb=t[i],Cb=1/0,!0;if(!e.getShaderPrecisionFormat||!e.getParameter||!e.getExtension)break;Cb=e.getParameter(e.MAX_RENDERBUFFER_SIZE);var n=e.getParameter(e.MAX_VIEWPORT_DIMS);if(!n)break;if(Cb=Math.min(Cb,n[0],n[1]),ib&&"mac"===Qa&&(Cb=Math.min(Cb,4096)),n=Math.max(screen.width,screen.height),sb&&(n*=Math.min(2,window.devicePixelRatio||1)),Cb<n)break;if(e.getShaderPrecisionFormat(35632,36338).precision<23||e.getShaderPrecisionFormat(35633,36338).precision<23)break;if(oa=e.getExtension("WEBGL_debug_renderer_info")?e.getParameter(37446):null,(e=na())&&-1!==qa.indexOf(e))break;return Bb=t[i],!0}}return!1}(),Fb=Eb&&(fb||hb||jb)&&("mac"===Qa||"windows"===Qa)&&!mb,Gb=!wb||Ya||Ca||mb&&gb||Ua||Ka||Ga||Ha||Pa||f("gt-n710")||Ba,Hb=!Gb&&!Fb,Ib=Fb?"vw":Gb?"d":Hb?"dv":"v",Jb=f("webkit"),Kb="WebKitCSSMatrix"in ea&&"m11"in new window.WebKitCSSMatrix,Lb="MozPerspective"in ha.style,Mb="OTransition"in ha.style,Nb=tb||Kb||Lb||Mb,Ob=void 0===config[8]||config[8],Pb=void 0===config[9]||config[9],Qb=void 0===config[10]||config[10],Rb=void 0===config[11]||config[11],Sb=void 0!==config[12]?config[12]:null,Tb=!ub&&mb&&wb,Ub=!0;try{if(void 0===ea.localStorage)Ub=!1;else{var Vb=(new Date).getTime()+"";ea.localStorage.setItem("_test",Vb),ea.localStorage.getItem("_test")!==Vb&&(Ub=!1),ea.localStorage.removeItem("_test")}}catch(t){Ub=!1}var Xb=parseInt(aa.split("chrome/")[1]);config.l={qda:Fa,rda:Ia,size:Ia?100:Oa?200:500,Iy:Da,Nja:xa,qD:Ja,Oma:La,Mj:Oa,u$:Pa,fV:$a,Pr:Qa,gC:db,zga:cb,qM:ib,v_:bb,Xo:ra,bh:Ra,Yo:Sa,jW:Ua,iW:Va,ae:Ta,uda:Wa,Nba:Xa,xda:ra&&!Wa,Jea:Ea,bj:Ub,gf:Ub&&Rb&&!mb&&chrome,Ud:Sb,geolocation:mb||ra&&!Ta||Xa,hja:Za,JE:Za&&!chrome,chrome:chrome,vJ:sa&&chrome,JJ:gb,Y:mb,Qea:mb&&Jb,oX:mb&&Kb,Pea:mb&&ea.opera,qd:sa,SE:rb,ja:sb,Oe:qb,qX:nb,QL:ob,cY:pb,maa:chrome&&57<=Xb,naa:!mb&&chrome&&64<=Xb,t_:Jb,vda:tb,u_:Kb,lca:Lb,Ffa:Mb,eC:Nb,dm:ub,am:wb,Br:Ab,rv:Qb,Je:Fb,q_:Bb,r_:Db,qK:oa,Hea:Cb,bka:!1,SU:Ob,Fx:Ob&&!Gb,J$:Ob?Ib:"d",cU:!!Ob&&Eb,pz:Ob&&wb,rm:Ob&&Eb,Rma:Ob&&(!Gb||Eb),vn:Pb&&!!ea.WebSocket&&!db,qna:Tb,Jfa:wb||Tb?"c":"d"};var Yb=config;config=void 0;var Zb={overlay:["style"],"AMap.IndoorMap":["AMap.CustomLayer","cvector"],"AMap.IndoorMap3D":["Map3D"],"AMap.MarkerList":["AMap.TplUtils"],Map3D:["vectorlayer","wgl","AMap.CustomLayer"],"AMap.Heatmap":["AMap.CustomLayer"]};window.AMap?(window.AMap.version="1536672475636",window.AMap.OE={BF:function(t){t(Yb)}}):window.AMap={version:"1536672475636",OE:{BF:function(t){t(Yb)}}},Yb.Th="1536672475636",Yb.Wq=Zb,Yb.HD="raster";for(var $b=document.head||document.getElementsByTagName("head")[0],ac=".vml{behavior:url(#default#VML);display:inline-block;position:absolute}.amap-custom{top:0;left:0;position:absolute}.amap-container img{max-width:none!important;max-height:none!important}.amap-container{touch-action:none;position:relative;overflow:hidden;background:#fcf9f2 url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAfQAAAH0AgMAAAC2uDcZAAAADFBMVEX////////////////1pQ5zAAAABHRSTlMAgP/AWuZC2AAAAVhJREFUeAFiYGAQYGDEQjAB2rcDC4BiGIqiU7abdKlO2QkeIClyPsDHweMKtOPHIJ1Op6/w7Y4fdqfT6VpndzqdrnV2p9PpWmd3Oj3qWndSoKp+2J1Op7vr7E6n07XO7nQ6XevsTqfTtc7udPo4/f787E6n0911dqfT6VpndzqdrnV2p9PpWmd3Ot27Ce8m6HS6u85dR6fTtU7r6HS61mkdnU7XOrvT6XTvJuxOp9PddXan0+laZ3c6na51dDpd67SOTqd7N+HdBJ1Od9e56+h0utZpHZ1O1zq70+l0rbM7nU73bsLudDrdXWd3Ol3rtI5Op2ud1tHpdK3TOjqd7t2EdxN0Ot1dZ3c6na51dqfT6VpndzqdrnV2p9Pp3k3Q6XR3nbuOTqdrndbR6XSt0zo6na51Wken072bsDudTnfX2Z1Op2ud3el0utbZnU7XOq2j0+t0uncTD1gO4zoT5doZAAAAAElFTkSuQmCC);-ms-touch-action:none}.amap-drags,.amap-layers{width:100%;height:100%;position:absolute;overflow:hidden}.amap-layer img{pointer-events:none}.amap-e,.amap-maps{width:100%;height:100%}.amap-maps,.amap-e,.amap-layers,.amap-tile,.amap-tile-container{position:absolute;left:0;top:0;overflow:hidden}.amap-context{position:absolute;left:0;top:0}.amap-overlays,.amap-markers,.amap-marker{position:absolute;left:0;top:0}.amap-layers{z-index:0}.amap-overlays{z-index:110;cursor:default}.amap-markers{z-index:120}.amap-controls{z-index:150}.amap-copyright{position:absolute;display:none!important;left:77px;height:16px;bottom:0;padding-bottom:3px;font-size:11px;font-family:Arial,sans-serif;z-index:160}.amap-logo{position:absolute;bottom:1px;left:1px;z-index:160;height:20px}.amap-logo img{width:73px!important;height:20px!important;border:0;vertical-align:baseline!important}.amap-icon{position:relative;z-index:1;overflow:hidden}.amap-icon img{position:absolute;z-index:-1}.amap-marker-label{position:absolute;z-index:2;border:1px solid blue;background-color:white;white-space:nowrap;cursor:default;padding:3px;font-size:12px;line-height:14px}.amap-info{position:absolute;left:0;z-index:140;width:320px}.amap-menu{position:absolute;z-index:140;_width:100px}.amap-info-close{position:absolute;right:5px;_right:12px;+right:11px;top:5px;_top:2px;+top:2px;color:#c3c3c3;text-decoration:none;font:bold 16px/14px Tahoma,Verdana,sans-serif;width:14px;height:14px}.amap-info-outer,.amap-menu-outer{box-shadow:0 3px 14px rgba(0,0,100,0.6);background:none repeat scroll 0 0 white;border-radius:2px;padding:1px;text-align:left;border:#c0c0c0 solid 1px}.amap-info-outer:hover,.amap-menu-outer:hover{box-shadow:0 3px 14px rgba(0,0,0,0.75)}.amap-info-content{background:#fff;border:1px solid #ccc;padding:10px 18px 10px 10px;+margin:0 10px;+padding:10px 0;line-height:1.4;overflow:auto}.amap-marker-content{position:relative}.amap-info{_width:320px}.amap-menu{_width:100px}.amap-info-sharp{height:23px;margin:0 auto;overflow:hidden;position:relative;top:-1px;width:30px;background-image:url(../../theme/v1.3/sharp.png);_background-image:url(../../theme/v1.3/sharp.gif)}.amap-menu-outer{margin:0;padding:0;list-style-type:none}ul.amap-menu-outer li{cursor:pointer;height:35px;line-height:35px;word-break:break-all;padding:0 10px;font-size:12px;white-space:nowrap}ul.amap-menu-outer li a{text-decoration:none;font-size:13px;margin:0 5px;color:#000;padding:5px 5px}ul.amap-menu-outer li:hover{background-color:#f3f3ee}.amap-overlay-text-container{display:block;width:auto;word-break:keep-all;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;background:#fff;padding:2px 3px;border:1px solid #ccc;border-radius:3px}.amap-overlay-text-container.amap-overlay-text-empty{display:none}".replace(/url\((['"]?)(?:\.\.\/)+/g,"url($1"+Yb[2].split(",")[0]+"/"),bc=null,cc=0,dc=$b.childNodes.length;cc<dc;cc++)if(1===$b.childNodes[cc].nodeType){bc=$b.childNodes[cc];break}if(ac)if($b){var ec=document.createElement("style");ec.setAttribute("type","text/css"),ec.setAttribute("class","AMap.style"),ec.styleSheet?ec.styleSheet.cssText=ac:ec.innerHTML=ac,bc?$b.insertBefore(ec,bc):$b.appendChild(ec)}else document.write("<style type='text/css'>"+ac+"</style>");var w=w||{Da:{be:0,Np:[]}},$={w:{},control:{},D:{}},A,Wg,Kg,Ie,mi,ni,oi,Gi,Hi,Ii,Ji,$o,Zo,fy,ey,gy,$y;function fc(t){w.aa.Wq=t.Wq,w.l=t.l,w.HD=t.HD,w.jga=t[7],t.l=null,w.A.ub=t[2].split(",")[0],w.A.Th=t.Th,w.A.Gy=t.Gy;var e=w.A.Rb=w.A.ub.split(":")[0];"https"===e&&(w.A.yN="wss",w.A.sd=w.A.sd.replace("http","https"),w.A.Jy=w.A.Jy.replace("http","https"),w.A.CD=w.A.CD.replace("http","https"),w.A.rM=w.A.rM.replace("http","https"),w.A.lE=w.A.lE.replace("http","https"),w.A.mE=w.A.mE.replace("http","https"),w.A.wz=w.A.wz.replace("http","https"),w.A.QE=w.A.QE.replace("http","https"));var i=window.location.href;0!==i.indexOf("http")&&window.parent&&window.parent!==window&&(i=window.parent.location.href),w.A.jca=i,i=encodeURIComponent(i),w.A.Sm=i,w.A.fh=w.A.ub+"/theme/v1.3/markers/"+(w.l.qd?"b":"n");var n=document.createElement("style");n.type="text/css",w.A.gba="url("+e+"://webapi.amap.com/theme/v1.3/openhand.cur),default";var s=".amap-container{cursor:"+w.A.gba+";}.amap-drag{cursor:url("+e+"://webapi.amap.com/theme/v1.3/closedhand.cur),default;}";n.styleSheet?(e=function(){try{n.styleSheet.cssText=s}catch(t){}},n.styleSheet.disabled?setTimeout(e,10):e()):n.appendChild(document.createTextNode(s)),(document.head||document.getElementsByTagName("head")[0]).appendChild(n),w.A.mode=Number(t[3]),w.A.md=t[1],w.A.key=t[0],w.A.Gq=t[4],w.A.Cc=t[5],w.A.e$=t[6]}w.bma=(A=Function,function(){return new A("return "+void 0)()}),w.CLASS_NAME="AMap",w.e=w.BuryPoint={lX:{},jL:{},options:{},AL:{},eR:{},fR:{},gS:{},hS:{}},w.e.ug=w.BuryPoint.dic={"AMap.event":{c:"ev",m:{addDomListener:"a",addListener:"b",addListenerOnce:"c",removeListener:"d",trigger:"e"}},AMap:{c:"aa",m:{convertFrom:"a"}},"AMap.Map":{c:"m",o:{view:"a",layers:"b",level:"c",center:"d",zooms:"e",lang:"f",cursor:"g",crs:"h",animateEnable:"i",isHotspot:"j",defaultLayer:"k",rotateEnable:"l",resizeEnable:"m",dragEnable:"n",zoomEnable:"o",doubleClickZoom:"p",keyboardEnable:"q",jogEnable:"r",scrollWheel:"s",touchZoom:"t",mapStyle:"u","features ":"v",zoom:"w"},m:{setMapStyle:"a",getMapStyle:"b",getFeatures:"c",setFeatures:"d",setLang:"e",getLang:"f",setCity:"g",getCity:"h",getAdcode:"i",setLimitBounds:"j",clearLimitBounds:"k",getLimitBounds:"l",setZoom:"m",getZoom:"n",getCenter:"o",setCenter:"p",setRotation:"q",getBounds:"r",getStatus:"s",setStatus:"t",getResolution:"u",getScale:"v",getDefaultCursor:"w",setDefaultCursor:"x",zoomIn:"y",zoomOut:"z",setZoomAndCenter:"0",setBounds:"1",clearMap:"2",destroy:"3",addControl:"4",removeControl:"5",clearControl:"6",clearInfoWindow:"7",remove:"8",add:"9",getAllOverlays:"a1",getSize:"a2",getContainer:"a3",panTo:"a4",panBy:"a5",setFitView:"a6",setLayers:"a7",getLayers:"a8",getDefaultLayer:"a9",setDefaultLayer:"a0",pixelToLngLat:"b0",lnglatToPixel:"b1",drawPolyline:"b2",drawPolygon:"b3",drawCircle:"b4"}},"AMap.View2D":{c:"v",o:{center:"a",rotation:"b",zoom:"c",crs:"d"}},"AMap.Buildings":{p:"AMap.Layer",c:"b"},"AMap.CustomLayer":{p:"AMap.Layer",c:"c",o:{map:"a",zIndex:"b",opacity:"c",zooms:"d"},m:{setOpacity:"2a",getContainer:"2b",show:"2c",hide:"2d",setzIndex:"2e"}},"AMap.ImageLayer":{p:"AMap.Layer",c:"i",o:{bounds:"a",url:"b",map:"c",opacity:"d",visible:"e",zIndex:"f",zooms:"g"},m:{getMap:"4a",show:"4b",getOpacity:"4c",setOpacity:"4d",getBounds:"4e",setBounds:"4f",getImageUrl:"4g",setImageUrl:"4h",hide:"4i",setOptions:"4j",getOptions:"4k"}},"AMap.Layer":{c:"l",m:{getZooms:"a",setOpacity:"b",show:"c",hide:"d",setMap:"e",getMap:"f",setzIndex:"g"}},"AMap.MassMarks":{p:"AMap.Layer",c:"ma",o:{zIndex:"a",opacity:"b",zooms:"c",anchor:"d",url:"e",size:"f",cursor:"g",alwaysRender:"h"},m:{setData:"0a",getData:"0b",getStyle:"0c",setStyle:"0d",setMap:"0e"}},"AMap.TileLayer":{p:"AMap.Layer",c:"tl",o:{map:"a",tileSize:"b",tileUrl:"c",errorUrl:"d",getTileUrl:"e",zIndex:"f",opacity:"g",zooms:"h",detectRetina:"i"},m:{setTextIndex:"3a",getTiles:"3b",setTileUrl:"3d",getTileUrl:"3e",getZooms:"3f",stopRefresh:"3g",startRefresh:"3h",reload:"3i"}},"AMap.TileLayer.Satellite":{p:"AMap.TileLayer",c:"s",o:{map:"a",zIndex:"b",opacity:"c",zooms:"d",detectRetina:"e"}},"AMap.TileLayer.RoadNet":{p:"AMap.TileLayer",c:"r",o:{map:"a",zIndex:"b",opacity:"c",zooms:"d",detectRetina:"e"}},"AMap.TileLayer.Traffic":{p:"AMap.TileLayer",c:"t",o:{map:"a",zIndex:"b",opacity:"c",zooms:"d",detectRetina:"e",autoRefresh:"f",interval:"g"}},"AMap.LayerGroup":{p:"AMap.Overlay",c:"LayerGroup",o:{}},"AMap.OverlayGroup":{p:"AMap.Overlay",c:"OverlayGroup",o:{}},"AMap.Vector":{p:"AMap.Overlay",c:"v",m:{show:"4a",hide:"4b",getVisible:"4c",getOptions:"4d",setOptions:"4e",setDraggable:"4f"}},"AMap.VectorTile":{p:"AMap.Layer",c:"vt"},"AMap.CircleMarker":{p:"AMap.Circle",c:"CircleMarker"},"AMap.Circle":{p:"AMap.Vector",c:"ci",o:{map:"a",zIndex:"b",center:"c",radius:"d",strokeColor:"e",strokeOpacity:"f",strokeWeight:"g",fillColor:"h",fillOpacity:"i",strokeStyle:"j",extData:"k",strokeDasharray:"l"},m:{setCenter:"8a",getCenter:"8b",setRadius:"8c",getRadius:"8d",contains:"8e"}},"AMap.Ellipse":{p:"AMap.Vector",c:"ei",o:{map:"a",zIndex:"b",center:"c",radius:"d",strokeColor:"e",strokeOpacity:"f",strokeWeight:"g",fillColor:"h",fillOpacity:"i",strokeStyle:"j",extData:"k",strokeDasharray:"l"},m:{setCenter:"8a",getCenter:"8b",setRadius:"8c",getRadius:"8d",contains:"8e"}},"AMap.Rectangle":{p:"AMap.Vector",c:"ra",o:{map:"a",zIndex:"b",center:"c",radius:"d",strokeColor:"e",strokeOpacity:"f",strokeWeight:"g",fillColor:"h",fillOpacity:"i",strokeStyle:"j",extData:"k",strokeDasharray:"l"},m:{setCenter:"8a",getCenter:"8b",setRadius:"8c",getRadius:"8d",contains:"8e"}},"AMap.ContextMenu":{p:"AMap.Overlay",c:"cm",o:{position:"a",content:"b",width:"c"},m:{addItem:"2a",removeItem:"2b",open:"2c",close:"2d"}},"AMap.GroundImage":{p:"AMap.ImageLayer",c:"g",o:{map:"a",clickable:"b",opacity:"c"},m:{setMap:"8a"}},"AMap.Icon":{c:"ic",o:{size:"a",imageOffset:"b",image:"c",imageSize:"c"},m:{setImageSize:"a",getImageSize:"b"}},"AMap.ImageMarker":{p:"AMap.Overlay",c:"im",m:{setPosition:"3a",getBounds:"3b",getPosition:"3c",hide:"3d",show:"3e",setCursor:"3f",setRotation:"3g",setzIndex:"3h"}},"AMap.InfoWindow":{p:"AMap.Overlay",c:"iw",o:{isCustom:"a",autoMove:"b",closeWhenClickMap:"c",content:"d",size:"e",offset:"f",position:"g",showShadow:"h"},m:{open:"1a",close:"1b",setContent:"1c",getContentU:"1d",getContent:"1e",setPosition:"1f",setOffset:"1g",getPosition:"1h",setSize:"1i",getSize:"1j",getIsOpen:"1k"}},"AMap.Marker":{p:"AMap.Overlay",c:"mk",o:{map:"a",position:"b",offset:"c",icon:"d",content:"e",topWhenClick:"f",topWhenMouseOver:"g",draggable:"h",raiseOnDrag:"j",cursor:"k",visible:"l",zIndex:"m",angle:"n",autoRotation:"o",animation:"p",shadow:"q",title:"r",clickable:"s",shape:"t",extData:"u"},m:{setRaiseOnDrag:"9a",setPosition:"9b",getPosition:"9c",setIcon:"9d",getIcon:"9e",setContent:"9f",getContent:"9g",hide:"9h",show:"9i",setCursor:"9j",setRotation:"9k",setAngle:"9l",getAngle:"9m",setOffset:"9n",getOffset:"9o",setzIndex:"9p",setOpacity:"9q",setDraggable:"9r",getDraggable:"9s",moveTo:"9t",moveAlong:"9u",stopMove:"9v",setShadow:"9w",getShadow:"9x",setClickable:"9y",getClickable:"9z",setTitle:"90",getTitle:"91",setLabel:"92",getLabel:"93",setTop:"94",getTop:"95",setShape:"96",getShape:"97",setAnimation:"98",getAnimation:"99",getMap:"9a1"}},"AMap.MarkerShape":{c:"ms",o:{coords:"a",type:"b"}},"AMap.Overlay":{c:"o",m:{show:"a",hide:"b",setMap:"c",getMap:"d",setExtData:"e",getExtData:"f"}},"AMap.Poly":{p:"AMap.Vector",c:"ly",m:{setPath:"5a",getPath:"5b"}},"AMap.Polygon":{p:"AMap.Poly",c:"gn",o:{map:"a",zIndex:"b",path:"c",strokeColor:"d",strokeOpacity:"e",strokeWeight:"f",fillColor:"g",fillOpacity:"h",extData:"i",strokeStyle:"j",strokeDasharray:"k"},m:{getArea:"6a",toString:"6b",contains:"6c"}},"AMap.Polyline":{p:"AMap.Poly",c:"le",o:{map:"a",zIndex:"b",geodesic:"c",isOutline:"d",outlineColor:"e",path:"f",strokeColor:"g",strokeOpacity:"h",strokeWeight:"i",strokeStyle:"j",strokeDasharray:"k",extData:"l"},m:{getLength:"7a"}},"AMap.Text":{p:"AMap.Overlay"},"AMap.Panorama":{c:"aa"},"AMap.PanoramaMarker":{c:"ar"},"AMap.PanoramaService":{c:"ae"},"AMap.AdvancedInfoWindow":{p:"AMap.InfoWindow",c:"pa",o:{autoMove:"a",closeWhenClickMap:"b",content:"c",offset:"d",position:"e",panel:"f",searchRadius:"g",placeSearch:"h",driving:"i",walking:"j",transit:"k",asOrigin:"l",asDestination:"m"},m:{clear:"aa",searchPoiByKeyWord:"ab"}},"AMap.AntiCrabFrame":{c:"pb",m:{setMapStyle:"a"}},"AMap.ArrivalRange":{c:"pc",m:{search:"a"}},"AMap.Autocomplete":{c:"pd",o:{type:"a",city:"b",input:"c"},m:{setType:"a",setCity:"b",search:"c"}},"AMap.AutoPanby":{c:"pe"},"AMap.CircleEditor":{c:"pf",m:{open:"a",close:"b"}},"AMap.EllipseEditor":{c:"pfa",m:{open:"a",close:"b"}},"AMap.RectangleEditor":{c:"pfb",m:{open:"a",close:"b"}},"AMap.CitySearch":{c:"pg",m:{getLocalCity:"a",getCityByIp:"b"}},"AMap.CloudDataLayer":{c:"ph",o:{map:"a",query:"b",clickable:"c"},m:{reload:"a",setMap:"b",getMap:"c",setOptions:"d",wrapUrl:"e"}},"AMap.CloudDataSearch":{c:"pi",o:{keywords:"a",filter:"b",orderBy:"c",pageSize:"d",pageIndex:"e"},m:{setOptions:"a",clear:"b",setPageIndex:"c",setPageSize:"d",searchNearBy:"e",searchById:"f",searchByDistrict:"g",searchInPolygon:"h"}},"AMap.CloudDataSearchRender":{c:"pj"},"AMap.DistrictSearch":{c:"pk",o:{level:"a",extensions:"b",subdistrict:"c"},m:{setLevel:"a",setExtensions:"b",setSubdistrict:"c",search:"d"}},"AMap.DragRoute":{c:"pl",o:{polyOptions:"a",startMarkerOptions:"b",midMarkerOptions:"c",endMarkerOptions:"d",showTraffic:"e"},m:{setAvoidPolygons:"a",clearAvoidPolygons:"b",getAvoidPolygons:"c",setAvoidRoad:"d",clearAvoidRoad:"e",getAvoidRoad:"f",search:"g",setPolicy:"h",showRoute:"i",close:"j",open:"k",getWays:"l",getRoute:"m",destroy:"n",getPolyline:"o",getStart:"p",getEnd:"q",getPoint:"r",getRoutes:"s"}},"AMap.Driving":{c:"pm",o:{policy:"a",extensions:"b",map:"c",panel:"d",hideMarkers:"e"},m:{clear:"a",search:"b",setAvoidPolygons:"c",clearAvoidPolygons:"d",getAvoidPolygons:"e",setAvoidRoad:"f",clearAvoidRoad:"g",getAvoidRoad:"h",setPolicy:"i",setLocation:"j",close:"k",open:"l"}},"AMap.DrivingRender":{c:"pp"},"AMap.Geocoder":{c:"pq",o:{city:"a",radius:"b",extensions:"c"},m:{getLocation:"a",setCity:"b",getAddress:"c"}},"AMap.Geolocation":{c:"pr",o:{enableHighAccuracy:"a",timeout:"b",maximumAge:"c",convert:"d",showButton:"e",buttonDom:"f",buttonPosition:"g",buttonOffset:"h",showMarker:"i",markerOptions:"j",showCircle:"k",circleOptions:"l",panToLocation:"m",zoomToAccuracy:"n",useNative:"o"},m:{isSupported:"a",getCurrentPosition:"b",watchPosition:"c",clearWatch:"d"}},"AMap.GetLL":{c:"ps"},"AMap.Heatmap":{c:"pt",o:{radius:"a",gradient:"b",opacity:"c",zooms:"d"},m:{setOptions:"a",getOptions:"b",setDataSet:"c",getDataSet:"d",addDataPoint:"e",setMap:"f",hide:"g",show:"h",getMap:"i",setzIndex:"j",getzIndex:"k"}},"AMap.HotSpot":{c:"pu",m:{setMap:"a"}},"AMap.LineSearch":{c:"pv",o:{pageIndex:"a",pageSize:"b",city:"c",extensions:"d"},m:{setPageIndex:"a",setPageSize:"b",setCity:"c",searchById:"d",search:"e"}},"AMap.MapType":{c:"pw",m:{hide:"a",show:"b"}},"AMap.Cluster":{c:"px"},"AMap.MarkerClusterer":{c:"py",o:{gridSize:"a",minClusterSize:"b",maxZoom:"c",averageCenter:"d",styles:"e",zoomOnClick:"f"},m:{disperse:"a",addMarker:"b",addMarkers:"c",removeMarker:"d",removeMarkers:"e",clearMarkers:"f",getClustersCount:"g",getMap:"h",setMap:"i",getMarkers:"j",setMarkers:"k",getGridSize:"l",setGridSize:"m",getMinClusterSize:"n",setMinClusterSize:"o",getMaxZoom:"p",setMaxZoom:"q",isAverageCenter:"r",setAverageCenter:"s",getStyles:"t",setStyles:"u"}},"AMap.MouseTool":{c:"pz",m:{marker:"a",polyline:"b",polygon:"c",rectangle:"d",circle:"e",rule:"f",measureArea:"g",rectZoomIn:"h",rectZoomOut:"i",close:"j"}},"AMap.WebGLTool":{c:"pz",m:{parse:"a"}},"AMap.OverView":{c:"p0",o:{tileLayer:"a",isOpen:"b",visible:"c"},m:{open:"a",close:"b",getTileLayer:"c",setTileLayer:"d",show:"e",hide:"f"}},"AMap.PlaceSearch":{c:"p1",o:{city:"a",type:"b",lang:"c",pageSize:"d",pageIndex:"e",extensions:"f",map:"g",panel:"h"},m:{clear:"a",setLang:"b",searchInBounds:"c",searchNearBy:"d",getDetails:"e",setType:"f",setPageIndex:"g",setPageSize:"h",setCity:"i",close:"j",open:"k"}},"AMap.PlaceSearchLayer":{c:"p2",o:{map:"a",keywords:"b"},m:{setMap:"a",setKeywords:"b"}},"AMap.PlaceSearchRender":{c:"p3"},"AMap.PolyEditor":{c:"p4",m:{open:"a",close:"b"}},"AMap.RangingTool":{c:"p5",o:{startMarkerOptions:"a",midMarkerOptions:"b",endMarkerOptions:"c",lineOptions:"d",tmpLineOptions:"e",startLabelText:"f",midLabelText:"g",endLabelText:"h",startLabelOffset:"i",midLabelOffset:"j",endLabelOffset:"k"},m:{turnOn:"a",turnOff:"b"}},"AMap.RoadInfoSearch":{c:"p6",o:{pageIndex:"a",pageSize:"b",city:"c"},m:{setPageIndex:"a",setPageSize:"b",setCity:"c",roadInfoSearchByRoadId:"d",roadInfoSearchByRoadName:"e",crossInfoSearchByCrossId:"f",crossInfoSearchByRoadName:"g"}},"AMap.Scale":{c:"p7",m:{show:"a",hide:"b"}},"AMap.StationSearch":{c:"p8",o:{pageIndex:"a",pageSize:"b",city:"c"},m:{setPageIndex:"a",setPageSize:"b",setCity:"c",searchById:"d",search:"e"}},"AMap.ControlBar":{},"AMap.ToolBar":{c:"p9",o:{offset:"a",ruler:"b",direction:"c",autoPosition:"d",locationMarker:"e",useNative:"f"},m:{getOffset:"a",setOffset:"b",hideRuler:"c",showRuler:"d",hideDirection:"e",showDirection:"f",hideLocation:"g",showLocation:"h",hide:"i",show:"j",doLocation:"k",getLocation:"l"}},"AMap.Transfer":{c:"1",o:{city:"a",policy:"b",nightflag:"c",cityd:"d",extensions:"e",map:"f",panel:"g",hideMarkers:"h"},m:{clear:"a",search:"b",leaveAt:"c",setPolicy:"d",setCity:"e",setCityd:"f",close:"g",open:"h"}},"AMap.TransferRender":{c:"2"},"AMap.UTFGrid":{c:"3",m:{setMap:"a"}},"AMap.Walking":{c:"4",o:{map:"a",panel:"b",hideMarkers:"c"},m:{clear:"a",search:"b",close:"c",open:"d"}},"AMap.WalkingRender":{c:"5"},"AMap.Weather":{c:"6",m:{getLive:"a",getForecast:"b"}},"AMap.IndoorMap":{p:"AMap.CustomLayer",c:"7",o:{alwaysShow:"9a"},m:{showIndoorMap:"9a",showFloor:"9b",showFloorBar:"9c",hideFloorBar:"9d",hideLabels:"9e",showLabels:"9f",getSelectedBuildingId:"9g",getSelectedBuilding:"9h",setSelectedBuildingId:"9i",getVisibleBuildingIds:"9j"}},"AMap.Riding":{c:"prd",o:{map:"a",panel:"b",policy:"c"},m:{clear:"a",search:"b",close:"c",open:"d",setPolicy:"e"}},"AMap.RidingRender":{c:"prdr"},"AMap.BezierCurve":{p:"AMap.Polyline",c:"AMap.BezierCurve",o:{tolerance:"tolerance",interpolateNumLimit:"interpolateNumLimit"}},"AMap.BezierCurveEditor":{c:"AMap.BezierCurveEditor",o:{getMarkerOptions:"getMarkerOptions",getCtrlLineOptions:"getCtrlLineOptions"}},"AMap.GeometryUtil":{c:"AMap.GeometryUtil"},"AMap.GeoJSON":{c:"AMap.GeoJSON"}},w.e.Vca=w.BuryPoint.getMethodName=function(t,e){if(!this.ug[t])return e;var i;for(i=this.ug[t].m&&this.ug[t].m[e];!i&&this.ug[t].p;){var n=this.ug[t].p;i=this.ug[n].m&&this.ug[n].m[e],t=n}return i||(i=e),i},w.e.add=w.BuryPoint.add=function(t,e,i){var n;if(n=this.ug[t]?this.ug[t].c:t){if(e){if(!(t=this.Vca(t,e)))return;n+=","+t}this.lX[n]=1,i&&(this.jL[n]=i)}},w.e.eb=w.BuryPoint.addOptions=function(t,e){var i,n,s=this.ug[t]?this.ug[t].c:t;for(n in e)if(e.hasOwnProperty(n)){var a;this.ug[t]&&this.ug[t].o&&(a=this.ug[t].o[n]),a||(a=n),i=s+","+a,this.options[i]=1}"AMap.Map"===t&&this.s1(t,e,["mapStyle","lang","renderer","zoom"])},w.e.s1=w.BuryPoint._addOptionsValue=function(t,e,i){for(var n,s,a=0;a<i.length;a++)n=i[a],e&&e[n]&&((s={})[n]=e[n],this.o$(t,s))},w.e.o$=w.BuryPoint.addOptionsValue=function(t,e){var i,n,s=this.ug[t].c;for(n in e)e.hasOwnProperty(n)&&((i=this.ug[t].o&&this.ug[t].o[n])||(i=n),i=s+","+i,this.AL[i]=e[n])},w.e.send=w.BuryPoint.send=function(){var t,e=[],i=[],n=[],s=[],a=w.e;for(t in a.lX)1!==a.eR[t]&&e.push(t);for(t in a.jL)1!==a.fR[t]&&i.push(t+"="+a.jL[t]);for(t in a.options)1!==a.gS[t]&&n.push(t);for(t in a.AL)1!==a.hS[t]&&s.push(t+"="+a.AL[t]);(0<e.length||0<i.length||0<n.length||0<s.length)&&(t=["type=f","k="+w.A.key,"u="+w.A.Sm,"m="+(w.l.Y?1:0),"pf="+w.l.Pr,"methods="+e.join("@"),"methodsParams="+i.join("@"),"options="+n.join("@"),"optionsValue="+s.join("@")],new w.Sa.fb(w.A.Rb+"://webapi.amap.com/count?"+t.join("&")),a.clear(e,i,n,s)),window.setTimeout(a.send,1e4)},w.e.clear=w.BuryPoint.clear=function(t,e,i,n){for(var s=0;s<t.length;s++)this.eR[t[s]]=1;for(s=0;s<e.length;s++)this.fR[e[s].split("=")[0]]=1;for(s=0;s<i.length;s++)this.gS[i[s]]=1;for(s=0;s<n.length;s++)this.hS[n[s].split("=")[0]]=1},window.setTimeout(w.e.send,1e4),w.aa=function(){},w.aa.extend=w.aa.extend=function(t){function e(){}function i(){var t=this.initialize||this.B;if(t&&(t.apply(this,arguments),this.CLASS_NAME&&w.e.add(this.CLASS_NAME)),!a&&this.jh){(t=document.createElement("style")).setAttribute("type","text/css"),this.CLASS_NAME&&t.setAttribute("class",this.CLASS_NAME),this.jh=this.jh.replace(/url\((['"]?)(?:\.\.\/)*/g,"url($1"+w.A.ub+"/"),t.styleSheet?t.styleSheet.cssText=this.jh:t.innerHTML=this.jh;for(var e=document.head||document.getElementsByTagName("head")[0],i=null,n=0,s=e.childNodes.length;n<s;n++)if(1===e.childNodes[n].nodeType){i=e.childNodes[n];break}i?e.insertBefore(t,i):e.appendChild(t)}a=!0}var a=!1;e.prototype=this.prototype;var n=new e;for(var s in((n.constructor=i).prototype=n).kl=i.prototype.super=function(t){t.callee.oa.apply(this,t)},this)this.hasOwnProperty(s)&&"prototype"!==s&&(i[s]=this[s]);t.vZ&&(w.extend(i,t.vZ),t.vZ=null),t.ga&&(w.extend.apply(null,[n].concat(t.ga)),t.ga=null),t.F&&n.F&&(t.F=w.extend({},n.F,t.F));var o=n.constructor.Kda,r={};if(void 0!==o)for(s in o)o.hasOwnProperty(s)&&(r[o[s]]=s);for(s in t)if(Object.prototype.hasOwnProperty.call(t,s)){var h=s,l=s;o&&r[s]&&(l=r[s]),"function"==typeof t[h]&&"function"==typeof n[l]&&(t[h].oa=n[l])}return w.extend(n,t),t.toString&&(n.toString=t.toString),i.rc=this.prototype,i},w.aa.ob=w.aa.include=function(t){w.extend(this.prototype,t)},w.extend=function(t){var e,i,n,s,a=Array.prototype.slice.call(arguments,1);for(i=0,n=a.length;i<n;i+=1)if(s=a[i]||{},Object.assign)Object.assign(t,s);else for(e in s)Object.prototype.hasOwnProperty.call(s,e)&&(t[e]=s[e]);return t},w.aa.Sj=function(t){for(var e in t)if(t.hasOwnProperty(e)){var i=t[e];if("string"==typeof i)this.prototype[e]&&(this.prototype[i]=this.prototype[e]);else for(var n=0,s=i.length;n<s;n++)this.prototype[e]&&(this.prototype[i[n]]=this.prototype[e])}},w.ka={h:function(t,e,i,n,s){if(this.Nd(t,e,i||this))return this;var a=this.ve=this.ve||{};return a[t]=a[t]||[],s?a[t].unshift({jb:e,ke:i||this,dk:n}):a[t].push({jb:e,ke:i||this,dk:n}),"complete"===t&&this.ta&&this.r(t),this},Nd:function(t,e,i){var n=this.ve;if(e&&i){if(n&&t in n&&n[t])for(var s=0;s<n[t].length;s+=1)if(n[t][s].jb===e&&n[t][s].ke===i)return!0;return!1}return n&&t in n&&n[t]&&0<n[t].length},I:function(t,e,i){if(!this.Nd(t))return this;var n=this.ve;if(n&&n[t])for(var s=0;s<n[t].length;s+=1)if(!(n[t][s].jb!==e&&"mv"!==e||i&&n[t][s].ke!==i)){n[t].splice(s,1),n[t].length||(n[t]=null);break}return this},JD:function(t,e){if(!this.Nd(t))return this;var i=this.ve;if(i&&i[t])for(var n=0;n<i[t].length;n+=1)if(!e||i[t][n].ke===e){i[t].splice(n,1),i[t].length||(i[t]=null);break}return this},r:function(t,e){if(!this.Nd(t))return this;var i={type:t};e||"string"!=typeof e&&"number"!=typeof e&&"boolean"!=typeof e?w.a.tD(e)?i.value=e:i=w.extend(i,e):i.value=e;for(var n=[].concat(this.ve[t]),s=0;s<n.length;s+=1)n[s].jb&&(n[s].jb.call(n[s].ke||this,i),n[s]&&n[s].dk&&this.ve[t]&&this.ve[t].splice(s,1));return this},bi:function(t){return t?this.ve&&this.ve[t]&&(this.ve[t]=null):this.ve=null,this}},w.ka.on||(w.ka.on=w.ka.h),w.ka.off||(w.ka.off=w.ka.I),w.ka.emit||(w.ka.emit=w.ka.r),w.te={set:function(t,e,i){if((n=this.sj)&&n[t]){var n=n[t],s="set"+this.SV(t);n[s]?(n[s](e,i),i||this.aE(t,e)):n.set(t,e,i)}else(this.Mg=this.Mg||{})[t]=e,i||this.aE(t,e)},SV:function(t){return t.charAt(0).toUpperCase()+t.substr(1)},get:function(t,e,i){var n,s=this.sj;return n="get"+this.SV(t),s&&s[t]?(i=s[t])[n]?i[n](e):i.get(t,e):this[n]&&!i?this[n](e):this.Mg&&this.Mg.hasOwnProperty(t)?this.Mg[t]:void 0},X:function(e,t,i){this.sj||(this.sj={}),this.sj[e]!==t&&(t.h(e,function(t){this.aE(e,t)},this),this.sj[e]=t,i||this.aE(e))},he:function(t,e,i){for(var n=0;n<t.length;n+=1)this.X(t[n],e,!i)},mj:function(t){this.sj&&this.sj[t]&&(this.sj[t].I(t,"mv",this),this.sj[t]=void 0)},Qn:function(){if(this.sj)for(var t in this.sj)this.sj.hasOwnProperty(t)&&this.mj(t)},aE:function(t,e){this[t+"Changed"]?this[t+"Changed"](e):this.fU&&this.fU(),this.r(t,e)},Tma:function(i,t,n){var s=new(w.aa.extend({ga:[w.ka,w.te]}));s.fU=function(){for(var t=!0,e=0;e<i.length;e+=1)s.get(i[e])||(t=!1);t&&(s.Qn(),n())};for(var e=0;e<i.length;e+=1)s.X(i[e],t)},Qf:function(t,e){var i,n;for(i in t)t.hasOwnProperty(i)&&(n=t[i],this.set(i,n,e))}},w.A={localStorage:!0,dC:500,td:!0,vd:{dark:"#202020",blue_night:"#090d20",test:"#033447",mapv:"#000001",techblue:"#000b11",insight:"#19212a",default:"#fcf9f2"},pna:"dark light blue darkblue fresh grey midblue".split(" "),key:"4b81460e1147a5cd8073b712cc6e7887",Rb:"http",md:[115.423412,39.442759,117.514625,41.060816,116.405285,39.904989],sd:"http://restapi.amap.com",ub:"http://webapi.amap.com",UD:"http://gaode.com",Gr:"http://m.amap.com",Jy:"http://webrd0{1,2,3,4}.is.autonavi.com/appmaptile?lang=[lang]&size=1&scale=1&style=8&x=[x]&y=[y]&z=[z]",CD:"http://wprd0{1,2,3,4}.is.autonavi.com/appmaptile?lang=zh_cn&size=1&style=7&x=[x]&y=[y]&z=[z]&scl=1&ltype=3",rM:"http://webst0{1,2,3,4}.is.autonavi.com/appmaptile?style=6&x=[x]&y=[y]&z=[z]",lE:"http://webst0{1,2,3,4}.is.autonavi.com/appmaptile?x=[x]&y=[y]&z=[z]&lang=zh_cn&size=1&scale=1&style=8",mE:"http://wprd0{1,2,3,4}.is.autonavi.com/appmaptile?x=[x]&y=[y]&z=[z]&lang=zh_cn&size=1&scl=1&style=8&ltype=11",wz:"http://wprd0{1,2,3,4}.is.autonavi.com/appmaptile?lang=[lang]&size=1&style=7&x=[x]&y=[y]&z=[z]",QE:"http://vector.amap.com",vv:"vdata.amap.com",yN:"ws"},window.AMap&&window.AMap.OE&&window.AMap.OE.BF&&window.AMap.OE.BF(fc),w.tk={Uq:Math.PI/180,Aga:180/Math.PI,zJ:6378137},function(){function s(t){return void 0===t?"":t}w.Gg={Zca:function(t){t.name=s(t.name);var e=[t.y,t.x,t.name];if(w.l.Y){var i=[w.A.Gr+"/callAPP?","src=jsapi_q"];return i.push("&ios="+encodeURIComponent("viewMap?sourceApplication=jsapi_q&dev=0&poiname="+t.name+"&lat="+t.y+"&lon="+t.x)),i.push("&android="+encodeURIComponent("androidamap?action=shorturl&q="+e.join(",")+"&sourceApplication=jsapi_q")),i.push("&wp="+encodeURIComponent("viewMap?sourceApplication=jsapi_q&dev=0&poiname="+t.name+"&lat="+t.y+"&lon="+t.x)),i.push("&mo="+encodeURIComponent(w.A.Gr+"?q="+e.join(",")+"&callapp=0&sourceApplication=jsapi_q")),i.join("")}return w.A.UD+"?q="+e.join(",")+"&src=jsapi_q"},IV:function(t){t.name=s(t.name),t.address=s(t.address),t.x=s(t.x),t.y=s(t.y);var e=[t.id,t.y,t.x,t.name,t.address];if(w.l.Y){var i=[w.A.Gr+"/callAPP?","src=jsapi_p"];return i.push("&ios="+encodeURIComponent("multiPointShow?sourceApplication=jsapi_p&dev=0&q="+[t.y,t.x,t.name,t.address,t.id].join()+"&title="+t.name)),i.push("&android="+encodeURIComponent("androidamap?action=shorturl&p="+e.join(",")+"&sourceApplication=jsapi_p")),i.push("&wp="+encodeURIComponent("multiPointShow?sourceApplication=jsapi_p&dev=0&q="+[t.y,t.x,t.name,t.address,t.id].join()+"&title="+t.name)),i.join("")}return w.A.UD+"?p="+e.join(",")+"&src=jsapi_p"},GV:function(t){if(w.l.Y){var e=[w.A.Gr+"/callAPP?","src=jsapi_detail"];return e.push("&ios="+encodeURIComponent("viewPOIDetail?sourceApplication=jsapi_detail&poiid="+t.id)),t.name=s(t.name),t.x=s(t.x),t.y=s(t.y),e.push("&android="+encodeURIComponent("androidamap?action=openFeature&featureName=PoiDetail&poiid="+t.id+"&poiname="+t.name+"&x="+t.x+"&y="+t.y+"&sourceApplication=jsapi_detail")),e.push("&wp="+encodeURIComponent("viewPOIDetail?sourceApplication=jsapi_detail&poiid="+t.id)),e.push("&mo="+encodeURIComponent(w.A.Gr+"/detail/index/poiid="+t.id+"&sourceApplication=jsapi_detail")),e.join("")}return w.A.UD+"/detail/"+t.id+"?src=jsapi_detail"},mK:function(t){t.sname=s(t.sname),""===t.sname&&(t.sname="起点"),t.dname=s(t.dname),""===t.dname&&(t.dname="终点"),t.mcount=s(t.mcount),t.my=s(t.my),t.mx=s(t.mx),t.mname=s(t.mname);var e=[t.sy,t.sx,t.sname,t.dy,t.dx,t.dname,t.m,t.t,t.mcount,t.my,t.mx,t.mname];if(w.l.Y){var i=[w.A.Gr+"/callAPP?","src=jsapi_r_"+t.t];i.push("&ios="+encodeURIComponent("path?sourceApplication=jsapi_r_"+t.t+"&dev=0&slat="+t.sy+"&slon="+t.sx+"&sname="+t.sname+"&dlat="+t.dy+"&dlon="+t.dx+"&dname="+t.dname+"&m="+t.m+"&t="+t.t+"&vian=0&vialons=&vialats=&vianames="));var n=t.t;return 0===t.t?n=2:2===t.t&&(n=4),i.push("&android="+encodeURIComponent("androidamap://route?sourceApplication=jsapi_r_"+t.t+"&slat="+t.sy+"&slon="+t.sx+"&sname="+t.sname+"&dlat="+t.dy+"&dlon="+t.dx+"&dname="+t.dname+"&dev=0&"+t.m+"&t="+n)),i.push("&wp="+encodeURIComponent("path?sourceApplication=jsapi_r_"+t.t+"&dev=0&slat="+t.sy+"&slon="+t.sx+"&sname="+t.sname+"&dlat="+t.dy+"&dlon="+t.dx+"&dname="+t.dname+"&m="+t.m+"&t="+t.t+"&vian=0&vialons=&vialats=&vianames=")),i.push("&mo="+encodeURIComponent(w.A.Gr+"/?r="+e.join(",")+"&callapp=0&sourceApplication=jsapi_r_"+t.t)),i.join("")}return w.A.UD+"?r="+e.join(",")+"src=jsapi_r_"+t.t},Dp:function(t){w.l.Y?window.location.href=t:window.open(t)}}}(),"function"!=typeof Object.keys&&(Object.keys=function(t){var e,i=[];for(e in t)t.hasOwnProperty(e)&&i.push(e);return i}),w.a={zE:[],Za:268435456,el:[215440491,106744817],n_:(Ie="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz".split(""),function(t,e){var i,n,s=[];if(e=e||Ie.length,t)for(i=0;i<t;i++)s[i]=Ie[0|Math.random()*e];else for(s[8]=s[13]=s[18]=s[23]="-",s[14]="4",i=0;i<36;i++)s[i]||(n=0|16*Math.random(),s[i]=Ie[19===i?3&n|8:n]);return s.join("")}),by:{start:function(i){i.startTime=new Date,i.RZ=[];var n=(new Date).getTime();i.id=requestAnimationFrame(function t(){var e=(new Date).getTime();i.RZ.push(e-n),n=e,i.id=requestAnimationFrame(t)})},cancel:function(t){t.id&&cancelAnimationFrame(t.id)},stop:function(t){t.Vaa=new Date-t.startTime,this.cancel(t),t.by=Math.round(1e3/(t.Vaa/(t.RZ.length+1)))}},dK:function(t){var e={};if(w.a.$j(t,"object"))for(var i in t)t.hasOwnProperty(i)&&(e[t[i]]=i);return e},create:"function"==typeof Object.create?Object.create:function(t,e){function i(){}i.prototype=t;var n,s=new i;for(n in e)e.hasOwnProperty(n)&&(s[n]=e[n]);return s},vb:function(t){if("object"!=typeof t||null===t)return t;if(t.xX||this.$j(t,"Float32Array")||this.$j(t,"Uint16Array"))return t;var e,i=this.isArray(t)?[]:{};for(e in t)t.hasOwnProperty(e)&&(i[e]=w.a.vb(t[e]));return i},zW:function(t){return(0|t)===t},Uha:"function"==typeof Object.setPrototypeOf?Object.setPrototypeOf:function(t,e){for(var i in e)t[i]=e[i]},bm:function(t){return"function"==typeof t},pp:function(){},keys:function(t){if("function"==typeof Object.keys)return Object.keys(t);var e,i=[];for(e in t)t.hasOwnProperty(e)&&i.push(e);return i},map:function(n,s){var a=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null,o=[];return n&&n.length?(w.a.Pb(n,function(){for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];o[e[1]]=s.apply(a||n,e)}),o):n},Pb:function(t,e){var i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(t&&t.length)for(var n=0,s=t.length;n<s&&!1!==e.call(i,t[n],n,t);n++);},find:function(t,e){for(var i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null,n=0,s=t.length;n<s;n++)if("function"==typeof e){if(e.call(i,t[n],n,t))return t[n]}else if(t[n]===e)return t[n];return null},tD:function(t){return"object"==typeof HTMLElement?t instanceof HTMLElement:t&&"object"==typeof t&&1===t.nodeType&&"string"==typeof t.nodeName},qs:function(t,e){var i,n,s,a,o,r,h,l="ASDFGHJKLQWERTYUIO!sdfghjkleiu3~yr5-P&mq9`%zCN*b=8@^xpVM";for(n="v5"<(e||"v5")?(i=l.length,512):(i=27,l=l.substr(0,27),333),a=[],o=NaN,r=0,h=t.length;r<h;r++)s=t[r],s=l.indexOf(s),o=isNaN(o)?s*i:(a.push(o+s-n),NaN);return a},Dha:function(t,e){for(var i=512<e.length?Math.round(Math.pow(e.length,.5)):e.length,n=Math.ceil(e.length/i),s=0;s<n;s+=1){var a=i*s,o=a+i;for(o>e.length&&(o=e.length);a<o;a+=1)t(e[a])}},Jaa:function(t){if(/^rgba\(/.test(t))return this.Wr(t);var e=t=this.uC(t);return"#"===t[0]&&(3===(t=t.substring(1)).length&&(t=t.replace(/./g,function(t){return t+t})),e=this.Zf(8===t.length?t:"ff"+t)),this.Wr(e)},uC:function(t){var e={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgrey:"#d3d3d3",lightgreen:"#90ee90",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370d8",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#d87093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};return"string"==typeof t&&e[t.toLowerCase()]?e[t.toLowerCase()]:t},LC:function(t,e,i){var n,s;return[i,t&(n=(1<<(n=Math.floor(i/2)))-1<<(s=i-n))|e&(s=(1<<s)-1),e&n|t&s]},MC:function(t){return t?encodeURIComponent(t):""},ne:function(t,e,i,n){if(void 0===(i=t[e].i[i]))return null;if(t=t[e].s,"number"==typeof i)return t[i];for(;void 0===i[n.toString()]&&!((n-=1)<3););return"number"==typeof(n=i[n.toString()])?t[n]:null},Wr:function(t){return(t=t.split(","))[0]=parseFloat(t[0].split("rgba(")[1])/255,t[1]=parseFloat(t[1])/255,t[2]=parseFloat(t[2])/255,t[3]=parseFloat(t[3]),t},rha:function(t){return(t=t.split(","))[0]=parseFloat(t[0].split("rgb(")[1])/255,t[1]=parseFloat(t[1])/255,t[2]=parseFloat(t[2])/255,t},bJ:function(t){if(t instanceof Array)return 3==t.length&&t.push(1),t;if(0==(t=this.uC(t)).indexOf("#")){if(7==t.length)return this.Vr(t.substr(1));if(9==t.length)return t=t.substr(1),this.Li(t.substr(6)+t.substr(0,6))}else{if(0==t.indexOf("rgb("))return this.rha(t);if(0==t.indexOf("rgba("))return this.Wr(t)}},LY:function(t){return w.a.Zf("ff"+t)},Zf:function(t){for(var e=[],i=0,n=t.length;i<n;i+=2)e.push(parseInt(t.substr(i,2),16));return e.push((e.shift()/255).toFixed(2)),"rgba("+e.join(",")+")"},Vr:function(t){return w.a.Li("ff"+t)},Li:function(t){for(var e=[],i=0,n=t.length;i<n;i+=2)e.push(parseInt(t.substr(i,2),16)/255);return e.push(e.shift()),e},ap:function(t){for(var e in t)if(t.hasOwnProperty(e))return!1;return!0},Nl:function(t,e){return 0<=e&&t.splice(e,1),t},Ut:function(t,e){var i=w.a.indexOf(t,e);return w.a.Nl(t,i)},filter:function(t,i){var n=[];return w.a.Pb(t,function(t,e){i(t,e)&&n.push(t)}),n},indexOf:function(t,e){if(!t||!t.length)return-1;if(t.indexOf)return t.indexOf(e);for(var i=0;i<t.length;i+=1)if(t[i]===e)return i;return-1},bind:(Kg=!1,Function.prototype.bind&&(Kg=!0),function(t,e){var i=2<arguments.length?Array.prototype.slice.call(arguments,2):null;return Kg?i?(i.unshift(e),t.bind.apply(t,i)):t.bind(e):function(){return t.apply(e,i||arguments)}}),Bb:function(t,e){return e=e||{},t.F=w.extend({},t.F,e),t.F},YU:function(){return!1},join:function(t,e){if(t.join)return t.join(e);var i,n=[];for(i in t)t.hasOwnProperty(i)&&n.push(i+"="+(t[i]||""));return n.join(e)},wV:function(t,e){return(t||"")+Math.round(Math.random()*Math.pow(10,e||6))},Jb:(Wg=0,function(t){return t._amap_id||(Wg+=1,t._amap_id=Wg),t._amap_id}),Rba:"data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=",$g:Date.now?function(){return Date.now()}:function(){return(new Date).getTime()},ZW:function(t,e,i,n){var s;if(n){var a,o=0,r=this.$g;s=function(){if((a=r())-o<e)return!1;o=a,t.apply(i,arguments)}}else{var h,l,c;c=function(){h=!1,l&&(s.apply(i,l),l=!1)},s=function(){h?l=arguments:(h=!0,t.apply(i,arguments),setTimeout(c,e))}}return s},Sc:function(t,e){return+parseFloat(t).toFixed(e||0)},isArray:Array.isArray?Array.isArray:function(t){return this.$j(t,"array")},$j:function(t,e){return Object.prototype.toString.call(t).split(" ")[1].slice(0,-1).toLowerCase()===e.toLowerCase()},ga:"function"==typeof Array.prototype.ga?function(t,e){return t.ga(e)}:function(t,e){return-1!==this.indexOf(t,e)},zZ:function(t){var e=0;if(0===t.length)return e;for(var i=0,n=t.length;i<n;i+=1)e=(e<<5)-e+t.charCodeAt(i),e&=e;return e},Ola:function(t,e){e=e?Math.ceil(parseInt(e.substr(6))/24):1;for(var i="",n=0,s=t.length;n<s;n++)i+=String.fromCharCode((t.charCodeAt(n)-256-e+65535)%65535);return i},jba:function(t,e){var i=(t+"").slice(-2),n=(e+"").slice(-2);t=t.slice(0,-2),e=e.slice(0,-2);var s=parseInt((n+i).slice(1));return n=parseInt("1"+n)/3e3,t-=parseInt("1"+i)/3e3*(Math.ceil(s/250)%2?1:-1),e-=n*(1<s/500?1:-1),new w.U(parseFloat(t).toFixed(5),parseFloat(e).toFixed(5))},yX:function(t){return"undefined"!=typeof JSON&&JSON.stringify?w.a.zZ(JSON.stringify(t)):null},xoa:function(t,e){if(e||!t.hasOwnProperty("_amap_hash")){var i=w.a.yX(t);i&&(t._amap_hash=i)}return t._amap_hash},iepngFix:function(t){function e(){for(var t;i.length;)t=i.shift(),window.DD_belatedPNG.fixPng(t);n.QK=!0}this.bY||(this.bY=[],this.QK=!1);var i=this.bY,n=this;if("img"===t.tagName.toLowerCase())i.push(t);else{t=t.getElementsByTagName("*");for(var s=0;s<t.length;s+=1)i.push(t[s])}window.DD_belatedPNG&&this.QK?setTimeout(function(){e()},100):this.QK||w.hb.load("AMap.FixPng",e)},ya:function(t){if(w.a.isArray(t))if(w.a.isArray(t[0]))for(var e=0;e<t.length;e+=1)t[e]=w.a.ya(t[e]);else if("string"==(e=typeof t[0])||"number"===e)return new w.U(t[0],t[1]);return t},Cn:function(t){return w.a.isArray(t)?new w.Rc(t[0],t[1]):t}},function(){function t(t){var e,i,n=["webkit","moz","o","ms"];for(e=0;e<n.length&&!i;e+=1)i=window[n[e]+t];return i}var n=0,s=window.requestAnimationFrame||t("RequestAnimationFrame")||function(t){var e=+new Date,i=Math.max(0,(w.l.Mj?50:20)-(e-n));return n=e+i,window.setTimeout(t,i)},e=window.cancelAnimationFrame||t("CancelAnimationFrame")||t("CancelRequestAnimationFrame")||function(t){window.clearTimeout(t)};w.a.pc=function(t,e,i,n){if(t=w.a.bind(t,e),!i)return s.call(window,t,n);t()},w.a.Wg=function(t){t&&e.call(window,t)}}(),w.a.gz=window.requestIdleCallback?window.requestIdleCallback.bind(window):function(t){var e=Date.now();return setTimeout(function(){t({didTimeout:!1,timeRemaining:function(){return Math.max(0,70-(Date.now()-e))}})},(1<arguments.length&&void 0!==arguments[1]?arguments[1]:{}).timeout||0)},w.a.RI=window.cancelIdleCallback?window.cancelIdleCallback.bind(window):function(t){clearTimeout(t)},mi=w,ni=1,oi={},mi.a.Rha=function(t,e){if(oi[t]){var i=oi[t];if(i.nz=1,i.result=e,i.Pk){for(var n=i.Pk,s=0,a=n.length;s<a;s++)n[s].call(null,e);i.Pk=null}}},mi.a.vaa=function(t){oi[t]=null},mi.a.Fja=function(t,e){if(oi[t]){var i=oi[t];0<i.nz?e(null,i.result):(i.Pk||(i.Pk=[]),i.Pk.push(e))}else e(null,t)},mi.a.fK=function(e,t){var i,n=navigator.geolocation;if(!mi.l.qD||"https:"===document.location.protocol)return e(null,n);t&&t.Gja&&(i="f"+ni++,oi[i]={nz:0});var s=null,a=!1;return t&&t.timeout&&(s=setTimeout(function(){s=void 0,e({code:3,info:"TIME_OUT",message:"Get geolocation time out."}),a=!0},t.timeout)),n.getCurrentPosition(function(){a||(clearTimeout(s),s=void 0,e(null,n))},function(t){a||(clearTimeout(s),s=void 0,2===t.code&&0<t.message.indexOf("permission")?mi.hb.load("AMap.GeoRemoteLoc",function(){e(null,mi.V_,i)}):e(null,n))},{timeout:1e3}),i},Gi=w,Hi=Gi.aa.extend({ga:[Gi.ka],B:function(){}}),Gi.pj=new Hi,Ii=w,Ji=Ii.aa.extend({ga:[Ii.ka],B:function(){this.S4()},S4:function(){Ii.pj&&Ii.pj.h("vecTileParsed.buildings",this.x4,this)},yW:function(t){return t.map.JQ},yV:function(t){return this.yW(t)?t.map.LG:null},Oha:function(t,e){if(e){var i=e.map;i&&(i.LG?i.LG.toString():"")!==(t?t.toString():"")&&(i.LG=t||[],i.set("display",0))}},bZ:function(t,e){if(e){var i=e.map;i&&i.JQ!==t&&(i.JQ=t,i.set("display",0))}},Fka:function(){},EQ:function(t,e){if(t)for(var i=0,n=t.length;i<n;i++)t[i]&&e.indexOf(t[i])<0&&e.push(t[i])},aV:function(t){if(!t)return null;for(var e=0,i=(t=t.map.$a).length;e<i;e++)if(Ii.w.vk&&t[e]instanceof Ii.w.vk&&t[e].xa&&t[e].xa.length&&(-1!==t[e].xa.indexOf("building")||-1!==t[e].xa.indexOf("poilabel")))return t[e];return null},pca:function(t){if(t=this.aV(t)){if(!(t=t.fa.get("tiles",null,!0)))return null;if(!(t=t[0])||!t.length)return null;for(var e=[],i=0,n=t.length;i<n;i++){var s=t[i];s.Te&&s.Te.je&&this.EQ(s.Te.je,e)}return e}},x4:function(t){if(t.Ln&&t.Ln.Te){var e=t.Ln.Te.je;if(e){var i=[];this.EQ(e,i),this.r("vecTileParsed.builds.found",{aU:i,Ln:t.Ln})}}}}),Ii.oh=new Ji,function(u){function n(){return{checkup:function(){var t=Array.prototype.slice.call(arguments,0);t.pop()(null,t)}}}function s(s){return{injectCode:function(t,e){var i=null,n=null;try{i=new Function("self",t)(s)}catch(t){console.error("error",n),n=t.toString()}e(n,i)}}}function l(t,e){if(this.F=u.extend({batchSend:!0,lazy:!1,libPolyfills:null},e),this.Bt=[],this.bw=this.F.clientId||"w"+a++,this.F.onReady&&this.vL(this.F.onReady),this.BA=this.K3(),"function"==typeof t){var i={};i[this.BA]=t,t=i}t[l.pK]=s,t[this.TP()]=n,this.PA=t,this.Tw(null),this.F.lazy||this.Ex(),u.fD||!1===this.F.hostWorker||(u.fD=this)}var a=1,o=1;u.extend(l,{pK:"_g_",bia:function(t){if(!t.m1){var l=[];t.addEventListener("message",function(t){for(var e=0,i=(t=(t=t.data).nha||[t]).length;e<i;e++){var n,s=t[e];t:{n=s.Yu;for(var a=!s.jn,o=0,r=l.length;o<r;o++){var h=l[o];if(n===h.Yu){a||l.splice(o,1),n=h;break t}}n=void 0}n?n.Gx.call(null,s.error,s.result,!0):console.warn("Receive worker msg: ",s)}},!1),t.a1=l,t.m1=!0}}}),u.extend(l.prototype,{K3:function(){return"_def_"+this.bw},TP:function(){return"_cln_"+this.bw},H8:function(){var t=Array.prototype.slice.call(arguments,0);if(this.xS=t,this.wt){for(var e=0,i=this.wt.length;e<i;e++)this.wt[e].apply(null,t);this.wt.length=0}},vx:function(t){this.z8&&this.Bt.push.apply(this.Bt,t)},vL:function(t){this.xS?t.apply(null,this.xS):(this.wt||(this.wt=[]),this.wt.push(t))},Ex:function(i){var n=this;if(!n.YO){n.YO=!0;var s=function(t,e){t&&u.l.Br&&console.warn(t),n.H8.call(n,t,e),i&&i(t,e)};u.l.Br?this.x8(function(t,i){i?this.Y4(i,function(t,e){t?s(t):(this.Tw(e),this.rI=e,this.Bt.length=0,this.dB=null,s(null,{K$:i,Oja:e}))}):s("Worker start failed!")}):s("Worker not supported!")}},Zj:function(e,i){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:u.a.pp,s=this;e=e||s.BA;var a={};s.FO(e,i,a),s.Tw(null,a),s.vL(function(t){t?n(t):s.rI?(t=s.ZP(i,s.zG(s.bw,e),!0),s.rI.sendMessage(l.pK+":injectCode",t,function(t,e){t||s.Tw(s.rI,a),n(t,e)})):n("Worker msger missing!!")})},zG:function(t,e){if(!t||!e)throw Error("clientId or ns missing!!");return t+"_"+e},c4:function(e,t,i){function n(){var t=Array.prototype.slice.call(arguments,0);i.sendMessage.apply(i,[e].concat(t))}var s=this;return i?(n._proxy2Worker=!0,n):function(){s.YO||"untilCall"===s.F.lazy&&s.Ex(),t.apply(this.dB,arguments)}},c2:function(t){var e,i={};for(e in t)t.hasOwnProperty(e)&&this.FO(e,t[e],i);return i},FO:function(t,e,i){for(var n in e=e.call(null,!1))e.hasOwnProperty(n)&&(i[t+":"+n]=e[n],t===this.BA&&(i[n]=e[n]))},Tw:function(t,e){for(var i in e||(this.dB||(this.dB=this.c2(this.PA)),e=this.dB),e)if(e.hasOwnProperty(i)){var n=e[i];"function"==typeof n&&(this[i]=this.c4(i,n,t))}this.z8=!!t},ZP:function(t,e){var i,n=2<arguments.length&&void 0!==arguments[2]&&arguments[2],s=(s=t.toString()).replace(/^function([^\(]*)\(/,function(){return"function "+(i="_prep_h"+o++)+"("});return i?"\n\t\t\t\t"+s+"\n\t\t\t\tif (self._wkHandlers['"+e+"'] && "+!n+") {\n\t\t\t\t\tthrow new Error('"+e+" already exists!')\n\t\t\t\t} else {\n\t\t\t\t\tif ("+n+" && self._wkHandlers['"+e+"']) {\n\t\t\t\t\t\tvar handlerFunObj = "+i+".call(null, self) || {}\n\n\t\t\t\t\t\tif (typeof Object.assign === 'function') {\n\t\t\t\t\t\t\tObject.assign(self._wkHandlers['"+e+"'], handlerFunObj)\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tfor (var key in handlerFunObj) {\n\t\t\t\t\t\t\t\tif (handlerFunObj.hasOwnProperty(key)) {\n\t\t\t\t\t\t\t\t\tself._wkHandlers['"+e+"'][key] = handlerFunObj[key]\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t} else {\n\t\t\t\t\t\tself._wkHandlers['"+e+"'] = "+i+".call(null, self) || {}\t\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t"+i+" = null;\n\t\t\t":(console.error("No function match!!"),!1)},x8:function(i){var t,e=this.bw,n=[];for(t in this.PA)if(this.PA.hasOwnProperty(t)){var s=this.ZP(this.PA[t],this.zG(e,t));s&&n.push(s)}for(t=0,s=(e=this.F.libPolyfills||[]).length;t<s;t++)e[t]="("+e[t].toString()+")(self);";var a=e.join(";\n")+";\n"+n.join(";\n"),o=(n=this.F.hostWorker,this);n&&n!==o?n.vL(function(t,e){t?i.call(o,t):e.Oja.sendMessage(l.pK+":injectCode",a,function(t){t?i.call(o,t):i.call(o,null,e.K$)})}):i.call(o,null,o.H9(a))},H9:function(t){var e;t=["self._wkHandlers={};",t,"("+function(l){function r(t,s){function e(t,e,i){if(t={jv:Date.now(),Yu:a,error:t,result:e,Jr:!1,jn:!1},i)for(var n in i)i.hasOwnProperty(n)&&(t[n]=i[n]);s(t)}var i=t.AK,a=t.Yu,n=t.aJ,o=t.Gx,r=t.A$||[],h=l._wkHandlers[i];h?h[n]?o?h[n].apply(h,r.concat(e)):e(null,h[n].apply(h,r)):e("Unknown cmd: "+n):e("Can not find handler for: "+i)}var h=[],t=null,e=null;for(t in this._wkHandlers)-1!==t.indexOf("_def_")&&(e=this._wkHandlers.lna=t);"function"==typeof this._wkHandlers[e].B&&this._wkHandlers[e].B.call(this._wkHandlers[e]),l.vx=function(t){h.push.apply(h,t)},l.addEventListener("message",function(t){function i(t){if(o){o.push(t);var e=!!t.Jr;if(e||s++,t=n<=s||t.jn,e||t){if((e=1<o.length?{nha:o}:o[0]).jv=Date.now(),e.moa=a,h.length){try{l.postMessage(e,h)}catch(t){l.postMessage(e),console.error(t)}h.length=0}else l.postMessage(e);o.length=0,t&&(i=o=null)}}else console.error("Seemed callback already sent!!",t,t.result.Ac)}for(var n=(t=(e=t.data).kha||[e]).length,s=0,a=Date.now()-e.jv,o=[],e=0;e<n;e++)r(t[e],i)},!1)}.toString()+")(self)"].join("");try{var i=window.URL||window.webkitURL,n=i.createObjectURL(new Blob([t],{type:"text/javascript; charset=utf-8"}));e=new Worker(n),setTimeout(function(){i.revokeObjectURL(n),n=null},3e3)}catch(t){return}return e},Q2:function(o){var r=1,h=o.a1,l=this,c=!!l.F.batchSend;return function(t){var e=Array.prototype.slice.call(arguments,1),i="function"==typeof e[e.length-1]?e.pop():null,n=l.bw,s=t.split(":"),a=l.BA;1<s.length&&(t=s[1],a=s[0]),e={jv:u.a.$g(),AK:l.zG(n,a),Gx:!!i,Yu:n+"_"+r++,aJ:t,A$:e},i&&h.push({aJ:e.aJ,AK:e.AK,jv:e.jv,Yu:e.Yu,Gx:i}),c?l.E1(o,e):l.ut(o,e)}},ut:function(e,i){if(this.Bt.length){try{e.postMessage(i,this.Bt)}catch(t){e.postMessage(i),console.error(t)}this.Bt.length=0}else e.postMessage(i)},E1:function(e,t){if(e.pH||(e.pH=[]),e.pH.push(t),!e.sS){var i=this;e.sS=setTimeout(function(){e.sS=null;var t=e.pH;t.length&&(i.ut(e,1===t.length?t[0]:{jv:u.a.$g(),kha:t}),t.length=0)},0)}},A9:function(t){var e=this;t.addEventListener("error",function(t){console.error(t),e.Tw(null)},!1),l.bia(t)},Y4:function(t,a){var o=this;o.A9(t);var r=this.Q2(t);if(l.z2)a.call(o,null,{sendMessage:r});else{l.z2=!0;var h=[o.TP()+":checkup",Math.random().toFixed(5)+"",Math.round(1e3*Math.random()),!1,function(t,e){var i=!0;if(t||!e||e.length!==h.length-2)i=!1;else for(var n=0,s=e.length;n<s;n++)if(e[n]!==h[n+1]){i=!1;break}i?a.call(o,null,{sendMessage:r}):(console.error(t),a.call(o,"Self checkup failed!!"))}];r.apply(o,h)}}}),u.Os=l}(w),function(){if(!w.Yd){w.Yd={ue:{},uy:{}};var h=w.Yd,t=w.Yd.ue,a=w.a,l=w.A;t.start=function(t){h.uy[t.id]={K:t.K,time:{pW:a.$g()},$$:function(){return a.$g()-this.time.pW}}},t.end=function(t){var e=(i=h.uy[t.id]).time,i=a.bind(i.$$,i),n=t.index,s=t.key;if("function"!=typeof t.Cc&&(t.Cc=function(){}),void 0===e[s])void 0===n?e[s]=i():(e[s]=[],e[s][n]=i());else{if(void 0===n||void 0!==e[s][n])return t.Cc(Error("Duplicate Invoke"));e[s][n]=i()}t.Cc(null)},t.push=function(t){var e=h.uy[t.id].time,i=t.key,n=t.Un;if("function"!=typeof t.Cc&&(t.Cc=function(){}),void 0!==e[i])return t.Cc(Error("Duplicate Invoke"));e[i]=n,t.Cc(null)},t.send=function(t){var e=l.Rb+"://webapi.amap.com/count?",i=w.extend(c({K:h.uy[t.id].K}),t.params||{}),n=w.a;for(var s in t.params&&t.params.rs&&!t.params.type&&(delete(t=h.uy[t.id].time).pW,i=w.extend(i,t)),t=[],i)n.isArray(i[s])?t.push([s,i[s].join("-")].join("=")):t.push([s,i[s]].join("="));if(t.push("jl="+(l.Gy?1:0)),n.$j(window.performance,"performance")&&n.$j(window.performance.getEntriesByType,"function")){var a=0,o=["webapi.amap.com","100.69.169.127","localhost"],r=["/maps","/css"];n.Pb(window.performance.getEntriesByType("resource"),function(t){var e=void 0,i=void 0;t.name.match(/:\/\/([^:?#/]+)/)&&(e=RegExp.$1),t.name.match(/[^\/](\/[^/?#:]+)/)&&(i=RegExp.$1),e&&i&&n.ga(o,e)&&n.ga(r,i)&&(a+=parseInt(t.responseEnd-t.startTime))}),0!==a&&t.push("sd="+a)}new w.Sa.fb(e+t.join("&"))};var c=function(t){var e=w.l;return{type:"q",resolution:(t=w.j.oV(t.K)).width+"*"+t.height,k:l.key,u:l.Sm,iw:e.Je?1:0,cw:e.cU?1:0,gc:e.qK,m:e.Y?1:0,cv:e.Fx?1:0,pf:e.Pr,dpr:window.devicePixelRatio,screenwidth:screen.width,scale:e.SE||0,detect:e.ja?1:0,v:l.Gq}}}}(),function(){if(w.l.Br&&!w.$E){var e=w.a.dK({keys:"keys",A:"Conf",extend:"extend",l:"Browser",qs:"uncodeCoords"});w.$E=function(){var t=new w.Os(function(){return{B:function(){this.Af={},this.Cf=[],this.Qm={}},aj:function(t,e){this.qea(t,e)},qea:function(o,r){function e(t,e){var i=2<arguments.length&&void 0!==arguments[2]&&arguments[2];if(c.Af[h.wp]||c.O4(h)){var n=t.split("|");e&&(n[0]=e+n[0]);var s=n,a="";return n[n.length-1]&&(a=n[n.length-1],s=n.splice(0,n.length-1)),c.Lr(c.extend({},o,{LE:s,nc:l,bk:i,tW:!0}),r),a}}var i=this,h=new XMLHttpRequest;o.de.Lc?this.Lc=o.de.Lc:o.de.Lc=this.Lc;var l=o.nc,n=o.xg,s=o.Nb,t=o.url;if(this.qo()&&(this.fA(),n))this.yk(s,r);else{var a=0,c=this;h.En="",h.wp=[(new Date).getTime(),n?1:0].join("-"),n?this.Cf.push(h):this.Af[h.wp]=1,h.onreadystatechange=function(){if(4===h.readyState&&0===h.status)h.aq||(h.aq=!0,i.yk(s,r),h.onreadystatechange=null,n?i.Yw(h):delete i.Af[h.wp]);else if(!h.aq){if(i.qo()&&(i.fA(),n))return;if(3===h.readyState){var t=h.responseText.substring(a);h.En=e(t,h.En),a=h.responseText.length}else 4===h.readyState&&(t=h.responseText.substring(a),o.eh&&(t+="|"),e(t,h.En,!0),h.En="",n?i.Yw(h):delete i.Af[h.wp])}},h.onerror=function(){},this.yK||(this.yK=1),h.open("GET",t,!0),h.send()}},Du:function(s){function t(t,e,i){var n=[i,t,e].join("/");18<h&&!u&&(n+="/"+h),(t=a.filter(function(t){return t.key===n})[0])&&"loaded"!==t.status&&-1!==c.indexOf(w)&&("limg"===w?(console.log("un reached"),e=r[1],"string"==typeof(t.Qd=e).b&&(e.b=g.gw(e.b)),i="",(i="object"==typeof e.u?e.u.url:e.u)&&(e.u={url:i,Tn:"limg-"+t.key+"-"+o})):(e={ti:t.ma,ll:n,Ba:r,Wc:w,EI:s.Mq,NK:"building"===w,dh:"poilabel"===w||"roadlabel"===w||"building"===w&&f},"poilabel"!==w&&"roadlabel"!==w||(console.log("un reached"),e.Qd=t.Qd),w===c[c.length-1]&&(t.status="loaded"),l.push(e)))}var a=s.Nb,o=s.WK,r=s.Qx,h=s.nc,l=s.Uc,c=s.xa,u=s.Je,e=s.sK,f=s.td,i=r[0].split("-"),n=parseInt(i[1]),d=parseInt(i[2]),p=parseInt(i[0]),g=this,w=i[3];i=Math.pow(2,p),p<10&&(n<=e&&t(n+i,d,p),i-e<=n&&t(n-i,d,p)),t(n,d,p)},Yw:function(t){for(var e=this.Cf.length-1;0<=e;e--)this.Cf[e]===t&&this.Cf.splice(e,1)},O4:function(t){for(var e=0,i=this.Cf.length;e<i;e++)if(this.Cf[e]===t)return!0;return!1},qo:function(){return!!this.keys(this.Af).length},fA:function(){for(var t=this.Cf.length-1;0<=t;t--){var e=this.Cf[t];e.aq||e.abort()}this.Cf.splice(0,this.Cf.length)},yk:function(t,e){e(null,{Nb:t,GW:!0,disabled:this.disabled},{jn:!0})}}},{batchSend:!1});return t.Zj(null,new Function("\n     return {\n      "+e.keys+": "+w.a.keys.toString()+",\n      "+e.Conf+": "+JSON.stringify(w.A)+",\n      "+e.extend+": "+w.extend.toString()+",\n      "+e.Browser+": "+JSON.stringify(w.l)+",\n      "+e.uncodeCoords+": "+w.a.qs.toString()+"\n     }")),t}}}(),w.j={get:function(t){return"string"==typeof t?document.getElementById(t):t},ey:function(t){if(!t)return[0,0];var e=t.clientWidth,i=t.clientHeight;return e&&i||!t.childNodes[0]||(e=e||t.childNodes[0].clientWidth,i=i||t.childNodes[0].clientHeight),window.opera&&(e=Math.max(e,t.childNodes[0].scrollWidth),i=Math.max(i,t.childNodes[0].scrollHeight)),[e,i]},cna:function(t,e){var i=document.head||document.getElementsByTagName("head")[0];if(i){var n=document.createElement("link");n.setAttribute("rel","stylesheet"),n.setAttribute("type","text/css"),n.setAttribute("href",t),e?i.appendChild(n):i.insertBefore(n,i.firstChild)}else document.write("<link rel='stylesheet' href='"+t+"'/>")},ne:function(t,e){var i=t.style[e];return!i&&t.currentStyle&&(i=t.currentStyle[e]),i&&"auto"!==i||!document.defaultView||(i=(i=document.defaultView.getComputedStyle(t,null))?i[e]:null),i&&"auto"!==i||"height"!==e||(i=t.clientHeight+"px"),i&&"auto"!==i||"width"!==e||(i=t.clientWidth+"px"),"auto"===i?null:i},dD:function(t){if(t)return new w.Rc(t.clientWidth||document.body.clientWidth,t.clientHeight||(w.l.Xo&&"CSS1Compat"===document.compatMode?document.documentElement.clientHeight:document.body.clientHeight),!0)},oV:function(t){return new w.Rc(t.clientWidth,t.clientHeight)},oK:function(t){var e,i=0,n=0,s=t,a=document.body,o=document.documentElement,r=w.l.Yo;do{if(i+=s.offsetTop||0,n+=s.offsetLeft||0,i+=parseInt(w.j.ne(s,"borderTopWidth"),10)||0,n+=parseInt(w.j.ne(s,"borderLeftWidth"),10)||0,e=w.j.ne(s,"position"),s.offsetParent===a&&"absolute"===e)break;if("fixed"===e){i+=a.scrollTop||o.scrollTop||0,n+=a.scrollLeft||o.scrollLeft||0;break}s=s.offsetParent}while(s);s=t;do{if(s===a)break;i-=s.scrollTop||0,n-=s.scrollLeft||0,w.j.yba()||!w.l.t_&&!r||(n+=s.scrollWidth-s.clientWidth,r&&"hidden"!==w.j.ne(s,"overflow-y")&&"hidden"!==w.j.ne(s,"overflow")&&(n+=17)),s=s.parentNode}while(s);return new w.G(n,i)},yba:function(){return w.j.h3||(w.j.h3=!0,w.j.g3="ltr"===w.j.ne(document.body,"direction")),w.j.g3},create:function(t,e,i){return t=document.createElement(t),i&&(t.className=i),e&&e.appendChild(t),t},IU:function(){document.selection&&document.selection.empty&&document.selection.empty(),this.G7||(this.G7=document.onselectstart,document.onselectstart=w.a.YU)},RU:function(){},Gia:function(t,e,i){i?this.Ha(t,e):this.Na(t,e)},Ul:function(t,e){if(t&&e)return 0<t.className.length&&RegExp("(^|\\s)"+e+"(\\s|$)").test(t.className)},Ha:function(t,e){t&&e&&!w.j.Ul(t,e)&&(t.className+=(t.className?" ":"")+e)},Gha:function(t,e){t&&(t.className=e||"")},Na:function(t,i){t&&i&&(t.className=t.className.replace(/(\S+)\s*/g,function(t,e){return e===i?"":t}).replace(/(^\s+|\s+$)/,""))},DV:function(t,e){return 1===e?"":"opacity"in t.style?"opacity:"+e:8<=document.documentMode?"-ms-filter:'progid:DXImageTransform.Microsoft.Alpha(opacity="+Math.ceil(100*e)+")'":"filter:alpha(opacity="+Math.ceil(100*e)+")"},Kn:function(t,e){if(t.style)if("opacity"in t.style)t.style.opacity=e;else if("filter"in t.style){var i=Math.round(100*e);t.style.filter="",100!==i&&(t.style.filter=" progid:DXImageTransform.Microsoft.Alpha(opacity="+i+")")}},NM:function(t){for(var e=document.documentElement.style,i=0;i<t.length;i+=1)if(t[i]in e)return t[i];return!1},QV:function(t){var e=w.l.u_;return"translate"+(e?"3d":"")+"("+t.x+"px,"+t.y+"px"+(e?",0":"")+")"},Bma:function(t,e){return w.j.QV(e.add(e.Vc(-1*t)))+" scale("+t+") "},fZ:function(t,e,i){t.th=e,!i&&w.l.eC?(e=w.j.QV(e),1<(i=t.style[w.j.jf].split("rotate")).length?(i[0]=e,t.style[w.j.jf]=i.join("rotate")):t.style[w.j.jf]=e,w.l.oX&&(t.style.WebkitBackfaceVisibility="hidden")):(t.style.left=e.x+"px",t.style.top=e.y+"px")},Md:function(t){return t.th||(t.th=t.style.left?new w.G(parseInt(t.style.left),parseInt(t.style.top)):new w.G(0,0)),t.th},soa:function(t,e){t=t instanceof Array?t:[t];for(var i=0;i<t.length;i+=1)t[i].style.cssText=e},ZY:function(t,e){return";"!==e[e.length-1]&&(e+=";"),e.toLowerCase()!==t.style.cssText.replace(/ /g,"").toLowerCase()&&(t.style.cssText=e,!0)},Ja:function(t,e){t=t instanceof Array?t:[t];for(var i=0;i<t.length;i+=1)for(var n in e)e.hasOwnProperty(n)&&(t[i].style[n]=e[n]);return this},bz:function(t){for(;t.childNodes.length;)t.removeChild(t.childNodes[0])},remove:function(t){t&&t.parentNode&&t.parentNode.removeChild(t)},rotate:function(t,e,i){var n=w.j.jf;i=i||{x:t.clientWidth/2,y:t.clientHeight/2},n?(t.style[n]=" rotate("+e+"deg)",t.style[w.j.Ep[n]+"-origin"]=i.x+"px "+i.y+"px"):(n=Math.cos(e*Math.PI/180),e=Math.sin(e*Math.PI/180),t.style.filter="progid:DXImageTransform.Microsoft.Matrix()",0<t.filters.length&&((t=t.filters.item(0)).Dx=-i.x*n+i.y*e+i.x,t.Dy=-i.x*e-i.y*n+i.y,t.M11=t.M22=n,t.M12=-(t.M21=e)))},NV:function(t,e,i){var n=w.j.jf;return i=i||{x:t.clientWidth/2,y:t.clientHeight/2},n?w.j.Ep[n]+": rotate("+e+"deg);"+w.j.Ep[n]+"-origin:"+i.x+"px "+i.y+"px":""},qm:function(t,e,i){t.width=e,t.height=i},getElementsByClassName:function(t,e,i){if(e=e||"*",(i=i||document).getElementsByClassName)return i.getElementsByClassName(t);e=i.getElementsByTagName(e),t=RegExp("(^|\\s)"+t+"(\\s|$)"),i=[];for(var n,s=0;s<e.length;s++)n=e[s],t.test(n.className)&&i.push(n);return i},fillText:function(t,e){if(t)return void 0!==t.textContent?t.textContent=e:void 0!==t.innerText?t.innerText=e:t.innerHTML=e,t}},Zo=w.j.NM(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]),w.extend(w.j,{IU:function(){if(w.C.h(window,"selectstart",w.C.preventDefault),Zo){var t=document.documentElement.style;"none"!==t[Zo]&&($o=t[Zo],t[Zo]="none")}},RU:function(){w.C.I(window,"selectstart",w.C.preventDefault),Zo&&"none"!==$o&&(document.documentElement.style[Zo]=$o,$o="none")},qba:function(){w.C.h(window,"dragstart",w.C.preventDefault)},Tba:function(){w.C.I(window,"dragstart",w.C.preventDefault)}}),w.j.jf=w.j.NM(["WebkitTransform","OTransform","MozTransform","msTransform","transform"]),w.j.Ep={transform:"transform",WebkitTransform:"-webkit-transform",OTransform:"-o-transform",MozTransform:"-moz-transform",msTransform:"-ms-transform"},w.j.aA=w.j.NM(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),w.j.qka="webkitTransition"===w.j.aA||"OTransition"===w.j.aA?w.j.aA+"End":"transitionend",w.C={h:function(e,t,i,n){function s(t){return(t=t||window.event).target=t.target||t.srcElement,i.call(n||e,t,r)}var a=w.a.Jb(e)+"_"+w.a.Jb(i)+"_"+w.a.Jb(n||e),o=t+a;if(e[o])return this;var r=t;if(w.l.JJ&&"mousewheel"===t&&(t="DOMMouseScroll"),w.l.Xo&&("mouseover"===t||"mouseout"===t)){var h=s;t="mouseover"===t?"mouseenter":"mouseleave",s=function(t){h(t)}}return w.l.cY&&0===t.indexOf("touch")?(e[o]=s,this.k$(e,t,s,a)):(w.l.Oe&&"dblclick"===t&&this.i$&&this.i$(e,s,a),"addEventListener"in e?e.addEventListener(t,s,!1):"attachEvent"in e?e.attachEvent("on"+t,s):e["on"+t]=s,e[o]=s,this)},dk:function(i,n,s,a){var o=this;this.h(i,n,function t(e){return o.I(i,n,t,a),s.call(a||i,e||window.event,n)},a)},I:function(t,e,i,n){var s=t[n=e+(i=w.a.Jb(t)+"_"+w.a.Jb(i)+"_"+w.a.Jb(n||t))];return w.l.JJ&&"mousewheel"===e&&(e="DOMMouseScroll"),!w.l.Xo||"mouseover"!==e&&"mouseout"!==e||(e="mouseover"===e?"mouseenter":"mouseleave"),w.l.cY&&-1<e.indexOf("touch")?this.Nga(t,e,i):w.l.Oe&&"dblclick"===e&&this.Jga?this.Jga(t,i):"removeEventListener"in t?t.removeEventListener(e,s,!1):"detachEvent"in t&&-1===e.indexOf("touch")?s&&t.detachEvent("on"+e,s):t["on"+e]=null,t[n]=null,this},voa:function(t,e){var i=document.createEvent("MouseEvents");i.initMouseEvent(t,!0,!0,window,1,e.screenX,e.screenY,e.clientX,e.clientY,!1,!1,!1,!1,0,null),e.target.dispatchEvent(i)},stopPropagation:function(t){return t.stopPropagation?t.stopPropagation():t.cancelBubble=!0,this},nia:function(t){var e=w.C.stopPropagation;w.l.Oe&&(w.C.h(t,"touchstart",e,this),w.C.h(t,"touchmove",e,this),w.C.h(t,"touchend",e,this)),w.l.Y||(w.C.h(t,"mousedown",e,this),w.C.h(t,"mouseup",e,this),w.C.h(t,"mousemove",e,this)),w.l.QL&&(w.C.h(t,"pointerdown",e,this),w.C.h(t,"pointerup",e,this),w.C.h(t,"pointermove",e,this)),w.l.qX&&(w.C.h(t,"MSPointerDown",e,this),w.C.h(t,"MSPointerUp",e,this),w.C.h(t,"MSPointerMove",e,this))},preventDefault:function(t){return t.preventDefault?t.preventDefault():t.returnValue=!1,this},stop:function(t){return w.C.preventDefault(t).stopPropagation(t)},Fha:function(t){return!(!t||!t.getBoundingClientRect||(t.wF=t.getBoundingClientRect(),t.pO=[t.clientLeft,t.clientTop],0))},kja:function(t){t.wF&&(t.wF=null,t.pO=null)},Wba:function(t,e){var i=e.wF||e.getBoundingClientRect(),n=e.pO||[e.clientLeft,e.clientTop];return new w.G(t.clientX-i.left-n[0],t.clientY-i.top-n[1])},Vj:function(t,e){if(e&&e.getBoundingClientRect)return this.Wba(t,e);var i=document.body,n=document.documentElement;return i=new w.G(w.l.Oe?t.pageX:t.clientX+(i.scrollLeft||n.scrollLeft),w.l.Oe?t.pageY:t.clientY+(i.scrollTop||n.scrollTop)),e?i.Ua(w.j.oK(e)):i},DW:function(t){return 1===t.which||0===t.button||1===t.button}},w.extend(w.C,{oH:[],iR:!1,k$:function(t,e,i,n){switch(e){case"touchstart":return this.n$(t,e,i,n);case"touchend":return this.l$(t,e,i,n);case"touchmove":return this.m$(t,e,i,n)}},Rl:function(t){if(w.l.QL)return t;switch(t){case"pointerdown":return"MSPointerDown";case"pointerup":return"MSPointerUp";case"pointercancel":return"MSPointerCancel";case"pointermove":return"MSPointerMove"}},n$:function(t,e,n,i){function s(t){for(var e=!1,i=0;i<a.length;i+=1)if(a[i].pointerId===t.pointerId){e=!0;break}e||a.push(t),t.touches=a.slice(),t.changedTouches=[t],n(t)}var a=this.oH;return t["_amap_touchstart"+i]=s,t.addEventListener(this.Rl("pointerdown"),s,!1),this.iR||(t=function(t){for(var e=0;e<a.length;e+=1)if(a[e].pointerId===t.pointerId){a.splice(e,1);break}},document.documentElement.addEventListener(this.Rl("pointerup"),t,!1),document.documentElement.addEventListener(this.Rl("pointercancel"),t,!1),this.iR=!0),this},m$:function(t,e,i,n){function s(t){if(t.pointerType!==t.MSPOINTER_TYPE_MOUSE||0!==t.buttons){for(var e=0;e<a.length;e+=1)if(a[e].pointerId===t.pointerId){a[e]=t;break}t.touches=a.slice(),t.changedTouches=[t],i(t)}}var a=this.oH;return t["_amap_touchmove"+n]=s,t.addEventListener(this.Rl("pointermove"),s,!1),this},l$:function(t,e,i,n){function s(t){for(var e=0;e<a.length;e+=1)if(a[e].pointerId===t.pointerId){a.splice(e,1);break}t.touches=a.slice(),t.changedTouches=[t],i(t)}var a=this.oH;return t["_amap_touchend"+n]=s,t.addEventListener(this.Rl("pointerup"),s,!1),t.addEventListener(this.Rl("pointercancel"),s,!1),this},Nga:function(t,e,i){switch(i=t["_amap_"+e+i],e){case"touchstart":t.removeEventListener(this.Rl("pointerdown"),i,!1);break;case"touchmove":t.removeEventListener(this.Rl("pointermove"),i,!1);break;case"touchend":t.removeEventListener(this.Rl("pointerup"),i,!1),t.removeEventListener(this.Rl("pointercancel"),i,!1)}return this}}),function(){function n(i){var n=i.target||i.srcElement;n.yO&&e(n.yO),n.yO=t(function(){var t=n.Am;if(t&&t.zm)for(var e=0;e<t.zm.length;e+=1)t.zm[e].call(t,i)})}function s(){var t=this.contentDocument.defaultView;t.Am=this.k1,t.addEventListener("resize",n),n.call(t,{target:t})}var a=document.attachEvent,o=navigator.userAgent.match(/(Trident|Edge)/),t=w.a.pc,e=w.a.Wg;w.extend(w.C,{q$:function(t,e){if(!t.zm)if(t.zm=[],a)(t.Am=t).attachEvent("onresize",n);else{"static"===window.getComputedStyle(t).position&&(t.style.position="relative");var i=t.Am=document.createElement("object");i.setAttribute("style","display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; pointer-events: none; z-index: -1;"),i.k1=t,i.onload=s,i.type="text/html",o&&t.appendChild(i),i.data="about:blank",o||t.appendChild(i)}t.zm.push(e)},Vna:function(t,e){t.zm.splice(t.zm.indexOf(e),1),t.zm.length||(a?t.detachEvent("onresize",n):(t.Am.contentDocument.defaultView.removeEventListener("resize",n),t.Am=!t.removeChild(t.Am)))},waa:function(t){if(t.zm=null,t.Am){var e=t.Am;e.parentNode===t&&e.parentNode.removeChild(e),t.Am=null}}})}(),w.hb={Rea:w.A.ub+"/maps",Wq:w.aa.Wq,eL:0,Lu:[],Rq:{},eg:function(t,e){function i(){(n+=1)===s.length&&e&&e()}t.length||e();for(var n=0,s=[],a=0;a<t.length;a+=1){var o=this.Wq[t[a]];if(o)for(var r=0;r<o.length;r+=1)s.push(o[r]);s.push(t[a])}for(a=0;a<s.length;a+=1)this.IJ(s[a],i)},yy:function(t){for(var e=0;e<t.length;e+=1)if(1!==this.Rx(t[e]).status)return!1;return!0},IJ:function(t,e){var i=this.Rx(t);if(1===i.status)e&&e();else{e&&i.Lt.push(e);try{if(w.l.bj&&window.localStorage){var n=window.localStorage["_AMap_"+t];n&&((n=JSON.parse(n)).version===w.A.Th?(window._jsload_(t,n.script,!0),n.css&&window._cssload_(t,n.css,!0)):window.localStorage.removeItem("_AMap_"+t))}}catch(t){}if(0===i.status){this.wga(t);var s=this;s.eL||(s.eL=1,window.setTimeout(function(){s.eL=0;var t=s.Rea+"/modules?v="+w.A.Gq+"&key="+w.A.key+"&m="+s.Lu.join(",")+"&vrs="+w.A.Th;w.hb.dq(s.Lu.join(",")),s.Lu=[],i.qE=s.vea(t)},1)),i.status=-1}}},dq:function(t){t=w.A.sd+"/v3/log/init?"+["s=rsv3&product=JsModule&key="+w.A.key,"m="+t].join("&"),new w.Sa.fb(t,{callback:"callback"})},load:function(t,e){if(a=this.Wq[t]){for(var i=[],n=0;n<a.length;n+=1)i.push(a[n]);i.push(t);var s=0,a=function(){(s+=1)===i.length&&e&&e()};for(n=0;n<i.length;n+=1)this.IJ(i[n],a)}else this.IJ(t,e)},wga:function(t){for(var e=0;e<this.Lu.length;e+=1)if(this.Lu[e]===t)return;this.Lu.push(t)},il:function(a,b){var c=this.Rx(a);try{eval(b)}catch(t){return}c.status=1;for(var e=0,g=c.Lt.length;e<g;e+=1)c.Lt[e]();c.Lt=[]},xla:function(t,e){var i=this;i.timeout=setTimeout(function(){1!==i.Rq[t].status?(i.remove(t),i.load(t,e)):clearTimeout(i.timeout)},5e3)},Rx:function(t){return this.Rq[t]||(this.Rq[t]={},this.Rq[t].status=0,this.Rq[t].Lt=[]),this.Rq[t]},remove:function(t){this.Rq[t]=null},vea:function(t){w.A.mode&&(t+="&mode="+w.A.mode);var e=document.createElement("script");return e.charset="utf-8",t&&0===t.indexOf(w.A.ub)&&(e.crossOrigin="Anonymous"),e.src=t,document.body.appendChild(e),e}},window._jsload_=function(t,e,i){var n=w.hb.Rx(t);n.qE&&0<=w.a.indexOf(document.body.childNodes,n.qE)&&document.body.removeChild(n.qE),n.qE=null;try{if(!i&&window.localStorage&&e&&""!==e&&w.l.bj){var s=(s=window.localStorage["_AMap_"+t])||"{}";(s=JSON.parse(s)).version!==w.A.Th||s.script?window.localStorage.setItem("_AMap_"+t,JSON.stringify({version:w.A.Th,script:e})):window.localStorage.setItem("_AMap_"+t,JSON.stringify({version:w.A.Th,script:e,css:s.css}))}}catch(t){}w.hb.il(t,e)},window._cssload_=function(t,e,i){try{!i&&window.localStorage&&e&&""!==e&&w.l.bj&&window.localStorage.setItem("_AMap_"+t,JSON.stringify({css:e,version:w.A.Th}))}catch(t){}var n=document.createElement("style");n.type="text/css",-1===w.A.ub.indexOf("webapi.amap.com")&&(e=e.replace(/webapi.amap.com/gi,w.A.ub.split("://")[1])),"https"===w.A.Rb&&(e=e.replace(/http:/gi,"https:")),n.styleSheet?(t=function(){try{n.styleSheet.cssText=e}catch(t){}},n.styleSheet.disabled?setTimeout(t,10):t()):n.appendChild(document.createTextNode(e)),(t=document.head||document.getElementsByTagName("head")[0]).childNodes.length<2?t.appendChild(n):t.insertBefore(n,t.childNodes[1])},function(t){var e=w.l;if(!w.indexedDB&&e.gf){var i=t.indexedDB||t.webkitIndexedDB||t.msIndexedDB||t.mozIndexedDB,o=t.IDBKeyRange||t.Woa||t.kna||t.jna;if(i){var r=w.a,n=null;t="amap-jsapi"+(t.dka?"-debug":"");var s,a=w.extend({},w.ka);try{(s=i.open(t)).onsuccess=function(){n=this.result,a.r("dbReady",{status:"success"})},s.onerror=function(){a.r("dbReady",{status:"error"})},s.onblocked=function(){a.r("dbReady",{status:"blocked"})},s.onupgradeneeded=function(t){t.currentTarget.result.createObjectStore("tile",{keyPath:"tileKey"})}}catch(t){e.gf=!1}finally{if(!e.gf)return}var h=(e=function(t){return function(){try{return t.apply(this,arguments)}catch(t){var e=arguments[arguments.length-1];"function"==typeof e&&setTimeout(function(){e({code:4,$la:t})},1)}}})(function(t,e){return null===n?(setTimeout(function(){e&&e({code:3})},1),null):n.transaction("tile",t).objectStore("tile")}),l=function(t,e){for(var i=-1,n=0,s=e.length;n<s;n++)if(e[n]>t){i=n;break}return i};w.indexedDB={qx:e(function(e,i){n?"function"==typeof e&&e():a.h("dbReady",function(t){"success"===t.status?"function"==typeof e&&e():"function"==typeof i&&i({code:3,status:status})})}),count:e(function(t){var e=this,i=arguments;this.qx(function(){e.dq.apply(e,i)},t)}),dq:e(function(t){var e=h("readonly",t).count();e.onsuccess=function(){t(null,e.result)},e.onerror=function(){t({code:7})}}),get:e(function(t,e){var i=this,n=arguments;this.qx(function(){i.A3.apply(i,n)},e)}),A3:e(function(i,n){var t=h("readonly",n);if(r.isArray(i)){var s=[],a=i.slice(0);i.sort(),t.openCursor(o.bound(i[0],i[i.length-1])).onsuccess=function(t){if(t=t.target.result){var e=r.indexOf(a,t.value.tileKey);-1!==e&&(s[e]=t.value),t.continue(i[l(t.value.tileKey,i)])}else n&&n(null,s.filter(function(t){return void 0!==t}))}}else(t=t.get(i)).onsuccess=function(t){n&&n(null,t.target.result)},t.onerror=function(){n&&n({code:1})}}),add:e(function(t,e){var i=this,n=arguments;this.qx(function(){i.o1.apply(i,n)},e)}),o1:e(function(t,e){r.isArray(t)||(t=[t]);for(var i=t.length,n=0,s=i;n<s;n++){var a=h("readwrite",e).add(t[n]);a.onsuccess=function(){0==--i&&e(null)},a.onerror=function(t){-1===t.target.error.message.indexOf("Key already exists")?(e({code:5}),i=0):0==--i&&e(null)}}}),remove:e(function(t,e){var i=this,n=arguments;this.qx(function(){i.O8.apply(i,n)},e)}),O8:e(function(e,i){var t=h("readwrite",i);r.isArray(e)||(e=[e]),e=e.sort(),t.openCursor(o.bound(e[0],e[e.length-1])).onsuccess=function(t){(t=t.target.result)?(r.ga(t.value.tileKey,e)&&t.delete(),t.continue(e[l(t.value.tileKey,e)])):i&&i(null)}}),clear:e(function(t){var e=this,i=arguments;this.qx(function(){e.pA.apply(e,i)},t)}),pA:e(function(t){var e=h("readwrite",t).clear();e.onsuccess=function(){t&&t(null)},e.onerror=function(){t&&t({code:2})}})}}else e.gf=!1}}(window),function(){function f(t){return[w.A.Th,t.ll.replace(/\//g,","),t.Je?"w":"v",(e=t.ja,i=t.td,[e?1:0,m.Y?1:0,i?1:0].join()),p(t.url)].join("|");var e,i}function a(){var t,e;b.data.keys.length>=b.iF&&(t=b.data.keys.length,e=Math.floor(t/2),t>b.iF&&(e=Math.floor(t-b.iF/2)),t=b.data.keys.slice(0,e),b.data.keys=b.data.keys.slice(e+1),v.remove(t,function(t){t&&3===t.code&&(m.gf=!1)}))}function d(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:y.pp;i(),o.setItem(b.key,b.data,!0),m.gf&&v&&v.clear(function(t){t&&3===t.code?m.gf=!1:e()})}function i(){b.data={PE:m.Ud,KT:w.A.Th,keys:[],ze:{},Si:{}},b.Pn={}}function p(t){var e="limg";return/flds=([^&]+)/.test(t)&&(e=RegExp.$1),e}function g(t){if("object"!=typeof t||null===t)return t;var e=[];if(y.isArray(t))if(Object.keys(t).length==t.length)e=t.map(function(t){return g(t)});else{e.push("__arrayObject");var i,n={};for(i in t)(parseInt(i)<0||isNaN(parseInt(i)))&&t.hasOwnProperty(i)&&(n[i]=g(t[i]));e.push(n),e.push(t.map(function(t){return g(t)}))}else if(y.$j(t,"Float32Array"))e.push("__Float32Array"),e.push(Array.prototype.slice.call(t));else if(y.$j(t,"Uint16Array"))e.push("__Uint16Array"),e.push(Array.prototype.slice.call(t));else for(i in e={},t)t.hasOwnProperty(i)&&(e[i]=g(t[i]));return e}function n(t){if("object"!=typeof t||null===t)return t;var e={};if(y.isArray(t))if("__Float32Array"===t[0])e=new Float32Array(t[1]);else if("__Uint16Array"===t[0])e=new Uint16Array(t[1]);else if("__arrayObject"===t[0])for(var i in e=n(t[2]),t=t[1])t.hasOwnProperty(i)&&(e[i]=t[i]);else e=t.map(function(t){return n(t)});else for(i in t)t.hasOwnProperty(i)&&(e[i]=n(t[i]));return e}var e,m=w.l,y=w.a;if(!w.ym&&(w.l.pz||w.l.rm)&&(m.gf||m.bj)){var v=w.indexedDB,b={iF:1e3,key:"_AMap_data.tileKeys"},M=[],o={getItem:function(t,e){var i=localStorage.getItem(t);if(i&&e){var n;try{n=JSON.parse(i)}catch(t){n=null}i=n}return i},setItem:function(t,e,i){var n=e;i&&1.5<(n=JSON.stringify(e)).length/1024/1024&&Object.keys(e.Si).length&&(e.Si={},n=JSON.stringify(e));try{localStorage.setItem(t,n)}catch(t){d()}}};w.ym={get:function(a,o){function s(t){var e,s,i,n={DK:r,Oea:l,ze:b.data.ze};/\|limg/.test(h[0])?n.iea=(i=[],t.forEach(function(t){t.data.forEach(function(t){i.push(t)})}),i):n.Uc=(e=t,s=[],p(a.url).split(",").forEach(function(n){e.forEach(function(t){if(t=t.data[n]){var e=t.ti;for(var i in t.ti=new w.uk(e.z,e.x,e.y),t.ti.S=e.S,t.Ba)t.Ba.hasOwnProperty(i)&&delete t.Ba[i].Sp;s.push(t)}})}),s),o&&o(null,n)}var t=a.Bia,r=[],h=[],l=[],c=[];if("FS"!==a.type&&!b.data.keys.length)return o({code:1});if(t.forEach(function(t){var e=f({ll:t.key,url:a.url,Je:a.Je,ja:a.w.ja,td:a.td});"FS"!==a.type||m.gf?"FS"!==a.type||/\|w\|/.test(e)?y.ga(b.data.keys,e)?(r.push(t),h.push(e)):l.push(t):(M.push(e),b.data.Si[e]?(r.push(t),h.push(e),c.push({data:n(b.data.Si[e]),tileKey:e})):y.ga(b.data.keys,e)?(r.push(t),h.push(e)):l.push(t)):/\|w\|/.test(e)?l.push(t):(M.push(e),b.data.Si[e]?(r.push(t),h.push(e),c.push({data:n(b.data.Si[e]),tileKey:e})):l.push(t))}),h.length){if(!m.gf)return s(c);var e=h.slice(0);if(c.length){if(c.length===e.length)return s(c);c.forEach(function(t){t=y.indexOf(e,t.tileKey),e.splice(t,1)})}var u=setTimeout(function(){u=null,o&&o({code:1})},a.timeout||1e3);v.get(e,function(t,e){if(null!==u)if(clearTimeout(u),u=null,t)3===t.code?m.gf=!1:d(),o&&o({code:1});else{if("FS"===a.type&&e.length&&e.forEach(function(t){/\|w\|/.test(t.tileKey)||(b.data.Si[t.tileKey]=g(t.data))}),c.length){var i=[];(e=e.concat(c)).forEach(function(t){var e=y.indexOf(M,t.tileKey);i[e]=t}),e=i=i.filter(function(t){return void 0!==t})}e.length===h.length?(s(e),n=h,b.data.keys=b.data.keys.filter(function(t){return!y.ga(n,t)}).concat(n)):(d(),o&&o({code:1}))}var n})}else o&&o({code:1})},Sn:function(e){e.Nb.forEach(function(t){t=f({ll:t.key,url:e.url,Je:e.Je,ja:e.w.ja,td:e.td}),b.Pn[t]&&delete b.Pn[t]})},set:function(n,t){var e;n.Ud&&n.Ud!==b.data.PE&&((e=n.Ud)&&(b.data.PE=e,m.Ud=e),d(),t&&t({code:2})),n.Qd?n.data.forEach(function(t){var e=f({ll:t[0].split("-").slice(0,3).join("/"),url:n.url,Je:n.Je,ja:n.w.ja,td:n.td});if(m.gf||y.ga(M,e)){var i=b.Pn[e]||[];i.push(t),b.Pn[e]=i}}):n.Uc.forEach(function(t){var e=f({ll:t.ll,url:n.url,Je:n.Je,ja:n.w.ja,td:n.td});if(m.gf||y.ga(M,e)){var i=b.Pn[e]||{};i[t.Wc]=y.vb(t),b.Pn[e]=i}}),b.data.ze={"x-vd-v":n["x-vd-v"],tv:n.tv,bgc:n.bgc}},flush:(e=!0,function(){var i=this;if(e){if(Object.keys(b.data.Si).length)for(var t in b.data.Si)b.data.Si.hasOwnProperty(t)&&!y.ga(M,t)&&delete b.data.Si[t];m.gf?v.count(function(t,e){t||(e!==b.data.keys.length?d(function(){i.GA()}):i.GA(!0))}):i.GA(!0),e=!1}else i.GA()}),GA:function(){var t=0<arguments.length&&void 0!==arguments[0]&&arguments[0],i={},n=[],e=Object.keys(b.Pn),s=[];e.length?(e.forEach(function(t){var e=b.Pn[t];t.split("|").pop().split(",").every(function(t){return"limg"===t?e&&3===e.length:e&&void 0!==e[t]})?(y.ga(b.data.keys,t)||(s.push(t),n.push({tileKey:t,data:e})),y.ga(M,t)&&void 0===b.data.Si[t]&&(b.data.Si[t]=g(e))):i[t]=e}),n.length&&(m.gf?v.add(n,function(t){t?3!==t.code?d():m.gf=!1:(b.data.keys=b.data.keys.concat(s),o.setItem(b.key,b.data,!0),a())}):o.setItem(b.key,b.data,!0)),b.Pn=i):(t&&o.setItem(b.key,b.data,!0),a())}},function(){i();var t=o.getItem(b.key,!0);t&&(t.PE===b.data.PE&&t.KT===b.data.KT?b.data=t:d())}()}}(),w.U=w.aa.extend({B:function(t,e,i){var n=parseFloat(e),s=parseFloat(t);if(isNaN(t)||isNaN(e))throw"Invalid Object: LngLat("+s+", "+n+")";!0!==i&&(n=Math.max(Math.min(n,90),-90),s=(s+180)%360+(s<-180||180===s?180:-180)),this.O=n,this.P=s},aK:function(){return w.a.Sc(this.P,6)},YJ:function(){return w.a.Sc(this.O,6)},add:function(t,e){return new w.U(this.P+t.P,this.O+t.O,e)},Ua:function(t,e){return new w.U(this.P-t.P,this.O-t.O,e)},wc:function(t,e){return new w.U(this.P/t,this.O/t,e)},Vc:function(t,e){return new w.U(this.P*t,this.O*t,e)},Ld:function(t){return w.Vp.distance(this,t)},offset:function(t,e){if(isNaN(t)||isNaN(e))return!1;var i=2*Math.asin(Math.sin(Math.round(t)/12756274)/Math.cos(this.O*Math.PI/180)),n=(i=this.P+180*i/Math.PI,2*Math.asin(Math.round(e)/12756274));return new w.U(i,this.O+180*n/Math.PI)},qb:function(t){return(t=w.a.ya(t))instanceof w.U&&Math.max(Math.abs(this.O-t.O),Math.abs(this.P-t.P))<=1e-9},toString:function(){return w.a.Sc(this.P,6)+","+w.a.Sc(this.O,6)},lk:function(){return[this.P,this.O]},vb:function(){var t=this.controlPoints,e=new w.U(this.P,this.O);return t&&(e.controlPoints=[].concat(t)),e}}),w.U.Mca=function(t,e,i){if(!(i=i+1||Math.round(Math.abs(t.P-e.P)))||Math.abs(t.P-e.P)<.001)return[];var n=[],s=w.tk.Uq,a=w.tk.Aga,o=Math.asin,r=Math.sqrt,h=Math.sin,l=Math.pow,c=Math.cos,u=Math.atan2,f=t.O*s;t=t.P*s;var d,p,g,m,y=e.O*s;for(e=e.P*s,o=2*o(r(l(h((f-y)/2),2)+c(f)*c(y)*l(h((t-e)/2),2))),s=1;s<i;s+=1)p=h((1-(d=1/i*s))*o)/h(o),g=h(d*o)/h(o),d=p*c(f)*c(t)+g*c(y)*c(e),m=p*c(f)*h(t)+g*c(y)*h(e),p=u(p=p*h(f)+g*h(y),r(l(d,2)+l(m,2))),d=u(m,d),n.push(new w.U(d*a,p*a));return n},w.U.Sj({aK:"getLng",YJ:"getLat",add:"add",Ua:"subtract",wc:"divideBy",Vc:"multiplyBy",Ld:"distance",offset:"offset",qb:"equals",toString:"toString"}),w.Vd=w.aa.extend({B:function(){this.CLASS_NAME="AMap.Bounds";var t=null,e=null;if(2===arguments.length)t=w.a.ya(arguments[0]),e=w.a.ya(arguments[1]);else if(4===arguments.length)t=new w.U(arguments[0],arguments[1]),e=new w.U(arguments[2],arguments[3]);else{if(0!==arguments.length)throw"Invalid Object: Bounds("+arguments.join(",")+")";t=new w.U(-180,-90),e=new w.U(180,90)}this.Yb=t,this.Qb=e},pr:function(){return this.Yb},gu:function(){return this.Qb},hi:function(){return new w.U(this.Yb.P,this.Qb.O,!0)},Sl:function(){return new w.U(this.Qb.P,this.Yb.O,!0)},contains:function(t){var e,i=this.Yb,n=this.Qb;if(t instanceof w.um)return this.UM().contains(t);t instanceof w.Vd?(e=t.Yb,t=t.Qb):e=t=w.a.ya(t);var s=e.P,a=i.P,o=t.P,r=n.P;return r<a&&(r+=360,s<0&&(s+=360),o<0&&(o+=360)),e.O>=i.O&&t.O<=n.O&&a<=s&&o<=r},sf:function(t){var e=this.Yb,i=this.Qb,n=t.Yb,s=(t=t.Qb).P>=e.P&&n.P<=i.P;return t.O>=e.O&&n.O<=i.O&&s},Zg:function(){return new w.U(this.Yb.P>this.Qb.P?(this.Yb.P+this.Qb.P+360)/2%360:(this.Yb.P+this.Qb.P)/2,(this.Yb.O+this.Qb.O)/2)},extend:function(t){return this.Yb.P=Math.min(this.Yb.P,t.P),this.Yb.O=Math.min(this.Yb.O,t.O),this.Qb.P=Math.max(this.Qb.P,t.P),this.Qb.O=Math.max(this.Qb.O,t.O),this},jja:function(t){return this.extend(t.Yb).extend(t.Qb)},toString:function(){return this.Yb.toString()+";"+this.Qb.toString()},vb:function(){return new w.Vd(this.Yb.vb(),this.Qb.vb())},qb:function(t){return t instanceof w.Vd&&this.Yb.qb(t.Yb)&&this.Qb.qb(t.Qb)},Lh:function(){return Math.abs(this.Qb.P-this.Yb.P)},Jh:function(){return Math.abs(this.Yb.O-this.Qb.O)},UM:function(t){var e=[this.pr(),this.Sl(),this.gu(),this.hi()];return t&&e.push(this.pr()),new w.um(e)},Eia:function(t){return new w.Ie(t.bc(this.hi(),20),t.bc(this.Sl(),20))},UJ:function(t,e){return this.UM(e).UJ(t)},RJ:function(t){return this.Eia(t).Zg()}}),w.Vd.Sj({pr:"getSouthWest",gu:"getNorthEast",hi:"getNorthWest",Sl:"getSouthEast",contains:"contains",sf:"intersects",Zg:"getCenter",extend:"extend"}),w.G=w.aa.extend({B:function(t,e,i){if(isNaN(t)||isNaN(e))throw"Invalid Object: Pixel("+t+", "+e+")";this.x=i?Math.round(t):Number(t),this.y=i?Math.round(e):Number(e)},Be:function(){return this.x},Hd:function(){return this.y},add:function(t,e){return new w.G(this.x+t.x,this.y+t.y,e)},Ua:function(t,e){return new w.G(this.x-t.x,this.y-t.y,e)},wc:function(t,e){return new w.G(this.x/t,this.y/t,e)},Vc:function(t,e){return new w.G(this.x*t,this.y*t,e)},Ld:function(t){var e=t.x-this.x;return t=t.y-this.y,Math.sqrt(e*e+t*t)},floor:function(){return new w.G(Math.floor(this.x),Math.floor(this.y))},round:function(){return new w.G(this.x,this.y,!0)},qb:function(t){return t instanceof w.G&&this.x===t.x&&this.y===t.y},vb:function(t){return new w.G(this.x,this.y,t)},toString:function(){return this.x+","+this.y},lk:function(){return[this.x,this.y]},length:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},direction:function(){var t=this.x,e=this.y;if(0===t&&0===e)return null;if(0===t)return 0<e?Math.PI/2:-Math.PI/2;var i=180*Math.atan(e/t)/Math.PI;return t<0&&0<e?i+180:t<0&&e<0?i+180:0<t&&e<0?i+360:i},Qq:function(t){var e=this.length(),i=t.length();return e&&i?180*Math.acos((this.x*t.x+this.y*t.y)/i/e)/Math.PI:null},toFixed:function(t){return this.x=w.a.Sc(this.x,t),this.y=w.a.Sc(this.y,t),this}}),w.G.Sj({Be:"getX",Hd:"getY",add:"add",Ua:"subtract",wc:"divideBy",Vc:"multiplyBy",Ld:"distance",qb:"equals",toString:"toString"}),w.Rc=w.aa.extend({B:function(t,e,i){if(isNaN(t)||isNaN(e))throw"Invalid Object: Size("+t+", "+e+")";this.width=i?Math.round(t):Number(t),this.height=i?Math.round(e):Number(e)},vb:function(){return new w.Rc(this.width,this.height)},Lh:function(){return this.width},Jh:function(){return this.height},uz:function(){return new w.G(this.Lh(),this.Jh())},contains:function(t){return Math.abs(t.x)<=Math.abs(this.width)&&Math.abs(t.y)<=Math.abs(this.height)},qb:function(t){return t instanceof w.Rc&&this.width===t.width&&this.height===t.height},toString:function(){return this.Lh()+","+this.Jh()}}),w.Rc.Sj({Lh:"getWidth",Jh:"getHeight",toString:"toString"}),w.um=w.aa.extend({B:function(t){this.CLASS_NAME="AMap.ArrayBounds",t=w.a.ya(t),this.path=[];for(var e=0;e<t.length;e+=1)this.path.push([t[e].P,t[e].O]);this.bounds=this.md=t},contains:function(t,e){return t instanceof w.um?w.Vp.isRingInRing(t.path,this.path):(t instanceof w.G?t=[t.x,t.y]:t instanceof w.U&&(t=[t.P,t.O]),w.Qc.nd(t,this.path,e))},toBounds:function(){for(var t=new w.Vd(180,90,-180,-90),e=this.md.length-1;0<=e;e-=1)t.extend(this.md[e]);return t},UJ:function(t){for(var e=[],i=0;i<this.path.length;i+=1)e[i]=t.bc(this.path[i],20);return e},RJ:function(t){return this.toBounds().RJ(t)},Zg:function(){return this.toBounds().Zg()}}),w.um.Sj({contains:"contains",Zg:"getCenter"}),w.N_=w.um.extend({B:function(t){if(this.CLASS_NAME="AMap.CoordsBounds",(this.path=t)[0]instanceof w.G){this.path=[];for(var e=0;e<t.length;e+=1)this.path.push([t[e].x,t[e].y])}this.bounds=this.md=t}}),w.Ie=w.aa.extend({B:function(){if(2===arguments.length)this.Lb=arguments[0],this.od=arguments[1];else{if(!(1===arguments.length&&arguments[0]instanceof Array||4===arguments.length))throw"Invalid Object: PixelBounds("+arguments.join(",")+")";var t=arguments[0]instanceof Array?arguments[0]:arguments;this.Lb=new w.G(t[0],t[1]),this.od=new w.G(t[2],t[3])}},Zg:function(t){return new w.G((this.Lb.x+this.od.x)/2,(this.Lb.y+this.od.y)/2,t)},contains:function(t){var e;return t instanceof w.Ie?(e=t.Lb,t=t.od):e=t,e.x>this.Lb.x&&t.x<this.od.x&&e.y>this.Lb.y&&t.y<this.od.y},Lh:function(){return this.od.x-this.Lb.x},Jh:function(){return this.od.y-this.Lb.y},sf:function(t,e){e||0===e||(e=20);var i=this.Lb,n=this.od,s=t.Lb,a=t.od,o=a.y>=i.y-e&&s.y<=n.y+e;return a.x>=i.x-e&&s.x<=n.x+e&&o},toString:function(){return this.Lb+";"+this.od},vb:function(){return new w.Ie(this.Lb.vb(),this.od.vb())}}),w.H={},w.H.HI=function(t){for(var e=[1/0,1/0,-1/0,-1/0],i=0,n=t.length;i<n;i+=1)w.H.OC(e,t[i]);return e},w.H.ST=function(t,e,i){var n=Math.min.apply(null,t);t=Math.max.apply(null,t);var s=Math.min.apply(null,e);return e=Math.max.apply(null,e),w.H.$aa(n,t,s,e,i)},w.H.buffer=function(t,e){t[0]-=e,t[1]-=e,t[2]+=e,t[3]+=e},w.H.vb=function(t){return t.slice()},w.H.nd=function(t,e){return t[0]<=e[0]&&e[0]<=t[2]&&t[1]<=e[1]&&e[1]<=t[3]},w.H.sU=function(t,e){return t[0]<=e[0]&&e[2]<=t[2]&&t[1]<=e[1]&&e[3]<=t[3]},w.H.Ila=function(){return[1/0,1/0,-1/0,-1/0]},w.H.$aa=function(t,e,i,n,s){return void 0!==s?(s[0]=t,s[2]=e,s[1]=i,s[3]=n,s):[t,i,e,n]},w.H.empty=function(t){return t[0]=t[1]=1/0,t[2]=t[3]=-1/0,t},w.H.qb=function(t,e){return t[0]===e[0]&&t[2]===e[2]&&t[1]===e[1]&&t[3]===e[3]},w.H.extend=function(t,e){e[0]<t[0]&&(t[0]=e[0]),e[2]>t[2]&&(t[2]=e[2]),e[1]<t[1]&&(t[1]=e[1]),e[3]>t[3]&&(t[3]=e[3])},w.H.OC=function(t,e){e[0]<t[0]&&(t[0]=e[0]),e[0]>t[2]&&(t[2]=e[0]),e[1]<t[1]&&(t[1]=e[1]),e[1]>t[3]&&(t[3]=e[1])},w.H.gma=function(t){return[t[0],t[1]]},w.H.hma=function(t){return[t[2],t[1]]},w.H.Zg=function(t){return[(t[0]+t[2])/2,(t[1]+t[3])/2]},w.H.pma=function(t,e,i,n,s){var a,o,r,h=e*n[0]/2;for(n=e*n[1]/2,e=Math.cos(i),i=Math.sin(i),h=[-h,-h,h,h],n=[-n,n,-n,n],a=0;a<4;a+=1)o=h[a],r=n[a],h[a]=t[0]+o*e-r*i,n[a]=t[1]+o*i+r*e;return w.H.ST(h,n,s)},w.H.Jh=function(t){return t[3]-t[1]},w.H.Cma=function(t){return[t[2]-t[0],t[3]-t[1]]},w.H.Gma=function(t){return[t[0],t[3]]},w.H.Hma=function(t){return[t[2],t[3]]},w.H.Lh=function(t){return t[2]-t[0]},w.H.sf=function(t,e){return t[0]<=e[2]&&t[2]>=e[0]&&t[1]<=e[3]&&t[3]>=e[1]},w.H.ap=function(t){return t[2]<t[0]||t[3]<t[1]},w.H.normalize=function(t,e){return[(e[0]-t[0])/(t[2]-t[0]),(e[1]-t[1])/(t[3]-t[1])]},w.H.ooa=function(t,e){var i=(t[2]-t[0])/2*(e-1),n=(t[3]-t[1])/2*(e-1);t[0]-=i,t[2]+=i,t[1]-=n,t[3]+=n},w.H.touches=function(t,e){return w.H.sf(t,e)&&(t[0]===e[2]||t[2]===e[0]||t[1]===e[3]||t[3]===e[1])},w.H.transform=function(t,e,i){return e(t=[t[0],t[1],t[0],t[3],t[2],t[1],t[2],t[3]],t,2),w.H.ST([t[0],t[2],t[4],t[6]],[t[1],t[3],t[5],t[7]],i)},w.Vd.ob({B:(ey=w.Vd.prototype.B,function(){ey.apply(this,arguments),this.southwest=this.Yb,this.northeast=this.Qb}),extend:(fy=w.Vd.prototype.extend,function(){return fy.apply(this,arguments),this.Yb.lng=this.Yb.P,this.Yb.lat=this.Yb.O,this.Qb.lng=this.Qb.P,this.Qb.lat=this.Qb.O,this})}),w.U.ob({B:(gy=w.U.prototype.B,function(){gy.apply(this,arguments),this.lng=parseFloat(this.P.toFixed(6)),this.lat=parseFloat(this.O.toFixed(6))})}),w.bA=w.aa.extend({B:function(t,e,i,n){this.AO=t,this.OO=e,this.$O=i,this.sP=n},transform:function(t,e){return this.kT(t.vb(),e)},kT:function(t,e){return e=e||1,t.x=e*(this.AO*t.x+this.OO),t.y=e*(this.$O*t.y+this.sP),t},lja:function(t,e){return e=e||1,new w.G((t.x/e-this.OO)/this.AO,(t.y/e-this.sP)/this.$O)}}),w.xm=w.aa.extend({B:function(t){this.hF=t.MAX_LATITUDE||85.0511287798,t.project&&t.unproject&&(this.bc=t.project,this.Dg=t.unproject)}}),w.xm.YN={bc:function(t){return new w.G(t.P,t.O)},Dg:function(t,e){return new w.U(t.x,t.y,e)}},w.xm.H0=new w.xm({MAX_LATITUDE:85.0511287798,project:function(t){var e=Math.PI/180,i=this.hF;return i=Math.max(Math.min(i,t.O),-i),t=t.P*e,e=Math.log(Math.tan(Math.PI/4+i*e/2)),new w.G(t,e,!1)},unproject:function(t,e){var i=180/Math.PI;return new w.U(t.x*i,(2*Math.atan(Math.exp(t.y))-Math.PI/2)*i,e)}}),w.xm.$N={hF:85.0840591556,nF:6356752.3142,mF:6378137,bc:function(t){var e=Math.PI/180,i=this.hF,n=Math.max(Math.min(i,t.O),-i),s=this.mF;return i=this.nF,t=t.P*e*s,e*=n,s=i/s,n=(s=Math.sqrt(1-s*s))*Math.sin(e),n=Math.pow((1-n)/(1+n),.5*s),e=Math.tan(.5*(.5*Math.PI-e))/n,e=-i*Math.log(e),new w.G(t,e)},Dg:function(t,e){for(var i=180/Math.PI,n=this.mF,s=this.nF,a=t.x*i/n,o=(n=s/n,n=Math.sqrt(1-n*n),s=Math.exp(-t.y/s),Math.PI/2-2*Math.atan(s)),r=15,h=.1;1e-7<Math.abs(h)&&0<(r-=1);)h=n*Math.sin(o),o+=h=Math.PI/2-2*Math.atan(s*Math.pow((1-h)/(1+h),.5*n))-o;return new w.U(a,o*i,e)}},w.Fg={},w.Fg.Mz={Fy:function(t,e){var i=this.ef.bc(t),n=this.scale(e);return this.xz.kT(i,n)},Wy:function(t,e,i){return e=this.scale(e),t=this.xz.lja(t,e),this.ef.Dg(t,i)},bc:function(t){return this.ef.bc(t)},scale:function(t){return 256<<t},kK:function(t){return 12756274*Math.PI/(256*Math.pow(2,t))}},w.Fg.aF=w.extend({},w.Fg.Mz,{code:"EPSG:3857",ef:w.xm.H0,xz:new w.bA(.5/Math.PI,.5,-.5/Math.PI,.5),bc:function(t){return this.ef.bc(t).Vc(6378137)}}),w.Fg.JN=w.extend({},w.Fg.Mz,{code:"EPSG:3395",ef:w.xm.$N,xz:($y=w.xm.$N,new w.bA(.5/(Math.PI*$y.mF),.5,-.5/(Math.PI*$y.nF),.5))}),w.Fg.KN=w.extend({},w.Fg.Mz,{code:"EPSG:4326",ef:w.xm.YN,xz:new w.bA(1/360,.5,-1/360,.25)}),w.Fg.oka=w.extend({},w.Fg.Mz,{ef:w.xm.YN,xz:new w.bA(1,0,1,0)}),w.BD={bc:function(t,e){return t=w.a.ya(t),this.cn.Fy(t,e||this.get("zoom"))},Dg:function(t,e,i){return this.cn.Wy(t,e||this.get("zoom"),i)},$ma:function(t,e){return this.bc(t,e)},ema:function(t,e){return this.Dg(t,e)},Fo:function(t,e,i){var n=this.get("size").uz().wc(2);return t.qb(n)&&!i?this.get("center"):(t=this.of(t,e,i),this.qe(t))},ip:function(t,e){var i=0;e&&(i="string"==typeof e?Math.round(parseFloat(e)/.14929107086948487):e);var n=this.Fb(t);return this.Ee(n,null,i)},vU:function(t){return this.qe(t.wc(this.get("resolution",20)))},Fb:function(t){return t=w.a.ya(t),this.bc(t,20)},qe:function(t){return t?this.Dg(t,20):t},$K:function(t){return t=w.a.ya(t),this.bc(t,20).Ua(w.a.fc)},mca:function(t){return this.Dg(t.add(w.a.fc),20)},fma:function(t){return this.Ee(t.add(w.a.fc))},oea:function(t,e,i){return t=w.a.ya(t),this.Fb(t).Vc(i||this.get("resolution",20))},kma:function(t){return t?this.bc(this.get("center"),t):this.get("centerPixel")},yka:function(t){return new w.G(t.x+20037508.342789244,20037508.342789244-t.y).wc(.14929107086948487)},MX:function(t){return new w.G(.14929107086948487*t.x-20037508.342789244,20037508.342789244-.14929107086948487*t.y)},xka:function(t){return this.vU(new w.G(t.x+20037508.342789244,20037508.342789244-t.y),20)},ana:function(t){return t=this.oea(w.a.ya(t),20),new w.G(t.x-20037508.342789244,20037508.342789244-t.y)}},$.cA=w.aa.extend({ga:[w.ka,w.te],F:{center:new w.U(116.397128,39.916527),zoom:13,rotation:0,crs:"EPSG3857"},B:function(t){this.CLASS_NAME="AMap.View2D",w.e.eb("AMap.View2D",t),(t=t||{}).center&&(t.center=w.a.ya(t.center)),this.F=t}}),$.Ob=w.aa.extend({ga:[w.ka,w.te,w.BD],F:{features:"all",showLabel:!0,dragEnable:!0,showIndoorMap:!w.l.Y,lang:"zh_cn",keyboardEnable:!0,doubleClickZoom:!0,gridMapForeign:!1,scrollWheel:!0,zoomEnable:!0,jogEnable:!0,continuousZoomEnable:!0,resizeEnable:!1,animateEnable:!0,rotateEnable:!1,labelzIndex:99,showFog:!0,touchZoom:!0,zooms:[3,w.l.Y?w.l.qd?19:20:18],defaultCursor:"",limitBounds:null,logoUrl:w.A.ub+"/theme/v1.3/logo@1x.png",logoUrlRetina:w.A.ub+"/theme/v1.3/logo@2x.png",copyright:"\x3c!--v1.4.6--\x3e &copy "+(new Date).getFullYear()+" AutoNavi ",isHotspot:!w.l.Y,baseRender:w.l.J$,overlayRender:w.l.Jfa,mapStyle:"normal",showBuildingBlock:w.l.Je,crs:"EPSG3857",rotation:0,pitch:0,yaw:0,scale:1,center:new w.U(116.397128,39.916527),zoom:13,detectRetina:!0,pitchEnable:!1,buildingAnimation:!1,maxPitch:83,turboMode:!0,preloadMode:!0,workerMode:!0},poiOnAMAP:function(t){w.e.add(this.CLASS_NAME,"poiOnAMAP");var e={},i=w.a.ya(t.location);e.id=t.id,i&&(e.y=i.O,e.x=i.P),e.name=t.name,e.address=t.address,w.Gg.Dp(w.Gg.IV(e))},detailOnAMAP:function(t){w.e.add(this.CLASS_NAME,"detailOnAMAP");var e={},i=w.a.ya(t.location);e.id=t.id,i&&(e.y=i.O,e.x=i.P),e.name=t.name,w.Gg.Dp(w.Gg.GV(e))},setLabelzIndex:function(t){return this.set("labelzIndex",t)},getLabelzIndex:function(){return this.get("labelzIndex",null,!0)},setMapStyle:function(t){w.e.add(this.CLASS_NAME,"setMapStyle",t),-1===t.indexOf("amap://styles/")?(this.set("styleUrl","",!0),this.set("mapStyle",t)):this.set("styleUrl",t),this.fL()},getMapStyle:function(){return w.e.add(this.CLASS_NAME,"getMapStyle"),this.get("styleUrl")||this.get("mapStyle",null,!0)},getFeatures:function(){return w.e.add(this.CLASS_NAME,"getFeatures"),this.get("features",null,!0)},setFeatures:function(t){w.e.add(this.CLASS_NAME,"setFeatures"),this.set("features",t)},setLang:function(t){w.e.add(this.CLASS_NAME,"setLang",t),"en"!==t&&"zh_cn"!==t&&"zh_en"!==t||t===this.getLang()||(this.set("lang",t),this.Wl&&this.Wl.JY(this))},getLang:function(){return w.e.add(this.CLASS_NAME,"getLang"),this.get("lang",null,!0)},setCity:function(s,a){w.e.add(this.CLASS_NAME,"setCity");var o=this;new w.Sa.fb(w.A.sd+"/v3/config/district?subdistrict=0&extensions=all&key="+w.A.key+"&s=rsv3&output=json&keywords="+s,{callback:"callback"}).h("complete",function(t){var e=t.districts;if(e&&e.length){t=e[0],/[^\w]+/.test(s)&&(e=w.a.find(e,function(t){return t.name===s}))&&e!==t&&(t=e);try{var i,n=t.center.split(",");switch(t.level){case"city":i=10;break;case"province":i=7;break;case"district":i=12;break;case"country":i=4;break;default:i=12}-1!==t.name.indexOf("市")&&(i=10),o.setZoomAndCenter(i,new w.U(n[0],n[1]),!0),a&&a.call(o,n,i)}catch(t){}}},this)},getScreenShot:function(t,e){return this.map&&w.l.am?this.map.OV(t,e):""},getCity:function(e,t){w.e.add(this.CLASS_NAME,"getCity");var i=w.A.sd+"/v3/geocode/regeo?&extensions=&&key="+w.A.key+"&s=rsv3&output=json&location="+(t||this.get("center",null,!0));new w.Sa.fb(i,{callback:"callback",Jt:!0,Wc:"REGEO"}).h("complete",function(t){t=t.regeocode.addressComponent,e({province:t.province,city:t.city instanceof Array?"":t.city,citycode:t.citycode instanceof Array?"":t.citycode,district:t.district instanceof Array?"":t.district})},this)},B:function(i,t){if(this.id=w.a.Jb(this),this.CLASS_NAME="AMap.Map",w.e.eb("AMap.Map",t),(t=t||{}).mapStyle&&-1!==t.mapStyle.indexOf("amap://styles/")&&(t.styleUrl=t.mapStyle,delete t.mapStyle),t.bgColor&&w.extend(w.A.vd,t.bgColor),t.maxPitch&&(t.maxPitch=Math.min(this.F.maxPitch,Math.max(t.maxPitch,0))),t.pitch&&(t.pitch=Math.min(t.maxPitch||this.F.maxPitch,Math.max(t.pitch,0))),"3D"!==t.viewMode&&(t.pitch=0),w.A.pC=t.buildingColor||null,t.mobile&&(w.l.Y=!0),t.noPoi&&(w.A.$ea=!0),t.editEnable&&(t.nolimg=1,t.showIndoorMap=!1),"3D"===t.viewMode&&w.l.rm&&void 0===t.showBuildingBlock&&t.showBuildingBlock,this.vn=!t.disableSocket&&w.l.vn,t.server&&(w.A.sd=t.server),t.vdataUrl&&(w.A.vv=t.vdataUrl),"string"==typeof i){if(!(i=this.K=document.getElementById(i)))return}else"DIV"===i.tagName&&(this.K=i);this.K.GF&&this.K.GF.destroy(),w.Yd.ue.start({id:this.id,K:this.K});var e=(this.K.GF=this).F.zooms[1],n=this.F.zooms[0];t.zooms?(t.zooms[0]=Math.max(n,t.zooms[0]),!0===t.expandZoomRange&&(e=w.l.Y&&w.l.qd?19:20),t.zooms[1]=Math.min(e,t.zooms[1])):t.zooms=[n,e],t.forceZooms&&(t.zooms=t.forceZooms),t=this.eaa(t),e=this.getSize(!0),t.center&&(t.center=w.a.ya(t.center)),this.cn=this.aba(t.crs||this.F.crs,t.center||this.F.center),this.D$(e,t),"en"!==(n=t.lang)&&"zh_cn"!==n&&"zh_en"!==n&&(t.lang="zh_cn"),w.j.jf||(t.rotation=0,t.pitch=0,t.rotateEnable=!1),w.l.Br?!1!==t.workerMode&&($.Ob.dq?(t.workerMode=!1,$.Ob.dq++):$.Ob.dq=1):(t.workerMode=!1,t.preloadMode=!1),t.layers&&(n=t.layers,delete t.layers,t.layers=n),w.a.Bb(this,t),this.Qf(this.F),"rotateEnable"in t||"3D"!==t.viewMode||!w.l.rm||this.set("rotateEnable",!0),"pitchEnable"in t||"3D"!==t.viewMode||!w.l.rm||this.set("pitchEnable",!0),t.forceVector&&(w.l.Je?this.set("baseRender","vw"):this.set("baseRender","v")),t.disableVector&&this.set("baseRender","d"),"dom"===t.renderer&&(this.set("baseRender","d"),this.set("overlayRender","d")),t.baseRender&&this.set("baseRender",t.baseRender),e=Math.max(e.width,e.height),w.l.ja&&(e*=Math.min(2,window.devicePixelRatio||1)),"vw"===this.get("baseRender")&&e>w.l.Hea&&this.set("baseRender","dv"),(e=this.get("zoom",null,!0))>(n=this.get("zooms"))[1]?e=n[1]:e<n[0]&&(e=n[0]),this.set("zoom",e),this.F.zoom=e,this.bba(this.F),this.UI();var s=this;this.Qf({overlays:[],infos:{},controls:{}});var a=[];t.gridMapForeign&&a.push("gridmap"),t.forceVector&&(a.push("vectorlayer"),a.push("overlay")),"3D"===t.viewMode&&w.l.rm&&a.push("Map3D"),t.editEnable&&(a.push("edit"),a.push("labelDir")),w.l.am&&(a.push("AMap.IndoorMap"),-1!==a.indexOf("Map3D")&&a.push("AMap.IndoorMap3D")),this.ja=w.l.ja&&this.get("detectRetina"),this.k_(t),this.xea(function(){w.hb.eg(a,function(){if(!s.get("destroy")){var t=new w.Ob(i,s);if(w.Lc){var e=(w.Lc[0]||w.Lc).stylemaps["50001:1"].browserStyle[0].split("&");t.iA=[e[0],e[4]]}t.he("zoom center centerCoords rotation yaw pitch resolution".split(" "),s.view,!0),t.h("complete",function(){this.r("complete")},s,!0),t.cn=s.cn,s.he(["zoomSlow","panTo","targetLevel","render"],t),t.he(["size","bounds"],s),s.loaded=!0,s.r("coreMapCreated"),w.l.am&&s.g$(),"3D"===s.getViewMode_()&&(s.AmbientLight||(s.AmbientLight=new w.Fs.AN([1,1,1],.9)),s.DirectionLight||(s.DirectionLight=new w.Fs.IN([0,-1,1],[1,1,1],.1)))}})})},xea:function(a){function b(){var a=AMap.anole,b={},c=[],d=0,e=void 0;if(a){for(var a=a.replace(/\?/g,":").replace(/\//g,"&"),e=a.split(""),g=0,q=e.length;g<q;g++)void 0===b[e[g]]&&(b[e[g]]=d++,c.push(e[g]));c.reverse(),a=a.replace(/./g,function(t){return c[b[t]]}),w.Lc=eval(a),delete AMap.anole}}if(w.l.ae||w.Lc)a();else{var c=!0;try{var d=JSON.parse(localStorage.getItem("_AMap_anole"));d&&d.version===w.l.Ud&&d.script?eval(d.script):c=!1}catch(t){c=!1}if(c)b(),a();else{var g=document.createElement("script");g.Kla="anonymous",g.id="amap_anole_js",g.src=w.A.Rb+"://vdata.amap.com/style?v="+w.A.Gq+"&key="+w.A.key+"&mapstyle=normal",c=document,(c.head||c.getElementsByTagName("head")[0]||c.body).appendChild(g),g.onload=function(){if(!w.Lc){if(w.l.bj){var t={version:w.l.Ud,script:"AMap['anole']="+JSON.stringify(AMap.anole)};localStorage.setItem("_AMap_anole",JSON.stringify(t))}b()}a(),g.parentNode.removeChild(g)}}}},getViewMode_:function(){return this.view.type},rca:function(t,e,i){var n=new w.U(t[4],t[5]);if((t=new w.Vd(t[0],t[1],t[2],t[3]))&&e&&n){for(var s=i[1];s>i[0];s-=1){var a=this.bc(t.Yb,s),o=this.bc(t.Qb,s);if(Math.abs(o.x-a.x)<e.width&&Math.abs(a.y-o.y)<e.height)break}return[n,Math.min(s+1,i[1])]}return null},D$:function(t,e){if(!(e&&e.center&&e.zoom)){var i=this.rca(w.A.md,t,e.zooms);e.center=e.center||i&&i[0],"number"!=typeof e.zoom&&(e.zoom=i&&i[1])}},aba:function(t,e){if(e instanceof w.U){if("string"==typeof t){switch(t){case"EPSG3395":return w.Fg.JN;case"EPSG4326":return w.Fg.KN}return w.Fg.aF}if(t.pointToLngLat&&t.lngLatToPoint)return{Wy:t.pointToLngLat,Fy:t.lngLatToPoint,kK:t.getResolution};throw"illegal projection"}var i=this.get("zoom",null,!0);return{kK:function(t){return Math.pow(2,i-t)},Fy:function(){},Wy:function(){}}},$ha:function(i,a){this.Ns&&this.Ns.stop();var t,e=["pitch","rotation","zoom","center"],o={},n=!1;for(t in i)if(i.hasOwnProperty(t)&&-1!==w.a.indexOf(e,t)){var s=this.get(t);void 0===s||s===i[t]||s.qb&&s.qb(i[t])||(o[t]=this.get(t),n=!0)}n&&(this.Ns=new w.yi(o,i,null,0),this.Ns.transition=function(t,e,i){if(1<=(i/=a||300))return e;var n,s={};for(n in o)o.hasOwnProperty(n)&&(s[n]="center"===n?t[n].add(e[n].Ua(t[n]).Vc(i)):t[n]+(e[n]-t[n])*i);return s},this.Ns.An=function(t){for(var e in t===i&&(this.Ns.stop(),this.Xc=null),t)t.hasOwnProperty(e)&&("center"===e?this.setCenter(t[e],!0):this.set(e,t[e]))},this.Ns.il(this))},bba:function(t){"3D"===this.get("viewMode")&&w.l.rm?(this.set("baseRender","vw"),this.view=new w.nO(this,t)):this.view=new w.cA(this,t),this.lW()},lW:function(){this.dh="d"<this.get("baseRender")||"3D"===this.view.type},featuresChanged:function(){this.UI()},fL:function(){this.UI(),this.BM()},BM:function(){if(this.Wk){var t,e=!0,i=this.getMapStyle();for(t in(!1===this.get("showIndoorMap")||"normal"!==i&&"amap://styles/normal"!==i)&&(e=!1),i=this.getLayers())i.hasOwnProperty(t)&&"AMap.IndoorMap"===i[t].CLASS_NAME&&i[t]!==this.Wk&&(e=!1);this.Wk.getMap()!==this&&this.Wk.setMap(this),this.Wk.set("visible",e)}},UI:function(){if(this.k_(),this.view&&"3D"!==this.view.type){var t=this.get("baseRender");if(t&&!("dv"<t)){var e=this.get("features",null,!0),i=this.getMapStyle(),n=this.get("editEnable");e&&i&&(w.l.Fx&&(n||"all"!==e||"normal"!==i&&"amap://styles/normal"!==i)?(this.set("baseRender","v"),this.DL=t):this.DL&&(this.set("baseRender",this.DL),this.DL=null)),this.lW()}}},g$:function(){var t=this;!t.Wk&&t.K&&(t.indoorMap=t.Wk=new AMap.IndoorMap({innerLayer:!0}),t.BM(),w.a.pc(function(){t.r("indoor_create",{target:t}),t.set("display")}))},layersChanged:function(){var t=this.getLayers();this.ID=!1;for(var e=0;e<t.length;e+=1)t[e].getMap()!==this&&t[e].setMap(this),t[e].ID&&(this.ID=!0);this.BM()},getMapNumber:function(){if(this.map)return this.map.az()},getAdcode:function(){return w.e.add(this.CLASS_NAME,"getAdcode"),w.A.e$},k_:function(){if(!this.mY){var t=this,e=(s=!1,w.a.Pb(t.F.layers,function(t){if(!t.GQ&&t.constructor===$.w.Xa)return!(s=!0)},t),(w.a.ga(["d","dv"],t.get("baseRender"))||!w.a.ga(["normal","amap://styles/normal"],t.get("mapStyle"))||"3D"===t.get("viewMode")&&0<t.get("pitch")||"all"!==t.get("features")||t.get("editEnable")||!t.get("turboMode"))&&(s=!1),s),i=this.get("rasterLayer");if(i&&!e)this.fk(i),this.set("rasterLayer",void 0);else if(!i&&e&&this.get("layers")){if(i=new $.w.Xa({map:this,oi:!0,zIndex:0}),this.F.layers){var n=null;w.a.Pb(this.F.layers,function(t){t instanceof $.w.Xa&&!t.GQ&&(null===n||t.get("zIndex")>n.get("zIndex"))&&(n=t)}),n&&i.he(["zIndex","opacity","zooms","visible"],n)}this.set("rasterLayer",i,!0)}}var s},eaa:function(t){if(t||(t={}),t.hasOwnProperty("defaultLayer")){t.layers=[t.defaultLayer];var e=t.defaultLayer;e.wI=!0,this.set("defaultLayer",e,!0)}return t.layers&&0!==t.layers.length||(e=new $.w.Xa,t.layers=[e],e.wI=!0,this.set("defaultLayer",e,!0)),(e=t.view)&&(e.F.rotation&&(t.rotation=e.F.rotation),e.F.center&&(t.center=e.F.center),e.F.zoom&&(t.zoom=Math.max(t.zooms[0],Math.min(t.zooms[1],e.F.zoom))),e.F.crs&&(t.crs=e.F.crs)),t.level&&!t.zoom&&(t.zoom=t.level),t},setLimitBounds:function(t){w.e.add(this.CLASS_NAME,"setLimitBounds"),t instanceof w.um&&(t=t.toBounds()),t instanceof w.Vd||(t=null),this.set("limitBounds",t)},clearLimitBounds:function(){w.e.add(this.CLASS_NAME,"clearLimitBounds"),this.set("limitBounds",null)},getLimitBounds:function(){return w.e.add(this.CLASS_NAME,"getLimitBounds"),this.get("limitBounds",null,!0)},aC:function(t){var e=this.get("layers");0<=w.a.indexOf(e,t)||(e.push(t),this.set("layers",e))},ux:function(t){var e=this.get("overlays");0<=w.a.indexOf(e,t)||(t instanceof $.D.pl?(this.get("overlays").push(t),this.zC instanceof $.D.pl&&this.zC.close(),this.zC=t,this.set("contextmenu",t,!0)):(t instanceof $.D.fe&&(this.Yl instanceof $.D.fe&&this.Qu(this.Yl),this.Yl=t),this.get("overlays").push(t)),this.r("overlays"))},fk:function(t){var e=this.get("layers");-1!==(t=w.a.indexOf(e,t))&&this.set("layers",w.a.Nl(e,t))},Qu:function(t){var e=this.get("overlays");this.set("overlays",w.a.Nl(e,w.a.indexOf(e,t)))},setZoom:function(t,e){w.e.add(this.CLASS_NAME,"setZoom"),t=this.ay(t);var i=this.get("zooms");t>i[1]&&(t=i[1]),t<i[0]&&(t=i[0]),this.get("zoomEnable")&&(e||!this.loaded?(this.set("zoom",t),this.r("zoomstart"),this.r("zoomchange"),this.r("zoomend")):this.set("zoomSlow",t))},getZoom:function(){return w.e.add(this.CLASS_NAME,"getZoom"),this.ay(this.get("targetLevel")||this.get("zoom",null,!0))},getCenter:function(){return w.e.add(this.CLASS_NAME,"getCenter"),this.get("center",null,!0)},setCenter:function(t,e){w.e.add(this.CLASS_NAME,"setCenter"),t=w.a.ya(t),e||!this.loaded?(this.r("movestart"),this.set("center",t),this.r("mapmove"),this.map?this.map.r("moveend"):this.r("moveend")):this.panTo(t)},getCoordsBound:function(){return this.view.Uk()},getCoordsBoundByZoom:function(t){return this.view.oca(t)},setRotation:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0;w.e.add(this.CLASS_NAME,"setRotation"),!w.l.ae&&this.get("rotateEnable")&&this.set("rotation",t)},getRotation:function(){return w.e.add(this.CLASS_NAME,"getRotation"),this.get("rotation")},setPitch:function(t){t=Math.min(this.get("maxPitch"),Math.max(t,0)),w.e.add(this.CLASS_NAME,"setPitch"),"3D"===this.view.type&&this.get("pitchEnable")&&this.set("pitch",t)},getPitch:function(){return w.e.add(this.CLASS_NAME,"getRotation"),"3D"===this.view.type?this.get("pitch"):0},getStatus:function(){w.e.add(this.CLASS_NAME,"getStatus");for(var t="isHotspot pitchEnable dragEnable zoomEnable keyboardEnable jogEnable doubleClickZoom scrollWheel resizeEnable touchZoom rotateEnable animateEnable".split(" "),e={},i=0;i<t.length;i+=1)e[t[i]]=this.get(t[i],null,!0);return e},setStatus:function(t){for(var e in w.e.add(this.CLASS_NAME,"setStatus"),t)t.hasOwnProperty(e)&&-1!=="isHotspot,pitchEnable,dragEnable,keyboardEnable,doubleClickZoom,scrollWheel,zoomEnable,jogEnable,continuousZoomEnable,resizeEnable,animateEnable,rotateEnable,touchZoom".indexOf(e)&&this.set(e,t[e])},getResolution:function(t,e){w.e.add(this.CLASS_NAME,"getResolution");var i=(t=w.a.ya(t))?t.O:this.get("center",null,!0).O;return this.cn.kK(e||this.get("zoom"))*Math.cos(i*Math.PI/180)},getScale:function(t){return w.e.add(this.CLASS_NAME,"getScale"),this.getResolution()*(t||96)/.0254},getDefaultCursor:function(){return w.e.add(this.CLASS_NAME,"getDefaultCursor"),this.get("defaultCursor",null,!0)||"url("+w.A.ub+"/theme/v1.3/openhand.cur),default"},setDefaultCursor:function(t){return w.e.add(this.CLASS_NAME,"setDefaultCursor"),this.set("defaultCursor",t,!0)},zoomIn:function(t){w.e.add(this.CLASS_NAME,"zoomIn"),this.setZoom(this.getZoom()+1,t)},zoomOut:function(t){w.e.add(this.CLASS_NAME,"zoomOut"),this.setZoom(this.getZoom()-1,t)},ay:function(t){return this.view&&"3D"===this.view.type?w.a.Sc(t,4):Math.round(t)},setZoomAndCenter:function(t,e,i){w.e.add(this.CLASS_NAME,"setZoomAndCenter"),e=w.a.ya(e),t=this.ay(t);var n=this.get("zooms");t>n[1]&&(t=n[1]),t<n[0]&&(t=n[0]),this.loaded?this.set("zoomAndCenter",[t,e,i]):(this.setZoom(t,!0),this.setCenter(e,!0))},clearMap:function(){w.e.add(this.CLASS_NAME,"clearMap");for(var t=this.get("overlays"),e=0;e<t.length;e+=1)t[e].set("map",null,!0);if(this.set("overlays",[]),this.map&&this.map.$a)for(e=(t=this.map.$a).length-1;0<=e;e-=1)t[e].fa instanceof $.w.bF&&t[e].fa.setMap(null)},destroy:function(){w.e.add(this.CLASS_NAME,"destroy"),this.Wk&&(this.Wk.setMap(),this.indoorMap=this.Wk=null),this.set("overlays",[]),this.set("layers",[]);var t=this.get("controls");for(var e in t.remove=[],t.Fc)t.Fc.hasOwnProperty(e)&&t.remove.push(t.Fc[e]);t.Fc=[],t.add=[],this.set("controls",t),this.set("destroy",!0),this.ta=!1,this.Qn(),this.K=null,$.Ob.dq--},addControl:function(t){w.e.add(this.CLASS_NAME,"addControl");var e=w.a.Jb(t),i=this.get("controls")||{};i.Fc=i.Fc||{},i.Fc[e]||(i.Fc[e]=t),i.add=i.add||[],i.add.push(t),this.set("controls",i)},removeControl:function(t){w.e.add(this.CLASS_NAME,"removeControl");var e=w.a.Jb(t),i=this.get("controls")||{};i.Fc=i.Fc||{},i.Fc[e]&&delete i.Fc[e],i.remove=i.remove||[],i.remove.push(t),this.set("controls",i)},clearControl:function(){w.e.add(this.CLASS_NAME,"clearControl");var t=this.get("controls")||{};for(var e in t.remove=t.remove||[],t.Fc=t.Fc||{},t.Fc)t.Fc.hasOwnProperty(e)&&(t.remove.push(t.Fc[e]),delete t.Fc[e]);this.set("controls",t)},plugin:function(t,e){return"string"==typeof t&&(t=[t]),w.hb.eg(t,e),this},clearInfoWindow:function(){w.e.add(this.CLASS_NAME,"clearInfoWindow");var t=this.get("overlays");t&&0!==t.length&&this.Yl&&this.Yl.close()},remove:function(t){w.e.add(this.CLASS_NAME,"remove"),t instanceof Array||(t=[t]);for(var e=0;e<t.length;e+=1){var i=t[e];i.getMap&&i.getMap()===this&&(i.close?i.close():i.setMap&&i.setMap(null))}},add:function(t){w.e.add(this.CLASS_NAME,"add"),t instanceof Array||(t=[t]);for(var e=0;e<t.length;e+=1){var i=t[e];i.getMap&&i.getMap()!==this&&!i.open&&i.setMap&&i.setMap(this)}},getAllOverlays:function(t,e){w.e.add(this.CLASS_NAME,"getAllOverlays");var i=this.get("overlays");if(t){for(var n="amap."+t.toLowerCase(),s=[],a=0;a<i.length;a+=1)n!==i[a].CLASS_NAME.toLowerCase()||!e&&(i[a].la||i[a].isOfficial)||s.push(i[a]);return s}if(!e){for(s=[],a=0;a<i.length;a+=1)i[a].la||i[a].isOfficial||s.push(i[a]);i=s}if(s=[],n=this.get("layers")){a=0;for(var o=n.length;a<o;a+=1)n[a]instanceof $.w.bF&&s.push(n[a])}return i.concat(s)},triggerResize:function(){this.map&&this.map.OH()},refreshSize:function(){this.sA=this.uca()},uca:function(){return w.j.oV(this.K)},getSize:function(t){return t||w.e.add(this.CLASS_NAME,"getSize"),(!this.sA||this.sA.width*this.sA.height<10)&&this.refreshSize(),this.sA},getContainer:function(){return w.e.add(this.CLASS_NAME,"getContainer"),this.K},panTo:function(t){w.e.add(this.CLASS_NAME,"panTo"),t=w.a.ya(t),this.loaded?this.set("panTo",t):this.setCenter(t)},panBy:function(t,e,i){w.e.add(this.CLASS_NAME,"panBy");var n=this.get("rotation")*Math.PI/180,s=t*Math.cos(n)+Math.sin(n)*e;t=-Math.sin(n)*t+Math.cos(n)*e,e=this.loaded&&this.map&&this.map.Xc?this.map.Xc.EZ:this.get("centerCoords"),n=Math.pow(2,20-this.getZoom()),s=e.add(new w.G(-s*n,-t*n)),s=this.qe(s),!this.loaded||i?this.setCenter(s,i):this.set("panTo",s)},setFitView:function(t,e,i,n){w.e.add(this.CLASS_NAME,"setFitView");var s=this.get("size"),a=s.height;return!s.width||!a||((t=this.EV(t))?((i=this.WC(t,0,new w.G(40,40),i,n))&&(e=e||!this.getBounds().contains(t.Zg())||w.l.Y&&1<Math.abs(i[0]+this.get("zoom",null,!0)),this.setZoomAndCenter(i[0],i[1],e)),t):void 0)},EV:function(t){if(t){if(t instanceof $.D.Lg)t=[t];else if(!(t instanceof Array))return null}else t=this.getAllOverlays();if(t){for(var e,i=0;i<t.length;i+=1){var n=t[i];!n.get("visible")||n instanceof $.D.fe||n instanceof $.D.pl||(n=n.getBounds())&&(e=e?n.jja(e):n)}return e}},getBounds:function(t){w.e.add(this.CLASS_NAME,"getBounds");var e=this.view.Tc();return t&&e.toBounds?e.toBounds():e},setBounds:function(t,e,i,n,s,a){return w.e.add(this.CLASS_NAME,"setBounds"),i=this.WC(t,e,i,s,a),n=n||w.l.Y&&1<Math.abs(i[0]+e-this.get("zoom",null,!0)),this.setZoomAndCenter(i[0],i[1],n),t},uV:function(t,e,i,n,s){return t=this.EV(t),this.WC(t,e,i,n,s)},WC:function(t,e,i,n,s){e=e?Number(e):0;var a=this.getRotation(),o=this.getPitch(),r=this.getSize(!0).vb(),h=this.getViewMode_(),l=t.RJ(this);t=t.UJ(this),this.zx||(this.zx="3D"===h?new w.nO:new w.cA),this.zx.Qf({size:r,zoom:3,rotation:a,pitch:o,centerCoords:l},!0);var c=o=0;n?(c=n[0],i=n[1],o=n[2],n=n[3],r.width-=o+n,r.height-=c+i,o=(o-n)/2,c=(c-i)/2):i&&(r.width-=2*i.x,r.height-=2*i.y),s=s||(w.l.Y?17:18),n=(i=this.get("zooms"))[0];var u=1/0,f=1/0;do{this.zx.Qf({zoom:n},!0),"3D"===h&&this.zx.Jp(),f=u=1/0;for(var d=-1/0,p=-1/0,g=0;g<t.length;g+=1){var m=this.zx.Ee(t[g]);u=Math.min(u,m.x),d=Math.max(d,m.x),f=Math.min(f,m.y),p=Math.max(p,m.y)}if(f=p-f,(u=d-u)>r.width||f>r.height){n-=1;break}n+=1}while(n<i[1]);return n=Math.min(i[1],s,Math.max(i[0],n+e)),n=Math.floor(n),e=Math.pow(2,20-n),s=a*Math.PI/180,a=o*Math.cos(s)+Math.sin(s)*c,s=-Math.sin(s)*o+Math.cos(s)*c,l=l.Ua(new w.G(a*e,s*e)),[n,l=this.Dg(l,20)]},setLayers:function(t){w.e.add(this.CLASS_NAME,"setLayers");for(var e=0;e<t.length;e+=1)t[e].set("map",this,!0);this.set("layers",t)},getLayers:function(){return w.e.add(this.CLASS_NAME,"getLayers"),this.get("layers",null,!0)},getDefaultLayer:function(){return w.e.add(this.CLASS_NAME,"getDefaultLayer"),this.get("defaultLayer",null,!0)},setDefaultLayer:function(t){w.e.add(this.CLASS_NAME,"setDefaultLayer"),t.wI=!0;var e=this.get("defaultLayer"),i=this.get("layers");if(e){if(t===e)return;e.wI=!1,i=w.a.Nl(i,w.a.indexOf(i,e))}this.set("defaultLayer",t,!0),i.push(t),this.setLayers(i)},pixelToLngLat:function(t,e){return w.e.add(this.CLASS_NAME,"pixelToLngLat"),this.Dg(t,e)},lnglatToPixel:function(t,e){return w.e.add(this.CLASS_NAME,"lnglatToPixel"),this.bc(t,e)},drawPolyline:function(t){w.e.add(this.CLASS_NAME,"drawPolyline"),this.set("draw","polyline"),this.set("drawStyle",t||{strokeColor:"#006600",Va:.9})},render:function(t){this.map&&this.map.set("display",t?1:0)},drawPolygon:function(t){w.e.add(this.CLASS_NAME,"drawPolygon"),this.set("draw","polygon"),this.set("drawStyle",t||{strokeColor:"#006600",Va:.9,fillColor:"#FFAA00",xd:.9})},drawCircle:function(t){w.e.add(this.CLASS_NAME,"drawCircle"),this.set("draw","circle"),this.set("drawStyle",t||{strokeColor:"#006600",Va:.9,fillColor:"#006600",xd:.9})},cD:function(){return this.view.cD()},getCameraState:function(){if(this.view&&"3D"==this.view.type)return this.view.nV()},endDraw:function(){this.set("draw",null)},isGoogleTileVisible:function(){return this.map&&this.map.OG()},Ee:function(t,e,i){return this.view.Ee(t,e,i)},of:function(t,e,i){return this.view.of(t,e,i)},getObject3DByContainerPos:function(t,e,i){if("2D"===this.view.type||!this.map||!this.map.T)return null;this.view.of(t);var n=this.view.qV(t),s=this.map.T.ZL,a=this.view.pd,o=this.get("zoom",null,!0);o=Math.pow(2,20-o),e=e||this.getLayers();for(var r=[],h=0;h<e.length;h+=1){var l=e[h];l instanceof $.w.$n&&(l=l.om(s,n,a,o,t))&&r.push(l)}return i?r:r.length?(r.sort(function(t,e){return t.Fd-e.Fd}),{index:r[0].index,point:r[0].Vy,distance:r[0].Fd,object:r[0].object}):null}}),$.Ob.Sj({$K:"lngLatToGeodeticCoord",mca:"geodeticCoordToLngLat",WC:"getFitZoomAndCenterByBounds",uV:"getFitZoomAndCenterByOverlays",ip:"lnglatTocontainer",lnglatTocontainer:"lngLatToContainer",Fo:"containTolnglat",containTolnglat:"containerToLngLat",Fb:"lngLatToP20",qe:"p20ToLngLat",Ee:"p20ToContainer",of:"containerToP20",bc:"project",Dg:"unproject"}),$.Ob.ob({isHotspotChanged:function(){if(void 0!==this.ky&&(this.Aaa(),this.get("isHotspot"))){var t=this.get("layers",null,!0);t&&t.length&&!this.ky&&this.ID&&this.Afa()}},Afa:function(){if(this.Wl)this.gW();else{var e=this;this.plugin("AMap.HotSpot",function(){if(!e.ky){if(!e.Wl){var t=new w.Jg;new $.D.fe,e.Wl=t}e.gW()}})}},Aaa:function(){this.Wl&&this.pda()},FX:function(t){t.type="hotspotover",t.isIndoorPOI=!1,this.r("hotspotover",t)},DX:function(t){t.type="hotspotclick",t.isIndoorPOI=!1,this.r("hotspotclick",t)},EX:function(t){t.type="hotspotout",t.isIndoorPOI=!1,this.r("hotspotout",t)},gW:function(){var t=this.Wl;this.Wl.setMap(this),t.h("mouseover",this.FX,this),t.h("click",this.DX,this),t.h("mouseout",this.EX,this)},pda:function(){var t=this.Wl;t.I("mouseover",this.FX,this),t.I("click",this.DX,this),t.I("mouseout",this.EX,this),this.Wl.setMap(null),this.Wl=null}}),$.event={V:function(t,e,i,n){return w.e.add("AMap.event","addDomListener"),w.C.h(t,e,i,n),new w.Oz(0,t,e,i,n)},h$:function(){},addListener:function(t,e,i,n){return w.e.add("AMap.event","addListener"),w.a.bm(t.addListener)?t.addListener(e,i,n):(t.Nd||(t.Nd=w.ka.Nd),w.ka.h.call(t,e,i,n)),new w.Oz(1,t,e,i,n)},tx:function(t,e,i,n){return w.e.add("AMap.event","addListenerOnce"),w.a.bm(t.tx)?t.tx(e,i,n):(t.Nd||(t.Nd=w.ka.Nd),w.ka.h.call(t,e,i,n,!0)),new w.Oz(1,t,e,i,n)},tC:function(t){w.a.bm(t.tC)?t.tC():w.ka.bi.call(t)},Oq:function(t,e){w.a.bm(t.Oq)?t.Oq(e):w.ka.bi.call(t,e)},removeListener:function(t){w.e.add("AMap.event","removeListener"),t instanceof w.Oz&&(w.a.bm(t.Oh.removeListener)?t.Oh.removeListener(t):0===t.type?w.C.I(t.Oh,t.FJ,t.xK,t.ke):1===t.type&&(t.Oh.Nd||(t.Oh.Nd=w.ka.Nd),w.ka.I.call(t.Oh,t.FJ,t.xK,t.ke)))},N:function(t,e){w.e.add("AMap.event","trigger");var i=Array.prototype.slice.call(arguments,1);w.a.bm(t.N)?t.N.apply(t,i):(t.Nd||(t.Nd=w.ka.Nd),w.ka.r.apply(t,i))}},w.Oz=w.aa.extend({B:function(t,e,i,n,s){this.type=t,this.Oh=e,this.FJ=i,this.xK=n,this.ke=s}});var gc={V:"addDomListener",h$:"addDomListenerOnce",addListener:"addListener",tx:"addListenerOnce",tC:"clearInstanceListeners",Oq:"clearListeners",removeListener:"removeListener",N:"trigger"},tc;for(tc in gc)gc.hasOwnProperty(tc)&&($.event[gc[tc]]=$.event[tc]);if(w.event=$.event,w.event.V(window,"beforeunload",w.e.send),$.w.qc=w.aa.extend({ga:[w.ka,w.te],B:function(t){this.CLASS_NAME=this.CLASS_NAME||"AMap.Layer",w.a.Bb(this,t),this.F.map&&(t=this.F.map,delete this.F.map,this.F.map=t),this.Qf(this.F)},getContainer:function(){if(this.w&&this.w.Q)return this.w.Q.gi()},getZooms:function(){return w.e.add(this.CLASS_NAME,"getZooms"),this.get("zooms",null,!0)},setOpacity:function(t){w.e.add(this.CLASS_NAME,"setOpacity"),t!==this.get("opacity",null,!0)&&this.set("opacity",t)},getOpacity:function(){return this.get("opacity",null,!0)},show:function(){w.e.add(this.CLASS_NAME,"show"),this.set("visible",!0),this.op&&this.w.g.layersChanged()},hide:function(){w.e.add(this.CLASS_NAME,"hide"),this.set("visible",!1),this.op&&this.w.g.layersChanged()},setMap:function(t){w.e.add(this.CLASS_NAME,"setMap");var e=this.get("map");t?(e&&t!==e&&e.fk(this),this.set("map",t)):e&&(e.fk(this),this.set("map",null,!0),this.Oi=!1,this.gg&&this.gg())},getMap:function(){return w.e.add(this.CLASS_NAME,"getMap"),this.get("map",null,!0)},mapChanged:function(){var t=this.get("map");t&&t.aC(this)},setzIndex:function(t){w.e.add(this.CLASS_NAME,"setzIndex"),this.set("zIndex",t)},getzIndex:function(){return this.get("zIndex",null,!0)}}),$.w.Xa=$.w.qc.extend({F:{tileSize:256,visible:!0,opacity:1,zIndex:0,noLimg:1,zooms:[3,20],getTileUrl:w.l.Y?w.A.wz:w.A.Jy,errorUrl:w.a.Rba,detectRetina:!0,className:"amap-layer",mapNumber:"",merge:!1,sort:!1,cacheSize:w.l.size},B:function(t){w.e.eb("AMap.TileLayer",t),(t=t||{})&&t.tileUrl&&(t.getTileUrl=t.tileUrl),(new Date).getTime(),this.kaa(t);var e=t.zooms;e&&e[1]>=this.dj[0]?(e[0]<this.dj[0]&&(e[0]=this.dj[0]),e[1]>this.dj[1]&&(e[1]=this.dj[1])):t.zooms=[this.dj[0],this.dj[1]],this.CLASS_NAME=this.CLASS_NAME||"AMap.TileLayer",arguments.callee.oa.call(this,t),t.oi&&(this.oi=!0),this.GQ=!this.Ar()},setTextIndex:function(t){w.e.add(this.CLASS_NAME,"setTextIndex"),this.set("textIndex",t)},Ar:function(){if(this.get("createTile"))return!1;var t=this.get("getTileUrl");return!t||t===w.A.Jy||t===w.A.wz},gU:function(){if(!this.Ar())return!1;var t=this.get("map");return!(!t||!t.dh||"zh_cn"!==t.get("lang")||this.noVector)},JV:function(t){var e=w.A.CD;return w.l.ja&&this.get("detectRetina")&&(e=w.A.CD.replace("scl=1","scl=2")),t&&(e=e.replace("ltype=3","ltype=11")),e},sg:function(t){var e=this.gU(),i=this.get("map");if(this.Ar()&&this.set("mapNumber","GS(2018)1709"),this.oi)return new w.w.Xa(this,t,this.gt(this.JV(!0)),this.F.maxDataZoom,!0);if(!e)return this.op=!1,new w.w.Xa(this,t,null,this.F.maxDataZoom);if(this.op=!0,!w.w.vk)return["vectorlayer","overlay"];if("dv"!==i.get("baseRender")||this.get("watermark"))return"v"<=i.get("baseRender")||this.get("watermark")?("3D"==t.J.view.type?((i=new w.w.Yc(this,t,["region","road"])).type="矢量底图",i.ij=new w.w.Yc(new $.w.Xa({zooms:[17,20],zIndex:50,innerLayer:"true"}),t,["building"]),i.ij.De=17,i.ij.type="楼块图层",i.ij.mu=1,i.ij.he(["visible","merge","sort","opacity"],i,!0)):(i=new w.w.Yc(this,t,["region","building","road"])).type="矢量底图",i):void 0;e=i.get("showBuildingBlock");var n=new w.w.Xa(this,t,this.gt(this.JV(!e)),void 0,!0);return e&&(n.ij=new w.w.Yc(new $.w.Xa({zooms:[16,20],innerLayer:"true"}),t,["building"]),n.ij.type="楼块图层",n.ij.he(["visible","opacity","zIndex"],n,!0),n.ij.Cx(i.get("mapStyle")||"normal")),n.type="栅格底图",n},getTileUrlChanged:function(){var t=this.get("getTileUrl");t!==w.A.Jy&&t!==w.A.wz&&t!==w.A.lE||(this.ID=!0),"string"==typeof t&&(t=this.gt(t)),this.set("tileFun",t)},kaa:function(t){var e;this.dj||(this.dj=[this.F.zooms[0],this.F.zooms[1]]),t.hasOwnProperty("detectRetina")&&!1===t.detectRetina&&(e=!0),w.l.Y&&w.l.ja&&this.F.detectRetina&&!e&&(this.dj[1]-=1)},getTiles:function(){w.e.add(this.CLASS_NAME,"getTiles");var t=this.get("tiles",null,!0);if(!t||!t.length)return[];t=t[0];for(var e,i=[],n=0;n<t.length;n+=1)t[n].key&&(e=t[n].key.split("/"),i.push(e[1]+","+e[2]));return i},reload:function(){w.e.add(this.CLASS_NAME,"reload"),this.set("reload",1)},up:function(){var t=this.get("map",null,!0);this.setMap(null),this.Oi=!1,this.setMap(t)},setTileUrl:function(t){w.e.add(this.CLASS_NAME,"setTileUrl"),this.gU()?(this.set("getTileUrl",t),this.up()):this.set("getTileUrl",t)},gt:function(a){var o,r,h,l=this;return function(t,e,i){if("number"!=typeof((t=(t+Math.pow(2,i))%Math.pow(2,i))+e+i))return null;var n=l.get("map"),s="zh_cn";return n&&(s=n.get("lang")||"zh_cn"),i=a.replace("[x]",t).replace("[y]",e).replace("[z]",i).replace("[lang]",s),o||((r=a.match(/\{.*\}/))&&(h=(h=r.toString().replace("{","").replace("}","")).split(",")),o=!0),h&&h.length&&(i=i.replace(r,h[Math.abs(t+e)%h.length])),i}},getTileUrl:function(t,e,i){return w.e.add(this.CLASS_NAME,"getTileUrl"),this.get("tileFun",null,!0)(t,e,i)},getZooms:function(t){return t&&w.e.add(this.CLASS_NAME,"getZooms"),this.get("zooms",null,!0)}}),$.w.Xa.gO=$.w.Xa.extend({F:{getTileUrl:w.A.rM,zooms:[3,20],zIndex:2,maxDataZoom:18,detectRetina:!1,mapNumber:"GS(2018)984",className:"amap-layer amap-satellite",cacheSize:w.l.size},B:function(t){this.CLASS_NAME="AMap.TileLayer.Satellite",this.dj=[3,20],arguments.callee.oa.apply(this,arguments),w.e.eb(this.CLASS_NAME,t)}}),$.w.Xa.eO=$.w.Xa.extend({F:{getTileUrl:w.A.lE,zooms:[3,20],zIndex:3,type:"overlayer",maxDataZoom:18,className:"amap-layer amap-roadnet",cacheSize:w.l.size},B:function(t){this.CLASS_NAME="AMap.TileLayer.RoadNet",this.dj=[3,20],arguments.callee.oa.apply(this,arguments),w.e.eb(this.CLASS_NAME,t)},sg:function(t){if(this.get("map").dh){this.op=!0;var e=w.A.mE;w.l.ja&&this.get("detectRetina")&&(e=w.A.mE.replace("scl=1","scl=2")),t=new w.w.Xa(this,t,this.gt(e),this.F.maxDataZoom)}else this.op=!1,t=new w.w.Xa(this,t);return t}}),$.w.Xa.kO=$.w.Xa.extend({F:{getTileUrl:function(t,e,i){return w.A.Rb+"://tm.amap.com/trafficengine/mapabc/traffictile?v=1.0&t=1&zoom="+(17-i)+"&x="+t+"&y="+e},zooms:[6,20],zIndex:4,type:"overlayer",autoRefresh:!1,interval:180,maxDataZoom:17,alwaysRender:!w.l.vJ,className:"amap-layer amap-traffic",cacheSize:w.l.size},B:function(t){this.CLASS_NAME="AMap.TileLayer.Traffic",this.dj=[6,20],arguments.callee.oa.apply(this,arguments),this.startRefresh(),w.e.eb(this.CLASS_NAME,t)},stopRefresh:function(){w.e.add(this.CLASS_NAME,"stopRefresh"),this.bE&&(clearInterval(this.bE),this.bE=null)},startRefresh:function(){if(w.e.add(this.CLASS_NAME,"startRefresh"),this.get("autoRefresh")&&!this.bE){var t=this;this.bE=setInterval(function(){t.reload(),t.r("refresh")},Math.max(1e3*(this.get("interval")||180),1e4))}},reload:function(){w.e.add(this.CLASS_NAME,"reload"),w.a.pc(function(){this.set("reload")},this)},gg:function(){this.stopRefresh(),this.get("map")&&this.get("map").I("zoomstart",this.reload,this)},sg:function(t){var e=this.get("map");return(e=t.J).h("zoomstart",this.reload,this),"d"!==e.get("baseRender")?w.w.Ms?t=new w.w.Ms(this,t):["vt"]:t=new w.w.Xa(this,t,null,this.F.maxDataZoom)}}),$.w.Xa.Pz=$.w.Xa.extend({F:{zooms:[3,20],zIndex:12,detectRetina:!1,className:"amap-layer amap-flexible",cacheSize:w.l.size},B:function(t){this.CLASS_NAME=this.CLASS_NAME||"AMap.TileLayer.Flexible",this.Vda=!0,arguments.callee.oa.call(this,t)},setCreateTile:function(t){"function"==typeof t&&t!==this.get("createTile")&&this.set("createTile",t)},getCreateTile:function(){return this.get("createTile",null,!0)}}),$.w.Xa.W0=$.w.Xa.Pz.extend({F:{zooms:[3,20],zIndex:12,tileSize:512,detectRetina:!1,className:"amap-layer amap-wms",cacheSize:w.l.size,url:"",params:""},B:function(t){this.CLASS_NAME="AMap.TileLayer.WMS",arguments.callee.oa.call(this,t),this.ss();var r=this,h=this.get("tileSize");this.set("createTile",function(t,e,i,n,s){var a=Math.pow(2,20-i)*h;i=new w.G(a*t,a*(e+1)),t=new w.G(a*(t+1),a*e),e=w.BD.MX(i),t=w.BD.MX(t);var o=document.createElement("img");"3D"===r.Pp&&(o.crossOrigin="anonymous"),o.src=this.url+"&BBOX="+e+","+t,w.C.h(o,"load",function(){n(o)}),w.C.h(o,"error",function(){s(o)})})},ss:function(){var t=this.get("url",null,!0),e=this.get("params",null,!0),i=this.get("tileSize");e.WIDTH=i,e.HEIGHT=i,e.CRS=e.CRS||"EPSG:3857",e.REQUEST="GetMap",e.SERVICE="WMS",e.FORMAT=e.FORMAT||"image/png",e.TRANSPARENT=void 0===e.TRANSPARENT?"true":e.TRANSPARENT,delete e.BBOX,this.url=t+"?"+w.a.join(e,"&"),this.reload()},setUrl:function(t){this.set("url",t,!0),this.ss()},getUrl:function(){return this.get("url",null,!0)},setParams:function(t){w.extend(this.get("params",null,!0),t||{}),this.ss()},getParams:function(){return this.get("params",null,!0)}}),$.w.Xa.X0=$.w.Xa.Pz.extend({F:{zooms:[3,20],tileSize:256,zIndex:12,detectRetina:!1,className:"amap-layer amap-wmts",cacheSize:w.l.size},B:function(t){this.CLASS_NAME="AMap.TileLayer.WMTS",arguments.callee.oa.call(this,t),this.ss();var o=this;this.get("tileSize"),this.set("createTile",function(t,e,i,n,s){var a=document.createElement("img");"3D"===o.Pp&&(a.crossOrigin="anonymous"),a.src=this.url+"&TileMatrix="+i+"&TileRow="+e+"&TileCol="+t,w.C.h(a,"load",function(){n(a)}),w.C.h(a,"error",function(){s(a)})})},ss:function(){var t=this.get("url",null,!0),e=this.get("params",null,!0);this.get("tileSize"),e.TileMatrixSet=e.TileMatrixSet||"EPSG:3857",e.Request="GetTile",e.Service="WMTS",e.Format=e.Format||"image/png",this.url=t+"?"+w.a.join(e,"&"),this.reload()},setUrl:function(t){this.set("url",t,!0),this.ss()},getUrl:function(){return this.get("url",null,!0)},setParams:function(t){w.extend(this.get("params",null,!0),t||{}),this.ss()},getParams:function(){return this.get("params",null,!0)}}),$.w.Xa.Gv=$.w.Xa.Pz.extend({F:{detectRetina:!0,zooms:[10,18],zIndex:2},B:function(t){arguments.callee.oa.apply(this,arguments);var u=this;this.set("createTile",function(t,e,i,n,s){var a,o,r,h,l=u.g||u.get("map");if(l.eo||(l.eo=new w.Ob.Gv(l.map)),l.eo.sz(t,e,i))s();else{var c=document.createElement("img");"3D"===u.Pp&&(c.crossOrigin="anonymous"),c.src=(a=t,o=e,r=i,h="zh_cn",u&&u.get&&l&&(h=l.get("lang")||"zh_cn"),w.A.Rb+"://grid.amap.com/grid/"+r+"/"+a+"/"+o+"?src=jsapi&key="+w.A.key+"&lang="+h+"&dpiType="+(w.l.qd?"wprd":"webrd")),w.C.h(c,"load",function(){n(c)}),w.C.h(c,"error",function(){s(c)})}})}}),$.w.Kc=$.w.qc.extend({F:{visible:!0,zooms:[3,25],type:"overlay",zIndex:5,alwaysRender:!0},B:function(t){arguments.callee.oa.apply(this,arguments)},sg:function(t){return new w.w.Kc(this,t)}}),$.w.H_=$.w.qc.extend({F:{zooms:[14,20],zIndex:8,visible:!0,merge:!0,sort:!1},B:function(t){(t=t||{}).zooms&&(t.zooms[0]=Math.max(14,t.zooms[0])),arguments.callee.oa.apply(this,arguments),this.CLASS_NAME="AMap.Buildings"},Ar:function(){return!1},sg:function(t){if(w.l.Fx)return(t=new w.w.T0(this,t,["building"])).mu=this.get("heightFactor")||1,t},setStyle:function(t){this.set("customStyle",t)}}),$.w.ZE=$.w.qc.extend({F:{visible:!0,zooms:[3,w.l.Y?20:18],opacity:1,type:"overlay",zIndex:6},B:function(t){arguments.callee.oa.apply(this,arguments)},sg:function(t){return w.w.Iv?new w.w.Iv(this,t):["imagelayer"]},getMap:function(){return w.e.add(this.CLASS_NAME,"getMap"),this.Mg.map},show:function(){w.e.add(this.CLASS_NAME,"show"),this.set("visible",!0),this.r("options")},getOpacity:function(){return w.e.add(this.CLASS_NAME,"getOpacity"),this.get("opacity",null,!0)},setOpacity:function(t){w.e.add(this.CLASS_NAME,"setOpacity"),this.set("opacity",t)},getBounds:function(){return w.e.add(this.CLASS_NAME,"getBounds"),this.get("bounds",null,!0).vb()},setBounds:function(t){w.e.add(this.CLASS_NAME,"setBounds"),this.r("bounds",t),this.setOptions({bounds:t})},hide:function(){w.e.add(this.CLASS_NAME,"hide"),this.set("visible",!1),this.r("options")},setOptions:function(t){w.e.add(this.CLASS_NAME?this.CLASS_NAME:"AMap.ImageLayer","setOptions"),this.Qf(t),this.r("options")},getOptions:function(){w.e.add(this.CLASS_NAME,"getOptions");var t,e={};for(t in this.F)this.F.hasOwnProperty(t)&&(e[t]=this.get(t));return e},getElement:function(){return this.w.Q?this.w.Q.Ib:this.w.pm?this.w.pm.Ib:null}}),$.w.Iv=$.w.ZE.extend({B:function(t){t&&t.url&&(t.__source__=t.url),arguments.callee.oa.apply(this,arguments),this.CLASS_NAME="AMap.ImageLayer"},getImageUrl:function(){return w.e.add(this.CLASS_NAME,"getImageUrl"),this.get("__source__")},setImageUrl:function(t){return w.e.add(this.CLASS_NAME,"setImageUrl"),this.set("__source__",t)}}),$.w.V0=$.w.ZE.extend({B:function(t){t&&t.url&&(t.__source__=t.url),arguments.callee.oa.apply(this,arguments),this.CLASS_NAME="AMap.VideoLayer"},getVideoUrl:function(){return w.e.add(this.CLASS_NAME,"getVideoUrl"),this.get("__source__")},setVideoUrl:function(t){return w.e.add(this.CLASS_NAME,"setVideoUrl"),this.set("__source__",t)}}),$.w.I_=$.w.ZE.extend({B:function(t){t&&t.canvas&&(t.__source__=t.canvas),arguments.callee.oa.apply(this,arguments),this.CLASS_NAME="AMap.CanvasLayer"},getCanvas:function(){return w.e.add(this.CLASS_NAME,"getCanvas"),this.get("__source__")},setCanvas:function(t){return w.e.add(this.CLASS_NAME,"setCanvas"),this.set("__source__",t)},reFresh:function(){this.w&&(this.w.rz=!0,this.w.set("display"))}}),$.w.n0=$.w.qc.extend({F:{visible:!0,zooms:[3,w.l.Y?20:18],type:"overlay",zIndex:5,cursor:"pointer",alwaysRender:!0,stable:!0,bubble:!0,className:"amap-mass"},B:function(t,e){this.CLASS_NAME="AMap.MassMarks",w.e.eb(this.CLASS_NAME,e),w.l.am&&(this.Ph=!0,e.size&&(e.size=w.a.Cn(e.size)),this.setData(t),w.a.Bb(this,e),e.style?(this.Qf(this.F,!0),this.setStyle(e.style)):this.setStyle(this.F))},clear:function(){this.set("dataSources","")},getStyle:function(){return w.e.add(this.CLASS_NAME,"getStyle"),this.kk},setStyle:function(t){if(w.e.add(this.CLASS_NAME,"setStyle"),t instanceof Array){for(var e=0;e<t.length;e+=1)t[e].rotation_=Math.PI*(t[e].rotation||0)/180,t[e].size=w.a.Cn(t[e].size),t.Ge=Math.max(t.Ge||0,t[e].size.width+t[e].anchor.x),t.df=Math.max(t.Ge||0,t[e].size.height+t[e].anchor.y);this.kk=t}else t.size&&(t.size=w.a.Cn(t.size)),t.rotation_=Math.PI*(t.rotation||0)/180,this.Qf(t,!0),this.kk={anchor:this.get("anchor"),url:this.get("url"),size:this.get("size"),rotation_:this.get("rotation_")},this.kk.Ge=this.kk.size.width+this.kk.anchor.x,this.kk.df=this.kk.size.height+this.kk.anchor.y;this.r("style")},setData:function(t){w.e.add(this.CLASS_NAME,"setData"),this.set("dataSources",t)},getData:function(){return w.e.add(this.CLASS_NAME,"getData"),this.get("datas")||this.get("dataSources")},setMap:function(t){w.e.add(this.CLASS_NAME,"setMap"),w.l.am&&(t?(this.get("map")&&this.get("map").fk(this),this.set("map",t)):this.get("map")&&(this.get("map").fk(this),this.set("map",null,!0),this.Oi=!1,this.gg&&this.gg()))},sg:function(t){return w.hb.yy(["cvector"])?(t=new w.w.Kc(this,t),this.X("datas",t),t):["cvector"]}}),$.w.bF=$.w.Iv.extend({B:function(t,e,i){w.e.eb("AMap.GroundImage",i),i=i||{},this.Hf=!0;var n=parseFloat(i.opacity);isNaN(n)&&(n=1),arguments.callee.oa.call(this,{url:t,bounds:e,clickable:i.clickable,opacity:n,map:i.map,zooms:i.zooms||[3,20]}),this.CLASS_NAME="AMap.GroundImage"},pfa:function(t){this.get("bounds").contains(t.lnglat)&&(t.target=this).r("click",t)},qfa:function(t){this.get("bounds").contains(t.lnglat)&&(t.target=this).r("dblclick",t)},setMap:function(t){w.e.add(this.CLASS_NAME,"setMap"),t?(this.get("map")&&(this.get("map").fk(this),this.nU&&$.event.removeListener(this.nU),this.DU&&$.event.removeListener(this.DU)),this.set("map",t)):this.get("map")&&(this.get("map").fk(this),this.Mg.map=null)},mapChanged:function(){this.get("map")&&(this.get("map").aC(this),this.get("clickable")&&(this.nU=$.event.addListener(this.get("map"),"click",this.pfa,this),this.DU=$.event.addListener(this.get("map"),"dblclick",this.qfa,this)))}}),$.D.Lg=w.aa.extend({ga:[w.ka,w.te,{ya:w.a.ya}],F:{extData:{},bubble:!1,clickable:!0,draggable:!1},B:function(){this.ZA=w.a.Jb(this)},tma:function(){return this.ZA},yla:function(){this.get("map",null,!0)&&this.setMap(this.get("map"))},mapChanged:function(){this.get("map",null,!0)&&this.get("map",null,!0).ux(this)},LJ:function(t){var e=0;return t&&(e="string"==typeof t?Math.round(parseFloat(t)/.14929107086948487):t),e},setHeight:function(t){this.height=t=t||0,t=this.LJ(t),this.set("altitude",t)},getHeight:function(){return this.height},show:function(){w.e.add(this.CLASS_NAME,"show"),this.set("visible",!0)},hide:function(){w.e.add(this.CLASS_NAME,"hide"),this.set("visible",!1)},setMap:function(t){w.e.add(this.CLASS_NAME,"setMap"),t!==this.get("map",null,!0)&&(t?(this.get("map",null,!0)&&this.get("map",null,!0).Qu(this),this.set("map",t)):this.get("map",null,!0)&&(this.get("map",null,!0).Qu(this),this.set("map",null,!0)))},getMap:function(){return w.e.add(this.CLASS_NAME,"getMap"),this.get("map",null,!0)},setExtData:function(t){w.e.add(this.CLASS_NAME,"setExtData"),this.set("extData",t)},getExtData:function(){return w.e.add(this.CLASS_NAME,"getExtData"),this.get("extData",null,!0)}}),$.D.Kc=$.D.Lg.extend({B:function(t){$.D.Kc.rc.B.apply(this,arguments)},show:function(){this.set("visible",!0),this.r("show",{type:"show",target:this})},hide:function(){this.set("visible",!1),this.r("hide",{type:"hide",target:this})},getVisible:function(){return this.get("visible",null,!0)},getOptions:function(){var t={},e="map zIndex strokeColor strokeOpacity strokeWeight strokeStyle strokeDasharray extData bubble clickable".split(" "),i="isOutline outlineColor geodesic path lineJoin lineCap borderWeight showDir dirColor dirImg".split(" "),n=["fillColor","fillOpacity","path","lineJoin","texture"],s=["center","radius","texture"],a=[];for(this instanceof $.D.Gb&&(a=e.concat(i)),this instanceof $.D.dc&&(a=e.concat(n)),this instanceof $.D.Sf&&(a=e.concat(s).concat(n)),this instanceof $.D.Up&&(a=e.concat(s).concat(n)),this instanceof $.D.$p&&(a=e.concat(n).concat(["bounds","texture"])),e=0;e<a.length;e+=1)t[a[e]]=this.get(a[e],null,!0);return t},setOptions:function(t){var e;t.hasOwnProperty("path")&&(t.path&&t.path.length||(t.path=[]),t.path=this.ya(t.path)),t.center&&(t.center=this.ya(t.center)),t.hasOwnProperty("map")&&(e=t.map,delete t.map),this.Qf(t),void 0!==e&&(this.setMap(e),t.map=e),this.r("options"),this.r("change",{type:"change",target:this})},setzIndex:function(t){w.e.add(this.CLASS_NAME,"setzIndex"),this.set("zIndex",t)},getzIndex:function(){return w.e.add(this.CLASS_NAME,"getzIndex"),this.get("zIndex",null,!0)},setDraggable:function(t){this.set("draggable",t)}}),$.D.Zz=$.D.Kc.extend({F:{visible:!0,zIndex:10,strokeColor:"#006600",strokeOpacity:.9,strokeWeight:3,strokeStyle:"solid",strokeDasharray:[10,5],lineJoin:"miter",path:[]},B:function(t){$.D.Zz.rc.B.apply(this,arguments)},setPath:function(t,e){w.e.add(this.CLASS_NAME,"setPath"),t&&t.length||(t=[]),t=this.ya(t),this.set("path",t),this.r("change",{type:"change",target:this}),e||this.r("setPath")},getPath:function(){return w.e.add(this.CLASS_NAME,"getPath"),this.get("path",null,!0)},Tc:function(){var t=this.get("path");if(!t||!t.length)return null;t[0]instanceof w.U&&(t=[t]);for(var e=new w.Vd(180,90,-180,-90),i=0;i<t.length;i+=1)for(var n=t[i],s=n.length-1;0<=s;s-=1)e.extend(n[s]);return e}}),$.D.Zz.Sj({Tc:"getBounds"}),$.D.Kg=w.aa.extend({ga:[w.ka,w.te],F:{size:new w.Rc(36,36),imageOffset:new w.G(0,0),image:w.A.ub+"/theme/v1.3/markers/0.png",imageSize:null},B:function(t){this.CLASS_NAME="AMap.Icon",w.e.eb(this.CLASS_NAME,t),(t=t||{}).size&&(t.size=w.a.Cn(t.size)),t.imageSize&&(t.imageSize=w.a.Cn(t.imageSize)),w.a.Bb(this,t),this.Qf(this.F)},setImageSize:function(t){w.e.add(this.CLASS_NAME,"setImageSize"),t=w.a.Cn(t),this.set("imageSize",t)},getImageSize:function(){return w.e.add(this.CLASS_NAME,"getImageSize"),this.get("imageSize",null,!0)}}),$.D.m0=w.aa.extend({ga:[w.ka,w.te],F:{coords:[],type:""},B:function(t){this.CLASS_NAME="AMap.MarkerShape",w.e.eb(this.CLASS_NAME,t),w.a.Bb(this,t),this.Qf(this.F)}}),$.D.cb=$.D.Lg.extend({F:{cursor:"pointer",visible:!0,zIndex:100,angle:0,textAlign:"left",verticalAlign:"top",autoRotation:!1,opacity:1,offset:new w.G(-9,-31),size:new w.G(19,33),raiseOnDrag:!1,topWhenClick:!1,topWhenMouseOver:!1,animation:"AMAP_ANIMATION_NONE"},B:function(t){this.CLASS_NAME="AMap.Marker",w.e.eb(this.CLASS_NAME,t),t=t||{},this.Hf=!0,this.G5=w.a.Jb(this),t.position&&(t.position=this.ya(t.position)),t.height&&this.setHeight(t.height),w.a.Bb(this,t),w.l.ae&&(this.F.angle=0),this.Qf(this.F,!0),this.mapChanged()},getId:function(){return this.G5},setRaiseOnDrag:function(t){w.e.add(this.CLASS_NAME,"setRaiseOnDrag"),this.set("raiseOnDrag",t)},setPosition:function(t,e){w.e.add(this.CLASS_NAME,"setPosition"),t=this.ya(t),void 0!==e&&this.setHeight(e),this.set("position",t)},getBounds:function(){var t=this.getPosition().vb();return new w.Vd(t,t.vb())},mapChanged:function(){this.mj("zoom");var t=this.get("map",null,!0);t&&(this.get("position",null,!0)||this.set("position",t.get("center")),t.ux(this),this.X("zoom",t))},getZooms:function(){return this.get("zooms",null,!0)},zoomChanged:function(){var t=this.get("zooms",null,!0);if(t){var e=this.get("zoom");e<t[0]||e>t[1]?this.set("outOfZooms",!0):this.set("outOfZooms",!1),this.D&&this.D.Ifa()}},getPosition:function(){return w.e.add(this.CLASS_NAME,"getPosition"),this.get("position",null,!0)},setIcon:function(t){w.e.add(this.CLASS_NAME,"setIcon"),this.set("icon",t)},getIcon:function(){return w.e.add(this.CLASS_NAME,"getIcon"),this.get("icon",null,!0)},setContent:function(t){w.e.add(this.CLASS_NAME,"setContent"),this.set("content",t)},getContent:function(){return w.e.add(this.CLASS_NAME,"getContent"),this.get("content",null,!0)},getContentDom:function(){return this.get("contentDom",null,!0)},hide:function(){w.e.add(this.CLASS_NAME,"hide"),this.set("visible",!1)},show:function(){w.e.add(this.CLASS_NAME,"show"),this.set("visible",!0)},setCursor:function(t){w.e.add(this.CLASS_NAME,"setCursor"),this.set("cursor",t)},setRotation:function(t){w.e.add(this.CLASS_NAME,"setRotation"),w.l.ae||this.set("angle",t)},setAngle:function(t){w.e.add(this.CLASS_NAME,"setAngle"),w.l.ae||"number"!=typeof t||this.set("angle",t)},getAngle:function(){return w.e.add(this.CLASS_NAME,"getAngle"),this.get("angle",null,!0)},setOffset:function(t){w.e.add(this.CLASS_NAME,"setOffset"),this.set("offset",t)},getOffset:function(){return w.e.add(this.CLASS_NAME,"getOffset"),this.get("offset",null,!0)},setTextAlign:function(t){w.e.add(this.CLASS_NAME,"setTextAlign"),this.set("textAlign",t)},getTextAlign:function(){return w.e.add(this.CLASS_NAME,"getTextAlign"),this.get("textAlign",null,!0)},setVerticalAlign:function(t){w.e.add(this.CLASS_NAME,"setVerticalAlign"),this.set("verticalAlign",t)},getVerticalAlign:function(){return w.e.add(this.CLASS_NAME,"getVerticalAlign"),this.get("verticalAlign",null,!0)},setzIndex:function(t){w.e.add(this.CLASS_NAME,"setzIndex"),this.set("zIndex",t)},getzIndex:function(){return w.e.add(this.CLASS_NAME,"getzIndex"),this.get("zIndex",null,!0)},setOpacity:function(t){w.e.add(this.CLASS_NAME,"setOpacity"),this.set("opacity",t)},setDraggable:function(t){w.e.add(this.CLASS_NAME,"setDraggable"),this.set("draggable",t)},getDraggable:function(){return w.e.add(this.CLASS_NAME,"getDraggable"),this.get("draggable",null,!0)},moveTo:function(t,e,i){w.e.add(this.CLASS_NAME,"moveTo"),t=this.ya(t),this.set("move",{tf:t,speed:e,jb:i})},moveAlong:function(t,e,i,n){w.e.add(this.CLASS_NAME,"moveAlong"),this.set("move",{tf:t,speed:e,jb:i,oaa:n})},stopMove:function(){w.e.add(this.CLASS_NAME,"stopMove"),this.set("move",!1)},pauseMove:function(){w.e.add(this.CLASS_NAME,"pauseMove");var t=this.get("move");return!!t&&(t.action="pause",this.set("move",t),!0)},resumeMove:function(){w.e.add(this.CLASS_NAME,"resumeMove");var t=this.get("move");return!!t&&(t.action="resume",this.set("move",t),!0)},setShadow:function(t){w.e.add(this.CLASS_NAME,"setShadow"),this.set("shadow",t)},getShadow:function(){return w.e.add(this.CLASS_NAME,"getShadow"),this.get("shadow",null,!0)},setClickable:function(t){w.e.add(this.CLASS_NAME,"setClickable"),t!==this.getClickable()&&this.set("clickable",t)},getClickable:function(){return w.e.add(this.CLASS_NAME,"getClickable"),this.get("clickable",null,!0)},setTitle:function(t,e){w.e.add(this.CLASS_NAME,"setTitle"),"string"==typeof t&&this.set("title",t,e)},getTitle:function(){return w.e.add(this.CLASS_NAME,"getTitle"),this.get("title",null,!0)},setLabel:function(t){w.e.add(this.CLASS_NAME,"setLabel"),t&&!w.a.ap(t)&&(t=w.extend({},this.get("label"),t)),this.set("label",t)},getLabel:function(){return w.e.add(this.CLASS_NAME,"getLabel"),this.get("label",null,!0)},setTop:function(t,e){w.e.add(this.CLASS_NAME,"setTop"),this.set("isTop",t,e)},getTop:function(){return w.e.add(this.CLASS_NAME,"getTop"),this.get("isTop",null,!0)},setShape:function(t,e){w.e.add(this.CLASS_NAME,"setShape"),this.set("shape",t,e)},getShape:function(){return w.e.add(this.CLASS_NAME,"getShape"),this.get("shape",null,!0)},setAnimation:function(t,e){w.e.add(this.CLASS_NAME,"setAnimation"),this.set("animation",t,e)},getAnimation:function(){return w.e.add(this.CLASS_NAME,"getAnimation"),this.get("animation",null,!0)},getMap:function(){return w.e.add(this.CLASS_NAME,"getMap"),this.get("map",null,!0)},markOnAMAP:function(t){w.e.add(this.CLASS_NAME,"markOnAMAP"),t=t||{};var e={};e.name=t.name||this.get("name",null,!0)||"",t=this.ya(t.position)||this.get("position",null,!0),e.y=t.O,e.x=t.P,w.Gg.Dp(w.Gg.Zca(e))}}),w.Iw={oY:12,Hka:function(){},rS:function(){if(w.Ya&&w.Ya.length){var t=w.Iw.BJ(JSON.stringify({mks:w.Ya,from:w.A.jca,key:w.A.key}));new w.Sa.XMLHttpRequest(w.A.ub+"/count",{tU:"data="+t,Wc:"POST"}),w.Ya=[]}},BJ:function(t){for(var e="",i=0,n=t.length;i<n;i++)e+=String.fromCharCode((t.charCodeAt(i)+256)%65535);return e},Pj:function(t){for(var e="",i=0,n=t.length;i<n;i++)e+=String.fromCharCode((t.charCodeAt(i)-256+65535)%65535);return e}},w.l.Fx&&!w.l.Y&&(new Date).getHours()===w.Iw.oY){var uc=setInterval(function(){(new Date).getHours()!==w.Iw.oY?clearInterval(uc):w.Iw.rS()},6e3);w.event.V(window,"beforeunload",w.Iw.rS)}$.D.pl=$.D.Lg.extend({F:{visible:!1,items:[]},B:function(t){this.CLASS_NAME="AMap.ContextMenu",w.e.eb(this.CLASS_NAME,t),this.Hf=!0,w.a.Bb(this,t),this.F.items=[],this.Qf(this.F)},addItem:function(t,e,i){w.e.add(this.CLASS_NAME,"addItem"),this.get("items").push({$Z:t,jb:e,SD:i}),this.r("items")},removeItem:function(t,e){w.e.add(this.CLASS_NAME,"removeItem");var i,n,s=this.get("items");for(n=0;n<s.length;n+=1)if((i=s[n]).$Z===t&&i.jb===e){s.splice(n,1);break}this.r("items")},open:function(t,e){w.e.add(this.CLASS_NAME,"open"),e=w.a.ya(e),this.set("position",e),this.map?this.map&&this.map!==t&&(this.map.Qu(this),this.map=t,this.setMap(t)):(this.map=t,this.setMap(t)),this.r("open",{type:"open",target:this})},close:function(){w.e.add(this.CLASS_NAME,"close"),this.setMap(null),this.map&&(this.map=this.map.zC=null,this.r("close",{type:"close",target:this}))}}),$.D.fe=$.D.Lg.extend({F:{visible:!0,offset:new w.G(0,0),showShadow:!1,closeWhenClickMap:!1,retainWhenClose:!0,autoMove:!0,altitude:0},B:function(t){this.CLASS_NAME="AMap.InfoWindow",w.e.eb(this.CLASS_NAME,t),t=t||{},this.Hf=!0,t&&t.size&&(t.size=w.a.Cn(t.size)),w.a.Bb(this,t),this.Qf(this.F),t.position&&this.set("position",w.a.ya(t.position),!0),t.height&&this.set("altitude",this.LJ(t.height),!0)},open:function(t,e,i){if(w.e.add(this.CLASS_NAME,"open"),e=w.a.ya(e),t&&!this.DE&&(e=e||this.get("position",null,!0))){this.r("change",{type:"change",target:this}),i=this.LJ(i)||this.get("altitude");var n=this.get("map",null,!0);n&&n===t?(this.set("altitude",i,!0),this.set("position",e)):((this.map=t).Yl&&t.Yl.close(),this.set("position",e,!0),this.set("altitude",i,!0),this.setMap(t)),this.r("open",{type:"open",target:this})}},close:function(){this.D&&this.D.map&&(w.e.add(this.CLASS_NAME,"close"),this.setMap(null),this.map=null,this.r("change",{type:"change",target:this}))},setContent:function(t){w.e.add(this.CLASS_NAME,"setContent"),this.set("content",t),this.r("change",{type:"change",target:this})},getContentU:function(){return w.e.add(this.CLASS_NAME,"getContentU"),this.get("content",null,!0)},getContentDom:function(){return this.get("contentDom",null,!0)},getContent:function(){return w.e.add(this.CLASS_NAME,"getContent"),this.get("content",null,!0)},setPosition:function(t){w.e.add(this.CLASS_NAME,"setPosition"),t=w.a.ya(t),this.set("position",t),this.r("change",{type:"change",target:this})},setOffset:function(t){w.e.add(this.CLASS_NAME,"setOffset"),this.set("offset",t),this.r("change",{type:"change",target:this})},getPosition:function(){return w.e.add(this.CLASS_NAME,"getPosition"),this.get("position",null,!0)},setSize:function(t){w.e.add(this.CLASS_NAME,"setSize"),t=w.a.Cn(t),this.set("size",t),this.r("change",{type:"change",target:this})},getSize:function(t){return w.e.add(this.CLASS_NAME,"getSize"),this.get("size",null,!0)||(this.D&&!t?new w.Rc(this.D.Xg.offsetWidth,this.D.Xg.offsetHeight):void 0)},getIsOpen:function(){return w.e.add(this.CLASS_NAME,"getIsOpen"),!!this.get("map")}}),$.D.Gb=$.D.Zz.extend({F:{isOutline:!1,outlineColor:"#000000",geodesic:!1,dirColor:"white",borderWeight:1},B:function(t){$.D.Gb.rc.B.apply(this,arguments),this.CLASS_NAME="AMap.Polyline",w.e.eb(this.CLASS_NAME,t),this.Hf=!0,(t=t||{}).zIndex="number"==typeof t.zIndex?t.zIndex:50,t.path&&(t.path=this.ya(t.path)),w.a.Bb(this,t),this.setOptions(this.F)},getLength:function(){w.e.add(this.CLASS_NAME,"getLength");for(var t=this.get("path"),e=0,i=0;i<t.length-1;i+=1)e+=t[i].Ld(t[i+1]);return parseFloat(e.toFixed(2))}}),function(f){function s(t,e,i,n){if(1<=t)return n;var s=1-t;return s*s*e+2*s*t*i+t*t*n}function d(t,e,i,n,s){if(1<=t)return s;var a=3*(i[0]-e[0]),o=3*(n[0]-i[0])-a,r=3*(i[1]-e[1]);return i=3*(n[1]-i[1])-r,[(s[0]-e[0]-a-o)*Math.pow(t,3)+o*Math.pow(t,2)+a*t+e[0],(s[1]-e[1]-r-i)*Math.pow(t,3)+i*Math.pow(t,2)+r*t+e[1]]}function p(t,e,i,n){return[s(t,e[0],i[0],n[0]),s(t,e[1],i[1],n[1])]}function g(t,e){return e=f.a.ya(e),t.Fy(e,20).lk()}function r(t,e,i,n,s,a){var o=null;if(t&&i&&i.length){for((t=[t]).push.apply(t,i),t.push(e),i=0,o=t.length;i<o;i++)t[i]=g(n,t[i]);a=(i=f.extend({tolerance:4,interpolateNumLimit:[3,300]},a)).tolerance,i=i.interpolateNumLimit,a=Math.max(2,a);for(var r=o=0,h=0,l=t.length;h<l-1;h++){var c=t[h],u=t[h+1];o+=Math.abs(u[0]-c[0]),r+=Math.abs(u[1]-c[1])}t:{switch(s=Math.min(i[1],Math.max(i[0],Math.round(Math.max(o,r)/s/a))),a=null,t.length){case 3:a=p;break;case 4:a=d;break;default:o=null;break t}for(i=[],o=[0].concat(t),r=1;r<s-2;r++)o[0]=r/s,i.push(a.apply(null,o));i.push(t[t.length-1]),o=i}}return o||[g(n,e)]}f.EN={Rna:p,Lla:d,zV:function(t,e,i,n){var s,a,o=[];for(s=0,a=t.length;s<a;s+=1)o.push.apply(o,r(t[s-1],t[s],t[s].controlPoints,e,i,n));return o},Oca:function(t,e,i,n){t=this.zV(t,e,i,n),i=[],n=0;for(var s=t.length;n<s;n++)i.push((a=e,o=t[n],f.a.isArray(o)&&(o=new f.G(o[0],o[1])),a.Wy(o,20)));var a,o;return i}}}(w),$.D.Bv=$.D.Gb.extend({F:{tolerance:4,interpolateNumLimit:[3,300]},B:function(t){$.D.Bv.rc.B.apply(this,arguments),this.CLASS_NAME="AMap.BezierCurve",w.e.eb(this.CLASS_NAME,t)},getLength:function(){w.e.add(this.CLASS_NAME,"getLength"),this.get("map");var t=this.getInterpolateLngLats();return w.Vp.distanceOfLine(t)},getInterpolateLngLats:function(){var t=this.get("map");return w.EN.Oca(this.get("path"),t&&t.cn||w.Fg.aF,Math.pow(2,2),this.F)},getSerializedPath:function(){w.e.add(this.CLASS_NAME,"getSerializedPath");for(var t=this.get("path",null,!0),e=[],i=0,n=t.length;i<n;i++){var s=t[i];if(s instanceof w.U){var a=[];if(s.controlPoints)for(var o=0,r=s.controlPoints.length;o<r;o++)a.push(s.controlPoints[o].aK()),a.push(s.controlPoints[o].YJ());a.push(s.aK()),a.push(s.YJ()),e.push(a)}else e.push(s)}return e},ya:function(t){var e=typeof t[0];if(w.a.isArray(t)&&"object"===e){for(e=0;e<t.length;e+=1)t[e]=this.b8(t[e]);return t}return[this.zna(t)]},b8:function(t){var e;if(t instanceof w.U)e=t;else{var i,n,s=[];if("string"==(e=typeof t[0])||"number"===e){if((n=t.length)%2)throw Error("LngLat number should be even, now it's "+n);for(e=new w.U(t[n-2],t[n-1]),i=0,n-=2;i<n;i+=2)s.push(new w.U(t[i],t[i+1]))}else{if(!w.a.isArray(t[0]))throw Error("AMap.LngLat expected, now it's "+t);for(n=t.length,e=new w.U(t[n-1][0],t[n-1][1]),i=0,n-=1;i<n;i++)s.push(new w.U(t[i][0],t[i][1]))}e&&s.length&&(e.controlPoints=w.a.ya(s))}if(e.controlPoints&&2<e.controlPoints.length)throw Error("Control Points Number should be 1 or 2 !");return e}}),$.D.dc=$.D.Zz.extend({B:function(t){$.D.dc.rc.B.apply(this,arguments),this.CLASS_NAME="AMap.Polygon",w.e.eb(this.CLASS_NAME,t),this.Hf=!0,(t=t||{}).zIndex="number"==typeof t.zIndex?t.zIndex:10,t.path&&(t.path=this.ya(t.path)),w.a.Bb(this,w.extend({fillColor:"#FFAA00",fillOpacity:.9},t)),this.setOptions(this.F)},iK:function(t){var e=6378137*Math.PI/180,i=0,n=t.length;if(n<3)return 0;for(var s=0;s<n-1;s+=1){var a=t[s],o=t[s+1],r=a.P*e*Math.cos(a.O*Math.PI/180),h=(a=a.O*e,o.P*e*Math.cos(o.O*Math.PI/180));i+=r*o.O*e-h*a}return s=t[s],t=t[0],n=s.P*e*Math.cos(s.O*Math.PI/180),s=s.O*e,o=t.P*e*Math.cos(t.O*Math.PI/180),i+=n*t.O*e-o*s,.5*Math.abs(i)},getArea:function(){w.e.add(this.CLASS_NAME,"getArea");var t,e=this.get("path",null,!0);if(!e.length||e[0]instanceof w.U)t=this.iK(e);else{t=this.iK(e[0]);for(var i=1;i<e.length;i+=1)t-=this.iK(e[i])}return Number(t.toFixed(2))},toString:function(){return w.e.add(this.CLASS_NAME,"toString"),this.get("path").join(";")},contains:function(t){w.e.add(this.CLASS_NAME,"contains"),t=w.a.ya(t);var e=this.get("path");e.length&&e[0]instanceof w.U&&(e=[e]),t=[t.P,t.O];for(var i,n=0,s=e.length;n<s&&(i=this.daa(e[n]),w.Qc.$o(i)||i.reverse(),i=w.Qc.nd(t,i,0===n),0<n&&(i=!i),i);n+=1);return i},daa:function(t){for(var e=[],i=0;i<t.length;i+=1)e.push([t[i].P,t[i].O]);return e}}),$.D.Sf=$.D.Kc.extend({F:{visible:!0,zIndex:10,strokeColor:"#006600",strokeOpacity:.9,strokeWeight:3,strokeStyle:"solid",strokeDasharray:[10,5],radius:1e3,fillColor:"#006600",fillOpacity:.9,unit:"miter"},B:function(t){$.D.Sf.rc.B.apply(this,arguments),this.CLASS_NAME=this.CLASS_NAME||"AMap.Circle",w.e.eb(this.CLASS_NAME,t),(t=t||{}).center&&(t.center=w.a.ya(t.center)),t.zIndex="number"==typeof t.zIndex?t.zIndex:10,w.a.$j(t.radius,"string")&&(t.radius=parseFloat(t.radius),isNaN(t.radius)&&delete t.radius),w.a.Bb(this,t),this.Hf=!!this.F.center,this.setOptions(this.F)},setCenter:function(t,e){w.e.add(this.CLASS_NAME,"setCenter"),(t=w.a.ya(t))&&t instanceof w.U&&(this.set("center",t),this.r("change",{type:"change",target:this}),this.Hf||(this.Hf=!0,this.get("map")&&this.get("map").r("overlays")),e||this.r("setCenter"))},getCenter:function(){return w.e.add(this.CLASS_NAME,"getCenter"),this.get("center",null,!0)},setRadius:function(t,e){w.e.add(this.CLASS_NAME,"setRadius"),this.set("radius",t),this.r("change",{type:"change",target:this}),e||this.r("setRadius")},getPath:function(t){t=t||36;for(var e=this.getCenter(),i=this.getRadius(),n=[],s=0;s<t;s+=1){var a=Math.PI*s/t*2,o=Math.cos(a)*i;a=Math.sin(a)*i,n.push(e.offset(o,a))}return n},getRadius:function(){return w.e.add(this.CLASS_NAME,"getRadius"),this.get("radius",null,!0)},getBounds:function(){var t=this.get("center"),e=this.get("radius");if(!t)return null;var i=t.offset(-e,-e);return t=t.offset(e,e),new w.Vd(i,t)},contains:function(t){return w.e.add(this.CLASS_NAME,"contains"),this.get("center").Ld(t)<=this.get("radius")}}),$.D.GN=$.D.Sf.extend({B:function(t){(t=t||{}).unit="px",void 0===t.radius?t.radius=20:w.a.$j(t.radius,"string")&&(t.radius=parseFloat(t.radius),isNaN(t.radius)&&(t.radius=20)),this.CLASS_NAME="AMap.CircleMarker",$.D.GN.rc.B.apply(this,arguments)},getBounds:function(){var t=this.getCenter();return new w.Vd(t,t.vb())},contains:function(t){w.e.add(this.CLASS_NAME,"contains");var e=this.getMap();if(!e)return!1;var i=this.get("center");return i.Ld(t)<=this.get("radius")*e.getResolution(i)}});var vc=w.aa.extend({B:function(t){var e,i=Array(3);e=t instanceof Array?t:t instanceof w.qj||t instanceof w.Ea?t.elements:arguments,i[0]=e[0]||0,i[1]=e[1]||0,i[2]=e[2]||0,this.elements=i},length:function(){return Math.sqrt(this.XW())},XW:function(){var t=this.elements;return t[0]*t[0]+t[1]*t[1]+t[2]*t[2]},normalize:function(){var t=this.elements,e=t[0],i=t[1],n=t[2],s=Math.sqrt(e*e+i*i+n*n);return s?1===s||(s=1/s,t[0]=e*s,t[1]=i*s,t[2]=n*s):(t[0]=0,t[1]=0,t[2]=0),this},vb:function(){return new w.Ea(this)},copy:function(t){var e=this.elements;return t=t.elements,e[0]=t[0],e[1]=t[1],e[2]=t[2],this},set:function(t,e,i){var n=this.elements;n[0]=t,n[1]=e,n[2]=i},qb:function(t){var e=this.elements;return t=t.elements,e[0]===t[0]&&e[1]===t[1]&&e[2]===t[2]},Hr:function(t){var e=this.elements;return e[0]*=t,e[1]*=t,e[2]*=t,this},add:function(t){var e=this.elements;return t=t.elements,e[0]+=t[0],e[1]+=t[1],e[2]+=t[2],this},s$:function(t,e){var i=t.elements,n=e.elements,s=this.elements;return s[0]=i[0]+n[0],s[1]=i[1]+n[1],s[2]=i[2]+n[2],this},sub:function(t){t=t.elements;var e=this.elements;return e[0]-=t[0],e[1]-=t[1],e[2]-=t[2],this},ev:function(t,e){var i=t.elements,n=e.elements,s=this.elements;return s[0]=i[0]-n[0],s[1]=i[1]-n[1],s[2]=i[2]-n[2],this},gJ:function(t){t=t.elements;var e=this.elements;return e[0]=e[1]*t[2]-e[2]*t[1],e[1]=e[2]*t[0]-e[0]*t[2],e[2]=e[0]*t[1]-e[1]*t[0],this},Rt:function(t,e){var i=t.elements,n=e.elements,s=this.elements;return s[0]=i[1]*n[2]-i[2]*n[1],s[1]=i[2]*n[0]-i[0]*n[2],s[2]=i[0]*n[1]-i[1]*n[0],this},Qj:function(t){t=t.elements;var e=this.elements;return e[0]*t[0]+e[1]*t[1]+e[2]*t[2]},Ld:function(t){return Math.sqrt(this.KU(t))},KU:function(t){var e=t.elements,i=this.elements;t=i[0]-e[0];var n=i[1]-e[1];return t*t+n*n+(e=i[2]-e[2])*e},Ye:function(t){var e=this.elements[0],i=this.elements[1],n=this.elements[2],s=1/((t=t.elements)[3]*e+t[7]*i+t[11]*n+t[15]);return this.elements[0]=(t[0]*e+t[4]*i+t[8]*n+t[12])*s,this.elements[1]=(t[1]*e+t[5]*i+t[9]*n+t[13])*s,this.elements[2]=(t[2]*e+t[6]*i+t[10]*n+t[14])*s,this}});w.Ea=vc,w.Ea.Sj({Qj:"dot",vb:"clone",add:"add",sub:"sub",s$:"addVectors",ev:"subVectors",Rt:"crossVectors",normalize:"normalize",length:"length"});var wc=w.aa.extend({B:function(t){var e,i=Array(4);e=t instanceof Array?t:arguments,i[0]=e[0],i[1]=e[1],i[2]=e[2],i[3]=e[3]||1,this.elements=i},copy:function(t){var e=this.elements;return t=t.elements,e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=void 0!==t[3]?t[3]:1,this},multiply:function(t){var e=this.elements;e[0]*=t,e[1]*=t,e[2]*=t,e[3]*=t},Ye:function(t){var e=this.elements[0],i=this.elements[1],n=this.elements[2],s=this.elements[3];return t=t.elements,this.elements[0]=t[0]*e+t[4]*i+t[8]*n+t[12]*s,this.elements[1]=t[1]*e+t[5]*i+t[9]*n+t[13]*s,this.elements[2]=t[2]*e+t[6]*i+t[10]*n+t[14]*s,this.elements[3]=t[3]*e+t[7]*i+t[11]*n+t[15]*s,this}}),tM,uM,vM,wM;function xc(t,e){this.Bu=void 0!==t?t:new w.Ea(1,0,0),this.Nx=void 0!==e?e:0}function yc(t,e,i,n,s){return t.Bu.set(e,i,n),t.Nx=s,t}function zc(t,e,i,n,s,a){this.Ty=[void 0!==t?t:new w.Is,void 0!==e?e:new w.Is,void 0!==i?i:new w.Is,void 0!==n?n:new w.Is,void 0!==s?s:new w.Is,void 0!==a?a:new w.Is]}w.qj=wc,w.Is=xc,xc.prototype={set:function(t,e){return this.Bu.copy(t),this.Nx=e,this},normalize:function(){var t=1/this.Bu.length();return this.Bu.Hr(t),this.Nx*=t,this},FC:function(t){return this.Bu.Qj(t)+this.Nx}},w.NN=zc,zc.prototype={set:function(t,e,i,n,s,a){var o=this.Ty;return o[0].copy(t),o[1].copy(e),o[2].copy(i),o[3].copy(n),o[4].copy(s),o[5].copy(a),this},vb:function(){return(new w.NN).copy(this)},copy:function(t){for(var e=this.Ty,i=0;i<6;i++)e[i].copy(t.Ty[i]);return this},pD:(tM=new w.Ea,uM=new w.Ea,vM=tM.elements,wM=uM.elements,function(t){var e=this.Ty,i=t.max.elements;t=t.min.elements;for(var n=0;n<6;n++){var s=e[n],a=s.Bu.elements;if(vM[0]=0<a[0]?t[0]:i[0],wM[0]=0<a[0]?i[0]:t[0],vM[1]=0<a[1]?t[1]:i[1],wM[1]=0<a[1]?i[1]:t[1],vM[2]=0<a[2]?t[2]:i[2],wM[2]=0<a[2]?i[2]:t[2],a=s.FC(tM),s=s.FC(uM),a<0&&s<0)return!1}return!0})},function(s){function o(t){this.elements=t||[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}s.ZN=function(t){this.elements=[t.elements[0],t.elements[1],t.elements[2],t.elements[4],t.elements[5],t.elements[6],t.elements[8],t.elements[9],t.elements[10]]},o.prototype.vM=function(){var t=this.elements;t[0]=1,t[4]=0,t[8]=0,t[12]=0,t[1]=0,t[5]=1,t[9]=0,t[13]=0,t[2]=0,t[6]=0,t[10]=1,t[14]=0,t[3]=0,t[7]=0,t[11]=0,t[15]=1},o.prototype.set=function(t){var e,i;if((e=t.elements)!==(i=this.elements)){for(t=0;t<16;++t)i[t]=e[t];return this}},o.prototype.toFixed=function(t){for(var e=this.elements,i=0;i<16;++i)e[i]=s.a.Sc(e[i],t);return this},o.prototype.multiply=o.prototype.concat=function(t){var e,i,n,s,a,o,r;if(i=e=this.elements,e===(n=t.elements))for(n=Array(16),t=0;t<16;++t)n[t]=e[t];for(t=0;t<4;t++)s=i[t],a=i[t+4],o=i[t+8],r=i[t+12],e[t]=s*n[0]+a*n[1]+o*n[2]+r*n[3],e[t+4]=s*n[4]+a*n[5]+o*n[6]+r*n[7],e[t+8]=s*n[8]+a*n[9]+o*n[10]+r*n[11],e[t+12]=s*n[12]+a*n[13]+o*n[14]+r*n[15];return this},o.prototype.Jf=function(t){var e=this.elements;t=t.elements;var i=new s.qj,n=i.elements;return n[0]=t[0]*e[0]+t[1]*e[4]+t[2]*e[8]+t[3]*e[12],n[1]=t[0]*e[1]+t[1]*e[5]+t[2]*e[9]+t[3]*e[13],n[2]=t[0]*e[2]+t[1]*e[6]+t[2]*e[10]+t[3]*e[14],n[3]=t[0]*e[3]+t[1]*e[7]+t[2]*e[11]+t[3]*e[15],i},o.prototype.WZ=function(){var t,e;return e=(t=this.elements)[1],t[1]=t[4],t[4]=e,e=t[2],t[2]=t[8],t[8]=e,e=t[3],t[3]=t[12],t[12]=e,e=t[6],t[6]=t[9],t[9]=e,e=t[7],t[7]=t[13],t[13]=e,e=t[11],t[11]=t[14],t[14]=e,this},o.prototype.Pha=function(t){var e,i,n;if(e=t.elements,t=this.elements,(i=Array(16))[0]=e[5]*e[10]*e[15]-e[5]*e[11]*e[14]-e[9]*e[6]*e[15]+e[9]*e[7]*e[14]+e[13]*e[6]*e[11]-e[13]*e[7]*e[10],i[4]=-e[4]*e[10]*e[15]+e[4]*e[11]*e[14]+e[8]*e[6]*e[15]-e[8]*e[7]*e[14]-e[12]*e[6]*e[11]+e[12]*e[7]*e[10],i[8]=e[4]*e[9]*e[15]-e[4]*e[11]*e[13]-e[8]*e[5]*e[15]+e[8]*e[7]*e[13]+e[12]*e[5]*e[11]-e[12]*e[7]*e[9],i[12]=-e[4]*e[9]*e[14]+e[4]*e[10]*e[13]+e[8]*e[5]*e[14]-e[8]*e[6]*e[13]-e[12]*e[5]*e[10]+e[12]*e[6]*e[9],i[1]=-e[1]*e[10]*e[15]+e[1]*e[11]*e[14]+e[9]*e[2]*e[15]-e[9]*e[3]*e[14]-e[13]*e[2]*e[11]+e[13]*e[3]*e[10],i[5]=e[0]*e[10]*e[15]-e[0]*e[11]*e[14]-e[8]*e[2]*e[15]+e[8]*e[3]*e[14]+e[12]*e[2]*e[11]-e[12]*e[3]*e[10],i[9]=-e[0]*e[9]*e[15]+e[0]*e[11]*e[13]+e[8]*e[1]*e[15]-e[8]*e[3]*e[13]-e[12]*e[1]*e[11]+e[12]*e[3]*e[9],i[13]=e[0]*e[9]*e[14]-e[0]*e[10]*e[13]-e[8]*e[1]*e[14]+e[8]*e[2]*e[13]+e[12]*e[1]*e[10]-e[12]*e[2]*e[9],i[2]=e[1]*e[6]*e[15]-e[1]*e[7]*e[14]-e[5]*e[2]*e[15]+e[5]*e[3]*e[14]+e[13]*e[2]*e[7]-e[13]*e[3]*e[6],i[6]=-e[0]*e[6]*e[15]+e[0]*e[7]*e[14]+e[4]*e[2]*e[15]-e[4]*e[3]*e[14]-e[12]*e[2]*e[7]+e[12]*e[3]*e[6],i[10]=e[0]*e[5]*e[15]-e[0]*e[7]*e[13]-e[4]*e[1]*e[15]+e[4]*e[3]*e[13]+e[12]*e[1]*e[7]-e[12]*e[3]*e[5],i[14]=-e[0]*e[5]*e[14]+e[0]*e[6]*e[13]+e[4]*e[1]*e[14]-e[4]*e[2]*e[13]-e[12]*e[1]*e[6]+e[12]*e[2]*e[5],i[3]=-e[1]*e[6]*e[11]+e[1]*e[7]*e[10]+e[5]*e[2]*e[11]-e[5]*e[3]*e[10]-e[9]*e[2]*e[7]+e[9]*e[3]*e[6],i[7]=e[0]*e[6]*e[11]-e[0]*e[7]*e[10]-e[4]*e[2]*e[11]+e[4]*e[3]*e[10]+e[8]*e[2]*e[7]-e[8]*e[3]*e[6],i[11]=-e[0]*e[5]*e[11]+e[0]*e[7]*e[9]+e[4]*e[1]*e[11]-e[4]*e[3]*e[9]-e[8]*e[1]*e[7]+e[8]*e[3]*e[5],i[15]=e[0]*e[5]*e[10]-e[0]*e[6]*e[9]-e[4]*e[1]*e[10]+e[4]*e[2]*e[9]+e[8]*e[1]*e[6]-e[8]*e[2]*e[5],0==(n=e[0]*i[0]+e[1]*i[4]+e[2]*i[8]+e[3]*i[12]))return this;for(n=1/n,e=0;e<16;e++)t[e]=i[e]*n;return this},o.prototype.Wi=function(){return(new o).Pha(this)},o.prototype.dZ=function(t,e,i,n,s){var a,o,r,h;if(t===e||i===n||1===s)throw"null frustum";return o=1/(e-t),r=1/(n-i),h=1/(1-s),(a=this.elements)[0]=2*o,a[1]=0,a[2]=0,a[3]=0,a[4]=0,a[5]=2*r,a[6]=0,a[7]=0,a[8]=0,a[9]=0,a[10]=-2*h,a[11]=0,a[12]=-(e+t)*o,a[13]=-(n+i)*r,a[14]=-(1+s)*h,a[15]=1,this},o.prototype.Nha=function(t,e,i,n,s,a){var o,r,h,l;if(t===e||n===i||s===a)throw"null frustum";if(s<=0)throw"near <= 0";if(a<=0)throw"far <= 0";return r=1/(e-t),h=1/(n-i),l=1/(a-s),(o=this.elements)[0]=2*s*r,o[1]=0,o[2]=0,o[3]=0,o[4]=0,o[5]=2*s*h,o[6]=0,o[7]=0,o[8]=(e+t)*r,o[9]=(n+i)*h,o[10]=-(a+s)*l,o[11]=-1,o[12]=0,o[13]=0,o[14]=-2*s*a*l,o[15]=0,this},o.prototype.eV=function(t,e,i,n,s,a){return this.concat((new o).Nha(t,e,i,n,s,a))},o.prototype.Tha=function(t,e,i,n){var s,a;if(i===n||0===e)throw"null frustum";if(i<=0)throw"near <= 0";if(n<=0)throw"far <= 0";if(t/=2,0===(a=Math.sin(t)))throw"null frustum";s=1/(n-i),a=Math.cos(t)/a,(t=this.elements)[0]=a/e,t[1]=0,t[2]=0,t[3]=0,t[4]=0,t[5]=a,t[6]=0,t[7]=0,t[8]=0,t[9]=0,t[10]=-(n+i)*s,t[11]=-1,t[12]=0,t[13]=0,t[14]=-2*i*n*s,t[15]=0},o.prototype.as=function(t,e,i){var n=this.elements;return n[0]=t,n[4]=0,n[8]=0,n[12]=0,n[1]=0,n[5]=e,n[9]=0,n[13]=0,n[2]=0,n[6]=0,n[10]=i,n[14]=0,n[3]=0,n[7]=0,n[11]=0,n[15]=1,this},o.prototype.scale=function(t,e,i){var n=this.elements;return n[0]*=t,n[4]*=e,n[8]*=i,n[1]*=t,n[5]*=e,n[9]*=i,n[2]*=t,n[6]*=e,n[10]*=i,n[3]*=t,n[7]*=e,n[11]*=i,this},o.prototype.hZ=function(t,e,i){var n=this.elements;return n[12]=t,n[13]=e,n[14]=i,this},o.prototype.translate=function(t,e,i){var n=this.elements;return n[12]+=n[0]*t+n[4]*e+n[8]*i,n[13]+=n[1]*t+n[5]*e+n[9]*i,n[14]+=n[2]*t+n[6]*e+n[10]*i,n[15]+=n[3]*t+n[7]*e+n[11]*i,this},o.prototype.$u=function(t,e,i,n){var s,a,o,r,h,l,c,u;return t=Math.PI*t/180,s=this.elements,a=Math.sin(t),t=Math.cos(t),0!==e&&0===i&&0===n?(e<0&&(a=-a),s[0]=1,s[4]=0,s[8]=0,s[12]=0,s[1]=0,s[5]=t,s[9]=-a,s[13]=0,s[2]=0,s[6]=a,s[10]=t,s[14]=0,s[3]=0,s[7]=0,s[11]=0):0===e&&0!==i&&0===n?(i<0&&(a=-a),s[0]=t,s[4]=0,s[8]=a,s[12]=0,s[1]=0,s[5]=1,s[9]=0,s[13]=0,s[2]=-a,s[6]=0,s[10]=t,s[14]=0,s[3]=0,s[7]=0,s[11]=0):0===e&&0===i&&0!==n?(n<0&&(a=-a),s[0]=t,s[4]=-a,s[8]=0,s[12]=0,s[1]=a,s[5]=t,s[9]=0,s[13]=0,s[2]=0,s[6]=0,s[10]=1,s[14]=0,s[3]=0,s[7]=0,s[11]=0):(1!==(o=Math.sqrt(e*e+i*i+n*n))&&(e*=o=1/o,i*=o,n*=o),o=1-t,r=e*i,h=i*n,l=n*e,c=e*a,u=i*a,a*=n,s[0]=e*e*o+t,s[1]=r*o+a,s[2]=l*o-u,s[3]=0,s[4]=r*o-a,s[5]=i*i*o+t,s[6]=h*o+c,s[7]=0,s[8]=l*o+u,s[9]=h*o-c,s[10]=n*n*o+t,s[11]=0,s[12]=0,s[13]=0,s[14]=0),s[15]=1,this},o.prototype.rotate=function(t,e,i,n){return this.concat((new o).$u(t,e,i,n))},o.prototype.nM=function(t){return this.rotate(t,1,0,0)},o.prototype.oM=function(t){return this.rotate(t,0,1,0)},o.prototype.pM=function(t){return this.rotate(t,0,0,1)},s.ge=o}(w),$.D.Up=$.D.dc.extend({F:{visible:!0,zIndex:10,strokeColor:"#006600",strokeOpacity:.9,strokeWeight:3,strokeStyle:"solid",strokeDasharray:[10,5],radius:[1e3,1e3],fillColor:"#006600",fillOpacity:.9},B:function(){var i=this,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},e=(t=w.extend(this.F,t),this.yo(t));t.path=e,$.D.Up.rc.B.call(this,t),this.set("path",e),this.get("center")&&this.get("map")||(this.Hf=!1),this.CLASS_NAME="AMap.Ellipse",w.e.eb(this.CLASS_NAME,t),this.on("movepoly",function(t){var e=i.get("map");t=e.qe(e.Fb(i.get("center")).add(t.Ku)),"3D"===e.view.type&&i.set("deltaPos",[0,0]),i.set("center",t)})},yo:function(){var t=[],e=(s=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{}).center||this.get("center"),i=s.map||this.get("map");if(e&&i){e=w.a.ya(e);for(var n=s.radius||this.get("radius"),s=(a=i.Fb(e)).x,a=a.y,o=(n=(o=w.a.map(n,function(t){return t/i.getResolution(e,20)}))[0],o[1]),r=((l=w.l.Y)?4:1)*Math.PI/180,h=0,l=l?89:359;h<=l;h++){var c=h*r;c={x:s+n*Math.cos(c),y:a+o*Math.sin(c)},t.push(i.qe(c))}}return t},mapChanged:function(){w.a.bm($.D.Up.rc.mapChanged)&&$.D.Up.rc.mapChanged.apply(this),this.setPath(this.yo()),!this.Hf&&this.get("map")&&(this.Hf=!0,this.get("map").r("overlays"))},setCenter:function(t,e){w.e.add(this.CLASS_NAME,"setCenter"),(t=w.a.ya(t))&&t instanceof w.U&&(this.set("center",t),this.set("path",this.yo()),this.r("change",{type:"change",target:this}),this.Hf||(this.Hf=!0,this.get("map")&&this.get("map").r("overlays")),e||this.r("setCenter"))},setRadius:function(t){var e=1<arguments.length&&void 0!==arguments[1]&&arguments[1];w.e.add(this.CLASS_NAME,"setRadius"),t&&2===t.length&&(this.set("radius",t),this.set("path",this.yo()),e||(this.r("change",{type:"change",target:this}),this.r("setPath")))},setOptions:function(t){$.D.Up.rc.setOptions.call(this,t),t.radius&&this.setRadius(t.radius,!0),t.center&&this.setCenter(t.center,!0)},getRadius:function(){return w.e.add(this.CLASS_NAME,"getRadius"),this.get("radius",null,!0)},getCenter:function(){return w.e.add(this.CLASS_NAME,"getCenter"),this.get("center",null,!0)}}),$.D.$p=$.D.dc.extend({F:{visible:!0,zIndex:10,strokeColor:"#006600",strokeOpacity:.9,strokeWeight:3,strokeStyle:"solid",strokeDasharray:[10,5],fillColor:"#006600",fillOpacity:.9},B:function(){var s=this,t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},e=(t=w.extend(this.F,t),this.yo(t));t.path=e,$.D.$p.rc.B.call(this,t),this.setPath(e),this.F.bounds&&this.get("map")||(this.Hf=!1),this.CLASS_NAME="AMap.Rectangle",w.e.eb(this.CLASS_NAME,t),this.on("movepoly",function(t){var e=s.get("map"),i=s.get("bounds"),n=e.qe(e.Fb(i.Yb).add(t.Ku));t=e.qe(e.Fb(i.Qb).add(t.Ku)),"3D"===e.view.type&&s.set("deltaPos",[0,0]),s.set("bounds",new w.Vd(n,t))})},yo:function(){var e=[];if(i=(0<arguments.length&&void 0!==arguments[0]?arguments[0]:{}).bounds||this.get("bounds")){var t=i.getSouthWest(),i=i.getNorthEast();w.a.Pb([new w.U(t.P,t.O),new w.U(i.P,t.O),new w.U(i.P,i.O),new w.U(t.P,i.O)],function(t){return e.push(t)})}return e},mapChanged:function(){w.a.bm($.D.$p.rc.mapChanged)&&$.D.$p.rc.mapChanged.apply(this),this.setPath(this.yo()),!this.Hf&&this.get("map")&&(this.Hf=!0,this.get("map").r("overlays"))},setOptions:function(t){$.D.$p.rc.setOptions.call(this,t),t.bounds&&this.setBounds(t.bounds,!0)},setBounds:function(t){var e=1<arguments.length&&void 0!==arguments[1]&&arguments[1];w.e.add(this.CLASS_NAME,"setBounds"),t&&t instanceof w.Vd&&(this.set("bounds",t),this.set("path",this.yo()),this.Hf||(this.Hf=!0,this.get("map")&&this.get("map").r("overlays")),e||(this.r("change",{type:"change",target:this}),this.r("setBounds")))},getBounds:function(){return w.e.add(this.CLASS_NAME,"getCenter"),this.get("bounds",null,!0)}}),$.D.jO=$.D.cb.extend({F:{text:"",textAlign:"center",verticalAlign:"middle",offset:new w.G(0,0)},B:function(t){$.D.jO.rc.B.apply(this,arguments),this.CLASS_NAME="AMap.Text",w.e.eb(this.CLASS_NAME,t),this.R4(),this.setText(this.get("text")),this.setStyle(this.get("style"))},R4:function(){if(!this.ox){var t=document.createElement("div");t.className="amap-overlay-text-container",this.ox=t}},getText:function(){return w.e.add(this.CLASS_NAME,"getText"),this.get("text",null,!0)},setText:function(t){w.e.add(this.CLASS_NAME,"setText"),t||0===t||(t=""),w.j.Gia(this.ox,"amap-overlay-text-empty",!t),w.e.add(this.CLASS_NAME,"setText"),this.set("text",t),this.ox.innerHTML=t,this.pY()},setStyle:function(t){w.e.add(this.CLASS_NAME,"setStyle"),w.extend(this.ox.style,t),this.pY()},pY:function(){this.setContent(this.ox),this.setShadow(this.getShadow())}}),w.QN={find:function(t){return w.a.find(this.Ps||[],t)},VC:function(){return this.Ps||[]},Fc:function(t){return null!==this.find(t)},add:function(t){var e=this,i=1<arguments.length&&void 0!==arguments[1]?arguments[1]:w.a.pp,n=this.Ps||(this.Ps=[]);return w.a.isArray(t)?w.a.Pb(t,function(t){e.add(t,i)}):null===this.find(t)&&(n.push(t),i(t)),this},remove:function(t){var e=this,i=1<arguments.length&&void 0!==arguments[1]?arguments[1]:w.a.pp,n=this.Ps;if(n)if(w.a.isArray(t))w.a.Pb(t,function(t){e.remove(t,i)});else{var s=w.a.indexOf(n,t);-1!==s&&(i(n[s]),n.splice(s,1))}return this},clear:function(){return this.Pb(0<arguments.length&&void 0!==arguments[0]?arguments[0]:w.a.pp),this.Ps=[],this},Pb:function(){var n=0<arguments.length&&void 0!==arguments[0]?arguments[0]:w.a.pp,s=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null;return w.a.Pb(this.Ps||[],function(){for(var t=arguments.length,e=Array(t),i=0;i<t;i++)e[i]=arguments[i];t=e[0],w.a.bm(t.Pb)?t.Pb(n,s):n.apply(s||t,e)}),this},$l:function(e){for(var t=arguments.length,i=Array(1<t?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];return this.Pb(function(t){t&&w.a.bm(t[e])&&t[e].apply(t,i)}),this},h:function(t){var e=arguments;return this.Pb(function(t){t.on.apply(t,e)}),this},I:function(t){var e=arguments;return this.Pb(function(t){t.off.apply(t,e)}),this},addListener:function(){this.h.apply(this,arguments)},tx:function(e){var i=1<arguments.length&&void 0!==arguments[1]?arguments[1]:w.a.pp,n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;this.Pb(function(t){t.on.call(t,event,function(){i(),t.off(e)},n)})},removeListener:function(t){this.I(t.FJ,t.xK,t.ke)},N:function(e,i){this.Pb(function(t){t.emit(e,i)})}},$.D.rl=$.D.Lg.extend({ga:[w.QN],B:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:[];$.D.rl.rc.B.apply(this),this.CLASS_NAME="AMap.OverlayGroup",this.map=null,this.add(t)},Sb:function(t){return this.$l("setMap",t),this.$l("setMap",t),this.set("map",t),this.map=t,this},mapChanged:function(){},ux:function(t){var e=this;return this.add(t,function(t){e.map&&t.setMap(e.map)}),this},Qu:function(t){var e=this;return this.remove(t,function(t){t.getMap()===e.map&&t.setMap(null)}),this},Dc:function(){var e=this;return this.clear(function(t){t.getMap()===e.map&&t.setMap(null)}),this},nu:function(){return this.$l("hide"),this},show:function(){return this.$l("show"),this},Bb:function(){return this.$l("setOptions",0<arguments.length&&void 0!==arguments[0]?arguments[0]:{}),this}}),$.D.rl.Sj({find:"getOverlay",VC:"getOverlays",ux:["addOverlay","addOverlays"],Fc:"hasOverlay",Qu:["removeOverlay","removeOverlays"],Dc:"clearOverlays",Pb:"eachOverlay",Sb:"setMap",Bb:"setOptions",show:"show",nu:"hide",h:"on",I:"off"}),function(o,a){function r(t,e){if(!t.length)return!1;for(var i=0,n=t.length;i<n;i++){var s=t[i];if(!("*"===e||s&&s.geometry&&s.geometry.type===e)||s&&s.properties&&!s.properties._isAmap)return!1}return!0}function h(t){for(var e=[],i=0,n=t.length;i<n;i++)e.push(t[i].geometry.coordinates);return e}function l(t){if(!t)return[];for(var e=[],i=0,n=(t=a.a.ya(t)).length;i<n;i++)e[i]=t[i].lk();return e}o.D.ON=o.D.rl.extend({B:function(t){if(o.D.ON.rc.B.call(this,[]),this.CLASS_NAME="AMap.GeoJSON",a.e.eb(this.CLASS_NAME,t),this.F=a.extend({getMarker:function(t,e){return new o.D.cb({position:e})},getPolyline:function(t,e){return new o.D.Gb({path:e})},getPolygon:function(t,e){return new o.D.dc({path:e})},coordsToLatLng:function(t){return t}},t),!this.F.coordsToLatLngs){var s=this.F.coordsToLatLng;this.F.coordsToLatLngs=function(t){for(var e=[],i=0,n=t.length;i<n;i++)e.push(s.call(null,t[i]));return e}}this.importData(this.F.geoJSON)},importData:function(t){if(t&&(t=this.M4(t)).length){this.ux(t);var e=this.F.map;if(e)for(var i=0,n=t.length;i<n;i++)t[i].setMap(e)}},toGeoJSON:function(){for(var t=this.VC(),e=[],i=0,n=t.length;i<n;i++)e[i]=t[i].toGeoJSON();return e},M4:function(t){if(t){a.a.isArray(t)||(t=[t]);for(var e=[],i=0,n=t.length;i<n;i++){var s=this.N4(t[i]);s&&e.push(s)}return e}},VO:function(t){var e="Feature"===t.type?t.geometry:t;return e=this.F.coordsToLatLng(e?e.coordinates:null),e=this.F.getMarker(t,e),this.uo(t,e),e},f2:function(t){for(var e,i=[],n=0,s=(e=(e="Feature"===t.type?t.geometry:t)?e.coordinates:null).length;n<s;n++)i.push(this.VO(a.extend({},t,{type:"Feature",properties:{_isAmap:!0,_pointIndex:n,_parentProperities:t.properties},geometry:{type:"Point",coordinates:e[n]}})));return e=new o.D.rl(i),this.uo(t,e),e},UO:function(t){var e="Feature"===t.type?t.geometry:t;return e=this.F.coordsToLatLngs(e?e.coordinates:null),e=this.F.getPolyline(t,e),this.uo(t,e),e},e2:function(t){for(var e,i=[],n=0,s=(e=(e="Feature"===t.type?t.geometry:t)?e.coordinates:null).length;n<s;n++)i.push(this.UO(a.extend({},t,{type:"Feature",properties:{_isAmap:!0,_lineStringIndex:n,_parentProperities:t.properties},geometry:{type:"LineString",coordinates:e[n]}})));return e=new o.D.rl(i),this.uo(t,e),e},WO:function(t){for(var e,i=[],n=0,s=(e=(e="Feature"===t.type?t.geometry:t)?e.coordinates:null).length;n<s;n++)i.push(this.F.coordsToLatLngs(e[n]));return e=this.F.getPolygon(t,i),this.uo(t,e),e},g2:function(t){for(var e,i=[],n=0,s=(e=(e="Feature"===t.type?t.geometry:t)?e.coordinates:null).length;n<s;n++)i.push(this.WO(a.extend({},t,{type:"Feature",properties:{_isAmap:!0,_polygonIndex:n,_parentProperities:t.properties},geometry:{type:"Polygon",coordinates:e[n]}})));return e=new o.D.rl(i),this.uo(t,e),e},Y1:function(t){for(var e=("Feature"===t.type?t.geometry:t).geometries,i=[],n=0,s=e.length;n<s;n++)i.push(this.JG(a.extend({},t,{type:"Feature",properties:{_isAmap:!0,_geometryIndex:n,_parentProperities:t.properties},geometry:e[n]})));return e=new o.D.rl(i),this.uo(t,e),e},N4:function(t){if(t)switch(t.type){case"Feature":return this.JG(t);case"FeatureCollection":for(var e=t.features,i=[],n=0,s=e.length;n<s;n++){var a=this.JG(e[n]);a&&i.push(a)}return e=new o.D.rl(i),this.uo(t,e),e;default:throw Error("Invalid GeoJSON object."+t.type)}},uo:function(t,e){e&&t.properties&&e.setExtData&&e.setExtData(a.extend({},e.getExtData()||{},{_geoJsonProperties:t.properties}))},JG:function(t){var e="Feature"===t.type?t.geometry:t;if(!(e&&e.coordinates||e))return null;switch(e.type){case"Point":return this.VO(t);case"MultiPoint":return this.f2(t);case"LineString":return this.UO(t);case"MultiLineString":return this.e2(t);case"Polygon":return this.WO(t);case"MultiPolygon":return this.g2(t);case"GeometryCollection":return this.Y1(t);default:throw Error("Invalid GeoJSON geometry."+e.type)}}}),o.D.rl.ob({toGeoJSON:function(t){for(var e=[],i=0,n=(t=t||this.VC()).length;i<n;i++)t[i].toGeoJSON&&(e[i]=t[i].toGeoJSON());if(t=this.getExtData()||{},r(e,"Point"))e={type:"Feature",properties:t._geoJsonProperties||{},geometry:{type:"MultiPoint",coordinates:h(e)}};else if(r(e,"LineString"))e={type:"Feature",properties:t._geoJsonProperties||{},geometry:{type:"MultiLineString",coordinates:h(e)}};else if(r(e,"Polygon"))e={type:"Feature",properties:t._geoJsonProperties||{},geometry:{type:"MultiPolygon",coordinates:h(e)}};else if(r(e,"*")){t=t._geoJsonProperties||{},i=[],n=0;for(var s=e.length;n<s;n++)i.push(e[n].geometry);e={type:"Feature",properties:t,geometry:{type:"GeometryCollection",geometries:i}}}else e={type:"FeatureCollection",properties:t._geoJsonProperties||{},features:e};return e}}),o.D.cb.ob({toGeoJSON:function(){return{type:"Feature",properties:(this.getExtData()||{})._geoJsonProperties||{},geometry:{type:"Point",coordinates:this.getPosition().lk()}}}}),o.D.Gb.ob({toGeoJSON:function(){return{type:"Feature",properties:(this.getExtData()||{})._geoJsonProperties||{},geometry:{type:"LineString",coordinates:l(this.getPath())}}}}),o.D.dc.ob({toGeoJSON:function(){var t,e=(this.getExtData()||{})._geoJsonProperties||{};if(t=this.getPath()){t=a.a.ya(t),a.a.isArray(t[0])||(t=[t]);for(var i=[],n=0,s=t.length;n<s;n++)i[n]=l(t[n]);t=i}else t=[];return{type:"Feature",properties:e,geometry:{type:"Polygon",coordinates:t}}}})}($,w),$.w.gF=$.w.qc.extend({ga:[w.QN],B:function(t){$.w.gF.rc.B.call(this,1<arguments.length&&void 0!==arguments[1]?arguments[1]:{}),this.CLASS_NAME="AMap.LayerGroup",this.map=null,this.add(t)},Sb:function(t){return this.$l("setMap",t),this.set("map",t),this.map=t,this},mapChanged:function(){},aC:function(t){var e=this;return this.add(t,function(t){e.map&&t.setMap(e.map)}),this},fk:function(t){var e=this;return this.remove(t,function(t){t.getMap()===e.map&&t.setMap(null)}),this},uaa:function(){var e=this;return this.clear(function(t){t.getMap()===e.map&&t.setMap(null)}),this},nu:function(){return this.$l("hide"),this},show:function(){return this.$l("show"),this},reload:function(){return this.$l("reload"),this},Bb:function(){var e=this,i=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},t=w.a.keys(i);return w.a.Pb(t,function(t){e.$l("set",t,i[t])}),this}}),$.w.gF.Sj({find:"getLayer",VC:"getLayers",aC:["addLayer","addLayers"],Fc:"hasLayer",fk:["removeLayer","removeLayers"],uaa:"clearLayers",Pb:"eachLayer",Sb:"setMap",Bb:"setOptions",show:"show",nu:"hide",reload:"reload",h:"on",I:"off"}),w.t0=$.Ob.extend({B:function(t,e){e&&(e.center=e.position,e.zoom=11),arguments.callee.oa.apply(this,arguments),window.console&&window.console.log&&window.console.log("高德地图JSAPI街景已下线,感谢您的支持。")}}),w.u0=$.D.cb.extend({B:function(t){arguments.callee.oa.apply(this,arguments)}}),w.Qc={Ko:function(t,e){for(var i=1/0,n=0,s=1,a=e.length;s<a;n=s,s+=1)i=Math.min(i,w.Qc.iia(t,[e[n],e[s]]));return Math.sqrt(i)},iia:function(t,e){return this.hia(t,this.oU(t,e))},hia:function(t,e){var i=t[0]-e[0],n=t[1]-e[1];return i*i+n*n},Nna:function(t,e,i,n){if(n=n||1e-6,i[0]===e[0]){var s=Math.min(e[1],i[1]);return e=Math.max(e[1],i[1]),Math.abs(t[0]-i[0])<n&&t[1]>=s&&t[1]<=e}s=Math.min(e[0],i[0]);var a=Math.max(e[0],i[0]);return Math.abs((i[1]-e[1])/(i[0]-e[0])*(t[0]-e[0])+e[1]-t[1])<n&&t[0]>=s&&t[0]<=a},oU:function(t,e){var i=t[0],n=t[1],s=e[0],a=e[1],o=s[0],r=(s=s[1],a[0]),h=r-o,l=(a=a[1])-s;return(i=0===h&&0===l?0:(h*(i-o)+l*(n-s))/(h*h+l*l||0))<=0||(1<=i?(o=r,s=a):(o+=i*h,s+=i*l)),[o,s]},$o:function(t){for(var e,i,n=t.length,s=0,a=(o=t[n-1])[0],o=o[1],r=0;r<n;r+=1)s+=((e=(i=t[r])[0])-a)*((i=i[1])+o),a=e,o=i;return 0<s},nd:function(t,e,i){var n=t[0];t=t[1];var s,a,o,r,h=!1,l=e.length,c=0;for(r=l-1;c<l;r=c,c+=1){var u=!1;if(s=e[c][0],a=e[c][1],o=e[r][0],r=e[r][1],s===n&&a===t||o===n&&r===t)return!!i;if(a<t==t<=r){if(n===(s=(o-s)*(t-a)/(r-a)+s))return!!i;u=n<s}u&&(h=!h)}return h},dY:function(t,e){function i(t,e,i,n){var s=[t[0]-e[0],t[1]-e[1]],a=[i[0]-n[0],i[1]-n[1]];return t=t[0]*e[1]-t[1]*e[0],i=i[0]*n[1]-i[1]*n[0],[(t*a[0]-i*s[0])*(n=1/(s[0]*a[1]-s[1]*a[0])),(t*a[1]-i*s[1])*n]}function n(t,e,i){return(i[0]-e[0])*(t[1]-e[1])>(i[1]-e[1])*(t[0]-e[0])}var s,a,o,r,h=t;s=e[e.length-2];for(var l=0,c=e.length-1;l<c;l++){a=e[l];var u=h;h=[],o=u[u.length-1];for(var f=0,d=u.length;f<d;f++)n(r=u[f],s,a)?(n(o,s,a)||h.push(i(s,a,o,r)),h.push(r)):n(o,s,a)&&h.push(i(s,a,o,r)),o=r;s=a}return h.length<3?[]:(h.push(h[0]),h)}},function(l){function e(t){for(var e=0,i=t.length,n=0;n<i-1;n++){var s=t[n],a=t[n+1];e+=(a[0]-s[0])*(a[1]+s[1])}return t[i-1][0]===t[0][0]&&t[i-1][1]===t[0][1]||(s=t[i-1],e+=((a=t[0])[0]-s[0])*(a[1]+s[1])),e<=0}function i(t){this.CLASS_NAME="AMap.GeometryUtil",this.Cb=l.extend({onSegmentTolerance:5,crs:"EPSG3857",maxZoom:20},t),this.setCrs(this.Cb.crs)}l.extend(i.prototype,{clone:function(t){return new i(l.extend({},this.Cb,t))},isPoint:function(t){return t&&(t instanceof l.U||l.a.isArray(t)&&!isNaN(t[0]))},normalizePoint:function(t){return t},normalizeLine:function(t){for(var e=[],i=0,n=t.length;i<n;i++)e.push(this.normalizePoint(t[i]));return e},normalizeMultiLines:function(t){l.a.isArray(t)&&this.isPoint(t[0])&&(t=[t]);for(var e=[],i=0,n=t.length;i<n;i++)e.push(this.normalizeLine(t[i]));return e},setCrs:function(t){l.extend(this,t&&t.project&&t.unproject?t:"plane"===t?{normalizePoint:function(t){return t&&t.x&&t.y?[t.x,t.y]:t},distance:function(t,e){var i=t[0]-e[0],n=t[1]-e[1];return Math.sqrt(i*i+n*n)},project:function(t){return t},unproject:function(t){return t},ringArea:function(t){for(var e=[0,0],i=[0,0],n=0,s=t[0],a=t.length,o=2;o<a;o++){var r=t[o-1],h=t[o];e[0]=s[0]-h[0],e[1]=s[1]-h[1],i[0]=s[0]-r[0],i[1]=s[1]-r[1],n+=e[0]*i[1]-e[1]*i[0]}return n/2}}:function(t,e){var i;t:{switch(t){case"EPSG3395":i=l.Fg.JN;break t;case"EPSG4326":i=l.Fg.KN;break t}i=l.Fg.aF}return{project:function(t){return l.a.isArray(t)&&(t=new l.U(t[0],t[1])),i.Fy(t,e).lk()},unproject:function(t){return l.a.isArray(t)&&(t=new l.G(t[0],t[1])),i.Wy(t,e).lk()},normalizePoint:function(t){return l.a.ya(t)},distance:function(t,e){if(l.e.add(this.CLASS_NAME,"distance"),e=this.normalizePoint(e),l.a.isArray(e))return this.distanceToLine(t,e);t=this.normalizePoint(t);var i=l.tk.Uq,n=Math.cos,s=t.O*i,a=e.O*i,o=2*l.tk.zJ;return i=e.P*i-t.P*i,n=(1-n(a-s)+(1-n(i))*n(s)*n(a))/2,o*Math.asin(Math.sqrt(n))},ringArea:function(t){l.e.add(this.CLASS_NAME,"ringArea"),t=this.normalizeLine(t);var e=l.tk.zJ*l.tk.Uq,i=0,n=t.length;if(n<3)return 0;for(var s=0;s<n-1;s+=1){var a=t[s],o=t[s+1],r=a.P*e*Math.cos(a.O*l.tk.Uq),h=(a=a.O*e,o.P*e*Math.cos(o.O*l.tk.Uq));i+=r*o.O*e-h*a}return s=t[s],t=t[0],n=s.P*e*Math.cos(s.O*l.tk.Uq),s=s.O*e,o=t.P*e*Math.cos(t.O*l.tk.Uq),i+=n*t.O*e-o*s,.5*Math.abs(i)},sphericalCalotteArea:function(t){l.e.add(this.CLASS_NAME,"sphericalCalotteArea");var e=l.tk.zJ;return t=e-e*Math.cos(t/e),2*Math.PI*e*t}}}(t,this.Cb.maxZoom))},distance:function(){throw Error("distance Not implemented!")},nt:function(t,e){t=this.normalizeLine(t),this.isPoint(t[0])||(t=t[0]);for(var i=[],n=0,s=t.length;n<s;n++)i.push(this.project(t[n]));return!0===e?i=this.makesureClockwise(i):!1===e&&(i=this.makesureClockwise(i)).reverse(),i},C8:function(t){for(var e=[],i=0,n=t.length;i<n;i++)e.push(this.unproject(t[i]));return e},closestOnSegment:function(t,e,i){return l.e.add(this.CLASS_NAME,"closestOnSegment"),t=l.Qc.oU(this.project(t),this.nt([e,i])),this.unproject(t)},closestOnLine:function(t,e){for(var i,n=1/0,s=0,a=(e=this.normalizeLine(e)).length;s<a-1;s++){var o=this.closestOnSegment(t,e[s],e[s+1]),r=this.distance(t,o);r<n&&(n=r,i=o)}return i},distanceToSegment:function(t,e,i){return this.distanceToLine(t,[e,i])},distanceToLine:function(t,e){e=this.normalizeLine(e),this.isPoint(e[0])||(e=e[0]);for(var i=1/0,n=0,s=e.length;n<s-1;n++){var a=this.closestOnSegment(t,e[n],e[n+1]);i=Math.min(i,this.distance(t,a))}return i},distanceToPolygon:function(t,e){return this.isPointInRing(t,e)?0:this.distanceToLine(t,e)},isPointOnSegment:function(t,e,i,n){return l.e.add(this.CLASS_NAME,"isPointOnSegment"),(!n&&0!==n||n<0)&&(n=this.Cb.onSegmentTolerance),this.distanceToSegment(t,e,i)<=n},isPointOnLine:function(t,e,i){for(var n=0,s=(e=this.normalizeLine(e)).length;n<s-1;n++)if(this.isPointOnSegment(t,e[n],e[n+1],i))return!0;return!1},isPointOnRing:function(t,e,i){for(var n=0,s=(e=this.normalizeLine(e)).length;n<s;n++)if(this.isPointOnSegment(t,e[n],e[n===s-1?0:n+1],i))return!0;return!1},isPointOnPolygon:function(t,e,i){for(var n=0,s=(e=this.normalizeMultiLines(e)).length;n<s;n++)if(this.isPointOnRing(t,e[n],i))return!0;return!1},makesureClockwise:function(t){return e(t)||(t=[].concat(t)).reverse(),t},makesureAntiClockwise:function(t){return e(t)&&(t=[].concat(t)).reverse(),t},isPointInRing:function(t,e){l.e.add(this.CLASS_NAME,"isPointInRing"),e=this.normalizeLine(e);var i=this.nt(e,!0);return l.Qc.nd(this.project(t),i,!1)},isRingInRing:function(t,e){for(var i=0,n=t.length;i<n;i++)if(!this.isPointInRing(t[i],e))return!1;return!0},isPointInPolygon:function(t,e){for(var i,n=0,s=(e=this.normalizeMultiLines(e)).length;n<s&&(i=this.isPointInRing(t,e[n]),0<n&&(i=!i),i);n+=1);return i},doesSegmentsIntersect:function(t,e,i,n){l.e.add(this.CLASS_NAME,"doesSegmentsIntersect"),t=(s=this.nt([t,e,i,n]))[0],e=s[1],i=s[2],n=s[3];var s=!1,a=(n[0]-i[0])*(t[1]-i[1])-(n[1]-i[1])*(t[0]-i[0]),o=(e[0]-t[0])*(t[1]-i[1])-(e[1]-t[1])*(t[0]-i[0]);return 0!=(t=(n[1]-i[1])*(e[0]-t[0])-(n[0]-i[0])*(e[1]-t[1]))&&(o/=t,0<=(e=a/t)&&e<=1&&0<=o&&o<=1&&(s=!0)),s},doesSegmentLineIntersect:function(t,e,i){for(var n=0,s=(i=this.normalizeLine(i)).length;n<s-1;n++)if(this.doesSegmentsIntersect(t,e,i[n],i[n+1]))return!0;return!1},doesSegmentRingIntersect:function(t,e,i){for(var n=0,s=(i=this.normalizeLine(i)).length;n<s;n++)if(this.doesSegmentsIntersect(t,e,i[n],i[n===s-1?0:n+1]))return!0;return!1},doesSegmentPolygonIntersect:function(t,e,i){for(var n=0,s=(i=this.normalizeMultiLines(i)).length;n<s;n++)if(this.doesSegmentRingIntersect(t,e,i[n]))return!0;return!1},doesLineLineIntersect:function(t,e){for(var i=0,n=(t=this.normalizeLine(t)).length;i<n-1;i++)if(this.doesSegmentLineIntersect(t[i],t[i+1],e))return!0;return!1},doesLineRingIntersect:function(t,e){for(var i=0,n=(t=this.normalizeLine(t)).length;i<n-1;i++)if(this.doesSegmentRingIntersect(t[i],t[i+1],e))return!0;return!1},doesPolygonPolygonIntersect:function(t,e){return!!(this.doesRingRingIntersect(e,t)||this.isRingInRing(t,e)||this.isRingInRing(e,t))},doesRingRingIntersect:function(t,e){for(var i=0,n=(t=this.normalizeLine(t)).length;i<n;i++)if(this.doesSegmentRingIntersect(t[i],t[i===n-1?0:i+1],e))return!0;return!1},D2:function(t,e){function i(){var t=[a[0]-o[0],a[1]-o[1]],e=[r[0]-h[0],r[1]-h[1]],i=a[0]*o[1]-a[1]*o[0],n=r[0]*h[1]-r[1]*h[0],s=1/(t[0]*e[1]-t[1]*e[0]);return[(i*e[0]-n*t[0])*s,(i*e[1]-n*t[1])*s]}function n(t){return(o[0]-a[0])*(t[1]-a[1])>(o[1]-a[1])*(t[0]-a[0])}t=this.makesureAntiClockwise(t),e=this.makesureClockwise(e);var a,o,r,h,s=t;a=e[e.length-1];for(var l=0,c=e.length;l<c;l++){o=e[l];var u=s;s=[],r=u[u.length-1];for(var f=0,d=u.length;f<d;f++)n(h=u[f])?(n(r)||s.push(i()),s.push(h)):n(r)&&s.push(i()),r=h;a=o}return s},ringRingClip:function(t,e){l.e.add(this.CLASS_NAME,"ringRingClip"),t=this.nt(t),e=this.nt(e);var i=this.D2(t,e);return this.C8(i)},ringArea:function(){throw Error("distance Not implemented!")},distanceOfLine:function(t){for(var e=0,i=0,n=(t=this.normalizeLine(t)).length;i<n-1;i++)e+=this.distance(t[i],t[i+1]);return e},isClockwise:function(t){return e(t=this.nt(t))}}),l.Vp=new i,l.Yp=new i,l.Yp.setCrs("plane")}(w),function(t){function m(t,e,i,n,s){for(var a,o=0,r=e,h=i-n;r<i;r+=n)o+=(t[h]-t[r])*(t[r+1]+t[h+1]),h=r;if(s===0<o)for(s=e;s<i;s+=n)a=l(s,t[s],t[s+1],a);else for(s=i-n;e<=s;s-=n)a=l(s,t[s],t[s+1],a);return a&&S(a,a.next)&&(L(a),a=a.next),a}function y(t,e){if(!t)return t;e||(e=t);var i,n=t;do{if(i=!1,n.wZ||!S(n,n.next)&&0!==A(n.va,n,n.next))n=n.next;else{if(L(n),(n=e=n.va)===n.next)break;i=!0}}while(i||n!==e);return e}function v(t,e){return t.x-e.x}function b(t,e){var i,n=e,s=t.x,a=t.y,o=-1/0;do{if(a<=n.y&&a>=n.next.y&&n.next.y!==n.y&&(h=n.x+(a-n.y)*(n.next.x-n.x)/(n.next.y-n.y))<=s&&o<h){if((o=h)===s){if(a===n.y)return n;if(a===n.next.y)return n.next}i=n.x<n.next.x?n:n.next}n=n.next}while(n!==e);if(!i)return null;if(s===o)return i.va;var r,h=i,l=i.x,c=i.y,u=1/0;for(n=i.next;n!==h;)s>=n.x&&n.x>=l&&s!==n.x&&x(a<c?s:o,a,l,c,a<c?o:s,a,n.x,n.y)&&((r=Math.abs(a-n.y)/(s-n.x))<u||r===u&&n.x>i.x)&&k(n,t)&&(i=n,u=r),n=n.next;return i}function M(t,e,i,n,s){return 1431655765&((t=858993459&((t=252645135&((t=16711935&((t=32767*(t-i)*s)|t<<8))|t<<4))|t<<2))|t<<1)|(1431655765&((e=858993459&((e=252645135&((e=16711935&((e=32767*(e-n)*s)|e<<8))|e<<4))|e<<2))|e<<1))<<1}function x(t,e,i,n,s,a,o,r){return 0<=(s-o)*(e-r)-(t-o)*(a-r)&&0<=(t-o)*(n-r)-(i-o)*(e-r)&&0<=(i-o)*(a-r)-(s-o)*(n-r)}function A(t,e,i){return(e.y-t.y)*(i.x-e.x)-(e.x-t.x)*(i.y-e.y)}function S(t,e){return t.x===e.x&&t.y===e.y}function C(t,e,i,n){return!!(S(t,e)&&S(i,n)||S(t,n)&&S(i,e))||0<A(t,e,i)!=0<A(t,e,n)&&0<A(i,n,t)!=0<A(i,n,e)}function k(t,e){return A(t.va,t,t.next)<0?0<=A(t,e,t.next)&&0<=A(t,t.va,e):A(t,e,t.va)<0||A(t,t.next,e)<0}function z(t,e){var i=new o(t.Od,t.x,t.y),n=new o(e.Od,e.x,e.y),s=t.next,a=e.va;return(t.next=e).va=t,(i.next=s).va=i,(n.next=i).va=n,(a.next=n).va=a,n}function l(t,e,i,n){return t=new o(t,e,i),n?(t.next=n.next,(t.va=n).next.va=t,n.next=t):(t.va=t).next=t,t}function L(t){t.next.va=t.va,t.va.next=t.next,t.nm&&(t.nm.cj=t.cj),t.cj&&(t.cj.nm=t.nm)}function o(t,e,i){this.Od=t,this.x=e,this.y=i,this.cj=this.nm=this.z=this.next=this.va=null,this.wZ=!1}w.P_={ZM:function(t,e,i){i=i||2;var n,s,a,o,r=(p=e&&e.length)?e[0]*i:t.length,h=m(t,0,r,i,!0),l=[];if(!h)return l;if(p){var c,u,f,d=i,p=[];for(o=0,c=e.length;o<c;o++){(u=m(t,u=e[o]*d,f=o<c-1?e[o+1]*d:t.length,d,!1))===u.next&&(u.wZ=!0);for(var g=f=u;f.x<g.x&&(g=f),(f=f.next)!==u;);p.push(g)}for(p.sort(v),o=0;o<p.length;o++)(d=b(e=p[o],d=h))&&y(e=z(d,e),e.next),h=y(h,h.next)}if(t.length>80*i){for(n=a=t[0],s=p=t[1],d=i;d<r;d+=i)(o=t[d])<n&&(n=o),(e=t[d+1])<s&&(s=e),a<o&&(a=o),p<e&&(p=e);a=0!==(a=Math.max(a-n,p-s))?1/a:0}return function t(e,i,n,s,a,o,r){if(e){if(!r&&o){for(var h=g=e;null===h.z&&(h.z=M(h.x,h.y,s,a,o)),h.nm=h.va,(h=h.cj=h.next)!==g;);h.nm.cj=null,h.nm=null;var l,c,u,f,d,p,g=h,w=1;do{for(h=g,u=g=null,f=0;h;){for(f++,c=h,l=d=0;l<w&&(d++,c=c.cj);l++);for(p=w;0<d||0<p&&c;)0!==d&&(0===p||!c||h.z<=c.z)?(h=(l=h).cj,d--):(c=(l=c).cj,p--),u?u.cj=l:g=l,l.nm=u,u=l;h=c}u.cj=null,w*=2}while(1<f)}for(g=e;e.va!==e.next;){if(h=e.va,c=e.next,o)t:if(u=e.va,f=e.next,0<=A(u,e,f))u=!1;else{for(d=M(u.x<e.x?u.x<f.x?u.x:f.x:e.x<f.x?e.x:f.x,u.y<e.y?u.y<f.y?u.y:f.y:e.y<f.y?e.y:f.y,s,a,o),w=M(u.x>e.x?u.x>f.x?u.x:f.x:e.x>f.x?e.x:f.x,u.y>e.y?u.y>f.y?u.y:f.y:e.y>f.y?e.y:f.y,s,a,o),l=e.cj;l&&l.z<=w;){if(l!==e.va&&l!==e.next&&x(u.x,u.y,e.x,e.y,f.x,f.y,l.x,l.y)&&0<=A(l.va,l,l.next)){u=!1;break t}l=l.cj}for(l=e.nm;l&&l.z>=d;){if(l!==e.va&&l!==e.next&&x(u.x,u.y,e.x,e.y,f.x,f.y,l.x,l.y)&&0<=A(l.va,l,l.next)){u=!1;break t}l=l.nm}u=!0}else t:if(u=e.va,f=e.next,0<=A(u,e,f))u=!1;else{for(d=e.next.next;d!==e.va;){if(x(u.x,u.y,e.x,e.y,f.x,f.y,d.x,d.y)&&0<=A(d.va,d,d.next)){u=!1;break t}d=d.next}u=!0}if(u)i.push(h.Od/n),i.push(e.Od/n),i.push(c.Od/n),L(e),g=e=c.next;else if((e=c)===g){if(r){if(1===r){for(r=i,g=n,h=e;!S(c=h.va,u=h.next.next)&&C(c,h,h.next,u)&&k(c,u)&&k(u,c)&&(r.push(c.Od/g),r.push(h.Od/g),r.push(u.Od/g),L(h),L(h.next),h=e=u),(h=h.next)!==e;);t(e=h,i,n,s,a,o,2)}else if(2===r)t:{r=e;do{for(g=r.next.next;g!==r.va;){if((h=r.Od!==g.Od)&&(h=void 0,(h=r.next.Od!==g.Od)&&(h=void 0,h=r.va.Od!==g.Od))){h=h=void 0;e:{h=r;do{if(h.Od!==r.Od&&h.next.Od!==r.Od&&h.Od!==g.Od&&h.next.Od!==g.Od&&C(h,h.next,r,g)){h=!0;break e}h=h.next}while(h!==r);h=!1}if((h=!h)&&(h=void 0,(h=k(r,g))&&(h=void 0,h=k(g,r)))){for(c=!1,u=((h=r).x+g.x)/2,f=(r.y+g.y)/2;h.y>f!=h.next.y>f&&h.next.y!==h.y&&u<(h.next.x-h.x)*(f-h.y)/(h.next.y-h.y)+h.x&&(c=!c),(h=h.next)!==r;);h=c}}if(h){e=z(r,g),r=y(r,r.next),e=y(e,e.next),t(r,i,n,s,a,o),t(e,i,n,s,a,o);break t}g=g.next}r=r.next}while(r!==e)}}else t(y(e),i,n,s,a,o,1);break}}}}(h,l,i,n,s,a),l}}}(),function(o){function r(t){var e=t.length;2<e&&t[e-1][0]==t[0][0]&&t[e-1][1]==t[0][1]&&t.pop()}function h(t,e){for(var i=0;i<e.length;i++)t.push(e[i][0]),t.push(e[i][1])}o.Ks={Df:function(t){for(var e=t.length,i=0,n=e-1,s=0;s<e;n=s++)i+=t[n][0]*t[s][1]-t[s][0]*t[n][1];return.5*i},Qda:function(t){return o.Ks.Df(t)<0},normalize:function(t){var e;if(t){e=[];for(var i=0,n=t.length;i<n;i+=1)e[i]=t[i]instanceof Array?this.normalize(t[i]):t[i]instanceof o.U?[t[i].P,t[i].O]:t[i]instanceof o.G?[t[i].x,t[i].y]:t[i]}return e},Gp:function(t,e){e=e||[];var i=[],n=[];r(t),h(i,t);var s=t.length;e.forEach(r);for(var a=0;a<e.length;a++)n.push(s),s+=e[a].length,h(i,e[a]);return o.P_.ZM(i,n)}}}(w);var Ac={v:"1.4.8",Pixel:w.G,LngLat:w.U,Size:w.Rc,Bounds:w.Vd,ArrayBounds:w.um,PixelBounds:w.Ie,event:$.event,Panorama:w.t0,PanoramaMarker:w.u0,Map:$.Ob,View2D:$.cA,GroundImage:$.w.bF,Marker:$.D.cb,ImageMarker:$.D.hka,Text:$.D.jO,Icon:$.D.Kg,MarkerShape:$.D.m0,Polyline:$.D.Gb,BezierCurve:$.D.Bv,Polygon:$.D.dc,Circle:$.D.Sf,CircleMarker:$.D.GN,Ellipse:$.D.Up,Rectangle:$.D.$p,ContextMenu:$.D.pl,InfoWindow:$.D.fe,Buildings:$.w.H_,TileLayer:$.w.Xa,ImageLayer:$.w.Iv,CanvasLayer:$.w.I_,VideoLayer:$.w.V0,VectorLayer:$.w.Kc,MassMarks:$.w.n0,LayerGroup:$.w.gF,OverlayGroup:$.D.rl,GeoJSON:$.D.ON,CANVAS:"canvas",DOM:"dom",GeometryUtil:w.Vp,PlaneGeometryUtil:w.Yp};Ac.GeometryUtil.triangulateShape=function(t,e){return t=w.Ks.normalize(t),e=w.Ks.normalize(e),w.Ks.Gp(t,e)},Ac.plugin=Ac.service=$.Ob.prototype.plugin,Ac.TileLayer.Satellite=$.w.Xa.gO,Ac.TileLayer.RoadNet=$.w.Xa.eO,Ac.TileLayer.google=$.w.Xa.Gv,Ac.TileLayer.Flexible=$.w.Xa.Pz,Ac.TileLayer.WMS=$.w.Xa.W0,Ac.TileLayer.WMTS=$.w.Xa.X0,Ac.TileLayer.Traffic=$.w.Xa.kO,Ac.Panorama.Events=$.event,Ac.TileLayer.PanoramaLayer=$.w.Xa.jka,Ac.UA={ie:w.l.Xo,ielt9:w.l.ae,ielt11:w.l.xda,mobile:w.l.Y,android:w.l.Mj,ios:w.l.qD},Ac.Browser={ua:navigator.userAgent,mobile:w.l.Y,plat:w.l.Pr,mac:w.l.Iy,windows:w.l.Nja,ios:w.l.qD,iPad:w.l.qda,iPhone:w.l.rda,android:w.l.Mj,android23:w.l.u$,chrome:w.l.chrome,firefox:w.l.JJ,safari:w.l.qM,wechat:w.l.v_,uc:w.l.hja,qq:w.l.zga,ie:w.l.Xo,ie6:w.l.bh,ie7:w.l.Yo,ie8:w.l.ae&&!w.l.Yo&&!w.l.bh,ie9:w.l.jW,ie10:w.l.iW,ie11:w.l.uda,edge:w.l.Nba,ielt9:w.l.ae,baidu:w.l.gC,isLocalStorage:w.l.bj,isGeolocation:!!navigator.geolocation,mobileWebkit:w.l.Qea,mobileWebkit3d:w.l.oX,mobileOpera:!!w.l.Pea,retina:w.l.qd,touch:!!w.l.Oe,msPointer:!!w.l.qX,pointer:!!w.l.QL,webkit:w.l.t_,ie3d:w.l.vda,webkit3d:w.l.u_,gecko3d:w.l.lca,opera3d:w.l.Ffa,any3d:w.l.eC,isCanvas:w.l.am,isSvg:w.l.dm,isVML:w.l.Xo,isWorker:!!window.Worker,isWebsocket:!!window.WebSocket,isWebGL:function(){for(var t=document.createElement("canvas"),e=["webgl","experimental-webgl","moz-webgl"],i=null,n=0;n<e.length;n+=1){try{i=t.getContext(e[n])}catch(t){}if(i){if(i.drawingBufferWidth!==t.width||i.drawingBufferHeight!==t.height)break;return!0}}return!1}},Ac.Util={colorNameToHex:w.a.uC,rgbHex2Rgba:w.a.LY,argbHex2Rgba:w.a.Zf,isEmpty:w.a.ap,deleteItemFromArray:w.a.Ut,deleteItemFromArrayByIndex:w.a.Nl,indexOf:w.a.indexOf,format:w.a.Sc,isArray:w.a.isArray,isDOM:w.a.tD,includes:w.a.ga,requestIdleCallback:w.a.gz,cancelIdleCallback:w.a.RI,requestAnimFrame:w.a.pc,cancelAnimFrame:w.a.Wg,color2RgbaArray:w.a.bJ},Ac.DomUtil={getViewport:w.j.dD,getViewportOffset:w.j.oK,create:w.j.create,setClass:w.j.Gha,hasClass:w.j.Ul,addClass:w.j.Ha,removeClass:w.j.Na,setOpacity:w.j.Kn,rotate:w.j.rotate,setCss:w.j.Ja,empty:w.j.bz,remove:w.j.remove,TRANSFORM:w.j.jf,TRANSITION:w.j.aA};var Bc=w.A;if(Ac.User={key:Bc.key},window.AMap=Ac,window.AMap.BuryPoint=w.BuryPoint,window.AMap.Class=w.aa,!Bc.Gy&&void 0!==arguments&&arguments.callee)try{if(w.l.bj&&window.localStorage){var Cc=window.localStorage["_AMap_"+w.HD];Cc&&JSON.parse(Cc).version===Bc.Th||window.localStorage.setItem("_AMap_"+w.HD,JSON.stringify({version:Bc.Th,script:"("+arguments.callee+")(config)"}));var Dc=new Image;Dc.src=Bc.ub+"/maps/cookie?key=amap_ver&value="+Bc.Th,document.head.appendChild(Dc),Dc.onload=Dc.onerror=Dc.onabort=function(){document.head.removeChild(Dc)}}}catch(t){}window.AMap.convertFrom=function(t,e,n){w.e.add("AMap","convertFrom",e);var i=w.A.sd+"/v3/assistant/coordinate/convert",s=[];if((t=w.a.ya(t))instanceof Array){for(var a=0,o=t.length;a<o;a+=1)s.push(t[a]+"");s=s.join(";")}else s=t+"";i+=0<(e=["key="+w.A.key,"s=rsv3","locations="+s,"coordsys="+(e||"gps")]).length?"?"+e.join("&"):"",(i=new w.Sa.fb(i,{callback:"callback"})).h("complete",function(t){if("1"===t.status){t=t.locations.split(";");for(var e=0;e<t.length;e+=1){var i=t[e].split(",");t[e]=new AMap.LngLat(i[0],i[1])}n&&"function"==typeof n&&n("complete",{info:"ok",locations:t})}else n&&"function"==typeof n&&n("error",t.info)},this),i.h("error",function(t){n&&"function"==typeof n&&n("error",t.info)},this)},w.Sa=w.Sa||{},w.Sa.pF=w.aa.extend({ga:[w.ka],B:function(t,e){this.F={callback:"cbk",type:"json",charset:"utf-8"},e=e||{},w.a.Bb(this,e),this.url=t,this.send(t,e.Wc,e.tU,e.lha)},send:function(t){var e=w.j.create("script");e.type="text/javascript",e.charset=this.F.charset;var i=this;w.l.ae?e.onreadystatechange=function(){"loaded"!==this.readyState&&"complete"!==this.readyState||i.r("complete")}:(e.onload=function(){i.r("complete")},e.onerror=function(){i.r("error",{status:0,info:"service error",url:t})}),e.src=t,document.getElementsByTagName("head")[0].appendChild(e)}}),w.Sa.fb=w.Sa.pF.extend({faa:function(){if(w.a.XY)return w.a.zE.push(this),!0},oha:function(){this.r("error",{info:"TIME_OUT_A"})},send:function(t,e,i,n){function s(){window[a]=null;try{window[a]=null}catch(t){}o.onerror=null,o.parentNode&&o.parentNode.removeChild(o)}if(!this.F.Jt||!this.faa()){t=encodeURI(t);var a=this.F.fun;a&&!window[a]||(a=w.a.wV("jsonp_",6)+"_");var o=document.createElement("script");o.type="text/javascript",o.charset="utf-8",o.async=!0;var r=this;if(w.l.ae||(o.onerror=function(){s(),r.r("error",{info:"REQUEST_FAILED",url:t})}),window[a]=function(t){s(),r.F.callbackFunction?r.F.callbackFunction.call(r.F.context,t):3e4===t.errcode&&t.data?(w.a.XY=!0,w.hb.load("AMap.AntiCrabFrame",function(){w.a.Jt||(w.a.Jt=new w.D_),w.a.zE.push(r),w.a.Jt.open(r.F.Wc,t.data.host,r.KL||"",r.url)})):((t instanceof Array||"string"==typeof t)&&(t={data:t}),t.dma=a,r.r("complete",t))},e="?",-1!==t.indexOf("?")&&(e="&"),e=t+e+this.F.callback+"="+a,-1===t.indexOf(w.A.sd+"/v")&&-1===t.indexOf("yuntuapi.amap.com/datasearch")&&-1===t.indexOf("webapi.amap.com/")||(e=e+"&platform=JS&logversion=2.0&appname="+w.A.Sm,e+="&csid="+w.a.n_(),e+="&sdkversion="+w.A.Gq),i=this.F.MC){var h,l=[];for(h in i)i.hasOwnProperty(h)&&(l.push(h+"="+i[h]),e+="&"+h+"="+encodeURIComponent(i[h]));r.KL=l.join("&")}o.src=n?e+"&rereq=true":e,w.Sa.fb.yP||(w.Sa.fb.yP=document.getElementsByTagName("head")[0]),w.Sa.fb.yP.appendChild(o)}}}),window.AMap.Http={},window.AMap.Http.JSONP=w.Sa.fb,w.Sa.XMLHttpRequest=w.Sa.pF.extend({send:function(e,t,i,n){var s=this;if((w.l.ae||w.l.jW)&&window.XDomainRequest){var a=this.z_=new XDomainRequest;a.onerror=function(t){s.r("error",{url:e,data:t})},a.onload=function(){s.r("complete",{url:e,data:a.responseText})},a.open(t||"GET",e),setTimeout(function(){a.send(i||void 0)},0)}else{var o=this.z_=new XMLHttpRequest;o.onreadystatechange=function(){4===o.readyState&&200===o.status?s.r("complete",{url:e,data:o.responseText}):404===o.status&&(o.abort(),s.r("error",{url:e,data:"404"}))},o.onerror=function(t){o.abort(),s.r("error",{url:e,data:t})},o.open(t||"GET",e),"POST"===t&&o.setRequestHeader("Content-Type",n||"application/x-www-form-urlencoded"),o.send(i||void 0)}},abort:function(){this.z_.abort()}}),w.yi=w.aa.extend({B:function(t,e,i,n){return this.start=t,this.end=e,this.transition=i,this.precision=n||0,this.Yr=!1,this},il:function(t){var e=1<arguments.length&&void 0!==arguments[1]&&arguments[1];this.Wf=+new Date,this.frames=0,this.ke=t,this.startTime=+new Date,this.Yr=!0,this.IT=w.a.pc(this.update,this,e)},update:function(){this.IT=w.a.pc(this.update,this,!1),this.frames+=1;var t=+new Date,e=t-this.startTime;"number"==typeof(e=this.transition?this.transition(this.start,this.end,e,this.frames,t-this.Wf):null)&&Math.abs(e-this.end)<this.precision&&(this.stop(),e=this.end),this.Wf=t,this.An.call(this.ke||this,e)},stop:function(t){w.a.Wg(this.IT),t&&this.update(),this.Yr=!1}}),w.yi.Easing={Linear:{None:function(t){return t}},Bounce:{In:function(t){return 1-(t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375)},Out:function(t){return w.yi.Easing.Bounce.In(1-t)}},Cubic:{In:function(t){return 1-t*t*t},Out:function(t){return 1-(t=1-t)*t*t}}},w.Ob=w.aa.extend({ga:[w.ka,w.te,w.BD],B:function(t,e){this.J=e,this.cn=e.cn,this.jk="",this.Vf=this.Bf=this.Ji=!1,this.ct={},this.K=t,this.v5(),this.Hda(),this.X("zooms",e,!0),this.X("size",e,!0),this.X("limitBounds",e),this.X("view",e),this.X("nolimg",e,!0),this.X("mapNumber",e,!0),this.X("lang",e,!0),this.X("features",e,!0),this.X("styleID",e,!0),this.X("forceBig",e,!0),this.X("mode",e,!0),this.X("showBuildingBlock",e,!0),this.X("mapStyle",e);var i=this.get("mapStyle");this.vd=w.A.vd[i]||w.A.vd.default,this.XB="#a3ccff",this.fx=e.get("skyColor")||"#cce0ff",this.X("editEnable",e),this.ec&&this.X("style",e,!0),this.X("styleUrl",e),this.X("hightlight",e,!0),this.X("labelzIndex",e,!0),w.l.pz&&(this.Nc=new w.w.Wh(new $.w.Xa({zIndex:e.get("labelzIndex"),visible:!1}),this),this.Nc.type="矢量标注",e.labelsLayer=this.Nc.fa,this.Nc.fa.h("complete",this.Jm,this,!0),this.Nc.fa.h("renderComplete",this.Jm,this),this.Nc.Bw=this.Nc.eh=!0),this.X("isHotspot",e,!0),this.X("layers",e),this.X("overlays",e),this.X("infos",e,!0),this.X("contextmenus",e,!0),this.X("controls",e),this.X("bounds",e),this.X("draw",e),this.he("zoomAndCenter destroy defaultCursor jogEnable animateEnable baseRender overlayRender gridMapForeign".split(" "),e),this.he("rotateEnable pitchEnable dragEnable keyboardEnable doubleClickZoom scrollWheel zoomEnable touchZoom".split(" "),e,!0),this.get("jogEnable")?this.xr=!0:this.xr=!1,this.Q4(),this.W4(),this.AQ&&this.AQ(),this.X("resizeEnable",e),i=(i=(this.J.map=this).get("size")).width*i.height/65536,w.l.qd&&3<i&&(this.OT=!0),this.iE()},editEnableChanged:function(){this.ec=this.get("editEnable")},labelzIndexChanged:function(){this.Nc&&this.Nc.set("zIndex",this.get("labelzIndex"))},styleChanged:function(){this.ck=!0},mapStyleChanged:function(){if(this.J.dh){this.jk&&(this.set("style",""),this.Sx=this.jk="");var t=this.get("mapStyle");this.ck=!0,this.vd=w.A.vd[t]||w.A.vd.default,this.az()}},styleUrlChanged:function(){if(this.J.dh&&(t=this.get("styleUrl")||"")!==this.jk){var t,e=-1!==t.indexOf("?isPublic=true"),i=(t=t.substr(0,46)).split("amap://styles/")[1];"normal"===i?(this.jk="",this.set("nolimg",!1),this.set("style",""),this.Sx=""):(this.Iz=!0,this.set("nolimg",!0),(e=new w.Sa.fb(i.length<32?w.A.Rb+"://webapi.amap.com/style?name="+i+"&key="+w.A.key:w.A.Rb+"://webapi.amap.com/v4/map/styles?styleid="+i+"&s=rsv3&key="+w.A.key+(e?"&ispublic=1":""),{callback:"callback"})).h("complete",function(t){t.data&&t.data.content?this.set("style",JSON.parse(t.data.content)):this.set("style",""),this.Iz=!1},this),e.h("error",function(){this.Iz=!1},this),this.jk=t,this.az())}},YY:function(t){this.K.style.background=t},resizeEnableChanged:function(){},nca:function(t){var e=this.get("center");return t.contains(e)?null:(t=w.Vp.closestOnLine(e,t.UM().path),new w.U(t[0],t[1]))},haa:function(){var t=this.get("limitBounds"),e=this.get("bounds");if(e.Yb&&e.Yb.P>e.Qb.P&&(e.Qb.P+=360),!t.contains(e)){if(e instanceof w.um)return this.nca(t,e);var i=this.get("center").vb();return t.Lh()<e.Lh()?i.P=t.Zg().P:(t.Yb.P>e.Yb.P&&(i.P+=t.Yb.P-e.Yb.P),t.Qb.P<e.Qb.P&&(i.P+=t.Qb.P-e.Qb.P)),t.Jh()<e.Jh()?i.O=t.Zg().O:(t.Yb.O>e.Yb.O&&(i.O+=t.Yb.O-e.Yb.O),t.Qb.O<e.Qb.O&&(i.O+=t.Qb.O-e.Qb.O)),i}},OH:function(){var t=this.DM;this.J.refreshSize();var e=this.get("size");e&&t&&!e.qb(t)&&(this.DM=e,this.ds=!0,this.set("display"),this.IY(e),this.get("resizeEnable")&&this.ia("resize",{ffa:t,wX:e}))},nS:function(){var t=this;t.OH(),t.JH=setTimeout(function(){t.nS()},200)},x2:function(){this.JH&&(clearTimeout(this.JH),this.JH=null)},v5:function(){if(this.DM=this.J.getSize(),w.l.ae||w.l.v_&&w.l.qD||w.l.Jea)this.nS();else{var e=this;w.C.q$(this.K,function(t){e.OH(t)})}},Hda:function(){var t=this.K;w.j.Ha(t,"amap-container");var e={};e.xc=w.j.create("div",t,"amap-maps"),this.wj=w.j.create("div",t),this.wj.style.display="none",e.Ao=w.j.create("div",e.xc,"amap-drags"),e.w=w.j.create("div",e.Ao,"amap-layers"),e.D=w.j.create("div",e.Ao,"amap-overlays"),e.controls=w.j.create("div",t,"amap-controls"),e.Hy=w.j.create("a",t,"amap-logo");var i=window.location.host;-1===i.indexOf("amap.com")&&-1===i.indexOf("gaode.com")&&(e.Hy.href=w.l.Y?"http://m.amap.com":"http://gaode.com",e.Hy.target="_blank"),w.j.create("img",e.Hy).src=w.l.qd?this.J.F.logoUrlRetina:this.J.F.logoUrl,e.Nj=w.j.create("div",t,"amap-copyright"),e.Nj.style.display="none",350<w.j.dD(this.K).width&&(e.Nj.innerHTML=this.J.F.copyright,e.Nj.fX=w.j.create("span",e.Nj,"amap-mcode"),this.az()),this.La=e},az:function(){var t=this.get("layers");if(t){for(var e=-1,i="",n=0;n<t.length;n+=1){var s=t[n].get("mapNumber"),a=t[n].getzIndex();s&&e<a&&t[n].get("visible")&&(i=s,e=a)}return this.set("mapNumber",i),t=this.J.getMapStyle(),"GS(2018)1709"===i&&t&&"normal"!==t&&"amap://styles/normal"!==t&&(i="",this.La.Nj.style.visibility="hidden",this.La.Hy.style.display="none"),i&&this.La.Nj.fX&&(this.La.Nj.fX.innerHTML="- "+i+"号",this.La.Nj.style.visibility="visible",this.La.Hy.style.display="block"),i}},MP:function(){var t=0<arguments.length&&void 0!==arguments[0]&&arguments[0];w.l.bj&&w.ym&&(t?w.ym.flush():(this.bV&&clearTimeout(this.bV),this.bV=setTimeout(function(){w.a.gz(function(){w.ym.flush()})},1e3)))},Jm:function(){function t(){var t={id:s.J.id};w.Yd.ue.end(w.extend(t,{key:"rds"})),w.Yd.ue.send(w.extend(t,{params:{rs:s.get("baseRender"),viewmode:s.J.getViewMode_(),fd:0===s.AD?1:0,raster:s.J.oi?1:0}})),s.J&&s.J.Wk&&s.J.Wk.qB(),s.J.fY=1,s.MP(!0),s.set("display"),s.Ey=!0}function e(){w.Yd.ue.end({id:s.J.id,key:"rd"}),w.a.pc(function(){this.r("complete")},s),s.J.ta=!0,s.set("display")}if(!this.kJ)if(this.Ey)1===this.fq&&13===this.get("zoom")&&(w.a.by.stop(this.HA),w.Yd.ue.send({id:this.J.id,params:{fps:this.HA.by,type:"fps",rs:this.get("baseRender")}}),this.fq=2),this.MP();else{var s=this,i=this.J.get("rasterLayer"),n=function(){for(var t=s.get("layers"),e=s.get("zoom"),i=0;i<t.length;i+=1){var n=t[i].get("zooms");if(!(t[i].oi||!n||e>n[1]||e<n[0]||!t[i].get("visible")||t[i].w&&t[i].w.xa&&0===t[i].w.xa.length||t[i].w&&t[i].w.oL||t[i].w&&t[i].w.ta))return!1}return!(s.Nc&&s.Nc.get("visible")&&0<s.Nc.xa.length&&!s.Nc.ta&&!s.Nc.mB)}();i?(i.w&&i.w.ta&&(this.J.ta||e()),n&&(this.J.ta||e(),s.J.set("rasterLayer",void 0),s.J.oi=s.J.mY=!0,s.cu.kD=!1,w.a.gz(function(){s.J&&s.J.fk(i)}),t())):n&&(this.J.ta||e(),t(),this.J.mY=!0)}},layersChanged:function(){this.$a=this.$a||[];for(var t=this.get("layers"),e=this.$a.length-1;0<=e;e-=1)this.$a[e]===this.dd||this.$a[e]===this.tp||this.$a[e].Bw||this.$a[e].fa.Bw||-1!==w.a.indexOf(t,this.$a[e].fa)||(this.$a[e].gg(),this.$a[e].ij&&this.$a[e].ij.gg(),this.$a[e].fa.I("complete",this.Jm,this),this.$a[e].fa.I("renderComplete",this.Jm,this),this.$a=w.a.Nl(this.$a,e));var i=!1,n=!0,s=this.get("labelzIndex");for(e=0;e<t.length;e+=1){if(t[e].Oi)-1===w.a.indexOf(this.$a,t[e].w)&&this.$a.push(t[e].w);else{var a=this.sg(t[e]);a&&(this.$a.push(a),t[e].Oi=!0,t[e].w=a),t[e].h("complete",this.Jm,this,!0),t[e].h("renderComplete",this.Jm,this)}t[e].op&&t[e].get("visible")&&(!(i=!0)===t[e].get("detectRetina")&&(n=!1),s=t[e].get("textIndex")||s)}this.Nc&&(i||"3D"!==this.J.getViewMode_()?this.Nc.mB=!1:(i=w.a.find(t,function(t){if($.w.Wp&&t instanceof $.w.Wp&&t.get("visible"))return!0}),this.Nc.mB=i=!!i)),t=w.a.indexOf(this.$a,this.Nc),i&&this.J.get("showLabel")?(-1===t&&this.$a.push(this.Nc),this.Nc.ja=n&&w.l.ja,this.Nc.Cx(this.get("mapStyle")||"normal"),this.Nc.set("zIndex",s),this.Nc.set("visible",!0),this.J.ky=!0,this.J.get("isHotspot")?this.Nc.yfa():this.Nc.YI()):(this.Nc&&(this.Nc.set("visible",!1),this.J.ky=!1,this.Nc.YI()),this.J.ky=!1),this.J.isHotspotChanged(),this.set("display",0),this.az()},isHotspotChanged:function(){this.layersChanged()},controlsChanged:function(){var t,e,i=this.get("controls");if(i.add&&0<i.add.length)for(;0<i.add.length;)(e=(t=i.add.shift()).Jq||t.addTo)&&e.call(t,this.J,this.La.controls);else if(i.remove&&i.remove.length)for(;0<i.remove.length;)(e=(t=i.remove.shift()).Sr||t.removeFrom)&&e.call(t,this.J,this.La.controls)},U9:function(){if(!this.kJ){var i=this;this.wT=!1,i.dd||(i.dd=new w.w.Kc(new $.w.Kc,i),i.dd.Ge=36,i.dd.df=36,i.dd.set("zIndex",120),i.$a.push(i.dd),i.dd.Vx=!0);for(var t=i.get("overlays"),e=[],n=0;n<i.yc.length;n+=1)-1===w.a.indexOf(t,i.yc[n].Bc)&&(i.yc[n].Bc instanceof $.D.fe||i.yc[n].Bc instanceof $.D.pl?i.yc[n].gg():(i.dd&&i.yc[n]instanceof w.D.cb?(i.dd.Lf=w.a.Ut(i.dd.Lf,i.yc[n].M),i.dd.rY([i.yc[n].M])):i.tp&&i.tp.rY([i.yc[n].M]),i.yc[n].M.ea?(w.j.remove(i.yc[n].M.ea),i.yc[n].M.ea=null):i.yc[n].M.Ka&&(w.j.remove(i.yc[n].M.Ka.af),w.j.remove(i.yc[n].M.Ka.Xb),i.yc[n].M.Ka=null),i.yc[n].bl&&i.yc[n].bl.stop(),i.yc[n].Bc.Oi=!1,i.yc[n].Bc.Qn(),i.yc[n].Bc.Mg.map=null,i.yc[n].Bc.D=null,i.yc[n].Bc=null,i.yc[n].M.tba(),i.yc[n].M=null,i.yc[n].Qn(),i.yc[n].Mg=null,i.yc[n].bi(),i.yc[n].map=null),e.push(i.yc[n]));for(n=0;n<e.length;n+=1)i.yc=w.a.Nl(i.yc,w.a.indexOf(i.yc,e[n]));var s=[],a=[];w.a.Dha(function(t){if(!t.Oi&&t.Hf){var e=t.D||i.U$(t);e&&(i.yc.push(e),e instanceof w.D.fe||e instanceof w.D.pl?e.LD(i):e instanceof w.D.cb?s.push(e.M):a.push(e.M),t.Oi=!0)}},t),s.length&&i.dd.Ht(s),a.length&&(i.tp||(i.tp=new w.w.Kc(new $.w.Kc,i),i.tp.set("zIndex",110),i.$a.push(i.tp)),i.tp.Ht(a)),i.set("display",0)}},overlaysChanged:function(){this.yc=this.yc||[],this.wT||(w.a.pc(this.U9,this),this.wT=!0)},contextmenusChanged:function(){var t=this.get("contextmenu");if(t){var e=this;w.hb.load("overlay",function(){e.zC=new w.D.pl(t,e),e.set("display",0)})}},infosChanged:function(){var e=this.get("infos");if(e){this.Yl=this.Yl||{};var i,n=this;w.hb.load("overlay",function(){for(var t in e)e.hasOwnProperty(t)&&(i=e[t],n.Yl[t]=n.Yl[t]||new w.D.fe(i,n))})}},U$:function(t){var e=null;if(t instanceof $.D.cb)e=new w.D.cb(t,this);else if(t instanceof $.D.pl)e=new w.D.pl(t,this);else if(t instanceof $.D.fe)e=new w.D.fe(t,this);else{var i=["overlay"];if("d"===this.get("overlayRender")?(i.push("dvector"),w.l.dm?i.push("svg"):i.push("vml")):i.push("cvector"),!this.Aja&&!w.hb.yy(i)){var n=this;return void w.hb.eg(i,function(){this.Aja=!0,n.overlaysChanged()})}t instanceof $.D.dc?e=new w.D.dc(t,this):t instanceof $.D.Bv?e=new w.D.Bv(t,this):t instanceof $.D.Gb?e=new w.D.Gb(t,this):t instanceof $.D.Sf?e=new w.D.Sf(t,this):t instanceof $.D.Up?e=new w.D.dc(t,this):t instanceof $.D.$p&&(e=new w.D.dc(t,this))}return e},nla:function(){function t(){}var e=new w.w.Kc,i=[],n=new w.U(116.405467,39.907761);new w.style.vf.Kg;for(var s=0;s<100;s+=1)for(var a=0;a<100;a+=1){var o=new w.U(n.P+.02*a,n.O+.02*s);o=new w.Ig({name:"point"+(100*s+a),map:this,Z:new w.pa.Tf(this.Fb(o))}),(i[100*s+a]=o).h("hover",t,o)}e.Ht(i),this.$a.push(e)},Kb:function(){},mla:function(t){var e=new w.w.Kc,i=new w.W_({map:this}).$L(t);e.Ht(i),this.$a.push(e),this.set("display",0)},sg:function(t){if(!(t=t.sg(this)))return null;if(!t.length||"string"!=typeof t[0])return t;var e=this;return w.hb.eg(t,function(){e.layersChanged()}),null},xma:function(){return this.La},Wna:function(){this.set("display",0)},displayChanged:function(t){this.jT||this.iE(t)},iE:function(t){if(t)if(w.a.Wg(this.hE),w.l.Mj){var e=this;setTimeout(function(){e.kc()},0)}else this.kc();else this.vs||(this.hE=w.a.pc(this.kc,this),this.vs=!0)},kc:function(){if(!this.kJ){this.r("render"),this.vs=!1;var t={};if(this.$a){for(var e=this.J.getViewMode_(),i=[],n=0,s=this.$a.length;n<s;n+=1)this.$a[n].Pp&&this.$a[n].Pp!==e?this.$a[n].ta=!0:(i.push(this.$a[n]),this.$a[n].ij&&i.push(this.$a[n].ij));if(i.sort(function(t,e){var i=t.get("zIndex"),n=e.get("zIndex");return n<i?1:i===n&&t.eA>e.eA?1:-1}),t.$a=i,t.size=this.J.get("size"),t.size.width&&t.size.height){var a;for(e=w.l.ja?Math.min(window.devicePixelRatio||1,2):1,t.L$=15e5<t.size.width*t.size.height*e*e,t.kD=!!this.J.get("rasterLayer"),t.Y=w.l.Y,t.W=this.J.cD(),t.S=this.J.getResolution([0,0]),t.jp=this.J.get("mapStyle"),t.ck=this.ck,t.Mc=this.Vf,t.Pl=this.ct,t.Se=this.Ji,t.If=this.Bf,t.WM=this.Bf&&w.l.Y,t.UZ=w.l.Y&&this.Ji,t.FE=w.l.Y&&this.Vf,this.FE=t.FE,t.rk=t.W.zoom>this.get("targetLevel"),t.nna=!0,t.OT=this.OT,i=e=!1,n=0;n<this.$a.length;n+=1)this.$a[n].ji&&this.$a[n].fa.get("visible")&&t.W.zoom<=this.$a[n].fa.get("zooms")[1]&&(t.hM=!0),this.$a[n].mn().qd&&(e=!0);for(n=0;n<this.$a.length;n+=1)this.$a[n].fa.CI&&t.hM&&(!this.Ji&&this.$a[n].fa.get("visible")&&((a=this.$a[n].fa.CI()).Qma=1,a.zoom=t.W.zoom),i=!0);i?a&&this.Hb!==a&&(this.Hb=a):this.Hb=[],t.Hb=this.Hb,t.qd=e,t.scale=Math.pow(2,t.W.zoom-t.W.ce),this.cu=t,(a=this.XC())&&(a.kc(t),this.ck=this.dV=!1)}}}},XC:function(){if(!this.T||this.T.type!==this.J.view.type)if(this.T=null,"3D"==this.J.view.type){var t=this;w.hb.load("Map3D",function(){t.T||(t.T=new w.Ma.Wz(t),t.set("display"))})}else this.T=new w.Q.canvas.Ob(this);return this.T},vca:function(){var t,e=[],i=this.get("controls").Fc;for(t in i)i[t].hu&&i[t].hu()&&e.push(i[t].hu());return e},destroyChanged:function(){this.kJ=1,this.R={},this.Nc&&(this.Nc.fa.I("complete",this.Jm,this),this.Nc.gg(),this.$a=w.a.Nl(this.$a,w.a.indexOf(this.$a,this.Nc))),this.k9&&clearTimeout(this.k9),this.Q8(),this.U5(),this.tH&&this.tH(),this.S9(),this.Qn(),this.J=this.J.map=null,this.K=this.K.GF=null,this.Pd&&(this.Pd.stop(),this.Pd=null),this.Re&&(this.Re.stop(),this.Re=null),this.Xc&&(this.Xc.stop(),this.Xc=null)},S9:function(){var t=this.K;this.x2(),w.C.waa(t),w.j.bz(t),this.wj=null,w.j.Na(t,"amap-container"),this.La=null},jogEnableChanged:function(){this.get("jogEnable")?this.xr=!0:this.xr=!1},drawChanged:function(){var t,e,i=this,n=this.get("draw");if(n){for(this.sn||(this.sn=[]),t=0,e=this.sn.length;t<e;t+=1)this.sn[t].Kga();w.hb.load("interaction",function(){var t=new w.ika({type:n,w:i.tp},i);i.sn.push(t),i.loaded=!0})}else if(this.sn)for(t=0,e=this.sn.length;t<e;t+=1)this.sn[t].Kga(),this.sn[t].Bla(),this.I("click",this.sn[t].Kma,this)},Ee:function(t,e,i){return this.J.view.Ee(t,e,i)},of:function(t,e,i){return this.J.view.of(t,e,i)},OV:function(t,e){var i=this.get("size"),n=document.createElement("canvas");t=t||i.width,e=e||i.height,n.width=t,n.height=e;for(var s=-(i.width-t)/2,a=(i=-(i.height-e)/2,n.getContext("2d")),o=this.La.w.childNodes,r=[],h=0;h<o.length;h+=1)r.push(o[h]);for(r.sort(function(t,e){return t.style.zIndex-e.style.zIndex}),h=0;h<r.length;h+=1){var l=r[h];if(w.j.Ul(l,"amap-layer")||w.j.Ul(l,"amap-e")||w.j.Ul(l,"amap-labels"))if("CANVAS"===l.tagName){o=i;var c=s,u=parseFloat(l.style.width)||l.width,f=parseFloat(l.style.height)||l.height,d=1;l.style.transform&&(d=parseFloat(l.style.transform.split("(")[1])),a.drawImage(l,c,o,u*d,f*d)}else if("DIV"===l.tagName){d=l.childNodes;for(var p=parseFloat(l.style.top)||0+i,g=(l=parseFloat(l.style.left)||0+s,0);g<d.length;g+=1){var m=d[g];"CANVAS"!==m.tagName&&"IMG"!==m.tagName||(o=parseFloat(m.style.top)||0,c=parseFloat(m.style.left)||0,u=parseFloat(m.style.width)||m.width,f=parseFloat(m.style.height)||m.height,a.drawImage(m,c+l,o+p,u,f))}}}return n.toDataURL()}}),w.Ob.ob({Q4:function(){this.Gw=!1,w.l.Oe&&("3D"===this.J.view.type?this.N1():this.L1()),w.l.Y||this.I1()},Q8:function(){w.l.Oe&&("3D"===this.J.view.type?this.a6():this.Z5()),w.l.Y||this.V5()},rotateEnableChanged:function(){this.uha=this.get("rotateEnable"),w.l.Oe&&this.QT&&"3D"!==this.J.view.type&&(this.uha?this.QT():this.efa())},zoomEnableChanged:function(){this.get("zoomEnable")?(w.l.Oe&&this.GI&&"3D"!==this.J.view.type&&this.GI(),w.l.Y||this.K1()):(w.l.Oe&&this.rL&&this.rL(),w.l.Y||this.Y5())},mousewheelChanged:function(){},dL:function(t){t&&this.Cea(t.Eq)},Cea:function(t){this.Gw=t},ps:function(){this.Gw=!1},zg:function(t,e,i){var n,s={};t||(t=window.event);var a=w.C.Vj(t,this.La.xc);return w.l.Oe&&("touchend"!==t.type?this.R.XQ=a:a=this.R.XQ),s.sb=a,s.Bd=this.of(a),s.Bd&&(s.Bd=s.Bd.toFixed(3)),s.tf=this.qe(s.Bd),i||(i=this.Gw?this.Gw?[this.Gw]:null:this.O3(s.Bd))&&0<i.length&&i[0].po&&(n=i[0].po,s.Eq=i[0]),n||(n=this),s.ad=n,s.zka=t.altKey,s.ctrlKey=t.ctrlKey,s.button=void 0===t.button?0:t.button,!e&&t.preventDefault&&t.preventDefault(),s},SG:function(t){return t&&t!==this&&t!==document},KH:function(){if(this.R.ei&&this.R&&this.R.Gf){var t=this.R.ei.sb.Ua(this.R.Gf);t.x||t.y?(this.R.Bf=!0,this.R.Em||(this.R.gn.r("dragstart",this.R.fn),this.R.Em=!0),this.R.gn.r("dragging",this.R.ei),this.R.Gf=this.R.ei.sb):this.R.Bf=!1}},fia:function(t){for(var e=[],i=0;i<t.length;i+=1)t[i]&&(e=e.concat(t[i]));return e},Or:function(t,e,i){return t&&e&&(t.x-e.x)*(t.x-e.x)+(t.y-e.y)*(t.y-e.y)<(i||10)},O3:function(t){var e=this.XC();if(!e)return null;var i,n=this;return this.$a.sort(function(t,e){return t.get("zIndex")>e.get("zIndex")?-1:1}),e.kr(t,this.$a,function(t){i=t,i=n.fia(i)},function(){i=[]}),i}}),w.Ob.ob({W4:function(){this.h("moveend",this.BX,this),w.l.Mj&&(w.l.JE||w.l.gC)&&this.h("zoomend",this.vN,this),this.h("movestart",this.CX,this),this.h("zoomstart",this.HX,this),this.h("zoomend",this.GX,this),this.MF(),this.fq=0,this.HA={},void 0===window.requestAnimationFrame&&(this.fq=2)},HX:function(){2!==this.fq&&12===this.get("zoom")&&(this.fq=1,w.a.by.start(this.HA)),this.Ji=!0},GX:function(){1===this.fq&&13!==this.get("zoom")&&(this.fq=0,w.a.by.cancel(this.HA)),this.Ji=!1,this.set("display")},TS:function(t,e){this.ct.left=0<t,this.ct.right=t<0,this.ct.pv=0<e,this.ct.HC=e<0},Aq:function(){this.ct={}},U5:function(){this.I("moveend",this.BX,this),w.l.Mj&&(w.l.JE||w.l.gC)&&this.I("zoomend",this.vN,this),this.I("movestart",this.CX,this),this.I("zoomstart",this.HX,this),this.I("zoomend",this.GX,this),this.W5()},BX:function(t){this.Bf=!1,this.Aq(),this.IY(),!t.FW&&this.get("limitBounds")&&(t=this.haa())&&!t.qb(this.get("center"))?this.sE(this.get("zoom"),t,!1,!0):this.ia("moveend"),this.set("display")},CX:function(){this.Bf=!0,this.Aq()},dragEnableChanged:function(){(this.Wx=this.get("dragEnable"))?this.LF():this.sH()},ia:function(t,e){var i;e&&(i=e.wX?{type:t,newsize:e.wX,oldsize:e.ffa}:{type:t,pixel:e.sb,target:this.J,lnglat:e.tf}),this.J.r(t,i)},MF:function(){this.h("click",this.xR),this.h("dblclick",this.BR),w.l.Oe&&this.QO(),w.l.Y||this.J1()},W5:function(){this.I("click",this.xR),this.I("dblclick",this.BR),w.l.Oe&&this.mR(),w.l.Y||this.X5()},rB:function(t,e){var i=this.get("targetLevel")||this.get("zoom");i=0<e?Math.floor(i)+1:Math.ceil(i)-1,(i=Math.min(Math.max(i,this.get("zooms")[0]),this.get("zooms")[1]))===this.get("zoom")||this.Re&&this.Re.Yr&&i===this.Re.end||this.Av(i,!1,t)},xR:function(t){this.ia("click",t)},BR:function(t){this.get("doubleClickZoom")&&this.get("zoomEnable")&&this.rB(t.Bd,1),this.ia("dblclick",t)},Zka:function(t){this.rB(t.Boa,t.Coa),this.ia("touchend",t)},LF:function(){this.Wx&&("3D"===this.J.view.type?(this.h("dragstart",this.HR),this.h("dragging",this.DR),this.h("dragend",this.FR)):(this.h("dragstart",this.GR),this.h("dragging",this.CR),this.h("dragend",this.ER)))},sH:function(){this.Wx||("3D"===this.J.view.type?(this.I("dragstart",this.HR),this.I("dragging",this.DR),this.I("dragend",this.FR)):(this.I("dragstart",this.GR),this.I("dragging",this.CR),this.I("dragend",this.ER)))},GR:function(t){this.dL(t),this.Aq(),this.Vf=!0,this.R.Yt=t.sb.x,this.R.Xx=t.sb.y,this.Pd&&(this.Pd.stop(),this.Oo(!0)),this.ia("dragstart"),this.ia("movestart"),this.r("movestart",t),this.mia()},CR:function(){var t=(i=this.R).ei.sb.x-i.Yt,e=i.ei.sb.y-i.Xx;if(e||t){this.R.Bf=!0,this.TS(t,e),i.Yt=i.ei.sb.x,i.Xx=i.ei.sb.y;var i=t,n=e,s=this.rotation;s&&(s*=Math.PI/180,i=t*Math.cos(s)+Math.sin(s)*e,n=-Math.sin(s)*t+Math.cos(s)*e),i=this.get("centerCoords").Ua(new w.G(i,n).Vc(this.S)),(n=this.hU(i))&&(e=Math.round(this.Ee(n).Ua(this.Ee(i)).y)),this.np(this.La.Ao,t,e),i.x=(i.x+w.a.Za)%w.a.Za,this.set("centerCoords",i,!0),this.set("center",this.qe(i),!0),this.xr&&(this.Wf?(i=new Date,this.lq=100<i-this.Wf?new w.G(0,0):new w.G(t,e),this.Wf=i):this.Wf=new Date),this.ia("dragging"),this.ia("mapmove")}else this.R.Bf=!1,this.lq=null,this.Aq()},np:function(t,e,i){if(t&&!(Math.abs(e)<1&&Math.abs(i)<1)){var n=parseFloat(t.style.top)||0,s=parseFloat(t.style.left)||0,a="";this.rotation&&(a=w.j.Ep[w.j.jf]+":rotate("+this.rotation+"deg);overflow:visible;"),t.style.cssText="position:absolute;top:"+(n+i)+"px;left:"+(s+e)+"px;"+a}},hU:function(t){var e=this.J.view.uO(),i=this.DM.height*this.S/2;return t.y<e.zd+i?(t.y=e.zd+i,t):t.y>e.yd-i?(t.y=e.yd-i,t):null},ER:function(){if(this.ps(),100<new Date-this.Wf&&(this.lq=null),this.R.Gf=null,this.Vf=!1,this.Aq(),this.ia("dragend"),this.xr&&this.lq)if(this.R.Bf){var t=this.lq,e=new w.G(0,0);this.Pd=new w.yi(t,e,function(t,e,i){return 600<=i?e:t.Vc(1-Math.pow(i/600,2)).floor()},1),this.Pd.An=function(t){if(Math.abs(t.x)<2&&Math.abs(t.y)<2)this.Pd.stop(),this.r("moveend"),this.Oo(),this.lq=this.Wf=null;else{var e=t.x,i=t.y,n=this.rotation;n&&(n*=Math.PI/180,e=t.x*Math.cos(n)+Math.sin(n)*t.y,i=-Math.sin(n)*t.x+Math.cos(n)*t.y),e=this.get("centerCoords").Ua(new w.G(e,i).Vc(this.S)),i=this.hU(e),n=t.y,i&&(n=Math.round(this.Ee(i).Ua(this.Ee(e)).y)),this.np(this.La.Ao,t.x,n),e.x=(e.x+w.a.Za)%w.a.Za,this.set("centerCoords",e,!0),this.set("center",this.qe(e),!0),this.ia("mapmove")}},this.Pd.il(this)}else this.r("moveend"),this.Oo(!0),this.lq=this.Wf=null;else this.r("moveend"),this.Oo(),this.lq=this.Wf=null},mia:function(){if(!this.R.refresh){var t=this;this.R.refresh=setInterval(function(){t.set("display",0)},w.l.Y?400:100)}},vN:function(){if(w.l.Mj&&(w.l.JE||w.l.gC)){for(var t=this.La.w.childNodes,e=0;e<t.length;e+=1){var i=t[e];i instanceof HTMLCanvasElement&&(i.width=0),"amap-e"===i.className&&(i.style.height="0")}for(e=0;e<this.$a.length;e+=1)i=this.$a[e],void 0!==AMap.IndoorMap&&i instanceof AMap.IndoorMap&&(i.Hq&&(i.Hq.width=0),i.Dt&&(i.Dt.width=0))}},Oo:function(t){this.R.refresh&&(clearInterval(this.R.refresh),this.R.refresh=null),t||(this.vN(),this.set("display",0))},IY:function(t){this.set("refresh",t)}}),w.Ob.ob({setZoomSlow:function(t){this.sE(t,null,!this.get("animateEnable"))},setPanTo:function(t){this.sE(null,t,!this.get("animateEnable"))},zoomAndCenterChanged:function(t){var e=t[0];e<this.get("zooms")[0]&&(e=this.get("zooms")[0]),e>this.get("zooms")[1]&&(e=this.get("zooms")[1]),this.sE(e,t[1],t[2]||!this.get("animateEnable"))},zoomChanged:function(){this.S=Math.pow(2,20-this.get("zoom")),this.r("closeOverlays"),this.set("display")},rotationChanged:function(t){this.rotation=this.get("rotation"),this.J.r("rotate",{rotation:this.rotation||0}),!0!==t&&this.set("display",0)},pitchChanged:function(){this.pitch=this.get("pitch"),this.J.r("pitch",{pitch:this.pitch||0}),this.set("display",0)},centerCoordsChanged:function(){this.r("closeOverlays"),this.Eka?this.iE(!0):this.iE(!1)}}),w.mO=w.aa.extend({ga:[w.ka,w.te],B:function(t,e){this.type="2D",this.Qf(e,!0),t&&this.M$(t)},M$:function(t){this.map=t,this.he(["size","refresh","maxPitch"],t),this.centerChanged(),t.he(["zoom","center","centerCoords","rotation","pitch"],this)},uO:function(){return this.CF||this.Maa(),this.CF},Maa:function(){var t;if(this.get("center")instanceof w.U){t=new w.Vd(-180,-85,180,85);var e=this.map.Fb(t.hi());t=this.map.Fb(t.Sl()),this.CF={pe:e.x,zd:e.y,Sd:t.x,yd:t.y}}else t=this.map.get("limitBounds"),this.CF={pe:t[0],zd:t[1],Sd:t[2],yd:t[3]}},cD:function(){var t=this.map,e=this.get("zoom");return{zoom:e,zh:this.get("center"),Aa:this.Uk(),gb:this.get("centerCoords"),rotation:parseInt(this.get("rotation")),ef:t.get("crs"),S:Math.pow(2,20-e),ce:Math.round(e),bf:Math.pow(2,20-Math.round(this.get("zoom")))}},centerChanged:function(){this.set("centerCoords",this.map.Fb(this.get("center")).toFixed(3),!0)},centerCoordsChanged:function(){var t=this.map,e=this.uO(),i=this.get("centerCoords"),n=t.getSize(),s=this.get("zoom",null,!0);t=this.get("center",null,!0),n=n.height*Math.pow(2,20-s)/2,t instanceof w.U?i.x=(i.x+268435456)%268435456:i.x<0?i.x=0:i.x>e.Sd&&(i.x=e.Sd),i.y<e.zd+n?i.y=e.zd+n:i.y>e.yd-n&&(i.y=e.yd-n),this.set("center",this.map.qe(i),!0)}}),w.cA=w.mO.extend({Uk:function(){var t=this.get("size"),e=this.get("centerCoords"),i=parseInt(this.get("rotation"))%360,n=this.get("zoom",null,!0),s=Math.pow(2,20-n);if(i=Math.PI*i/180,t=new w.G((Math.abs(t.width*Math.cos(i))+Math.abs(t.height*Math.sin(i)))/2,(Math.abs(t.width*Math.sin(i))+Math.abs(t.height*Math.cos(i)))/2),s=new w.Ie(e.Ua(t.Vc(s)),e.add(t.Vc(s))),n-1<(i=this.map.get("targetLevel"))){var a=Math.pow(2,20-i);s.YE=new w.Ie(e.Ua(t.Vc(a)),e.add(t.Vc(a)))}return s.FZ=i||n,s.Vb=t,s},oca:function(t){var e=this.get("size"),i=this.get("centerCoords"),n=parseInt(this.get("rotation"))%360;return n=Math.PI*n/180,e=new w.G((Math.abs(e.width*Math.cos(n))+Math.abs(e.height*Math.sin(n)))/2,(Math.abs(e.width*Math.sin(n))+Math.abs(e.height*Math.cos(n)))/2),t=Math.pow(2,20-t),new w.Ie(i.Ua(e.Vc(t)),i.add(e.Vc(t)))},Tc:function(){var t=(i=this.Uk()).od.x,e=i.Lb.y,i=new w.G(i.Lb.x,i.od.y);return t=new w.G(t,e),new w.Vd(this.map.qe(i),this.map.qe(t))},zoomChanged:function(){},Ee:function(t,e){this.get("size");var i=t.vb(),n=this.get("centerCoords");(a=i.Ua(n)).x<-w.a.Za/2?a.x+=w.a.Za:a.x>w.a.Za/2&&(a.x-=w.a.Za),i=this.get("size").uz().wc(2);var s=this.get("rotation")*Math.PI/180,a=(n=a.x*Math.cos(s)-Math.sin(s)*a.y,Math.sin(s)*a.x+Math.cos(s)*a.y);return i.add(new w.G(n,a).Vc(Math.pow(2,(e||this.get("zoom"))-20)))},of:function(t,e){var i=this.get("size").uz().wc(2),n=t.Ua(i),s=this.get("rotation")*Math.PI/180;return i=n.x*Math.cos(s)+Math.sin(s)*n.y,n=-Math.sin(s)*n.x+Math.cos(s)*n.y,(i=this.get("centerCoords").add(new w.G(i,n).Vc(Math.pow(2,20-(e||this.get("zoom")))))).x=(i.x+268435456)%268435456,i}}),w.nO=w.mO.extend({B:function(t,e){this.hh=new w.ge,this.pd=new w.ge([1,0,0,0,0,-1,0,0,0,0,-1,0,0,0,0,1]),arguments.callee.oa.apply(this,arguments),this.scale=1,this.type="3D"},refreshChanged:function(){this.Jp()},zoomChanged:function(){this.Jp()},centerChanged:function(){arguments.callee.oa.apply(this,arguments),this.Jp()},centerCoordsChanged:function(){arguments.callee.oa.apply(this,arguments),this.Jp()},rotationChanged:function(){this.Jp()},pitchChanged:function(t){this.Mg.pitch=Math.min(this.get("maxPitch"),Math.max(t,0)),this.Jp()},Jp:function(){if(!this.tja()&&(this.oN(),this.uba(),this.map)){var t=this,e=function(){t.map.camera=t.nV(),t.map.r("camerachange",{map:t.map,camera:t.map.camera})};t.map.ta?e():this.map.h("complete",e,this)}},nV:function(){return{height:this.Qk,fov:this.ica,aspect:this.yx,near:this.Au,far:this.RC,position:this.aaa,rotation:this.Mg.rotation,pitch:this.Mg.pitch}},uba:function(){this.r5=w.a.$g()},EW:function(){return 300<w.a.$g()-this.r5},oN:function(){var t=this.get("centerCoords"),e=this.get("pitch"),i=this.get("rotation"),n=(new w.ge).hZ(-t.x+w.a.fc.x,-t.y+w.a.fc.y,0);this.aaa={x:t.x-w.a.fc.x,y:t.y-w.a.fc.y},t=(new w.ge).$u(180-e,1,0,0),this.iga=(new w.ge).set(t),i=(new w.ge).$u(i,0,0,1),this.xp=(new w.ge).set(i),this.hca=n.Wi(),this.pd=(new w.ge).hZ(0,0,-this.Qk).multiply(t.multiply(i.multiply(n))).toFixed(8),this.pd.oe=this.pd.Wi()},tja:function(t){t=t||this.get("zoom");var e=(i=this.get("size")).width,i=i.height;if(!e||!i)return!0;this.yx=e/=i,i=i/2*Math.pow(2,20-t),t=w.a.Sc((56-t)*Math.PI/180,2),(n=w.a.Sc(i/Math.tan(t/2),0))<2400&&(n=2400,t=2*Math.atan(i/n)),this.ica=t,this.Qk=n,this.Au=this.Qk/10,this.RC=50*this.Qk,this.hba=(this.Qk-this.Au)/(this.RC-this.Au),this.hh.Tha(t,e,this.Au,this.RC),this.hh.oe=this.hh.Wi(),t=this.hh,i=(e=new w.NN).Ty;var n=(v=this.hh.elements)[0],s=v[1],a=v[2],o=v[3],r=v[4],h=v[5],l=v[6],c=v[7],u=v[8],f=v[9],d=v[10],p=v[11],g=v[12],m=v[13],y=v[14],v=v[15];yc(i[0],o-n,c-r,p-u,v-g).normalize(),yc(i[1],o+n,c+r,p+u,v+g).normalize(),yc(i[2],o+s,c+h,p+f,v+m).normalize(),yc(i[3],o-s,c-h,p-f,v-m).normalize(),yc(i[4],o-a,c-l,p-d,v-y).normalize(),yc(i[5],o+a,c+l,p+d,v+y).normalize(),t.eV=e},cD:function(){var t=this.map,e=this.get("zoom");return t.map.ds&&this.Jp(),{zoom:e,yx:this.yx,top:this.top,zh:this.get("center"),Aa:this.Uk(),gb:this.get("centerCoords"),rotation:t.get("rotateEnable")&&parseInt(this.get("rotation"))||0,pitch:t.get("rotateEnable")&&this.get("pitch")||0,fpa:this.get("yaw"),ef:t.get("crs"),S:Math.pow(2,20-e),ce:Math.round(e),bf:Math.pow(2,20-Math.round(this.get("zoom"))),hh:this.hh,pd:this.pd}},Uk:function(){var t,e,i=(n=this.get("size")).width,n=n.height;if(!i||!n)return null;if(e=0,t=this.of(new w.G(0,e),!0),55<this.Mg.pitch||!t)for(;!t;)e+=n/40,t=this.of(new w.G(0,e),!0);this.top=e/n,e=this.of(new w.G(i,e),!0);var s=0,a=this.Mg.zoom;return 50<=this.Mg.pitch&&18<=a&&(s=0),a=this.of(new w.G(i,n+s),!0),s=this.of(new w.G(0,n+s),!0),t=[t.lk(),e.lk(),a.lk(),s.lk(),t.lk()],(t=new w.N_(t)).QI=this.of(new w.G(i/2,n+256),!0),t},Tc:function(){var t=this.Uk();if(t){for(var e=[],i=0;i<t.path.length;i+=1){var n=this.map.qe(new w.G(t.path[i][0],t.path[i][1]));e.push(n)}return new w.um(e)}},Ee:function(t,e,i){return t.z=i||0,t=(t=this.rX([t]))[0],new w.G(t.x,t.y)},qV:function(t){var e=this.get("size");return(t=new w.qj([t.x/e.width*2-1,1-t.y/e.height*2,-1,1])).multiply(this.Au),this.hh.oe.Jf(t)},of:function(t,e,i){var n;n=this.map?this.map.getSize(!0):this.get("size");var s=t.x/n.width*2-1;if(n=1-t.y/n.height*2,(t=new w.qj([s,n,-1,1])).multiply(this.Au),!this.hh.oe)return null;t=this.hh.oe.Jf(t),(s=new w.qj([s,n,1,1])).multiply(this.RC),n=this.hh.oe.Jf(s);var a=this.pd.oe;return s=a.Jf(t).elements,t=a.Jf(n).elements,i=(s[2]-(-i||0))/(s[2]-t[2]),t[2]<0||i<0||e&&i>2.5*this.hba?null:(e=s[0]-i*(s[0]-t[0]),i=s[1]-i*(s[1]-t[1]),isNaN(e)||isNaN(i)?null:new w.G(e,i).add(w.a.fc))},rX:function(t){for(var e=this.get("centerCoords"),i=w.a.fc.x,n=w.a.fc.y,s=this.get("size"),a=[],o=new w.qj([0,0,0,1]),r=o.elements,h=new w.G(0,0),l=0,c=t.length;l<c;l++){h.x=t[l].x,h.y=t[l].y,h.z=-t[l].z||0,e.x-h.x<-w.a.Za/2?h.x-=w.a.Za:e.x-h.x>w.a.Za/2&&(h.x+=w.a.Za),r[0]=h.x-i,r[1]=h.y-n,r[2]=h.z,r[3]=1;var u=this.hh.Jf(this.pd.Jf(o));u.multiply(1/u.elements[3]),a.push({x:(u.elements[0]+1)/2*s.width,y:(1-u.elements[1])/2*s.height,z:u.elements[2]})}return a},Pja:function(t){var e=this.get("size");return(t=this.hh.Jf(this.pd.Jf((new w.qj).copy(t)))).multiply(1/t.elements[3]),(e=new w.G((t.elements[0]+1)/2*e.width,(1-t.elements[1])/2*e.height)).z=t.elements[2],e}}),w.a.fc=new w.G(215440491,106744817),w.Ob.ob({eU:function(t,e,i){var n=this;n.TE?(w.a.RI(n.TE),n.TE=null):(n.ia("zoomstart",{zoom:t}),n.r("zoomstart")),n.TE=w.a.gz(function(){n.TE=null,n.ia("zoomend",{zoom:t}),n.ia("zoomchange",{zoom:t}),n.r("zoomend")},{timeout:150}),t=w.a.Sc(t,2),n.Av(t,!0,e,i)},Av:function(n,t,e,i){function s(t){t=w.a.Sc(t,2);var e=this.of(h);this.set("zoom",t);var i=this.of(h);e=i&&i?i.Ua(e):new w.G(0,0),this.set("centerCoords",this.get("centerCoords").Ua(e).toFixed(3)),e.x&&e.y&&this.ia("mapmove"),t===n&&Math.floor(n)===n&&(this.set("targetLevel",null),a&&(this.ia("zoomchange"),this.ia("zoomend")),o&&this.r("moveend"),this.r("zoomend"),this.Re=null)}"3D"!==this.J.view.type&&(w.l.Y||w.l.ae)&&(t=!0),n=n||this.get("zoom");var a=(n=Math.min(Math.max(n,this.get("zooms")[0]),this.get("zooms")[1]))!==this.get("zoom"),o=!!e;this.Pd&&(this.Pd.stop(),this.Pd=null),e=e||this.get("centerCoords");var r,h=this.Ee(e);this.Xc&&this.Xc.Yr&&(this.Xc.stop(),this.Xc.zK&&(i=!0),this.Xc.jy&&(r=!0),this.Xc=null,this.set("targetLevel",null)),this.Re&&this.Re.Yr&&(this.Re.stop(),i=!0,this.Re.jy&&(r=!0),this.Re=null,this.set("targetLevel",null)),a&&!i&&this.ia("zoomstart"),o&&!r&&this.ia("movestart"),this.r("zoomstart"),t?s.call(this,n):(this.Re=new w.yi(this.get("zoom"),n,null,.02),this.Re.zK=a,this.Re.jy=o,this.Re.transition=function(t,e,i){return i>=w.A.dC?e:(e-t)*(1-Math.pow(1-i/w.A.dC,4))+t},this.Re.An=s,this.Re.il(this,!0),this.set("targetLevel",n))},sE:function(e,t,i,n){var s=null;e||(e=this.Xc?this.Xc.uia:this.get("targetLevel")||this.get("zoom")),s=t?this.Fb(t).toFixed(3):this.Xc?this.Xc.EZ:this.get("centerCoords");var a=e!==this.get("zoom"),o=!s.qb(this.get("centerCoords")),r=t=!1;if(this.Re&&this.Re.Yr&&(this.Re.stop(),t=!0,this.Re.jy&&(r=!0),this.Re=null,this.set("targetLevel",null)),this.Xc&&this.Xc.Yr&&(this.Xc.stop(),this.Xc.zK&&(t=!0),this.Xc.jy&&(r=!0),this.Xc=null,this.set("targetLevel",null)),this.Pd&&(this.Pd.stop(),this.Pd=null),a||o)if((!this.J.view.Uk().contains(s)||a&&"3D"!==this.J.view.type&&(w.l.Y||w.l.ae))&&(i=!0),i)a&&(t||(this.r("zoomstart"),this.ia("zoomstart")),this.set("zoom",e),this.ia("zoomchange"),this.ia("zoomend"),this.r("zoomend")),o&&(r||n||(this.ia("movestart"),this.r("movestart")),this.set("centerCoords",s),this.ia("mapmove"),this.r("moveend",{FW:n})),this.set("targetLevel",null);else{this.set("targetLevel",e);var h=e-this.get("zoom"),l=s.Ua(this.get("centerCoords")).toFixed(3);this.Xc=new w.yi(1,0,null,.001),this.Xc.zK=a,this.Xc.jy=o,this.Xc.EZ=s,this.Xc.uia=e,this.Xc.transition=function(t,e,i){return Math.pow(1-Math.min(w.A.dC,i)/w.A.dC,2)},this.Xc.An=function(t){t<.02?(this.Xc&&(this.Xc.stop(),this.Xc=null),a&&(this.set("zoom",e),this.ia("zoomchange"),this.ia("zoomend"),a=!1,this.r("zoomend")),o&&(this.set("centerCoords",s),this.r("mapmove"),this.r("moveend",{FW:n})),this.set("targetLevel",null)):(a&&this.set("zoom",e-h*t),o&&(t=s.Ua(l.Vc(t)).toFixed(3),this.set("centerCoords",t),this.ia("mapmove"))),this.set("display",1)},this.Xc.il(this),a&&!t&&(this.r("zoomstart"),this.ia("zoomstart")),!o||r||n||(this.r("movestart"),this.ia("movestart"))}}}),w.w={},w.w.qc=w.aa.extend({ga:[w.ka,w.te],B:function(t,e){this.fa=t,this.gd=[3,18],this.eA=w.a.Jb(this),t&&this.he(["opacity","visible","zIndex","zooms"],t),t.Pp=e.J.getViewMode_(),this.g=e,this.X("display",e)},gg:function(){if(this.ji&&this.YI(),w.Da&&w.Da.Np&&w.Da.Np.length){var t=w.a.indexOf(w.Da.Np,this);-1!==t&&(w.Da.Np=w.a.Nl(w.Da.Np,t))}if(t=this.yb){if(t.length)for(var e=0;e<t.length;e+=1)t[e].parentNode&&t[e].parentNode.removeChild(t[e]);else t.parentNode&&t.parentNode.removeChild(t);this.yb=null}this.fa.gg&&this.fa.gg(),this.fa.Oi=!1,this.fa.w=null,this.Qn(),this.Q&&(this.Q.Vt(),this.Q=null),this.pm&&(this.pm.Vt(),this.pm=null)},ia:function(t,e){this.fa.r(t,e)},visibleChanged:function(){this.set("display",0)},zIndexChanged:function(){this.set("display",0)},xM:function(t){w.j.Kn(t,this.opacity)},opacityChanged:function(){var t=this.get("opacity");if(this.opacity=Math.min(Math.max(0,t),1),t=this.yb)if(t.length)for(var e=0;e<t.length;e+=1)this.xM(t[e]);else this.xM(t)},WJ:function(){if(e=this.get("bounds")){if(e instanceof w.Vd){var t=e.hi(),e=e.Sl(),i=this.g.Fb(new w.U(180,0)).x,n=this.g.Fb(t),s=this.g.Fb(e),a=this.g.get("center");t.P>e.P&&(0<a.P?s.x+=i:n.x-=i),this.H=[n.x,n.y,s.x,s.y]}else e instanceof w.Ie?this.H=[e.Lb.x,e.Lb.y,e.od.x,e.od.y]:e instanceof w.dA&&"3D"===this.fa.Pp&&(t=e.path[1],n=this.g.Fb(e.path[0]),s=this.g.Fb(t),this.H=[n.x,n.y,s.x,s.y,e.WY,e.height]);return this.H}return null}});var Fc=function(){function t(t){return this.xF[w.a.Jb(t)]=t,this}function e(t){return this.xF[w.a.Jb(t)]=null,this}return function(){function s(){var t,e,i=s.xF,n=[];for(e in i)Object.prototype.hasOwnProperty.call(i,e)&&n.push(i[e]);for(i=n.length-1;0<=i;i-=1)void 0!==(e=n[i].apply(this,arguments))&&(t=e);return t}return s.xF={},s.DT=t,s.Una=e,s}}();function Gc(t,e,i){this.url=t,this.Cc=e,this.PJ=i,this.Rk=this.jE=!1}function Hc(t,e,i){var n=Ic;return function(){return n.call(this,t,e,i)}}function Ic(t,e,i){t.Zla=+new Date,t.loaded=e,clearTimeout(t.Dia);var n=t.yea;n.fl.remove(t.url)&&n.s5(),n=t.Yda?t.xa:t.qa,t.xa=null,(i||e||t.PJ)&&t.Cc(e?n:null,t),t.LW?(t.LW.bi(),t.LW=null):n&&(n.onload=null,n.onerror=null,n.onabort=null,t.qa=null)}function Jc(t,e,i){this.z=t,this.x=e,this.y=i}w.hf=w.aa.extend({ga:[w.ka],B:function(t,e){this.Al=0|t,this.hA=!!e,this.count=0,this.uL=Fc(),this.clear(),this.eB=[]},ap:function(){return!this.count},Pma:function(){return this.count>=this.Al},toa:function(t){this.Al!==t&&(this.Al=0|t)&&this.mT(this.Al)},Fc:function(t){return!!this.g[t]},get:function(t,e){var i=this.JP(t);return i?i.value:e},set:function(t,e){var i=this.JP(t);i?i.value=e:(i=new w.hf.Xp(t,e),this.g[t]=i,this.DQ(i),this.count+=1)},Sn:function(t){this.remove(t)},remove:function(t){return!!Object.prototype.hasOwnProperty.call(this.g,t)&&(this.Xw(this.g[t]),!0)},forEach:function(t,e){for(var i=this.sc.next;i!==this.sc;i=i.next)t.call(e,i.value,i.key,this)},VD:function(t,e){return Object.prototype.hasOwnProperty.call(this.g,t)?this.g[t].value:e},Bna:function(){return this.sc.next.value},Cna:function(){return this.sc.va.value},shift:function(){return this.oS(this.sc.next)},kU:function(){this.eB.length=0},dX:function(t){this.eB.push(t)},push:function(t){t=new w.hf.Xp("",t),0===this.count?(this.sc.va=null,t.va=this.sc,this.sc.next=t):(this.lx.next=t).va=this.lx,this.count+=1,this.lx=t},ija:function(t){t=new w.hf.Xp("",t),0===this.count?(this.sc.va=null,t.va=this.sc,this.lx=this.sc.next=t):((this.sc.next.va=t).next=this.sc.next,t.va=this.sc,this.sc.next=t),this.count+=1},Zea:function(){if(this.count){this.count-=1;var t=this.sc.next;return t.next?(t.next.va=this.sc,this.sc.next=t.next):(this.sc.next=null,this.lx=this.sc.va=null),t.next=null,t.va=null,t.value}return null},pop:function(){return this.oS(this.sc.va)},JP:function(t){if(Object.prototype.hasOwnProperty.call(this.g,t))return t=this.g[t],this.hA&&(t.remove(),this.DQ(t)),t},DQ:function(t){this.hA?(t.next=this.sc.next,t.va=this.sc,(this.sc.next=t).next.va=t):(t.va=this.sc.va,t.next=this.sc,(this.sc.va=t).va.next=t),this.Al&&this.q9(this.Al)},q9:function(){var t=this;t.px||(t.px=setTimeout(function(){t.px=null,t.mT(t.Al)},0))},mT:function(t){if(this.px&&(clearTimeout(this.px),this.px=null),!(this.count<t)){for(var e=this.hA?this.sc.va:this.sc.next,i={},n=0,s=this.eB.length;n<s;n++)i[this.eB[n]]=!0;for(;e&&this.count>t&&(n=this.hA?e.va:e.next,e.key&&!i[e.key]&&(this.Xw(e),this.uL(e.value)),(e=n)!==this.sc&&e!==this.lx););}},Xw:function(t){t.remove(),delete this.g[t.key],this.count-=1},oS:function(t){return this.sc!==t&&this.Xw(t),t.value},clear:function(){this.g={},this.sc=new w.hf.Xp("",null),this.sc.va=this.sc.next=this.sc,this.count=0}}),w.hf.Xp=function(t,e){this.key=t,this.value=e},w.hf.Xp.prototype.va=null,w.hf.Xp.prototype.next=null,w.hf.Xp.prototype.remove=function(){this.va.next=this.next,this.next.va=this.va,this.next=this.va=null},w.Rz=w.aa.extend({Bka:"assets/image/blank.gif",B:function(t,e,i){this.timeout=e||15e3,this.Fn=new w.hf(1024),this.fl=new w.hf(1024),this.rU=t,this.EJ=i},UF:function(t){for(t&&this.fl.count>=this.rU&&(t=this.fl.sc.va.value).Rk&&(this.fl.remove(t.url),this.BO(t));this.Fn.count&&!(this.fl.count>=this.rU);)this.e3(this.Fn.shift())},s5:function(){if(!this.eP){this.eP=!0;var t=this;setTimeout(function(){t.eP=!1,t.UF()},0)}},e3:function(t){var e=document.createElement("img");t.kca&&(e.crossOrigin="anonymous"),e.src=t.url,t.qa=e,t.yea=this,t.startTime=+new Date,t.jE=!0,e.complete?Ic(t,!0):(this.fl.set(t.url,t),e.onload=Hc(t,!0),e.onerror=Hc(t,!1,!0),e.onabort=Hc(t,!1),t.Dia=setTimeout(Hc(t,!1,!0),this.timeout))},BO:function(t){t.jE&&(Ic(t,!1),t.Rk=!0,t.lla=!0)},bna:function(t,e,i){return this.zD(t.url,e,i,!0,t.ma.z+"_"+t.ma.x+"_"+t.ma.y)},zD:function(t,e,i,n,s){var a=this.fl.get(t);if(a&&a.Rk)a.Rk=!1,a.Cc=e,a.PJ=i;else{if((a=new Gc(t,e,i)).Yda=n,a.key=s,this.Fn.get(w.a.Jb(a)))return;this.Fn.set(w.a.Jb(a),a),this.UF(!0)}return a},sea:function(t,e,i){var n=this.fl.get(t);if(n&&n.Rk)n.Rk=!1,n.Cc=e,n.PJ=i;else{if((n=new Gc(t,e,i)).kca=!0,this.Fn.get(w.a.Jb(n)))return;this.Fn.set(w.a.Jb(n),n),this.UF(!0)}return n},dU:function(t){t.Rk||(t.Rk=!0,this.Fn.remove(w.a.Jb(t)))},clear:function(t){if(this.Fn.forEach(function(t){t.Rk=!0}),this.Fn.clear(),t)for(;0<this.fl.length;)t=this.fl.pop(),this.BO(t);else this.fl.forEach(function(t){t.Rk=!0})}}),Jc.prototype.vb=function(){return new Jc(this.z,this.x,this.y)},Jc.prototype.toString=function(){return this.z+"/"+this.x+"/"+this.y},w.Xa=function(t){var e=1<arguments.length&&void 0!==arguments[1]&&arguments[1];this.ma=t,this.key=t.toString(),this.xg=e},w.uk=Jc,w.w.Xa=w.w.qc.extend({B:function(t,e,i,n,s){arguments.callee.oa.apply(this,arguments),this.X("tileSize",t),this.X("tiles",t),this.he(["zooms","type","detectRetina","errorUrl"],t),this.X("lang",e,!0),this.X("mapStyle",e,!0),this.X("style",e,!0),this.X("features",e,!0);var a="overlayer"===t.get("type")||!1===t.get("blend");this.tj=!a&&!w.l.Y,(w.l.ae||w.l.cpa)&&(this.tj=!1);var o=(o=e.get("size")).width*o.height/65536;this.ja=w.l.Y&&w.l.ja&&this.get("detectRetina"),w.l.qd&&w.l.Y&&9<o&&(this.tj=!1),this.$h=!a&&!t.oi,this.ai=!a&&!t.oi,this.OZ=i,this.X("reload",t),t.Vda?this.X("createTile",t):this.X("tileFun",t),this.De=n,this.kW=s},langChanged:function(){this.set("reload"),this.fa.up()},mapStyleChanged:function(){this.set("reload"),this.fa.up()},styleChanged:function(){this.g.ec||(this.set("reload"),this.fa.up())},featuresChanged:function(){this.set("reload"),this.fa.up()},reloadChanged:function(){this.set("display",0)},tileFunChanged:function(){var s=this.OZ||this.get("tileFun");this.Qt=function(e,i,n){var t=s(e.ma.x,e.ma.y,e.ma.z);e.dp&&!e.dp.Rk||(e.loaded=!1,e.dp=("3D"===this.g.J.view.type?w.Yj.sea:w.Yj.zD).call(w.Yj,t,function(t){e.dp=null,t?i(t):n()},!1))}},createTileChanged:function(){var n=this.fa.getCreateTile();this.Qt=function(t,e,i){n.call(this.q.fa,t.ma.x,t.ma.y,t.ma.z,e,i)},this.set("reload")},mn:function(){return{ee:this.fa.get("tileSize"),visible:this.fa.get("visible"),H:this.WJ(),gd:this.fa.getZooms(!0),kC:this.tj,$h:this.$h,ai:this.ai,opacity:this.fa.get("opacity"),Qt:this.fa.get("createTile"),Tl:this.OZ||this.fa.get("tileFun"),qd:!this.fa.op&&this.fa.get("detectRetina")&&w.l.ja&&w.l.Y}},Jl:function(t){if(w.Q.Gd.zi)return new w.Q.Gd.zi(this,t)}}),w.Yj=new w.Rz(6,null),w.w.Kc=w.w.qc.extend({B:function(t,e){this.kb=Math.min(2,window.devicePixelRatio||1),this.qd=w.l.ja&&!t.Ph,this.map=e,this.Nn=0,this.Xj=!1,this.df=this.Ge=0,this.Lf=[],arguments.callee.oa.apply(this,arguments),this.Ir=[],this.fi=new w.w.T_,t&&(this.X("style",t),this.X("cursor",t,!0),this.jia=t.get("stable")||!1,this.X("dataSources",t),this.X("bubble",t)),this.X("display",e),this.F1()},mn:function(){return{visible:this.get("visible"),gd:this.get("zooms"),opacity:this.get("opacity"),zIndex:this.get("zIndex"),wx:this.fa.get("alwaysRender")||!1}},dataSourcesChanged:function(){var t=this.get("dataSources");t&&t.length?"string"==typeof t?new w.Sa.fb(t).h("complete",function(t){this.QX(t.data),this.Jo=t.data,this.Xj=!0,this.set("display"),this.ta=!0,this.fa.r("complete")},this):t.length&&(this.QX(t),this.Jo=t,this.Xj=!0,this.set("display"),this.ta=!0,this.fa.r("complete")):this.clear()},getDatas:function(){return this.Jo},oja:function(){if(this.fa.Ph){var t=this.kk;this.Ge=t.Ge,this.df=t.df}},ia:function(t,e){var i={type:t,data:"mouseout"===t?this.q5||null:e.Eq.Ra,target:this.fa};this.q5="mouseout"===t?null:e.Eq.Ra,this.fa.r(t,i)},ac:function(t){this.ia(t.type,t)},F1:function(){this.h("click",this.ac),this.h("dblclick",this.ac),this.h("mousedown",this.ac),this.h("mouseup",this.ac),this.h("mouseover",this.ac),this.h("mouseout",this.ac),this.h("touchstart",this.ac),this.h("touchend",this.ac)},hla:function(){this.I("click",this.ac),this.I("dblclick",this.ac),this.I("mousedown",this.ac),this.I("mouseup",this.ac),this.I("mouseover",this.ac),this.I("mouseout",this.ac),this.I("touchstart",this.ac),this.I("touchend",this.ac)},styleChanged:function(){this.kk=this.get("style"),this.oja(),this.set("display",0)},QX:function(t){if(t){this.clear();for(var e=0;e<t.length;e+=1){var i=t[e].lnglat;t[e].lnglat=w.a.ya(i),i=this.map.Fb(i),(i=new w.Ig({name:"point-"+w.a.Jb(this),Z:new w.pa.Tf([i.x,i.y],!0)})).po=this,i.Ra=t[e],this.$B(i)}}},Wca:function(t){return"geojson"===t?new w.W_({map:this.map}):"topjson"===t?new w.rka({map:this.map}):"subway"===t?new w.pka({map:this.map}):void 0},cga:function(t){if(t){var e=[],i=(e=[],{});if(t.rules){for(var n=0,s=(e=t.rules).length;n<s;n+=1){for(var a=[],o=e[n].symbolizers,r=0,h=o.length;r<h;r+=1)o[r].fill&&(a[r]=new w.style.vf.LN(o[r].fill)),o[r].stroke&&(a[r]=new w.style.vf.iO(o[r].stroke));o=a,e[n].AE=o,e[n]=new w.style.D0(e[n])}i.rules=e}if(t.symbolizers){for(e=t.symbolizers,t=0,n=e.length;t<n;t+=1)e[t].fill&&(e[t]=new w.style.vf.LN(e[t].fill)),e[t].stroke&&(e[t]=new w.style.vf.iO(e[t].stroke));i.AE=e}t=new w.sF(i)}else t=new w.sF({});return this.set("style",t),t},fla:function(e,i){var t=new w.Sa.fb(e);t.h("complete",function(t){t=this.xa[e]=this.Wca(i).$L(t),this.Ht(t),this.ia("complete")},this),t.h("error",this.Kb,this)},Bga:function(t){"px"===t.target.get("unit")?(this.Ge=Math.max(t.hj,this.Ge),this.df=Math.max(t.hj,this.df)):t.hj>this.lp&&(this.lp=t.hj,this.xu=this.lp/this.map.get("resolution",20))},$B:function(t){if(this.fi.add(t),!this.Vx&&!this.fa.Ph){if(0===t.name.indexOf("circle")||0===t.name.indexOf("ellipse")){t.h("rad",this.Bga,this);var e=t.get("radius");e.length&&(e=Math.max.apply(null,e)),"px"===t.get("unit")?(this.Ge=Math.max(e,this.Ge),this.df=Math.max(e,this.df)):this.lp?e>this.lp&&(this.lp=e,this.xu=this.lp/this.map.get("resolution",20)):(this.lp=e,this.xu=this.lp/this.map.get("resolution",20))}e=t.get("strokeWeight")||0,(!this.yu||e>this.yu)&&(this.yu=e)}this.jia||t.X("feature",this,!0)},Ht:function(t){this.Xj=!0;for(var e=0,i=t.length;e<i;e+=1)this.$B(t[e])},clear:function(){this.Xj=!0,this.Jo=[],this.fi.clear(),this.set("display",0)},Ui:function(t){var e;return t[0]<0?(e=[t[0]+w.a.Za,t[1],w.a.Za,t[3]],t=[0,t[1],t[2],t[3]],e=this.fi.Ui(e),t=this.fi.Ui(t),w.extend(e,t)):t[2]>w.a.Za?(e=[t[0],t[1],w.a.Za,t[3]],t=[0,t[1],t[2]-w.a.Za,t[3]],e=this.fi.Ui(e),t=this.fi.Ui(t),w.extend(e,t)):this.fi.Ui(t)},uma:function(t){var e,i=this.get("style"),n=t.jj;return i instanceof w.sF||(i=this.cga(i)),n&&0<n.length?e=i.zU(n,t):((i.RY.length||i.jj.length)&&(e=i.Zaa(t)),e||(e=t.Cca())),e},rK:function(t){function e(t,e){return t.Tj-e.Tj}var i,n,s,a,o=[],r={};for(i in t)if(t.hasOwnProperty(i)){for(n in a=(s=t[i]).get("zIndex"),r)if(r.hasOwnProperty(n)&&o[r[n]][2]===a)break;void 0===r[a]&&(o.push([[],[],a]),r[a]=o.length-1),(a=o[r[a]])[0].push(s)}for(o.sort(this.eia),t=0,i=o.length;t<i;t+=1)o[t][0].sort(e);return o},featureChanged:function(t){this.Xj=!0;var e=t.target,i=e.Z;0!==this.fi.Hca([w.a.Jb(e)]).length&&(this.fi.remove(e,t.Kr),i&&!t.nba&&this.fi.add(e))},rY:function(t){this.Xj=!0;for(var e,i=0,n=t.length;i<n;i+=1)(e=t[i]).Z.Kr=null,e.No(!0),e.mj("feature")},woa:function(t,e){return t[1].zIndex===e[1].zIndex?w.a.Jb(t[1])-w.a.Jb(e[1]):t[1].zIndex-e[1].zIndex},eia:function(t,e){return t[2]-e[2]},poa:function(t){return t.zma()===w.w.vka.nka},Jl:function(t){return this.Vx?new w.Q.Rd.rj(this,t):"c"===this.map.get("overlayRender")&&w.Q.canvas.rj?new w.Q.canvas.rj(this,t):w.Q.Gd.rj&&"d"===this.map.get("overlayRender")?new w.Q.Gd.rj(this,t):null}}),w.w.Kc.ob({Kl:function(t){return this.Vx?new w.Ma.Rd.rj(this,t):this.fa.Ph?new w.Ma.o0(this,t):new w.Ma.rj(this,t)}}),w.w.T_=w.aa.extend({B:function(){this.clear()},clear:function(){this.rn=[],this.XL=new w.Vh},add:function(t){var e=w.a.Jb(t),i=t.Z;this.rn[e]||(this.count+=1,this.rn[e]=t,i&&!w.H.qb(i.Tc(),[1/0,1/0,-1/0,-1/0])&&this.XL.ty(i.Tc(),t))},oma:function(){return this.rn},Ui:function(t){return this.XL.wha(t)},Hca:function(t){var e,i=t.length,n=[];for(e=0;e<i;e+=1)this.rn[t[e]]&&n.push(this.rn[t[e]]);return n},remove:function(t,e){var i=w.a.Jb(t).toString(),n=t.Z;this.rn[i]&&(this.rn[i]=null,n&&(i=void 0!==e?e:n.Tc(),this.XL.remove(i,t)))}}),w.Vh=w.aa.extend({B:function(t){this.jX=void 0!==t?t:6,this.FD=Math.floor(this.jX/2),this.iz={H:[1/0,1/0,-1/0,-1/0],rb:[]},this.count=0},laa:function(t,e){var i,n=-1,s=[];s.push(e);var a=e.rb;do{-1!==n&&(s.push(a[n]),a=a[n].rb,n=-1);for(var o=a.length-1;0<=o;o-=1){if(void 0!==(h=a[o]).Dr){n=-1;break}var r=w.Vh.bv(h.H[2]-h.H[0],h.H[3]-h.H[1],h.rb.length+1),h=w.Vh.bv((h.H[2]>t.H[2]?h.H[2]:t.H[2])-(h.H[0]<t.H[0]?h.H[0]:t.H[0]),(h.H[3]>t.H[3]?h.H[3]:t.H[3])-(h.H[1]<t.H[1]?h.H[1]:t.H[1]),h.rb.length+2);(n<0||Math.abs(h-r)<i)&&(i=Math.abs(h-r),n=o)}}while(-1!==n);return s},ty:function(t,e,i){t={H:t,Dr:e},void 0!==i&&(t.type=i),this.qW(t,this.iz),this.count+=1},qW:function(t,e){var i;if(0===e.rb.length)e.H=w.H.vb(t.H),e.rb.push(t);else{var n=this.laa(t,e),s=t;do{if(i&&void 0!==i.rb&&0===i.rb.length){for(var a=i,o=0,r=(i=n.pop()).rb.length;o<r;o+=1)if(i.rb[o]===a||0===i.rb[o].rb.length){i.rb.splice(o,1);break}}else i=n.pop();if(a=s instanceof Array,void 0!==s.Dr||void 0!==s.rb||a){if(a){for(a=0,o=s.length;a<o;a+=1)w.H.extend(i.H,s[a].H);i.rb=i.rb.concat(s)}else w.H.extend(i.H,s.H),i.rb.push(s);i.rb.length<=this.jX?s={H:w.H.vb(i.H)}:(s=a=this.mea(i.rb),n.length<1&&(i.rb.push(a[0]),n.push(i),s=a[1]))}else w.H.extend(i.H,s.H),s={H:w.H.vb(i.H)}}while(0<n.length)}},mea:function(t){for(var e=this.fga(t);0<t.length;)this.gga(t,e[0],e[1]);return e},fga:function(t){for(var e=t.length-1,i=0,n=t.length-1,s=0,a=t.length-2;0<=a;a-=1){var o=t[a];o.H[0]>t[i].H[0]?i=a:o.H[2]<t[e].H[1]&&(e=a),o.H[1]>t[s].H[1]?s=a:o.H[3]<t[n].H[3]&&(n=a)}return Math.abs(t[e].H[2]-t[i].H[0])>Math.abs(t[n].H[3]-t[s].H[1])?i<e?(e=t.splice(e,1)[0],i=t.splice(i,1)[0]):(i=t.splice(i,1)[0],e=t.splice(e,1)[0]):s<n?(e=t.splice(n,1)[0],i=t.splice(s,1)[0]):(i=t.splice(s,1)[0],e=t.splice(n,1)[0]),[{H:w.H.vb(e.H),rb:[e]},{H:w.H.vb(i.H),rb:[i]}]},gga:function(t,e,i){for(var n,s,a,o=w.Vh.bv(e.H[2]-e.H[0],e.H[3]-e.H[1],e.rb.length+1),r=w.Vh.bv(i.H[2]-i.H[0],i.H[3]-i.H[1],i.rb.length+1),h=t.length-1;0<=h;h-=1){var l=t[h],c=[e.H[0]<l.H[0]?e.H[0]:l.H[0],e.H[2]>l.H[2]?e.H[2]:l.H[2],e.H[1]<l.H[1]?e.H[1]:l.H[1],e.H[3]>l.H[3]?e.H[3]:l.H[3]],u=(c=Math.abs(w.Vh.bv(c[1]-c[0],c[3]-c[2],e.rb.length+2)-o),l=[i.H[0]<l.H[0]?i.H[0]:l.H[0],i.H[2]>l.H[2]?i.H[2]:l.H[2],i.H[1]<l.H[1]?i.H[1]:l.H[1],i.H[3]>l.H[3]?i.H[3]:l.H[3]],l=Math.abs(w.Vh.bv(l[1]-l[0],l[3]-l[2],i.rb.length+2)-r),Math.abs(l-c));(!s||!n||u<n)&&(s=h,n=u,a=l<c?i:e)}o=t.splice(s,1)[0],e.rb.length+t.length+1<=this.FD?(e.rb.push(o),w.H.extend(e.H,o.H)):i.rb.length+t.length+1<=this.FD?(i.rb.push(o),w.H.extend(i.H,o.H)):(a.rb.push(o),w.H.extend(a.H,o.H))},remove:function(t,e){var i=[];if(i[0]={H:t},(i[1]=e)||(i[1]=!1),i[2]=this.iz,this.count-=1,!1!==i[1])return this.vY.apply(this,i);for(var n=[];n.length!==(n=n.concat(this.vY.apply(this,i))).length;);return n},vY:function(t,e,i){var n,s=[],a=[],o=[];if(!t||!w.H.sf(t.H,i.H))return o;t=w.H.vb(t.H),a.push(i.rb.length),s.push(i);do{i=s.pop();var r=a.pop()-1;if(void 0!==e)for(;0<=r;){var h=i.rb[r];if(w.H.sf(t,h.H)){if(e&&void 0!==h.Dr&&h.Dr===e||!e&&(void 0!==h.Dr||w.H.sU(t,h.H))){void 0!==h.rb?(o=this.Xu(h,!0,[],h),i.rb.splice(r,1)):o=i.rb.splice(r,1),w.Vh.bM(i),e=void 0,i.rb.length<this.FD&&(n=this.Xu(i,!0,[],i));break}void 0!==h.rb&&(a.push(r),s.push(i),r=(i=h).rb.length)}r-=1}else if(void 0!==n){for(i.rb.splice(r+1,1),0<i.rb.length&&w.Vh.bM(i),r=0,h=n.length;r<h;r+=1)this.qW(n[r],i);(n.length=0)===s.length&&i.rb.length<=1?(n=this.Xu(i,!0,n,i),i.rb.length=0,s.push(i),a.push(1)):0<s.length&&i.rb.length<this.FD?(n=this.Xu(i,!0,n,i),i.rb.length=0):n=void 0}else w.Vh.bM(i)}while(0<s.length);return o},search:function(t,e){return this.Xu({H:t},!1,[],this.iz,e)},wha:function(t,e){return this.Xu({H:t},!1,[],this.iz,e,!0)},Xu:function(t,e,i,n,s,a){var o={},r=[];if(!w.H.sf(t.H,n.H))return i;r.push(n.rb);do{for(var h=(n=r.pop()).length-1;0<=h;h-=1){var l=n[h];w.H.sf(t.H,l.H)&&(void 0!==l.rb?r.push(l.rb):void 0!==l.Dr&&(e?i.push(l):void 0!==s&&l.type!==s||(l=l.Dr,void 0!==a?o[w.a.Jb(l)]=l:i.push(l))))}}while(0<r.length);return void 0!==a?o:i}}),w.Vh.bM=function(t){var e=t.rb.length,i=t.H;if(0===e)w.H.empty(i);else{var n=t.rb[0].H;for(i[0]=n[0],i[2]=n[2],i[1]=n[1],i[3]=n[3],n=1;n<e;n+=1)w.H.extend(i,t.rb[n].H)}},w.Vh.bv=function(t,e,i){var n=(t+e)/2;return(t*=e)*i/(t/(n*n))},w.D=w.D||{},w.D.Lg=w.aa.extend({ga:[w.ka,w.te],Pfa:["position","altitude","visible","clickable","bubble"],B:function(t,e){this.map=e,this.he(this.Pfa,t),this.X("zIndex",t),this.X("draggable",t),w.l.Oe&&this.M1(),w.l.Y||this.MF(),this.Bc=t,this.Bc.D=this},draggableChanged:function(){this.get("draggable")?this.LF():this.sH()},ia:function(t,e){var i;i=e?{type:t,pixel:e.sb,target:this.Bc,lnglat:e.tf}:{type:t},this.Bc&&this.Bc.r(t,i)},ac:function(t){("click"!==t.type&&"rightclick"!==t.type&&"dblclick"!==t.type&&"longclick"!==t.type||this.get("clickable"))&&this.ia(t.type,t)},KF:function(){this.h("click",this.ac),this.h("rightclick",this.ac),this.h("longclick",this.ac),this.h("longpress",this.ac),this.h("dblclick",this.ac)},oT:function(){this.I("click",this.ac),this.I("rightclick",this.ac),this.I("longclick",this.ac),this.I("longpress",this.ac),this.I("dblclick",this.ac)},MF:function(){this.get("clickable")&&this.KF(),this.h("mousemove",this.ac),this.h("mouseout",this.ac),this.h("mouseover",this.ac),this.h("mousedown",this.ac),this.h("mouseup",this.ac)},ila:function(){this.oT(),this.I("mousemove",this.ac),this.I("mouseout",this.ac),this.I("mouseover",this.ac),this.I("mousedown",this.ac),this.I("mouseup",this.ac)},clickableChanged:function(){this.get("clickable")?this.KF():this.oT()},M1:function(){this.get("clickable")&&this.KF(),this.h("touchstart",this.ac,this),this.h("touchmove",this.ac,this),this.h("touchend",this.ac,this)},LF:function(){this.h("dragstart",this.tq),this.h("dragging",this.rq),this.h("dragend",this.sq)},tq:function(t){this.map.dL(t),this.Gf=t.sb,this.PW=t.Bd,this.OW=t.tf,this.ia("dragstart",t)},rq:function(t){if("2D"==(e=this.map.J.view.type)){var e=(i=t.sb.Ua(this.Gf)).x,i=i.y;this.Gf=t.sb;var n=this.map.get("rotation")*Math.PI/180,s=e*Math.cos(n)+Math.sin(n)*i;e=-Math.sin(n)*e+Math.cos(n)*i,this.np(new w.G(s,e)),this.ia("dragging",t)}else"3D"==e&&t.Bd&&(e=(i=t.sb.Ua(this.Gf)).x,i=i.y,s=t.Bd.Ua(this.PW),t.tf.Ua(this.OW),this.Gf=t.sb,"function"==typeof this.My&&this.My(e,i,s),this.PW=t.Bd,this.OW=t.tf,this.ia("dragging",t))},sq:function(t){this.map.ps(),this.ia("dragend",t)},sH:function(){this.I("dragstart",this.tq),this.I("dragging",this.rq),this.I("dragend",this.sq)},wG:function(t){var e,i,n=[];if(t)for(e=0,i=t.length;e<i;e+=1)n.push(this.xG(t[e]));return n},xG:function(t){return[(t=this.map.Fb(t)).x,t.y]},cf:function(t){var e=this.M.ib||this.map.get("centerCoords"),i=Math.pow(2,20-this.map.get("zoom"));return[(t[0]-e.x)/i,(t[1]-e.y)/i]}}),w.D.cb=w.D.Lg.extend({KL:"content contentDom icon opacity angle autoRotation offset textAlign verticalAlign shadow title label isTop shape topWhenClick topWhenMouseOver noSelect".split(" "),v$:{AMAP_ANIMATION_NONE:!1,AMAP_ANIMATION_DROP:w.yi.Easing.Bounce,AMAP_ANIMATION_BOUNCE:w.yi.Easing.Cubic},B:function(t,e){arguments.callee.oa.apply(this,arguments),this.he(this.KL,t),this.X("move",t),this.X$(),this.Nq(),this.set("AnimationOffset",new w.G(0,0),!0),this.X("raiseOnDrag",t),this.X("animation",t)},MG:function(n,s,e){if(this.get("animation")&&"AMAP_ANIMATION_NONE"!==this.get("animation")){var a=this;this.bl=new w.yi,this.bl.transition=function(t,e,i){return"AMAP_ANIMATION_NONE"===a.get("animation")?0:n&&600<=i?(a.bl.stop(),0):(t=0==Math.floor(i/600)%2?"Out":"In","out"===s?t="Out":"in"===s&&(t="In"),a.v$[a.get("animation")][t](i%600/600))},e=e||40,this.bl.An=function(t){a.set("AnimationOffset",a.uH.add(new w.G(0,-1*e*t)))},this.uH=new w.G(0,0),this.bl.il()}},AnimationOffsetChanged:function(){this.positionChanged()},wS:function(){if(this.bl&&(this.bl.stop(),this.set("AnimationOffset",this.uH)),this.set("AnimationOffset",new w.G(0,-40)),this.yv)this.yv.set("position",this.get("position"));else{var t=new $.D.cb({zIndex:this.get("zIndex")-1,icon:new $.D.Kg({image:w.A.ub+"/theme/v1.3/dragCross.png",size:new w.Rc(14,11)}),offset:new w.G(-4,-5),position:this.get("position")});t.la=!0,this.yv=t}this.yv.setMap(this.map.J)},zP:function(){this.set("animation","AMAP_ANIMATION_DROP",!0),this.MG(!0,"in"),this.yv.setMap(null)},animationChanged:function(){this.bl&&(this.bl.stop(),this.set("AnimationOffset",this.uH),this.bl=null);var t=this.get("animation");t&&"AMAP_ANIMATION_NONE"!==t&&("AMAP_ANIMATION_DROP"===t?this.MG(!0,"in",100):this.MG())},Vf:function(){this.yv&&this.yv.set("position",this.get("position"))},raiseOnDragChanged:function(){this.get("raiseOnDrag")?(this.h("dragstart",this.wS,this),this.h("dragging",this.Vf,this),this.h("dragend",this.zP,this)):(this.I("dragstart",this.wS,this),this.I("dragging",this.Vf,this),this.I("dragend",this.zP,this))},np:function(t){var e=this.get("position");t=this.map.Fb(e).add(t.Vc(Math.pow(2,20-this.map.get("zoom")))),e instanceof w.U?this.set("position",this.map.qe(t)):this.set("position",t)},My:function(t,e){var i=this.get("position"),n=this.get("altitude");i=this.map.ip(i,n),n=this.map.Fo(new w.G(i.x+t,i.y+e),null,n),this.set("position",n)},X$:function(){var t=this.get("content"),e=this.get("shadow"),i=this.get("offset"),n=this.get("label");t=t?this.VT(t,i):this.LI(this.get("icon"),i),this.set("contentDom",t,!0),e&&(e=this.ZT(e,i),this.set("shadowDom",e,!0)),n&&n.content&&this.set("labelDom",this.MI(n.content),!0)},MI:function(t){var e=document.createElement("div");return e.className="amap-marker-label",e.innerHTML=t,e},Nq:function(){var t=this.get("position");if(this.map&&t&&!this.M){var e=this.map;t=this.map.Fb(t),((t=this.M=new w.Ig({name:"marker-"+w.a.Jb(this),map:e,Z:new w.pa.Tf([t.x,t.y])})).po=this).X("coords",t,!0),t.he("offset textAlign verticalAlign isTop zIndex params noSelect".split(" "),this)}},getParams:function(){return{zIndex:this.get("zIndex"),cC:this.get("angle"),tg:this.get("contentDom"),NW:this.get("labelDom"),jZ:this.get("shadowDom"),opacity:this.get("opacity"),altitude:this.get("altitude"),title:this.get("title"),label:this.get("label"),BN:this.get("AnimationOffset"),verticalAlign:this.get("verticalAlign"),textAlign:this.get("textAlign"),offset:this.get("offset"),JW:this.get("isTop"),shape:this.get("shape"),visible:this.get("visible")&&!this.Bc.get("outOfZooms")}},offsetChanged:function(){function t(t){var e=o.get("offset"),i=o.get("AnimationOffset"),n=o.get("verticalAlign"),s=o.get("textAlign"),a=Math.round(t.x)+e.x+i.x;switch(t=Math.round(t.y)+e.y+i.y,e=(i=w.j.ey(o.M.tg))[0],i=i[1],s){case"center":a-=e/2;break;case"right":a-=e}switch(n){case"middle":t-=i/2;break;case"bottom":t-=i}o.M.ea.style.left=a+"px",o.M.ea.style.top=t+"px"}if(this.M&&this.M.ea){var o=this,e=this.map.J.view.type;"2D"==e?(e=(e=this.map.Fb(this.get("position"))).Ua(this.M.ra).wc(Math.pow(2,20-this.map.get("zoom"))),this.M.ea&&(this.M.ea.Qw&&this.M.ea.parentNode!==this.M.ea.Qw?this.map.set("display"):t(e))):"3D"==e&&(e=this.get("position"),e=this.map.ip(e,this.get("altitude")),this.M.ea&&(this.M.ea.Qw&&this.M.ea.parentNode!==this.M.ea.Qw?this.map.set("display"):t(e)))}else this.map.set("display")},altitudeChanged:function(){this.offsetChanged()},positionChanged:function(){if(this.M){var t=this.map.Fb(this.get("position"));this.set("coords",[t.x,t.y]),this.map&&(this.M.x0=!0,this.offsetChanged())}},textAlignChanged:function(){this.IO()},verticalAlignChanged:function(){this.IO()},IO:function(){this.M&&(this.M.Yg=!0,this.map&&(this.map.dd.Vk=!0,this.map.set("display")))},contentChanged:function(){if(this.M){this.map.dd.Vk=!0,-1===w.a.indexOf(this.map.dd.Lf,this.M)&&this.map.dd.Lf.push(this.M);var t=this.get("contentDom");this.M.ea&&this.M.ea===t.parentNode&&this.M.ea.removeChild(t),t=this.get("content");var e=this.get("offset");t=this.VT(t,e),this.set("contentDom",t),this.M.ea&&(w.l.bh&&w.a.iepngFix(t),this.M.ea.appendChild(t),this.M.tg=t),this.map&&this.map.set("display")}},iconChanged:function(){if(this.M&&this.M.ea&&!this.get("content")){this.map.dd.Vk=!0,-1===w.a.indexOf(this.map.dd.Lf,this.M)&&this.map.dd.Lf.push(this.M),this.M.ea&&this.get("contentDom")&&this.M.ea.removeChild(this.get("contentDom"));var t=this.get("icon"),e=this.get("offset");t=this.LI(t,e),this.set("contentDom",t),this.M.ea?(w.l.bh&&w.a.iepngFix(t),this.M.ea.appendChild(t),this.M.tg=t):this.map&&this.map.set("display")}},shadowChanged:function(){if(this.M&&this.M.ea){var t=this.get("shadowDom");if(this.M.ea&&t&&t.parentNode===this.M.ea&&this.M.ea.removeChild(t),t=this.get("shadow")){var e=this.get("offset");t=this.ZT(t,e),this.set("shadowDom",t),this.M.ea&&this.M.ea.appendChild(t)}}},titleChanged:function(){this.M&&this.M.tg&&"string"==typeof this.get("title")&&this.M.tg&&this.get("title")&&(this.M.tg.title=this.get("title"))},labelChanged:function(t){if(t=t||this.get("label"),this.M&&this.M.ea){var e=this.M.ea;if((i=this.get("labelDom"))&&i.parentNode===e&&e.removeChild(i),t&&t.content){if(i="",t.content){var i=this.MI(t.content),n=0,s=0;t.offset&&(n=t.offset.y+"px",s=t.offset.x+"px"),i.style.top=n,i.style.left=s,e.appendChild(i)}this.set("labelDom",i)}}else t&&t.content?this.set("labelDom",this.MI(t.content),!0):this.set("labelDom",null)},isTopChanged:function(){var t=this.map.dd.EE,e=this.get("isTop"),i=this.get("zIndex");t?t===this?this.M&&this.M.ea&&(this.M.ea.style.zIndex=e?this.map.dd.Nn+10:i,this.map.dd.EE=e?this:null):(t.M&&t.M.ea&&(t.M.ea.style.zIndex=e?t.get("zIndex"):this.map.dd.Nn+10),this.M&&this.M.ea&&(this.M.ea.style.zIndex=e?this.map.dd.Nn+10:i),this.map.dd.EE=e?this:t):(this.map.dd.EE=this).M&&this.M.ea&&(this.M.ea.style.zIndex=e?this.map.dd.Nn+10:i)},visibleChanged:function(){this.M&&this.M.ea&&(this.get("visible")&&!this.Bc.get("outOfZooms")?this.M.ea.style.display="block":this.M.ea.style.display="none")},Ifa:function(){this.visibleChanged()},angleChanged:function(){if(this.M&&this.M.ea){var t={x:-1*this.get("offset").x,y:-1*this.get("offset").y};w.j.rotate(this.M.ea,this.get("angle")||0,t)}},zIndexChanged:function(){var t=this.get("zIndex");if(t>this.map.dd.Nn){this.map.dd.Nn=t;var e=this.map.dd.EE;e&&e.M&&e.M.ea&&(e.M.ea.style.zIndex=t+10)}this.M&&this.M.ea&&(this.M.ea.style.zIndex=this.get("isTop")?this.map.dd.Nn+10:this.get("zIndex"))},opacityChanged:function(){var t=this.get("contentDom"),e=this.get("shadowDom");t&&w.j.Kn(t,this.get("opacity")),e&&w.j.Kn(e,this.get("opacity"))},VT:function(t){var e;return(e=document.createElement("div")).className="amap-marker-content","string"!=typeof t?e.appendChild(t):(e.innerHTML=t,e.childNodes[0]&&!e.childNodes[0].style&&(e.style["white-space"]="pre")),w.j.Kn(e,this.get("opacity")),e},LI:function(t){var e,i,n,s,a,o=0,r=0;return t?("string"==typeof t?(e=t,a=!0):(e=t.get("image"),r=t.get("size"),i=t.get("imageSize"),o=r.width,r=r.height,i&&(n=i.width,s=i.height)),o||(o=0),r||(r=0),t="string"!=typeof t?t.get("imageOffset"):{x:0,y:0}):(e=w.A.fh+"/mark_bs.png",t={x:0,y:0},n=o=19,s=r=33),(i=document.createElement("div")).className="amap-icon",i.style.position="absolute",a&&!w.l.ae&&(i.style.overflow="inherit"),o&&(i.style.width=o+"px"),r&&(i.style.height=r+"px"),(o=document.createElement("img")).src=e,n&&s&&(o.style.width=n+"px",o.style.height=s+"px"),o.style.top=t.y+"px",o.style.left=t.x+"px",w.l.ae&&a||i.appendChild(o),w.j.Kn(w.l.ae&&a?o:i,this.get("opacity")),w.l.ae&&a?o:i},ZT:function(t,e){var i=this.LI(t,e);return i.style.zIndex=-1,i},moveChanged:function(){var t=this.get("move");if(!1===t)return this.pia();void 0!==t&&("pause"===t.action?this.ega():"[object Array]"===Object.prototype.toString.call(t.tf)?t.tf&&("resume"===t.action&&this.$A?this.moveTo(t.tf[t.tf.Lm||0],t.speed,t.jb):(this.$A&&this.r("movestop"),t.tf.Lm=0,this.set("position",t.tf[0]),this.Uea(t.tf,t.speed,t.jb,t.oaa))):this.moveTo(t.tf,t.speed,t.jb,!0))},moveTo:function(e,t,s,i){var n=this.get("position");e.Ua(n);var a=Math.round(e.Ld(n)/1e3/t*36e5);if(0===a)return this.r("moveend");this.gh&&(this.gh.stop(),this.gh=null),this.gh=new w.yi(n,e),s=s||function(t){return t},this.gh.transition=function(t,e,i){if(a<=i)return e;var n=(e.P-t.P)*s(i/a)+t.P;return t=(e.O-t.O)*s(i/a)+t.O,new w.U(n,t)},this.gh.An=function(t){this.set("position",t),i&&this.Bc.r("moving",{passedPath:[this.gh.start,this.get("position")]}),this.r("moving"),t.qb(e)&&(this.gh&&(this.gh.stop(),this.gh=null),this.Bc.r("moveend"),this.r("moveend"))},this.get("autoRotation")&&!w.l.ae&&(t="2D"==(this.map.J.view.type||"2D")?this.M3(n,e):this.N3(n,e),this.set("angle",t)),this.gh.il(this)},pia:function(){this.gh&&(this.gh.stop(),this.gh=null,this.r("movestop"))},ega:function(){this.gh&&(this.gh.stop(),this.gh=null,this.r("movepause"))},Uea:function(e,t,i,n){function s(){var t=e.slice(0,e.Lm||0);t.push(this.get("position")),this.Bc.r("moving",{passedPath:t})}function a(){e.Lm<e.length-1?(e.Lm+=1,this.moveTo(e[e.Lm],t,i)):(this.ia("movealong"),n?(e.Lm=0,this.set("position",e[0]),this.moveTo(e[e.Lm],t,i)):this.r("movestop"))}var o=Math.min(e.Lm||0,e.length-1);this.$A||(this.$A=!0,this.h("moving",s,this),this.h("moveend",a,this),this.h("movestop",function t(){this.$A=!1,this.I("moveend",a,this),this.I("moving",s,this),this.I("movestop",t,this)},this)),this.moveTo(e[o],t,i)},N3:function(t,e){var i,n=(i=this.map).ip(t),s=0;(i=i.ip(e)).Ld(n);var a=i.y-n.y,o=i.x-n.x;return 0!=i.x-n.x?(s=Math.atan((i.y-n.y)/(i.x-n.x)),0<=a&&o<0?s=Math.PI+s:a<0&&o<=0?s=Math.PI+s:a<0&&0<=o&&(s=2*Math.PI+s)):s=i.y>n.y?Math.PI/2:3*Math.PI/2,w.a.Sc(180*s/Math.PI,1)},M3:function(t,e){var i,n=(i=this.map).Fb(t),s=0;(i=i.Fb(e)).Ld(n);var a=i.y-n.y,o=i.x-n.x;return 0!=i.x-n.x?(s=Math.atan((i.y-n.y)/(i.x-n.x)),0<=a&&o<0?s=Math.PI+s:a<0&&o<=0?s=Math.PI+s:a<0&&0<=o&&(s=2*Math.PI+s)):s=i.y>n.y?Math.PI/2:3*Math.PI/2,w.a.Sc(180*s/Math.PI,1)}}),w.D.pl=w.D.Lg.extend({B:function(t,e){arguments.callee.oa.apply(this,arguments),this.X("items",t,!0),this.X("content",t,!0),this.X("resolution",e),this.X("centerCoords",e),this.xx=t},LD:function(t){this.Ef(),this.Ip(),this.nk(),this.mj("resolution"),this.mj("centerCoords"),this.mj("render"),this.X("resolution",t),this.X("centerCoords",t),this.X("render",t),this.map.h("movestart",this.Ek,this),this.map.h("mapmove",this.Ek,this),this.map.h("zoomstart",this.Ek,this),this.map.h("click",this.Ek,this),this.map.h("closeOverlays",this.Ek,this),this.map.h("rotate",this.Ek,this)},Ek:function(){this.xx.map&&this.xx.close()},mapChanged:function(){},positionChanged:function(){this.nk()},renderChanged:function(){this.nk()},Ef:function(){this.K&&(this.K.parentNode&&this.K.parentNode.removeChild(this.K),this.K=null);var t=w.j.create("div",null,"amap-menu");w.C.h(t,"mousedown",function(t){w.C.stopPropagation(t)},this),this.K=t,this.map.La.D.appendChild(this.K)},Ip:function(){var s=this,t=this.K;t.innerHTML="";var e=this.get("content");if("object"==typeof e)t.appendChild(e);else if("string"==typeof e)t.innerHTML=e;else if((e=this.get("items"))&&e.length){var a=w.j.create("ul",t,"amap-menu-outer");for(e.sort(function(t,e){return isNaN(t.SD)||isNaN(e.SD)?0:t.SD-e.SD}),t=0;t<e.length;t+=1)!function(t){var e=t.$Z,i=t.jb,n=w.j.create("li",a);n.innerHTML=e,w.C.h(n,"click",function(){i.call(n),s.xx.close()},n)}(e[t])}else this.K.innerHTML=""},nk:function(){var t=this.map,e=this.K;t&&e&&(this.map.get("zoom"),e=this.get("position"),t=(e=t.ip(e)).y,e=e.x,this.K.style.right="",this.K.style.bottom="",this.K.style.left=e+"px",this.K.style.top=t+"px")},gg:function(){this.K&&(this.map.I("click",this.Gka,this),this.map.La.D.removeChild(this.K),this.xx.Oi=!1,this.K=this.xx.Mg.map=null,this.map.I("movestart",this.Ek,this),this.map.I("zoomstart",this.Ek,this),this.map.I("click",this.Ek,this),this.map.I("closeOverlays",this.Ek,this),this.map.I("rotate",this.Ek,this))},visibleChanged:function(){this.K&&(this.get("visible")?this.K.style.display="block":this.K.style.display="none")},itemsChanged:function(){this.K&&this.Ip()}}),w.D.fe=w.D.Lg.extend({B:function(t,e){arguments.callee.oa.apply(this,arguments),this.he("content contentDom position contentU altitude isCustom autoMove showShadow closeWhenClickMap size offset".split(" "),t),this.X("retainWhenClose",t,!0),t.X("toBeClose",this),this.Ki=t},LD:function(t){this.Paa||(this.Ef(),this.Ip()),this.mj("resolution"),this.mj("centerCoords"),this.mj("render"),this.X("resolution",t),this.X("centerCoords",t),this.X("render",t),(this.map=t).La.D.appendChild(this.Xb),this.pN(),this.nk(),this.HO(),this.Paa=!0,this.Faa(),this.Bc.r("onAdd",{type:"onAdd",target:this.Bc})},Ef:function(){var t=w.j.create("div");t.className="amap-info";var e=w.j.create("div",t,"amap-info-shadowContainer"),i=w.j.create("div",t),n=w.j.create("div",i,"amap-info-contentContainer");t.style.position="absolute",i.style.position="absolute",i.style.bottom="0px",i.style.left="0px",e.style.position="absolute",this.Xb=t,this.af=i,this.AM=e,this.Xg=n,this.set("contentDom",this.Xg,!0)},Ip:function(){var t=this.get("contentU");if(t){var e=this.get("isCustom"),i=this.Xg,n=this.AM;i.innerHTML="";var s=null;if(e){if("string"==typeof t)i.innerHTML=t;else if(t instanceof Array)for(s=0;s<t.length;s+=1)i.appendChild(t[s]);else i.appendChild(t);s=i,n.parentNode&&n.parentNode.removeChild(n)}else s=n=w.j.create("div",i,"amap-info-content amap-info-outer"),"string"==typeof t?n.innerHTML=t:n.appendChild(t),this.Qaa=n,(t=w.j.create("a",this.Xg,"amap-info-close")).innerHTML="×",(this.XI=t).href="javascript: void(0)",w.l.Oe&&(w.C.h(t,"touchstart",function(t){w.C.stop(t)},this),w.C.h(t,"touchend",function(t){w.C.stop(t),this.Ki.close()},this),w.C.h(t,"click",function(t){w.C.stop(t),this.Ki.close()},this)),w.l.Y||(w.C.h(t,"mousedown",function(t){w.C.stop(t)},this),w.C.h(t,"click",function(t){w.C.stop(t),this.Ki.close()},this)),(t=this.get("size",!0))&&(0!==t.width&&(n.style.width=t.width+"px"),0!==t.height&&(n.style.height=t.height+"px")),(t=w.j.create("div",i,"amap-info-sharp")).style.height="23px",(w.l.bh||w.l.Yo)&&(t.style.marginLeft=i.childNodes[0].offsetWidth/2-5),this.AM.style.display="block";w.C.nia(s)}},pN:function(){var t=this.get("isCustom"),e=this.get("showShadow");if(!t&&e){t=this.AM;var i=(e=w.j.dD(this.Xg)).height-23,n=e.width;(w.l.bh||w.l.Yo)&&(i=this.Xg.childNodes[0].offsetHeight,n=this.Xg.childNodes[0].offsetWidth+26),e="background-image:url("+w.A.ub+(w.l.bh?"/theme/v1.3/iws.gif);":"/theme/v1.3/iws.png);"),t.innerHTML="";var s,a=[];for((s=a[1]={}).height=.5*i+4,s.width=n,s.offsetX=400,s.offsetY=16,s.top=-s.height-10-15,s.left=23,(s=a[2]={}).height=a[1].height,s.width=a[1].height,s.offsetX=1075-s.width,s.offsetY=a[1].offsetY,s.top=a[1].top,s.left=23+a[1].width,(s=a[3]={}).height=10,s.width=22,s.offsetX=30,s.offsetY=445,s.top=-25,s.left=23+(w.l.Yo||w.l.bh?5:0),(s=a[4]={}).height=10,s.width=n/2-15-a[3].left-a[3].width,s.offsetX=132,s.offsetY=445,s.top=-25,s.left=a[3].left+a[3].width,(s=a[5]={}).height=10,s.width=70,s.offsetX=80,s.offsetY=445,s.top=-25,s.left=a[4].left+a[4].width,(s=a[6]={}).height=10,s.width=n-a[5].left-a[5].width,s.offsetX=132,s.offsetY=445,s.top=-25,s.left=a[5].left+a[5].width,(s=a[7]={}).height=10,s.width=30,s.offsetX=621,s.offsetY=445,s.top=-25,s.left=n,(s=a[8]={}).height=15,s.width=70,s.offsetX=47,s.offsetY=470,s.top=-15,s.left=n/2-15,i=1;i<=8;i+=1)n=w.j.create("div",t),(s=[]).push("position:absolute;"),s.push(e),s.push("top:"+a[i].top+"px;"),s.push("left:"+a[i].left+"px;"),s.push("width:"+a[i].width+"px;"),s.push("height:"+a[i].height+"px;"),s.push("background-position:"+-a[i].offsetX+"px "+-a[i].offsetY+"px;"),n.style.cssText=s.join("")}},Noa:function(){},nk:function(){var t=this.map,e=this.Xb,i=this.get("position");if(t&&e&&i&&(e=t.ip(i,this.get("altitude")),t.get("size"),i=w.j.dD(this.Xg),(w.l.bh||w.l.Yo)&&(i.width=this.Xg.childNodes[0].offsetWidth+14),t=this.get("offset"),i=this.get("isCustom")?i.width/2:(i.width-30)/2,this.Xb.style.left=Math.round(e.x-i+(t.x||0))+"px",this.Xb.style.top=Math.round(e.y+(t.y||0))+"px",e=this.Qaa,this.XI&&e.childNodes[0])){for(i=t=0;i<e.childNodes.length;i+=1)t+=e.childNodes[0].clientHeight||0;t>(this.get("size").height||e.clientHeight)?this.XI.style.right="20px":this.XI.style.right="5px"}},F2:function(){var t=new w.G(2-this.Xg.offsetWidth/2,2-this.Xg.offsetHeight),e=this.get("offset")||new w.G(0,0);return this.get("isCustom")||(t=t.add(new w.G(0,-23))),t.add(e)},altitudeChanged:function(){this.nk()},HO:function(){if(this.get("position")&&this.get("autoMove")&&this.Xg){for(var t=this.map,e=new w.Rc(this.Xg.offsetWidth,this.Xg.offsetHeight),i=t.ip(this.get("position"),this.get("altitude")).add(this.F2()),n=i.add(e.uz()),s=t.get("size"),a=t.vca(),o=0,r=0,h=0;h<a.length;h+=1){var l=a[h],c=0,u=0;0===l[1]&&0===l[2]?(c=l[3]-(i.x+o),u=l[0]-(i.y+r),0<c&&0<u&&(Math.abs(c)<Math.abs(u)?o+=c:r+=u)):0===l[2]&&0===l[3]?(c=s.Lh()-l[1]-(n.x+o),u=l[0]-(i.y+r),c<0&&0<u&&(Math.abs(c)<Math.abs(u)?o+=c:r+=u)):0===l[0]&&0===l[3]?(c=s.Lh()-l[1]-(n.x+o),u=s.Jh()-l[2]-(n.y+r),c<0&&u<0&&(Math.abs(c)<Math.abs(u)?o+=c:r+=u)):0===l[0]&&0===l[1]&&(c=l[3]-(i.x+o),u=s.Jh()-l[2]-(n.y+r),0<c&&u<0&&(Math.abs(c)<Math.abs(u)?o+=c:r+=u))}i=i.add(new w.G(o,r)),n=n.add(new w.G(o,r)),h=a=0,i.x<0||e.Lh()>s.Lh()?a=20-i.x:s.Lh()<n.x&&(a=s.Lh()-n.x-25),i.y<0||e.Jh()>s.Jh()?h=5-i.y:s.Jh()<n.y&&(h=s.Jh()-n.y-15),h+=r,((a+=o)||h)&&t.J.panBy(a,h)}},Faa:function(){this.get("closeWhenClickMap")&&(this.map.h("clickstart",this.zR,this,!1),this.map.h("clickend",this.yR,this,!1))},zR:function(){this.Ki.Oi&&this.Ki.getIsOpen()&&(this.Ki.DE=!0)},yR:function(){this.Ki.Oi&&(this.Ki.DE&&this.Ki.close(),this.Ki.DE=!1)},gg:function(){this.Xb&&this.map&&(this.Ki.DE=!1,this.get("closeWhenClickMap")&&(this.map.I("clickstart",this.zR,this),this.map.I("clickend",this.yR,this)),this.get("retainWhenClose")?this.map.wj.appendChild(this.Xb):(this.Xb.parentNode===this.map.La.D&&this.map.La.D.removeChild(this.Xb),this.Ki.D=null),this.map=null,this.Ki.Oi=!1,this.Bc.r("close",{type:"close",target:this.Bc}))},Pka:function(){if(!this.get("isCustom"))return this.Xg.offsetWidth;for(var t=this.Og,e=t.firstChild,i=t.lastChild;e&&i&&e.style&&i.style&&e===i;)e=(t=e).firstChild,i=t.lastChild;return t=w.j.ne(t,"width"),parseInt(t.replace("px",""),10)},renderChanged:function(){this.nk()},positionChanged:function(){this.map&&this.Xb&&(this.nk(),this.HO())},offsetChanged:function(){this.positionChanged()},contentChanged:function(){this.Ip(),this.pN(),this.nk()},sizeChanged:function(){this.Ip(),this.pN(),this.nk()}}),w.pa={},w.pa.Wd=w.aa.extend({ga:[w.ka,w.te],B:function(){},vb:function(){return new this.B(this.Oa)},TJ:function(){return this.Oa},setCoords:function(t){this.Iha(t)},Iha:function(t){if(this.Kr=this.Tc(),this.nf=null,w.pa.dc&&this instanceof w.pa.dc){var e=t.length;this.Of=Array(e);for(var i,n,s=0;s<e;s+=1)if(i=t[s],n=new w.pa.XN(i),this.Of[s]=n,0===s){if(0===i.length)break;n.$o(i)||i.reverse()}else 0!==i.length&&n.$o(i)&&i.reverse()}else this.Oa=t}}),w.pa.Xd=w.extend({},{Hs:"point",dF:"linestring",WN:"linearring",Xz:"polygon",kF:"multipoint",jF:"multilinestring",Vz:"multipolygon",fka:"geometrycollection"}),w.Ig=w.aa.extend({ga:[w.ka,w.te],B:function(t){(t=t||{}).Aw&&(this.Aw=t.Aw),t.NG&&(this.NG=t.NG),t.NQ&&(this.NQ=t.NQ),this.map=t.map,this.Tj=t.sG||w.a.Jb(this),this.name=t.name||"",this.Yg=!1,this.set("visible",!0,!0),this.uM(t.Z),this.jj=t.AE,this.style=t.style},tba:function(){this.style=this.jj=this.po=this.UW=this.Z=this.name=this.map=null,this.Qn(),this.bi()},fda:function(){return this.jj},Wha:function(t){this.jj=t,this.zIndex=this.jj[0].xi||this.zIndex},qma:function(){return this.Z},uM:function(t){t&&(this.Z=t,this.X("coords",t,!0),this.Aw||this.NG)&&(t.X("radius",this),t.X("center",this),t.X("resolution",this),t.X("strokeWeight",this))},setStyle:function(t){this.Wha(t),this.No()},coordsChanged:function(){this.No()},radiusChanged:function(){this.Z.Kr=this.Z.Tc(),this.Z.nf=null,this.No()},No:function(t){this.set("feature",{target:this,nba:t,Kr:this.Z.Kr||this.Z.Tc(),Xea:this.Z.Tc()}),this.Z.Kr=this.Z.Tc()},visibleChanged:function(){this.No()},Ema:function(t){for(var e=0;e<this.jj.length;e+=1){var i=this.jj[e];if(t.qb(i.Ot(this)))return i}},Cca:function(){var t=this.Z,e=[];return t.ah()===w.pa.Xd.Xz||t.ah()===w.pa.Xd.Vz?e.push(new w.style.Jd.dc({fillColor:"#78cdd1",xd:.2,strokeColor:"#122e29",Va:.5,Mb:1})):t.ah()===w.pa.Xd.dF||t.ah()===w.pa.Xd.WN||t.ah()===w.pa.Xd.jF?e.push(new w.style.Jd.Xn({color:"#888888",width:1,zIndex:10})):t.ah()!==w.pa.Xd.Hs&&t.ah()!==w.pa.Xd.kF||e.push(new w.style.Jd.Kg({url:w.A.ub+"/theme/v1.3/markers/0.png",width:36,height:36,rotation:0,dpa:-12,epa:-36,zIndex:100})),e}}),w.Ig.aka="geometry",w.pa.Tf=w.pa.Wd.extend({B:function(t,e){this.Oa=t,this.Ph=e,this.nf=null},Tc:function(){if(!this.nf){var t=this.Oa[0],e=this.Oa[1];if(this.Ph)this.nf=[t,e,t,e];else{var i=this.get("radius"),n=this.get("resolution")*this.get("strokeWeight")||0;i=i?i/Math.cos(Math.PI*this.get("center").O/180):0,this.nf=[t-i-n,e-i-n,t+i+n,e+i+n]}}return this.nf},ah:function(){return w.pa.Xd.Hs}}),w.Q={canvas:{},Gd:{},uf:{},Rd:{}},w.Q.qc=w.aa.extend({ga:[w.ka,w.te],B:function(t,e){this.q=t,this.Ph=t.fa.Ph,this.T=e,this.g=e.g,this.X("display",e)},Vt:function(){this.Eu&&this.Eu(),this.Qn(),this.g=this.T=this.q=null},kr:function(t,e){var i=this.zoom,n=[],s=this.q;if(Math.floor(i)!==i)e(n,s);else{if(i=[t.x,t.y],s.Vk){for(var a=s.Lf,o=!0,r=[],h=0;h<a.length;h+=1)if(l=a[h].tg)if(l.parentNode&&l.parentNode.parentNode&&this.T&&l.parentNode.parentNode!==this.T.wj&&"none"!==l.parentNode.style.display){var l=(c=w.j.ey(l))[0],c=c[1];if(l&&c){var u=Math.max(Math.abs(a[h].get("offset").x),Math.abs(a[h].get("offset").y))+Math.max(l,c);s.Ge=Math.max(s.Ge,u),s.df=Math.max(s.df,u),a[h].width=l,a[h].height=c}else o=!1,r.push(a[h])}else o=!1,r.push(a[h]);s.Lf=o?(s.Vk=!1,[]):r}if(a=Math.max(s.Ge,s.yu||0)*this.S,o=Math.max(s.df,s.yu||0)*this.S,r=0,s.xu&&(r=s.xu/Math.cos(Math.PI*this.g.get("center").O/180)),o=Math.max(o,r||0),a=Math.max(a,r||0),a=s.Ui([i[0]-a,i[1]-o,i[0]+a,i[1]+o])){for(var f in a)if(a.hasOwnProperty(f)&&(o=a[f]).get("visible")&&!o.get("noSelect"))if((r=o.Z)instanceof w.pa.Tf){if(this.Ph){(h=this.q.kk)instanceof Array&&(h="number"==typeof o.Ra.style&&h[o.Ra.style]?h[o.Ra.style]:h[0]),l=h.size.width*this.S,c=h.size.height*this.S,u=h.anchor.x*this.S;var d=h.anchor.y*this.S,p=(r=r.Oa,h.rotation_),g=[i[0],i[1]];if(p){var m=(i[0]-r[0])/this.S,y=(i[1]-r[1])/this.S,v=p,b=(p=Math.cos(-v),Math.sin(-v));v=m*p-y*b,m=m*b+y*p,g[0]=r[0]+v*this.S,g[1]=r[1]+m*this.S}l=w.H.HI([[g[0]-l+u,g[1]-c+d],[g[0]+u,g[1]+d]]),w.H.nd(l,r)&&n.push(o)}else if(void 0!==r.get("radius"))h=r.Oa,h=new w.G(h[0],h[1]),l=new w.G(i[0],i[1]),r=r.get("radius"),"px"===o.get("unit")?l.Ld(h)/Math.pow(2,20-this.zoom)<r&&n.push(o):l.Ld(h)*Math.cos(o.get("center").O*Math.PI/180)<=r/this.zn*Math.pow(2,20-this.zoom)&&n.push(o);else if((h=o.get("params")).visible){switch(r=r.Oa,p=h.cC%360,g=[i[0],i[1]],p&&(m=(i[0]-r[0])/this.S,y=(i[1]-r[1])/this.S,v=Math.PI*p/180,v=m*(p=Math.cos(-v))-y*(b=Math.sin(-v)),m=m*b+y*p,g[0]=r[0]+v*this.S,g[1]=r[1]+m*this.S),l=o.width*this.S,c=o.height*this.S,u=h.offset.x*this.S,d=h.offset.y*this.S,m=h.verticalAlign,h.textAlign){case"center":u-=l/2;break;case"right":u-=l}switch(m){case"middle":d-=c/2;break;case"bottom":d-=c}for(l=w.H.HI([[g[0]-l-u,g[1]-c-d],[g[0]-u,g[1]-d]]),r[0]instanceof Array||(r=[r]),c=r.length-1;0<=c;c-=1)if(w.H.nd(l,r[c])){h.shape?this.xy(o,g,r)&&n.push(o):n.push(o);break}}}else r.nd?r.nd(i)&&n.push(o):r.Xt&&1.8*r.Xt(i)<=o.get("strokeWeight")*this.S&&n.push(o);this.Ph?n.sort(function(t,e){return t.Tj>e.Tj?-1:1}):n.sort(function(t,e){return t.get("isTop")?-1:e.get("isTop")?1:t.get("zIndex")>e.get("zIndex")||t.get("zIndex")===e.get("zIndex")&&t.Tj>e.Tj?-1:1}),e(n,s)}else e([],s)}},xy:function(t,e,i){var n,s=(e[0]-i[0][0])/this.S;if(e=(e[1]-i[0][1])/this.S,s=[s-(i=(t=t.get("params")).offset).x,e-i.y],"circle"===(t=t.shape).F.type){if(e=t.F.coords[0],i=t.F.coords[1],Math.sqrt((s[0]-e)*(s[0]-e)+(s[1]-i)*(s[1]-i))<=t.F.coords[2])return!0}else{if("poly"===t.F.type)return n=t.F.coords,n=this.rC(n),w.Qc.nd(s,n);if("rect"===t.F.type)return n=[[t=(n=t.F.coords)[0],e=n[1]],[i=n[2],e],[i,n=n[3]],[t,n]],w.Qc.nd(s,n)}return!1},rC:function(t){for(var e=[],i=0;i/2<t.length/2;i+=2)e.push([t[i],t[i+1]]);return e},xV:function(t,e,i,n,s,a,o){var r=["position:absolute;"];r.push("top:"+Math.round(i)+"px;"),r.push("left:"+Math.round(e)+"px;"),r.push("width:"+Math.round(n)+"px;"),r.push("height:"+Math.round(s)+"px;"),a<1&&("opacity"in t.style?(r.push("opacity"),r.push(":"),r.push(a),r.push(";")):8<=document.documentMode?(r.push("-ms-filter:'progid:DXImageTransform.Microsoft.Alpha(opacity="),r.push(Math.ceil(100*a)),r.push(")';")):(r.push("filter:alpha(opacity="),r.push(Math.ceil(100*a)),r.push(");"))),r.push("z-index:"+o+";"),r.join(""),w.j.ZY(t,r.join(""))}}),w.Q.Ob=w.aa.extend({ga:[w.ka,w.te],B:function(t){this.g=t,this.wj=t.wj,this.K=t.La.w,this.X("display",t),this.X("rotateEnable",t),this.X("style",t),this.X("hightlight",t)},tL:function(t){this.vd=t||w.a.Li("ff"+this.g.vd.slice(1))},kr:function(t,i,n,e){function s(t,e){t.length&&(r[w.a.indexOf(i,e)]=t),(h-=1)<=0&&(n(r),h=0)}for(var a,o=i.length,r=[],h=0,l=[],c=0;c<o;c+=1)(a=i[c])instanceof w.w.Kc&&a.get("visible")&&(l.push(this.nr(a)),h+=1);for(o=0;o<l.length;o+=1)l[o].kr(t,s,e)}}),w.CU={Zf:function(t,e){for(var i=[],n=0,s=t.length;n<s;n+=2){var a="str"===e?w.a.Sc(parseInt(t.substr(n,2),16)/(0===n?255:1),3):w.a.Sc(parseInt(t.substr(n,2),16)/255,3);i.push(a)}return i.push(i.shift()),"str"===e?"rgba("+i.join(",")+")":i},SX:function(t,e,i){if(e[i])console.log("customType repeat!!",i);else{var n={};if(n.visible=void 0===t.visible||t.visible,n.cia=void 0===t.showLabel||t.showLabel,n.ik=void 0===t.showIcon||t.showIcon,void 0!==t.color){var s="",a="";t.color&&(s=this.Zf(t.color,"str"),a=this.Zf(t.color)),n.color={canvas:s,uf:a}}else n.opacity=t.opacity;void 0!==t.fillColor?(a=s="",t.fillColor&&(s=this.Zf(t.fillColor,"str"),a=this.Zf(t.fillColor)),n.fillColor={canvas:s,uf:a}):n.xd=t.fillOpacity,void 0!==t.strokeColor?(a=s="",t.strokeColor&&(s=this.Zf(t.strokeColor,"str"),a=this.Zf(t.strokeColor)),n.strokeColor={canvas:s,uf:a}):n.Va=t.strokeOpacity,void 0!==t.textFillColor?(a=s="",t.textFillColor&&(s=this.Zf(t.textFillColor,"str"),a=this.Zf(t.textFillColor)),n.wia={canvas:s,uf:a}):n.xia=t.textFillOpacity,void 0!==t.textStrokeColor?(a=s="",t.textStrokeColor&&(s=this.Zf(t.textStrokeColor,"str"),a=this.Zf(t.textStrokeColor)),n.yia={canvas:s,uf:a}):n.zia=t.textStrokeOpacity,void 0!==t.backgroundColor?(a=s="",t.backgroundColor&&(s=this.Zf(t.backgroundColor,"str"),a=this.Zf(t.backgroundColor)),n.backgroundColor={canvas:s,uf:a}):n.F$=t.backgroundOpacity,t.texture&&(n.lc=w.A.Rb+"://"+t.texture),e[i]=n}},ML:function(t,e,i,n){if(t)for(var s in t)if(t.hasOwnProperty(s)){var a=t[s],o=s;if(i&&(o=i+":"+s),a.detailedType)this.SX(a,e,o),this.ML(a.detailedType,e,o,a);else if(a.subType)this.ML(a.subType,e,o);else{if(void 0!==a.code){for(var r in n)n.hasOwnProperty(r)&&void 0===a[r]&&void 0!==n[r]&&"isDetailed"!==r&&"detailedType"!==r&&(a[r]=n[r]);o=i+":"+a.code}this.SX(a,e,o)}}},styleChanged:function(){if(this.g.J.dh){var t={};this.ML(this.g.get("style"),t),this.Sq=t,t=this.Sq["regions:land"];var e,i,n,s,a,o=this.Sq.water,r=this.Sq.sky,h=this.Sq.buildings;if(t){var l="rgba(0,0,0,0)";if(t.visible){var c=this.jr(w.a.LY(this.g.vd.substr(1)),t.opacity,t.color);c&&(l=c,e=this.So(w.a.Vr(this.g.vd.substr(1)),t.opacity,t.color))}this.g.Sx=l}else this.g.Sx="";o&&o.visible&&(i=this.So(w.a.Vr(this.g.XB.substr(1)),o.opacity,o.color)),r&&r.visible&&(n=this.So(w.a.Vr(this.g.fx.substr(1)),void 0,r.color)),h&&(a=h.visible?(s=this.So(w.a.Li(this.g.iA[0]),void 0,h.fillColor),this.So(w.a.Li(this.g.iA[1]),void 0,h.strokeColor)):(s=[1,1,1,0],[1,1,1,0])),this.tL&&this.tL(e,i,n,[s,a]),this.j_?this.j_(this.Sq):this.set("display")}},jr:function(t,e,i){if(t){if(void 0!==e)return(t=t.split(","))[3]=w.a.Sc(parseFloat(e),3)+")",t.join(",");if(i)return i.canvas}return t},So:function(t,e,i){if(t){if(void 0!==e)return[t[0],t[1],t[2],w.a.Sc(parseFloat(e),3)];if(i)return i.uf}return t},$C:function(t,e){if(void 0!==e){var i=this.Sq[t+":"+e];if(i)return i}return this.Sq[t]},Uj:function(t,e,i,n){var s,a=t;if(n=n?this.jr:this.So,s=this.$C(e))if(s.visible){a=1;var o="";i?s.fillColor||s.xd?(a=s.xd,o=s.fillColor):(s.color||s.opacity)&&(a=s.opacity,o=s.color):s.strokeColor||s.Va?(a=s.Va,o=s.strokeColor):(s.color||s.opacity)&&(a=s.opacity,o=s.color),a=n(t,a,o)}else a="";return this.Wo===e&&(a=this.mr(a||t)),a},Ro:function(t,e,i){i=i?this.jr:this.So;var n,s=t;return(n=this.$C(e))&&(s=n.visible?i(t,n.opacity,n.color):""),this.Wo===e&&(s=this.mr(s||t)),s},du:function(t,e,i,n,s){var a=t,o=e,r=i,h=!0,l=!0,c=1,u=this.$C(n,s);return u&&(u.visible&&u.cia?(a=this.jr(t,u.xia,u.wia),o=this.jr(e,u.zia,u.yia),r=this.jr(i,u.F$,u.backgroundColor),h=u.ik):(l=h=!1,a=o=r="")),u=!1,this.Wo===n?u=!0:void 0!==s&&this.Wo===n+"-"+s&&(u=!0),u&&(a=this.mr(a||t),o=this.mr(o||e),r=this.mr(r||i),c=1-1.6*this.ou,l=h=!0),[a,o,r,h,l,c]},gr:function(t,e,i,n){var s,a=t,o=e;return n=n?this.jr:this.So,(s=this.$C(i))&&(s.visible?(a=n(t,s.xd,s.fillColor),o=n(e,s.Va,s.strokeColor)):a=o=""),this.Wo===i&&(e=o||e,a=this.mr(a||t),o=this.mr(e)),[a,o]}},w.Q.Ob.ob(w.CU),w.Q.canvas.Ob=w.Q.Ob.extend({B:function(t){arguments.callee.oa.apply(this,arguments),this.type="2D"},nr:function(t){if(!t.Q){var e=t.Jl(this);e&&!e.Xaa&&(t.Q=e)}return t.Q},kc:function(t){var e=this.g.Sx||this.g.vd;this.aM!==e&&this.g.J.dh&&(this.g.YY(e),this.aM=e),this.g.La.Ao.style.cssText="";for(var i=t.$a,n=(e=t.W,t.size.width),s=t.size.height,a=0;a<i.length;a+=1){var o=i[a],r=this.nr(o),h=i[a].mn();if(r&&r.q)if(!h.visible||h.gd[0]>e.zoom||h.gd[1]<e.zoom||o.xa&&0===o.xa.length){if(r=r.gi())if(r.length)for(h=0;h<r.length;h+=1)r[h].parentNode===this.K&&this.K.removeChild(r[h]);else r.parentNode===this.K&&this.K.removeChild(r)}else{r.kc(t,h),o=r.gi();var l,c,u=r.transform;if(!u||!o||r.eh&&!this.g.J.ta)i[a].Xi&&o.parentNode!==this.K&&(this.K.appendChild(o),i[a].yb=o);else{(i[a].yb=o).length||(o=[o],u=[u]);for(var f=0;f<o.length;f+=1)if(l=o[f],!(c=u[f]).nu){var d=c.translate.x,p=c.translate.y;i[a].uD||(d=w.a.Sc(d,2),p=w.a.Sc(p,2));var g=c.scale;Math.abs(d)<1e-5&&(d=0),Math.abs(p)<1e-5&&(p=0);var m=[];m.push("position:absolute"),m.push("z-index:"+(c.xi||i[a].get("zIndex"))),i[a].Vx?(m.push("top:"+Math.floor(s/2+p)+"px"),m.push("left:"+Math.floor(n/2+d)+"px")):l.BW?(m.push("height:"+l.height*g+"px"),m.push("width:"+l.width*g+"px"),m.push("top:"+(s/2-p*g)+"px"),m.push("left:"+(n/2-d*g)+"px")):(1!==g&&(m.push(w.j.Ep[w.j.jf]+"-origin:"+d+"px "+p+"px"),m.push(w.j.Ep[w.j.jf]+":scale3d("+g+","+g+",1)")),m.push("top:"+Math.floor(s/2-p)+"px"),m.push("left:"+Math.floor(n/2-d)+"px"),r.bg&&(m.push("height:"+l.height+"px"),m.push("width:"+l.width+"px"))),r.uD||1===h.opacity||"number"!=typeof h.opacity||m.push(w.j.DV(l,h.opacity)),l.parentNode!==this.K&&this.K.appendChild(l),w.j.ZY(l,m.join(";"))}}}}t=this.g.La.Ao,o=this.g.La.w,i=this.g.La.D,w.j.jf&&"number"==typeof e.rotation&&0!==e.rotation?(t.style[w.j.jf+"Origin"]=n/2+"px "+s/2+"px",t.style[w.j.jf]="rotate("+e.rotation+"deg)",t.style.overflow="visible",o.style.overflow="visible",i.style.overflow="visible"):(t.style.cssText="",o.style.cssText="-webkit-transform: translateZ(0);",i.style.cssText=""),this.g.ds=!1}}),w.Q.zi=w.Q.qc.extend({B:function(t,e){arguments.callee.oa.apply(this,arguments),this.X("reload",t,!0);var i=t.fa.get("cacheSize");if(this.g&&this.g.J){var n=this.g.J.get("tileCacheSize");n&&0<n&&(i=n)}this.wa=new w.hf(i),this.Gi=!1;var s=this;this.wa.uL.DT(function(t){s.hw(t)}),this.hc=1,this.Cm=50,this.JO=!0,this.q.wa=this.wa,this.Yj=new w.Rz(6,null,t.EJ),new w.Rz(5,null,t.EJ)},Eu:function(){this.clear(),this.wa.clear(),this.Ic&&(this.Ic.I("tiles",this.RD,this),this.Ic.I("ack",this.QD,this),this.Ic.I("disable",this.PD,this),this.Ic=null),this.bg&&w.C.I(this.Qa,"webglcontextlost",this.Py,this),this.g.I("zoomend",this.Ri,this),this.g.I("moveend",this.Ri,this)},reloadChanged:function(){this.q&&(this.q.ta=!1),this.wa.clear(),this.reload=!0,this.set("display")},aj:function(e,t,i){var n=this;e.status="loading",n.wa.set(e.key,e),this.q.Qt&&this.q.Qt.call(this,e,function(t){e.loaded=!0,n.q&&(e.status="loaded",e.qa=!0,e.tc=t,n.set("display",0),"function"==typeof i&&i())},function(){e.loaded=!0,n.q&&(e.status="loaded",e.qa=!0,"function"==typeof i&&i())})},VZ:function(t,e,i,n){var s=[];i=i||18,e=Math.pow(2,e-i);for(var a=0;a<t.length;a+=1){var o=t[a].ma,r=Math.floor(o.x/e);o=Math.floor(o.y/e),o=n?(r=i+"/"+r+"/"+o,this.wa.get(r)):(r=(o=new w.uk(i,r,o))+"",new w.Xa(o)),!s[r]&&o&&(s.push(o),s[r]=1)}return s},al:function(t){for(var e=1<arguments.length&&void 0!==arguments[1]&&arguments[1],i=t.length-1;0<=i;i-=1){var n=t[i];if(n.length){if(this.q.nx){for(var s=[],a=n.length-1;0<=a;a-=1){var o=n[a],r=o.ma;this.q.g.eo.sz(r.x,r.y,r.z)?s.push(n[a]):(this.wa.set(o.key,o),o.loaded=!0,o.status="loaded",o.qa=!0,o.Ga={})}if(n=s,0==(t[i]=s).length)continue}if(this.ji){if(this.g.Iz)break;for(18<(s=n[0].ma.z)&&(n=this.VZ(n,s)),this.es(n,this.bg?1:0),o=a=0;a<n.length;)this.cL(n.slice(50*o,50*o+50),s,e),a+=50,o+=1}else{var h=this;for(s=function(){var e=n.length;return function(){if(0==--e){var t={key:"rb",index:0,id:h.g.J.id};h.q.fa.oi||(w.Yd.ue.end(t),w.Yd.ue.end(w.extend(t,{index:1})))}}}(),this.es(n),this.wn+=n.length,a=n.length-1;0<=a;a-=1)this.aj(n[a],this.Yj,s)}}}},iu:function(t,e){var i=this.wa.get(t+"");return i||e||(i=new w.Xa(t.vb())),i},wE:function(t,e){return this.ee*Math.pow(2,t-e)},hw:function(t){t.dp&&this.Yj.dU(t.dp),t.jE=!1,t.loaded=!1},Nt:function(t,e){var i=(2<arguments.length&&void 0!==arguments[2]?arguments[2]:0)||this.Ta,n=t.od.x,s=t.od.y,a=t.Lb.x,o=t.Lb.y;new w.G(0,0);var r=this.wE(20,i);return e&&(a=Math.max(e[0],a)-e[0],o=Math.max(e[1],o)-e[1],n=Math.min(e[2],n)-e[0],s=Math.min(e[3],s)-e[1],new w.G(Math.floor(e[0]/r),Math.floor(e[1]/r))),s/=r,(n={Sd:0==(n/=r)%1?n-1:Math.floor(n),yd:0==s%1?s-1:Math.floor(s),pe:Math.floor(a/r),zd:Math.floor(o/r)}).lY=n.Sd-n.pe+1,n.Dga=n.yd-n.zd+1,n.z=i,n.S=this.S*Math.pow(2,this.zoom-i),n.gD=Math.ceil(n.lY/2),n},wr:function(t,e,i){return!(e<t.pe||e>t.Sd||i<t.zd||i>t.yd)},es:function(t,o){if(t.length){var e=this.gb.wc(this.ee<<20-t[0].ma.z),r=Math.floor(e.x),h=Math.floor(e.y);t.sort(function(t,e){var i=t.ma,n=e.ma,s=i.x-r,a=(i=i.y-h,n.x-r);return n=n.y-h,(o?-1:1)*(a*a+n*n-(s*s+i*i))})}},clear:function(){this.Yj.clear()},mm:function(t,e){this.rg=!1,this.clear(),this.ai=e.ai,this.$h=e.$h,this.ee=e.ee;var i=t.W;this.ef=e.ef||t.W.ef,this.zh=i.zh,this.size=t.size,this.rotation=i.rotation,this.gb=i.gb,this.Aa=t.W.Aa,this.zoom&&(this.Gu=i.zoom>this.zoom?"in":i.zoom<this.zoom&&"out"),this.Se=t.Se,this.If=t.If,this.zoom=i.zoom,this.ce=i.ce,this.Ta=!1===this.ji&&!this.q.kW&&this.q.ja?this.ce+1:this.ce,this.De&&this.Ta>this.De&&(this.Ta=this.De),this.hm&&this.Ta<this.hm&&(this.Ta=this.hm),this.S=i.S,this.bf=i.bf,i=t.W.Aa,this.Mf=this.Nt(i,e.H),this.tm=i.YE?this.Nt(i.YE,e.H):null,i=this.Mf;var n,s,a,o,r,h,l,c,u=this.Aa.FZ,f=null,d=(f=u<this.zoom&&this.tm?this.tm:i,[]),p=[],g=[],m=[],y=[],v=new w.uk(0,0,0),b=this.zoom,M=(m=this.Fm||"",{}),x={};for(this.Pc=1e6*Math.random()<<0,s=m.length-1;0<=s;s-=1)if(!((n=m[s]).Rs<e.opacity))if(v.z=n.ma.z,v.x=n.ma.x,v.y=n.ma.y,v.z===this.Ta)M[v+""]|=16;else if(v.z<this.Ta){if(M[v+""]|=64,this.ai)for(h=this.Ta-v.z,a=Math.max(i.pe,v.x<<h),b=Math.min(i.Sd,(v.x+1<<h)-1),o=Math.max(i.zd,v.y<<h),r=Math.min(i.yd,(v.y+1<<h)-1),v.z=this.Ta,h=a;h<=b;h+=1)for(v.x=h,l=o;l<=r;l+=1)v.y=l,M[c=v+""]|=32,x[c]=x[c]?Math.max(n.ma.z,x[c]):n.ma.z}else if(this.$h)for(a=1;v.z>=this.Ta;){for(M[v+""]|=a,b=(a=v.x>>1)<<1,r=(o=v.y>>1)<<1,n=0,h=2;0<h;h-=1)for(v.x=b+h,l=2;0<l;l-=1)v.y=r+l,5&M[v+""]&&(n+=1);v.z-=1,v.x=a,v.y=o,a=4===n?4:2}for(m=[],v.z=this.Ta,s=!0,this.wa.kU(),h=f.pe;h<=f.Sd;h+=1)for(v.x=h,l=f.zd;l<=f.yd;l+=1)v.y=l,this.wa.dX(""+v),a=!1,(n=this.iu(v)).qa?(n.Pc=this.Pc,this.wr(i,h,l)&&(m.push(n),this.tj&&(n.hc!==this.hc||n.Rs<1)&&(a=!0))):(s=!1,this.wr(i,h,l)&&(a=!0),n.status||this.ce!==u||this.tm&&!this.wr(this.tm,h,l)||g.push(n)),a&&y.push(n);if(s?(this.$x||(this.$x=!0),this.q.ta||(n={key:this.q.eh?"rl":"rb",index:1,id:this.g.J.id},this.q.fa.oi||(w.Yd.ue.end(n),w.Yd.ue.push({key:"ftc",Un:m.length,id:this.g.J.id})))):this.q.ta=!1,this.rg=s,m.length&&this.$x&&(d.push(m),m.rg=s),p.push(g),u=!1,this.$h){for(f=[],s=(y=y.slice(0)).length-1;0<=s;s-=1)4&M[(n=y[s]).key]||f.push(n);for(n=e.gd[1],b=this.Ta+1;y.length&&b<=n;b+=1){for(m=[],g=y,y=[],v.z=b,s=g.length-1;0<=s;s-=1)if(7&(a=M[(h=g[s]).key]))for(a=h.ma.x<<1,o=h.ma.y<<1,h=1;0<=h;h-=1)for(v.x=a+h,l=1;0<=l;l-=1)v.y=o+l,c=v+"",r=this.wa.VD(c),5&M[c]&&r&&r.qa?(r.Mw=!0,r.Pc=this.Pc,m.push(r)):y.push(new w.Xa(v.vb()));m.length&&(u=!0,d.push(m))}y=f}if(!u&&this.ai)for(h=!d.length||this.bg?e.gd[0]:Math.max(e.gd[0],this.Ta-2),Math.max(h,this.Ta-this.B5),b=this.Ta-1;y.length&&h<=b;b-=1){for(m=[],l={},g=y,y=[],s=g.length-1;0<=s;s-=1)n=g[s],v.z=b,v.x=n.ma.x>>1,v.y=n.ma.y>>1,l[(n=this.iu(v)).key]||(a=!(l[n.key]=1),n.qa&&(!this.F7||64&M[n.key])?(v.x=Math.min(i.Sd,Math.max(i.pe,v.x<<this.Ta-b)),v.y=Math.min(i.yd,Math.max(i.zd,v.y<<this.Ta-b)),v.z=this.Ta,"number"==typeof x[c=v+""]&&n.ma.z>x[c]?a=!0:n.Mw=!0,n.Pc=this.Pc,m.push(n)):a=!0,a&&y.push(n));m.length&&d.push(m)}this.Er=this.wn=0,this.al(p),this.lj=d,this.q.set("tiles",d),this.WL(t,e)},cJ:function(t){var e=void 0===(e=t.Pl)?{}:e,i=void 0===(n=t.xs)?0:n,n=void 0===(n=t.Bp)?0:n;return t=t.H,i?(e=this.Ta+i,n=this.g.J.getCoordsBoundByZoom(e),this.Nt(n,t,e)):(t=this.Mf,i=this.Gi,{pe:t.pe-(!i||e.left?n:0),Sd:t.Sd+(!i||e.right?n:0),zd:t.zd-(!i||e.pv?n:0),yd:t.yd+(!i||e.HC?n:0)})},hy:function(t){var e,n=this,i=t.Bp,s=void 0===(e=t.xs)?0:e,a=void 0===(e=t.mode)?0:e,o=[];for(t=this.cJ({Pl:t.Pl,xs:s,Bp:void 0===i?0:i,H:t.H}),i=function(){var t=void 0;switch(a){case 0:t=function(t,e){if(0<=t&&0<=e&&(t<n.Mf.pe||e<n.Mf.zd||t>n.Mf.Sd||e>n.Mf.yd)){var i=new w.uk(n.Ta+s,t,e);n.wa.Fc(i.toString())||o.push(new w.Xa(i,!0))}};break;default:t=function(t,e){var i=new w.uk(n.Ta+s,t,e);n.wa.Fc(i.toString())||o.push(new w.Xa(i,!0))}}return t}(),e=t.pe;e<=t.Sd;e++)for(var r=t.zd;r<=t.yd;r++)i(e,r);return o},RF:function(){var t=this.g.J;return t.fY&&t.get("preloadMode")&&200<=this.wa.Al&&this.q.fa.Ar()},WL:function(t,e){var i=t.Pl,n=t.Mc,s=e.H,a=e.gd;this.RF()&&(!n&&this.Gi||(i=this.hy({Pl:i,Bp:this.Gi?2:1})).length&&this.al([i],!0),this.Ta>=a[0]+2&&("out"===this.Gu||!this.Gi)&&(s=this.hy({xs:this.Gi?-2:-1,mode:1,H:s})).length&&this.al([s],!0),this.Gi=!0)}}),w.Q.Gd.zi=w.Q.zi.extend({B:function(t,e){arguments.callee.oa.apply(this,arguments),this.Cm=120,this.ji=!1,this.Ef(),this.De=t.De,this.hm=t.hm},gi:function(){return this.yb},Ef:function(){this.yb=document.createElement("div"),this.yb.className=this.q.fa.get("className")||"amap-layer",this.er=document.createDocumentFragment()},Ur:function(t){var e=Math.pow(2,t.W.zoom-this.re),i=t.W.gb.Ua(this.ep).wc(this.qi);this.transform={translate:this.transform.translate.add(i),scale:e,rotate:0},this.gb=t.W.gb},DI:function(t,e){(!this.ra||3e4<Math.abs(this.gb.x-this.ra.x)/this.S||3e4<Math.abs(this.gb.y-this.ra.y)/this.S)&&(this.ra=this.gb),this.re=this.ce,this.qi=this.bf,this.pi=!1,this.currentTime=+new Date,this.qN=e.qN;var i=this.Mf;this.tj=this.Cm&&e.kC;var n=this.lj,s=256*i.lY;i=256*i.Dga,this.Se=this.zoom<<0!==this.zoom;var a=this.gb.Ua(this.ra);return a.x<-w.a.Za/2&&(a.x+=w.a.Za),a.x>w.a.Za/2&&(a.x-=w.a.Za),this.TI=a.wc(this.bf),[n,s,i,e]},Tu:function(t,e){var i=this.DI(t,e);this.vp.apply(this,i),this.Qe(t),this.rg&&!this.q.ta&&((i=this.q).fa.oi||w.Yd.ue.end({key:"rb",index:2,id:this.g.J.id}),i.ta=!0,i.cd?i.ia("renderComplete"):(i.cd=!0,i.ia("complete")))},kc:function(t,e){this.rk=t.rk,this.If=t.If,this.mm(t,e),this.ep&&w.l.Mj&&(t.Se||t.If)?this.Ur(t,e):this.Tu(t,e),this.ep=this.gb,this.pi&&this.set("display",0)},Tr:function(){for(var t=this.yb.childNodes,e=t.length-1;0<=e;e-=1)t[e]&&t[e].hc!==this.hc&&this.yb.removeChild(t[e])},$D:function(t,e){return t.zd===e.zd&&t.pe===e.pe&&t.yd===e.yd&&t.Sd===e.Sd},vp:function(t){var e=this.hc;this.hc+=1;var i,n,s,a=!1;n=!1;var o=[];for(this.ra.x-this.gb.x<-w.a.Za/2?this.ra=new w.G(this.ra.x+w.a.Za,this.ra.y):this.ra.x-this.gb.x>w.a.Za/2&&(this.ra=new w.G(this.ra.x-w.a.Za,this.ra.y)),i=t.length-1;0<=i;i-=1)if((s=t[i]).length){n=s[0].ma.z;for(var r,h,l=this.wE(this.ce,n),c=s.length-1;0<=c;c-=1){if(h=s[c],this.GY(h),!h.Jc&&this.ra===h.ra&&h.re===this.re){var u=h.tc;if(u&&u.parentNode===this.yb&&1===h.Rs){o.push(h),u.hc=this.hc,h.hc=this.hc;continue}}var f;h.ra=this.ra,h.re=this.re,r=h.ma,a=!0,(f=(f=new w.G((r.x<<20-n)*this.ee,(r.y<<20-n)*this.ee).Ua(this.ra)).wc(this.bf)).x=Math.floor(f.x),f.y=Math.floor(f.y);var d=1;(!h.AP||this.JO&&h.hc!==e)&&(h.AP=this.currentTime),this.tj&&!h.Mw?(u=Math.max(0,Math.abs(r.z-this.zoom)-1),1!==(d=Math.min(1,(this.currentTime-h.AP)/(1/Math.pow(1.32,u)*this.Cm)))&&(this.pi=!0)):h.Mw=!1,h.hc=this.hc,h.Rs=d,h.qa?(!(u=h.tc)&&h.Jc&&h.Jc.tc&&(u=h.Jc.tc),0!==d&&u&&(this.xV(u,f.x,f.y,l,l,d,r.z),u.parentNode!==this.yb&&(w.l.bh&&"overlayer"===this.q.get("type")&&(u.style.display="none"),this.er.appendChild(u)),u.hc=this.hc,h.ce=this.ce,o.push(h))):h.Pc=null}n=!0}return 1<t.length&&(this.pi=!0),this.Fm=o,this.Tr(),this.yb.appendChild(this.er),a||!n},GY:function(){},Qe:function(){this.transform={translate:this.TI,scale:Math.pow(2,this.zoom-this.ce),rotate:0}}}),window.CanvasRenderingContext2D&&(window.CanvasRenderingContext2D.prototype.jJ=function(t,e,i,n,s){void 0===s&&(s=[10,10]),this.moveTo(t,e);var a=i-t,o=n-e,r=Math.floor(Math.sqrt(a*a+o*o));n=a/r,i=o/r,s.YK=0;for(var h=[],l=(a=this.CC,0),c=0,u=!1,f=o=0;f<s.length;f+=1)s.YK+=s[f],h[f]={xJ:s[f]*n,yJ:s[f]*i,wD:o+=s[f]},(a-=s[f])<0&&!u&&(l=f,c=-a,u=!0);for(u=0;c+u<=r;)o=c<s[l]?(a=c*n,c*i):(a=h[l].xJ,h[l].yJ),t+=a,e+=o,this.oz?this.moveTo(t,e):this.lineTo(t,e),u+=c,this.oz=!this.oz,c=s[(l+1)%s.length],l=(l+1)%s.length;t+=(r-=u)*n,e+=r*i,this.oz?this.moveTo(t,e):this.lineTo(t,e),this.CC=(this.CC+u+r)%s.YK},window.CanvasRenderingContext2D.prototype.eba=function(t,e,i,n){void 0===n&&(n=[10,10]);var s=2*Math.PI*i,a=n<=0?s:Math.round(s/(n[0]+n[1])),o=(n[0]+n[1])/s*2*Math.PI;for(n=n[0]/s*2*Math.PI,s=0;s<a;s+=1)this.beginPath(),this.arc(t,e,i,s*o,s*o+n),this.stroke()}),w.Q.Rd.rj=w.Q.zi.extend({B:function(t,e){arguments.callee.oa.apply(this,arguments),this.Ef()},nK:function(){return this.mb.MM},gi:function(){return this.yb},Ef:function(){this.yb=document.createElement("div"),this.yb.className="amap-markers",this.mb=new w.Q.Rd.Kc(this.yb),this.mb.q=this.q,this.T.K.appendChild(this.yb)},Kp:function(t,e){this.er=e.er,this.tu=e,this.ef=t.W.ef,this.S=t.W.S,this.zoom=t.W.zoom,this.size=t.size,this.Aa=t.W.Aa,this.zn=t.S,this.ib=t.W.gb,this.zh=t.W.zh;var i=!1;(!this.ra||3e4<Math.abs(this.ib.x-this.ra.x)/this.S||3e4<Math.abs(this.ib.y-this.ra.y)/this.S)&&(i=!0),(i||this.zoom<<0!==this.zoom||this.re!==this.zoom)&&(this.ra=this.ib,this.re=this.zoom)},rr:function(t){var e=t.W.Aa.Vb.y*this.S;return t=t.W.Aa.Vb.x*this.S,[this.ib.x-t,this.ib.y-e,this.ib.x+t,this.ib.y+e]},Tr:function(){if(this.Bg&&this.Bg)for(var t in this.Bg)if(this.Bg.hasOwnProperty(t)){var e=this.Bg[t];e.Pc!==this.Pc&&e.ea&&this.T.wj.appendChild(e.ea)}},kc:function(t,e){this.Pc=1e6*Math.random()<<0,this.Kp(t,e),this.W=t.W,this.size=t.size;var i,n,s=this.q;this.ee=256,n=this.rr(t);var a=0;for(i in s.Vk&&(a=50*this.S),n[0]-=this.q.Ge*this.S+a,n[1]-=this.q.df*this.S+a,n[2]+=this.q.Ge*this.S+a,n[3]+=this.q.df*this.S+a,s=s.Ui(n))s.hasOwnProperty(i)&&(s[i].Pc=this.Pc,s[i].UW=this);this.Tr(s),this.Kp.call(this.mb,t,e),this.mb.ez(s),this.Bg=s,this.Qe(t)},Qe:function(){var t=Math.pow(2,this.zoom-this.ce);this.transform={translate:this.ra.Ua(this.ib).wc(this.S),scale:t,rotate:0}}}),w.Q.Rd.Kc=w.aa.extend({B:function(t){this.ej=t},ez:function(t,e){var i,n=document.createDocumentFragment(),s=e&&e.KK?null:{},a=!0;for(i in t)if(t.hasOwnProperty(i)){var o,r=t[i],h=r.get("params");if(r.ea)o=r.ea;else{(o=w.j.create("div")).className="amap-marker";var l=h.tg,c=h.jZ;l&&o.appendChild(l),c&&o.appendChild(c),r.ea=o,r.tg=l,(c=h.title)&&(l.title=c),this.q.Vk=!0,-1===w.a.indexOf(this.q.Lf,r)&&this.q.Lf.push(r),r.Yg=!0}c=(l=h.offset).x;var u=l.y,f=h.textAlign,d=h.verticalAlign;if(l=!1,("left"!==f||"top"!==d)&&(o.parentNode!==this.ej&&s&&(l=!0,s[i]=r,a=!1),!l)){var p=(g=w.j.ey(r.tg))[0],g=g[1];switch(f){case"center":c-=p/2;break;case"right":c-=p}switch(d){case"middle":u-=g/2;break;case"bottom":u-=g}}r.Yg?(p=[],d=this.Ho(r.Z.Oa),r.ra=this.ra,g=h.BN,f=Math.round(d[1]+u+g.y),d=Math.round(d[0]+c+g.x),p.push("top:"+f+"px"),p.push("left:"+d+"px"),p.push("z-index:"+(h.JW?this.q.Nn+10:h.zIndex)),w.l.ae||p.push(w.j.NV(o,h.cC,{x:-c,y:-u})),p.push("display:"+(h.visible?"block":"none")+";"),o.style.cssText=p.join(";"),(c=h.label)&&c.content&&(h=h.NW,d=f=0,c.offset&&(f=c.offset.y+"px",d=c.offset.x+"px"),h.style.top=f,h.style.left=d,o.appendChild(h))):(r.x0||this.zoom<<0!==this.zoom||r.zoom!==this.zoom||o.parentNode!==this.ej||r.ra!==this.ra)&&(d=this.Ho(r.Z.Oa),r.ra=this.ra,g=h.BN,f=Math.round(d[1]+u+g.y),d=Math.round(d[0]+c+g.x),o.style.top=f+"px",o.style.left=d+"px"),r.zoom=this.zoom,o.parentNode!==this.ej&&(w.l.bh&&w.a.iepngFix(o),n.appendChild(o),r.Yg=l),o.Qw=this.ej}this.ej.appendChild(n),a||this.ez(s,{KK:!0})},Ho:function(t){return[(t[0]-this.ra.x)/this.S,(t[1]-this.ra.y)/this.S]}});var Bc=w.A,Kc=w.l,Zb=w.aa.Wq,Lc=w.jga,fa=document,Mc=!0,Nc=[];if(Kc.Oe&&Nc.push("touch"),Kc.Y||Nc.push("mouse"),Kc.pz&&(Nc.push("vectorlayer","overlay"),Kc.rm?Nc.push("wgl"):Nc.push("cmng","cgl")),Lc){for(var Oc=[],Pc=Lc.split(","),Qc=0;Qc<Pc.length;Qc+=1){var Rc=Pc[Qc];Zb[Rc]&&Oc.push.apply(Oc,Zb[Rc]),Oc.push(Rc)}Nc=Nc.concat(Oc)}if(Nc.push("sync"),Kc.bj){var Sc=!0,Tc=[],Uc=[];try{for(var Qc=0,Vc=Nc.length;Qc<Vc;Qc++){var Wc=JSON.parse(localStorage.getItem("_AMap_"+Nc[Qc]));if(!Wc||Wc.version!==Bc.Th){Tc=void 0,Sc=!1;break}Tc.push(Wc.script),Wc.css&&Uc.push(Wc.css)}}catch(t){Tc=Uc=void 0,Sc=!1}if(Sc)try{Uc.length&&Yc();var Zc=Tc.join(";");eval(Zc)}catch(t){Mc=!1}else Mc=!1}else Mc=!1;if(Mc)for(Qc=0;Qc<Nc.length;Qc+=1)w.hb.Rx(Nc[Qc]).status=1;else Bc.Gy=!1,ad();function bd(){for(var t,e=fa.getElementsByTagName("script"),i=0;i<e.length;i+=1)if(0===e[i].src.indexOf(Bc.ub+"/maps?")){t=e[i];break}return Bc.Cc||t&&t.async}function ad(){var t=Bc.ub+"/maps/modules?v="+Bc.Gq+"&key="+Bc.key+"&vrs="+Bc.Th+"&m="+Nc.join(","),e=fa.createElement("script");e.crossorigin="anonymous",e.src=t,e.id="amap_plus_js",e.type="text/javascript",bd()?cd(t):(fa.head.appendChild(e),setTimeout(function(){fa.getElementById("amap_plus_js")||cd(t)},1))}function cd(t){var e=fa.createElement("script");e.charset="utf-8",e.src=t,e.id="amap_plus_js",(t=fa.head||fa.getElementsByTagName("head")[0]||fa.body)&&t.appendChild(e)}function Yc(){var t=Uc.join("\n"),e=fa.createElement("style");if(e.type="text/css",-1===Bc.ub.indexOf("webapi.amap.com")&&(t=t.replace(/webapi.amap.com/gi,Bc.ub.split("://")[1])),"https"===Bc.Rb&&(t=t.replace(/http:/gi,"https:")),e.styleSheet){var i=function(){try{e.styleSheet.cssText=t}catch(t){}};e.styleSheet.disabled?setTimeout(i,10):i()}else e.appendChild(fa.createTextNode(t));(i=fa.head||fa.getElementsByTagName("head")[0]).childNodes.length<2?i.appendChild(e):i.insertBefore(e,i.childNodes[1])}}(["4b81460e1147a5cd8073b712cc6e7887",[120.856804,30.675593,122.247149,31.872716,121.472644,31.231706],"https://webapi.amap.com",1,"1.4.8",null,"310000","",!0,!0,!0,!0,"1542115405-1"]);