You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
2 lines
93 KiB
2 lines
93 KiB
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("vue")):"function"==typeof define&&define.amd?define("VueAMap",["vue"],e):"object"==typeof exports?exports.VueAMap=e(require("vue")):t.VueAMap=e(t.Vue)}(window,(function(t){return function(t){var e={};function n(o){if(e[o])return e[o].exports;var r=e[o]={i:o,l:!1,exports:{}};return t[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=t,n.c=e,n.d=function(t,e,o){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:o})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(n.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(o,r,function(e){return t[e]}.bind(null,r));return o},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="./",n(n.s=18)}([function(t,e,n){"use strict";var o=n(3),r=n.n(o),i=n(7),a=n(6);e.a={inject:{parentInstance:{default:null}},props:{visible:{type:Boolean,default:!0},zIndex:{type:Number},extraOptions:{type:Object}},data:function(){return{unwatchFns:[],handlers:{visible:function(t){this.show&&this.hide&&(!1===t?this.hide():this.show())},zIndex:function(t){this.setzIndex&&this.setzIndex(t)}},needInitComponents:[],isDestroy:!1}},mounted:function(){this.parentInstance&&(this.parentInstance.$amapComponent?this.register():this.parentInstance.addChildComponent(this))},beforeDestroy:function(){this.$amapComponent&&(this.unregisterEvents(),this.unwatchFns.forEach((function(t){return t()})),this.unwatchFns=[],this.destroyComponent(),this.$amapComponent=null,this.$parentComponent=null,this.isDestroy=!0)},methods:{addChildComponent:function(t){this.needInitComponents.push(t)},createChildren:function(){for(;this.needInitComponents.length>0;)this.needInitComponents[0].register(),this.needInitComponents.splice(0,1)},getHandlerFun:function(t){return this.handlers&&this.handlers[t]?this.handlers[t]:this.$amapComponent["set"+r()(t)]},convertProps:function(){var t=this,e={},n=this.$options.propsData,o=void 0===n?{}:n,r=this.propsRedirect;return this.extraOptions&&Object.assign(e,this.extraOptions),Object.keys(o).reduce((function(n,i){var a=i,p=t.convertSignalProp(a,o[a]);return void 0===p||(r&&r[i]&&(a=r[a]),e[a]=p),n}),e)},convertSignalProp:function(t,e){if(this.converters&&this.converters[t])return this.converters[t].call(this,e);var n=i.a[t];return n?n(e):e},registerEvents:function(){var t=this,e=this.$listeners;Object.keys(e).forEach((function(n){a.a.addListener(t.$amapComponent,n,e[n])}))},unregisterEvents:function(){var t=this,e=this.$listeners;Object.keys(e).forEach((function(n){a.a.removeListener(t.$amapComponent,n,e[n])}))},setPropWatchers:function(){var t=this,e=this.propsRedirect,n=this.$options.propsData,o=void 0===n?{}:n;Object.keys(o).forEach((function(n){var r=n;e&&e[n]&&(r=e[n]);var i=t.getHandlerFun(r);if(i){var a={deep:!1};"[object Object]"===Object.prototype.toString.call(o[n])&&(a.deep=!0);var p=t.$watch(n,(function(e){i.call(t.$amapComponent,t.convertSignalProp(n,e))}),a);t.unwatchFns.push(p)}}))},initProps:function(){var t=this;["editable","visible","zooms"].forEach((function(e){if(void 0!==t[e]){var n=t.getHandlerFun(e);n&&n.call(t.$amapComponent,t.convertSignalProp(e,t[e]))}}))},printReactiveProp:function(){var t=this;Object.keys(this._props).forEach((function(e){t.$amapComponent["set"+r()(e)]&&console.log(e)}))},register:function(){var t=this;this.parentInstance&&!this.$parentComponent&&(this.$parentComponent=this.parentInstance.$amapComponent);var e=this.__initComponent&&this.__initComponent(this.convertProps());e&&e.then?e.then((function(e){return t.registerRest(e)})):this.registerRest(e)},registerRest:function(t){var e=this;!this.$amapComponent&&t&&(this.$amapComponent=t),this.$amapComponent&&(this.registerEvents(),this.initProps(),this.setPropWatchers(),this.$nextTick((function(){e.createChildren()}))),this.$listeners.init&&this.$emit("init",this.$amapComponent,this)},$$getInstance:function(){return this.$amapComponent},destroyComponent:function(){this.$amapComponent.setMap&&this.$amapComponent.setMap(null),this.$amapComponent.close&&this.$amapComponent.close(),this.$amapComponent.editor&&this.$amapComponent.editor.close()}}}},function(t,e,n){"use strict";function o(t,e,n,o,r,i,a,p){var s,l="function"==typeof t?t.options:t;if(e&&(l.render=e,l.staticRenderFns=n,l._compiled=!0),o&&(l.functional=!0),i&&(l._scopeId="data-v-"+i),a?(s=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),r&&r.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},l._ssrRegister=s):r&&(s=p?function(){r.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:r),s)if(l.functional){l._injectStyles=s;var u=l.render;l.render=function(t,e){return s.call(e),u(t,e)}}else{var c=l.beforeCreate;l.beforeCreate=c?[].concat(c,s):[s]}return{exports:t,options:l}}n.d(e,"a",(function(){return o}))},function(t,e,n){"use strict";var o=n(4),r="object"==typeof self&&self&&self.Object===Object&&self,i=o.a||r||Function("return this")();e.a=i},function(t,e,n){"use strict";var o=n(12);t.exports=function(){var t=o.apply(o,arguments);return t.charAt(0).toUpperCase()+t.slice(1)}},function(t,e,n){"use strict";(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.a=n}).call(this,n(13))},function(t,e,n){"use strict";(function(t){var o=n(2),r=n(10),i="object"==typeof exports&&exports&&!exports.nodeType&&exports,a=i&&"object"==typeof t&&t&&!t.nodeType&&t,p=a&&a.exports===i?o.a.Buffer:void 0,s=(p?p.isBuffer:void 0)||r.a;e.a=s}).call(this,n(8)(t))},function(t,e,n){"use strict";var o=void 0,r=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._listener=new Map}return t.prototype.addListener=function(t,e,n,o){if(!AMap)throw new Error("please wait for Map API load");if(t.on){t.on(e,n,o),this._listener.get(t)||this._listener.set(t,{});var r=this._listener.get(t);r[e]||(r[e]=[]),r[e].push(n)}},t.prototype.removeListener=function(t,e,n){if(!AMap)throw new Error("please wait for Map API load");if(t.off&&this._listener.get(t)&&this._listener.get(t)[e]){var o=this._listener.get(t)[e];if(n){var r=o.indexOf(n);t.off(o[r]),o.splice(r,1)}else o.forEach((function(e){t.off(e)})),this._listener.get(t)[e]=[]}},t.prototype.addListenerOnce=function(t,e,n,o){return t.on(e,n,o,!0)},t.prototype.trigger=function(t,e,n){return t.emit(e,n)},t.prototype.clearListeners=function(t){var e=this._listener.get(t);e&&Object.keys(e).map((function(e){t.clearEvents(e)}))},t}();o=o||new r,e.a=o},function(t,e,n){"use strict";function o(t){return new AMap.LngLat(t[0],t[1])}n.d(e,"b",(function(){return o})),n.d(e,"a",(function(){return r}));var r={}},function(t,e){t.exports=function(t){if(!t.webpackPolyfill){var e=Object.create(t);e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),Object.defineProperty(e,"exports",{enumerable:!0}),e.webpackPolyfill=1}return e}},function(t,e,n){"use strict";(function(t){var o=n(4),r="object"==typeof exports&&exports&&!exports.nodeType&&exports,i=r&&"object"==typeof t&&t&&!t.nodeType&&t,a=i&&i.exports===r&&o.a.process,p=function(){try{var t=i&&i.require&&i.require("util").types;return t||a&&a.binding&&a.binding("util")}catch(t){}}();e.a=p}).call(this,n(8)(t))},function(t,e,n){"use strict";e.a=function(){return!1}},function(t,e,n){"use strict";(function(t){var o=n(2),r="object"==typeof exports&&exports&&!exports.nodeType&&exports,i=r&&"object"==typeof t&&t&&!t.nodeType&&t,a=i&&i.exports===r?o.a.Buffer:void 0,p=a?a.allocUnsafe:void 0;e.a=function(t,e){if(e)return t.slice();var n=t.length,o=p?p(n):new t.constructor(n);return t.copy(o),o}}).call(this,n(8)(t))},function(t,e,n){"use strict";t.exports=function(){var t=[].map.call(arguments,(function(t){return t.trim()})).filter((function(t){return t.length})).join("-");return t.length?1!==t.length&&/[_.\- ]+/.test(t)?t.replace(/^[_.\- ]+/,"").toLowerCase().replace(/[_.\- ]+(\w|$)/g,(function(t,e){return e.toUpperCase()})):t[0]===t[0].toLowerCase()&&t.slice(1)!==t.slice(1).toLowerCase()?t:t.toLowerCase():""}},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},,function(e,n){e.exports=t},function(t,e,n){"use strict";t.exports=function(){function t(t){var o=[];return t.AMapUI&&o.push(e(t.AMapUI)),t.Loca&&o.push(n(t.Loca)),Promise.all(o)}function e(t){return new Promise((function(e,n){var r=[];if(t.plugins)for(var s=0;s<t.plugins.length;s+=1)-1==i.AMapUI.plugins.indexOf(t.plugins[s])&&r.push(t.plugins[s]);if(a.AMapUI===o.failed)n("前次请求 AMapUI 失败");else if(a.AMapUI===o.notload){a.AMapUI=o.loading,i.AMapUI.version=t.version||i.AMapUI.version,s=i.AMapUI.version;var l=document.body||document.head,u=document.createElement("script");u.type="text/javascript",u.src="https://webapi.amap.com/ui/"+s+"/main.js",u.onerror=function(t){a.AMapUI=o.failed,n("请求 AMapUI 失败")},u.onload=function(){if(a.AMapUI=o.loaded,r.length)window.AMapUI.loadUI(r,(function(){for(var t=0,n=r.length;t<n;t++){var o=r[t].split("/").slice(-1)[0];window.AMapUI[o]=arguments[t]}for(e();p.AMapUI.length;)p.AMapUI.splice(0,1)[0]()}));else for(e();p.AMapUI.length;)p.AMapUI.splice(0,1)[0]()},l.appendChild(u)}else a.AMapUI===o.loaded?t.version&&t.version!==i.AMapUI.version?n("不允许多个版本 AMapUI 混用"):r.length?window.AMapUI.loadUI(r,(function(){for(var t=0,n=r.length;t<n;t++){var o=r[t].split("/").slice(-1)[0];window.AMapUI[o]=arguments[t]}e()})):e():t.version&&t.version!==i.AMapUI.version?n("不允许多个版本 AMapUI 混用"):p.AMapUI.push((function(t){t?n(t):r.length?window.AMapUI.loadUI(r,(function(){for(var t=0,n=r.length;t<n;t++){var o=r[t].split("/").slice(-1)[0];window.AMapUI[o]=arguments[t]}e()})):e()}))}))}function n(t){return new Promise((function(e,n){if(a.Loca===o.failed)n("前次请求 Loca 失败");else if(a.Loca===o.notload){a.Loca=o.loading,i.Loca.version=t.version||i.Loca.version;var r=i.Loca.version,s=i.AMap.version.startsWith("2"),l=r.startsWith("2");if(s&&!l||!s&&l)n("JSAPI 与 Loca 版本不对应!!");else{s=i.key,l=document.body||document.head;var u=document.createElement("script");u.type="text/javascript",u.src="https://webapi.amap.com/loca?v="+r+"&key="+s,u.onerror=function(t){a.Loca=o.failed,n("请求 AMapUI 失败")},u.onload=function(){for(a.Loca=o.loaded,e();p.Loca.length;)p.Loca.splice(0,1)[0]()},l.appendChild(u)}}else a.Loca===o.loaded?t.version&&t.version!==i.Loca.version?n("不允许多个版本 Loca 混用"):e():t.version&&t.version!==i.Loca.version?n("不允许多个版本 Loca 混用"):p.Loca.push((function(t){t?n(t):n()}))}))}if(!window)throw Error("AMap JSAPI can only be used in Browser.");var o,r;(r=o||(o={})).notload="notload",r.loading="loading",r.loaded="loaded",r.failed="failed";var i={key:"",AMap:{version:"1.4.15",plugins:[]},AMapUI:{version:"1.1",plugins:[]},Loca:{version:"1.3.2"}},a={AMap:o.notload,AMapUI:o.notload,Loca:o.notload},p={AMap:[],AMapUI:[],Loca:[]},s=[];return{load:function(e){return new Promise((function(n,r){if(a.AMap==o.failed)r("");else if(a.AMap==o.notload){var p=e.key,l=e.version,u=e.plugins;p?(window.AMap&&"lbs.amap.com"!==location.host&&r("禁止多种API加载方式混用"),i.key=p,i.AMap.version=l||i.AMap.version,i.AMap.plugins=u||i.AMap.plugins,a.AMap=o.loading,l=document.body||document.head,window.___onAPILoaded=function(i){if(delete window.___onAPILoaded,i)a.AMap=o.failed,r(i);else for(a.AMap=o.loaded,t(e).then((function(){n(window.AMap)})).catch(r);s.length;)s.splice(0,1)[0]()},(u=document.createElement("script")).type="text/javascript",u.src="https://webapi.amap.com/maps?callback=___onAPILoaded&v="+i.AMap.version+"&key="+p+"&plugin="+i.AMap.plugins.join(","),u.onerror=function(t){a.AMap=o.failed,r(t)},l.appendChild(u)):r("请填写key")}else if(a.AMap==o.loaded)if(e.key&&e.key!==i.key)r("多个不一致的 key");else if(e.version&&e.version!==i.AMap.version)r("不允许多个版本 JSAPI 混用");else{if(p=[],e.plugins)for(l=0;l<e.plugins.length;l+=1)-1==i.AMap.plugins.indexOf(e.plugins[l])&&p.push(e.plugins[l]);p.length?window.AMap.plugin(p,(function(){t(e).then((function(){n(window.AMap)})).catch(r)})):t(e).then((function(){n(window.AMap)})).catch(r)}else if(e.key&&e.key!==i.key)r("多个不一致的 key");else if(e.version&&e.version!==i.AMap.version)r("不允许多个版本 JSAPI 混用");else{var c=[];if(e.plugins)for(l=0;l<e.plugins.length;l+=1)-1==i.AMap.plugins.indexOf(e.plugins[l])&&c.push(e.plugins[l]);!function(t){"function"==typeof t&&(a.AMap===o.loaded?t(window.AMap):s.push(t))}((function(){c.length?window.AMap.plugin(c,(function(){t(e).then((function(){n(window.AMap)})).catch(r)})):t(e).then((function(){n(window.AMap)})).catch(r)}))}}))},reset:function(){delete window.AMap,delete window.AMapUI,delete window.Loca,i={key:"",AMap:{version:"1.4.15",plugins:[]},AMapUI:{version:"1.1",plugins:[]},Loca:{version:"1.3.2"}},a={AMap:o.notload,AMapUI:o.notload,Loca:o.notload},p={AMap:[],AMapUI:[],Loca:[]}}}}()},,function(t,e,n){"use strict";n.r(e),n.d(e,"initAMapApiLoader",(function(){return m})),n.d(e,"registerMixin",(function(){return d.a})),n.d(e,"lazyAMapApiLoaderInstance",(function(){return c}));var o=n(3),r=n.n(o),i=n(16),a=n.n(i),p=n(19),s={key:"",version:"2.0",plugins:[],AMapUI:{version:"1.1",plugins:[]},Loca:{version:"2.0.0"},serviceHost:"",securityJsCode:""},l=n(15),u=n.n(l),c=null,m=function(t){u.a.prototype.$isServer||c||(c||(c=t.offline?new Promise((function(t){console.log("@vuemap/vue-amap离线部署"),t(window.AMap)})):function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return(t=Object(p.a)({},s,t)).serviceHost?window._AMapSecurityConfig={serviceHost:t.serviceHost}:t.securityJsCode&&(window._AMapSecurityConfig={securityJsCode:t.securityJsCode}),a.a.load(t)}(t)),c.then())};function h(){for(var t=[],e=0;e<36;e++)t[e]="0123456789abcdef".substr(Math.floor(16*Math.random()),1);return t[14]="4",t[19]="0123456789abcdef".substr(3&t[19]|8,1),t[8]=t[13]=t[18]=t[23]="-",t.join("")}var d=n(0),f={name:"el-amap",mixins:[d.a],provide:function(){return{parentInstance:this}},inject:null,props:{vid:{type:String},center:{type:Array},zoom:{type:Number},rotation:{type:Number},pitch:{type:Number},viewMode:{type:String},features:{type:Array},layers:{type:Array},zooms:{type:Array},resizeEnable:{type:Boolean,default:!0},dragEnable:{type:Boolean},zoomEnable:{type:Boolean},jogEnable:{type:Boolean},pitchEnable:{type:Boolean},rotateEnable:{type:Boolean},animateEnable:{type:Boolean},keyboardEnable:{type:Boolean},doubleClickZoom:{type:Boolean},scrollWheel:{type:Boolean},touchZoom:{type:Boolean},touchZoomCenter:{type:Number},showLabel:{type:Boolean},defaultCursor:{type:String},isHotspot:{type:Boolean},mapStyle:{type:String},wallColor:{type:[String,Array]},roofColor:{type:[String,Array]},showBuildingBlock:{type:Boolean},showIndoorMap:{type:Boolean},skyColor:{type:[String,Array]},labelRejectMask:{type:Boolean},mask:{type:Array},WebGLParams:{type:Object}},beforeCreate:function(){},computed:{},data:function(){return{handlers:{dragEnable:function(t){this.setStatus({dragEnable:t})},zoomEnable:function(t){this.setStatus({zoomEnable:t})},jogEnable:function(t){this.setStatus({jogEnable:t})},keyboardEnable:function(t){this.setStatus({keyboardEnable:t})},doubleClickZoom:function(t){this.setStatus({doubleClickZoom:t})},scrollWheel:function(t){this.setStatus({scrollWheel:t})},rotateEnable:function(t){this.setStatus({rotateEnable:t})},resizeEnable:function(t){this.setStatus({resizeEnable:t})},showIndoorMap:function(t){this.setStatus({showIndoorMap:t})}}}},mounted:function(){this.createMap()},beforeDestroy:function(){this.$amapComponent&&(this.$amapComponent.destroy(),this.$amapComponent=null)},methods:{createMap:function(){var t=this;c.then((function(){var e=t.$el.querySelector(".el-vue-amap"),n=t.vid||h();e.id=n,t.$amapComponent=new AMap.Map(n,t.convertProps()),t.register()})).catch((function(t){console.warn("init map error: ",t)}))}}},y=n(1),C=Object(y.a)(f,(function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"el-vue-amap-container"},[e("div",{staticClass:"el-vue-amap"}),this._v(" "),this._t("default")],2)}),[],!1,null,null,null).exports,v={name:"el-amap-layer-default",mixins:[d.a],props:{zoom:{type:Array},opacity:{type:Number}},data:function(){return{}},methods:{__initComponent:function(t){this.$amapComponent=AMap.createDefaultLayer(t),this.$parentComponent.add(this.$amapComponent)}}},$=Object(y.a)(v,(function(){var t=this.$createElement;return(this._self._c||t)("div")}),[],!1,null,null,null).exports,b={name:"el-amap-layer-tile",mixins:[d.a],props:{tileUrl:{type:String,required:!0},zoom:{type:Array},dataZooms:{type:Array},opacity:{type:Number},tileSize:{type:Number}},data:function(){return{}},methods:{__initComponent:function(t){this.$amapComponent=new AMap.TileLayer(t),this.$parentComponent.add(this.$amapComponent)},destroyComponent:function(){this.$parentComponent.remove(this.$amapComponent),this.$amapComponent=null,this.$parentComponent=null}}},g=Object(y.a)(b,(function(){var t=this.$createElement;return(this._self._c||t)("div")}),[],!1,null,null,null).exports,_={name:"el-amap-layer-traffic",mixins:[d.a],props:{autoRefresh:{type:Boolean},interval:{type:Number},zooms:{type:Array},opacity:{type:Number},tileSize:{type:Number}},data:function(){return{}},methods:{__initComponent:function(t){this.$amapComponent=new AMap.TileLayer.Traffic(t),this.$parentComponent.add(this.$amapComponent)},stopFresh:function(){this.$amapComponent&&this.$amapComponent.stopFresh()},destroyComponent:function(){this.$parentComponent.remove(this.$amapComponent),this.$amapComponent=null,this.$parentComponent=null}}},O=Object(y.a)(_,(function(){var t=this.$createElement;return(this._self._c||t)("div")}),[],!1,null,null,null).exports,S={name:"el-amap-layer-satellite",mixins:[d.a],props:{zooms:{type:Array},opacity:{type:Number},tileSize:{type:Number}},data:function(){return{}},methods:{__initComponent:function(t){this.$amapComponent=new AMap.TileLayer.Satellite(t),this.$parentComponent.add(this.$amapComponent)},destroyComponent:function(){this.$amapComponent.destroy(),this.$parentComponent.remove(this.$amapComponent),this.$amapComponent=null,this.$parentComponent=null}}},A=Object(y.a)(S,(function(){var t=this.$createElement;return(this._self._c||t)("div")}),[],!1,null,null,null).exports,M={name:"el-amap-layer-road-net",mixins:[d.a],props:{zooms:{type:Array},opacity:{type:Number},tileSize:{type:Number}},data:function(){return{}},methods:{__initComponent:function(t){this.$amapComponent=new AMap.TileLayer.RoadNet(t),this.$parentComponent.add(this.$amapComponent)},destroyComponent:function(){this.$amapComponent.destroy(),this.$parentComponent.remove(this.$amapComponent),this.$amapComponent=null,this.$parentComponent=null}}},w=Object(y.a)(M,(function(){var t=this.$createElement;return(this._self._c||t)("div")}),[],!1,null,null,null).exports,x={name:"el-amap-layer-buildings",mixins:[d.a],props:{wallColor:{type:[String,Array]},roofColor:{type:[String,Array]},heightFactor:{type:Number},styleOpts:{type:Object},zooms:{type:Array},opacity:{type:Number}},data:function(){return{handlers:{styleOpts:function(t){this.setStyle(t)}}}},methods:{__initComponent:function(t){this.$amapComponent=new AMap.Buildings(t),this.$parentComponent.add(this.$amapComponent),this.styleOpts&&this.$amapComponent.setStyle(this.styleOpts)},destroyComponent:function(){this.$amapComponent.destroy(),this.$parentComponent.remove(this.$amapComponent),this.$amapComponent=null,this.$parentComponent=null}}},j=Object(y.a)(x,(function(){var t=this.$createElement;return(this._self._c||t)("div")}),[],!1,null,null,null).exports,k={name:"el-amap-layer-district",mixins:[d.a],props:{type:{type:String,default:"Country",validator:function(t){return-1!==["World","Country","Province"].indexOf(t)}},adcode:{type:String},SOC:{type:String},depth:{type:Number},zooms:{type:Array},opacity:{type:Number},styles:{type:Object}},data:function(){return{handlers:{SOC:function(t){this.setSOC(t)}}}},methods:{__initComponent:function(t){"World"===this.type?this.$amapComponent=new AMap.DistrictLayer.World(t):"Country"===this.type?this.$amapComponent=new AMap.DistrictLayer.Country(t):"Province"===this.type&&(this.$amapComponent=new AMap.DistrictLayer.Province(t)),this.$parentComponent.add(this.$amapComponent)},destroyComponent:function(){this.$parentComponent.remove(this.$amapComponent),this.$amapComponent=null,this.$parentComponent=null}}},L=Object(y.a)(k,(function(){var t=this.$createElement;return(this._self._c||t)("div")}),[],!1,null,null,null).exports;function E(t){return!!t&&("AMap.Map"===t.className||"AMap.Map"===t.CLASS_NAME)}function B(t){return!!t&&("Overlay.OverlayGroup"===t.className||"Overlay.OverlayGroup"===t.CLASS_NAME)}function I(t){return!!t&&("AMap.VectorLayer"===t.CLASS_NAME||"AMap.VectorLayer"===t.CLASS_NAME)}var z={name:"el-amap-layer-indoor-map",mixins:[d.a],props:{opacity:{type:Number},cursor:{type:String},hideFloorBar:{type:Boolean}},data:function(){return{handlers:{hideFloorBar:function(t){!1===t?this.hideFloorBar():this.showFloorBar()}}}},methods:{__initComponent:function(t){var e=this;return new Promise((function(n){AMap.plugin(["AMap.IndoorMap"],(function(){e.$amapComponent=new AMap.IndoorMap(t);var o=e.$parentComponent.getLayers();o.push(e.$amapComponent),e.$parentComponent.setLayers(o),n()}))}))},destroyComponent:function(){for(var t,e=this.$parentComponent.getLayers(),n=-1,o=0;o<e.length;o++)if((t=e[o])&&("AMap.IndoorMap"===t.className||"AMap.IndoorMap"===t.CLASS_NAME)){n=o;break}n>-1&&(e.splice(n,1),this.$parentComponent.setLayers(e)),this.$amapComponent=null,this.$parentComponent=null}}},P=z,N=Object(y.a)(P,(function(){var t=this.$createElement;return(this._self._c||t)("div")}),[],!1,null,null,null),W=N.exports,D={name:"el-amap-layer-wms",mixins:[d.a],props:{url:{type:String},blend:{type:Boolean},params:{type:Object},zooms:{type:Array},opacity:{type:Number}},data:function(){return{}},methods:{__initComponent:function(t){this.$amapComponent=new AMap.TileLayer.WMS(t),this.$parentComponent.addLayer(this.$amapComponent)},destroyComponent:function(){this.$parentComponent.removeLayer(this.$amapComponent),this.$amapComponent=null,this.$parentComponent=null}}},T=D,U=Object(y.a)(T,(function(){var t=this.$createElement;return(this._self._c||t)("div")}),[],!1,null,null,null),F=U.exports,R={name:"el-amap-layer-wmts",mixins:[d.a],props:{url:{type:String},blend:{type:Boolean},params:{type:Object},zooms:{type:Array},opacity:{type:Number}},data:function(){return{}},methods:{__initComponent:function(t){this.$amapComponent=new AMap.TileLayer.WMTS(t),this.$parentComponent.addLayer(this.$amapComponent)},destroyComponent:function(){this.$parentComponent.removeLayer(this.$amapComponent),this.$amapComponent=null,this.$parentComponent=null}}},q=R,V=Object(y.a)(q,(function(){var t=this.$createElement;return(this._self._c||t)("div")}),[],!1,null,null,null),H=V.exports,J={name:"el-amap-layer-mapbox-vector-tile",mixins:[d.a],props:{url:{type:String},zooms:{type:Array},dataZooms:{type:Array},opacity:{type:Number},styles:{type:Object}},data:function(){return{}},methods:{__initComponent:function(t){var e=this;return new Promise((function(n){AMap.plugin(["AMap.MapboxVectorTileLayer"],(function(){e.$amapComponent=new AMap.MapboxVectorTileLayer(t),e.$parentComponent.addLayer(e.$amapComponent),n()}))}))},destroyComponent:function(){this.$parentComponent.removeLayer(this.$amapComponent),this.$amapComponent=null,this.$parentComponent=null}}},G=J,Z=Object(y.a)(G,(function(){var t=this.$createElement;return(this._self._c||t)("div")}),[],!1,null,null,null),X=Z.exports,K={name:"el-amap-layer-heat-map",mixins:[d.a],props:{radius:{type:Number},gradient:{type:Object},zooms:{type:Array},opacity:{type:Array},config:{type:Object},dataSet:{type:Object}},data:function(){return{propsRedirect:{config:"3d"}}},methods:{__initComponent:function(t){var e=this;return new Promise((function(n){AMap.plugin(["AMap.HeatMap"],(function(){delete t.dataSet,e.$amapComponent=new AMap.HeatMap(e.$parentComponent,t),e.dataSet&&e.$amapComponent.setDataSet(e.dataSet),n()}))}))},destroyComponent:function(){this.$amapComponent.setMap(null),this.$amapComponent=null,this.$parentComponent=null}}},Q=K,Y=Object(y.a)(Q,(function(){var t=this.$createElement;return(this._self._c||t)("div")}),[],!1,null,null,null),tt=Y.exports,et={name:"el-amap-layer-labels",mixins:[d.a],provide:function(){return{parentInstance:this}},props:{zooms:{type:Array},opacity:{type:Number},collision:{type:Boolean},allowCollision:{type:Boolean}},data:function(){return{}},methods:{__initComponent:function(t){this.$amapComponent=new AMap.LabelsLayer(t),this.$parentComponent.add(this.$amapComponent)},$$add:function(t){this.$amapComponent.add(t)},destroyComponent:function(){this.$parentComponent.remove(this.$amapComponent),this.$amapComponent=null,this.$parentComponent=null}}},nt=et,ot=Object(y.a)(nt,(function(){var t=this.$createElement;return(this._self._c||t)("div",[this._t("default")],2)}),[],!1,null,null,null),rt=ot.exports,it={name:"el-amap-layer-custom",mixins:[d.a],props:{canvas:{required:!0},render:{type:Function},zooms:{type:Array},opacity:{type:Number},alwaysRender:{type:Boolean}},data:function(){return{}},methods:{__initComponent:function(t){var e=t.canvas;delete t.canvas,this.$amapComponent=new AMap.CustomLayer(e,t),this.$amapComponent.setMap(this.$parentComponent)},destroyComponent:function(){this.$amapComponent.setMap(null),this.$amapComponent=null,this.$parentComponent=null}}},at=it,pt=Object(y.a)(at,(function(){var t=this.$createElement;return(this._self._c||t)("div")}),[],!1,null,null,null),st=pt.exports,lt={name:"el-amap-layer-flexible",mixins:[d.a],props:{cacheSize:{type:Number},createTile:{type:Function},zooms:{type:Array},opacity:{type:Array},tileSize:{type:Number}},data:function(){return{}},methods:{__initComponent:function(t){this.$amapComponent=new AMap.TileLayer.Flexible(t),this.$amapComponent.setMap(this.$parentComponent)},destroyComponent:function(){this.$amapComponent.destroy(),this.$amapComponent.setMap(null),this.$amapComponent=null,this.$parentComponent=null}}},ut=lt,ct=Object(y.a)(ut,(function(){var t=this.$createElement;return(this._self._c||t)("div")}),[],!1,null,null,null),mt=ct.exports,ht={name:"el-amap-layer-image",mixins:[d.a],props:{url:{type:String,required:!0},zoom:{type:Array},bounds:{type:[Array,Object]},opacity:{type:Number}},data:function(){return{handlers:{url:function(t){this.setImageUrl(t)}}}},methods:{__initComponent:function(t){this.$amapComponent=new AMap.ImageLayer(t),this.$parentComponent.add(this.$amapComponent)},destroyComponent:function(){this.$parentComponent.remove(this.$amapComponent),this.$amapComponent=null,this.$parentComponent=null}}},dt=ht,ft=Object(y.a)(dt,(function(){var t=this.$createElement;return(this._self._c||t)("div")}),[],!1,null,null,null),yt=ft.exports,Ct={name:"el-amap-layer-canvas",mixins:[d.a],props:{canvas:{required:!0},zoom:{type:Array},bounds:{type:[Array,Object]},opacity:{type:Number}},data:function(){return{handlers:{}}},methods:{__initComponent:function(t){this.$amapComponent=new AMap.CanvasLayer(t),this.$parentComponent.addLayer(this.$amapComponent)},destroyComponent:function(){this.$parentComponent.removeLayer(this.$amapComponent),this.$amapComponent=null,this.$parentComponent=null}}},vt=Ct,$t=Object(y.a)(vt,(function(){var t=this.$createElement;return(this._self._c||t)("div")}),[],!1,null,null,null),bt=$t.exports,gt={name:"el-amap-layer-gl-custom",mixins:[d.a],props:{init:{type:Function},render:{type:Function},zooms:{type:Array},opacity:{type:Number}},data:function(){return{}},methods:{__initComponent:function(t){this.$amapComponent=new AMap.GLCustomLayer(t),this.$amapComponent.setMap(this.$parentComponent)},destroyComponent:function(){this.$amapComponent.setMap(null),this.$amapComponent=null,this.$parentComponent=null}}},_t=gt,Ot=Object(y.a)(_t,(function(){var t=this.$createElement;return(this._self._c||t)("div")}),[],!1,null,null,null),St=Ot.exports,At={name:"el-amap-layer-vector",mixins:[d.a],provide:function(){return{parentInstance:this}},props:{},data:function(){return{}},methods:{__initComponent:function(t){this.$amapComponent=new AMap.VectorLayer(t),this.$parentComponent.add(this.$amapComponent)},destroyComponent:function(){this.$parentComponent.remove(this.$amapComponent),this.$amapComponent=null,this.$parentComponent=null}}},Mt=At,wt=Object(y.a)(Mt,(function(){var t=this.$createElement;return(this._self._c||t)("div",[this._t("default")],2)}),[],!1,null,null,null),xt=wt.exports,jt={name:"el-amap-marker",mixins:[d.a],props:{position:{type:[Array,Object],required:!0},icon:{type:[String,Object]},content:{type:[String,HTMLElement]},title:{type:String},offset:{type:[Array,Object]},anchor:{type:[String,Array]},angle:{type:Number},clickable:{type:Boolean},draggable:{type:Boolean},bubble:{type:Boolean},zooms:{type:Array},cursor:{type:String},topWhenClick:{type:Boolean},label:{type:Object},extData:null},data:function(){return{withSlot:!1,converters:{},handlers:{}}},created:function(){},methods:{__initComponent:function(t){this.$slots.default&&this.$slots.default.length&&(this.withSlot=!0,t.content=this.getSlotContent()),this.$amapComponent=new AMap.Marker(t),E(this.$parentComponent)?this.$parentComponent.add(this.$amapComponent):B(this.$parentComponent)&&this.$parentComponent.addOverlay(this.$amapComponent)},getSlotContent:function(){return this.$refs.content},destroyComponent:function(){E(this.$parentComponent)?this.$parentComponent.remove(this.$amapComponent):B(this.$parentComponent)&&this.$parentComponent.removeOverlay(this.$amapComponent),this.$amapComponent=null,this.$parentComponent=null}}},kt=jt,Lt=Object(y.a)(kt,(function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticStyle:{display:"none"}},[e("div",{ref:"content"},[this._t("default")],2)])}),[],!1,null,null,null),Et=Lt.exports,Bt={name:"el-amap-label-marker",mixins:[d.a],props:{name:{type:String},position:{type:[Array,Object],required:!0},zooms:{type:Array},opacity:{type:Number},rank:{type:Number},icon:{type:Object},text:{type:Object},extData:null},data:function(){return{converters:{},handlers:{}}},created:function(){},methods:{__initComponent:function(t){this.$amapComponent=new AMap.LabelMarker(t),this.$parentComponent.add(this.$amapComponent)},destroyComponent:function(){this.$parentComponent.remove(this.$amapComponent),this.$amapComponent=null,this.$parentComponent=null}},render:function(){}},It=Bt,zt=Object(y.a)(It,void 0,void 0,!1,null,null,null),Pt=zt.exports,Nt={name:"el-amap-text",mixins:[d.a],props:{position:{type:[Array,Object],required:!0},text:{type:String},title:{type:String},offset:{type:[Array,Object]},anchor:{type:[String,Array]},angle:{type:Number},clickable:{type:Boolean},draggable:{type:Boolean},bubble:{type:Boolean},zooms:{type:Array},cursor:{type:String},topWhenClick:{type:Boolean},textStyle:{type:Object},extData:null},data:function(){return{propsRedirect:{textStyle:"style"},converters:{},handlers:{}}},created:function(){},methods:{__initComponent:function(t){this.$amapComponent=new AMap.Text(t),this.$parentComponent.add(this.$amapComponent)},destroyComponent:function(){this.$parentComponent.remove(this.$amapComponent),this.$amapComponent=null,this.$parentComponent=null}},render:function(){return null}},Wt=Nt,Dt=Object(y.a)(Wt,void 0,void 0,!1,null,null,null),Tt=Dt.exports,Ut={name:"el-amap-elastic-marker",mixins:[d.a],props:{position:{type:[Array,Object],required:!0},title:{type:String},offset:{type:[Array,Object]},clickable:{type:Boolean},draggable:{type:Boolean},bubble:{type:Boolean},zooms:{type:Array},cursor:{type:String},topWhenClick:{type:Boolean},zoomStyleMapping:{type:Object},styles:{type:Array},extData:null},data:function(){return{converters:{},handlers:{}}},created:function(){},methods:{__initComponent:function(t){var e=this;return new Promise((function(n){AMap.plugin(["AMap.ElasticMarker"],(function(){e.$amapComponent=new AMap.ElasticMarker(t),e.$parentComponent.add(e.$amapComponent),n()}))}))},destroyComponent:function(){this.$parentComponent.remove(this.$amapComponent),this.$amapComponent=null,this.$parentComponent=null}},render:function(){return null}},Ft=Ut,Rt=Object(y.a)(Ft,void 0,void 0,!1,null,null,null),qt=Rt.exports,Vt={name:"el-amap-marker-cluster",mixins:[d.a],props:{points:{type:Array,required:!0},gridSize:{type:Number},maxZoom:{type:Number},averageCenter:{type:Boolean},clusterByZoomChange:{type:Boolean},styles:{type:Array},renderClusterMarker:{type:Function},renderMarker:{type:Function}},data:function(){return{converters:{},handlers:{points:function(t){this&&this.setData(t)}}}},created:function(){},methods:{__initComponent:function(t){var e=this;return new Promise((function(n){AMap.plugin(["AMap.MarkerCluster"],(function(){var o=t.points;delete t.points,e.$amapComponent=new AMap.MarkerCluster(e.$parentComponent,o,t),n()}))}))},destroyComponent:function(){this.$amapComponent.setMap(null),this.$amapComponent=null,this.$parentComponent=null}},render:function(){return null}},Ht=Vt,Jt=Object(y.a)(Ht,void 0,void 0,!1,null,null,null),Gt=Jt.exports,Zt={name:"el-amap-mass-marks",mixins:[d.a],props:{data:{type:Array,required:!0},zooms:{type:Array},cursor:{type:String},styles:{type:[Array,Object]}},data:function(){return{propsRedirect:{styles:"style"},converters:{},handlers:{}}},created:function(){},methods:{__initComponent:function(t){var e=t.data;delete t.data,this.$amapComponent=new AMap.MassMarks(e,t),this.$amapComponent.setMap(this.$parentComponent)},destroyComponent:function(){this.$amapComponent.clear(),this.$amapComponent.setMap(null),this.$amapComponent=null,this.$parentComponent=null}},render:function(){return null}},Xt=Zt,Kt=Object(y.a)(Xt,void 0,void 0,!1,null,null,null),Qt=Kt.exports,Yt={name:"el-amap-circle-marker",mixins:[d.a],props:{zIndex:{type:Number},visible:{type:Boolean,default:!0},center:{type:Array,required:!0},bubble:{type:Boolean},cursor:{type:String},radius:{type:Number},strokeColor:{type:String},strokeOpacity:{type:Number},strokeWeight:{type:Number},fillColor:{type:String},fillOpacity:{type:Number},draggable:{type:Boolean,default:!1},extData:{type:Object}},data:function(){return{converters:{},handlers:{strokeColor:function(t){this.setOptions({strokeColor:t})},strokeOpacity:function(t){this.setOptions({strokeOpacity:t})},strokeWeight:function(t){this.setOptions({strokeWeight:t})},fillColor:function(t){this.setOptions({fillColor:t})},fillOpacity:function(t){this.setOptions({fillOpacity:t})}}}},methods:{__initComponent:function(t){this.$parentComponent=this.parentInstance.$amapComponent,this.$amapComponent=new AMap.CircleMarker(t),this.$parentComponent.add(this.$amapComponent)},destroyComponent:function(){this.$parentComponent.remove(this.$amapComponent),this.$amapComponent=null}},render:function(){return null}},te=Yt,ee=Object(y.a)(te,(function(){var t=this.$createElement;return(this._self._c||t)("div")}),[],!1,null,null,null),ne=ee.exports,oe={name:"el-amap-info-window",mixins:[d.a],props:{isCustom:{type:Boolean},autoMove:{type:Boolean},avoid:{type:Array},closeWhenClickMap:{type:Boolean},content:{},size:{type:Array},anchor:{type:String},offset:{type:Array},position:{type:Array}},data:function(){var t=this;return{withSlots:!1,converters:{},handlers:{visible:function(e){var n=this.getPosition();n&&(!1===e?this.close():this.open(t.$parentComponent,[n.lng,n.lat]))},position:function(e){t.visible?this.open(t.$parentComponent,e):this.setPosition(e)}}}},methods:{__initComponent:function(t){var e=this;this.$slots.default&&this.$slots.default.length&&(t.content=this.getSlotContent()),this.$amapComponent=new AMap.InfoWindow(t),this.$amapComponent.on("close",(function(){e.$emit("update:visible",!1)})),!1!==this.visible&&this.$amapComponent.open(this.$parentComponent,this.position)},getSlotContent:function(){return this.$refs.info},destroyComponent:function(){this.$amapComponent&&(this.$amapComponent.getIsOpen()&&this.$amapComponent.close(),this.$amapComponent=null,this.$parentComponent=null)}}},re=oe,ie=Object(y.a)(re,(function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticStyle:{display:"none"}},[e("div",{ref:"info"},[this._t("default")],2)])}),[],!1,null,null,null),ae=ie.exports,pe=n(6),se={props:{editable:{type:Boolean,default:void 0},editOptions:{type:Object}},data:function(){return{}},methods:{setEditorEvents:function(){var t=this;if(this.$amapComponent.editor){var e=["addnode","adjust","removenode","end","move","add"],n={};Object.keys(this.$listeners).forEach((function(o){-1!==e.indexOf(o)&&(n[o]=t.$listeners[o])})),Object.keys(n).forEach((function(e){pe.a.addListener(t.$amapComponent.editor,e,n[e])}))}}}},le={name:"el-amap-polygon",mixins:[d.a,se],props:{path:{type:Array,required:!0},bubble:{type:Boolean},cursor:{type:String},strokeColor:{type:String},strokeOpacity:{type:Number},strokeWeight:{type:Number},fillColor:{type:String},fillOpacity:{type:Number},draggable:{type:Boolean},extData:null,strokeStyle:{type:String,validator:function(t){return-1!==["solid","dashed"].indexOf(t)}},strokeDasharray:{type:Array}},data:function(){var t=this;return{converters:{},handlers:{zIndex:function(t){this.setOptions({zIndex:t})},strokeColor:function(t){this.setOptions({strokeColor:t})},strokeOpacity:function(t){this.setOptions({strokeOpacity:t})},strokeWeight:function(t){this.setOptions({strokeWeight:t})},fillColor:function(t){this.setOptions({fillColor:t})},fillOpacity:function(t){this.setOptions({fillOpacity:t})},strokeStyle:function(t){this.setOptions({strokeStyle:t})},strokeDasharray:function(t){this.setOptions({strokeDasharray:t})},editable:function(e){var n=this;t.createEditor().then((function(){!0===e?n.editor.open():n.editor.close()}))}}}},methods:{__initComponent:function(t){this.$amapComponent=new AMap.Polygon(t),E(this.$parentComponent)?this.$parentComponent.add(this.$amapComponent):B(this.$parentComponent)?this.$parentComponent.addOverlay(this.$amapComponent):I(this.$parentComponent)&&this.$parentComponent.add(this.$amapComponent)},createEditor:function(){var t=this;return new Promise((function(e){t.$amapComponent.editor?e():AMap.plugin(["AMap.PolygonEditor"],(function(){t.$amapComponent.editor=new AMap.PolygonEditor(t.$parentComponent,t.$amapComponent,t.editOptions),t.setEditorEvents(),e()}))}))},destroyComponent:function(){this.$amapComponent.editor&&this.$amapComponent.editor.close(),this.$amapComponent.destroy(),E(this.$parentComponent)?this.$parentComponent.remove(this.$amapComponent):B(this.$parentComponent)?this.$parentComponent.removeOverlay(this.$amapComponent):I(this.$parentComponent)&&this.$parentComponent.remove(this.$amapComponent),this.$amapComponent=null,this.$parentComponent=null}}},ue=Object(y.a)(le,(function(){var t=this.$createElement;return(this._self._c||t)("div")}),[],!1,null,null,null).exports,ce={name:"el-amap-polyline",mixins:[d.a,se],props:{path:{type:Array,required:!0},bubble:{type:Boolean},cursor:{type:String},strokeColor:{type:String},strokeOpacity:{type:Number},strokeWeight:{type:Number},borderWeight:{type:Number},isOutline:{type:Boolean},outlineColor:{type:String},draggable:{type:Boolean},extData:null,strokeStyle:{type:String,validator:function(t){return-1!==["solid","dashed"].indexOf(t)}},strokeDasharray:{type:Array},lineJoin:{type:String,validator:function(t){return-1!==["miter","round","bevel"].indexOf(t)}},lineCap:{type:String,validator:function(t){return-1!==["butt","round","square"].indexOf(t)}},geodesic:{type:Boolean},showDir:{type:Boolean}},data:function(){var t=this;return{converters:{},handlers:{zIndex:function(t){this.setOptions({zIndex:t})},strokeColor:function(t){this.setOptions({strokeColor:t})},strokeOpacity:function(t){this.setOptions({strokeOpacity:t})},strokeWeight:function(t){this.setOptions({strokeWeight:t})},borderWeight:function(t){this.setOptions({borderWeight:t})},isOutline:function(t){this.setOptions({isOutline:t})},outlineColor:function(t){this.setOptions({outlineColor:t})},strokeStyle:function(t){this.setOptions({strokeStyle:t})},strokeDasharray:function(t){this.setOptions({strokeDasharray:t})},lineJoin:function(t){this.setOptions({lineJoin:t})},lineCap:function(t){this.setOptions({lineCap:t})},geodesic:function(t){this.setOptions({geodesic:t})},showDir:function(t){this.setOptions({showDir:t})},editable:function(e){var n=this;t.createEditor().then((function(){!0===e?n.editor.open():n.editor.close()}))}}}},methods:{__initComponent:function(t){this.$amapComponent=new AMap.Polyline(t),E(this.$parentComponent)?this.$parentComponent.add(this.$amapComponent):B(this.$parentComponent)?this.$parentComponent.addOverlay(this.$amapComponent):I(this.$parentComponent)&&this.$parentComponent.add(this.$amapComponent)},createEditor:function(){var t=this;return new Promise((function(e){t.$amapComponent.editor?e():AMap.plugin(["AMap.PolylineEditor"],(function(){t.$amapComponent.editor=new AMap.PolylineEditor(t.$parentComponent,t.$amapComponent,t.editOptions),t.setEditorEvents(),e()}))}))},destroyComponent:function(){this.$amapComponent.editor&&this.$amapComponent.editor.close(),this.$amapComponent.destroy(),E(this.$parentComponent)?this.$parentComponent.remove(this.$amapComponent):B(this.$parentComponent)?this.$parentComponent.removeOverlay(this.$amapComponent):I(this.$parentComponent)&&this.$parentComponent.remove(this.$amapComponent),this.$amapComponent=null,this.$parentComponent=null}}},me=Object(y.a)(ce,(function(){var t=this.$createElement;return(this._self._c||t)("div")}),[],!1,null,null,null).exports,he={name:"el-amap-bezier-curve",mixins:[d.a,se],props:{path:{type:Array,required:!0},bubble:{type:Boolean},cursor:{type:String},strokeColor:{type:String},strokeOpacity:{type:Number},strokeWeight:{type:Number},borderWeight:{type:Number},isOutline:{type:Boolean},outlineColor:{type:String},draggable:{type:Boolean},extData:null,strokeStyle:{type:String,validator:function(t){return-1!==["solid","dashed"].indexOf(t)}},strokeDasharray:{type:Array},lineJoin:{type:String,validator:function(t){return-1!==["miter","round","bevel"].indexOf(t)}},lineCap:{type:String,validator:function(t){return-1!==["butt","round","square"].indexOf(t)}},geodesic:{type:Boolean},showDir:{type:Boolean}},data:function(){var t=this;return{converters:{},handlers:{zIndex:function(t){this.setOptions({zIndex:t})},strokeColor:function(t){this.setOptions({strokeColor:t})},strokeOpacity:function(t){this.setOptions({strokeOpacity:t})},strokeWeight:function(t){this.setOptions({strokeWeight:t})},borderWeight:function(t){this.setOptions({borderWeight:t})},isOutline:function(t){this.setOptions({isOutline:t})},outlineColor:function(t){this.setOptions({outlineColor:t})},strokeStyle:function(t){this.setOptions({strokeStyle:t})},strokeDasharray:function(t){this.setOptions({strokeDasharray:t})},lineJoin:function(t){this.setOptions({lineJoin:t})},lineCap:function(t){this.setOptions({lineCap:t})},geodesic:function(t){this.setOptions({geodesic:t})},showDir:function(t){this.setOptions({showDir:t})},editable:function(e){var n=this;t.createEditor().then((function(){!0===e?n.editor.open():n.editor.close()}))}}}},methods:{__initComponent:function(t){this.$amapComponent=new AMap.BezierCurve(t),E(this.$parentComponent)?this.$parentComponent.add(this.$amapComponent):B(this.$parentComponent)?this.$parentComponent.addOverlay(this.$amapComponent):I(this.$parentComponent)&&this.$parentComponent.add(this.$amapComponent)},createEditor:function(){var t=this;return new Promise((function(e){t.$amapComponent.editor?e():AMap.plugin(["AMap.BezierCurveEditor"],(function(){t.$amapComponent.editor=new AMap.BezierCurveEditor(t.$parentComponent,t.$amapComponent,t.editOptions),t.setEditorEvents(),e()}))}))},destroyComponent:function(){this.$amapComponent.editor&&this.$amapComponent.editor.close(),this.$amapComponent.destroy(),E(this.$parentComponent)?this.$parentComponent.remove(this.$amapComponent):B(this.$parentComponent)?this.$parentComponent.removeOverlay(this.$amapComponent):I(this.$parentComponent)&&this.$parentComponent.remove(this.$amapComponent),this.$amapComponent=null,this.$parentComponent=null}}},de=Object(y.a)(he,(function(){var t=this.$createElement;return(this._self._c||t)("div")}),[],!1,null,null,null).exports,fe={name:"el-amap-circle",mixins:[d.a,se],props:{center:{type:Array,required:!0},radius:{type:Number,required:!0},bubble:{type:Boolean},cursor:{type:String},strokeColor:{type:String},strokeOpacity:{type:Number},strokeWeight:{type:Number},fillColor:{type:String},fillOpacity:{type:Number},draggable:{type:Boolean},extData:null,strokeStyle:{type:String,validator:function(t){return-1!==["solid","dashed"].indexOf(t)}},strokeDasharray:{type:Array}},data:function(){var t=this;return{converters:{},handlers:{zIndex:function(t){this.setOptions({zIndex:t})},strokeColor:function(t){this.setOptions({strokeColor:t})},strokeOpacity:function(t){this.setOptions({strokeOpacity:t})},strokeWeight:function(t){this.setOptions({strokeWeight:t})},fillColor:function(t){this.setOptions({fillColor:t})},fillOpacity:function(t){this.setOptions({fillOpacity:t})},strokeStyle:function(t){this.setOptions({strokeStyle:t})},strokeDasharray:function(t){this.setOptions({strokeDasharray:t})},editable:function(e){var n=this;t.createEditor().then((function(){!0===e?n.editor.open():n.editor.close()}))}}}},methods:{__initComponent:function(t){this.$amapComponent=new AMap.Circle(t),E(this.$parentComponent)?this.$parentComponent.add(this.$amapComponent):B(this.$parentComponent)?this.$parentComponent.addOverlay(this.$amapComponent):I(this.$parentComponent)&&this.$parentComponent.add(this.$amapComponent)},createEditor:function(){var t=this;return new Promise((function(e){t.$amapComponent.editor?e():AMap.plugin(["AMap.CircleEditor"],(function(){t.$amapComponent.editor=new AMap.CircleEditor(t.$parentComponent,t.$amapComponent,t.editOptions),t.setEditorEvents(),e()}))}))},destroyComponent:function(){this.$amapComponent.editor&&this.$amapComponent.editor.close(),this.$amapComponent.destroy(),E(this.$parentComponent)?this.$parentComponent.remove(this.$amapComponent):B(this.$parentComponent)?this.$parentComponent.removeOverlay(this.$amapComponent):I(this.$parentComponent)&&this.$parentComponent.remove(this.$amapComponent),this.$amapComponent=null,this.$parentComponent=null}}},ye=Object(y.a)(fe,(function(){var t=this.$createElement;return(this._self._c||t)("div")}),[],!1,null,null,null).exports,Ce={name:"el-amap-ellipse",mixins:[d.a,se],props:{center:{type:Array,required:!0},radius:{type:Array,required:!0},bubble:{type:Boolean},cursor:{type:String},strokeColor:{type:String},strokeOpacity:{type:Number},strokeWeight:{type:Number},fillColor:{type:String},fillOpacity:{type:Number},draggable:{type:Boolean},extData:null,strokeStyle:{type:String,validator:function(t){return-1!==["solid","dashed"].indexOf(t)}},strokeDasharray:{type:Array}},data:function(){var t=this;return{converters:{},handlers:{zIndex:function(t){this.setOptions({zIndex:t})},strokeColor:function(t){this.setOptions({strokeColor:t})},strokeOpacity:function(t){this.setOptions({strokeOpacity:t})},strokeWeight:function(t){this.setOptions({strokeWeight:t})},fillColor:function(t){this.setOptions({fillColor:t})},fillOpacity:function(t){this.setOptions({fillOpacity:t})},strokeStyle:function(t){this.setOptions({strokeStyle:t})},strokeDasharray:function(t){this.setOptions({strokeDasharray:t})},editable:function(e){var n=this;t.createEditor().then((function(){!0===e?n.editor.open():n.editor.close()}))}}}},methods:{__initComponent:function(t){this.$amapComponent=new AMap.Ellipse(t),E(this.$parentComponent)?this.$parentComponent.add(this.$amapComponent):B(this.$parentComponent)?this.$parentComponent.addOverlay(this.$amapComponent):I(this.$parentComponent)&&this.$parentComponent.add(this.$amapComponent)},createEditor:function(){var t=this;return new Promise((function(e){t.$amapComponent.editor?e():AMap.plugin(["AMap.EllipseEditor"],(function(){t.$amapComponent.editor=new AMap.EllipseEditor(t.$parentComponent,t.$amapComponent,t.editOptions),t.setEditorEvents(),e()}))}))},destroyComponent:function(){this.$amapComponent.editor&&this.$amapComponent.editor.close(),this.$amapComponent.destroy(),E(this.$parentComponent)?this.$parentComponent.remove(this.$amapComponent):B(this.$parentComponent)?this.$parentComponent.removeOverlay(this.$amapComponent):I(this.$parentComponent)&&this.$parentComponent.remove(this.$amapComponent),this.$amapComponent=null,this.$parentComponent=null}}},ve=Object(y.a)(Ce,(function(){var t=this.$createElement;return(this._self._c||t)("div")}),[],!1,null,null,null).exports,$e=n(7),be={name:"el-amap-rectangle",mixins:[d.a,se],props:{bounds:{type:Array,required:!0},bubble:{type:Boolean},cursor:{type:String},strokeColor:{type:String},strokeOpacity:{type:Number},strokeWeight:{type:Number},fillColor:{type:String},fillOpacity:{type:Number},draggable:{type:Boolean},extData:null,strokeStyle:{type:String,validator:function(t){return-1!==["solid","dashed"].indexOf(t)}},strokeDasharray:{type:Array}},data:function(){var t=this;return{converters:{bounds:function(t){return new AMap.Bounds(Object($e.b)(t[0]),Object($e.b)(t[1]))}},handlers:{zIndex:function(t){this.setOptions({zIndex:t})},strokeColor:function(t){this.setOptions({strokeColor:t})},strokeOpacity:function(t){this.setOptions({strokeOpacity:t})},strokeWeight:function(t){this.setOptions({strokeWeight:t})},fillColor:function(t){this.setOptions({fillColor:t})},fillOpacity:function(t){this.setOptions({fillOpacity:t})},strokeStyle:function(t){this.setOptions({strokeStyle:t})},strokeDasharray:function(t){this.setOptions({strokeDasharray:t})},editable:function(e){var n=this;t.createEditor().then((function(){!0===e?n.editor.open():n.editor.close()}))}}}},methods:{__initComponent:function(t){this.$amapComponent=new AMap.Rectangle(t),E(this.$parentComponent)?this.$parentComponent.add(this.$amapComponent):B(this.$parentComponent)?this.$parentComponent.addOverlay(this.$amapComponent):I(this.$parentComponent)&&this.$parentComponent.add(this.$amapComponent)},createEditor:function(){var t=this;return new Promise((function(e){t.$amapComponent.editor?e():AMap.plugin(["AMap.RectangleEditor"],(function(){t.$amapComponent.editor=new AMap.RectangleEditor(t.$parentComponent,t.$amapComponent,t.editOptions),t.setEditorEvents(),e()}))}))},destroyComponent:function(){this.$amapComponent.editor&&this.$amapComponent.editor.close(),this.$amapComponent.destroy(),E(this.$parentComponent)?this.$parentComponent.remove(this.$amapComponent):B(this.$parentComponent)?this.$parentComponent.removeOverlay(this.$amapComponent):I(this.$parentComponent)&&this.$parentComponent.remove(this.$amapComponent),this.$amapComponent=null,this.$parentComponent=null}}},ge=Object(y.a)(be,(function(){var t=this.$createElement;return(this._self._c||t)("div")}),[],!1,null,null,null).exports,_e={name:"el-amap-geojson",mixins:[d.a],props:{geo:{type:Object,required:!0},markerOptions:{type:Object},getMarker:{type:Function},polylineOptions:{type:Object},getPolyline:{type:Function},polygonOptions:{type:Object},getPolygon:{type:Function}},data:function(){return{propsRedirect:{geo:"geoJSON"},converters:{},handlers:{geo:function(t){this.importData(t)}}}},methods:{__initComponent:function(t){var e=this;return new Promise((function(n){AMap.plugin(["AMap.GeoJSON"],(function(){t.getMarker||(t.getMarker=e.createMarker),t.getPolyline||(t.getPolyline=e.createPolyline),t.getPolygon||(t.getPolygon=e.createPolygon),e.$amapComponent=new AMap.GeoJSON(t),e.$parentComponent.add(e.$amapComponent),n()}))}))},createMarker:function(t,e){var n=this.markerOptions||{};return(n=Object(p.a)({},n,t.properties)).position=e,new AMap.Marker(n)},createPolyline:function(t,e){var n=this.polylineOptions||{};return(n=Object(p.a)({},n,t.properties)).path=e,new AMap.Polyline(n)},createPolygon:function(t,e){var n=this.polygonOptions||{};return(n=Object(p.a)({},n,t.properties)).path=e,new AMap.Polygon(n)},destroyComponent:function(){this.$parentComponent.remove(this.$amapComponent),this.$amapComponent=null,this.$parentComponent=null}}},Oe=Object(y.a)(_e,(function(){var t=this.$createElement;return(this._self._c||t)("div")}),[],!1,null,null,null).exports,Se={name:"el-amap-control-scale",mixins:[d.a],props:{position:{type:[String,Object]},offset:{type:Array}},data:function(){return{}},methods:{__initComponent:function(t){var e=this;return new Promise((function(n){e.$parentComponent.plugin(["AMap.Scale"],(function(){e.$amapComponent=new AMap.Scale(t),e.$parentComponent.addControl(e.$amapComponent),n()}))}))},destroyComponent:function(){this.$amapComponent&&this.$parentComponent&&(this.$parentComponent.removeControl(this.$amapComponent),this.$amapComponent=null,this.$parentComponent=null)}}},Ae=Object(y.a)(Se,(function(){var t=this.$createElement;return(this._self._c||t)("div")}),[],!1,null,null,null).exports,Me={name:"el-amap-control-tool-bar",mixins:[d.a],props:{position:{type:[String,Object]},offset:{type:Array}},data:function(){return{}},methods:{__initComponent:function(t){var e=this;return new Promise((function(n){e.$parentComponent.plugin(["AMap.ToolBar"],(function(){e.$amapComponent=new AMap.ToolBar(t),e.$parentComponent.addControl(e.$amapComponent),n()}))}))},destroyComponent:function(){this.$amapComponent&&this.$parentComponent&&(this.$parentComponent.removeControl(this.$amapComponent),this.$amapComponent=null,this.$parentComponent=null)}}},we=Object(y.a)(Me,(function(){var t=this.$createElement;return(this._self._c||t)("div")}),[],!1,null,null,null).exports,xe={name:"el-amap-control-control-bar",mixins:[d.a],props:{position:{type:[String,Object]},offset:{type:Array},showControlButton:{type:Boolean}},data:function(){return{}},methods:{__initComponent:function(t){var e=this;return new Promise((function(n){e.$parentComponent.plugin(["AMap.ControlBar"],(function(){e.$amapComponent=new AMap.ControlBar(t),e.$parentComponent.addControl(e.$amapComponent),n()}))}))},destroyComponent:function(){this.$amapComponent&&this.$parentComponent&&(this.$parentComponent.removeControl(this.$amapComponent),this.$amapComponent=null,this.$parentComponent=null)}},render:function(){return null}},je=Object(y.a)(xe,(function(){var t=this.$createElement;return(this._self._c||t)("div")}),[],!1,null,null,null).exports,ke={name:"el-amap-control-map-type",mixins:[d.a],props:{defaultType:{type:Number},showTraffic:{type:Boolean},showRoad:{type:Boolean}},data:function(){return{}},methods:{__initComponent:function(t){var e=this;return new Promise((function(n){e.$parentComponent.plugin(["AMap.MapType"],(function(){e.$amapComponent=new AMap.MapType(t),e.$parentComponent.addControl(e.$amapComponent),n()}))}))},destroyComponent:function(){this.$amapComponent&&this.$parentComponent&&(this.$parentComponent.removeControl(this.$amapComponent),this.$amapComponent=null,this.$parentComponent=null)}}},Le=Object(y.a)(ke,(function(){var t=this.$createElement;return(this._self._c||t)("div")}),[],!1,null,null,null).exports,Ee={name:"el-amap-control-hawk-eye",mixins:[d.a],props:{autoMove:{type:Boolean},showRectangle:{type:Boolean},showButton:{type:Boolean},isOpen:{type:Boolean},mapStyle:{type:String},layers:{type:Array},width:{type:String},height:{type:String},offset:{type:Array},borderStyle:{type:String},borderColor:{type:String},borderRadius:{type:String},borderWidth:{type:String},buttonSize:{type:String}},data:function(){return{converters:{isOpen:function(t){!1===t?this.close():this.open()}}}},methods:{__initComponent:function(t){var e=this;return new Promise((function(n){e.$parentComponent.plugin(["AMap.HawkEye"],(function(){e.$amapComponent=new AMap.HawkEye(t),e.$parentComponent.addControl(e.$amapComponent),n()}))}))},destroyComponent:function(){this.$amapComponent&&this.$parentComponent&&(this.$parentComponent.removeControl(this.$amapComponent),this.$amapComponent=null,this.$parentComponent=null)}}},Be=Object(y.a)(Ee,(function(){var t=this.$createElement;return(this._self._c||t)("div")}),[],!1,null,null,null).exports,Ie={name:"el-amap-search-box",mixins:[d.a],props:{type:{type:String},city:{type:String},datatype:{type:String},citylimit:{type:Boolean},inputId:{type:String},outputId:{type:String},outPutDirAuto:{type:Boolean},closeResultOnScroll:{type:Boolean},lang:{type:String},inputCustom:{type:Boolean,default:!1},placeholder:{type:String}},data:function(){var t=this;return{saveInputId:"",handlers:{citylimit:function(t){this.setCityLimit(t)},visible:function(e){t.visible=e}}}},created:function(){this.saveInputId=h()},mounted:function(){},methods:{__initComponent:function(t){var e=this;return t.inputId&&(this.saveInputId=t.inputId,delete t.inputId),t.input=this.saveInputId,t.outputId&&(t.output=t.outputId,delete t.outputId),new Promise((function(n){e.$parentComponent.plugin(["AMap.AutoComplete"],(function(){e.$amapComponent=new AMap.AutoComplete(t),n()}))}))}}},ze=Object(y.a)(Ie,(function(){var t=this.$createElement,e=this._self._c||t;return e("div",{directives:[{name:"show",rawName:"v-show",value:this.visible&&!this.inputCustom,expression:"visible && !inputCustom"}],staticClass:"el-vue-search-box-container"},[this.inputCustom?this._e():e("input",{attrs:{id:this.saveInputId,type:"text",placeholder:this.placeholder}})])}),[],!1,null,null,null).exports,Pe={name:"ElAmapControlGeolocation",mixins:[d.a],props:{position:{type:String},offset:{type:Array},borderColor:{type:String},borderRadius:{type:String},buttonSize:{type:String},convert:{type:Boolean,default:!0},enableHighAccuracy:{type:Boolean,default:!1},timeout:{type:Number},maximumAge:{type:Number},showButton:{type:Boolean,default:!0},showCircle:{type:Boolean,default:!0},showMarker:{type:Boolean,default:!0},markerOptions:{type:Object},circleOptions:{type:Object},panToLocation:{type:Boolean,default:!0},zoomToAccuracy:{type:Boolean,default:!0},GeoLocationFirst:{type:Boolean,default:!0},noIpLocate:{type:Number},noGeoLocation:{type:Number},useNative:{type:Boolean,default:!1},getCityWhenFail:{type:Boolean,default:!1},needAddress:{type:Boolean,default:!1},extensions:{type:String,validator:function(t){return-1!==["base","all"].indexOf(t)}}},emits:["complete"],data:function(){return{}},methods:{__initComponent:function(t){var e=this;return new Promise((function(n){e.$parentComponent.plugin(["AMap.Geolocation"],(function(){e.$amapComponent=new AMap.Geolocation(t),e.$parentComponent.addControl(e.$amapComponent),e.$amapComponent.on("complete",(function(t){e.$emit("complete",t)})),n()}))}))},destroyComponent:function(){this.$amapComponent&&this.$parentComponent&&(this.$parentComponent.removeControl(this.$amapComponent),this.$amapComponent=null,this.$parentComponent=null)}},render:function(){return null}},Ne=Object(y.a)(Pe,void 0,void 0,!1,null,null,null).exports,We={name:"el-amap-loca",mixins:[d.a],provide:function(){return{parentInstance:this}},props:{ambLight:{type:Object},dirLight:{type:Object},pointLight:{type:Object}},data:function(){return{converters:{},handlers:{}}},methods:{__initComponent:function(t){this.$amapComponent=new Loca.Container({map:this.$parentComponent}),t.ambLight&&(this.$amapComponent.ambLight=t.ambLight),t.dirLight&&(this.$amapComponent.dirLight=t.dirLight),t.pointLight&&(this.$amapComponent.pointLight=t.pointLight),this.createChildren()},destroyComponent:function(){this.$amapComponent.destroy()},getMap:function(){return this.$parentComponent}}},De=Object(y.a)(We,(function(){var t=this.$createElement;return(this._self._c||t)("div",[this._t("default")],2)}),[],!1,null,null,null).exports,Te={props:{sourceUrl:{type:String},sourceData:{type:Object},geoBufferSource:{type:[ArrayBuffer,String],default:function(){return null}},layerStyle:{type:Object},defaultStyleValue:{type:Object,default:function(){return{}}},zooms:{type:Array},opacity:{type:Number},initEvents:{type:Boolean,default:!0},visibleDuration:{type:Number,default:0}},data:function(){var t=this;return{isDragging:!1,isRotating:!1,handlers:{layerStyle:function(e){t.$nextTick((function(){t.setStyle&&t.setStyle(e)}))},sourceUrl:function(){t.$nextTick((function(){t.setSource()}))},sourceData:function(){t.$nextTick((function(){t.setSource()}))},visible:function(e){this.show&&this.hide&&(!1===e?this.hide(t.visibleDuration):this.show(t.visibleDuration))}}}},methods:{setSource:function(){this.source&&(this.source.destroy(),this.source=null),this.geoBufferSource?"string"==typeof this.geoBufferSource?this.source=new Loca.GeoBufferSource({url:this.geoBufferSource}):this.source=new Loca.GeoBufferSource({data:this.geoBufferSource}):this.sourceUrl?this.source=new Loca.GeoJSONSource({url:this.sourceUrl}):this.sourceData?this.source=new Loca.GeoJSONSource({data:this.sourceData}):this.source=new Loca.GeoJSONSource({}),this.$amapComponent.setSource(this.source)},initComplete:function(){this.initEvents&&this.bindEvents()},destroyComponent:function(){this.$amapComponent&&(this.unBindEvents(),this.parentInstance.isDestroy||(this.$parentComponent.remove(this.$amapComponent),this.$amapComponent.destroy()),this.source&&(this.source.destroy(),this.source=null),this.$amapComponent=null,this.$parentComponent=null)},bindEvents:function(){var t=this.parentInstance.getMap();if(t){var e=this.$listeners;e.click&&t.on("click",this.clickMap),e.mousemove&&(t.on("mousemove",this.mouseMoveMap),t.on("dragstart",this.dragStart),t.on("dragend",this.dragEnd),t.on("rotatestart",this.rotateStart),t.on("rotateend",this.rotateEnd),t.on("mouseout",this.mouseoutMap))}},clickMap:function(t){var e=this.$amapComponent.queryFeature(t.pixel.toArray());this.$emit("click",e,t)},mouseMoveMap:function(t){var e=this.$amapComponent.queryFeature(t.pixel.toArray());this.$emit("mousemove",e,t)},dragStart:function(){this.isDragging=!0},dragEnd:function(){this.isDragging=!1},mouseoutMap:function(){this.isDragging=!1,this.isRotating=!1},rotateStart:function(){this.isRotating=!0},rotateEnd:function(){this.isRotating=!1},unBindEvents:function(){var t=this.parentInstance.getMap();t&&(t.off("click",this.clickMap),t.off("mousemove",this.mouseMoveMap),t.off("dragstart",this.dragStart),t.off("dragend",this.dragEnd),t.off("rotatestart",this.rotateStart),t.off("rotateend",this.rotateEnd),t.off("mouseout",this.mouseoutMap))}}},Ue={name:"el-amap-loca-point",mixins:[d.a,Te],props:{blend:{type:String}},data:function(){return{converters:{},handlers:{}}},methods:{__initComponent:function(t){this.$amapComponent=new Loca.PointLayer(t),this.setSource(),this.setStyle(),this.$parentComponent.add(this.$amapComponent),this.initComplete()},setStyle:function(){var t=Object.assign({},{radius:20,color:"#fff",unit:"px",borderWidth:10,borderColor:"#fff",blurWidth:-1},this.defaultStyleValue),e={radius:function(e,n){return n.properties=n.properties||{},void 0===n.properties.radius?t.radius:n.properties.radius},color:function(e,n){return n.properties=n.properties||{},void 0===n.properties.color?t.color:n.properties.color},unit:t.unit,borderWidth:function(e,n){return n.properties=n.properties||{},void 0===n.properties.borderWidth?t.borderWidth:n.properties.borderWidth},borderColor:function(e,n){return n.properties=n.properties||{},void 0===n.properties.borderColor?t.borderColor:n.properties.borderColor},blurWidth:function(e,n){return n.properties=n.properties||{},void 0===n.properties.blurWidth?t.blurWidth:n.properties.blurWidth}},n=Object.assign({},e,this.layerStyle);this.$amapComponent.setStyle(n)}}},Fe=Object(y.a)(Ue,(function(){var t=this.$createElement;return(this._self._c||t)("div")}),[],!1,null,null,null).exports,Re={name:"el-amap-loca-icon",mixins:[d.a,Te],props:{},data:function(){return{converters:{},handlers:{}}},methods:{__initComponent:function(t){this.$amapComponent=new Loca.IconLayer(t),this.setSource(),this.setStyle(),this.$parentComponent.add(this.$amapComponent),this.initComplete()},setStyle:function(){var t=Object.assign({},{unit:"px",icon:"",iconSize:[20,20],rotation:0,opacity:1,offset:[0,0]},this.defaultStyleValue),e={unit:t.unit,icon:function(e,n){return n.properties=n.properties||{},void 0===n.properties.icon?t.icon:n.properties.icon},iconSize:function(e,n){return n.properties=n.properties||{},void 0===n.properties.iconSize?t.iconSize:n.properties.iconSize},rotation:function(e,n){return n.properties=n.properties||{},void 0===n.properties.rotation?t.rotation:n.properties.rotation},opacity:function(e,n){return n.properties=n.properties||{},void 0===n.properties.opacity?t.opacity:n.properties.opacity},offset:function(e,n){return n.properties=n.properties||{},void 0===n.properties.offset?t.offset:n.properties.offset}},n=Object.assign({},e,this.layerStyle);this.$amapComponent.setStyle(n)}}},qe=Object(y.a)(Re,(function(){var t=this.$createElement;return(this._self._c||t)("div")}),[],!1,null,null,null).exports,Ve={name:"el-amap-loca-prism",mixins:[d.a,Te],props:{cullface:{type:String},acceptLight:{type:Boolean},shininess:{type:Number},hasSide:{type:Boolean},depth:{type:Boolean}},data:function(){return{converters:{},handlers:{}}},methods:{__initComponent:function(t){this.$amapComponent=new Loca.PrismLayer(t),this.setSource(),this.setStyle(),this.$parentComponent.add(this.$amapComponent),this.initComplete()},setStyle:function(){var t=Object.assign({},{radius:20,unit:"px",sideNumber:3,rotation:0,altitude:0,height:100,topColor:"#fff",sideTopColor:"#fff",sideBottomColor:"#fff"},this.defaultStyleValue),e={radius:t.radius,unit:t.unit,sideNumber:t.sideNumber,rotation:function(e,n){return n.properties=n.properties||{},void 0===n.properties.rotation?t.rotation:n.properties.rotation},altitude:t.altitude,height:function(e,n){return n.properties=n.properties||{},void 0===n.properties.height?t.height:n.properties.height},topColor:function(e,n){return n.properties=n.properties||{},void 0===n.properties.topColor?t.topColor:n.properties.topColor},sideTopColor:function(e,n){return n.properties=n.properties||{},void 0===n.properties.sideTopColor?t.sideTopColor:n.properties.sideTopColor},sideBottomColor:function(e,n){return n.properties=n.properties||{},void 0===n.properties.sideBottomColor?t.sideBottomColor:n.properties.sideBottomColor}},n=Object.assign({},e,this.layerStyle);this.$amapComponent.setStyle(n)}}},He=Object(y.a)(Ve,(function(){var t=this.$createElement;return(this._self._c||t)("div")}),[],!1,null,null,null).exports,Je={name:"el-amap-loca-line",mixins:[d.a,Te],props:{},data:function(){return{converters:{},handlers:{}}},methods:{__initComponent:function(t){this.$amapComponent=new Loca.LineLayer(t),this.setSource(),this.setStyle(),this.$parentComponent.add(this.$amapComponent),this.initComplete()},setStyle:function(){var t=Object.assign({},{color:"#fff",lineWidth:2,altitude:0,borderWidth:0,borderColor:"#fff",dashArray:[10,0,10,0]},this.defaultStyleValue),e={color:function(e,n){return n.properties=n.properties||{},void 0===n.properties.color?t.color:n.properties.color},lineWidth:function(e,n){return n.properties=n.properties||{},void 0===n.properties.lineWidth?t.lineWidth:n.properties.lineWidth},altitude:function(e,n){return n.properties=n.properties||{},void 0===n.properties.altitude?t.altitude:n.properties.altitude},borderWidth:function(e,n){return n.properties=n.properties||{},void 0===n.properties.borderWidth?t.borderWidth:n.properties.borderWidth},borderColor:function(e,n){return n.properties=n.properties||{},void 0===n.properties.borderColor?t.borderColor:n.properties.borderColor},dashArray:function(e,n){return n.properties=n.properties||{},void 0===n.properties.dashArray?t.dashArray:n.properties.dashArray}},n=Object.assign({},e,this.layerStyle);this.$amapComponent.setStyle(n)}}},Ge=Object(y.a)(Je,(function(){var t=this.$createElement;return(this._self._c||t)("div")}),[],!1,null,null,null).exports,Ze={name:"el-amap-loca-polygon",mixins:[d.a,Te],props:{cullface:{type:String},acceptLight:{type:Boolean},shininess:{type:Number},hasSide:{type:Boolean},hasBottom:{type:Boolean,default:!1},blockHide:{type:Boolean,default:!0},depth:{type:Boolean},labelsLayerOptions:{type:Object}},data:function(){return{converters:{},handlers:{}}},methods:{__initComponent:function(t){this.$amapComponent=new Loca.PolygonLayer(t),this.setSource(),this.setStyle(),this.$parentComponent.add(this.$amapComponent),this.initComplete()},setStyle:function(){var t={topColor:"#fff",sideTopColor:"#fff",sideBottomColor:"#fff",bottomColor:"#fff",altitude:0,height:0,texture:null,textureSize:[20,3],label:void 0,labelAltitude:0},e=Object.assign({},t,this.defaultStyleValue),n={topColor:function(t,n){return n.properties=n.properties||{},void 0===n.properties.topColor?e.topColor:n.properties.topColor},sideTopColor:function(t,n){return n.properties=n.properties||{},void 0===n.properties.sideTopColor?e.sideTopColor:n.properties.sideTopColor},sideBottomColor:function(t,n){return n.properties=n.properties||{},void 0===n.properties.sideBottomColor?e.sideBottomColor:n.properties.sideBottomColor},bottomColor:function(t,n){return n.properties=n.properties||{},void 0===n.properties.bottomColor?e.bottomColor:n.properties.bottomColor},altitude:function(t,n){return n.properties=n.properties||{},void 0===n.properties.altitude?e.altitude:n.properties.altitude},height:function(t,n){return n.properties=n.properties||{},void 0===n.properties.height?e.height:n.properties.height},texture:e.texture,textureSize:function(t,n){return n.properties=n.properties||{},void 0===n.properties.textureSize?e.textureSize:n.properties.textureSize},label:function(t,n){return n.properties=n.properties||{},void 0===n.properties.label?e.label:n.properties.label},labelAltitude:function(t,n){return n.properties=n.properties||{},void 0===n.properties.labelAltitude?e.labelAltitude:n.properties.labelAltitude}},o=Object.assign({},n,this.layerStyle);this.$amapComponent.setStyle(o)}}},Xe=Object(y.a)(Ze,(function(){var t=this.$createElement;return(this._self._c||t)("div")}),[],!1,null,null,null).exports,Ke={name:"el-amap-loca-link",mixins:[d.a,Te],props:{},data:function(){return{converters:{},handlers:{}}},methods:{__initComponent:function(t){this.$amapComponent=new Loca.LinkLayer(t),this.setSource(),this.setStyle(),this.$parentComponent.add(this.$amapComponent),this.initComplete()},setStyle:function(){var t=Object.assign({},{lineColors:["rgba(255,255,255,1)","rgba(255,255,255,0)"],height:100,smoothSteps:100},this.defaultStyleValue),e={lineColors:function(e,n){return n.properties=n.properties||{},void 0===n.properties.lineColors?t.lineColors:n.properties.lineColors},height:function(e,n){return n.properties=n.properties||{},void 0===n.properties.height?t.height:n.properties.height},smoothSteps:function(e,n){return n.properties=n.properties||{},void 0===n.properties.smoothSteps?t.smoothSteps:n.properties.smoothSteps}},n=Object.assign({},e,this.layerStyle);this.$amapComponent.setStyle(n)}}},Qe=Object(y.a)(Ke,(function(){var t=this.$createElement;return(this._self._c||t)("div")}),[],!1,null,null,null).exports,Ye={name:"el-amap-loca-heatmap",mixins:[d.a,Te],props:{depth:{type:Boolean}},data:function(){return{converters:{},handlers:{}}},methods:{__initComponent:function(t){this.$amapComponent=new Loca.HeatMapLayer(t),this.setSource(),this.setStyle(),this.$parentComponent.add(this.$amapComponent),this.initComplete()},setStyle:function(){var t=Object.assign({},{radius:20,value:10,gradient:{.5:"blue",.65:"rgb(117,211,248)",.7:"rgb(0, 255, 0)",.9:"#ffea00",1:"red"},opacity:[0,1],height:100,heightBezier:[.4,.2,.4,.8],max:null,min:null,unit:"px",difference:!1},this.defaultStyleValue),e={radius:function(e,n){return n.properties=n.properties||{},void 0===n.properties.radius?t.radius:n.properties.radius},value:function(e,n){return n.properties=n.properties||{},void 0===n.properties.value?t.value:n.properties.value},gradient:t.gradient,opacity:t.opacity,height:t.height,heightBezier:t.heightBezier,max:t.max,min:t.min,unit:t.unit,difference:t.difference},n=Object.assign({},e,this.layerStyle);this.$amapComponent.setStyle(n)}}},tn=Object(y.a)(Ye,(function(){var t=this.$createElement;return(this._self._c||t)("div")}),[],!1,null,null,null).exports,en={name:"el-amap-loca-hexagon",mixins:[d.a,Te],props:{cullface:{type:String},acceptLight:{type:Boolean},shininess:{type:Number},hasSide:{type:Boolean},depth:{type:Boolean}},data:function(){return{converters:{},handlers:{}}},methods:{__initComponent:function(t){this.$amapComponent=new Loca.HexagonLayer(t),this.setSource(),this.setStyle(),this.$parentComponent.add(this.$amapComponent),this.initComplete()},setStyle:function(){var t=Object.assign({},{topColor:"#fff",sideTopColor:"#fff",sideBottomColor:"#fff",altitude:0,height:0,radius:1e3,gap:0,unit:"meter"},this.defaultStyleValue),e={topColor:function(e,n){return n.properties=n.properties||{},void 0===n.properties.topColor?t.topColor:n.properties.topColor},sideTopColor:function(e,n){return n.properties=n.properties||{},void 0===n.properties.sideTopColor?t.sideTopColor:n.properties.sideTopColor},sideBottomColor:function(e,n){return n.properties=n.properties||{},void 0===n.properties.sideBottomColor?t.sideBottomColor:n.properties.sideBottomColor},altitude:function(e,n){return n.properties=n.properties||{},void 0===n.properties.altitude?t.altitude:n.properties.altitude},height:function(e,n){return n.properties=n.properties||{},void 0===n.properties.height?t.height:n.properties.height},radius:t.radius,gap:t.gap,unit:t.unit},n=Object.assign({},e,this.layerStyle);this.$amapComponent.setStyle(n)}}},nn=Object(y.a)(en,(function(){var t=this.$createElement;return(this._self._c||t)("div")}),[],!1,null,null,null).exports,on={name:"el-amap-loca-grid",mixins:[d.a,Te],props:{cullface:{type:String},acceptLight:{type:Boolean},shininess:{type:Number},hasSide:{type:Boolean},depth:{type:Boolean}},data:function(){return{converters:{},handlers:{}}},methods:{__initComponent:function(t){this.$amapComponent=new Loca.GridLayer(t),this.setSource(),this.setStyle(),this.$parentComponent.add(this.$amapComponent),this.initComplete()},setStyle:function(){var t=Object.assign({},{topColor:"#fff",sideTopColor:"#fff",sideBottomColor:"#fff",altitude:0,height:0,radius:1e3,gap:0,unit:"meter"},this.defaultStyleValue),e={topColor:function(e,n){return n.properties=n.properties||{},void 0===n.properties.topColor?t.topColor:n.properties.topColor},sideTopColor:function(e,n){return n.properties=n.properties||{},void 0===n.properties.sideTopColor?t.sideTopColor:n.properties.sideTopColor},sideBottomColor:function(e,n){return n.properties=n.properties||{},void 0===n.properties.sideBottomColor?t.sideBottomColor:n.properties.sideBottomColor},altitude:function(e,n){return n.properties=n.properties||{},void 0===n.properties.altitude?t.altitude:n.properties.altitude},height:function(e,n){return n.properties=n.properties||{},void 0===n.properties.height?t.height:n.properties.height},radius:t.radius,gap:t.gap,unit:t.unit},n=Object.assign({},e,this.layerStyle);this.$amapComponent.setStyle(n)}}},rn=Object(y.a)(on,(function(){var t=this.$createElement;return(this._self._c||t)("div")}),[],!1,null,null,null).exports,an={name:"el-amap-loca-scatter",mixins:[d.a,Te],props:{},data:function(){return{converters:{},handlers:{}}},methods:{__initComponent:function(t){this.$amapComponent=new Loca.ScatterLayer(t),this.setSource(),this.setStyle(),this.$parentComponent.add(this.$amapComponent),this.initComplete()},setStyle:function(){var t=Object.assign({},{size:[20,20],rotation:0,color:"rgba(200,200,200,1)",altitude:0,borderWidth:0,borderColor:"rgba(250,250,250,1)",texture:null,unit:"px",animate:!1,duration:0},this.defaultStyleValue),e={size:function(e,n){return n.properties=n.properties||{},void 0===n.properties.size?t.size:n.properties.size},rotation:function(e,n){return n.properties=n.properties||{},void 0===n.properties.rotation?t.rotation:n.properties.rotation},color:function(e,n){return n.properties=n.properties||{},void 0===n.properties.color?t.color:n.properties.color},altitude:function(e,n){return n.properties=n.properties||{},void 0===n.properties.altitude?t.altitude:n.properties.altitude},borderWidth:function(e,n){return n.properties=n.properties||{},void 0===n.properties.borderWidth?t.borderWidth:n.properties.borderWidth},borderColor:function(e,n){return n.properties=n.properties||{},void 0===n.properties.borderColor?t.borderColor:n.properties.borderColor},texture:t.texture,unit:t.unit,animate:t.animate,duration:t.duration},n=Object.assign({},e,this.layerStyle);this.$amapComponent.setStyle(n)}}},pn=Object(y.a)(an,(function(){var t=this.$createElement;return(this._self._c||t)("div")}),[],!1,null,null,null).exports,sn={name:"el-amap-loca-pulse-line",mixins:[d.a,Te],props:{depth:{type:Boolean}},data:function(){return{converters:{},handlers:{}}},methods:{__initComponent:function(t){this.$amapComponent=new Loca.PulseLineLayer(t),this.setSource(),this.setStyle(),this.$parentComponent.add(this.$amapComponent),this.initComplete()},setStyle:function(){var t=Object.assign({},{lineWidth:1,headColor:"rgba(0, 0, 0, 0.75)",trailColor:"rgba(0, 0, 0, 0.25)",altitude:0,interval:1,duration:2e3},this.defaultStyleValue),e={lineWidth:function(e,n){return n.properties=n.properties||{},void 0===n.properties.lineWidth?t.lineWidth:n.properties.lineWidth},headColor:function(e,n){return n.properties=n.properties||{},void 0===n.properties.headColor?t.headColor:n.properties.headColor},trailColor:function(e,n){return n.properties=n.properties||{},void 0===n.properties.trailColor?t.trailColor:n.properties.trailColor},altitude:t.altitude,interval:t.interval,duration:t.duration},n=Object.assign({},e,this.layerStyle);this.$amapComponent.setStyle(n)}}},ln=Object(y.a)(sn,(function(){var t=this.$createElement;return(this._self._c||t)("div")}),[],!1,null,null,null).exports,un={name:"el-amap-loca-pulse-link",mixins:[d.a,Te],props:{depth:{type:Boolean}},data:function(){return{converters:{},handlers:{}}},methods:{__initComponent:function(t){this.$amapComponent=new Loca.PulseLinkLayer(t),this.setSource(),this.setStyle(),this.$parentComponent.add(this.$amapComponent),this.initComplete()},setStyle:function(){var t=Object.assign({},{lineColors:["#fff"],height:100,maxHeightScale:0,smoothSteps:50,lineWidth:[1,1],unit:"px",dash:[4e3,0,4e3,0],speed:100,headColor:"rgba(0, 0, 0, 0.75)",trailColor:"rgba(0, 0, 0, 0.25)",flowLength:100},this.defaultStyleValue),e={lineColors:function(e,n){return n.properties=n.properties||{},void 0===n.properties.lineColors?t.lineColors:n.properties.lineColors},height:function(e,n){return n.properties=n.properties||{},void 0===n.properties.height?t.height:n.properties.height},maxHeightScale:function(e,n){return n.properties=n.properties||{},void 0===n.properties.maxHeightScale?t.maxHeightScale:n.properties.maxHeightScale},smoothSteps:function(e,n){return n.properties=n.properties||{},void 0===n.properties.smoothSteps?t.smoothSteps:n.properties.smoothSteps},lineWidth:function(e,n){return n.properties=n.properties||{},void 0===n.properties.lineWidth?t.lineWidth:n.properties.lineWidth},unit:t.unit,dash:function(e,n){return n.properties=n.properties||{},void 0===n.properties.dash?t.dash:n.properties.dash},speed:function(e,n){return n.properties=n.properties||{},void 0===n.properties.speed?t.speed:n.properties.speed},headColor:function(e,n){return n.properties=n.properties||{},void 0===n.properties.headColor?t.headColor:n.properties.headColor},trailColor:function(e,n){return n.properties=n.properties||{},void 0===n.properties.trailColor?t.trailColor:n.properties.trailColor},flowLength:t.flowLength},n=Object.assign({},e,this.layerStyle);this.$amapComponent.setStyle(n)}}},cn=Object(y.a)(un,(function(){var t=this.$createElement;return(this._self._c||t)("div")}),[],!1,null,null,null).exports,mn={name:"el-amap-loca-z-marker",mixins:[d.a,Te],props:{},data:function(){return{converters:{},handlers:{}}},methods:{__initComponent:function(t){this.$amapComponent=new Loca.ZMarkerLayer(t),this.setSource(),this.setStyle(),this.$parentComponent.add(this.$amapComponent),this.initComplete()},setStyle:function(){var t=Object.assign({},{unit:"px",content:"",size:[20,20],rotation:0,alwaysFront:!1,altitude:0},this.defaultStyleValue),e={unit:t.unit,content:function(e,n){return n.properties=n.properties||{},void 0===n.properties.content?t.content:n.properties.content},size:function(e,n){return n.properties=n.properties||{},void 0===n.properties.size?t.size:n.properties.size},rotation:function(e,n){return n.properties=n.properties||{},void 0===n.properties.rotation?t.rotation:n.properties.rotation},alwaysFront:t.alwaysFront,altitude:function(e,n){return n.properties=n.properties||{},void 0===n.properties.altitude?t.altitude:n.properties.altitude}},n=Object.assign({},e,this.layerStyle);this.$amapComponent.setStyle(n)}}},hn=Object(y.a)(mn,(function(){var t=this.$createElement;return(this._self._c||t)("div")}),[],!1,null,null,null).exports,dn={name:"ElAmapLocaAmbientLight",mixins:[d.a],props:{color:{type:String},intensity:{type:Number}},data:function(){return{converters:{},handlers:{}}},methods:{__initComponent:function(t){this.$amapComponent=new Loca.AmbientLight(t),this.$parentComponent.addLight(this.$amapComponent)},destroyComponent:function(){this.parentInstance.isDestroy||this.$parentComponent.removeLight(this.$amapComponent),this.$amapComponent=null,this.$parentComponent=null}},render:function(){return null}},fn=Object(y.a)(dn,void 0,void 0,!1,null,null,null).exports,yn={name:"ElAmapLocaDirectionalLight",mixins:[d.a],props:{color:{type:String},intensity:{type:Number},position:{type:Array,required:!0},target:{type:Array}},data:function(){return{converters:{},handlers:{}}},methods:{__initComponent:function(t){this.$amapComponent=new Loca.DirectionalLight(t),this.$parentComponent.addLight(this.$amapComponent)},destroyComponent:function(){this.parentInstance.isDestroy||this.$parentComponent.removeLight(this.$amapComponent),this.$amapComponent=null,this.$parentComponent=null}},render:function(){return null}},Cn=Object(y.a)(yn,void 0,void 0,!1,null,null,null).exports,vn={name:"ElAmapLocaPointLight",mixins:[d.a],props:{color:{type:String},intensity:{type:Number},position:{type:Array,required:!0},distance:{type:Number}},data:function(){return{converters:{},handlers:{}}},methods:{__initComponent:function(t){this.$amapComponent=new Loca.PointLight(t),this.$parentComponent.addLight(this.$amapComponent)},destroyComponent:function(){this.parentInstance.isDestroy||this.$parentComponent.removeLight(this.$amapComponent),this.$amapComponent=null,this.$parentComponent=null}},render:function(){return null}},$n=Object(y.a)(vn,void 0,void 0,!1,null,null,null).exports,bn={name:"el-amap-loca-laser",mixins:[d.a,Te],props:{depth:{type:Boolean,default:!0}},data:function(){return{converters:{},handlers:{}}},methods:{__initComponent:function(t){this.$amapComponent=new Loca.LaserLayer(t),this.setSource(),this.setStyle(),this.$parentComponent.add(this.$amapComponent),this.initComplete()},setStyle:function(){var t={unit:"px",height:200,color:"rgba(255,255,0,0.5)",lineWidth:2,angle:0,trailLength:30,fadeOpacity:.2,duration:2e3,interval:0,delay:0,repeat:1/0},e=Object.assign({},t,this.defaultStyleValue),n={unit:"px",height:function(t,n){return n.properties=n.properties||{},void 0===n.properties.height?e.height:n.properties.height},color:function(t,n){return n.properties=n.properties||{},void 0===n.properties.color?e.color:n.properties.color},angle:0,lineWidth:2,trailLength:30,fadeOpacity:.2,duration:function(t,n){return n.properties=n.properties||{},void 0===n.properties.duration?e.duration:n.properties.duration},interval:function(t,n){return n.properties=n.properties||{},void 0===n.properties.interval?e.interval:n.properties.interval},delay:function(t,n){return n.properties=n.properties||{},void 0===n.properties.delay?e.delay:n.properties.delay},repeat:1/0},o=Object.assign({},n,this.layerStyle);this.$amapComponent.setStyle(o)}}},gn=[C,$,g,O,A,w,j,L,W,F,H,X,tt,rt,st,mt,yt,bt,St,xt,Et,Pt,Tt,qt,Gt,Qt,ne,ae,ue,me,de,ye,ve,ge,Oe,Ae,we,je,Le,Be,ze,Ne,De,Fe,qe,He,Ge,Xe,Qe,tn,nn,rn,pn,ln,cn,hn,fn,Cn,$n,Object(y.a)(bn,(function(){var t=this.$createElement;return(this._self._c||t)("div")}),[],!1,null,null,null).exports],_n={initAMapApiLoader:m,lazyAMapApiLoaderInstance:c,install:function(t){_n.installed||(t.config.optionMergeStrategies.deferredReady=t.config.optionMergeStrategies.created,gn.map((function(e){t.component(e.name,e),_n[r()(e.name).replace(/^El/,"")]=e})))}};"undefined"!=typeof window&&window.Vue&&function t(e){t.installed||_n.install(e)}(window.Vue);e.default=_n},function(t,e,n){"use strict";var o=function(){this.__data__=[],this.size=0};var r=function(t,e){return t===e||t!=t&&e!=e};var i=function(t,e){for(var n=t.length;n--;)if(r(t[n][0],e))return n;return-1},a=Array.prototype.splice;var p=function(t){var e=this.__data__,n=i(e,t);return!(n<0)&&(n==e.length-1?e.pop():a.call(e,n,1),--this.size,!0)};var s=function(t){var e=this.__data__,n=i(e,t);return n<0?void 0:e[n][1]};var l=function(t){return i(this.__data__,t)>-1};var u=function(t,e){var n=this.__data__,o=i(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this};function c(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}c.prototype.clear=o,c.prototype.delete=p,c.prototype.get=s,c.prototype.has=l,c.prototype.set=u;var m=c;var h=function(){this.__data__=new m,this.size=0};var d=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};var f=function(t){return this.__data__.get(t)};var y=function(t){return this.__data__.has(t)},C=n(2),v=C.a.Symbol,$=Object.prototype,b=$.hasOwnProperty,g=$.toString,_=v?v.toStringTag:void 0;var O=function(t){var e=b.call(t,_),n=t[_];try{t[_]=void 0;var o=!0}catch(t){}var r=g.call(t);return o&&(e?t[_]=n:delete t[_]),r},S=Object.prototype.toString;var A=function(t){return S.call(t)},M=v?v.toStringTag:void 0;var w=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":M&&M in Object(t)?O(t):A(t)};var x=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};var j,k=function(t){if(!x(t))return!1;var e=w(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e},L=C.a["__core-js_shared__"],E=(j=/[^.]+$/.exec(L&&L.keys&&L.keys.IE_PROTO||""))?"Symbol(src)_1."+j:"";var B=function(t){return!!E&&E in t},I=Function.prototype.toString;var z=function(t){if(null!=t){try{return I.call(t)}catch(t){}try{return t+""}catch(t){}}return""},P=/^\[object .+?Constructor\]$/,N=Function.prototype,W=Object.prototype,D=N.toString,T=W.hasOwnProperty,U=RegExp("^"+D.call(T).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var F=function(t){return!(!x(t)||B(t))&&(k(t)?U:P).test(z(t))};var R=function(t,e){return null==t?void 0:t[e]};var q=function(t,e){var n=R(t,e);return F(n)?n:void 0},V=q(C.a,"Map"),H=q(Object,"create");var J=function(){this.__data__=H?H(null):{},this.size=0};var G=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},Z=Object.prototype.hasOwnProperty;var X=function(t){var e=this.__data__;if(H){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return Z.call(e,t)?e[t]:void 0},K=Object.prototype.hasOwnProperty;var Q=function(t){var e=this.__data__;return H?void 0!==e[t]:K.call(e,t)};var Y=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=H&&void 0===e?"__lodash_hash_undefined__":e,this};function tt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}tt.prototype.clear=J,tt.prototype.delete=G,tt.prototype.get=X,tt.prototype.has=Q,tt.prototype.set=Y;var et=tt;var nt=function(){this.size=0,this.__data__={hash:new et,map:new(V||m),string:new et}};var ot=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};var rt=function(t,e){var n=t.__data__;return ot(e)?n["string"==typeof e?"string":"hash"]:n.map};var it=function(t){var e=rt(this,t).delete(t);return this.size-=e?1:0,e};var at=function(t){return rt(this,t).get(t)};var pt=function(t){return rt(this,t).has(t)};var st=function(t,e){var n=rt(this,t),o=n.size;return n.set(t,e),this.size+=n.size==o?0:1,this};function lt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}lt.prototype.clear=nt,lt.prototype.delete=it,lt.prototype.get=at,lt.prototype.has=pt,lt.prototype.set=st;var ut=lt;var ct=function(t,e){var n=this.__data__;if(n instanceof m){var o=n.__data__;if(!V||o.length<199)return o.push([t,e]),this.size=++n.size,this;n=this.__data__=new ut(o)}return n.set(t,e),this.size=n.size,this};function mt(t){var e=this.__data__=new m(t);this.size=e.size}mt.prototype.clear=h,mt.prototype.delete=d,mt.prototype.get=f,mt.prototype.has=y,mt.prototype.set=ct;var ht=mt,dt=function(){try{var t=q(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();var ft=function(t,e,n){"__proto__"==e&&dt?dt(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n};var yt=function(t,e,n){(void 0!==n&&!r(t[e],n)||void 0===n&&!(e in t))&&ft(t,e,n)};var Ct=function(t){return function(e,n,o){for(var r=-1,i=Object(e),a=o(e),p=a.length;p--;){var s=a[t?p:++r];if(!1===n(i[s],s,i))break}return e}}(),vt=n(11),$t=C.a.Uint8Array;var bt=function(t){var e=new t.constructor(t.byteLength);return new $t(e).set(new $t(t)),e};var gt=function(t,e){var n=e?bt(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)};var _t=function(t,e){var n=-1,o=t.length;for(e||(e=Array(o));++n<o;)e[n]=t[n];return e},Ot=Object.create,St=function(){function t(){}return function(e){if(!x(e))return{};if(Ot)return Ot(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();var At=function(t,e){return function(n){return t(e(n))}}(Object.getPrototypeOf,Object),Mt=Object.prototype;var wt=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Mt)};var xt=function(t){return"function"!=typeof t.constructor||wt(t)?{}:St(At(t))};var jt=function(t){return null!=t&&"object"==typeof t};var kt=function(t){return jt(t)&&"[object Arguments]"==w(t)},Lt=Object.prototype,Et=Lt.hasOwnProperty,Bt=Lt.propertyIsEnumerable,It=kt(function(){return arguments}())?kt:function(t){return jt(t)&&Et.call(t,"callee")&&!Bt.call(t,"callee")},zt=Array.isArray;var Pt=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991};var Nt=function(t){return null!=t&&Pt(t.length)&&!k(t)};var Wt=function(t){return jt(t)&&Nt(t)},Dt=n(5),Tt=Function.prototype,Ut=Object.prototype,Ft=Tt.toString,Rt=Ut.hasOwnProperty,qt=Ft.call(Object);var Vt=function(t){if(!jt(t)||"[object Object]"!=w(t))return!1;var e=At(t);if(null===e)return!0;var n=Rt.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&Ft.call(n)==qt},Ht={};Ht["[object Float32Array]"]=Ht["[object Float64Array]"]=Ht["[object Int8Array]"]=Ht["[object Int16Array]"]=Ht["[object Int32Array]"]=Ht["[object Uint8Array]"]=Ht["[object Uint8ClampedArray]"]=Ht["[object Uint16Array]"]=Ht["[object Uint32Array]"]=!0,Ht["[object Arguments]"]=Ht["[object Array]"]=Ht["[object ArrayBuffer]"]=Ht["[object Boolean]"]=Ht["[object DataView]"]=Ht["[object Date]"]=Ht["[object Error]"]=Ht["[object Function]"]=Ht["[object Map]"]=Ht["[object Number]"]=Ht["[object Object]"]=Ht["[object RegExp]"]=Ht["[object Set]"]=Ht["[object String]"]=Ht["[object WeakMap]"]=!1;var Jt=function(t){return jt(t)&&Pt(t.length)&&!!Ht[w(t)]};var Gt=function(t){return function(e){return t(e)}},Zt=n(9),Xt=Zt.a&&Zt.a.isTypedArray,Kt=Xt?Gt(Xt):Jt;var Qt=function(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]},Yt=Object.prototype.hasOwnProperty;var te=function(t,e,n){var o=t[e];Yt.call(t,e)&&r(o,n)&&(void 0!==n||e in t)||ft(t,e,n)};var ee=function(t,e,n,o){var r=!n;n||(n={});for(var i=-1,a=e.length;++i<a;){var p=e[i],s=o?o(n[p],t[p],p,n,t):void 0;void 0===s&&(s=t[p]),r?ft(n,p,s):te(n,p,s)}return n};var ne=function(t,e){for(var n=-1,o=Array(t);++n<t;)o[n]=e(n);return o},oe=/^(?:0|[1-9]\d*)$/;var re=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&oe.test(t))&&t>-1&&t%1==0&&t<e},ie=Object.prototype.hasOwnProperty;var ae=function(t,e){var n=zt(t),o=!n&&It(t),r=!n&&!o&&Object(Dt.a)(t),i=!n&&!o&&!r&&Kt(t),a=n||o||r||i,p=a?ne(t.length,String):[],s=p.length;for(var l in t)!e&&!ie.call(t,l)||a&&("length"==l||r&&("offset"==l||"parent"==l)||i&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||re(l,s))||p.push(l);return p};var pe=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e},se=Object.prototype.hasOwnProperty;var le=function(t){if(!x(t))return pe(t);var e=wt(t),n=[];for(var o in t)("constructor"!=o||!e&&se.call(t,o))&&n.push(o);return n};var ue=function(t){return Nt(t)?ae(t,!0):le(t)};var ce=function(t){return ee(t,ue(t))};var me=function(t,e,n,o,r,i,a){var p=Qt(t,n),s=Qt(e,n),l=a.get(s);if(l)yt(t,n,l);else{var u=i?i(p,s,n+"",t,e,a):void 0,c=void 0===u;if(c){var m=zt(s),h=!m&&Object(Dt.a)(s),d=!m&&!h&&Kt(s);u=s,m||h||d?zt(p)?u=p:Wt(p)?u=_t(p):h?(c=!1,u=Object(vt.a)(s,!0)):d?(c=!1,u=gt(s,!0)):u=[]:Vt(s)||It(s)?(u=p,It(p)?u=ce(p):x(p)&&!k(p)||(u=xt(s))):c=!1}c&&(a.set(s,u),r(u,s,o,i,a),a.delete(s)),yt(t,n,u)}};var he=function t(e,n,o,r,i){e!==n&&Ct(n,(function(a,p){if(i||(i=new ht),x(a))me(e,n,p,o,t,r,i);else{var s=r?r(Qt(e,p),a,p+"",e,n,i):void 0;void 0===s&&(s=a),yt(e,p,s)}}),ue)};var de=function(t){return t};var fe=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)},ye=Math.max;var Ce=function(t,e,n){return e=ye(void 0===e?t.length-1:e,0),function(){for(var o=arguments,r=-1,i=ye(o.length-e,0),a=Array(i);++r<i;)a[r]=o[e+r];r=-1;for(var p=Array(e+1);++r<e;)p[r]=o[r];return p[e]=n(a),fe(t,this,p)}};var ve=function(t){return function(){return t}},$e=dt?function(t,e){return dt(t,"toString",{configurable:!0,enumerable:!1,value:ve(e),writable:!0})}:de,be=Date.now;var ge=function(t){var e=0,n=0;return function(){var o=be(),r=16-(o-n);if(n=o,r>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}($e);var _e=function(t,e){return ge(Ce(t,e,de),t+"")};var Oe=function(t,e,n){if(!x(n))return!1;var o=typeof e;return!!("number"==o?Nt(n)&&re(e,n.length):"string"==o&&e in n)&&r(n[e],t)};var Se=function(t){return _e((function(e,n){var o=-1,r=n.length,i=r>1?n[r-1]:void 0,a=r>2?n[2]:void 0;for(i=t.length>3&&"function"==typeof i?(r--,i):void 0,a&&Oe(n[0],n[1],a)&&(i=r<3?void 0:i,r=1),e=Object(e);++o<r;){var p=n[o];p&&t(e,p,o,i)}return e}))}((function(t,e,n){he(t,e,n)}));e.a=Se}])})); |
|
//# sourceMappingURL=index.js.map
|