/*! Created by CSJ. */ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.infovis=t():e.infovis=t()}(this,function(){return function(e){function t(i){if(r[i])return r[i].exports;var o=r[i]={exports:{},id:i,loaded:!1};return e[i].call(o.exports,o,o.exports,t),o.loaded=!0,o.exports}var r={};return t.m=e,t.c=r,t.p="",t(0)}([function(e,t,r){e.exports=r(141)},function(e,t){function r(e){if("object"==typeof e&&null!==e){var t=e;if(e instanceof Array){t=[];for(var i=0,o=e.length;o>i;i++)t[i]=r(e[i])}else if(!C(e)&&!M(e)){t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=r(e[n]))}return t}return e}function i(e,t,o){if(!w(t)||!w(e))return o?r(t):e;for(var n in t)if(t.hasOwnProperty(n)){var a=e[n],s=t[n];!w(s)||!w(a)||b(s)||b(a)||M(s)||M(a)||C(s)||C(a)?!o&&n in e||(e[n]=r(t[n],!0)):i(a,s,o)}return e}function o(e,t){for(var r=e[0],o=1,n=e.length;n>o;o++)r=i(r,e[o],t);return r}function n(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);return e}function a(e,t,r){for(var i in t)t.hasOwnProperty(i)&&(r?null!=t[i]:null==e[i])&&(e[i]=t[i]);return e}function s(){return document.createElement("canvas")}function l(){return P||(P=N.createCanvas().getContext("2d")),P}function c(e,t){if(e){if(e.indexOf)return e.indexOf(t);for(var r=0,i=e.length;i>r;r++)if(e[r]===t)return r}return-1}function h(e,t){function r(){}var i=e.prototype;r.prototype=t.prototype,e.prototype=new r;for(var o in i)e.prototype[o]=i[o];e.prototype.constructor=e,e.superClass=t}function u(e,t,r){e="prototype"in e?e.prototype:e,t="prototype"in t?t.prototype:t,a(e,t,r)}function d(e){return e?"string"==typeof e?!1:"number"==typeof e.length:void 0}function f(e,t,r){if(e&&t)if(e.forEach&&e.forEach===D)e.forEach(t,r);else if(e.length===+e.length)for(var i=0,o=e.length;o>i;i++)t.call(r,e[i],i,e);else for(var n in e)e.hasOwnProperty(n)&&t.call(r,e[n],n,e)}function p(e,t,r){if(e&&t){if(e.map&&e.map===z)return e.map(t,r);for(var i=[],o=0,n=e.length;n>o;o++)i.push(t.call(r,e[o],o,e));return i}}function m(e,t,r,i){if(e&&t){if(e.reduce&&e.reduce===V)return e.reduce(t,r,i);for(var o=0,n=e.length;n>o;o++)r=t.call(i,r,e[o],o,e);return r}}function g(e,t,r){if(e&&t){if(e.filter&&e.filter===O)return e.filter(t,r);for(var i=[],o=0,n=e.length;n>o;o++)t.call(r,e[o],o,e)&&i.push(e[o]);return i}}function v(e,t,r){if(e&&t)for(var i=0,o=e.length;o>i;i++)if(t.call(r,e[i],i,e))return e[i]}function y(e,t){var r=R.call(arguments,2);return function(){return e.apply(t,r.concat(R.call(arguments)))}}function x(e){var t=R.call(arguments,1);return function(){return e.apply(this,t.concat(R.call(arguments)))}}function b(e){return"[object Array]"===k.call(e)}function _(e){return"function"==typeof e}function S(e){return"[object String]"===k.call(e)}function w(e){var t=typeof e;return"function"===t||!!e&&"object"==t}function C(e){return!!L[k.call(e)]}function M(e){return e&&1===e.nodeType&&"string"==typeof e.nodeName}function A(e){for(var t=0,r=arguments.length;r>t;t++)if(null!=arguments[t])return arguments[t]}function I(){return Function.call.apply(R,arguments)}function T(e,t){if(!e)throw new Error(t)}var P,L={"[object Function]":1,"[object RegExp]":1,"[object Date]":1,"[object Error]":1,"[object CanvasGradient]":1,"[object CanvasPattern]":1,"[object Image]":1},k=Object.prototype.toString,E=Array.prototype,D=E.forEach,O=E.filter,R=E.slice,z=E.map,V=E.reduce,N={inherits:h,mixin:u,clone:r,merge:i,mergeAll:o,extend:n,defaults:a,getContext:l,createCanvas:s,indexOf:c,slice:I,find:v,isArrayLike:d,each:f,map:p,reduce:m,filter:g,bind:y,curry:x,isArray:b,isString:S,isObject:w,isFunction:_,isBuildInObject:C,isDom:M,retrieve:A,assert:T,noop:function(){}};e.exports=N},function(e,t,r){function i(e){return function(t,r,i){t=t&&t.toLowerCase(),k.prototype[e].call(this,t,r,i)}}function o(){k.call(this)}function n(e,t,r){function i(e,t){return e.prio-t.prio}r=r||{},"string"==typeof t&&(t=J[t]),this.id,this.group,this._dom=e,this._zr=T.init(e,{renderer:r.renderer||"canvas",devicePixelRatio:r.devicePixelRatio}),this._theme=P.clone(t),this._chartsViews=[],this._chartsMap={},this._componentsViews=[],this._componentsMap={},this._api=new b(this),this._coordSysMgr=new _,k.call(this),this._messageCenter=new o,this._initEvents(),this.resize=P.bind(this.resize,this),this._pendingActions=[],E(Q,i),E(X,i),this._zr.animation.on("frame",this._onframe,this)}function a(e,t){var r=this._model;r&&r.eachComponent({mainType:"series",query:t},function(i,o){var n=this._chartsMap[i.__viewId];n&&n.__alive&&n[e](i,r,this._api,t)},this)}function s(e,t,r){var i=this._api;D(this._componentsViews,function(o){var n=o.__model;o[e](n,t,i,r),g(n,o)},this),t.eachSeries(function(o,n){var a=this._chartsMap[o.__viewId];a[e](o,t,i,r),g(o,a),m(o,a)},this),p(this._zr,t)}function l(e,t){for(var r="component"===e,i=r?this._componentsViews:this._chartsViews,o=r?this._componentsMap:this._chartsMap,n=this._zr,a=0;at.get("hoverLayerThreshold")&&!y.node&&r.traverse(function(e){e.isGroup||(e.useHoverLayer=!0)})}function m(e,t){var r=0;t.group.traverse(function(e){"group"===e.type||e.ignore||r++});var i=+e.get("progressive"),o=r>e.get("progressiveThreshold")&&i&&!y.node;o&&t.group.traverse(function(e){e.isGroup||(e.progressive=o?Math.floor(r++/i):-1,o&&e.stopAnimation(!0))});var n=e.get("blendMode")||null;t.group.traverse(function(e){e.isGroup||e.setStyle("blend",n)})}function g(e,t){var r=e.get("z"),i=e.get("zlevel");t.group.traverse(function(e){"group"!==e.type&&(null!=r&&(e.z=r),null!=i&&(e.zlevel=i))})}function v(e){function t(e,t){for(var r=0;r0?t.animateTo(r,l,h||0,c,n):(t.attr(r),n&&n())}else t.attr(r),n&&n()}var g=r(1),v=r(425),y=Math.round,x=r(13),b=r(21),_=r(20),S=r(5),w=(r(41),{});w.Group=r(54),w.Image=r(76),w.Text=r(134),w.Circle=r(416),w.Sector=r(422),w.Ring=r(421),w.Polygon=r(418),w.Polyline=r(419),w.Rect=r(420),w.Line=r(417),w.BezierCurve=r(415),w.Arc=r(414),w.CompoundPath=r(409),w.LinearGradient=r(131),w.RadialGradient=r(410),w.BoundingRect=r(7),w.extendShape=function(e){return x.extend(e)},w.extendPath=function(e,t){return v.extendFromString(e,t)},w.makePath=function(e,t,r,i){var o=v.createFromString(e,t),n=o.getBoundingRect();if(r){var a=n.width/n.height;if("center"===i){var s,l=r.height*a;l<=r.width?s=r.height:(l=r.width,s=l/a);var c=r.x+r.width/2,h=r.y+r.height/2;r.x=c-l/2,r.y=h-s/2,r.width=l,r.height=s}this.resizePath(o,r)}return o},w.mergePath=v.mergePath,w.resizePath=function(e,t){if(e.applyTransform){var r=e.getBoundingRect(),i=r.calculateTransform(t);e.applyTransform(i)}},w.subPixelOptimizeLine=function(e){var t=w.subPixelOptimize,r=e.shape,i=e.style.lineWidth;return y(2*r.x1)===y(2*r.x2)&&(r.x1=r.x2=t(r.x1,i,!0)),y(2*r.y1)===y(2*r.y2)&&(r.y1=r.y2=t(r.y1,i,!0)),e},w.subPixelOptimizeRect=function(e){var t=w.subPixelOptimize,r=e.shape,i=e.style.lineWidth,o=r.x,n=r.y,a=r.width,s=r.height;return r.x=t(r.x,i,!0),r.y=t(r.y,i,!0),r.width=Math.max(t(o+a,i,!1)-r.x,0===a?0:1),r.height=Math.max(t(n+s,i,!1)-r.y,0===s?0:1),e},w.subPixelOptimize=function(e,t,r){var i=y(2*e);return(i+y(t))%2===0?i/2:(i+(r?1:-1))/2},w.setHoverStyle=function(e,t){"group"===e.type?e.traverse(function(e){"group"!==e.type&&h(e,t)}):h(e,t),e.on("mouseover",u).on("mouseout",d),e.on("emphasis",f).on("normal",p)},w.setText=function(e,t,r){var i=t.getShallow("position")||"inside",o=i.indexOf("inside")>=0?"white":r,n=t.getModel("textStyle");g.extend(e,{textDistance:t.getShallow("distance")||5,textFont:n.getFont(),textPosition:i,textFill:n.getTextColor()||o})},w.updateProps=function(e,t,r,i,o){m(!0,e,t,r,i,o)},w.initProps=function(e,t,r,i,o){m(!1,e,t,r,i,o)},w.getTransform=function(e,t){for(var r=_.identity([]);e&&e!==t;)_.mul(r,e.getLocalTransform(),r),e=e.parent;return r},w.applyTransform=function(e,t,r){return r&&(t=_.invert([],t)),S.applyTransform([],e,t)},w.transformDirection=function(e,t,r){var i=0===t[4]||0===t[5]||0===t[0]?1:Math.abs(2*t[4]/t[0]),o=0===t[4]||0===t[5]||0===t[2]?1:Math.abs(2*t[4]/t[2]),n=["left"===e?-i:"right"===e?i:0,"top"===e?-o:"bottom"===e?o:0];return n=w.applyTransform(n,t,r),Math.abs(n[0])>Math.abs(n[1])?n[0]>0?"right":"left":n[1]>0?"bottom":"top"},w.groupTransition=function(e,t,r,i){function o(e){var t={};return e.traverse(function(e){!e.isGroup&&e.anid&&(t[e.anid]=e)}),t}function n(e){var t={position:S.clone(e.position),rotation:e.rotation};return e.shape&&(t.shape=g.extend({},e.shape)),t}if(e&&t){var a=o(e);t.traverse(function(e){if(!e.isGroup&&e.anid){var t=a[e.anid];if(t){var i=n(e);e.attr(n(t)),w.updateProps(e,i,r,e.dataIndex)}}})}},e.exports=w},function(e,t){function r(e){return e.replace(/^\s+/,"").replace(/\s+$/,"")}var i={},o=1e-4;i.linearMap=function(e,t,r,i){var o=t[1]-t[0],n=r[1]-r[0];if(0===o)return 0===n?r[0]:(r[0]+r[1])/2;if(i)if(o>0){if(e<=t[0])return r[0];if(e>=t[1])return r[1]}else{if(e>=t[0])return r[0];if(e<=t[1])return r[1]}else{if(e===t[0])return r[0];if(e===t[1])return r[1]}return(e-t[0])/o*n+r[0]},i.parsePercent=function(e,t){switch(e){case"center":case"middle":e="50%";break;case"left":case"top":e="0%";break;case"right":case"bottom":e="100%"}return"string"==typeof e?r(e).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):null==e?NaN:+e},i.round=function(e,t){return null==t&&(t=10),+(+e).toFixed(t)},i.asc=function(e){return e.sort(function(e,t){return e-t}),e},i.getPrecision=function(e){if(e=+e,isNaN(e))return 0;for(var t=1,r=0;Math.round(e*t)/t!==e;)t*=10,r++;return r},i.getPrecisionSafe=function(e){var t=e.toString(),r=t.indexOf(".");return 0>r?0:t.length-1-r},i.getPixelPrecision=function(e,t){var r=Math.log,i=Math.LN10,o=Math.floor(r(e[1]-e[0])/i),n=Math.round(r(Math.abs(t[1]-t[0]))/i);return Math.max(-o+n,0)},i.MAX_SAFE_INTEGER=9007199254740991,i.remRadian=function(e){var t=2*Math.PI;return(e%t+t)%t},i.isRadianAroundZero=function(e){return e>-o&&o>e},i.parseDate=function(e){if(e instanceof Date)return e;if("string"==typeof e){var t=new Date(e);return isNaN(+t)&&(t=new Date(new Date(e.replace(/-/g,"/"))-new Date("1970/01/01"))),t}return new Date(Math.round(e))},i.quantity=function(e){return Math.pow(10,Math.floor(Math.log(e)/Math.LN10))},i.nice=function(e,t){var r,o=i.quantity(e),n=e/o;return r=t?1.5>n?1:2.5>n?2:4>n?3:7>n?5:10:1>n?1:2>n?2:3>n?3:5>n?5:10,r*o},e.exports=i},function(e,t){var r="undefined"==typeof Float32Array?Array:Float32Array,i={create:function(e,t){var i=new r(2);return null==e&&(e=0),null==t&&(t=0),i[0]=e,i[1]=t,i},copy:function(e,t){return e[0]=t[0],e[1]=t[1],e},clone:function(e){var t=new r(2);return t[0]=e[0],t[1]=e[1],t},set:function(e,t,r){return e[0]=t,e[1]=r,e},add:function(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e},scaleAndAdd:function(e,t,r,i){return e[0]=t[0]+r[0]*i,e[1]=t[1]+r[1]*i,e},sub:function(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e},len:function(e){return Math.sqrt(this.lenSquare(e))},lenSquare:function(e){return e[0]*e[0]+e[1]*e[1]},mul:function(e,t,r){return e[0]=t[0]*r[0],e[1]=t[1]*r[1],e},div:function(e,t,r){return e[0]=t[0]/r[0],e[1]=t[1]/r[1],e},dot:function(e,t){return e[0]*t[0]+e[1]*t[1]},scale:function(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e},normalize:function(e,t){var r=i.len(t);return 0===r?(e[0]=0,e[1]=0):(e[0]=t[0]/r,e[1]=t[1]/r),e},distance:function(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))},distanceSquare:function(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])},negate:function(e,t){return e[0]=-t[0],e[1]=-t[1],e},lerp:function(e,t,r,i){return e[0]=t[0]+i*(r[0]-t[0]),e[1]=t[1]+i*(r[1]-t[1]),e},applyTransform:function(e,t,r){var i=t[0],o=t[1];return e[0]=r[0]*i+r[2]*o+r[4],e[1]=r[1]*i+r[3]*o+r[5],e},min:function(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e},max:function(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e}};i.length=i.len,i.lengthSquare=i.lenSquare,i.dist=i.distance,i.distSquare=i.distanceSquare,e.exports=i},function(e,t,r){"use strict";function i(e,t,r,i,o){var n=0,a=0;null==i&&(i=1/0),null==o&&(o=1/0);var s=0;t.eachChild(function(l,c){var h,u,d=l.position,f=l.getBoundingRect(),p=t.childAt(c+1),m=p&&p.getBoundingRect();if("horizontal"===e){var g=f.width+(m?-m.x+f.x:0);h=n+g,h>i||l.newline?(n=0,h=g,a+=s+r,s=f.height):s=Math.max(s,f.height)}else{var v=f.height+(m?-m.y+f.y:0);u=a+v,u>o||l.newline?(n+=s+r,a=0,u=v,s=f.width):s=Math.max(s,f.width)}l.newline||(d[0]=n,d[1]=a,"horizontal"===e?n=h+r:a=u+r)})}var o=r(1),n=r(7),a=r(4),s=r(10),l=a.parsePercent,c=o.each,h={},u=["left","right","top","bottom","width","height"];h.box=i,h.vbox=o.curry(i,"vertical"),h.hbox=o.curry(i,"horizontal"),h.getAvailableSize=function(e,t,r){var i=t.width,o=t.height,n=l(e.x,i),a=l(e.y,o),c=l(e.x2,i),h=l(e.y2,o);return(isNaN(n)||isNaN(parseFloat(e.x)))&&(n=0),(isNaN(c)||isNaN(parseFloat(e.x2)))&&(c=i),(isNaN(a)||isNaN(parseFloat(e.y)))&&(a=0),(isNaN(h)||isNaN(parseFloat(e.y2)))&&(h=o),r=s.normalizeCssArray(r||0),{width:Math.max(c-n-r[1]-r[3],0),height:Math.max(h-a-r[0]-r[2],0)}},h.getLayoutRect=function(e,t,r){r=s.normalizeCssArray(r||0);var i=t.width,o=t.height,a=l(e.left,i),c=l(e.top,o),h=l(e.right,i),u=l(e.bottom,o),d=l(e.width,i),f=l(e.height,o),p=r[2]+r[0],m=r[1]+r[3],g=e.aspect;switch(isNaN(d)&&(d=i-h-m-a),isNaN(f)&&(f=o-u-p-c),isNaN(d)&&isNaN(f)&&(g>i/o?d=.8*i:f=.8*o),null!=g&&(isNaN(d)&&(d=g*f),isNaN(f)&&(f=d/g)),isNaN(a)&&(a=i-h-d-m),isNaN(c)&&(c=o-u-f-p),e.left||e.right){case"center":a=i/2-d/2-r[3];break;case"right":a=i-d-m}switch(e.top||e.bottom){case"middle":case"center":c=o/2-f/2-r[0];break;case"bottom":c=o-f-p}a=a||0,c=c||0,isNaN(d)&&(d=i-a-(h||0)),isNaN(f)&&(f=o-c-(u||0));var v=new n(a+r[3],c+r[0],d,f);return v.margin=r,v},h.positionGroup=function(e,t,r,i){var n=e.getBoundingRect();t=o.extend(o.clone(t),{width:n.width,height:n.height}),t=h.getLayoutRect(t,r,i),e.attr("position",[t.x-n.x,t.y-n.y])},h.mergeLayoutParam=function(e,t,r){function i(i){var o={},s=0,l={},h=0,u=r.ignoreSize?1:2;if(c(i,function(t){l[t]=e[t]}),c(i,function(e){n(t,e)&&(o[e]=l[e]=t[e]),a(o,e)&&s++,a(l,e)&&h++}),h!==u&&s){if(s>=u)return o;for(var d=0;di||r>s||l>n||o>c)},contain:function(e,t){var r=this;return e>=r.x&&e<=r.x+r.width&&t>=r.y&&t<=r.y+r.height},clone:function(){return new i(this.x,this.y,this.width,this.height)},copy:function(e){this.x=e.x,this.y=e.y,this.width=e.width,this.height=e.height}},e.exports=i},function(e,t,r){(function(t){function i(e){return d.isArray(e)||(e=[e]),e}function o(e,t){var r=e.dimensions,i=new v(d.map(r,e.getDimensionInfo,e),e.hostModel);g(i,e);for(var o=i._storage={},n=e._storage,a=0;a=0?o[s]=new l.constructor(n[s].length):o[s]=n[s]}return i}var n="undefined",a="undefined"==typeof window?t:window,s=typeof a.Float64Array===n?Array:a.Float64Array,l=typeof a.Int32Array===n?Array:a.Int32Array,c={"float":s,"int":l,ordinal:Array,number:Array,time:Array},h=r(9),u=r(49),d=r(1),f=r(12),p=d.isObject,m=["stackedOn","hasItemOption","_nameList","_idList","_rawData"],g=function(e,t){d.each(m.concat(t.__wrappedMethods||[]),function(r){t.hasOwnProperty(r)&&(e[r]=t[r])}),e.__wrappedMethods=t.__wrappedMethods},v=function(e,t){e=e||["x","y"];for(var r={},i=[],o=0;o0&&(S+="__ec__"+h[_]),h[_]++),S&&(l[u]=S)}this._nameList=t,this._idList=l},y.count=function(){return this.indices.length},y.get=function(e,t,r){var i=this._storage,o=this.indices[t];if(null==o)return NaN;var n=i[e]&&i[e][o];if(r){var a=this._dimensionInfos[e];if(a&&a.stackable)for(var s=this.stackedOn;s;){var l=s.get(e,t);(n>=0&&l>0||0>=n&&0>l)&&(n+=l),s=s.stackedOn}}return n},y.getValues=function(e,t,r){var i=[];d.isArray(e)||(r=t,t=e,e=this.dimensions);for(var o=0,n=e.length;n>o;o++)i.push(this.get(e[o],t,r));return i},y.hasValue=function(e){for(var t=this.dimensions,r=this._dimensionInfos,i=0,o=t.length;o>i;i++)if("ordinal"!==r[t[i]].type&&isNaN(this.get(t[i],e)))return!1;return!0},y.getDataExtent=function(e,t){e=this.getDimension(e);var r=this._storage[e],i=this.getDimensionInfo(e);t=i&&i.stackable&&t;var o,n=(this._extent||(this._extent={}))[e+!!t];if(n)return n;if(r){for(var a=1/0,s=-(1/0),l=0,c=this.count();c>l;l++)o=this.get(e,l,t),a>o&&(a=o),o>s&&(s=o);return this._extent[e+!!t]=[a,s]}return[1/0,-(1/0)]},y.getSum=function(e,t){var r=this._storage[e],i=0;if(r)for(var o=0,n=this.count();n>o;o++){var a=this.get(e,o,t);isNaN(a)||(i+=a)}return i},y.indexOf=function(e,t){var r=this._storage,i=r[e],o=this.indices;if(i)for(var n=0,a=o.length;a>n;n++){var s=o[n];if(i[s]===t)return n}return-1},y.indexOfName=function(e){for(var t=this.indices,r=this._nameList,i=0,o=t.length;o>i;i++){var n=t[i];if(r[n]===e)return i}return-1},y.indexOfRawIndex=function(e){for(var t=this.indices,r=0,i=t.length-1;i>=r;){var o=(r+i)/2|0;if(t[o]e))return o;i=o-1}}return-1},y.indexOfNearest=function(e,t,r,i){var o=this._storage,n=o[e];null==i&&(i=1/0);var a=-1;if(n)for(var s=Number.MAX_VALUE,l=0,c=this.count();c>l;l++){var h=t-this.get(e,l,r),u=Math.abs(h);i>=h&&(s>u||u===s&&h>0)&&(s=u,a=l)}return a},y.getRawIndex=function(e){var t=this.indices[e];return null==t?-1:t},y.getRawDataItem=function(e){return this._rawData[this.getRawIndex(e)]},y.getName=function(e){return this._nameList[this.indices[e]]||""},y.getId=function(e){return this._idList[this.indices[e]]||this.getRawIndex(e)+""},y.each=function(e,t,r,o){"function"==typeof e&&(o=r,r=t,t=e,e=[]),e=d.map(i(e),this.getDimension,this);var n=[],a=e.length,s=this.indices;o=o||this;for(var l=0;lc;c++)n[c]=this.get(e[c],l,r);n[c]=l,t.apply(o,n)}},y.filterSelf=function(e,t,r,o){"function"==typeof e&&(o=r,r=t,t=e,e=[]),e=d.map(i(e),this.getDimension,this);var n=[],a=[],s=e.length,l=this.indices;o=o||this;for(var c=0;cu;u++)a[u]=this.get(e[u],c,r);a[u]=c,h=t.apply(o,a)}h&&n.push(l[c])}return this.indices=n,this._extent={},this},y.mapArray=function(e,t,r,i){"function"==typeof e&&(i=r,r=t,t=e,e=[]);var o=[];return this.each(e,function(){o.push(t&&t.apply(this,arguments))},r,i),o},y.map=function(e,t,r,n){e=d.map(i(e),this.getDimension,this);var a=o(this,e),s=a.indices=this.indices,l=a._storage,c=[];return this.each(e,function(){var r=arguments[arguments.length-1],i=t&&t.apply(this,arguments);if(null!=i){"number"==typeof i&&(c[0]=i,i=c);for(var o=0;om;m+=d){d>p-m&&(d=p-m,h.length=d);for(var g=0;d>g;g++){var v=l[m+g];h[g]=f[v],u[g]=v}var y=r(h),v=u[i(h,y)||0];f[v]=y,c.push(v)}return n},y.getItemModel=function(e){var t=this.hostModel;return e=this.indices[e],new h(this._rawData[e],t,t&&t.ecModel)},y.diff=function(e){var t=this._idList,r=e&&e._idList;return new u(e?e.indices:[],this.indices,function(e){return r[e]||e+""},function(e){return t[e]||e+""})},y.getVisual=function(e){var t=this._visual;return t&&t[e]},y.setVisual=function(e,t){if(p(e))for(var r in e)e.hasOwnProperty(r)&&this.setVisual(r,e[r]);else this._visual=this._visual||{},this._visual[e]=t},y.setLayout=function(e,t){if(p(e))for(var r in e)e.hasOwnProperty(r)&&this.setLayout(r,e[r]);else this._layout[e]=t},y.getLayout=function(e){return this._layout[e]},y.getItemLayout=function(e){return this._itemLayouts[e]},y.setItemLayout=function(e,t,r){this._itemLayouts[e]=r?d.extend(this._itemLayouts[e]||{},t):t},y.clearItemLayouts=function(){this._itemLayouts.length=0},y.getItemVisual=function(e,t,r){var i=this._itemVisuals[e],o=i&&i[t];return null!=o||r?o:this.getVisual(t)},y.setItemVisual=function(e,t,r){var i=this._itemVisuals[e]||{};if(this._itemVisuals[e]=i,p(t))for(var o in t)t.hasOwnProperty(o)&&(i[o]=t[o]);else i[t]=r},y.clearAllVisual=function(){this._visual={},this._itemVisuals=[]};var x=function(e){e.seriesIndex=this.seriesIndex,e.dataIndex=this.dataIndex,e.dataType=this.dataType};y.setItemGraphicEl=function(e,t){var r=this.hostModel;t&&(t.dataIndex=e,t.dataType=this.dataType,t.seriesIndex=r&&r.seriesIndex,"group"===t.type&&t.traverse(x,t)),this._graphicEls[e]=t},y.getItemGraphicEl=function(e){return this._graphicEls[e]},y.eachItemGraphicEl=function(e,t){d.each(this._graphicEls,function(r,i){r&&e&&e.call(t,r,i)})},y.cloneShallow=function(){var e=d.map(this.dimensions,this.getDimensionInfo,this),t=new v(e,this.hostModel);return t._storage=this._storage,g(t,this),t.indices=this.indices.slice(),this._extent&&(t._extent=d.extend({},this._extent)),t},y.wrapMethod=function(e,t){var r=this[e];"function"==typeof r&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(e),this[e]=function(){var e=r.apply(this,arguments);return t.apply(this,[e].concat(d.slice(arguments)))})},y.TRANSFERABLE_METHODS=["cloneShallow","downSample","map"],y.CHANGABLE_METHODS=["filterSelf"],e.exports=v}).call(t,function(){return this}())},function(e,t,r){function i(e,t,r){this.parentModel=t,this.ecModel=r,this.option=e}var o=r(1),n=r(31);i.prototype={constructor:i,init:null,mergeOption:function(e){o.merge(this.option,e,!0)},get:function(e,t){if(!e)return this.option;"string"==typeof e&&(e=e.split("."));for(var r=this.option,i=this.parentModel,o=0;o1?"."+e[1]:""))},a.toCamelCase=function(e){return e.toLowerCase().replace(/-(.)/g,function(e,t){return t.toUpperCase()})},a.normalizeCssArray=function(e){var t=e.length;return"number"==typeof e?[e,e,e,e]:2===t?[e[0],e[1],e[0],e[1]]:3===t?[e[0],e[1],e[2],e[1]]:e},a.encodeHTML=function(e){return String(e).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")};var s=["a","b","c","d","e","f","g"],l=function(e,t){return"{"+e+(null==t?"":t)+"}"};a.formatTpl=function(e,t){i.isArray(t)||(t=[t]);var r=t.length;if(!r)return"";for(var o=t[0].$vars||[],n=0;nc;c++)for(var h=0;he?"0"+e:e};a.formatTime=function(e,t){"week"!==e&&"month"!==e&&"quarter"!==e&&"half-year"!==e&&"year"!==e||(e="MM-dd\nyyyy");var r=o.parseDate(t),i=r.getFullYear(),n=r.getMonth()+1,a=r.getDate(),s=r.getHours(),l=r.getMinutes(),h=r.getSeconds();return e=e.replace("MM",c(n)).toLowerCase().replace("yyyy",i).replace("yy",i%100).replace("dd",c(a)).replace("d",a).replace("hh",c(s)).replace("h",s).replace("mm",c(l)).replace("m",l).replace("ss",c(h)).replace("s",h)},a.capitalFirst=function(e){return e?e.charAt(0).toUpperCase()+e.substr(1):e},a.truncateText=n.truncateText,e.exports=a},function(e,t,r){function i(e){var t=[];return n.each(h.getClassesByMainType(e),function(e){a.apply(t,e.prototype.dependencies||[])}),n.map(t,function(e){return l.parseClassType(e).main})}var o=r(9),n=r(1),a=Array.prototype.push,s=r(69),l=r(31),c=r(6),h=o.extend({type:"component",id:"",name:"",mainType:"",subType:"",componentIndex:0,defaultOption:null,ecModel:null,dependentModels:[],uid:null,layoutMode:null,$constructor:function(e,t,r,i){o.call(this,e,t,r,i),n.extend(this,i),this.uid=s.getUID("componentModel")},init:function(e,t,r,i){this.mergeDefaultAndTheme(e,r)},mergeDefaultAndTheme:function(e,t){var r=this.layoutMode,i=r?c.getLayoutParams(e):{},o=t.getTheme();n.merge(e,o.get(this.mainType)),n.merge(e,this.getDefaultOption()),r&&c.mergeLayoutParam(e,i,r)},mergeOption:function(e){n.merge(this.option,e,!0);var t=this.layoutMode;t&&c.mergeLayoutParam(this.option,e,t)},optionUpdated:function(e,t){},getDefaultOption:function(){if(!this.hasOwnProperty("__defaultOption")){for(var e=[],t=this.constructor;t;){var r=t.prototype.defaultOption;r&&e.push(r),t=t.superClass}for(var i={},o=e.length-1;o>=0;o--)i=n.merge(i,e[o],!0);this.__defaultOption=i}return this.__defaultOption}});l.enableClassManagement(h,{registerWhenExtend:!0}),s.enableSubTypeDefaulter(h),s.enableTopologicalTravel(h,i), n.mixin(h,r(382)),e.exports=h},function(e,t,r){var i=r(10),o=r(4),n=r(9),a=r(1),s={};s.normalizeToArray=function(e){return e instanceof Array?e:null==e?[]:[e]},s.defaultEmphasis=function(e,t){if(e){var r=e.emphasis=e.emphasis||{},i=e.normal=e.normal||{};a.each(t,function(e){var t=a.retrieve(r[e],i[e]);null!=t&&(r[e]=t)})}},s.LABEL_OPTIONS=["position","show","textStyle","distance","formatter"],s.getDataItemValue=function(e){return e&&(null==e.value?e:e.value)},s.isDataItemOption=function(e){return a.isObject(e)&&!(e instanceof Array)},s.converDataValue=function(e,t){var r=t&&t.type;return"ordinal"===r?e:("time"!==r||isFinite(e)||null==e||"-"===e||(e=+o.parseDate(e)),null==e||""===e?NaN:+e)},s.createDataFormatModel=function(e,t){var r=new n;return a.mixin(r,s.dataFormatMixin),r.seriesIndex=t.seriesIndex,r.name=t.name||"",r.mainType=t.mainType,r.subType=t.subType,r.getData=function(){return e},r},s.dataFormatMixin={getDataParams:function(e,t){var r=this.getData(t),i=this.seriesIndex,o=this.name,n=this.getRawValue(e,t),a=r.getRawIndex(e),s=r.getName(e,!0),l=r.getRawDataItem(e);return{componentType:this.mainType,componentSubType:this.subType,seriesType:"series"===this.mainType?this.subType:null,seriesIndex:i,seriesName:o,name:s,dataIndex:a,data:l,dataType:t,value:n,color:r.getItemVisual(e,"color"),$vars:["seriesName","name","value"]}},getFormattedLabel:function(e,t,r,o){t=t||"normal";var n=this.getData(r),a=n.getItemModel(e),s=this.getDataParams(e,r);null!=o&&s.value instanceof Array&&(s.value=s.value[o]);var l=a.get(["label",t,"formatter"]);return"function"==typeof l?(s.status=t,l(s)):"string"==typeof l?i.formatTpl(l,s):void 0},getRawValue:function(e,t){var r=this.getData(t),i=r.getRawDataItem(e);return null!=i?!a.isObject(i)||i instanceof Array?i:i.value:void 0},formatTooltip:a.noop},s.mappingToExists=function(e,t){t=(t||[]).slice();var r=a.map(e||[],function(e,t){return{exist:e}});return a.each(t,function(e,i){if(a.isObject(e)){for(var o=0;o=r.length&&r.push({option:e})}}),r},s.isIdInner=function(e){return a.isObject(e)&&e.id&&0===(e.id+"").indexOf("\x00_ec_\x00")},s.compressBatches=function(e,t){function r(e,t,r){for(var i=0,o=e.length;o>i;i++)for(var n=e[i].seriesId,a=s.normalizeToArray(e[i].dataIndex),l=r&&r[n],c=0,h=a.length;h>c;c++){var u=a[c];l&&l[u]?l[u]=null:(t[n]||(t[n]={}))[u]=1}}function i(e,t){var r=[];for(var o in e)if(e.hasOwnProperty(o)&&null!=e[o])if(t)r.push(+o);else{var n=i(e[o],!0);n.length&&r.push({seriesId:o,dataIndex:n})}return r}var o={},n={};return r(e||[],o),r(t||[],n,o),[i(o),i(n)]},e.exports=s},function(e,t,r){function i(e){o.call(this,e),this.path=new a}var o=r(55),n=r(1),a=r(40),s=r(405),l=r(132),c=l.prototype.getCanvasPattern,h=Math.abs;i.prototype={constructor:i,type:"path",__dirtyPath:!0,strokeContainThreshold:5,brush:function(e,t){var r=this.style,i=this.path,o=r.hasStroke(),n=r.hasFill(),a=r.fill,s=r.stroke,l=n&&!!a.colorStops,h=o&&!!s.colorStops,u=n&&!!a.image,d=o&&!!s.image;if(r.bind(e,this,t),this.setTransform(e),this.__dirty){var f=this.getBoundingRect();l&&(this._fillGradient=r.getGradient(e,a,f)),h&&(this._strokeGradient=r.getGradient(e,s,f))}l?e.fillStyle=this._fillGradient:u&&(e.fillStyle=c.call(a,e)),h?e.strokeStyle=this._strokeGradient:d&&(e.strokeStyle=c.call(s,e));var p=r.lineDash,m=r.lineDashOffset,g=!!e.setLineDash,v=this.getGlobalScale();i.setScale(v[0],v[1]),this.__dirtyPath||p&&!g&&o?(i=this.path.beginPath(e),p&&!g&&(i.setLineDash(p),i.setLineDashOffset(m)),this.buildPath(i,this.shape,!1),this.__dirtyPath=!1):(e.beginPath(),this.path.rebuildPath(e)),n&&i.fill(e),p&&g&&(e.setLineDash(p),e.lineDashOffset=m),o&&i.stroke(e),p&&g&&e.setLineDash([]),this.restoreTransform(e),(r.text||0===r.text)&&this.drawRectText(e,this.getBoundingRect())},buildPath:function(e,t,r){},getBoundingRect:function(){var e=this._rect,t=this.style,r=!e;if(r){var i=this.path;this.__dirtyPath&&(i.beginPath(),this.buildPath(i,this.shape,!1)),e=i.getBoundingRect()}if(this._rect=e,t.hasStroke()){var o=this._rectWithStroke||(this._rectWithStroke=e.clone());if(this.__dirty||r){o.copy(e);var n=t.lineWidth,a=t.strokeNoScale?this.getLineScale():1;t.hasFill()||(n=Math.max(n,this.strokeContainThreshold||4)),a>1e-10&&(o.width+=n/a,o.height+=n/a,o.x-=n/a/2,o.y-=n/a/2)}return o}return e},contain:function(e,t){var r=this.transformCoordToLocal(e,t),i=this.getBoundingRect(),o=this.style;if(e=r[0],t=r[1],i.contain(e,t)){var n=this.path.data;if(o.hasStroke()){var a=o.lineWidth,l=o.strokeNoScale?this.getLineScale():1;if(l>1e-10&&(o.hasFill()||(a=Math.max(a,this.strokeContainThreshold)),s.containStroke(n,a/l,e,t)))return!0}if(o.hasFill())return s.contain(n,e,t)}return!1},dirty:function(e){null==e&&(e=!0),e&&(this.__dirtyPath=e,this._rect=null),this.__dirty=!0,this.__zr&&this.__zr.refresh(),this.__clipTarget&&this.__clipTarget.dirty()},animateShape:function(e){return this.animate("shape",e)},attrKV:function(e,t){"shape"===e?(this.setShape(t),this.__dirtyPath=!0,this._rect=null):o.prototype.attrKV.call(this,e,t)},setShape:function(e,t){var r=this.shape;if(r){if(n.isObject(e))for(var i in e)r[i]=e[i];else r[e]=t;this.dirty(!0)}return this},getLineScale:function(){var e=this.transform;return e&&h(e[0]-1)>1e-10&&h(e[3]-1)>1e-10?Math.sqrt(h(e[0]*e[3]-e[2]*e[1])):1}},i.extend=function(e){var t=function(t){i.call(this,t),e.style&&this.style.extendFrom(e.style,!1);var r=e.shape;if(r){this.shape=this.shape||{};var o=this.shape;for(var n in r)!o.hasOwnProperty(n)&&r.hasOwnProperty(n)&&(o[n]=r[n])}e.init&&e.init.call(this,t)};n.inherits(t,i);for(var r in e)"style"!==r&&"shape"!==r&&(t.prototype[r]=e[r]);return t},n.inherits(i,o),e.exports=i},function(e,t,r){"use strict";var i=r(1),o=r(10),n=r(12),a=r(11),s=r(121),l=r(15),c=o.encodeHTML,h=o.addCommas,u=a.extend({type:"series.__base__",seriesIndex:0,coordinateSystem:null,defaultOption:null,legendDataProvider:null,visualColorAccessPath:"itemStyle.normal.color",init:function(e,t,r,i){this.seriesIndex=this.componentIndex,this.mergeDefaultAndTheme(e,r),this._dataBeforeProcessed=this.getInitialData(e,r),this._data=this._dataBeforeProcessed.cloneShallow()},mergeDefaultAndTheme:function(e,t){i.merge(e,t.getTheme().get(this.subType)),i.merge(e,this.getDefaultOption()),n.defaultEmphasis(e.label,n.LABEL_OPTIONS),this.fillDataTextStyle(e.data)},mergeOption:function(e,t){e=i.merge(this.option,e,!0),this.fillDataTextStyle(e.data);var r=this.getInitialData(e,t);r&&(this._data=r,this._dataBeforeProcessed=r.cloneShallow())},fillDataTextStyle:function(e){if(e)for(var t=0;t',p=this.name;return"\x00-"===p&&(p=""),t?f+c(this.name)+" : "+l:(p&&c(p)+"
")+f+(u?c(u)+" : "+l:l)},ifEnableAnimation:function(){if(l.node)return!1;var e=this.getShallow("animation");return e&&this.getData().count()>this.getShallow("animationThreshold")&&(e=!1),e},restoreData:function(){this._data=this._dataBeforeProcessed.cloneShallow()},getColorFromPalette:function(e,t){var r=this.ecModel,i=s.getColorFromPalette.call(this,e,t);return i||(i=r.getColorFromPalette(e,t)),i},getAxisTooltipDataIndex:null});i.mixin(u,n.dataFormatMixin),i.mixin(u,s),e.exports=u},function(e,t){function r(e){var t={},r={},i=e.match(/Firefox\/([\d.]+)/),o=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),n=e.match(/Edge\/([\d.]+)/);return i&&(r.firefox=!0,r.version=i[1]),o&&(r.ie=!0,r.version=o[1]),o&&(r.ie=!0,r.version=o[1]),n&&(r.edge=!0,r.version=n[1]),{browser:r,os:t,node:!1,canvasSupported:!!document.createElement("canvas").getContext,touchEventsSupported:"ontouchstart"in window&&!r.ie&&!r.edge,pointerEventsSupported:"onpointerdown"in window&&(r.edge||r.ie&&r.version>=10)}}var i={};i="undefined"==typeof navigator?{browser:{},os:{},node:!0,canvasSupported:!0}:r(navigator.userAgent),e.exports=i},function(e,t,r){var i=r(390),o=r(50);r(391),r(389);var n=r(51),a=r(4),s=r(1),l=r(24),c={};c.getScaleExtent=function(e,t){var r=e.scale,i=r.getExtent(),o=i[1]-i[0];if("ordinal"===r.type)return isFinite(o)?i:[0,0];var n=t.getMin?t.getMin():t.get("min"),l=t.getMax?t.getMax():t.get("max"),c=t.getNeedCrossZero?t.getNeedCrossZero():!t.get("scale"),h=t.get("boundaryGap");s.isArray(h)||(h=[h||0,h||0]),h[0]=a.parsePercent(h[0],1),h[1]=a.parsePercent(h[1],1);var u=!0,d=!0;return null==n&&(n=i[0]-h[0]*o,u=!1),null==l&&(l=i[1]+h[1]*o,d=!1),"dataMin"===n&&(n=i[0]),"dataMax"===l&&(l=i[1]),c&&(n>0&&l>0&&!u&&(n=0),0>n&&0>l&&!d&&(l=0)),[n,l]},c.niceScaleExtent=function(e,t){var r=e.scale,i=c.getScaleExtent(e,t),o=null!=(t.getMin?t.getMin():t.get("min")),n=null!=(t.getMax?t.getMax():t.get("max")),a=t.get("splitNumber");"log"===r.type&&(r.base=t.get("logBase")),r.setExtent(i[0],i[1]),r.niceExtent(a,o,n);var s=t.get("minInterval");if(isFinite(s)&&!o&&!n&&"interval"===r.type){var l=r.getInterval(),h=Math.max(Math.abs(l),s)/l;i=r.getExtent(),r.setExtent(h*i[0],i[1]*h),r.niceExtent(a)}var l=t.get("interval");null!=l&&r.setInterval&&r.setInterval(l)},c.createScaleByModel=function(e,t){if(t=t||e.get("type"))switch(t){case"category":return new i(e.getCategories(),[1/0,-(1/0)]);case"value":return new o;default:return(n.getClass(t)||o).create(e)}},c.ifAxisCrossZero=function(e){var t=e.scale.getExtent(),r=t[0],i=t[1];return!(r>0&&i>0||0>r&&0>i)},c.getAxisLabelInterval=function(e,t,r,i){var o,n=0,a=0,s=1;t.length>40&&(s=Math.floor(t.length/40));for(var c=0;c1?s:(n+1)*s-1},c.getFormattedLabels=function(e,t){var r=e.scale,i=r.getTicksLabels(),o=r.getTicks();return"string"==typeof t?(t=function(e){return function(t){return e.replace("{value}",t)}}(t),s.map(i,t)):"function"==typeof t?s.map(o,function(i,o){return t("category"===e.type?r.getLabel(i):i,o)},this):i},e.exports=c},function(e,t,r){function i(e,t,r,i){if(!t)return e;var s=o(t[0]),l=n.isArray(s)&&s.length||1;r=r||[],i=i||"extra";for(var c=0;l>c;c++)if(!e[c]){var h=r[c]||i+(c-r.length);e[c]=a(t,c)?{type:"ordinal",name:h}:h}return e}function o(e){return n.isArray(e)?e:n.isObject(e)?e.value:e}var n=r(1),a=i.guessOrdinal=function(e,t){for(var r=0,i=e.length;i>r;r++){var a=o(e[r]);if(!n.isArray(a))return!1;var a=a[t];if(null!=a&&isFinite(a))return!1;if(n.isString(a)&&"-"!==a)return!0}return!1};e.exports=i},function(e,t){"use strict";function r(){this._coordinateSystems=[]}var i={};r.prototype={constructor:r,create:function(e,t){var r=[];for(var o in i){var n=i[o].create(e,t);n&&(r=r.concat(n))}this._coordinateSystems=r},update:function(e,t){for(var r=this._coordinateSystems,i=0;ie?0:e>255?255:e}function i(e){return e=Math.round(e),0>e?0:e>360?360:e}function o(e){return 0>e?0:e>1?1:e}function n(e){return r(e.length&&"%"===e.charAt(e.length-1)?parseFloat(e)/100*255:parseInt(e,10))}function a(e){return o(e.length&&"%"===e.charAt(e.length-1)?parseFloat(e)/100:parseFloat(e))}function s(e,t,r){return 0>r?r+=1:r>1&&(r-=1),1>6*r?e+(t-e)*r*6:1>2*r?t:2>3*r?e+(t-e)*(2/3-r)*6:e}function l(e,t,r){return e+(t-e)*r}function c(e){if(e){e+="";var t=e.replace(/ /g,"").toLowerCase();if(t in x)return x[t].slice();if("#"!==t.charAt(0)){var r=t.indexOf("("),i=t.indexOf(")");if(-1!==r&&i+1===t.length){var o=t.substr(0,r),s=t.substr(r+1,i-(r+1)).split(","),l=1;switch(o){case"rgba":if(4!==s.length)return;l=a(s.pop());case"rgb":if(3!==s.length)return;return[n(s[0]),n(s[1]),n(s[2]),l];case"hsla":if(4!==s.length)return;return s[3]=a(s[3]),h(s);case"hsl":if(3!==s.length)return;return h(s);default:return}}}else{if(4===t.length){var c=parseInt(t.substr(1),16);if(!(c>=0&&4095>=c))return;return[(3840&c)>>4|(3840&c)>>8,240&c|(240&c)>>4,15&c|(15&c)<<4,1]}if(7===t.length){var c=parseInt(t.substr(1),16);if(!(c>=0&&16777215>=c))return;return[(16711680&c)>>16,(65280&c)>>8,255&c,1]}}}}function h(e){var t=(parseFloat(e[0])%360+360)%360/360,i=a(e[1]),o=a(e[2]),n=.5>=o?o*(i+1):o+i-o*i,l=2*o-n,c=[r(255*s(l,n,t+1/3)),r(255*s(l,n,t)),r(255*s(l,n,t-1/3))];return 4===e.length&&(c[3]=e[3]),c}function u(e){if(e){var t,r,i=e[0]/255,o=e[1]/255,n=e[2]/255,a=Math.min(i,o,n),s=Math.max(i,o,n),l=s-a,c=(s+a)/2;if(0===l)t=0,r=0;else{r=.5>c?l/(s+a):l/(2-s-a);var h=((s-i)/6+l/2)/l,u=((s-o)/6+l/2)/l,d=((s-n)/6+l/2)/l;i===s?t=d-u:o===s?t=1/3+h-d:n===s&&(t=2/3+u-h),0>t&&(t+=1),t>1&&(t-=1)}var f=[360*t,r,c];return null!=e[3]&&f.push(e[3]),f}}function d(e,t){var r=c(e);if(r){for(var i=0;3>i;i++)0>t?r[i]=r[i]*(1-t)|0:r[i]=(255-r[i])*t+r[i]|0;return y(r,4===r.length?"rgba":"rgb")}}function f(e,t){var r=c(e);return r?((1<<24)+(r[0]<<16)+(r[1]<<8)+ +r[2]).toString(16).slice(1):void 0}function p(e,t,i){if(t&&t.length&&e>=0&&1>=e){i=i||[0,0,0,0];var o=e*(t.length-1),n=Math.floor(o),a=Math.ceil(o),s=t[n],c=t[a],h=o-n;return i[0]=r(l(s[0],c[0],h)),i[1]=r(l(s[1],c[1],h)),i[2]=r(l(s[2],c[2],h)),i[3]=r(l(s[3],c[3],h)),i}}function m(e,t,i){if(t&&t.length&&e>=0&&1>=e){var n=e*(t.length-1),a=Math.floor(n),s=Math.ceil(n),h=c(t[a]),u=c(t[s]),d=n-a,f=y([r(l(h[0],u[0],d)),r(l(h[1],u[1],d)),r(l(h[2],u[2],d)),o(l(h[3],u[3],d))],"rgba");return i?{color:f,leftIndex:a,rightIndex:s,value:n}:f}}function g(e,t,r,o){return e=c(e),e?(e=u(e),null!=t&&(e[0]=i(t)),null!=r&&(e[1]=a(r)),null!=o&&(e[2]=a(o)),y(h(e),"rgba")):void 0}function v(e,t){return e=c(e),e&&null!=t?(e[3]=o(t),y(e,"rgba")):void 0}function y(e,t){var r=e[0]+","+e[1]+","+e[2];return"rgba"!==t&&"hsva"!==t&&"hsla"!==t||(r+=","+e[3]),t+"("+r+")"}var x={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};e.exports={parse:c,lift:d,toHex:f,fastMapToColor:p,mapToColor:m,modifyHSL:g,modifyAlpha:v,stringify:y}},function(e,t){"use strict";var r={};e.exports={register:function(e,t){r[e]=t},get:function(e){return r[e]}}},function(e,t,r){function i(){this.group=new a,this.uid=s.getUID("viewChart")}function o(e,t){if(e&&(e.trigger(t),"group"===e.type))for(var r=0;rs;s++)o(e.getItemGraphicEl(a[s]),r);else if(n)for(var c=n instanceof Array?n:[n],s=0,l=c.length;l>s;s++){var i=e.indexOfName(c[s]);o(e.getItemGraphicEl(i),r)}else e.eachItemGraphicEl(function(e){o(e,r)})}var a=r(54),s=r(69),l=r(31);i.prototype={type:"chart",init:function(e,t){},render:function(e,t,r,i){},highlight:function(e,t,r,i){n(e.getData(),i,"emphasis")},downplay:function(e,t,r,i){n(e.getData(),i,"normal")},remove:function(e,t){this.group.removeAll()},dispose:function(){}};var c=i.prototype;c.updateView=c.updateLayout=c.updateVisual=function(e,t,r,i){this.render(e,t,r,i)},l.enableClassExtend(i),l.enableClassManagement(i,{registerWhenExtend:!0}),e.exports=i},function(e,t,r){function i(e,t){var r=e+":"+t;if(l[r])return l[r];for(var i=(e+"").split("\n"),o=0,n=0,a=i.length;a>n;n++)o=Math.max(p.measureText(i[n],t).width,o);return c>h&&(c=0,l={}),c++,l[r]=o,o}function o(e,t,r,o){var n=((e||"")+"").split("\n").length,a=i(e,t),s=i("国",t),l=n*s,c=new d(0,0,a,l);switch(c.lineHeight=s,o){case"bottom":case"alphabetic":c.y-=s;break;case"middle":c.y-=s/2}switch(r){case"end":case"right":c.x-=c.width;break;case"center":c.x-=c.width/2}return c}function n(e,t,r,i){var o=t.x,n=t.y,a=t.height,s=t.width,l=r.height,c=a/2-l/2,h="left";switch(e){case"left":o-=i,n+=c,h="right";break;case"right":o+=i+s,n+=c,h="left";break;case"top":o+=s/2,n-=i+l,h="center";break;case"bottom":o+=s/2,n+=a+i,h="center";break;case"inside":o+=s/2,n+=c,h="center";break;case"insideLeft":o+=i,n+=c,h="left";break;case"insideRight":o+=s-i,n+=c,h="right";break;case"insideTop":o+=s/2,n+=i,h="center";break;case"insideBottom":o+=s/2,n+=a-l-i,h="center";break;case"insideTopLeft":o+=i,n+=i,h="left";break;case"insideTopRight":o+=s-i,n+=i,h="right";break;case"insideBottomLeft":o+=i,n+=a-l-i;break;case"insideBottomRight":o+=s-i,n+=a-l-i,h="right"}return{x:o,y:n,textAlign:h,textBaseline:"top"}}function a(e,t,r,o,n){if(!t)return"";n=n||{},o=f(o,"...");for(var a=f(n.maxIterations,2),l=f(n.minChar,0),c=i("国",r),h=i("a",r),u=f(n.placeholder,""),d=t=Math.max(0,t-1),p=0;l>p&&d>=h;p++)d-=h;var m=i(o);m>d&&(o="",m=0),d=t-m;for(var g=(e+"").split("\n"),p=0,v=g.length;v>p;p++){var y=g[p],x=i(y,r);if(!(t>=x)){for(var b=0;;b++){if(d>=x||b>=a){y+=o;break}var _=0===b?s(y,d,h,c):x>0?Math.floor(y.length*d/x):0;y=y.substr(0,_),x=i(y,r)}""===y&&(y=u),g[p]=y}}return g.join("\n")}function s(e,t,r,i){for(var o=0,n=0,a=e.length;a>n&&t>o;n++){var s=e.charCodeAt(n);o+=s>=0&&127>=s?r:i}return n}var l={},c=0,h=5e3,u=r(1),d=r(7),f=u.retrieve,p={getWidth:i,getBoundingRect:o,adjustTextPositionOnRect:n,truncateText:a,measureText:function(e,t){var r=u.getContext();return r.font=t||"12px sans-serif",r.measureText(e)}};e.exports=p},function(e,t,r){"use strict";function i(e){return e>-S&&S>e}function o(e){return e>S||-S>e}function n(e,t,r,i,o){var n=1-o;return n*n*(n*e+3*o*t)+o*o*(o*i+3*n*r)}function a(e,t,r,i,o){var n=1-o;return 3*(((t-e)*n+2*(r-t)*o)*n+(i-r)*o*o)}function s(e,t,r,o,n,a){var s=o+3*(t-r)-e,l=3*(r-2*t+e),c=3*(t-e),h=e-n,u=l*l-3*s*c,d=l*c-9*s*h,f=c*c-3*l*h,p=0;if(i(u)&&i(d))if(i(l))a[0]=0;else{var m=-c/l;m>=0&&1>=m&&(a[p++]=m)}else{var g=d*d-4*u*f;if(i(g)){var v=d/u,m=-l/s+v,y=-v/2;m>=0&&1>=m&&(a[p++]=m),y>=0&&1>=y&&(a[p++]=y)}else if(g>0){var x=_(g),S=u*l+1.5*s*(-d+x),w=u*l+1.5*s*(-d-x);S=0>S?-b(-S,M):b(S,M),w=0>w?-b(-w,M):b(w,M);var m=(-l-(S+w))/(3*s);m>=0&&1>=m&&(a[p++]=m)}else{var A=(2*u*l-3*s*d)/(2*_(u*u*u)),I=Math.acos(A)/3,T=_(u),P=Math.cos(I),m=(-l-2*T*P)/(3*s),y=(-l+T*(P+C*Math.sin(I)))/(3*s),L=(-l+T*(P-C*Math.sin(I)))/(3*s);m>=0&&1>=m&&(a[p++]=m),y>=0&&1>=y&&(a[p++]=y),L>=0&&1>=L&&(a[p++]=L)}}return p}function l(e,t,r,n,a){var s=6*r-12*t+6*e,l=9*t+3*n-3*e-9*r,c=3*t-3*e,h=0;if(i(l)){if(o(s)){var u=-c/s;u>=0&&1>=u&&(a[h++]=u)}}else{var d=s*s-4*l*c;if(i(d))a[0]=-s/(2*l);else if(d>0){var f=_(d),u=(-s+f)/(2*l),p=(-s-f)/(2*l);u>=0&&1>=u&&(a[h++]=u),p>=0&&1>=p&&(a[h++]=p)}}return h}function c(e,t,r,i,o,n){var a=(t-e)*o+e,s=(r-t)*o+t,l=(i-r)*o+r,c=(s-a)*o+a,h=(l-s)*o+s,u=(h-c)*o+c;n[0]=e,n[1]=a,n[2]=c,n[3]=u,n[4]=u,n[5]=h,n[6]=l,n[7]=i}function h(e,t,r,i,o,a,s,l,c,h,u){var d,f,p,m,g,v=.005,y=1/0;A[0]=c,A[1]=h;for(var b=0;1>b;b+=.05)I[0]=n(e,r,o,s,b),I[1]=n(t,i,a,l,b),m=x(A,I),y>m&&(d=b,y=m);y=1/0;for(var S=0;32>S&&!(w>v);S++)f=d-v,p=d+v,I[0]=n(e,r,o,s,f),I[1]=n(t,i,a,l,f),m=x(I,A),f>=0&&y>m?(d=f,y=m):(T[0]=n(e,r,o,s,p),T[1]=n(t,i,a,l,p),g=x(T,A),1>=p&&y>g?(d=p,y=g):v*=.5);return u&&(u[0]=n(e,r,o,s,d),u[1]=n(t,i,a,l,d)),_(y)}function u(e,t,r,i){var o=1-i;return o*(o*e+2*i*t)+i*i*r}function d(e,t,r,i){return 2*((1-i)*(t-e)+i*(r-t))}function f(e,t,r,n,a){var s=e-2*t+r,l=2*(t-e),c=e-n,h=0;if(i(s)){if(o(l)){var u=-c/l;u>=0&&1>=u&&(a[h++]=u)}}else{var d=l*l-4*s*c;if(i(d)){var u=-l/(2*s);u>=0&&1>=u&&(a[h++]=u)}else if(d>0){var f=_(d),u=(-l+f)/(2*s),p=(-l-f)/(2*s);u>=0&&1>=u&&(a[h++]=u),p>=0&&1>=p&&(a[h++]=p)}}return h}function p(e,t,r){var i=e+r-2*t;return 0===i?.5:(e-t)/i}function m(e,t,r,i,o){var n=(t-e)*i+e,a=(r-t)*i+t,s=(a-n)*i+n;o[0]=e,o[1]=n,o[2]=s,o[3]=s,o[4]=a,o[5]=r}function g(e,t,r,i,o,n,a,s,l){var c,h=.005,d=1/0;A[0]=a,A[1]=s;for(var f=0;1>f;f+=.05){I[0]=u(e,r,o,f),I[1]=u(t,i,n,f);var p=x(A,I);d>p&&(c=f,d=p)}d=1/0;for(var m=0;32>m&&!(w>h);m++){var g=c-h,v=c+h;I[0]=u(e,r,o,g),I[1]=u(t,i,n,g);var p=x(I,A);if(g>=0&&d>p)c=g,d=p;else{T[0]=u(e,r,o,v),T[1]=u(t,i,n,v);var y=x(T,A);1>=v&&d>y?(c=v,d=y):h*=.5}}return l&&(l[0]=u(e,r,o,c),l[1]=u(t,i,n,c)),_(d)}var v=r(5),y=v.create,x=v.distSquare,b=Math.pow,_=Math.sqrt,S=1e-8,w=1e-4,C=_(3),M=1/3,A=y(),I=y(),T=y();e.exports={cubicAt:n,cubicDerivativeAt:a,cubicRootAt:s,cubicExtrema:l,cubicSubdivide:c,cubicProjectPoint:h,quadraticAt:u,quadraticDerivativeAt:d,quadraticRootAt:f,quadraticExtremum:p,quadraticSubdivide:m,quadraticProjectPoint:g}},function(e,t,r){"use strict";function i(e,t){t=t||{};for(var r in e)t[r]=e[r];return t}function o(e,t,r){var i=r?" !== ":" === ",o=r?" || ":" && ",n=r?"!":"",a=r?"":"!";switch(e){case"null":return t+i+"null";case"array":return n+"Array.isArray("+t+")";case"object":return"("+n+t+o+"typeof "+t+i+'"object"'+o+a+"Array.isArray("+t+"))";case"integer":return"(typeof "+t+i+'"number"'+o+a+"("+t+" % 1)"+o+t+i+t+")";default:return"typeof "+t+i+'"'+e+'"'}}function n(e,t){switch(e.length){case 1:return o(e[0],t,!0);default:var r="",i=s(e);i.array&&i.object&&(r=i["null"]?"(":"(!"+t+" || ",r+="typeof "+t+' !== "object")',delete i["null"],delete i.array,delete i.object),i.number&&delete i.integer;for(var n in i)r+=(r?" && ":"")+o(n,t,!0);return r}}function a(e,t){if(Array.isArray(t)){for(var r=[],i=0;io;)r++,t=e.charCodeAt(o++),t>=55296&&56319>=t&&i>o&&(t=e.charCodeAt(o),56320==(64512&t)&&o++);return r}function u(e,t){t+="[^0-9]";var r=e.match(new RegExp(t,"g"));return r?r.length:0}function d(e,t,r){return t+="([^0-9])",r=r.replace(/\$/g,"$$$$"),e.replace(new RegExp(t,"g"),r+"$1")}function f(e){return e.replace(P,"").replace(L,"").replace(k,"if (!($1))")}function p(e,t){var r=e.match(E);return r&&2===r.length?t?e.replace(O,"").replace(V,N):e.replace(D,"").replace(R,z):e}function m(e,t){for(var r in e)if(t[r])return!0}function g(e,t,r){for(var i in e)if(i!=r&&t[i])return!0}function v(e){return"'"+c(e)+"'"}function y(e,t,r,i){var o=r?"'/' + "+t+(i?"":".replace(/~/g, '~0').replace(/\\//g, '~1')"):i?"'[' + "+t+" + ']'":"'[\\'' + "+t+" + '\\']'";return _(e,o)}function x(e,t,r){var i=v(r?"/"+C(t):l(t));return _(e,i)}function b(e,t,r){var i=e.match(W);if(!i)throw new Error("Invalid relative JSON-pointer: "+e);var o=+i[1],n=i[2];if("#"==n){if(o>=t)throw new Error("Cannot access property/index "+o+" levels up, current level is "+t);return r[t-o]}if(o>t)throw new Error("Cannot access data "+o+" levels up, current level is "+t);var a="data"+(t-o||"");if(!n)return a;for(var s=a,c=n.split("/"),h=0;h=r&&i>=e},containData:function(e){return this.contain(this.dataToCoord(e))},getExtent:function(){var e=this._extent.slice();return e},getPixelPrecision:function(e){return o.getPixelPrecision(e||this.scale.getExtent(),this._extent)},setExtent:function(e,t){var r=this._extent;r[0]=e,r[1]=t},dataToCoord:function(e,t){var r=this._extent,o=this.scale;return e=o.normalize(e),this.onBand&&"ordinal"===o.type&&(r=r.slice(),i(r,o.count())),n(e,s,r,t)},coordToData:function(e,t){var r=this._extent,o=this.scale;this.onBand&&"ordinal"===o.type&&(r=r.slice(),i(r,o.count()));var a=n(e,r,s,t);return this.scale.scale(a)},getTicksCoords:function(e){if(this.onBand&&!e){for(var t=this.getBands(),r=[],i=0;ia;a++)t.push([n*a/r+i,n*(a+1)/r+i]);return t},getBandWidth:function(){var e=this._extent,t=this.scale.getExtent(),r=t[1]-t[0]+(this.onBand?1:0);0===r&&(r=1);var i=Math.abs(e[1]-e[0]);return Math.abs(i)/r}},e.exports=l},function(e,t,r){function i(e){var t=e.pieceList;e.hasSpecialVisual=!1,p.each(t,function(t,r){t.originIndex=r,null!=t.visual&&(e.hasSpecialVisual=!0)})}function o(e){var t=e.categories,r=e.visual,i=e.categoryMap={};if(v(t,function(e,t){i[e]=t}),!p.isArray(r)){var o=[];p.isObject(r)?v(r,function(e,t){var r=i[t];o[null!=r?r:x]=e}):o[x]=r,r=e.visual=o}for(var n=t.length-1;n>=0;n--)null==r[n]&&(delete i[t[n]],t.pop())}function n(e,t){var r=e.visual,i=[];p.isObject(r)?v(r,function(e){i.push(e)}):null!=r&&i.push(r);var o={color:1,symbol:1};t||1!==i.length||e.type in o||(i[1]=i[0]),e.visual=i}function a(e){return{applyVisual:function(t,r,i){t=this.mapValueToVisual(t),i("color",e(r("color"),t))},_doMap:u([0,1])}}function s(e,t){var r=this.option.visual;return r[Math.round(g(t,[0,1],[0,r.length-1],!0))]||{}}function l(e){return function(t,r,i){i(e,this.mapValueToVisual(t))}}function c(e){var t=this.option.visual;return t[this.option.loop&&e!==x?e%t.length:e]}function h(){return this.option.visual[0]}function u(e){return{linear:function(t){return g(t,e,this.option.visual,!0)},category:c,piecewise:function(t,r){var i=d.call(this,r);return null==i&&(i=g(t,e,this.option.visual,!0)),i},fixed:h}}function d(e){var t=this.option,r=t.pieceList;if(t.hasSpecialVisual){var i=b.findPieceIndex(e,r),o=r[i];if(o&&o.visual)return o.visual[this.type]}}function f(e,t,r){return e?r>=t:r>t}var p=r(1),m=r(21),g=r(4).linearMap,v=p.each,y=p.isObject,x=-1,b=function(e){var t=e.mappingMethod,r=e.type,a=this.option=p.clone(e);this.type=r,this.mappingMethod=t,this._normalizeData=S[t];var s=_[r];this.applyVisual=s.applyVisual,this.getColorMapper=s.getColorMapper,this._doMap=s._doMap[t],"piecewise"===t?(n(a),i(a)):"category"===t?a.categories?o(a):n(a,!0):(p.assert("linear"!==t||a.dataExtent),n(a))};b.prototype={constructor:b,mapValueToVisual:function(e){var t=this._normalizeData(e);return this._doMap(t,e)},getNormalizer:function(){return p.bind(this._normalizeData,this)}};var _=b.visualHandlers={color:{applyVisual:l("color"),getColorMapper:function(){var e=this.option,t=p.map(e.visual,m.parse);return p.bind("category"===e.mappingMethod?function(e,t){return!t&&(e=this._normalizeData(e)),c(this,e)}:function(e,r,i){var o=!!i;return!r&&(e=this._normalizeData(e)),i=m.fastMapToColor(e,t,i),o?i:p.stringify(i,"rgba")},this)},_doMap:{linear:function(e){return m.mapToColor(e,this.option.visual)},category:c,piecewise:function(e,t){var r=d.call(this,t);return null==r&&(r=m.mapToColor(e,this.option.visual)),r},fixed:h}},colorHue:a(function(e,t){return m.modifyHSL(e,t)}),colorSaturation:a(function(e,t){return m.modifyHSL(e,null,t)}),colorLightness:a(function(e,t){return m.modifyHSL(e,null,null,t)}),colorAlpha:a(function(e,t){return m.modifyAlpha(e,t)}),opacity:{applyVisual:l("opacity"),_doMap:u([0,1])},symbol:{applyVisual:function(e,t,r){var i=this.mapValueToVisual(e);if(p.isString(i))r("symbol",i);else if(y(i))for(var o in i)i.hasOwnProperty(o)&&r(o,i[o])},_doMap:{linear:s,category:c,piecewise:function(e,t){var r=d.call(this,t);return null==r&&(r=s.call(this,e)),r},fixed:h}},symbolSize:{applyVisual:l("symbolSize"),_doMap:u([0,1])}},S={linear:function(e){return g(e,this.option.dataExtent,[0,1],!0)},piecewise:function(e){var t=this.option.pieceList,r=b.findPieceIndex(e,t,!0);return null!=r?g(r,[0,t.length-1],[0,1],!0):void 0},category:function(e){var t=this.option.categories?this.option.categoryMap[e]:e;return null==t?x:t},fixed:p.noop};b.addVisualHandler=function(e,t){_[e]=t},b.isValidType=function(e){return _.hasOwnProperty(e)},b.eachVisual=function(e,t,r){p.isObject(e)?p.each(e,t,r):t.call(r,e)},b.mapVisual=function(e,t,r){var i,o=p.isArray(e)?[]:p.isObject(e)?{}:(i=!0,null);return b.eachVisual(e,function(e,n){var a=t.call(r,e,n);i?o=a:o[n]=a}),o},b.retrieveVisuals=function(e){var t,r={};return e&&v(_,function(i,o){e.hasOwnProperty(o)&&(r[o]=e[o],t=!0)}),t?r:null},b.prepareVisualTypes=function(e){if(y(e)){var t=[];v(e,function(e,r){t.push(r)}),e=t}else{if(!p.isArray(e))return[];e=e.slice()}return e.sort(function(e,t){return"color"===t&&"color"!==e&&0===e.indexOf("color")?1:-1}),e},b.dependsOn=function(e,t){return"color"===t?!(!e||0!==e.indexOf(t)):e===t},b.findPieceIndex=function(e,t,r){function i(t,r){var i=Math.abs(t-e);n>i&&(n=i,o=r)}for(var o,n=1/0,a=0,s=t.length;s>a;a++){var l=t[a].value;if(null!=l){if(l===e)return a;r&&i(l,a)}}for(var a=0,s=t.length;s>a;a++){var c=t[a],h=c.interval,u=c.close;if(h){if(h[0]===-(1/0)){if(f(u[1],e,h[1]))return a}else if(h[1]===1/0){if(f(u[0],h[0],e))return a}else if(f(u[0],h[0],e)&&f(u[1],e,h[1]))return a;r&&i(h[0],a),r&&i(h[1],a)}}return r?e===1/0?t.length-1:e===-(1/0)?0:o:void 0},e.exports=b},function(e,t){var r=Array.prototype.slice,i=function(){this._$handlers={}};i.prototype={constructor:i,one:function(e,t,r){var i=this._$handlers;if(!t||!e)return this;i[e]||(i[e]=[]);for(var o=0;oo;o++)r[e][o].h!=t&&i.push(r[e][o]);r[e]=i}r[e]&&0===r[e].length&&delete r[e]}else delete r[e];return this},trigger:function(e){if(this._$handlers[e]){var t=arguments,i=t.length;i>3&&(t=r.call(t,1));for(var o=this._$handlers[e],n=o.length,a=0;n>a;){switch(i){case 1:o[a].h.call(o[a].ctx);break;case 2:o[a].h.call(o[a].ctx,t[1]);break;case 3:o[a].h.call(o[a].ctx,t[1],t[2]);break;default:o[a].h.apply(o[a].ctx,t)}o[a].one?(o.splice(a,1),n--):a++}}return this},triggerWithContext:function(e){if(this._$handlers[e]){var t=arguments,i=t.length;i>4&&(t=r.call(t,1,t.length-1));for(var o=t[t.length-1],n=this._$handlers[e],a=n.length,s=0;a>s;){switch(i){case 1:n[s].h.call(o);break;case 2:n[s].h.call(o,t[1]);break;case 3:n[s].h.call(o,t[1],t[2]);break;default:n[s].h.apply(o,t)}n[s].one?(n.splice(s,1),a--):s++}}return this}},e.exports=i},function(e,t,r){"use strict";function i(e){for(var t=0;t=0&&o(e)?function(e,t,r,i){return d.isDataItemOption(e)&&(x.hasItemOption=!0),i===y?r:m(p(e),v[i])}:function(e,t,r,i){var o=p(e),n=m(o&&o[i],v[i]);d.isDataItemOption(e)&&(x.hasItemOption=!0);var a=s&&s.categoryAxesModels;return a&&a[t]&&"string"==typeof n&&(_[t]=_[t]||a[t].getCategories(),n=u.indexOf(_[t],n),0>n&&!isNaN(n)&&(n=+n)),n};return x.hasItemOption=!1,x.initData(e,b,S),x}function a(e){return"category"!==e&&"time"!==e}function s(e){return"category"===e?"ordinal":"time"===e?"time":"float"}function l(e,t){var r,i=[],o=e&&e.dimensions[e.categoryIndex];if(o&&(r=e.categoryAxesModels[o.name]),r){var n=r.getCategories();if(n){var a=t.length;if(u.isArray(t[0])&&t[0].length>1){i=[];for(var s=0;a>s;s++)i[s]=n[t[s][e.categoryIndex||0]]}else i=n.slice(0)}}return i}var c=r(8),h=r(17),u=r(1),d=r(12),f=r(18),p=d.getDataItemValue,m=d.converDataValue,g={cartesian2d:function(e,t,r){var i=u.map(["xAxis","yAxis"],function(e){return r.queryComponents({mainType:e,index:t.get(e+"Index"),id:t.get(e+"Id")})[0]}),o=i[0],n=i[1],l=o.get("type"),c=n.get("type"),d=[{name:"x",type:s(l),stackable:a(l)},{name:"y",type:s(c),stackable:a(c)}],f="category"===l,p="category"===c;h(d,e,["x","y","z"]);var m={};return f&&(m.x=o),p&&(m.y=n),{dimensions:d,categoryIndex:f?0:p?1:-1,categoryAxesModels:m}},polar:function(e,t,r){var i=r.queryComponents({mainType:"polar",index:t.get("polarIndex"),id:t.get("polarId")})[0],o=i.findAxisModel("angleAxis"),n=i.findAxisModel("radiusAxis"),l=n.get("type"),c=o.get("type"),u=[{name:"radius",type:s(l),stackable:a(l)},{name:"angle",type:s(c),stackable:a(c)}],d="category"===c,f="category"===l;h(u,e,["radius","angle","value"]);var p={};return f&&(p.radius=n),d&&(p.angle=o),{dimensions:u,categoryIndex:d?1:f?0:-1,categoryAxesModels:p}},geo:function(e,t,r){return{dimensions:h([{name:"lng"},{name:"lat"}],e,["lng","lat","value"])}}};e.exports=n},function(e,t,r){function i(e,t){var r=n.slice(arguments,2);return this.superClass.prototype[t].apply(e,r)}function o(e,t,r){return this.superClass.prototype[t].apply(e,r)}var n=r(1),a={},s=".",l="___EC__COMPONENT__CONTAINER___",c=a.parseClassType=function(e){var t={main:"",sub:""};return e&&(e=e.split(s),t.main=e[0]||"",t.sub=e[1]||""),t};a.enableClassExtend=function(e){e.$constructor=e,e.extend=function(e){var t=this,r=function(){e.$constructor?e.$constructor.apply(this,arguments):t.apply(this,arguments)};return n.extend(r.prototype,e),r.extend=this.extend,r.superCall=i,r.superApply=o,n.inherits(r,this),r.superClass=t,r}},a.enableClassManagement=function(e,t){function r(e){var t=i[e.main];return t&&t[l]||(t=i[e.main]={},t[l]=!0),t}t=t||{};var i={};if(e.registerClass=function(e,t){if(t)if(t=c(t),t.sub){if(t.sub!==l){var o=r(t);o[t.sub]=e}}else i[t.main]=e;return e},e.getClass=function(e,t,r){var o=i[e];if(o&&o[l]&&(o=t?o[t]:null),r&&!o)throw new Error("Component "+e+"."+(t||"")+" not exists. Load it first.");return o},e.getClassesByMainType=function(e){e=c(e);var t=[],r=i[e.main];return r&&r[l]?n.each(r,function(e,r){r!==l&&t.push(e)}):t.push(r),t},e.hasClass=function(e){return e=c(e),!!i[e.main]},e.getAllClassMainTypes=function(){var e=[];return n.each(i,function(t,r){e.push(r)}),e},e.hasSubTypes=function(e){e=c(e);var t=i[e.main];return t&&t[l]},e.parseClassType=c,t.registerWhenExtend){var o=e.extend;o&&(e.extend=function(t){var r=o.call(this,t);return e.registerClass(r,t.type)})}return e},a.setReadOnly=function(e,t){},e.exports=a},function(e,t,r){"use strict";function i(e){return e.getBoundingClientRect?e.getBoundingClientRect():{left:0,top:0}}function o(e,t,r){var o=i(e);return r=r||{},r.zrX=t.clientX-o.left,r.zrY=t.clientY-o.top,r}function n(e,t){if(t=t||window.event,null!=t.zrX)return t;var r=t.type,i=r&&r.indexOf("touch")>=0;if(i){var n="touchend"!=r?t.targetTouches[0]:t.changedTouches[0];n&&o(e,n,t)}else o(e,t,t),t.zrDelta=t.wheelDelta?t.wheelDelta/120:-(t.detail||0)/3;return t}function a(e,t,r){c?e.addEventListener(t,r):e.attachEvent("on"+t,r)}function s(e,t,r){c?e.removeEventListener(t,r):e.detachEvent("on"+t,r)}var l=r(29),c="undefined"!=typeof window&&!!window.addEventListener,h=c?function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0}:function(e){e.returnValue=!1,e.cancelBubble=!0};e.exports={clientToLocal:o,normalizeEvent:n,addEventListener:a,removeEventListener:s,stop:h,Dispatcher:l}},function(e,t,r){function i(e){this.group=new n.Group,this._symbolCtor=e||a}function o(e,t,r){var i=e.getItemLayout(t);return i&&!isNaN(i[0])&&!isNaN(i[1])&&!(r&&r(t))&&"none"!==e.getItemVisual(t,"symbol")}var n=r(3),a=r(58),s=i.prototype;s.updateData=function(e,t){var r=this.group,i=e.hostModel,a=this._data,s=this._symbolCtor,l={itemStyle:i.getModel("itemStyle.normal").getItemStyle(["color"]),hoverItemStyle:i.getModel("itemStyle.emphasis").getItemStyle(),symbolRotate:i.get("symbolRotate"),symbolOffset:i.get("symbolOffset"),hoverAnimation:i.get("hoverAnimation"),labelModel:i.getModel("label.normal"),hoverLabelModel:i.getModel("label.emphasis")};e.diff(a).add(function(i){var n=e.getItemLayout(i);if(o(e,i,t)){var a=new s(e,i,l);a.attr("position",n),e.setItemGraphicEl(i,a),r.add(a)}}).update(function(c,h){var u=a.getItemGraphicEl(h),d=e.getItemLayout(c);return o(e,c,t)?(u?(u.updateData(e,c,l),n.updateProps(u,{position:d},i)):(u=new s(e,c),u.attr("position",d)),r.add(u),void e.setItemGraphicEl(c,u)):void r.remove(u)}).remove(function(e){var t=a.getItemGraphicEl(e);t&&t.fadeOut(function(){r.remove(t)})}).execute(),this._data=e},s.updateLayout=function(){var e=this._data;e&&e.eachItemGraphicEl(function(t,r){var i=e.getItemLayout(r);t.attr("position",i)})},s.remove=function(e){var t=this.group,r=this._data;r&&(e?r.eachItemGraphicEl(function(e){e.fadeOut(function(){t.remove(e)})}):t.removeAll())},e.exports=i},function(e,t,r){function i(e){var t={componentType:e.mainType};return t[e.mainType+"Index"]=e.componentIndex,t}function o(e,t,r){var i,o,n=d(t-e.rotation);return f(n)?(o=r>0?"top":"bottom",i="center"):f(n-v)?(o=r>0?"bottom":"top",i="center"):(o="middle",i=n>0&&v>n?r>0?"right":"left":r>0?"left":"right"),{rotation:n,textAlign:i,verticalAlign:o}}function n(e,t,r,i){var o,n,a=d(r-e.rotation),s=i[0]>i[1],l="start"===t&&!s||"start"!==t&&s;return f(a-v/2)?(n=l?"bottom":"top",o="center"):f(a-1.5*v)?(n=l?"top":"bottom",o="center"):(n="middle",o=1.5*v>a&&a>v/2?l?"left":"right":l?"right":"left"),{rotation:a,textAlign:o,verticalAlign:n}}function a(e){var t=e.get("tooltip");return e.get("silent")||!(e.get("triggerEvent")||t&&t.show)}var s=r(1),l=r(10),c=r(3),h=r(9),u=r(4),d=u.remRadian,f=u.isRadianAroundZero,p=r(5),m=p.applyTransform,g=s.retrieve,v=Math.PI,y=function(e,t){this.opt=t,this.axisModel=e,s.defaults(t,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0}),this.group=new c.Group;var r=new c.Group({position:t.position.slice(),rotation:t.rotation});r.updateTransform(),this._transform=r.transform,this._dumbGroup=r};y.prototype={constructor:y,hasBuilder:function(e){return!!x[e]},add:function(e){x[e].call(this)},getGroup:function(){return this.group}};var x={axisLine:function(){var e=this.opt,t=this.axisModel;if(t.get("axisLine.show")){var r=this.axisModel.axis.getExtent(),i=this._transform,o=[r[0],0],n=[r[1],0];i&&(m(o,o,i),m(n,n,i)),this.group.add(new c.Line(c.subPixelOptimizeLine({anid:"line",shape:{x1:o[0],y1:o[1],x2:n[0],y2:n[1]},style:s.extend({lineCap:"round"},t.getModel("axisLine.lineStyle").getLineStyle()),strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1})))}},axisTick:function(){var e=this.axisModel;if(e.get("axisTick.show"))for(var t=e.axis,r=e.getModel("axisTick"),i=this.opt,o=r.getModel("lineStyle"),n=r.get("length"),a=_(r,i.labelInterval),l=t.getTicksCoords(r.get("alignWithLabel")),h=t.scale.getTicks(),u=[],d=[],f=this._transform,p=0;pm[1]?-1:1,x=["start"===u?m[0]-y*p:"end"===u?m[1]+y*p:(m[0]+m[1])/2,"middle"===u?e.labelOffset+d*p:0],b=t.get("nameRotate");null!=b&&(b=b*v/180);var _;"middle"===u?h=o(e,null!=b?b:e.rotation,d):(h=n(e,u,b||0,m),_=e.axisNameAvailableWidth,null!=_&&(_=Math.abs(_/Math.sin(h.rotation)),!isFinite(_)&&(_=null)));var S=f.getFont(),w=t.get("nameTruncate",!0)||{},C=w.ellipsis,M=g(w.maxWidth,_),A=null!=C&&null!=M?l.truncateText(r,M,S,C,{minChar:2,placeholder:w.placeholder}):r,I=t.get("tooltip",!0),T=t.mainType,P={componentType:T,name:r,$vars:["name"]};P[T+"Index"]=t.componentIndex;var L=new c.Text({anid:"name",__fullText:r,__truncatedText:A,style:{text:A,textFont:S,fill:f.getTextColor()||t.get("axisLine.lineStyle.color"),textAlign:h.textAlign,textVerticalAlign:h.verticalAlign},position:x,rotation:h.rotation,silent:a(t),z2:1,tooltip:I&&I.show?s.extend({content:r,formatter:function(){return r},formatterParams:P},I):null});t.get("triggerEvent")&&(L.eventData=i(t),L.eventData.targetType="axisName",L.eventData.name=r),this._dumbGroup.add(L),L.updateTransform(),this.group.add(L),L.decomposeTransform()}}},b=y.ifIgnoreOnTick=function(e,t,r){var i,o=e.scale;return"ordinal"===o.type&&("function"==typeof r?(i=o.getTicks()[t],!r(i,o.getLabel(i))):t%(r+1))},_=y.getInterval=function(e,t){var r=e.get("interval");return null!=r&&"auto"!=r||(r=t),r};e.exports=y},function(e,t,r){function i(e){var t={};return u(["start","end","startValue","endValue","throttle"],function(r){e.hasOwnProperty(r)&&(t[r]=e[r])}),t}function o(e,t,r,i){null!=r[t]&&null==r[e]&&(i[e]=null)}var n=r(1),a=r(15),s=r(2),l=r(12),c=r(100),h=r(285),u=n.each,d=c.eachAxisDim,f=s.extendComponentModel({type:"dataZoom",dependencies:["xAxis","yAxis","zAxis","radiusAxis","angleAxis","series"],defaultOption:{zlevel:0,z:4,orient:null,xAxisIndex:null,yAxisIndex:null,filterMode:"filter",throttle:null,start:0,end:100,startValue:null,endValue:null},init:function(e,t,r){this._dataIntervalByAxis={},this._dataInfo={},this._axisProxies={},this.textStyleModel,this._autoThrottle=!0;var o=i(e);this.mergeDefaultAndTheme(e,r),this.doInit(o)},mergeOption:function(e){var t=i(e);n.merge(this.option,e,!0),this.doInit(t)},doInit:function(e){var t=this.option;a.canvasSupported||(t.realtime=!1),this._setDefaultThrottle(e),o("start","startValue",e,t),o("end","endValue",e,t),this.textStyleModel=this.getModel("textStyle"),this._resetTarget(),this._giveAxisProxies()},_giveAxisProxies:function(){var e=this._axisProxies;this.eachTargetAxis(function(t,r,i,o){var n=this.dependentModels[t.axis][r],a=n.__dzAxisProxy||(n.__dzAxisProxy=new h(t.name,r,this,o));e[t.name+"_"+r]=a},this)},_resetTarget:function(){var e=this.option,t=this._judgeAutoMode();d(function(t){var r=t.axisIndex;e[r]=l.normalizeToArray(e[r])},this),"axisIndex"===t?this._autoSetAxisIndex():"orient"===t&&this._autoSetOrient()},_judgeAutoMode:function(){var e=this.option,t=!1;d(function(r){null!=e[r.axisIndex]&&(t=!0)},this);var r=e.orient;return null==r&&t?"orient":t?void 0:(null==r&&(e.orient="horizontal"),"axisIndex")},_autoSetAxisIndex:function(){var e=!0,t=this.get("orient",!0),r=this.option;if(e){var i="vertical"===t?{dim:"y",axisIndex:"yAxisIndex",axis:"yAxis"}:{dim:"x",axisIndex:"xAxisIndex",axis:"xAxis"};this.dependentModels[i.axis].length&&(r[i.axisIndex]=[0],e=!1)}e&&d(function(t){if(e){var i=[],o=this.dependentModels[t.axis];if(o.length&&!i.length)for(var n=0,a=o.length;a>n;n++)"category"===o[n].get("type")&&i.push(n);r[t.axisIndex]=i,i.length&&(e=!1)}},this),e&&this.ecModel.eachSeries(function(e){this._isSeriesHasAllAxesTypeOf(e,"value")&&d(function(t){var i=r[t.axisIndex],o=e.get(t.axisIndex),a=e.get(t.axisId),s=e.ecModel.queryComponents({mainType:t.axis,index:o,id:a})[0];o=s.componentIndex,n.indexOf(i,o)<0&&i.push(o)})},this)},_autoSetOrient:function(){var e;this.eachTargetAxis(function(t){!e&&(e=t.name)},this),this.option.orient="y"===e?"vertical":"horizontal"},_isSeriesHasAllAxesTypeOf:function(e,t){var r=!0;return d(function(i){var o=e.get(i.axisIndex),n=this.dependentModels[i.axis][o];n&&n.get("type")===t||(r=!1)},this),r},_setDefaultThrottle:function(e){if(e.hasOwnProperty("throttle")&&(this._autoThrottle=!1),this._autoThrottle){var t=this.ecModel.option;this.option.throttle=t.animation&&t.animationDurationUpdate>0?100:20}},getFirstTargetAxisModel:function(){var e;return d(function(t){if(null==e){var r=this.get(t.axisIndex);r.length&&(e=this.dependentModels[t.axis][r[0]])}},this),e},eachTargetAxis:function(e,t){var r=this.ecModel;d(function(i){u(this.get(i.axisIndex),function(o){e.call(t,i,o,this,r)},this)},this)},getAxisProxy:function(e,t){return this._axisProxies[e+"_"+t]},setRawRange:function(e){u(["start","end","startValue","endValue"],function(t){this.option[t]=e[t]},this)},getPercentRange:function(){var e=this.findRepresentativeAxisProxy();return e?e.getDataPercentWindow():void 0},getValueRange:function(e,t){if(null!=e||null!=t)return this.getAxisProxy(e,t).getDataValueWindow();var r=this.findRepresentativeAxisProxy();return r?r.getDataValueWindow():void 0},findRepresentativeAxisProxy:function(){var e=this._axisProxies;for(var t in e)if(e.hasOwnProperty(t)&&e[t].hostedBy(this))return e[t];for(var t in e)if(e.hasOwnProperty(t)&&!e[t].hostedBy(this))return e[t]}});e.exports=f},function(e,t,r){var i=r(71);e.exports=i.extend({type:"dataZoom",render:function(e,t,r,i){this.dataZoomModel=e,this.ecModel=t,this.api=r},getTargetInfo:function(){function e(e,t,r,i){for(var o,n=0;n=0)){var a=this.getShallow(n);null!=a&&(r[e[o][0]]=a)}}return r}}},function(e,t){e.exports=function(e,t,r,i,o){i.eachRawSeriesByType(e,function(e){var o=e.getData(),n=e.get("symbol")||t,a=e.get("symbolSize");o.setVisual({legendSymbol:r||n,symbol:n,symbolSize:a}),i.isSeriesFiltered(e)||("function"==typeof a&&o.each(function(t){var r=e.getRawValue(t),i=e.getDataParams(t);o.setItemVisual(t,"symbolSize",a(r,i))}),o.each(function(e){var t=o.getItemModel(e),r=t.getShallow("symbol",!0),i=t.getShallow("symbolSize",!0);null!=r&&o.setItemVisual(e,"symbol",r),null!=i&&o.setItemVisual(e,"symbolSize",i)}))})}},function(e,t,r){"use strict";var i=r(25),o=r(5),n=r(73),a=r(7),s=r(53).devicePixelRatio,l={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},c=[],h=[],u=[],d=[],f=Math.min,p=Math.max,m=Math.cos,g=Math.sin,v=Math.sqrt,y=Math.abs,x="undefined"!=typeof Float32Array,b=function(){this.data=[],this._len=0,this._ctx=null,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._ux=0,this._uy=0};b.prototype={constructor:b,_lineDash:null,_dashOffset:0,_dashIdx:0,_dashSum:0,setScale:function(e,t){this._ux=y(1/s/e)||0,this._uy=y(1/s/t)||0},getContext:function(){return this._ctx},beginPath:function(e){return this._ctx=e,e&&e.beginPath(),e&&(this.dpr=e.dpr),this._len=0,this._lineDash&&(this._lineDash=null,this._dashOffset=0),this},moveTo:function(e,t){return this.addData(l.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},lineTo:function(e,t){var r=y(e-this._xi)>this._ux||y(t-this._yi)>this._uy||this._len<5;return this.addData(l.L,e,t),this._ctx&&r&&(this._needsDash()?this._dashedLineTo(e,t):this._ctx.lineTo(e,t)),r&&(this._xi=e,this._yi=t),this},bezierCurveTo:function(e,t,r,i,o,n){return this.addData(l.C,e,t,r,i,o,n),this._ctx&&(this._needsDash()?this._dashedBezierTo(e,t,r,i,o,n):this._ctx.bezierCurveTo(e,t,r,i,o,n)),this._xi=o,this._yi=n,this},quadraticCurveTo:function(e,t,r,i){return this.addData(l.Q,e,t,r,i),this._ctx&&(this._needsDash()?this._dashedQuadraticTo(e,t,r,i):this._ctx.quadraticCurveTo(e,t,r,i)),this._xi=r,this._yi=i,this},arc:function(e,t,r,i,o,n){return this.addData(l.A,e,t,r,r,i,o-i,0,n?0:1),this._ctx&&this._ctx.arc(e,t,r,i,o,n),this._xi=m(o)*r+e,this._xi=g(o)*r+e,this},arcTo:function(e,t,r,i,o){return this._ctx&&this._ctx.arcTo(e,t,r,i,o),this},rect:function(e,t,r,i){return this._ctx&&this._ctx.rect(e,t,r,i),this.addData(l.R,e,t,r,i),this},closePath:function(){this.addData(l.Z);var e=this._ctx,t=this._x0,r=this._y0;return e&&(this._needsDash()&&this._dashedLineTo(t,r),e.closePath()),this._xi=t,this._yi=r,this},fill:function(e){e&&e.fill(),this.toStatic()},stroke:function(e){e&&e.stroke(),this.toStatic()},setLineDash:function(e){if(e instanceof Array){this._lineDash=e,this._dashIdx=0;for(var t=0,r=0;rr;r++)this.data[r]=e[r];this._len=t},appendPath:function(e){e instanceof Array||(e=[e]);for(var t=e.length,r=0,i=this._len,o=0;t>o;o++)r+=e[o].len();x&&this.data instanceof Float32Array&&(this.data=new Float32Array(i+r));for(var o=0;t>o;o++)for(var n=e[o].data,a=0;at.length&&(this._expandData(),t=this.data);for(var r=0;rn&&(n=o+n),n%=o,m-=n*h,g-=n*u;h>0&&e>=m||0>h&&m>=e||0==h&&(u>0&&t>=g||0>u&&g>=t);)i=this._dashIdx,r=a[i],m+=h*r,g+=u*r,this._dashIdx=(i+1)%y,h>0&&l>m||0>h&&m>l||u>0&&c>g||0>u&&g>c||s[i%2?"moveTo":"lineTo"](h>=0?f(m,e):p(m,e),u>=0?f(g,t):p(g,t));h=m-e,u=g-t,this._dashOffset=-v(h*h+u*u)},_dashedBezierTo:function(e,t,r,o,n,a){var s,l,c,h,u,d=this._dashSum,f=this._dashOffset,p=this._lineDash,m=this._ctx,g=this._xi,y=this._yi,x=i.cubicAt,b=0,_=this._dashIdx,S=p.length,w=0;for(0>f&&(f=d+f),f%=d,s=0;1>s;s+=.1)l=x(g,e,r,n,s+.1)-x(g,e,r,n,s),c=x(y,t,o,a,s+.1)-x(y,t,o,a,s),b+=v(l*l+c*c);for(;S>_&&(w+=p[_],!(w>f));_++);for(s=(w-f)/b;1>=s;)h=x(g,e,r,n,s),u=x(y,t,o,a,s),_%2?m.moveTo(h,u):m.lineTo(h,u),s+=p[_]/b,_=(_+1)%S;_%2!==0&&m.lineTo(n,a),l=n-h,c=a-u,this._dashOffset=-v(l*l+c*c)},_dashedQuadraticTo:function(e,t,r,i){var o=r,n=i;r=(r+2*e)/3,i=(i+2*t)/3,e=(this._xi+2*e)/3,t=(this._yi+2*t)/3,this._dashedBezierTo(e,t,r,i,o,n)},toStatic:function(){var e=this.data;e instanceof Array&&(e.length=this._len,x&&(this.data=new Float32Array(e)))},getBoundingRect:function(){c[0]=c[1]=u[0]=u[1]=Number.MAX_VALUE,h[0]=h[1]=d[0]=d[1]=-Number.MAX_VALUE;for(var e=this.data,t=0,r=0,i=0,s=0,f=0;fd;){var f=s[d++];switch(1==d&&(i=s[d],o=s[d+1],t=i,r=o),f){case l.M:t=i=s[d++],r=o=s[d++],e.moveTo(i,o);break;case l.L:n=s[d++],a=s[d++],(y(n-i)>c||y(a-o)>h||d===u-1)&&(e.lineTo(n,a),i=n,o=a);break;case l.C:e.bezierCurveTo(s[d++],s[d++],s[d++],s[d++],s[d++],s[d++]),i=s[d-2],o=s[d-1];break;case l.Q:e.quadraticCurveTo(s[d++],s[d++],s[d++],s[d++]),i=s[d-2],o=s[d-1];break;case l.A:var p=s[d++],v=s[d++],x=s[d++],b=s[d++],_=s[d++],S=s[d++],w=s[d++],C=s[d++],M=x>b?x:b,A=x>b?1:x/b,I=x>b?b/x:1,T=Math.abs(x-b)>.001,P=_+S;T?(e.translate(p,v),e.rotate(w),e.scale(A,I),e.arc(0,0,M,_,P,1-C),e.scale(1/A,1/I),e.rotate(-w),e.translate(-p,-v)):e.arc(p,v,M,_,P,1-C),1==d&&(t=m(_)*x+p,r=g(_)*b+v),i=m(P)*x+p,o=g(P)*b+v;break;case l.R:t=i=s[d],r=o=s[d+1],e.rect(s[d++],s[d++],s[d++],s[d++]);break;case l.Z:e.closePath(),i=t,o=r}}}},b.CMD=l,e.exports=b},function(e,t){var r=function(e){this.colorStops=e||[]};r.prototype={constructor:r,addColorStop:function(e,t){this.colorStops.push({offset:e,color:t})}},e.exports=r},function(e,t,r){e.exports=r(2),r(224),r(175),r(244),r(259),r(249),r(233),r(262),r(201),r(197),r(193),r(240),r(254),r(179),r(184),r(190),r(229),r(214),r(45),r(296),r(335),r(311),r(294),r(106),r(315),r(277), r(325),r(284),r(339),r(303),r(302),r(301),r(316),r(326),r(429)},function(e,t,r){"use strict";function i(e){return null==e.value?e:e.value}var o=r(8),n=r(17),a=r(223),s=r(1),l={_baseAxisDim:null,getInitialData:function(e,t){var r,a,s=t.getComponent("xAxis",this.get("xAxisIndex")),l=t.getComponent("yAxis",this.get("yAxisIndex")),c=s.get("type"),h=l.get("type");"category"===c?(e.layout="horizontal",r=s.getCategories(),a=!0):"category"===h?(e.layout="vertical",r=l.getCategories(),a=!0):e.layout=e.layout||"horizontal",this._baseAxisDim="horizontal"===e.layout?"x":"y";var u=e.data,d=this.dimensions=["base"].concat(this.valueDimensions);n(d,u);var f=new o(d,this);return f.initData(u,r?r.slice():null,function(e,t,r,o){var n=i(e);return a?"base"===t?r:n[o-1]:n[o]}),f},coordDimToDataDim:function(e){var t=this.valueDimensions.slice(),r=["base"],i={horizontal:{x:r,y:t},vertical:{x:t,y:r}};return i[this.get("layout")][e]},dataDimToCoordDim:function(e){var t;return s.each(["x","y"],function(r,i){var o=this.coordDimToDataDim(r);s.indexOf(o,e)>=0&&(t=r)},this),t},getBaseAxis:function(){var e=this._baseAxisDim;return this.ecModel.getComponent(e+"Axis",this.get(e+"AxisIndex")).axis}},c={init:function(){var e=this._whiskerBoxDraw=new a(this.getStyleUpdater());this.group.add(e.group)},render:function(e,t,r){this._whiskerBoxDraw.updateData(e.getData())},remove:function(e){this._whiskerBoxDraw.remove()}};e.exports={seriesModelMixin:l,viewMixin:c}},function(e,t,r){var i=r(1),o={retrieveTargetInfo:function(e,t){if(e&&("treemapZoomToNode"===e.type||"treemapRootToNode"===e.type)){var r=t.getData().tree.root,i=e.targetNode;if(i&&r.contains(i))return{node:i};var o=e.targetNodeId;if(null!=o&&(i=r.getNodeById(o)))return{node:i}}},getPathToRoot:function(e){for(var t=[];e;)e=e.parentNode,e&&t.push(e);return t.reverse()},aboveViewRoot:function(e,t){var r=o.getPathToRoot(e);return i.indexOf(r,t)>=0}};e.exports=o},function(e,t,r){"use strict";var i=r(3),o=r(1),n=r(2);r(117),r(270),n.extendComponentView({type:"grid",render:function(e,t){this.group.removeAll(),e.get("show")&&this.group.add(new i.Rect({shape:e.coordinateSystem.getRect(),style:o.defaults({fill:e.get("backgroundColor")},e.getItemStyle()),silent:!0}))}}),n.registerPreprocessor(function(e){e.xAxis&&e.yAxis&&!e.grid&&(e.grid={})})},function(e,t,r){function i(e){if(!e.target||!e.target.draggable){var t=e.offsetX,r=e.offsetY,i=this.rectProvider&&this.rectProvider();i&&i.contain(t,r)&&(this._x=t,this._y=r,this._dragging=!0)}}function o(e){if(this._dragging&&(d.stop(e.event),"pinch"!==e.gestureEvent)){if(f.isTaken(this._zr,"globalPan"))return;var t=e.offsetX,r=e.offsetY,i=t-this._x,o=r-this._y;this._x=t,this._y=r;var n=this.target;if(n){var a=n.position;a[0]+=i,a[1]+=o,n.dirty()}d.stop(e.event),this.trigger("pan",i,o)}}function n(e){this._dragging=!1}function a(e){var t=e.wheelDelta>0?1.1:1/1.1;l.call(this,e,t,e.offsetX,e.offsetY)}function s(e){if(!f.isTaken(this._zr,"globalPan")){var t=e.pinchScale>1?1.1:1/1.1;l.call(this,e,t,e.pinchX,e.pinchY)}}function l(e,t,r,i){var o=this.rectProvider&&this.rectProvider();if(o&&o.contain(r,i)){d.stop(e.event);var n=this.target,a=this.zoomLimit;if(n){var s=n.position,l=n.scale,c=this.zoom=this.zoom||1;if(c*=t,a){var h=a.min||0,u=a.max||1/0;c=Math.max(Math.min(u,c),h)}var f=c/this.zoom;this.zoom=c,s[0]-=(r-s[0])*(f-1),s[1]-=(i-s[1])*(f-1),l[0]*=f,l[1]*=f,n.dirty()}this.trigger("zoom",t,r,i)}}function c(e,t,r){this.target=t,this.rectProvider=r,this.zoomLimit,this.zoom,this._zr=e;var l=u.bind,c=l(i,this),d=l(o,this),f=l(n,this),p=l(a,this),m=l(s,this);h.call(this),this.enable=function(t){this.disable(),null==t&&(t=!0),t!==!0&&"move"!==t&&"pan"!==t||(e.on("mousedown",c),e.on("mousemove",d),e.on("mouseup",f)),t!==!0&&"scale"!==t&&"zoom"!==t||(e.on("mousewheel",p),e.on("pinch",m))},this.disable=function(){e.off("mousedown",c),e.off("mousemove",d),e.off("mouseup",f),e.off("mousewheel",p),e.off("pinch",m)},this.dispose=this.disable,this.isDragging=function(){return this._dragging},this.isPinching=function(){return this._pinching}}var h=r(29),u=r(1),d=r(32),f=r(104);u.mixin(c,h),e.exports=c},function(e,t,r){var i=r(115),o=r(1),n=r(11),a=r(6),s=["value","category","time","log"];e.exports=function(e,t,r,l){o.each(s,function(n){t.extend({type:e+"Axis."+n,mergeDefaultAndTheme:function(t,i){var s=this.layoutMode,l=s?a.getLayoutParams(t):{},c=i.getTheme();o.merge(t,c.get(n+"Axis")),o.merge(t,this.getDefaultOption()),t.type=r(e,t),s&&a.mergeLayoutParam(t,l,s)},defaultOption:o.mergeAll([{},i[n+"Axis"],l],!0)})}),n.registerSubTypeDefaulter(e+"Axis",o.curry(r,e))}},function(e,t,r){function i(e,t){var r,i=this.getBoundingRect(),o=e.get("layoutCenter"),n=e.get("layoutSize"),s=t.getWidth(),c=t.getHeight(),h=e.get("aspectScale")||.75,u=i.width/i.height*h,d=!1;o&&n&&(o=[l.parsePercent(o[0],s),l.parsePercent(o[1],c)],n=l.parsePercent(n,Math.min(s,c)),isNaN(o[0])||isNaN(o[1])||isNaN(n)||(d=!0));var f;if(d){var f={};u>1?(f.width=n,f.height=n/u):(f.height=n,f.width=n*u),f.y=o[1]-f.height/2,f.x=o[0]-f.width/2}else r=e.getBoxLayoutParams(),r.aspect=u,f=a.getLayoutRect(r,{width:s,height:c});this.setViewRect(f.x,f.y,f.width,f.height),this.setCenter(e.get("center")),this.setZoom(e.get("zoom"))}function o(e,t){s.each(t.get("geoCoord"),function(t,r){e.addGeoCoord(r,t)})}var n=r(351),a=r(6),s=r(1),l=r(4),c={},h={dimensions:n.prototype.dimensions,create:function(e,t){var r=[];e.eachComponent("geo",function(e,a){var s=e.get("map"),l=c[s],h=new n(s+a,s,l&&l.geoJson,l&&l.specialAreas,e.get("nameMap"));h.zoomLimit=e.get("scaleLimit"),r.push(h),o(h,e),e.coordinateSystem=h,h.model=e,h.resize=i,h.resize(e,t)}),e.eachSeries(function(e){var t=e.get("coordinateSystem");if("geo"===t){var i=e.get("geoIndex")||0;e.coordinateSystem=r[i]}});var a={};return e.eachSeriesByType("map",function(e){var t=e.get("map");a[t]=a[t]||[],a[t].push(e)}),s.each(a,function(e,a){var l=c[a],h=s.map(e,function(e){return e.get("nameMap")}),u=new n(a,a,l&&l.geoJson,l&&l.specialAreas,s.mergeAll(h));u.zoomLimit=s.retrieve.apply(null,s.map(e,function(e){return e.get("scaleLimit")})),r.push(u),u.resize=i,u.resize(e[0],t),s.each(e,function(e){e.coordinateSystem=u,o(u,e)})}),r},registerMap:function(e,t,r){t.geoJson&&!t.features&&(r=t.specialAreas,t=t.geoJson),"string"==typeof t&&(t="undefined"!=typeof JSON&&JSON.parse?JSON.parse(t):new Function("return ("+t+");")()),c[e]={geoJson:t,specialAreas:r}},getMap:function(e){return c[e]},getFilledRegions:function(e,t){var r=(e||[]).slice(),i=h.getMap(t),o=i&&i.geoJson;if(!o)return e;for(var n={},a=o.features,s=0;sf;f++)this._add&&this._add(u[f]);else this._add&&this._add(u)}}}},e.exports=i},function(e,t,r){var i=r(4),o=r(10),n=r(51),a=Math.floor,s=Math.ceil,l=i.getPrecisionSafe,c=i.round,h=n.extend({type:"interval",_interval:0,setExtent:function(e,t){var r=this._extent;isNaN(e)||(r[0]=parseFloat(e)),isNaN(t)||(r[1]=parseFloat(t))},unionExtent:function(e){var t=this._extent;e[0]t[1]&&(t[1]=e[1]),h.prototype.setExtent.call(this,t[0],t[1])},getInterval:function(){return this._interval||this.niceTicks(),this._interval},setInterval:function(e){this._interval=e,this._niceExtent=this._extent.slice()},getTicks:function(){this._interval||this.niceTicks();var e=this._interval,t=this._extent,r=[],i=1e4;if(e){var o=this._niceExtent,n=l(e)+2;t[0]i)return[];t[1]>o[1]&&r.push(t[1])}return r},getTicksLabels:function(){for(var e=[],t=this.getTicks(),r=0;rr&&(r=-r,t.reverse());var o=c(i.nice(r/e,!0),Math.max(l(t[0]),l(t[1]))+2),n=l(o)+2,h=[c(s(t[0]/o)*o,n),c(a(t[1]/o)*o,n)];this._interval=o,this._niceExtent=h}},niceExtent:function(e,t,r){var i=this._extent;if(i[0]===i[1])if(0!==i[0]){var o=i[0];r?i[0]-=o/2:(i[1]+=o/2,i[0]-=o/2)}else i[1]=1;var n=i[1]-i[0];isFinite(n)||(i[0]=0,i[1]=1),this.niceTicks(e);var l=this._interval;t||(i[0]=c(a(i[0]/l)*l)),r||(i[1]=c(s(i[1]/l)*l))}});h.create=function(){return new h},e.exports=h},function(e,t,r){function i(){this._extent=[1/0,-(1/0)],this._interval=0,this.init&&this.init.apply(this,arguments)}var o=r(31),n=i.prototype;n.parse=function(e){return e},n.contain=function(e){var t=this._extent;return e>=t[0]&&e<=t[1]},n.normalize=function(e){var t=this._extent;return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])},n.scale=function(e){var t=this._extent;return e*(t[1]-t[0])+t[0]},n.unionExtent=function(e){var t=this._extent;e[0]t[1]&&(t[1]=e[1])},n.getExtent=function(){return this._extent.slice()},n.setExtent=function(e,t){var r=this._extent;isNaN(e)||(r[0]=e),isNaN(t)||(r[1]=t)},n.getTicksLabels=function(){for(var e=[],t=this.getTicks(),r=0;rf;f++){var m=h[f];n[m]&&n[m].applyVisual(e,l,c)}}var u={};o.each(e,function(e){var r=n.prepareVisualTypes(t[e]);u[e]=r});var d;null==s?r.each(h,!0):r.each([s],h,!0)}};e.exports=s},function(e,t){var r=1;"undefined"!=typeof window&&(r=Math.max(window.devicePixelRatio||1,1));var i={debugMode:0,devicePixelRatio:r};e.exports=i},function(e,t,r){var i=r(1),o=r(122),n=r(7),a=function(e){e=e||{},o.call(this,e);for(var t in e)this[t]=e[t];this._children=[],this.__storage=null,this.__dirty=!0};a.prototype={constructor:a,isGroup:!0,type:"group",silent:!1,children:function(){return this._children.slice()},childAt:function(e){return this._children[e]},childOfName:function(e){for(var t=this._children,r=0;r=0&&(r.splice(i,0,e),this._doAdd(e))}return this},_doAdd:function(e){e.parent&&e.parent.remove(e),e.parent=this;var t=this.__storage,r=this.__zr;t&&t!==e.__storage&&(t.addToMap(e),e instanceof a&&e.addChildrenToStorage(t)),r&&r.refresh()},remove:function(e){var t=this.__zr,r=this.__storage,o=this._children,n=i.indexOf(o,e);return 0>n?this:(o.splice(n,1),e.parent=null,r&&(r.delFromMap(e.id),e instanceof a&&e.delChildrenFromStorage(r)),t&&t.refresh(),this)},removeAll:function(){var e,t,r=this._children,i=this.__storage;for(t=0;t.8?"left":u[0]<-.8?"right":"center",m=u[1]>.8?"top":u[1]<-.8?"bottom":"middle";else if("middle"===i.__position){var v=s/2,d=a.tangentAt(v),y=[d[1],-d[0]],x=a.pointAt(v);y[1]>0&&(y[0]=-y[0],y[1]=-y[1]),f=[x[0]+y[0]*g,x[1]+y[1]*g],p="center",m="bottom";var b=-Math.atan2(d[1],d[0]);c[0].8?"right":u[0]<-.8?"left":"center",m=u[1]>.8?"bottom":u[1]<-.8?"top":"middle";i.attr({style:{textVerticalAlign:i.__verticalAlign||m,textAlign:i.__textAlign||p},position:f,scale:[o,o]})}}}}function l(e,t,r){d.Group.call(this),this._createLine(e,t,r)}var c=r(19),h=r(5),u=r(222),d=r(3),f=r(1),p=r(4),m=["fromSymbol","toSymbol"],g=l.prototype;g.beforeUpdate=s,g._createLine=function(e,t,r){var a=e.hostModel,s=e.getItemLayout(t),l=n(s);l.shape.percent=0,d.initProps(l,{shape:{percent:1}},a,t),this.add(l);var c=new d.Text({name:"label"});this.add(c),f.each(m,function(r){var n=o(r,e,t);this.add(n),this[i(r)]=e.getItemVisual(t,r)},this),this._updateCommonStl(e,t,r)},g.updateData=function(e,t,r){var n=e.hostModel,s=this.childOfName("line"),l=e.getItemLayout(t),c={shape:{}};a(c.shape,l),d.updateProps(s,c,n,t),f.each(m,function(r){var n=e.getItemVisual(t,r),a=i(r);if(this[a]!==n){this.remove(this.childOfName(r));var s=o(r,e,t);this.add(s)}this[a]=n},this),this._updateCommonStl(e,t,r)},g._updateCommonStl=function(e,t,r){var i=e.hostModel,o=this.childOfName("line"),n=r&&r.lineStyle,a=r&&r.hoverLineStyle,s=r&&r.labelModel,l=r&&r.hoverLabelModel;if(!r||e.hasItemOption){var c=e.getItemModel(t);n=c.getModel("lineStyle.normal").getLineStyle(),a=c.getModel("lineStyle.emphasis").getLineStyle(),s=c.getModel("label.normal"),l=c.getModel("label.emphasis")}var h=e.getItemVisual(t,"color"),u=f.retrieve(e.getItemVisual(t,"opacity"),n.opacity,1);isNaN(g)&&(g=e.getName(t)),o.useStyle(f.defaults({strokeNoScale:!0,fill:"none",stroke:h,opacity:u},n)),o.hoverStyle=a,f.each(m,function(e){var t=this.childOfName(e);t&&(t.setColor(h),t.setStyle({opacity:u}))},this);var g,v,y=s.getShallow("show"),x=l.getShallow("show"),b=this.childOfName("label");if((y||x)&&(g=p.round(i.getRawValue(t)),v=h||"#000"),y){var _=s.getModel("textStyle");b.setStyle({text:f.retrieve(i.getFormattedLabel(t,"normal",e.dataType),g),textFont:_.getFont(),fill:_.getTextColor()||v}),b.__textAlign=_.get("align"),b.__verticalAlign=_.get("baseline"),b.__position=s.get("position")}else b.setStyle("text","");if(x){var S=l.getModel("textStyle");b.hoverStyle={text:f.retrieve(i.getFormattedLabel(t,"emphasis",e.dataType),g),textFont:S.getFont(),fill:S.getTextColor()||v}}else b.hoverStyle={text:""};b.ignore=!y&&!x,d.setHoverStyle(this)},g.updateLayout=function(e,t){this.setLinePoints(e.getItemLayout(t))},g.setLinePoints=function(e){var t=this.childOfName("line");a(t.shape,e),t.dirty()},f.inherits(l,d.Group),e.exports=l},function(e,t,r){function i(e){return isNaN(e[0])||isNaN(e[1])}function o(e){return!i(e[0])&&!i(e[1])}function n(e){this._ctor=e||s,this.group=new a.Group}var a=r(3),s=r(56),l=n.prototype;l.updateData=function(e){var t=this._lineData,r=this.group,i=this._ctor,n=e.hostModel,a={lineStyle:n.getModel("lineStyle.normal").getLineStyle(),hoverLineStyle:n.getModel("lineStyle.emphasis").getLineStyle(),labelModel:n.getModel("label.normal"),hoverLabelModel:n.getModel("label.emphasis")};e.diff(t).add(function(t){if(o(e.getItemLayout(t))){var n=new i(e,t,a);e.setItemGraphicEl(t,n),r.add(n)}}).update(function(n,s){var l=t.getItemGraphicEl(s);return o(e.getItemLayout(n))?(l?l.updateData(e,n,a):l=new i(e,n,a),e.setItemGraphicEl(n,l),void r.add(l)):void r.remove(l)}).remove(function(e){r.remove(t.getItemGraphicEl(e))}).execute(),this._lineData=e},l.updateLayout=function(){var e=this._lineData;e.eachItemGraphicEl(function(t,r){t.updateLayout(e,r)},this)},l.remove=function(){this.group.removeAll()},e.exports=n},function(e,t,r){function i(e){return e instanceof Array||(e=[+e,+e]),e}function o(e,t,r){l.Group.call(this),this.updateData(e,t,r)}function n(e,t){this.parent.drift(e,t)}var a=r(1),s=r(19),l=r(3),c=r(4),h=o.prototype;h._createSymbol=function(e,t,r){this.removeAll();var o=t.hostModel,a=t.getItemVisual(r,"color"),c=s.createSymbol(e,-.5,-.5,1,1,a);c.attr({z2:100,culling:!0,scale:[0,0]}),c.drift=n;var h=i(t.getItemVisual(r,"symbolSize"));l.initProps(c,{scale:h},o,r),this._symbolType=e,this.add(c)},h.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(e)},h.getSymbolPath=function(){return this.childAt(0)},h.getScale=function(){return this.childAt(0).scale},h.highlight=function(){this.childAt(0).trigger("emphasis")},h.downplay=function(){this.childAt(0).trigger("normal")},h.setZ=function(e,t){var r=this.childAt(0);r.zlevel=e,r.z=t},h.setDraggable=function(e){var t=this.childAt(0);t.draggable=e,t.cursor=e?"move":"pointer"},h.updateData=function(e,t,r){this.silent=!1;var o=e.getItemVisual(t,"symbol")||"circle",n=e.hostModel,a=i(e.getItemVisual(t,"symbolSize"));if(o!==this._symbolType)this._createSymbol(o,e,t);else{var s=this.childAt(0);l.updateProps(s,{scale:a},n,t)}this._updateCommon(e,t,a,r),this._seriesModel=n};var u=["itemStyle","normal"],d=["itemStyle","emphasis"],f=["label","normal"],p=["label","emphasis"];h._updateCommon=function(e,t,r,o){var n=this.childAt(0),s=e.hostModel,h=e.getItemVisual(t,"color");"image"!==n.type&&n.useStyle({strokeNoScale:!0}),o=o||null;var m=o&&o.itemStyle,g=o&&o.hoverItemStyle,v=o&&o.symbolRotate,y=o&&o.symbolOffset,x=o&&o.labelModel,b=o&&o.hoverLabelModel,_=o&&o.hoverAnimation;if(!o||e.hasItemOption){var S=e.getItemModel(t);m=S.getModel(u).getItemStyle(["color"]),g=S.getModel(d).getItemStyle(),v=S.getShallow("symbolRotate"),y=S.getShallow("symbolOffset"),x=S.getModel(f),b=S.getModel(p),_=S.getShallow("hoverAnimation")}else g=a.extend({},g);var w=n.style;n.rotation=(v||0)*Math.PI/180||0,y&&n.attr("position",[c.parsePercent(y[0],r[0]),c.parsePercent(y[1],r[1])]),n.setColor(h),n.setStyle(m);var C=e.getItemVisual(t,"opacity");null!=C&&(w.opacity=C);for(var M,A,I=e.dimensions.slice();I.length&&(M=I.pop(),A=e.getDimensionInfo(M).type,"ordinal"===A||"time"===A););null!=M&&x.getShallow("show")?(l.setText(w,x,h),w.text=a.retrieve(s.getFormattedLabel(t,"normal"),e.get(M,t))):w.text="",null!=M&&b.getShallow("show")?(l.setText(g,b,h),g.text=a.retrieve(s.getFormattedLabel(t,"emphasis"),e.get(M,t))):g.text="";var T=i(e.getItemVisual(t,"symbolSize"));if(n.off("mouseover").off("mouseout").off("emphasis").off("normal"),n.hoverStyle=g,l.setHoverStyle(n),_&&s.ifEnableAnimation()){var P=function(){var e=T[1]/T[0];this.animateTo({scale:[Math.max(1.1*T[0],T[0]+3),Math.max(1.1*T[1],T[1]+3*e)]},400,"elasticOut")},L=function(){this.animateTo({scale:T},400,"elasticOut")};n.on("mouseover",P).on("mouseout",L).on("emphasis",P).on("normal",L)}},h.fadeOut=function(e){var t=this.childAt(0);this.silent=!0,t.style.text="",l.updateProps(t,{scale:[0,0]},this._seriesModel,this.dataIndex,e)},a.inherits(o,l.Group),e.exports=o},function(e,t,r){function i(e){V.call(this),this._zr=e,this.group=new W.Group,this._brushType,this._brushOption,this._panels,this._track=[],this._dragging,this._covers=[],this._creatingCover,this._creatingPanel,this._enableGlobalPan,this._uid="brushController_"+te++,this._handlers={},F(re,function(e,t){this._handlers[t]=N.bind(e,this)},this)}function o(e,t){var r=e._zr;e._enableGlobalPan||B.take(r,Q,e._uid),F(e._handlers,function(e,t){r.on(t,e)}),e._brushType=t.brushType,e._brushOption=N.merge(N.clone(ee),t,!0)}function n(e){var t=e._zr;B.release(t,Q,e._uid),F(e._handlers,function(e,r){t.off(r,e)}),e._brushType=e._brushOption=null}function a(e,t){var r=ie[t.brushType].createCover(e,t);return c(r),r.__brushOption=t,e.group.add(r),r}function s(e,t){var r=u(t);return r.endCreating&&(r.endCreating(e,t),c(t)),t}function l(e,t){var r=t.__brushOption;u(t).updateCoverShape(e,t,r.range,r)}function c(e){e.traverse(function(e){e.z=U,e.z2=U})}function h(e,t){u(t).updateCommon(e,t),l(e,t)}function u(e){return ie[e.__brushOption.brushType]}function d(e,t,r){var i=e._panels;if(!i)return!0;var o;return F(i,function(e){e.contain(t,r)&&(o=e)}),o}function f(e,t){var r=e._panels;if(!r)return!0;var i=t.__brushOption.panelId;return null!=i?r[i]:!0}function p(e){var t=e._covers,r=t.length;return F(t,function(t){e.group.remove(t)},e),t.length=0,!!r}function m(e,t){var r=H(e._covers,function(e){var t=e.__brushOption,r=N.clone(t.range);return{brushType:t.brushType,panelId:t.panelId,range:r}});e.trigger("brush",r,{isEnd:!!t.isEnd,removeOnClick:!!t.removeOnClick})}function g(e){var t=e._track;if(!t.length)return!1;var r=t[t.length-1],i=t[0],o=r[0]-i[0],n=r[1]-i[1],a=Z(o*o+n*n,.5);return a>X}function v(e){var t=e.length-1;return 0>t&&(t=0),[e[0],e[t]]}function y(e,t,r,i){var o=new W.Group;return o.add(new W.Rect({name:"main",style:S(r),silent:!0,draggable:!0,cursor:"move",drift:G(e,t,o,"nswe"),ondragend:G(m,t,{isEnd:!0})})),F(i,function(r){o.add(new W.Rect({name:r,style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:G(e,t,o,r),ondragend:G(m,t,{isEnd:!0})}))}),o}function x(e,t,r,i){var o=i.brushStyle.lineWidth||0,n=q(o,Y),a=r[0][0],s=r[1][0],l=a-o/2,c=s-o/2,h=r[0][1],u=r[1][1],d=h-n+o/2,f=u-n+o/2,p=h-a,m=u-s,g=p+o,v=m+o;_(e,t,"main",a,s,p,m),i.transformable&&(_(e,t,"w",l,c,n,v),_(e,t,"e",d,c,n,v),_(e,t,"n",l,c,g,n),_(e,t,"s",l,f,g,n),_(e,t,"nw",l,c,n,n),_(e,t,"ne",d,c,n,n),_(e,t,"sw",l,f,n,n),_(e,t,"se",d,f,n,n))}function b(e,t){var r=t.__brushOption,i=r.transformable,o=t.childAt(0);o.useStyle(S(r)),o.attr({silent:!i,cursor:i?"move":"default"}),F(["w","e","n","s","se","sw","ne","nw"],function(r){var o=t.childOfName(r),n=M(e,r);o&&o.attr({silent:!i,invisible:!i,cursor:i?K[n]+"-resize":null})})}function _(e,t,r,i,o,n,a){var s=t.childOfName(r);s&&s.setShape(L(P(e,t,[[i,o],[i+n,o+a]])))}function S(e){return N.defaults({strokeNoScale:!0},e.brushStyle)}function w(e,t,r,i){var o=[$(e,r),$(t,i)],n=[q(e,r),q(t,i)];return[[o[0],n[0]],[o[1],n[1]]]}function C(e){return W.getTransform(e.group)}function M(e,t){if(t.length>1){t=t.split("");var r=[M(e,t[0]),M(e,t[1])];return("e"===r[0]||"w"===r[0])&&r.reverse(),r.join("")}var i={w:"left",e:"right",n:"top",s:"bottom"},o={left:"w",right:"e",top:"n",bottom:"s"},r=W.transformDirection(i[t],C(e));return o[r]}function A(e,t,r,i,o,n,a,s){var l=i.__brushOption,c=e(l.range),u=T(r,n,a);F(o.split(""),function(e){var t=J[e];c[t[0]][t[1]]+=u[t[0]]}),l.range=t(w(c[0][0],c[1][0],c[0][1],c[1][1])),h(r,i),m(r,{isEnd:!1})}function I(e,t,r,i,o){var n=t.__brushOption.range,a=T(e,r,i);F(n,function(e){e[0]+=a[0],e[1]+=a[1]}),h(e,t),m(e,{isEnd:!1})}function T(e,t,r){var i=e.group,o=i.transformCoordToLocal(t,r),n=i.transformCoordToLocal(0,0);return[o[0]-n[0],o[1]-n[1]]}function P(e,t,r){var i=f(e,t);if(i===!0)return N.clone(r);var o=i.getBoundingRect();return N.map(r,function(e){var t=e[0];t=q(t,o.x),t=$(t,o.x+o.width);var r=e[1];return r=q(r,o.y),r=$(r,o.y+o.height),[t,r]})}function L(e){var t=$(e[0][0],e[1][0]),r=$(e[0][1],e[1][1]),i=q(e[0][0],e[1][0]),o=q(e[0][1],e[1][1]);return{x:t,y:r,width:i-t,height:o-r}}function k(e,t){var r=t.offsetX,i=t.offsetY,o=e._zr;if(e._brushType){for(var n,a=e._panels,s=e._covers,l=0;le[1]&&e.reverse(),e}function o(e,t){for(var r=!0,i=0;i=0){r=!1;for(var n=0;n=0?(r=i.getBoundingRect().clone(),r.applyTransform(s.getTransform(i))):r=i.grid.getRect().clone(),t.push({panelId:e.panelId,rect:r})}),t},c.makeCoordInfoList=function(e,t){var r=[];return l(h,function(i){var o=e[i+"Index"];null!=o&&"none"!==o&&("all"===o||a.isArray(o)||(o=[o]),t.eachComponent({mainType:i},function(e,t){if(!("all"!==o&&a.indexOf(o,t)<0)){var n,s;"xAxis"===i||"yAxis"===i?n=e.axis.grid:s=e.coordinateSystem;for(var l,c=0,h=r.length;h>c;c++){var d=r[c];if("yAxis"===i&&!d.yAxis&&d.xAxis){var f=n.getCartesian(d.xAxisIndex,t);if(f){s=f,l=d;break}}}!l&&r.push(l={}),l[i]=e,l[i+"Index"]=t,l.panelId=i+u+t,l.coordSys=s||n.getCartesian(l.xAxisIndex,l.yAxisIndex),l.coordSys?r[i+"Has"]=!0:r.pop()}}))}),r},c.controlSeries=function(e,t,r){var i=o(e,t.coordInfoList);return i===!0||i&&i.coordSys===r.coordinateSystem};var f={lineX:a.curry(n,"x"),lineY:a.curry(n,"y"),rect:function(e,t,r){var o=t.coordSys,n=o[d[e]]([r[0][0],r[1][0]]),a=o[d[e]]([r[0][1],r[1][1]]);return[i([n[0],a[0]]),i([n[1],a[1]])]},polygon:function(e,t,r){var i=t.coordSys;return a.map(r,i[d[e]],i)}};e.exports=c},function(e,t,r){var i=r(1);e.exports={updateSelectedMap:function(e){this._selectTargetMap=i.reduce(e||[],function(e,t){return e[t.name]=t,e},{})},select:function(e){var t=this._selectTargetMap,r=t[e],o=this.get("selectedMode");"single"===o&&i.each(t,function(e){e.selected=!1}),r&&(r.selected=!0)},unSelect:function(e){var t=this._selectTargetMap[e];t&&(t.selected=!1)},toggleSelected:function(e){var t=this._selectTargetMap[e];return null!=t?(this[t.selected?"unSelect":"select"](e),t.selected):void 0},isSelected:function(e){var t=this._selectTargetMap[e];return t&&t.selected}}},function(e,t){e.exports=function(e,t,r,i,o){function n(e,t,r){var i=t.length?t.slice():[t,t];return t[0]>t[1]&&i.reverse(),0>e&&i[0]+e0&&i[1]+e>r[1]&&(e=r[1]-i[1]),e}return e?("rigid"===i?(e=n(e,t,r),t[0]+=e,t[1]+=e):(e=n(e,t[o],r),t[o]+=e,"push"===i&&t[0]>t[1]&&(t[1-o]=t[o])),t):t}},function(e,t,r){function i(e){o.defaultEmphasis(e.label,o.LABEL_OPTIONS)}var o=r(12),n=r(1),a=r(15),s=r(10),l=s.addCommas,c=s.encodeHTML,h=r(2).extendComponentModel({type:"marker",dependencies:["series","grid","polar","geo"],init:function(e,t,r,i){this.mergeDefaultAndTheme(e,r),this.mergeOption(e,r,i.createdBySelf,!0)},ifEnableAnimation:function(){if(a.node)return!1;var e=this.__hostSeries;return this.getShallow("animation")&&e&&e.ifEnableAnimation()},mergeOption:function(e,t,r,o){var a=this.constructor,s=this.mainType+"Model";r||t.eachSeries(function(e){var r=e.get(this.mainType),l=e[s];if(!r||!r.data)return void(e[s]=null);if(l)l.mergeOption(r,t,!0);else{o&&i(r),n.each(r.data,function(e){e instanceof Array?(i(e[0]),i(e[1])):i(e)});var c={mainType:this.mainType,seriesIndex:e.seriesIndex,name:e.name,createdBySelf:!0};l=new a(r,this,t,c),l.__hostSeries=e}e[s]=l},this)},formatTooltip:function(e){var t=this.getData(),r=this.getRawValue(e),i=n.isArray(r)?n.map(r,l).join(", "):l(r),o=t.getName(e),a=this.name;return(null!=r||o)&&(a+="
"),o&&(a+=c(o),null!=r&&(a+=" : ")),null!=r&&(a+=i),a},getData:function(){return this._data},setData:function(e){this._data=e}});n.mixin(h,o.dataFormatMixin),e.exports=h},function(e,t,r){e.exports=r(2).extendComponentView({type:"marker",init:function(){this.markerGroupMap={}},render:function(e,t,r){var i=this.markerGroupMap;for(var o in i)i[o].__keep=!1;var n=this.type+"Model";t.eachSeries(function(e){var i=e[n];i&&this.renderSeries(e,i,t,r)},this);for(var o in i)i[o].__keep||this.group.remove(i[o].group)},renderSeries:function(){}})},function(e,t,r){function i(e){return!(isNaN(parseFloat(e.x))&&isNaN(parseFloat(e.y)))}function o(e){return!isNaN(parseFloat(e.x))&&!isNaN(parseFloat(e.y))}function n(e,t,r){var i=-1;do i=Math.max(l.getPrecision(e.get(t,r)),i),e=e.stackedOn;while(e);return i}function a(e,t,r,i,o,a){var s=[],l=g(t,i,e),c=t.indexOfNearest(i,l,!0);s[o]=t.get(r,c,!0),s[a]=t.get(i,c,!0);var h=n(t,i,c);return h>=0&&(s[a]=+s[a].toFixed(h)),s}var s=r(1),l=r(4),c=s.indexOf,h=s.curry,u={min:h(a,"min"),max:h(a,"max"),average:h(a,"average")},d=function(e,t){var r=e.getData(),i=e.coordinateSystem;if(t&&!o(t)&&!s.isArray(t.coord)&&i){var n=i.dimensions,a=f(t,r,i,e);if(t=s.clone(t),t.type&&u[t.type]&&a.baseAxis&&a.valueAxis){var l=c(n,a.baseAxis.dim),h=c(n,a.valueAxis.dim);t.coord=u[t.type](r,a.baseDataDim,a.valueDataDim,l,h),t.value=t.coord[h]}else{for(var d=[null!=t.xAxis?t.xAxis:t.radiusAxis,null!=t.yAxis?t.yAxis:t.angleAxis],p=0;2>p;p++)if(u[d[p]]){var m=e.coordDimToDataDim(n[p])[0];d[p]=g(r,m,d[p])}t.coord=d}}return t},f=function(e,t,r,i){var o={};return null!=e.valueIndex||null!=e.valueDim?(o.valueDataDim=null!=e.valueIndex?t.getDimension(e.valueIndex):e.valueDim,o.valueAxis=r.getAxis(i.dataDimToCoordDim(o.valueDataDim)),o.baseAxis=r.getOtherAxis(o.valueAxis),o.baseDataDim=i.coordDimToDataDim(o.baseAxis.dim)[0]):(o.baseAxis=i.getBaseAxis(),o.valueAxis=r.getOtherAxis(o.baseAxis),o.baseDataDim=i.coordDimToDataDim(o.baseAxis.dim)[0],o.valueDataDim=i.coordDimToDataDim(o.valueAxis.dim)[0]),o},p=function(e,t){return e&&e.containData&&t.coord&&!i(t)?e.containData(t.coord):!0},m=function(e,t,r,i){return 2>i?e.coord&&e.coord[i]:e.value},g=function(e,t,r){if("average"===r){var i=0,o=0;return e.each(t,function(e,t){isNaN(e)||(i+=e,o++)},!0),i/o}return e.getDataExtent(t,!0)["max"===r?1:0]};e.exports={dataTransform:d,dataFilter:p,dimValueGetter:m,getAxisInfo:f,numCalculate:g}},function(e,t,r){function i(e,t){var r=e.get("center"),i=e.get("radius"),o=t.getWidth(),n=t.getHeight(),a=s.parsePercent;this.cx=a(r[0],o),this.cy=a(r[1],n);var l=this.getRadiusAxis(),c=Math.min(o,n)/2;l.setExtent(0,a(i,c))}function o(e,t){var r=this,i=r.getAngleAxis(),o=r.getRadiusAxis();if(i.scale.setExtent(1/0,-(1/0)),o.scale.setExtent(1/0,-(1/0)),e.eachSeries(function(e){if(e.coordinateSystem===r){var t=e.getData();o.scale.unionExtent(t.getDataExtent("radius","category"!==o.type)),i.scale.unionExtent(t.getDataExtent("angle","category"!==i.type))}}),c(i,i.model),c(o,o.model),"category"===i.type&&!i.onBand){var n=i.getExtent(),a=360/i.scale.count();i.inverse?n[1]+=a:n[1]-=a,i.setExtent(n[0],n[1])}}function n(e,t){if(e.type=t.get("type"),e.scale=l.createScaleByModel(t),e.onBand=t.get("boundaryGap")&&"category"===e.type,"angleAxis"===t.mainType){var r=t.get("startAngle");e.inverse=t.get("inverse")^t.get("clockwise"),e.setExtent(r,r+(e.inverse?-360:360))}t.axis=e,e.model=t}var a=r(364),s=r(4),l=(r(1),r(16)),c=l.niceScaleExtent;r(365);var h={dimensions:a.prototype.dimensions,create:function(e,t){var r=[];return e.eachComponent("polar",function(e,s){var l=new a(s);l.resize=i,l.update=o;var c=l.getRadiusAxis(),h=l.getAngleAxis(),u=e.findAxisModel("radiusAxis"),d=e.findAxisModel("angleAxis");n(c,u),n(h,d),l.resize(e,t),r.push(l),e.coordinateSystem=l}),e.eachSeries(function(t){if("polar"===t.get("coordinateSystem")){var r=e.queryComponents({mainType:"polar",index:t.get("polarIndex"),id:t.get("polarId")})[0];t.coordinateSystem=r.coordinateSystem}}),r}};r(18).register("polar",h)},function(e,t){e.exports=function(e,t){t.eachSeriesByType(e,function(e){var t=e.getData(),r=e.coordinateSystem;if(r){var i=r.dimensions;"singleAxis"===r.type?t.each(i[0],function(e,i){t.setItemLayout(i,isNaN(e)?[NaN,NaN]:r.dataToPoint(e))}):t.each(i,function(e,i,o){t.setItemLayout(o,isNaN(e)||isNaN(i)?[NaN,NaN]:r.dataToPoint([e,i]))},!0)}})}},function(e,t){e.exports=function(e,t){var r=t.findComponents({mainType:"legend"});r&&r.length&&t.eachSeriesByType(e,function(e){var t=e.getData();t.filterSelf(function(e){for(var i=t.getName(e),o=0;o=0&&r.push(e)}),r}e.topologicalTravel=function(e,t,o,n){function a(e){c[e].entryCount--,0===c[e].entryCount&&h.push(e)}function s(e){u[e]=!0,a(e)}if(e.length){var l=r(t),c=l.graph,h=l.noEntryList,u={};for(i.each(e,function(e){u[e]=!0});h.length;){var d=h.pop(),f=c[d],p=!!u[d];p&&(o.call(n,d,f.originalDeps.slice()),delete u[d]),i.each(f.successor,p?s:a)}i.each(u,function(){throw new Error("Circle dependency may exists")})}}},e.exports=s},function(e,t){var r={},i="\x00__throttleOriginMethod",o="\x00__throttleRate",n="\x00__throttleType";r.throttle=function(e,t,r){function i(){c=(new Date).getTime(),h=null,e.apply(a,s||[])}var o,n,a,s,l=0,c=0,h=null;t=t||0;var u=function(){o=(new Date).getTime(),a=this,s=arguments,n=o-(r?l:c)-t,clearTimeout(h),r?h=setTimeout(i,t):n>=0?i():h=setTimeout(i,-n),l=o};return u.clear=function(){h&&(clearTimeout(h),h=null)},u},r.createOrUpdate=function(e,t,a,s){var l=e[t];if(l){var c=l[i]||l,h=l[n],u=l[o];if(u!==a||h!==s){if(null==a||!s)return e[t]=c;l=e[t]=r.throttle(c,a,"debounce"===s),l[i]=c,l[n]=s,l[o]=a}return l}},r.clear=function(e,t){var r=e[t];r&&r[i]&&(e[t]=r[i])},e.exports=r},function(e,t,r){var i=r(54),o=r(69),n=r(31),a=function(){this.group=new i,this.uid=o.getUID("viewComponent")};a.prototype={constructor:a,init:function(e,t){},render:function(e,t,r,i){},dispose:function(){}};var s=a.prototype;s.updateView=s.updateLayout=s.updateVisual=function(e,t,r,i){},n.enableClassExtend(a),n.enableClassManagement(a,{registerWhenExtend:!0}),e.exports=a},function(e,t){e.exports=function(e,t){var r={};t.eachRawSeriesByType(e,function(e){var i=e.getRawData(),o={};if(!t.isSeriesFiltered(e)){var n=e.getData();n.each(function(e){var t=n.getRawIndex(e);o[t]=e}),i.each(function(t){var a=i.getItemModel(t),s=o[t],l=null!=s&&n.getItemVisual(s,"color",!0);if(l)i.setItemVisual(t,"color",l);else{var c=a.get("itemStyle.normal.color")||e.getColorFromPalette(i.getName(t),r);i.setItemVisual(t,"color",c),null!=s&&n.setItemVisual(s,"color",c)}})}})}},function(e,t,r){var i=r(5),o=r(25),n={},a=Math.min,s=Math.max,l=Math.sin,c=Math.cos,h=i.create(),u=i.create(),d=i.create(),f=2*Math.PI;n.fromPoints=function(e,t,r){if(0!==e.length){var i,o=e[0],n=o[0],l=o[0],c=o[1],h=o[1];for(i=1;if;f++){var x=v(e,r,n,c,p[f]);u[0]=a(x,u[0]),d[0]=s(x,d[0])}for(y=g(t,i,l,h,m),f=0;y>f;f++){var b=v(t,i,l,h,m[f]);u[1]=a(b,u[1]),d[1]=s(b,d[1])}u[0]=a(e,u[0]),d[0]=s(e,d[0]),u[0]=a(c,u[0]),d[0]=s(c,d[0]),u[1]=a(t,u[1]),d[1]=s(t,d[1]),u[1]=a(h,u[1]),d[1]=s(h,d[1])},n.fromQuadratic=function(e,t,r,i,n,l,c,h){var u=o.quadraticExtremum,d=o.quadraticAt,f=s(a(u(e,r,n),1),0),p=s(a(u(t,i,l),1),0),m=d(e,r,n,f),g=d(t,i,l,p);c[0]=a(e,n,m),c[1]=a(t,l,g),h[0]=s(e,n,m),h[1]=s(t,l,g)},n.fromArc=function(e,t,r,o,n,a,s,p,m){var g=i.min,v=i.max,y=Math.abs(n-a);if(1e-4>y%f&&y>1e-4)return p[0]=e-r,p[1]=t-o,m[0]=e+r,void(m[1]=t+o);if(h[0]=c(n)*r+e,h[1]=l(n)*o+t,u[0]=c(a)*r+e,u[1]=l(a)*o+t,g(p,h,u),v(m,h,u),n%=f,0>n&&(n+=f),a%=f,0>a&&(a+=f),n>a&&!s?a+=f:a>n&&s&&(n+=f),s){var x=a;a=n,n=x}for(var b=0;a>b;b+=Math.PI/2)b>n&&(d[0]=c(b)*r+e,d[1]=l(b)*o+t,g(p,d,p),v(m,d,m))},e.exports=n},function(e,t,r){var i=r(53);e.exports=function(){if(0!==i.debugMode)if(1==i.debugMode)for(var e in arguments)throw new Error(arguments[e]);else if(i.debugMode>1)for(var e in arguments)console.log(arguments[e])}},function(e,t){function r(e){for(var t=0;e>=h;)t|=1&e,e>>=1;return e+t}function i(e,t,r,i){var n=t+1;if(n===r)return 1;if(i(e[n++],e[t])<0){for(;r>n&&i(e[n],e[n-1])<0;)n++;o(e,t,n)}else for(;r>n&&i(e[n],e[n-1])>=0;)n++;return n-t}function o(e,t,r){for(r--;r>t;){var i=e[t];e[t++]=e[r],e[r--]=i}}function n(e,t,r,i,o){for(i===t&&i++;r>i;i++){for(var n,a=e[i],s=t,l=i;l>s;)n=s+l>>>1,o(a,e[n])<0?l=n:s=n+1;var c=i-s;switch(c){case 3:e[s+3]=e[s+2];case 2:e[s+2]=e[s+1];case 1:e[s+1]=e[s];break;default:for(;c>0;)e[s+c]=e[s+c-1],c--}e[s]=a}}function a(e,t,r,i,o,n){var a=0,s=0,l=1;if(n(e,t[r+o])>0){for(s=i-o;s>l&&n(e,t[r+o+l])>0;)a=l,l=(l<<1)+1,0>=l&&(l=s);l>s&&(l=s),a+=o,l+=o}else{for(s=o+1;s>l&&n(e,t[r+o-l])<=0;)a=l,l=(l<<1)+1,0>=l&&(l=s);l>s&&(l=s);var c=a;a=o-l,l=o-c}for(a++;l>a;){var h=a+(l-a>>>1);n(e,t[r+h])>0?a=h+1:l=h}return l}function s(e,t,r,i,o,n){var a=0,s=0,l=1;if(n(e,t[r+o])<0){for(s=o+1;s>l&&n(e,t[r+o-l])<0;)a=l,l=(l<<1)+1,0>=l&&(l=s);l>s&&(l=s);var c=a;a=o-l,l=o-c}else{for(s=i-o;s>l&&n(e,t[r+o+l])>=0;)a=l,l=(l<<1)+1,0>=l&&(l=s);l>s&&(l=s),a+=o,l+=o}for(a++;l>a;){var h=a+(l-a>>>1);n(e,t[r+h])<0?l=h:a=h+1}return l}function l(e,t){function r(e,t){h[y]=e,f[y]=t,y+=1}function i(){for(;y>1;){var e=y-2;if(e>=1&&f[e-1]<=f[e]+f[e+1]||e>=2&&f[e-2]<=f[e]+f[e-1])f[e-1]f[e+1])break;n(e)}}function o(){for(;y>1;){var e=y-2;e>0&&f[e-1]=o?l(i,o,n,u):c(i,o,n,u)))}function l(r,i,o,n){var l=0;for(l=0;i>l;l++)x[l]=e[r+l];var c=0,h=o,d=r;if(e[d++]=e[h++],0!==--n){if(1===i){for(l=0;n>l;l++)e[d+l]=e[h+l];return void(e[d+n]=x[c])}for(var f,m,g,v=p;;){f=0,m=0,g=!1;do if(t(e[h],x[c])<0){if(e[d++]=e[h++],m++,f=0,0===--n){g=!0;break}}else if(e[d++]=x[c++],f++,m=0,1===--i){g=!0;break}while(v>(f|m));if(g)break;do{if(f=s(e[h],x,c,i,0,t),0!==f){for(l=0;f>l;l++)e[d+l]=x[c+l];if(d+=f,c+=f,i-=f,1>=i){g=!0;break}}if(e[d++]=e[h++],0===--n){g=!0;break}if(m=a(x[c],e,h,n,0,t),0!==m){for(l=0;m>l;l++)e[d+l]=e[h+l];if(d+=m,h+=m,n-=m,0===n){g=!0;break}}if(e[d++]=x[c++],1===--i){g=!0;break}v--}while(f>=u||m>=u);if(g)break;0>v&&(v=0),v+=2}if(p=v,1>p&&(p=1),1===i){for(l=0;n>l;l++)e[d+l]=e[h+l];e[d+n]=x[c]}else{if(0===i)throw new Error;for(l=0;i>l;l++)e[d+l]=x[c+l]}}else for(l=0;i>l;l++)e[d+l]=x[c+l]}function c(r,i,o,n){var l=0;for(l=0;n>l;l++)x[l]=e[o+l];var c=r+i-1,h=n-1,d=o+n-1,f=0,m=0;if(e[d--]=e[c--],0!==--i){if(1===n){for(d-=i,c-=i,m=d+1,f=c+1,l=i-1;l>=0;l--)e[m+l]=e[f+l];return void(e[d]=x[h])}for(var g=p;;){var v=0,y=0,b=!1;do if(t(x[h],e[c])<0){if(e[d--]=e[c--],v++,y=0,0===--i){b=!0;break}}else if(e[d--]=x[h--],y++,v=0,1===--n){b=!0;break}while(g>(v|y));if(b)break;do{if(v=i-s(x[h],e,r,i,i-1,t),0!==v){for(d-=v,c-=v,i-=v,m=d+1,f=c+1,l=v-1;l>=0;l--)e[m+l]=e[f+l];if(0===i){b=!0;break}}if(e[d--]=x[h--],1===--n){b=!0;break}if(y=n-a(e[c],x,0,n,n-1,t),0!==y){for(d-=y,h-=y,n-=y,m=d+1,f=h+1,l=0;y>l;l++)e[m+l]=x[f+l];if(1>=n){b=!0;break}}if(e[d--]=e[c--],0===--i){b=!0;break}g--}while(v>=u||y>=u);if(b)break;0>g&&(g=0),g+=2}if(p=g,1>p&&(p=1),1===n){for(d-=i,c-=i,m=d+1,f=c+1,l=i-1;l>=0;l--)e[m+l]=e[f+l];e[d]=x[h]}else{if(0===n)throw new Error;for(f=d-(n-1),l=0;n>l;l++)e[f+l]=x[l]}}else for(f=d-(n-1),l=0;n>l;l++)e[f+l]=x[l]}var h,f,p=u,m=0,g=d,v=0,y=0;m=e.length,2*d>m&&(g=m>>>1);var x=[];v=120>m?5:1542>m?10:119151>m?19:40,h=[],f=[],this.mergeRuns=i,this.forceMergeRuns=o,this.pushRun=r}function c(e,t,o,a){o||(o=0),a||(a=e.length);var s=a-o;if(!(2>s)){var c=0;if(h>s)return c=i(e,o,a,t),void n(e,o,a,o+c,t);var u=new l(e,t),d=r(s);do{if(c=i(e,o,a,t),d>c){var f=s;f>d&&(f=d),n(e,o,o+f,o+c,t),c=f}u.pushRun(o,c),u.mergeRuns(),s-=c,o+=c}while(0!==s);u.forceMergeRuns()}}var h=32,u=7,d=256;e.exports=c},function(e,t,r){function i(e){o.call(this,e)}var o=r(55),n=r(7),a=r(1),s=r(407),l=new s(50);i.prototype={constructor:i,type:"image",brush:function(e,t){var r,i=this.style,o=i.image;if(i.bind(e,this,t),r="string"==typeof o?this._image:o,!r&&o){var n=l.get(o);if(!n)return r=new Image,r.onload=function(){r.onload=null;for(var e=0;e",y=f?">":"<";if(g){var x=e.util.getData(m.$data,a,e.dataPathArr),b="exclusive"+n,_="op"+n,S="' + "+_+" + '";o+=" var schemaExcl"+n+" = "+x+"; ",x="schemaExcl"+n,o+=" var exclusive"+n+"; if (typeof "+x+" != 'boolean' && typeof "+x+" != 'undefined') { ";var r=p,w=w||[];w.push(o),o="",e.createErrors!==!1?(o+=" { keyword: '"+(r||"_exclusiveLimit")+"' , dataPath: (dataPath || '') + "+e.errorPath+' , schemaPath: "'+c+'" , params: {} ',e.opts.messages!==!1&&(o+=" , message: '"+p+" should be boolean' "),e.opts.verbose&&(o+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),o+=" } "):o+=" {} ";var C=o;o=w.pop(),o+=!e.compositeRule&&h?e.async?" throw new ValidationError(["+C+"]); ":" validate.errors = ["+C+"]; return false; ":" var err = "+C+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",o+=" } else if( ",d&&(o+=" ("+i+" !== undefined && typeof "+i+" != 'number') || "),o+=" ((exclusive"+n+" = "+x+" === true) ? "+u+" "+y+"= "+i+" : "+u+" "+y+" "+i+") || "+u+" !== "+u+") { var op"+n+" = exclusive"+n+" ? '"+v+"' : '"+v+"=';"}else{var b=m===!0,S=v;b||(S+="=");var _="'"+S+"'";o+=" if ( ",d&&(o+=" ("+i+" !== undefined && typeof "+i+" != 'number') || "),o+=" "+u+" "+y,b&&(o+="="),o+=" "+i+" || "+u+" !== "+u+") {"}var r=t,w=w||[];w.push(o),o="",e.createErrors!==!1?(o+=" { keyword: '"+(r||"_limit")+"' , dataPath: (dataPath || '') + "+e.errorPath+' , schemaPath: "'+c+'" , params: { comparison: '+_+", limit: "+i+", exclusive: "+b+" } ",e.opts.messages!==!1&&(o+=" , message: 'should be "+S+" ",o+=d?"' + "+i:""+s+"'"),e.opts.verbose&&(o+=" , schema: ",o+=d?"validate.schema"+l:""+s,o+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),o+=" } "):o+=" {} ";var C=o;return o=w.pop(),o+=!e.compositeRule&&h?e.async?" throw new ValidationError(["+C+"]); ":" validate.errors = ["+C+"]; return false; ":" var err = "+C+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",o+=" } ",h&&(o+=" else { "),o}},function(e,t){"use strict";e.exports=function(e,t){var r,i,o=" ",n=e.level,a=e.dataLevel,s=e.schema[t],l=e.schemaPath+"."+t,c=e.errSchemaPath+"/"+t,h=!e.opts.allErrors,u="data"+(a||""),d=e.opts.v5&&s.$data;d?(o+=" var schema"+n+" = "+e.util.getData(s.$data,a,e.dataPathArr)+"; ",i="schema"+n):i=s;var f="maxItems"==t?">":"<";o+="if ( ",d&&(o+=" ("+i+" !== undefined && typeof "+i+" != 'number') || "),o+=" "+u+".length "+f+" "+i+") { ";var r=t,p=p||[];p.push(o),o="",e.createErrors!==!1?(o+=" { keyword: '"+(r||"_limitItems")+"' , dataPath: (dataPath || '') + "+e.errorPath+' , schemaPath: "'+c+'" , params: { limit: '+i+" } ",e.opts.messages!==!1&&(o+=" , message: 'should NOT have ",o+="maxItems"==t?"more":"less",o+=" than ",o+=d?"' + "+i+" + '":""+s,o+=" items' "),e.opts.verbose&&(o+=" , schema: ",o+=d?"validate.schema"+l:""+s,o+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),o+=" } "):o+=" {} ";var m=o;return o=p.pop(),o+=!e.compositeRule&&h?e.async?" throw new ValidationError(["+m+"]); ":" validate.errors = ["+m+"]; return false; ":" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",o+="} ",h&&(o+=" else { "),o}},function(e,t){"use strict";e.exports=function(e,t){var r,i,o=" ",n=e.level,a=e.dataLevel,s=e.schema[t],l=e.schemaPath+"."+t,c=e.errSchemaPath+"/"+t,h=!e.opts.allErrors,u="data"+(a||""),d=e.opts.v5&&s.$data;d?(o+=" var schema"+n+" = "+e.util.getData(s.$data,a,e.dataPathArr)+"; ",i="schema"+n):i=s;var f="maxLength"==t?">":"<";o+="if ( ",d&&(o+=" ("+i+" !== undefined && typeof "+i+" != 'number') || "),o+=e.opts.unicode===!1?" "+u+".length ":" ucs2length("+u+") ",o+=" "+f+" "+i+") { ";var r=t,p=p||[];p.push(o),o="",e.createErrors!==!1?(o+=" { keyword: '"+(r||"_limitLength")+"' , dataPath: (dataPath || '') + "+e.errorPath+' , schemaPath: "'+c+'" , params: { limit: '+i+" } ",e.opts.messages!==!1&&(o+=" , message: 'should NOT be ",o+="maxLength"==t?"longer":"shorter",o+=" than ",o+=d?"' + "+i+" + '":""+s,o+=" characters' "),e.opts.verbose&&(o+=" , schema: ",o+=d?"validate.schema"+l:""+s,o+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),o+=" } "):o+=" {} ";var m=o;return o=p.pop(),o+=!e.compositeRule&&h?e.async?" throw new ValidationError(["+m+"]); ":" validate.errors = ["+m+"]; return false; ":" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",o+="} ",h&&(o+=" else { "),o}},function(e,t){"use strict";e.exports=function(e,t){var r,i,o=" ",n=e.level,a=e.dataLevel,s=e.schema[t],l=e.schemaPath+"."+t,c=e.errSchemaPath+"/"+t,h=!e.opts.allErrors,u="data"+(a||""),d=e.opts.v5&&s.$data;d?(o+=" var schema"+n+" = "+e.util.getData(s.$data,a,e.dataPathArr)+"; ",i="schema"+n):i=s;var f="maxProperties"==t?">":"<";o+="if ( ",d&&(o+=" ("+i+" !== undefined && typeof "+i+" != 'number') || "),o+=" Object.keys("+u+").length "+f+" "+i+") { ";var r=t,p=p||[];p.push(o),o="",e.createErrors!==!1?(o+=" { keyword: '"+(r||"_limitProperties")+"' , dataPath: (dataPath || '') + "+e.errorPath+' , schemaPath: "'+c+'" , params: { limit: '+i+" } ",e.opts.messages!==!1&&(o+=" , message: 'should NOT have ",o+="maxProperties"==t?"more":"less",o+=" than ",o+=d?"' + "+i+" + '":""+s,o+=" properties' "),e.opts.verbose&&(o+=" , schema: ",o+=d?"validate.schema"+l:""+s,o+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),o+=" } "):o+=" {} ";var m=o;return o=p.pop(),o+=!e.compositeRule&&h?e.async?" throw new ValidationError(["+m+"]); ":" validate.errors = ["+m+"]; return false; ":" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",o+="} ",h&&(o+=" else { "),o}},function(e,t){"use strict";e.exports=function(e,t){function r(e){for(var t=0;tI;)A=M[I+=1],I&&(o+=" if ("+w+" === undefined) { ",C+="}"),"array"==e.opts.coerceTypes&&"array"!=A&&(o+=" if ("+S+" == 'array' && "+c+".length == 1) { "+w+" = "+c+" = "+c+"[0]; "+S+" = typeof "+c+"; } "),"string"==A?o+=" if ("+S+" == 'number' || "+S+" == 'boolean') "+w+" = '' + "+c+"; else if ("+c+" === null) "+w+" = ''; ":"number"==A||"integer"==A?(o+=" if ("+S+" == 'boolean' || "+c+" === null || ("+S+" == 'string' && "+c+" && "+c+" == +"+c+" ","integer"==A&&(o+=" && !("+c+" % 1)"),o+=")) "+w+" = +"+c+"; "):"boolean"==A?o+=" if ("+c+" === 'false' || "+c+" === 0 || "+c+" === null) "+w+" = false; else if ("+c+" === 'true' || "+c+" === 1) "+w+" = true; ":"null"==A?o+=" if ("+c+" === '' || "+c+" === 0 || "+c+" === false) "+w+" = null; ":"array"==e.opts.coerceTypes&&"array"==A&&(o+=" if ("+S+" == 'string' || "+S+" == 'number' || "+S+" == 'boolean' || "+c+" == null) "+w+" = ["+c+"]; ");o+=" "+C+" if ("+w+" === undefined) { ";var P=P||[];P.push(o),o="",e.createErrors!==!1?(o+=" { keyword: '"+(u||"type")+"' , dataPath: (dataPath || '') + "+e.errorPath+' , schemaPath: "'+b+"\" , params: { type: '",o+=v?""+g.join(","):""+g,o+="' } ",e.opts.messages!==!1&&(o+=" , message: 'should be ",o+=v?""+g.join(","):""+g,o+="' "),e.opts.verbose&&(o+=" , schema: validate.schema"+x+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),o+=" } "):o+=" {} ";var L=o;if(o=P.pop(),o+=!e.compositeRule&&f?e.async?" throw new ValidationError(["+L+"]); ":" validate.errors = ["+L+"]; return false; ":" var err = "+L+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",o+=" } else { ",l){var k="data"+(l-1||""),E=e.dataPathArr[l];o+=" "+c+" = "+k+"["+E+"] = "+w+"; "}else o+=" data = "+w+"; if (parentData !== undefined) parentData[parentDataProperty] = "+w+"; ";o+=" } } "}}var D;if(e.schema.$ref&&(D=e.util.schemaHasRulesExcept(e.schema,e.RULES.all,"$ref"))){if("fail"==e.opts.extendRefs)throw new Error("$ref: validation keywords used in schema at "+e.errorPath);"ignore"==e.opts.extendRefs?(D=!1,console.log("$ref: keywords ignored in schema at path",e.errorPath)):console.log("$ref: all keywords used in schema at path",e.errorPath,"(it will change in the next major version, see issue #260)")}if(e.schema.$ref&&!D)o+=" "+e.RULES.all.$ref.code(e,"$ref")+" ",f&&(o+=" } if (errors === ",o+=a?"0":"errs_"+s,o+=") { ",m+="}");else{var O=e.RULES;if(O)for(var R,z=-1,V=O.length-1;V>z;)if(R=O[z+=1],r(R)){if(R.type&&(o+=" if ("+e.util.checkDataType(R.type,c)+") { "),e.opts.useDefaults&&!e.compositeRule)if("object"==R.type&&e.schema.properties){var N=e.schema.properties,W=Object.keys(N),B=W;if(B)for(var j,G=-1,F=B.length-1;F>G;){j=B[G+=1];var H=N[j];if(void 0!==H["default"]){var $=c+e.util.getProperty(j);o+=" if ("+$+" === undefined) "+$+" = ",o+="shared"==e.opts.useDefaults?" "+e.useDefault(H["default"])+" ":" "+JSON.stringify(H["default"])+" ",o+="; "}}}else if("array"==R.type&&Array.isArray(e.schema.items)){var q=e.schema.items;if(q)for(var H,I=-1,Z=q.length-1;Z>I;)if(H=q[I+=1],void 0!==H["default"]){var $=c+"["+I+"]";o+=" if ("+$+" === undefined) "+$+" = ",o+="shared"==e.opts.useDefaults?" "+e.useDefault(H["default"])+" ":" "+JSON.stringify(H["default"])+" ",o+="; "}}var U=R.rules;if(U)for(var X,Y=-1,Q=U.length-1;Q>Y;)X=U[Y+=1],i(X)&&(o+=" "+X.code(e,X.keyword)+" ",f&&(p+="}"));if(f&&(o+=" "+p+" ",p=""),R.type&&(o+=" } ",g&&g===R.type)){var J=!0;o+=" else { ";var x=e.schemaPath+".type",b=e.errSchemaPath+"/type",P=P||[];P.push(o),o="",e.createErrors!==!1?(o+=" { keyword: '"+(u||"type")+"' , dataPath: (dataPath || '') + "+e.errorPath+' , schemaPath: "'+b+"\" , params: { type: '",o+=v?""+g.join(","):""+g,o+="' } ",e.opts.messages!==!1&&(o+=" , message: 'should be ",o+=v?""+g.join(","):""+g,o+="' "),e.opts.verbose&&(o+=" , schema: validate.schema"+x+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),o+=" } "):o+=" {} ";var L=o;o=P.pop(),o+=!e.compositeRule&&f?e.async?" throw new ValidationError(["+L+"]); ":" validate.errors = ["+L+"]; return false; ":" var err = "+L+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",o+=" } "}f&&(o+=" if (errors === ",o+=a?"0":"errs_"+s,o+=") { ",m+="}")}}if(g&&!J&&(!e.opts.coerceTypes||!y)){var x=e.schemaPath+".type",b=e.errSchemaPath+"/type",_=v?"checkDataTypes":"checkDataType";o+=" if ("+e.util[_](g,c,!0)+") { ";var P=P||[];P.push(o),o="",e.createErrors!==!1?(o+=" { keyword: '"+(u||"type")+"' , dataPath: (dataPath || '') + "+e.errorPath+' , schemaPath: "'+b+"\" , params: { type: '",o+=v?""+g.join(","):""+g,o+="' } ",e.opts.messages!==!1&&(o+=" , message: 'should be ",o+=v?""+g.join(","):""+g,o+="' "),e.opts.verbose&&(o+=" , schema: validate.schema"+x+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),o+=" } "):o+=" {} ";var L=o;o=P.pop(),o+=!e.compositeRule&&f?e.async?" throw new ValidationError(["+L+"]); ":" validate.errors = ["+L+"]; return false; ":" var err = "+L+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",o+=" }"}return f&&(o+=" "+m+" "),a?(n?(o+=" if (errors === 0) return true; ",o+=" else throw new ValidationError(vErrors); "):(o+=" validate.errors = vErrors; ",o+=" return errors === 0; "),o+=" });"):o+=" var "+d+" = errors === errs_"+s+";",o=e.util.cleanUpCode(o),a&&f&&(o=e.util.cleanUpVarErrors(o,n)),o}},function(e,t){function r(e){var t=this,r=u.call(arguments,1);return new Promise(function(o,n){function a(t){var r;try{r=e.next(t)}catch(i){return n(i)}c(r)}function l(t){var r;try{r=e["throw"](t)}catch(i){return n(i)}c(r)}function c(e){if(e.done)return o(e.value);var r=i.call(t,e.value);return r&&s(r)?r.then(a,l):l(new TypeError('You may only yield a function, promise, generator, array, or object, but the following object was passed: "'+String(e.value)+'"'))}return"function"==typeof e&&(e=e.apply(t,r)),e&&"function"==typeof e.next?void a():o(e)})}function i(e){return e?s(e)?e:c(e)||l(e)?r.call(this,e):"function"==typeof e?o.call(this,e):Array.isArray(e)?n.call(this,e):h(e)?a.call(this,e):e:e}function o(e){var t=this;return new Promise(function(r,i){e.call(t,function(e,t){return e?i(e):(arguments.length>2&&(t=u.call(arguments,1)),void r(t))})})}function n(e){return Promise.all(e.map(i,this))}function a(e){function t(e,t){r[t]=void 0,n.push(e.then(function(e){r[t]=e}))}for(var r=new e.constructor,o=Object.keys(e),n=[],a=0;a0&&(a=this.getLineLength(i)/l*1e3),a!==this._period||s!==this._loop){i.stopAnimation();var u=c;h&&(u=c(r)),i.__t>0&&(u=-a*i.__t),i.__t=0;var d=i.animate("",s).when(a,{__t:1}).delay(u).during(function(){o.updateSymbolPosition(i)});s||d.done(function(){o.remove(i)}),d.start()}this._period=a,this._loop=s}},h.getLineLength=function(e){return l.dist(e.__p1,e.__cp1)+l.dist(e.__cp1,e.__p2)},h.updateAnimationPoints=function(e,t){e.__p1=t[0],e.__p2=t[1],e.__cp1=t[2]||[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]},h.updateData=function(e,t,r){this.childAt(0).updateData(e,t,r),this._updateEffectSymbol(e,t)},h.updateSymbolPosition=function(e){var t=e.__p1,r=e.__p2,i=e.__cp1,o=e.__t,n=e.position,a=c.quadraticAt,s=c.quadraticDerivativeAt;n[0]=a(t[0],i[0],r[0],o),n[1]=a(t[1],i[1],r[1],o);var l=s(t[0],i[0],r[0],o),h=s(t[1],i[1],r[1],o);e.rotation=-Math.atan2(h,l)-Math.PI/2,e.ignore=!1},h.updateLayout=function(e,t){this.childAt(0).updateLayout(e,t);var r=e.getItemModel(t).getModel("effect");this._updateEffectAnimation(e,r,t)},a.inherits(i,o.Group),e.exports=i},function(e,t,r){function i(e,t,r){o.Group.call(this),this._createPolyline(e,t,r)}var o=r(3),n=r(1),a=i.prototype;a._createPolyline=function(e,t,r){var i=e.getItemLayout(t),n=new o.Polyline({shape:{points:i}});this.add(n),this._updateCommonStl(e,t,r)},a.updateData=function(e,t,r){var i=e.hostModel,n=this.childAt(0),a={shape:{points:e.getItemLayout(t)}};o.updateProps(n,a,i,t),this._updateCommonStl(e,t,r)},a._updateCommonStl=function(e,t,r){var i=this.childAt(0),a=e.getItemModel(t),s=e.getItemVisual(t,"color"),l=r&&r.lineStyle,c=r&&r.hoverLineStyle;r&&!e.hasItemOption||(l=a.getModel("lineStyle.normal").getLineStyle(),c=a.getModel("lineStyle.emphasis").getLineStyle()),i.useStyle(n.defaults({strokeNoScale:!0,fill:"none",stroke:s},l)),i.hoverStyle=c,o.setHoverStyle(this)},a.updateLayout=function(e,t){var r=this.childAt(0);r.setShape("points",e.getItemLayout(t))},n.inherits(i,o.Group),e.exports=i},function(e,t,r){var i=r(8),o=r(374),n=r(120),a=r(17),s=r(18),l=r(1),c=r(30);e.exports=function(e,t,r,h,u){for(var d=new o(h),f=0;f "+x)),g++)}var b,_=r.get("coordinateSystem");if("cartesian2d"===_||"polar"===_)b=c(e,r,r.ecModel);else{var S=s.get(_),w=a((S&&"view"!==S.type?S.dimensions||[]:[]).concat(["value"]),e);b=new i(w,r),b.initData(e)}var C=new i(["value"],r);return C.initData(m,p),u&&u(b,C),n({mainData:b,struct:d,structAttr:"graph",datas:{node:b,edge:C},datasAttr:{node:"data",edge:"edgeData"}}),d.update(),d}},function(e,t,r){var i=r(1),o=r(100),n=r(2);n.registerAction("dataZoom",function(e,t){var r=o.createLinkedNodesFinder(i.bind(t.eachComponent,t,"dataZoom"),o.eachAxisDim,function(e,t){return e.get(t.axisIndex)}),n=[];t.eachComponent({mainType:"dataZoom",query:e},function(e,t){n.push.apply(n,r(e).nodes)}),i.each(n,function(t,r){t.setRawRange({start:e.start,end:e.end,startValue:e.startValue,endValue:e.endValue})})})},function(e,t,r){function i(e,t,r){r.getAxisProxy(e.name,t).reset(r)}function o(e,t,r){r.getAxisProxy(e.name,t).filterData(r)}var n=r(2);n.registerProcessor(function(e,t){e.eachComponent("dataZoom",function(e){e.eachTargetAxis(i),e.eachTargetAxis(o)}),e.eachComponent("dataZoom",function(e){var t=e.findRepresentativeAxisProxy(),r=t.getDataPercentWindow(),i=t.getDataValueWindow();e.setRawRange({start:r[0],end:r[1],startValue:i[0],endValue:i[1]})})})},function(e,t,r){var i=r(10),o=r(1),n={},a=["x","y","z","radius","angle"];n.createNameEach=function(e,t){e=e.slice();var r=o.map(e,i.capitalFirst);t=(t||[]).slice();var n=o.map(t,i.capitalFirst);return function(i,a){o.each(e,function(e,o){for(var s={name:e,capital:r[o]},l=0;l=0}function n(e,i){var n=!1;return t(function(t){o.each(r(e,t)||[],function(e){i.records[t.name][e]&&(n=!0)})}),n}function a(e,i){i.nodes.push(e),t(function(t){o.each(r(e,t)||[],function(e){i.records[t.name][e]=!0})})}return function(r){function o(e){!i(e,s)&&n(e,s)&&(a(e,s),l=!0)}var s={nodes:[],records:{}};if(t(function(e){s.records[e.name]={}}),!r)return s;a(r,s);var l;do l=!1,e(o);while(l);return s}},e.exports=n},function(e,t,r){function i(e){var t=e[a];return t||(t=e[a]=[{}]),t}var o=r(1),n=o.each,a="\x00_ec_hist_store",s={push:function(e,t){var r=i(e);n(t,function(t,i){for(var o=r.length-1;o>=0;o--){var n=r[o];if(n[i])break}if(0>o){var a=e.queryComponents({mainType:"dataZoom",subType:"select",id:i})[0];if(a){var s=a.getPercentRange();r[0][i]={dataZoomId:i,start:s[0],end:s[1]}}}}),r.push(t)},pop:function(e){var t=i(e),r=t[t.length-1];t.length>1&&t.pop();var o={};return n(r,function(e,r){for(var i=t.length-1;i>=0;i--){var e=t[i][r];if(e){o[r]=e;break}}}),o},clear:function(e){e[a]=null},count:function(e){return i(e).length}};e.exports=s},function(e,t,r){r(11).registerSubTypeDefaulter("dataZoom",function(e){return"slider"})},function(e,t,r){function i(e,t){var r=e.getItemStyle(),i=e.get("areaColor");return i&&(r.fill=i),r}function o(e,t,r,i){t.off("click"),e.get("selectedMode")&&t.on("click",function(o){for(var a=o.target;!a.__region;)a=a.parent;if(a){var s=a.__region,l={type:("geo"===e.mainType?"geo":"map")+"ToggleSelect",name:s.name,from:i.uid};l[e.mainType+"Id"]=e.id,r.dispatchAction(l),n(e,t)}})}function n(e,t){t.eachChild(function(t){t.__region&&t.trigger(e.isSelected(t.__region.name)?"emphasis":"normal")})}function a(e,t){var r=new l.Group;this._controller=new s(e.getZr(),t?r:null,null),this.group=r,this._updateGroup=t}var s=r(46),l=r(3),c=r(1);a.prototype={constructor:a,draw:function(e,t,r,a,s){var h=e.getData&&e.getData(),u=e.coordinateSystem,d=this.group,f=u.scale,p={position:u.position,scale:f};!d.childAt(0)||s?d.attr(p):l.updateProps(d,p,e),d.removeAll();var m=["itemStyle","normal"],g=["itemStyle","emphasis"],v=["label","normal"],y=["label","emphasis"];c.each(u.regions,function(t){var r=new l.Group,o=new l.CompoundPath({shape:{paths:[]}});r.add(o);var n,a=e.getRegionModel(t.name)||e,s=a.getModel(m),u=a.getModel(g),p=i(s,f),x=i(u,f),b=a.getModel(v),_=a.getModel(y);if(h){n=h.indexOfName(t.name);var S=h.getItemVisual(n,"color",!0);S&&(p.fill=S)}var w=b.getModel("textStyle"),C=_.getModel("textStyle");c.each(t.contours,function(e){var t=new l.Polygon({shape:{points:e}});o.shape.paths.push(t)}),o.setStyle(p),o.style.strokeNoScale=!0,o.culling=!0;var M=b.get("show"),A=_.get("show"),I=h&&isNaN(h.get("value",n)),T=h&&h.getItemLayout(n);if(!h||I&&(M||A)||T&&T.showLabel){var P=h?n:t.name,L=e.getFormattedLabel(P,"normal"),k=e.getFormattedLabel(P,"emphasis"),E=new l.Text({style:{text:M?L||t.name:"",fill:w.getTextColor(),textFont:w.getFont(),textAlign:"center",textVerticalAlign:"middle"},hoverStyle:{text:A?k||t.name:"",fill:C.getTextColor(),textFont:C.getFont()},position:t.center.slice(),scale:[1/f[0],1/f[1]],z2:10,silent:!0});r.add(E)}if(h)h.setItemGraphicEl(n,r);else{var a=e.getRegionModel(t.name);o.eventData={componentType:"geo",geoIndex:e.componentIndex,name:t.name,region:a&&a.option||{}}}r.__region=t,l.setHoverStyle(r,x),d.add(r)}),this._updateController(e,t,r),o(e,d,r,a),n(e,d)},remove:function(){this.group.removeAll(),this._controller.dispose()},_updateController:function(e,t,r){function i(){var t={type:"geoRoam",componentType:a};return t[a+"Id"]=e.id,t}var o=e.coordinateSystem,n=this._controller;n.zoomLimit=e.get("scaleLimit"),n.zoom=o.getZoom(),n.enable(e.get("roam")||!1);var a=e.mainType;n.off("pan").on("pan",function(e,t){r.dispatchAction(c.extend(i(),{dx:e,dy:t}))}),n.off("zoom").on("zoom",function(e,t,o){if(r.dispatchAction(c.extend(i(),{zoom:e,originX:t,originY:o})),this._updateGroup){var n=this.group,a=n.scale;n.traverse(function(e){"text"===e.type&&e.attr("scale",[1/a[0],1/a[1]])})}},this),n.rectProvider=function(){return o.getViewRectAfterRoam()}}},e.exports=a},function(e,t,r){function i(e){return e[o]||(e[o]={})}var o="\x00_ec_interaction_mutex",n={take:function(e,t,r){var o=i(e);o[t]=r},release:function(e,t,r){var o=i(e),n=o[t];n===r&&(o[t]=null)},isTaken:function(e,t){return!!i(e)[t]}};r(2).registerAction({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},function(){}),e.exports=n},function(e,t,r){function i(e,t,r){o.positionGroup(e,t.getBoxLayoutParams(),{width:r.getWidth(),height:r.getHeight()},t.get("padding"))}var o=r(6),n=r(10),a=r(3);e.exports={layout:function(e,t,r){var n=o.getLayoutRect(t.getBoxLayoutParams(),{width:r.getWidth(),height:r.getHeight()},t.get("padding"));o.box(t.get("orient"),e,t.get("itemGap"),n.width,n.height),i(e,t,r)},addBackground:function(e,t){var r=n.normalizeCssArray(t.get("padding")),i=e.getBoundingRect(),o=t.getItemStyle(["color","opacity"]);o.fill=t.get("backgroundColor");var s=new a.Rect({shape:{x:i.x-r[3],y:i.y-r[0],width:i.width+r[1]+r[3],height:i.height+r[0]+r[2]},style:o,silent:!0,z2:-1});a.subPixelOptimizeRect(s),e.add(s)}}},function(e,t,r){r(119),r(360),r(310);var i=r(2),o=r(1),n=5;i.extendComponentView({type:"parallel",render:function(e,t,r){var i=r.getZr();if(!this.__onMouseDown){var a;i.on("mousedown",this.__onMouseDown=function(e){a=[e.offsetX,e.offsetY]}),i.on("mouseup",this.__onMouseUp=function(t){var i=[t.offsetX,t.offsetY],s=Math.pow(a[0]-i[0],2)+Math.pow(a[1]-i[1],2);if(e.get("axisExpandable")&&!(s>n)){var l=e.coordinateSystem,c=l.findClosestAxisDim(i);if(c){var h=o.indexOf(l.dimensions,c);r.dispatchAction({type:"parallelAxisExpand",axisExpandCenter:h})}}})}},dispose:function(e,t){t.getZr().off(this.__onMouseDown),t.getZr().off(this.__onMouseUp)}}),i.registerPreprocessor(r(361))},function(e,t,r){var i=r(2),o=r(1),n=r(15),a=r(395),s=r(28),l=r(52),c=s.mapVisual,h=r(12),u=s.eachVisual,d=r(4),f=o.isArray,p=o.each,m=d.asc,g=d.linearMap,v=o.noop,y=["#f6efa6","#d88273","#bf444c"],x=i.extendComponentModel({type:"visualMap",dependencies:["series"],stateList:["inRange","outOfRange"],replacableOptionKeys:["inRange","outOfRange","target","controller","color"],dataBound:[-(1/0),1/0],layoutMode:{type:"box",ignoreSize:!0},defaultOption:{show:!0,zlevel:0,z:4,seriesIndex:null,min:0,max:200,dimension:null,inRange:null,outOfRange:null,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",contentColor:"#5793f3",inactiveColor:"#aaa",borderWidth:0,padding:5,textGap:10,precision:0,color:null,formatter:null,text:null,textStyle:{color:"#333"}},init:function(e,t,r){this._dataExtent,this.targetVisuals={},this.controllerVisuals={},this.textStyleModel,this.itemSize,this.mergeDefaultAndTheme(e,r)},optionUpdated:function(e,t){var r=this.option;n.canvasSupported||(r.realtime=!1),!t&&l.replaceVisualOption(r,e,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},resetVisual:function(e){var t=this.stateList;e=o.bind(e,this),this.controllerVisuals=l.createVisualMappings(this.option.controller,t,e),this.targetVisuals=l.createVisualMappings(this.option.target,t,e)},resetTargetSeries:function(){var e=this.option,t=null==e.seriesIndex;e.seriesIndex=t?[]:h.normalizeToArray(e.seriesIndex),t&&this.ecModel.eachSeries(function(t,r){e.seriesIndex.push(r)})},eachTargetSeries:function(e,t){o.each(this.option.seriesIndex,function(r){e.call(t,this.ecModel.getSeriesByIndex(r))},this)},isTargetSeries:function(e){var t=!1;return this.eachTargetSeries(function(r){r===e&&(t=!0)}),t},formatValueText:function(e,t,r){function i(e){return e===c[0]?"min":e===c[1]?"max":(+e).toFixed(l)}var n,a,s=this.option,l=s.precision,c=this.dataBound,h=s.formatter;return r=r||["<",">"],o.isArray(e)&&(e=e.slice(),n=!0),a=t?e:n?[i(e[0]),i(e[1])]:i(e),o.isString(h)?h.replace("{value}",n?a[0]:a).replace("{value2}",n?a[1]:a):o.isFunction(h)?n?h(e[0],e[1]):h(e):n?e[0]===c[0]?r[0]+" "+a[1]:e[1]===c[1]?r[1]+" "+a[0]:a[0]+" - "+a[1]:a},resetExtent:function(){var e=this.option,t=m([e.min,e.max]);this._dataExtent=t},getDataDimension:function(e){var t=this.option.dimension;return null!=t?t:e.dimensions.length-1},getExtent:function(){return this._dataExtent.slice()},completeVisualOption:function(){function e(e){f(i.color)&&!e.inRange&&(e.inRange={color:i.color.slice().reverse()}),e.inRange=e.inRange||{color:y},p(this.stateList,function(t){var r=e[t];if(o.isString(r)){var i=a.get(r,"active",d);i?(e[t]={},e[t][r]=i):delete e[t]}},this)}function t(e,t,r){var i=e[t],o=e[r];i&&!o&&(o=e[r]={},p(i,function(e,t){if(s.isValidType(t)){var r=a.get(t,"inactive",d);null!=r&&(o[t]=r,"color"!==t||o.hasOwnProperty("opacity")||o.hasOwnProperty("colorAlpha")||(o.opacity=[0,0]))}}))}function r(e){var t=(e.inRange||{}).symbol||(e.outOfRange||{}).symbol,r=(e.inRange||{}).symbolSize||(e.outOfRange||{}).symbolSize,i=this.get("inactiveColor");p(this.stateList,function(n){var a=this.itemSize,s=e[n];s||(s=e[n]={color:d?i:[i]}),null==s.symbol&&(s.symbol=t&&o.clone(t)||(d?"roundRect":["roundRect"])),null==s.symbolSize&&(s.symbolSize=r&&o.clone(r)||(d?a[0]:[a[0],a[0]])),s.symbol=c(s.symbol,function(e){return"none"===e||"square"===e?"roundRect":e});var l=s.symbolSize;if(null!=l){var h=-(1/0);u(l,function(e){e>h&&(h=e)}),s.symbolSize=c(l,function(e){return g(e,[0,h],[0,a[0]],!0)})}},this)}var i=this.option,n={inRange:i.inRange,outOfRange:i.outOfRange},l=i.target||(i.target={}),h=i.controller||(i.controller={});o.merge(l,n),o.merge(h,n);var d=this.isCategory();e.call(this,l),e.call(this,h),t.call(this,l,"inRange","outOfRange"),r.call(this,h)},resetItemSize:function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},isCategory:function(){return!!this.option.categories},setSelected:v,getValueState:v});e.exports=x},function(e,t,r){var i=r(1),o=r(3),n=r(10),a=r(6),s=r(2),l=r(28);e.exports=s.extendComponentView({type:"visualMap",autoPositionValues:{left:1,right:1,top:1,bottom:1},init:function(e,t){this.ecModel=e,this.api=t,this.visualMapModel},render:function(e,t,r,i){return this.visualMapModel=e,e.get("show")===!1?void this.group.removeAll():void this.doRender.apply(this,arguments)},renderBackground:function(e){var t=this.visualMapModel,r=n.normalizeCssArray(t.get("padding")||0),i=e.getBoundingRect();e.add(new o.Rect({z2:-1,silent:!0,shape:{x:i.x-r[3],y:i.y-r[0],width:i.width+r[3]+r[1],height:i.height+r[0]+r[2]},style:{fill:t.get("backgroundColor"),stroke:t.get("borderColor"),lineWidth:t.get("borderWidth")}}))},getControllerVisual:function(e,t,r){function o(e){return c[e]}function n(e,t){c[e]=t}r=r||{};var a=r.forceState,s=this.visualMapModel,c={};if("symbol"===t&&(c.symbol=s.get("itemSymbol")),"color"===t){var h=s.get("contentColor");c.color=h}var u=s.controllerVisuals[a||s.getValueState(e)],d=l.prepareVisualTypes(u);return i.each(d,function(i){var a=u[i];r.convertOpacityToAlpha&&"opacity"===i&&(i="colorAlpha",a=u.__alphaForOpacity),l.dependsOn(i,t)&&a&&a.applyVisual(e,o,n)}),c[t]},positionGroup:function(e){var t=this.visualMapModel,r=this.api;a.positionGroup(e,t.getBoxLayoutParams(),{width:r.getWidth(),height:r.getHeight()})},doRender:i.noop})},function(e,t,r){var i=r(6),o={getItemAlign:function(e,t,r){var o=e.option,n=o.align;if(null!=n&&"auto"!==n)return n;for(var a={width:t.getWidth(),height:t.getHeight()},s="horizontal"===o.orient?1:0,l=[["left","right","width"],["top","bottom","height"]],c=l[s],h=[0,null,10],u={},d=0;3>d;d++)u[l[1-s][d]]=h[d],u[c[d]]=2===d?r[0]:o[c[d]];var f=[["x","width",3],["y","height",0]][s],p=i.getLayoutRect(u,a,o.padding);return c[(p.margin[f[2]]||0)+p[f[0]]+.5*p[f[1]]<.5*a[f[1]]?0:1]}};e.exports=o},function(e,t,r){function i(e,t){return e&&e.hasOwnProperty&&e.hasOwnProperty(t)}var o=r(1),n=o.each;e.exports=function(e){var t=e&&e.visualMap;o.isArray(t)||(t=t?[t]:[]),n(t,function(e){if(e){i(e,"splitList")&&!i(e,"pieces")&&(e.pieces=e.splitList,delete e.splitList);var t=e.pieces;t&&o.isArray(t)&&n(t,function(e){o.isObject(e)&&(i(e,"start")&&!i(e,"min")&&(e.min=e.start),i(e,"end")&&!i(e,"max")&&(e.max=e.end))})}})}},function(e,t,r){r(11).registerSubTypeDefaulter("visualMap",function(e){return e.categories||(e.pieces?e.pieces.length>0:e.splitNumber>0)&&!e.calculable?"piecewise":"continuous"})},function(e,t,r){function i(e,t){e.eachTargetSeries(function(t){var r=t.getData();s.applyVisual(e.stateList,e.targetVisuals,r,e.getValueState,e,e.getDataDimension(r))})}function o(e){e.eachSeries(function(t){var r=t.getData(),i=[];e.eachComponent("visualMap",function(e){if(e.isTargetSeries(t)){var o={};i.push(o),o.stops=e.getStops(t,n),o.dimension=e.getDataDimension(r)}}),t.getData().setVisual("visualMeta",i)})}function n(e,t,r){function i(e){return s[e]}function o(e,t){s[e]=t}for(var n=e.targetVisuals[r],a=l.prepareVisualTypes(n),s={},c=0,h=a.length;h>c;c++){var u=a[c],d=n["colorAlpha"===u?"__alphaForOpacity":u];d&&d.applyVisual(t,i,o)}return s.color}var a=r(2),s=r(52),l=r(28);a.registerVisual(a.PRIORITY.VISUAL.COMPONENT,function(e){e.eachComponent("visualMap",function(t){i(t,e)}),o(e)})},function(e,t,r){var i=r(2),o={type:"selectDataRange",event:"dataRangeSelected",update:"update"};i.registerAction(o,function(e,t){t.eachComponent({mainType:"visualMap",query:e},function(t){t.setSelected(e.selected)})})},function(e,t,r){function i(){s.call(this)}function o(e){this.name=e,this.zoomLimit,s.call(this),this._roamTransform=new i,this._viewTransform=new i,this._center,this._zoom}var n=r(5),a=r(20),s=r(137),l=r(1),c=r(7),h=n.applyTransform;l.mixin(i,s),o.prototype={constructor:o,type:"view",dimensions:["x","y"],setBoundingRect:function(e,t,r,i){return this._rect=new c(e,t,r,i),this._rect},getBoundingRect:function(){return this._rect},setViewRect:function(e,t,r,i){r=r,i=i,this.transformTo(e,t,r,i),this._viewRect=new c(e,t,r,i)},transformTo:function(e,t,r,i){var o=this.getBoundingRect(),n=this._viewTransform;n.transform=o.calculateTransform(new c(e,t,r,i)),n.decomposeTransform(),this._updateTransform()},setCenter:function(e){e&&(this._center=e,this._updateCenterAndZoom())},setZoom:function(e){e=e||1;var t=this.zoomLimit;t&&(null!=t.max&&(e=Math.min(t.max,e)),null!=t.min&&(e=Math.max(t.min,e))),this._zoom=e,this._updateCenterAndZoom()},getDefaultCenter:function(){var e=this.getBoundingRect(),t=e.x+e.width/2,r=e.y+e.height/2;return[t,r]},getCenter:function(){return this._center||this.getDefaultCenter()},getZoom:function(){return this._zoom||1},getRoamTransform:function(){return this._roamTransform},_updateCenterAndZoom:function(){var e=this._viewTransform.getLocalTransform(),t=this._roamTransform,r=this.getDefaultCenter(),i=this.getCenter(),o=this.getZoom();i=n.applyTransform([],i,e),r=n.applyTransform([],r,e),t.origin=i,t.position=[r[0]-i[0],r[1]-i[1]],t.scale=[o,o],this._updateTransform()},_updateTransform:function(){var e=this._roamTransform,t=this._viewTransform;t.parent=e,e.updateTransform(),t.updateTransform(),t.transform&&a.copy(this.transform||(this.transform=[]),t.transform),this.transform?(this.invTransform=this.invTransform||[],a.invert(this.invTransform,this.transform)):this.invTransform=null,this.decomposeTransform()},getViewRect:function(){return this._viewRect},getViewRectAfterRoam:function(){var e=this.getBoundingRect().clone();return e.applyTransform(this.transform),e},dataToPoint:function(e){var t=this.transform;return t?h([],e,t):[e[0],e[1]]},pointToData:function(e){var t=this.invTransform;return t?h([],e,t):[e[0],e[1]]}},l.mixin(o,s),e.exports=o},function(e,t,r){var i=r(1),o={show:!0,zlevel:0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisLine:{show:!0,onZero:!0,lineStyle:{color:"#333",width:1,type:"solid"}},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{ show:!0,inside:!1,rotate:0,margin:8,textStyle:{fontSize:12}},splitLine:{show:!0,lineStyle:{color:["#ccc"],width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:["rgba(250,250,250,0.3)","rgba(200,200,200,0.3)"]}}},n=i.merge({boundaryGap:!0,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},o),a=i.merge({boundaryGap:[0,0],splitNumber:5},o),s=i.defaults({scale:!0,min:"dataMin",max:"dataMax"},a),l=i.defaults({logBase:10},a);l.scale=!0,e.exports={categoryAxis:n,valueAxis:a,timeAxis:s,logAxis:l}},function(e,t,r){"use strict";function i(e,t){return t.type||(t.data?"category":"value")}var o=r(11),n=r(1),a=r(47),s=o.extend({type:"cartesian2dAxis",axis:null,init:function(){s.superApply(this,"init",arguments),this._resetRange()},mergeOption:function(){s.superApply(this,"mergeOption",arguments),this._resetRange()},restoreData:function(){s.superApply(this,"restoreData",arguments),this._resetRange()},setRange:function(e,t){this.option.rangeStart=e,this.option.rangeEnd=t},getMin:function(){var e=this.option;return null!=e.rangeStart?e.rangeStart:e.min},getMax:function(){var e=this.option;return null!=e.rangeEnd?e.rangeEnd:e.max},getNeedCrossZero:function(){var e=this.option;return null!=e.rangeStart||null!=e.rangeEnd?!1:!e.scale},findGridModel:function(){return this.ecModel.queryComponents({mainType:"grid",index:this.get("gridIndex"),id:this.get("gridId")})[0]},_resetRange:function(){this.option.rangeStart=this.option.rangeEnd=null}});n.merge(s.prototype,r(37));var l={offset:0};a("x",s,i,l),a("y",s,i,l),e.exports=s},function(e,t,r){function i(e,t,r){return e.findGridModel()===t}function o(e){var t,r=e.model,i=r.getFormattedLabels(),o=1,n=i.length;n>40&&(o=Math.ceil(n/40));for(var a=0;n>a;a+=o)if(!e.isLabelIgnored(a)){var s=r.getTextRect(i[a]);t?t.union(s):t=s}return t}function n(e,t,r){this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this._initCartesian(e,t,r),this._model=e}function a(e,t){var r=e.getExtent(),i=r[0]+r[1];e.toGlobalCoord="x"===e.dim?function(e){return e+t}:function(e){return i-e+t},e.toLocalCoord="x"===e.dim?function(e){return e-t}:function(e){return i-e+t}}function s(e,t){return u.map(y,function(r){var i=t.queryComponents({mainType:r,index:e.get(r+"Index"),id:e.get(r+"Id")})[0];return i})}function l(e){return"cartesian2d"===e.get("coordinateSystem")}var c=r(6),h=r(16),u=r(1),d=r(348),f=r(346),p=u.each,m=h.ifAxisCrossZero,g=h.niceScaleExtent;r(349);var v=n.prototype;v.type="grid",v.getRect=function(){return this._rect},v.update=function(e,t){function r(e){var t=i[e];for(var r in t){var o=t[r];if(o&&("category"===o.type||!m(o)))return!0}return!1}var i=this._axesMap;this._updateScale(e,this._model),p(i.x,function(e){g(e,e.model)}),p(i.y,function(e){g(e,e.model)}),p(i.x,function(e){r("y")&&(e.onZero=!1)}),p(i.y,function(e){r("x")&&(e.onZero=!1)}),this.resize(this._model,t)},v.resize=function(e,t){function r(){p(n,function(e){var t=e.isHorizontal(),r=t?[0,i.width]:[0,i.height],o=e.inverse?1:0;e.setExtent(r[o],r[1-o]),a(e,t?i.x:i.y)})}var i=c.getLayoutRect(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()});this._rect=i;var n=this._axesList;r(),e.get("containLabel")&&(p(n,function(e){if(!e.model.get("axisLabel.inside")){var t=o(e);if(t){var r=e.isHorizontal()?"height":"width",n=e.model.get("axisLabel.margin");i[r]-=t[r]+n,"top"===e.position?i.y+=t.height+n:"left"===e.position&&(i.x+=t.width+n)}}}),r())},v.getAxis=function(e,t){var r=this._axesMap[e];if(null!=r){if(null==t)for(var i in r)return r[i];return r[t]}},v.getCartesian=function(e,t){if(null!=e&&null!=t){var r="x"+e+"y"+t;return this._coordsMap[r]}for(var i=0,o=this._coordsList;ii;i++)if(o.contain(r[i],e[0],e[1]))return!0;return!1},transformTo:function(e,t,r,i){var o=this.getBoundingRect(),a=o.width/o.height;r?i||(i=r/a):r=a*i;for(var l=new n(e,t,r,i),c=o.calculateTransform(l),h=this.contours,u=0;u.5?t:e}function s(e,t,r,i,o){var a=e.length;if(1==o)for(var s=0;a>s;s++)i[s]=n(e[s],t[s],r);else for(var l=e[0].length,s=0;a>s;s++)for(var c=0;l>c;c++)i[s][c]=n(e[s][c],t[s][c],r)}function l(e,t,r){var i=e.length,o=t.length;if(i!==o){var n=i>o;if(n)e.length=o;else for(var a=i;o>a;a++)e.push(1===r?t[a]:x.call(t[a]))}for(var s=e[0]&&e[0].length,a=0;al;l++)isNaN(e[a][l])&&(e[a][l]=t[a][l])}function c(e,t,r){if(e===t)return!0;var i=e.length;if(i!==t.length)return!1;if(1===r){for(var o=0;i>o;o++)if(e[o]!==t[o])return!1}else for(var n=e[0].length,o=0;i>o;o++)for(var a=0;n>a;a++)if(e[o][a]!==t[o][a])return!1;return!0}function h(e,t,r,i,o,n,a,s,l){var c=e.length;if(1==l)for(var h=0;c>h;h++)s[h]=u(e[h],t[h],r[h],i[h],o,n,a);else for(var d=e[0].length,h=0;c>h;h++)for(var f=0;d>f;f++)s[h][f]=u(e[h][f],t[h][f],r[h][f],i[h][f],o,n,a)}function u(e,t,r,i,o,n,a){var s=.5*(r-e),l=.5*(i-t);return(2*(t-r)+s+l)*a+(-3*(t-r)-2*s-l)*n+s*o+t}function d(e){if(y(e)){var t=e.length;if(y(e[0])){for(var r=[],i=0;t>i;i++)r.push(x.call(e[i]));return r}return x.call(e)}return e}function f(e){return e[0]=Math.floor(e[0]),e[1]=Math.floor(e[1]),e[2]=Math.floor(e[2]),"rgba("+e.join(",")+")"}function p(e,t,r,i,o){var d=e._getter,p=e._setter,v="spline"===t,x=i.length;if(x){var b,_=i[0].value,S=y(_),w=!1,C=!1,M=S&&y(_[0])?2:1;i.sort(function(e,t){return e.time-t.time}),b=i[x-1].time;for(var A=[],I=[],T=i[0].value,P=!0,L=0;x>L;L++){A.push(i[L].time/b);var k=i[L].value;if(S&&c(k,T,M)||!S&&k===T||(P=!1),T=k,"string"==typeof k){var E=g.parse(k);E?(k=E,w=!0):C=!0}I.push(k)}if(!P){for(var D=I[x-1],L=0;x-1>L;L++)S?l(I[L],D,M):!isNaN(I[L])||isNaN(D)||C||w||(I[L]=D);S&&l(d(e._target,o),D,M);var O,R,z,V,N,W,B=0,j=0;if(w)var G=[0,0,0,0];var F=function(e,t){var r;if(0>t)r=0;else if(j>t){for(O=Math.min(B+1,x-1),r=O;r>=0&&!(A[r]<=t);r--);r=Math.min(r,x-2)}else{for(r=B;x>r&&!(A[r]>t);r++);r=Math.min(r-1,x-2)}B=r,j=t;var i=A[r+1]-A[r];if(0!==i)if(R=(t-A[r])/i,v)if(V=I[r],z=I[0===r?r:r-1],N=I[r>x-2?x-1:r+1],W=I[r>x-3?x-1:r+2],S)h(z,V,N,W,R,R*R,R*R*R,d(e,o),M);else{var l;if(w)l=h(z,V,N,W,R,R*R,R*R*R,G,1),l=f(G);else{if(C)return a(V,N,R);l=u(z,V,N,W,R,R*R,R*R*R)}p(e,o,l)}else if(S)s(I[r],I[r+1],R,d(e,o),M);else{var l;if(w)s(I[r],I[r+1],R,G,1),l=f(G);else{if(C)return a(I[r],I[r+1],R);l=n(I[r],I[r+1],R)}p(e,o,l)}},H=new m({target:e._target,life:b,loop:e._loop,delay:e._delay,onframe:F,ondestroy:r});return t&&"spline"!==t&&(H.easing=t),H}}}var m=r(401),g=r(21),v=r(1),y=v.isArrayLike,x=Array.prototype.slice,b=function(e,t,r,n){this._tracks={},this._target=e,this._loop=t||!1,this._getter=r||i,this._setter=n||o,this._clipCount=0,this._delay=0,this._doneList=[],this._onframeList=[],this._clipList=[]};b.prototype={when:function(e,t){var r=this._tracks;for(var i in t){if(!r[i]){r[i]=[];var o=this._getter(this._target,i);if(null==o)continue;0!==e&&r[i].push({time:0,value:d(o)})}r[i].push({time:e,value:t[i]})}return this},during:function(e){return this._onframeList.push(e),this},_doneCallback:function(){this._tracks={},this._clipList.length=0;for(var e=this._doneList,t=e.length,r=0;t>r;r++)e[r].call(this)},start:function(e){var t,r=this,i=0,o=function(){i--,i||r._doneCallback()};for(var n in this._tracks){var a=p(this,e,o,this._tracks[n],n);a&&(this._clipList.push(a),i++,this.animation&&this.animation.addClip(a),t=a)}if(t){var s=t.onframe;t.onframe=function(e,t){s(e,t);for(var i=0;it+s&&a>i+s||t-s>a&&i-s>a||n>e+s&&n>r+s||e-s>n&&r-s>n)return!1;if(e===r)return Math.abs(n-e)<=s/2;l=(t-i)/(e-r),c=(e*i-r*t)/(e-r);var h=l*n-a+c,u=h*h/(l*l+1);return s/2*s/2>=u}}},function(e,t,r){function i(e,t){return Math.abs(e-t)t+h&&c>o+h&&c>a+h||t-h>c&&o-h>c&&a-h>c||l>e+h&&l>r+h&&l>n+h||e-h>l&&r-h>l&&n-h>l)return!1;var u=i.quadraticProjectPoint(e,t,r,o,n,a,l,c,null);return h/2>=u}}},function(e,t){var r=2*Math.PI;e.exports={normalizeRadian:function(e){return e%=r,0>e&&(e+=r),e}}},function(e,t){e.exports=function(e,t,r,i,o,n){if(n>t&&n>i||t>n&&i>n)return 0;if(i===t)return 0;var a=t>i?1:-1,s=(n-t)/(i-t);1!==s&&0!==s||(a=t>i?.5:-.5);var l=s*(r-e)+e;return l>o?a:0}},function(e,t){var r=2311;e.exports=function(){return r++}},function(e,t,r){"use strict";var i=r(1),o=r(41),n=function(e,t,r,i,n,a){this.x=null==e?0:e,this.y=null==t?0:t,this.x2=null==r?1:r,this.y2=null==i?0:i,this.type="linear",this.global=a||!1,o.call(this,n)};n.prototype={constructor:n},i.inherits(n,o),e.exports=n},function(e,t){var r=function(e,t){this.image=e,this.repeat=t,this.type="pattern"};r.prototype.getCanvasPattern=function(e){return this._canvasPattern||(this._canvasPattern=e.createPattern(this.image,this.repeat))},e.exports=r},function(e,t){function r(e,t,r){var i=t.x,o=t.x2,n=t.y,a=t.y2;t.global||(i=i*r.width+r.x,o=o*r.width+r.x,n=n*r.height+r.y,a=a*r.height+r.y);var s=e.createLinearGradient(i,n,o,a);return s}function i(e,t,r){var i=r.width,o=r.height,n=Math.min(i,o),a=t.x,s=t.y,l=t.r;t.global||(a=a*i+r.x,s=s*o+r.y,l*=n);var c=e.createRadialGradient(a,s,0,a,s,l);return c}var o=[["shadowBlur",0],["shadowOffsetX",0],["shadowOffsetY",0],["shadowColor","#000"],["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]],n=function(e){this.extendFrom(e)};n.prototype={constructor:n,fill:"#000000",stroke:null,opacity:1,lineDash:null,lineDashOffset:0,shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,lineWidth:1,strokeNoScale:!1,text:null,textFill:"#000",textStroke:null,textPosition:"inside",textBaseline:null,textAlign:null,textVerticalAlign:null,textDistance:5,textShadowBlur:0,textShadowOffsetX:0,textShadowOffsetY:0,textTransform:!1,textRotation:0,blend:null,bind:function(e,t,r){for(var i=this,n=r&&r.style,a=!n,s=0;s0},extendFrom:function(e,t){if(e){var r=this;for(var i in e)!e.hasOwnProperty(i)||!t&&r.hasOwnProperty(i)||(r[i]=e[i])}},set:function(e,t){"string"==typeof e?this[e]=t:this.extendFrom(e,!0)},clone:function(){var e=new this.constructor;return e.extendFrom(this,!0),e},getGradient:function(e,t,o){for(var n="radial"===t.type?i:r,a=n(e,t,o),s=t.colorStops,l=0;l=2){if(a&&"spline"!==a){var s=o(n,a,r,t.smoothConstraint);e.moveTo(n[0][0],n[0][1]);for(var l=n.length,c=0;(r?l:l-1)>c;c++){var h=s[2*c],u=s[2*c+1],d=n[(c+1)%l];e.bezierCurveTo(h[0],h[1],u[0],u[1],d[0],d[1])}}else{"spline"===a&&(n=i(n,r)),e.moveTo(n[0][0],n[0][1]);for(var c=1,f=n.length;f>c;c++)e.lineTo(n[c][0],n[c][1])}r&&e.closePath()}}}},function(e,t,r){function i(e,t){return"string"==typeof e?e.lastIndexOf("%")>=0?parseFloat(e)/100*t:parseFloat(e):e}var o=r(24),n=r(7),a=new n,s=function(){};s.prototype={constructor:s,drawRectText:function(e,t,r){var n=this.style,s=n.text;if(null!=s&&(s+=""),s){e.save();var l,c,h=n.textPosition,u=n.textDistance,d=n.textAlign,f=n.textFont||n.font,p=n.textBaseline,m=n.textVerticalAlign;r=r||o.getBoundingRect(s,f,d,p);var g=this.transform;if(n.textTransform?this.setTransform(e):g&&(a.copy(t),a.applyTransform(g),t=a),h instanceof Array){if(l=t.x+i(h[0],t.width),c=t.y+i(h[1],t.height),d=d||"left",p=p||"top",m){switch(m){case"middle":c-=r.height/2-r.lineHeight/2;break;case"bottom":c-=r.height-r.lineHeight/2;break;default:c+=r.lineHeight/2}p="middle"}}else{var v=o.adjustTextPositionOnRect(h,t,r,u);l=v.x,c=v.y,d=d||v.textAlign,p=p||v.textBaseline}e.textAlign=d||"left",e.textBaseline=p||"alphabetic";var y=n.textFill,x=n.textStroke;y&&(e.fillStyle=y),x&&(e.strokeStyle=x),e.font=f||"12px sans-serif",e.shadowBlur=n.textShadowBlur,e.shadowColor=n.textShadowColor||"transparent",e.shadowOffsetX=n.textShadowOffsetX,e.shadowOffsetY=n.textShadowOffsetY;var b=s.split("\n");n.textRotation&&(g&&e.translate(g[4],g[5]),e.rotate(n.textRotation),g&&e.translate(-g[4],-g[5]));for(var _=0;_s||-s>e}var o=r(20),n=r(5),a=o.identity,s=5e-5,l=function(e){e=e||{},e.position||(this.position=[0,0]),null==e.rotation&&(this.rotation=0),e.scale||(this.scale=[1,1]),this.origin=this.origin||null},c=l.prototype;c.transform=null,c.needLocalTransform=function(){return i(this.rotation)||i(this.position[0])||i(this.position[1])||i(this.scale[0]-1)||i(this.scale[1]-1)},c.updateTransform=function(){var e=this.parent,t=e&&e.transform,r=this.needLocalTransform(),i=this.transform;return r||t?(i=i||o.create(),r?this.getLocalTransform(i):a(i),t&&(r?o.mul(i,e.transform,i):o.copy(i,e.transform)),this.transform=i,this.invTransform=this.invTransform||o.create(),void o.invert(this.invTransform,i)):void(i&&a(i))},c.getLocalTransform=function(e){e=e||[],a(e);var t=this.origin,r=this.scale,i=this.rotation,n=this.position;return t&&(e[4]-=t[0],e[5]-=t[1]),o.scale(e,e,r),i&&o.rotate(e,e,i),t&&(e[4]+=t[0],e[5]+=t[1]),e[4]+=n[0],e[5]+=n[1],e},c.setTransform=function(e){var t=this.transform,r=e.dpr||1;t?e.setTransform(r*t[0],r*t[1],r*t[2],r*t[3],r*t[4],r*t[5]):e.setTransform(r,0,0,r,0,0)},c.restoreTransform=function(e){var t=(this.transform,e.dpr||1);e.setTransform(t,0,0,t,0,0)};var h=[];c.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(o.mul(h,e.invTransform,t),t=h);var r=t[0]*t[0]+t[1]*t[1],n=t[2]*t[2]+t[3]*t[3],a=this.position,s=this.scale;i(r-1)&&(r=Math.sqrt(r)),i(n-1)&&(n=Math.sqrt(n)),t[0]<0&&(r=-r),t[3]<0&&(n=-n),a[0]=t[4],a[1]=t[5],s[0]=r,s[1]=n,this.rotation=Math.atan2(-t[1]/n,t[0]/r)}},c.getGlobalScale=function(){var e=this.transform;if(!e)return[1,1];var t=Math.sqrt(e[0]*e[0]+e[1]*e[1]),r=Math.sqrt(e[2]*e[2]+e[3]*e[3]);return e[0]<0&&(t=-t),e[3]<0&&(r=-r),[t,r]},c.transformCoordToLocal=function(e,t){var r=[e,t],i=this.invTransform;return i&&n.applyTransform(r,r,i),r},c.transformCoordToGlobal=function(e,t){var r=[e,t],i=this.transform;return i&&n.applyTransform(r,r,i),r},e.exports=l},function(e,t,r){if(!r(15).canvasSupported){var i,o="urn:schemas-microsoft-com:vml",n=window,a=n.document,s=!1;try{!a.namespaces.zrvml&&a.namespaces.add("zrvml",o),i=function(e){return a.createElement("')}}catch(l){i=function(e){return a.createElement("<"+e+' xmlns="'+o+'" class="zrvml">')}}var c=function(){if(!s){s=!0;var e=a.styleSheets;e.length<31?a.createStyleSheet().addRule(".zrvml","behavior:url(#default#VML)"):e[0].addRule(".zrvml","behavior:url(#default#VML)")}};e.exports={doc:a,initVML:c,createNode:i}}},function(e,t,r){function i(e){delete d[e]}/*! * ZRender, a high performance 2d drawing library. * * Copyright (c) 2013, Baidu Inc. * All rights reserved. * * LICENSE * https://github.com/ecomfe/zrender/blob/master/LICENSE.txt */ var o=r(130),n=r(15),a=r(396),s=r(399),l=r(400),c=r(408),h=!n.canvasSupported,u={canvas:r(398)},d={},f={};f.version="3.1.3",f.init=function(e,t){var r=new p(o(),e,t);return d[r.id]=r,r},f.dispose=function(e){if(e)e.dispose();else{for(var t in d)d[t].dispose();d={}}return f},f.getInstance=function(e){return d[e]},f.registerPainter=function(e,t){u[e]=t};var p=function(e,t,r){r=r||{},this.dom=t,this.id=e;var i=this,o=new s,d=r.renderer;if(h){if(!u.vml)throw new Error("You need to require 'zrender/vml/vml' to support IE8");d="vml"}else d&&u[d]||(d="canvas");var f=new u[d](t,o,r);this.storage=o,this.painter=f;var p=n.node?null:new c(f.getViewportRoot());this.handler=new a(o,f,p),this.animation=new l({stage:{update:function(){i._needsRefresh&&i.refreshImmediately(),i._needsRefreshHover&&i.refreshHoverImmediately()}}}),this.animation.start(),this._needsRefresh;var m=o.delFromMap,g=o.addToMap;o.delFromMap=function(e){var t=o.get(e);m.call(o,e),t&&t.removeSelfFromZr(i)},o.addToMap=function(e){g.call(o,e),e.addSelfToZr(i)}};p.prototype={constructor:p,getId:function(){return this.id},add:function(e){this.storage.addRoot(e),this._needsRefresh=!0},remove:function(e){this.storage.delRoot(e),this._needsRefresh=!0},configLayer:function(e,t){this.painter.configLayer(e,t),this._needsRefresh=!0},refreshImmediately:function(){this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1},refresh:function(){this._needsRefresh=!0},addHover:function(e,t){this.painter.addHover&&(this.painter.addHover(e,t),this.refreshHover())},removeHover:function(e){this.painter.removeHover&&(this.painter.removeHover(e),this.refreshHover())},clearHover:function(){this.painter.clearHover&&(this.painter.clearHover(),this.refreshHover())},refreshHover:function(){this._needsRefreshHover=!0},refreshHoverImmediately:function(){this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.refreshHover()},resize:function(){this.painter.resize(),this.handler.resize()},clearAnimation:function(){this.animation.clear()},getWidth:function(){return this.painter.getWidth()},getHeight:function(){return this.painter.getHeight()},pathToImage:function(e,t,r){var i=o();return this.painter.pathToImage(i,e,t,r)},setCursorStyle:function(e){this.handler.setCursorStyle(e)},on:function(e,t,r){this.handler.on(e,t,r)},off:function(e,t){this.handler.off(e,t)},trigger:function(e,t){this.handler.trigger(e,t)},clear:function(){this.storage.delRoot(),this.painter.clear()},dispose:function(){this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,i(this.id)}},e.exports=f},function(e,t){var r=function(){function e(e){return null==e?String(e):q[Z.call(e)]||"object"}function t(t){return"function"==e(t)}function r(e){return null!=e&&e==e.window}function i(e){return null!=e&&e.nodeType==e.DOCUMENT_NODE}function o(t){return"object"==e(t)}function n(e){return o(e)&&!r(e)&&Object.getPrototypeOf(e)==Object.prototype}function a(e){var t=!!e&&"length"in e&&e.length,i=w.type(e);return"function"!=i&&!r(e)&&("array"==i||0===t||"number"==typeof t&&t>0&&t-1 in e)}function s(e){return P.call(e,function(e){return null!=e})}function l(e){return e.length>0?w.fn.concat.apply([],e):e}function c(e){return e.replace(/::/g,"/").replace(/([A-Z]+)([A-Z][a-z])/g,"$1_$2").replace(/([a-z\d])([A-Z])/g,"$1_$2").replace(/_/g,"-").toLowerCase()}function h(e){return e in E?E[e]:E[e]=new RegExp("(^|\\s)"+e+"(\\s|$)")}function u(e,t){return"number"!=typeof t||D[c(e)]?t:t+"px"}function d(e){var t,r;return k[e]||(t=L.createElement(e),L.body.appendChild(t),r=getComputedStyle(t,"").getPropertyValue("display"),t.parentNode.removeChild(t),"none"==r&&(r="block"),k[e]=r),k[e]}function f(e){return"children"in e?T.call(e.children):w.map(e.childNodes,function(e){return 1==e.nodeType?e:void 0})}function p(e,t,r){for(S in t)r&&(n(t[S])||Q(t[S]))?(n(t[S])&&!n(e[S])&&(e[S]={}),Q(t[S])&&!Q(e[S])&&(e[S]=[]),p(e[S],t[S],r)):t[S]!==_&&(e[S]=t[S])}function m(e,t){return null==t?w(e):w(e).filter(t)}function g(e,r,i,o){return t(r)?r.call(e,i,o):r}function v(e,t,r){null==r?e.removeAttribute(t):e.setAttribute(t,r)}function y(e,t){var r=e.className||"",i=r&&r.baseVal!==_;return t===_?i?r.baseVal:r:void(i?r.baseVal=t:e.className=t)}function x(e){try{return e?"true"==e||("false"==e?!1:"null"==e?null:+e+""==e?+e:/^[\[\{]/.test(e)?w.parseJSON(e):e):e}catch(t){return e}}function b(e,t){t(e);for(var r=0,i=e.childNodes.length;i>r;r++)b(e.childNodes[r],t)}var _,S,w,C,M,A,I=[],T=I.slice,P=I.filter,L=window.document,k={},E={},D={"column-count":1,columns:1,"font-weight":1,"line-height":1,opacity:1,"z-index":1,zoom:1},O=/^\s*<(\w+|!)[^>]*>/,R=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,z=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,V=/^(?:body|html)$/i,N=/([A-Z])/g,W=["val","css","html","text","data","width","height","offset"],B=["after","prepend","before","append"],j=L.createElement("table"),G=L.createElement("tr"),F={tr:L.createElement("tbody"),tbody:j,thead:j,tfoot:j,td:G,th:G,"*":L.createElement("div")},H=/complete|loaded|interactive/,$=/^[\w-]*$/,q={},Z=q.toString,U={},X=L.createElement("div"),Y={tabindex:"tabIndex",readonly:"readOnly","for":"htmlFor","class":"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},Q=Array.isArray||function(e){return e instanceof Array};return U.matches=function(e,t){if(!t||!e||1!==e.nodeType)return!1;var r=e.matches||e.webkitMatchesSelector||e.mozMatchesSelector||e.oMatchesSelector||e.matchesSelector;if(r)return r.call(e,t);var i,o=e.parentNode,n=!o;return n&&(o=X).appendChild(e),i=~U.qsa(o,t).indexOf(e),n&&X.removeChild(e),i},M=function(e){return e.replace(/-+(.)?/g,function(e,t){return t?t.toUpperCase():""})},A=function(e){return P.call(e,function(t,r){return e.indexOf(t)==r})},U.fragment=function(e,t,r){var i,o,a;return R.test(e)&&(i=w(L.createElement(RegExp.$1))),i||(e.replace&&(e=e.replace(z,"<$1>")),t===_&&(t=O.test(e)&&RegExp.$1),t in F||(t="*"),a=F[t],a.innerHTML=""+e,i=w.each(T.call(a.childNodes),function(){a.removeChild(this)})),n(r)&&(o=w(i),w.each(r,function(e,t){W.indexOf(e)>-1?o[e](t):o.attr(e,t)})),i},U.Z=function(e,t){return e=e||[],e.__proto__=w.fn,e.selector=t||"",e},U.isZ=function(e){return e instanceof U.Z},U.init=function(e,r){var i;if(!e)return U.Z();if("string"==typeof e)if(e=e.trim(),"<"==e[0]&&O.test(e))i=U.fragment(e,RegExp.$1,r),e=null;else{if(r!==_)return w(r).find(e);i=U.qsa(L,e)}else{if(t(e))return w(L).ready(e);if(U.isZ(e))return e;if(Q(e))i=s(e);else if(o(e))i=[e],e=null;else if(O.test(e))i=U.fragment(e.trim(),RegExp.$1,r),e=null;else{if(r!==_)return w(r).find(e);i=U.qsa(L,e)}}return U.Z(i,e)},w=function(e,t){return U.init(e,t)},w.extend=function(e){var t,r=T.call(arguments,1);return"boolean"==typeof e&&(t=e,e=r.shift()),r.forEach(function(r){p(e,r,t)}),e},U.qsa=function(e,t){var r,o="#"==t[0],n=!o&&"."==t[0],a=o||n?t.slice(1):t,s=$.test(a);return i(e)&&s&&o?(r=e.getElementById(a))?[r]:[]:1!==e.nodeType&&9!==e.nodeType?[]:T.call(s&&!o?n?e.getElementsByClassName(a):e.getElementsByTagName(t):e.querySelectorAll(t))},w.contains=L.documentElement.contains?function(e,t){return e!==t&&e.contains(t)}:function(e,t){for(;t&&(t=t.parentNode);)if(t===e)return!0;return!1},w.type=e,w.isFunction=t,w.isWindow=r,w.isArray=Q,w.isPlainObject=n,w.isEmptyObject=function(e){var t;for(t in e)return!1;return!0},w.inArray=function(e,t,r){return I.indexOf.call(t,e,r)},w.camelCase=M,w.trim=function(e){return null==e?"":String.prototype.trim.call(e)},w.uuid=0,w.support={},w.expr={},w.map=function(e,t){var r,i,o,n=[];if(a(e))for(i=0;i=0?e:e+this.length]},toArray:function(){return this.get()},size:function(){return this.length},remove:function(){return this.each(function(){null!=this.parentNode&&this.parentNode.removeChild(this)})},each:function(e){return I.every.call(this,function(t,r){return e.call(t,r,t)!==!1}),this},filter:function(e){return t(e)?this.not(this.not(e)):w(P.call(this,function(t){return U.matches(t,e)}))},add:function(e,t){return w(A(this.concat(w(e,t))))},is:function(e){return this.length>0&&U.matches(this[0],e)},not:function(e){var r=[];if(t(e)&&e.call!==_)this.each(function(t){e.call(this,t)||r.push(this)});else{var i="string"==typeof e?this.filter(e):a(e)&&t(e.item)?T.call(e):w(e);this.forEach(function(e){i.indexOf(e)<0&&r.push(e)})}return w(r)},has:function(e){return this.filter(function(){return o(e)?w.contains(this,e):w(this).find(e).size()})},eq:function(e){return-1===e?this.slice(e):this.slice(e,+e+1)},first:function(){var e=this[0];return e&&!o(e)?e:w(e)},last:function(){var e=this[this.length-1];return e&&!o(e)?e:w(e)},find:function(e){var t,r=this;return t=e?"object"==typeof e?w(e).filter(function(){var e=this;return I.some.call(r,function(t){return w.contains(t,e)})}):1==this.length?w(U.qsa(this[0],e)):this.map(function(){return U.qsa(this,e)}):w()},closest:function(e,t){var r=[],o="object"==typeof e&&w(e);return this.each(function(n,a){for(;a&&!(o?o.indexOf(a)>=0:U.matches(a,e));)a=a!==t&&!i(a)&&a.parentNode;a&&r.indexOf(a)<0&&r.push(a)}),w(r)},parents:function(e){for(var t=[],r=this;r.length>0;)r=w.map(r,function(e){return(e=e.parentNode)&&!i(e)&&t.indexOf(e)<0?(t.push(e),e):void 0});return m(t,e)},parent:function(e){return m(A(this.pluck("parentNode")),e)},children:function(e){return m(this.map(function(){return f(this)}),e)},contents:function(){return this.map(function(){return T.call(this.childNodes)})},siblings:function(e){return m(this.map(function(e,t){return P.call(f(t.parentNode),function(e){return e!==t})}),e)},empty:function(){return this.each(function(){this.innerHTML=""})},pluck:function(e){return w.map(this,function(t){return t[e]})},show:function(){return this.each(function(){"none"==this.style.display&&(this.style.display=""),"none"==getComputedStyle(this,"").getPropertyValue("display")&&(this.style.display=d(this.nodeName))})},replaceWith:function(e){return this.before(e).remove()},wrap:function(e){var r=t(e);if(this[0]&&!r)var i=w(e).get(0),o=i.parentNode||this.length>1;return this.each(function(t){w(this).wrapAll(r?e.call(this,t):o?i.cloneNode(!0):i)})},wrapAll:function(e){if(this[0]){w(this[0]).before(e=w(e));for(var t;(t=e.children()).length;)e=t.first();w(e).append(this)}return this},wrapInner:function(e){var r=t(e);return this.each(function(t){var i=w(this),o=i.contents(),n=r?e.call(this,t):e;o.length?o.wrapAll(n):i.append(n)})},unwrap:function(){return this.parent().each(function(){w(this).replaceWith(w(this).children())}),this},clone:function(){return this.map(function(){return this.cloneNode(!0)})},hide:function(){return this.css("display","none")},toggle:function(e){return this.each(function(){var t=w(this);(e===_?"none"==t.css("display"):e)?t.show():t.hide()})},prev:function(e){return w(this.pluck("previousElementSibling")).filter(e||"*")},next:function(e){return w(this.pluck("nextElementSibling")).filter(e||"*")},html:function(e){return 0 in arguments?this.each(function(t){var r=this.innerHTML;w(this).empty().append(g(this,e,t,r))}):0 in this?this[0].innerHTML:null},text:function(e){return 0 in arguments?this.each(function(t){var r=g(this,e,t,this.textContent);this.textContent=null==r?"":""+r}):0 in this?this.pluck("textContent").join(""):null},attr:function(e,t){var r;return"string"!=typeof e||1 in arguments?this.each(function(r){if(1===this.nodeType)if(o(e))for(S in e)v(this,S,e[S]);else v(this,e,g(this,t,r,this.getAttribute(e)))}):this.length&&1===this[0].nodeType?!(r=this[0].getAttribute(e))&&e in this[0]?this[0][e]:r:_},removeAttr:function(e){return this.each(function(){1===this.nodeType&&e.split(" ").forEach(function(e){v(this,e)},this)})},prop:function(e,t){return e=Y[e]||e,1 in arguments?this.each(function(r){this[e]=g(this,t,r,this[e])}):this[0]&&this[0][e]},data:function(e,t){var r="data-"+e.replace(N,"-$1").toLowerCase(),i=1 in arguments?this.attr(r,t):this.attr(r);return null!==i?x(i):_},val:function(e){return 0 in arguments?(null==e&&(e=""),this.each(function(t){this.value=g(this,e,t,this.value)})):this[0]&&(this[0].multiple?w(this[0]).find("option").filter(function(){return this.selected}).pluck("value"):this[0].value)},offset:function(e){if(e)return this.each(function(t){var r=w(this),i=g(this,e,t,r.offset()),o=r.offsetParent().offset(),n={top:i.top-o.top,left:i.left-o.left};"static"==r.css("position")&&(n.position="relative"),r.css(n)});if(!this.length)return null;if(L.documentElement!==this[0]&&!w.contains(L.documentElement,this[0]))return{top:0,left:0};var t=this[0].getBoundingClientRect();return{left:t.left+window.pageXOffset,top:t.top+window.pageYOffset,width:Math.round(t.width),height:Math.round(t.height)}},css:function(t,r){if(arguments.length<2){var i=this[0];if("string"==typeof t){if(!i)return;return i.style[M(t)]||getComputedStyle(i,"").getPropertyValue(t)}if(Q(t)){if(!i)return;var o={},n=getComputedStyle(i,"");return w.each(t,function(e,t){o[t]=i.style[M(t)]||n.getPropertyValue(t)}),o}}var a="";if("string"==e(t))r||0===r?a=c(t)+":"+u(t,r):this.each(function(){this.style.removeProperty(c(t))});else for(S in t)t[S]||0===t[S]?a+=c(S)+":"+u(S,t[S])+";":this.each(function(){this.style.removeProperty(c(S))});return this.each(function(){this.style.cssText+=";"+a})},index:function(e){return e?this.indexOf(w(e)[0]):this.parent().children().indexOf(this[0])},hasClass:function(e){return e?I.some.call(this,function(e){return this.test(y(e))},h(e)):!1},addClass:function(e){return e?this.each(function(t){if("className"in this){C=[];var r=y(this),i=g(this,e,t,r);i.split(/\s+/g).forEach(function(e){w(this).hasClass(e)||C.push(e)},this),C.length&&y(this,r+(r?" ":"")+C.join(" "))}}):this},removeClass:function(e){return this.each(function(t){if("className"in this){if(e===_)return y(this,"");C=y(this),g(this,e,t,C).split(/\s+/g).forEach(function(e){C=C.replace(h(e)," ")}),y(this,C.trim())}})},toggleClass:function(e,t){return e?this.each(function(r){var i=w(this),o=g(this,e,r,y(this));o.split(/\s+/g).forEach(function(e){(t===_?!i.hasClass(e):t)?i.addClass(e):i.removeClass(e)})}):this},scrollTop:function(e){if(this.length){var t="scrollTop"in this[0];return e===_?t?this[0].scrollTop:this[0].pageYOffset:this.each(t?function(){this.scrollTop=e}:function(){this.scrollTo(this.scrollX,e)})}},scrollLeft:function(e){if(this.length){var t="scrollLeft"in this[0];return e===_?t?this[0].scrollLeft:this[0].pageXOffset:this.each(t?function(){this.scrollLeft=e}:function(){this.scrollTo(e,this.scrollY)})}},position:function(){if(this.length){var e=this[0],t=this.offsetParent(),r=this.offset(),i=V.test(t[0].nodeName)?{top:0,left:0}:t.offset();return r.top-=parseFloat(w(e).css("margin-top"))||0,r.left-=parseFloat(w(e).css("margin-left"))||0,i.top+=parseFloat(w(t[0]).css("border-top-width"))||0,i.left+=parseFloat(w(t[0]).css("border-left-width"))||0,{top:r.top-i.top,left:r.left-i.left}}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent||L.body;e&&!V.test(e.nodeName)&&"static"==w(e).css("position");)e=e.offsetParent;return e})}},w.fn.detach=w.fn.remove,["width","height"].forEach(function(e){var t=e.replace(/./,function(e){return e[0].toUpperCase()});w.fn[e]=function(o){var n,a=this[0];return o===_?r(a)?a["inner"+t]:i(a)?a.documentElement["scroll"+t]:(n=this.offset())&&n[e]:this.each(function(t){a=w(this),a.css(e,g(this,o,t,a[e]()))})}}),B.forEach(function(t,r){var i=r%2;w.fn[t]=function(){var t,o,n=w.map(arguments,function(r){var i=[];return t=e(r),"array"==t?(r.forEach(function(e){return e.nodeType!==_?i.push(e):w.zepto.isZ(e)?i=i.concat(e.get()):void(i=i.concat(U.fragment(e)))}),i):"object"==t||null==r?r:U.fragment(r)}),a=this.length>1;return n.length<1?this:this.each(function(e,t){o=i?t:t.parentNode,t=0==r?t.nextSibling:1==r?t.firstChild:2==r?t:null;var s=w.contains(L.documentElement,o);n.forEach(function(e){if(a)e=e.cloneNode(!0);else if(!o)return w(e).remove();o.insertBefore(e,t),s&&b(e,function(e){if(!(null==e.nodeName||"SCRIPT"!==e.nodeName.toUpperCase()||e.type&&"text/javascript"!==e.type||e.src)){var t=e.ownerDocument?e.ownerDocument.defaultView:window;t.eval.call(t,e.innerHTML)}})})})},w.fn[i?t+"To":"insert"+(r?"Before":"After")]=function(e){return w(e)[t](this),this}}),U.Z.prototype=w.fn,U.uniq=A,U.deserializeValue=x,w.zepto=U,w}();window.Zepto=r,void 0===window.$&&(window.$=r),function(e){function t(e){return e._zid||(e._zid=d++)}function r(e,r,n,a){if(r=i(r),r.ns)var s=o(r.ns);return(g[t(e)]||[]).filter(function(e){return e&&(!r.e||e.e==r.e)&&(!r.ns||s.test(e.ns))&&(!n||t(e.fn)===t(n))&&(!a||e.sel==a)})}function i(e){var t=(""+e).split(".");return{e:t[0],ns:t.slice(1).sort().join(" ")}}function o(e){return new RegExp("(?:^| )"+e.replace(" "," .* ?")+"(?: |$)")}function n(e,t){return e.del&&!y&&e.e in x||!!t}function a(e){return b[e]||y&&x[e]||e}function s(r,o,s,l,h,d,f){var p=t(r),m=g[p]||(g[p]=[]);o.split(/\s/).forEach(function(t){if("ready"==t)return e(document).ready(s);var o=i(t);o.fn=s,o.sel=h,o.e in b&&(s=function(t){var r=t.relatedTarget;return!r||r!==this&&!e.contains(this,r)?o.fn.apply(this,arguments):void 0}),o.del=d;var p=d||s;o.proxy=function(e){if(e=c(e),!e.isImmediatePropagationStopped()){e.data=l;var t=p.apply(r,e._args==u?[e]:[e].concat(e._args));return t===!1&&(e.preventDefault(),e.stopPropagation()),t}},o.i=m.length,m.push(o),"addEventListener"in r&&r.addEventListener(a(o.e),o.proxy,n(o,f))})}function l(e,i,o,s,l){var c=t(e);(i||"").split(/\s/).forEach(function(t){r(e,t,o,s).forEach(function(t){delete g[c][t.i],"removeEventListener"in e&&e.removeEventListener(a(t.e),t.proxy,n(t,l))})})}function c(t,r){return!r&&t.isDefaultPrevented||(r||(r=t),e.each(C,function(e,i){var o=r[e];t[e]=function(){return this[i]=_,o&&o.apply(r,arguments)},t[i]=S}),t.timeStamp||(t.timeStamp=Date.now()),(r.defaultPrevented!==u?r.defaultPrevented:"returnValue"in r?r.returnValue===!1:r.getPreventDefault&&r.getPreventDefault())&&(t.isDefaultPrevented=_)),t}function h(e){var t,r={originalEvent:e};for(t in e)w.test(t)||e[t]===u||(r[t]=e[t]);return c(r,e)}var u,d=1,f=Array.prototype.slice,p=e.isFunction,m=function(e){return"string"==typeof e},g={},v={},y="onfocusin"in window,x={focus:"focusin",blur:"focusout"},b={mouseenter:"mouseover",mouseleave:"mouseout"};v.click=v.mousedown=v.mouseup=v.mousemove="MouseEvents",e.event={add:s,remove:l},e.proxy=function(r,i){var o=2 in arguments&&f.call(arguments,2);if(p(r)){var n=function(){return r.apply(i,o?o.concat(f.call(arguments)):arguments)};return n._zid=t(r),n}if(m(i))return o?(o.unshift(r[i],r),e.proxy.apply(null,o)):e.proxy(r[i],r);throw new TypeError("expected function")},e.fn.bind=function(e,t,r){return this.on(e,t,r)},e.fn.unbind=function(e,t){return this.off(e,t)},e.fn.one=function(e,t,r,i){return this.on(e,t,r,i,1)};var _=function(){return!0},S=function(){return!1},w=/^([A-Z]|returnValue$|layer[XY]$|webkitMovement[XY]$)/,C={preventDefault:"isDefaultPrevented",stopImmediatePropagation:"isImmediatePropagationStopped",stopPropagation:"isPropagationStopped"};e.fn.delegate=function(e,t,r){return this.on(t,e,r)},e.fn.undelegate=function(e,t,r){return this.off(t,e,r)},e.fn.live=function(t,r){return e(document.body).delegate(this.selector,t,r),this},e.fn.die=function(t,r){return e(document.body).undelegate(this.selector,t,r),this},e.fn.on=function(t,r,i,o,n){var a,c,d=this;return t&&!m(t)?(e.each(t,function(e,t){d.on(e,r,i,t,n)}),d):(m(r)||p(o)||o===!1||(o=i,i=r,r=u),o!==u&&i!==!1||(o=i,i=u),o===!1&&(o=S),d.each(function(u,d){n&&(a=function(e){return l(d,e.type,o),o.apply(this,arguments)}),r&&(c=function(t){var i,n=e(t.target).closest(r,d).get(0);return n&&n!==d?(i=e.extend(h(t),{currentTarget:n,liveFired:d}),(a||o).apply(n,[i].concat(f.call(arguments,1)))):void 0}),s(d,t,o,i,r,c||a)}))},e.fn.off=function(t,r,i){var o=this;return t&&!m(t)?(e.each(t,function(e,t){o.off(e,r,t)}),o):(m(r)||p(i)||i===!1||(i=r,r=u),i===!1&&(i=S),o.each(function(){l(this,t,i,r)}))},e.fn.trigger=function(t,r){return t=m(t)||e.isPlainObject(t)?e.Event(t):c(t),t._args=r,this.each(function(){t.type in x&&"function"==typeof this[t.type]?this[t.type]():"dispatchEvent"in this?this.dispatchEvent(t):e(this).triggerHandler(t,r)})},e.fn.triggerHandler=function(t,i){var o,n;return this.each(function(a,s){o=h(m(t)?e.Event(t):t),o._args=i,o.target=s,e.each(r(s,t.type||t),function(e,t){return n=t.proxy(o),o.isImmediatePropagationStopped()?!1:void 0})}),n},"focusin focusout focus blur load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select keydown keypress keyup error".split(" ").forEach(function(t){e.fn[t]=function(e){return 0 in arguments?this.bind(t,e):this.trigger(t)}}),e.Event=function(e,t){m(e)||(t=e,e=t.type);var r=document.createEvent(v[e]||"Events"),i=!0;if(t)for(var o in t)"bubbles"==o?i=!!t[o]:r[o]=t[o];return r.initEvent(e,i,!0),c(r)}}(r),function(e){function t(t,r,i){var o=e.Event(r);return e(t).trigger(o,i),!o.isDefaultPrevented()}function r(e,r,i,o){return e.global?t(r||y,i,o):void 0}function i(t){t.global&&0===e.active++&&r(t,null,"ajaxStart")}function o(t){t.global&&!--e.active&&r(t,null,"ajaxStop")}function n(e,t){var i=t.context;return t.beforeSend.call(i,e,t)===!1||r(t,i,"ajaxBeforeSend",[e,t])===!1?!1:void r(t,i,"ajaxSend",[e,t])}function a(e,t,i,o){var n=i.context,a="success";i.success.call(n,e,a,t),o&&o.resolveWith(n,[e,a,t]),r(i,n,"ajaxSuccess",[t,i,e]),l(a,t,i)}function s(e,t,i,o,n){var a=o.context;o.error.call(a,i,t,e),n&&n.rejectWith(a,[i,t,e]),r(o,a,"ajaxError",[i,o,e||t]),l(t,i,o)}function l(e,t,i){var n=i.context;i.complete.call(n,t,e),r(i,n,"ajaxComplete",[t,i]),o(i)}function c(){}function h(e){return e&&(e=e.split(";",2)[0]),e&&(e==w?"html":e==S?"json":b.test(e)?"script":_.test(e)&&"xml")||"text"}function u(e,t){return""==t?e:(e+"&"+t).replace(/[&?]{1,2}/,"?")}function d(t){t.processData&&t.data&&"string"!=e.type(t.data)&&(t.data=e.param(t.data,t.traditional)),!t.data||t.type&&"GET"!=t.type.toUpperCase()&&"jsonp"!=t.dataType||(t.url=u(t.url,t.data),t.data=void 0)}function f(t,r,i,o){return e.isFunction(r)&&(o=i,i=r,r=void 0),e.isFunction(i)||(o=i,i=void 0),{url:t,data:r,success:i,dataType:o}}function p(t,r,i,o){var n,a=e.isArray(r),s=e.isPlainObject(r);e.each(r,function(r,l){n=e.type(l),o&&(r=i?o:o+"["+(s||"object"==n||"array"==n?r:"")+"]"),!o&&a?t.add(l.name,l.value):"array"==n||!i&&"object"==n?p(t,l,i,r):t.add(r,l)})}var m,g,v=+new Date,y=window.document,x=/)<[^<]*)*<\/script>/gi,b=/^(?:text|application)\/javascript/i,_=/^(?:text|application)\/xml/i,S="application/json",w="text/html",C=/^\s*$/,M=y.createElement("a");M.href=window.location.href,e.active=0,e.ajaxJSONP=function(t,r){if(!("type"in t))return e.ajax(t);var i,o,l=t.jsonpCallback,c=(e.isFunction(l)?l():l)||"Zepto"+v++,h=y.createElement("script"),u=window[c],d=function(t){e(h).triggerHandler("error",t||"abort")},f={abort:d};return r&&r.promise(f),e(h).on("load error",function(n,l){clearTimeout(o),e(h).off().remove(),"error"!=n.type&&i?a(i[0],f,t,r):s(null,l||"error",f,t,r),window[c]=u,i&&e.isFunction(u)&&u(i[0]),u=i=void 0}),n(f,t)===!1?(d("abort"),f):(window[c]=function(){i=arguments},h.src=t.url.replace(/\?(.+)=\?/,"?$1="+c),y.head.appendChild(h),t.timeout>0&&(o=setTimeout(function(){d("timeout")},t.timeout)),f)},e.ajaxSettings={type:"GET",beforeSend:c,success:c,error:c,complete:c,context:null,global:!0,xhr:function(){return new window.XMLHttpRequest},accepts:{script:"text/javascript, application/javascript, application/x-javascript",json:S,xml:"application/xml, text/xml",html:w,text:"text/plain"},crossDomain:!1,timeout:0,processData:!0,cache:!0},e.ajax=function(t){var r,o,l=e.extend({},t||{}),f=e.Deferred&&e.Deferred();for(m in e.ajaxSettings)void 0===l[m]&&(l[m]=e.ajaxSettings[m]);i(l),l.crossDomain||(r=y.createElement("a"),r.href=l.url,r.href=r.href,l.crossDomain=M.protocol+"//"+M.host!=r.protocol+"//"+r.host),l.url||(l.url=window.location.toString()),(o=l.url.indexOf("#"))>-1&&(l.url=l.url.slice(0,o)),d(l);var p=l.dataType,v=/\?.+=\?/.test(l.url);if(v&&(p="jsonp"),l.cache!==!1&&(t&&t.cache===!0||"script"!=p&&"jsonp"!=p)||(l.url=u(l.url,"_="+Date.now())),"jsonp"==p)return v||(l.url=u(l.url,l.jsonp?l.jsonp+"=?":l.jsonp===!1?"":"callback=?")),e.ajaxJSONP(l,f);var x,b=l.accepts[p],_={},S=function(e,t){_[e.toLowerCase()]=[e,t]},w=/^([\w-]+:)\/\//.test(l.url)?RegExp.$1:window.location.protocol,A=l.xhr(),I=A.setRequestHeader;if(f&&f.promise(A),l.crossDomain||S("X-Requested-With","XMLHttpRequest"),S("Accept",b||"*/*"),(b=l.mimeType||b)&&(b.indexOf(",")>-1&&(b=b.split(",",2)[0]),A.overrideMimeType&&A.overrideMimeType(b)),(l.contentType||l.contentType!==!1&&l.data&&"GET"!=l.type.toUpperCase())&&S("Content-Type",l.contentType||"application/x-www-form-urlencoded"),l.headers)for(g in l.headers)S(g,l.headers[g]);if(A.setRequestHeader=S,A.onreadystatechange=function(){if(4==A.readyState){A.onreadystatechange=c,clearTimeout(x);var t,r=!1;if(A.status>=200&&A.status<300||304==A.status||0==A.status&&"file:"==w){if(p=p||h(l.mimeType||A.getResponseHeader("content-type")),"arraybuffer"==A.responseType||"blob"==A.responseType)t=A.response;else{t=A.responseText;try{"script"==p?(0,eval)(t):"xml"==p?t=A.responseXML:"json"==p&&(t=C.test(t)?null:e.parseJSON(t))}catch(i){r=i}if(r)return s(r,"parsererror",A,l,f)}a(t,A,l,f)}else s(A.statusText||null,A.status?"error":"abort",A,l,f)}},n(A,l)===!1)return A.abort(),s(null,"abort",A,l,f),A;var T="async"in l?l.async:!0;if(A.open(l.type,l.url,T,l.username,l.password),l.xhrFields)for(g in l.xhrFields)A[g]=l.xhrFields[g];for(g in _)I.apply(A,_[g]);return l.timeout>0&&(x=setTimeout(function(){A.onreadystatechange=c,A.abort(),s(null,"timeout",A,l,f)},l.timeout)),A.send(l.data?l.data:null),A},e.get=function(){return e.ajax(f.apply(null,arguments))},e.post=function(){var t=f.apply(null,arguments);return t.type="POST",e.ajax(t)},e.getJSON=function(){var t=f.apply(null,arguments);return t.dataType="json",e.ajax(t)},e.fn.load=function(t,r,i){if(!this.length)return this;var o,n=this,a=t.split(/\s/),s=f(t,r,i),l=s.success;return a.length>1&&(s.url=a[0],o=a[1]),s.success=function(t){n.html(o?e("
").html(t.replace(x,"")).find(o):t),l&&l.apply(n,arguments)},e.ajax(s),this};var A=encodeURIComponent;e.param=function(t,r){var i=[];return i.add=function(t,r){e.isFunction(r)&&(r=r()),null==r&&(r=""),this.push(A(t)+"="+A(r))},p(i,t,r),i.join("&").replace(/%20/g,"+")}}(r),function(e){e.fn.serializeArray=function(){var t,r,i=[],o=function(e){return e.forEach?e.forEach(o):void i.push({name:t,value:e})};return this[0]&&e.each(this[0].elements,function(i,n){r=n.type,t=n.name,t&&"fieldset"!=n.nodeName.toLowerCase()&&!n.disabled&&"submit"!=r&&"reset"!=r&&"button"!=r&&"file"!=r&&("radio"!=r&&"checkbox"!=r||n.checked)&&o(e(n).val())}),i},e.fn.serialize=function(){var e=[];return this.serializeArray().forEach(function(t){e.push(encodeURIComponent(t.name)+"="+encodeURIComponent(t.value))}),e.join("&")},e.fn.submit=function(t){if(0 in arguments)this.bind("submit",t);else if(this.length){var r=e.Event("submit");this.eq(0).trigger(r),r.isDefaultPrevented()||this.get(0).submit()}return this}}(r),function(e){"__proto__"in{}||e.extend(e.zepto,{Z:function(t,r){return t=t||[],e.extend(t,e.fn),t.selector=r||"",t.__Z=!0,t},isZ:function(t){return"array"===e.type(t)&&"__Z"in t}});try{getComputedStyle(void 0)}catch(t){var r=getComputedStyle;window.getComputedStyle=function(e,t){try{return r(e,t)}catch(i){return null}}}}(r),function(e){e.Callbacks=function(t){t=e.extend({},t);var r,i,o,n,a,s,l=[],c=!t.once&&[],h=function(e){for(r=t.memory&&e,i=!0,s=n||0,n=0,a=l.length,o=!0;l&&a>s;++s)if(l[s].apply(e[0],e[1])===!1&&t.stopOnFalse){r=!1;break}o=!1,l&&(c?c.length&&h(c.shift()):r?l.length=0:u.disable())},u={add:function(){if(l){var i=l.length,s=function(r){e.each(r,function(e,r){"function"==typeof r?t.unique&&u.has(r)||l.push(r):r&&r.length&&"string"!=typeof r&&s(r)})};s(arguments),o?a=l.length:r&&(n=i,h(r))}return this},remove:function(){return l&&e.each(arguments,function(t,r){for(var i;(i=e.inArray(r,l,i))>-1;)l.splice(i,1),o&&(a>=i&&--a,s>=i&&--s)}),this},has:function(t){return!(!l||!(t?e.inArray(t,l)>-1:l.length))},empty:function(){return a=l.length=0,this},disable:function(){return l=c=r=void 0,this},disabled:function(){return!l},lock:function(){return c=void 0,r||u.disable(),this},locked:function(){return!c},fireWith:function(e,t){return!l||i&&!c||(t=t||[],t=[e,t.slice?t.slice():t],o?c.push(t):h(t)),this},fire:function(){return u.fireWith(this,arguments)},fired:function(){return!!i}};return u}}(r),function(e){function t(r){var i=[["resolve","done",e.Callbacks({once:1,memory:1}),"resolved"],["reject","fail",e.Callbacks({once:1,memory:1}),"rejected"],["notify","progress",e.Callbacks({memory:1})]],o="pending",n={state:function(){return o},always:function(){return a.done(arguments).fail(arguments),this},then:function(){var r=arguments;return t(function(t){e.each(i,function(i,o){var s=e.isFunction(r[i])&&r[i];a[o[1]](function(){var r=s&&s.apply(this,arguments);if(r&&e.isFunction(r.promise))r.promise().done(t.resolve).fail(t.reject).progress(t.notify);else{var i=this===n?t.promise():this,a=s?[r]:arguments;t[o[0]+"With"](i,a)}})}),r=null}).promise()},promise:function(t){return null!=t?e.extend(t,n):n}},a={};return e.each(i,function(e,t){var r=t[2],s=t[3];n[t[1]]=r.add,s&&r.add(function(){o=s},i[1^e][2].disable,i[2][2].lock),a[t[0]]=function(){return a[t[0]+"With"](this===a?n:this,arguments),this},a[t[0]+"With"]=r.fireWith}),n.promise(a),r&&r.call(a,a),a}var r=Array.prototype.slice;e.when=function(i){var o,n,a,s=r.call(arguments),l=s.length,c=0,h=1!==l||i&&e.isFunction(i.promise)?l:0,u=1===h?i:t(),d=function(e,t,i){return function(n){t[e]=this,i[e]=arguments.length>1?r.call(arguments):n,i===o?u.notifyWith(t,i):--h||u.resolveWith(t,i)}};if(l>1)for(o=new Array(l),n=new Array(l),a=new Array(l);l>c;++c)s[c]&&e.isFunction(s[c].promise)?s[c].promise().done(d(c,a,s)).fail(u.reject).progress(d(c,n,o)):--h;return h||u.resolveWith(a,s),u.promise()},e.Deferred=t}(r),e.exports=r},function(e,t,r){var i=r(446),o=r(142),n=new o({v5:!0}),a=r(140),s=a("script").last().attr("src");s=s.substring(0,s.lastIndexOf("/"));var l={},c=r(42);r(169),l.render=function(e,t,r){var o={};if(l.configJSON){var n=i(["body[][id=?]",t],{data:l.configJSON}).value;o=r?i(["layout[id=?]",r],{data:n}).value:n.layout[0]}if(l.chartInstances&&l.chartInstances[e])l.chartInstances[e].setOption(o);else if(e&&document.getElementById(e)){var a,s=l.configJSON.head.theme;a=s?l.chart.init(document.getElementById(e),s):l.chart.init(document.getElementById(e)),a.setOption(o,!0),l.chartInstances=l.chartInstances||{},l.chartInstances[e]=a,l.currentInstance=a}else console.log("渲染DOM节点不存在");return l},l.dispose=function(e){e?(l.chart.dispose(document.getElementById(e)),delete l.chartInstances[e]):(l.chart.dispose(),delete l.chartInstances)},l.registerAction=function(e,t){return l.currentInstance?l.currentInstance.on(e,t):console.log("图表实例未创建"),l},l.init=function(e){var t=r(431),i=r(430),o=r(457),h=n.compile(t),u={}; "string"===o(e)?u=i.parse(e):"object"===o(e)&&(u=e);var d=h(u),f=[];if(!d)return console.group("配置文件校验失败: "),console.log(h.errors[0]),console.groupEnd(),null;if("echarts"==u.head.engine&&(l.chart=c),u.head.useMap){var p=["world","china","china-cities","安徽","澳门","北京","重庆","福建","甘肃","广东","广西","贵州","海南","河北","黑龙江","河南","湖北","湖南","江苏","江西","吉林","辽宁","内蒙古","宁夏","青海","山东","上海","山西","陕西","四川","天津","香港","新疆","西藏","云南","浙江"],m=["world.json","china.json","china-cities.json","province/anhui.json","province/aomen.json","province/beijing.json","province/chongqing.json","province/fujian.json","province/gansu.json","province/guangdong.json","province/guangxi.json","province/guizhou.json","province/hainan.json","province/hebei.json","province/heilongjiang.json","province/henan.json","province/hubei.json","province/hunan.json","province/jiangsu.json","province/jiangxi.json","province/jilin.json","province/liaoning.json","province/neimenggu.json","province/ningxia.json","province/qinghai.json","province/shandong.json","province/shanghai.json","province/shanxi.json","province/shanxi1.json","province/sichuan.json","province/tianjin.json","province/xianggang.json","province/xinjiang.json","province/xizang.json","province/yunnan.json","province/zhejiang.json"];m.forEach(function(e,t){f.push(a.ajax({url:s+"/map/json/"+e,dataType:"json",async:!1}).done(function(e){l.chart.registerMap(p[t],e)}))}),a.when.apply(a,f).then(function(){console.log("注册地图完成")})}var g=["chalk","dark","essos","infographic","macarons","purple-passion","roma","shine","vintage","walden","westeros","wonderland"];return l.chart.theme={},g.forEach(function(e,t){var i=r(461)("./"+e+".json");l.chart.registerTheme(e,i),l.chart.theme[e]=i}),console.log("engine初始化完成!"),l.configJSON=u,l},e.exports=l},function(e,t,r){"use strict";function i(e){return v.test(e)}function o(e){function t(e,t){var r;if("string"==typeof e){if(r=C(e),!r)throw new Error('no schema with key or ref "'+e+'"')}else{var i=P(e);r=i.validate||L(i)}var o=r(t);return r.$async===!0?"*"==N._opts.async?m(o):o:(N.errors=r.errors,o)}function x(e,t){var r=P(e,void 0,t);return r.validate||L(r)}function b(e,t,r,i){if(Array.isArray(e))for(var o=0;o=1&&12>=r&&i>=1&&i<=m[r]}function n(e,t){var r=e.match(g);if(!r)return!1;var i=r[1],o=r[2],n=r[3],a=r[5];return 23>=i&&59>=o&&59>=n&&(!t||a)}function a(e){var t=e.split(S);return 2==t.length&&o(t[0])&&n(t[1],!0)}function s(e){return e.length<=255&&v.test(e)}function l(e){return w.test(e)&&y.test(e)}function c(e){try{return new RegExp(e),!0}catch(t){return!1}}function h(e,t){return e&&t?e>t?1:t>e?-1:e===t?0:void 0:void 0}function u(e,t){return e&&t&&(e=e.match(g),t=t.match(g),e&&t)?(e=e[1]+e[2]+e[3]+(e[4]||""),t=t[1]+t[2]+t[3]+(t[4]||""),e>t?1:t>e?-1:e===t?0:void 0):void 0}function d(e,t){if(e&&t){e=e.split(S),t=t.split(S);var r=h(e[0],t[0]);if(void 0!==r)return r||u(e[1],t[1])}}var f=r(26),p=/^\d\d\d\d-(\d\d)-(\d\d)$/,m=[0,31,29,31,30,31,30,31,31,30,31,30,31],g=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d:\d\d)?$/i,v=/^[a-z](?:(?:[-0-9a-z]{0,61})?[0-9a-z])?(\.[a-z](?:(?:[-0-9a-z]{0,61})?[0-9a-z])?)*$/i,y=/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@\/?]|%[0-9a-f]{2})*)?(?:\#(?:[a-z0-9\-._~!$&'()*+,;=:@\/?]|%[0-9a-f]{2})*)?$/i,x=/^(?:urn\:uuid\:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,b=/^(?:\/(?:[^~\/]|~0|~1)+)*(?:\/)?$|^\#(?:\/(?:[a-z0-9_\-\.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)+)*(?:\/)?$/i,_=/^(?:0|[1-9][0-9]*)(?:\#|(?:\/(?:[^~\/]|~0|~1)+)*(?:\/)?)$/;e.exports=i,i.fast={date:/^\d\d\d\d-[0-1]\d-[0-3]\d$/,time:/^[0-2]\d:[0-5]\d:[0-5]\d(?:\.\d+)?(?:z|[+-]\d\d:\d\d)?$/i,"date-time":/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s][0-2]\d:[0-5]\d:[0-5]\d(?:\.\d+)?(?:z|[+-]\d\d:\d\d)$/i,uri:/^(?:[a-z][a-z0-9+-.]*)?(?:\:|\/)\/?[^\s]*$/i,email:/^[a-z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i,hostname:v,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:c,uuid:x,"json-pointer":b,"relative-json-pointer":_},i.full={date:o,time:n,"date-time":a,uri:l,email:/^[a-z0-9!#$%&'*+\/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&''*+\/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:s,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:c,uuid:x,"json-pointer":b,"relative-json-pointer":_},i.compare={date:h,time:u,"date-time":d};var S=/t|\s/i,w=/\/|\:/},function(module,exports,__webpack_require__){"use strict";function compile(schema,root,localRefs,baseId){function callValidate(){var e=compilation.validate,t=e.apply(null,arguments);return callValidate.errors=e.errors,t}function localCompile(_schema,_root,localRefs,baseId){var isRoot=!_root||_root&&_root.schema==_schema;if(_root.schema!=root.schema)return compile.call(self,_schema,_root,localRefs,baseId);var $async=_schema.$async===!0;$async&&!opts.transpile&&async.setup(opts);var sourceCode=validateGenerator({isTop:!0,schema:_schema,isRoot:isRoot,baseId:baseId,root:_root,schemaPath:"",errSchemaPath:"#",errorPath:'""',RULES:RULES,validate:validateGenerator,util:util,resolve:resolve,resolveRef:resolveRef,usePattern:usePattern,useDefault:useDefault,useCustomRule:useCustomRule,opts:opts,formats:formats,self:self});sourceCode=vars(refVal,refValCode)+vars(patterns,patternCode)+vars(defaults,defaultCode)+vars(customRules,customRuleCode)+sourceCode,opts.beautify&&(beautify?sourceCode=beautify(sourceCode,opts.beautify):console.error('"npm install js-beautify" to use beautify option'));var validate,validateCode,transpile=opts._transpileFunc;try{validateCode=$async&&transpile?transpile(sourceCode):sourceCode,eval(validateCode),refVal[0]=validate}catch(e){throw console.error("Error compiling schema, function code:",validateCode),e}return validate.schema=_schema,validate.errors=null,validate.refs=refs,validate.refVal=refVal,validate.root=isRoot?validate:_root,$async&&(validate.$async=!0),validate.sourceCode=sourceCode,validate}function resolveRef(e,t,r){t=resolve.url(e,t);var i,o,n=refs[t];if(void 0!==n)return i=refVal[n],o="refVal["+n+"]",resolvedRef(i,o);if(!r&&root.refs){var a=root.refs[t];if(void 0!==a)return i=root.refVal[a],o=addLocalRef(t,i),resolvedRef(i,o)}o=addLocalRef(t);var s=resolve.call(self,localCompile,root,t);if(!s){var l=localRefs&&localRefs[t];l&&(s=resolve.inlineRef(l,opts.inlineRefs)?l:compile.call(self,l,root,localRefs,e))}return s?(replaceLocalRef(t,s),resolvedRef(s,o)):void 0}function addLocalRef(e,t){var r=refVal.length;return refVal[r]=t,refs[e]=r,"refVal"+r}function replaceLocalRef(e,t){var r=refs[e];refVal[r]=t}function resolvedRef(e,t){return"object"==typeof e?{code:t,schema:e,inline:!0}:{code:t,$async:e&&e.$async}}function usePattern(e){var t=patternsHash[e];return void 0===t&&(t=patternsHash[e]=patterns.length,patterns[t]=e),"pattern"+t}function useDefault(e){switch(typeof e){case"boolean":case"number":return""+e;case"string":return util.toQuotedString(e);case"object":if(null===e)return"null";var t=stableStringify(e),r=defaultsHash[t];return void 0===r&&(r=defaultsHash[t]=defaults.length,defaults[r]=e),"default"+r}}function useCustomRule(e,t,r,i){var o=e.definition.validateSchema;if(o&&self._opts.validateSchema!==!1){var n=o(t);if(!n){var a="keyword schema is invalid: "+self.errorsText(o.errors);if("log"!=self._opts.validateSchema)throw new Error(a);console.error(a)}}var s,l=e.definition.compile,c=e.definition.inline,h=e.definition.macro;l?s=l.call(self,t,r):h?(s=h.call(self,t,r),opts.validateSchema!==!1&&self.validateSchema(s,!0)):s=c?c.call(self,i,e.keyword,t,r):e.definition.validate;var u=customRules.length;return customRules[u]=s,{code:"customRule"+u,validate:s}}var self=this,opts=this._opts,refVal=[void 0],refs={},patterns=[],patternsHash={},defaults=[],defaultsHash={},customRules=[];root=root||{schema:schema,refVal:refVal,refs:refs};var c=checkCompiling.call(this,schema,root,baseId),compilation=this._compilations[c.index];if(c.compiling)return compilation.callValidate=callValidate;var formats=this._formats,RULES=this.RULES;try{var v=localCompile(schema,root,localRefs,baseId);compilation.validate=v;var cv=compilation.callValidate;return cv&&(cv.schema=v.schema,cv.errors=null,cv.refs=v.refs,cv.refVal=v.refVal,cv.root=v.root,cv.$async=v.$async,cv.sourceCode=v.sourceCode),v}finally{endCompiling.call(this,schema,root,baseId)}}function checkCompiling(e,t,r){var i=compIndex.call(this,e,t,r);return i>=0?{index:i,compiling:!0}:(i=this._compilations.length,this._compilations[i]={schema:e,root:t,baseId:r},{index:i,compiling:!1})}function endCompiling(e,t,r){var i=compIndex.call(this,e,t,r);i>=0&&this._compilations.splice(i,1)}function compIndex(e,t,r){for(var i=0;i",C="result"+o,M=e.opts.v5&&a.$data;if(M?(i+=" var schema"+o+" = "+e.util.getData(a.$data,n,e.dataPathArr)+"; ",y="schema"+o):y=a,S){var A=e.util.getData(_.$data,n,e.dataPathArr),I="exclusive"+o,T="op"+o,P="' + "+T+" + '";i+=" var schemaExcl"+o+" = "+A+"; ",A="schemaExcl"+o,i+=" if (typeof "+A+" != 'boolean' && "+A+" !== undefined) { "+u+" = false; ";var r=b,L=L||[];L.push(i),i="",e.createErrors!==!1?(i+=" { keyword: '"+(r||"_formatExclusiveLimit")+"' , dataPath: (dataPath || '') + "+e.errorPath+' , schemaPath: "'+l+'" , params: {} ',e.opts.messages!==!1&&(i+=" , message: '"+b+" should be boolean' "),e.opts.verbose&&(i+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),i+=" } "):i+=" {} ";var k=i;i=L.pop(),i+=!e.compositeRule&&c?e.async?" throw new ValidationError(["+k+"]); ":" validate.errors = ["+k+"]; return false; ":" var err = "+k+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } ",c&&(p+="}",i+=" else { "),M&&(i+=" if ("+y+" === undefined) "+u+" = true; else if (typeof "+y+" != 'string') "+u+" = false; else { ",p+="}"),f&&(i+=" if (!"+v+") "+u+" = true; else { ",p+="}"),i+=" var "+C+" = "+v+"("+h+", ",i+=M?""+y:""+e.util.toQuotedString(a),i+=" ); if ("+C+" === undefined) "+u+" = false; var "+I+" = "+A+" === true; if ("+u+" === undefined) { "+u+" = "+I+" ? "+C+" "+w+" 0 : "+C+" "+w+"= 0; } if (!"+u+") var op"+o+" = "+I+" ? '"+w+"' : '"+w+"=';"}else{var I=_===!0,P=w;I||(P+="=");var T="'"+P+"'";M&&(i+=" if ("+y+" === undefined) "+u+" = true; else if (typeof "+y+" != 'string') "+u+" = false; else { ",p+="}"),f&&(i+=" if (!"+v+") "+u+" = true; else { ",p+="}"),i+=" var "+C+" = "+v+"("+h+", ",i+=M?""+y:""+e.util.toQuotedString(a),i+=" ); if ("+C+" === undefined) "+u+" = false; if ("+u+" === undefined) "+u+" = "+C+" "+w,I||(i+="="),i+=" 0;"}i+=""+p+"if (!"+u+") { ";var r=t,L=L||[];L.push(i),i="",e.createErrors!==!1?(i+=" { keyword: '"+(r||"_formatLimit")+"' , dataPath: (dataPath || '') + "+e.errorPath+' , schemaPath: "'+l+'" , params: { comparison: '+T+", limit: ",i+=M?""+y:""+e.util.toQuotedString(a),i+=" , exclusive: "+I+" } ",e.opts.messages!==!1&&(i+=" , message: 'should be "+P+' "',i+=M?"' + "+y+" + '":""+e.util.escapeQuotes(a),i+="\"' "),e.opts.verbose&&(i+=" , schema: ",i+=M?"validate.schema"+s:""+e.util.toQuotedString(a),i+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),i+=" } "):i+=" {} ";var k=i;return i=L.pop(),i+=!e.compositeRule&&c?e.async?" throw new ValidationError(["+k+"]); ":" validate.errors = ["+k+"]; return false; ":" var err = "+k+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+="}"}},function(e,t){"use strict";e.exports=function(e,t){var r=" ",i=e.schema[t],o=e.schemaPath+"."+t,n=e.errSchemaPath+"/"+t,a=!e.opts.allErrors,s=e.util.copy(e),l="";s.level++;var c=s.baseId,h=i;if(h)for(var u,d=-1,f=h.length-1;f>d;)u=h[d+=1],e.util.schemaHasRules(u,e.RULES.all)&&(s.schema=u,s.schemaPath=o+"["+d+"]",s.errSchemaPath=n+"/"+d,r+=" "+e.validate(s)+" ",s.baseId=c,a&&(r+=" if (valid"+s.level+") { ",l+="}"));return a&&(r+=" "+l.slice(0,-1)),r=e.util.cleanUpCode(r)}},function(e,t){"use strict";e.exports=function(e,t){var r,i=" ",o=e.level,n=e.dataLevel,a=e.schema[t],s=e.schemaPath+"."+t,l=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,h="data"+(n||""),u="valid"+o,d="errs__"+o,f=e.util.copy(e),p="";f.level++;var m=a.every(function(t){return e.util.schemaHasRules(t,e.RULES.all)});if(m){var g=f.baseId;i+=" var "+d+" = errors; var "+u+" = false; ";var v=e.compositeRule;e.compositeRule=f.compositeRule=!0;var y=a;if(y)for(var x,b=-1,_=y.length-1;_>b;)x=y[b+=1],f.schema=x,f.schemaPath=s+"["+b+"]",f.errSchemaPath=l+"/"+b,i+=" "+e.validate(f)+" ",f.baseId=g,i+=" "+u+" = "+u+" || valid"+f.level+"; if (!"+u+") { ",p+="}";e.compositeRule=f.compositeRule=v,i+=" "+p+" if (!"+u+") { var err = ",e.createErrors!==!1?(i+=" { keyword: '"+(r||"anyOf")+"' , dataPath: (dataPath || '') + "+e.errorPath+' , schemaPath: "'+l+'" , params: {} ',e.opts.messages!==!1&&(i+=" , message: 'should match some schema in anyOf' "),e.opts.verbose&&(i+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } else { errors = "+d+"; if (vErrors !== null) { if ("+d+") vErrors.length = "+d+"; else vErrors = null; } ",e.opts.allErrors&&(i+=" } "),i=e.util.cleanUpCode(i)}else c&&(i+=" if (true) { ");return i}},function(e,t){"use strict";e.exports=function(e,t){var r,i,o=" ",n=e.level,a=e.dataLevel,s=e.schema[t],l=e.schemaPath+"."+t,c=e.errSchemaPath+"/"+t,h=!e.opts.allErrors,u="data"+(a||""),d="valid"+n,f=e.opts.v5&&s.$data;f?(o+=" var schema"+n+" = "+e.util.getData(s.$data,a,e.dataPathArr)+"; ",i="schema"+n):i=s,f||(o+=" var schema"+n+" = validate.schema"+l+";"),o+="var "+d+" = equal("+u+", schema"+n+"); if (!"+d+") { ";var p=p||[];p.push(o),o="",e.createErrors!==!1?(o+=" { keyword: '"+(r||"constant")+"' , dataPath: (dataPath || '') + "+e.errorPath+' , schemaPath: "'+c+'" , params: {} ',e.opts.messages!==!1&&(o+=" , message: 'should be equal to constant' "),e.opts.verbose&&(o+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),o+=" } "):o+=" {} ";var m=o;return o=p.pop(),o+=!e.compositeRule&&h?e.async?" throw new ValidationError(["+m+"]); ":" validate.errors = ["+m+"]; return false; ":" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",o+=" }"}},function(e,t){"use strict";e.exports=function(e,t){var r,i,o=" ",n=e.level,a=e.dataLevel,s=e.schema[t],l=e.schemaPath+"."+t,c=e.errSchemaPath+"/"+t,h=!e.opts.allErrors,u="data"+(a||""),d="errs__"+n,f=e.opts.v5&&s.$data;f?(o+=" var schema"+n+" = "+e.util.getData(s.$data,a,e.dataPathArr)+"; ",i="schema"+n):i=s;var p,m,g,v,y,x=this,b="definition"+n,_=x.definition;if(_.validate,f&&_.$data){y="keywordValidate"+n;var S=_.validateSchema;o+=" var "+b+" = RULES.custom['"+t+"'].definition; var "+y+" = "+b+".validate;"}else v=e.useCustomRule(x,s,e.schema,e),i="validate.schema"+l,y=v.code,p=_.compile,m=_.inline,g=_.macro;var w=y+".errors",C="i"+n,M="ruleErr"+n,A=_.async;if(A&&!e.async)throw new Error("async keyword in sync schema");if(m||g||(o+=""+w+" = null;"),o+="var "+d+" = errors;var valid"+n+";",m&&_.statements)o+=" "+v.validate;else if(g){var I=e.util.copy(e);I.level++,I.schema=v.validate,I.schemaPath="";var T=e.compositeRule;e.compositeRule=I.compositeRule=!0;var P=e.validate(I).replace(/validate\.schema/g,y);e.compositeRule=I.compositeRule=T,o+=" "+P}else if(!m){var L=L||[];L.push(o),o="",o+=" "+y+".call( ",o+=e.opts.passContext?"this":"self",o+=p||_.schema===!1?" , "+u+" ":" , "+i+" , "+u+" , validate.schema"+e.schemaPath+" ",o+=" , (dataPath || '')",'""'!=e.errorPath&&(o+=" + "+e.errorPath),o+=a?" , data"+(a-1||"")+" , "+e.dataPathArr[a]+" ":" , parentData , parentDataProperty ",o+=" ) ";var k=o;o=L.pop(),_.errors!==!1&&(A?(w="customErrors"+n,o+=" var "+w+" = null; try { valid"+n+" = "+e.yieldAwait+k+"; } catch (e) { valid"+n+" = false; if (e instanceof ValidationError) "+w+" = e.errors; else throw e; } "):o+=" "+y+".errors = null; ")}o+="if (",S&&(o+=" !"+b+".validateSchema("+i+") || "),o+=" ! ",o+=m?_.statements?" valid"+n+" ":" ("+v.validate+") ":g?" valid"+I.level+" ":A?_.errors===!1?" ("+e.yieldAwait+k+") ":" valid"+n+" ":" "+k+" ",o+=") { ",r=x.keyword;var L=L||[];L.push(o),o="";var L=L||[];L.push(o),o="",e.createErrors!==!1?(o+=" { keyword: '"+(r||"custom")+"' , dataPath: (dataPath || '') + "+e.errorPath+' , schemaPath: "'+c+"\" , params: { keyword: '"+x.keyword+"' } ",e.opts.messages!==!1&&(o+=" , message: 'should pass \""+x.keyword+"\" keyword validation' "),e.opts.verbose&&(o+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),o+=" } "):o+=" {} ";var E=o;o=L.pop(),o+=!e.compositeRule&&h?e.async?" throw new ValidationError(["+E+"]); ":" validate.errors = ["+E+"]; return false; ":" var err = "+E+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";var D=o;return o=L.pop(),m?_.errors?"full"!=_.errors&&(o+=" for (var "+C+"="+d+"; "+C+"S;){_=b[S+=1],S&&(i+=" || ");var C=e.util.getProperty(_);i+=" ( "+h+C+" === undefined && (missing"+o+" = "+e.util.toQuotedString(e.opts.jsonPointers?_:C)+") ) "}i+=")) { ";var M="missing"+o,A="' + "+M+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.opts.jsonPointers?e.util.getPathExpr(y,M,!0):y+" + "+M);var I=I||[];I.push(i),i="",e.createErrors!==!1?(i+=" { keyword: '"+(r||"dependencies")+"' , dataPath: (dataPath || '') + "+e.errorPath+' , schemaPath: "'+l+"\" , params: { property: '"+e.util.escapeQuotes(x)+"', missingProperty: '"+A+"', depsCount: "+v.length+", deps: '"+e.util.escapeQuotes(1==v.length?v[0]:v.join(", "))+"' } ",e.opts.messages!==!1&&(i+=" , message: 'should have ",i+=1==v.length?"property "+e.util.escapeQuotes(v[0]):"properties "+e.util.escapeQuotes(v.join(", ")),i+=" when property "+e.util.escapeQuotes(x)+" is present' "),e.opts.verbose&&(i+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),i+=" } "):i+=" {} ";var T=i;i=I.pop(),i+=!e.compositeRule&&c?e.async?" throw new ValidationError(["+T+"]); ":" validate.errors = ["+T+"]; return false; ":" var err = "+T+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else{i+=" ) { ";var P=v;if(P)for(var L,k=-1,E=P.length-1;E>k;){L=P[k+=1];var C=e.util.getProperty(L),A=e.util.escapeQuotes(L);e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(y,L,e.opts.jsonPointers)),i+=" if ("+h+C+" === undefined) { var err = ",e.createErrors!==!1?(i+=" { keyword: '"+(r||"dependencies")+"' , dataPath: (dataPath || '') + "+e.errorPath+' , schemaPath: "'+l+"\" , params: { property: '"+e.util.escapeQuotes(x)+"', missingProperty: '"+A+"', depsCount: "+v.length+", deps: '"+e.util.escapeQuotes(1==v.length?v[0]:v.join(", "))+"' } ",e.opts.messages!==!1&&(i+=" , message: 'should have ", i+=1==v.length?"property "+e.util.escapeQuotes(v[0]):"properties "+e.util.escapeQuotes(v.join(", ")),i+=" when property "+e.util.escapeQuotes(x)+" is present' "),e.opts.verbose&&(i+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}i+=" } ",c&&(f+="}",i+=" else { ")}e.errorPath=y;var D=d.baseId;for(var x in p){var g=p[x];e.util.schemaHasRules(g,e.RULES.all)&&(i+=" valid"+d.level+" = true; if ("+h+"['"+x+"'] !== undefined) { ",d.schema=g,d.schemaPath=s+e.util.getProperty(x),d.errSchemaPath=l+"/"+e.util.escapeFragment(x),i+=" "+e.validate(d)+" ",d.baseId=D,i+=" } ",c&&(i+=" if (valid"+d.level+") { ",f+="}"))}return c&&(i+=" "+f+" if ("+u+" == errors) {"),i=e.util.cleanUpCode(i)}},function(e,t){"use strict";e.exports=function(e,t){var r,i,o=" ",n=e.level,a=e.dataLevel,s=e.schema[t],l=e.schemaPath+"."+t,c=e.errSchemaPath+"/"+t,h=!e.opts.allErrors,u="data"+(a||""),d="valid"+n,f=e.opts.v5&&s.$data;f?(o+=" var schema"+n+" = "+e.util.getData(s.$data,a,e.dataPathArr)+"; ",i="schema"+n):i=s;var p="i"+n;f||(o+=" var schema"+n+" = validate.schema"+l+";"),o+="var "+d+";",f&&(o+=" if (schema"+n+" === undefined) "+d+" = true; else if (!Array.isArray(schema"+n+")) "+d+" = false; else {"),o+=""+d+" = false;for (var "+p+"=0; "+p+"C;)if(w=S[C+=1],e.util.schemaHasRules(w,e.RULES.all)){i+=" valid"+f.level+" = true; if ("+h+".length > "+C+") { ";var A=h+"["+C+"]";f.schema=w,f.schemaPath=s+"["+C+"]",f.errSchemaPath=l+"/"+C,f.errorPath=e.util.getPathExpr(e.errorPath,C,e.opts.jsonPointers,!0),f.dataPathArr[m]=C;var I=e.validate(f);f.baseId=v,i+=e.util.varOccurences(I,g)<2?" "+e.util.varReplace(I,g,A)+" ":" var "+g+" = "+A+"; "+I+" ",i+=" } ",c&&(i+=" if (valid"+f.level+") { ",p+="}")}if("object"==typeof y&&e.util.schemaHasRules(y,e.RULES.all)){f.schema=y,f.schemaPath=e.schemaPath+".additionalItems",f.errSchemaPath=e.errSchemaPath+"/additionalItems",i+=" valid"+f.level+" = true; if ("+h+".length > "+a.length+") { for (var i"+o+" = "+a.length+"; i"+o+" < "+h+".length; i"+o+"++) { ",f.errorPath=e.util.getPathExpr(e.errorPath,"i"+o,e.opts.jsonPointers,!0);var A=h+"[i"+o+"]";f.dataPathArr[m]="i"+o;var I=e.validate(f);f.baseId=v,i+=e.util.varOccurences(I,g)<2?" "+e.util.varReplace(I,g,A)+" ":" var "+g+" = "+A+"; "+I+" ",c&&(i+=" if (!valid"+f.level+") break; "),i+=" } } ",c&&(i+=" if (valid"+f.level+") { ",p+="}")}}else if(e.util.schemaHasRules(a,e.RULES.all)){f.schema=a,f.schemaPath=s,f.errSchemaPath=l,i+=" for (var i"+o+" = 0; i"+o+" < "+h+".length; i"+o+"++) { ",f.errorPath=e.util.getPathExpr(e.errorPath,"i"+o,e.opts.jsonPointers,!0);var A=h+"[i"+o+"]";f.dataPathArr[m]="i"+o;var I=e.validate(f);f.baseId=v,i+=e.util.varOccurences(I,g)<2?" "+e.util.varReplace(I,g,A)+" ":" var "+g+" = "+A+"; "+I+" ",c&&(i+=" if (!valid"+f.level+") break; "),i+=" } ",c&&(i+=" if (valid"+f.level+") { ",p+="}")}return c&&(i+=" "+p+" if ("+d+" == errors) {"),i=e.util.cleanUpCode(i)}},function(e,t){"use strict";e.exports=function(e,t){var r,i,o=" ",n=e.level,a=e.dataLevel,s=e.schema[t],l=e.schemaPath+"."+t,c=e.errSchemaPath+"/"+t,h=!e.opts.allErrors,u="data"+(a||""),d=e.opts.v5&&s.$data;d?(o+=" var schema"+n+" = "+e.util.getData(s.$data,a,e.dataPathArr)+"; ",i="schema"+n):i=s,o+="var division"+n+";if (",d&&(o+=" "+i+" !== undefined && ( typeof "+i+" != 'number' || "),o+=" (division"+n+" = "+u+" / "+i+", ",o+=e.opts.multipleOfPrecision?" Math.abs(Math.round(division"+n+") - division"+n+") > 1e-"+e.opts.multipleOfPrecision+" ":" division"+n+" !== parseInt(division"+n+") ",o+=" ) ",d&&(o+=" ) "),o+=" ) { ";var f=f||[];f.push(o),o="",e.createErrors!==!1?(o+=" { keyword: '"+(r||"multipleOf")+"' , dataPath: (dataPath || '') + "+e.errorPath+' , schemaPath: "'+c+'" , params: { multipleOf: '+i+" } ",e.opts.messages!==!1&&(o+=" , message: 'should be multiple of ",o+=d?"' + "+i:""+s+"'"),e.opts.verbose&&(o+=" , schema: ",o+=d?"validate.schema"+l:""+s,o+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),o+=" } "):o+=" {} ";var p=o;return o=f.pop(),o+=!e.compositeRule&&h?e.async?" throw new ValidationError(["+p+"]); ":" validate.errors = ["+p+"]; return false; ":" var err = "+p+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",o+="} ",h&&(o+=" else { "),o}},function(e,t){"use strict";e.exports=function(e,t){var r,i=" ",o=e.level,n=e.dataLevel,a=e.schema[t],s=e.schemaPath+"."+t,l=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,h="data"+(n||""),u="errs__"+o,d=e.util.copy(e);if(d.level++,e.util.schemaHasRules(a,e.RULES.all)){d.schema=a,d.schemaPath=s,d.errSchemaPath=l,i+=" var "+u+" = errors; ";var f=e.compositeRule;e.compositeRule=d.compositeRule=!0,d.createErrors=!1;var p;d.opts.allErrors&&(p=d.opts.allErrors,d.opts.allErrors=!1),i+=" "+e.validate(d)+" ",d.createErrors=!0,p&&(d.opts.allErrors=p),e.compositeRule=d.compositeRule=f,i+=" if (valid"+d.level+") { ";var m=m||[];m.push(i),i="",e.createErrors!==!1?(i+=" { keyword: '"+(r||"not")+"' , dataPath: (dataPath || '') + "+e.errorPath+' , schemaPath: "'+l+'" , params: {} ',e.opts.messages!==!1&&(i+=" , message: 'should NOT be valid' "),e.opts.verbose&&(i+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),i+=" } "):i+=" {} ";var g=i;i=m.pop(),i+=!e.compositeRule&&c?e.async?" throw new ValidationError(["+g+"]); ":" validate.errors = ["+g+"]; return false; ":" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } else { errors = "+u+"; if (vErrors !== null) { if ("+u+") vErrors.length = "+u+"; else vErrors = null; } ",e.opts.allErrors&&(i+=" } ")}else i+=" var err = ",e.createErrors!==!1?(i+=" { keyword: '"+(r||"not")+"' , dataPath: (dataPath || '') + "+e.errorPath+' , schemaPath: "'+l+'" , params: {} ',e.opts.messages!==!1&&(i+=" , message: 'should NOT be valid' "),e.opts.verbose&&(i+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",c&&(i+=" if (false) { ");return i}},function(e,t){"use strict";e.exports=function(e,t){var r,i=" ",o=e.level,n=e.dataLevel,a=e.schema[t],s=e.schemaPath+"."+t,l=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,h="data"+(n||""),u="valid"+o,d="errs__"+o,f=e.util.copy(e),p="";f.level++,i+="var "+d+" = errors;var prevValid"+o+" = false;var "+u+" = false;";var m=f.baseId,g=e.compositeRule;e.compositeRule=f.compositeRule=!0;var v=a;if(v)for(var y,x=-1,b=v.length-1;b>x;)y=v[x+=1],e.util.schemaHasRules(y,e.RULES.all)?(f.schema=y,f.schemaPath=s+"["+x+"]",f.errSchemaPath=l+"/"+x,i+=" "+e.validate(f)+" ",f.baseId=m):i+=" var valid"+f.level+" = true; ",x&&(i+=" if (valid"+f.level+" && prevValid"+o+") "+u+" = false; else { ",p+="}"),i+=" if (valid"+f.level+") "+u+" = prevValid"+o+" = true;";e.compositeRule=f.compositeRule=g,i+=""+p+"if (!"+u+") { ";var _=_||[];_.push(i),i="",e.createErrors!==!1?(i+=" { keyword: '"+(r||"oneOf")+"' , dataPath: (dataPath || '') + "+e.errorPath+' , schemaPath: "'+l+'" , params: {} ',e.opts.messages!==!1&&(i+=" , message: 'should match exactly one schema in oneOf' "),e.opts.verbose&&(i+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),i+=" } "):i+=" {} ";var S=i;return i=_.pop(),i+=!e.compositeRule&&c?e.async?" throw new ValidationError(["+S+"]); ":" validate.errors = ["+S+"]; return false; ":" var err = "+S+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+="} else { errors = "+d+"; if (vErrors !== null) { if ("+d+") vErrors.length = "+d+"; else vErrors = null; }",e.opts.allErrors&&(i+=" } "),i}},function(e,t){"use strict";e.exports=function(e,t){var r,i,o=" ",n=e.level,a=e.dataLevel,s=e.schema[t],l=e.schemaPath+"."+t,c=e.errSchemaPath+"/"+t,h=!e.opts.allErrors,u="data"+(a||""),d=e.opts.v5&&s.$data;d?(o+=" var schema"+n+" = "+e.util.getData(s.$data,a,e.dataPathArr)+"; ",i="schema"+n):i=s;var f=d?"(new RegExp("+i+"))":e.usePattern(s);o+="if ( ",d&&(o+=" ("+i+" !== undefined && typeof "+i+" != 'string') || "),o+=" !"+f+".test("+u+") ) { ";var p=p||[];p.push(o),o="",e.createErrors!==!1?(o+=" { keyword: '"+(r||"pattern")+"' , dataPath: (dataPath || '') + "+e.errorPath+' , schemaPath: "'+c+'" , params: { pattern: ',o+=d?""+i:""+e.util.toQuotedString(s),o+=" } ",e.opts.messages!==!1&&(o+=" , message: 'should match pattern \"",o+=d?"' + "+i+" + '":""+e.util.escapeQuotes(s),o+="\"' "),e.opts.verbose&&(o+=" , schema: ",o+=d?"validate.schema"+l:""+e.util.toQuotedString(s),o+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),o+=" } "):o+=" {} ";var m=o;return o=p.pop(),o+=!e.compositeRule&&h?e.async?" throw new ValidationError(["+m+"]); ":" validate.errors = ["+m+"]; return false; ":" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",o+="} ",h&&(o+=" else { "),o}},function(e,t){"use strict";e.exports=function(e,t){var r,i=" ",o=e.level,n=e.dataLevel,a=e.schema[t],s=e.schemaPath+"."+t,l=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,h="data"+(n||""),u="valid"+o,d="key"+o,f="patternMatched"+o,p="",m=e.opts.ownProperties;i+="var "+u+" = true;";var g=a;if(g)for(var v,y=-1,x=g.length-1;x>y;){v=g[y+=1],i+=" var "+f+" = false; for (var "+d+" in "+h+") { ",m&&(i+=" if (!Object.prototype.hasOwnProperty.call("+h+", "+d+")) continue; "),i+=" "+f+" = "+e.usePattern(v)+".test("+d+"); if ("+f+") break; } ";var b=e.util.escapeQuotes(v);i+=" if (!"+f+") { "+u+" = false; var err = ",e.createErrors!==!1?(i+=" { keyword: '"+(r||"patternRequired")+"' , dataPath: (dataPath || '') + "+e.errorPath+' , schemaPath: "'+l+"\" , params: { missingPattern: '"+b+"' } ",e.opts.messages!==!1&&(i+=" , message: 'should have property matching pattern \\'"+b+"\\'' "),e.opts.verbose&&(i+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),i+=" } "):i+=" {} ",i+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } ",c&&(p+="}",i+=" else { ")}return i+=""+p}},function(e,t){"use strict";e.exports=function(e,t){var r,i=" ",o=e.level,n=e.dataLevel,a=e.schema[t],s=e.schemaPath+"."+t,l=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,h="data"+(n||""),u="valid"+o,d="errs__"+o,f=e.util.copy(e),p="";f.level++;var m="key"+o,g=f.dataLevel=e.dataLevel+1,v="data"+g,y=Object.keys(a||{}),x=e.schema.patternProperties||{},b=Object.keys(x),_=e.schema.additionalProperties,S=y.length||b.length,w=_===!1,C="object"==typeof _&&Object.keys(_).length,M=e.opts.removeAdditional,A=w||C||M,I=e.opts.ownProperties,T=e.baseId,P=e.schema.required;if(P&&(!e.opts.v5||!P.$data)&&P.length5)i+=" || validate.schema"+s+"["+m+"] ";else{var D=y;if(D)for(var O,R=-1,z=D.length-1;z>R;)O=D[R+=1],i+=" || "+m+" == "+e.util.toQuotedString(O)+" "}if(b.length){var V=b;if(V)for(var N,W=-1,B=V.length-1;B>W;)N=V[W+=1],i+=" || "+e.usePattern(N)+".test("+m+") "}if(e.opts.v5&&E&&E.length){var j=E;if(j)for(var G,W=-1,F=j.length-1;F>W;)G=j[W+=1],i+=" || "+e.usePattern(G)+".test("+m+") "}i+=" ); if (isAdditional"+o+") { "}if("all"==M)i+=" delete "+h+"["+m+"]; ";else{var H=e.errorPath,$="' + key"+o+" + '";if(e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(e.errorPath,"key"+o,e.opts.jsonPointers)),w)if(M)i+=" delete "+h+"["+m+"]; ";else{i+=" valid"+f.level+" = false; ";var q=l;l=e.errSchemaPath+"/additionalProperties";var Z=Z||[];Z.push(i),i="",e.createErrors!==!1?(i+=" { keyword: '"+(r||"additionalProperties")+"' , dataPath: (dataPath || '') + "+e.errorPath+' , schemaPath: "'+l+"\" , params: { additionalProperty: '"+$+"' } ",e.opts.messages!==!1&&(i+=" , message: 'should NOT have additional properties' "),e.opts.verbose&&(i+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),i+=" } "):i+=" {} ";var U=i;i=Z.pop(),i+=!e.compositeRule&&c?e.async?" throw new ValidationError(["+U+"]); ":" validate.errors = ["+U+"]; return false; ":" var err = "+U+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",l=q,c&&(i+=" break; ")}else if(C)if("failing"==M){i+=" var "+d+" = errors; ";var X=e.compositeRule;e.compositeRule=f.compositeRule=!0,f.schema=_,f.schemaPath=e.schemaPath+".additionalProperties",f.errSchemaPath=e.errSchemaPath+"/additionalProperties",f.errorPath=e.opts._errorDataPathProperty?e.errorPath:e.util.getPathExpr(e.errorPath,"key"+o,e.opts.jsonPointers);var Y=h+"[key"+o+"]";f.dataPathArr[g]="key"+o;var Q=e.validate(f);f.baseId=T,i+=e.util.varOccurences(Q,v)<2?" "+e.util.varReplace(Q,v,Y)+" ":" var "+v+" = "+Y+"; "+Q+" ",i+=" if (!valid"+f.level+") { errors = "+d+"; if (validate.errors !== null) { if (errors) validate.errors.length = errors; else validate.errors = null; } delete "+h+"["+m+"]; } ",e.compositeRule=f.compositeRule=X}else{f.schema=_,f.schemaPath=e.schemaPath+".additionalProperties",f.errSchemaPath=e.errSchemaPath+"/additionalProperties",f.errorPath=e.opts._errorDataPathProperty?e.errorPath:e.util.getPathExpr(e.errorPath,"key"+o,e.opts.jsonPointers);var Y=h+"[key"+o+"]";f.dataPathArr[g]="key"+o;var Q=e.validate(f);f.baseId=T,i+=e.util.varOccurences(Q,v)<2?" "+e.util.varReplace(Q,v,Y)+" ":" var "+v+" = "+Y+"; "+Q+" ",c&&(i+=" if (!valid"+f.level+") break; ")}e.errorPath=H}S&&(i+=" } "),i+=" } ",c&&(i+=" if (valid"+f.level+") { ",p+="}")}var J=e.opts.useDefaults&&!e.compositeRule;if(y.length){var K=y;if(K)for(var O,ee=-1,te=K.length-1;te>ee;){O=K[ee+=1];var re=a[O];if(e.util.schemaHasRules(re,e.RULES.all)){var ie=e.util.getProperty(O),Y=h+ie,oe=J&&void 0!==re["default"];f.schema=re,f.schemaPath=s+ie,f.errSchemaPath=l+"/"+e.util.escapeFragment(O),f.errorPath=e.util.getPath(e.errorPath,O,e.opts.jsonPointers),f.dataPathArr[g]=e.util.toQuotedString(O);var Q=e.validate(f);if(f.baseId=T,e.util.varOccurences(Q,v)<2){Q=e.util.varReplace(Q,v,Y);var ne=Y}else{var ne=v;i+=" var "+v+" = "+Y+"; "}if(oe)i+=" "+Q+" ";else{if(L&&L[O]){i+=" if ("+ne+" === undefined) { valid"+f.level+" = false; ";var H=e.errorPath,q=l,ae=e.util.escapeQuotes(O);e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(H,O,e.opts.jsonPointers)),l=e.errSchemaPath+"/required";var Z=Z||[];Z.push(i),i="",e.createErrors!==!1?(i+=" { keyword: '"+(r||"required")+"' , dataPath: (dataPath || '') + "+e.errorPath+' , schemaPath: "'+l+"\" , params: { missingProperty: '"+ae+"' } ",e.opts.messages!==!1&&(i+=" , message: '",i+=e.opts._errorDataPathProperty?"is a required property":"should have required property \\'"+ae+"\\'",i+="' "),e.opts.verbose&&(i+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),i+=" } "):i+=" {} ";var U=i;i=Z.pop(),i+=!e.compositeRule&&c?e.async?" throw new ValidationError(["+U+"]); ":" validate.errors = ["+U+"]; return false; ":" var err = "+U+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",l=q,e.errorPath=H,i+=" } else { "}else i+=c?" if ("+ne+" === undefined) { valid"+f.level+" = true; } else { ":" if ("+ne+" !== undefined) { ";i+=" "+Q+" } "}}c&&(i+=" if (valid"+f.level+") { ",p+="}")}}var se=b;if(se)for(var N,le=-1,ce=se.length-1;ce>le;){N=se[le+=1];var re=x[N];if(e.util.schemaHasRules(re,e.RULES.all)){f.schema=re,f.schemaPath=e.schemaPath+".patternProperties"+e.util.getProperty(N),f.errSchemaPath=e.errSchemaPath+"/patternProperties/"+e.util.escapeFragment(N),i+=" for (var "+m+" in "+h+") { ",I&&(i+=" if (!Object.prototype.hasOwnProperty.call("+h+", "+m+")) continue; "),i+=" if ("+e.usePattern(N)+".test("+m+")) { ",f.errorPath=e.util.getPathExpr(e.errorPath,"key"+o,e.opts.jsonPointers);var Y=h+"[key"+o+"]";f.dataPathArr[g]="key"+o;var Q=e.validate(f);f.baseId=T,i+=e.util.varOccurences(Q,v)<2?" "+e.util.varReplace(Q,v,Y)+" ":" var "+v+" = "+Y+"; "+Q+" ",c&&(i+=" if (!valid"+f.level+") break; "),i+=" } ",c&&(i+=" else valid"+f.level+" = true; "),i+=" } ",c&&(i+=" if (valid"+f.level+") { ",p+="}")}}if(e.opts.v5){var he=E;if(he)for(var G,ue=-1,de=he.length-1;de>ue;){G=he[ue+=1];var fe=k[G],re=fe.schema;if(e.util.schemaHasRules(re,e.RULES.all)){f.schema=re,f.schemaPath=e.schemaPath+".patternGroups"+e.util.getProperty(G)+".schema",f.errSchemaPath=e.errSchemaPath+"/patternGroups/"+e.util.escapeFragment(G)+"/schema",i+=" var pgPropCount"+o+" = 0; for (var "+m+" in "+h+") { ",I&&(i+=" if (!Object.prototype.hasOwnProperty.call("+h+", "+m+")) continue; "),i+=" if ("+e.usePattern(G)+".test("+m+")) { pgPropCount"+o+"++; ",f.errorPath=e.util.getPathExpr(e.errorPath,"key"+o,e.opts.jsonPointers);var Y=h+"[key"+o+"]";f.dataPathArr[g]="key"+o;var Q=e.validate(f);f.baseId=T,i+=e.util.varOccurences(Q,v)<2?" "+e.util.varReplace(Q,v,Y)+" ":" var "+v+" = "+Y+"; "+Q+" ",c&&(i+=" if (!valid"+f.level+") break; "),i+=" } ",c&&(i+=" else valid"+f.level+" = true; "),i+=" } ",c&&(i+=" if (valid"+f.level+") { ",p+="}");var pe=fe.minimum,me=fe.maximum;if(void 0!==pe||void 0!==me){i+=" var "+u+" = true; ";var q=l;if(void 0!==pe){var ge=pe,ve="minimum",ye="less";i+=" "+u+" = pgPropCount"+o+" >= "+pe+"; ",l=e.errSchemaPath+"/patternGroups/minimum",i+=" if (!"+u+") { ";var Z=Z||[];Z.push(i),i="",e.createErrors!==!1?(i+=" { keyword: '"+(r||"patternGroups")+"' , dataPath: (dataPath || '') + "+e.errorPath+' , schemaPath: "'+l+"\" , params: { reason: '"+ve+"', limit: "+ge+", pattern: '"+e.util.escapeQuotes(G)+"' } ",e.opts.messages!==!1&&(i+=" , message: 'should NOT have "+ye+" than "+ge+' properties matching pattern "'+e.util.escapeQuotes(G)+"\"' "),e.opts.verbose&&(i+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),i+=" } "):i+=" {} ";var U=i;i=Z.pop(),i+=!e.compositeRule&&c?e.async?" throw new ValidationError(["+U+"]); ":" validate.errors = ["+U+"]; return false; ":" var err = "+U+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } ",void 0!==me&&(i+=" else ")}if(void 0!==me){var ge=me,ve="maximum",ye="more";i+=" "+u+" = pgPropCount"+o+" <= "+me+"; ",l=e.errSchemaPath+"/patternGroups/maximum",i+=" if (!"+u+") { ";var Z=Z||[];Z.push(i),i="",e.createErrors!==!1?(i+=" { keyword: '"+(r||"patternGroups")+"' , dataPath: (dataPath || '') + "+e.errorPath+' , schemaPath: "'+l+"\" , params: { reason: '"+ve+"', limit: "+ge+", pattern: '"+e.util.escapeQuotes(G)+"' } ",e.opts.messages!==!1&&(i+=" , message: 'should NOT have "+ye+" than "+ge+' properties matching pattern "'+e.util.escapeQuotes(G)+"\"' "),e.opts.verbose&&(i+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),i+=" } "):i+=" {} ";var U=i;i=Z.pop(),i+=!e.compositeRule&&c?e.async?" throw new ValidationError(["+U+"]); ":" validate.errors = ["+U+"]; return false; ":" var err = "+U+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i+=" } "}l=q,c&&(i+=" if ("+u+") { ",p+="}")}}}}return c&&(i+=" "+p+" if ("+d+" == errors) {"),i=e.util.cleanUpCode(i)}},function(e,t){"use strict";e.exports=function(e,t){var r,i,o,n=" ",a=e.level,s=e.dataLevel,l=e.schema[t],c=e.errSchemaPath+"/"+t,h=!e.opts.allErrors,u="data"+(s||""),d="valid"+a;if("#"==l||"#/"==l)e.isRoot?(i=e.async,o="validate"):(i=e.root.schema.$async===!0,o="root.refVal[0]");else{var f=e.resolveRef(e.baseId,l,e.isRoot);if(void 0===f){var p="can't resolve reference "+l+" from id "+e.baseId;if("fail"==e.opts.missingRefs){console.log(p);var m=m||[];m.push(n),n="",e.createErrors!==!1?(n+=" { keyword: '"+(r||"$ref")+"' , dataPath: (dataPath || '') + "+e.errorPath+' , schemaPath: "'+c+"\" , params: { ref: '"+e.util.escapeQuotes(l)+"' } ",e.opts.messages!==!1&&(n+=" , message: 'can\\'t resolve reference "+e.util.escapeQuotes(l)+"' "),e.opts.verbose&&(n+=" , schema: "+e.util.toQuotedString(l)+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),n+=" } "):n+=" {} ";var g=n;n=m.pop(),n+=!e.compositeRule&&h?e.async?" throw new ValidationError(["+g+"]); ":" validate.errors = ["+g+"]; return false; ":" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",h&&(n+=" if (false) { ")}else{if("ignore"!=e.opts.missingRefs){var v=new Error(p);throw v.missingRef=e.resolve.url(e.baseId,l),v.missingSchema=e.resolve.normalizeId(e.resolve.fullPath(v.missingRef)),v}console.log(p),h&&(n+=" if (true) { ")}}else if(f.inline){var y=e.util.copy(e);y.level++,y.schema=f.schema,y.schemaPath="",y.errSchemaPath=l;var x=e.validate(y).replace(/validate\.schema/g,f.code);n+=" "+x+" ",h&&(n+=" if (valid"+y.level+") { ")}else i=f.$async===!0,o=f.code}if(o){var m=m||[];m.push(n),n="",n+=e.opts.passContext?" "+o+".call(this, ":" "+o+"( ",n+=" "+u+", (dataPath || '')",'""'!=e.errorPath&&(n+=" + "+e.errorPath),n+=s?" , data"+(s-1||"")+" , "+e.dataPathArr[s]+" ":" , parentData , parentDataProperty ",n+=") ";var b=n;if(n=m.pop(),i){if(!e.async)throw new Error("async schema referenced by sync schema");n+=" try { ",h&&(n+="var "+d+" ="),n+=" "+e.yieldAwait+" "+b+"; } catch (e) { if (!(e instanceof ValidationError)) throw e; if (vErrors === null) vErrors = e.errors; else vErrors = vErrors.concat(e.errors); errors = vErrors.length; } ",h&&(n+=" if ("+d+") { ")}else n+=" if (!"+b+") { if (vErrors === null) vErrors = "+o+".errors; else vErrors = vErrors.concat("+o+".errors); errors = vErrors.length; } ",h&&(n+=" else { ")}return n}},function(e,t){"use strict";e.exports=function(e,t){var r,i,o=" ",n=e.level,a=e.dataLevel,s=e.schema[t],l=e.schemaPath+"."+t,c=e.errSchemaPath+"/"+t,h=!e.opts.allErrors,u="data"+(a||""),d="valid"+n,f=e.opts.v5&&s.$data;if(f?(o+=" var schema"+n+" = "+e.util.getData(s.$data,a,e.dataPathArr)+"; ",i="schema"+n):i=s,!f)if(s.lengthv;){g=m[v+=1];var x=e.schema.properties[g];x&&e.util.schemaHasRules(x,e.RULES.all)||(p[p.length]=g)}}else var p=s;if(f||p.length){var b=e.errorPath,_=f||p.length>=e.opts.loopRequired;if(h)if(o+=" var missing"+n+"; ",_){f||(o+=" var schema"+n+" = validate.schema"+l+"; ");var S="i"+n,w="schema"+n+"["+S+"]",C="' + "+w+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(b,w,e.opts.jsonPointers)),o+=" var "+d+" = true; ",f&&(o+=" if (schema"+n+" === undefined) "+d+" = true; else if (!Array.isArray(schema"+n+")) "+d+" = false; else {"),o+=" for (var "+S+" = 0; "+S+" < schema"+n+".length; "+S+"++) { "+d+" = "+u+"[schema"+n+"["+S+"]] !== undefined; if (!"+d+") break; } ",f&&(o+=" } "),o+=" if (!"+d+") { ";var M=M||[];M.push(o),o="",e.createErrors!==!1?(o+=" { keyword: '"+(r||"required")+"' , dataPath: (dataPath || '') + "+e.errorPath+' , schemaPath: "'+c+"\" , params: { missingProperty: '"+C+"' } ",e.opts.messages!==!1&&(o+=" , message: '",o+=e.opts._errorDataPathProperty?"is a required property":"should have required property \\'"+C+"\\'",o+="' "),e.opts.verbose&&(o+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),o+=" } "):o+=" {} ";var A=o;o=M.pop(),o+=!e.compositeRule&&h?e.async?" throw new ValidationError(["+A+"]); ":" validate.errors = ["+A+"]; return false; ":" var err = "+A+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",o+=" } else { "}else{o+=" if ( ";var I=p;if(I)for(var T,S=-1,P=I.length-1;P>S;){T=I[S+=1],S&&(o+=" || ");var L=e.util.getProperty(T);o+=" ( "+u+L+" === undefined && (missing"+n+" = "+e.util.toQuotedString(e.opts.jsonPointers?T:L)+") ) "}o+=") { ";var w="missing"+n,C="' + "+w+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.opts.jsonPointers?e.util.getPathExpr(b,w,!0):b+" + "+w);var M=M||[];M.push(o),o="",e.createErrors!==!1?(o+=" { keyword: '"+(r||"required")+"' , dataPath: (dataPath || '') + "+e.errorPath+' , schemaPath: "'+c+"\" , params: { missingProperty: '"+C+"' } ",e.opts.messages!==!1&&(o+=" , message: '",o+=e.opts._errorDataPathProperty?"is a required property":"should have required property \\'"+C+"\\'",o+="' "),e.opts.verbose&&(o+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),o+=" } "):o+=" {} ";var A=o;o=M.pop(),o+=!e.compositeRule&&h?e.async?" throw new ValidationError(["+A+"]); ":" validate.errors = ["+A+"]; return false; ":" var err = "+A+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",o+=" } else { "}else if(_){f||(o+=" var schema"+n+" = validate.schema"+l+"; ");var S="i"+n,w="schema"+n+"["+S+"]",C="' + "+w+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(b,w,e.opts.jsonPointers)),f&&(o+=" if (schema"+n+" && !Array.isArray(schema"+n+")) { var err = ",e.createErrors!==!1?(o+=" { keyword: '"+(r||"required")+"' , dataPath: (dataPath || '') + "+e.errorPath+' , schemaPath: "'+c+"\" , params: { missingProperty: '"+C+"' } ",e.opts.messages!==!1&&(o+=" , message: '",o+=e.opts._errorDataPathProperty?"is a required property":"should have required property \\'"+C+"\\'",o+="' "),e.opts.verbose&&(o+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),o+=" } "):o+=" {} ",o+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } else if (schema"+n+" !== undefined) { "),o+=" for (var "+S+" = 0; "+S+" < schema"+n+".length; "+S+"++) { if ("+u+"[schema"+n+"["+S+"]] === undefined) { var err = ",e.createErrors!==!1?(o+=" { keyword: '"+(r||"required")+"' , dataPath: (dataPath || '') + "+e.errorPath+' , schemaPath: "'+c+"\" , params: { missingProperty: '"+C+"' } ",e.opts.messages!==!1&&(o+=" , message: '",o+=e.opts._errorDataPathProperty?"is a required property":"should have required property \\'"+C+"\\'",o+="' "),e.opts.verbose&&(o+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),o+=" } "):o+=" {} ",o+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } } ",f&&(o+=" } ")}else{var k=p;if(k)for(var E,D=-1,O=k.length-1;O>D;){E=k[D+=1];var L=e.util.getProperty(E),C=e.util.escapeQuotes(E);e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(b,E,e.opts.jsonPointers)),o+=" if ("+u+L+" === undefined) { var err = ",e.createErrors!==!1?(o+=" { keyword: '"+(r||"required")+"' , dataPath: (dataPath || '') + "+e.errorPath+' , schemaPath: "'+c+"\" , params: { missingProperty: '"+C+"' } ",e.opts.messages!==!1&&(o+=" , message: '",o+=e.opts._errorDataPathProperty?"is a required property":"should have required property \\'"+C+"\\'",o+="' "),e.opts.verbose&&(o+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),o+=" } "):o+=" {} ",o+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}e.errorPath=b}else h&&(o+=" if (true) {");return o}},function(e,t){"use strict";e.exports=function(e,t){var r,i=" ",o=e.level,n=e.dataLevel,a=e.schema[t],s=e.schemaPath+"."+t,l=e.errSchemaPath+"/"+t,c=!e.opts.allErrors,h="data"+(n||""),u="valid"+o,d="errs__"+o,f=e.util.copy(e),p="";f.level++;var m,g="ifPassed"+e.level,v=f.baseId;i+="var "+g+";";var y=a;if(y)for(var x,b=-1,_=y.length-1;_>b;){if(x=y[b+=1],b&&!m&&(i+=" if (!"+g+") { ",p+="}"),x["if"]&&e.util.schemaHasRules(x["if"],e.RULES.all)){i+=" var "+d+" = errors; ";var S=e.compositeRule;if(e.compositeRule=f.compositeRule=!0,f.createErrors=!1,f.schema=x["if"],f.schemaPath=s+"["+b+"].if",f.errSchemaPath=l+"/"+b+"/if",i+=" "+e.validate(f)+" ",f.baseId=v,f.createErrors=!0,e.compositeRule=f.compositeRule=S, i+=" "+g+" = valid"+f.level+"; if ("+g+") { ","boolean"==typeof x.then){if(x.then===!1){var w=w||[];w.push(i),i="",e.createErrors!==!1?(i+=" { keyword: '"+(r||"switch")+"' , dataPath: (dataPath || '') + "+e.errorPath+' , schemaPath: "'+l+'" , params: { caseIndex: '+b+" } ",e.opts.messages!==!1&&(i+=" , message: 'should pass \"switch\" keyword validation' "),e.opts.verbose&&(i+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),i+=" } "):i+=" {} ";var C=i;i=w.pop(),i+=!e.compositeRule&&c?e.async?" throw new ValidationError(["+C+"]); ":" validate.errors = ["+C+"]; return false; ":" var err = "+C+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}i+=" var valid"+f.level+" = "+x.then+"; "}else f.schema=x.then,f.schemaPath=s+"["+b+"].then",f.errSchemaPath=l+"/"+b+"/then",i+=" "+e.validate(f)+" ",f.baseId=v;i+=" } else { errors = "+d+"; if (vErrors !== null) { if ("+d+") vErrors.length = "+d+"; else vErrors = null; } } "}else if(i+=" "+g+" = true; ","boolean"==typeof x.then){if(x.then===!1){var w=w||[];w.push(i),i="",e.createErrors!==!1?(i+=" { keyword: '"+(r||"switch")+"' , dataPath: (dataPath || '') + "+e.errorPath+' , schemaPath: "'+l+'" , params: { caseIndex: '+b+" } ",e.opts.messages!==!1&&(i+=" , message: 'should pass \"switch\" keyword validation' "),e.opts.verbose&&(i+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),i+=" } "):i+=" {} ";var C=i;i=w.pop(),i+=!e.compositeRule&&c?e.async?" throw new ValidationError(["+C+"]); ":" validate.errors = ["+C+"]; return false; ":" var err = "+C+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}i+=" var valid"+f.level+" = "+x.then+"; "}else f.schema=x.then,f.schemaPath=s+"["+b+"].then",f.errSchemaPath=l+"/"+b+"/then",i+=" "+e.validate(f)+" ",f.baseId=v;m=x["continue"]}return i+=""+p+"var "+u+" = valid"+f.level+"; ",i=e.util.cleanUpCode(i)}},function(e,t){"use strict";e.exports=function(e,t){var r,i,o=" ",n=e.level,a=e.dataLevel,s=e.schema[t],l=e.schemaPath+"."+t,c=e.errSchemaPath+"/"+t,h=!e.opts.allErrors,u="data"+(a||""),d="valid"+n,f=e.opts.v5&&s.$data;if(f?(o+=" var schema"+n+" = "+e.util.getData(s.$data,a,e.dataPathArr)+"; ",i="schema"+n):i=s,(s||f)&&e.opts.uniqueItems!==!1){f&&(o+=" var "+d+"; if ("+i+" === false || "+i+" === undefined) "+d+" = true; else if (typeof "+i+" != 'boolean') "+d+" = false; else { "),o+=" var "+d+" = true; if ("+u+".length > 1) { var i = "+u+".length, j; outer: for (;i--;) { for (j = i; j--;) { if (equal("+u+"[i], "+u+"[j])) { "+d+" = false; break outer; } } } } ",f&&(o+=" } "),o+=" if (!"+d+") { ";var p=p||[];p.push(o),o="",e.createErrors!==!1?(o+=" { keyword: '"+(r||"uniqueItems")+"' , dataPath: (dataPath || '') + "+e.errorPath+' , schemaPath: "'+c+'" , params: { i: i, j: j } ',e.opts.messages!==!1&&(o+=" , message: 'should NOT have duplicate items (items ## ' + j + ' and ' + i + ' are identical)' "),e.opts.verbose&&(o+=" , schema: ",o+=f?"validate.schema"+l:""+s,o+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+u+" "),o+=" } "):o+=" {} ";var m=o;o=p.pop(),o+=!e.compositeRule&&h?e.async?" throw new ValidationError(["+m+"]); ":" validate.errors = ["+m+"]; return false; ":" var err = "+m+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",o+=" } ",h&&(o+=" else { ")}else h&&(o+=" if (true) { ");return o}},function(e,t,r){"use strict";var i=/^[a-z_$][a-z0-9_$]*$/i,o=r(152);e.exports=function(e,t){function r(e,t,r){for(var i,n=0;nl;l++)n(s[l]);for(l=0;c>l;l++)r(e,s[l],t)}else s&&n(s),r(e,s,t);var h=t.$data===!0&&this._opts.v5;if(h&&!t.validate)throw new Error('$data support: neither "validate" nor "compile" functions are defined');var u=t.metaSchema;u&&(h&&(u={anyOf:[u,{$ref:"https://raw.githubusercontent.com/epoberezkin/ajv/master/lib/refs/json-schema-v5.json#/definitions/$data"}]}),t.validateSchema=a.compile(u,!0))}this.RULES.keywords[e]=this.RULES.all[e]=!0}},function(e,t,r){"use strict";function i(e){function t(t,r,o){var n={inline:o||i[t],statements:!0,errors:"full"};r&&(n.type=r),e.addKeyword(t,n)}var i={"switch":r(165),constant:r(151),_formatLimit:r(148),patternRequired:r(161)};if(e._opts.meta!==!1){var a=r(433);e.addMetaSchema(a,n)}t("constant"),e.addKeyword("contains",{type:"array",macro:o}),t("formatMaximum","string",i._formatLimit),t("formatMinimum","string",i._formatLimit),e.addKeyword("formatExclusiveMaximum"),e.addKeyword("formatExclusiveMinimum"),e.addKeyword("patternGroups"),t("patternRequired","object"),t("switch")}function o(e){return{not:{items:{not:e}}}}var n="https://raw.githubusercontent.com/epoberezkin/ajv/master/lib/refs/json-schema-v5.json";e.exports={enable:i,META_SCHEMA_ID:n}},function(e,t,r){e.exports=r(173)},function(e,t,r){var i=r(17),o=r(42);o.extendSeriesModel({type:"series.wordCloud",visualColorAccessPath:"textStyle.normal.color",optionUpdated:function(){var e=this.option;e.gridSize=Math.max(Math.floor(e.gridSize),4)},getInitialData:function(e,t){var r=i(["value"],e.data),n=new o.List(r,this);return n.initData(e.data),n},defaultOption:{maskImage:null,shape:"circle",left:"center",top:"center",width:"70%",height:"80%",sizeRange:[12,60],rotationRange:[-90,90],rotationStep:45,gridSize:8,textStyle:{normal:{fontWeight:"normal"}}}})},function(e,t,r){function i(e,t){return e&&e.getShallow(t)}var o=r(42);o.extendChartView({type:"wordCloud",render:function(e,t,r){var n=this.group;n.removeAll();var a=e.getData(),s=e.get("gridSize");e.layoutInstance.ondraw=function(e,t,r,l){var c=a.getItemModel(r),h=c.getModel("textStyle.normal"),u=c.getModel("textStyle.emphasis"),d=function(e,r){var o=e.ecModel,n=o&&o.getModel("textStyle");return["fontStyle","fontWeight","fontSize","fontFamily"].map(function(o,a){return 2!==a?e.getShallow(o)||r.getShallow(o)||i(n,o):(e.getShallow(o,!0)||Math.round(e===h?t:r.getShallow(o,!0)||t))+"px"}).join(" ")},e=new o.graphic.Text({style:{x:l.info.fillTextOffsetX,y:l.info.fillTextOffsetY+.5*t,text:e,textBaseline:"middle",font:d(h,u)},scale:[1/l.info.mu,1/l.info.mu],position:[(l.gx+l.info.gw/2)*s,(l.gy+l.info.gh/2)*s],rotation:l.rot});e.setStyle(h.getItemStyle()),e.setStyle({fill:a.getItemVisual(r,"color")}),n.add(e),a.setItemGraphicEl(r,e),o.graphic.setHoverStyle(e,o.util.extend(u.getItemStyle(),{font:d(u,h)}))}}})},function(e,t,r){var i,o;window.setImmediate||(window.setImmediate=function(){return window.msSetImmediate||window.webkitSetImmediate||window.mozSetImmediate||window.oSetImmediate||function(){if(!window.postMessage||!window.addEventListener)return null;var e=[void 0],t="zero-timeout-message",r=function(r){var i=e.length;return e.push(r),window.postMessage(t+i.toString(36),"*"),i};return window.addEventListener("message",function(r){if("string"==typeof r.data&&r.data.substr(0,t.length)===t){r.stopImmediatePropagation();var i=parseInt(r.data.substr(t.length),36);e[i]&&(e[i](),e[i]=void 0)}},!0),window.clearImmediate=function(t){e[t]&&(e[t]=void 0)},r}()||function(e){window.setTimeout(e,0)}}()),window.clearImmediate||(window.clearImmediate=function(){return window.msClearImmediate||window.webkitClearImmediate||window.mozClearImmediate||window.oClearImmediate||function(e){window.clearTimeout(e)}}()),function(r){var n=function(){var e=document.createElement("canvas");if(!e||!e.getContext)return!1;var t=e.getContext("2d");return t.getImageData&&t.fillText&&Array.prototype.some?!!Array.prototype.push:!1}(),a=function(){if(n){for(var e,t,r=document.createElement("canvas").getContext("2d"),i=20;i;){if(r.font=i.toString(10)+"px sans-serif",r.measureText("W").width===e&&r.measureText("m").width===t)return i+1;e=r.measureText("W").width,t=r.measureText("m").width,i--}return 0}}(),s=function(e){for(var t,r,i=e.length;i;t=Math.floor(Math.random()*i),r=e[--i],e[i]=e[t],e[t]=r);return e},l=function(e,t){function r(e,t){return"hsl("+(360*Math.random()).toFixed()+","+(30*Math.random()+70).toFixed()+"%,"+(Math.random()*(t-e)+e).toFixed()+"%)"}if(n){Array.isArray(e)||(e=[e]),e.forEach(function(t,r){if("string"==typeof t){if(e[r]=document.getElementById(t),!e[r])throw"The element id specified is not found."}else if(!t.tagName&&!t.appendChild)throw"You must pass valid HTML elements, or ID of the element."});var i={list:[],fontFamily:'"Trebuchet MS", "Heiti TC", "微軟正黑體", "Arial Unicode MS", "Droid Fallback Sans", sans-serif',fontWeight:"normal",color:"random-dark",minSize:0,weightFactor:1,clearCanvas:!0,backgroundColor:"#fff",gridSize:8,drawOutOfBound:!1,origin:null,drawMask:!1,maskColor:"rgba(255,0,0,0.3)",maskGapWidth:.3,wait:0,abortThreshold:0,abort:function(){},minRotation:-Math.PI/2,maxRotation:Math.PI/2,rotationStep:.1,shuffle:!0,rotateRatio:.1,shape:"circle",ellipticity:.65,classes:null,hover:null,click:null};if(t)for(var o in t)o in i&&(i[o]=t[o]);if("function"!=typeof i.weightFactor){var l=i.weightFactor;i.weightFactor=function(e){return e*l}}if("function"!=typeof i.shape)switch(i.shape){case"circle":default:i.shape="circle";break;case"cardioid":i.shape=function(e){return 1-Math.sin(e)};break;case"diamond":case"square":i.shape=function(e){var t=e%(2*Math.PI/4);return 1/(Math.cos(t)+Math.sin(t))};break;case"triangle-forward":i.shape=function(e){var t=e%(2*Math.PI/3);return 1/(Math.cos(t)+Math.sqrt(3)*Math.sin(t))};break;case"triangle":case"triangle-upright":i.shape=function(e){var t=(e+3*Math.PI/2)%(2*Math.PI/3);return 1/(Math.cos(t)+Math.sqrt(3)*Math.sin(t))};break;case"pentagon":i.shape=function(e){var t=(e+.955)%(2*Math.PI/5);return 1/(Math.cos(t)+.726543*Math.sin(t))};break;case"star":i.shape=function(e){var t=(e+.955)%(2*Math.PI/10);return(e+.955)%(2*Math.PI/5)-2*Math.PI/10>=0?1/(Math.cos(2*Math.PI/10-t)+3.07768*Math.sin(2*Math.PI/10-t)):1/(Math.cos(t)+3.07768*Math.sin(t))}}i.gridSize=Math.max(Math.floor(i.gridSize),4);var c,h,u,d,f,p,m,g=i.gridSize,v=g-i.maskGapWidth,y=Math.abs(i.maxRotation-i.minRotation),x=Math.min(i.maxRotation,i.minRotation),b=i.rotationStep;switch(i.color){case"random-dark":m=function(){return r(10,50)};break;case"random-light":m=function(){return r(50,90)};break;default:"function"==typeof i.color&&(m=i.color)}var _=null;"function"==typeof i.classes&&(_=i.classes);var S,w=!1,C=[],M=function(e){var t,r,i=e.currentTarget,o=i.getBoundingClientRect();e.touches?(t=e.touches[0].clientX,r=e.touches[0].clientY):(t=e.clientX,r=e.clientY);var n=t-o.left,a=r-o.top,s=Math.floor(n*(i.width/o.width||1)/g),l=Math.floor(a*(i.height/o.height||1)/g);return C[s][l]},A=function(e){var t=M(e);return S!==t?(S=t,t?void i.hover(t.item,t.dimension,e):void i.hover(void 0,void 0,e)):void 0},I=function(e){var t=M(e);t&&(i.click(t.item,t.dimension,e),e.preventDefault())},T=[],P=function(e){if(T[e])return T[e];var t=8*e,r=t,o=[];for(0===e&&o.push([d[0],d[1],0]);r--;){var n=1;"circle"!==i.shape&&(n=i.shape(r/t*2*Math.PI)),o.push([d[0]+e*n*Math.cos(-r/t*2*Math.PI),d[1]+e*n*Math.sin(-r/t*2*Math.PI)*i.ellipticity,r/t*2*Math.PI])}return T[e]=o,o},L=function(){return i.abortThreshold>0&&(new Date).getTime()-p>i.abortThreshold},k=function(){return 0===i.rotateRatio?0:Math.random()>i.rotateRatio?0:0===y?x:x+Math.round(Math.random()*y/b)*b},E=function(e,t,r){var o=!1,n=i.weightFactor(t);if(n<=i.minSize)return!1;var s=1;a>n&&(s=function(){for(var e=2;a>e*n;)e+=2;return e}());var l=document.createElement("canvas"),c=l.getContext("2d",{willReadFrequently:!0});c.font=i.fontWeight+" "+(n*s).toString(10)+"px "+i.fontFamily;var h=c.measureText(e).width/s,u=Math.max(n*s,c.measureText("m").width,c.measureText("W").width)/s,d=h+2*u,f=3*u,p=Math.ceil(d/g),m=Math.ceil(f/g);d=p*g,f=m*g;var v=-h/2,y=.4*-u,x=Math.ceil((d*Math.abs(Math.sin(r))+f*Math.abs(Math.cos(r)))/g),b=Math.ceil((d*Math.abs(Math.cos(r))+f*Math.abs(Math.sin(r)))/g),_=b*g,S=x*g;l.setAttribute("width",_),l.setAttribute("height",S),o&&(document.body.appendChild(l),c.save()),c.scale(1/s,1/s),c.translate(_*s/2,S*s/2),c.rotate(-r),c.font=i.fontWeight+" "+(n*s).toString(10)+"px "+i.fontFamily,c.fillStyle="#000",c.textBaseline="middle",c.fillText(e,v*s,(y+.5*n)*s);var w=c.getImageData(0,0,_,S).data;if(L())return!1;o&&(c.strokeRect(v*s,y,h*s,u*s),c.restore());for(var C,M,A,I=[],T=b,P=[x/2,b/2,x/2,b/2];T--;)for(C=x;C--;){A=g;e:{for(;A--;)for(M=g;M--;)if(w[4*((C*g+A)*_+(T*g+M))+3]){I.push([T,C]),TP[1]&&(P[1]=T),CP[2]&&(P[2]=C),o&&(c.fillStyle="rgba(255, 0, 0, 0.5)",c.fillRect(T*g,C*g,g-.5,g-.5));break e}o&&(c.fillStyle="rgba(0, 0, 255, 0.5)",c.fillRect(T*g,C*g,g-.5,g-.5))}}return o&&(c.fillStyle="rgba(0, 255, 0, 0.5)",c.fillRect(P[3]*g,P[0]*g,(P[1]-P[3]+1)*g,(P[2]-P[0]+1)*g)),{mu:s,occupied:I,bounds:P,gw:b,gh:x,fillTextOffsetX:v,fillTextOffsetY:y,fillTextWidth:h,fillTextHeight:u,fontSize:n}},D=function(e,t,r,o,n){for(var a=n.length;a--;){var s=e+n[a][0],l=t+n[a][1];if(s>=h||l>=u||0>s||0>l){if(!i.drawOutOfBound)return!1}else if(!c[s][l])return!1}return!0},O=function(t,r,o,n,a,s,l,c,h){var u,d=o.fontSize;u=m?m(n,a,d,s,l):i.color;var f;f=_?_(n,a,d,s,l):i.classes;var p,v=o.bounds;p={x:(t+v[3])*g,y:(r+v[0])*g,w:(v[1]-v[3]+1)*g,h:(v[2]-v[0]+1)*g},e.forEach(function(e){if(e.getContext){var a=e.getContext("2d"),s=o.mu;a.save(),a.scale(1/s,1/s),a.font=i.fontWeight+" "+(d*s).toString(10)+"px "+i.fontFamily,a.fillStyle=u,a.translate((t+o.gw/2)*g*s,(r+o.gh/2)*g*s),0!==c&&a.rotate(-c),a.textBaseline="middle",a.fillText(n,o.fillTextOffsetX*s,(o.fillTextOffsetY+.5*d)*s),a.restore()}else{var l=document.createElement("span"),p="";p="rotate("+-c/Math.PI*180+"deg) ",1!==o.mu&&(p+="translateX(-"+o.fillTextWidth/4+"px) scale("+1/o.mu+")");var m={position:"absolute",display:"block",font:i.fontWeight+" "+d*o.mu+"px "+i.fontFamily,left:(t+o.gw/2)*g+o.fillTextOffsetX+"px",top:(r+o.gh/2)*g+o.fillTextOffsetY+"px",width:o.fillTextWidth+"px",height:o.fillTextHeight+"px",lineHeight:d+"px",whiteSpace:"nowrap",transform:p,webkitTransform:p,msTransform:p,transformOrigin:"50% 40%",webkitTransformOrigin:"50% 40%",msTransformOrigin:"50% 40%"};u&&(m.color=u),l.textContent=n;for(var v in m)l.style[v]=m[v];if(h)for(var y in h)l.setAttribute(y,h[y]);f&&(l.className+=f),e.appendChild(l)}})},R=function(t,r,i,o,n){if(!(t>=h||r>=u||0>t||0>r)){if(c[t][r]=!1,i){var a=e[0].getContext("2d");a.fillRect(t*g,r*g,v,v)}w&&(C[t][r]={item:n,dimension:o})}},z=function(t,r,o,n,a,s){var l,c=a.occupied,d=i.drawMask;d&&(l=e[0].getContext("2d"),l.save(),l.fillStyle=i.maskColor);var f;if(w){var p=a.bounds;f={x:(t+p[3])*g,y:(r+p[0])*g,w:(p[1]-p[3]+1)*g,h:(p[2]-p[0]+1)*g}}for(var m=c.length;m--;){var v=t+c[m][0],y=r+c[m][1];v>=h||y>=u||0>v||0>y||R(v,y,d,f,s)}d&&l.restore()},V=function(e){var t,r,o;Array.isArray(e)?(t=e[0],r=e[1]):(t=e.word,r=e.weight,o=e.attributes);var n=k(),a=E(t,r,n);if(!a)return!1;if(L())return!1;if(!i.drawOutOfBound){var l=a.bounds;if(l[1]-l[3]+1>h||l[2]-l[0]+1>u)return!1}for(var c=f+1,d=function(i){var s=Math.floor(i[0]-a.gw/2),l=Math.floor(i[1]-a.gh/2),h=a.gw,u=a.gh;return D(s,l,h,u,a.occupied)?(O(s,l,a,t,r,f-c,i[2],n,o),z(s,l,h,u,a,e),{gx:s,gy:l,rot:n,info:a}):!1};c--;){var p=P(f-c);i.shuffle&&(p=[].concat(p),s(p));for(var m=0;m=i.list.length)return b(P),N("wordcloudstop",!1),void M("wordcloudstart",T);p=(new Date).getTime();var e=V(i.list[a]),t=!N("wordclouddrawn",!0,{item:i.list[a],drawn:e});return L()||t?(b(P),i.abort(),N("wordcloudabort",!1),N("wordcloudstop",!1),void M("wordcloudstart",T)):(a++,void(P=x(D,i.wait)))},i.wait)}};W()}};l.isSupported=n,l.minFontSize=a,i=[],o=function(){return l}.apply(t,i),!(void 0!==o&&(e.exports=o))}(this)},function(e,t,r){function i(e){for(var t=e.getContext("2d"),r=t.getImageData(0,0,e.width,e.height),i=t.createImageData(r),o=0;oa||n>384?(i.data[o]=0,i.data[o+1]=0,i.data[o+2]=0,i.data[o+3]=0):(i.data[o]=255,i.data[o+1]=255,i.data[o+2]=255,i.data[o+3]=255)}t.putImageData(i,0,0)}var o=r(42),n=r(6);r(170),r(171);var a=r(172);if(!a.isSupported)throw new Error("Sorry your browser not support wordCloud");o.registerLayout(function(e,t){e.eachSeriesByType("wordCloud",function(r){var s=n.getLayoutRect(r.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),l=r.getData(),c=document.createElement("canvas");c.width=s.width,c.height=s.height;var h=c.getContext("2d"),u=r.get("maskImage");if(u)try{h.drawImage(u,0,0,c.width,c.height),i(c)}catch(d){console.error("Invalid mask image"),console.error(d.toString())}var f=r.get("sizeRange"),p=r.get("rotationRange"),m=l.getDataExtent("value"),g=Math.PI/180,v=r.get("gridSize");a(c,{list:l.mapArray("value",function(e,t){var r=l.getItemModel(t);return[l.getName(t),r.get("textStyle.normal.textSize",!0)||o.number.linearMap(e,m,f),t]}).sort(function(e,t){return t[1]-e[1]}),fontFamily:r.get("textStyle.normal.fontFamily")||r.get("textStyle.emphasis.fontFamily")||e.get("textStyle.fontFamily"),fontWeight:r.get("textStyle.normal.fontWeight")||r.get("textStyle.emphasis.fontWeight")||e.get("textStyle.fontWeight"),gridSize:v,ellipticity:s.height/s.width,minRotation:p[0]*g,maxRotation:p[1]*g,clearCanvas:!u,rotateRatio:1,rotationStep:r.get("rotationStep")*g,drawOutOfBound:!1,shuffle:!1,shape:r.get("shape")}),c.addEventListener("wordclouddrawn",function(e){var t=e.detail.item;e.detail.drawn&&r.layoutInstance.ondraw&&(e.detail.drawn.gx+=s.x/v,e.detail.drawn.gy+=s.y/v,r.layoutInstance.ondraw(t[0],t[1],t[2],e.detail.drawn))}),r.layoutInstance={ondraw:null}})})},function(e,t,r){"use strict";function i(e){o.each(n,function(t){this[t]=o.bind(e[t],e)},this)}var o=r(1),n=["getDom","getZr","getWidth","getHeight","dispatchAction","isDisposed","on","off","getDataURL","getConnectedDataURL","getModel","getOption"];e.exports=i},function(e,t,r){var i=r(1);r(117),r(176),r(177);var o=r(376),n=r(2);n.registerLayout(i.curry(o,"bar")),n.registerVisual(function(e){e.eachSeriesByType("bar",function(e){var t=e.getData();t.setVisual("legendSymbol","roundRect")})}),r(45)},function(e,t,r){"use strict";var i=r(14),o=r(30);e.exports=i.extend({type:"series.bar",dependencies:["grid","polar"],getInitialData:function(e,t){return o(e.data,this,t)},getMarkerPosition:function(e){var t=this.coordinateSystem;if(t){var r=t.dataToPoint(e,!0),i=this.getData(),o=i.getLayout("offset"),n=i.getLayout("size"),a=t.getBaseAxis().isHorizontal()?0:1;return r[a]+=o+n/2,r}return[NaN,NaN]},brushSelector:"rect",defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,itemStyle:{normal:{},emphasis:{}}}})},function(e,t,r){"use strict";function i(e,t){var r=e.width>0?1:-1,i=e.height>0?1:-1;t=Math.min(t,Math.abs(e.width),Math.abs(e.height)),e.x+=r*t/2,e.y+=i*t/2,e.width-=r*t,e.height-=i*t}var o=r(1),n=r(3);o.extend(r(9).prototype,r(178)),e.exports=r(2).extendChartView({type:"bar",render:function(e,t,r){var i=e.get("coordinateSystem");return"cartesian2d"===i&&this._renderOnCartesian(e,t,r),this.group},_renderOnCartesian:function(e,t,r){function a(t,r){var a=l.getItemLayout(t),s=l.getItemModel(t).get(p)||0;i(a,s);var c=new n.Rect({shape:o.extend({},a)});if(f){var h=c.shape,u=d?"height":"width",m={};h[u]=0,m[u]=a[u],n[r?"updateProps":"initProps"](c,{shape:m},e,t)}return c}var s=this.group,l=e.getData(),c=this._data,h=e.coordinateSystem,u=h.getBaseAxis(),d=u.isHorizontal(),f=e.get("animation"),p=["itemStyle","normal","barBorderWidth"];l.diff(c).add(function(e){if(l.hasValue(e)){var t=a(e);l.setItemGraphicEl(e,t),s.add(t)}}).update(function(t,r){var o=c.getItemGraphicEl(r);if(!l.hasValue(t))return void s.remove(o);o||(o=a(t,!0));var h=l.getItemLayout(t),u=l.getItemModel(t).get(p)||0;i(h,u),n.updateProps(o,{shape:h},e,t),l.setItemGraphicEl(t,o),s.add(o)}).remove(function(t){var r=c.getItemGraphicEl(t);r&&(r.style.text="",n.updateProps(r,{shape:{width:0}},e,t,function(){s.remove(r)}))}).execute(),this._updateStyle(e,l,d),this._data=l},_updateStyle:function(e,t,r){function i(e,t,r,i,o){n.setText(e,t,r),e.text=i,"outside"===e.textPosition&&(e.textPosition=o)}t.eachItemGraphicEl(function(a,s){var l=t.getItemModel(s),c=t.getItemVisual(s,"color"),h=t.getItemVisual(s,"opacity"),u=t.getItemLayout(s),d=l.getModel("itemStyle.normal"),f=l.getModel("itemStyle.emphasis").getBarItemStyle();a.setShape("r",d.get("barBorderRadius")||0),a.useStyle(o.defaults({fill:c,opacity:h},d.getBarItemStyle()));var p=r?u.height>0?"bottom":"top":u.width>0?"left":"right",m=l.getModel("label.normal"),g=l.getModel("label.emphasis"),v=a.style;m.get("show")?i(v,m,c,o.retrieve(e.getFormattedLabel(s,"normal"),e.getRawValue(s)),p):v.text="",g.get("show")?i(f,g,c,o.retrieve(e.getFormattedLabel(s,"emphasis"),e.getRawValue(s)),p):f.text="",n.setHoverStyle(a,f)})},remove:function(e,t){var r=this.group;e.get("animation")?this._data&&this._data.eachItemGraphicEl(function(t){t.style.text="",n.updateProps(t,{shape:{width:0}},e,t.dataIndex,function(){r.remove(t)})}):r.removeAll()}})},function(e,t,r){var i=r(38)([["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["stroke","barBorderColor"],["lineWidth","barBorderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]);e.exports={getBarItemStyle:function(e){var t=i.call(this,e);if(this.getBorderLineDash){var r=this.getBorderLineDash();r&&(t.lineDash=r)}return t}}},function(e,t,r){var i=r(2);r(180),r(181),i.registerVisual(r(183)),i.registerLayout(r(182))},function(e,t,r){"use strict";var i=r(1),o=r(14),n=r(43),a=o.extend({type:"series.boxplot",dependencies:["xAxis","yAxis","grid"],valueDimensions:["min","Q1","median","Q3","max"],dimensions:null,defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,layout:null,boxWidth:[7,50],itemStyle:{normal:{color:"#fff",borderWidth:1},emphasis:{borderWidth:2,shadowBlur:5,shadowOffsetX:2,shadowOffsetY:2,shadowColor:"rgba(0,0,0,0.4)"}},animationEasing:"elasticOut",animationDuration:800}});i.mixin(a,n.seriesModelMixin,!0),e.exports=a},function(e,t,r){"use strict";function i(e,t,r){var i=t.getItemModel(r),o=i.getModel(c),n=t.getItemVisual(r,"color"),s=o.getItemStyle(["borderColor"]),l=e.childAt(e.whiskerIndex);l.style.set(s),l.style.stroke=n,l.dirty();var u=e.childAt(e.bodyIndex);u.style.set(s),u.style.stroke=n,u.dirty();var d=i.getModel(h).getItemStyle();a.setHoverStyle(e,d)}var o=r(1),n=r(23),a=r(3),s=r(43),l=n.extend({type:"boxplot",getStyleUpdater:function(){return i}});o.mixin(l,s.viewMixin,!0);var c=["itemStyle","normal"],h=["itemStyle","emphasis"];e.exports=l},function(e,t,r){function i(e){var t=[],r=[];return e.eachSeriesByType("boxplot",function(e){var i=e.getBaseAxis(),o=a.indexOf(r,i);0>o&&(o=r.length,r[o]=i,t[o]={axis:i,seriesModels:[]}),t[o].seriesModels.push(e)}),t}function o(e){var t,r,i=e.axis,o=e.seriesModels,n=o.length,s=e.boxWidthList=[],h=e.boxOffsetList=[],u=[];if("category"===i.type)r=i.getBandWidth();else{var d=0;c(o,function(e){d=Math.max(d,e.getData().count())}),t=i.getExtent(),Math.abs(t[1]-t[0])/d}c(o,function(e){var t=e.get("boxWidth");a.isArray(t)||(t=[t,t]),u.push([l(t[0],r)||0,l(t[1],r)||0])});var f=.8*r-2,p=f/n*.3,m=(f-p*(n-1))/n,g=m/2-f/2;c(o,function(e,t){h.push(g),g+=p+m,s.push(Math.min(Math.max(m,u[t][0]),u[t][1]))})}function n(e,t,r){var i=e.coordinateSystem,o=e.getData(),n=e.dimensions,a=e.get("layout"),s=r/2;o.each(n,function(){function e(e){var r=[];r[f]=u,r[p]=e;var o;return isNaN(u)||isNaN(e)?o=[NaN,NaN]:(o=i.dataToPoint(r),o[f]+=t),o}function r(e,t){var r=e.slice(),i=e.slice();r[f]+=s,i[f]-=s,t?x.push(r,i):x.push(i,r)}function l(e){var t=[e.slice(),e.slice()];t[0][f]-=s,t[1][f]+=s,y.push(t)}var c=arguments,h=n.length,u=c[0],d=c[h],f="horizontal"===a?0:1,p=1-f,m=e(c[3]),g=e(c[1]),v=e(c[5]),y=[[g,e(c[2])],[v,e(c[4])]];l(g),l(v),l(m);var x=[];r(y[0][1],0),r(y[1][1],1),o.setItemLayout(d,{chartLayout:a,initBaseline:m[p],median:m,bodyEnds:x,whiskerEnds:y})})}var a=r(1),s=r(4),l=s.parsePercent,c=a.each;e.exports=function(e){var t=i(e);c(t,function(e){var t=e.seriesModels;t.length&&(o(e),c(t,function(t,r){n(t,e.boxOffsetList[r],e.boxWidthList[r])}))})}},function(e,t){var r=["itemStyle","normal","borderColor"];e.exports=function(e,t){var i=e.get("color");e.eachRawSeriesByType("boxplot",function(t){var o=i[t.seriesIndex%i.length],n=t.getData();n.setVisual({legendSymbol:"roundRect",color:t.get(r)||o}),e.isSeriesFiltered(t)||n.each(function(e){var t=n.getItemModel(e);n.setItemVisual(e,{color:t.get(r,!0)})})})}},function(e,t,r){var i=r(2);r(185),r(186),i.registerPreprocessor(r(189)),i.registerVisual(r(188)),i.registerLayout(r(187))},function(e,t,r){"use strict";var i=r(1),o=r(14),n=r(43),a=r(10),s=a.encodeHTML,l=a.addCommas,c=o.extend({type:"series.candlestick",dependencies:["xAxis","yAxis","grid"],valueDimensions:["open","close","lowest","highest"],dimensions:null,defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,layout:null,itemStyle:{normal:{color:"#c23531",color0:"#314656",borderWidth:1,borderColor:"#c23531",borderColor0:"#314656"},emphasis:{borderWidth:2}},animationUpdate:!1,animationEasing:"linear",animationDuration:300},getShadowDim:function(){return"open"},formatTooltip:function(e,t){var r=i.map(this.valueDimensions,function(t){return t+": "+l(this._data.get(t,e))},this);return s(this.name)+"
"+r.join("
")},brushSelector:function(e,t){return t.rect(e.brushRect)}});i.mixin(c,n.seriesModelMixin,!0),e.exports=c},function(e,t,r){"use strict";function i(e,t,r){var i=t.getItemModel(r),o=i.getModel(c),n=t.getItemVisual(r,"color"),s=t.getItemVisual(r,"borderColor")||n,l=o.getItemStyle(["color","color0","borderColor","borderColor0"]),u=e.childAt(e.whiskerIndex);u.useStyle(l),u.style.stroke=s;var d=e.childAt(e.bodyIndex);d.useStyle(l),d.style.fill=n,d.style.stroke=s;var f=i.getModel(h).getItemStyle();a.setHoverStyle(e,f)}var o=r(1),n=r(23),a=r(3),s=r(43),l=n.extend({type:"candlestick",getStyleUpdater:function(){return i}});o.mixin(l,s.viewMixin,!0);var c=["itemStyle","normal"],h=["itemStyle","emphasis"];e.exports=l},function(e,t){function r(e,t){var r,a=e.getBaseAxis(),s="category"===a.type?a.getBandWidth():(r=a.getExtent(),Math.abs(r[1]-r[0])/t.count());return s/2-2>o?s/2-2:s-o>n?o:Math.max(s-n,i)}var i=2,o=5,n=4;e.exports=function(e){e.eachSeriesByType("candlestick",function(e){var t=e.coordinateSystem,i=e.getData(),o=e.dimensions,n=e.get("layout"),a=r(e,i);i.each(o,function(){function e(e){var r=[];return r[d]=h,r[f]=e,isNaN(h)||isNaN(e)?[NaN,NaN]:t.dataToPoint(r)}function r(e,t){var r=e.slice(),i=e.slice();r[d]+=a/2,i[d]-=a/2,t?M.push(r,i):M.push(i,r)}function s(){var t=e(Math.min(p,m,g,v)),r=e(Math.max(p,m,g,v));return t[d]-=a/2,r[d]-=a/2,{x:t[0],y:t[1],width:f?a:r[0]-t[0],height:f?r[1]-t[1]:a}}var l=arguments,c=o.length,h=l[0],u=l[c],d="horizontal"===n?0:1,f=1-d,p=l[1],m=l[2],g=l[3],v=l[4],y=Math.min(p,m),x=Math.max(p,m),b=e(y),_=e(x),S=e(g),w=e(v),C=[[w,_],[S,b]],M=[];r(_,0),r(b,1),i.setItemLayout(u,{chartLayout:n,sign:p>m?-1:m>p?1:0,initBaseline:p>m?_[f]:b[f],bodyEnds:M,whiskerEnds:C,brushRect:s()})},!0)})}},function(e,t){var r=["itemStyle","normal","borderColor"],i=["itemStyle","normal","borderColor0"],o=["itemStyle","normal","color"],n=["itemStyle","normal","color0"];e.exports=function(e,t){e.eachRawSeriesByType("candlestick",function(t){var a=t.getData();a.setVisual({legendSymbol:"roundRect"}),e.isSeriesFiltered(t)||a.each(function(e){var t=a.getItemModel(e),s=a.getItemLayout(e).sign;a.setItemVisual(e,{color:t.get(s>0?o:n),borderColor:t.get(s>0?r:i)})})})}},function(e,t,r){var i=r(1);e.exports=function(e){e&&i.isArray(e.series)&&i.each(e.series,function(e){i.isObject(e)&&"k"===e.type&&(e.type="candlestick")})}},function(e,t,r){var i=r(1),o=r(2);r(191),r(192),o.registerVisual(i.curry(r(39),"effectScatter","circle",null)),o.registerLayout(i.curry(r(67),"effectScatter"))},function(e,t,r){"use strict";var i=r(30),o=r(14);e.exports=o.extend({type:"series.effectScatter",dependencies:["grid","polar"],getInitialData:function(e,t){var r=i(e.data,this,t);return r},brushSelector:"point",defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,effectType:"ripple",showEffectOn:"render",rippleEffect:{period:4,scale:2.5,brushType:"fill"},symbolSize:10}})},function(e,t,r){var i=r(33),o=r(219);r(2).extendChartView({type:"effectScatter",init:function(){this._symbolDraw=new i(o)},render:function(e,t,r){var i=e.getData(),o=this._symbolDraw;o.updateData(i),this.group.add(o.group)},updateLayout:function(){this._symbolDraw.updateLayout()},remove:function(e,t){this._symbolDraw&&this._symbolDraw.remove(t)}})},function(e,t,r){var i=r(1),o=r(2);r(194),r(195),o.registerVisual(i.curry(r(72),"funnel")),o.registerLayout(r(196)),o.registerProcessor(i.curry(r(68),"funnel"))},function(e,t,r){"use strict";var i=r(8),o=r(12),n=r(17),a=r(2).extendSeriesModel({type:"series.funnel",init:function(e){a.superApply(this,"init",arguments),this.legendDataProvider=function(){return this._dataBeforeProcessed},this._defaultLabelLine(e)},getInitialData:function(e,t){var r=n(["value"],e.data),o=new i(r,this);return o.initData(e.data),o},_defaultLabelLine:function(e){o.defaultEmphasis(e.labelLine,["show"]);var t=e.labelLine.normal,r=e.labelLine.emphasis;t.show=t.show&&e.label.normal.show,r.show=r.show&&e.label.emphasis.show},defaultOption:{zlevel:0,z:2,legendHoverLink:!0,left:80,top:60,right:80,bottom:60,minSize:"0%",maxSize:"100%",sort:"descending",gap:0,funnelAlign:"center",label:{normal:{show:!0,position:"outer"},emphasis:{show:!0}},labelLine:{ normal:{show:!0,length:20,lineStyle:{width:1,type:"solid"}},emphasis:{}},itemStyle:{normal:{borderColor:"#fff",borderWidth:1},emphasis:{}}}});e.exports=a},function(e,t,r){function i(e,t){function r(){a.ignore=a.hoverIgnore,s.ignore=s.hoverIgnore}function i(){a.ignore=a.normalIgnore,s.ignore=s.normalIgnore}n.Group.call(this);var o=new n.Polygon,a=new n.Polyline,s=new n.Text;this.add(o),this.add(a),this.add(s),this.updateData(e,t,!0),this.on("emphasis",r).on("normal",i).on("mouseover",r).on("mouseout",i)}function o(e,t,r,i){var o=i.getModel("textStyle"),n=i.get("position"),s="inside"===n||"inner"===n||"center"===n;return{fill:o.getTextColor()||(s?"#fff":e.getItemVisual(t,"color")),textFont:o.getFont(),text:a.retrieve(e.hostModel.getFormattedLabel(t,r),e.getName(t))}}var n=r(3),a=r(1),s=i.prototype,l=["itemStyle","normal","opacity"];s.updateData=function(e,t,r){var i=this.childAt(0),o=e.hostModel,s=e.getItemModel(t),c=e.getItemLayout(t),h=e.getItemModel(t).get(l);h=null==h?1:h,i.useStyle({}),r?(i.setShape({points:c.points}),i.setStyle({opacity:0}),n.initProps(i,{style:{opacity:h}},o,t)):n.updateProps(i,{style:{opacity:h},shape:{points:c.points}},o,t);var u=s.getModel("itemStyle"),d=e.getItemVisual(t,"color");i.setStyle(a.defaults({lineJoin:"round",fill:d},u.getModel("normal").getItemStyle(["opacity"]))),i.hoverStyle=u.getModel("emphasis").getItemStyle(),this._updateLabel(e,t),n.setHoverStyle(this)},s._updateLabel=function(e,t){var r=this.childAt(1),i=this.childAt(2),a=e.hostModel,s=e.getItemModel(t),l=e.getItemLayout(t),c=l.label,h=e.getItemVisual(t,"color");n.updateProps(r,{shape:{points:c.linePoints||c.linePoints}},a,t),n.updateProps(i,{style:{x:c.x,y:c.y}},a,t),i.attr({style:{textAlign:c.textAlign,textVerticalAlign:c.verticalAlign,textFont:c.font},rotation:c.rotation,origin:[c.x,c.y],z2:10});var u=s.getModel("label.normal"),d=s.getModel("label.emphasis"),f=s.getModel("labelLine.normal"),p=s.getModel("labelLine.emphasis");i.setStyle(o(e,t,"normal",u)),i.ignore=i.normalIgnore=!u.get("show"),i.hoverIgnore=!d.get("show"),r.ignore=r.normalIgnore=!f.get("show"),r.hoverIgnore=!p.get("show"),r.setStyle({stroke:h}),r.setStyle(f.getModel("lineStyle").getLineStyle()),i.hoverStyle=o(e,t,"emphasis",d),r.hoverStyle=p.getModel("lineStyle").getLineStyle()},a.inherits(i,n.Group);var c=r(23).extend({type:"funnel",render:function(e,t,r){var o=e.getData(),n=this._data,a=this.group;o.diff(n).add(function(e){var t=new i(o,e);o.setItemGraphicEl(e,t),a.add(t)}).update(function(e,t){var r=n.getItemGraphicEl(t);r.updateData(o,e),a.add(r),o.setItemGraphicEl(e,r)}).remove(function(e){var t=n.getItemGraphicEl(e);a.remove(t)}).execute(),this._data=o},remove:function(){this.group.removeAll(),this._data=null}});e.exports=c},function(e,t,r){function i(e,t){return a.getLayoutRect(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function o(e,t){for(var r=e.mapArray("value",function(e){return e}),i=[],o="ascending"===t,n=0,a=e.count();a>n;n++)i[n]=n;return i.sort(function(e,t){return o?r[e]-r[t]:r[t]-r[e]}),i}function n(e){e.each(function(t){var r,i,o,n,a=e.getItemModel(t),s=a.getModel("label.normal"),l=s.get("position"),c=a.getModel("labelLine.normal"),h=e.getItemLayout(t),u=h.points,d="inner"===l||"inside"===l||"center"===l;if(d)i=(u[0][0]+u[1][0]+u[2][0]+u[3][0])/4,o=(u[0][1]+u[1][1]+u[2][1]+u[3][1])/4,r="center",n=[[i,o],[i,o]];else{var f,p,m,g=c.get("length");"left"===l?(f=(u[3][0]+u[0][0])/2,p=(u[3][1]+u[0][1])/2,m=f-g,i=m-5,r="right"):(f=(u[1][0]+u[2][0])/2,p=(u[1][1]+u[2][1])/2,m=f+g,i=m+5,r="left");var v=p;n=[[f,p],[m,v]],o=v}h.label={linePoints:n,x:i,y:o,verticalAlign:"middle",textAlign:r,inside:d}})}var a=r(6),s=r(4),l=s.parsePercent;e.exports=function(e,t,r){e.eachSeriesByType("funnel",function(e){var r=e.getData(),a=e.get("sort"),c=i(e,t),h=o(r,a),u=[l(e.get("minSize"),c.width),l(e.get("maxSize"),c.width)],d=r.getDataExtent("value"),f=e.get("min"),p=e.get("max");null==f&&(f=Math.min(d[0],0)),null==p&&(p=d[1]);var m=e.get("funnelAlign"),g=e.get("gap"),v=(c.height-g*(r.count()-1))/r.count(),y=c.y,x=function(e,t){var i,o=r.get("value",e)||0,n=s.linearMap(o,[f,p],u,!0);switch(m){case"left":i=c.x;break;case"center":i=c.x+(c.width-n)/2;break;case"right":i=c.x+c.width-n}return[[i,t],[i+n,t]]};"ascending"===a&&(v=-v,g=-g,y+=c.height,h=h.reverse());for(var b=0;b=e)return i[0][1];for(var t=0;t=e&&(0===t?0:i[t-1][0])=k;k++){var E=Math.cos(M),D=Math.sin(M);if(y.get("show")){var O=new a.Line({shape:{x1:E*m+f,y1:D*m+p,x2:E*(m-w)+f,y2:D*(m-w)+p},style:T,silent:!0});"auto"===T.stroke&&O.setStyle({stroke:i(k/_)}),d.add(O)}if(b.get("show")){var R=o(s.round(k/_*(v-g)+g),b.get("formatter")),z=b.get("distance"),V=new a.Text({style:{text:R,x:E*(m-w-z)+f,y:D*(m-w-z)+p,fill:L.getTextColor(),textFont:L.getFont(),textVerticalAlign:-.4>D?"top":D>.4?"bottom":"middle",textAlign:-.4>E?"left":E>.4?"right":"center"},silent:!0});"auto"===V.style.fill&&V.setStyle({fill:i(k/_)}),d.add(V)}if(x.get("show")&&k!==_){for(var N=0;S>=N;N++){var E=Math.cos(M),D=Math.sin(M),W=new a.Line({shape:{x1:E*m+f,y1:D*m+p,x2:E*(m-C)+f,y2:D*(m-C)+p},silent:!0,style:P});"auto"===P.stroke&&W.setStyle({stroke:i((k+N/S)/_)}),d.add(W),M+=I}M-=I}else M+=A}},_renderPointer:function(e,t,r,i,o,c,h,u){var d=[+e.get("min"),+e.get("max")],f=[c,h];u||(f=f.reverse());var p=e.getData(),m=this._data,g=this.group;p.diff(m).add(function(t){var r=new n({shape:{angle:c}});a.updateProps(r,{shape:{angle:s.linearMap(p.get("value",t),d,f,!0)}},e),g.add(r),p.setItemGraphicEl(t,r)}).update(function(t,r){var i=m.getItemGraphicEl(r);a.updateProps(i,{shape:{angle:s.linearMap(p.get("value",t),d,f,!0)}},e),g.add(i),p.setItemGraphicEl(t,i)}).remove(function(e){var t=m.getItemGraphicEl(e);g.remove(t)}).execute(),p.eachItemGraphicEl(function(e,t){var r=p.getItemModel(t),n=r.getModel("pointer");e.setShape({x:o.cx,y:o.cy,width:l(n.get("width"),o.r),r:l(n.get("length"),o.r)}),e.useStyle(r.getModel("itemStyle.normal").getItemStyle()),"auto"===e.style.fill&&e.setStyle("fill",i((p.get("value",t)-d[0])/(d[1]-d[0]))),a.setHoverStyle(e,r.getModel("itemStyle.emphasis").getItemStyle())}),this._data=p},_renderTitle:function(e,t,r,i,o){var n=e.getModel("title");if(n.get("show")){var s=n.getModel("textStyle"),c=n.get("offsetCenter"),h=o.cx+l(c[0],o.r),u=o.cy+l(c[1],o.r),d=new a.Text({style:{x:h,y:u,text:e.getData().getName(0),fill:s.getTextColor(),textFont:s.getFont(),textAlign:"center",textVerticalAlign:"middle"}});this.group.add(d)}},_renderDetail:function(e,t,r,i,n){var c=e.getModel("detail"),h=e.get("min"),u=e.get("max");if(c.get("show")){var d=c.getModel("textStyle"),f=c.get("offsetCenter"),p=n.cx+l(f[0],n.r),m=n.cy+l(f[1],n.r),g=l(c.get("width"),n.r),v=l(c.get("height"),n.r),y=e.getData().get("value",0),x=new a.Rect({shape:{x:p-g/2,y:m-v/2,width:g,height:v},style:{text:o(y,c.get("formatter")),fill:c.get("backgroundColor"),textFill:d.getTextColor(),textFont:d.getFont()}});"auto"===x.style.textFill&&x.setStyle("textFill",i(s.linearMap(y,[h,u],[0,1],!0))),x.setStyle(c.getItemStyle(["color"])),this.group.add(x)}}});e.exports=h},function(e,t,r){e.exports=r(13).extend({type:"echartsGaugePointer",shape:{angle:0,width:10,r:10,x:0,y:0},buildPath:function(e,t){var r=Math.cos,i=Math.sin,o=t.r,n=t.width,a=t.angle,s=t.x-r(a)*n*(n>=o/3?1:2),l=t.y-i(a)*n*(n>=o/3?1:2);a=t.angle-Math.PI/2,e.moveTo(s,l),e.lineTo(t.x+r(a)*n,t.y+i(a)*n),e.lineTo(t.x+r(t.angle)*o,t.y+i(t.angle)*o),e.lineTo(t.x-r(a)*n,t.y-i(a)*n),e.lineTo(s,l)}})},function(e,t,r){var i=r(2),o=r(1);r(202),r(203),r(212),i.registerProcessor(r(205)),i.registerVisual(o.curry(r(39),"graph","circle",null)),i.registerVisual(r(206)),i.registerVisual(r(209)),i.registerLayout(r(213)),i.registerLayout(r(207)),i.registerLayout(r(211)),i.registerCoordinateSystem("graphView",{create:r(208)})},function(e,t,r){"use strict";var i=r(8),o=r(1),n=r(12),a=r(9),s=r(97),l=r(2).extendSeriesModel({type:"series.graph",init:function(e){l.superApply(this,"init",arguments),this.legendDataProvider=function(){return this._categoriesData},this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},mergeOption:function(e){l.superApply(this,"mergeOption",arguments),this.fillDataTextStyle(e.edges||e.links),this._updateCategoriesData()},mergeDefaultAndTheme:function(e){l.superApply(this,"mergeDefaultAndTheme",arguments),n.defaultEmphasis(e.edgeLabel,n.LABEL_OPTIONS)},getInitialData:function(e,t){function r(e,t){e.wrapMethod("getItemModel",function(e){var t=n._categoriesModels,r=e.getShallow("category"),i=t[r];return i&&(i.parentModel=e.parentModel,e.parentModel=i),e});var r=n.getModel("edgeLabel"),i=function(e,t){var o=(e||"").split(".");"label"===o[0]&&(t=t||r.getModel(o.slice(1)));var n=a.prototype.getModel.call(this,o,t);return n.getModel=i,n};t.wrapMethod("getItemModel",function(e){return e.getModel=i,e})}var i=e.edges||e.links||[],o=e.data||e.nodes||[],n=this;return o&&i?s(o,i,this,!0,r).data:void 0},getGraph:function(){return this.getData().graph},getEdgeData:function(){return this.getGraph().edgeData},getCategoriesData:function(){return this._categoriesData},formatTooltip:function(e,t,r){if("edge"===r){var i=this.getData(),o=this.getDataParams(e,r),n=i.graph.getEdgeByIndex(e),a=i.getName(n.node1.dataIndex),s=i.getName(n.node2.dataIndex),c=a+" > "+s;return o.value&&(c+=" : "+o.value),c}return l.superApply(this,"formatTooltip",arguments)},_updateCategoriesData:function(){var e=o.map(this.option.categories||[],function(e){return null!=e.value?e:o.extend({value:0},e)}),t=new i(["value"],this);t.initData(e),this._categoriesData=t,this._categoriesModels=t.mapArray(function(e){return t.getItemModel(e,!0)})},setZoom:function(e){this.option.zoom=e},setCenter:function(e){this.option.center=e},ifEnableAnimation:function(){return l.superCall(this,"ifEnableAnimation")&&!("force"===this.get("layout")&&this.get("force.layoutAnimation"))},defaultOption:{zlevel:0,z:2,coordinateSystem:"view",legendHoverLink:!0,hoverAnimation:!0,layout:null,focusNodeAdjacency:!1,circular:{rotateLabel:!1},force:{initLayout:null,repulsion:[0,50],gravity:.1,edgeLength:30,layoutAnimation:!0},left:"center",top:"center",symbol:"circle",symbolSize:10,edgeSymbol:["none","none"],edgeSymbolSize:10,edgeLabel:{normal:{position:"middle"},emphasis:{}},draggable:!1,roam:!1,center:null,zoom:1,nodeScaleRatio:.6,label:{normal:{show:!1,formatter:"{b}"},emphasis:{show:!0}},itemStyle:{normal:{},emphasis:{}},lineStyle:{normal:{color:"#aaa",width:1,curveness:0,opacity:.5},emphasis:{}}}});e.exports=l},function(e,t,r){function i(e,t){return e.getVisual("opacity")||e.getModel().get(t)}var o=r(33),n=r(57),a=r(46),s=r(3),l=r(204),c=r(1),h=["itemStyle","normal","opacity"],u=["lineStyle","normal","opacity"];r(2).extendChartView({type:"graph",init:function(e,t){var r=new o,i=new n,s=this.group,l=new a(t.getZr(),s);s.add(r.group),s.add(i.group),this._symbolDraw=r,this._lineDraw=i,this._controller=l,this._firstRender=!0},render:function(e,t,r){var i=e.coordinateSystem;this._model=e,this._nodeScaleRatio=e.get("nodeScaleRatio");var o=this._symbolDraw,n=this._lineDraw,a=this.group;if("view"===i.type){var c={position:i.position,scale:i.scale};this._firstRender?a.attr(c):s.updateProps(a,c,e)}l(e.getGraph(),this._getNodeGlobalScale(e));var h=e.getData();o.updateData(h);var u=e.getEdgeData();n.updateData(u),this._updateNodeAndLinkScale(),this._updateController(e,r),clearTimeout(this._layoutTimeout);var d=e.forceLayout,f=e.get("force.layoutAnimation");d&&this._startForceLayoutIteration(d,f),h.eachItemGraphicEl(function(e,t){var r=h.getItemModel(t);e.off("drag").off("dragend");var i=h.getItemModel(t).get("draggable");i&&e.on("drag",function(){d&&(d.warmUp(),!this._layouting&&this._startForceLayoutIteration(d,f),d.setFixed(t),h.setItemLayout(t,e.position))},this).on("dragend",function(){d&&d.setUnfixed(t)},this),e.setDraggable(i&&d),e.off("mouseover",this._focusNodeAdjacency),e.off("mouseout",this._unfocusAll),r.get("focusNodeAdjacency")&&(e.on("mouseover",this._focusNodeAdjacency,this),e.on("mouseout",this._unfocusAll,this))},this);var p="circular"===e.get("layout")&&e.get("circular.rotateLabel"),m=h.getLayout("cx"),g=h.getLayout("cy");h.eachItemGraphicEl(function(e,t){var r=e.getSymbolPath();if(p){var i=h.getItemLayout(t),o=Math.atan2(i[1]-g,i[0]-m);0>o&&(o=2*Math.PI+o);var n=i[0]=g;g+=.1){a[0]=c(o[0],n[0],d[0],g),a[1]=c(o[1],n[1],d[1],g);var v=u(h(a,t)-p);f>v&&(f=v,i=g)}for(var y=0;32>y;y++){var x=i+m;s[0]=c(o[0],n[0],d[0],i),s[1]=c(o[1],n[1],d[1],i),l[0]=c(o[0],n[0],d[0],x),l[1]=c(o[1],n[1],d[1],x);var v=h(s,t)-p;if(u(v)<.01)break;var b=h(l,t)-p;m/=2,0>v?b>=0?i+=m:i-=m:b>=0?i-=m:i+=m}return i}var o=r(25),n=r(5),a=[],s=[],l=[],c=o.quadraticAt,h=n.distSquare,u=Math.abs;e.exports=function(e,t){function r(e){var t=e.getVisual("symbolSize");return t instanceof Array&&(t=(t[0]+t[1])/2),t}var a=[],s=o.quadraticSubdivide,l=[[],[],[]],c=[[],[]],h=[];t/=2,e.eachEdge(function(e,o){var u=e.getLayout(),d=e.getVisual("fromSymbol"),f=e.getVisual("toSymbol");u.__original||(u.__original=[n.clone(u[0]),n.clone(u[1])],u[2]&&u.__original.push(n.clone(u[2])));var p=u.__original;if(null!=u[2]){if(n.copy(l[0],p[0]),n.copy(l[1],p[2]),n.copy(l[2],p[1]),d&&"none"!=d){var m=r(e.node1),g=i(l,p[0],m*t);s(l[0][0],l[1][0],l[2][0],g,a),l[0][0]=a[3],l[1][0]=a[4],s(l[0][1],l[1][1],l[2][1],g,a),l[0][1]=a[3],l[1][1]=a[4]}if(f&&"none"!=f){var m=r(e.node2),g=i(l,p[1],m*t);s(l[0][0],l[1][0],l[2][0],g,a),l[1][0]=a[1],l[2][0]=a[2],s(l[0][1],l[1][1],l[2][1],g,a),l[1][1]=a[1],l[2][1]=a[2]}n.copy(u[0],l[0]),n.copy(u[1],l[2]),n.copy(u[2],l[1])}else{if(n.copy(c[0],p[0]),n.copy(c[1],p[1]),n.sub(h,c[1],c[0]),n.normalize(h,h),d&&"none"!=d){var m=r(e.node1);n.scaleAndAdd(c[0],c[0],h,m*t)}if(f&&"none"!=f){var m=r(e.node2);n.scaleAndAdd(c[1],c[1],h,-m*t)}n.copy(u[0],c[0]),n.copy(u[1],c[1])}})}},function(e,t){e.exports=function(e){var t=e.findComponents({mainType:"legend"});t&&t.length&&e.eachSeriesByType("graph",function(e){var r=e.getCategoriesData(),i=e.getGraph(),o=i.data,n=r.mapArray(r.getName);o.filterSelf(function(e){var r=o.getItemModel(e),i=r.getShallow("category");if(null!=i){"number"==typeof i&&(i=n[i]);for(var a=0;as;s++){var g=e[s];g.fixed||(i.sub(n,l,g.p),i.scaleAndAdd(g.p,g.p,n,c*d))}for(var s=0;a>s;s++)for(var u=e[s],v=s+1;a>v;v++){var f=e[v];i.sub(n,f.p,u.p);var p=i.len(n);0===p&&(i.set(n,Math.random()-.5,Math.random()-.5),p=1);var y=(u.rep+f.rep)/p/p;!u.fixed&&o(u.pp,u.pp,n,y),!f.fixed&&o(f.pp,f.pp,n,-y)}for(var x=[],s=0;a>s;s++){var g=e[s];g.fixed||(i.sub(x,g.p,g.pp),i.scaleAndAdd(g.p,g.p,x,d),i.copy(g.pp,g.p))}d=.992*d,r&&r(e,t,.01>d)}}}},function(e,t,r){var i=r(210),o=r(4),n=r(94),a=r(92),s=r(5),l=r(1);e.exports=function(e){e.eachSeriesByType("graph",function(e){var t=e.coordinateSystem;if(!t||"view"===t.type)if("force"===e.get("layout")){var r=e.preservedPoints||{},c=e.getGraph(),h=c.data,u=c.edgeData,d=e.getModel("force"),f=d.get("initLayout");e.preservedPoints?h.each(function(e){var t=h.getId(e);h.setItemLayout(e,r[t]||[NaN,NaN])}):f&&"none"!==f?"circular"===f&&a(e):n(e);var p=h.getDataExtent("value"),m=u.getDataExtent("value"),g=d.get("repulsion"),v=d.get("edgeLength");l.isArray(g)||(g=[g,g]),l.isArray(v)||(v=[v,v]),v=[v[1],v[0]];var y=h.mapArray("value",function(e,t){var r=h.getItemLayout(t),i=o.linearMap(e,p,g);return isNaN(i)&&(i=(g[0]+g[1])/2),{w:i,rep:i,p:!r||isNaN(r[0])||isNaN(r[1])?null:r}}),x=u.mapArray("value",function(e,t){var r=c.getEdgeByIndex(t),i=o.linearMap(e,m,v);return isNaN(i)&&(i=(v[0]+v[1])/2),{n1:y[r.node1.dataIndex],n2:y[r.node2.dataIndex],d:i,curveness:r.getModel().get("lineStyle.normal.curveness")||0}}),t=e.coordinateSystem,b=t.getBoundingRect(),_=i(y,x,{rect:b,gravity:d.get("gravity")}),S=_.step;_.step=function(e){for(var t=0,i=y.length;i>t;t++)y[t].fixed&&s.copy(y[t].p,c.getNodeByIndex(t).getLayout());S(function(t,i,o){for(var n=0,a=t.length;a>n;n++)t[n].fixed||c.getNodeByIndex(n).setLayout(t[n].p),r[h.getId(n)]=t[n].p;for(var n=0,a=i.length;a>n;n++){var l=i[n],u=c.getEdgeByIndex(n),d=l.n1.p,f=l.n2.p,p=u.getLayout();p=p?p.slice():[],p[0]=p[0]||[],p[1]=p[1]||[],s.copy(p[0],d),s.copy(p[1],f),+l.curveness&&(p[2]=[(d[0]+f[0])/2-(d[1]-f[1])*l.curveness,(d[1]+f[1])/2-(f[0]-d[0])*l.curveness]),u.setLayout(p)}e&&e(o)})},e.forceLayout=_,e.preservedPoints=r,_.step()}else e.forceLayout=null})}},function(e,t,r){var i=r(2),o=r(91),n={type:"graphRoam",event:"graphRoam",update:"none"};i.registerAction(n,function(e,t){t.eachComponent({mainType:"series",query:e},function(t){var r=t.coordinateSystem,i=o.updateCenterAndZoom(r,e);t.setCenter&&t.setCenter(i.center),t.setZoom&&t.setZoom(i.zoom)})})},function(e,t,r){var i=r(94),o=r(93);e.exports=function(e,t){e.eachSeriesByType("graph",function(e){var t=e.get("layout"),r=e.coordinateSystem;if(r&&"view"!==r.type){var n=e.getData();n.each(r.dimensions,function(e,t,i){isNaN(e)||isNaN(t)?n.setItemLayout(i,[NaN,NaN]):n.setItemLayout(i,r.dataToPoint([e,t]))}),o(n.graph)}else t&&"none"!==t||i(e)})}},function(e,t,r){r(216),r(217)},function(e,t,r){function i(){var e=n.createCanvas();this.canvas=e,this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={}}var o=256,n=r(1);i.prototype={update:function(e,t,r,i,n,a){var s=this._getBrush(),l=this._getGradient(e,n,"inRange"),c=this._getGradient(e,n,"outOfRange"),h=this.pointSize+this.blurSize,u=this.canvas,d=u.getContext("2d"),f=e.length;u.width=t,u.height=r;for(var p=0;f>p;++p){var m=e[p],g=m[0],v=m[1],y=m[2],x=i(y);d.globalAlpha=x,d.drawImage(s,g-h,v-h)}for(var b=d.getImageData(0,0,u.width,u.height),_=b.data,S=0,w=_.length,C=this.minOpacity,M=this.maxOpacity,A=M-C;w>S;){var x=_[S+3]/256,I=4*Math.floor(x*(o-1));if(x>0){var T=a(x)?l:c;x>0&&(x=x*A+C),_[S++]=T[I],_[S++]=T[I+1],_[S++]=T[I+2],_[S++]=T[I+3]*x*256}else S+=4}return d.putImageData(b,0,0),u},_getBrush:function(){var e=this._brushCanvas||(this._brushCanvas=n.createCanvas()),t=this.pointSize+this.blurSize,r=2*t;e.width=r,e.height=r;var i=e.getContext("2d");return i.clearRect(0,0,r,r),i.shadowOffsetX=r,i.shadowBlur=this.blurSize,i.shadowColor="#000",i.beginPath(),i.arc(-t,t,this.pointSize,0,2*Math.PI,!0),i.closePath(),i.fill(),e},_getGradient:function(e,t,r){for(var i=this._gradientPixels,o=i[r]||(i[r]=new Uint8ClampedArray(1024)),n=[],a=0,s=0;256>s;s++)t[r](s/255,!0,n),o[a++]=n[0],o[a++]=n[1],o[a++]=n[2],o[a++]=n[3];return o}},e.exports=i},function(e,t,r){var i=r(14),o=r(30);e.exports=i.extend({type:"series.heatmap",getInitialData:function(e,t){return o(e.data,this,t)},defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0}})},function(e,t,r){function i(e,t,r){var i=e[1]-e[0];t=l.map(t,function(t){return{interval:[(t.interval[0]-e[0])/i,(t.interval[1]-e[0])/i]}});var o=t.length,n=0;return function(e){for(var i=n;o>i;i++){var a=t[i].interval;if(a[0]<=e&&e<=a[1]){n=i;break}}if(i===o)for(var i=n-1;i>=0;i--){var a=t[i].interval;if(a[0]<=e&&e<=a[1]){n=i;break}}return i>=0&&o>i&&r[i]}}function o(e,t){var r=e[1]-e[0];return t=[(t[0]-e[0])/r,(t[1]-e[0])/r],function(e){return e>=t[0]&&e<=t[1]}}function n(e){var t=e.dimensions;return"lng"===t[0]&&"lat"===t[1]}var a=r(3),s=r(215),l=r(1);e.exports=r(2).extendChartView({type:"heatmap",render:function(e,t,r){var i;t.eachComponent("visualMap",function(t){t.eachTargetSeries(function(r){r===e&&(i=t)})}),this.group.removeAll();var o=e.coordinateSystem;"cartesian2d"===o.type?this._renderOnCartesian(o,e,r):n(o)&&this._renderOnGeo(o,e,i,r)},_renderOnCartesian:function(e,t,r){var i=e.getAxis("x"),o=e.getAxis("y"),n=this.group,s=i.getBandWidth(),c=o.getBandWidth(),h=t.getData(),u="itemStyle.normal",d="itemStyle.emphasis",f="label.normal",p="label.emphasis",m=t.getModel(u).getItemStyle(["color"]),g=t.getModel(d).getItemStyle(),v=t.getModel("label.normal"),y=t.getModel("label.emphasis");h.each(["x","y","z"],function(r,i,o,x){var b=h.getItemModel(x),_=e.dataToPoint([r,i]);if(!isNaN(o)){var S=new a.Rect({shape:{x:_[0]-s/2,y:_[1]-c/2,width:s,height:c},style:{fill:h.getItemVisual(x,"color"),opacity:h.getItemVisual(x,"opacity")}});h.hasItemOption&&(m=b.getModel(u).getItemStyle(["color"]),g=b.getModel(d).getItemStyle(),v=b.getModel(f),y=b.getModel(p));var w=t.getRawValue(x),C="-";w&&null!=w[2]&&(C=w[2]),v.getShallow("show")&&(a.setText(m,v),m.text=t.getFormattedLabel(x,"normal")||C),y.getShallow("show")&&(a.setText(g,y),g.text=t.getFormattedLabel(x,"emphasis")||C),S.setStyle(m),a.setHoverStyle(S,h.hasItemOption?g:l.extend({},g)),n.add(S),h.setItemGraphicEl(x,S)}})},_renderOnGeo:function(e,t,r,n){var l=r.targetVisuals.inRange,c=r.targetVisuals.outOfRange,h=t.getData(),u=this._hmLayer||this._hmLayer||new s;u.blurSize=t.get("blurSize"),u.pointSize=t.get("pointSize"),u.minOpacity=t.get("minOpacity"),u.maxOpacity=t.get("maxOpacity");var d=e.getViewRect().clone(),f=e.getRoamTransform().transform;d.applyTransform(f);var p=Math.max(d.x,0),m=Math.max(d.y,0),g=Math.min(d.width+d.x,n.getWidth()),v=Math.min(d.height+d.y,n.getHeight()),y=g-p,x=v-m,b=h.mapArray(["lng","lat","value"],function(t,r,i){var o=e.dataToPoint([t,r]);return o[0]-=p,o[1]-=m,o.push(i),o}),_=r.getExtent(),S="visualMap.continuous"===r.type?o(_,r.option.range):i(_,r.getPieceList(),r.option.selected);u.update(b,y,x,l.color.getNormalizer(),{inRange:l.color.getColorMapper(),outOfRange:c.color.getColorMapper()},S);var w=new a.Image({style:{width:y,height:x,x:p,y:m,image:u.canvas},silent:!0});this.group.add(w)}})},function(e,t,r){function i(e,t,r){a.call(this,e,t,r),this._lastFrame=0,this._lastFramePercent=0}var o=r(96),n=r(1),a=r(95),s=r(5),l=i.prototype;l.createLine=function(e,t,r){return new o(e,t,r)},l.updateAnimationPoints=function(e,t){this._points=t;for(var r=[0],i=0,o=1;o=0&&!(i[n]<=t);n--);n=Math.min(n,o-2)}else{for(var n=a;o>n&&!(i[n]>t);n++);n=Math.min(n-1,o-2)}s.lerp(e.position,r[n],r[n+1],(t-i[n])/(i[n+1]-i[n])),this._lastFrame=n,this._lastFramePercent=t,e.ignore=!1}},n.inherits(i,a),e.exports=i},function(e,t,r){function i(e){return a.isArray(e)||(e=[+e,+e]),e}function o(e,t){e.eachChild(function(e){e.attr({z:t.z,zlevel:t.zlevel,style:{stroke:"stroke"===t.brushType?t.color:null,fill:"fill"===t.brushType?t.color:null}})})}function n(e,t){u.call(this);var r=new h(e,t),i=new u;this.add(r),this.add(i),i.beforeUpdate=function(){this.attr(r.getScale())},this.updateData(e,t)}var a=r(1),s=r(19),l=r(3),c=r(4),h=r(58),u=l.Group,d=3,f=n.prototype;f.stopEffectAnimation=function(){this.childAt(1).removeAll()},f.startEffectAnimation=function(e){for(var t=e.symbolType,r=e.color,i=this.childAt(1),n=0;d>n;n++){var a=s.createSymbol(t,-.5,-.5,1,1,r);a.attr({style:{strokeNoScale:!0},z2:99,silent:!0,scale:[1,1]});var l=-n/d*e.period+e.effectOffset;a.animate("",!0).when(e.period,{scale:[e.rippleScale,e.rippleScale]}).delay(l).start(),a.animateStyle(!0).when(e.period,{opacity:0}).delay(l).start(),i.add(a)}o(i,e)},f.updateEffectAnimation=function(e){for(var t=this._effectCfg,r=this.childAt(1),i=["symbolType","period","rippleScale"],n=0;i>n;n++){var a=i[n];if(t[a]!==e[a])return this.stopEffectAnimation(),void this.startEffectAnimation(e)}o(r,e)},f.highlight=function(){this.trigger("emphasis")},f.downplay=function(){ this.trigger("normal")},f.updateData=function(e,t){var r=e.hostModel;this.childAt(0).updateData(e,t);var o=this.childAt(1),n=e.getItemModel(t),a=e.getItemVisual(t,"symbol"),s=i(e.getItemVisual(t,"symbolSize")),l=e.getItemVisual(t,"color");o.attr("scale",s),o.traverse(function(e){e.attr({fill:l})});var h=n.getShallow("symbolOffset");if(h){var u=o.position;u[0]=c.parsePercent(h[0],s[0]),u[1]=c.parsePercent(h[1],s[1])}o.rotation=(n.getShallow("symbolRotate")||0)*Math.PI/180||0;var d={};if(d.showEffectOn=r.get("showEffectOn"),d.rippleScale=n.get("rippleEffect.scale"),d.brushType=n.get("rippleEffect.brushType"),d.period=1e3*n.get("rippleEffect.period"),d.effectOffset=t/e.count(),d.z=n.getShallow("z")||0,d.zlevel=n.getShallow("zlevel")||0,d.symbolType=a,d.color=l,this.off("mouseover").off("mouseout").off("emphasis").off("normal"),"render"===d.showEffectOn)this._effectCfg?this.updateEffectAnimation(d):this.startEffectAnimation(d),this._effectCfg=d;else{this._effectCfg=null,this.stopEffectAnimation();var f=this.childAt(0),p=function(){f.trigger("emphasis"),"render"!==d.showEffectOn&&this.startEffectAnimation(d)},m=function(){f.trigger("normal"),"render"!==d.showEffectOn&&this.stopEffectAnimation()};this.on("mouseover",p,this).on("mouseout",m,this).on("emphasis",p,this).on("normal",m,this)}this._effectCfg=d},f.fadeOut=function(e){this.off("mouseover").off("mouseout").off("emphasis").off("normal"),e&&e()},a.inherits(n,u),e.exports=n},function(e,t,r){function i(){this.group=new o.Group,this._lineEl=new s}var o=r(3),n=r(127),a=r(125),s=o.extendShape({shape:{polyline:!1,segs:[]},buildPath:function(e,t){for(var r=t.segs,i=t.polyline,o=0;o2?e.quadraticCurveTo(n[2][0],n[2][1],n[1][0],n[1][1]):e.lineTo(n[1][0],n[1][1])}},findDataIndex:function(e,t){for(var r=this.shape,i=r.segs,o=r.polyline,s=Math.max(this.style.lineWidth,1),l=0;l2){if(n.containStroke(c[0][0],c[0][1],c[2][0],c[2][1],c[1][0],c[1][1],s,e,t))return l}else if(a.containStroke(c[0][0],c[0][1],c[1][0],c[1][1],s,e,t))return l}return-1}}),l=i.prototype;l.updateData=function(e){this.group.removeAll();var t=this._lineEl,r=e.hostModel;t.setShape({segs:e.mapArray(e.getItemLayout),polyline:r.get("polyline")}),t.useStyle(r.getModel("lineStyle.normal").getLineStyle());var i=e.getVisual("color");i&&t.setStyle("stroke",i),t.setStyle("fill"),t.seriesIndex=r.seriesIndex,t.on("mousemove",function(e){t.dataIndex=null;var r=t.findDataIndex(e.offsetX,e.offsetY);r>0&&(t.dataIndex=r)}),this.group.add(t)},l.updateLayout=function(e){var t=e.getData();this._lineEl.setShape({segs:t.mapArray(t.getItemLayout)})},l.remove=function(){this.group.removeAll()},e.exports=i},function(e,t,r){function i(){this.group=new o.Group,this._symbolEl=new a({})}var o=r(3),n=r(19),a=o.extendShape({shape:{points:null,sizes:null},symbolProxy:null,buildPath:function(e,t){for(var r=t.points,i=t.sizes,o=this.symbolProxy,n=o.shape,a=0;a=0;n--){var a=i[n],s=o[n],l=a[0]-s[0]/2,c=a[1]-s[1]/2;if(e>=l&&t>=c&&e<=l+s[0]&&t<=c+s[1])return n}return-1}}),s=i.prototype;s.updateData=function(e){this.group.removeAll();var t=this._symbolEl,r=e.hostModel;t.setShape({points:e.mapArray(e.getItemLayout),sizes:e.mapArray(function(t){var r=e.getItemVisual(t,"symbolSize");return r instanceof Array||(r=[r,r]),r})}),t.symbolProxy=n.createSymbol(e.getVisual("symbol"),0,0,0,0),t.setColor=t.symbolProxy.setColor,t.useStyle(r.getModel("itemStyle.normal").getItemStyle(["color"]));var i=e.getVisual("color");i&&t.setColor(i),t.seriesIndex=r.seriesIndex,t.on("mousemove",function(e){t.dataIndex=null;var r=t.findDataIndex(e.offsetX,e.offsetY);r>0&&(t.dataIndex=r)}),this.group.add(t)},s.updateLayout=function(e){var t=e.getData();this._symbolEl.setShape({points:t.mapArray(t.getItemLayout)})},s.remove=function(){this.group.removeAll()},e.exports=i},function(e,t,r){function i(e){return isNaN(+e.cpx1)||isNaN(+e.cpy1)}var o=r(3),n=r(5),a=o.Line.prototype,s=o.BezierCurve.prototype;e.exports=o.extendShape({type:"ec-line",style:{stroke:"#000",fill:null},shape:{x1:0,y1:0,x2:0,y2:0,percent:1,cpx1:null,cpy1:null},buildPath:function(e,t){(i(t)?a:s).buildPath(e,t)},pointAt:function(e){return i(this.shape)?a.pointAt.call(this,e):s.pointAt.call(this,e)},tangentAt:function(e){var t=this.shape,r=i(t)?[t.x2-t.x1,t.y2-t.y1]:s.tangentAt.call(this,e);return n.normalize(r,r)}})},function(e,t,r){function i(e,t,r,i){l.Group.call(this),this.bodyIndex,this.whiskerIndex,this.styleUpdater=r,this._createContent(e,t,i),this.updateData(e,t,i),this._seriesModel}function o(e,t,r){return s.map(e,function(e){return e=e.slice(),e[t]=r.initBaseline,e})}function n(e){var t={};return s.each(e,function(e,r){t["ends"+r]=e}),t}function a(e){this.group=new l.Group,this.styleUpdater=e}var s=r(1),l=r(3),c=r(13),h=c.extend({type:"whiskerInBox",shape:{},buildPath:function(e,t){for(var r in t)if(0===r.indexOf("ends")){var i=t[r];e.moveTo(i[0][0],i[0][1]),e.lineTo(i[1][0],i[1][1])}}}),u=i.prototype;u._createContent=function(e,t,r){var i=e.getItemLayout(t),a="horizontal"===i.chartLayout?1:0,c=0;this.add(new l.Polygon({shape:{points:r?o(i.bodyEnds,a,i):i.bodyEnds},style:{strokeNoScale:!0},z2:100})),this.bodyIndex=c++;var u=s.map(i.whiskerEnds,function(e){return r?o(e,a,i):e});this.add(new h({shape:n(u),style:{strokeNoScale:!0},z2:100})),this.whiskerIndex=c++},u.updateData=function(e,t,r){var i=this._seriesModel=e.hostModel,o=e.getItemLayout(t),a=l[r?"initProps":"updateProps"];a(this.childAt(this.bodyIndex),{shape:{points:o.bodyEnds}},i,t),a(this.childAt(this.whiskerIndex),{shape:n(o.whiskerEnds)},i,t),this.styleUpdater.call(null,this,e,t)},s.inherits(i,l.Group);var d=a.prototype;d.updateData=function(e){var t=this.group,r=this._data,o=this.styleUpdater;e.diff(r).add(function(r){if(e.hasValue(r)){var n=new i(e,r,o,!0);e.setItemGraphicEl(r,n),t.add(n)}}).update(function(n,a){var s=r.getItemGraphicEl(a);return e.hasValue(n)?(s?s.updateData(e,n):s=new i(e,n,o),t.add(s),void e.setItemGraphicEl(n,s)):void t.remove(s)}).remove(function(e){var i=r.getItemGraphicEl(e);i&&t.remove(i)}).execute(),this._data=e},d.remove=function(){var e=this.group,t=this._data;this._data=null,t&&t.eachItemGraphicEl(function(t){t&&e.remove(t)})},e.exports=a},function(e,t,r){var i=r(1),o=r(2),n=o.PRIORITY;r(225),r(226),o.registerVisual(i.curry(r(39),"line","circle","line")),o.registerLayout(i.curry(r(67),"line")),o.registerProcessor(n.PROCESSOR.STATISTIC,i.curry(r(388),"line")),r(45)},function(e,t,r){"use strict";var i=r(30),o=r(14);e.exports=o.extend({type:"series.line",dependencies:["grid","polar"],getInitialData:function(e,t){return i(e.data,this,t)},defaultOption:{zlevel:0,z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,hoverAnimation:!0,clipOverflow:!0,label:{normal:{position:"top"}},lineStyle:{normal:{width:2,type:"solid"}},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:!1,connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0}})},function(e,t,r){"use strict";function i(e,t){if(e.length===t.length){for(var r=0;rt[0]?1:-1;t[0]+=i*r,t[1]-=i*r}return t}function a(e){return e>=0?1:-1}function s(e,t){var r=e.getBaseAxis(),i=e.getOtherAxis(r),o=r.onZero?0:i.scale.getExtent()[0],n=i.dim,s="x"===n||"radius"===n?1:0;return t.mapArray([n],function(i,l){for(var c,h=t.stackedOn;h&&a(h.get(n,l))===a(i);){c=h;break}var u=[];return u[s]=t.get(r.dim,l),u[1-s]=c?c.get(n,l,!0):o,e.dataToPoint(u)},!0)}function l(e,t){return null!=t.dataIndex?t.dataIndex:null!=t.name?e.indexOfName(t.name):void 0}function c(e,t,r){var i=n(e.getAxis("x")),o=n(e.getAxis("y")),a=e.getBaseAxis().isHorizontal(),s=Math.min(i[0],i[1]),l=Math.min(o[0],o[1]),c=Math.max(i[0],i[1])-s,h=Math.max(o[0],o[1])-l,u=r.get("lineStyle.normal.width")||2,d=r.get("clipOverflow")?u/2:Math.max(c,h);a?(l-=d,h+=2*d):(s-=d,c+=2*d);var f=new x.Rect({shape:{x:s,y:l,width:c,height:h}});return t&&(f.shape[a?"width":"height"]=0,x.initProps(f,{shape:{width:c,height:h}},r)),f}function h(e,t,r){var i=e.getAngleAxis(),o=e.getRadiusAxis(),n=o.getExtent(),a=i.getExtent(),s=Math.PI/180,l=new x.Sector({shape:{cx:e.cx,cy:e.cy,r0:n[0],r:n[1],startAngle:-a[0]*s,endAngle:-a[1]*s,clockwise:i.inverse}});return t&&(l.shape.endAngle=-a[0]*s,x.initProps(l,{shape:{endAngle:-a[1]*s}},r)),l}function u(e,t,r){return"polar"===e.type?h(e,t,r):c(e,t,r)}function d(e,t,r){for(var i=t.getBaseAxis(),o="x"===i.dim||"radius"===i.dim?0:1,n=[],a=0;a=0;o--)if(r[o].dimension<2){i=r[o];break}if(i&&"cartesian2d"===t.type){var n=i.dimension,a=e.dimensions[n],s=e.getDataExtent(a),l=i.stops,c=[];l[0].interval&&l.sort(function(e,t){return e.interval[0]-t.interval[0]});var h=l[0],u=l[l.length-1],d=h.interval?f(h.interval[0],s):h.value,p=u.interval?f(u.interval[1],s):u.value,m=p-d;if(0===m)return e.getItemVisual(0,"color");for(var o=0;o=0){var a=o.getItemGraphicEl(n);if(!a){var s=o.getItemLayout(n);a=new v(o,n),a.position=s,a.setZ(e.get("zlevel"),e.get("z")),a.ignore=isNaN(s[0])||isNaN(s[1]),a.__temp=!0,o.setItemGraphicEl(n,a),a.stopSymbolAnimation(!0),this.group.add(a)}a.highlight()}else _.prototype.highlight.call(this,e,t,r,i)},downplay:function(e,t,r,i){var o=e.getData(),n=l(o,i);if(null!=n&&n>=0){var a=o.getItemGraphicEl(n);a&&(a.__temp?(o.setItemGraphicEl(n,null),this.group.remove(a)):a.downplay())}else _.prototype.downplay.call(this,e,t,r,i)},_newPolyline:function(e){var t=this._polyline;return t&&this._lineGroup.remove(t),t=new b.Polyline({shape:{points:e},silent:!0,z2:10}),this._lineGroup.add(t),this._polyline=t,t},_newPolygon:function(e,t){var r=this._polygon;return r&&this._lineGroup.remove(r),r=new b.Polygon({shape:{points:e,stackedOnPoints:t},silent:!0}),this._lineGroup.add(r),this._polygon=r,r},_getSymbolIgnoreFunc:function(e,t){var r=t.getAxesByScale("ordinal")[0];return r&&r.isLabelIgnored?m.bind(r.isLabelIgnored,r):void 0},_updateAnimation:function(e,t,r,i,o){var n=this._polyline,a=this._polygon,s=e.hostModel,l=y(this._data,e,this._stackedOnPoints,t,this._coordSys,r),c=l.current,h=l.stackedOnCurrent,u=l.next,f=l.stackedOnNext;o&&(c=d(l.current,r,o),h=d(l.stackedOnCurrent,r,o),u=d(l.next,r,o),f=d(l.stackedOnNext,r,o)),n.shape.__points=l.current,n.shape.points=c,x.updateProps(n,{shape:{points:u}},s),a&&(a.setShape({points:c,stackedOnPoints:h}),x.updateProps(a,{shape:{points:u,stackedOnPoints:f,__points:l.next}},s));for(var p=[],m=l.status,g=0;g=0?1:-1}function i(e,t,i){for(var o,n=e.getBaseAxis(),a=e.getOtherAxis(n),s=n.onZero?0:a.scale.getExtent()[0],l=a.dim,c="x"===l||"radius"===l?1:0,h=t.stackedOn,u=t.get(l,i);h&&r(h.get(l,i))===r(u);){o=h;break}var d=[];return d[c]=t.get(n.dim,i),d[1-c]=o?o.get(l,i,!0):s,e.dataToPoint(d)}function o(e,t){var r=[];return t.diff(e).add(function(e){r.push({cmd:"+",idx:e})}).update(function(e,t){r.push({cmd:"=",idx:t,idx1:e})}).remove(function(e){r.push({cmd:"-",idx:e})}).execute(),r}e.exports=function(e,t,r,n,a,s){for(var l=o(e,t),c=[],h=[],u=[],d=[],f=[],p=[],m=[],g=s.dimensions,v=0;vS;S++){var w=t[_];if(_>=n||0>_)break;if(i(w)){if(x){_+=a;continue}break}if(_===r)e[a>0?"moveTo":"lineTo"](w[0],w[1]),u(f,w);else if(v>0){var C=_+a,M=t[C];if(x)for(;M&&i(t[C]);)C+=a,M=t[C];var A=.5,I=t[b],M=t[C];if(!M||i(M))u(p,w);else{i(M)&&!x&&(M=w),s.sub(d,M,I);var T,P;if("x"===y||"y"===y){var L="x"===y?0:1;T=Math.abs(w[L]-I[L]),P=Math.abs(w[L]-M[L])}else T=s.dist(w,I),P=s.dist(w,M);A=P/(P+T),h(p,w,d,-v*(1-A))}l(f,f,g),c(f,f,m),l(p,p,g),c(p,p,m),e.bezierCurveTo(f[0],f[1],p[0],p[1],w[0],w[1]),h(f,w,d,v*A)}else e.lineTo(w[0],w[1]);b=_,_+=a}return S}function n(e,t){var r=[1/0,1/0],i=[-(1/0),-(1/0)];if(t)for(var o=0;oi[0]&&(i[0]=n[0]),n[1]>i[1]&&(i[1]=n[1])}return{min:t?r:i,max:t?i:r}}var a=r(13),s=r(5),l=s.min,c=s.max,h=s.scaleAndAdd,u=s.copy,d=[],f=[],p=[];e.exports={Polyline:a.extend({type:"ec-polyline",shape:{points:[],smooth:0,smoothConstraint:!0,smoothMonotone:null,connectNulls:!1},style:{fill:null,stroke:"#000"},buildPath:function(e,t){var r=t.points,a=0,s=r.length,l=n(r,t.smoothConstraint);if(t.connectNulls){for(;s>0&&i(r[s-1]);s--);for(;s>a&&i(r[a]);a++);}for(;s>a;)a+=o(e,r,a,s,s,1,l.min,l.max,t.smooth,t.smoothMonotone,t.connectNulls)+1}}),Polygon:a.extend({type:"ec-polygon",shape:{points:[],stackedOnPoints:[],smooth:0,stackedOnSmooth:0,smoothConstraint:!0,smoothMonotone:null,connectNulls:!1},buildPath:function(e,t){var r=t.points,a=t.stackedOnPoints,s=0,l=r.length,c=t.smoothMonotone,h=n(r,t.smoothConstraint),u=n(a,t.smoothConstraint);if(t.connectNulls){for(;l>0&&i(r[l-1]);l--);for(;l>s&&i(r[s]);s++);}for(;l>s;){var d=o(e,r,s,l,l,1,h.min,h.max,t.smooth,c,t.connectNulls);o(e,a,s+d-1,d,l,-1,u.min,u.max,t.stackedOnSmooth,c,t.connectNulls),s+=d+1,e.closePath()}}})}},function(e,t,r){r(230),r(231);var i=r(2);i.registerLayout(r(232))},function(e,t,r){"use strict";function i(e){var t=e.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(e.data=a.map(t,function(e){var t=[e[0].coord,e[1].coord],r={coords:t};return e[0].name&&(r.fromName=e[0].name),e[1].name&&(r.toName=e[1].name),a.mergeAll([r,e[0],e[1]])}))}var o=r(14),n=r(8),a=r(1),s=(r(18),o.extend({type:"series.lines",dependencies:["grid","polar"],visualColorAccessPath:"lineStyle.normal.color",init:function(e){i(e),s.superApply(this,"init",arguments)},mergeOption:function(e){i(e),s.superApply(this,"mergeOption",arguments)},getInitialData:function(e,t){var r=new n(["value"],this);return r.hasItemOption=!1,r.initData(e.data,[],function(e,t,i,o){if(e instanceof Array)return NaN;r.hasItemOption=!0;var n=e.value;return n?n instanceof Array?n[o]:n:void 0}),r},formatTooltip:function(e){var t=this.getData(),r=t.getItemModel(e),i=r.get("name");if(i)return i;var o=r.get("fromName"),n=r.get("toName");return o+" > "+n},defaultOption:{coordinateSystem:"geo",zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,xAxisIndex:0,yAxisIndex:0,geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,label:{normal:{show:!1,position:"end"}},lineStyle:{normal:{opacity:.5}}}}))},function(e,t,r){var i=r(57),o=r(95),n=r(56),a=r(96),s=r(218),l=r(220);r(2).extendChartView({type:"lines",init:function(){},render:function(e,t,r){var c=e.getData(),h=this._lineDraw,u=e.get("effect.show"),d=e.get("polyline"),f=e.get("large")&&c.count()>=e.get("largeThreshold");u===this._hasEffet&&d===this._isPolyline&&f===this._isLarge||(h&&h.remove(),h=this._lineDraw=f?new l:new i(d?u?s:a:u?o:n),this._hasEffet=u,this._isPolyline=d,this._isLarge=f);var p=e.get("zlevel"),m=e.get("effect.trailLength"),g=r.getZr();g.painter.getLayer(p).clear(!0),null!=this._lastZlevel&&g.configLayer(this._lastZlevel,{motionBlur:!1}),u&&m&&g.configLayer(p,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(m/10+.9,1),0)}),this.group.add(h.group),h.updateData(c),this._lastZlevel=p},updateLayout:function(e,t,r){this._lineDraw.updateLayout(e);var i=r.getZr();i.painter.getLayer(this._lastZlevel).clear(!0)},remove:function(e,t){this._lineDraw&&this._lineDraw.remove(t,!0)}})},function(e,t,r){e.exports=function(e){e.eachSeriesByType("lines",function(e){var t=e.coordinateSystem,r=e.getData();r.each(function(i){var o=r.getItemModel(i),n=o.option instanceof Array?o.option:o.get("coords"),a=[];if(e.get("polyline"))for(var s=0;s"+i+" : "+r},defaultOption:{zlevel:0,z:2,coordinateSystem:"geo",map:"china",left:"center",top:"center",aspectScale:.75,showLegendSymbol:!0,dataRangeHoverLink:!0,center:null,zoom:1,scaleLimit:null,label:{normal:{show:!1,textStyle:{color:"#000"}},emphasis:{show:!0,textStyle:{color:"rgb(100,0,0)"}}},itemStyle:{normal:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{areaColor:"rgba(255,215,0,0.8)"}}},setZoom:function(e){this.option.zoom=e},setCenter:function(e){this.option.center=e}});n.mixin(d,h),e.exports=d},function(e,t,r){var i=r(3),o=r(103);r(2).extendChartView({type:"map",render:function(e,t,r,i){if(!i||"mapToggleSelect"!==i.type||i.from!==this.uid){var n=this.group;if(n.removeAll(),i&&"geoRoam"===i.type&&"series"===i.componentType&&i.seriesId===e.id){var a=this._mapDraw;a&&n.add(a.group)}else if(e.needsDrawMap){var a=this._mapDraw||new o(r,!0);n.add(a.group),a.draw(e,t,r,this,i),this._mapDraw=a}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;e.get("showLegendSymbol")&&t.getComponent("legend")&&this._renderSymbols(e,t,r)}},remove:function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},_renderSymbols:function(e,t,r){var o=e.originalData,n=this.group;o.each("value",function(t,r){if(!isNaN(t)){var a=o.getItemLayout(r);if(a&&a.point){var s=a.point,l=a.offset,c=new i.Circle({style:{fill:e.getData().getVisual("color")},shape:{cx:s[0]+9*l,cy:s[1],r:3},silent:!0,z2:10});if(!l){var h=e.mainSeries.getData(),u=o.getName(r),d=u,f=h.indexOfName(u),p=o.getItemModel(r),m=p.getModel("label.normal"),g=p.getModel("label.emphasis"),v=m.getModel("textStyle"),y=g.getModel("textStyle"),x=h.getItemGraphicEl(f);c.setStyle({textPosition:"bottom"});var b=function(){c.setStyle({text:g.get("show")?d:"",textFill:y.getTextColor(),textFont:y.getFont()})},_=function(){c.setStyle({text:m.get("show")?d:"",textFill:v.getTextColor(),textFont:v.getFont()})};x.on("mouseover",b).on("mouseout",_).on("emphasis",b).on("normal",_),_()}n.add(c)}}})}})},function(e,t,r){var i=r(1);e.exports=function(e){var t=[];i.each(e.series,function(e){"map"===e.type&&t.push(e)}),i.each(t,function(e){e.map=e.map||e.mapType,i.defaults(e,e.mapLocation)})}},function(e,t,r){function i(e,t){for(var r={},i=["value"],o=0;oh;h++)s=Math.min(s,r[n][h]),l=Math.max(l,r[n][h]),a+=r[n][h];var u;return u="min"===t?s:"max"===t?l:"average"===t?a/c:a,0===c?NaN:u})}var o=r(1);e.exports=function(e){var t={};e.eachSeriesByType("map",function(e){var r=e.get("map");t[r]=t[r]||[],t[r].push(e)}),o.each(t,function(e,t){for(var r=i(o.map(e,function(e){return e.getData()}),e[0].get("mapValueCalculation")),n=0;n=0?t:NaN}})}function o(e){return+e.replace("dim","")}function n(e,t){var r=0;s.each(e,function(e){var t=o(e);t>r&&(r=t)});var i=t[0];i&&i.length-1>r&&(r=i.length-1);for(var n=[],a=0;r>=a;a++)n.push("dim"+a);return n}var a=r(8),s=r(1),l=r(14),c=r(17);e.exports=l.extend({type:"series.parallel",dependencies:["parallel"],getInitialData:function(e,t){var r=t.getComponent("parallel",this.get("parallelIndex")),o=r.parallelAxisIndex,l=e.data,h=r.dimensions,u=n(h,l),d=s.map(u,function(e,r){var n=s.indexOf(h,e),a=n>=0&&t.getComponent("parallelAxis",o[n]);return a&&"category"===a.get("type")?(i(a,e,l),{name:e,type:"ordinal"}):0>n&&c.guessOrdinal(l,r)?{name:e,type:"ordinal"}:e}),f=new a(d,this);return f.initData(l),this.option.progressive&&(this.option.animation=!1),f},getRawIndicesByActiveState:function(e){var t=this.coordinateSystem,r=this.getData(),i=[];return t.eachActiveState(r,function(t,o){e===t&&i.push(r.getRawIndex(o))}),i},defaultOption:{zlevel:0,z:2,coordinateSystem:"parallel",parallelIndex:0,label:{normal:{show:!1},emphasis:{show:!1}},inactiveOpacity:.05,activeOpacity:1,lineStyle:{normal:{width:1,opacity:.45,type:"solid"}},progressive:!1,smooth:!1,animationEasing:"linear"}})},function(e,t,r){function i(e,t,r){var i=e.model,o=e.getRect(),n=new l.Rect({shape:{x:o.x,y:o.y,width:o.width,height:o.height}}),a="horizontal"===i.get("layout")?"width":"height";return n.setShape(a,0),l.initProps(n,{shape:{width:o.width,height:o.height}},t,r),n}function o(e,t,r,i){for(var o=[],n=0;n0){var p=a.getItemLayout(0),m=Math.max(r.getWidth(),r.getHeight())/2,g=l.bind(c.removeClipPath,c);c.setClipPath(this._createClipPath(p.cx,p.cy,m,p.startAngle,p.clockwise,g,e))}this._data=a}},_createClipPath:function(e,t,r,i,o,n,a){var l=new s.Sector({shape:{cx:e,cy:t,r0:0,r:r,startAngle:i,endAngle:i,clockwise:o}});return s.initProps(l,{shape:{endAngle:i+(o?1:-1)*Math.PI*2}},a,n),l}});e.exports=h},function(e,t,r){"use strict";function i(e,t,r,i,o,n,a){function s(t,r,i,o){for(var n=t;r>n;n++)if(e[n].y+=i,n>t&&r>n+1&&e[n+1].y>e[n].y+e[n].height)return void l(n,i/2);l(r-1,i/2)}function l(t,r){for(var i=t;i>=0&&(e[i].y-=r,!(i>0&&e[i].y>e[i-1].y+e[i-1].height));i--);}function c(e,t,r,i,o,n){for(var a=n>0?t?Number.MAX_VALUE:0:t?Number.MAX_VALUE:0,s=0,l=e.length;l>s;s++)if("center"!==e[s].position){var c=Math.abs(e[s].y-i),h=e[s].len,u=e[s].len2,d=o+h>c?Math.sqrt((o+h+u)*(o+h+u)-c*c):Math.abs(e[s].x-r);t&&d>=a&&(d=a-10),!t&&a>=d&&(d=a+10),e[s].x=r+d*n,a=d}}e.sort(function(e,t){return e.y-t.y});for(var h,u=0,d=e.length,f=[],p=[],m=0;d>m;m++)h=e[m].y-u,0>h&&s(m,d,-h,o),u=e[m].y+e[m].height;0>a-u&&l(d-1,u-a);for(var m=0;d>m;m++)e[m].y>=r?p.push(e[m]):f.push(e[m]);c(f,!1,t,r,i,o),c(p,!0,t,r,i,o)}function o(e,t,r,o,n,a){for(var s=[],l=[],c=0;c_?-1:1)*x,P=I;i=T+(0>_?-5:5),o=P,u=[[C,M],[A,I],[T,P]]}d=w?"center":_>0?"left":"right"}var L=m.getModel("textStyle").getFont(),k=m.get("rotate")?0>_?-b+Math.PI:-b:0,E=e.getFormattedLabel(r,"normal")||l.getName(r),D=n.getBoundingRect(E,L,d,"top");h=!!k,f.label={x:i,y:o,position:g,height:D.height,len:y,len2:x,linePoints:u,textAlign:d,verticalAlign:"middle",font:L,rotation:k},w||c.push(f.label)}),!h&&e.get("avoidLabelOverlap")&&o(c,a,s,t,r,i)}},function(e,t,r){var i=r(4),o=i.parsePercent,n=r(247),a=r(1),s=2*Math.PI,l=Math.PI/180;e.exports=function(e,t,r,c){t.eachSeriesByType(e,function(e){var t=e.get("center"),c=e.get("radius");a.isArray(c)||(c=[0,c]),a.isArray(t)||(t=[t,t]);var h=r.getWidth(),u=r.getHeight(),d=Math.min(h,u),f=o(t[0],h),p=o(t[1],u),m=o(c[0],d/2),g=o(c[1],d/2),v=e.getData(),y=-e.get("startAngle")*l,x=e.get("minAngle")*l,b=v.getSum("value"),_=Math.PI/(b||v.count())*2,S=e.get("clockwise"),w=e.get("roseType"),C=v.getDataExtent("value");C[0]=0;var M=s,A=0,I=y,T=S?1:-1;if(v.each("value",function(e,t){var r;r="area"!==w?0===b?_:e*_:s/(v.count()||1),x>r?(r=x,M-=x):A+=e;var o=I+T*r;v.setItemLayout(t,{angle:r,startAngle:I,endAngle:o,clockwise:S,cx:f,cy:p,r0:m,r:w?i.linearMap(e,C,[m,g]):g}),I=o},!0),s>M)if(.001>=M){var P=s/v.count();v.each(function(e){var t=v.getItemLayout(e);t.startAngle=y+T*e*P,t.endAngle=y+T*(e+1)*P})}else _=M/A,I=y,v.each("value",function(e,t){var r=v.getItemLayout(t),i=r.angle===x?x:e*_;r.startAngle=I,r.endAngle=I+T*i,I+=i});n(e,g,h,u)})}},function(e,t,r){var i=r(1),o=r(2);r(312),r(250),r(251),o.registerVisual(i.curry(r(72),"radar")),o.registerVisual(i.curry(r(39),"radar","circle",null)),o.registerLayout(r(253)),o.registerProcessor(i.curry(r(68),"radar")),o.registerPreprocessor(r(252))},function(e,t,r){"use strict";var i=r(14),o=r(8),n=r(17),a=r(1),s=i.extend({type:"series.radar",dependencies:["radar"],init:function(e){s.superApply(this,"init",arguments),this.legendDataProvider=function(){return this._dataBeforeProcessed}},getInitialData:function(e,t){var r=e.data||[],i=n([],r,[],"indicator_"),a=new o(i,this);return a.initData(r),a},formatTooltip:function(e){var t=this.getRawValue(e),r=this.coordinateSystem,i=r.getIndicatorAxes();return(""==this._data.getName(e)?this.name:this._data.getName(e))+"
"+a.map(i,function(e,r){return e.name+" : "+t[r]}).join("
")},defaultOption:{zlevel:0,z:2,coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{normal:{width:2,type:"solid"}},label:{normal:{position:"top"}},symbol:"emptyCircle",symbolSize:4}});e.exports=s},function(e,t,r){function i(e){return n.isArray(e)||(e=[+e,+e]),e}var o=r(3),n=r(1),a=r(19);e.exports=r(2).extendChartView({type:"radar",render:function(e,t,r){function s(e,t){var r=e.getItemVisual(t,"symbol")||"circle",o=e.getItemVisual(t,"color");if("none"!==r){var n=a.createSymbol(r,-.5,-.5,1,1,o);return n.attr({style:{strokeNoScale:!0},z2:100,scale:i(e.getItemVisual(t,"symbolSize"))}),n}}function l(t,r,i,n,a,l){i.removeAll();for(var c=0;cc;c++){var u=i[c];u.setLayout({x:n},!0),u.setLayout({dx:t},!0);for(var d=0,f=u.outEdges.length;f>d;d++)o.push(u.outEdges[d].node2)}i=o,++n}s(e,n),a=(r-t)/(n-1),l(e,a)}function s(e,t){A.each(e,function(e){e.outEdges.length||e.setLayout({x:t-1},!0)})}function l(e,t){A.each(e,function(e){var r=e.getLayout().x*t;e.setLayout({x:r},!0)})}function c(e,t,r,i,o){var n=M().key(function(e){return e.getLayout().x}).sortKeys(S).entries(e).map(function(e){return e.values});h(e,n,t,r,i),u(n,i,r);for(var a=1;o>0;o--)a*=.99,d(n,a),u(n,i,r),p(n,a),u(n,i,r)}function h(e,t,r,i,o){var n=[];A.each(t,function(e){var t=e.length,r=0;A.each(e,function(e){r+=e.getLayout().value});var a=(i-(t-1)*o)/r;n.push(a)}),n.sort(function(e,t){return e-t});var a=n[0];A.each(t,function(e){A.each(e,function(e,t){e.setLayout({y:t},!0);var r=e.getLayout().value*a;e.setLayout({dy:r},!0)})}),A.each(r,function(e){var t=+e.getValue()*a;e.setLayout({dy:t},!0)})}function u(e,t,r){A.each(e,function(e){var i,o,n,a=0,s=e.length;for(e.sort(_),n=0;s>n;n++){if(i=e[n],o=a-i.getLayout().y,o>0){var l=i.getLayout().y+o;i.setLayout({y:l},!0)}a=i.getLayout().y+i.getLayout().dy+t}if(o=a-t-r,o>0){var l=i.getLayout().y-o;for(i.setLayout({y:l},!0),a=i.getLayout().y,n=s-2;n>=0;--n)i=e[n],o=i.getLayout().y+i.getLayout().dy+t-a,o>0&&(l=i.getLayout().y-o,i.setLayout({y:l},!0)),a=i.getLayout().y}})}function d(e,t){A.each(e.slice().reverse(),function(e){A.each(e,function(e){if(e.outEdges.length){var r=x(e.outEdges,f)/x(e.outEdges,w),i=e.getLayout().y+(r-b(e))*t;e.setLayout({y:i},!0)}})})}function f(e){return b(e.node2)*e.getValue()}function p(e,t){A.each(e,function(e){A.each(e,function(e){if(e.inEdges.length){var r=x(e.inEdges,m)/x(e.inEdges,w),i=e.getLayout().y+(r-b(e))*t;e.setLayout({y:i},!0)}})})}function m(e){return b(e.node1)*e.getValue()}function g(e){A.each(e,function(e){e.outEdges.sort(v),e.inEdges.sort(y)}),A.each(e,function(e){var t=0,r=0;A.each(e.outEdges,function(e){e.setLayout({sy:t},!0),t+=e.getLayout().dy}),A.each(e.inEdges,function(e){e.setLayout({ty:r},!0),r+=e.getLayout().dy})})}function v(e,t){return e.node2.getLayout().y-t.node2.getLayout().y}function y(e,t){return e.node1.getLayout().y-t.node1.getLayout().y}function x(e,t){for(var r=0,i=e.length,o=-1;++oe?-1:e>t?1:e===t?0:NaN}function w(e){return e.getValue()}var C=r(6),M=r(393),A=r(1);e.exports=function(e,t,r){e.eachSeriesByType("sankey",function(e){var r=e.get("nodeWidth"),a=e.get("nodeGap"),s=i(e,t);e.layoutInfo=s;var l=s.width,c=s.height,h=e.getGraph(),u=h.nodes,d=h.edges;n(u);var f=u.filter(function(e){return 0===e.getLayout().value}),p=0!==f.length?0:e.get("layoutIterations");o(u,d,r,a,l,c,p)})}},function(e,t,r){var i=r(28);e.exports=function(e,t){e.eachSeriesByType("sankey",function(e){var t=e.getGraph(),r=t.nodes;r.sort(function(e,t){return e.getLayout().value-t.getLayout().value});var o=r[0].getLayout().value,n=r[r.length-1].getLayout().value;r.forEach(function(t){var r=new i({type:"color",mappingMethod:"linear",dataExtent:[o,n],visual:e.get("color")}),a=r.mapValueToVisual(t.getLayout().value);t.setVisual("color",a);var s=t.getModel(),l=s.get("itemStyle.normal.color");null!=l&&t.setVisual("color",l)})})}},function(e,t,r){var i=r(1),o=r(2);r(260),r(261),o.registerVisual(i.curry(r(39),"scatter","circle",null)),o.registerLayout(i.curry(r(67),"scatter")),r(45)},function(e,t,r){"use strict";var i=r(30),o=r(14);e.exports=o.extend({type:"series.scatter",dependencies:["grid","polar"],getInitialData:function(e,t){var r=i(e.data,this,t);return r},brushSelector:"point",defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{normal:{opacity:.8}}}})},function(e,t,r){var i=r(33),o=r(221);r(2).extendChartView({type:"scatter",init:function(){this._normalSymbolDraw=new i,this._largeSymbolDraw=new o},render:function(e,t,r){var i=e.getData(),o=this._largeSymbolDraw,n=this._normalSymbolDraw,a=this.group,s=e.get("large")&&i.count()>e.get("largeThreshold")?o:n;this._symbolDraw=s,s.updateData(i),a.add(s.group),a.remove(s===o?n.group:o.group)},updateLayout:function(e){this._symbolDraw.updateLayout(e)},remove:function(e,t){this._symbolDraw&&this._symbolDraw.remove(t,!0)}})},function(e,t,r){var i=r(2);r(264),r(265),r(266),i.registerVisual(r(268)),i.registerLayout(r(267))},function(e,t,r){function i(e,t){this.group=new n.Group,e.add(this.group),this._onSelect=t||s.noop}function o(e,t,r,i,o,n){var a=[[o?e:e-h,t],[e+r,t],[e+r,t+i],[o?e:e-h,t+i]];return!n&&a.splice(2,0,[e+r+h,t+i/2]),!o&&a.push([e,t+i/2]),a}var n=r(3),a=r(6),s=r(1),l=8,c=8,h=5;i.prototype={constructor:i,render:function(e,t,r){var i=e.getModel("breadcrumb"),o=this.group;if(o.removeAll(),i.get("show")&&r){var n=i.getModel("itemStyle.normal"),s=n.getModel("textStyle"),l={pos:{left:i.get("left"),right:i.get("right"),top:i.get("top"),bottom:i.get("bottom")},box:{width:t.getWidth(),height:t.getHeight()},emptyItemWidth:i.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(i,r,l,s),this._renderContent(i,r,l,n,s),a.positionGroup(o,l.pos,l.box)}},_prepare:function(e,t,r,i){for(var o=t;o;o=o.parentNode){var n=o.getModel().get("name"),a=i.getTextRect(n),s=Math.max(a.width+2*l,r.emptyItemWidth);r.totalWidth+=s+c,r.renderList.push({node:o,text:n,width:s})}},_renderContent:function(e,t,r,i,l){for(var h=0,u=r.emptyItemWidth,d=e.get("height"),f=a.getAvailableSize(r.pos,r.box),p=r.totalWidth,m=r.renderList,g=m.length-1;g>=0;g--){var v=m[g],y=v.width,x=v.text;p>f.width&&(p-=y-u,y=u,x=""),this.group.add(new n.Polygon({shape:{points:o(h,0,y,d,g===m.length-1,0===g)},style:s.defaults(i.getItemStyle(),{lineJoin:"bevel",text:x,textFill:l.getTextColor(),textFont:l.getFont()}),z:10,onclick:s.bind(this._onSelect,this,v.node)})),h+=y+c}},remove:function(){this.group.removeAll()}},e.exports=i},function(e,t,r){function i(e,t){var r=0;s.each(e.children,function(e){i(e,t);var o=e.value;s.isArray(o)&&(o=o[0]),r+=o});var o=e.value;t>=0&&(s.isArray(o)?o=o[0]:e.value=new Array(t)),(null==o||isNaN(o))&&(o=r),0>o&&(o=0),t>=0?e.value[0]=o:e.value=o}function o(e,t){var r=t.get("color");if(r){e=e||[];var i;if(s.each(e,function(e){var t=new l(e),r=t.get("color");(t.get("itemStyle.normal.color")||r&&"none"!==r)&&(i=!0)}),!i){var o=e[0]||(e[0]={});o.color=r.slice()}return e}}var n=r(14),a=r(375),s=r(1),l=r(9),c=r(10),h=c.encodeHTML,u=c.addCommas;e.exports=n.extend({type:"series.treemap",dependencies:["grid","polar"],_viewRoot:null,defaultOption:{progressive:0,hoverLayerThreshold:1/0,left:"center",top:"middle",right:null,bottom:null,width:"80%",height:"80%",sort:!0,clipWindow:"origin",squareRatio:.5*(1+Math.sqrt(5)),leafDepth:null,drillDownIcon:"▶",visualDimension:0,zoomToNodeRatio:.1024,roam:!0,nodeClick:"zoomToNode",animation:!0,animationDurationUpdate:900,animationEasing:"quinticInOut",breadcrumb:{show:!0,height:22,left:"center",top:"bottom",emptyItemWidth:25,itemStyle:{normal:{color:"rgba(0,0,0,0.7)",borderColor:"rgba(255,255,255,0.7)",borderWidth:1,shadowColor:"rgba(150,150,150,1)",shadowBlur:3,shadowOffsetX:0,shadowOffsetY:0,textStyle:{color:"#fff"}},emphasis:{textStyle:{}}}},label:{normal:{show:!0,position:"inside",textStyle:{color:"#fff",ellipsis:!0}}},itemStyle:{normal:{color:null,colorAlpha:null,colorSaturation:null,borderWidth:0,gapWidth:0,borderColor:"#fff",borderColorSaturation:null},emphasis:{}},color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[]},getInitialData:function(e,t){var r=e.data||[],n=e.name;null==n&&(n=e.name);var l={name:n,children:e.data},c=(r[0]||{}).value;i(l,s.isArray(c)?c.length:-1);var h=e.levels||[];return h=e.levels=o(h,t),a.createTree(l,this,h).data},optionUpdated:function(){this.resetViewRoot()},formatTooltip:function(e){var t=this.getData(),r=this.getRawValue(e),i=u(s.isArray(r)?r[0]:r),o=t.getName(e);return h(o)+": "+i},getDataParams:function(e){for(var t=n.prototype.getDataParams.apply(this,arguments),r=this.getData(),i=r.tree.getNodeByDataIndex(e),o=t.treePathInfo=[];i;){var a=i.dataIndex;o.push({name:i.name,dataIndex:a,value:this.getRawValue(a)}),i=i.parentNode}return o.reverse(),t},setLayoutInfo:function(e){this.layoutInfo=this.layoutInfo||{},s.extend(this.layoutInfo,e)},mapIdToIndex:function(e){var t=this._idIndexMap;t||(t=this._idIndexMap={},this._idIndexMapCount=0);var r=t[e];return null==r&&(t[e]=r=this._idIndexMapCount++),r},getViewRoot:function(){return this._viewRoot},resetViewRoot:function(e){e?this._viewRoot=e:e=this._viewRoot;var t=this.getData().tree.root;e&&(e===t||t.contains(e))||(this._viewRoot=t)}})},function(e,t,r){function i(){return{nodeGroup:[],background:[],content:[]}}function o(e,t,r,i,o,l,c,h,u,d){function f(t){R.dataIndex=c.dataIndex,R.seriesIndex=e.seriesIndex;var r=A.borderWidth,i=Math.max(I-2*r,0),o=Math.max(T-2*r,0);R.culling=!0,R.setShape({x:r,y:r,width:i,height:o});var n=c.getVisual("color",!0);p(R,function(){var e={fill:n},t=c.getModel("itemStyle.emphasis").getItemStyle();m(e,t,n,i,o),R.setStyle(e),s.setHoverStyle(R,t)}),t.add(R)}function p(e,t){P?!e.invisible&&l.push(e):(t(),e.__tmWillVisible||(e.invisible=!1))}function m(t,r,i,o,n){var a=c.getModel(),s=a.get("name");if(A.isLeafRoot){var l=e.get("drillDownIcon",!0);s=l?l+" "+s:test}y(s,t,a,b,i,o,n),y(s,r,a,_,i,o,n)}function y(e,t,r,i,o,n,a){var l=r.getModel(i),c=l.getModel("textStyle");s.setText(t,l,o),t.textAlign=c.get("align"),t.textVerticalAlign=c.get("baseline");var h=c.getTextRect(e);!l.getShallow("show")||h.height>a?t.text="":h.width>n?t.text=c.get("ellipsis")?c.truncateText(e,n,null,{minChar:2}):"":t.text=e}function x(e,i,a,s){var l=null!=k&&r[e][k],c=o[e];return l?(r[e][k]=null,S(c,l,e)):P||(l=new i({z:n(a,s)}),l.__tmDepth=a,l.__tmStorageName=e,M(c,l,e)),t[e][L]=l}function S(e,t,r){var i=e[L]={};i.old="nodeGroup"===r?t.position.slice():a.extend({},t.shape)}function M(e,t,r){var n=e[L]={},a=c.parentNode;if(a&&(!i||"drillDown"===i.direction)){var s=0,l=0,h=o.background[a.getRawIndex()];!i&&h&&h.old&&(s=h.old.width,l=h.old.height),n.old="nodeGroup"===r?[0,l]:{x:s,y:l,width:0,height:0}}n.fadein="nodeGroup"!==r}if(c){var A=c.getLayout();if(A&&A.isInView){var I=A.width,T=A.height,P=A.invisible,L=c.getRawIndex(),k=h&&h.getRawIndex(),E=x("nodeGroup",g);if(E){if(u.add(E),E.attr("position",[A.x||0,A.y||0]),E.__tmNodeWidth=I,E.__tmNodeHeight=T,A.isAboveViewRoot)return E;var D=x("background",v,d,w);D&&(D.setShape({x:0,y:0,width:I,height:T}),p(D,function(){D.setStyle("fill",c.getVisual("borderColor",!0))}),E.add(D));var O=c.viewChildren;if(!O||!O.length){var R=x("content",v,d,C);R&&f(E)}return E}}}}function n(e,t){var r=e*S+t;return(r-1)/r}var a=r(1),s=r(3),l=r(49),c=r(44),h=r(263),u=r(46),d=r(7),f=r(20),p=r(392),m=a.bind,g=s.Group,v=s.Rect,y=a.each,x=3,b=["label","normal"],_=["label","emphasis"],S=10,w=1,C=2;e.exports=r(2).extendChartView({type:"treemap",init:function(e,t){this._containerGroup,this._storage=i(),this._oldTree,this._breadcrumb,this._controller,this._state="ready",this._mayClick},render:function(e,t,r,i){var o=t.findComponents({mainType:"series",subType:"treemap",query:i});if(!(a.indexOf(o,e)<0)){this.seriesModel=e,this.api=r,this.ecModel=t;var n=c.retrieveTargetInfo(i,e),s=i&&i.type,l=e.layoutInfo,h=!this._oldTree,u=this._storage,d="treemapRootToNode"===s&&n&&u?{rootNodeGroup:u.nodeGroup[n.node.getRawIndex()],direction:i.direction}:null,f=this._giveContainerGroup(l),p=this._doRender(f,e,d);h||s&&"treemapZoomToNode"!==s&&"treemapRootToNode"!==s?p.renderFinally():this._doAnimation(f,p,e,d),this._resetController(r),this._renderBreadcrumb(e,r,n)}},_giveContainerGroup:function(e){var t=this._containerGroup;return t||(t=this._containerGroup=new g,this._initEvents(t),this.group.add(t)),t.attr("position",[e.x,e.y]),t},_doRender:function(e,t,r){function n(e,t,r,i,o){function s(e){return e.getId()}function c(a,s){var l=null!=a?e[a]:null,c=null!=s?t[s]:null,h=g(l,c,r,o);h&&n(l&&l.viewChildren||[],c&&c.viewChildren||[],h,i,o+1)}i?(t=e,y(e,function(e,t){!e.isRemoved()&&c(t,t)})):new l(t,e,s,s).add(c).update(c).remove(a.curry(c,null)).execute()}function s(e){var t=i();return e&&y(e,function(e,r){var i=t[r];y(e,function(e){e&&(i.push(e),e.__tmWillDelete=1)})}),t}function c(){y(v,function(e){y(e,function(e){e.parent&&e.parent.remove(e)})}),y(m,function(e){e.invisible=!0,e.dirty()})}var h=t.getData().tree,u=this._oldTree,d=i(),f=i(),p=this._storage,m=[],g=a.curry(o,t,f,p,r,d,m);n(h.root?[h.root]:[],u&&u.root?[u.root]:[],e,h===u||!u,0);var v=s(p);return this._oldTree=h,this._storage=f,{lastsForAnimation:d,willDeleteEls:v,renderFinally:c}},_doAnimation:function(e,t,r,i){if(r.get("animation")){var o=r.get("animationDurationUpdate"),n=r.get("animationEasing"),s=p.createWrap();y(t.willDeleteEls,function(e,t){y(e,function(e,r){if(!e.invisible){var a,l=e.parent;if(i&&"drillDown"===i.direction)a=l===i.rootNodeGroup?{shape:{x:0,y:0,width:l.__tmNodeWidth,height:l.__tmNodeHeight},style:{opacity:0}}:{style:{opacity:0}};else{var c=0,h=0;l.__tmWillDelete||(c=l.__tmNodeWidth/2,h=l.__tmNodeHeight/2),a="nodeGroup"===t?{position:[c,h],style:{opacity:0}}:{shape:{x:c,y:h,width:0,height:0},style:{opacity:0}}}a&&s.add(e,a,o,n)}})}),y(this._storage,function(e,r){y(e,function(e,i){var l=t.lastsForAnimation[r][i],c={};l&&("nodeGroup"===r?l.old&&(c.position=e.position.slice(),e.attr("position",l.old)):(l.old&&(c.shape=a.extend({},e.shape),e.setShape(l.old)),l.fadein?(e.setStyle("opacity",0),c.style={opacity:1}):1!==e.style.opacity&&(c.style={opacity:1})),s.add(e,c,o,n))})},this),this._state="animating",s.done(m(function(){this._state="ready",t.renderFinally()},this)).start()}},_resetController:function(e){var t=this._controller;t||(t=this._controller=new u(e.getZr()),t.enable(this.seriesModel.get("roam")),t.on("pan",m(this._onPan,this)),t.on("zoom",m(this._onZoom,this)));var r=new d(0,0,e.getWidth(),e.getHeight());t.rectProvider=function(){return r}},_clearController:function(){var e=this._controller;e&&(e.off("pan").off("zoom"),e=null)},_onPan:function(e,t){if(this._mayClick=!1,"animating"!==this._state&&(Math.abs(e)>x||Math.abs(t)>x)){var r=this.seriesModel.getData().tree.root;if(!r)return;var i=r.getLayout();if(!i)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:i.x+e,y:i.y+t,width:i.width,height:i.height}})}},_onZoom:function(e,t,r){if(this._mayClick=!1,"animating"!==this._state){var i=this.seriesModel.getData().tree.root;if(!i)return;var o=i.getLayout();if(!o)return;var n=new d(o.x,o.y,o.width,o.height),a=this.seriesModel.layoutInfo;t-=a.x,r-=a.y;var s=f.create();f.translate(s,s,[-t,-r]),f.scale(s,s,[e,e]),f.translate(s,s,[t,r]),n.applyTransform(s),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:n.x,y:n.y,width:n.width,height:n.height}})}},_initEvents:function(e){function t(e){var t=this.seriesModel.get("nodeClick",!0);if(t){var r=this.findTarget(e.offsetX,e.offsetY);if(r){var i=r.node;if(i.getLayout().isLeafRoot)this._rootToNode(r);else if("zoomToNode"===t)this._zoomToNode(r);else if("link"===t){var o=i.hostTree.data.getItemModel(i.dataIndex),n=o.get("link",!0),a=o.get("target",!0)||"blank";n&&window.open(n,a)}}}}e.on("mousedown",function(e){"ready"===this._state&&(this._mayClick=!0)},this),e.on("mouseup",function(e){this._mayClick&&(this._mayClick=!1,"ready"===this._state&&t.call(this,e))},this)},_renderBreadcrumb:function(e,t,r){function i(t){"animating"!==this._state&&(c.aboveViewRoot(e.getViewRoot(),t)?this._rootToNode({node:t}):this._zoomToNode({node:t}))}r||(r=this.findTarget(t.getWidth()/2,t.getHeight()/2),r||(r={node:e.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new h(this.group,m(i,this)))).render(e,t,r.node)},remove:function(){this._clearController(),this._containerGroup&&this._containerGroup.removeAll(),this._storage=i(),this._state="ready",this._breadcrumb&&this._breadcrumb.remove()},dispose:function(){this._clearController()},_zoomToNode:function(e){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},_rootToNode:function(e){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:e.node})},findTarget:function(e,t){var r,i=this.seriesModel.getViewRoot();return i.eachNode({attr:"viewChildren",order:"preorder"},function(i){var o=this._storage.background[i.getRawIndex()];if(o){var n=o.transformCoordToLocal(e,t),a=o.shape;if(!(a.x<=n[0]&&n[0]<=a.x+a.width&&a.y<=n[1]&&n[1]<=a.y+a.height))return!1;r={node:i,offsetX:n[0],offsetY:n[1]}}},this),r}})},function(e,t,r){for(var i=r(2),o=r(44),n=function(){},a=["treemapZoomToNode","treemapRender","treemapMove"],s=0;sC;){var A=v[C];w.push(A),w.area+=A.getLayout().area;var I=c(w,_,t.squareRatio);S>=I?(C++,S=I):(w.area-=w.pop().getLayout().area,h(w,_,y,f,!1),_=b(y.width,y.height),w.length=w.area=0,S=1/0)}if(w.length&&h(w,_,y,f,!0),!r){var T=m.get("childrenVisibleMin");null!=T&&T>g&&(r=!0)}for(var C=0,M=v.length;M>C;C++)o(v[C],t,r,i+1)}}}function n(e,t,r,i,o,n){var c=e.children||[],h=i.sort;"asc"!==h&&"desc"!==h&&(h=null);var u=null!=i.leafDepth&&i.leafDepth<=n;if(o&&!u)return e.viewChildren=[];c=p.filter(c,function(e){return!e.isRemoved()}),s(c,h);var d=l(t,c,h);if(0===d.sum)return e.viewChildren=[];if(d.sum=a(t,r,d.sum,h,c),0===d.sum)return e.viewChildren=[];for(var f=0,m=c.length;m>f;f++){var g=c[f].getValue()/d.sum*r;c[f].setLayout({area:g})}return u&&(c.length&&e.setLayout({isLeafRoot:!0},!0),c.length=0),e.viewChildren=c,e.setLayout({dataExtent:d.dataExtent},!0),c}function a(e,t,r,i,o){if(!i)return r;for(var n=e.get("visibleMin"),a=o.length,s=a,l=a-1;l>=0;l--){var c=o["asc"===i?a-l-1:l].getValue();n>c/r*t&&(s=l,r-=c)}return"asc"===i?o.splice(0,a-s):o.splice(s,a-s),r}function s(e,t){return t&&e.sort(function(e,r){return"asc"===t?e.getValue()-r.getValue():r.getValue()-e.getValue()}),e}function l(e,t,r){for(var i=0,o=0,n=t.length;n>o;o++)i+=t[o].getValue();var a,s=e.get("visualDimension");if(t&&t.length)if("value"===s&&r)a=[t[t.length-1].getValue(),t[0].getValue()],"asc"===r&&a.reverse();else{var a=[1/0,-(1/0)];w(t,function(e){var t=e.getValue(s);ta[1]&&(a[1]=t)})}else a=[NaN,NaN];return{sum:i,dataExtent:a}}function c(e,t,r){for(var i,o=0,n=1/0,a=0,s=e.length;s>a;a++)i=e[a].getLayout().area,i&&(n>i&&(n=i),i>o&&(o=i));var l=e.area*e.area,c=t*t*r;return l?x(c*o/l,l/(c*n)):1/0}function h(e,t,r,i,o){var n=t===r.width?0:1,a=1-n,s=["x","y"],l=["width","height"],c=r[s[n]],h=t?e.area/t:0;(o||h>r[l[a]])&&(h=r[l[a]]);for(var u=0,d=e.length;d>u;u++){var f=e[u],p={},m=h?f.getLayout().area/h:0,g=p[l[a]]=x(h-2*i,0),v=r[s[n]]+r[l[n]]-c,y=u===d-1||m>v?v:m,_=p[l[n]]=x(y-2*i,0);p[s[a]]=r[s[a]]+b(i,g/2),p[s[n]]=c+b(i,_/2),c+=y,f.setLayout(p,!0)}r[s[a]]+=h,r[l[a]]-=h}function u(e,t,r,i,o){var n=(t||{}).node,a=[i,o];if(!n||n===r)return a;for(var s,l=i*o,c=l*e.option.zoomToNodeRatio;s=n.parentNode;){for(var h=0,u=s.children,d=0,f=u.length;f>d;d++)h+=u[d].getValue();var p=n.getValue();if(0===p)return a;c*=h/p;var g=s.getModel("itemStyle.normal").get("borderWidth");isFinite(g)&&(c+=4*g*g+4*g*Math.pow(c,.5)),c>m.MAX_SAFE_INTEGER&&(c=m.MAX_SAFE_INTEGER),n=s}l>c&&(c=l);var v=Math.pow(c/l,.5);return[i*v,o*v]}function d(e,t,r){if(t)return{x:t.x,y:t.y};var i={x:0,y:0};if(!r)return i;var o=r.node,n=o.getLayout();if(!n)return i;for(var a=[n.width/2,n.height/2],s=o;s;){var l=s.getLayout();a[0]+=l.x,a[1]+=l.y,s=s.parentNode}return{x:e.width/2-a[0],y:e.height/2-a[1]}}function f(e,t,r,i,o){var n=e.getLayout(),a=r[o],s=a&&a===e;if(!(a&&!s||o===r.length&&e!==i)){e.setLayout({isInView:!0,invisible:!s&&!t.intersect(n),isAboveViewRoot:s},!0);var l=new y(t.x-n.x,t.y-n.y,t.width,t.height);w(e.viewChildren||[],function(e){f(e,l,r,i,o+1)})}}var p=r(1),m=r(4),g=r(6),v=r(44),y=r(7),v=r(44),x=Math.max,b=Math.min,_=m.parsePercent,S=p.retrieve,w=p.each;e.exports=i},function(e,t,r){function i(e,t,r,s,c,u){var d=e.getModel(),p=e.getLayout();if(p&&!p.invisible&&p.isInView){var g,v=e.getModel(m),y=r[e.depth],x=o(v,t,y,s),b=v.get("borderColor"),_=v.get("borderColorSaturation");null!=_&&(g=n(x,e),b=a(_,g)),e.setVisual("borderColor",b);var S=e.viewChildren;if(S&&S.length){var w=l(e,d,p,v,x,S);f.each(S,function(e,t){if(e.depth>=c.length||e===c[e.depth]){var o=h(d,x,e,t,w,u);i(e,o,r,s,c,u)}})}else g=n(x,e),e.setVisual("color",g)}}function o(e,t,r,i){var o=f.extend({},t);return f.each(["color","colorAlpha","colorSaturation"],function(n){var a=e.get(n,!0);null==a&&r&&(a=r[n]),null==a&&(a=t[n]),null==a&&(a=i.get(n)),null!=a&&(o[n]=a)}),o}function n(e){var t=s(e,"color");if(t){var r=s(e,"colorAlpha"),i=s(e,"colorSaturation");return i&&(t=d.modifyHSL(t,null,null,i)),r&&(t=d.modifyAlpha(t,r)),t}}function a(e,t){return null!=t?d.modifyHSL(t,null,null,e):null}function s(e,t){var r=e[t];return null!=r&&"none"!==r?r:void 0}function l(e,t,r,i,o,n){if(n&&n.length){var a=c(t,"color")||null!=o.color&&"none"!==o.color&&(c(t,"colorAlpha")||c(t,"colorSaturation"));if(a){var s=t.get("colorMappingBy"),l={type:a.name,dataExtent:r.dataExtent,visual:a.range};"color"!==l.type||"index"!==s&&"id"!==s?l.mappingMethod="linear":(l.mappingMethod="category",l.loop=!0);var h=new u(l);return h.__drColorMappingBy=s,h}}}function c(e,t){var r=e.get(t);return p(r)&&r.length?{name:t,range:r}:null}function h(e,t,r,i,o,n){var a=f.extend({},t);if(o){var s=o.type,l="color"===s&&o.__drColorMappingBy,c="index"===l?i:"id"===l?n.mapIdToIndex(r.getId()):r.getValue(e.get("visualDimension"));a[s]=o.mapValueToVisual(c)}return a}var u=r(28),d=r(21),f=r(1),p=f.isArray,m="itemStyle.normal";e.exports=function(e,t,r){var o={mainType:"series",subType:"treemap",query:r};e.eachComponent(o,function(e){var t=e.getData().tree,r=t.root,o=e.getModel(m);if(!r.isRemoved()){var n=f.map(t.levelModels,function(e){return e?e.get(m):null});i(r,{},n,o,e.getViewRoot().getAncestors(),e)}})}},function(e,t,r){"use strict";r(66),r(271)},function(e,t,r){"use strict";r(116),r(272)},function(e,t,r){"use strict";function i(e,t,r,i){var o=e.coordToPoint([t,i]),n=e.coordToPoint([r,i]);return{x1:o[0],y1:o[1],x2:n[0],y2:n[1]}}var o=r(1),n=r(3),a=r(9),s=["axisLine","axisLabel","axisTick","splitLine","splitArea"];r(2).extendComponentView({type:"angleAxis",render:function(e,t){if(this.group.removeAll(),e.get("show")){var r=t.getComponent("polar",e.get("polarIndex")),i=e.axis,n=r.coordinateSystem,a=n.getRadiusAxis().getExtent(),l=i.getTicksCoords();"category"!==i.type&&l.pop(),o.each(s,function(t){e.get(t+".show")&&this["_"+t](e,n,l,a)},this)}},_axisLine:function(e,t,r,i){var o=e.getModel("axisLine.lineStyle"),a=new n.Circle({shape:{cx:t.cx,cy:t.cy,r:i[1]},style:o.getLineStyle(),z2:1,silent:!0});a.style.fill=null,this.group.add(a)},_axisTick:function(e,t,r,a){var s=e.getModel("axisTick"),l=(s.get("inside")?-1:1)*s.get("length"),c=o.map(r,function(e){return new n.Line({shape:i(t,a[1],a[1]+l,e)})});this.group.add(n.mergePath(c,{style:o.defaults(s.getModel("lineStyle").getLineStyle(),{stroke:e.get("axisLine.lineStyle.color")})}))},_axisLabel:function(e,t,r,i){for(var o=e.axis,s=e.get("data"),l=e.getModel("axisLabel"),c=l.getModel("textStyle"),h=e.getFormattedLabels(),u=l.get("margin"),d=o.getLabelsCoords(),f=0;fg?"left":"right",x=Math.abs(m[1]-v)/p<.3?"middle":m[1]>v?"top":"bottom",b=c;s&&s[f]&&s[f].textStyle&&(b=new a(s[f].textStyle,c)),this.group.add(new n.Text({style:{x:m[0],y:m[1],fill:b.getTextColor()||e.get("axisLine.lineStyle.color"),text:h[f],textAlign:y,textVerticalAlign:x,textFont:b.getFont()},silent:!0}))}},_splitLine:function(e,t,r,a){var s=e.getModel("splitLine"),l=s.getModel("lineStyle"),c=l.get("color"),h=0;c=c instanceof Array?c:[c];for(var u=[],d=0;d=v[1])&&(h=!1);var y=o.extend({axisLabelShow:h,strokeContainThreshold:f},m),x=new n(e,y);o.each(l,x.add,x),this._axisGroup.add(x.getGroup()),this._refreshBrushController(y,d,e,f),s.groupTransition(c,this._axisGroup,e)}}},_refreshBrushController:function(e,t,r,i){var n=r.axis,a=o.map(r.activeIntervals,function(e){return{brushType:"lineX",panelId:"pl",range:[n.dataToCoord(e[0],!0),n.dataToCoord(e[1],!0)]}}),s=n.getExtent(),l=30,c={x:s[0]-l,y:-i/2,width:s[1]-s[0]+2*l,height:i};this._brushController.mount({enableGlobalPan:!0,rotation:e.rotation,position:e.position}).setPanels([{panelId:"pl",rect:c}]).enableBrush({brushType:"lineX",brushStyle:t,removeOnClick:!0}).updateCovers(a)},_onBrush:function(e,t){var r=this.axisModel,i=r.axis,n=o.map(e,function(e){return[i.coordToData(e.range[0],!0),i.coordToData(e.range[1],!0)]});(!r.option.realtime===t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:r.id,intervals:n})},dispose:function(){this._brushController.dispose()}});e.exports=c},function(e,t,r){"use strict";function i(e,t,r){return{position:[e.cx,e.cy],rotation:r/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotation:t.getModel("axisLabel").get("rotate"),z2:1}}var o=r(1),n=r(3),a=r(34),s=["axisLine","axisLabel","axisTick","axisName"],l=["splitLine","splitArea"];r(2).extendComponentView({type:"radiusAxis",render:function(e,t){if(this.group.removeAll(),e.get("show")){var r=t.getComponent("polar",e.get("polarIndex")),n=r.coordinateSystem.getAngleAxis(),c=e.axis,h=r.coordinateSystem,u=c.getTicksCoords(),d=n.getExtent()[0],f=c.getExtent(),p=i(h,e,d),m=new a(e,p);o.each(s,m.add,m),this.group.add(m.getGroup()),o.each(l,function(t){e.get(t+".show")&&this["_"+t](e,h,d,f,u)},this)}},_splitLine:function(e,t,r,i,a){var s=e.getModel("splitLine"),l=s.getModel("lineStyle"),c=l.get("color"),h=0;c=c instanceof Array?c:[c];for(var u=[],d=0;du||u>1)return!1;var d=l(r-e,o-e,i-t,n-t)/h;return!(0>d||d>1)}function s(e){return 1e-6>=e&&e>=-1e-6}function l(e,t,r,i){return e*i-t*r}function c(e){var t=e.x,r=e.y,i=e.width,o=e.height;return 0>i&&(t+=i,i=-i),0>o&&(r+=o,o=-o),new u(t,r,i,o)}var h=r(126).contain,u=r(7),d={lineX:i(0),lineY:i(1),rect:{point:function(e,t,r){return r.boundingRect.contain(e[0],e[1])},rect:function(e,t,r){return r.boundingRect.intersect(c(e))}},polygon:{point:function(e,t,r){return r.boundingRect.contain(e[0],e[1])&&h(r.range,e[0],e[1])},rect:function(e,t,r){var i=r.range;if(i.length<=1)return!1;var o=e.x,a=e.y,s=e.width,l=e.height,u=i[0];return h(i,o,a)||h(i,o+s,a)||h(i,o,a+l)||h(i,o+s,a+l)||c(e).contain(u[0],u[1])||n(o,a,o+s,a,i)||n(o,a,o,a+l,i)||n(o+s,a,o+s,a+l,i)||n(o,a+l,o+s,a+l,i)?!0:void 0}}};e.exports=d},function(e,t,r){function i(e,t,r,i,n){if(n){var a=e.getZr();if(!a[x]){a[y]||(a[y]=o);var s=m.createOrUpdate(a,y,r,t);s(e,i)}}}function o(e,t){if(!e.isDisposed()){var r=e.getZr();r[x]=!0,e.dispatchAction({type:"brushSelect",batch:t}),r[x]=!1}}function n(e,t,r,i){for(var o=r.getItemLayout(i),n=0,a=t.length;a>n;n++){var s=t[n];if(e[s.brushType](o,s.selectors,s))return!0}}function a(e){var t=e.brushSelector;if(d.isString(t)){var r=[];return d.each(p,function(e,i){r[i]=e[t]}),r}if(d.isFunction(t)){var i={};return d.each(p,function(e,r){i[r]=t}),i}return t}function s(e,t){var r=e.option.seriesIndex;return null!=r&&"all"!==r&&(d.isArray(r)?d.indexOf(r,t)<0:t!==r)}function l(e){var t=e.selectors={};return d.each(p[e.brushType],function(r,i){t[i]=function(i){return r(i,t,e)}}),e}function c(e){return new f(e[0][0],e[1][0],e[0][1]-e[0][0],e[1][1]-e[1][0])}var h=r(2),u=r(52),d=r(1),f=r(7),p=r(282),m=r(70),g=r(60),v=["inBrush","outOfBrush"],y="__ecBrushSelect",x="__ecInBrushSelectEvent",b=h.PRIORITY.VISUAL.BRUSH;h.registerLayout(b,function(e,t,r){e.eachComponent({mainType:"brush"},function(t){r&&"takeGlobalCursor"===r.type&&t.setBrushOption("brush"===r.key?r.brushOption:{brushType:!1}),t.coordInfoList=g.makeCoordInfoList(t.option,e),g.parseInputRanges(t,e)})}),h.registerVisual(b,function(e,t,r){var o,c,h=[];e.eachComponent({mainType:"brush"},function(t,r){function i(e){return"all"===b||S[e]}function f(e){return!!e.length}function p(e,t){var r=e.coordinateSystem;M|=r.hasAxisbrushed(),i(t)&&r.eachActiveState(e.getData(),function(e,t){"active"===e&&(w[t]=1)})}function m(e,r,o){var l=a(e);if(l&&!s(t,r)&&(d.each(A,function(r){l[r.brushType]&&g.controlSeries(r,t,e)&&o.push(r),M|=f(o)}),i(r)&&f(o))){var c=e.getData();c.each(function(e){n(l,o,c,e)&&(w[e]=1)})}}var y={brushId:t.id,brushIndex:r,brushName:t.name,areas:d.clone(t.areas),selected:[]};h.push(y);var x=t.option,b=x.brushLink,S=[],w=[],C=[],M=0;r||(o=x.throttleType,c=x.throttleDelay);var A=d.map(t.areas,function(e){return l(d.defaults({boundingRect:_[e.brushType](e)},e))}),I=u.createVisualMappings(t.option,v,function(e){e.mappingMethod="fixed"});d.isArray(b)&&d.each(b,function(e){S[e]=1}),e.eachSeries(function(e,t){var r=C[t]=[];"parallel"===e.subType?p(e,t,r):m(e,t,r)}),e.eachSeries(function(e,t){var r={seriesId:e.id,seriesIndex:t,seriesName:e.name,dataIndex:[]};y.selected.push(r);var o=a(e),s=C[t],l=e.getData(),c=i(t)?function(e){return w[e]?(r.dataIndex.push(l.getRawIndex(e)),"inBrush"):"outOfBrush"}:function(e){return n(o,s,l,e)?(r.dataIndex.push(l.getRawIndex(e)),"inBrush"):"outOfBrush"};(i(t)?M:f(s))&&u.applyVisual(v,I,l,c)})}),i(t,o,c,h,r)});var _={lineX:d.noop,lineY:d.noop,rect:function(e){return c(e.range)},polygon:function(e){for(var t,r=e.range,i=0,o=r.length;o>i;i++){t=t||[[1/0,-(1/0)],[1/0,-(1/0)]];var n=r[i];n[0]t[0][1]&&(t[0][1]=n[0]),n[1]t[1][1]&&(t[1][1]=n[1])}return t&&c(t)}}},function(e,t,r){r(102),r(35),r(36),r(290),r(291),r(286),r(287),r(99),r(98)},function(e,t,r){function i(e,t){var r=[1/0,-(1/0)];return c(t,function(t){var i=t.getData();i&&c(t.coordDimToDataDim(e),function(e){var t=i.getDataExtent(e);t[0]r[1]&&(r[1]=t[1])})},this),r}function o(e,t,r){var i=r.getAxisModel(),o=i.axis.scale,a=[0,100],s=[e.start,e.end],u=[];return t=t.slice(),n(t,i,o),c(["startValue","endValue"],function(t){u.push(null!=e[t]?o.parse(e[t]):null)}),c([0,1],function(e){var r=u[e],i=s[e];null!=i||null==r?(null==i&&(i=a[e]),r=o.parse(l.linearMap(i,a,t,!0))):i=l.linearMap(r,t,a,!0),u[e]=r,s[e]=i}),{valueWindow:h(u),percentWindow:h(s)}}function n(e,t,r){return c(["min","max"],function(i,o){var n=t.get(i,!0);null!=n&&(n+"").toLowerCase()!=="data"+i&&(e[o]=r.parse(n))}),t.get("scale",!0)||(e[0]>0&&(e[0]=0),e[1]<0&&(e[1]=0)),e}function a(e,t){var r=e.getAxisModel(),i=e._percentWindow,o=e._valueWindow;if(i){var n=t||0===i[0]&&100===i[1],a=!t&&l.getPixelPrecision(o,[0,500]),s=!(t||20>a&&a>=0),c=t||n||s;r.setRange&&r.setRange(c?null:+o[0].toFixed(a),c?null:+o[1].toFixed(a))}}var s=r(1),l=r(4),c=s.each,h=l.asc,u=function(e,t,r,i){this._dimName=e,this._axisIndex=t,this._valueWindow,this._percentWindow,this._dataExtent,this.ecModel=i,this._dataZoomModel=r};u.prototype={constructor:u,hostedBy:function(e){return this._dataZoomModel===e},getDataExtent:function(){return this._dataExtent.slice()},getDataValueWindow:function(){return this._valueWindow.slice()},getDataPercentWindow:function(){return this._percentWindow.slice()},getTargetSeriesModels:function(){var e=[],t=this.ecModel;return t.eachSeries(function(r){var i=this._dimName,o=t.queryComponents({mainType:i+"Axis",index:r.get(i+"AxisIndex"),id:r.get(i+"AxisId")})[0];this._axisIndex===(o&&o.componentIndex)&&e.push(r)},this),e},getAxisModel:function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},getOtherAxisModel:function(){var e,t,r=this._dimName,i=this.ecModel,o=this.getAxisModel(),n="x"===r||"y"===r;n?(t="gridIndex",e="x"===r?"y":"x"):(t="polarIndex",e="angle"===r?"radius":"angle");var a;return i.eachComponent(e+"Axis",function(e){(e.get(t)||0)===(o.get(t)||0)&&(a=e)}),a},reset:function(e){if(e===this._dataZoomModel){var t=this._dataExtent=i(this._dimName,this.getTargetSeriesModels()),r=o(e.option,t,this);this._valueWindow=r.valueWindow,this._percentWindow=r.percentWindow,a(this)}},restore:function(e){e===this._dataZoomModel&&(this._valueWindow=this._percentWindow=null,a(this,!0))},filterData:function(e){function t(e){return e>=n[0]&&e<=n[1]}if(e===this._dataZoomModel){var r=this._dimName,i=this.getTargetSeriesModels(),o=e.get("filterMode"),n=this._valueWindow,a=this.getOtherAxisModel();e.get("$fromToolbox")&&a&&"category"===a.get("type")&&(o="empty"),c(i,function(e){var i=e.getData();i&&c(e.coordDimToDataDim(r),function(r){"empty"===o?e.setData(i.map(r,function(e){return t(e)?e:NaN})):i.filterSelf(r,t)})})}}},e.exports=u},function(e,t,r){e.exports=r(35).extend({type:"dataZoom.inside",defaultOption:{zoomLock:!1}})},function(e,t,r){function i(e,t,r,i){t=t.slice();var o=i.axisModels[0];if(o){var a=n(e,o,r),s=a.signal*(t[1]-t[0])*a.pixel/a.pixelLength;return c(s,t,[0,100],"rigid"),t}}function o(e,t,r,i,o,s){r=r.slice();var l=o.axisModels[0];if(l){var c=n(t,l,i),h=c.pixel-c.pixelStart,u=h/c.pixelLength*(r[1]-r[0])+r[0];return e=Math.max(e,0),r[0]=(r[0]-u)*e+u,r[1]=(r[1]-u)*e+u,a(r)}}function n(e,t,r){var i=t.axis,o=r.rectProvider(),n={};return"x"===i.dim?(n.pixel=e[0],n.pixelLength=o.width,n.pixelStart=o.x,n.signal=i.inverse?1:-1):(n.pixel=e[1],n.pixelLength=o.height,n.pixelStart=o.y,n.signal=i.inverse?-1:1),n}function a(e){var t=[0,100];return!(e[0]<=t[1])&&(e[0]=t[1]),!(e[1]<=t[1])&&(e[1]=t[1]),!(e[0]>=t[0])&&(e[0]=t[0]),!(e[1]>=t[0])&&(e[1]=t[0]),e}var s=r(36),l=r(1),c=r(62),h=r(292),u=l.bind,d=s.extend({type:"dataZoom.inside",init:function(e,t){this._range},render:function(e,t,r,i){d.superApply(this,"render",arguments),h.shouldRecordRange(i,e.id)&&(this._range=e.getPercentRange());var o=this.getTargetInfo().cartesians,n=l.map(o,function(e){return h.generateCoordId(e.model)});l.each(o,function(t){var i=t.model;h.register(r,{coordId:h.generateCoordId(i),allCoordIds:n,coordinateSystem:i.coordinateSystem,dataZoomId:e.id,throttleRate:e.get("throttle",!0),panGetRange:u(this._onPan,this,t),zoomGetRange:u(this._onZoom,this,t)})},this)},dispose:function(){h.unregister(this.api,this.dataZoomModel.id),d.superApply(this,"dispose",arguments),this._range=null},_onPan:function(e,t,r,o){return this._range=i([r,o],this._range,t,e)},_onZoom:function(e,t,r,i,n){var a=this.dataZoomModel;return a.option.zoomLock?this._range:this._range=o(1/r,[i,n],this._range,t,e,a)}});e.exports=d},function(e,t,r){var i=r(35);e.exports=i.extend({type:"dataZoom.select"})},function(e,t,r){e.exports=r(36).extend({type:"dataZoom.select"})},function(e,t,r){var i=r(35),o=i.extend({type:"dataZoom.slider",layoutMode:"box",defaultOption:{show:!0,right:"ph",top:"ph",width:"ph",height:"ph",left:null,bottom:null,backgroundColor:"rgba(47,69,84,0)",dataBackground:{lineStyle:{color:"#2f4554",width:.5,opacity:.3},areaStyle:{color:"rgba(47,69,84,0.3)",opacity:.3}},borderColor:"#ddd",fillerColor:"rgba(167,183,204,0.4)",handleIcon:"M8.2,13.6V3.9H6.3v9.7H3.1v14.9h3.3v9.7h1.8v-9.7h3.3V13.6H8.2z M9.7,24.4H4.8v-1.4h4.9V24.4z M9.7,19.1H4.8v-1.4h4.9V19.1z",handleSize:"100%",handleStyle:{color:"#a7b7cc"},labelPrecision:null,labelFormatter:null,showDetail:!0,showDataShadow:"auto",realtime:!0,zoomLock:!1,textStyle:{color:"#333"}}});e.exports=o},function(e,t,r){function i(e){return"x"===e?"y":"x"}var o=r(1),n=r(3),a=r(70),s=r(36),l=n.Rect,c=r(4),h=c.linearMap,u=r(6),d=r(62),f=c.asc,p=o.bind,m=o.each,g=7,v=1,y=30,x="horizontal",b="vertical",_=5,S=["line","bar","candlestick","scatter"],w=s.extend({type:"dataZoom.slider",init:function(e,t){this._displayables={},this._orient,this._range,this._handleEnds,this._size,this._handleWidth,this._handleHeight,this._location,this._dragging,this._dataShadowInfo,this.api=t},render:function(e,t,r,i){return w.superApply(this,"render",arguments),a.createOrUpdate(this,"_dispatchZoomAction",this.dataZoomModel.get("throttle"),"fixRate"),this._orient=e.get("orient"),this.dataZoomModel.get("show")===!1?void this.group.removeAll():(i&&"dataZoom"===i.type&&i.from===this.uid||this._buildView(),void this._updateView())},remove:function(){w.superApply(this,"remove",arguments),a.clear(this,"_dispatchZoomAction")},dispose:function(){w.superApply(this,"dispose",arguments),a.clear(this,"_dispatchZoomAction")},_buildView:function(){var e=this.group;e.removeAll(),this._resetLocation(),this._resetInterval();var t=this._displayables.barGroup=new n.Group;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),e.add(t),this._positionGroup()},_resetLocation:function(){var e=this.dataZoomModel,t=this.api,r=this._findCoordRect(),i={width:t.getWidth(),height:t.getHeight()},n=this._orient===x?{right:i.width-r.x-r.width,top:i.height-y-g,width:r.width,height:y}:{right:g,top:r.y,width:y,height:r.height},a=u.getLayoutParams(e.option);o.each(["right","top","width","height"],function(e){"ph"===a[e]&&(a[e]=n[e])});var s=u.getLayoutRect(a,i,e.padding);this._location={x:s.x,y:s.y},this._size=[s.width,s.height],this._orient===b&&this._size.reverse()},_positionGroup:function(){var e=this.group,t=this._location,r=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),o=i&&i.get("inverse"),n=this._displayables.barGroup,a=(this._dataShadowInfo||{}).otherAxisInverse; n.attr(r!==x||o?r===x&&o?{scale:a?[-1,1]:[-1,-1]}:r!==b||o?{scale:a?[-1,-1]:[-1,1],rotation:Math.PI/2}:{scale:a?[1,-1]:[1,1],rotation:Math.PI/2}:{scale:a?[1,1]:[1,-1]});var s=e.getBoundingRect([n]);e.attr("position",[t.x-s.x,t.y-s.y])},_getViewExtent:function(){return[0,this._size[0]]},_renderBackground:function(){var e=this.dataZoomModel,t=this._size;this._displayables.barGroup.add(new l({silent:!0,shape:{x:0,y:0,width:t[0],height:t[1]},style:{fill:e.get("backgroundColor")},z2:-40}))},_renderDataShadow:function(){var e=this._dataShadowInfo=this._prepareDataShadowInfo();if(e){var t=this._size,r=e.series,i=r.getRawData(),a=r.getShadowDim?r.getShadowDim():e.otherDim,s=i.getDataExtent(a),l=.3*(s[1]-s[0]);s=[s[0]-l,s[1]+l];var c=[0,t[1]],u=[0,t[0]],d=[[t[0],0],[0,0]],f=[],p=u[1]/(i.count()-1),m=0,g=Math.round(i.count()/t[0]);i.each([a],function(e,t){if(g>0&&t%g)return void(m+=p);var r=null==e||isNaN(e)||""===e?null:h(e,s,c,!0);null!=r&&(d.push([m,r]),f.push([m,r])),m+=p});var v=this.dataZoomModel;this._displayables.barGroup.add(new n.Polygon({shape:{points:d},style:o.defaults({fill:v.get("dataBackgroundColor")},v.getModel("dataBackground.areaStyle").getAreaStyle()),silent:!0,z2:-20})),this._displayables.barGroup.add(new n.Polyline({shape:{points:f},style:v.getModel("dataBackground.lineStyle").getLineStyle(),silent:!0,z2:-19}))}},_prepareDataShadowInfo:function(){var e=this.dataZoomModel,t=e.get("showDataShadow");if(t!==!1){var r,n=this.ecModel;return e.eachTargetAxis(function(a,s){var l=e.getAxisProxy(a.name,s).getTargetSeriesModels();o.each(l,function(e){if(!(r||t!==!0&&o.indexOf(S,e.get("type"))<0)){var l=i(a.name),c=n.getComponent(a.axis,s).axis;r={thisAxis:c,series:e,thisDim:a.name,otherDim:l,otherAxisInverse:e.coordinateSystem.getOtherAxis(c).inverse}}},this)},this),r}},_renderHandle:function(){var e=this._displayables,t=e.handles=[],r=e.handleLabels=[],i=this._displayables.barGroup,o=this._size,a=this.dataZoomModel;i.add(e.filler=new l({draggable:!0,cursor:"move",drift:p(this._onDragMove,this,"all"),ondragstart:p(this._showDataInfo,this,!0),ondragend:p(this._onDragEnd,this),onmouseover:p(this._showDataInfo,this,!0),onmouseout:p(this._showDataInfo,this,!1),style:{fill:a.get("fillerColor"),textPosition:"inside"}})),i.add(new l(n.subPixelOptimizeRect({silent:!0,shape:{x:0,y:0,width:o[0],height:o[1]},style:{stroke:a.get("dataBackgroundColor")||a.get("borderColor"),lineWidth:v,fill:"rgba(0,0,0,0)"}})));var s=a.get("handleIcon");m([0,1],function(e){var o=n.makePath(s,{style:{strokeNoScale:!0},rectHover:!0,cursor:"vertical"===this._orient?"ns-resize":"ew-resize",draggable:!0,drift:p(this._onDragMove,this,e),ondragend:p(this._onDragEnd,this),onmouseover:p(this._showDataInfo,this,!0),onmouseout:p(this._showDataInfo,this,!1)},{x:-.5,y:0,width:1,height:1},"center"),l=o.getBoundingRect();this._handleHeight=c.parsePercent(a.get("handleSize"),this._size[1]),this._handleWidth=l.width/l.height*this._handleHeight,o.setStyle(a.getModel("handleStyle").getItemStyle());var h=a.get("handleColor");null!=h&&(o.style.fill=h),i.add(t[e]=o);var u=a.textStyleModel;this.group.add(r[e]=new n.Text({silent:!0,invisible:!0,style:{x:0,y:0,text:"",textVerticalAlign:"middle",textAlign:"center",fill:u.getTextColor(),textFont:u.getFont()},z2:10}))},this)},_resetInterval:function(){var e=this._range=this.dataZoomModel.getPercentRange(),t=this._getViewExtent();this._handleEnds=[h(e[0],[0,100],t,!0),h(e[1],[0,100],t,!0)]},_updateInterval:function(e,t){var r=this._handleEnds,i=this._getViewExtent();d(t,r,i,"all"===e||this.dataZoomModel.get("zoomLock")?"rigid":"cross",e),this._range=f([h(r[0],i,[0,100],!0),h(r[1],i,[0,100],!0)])},_updateView:function(){var e=this._displayables,t=this._handleEnds,r=f(t.slice()),i=this._size;m([0,1],function(r){var o=e.handles[r],n=this._handleHeight;o.attr({scale:[n,n],position:[t[r],i[1]/2-n/2]})},this),e.filler.setShape({x:r[0],y:0,width:r[1]-r[0],height:i[1]}),this._updateDataInfo()},_updateDataInfo:function(){function e(e){var t=n.getTransform(r.handles[e].parent,this.group),s=n.transformDirection(0===e?"right":"left",t),l=this._handleWidth/2+_,h=n.applyTransform([c[e]+(0===e?-l:l),this._size[1]/2],t);i[e].setStyle({x:h[0],y:h[1],textVerticalAlign:o===x?"middle":s,textAlign:o===x?s:"center",text:a[e]})}var t=this.dataZoomModel,r=this._displayables,i=r.handleLabels,o=this._orient,a=["",""];if(t.get("showDetail")){var s,l;t.eachTargetAxis(function(e,r){s||(s=t.getAxisProxy(e.name,r).getDataValueWindow(),l=this.ecModel.getComponent(e.axis,r).axis)},this),s&&(a=[this._formatLabel(s[0],l),this._formatLabel(s[1],l)])}var c=f(this._handleEnds.slice());e.call(this,0),e.call(this,1)},_formatLabel:function(e,t){var r=this.dataZoomModel,i=r.get("labelFormatter");if(o.isFunction(i))return i(e);var n=r.get("labelPrecision");return null!=n&&"auto"!==n||(n=t.getPixelPrecision()),e=null==e&&isNaN(e)?"":"category"===t.type||"time"===t.type?t.scale.getLabel(Math.round(e)):e.toFixed(Math.min(n,20)),o.isString(i)&&(e=i.replace("{value}",e)),e},_showDataInfo:function(e){e=this._dragging||e;var t=this._displayables.handleLabels;t[0].attr("invisible",!e),t[1].attr("invisible",!e)},_onDragMove:function(e,t,r){this._dragging=!0;var i=this._applyBarTransform([t,r],!0);this._updateInterval(e,i[0]),this._updateView(),this.dataZoomModel.get("realtime")&&this._dispatchZoomAction()},_onDragEnd:function(){this._dragging=!1,this._showDataInfo(!1),this._dispatchZoomAction()},_dispatchZoomAction:function(){var e=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,start:e[0],end:e[1]})},_applyBarTransform:function(e,t){var r=this._displayables.barGroup.getLocalTransform();return n.applyTransform(e,r,t)},_findCoordRect:function(){var e,t=this.getTargetInfo();if(t.cartesians.length)e=t.cartesians[0].model.coordinateSystem.getRect();else{var r=this.api.getWidth(),i=this.api.getHeight();e={x:.2*r,y:.2*i,width:.6*r,height:.6*i}}return e}});e.exports=w},function(e,t,r){function i(e){var t=e.getZr();return t[p]||(t[p]={})}function o(e,t,r){var i=new u(e.getZr());return i.enable(),i.on("pan",f(a,r)),i.on("zoom",f(s,r)),i}function n(e){h.each(e,function(t,r){t.count||(t.controller.off("pan").off("zoom"),delete e[r])})}function a(e,t,r){l(e,function(i){return i.panGetRange(e.controller,t,r)})}function s(e,t,r,i){l(e,function(o){return o.zoomGetRange(e.controller,t,r,i)})}function l(e,t){var r=[];h.each(e.dataZoomInfos,function(e){var i=t(e);i&&r.push({dataZoomId:e.dataZoomId,start:i[0],end:i[1]})}),e.dispatchAction(r)}function c(e,t){e.dispatchAction({type:"dataZoom",batch:t})}var h=r(1),u=r(46),d=r(70),f=h.curry,p="\x00_ec_dataZoom_roams",m={register:function(e,t){var r=i(e),a=t.dataZoomId,s=t.coordId;h.each(r,function(e,r){var i=e.dataZoomInfos;i[a]&&h.indexOf(t.allCoordIds,s)<0&&(delete i[a],e.count--)}),n(r);var l=r[s];l||(l=r[s]={coordId:s,dataZoomInfos:{},count:0},l.controller=o(e,t,l),l.dispatchAction=h.curry(c,e));var u=t.coordinateSystem.getRect().clone();l.controller.rectProvider=function(){return u},d.createOrUpdate(l,"dispatchAction",t.throttleRate,"fixRate"),!l.dataZoomInfos[a]&&l.count++,l.dataZoomInfos[a]=t},unregister:function(e,t){var r=i(e);h.each(r,function(e){var r=e.dataZoomInfos;r[t]&&(delete r[t],e.count--)}),n(r)},shouldRecordRange:function(e,t){if(e&&"dataZoom"===e.type&&e.batch)for(var r=0,i=e.batch.length;i>r;r++)if(e.batch[r].dataZoomId===t)return!1;return!0},generateCoordId:function(e){return e.type+"\x00_"+e.id}};e.exports=m},function(e,t,r){r(102),r(35),r(36),r(288),r(289),r(99),r(98)},function(e,t,r){function i(e,t){t.update="updateView",o.registerAction(t,function(t,r){var i={};return r.eachComponent({mainType:"geo",query:t},function(r){r[e](t.name);var o=r.coordinateSystem;n.each(o.regions,function(e){i[e.name]=r.isSelected(e.name)||!1})}),{selected:i,name:t.name}})}r(352),r(48),r(295),r(90);var o=r(2),n=r(1);i("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),i("select",{type:"geoSelect",event:"geoselected"}),i("unSelect",{type:"geoUnSelect",event:"geounselected"})},function(e,t,r){"use strict";var i=r(103);e.exports=r(2).extendComponentView({type:"geo",init:function(e,t){var r=new i(t,!0);this._mapDraw=r,this.group.add(r.group)},render:function(e,t,r,i){if(!i||"geoToggleSelect"!==i.type||i.from!==this.uid){var o=this._mapDraw;e.get("show")?o.draw(e,t,r,this,i):this._mapDraw.group.removeAll(),this.group.silent=e.get("silent")}}})},function(e,t,r){r(297),r(299),r(298);var i=r(2);i.registerProcessor(r(300))},function(e,t,r){"use strict";var i=r(1),o=r(9),n=r(2).extendComponentModel({type:"legend",dependencies:["series"],layoutMode:{type:"box",ignoreSize:!0},init:function(e,t,r){this.mergeDefaultAndTheme(e,r),e.selected=e.selected||{}},mergeOption:function(e){n.superCall(this,"mergeOption",e)},optionUpdated:function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&"single"===this.get("selectedMode")){for(var t=!1,r=0;r=0},defaultOption:{zlevel:0,z:4,show:!0,orient:"horizontal",left:"center",top:"top",align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,inactiveColor:"#ccc",textStyle:{color:"#333"},selectedMode:!0,tooltip:{show:!1}}});e.exports=n},function(e,t,r){function i(e,t){t.dispatchAction({type:"legendToggleSelect",name:e})}function o(e,t,r){var i=r.getZr().storage.getDisplayList()[0];i&&i.useHoverLayer||e.get("legendHoverLink")&&r.dispatchAction({type:"highlight",seriesName:e.name,name:t})}function n(e,t,r){var i=r.getZr().storage.getDisplayList()[0];i&&i.useHoverLayer||e.get("legendHoverLink")&&r.dispatchAction({type:"downplay",seriesName:e.name,name:t})}var a=r(1),s=r(19),l=r(3),c=r(105),h=a.curry;e.exports=r(2).extendComponentView({type:"legend",init:function(){this._symbolTypeStore={}},render:function(e,t,r){var s=this.group;if(s.removeAll(),e.get("show")){var u=e.get("selectedMode"),d=e.get("align");"auto"===d&&(d="right"===e.get("left")&&"vertical"===e.get("orient")?"right":"left");var f={};a.each(e.getData(),function(a){var c=a.get("name");if(""===c||"\n"===c)return void s.add(new l.Group({newline:!0}));var p=t.getSeriesByName(c)[0];if(!f[c])if(p){var m=p.getData(),g=m.getVisual("color");"function"==typeof g&&(g=g(p.getDataParams(0)));var v=m.getVisual("legendSymbol")||"roundRect",y=m.getVisual("symbol"),x=this._createItem(c,a,e,v,y,d,g,u);x.on("click",h(i,c,r)).on("mouseover",h(o,p,"",r)).on("mouseout",h(n,p,"",r)),f[c]=!0}else t.eachRawSeries(function(t){if(!f[c]&&t.legendDataProvider){var s=t.legendDataProvider(),l=s.indexOfName(c);if(0>l)return;var p=s.getItemVisual(l,"color"),m="roundRect",g=this._createItem(c,a,e,m,null,d,p,u);g.on("click",h(i,c,r)).on("mouseover",h(o,t,c,r)).on("mouseout",h(n,t,c,r)),f[c]=!0}},this)},this),c.layout(s,e,r),c.addBackground(s,e)}},_createItem:function(e,t,r,i,o,n,c,h){var u=r.get("itemWidth"),d=r.get("itemHeight"),f=r.get("inactiveColor"),p=r.isSelected(e),m=new l.Group,g=t.getModel("textStyle"),v=t.get("icon"),y=t.getModel("tooltip");if(i=v||i,m.add(s.createSymbol(i,0,0,u,d,p?c:f)),!v&&o&&(o!==i||"none"==o)){var x=.8*d;"none"===o&&(o="circle"),m.add(s.createSymbol(o,(u-x)/2,(d-x)/2,x,x,p?c:f))}var b="left"===n?u+5:-5,_=n,S=r.get("formatter"),w=e;"string"==typeof S&&S?w=S.replace("{name}",e):"function"==typeof S&&(w=S(e));var C=new l.Text({style:{text:w,x:b,y:d/2,fill:p?g.getTextColor():f,textFont:g.getFont(),textAlign:_,textVerticalAlign:"middle"}});m.add(C);var M=new l.Rect({shape:m.getBoundingRect(),invisible:!0,tooltip:y.get("show")?a.extend({content:e,formatter:function(){return e},formatterParams:{componentType:"legend",legendIndex:r.componentIndex,name:e,$vars:["name"]}},y.option):null});return m.add(M),m.eachChild(function(e){e.silent=!0}),M.silent=!h,this.group.add(m),l.setHoverStyle(m),m}})},function(e,t,r){function i(e,t,r){var i,o={},a="toggleSelected"===e;return r.eachComponent("legend",function(r){a&&null!=i?r[i?"select":"unSelect"](t.name):(r[e](t.name),i=r.isSelected(t.name));var s=r.getData();n.each(s,function(e){var t=e.get("name");if("\n"!==t&&""!==t){var i=r.isSelected(t);t in o?o[t]=o[t]&&i:o[t]=i}})}),{name:t.name,selected:o}}var o=r(2),n=r(1);o.registerAction("legendToggleSelect","legendselectchanged",n.curry(i,"toggleSelected")),o.registerAction("legendSelect","legendselected",n.curry(i,"select")),o.registerAction("legendUnSelect","legendunselected",n.curry(i,"unSelect"))},function(e,t){e.exports=function(e){var t=e.findComponents({mainType:"legend"});t&&t.length&&e.filterSeries(function(e){for(var r=0;r=0&&(c=+c.toFixed(g)),p.coord[d]=m.coord[d]=c,i=[p,m,{type:n,valueIndex:i.valueIndex,value:c}]}return i=[u.dataTransform(e,i[0]),u.dataTransform(e,i[1]),l.extend({},i[2])],i[2].type=i[2].type||"",l.merge(i[2],i[0]),l.merge(i[2],i[1]),i};r(64).extend({type:"markLine",updateLayout:function(e,t,r){t.eachSeries(function(e){var t=e.markLineModel;if(t){var i=t.getData(),o=t.__from,n=t.__to;o.each(function(t){a(o,t,!0,e,r),a(n,t,!1,e,r)}),i.each(function(e){i.setItemLayout(e,[o.getItemLayout(e),n.getItemLayout(e)])}),this.markerGroupMap[e.name].updateLayout()}},this)},renderSeries:function(e,t,r,i){function o(t,r,o){var n=t.getItemModel(r);a(t,r,o,e,i),t.setItemVisual(r,{symbolSize:n.get("symbolSize")||x[o?0:1],symbol:n.get("symbol",!0)||y[o?0:1],color:n.get("itemStyle.normal.color")||h.getVisual("color")})}var n=e.coordinateSystem,c=e.name,h=e.getData(),u=this.markerGroupMap,f=u[c];f||(f=u[c]=new d),this.group.add(f.group);var p=s(n,e,t),m=p.from,g=p.to,v=p.line;t.__from=m,t.__to=g,t.setData(v);var y=t.get("symbol"),x=t.get("symbolSize");l.isArray(y)||(y=[y,y]),"number"==typeof x&&(x=[x,x]),p.from.each(function(e){o(m,e,!0),o(g,e,!1)}),v.each(function(e){var t=v.getItemModel(e).get("lineStyle.normal.color");v.setItemVisual(e,{color:t||m.getItemVisual(e,"color")}),v.setItemLayout(e,[m.getItemLayout(e),g.getItemLayout(e)]),v.setItemVisual(e,{fromSymbolSize:m.getItemVisual(e,"symbolSize"),fromSymbol:m.getItemVisual(e,"symbol"),toSymbolSize:g.getItemVisual(e,"symbolSize"),toSymbol:g.getItemVisual(e,"symbol")})}),f.updateData(v),p.line.eachItemGraphicEl(function(e,r){e.traverse(function(e){e.dataModel=t})}),f.__keep=!0,f.group.silent=t.get("silent")||e.get("silent")}})},function(e,t,r){e.exports=r(63).extend({type:"markPoint",defaultOption:{zlevel:0,z:5,symbol:"pin",symbolSize:50,tooltip:{trigger:"item"},label:{normal:{show:!0,position:"inside"},emphasis:{show:!0}},itemStyle:{normal:{borderWidth:2}}}})},function(e,t,r){function i(e,t,r){var i=t.coordinateSystem;e.each(function(o){var n,a=e.getItemModel(o),l=s.parsePercent(a.get("x"),r.getWidth()),c=s.parsePercent(a.get("y"),r.getHeight());if(isNaN(l)||isNaN(c)){if(t.getMarkerPosition)n=t.getMarkerPosition(e.getValues(e.dimensions,o));else if(i){var h=e.get(i.dimensions[0],o),u=e.get(i.dimensions[1],o);n=i.dataToPoint([h,u])}}else n=[l,c];isNaN(l)||(n[0]=l),isNaN(c)||(n[1]=c),e.setItemLayout(o,n)})}function o(e,t,r){var i;i=e?a.map(e&&e.dimensions,function(e){var r=t.getData().getDimensionInfo(t.coordDimToDataDim(e)[0])||{};return r.name=e,r}):[{name:"value",type:"float"}];var o=new l(i,r),n=a.map(r.get("data"),a.curry(c.dataTransform,t));return e&&(n=a.filter(n,a.curry(c.dataFilter,e))),o.initData(n,null,e?c.dimValueGetter:function(e){return e.value}),o}var n=r(33),a=r(1),s=r(4),l=r(8),c=r(65);r(64).extend({type:"markPoint",updateLayout:function(e,t,r){t.eachSeries(function(e){var t=e.markPointModel;t&&(i(t.getData(),e,r),this.markerGroupMap[e.name].updateLayout(t))},this)},renderSeries:function(e,t,r,a){var s=e.coordinateSystem,l=e.name,c=e.getData(),h=this.markerGroupMap,u=h[l];u||(u=h[l]=new n);var d=o(s,e,t);t.setData(d),i(t.getData(),e,a),d.each(function(e){var r=d.getItemModel(e),i=r.getShallow("symbolSize");"function"==typeof i&&(i=i(t.getRawValue(e),t.getDataParams(e))),d.setItemVisual(e,{symbolSize:i,color:r.get("itemStyle.normal.color")||c.getVisual("color"),symbol:r.getShallow("symbol")})}),u.updateData(d),this.group.add(u.group),d.eachItemGraphicEl(function(e){e.traverse(function(e){e.dataModel=t})}),u.__keep=!0,u.group.silent=t.get("silent")||e.get("silent")}})},function(e,t,r){r(119),r(276),r(273)},function(e,t,r){"use strict";r(66),r(269),r(314),r(2).extendComponentView({type:"polar"})},function(e,t,r){r(368),r(369),r(313)},function(e,t,r){var i=r(34),o=r(1),n=r(3),a=["axisLine","axisLabel","axisTick","axisName"];e.exports=r(2).extendComponentView({type:"radar",render:function(e,t,r){var i=this.group;i.removeAll(),this._buildAxes(e),this._buildSplitLineAndArea(e)},_buildAxes:function(e){var t=e.coordinateSystem,r=t.getIndicatorAxes(),n=o.map(r,function(e){var r=new i(e.model,{position:[t.cx,t.cy],rotation:e.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return r});o.each(n,function(e){o.each(a,e.add,e),this.group.add(e.getGroup())},this)},_buildSplitLineAndArea:function(e){function t(e,t,r){var i=r%t.length;return e[i]=e[i]||[],i}var r=e.coordinateSystem,i=e.get("splitNumber"),a=r.getIndicatorAxes();if(a.length){var s=e.get("shape"),l=e.getModel("splitLine"),c=e.getModel("splitArea"),h=l.getModel("lineStyle"),u=c.getModel("areaStyle"),d=l.get("show"),f=c.get("show"),p=h.get("color"),m=u.get("color");p=o.isArray(p)?p:[p],m=o.isArray(m)?m:[m];var g=[],v=[];if("circle"===s)for(var y=a[0].getTicksCoords(),x=r.cx,b=r.cy,_=0;_=_;_++){for(var M=[],A=0;A=0||"+"===r?"left":"right"},s={horizontal:r>=0||"+"===r?"top":"bottom",vertical:"middle"},l={horizontal:0,vertical:_/2},c="vertical"===o?n.height:n.width,h=e.getModel("controlStyle"),u=h.get("show"),d=u?h.get("itemSize"):0,f=u?h.get("itemGap"):0,p=d+f,m=e.get("label.normal.rotate")||0;m=m*_/180;var g,v,y,x,b=h.get("position",!0),u=h.get("show",!0),S=u&&h.get("showPlayBtn",!0),w=u&&h.get("showPrevBtn",!0),C=u&&h.get("showNextBtn",!0),M=0,A=c;return"left"===b||"bottom"===b?(S&&(g=[0,0],M+=p),w&&(v=[M,0],M+=p),C&&(y=[A-d,0],A-=p)):(S&&(g=[A-d,0],A-=p),w&&(v=[0,0],M+=p),C&&(y=[A-d,0],A-=p)),x=[M,A],e.get("inverse")&&x.reverse(),{viewRect:n,mainLength:c,orient:o,rotation:l[o],labelRotation:m,labelPosOpt:r,labelAlign:a[o],labelBaseline:s[o],playPosition:g,prevBtnPosition:v,nextBtnPosition:y,axisExtent:x,controlSize:d,controlGap:f}},_position:function(e,t){function r(e){var t=e.position;e.origin=[u[0][0]-t[0],u[1][0]-t[1]]}function i(e){return[[e.x,e.x+e.width],[e.y,e.y+e.height]]}function o(e,t,r,i,o){e[i]+=r[i][o]-t[i][o]}var n=this._mainGroup,a=this._labelGroup,s=e.viewRect;if("vertical"===e.orient){var l=m.create(),c=s.x,h=s.y+s.height;m.translate(l,l,[-c,-h]),m.rotate(l,l,-_/2),m.translate(l,l,[c,h]),s=s.clone(),s.applyTransform(l)}var u=i(s),d=i(n.getBoundingRect()),f=i(a.getBoundingRect()),p=n.position,g=a.position;g[0]=p[0]=u[0][0];var v=e.labelPosOpt;if(isNaN(v)){var y="+"===v?0:1;o(p,d,u,1,y),o(g,f,u,1,1-y)}else{var y=v>=0?0:1;o(p,d,u,1,y),g[1]=p[1]+v}n.attr("position",p),a.attr("position",g),n.rotation=a.rotation=e.rotation,r(n),r(a)},_createAxis:function(e,t){var r=t.getData(),i=t.get("axisType"),o=f.createScaleByModel(t,i),n=r.getDataExtent("value");o.setExtent(n[0],n[1]),this._customizeScale(o,r),o.niceTicks();var a=new u("value",o,e.axisExtent,i);return a.model=t,a},_customizeScale:function(e,t){ e.getTicks=function(){return t.mapArray(["value"],function(e){return e})},e.getTicksLabels=function(){return s.map(this.getTicks(),e.getLabel,e)}},_createGroup:function(e){var t=this["_"+e]=new l.Group;return this.group.add(t),t},_renderAxisLine:function(e,t,r,i){var o=r.getExtent();i.get("lineStyle.show")&&t.add(new l.Line({shape:{x1:o[0],y1:0,x2:o[1],y2:0},style:s.extend({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1}))},_renderAxisTick:function(e,t,r,i){var o=i.getData(),a=r.scale.getTicks();b(a,function(e,a){var s=r.dataToCoord(e),c=o.getItemModel(a),h=c.getModel("itemStyle.normal"),u=c.getModel("itemStyle.emphasis"),d={position:[s,0],onclick:x(this._changeTimeline,this,a)},f=n(c,h,t,d);l.setHoverStyle(f,u.getItemStyle()),c.get("tooltip")?(f.dataIndex=a,f.dataModel=i):f.dataIndex=f.dataModel=null},this)},_renderAxisLabel:function(e,t,r,i){var o=i.getModel("label.normal");if(o.get("show")){var n=i.getData(),a=r.scale.getTicks(),s=f.getFormattedLabels(r,o.get("formatter")),c=r.getLabelInterval();b(a,function(i,o){if(!r.isLabelIgnored(o,c)){var a=n.getItemModel(o),h=a.getModel("label.normal.textStyle"),u=a.getModel("label.emphasis.textStyle"),d=r.dataToCoord(i),f=new l.Text({style:{text:s[o],textAlign:e.labelAlign,textVerticalAlign:e.labelBaseline,textFont:h.getFont(),fill:h.getTextColor()},position:[d,0],rotation:e.labelRotation-e.rotation,onclick:x(this._changeTimeline,this,o),silent:!1});t.add(f),l.setHoverStyle(f,u.getItemStyle())}},this)}},_renderControl:function(e,t,r,i){function n(e,r,n,d){if(e){var f={position:e,origin:[a/2,0],rotation:d?-s:0,rectHover:!0,style:c,onclick:n},p=o(i,r,u,f);t.add(p),l.setHoverStyle(p,h)}}var a=e.controlSize,s=e.rotation,c=i.getModel("controlStyle.normal").getItemStyle(),h=i.getModel("controlStyle.emphasis").getItemStyle(),u=[0,-a/2,a,a],d=i.getPlayState(),f=i.get("inverse",!0);n(e.nextBtnPosition,"controlStyle.nextIcon",x(this._changeTimeline,this,f?"-":"+")),n(e.prevBtnPosition,"controlStyle.prevIcon",x(this._changeTimeline,this,f?"+":"-")),n(e.playPosition,"controlStyle."+(d?"stopIcon":"playIcon"),x(this._handlePlayClick,this,!d),!0)},_renderCurrentPointer:function(e,t,r,i){var o=i.getData(),s=i.getCurrentIndex(),l=o.getItemModel(s).getModel("checkpointStyle"),c=this,h={onCreate:function(e){e.draggable=!0,e.drift=x(c._handlePointerDrag,c),e.ondragend=x(c._handlePointerDragend,c),a(e,s,r,i,!0)},onUpdate:function(e){a(e,s,r,i)}};this._currentPointer=n(l,l,this._mainGroup,{},this._currentPointer,h)},_handlePlayClick:function(e){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:e,from:this.uid})},_handlePointerDrag:function(e,t,r){this._clearTimer(),this._pointerChangeTimeline([r.offsetX,r.offsetY])},_handlePointerDragend:function(e){this._pointerChangeTimeline([e.offsetX,e.offsetY],!0)},_pointerChangeTimeline:function(e,t){var r=this._toAxisCoord(e)[0],i=this._axis,o=g.asc(i.getExtent().slice());r>o[1]&&(r=o[1]),rs&&(i=s,t=n)}),t},_clearTimer:function(){this._timer&&(clearTimeout(this._timer),this._timer=null)},_changeTimeline:function(e){var t=this.model.getCurrentIndex();"+"===e?e=t+1:"-"===e&&(e=t-1),this.api.dispatchAction({type:"timelineChange",currentIndex:e,from:this.uid})}})},function(e,t,r){var i=r(1),o=r(27),n=r(16),a=function(e,t,r,i){o.call(this,e,t,r),this.type=i||"value",this._autoLabelInterval,this.model=null};a.prototype={constructor:a,getLabelInterval:function(){var e=this.model,t=e.getModel("label.normal"),r=t.get("interval");if(null!=r&&"auto"!=r)return r;var r=this._autoLabelInterval;return r||(r=this._autoLabelInterval=n.getAxisLabelInterval(i.map(this.scale.getTicks(),this.dataToCoord,this),n.getFormattedLabels(this,t.get("formatter")),t.getModel("textStyle").getFont(),"horizontal"===e.get("orient"))),r},isLabelIgnored:function(e){if("category"===this.type){var t=this.getLabelInterval();return"function"==typeof t&&!t(e,this.scale.getLabel(e))||e%(t+1)}}},i.inherits(a,o),e.exports=a},function(e,t,r){var i=r(11),o=r(8),n=r(1),a=r(12),s=i.extend({type:"timeline",layoutMode:"box",defaultOption:{zlevel:0,z:4,show:!0,axisType:"time",realtime:!0,left:"20%",top:null,right:"20%",bottom:0,width:null,height:40,padding:5,controlPosition:"left",autoPlay:!1,rewind:!1,loop:!0,playInterval:2e3,currentIndex:0,itemStyle:{normal:{},emphasis:{}},label:{normal:{textStyle:{color:"#000"}},emphasis:{}},data:[]},init:function(e,t,r){this._data,this._names,this.mergeDefaultAndTheme(e,r),this._initData()},mergeOption:function(e){s.superApply(this,"mergeOption",arguments),this._initData()},setCurrentIndex:function(e){null==e&&(e=this.option.currentIndex);var t=this._data.count();this.option.loop?e=(e%t+t)%t:(e>=t&&(e=t-1),0>e&&(e=0)),this.option.currentIndex=e},getCurrentIndex:function(){return this.option.currentIndex},isIndexMax:function(){return this.getCurrentIndex()>=this._data.count()-1},setPlayState:function(e){this.option.autoPlay=!!e},getPlayState:function(){return!!this.option.autoPlay},_initData:function(){var e=this.option,t=e.data||[],r=e.axisType,i=this._names=[];if("category"===r){var s=[];n.each(t,function(e,t){var r,o=a.getDataItemValue(e);n.isObject(e)?(r=n.clone(e),r.value=t):r=t,s.push(r),n.isString(o)||null!=o&&!isNaN(o)||(o=""),i.push(o+"")}),t=s}var l={category:"ordinal",time:"time"}[r]||"number",c=this._data=new o([{name:"value",type:l}],this);c.initData(t,i)},getData:function(){return this._data},getCategories:function(){return"category"===this.get("axisType")?this._names.slice():void 0}});e.exports=s},function(e,t,r){var i=r(71);e.exports=i.extend({type:"timeline"})},function(e,t,r){function i(e){var t=e.type,r={number:"value",time:"time"};if(r[t]&&(e.axisType=r[t],delete e.type),o(e),n(e,"controlPosition")){var i=e.controlStyle||(e.controlStyle={});n(i,"position")||(i.position=e.controlPosition),"none"!==i.position||n(i,"show")||(i.show=!1,delete i.position),delete e.controlPosition}a.each(e.data||[],function(e){a.isObject(e)&&!a.isArray(e)&&(!n(e,"value")&&n(e,"name")&&(e.value=e.name),o(e))})}function o(e){var t=e.itemStyle||(e.itemStyle={}),r=t.emphasis||(t.emphasis={}),i=e.label||e.label||{},o=i.normal||(i.normal={}),s={normal:1,emphasis:1};a.each(i,function(e,t){s[t]||n(o,t)||(o[t]=e)}),r.label&&!n(i,"emphasis")&&(i.emphasis=r.label,delete r.label)}function n(e,t){return e.hasOwnProperty(t)}var a=r(1);e.exports=function(e){var t=e&&e.timeline;a.isArray(t)||(t=t?[t]:[]),a.each(t,function(e){e&&i(e)})}},function(e,t,r){var i=r(2);i.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(e,t){var r=t.getComponent("timeline");r&&null!=e.currentIndex&&(r.setCurrentIndex(e.currentIndex),!r.get("loop",!0)&&r.isIndexMax()&&r.setPlayState(!1)),t.resetOption("timeline")}),i.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(e,t){var r=t.getComponent("timeline");r&&null!=e.playState&&r.setPlayState(e.playState)})},function(e,t,r){r(11).registerSubTypeDefaulter("timeline",function(){return"slider"})},function(e,t,r){"use strict";var i=r(2),o=r(3),n=r(6);i.extendComponentModel({type:"title",layoutMode:{type:"box",ignoreSize:!0},defaultOption:{zlevel:0,z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bolder",color:"#333"},subtextStyle:{color:"#aaa"}}}),i.extendComponentView({type:"title",render:function(e,t,r){if(this.group.removeAll(),e.get("show")){var i=this.group,a=e.getModel("textStyle"),s=e.getModel("subtextStyle"),l=e.get("textAlign"),c=e.get("textBaseline"),h=new o.Text({style:{text:e.get("text"),textFont:a.getFont(),fill:a.getTextColor()},z2:10}),u=h.getBoundingRect(),d=e.get("subtext"),f=new o.Text({style:{text:d,textFont:s.getFont(),fill:s.getTextColor(),y:u.height+e.get("itemGap"),textBaseline:"top"},z2:10}),p=e.get("link"),m=e.get("sublink");h.silent=!p,f.silent=!m,p&&h.on("click",function(){window.open(p,"_"+e.get("target"))}),m&&f.on("click",function(){window.open(m,"_"+e.get("subtarget"))}),i.add(h),d&&i.add(f);var g=i.getBoundingRect(),v=e.getBoxLayoutParams();v.width=g.width,v.height=g.height;var y=n.getLayoutRect(v,{width:r.getWidth(),height:r.getHeight()},e.get("padding"));l||(l=e.get("left")||e.get("right"),"middle"===l&&(l="center"),"right"===l?y.x+=y.width:"center"===l&&(y.x+=y.width/2)),c||(c=e.get("top")||e.get("bottom"),"center"===c&&(c="middle"),"bottom"===c?y.y+=y.height:"middle"===c&&(y.y+=y.height/2),c=c||"top"),i.attr("position",[y.x,y.y]);var x={textAlign:l,textVerticalAlign:c};h.setStyle(x),f.setStyle(x),g=i.getBoundingRect();var b=y.margin,_=e.getItemStyle(["color","opacity"]);_.fill=e.get("backgroundColor");var S=new o.Rect({shape:{x:g.x-b[3],y:g.y-b[0],width:g.width+b[1]+b[3],height:g.height+b[0]+b[2]},style:_,silent:!0});o.subPixelOptimizeRect(S),i.add(S)}}})},function(e,t,r){r(327),r(328),r(334),r(332),r(330),r(331),r(333)},function(e,t,r){var i=r(22),o=r(1),n=r(2).extendComponentModel({type:"toolbox",layoutMode:{type:"box",ignoreSize:!0},mergeDefaultAndTheme:function(e){n.superApply(this,"mergeDefaultAndTheme",arguments),o.each(this.option.feature,function(e,t){var r=i.get(t);r&&o.merge(e,r.defaultOption)})},defaultOption:{show:!0,z:6,zlevel:0,orient:"horizontal",left:"right",top:"top",backgroundColor:"transparent",borderColor:"#ccc",borderWidth:0,padding:5,itemSize:15,itemGap:8,showTitle:!0,iconStyle:{normal:{borderColor:"#666",color:"none"},emphasis:{borderColor:"#3E98C5"}}}});e.exports=n},function(e,t,r){(function(t){function i(e){return 0===e.indexOf("my")}var o=r(22),n=r(1),a=r(3),s=r(9),l=r(49),c=r(105),h=r(24);e.exports=r(2).extendComponentView({type:"toolbox",render:function(e,t,r,u){function d(n,a){var l,c=y[n],h=y[a],d=g[c],p=new s(d,e,e.ecModel);if(c&&!h){if(i(c))l={model:p,onclick:p.option.onclick,featureName:c};else{var m=o.get(c);if(!m)return;l=new m(p,t,r)}v[c]=l}else{if(l=v[h],!l)return;l.model=p,l.ecModel=t,l.api=r}return!c&&h?void(l.dispose&&l.dispose(t,r)):!p.get("show")||l.unusable?void(l.remove&&l.remove(t,r)):(f(p,l,c),p.setIconStatus=function(e,t){var r=this.option,i=this.iconPaths;r.iconStatus=r.iconStatus||{},r.iconStatus[e]=t,i[e]&&i[e].trigger(t)},void(l.render&&l.render(p,t,r,u)))}function f(i,o,s){var l=i.getModel("iconStyle"),c=o.getIcons?o.getIcons():i.get("icon"),h=i.get("title")||{};if("string"==typeof c){var u=c,d=h;c={},h={},c[s]=u,h[s]=d}var f=i.iconPaths={};n.each(c,function(s,c){var u=l.getModel("normal").getItemStyle(),d=l.getModel("emphasis").getItemStyle(),g={x:-m/2,y:-m/2,width:m,height:m},v=0===s.indexOf("image://")?(g.image=s.slice(8),new a.Image({style:g})):a.makePath(s.replace("path://",""),{style:u,hoverStyle:d,rectHover:!0},g,"center");a.setHoverStyle(v),e.get("showTitle")&&(v.__title=h[c],v.on("mouseover",function(){v.setStyle({text:h[c],textPosition:d.textPosition||"bottom",textFill:d.fill||d.stroke||"#000",textAlign:d.textAlign||"center"})}).on("mouseout",function(){v.setStyle({textFill:null})})),v.trigger(i.get("iconStatus."+c)||"normal"),p.add(v),v.on("click",n.bind(o.onclick,o,t,r,c)),f[c]=v})}var p=this.group;if(p.removeAll(),e.get("show")){var m=+e.get("itemSize"),g=e.get("feature")||{},v=this._features||(this._features={}),y=[];n.each(g,function(e,t){y.push(t)}),new l(this._featureNames||[],y).add(d).update(d).remove(n.curry(d,null)).execute(),this._featureNames=y,c.layout(p,e,r),c.addBackground(p,e),p.eachChild(function(e){var t=e.__title,i=e.hoverStyle;if(i&&t){var o=h.getBoundingRect(t,i.font),n=e.position[0]+p.position[0],a=e.position[1]+p.position[1]+m,s=!1;a+o.height>r.getHeight()&&(i.textPosition="top",s=!0);var l=s?-5-o.height:m+8;n+o.width/2>r.getWidth()?(i.textPosition=["100%",l],i.textAlign="right"):n-o.width/2<0&&(i.textPosition=[0,l],i.textAlign="left")}})}},updateView:function(e,t,r,i){n.each(this._features,function(e){e.updateView&&e.updateView(e.model,t,r,i)})},updateLayout:function(e,t,r,i){n.each(this._features,function(e){e.updateLayout&&e.updateLayout(e.model,t,r,i)})},remove:function(e,t){n.each(this._features,function(r){r.remove&&r.remove(e,t)}),this.group.removeAll()},dispose:function(e,t){n.each(this._features,function(r){r.dispose&&r.dispose(e,t)})}})}).call(t,r(453))},function(e,t,r){"use strict";function i(e,t,r){this.model=e,this.ecModel=t,this.api=r,this._brushType,this._brushMode}var o=r(22),n=r(1);i.defaultOption={show:!0,type:["rect","polygon","lineX","lineY","keep","clear"],icon:{rect:"M7.3,34.7 M0.4,10V-0.2h9.8 M89.6,10V-0.2h-9.8 M0.4,60v10.2h9.8 M89.6,60v10.2h-9.8 M12.3,22.4V10.5h13.1 M33.6,10.5h7.8 M49.1,10.5h7.8 M77.5,22.4V10.5h-13 M12.3,31.1v8.2 M77.7,31.1v8.2 M12.3,47.6v11.9h13.1 M33.6,59.5h7.6 M49.1,59.5 h7.7 M77.5,47.6v11.9h-13",polygon:"M55.2,34.9c1.7,0,3.1,1.4,3.1,3.1s-1.4,3.1-3.1,3.1 s-3.1-1.4-3.1-3.1S53.5,34.9,55.2,34.9z M50.4,51c1.7,0,3.1,1.4,3.1,3.1c0,1.7-1.4,3.1-3.1,3.1c-1.7,0-3.1-1.4-3.1-3.1 C47.3,52.4,48.7,51,50.4,51z M55.6,37.1l1.5-7.8 M60.1,13.5l1.6-8.7l-7.8,4 M59,19l-1,5.3 M24,16.1l6.4,4.9l6.4-3.3 M48.5,11.6 l-5.9,3.1 M19.1,12.8L9.7,5.1l1.1,7.7 M13.4,29.8l1,7.3l6.6,1.6 M11.6,18.4l1,6.1 M32.8,41.9 M26.6,40.4 M27.3,40.2l6.1,1.6 M49.9,52.1l-5.6-7.6l-4.9-1.2",lineX:"M15.2,30 M19.7,15.6V1.9H29 M34.8,1.9H40.4 M55.3,15.6V1.9H45.9 M19.7,44.4V58.1H29 M34.8,58.1H40.4 M55.3,44.4 V58.1H45.9 M12.5,20.3l-9.4,9.6l9.6,9.8 M3.1,29.9h16.5 M62.5,20.3l9.4,9.6L62.3,39.7 M71.9,29.9H55.4",lineY:"M38.8,7.7 M52.7,12h13.2v9 M65.9,26.6V32 M52.7,46.3h13.2v-9 M24.9,12H11.8v9 M11.8,26.6V32 M24.9,46.3H11.8v-9 M48.2,5.1l-9.3-9l-9.4,9.2 M38.9-3.9V12 M48.2,53.3l-9.3,9l-9.4-9.2 M38.9,62.3V46.4",keep:"M4,10.5V1h10.3 M20.7,1h6.1 M33,1h6.1 M55.4,10.5V1H45.2 M4,17.3v6.6 M55.6,17.3v6.6 M4,30.5V40h10.3 M20.7,40 h6.1 M33,40h6.1 M55.4,30.5V40H45.2 M21,18.9h62.9v48.6H21V18.9z",clear:"M22,14.7l30.9,31 M52.9,14.7L22,45.7 M4.7,16.8V4.2h13.1 M26,4.2h7.8 M41.6,4.2h7.8 M70.3,16.8V4.2H57.2 M4.7,25.9v8.6 M70.3,25.9v8.6 M4.7,43.2v12.6h13.1 M26,55.8h7.8 M41.6,55.8h7.8 M70.3,43.2v12.6H57.2"},title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}};var a=i.prototype;a.render=a.updateView=a.updateLayout=function(e,t,r){var i,o,a;t.eachComponent({mainType:"brush"},function(e){i=e.brushType,o=e.brushOption.brushMode||"single",a|=e.areas.length}),this._brushType=i,this._brushMode=o,n.each(e.get("type",!0),function(t){e.setIconStatus(t,("keep"===t?"multiple"===o:"clear"===t?a:t===i)?"emphasis":"normal")})},a.getIcons=function(){var e=this.model,t=e.get("icon",!0),r={};return n.each(e.get("type",!0),function(e){t[e]&&(r[e]=t[e])}),r},a.onclick=function(e,t,r){var t=this.api,i=this._brushType,o=this._brushMode;"clear"===r?t.dispatchAction({type:"brush",areas:[]}):t.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===r?i:i===r?!1:r,brushMode:"keep"===r?"multiple"===o?"single":"multiple":o}})},o.register("brush",i),e.exports=i},function(e,t,r){function i(e){var t={},r=[],i=[];return e.eachRawSeries(function(e){var o=e.coordinateSystem;if(!o||"cartesian2d"!==o.type&&"polar"!==o.type)r.push(e);else{var n=o.getBaseAxis();if("category"===n.type){var a=n.dim+"_"+n.index;t[a]||(t[a]={categoryAxis:n,valueAxis:o.getOtherAxis(n),series:[]},i.push({axisDim:n.dim,axisIndex:n.index})),t[a].series.push(e)}else r.push(e)}}),{seriesGroupByCategoryAxis:t,other:r,meta:i}}function o(e){var t=[];return p.each(e,function(e,r){var i=e.categoryAxis,o=e.valueAxis,n=o.dim,a=[" "].concat(p.map(e.series,function(e){return e.name})),s=[i.model.getCategories()];p.each(e.series,function(e){s.push(e.getRawData().mapArray(n,function(e){return e}))});for(var l=[a.join(v)],c=0;ca;a++)i[a]=arguments[a];r.push((n?n+v:"")+i.join(v))}),r.join("\n")}).join("\n\n"+g+"\n\n")}function a(e){var t=i(e);return{value:p.filter([o(t.seriesGroupByCategoryAxis),n(t.other)],function(e){return e.replace(/[\n\t\s]/g,"")}).join("\n\n"+g+"\n\n"),meta:t.meta}}function s(e){return e.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function l(e){var t=e.slice(0,e.indexOf("\n"));return t.indexOf(v)>=0?!0:void 0}function c(e){for(var t=e.split(/\n+/g),r=s(t.shift()).split(y),i=[],o=p.map(r,function(e){return{name:e,data:[]}}),n=0;n1?"emphasis":"normal")}function a(e,t,r,i){var n=r._isZoomActive;i&&"takeGlobalCursor"===i.type&&(n="dataZoomSelect"===i.key?i.dataZoomSelectActive:!1),r._isZoomActive=n,e.setIconStatus("zoom",n?"emphasis":"normal");var a=c.makeCoordInfoList(o(e.option),t),s=a.xAxisHas&&!a.yAxisHas?"lineX":!a.xAxisHas&&a.yAxisHas?"lineY":"rect";r._brushController.setPanels(c.makePanelOpts(a)).enableBrush(n?{brushType:s,brushStyle:{lineWidth:0,fill:"rgba(0,0,0,0.2)"}}:!1)}var s=r(1),l=r(59),c=r(60),h=r(101),u=s.each;r(293);var d="\x00_ec_\x00toolbox-dataZoom_";i.defaultOption={show:!0,icon:{zoom:"M0,13.5h26.9 M13.5,26.9V0 M32.1,13.5H58V58H13.5 V32.1",back:"M22,1.4L9.9,13.5l12.3,12.3 M10.3,13.5H54.9v44.6 H10.3v-26"},title:{zoom:"区域缩放",back:"区域缩放还原"}};var f=i.prototype;f.render=function(e,t,r,i){this.model=e,this.ecModel=t,this.api=r,a(e,t,this,i),n(e,t)},f.onclick=function(e,t,r){p[r].call(this)},f.remove=function(e,t){this._brushController.unmount()},f.dispose=function(e,t){this._brushController.dispose()};var p={zoom:function(){var e=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:e})},back:function(){this._dispatchZoomAction(h.pop(this.ecModel))}};f._onBrush=function(e,t){function r(e,t,r){var o=i(e,r[e],a);o&&(n[o.id]={dataZoomId:o.id,startValue:t[0],endValue:t[1]})}function i(e,t,r){var i;return r.eachComponent({mainType:"dataZoom",subType:"select"},function(o,n){var a=o.get(e+"Index");null!=a&&r.getComponent(e,a)===t&&(i=o)}),i}if(t.isEnd&&e.length){var n={},a=this.ecModel;this._brushController.updateCovers([]);var s=c.makeCoordInfoList(o(this.model.option),a),l=[];c.parseOutputRanges(e,s,a,l);var u=e[0],d=l[0],f=u.coordRange,p=u.brushType;if(d&&f)if("rect"===p)r("xAxis",f[0],d),r("yAxis",f[1],d);else{var m={lineX:"xAxis",lineY:"yAxis"};r(m[p],f,d)}h.push(a,n),this._dispatchZoomAction(n)}},f._dispatchZoomAction=function(e){var t=[];u(e,function(e,r){t.push(s.clone(e))}),t.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:t})},r(22).register("dataZoom",i),r(2).registerPreprocessor(function(e){function t(e,t){if(t){var o=e+"Index",n=t[o];null==n||"all"==n||s.isArray(n)||(n=n===!1||"none"===n?[]:[n]),r(e,function(t,r){if(null==n||"all"==n||-1!==s.indexOf(n,r)){var a={type:"select",$fromToolbox:!0,id:d+e+r};a[o]=r,i.push(a)}})}}function r(t,r){var i=e[t];s.isArray(i)||(i=i?[i]:[]),u(i,r)}if(e){var i=e.dataZoom||(e.dataZoom=[]);s.isArray(i)||(e.dataZoom=i=[i]);var o=e.toolbox;if(o&&(s.isArray(o)&&(o=o[0]),o&&o.feature)){var n=o.feature.dataZoom;t("xAxis",n),t("yAxis",n)}}}),e.exports=i},function(e,t,r){"use strict";function i(e){this.model=e}var o=r(1);i.defaultOption={show:!0,type:[],icon:{line:"M4.1,28.9h7.1l9.3-22l7.4,38l9.7-19.7l3,12.8h14.9M4.1,58h51.4",bar:"M6.7,22.9h10V48h-10V22.9zM24.9,13h10v35h-10V13zM43.2,2h10v46h-10V2zM3.1,58h53.7",stack:"M8.2,38.4l-8.4,4.1l30.6,15.3L60,42.5l-8.1-4.1l-21.5,11L8.2,38.4z M51.9,30l-8.1,4.2l-13.4,6.9l-13.9-6.9L8.2,30l-8.4,4.2l8.4,4.2l22.2,11l21.5-11l8.1-4.2L51.9,30z M51.9,21.7l-8.1,4.2L35.7,30l-5.3,2.8L24.9,30l-8.4-4.1l-8.3-4.2l-8.4,4.2L8.2,30l8.3,4.2l13.9,6.9l13.4-6.9l8.1-4.2l8.1-4.1L51.9,21.7zM30.4,2.2L-0.2,17.5l8.4,4.1l8.3,4.2l8.4,4.2l5.5,2.7l5.3-2.7l8.1-4.2l8.1-4.2l8.1-4.1L30.4,2.2z",tiled:"M2.3,2.2h22.8V25H2.3V2.2z M35,2.2h22.8V25H35V2.2zM2.3,35h22.8v22.8H2.3V35z M35,35h22.8v22.8H35V35z"},title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"},option:{},seriesIndex:{}};var n=i.prototype;n.getIcons=function(){var e=this.model,t=e.get("icon"),r={};return o.each(e.get("type"),function(e){t[e]&&(r[e]=t[e])}),r};var a={line:function(e,t,r,i){return"bar"===e?o.merge({id:t,type:"line",data:r.get("data"),stack:r.get("stack"),markPoint:r.get("markPoint"),markLine:r.get("markLine")},i.get("option.line")||{},!0):void 0},bar:function(e,t,r,i){return"line"===e?o.merge({id:t,type:"bar",data:r.get("data"),stack:r.get("stack"),markPoint:r.get("markPoint"),markLine:r.get("markLine")},i.get("option.bar")||{},!0):void 0},stack:function(e,t,r,i){return"line"===e||"bar"===e?o.merge({id:t,stack:"__ec_magicType_stack__"},i.get("option.stack")||{},!0):void 0},tiled:function(e,t,r,i){return"line"===e||"bar"===e?o.merge({id:t,stack:""},i.get("option.tiled")||{},!0):void 0}},s=[["line","bar"],["stack","tiled"]];n.onclick=function(e,t,r){var i=this.model,n=i.get("seriesIndex."+r);if(a[r]){var l={series:[]},c=function(t){var n=t.subType,s=t.id,c=a[r](n,s,t,i);c&&(o.defaults(c,t.option),l.series.push(c));var h=t.coordinateSystem;if(h&&"cartesian2d"===h.type&&("line"===r||"bar"===r)){var u=h.getAxesByScale("ordinal")[0];if(u){var d=u.dim,f=d+"Axis",p=e.queryComponents({mainType:f,index:t.get(name+"Index"),id:t.get(name+"Id")})[0],m=p.componentIndex;l[f]=l[f]||[];for(var g=0;m>=g;g++)l[f][m]=l[f][m]||{};l[f][m].boundaryGap="bar"===r}}};o.each(s,function(e){o.indexOf(e,r)>=0&&o.each(e,function(e){i.setIconStatus(e,"normal")})}),i.setIconStatus(r,"emphasis"),e.eachComponent({mainType:"series",query:null==n?null:{seriesIndex:n}},c),t.dispatchAction({type:"changeMagicType",currentType:r,newOption:l})}};var l=r(2);l.registerAction({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(e,t){t.mergeOption(e.newOption)}),r(22).register("magicType",i),e.exports=i},function(e,t,r){"use strict";function i(e){this.model=e}var o=r(101);i.defaultOption={show:!0,icon:"M3.8,33.4 M47,18.9h9.8V8.7 M56.3,20.1 C52.1,9,40.5,0.6,26.8,2.1C12.6,3.7,1.6,16.2,2.1,30.6 M13,41.1H3.1v10.2 M3.7,39.9c4.2,11.1,15.8,19.5,29.5,18 c14.2-1.6,25.2-14.1,24.7-28.5",title:"还原"};var n=i.prototype;n.onclick=function(e,t,r){o.clear(e),t.dispatchAction({type:"restore",from:this.uid})},r(22).register("restore",i),r(2).registerAction({type:"restore",event:"restore",update:"prepareAndUpdate"},function(e,t){t.resetOption("recreate")}),e.exports=i},function(e,t,r){function i(e){this.model=e}var o=r(15);i.defaultOption={show:!0,icon:"M4.7,22.9L29.3,45.5L54.7,23.4M4.6,43.6L4.6,58L53.8,58L53.8,43.6M29.2,45.1L29.2,0",title:"保存为图片",type:"png",name:"",excludeComponents:["toolbox"],pixelRatio:1,lang:["右键另存为图片"]},i.prototype.unusable=!o.canvasSupported;var n=i.prototype;n.onclick=function(e,t){var r=this.model,i=r.get("name")||e.get("title.0.text")||"echarts",o=document.createElement("a"),n=r.get("type",!0)||"png";o.download=i+"."+n,o.target="_blank";var a=t.getConnectedDataURL({type:n,backgroundColor:r.get("backgroundColor",!0)||e.get("backgroundColor")||"#fff",excludeComponents:r.get("excludeComponents"),pixelRatio:r.get("pixelRatio")});if(o.href=a,"function"==typeof MouseEvent){var s=new MouseEvent("click",{view:window,bubbles:!0,cancelable:!1});o.dispatchEvent(s)}else{var l=r.get("lang"),c='',h=window.open();h.document.write(c)}},r(22).register("saveAsImage",i),e.exports=i},function(e,t,r){r(337),r(338),r(2).registerAction({type:"showTip",event:"showTip",update:"none"},function(){}),r(2).registerAction({type:"hideTip",event:"hideTip",update:"none"},function(){})},function(e,t,r){function i(e){var t="cubic-bezier(0.23, 1, 0.32, 1)",r="left "+e+"s "+t+",top "+e+"s "+t;return l.map(m,function(e){return e+"transition:"+r}).join(";")}function o(e){var t=[],r=e.get("fontSize"),i=e.getTextColor();return i&&t.push("color:"+i),t.push("font:"+e.getFont()),r&&t.push("line-height:"+Math.round(3*r/2)+"px"),d(["decoration","align"],function(r){var i=e.get(r);i&&t.push("text-"+r+":"+i)}),t.join(";")}function n(e){e=e;var t=[],r=e.get("transitionDuration"),n=e.get("backgroundColor"),a=e.getModel("textStyle"),s=e.get("padding");return r&&t.push(i(r)),n&&(p.canvasSupported?t.push("background-Color:"+n):(t.push("background-Color:#"+c.toHex(n)),t.push("filter:alpha(opacity=70)"))),d(["width","color","radius"],function(r){var i="border-"+r,o=f(i),n=e.get(o);null!=n&&t.push(i+":"+n+("color"===r?"":"px"))}),t.push(o(a)),null!=s&&t.push("padding:"+u.normalizeCssArray(s).join("px ")+"px"),t.join(";")+";"}function a(e,t){var r=document.createElement("div"),i=t.getZr();this.el=r,this._x=t.getWidth()/2,this._y=t.getHeight()/2,e.appendChild(r),this._container=e,this._show=!1,this._hideTimeout;var o=this;r.onmouseenter=function(){o.enterable&&(clearTimeout(o._hideTimeout),o._show=!0),o._inContent=!0},r.onmousemove=function(t){if(!o.enterable){var r=i.handler;h.normalizeEvent(e,t),r.dispatch("mousemove",t)}},r.onmouseleave=function(){o.enterable&&o._show&&o.hideLater(o._hideDelay),o._inContent=!1},s(r,e)}function s(e,t){function r(e){i(e.target)&&e.preventDefault()}function i(r){for(;r&&r!==t;){if(r===e)return!0;r=r.parentNode}}h.addEventListener(t,"touchstart",r),h.addEventListener(t,"touchmove",r),h.addEventListener(t,"touchend",r)}var l=r(1),c=r(21),h=r(32),u=r(10),d=l.each,f=u.toCamelCase,p=r(15),m=["","-webkit-","-moz-","-o-"],g="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;";a.prototype={constructor:a,enterable:!0,update:function(){var e=this._container,t=e.currentStyle||document.defaultView.getComputedStyle(e),r=e.style;"absolute"!==r.position&&"absolute"!==t.position&&(r.position="relative")},show:function(e){clearTimeout(this._hideTimeout);var t=this.el;t.style.cssText=g+n(e)+";left:"+this._x+"px;top:"+this._y+"px;"+(e.get("extraCssText")||""),t.style.display=t.innerHTML?"block":"none",this._show=!0},setContent:function(e){var t=this.el;t.innerHTML=e,t.style.display=e?"block":"none"},moveTo:function(e,t){var r=this.el.style;r.left=e+"px",r.top=t+"px",this._x=e,this._y=t},hide:function(){this.el.style.display="none",this._show=!1},hideLater:function(e){!this._show||this._inContent&&this.enterable||(e?(this._hideDelay=e,this._show=!1,this._hideTimeout=setTimeout(l.bind(this.hide,this),e)):this.hide())},isShow:function(){return this._show}},e.exports=a},function(e,t,r){r(2).extendComponentModel({type:"tooltip",defaultOption:{zlevel:0,z:8,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove",alwaysShowContent:!1,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"rgba(50,50,50,0.7)",borderColor:"#333",borderRadius:4,borderWidth:0,padding:5,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:!0,animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",lineStyle:{color:"#555",width:1,type:"solid"},crossStyle:{color:"#555",width:1,type:"dashed",textStyle:{}},shadowStyle:{color:"rgba(150,150,150,0.3)" }},textStyle:{color:"#fff",fontSize:14}}})},function(e,t,r){function i(e,t){if(!e||!t)return!1;var r=m.round;return r(e[0])===r(t[0])&&r(e[1])===r(t[1])}function o(e,t,r,i){return{x1:e,y1:t,x2:r,y2:i}}function n(e,t,r,i){return{x:e,y:t,width:r,height:i}}function a(e,t,r,i,o,n){return{cx:e,cy:t,r0:r,r:i,startAngle:o,endAngle:n,clockwise:!0}}function s(e,t,r,i,o){var n=r.clientWidth,a=r.clientHeight,s=20;return e+n+s>i?e-=n+s:e+=s,t+a+s>o?t-=a+s:t+=s,[e,t]}function l(e,t,r){var i=r.clientWidth,o=r.clientHeight,n=5,a=0,s=0,l=t.width,c=t.height;switch(e){case"inside":a=t.x+l/2-i/2,s=t.y+c/2-o/2;break;case"top":a=t.x+l/2-i/2,s=t.y-o-n;break;case"bottom":a=t.x+l/2-i/2,s=t.y+c+n;break;case"left":a=t.x-i-n,s=t.y+c/2-o/2;break;case"right":a=t.x+l+n,s=t.y+c/2-o/2}return[a,s]}function c(e,t,r,i,o,n,a){var c=a.getWidth(),h=a.getHeight(),u=n&&n.getBoundingRect().clone();if(n&&u.applyTransform(n.transform),"function"==typeof e&&(e=e([t,r],o,i.el,u)),f.isArray(e))t=g(e[0],c),r=g(e[1],h);else if("string"==typeof e&&n){var d=l(e,u,i.el);t=d[0],r=d[1]}else{var d=s(t,r,i.el,c,h);t=d[0],r=d[1]}i.moveTo(t,r)}function h(e){var t=e.coordinateSystem,r=e.get("tooltip.trigger",!0);return!(!t||"cartesian2d"!==t.type&&"polar"!==t.type&&"singleAxis"!==t.type||"item"===r)}var u=r(336),d=r(3),f=r(1),p=r(10),m=r(4),g=m.parsePercent,v=r(15),y=r(9);r(2).extendComponentView({type:"tooltip",_axisPointers:{},init:function(e,t){if(!v.node){var r=new u(t.getDom(),t);this._tooltipContent=r,t.on("showTip",this._manuallyShowTip,this),t.on("hideTip",this._manuallyHideTip,this)}},render:function(e,t,r){if(!v.node){this.group.removeAll(),this._axisPointers={},this._tooltipModel=e,this._ecModel=t,this._api=r,this._lastHover={};var i=this._tooltipContent;i.update(),i.enterable=e.get("enterable"),this._alwaysShowContent=e.get("alwaysShowContent"),this._seriesGroupByAxis=this._prepareAxisTriggerData(e,t);var o=this._crossText;if(o&&this.group.add(o),null!=this._lastX&&null!=this._lastY){var n=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){n._manuallyShowTip({x:n._lastX,y:n._lastY})})}var a=this._api.getZr();a.off("click",this._tryShow),a.off("mousemove",this._mousemove),a.off("mouseout",this._hide),a.off("globalout",this._hide),"click"===e.get("triggerOn")?a.on("click",this._tryShow,this):(a.on("mousemove",this._mousemove,this),a.on("mouseout",this._hide,this),a.on("globalout",this._hide,this))}},_mousemove:function(e){var t=this._tooltipModel.get("showDelay"),r=this;clearTimeout(this._showTimeout),t>0?this._showTimeout=setTimeout(function(){r._tryShow(e)},t):this._tryShow(e)},_manuallyShowTip:function(e){if(e.from!==this.uid){var t=this._ecModel,r=e.seriesIndex,i=e.dataIndex,o=t.getSeriesByIndex(r),n=this._api;if(null==e.x||null==e.y){if(o||t.eachSeries(function(e){h(e)&&!o&&(o=e)}),o){var a=o.getData();null==i&&(i=a.indexOfName(e.name));var s,l,c=a.getItemGraphicEl(i),u=o.coordinateSystem;if(u&&u.dataToPoint){var d=u.dataToPoint(a.getValues(f.map(u.dimensions,function(e){return o.coordDimToDataDim(e)[0]}),i,!0));s=d&&d[0],l=d&&d[1]}else if(c){var p=c.getBoundingRect().clone();p.applyTransform(c.transform),s=p.x+p.width/2,l=p.y+p.height/2}null!=s&&null!=l&&this._tryShow({offsetX:s,offsetY:l,target:c,event:{}})}}else{var c=n.getZr().handler.findHover(e.x,e.y);this._tryShow({offsetX:e.x,offsetY:e.y,target:c,event:{}})}}},_manuallyHideTip:function(e){e.from!==this.uid&&this._hide()},_prepareAxisTriggerData:function(e,t){var r={};return t.eachSeries(function(e){if(h(e)){var t,i,o=e.coordinateSystem;"cartesian2d"===o.type?(t=o.getBaseAxis(),i=t.dim+t.index):"singleAxis"===o.type?(t=o.getAxis(),i=t.dim+t.type):(t=o.getBaseAxis(),i=t.dim+o.name),r[i]=r[i]||{coordSys:[],series:[]},r[i].coordSys.push(o),r[i].series.push(e)}},this),r},_tryShow:function(e){var t=e.target,r=this._tooltipModel,i=r.get("trigger"),o=this._ecModel,n=this._api;if(r)if(this._lastX=e.offsetX,this._lastY=e.offsetY,t&&null!=t.dataIndex){var a=t.dataModel||o.getSeriesByIndex(t.seriesIndex),s=t.dataIndex,l=a.getData().getItemModel(s);"axis"===(l.get("tooltip.trigger")||i)?this._showAxisTooltip(r,o,e):(this._ticket="",this._hideAxisPointer(),this._resetLastHover(),this._showItemTooltipContent(a,s,t.dataType,e)),n.dispatchAction({type:"showTip",from:this.uid,dataIndex:t.dataIndex,seriesIndex:t.seriesIndex})}else if(t&&t.tooltip){var c=t.tooltip;if("string"==typeof c){var h=c;c={content:h,formatter:h}}var u=new y(c,r),d=u.get("content"),f=Math.random();this._showTooltipContent(u,d,u.get("formatterParams")||{},f,e.offsetX,e.offsetY,t,n)}else"item"===i?this._hide():this._showAxisTooltip(r,o,e),"cross"===r.get("axisPointer.type")&&n.dispatchAction({type:"showTip",from:this.uid,x:e.offsetX,y:e.offsetY})},_showAxisTooltip:function(e,t,r){var o=e.getModel("axisPointer"),n=o.get("type");if("cross"===n){var a=r.target;if(a&&null!=a.dataIndex){var s=t.getSeriesByIndex(a.seriesIndex),l=a.dataIndex;this._showItemTooltipContent(s,l,a.dataType,r)}}this._showAxisPointer();var c=!0;f.each(this._seriesGroupByAxis,function(e){var t=e.coordSys,a=t[0],s=[r.offsetX,r.offsetY];if(!a.containPoint(s))return void this._hideAxisPointer(a.name);c=!1;var l=a.dimensions,h=a.pointToData(s,!0);s=a.dataToPoint(h);var u=a.getBaseAxis(),d=o.get("axis");"auto"===d&&(d=u.dim);var p=!1,m=this._lastHover;if("cross"===n)i(m.data,h)&&(p=!0),m.data=h;else{var g=f.indexOf(l,d);m.data===h[g]&&(p=!0),m.data=h[g]}"cartesian2d"!==a.type||p?"polar"!==a.type||p?"singleAxis"!==a.type||p||this._showSinglePointer(o,a,d,s):this._showPolarPointer(o,a,d,s):this._showCartesianPointer(o,a,d,s),"cross"!==n&&this._dispatchAndShowSeriesTooltipContent(a,e.series,s,h,p)},this),this._tooltipModel.get("show")||this._hideAxisPointer(),c&&this._hide()},_showCartesianPointer:function(e,t,r,i){function a(r,i,n){var a="x"===r?o(i[0],n[0],i[0],n[1]):o(n[0],i[1],n[1],i[1]),s=l._getPointerElement(t,e,r,a);d.subPixelOptimizeLine({shape:a,style:s.style}),u?d.updateProps(s,{shape:a},e):s.attr({shape:a})}function s(r,i,o){var a=t.getAxis(r),s=a.getBandWidth(),c=o[1]-o[0],h="x"===r?n(i[0]-s/2,o[0],s,c):n(o[0],i[1]-s/2,c,s),f=l._getPointerElement(t,e,r,h);u?d.updateProps(f,{shape:h},e):f.attr({shape:h})}var l=this,c=e.get("type"),h=t.getBaseAxis(),u="cross"!==c&&"category"===h.type&&h.getBandWidth()>20;if("cross"===c)a("x",i,t.getAxis("y").getGlobalExtent()),a("y",i,t.getAxis("x").getGlobalExtent()),this._updateCrossText(t,i,e);else{var f=t.getAxis("x"===r?"y":"x"),p=f.getGlobalExtent();"cartesian2d"===t.type&&("line"===c?a:s)(r,i,p)}},_showSinglePointer:function(e,t,r,i){function n(r,i,n){var s=t.getAxis(),c=s.orient,h="horizontal"===c?o(i[0],n[0],i[0],n[1]):o(n[0],i[1],n[1],i[1]),u=a._getPointerElement(t,e,r,h);l?d.updateProps(u,{shape:h},e):u.attr({shape:h})}var a=this,s=e.get("type"),l="cross"!==s&&"category"===t.getBaseAxis().type,c=t.getRect(),h=[c.y,c.y+c.height];n(r,i,h)},_showPolarPointer:function(e,t,r,i){function n(r,i,n){var a,s=t.pointToCoord(i);if("angle"===r){var c=t.coordToPoint([n[0],s[1]]),h=t.coordToPoint([n[1],s[1]]);a=o(c[0],c[1],h[0],h[1])}else a={cx:t.cx,cy:t.cy,r:s[0]};var u=l._getPointerElement(t,e,r,a);f?d.updateProps(u,{shape:a},e):u.attr({shape:a})}function s(r,i,o){var n,s=t.getAxis(r),c=s.getBandWidth(),h=t.pointToCoord(i),u=Math.PI/180;n="angle"===r?a(t.cx,t.cy,o[0],o[1],(-h[1]-c/2)*u,(-h[1]+c/2)*u):a(t.cx,t.cy,h[0]-c/2,h[0]+c/2,0,2*Math.PI);var p=l._getPointerElement(t,e,r,n);f?d.updateProps(p,{shape:n},e):p.attr({shape:n})}var l=this,c=e.get("type"),h=t.getAngleAxis(),u=t.getRadiusAxis(),f="cross"!==c&&"category"===t.getBaseAxis().type;if("cross"===c)n("angle",i,u.getExtent()),n("radius",i,h.getExtent()),this._updateCrossText(t,i,e);else{var p=t.getAxis("radius"===r?"angle":"radius"),m=p.getExtent();("line"===c?n:s)(r,i,m)}},_updateCrossText:function(e,t,r){var i=r.getModel("crossStyle"),o=i.getModel("textStyle"),n=this._tooltipModel,a=this._crossText;a||(a=this._crossText=new d.Text({style:{textAlign:"left",textVerticalAlign:"bottom"}}),this.group.add(a));var s=e.pointToData(t),l=e.dimensions;s=f.map(s,function(t,r){var i=e.getAxis(l[r]);return t="category"===i.type||"time"===i.type?i.scale.getLabel(t):p.addCommas(t.toFixed(i.getPixelPrecision()))}),a.setStyle({fill:o.getTextColor()||i.get("color"),textFont:o.getFont(),text:s.join(", "),x:t[0]+5,y:t[1]-5}),a.z=n.get("z"),a.zlevel=n.get("zlevel")},_getPointerElement:function(e,t,r,i){var o=this._tooltipModel,n=o.get("z"),a=o.get("zlevel"),s=this._axisPointers,l=e.name;if(s[l]=s[l]||{},s[l][r])return s[l][r];var c=t.get("type"),h=t.getModel(c+"Style"),u="shadow"===c,f=h[u?"getAreaStyle":"getLineStyle"](),p="polar"===e.type?u?"Sector":"radius"===r?"Circle":"Line":u?"Rect":"Line";u?f.stroke=null:f.fill=null;var m=s[l][r]=new d[p]({style:f,z:n,zlevel:a,silent:!0,shape:i});return this.group.add(m),m},_dispatchAndShowSeriesTooltipContent:function(e,t,r,i,o){var n=this._tooltipModel,a=e.getBaseAxis(),s="x"===a.dim||"radius"===a.dim?0:1,l=f.map(t,function(e){return{seriesIndex:e.seriesIndex,dataIndex:e.getAxisTooltipDataIndex?e.getAxisTooltipDataIndex(e.coordDimToDataDim(a.dim),i,a):e.getData().indexOfNearest(e.coordDimToDataDim(a.dim)[0],i[s],!1,"category"===a.type?.5:null)}}),h=this._lastHover,u=this._api;if(h.payloadBatch&&!o&&u.dispatchAction({type:"downplay",batch:h.payloadBatch}),o||(u.dispatchAction({type:"highlight",batch:l}),h.payloadBatch=l),u.dispatchAction({type:"showTip",dataIndex:l[0].dataIndex,seriesIndex:l[0].seriesIndex,from:this.uid}),a&&n.get("showContent")&&n.get("show")){var d=f.map(t,function(e,t){return e.getDataParams(l[t].dataIndex)});if(o)c(n.get("position"),r[0],r[1],this._tooltipContent,d,null,u);else{var p=l[0].dataIndex,m="time"===a.type?a.scale.getLabel(i[s]):t[0].getData().getName(p),g=(m?m+"
":"")+f.map(t,function(e,t){return e.formatTooltip(l[t].dataIndex,!0)}).join("
"),v="axis_"+e.name+"_"+p;this._showTooltipContent(n,g,d,v,r[0],r[1],null,u)}}},_showItemTooltipContent:function(e,t,r,i){var o=this._api,n=e.getData(r),a=n.getItemModel(t),s=a.get("tooltip",!0);if("string"==typeof s){var l=s;s={formatter:l}}var c=this._tooltipModel,h=e.getModel("tooltip",c),u=new y(s,h,h.ecModel),d=e.getDataParams(t,r),f=e.formatTooltip(t,!1,r),p="item_"+e.name+"_"+t;this._showTooltipContent(u,f,d,p,i.offsetX,i.offsetY,i.target,o)},_showTooltipContent:function(e,t,r,i,o,n,a,s){if(this._ticket="",e.get("showContent")&&e.get("show")){var l=this._tooltipContent,h=e.get("formatter"),u=e.get("position"),d=t;if(h)if("string"==typeof h)d=p.formatTpl(h,r);else if("function"==typeof h){var f=this,m=i,g=function(e,t){e===f._ticket&&(l.setContent(t),c(u,o,n,l,r,a,s))};f._ticket=m,d=h(r,m,g)}l.show(e),l.setContent(d),c(u,o,n,l,r,a,s)}},_showAxisPointer:function(e){if(e){var t=this._axisPointers[e];t&&f.each(t,function(e){e.show()})}else this.group.eachChild(function(e){e.show()}),this.group.show()},_resetLastHover:function(){var e=this._lastHover;e.payloadBatch&&this._api.dispatchAction({type:"downplay",batch:e.payloadBatch}),this._lastHover={}},_hideAxisPointer:function(e){if(e){var t=this._axisPointers[e];t&&f.each(t,function(e){e.hide()})}else this.group.children().length&&this.group.hide()},_hide:function(){clearTimeout(this._showTimeout),this._hideAxisPointer(),this._resetLastHover(),this._alwaysShowContent||this._tooltipContent.hideLater(this._tooltipModel.get("hideDelay")),this._api.dispatchAction({type:"hideTip",from:this.uid}),this._lastX=this._lastY=null},dispose:function(e,t){if(!v.node){var r=t.getZr();this._tooltipContent.hide(),r.off("click",this._tryShow),r.off("mousemove",this._mousemove),r.off("mouseout",this._hide),r.off("globalout",this._hide),t.off("showTip",this._manuallyShowTip),t.off("hideTip",this._manuallyHideTip)}}})},function(e,t,r){r(344),r(345)},function(e,t,r){function i(e,t,r){var i=e.targetVisuals[t].color;if(!i)return r.slice();var o=i.option.visual.length;if(1>=o||r[0]===r[1])return r.slice();for(var n=(r[1]-r[0])/(o-1),a=r[0],s=[],l=0;o>l&&at[1]&&t.reverse(),t[0]=Math.max(t[0],e[0]),t[1]=Math.min(t[1],e[1]))},completeVisualOption:function(){n.prototype.completeVisualOption.apply(this,arguments),a.each(this.stateList,function(e){var t=this.option.controller[e].symbolSize;t&&t[0]!==t[1]&&(t[0]=0)},this)},setSelected:function(e){this.option.range=e.slice(),this._resetRange()},getSelected:function(){var e=this.getExtent(),t=s.asc((this.get("range")||[]).slice());return t[0]>e[1]&&(t[0]=e[1]),t[1]>e[1]&&(t[1]=e[1]),t[0]=r[1]||e<=t[1])?"inRange":"outOfRange"},findTargetDataIndices:function(e){var t=[];return this.eachTargetSeries(function(r){var i=[],o=r.getData();o.each(this.getDataDimension(o),function(t,r){e[0]<=t&&t<=e[1]&&i.push(r)},!0,this),t.push({seriesId:r.id,dataIndex:i})},this),t},getStops:function(e,t){var r=[];return o(this,"outOfRange",this.getExtent(),r),o(this,"inRange",this.option.range.slice(),r),a.each(r,function(e){e.color=t(this,e.value,e.valueState)},this),r}});e.exports=c},function(e,t,r){function i(e,t,r,i){return new c.Polygon({shape:{points:e},draggable:!!r,cursor:t,drift:r,ondragend:i})}function o(e,t){return 0===e?[[0,0],[t,0],[t,-t]]:[[0,0],[t,0],[t,t]]}function n(e,t,r,i){return e?[[0,-y(t,x(r,0))],[_,0],[0,y(t,x(i-r,0))]]:[[0,0],[5,-5],[5,5]]}function a(e,t,r){var i=b/2,o=e.get("hoverLinkDataSize");return o&&(i=g(o,t,r,!0)/2),i}function s(e){return!e.get("realtime")&&e.get("hoverLinkOnHandle")}var l=r(108),c=r(3),h=r(1),u=r(4),d=r(62),f=r(131),p=r(109),m=r(12),g=u.linearMap,v=h.each,y=Math.min,x=Math.max,b=12,_=6,S=l.extend({type:"visualMap.continuous",init:function(){S.superApply(this,"init",arguments),this._shapes={},this._dataInterval=[],this._handleEnds=[],this._orient,this._useHandle,this._hoverLinkDataIndices=[],this._dragging,this._hovering},doRender:function(e,t,r,i){i&&"selectDataRange"===i.type&&i.from===this.uid||this._buildView()},_buildView:function(){this.group.removeAll();var e=this.visualMapModel,t=this.group;this._orient=e.get("orient"),this._useHandle=e.get("calculable"),this._resetInterval(),this._renderBar(t);var r=e.get("text");this._renderEndsText(t,r,0),this._renderEndsText(t,r,1),this._updateView(!0),this.renderBackground(t),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(t)},_renderEndsText:function(e,t,r){if(t){var i=t[1-r];i=null!=i?i+"":"";var o=this.visualMapModel,n=o.get("textGap"),a=o.itemSize,s=this._shapes.barGroup,l=this._applyTransform([a[0]/2,0===r?-n:a[1]+n],s),h=this._applyTransform(0===r?"bottom":"top",s),u=this._orient,d=this.visualMapModel.textStyleModel;this.group.add(new c.Text({style:{x:l[0],y:l[1],textVerticalAlign:"horizontal"===u?"middle":h,textAlign:"horizontal"===u?h:"center",text:i,textFont:d.getFont(),fill:d.getTextColor()}}))}},_renderBar:function(e){var t=this.visualMapModel,r=this._shapes,o=t.itemSize,n=this._orient,a=this._useHandle,s=p.getItemAlign(t,this.api,o),l=r.barGroup=this._createBarGroup(s);l.add(r.outOfRange=i()),l.add(r.inRange=i(null,a?"move":null,h.bind(this._dragHandle,this,"all",!1),h.bind(this._dragHandle,this,"all",!0)));var c=t.textStyleModel.getTextRect("国"),u=x(c.width,c.height);a&&(r.handleThumbs=[],r.handleLabels=[],r.handleLabelPoints=[],this._createHandle(l,0,o,u,n,s),this._createHandle(l,1,o,u,n,s)),this._createIndicator(l,o,u,n),e.add(l)},_createHandle:function(e,t,r,n,a){var s=h.bind(this._dragHandle,this,t,!1),l=h.bind(this._dragHandle,this,t,!0),u=i(o(t,n),"move",s,l);u.position[0]=r[0],e.add(u);var d=this.visualMapModel.textStyleModel,f=new c.Text({draggable:!0,drift:s,ondragend:l,style:{x:0,y:0,text:"",textFont:d.getFont(),fill:d.getTextColor()}});this.group.add(f);var p=["horizontal"===a?n/2:1.5*n,"horizontal"===a?0===t?-(1.5*n):1.5*n:0===t?-n/2:n/2],m=this._shapes;m.handleThumbs[t]=u,m.handleLabelPoints[t]=p,m.handleLabels[t]=f},_createIndicator:function(e,t,r,o){var n=i([[0,0]],"move");n.position[0]=t[0],n.attr({invisible:!0,silent:!0}),e.add(n);var a=this.visualMapModel.textStyleModel,s=new c.Text({silent:!0,invisible:!0,style:{x:0,y:0,text:"",textFont:a.getFont(),fill:a.getTextColor()}});this.group.add(s);var l=["horizontal"===o?r/2:_+3,0],h=this._shapes;h.indicator=n,h.indicatorLabel=s,h.indicatorLabelPoint=l},_dragHandle:function(e,t,r,i){if(this._useHandle){if(this._dragging=!t,!t){var o=this._applyTransform([r,i],this._shapes.barGroup,!0);this._updateInterval(e,o[1]),this._updateView()}t===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),t?!this._hovering&&this._clearHoverLinkToSeries():s(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[e],!1)}},_resetInterval:function(){var e=this.visualMapModel,t=this._dataInterval=e.getSelected(),r=e.getExtent(),i=[0,e.itemSize[1]];this._handleEnds=[g(t[0],r,i,!0),g(t[1],r,i,!0)]},_updateInterval:function(e,t){t=t||0;var r=this.visualMapModel,i=this._handleEnds;d(t,i,[0,r.itemSize[1]],"all"===e?"rigid":"push",e);var o=r.getExtent(),n=[0,r.itemSize[1]];this._dataInterval=[g(i[0],n,o,!0),g(i[1],n,o,!0)]},_updateView:function(e){var t=this.visualMapModel,r=t.getExtent(),i=this._shapes,o=[0,t.itemSize[1]],n=e?o:this._handleEnds,a=this._createBarVisual(this._dataInterval,r,n,"inRange"),s=this._createBarVisual(r,r,o,"outOfRange");i.inRange.setStyle({fill:a.barColor,opacity:a.opacity}).setShape("points",a.barPoints),i.outOfRange.setStyle({fill:s.barColor,opacity:s.opacity}).setShape("points",s.barPoints),this._updateHandle(n,a)},_createBarVisual:function(e,t,r,i){var o={forceState:i,convertOpacityToAlpha:!0},n=this._makeColorGradient(e,o),a=[this.getControllerVisual(e[0],"symbolSize",o),this.getControllerVisual(e[1],"symbolSize",o)],s=this._createBarPoints(r,a);return{barColor:new f(0,0,0,1,n),barPoints:s,handlesColor:[n[0].color,n[n.length-1].color]}},_makeColorGradient:function(e,t){var r=100,i=[],o=(e[1]-e[0])/r;i.push({color:this.getControllerVisual(e[0],"color",t),offset:0});for(var n=1;r>n;n++){var a=e[0]+o*n;if(a>e[1])break;i.push({color:this.getControllerVisual(a,"color",t),offset:n/r})}return i.push({color:this.getControllerVisual(e[1],"color",t),offset:1}),i},_createBarPoints:function(e,t){var r=this.visualMapModel.itemSize;return[[r[0]-t[0],e[0]],[r[0],e[0]],[r[0],e[1]],[r[0]-t[1],e[1]]]},_createBarGroup:function(e){var t=this._orient,r=this.visualMapModel.get("inverse");return new c.Group("horizontal"!==t||r?"horizontal"===t&&r?{scale:"bottom"===e?[-1,1]:[1,1],rotation:-Math.PI/2}:"vertical"!==t||r?{scale:"left"===e?[1,1]:[-1,1]}:{scale:"left"===e?[1,-1]:[-1,-1]}:{scale:"bottom"===e?[1,1]:[-1,1],rotation:Math.PI/2})},_updateHandle:function(e,t){if(this._useHandle){var r=this._shapes,i=this.visualMapModel,o=r.handleThumbs,n=r.handleLabels;v([0,1],function(a){var s=o[a];s.setStyle("fill",t.handlesColor[a]),s.position[1]=e[a];var l=c.applyTransform(r.handleLabelPoints[a],c.getTransform(s,this.group));n[a].setStyle({x:l[0],y:l[1],text:i.formatValueText(this._dataInterval[a]),textVerticalAlign:"middle",textAlign:this._applyTransform("horizontal"===this._orient?0===a?"bottom":"top":"left",r.barGroup)})},this)}},_showIndicator:function(e,t,r,i){var o=this.visualMapModel,a=o.getExtent(),s=o.itemSize,l=[0,s[1]],h=g(e,a,l,!0),u=this._shapes,d=u.indicator;if(d){d.position[1]=h,d.attr("invisible",!1),d.setShape("points",n(!!r,i,h,s[1]));var f={convertOpacityToAlpha:!0},p=this.getControllerVisual(e,"color",f);d.setStyle("fill",p);var m=c.applyTransform(u.indicatorLabelPoint,c.getTransform(d,this.group)),v=u.indicatorLabel;v.attr("invisible",!1);var y=this._applyTransform("left",u.barGroup),x=this._orient;v.setStyle({text:(r?r:"")+o.formatValueText(t),textVerticalAlign:"horizontal"===x?y:"middle",textAlign:"horizontal"===x?"center":y,x:m[0],y:m[1]})}},_enableHoverLinkToSeries:function(){var e=this;this._shapes.barGroup.on("mousemove",function(t){if(e._hovering=!0,!e._dragging){var r=e.visualMapModel.itemSize,i=e._applyTransform([t.offsetX,t.offsetY],e._shapes.barGroup,!0,!0);i[1]=y(x(0,i[1]),r[1]),e._doHoverLinkToSeries(i[1],0<=i[0]&&i[0]<=r[0])}}).on("mouseout",function(){e._hovering=!1,!e._dragging&&e._clearHoverLinkToSeries()})},_enableHoverLinkFromSeries:function(){var e=this.api.getZr();this.visualMapModel.option.hoverLink?(e.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),e.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},_doHoverLinkToSeries:function(e,t){var r=this.visualMapModel,i=r.itemSize;if(r.option.hoverLink){var o=[0,i[1]],n=r.getExtent();e=y(x(o[0],e),o[1]);var l=a(r,n,o),c=[e-l,e+l],h=g(e,o,n,!0),u=[g(c[0],o,n,!0),g(c[1],o,n,!0)];c[0]o[1]&&(u[1]=1/0),t&&(u[0]===-(1/0)?this._showIndicator(h,u[1],"< ",l):u[1]===1/0?this._showIndicator(h,u[0],"> ",l):this._showIndicator(h,h,"≈ ",l));var d=this._hoverLinkDataIndices,f=[];(t||s(r))&&(f=this._hoverLinkDataIndices=r.findTargetDataIndices(u));var p=m.compressBatches(d,f);this._dispatchHighDown("downplay",p[0]),this._dispatchHighDown("highlight",p[1])}},_hoverLinkFromSeriesMouseOver:function(e){var t=e.target;if(t&&null!=t.dataIndex){var r=t.dataModel||this.ecModel.getSeriesByIndex(t.seriesIndex),i=r.getData(t.dataType),o=i.getDimension(this.visualMapModel.getDataDimension(i)),n=i.get(o,t.dataIndex,!0);isNaN(n)||this._showIndicator(n,n)}},_hideIndicator:function(){var e=this._shapes;e.indicator&&e.indicator.attr("invisible",!0),e.indicatorLabel&&e.indicatorLabel.attr("invisible",!0)},_clearHoverLinkToSeries:function(){this._hideIndicator();var e=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",e),e.length=0},_clearHoverLinkFromSeries:function(){this._hideIndicator();var e=this.api.getZr();e.off("mouseover",this._hoverLinkFromSeriesMouseOver),e.off("mouseout",this._hideIndicator)},_applyTransform:function(e,t,r,i){var o=c.getTransform(t,i?null:this.group);return c[h.isArray(e)?"applyTransform":"transformDirection"](e,o,r)},_dispatchHighDown:function(e,t){t&&t.length&&this.api.dispatchAction({type:e,batch:t})},dispose:function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},remove:function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()}});e.exports=S},function(e,t,r){function i(e,t){var r=e.inverse;("vertical"===e.orient?!r:r)&&t.reverse()}function o(e){function t(e,r,i){return i=i||0,e.interval[i]r.close[i]||t(e,r,1))}e.sort(function(e,r){return t(e,r)?-1:1});for(var r=-(1/0),i=0;ia;a++)o[a]0?"pieces":this.option.categories?"categories":"splitNumber"},setSelected:function(e){this.option.selected=a.clone(e)},getValueState:function(e){var t=s.findPieceIndex(e,this._pieceList);return null!=t&&this.option.selected[this.getSelectedMapKey(this._pieceList[t])]?"inRange":"outOfRange"},findTargetDataIndices:function(e){var t=[];return this.eachTargetSeries(function(r){var i=[],o=r.getData();o.each(this.getDataDimension(o),function(t,r){var o=s.findPieceIndex(t,this._pieceList);o===e&&i.push(r)},!0,this),t.push({seriesId:r.id,dataIndex:i})},this),t},getRepresentValue:function(e){var t;if(this.isCategory())t=e.value;else if(null!=e.value)t=e.value;else{var r=e.interval||[];t=(r[0]+r[1])/2}return t},getStops:function(e,t){function r(e){i.push(e),e.color=t(o,o.getRepresentValue(e),e.valueState)}var i=[],o=this,n=-(1/0);return a.each(this._pieceList,function(e){var t=e.interval;t&&(t[0]>n&&r({interval:[n,t[0]],valueState:"outOfRange"}),r({interval:t.slice(),valueState:this.getValueState((t[0]+t[1])/2)}),n=t[1])},this),i}}),c={splitNumber:function(){var e=this.option,t=this._pieceList,r=e.precision,i=this.getExtent(),n=e.splitNumber;n=Math.max(parseInt(n,10),1),e.splitNumber=n;for(var s=(i[1]-i[0])/n;+s.toFixed(r)!==s&&5>r;)r++;e.precision=r,s=+s.toFixed(r);for(var l=0,c=i[0];n>l;l++,c+=s){var h=l===n-1?i[1]:c+s;t.push({index:l,interval:[c,h],close:[1,1]})}o(t),a.each(t,function(e){e.text=this.formatValueText(e.interval)},this)},categories:function(){var e=this.option;a.each(e.categories,function(e){this._pieceList.push({text:this.formatValueText(e,!0),value:e})},this),i(e,this._pieceList)},pieces:function(){var e=this.option,t=this._pieceList;a.each(e.pieces,function(e,r){a.isObject(e)||(e={value:e});var i={text:"",index:r};if(null!=e.label&&(i.text=e.label),e.hasOwnProperty("value")){var o=i.value=e.value;i.interval=[o,o],i.close=[1,1]}else{for(var n=i.interval=[],l=i.close=[0,0],c=[1,0,1],h=[-(1/0),1/0],u=[],d=0;2>d;d++){for(var f=[["gte","gt","min"],["lte","lt","max"]][d],p=0;3>p&&null==n[d];p++)n[d]=e[f[p]],l[d]=c[p],u[d]=2===p;null==n[d]&&(n[d]=h[d])}u[0]&&n[1]===1/0&&(l[0]=0),u[1]&&n[0]===-(1/0)&&(l[1]=0),n[0]===n[1]&&l[0]&&l[1]&&(i.value=n[0])}i.visual=s.retrieveVisuals(e),t.push(i)},this),i(e,t),o(t),a.each(t,function(e){var t=e.close,r=[["<","≤"][t[1]],[">","≥"][t[0]]];e.text=e.text||this.formatValueText(null!=e.value?e.value:e.interval,!1,r)},this)}};e.exports=l},function(e,t,r){var i=r(108),o=r(1),n=r(3),a=r(19),s=r(6),l=r(109),c=i.extend({type:"visualMap.piecewise",doRender:function(){function e(e){var a=e.piece,s=new n.Group;s.onclick=o.bind(this._onItemClick,this,a),this._enableHoverLink(s,e.indexInModelPieceList);var d=r.getRepresentValue(a);if(this._createItemSymbol(s,d,[0,0,u[0],u[1]]),f){var p=this.visualMapModel.getValueState(d);s.add(new n.Text({style:{x:"right"===h?-i:u[0]+i,y:u[1]/2,text:a.text,textVerticalAlign:"middle",textAlign:h,textFont:l,fill:c,opacity:"outOfRange"===p?.5:1}}))}t.add(s)}var t=this.group;t.removeAll();var r=this.visualMapModel,i=r.get("textGap"),a=r.textStyleModel,l=a.getFont(),c=a.getTextColor(),h=this._getItemAlign(),u=r.itemSize,d=this._getViewData(),f=!d.endsText,p=!f;p&&this._renderEndsText(t,d.endsText[0],u),o.each(d.viewPieceList,e,this),p&&this._renderEndsText(t,d.endsText[1],u),s.box(r.get("orient"),t,r.get("itemGap")),this.renderBackground(t),this.positionGroup(t)},_enableHoverLink:function(e,t){function r(e){var r=this.visualMapModel;r.option.hoverLink&&this.api.dispatchAction({type:e,batch:r.findTargetDataIndices(t)})}e.on("mouseover",o.bind(r,this,"highlight")).on("mouseout",o.bind(r,this,"downplay"))},_getItemAlign:function(){var e=this.visualMapModel,t=e.option;if("vertical"===t.orient)return l.getItemAlign(e,this.api,e.itemSize);var r=t.align;return r&&"auto"!==r||(r="left"),r},_renderEndsText:function(e,t,r){if(t){var i=new n.Group,o=this.visualMapModel.textStyleModel;i.add(new n.Text({style:{x:r[0]/2,y:r[1]/2,textVerticalAlign:"middle",textAlign:"center",text:t,textFont:o.getFont(),fill:o.getTextColor()}})),e.add(i)}},_getViewData:function(){var e=this.visualMapModel,t=o.map(e.getPieceList(),function(e,t){return{piece:e,indexInModelPieceList:t}}),r=e.get("text"),i=e.get("orient"),n=e.get("inverse");return("horizontal"===i?n:!n)?t.reverse():r&&(r=r.slice().reverse()),{viewPieceList:t,endsText:r}},_createItemSymbol:function(e,t,r){e.add(a.createSymbol(this.getControllerVisual(t,"symbol"),r[0],r[1],r[2],r[3],this.getControllerVisual(t,"color")))},_onItemClick:function(e){var t=this.visualMapModel,r=t.option,i=o.clone(r.selected),n=t.getSelectedMapKey(e);"single"===r.selectedMode?(i[n]=!0,o.each(i,function(e,t){i[t]=t===n})):i[n]=!i[n],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:i})}});e.exports=c},function(e,t,r){r(2).registerPreprocessor(r(110)),r(111),r(112),r(340),r(341),r(113)},function(e,t,r){r(2).registerPreprocessor(r(110)),r(111),r(112),r(342),r(343),r(113)},function(e,t,r){var i=r(1),o=r(27),n=r(350),a=function(e,t,r,i,n){o.call(this,e,t,r),this.type=i||"value",this.position=n||"bottom"};a.prototype={constructor:a,index:0,onZero:!1,model:null,isHorizontal:function(){var e=this.position;return"top"===e||"bottom"===e},getGlobalExtent:function(){var e=this.getExtent();return e[0]=this.toGlobalCoord(e[0]),e[1]=this.toGlobalCoord(e[1]),e},getLabelInterval:function(){var e=this._labelInterval;return e||(e=this._labelInterval=n(this)),e},isLabelIgnored:function(e){if("category"===this.type){var t=this.getLabelInterval();return"function"==typeof t&&!t(e,this.scale.getLabel(e))||e%(t+1)}},toLocalCoord:null,toGlobalCoord:null},i.inherits(a,o),e.exports=a},function(e,t,r){"use strict";function i(e){return this._axes[e]}var o=r(1),n=function(e){this._axes={},this._dimList=[],this.name=e||""};n.prototype={constructor:n,type:"cartesian",getAxis:function(e){return this._axes[e]},getAxes:function(){return o.map(this._dimList,i,this)},getAxesByScale:function(e){return e=e.toLowerCase(),o.filter(this.getAxes(),function(t){return t.scale.type===e})},addAxis:function(e){var t=e.dim;this._axes[t]=e,this._dimList.push(t)},dataToCoord:function(e){return this._dataCoordConvert(e,"dataToCoord")},coordToData:function(e){return this._dataCoordConvert(e,"coordToData")},_dataCoordConvert:function(e,t){for(var r=this._dimList,i=e instanceof Array?[]:{},o=0;o>1^-(1&a),s=s>>1^-(1&s),a+=i,s+=o,i=a,o=s,r.push([a/1024,s/1024])}return r}function n(e){for(var t=[],r=0;r=0;r--)l.asc(t[r])},getActiveState:function(e){var t=this.activeIntervals;if(!t.length)return"normal";if(null==e)return"inactive";for(var r=0,i=t.length;i>r;r++)if(t[r][0]<=e&&e<=t[r][1])return"active";return"inactive"}}),h={type:"value",dim:null,areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};n.merge(c.prototype,r(37)),s("parallel",c,i,h),e.exports=c},function(e,t,r){function i(e,t,r){this._axesMap={},this._axesLayout={},this.dimensions=e.dimensions,this._rect,this._model=e,this._init(e,t,r)}var o=r(6),n=r(16),a=r(1),s=r(359),l=r(3),c=r(20),h=a.each,u=Math.PI;i.prototype={type:"parallel",constructor:i,_init:function(e,t,r){var i=e.dimensions,o=e.parallelAxisIndex;h(i,function(e,r){var i=o[r],a=t.getComponent("parallelAxis",i),l=this._axesMap[e]=new s(e,n.createScaleByModel(a),[0,0],a.get("type"),i),c="category"===l.type;l.onBand=c&&a.get("boundaryGap"),l.inverse=a.get("inverse"),a.axis=l,l.model=a},this)},update:function(e,t){this._updateAxesFromSeries(this._model,e)},_updateAxesFromSeries:function(e,t){t.eachSeries(function(r){if(e.contains(r,t)){var i=r.getData();h(this.dimensions,function(e){var t=this._axesMap[e];t.scale.unionExtent(i.getDataExtent(e)),n.niceScaleExtent(t,t.model)},this)}},this)},resize:function(e,t){this._rect=o.getLayoutRect(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),this._layoutAxes(e)},getRect:function(){return this._rect},_layoutAxes:function(e){var t=this._rect,r=e.get("layout"),i=this._axesMap,o=this.dimensions,n=[t.width,t.height],a="horizontal"===r?0:1,s=n[a],l=n[1-a],d=[0,l];h(i,function(e){var t=e.inverse?1:0;e.setExtent(d[t],d[1-t])});var f,p=e.get("axisExpandable"),m=e.get("axisExpandWidth"),g=e.get("axisExpandCenter"),v=e.get("axisExpandCount")||0;if(null!=g){var y=Math.max(0,Math.floor(g-(v-1)/2)),x=y+v-1;x>=o.length&&(x=o.length-1,y=Math.max(0,Math.floor(x-v+1))),f=[y,x]}var b=p&&f&&m?function(e,t,r){var i,o=f[1]-f[0],n=(t-m*o)/(r-1-o);return i=ea;a++){var l,c=e.getValues(i,a);if(n){l="active";for(var h=0,u=i.length;u>h;h++){var d=i[h],f=o[d].model.getActiveState(c[h],h);if("inactive"===f){l="inactive";break}}}else l="normal";t.call(r,l,a)}},hasAxisbrushed:function(){for(var e=this.dimensions,t=this._axesMap,r=!1,i=0,o=e.length;o>i;i++)"normal"!==t[e[i]].model.getActiveState()&&(r=!0);return r},axisCoordToPoint:function(e,t){var r=this._axesLayout[t];return l.applyTransform([e,0],r.transform)},getAxisLayout:function(e){return a.clone(this._axesLayout[e])},findClosestAxisDim:function(e){var t,r=1/0;return a.each(this._axesLayout,function(i,o){var n=l.applyTransform(e,i.transform,!0),a=this._axesMap[o].getExtent();if(!(n[0]a[1])){var s=Math.abs(n[1]);r>s&&(r=s,t=o)}},this),t}},e.exports=i},function(e,t,r){var i=r(1),o=r(27),n=function(e,t,r,i,n){o.call(this,e,t,r),this.type=i||"value",this.axisIndex=n};n.prototype={constructor:n,model:null},i.inherits(n,o),e.exports=n},function(e,t,r){var i=r(1),o=r(11);r(357),o.extend({type:"parallel",dependencies:["parallelAxis"],coordinateSystem:null,dimensions:null,parallelAxisIndex:null,layoutMode:"box",defaultOption:{zlevel:0,z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,parallelAxisDefault:null},init:function(){o.prototype.init.apply(this,arguments),this.mergeOption({})},mergeOption:function(e){var t=this.option;e&&i.merge(t,e,!0),this._initDimensions()},contains:function(e,t){var r=e.get("parallelIndex");return null!=r&&t.getComponent("parallel",r)===this},setAxisExpand:function(e){i.each(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth"],function(t){e.hasOwnProperty(t)&&(this.option[t]=e[t])},this)},_initDimensions:function(){var e=this.dimensions=[],t=this.parallelAxisIndex=[],r=i.filter(this.dependentModels.parallelAxis,function(e){return e.get("parallelIndex")===this.componentIndex});i.each(r,function(r){e.push("dim"+r.get("dim")),t.push(r.componentIndex)})}})},function(e,t,r){function i(e){if(!e.parallel){var t=!1;n.each(e.series,function(e){e&&"parallel"===e.type&&(t=!0)}),t&&(e.parallel=[{}])}}function o(e){var t=a.normalizeToArray(e.parallelAxis);n.each(t,function(t){if(n.isObject(t)){var r=t.parallelIndex||0,i=a.normalizeToArray(e.parallel)[r];i&&i.parallelAxisDefault&&n.merge(t,i.parallelAxisDefault,!1)}})}var n=r(1),a=r(12);e.exports=function(e){i(e),o(e)}},function(e,t,r){"use strict";function i(e,t){t=t||[0,360],n.call(this,"angle",e,t),this.type="category"}var o=r(1),n=r(27);i.prototype={constructor:i,dataToAngle:n.prototype.dataToCoord,angleToData:n.prototype.coordToData},o.inherits(i,n),e.exports=i},function(e,t,r){"use strict";function i(e,t){return t.type||(t.data?"category":"value")}var o=r(1),n=r(11),a=r(47),s=n.extend({type:"polarAxis",axis:null});o.merge(s.prototype,r(37));var l={angle:{startAngle:90,clockwise:!0,splitNumber:12,axisLabel:{rotate:!1}},radius:{splitNumber:5}};a("angle",s,i,l.angle),a("radius",s,i,l.radius)},function(e,t,r){"use strict";var i=r(366),o=r(362),n=function(e){this.name=e||"",this.cx=0,this.cy=0,this._radiusAxis=new i,this._angleAxis=new o};n.prototype={constructor:n,type:"polar",dimensions:["radius","angle"],containPoint:function(e){var t=this.pointToCoord(e);return this._radiusAxis.contain(t[0])&&this._angleAxis.contain(t[1])},containData:function(e){return this._radiusAxis.containData(e[0])&&this._angleAxis.containData(e[1])},getAxis:function(e){return this["_"+e+"Axis"]},getAxesByScale:function(e){var t=[],r=this._angleAxis,i=this._radiusAxis;return r.scale.type===e&&t.push(r),i.scale.type===e&&t.push(i),t},getAngleAxis:function(){return this._angleAxis},getRadiusAxis:function(){return this._radiusAxis},getOtherAxis:function(e){var t=this._angleAxis;return e===t?this._radiusAxis:t},getBaseAxis:function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAngleAxis()},dataToPoints:function(e){return e.mapArray(this.dimensions,function(e,t){return this.dataToPoint([e,t])},this)},dataToPoint:function(e,t){return this.coordToPoint([this._radiusAxis.dataToRadius(e[0],t),this._angleAxis.dataToAngle(e[1],t)])},pointToData:function(e,t){var r=this.pointToCoord(e);return[this._radiusAxis.radiusToData(r[0],t),this._angleAxis.angleToData(r[1],t)]},pointToCoord:function(e){var t=e[0]-this.cx,r=e[1]-this.cy,i=this.getAngleAxis(),o=i.getExtent(),n=Math.min(o[0],o[1]),a=Math.max(o[0],o[1]);i.inverse?n=a-360:a=n+360;var s=Math.sqrt(t*t+r*r);t/=s,r/=s;for(var l=Math.atan2(-r,t)/Math.PI*180,c=n>l?1:-1;n>l||l>a;)l+=360*c;return[s,l]},coordToPoint:function(e){var t=e[0],r=e[1]/180*Math.PI,i=Math.cos(r)*t+this.cx,o=-Math.sin(r)*t+this.cy;return[i,o]}},e.exports=n},function(e,t,r){"use strict";r(363),r(2).extendComponentModel({type:"polar",dependencies:["polarAxis","angleAxis"],coordinateSystem:null,findAxisModel:function(e){var t,r=this.ecModel;return r.eachComponent(e,function(e){var i=r.queryComponents({mainType:"polar",index:e.getShallow("polarIndex"),id:e.getShallow("polarId")})[0];i===this&&(t=e)},this),t},defaultOption:{zlevel:0,z:0,center:["50%","50%"],radius:"80%"}})},function(e,t,r){"use strict";function i(e,t){n.call(this,"radius",e,t),this.type="category"}var o=r(1),n=r(27);i.prototype={constructor:i,dataToRadius:n.prototype.dataToCoord,radiusToData:n.prototype.coordToData},o.inherits(i,n),e.exports=i},function(e,t,r){function i(e,t,r){n.call(this,e,t,r),this.type="value",this.angle=0,this.name="",this.model}var o=r(1),n=r(27);o.inherits(i,n),e.exports=i},function(e,t,r){function i(e,t,r){this._model=e,this.dimensions=[],this._indicatorAxes=o.map(e.getIndicatorModels(),function(e,t){var r="indicator_"+t,i=new n(r,new a);return i.name=e.get("name"),i.model=e,e.axis=i,this.dimensions.push(r),i},this),this.resize(e,r),this.cx,this.cy,this.r,this.startAngle}var o=r(1),n=r(367),a=r(50),s=r(4),l=r(16);i.prototype.getIndicatorAxes=function(){return this._indicatorAxes},i.prototype.dataToPoint=function(e,t){var r=this._indicatorAxes[t];return this.coordToPoint(r.dataToCoord(e),t)},i.prototype.coordToPoint=function(e,t){var r=this._indicatorAxes[t],i=r.angle,o=this.cx+e*Math.cos(i),n=this.cy-e*Math.sin(i);return[o,n]},i.prototype.pointToData=function(e){var t=e[0]-this.cx,r=e[1]-this.cy,i=Math.sqrt(t*t+r*r);t/=i,r/=i;for(var o,n=Math.atan2(-r,t),a=1/0,s=-1,l=0;lh&&(o=c,s=l,a=h)}return[s,+(o&&o.coodToData(i))]},i.prototype.resize=function(e,t){var r=e.get("center"),i=t.getWidth(),n=t.getHeight(),a=Math.min(i,n)/2;this.cx=s.parsePercent(r[0],i),this.cy=s.parsePercent(r[1],n),this.startAngle=e.get("startAngle")*Math.PI/180,this.r=s.parsePercent(e.get("radius"),a),o.each(this._indicatorAxes,function(e,t){e.setExtent(0,this.r);var r=this.startAngle+t*Math.PI*2/this._indicatorAxes.length;r=Math.atan2(Math.sin(r),Math.cos(r)),e.angle=r},this)},i.prototype.update=function(e,t){function r(e){var t=Math.pow(10,Math.floor(Math.log(e)/Math.LN10)),r=e/t;return 2===r?r=5:r*=2,r*t}var i=this._indicatorAxes,n=this._model;o.each(i,function(e){e.scale.setExtent(1/0,-(1/0))}),e.eachSeriesByType("radar",function(t,r){if("radar"===t.get("coordinateSystem")&&e.getComponent("radar",t.get("radarIndex"))===n){var a=t.getData();o.each(i,function(e){e.scale.unionExtent(a.getDataExtent(e.dim))})}},this);var a=n.get("splitNumber");o.each(i,function(e,t){var i=l.getScaleExtent(e,e.model);l.niceScaleExtent(e,e.model);var o=e.model,n=e.scale,c=o.get("min"),h=o.get("max"),u=n.getInterval();if(null!=c&&null!=h)n.setInterval((h-c)/a);else if(null!=c){var d;do d=c+u*a,n.setExtent(+c,d),n.setInterval(u),u=r(u);while(di[0]&&isFinite(f)&&isFinite(i[0]))}else{var p=n.getTicks().length-1;p>a&&(u=r(u));var m=Math.round((i[0]+i[1])/2/u)*u,g=Math.round(a/2);n.setExtent(s.round(m-g*u),s.round(m+(a-g)*u)),n.setInterval(u)}})},i.dimensions=[],i.create=function(e,t){var r=[];return e.eachComponent("radar",function(o){var n=new i(o,e,t);r.push(n),o.coordinateSystem=n}),e.eachSeriesByType("radar",function(e){"radar"===e.get("coordinateSystem")&&(e.coordinateSystem=r[e.get("radarIndex")||0])}),r},r(18).register("radar",i),e.exports=i},function(e,t,r){function i(e,t){return s.defaults({show:t},e)}var o=r(115),n=o.valueAxis,a=r(9),s=r(1),l=r(37),c=r(2).extendComponentModel({type:"radar",optionUpdated:function(){var e=this.get("boundaryGap"),t=this.get("splitNumber"),r=this.get("scale"),i=this.get("axisLine"),o=this.get("axisTick"),n=this.get("axisLabel"),c=this.get("name.textStyle"),h=this.get("name.show"),u=this.get("name.formatter"),d=this.get("nameGap"),f=s.map(this.get("indicator")||[],function(f){return null!=f.max&&f.max>0&&!f.min?f.min=0:null!=f.min&&f.min<0&&!f.max&&(f.max=0),f=s.merge(s.clone(f),{boundaryGap:e,splitNumber:t,scale:r,axisLine:i,axisTick:o,axisLabel:n,name:f.text,nameLocation:"end",nameGap:d,nameTextStyle:c},!1),h||(f.name=""),"string"==typeof u?f.name=u.replace("{value}",f.name):"function"==typeof u&&(f.name=u(f.name,f)),s.extend(new a(f,null,this.ecModel),l)},this);this.getIndicatorModels=function(){return f}},defaultOption:{zlevel:0,z:0,center:["50%","50%"],radius:"75%",startAngle:90,name:{show:!0},boundaryGap:[0,0],splitNumber:5,nameGap:15,scale:!1,shape:"polygon",axisLine:s.merge({lineStyle:{color:"#bbb"}},n.axisLine),axisLabel:i(n.axisLabel,!1),axisTick:i(n.axisTick,!1),splitLine:i(n.splitLine,!0),splitArea:i(n.splitArea,!0),indicator:[]}});e.exports=c},function(e,t,r){function i(e,t){return t.type||(t.data?"category":"value")}var o=r(11),n=r(47),a=r(1),s=o.extend({type:"singleAxis",layoutMode:"box",axis:null,coordinateSystem:null}),l={left:"5%",top:"5%",right:"5%",bottom:"5%",type:"value",position:"bottom",orient:"horizontal",axisLine:{show:!0,lineStyle:{width:2,type:"solid"}},axisTick:{show:!0,length:6,lineStyle:{width:2}},axisLabel:{show:!0,interval:"auto"},splitLine:{show:!0,lineStyle:{type:"dashed",opacity:.2}}};a.merge(s.prototype,r(37)),n("single",s,i,l),e.exports=s},function(e,t,r){function i(e,t,r){this.dimension="x",this.dimensions=["x"],this._axis=null,this._rect,this._init(e,t,r),this._model=e}var o=r(372),n=r(16),a=r(6);i.prototype={type:"singleAxis",constructor:i,_init:function(e,t,r){var i=this.dimension,a=new o(i,n.createScaleByModel(e),[0,0],e.get("type"),e.get("position")),s="category"===a.type;a.onBand=s&&e.get("boundaryGap"),a.inverse=e.get("inverse"),a.orient=e.get("orient"),e.axis=a,a.model=e,this._axis=a},update:function(e,t){this._updateAxisFromSeries(e)},_updateAxisFromSeries:function(e){e.eachSeries(function(e){var t=e.getData(),r=this.dimension;this._axis.scale.unionExtent(t.getDataExtent(e.coordDimToDataDim(r))),n.niceScaleExtent(this._axis,this._axis.model)},this)},resize:function(e,t){this._rect=a.getLayoutRect({left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")},{width:t.getWidth(),height:t.getHeight()}),this._adjustAxis()},getRect:function(){return this._rect},_adjustAxis:function(){var e=this._rect,t=this._axis,r=t.isHorizontal(),i=r?[0,e.width]:[0,e.height],o=t.reverse?1:0;t.setExtent(i[o],i[1-o]),this._updateAxisTransform(t,r?e.x:e.y)},_updateAxisTransform:function(e,t){var r=e.getExtent(),i=r[0]+r[1],o=e.isHorizontal();e.toGlobalCoord=o?function(e){return e+t}:function(e){return i-e+t},e.toLocalCoord=o?function(e){return e-t}:function(e){return i-e+t}},getAxis:function(){return this._axis},getBaseAxis:function(){return this._axis},containPoint:function(e){var t=this.getRect(),r=this.getAxis(),i=r.orient;return"horizontal"===i?r.contain(r.toLocalCoord(e[0]))&&e[1]>=t.y&&e[1]<=t.y+t.height:r.contain(r.toLocalCoord(e[1]))&&e[0]>=t.y&&e[0]<=t.y+t.height},pointToData:function(e){var t=this.getAxis();return[t.coordToData(t.toLocalCoord(e["horizontal"===t.orient?0:1]))]},dataToPoint:function(e){var t=this.getAxis(),r=this.getRect(),i=[],o="horizontal"===t.orient?0:1;return i[o]=t.toGlobalCoord(t.dataToCoord(+e)),i[1-o]=0===o?r.y+r.height/2:r.x+r.width/2,i}},e.exports=i},function(e,t,r){var i=r(1),o=r(27),n=r(16),a=function(e,t,r,i,n){o.call(this,e,t,r),this.type=i||"value",this.position=n||"bottom",this.orient=null,this._labelInterval=null};a.prototype={constructor:a,model:null,isHorizontal:function(){var e=this.position;return"top"===e||"bottom"===e},getLabelInterval:function(){var e=this._labelInterval;if(!e){var t=this.model,r=t.getModel("axisLabel"),o=r.get("interval");if("category"!==this.type||"auto"!==o)return e=this._labelInterval="auto"===o?0:o;e=this._labelInterval=n.getAxisLabelInterval(i.map(this.scale.getTicks(),this.dataToCoord,this),t.getFormattedLabels(),r.getModel("textStyle").getFont(),this.isHorizontal())}return e},toGlobalCoord:null,toLocalCoord:null},i.inherits(a,o),e.exports=a},function(e,t,r){function i(e,t){var r=[];return e.eachComponent("singleAxis",function(i,n){var a=new o(i,e,t);a.name="single_"+n,a.resize(i,t),i.coordinateSystem=a,r.push(a)}),e.eachSeries(function(t){if("singleAxis"===t.get("coordinateSystem")){var r=e.queryComponents({mainType:"singleAxis",index:t.get("singleAxisIndex"),id:t.get("singleAxisId")})[0];t.coordinateSystem=r.coordinateSystem}}),r}var o=r(371);r(18).register("single",{create:i,dimensions:o.prototype.dimensions})},function(e,t,r){"use strict";function i(e,t){this.id=null==e?"":e,this.inEdges=[],this.outEdges=[],this.edges=[],this.hostGraph,this.dataIndex=null==t?-1:t}function o(e,t,r){this.node1=e,this.node2=t,this.dataIndex=null==r?-1:r}var n=r(1),a=function(e){this._directed=e||!1,this.nodes=[],this.edges=[],this._nodesMap={},this._edgesMap={},this.data,this.edgeData},s=a.prototype;s.type="graph",s.isDirected=function(){return this._directed},s.addNode=function(e,t){e=e||""+t;var r=this._nodesMap;if(!r[e]){var o=new i(e,t);return o.hostGraph=this,this.nodes.push(o),r[e]=o,o}},s.getNodeByIndex=function(e){var t=this.data.getRawIndex(e);return this.nodes[t]},s.getNodeById=function(e){return this._nodesMap[e]},s.addEdge=function(e,t,r){var n=this._nodesMap,a=this._edgesMap;if("number"==typeof e&&(e=this.nodes[e]),"number"==typeof t&&(t=this.nodes[t]),e instanceof i||(e=n[e]),t instanceof i||(t=n[t]),e&&t){var s=e.id+"-"+t.id;if(!a[s]){var l=new o(e,t,r);return l.hostGraph=this,this._directed&&(e.outEdges.push(l),t.inEdges.push(l)),e.edges.push(l),e!==t&&t.edges.push(l),this.edges.push(l),a[s]=l,l}}},s.getEdgeByIndex=function(e){var t=this.edgeData.getRawIndex(e);return this.edges[t]},s.getEdge=function(e,t){e instanceof i&&(e=e.id),t instanceof i&&(t=t.id);var r=this._edgesMap;return this._directed?r[e+"-"+t]:r[e+"-"+t]||r[t+"-"+e]},s.eachNode=function(e,t){for(var r=this.nodes,i=r.length,o=0;i>o;o++)r[o].dataIndex>=0&&e.call(t,r[o],o)},s.eachEdge=function(e,t){for(var r=this.edges,i=r.length,o=0;i>o;o++)r[o].dataIndex>=0&&r[o].node1.dataIndex>=0&&r[o].node2.dataIndex>=0&&e.call(t,r[o],o)},s.breadthFirstTraverse=function(e,t,r,o){if(t instanceof i||(t=this._nodesMap[t]),t){for(var n="out"===r?"outEdges":"in"===r?"inEdges":"edges",a=0;ao;o++)r[o].dataIndex=-1;for(var o=0,n=e.count();n>o;o++)r[e.getRawIndex(o)].dataIndex=o;t.filterSelf(function(e){var r=i[t.getRawIndex(e)];return r.node1.dataIndex>=0&&r.node2.dataIndex>=0});for(var o=0,n=i.length;n>o;o++)i[o].dataIndex=-1;for(var o=0,n=t.count();n>o;o++)i[t.getRawIndex(o)].dataIndex=o},s.clone=function(){for(var e=new a(this._directed),t=this.nodes,r=this.edges,i=0;i=0&&this[e][t].setItemVisual(this.dataIndex,r,i)},getVisual:function(r,i){return this[e][t].getItemVisual(this.dataIndex,r,i)},setLayout:function(r,i){this.dataIndex>=0&&this[e][t].setItemLayout(this.dataIndex,r,i)},getLayout:function(){return this[e][t].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[e][t].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[e][t].getRawIndex(this.dataIndex)}}};n.mixin(i,l("hostGraph","data")),n.mixin(o,l("hostGraph","edgeData")),a.Node=i,a.Edge=o,e.exports=a},function(e,t,r){function i(e,t){this.root,this.data,this._nodes=[],this.hostModel=e,this.levelModels=n.map(t||[],function(t){return new a(t,e,e.ecModel)})}function o(e,t){var r=t.children;e.parentNode!==t&&(r.push(e),e.parentNode=t)}var n=r(1),a=r(9),s=r(8),l=r(120),c=r(17),h=function(e,t){this.name=e||"",this.depth=0,this.height=0,this.parentNode=null,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.hostTree=t};h.prototype={constructor:h,isRemoved:function(){return this.dataIndex<0},eachNode:function(e,t,r){"function"==typeof e&&(r=t,t=e,e=null),e=e||{},n.isString(e)&&(e={order:e});var i,o=e.order||"preorder",a=this[e.attr||"children"];"preorder"===o&&(i=t.call(r,this));for(var s=0;!i&&st&&(t=i.height)}this.height=t+1},getNodeById:function(e){if(this.getId()===e)return this;for(var t=0,r=this.children,i=r.length;i>t;t++){var o=r[t].getNodeById(e);if(o)return o}},contains:function(e){if(e===this)return!0;for(var t=0,r=this.children,i=r.length;i>t;t++){var o=r[t].contains(e);if(o)return o}},getAncestors:function(e){for(var t=[],r=e?this:this.parentNode;r;)t.push(r),r=r.parentNode;return t.reverse(),t},getValue:function(e){var t=this.hostTree.data;return t.get(t.getDimension(e||"value"),this.dataIndex)},setLayout:function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemLayout(this.dataIndex,e,t)},getLayout:function(){return this.hostTree.data.getItemLayout(this.dataIndex)},getModel:function(e){if(!(this.dataIndex<0)){var t=this.hostTree,r=t.data.getItemModel(this.dataIndex),i=this.getLevelModel();return r.getModel(e,(i||t.hostModel).getModel(e))}},getLevelModel:function(){return(this.hostTree.levelModels||[])[this.depth]},setVisual:function(e,t){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,e,t)},getVisual:function(e,t){return this.hostTree.data.getItemVisual(this.dataIndex,e,t)},getRawIndex:function(){return this.hostTree.data.getRawIndex(this.dataIndex)},getId:function(){return this.hostTree.data.getId(this.dataIndex)}},i.prototype={constructor:i,type:"tree",eachNode:function(e,t,r){this.root.eachNode(e,t,r)},getNodeByDataIndex:function(e){var t=this.data.getRawIndex(e);return this._nodes[t]},getNodeByName:function(e){return this.root.getNodeByName(e)},update:function(){for(var e=this.data,t=this._nodes,r=0,i=t.length;i>r;r++)t[r].dataIndex=-1;for(var r=0,i=e.count();i>r;r++)t[e.getRawIndex(r)].dataIndex=r},clearLayouts:function(){this.data.clearItemLayouts()}},i.createTree=function(e,t,r){function n(e,t){u.push(e);var r=new h(e.name,a);t?o(r,t):a.root=r,a._nodes.push(r);var i=e.children;if(i)for(var s=0;sr&&(r=Math.min(r,l),l-=r,e.width=r,h--)}),u=(l-o)/(h+(h-1)*a),u=Math.max(u,0);var d,f=0;s.each(r,function(e,t){e.width||(e.width=u),d=e,f+=e.width*(1+a)}),d&&(f-=d.width*a);var p=-f/2;s.each(r,function(e,r){n[t][r]=n[t][r]||{offset:p,width:e.width},p+=e.width*(1+a)})}),n}function a(e,t,r){var a=n(s.filter(t.getSeriesByType(e),function(e){return!t.isSeriesFiltered(e)&&e.coordinateSystem&&"cartesian2d"===e.coordinateSystem.type})),l={};t.eachSeriesByType(e,function(e){var t=e.getData(),r=e.coordinateSystem,n=r.getBaseAxis(),s=i(e),c=a[o(n)][s],h=c.offset,u=c.width,d=r.getOtherAxis(n),f=e.get("barMinHeight")||0,p=n.onZero?d.toGlobalCoord(d.dataToCoord(0)):d.getGlobalExtent()[0],m=r.dataToPoints(t,!0);l[s]=l[s]||[],t.setLayout({offset:h,size:u}),t.each(d.dim,function(e,r){if(!isNaN(e)){l[s][r]||(l[s][r]={p:p,n:p});var i,o,n,a,c=e>=0?"p":"n",g=m[r],v=l[s][r][c];d.isHorizontal()?(i=v,o=g[1]+h,n=g[0]-v,a=u,Math.abs(n)n?-1:1)*f),l[s][r][c]+=n):(i=g[0]+h,o=v,n=u,a=g[1]-v,Math.abs(a)=a?-1:1)*f),l[s][r][c]+=a),t.setItemLayout(r,{x:i,y:o,width:n,height:a})}},!0)},this)}var s=r(1),l=r(4),c=l.parsePercent;e.exports=a},function(e,t,r){var i=r(3),o=r(1),n=Math.PI;e.exports=function(e,t){ t=t||{},o.defaults(t,{text:"loading",color:"#c23531",textColor:"#000",maskColor:"rgba(255, 255, 255, 0.8)",zlevel:0});var r=new i.Rect({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4}),a=new i.Arc({shape:{startAngle:-n/2,endAngle:-n/2+.1,r:10},style:{stroke:t.color,lineCap:"round",lineWidth:5},zlevel:t.zlevel,z:10001}),s=new i.Rect({style:{fill:"none",text:t.text,textPosition:"right",textDistance:10,textFill:t.textColor},zlevel:t.zlevel,z:10001});a.animateShape(!0).when(1e3,{endAngle:3*n/2}).start("circularInOut"),a.animateShape(!0).when(1e3,{startAngle:3*n/2}).delay(300).start("circularInOut");var l=new i.Group;return l.add(a),l.add(s),l.add(r),l.resize=function(){var t=e.getWidth()/2,i=e.getHeight()/2;a.setShape({cx:t,cy:i});var o=a.shape.r;s.setShape({x:t-o,y:i-o,width:2*o,height:2*o}),r.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},l.resize(),l}},function(e,t,r){function i(e,t){for(var r in t)b.hasClass(r)||("object"==typeof t[r]?e[r]=e[r]?u.merge(e[r],t[r],!1):u.clone(t[r]):null==e[r]&&(e[r]=t[r]))}function o(e){e=e,this.option={},this.option[S]=1,this._componentsMap={},this._seriesIndices=null,i(e,this._theme.option),u.merge(e,_,!1),this.mergeOption(e)}function n(e,t){u.isArray(t)||(t=t?[t]:[]);var r={};return p(t,function(t){r[t]=(e[t]||[]).slice()}),r}function a(e,t){var r={};p(t,function(e,t){var i=e.exist;i&&(r[i.id]=e)}),p(t,function(t,i){var o=t.option;if(u.assert(!o||null==o.id||!r[o.id]||r[o.id]===t,"id duplicates: "+(o&&o.id)),o&&null!=o.id&&(r[o.id]=t),x(o)){var n=s(e,o,t.exist);t.keyInfo={mainType:e,subType:n}}}),p(t,function(e,t){var i=e.exist,o=e.option,n=e.keyInfo;if(x(o)){if(n.name=null!=o.name?o.name+"":i?i.name:"\x00-",i)n.id=i.id;else if(null!=o.id)n.id=o.id+"";else{var a=0;do n.id="\x00"+n.name+"\x00"+a++;while(r[n.id])}r[n.id]=e}})}function s(e,t,r){var i=t.type?t.type:r?r.subType:b.determineSubType(e,t);return i}function l(e){return g(e,function(e){return e.componentIndex})||[]}function c(e,t){return t.hasOwnProperty("subType")?m(e,function(e){return e.subType===t.subType}):e}function h(e){}var u=r(1),d=r(12),f=r(9),p=u.each,m=u.filter,g=u.map,v=u.isArray,y=u.indexOf,x=u.isObject,b=r(11),_=r(380),S="\x00_ec_inner",w=f.extend({constructor:w,init:function(e,t,r,i){r=r||{},this.option=null,this._theme=new f(r),this._optionManager=i},setOption:function(e,t){u.assert(!(S in e),"please use chart.getOption()"),this._optionManager.setOption(e,t),this.resetOption()},resetOption:function(e){var t=!1,r=this._optionManager;if(!e||"recreate"===e){var i=r.mountOption("recreate"===e);this.option&&"recreate"!==e?(this.restoreData(),this.mergeOption(i)):o.call(this,i),t=!0}if("timeline"!==e&&"media"!==e||this.restoreData(),!e||"recreate"===e||"timeline"===e){var n=r.getTimelineOption(this);n&&(this.mergeOption(n),t=!0)}if(!e||"recreate"===e||"media"===e){var a=r.getMediaOption(this,this._api);a.length&&p(a,function(e){this.mergeOption(e,t=!0)},this)}return t},mergeOption:function(e){function t(t,o){var s=d.normalizeToArray(e[t]),c=d.mappingToExists(i[t],s);a(t,c);var h=n(i,o);r[t]=[],i[t]=[],p(c,function(e,o){var n=e.exist,a=e.option;if(u.assert(x(a)||n,"Empty component definition"),a){var s=b.getClass(t,e.keyInfo.subType,!0);if(n&&n instanceof s)n.mergeOption(a,this),n.optionUpdated(a,!1);else{var l=u.extend({dependentModels:h,componentIndex:o},e.keyInfo);n=new s(a,this,this,l),n.init(a,this,this,l),n.optionUpdated(null,!0)}}else n.mergeOption({},this),n.optionUpdated({},!1);i[t][o]=n,r[t][o]=n.option},this),"series"===t&&(this._seriesIndices=l(i.series))}var r=this.option,i=this._componentsMap,o=[];p(e,function(e,t){null!=e&&(b.hasClass(t)?o.push(t):r[t]=null==r[t]?u.clone(e):u.merge(r[t],e,!0))}),b.topologicalTravel(o,b.getAllClassMainTypes(),t,this),this._seriesIndices=this._seriesIndices||[]},getOption:function(){var e=u.clone(this.option);return p(e,function(t,r){if(b.hasClass(r)){for(var t=d.normalizeToArray(t),i=t.length-1;i>=0;i--)d.isIdInner(t[i])&&t.splice(i,1);e[r]=t}}),delete e[S],e},getTheme:function(){return this._theme},getComponent:function(e,t){var r=this._componentsMap[e];return r?r[t||0]:void 0},queryComponents:function(e){var t=e.mainType;if(!t)return[];var r=e.index,i=e.id,o=e.name,n=this._componentsMap[t];if(!n||!n.length)return[];var a;if(null!=r)v(r)||(r=[r]),a=m(g(r,function(e){return n[e]}),function(e){return!!e});else if(null!=i){var s=v(i);a=m(n,function(e){return s&&y(i,e.id)>=0||!s&&e.id===i})}else if(null!=o){var l=v(o);a=m(n,function(e){return l&&y(o,e.name)>=0||!l&&e.name===o})}else a=n;return c(a,e)},findComponents:function(e){function t(e){var t=o+"Index",r=o+"Id",i=o+"Name";return e&&(e.hasOwnProperty(t)||e.hasOwnProperty(r)||e.hasOwnProperty(i))?{mainType:o,index:e[t],id:e[r],name:e[i]}:null}function r(t){return e.filter?m(t,e.filter):t}var i=e.query,o=e.mainType,n=t(i),a=n?this.queryComponents(n):this._componentsMap[o];return r(c(a,e))},eachComponent:function(e,t,r){var i=this._componentsMap;if("function"==typeof e)r=t,t=e,p(i,function(e,i){p(e,function(e,o){t.call(r,i,e,o)})});else if(u.isString(e))p(i[e],t,r);else if(x(e)){var o=this.findComponents(e);p(o,t,r)}},getSeriesByName:function(e){var t=this._componentsMap.series;return m(t,function(t){return t.name===e})},getSeriesByIndex:function(e){return this._componentsMap.series[e]},getSeriesByType:function(e){var t=this._componentsMap.series;return m(t,function(t){return t.subType===e})},getSeries:function(){return this._componentsMap.series.slice()},eachSeries:function(e,t){h(this),p(this._seriesIndices,function(r){var i=this._componentsMap.series[r];e.call(t,i,r)},this)},eachRawSeries:function(e,t){p(this._componentsMap.series,e,t)},eachSeriesByType:function(e,t,r){h(this),p(this._seriesIndices,function(i){var o=this._componentsMap.series[i];o.subType===e&&t.call(r,o,i)},this)},eachRawSeriesByType:function(e,t,r){return p(this.getSeriesByType(e),t,r)},isSeriesFiltered:function(e){return h(this),u.indexOf(this._seriesIndices,e.componentIndex)<0},filterSeries:function(e,t){h(this);var r=m(this._componentsMap.series,e,t);this._seriesIndices=l(r)},restoreData:function(){var e=this._componentsMap;this._seriesIndices=l(e.series);var t=[];p(e,function(e,r){t.push(r)}),b.topologicalTravel(t,b.getAllClassMainTypes(),function(t,r){p(e[t],function(e){e.restoreData()})})}});u.mixin(w,r(121)),e.exports=w},function(e,t,r){function i(e){this._api=e,this._timelineOptions=[],this._mediaList=[],this._mediaDefault,this._currentMediaIndices=[],this._optionBackup,this._newBaseOption}function o(e,t,r){var i,o,n=[],a=[],s=e.timeline;if(e.baseOption&&(o=e.baseOption),(s||e.options)&&(o=o||{},n=(e.options||[]).slice()),e.media){o=o||{};var l=e.media;d(l,function(e){e&&e.option&&(e.query?a.push(e):i||(i=e))})}return o||(o=e),o.timeline||(o.timeline=s),d([o].concat(n).concat(c.map(a,function(e){return e.option})),function(e){d(t,function(t){t(e,r)})}),{baseOption:o,timelineOptions:n,mediaDefault:i,mediaList:a}}function n(e,t,r){var i={width:t,height:r,aspectratio:t/r},o=!0;return c.each(e,function(e,t){var r=t.match(g);if(r&&r[1]&&r[2]){var n=r[1],s=r[2].toLowerCase();a(i[s],e,n)||(o=!1)}}),o}function a(e,t,r){return"min"===r?e>=t:"max"===r?t>=e:e===t}function s(e,t){return e.join(",")===t.join(",")}function l(e,t){t=t||{},d(t,function(t,r){if(null!=t){var i=e[r];if(u.hasClass(r)){t=h.normalizeToArray(t),i=h.normalizeToArray(i);var o=h.mappingToExists(i,t);e[r]=p(o,function(e){return e.option&&e.exist?m(e.exist,e.option,!0):e.exist||e.option})}else e[r]=m(i,t,!0)}})}var c=r(1),h=r(12),u=r(11),d=c.each,f=c.clone,p=c.map,m=c.merge,g=/^(min|max)?(.+)$/;i.prototype={constructor:i,setOption:function(e,t){e=f(e,!0);var r=this._optionBackup,i=o.call(this,e,t,!r);this._newBaseOption=i.baseOption,r?(l(r.baseOption,i.baseOption),i.timelineOptions.length&&(r.timelineOptions=i.timelineOptions),i.mediaList.length&&(r.mediaList=i.mediaList),i.mediaDefault&&(r.mediaDefault=i.mediaDefault)):this._optionBackup=i},mountOption:function(e){var t=this._optionBackup;return this._timelineOptions=p(t.timelineOptions,f),this._mediaList=p(t.mediaList,f),this._mediaDefault=f(t.mediaDefault),this._currentMediaIndices=[],f(e?t.baseOption:this._newBaseOption)},getTimelineOption:function(e){var t,r=this._timelineOptions;if(r.length){var i=e.getComponent("timeline");i&&(t=f(r[i.getCurrentIndex()],!0))}return t},getMediaOption:function(e){var t=this._api.getWidth(),r=this._api.getHeight(),i=this._mediaList,o=this._mediaDefault,a=[],l=[];if(!i.length&&!o)return l;for(var c=0,h=i.length;h>c;c++)n(i[c].query,t,r)&&a.push(c);return!a.length&&o&&(a=[-1]),a.length&&!s(a,this._currentMediaIndices)&&(l=p(a,function(e){return f(-1===e?o.option:i[e].option)})),this._currentMediaIndices=a,l}},e.exports=i},function(e,t){var r="";"undefined"!=typeof navigator&&(r=navigator.platform||""),e.exports={color:["#c23531","#2f4554","#61a0a8","#d48265","#91c7ae","#749f83","#ca8622","#bda29a","#6e7074","#546570","#c4ccd3"],textStyle:{fontFamily:r.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,animation:!0,animationDuration:1e3,animationDurationUpdate:300,animationEasing:"exponentialOut",animationEasingUpdate:"cubicOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3}},function(e,t,r){e.exports={getAreaStyle:r(38)([["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]])}},function(e,t){e.exports={getBoxLayoutParams:function(){return{left:this.get("left"),top:this.get("top"),right:this.get("right"),bottom:this.get("bottom"),width:this.get("width"),height:this.get("height")}}}},function(e,t,r){var i=r(38)([["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]);e.exports={getItemStyle:function(e){var t=i.call(this,e),r=this.getBorderLineDash();return r&&(t.lineDash=r),t},getBorderLineDash:function(){var e=this.get("borderType");return"solid"===e||null==e?null:"dashed"===e?[5,5]:[1,1]}}},function(e,t,r){var i=r(38)([["lineWidth","width"],["stroke","color"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]);e.exports={getLineStyle:function(e){var t=i.call(this,e),r=this.getLineDash();return r&&(t.lineDash=r),t},getLineDash:function(){var e=this.get("type");return"solid"===e||null==e?null:"dashed"===e?[5,5]:[2,2]}}},function(e,t,r){function i(e,t){return e&&e.getShallow(t)}var o=r(24);e.exports={getTextColor:function(){var e=this.ecModel;return this.getShallow("color")||e&&e.get("textStyle.color")},getFont:function(){var e=this.ecModel,t=e&&e.getModel("textStyle");return[this.getShallow("fontStyle")||i(t,"fontStyle"),this.getShallow("fontWeight")||i(t,"fontWeight"),(this.getShallow("fontSize")||i(t,"fontSize")||12)+"px",this.getShallow("fontFamily")||i(t,"fontFamily")||"sans-serif"].join(" ")},getTextRect:function(e){var t=this.get("textStyle")||{};return o.getBoundingRect(e,this.getFont(),t.align,t.baseline)},truncateText:function(e,t,r,i){return o.truncateText(e,t,this.getFont(),r,i)}}},function(e,t,r){function i(e,t){t=t.split(",");for(var r=e,i=0;it&&(t=e[r]);return t},min:function(e){for(var t=1/0,r=0;r1){var u;"string"==typeof o?u=r[o]:"function"==typeof o&&(u=o),u&&(t=t.downSample(s.dim,1/h,u,i),e.setData(t))}}},this)}},function(e,t,r){var i=r(1),o=r(51),n=r(4),a=r(50),s=o.prototype,l=a.prototype,c=Math.floor,h=Math.ceil,u=Math.pow,d=Math.log,f=o.extend({type:"log",base:10,getTicks:function(){return i.map(l.getTicks.call(this),function(e){return n.round(u(this.base,e))},this)},getLabel:l.getLabel,scale:function(e){return e=s.scale.call(this,e),u(this.base,e)},setExtent:function(e,t){var r=this.base;e=d(e)/d(r),t=d(t)/d(r),l.setExtent.call(this,e,t)},getExtent:function(){var e=this.base,t=s.getExtent.call(this);return t[0]=u(e,t[0]),t[1]=u(e,t[1]),t},unionExtent:function(e){var t=this.base;e[0]=d(e[0])/d(t),e[1]=d(e[1])/d(t),s.unionExtent.call(this,e)},niceTicks:function(e){e=e||10;var t=this._extent,r=t[1]-t[0];if(!(r===1/0||0>=r)){var i=n.quantity(r),o=e/r*i;for(.5>=o&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0;)i*=10;var a=[n.round(h(t[0]/i)*i),n.round(c(t[1]/i)*i)];this._interval=i,this._niceExtent=a}},niceExtent:l.niceExtent});i.each(["contain","normalize"],function(e){f.prototype[e]=function(t){return t=d(t)/d(this.base),s[e].call(this,t)}}),f.create=function(){return new f},e.exports=f},function(e,t,r){var i=r(1),o=r(51),n=o.prototype,a=o.extend({type:"ordinal",init:function(e,t){this._data=e,this._extent=t||[0,e.length-1]},parse:function(e){return"string"==typeof e?i.indexOf(this._data,e):Math.round(e)},contain:function(e){return e=this.parse(e),n.contain.call(this,e)&&null!=this._data[e]},normalize:function(e){return n.normalize.call(this,this.parse(e))},scale:function(e){return Math.round(n.scale.call(this,e))},getTicks:function(){for(var e=[],t=this._extent,r=t[0];r<=t[1];)e.push(r),r++;return e},getLabel:function(e){return this._data[e]},count:function(){return this._extent[1]-this._extent[0]+1},niceTicks:i.noop,niceExtent:i.noop});a.create=function(){return new a},e.exports=a},function(e,t,r){var i=r(1),o=r(4),n=r(10),a=r(50),s=a.prototype,l=Math.ceil,c=Math.floor,h=1e3,u=60*h,d=60*u,f=24*d,p=function(e,t,r,i){for(;i>r;){var o=r+i>>>1;e[o][2]n;n++){var s=t[n];s.el.animateTo(s.target,s.time,s.delay,s.easing,i)}return this}}}var o=r(1);e.exports={createWrap:i}},function(e,t,r){function i(){function e(t,i){if(i>=r.length)return t;for(var n=-1,a=t.length,s=r[i++],l={},c={};++n=r.length)return e;var a=[],s=i[n++];return o.each(e,function(e,r){a.push({key:r,values:t(e,n)})}),s?a.sort(function(e,t){return s(e.key,t.key)}):a}var r=[],i=[];return{key:function(e){return r.push(e),this},sortKeys:function(e){return i[r.length-1]=e,this},entries:function(r){return t(e(r,0),0)}}}var o=r(1);e.exports=i},function(e,t,r){var i=r(41);e.exports=function(e){function t(t){var r=(t.visualColorAccessPath||"itemStyle.normal.color").split("."),o=t.getData(),n=t.get(r)||t.getColorFromPalette(t.get("name"));o.setVisual("color",n),e.isSeriesFiltered(t)||("function"!=typeof n||n instanceof i||o.each(function(e){o.setItemVisual(e,"color",n(t.getDataParams(e)))}),o.each(function(e){var t=o.getItemModel(e),i=t.get(r,!0);null!=i&&o.setItemVisual(e,"color",i)}))}e.eachRawSeries(t)}},function(e,t,r){var i=r(1),o={get:function(e,t,r){var o=i.clone((n[e]||{})[t]);return r&&i.isArray(o)?o[o.length-1]:o}},n={color:{active:["#006edd","#e0ffff"],inactive:["rgba(0,0,0,0)"]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}};e.exports=o},function(e,t,r){"use strict";function i(e,t,r){return{type:e,event:r,target:t,cancelBubble:!1,offsetX:r.zrX,offsetY:r.zrY,gestureEvent:r.gestureEvent,pinchX:r.pinchX,pinchY:r.pinchY,pinchScale:r.pinchScale,wheelDelta:r.zrDelta}}function o(){}function n(e,t,r){if(e[e.rectHover?"rectContain":"contain"](t,r)){for(var i=e;i;){if(i.silent||i.clipPath&&!i.clipPath.contain(t,r))return!1;i=i.parent}return!0}return!1}var a=r(1),s=r(424),l=r(29);o.prototype.dispose=function(){};var c=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove"],h=function(e,t,r){l.call(this),this.storage=e,this.painter=t,r=r||new o,this.proxy=r,r.handler=this,this._hovered,this._lastTouchMoment,this._lastX,this._lastY,s.call(this),a.each(c,function(e){r.on&&r.on(e,this[e],this)},this)};h.prototype={constructor:h,mousemove:function(e){var t=e.zrX,r=e.zrY,i=this.findHover(t,r,null),o=this._hovered,n=this.proxy;this._hovered=i,n.setCursor&&n.setCursor(i?i.cursor:"default"),o&&i!==o&&o.__zr&&this.dispatchToElement(o,"mouseout",e),this.dispatchToElement(i,"mousemove",e),i&&i!==o&&this.dispatchToElement(i,"mouseover",e)},mouseout:function(e){this.dispatchToElement(this._hovered,"mouseout",e),this.trigger("globalout",{event:e})},resize:function(e){this._hovered=null},dispatch:function(e,t){var r=this[e];r&&r.call(this,t)},dispose:function(){this.proxy.dispose(),this.storage=this.proxy=this.painter=null},setCursorStyle:function(e){var t=this.proxy;t.setCursor&&t.setCursor(e)},dispatchToElement:function(e,t,r){for(var o="on"+t,n=i(t,e,r),a=e;a&&(a[o]&&(n.cancelBubble=a[o].call(a,n)),a.trigger(t,n),a=a.parent,!n.cancelBubble););n.cancelBubble||(this.trigger(t,n),this.painter&&this.painter.eachOtherLayer(function(e){"function"==typeof e[o]&&e[o].call(e,n),e.trigger&&e.trigger(t,n)}))},findHover:function(e,t,r){for(var i=this.storage.getDisplayList(),o=i.length-1;o>=0;o--)if(!i[o].silent&&i[o]!==r&&!i[o].ignore&&n(i[o],e,t))return i[o]}},a.each(["click","mousedown","mouseup","mousewheel","dblclick"],function(e){h.prototype[e]=function(t){var r=this.findHover(t.zrX,t.zrY,null);if("mousedown"===e)this._downel=r,this._upel=r;else if("mosueup"===e)this._upel=r;else if("click"===e&&this._downel!==this._upel)return;this.dispatchToElement(r,e,t)}}),a.mixin(h,l),a.mixin(h,s),e.exports=h},function(e,t,r){function i(){return!1}function o(e,t,r,i){var o=document.createElement(t),n=r.getWidth(),a=r.getHeight(),s=o.style;return s.position="absolute",s.left=0,s.top=0,s.width=n+"px",s.height=a+"px",o.width=n*i,o.height=a*i,o.setAttribute("data-zr-dom-id",e),o}var n=r(1),a=r(53),s=r(133),l=r(132),c=function(e,t,r){var s;r=r||a.devicePixelRatio,"string"==typeof e?s=o(e,"canvas",t,r):n.isObject(e)&&(s=e,e=s.id),this.id=e,this.dom=s;var l=s.style;l&&(s.onselectstart=i,l["-webkit-user-select"]="none",l["user-select"]="none",l["-webkit-touch-callout"]="none",l["-webkit-tap-highlight-color"]="rgba(0,0,0,0)"),this.domBack=null,this.ctxBack=null,this.painter=t,this.config=null,this.clearColor=0,this.motionBlur=!1,this.lastFrameAlpha=.7,this.dpr=r};c.prototype={constructor:c,elCount:0,__dirty:!0,initContext:function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},createBackBuffer:function(){var e=this.dpr;this.domBack=o("back-"+this.id,"canvas",this.painter,e),this.ctxBack=this.domBack.getContext("2d"),1!=e&&this.ctxBack.scale(e,e)},resize:function(e,t){var r=this.dpr,i=this.dom,o=i.style,n=this.domBack;o.width=e+"px",o.height=t+"px",i.width=e*r,i.height=t*r,n&&(n.width=e*r,n.height=t*r,1!=r&&this.ctxBack.scale(r,r))},clear:function(e){var t=this.dom,r=this.ctx,i=t.width,o=t.height,n=this.clearColor,a=this.motionBlur&&!e,c=this.lastFrameAlpha,h=this.dpr;if(a&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(t,0,0,i/h,o/h)),r.clearRect(0,0,i,o),n){var u;n.colorStops?(u=n.__canvasGradient||s.getGradient(r,n,{x:0,y:0,width:i,height:o}),n.__canvasGradient=u):n.image&&(u=l.prototype.getCanvasPattern.call(n,r)),r.save(),r.fillStyle=u||n,r.fillRect(0,0,i,o),r.restore()}if(a){var d=this.domBack;r.save(),r.globalAlpha=c,r.drawImage(d,0,0,i,o),r.restore()}}},e.exports=c},function(e,t,r){"use strict";function i(e){return parseInt(e,10)}function o(e){return e?e.isBuildin?!0:"function"==typeof e.resize&&"function"==typeof e.refresh:!1}function n(e){e.__unusedCount++}function a(e){1==e.__unusedCount&&e.clear()}function s(e,t,r){return x.copy(e.getBoundingRect()),e.transform&&x.applyTransform(e.transform),b.width=t,b.height=r,!x.intersect(b)}function l(e,t){if(e==t)return!1;if(!e||!t||e.length!==t.length)return!0;for(var r=0;r=0&&r.splice(i,1),e.__hoverMir=null},clearHover:function(e){for(var t=this._hoverElements,r=0;ro;){var n=e[o],a=n.__from;a&&a.__zr?(o++,a.invisible||(n.transform=a.transform,n.invTransform=a.invTransform,n.__clipPaths=a.__clipPaths,this._doPaintEl(n,r,!0,i))):(e.splice(o,1),a.__hoverMir=null,t--)}r.ctx.restore()}},_startProgessive:function(){function e(){r===t._progressiveToken&&t.storage&&(t._doPaintList(t.storage.getDisplayList()),t._furtherProgressive?(t._progress++,v(e)):t._progressiveToken=-1)}var t=this;if(t._furtherProgressive){var r=t._progressiveToken=+new Date;t._progress++,v(e)}},_clearProgressive:function(){this._progressiveToken=-1,this._progress=0,d.each(this._progressiveLayers,function(e){e.__dirty&&e.clear()})},_paintList:function(e,t){null==t&&(t=!1),this._updateLayerStatus(e),this._clearProgressive(),this.eachBuildinLayer(n),this._doPaintList(e,t),this.eachBuildinLayer(a)},_doPaintList:function(e,t){function r(e){var t=n.dpr||1;n.save(),n.globalAlpha=1,n.shadowBlur=0,i.__dirty=!0,n.setTransform(1,0,0,1,0,0),n.drawImage(e.dom,0,0,h*t,u*t),n.restore()}for(var i,o,n,a,s,l,c=0,h=this._width,u=this._height,p=this._progress,m=0,g=e.length;g>m;m++){var v=e[m],x=this._singleCanvas?0:v.zlevel,b=v.__frame;if(0>b&&s&&(r(s),s=null),o!==x&&(n&&n.restore(),a={},o=x,i=this.getLayer(o),i.isBuildin||f("ZLevel "+o+" has been used by unkown layer "+i.id),n=i.ctx,n.save(),i.__unusedCount=0,(i.__dirty||t)&&i.clear()),i.__dirty||t){if(b>=0){if(!s){if(s=this._progressiveLayers[Math.min(c++,y-1)],s.ctx.save(),s.renderScope={},s&&s.__progress>s.__maxProgress){m=s.__nextIdxNotProg-1;continue}l=s.__progress,s.__dirty||(p=l),s.__progress=p+1}b===p&&this._doPaintEl(v,s,!0,s.renderScope)}else this._doPaintEl(v,i,t,a);v.__dirty=!1}}s&&r(s),n&&n.restore(),this._furtherProgressive=!1,d.each(this._progressiveLayers,function(e){e.__maxProgress>=e.__progress&&(this._furtherProgressive=!0)},this)},_doPaintEl:function(e,t,r,i){var o=t.ctx,n=e.transform;if((t.__dirty||r)&&!e.invisible&&0!==e.style.opacity&&(!n||n[0]||n[3])&&(!e.culling||!s(e,this._width,this._height))){var a=e.__clipPaths;(i.prevClipLayer!==t||l(a,i.prevElClipPaths))&&(i.prevElClipPaths&&(i.prevClipLayer.ctx.restore(),i.prevClipLayer=i.prevElClipPaths=null,i.prevEl=null),a&&(o.save(),c(a,o),i.prevClipLayer=t,i.prevElClipPaths=a)),e.beforeBrush&&e.beforeBrush(o),e.brush(o,i.prevEl||null),i.prevEl=e,e.afterBrush&&e.afterBrush(o)}},getLayer:function(e){if(this._singleCanvas)return this._layers[0];var t=this._layers[e];return t||(t=new g("zr_"+e,this,this.dpr),t.isBuildin=!0,this._layerConfig[e]&&d.merge(t,this._layerConfig[e],!0),this.insertLayer(e,t),t.initContext()),t},insertLayer:function(e,t){var r=this._layers,i=this._zlevelList,n=i.length,a=null,s=-1,l=this._domRoot;if(r[e])return void f("ZLevel "+e+" has been used already");if(!o(t))return void f("Layer of zlevel "+e+" is not valid");if(n>0&&e>i[0]){for(s=0;n-1>s&&!(i[s]e);s++);a=r[i[s]]}if(i.splice(s+1,0,e),a){var c=a.dom;c.nextSibling?l.insertBefore(t.dom,c.nextSibling):l.appendChild(t.dom)}else l.firstChild?l.insertBefore(t.dom,l.firstChild):l.appendChild(t.dom);r[e]=t},eachLayer:function(e,t){var r,i,o=this._zlevelList;for(i=0;ic;c++){var u=e[c],f=this._singleCanvas?0:u.zlevel,p=t[f],m=u.progressive;if(p&&(p.elCount++,p.__dirty=p.__dirty||u.__dirty),m>=0){a!==m&&(a=m,l++);var v=u.__frame=l-1;if(!n){var x=Math.min(s,y-1);n=r[x],n||(n=r[x]=new g("progressive",this,this.dpr),n.initContext()),n.__maxProgress=0}n.__dirty=n.__dirty||u.__dirty,n.elCount++,n.__maxProgress=Math.max(n.__maxProgress,v),n.__maxProgress>=n.__progress&&(p.__dirty=!0)}else u.__frame=-1,n&&(n.__nextIdxNotProg=c,s++,n=null)}n&&(s++,n.__nextIdxNotProg=c),this.eachBuildinLayer(function(e,t){i[t]!==e.elCount&&(e.__dirty=!0)}),r.length=Math.min(s,y),d.each(r,function(e,t){o[t]!==e.elCount&&(u.__dirty=!0),e.__dirty&&(e.__progress=0)})},clear:function(){return this.eachBuildinLayer(this._clearLayer),this},_clearLayer:function(e){e.clear()},configLayer:function(e,t){if(t){var r=this._layerConfig;r[e]?d.merge(r[e],t,!0):r[e]=t;var i=this._layers[e];i&&d.merge(i,r[e],!0)}},delLayer:function(e){var t=this._layers,r=this._zlevelList,i=t[e];i&&(i.dom.parentNode.removeChild(i.dom),delete t[e],r.splice(d.indexOf(r,e),1))},resize:function(e,t){var r=this._domRoot;if(r.style.display="none",e=e||this._getWidth(),t=t||this._getHeight(),r.style.display="",this._width!=e||t!=this._height){r.style.width=e+"px",r.style.height=t+"px";for(var i in this._layers)this._layers[i].resize(e,t);this.refresh(!0)}return this._width=e,this._height=t,this},clearLayer:function(e){var t=this._layers[e];t&&t.clear()},dispose:function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},getRenderedCanvas:function(e){if(e=e||{},this._singleCanvas)return this._layers[0].dom;var t=new g("image",this,e.pixelRatio||this.dpr);t.initContext(),t.clearColor=e.backgroundColor,t.clear();for(var r=this.storage.getDisplayList(!0),i={},o=0;oo;o++)this._updateAndAddDisplayable(t[o],null,e);r.length=this._displayListLen,n.canvasSupported&&s(r,i)},_updateAndAddDisplayable:function(e,t,r){if(!e.ignore||r){e.beforeUpdate(),e.__dirty&&e.update(),e.afterUpdate();var i=e.clipPath;if(i&&(i.parent=e,i.updateTransform(),t?(t=t.slice(),t.push(i)):t=[i]),e.isGroup){for(var o=e._children,n=0;nt;t++)this.delRoot(e[t]);else{var n;n="string"==typeof e?this._elements[e]:e;var s=o.indexOf(this._roots,n);s>=0&&(this.delFromMap(n.id),this._roots.splice(s,1),n instanceof a&&n.delChildrenFromStorage(this))}},addToMap:function(e){return e instanceof a&&(e.__storage=this),e.dirty(!1),this._elements[e.id]=e,this},get:function(e){return this._elements[e]},delFromMap:function(e){var t=this._elements,r=t[e];return r&&(delete t[e],r instanceof a&&(r.__storage=null)),this},dispose:function(){this._elements=this._renderList=this._roots=null},displayableSortFunc:i},e.exports=l},function(e,t,r){"use strict";var i=r(1),o=r(32).Dispatcher,n=r(124),a=r(123),s=function(e){e=e||{},this.stage=e.stage||{},this.onframe=e.onframe||function(){},this._clips=[],this._running=!1,this._time,this._pausedTime,this._pauseStart,this._paused=!1,o.call(this)};s.prototype={constructor:s,addClip:function(e){this._clips.push(e)},addAnimator:function(e){e.animation=this;for(var t=e.getClips(),r=0;r=0&&this._clips.splice(t,1)},removeAnimator:function(e){for(var t=e.getClips(),r=0;ra;a++){var s=r[a],l=s.step(e);l&&(o.push(l),n.push(s))}for(var a=0;i>a;)r[a]._needsRemove?(r[a]=r[i-1],r.pop(),i--):a++;i=o.length;for(var a=0;i>a;a++)n[a].fire(o[a]);this._time=e,this.onframe(t),this.trigger("frame",t),this.stage.update&&this.stage.update()},_startLoop:function(){function e(){t._running&&(n(e),!t._paused&&t._update())}var t=this;this._running=!0,n(e)},start:function(){this._time=(new Date).getTime(),this._pausedTime=0,this._startLoop()},stop:function(){this._running=!1},pause:function(){this._paused||(this._pauseStart=(new Date).getTime(),this._paused=!0)},resume:function(){this._paused&&(this._pausedTime+=(new Date).getTime()-this._pauseStart,this._paused=!1)},clear:function(){this._clips=[]},animate:function(e,t){t=t||{};var r=new a(e,t.loop,t.getter,t.setter);return r}},i.mixin(s,o),e.exports=s},function(e,t,r){function i(e){this._target=e.target,this._life=e.life||1e3,this._delay=e.delay||0,this._initialized=!1,this.loop=null==e.loop?!1:e.loop,this.gap=e.gap||0,this.easing=e.easing||"Linear",this.onframe=e.onframe,this.ondestroy=e.ondestroy,this.onrestart=e.onrestart}var o=r(402);i.prototype={constructor:i,step:function(e){this._initialized||(this._startTime=e+this._delay,this._initialized=!0);var t=(e-this._startTime)/this._life;if(!(0>t)){t=Math.min(t,1);var r=this.easing,i="string"==typeof r?o[r]:r,n="function"==typeof i?i(t):t;return this.fire("frame",n),1==t?this.loop?(this.restart(e),"restart"):(this._needsRemove=!0,"destroy"):null}},restart:function(e){var t=(e-this._startTime)%this._life;this._startTime=e-t+this.gap,this._needsRemove=!1},fire:function(e,t){e="on"+e,this[e]&&this[e](this._target,t)}},e.exports=i},function(e,t){var r={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return.5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return 0===e?0:Math.pow(1024,e-1)},exponentialOut:function(e){return 1===e?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return 0===e?0:1===e?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(-Math.pow(2,-10*(e-1))+2)},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,r=.1,i=.4;return 0===e?0:1===e?1:(!r||1>r?(r=1,t=i/4):t=i*Math.asin(1/r)/(2*Math.PI),-(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/i)))},elasticOut:function(e){var t,r=.1,i=.4;return 0===e?0:1===e?1:(!r||1>r?(r=1,t=i/4):t=i*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/i)+1)},elasticInOut:function(e){var t,r=.1,i=.4;return 0===e?0:1===e?1:(!r||1>r?(r=1,t=i/4):t=i*Math.asin(1/r)/(2*Math.PI),(e*=2)<1?-.5*(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/i)):r*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/i)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?.5*(e*e*((t+1)*e-t)):.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-r.bounceOut(1-e)},bounceOut:function(e){return 1/2.75>e?7.5625*e*e:2/2.75>e?7.5625*(e-=1.5/2.75)*e+.75:2.5/2.75>e?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return.5>e?.5*r.bounceIn(2*e):.5*r.bounceOut(2*e-1)+.5}};e.exports=r},function(e,t,r){var i=r(128).normalizeRadian,o=2*Math.PI;e.exports={containStroke:function(e,t,r,n,a,s,l,c,h){if(0===l)return!1;var u=l;c-=e,h-=t;var d=Math.sqrt(c*c+h*h);if(d-u>r||r>d+u)return!1;if(Math.abs(n-a)%o<1e-4)return!0;if(s){var f=n;n=i(a),a=i(f)}else n=i(n),a=i(a);n>a&&(a+=o);var p=Math.atan2(h,c);return 0>p&&(p+=o),p>=n&&a>=p||p+o>=n&&a>=p+o}}},function(e,t,r){var i=r(25);e.exports={containStroke:function(e,t,r,o,n,a,s,l,c,h,u){if(0===c)return!1;var d=c;if(u>t+d&&u>o+d&&u>a+d&&u>l+d||t-d>u&&o-d>u&&a-d>u&&l-d>u||h>e+d&&h>r+d&&h>n+d&&h>s+d||e-d>h&&r-d>h&&n-d>h&&s-d>h)return!1;var f=i.cubicProjectPoint(e,t,r,o,n,a,s,l,h,u,null);return d/2>=f}}},function(e,t,r){"use strict";function i(e,t){return Math.abs(e-t)t&&h>i&&h>a&&h>l||t>h&&i>h&&a>h&&l>h)return 0;var u=m.cubicRootAt(t,i,a,l,h,b);if(0===u)return 0;for(var d,f,p=0,g=-1,v=0;u>v;v++){var y=b[v],x=0===y||1===y?.5:1,S=m.cubicAt(e,r,n,s,y);c>S||(0>g&&(g=m.cubicExtrema(t,i,a,l,_),_[1]<_[0]&&g>1&&o(),d=m.cubicAt(t,i,a,l,_[0]),g>1&&(f=m.cubicAt(t,i,a,l,_[1]))),p+=2==g?y<_[0]?t>d?x:-x:y<_[1]?d>f?x:-x:f>l?x:-x:y<_[0]?t>d?x:-x:d>l?x:-x)}return p}function a(e,t,r,i,o,n,a,s){if(s>t&&s>i&&s>n||t>s&&i>s&&n>s)return 0;var l=m.quadraticRootAt(t,i,n,s,b);if(0===l)return 0;var c=m.quadraticExtremum(t,i,n);if(c>=0&&1>=c){for(var h=0,u=m.quadraticAt(t,i,n,c),d=0;l>d;d++){var f=0===b[d]||1===b[d]?.5:1,p=m.quadraticAt(e,r,o,b[d]);a>p||(h+=b[d]u?f:-f:u>n?f:-f)}return h}var f=0===b[0]||1===b[0]?.5:1,p=m.quadraticAt(e,r,o,b[0]);return a>p?0:t>n?f:-f}function s(e,t,r,i,o,n,a,s){if(s-=t,s>r||-r>s)return 0;var l=Math.sqrt(r*r-s*s);b[0]=-l,b[1]=l;var c=Math.abs(i-o);if(1e-4>c)return 0;if(1e-4>c%y){i=0,o=y;var h=n?1:-1;return a>=b[0]+e&&a<=b[1]+e?h:0}if(n){var l=i;i=p(o),o=p(l)}else i=p(i),o=p(o);i>o&&(o+=y);for(var u=0,d=0;2>d;d++){var f=b[d];if(f+e>a){var m=Math.atan2(s,f),h=n?1:-1;0>m&&(m=y+m),(m>=i&&o>=m||m+y>=i&&o>=m+y)&&(m>Math.PI/2&&m<1.5*Math.PI&&(h=-h),u+=h)}}return u}function l(e,t,r,o,l){for(var h=0,p=0,m=0,y=0,x=0,b=0;b1&&(r||(h+=g(p,m,y,x,o,l))),1==b&&(p=e[b],m=e[b+1],y=p,x=m),_){case c.M:y=e[b++],x=e[b++],p=y,m=x;break;case c.L:if(r){if(v(p,m,e[b],e[b+1],t,o,l))return!0}else h+=g(p,m,e[b],e[b+1],o,l)||0;p=e[b++],m=e[b++];break;case c.C:if(r){if(u.containStroke(p,m,e[b++],e[b++],e[b++],e[b++],e[b],e[b+1],t,o,l))return!0}else h+=n(p,m,e[b++],e[b++],e[b++],e[b++],e[b],e[b+1],o,l)||0;p=e[b++],m=e[b++];break;case c.Q:if(r){if(d.containStroke(p,m,e[b++],e[b++],e[b],e[b+1],t,o,l))return!0}else h+=a(p,m,e[b++],e[b++],e[b],e[b+1],o,l)||0;p=e[b++],m=e[b++];break;case c.A:var S=e[b++],w=e[b++],C=e[b++],M=e[b++],A=e[b++],I=e[b++],T=(e[b++],1-e[b++]),P=Math.cos(A)*C+S,L=Math.sin(A)*M+w;b>1?h+=g(p,m,P,L,o,l):(y=P,x=L);var k=(o-S)*M/C+S;if(r){if(f.containStroke(S,w,M,A,A+I,T,t,k,l))return!0}else h+=s(S,w,M,A,A+I,T,k,l);p=Math.cos(A+I)*C+S,m=Math.sin(A+I)*M+w;break;case c.R:y=p=e[b++],x=m=e[b++];var E=e[b++],D=e[b++],P=y+E,L=x+D;if(r){if(v(y,x,P,x,t,o,l)||v(P,x,P,L,t,o,l)||v(P,L,y,L,t,o,l)||v(y,L,y,x,t,o,l))return!0}else h+=g(P,x,P,L,o,l),h+=g(y,L,y,x,o,l);break;case c.Z:if(r){if(v(p,m,y,x,t,o,l))return!0}else h+=g(p,m,y,x,o,l);p=y,m=x}}return r||i(m,x)||(h+=g(p,m,y,x,o,l)||0),0!==h}var c=r(40).CMD,h=r(125),u=r(404),d=r(127),f=r(403),p=r(128).normalizeRadian,m=r(25),g=r(129),v=h.containStroke,y=2*Math.PI,x=1e-4,b=[-1,-1,-1],_=[-1,-1];e.exports={contain:function(e,t,r){return l(e,0,!1,t,r)},containStroke:function(e,t,r,i){return l(e,t,!0,r,i)}}},function(e,t,r){"use strict";function i(e){var t=e[1][0]-e[0][0],r=e[1][1]-e[0][1];return Math.sqrt(t*t+r*r)}function o(e){return[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}var n=r(32),a=function(){this._track=[]};a.prototype={constructor:a,recognize:function(e,t,r){return this._doTrack(e,t,r),this._recognize(e)},clear:function(){return this._track.length=0,this},_doTrack:function(e,t,r){var i=e.touches;if(i){for(var o={points:[],touches:[],target:t,event:e},a=0,s=i.length;s>a;a++){var l=i[a],c=n.clientToLocal(r,l);o.points.push([c.zrX,c.zrY]),o.touches.push(l)}this._track.push(o)}},_recognize:function(e){for(var t in s)if(s.hasOwnProperty(t)){var r=s[t](this._track,e);if(r)return r}}};var s={pinch:function(e,t){var r=e.length;if(r){var n=(e[r-1]||{}).points,a=(e[r-2]||{}).points||n;if(a&&a.length>1&&n&&n.length>1){var s=i(n)/i(a);!isFinite(s)&&(s=1),t.pinchScale=s;var l=o(n);return t.pinchX=l[0],t.pinchY=l[1],{type:"pinch",target:e[0].target,event:t}}}}};e.exports=a},function(e,t){var r=function(){this.head=null,this.tail=null,this._len=0},i=r.prototype;i.insert=function(e){var t=new o(e);return this.insertEntry(t),t},i.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,this.tail=e):this.head=this.tail=e,this._len++},i.remove=function(e){var t=e.prev,r=e.next;t?t.next=r:this.head=r,r?r.prev=t:this.tail=t,e.next=e.prev=null,this._len--},i.len=function(){return this._len};var o=function(e){this.value=e,this.next,this.prev},n=function(e){this._list=new r,this._map={},this._maxSize=e||10},a=n.prototype;a.put=function(e,t){var r=this._list,i=this._map;if(null==i[e]){var o=r.len();if(o>=this._maxSize&&o>0){var n=r.head;r.remove(n),delete i[n.key]}var a=r.insert(t);a.key=e,i[e]=a}},a.get=function(e){var t=this._map[e],r=this._list;return null!=t?(t!==r.tail&&(r.remove(t),r.insertEntry(t)),t.value):void 0},a.clear=function(){this._list.clear(),this._map={}},e.exports=n},function(e,t,r){function i(e){return"mousewheel"===e&&d.browser.firefox?"DOMMouseScroll":e}function o(e,t,r){var i=e._gestureMgr;"start"===r&&i.clear();var o=i.recognize(t,e.handler.findHover(t.zrX,t.zrY,null),e.dom);if("end"===r&&i.clear(),o){var n=o.type;t.gestureEvent=n,e.handler.dispatchToElement(o.target,n,o.event)}}function n(e){e._touching=!0,clearTimeout(e._touchTimer),e._touchTimer=setTimeout(function(){e._touching=!1},700)}function a(){return d.touchEventsSupported}function s(e){function t(e,t){return function(){return t._touching?void 0:e.apply(t,arguments)}}for(var r=0;rl&&(a+=l,l=-l),0>c&&(s+=c,c=-c),"number"==typeof h?r=i=o=n=h:h instanceof Array?1===h.length?r=i=o=n=h[0]:2===h.length?(r=o=h[0],i=n=h[1]):3===h.length?(r=h[0],i=n=h[1],o=h[2]):(r=h[0],i=h[1],o=h[2],n=h[3]):r=i=o=n=0;var u;r+i>l&&(u=r+i,r*=l/u,i*=l/u),o+n>l&&(u=o+n,o*=l/u,n*=l/u),i+o>c&&(u=i+o,i*=c/u,o*=c/u),r+n>c&&(u=r+n,r*=c/u,n*=c/u),e.moveTo(a+r,s),e.lineTo(a+l-i,s),0!==i&&e.quadraticCurveTo(a+l,s,a+l,s+i),e.lineTo(a+l,s+c-o),0!==o&&e.quadraticCurveTo(a+l,s+c,a+l-o,s+c),e.lineTo(a+n,s+c),0!==n&&e.quadraticCurveTo(a,s+c,a,s+c-n),e.lineTo(a,s+r),0!==r&&e.quadraticCurveTo(a,s,a+r,s)}}},function(e,t,r){var i=r(5),o=i.min,n=i.max,a=i.scale,s=i.distance,l=i.add;e.exports=function(e,t,r,c){var h,u,d,f,p=[],m=[],g=[],v=[];if(c){d=[1/0,1/0],f=[-(1/0),-(1/0)];for(var y=0,x=e.length;x>y;y++)o(d,d,e[y]),n(f,f,e[y]);o(d,d,c[0]),n(f,f,c[1])}for(var y=0,x=e.length;x>y;y++){var b=e[y];if(r)h=e[y?y-1:x-1],u=e[(y+1)%x];else{if(0===y||y===x-1){p.push(i.clone(e[y]));continue}h=e[y-1],u=e[y+1]}i.sub(m,u,h),a(m,m,t);var _=s(b,h),S=s(b,u),w=_+S;0!==w&&(_/=w,S/=w),a(g,m,-_),a(v,m,S);var C=l([],b,g),M=l([],b,v);c&&(n(C,C,d),o(C,C,f),n(M,M,d),o(M,M,f)),p.push(C),p.push(M)}return r&&p.push(p.shift()),p}},function(e,t,r){function i(e,t,r,i,o,n,a){var s=.5*(r-e),l=.5*(i-t);return(2*(t-r)+s+l)*a+(-3*(t-r)-2*s-l)*n+s*o+t}var o=r(5);e.exports=function(e,t){for(var r=e.length,n=[],a=0,s=1;r>s;s++)a+=o.distance(e[s-1],e[s]);var l=a/2;l=r>l?r:l;for(var s=0;l>s;s++){var c,h,u,d=s/(l-1)*(t?r:r-1),f=Math.floor(d),p=d-f,m=e[f%r];t?(c=e[(f-1+r)%r],h=e[(f+1)%r],u=e[(f+2)%r]):(c=e[0===f?f:f-1],h=e[f>r-2?r-1:f+1],u=e[f>r-3?r-1:f+2]);var g=p*p,v=p*g;n.push([i(c[0],m[0],h[0],u[0],p,g,v),i(c[1],m[1],h[1],u[1],p,g,v)])}return n}},function(e,t,r){e.exports=r(13).extend({type:"arc",shape:{cx:0,cy:0,r:0,startAngle:0,endAngle:2*Math.PI,clockwise:!0},style:{stroke:"#000",fill:null},buildPath:function(e,t){var r=t.cx,i=t.cy,o=Math.max(t.r,0),n=t.startAngle,a=t.endAngle,s=t.clockwise,l=Math.cos(n),c=Math.sin(n);e.moveTo(l*o+r,c*o+i),e.arc(r,i,o,n,a,!s)}})},function(e,t,r){"use strict";function i(e,t,r){var i=e.cpx2,o=e.cpy2;return null===i||null===o?[(r?u:c)(e.x1,e.cpx1,e.cpx2,e.x2,t),(r?u:c)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(r?h:l)(e.x1,e.cpx1,e.x2,t),(r?h:l)(e.y1,e.cpy1,e.y2,t)]}var o=r(25),n=r(5),a=o.quadraticSubdivide,s=o.cubicSubdivide,l=o.quadraticAt,c=o.cubicAt,h=o.quadraticDerivativeAt,u=o.cubicDerivativeAt,d=[];e.exports=r(13).extend({type:"bezier-curve",shape:{x1:0,y1:0,x2:0,y2:0,cpx1:0,cpy1:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(e,t){var r=t.x1,i=t.y1,o=t.x2,n=t.y2,l=t.cpx1,c=t.cpy1,h=t.cpx2,u=t.cpy2,f=t.percent;0!==f&&(e.moveTo(r,i),null==h||null==u?(1>f&&(a(r,l,o,f,d),l=d[1],o=d[2],a(i,c,n,f,d),c=d[1],n=d[2]),e.quadraticCurveTo(l,c,o,n)):(1>f&&(s(r,l,h,o,f,d),l=d[1],h=d[2],o=d[3],s(i,c,u,n,f,d),c=d[1],u=d[2],n=d[3]),e.bezierCurveTo(l,c,h,u,o,n)))},pointAt:function(e){return i(this.shape,e,!1)},tangentAt:function(e){var t=i(this.shape,e,!0);return n.normalize(t,t)}})},function(e,t,r){"use strict";e.exports=r(13).extend({type:"circle",shape:{cx:0,cy:0,r:0},buildPath:function(e,t,r){r&&e.moveTo(t.cx+t.r,t.cy),e.arc(t.cx,t.cy,t.r,0,2*Math.PI,!0)}})},function(e,t,r){e.exports=r(13).extend({type:"line",shape:{x1:0,y1:0,x2:0,y2:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(e,t){var r=t.x1,i=t.y1,o=t.x2,n=t.y2,a=t.percent;0!==a&&(e.moveTo(r,i),1>a&&(o=r*(1-a)+o*a,n=i*(1-a)+n*a),e.lineTo(o,n))},pointAt:function(e){var t=this.shape;return[t.x1*(1-e)+t.x2*e,t.y1*(1-e)+t.y2*e]}})},function(e,t,r){var i=r(135);e.exports=r(13).extend({type:"polygon",shape:{points:null,smooth:!1,smoothConstraint:null},buildPath:function(e,t){i.buildPath(e,t,!0)}})},function(e,t,r){var i=r(135);e.exports=r(13).extend({type:"polyline",shape:{points:null,smooth:!1,smoothConstraint:null},style:{stroke:"#000",fill:null},buildPath:function(e,t){i.buildPath(e,t,!1)}})},function(e,t,r){var i=r(411);e.exports=r(13).extend({type:"rect",shape:{r:0,x:0,y:0,width:0,height:0},buildPath:function(e,t){var r=t.x,o=t.y,n=t.width,a=t.height;t.r?i.buildPath(e,t):e.rect(r,o,n,a),e.closePath()}})},function(e,t,r){e.exports=r(13).extend({type:"ring",shape:{cx:0,cy:0,r:0,r0:0},buildPath:function(e,t){var r=t.cx,i=t.cy,o=2*Math.PI;e.moveTo(r+t.r,i),e.arc(r,i,t.r,0,o,!1),e.moveTo(r+t.r0,i),e.arc(r,i,t.r0,0,o,!0)}})},function(e,t,r){e.exports=r(13).extend({type:"sector",shape:{cx:0,cy:0,r0:0,r:0,startAngle:0,endAngle:2*Math.PI,clockwise:!0},buildPath:function(e,t){var r=t.cx,i=t.cy,o=Math.max(t.r0||0,0),n=Math.max(t.r,0),a=t.startAngle,s=t.endAngle,l=t.clockwise,c=Math.cos(a),h=Math.sin(a);e.moveTo(c*o+r,h*o+i),e.lineTo(c*n+r,h*n+i),e.arc(r,i,n,a,s,!l),e.lineTo(Math.cos(s)*o+r,Math.sin(s)*o+i),0!==o&&e.arc(r,i,o,s,a,l),e.closePath()}})},function(e,t,r){"use strict";var i=r(123),o=r(1),n=o.isString,a=o.isFunction,s=o.isObject,l=r(74),c=function(){this.animators=[]};c.prototype={constructor:c,animate:function(e,t){var r,n=!1,a=this,s=this.__zr;if(e){var c=e.split("."),h=a;n="shape"===c[0];for(var u=0,d=c.length;d>u;u++)h&&(h=h[c[u]]);h&&(r=h)}else r=a;if(!r)return void l('Property "'+e+'" is not existed in element '+a.id);var f=a.animators,p=new i(r,t);return p.during(function(e){a.dirty(n)}).done(function(){f.splice(o.indexOf(f,p),1)}),f.push(p),s&&s.animation.addAnimator(p),p},stopAnimation:function(e){for(var t=this.animators,r=t.length,i=0;r>i;i++)t[i].stop(e);return t.length=0,this},animateTo:function(e,t,r,i,o){function s(){c--,c||o&&o()}n(r)?(o=i,i=r,r=0):a(i)?(o=i,i="linear",r=0):a(r)?(o=r,r=0):a(t)?(o=t,t=500):t||(t=500),this.stopAnimation(),this._animateToShallow("",this,e,t,r,i,o);var l=this.animators.slice(),c=l.length;c||o&&o();for(var h=0;h0&&this.animate(e,!1).when(null==i?500:i,a).delay(n||0),this}},e.exports=c},function(e,t){function r(){this.on("mousedown",this._dragStart,this),this.on("mousemove",this._drag,this),this.on("mouseup",this._dragEnd,this),this.on("globalout",this._dragEnd,this)}r.prototype={constructor:r,_dragStart:function(e){var t=e.target;t&&t.draggable&&(this._draggingTarget=t,t.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.dispatchToElement(t,"dragstart",e.event))},_drag:function(e){var t=this._draggingTarget;if(t){var r=e.offsetX,i=e.offsetY,o=r-this._x,n=i-this._y;this._x=r,this._y=i,t.drift(o,n,e),this.dispatchToElement(t,"drag",e.event);var a=this.findHover(r,i,t),s=this._dropTarget;this._dropTarget=a,t!==a&&(s&&a!==s&&this.dispatchToElement(s,"dragleave",e.event),a&&a!==s&&this.dispatchToElement(a,"dragenter",e.event))}},_dragEnd:function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.dispatchToElement(t,"dragend",e.event),this._dropTarget&&this.dispatchToElement(this._dropTarget,"drop",e.event),this._draggingTarget=null,this._dropTarget=null}},e.exports=r},function(e,t,r){function i(e,t,r,i,o,n,a,s,l,c,h){var m=l*(p/180),y=f(m)*(e-r)/2+d(m)*(t-i)/2,x=-1*d(m)*(e-r)/2+f(m)*(t-i)/2,b=y*y/(a*a)+x*x/(s*s);b>1&&(a*=u(b),s*=u(b));var _=(o===n?-1:1)*u((a*a*(s*s)-a*a*(x*x)-s*s*(y*y))/(a*a*(x*x)+s*s*(y*y)))||0,S=_*a*x/s,w=_*-s*y/a,C=(e+r)/2+f(m)*S-d(m)*w,M=(t+i)/2+d(m)*S+f(m)*w,A=v([1,0],[(y-S)/a,(x-w)/s]),I=[(y-S)/a,(x-w)/s],T=[(-1*y-S)/a,(-1*x-w)/s],P=v(I,T);g(I,T)<=-1&&(P=p),g(I,T)>=1&&(P=0),0===n&&P>0&&(P-=2*p),1===n&&0>P&&(P+=2*p),h.addData(c,C,M,a,s,A,P,m,n)}function o(e){if(!e)return[];var t,r=e.replace(/-/g," -").replace(/ /g," ").replace(/ /g,",").replace(/,,/g,",");for(t=0;t0&&""===g[0]&&g.shift();for(var v=0;vo;o++){var n=e[o];n.__dirty&&n.buildPath(n.path,n.shape,!0),r.push(n.path)}var s=new a(t);return s.buildPath=function(e){e.appendPath(r);var t=e.getContext();t&&e.rebuildPath(t)},s}}},function(e,t,r){function i(e,t){var r,i,n,h,u,d,f=e.data,p=o.M,m=o.C,g=o.L,v=o.R,y=o.A,x=o.Q;for(n=0,h=0;nu;u++){var d=s[u];d[0]=f[n++],d[1]=f[n++],a(d,d,t),f[h++]=d[0],f[h++]=d[1]}}}var o=r(40).CMD,n=r(5),a=n.applyTransform,s=[[],[],[]],l=Math.sqrt,c=Math.atan2;e.exports=i},function(e,t,r){function i(e){return parseInt(e,10)}function o(e,t){s.initVML(),this.root=e,this.storage=t;var r=document.createElement("div"),i=document.createElement("div");r.style.cssText="display:inline-block;overflow:hidden;position:relative;width:300px;height:150px;",i.style.cssText="position:absolute;left:0;top:0;",e.appendChild(r),this._vmlRoot=i,this._vmlViewport=r,this.resize();var o=t.delFromMap,n=t.addToMap;t.delFromMap=function(e){var r=t.get(e);o.call(t,e),r&&r.onRemove&&r.onRemove(i)},t.addToMap=function(e){e.onAdd&&e.onAdd(i),n.call(t,e)},this._firstPaint=!0}function n(e){return function(){a('In IE8.0 VML mode painter not support method "'+e+'"')}}var a=r(74),s=r(138);o.prototype={constructor:o,getViewportRoot:function(){return this._vmlViewport},refresh:function(){var e=this.storage.getDisplayList(!0,!0);this._paintList(e)},_paintList:function(e){for(var t=this._vmlRoot,r=0;r=0?parseFloat(e)/100*t:parseFloat(e):e},R=function(e,t,r){var i=a.parse(t);r=+r,isNaN(r)&&(r=1),i&&(e.color=L(i[0],i[1],i[2]),e.opacity=r*i[3])},z=function(e){var t=a.parse(e);return[L(t[0],t[1],t[2]),t[3]]},V=function(e,t,r){var i=t.fill;if(null!=i)if(i instanceof f){var o,n=0,a=[0,0],s=0,l=1,c=r.getBoundingRect(),h=c.width,u=c.height;if("linear"===i.type){o="gradient";var d=r.transform,p=[i.x*h,i.y*u],m=[i.x2*h,i.y2*u];d&&(_(p,p,d),_(m,m,d));var g=m[0]-p[0],v=m[1]-p[1];n=180*Math.atan2(g,v)/Math.PI,0>n&&(n+=360),1e-6>n&&(n=0)}else{o="gradientradial";var p=[i.x*h,i.y*u],d=r.transform,y=r.scale,x=h,S=u;a=[(p[0]-c.x)/x,(p[1]-c.y)/S],d&&_(p,p,d),x/=y[0]*C,S/=y[1]*C;var w=b(x,S);s=0/w,l=2*i.r/w-s}var M=i.colorStops.slice();M.sort(function(e,t){return e.offset-t.offset});for(var A=M.length,I=[],T=[],P=0;A>P;P++){var L=M[P],k=z(L.color);T.push(L.offset*l+s+" "+k[0]),0!==P&&P!==A-1||I.push(k)}if(A>=2){var E=I[0][0],D=I[1][0],O=I[0][1]*t.opacity,V=I[1][1]*t.opacity;e.type=o,e.method="none",e.focus="100%",e.angle=n,e.color=E,e.color2=D,e.colors=T.join(","),e.opacity=V,e.opacity2=O}"radial"===o&&(e.focusposition=a.join(","))}else R(e,i,t.opacity)},N=function(e,t){null!=t.lineDash&&(e.dashstyle=t.lineDash.join(" ")),null==t.stroke||t.stroke instanceof f||R(e,t.stroke,t.opacity)},W=function(e,t,r,i){var o="fill"==t,n=e.getElementsByTagName(t)[0];null!=r[t]&&"none"!==r[t]&&(o||!o&&r.lineWidth)?(e[o?"filled":"stroked"]="true",r[t]instanceof f&&E(e,n),n||(n=p.createNode(t)),o?V(n,r,i):N(n,r),k(e,n)):(e[o?"filled":"stroked"]="false",E(e,n))},B=[[],[],[]],j=function(e,t){var r,i,o,a,s,l,c=n.M,h=n.C,u=n.L,d=n.A,f=n.Q,p=[];for(a=0;a.01?j&&(G+=270/C):Math.abs(F-R)<1e-10?j&&O>G||!j&&G>O?A-=270/C:A+=270/C:j&&R>F||!j&&F>R?w+=270/C:w-=270/C),p.push(H,m(((O-z)*k+P)*C-M),S,m(((R-V)*E+L)*C-M),S,m(((O+z)*k+P)*C-M),S,m(((R+V)*E+L)*C-M),S,m((G*k+P)*C-M),S,m((F*E+L)*C-M),S,m((w*k+P)*C-M),S,m((A*E+L)*C-M)),s=w,l=A;break;case n.R:var $=B[0],q=B[1];$[0]=e[a++],$[1]=e[a++],q[0]=$[0]+e[a++],q[1]=$[1]+e[a++],t&&(_($,$,t),_(q,q,t)),$[0]=m($[0]*C-M),q[0]=m(q[0]*C-M),$[1]=m($[1]*C-M),q[1]=m(q[1]*C-M),p.push(" m ",$[0],S,$[1]," l ",q[0],S,$[1]," l ",q[0],S,q[1]," l ",$[0],S,q[1]);break;case n.Z:p.push(" x ")}if(r>0){p.push(i);for(var Z=0;r>Z;Z++){var U=B[Z];t&&_(U,U,t),p.push(m(U[0]*C-M),S,m(U[1]*C-M),r-1>Z?S:"")}}}return p.join("")};d.prototype.brushVML=function(e){var t=this.style,r=this._vmlEl;r||(r=p.createNode("shape"),T(r),this._vmlEl=r),W(r,"fill",t,this),W(r,"stroke",t,this);var i=this.transform,o=null!=i,n=r.getElementsByTagName("stroke")[0];if(n){var a=t.lineWidth;if(o&&!t.strokeNoScale){var s=i[0]*i[3]-i[1]*i[2];a*=g(v(s))}n.weight=a+"px"}var l=this.path;this.__dirtyPath&&(l.beginPath(),this.buildPath(l,this.shape),l.toStatic(),this.__dirtyPath=!1),r.path=j(l.data,this.transform),r.style.zIndex=D(this.zlevel,this.z,this.z2),k(e,r),t.text?this.drawRectText(e,this.getBoundingRect()):this.removeRectText(e)},d.prototype.onRemove=function(e){E(e,this._vmlEl),this.removeRectText(e)},d.prototype.onAdd=function(e){k(e,this._vmlEl),this.appendRectText(e)};var G=function(e){return"object"==typeof e&&e.tagName&&"IMG"===e.tagName.toUpperCase()};h.prototype.brushVML=function(e){var t,r,i=this.style,o=i.image;if(G(o)){var n=o.src;if(n===this._imageSrc)t=this._imageWidth,r=this._imageHeight;else{var a=o.runtimeStyle,s=a.width,l=a.height;a.width="auto",a.height="auto",t=o.width,r=o.height,a.width=s,a.height=l,this._imageSrc=n,this._imageWidth=t,this._imageHeight=r}o=n}else o===this._imageSrc&&(t=this._imageWidth,r=this._imageHeight);if(o){var c=i.x||0,h=i.y||0,u=i.width,d=i.height,f=i.sWidth,v=i.sHeight,y=i.sx||0,x=i.sy||0,C=f&&v,M=this._vmlEl;M||(M=p.doc.createElement("div"),T(M),this._vmlEl=M);var A,I=M.style,P=!1,L=1,E=1;if(this.transform&&(A=this.transform,L=g(A[0]*A[0]+A[1]*A[1]),E=g(A[2]*A[2]+A[3]*A[3]),P=A[1]||A[2]),P){var O=[c,h],R=[c+u,h],z=[c,h+d],V=[c+u,h+d];_(O,O,A),_(R,R,A),_(z,z,A),_(V,V,A);var N=b(O[0],R[0],z[0],V[0]),W=b(O[1],R[1],z[1],V[1]),B=[];B.push("M11=",A[0]/L,S,"M12=",A[2]/E,S,"M21=",A[1]/L,S,"M22=",A[3]/E,S,"Dx=",m(c*L+A[4]),S,"Dy=",m(h*E+A[5])),I.padding="0 "+m(N)+"px "+m(W)+"px 0",I.filter=w+".Matrix("+B.join("")+", SizingMethod=clip)"}else A&&(c=c*L+A[4],h=h*E+A[5]),I.filter="",I.left=m(c)+"px",I.top=m(h)+"px";var j=this._imageEl,F=this._cropEl;j||(j=p.doc.createElement("div"),this._imageEl=j);var H=j.style;if(C){if(t&&r)H.width=m(L*t*u/f)+"px",H.height=m(E*r*d/v)+"px";else{var $=new Image,q=this;$.onload=function(){$.onload=null,t=$.width,r=$.height,H.width=m(L*t*u/f)+"px",H.height=m(E*r*d/v)+"px",q._imageWidth=t,q._imageHeight=r,q._imageSrc=o},$.src=o}F||(F=p.doc.createElement("div"),F.style.overflow="hidden",this._cropEl=F);var Z=F.style;Z.width=m((u+y*u/f)*L),Z.height=m((d+x*d/v)*E),Z.filter=w+".Matrix(Dx="+-y*u/f*L+",Dy="+-x*d/v*E+")",F.parentNode||M.appendChild(F),j.parentNode!=F&&F.appendChild(j)}else H.width=m(L*u)+"px",H.height=m(E*d)+"px",M.appendChild(j),F&&F.parentNode&&(M.removeChild(F),this._cropEl=null);var U="",X=i.opacity;1>X&&(U+=".Alpha(opacity="+m(100*X)+") "),U+=w+".AlphaImageLoader(src="+o+", SizingMethod=scale)",H.filter=U,M.style.zIndex=D(this.zlevel,this.z,this.z2),k(e,M),i.text&&this.drawRectText(e,this.getBoundingRect())}},h.prototype.onRemove=function(e){E(e,this._vmlEl),this._vmlEl=null,this._cropEl=null,this._imageEl=null,this.removeRectText(e)},h.prototype.onAdd=function(e){k(e,this._vmlEl),this.appendRectText(e)};var F,H="normal",$={},q=0,Z=100,U=document.createElement("div"),X=function(e){var t=$[e];if(!t){q>Z&&(q=0,$={});var r,i=U.style;try{i.font=e,r=i.fontFamily.split(",")[0]}catch(o){}t={style:i.fontStyle||H,variant:i.fontVariant||H,weight:i.fontWeight||H,size:0|parseFloat(i.fontSize||12),family:r||"Microsoft YaHei"},$[e]=t,q++}return t};s.measureText=function(e,t){var r=p.doc;F||(F=r.createElement("div"),F.style.cssText="position:absolute;top:-20000px;left:0;padding:0;margin:0;border:none;white-space:pre;",p.doc.body.appendChild(F));try{F.style.font=t}catch(i){}return F.innerHTML="",F.appendChild(r.createTextNode(e)),{width:F.offsetWidth}};for(var Y=new o,Q=function(e,t,r,i){var o=this.style,n=o.text;if(n){var a,l,c=o.textAlign,h=X(o.textFont),u=h.style+" "+h.variant+" "+h.weight+" "+h.size+'px "'+h.family+'"',d=o.textBaseline,f=o.textVerticalAlign;r=r||s.getBoundingRect(n,u,c,d);var g=this.transform;if(g&&!i&&(Y.copy(t),Y.applyTransform(g),t=Y),i)a=t.x,l=t.y;else{var v=o.textPosition,y=o.textDistance;if(v instanceof Array)a=t.x+O(v[0],t.width),l=t.y+O(v[1],t.height),c=c||"left",d=d||"top";else{var x=s.adjustTextPositionOnRect(v,t,r,y);a=x.x,l=x.y,c=c||x.textAlign,d=d||x.textBaseline}}if(f){switch(f){case"middle":l-=r.height/2;break;case"bottom":l-=r.height}d="top"}var b=h.size;switch(d){case"hanging":case"top":l+=b/1.75;break;case"middle":break;default:l-=b/2.25}switch(c){case"left":break;case"center":a-=r.width/2;break;case"right":a-=r.width}var w,C,M,A=p.createNode,I=this._textVmlEl;I?(M=I.firstChild,w=M.nextSibling,C=w.nextSibling):(I=A("line"),w=A("path"),C=A("textpath"),M=A("skew"),C.style["v-text-align"]="left",T(I),w.textpathok=!0,C.on=!0,I.from="0 0",I.to="1000 0.05",k(I,M),k(I,w),k(I,C),this._textVmlEl=I);var L=[a,l],E=I.style;g&&i?(_(L,L,g),M.on=!0,M.matrix=g[0].toFixed(3)+S+g[2].toFixed(3)+S+g[1].toFixed(3)+S+g[3].toFixed(3)+",0,0",M.offset=(m(L[0])||0)+","+(m(L[1])||0),M.origin="0 0",E.left="0px",E.top="0px"):(M.on=!1,E.left=m(a)+"px",E.top=m(l)+"px"),C.string=P(n);try{C.style.font=u}catch(R){}W(I,"fill",{fill:i?o.fill:o.textFill,opacity:o.opacity},this),W(I,"stroke",{stroke:i?o.stroke:o.textStroke,opacity:o.opacity,lineDash:o.lineDash},this),I.style.zIndex=D(this.zlevel,this.z,this.z2),k(e,I)}},J=function(e){E(e,this._textVmlEl),this._textVmlEl=null},K=function(e){k(e,this._textVmlEl)},ee=[l,c,h,d,u],te=0;te"===o.op?n=e[o.key]>o.value:"<"===o.op?n=e[o.key]="===o.op?n=e[o.key]>=o.value:"<="===o.op&&(n=e[o.key]<=o.value),o.negate&&(n=!n),r="&"===o.booleanOp?r&&n:"|"===o.booleanOp?r||n:n}return r}function a(e){return"undefined"!=typeof e}function s(e,t){return e.override&&e.currentItem===e.rootContext&&void 0!==e.override[t]}function l(e,t){return e instanceof Array&&parseInt(t)!=t}function c(e){for(var t=0;t0;c++)for(var h=l[c][0],u=t.exec(e.slice(h,l[c][1]));u&&i>1;h+=u.index+u[0].length,a=h,u=t.exec(e.slice(h,l[c][1])))s.push(e.slice(a,u.index+h)),o&&s.push(u[0]),i-=1;return a0)&&this.currentParents.push({key:this.currentKey,value:this.currentItem}),this.currentItem=t,this.currentKey=e},resetCurrent:function(){this.currentItem=null,this.currentKey=null,this.currentParents=[]},force:function(e){var t=this.currentParents[this.currentParents.length-1];return!this.currentItem&&t&&null!=this.currentKey&&(this.currentItem=e||{},t.value[this.currentKey]=this.currentItem),!!this.currentItem},getLocal:function(e){if(~e.indexOf("/")){for(var t=null,r=e.split("/"),i=0;i1){for(var i=[n(r[0].trim())],o=1;o=|<|>)/,{max:2,includeDelimiters:!0});if(3===r.length){var i="!"===r[1].charAt(0),o=s(r[0].trim()),n={negate:i,op:i?r[1].slice(1):r[1]};if(":"===n.op)n.select=[o,{_sub:e.exports(":"+r[2].trim())}];else if("~"===n.op){var a=s(r[2].trim());if("string"==typeof a){var l=r[2].trim().match(/^\/(.*)\/([a-z]?)$/);l?n.select=[o,new RegExp(l[1],l[2])]:n.select=[o,a]}else n.select=[o,a]}else n.select=[o,s(r[2].trim())];return n}}function a(e){return"{"===e.charAt(0)&&"}"===e.charAt(e.length-1)}function s(t){if(a(t)){var r=t.slice(1,-1);return{_sub:e.exports(r)}}return l(t)}function l(e){if("?"===e.charAt(0)){var t=parseInt(e.slice(1));return isNaN(t)?e:{_param:t}}return e}function c(e){var t=0;return e.replace(/\?/g,function(e){return e+t++})}var h=r(447);e.exports=function(e,t){function r(e){v?v.push(e):l.push(e)}function n(){var t=e.slice(u,d);x[g]&&x[g](t),g="get",u=d+1}if(!e)return[];var a,s,l=[],h=e.charAt(0),u=0,d=0,f=0,p=0,m=0,g="get",v=null;t&&(e=c(e));for(var y={".":{mode:"get"},":":{mode:"filter"},"|":{handle:"or"},"[":{open:"select"},"]":{close:"select"},"{":{open:"meta"},"}":{close:"meta"},"(":{open:"args"},")":{close:"args"}},x={get:function(e){var t="string"==typeof e?e.trim():null;t&&r({get:t})},select:function(e){if(e)r(o(e));else{var t={deep:[]};l.push(t),v=t.deep}},filter:function(e){e&&r({filter:e.trim()})},or:function(){v=null,l.push({or:!0}),f=b+1},args:function(e){var t=i(e);l[l.length-1].args=t}},b=0;b="0"&&"9">=i;)t+=i,l();if("."===i)for(t+=".";l()&&i>="0"&&"9">=i;)t+=i;if("e"===i||"E"===i)for(t+=i,l(),"-"!==i&&"+"!==i||(t+=i,l());i>="0"&&"9">=i;)t+=i,l();return e=+t,isFinite(e)?e:void s("Bad number")},h=function(){var e,t,r,o="";if('"'===i)for(;l();){if('"'===i)return l(),o;if("\\"===i)if(l(),"u"===i){for(r=0,t=0;4>t&&(e=parseInt(l(),16),isFinite(e));t+=1)r=16*r+e;o+=String.fromCharCode(r)}else{if("string"!=typeof a[i])break;o+=a[i]}else o+=i}s("Bad string")},u=function(){for(;i&&" ">=i;)l()},d=function(){switch(i){case"t":return l("t"),l("r"),l("u"),l("e"),!0;case"f":return l("f"),l("a"),l("l"),l("s"),l("e"),!1;case"n":return l("n"),l("u"),l("l"),l("l"),null}s("Unexpected '"+i+"'")},f=function(){var e=[];if("["===i){if(l("["),u(),"]"===i)return l("]"),e;for(;i;){if(e.push(n()),u(),"]"===i)return l("]"),e;l(","),u()}}s("Bad array")},p=function(){var e,t={};if("{"===i){if(l("{"),u(),"}"===i)return l("}"),t;for(;i;){if(e=h(),u(),l(":"),Object.hasOwnProperty.call(t,e)&&s('Duplicate key "'+e+'"'),t[e]=n(),u(),"}"===i)return l("}"),t;l(","),u()}}s("Bad object")};n=function(){switch(u(),i){case"{":return p();case"[":return f();case'"':return h();case"-":return c();default:return i>="0"&&"9">=i?c():d()}},e.exports=function(e,t){var a;return o=e,r=0,i=" ",a=n(),u(),i&&s("Syntax error"),"function"==typeof t?function l(e,r){var i,o,n=e[r];if(n&&"object"==typeof n)for(i in n)Object.prototype.hasOwnProperty.call(n,i)&&(o=l(n,i),void 0!==o?n[i]=o:delete n[i]);return t.call(e,r,n)}({"":a},""):a}},function(e,t){function r(e){return s.lastIndex=0,s.test(e)?'"'+e.replace(s,function(e){var t=l[e];return"string"==typeof t?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+e+'"'}function i(e,t){var s,l,c,h,u,d=o,f=t[e];switch(f&&"object"==typeof f&&"function"==typeof f.toJSON&&(f=f.toJSON(e)),"function"==typeof a&&(f=a.call(t,e,f)),typeof f){case"string":return r(f);case"number":return isFinite(f)?String(f):"null";case"boolean":case"null":return String(f);case"object":if(!f)return"null";if(o+=n,u=[],"[object Array]"===Object.prototype.toString.apply(f)){for(h=f.length,s=0;h>s;s+=1)u[s]=i(s,f)||"null";return c=0===u.length?"[]":o?"[\n"+o+u.join(",\n"+o)+"\n"+d+"]":"["+u.join(",")+"]",o=d,c}if(a&&"object"==typeof a)for(h=a.length,s=0;h>s;s+=1)l=a[s],"string"==typeof l&&(c=i(l,f),c&&u.push(r(l)+(o?": ":":")+c));else for(l in f)Object.prototype.hasOwnProperty.call(f,l)&&(c=i(l,f),c&&u.push(r(l)+(o?": ":":")+c));return c=0===u.length?"{}":o?"{\n"+o+u.join(",\n"+o)+"\n"+d+"}":"{"+u.join(",")+"}",o=d,c}}var o,n,a,s=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,l={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};e.exports=function(e,t,r){var s;if(o="",n="","number"==typeof r)for(s=0;r>s;s+=1)n+=" ";else"string"==typeof r&&(n=r);if(a=t,t&&"function"!=typeof t&&("object"!=typeof t||"number"!=typeof t.length))throw new Error("JSON.stringify");return i("",{"":e})}},function(e,t){function r(){c&&a&&(c=!1,a.length?l=a.concat(l):h=-1,l.length&&i())}function i(){if(!c){var e=setTimeout(r);c=!0;for(var t=l.length;t;){for(a=l,l=[];++h1)for(var r=1;r0&&l>s&&(l=s);for(var c=0;l>c;++c){var h,u,d,f,p=e[c].replace(a,"%20"),m=p.indexOf(i);m>=0?(h=p.substr(0,m),u=p.substr(m+1)):(h=p,u=""),d=decodeURIComponent(h),f=decodeURIComponent(u),r(n,d)?Array.isArray(n[d])?n[d].push(f):n[d]=[n[d],f]:n[d]=f}return n}},function(e,t){"use strict";var r=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,t,i,o){return t=t||"&",i=i||"=",null===e&&(e=void 0),"object"==typeof e?Object.keys(e).map(function(o){var n=encodeURIComponent(r(o))+i;return Array.isArray(e[o])?e[o].map(function(e){return n+encodeURIComponent(r(e))}).join(t):n+encodeURIComponent(r(e[o]))}).join(t):o?encodeURIComponent(r(o))+i+encodeURIComponent(r(e)):""}},function(e,t,r){"use strict";t.decode=t.parse=r(454),t.encode=t.stringify=r(455)},function(e,t){(function(t){"use strict";var r="function"==typeof Object.getPrototypeOf,i="function"==typeof Promise,o="undefined"!=typeof window?window:"undefined"!=typeof t?t:self,n="location"in o&&"document"in o,a="undefined"!=typeof HTMLElement,s="function"==typeof Array.isArray,l="undefined"!=typeof Symbol,c="undefined"!=typeof Map,h="undefined"!=typeof Set,u="undefined"!=typeof WeakMap,d="undefined"!=typeof WeakSet,f="undefined"!=typeof DataView,p=l&&"undefined"!=typeof Symbol.iterator,m=l&&"undefined"!=typeof Symbol.toStringTag,g=h&&"function"==typeof Set.prototype.entries,v=c&&"function"==typeof Map.prototype.entries,y=r&&g&&Object.getPrototypeOf((new Set).entries()),x=r&&v&&Object.getPrototypeOf((new Map).entries()),b=p&&"function"==typeof Array.prototype[Symbol.iterator],_=b&&Object.getPrototypeOf([][Symbol.iterator]()),S=p&&"function"==typeof Array.prototype[Symbol.iterator],w=S&&Object.getPrototypeOf(""[Symbol.iterator]()),C=8,M=-1;e.exports=function(e){var t=typeof e;if("object"!==t)return t;if(null===e)return"null";if(e===o)return"global";if(s&&Array.isArray(e))return"array";if(n){if(e===o.location)return"location";if(e===o.document)return"document";if(e===(o.navigator||{}).mimeTypes)return"mimetypearray";if(e===(o.navigator||{}).plugins)return"pluginarray";if(a&&e instanceof HTMLElement&&"BLOCKQUOTE"===e.tagName)return"htmlquoteelement";if(a&&e instanceof HTMLElement&&"TD"===e.tagName)return"htmltabledatacellelement";if(a&&e instanceof HTMLElement&&"TH"===e.tagName)return"htmltableheadercellelement"}if(r&&(m===!1||"undefined"==typeof e[Symbol.toStringTag])){var l=Object.getPrototypeOf(e);if(l===RegExp.prototype)return"regexp";if(l===Date.prototype)return"date";if(i&&l===Promise.prototype)return"promise";if(h&&l===Set.prototype)return"set";if(c&&l===Map.prototype)return"map";if(d&&l===WeakSet.prototype)return"weakset";if(u&&l===WeakMap.prototype)return"weakmap";if(f&&l===DataView.prototype)return"dataview";if(c&&l===x)return"map iterator";if(h&&l===y)return"set iterator";if(b&&l===_)return"array iterator";if(S&&l===w)return"string iterator";if(null===l)return"object"}return Object.prototype.toString.call(e).slice(C,M).toLowerCase()},e.exports.typeDetect=e.exports}).call(t,function(){return this}())},function(e,t,r){var i;(function(e,o){!function(n){function a(e){throw RangeError(E[e])}function s(e,t){for(var r=e.length,i=[];r--;)i[r]=t(e[r]);return i}function l(e,t){var r=e.split("@"),i="";r.length>1&&(i=r[0]+"@",e=r[1]),e=e.replace(k,".");var o=e.split("."),n=s(o,t).join(".");return i+n}function c(e){for(var t,r,i=[],o=0,n=e.length;n>o;)t=e.charCodeAt(o++),t>=55296&&56319>=t&&n>o?(r=e.charCodeAt(o++),56320==(64512&r)?i.push(((1023&t)<<10)+(1023&r)+65536):(i.push(t),o--)):i.push(t);return i}function h(e){return s(e,function(e){var t="";return e>65535&&(e-=65536,t+=R(e>>>10&1023|55296),e=56320|1023&e),t+=R(e)}).join("")}function u(e){return 10>e-48?e-22:26>e-65?e-65:26>e-97?e-97:_}function d(e,t){return e+22+75*(26>e)-((0!=t)<<5)}function f(e,t,r){var i=0;for(e=r?O(e/M):e>>1,e+=O(e/t);e>D*w>>1;i+=_)e=O(e/D);return O(i+(D+1)*e/(e+C))}function p(e){var t,r,i,o,n,s,l,c,d,p,m=[],g=e.length,v=0,y=I,x=A;for(r=e.lastIndexOf(T),0>r&&(r=0),i=0;r>i;++i)e.charCodeAt(i)>=128&&a("not-basic"),m.push(e.charCodeAt(i));for(o=r>0?r+1:0;g>o;){for(n=v,s=1,l=_;o>=g&&a("invalid-input"),c=u(e.charCodeAt(o++)),(c>=_||c>O((b-v)/s))&&a("overflow"),v+=c*s,d=x>=l?S:l>=x+w?w:l-x,!(d>c);l+=_)p=_-d,s>O(b/p)&&a("overflow"),s*=p;t=m.length+1,x=f(v-n,t,0==n),O(v/t)>b-y&&a("overflow"),y+=O(v/t),v%=t,m.splice(v++,0,y)}return h(m)}function m(e){var t,r,i,o,n,s,l,h,u,p,m,g,v,y,x,C=[];for(e=c(e),g=e.length,t=I,r=0,n=A,s=0;g>s;++s)m=e[s],128>m&&C.push(R(m));for(i=o=C.length,o&&C.push(T);g>i;){for(l=b,s=0;g>s;++s)m=e[s],m>=t&&l>m&&(l=m);for(v=i+1,l-t>O((b-r)/v)&&a("overflow"), r+=(l-t)*v,t=l,s=0;g>s;++s)if(m=e[s],t>m&&++r>b&&a("overflow"),m==t){for(h=r,u=_;p=n>=u?S:u>=n+w?w:u-n,!(p>h);u+=_)x=h-p,y=_-p,C.push(R(d(p+x%y,0))),h=O(x/y);C.push(R(d(h,0))),n=f(r,v,i==o),r=0,++i}++r,++t}return C.join("")}function g(e){return l(e,function(e){return P.test(e)?p(e.slice(4).toLowerCase()):e})}function v(e){return l(e,function(e){return L.test(e)?"xn--"+m(e):e})}var y=("object"==typeof t&&t&&!t.nodeType&&t,"object"==typeof e&&e&&!e.nodeType&&e,"object"==typeof o&&o);y.global!==y&&y.window!==y&&y.self!==y||(n=y);var x,b=2147483647,_=36,S=1,w=26,C=38,M=700,A=72,I=128,T="-",P=/^xn--/,L=/[^\x20-\x7E]/,k=/[\x2E\u3002\uFF0E\uFF61]/g,E={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},D=_-S,O=Math.floor,R=String.fromCharCode;x={version:"1.3.2",ucs2:{decode:c,encode:h},decode:p,encode:m,toASCII:v,toUnicode:g},i=function(){return x}.call(t,r,t,e),!(void 0!==i&&(e.exports=i))}(this)}).call(t,r(460)(e),function(){return this}())},function(e,t,r){function i(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}function o(e,t,r){if(e&&c(e)&&e instanceof i)return e;var o=new i;return o.parse(e,t,r),o}function n(e){return l(e)&&(e=o(e)),e instanceof i?e.format():i.prototype.format.call(e)}function a(e,t){return o(e,!1,!0).resolve(t)}function s(e,t){return e?o(e,!1,!0).resolveObject(t):t}function l(e){return"string"==typeof e}function c(e){return"object"==typeof e&&null!==e}function h(e){return null===e}function u(e){return null==e}var d=r(458);t.parse=o,t.resolve=a,t.resolveObject=s,t.format=n,t.Url=i;var f=/^([a-z0-9.+-]+:)/i,p=/:[0-9]*$/,m=["<",">",'"',"`"," ","\r","\n"," "],g=["{","}","|","\\","^","`"].concat(m),v=["'"].concat(g),y=["%","/","?",";","#"].concat(v),x=["/","?","#"],b=255,_=/^[a-z0-9A-Z_-]{0,63}$/,S=/^([a-z0-9A-Z_-]{0,63})(.*)$/,w={javascript:!0,"javascript:":!0},C={javascript:!0,"javascript:":!0},M={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},A=r(456);i.prototype.parse=function(e,t,r){if(!l(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var i=e;i=i.trim();var o=f.exec(i);if(o){o=o[0];var n=o.toLowerCase();this.protocol=n,i=i.substr(o.length)}if(r||o||i.match(/^\/\/[^@\/]+@[^@\/]+/)){var a="//"===i.substr(0,2);!a||o&&C[o]||(i=i.substr(2),this.slashes=!0)}if(!C[o]&&(a||o&&!M[o])){for(var s=-1,c=0;ch)&&(s=h)}var u,p;p=-1===s?i.lastIndexOf("@"):i.lastIndexOf("@",s),-1!==p&&(u=i.slice(0,p),i=i.slice(p+1),this.auth=decodeURIComponent(u)),s=-1;for(var c=0;ch)&&(s=h)}-1===s&&(s=i.length),this.host=i.slice(0,s),i=i.slice(s),this.parseHost(),this.hostname=this.hostname||"";var m="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!m)for(var g=this.hostname.split(/\./),c=0,I=g.length;I>c;c++){var T=g[c];if(T&&!T.match(_)){for(var P="",L=0,k=T.length;k>L;L++)P+=T.charCodeAt(L)>127?"x":T[L];if(!P.match(_)){var E=g.slice(0,c),D=g.slice(c+1),O=T.match(S);O&&(E.push(O[1]),D.unshift(O[2])),D.length&&(i="/"+D.join(".")+i),this.hostname=E.join(".");break}}}if(this.hostname.length>b?this.hostname="":this.hostname=this.hostname.toLowerCase(),!m){for(var R=this.hostname.split("."),z=[],c=0;cc;c++){var B=v[c],j=encodeURIComponent(B);j===B&&(j=escape(B)),i=i.split(B).join(j)}var G=i.indexOf("#");-1!==G&&(this.hash=i.substr(G),i=i.slice(0,G));var F=i.indexOf("?");if(-1!==F?(this.search=i.substr(F),this.query=i.substr(F+1),t&&(this.query=A.parse(this.query)),i=i.slice(0,F)):t&&(this.search="",this.query={}),i&&(this.pathname=i),M[n]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var N=this.pathname||"",V=this.search||"";this.path=N+V}return this.href=this.format(),this},i.prototype.format=function(){var e=this.auth||"";e&&(e=encodeURIComponent(e),e=e.replace(/%3A/i,":"),e+="@");var t=this.protocol||"",r=this.pathname||"",i=this.hash||"",o=!1,n="";this.host?o=e+this.host:this.hostname&&(o=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(o+=":"+this.port)),this.query&&c(this.query)&&Object.keys(this.query).length&&(n=A.stringify(this.query));var a=this.search||n&&"?"+n||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||M[t])&&o!==!1?(o="//"+(o||""),r&&"/"!==r.charAt(0)&&(r="/"+r)):o||(o=""),i&&"#"!==i.charAt(0)&&(i="#"+i),a&&"?"!==a.charAt(0)&&(a="?"+a),r=r.replace(/[?#]/g,function(e){return encodeURIComponent(e)}),a=a.replace("#","%23"),t+o+r+a+i},i.prototype.resolve=function(e){return this.resolveObject(o(e,!1,!0)).format()},i.prototype.resolveObject=function(e){if(l(e)){var t=new i;t.parse(e,!1,!0),e=t}var r=new i;if(Object.keys(this).forEach(function(e){r[e]=this[e]},this),r.hash=e.hash,""===e.href)return r.href=r.format(),r;if(e.slashes&&!e.protocol)return Object.keys(e).forEach(function(t){"protocol"!==t&&(r[t]=e[t])}),M[r.protocol]&&r.hostname&&!r.pathname&&(r.path=r.pathname="/"),r.href=r.format(),r;if(e.protocol&&e.protocol!==r.protocol){if(!M[e.protocol])return Object.keys(e).forEach(function(t){r[t]=e[t]}),r.href=r.format(),r;if(r.protocol=e.protocol,e.host||C[e.protocol])r.pathname=e.pathname;else{for(var o=(e.pathname||"").split("/");o.length&&!(e.host=o.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==o[0]&&o.unshift(""),o.length<2&&o.unshift(""),r.pathname=o.join("/")}if(r.search=e.search,r.query=e.query,r.host=e.host||"",r.auth=e.auth,r.hostname=e.hostname||e.host,r.port=e.port,r.pathname||r.search){var n=r.pathname||"",a=r.search||"";r.path=n+a}return r.slashes=r.slashes||e.slashes,r.href=r.format(),r}var s=r.pathname&&"/"===r.pathname.charAt(0),c=e.host||e.pathname&&"/"===e.pathname.charAt(0),d=c||s||r.host&&e.pathname,f=d,p=r.pathname&&r.pathname.split("/")||[],o=e.pathname&&e.pathname.split("/")||[],m=r.protocol&&!M[r.protocol];if(m&&(r.hostname="",r.port=null,r.host&&(""===p[0]?p[0]=r.host:p.unshift(r.host)),r.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===o[0]?o[0]=e.host:o.unshift(e.host)),e.host=null),d=d&&(""===o[0]||""===p[0])),c)r.host=e.host||""===e.host?e.host:r.host,r.hostname=e.hostname||""===e.hostname?e.hostname:r.hostname,r.search=e.search,r.query=e.query,p=o;else if(o.length)p||(p=[]),p.pop(),p=p.concat(o),r.search=e.search,r.query=e.query;else if(!u(e.search)){if(m){r.hostname=r.host=p.shift();var g=r.host&&r.host.indexOf("@")>0?r.host.split("@"):!1;g&&(r.auth=g.shift(),r.host=r.hostname=g.shift())}return r.search=e.search,r.query=e.query,h(r.pathname)&&h(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r}if(!p.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var v=p.slice(-1)[0],y=(r.host||e.host)&&("."===v||".."===v)||""===v,x=0,b=p.length;b>=0;b--)v=p[b],"."==v?p.splice(b,1):".."===v?(p.splice(b,1),x++):x&&(p.splice(b,1),x--);if(!d&&!f)for(;x--;x)p.unshift("..");!d||""===p[0]||p[0]&&"/"===p[0].charAt(0)||p.unshift(""),y&&"/"!==p.join("/").substr(-1)&&p.push("");var _=""===p[0]||p[0]&&"/"===p[0].charAt(0);if(m){r.hostname=r.host=_?"":p.length?p.shift():"";var g=r.host&&r.host.indexOf("@")>0?r.host.split("@"):!1;g&&(r.auth=g.shift(),r.host=r.hostname=g.shift())}return d=d||r.host&&p.length,d&&!_&&p.unshift(""),p.length?r.pathname=p.join("/"):(r.pathname=null,r.path=null),h(r.pathname)&&h(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r},i.prototype.parseHost=function(){var e=this.host,t=p.exec(e);t&&(t=t[0],":"!==t&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children=[],e.webpackPolyfill=1),e}},function(e,t,r){function i(e){return r(o(e))}function o(e){return n[e]||function(){throw new Error("Cannot find module '"+e+"'.")}()}var n={"./chalk.json":434,"./dark.json":435,"./essos.json":436,"./infographic.json":437,"./macarons.json":438,"./purple-passion.json":439,"./roma.json":440,"./shine.json":441,"./vintage.json":442,"./walden.json":443,"./westeros.json":444,"./wonderland.json":445};i.keys=function(){return Object.keys(n)},i.resolve=o,e.exports=i,i.id=461}])});