text: !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-wordcloud")):"function"==typeof define&&define.amd?define(["echarts/lib/echarts","echarts/lib/component/tooltip","echarts/lib/component/legend","echarts-wordcloud"],t):e.VeWordcloud=t(e.echarts)}(this,function(e){"use strict";e=e&&e.hasOwnProperty("default")?e.default:e;var t="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},i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e};function n(e,t){var i=null;return function(){var n=this,r=arguments;clearTimeout(i),i=setTimeout(function(){e.apply(n,r)},t)}}var r="function"==typeof Symbol&&"symbol"===t(Symbol.iterator)?function(e){return void 0===e?"undefined":t(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":void 0===e?"undefined":t(e)};function o(e){return Object.prototype.toString.call(e)}function a(e){return void 0===e?"undefined":r(e)}function s(e){return"[object Object]"===o(e)}function c(e){return"[object Array]"===o(e)}function l(e,t){return Object.prototype.hasOwnProperty.call(e,t)}var h=function(e,t,i,n){var r=i.dimension,o=void 0===r?e[0]:r,a=i.metrics,s=void 0===a?e[1]:a,l=i.color,h=void 0===l?"":l,d=i.sizeMax,u=void 0===d?60:d,f=i.sizeMin,p=void 0===f?12:f,m=i.shape,y=void 0===m?"circle":m,b=n.tooltipVisible,g=n.tooltipFormatter;return{series:function(e){var t=e.dimension,i=e.metrics,n=e.rows,r=e.color,o=e.sizeMax,a=e.sizeMin,s=e.shape,l={type:"wordCloud",textStyle:{normal:{color:!c(r)&&r?r:function(){return"rgb("+[Math.round(160*Math.random()),Math.round(160*Math.random()),Math.round(160*Math.random())].join(",")+")"}}},shape:s,sizeRange:[a,o]},h=c(r)?r.length:0,d=n.slice().map(function(e){var n={name:e[t],value:e[i]};return h>0&&(n.textStyle={normal:{color:r[Math.floor(Math.random()*h)]}}),n});return l.data=d,[l]}({dimension:o,metrics:s,rows:t,color:h,sizeMax:u,sizeMin:p,shape:y}),tooltip:b&&function(e){var t=e.tooltipFormatter;return{show:!0,formatter:function(e){var i=e.data,n=i.name,r=i.value;return t?t.apply(null,e):n+": "+r}}}({tooltipFormatter:g})}},d={th:3,mi:6,bi:9,tr:12},u={zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0,abbrLabel:{th:"k",mi:"m",bi:"b",tr:"t"}},f=1e12,p=1e9,m=1e6,y=1e3;function b(e,t,i,n){var r=e.toString().split("."),o=t-(n||0),a=2===r.length?Math.min(Math.max(r[1].length,o),t):o,s=Math.pow(10,a),c=(i(e+"e+"+a)/s).toFixed(a);if(n>t-a){var l=new RegExp("\\.?0{1,"+(n-(t-a))+"}$");c=c.replace(l,"")}return c}function g(e,t,i,n){var r=Math.abs(t),o=!1,a=!1,s="",c="",l=!1,h=void 0,u=void 0;i=i||"",t=t||0,~i.indexOf("(")?(o=!0,i=i.replace(/[(|)]/g,"")):(~i.indexOf("+")||~i.indexOf("-"))&&(u=~i.indexOf("+")?i.indexOf("+"):t<0?i.indexOf("-"):-1,i=i.replace(/[+|-]/g,"")),~i.indexOf("a")&&(h=!!(h=i.match(/a(k|m|b|t)?/))&&h[1],~i.indexOf(" a")&&(s=" "),i=i.replace(new RegExp(s+"a[kmbt]?"),""),r>=f&&!h||"t"===h?(s+=e.abbrLabel.tr,t/=f):r<f&&r>=p&&!h||"b"===h?(s+=e.abbrLabel.bi,t/=p):r<p&&r>=m&&!h||"m"===h?(s+=e.abbrLabel.mi,t/=m):(r<m&&r>=y&&!h||"k"===h)&&(s+=e.abbrLabel.th,t/=y)),~i.indexOf("[.]")&&(a=!0,i=i.replace("[.]","."));var g=t.toString().split(".")[0],v=i.split(".")[1],O=i.indexOf(","),x=(i.split(".")[0].split(",")[0].match(/0/g)||[]).length;if(v?(g=(c=~v.indexOf("[")?b(t,(v=(v=v.replace("]","")).split("["))[0].length+v[1].length,n,v[1].length):b(t,v.length,n)).split(".")[0],c=~c.indexOf(".")?"."+c.split(".")[1]:"",a&&0==+c.slice(1)&&(c="")):g=b(t,0,n),s&&!h&&+g>=1e3&&s!==d.trillion&&(g=""+ +g/1e3,s=d.million),~g.indexOf("-")&&(g=g.slice(1),l=!0),g.length<x)for(var j=x-g.length;j>0;j--)g="0"+g;O>-1&&(g=g.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,")),i.indexOf(".")||(g="");var z=g+c+(s||"");return o?z=(o&&l?"(":"")+z+(o&&l?")":""):u>=0?z=0===u?(l?"-":"+")+z:z+(l?"-":"+"):l&&(z="-"+z),z}function v(e,t){Object.keys(t).forEach(function(i){e[i]=t[i]})}var O={},x={};function j(e,t,i){return function(e,t,i){t=t||O.defaultFormat,i=i||Math.round;var n=void 0,r=void 0;if(0===e&&null!==O.zeroFormat)n=O.zeroFormat;else if(null===e&&null!==O.nullFormat)n=O.nullFormat;else{for(var o in x)if(x[o]&&t.match(x[o].regexp)){r=x[o].format;break}n=(r=r||g.bind(null,O))(e,t,i,j)}return n}(0===e||void 0===e?0:null===e||function(e){return"number"==typeof e&&isNaN(e)}(e)?null:"string"==typeof e?O.zeroFormat&&e===O.zeroFormat?0:O.nullFormat&&e===O.nullFormat||!e.replace(/[^0-9]+/g,"").length?null:+e:+e||null,t,i)}v(O,u),j.options=O,j._numberToFormat=g.bind(null,O),j.register=function(e,t){x[e]=t},j.unregister=function(e){x[e]=null},j.setOptions=function(e){v(O,e)},j.reset=function(){v(O,u)},j.register("percentage",{regexp:/%/,format:function(e,t,i,n){var r=~t.indexOf(" %")?" ":"",o=void 0;return n.options.scalePercentBy100&&(e*=100),t=t.replace(/\s?%/,""),~(o=n._numberToFormat(e,t,i)).indexOf(")")?((o=o.split("")).splice(-1,0,r+"%"),o=o.join("")):o=o+r+"%",o}});var z={render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"v-charts-component-loading"},[t("div",{staticClass:"loader"},[t("div",{staticClass:"loading-spinner"},[t("svg",{staticClass:"circular",attrs:{viewBox:"25 25 50 50"}},[t("circle",{staticClass:"path",attrs:{cx:"50",cy:"50",r:"20",fill:"none"}})])])])])},staticRenderFns:[]},S={render:function(){var e=this.$createElement;return(this._self._c||e)("div",{staticClass:"v-charts-data-empty"},[this._v(" 暂无数据 ")])},staticRenderFns:[]},w={categoryAxis:{axisLine:{show:!1},axisTick:{show:!1},splitLine:{show:!1}},valueAxis:{axisLine:{show:!1}},line:{smooth:!0},grid:{containLabel:!0,left:10,right:10}},k=["#19d4ae","#5ab1ef","#fa6e86","#ffb980","#0067a6","#c4b4e4","#d87a80","#9cbbff","#d9d0c7","#87a997","#d49ea2","#5b4947","#7ba3a8"],A=["initOptions","loading","dataEmpty","judgeWidth","widthChangeDelay"],C=["grid","dataZoom","visualMap","toolbox","title","legend","xAxis","yAxis","radar","tooltip","axisPointer","brush","geo","timeline","graphic","series","backgroundColor","textStyle"];function F(e,t){Object.keys(t).forEach(function(i){t[i]&&(e[i]=t[i])})}var E={render:function(e){return e("div",{class:[(t=this.$options.name||this.$options._componentTag,t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase())],style:this.canvasStyle},[e("div",{style:this.canvasStyle,class:{"v-charts-mask-status":this.dataEmpty||this.loading},ref:"canvas"}),e(S,{style:{display:this.dataEmpty?"":"none"}}),e(z,{style:{display:this.loading?"":"none"}}),this.$slots.default]);var t},props:{data:{type:[Object,Array],default:function(){return{}}},settings:{type:Object,default:function(){return{}}},width:{type:String,default:"auto"},height:{type:String,default:"400px"},beforeConfig:{type:Function},afterConfig:{type:Function},afterSetOption:{type:Function},afterSetOptionOnce:{type:Function},events:{type:Object},grid:{type:[Object,Array]},colors:{type:Array},tooltipVisible:{type:Boolean,default:!0},legendVisible:{type:Boolean,default:!0},legendPosition:{type:String},markLine:{type:Object},markArea:{type:Object},markPoint:{type:Object},visualMap:{type:[Object,Array]},dataZoom:{type:[Object,Array]},toolbox:{type:[Object,Array]},initOptions:{type:Object,default:function(){return{}}},title:[Object,Array],legend:[Object,Array],xAxis:[Object,Array],yAxis:[Object,Array],radar:Object,tooltip:Object,axisPointer:[Object,Array],brush:[Object,Array],geo:[Object,Array],timeline:[Object,Array],graphic:[Object,Array],series:[Object,Array],backgroundColor:[Object,String],textStyle:[Object,Array],animation:Object,theme:Object,themeName:String,loading:Boolean,dataEmpty:Boolean,extend:Object,judgeWidth:{type:Boolean,default:!1},widthChangeDelay:{type:Number,default:300},tooltipFormatter:{type:Function},resizeable:{type:Boolean,default:!0},resizeDelay:{type:Number,default:200},changeDelay:{type:Number,default:0},setOptionOpts:{type:[Boolean,Object],default:!0},cancelResizeCheck:Boolean,notSetUnchange:Array,log:Boolean},watch:{data:{deep:!0,handler:function(e){e&&this.changeHandler()}},settings:{deep:!0,handler:function(e){e.type&&this.chartLib&&(this.chartHandler=this.chartLib[e.type]),this.changeHandler()}},width:"nextTickResize",height:"nextTickResize",events:{deep:!0,handler:"createEventProxy"},theme:{deep:!0,handler:"themeChange"},themeName:"themeChange",resizeable:"resizeableHandler"},computed:{canvasStyle:function(){return{width:this.width,height:this.height,position:"relative"}},chartColor:function(){return this.colors||this.theme&&this.theme.color||k}},methods:{dataHandler:function(){if(this.chartHandler){var e=this.data,t=e,i=t.columns,n=void 0===i?[]:i,r=t.rows,o=void 0===r?[]:r,a={tooltipVisible:this.tooltipVisible,legendVisible:this.legendVisible,echarts:this.echarts,color:this.chartColor,tooltipFormatter:this.tooltipFormatter,_once:this._once};this.beforeConfig&&(e=this.beforeConfig(e));var s=this.chartHandler(n,o,this.settings,a);s&&("function"==typeof s.then?s.then(this.optionsHandler):this.optionsHandler(s))}},nextTickResize:function(){this.$nextTick(this.resize)},resize:function(){this.cancelResizeCheck?this.echartsResize():this.$el&&this.$el.clientWidth&&this.$el.clientHeight&&this.echartsResize()},echartsResize:function(){this.echarts&&this.echarts.resize()},optionsHandler:function(t){var n=this;if(this.legendPosition&&t.legend&&(t.legend[this.legendPosition]=10,~["left","right"].indexOf(this.legendPosition)&&(t.legend.top="middle",t.legend.orient="vertical")),t.color=this.chartColor,C.forEach(function(e){n[e]&&(t[e]=n[e])}),this.animation&&function(e,t){Object.keys(t).forEach(function(i){e[i]=t[i]})}(t,this.animation),this.markArea||this.markLine||this.markPoint){var r={markArea:this.markArea,markLine:this.markLine,markPoint:this.markPoint},o=t.series;c(o)?o.forEach(function(e){F(e,r)}):s(o)&&F(o,r)}this.extend&&function(e,t){Object.keys(t).forEach(function(n){var r=t[n];~n.indexOf(".")?function(e,t,i){if(t){var n=e,r=t.split(".");r.forEach(function(e,t){t===r.length-1?n[e]=i:(n[e]||(n[e]={}),n=n[e])})}}(e,n,r):"function"==typeof r?e[n]=r(e[n]):c(e[n])&&s(e[n][0])?e[n].forEach(function(t,o){e[n][o]=i({},t,r)}):s(e[n])?e[n]=i({},e[n],r):e[n]=r})}(t,this.extend),this.afterConfig&&(t=this.afterConfig(t));var h=this.setOptionOpts;!this.settings.bmap&&!this.settings.amap||s(h)||(h=!1),this.notSetUnchange&&this.notSetUnchange.length&&(this.notSetUnchange.forEach(function(e){var i,r=t[e];r&&(!function e(t,i){if(t===i)return!0;if(null===t||null===i||"object"!==a(t)||"object"!==a(i))return t===i;for(var n in t)if(l(t,n)){var r=t[n],o=i[n],s=a(r);if("undefined"===a(o))return!1;if("object"===s){if(!e(r,o))return!1}else if(r!==o)return!1}for(var c in i)if(l(i,c)&&"undefined"===a(t)[c])return!1;return!0}(r,n._store[e])?n._store[e]=(i=r,JSON.parse(JSON.stringify(i))):t[e]=void 0)}),s(h)?h.notMerge=!1:h=!1),this._isDestroyed||(this.log&&console.log(t),this.echarts.setOption(t,h),this.$emit("ready",this.echarts,t,e),this._once["ready-once"]||(this._once["ready-once"]=!0,this.$emit("ready-once",this.echarts,t,e)),this.judgeWidth&&this.judgeWidthHandler(t),this.afterSetOption&&this.afterSetOption(this.echarts,t,e),this.afterSetOptionOnce&&!this._once.afterSetOptionOnce&&(this._once.afterSetOptionOnce=!0,this.afterSetOptionOnce(this.echarts,t,e)))},judgeWidthHandler:function(e){var t=this,i=this.widthChangeDelay,n=this.resize;this.$el.clientWidth||this.$el.clientHeight?n():this.$nextTick(function(e){t.$el.clientWidth||t.$el.clientHeight?n():setTimeout(function(e){n(),t.$el.clientWidth&&t.$el.clientHeight||console.warn(" Can't get dom width or height ")},i)})},resizeableHandler:function(e){e&&!this._once.onresize&&this.addResizeListener(),!e&&this._once.onresize&&this.removeResizeListener()},init:function(){if(!this.echarts){var t=this.themeName||this.theme||w;this.echarts=e.init(this.$refs.canvas,t,this.initOptions),this.data&&this.changeHandler(),this.createEventProxy(),this.resizeable&&this.addResizeListener()}},addResizeListener:function(){window.addEventListener("resize",this.resizeHandler),this._once.onresize=!0},removeResizeListener:function(){window.removeEventListener("resize",this.resizeHandler),this._once.onresize=!1},addWatchToProps:function(){var e=this,t=this._watchers.map(function(e){return e.expression});Object.keys(this.$props).forEach(function(i){if(!~t.indexOf(i)&&!~A.indexOf(i)){var n={};~["[object Object]","[object Array]"].indexOf(o(e.$props[i]))&&(n.deep=!0),e.$watch(i,function(){e.changeHandler()},n)}})},createEventProxy:function(){var e=this,t=this,i=Object.keys(this.events||{});i.length&&i.forEach(function(i){-1===e.registeredEvents.indexOf(i)&&(e.registeredEvents.push(i),e.echarts.on(i,function(e){return function(){if(e in t.events){for(var i=arguments.length,n=Array(i),r=0;r<i;r++)n[r]=arguments[r];t.events[e].apply(null,n)}}}(i)))})},themeChange:function(e){this.clean(),this.echarts=null,this.init()},clean:function(){this.resizeable&&this.removeResizeListener(),this.echarts.dispose()}},created:function(){this.echarts=null,this.registeredEvents=[],this._once={},this._store={},this.resizeHandler=n(this.resize,this.resizeDelay),this.changeHandler=n(this.dataHandler,this.changeDelay),this.addWatchToProps()},mounted:function(){this.init()},beforeDestroy:function(){this.clean()},_numerify:j};return i({},E,{name:"VeWordcloud",data:function(){return this.chartHandler=h,{}}})});
  