var ct=Object.defineProperty;var Q=Object.getOwnPropertySymbols;var dt=Object.prototype.hasOwnProperty,gt=Object.prototype.propertyIsEnumerable;var K=(t,p,o)=>p in t?ct(t,p,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[p]=o,q=(t,p)=>{for(var o in p||(p={}))dt.call(p,o)&&K(t,o,p[o]);if(Q)for(var o of Q(p))gt.call(p,o)&&K(t,o,p[o]);return t};import{o as H,a as X,V as ft,K as at,L as mt,M as yt,J as vt,a1 as tt,k as _t,a4 as bt,Q as wt,R as et,a5 as A,Y as O}from"./vue.1704421723665.js";import{_ as xt}from"./index.1704421723665.js";var Mt={"bm-map":["click","dblclick","rightclick","rightdblclick","maptypechange","mousemove","mouseover","mouseout","movestart","moving","moveend","zoomstart","zoomend","addoverlay","addcontrol","removecontrol","removeoverlay","clearoverlays","dragstart","dragging","dragend","addtilelayer","removetilelayer","load","resize","hotspotclick","hotspotover","hotspotout","tilesloaded","touchstart","touchmove","touchend","longpress"],"bm-geolocation":["locationSuccess","locationError"],"bm-overview-map":["viewchanged","viewchanging"],"bm-marker":["click","dblclick","mousedown","mouseup","mouseout","mouseover","remove","infowindowclose","infowindowopen","dragstart","dragging","dragend","rightclick"],"bm-polyline":["click","dblclick","mousedown","mouseup","mouseout","mouseover","remove","lineupdate"],"bm-polygon":["click","dblclick","mousedown","mouseup","mouseout","mouseover","remove","lineupdate"],"bm-circle":["click","dblclick","mousedown","mouseup","mouseout","mouseover","remove","lineupdate"],"bm-label":["click","dblclick","mousedown","mouseup","mouseout","mouseover","remove","rightclick"],"bm-info-window":["close","open","maximize","restore","clickclose"],"bm-ground":["click","dblclick"],"bm-autocomplete":["onconfirm","onhighlight"],"bm-point-collection":["click","mouseover","mouseout"]};function V(t,p){const o=p||Mt[this.$options.name];o&&o.forEach(g=>{let m=g.slice(0,2)==="on"?g.slice(2):g;const i=this.$attrs["on"+m.replace(m[0],m[0].toUpperCase())];i&&t.addEventListener(g,i)})}function L(t,p={}){const{lng:o,lat:g}=p;return new t.Point(o,g)}function it(t,p={}){const{sw:o,ne:g}=p;return new t.Bounds(L(t,o),L(t,g))}function Z(t,p={}){const{width:o,height:g}=p;return new t.Size(o,g)}const nt=t=>Object.prototype.toString.call(t).slice(8,-1),N=t=>{Object.keys(t).forEach(p=>{typeof t[p]=="undefined"&&delete t[p]})};let j={v:"3.0",type:"API"};const Ct=(t={})=>{j=Object.assign(j,t),j.ak||console.error("\u8BF7\u914D\u7F6Eak\uFF1A\u767E\u5EA6\u5730\u56FE\u5F00\u53D1\u8005\u5E73\u53F0\u7533\u8BF7\u7684\u5BC6\u94A5")},E=()=>j;var $=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},U={exports:{}};function Y(){}Y.prototype={on:function(t,p,o){var g=this.e||(this.e={});return(g[t]||(g[t]=[])).push({fn:p,ctx:o}),this},once:function(t,p,o){var g=this;function w(){g.off(t,w),p.apply(o,arguments)}return w._=p,this.on(t,w,o)},emit:function(t){var p=[].slice.call(arguments,1),o=((this.e||(this.e={}))[t]||[]).slice(),g=0,w=o.length;for(g;g<w;g++)o[g].fn.apply(o[g].ctx,p);return this},off:function(t,p){var o=this.e||(this.e={}),g=o[t],w=[];if(g&&p)for(var m=0,i=g.length;m<i;m++)g[m].fn!==p&&g[m].fn._!==p&&w.push(g[m]);return w.length?o[t]=w:delete o[t],this}};U.exports=Y;U.exports.TinyEmitter=Y;var St=U.exports,W=new St,z={$on:(...t)=>W.on(...t),$once:(...t)=>W.once(...t),$off:(...t)=>W.off(...t),$emit:(...t)=>W.emit(...t)};const ot={API:{"2.0":{setMapStyle:"setMapStyle",NavigationControl:"NavigationControl"},"3.0":{setMapStyle:"setMapStyleV2",NavigationControl:"NavigationControl"}},WebGL:{setMapStyle:"setMapStyleV2",NavigationControl:"NavigationControl3D"}},R=t=>{const p=E();return p.type=="WebGL"?ot[p.type][t]:ot[p.type][p.v][t]};let rt;new Promise(t=>{rt=t});var st=(t,p)=>{const o=t.__vccOpts||t;for(const[g,w]of p)o[g]=w;return o};const Bt={name:"bm-map",inheritAttrs:!1,emits:["ready","init","animationed"],props:{ak:{type:String},v:{type:String},type:{type:String},center:{type:[Object,String]},zoom:{type:Number},minZoom:{type:Number},maxZoom:{type:Number},highResolution:{type:Boolean,default:!0},mapClick:{type:Boolean,default:!0},mapType:{type:String},dragging:{type:Boolean,default:!0},scrollWheelZoom:{type:Boolean,default:!1},doubleClickZoom:{type:Boolean,default:!0},keyboard:{type:Boolean,default:!0},inertialDragging:{type:Boolean,default:!0},continuousZoom:{type:Boolean,default:!0},pinchToZoom:{type:Boolean,default:!0},autoResize:{type:Boolean,default:!0},theme:{type:Array},mapStyle:{type:Object},hasAnimation:{type:Boolean,default:!0},defaultAnimation:{type:Boolean,default:!0},preserveDrawingBuffer:{type:Boolean,default:!1}},watch:{center(t,p){const{map:o,zoom:g}=this;nt(t)==="String"&&t!==p&&this.setCenterZoom(o,t,g)},"center.lng"(t,p){const{BMap:o,map:g,zoom:w,center:m}=this;t!==p&&t>=-180&&t<=180&&this.setCenterZoom(g,new o.Point(t,m.lat),w)},"center.lat"(t,p){const{BMap:o,map:g,zoom:w,center:m}=this;t!==p&&t>=-74&&t<=74&&this.setCenterZoom(g,new o.Point(m.lng,t),w)},zoom(t,p){const{map:o}=this;t!==p&&t>=3&&t<=19&&o.setZoom(t)},minZoom(t){const{map:p}=this;p.setMinZoom(t)},maxZoom(t){const{map:p}=this;p.setMaxZoom(t)},highResolution(){this.reset()},mapClick(){this.reset()},mapType(t){const{map:p}=this;p.setMapType(window[t])},dragging(t){const{map:p}=this;t?p.enableDragging():p.disableDragging()},scrollWheelZoom(t){const{map:p}=this;t?p.enableScrollWheelZoom():p.disableScrollWheelZoom()},doubleClickZoom(t){const{map:p}=this;t?p.enableDoubleClickZoom():p.disableDoubleClickZoom()},keyboard(t){const{map:p}=this;t?p.enableKeyboard():p.disableKeyboard()},inertialDragging(t){const{map:p}=this;t?p.enableInertialDragging():p.disableInertialDragging()},continuousZoom(t){const{map:p}=this;t?p.enableContinuousZoom():p.disableContinuousZoom()},pinchToZoom(t){const{map:p}=this;t?p.enablePinchToZoom():p.disablePinchToZoom()},autoResize(t){const{map:p}=this;t?p.enableAutoResize():p.disableAutoResize()},theme(t){const{map:p}=this;p[R("setMapStyle")]({styleJson:t})},mapStyle:{handler(t){const{map:p,theme:o}=this;!o&&p[R("setMapStyle")](t)},deep:!0}},methods:{setMapOptions(){const{map:t,minZoom:p,maxZoom:o,mapType:g,dragging:w,scrollWheelZoom:m,doubleClickZoom:i,keyboard:r,inertialDragging:e,continuousZoom:n,pinchToZoom:u,autoResize:h}=this;p&&t.setMinZoom(p),o&&t.setMaxZoom(o),g&&t.setMapType(window[g]),w?t.enableDragging():t.disableDragging(),m?t.enableScrollWheelZoom():t.disableScrollWheelZoom(),i?t.enableDoubleClickZoom():t.disableDoubleClickZoom(),r?t.enableKeyboard():t.disableKeyboard(),e?t.enableInertialDragging():t.disableInertialDragging(),n?t.enableContinuousZoom():t.disableContinuousZoom(),u?t.enablePinchToZoom():t.disablePinchToZoom(),h?t.enableAutoResize():t.disableAutoResize()},init(t){if(this.map)return;let p=this.$refs.view;this.$slots.default;const o=new t.Map(p,{enableHighResolution:this.highResolution,enableMapClick:this.mapClick,preserveDrawingBuffer:this.preserveDrawingBuffer});this.map=o;const{setMapOptions:g,zoom:w,getCenterPoint:m,theme:i,mapStyle:r}=this;g(),V.call(this,o),o.reset(),this.setCenterZoom(o,m(),w),i?o[R("setMapStyle")]({styleJson:i}):r&&o[R("setMapStyle")](r);let e=0;this.$emit("init",{BMap:t,map:o}),z.$emit("init",{BMap:t,map:o}),o.addEventListener("tilesloaded",()=>{e||(e++,this.$emit("ready",{BMap:t,map:o}),z.$emit("ready",{BMap:t,map:o}))}),o.addEventListener("loaded",()=>{this.$emit("loaded",{BMap:t,map:o}),z.$emit("loaded",{BMap:t,map:o})})},setCenterZoom(t,p,o){E().type==="WebGL"&&(!this.hasAnimation||!this.defaultAnimation)?t.setCenter(p,{noAnimation:!this.hasAnimation,callback:()=>{t.setZoom(o,{noAnimation:!this.hasAnimation,zoomCenter:p,callback:()=>{this.$emit("animationed",{BMap:this.BMap,map:t})}})}}):t.centerAndZoom(p,o)},getCenterPoint(){const{center:t,BMap:p}=this;switch(nt(t)){case"String":return t;case"Object":return new p.Point(t.lng,t.lat);default:return new p.Point}},initMap(t){this.BMap=t,this.init(t),rt(t)},getMapScript(){return window.BMap?window.BMap._preloader?window.BMap._preloader:Promise.resolve(window.BMap):(window.BMap={},window.BMap._preloader=new Promise((t,p)=>{window._initBaiduMap=function(){window.BMap=E().type=="WebGL"?window.BMapGL:window.BMap,t(window.BMap),window.document.body.removeChild(o),window.BMap._preloader=null,window._initBaiduMap=null};const o=document.createElement("script");switch(window.document.body.appendChild(o),E().type){case"WebGL":o.src=`https://api.map.baidu.com/api?v=1.0&type=webgl&ak=${E().ak}&callback=_initBaiduMap`;break;default:o.src=`https://api.map.baidu.com/api?v=${E().v}&ak=${E().ak}&callback=_initBaiduMap`}}),window.BMap._preloader)},reset(){const{getMapScript:t,initMap:p}=this;t().then(p)}},created(){const t={};this.ak&&(t.ak=this.ak),this.v&&(t.v=this.v),this.type&&(t.type=this.type),Ct(t)},mounted(){this.reset()},data(){return{hasBmView:!1,map:null,BMap:null,name:"bm-map"}}},kt={key:0,ref:"view",style:{width:"100%",height:"100%"}};function Pt(t,p,o,g,w,m){return H(),X("div",{class:mt(t.$attrs.class),style:yt(t.$attrs.style)},[w.hasBmView?ft("",!0):(H(),X("div",kt,null,512)),at(t.$slots,"default")],6)}var It=st(Bt,[["render",Pt]]);const Tt={control:{unload:"removeControl"},layer:{unload:"removeTileLayer"},overlay:{unload:"removeOverlay"},contextMenu:{unload:"removeContextMenu"}},G=t=>t.abstract||t.name!=="bm-map"?G(t.$parent):t;function Ot(){const{unload:t,renderByParent:p,$parent:o,ready:g}=this;z.$off("ready",g),p&&o.reload(),t()}const Et=(t={})=>({emits:["ready"],computed:{renderByParent(){return this.$parent.preventChildrenRender}},created(){const p=G(this.$parent),o=p.map,{ready:g}=this;o?g():z.$on("ready",g),o?this.init({BMap:p.BMap,map:o}):z.$on("init",this.init)},mounted(){const o=G(this.$parent).map,{mountedReady:g}=this;o?g():z.$on("ready",g)},unmounted:Ot,methods:{init(){},ready(){const p=G(this.$parent),o=this.BMap=p.BMap,g=this.map=p.map;this.load(),this.$emit("ready",{BMap:o,map:g})},mountedReady(){this.mountedLoad()},transmitEvent(p){this.$emit(p.type.replace(/^on/,""),p)},reload(){this&&this.BMap&&this.$nextTick(()=>{this.unload(),this.$nextTick(()=>{this.load(),this.mountedLoad()})})},unload(){const{map:p,originInstance:o}=this;try{switch(t.type){case"search":return o.clearResults();case"autoComplete":case"lushu":return o.dispose();case"markerClusterer":return o.clearMarkers();default:p[Tt[t.type].unload](o)}}catch{}},mountedLoad(){}}});var D=t=>Et({type:t});const zt={name:"bm-navigation",render(){},mixins:[D("control")],props:{anchor:{type:String},offset:{type:Object},type:{type:String},showZoomInfo:{type:Boolean},enableGeolocation:{type:Boolean,default:!1}},watch:{anchor(){this.reload()},offset(){this.reload()},type(){this.reload()},showZoomInfo(){this.reload()}},methods:{load(){const{BMap:t,map:p,anchor:o,offset:g,type:w,showZoomInfo:m,enableGeolocation:i}=this;let r={anchor:window[o],offset:g&&Z(t,g),type:window[w],showZoomInfo:m,enableGeolocation:i};N(r),this.originInstance=new t[R("NavigationControl")](r),p.addControl(this.originInstance)}}},At={name:"bm-map-type",render(){},mixins:[D("control")],props:["type","mapTypes","anchor","offset"],watch:{anchor(){this.reload()},offset(){this.reload()},type(){this.reload()},mapTypes(){this.reload()}},methods:{load(){const{BMap:t,map:p,anchor:o,offset:g,type:w}=this,m=[];this.mapTypes&&this.mapTypes.forEach(r=>m.push(window[r]));let i={anchor:window[o],offset:g&&Z(t,g),type:window[w],mapTypes:m};N(i),this.originInstance=new t.MapTypeControl(i),p.addControl(this.originInstance)}}},Lt={name:"bm-polygon",render(){},mixins:[D("overlay")],props:{path:{type:Array,default(){return[]}},strokeColor:{type:String},strokeWeight:{type:Number},strokeOpacity:{type:Number},strokeStyle:{type:String},fillColor:{type:String},fillOpacity:{type:Number},massClear:{type:Boolean,default:!0},clicking:{type:Boolean,default:!0},editing:{type:Boolean,default:!1}},watch:{path:{handler(t,p){this.reload()},deep:!0},strokeColor(t){this.originInstance.setStrokeColor(t)},strokeOpacity(t){this.originInstance.setStrokeOpacity(t)},strokeWeight(t){this.originInstance.setStrokeWeight(t)},strokeStyle(t){this.originInstance.setStrokeStyle(t)},fillColor(t){this.originInstance.setFillColor(t)},fillOpacity(t){this.originInstance.setFillOpacity(t)},editing(t){t?this.originInstance.enableEditing():this.originInstance.disableEditing()},massClear(t){t?this.originInstance.enableMassClear():this.originInstance.disableMassClear()},clicking(t){this.reload()}},methods:{load(){const{BMap:t,map:p,path:o,strokeColor:g,strokeWeight:w,strokeOpacity:m,strokeStyle:i,fillColor:r,fillOpacity:e,editing:n,massClear:u,clicking:h}=this;let d={strokeColor:g,strokeWeight:w,strokeOpacity:m,strokeStyle:i,fillColor:r,fillOpacity:e,enableMassClear:u,enableClicking:h};N(d);const a=new t.Polygon(o.map(c=>L(t,{lng:c.lng,lat:c.lat})),d);this.originInstance=a,p.addOverlay(a),V.call(this,a),n?a.enableEditing():a.disableEditing()}}},$t={name:"bm-ground",render(){},mixins:[D("overlay")],props:{bounds:{type:Object},opacity:{type:Number},imageURL:{type:String},displayOnMinLevel:{type:Number},displayOnMaxLevel:{type:Number}},watch:{bounds:{handler(t){const{BMap:p}=this;this.originInstance.setBounds(it(p,t))},deep:!0},opacity(t){this.originInstance.setOpacity(t)},imageURL(t){this.originInstance.setImageURL(t)},displayOnMinLevel(t){this.originInstance.setDisplayOnMinLevel(t)},displayOnMaxLevel(t){this.originInstance.setDisplayOnMaxLevel(t)}},methods:{load(){const{BMap:t,map:p,bounds:o,opacity:g,imageURL:w,displayOnMinLevel:m,displayOnMaxLevel:i}=this;let r={opacity:g,imageURL:w,displayOnMaxLevel:i,displayOnMinLevel:m};N(r);const e=new t.GroundOverlay(o&&it(t,o),r);e.setImageURL(w),this.originInstance=e,V.call(this,e),p.addOverlay(e)}}},Dt={name:"bm-label",render(){},mixins:[D("overlay")],props:{content:{type:String},title:{type:String},offset:{},position:{},labelStyle:{},zIndex:{type:Number,default:0},massClear:{type:Boolean,default:!0}},watch:{content(t){this.originInstance.setContent(t)},title(t){this.originInstance.setTitle(t)},"offset.width"(t,p){const{BMap:o}=this;t.toString()!==p.toString()&&this.originInstance.setOffset(Z(o,{width:t,height:this.offset.height}))},"offset.height"(t,p){const{BMap:o}=this;t.toString()!==p.toString()&&this.originInstance.setOffset(Z(o,{width:this.offset.width,height:t}))},"position.lng"(t,p){const{BMap:o}=this,g=t;t.toString()!==p.toString()&&g>=-180&&g<=180&&this.originInstance.setPosition(L(o,{lng:g,lat:this.position.lat}))},"position.lat"(t,p){const{BMap:o}=this,g=t;t.toString()!==p.toString()&&g>=-74&&g<=74&&this.originInstance.setPosition(L(o,{lng:this.position.lng,lat:g}))},labelStyle:{handler(t){this.originInstance.setStyle(t)},deep:!0},zIndex(t){this.originInstance.setZIndex(t)},massClear(t){t?this.originInstance.enableMassClear():this.originInstance.disableMassClear()}},methods:{load(){const{BMap:t,map:p,content:o,title:g,offset:w,position:m,labelStyle:i,zIndex:r,massClear:e,$parent:n}=this;let u={offset:Z(t,w),position:L(t,m),enableMassClear:e};N(u);const h=new t.Label(o,u);this.originInstance=h;try{n.originInstance.setLabel(h)}catch{p.addOverlay(h)}g&&h.setTitle(g),i&&h.setStyle(i),r&&h.setZIndex(r),V.call(this,h)}}},Ft={name:"bm-overlay",emits:["initialize","draw"],mixins:[D("overlay")],props:{pane:{type:String}},watch:{pane(){this.reload()}},methods:{load(){},mountedLoad(){const{BMap:t,map:p,$el:o,pane:g}=this,w=this.$emit.bind(this);class m extends t.Overlay{initialize(){w("initialize",{BMap:t,map:p,el:o,overlay:this});try{p.getPanes()[g].appendChild(o)}catch{}return o}draw(){w("draw",{BMap:t,map:p,el:o,overlay:this})}}const i=new m;this.originInstance=i,p.addOverlay(i)}}};function Rt(t,p,o,g,w,m){return H(),X("div",null,[at(t.$slots,"default")])}var Zt=st(Ft,[["render",Rt]]),lt={exports:{}};(function(t,p){(function(o,g){t.exports=g()})($,function(){var o=typeof window!="undefined"?window:typeof $!="undefined"?$:this;function g(a,c){return c={exports:{}},a(c,c.exports,o),c.exports}var w=g(function(a,c,y){(function(_,l){typeof c=="object"?a.exports=l():(_.BMapLib=_.BMapLib||{},_.BMapLib.TextIconOverlay=_.BMapLib.TextIconOverlay||l())})(o,function(){var _,l=_=l||{version:"1.3.8"},M={};l.guid="$BAIDU$",M[l.guid]=M[l.guid]||{},l.dom=l.dom||{},l.dom.g=function(s){return typeof s=="string"||s instanceof String?document.getElementById(s):s&&s.nodeName&&(s.nodeType==1||s.nodeType==9)?s:null},l.g=l.G=l.dom.g,l.dom.getDocument=function(s){return s=l.dom.g(s),s.nodeType==9?s:s.ownerDocument||s.document},l.lang=l.lang||{},l.lang.isString=function(s){return Object.prototype.toString.call(s)=="[object String]"},l.isString=l.lang.isString,l.dom._g=function(s){return l.lang.isString(s)?document.getElementById(s):s},l._g=l.dom._g,l.browser=l.browser||{},/msie (\d+\.\d)/i.test(navigator.userAgent)&&(l.browser.ie=l.ie=document.documentMode||+RegExp.$1),l.dom.getComputedStyle=function(s,f){s=l.dom._g(s);var v=l.dom.getDocument(s),b;return v.defaultView&&v.defaultView.getComputedStyle&&(b=v.defaultView.getComputedStyle(s,null),b)?b[f]||b.getPropertyValue(f):""},l.dom._styleFixer=l.dom._styleFixer||{},l.dom._styleFilter=l.dom._styleFilter||[],l.dom._styleFilter.filter=function(s,f,v){for(var b=0,x=l.dom._styleFilter,P;P=x[b];b++)(P=P[v])&&(f=P(s,f));return f},l.string=l.string||{},l.string.toCamelCase=function(s){return s.indexOf("-")<0&&s.indexOf("_")<0?s:s.replace(/[-_][^-_]/g,function(f){return f.charAt(1).toUpperCase()})},l.dom.getStyle=function(s,f){var v=l.dom;s=v.g(s),f=l.string.toCamelCase(f);var b=s.style[f]||(s.currentStyle?s.currentStyle[f]:"")||v.getComputedStyle(s,f);if(!b){var x=v._styleFixer[f];x&&(b=x.get?x.get(s):l.dom.getStyle(s,x))}return(x=v._styleFilter)&&(b=x.filter(f,b,"get")),b},l.getStyle=l.dom.getStyle,/opera\/(\d+\.\d)/i.test(navigator.userAgent)&&(l.browser.opera=+RegExp.$1),l.browser.isWebkit=/webkit/i.test(navigator.userAgent),l.browser.isGecko=/gecko/i.test(navigator.userAgent)&&!/like gecko/i.test(navigator.userAgent),l.browser.isStrict=document.compatMode=="CSS1Compat",l.dom.getPosition=function(s){s=l.dom.g(s);var f=l.dom.getDocument(s),v=l.browser,b=l.dom.getStyle;v.isGecko>0&&f.getBoxObjectFor&&b(s,"position")=="absolute"&&(s.style.top===""||s.style.left);var x={left:0,top:0},P=v.ie&&!v.isStrict?f.body:f.documentElement,C,B;if(s==P)return x;if(s.getBoundingClientRect){B=s.getBoundingClientRect(),x.left=Math.floor(B.left)+Math.max(f.documentElement.scrollLeft,f.body.scrollLeft),x.top=Math.floor(B.top)+Math.max(f.documentElement.scrollTop,f.body.scrollTop),x.left-=f.documentElement.clientLeft,x.top-=f.documentElement.clientTop;var I=f.body,F=parseInt(b(I,"borderLeftWidth")),J=parseInt(b(I,"borderTopWidth"));v.ie&&!v.isStrict&&(x.left-=isNaN(F)?2:F,x.top-=isNaN(J)?2:J)}else{C=s;do{if(x.left+=C.offsetLeft,x.top+=C.offsetTop,v.isWebkit>0&&b(C,"position")=="fixed"){x.left+=f.body.scrollLeft,x.top+=f.body.scrollTop;break}C=C.offsetParent}while(C&&C!=s);for((v.opera>0||v.isWebkit>0&&b(s,"position")=="absolute")&&(x.top-=f.body.offsetTop),C=s.offsetParent;C&&C!=f.body;)x.left-=C.scrollLeft,(!v.opera||C.tagName!="TR")&&(x.top-=C.scrollTop),C=C.offsetParent}return x},l.event=l.event||{},l.event._listeners=l.event._listeners||[],l.event.on=function(s,f,v){f=f.replace(/^on/i,""),s=l.dom._g(s);var b=function(I){v.call(s,I)},x=l.event._listeners,P=l.event._eventFilter,C,B=f;return f=f.toLowerCase(),P&&P[f]&&(C=P[f](s,f,b),B=C.type,b=C.listener),s.addEventListener?s.addEventListener(B,b,!1):s.attachEvent&&s.attachEvent("on"+B,b),x[x.length]=[s,f,v,b,B],s},l.on=l.event.on,function(){var s=M[l.guid];l.lang.guid=function(){return"TANGRAM__"+(s._counter++).toString(36)},s._counter=s._counter||1}(),M[l.guid]._instances=M[l.guid]._instances||{},l.lang.isFunction=function(s){return Object.prototype.toString.call(s)=="[object Function]"},l.lang.Class=function(s){this.guid=s||l.lang.guid(),M[l.guid]._instances[this.guid]=this},M[l.guid]._instances=M[l.guid]._instances||{},l.lang.Class.prototype.dispose=function(){delete M[l.guid]._instances[this.guid];for(var s in this)l.lang.isFunction(this[s])||delete this[s];this.disposed=!0},l.lang.Class.prototype.toString=function(){return"[object "+(this._className||"Object")+"]"},l.lang.Event=function(s,f){this.type=s,this.returnValue=!0,this.target=f||null,this.currentTarget=null},l.lang.Class.prototype.addEventListener=function(s,f,v){if(!!l.lang.isFunction(f)){!this.__listeners&&(this.__listeners={});var b=this.__listeners,x;if(typeof v=="string"&&v){if(/[^\w\-]/.test(v))throw"nonstandard key:"+v;f.hashCode=v,x=v}s.indexOf("on")!=0&&(s="on"+s),typeof b[s]!="object"&&(b[s]={}),x=x||l.lang.guid(),f.hashCode=x,b[s][x]=f}},l.lang.Class.prototype.removeEventListener=function(s,f){if(!(typeof f!="undefined"&&(l.lang.isFunction(f)&&!(f=f.hashCode)||!l.lang.isString(f)))){!this.__listeners&&(this.__listeners={}),s.indexOf("on")!=0&&(s="on"+s);var v=this.__listeners;if(!!v[s])if(typeof f!="undefined")v[s][f]&&delete v[s][f];else for(var b in v[s])delete v[s][b]}},l.lang.Class.prototype.dispatchEvent=function(s,f){l.lang.isString(s)&&(s=new l.lang.Event(s)),!this.__listeners&&(this.__listeners={}),f=f||{};for(var v in f)s[v]=f[v];var v,b=this.__listeners,x=s.type;if(s.target=s.target||this,s.currentTarget=this,x.indexOf("on")!=0&&(x="on"+x),l.lang.isFunction(this[x])&&this[x].apply(this,arguments),typeof b[x]=="object")for(v in b[x])b[x][v].apply(this,arguments);return s.returnValue},l.lang.inherits=function(s,f,v){var b,x,P=s.prototype,C=new Function;C.prototype=f.prototype,x=s.prototype=new C;for(b in P)x[b]=P[b];s.prototype.constructor=s,s.superClass=f.prototype,typeof v=="string"&&(x._className=v)},l.inherits=l.lang.inherits;var k="http://api.map.baidu.com/library/TextIconOverlay/1.2/src/images/m",T="png",S=function(s,f,v){try{BMap}catch{throw Error("Baidu Map JS API is not ready yet!")}_.lang.inherits(S,BMap.Overlay,"TextIconOverlay"),this._position=s,this._text=f,this._options=v||{},this._styles=this._options.styles||[],!this._styles.length&&this._setupDefaultStyles()};return S.prototype._setupDefaultStyles=function(){for(var s=[53,56,66,78,90],f=0,v;v=s[f];f++)this._styles.push({url:k+f+"."+T,size:new BMap.Size(v,v)})},S.prototype.initialize=function(s){return this._map=s,this._domElement=document.createElement("div"),this._updateCss(),this._updateText(),this._updatePosition(),this._bind(),this._map.getPanes().markerMouseTarget.appendChild(this._domElement),this._domElement},S.prototype.draw=function(){this._map&&this._updatePosition()},S.prototype.getText=function(){return this._text},S.prototype.setText=function(s){s&&(!this._text||this._text.toString()!=s.toString())&&(this._text=s,this._updateText(),this._updateCss(),this._updatePosition())},S.prototype.getPosition=function(){return this._position},S.prototype.setPosition=function(s){s&&(!this._position||!this._position.equals(s))&&(this._position=s,this._updatePosition())},S.prototype.getStyleByText=function(s,f){var v=parseInt(s),b=parseInt(v/10);return b=Math.max(0,b),b=Math.min(b,f.length-1),f[b]},S.prototype._updateCss=function(){if(!!this._domElement){var s=this.getStyleByText(this._text,this._styles);this._domElement.style.cssText=this._buildCssText(s)}},S.prototype._updateText=function(){this._domElement&&(this._domElement.innerHTML=this._text)},S.prototype._updatePosition=function(){if(this._domElement&&this._position){var s=this._domElement.style,f=this._map.pointToOverlayPixel(this._position);f.x-=Math.ceil(parseInt(s.width)/2),f.y-=Math.ceil(parseInt(s.height)/2),s.left=f.x+"px",s.top=f.y+"px"}},S.prototype._buildCssText=function(s){var f=s.url,v=s.size,b=s.anchor,x=s.offset,P=s.textColor||"black",C=s.textSize||10,B=[];if(_.browser.ie<7)B.push('filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod=scale,src="'+f+'");');else{B.push("background-image:url("+f+");");var I="0 0";x instanceof BMap.Size&&(I=x.width+"px "+x.height+"px"),B.push("background-position:"+I+";")}return v instanceof BMap.Size&&(b instanceof BMap.Size?(b.height>0&&b.height<v.height&&B.push("height:"+(v.height-b.height)+"px; padding-top:"+b.height+"px;"),b.width>0&&b.width<v.width&&B.push("width:"+(v.width-b.width)+"px; padding-left:"+b.width+"px;")):(B.push("height:"+v.height+"px; line-height:"+v.height+"px;"),B.push("width:"+v.width+"px; text-align:center;"))),B.push("cursor:pointer; color:"+P+"; position:absolute; font-size:"+C+"px; font-family:Arial,sans-serif; font-weight:bold"),B.join("")},S.prototype._bind=function(){if(!this._domElement)return;var s=this,f=this._map,v=_.lang.Event;function b(x,P){var C=x.srcElement||x.target,B=x.clientX||x.pageX,I=x.clientY||x.pageY;if(x&&P&&B&&I&&C){var F=_.dom.getPosition(f.getContainer());P.pixel=new BMap.Pixel(B-F.left,I-F.top),P.point=f.pixelToPoint(P.pixel)}return P}_.event.on(this._domElement,"mouseover",function(x){s.dispatchEvent(b(x,new v("onmouseover")))}),_.event.on(this._domElement,"mouseout",function(x){s.dispatchEvent(b(x,new v("onmouseout")))}),_.event.on(this._domElement,"click",function(x){s.dispatchEvent(b(x,new v("onclick")))})},S})}),m=w&&typeof w=="object"&&"default"in w?w.default:w,i=function(a,c,y){c=r(c);var _=a.pointToPixel(c.getNorthEast()),l=a.pointToPixel(c.getSouthWest());_.x+=y,_.y-=y,l.x-=y,l.y+=y;var M=a.pixelToPoint(_),k=a.pixelToPoint(l);return new BMap.Bounds(k,M)},r=function(a){var c=e(a.getNorthEast().lng,-180,180),y=e(a.getSouthWest().lng,-180,180),_=e(a.getNorthEast().lat,-74,74),l=e(a.getSouthWest().lat,-74,74);return new BMap.Bounds(new BMap.Point(y,l),new BMap.Point(c,_))},e=function(a,c,y){return c&&(a=Math.max(a,c)),y&&(a=Math.min(a,y)),a},n=function(a){return Object.prototype.toString.call(a)==="[object Array]"},u=function(a,c){var y=-1;if(n(c)){if(c.indexOf)y=c.indexOf(a);else for(var _=0,l;l=c[_];_++)if(l===a){y=_;break}}return y},h=function(a,c){try{BMap}catch{throw Error("Baidu Map JS API is not ready yet!")}if(!!a){this._map=a,this._markers=[],this._clusters=[];var y=c||{};this._gridSize=y.gridSize||60,this._maxZoom=y.maxZoom||18,this._minClusterSize=y.minClusterSize||2,this._isAverageCenter=!1,y.isAverageCenter!=null&&(this._isAverageCenter=y.isAverageCenter),this._styles=y.styles||[];var _=this;this._map.addEventListener("zoomend",function(){_._redraw()}),this._map.addEventListener("moveend",function(){_._redraw()});var l=y.markers;n(l)&&this.addMarkers(l)}};h.prototype.addMarkers=function(a){if(!!a.length){for(var c=0,y=a.length;c<y;c++)this._pushMarkerTo(a[c]);this._createClusters()}},h.prototype._pushMarkerTo=function(a){var c=u(a,this._markers);c===-1&&(a.isInCluster=!1,this._markers.push(a))},h.prototype.addMarker=function(a){this._pushMarkerTo(a),this._createClusters()},h.prototype._createClusters=function(){var a=this._map.getBounds();if(!!a.getCenter())for(var c=i(this._map,a,this._gridSize),y=0,_;_=this._markers[y];y++)!_.isInCluster&&c.containsPoint(_.getPosition())&&this._addToClosestCluster(_)},h.prototype._addToClosestCluster=function(a){var c=4e6,y=null;a.getPosition();for(var _=0,l;l=this._clusters[_];_++){var M=l.getCenter();if(M){var k=this._map.getDistance(M,a.getPosition());k<c&&(c=k,y=l)}}if(y&&y.isMarkerInClusterBounds(a))y.addMarker(a);else{var l=new d(this);l.addMarker(a),this._clusters.push(l)}},h.prototype._clearLastClusters=function(){for(var a=0,c;c=this._clusters[a];a++)c.remove();this._clusters=[],this._removeMarkersFromCluster()},h.prototype._removeMarkersFromCluster=function(){for(var a=0,c;c=this._markers[a];a++)c.isInCluster=!1},h.prototype._removeMarkersFromMap=function(){for(var a=0,c;c=this._markers[a];a++){c.isInCluster=!1;var y=c.getLabel();this._map.removeOverlay(c),c.setLabel(y)}},h.prototype._removeMarker=function(a){var c=u(a,this._markers);return c===-1?!1:(this._map.removeOverlay(a),this._markers.splice(c,1),!0)},h.prototype.removeMarker=function(a){var c=this._removeMarker(a);return c&&(this._clearLastClusters(),this._createClusters()),c},h.prototype.removeMarkers=function(a){for(var c=!1,y=0;y<a.length;y++){var _=this._removeMarker(a[y]);c=c||_}return c&&(this._clearLastClusters(),this._createClusters()),c},h.prototype.clearMarkers=function(){this._clearLastClusters(),this._removeMarkersFromMap(),this._markers=[]},h.prototype._redraw=function(){this._clearLastClusters(),this._createClusters()},h.prototype.getGridSize=function(){return this._gridSize},h.prototype.setGridSize=function(a){this._gridSize=a,this._redraw()},h.prototype.getMaxZoom=function(){return this._maxZoom},h.prototype.setMaxZoom=function(a){this._maxZoom=a,this._redraw()},h.prototype.getStyles=function(){return this._styles},h.prototype.setStyles=function(a){this._styles=a,this._redraw()},h.prototype.getMinClusterSize=function(){return this._minClusterSize},h.prototype.setMinClusterSize=function(a){this._minClusterSize=a,this._redraw()},h.prototype.isAverageCenter=function(){return this._isAverageCenter},h.prototype.getMap=function(){return this._map},h.prototype.getMarkers=function(){return this._markers},h.prototype.getClustersCount=function(){for(var a=0,c=0,y;y=this._clusters[c];c++)y.isReal()&&a++;return a};function d(a){this._markerClusterer=a,this._map=a.getMap(),this._minClusterSize=a.getMinClusterSize(),this._isAverageCenter=a.isAverageCenter(),this._center=null,this._markers=[],this._gridBounds=null,this._isReal=!1,this._clusterMarker=new m(this._center,this._markers.length,{styles:this._markerClusterer.getStyles()})}return d.prototype.addMarker=function(a){if(this.isMarkerInCluster(a))return!1;if(!this._center)this._center=a.getPosition(),this.updateGridBounds();else if(this._isAverageCenter){var c=this._markers.length+1,y=(this._center.lat*(c-1)+a.getPosition().lat)/c,_=(this._center.lng*(c-1)+a.getPosition().lng)/c;this._center=new BMap.Point(_,y),this.updateGridBounds()}a.isInCluster=!0,this._markers.push(a);var l=this._markers.length;if(l<this._minClusterSize)return this._map.addOverlay(a),!0;if(l===this._minClusterSize)for(var M=0;M<l;M++){var k=this._markers[M].getLabel();this._markers[M].getMap()&&this._map.removeOverlay(this._markers[M]),this._markers[M].setLabel(k)}return this._map.addOverlay(this._clusterMarker),this._isReal=!0,this.updateClusterMarker(),!0},d.prototype.isMarkerInCluster=function(a){if(this._markers.indexOf)return this._markers.indexOf(a)!=-1;for(var c=0,y;y=this._markers[c];c++)if(y===a)return!0;return!1},d.prototype.isMarkerInClusterBounds=function(a){return this._gridBounds.containsPoint(a.getPosition())},d.prototype.isReal=function(a){return this._isReal},d.prototype.updateGridBounds=function(){var a=new BMap.Bounds(this._center,this._center);this._gridBounds=i(this._map,a,this._markerClusterer.getGridSize())},d.prototype.updateClusterMarker=function(){if(this._map.getZoom()>this._markerClusterer.getMaxZoom()){this._clusterMarker&&this._map.removeOverlay(this._clusterMarker);for(var a=0,c;c=this._markers[a];a++)this._map.addOverlay(c);return}if(this._markers.length<this._minClusterSize){this._clusterMarker.hide();return}this._clusterMarker.setPosition(this._center),this._clusterMarker.setText(this._markers.length),this._clusterMarker.addEventListener&&!this._clusterMarker._hasClickEvent&&this._clusterMarker.addEventListener("click",function(y){this._clusterMarker._hasClickEvent=!0,this._markers&&this._map.setViewport(this.getBounds())}.bind(this))},d.prototype.remove=function(){for(var a=0;this._markers[a];a++){var c=this._markers[a].getLabel();this._markers[a].getMap()&&this._map.removeOverlay(this._markers[a]),this._markers[a].setLabel(c)}this._map.removeOverlay(this._clusterMarker),this._markers.length=0,delete this._markers},d.prototype.getBounds=function(){for(var a=new BMap.Bounds(this._center,this._center),c=0,y;y=this._markers[c];c++)a.extend(y.getPosition());return a},d.prototype.getCenter=function(){return this._center},h})})(lt);lt.exports;var pt={exports:{}};(function(t,p){(function(o,g){t.exports=g()})($,function(){var o={};o.dom={},o.dom.g=function(i){return typeof i=="string"||i instanceof String?document.getElementById(i):i&&i.nodeName&&(i.nodeType==1||i.nodeType==9)?i:null},o.g=o.G=o.dom.g,o.lang=o.lang||{},o.lang.isString=function(i){return Object.prototype.toString.call(i)=="[object String]"},o.isString=o.lang.isString,o.dom._g=function(i){return o.lang.isString(i)?document.getElementById(i):i},o._g=o.dom._g,o.dom.getDocument=function(i){return i=o.dom.g(i),i.nodeType==9?i:i.ownerDocument||i.document},o.browser=o.browser||{},o.browser.ie=o.ie=/msie (\d+\.\d+)/i.test(navigator.userAgent)?document.documentMode||+RegExp.$1:void 0,o.dom.getComputedStyle=function(i,r){i=o.dom._g(i);var e=o.dom.getDocument(i),n;return e.defaultView&&e.defaultView.getComputedStyle&&(n=e.defaultView.getComputedStyle(i,null),n)?n[r]||n.getPropertyValue(r):""},o.dom._styleFixer=o.dom._styleFixer||{},o.dom._styleFilter=o.dom._styleFilter||[],o.dom._styleFilter.filter=function(i,r,e){for(var n=0,u=o.dom._styleFilter,h;h=u[n];n++)(h=h[e])&&(r=h(i,r));return r},o.string=o.string||{},o.string.toCamelCase=function(i){return i.indexOf("-")<0&&i.indexOf("_")<0?i:i.replace(/[-_][^-_]/g,function(r){return r.charAt(1).toUpperCase()})},o.dom.getStyle=function(i,r){var e=o.dom;i=e.g(i),r=o.string.toCamelCase(r);var n=i.style[r]||(i.currentStyle?i.currentStyle[r]:"")||e.getComputedStyle(i,r);if(!n){var u=e._styleFixer[r];u&&(n=u.get?u.get(i):o.dom.getStyle(i,u))}return(u=e._styleFilter)&&(n=u.filter(r,n,"get")),n},o.getStyle=o.dom.getStyle,o.dom._NAME_ATTRS=function(){var i={cellpadding:"cellPadding",cellspacing:"cellSpacing",colspan:"colSpan",rowspan:"rowSpan",valign:"vAlign",usemap:"useMap",frameborder:"frameBorder"};return o.browser.ie<8?(i.for="htmlFor",i.class="className"):(i.htmlFor="for",i.className="class"),i}(),o.dom.setAttr=function(i,r,e){return i=o.dom.g(i),r=="style"?i.style.cssText=e:(r=o.dom._NAME_ATTRS[r]||r,i.setAttribute(r,e)),i},o.setAttr=o.dom.setAttr,o.dom.setAttrs=function(i,r){i=o.dom.g(i);for(var e in r)o.dom.setAttr(i,e,r[e]);return i},o.setAttrs=o.dom.setAttrs,o.dom.create=function(i,r){var e=document.createElement(i),n=r||{};return o.dom.setAttrs(e,n)},o.object=o.object||{},o.extend=o.object.extend=function(i,r){for(var e in r)r.hasOwnProperty(e)&&(i[e]=r[e]);return i};var g=function(i,r,e){try{BMap}catch{throw Error("Baidu Map JS API is not ready yet!")}!r||r.length<1||(this._map=i,this._path=r,this.i=0,this._setTimeoutQuene=[],this._projection=this._map.getMapType().getProjection(),this._opts={icon:null,speed:4e3,defaultContent:"",showInfoWindow:!1},this._setOptions(e),this._rotation=0,!this._opts.icon instanceof BMap.Icon&&(this._opts.icon=defaultIcon))};g.prototype._setOptions=function(i){if(!!i)for(var r in i)i.hasOwnProperty(r)&&(this._opts[r]=i[r])},g.prototype.start=function(){var i=this,r=i._path.length;if(this._opts.onstart&&this._opts.onstart(i),i.i&&i.i<r-1)if(i._fromPause)i._fromStop||i._moveNext(++i.i);else return;else!i._marker&&i._addMarker(),i._timeoutFlag=setTimeout(function(){!i._overlay&&i._addInfoWin(),i._moveNext(i.i)},400);this._fromPause=!1,this._fromStop=!1},g.prototype.stop=function(){this.i=0,this._fromStop=!0,clearInterval(this._intervalFlag),this._clearTimeout();for(var i=0,r=this._opts.landmarkPois,e=r.length;i<e;i++)r[i].bShow=!1;this._opts.onstop&&this._opts.onstop(this)},g.prototype.pause=function(){clearInterval(this._intervalFlag),this._fromPause=!0,this._clearTimeout(),this._opts.onpause&&this._opts.onpause(this)},g.prototype.hideInfoWindow=function(){this._opts.showInfoWindow=!1,this._overlay&&(this._overlay._div.style.visibility="hidden")},g.prototype.showInfoWindow=function(){this._opts.showInfoWindow=!0,this._overlay&&(this._overlay._div.style.visibility="visible")},g.prototype.dispose=function(){clearInterval(this._intervalFlag),this._setTimeoutQuene&&this._clearTimeout(),this._map&&(this._map.removeOverlay(this._overlay),this._map.removeOverlay(this._marker))},o.object.extend(g.prototype,{_addMarker:function(i){this._marker&&(this.stop(),this._map.removeOverlay(this._marker),clearTimeout(this._timeoutFlag)),this._overlay&&this._map.removeOverlay(this._overlay);var r=new BMap.Marker(this._path[0]);this._opts.icon&&r.setIcon(this._opts.icon),this._map.addOverlay(r),r.setAnimation(BMAP_ANIMATION_DROP),this._marker=r},_addInfoWin:function(){var i=this;!w.prototype.initialize&&m();var r=new w(i._marker.getPosition(),i._opts.defaultContent);r.setRelatedClass(this),this._overlay=r,this._map.addOverlay(r),this._opts.showInfoWindow?this.showInfoWindow():this.hideInfoWindow()},_getMercator:function(i){return this._map.getMapType().getProjection().lngLatToPoint(i)},_getDistance:function(i,r){return Math.sqrt(Math.pow(i.x-r.x,2)+Math.pow(i.y-r.y,2))},_move:function(i,r,e){var n=this,u=0,h=10,d=this._opts.speed/(1e3/h),a=this._projection.lngLatToPoint(i),c=this._projection.lngLatToPoint(r),y=Math.round(n._getDistance(a,c)/d);if(y<1){n._moveNext(++n.i);return}n._intervalFlag=setInterval(function(){if(u>=y){if(clearInterval(n._intervalFlag),n.i>n._path.length)return;n._moveNext(++n.i)}else{u++;var _=e(a.x,c.x,u,y),l=e(a.y,c.y,u,y),M=n._projection.pointToLngLat(new BMap.Pixel(_,l));if(u==1){var k=null;n.i-1>=0&&(k=n._path[n.i-1]),n._opts.enableRotation==!0&&n.setRotation(k,i,r),n._opts.autoView&&(n._map.getBounds().containsPoint(M)||n._map.setCenter(M))}n._marker.setPosition(M),n._setInfoWin(M)}},h)},setRotation:function(i,r,e){var n=this,u=0;if(r=n._map.pointToPixel(r),e=n._map.pointToPixel(e),e.x!=r.x){var h=(e.y-r.y)/(e.x-r.x),d=Math.atan(h);u=d*360/(2*Math.PI),e.x<r.x?u=-u+90+90:u=-u,n._marker.setRotation(-u)}else{var a=e.y-r.y,c=0;a>0?c=-1:c=1,n._marker.setRotation(-c*90)}},linePixellength:function(i,r){return Math.sqrt(Math.abs(i.x-r.x)*Math.abs(i.x-r.x)+Math.abs(i.y-r.y)*Math.abs(i.y-r.y))},pointToPoint:function(i,r){return Math.abs(i.x-r.x)*Math.abs(i.x-r.x)+Math.abs(i.y-r.y)*Math.abs(i.y-r.y)},_moveNext:function(i){var r=this;i<this._path.length-1?r._move(r._path[i],r._path[i+1],r._tween.linear):r.stop()},_setInfoWin:function(i){var r=this;r._overlay.setPosition(i,r._marker.getIcon().size);var e=r._troughPointIndex(i);e!=-1?(clearInterval(r._intervalFlag),r._overlay.setHtml(r._opts.landmarkPois[e].html),r._overlay.setPosition(i,r._marker.getIcon().size),r._pauseForView(e)):r._overlay.setHtml(r._opts.defaultContent)},_pauseForView:function(i){var r=this,e=setTimeout(function(){r._moveNext(++r.i)},r._opts.landmarkPois[i].pauseTime*1e3);r._setTimeoutQuene.push(e)},_clearTimeout:function(){for(var i in this._setTimeoutQuene)clearTimeout(this._setTimeoutQuene[i]);this._setTimeoutQuene.length=0},_tween:{linear:function(i,r,e,n){var u=i,h=r-i,d=e,a=n;return h*d/a+u}},_troughPointIndex:function(i){for(var r=this._opts.landmarkPois,e,n=0,u=r.length;n<u;n++)if(!r[n].bShow&&(e=this._map.getDistance(new BMap.Point(r[n].lng,r[n].lat),i),e<10))return r[n].bShow=!0,n;return-1}});function w(i,r){this._point=i,this._html=r}function m(){w.prototype=new BMap.Overlay,w.prototype.initialize=function(i){var r=this._div=o.dom.create("div",{style:"border:solid 1px #ccc;width:auto;min-width:50px;text-align:center;position:absolute;background:#fff;color:#000;font-size:12px;border-radius: 10px;padding:5px;white-space: nowrap;"});return r.innerHTML=this._html,i.getPanes().floatPane.appendChild(r),this._map=i,r},w.prototype.draw=function(){this.setPosition(this.lushuMain._marker.getPosition(),this.lushuMain._marker.getIcon().size)},o.object.extend(w.prototype,{setPosition:function(i,r){var e=this._map.pointToOverlayPixel(i),n=o.dom.getStyle(this._div,"width"),u=o.dom.getStyle(this._div,"height"),h=parseInt(this._div.clientWidth||n,10);parseInt(this._div.clientHeight||u,10),this._div.style.left=e.x-h/2+"px",this._div.style.bottom=-(e.y-r.height)+"px"},setHtml:function(i){this._div.innerHTML=i},setRelatedClass:function(i){this.lushuMain=i}})}return g})})(pt);pt.exports;var ht={exports:{}};(function(t,p){(function(o,g){t.exports=g()})($,function(){function o(m,i,r){var e,n,u=m.prototype,h=new Function;h.prototype=i.prototype,n=m.prototype=new h;for(e in u)n[e]=u[e];m.prototype.constructor=m,m.superClass=i.prototype,typeof r=="string"&&(n._className=r)}var g=function(){var m=function(n){var u={data:[],heatmap:n};this.max=1,this.get=function(h){return u[h]},this.set=function(h,d){u[h]=d}};m.prototype={addDataPoint:function(e,n){if(!(e<0||n<0)){var u=this,h=u.get("heatmap"),d=u.get("data");if(d[e]||(d[e]=[]),d[e][n]||(d[e][n]=0),d[e][n]+=arguments.length<3?1:arguments[2],u.set("data",d),u.max<d[e][n]){h.get("actx").clearRect(0,0,h.get("width"),h.get("height")),u.setDataSet({max:d[e][n],data:d},!0);return}h.drawAlpha(e,n,d[e][n],!0)}},setDataSet:function(e,n){var u=this,h=u.get("heatmap"),d=[],a=e.data,c=a.length;if(h.clear(),this.max=e.max,h.get("legend")&&h.get("legend").update(e.max),n!=null&&n){for(var y in a)if(y!==void 0)for(var _ in a[y])_!==void 0&&h.drawAlpha(y,_,a[y][_],!1)}else for(;c--;){var l=a[c];h.drawAlpha(l.x,l.y,l.count,!1),d[l.x]||(d[l.x]=[]),d[l.x][l.y]||(d[l.x][l.y]=0),d[l.x][l.y]=l.count}h.colorize(),this.set("data",a)},exportDataSet:function(){var e=this,n=e.get("data"),u=[];for(var h in n)if(h!==void 0)for(var d in n[h])d!==void 0&&u.push({x:parseInt(h,10),y:parseInt(d,10),count:n[h][d]});return{max:e.max,data:u}},generateRandomDataSet:function(e){var n=this.get("heatmap"),u=n.get("width"),h=n.get("height"),d={},a=Math.floor(Math.random()*1e3+1);d.max=a;for(var c=[];e--;)c.push({x:Math.floor(Math.random()*u+1),y:Math.floor(Math.random()*h+1),count:Math.floor(Math.random()*a+1)});d.data=c,this.setDataSet(d)}};var i=function(n){this.config=n;var u={element:null,labelsEl:null,gradientCfg:null,ctx:null};this.get=function(h){return u[h]},this.set=function(h,d){u[h]=d},this.init()};i.prototype={init:function(){var e=this,n=e.config,u=n.title||"Legend",h=n.position,d=n.offset||10;n.gradient;var a=document.createElement("ul"),c,y,_="";e.processGradientObject(),h.indexOf("t")>-1?_+="top:"+d+"px;":_+="bottom:"+d+"px;",h.indexOf("l")>-1?_+="left:"+d+"px;":_+="right:"+d+"px;",c=document.createElement("div"),c.style.cssText="border-radius:5px;position:absolute;"+_+"font-family:Helvetica; width:256px;z-index:10000000000; background:rgba(255,255,255,1);padding:10px;border:1px solid black;margin:0;",c.innerHTML="<h3 style='padding:0;margin:0;text-align:center;font-size:16px;'>"+u+"</h3>",a.style.cssText="position:relative;font-size:12px;display:block;list-style:none;list-style-type:none;margin:0;height:15px;",y=document.createElement("div"),y.style.cssText=["position:relative;display:block;width:256px;height:15px;border-bottom:1px solid black; background-image:url(",e.createGradientImage(),");"].join(""),c.appendChild(a),c.appendChild(y),e.set("element",c),e.set("labelsEl",a),e.update(1)},processGradientObject:function(){var e=this,n=this.config.gradient,u=[];for(var h in n)n.hasOwnProperty(h)&&u.push({stop:h,value:n[h]});u.sort(function(d,a){return d.stop-a.stop}),u.unshift({stop:0,value:"rgba(0,0,0,0)"}),e.set("gradientArr",u)},createGradientImage:function(){var e=this,n=e.get("gradientArr"),u=n.length,h=document.createElement("canvas"),d=h.getContext("2d"),a;h.width="256",h.height="15",a=d.createLinearGradient(0,5,256,10);for(var c=0;c<u;c++)a.addColorStop(1/(u-1)*c,n[c].value);d.fillStyle=a,d.fillRect(0,5,256,10),d.strokeStyle="black",d.beginPath();for(var c=0;c<u;c++)d.moveTo((1/(u-1)*c*256>>0)+.5,0),d.lineTo((1/(u-1)*c*256>>0)+.5,c==0?15:5);return d.moveTo(255.5,0),d.lineTo(255.5,15),d.moveTo(255.5,4.5),d.lineTo(0,4.5),d.stroke(),e.set("ctx",d),h.toDataURL()},getElement:function(){return this.get("element")},update:function(e){for(var n=this,u=n.get("gradientArr"),h=n.get("ctx"),d=n.get("labelsEl"),a,c="",y,_=0;_<u.length;_++)a=e*u[_].stop>>0,y=h.measureText(a).width/2>>0,_==0&&(y=0),_==u.length-1&&(y*=2),c+='<li style="position:absolute;left:'+(((1/(u.length-1)*_*256||0)>>0)-y+.5)+'px">'+a+"</li>";d.innerHTML=c}};var r=function(n){var u={radius:40,element:{},canvas:{},acanvas:{},ctx:{},actx:{},legend:null,visible:!0,width:0,height:0,max:!1,gradient:!1,opacity:180,premultiplyAlpha:!1,bounds:{l:1e3,r:0,t:1e3,b:0},debug:!1};this.store=new m(this),this.get=function(h){return u[h]},this.set=function(h,d){u[h]=d},this.configure(n),this.init()};return r.prototype={configure:function(e){var n=this;if(n.set("radius",e.radius||40),n.set("element",e.element instanceof Object?e.element:document.getElementById(e.element)),n.set("visible",e.visible!=null?e.visible:!0),n.set("max",e.max||!1),n.set("gradient",e.gradient||{.45:"rgb(0,0,255)",.55:"rgb(0,255,255)",.65:"rgb(0,255,0)",.95:"yellow",1:"rgb(255,0,0)"}),n.set("opacity",parseInt(255/(100/e.opacity),10)||180),n.set("width",e.width||0),n.set("height",e.height||0),n.set("debug",e.debug),e.legend){var u=e.legend;u.gradient=n.get("gradient"),n.set("legend",new i(u))}},resize:function(){var e=this,n=e.get("element"),u=e.get("canvas"),h=e.get("acanvas");u.width=h.width=e.get("width")||n.style.width.replace(/px/,"")||e.getWidth(n),this.set("width",u.width),u.height=h.height=e.get("height")||n.style.height.replace(/px/,"")||e.getHeight(n),this.set("height",u.height)},init:function(){var e=this,n=document.createElement("canvas"),u=document.createElement("canvas"),h=n.getContext("2d"),d=u.getContext("2d"),a=e.get("element");e.initColorPalette(),e.set("canvas",n),e.set("ctx",h),e.set("acanvas",u),e.set("actx",d),e.resize(),n.style.cssText=u.style.cssText="position:absolute;top:0;left:0;z-index:10000000;",e.get("visible")||(n.style.display="none"),a.appendChild(n),e.get("legend")&&a.appendChild(e.get("legend").getElement()),e.get("debug")&&document.body.appendChild(u),d.shadowOffsetX=15e3,d.shadowOffsetY=15e3,d.shadowBlur=15},initColorPalette:function(){var e=this,n=document.createElement("canvas"),u=e.get("gradient"),h,d,a;n.width="1",n.height="256",h=n.getContext("2d"),d=h.createLinearGradient(0,0,1,256),a=h.getImageData(0,0,1,1),a.data[0]=a.data[3]=64,a.data[1]=a.data[2]=0,h.putImageData(a,0,0),a=h.getImageData(0,0,1,1),e.set("premultiplyAlpha",a.data[0]<60||a.data[0]>70);for(var c in u)d.addColorStop(c,u[c]);h.fillStyle=d,h.fillRect(0,0,1,256),e.set("gradient",h.getImageData(0,0,1,256).data)},getWidth:function(e){var n=e.offsetWidth;return e.style.paddingLeft&&(n+=e.style.paddingLeft),e.style.paddingRight&&(n+=e.style.paddingRight),n},getHeight:function(e){var n=e.offsetHeight;return e.style.paddingTop&&(n+=e.style.paddingTop),e.style.paddingBottom&&(n+=e.style.paddingBottom),n},colorize:function(e,n){var u=this,h=u.get("width"),d=u.get("radius"),a=u.get("height"),c=u.get("actx"),y=u.get("ctx"),_=d*3,l=u.get("premultiplyAlpha"),M=u.get("gradient"),k=u.get("opacity"),T=u.get("bounds"),S,s,f,v,b,x,P,C,B;e!=null&&n!=null?(e+_>h&&(e=h-_),e<0&&(e=0),n<0&&(n=0),n+_>a&&(n=a-_),S=e,s=n,v=e+_,f=n+_):(T.l<0?S=0:S=T.l,T.r>h?v=h:v=T.r,T.t<0?s=0:s=T.t,T.b>a?f=a:f=T.b),b=c.getImageData(S,s,v-S,f-s),x=b.data.length;for(var I=3;I<x;I+=4)P=b.data[I],C=P*4,C&&(B=P<k?P:k,b.data[I-3]=M[C],b.data[I-2]=M[C+1],b.data[I-1]=M[C+2],l&&(b.data[I-3]/=255/B,b.data[I-2]/=255/B,b.data[I-1]/=255/B),b.data[I]=B);y.putImageData(b,S,s)},drawAlpha:function(e,n,u,h){var d=this,a=d.get("radius"),c=d.get("actx");d.get("max");var y=d.get("bounds"),_=e-1.5*a>>0,l=n-1.5*a>>0,M=e+1.5*a>>0,k=n+1.5*a>>0;c.shadowColor="rgba(0,0,0,"+(u?u/d.store.max:"0.1")+")",c.shadowOffsetX=15e3,c.shadowOffsetY=15e3,c.shadowBlur=15,c.beginPath(),c.arc(e-15e3,n-15e3,a,0,Math.PI*2,!0),c.closePath(),c.fill(),h?d.colorize(_,l):(_<y.l&&(y.l=_),l<y.t&&(y.t=l),M>y.r&&(y.r=M),k>y.b&&(y.b=k))},toggleDisplay:function(){var e=this,n=e.get("visible"),u=e.get("canvas");n?u.style.display="none":u.style.display="block",e.set("visible",!n)},getImageData:function(){return this.get("canvas").toDataURL()},clear:function(){var e=this,n=e.get("width"),u=e.get("height");e.store.set("data",[]),e.get("ctx").clearRect(0,0,n,u),e.get("actx").clearRect(0,0,n,u)},cleanup:function(){var e=this;e.get("element").removeChild(e.get("canvas"))}},{create:function(e){return new r(e)},util:{mousePosition:function(e){var n,u;if(e.layerX?(n=e.layerX,u=e.layerY):e.offsetX&&(n=e.offsetX,u=e.offsetY),typeof n!="undefined")return[n,u]}}}}(),w=function(m){try{BMap}catch{throw Error("Baidu Map JS API is not ready yet!")}if(!w._isExtended){w._isExtended=!0,o(w,BMap.Overlay,"HeatmapOverlay");var i=new w(m);this.__proto__=i.__proto__}this.conf=m,this.heatmap=null,this.latlngs=[],this.bounds=null,this._moveendHandler=this._moveendHandler.bind(this)};return w.prototype.initialize=function(m){this._map=m;var i=document.createElement("div");return i.style.position="absolute",i.style.top=0,i.style.left=0,i.style.border=0,i.style.width=this._map.getSize().width+"px",i.style.height=this._map.getSize().height+"px",this.conf.element=i,m.getPanes().mapPane.appendChild(i),this.heatmap=g.create(this.conf),this._div=i,i},w.prototype.draw=function(){var m=this._map.getBounds();if(!m.equals(this.bounds)){this.bounds=m;var i=this._map.pointToOverlayPixel(m.getNorthEast()),r=this._map.pointToOverlayPixel(m.getSouthWest());if(!(!i||!r)){var e=i.y,n=r.x,u=r.y-i.y,h=i.x-r.x;if(this.conf.element.style.left=n+"px",this.conf.element.style.top=e+"px",this.conf.element.style.width=h+"px",this.conf.element.style.height=u+"px",this.heatmap.store.get("heatmap").resize(),this.latlngs.length>0){this.heatmap.clear();for(var d=this.latlngs.length,a={max:this.heatmap.store.max,data:[]};d--;){var c=this.latlngs[d].latlng;if(!!m.containsPoint(c)){var y=this._map.pointToOverlayPixel(c),_=new BMap.Pixel(y.x-n,y.y-e),l=this.pixelTransform(_);a.data.push({x:l.x,y:l.y,count:this.latlngs[d].c})}}this.heatmap.store.setDataSet(a)}}}},w.prototype.pixelTransform=function(m){for(var i=this.heatmap.get("width"),r=this.heatmap.get("height");m.x<0;)m.x+=i;for(;m.x>i;)m.x-=i;for(;m.y<0;)m.y+=r;for(;m.y>r;)m.y-=r;return m.x=m.x>>0,m.y=m.y>>0,m},w.prototype._moveendHandler=function(m){this.setDataSet(this._data),delete this._data,this._map.removeEventListener("moveend",this._moveendHandler)},w.prototype.setDataSet=function(m){if(!!this._map){var i=this._map.getBounds(),r=this._map.pointToOverlayPixel(i.getNorthEast()),e=this._map.pointToOverlayPixel(i.getSouthWest());(!r||!e)&&(this._data=m,this._map.addEventListener("moveend",this._moveendHandler));var n={max:m.max,data:[]},u=m.data,h=u.length;for(this.latlngs=[];h--;){var d=new BMap.Point(u[h].lng,u[h].lat);if(this.latlngs.push({latlng:d,c:u[h].count}),!!i.containsPoint(d)){var a=this._map.pointToOverlayPixel(d),c=this._map.pointToOverlayPixel(i.getSouthWest()).x,y=this._map.pointToOverlayPixel(i.getNorthEast()).y,_=new BMap.Pixel(a.x-c,a.y-y),l=this.pixelTransform(_);n.data.push({x:l.x,y:l.y,count:u[h].count})}}this.heatmap.clear(),this.heatmap.store.setDataSet(n)}},w.prototype.addDataPoint=function(m,i,r){var e=new BMap.Point(m,i),n=this.pixelTransform(this._map.pointToOverlayPixel(e));this.heatmap.store.addDataPoint(n.x,n.y,r),this.latlngs.push({latlng:e,c:r})},w.prototype.toggle=function(){this.heatmap.toggleDisplay()},w})})(ht);ht.exports;var ut={exports:{}};(function(t,p){(function(o,g){t.exports=g()})($,function(){function o(m,i){try{BMap}catch{throw Error("Baidu Map JS API is not ready yet!")}var r=g(m),e=new BMap.Polyline(r,i);return e.addEventListener("lineupdate",function(){this.isEditing&&this.enableEditing()}),e.cornerPoints=m,e.editMarkers=[],e.enableEditing=function(){var n=this;if(n.map){n.disableEditing();for(var u=0;u<n.cornerPoints.length;u++){var h=new BMap.Marker(n.cornerPoints[u],{icon:new BMap.Icon("http://api.map.baidu.com/library/CurveLine/1.5/src/circle.png",new BMap.Size(16,16)),enableDragging:!0,raiseOnDrag:!0});h.addEventListener("dragend",function(){n.cornerPoints.length=0;for(var d=0;d<n.editMarkers.length;d++)n.cornerPoints.push(n.editMarkers[d].getPosition());var a=g(n.cornerPoints);n.setPath(a)}),h.index=u,n.editMarkers.push(h),n.map.addOverlay(h)}}n.isEditing=!0},e.disableEditing=function(){this.isEditing=!1;for(var n=0;n<this.editMarkers.length;n++)this.map.removeOverlay(this.editMarkers[n]),this.editMarkers[n]=null;this.editMarkers.length=0},e.getPath=function(){return r},e}function g(m){for(var i=[],r=0;r<m.length-1;r++){var e=w(m[r],m[r+1]);e&&e.length>0&&(i=i.concat(e))}return i}function w(m,i){var r=[];if(!m||!i||!(m instanceof BMap.Point)||!(i instanceof BMap.Point))return null;var e=function(v){return 1-2*v+v*v},n=function(v){return 2*v-2*v*v},u=function(v){return v*v},h=30,d,a,c,y,_,l,M=0,k=0;if(typeof i=="undefined"){typeof r!="undefined"&&(r=[]);return}var T=parseFloat(m.lat),S=parseFloat(i.lat),s=parseFloat(m.lng),f=parseFloat(i.lng);for(f>s&&parseFloat(f-s)>180&&s<0&&(s=parseFloat(180+180+s)),s>f&&parseFloat(s-f)>180&&f<0&&(f=parseFloat(180+180+f)),l=0,S==T?(d=0,a=s-f):f==s?(d=Math.PI/2,a=T-S):(d=Math.atan((S-T)/(f-s)),a=(S-T)/Math.sin(d)),l==0&&(l=d+Math.PI/5),c=a/2,_=c*Math.cos(l)+s,y=c*Math.sin(l)+T,M=0;M<h+1;M++)r.push(new BMap.Point(s*e(k)+_*n(k)+f*u(k),T*e(k)+y*n(k)+S*u(k))),k=k+1/h;return r}return o})})(ut);ut.exports;const Nt=vt({name:"map",components:{BaiduMap:It,BmOverlay:Zt,BmGround:$t,BmMapType:At,BmNavigation:zt,BmPolygon:Lt,BmLabel:Dt},setup(){const t=tt({polygonPath3:[],polygonPath5:[],polygonPath6:[],polygonPath7:[],polygonPath8:[],polygonPath9:[]});_t(()=>{function w(){const m=document.documentElement.clientWidth/1920;document.documentElement.style.fontSize=38*Math.min(m,2)+"px",console.log("\u5207\u6362\u5C3A\u5BF8>>",document.documentElement.style.fontSize)}w(),window.onresize=()=>{w(),console.log("\u6267\u884C\u5207\u6362")}});const p=tt({});return q({initMap:()=>{t.polygonPath3=[{lng:85.127634,lat:45.604176},{lng:85.127331,lat:45.603931},{lng:85.127885,lat:45.603602},{lng:85.128178,lat:45.603853}],t.polygonPath5=[{lng:85.126928,lat:45.603873},{lng:85.126253,lat:45.603399},{lng:85.126923,lat:45.602951},{lng:85.12758,lat:45.603464}],t.polygonPath6=[{lng:85.12394,lat:45.604109},{lng:85.123651,lat:45.603782},{lng:85.124211,lat:45.603426},{lng:85.124538,lat:45.603693}],t.polygonPath7=[{lng:85.125489,lat:45.603525},{lng:85.124729,lat:45.603024},{lng:85.125304,lat:45.602703},{lng:85.125988,lat:45.603217}],t.polygonPath8=[{lng:85.12615,lat:45.603173},{lng:85.125339,lat:45.60258},{lng:85.125847,lat:45.602235},{lng:85.1267,lat:45.602838}],t.polygonPath9=[{lng:85.126805,lat:45.602739},{lng:85.125929,lat:45.602127},{lng:85.126505,lat:45.601715},{lng:85.127309,lat:45.602365}],console.log(p,"map")},map:p},bt(t))}});function Wt(t,p,o,g,w,m){const i=A("bm-ground"),r=A("bm-polygon"),e=A("bm-label"),n=A("bm-overlay"),u=A("bm-map-type"),h=A("baidu-map");return H(),wt(h,{class:"bigMap",ref:"map",ak:"Z4tYehNEVsdeMw3Mjspdn77pV50ffc8t",v:"3.0",type:"API","scroll-wheel-zoom":!0,center:{lng:85.126263,lat:45.603813},zoom:17,"map-type":"BMAP_SATELLITE_MAP",onReady:t.initMap},{default:et(()=>[O(i,{class:"picBg",bounds:{ne:{lng:85.129048,lat:45.60579},sw:{lng:85.122984,lat:45.592812}},imageURL:"/bigMap2.png",opacity:"1",displayOnMaxLevel:18,zIndex:1},null,8,["bounds"]),O(n,{pane:"mapPane",class:"polys",onDraw:t.initMap},{default:et(()=>[O(r,{path:t.polygonPath3,"stroke-color":"yellow",fillColor:"yellow",fillOpacity:1,"stroke-weight":2,zIndex:2},null,8,["path"]),O(e,{content:"1",position:{lng:85.127634,lat:45.604176},labelStyle:{color:"#000000",fontSize:"24px"},title:"1",zIndex:3},null,8,["position"]),O(r,{path:t.polygonPath5,"stroke-color":"#01007f",fillColor:"#01007f",fillOpacity:1,"stroke-weight":2,zIndex:2},null,8,["path"]),O(e,{content:"2",position:{lng:85.126928,lat:45.603873},labelStyle:{color:"#000000",fontSize:"24px"},title:"2",zIndex:3},null,8,["position"]),O(r,{path:t.polygonPath6,"stroke-color":"#ff00fa",fillColor:"#ff00fa",fillOpacity:1,"stroke-weight":2,zIndex:2},null,8,["path"]),O(e,{content:"3",position:{lng:85.12394,lat:45.604109},labelStyle:{color:"#000000",fontSize:"24px"},title:"3",zIndex:3},null,8,["position"]),O(r,{path:t.polygonPath7,"stroke-color":"#02ff02",fillColor:"#02ff02",fillOpacity:1,"stroke-weight":2,zIndex:2},null,8,["path"]),O(e,{content:"4",position:{lng:85.125489,lat:45.603525},labelStyle:{color:"#000000",fontSize:"24px"},title:"4",zIndex:3},null,8,["position"]),O(r,{path:t.polygonPath8,"stroke-color":"#028002",fillColor:"#028002",fillOpacity:1,"stroke-weight":2,zIndex:2},null,8,["path"]),O(e,{content:"5",position:{lng:85.12615,lat:45.603173},labelStyle:{color:"#000000",fontSize:"24px"},title:"5",zIndex:3},null,8,["position"]),O(r,{path:t.polygonPath9,"stroke-color":"#008081",fillColor:"#008081",fillOpacity:1,"stroke-weight":2,zIndex:2},null,8,["path"]),O(e,{content:"6",position:{lng:85.126805,lat:45.602739},labelStyle:{color:"#000000",fontSize:"24px"},title:"6",zIndex:3},null,8,["position"])]),_:1},8,["onDraw"]),O(u,{"map-types":["BMAP_SATELLITE_MAP","BMAP_NORMAL_MAP"],anchor:"BMAP_ANCHOR_TOP_LEFT"})]),_:1},8,["center","onReady"])}var jt=xt(Nt,[["render",Wt],["__scopeId","data-v-4edf26e8"]]),Xt=Object.freeze(Object.defineProperty({__proto__:null,default:jt},Symbol.toStringTag,{value:"Module"}));export{It as B,jt as M,At as _,zt as a,Lt as b,Xt as m};
|