!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t(require("echarts/lib/echarts"),require("echarts/lib/component/tooltip"),require("echarts/lib/component/legend"),require("echarts/extension/bmap/bmap")):"function"==typeof define&&define.amd?define(["echarts/lib/echarts","echarts/lib/component/tooltip","echarts/lib/component/legend","echarts/extension/bmap/bmap"],t):e.VeBmap=t(e.echarts)}(this,function(e){"use strict";e=e&&e.hasOwnProperty("default")?e.default:e;var t={th:3,mi:6,bi:9,tr:12},i={zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0,abbrLabel:{th:"k",mi:"m",bi:"b",tr:"t"}},n=1e12,r=1e9,a=1e6,o=1e3;function s(e,t,i,n){var r=e.toString().split("."),a=t-(n||0),o=2===r.length?Math.min(Math.max(r[1].length,a),t):a,s=Math.pow(10,o),c=(i(e+"e+"+o)/s).toFixed(o);if(n>t-o){var l=new RegExp("\\.?0{1,"+(n-(t-o))+"}$");c=c.replace(l,"")}return c}function c(e,i,c,l){var h=Math.abs(i),d=!1,f=!1,u="",p="",b=!1,m=void 0,y=void 0;c=c||"",i=i||0,~c.indexOf("(")?(d=!0,c=c.replace(/[(|)]/g,"")):(~c.indexOf("+")||~c.indexOf("-"))&&(y=~c.indexOf("+")?c.indexOf("+"):i<0?c.indexOf("-"):-1,c=c.replace(/[+|-]/g,"")),~c.indexOf("a")&&(m=!!(m=c.match(/a(k|m|b|t)?/))&&m[1],~c.indexOf(" a")&&(u=" "),c=c.replace(new RegExp(u+"a[kmbt]?"),""),h>=n&&!m||"t"===m?(u+=e.abbrLabel.tr,i/=n):h=r&&!m||"b"===m?(u+=e.abbrLabel.bi,i/=r):h=a&&!m||"m"===m?(u+=e.abbrLabel.mi,i/=a):(h=o&&!m||"k"===m)&&(u+=e.abbrLabel.th,i/=o)),~c.indexOf("[.]")&&(f=!0,c=c.replace("[.]","."));var g=i.toString().split(".")[0],v=c.split(".")[1],O=c.indexOf(","),x=(c.split(".")[0].split(",")[0].match(/0/g)||[]).length;if(v?(g=(p=~v.indexOf("[")?s(i,(v=(v=v.replace("]","")).split("["))[0].length+v[1].length,l,v[1].length):s(i,v.length,l)).split(".")[0],p=~p.indexOf(".")?"."+p.split(".")[1]:"",f&&0==+p.slice(1)&&(p="")):g=s(i,0,l),u&&!m&&+g>=1e3&&u!==t.trillion&&(g=""+ +g/1e3,u=t.million),~g.indexOf("-")&&(g=g.slice(1),b=!0),g.length0;j--)g="0"+g;O>-1&&(g=g.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,")),c.indexOf(".")||(g="");var z=g+p+(u||"");return d?z=(d&&b?"(":"")+z+(d&&b?")":""):y>=0?z=0===y?(b?"-":"+")+z:z+(b?"-":"+"):b&&(z="-"+z),z}function l(e,t){Object.keys(t).forEach(function(i){e[i]=t[i]})}var h={},d={};function f(e,t,i){return function(e,t,i){t=t||h.defaultFormat,i=i||Math.round;var n=void 0,r=void 0;if(0===e&&null!==h.zeroFormat)n=h.zeroFormat;else if(null===e&&null!==h.nullFormat)n=h.nullFormat;else{for(var a in d)if(d[a]&&t.match(d[a].regexp)){r=d[a].format;break}n=(r=r||c.bind(null,h))(e,t,i,f)}return n}(0===e||void 0===e?0:null===e||function(e){return"number"==typeof e&&isNaN(e)}(e)?null:"string"==typeof e?h.zeroFormat&&e===h.zeroFormat?0:h.nullFormat&&e===h.nullFormat||!e.replace(/[^0-9]+/g,"").length?null:+e:+e||null,t,i)}l(h,i),f.options=h,f._numberToFormat=c.bind(null,h),f.register=function(e,t){d[e]=t},f.unregister=function(e){d[e]=null},f.setOptions=function(e){l(h,e)},f.reset=function(){l(h,i)},f.register("percentage",{regexp:/%/,format:function(e,t,i,n){var r=~t.indexOf(" %")?" ":"",a=void 0;return n.options.scalePercentBy100&&(e*=100),t=t.replace(/\s?%/,""),~(a=n._numberToFormat(e,t,i)).indexOf(")")?((a=a.split("")).splice(-1,0,r+"%"),a=a.join("")):a=a+r+"%",a}});var u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p=Object.assign||function(e){for(var t=1;t