var vendor_library=function(t){function e(i){if(n[i])return n[i].exports;var r=n[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,e),r.l=!0,r.exports}var n={};return e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,i){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:i})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=326)}([function(t,e,n){var i=n(2),r=n(25),o=n(12),a=n(13),s=n(26),l="prototype",u=function(t,e,n){var c,h,f,d,p=t&u.F,g=t&u.G,v=t&u.S,m=t&u.P,y=t&u.B,x=g?i:v?i[e]||(i[e]={}):(i[e]||{})[l],_=g?r:r[e]||(r[e]={}),b=_[l]||(_[l]={});g&&(n=e);for(c in n)h=!p&&x&&void 0!==x[c],f=(h?x:n)[c],d=y&&h?s(f,i):m&&"function"==typeof f?s(Function.call,f):f,x&&a(x,c,f,t&u.U),_[c]!=f&&o(_,c,d),m&&b[c]!=f&&(b[c]=f)};i.core=r,u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,t.exports=u},function(t,e,n){var i=n(4);t.exports=function(t){if(!i(t))throw TypeError(t+" is not an object!");return t}},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){var i=n(58)("wks"),r=n(40),o=n(2).Symbol,a="function"==typeof o,s=t.exports=function(t){return i[t]||(i[t]=a&&o[t]||(a?o:r)("Symbol."+t))};s.store=i},function(t,e,n){t.exports=!n(3)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e,n){var i=n(1),r=n(101),o=n(24),a=Object.defineProperty;e.f=n(6)?Object.defineProperty:function(t,e,n){if(i(t),e=o(e,!0),i(n),r)try{return a(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var i=n(31),r=Math.min;t.exports=function(t){return t>0?r(i(t),9007199254740991):0}},function(t,e,n){var i=n(20);t.exports=function(t){return Object(i(t))}},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,n){var i=n(7),r=n(30);t.exports=n(6)?function(t,e,n){return i.f(t,e,r(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var i=n(2),r=n(12),o=n(10),a=n(40)("src"),s="toString",l=Function[s],u=(""+l).split(s);n(25).inspectSource=function(t){return l.call(t)},(t.exports=function(t,e,n,s){var l="function"==typeof n;l&&(o(n,"name")||r(n,"name",e)),t[e]!==n&&(l&&(o(n,a)||r(n,a,t[e]?""+t[e]:u.join(String(e)))),t===i?t[e]=n:s?t[e]?t[e]=n:r(t,e,n):(delete t[e],r(t,e,n)))})(Function.prototype,s,function(){return"function"==typeof this&&this[a]||l.call(this)})},function(t,e,n){var i=n(0),r=n(3),o=n(20),a=/"/g,s=function(t,e,n,i){var r=String(o(t)),s="<"+e;return""!==n&&(s+=" "+n+'="'+String(i).replace(a,""")+'"'),s+">"+r+""};t.exports=function(t,e){var n={};n[t]=e(s),i(i.P+i.F*r(function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3}),"String",n)}},function(t,e,n){var i=n(47),r=n(20);t.exports=function(t){return i(r(t))}},function(t,e,n){"use strict";function i(t){return"[object Array]"===S.call(t)}function r(t){return"[object ArrayBuffer]"===S.call(t)}function o(t){return"undefined"!=typeof FormData&&t instanceof FormData}function a(t){var e;return e="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer}function s(t){return"string"==typeof t}function l(t){return"number"==typeof t}function u(t){return"undefined"==typeof t}function c(t){return null!==t&&"object"==typeof t}function h(t){return"[object Date]"===S.call(t)}function f(t){return"[object File]"===S.call(t)}function d(t){return"[object Blob]"===S.call(t)}function p(t){return"[object Function]"===S.call(t)}function g(t){return c(t)&&p(t.pipe)}function v(t){return"undefined"!=typeof URLSearchParams&&t instanceof URLSearchParams}function m(t){return t.replace(/^\s*/,"").replace(/\s*$/,"")}function y(){return"undefined"!=typeof window&&"undefined"!=typeof document&&"function"==typeof document.createElement}function x(t,e){if(null!==t&&"undefined"!=typeof t)if("object"==typeof t||i(t)||(t=[t]),i(t))for(var n=0,r=t.length;nb;b++)if((f||b in y)&&(g=y[b],v=x(g,b,m),t))if(n)w[b]=v;else if(v)switch(t){case 3:return!0;case 5:return g;case 6:return b;case 2:w.push(g)}else if(c)return!1;return h?-1:u||c?c:w}}},function(t,e,n){var i=n(0),r=n(25),o=n(3);t.exports=function(t,e){var n=(r.Object||{})[t]||Object[t],a={};a[t]=e(n),i(i.S+i.F*o(function(){n(1)}),"Object",a)}},function(t,e,n){var i=n(4);t.exports=function(t,e){if(!i(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!i(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!i(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!i(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")}},function(t,e){var n=t.exports={version:"2.4.0"};"number"==typeof __e&&(__e=n)},function(t,e,n){var i=n(11);t.exports=function(t,e,n){if(i(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,i){return t.call(e,n,i)};case 3:return function(n,i,r){return t.call(e,n,i,r)}}return function(){return t.apply(e,arguments)}}},function(t,e,n){var i=n(117),r=n(0),o=n(58)("metadata"),a=o.store||(o.store=new(n(120))),s=function(t,e,n){var r=a.get(t);if(!r){if(!n)return;a.set(t,r=new i)}var o=r.get(e);if(!o){if(!n)return;r.set(e,o=new i)}return o},l=function(t,e,n){var i=s(e,n,!1);return void 0!==i&&i.has(t)},u=function(t,e,n){var i=s(e,n,!1);return void 0===i?void 0:i.get(t)},c=function(t,e,n,i){s(n,i,!0).set(t,e)},h=function(t,e){var n=s(t,e,!1),i=[];return n&&n.forEach(function(t,e){i.push(e)}),i},f=function(t){return void 0===t||"symbol"==typeof t?t:String(t)},d=function(t){r(r.S,"Reflect",t)};t.exports={store:a,map:s,has:l,get:u,set:c,keys:h,key:f,exp:d}},function(t,e,n){"use strict";if(n(6)){var i=n(33),r=n(2),o=n(3),a=n(0),s=n(59),l=n(83),u=n(26),c=n(32),h=n(30),f=n(12),d=n(37),p=n(31),g=n(8),v=n(39),m=n(24),y=n(10),x=n(114),_=n(46),b=n(4),w=n(9),S=n(68),M=n(34),A=n(18),T=n(35).f,I=n(85),C=n(40),L=n(5),D=n(22),k=n(49),P=n(77),E=n(86),O=n(43),R=n(55),N=n(38),z=n(61),V=n(94),B=n(7),F=n(17),G=B.f,H=F.f,j=r.RangeError,W=r.TypeError,$=r.Uint8Array,U="ArrayBuffer",q="Shared"+U,Z="BYTES_PER_ELEMENT",X="prototype",Y=Array[X],J=l.ArrayBuffer,K=l.DataView,Q=D(0),tt=D(2),et=D(3),nt=D(4),it=D(5),rt=D(6),ot=k(!0),at=k(!1),st=E.values,lt=E.keys,ut=E.entries,ct=Y.lastIndexOf,ht=Y.reduce,ft=Y.reduceRight,dt=Y.join,pt=Y.sort,gt=Y.slice,vt=Y.toString,mt=Y.toLocaleString,yt=L("iterator"),xt=L("toStringTag"),_t=C("typed_constructor"),bt=C("def_constructor"),wt=s.CONSTR,St=s.TYPED,Mt=s.VIEW,At="Wrong length!",Tt=D(1,function(t,e){return Pt(P(t,t[bt]),e)}),It=o(function(){return 1===new $(new Uint16Array([1]).buffer)[0]}),Ct=!!$&&!!$[X].set&&o(function(){new $(1).set({})}),Lt=function(t,e){if(void 0===t)throw W(At);var n=+t,i=g(t);if(e&&!x(n,i))throw j(At);return i},Dt=function(t,e){var n=p(t);if(n<0||n%e)throw j("Wrong offset!");return n},kt=function(t){if(b(t)&&St in t)return t;throw W(t+" is not a typed array!")},Pt=function(t,e){if(!(b(t)&&_t in t))throw W("It is not a typed array constructor!");return new t(e)},Et=function(t,e){return Ot(P(t,t[bt]),e)},Ot=function(t,e){for(var n=0,i=e.length,r=Pt(t,i);i>n;)r[n]=e[n++];return r},Rt=function(t,e,n){G(t,e,{get:function(){return this._d[n]}})},Nt=function(t){var e,n,i,r,o,a,s=w(t),l=arguments.length,c=l>1?arguments[1]:void 0,h=void 0!==c,f=I(s);if(void 0!=f&&!S(f)){for(a=f.call(s),i=[],e=0;!(o=a.next()).done;e++)i.push(o.value);s=i}for(h&&l>2&&(c=u(c,arguments[2],2)),e=0,n=g(s.length),r=Pt(this,n);n>e;e++)r[e]=h?c(s[e],e):s[e];return r},zt=function(){for(var t=0,e=arguments.length,n=Pt(this,e);e>t;)n[t]=arguments[t++];return n},Vt=!!$&&o(function(){mt.call(new $(1))}),Bt=function(){return mt.apply(Vt?gt.call(kt(this)):kt(this),arguments)},Ft={copyWithin:function(t,e){return V.call(kt(this),t,e,arguments.length>2?arguments[2]:void 0)},every:function(t){return nt(kt(this),t,arguments.length>1?arguments[1]:void 0)},fill:function(t){return z.apply(kt(this),arguments)},filter:function(t){return Et(this,tt(kt(this),t,arguments.length>1?arguments[1]:void 0))},find:function(t){return it(kt(this),t,arguments.length>1?arguments[1]:void 0)},findIndex:function(t){return rt(kt(this),t,arguments.length>1?arguments[1]:void 0)},forEach:function(t){Q(kt(this),t,arguments.length>1?arguments[1]:void 0)},indexOf:function(t){return at(kt(this),t,arguments.length>1?arguments[1]:void 0)},includes:function(t){return ot(kt(this),t,arguments.length>1?arguments[1]:void 0)},join:function(t){return dt.apply(kt(this),arguments)},lastIndexOf:function(t){return ct.apply(kt(this),arguments)},map:function(t){return Tt(kt(this),t,arguments.length>1?arguments[1]:void 0)},reduce:function(t){return ht.apply(kt(this),arguments)},reduceRight:function(t){return ft.apply(kt(this),arguments)},reverse:function(){for(var t,e=this,n=kt(e).length,i=Math.floor(n/2),r=0;r1?arguments[1]:void 0)},sort:function(t){return pt.call(kt(this),t)},subarray:function(t,e){var n=kt(this),i=n.length,r=v(t,i);return new(P(n,n[bt]))(n.buffer,n.byteOffset+r*n.BYTES_PER_ELEMENT,g((void 0===e?i:v(e,i))-r))}},Gt=function(t,e){return Et(this,gt.call(kt(this),t,e))},Ht=function(t){kt(this);var e=Dt(arguments[1],1),n=this.length,i=w(t),r=g(i.length),o=0;if(r+e>n)throw j(At);for(;o255?255:255&i),r.v[p](n*e+r.o,i,It)},L=function(t,e){G(t,e,{get:function(){return I(this,e)},set:function(t){return C(this,e,t)},enumerable:!0})};x?(v=n(function(t,n,i,r){c(t,v,u,"_d");var o,a,s,l,h=0,d=0;if(b(n)){if(!(n instanceof J||(l=_(n))==U||l==q))return St in n?Ot(v,n):Nt.call(v,n);o=n,d=Dt(i,e);var p=n.byteLength;if(void 0===r){if(p%e)throw j(At);if(a=p-d,a<0)throw j(At)}else if(a=g(r)*e,a+d>p)throw j(At);s=a/e}else s=Lt(n,!0),a=s*e,o=new J(a);for(f(t,"_d",{b:o,o:d,l:a,e:s,v:new K(o)});h0?i:n)(t)}},function(t,e){t.exports=function(t,e,n,i){if(!(t instanceof e)||void 0!==i&&i in t)throw TypeError(n+": incorrect invocation!");return t}},function(t,e){t.exports=!1},function(t,e,n){var i=n(1),r=n(107),o=n(64),a=n(76)("IE_PROTO"),s=function(){},l="prototype",u=function(){var t,e=n(63)("iframe"),i=o.length,r="<",a=">";for(e.style.display="none",n(66).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write(r+"script"+a+"document.F=Object"+r+"/script"+a),t.close(),u=t.F;i--;)delete u[l][o[i]];return u()};t.exports=Object.create||function(t,e){var n;return null!==t?(s[l]=i(t),n=new s,s[l]=null,n[a]=t):n=u(),void 0===e?n:r(n,e)}},function(t,e,n){var i=n(109),r=n(64).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return i(t,r)}},function(t,e,n){var i=n(109),r=n(64);t.exports=Object.keys||function(t){return i(t,r)}},function(t,e,n){var i=n(13);t.exports=function(t,e,n){for(var r in e)i(t,r,e[r],n);return t}},function(t,e,n){"use strict";var i=n(2),r=n(7),o=n(6),a=n(5)("species");t.exports=function(t){var e=i[t];o&&e&&!e[a]&&r.f(e,a,{configurable:!0,get:function(){return this}})}},function(t,e,n){var i=n(31),r=Math.max,o=Math.min;t.exports=function(t,e){return t=i(t),t<0?r(t+e,0):o(t,e)}},function(t,e){var n=0,i=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+i).toString(36))}},function(t,e,n){var i=n(5)("unscopables"),r=Array.prototype;void 0==r[i]&&n(12)(r,i,{}),t.exports=function(t){r[i][t]=!0}},function(t,e,n){var i=n(26),r=n(103),o=n(68),a=n(1),s=n(8),l=n(85),u={},c={},e=t.exports=function(t,e,n,h,f){var d,p,g,v,m=f?function(){return t}:l(t),y=i(n,h,e?2:1),x=0;if("function"!=typeof m)throw TypeError(t+" is not iterable!");if(o(m)){for(d=s(t.length);d>x;x++)if(v=e?y(a(p=t[x])[0],p[1]):y(t[x]),v===u||v===c)return v}else for(g=m.call(t);!(p=g.next()).done;)if(v=r(g,y,p.value,e),v===u||v===c)return v};e.BREAK=u,e.RETURN=c},function(t,e){t.exports={}},function(t,e,n){var i=n(7).f,r=n(10),o=n(5)("toStringTag");t.exports=function(t,e,n){t&&!r(t=n?t:t.prototype,o)&&i(t,o,{configurable:!0,value:e})}},function(t,e,n){var i=n(0),r=n(20),o=n(3),a=n(81),s="["+a+"]",l="​…",u=RegExp("^"+s+s+"*"),c=RegExp(s+s+"*$"),h=function(t,e,n){var r={},s=o(function(){return!!a[t]()||l[t]()!=l}),u=r[t]=s?e(f):a[t];n&&(r[n]=u),i(i.P+i.F*s,"String",r)},f=h.trim=function(t,e){return t=String(r(t)),1&e&&(t=t.replace(u,"")),2&e&&(t=t.replace(c,"")),t};t.exports=h},function(t,e,n){var i=n(19),r=n(5)("toStringTag"),o="Arguments"==i(function(){return arguments}()),a=function(t,e){try{return t[e]}catch(t){}};t.exports=function(t){var e,n,s;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=a(e=Object(t),r))?n:o?i(e):"Object"==(s=i(e))&&"function"==typeof e.callee?"Arguments":s}},function(t,e,n){var i=n(19);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==i(t)?t.split(""):Object(t)}},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,n){var i=n(15),r=n(8),o=n(39);t.exports=function(t){return function(e,n,a){var s,l=i(e),u=r(l.length),c=o(a,u);if(t&&n!=n){for(;u>c;)if(s=l[c++],s!=s)return!0}else for(;u>c;c++)if((t||c in l)&&l[c]===n)return t||c||0;return!t&&-1}}},function(t,e,n){"use strict";var i=n(2),r=n(0),o=n(13),a=n(37),s=n(29),l=n(42),u=n(32),c=n(4),h=n(3),f=n(55),d=n(44),p=n(67);t.exports=function(t,e,n,g,v,m){var y=i[t],x=y,_=v?"set":"add",b=x&&x.prototype,w={},S=function(t){var e=b[t];o(b,t,"delete"==t?function(t){return!(m&&!c(t))&&e.call(this,0===t?0:t)}:"has"==t?function(t){return!(m&&!c(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return m&&!c(t)?void 0:e.call(this,0===t?0:t)}:"add"==t?function(t){return e.call(this,0===t?0:t),this}:function(t,n){return e.call(this,0===t?0:t,n),this})};if("function"==typeof x&&(m||b.forEach&&!h(function(){(new x).entries().next()}))){var M=new x,A=M[_](m?{}:-0,1)!=M,T=h(function(){M.has(1)}),I=f(function(t){new x(t)}),C=!m&&h(function(){for(var t=new x,e=5;e--;)t[_](e,e);return!t.has(-0)});I||(x=e(function(e,n){u(e,x,t);var i=p(new y,e,x);return void 0!=n&&l(n,v,i[_],i),i}),x.prototype=b,b.constructor=x),(T||C)&&(S("delete"),S("has"),v&&S("get")),(C||A)&&S(_),m&&b.clear&&delete b.clear}else x=g.getConstructor(e,t,v,_),a(x.prototype,n),s.NEED=!0;return d(x,t),w[t]=x,r(r.G+r.W+r.F*(x!=y),w),m||g.setStrong(x,t,v),x}},function(t,e,n){"use strict";var i=n(12),r=n(13),o=n(3),a=n(20),s=n(5);t.exports=function(t,e,n){var l=s(t),u=n(a,l,""[t]),c=u[0],h=u[1];o(function(){var e={};return e[l]=function(){return 7},7!=""[t](e)})&&(r(String.prototype,t,c),i(RegExp.prototype,l,2==e?function(t,e){return h.call(t,this,e)}:function(t){return h.call(t,this)}))}},function(t,e,n){"use strict";var i=n(1);t.exports=function(){var t=i(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},function(t,e){t.exports=function(t,e,n){var i=void 0===n;switch(e.length){case 0:return i?t():t.call(n);case 1:return i?t(e[0]):t.call(n,e[0]);case 2:return i?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return i?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return i?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3])}return t.apply(n,e)}},function(t,e,n){var i=n(4),r=n(19),o=n(5)("match");t.exports=function(t){var e;return i(t)&&(void 0!==(e=t[o])?!!e:"RegExp"==r(t))}},function(t,e,n){var i=n(5)("iterator"),r=!1;try{var o=[7][i]();o.return=function(){r=!0},Array.from(o,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!r)return!1;var n=!1;try{var o=[7],a=o[i]();a.next=function(){return{done:n=!0}},o[i]=function(){return a},t(o)}catch(t){}return n}},function(t,e,n){t.exports=n(33)||!n(3)(function(){var t=Math.random();__defineSetter__.call(null,t,function(){}),delete n(2)[t]})},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var i=n(2),r="__core-js_shared__",o=i[r]||(i[r]={});t.exports=function(t){return o[t]||(o[t]={})}},function(t,e,n){for(var i,r=n(2),o=n(12),a=n(40),s=a("typed_array"),l=a("view"),u=!(!r.ArrayBuffer||!r.DataView),c=u,h=0,f=9,d="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");h=200&&t<300}};u.headers={common:{Accept:"application/json, text/plain, */*"}},o.forEach(["delete","get","head"],function(t){u.headers[t]={}}),o.forEach(["post","put","patch"],function(t){u.headers[t]=o.merge(l)}),t.exports=u}).call(e,n(121))},function(t,e,n){"use strict";var i=n(9),r=n(39),o=n(8);t.exports=function(t){for(var e=i(this),n=o(e.length),a=arguments.length,s=r(a>1?arguments[1]:void 0,n),l=a>2?arguments[2]:void 0,u=void 0===l?n:r(l,n);u>s;)e[s++]=t;return e}},function(t,e,n){"use strict";var i=n(7),r=n(30);t.exports=function(t,e,n){e in t?i.f(t,e,r(0,n)):t[e]=n}},function(t,e,n){var i=n(4),r=n(2).document,o=i(r)&&i(r.createElement);t.exports=function(t){return o?r.createElement(t):{}}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,n){var i=n(5)("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[i]=!1,!"/./"[t](e)}catch(t){}}return!0}},function(t,e,n){t.exports=n(2).document&&document.documentElement},function(t,e,n){var i=n(4),r=n(75).set;t.exports=function(t,e,n){var o,a=e.constructor;return a!==n&&"function"==typeof a&&(o=a.prototype)!==n.prototype&&i(o)&&r&&r(t,o),t}},function(t,e,n){var i=n(43),r=n(5)("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(i.Array===t||o[r]===t)}},function(t,e,n){var i=n(19);t.exports=Array.isArray||function(t){return"Array"==i(t)}},function(t,e,n){"use strict";var i=n(34),r=n(30),o=n(44),a={};n(12)(a,n(5)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=i(a,{next:r(1,n)}),o(t,e+" Iterator")}},function(t,e,n){"use strict";var i=n(33),r=n(0),o=n(13),a=n(12),s=n(10),l=n(43),u=n(70),c=n(44),h=n(18),f=n(5)("iterator"),d=!([].keys&&"next"in[].keys()),p="@@iterator",g="keys",v="values",m=function(){return this};t.exports=function(t,e,n,y,x,_,b){u(n,e,y);var w,S,M,A=function(t){if(!d&&t in L)return L[t];switch(t){case g:return function(){return new n(this,t)};case v:return function(){return new n(this,t)}}return function(){return new n(this,t)}},T=e+" Iterator",I=x==v,C=!1,L=t.prototype,D=L[f]||L[p]||x&&L[x],k=D||A(x),P=x?I?A("entries"):k:void 0,E="Array"==e?L.entries||D:D;if(E&&(M=h(E.call(new t)),M!==Object.prototype&&(c(M,T,!0),i||s(M,f)||a(M,f,m))),I&&D&&D.name!==v&&(C=!0,k=function(){return D.call(this)}),i&&!b||!d&&!C&&L[f]||a(L,f,k),l[e]=k,l[T]=m,x)if(w={values:I?k:A(v),keys:_?k:A(g),entries:P},b)for(S in w)S in L||o(L,S,w[S]);else r(r.P+r.F*(d||C),e,w);return w}},function(t,e){var n=Math.expm1;t.exports=!n||n(10)>22025.465794806718||n(10)<22025.465794806718||n(-2e-17)!=-2e-17?function(t){return 0==(t=+t)?t:t>-1e-6&&t<1e-6?t+t*t/2:Math.exp(t)-1}:n},function(t,e){t.exports=Math.sign||function(t){return 0==(t=+t)||t!=t?t:t<0?-1:1}},function(t,e,n){var i=n(2),r=n(82).set,o=i.MutationObserver||i.WebKitMutationObserver,a=i.process,s=i.Promise,l="process"==n(19)(a);t.exports=function(){var t,e,n,u=function(){var i,r;for(l&&(i=a.domain)&&i.exit();t;){r=t.fn,t=t.next;try{r()}catch(i){throw t?n():e=void 0,i}}e=void 0,i&&i.enter()};if(l)n=function(){a.nextTick(u)};else if(o){var c=!0,h=document.createTextNode("");new o(u).observe(h,{characterData:!0}),n=function(){h.data=c=!c}}else if(s&&s.resolve){var f=s.resolve();n=function(){f.then(u)}}else n=function(){r.call(i,u)};return function(i){var r={fn:i,next:void 0};e&&(e.next=r),t||(t=r,n()),e=r}}},function(t,e,n){var i=n(4),r=n(1),o=function(t,e){if(r(t),!i(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,i){try{i=n(26)(Function.call,n(17).f(Object.prototype,"__proto__").set,2),i(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,n){return o(t,n),e?t.__proto__=n:i(t,n),t}}({},!1):void 0),check:o}},function(t,e,n){var i=n(58)("keys"),r=n(40);t.exports=function(t){return i[t]||(i[t]=r(t))}},function(t,e,n){var i=n(1),r=n(11),o=n(5)("species");t.exports=function(t,e){var n,a=i(t).constructor;return void 0===a||void 0==(n=i(a)[o])?e:r(n)}},function(t,e,n){var i=n(31),r=n(20);t.exports=function(t){return function(e,n){var o,a,s=String(r(e)),l=i(n),u=s.length;return l<0||l>=u?t?"":void 0:(o=s.charCodeAt(l),o<55296||o>56319||l+1===u||(a=s.charCodeAt(l+1))<56320||a>57343?t?s.charAt(l):o:t?s.slice(l,l+2):(o-55296<<10)+(a-56320)+65536)}}},function(t,e,n){var i=n(54),r=n(20);t.exports=function(t,e,n){if(i(e))throw TypeError("String#"+n+" doesn't accept regex!");return String(r(t))}},function(t,e,n){"use strict";var i=n(31),r=n(20);t.exports=function(t){var e=String(r(this)),n="",o=i(t);if(o<0||o==1/0)throw RangeError("Count can't be negative");for(;o>0;(o>>>=1)&&(e+=e))1&o&&(n+=e);return n}},function(t,e){t.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"},function(t,e,n){var i,r,o,a=n(26),s=n(53),l=n(66),u=n(63),c=n(2),h=c.process,f=c.setImmediate,d=c.clearImmediate,p=c.MessageChannel,g=0,v={},m="onreadystatechange",y=function(){var t=+this;if(v.hasOwnProperty(t)){var e=v[t];delete v[t],e()}},x=function(t){y.call(t.data)};f&&d||(f=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return v[++g]=function(){s("function"==typeof t?t:Function(t),e)},i(g),g},d=function(t){delete v[t]},"process"==n(19)(h)?i=function(t){h.nextTick(a(y,t,1))}:p?(r=new p,o=r.port2,r.port1.onmessage=x,i=a(o.postMessage,o,1)):c.addEventListener&&"function"==typeof postMessage&&!c.importScripts?(i=function(t){c.postMessage(t+"","*")},c.addEventListener("message",x,!1)):i=m in u("script")?function(t){l.appendChild(u("script"))[m]=function(){l.removeChild(this),y.call(t)}}:function(t){setTimeout(a(y,t,1),0)}),t.exports={set:f,clear:d}},function(t,e,n){"use strict";var i=n(2),r=n(6),o=n(33),a=n(59),s=n(12),l=n(37),u=n(3),c=n(32),h=n(31),f=n(8),d=n(35).f,p=n(7).f,g=n(61),v=n(44),m="ArrayBuffer",y="DataView",x="prototype",_="Wrong length!",b="Wrong index!",w=i[m],S=i[y],M=i.Math,A=i.RangeError,T=i.Infinity,I=w,C=M.abs,L=M.pow,D=M.floor,k=M.log,P=M.LN2,E="buffer",O="byteLength",R="byteOffset",N=r?"_b":E,z=r?"_l":O,V=r?"_o":R,B=function(t,e,n){var i,r,o,a=Array(n),s=8*n-e-1,l=(1<>1,c=23===e?L(2,-24)-L(2,-77):0,h=0,f=t<0||0===t&&1/t<0?1:0;for(t=C(t),t!=t||t===T?(r=t!=t?1:0,i=l):(i=D(k(t)/P),t*(o=L(2,-i))<1&&(i--,o*=2),t+=i+u>=1?c/o:c*L(2,1-u),t*o>=2&&(i++,o/=2),i+u>=l?(r=0,i=l):i+u>=1?(r=(t*o-1)*L(2,e),i+=u):(r=t*L(2,u-1)*L(2,e),i=0));e>=8;a[h++]=255&r,r/=256,e-=8);for(i=i<0;a[h++]=255&i,i/=256,s-=8);return a[--h]|=128*f,a},F=function(t,e,n){var i,r=8*n-e-1,o=(1<>1,s=r-7,l=n-1,u=t[l--],c=127&u;for(u>>=7;s>0;c=256*c+t[l],l--,s-=8);for(i=c&(1<<-s)-1,c>>=-s,s+=e;s>0;i=256*i+t[l],l--,s-=8);if(0===c)c=1-a;else{if(c===o)return i?NaN:u?-T:T;i+=L(2,e),c-=a}return(u?-1:1)*i*L(2,c-e)},G=function(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]},H=function(t){return[255&t]},j=function(t){return[255&t,t>>8&255]},W=function(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]},$=function(t){return B(t,52,8)},U=function(t){return B(t,23,4)},q=function(t,e,n){p(t[x],e,{get:function(){return this[n]}})},Z=function(t,e,n,i){var r=+n,o=h(r);if(r!=o||o<0||o+e>t[z])throw A(b);var a=t[N]._b,s=o+t[V],l=a.slice(s,s+e);return i?l:l.reverse()},X=function(t,e,n,i,r,o){var a=+n,s=h(a);if(a!=s||s<0||s+e>t[z])throw A(b);for(var l=t[N]._b,u=s+t[V],c=i(+r),f=0;ftt;)(J=Q[tt++])in w||s(w,J,I[J]);o||(K.constructor=w)}var et=new S(new w(2)),nt=S[x].setInt8;et.setInt8(0,2147483648),et.setInt8(1,2147483649),!et.getInt8(0)&&et.getInt8(1)||l(S[x],{setInt8:function(t,e){nt.call(this,t,e<<24>>24)},setUint8:function(t,e){nt.call(this,t,e<<24>>24)}},!0)}else w=function(t){var e=Y(this,t);this._b=g.call(Array(e),0),this[z]=e},S=function(t,e,n){c(this,S,y),c(t,w,y);var i=t[z],r=h(e);if(r<0||r>i)throw A("Wrong offset!");if(n=void 0===n?i-r:f(n),r+n>i)throw A(_);this[N]=t,this[V]=r,this[z]=n},r&&(q(w,O,"_l"),q(S,E,"_b"),q(S,O,"_l"),q(S,R,"_o")),l(S[x],{getInt8:function(t){return Z(this,1,t)[0]<<24>>24},getUint8:function(t){return Z(this,1,t)[0]},getInt16:function(t){var e=Z(this,2,t,arguments[1]);return(e[1]<<8|e[0])<<16>>16},getUint16:function(t){var e=Z(this,2,t,arguments[1]);return e[1]<<8|e[0]},getInt32:function(t){return G(Z(this,4,t,arguments[1]))},getUint32:function(t){return G(Z(this,4,t,arguments[1]))>>>0},getFloat32:function(t){return F(Z(this,4,t,arguments[1]),23,4)},getFloat64:function(t){return F(Z(this,8,t,arguments[1]),52,8)},setInt8:function(t,e){X(this,1,t,H,e)},setUint8:function(t,e){X(this,1,t,H,e)},setInt16:function(t,e){X(this,2,t,j,e,arguments[2])},setUint16:function(t,e){X(this,2,t,j,e,arguments[2])},setInt32:function(t,e){X(this,4,t,W,e,arguments[2])},setUint32:function(t,e){X(this,4,t,W,e,arguments[2])},setFloat32:function(t,e){X(this,4,t,U,e,arguments[2])},setFloat64:function(t,e){X(this,8,t,$,e,arguments[2])}});v(w,m),v(S,y),s(S[x],a.VIEW,!0),e[m]=w,e[y]=S},function(t,e,n){var i=n(2),r=n(25),o=n(33),a=n(116),s=n(7).f;t.exports=function(t){var e=r.Symbol||(r.Symbol=o?{}:i.Symbol||{});"_"==t.charAt(0)||t in e||s(e,t,{value:a.f(t)})}},function(t,e,n){var i=n(46),r=n(5)("iterator"),o=n(43);t.exports=n(25).getIteratorMethod=function(t){if(void 0!=t)return t[r]||t["@@iterator"]||o[i(t)]}},function(t,e,n){"use strict";var i=n(41),r=n(104),o=n(43),a=n(15);t.exports=n(71)(Array,"Array",function(t,e){this._t=a(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,r(1)):"keys"==e?r(0,n):"values"==e?r(0,t[n]):r(0,[n,t[n]])},"values"),o.Arguments=o.Array,i("keys"),i("values"),i("entries"); },function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){"use strict";var i=n(16),r=n(133),o=n(136),a=n(142),s=n(140),l=n(91),u="undefined"!=typeof window&&window.btoa&&window.btoa.bind(window)||n(135);t.exports=function(t){return new Promise(function(e,c){var h=t.data,f=t.headers;i.isFormData(h)&&delete f["Content-Type"];var d=new XMLHttpRequest,p="onreadystatechange",g=!1;if("undefined"==typeof window||!window.XDomainRequest||"withCredentials"in d||s(t.url)||(d=new window.XDomainRequest,p="onload",g=!0,d.onprogress=function(){},d.ontimeout=function(){}),t.auth){var v=t.auth.username||"",m=t.auth.password||"";f.Authorization="Basic "+u(v+":"+m)}if(d.open(t.method.toUpperCase(),o(t.url,t.params,t.paramsSerializer),!0),d.timeout=t.timeout,d[p]=function(){if(d&&(4===d.readyState||g)&&(0!==d.status||d.responseURL&&0===d.responseURL.indexOf("file:"))){var n="getAllResponseHeaders"in d?a(d.getAllResponseHeaders()):null,i=t.responseType&&"text"!==t.responseType?d.response:d.responseText,o={data:i,status:1223===d.status?204:d.status,statusText:1223===d.status?"No Content":d.statusText,headers:n,config:t,request:d};r(e,c,o),d=null}},d.onerror=function(){c(l("Network Error",t)),d=null},d.ontimeout=function(){c(l("timeout of "+t.timeout+"ms exceeded",t,"ECONNABORTED")),d=null},i.isStandardBrowserEnv()){var y=n(138),x=(t.withCredentials||s(t.url))&&t.xsrfCookieName?y.read(t.xsrfCookieName):void 0;x&&(f[t.xsrfHeaderName]=x)}if("setRequestHeader"in d&&i.forEach(f,function(t,e){"undefined"==typeof h&&"content-type"===e.toLowerCase()?delete f[e]:d.setRequestHeader(e,t)}),t.withCredentials&&(d.withCredentials=!0),t.responseType)try{d.responseType=t.responseType}catch(t){if("json"!==d.responseType)throw t}"function"==typeof t.onDownloadProgress&&d.addEventListener("progress",t.onDownloadProgress),"function"==typeof t.onUploadProgress&&d.upload&&d.upload.addEventListener("progress",t.onUploadProgress),t.cancelToken&&t.cancelToken.promise.then(function(t){d&&(d.abort(),c(t),d=null)}),void 0===h&&(h=null),d.send(h)})}},function(t,e,n){"use strict";function i(t){this.message=t}i.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},i.prototype.__CANCEL__=!0,t.exports=i},function(t,e,n){"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},function(t,e,n){"use strict";var i=n(132);t.exports=function(t,e,n,r){var o=new Error(t);return i(o,e,n,r)}},function(t,e,n){"use strict";t.exports=function(t,e){return function(){for(var n=new Array(arguments.length),i=0;i2?arguments[2]:void 0,c=Math.min((void 0===u?a:r(u,a))-l,a-s),h=1;for(l0;)l in n?n[s]=n[l]:delete n[s],s+=h,l+=h;return n}},function(t,e,n){var i=n(42);t.exports=function(t,e){var n=[];return i(t,!1,n.push,n,e),n}},function(t,e,n){var i=n(11),r=n(9),o=n(47),a=n(8);t.exports=function(t,e,n,s,l){i(e);var u=r(t),c=o(u),h=a(u.length),f=l?h-1:0,d=l?-1:1;if(n<2)for(;;){if(f in c){s=c[f],f+=d;break}if(f+=d,l?f<0:h<=f)throw TypeError("Reduce of empty array with no initial value")}for(;l?f>=0:h>f;f+=d)f in c&&(s=e(s,c[f],f,u));return s}},function(t,e,n){"use strict";var i=n(11),r=n(4),o=n(53),a=[].slice,s={},l=function(t,e,n){if(!(e in s)){for(var i=[],r=0;r1?arguments[1]:void 0,3);e=e?e.n:this._f;)for(n(e.v,e.k,this);e&&e.r;)e=e.p},has:function(t){return!!v(this,t)}}),d&&i(h.prototype,"size",{get:function(){return l(this[g])}}),h},def:function(t,e,n){var i,r,o=v(t,e);return o?o.v=n:(t._l=o={i:r=p(e,!0),k:e,v:n,p:i=t._l,n:void 0,r:!1},t._f||(t._f=o),i&&(i.n=o),t[g]++,"F"!==r&&(t._i[r]=o)),t},getEntry:v,setStrong:function(t,e,n){c(t,e,function(t,e){this._t=t,this._k=e,this._l=void 0},function(){for(var t=this,e=t._k,n=t._l;n&&n.r;)n=n.p;return t._t&&(t._l=n=n?n.n:t._t._f)?"keys"==e?h(0,n.k):"values"==e?h(0,n.v):h(0,[n.k,n.v]):(t._t=void 0,h(1))},n?"entries":"values",!n,!0),f(e)}}},function(t,e,n){var i=n(46),r=n(95);t.exports=function(t){return function(){if(i(this)!=t)throw TypeError(t+"#toJSON isn't generic");return r(this)}}},function(t,e,n){"use strict";var i=n(37),r=n(29).getWeak,o=n(1),a=n(4),s=n(32),l=n(42),u=n(22),c=n(10),h=u(5),f=u(6),d=0,p=function(t){return t._l||(t._l=new g)},g=function(){this.a=[]},v=function(t,e){return h(t.a,function(t){return t[0]===e})};g.prototype={get:function(t){var e=v(this,t);if(e)return e[1]},has:function(t){return!!v(this,t)},set:function(t,e){var n=v(this,t);n?n[1]=e:this.a.push([t,e])},delete:function(t){var e=f(this.a,function(e){return e[0]===t});return~e&&this.a.splice(e,1),!!~e}},t.exports={getConstructor:function(t,e,n,o){var u=t(function(t,i){s(t,u,e,"_i"),t._i=d++,t._l=void 0,void 0!=i&&l(i,n,t[o],t)});return i(u.prototype,{delete:function(t){if(!a(t))return!1;var e=r(t);return e===!0?p(this).delete(t):e&&c(e,this._i)&&delete e[this._i]},has:function(t){if(!a(t))return!1;var e=r(t);return e===!0?p(this).has(t):e&&c(e,this._i)}}),u},def:function(t,e,n){var i=r(o(e),!0);return i===!0?p(t).set(e,n):i[t._i]=n,t},ufstore:p}},function(t,e,n){t.exports=!n(6)&&!n(3)(function(){return 7!=Object.defineProperty(n(63)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){var i=n(4),r=Math.floor;t.exports=function(t){return!i(t)&&isFinite(t)&&r(t)===t}},function(t,e,n){var i=n(1);t.exports=function(t,e,n,r){try{return r?e(i(n)[0],n[1]):e(n)}catch(e){var o=t.return;throw void 0!==o&&i(o.call(t)),e}}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e){t.exports=Math.log1p||function(t){return(t=+t)>-1e-8&&t<1e-8?t-t*t/2:Math.log(1+t)}},function(t,e,n){"use strict";var i=n(36),r=n(57),o=n(48),a=n(9),s=n(47),l=Object.assign;t.exports=!l||n(3)(function(){var t={},e={},n=Symbol(),i="abcdefghijklmnopqrst";return t[n]=7,i.split("").forEach(function(t){e[t]=t}),7!=l({},t)[n]||Object.keys(l({},e)).join("")!=i})?function(t,e){for(var n=a(t),l=arguments.length,u=1,c=r.f,h=o.f;l>u;)for(var f,d=s(arguments[u++]),p=c?i(d).concat(c(d)):i(d),g=p.length,v=0;g>v;)h.call(d,f=p[v++])&&(n[f]=d[f]);return n}:l},function(t,e,n){var i=n(7),r=n(1),o=n(36);t.exports=n(6)?Object.defineProperties:function(t,e){r(t);for(var n,a=o(e),s=a.length,l=0;s>l;)i.f(t,n=a[l++],e[n]);return t}},function(t,e,n){var i=n(15),r=n(35).f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(t){try{return r(t)}catch(t){return a.slice()}};t.exports.f=function(t){return a&&"[object Window]"==o.call(t)?s(t):r(i(t))}},function(t,e,n){var i=n(10),r=n(15),o=n(49)(!1),a=n(76)("IE_PROTO");t.exports=function(t,e){var n,s=r(t),l=0,u=[];for(n in s)n!=a&&i(s,n)&&u.push(n);for(;e.length>l;)i(s,n=e[l++])&&(~o(u,n)||u.push(n));return u}},function(t,e,n){var i=n(36),r=n(15),o=n(48).f;t.exports=function(t){return function(e){for(var n,a=r(e),s=i(a),l=s.length,u=0,c=[];l>u;)o.call(a,n=s[u++])&&c.push(t?[n,a[n]]:a[n]);return c}}},function(t,e,n){var i=n(35),r=n(57),o=n(1),a=n(2).Reflect;t.exports=a&&a.ownKeys||function(t){var e=i.f(o(t)),n=r.f;return n?e.concat(n(t)):e}},function(t,e,n){var i=n(2).parseFloat,r=n(45).trim;t.exports=1/i(n(81)+"-0")!==-(1/0)?function(t){var e=r(String(t),3),n=i(e);return 0===n&&"-"==e.charAt(0)?-0:n}:i},function(t,e,n){var i=n(2).parseInt,r=n(45).trim,o=n(81),a=/^[\-+]?0[xX]/;t.exports=8!==i(o+"08")||22!==i(o+"0x16")?function(t,e){var n=r(String(t),3);return i(n,e>>>0||(a.test(n)?16:10))}:i},function(t,e){t.exports=Object.is||function(t,e){return t===e?0!==t||1/t===1/e:t!=t&&e!=e}},function(t,e,n){var i=n(8),r=n(80),o=n(20);t.exports=function(t,e,n,a){var s=String(o(t)),l=s.length,u=void 0===n?" ":String(n),c=i(e);if(c<=l||""==u)return s;var h=c-l,f=r.call(u,Math.ceil(h/u.length));return f.length>h&&(f=f.slice(0,h)),a?f+s:s+f}},function(t,e,n){e.f=n(5)},function(t,e,n){"use strict";var i=n(98);t.exports=n(50)("Map",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{get:function(t){var e=i.getEntry(this,t);return e&&e.v},set:function(t,e){return i.def(this,0===t?0:t,e)}},i,!0)},function(t,e,n){n(6)&&"g"!=/./g.flags&&n(7).f(RegExp.prototype,"flags",{configurable:!0,get:n(52)})},function(t,e,n){"use strict";var i=n(98);t.exports=n(50)("Set",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{add:function(t){return i.def(this,t=0===t?0:t,t)}},i)},function(t,e,n){"use strict";var i,r=n(22)(0),o=n(13),a=n(29),s=n(106),l=n(100),u=n(4),c=a.getWeak,h=Object.isExtensible,f=l.ufstore,d={},p=function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},g={get:function(t){if(u(t)){var e=c(t);return e===!0?f(this).get(t):e?e[this._i]:void 0}},set:function(t,e){return l.def(this,t,e)}},v=t.exports=n(50)("WeakMap",p,g,l,!0,!0);7!=(new v).set((Object.freeze||Object)(d),7).get(d)&&(i=l.getConstructor(p),s(i.prototype,g),a.NEED=!0,r(["delete","has","get","set"],function(t){var e=v.prototype,n=e[t];o(e,t,function(e,r){if(u(e)&&!h(e)){this._f||(this._f=new i);var o=this._f[t](e,r);return"set"==t?this:o}return n.call(this,e,r)})}))},function(t,e){function n(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function r(t){if(c===setTimeout)return setTimeout(t,0);if((c===n||!c)&&setTimeout)return c=setTimeout,setTimeout(t,0);try{return c(t,0)}catch(e){try{return c.call(null,t,0)}catch(e){return c.call(this,t,0)}}}function o(t){if(h===clearTimeout)return clearTimeout(t);if((h===i||!h)&&clearTimeout)return h=clearTimeout,clearTimeout(t);try{return h(t)}catch(e){try{return h.call(null,t)}catch(e){return h.call(this,t)}}}function a(){g&&d&&(g=!1,d.length?p=d.concat(p):v=-1,p.length&&s())}function s(){if(!g){var t=r(a);g=!0;for(var e=p.length;e;){for(d=p,p=[];++v1)for(var n=1;ne.get("hoverLayerThreshold")&&!w.node&&n.traverse(function(t){t.isGroup||(t.useHoverLayer=!0)})}function x(t,e){var n=0;e.group.traverse(function(t){"group"===t.type||t.ignore||n++});var i=+t.get("progressive"),r=n>t.get("progressiveThreshold")&&i&&!w.node;r&&e.group.traverse(function(t){t.isGroup||(t.progressive=r?Math.floor(n++/i):-1,r&&t.stopAnimation(!0))});var o=t.get("blendMode")||null;__DEV__&&!w.canvasSupported&&o&&"source-over"!==o,e.group.traverse(function(t){t.isGroup||t.setStyle("blend",o)})}function _(t,e){var n=t.get("z"),i=t.get("zlevel");e.group.traverse(function(t){"group"!==t.type&&(null!=n&&(t.z=n),null!=i&&(t.zlevel=i))})}function b(t){function e(t,e){for(var n=0;n=0&&R.each(t,function(t){var r=t.coordinateSystem;if(r&&r.containPoint)n|=!!r.containPoint(e);else if("seriesModels"===i){var o=this._chartsMap[t.__viewId];o&&o.containPoint?n|=o.containPoint(e,t):__DEV__}else __DEV__},this)},this),!!n},K.getVisual=function(t,e){var n=this._model;t=P.parseFinder(n,t,{defaultMainType:"series"});var i=t.seriesModel;__DEV__;var r=i.getData(),o=t.hasOwnProperty("dataIndexInside")?t.dataIndexInside:t.hasOwnProperty("dataIndex")?r.indexOfRawIndex(t.dataIndex):null;return null!=o?r.getItemVisual(o,e):r.getVisual(e)};var Q={update:function(t){var e=this._model,n=this._api,i=this._coordSysMgr,r=this._zr;if(e){e.restoreData(),i.create(this._model,this._api),d.call(this,e,n),p.call(this,e),i.update(e,n),v.call(this,e,t),m.call(this,e,t);var o=e.get("backgroundColor")||"transparent",a=r.painter;if(a.isSingleCanvas&&a.isSingleCanvas())r.configLayer(0,{clearColor:o});else{if(!w.canvasSupported){var s=N.parse(o);o=N.stringify(s,"rgb"),0===s[3]&&(o="transparent")}o.colorStops||o.image?(r.configLayer(0,{clearColor:o}),this[X]=!0,this._dom.style.background="transparent"):(this[X]&&r.configLayer(0,{clearColor:null}),this[X]=!1,this._dom.style.background=o)}}},updateView:function(t){var e=this._model;e&&(e.eachSeries(function(t){t.getData().clearAllVisual()}),v.call(this,e,t),h.call(this,"updateView",e,t))},updateVisual:function(t){var e=this._model;e&&(e.eachSeries(function(t){t.getData().clearAllVisual()}),v.call(this,e,t,!0),h.call(this,"updateVisual",e,t))},updateLayout:function(t){var e=this._model;e&&(g.call(this,e,t),h.call(this,"updateLayout",e,t))},prepareAndUpdate:function(t){var e=this._model;f.call(this,"component",e),f.call(this,"chart",e),this.__lastOnlyGraphic?(B(this._componentsViews,function(n){var i=n.__model;i&&"graphic"===i.mainType&&(n.render(i,e,this._api,t),_(i,n))},this),this.__lastOnlyGraphic=!1):Q.update.call(this,t)}};K.resize=function(t){__DEV__&&R.assert(!this[Z],"`resize` should not be called during main process."),this[Z]=!0,this._zr.resize(t),Q[this._model&&this._model.resetOption("media")?"prepareAndUpdate":"update"].call(this),this._loadingFX&&this._loadingFX.resize(),this[Z]=!1;var e=t&&t.silent;u.call(this,e),c.call(this,e)},K.showLoading=function(t,e){if(R.isObject(t)&&(e=t,t=""),t=t||"default",this.hideLoading(),!st[t])return void __DEV__;var n=st[t](this._api,e),i=this._zr;this._loadingFX=n,i.add(n)},K.hideLoading=function(){this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},K.makeActionFromEvent=function(t){var e=R.extend({},t);return e.type=nt[t.type],e},K.dispatchAction=function(t,e){if(R.isObject(e)||(e={silent:!!e}),et[t.type]){if(this[Z])return void this._pendingActions.push(t);l.call(this,t,e.silent),e.flush?this._zr.flush(!0):e.flush!==!1&&w.browser.weChat&&this._throttledZrFlush(),u.call(this,e.silent),c.call(this,e.silent)}},K.on=i("on"),K.off=i("off"),K.one=i("one");var tt=["click","dblclick","mouseover","mouseout","mousemove","mousedown","mouseup","globalout","contextmenu"];K._initEvents=function(){B(tt,function(t){this._zr.on(t,function(e){var n,i=this.getModel(),r=e.target;if("globalout"===t)n={};else if(r&&null!=r.dataIndex){var o=r.dataModel||i.getSeriesByIndex(r.seriesIndex);n=o&&o.getDataParams(r.dataIndex,r.dataType)||{}}else r&&r.eventData&&(n=R.extend({},r.eventData));n&&(n.event=e,n.type=t,this.trigger(t,n))},this)},this),B(nt,function(t,e){this._messageCenter.on(e,function(t){this.trigger(e,t)},this)},this)},K.isDisposed=function(){return this._disposed},K.clear=function(){this.setOption({series:[]},!0)},K.dispose=function(){if(this._disposed)return void __DEV__;this._disposed=!0;var t=this._api,e=this._model;B(this._componentsViews,function(n){n.dispose(e,t)}),B(this._chartsViews,function(n){n.dispose(e,t)}),this._zr.dispose(),delete lt[this.id]},R.mixin(o,z);var et=[],nt={},it=[],rt=[],ot=[],at={},st={},lt={},ut={},ct=new Date-0,ht=new Date-0,ft="_echarts_instance_",dt={version:"3.4.0",dependencies:{zrender:"3.3.0"}};dt.init=function(t,e,n){if(__DEV__){if(O.version.replace(".","")-00?e.animateTo(n,s,u||0,l,o):(e.attr(n),o&&o())}else e.attr(n),o&&o()}var v=n(1),m=n(409),y=Math.round,x=n(15),_=n(21),b=n(20),w=n(5),S={};S.Group=n(53),S.Image=n(76),S.Text=n(130),S.Circle=n(400),S.Sector=n(406),S.Ring=n(405),S.Polygon=n(402),S.Polyline=n(403),S.Rect=n(404),S.Line=n(401),S.BezierCurve=n(399),S.Arc=n(398),S.CompoundPath=n(393),S.LinearGradient=n(127),S.RadialGradient=n(394),S.BoundingRect=n(9),S.extendShape=function(t){return x.extend(t)},S.extendPath=function(t,e){return m.extendFromString(t,e)},S.makePath=function(t,e,n,i){var r=m.createFromString(t,e),o=r.getBoundingRect();if(n){var a=o.width/o.height;if("center"===i){var s,l=n.height*a;l<=n.width?s=n.height:(l=n.width,s=l/a);var u=n.x+n.width/2,c=n.y+n.height/2;n.x=u-l/2,n.y=c-s/2,n.width=l,n.height=s}S.resizePath(r,n)}return r},S.mergePath=m.mergePath,S.resizePath=function(t,e){if(t.applyTransform){var n=t.getBoundingRect(),i=n.calculateTransform(e);t.applyTransform(i)}},S.subPixelOptimizeLine=function(t){var e=S.subPixelOptimize,n=t.shape,i=t.style.lineWidth;return y(2*n.x1)===y(2*n.x2)&&(n.x1=n.x2=e(n.x1,i,!0)),y(2*n.y1)===y(2*n.y2)&&(n.y1=n.y2=e(n.y1,i,!0)),t},S.subPixelOptimizeRect=function(t){var e=S.subPixelOptimize,n=t.shape,i=t.style.lineWidth,r=n.x,o=n.y,a=n.width,s=n.height;return n.x=e(n.x,i,!0),n.y=e(n.y,i,!0),n.width=Math.max(e(r+a,i,!1)-n.x,0===a?0:1),n.height=Math.max(e(o+s,i,!1)-n.y,0===s?0:1),t},S.subPixelOptimize=function(t,e,n){var i=y(2*t);return(i+y(e))%2===0?i/2:(i+(n?1:-1))/2},S.setHoverStyle=function(t,e,n){t.__hoverSilentOnTouch=n&&n.hoverSilentOnTouch,"group"===t.type?t.traverse(function(t){"group"!==t.type&&c(t,e)}):c(t,e),t.on("mouseover",h).on("mouseout",f),t.on("emphasis",d).on("normal",p)},S.setText=function(t,e,n){var i=e.getShallow("position")||"inside",r=e.getShallow("offset"),o=i.indexOf("inside")>=0?"white":n,a=e.getModel("textStyle");v.extend(t,{textDistance:e.getShallow("distance")||5,textFont:a.getFont(),textPosition:i,textOffset:r,textFill:a.getTextColor()||o})},S.updateProps=function(t,e,n,i,r){g(!0,t,e,n,i,r)},S.initProps=function(t,e,n,i,r){g(!1,t,e,n,i,r)},S.getTransform=function(t,e){for(var n=b.identity([]);t&&t!==e;)b.mul(n,t.getLocalTransform(),n),t=t.parent;return n},S.applyTransform=function(t,e,n){return n&&(e=b.invert([],e)),w.applyTransform([],t,e)},S.transformDirection=function(t,e,n){var i=0===e[4]||0===e[5]||0===e[0]?1:Math.abs(2*e[4]/e[0]),r=0===e[4]||0===e[5]||0===e[2]?1:Math.abs(2*e[4]/e[2]),o=["left"===t?-i:"right"===t?i:0,"top"===t?-r:"bottom"===t?r:0];return o=S.applyTransform(o,e,n),Math.abs(o[0])>Math.abs(o[1])?o[0]>0?"right":"left":o[1]>0?"bottom":"top"},S.groupTransition=function(t,e,n,i){function r(t){var e={};return t.traverse(function(t){!t.isGroup&&t.anid&&(e[t.anid]=t)}),e}function o(t){var e={position:w.clone(t.position),rotation:t.rotation};return t.shape&&(e.shape=v.extend({},t.shape)),e}if(t&&e){var a=r(t);e.traverse(function(t){if(!t.isGroup&&t.anid){var e=a[t.anid];if(e){var i=o(t);t.attr(o(e)),S.updateProps(t,i,n,t.dataIndex)}}})}},t.exports=S},function(t,e){function n(t){return t.replace(/^\s+/,"").replace(/\s+$/,"")}var i={},r=1e-4;i.linearMap=function(t,e,n,i){var r=e[1]-e[0],o=n[1]-n[0];if(0===r)return 0===o?n[0]:(n[0]+n[1])/2;if(i)if(r>0){if(t<=e[0])return n[0];if(t>=e[1])return n[1]}else{if(t>=e[0])return n[0];if(t<=e[1])return n[1]}else{if(t===e[0])return n[0];if(t===e[1])return n[1]}return(t-e[0])/r*o+n[0]},i.parsePercent=function(t,e){switch(t){case"center":case"middle":t="50%";break;case"left":case"top":t="0%";break;case"right":case"bottom":t="100%"}return"string"==typeof t?n(t).match(/%$/)?parseFloat(t)/100*e:parseFloat(t):null==t?NaN:+t},i.round=function(t,e){return null==e&&(e=10),e=Math.min(Math.max(0,e),20),+(+t).toFixed(e)},i.asc=function(t){return t.sort(function(t,e){return t-e}),t},i.getPrecision=function(t){if(t=+t,isNaN(t))return 0;for(var e=1,n=0;Math.round(t*e)/e!==t;)e*=10,n++;return n},i.getPrecisionSafe=function(t){var e=t.toString(),n=e.indexOf(".");return n<0?0:e.length-1-n},i.getPixelPrecision=function(t,e){var n=Math.log,i=Math.LN10,r=Math.floor(n(t[1]-t[0])/i),o=Math.round(n(Math.abs(e[1]-e[0]))/i),a=Math.min(Math.max(-r+o,0),20);return isFinite(a)?a:20},i.MAX_SAFE_INTEGER=9007199254740991,i.remRadian=function(t){var e=2*Math.PI;return(t%e+e)%e},i.isRadianAroundZero=function(t){return t>-1e-4&&t=0},t.exports=i},function(t,e){var n="undefined"==typeof Float32Array?Array:Float32Array,i={create:function(t,e){var i=new n(2);return null==t&&(t=0),null==e&&(e=0),i[0]=t,i[1]=e,i},copy:function(t,e){return t[0]=e[0],t[1]=e[1],t},clone:function(t){var e=new n(2);return e[0]=t[0],e[1]=t[1],e},set:function(t,e,n){return t[0]=e,t[1]=n,t},add:function(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t},scaleAndAdd:function(t,e,n,i){return t[0]=e[0]+n[0]*i,t[1]=e[1]+n[1]*i,t},sub:function(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t},len:function(t){return Math.sqrt(this.lenSquare(t))},lenSquare:function(t){return t[0]*t[0]+t[1]*t[1]},mul:function(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t},div:function(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t},dot:function(t,e){return t[0]*e[0]+t[1]*e[1]},scale:function(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t},normalize:function(t,e){var n=i.len(e);return 0===n?(t[0]=0,t[1]=0):(t[0]=e[0]/n,t[1]=e[1]/n),t},distance:function(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))},distanceSquare:function(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])},negate:function(t,e){return t[0]=-e[0],t[1]=-e[1],t},lerp:function(t,e,n,i){return t[0]=e[0]+i*(n[0]-e[0]),t[1]=e[1]+i*(n[1]-e[1]),t},applyTransform:function(t,e,n){var i=e[0],r=e[1];return t[0]=n[0]*i+n[2]*r+n[4],t[1]=n[1]*i+n[3]*r+n[5],t},min:function(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t},max:function(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}};i.length=i.len,i.lengthSquare=i.lenSquare,i.dist=i.distance,i.distSquare=i.distanceSquare,t.exports=i},function(t,e,n){var i=n(1),r=n(4),o=n(25),a={};a.addCommas=function(t){return isNaN(t)?"-":(t=(t+"").split("."),t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:""))},a.toCamelCase=function(t,e){return t=(t||"").toLowerCase().replace(/-(.)/g,function(t,e){return e.toUpperCase()}),e&&t&&(t=t.charAt(0).toUpperCase()+t.slice(1)),t},a.normalizeCssArray=function(t){var e=t.length;return"number"==typeof t?[t,t,t,t]:2===e?[t[0],t[1],t[0],t[1]]:3===e?[t[0],t[1],t[2],t[1]]:t};var s=a.encodeHTML=function(t){return String(t).replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")},l=["a","b","c","d","e","f","g"],u=function(t,e){return"{"+t+(null==e?"":e)+"}"};a.formatTpl=function(t,e,n){i.isArray(e)||(e=[e]);var r=e.length;if(!r)return"";for(var o=e[0].$vars||[],a=0;a=n.length&&n.push({option:t})}}),n},c.makeIdAndName=function(t){var e={};l(t,function(t,n){var i=t.exist;i&&(e[i.id]=t)}),l(t,function(t,n){var i=t.option;s.assert(!i||null==i.id||!e[i.id]||e[i.id]===t,"id duplicates: "+(i&&i.id)),i&&null!=i.id&&(e[i.id]=t),!t.keyInfo&&(t.keyInfo={})}),l(t,function(t,n){var i=t.exist,r=t.option,o=t.keyInfo;if(u(r)){if(o.name=null!=r.name?r.name+"":i?i.name:"\0-",i)o.id=i.id;else if(null!=r.id)o.id=r.id+"";else{var a=0;do o.id="\0"+o.name+"\0"+a++;while(e[o.id])}e[o.id]=t}})},c.isIdInner=function(t){return u(t)&&t.id&&0===(t.id+"").indexOf("\0_ec_\0")},c.compressBatches=function(t,e){function n(t,e,n){for(var i=0,r=t.length;ii||l.newline?(o=0,c=v,a+=s+n,s=d.height):s=Math.max(s,d.height)}else{var m=d.height+(g?-g.y+d.y:0);h=a+m,h>r||l.newline?(o+=s+n,a=0,h=m,s=d.width):s=Math.max(s,d.width)}l.newline||(f[0]=o,f[1]=a,"horizontal"===t?o=c+n:a=h+n)})}var r=n(1),o=n(9),a=n(4),s=n(6),l=a.parsePercent,u=r.each,c={},h=c.LOCATION_PARAMS=["left","right","top","bottom","width","height"];c.box=i,c.vbox=r.curry(i,"vertical"),c.hbox=r.curry(i,"horizontal"),c.getAvailableSize=function(t,e,n){var i=e.width,r=e.height,o=l(t.x,i),a=l(t.y,r),u=l(t.x2,i),c=l(t.y2,r);return(isNaN(o)||isNaN(parseFloat(t.x)))&&(o=0),(isNaN(u)||isNaN(parseFloat(t.x2)))&&(u=i),(isNaN(a)||isNaN(parseFloat(t.y)))&&(a=0),(isNaN(c)||isNaN(parseFloat(t.y2)))&&(c=r),n=s.normalizeCssArray(n||0),{width:Math.max(u-o-n[1]-n[3],0),height:Math.max(c-a-n[0]-n[2],0)}},c.getLayoutRect=function(t,e,n){n=s.normalizeCssArray(n||0);var i=e.width,r=e.height,a=l(t.left,i),u=l(t.top,r),c=l(t.right,i),h=l(t.bottom,r),f=l(t.width,i),d=l(t.height,r),p=n[2]+n[0],g=n[1]+n[3],v=t.aspect;switch(isNaN(f)&&(f=i-c-g-a),isNaN(d)&&(d=r-h-p-u),isNaN(f)&&isNaN(d)&&(v>i/r?f=.8*i:d=.8*r),null!=v&&(isNaN(f)&&(f=v*d),isNaN(d)&&(d=f/v)),isNaN(a)&&(a=i-c-f-g),isNaN(u)&&(u=r-h-d-p),t.left||t.right){case"center":a=i/2-f/2-n[3];break;case"right":a=i-f-g}switch(t.top||t.bottom){case"middle":case"center":u=r/2-d/2-n[0];break;case"bottom":u=r-d-p}a=a||0,u=u||0,isNaN(f)&&(f=i-a-(c||0)),isNaN(d)&&(d=r-u-(h||0));var m=new o(a+n[3],u+n[0],f,d);return m.margin=n,m},c.positionElement=function(t,e,n,i,a){var s=!a||!a.hv||a.hv[0],l=!a||!a.hv||a.hv[1],u=a&&a.boundingMode||"all";if(s||l){var h;if("raw"===u)h="group"===t.type?new o(0,0,+e.width||0,+e.height||0):t.getBoundingRect();else if(h=t.getBoundingRect(),t.needLocalTransform()){var f=t.getLocalTransform();h=h.clone(),h.applyTransform(f)}e=c.getLayoutRect(r.defaults({width:h.width,height:h.height},e),n,i);var d=t.position,p=s?e.x-h.x:0,g=l?e.y-h.y:0;t.attr("position","raw"===u?[p,g]:[d[0]+p,d[1]+g])}},c.mergeLayoutParam=function(t,e,n){function i(i){var r={},s=0,l={},c=0,h=n.ignoreSize?1:2;if(u(i,function(e){l[e]=t[e]}),u(i,function(t){o(e,t)&&(r[t]=l[t]=e[t]),a(r,t)&&s++,a(l,t)&&c++}),c!==h&&s){if(s>=h)return r;for(var f=0;f=n.x&&t<=n.x+n.width&&e>=n.y&&e<=n.y+n.height},clone:function(){return new i(this.x,this.y,this.width,this.height)},copy:function(t){this.x=t.x,this.y=t.y,this.width=t.width,this.height=t.height},plain:function(){return{x:this.x,y:this.y,width:this.width,height:this.height}}},i.create=function(t){return new i(t.x,t.y,t.width,t.height)},t.exports=i},function(t,e,n){(function(e){function i(t){return f.isArray(t)||(t=[t]),t}function r(t,e){var n=t.dimensions,i=new m(f.map(n,t.getDimensionInfo,t),t.hostModel);v(i,t);for(var r=i._storage={},o=t._storage,a=0;a=0?r[s]=new l.constructor(o[s].length):r[s]=o[s]}return i}var o="undefined",a="undefined"==typeof window?e:window,s=typeof a.Float64Array===o?Array:a.Float64Array,l=typeof a.Int32Array===o?Array:a.Int32Array,u={float:s,int:l,ordinal:Array,number:Array,time:Array},c=n(11),h=n(40),f=n(1),d=n(7),p=f.isObject,g=["stackedOn","hasItemOption","_nameList","_idList","_rawData"],v=function(t,e){f.each(g.concat(e.__wrappedMethods||[]),function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t.__wrappedMethods=e.__wrappedMethods},m=function(t,e){t=t||["x","y"];for(var n={},i=[],r=0;r0&&(w+="__ec__"+c[b]),c[b]++),w&&(l[h]=w)}this._nameList=e,this._idList=l},y.count=function(){return this.indices.length},y.get=function(t,e,n){var i=this._storage,r=this.indices[e];if(null==r)return NaN;var o=i[t]&&i[t][r];if(n){var a=this._dimensionInfos[t];if(a&&a.stackable)for(var s=this.stackedOn;s;){var l=s.get(t,e);(o>=0&&l>0||o<=0&&l<0)&&(o+=l),s=s.stackedOn}}return o},y.getValues=function(t,e,n){var i=[];f.isArray(t)||(n=e,e=t,t=this.dimensions);for(var r=0,o=t.length;rl&&(l=o));return this._extent[t+!!e]=[s,l]}return[1/0,-(1/0)]},y.getSum=function(t,e){var n=this._storage[t],i=0;if(n)for(var r=0,o=this.count();rt))return o;r=o-1}}return-1},y.indexOfNearest=function(t,e,n,i){var r=this._storage,o=r[t];null==i&&(i=1/0);var a=-1;if(o)for(var s=Number.MAX_VALUE,l=0,u=this.count();l0)&&(s=h,a=l)}return a},y.getRawIndex=function(t){var e=this.indices[t];return null==e?-1:e},y.getRawDataItem=function(t){return this._rawData[this.getRawIndex(t)]},y.getName=function(t){return this._nameList[this.indices[t]]||""},y.getId=function(t){return this._idList[this.indices[t]]||this.getRawIndex(t)+""},y.each=function(t,e,n,r){"function"==typeof t&&(r=n,n=e,e=t,t=[]),t=f.map(i(t),this.getDimension,this);var o=[],a=t.length,s=this.indices;r=r||this;for(var l=0;lp-g&&(f=p-g,c.length=f);for(var v=0;v=0;r--)i=o.merge(i,t[r],!0);l.set(this,"__defaultOption",i)}return l.get(this,"__defaultOption")},getReferringComponents:function(t){return this.ecModel.queryComponents({mainType:t,index:this.get(t+"Index",!0),id:this.get(t+"Id",!0)})}});l.enableClassManagement(c,{registerWhenExtend:!0}),s.enableSubTypeDefaulter(c),s.enableTopologicalTravel(c,i),o.mixin(c,n(356)),t.exports=c},function(t,e,n){"use strict";var i=n(1),r=n(6),o=n(23),a=n(7),s=n(12),l=n(112),u=n(14),c=n(8),h=o.set,f=o.get,d=r.encodeHTML,p=r.addCommas,g=s.extend({type:"series.__base__",seriesIndex:0,coordinateSystem:null,defaultOption:null,legendDataProvider:null,visualColorAccessPath:"itemStyle.normal.color",layoutMode:null,init:function(t,e,n,i){this.seriesIndex=this.componentIndex,this.mergeDefaultAndTheme(t,n),h(this,"dataBeforeProcessed",this.getInitialData(t,n)),this.restoreData()},mergeDefaultAndTheme:function(t,e){var n=this.layoutMode,r=n?c.getLayoutParams(t):{};i.merge(t,e.getTheme().get(this.subType)),i.merge(t,this.getDefaultOption()),a.defaultEmphasis(t.label,a.LABEL_OPTIONS),this.fillDataTextStyle(t.data),n&&c.mergeLayoutParam(t,r,n)},mergeOption:function(t,e){t=i.merge(this.option,t,!0),this.fillDataTextStyle(t.data);var n=this.layoutMode;n&&c.mergeLayoutParam(this.option,t,n);var r=this.getInitialData(t,e);r&&(h(this,"data",r),h(this,"dataBeforeProcessed",r.cloneShallow()))},fillDataTextStyle:function(t){if(t)for(var e=0;e',g=this.name;return"\0-"===g&&(g=""),e?h+d(this.name)+" : "+l:(g&&d(g)+"
")+h+(u?d(u)+" : "+l:l)},isAnimationEnabled:function(){if(u.node)return!1;var t=this.getShallow("animation");return t&&this.getData().count()>this.getShallow("animationThreshold")&&(t=!1),t},restoreData:function(){h(this,"data",f(this,"dataBeforeProcessed").cloneShallow())},getColorFromPalette:function(t,e){var n=this.ecModel,i=l.getColorFromPalette.call(this,t,e);return i||(i=n.getColorFromPalette(t,e)),i},getAxisTooltipDataIndex:null,getTooltipPosition:null});i.mixin(g,a.dataFormatMixin),i.mixin(g,l),t.exports=g},function(t,e){function n(t){var e={},n={},i=t.match(/Firefox\/([\d.]+)/),r=t.match(/MSIE\s([\d.]+)/)||t.match(/Trident\/.+?rv:(([\d.]+))/),o=t.match(/Edge\/([\d.]+)/),a=/micromessenger/i.test(t); return i&&(n.firefox=!0,n.version=i[1]),r&&(n.ie=!0,n.version=r[1]),o&&(n.edge=!0,n.version=o[1]),a&&(n.weChat=!0),{browser:n,os:e,node:!1,canvasSupported:!!document.createElement("canvas").getContext,touchEventsSupported:"ontouchstart"in window&&!n.ie&&!n.edge,pointerEventsSupported:"onpointerdown"in window&&(n.edge||n.ie&&n.version>=11)}}var i={};i="undefined"==typeof navigator?{browser:{},os:{},node:!0,canvasSupported:!0}:n(navigator.userAgent),t.exports=i},function(t,e,n){function i(t){r.call(this,t),this.path=new a}var r=n(54),o=n(1),a=n(42),s=n(389),l=n(128),u=l.prototype.getCanvasPattern,c=Math.abs;i.prototype={constructor:i,type:"path",__dirtyPath:!0,strokeContainThreshold:5,brush:function(t,e){var n=this.style,i=this.path,r=n.hasStroke(),o=n.hasFill(),a=n.fill,s=n.stroke,l=o&&!!a.colorStops,c=r&&!!s.colorStops,h=o&&!!a.image,f=r&&!!s.image;if(n.bind(t,this,e),this.setTransform(t),this.__dirty){var d=this.getBoundingRect();l&&(this._fillGradient=n.getGradient(t,a,d)),c&&(this._strokeGradient=n.getGradient(t,s,d))}l?t.fillStyle=this._fillGradient:h&&(t.fillStyle=u.call(a,t)),c?t.strokeStyle=this._strokeGradient:f&&(t.strokeStyle=u.call(s,t));var p=n.lineDash,g=n.lineDashOffset,v=!!t.setLineDash,m=this.getGlobalScale();i.setScale(m[0],m[1]),this.__dirtyPath||p&&!v&&r?(i=this.path.beginPath(t),p&&!v&&(i.setLineDash(p),i.setLineDashOffset(g)),this.buildPath(i,this.shape,!1),this.__dirtyPath=!1):(t.beginPath(),this.path.rebuildPath(t)),o&&i.fill(t),p&&v&&(t.setLineDash(p),t.lineDashOffset=g),r&&i.stroke(t),p&&v&&t.setLineDash([]),this.restoreTransform(t),null!=n.text&&this.drawRectText(t,this.getBoundingRect())},buildPath:function(t,e,n){},getBoundingRect:function(){var t=this._rect,e=this.style,n=!t;if(n){var i=this.path;this.__dirtyPath&&(i.beginPath(),this.buildPath(i,this.shape,!1)),t=i.getBoundingRect()}if(this._rect=t,e.hasStroke()){var r=this._rectWithStroke||(this._rectWithStroke=t.clone());if(this.__dirty||n){r.copy(t);var o=e.lineWidth,a=e.strokeNoScale?this.getLineScale():1;e.hasFill()||(o=Math.max(o,this.strokeContainThreshold||4)),a>1e-10&&(r.width+=o/a,r.height+=o/a,r.x-=o/a/2,r.y-=o/a/2)}return r}return t},contain:function(t,e){var n=this.transformCoordToLocal(t,e),i=this.getBoundingRect(),r=this.style;if(t=n[0],e=n[1],i.contain(t,e)){var o=this.path.data;if(r.hasStroke()){var a=r.lineWidth,l=r.strokeNoScale?this.getLineScale():1;if(l>1e-10&&(r.hasFill()||(a=Math.max(a,this.strokeContainThreshold)),s.containStroke(o,a/l,t,e)))return!0}if(r.hasFill())return s.contain(o,t,e)}return!1},dirty:function(t){null==t&&(t=!0),t&&(this.__dirtyPath=t,this._rect=null),this.__dirty=!0,this.__zr&&this.__zr.refresh(),this.__clipTarget&&this.__clipTarget.dirty()},animateShape:function(t){return this.animate("shape",t)},attrKV:function(t,e){"shape"===t?(this.setShape(e),this.__dirtyPath=!0,this._rect=null):r.prototype.attrKV.call(this,t,e)},setShape:function(t,e){var n=this.shape;if(n){if(o.isObject(t))for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);else n[t]=e;this.dirty(!0)}return this},getLineScale:function(){var t=this.transform;return t&&c(t[0]-1)>1e-10&&c(t[3]-1)>1e-10?Math.sqrt(c(t[0]*t[3]-t[2]*t[1])):1}},i.extend=function(t){var e=function(e){i.call(this,e),t.style&&this.style.extendFrom(t.style,!1);var n=t.shape;if(n){this.shape=this.shape||{};var r=this.shape;for(var o in n)!r.hasOwnProperty(o)&&n.hasOwnProperty(o)&&(r[o]=n[o])}t.init&&t.init.call(this,e)};o.inherits(e,i);for(var n in t)"style"!==n&&"shape"!==n&&(e.prototype[n]=t[n]);return e},o.inherits(i,r),t.exports=i},function(t,e,n){var i=n(364),r=n(48);n(365),n(363);var o=n(49),a=n(4),s=n(1),l=n(25),u={};u.getScaleExtent=function(t,e){var n,i,r,o=t.scale,l=o.type,u=e.getMin(),c=e.getMax(),h=null!=u,f=null!=c,d=o.getExtent();return"ordinal"===l?n=(e.get("data")||[]).length:(i=e.get("boundaryGap"),s.isArray(i)||(i=[i||0,i||0]),i[0]=a.parsePercent(i[0],1),i[1]=a.parsePercent(i[1],1),r=d[1]-d[0]),null==u&&(u="ordinal"===l?n?0:NaN:d[0]-i[0]*r),null==c&&(c="ordinal"===l?n?n-1:NaN:d[1]+i[1]*r),"dataMin"===u&&(u=d[0]),"dataMax"===c&&(c=d[1]),(null==u||!isFinite(u))&&(u=NaN),(null==c||!isFinite(c))&&(c=NaN),t.setBlank(s.eqNaN(u)||s.eqNaN(c)),e.getNeedCrossZero()&&(u>0&&c>0&&!h&&(u=0),u<0&&c<0&&!f&&(c=0)),[u,c]},u.niceScaleExtent=function(t,e){var n=t.scale,i=u.getScaleExtent(t,e),r=null!=e.getMin(),o=null!=e.getMax(),a=e.get("splitNumber");"log"===n.type&&(n.base=e.get("logBase")),n.setExtent(i[0],i[1]),n.niceExtent(a,r,o);var s=e.get("minInterval");if(isFinite(s)&&!r&&!o&&"interval"===n.type){var l=n.getInterval(),c=Math.max(Math.abs(l),s)/l;i=n.getExtent();var h=(i[1]+i[0])/2;n.setExtent(c*(i[0]-h)+h,c*(i[1]-h)+h),n.niceExtent(a)}var l=e.get("interval");null!=l&&n.setInterval&&n.setInterval(l)},u.createScaleByModel=function(t,e){if(e=e||t.get("type"))switch(e){case"category":return new i(t.getCategories(),[1/0,-(1/0)]);case"value":return new r;default:return(o.getClass(e)||r).create(t)}},u.ifAxisCrossZero=function(t){var e=t.scale.getExtent(),n=e[0],i=e[1];return!(n>0&&i>0||n<0&&i<0)},u.getAxisLabelInterval=function(t,e,n,i){var r,o=0,a=0,s=1;e.length>40&&(s=Math.floor(e.length/40));for(var u=0;u1?s:(o+1)*s-1},u.getFormattedLabels=function(t,e){var n=t.scale,i=n.getTicksLabels(),r=n.getTicks();return"string"==typeof e?(e=function(t){return function(e){return t.replace("{value}",null!=e?e:"")}}(e),s.map(i,e)):"function"==typeof e?s.map(r,function(i,r){return e("category"===t.type?n.getLabel(i):i,r)},this):i},t.exports=u},function(t,e,n){function i(t,e,n,i){if(!e)return t;var s=r(e[0]),l=o.isArray(s)&&s.length||1;n=n||[],i=i||"extra";for(var u=0;u255?255:t}function i(t){return t=Math.round(t),t<0?0:t>360?360:t}function r(t){return t<0?0:t>1?1:t}function o(t){return n(t.length&&"%"===t.charAt(t.length-1)?parseFloat(t)/100*255:parseInt(t,10))}function a(t){return r(t.length&&"%"===t.charAt(t.length-1)?parseFloat(t)/100:parseFloat(t))}function s(t,e,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?t+(e-t)*n*6:2*n<1?e:3*n<2?t+(e-t)*(2/3-n)*6:t}function l(t,e,n){return t+(e-t)*n}function u(t){if(t){t+="";var e=t.replace(/ /g,"").toLowerCase();if(e in x)return x[e].slice();if("#"!==e.charAt(0)){var n=e.indexOf("("),i=e.indexOf(")");if(n!==-1&&i+1===e.length){var r=e.substr(0,n),s=e.substr(n+1,i-(n+1)).split(","),l=1;switch(r){case"rgba":if(4!==s.length)return;l=a(s.pop());case"rgb":if(3!==s.length)return;return[o(s[0]),o(s[1]),o(s[2]),l];case"hsla":if(4!==s.length)return;return s[3]=a(s[3]),c(s);case"hsl":if(3!==s.length)return;return c(s);default:return}}}else{if(4===e.length){var u=parseInt(e.substr(1),16);if(!(u>=0&&u<=4095))return;return[(3840&u)>>4|(3840&u)>>8,240&u|(240&u)>>4,15&u|(15&u)<<4,1]}if(7===e.length){var u=parseInt(e.substr(1),16);if(!(u>=0&&u<=16777215))return;return[(16711680&u)>>16,(65280&u)>>8,255&u,1]}}}}function c(t){var e=(parseFloat(t[0])%360+360)%360/360,i=a(t[1]),r=a(t[2]),o=r<=.5?r*(i+1):r+i-r*i,l=2*r-o,u=[n(255*s(l,o,e+1/3)),n(255*s(l,o,e)),n(255*s(l,o,e-1/3))];return 4===t.length&&(u[3]=t[3]),u}function h(t){if(t){var e,n,i=t[0]/255,r=t[1]/255,o=t[2]/255,a=Math.min(i,r,o),s=Math.max(i,r,o),l=s-a,u=(s+a)/2;if(0===l)e=0,n=0;else{n=u<.5?l/(s+a):l/(2-s-a);var c=((s-i)/6+l/2)/l,h=((s-r)/6+l/2)/l,f=((s-o)/6+l/2)/l;i===s?e=f-h:r===s?e=1/3+c-f:o===s&&(e=2/3+h-c),e<0&&(e+=1),e>1&&(e-=1)}var d=[360*e,n,u];return null!=t[3]&&d.push(t[3]),d}}function f(t,e){var n=u(t);if(n){for(var i=0;i<3;i++)e<0?n[i]=n[i]*(1-e)|0:n[i]=(255-n[i])*e+n[i]|0;return y(n,4===n.length?"rgba":"rgb")}}function d(t,e){var n=u(t);if(n)return((1<<24)+(n[0]<<16)+(n[1]<<8)+ +n[2]).toString(16).slice(1)}function p(t,e,i){if(e&&e.length&&t>=0&&t<=1){i=i||[0,0,0,0];var r=t*(e.length-1),o=Math.floor(r),a=Math.ceil(r),s=e[o],u=e[a],c=r-o;return i[0]=n(l(s[0],u[0],c)),i[1]=n(l(s[1],u[1],c)),i[2]=n(l(s[2],u[2],c)),i[3]=n(l(s[3],u[3],c)),i}}function g(t,e,i){if(e&&e.length&&t>=0&&t<=1){var o=t*(e.length-1),a=Math.floor(o),s=Math.ceil(o),c=u(e[a]),h=u(e[s]),f=o-a,d=y([n(l(c[0],h[0],f)),n(l(c[1],h[1],f)),n(l(c[2],h[2],f)),r(l(c[3],h[3],f))],"rgba");return i?{color:d,leftIndex:a,rightIndex:s,value:o}:d}}function v(t,e,n,r){if(t=u(t))return t=h(t),null!=e&&(t[0]=i(e)),null!=n&&(t[1]=a(n)),null!=r&&(t[2]=a(r)),y(c(t),"rgba")}function m(t,e){if(t=u(t),t&&null!=e)return t[3]=r(e),y(t,"rgba")}function y(t,e){var n=t[0]+","+t[1]+","+t[2];return"rgba"!==e&&"hsva"!==e&&"hsla"!==e||(n+=","+t[3]),e+"("+n+")"}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]};t.exports={parse:u,lift:f,toHex:d,fastMapToColor:p,mapToColor:g,modifyHSL:v,modifyAlpha:m,stringify:y}},function(t,e){"use strict";var n={};t.exports={register:function(t,e){n[t]=e},get:function(t){return n[t]}}},function(t,e,n){function i(t){a.assert(/^[a-zA-Z0-9_]+([.][a-zA-Z0-9_]+)?$/.test(t),'componentType "'+t+'" illegal')}function r(t,e){var n=a.slice(arguments,2);return this.superClass.prototype[e].apply(t,n)}function o(t,e,n){return this.superClass.prototype[e].apply(t,n)}var a=n(1),s={},l=".",u="___EC__COMPONENT__CONTAINER___",c="\0ec_\0";s.set=function(t,e,n){return t[c+e]=n},s.get=function(t,e){return t[c+e]},s.hasOwn=function(t,e){return t.hasOwnProperty(c+e)};var h=s.parseClassType=function(t){var e={main:"",sub:""};return t&&(t=t.split(l),e.main=t[0]||"",e.sub=t[1]||""),e};s.enableClassExtend=function(t,e){t.$constructor=t,t.extend=function(t){__DEV__&&a.each(e,function(e){!t[e]});var n=this,i=function(){t.$constructor?t.$constructor.apply(this,arguments):n.apply(this,arguments)};return a.extend(i.prototype,t),i.extend=this.extend,i.superCall=r,i.superApply=o,a.inherits(i,this),i.superClass=n,i}},s.enableClassManagement=function(t,e){function n(t){var e=r[t.main];return e&&e[u]||(e=r[t.main]={},e[u]=!0),e}e=e||{};var r={};if(t.registerClass=function(t,e){if(e)if(i(e),e=h(e),e.sub){if(e.sub!==u){var o=n(e);o[e.sub]=t}}else __DEV__&&r[e.main],r[e.main]=t;return t},t.getClass=function(t,e,n){var i=r[t];if(i&&i[u]&&(i=e?i[e]:null),n&&!i)throw new Error(e?"Component "+t+"."+(e||"")+" not exists. Load it first.":t+".type should be specified.");return i},t.getClassesByMainType=function(t){t=h(t);var e=[],n=r[t.main];return n&&n[u]?a.each(n,function(t,n){n!==u&&e.push(t)}):e.push(n),e},t.hasClass=function(t){return t=h(t),!!r[t.main]},t.getAllClassMainTypes=function(){var t=[];return a.each(r,function(e,n){t.push(n)}),t},t.hasSubTypes=function(t){t=h(t);var e=r[t.main];return e&&e[u]},t.parseClassType=h,e.registerWhenExtend){var o=t.extend;o&&(t.extend=function(e){var n=o.call(this,e);return t.registerClass(n,e.type)})}return t},s.setReadOnly=function(t,e){},t.exports=s},function(t,e,n){function i(){this.group=new a,this.uid=s.getUID("viewChart")}function r(t,e){if(t&&(t.trigger(e),"group"===t.type))for(var n=0;nc&&(u=0,l={}),u++,l[n]=r,r}function r(t,e,n,r){var o=((t||"")+"").split("\n").length,a=i(t,e),s=i("国",e),l=o*s,u=new f(0,0,a,l);switch(u.lineHeight=s,r){case"bottom":case"alphabetic":u.y-=s;break;case"middle":u.y-=s/2}switch(n){case"end":case"right":u.x-=u.width;break;case"center":u.x-=u.width/2}return u}function o(t,e,n,i){var r=e.x,o=e.y,a=e.height,s=e.width,l=n.height,u=a/2-l/2,c="left";switch(t){case"left":r-=i,o+=u,c="right";break;case"right":r+=i+s,o+=u,c="left";break;case"top":r+=s/2,o-=i+l,c="center";break;case"bottom":r+=s/2,o+=a+i,c="center";break;case"inside":r+=s/2,o+=u,c="center";break;case"insideLeft":r+=i,o+=u,c="left";break;case"insideRight":r+=s-i,o+=u,c="right";break;case"insideTop":r+=s/2,o+=i,c="center";break;case"insideBottom":r+=s/2,o+=a-l-i,c="center";break;case"insideTopLeft":r+=i,o+=i,c="left";break;case"insideTopRight":r+=s-i,o+=i,c="right";break;case"insideBottomLeft":r+=i,o+=a-l-i;break;case"insideBottomRight":r+=s-i,o+=a-l-i,c="right"}return{x:r,y:o,textAlign:c,textBaseline:"top"}}function a(t,e,n,r,o){if(!e)return"";o=o||{},r=d(r,"...");for(var a=d(o.maxIterations,2),l=d(o.minChar,0),u=i("国",n),c=i("a",n),h=d(o.placeholder,""),f=e=Math.max(0,e-1),p=0;p=c;p++)f-=c;var g=i(r);g>f&&(r="",g=0),f=e-g;for(var v=(t+"").split("\n"),p=0,m=v.length;p=a){y+=r;break}var b=0===_?s(y,f,c,u):x>0?Math.floor(y.length*f/x):0;y=y.substr(0,b),x=i(y,n)}""===y&&(y=h),v[p]=y}}return v.join("\n")}function s(t,e,n,i){for(var r=0,o=0,a=t.length;o-1e-8&&tw||t<-1e-8}function o(t,e,n,i,r){var o=1-r;return o*o*(o*t+3*r*e)+r*r*(r*i+3*o*n)}function a(t,e,n,i,r){var o=1-r;return 3*(((e-t)*o+2*(n-e)*r)*o+(i-n)*r*r)}function s(t,e,n,r,o,a){var s=r+3*(e-n)-t,l=3*(n-2*e+t),u=3*(e-t),c=t-o,h=l*l-3*s*u,f=l*u-9*s*c,d=u*u-3*l*c,p=0;if(i(h)&&i(f))if(i(l))a[0]=0;else{var g=-u/l;g>=0&&g<=1&&(a[p++]=g)}else{var v=f*f-4*h*d;if(i(v)){var m=f/h,g=-l/s+m,y=-m/2;g>=0&&g<=1&&(a[p++]=g),y>=0&&y<=1&&(a[p++]=y)}else if(v>0){var x=b(v),w=h*l+1.5*s*(-f+x),S=h*l+1.5*s*(-f-x);w=w<0?-_(-w,A):_(w,A),S=S<0?-_(-S,A):_(S,A);var g=(-l-(w+S))/(3*s);g>=0&&g<=1&&(a[p++]=g)}else{var T=(2*h*l-3*s*f)/(2*b(h*h*h)),I=Math.acos(T)/3,C=b(h),L=Math.cos(I),g=(-l-2*C*L)/(3*s),y=(-l+C*(L+M*Math.sin(I)))/(3*s),D=(-l+C*(L-M*Math.sin(I)))/(3*s);g>=0&&g<=1&&(a[p++]=g),y>=0&&y<=1&&(a[p++]=y),D>=0&&D<=1&&(a[p++]=D)}}return p}function l(t,e,n,o,a){var s=6*n-12*e+6*t,l=9*e+3*o-3*t-9*n,u=3*e-3*t,c=0;if(i(l)){if(r(s)){var h=-u/s;h>=0&&h<=1&&(a[c++]=h)}}else{var f=s*s-4*l*u;if(i(f))a[0]=-s/(2*l);else if(f>0){var d=b(f),h=(-s+d)/(2*l),p=(-s-d)/(2*l);h>=0&&h<=1&&(a[c++]=h),p>=0&&p<=1&&(a[c++]=p)}}return c}function u(t,e,n,i,r,o){var a=(e-t)*r+t,s=(n-e)*r+e,l=(i-n)*r+n,u=(s-a)*r+a,c=(l-s)*r+s,h=(c-u)*r+u;o[0]=t,o[1]=a,o[2]=u,o[3]=h,o[4]=h,o[5]=c,o[6]=l,o[7]=i}function c(t,e,n,i,r,a,s,l,u,c,h){var f,d,p,g,v,m=.005,y=1/0;T[0]=u,T[1]=c;for(var _=0;_<1;_+=.05)I[0]=o(t,n,r,s,_),I[1]=o(e,i,a,l,_),g=x(T,I),g=0&&g=0&&h<=1&&(a[c++]=h)}}else{var f=l*l-4*s*u;if(i(f)){var h=-l/(2*s);h>=0&&h<=1&&(a[c++]=h)}else if(f>0){var d=b(f),h=(-l+d)/(2*s),p=(-l-d)/(2*s);h>=0&&h<=1&&(a[c++]=h),p>=0&&p<=1&&(a[c++]=p)}}return c}function p(t,e,n){var i=t+n-2*e;return 0===i?.5:(t-e)/i}function g(t,e,n,i,r){var o=(e-t)*i+t,a=(n-e)*i+e,s=(a-o)*i+o;r[0]=t,r[1]=o,r[2]=s,r[3]=s,r[4]=a,r[5]=n}function v(t,e,n,i,r,o,a,s,l){var u,c=.005,f=1/0;T[0]=a,T[1]=s;for(var d=0;d<1;d+=.05){I[0]=h(t,n,r,d),I[1]=h(e,i,o,d);var p=x(T,I);p=0&&p=n&&t<=i},containData:function(t){return this.contain(this.dataToCoord(t))},getExtent:function(){return this._extent.slice()},getPixelPrecision:function(t){return r.getPixelPrecision(t||this.scale.getExtent(),this._extent)},setExtent:function(t,e){var n=this._extent;n[0]=t,n[1]=e},dataToCoord:function(t,e){var n=this._extent,r=this.scale;return t=r.normalize(t),this.onBand&&"ordinal"===r.type&&(n=n.slice(),i(n,r.count())),o(t,s,n,e)},coordToData:function(t,e){var n=this._extent,r=this.scale;this.onBand&&"ordinal"===r.type&&(n=n.slice(),i(n,r.count()));var a=o(t,n,s,e);return this.scale.scale(a)},getTicksCoords:function(t){if(this.onBand&&!t){for(var e=this.getBands(),n=[],i=0;i=0;o--)null==n[o]&&(delete i[e[o]],e.pop())}function o(t,e){var n=t.visual,i=[];p.isObject(n)?m(n,function(t){i.push(t)}):null!=n&&i.push(n);var r={color:1,symbol:1};e||1!==i.length||r.hasOwnProperty(t.type)||(i[1]=i[0]),t.visual=i}function a(t){return{applyVisual:function(e,n,i){e=this.mapValueToVisual(e),i("color",t(n("color"),e))},_doMap:h([0,1])}}function s(t){var e=this.option.visual;return e[Math.round(v(t,[0,1],[0,e.length-1],!0))]||{}}function l(t){return function(e,n,i){i(t,this.mapValueToVisual(e))}}function u(t){var e=this.option.visual;return e[this.option.loop&&t!==x?t%e.length:t]}function c(){return this.option.visual[0]}function h(t){return{linear:function(e){return v(e,t,this.option.visual,!0)},category:u,piecewise:function(e,n){var i=f.call(this,n);return null==i&&(i=v(e,t,this.option.visual,!0)),i},fixed:c}}function f(t){var e=this.option,n=e.pieceList;if(e.hasSpecialVisual){var i=_.findPieceIndex(t,n),r=n[i];if(r&&r.visual)return r.visual[this.type]}}function d(t,e,n){return t?e<=n:e3&&(e=n.call(e,1));for(var r=this._$handlers[t],o=r.length,a=0;a4&&(e=n.call(e,1,e.length-1));for(var r=e[e.length-1],o=this._$handlers[t],a=o.length,s=0;s=0&&r(t)?function(t,e,n,i){return f.isDataItemOption(t)&&(x.hasItemOption=!0),i===y?n:g(p(t),m[i])}:function(t,e,n,i){var r=p(t),o=g(r&&r[i],m[i]);f.isDataItemOption(t)&&(x.hasItemOption=!0);var a=s&&s.categoryAxesModels;return a&&a[e]&&"string"==typeof o&&(b[e]=b[e]||a[e].getCategories(),o=h.indexOf(b[e],o),o<0&&!isNaN(o)&&(o=+o)),o};return x.hasItemOption=!1,x.initData(t,_,w),x}function a(t){return"category"!==t&&"time"!==t}function s(t){return"category"===t?"ordinal":"time"===t?"time":"float"}function l(t,e){var n,i=[],r=t&&t.dimensions[t.categoryIndex];if(r&&(n=t.categoryAxesModels[r.name]),n){var o=n.getCategories();if(o){var a=e.length;if(h.isArray(e[0])&&e[0].length>1){i=[];for(var s=0;s=0},wrapTreePathInfo:function(t,e){for(var n=[];t;){var i=t.dataIndex;n.push({name:t.name,dataIndex:i,value:e.getRawValue(i)}),t=t.parentNode}return n.reverse(),n}};t.exports=r},function(t,e){t.exports=function(t,e,n,i,r){i.eachRawSeriesByType(t,function(t){var r=t.getData(),o=t.get("symbol")||e,a=t.get("symbolSize");r.setVisual({legendSymbol:n||o,symbol:o,symbolSize:a}),i.isSeriesFiltered(t)||("function"==typeof a&&r.each(function(e){var n=t.getRawValue(e),i=t.getDataParams(e);r.setItemVisual(e,"symbolSize",a(n,i))}),r.each(function(t){var e=r.getItemModel(t),n=e.getShallow("symbol",!0),i=e.getShallow("symbolSize",!0);null!=n&&r.setItemVisual(t,"symbol",n),null!=i&&r.setItemVisual(t,"symbolSize",i)}))})}},function(t,e,n){"use strict";function i(t){return t.getBoundingClientRect?t.getBoundingClientRect():{left:0,top:0}}function r(t,e,n,i){return n=n||{},i||!c.canvasSupported?o(t,e,n):c.browser.firefox&&null!=e.layerX&&e.layerX!==e.offsetX?(n.zrX=e.layerX,n.zrY=e.layerY):null!=e.offsetX?(n.zrX=e.offsetX,n.zrY=e.offsetY):o(t,e,n),n}function o(t,e,n){var r=i(t);n.zrX=e.clientX-r.left,n.zrY=e.clientY-r.top}function a(t,e,n){if(e=e||window.event,null!=e.zrX)return e;var i=e.type;if(i&&i.indexOf("touch")>=0){var o="touchend"!=i?e.targetTouches[0]:e.changedTouches[0];o&&r(t,o,e,n)}else r(t,e,e,n),e.zrDelta=e.wheelDelta?e.wheelDelta/120:-(e.detail||0)/3;return e}function s(t,e,n){h?t.addEventListener(e,n):t.attachEvent("on"+e,n)}function l(t,e,n){h?t.removeEventListener(e,n):t.detachEvent("on"+e,n)}var u=n(29),c=n(14),h="undefined"!=typeof window&&!!window.addEventListener,f=h?function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0}:function(t){t.returnValue=!1,t.cancelBubble=!0};t.exports={clientToLocal:r,normalizeEvent:a,addEventListener:s,removeEventListener:l,stop:f,Dispatcher:u}},function(t,e,n){function i(t){this.group=new o.Group,this._symbolCtor=t||a}function r(t,e,n){var i=t.getItemLayout(e);return i&&!isNaN(i[0])&&!isNaN(i[1])&&!(n&&n(e))&&"none"!==t.getItemVisual(e,"symbol")}var o=n(3),a=n(58),s=i.prototype;s.updateData=function(t,e){var n=this.group,i=t.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")};t.diff(a).add(function(i){var o=t.getItemLayout(i);if(r(t,i,e)){var a=new s(t,i,l);a.attr("position",o),t.setItemGraphicEl(i,a),n.add(a)}}).update(function(u,c){var h=a.getItemGraphicEl(c),f=t.getItemLayout(u);return r(t,u,e)?(h?(h.updateData(t,u,l),o.updateProps(h,{position:f},i)):(h=new s(t,u),h.attr("position",f)),n.add(h),void t.setItemGraphicEl(u,h)):void n.remove(h)}).remove(function(t){var e=a.getItemGraphicEl(t);e&&e.fadeOut(function(){n.remove(e)})}).execute(),this._data=t},s.updateLayout=function(){var t=this._data;t&&t.eachItemGraphicEl(function(e,n){var i=t.getItemLayout(n);e.attr("position",i)})},s.remove=function(t){var e=this.group,n=this._data;n&&(t?n.eachItemGraphicEl(function(t){t.fadeOut(function(){e.remove(t)})}):e.removeAll())},t.exports=i},function(t,e,n){function i(t){var e={componentType:t.mainType};return e[t.mainType+"Index"]=t.componentIndex,e}function r(t,e,n){var i,r,o=f(e-t.rotation);return d(o)?(r=n>0?"top":"bottom",i="center"):d(o-m)?(r=n>0?"bottom":"top",i="center"):(r="middle",i=o>0&&o0?"right":"left":n>0?"left":"right"),{rotation:o,textAlign:i,verticalAlign:r}}function o(t,e,n,i){var r,o,a=f(n-t.rotation),s=i[0]>i[1],l="start"===e&&!s||"start"!==e&&s;return d(a-m/2)?(o=l?"bottom":"top",r="center"):d(a-1.5*m)?(o=l?"top":"bottom",r="center"):(o="middle",r=a<1.5*m&&a>m/2?l?"left":"right":l?"right":"left"),{rotation:a,textAlign:r,verticalAlign:o}}function a(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)}var s=n(1),l=n(6),u=n(3),c=n(11),h=n(4),f=h.remRadian,d=h.isRadianAroundZero,p=n(5),g=p.applyTransform,v=s.retrieve,m=Math.PI,y=function(t,e){this.opt=e,this.axisModel=t,s.defaults(e,{labelOffset:0,nameDirection:1,tickDirection:1,labelDirection:1,silent:!0}),this.group=new u.Group;var n=new u.Group({position:e.position.slice(),rotation:e.rotation});n.updateTransform(),this._transform=n.transform,this._dumbGroup=n};y.prototype={constructor:y,hasBuilder:function(t){return!!x[t]},add:function(t){x[t].call(this)},getGroup:function(){return this.group}};var x={axisLine:function(){var t=this.opt,e=this.axisModel;if(e.get("axisLine.show")){var n=this.axisModel.axis.getExtent(),i=this._transform,r=[n[0],0],o=[n[1],0];i&&(g(r,r,i),g(o,o,i)),this.group.add(new u.Line(u.subPixelOptimizeLine({anid:"line",shape:{x1:r[0],y1:r[1],x2:o[0],y2:o[1]},style:s.extend({lineCap:"round"},e.getModel("axisLine.lineStyle").getLineStyle()),strokeContainThreshold:t.strokeContainThreshold||5,silent:!0,z2:1})))}},axisTick:function(){var t=this.axisModel,e=t.axis;if(t.get("axisTick.show")&&!e.isBlank())for(var n=t.getModel("axisTick"),i=this.opt,r=n.getModel("lineStyle"),o=n.get("length"),a=b(n,i.labelInterval),l=e.getTicksCoords(n.get("alignWithLabel")),c=e.scale.getTicks(),h=[],f=[],d=this._transform,p=0;pg[1]?-1:1,x=["start"===h?g[0]-y*p:"end"===h?g[1]+y*p:(g[0]+g[1])/2,"middle"===h?t.labelOffset+f*p:0],_=e.get("nameRotate");null!=_&&(_=_*m/180);var b;"middle"===h?c=r(t,null!=_?_:t.rotation,f):(c=o(t,h,_||0,g),b=t.axisNameAvailableWidth,null!=b&&(b=Math.abs(b/Math.sin(c.rotation)),!isFinite(b)&&(b=null)));var w=d.getFont(),S=e.get("nameTruncate",!0)||{},M=S.ellipsis,A=v(S.maxWidth,b),T=null!=M&&null!=A?l.truncateText(n,A,w,M,{minChar:2,placeholder:S.placeholder}):n,I=e.get("tooltip",!0),C=e.mainType,L={componentType:C,name:n,$vars:["name"]};L[C+"Index"]=e.componentIndex;var D=new u.Text({anid:"name",__fullText:n,__truncatedText:T,style:{text:T,textFont:w,fill:d.getTextColor()||e.get("axisLine.lineStyle.color"),textAlign:c.textAlign,textVerticalAlign:c.verticalAlign},position:x,rotation:c.rotation,silent:a(e),z2:1,tooltip:I&&I.show?s.extend({content:n,formatter:function(){return n},formatterParams:L},I):null});e.get("triggerEvent")&&(D.eventData=i(e),D.eventData.targetType="axisName",D.eventData.name=n),this._dumbGroup.add(D),D.updateTransform(),this.group.add(D),D.decomposeTransform()}}},_=y.ifIgnoreOnTick=function(t,e,n){var i,r=t.scale;return"ordinal"===r.type&&("function"==typeof n?(i=r.getTicks()[e],!n(i,r.getLabel(i))):e%(n+1))},b=y.getInterval=function(t,e){var n=t.get("interval");return null!=n&&"auto"!=n||(n=e),n};t.exports=y},function(t,e,n){function i(t){var e={};return h(["start","end","startValue","endValue","throttle"],function(n){t.hasOwnProperty(n)&&(e[n]=t[n])}),e}function r(t,e,n,i){null!=n[e]&&null==n[t]&&(i[t]=null)}var o=n(1),a=n(14),s=n(2),l=n(7),u=n(59),c=n(260),h=o.each,f=u.eachAxisDim,d=s.extendComponentModel({type:"dataZoom",dependencies:["xAxis","yAxis","zAxis","radiusAxis","angleAxis","singleAxis","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(t,e,n){this._dataIntervalByAxis={},this._dataInfo={},this._axisProxies={},this.textStyleModel,this._autoThrottle=!0;var r=i(t);this.mergeDefaultAndTheme(t,n),this.doInit(r)},mergeOption:function(t){var e=i(t);o.merge(this.option,t,!0),this.doInit(e)},doInit:function(t){var e=this.option;a.canvasSupported||(e.realtime=!1),this._setDefaultThrottle(t),r("start","startValue",t,e),r("end","endValue",t,e),this.textStyleModel=this.getModel("textStyle"),this._resetTarget(),this._giveAxisProxies()},_giveAxisProxies:function(){var t=this._axisProxies;this.eachTargetAxis(function(e,n,i,r){var o=this.dependentModels[e.axis][n],a=o.__dzAxisProxy||(o.__dzAxisProxy=new c(e.name,n,this,r));t[e.name+"_"+n]=a},this)},_resetTarget:function(){var t=this.option,e=this._judgeAutoMode();f(function(e){var n=e.axisIndex;t[n]=l.normalizeToArray(t[n])},this),"axisIndex"===e?this._autoSetAxisIndex():"orient"===e&&this._autoSetOrient()},_judgeAutoMode:function(){var t=this.option,e=!1;f(function(n){null!=t[n.axisIndex]&&(e=!0)},this);var n=t.orient;return null==n&&e?"orient":e?void 0:(null==n&&(t.orient="horizontal"),"axisIndex")},_autoSetAxisIndex:function(){var t=!0,e=this.get("orient",!0),n=this.option,i=this.dependentModels;if(t){var r="vertical"===e?"y":"x";i[r+"Axis"].length?(n[r+"AxisIndex"]=[0],t=!1):h(i.singleAxis,function(i){t&&i.get("orient",!0)===e&&(n.singleAxisIndex=[i.componentIndex],t=!1)})}t&&f(function(e){if(t){var i=[],r=this.dependentModels[e.axis];if(r.length&&!i.length)for(var o=0,a=r.length;o0?100:20}},getFirstTargetAxisModel:function(){var t;return f(function(e){if(null==t){var n=this.get(e.axisIndex);n.length&&(t=this.dependentModels[e.axis][n[0]])}},this),t},eachTargetAxis:function(t,e){var n=this.ecModel;f(function(i){h(this.get(i.axisIndex),function(r){t.call(e,i,r,this,n)},this)},this)},getAxisProxy:function(t,e){return this._axisProxies[t+"_"+e]},setRawRange:function(t){h(["start","end","startValue","endValue"],function(e){this.option[e]=t[e]},this)},getPercentRange:function(){var t=this.findRepresentativeAxisProxy();if(t)return t.getDataPercentWindow()},getValueRange:function(t,e){if(null!=t||null!=e)return this.getAxisProxy(t,e).getDataValueWindow();var n=this.findRepresentativeAxisProxy();return n?n.getDataValueWindow():void 0},findRepresentativeAxisProxy:function(){var t=this._axisProxies;for(var e in t)if(t.hasOwnProperty(e)&&t[e].hostedBy(this))return t[e];for(var e in t)if(t.hasOwnProperty(e)&&!t[e].hostedBy(this))return t[e]}});t.exports=d},function(t,e,n){var i=n(71);t.exports=i.extend({type:"dataZoom",render:function(t,e,n,i){this.dataZoomModel=t,this.ecModel=e,this.api=n},getTargetCoordInfo:function(){function t(t,e,n,i){for(var r,o=0;o=0)){var a=this.getShallow(o);null!=a&&(n[t[r][0]]=a)}}return n}}},function(t,e,n){"use strict";var i=n(26),r=n(5),o=n(73),a=n(9),s=n(52).devicePixelRatio,l={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},u=[],c=[],h=[],f=[],d=Math.min,p=Math.max,g=Math.cos,v=Math.sin,m=Math.sqrt,y=Math.abs,x="undefined"!=typeof Float32Array,_=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};_.prototype={constructor:_,_lineDash:null,_dashOffset:0,_dashIdx:0,_dashSum:0,setScale:function(t,e){this._ux=y(1/s/t)||0,this._uy=y(1/s/e)||0},getContext:function(){return this._ctx},beginPath:function(t){return this._ctx=t,t&&t.beginPath(),t&&(this.dpr=t.dpr),this._len=0,this._lineDash&&(this._lineDash=null,this._dashOffset=0),this},moveTo:function(t,e){return this.addData(l.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},lineTo:function(t,e){var n=y(t-this._xi)>this._ux||y(e-this._yi)>this._uy||this._len<5;return this.addData(l.L,t,e),this._ctx&&n&&(this._needsDash()?this._dashedLineTo(t,e):this._ctx.lineTo(t,e)),n&&(this._xi=t,this._yi=e),this},bezierCurveTo:function(t,e,n,i,r,o){return this.addData(l.C,t,e,n,i,r,o),this._ctx&&(this._needsDash()?this._dashedBezierTo(t,e,n,i,r,o):this._ctx.bezierCurveTo(t,e,n,i,r,o)),this._xi=r,this._yi=o,this},quadraticCurveTo:function(t,e,n,i){return this.addData(l.Q,t,e,n,i),this._ctx&&(this._needsDash()?this._dashedQuadraticTo(t,e,n,i):this._ctx.quadraticCurveTo(t,e,n,i)),this._xi=n,this._yi=i,this},arc:function(t,e,n,i,r,o){return this.addData(l.A,t,e,n,n,i,r-i,0,o?0:1),this._ctx&&this._ctx.arc(t,e,n,i,r,o),this._xi=g(r)*n+t,this._yi=v(r)*n+t,this},arcTo:function(t,e,n,i,r){return this._ctx&&this._ctx.arcTo(t,e,n,i,r),this},rect:function(t,e,n,i){return this._ctx&&this._ctx.rect(t,e,n,i),this.addData(l.R,t,e,n,i),this},closePath:function(){this.addData(l.Z);var t=this._ctx,e=this._x0,n=this._y0;return t&&(this._needsDash()&&this._dashedLineTo(e,n),t.closePath()),this._xi=e,this._yi=n,this},fill:function(t){t&&t.fill(),this.toStatic()},stroke:function(t){t&&t.stroke(),this.toStatic()},setLineDash:function(t){if(t instanceof Array){this._lineDash=t,this._dashIdx=0;for(var e=0,n=0;ne.length&&(this._expandData(),e=this.data);for(var n=0;n0&&g<=t||c<0&&g>=t||0==c&&(h>0&&v<=e||h<0&&v>=e);)i=this._dashIdx,n=a[i],g+=c*n,v+=h*n,this._dashIdx=(i+1)%y,c>0&&gl||h>0&&vu||s[i%2?"moveTo":"lineTo"](c>=0?d(g,t):p(g,t),h>=0?d(v,e):p(v,e));c=g-t,h=v-e,this._dashOffset=-m(c*c+h*h)},_dashedBezierTo:function(t,e,n,r,o,a){var s,l,u,c,h,f=this._dashSum,d=this._dashOffset,p=this._lineDash,g=this._ctx,v=this._xi,y=this._yi,x=i.cubicAt,_=0,b=this._dashIdx,w=p.length,S=0;for(d<0&&(d=f+d),d%=f,s=0;s<1;s+=.1)l=x(v,t,n,o,s+.1)-x(v,t,n,o,s),u=x(y,e,r,a,s+.1)-x(y,e,r,a,s),_+=m(l*l+u*u);for(;bd));b++);for(s=(S-d)/_;s<=1;)c=x(v,t,n,o,s),h=x(y,e,r,a,s),b%2?g.moveTo(c,h):g.lineTo(c,h),s+=p[b]/_,b=(b+1)%w;b%2!==0&&g.lineTo(o,a),l=o-c,u=a-h,this._dashOffset=-m(l*l+u*u)},_dashedQuadraticTo:function(t,e,n,i){var r=n,o=i;n=(n+2*t)/3,i=(i+2*e)/3,t=(this._xi+2*t)/3,e=(this._yi+2*e)/3,this._dashedBezierTo(t,e,n,i,r,o)},toStatic:function(){var t=this.data;t instanceof Array&&(t.length=this._len,x&&(this.data=new Float32Array(t)))},getBoundingRect:function(){u[0]=u[1]=h[0]=h[1]=Number.MAX_VALUE,c[0]=c[1]=f[0]=f[1]=-Number.MAX_VALUE;for(var t=this.data,e=0,n=0,i=0,s=0,d=0;du||y(a-r)>c||f===h-1)&&(t.lineTo(o,a),i=o,r=a);break;case l.C:t.bezierCurveTo(s[f++],s[f++],s[f++],s[f++],s[f++],s[f++]),i=s[f-2],r=s[f-1];break;case l.Q:t.quadraticCurveTo(s[f++],s[f++],s[f++],s[f++]),i=s[f-2],r=s[f-1];break;case l.A:var p=s[f++],m=s[f++],x=s[f++],_=s[f++],b=s[f++],w=s[f++],S=s[f++],M=s[f++],A=x>_?x:_,T=x>_?1:x/_,I=x>_?_/x:1,C=Math.abs(x-_)>.001,L=b+w;C?(t.translate(p,m),t.rotate(S),t.scale(T,I),t.arc(0,0,A,b,L,1-M),t.scale(1/T,1/I),t.rotate(-S),t.translate(-p,-m)):t.arc(p,m,A,b,L,1-M),1==f&&(e=g(b)*x+p,n=v(b)*_+m),i=g(L)*x+p,r=v(L)*_+m;break;case l.R:e=i=s[f],n=r=s[f+1],t.rect(s[f++],s[f++],s[f++],s[f++]);break;case l.Z:t.closePath(),i=e,r=n}}}},_.CMD=l,t.exports=_},function(t,e,n){"use strict";function i(t){return null==t.value?t:t.value}var r=n(10),o=n(17),a=n(192),s=n(1),l={_baseAxisDim:null,getInitialData:function(t,e){var n,a,s=e.getComponent("xAxis",this.get("xAxisIndex")),l=e.getComponent("yAxis",this.get("yAxisIndex")),u=s.get("type"),c=l.get("type");"category"===u?(t.layout="horizontal",n=s.getCategories(),a=!0):"category"===c?(t.layout="vertical",n=l.getCategories(),a=!0):t.layout=t.layout||"horizontal",this._baseAxisDim="horizontal"===t.layout?"x":"y";var h=t.data,f=this.dimensions=["base"].concat(this.valueDimensions);o(f,h);var d=new r(f,this);return d.initData(h,n?n.slice():null,function(t,e,n,r){var o=i(t);return a?"base"===e?n:o[r-1]:o[r]}),d},coordDimToDataDim:function(t){var e=this.valueDimensions.slice(),n=["base"];return{horizontal:{x:n,y:e},vertical:{x:e,y:n}}[this.get("layout")][t]},dataDimToCoordDim:function(t){var e;return s.each(["x","y"],function(n,i){var r=this.coordDimToDataDim(n);s.indexOf(r,t)>=0&&(e=n)},this),e},getBaseAxis:function(){var t=this._baseAxisDim;return this.ecModel.getComponent(t+"Axis",this.get(t+"AxisIndex")).axis}},u={init:function(){var t=this._whiskerBoxDraw=new a(this.getStyleUpdater());this.group.add(t.group)},render:function(t,e,n){this._whiskerBoxDraw.updateData(t.getData())},remove:function(t){this._whiskerBoxDraw.remove()}};t.exports={seriesModelMixin:l,viewMixin:u}},function(t,e,n){function i(t){if(!t.target||!t.target.draggable){var e=t.offsetX,n=t.offsetY;this.containsPoint&&this.containsPoint(e,n)&&(this._x=e,this._y=n,this._dragging=!0)}}function r(t){if(this._dragging&&(f.stop(t.event),"pinch"!==t.gestureEvent)){if(d.isTaken(this._zr,"globalPan"))return;var e=t.offsetX,n=t.offsetY,i=this._x,r=this._y,o=e-i,a=n-r;this._x=e,this._y=n;var s=this.target;if(s){var l=s.position;l[0]+=o,l[1]+=a,s.dirty()}f.stop(t.event),this.trigger("pan",o,a,i,r,e,n)}}function o(t){this._dragging=!1}function a(t){var e=t.wheelDelta>0?1.1:1/1.1;l.call(this,t,e,t.offsetX,t.offsetY)}function s(t){if(!d.isTaken(this._zr,"globalPan")){var e=t.pinchScale>1?1.1:1/1.1;l.call(this,t,e,t.pinchX,t.pinchY)}}function l(t,e,n,i){if(this.containsPoint&&this.containsPoint(n,i)){f.stop(t.event);var r=this.target,o=this.zoomLimit;if(r){var a=r.position,s=r.scale,l=this.zoom=this.zoom||1;if(l*=e,o){var u=o.min||0,c=o.max||1/0;l=Math.max(Math.min(c,l),u)}var h=l/this.zoom;this.zoom=l,a[0]-=(n-a[0])*(h-1),a[1]-=(i-a[1])*(h-1),s[0]*=h,s[1]*=h,r.dirty()}this.trigger("zoom",e,n,i)}}function u(t,e){this.target=e,this.containsPoint,this.zoomLimit,this.zoom,this._zr=t;var n=h.bind,l=n(i,this),u=n(r,this),f=n(o,this),d=n(a,this),p=n(s,this);c.call(this),this.setContainsPoint=function(t){this.containsPoint=t},this.enable=function(e){this.disable(),null==e&&(e=!0),e!==!0&&"move"!==e&&"pan"!==e||(t.on("mousedown",l),t.on("mousemove",u),t.on("mouseup",f)),e!==!0&&"scale"!==e&&"zoom"!==e||(t.on("mousewheel",d),t.on("pinch",p))},this.disable=function(){t.off("mousedown",l),t.off("mousemove",u),t.off("mouseup",f),t.off("mousewheel",d),t.off("pinch",p)},this.dispose=this.disable,this.isDragging=function(){return this._dragging},this.isPinching=function(){return this._pinching}}var c=n(29),h=n(1),f=n(33),d=n(94);h.mixin(u,c),t.exports=u},function(t,e,n){var i=n(106),r=n(1),o=n(12),a=n(8),s=["value","category","time","log"];t.exports=function(t,e,n,l){r.each(s,function(o){e.extend({type:t+"Axis."+o,mergeDefaultAndTheme:function(e,i){var s=this.layoutMode,l=s?a.getLayoutParams(e):{},u=i.getTheme();r.merge(e,u.get(o+"Axis")),r.merge(e,this.getDefaultOption()),e.type=n(t,e),s&&a.mergeLayoutParam(e,l,s)},defaultOption:r.mergeAll([{},i[o+"Axis"],l],!0)})}),o.registerSubTypeDefaulter(t+"Axis",r.curry(n,t))}},function(t,e,n){function i(t,e){var n,i=this.getBoundingRect(),r=t.get("layoutCenter"),o=t.get("layoutSize"),s=e.getWidth(),u=e.getHeight(),c=t.get("aspectScale")||.75,h=i.width/i.height*c,f=!1;r&&o&&(r=[l.parsePercent(r[0],s),l.parsePercent(r[1],u)],o=l.parsePercent(o,Math.min(s,u)),isNaN(r[0])||isNaN(r[1])||isNaN(o)?__DEV__:f=!0);var d;if(f){var d={};h>1?(d.width=o,d.height=o/h):(d.height=o,d.width=o*h),d.y=r[1]-d.height/2,d.x=r[0]-d.width/2}else n=t.getBoxLayoutParams(),n.aspect=h,d=a.getLayoutRect(n,{width:s,height:u});this.setViewRect(d.x,d.y,d.width,d.height),this.setCenter(t.get("center")),this.setZoom(t.get("zoom"))}function r(t,e){s.each(e.get("geoCoord"),function(e,n){t.addGeoCoord(n,e)})}var o=n(326),a=n(8),s=n(1),l=n(4),u={};if(__DEV__)var c=function(t){};var h={dimensions:o.prototype.dimensions,create:function(t,e){var n=[];t.eachComponent("geo",function(t,a){var s=t.get("map"),l=u[s];__DEV__&&(l||c(s));var h=new o(s+a,s,l&&l.geoJson,l&&l.specialAreas,t.get("nameMap"));h.zoomLimit=t.get("scaleLimit"),n.push(h),r(h,t),t.coordinateSystem=h,h.model=t,h.resize=i,h.resize(t,e)}),t.eachSeries(function(t){if("geo"===t.get("coordinateSystem")){var e=t.get("geoIndex")||0;t.coordinateSystem=n[e]}});var a={};return t.eachSeriesByType("map",function(t){if(!t.getHostGeoModel()){var e=t.getMapType();a[e]=a[e]||[],a[e].push(t)}}),s.each(a,function(t,a){var l=u[a];__DEV__&&(l||c(t[0].get("map")));var h=s.map(t,function(t){return t.get("nameMap")}),f=new o(a,a,l&&l.geoJson,l&&l.specialAreas,s.mergeAll(h));f.zoomLimit=s.retrieve.apply(null,s.map(t,function(t){return t.get("scaleLimit")})),n.push(f),f.resize=i,f.resize(t[0],e),s.each(t,function(t){t.coordinateSystem=f,r(f,t)})}),n},registerMap:function(t,e,n){e.geoJson&&!e.features&&(n=e.specialAreas,e=e.geoJson),"string"==typeof e&&(e="undefined"!=typeof JSON&&JSON.parse?JSON.parse(e):new Function("return ("+e+");")()),u[t]={geoJson:e,specialAreas:n}},getMap:function(t){return u[t]},getFilledRegions:function(t,e){var n=(t||[]).slice(),i=h.getMap(e),r=i&&i.geoJson; if(!r)return __DEV__&&c(e),t;for(var o={},a=r.features,s=0;se[1]&&(e[1]=t[1]),c.prototype.setExtent.call(this,e[0],e[1])},getInterval:function(){return this._interval||this.niceTicks(),this._interval},setInterval:function(t){this._interval=t,this._niceExtent=this._extent.slice()},getTicks:function(){this._interval||this.niceTicks();var t=this._interval,e=this._extent,n=[];if(t){var i=this._niceExtent,r=l(t)+2;e[0]1e4)return[];e[1]>(n.length?n[n.length-1]:i[1])&&n.push(e[1])}return n},getTicksLabels:function(){for(var t=[],e=this.getTicks(),n=0;n=e[0]&&t<=e[1]},o.normalize=function(t){var e=this._extent;return e[1]===e[0]?.5:(t-e[0])/(e[1]-e[0])},o.scale=function(t){var e=this._extent;return t*(e[1]-e[0])+e[0]},o.unionExtent=function(t){var e=this._extent;t[0]e[1]&&(e[1]=t[1])},o.unionExtentFromData=function(t,e){this.unionExtent(t.getDataExtent(e,!0))},o.getExtent=function(){return this._extent.slice()},o.setExtent=function(t,e){var n=this._extent;isNaN(t)||(n[0]=t),isNaN(e)||(n[1]=e)},o.getTicksLabels=function(){for(var t=[],e=this.getTicks(),n=0;n=0?i():c=setTimeout(i,-o),l=r};return h.clear=function(){c&&(clearTimeout(c),c=null)},h},n.createOrUpdate=function(t,e,a,s){var l=t[e];if(l){var u=l[i]||l,c=l[o];if(l[r]!==a||c!==s){if(null==a||!s)return t[e]=u;l=t[e]=n.throttle(u,a,"debounce"===s),l[i]=u,l[o]=s,l[r]=a}return l}},n.clear=function(t,e){var n=t[e];n&&n[i]&&(t[e]=n[i])},t.exports=n},function(t,e,n){function i(t){if(t)for(var e in t)if(t.hasOwnProperty(e))return!0}var r=n(1),o=n(28),a=r.each,s={createVisualMappings:function(t,e,n){function i(){var t=function(){};return t.prototype.__hidden=t.prototype,new t}var s={};return a(e,function(e){var l=s[e]=i();a(t[e],function(t,i){if(o.isValidType(i)){var a={type:i,visual:t};n&&n(a,e),l[i]=new o(a),"opacity"===i&&(a=r.clone(a),a.type="colorAlpha",l.__hidden.__alphaForOpacity=new o(a))}})}),s},replaceVisualOption:function(t,e,n){var o;r.each(n,function(t){e.hasOwnProperty(t)&&i(e[t])&&(o=!0)}),o&&r.each(n,function(n){e.hasOwnProperty(n)&&i(e[n])?t[n]=r.clone(e[n]):delete t[n]})},applyVisual:function(t,e,n,i,a,s){function l(t){return n.getItemVisual(f,t)}function u(t,e){n.setItemVisual(f,t,e)}function c(t,r){f=null==s?t:r;var o=n.getRawDataItem(f);if(!o||o.visualMap!==!1)for(var c=i.call(a,t),d=e[c],p=h[c],g=0,v=p.length;g=0&&(n.splice(i,0,t),this._doAdd(t))}return this},_doAdd:function(t){t.parent&&t.parent.remove(t),t.parent=this;var e=this.__storage,n=this.__zr;e&&e!==t.__storage&&(e.addToMap(t),t instanceof a&&t.addChildrenToStorage(e)),n&&n.refresh()},remove:function(t){var e=this.__zr,n=this.__storage,r=this._children,o=i.indexOf(r,t);return o<0?this:(r.splice(o,1),t.parent=null,n&&(n.delFromMap(t.id),t instanceof a&&t.delChildrenFromStorage(n)),e&&e.refresh(),this)},removeAll:function(){var t,e,n=this._children,i=this.__storage;for(e=0;e.8?"left":h[0]<-.8?"right":"center",g=h[1]>.8?"top":h[1]<-.8?"bottom":"middle";else if("middle"===i.__position){var m=s/2,f=a.tangentAt(m),y=[f[1],-f[0]],x=a.pointAt(m);y[1]>0&&(y[0]=-y[0],y[1]=-y[1]),d=[x[0]+y[0]*v,x[1]+y[1]*v],p="center",g="bottom";var _=-Math.atan2(f[1],f[0]);u[0].8?"right":h[0]<-.8?"left":"center",g=h[1]>.8?"bottom":h[1]<-.8?"top":"middle";i.attr({style:{textVerticalAlign:i.__verticalAlign||g,textAlign:i.__textAlign||p},position:d,scale:[r,r]})}}}}function l(t,e,n){f.Group.call(this),this._createLine(t,e,n)}var u=n(18),c=n(5),h=n(191),f=n(3),d=n(1),p=n(4),g=["fromSymbol","toSymbol"],v=l.prototype;v.beforeUpdate=s,v._createLine=function(t,e,n){var a=t.hostModel,s=t.getItemLayout(e),l=o(s);l.shape.percent=0,f.initProps(l,{shape:{percent:1}},a,e),this.add(l);var u=new f.Text({name:"label"});this.add(u),d.each(g,function(n){var o=r(n,t,e);this.add(o),this[i(n)]=t.getItemVisual(e,n)},this),this._updateCommonStl(t,e,n)},v.updateData=function(t,e,n){var o=t.hostModel,s=this.childOfName("line"),l=t.getItemLayout(e),u={shape:{}};a(u.shape,l),f.updateProps(s,u,o,e),d.each(g,function(n){var o=t.getItemVisual(e,n),a=i(n);if(this[a]!==o){this.remove(this.childOfName(n));var s=r(n,t,e);this.add(s)}this[a]=o},this),this._updateCommonStl(t,e,n)},v._updateCommonStl=function(t,e,n){var i=t.hostModel,r=this.childOfName("line"),o=n&&n.lineStyle,a=n&&n.hoverLineStyle,s=n&&n.labelModel,l=n&&n.hoverLabelModel;if(!n||t.hasItemOption){var u=t.getItemModel(e);o=u.getModel("lineStyle.normal").getLineStyle(),a=u.getModel("lineStyle.emphasis").getLineStyle(),s=u.getModel("label.normal"),l=u.getModel("label.emphasis")}var c=t.getItemVisual(e,"color"),h=d.retrieve(t.getItemVisual(e,"opacity"),o.opacity,1);r.useStyle(d.defaults({strokeNoScale:!0,fill:"none",stroke:c,opacity:h},o)),r.hoverStyle=a,d.each(g,function(t){var e=this.childOfName(t);e&&(e.setColor(c),e.setStyle({opacity:h}))},this);var v,m,y=s.getShallow("show"),x=l.getShallow("show"),_=this.childOfName("label");if(y||x){var b=i.getRawValue(e);m=null==b?m=t.getName(e):isFinite(b)?p.round(b):b,v=c||"#000"}if(y){var w=s.getModel("textStyle");_.setStyle({text:d.retrieve(i.getFormattedLabel(e,"normal",t.dataType),m),textFont:w.getFont(),fill:w.getTextColor()||v}),_.__textAlign=w.get("align"),_.__verticalAlign=w.get("baseline"),_.__position=s.get("position")}else _.setStyle("text","");if(x){var S=l.getModel("textStyle");_.hoverStyle={text:d.retrieve(i.getFormattedLabel(e,"emphasis",t.dataType),m),textFont:S.getFont(),fill:S.getTextColor()||v}}else _.hoverStyle={text:""};_.ignore=!y&&!x,f.setHoverStyle(this)},v.updateLayout=function(t,e){this.setLinePoints(t.getItemLayout(e))},v.setLinePoints=function(t){var e=this.childOfName("line");a(e.shape,t),e.dirty()},d.inherits(l,f.Group),t.exports=l},function(t,e,n){function i(t){return isNaN(t[0])||isNaN(t[1])}function r(t){return!i(t[0])&&!i(t[1])}function o(t){this._ctor=t||s,this.group=new a.Group}var a=n(3),s=n(56),l=o.prototype;l.updateData=function(t){var e=this._lineData,n=this.group,i=this._ctor,o=t.hostModel,a={lineStyle:o.getModel("lineStyle.normal").getLineStyle(),hoverLineStyle:o.getModel("lineStyle.emphasis").getLineStyle(),labelModel:o.getModel("label.normal"),hoverLabelModel:o.getModel("label.emphasis")};t.diff(e).add(function(e){if(r(t.getItemLayout(e))){var o=new i(t,e,a);t.setItemGraphicEl(e,o),n.add(o)}}).update(function(o,s){var l=e.getItemGraphicEl(s);return r(t.getItemLayout(o))?(l?l.updateData(t,o,a):l=new i(t,o,a),t.setItemGraphicEl(o,l),void n.add(l)):void n.remove(l)}).remove(function(t){n.remove(e.getItemGraphicEl(t))}).execute(),this._lineData=t},l.updateLayout=function(){var t=this._lineData;t.eachItemGraphicEl(function(e,n){e.updateLayout(t,n)},this)},l.remove=function(){this.group.removeAll()},t.exports=o},function(t,e,n){function i(t,e){var n=t.getItemVisual(e,"symbolSize");return n instanceof Array?n.slice():[+n,+n]}function r(t){return[t[0]/2,t[1]/2]}function o(t,e,n){u.Group.call(this),this.updateData(t,e,n)}function a(t,e){this.parent.drift(t,e)}var s=n(1),l=n(18),u=n(3),c=n(4),h=o.prototype;h._createSymbol=function(t,e,n,i){this.removeAll();var o=e.hostModel,s=e.getItemVisual(n,"color"),c=l.createSymbol(t,-1,-1,2,2,s);c.attr({z2:100,culling:!0,scale:[0,0]}),c.drift=a,u.initProps(c,{scale:r(i)},o,n),this._symbolType=t,this.add(c)},h.stopSymbolAnimation=function(t){this.childAt(0).stopAnimation(t)},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(t,e){var n=this.childAt(0);n.zlevel=t,n.z=e},h.setDraggable=function(t){var e=this.childAt(0);e.draggable=t,e.cursor=t?"move":"pointer"},h.updateData=function(t,e,n){this.silent=!1;var o=t.getItemVisual(e,"symbol")||"circle",a=t.hostModel,s=i(t,e);if(o!==this._symbolType)this._createSymbol(o,t,e,s);else{var l=this.childAt(0);u.updateProps(l,{scale:r(s)},a,e)}this._updateCommon(t,e,s,n),this._seriesModel=a};var f=["itemStyle","normal"],d=["itemStyle","emphasis"],p=["label","normal"],g=["label","emphasis"];h._updateCommon=function(t,e,n,i){var o=this.childAt(0),a=t.hostModel,l=t.getItemVisual(e,"color");"image"!==o.type&&o.useStyle({strokeNoScale:!0}),i=i||null;var h=i&&i.itemStyle,v=i&&i.hoverItemStyle,m=i&&i.symbolRotate,y=i&&i.symbolOffset,x=i&&i.labelModel,_=i&&i.hoverLabelModel,b=i&&i.hoverAnimation;if(!i||t.hasItemOption){var w=t.getItemModel(e);h=w.getModel(f).getItemStyle(["color"]),v=w.getModel(d).getItemStyle(),m=w.getShallow("symbolRotate"),y=w.getShallow("symbolOffset"),x=w.getModel(p),_=w.getModel(g),b=w.getShallow("hoverAnimation")}else v=s.extend({},v);var S=o.style;o.attr("rotation",(m||0)*Math.PI/180||0),y&&o.attr("position",[c.parsePercent(y[0],n[0]),c.parsePercent(y[1],n[1])]),o.setColor(l),o.setStyle(h);var M=t.getItemVisual(e,"opacity");null!=M&&(S.opacity=M);for(var A,T,I=t.dimensions.slice();I.length&&(A=I.pop(),T=t.getDimensionInfo(A).type,"ordinal"===T||"time"===T););null!=A&&x.getShallow("show")?(u.setText(S,x,l),S.text=s.retrieve(a.getFormattedLabel(e,"normal"),t.get(A,e))):S.text="",null!=A&&_.getShallow("show")?(u.setText(v,_,l),v.text=s.retrieve(a.getFormattedLabel(e,"emphasis"),t.get(A,e))):v.text="",o.off("mouseover").off("mouseout").off("emphasis").off("normal"),o.hoverStyle=v,u.setHoverStyle(o);var C=r(n);if(b&&a.isAnimationEnabled()){var L=function(){var t=C[1]/C[0];this.animateTo({scale:[Math.max(1.1*C[0],C[0]+3),Math.max(1.1*C[1],C[1]+3*t)]},400,"elasticOut")},D=function(){this.animateTo({scale:C},400,"elasticOut")};o.on("mouseover",L).on("mouseout",D).on("emphasis",L).on("normal",D)}},h.fadeOut=function(t){var e=this.childAt(0);this.silent=!0,e.style.text="",u.updateProps(e,{scale:[0,0]},this._seriesModel,this.dataIndex,t)},s.inherits(o,u.Group),t.exports=o},function(t,e,n){var i=n(6),r=n(1),o={},a=["x","y","z","radius","angle","single"],s=["cartesian2d","polar","singleAxis"];o.isCoordSupported=function(t){return r.indexOf(s,t)>=0},o.createNameEach=function(t,e){t=t.slice();var n=r.map(t,i.capitalFirst);e=(e||[]).slice();var o=r.map(e,i.capitalFirst);return function(i,a){r.each(t,function(t,r){for(var s={name:t,capital:n[r]},l=0;l=0}function o(t,i){var o=!1;return e(function(e){r.each(n(t,e)||[],function(t){i.records[e.name][t]&&(o=!0)})}),o}function a(t,i){i.nodes.push(t),e(function(e){r.each(n(t,e)||[],function(t){i.records[e.name][t]=!0})})}return function(n){function r(t){!i(t,s)&&o(t,s)&&(a(t,s),l=!0)}var s={nodes:[],records:{}};if(e(function(t){s.records[t.name]={}}),!n)return s;a(n,s);var l;do l=!1,t(r);while(l);return s}},t.exports=o},function(t,e,n){function i(t){__DEV__&&V.assert(t),z.call(this),this._zr=t,this.group=new F.Group,this._brushType,this._brushOption,this._panels,this._track=[],this._dragging,this._covers=[],this._creatingCover,this._creatingPanel,this._enableGlobalPan,__DEV__&&this._mounted,this._uid="brushController_"+nt++,this._handlers={},W(it,function(t,e){this._handlers[e]=V.bind(t,this)},this)}function r(t,e){var n=t._zr;t._enableGlobalPan||G.take(n,K,t._uid),W(t._handlers,function(t,e){n.on(e,t)}),t._brushType=e.brushType,t._brushOption=V.merge(V.clone(et),e,!0)}function o(t){var e=t._zr;G.release(e,K,t._uid),W(t._handlers,function(t,n){e.off(n,t)}),t._brushType=t._brushOption=null}function a(t,e){var n=rt[e.brushType].createCover(t,e);return u(n),n.__brushOption=e,t.group.add(n),n}function s(t,e){var n=h(e);return n.endCreating&&(n.endCreating(t,e),u(e)),e}function l(t,e){var n=e.__brushOption;h(e).updateCoverShape(t,e,n.range,n)}function u(t){t.traverse(function(t){t.z=X,t.z2=X})}function c(t,e){h(e).updateCommon(t,e),l(t,e)}function h(t){return rt[t.__brushOption.brushType]}function f(t,e,n){var i=t._panels;if(!i)return!0;var r;return W(i,function(t){t.contain(e,n)&&(r=t)}),r}function d(t,e){var n=t._panels;if(!n)return!0;var i=e.__brushOption.panelId;return null==i||n[i]}function p(t){var e=t._covers,n=e.length;return W(e,function(e){t.group.remove(e)},t),e.length=0,!!n}function g(t,e){var n=$(t._covers,function(t){var e=t.__brushOption,n=V.clone(e.range);return{brushType:e.brushType,panelId:e.panelId,range:n}});t.trigger("brush",n,{isEnd:!!e.isEnd,removeOnClick:!!e.removeOnClick})}function v(t){var e=t._track;if(!e.length)return!1;var n=e[e.length-1],i=e[0],r=n[0]-i[0],o=n[1]-i[1];return Z(r*r+o*o,.5)>Y}function m(t){var e=t.length-1;return e<0&&(e=0),[t[0],t[e]]}function y(t,e,n,i){var r=new F.Group;return r.add(new F.Rect({name:"main",style:w(n),silent:!0,draggable:!0,cursor:"move",drift:j(t,e,r,"nswe"),ondragend:j(g,e,{isEnd:!0})})),W(i,function(n){r.add(new F.Rect({name:n,style:{opacity:0},draggable:!0,silent:!0,invisible:!0,drift:j(t,e,r,n),ondragend:j(g,e,{isEnd:!0})}))}),r}function x(t,e,n,i){var r=i.brushStyle.lineWidth||0,o=q(r,J),a=n[0][0],s=n[1][0],l=a-r/2,u=s-r/2,c=n[0][1],h=n[1][1],f=c-o+r/2,d=h-o+r/2,p=c-a,g=h-s,v=p+r,m=g+r;b(t,e,"main",a,s,p,g),i.transformable&&(b(t,e,"w",l,u,o,m),b(t,e,"e",f,u,o,m),b(t,e,"n",l,u,v,o),b(t,e,"s",l,d,v,o),b(t,e,"nw",l,u,o,o),b(t,e,"ne",f,u,o,o),b(t,e,"sw",l,d,o,o),b(t,e,"se",f,d,o,o))}function _(t,e){var n=e.__brushOption,i=n.transformable,r=e.childAt(0);r.useStyle(w(n)),r.attr({silent:!i,cursor:i?"move":"default"}),W(["w","e","n","s","se","sw","ne","nw"],function(n){var r=e.childOfName(n),o=A(t,n);r&&r.attr({silent:!i,invisible:!i,cursor:i?tt[o]+"-resize":null})})}function b(t,e,n,i,r,o,a){var s=e.childOfName(n);s&&s.setShape(D(L(t,e,[[i,r],[i+o,r+a]])))}function w(t){return V.defaults({strokeNoScale:!0},t.brushStyle)}function S(t,e,n,i){var r=[U(t,n),U(e,i)],o=[q(t,n),q(e,i)];return[[r[0],o[0]],[r[1],o[1]]]}function M(t){return F.getTransform(t.group)}function A(t,e){if(e.length>1){e=e.split("");var n=[A(t,e[0]),A(t,e[1])];return("e"===n[0]||"w"===n[0])&&n.reverse(),n.join("")}var i={w:"left",e:"right",n:"top",s:"bottom"},r={left:"w",right:"e",top:"n",bottom:"s"},n=F.transformDirection(i[e],M(t));return r[n]}function T(t,e,n,i,r,o,a,s){var l=i.__brushOption,u=t(l.range),h=C(n,o,a);W(r.split(""),function(t){var e=Q[t];u[e[0]][e[1]]+=h[e[0]]}),l.range=e(S(u[0][0],u[1][0],u[0][1],u[1][1])),c(n,i),g(n,{isEnd:!1})}function I(t,e,n,i,r){var o=e.__brushOption.range,a=C(t,n,i);W(o,function(t){t[0]+=a[0],t[1]+=a[1]}),c(t,e),g(t,{isEnd:!1})}function C(t,e,n){var i=t.group,r=i.transformCoordToLocal(e,n),o=i.transformCoordToLocal(0,0);return[r[0]-o[0],r[1]-o[1]]}function L(t,e,n){var i=d(t,e);if(i===!0)return V.clone(n);var r=i.getBoundingRect();return V.map(n,function(t){var e=t[0];e=q(e,r.x),e=U(e,r.x+r.width);var n=t[1];return n=q(n,r.y),n=U(n,r.y+r.height),[e,n]})}function D(t){var e=U(t[0][0],t[1][0]),n=U(t[0][1],t[1][1]);return{x:e,y:n,width:q(t[0][0],t[1][0])-e,height:q(t[0][1],t[1][1])-n}}function k(t,e){var n=e.offsetX,i=e.offsetY,r=t._zr;if(t._brushType){for(var o,a=t._panels,s=t._covers,l=0;lt[1]&&t.reverse(),t}function r(t,e){for(var n=!0,i=0;i=0){n=!1;for(var o=0;o=0?(n=i.getBoundingRect().clone(),n.applyTransform(s.getTransform(i))):n=i.grid.getRect().clone(),e.push({panelId:t.panelId,rect:n})}),e},u.makeCoordInfoList=function(t,e){var n=[];return l(c,function(i){var r=t[i+"Index"];null!=r&&"none"!==r&&("all"===r||a.isArray(r)||(r=[r]),e.eachComponent({mainType:i},function(t,e){if(!("all"!==r&&a.indexOf(r,e)<0)){var o,s;"xAxis"===i||"yAxis"===i?o=t.axis.grid:s=t.coordinateSystem;for(var l,u=0,c=n.length;ue[1]&&i.reverse(),t<0&&i[0]+t0&&i[1]+t>n[1]&&(t=n[1]-i[1]),t}return t?("rigid"===i?(t=o(t,e,n),e[0]+=t,e[1]+=t):(t=o(t,e[r],n),e[r]+=t,"push"===i&&e[0]>e[1]&&(e[1-r]=e[r])),e):e}},function(t,e,n){function i(t){r.defaultEmphasis(t.label,r.LABEL_OPTIONS)}var r=n(7),o=n(1),a=n(14),s=n(6),l=s.addCommas,u=s.encodeHTML,c=n(2).extendComponentModel({type:"marker",dependencies:["series","grid","polar","geo"],init:function(t,e,n,i){if(__DEV__&&"marker"===this.type)throw new Error("Marker component is abstract component. Use markLine, markPoint, markArea instead.");this.mergeDefaultAndTheme(t,n),this.mergeOption(t,n,i.createdBySelf,!0)},isAnimationEnabled:function(){if(a.node)return!1;var t=this.__hostSeries;return this.getShallow("animation")&&t&&t.isAnimationEnabled()},mergeOption:function(t,e,n,r){var a=this.constructor,s=this.mainType+"Model";n||e.eachSeries(function(t){var n=t.get(this.mainType),l=t[s];return n&&n.data?(l?l.mergeOption(n,e,!0):(r&&i(n),o.each(n.data,function(t){t instanceof Array?(i(t[0]),i(t[1])):i(t)}),l=new a(n,this,e),o.extend(l,{mainType:this.mainType,seriesIndex:t.seriesIndex,name:t.name,createdBySelf:!0}),l.__hostSeries=t),void(t[s]=l)):void(t[s]=null)},this)},formatTooltip:function(t){var e=this.getData(),n=this.getRawValue(t),i=o.isArray(n)?o.map(n,l).join(", "):l(n),r=e.getName(t),a=u(this.name);return(null!=n||r)&&(a+="
"),r&&(a+=u(r),null!=n&&(a+=" : ")),null!=n&&(a+=u(i)),a},getData:function(){return this._data},setData:function(t){this._data=t}});o.mixin(c,r.dataFormatMixin),t.exports=c},function(t,e,n){t.exports=n(2).extendComponentView({type:"marker",init:function(){this.markerGroupMap={}},render:function(t,e,n){var i=this.markerGroupMap;for(var r in i)i.hasOwnProperty(r)&&(i[r].__keep=!1);var o=this.type+"Model";e.eachSeries(function(t){var i=t[o];i&&this.renderSeries(t,i,e,n)},this);for(var r in i)i.hasOwnProperty(r)&&!i[r].__keep&&this.group.remove(i[r].group)},renderSeries:function(){}})},function(t,e,n){function i(t){return!(isNaN(parseFloat(t.x))&&isNaN(parseFloat(t.y)))}function r(t){return!isNaN(parseFloat(t.x))&&!isNaN(parseFloat(t.y))}function o(t,e,n){var i=-1;do i=Math.max(l.getPrecision(t.get(e,n)),i),t=t.stackedOn;while(t);return i}function a(t,e,n,i,r,a){var s=[],l=v(e,i,t),u=e.indexOfNearest(i,l,!0);s[r]=e.get(n,u,!0),s[a]=e.get(i,u,!0);var c=o(e,i,u);return c>=0&&(s[a]=+s[a].toFixed(c)),s}var s=n(1),l=n(4),u=s.indexOf,c=s.curry,h={min:c(a,"min"),max:c(a,"max"),average:c(a,"average")},f=function(t,e){var n=t.getData(),i=t.coordinateSystem;if(e&&!r(e)&&!s.isArray(e.coord)&&i){var o=i.dimensions,a=d(e,n,i,t);if(e=s.clone(e),e.type&&h[e.type]&&a.baseAxis&&a.valueAxis){ var l=u(o,a.baseAxis.dim),c=u(o,a.valueAxis.dim);e.coord=h[e.type](n,a.baseDataDim,a.valueDataDim,l,c),e.value=e.coord[c]}else{for(var f=[null!=e.xAxis?e.xAxis:e.radiusAxis,null!=e.yAxis?e.yAxis:e.angleAxis],p=0;p<2;p++)if(h[f[p]]){var g=t.coordDimToDataDim(o[p])[0];f[p]=v(n,g,f[p])}e.coord=f}}return e},d=function(t,e,n,i){var r={};return null!=t.valueIndex||null!=t.valueDim?(r.valueDataDim=null!=t.valueIndex?e.getDimension(t.valueIndex):t.valueDim,r.valueAxis=n.getAxis(i.dataDimToCoordDim(r.valueDataDim)),r.baseAxis=n.getOtherAxis(r.valueAxis),r.baseDataDim=i.coordDimToDataDim(r.baseAxis.dim)[0]):(r.baseAxis=i.getBaseAxis(),r.valueAxis=n.getOtherAxis(r.baseAxis),r.baseDataDim=i.coordDimToDataDim(r.baseAxis.dim)[0],r.valueDataDim=i.coordDimToDataDim(r.valueAxis.dim)[0]),r},p=function(t,e){return!(t&&t.containData&&e.coord&&!i(e))||t.containData(e.coord)},g=function(t,e,n,i){return i<2?t.coord&&t.coord[i]:t.value},v=function(t,e,n){if("average"===n){var i=0,r=0;return t.each(e,function(t,e){isNaN(t)||(i+=t,r++)},!0),i/r}return t.getDataExtent(e,!0)["max"===n?1:0]};t.exports={dataTransform:f,dataFilter:p,dimValueGetter:g,getAxisInfo:d,numCalculate:v}},function(t,e,n){function i(t,e,n){return t.getCoordSysModel()===e}function r(t){var e,n=t.model,i=n.getFormattedLabels(),r=n.getModel("axisLabel.textStyle"),o=1,a=i.length;a>40&&(o=Math.ceil(a/40));for(var s=0;s=0&&n.push(t)}),n}t.topologicalTravel=function(t,e,r,o){function a(t){u[t].entryCount--,0===u[t].entryCount&&c.push(t)}function s(t){h[t]=!0,a(t)}if(t.length){var l=n(e),u=l.graph,c=l.noEntryList,h={};for(i.each(t,function(t){h[t]=!0});c.length;){var f=c.pop(),d=u[f],p=!!h[f];p&&(r.call(o,f,d.originalDeps.slice()),delete h[f]),i.each(d.successor,p?s:a)}i.each(h,function(){throw new Error("Circle dependency may exists")})}}},t.exports=s},function(t,e,n){var i=n(53),r=n(70),o=n(23),a=function(){this.group=new i,this.uid=r.getUID("viewComponent")};a.prototype={constructor:a,init:function(t,e){},render:function(t,e,n,i){},dispose:function(){}};var s=a.prototype;s.updateView=s.updateLayout=s.updateVisual=function(t,e,n,i){},o.enableClassExtend(a),o.enableClassManagement(a,{registerWhenExtend:!0}),t.exports=a},function(t,e){t.exports=function(t,e){var n={};e.eachRawSeriesByType(t,function(t){var i=t.getRawData(),r={};if(!e.isSeriesFiltered(t)){var o=t.getData();o.each(function(t){r[o.getRawIndex(t)]=t}),i.each(function(e){var a=r[e],s=null!=a&&o.getItemVisual(a,"color",!0);if(s)i.setItemVisual(e,"color",s);else{var l=i.getItemModel(e),u=l.get("itemStyle.normal.color")||t.getColorFromPalette(i.getName(e),n);i.setItemVisual(e,"color",u),null!=a&&o.setItemVisual(a,"color",u)}})}})}},function(t,e,n){var i=n(5),r=n(26),o={},a=Math.min,s=Math.max,l=Math.sin,u=Math.cos,c=i.create(),h=i.create(),f=i.create(),d=2*Math.PI;o.fromPoints=function(t,e,n){if(0!==t.length){var i,r=t[0],o=r[0],l=r[0],u=r[1],c=r[1];for(i=1;i1e-4)return p[0]=t-n,p[1]=e-r,g[0]=t+n,void(g[1]=e+r);if(c[0]=u(o)*n+t,c[1]=l(o)*r+e,h[0]=u(a)*n+t,h[1]=l(a)*r+e,v(p,c,h),m(g,c,h),o%=d,o<0&&(o+=d),a%=d,a<0&&(a+=d),o>a&&!s?a+=d:oo&&(f[0]=u(_)*n+t,f[1]=l(_)*r+e,v(p,f,p),m(g,f,g))},t.exports=o},function(t,e,n){var i=n(52);t.exports=function(){if(0!==i.debugMode)if(1==i.debugMode)for(var t in arguments)throw new Error(arguments[t]);else if(i.debugMode>1)for(var t in arguments);}},function(t,e){function n(t){for(var e=0;t>=c;)e|=1&t,t>>=1;return t+e}function i(t,e,n,i){var o=e+1;if(o===n)return 1;if(i(t[o++],t[e])<0){for(;o=0;)o++;return o-e}function r(t,e,n){for(n--;e>>1,r(a,t[o])<0?l=o:s=o+1;var u=i-s;switch(u){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:for(;u>0;)t[s+u]=t[s+u-1],u--}t[s]=a}}function a(t,e,n,i,r,o){var a=0,s=0,l=1;if(o(t,e[n+r])>0){for(s=i-r;l0;)a=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}else{for(s=r+1;ls&&(l=s);var u=a;a=r-l,l=r-u}for(a++;a>>1);o(t,e[n+c])>0?a=c+1:l=c}return l}function s(t,e,n,i,r,o){var a=0,s=0,l=1;if(o(t,e[n+r])<0){for(s=r+1;ls&&(l=s);var u=a;a=r-l,l=r-u}else{for(s=i-r;l=0;)a=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}for(a++;a>>1);o(t,e[n+c])<0?l=c:a=c+1}return l}function l(t,e){function n(t,e){c[y]=t,d[y]=e,y+=1}function i(){for(;y>1;){var t=y-2;if(t>=1&&d[t-1]<=d[t]+d[t+1]||t>=2&&d[t-2]<=d[t]+d[t-1])d[t-1]d[t+1])break;o(t)}}function r(){for(;y>1;){var t=y-2;t>0&&d[t-1]=h||g>=h);if(v)break;m<0&&(m=0),m+=2}if(p=m,p<1&&(p=1),1===i){for(l=0;l=0;l--)t[g+l]=t[d+l];return void(t[f]=x[c])}for(var v=p;;){var m=0,y=0,_=!1;do if(e(x[c],t[u])<0){if(t[f--]=t[u--],m++,y=0,0===--i){_=!0;break}}else if(t[f--]=x[c--],y++,m=0,1===--o){_=!0;break}while((m|y)=0;l--)t[g+l]=t[d+l];if(0===i){_=!0;break}}if(t[f--]=x[c--],1===--o){_=!0;break}if(y=o-a(t[u],x,0,o,o-1,e),0!==y){for(f-=y,c-=y,o-=y,g=f+1,d=c+1,l=0;l=h||y>=h);if(_)break;v<0&&(v=0),v+=2}if(p=v,p<1&&(p=1),1===o){for(f-=i,u-=i,g=f+1,d=u+1,l=i-1;l>=0;l--)t[g+l]=t[d+l];t[f]=x[c]}else{if(0===o)throw new Error;for(d=f-(o-1),l=0;l>>1);var x=[];m=g<120?5:g<1542?10:g<119151?19:40,c=[],d=[],this.mergeRuns=i,this.forceMergeRuns=r,this.pushRun=n}function u(t,e,r,a){r||(r=0),a||(a=t.length);var s=a-r;if(!(s<2)){var u=0;if(sf&&(d=f),o(t,r,r+d,r+u,e),u=d}h.pushRun(r,u),h.mergeRuns(),s-=u,r+=u}while(0!==s);h.forceMergeRuns()}}var c=32,h=7,f=256;t.exports=u},function(t,e,n){function i(t){r.call(this,t)}var r=n(54),o=n(9),a=n(1),s=n(391),l=new s(50);i.prototype={constructor:i,type:"image",brush:function(t,e){var n,i=this.style,r=i.image;if(i.bind(t,this,e),n="string"==typeof r?this._image:r,!n&&r){var o=l.get(r);if(!o)return n=new Image,n.onload=function(){n.onload=null;for(var t=0;t0&&(s=this.getLineLength(i)/u*1e3),s!==this._period||l!==this._loop){i.stopAnimation();var f=c;h&&(f=c(n)),i.__t>0&&(f=-s*i.__t),i.__t=0;var d=i.animate("",l).when(s,{__t:1}).delay(f).during(function(){r.updateSymbolPosition(i)});l||d.done(function(){r.remove(i)}),d.start()}this._period=s,this._loop=l}},c.getLineLength=function(t){return l.dist(t.__p1,t.__cp1)+l.dist(t.__cp1,t.__p2)},c.updateAnimationPoints=function(t,e){t.__p1=e[0],t.__p2=e[1],t.__cp1=e[2]||[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]},c.updateData=function(t,e,n){this.childAt(0).updateData(t,e,n),this._updateEffectSymbol(t,e)},c.updateSymbolPosition=function(t){var e=t.__p1,n=t.__p2,i=t.__cp1,r=t.__t,o=t.position,a=u.quadraticAt,s=u.quadraticDerivativeAt;o[0]=a(e[0],i[0],n[0],r),o[1]=a(e[1],i[1],n[1],r);var l=s(e[0],i[0],n[0],r),c=s(e[1],i[1],n[1],r);t.rotation=-Math.atan2(c,l)-Math.PI/2,t.ignore=!1},c.updateLayout=function(t,e){this.childAt(0).updateLayout(t,e);var n=t.getItemModel(e).getModel("effect");this._updateEffectAnimation(t,n,e)},a.inherits(i,r.Group),t.exports=i},function(t,e,n){function i(t,e,n){r.Group.call(this),this._createPolyline(t,e,n)}var r=n(3),o=n(1),a=i.prototype;a._createPolyline=function(t,e,n){var i=t.getItemLayout(e),o=new r.Polyline({shape:{points:i}});this.add(o),this._updateCommonStl(t,e,n)},a.updateData=function(t,e,n){var i=t.hostModel,o=this.childAt(0),a={shape:{points:t.getItemLayout(e)}};r.updateProps(o,a,i,e),this._updateCommonStl(t,e,n)},a._updateCommonStl=function(t,e,n){var i=this.childAt(0),a=t.getItemModel(e),s=t.getItemVisual(e,"color"),l=n&&n.lineStyle,u=n&&n.hoverLineStyle;n&&!t.hasItemOption||(l=a.getModel("lineStyle.normal").getLineStyle(),u=a.getModel("lineStyle.emphasis").getLineStyle()),i.useStyle(o.defaults({strokeNoScale:!0,fill:"none",stroke:s},l)),i.hoverStyle=u,r.setHoverStyle(this)},a.updateLayout=function(t,e){this.childAt(0).setShape("points",t.getItemLayout(e))},o.inherits(i,r.Group),t.exports=i},function(t,e,n){var i=n(10),r=n(349),o=n(110),a=n(17),s=n(19),l=n(1),u=n(30);t.exports=function(t,e,n,c,h){for(var f=new r(c),d=0;d "+x)),v++)}var _,b=n.get("coordinateSystem");if("cartesian2d"===b||"polar"===b)_=u(t,n,n.ecModel);else{var w=s.get(b);_=new i(a((w&&"view"!==w.type?w.dimensions||[]:[]).concat(["value"]),t),n),_.initData(t)}var S=new i(["value"],n);return S.initData(g,p),h&&h(_,S),o({mainData:_,struct:f,structAttr:"graph",datas:{node:_,edge:S},datasAttr:{node:"data",edge:"edgeData"}}),f.update(),f}},function(t,e,n){function i(t){return isNaN(t[0])||isNaN(t[1])}function r(t,e,n,r,o,a,g,v,m,y,x){for(var _=0,b=n,w=0;w=o||b<0)break;if(i(S)){if(x){b+=a;continue}break}if(b===n)t[a>0?"moveTo":"lineTo"](S[0],S[1]),h(d,S);else if(m>0){var M=b+a,A=e[M];if(x)for(;A&&i(e[M]);)M+=a,A=e[M];var T=.5,I=e[_],A=e[M];if(!A||i(A))h(p,S);else{i(A)&&!x&&(A=S),s.sub(f,A,I);var C,L;if("x"===y||"y"===y){var D="x"===y?0:1;C=Math.abs(S[D]-I[D]),L=Math.abs(S[D]-A[D])}else C=s.dist(S,I),L=s.dist(S,A);T=L/(L+C),c(p,S,f,-m*(1-T))}l(d,d,v),u(d,d,g),l(p,p,v),u(p,p,g),t.bezierCurveTo(d[0],d[1],p[0],p[1],S[0],S[1]),c(d,S,f,m*T)}else t.lineTo(S[0],S[1]);_=b,b+=a}return w}function o(t,e){var n=[1/0,1/0],i=[-(1/0),-(1/0)];if(e)for(var r=0;ri[0]&&(i[0]=o[0]),o[1]>i[1]&&(i[1]=o[1])}return{min:e?n:i,max:e?i:n}}var a=n(15),s=n(5),l=s.min,u=s.max,c=s.scaleAndAdd,h=s.copy,f=[],d=[],p=[];t.exports={Polyline:a.extend({type:"ec-polyline",shape:{points:[],smooth:0,smoothConstraint:!0,smoothMonotone:null,connectNulls:!1},style:{fill:null,stroke:"#000"},buildPath:function(t,e){var n=e.points,a=0,s=n.length,l=o(n,e.smoothConstraint);if(e.connectNulls){for(;s>0&&i(n[s-1]);s--);for(;a0&&i(n[l-1]);l--);for(;s=0&&!n[r][i];r--);if(r<0){var o=t.queryComponents({mainType:"dataZoom",subType:"select",id:i})[0];if(o){var a=o.getPercentRange();n[0][i]={dataZoomId:i,start:a[0],end:a[1]}}}}),n.push(e)},pop:function(t){var e=i(t),n=e[e.length-1];e.length>1&&e.pop();var r={};return o(n,function(t,n){for(var i=e.length-1;i>=0;i--){var t=e[i][n];if(t){r[n]=t;break}}}),r},clear:function(t){t[a]=null},count:function(t){return i(t).length}};t.exports=s},function(t,e,n){n(12).registerSubTypeDefaulter("dataZoom",function(t){return"slider"})},function(t,e,n){function i(t,e){var n=t.getItemStyle(),i=t.get("areaColor");return null!=i&&(n.fill=i),n}function r(t,e,n,i,r){n.off("click"),n.off("mousedown"),e.get("selectedMode")&&(n.on("mousedown",function(){t._mouseDownFlag=!0}),n.on("click",function(a){if(t._mouseDownFlag){t._mouseDownFlag=!1;for(var s=a.target;!s.__region;)s=s.parent;if(s){var l=s.__region,u={type:("geo"===e.mainType?"geo":"map")+"ToggleSelect",name:l.name,from:r.uid};u[e.mainType+"Id"]=e.id,i.dispatchAction(u),o(e,n)}}}))}function o(t,e){e.eachChild(function(e){e.__region&&e.trigger(t.isSelected(e.__region.name)?"emphasis":"normal")})}function a(t,e){var n=new l.Group;this._controller=new s(t.getZr(),e?n:null,null),this.group=n,this._updateGroup=e,this._mouseDownFlag}var s=n(44),l=n(3),u=n(1);a.prototype={constructor:a,draw:function(t,e,n,a,s){var c="geo"===t.mainType,h=t.getData&&t.getData();c&&e.eachComponent({mainType:"series",subType:"map"},function(e){h||e.getHostGeoModel()!==t||(h=e.getData())});var f=t.coordinateSystem,d=this.group,p=f.scale,g={position:f.position,scale:p};!d.childAt(0)||s?d.attr(g):l.updateProps(d,g,t),d.removeAll();var v=["itemStyle","normal"],m=["itemStyle","emphasis"],y=["label","normal"],x=["label","emphasis"];u.each(f.regions,function(e){var n=new l.Group,r=new l.CompoundPath({shape:{paths:[]}});n.add(r);var o,a=t.getRegionModel(e.name)||t,s=a.getModel(v),f=a.getModel(m),g=i(s,p),_=i(f,p),b=a.getModel(y),w=a.getModel(x);if(h){o=h.indexOfName(e.name);var S=h.getItemVisual(o,"color",!0);S&&(g.fill=S)}var M=b.getModel("textStyle"),A=w.getModel("textStyle");u.each(e.contours,function(t){var e=new l.Polygon({shape:{points:t}});r.shape.paths.push(e)}),r.setStyle(g),r.style.strokeNoScale=!0,r.culling=!0;var T=b.get("show"),I=w.get("show"),C=h&&isNaN(h.get("value",o)),L=h&&h.getItemLayout(o);if(c||C&&(T||I)||L&&L.showLabel){var D=h?o:e.name,k=t.getFormattedLabel(D,"normal"),P=t.getFormattedLabel(D,"emphasis"),E=new l.Text({style:{text:T?k||e.name:"",fill:M.getTextColor(),textFont:M.getFont(),textAlign:"center",textVerticalAlign:"middle"},hoverStyle:{text:I?P||e.name:"",fill:A.getTextColor(),textFont:A.getFont()},position:e.center.slice(),scale:[1/p[0],1/p[1]],z2:10,silent:!0});n.add(E)}if(h)h.setItemGraphicEl(o,n);else{var a=t.getRegionModel(e.name);r.eventData={componentType:"geo",geoIndex:t.componentIndex,name:e.name,region:a&&a.option||{}}}n.__region=e,l.setHoverStyle(n,_,{hoverSilentOnTouch:!!t.get("selectedMode")}),d.add(n)}),this._updateController(t,e,n),r(this,t,d,n,a),o(t,d)},remove:function(){this.group.removeAll(),this._controller.dispose()},_updateController:function(t,e,n){function i(){var e={type:"geoRoam",componentType:a};return e[a+"Id"]=t.id,e}var r=t.coordinateSystem,o=this._controller;o.zoomLimit=t.get("scaleLimit"),o.zoom=r.getZoom(),o.enable(t.get("roam")||!1);var a=t.mainType;o.off("pan").on("pan",function(t,e){this._mouseDownFlag=!1,n.dispatchAction(u.extend(i(),{dx:t,dy:e}))},this),o.off("zoom").on("zoom",function(t,e,r){if(this._mouseDownFlag=!1,n.dispatchAction(u.extend(i(),{zoom:t,originX:e,originY:r})),this._updateGroup){var o=this.group,a=o.scale;o.traverse(function(t){"text"===t.type&&t.attr("scale",[1/a[0],1/a[1]])})}},this),o.setContainsPoint(function(t,e){return r.getViewRectAfterRoam().contain(t,e)})}},t.exports=a},function(t,e,n){function i(t){return t[r]||(t[r]={})}var r="\0_ec_interaction_mutex",o={take:function(t,e,n){i(t)[e]=n},release:function(t,e,n){var r=i(t);r[e]===n&&(r[e]=null)},isTaken:function(t,e){return!!i(t)[e]}};n(2).registerAction({type:"takeGlobalCursor",event:"globalCursorTaken",update:"update"},function(){}),t.exports=o},function(t,e,n){function i(t,e,n){r.positionElement(t,e.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()},e.get("padding"))}var r=n(8),o=n(6),a=n(3);t.exports={layout:function(t,e,n){var o=r.getLayoutRect(e.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()},e.get("padding"));r.box(e.get("orient"),t,e.get("itemGap"),o.width,o.height),i(t,e,n)},addBackground:function(t,e){var n=o.normalizeCssArray(e.get("padding")),i=t.getBoundingRect(),r=e.getItemStyle(["color","opacity"]); r.fill=e.get("backgroundColor");var s=new a.Rect({shape:{x:i.x-n[3],y:i.y-n[0],width:i.width+n[1]+n[3],height:i.height+n[0]+n[2]},style:r,silent:!0,z2:-1});a.subPixelOptimizeRect(s),t.add(s)}}},function(t,e,n){n(109),n(335),n(286);var i=n(2),r=n(1);i.extendComponentView({type:"parallel",render:function(t,e,n){var i=n.getZr();if(!this.__onMouseDown){var o;i.on("mousedown",this.__onMouseDown=function(t){o=[t.offsetX,t.offsetY]}),i.on("mouseup",this.__onMouseUp=function(e){var i=[e.offsetX,e.offsetY],a=Math.pow(o[0]-i[0],2)+Math.pow(o[1]-i[1],2);if(t.get("axisExpandable")&&!(a>5)){var s=t.coordinateSystem,l=s.findClosestAxisDim(i);if(l){var u=r.indexOf(s.dimensions,l);n.dispatchAction({type:"parallelAxisExpand",axisExpandCenter:u})}}})}},dispose:function(t,e){e.getZr().off(this.__onMouseDown),e.getZr().off(this.__onMouseUp)}}),i.registerPreprocessor(n(336))},function(t,e,n){n(348),n(250),n(345),n(2).extendComponentView({type:"single"})},function(t,e,n){var i=n(2),r=n(1),o=n(14),a=n(114),s=n(28),l=n(51),u=s.mapVisual,c=n(7),h=s.eachVisual,f=n(4),d=r.isArray,p=r.each,g=f.asc,v=f.linearMap,m=r.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(t,e,n){this._dataExtent,this.targetVisuals={},this.controllerVisuals={},this.textStyleModel,this.itemSize,this.mergeDefaultAndTheme(t,n)},optionUpdated:function(t,e){var n=this.option;o.canvasSupported||(n.realtime=!1),!e&&l.replaceVisualOption(n,t,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},resetVisual:function(t){var e=this.stateList;t=r.bind(t,this),this.controllerVisuals=l.createVisualMappings(this.option.controller,e,t),this.targetVisuals=l.createVisualMappings(this.option.target,e,t)},resetTargetSeries:function(){var t=this.option,e=null==t.seriesIndex;t.seriesIndex=e?[]:c.normalizeToArray(t.seriesIndex),e&&this.ecModel.eachSeries(function(e,n){t.seriesIndex.push(n)})},eachTargetSeries:function(t,e){r.each(this.option.seriesIndex,function(n){t.call(e,this.ecModel.getSeriesByIndex(n))},this)},isTargetSeries:function(t){var e=!1;return this.eachTargetSeries(function(n){n===t&&(e=!0)}),e},formatValueText:function(t,e,n){function i(t){return t===u[0]?"min":t===u[1]?"max":(+t).toFixed(l)}var o,a,s=this.option,l=s.precision,u=this.dataBound,c=s.formatter;return n=n||["<",">"],r.isArray(t)&&(t=t.slice(),o=!0),a=e?t:o?[i(t[0]),i(t[1])]:i(t),r.isString(c)?c.replace("{value}",o?a[0]:a).replace("{value2}",o?a[1]:a):r.isFunction(c)?o?c(t[0],t[1]):c(t):o?t[0]===u[0]?n[0]+" "+a[1]:t[1]===u[1]?n[1]+" "+a[0]:a[0]+" - "+a[1]:a},resetExtent:function(){var t=this.option,e=g([t.min,t.max]);this._dataExtent=e},getDataDimension:function(t){var e=this.option.dimension;return null!=e?e:t.dimensions.length-1},getExtent:function(){return this._dataExtent.slice()},completeVisualOption:function(){function t(t){d(i.color)&&!t.inRange&&(t.inRange={color:i.color.slice().reverse()}),t.inRange=t.inRange||{color:y},p(this.stateList,function(e){var n=t[e];if(r.isString(n)){var i=a.get(n,"active",f);i?(t[e]={},t[e][n]=i):delete t[e]}},this)}function e(t,e,n){var i=t[e],r=t[n];i&&!r&&(r=t[n]={},p(i,function(t,e){if(s.isValidType(e)){var n=a.get(e,"inactive",f);null!=n&&(r[e]=n,"color"!==e||r.hasOwnProperty("opacity")||r.hasOwnProperty("colorAlpha")||(r.opacity=[0,0]))}}))}function n(t){var e=(t.inRange||{}).symbol||(t.outOfRange||{}).symbol,n=(t.inRange||{}).symbolSize||(t.outOfRange||{}).symbolSize,i=this.get("inactiveColor");p(this.stateList,function(o){var a=this.itemSize,s=t[o];s||(s=t[o]={color:f?i:[i]}),null==s.symbol&&(s.symbol=e&&r.clone(e)||(f?"roundRect":["roundRect"])),null==s.symbolSize&&(s.symbolSize=n&&r.clone(n)||(f?a[0]:[a[0],a[0]])),s.symbol=u(s.symbol,function(t){return"none"===t||"square"===t?"roundRect":t});var l=s.symbolSize;if(null!=l){var c=-(1/0);h(l,function(t){t>c&&(c=t)}),s.symbolSize=u(l,function(t){return v(t,[0,c],[0,a[0]],!0)})}},this)}var i=this.option,o={inRange:i.inRange,outOfRange:i.outOfRange},l=i.target||(i.target={}),c=i.controller||(i.controller={});r.merge(l,o),r.merge(c,o);var f=this.isCategory();t.call(this,l),t.call(this,c),e.call(this,l,"inRange","outOfRange"),n.call(this,c)},resetItemSize:function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},isCategory:function(){return!!this.option.categories},setSelected:m,getValueState:m,getVisualMeta:m});t.exports=x},function(t,e,n){var i=n(1),r=n(3),o=n(6),a=n(8),s=n(2),l=n(28);t.exports=s.extendComponentView({type:"visualMap",autoPositionValues:{left:1,right:1,top:1,bottom:1},init:function(t,e){this.ecModel=t,this.api=e,this.visualMapModel},render:function(t,e,n,i){return this.visualMapModel=t,t.get("show")===!1?void this.group.removeAll():void this.doRender.apply(this,arguments)},renderBackground:function(t){var e=this.visualMapModel,n=o.normalizeCssArray(e.get("padding")||0),i=t.getBoundingRect();t.add(new r.Rect({z2:-1,silent:!0,shape:{x:i.x-n[3],y:i.y-n[0],width:i.width+n[3]+n[1],height:i.height+n[0]+n[2]},style:{fill:e.get("backgroundColor"),stroke:e.get("borderColor"),lineWidth:e.get("borderWidth")}}))},getControllerVisual:function(t,e,n){function r(t){return u[t]}function o(t,e){u[t]=e}n=n||{};var a=n.forceState,s=this.visualMapModel,u={};if("symbol"===e&&(u.symbol=s.get("itemSymbol")),"color"===e){var c=s.get("contentColor");u.color=c}var h=s.controllerVisuals[a||s.getValueState(t)],f=l.prepareVisualTypes(h);return i.each(f,function(i){var a=h[i];n.convertOpacityToAlpha&&"opacity"===i&&(i="colorAlpha",a=h.__alphaForOpacity),l.dependsOn(i,e)&&a&&a.applyVisual(t,r,o)}),u[e]},positionGroup:function(t){var e=this.visualMapModel,n=this.api;a.positionElement(t,e.getBoxLayoutParams(),{width:n.getWidth(),height:n.getHeight()})},doRender:i.noop})},function(t,e,n){var i=n(1),r=n(8),o={getItemAlign:function(t,e,n){var i=t.option,o=i.align;if(null!=o&&"auto"!==o)return o;for(var a={width:e.getWidth(),height:e.getHeight()},s="horizontal"===i.orient?1:0,l=[["left","right","width"],["top","bottom","height"]],u=l[s],c=[0,null,10],h={},f=0;f<3;f++)h[l[1-s][f]]=c[f],h[u[f]]=2===f?n[0]:i[u[f]];var d=[["x","width",3],["y","height",0]][s],p=r.getLayoutRect(h,a,i.padding);return u[(p.margin[d[2]]||0)+p[d[0]]+.5*p[d[1]]<.5*a[d[1]]?0:1]},convertDataIndex:function(t){return i.each(t||[],function(e){null!=t.dataIndex&&(t.dataIndexInside=t.dataIndex,t.dataIndex=null)}),t}};t.exports=o},function(t,e,n){function i(t,e){return t&&t.hasOwnProperty&&t.hasOwnProperty(e)}var r=n(1),o=r.each;t.exports=function(t){var e=t&&t.visualMap;r.isArray(e)||(e=e?[e]:[]),o(e,function(t){if(t){i(t,"splitList")&&!i(t,"pieces")&&(t.pieces=t.splitList,delete t.splitList);var e=t.pieces;e&&r.isArray(e)&&o(e,function(t){r.isObject(t)&&(i(t,"start")&&!i(t,"min")&&(t.min=t.start),i(t,"end")&&!i(t,"max")&&(t.max=t.end))})}})}},function(t,e,n){n(12).registerSubTypeDefaulter("visualMap",function(t){return t.categories||(t.pieces?t.pieces.length>0:t.splitNumber>0)&&!t.calculable?"piecewise":"continuous"})},function(t,e,n){function i(t,e){t.eachTargetSeries(function(e){var n=e.getData();s.applyVisual(t.stateList,t.targetVisuals,n,t.getValueState,t,t.getDataDimension(n))})}function r(t){t.eachSeries(function(e){var n=e.getData(),i=[];t.eachComponent("visualMap",function(t){if(t.isTargetSeries(e)){var r=t.getVisualMeta(u.bind(o,null,e,t))||{stops:[],outerColors:[]};r.dimension=t.getDataDimension(n),i.push(r)}}),e.getData().setVisual("visualMeta",i)})}function o(t,e,n,i){function r(t){return u[t]}function o(t,e){u[t]=e}for(var a=e.targetVisuals[i],s=l.prepareVisualTypes(a),u={color:t.getData().getVisual("color")},c=0,h=s.length;c=0?"p":"n",m=v[n],y=l[s][n][c],x=u[s][n][c];d.isHorizontal()?(i=y,r=m[1]+h,o=m[0]-x,a=f,u[s][n][c]+=o,Math.abs(o)=n.length)return e;for(var o=-1,a=e.length,s=n[i++],l={},u={};++o=n.length)return t;var a=[],s=i[o++];return r.each(t,function(t,n){a.push({key:n,values:e(t,o)})}),s?a.sort(function(t,e){return s(t.key,e.key)}):a}var n=[],i=[];return{key:function(t){return n.push(t),this},sortKeys:function(t){return i[n.length-1]=t,this},entries:function(n){return e(t(n,0),0)}}}var r=n(1);t.exports=i},function(t,e,n){var i=n(1),r={get:function(t,e,n){var r=i.clone((o[t]||{})[e]);return n&&i.isArray(r)?r[r.length-1]:r}},o={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]}};t.exports=r},function(t,e){"use strict";var n=t.exports={};n.isIE=function(t){function e(){var t=navigator.userAgent.toLowerCase();return t.indexOf("msie")!==-1||t.indexOf("trident")!==-1||t.indexOf(" edge/")!==-1}return!(!e()||t&&t!==function(){var t,e=3,n=document.createElement("div"),i=n.getElementsByTagName("i");do n.innerHTML="";while(i[0]);return e>4?e:t}())},n.isLegacyOpera=function(){return!!window.opera}},function(t,e){"use strict";(t.exports={}).forEach=function(t,e){for(var n=0;n1)for(var n=1;n.5?e:t}function s(t,e,n,i,r){var a=t.length;if(1==r)for(var s=0;sr)t.length=r;else for(var o=i;o=0&&!(T[n]<=e);n--);n=Math.min(n,x-2)}else{for(n=F;ne);n++);n=Math.min(n-1,x-2)}F=n,G=e;var i=T[n+1]-T[n];if(0!==i)if(R=(e-T[n])/i,m)if(z=I[n],N=I[0===n?n:n-1],V=I[n>x-2?x-1:n+1],B=I[n>x-3?x-1:n+2],w)c(N,z,V,B,R,R*R,R*R*R,f(t,r),A);else{var l;if(S)l=c(N,z,V,B,R,R*R,R*R*R,H,1),l=d(H);else{if(M)return a(z,V,R);l=h(N,z,V,B,R,R*R,R*R*R)}p(t,r,l)}else if(w)s(I[n],I[n+1],R,f(t,r),A);else{var l;if(S)s(I[n],I[n+1],R,H,1),l=d(H);else{if(M)return a(I[n],I[n+1],R);l=o(I[n],I[n+1],R)}p(t,r,l)}},W=new g({target:t._target,life:_,loop:t._loop,delay:t._delay,onframe:j,ondestroy:n});return e&&"spline"!==e&&(W.easing=e),W}}}var g=n(385),v=n(21),m=n(1),y=m.isArrayLike,x=Array.prototype.slice,_=function(t,e,n,o){this._tracks={},this._target=t,this._loop=e||!1,this._getter=n||i,this._setter=o||r,this._clipCount=0,this._delay=0,this._doneList=[],this._onframeList=[],this._clipList=[]};_.prototype={when:function(t,e){var n=this._tracks;for(var i in e)if(e.hasOwnProperty(i)){if(!n[i]){n[i]=[];var r=this._getter(this._target,i);if(null==r)continue;0!==t&&n[i].push({time:0,value:f(r)})}n[i].push({time:t,value:e[i]})}return this},during:function(t){return this._onframeList.push(t),this},_doneCallback:function(){this._tracks={},this._clipList.length=0;for(var t=this._doneList,e=t.length,n=0;ne+s&&a>i+s||at+s&&o>n+s||oe+c&&u>r+c&&u>a+c||ut+c&&l>n+c&&l>o+c||le&&o>i||or?a:0}},function(t,e){var n=2311;t.exports=function(){return n++}},function(t,e,n){"use strict";var i=n(1),r=n(55),o=function(t,e,n,i,o,a){this.x=null==t?0:t,this.y=null==e?0:e,this.x2=null==n?1:n,this.y2=null==i?0:i,this.type="linear",this.global=a||!1,r.call(this,o)};o.prototype={constructor:o},i.inherits(o,r),t.exports=o},function(t,e){var n=function(t,e){this.image=t,this.repeat=e,this.type="pattern"};n.prototype.getCanvasPattern=function(t){return this._canvasPattern||(this._canvasPattern=t.createPattern(this.image,this.repeat))},t.exports=n},function(t,e){function n(t,e,n){var i=e.x,r=e.x2,o=e.y,a=e.y2;return e.global||(i=i*n.width+n.x,r=r*n.width+n.x,o=o*n.height+n.y,a=a*n.height+n.y),t.createLinearGradient(i,o,r,a)}function i(t,e,n){var i=n.width,r=n.height,o=Math.min(i,r),a=e.x,s=e.y,l=e.r;return e.global||(a=a*i+n.x,s=s*r+n.y,l*=o),t.createRadialGradient(a,s,0,a,s,l)}var r=[["shadowBlur",0],["shadowOffsetX",0],["shadowOffsetY",0],["shadowColor","#000"],["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]],o=function(t){this.extendFrom(t)};o.prototype={constructor:o,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",textOffset:null,textBaseline:null,textAlign:null,textVerticalAlign:null,textDistance:5,textShadowBlur:0,textShadowOffsetX:0,textShadowOffsetY:0,textTransform:!1,textRotation:0,blend:null,bind:function(t,e,n){for(var i=this,o=n&&n.style,a=!o,s=0;s0},extendFrom:function(t,e){if(t){var n=this;for(var i in t)!t.hasOwnProperty(i)||!e&&n.hasOwnProperty(i)||(n[i]=t[i])}},set:function(t,e){"string"==typeof t?this[t]=e:this.extendFrom(t,!0)},clone:function(){var t=new this.constructor;return t.extendFrom(this,!0),t},getGradient:function(t,e,r){for(var o="radial"===e.type?i:n,a=o(t,e,r),s=e.colorStops,l=0;l=2){if(a&&"spline"!==a){var s=r(o,a,n,e.smoothConstraint);t.moveTo(o[0][0],o[0][1]);for(var l=o.length,u=0;u<(n?l:l-1);u++){var c=s[2*u],h=s[2*u+1],f=o[(u+1)%l];t.bezierCurveTo(c[0],c[1],h[0],h[1],f[0],f[1])}}else{"spline"===a&&(o=i(o,n)),t.moveTo(o[0][0],o[0][1]);for(var u=1,d=o.length;u=0?parseFloat(t)/100*e:parseFloat(t):t}var r=n(25),o=n(9),a=new o,s=function(){};s.prototype={constructor:s,drawRectText:function(t,e,n){var o=this.style,s=o.text;if(null!=s&&(s+=""),s){t.save();var l,u,c=o.textPosition,h=o.textOffset,f=o.textDistance,d=o.textAlign,p=o.textFont||o.font,g=o.textBaseline,v=o.textVerticalAlign;n=n||r.getBoundingRect(s,p,d,g);var m=this.transform;if(o.textTransform?this.setTransform(t):m&&(a.copy(e),a.applyTransform(m),e=a),c instanceof Array){if(l=e.x+i(c[0],e.width),u=e.y+i(c[1],e.height),d=d||"left",g=g||"top",v){switch(v){case"middle":u-=n.height/2-n.lineHeight/2;break;case"bottom":u-=n.height-n.lineHeight/2;break;default:u+=n.lineHeight/2}g="middle"}}else{var y=r.adjustTextPositionOnRect(c,e,n,f);l=y.x,u=y.y,d=d||y.textAlign,g=g||y.textBaseline}h&&(l+=h[0],u+=h[1]),t.textAlign=d||"left",t.textBaseline=g||"alphabetic";var x=o.textFill,_=o.textStroke;x&&(t.fillStyle=x),_&&(t.strokeStyle=_),t.font=p||"12px sans-serif",t.shadowBlur=o.textShadowBlur,t.shadowColor=o.textShadowColor||"transparent",t.shadowOffsetX=o.textShadowOffsetX,t.shadowOffsetY=o.textShadowOffsetY;var b=s.split("\n");o.textRotation&&(m&&t.translate(m[4],m[5]),t.rotate(o.textRotation),m&&t.translate(-m[4],-m[5]));for(var w=0;ws||t<-5e-5}var r=n(20),o=n(5),a=r.identity,s=5e-5,l=function(t){t=t||{},t.position||(this.position=[0,0]),null==t.rotation&&(this.rotation=0),t.scale||(this.scale=[1,1]),this.origin=this.origin||null},u=l.prototype;u.transform=null,u.needLocalTransform=function(){return i(this.rotation)||i(this.position[0])||i(this.position[1])||i(this.scale[0]-1)||i(this.scale[1]-1)},u.updateTransform=function(){var t=this.parent,e=t&&t.transform,n=this.needLocalTransform(),i=this.transform;return n||e?(i=i||r.create(),n?this.getLocalTransform(i):a(i),e&&(n?r.mul(i,t.transform,i):r.copy(i,t.transform)),this.transform=i,this.invTransform=this.invTransform||r.create(),void r.invert(this.invTransform,i)):void(i&&a(i))},u.getLocalTransform=function(t){t=t||[],a(t);var e=this.origin,n=this.scale,i=this.rotation,o=this.position;return e&&(t[4]-=e[0],t[5]-=e[1]),r.scale(t,t,n),i&&r.rotate(t,t,i),e&&(t[4]+=e[0],t[5]+=e[1]),t[4]+=o[0],t[5]+=o[1],t},u.setTransform=function(t){var e=this.transform,n=t.dpr||1;e?t.setTransform(n*e[0],n*e[1],n*e[2],n*e[3],n*e[4],n*e[5]):t.setTransform(n,0,0,n,0,0)},u.restoreTransform=function(t){var e=(this.transform,t.dpr||1);t.setTransform(e,0,0,e,0,0)};var c=[];u.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(r.mul(c,t.invTransform,e),e=c);var n=e[0]*e[0]+e[1]*e[1],o=e[2]*e[2]+e[3]*e[3],a=this.position,s=this.scale;i(n-1)&&(n=Math.sqrt(n)),i(o-1)&&(o=Math.sqrt(o)),e[0]<0&&(n=-n),e[3]<0&&(o=-o),a[0]=e[4],a[1]=e[5],s[0]=n,s[1]=o,this.rotation=Math.atan2(-e[1]/o,e[0]/n)}},u.getGlobalScale=function(){var t=this.transform;if(!t)return[1,1];var e=Math.sqrt(t[0]*t[0]+t[1]*t[1]),n=Math.sqrt(t[2]*t[2]+t[3]*t[3]);return t[0]<0&&(e=-e),t[3]<0&&(n=-n),[e,n]},u.transformCoordToLocal=function(t,e){var n=[t,e],i=this.invTransform;return i&&o.applyTransform(n,n,i),n},u.transformCoordToGlobal=function(t,e){var n=[t,e],i=this.transform;return i&&o.applyTransform(n,n,i),n},t.exports=l},function(t,e,n){if(!n(14).canvasSupported){var i,r="urn:schemas-microsoft-com:vml",o=window,a=o.document,s=!1;try{!a.namespaces.zrvml&&a.namespaces.add("zrvml",r),i=function(t){return a.createElement("')}}catch(t){i=function(t){return a.createElement("<"+t+' xmlns="'+r+'" class="zrvml">')}}var l=function(){if(!s){s=!0;var t=a.styleSheets;t.length<31?a.createStyleSheet().addRule(".zrvml","behavior:url(#default#VML)"):t[0].addRule(".zrvml","behavior:url(#default#VML)")}};t.exports={doc:a,initVML:l,createNode:i}}},function(t,e,n){function i(t){delete d[t]}var r=n(126),o=n(14),a=n(1),s=n(380),l=n(383),u=n(384),c=n(392),h=!o.canvasSupported,f={canvas:n(382)},d={},p={};p.version="3.3.0",p.init=function(t,e){var n=new g(r(),t,e);return d[n.id]=n,n},p.dispose=function(t){if(t)t.dispose();else{for(var e in d)d.hasOwnProperty(e)&&d[e].dispose();d={}}return p},p.getInstance=function(t){return d[t]},p.registerPainter=function(t,e){f[t]=e};var g=function(t,e,n){n=n||{},this.dom=e,this.id=t;var i=this,r=new l,d=n.renderer;if(h){if(!f.vml)throw new Error("You need to require 'zrender/vml/vml' to support IE8");d="vml"}else d&&f[d]||(d="canvas");var p=new f[d](e,r,n);this.storage=r,this.painter=p;var g=o.node?null:new c(p.getViewportRoot());this.handler=new s(r,p,g,p.root),this.animation=new u({stage:{update:a.bind(this.flush,this)}}),this.animation.start(),this._needsRefresh;var v=r.delFromMap,m=r.addToMap;r.delFromMap=function(t){var e=r.get(t);v.call(r,t),e&&e.removeSelfFromZr(i)},r.addToMap=function(t){m.call(r,t),t.addSelfToZr(i)}};g.prototype={constructor:g,getId:function(){return this.id},add:function(t){this.storage.addRoot(t),this._needsRefresh=!0},remove:function(t){this.storage.delRoot(t),this._needsRefresh=!0},configLayer:function(t,e){this.painter.configLayer(t,e),this._needsRefresh=!0},refreshImmediately:function(){this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1},refresh:function(){this._needsRefresh=!0},flush:function(){this._needsRefresh&&this.refreshImmediately(),this._needsRefreshHover&&this.refreshHoverImmediately()},addHover:function(t,e){this.painter.addHover&&(this.painter.addHover(t,e),this.refreshHover())},removeHover:function(t){this.painter.removeHover&&(this.painter.removeHover(t),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(t){t=t||{},this.painter.resize(t.width,t.height),this.handler.resize()},clearAnimation:function(){this.animation.clear()},getWidth:function(){return this.painter.getWidth()},getHeight:function(){return this.painter.getHeight()},pathToImage:function(t,e,n){var i=r();return this.painter.pathToImage(i,t,e,n)},setCursorStyle:function(t){this.handler.setCursorStyle(t)},on:function(t,e,n){this.handler.on(t,e,n)},off:function(t,e){this.handler.off(t,e)},trigger:function(t,e){this.handler.trigger(t,e)},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)}},t.exports=p},function(t,e){"use strict";var n=["click","dblclick","mouseover","mouseout","mousedown","mouseup","globalout","legendselectchanged","legendselected","legendunselected","datazoom","datarangeselected","timelinechanged","timelineplaychanged","restore","dataviewchanged","magictypechanged","geoselectchanged","geoselected","geounselected","pieselectchanged","pieselected","pieunselected","mapselectchanged","mapselected","mapunselected","axisareaselected","brush","brushselected"];e=t.exports=function(t,e){return{name:"IEcharts",props:{className:{type:String,required:!1,default:"vue-echarts"},style:{type:Object,required:!1,default:function(){return{width:"100%",height:"100%"}}},theme:{type:String,required:!1},group:{type:String,required:!1},option:{type:Object,required:!0},initOpts:{type:Object,required:!1},notMerge:{type:Boolean,required:!1,default:!1},lazyUpdate:{type:Boolean,required:!1,default:!1},loading:{type:Boolean,required:!1,default:!1},loadingOpts:{type:Object,required:!1},resizable:{type:Boolean,required:!1,default:!1}},data:function(){return{insResize:null,instance:null,watches:{loading:null,option:null,group:null}}},computed:{width:{cache:!1,getter:function(){return this.instance.getWidth()}},height:{cache:!1,getter:function(){return this.instance.getHeight()}},isDisposed:{cache:!1,getter:function(){return this.instance.isDisposed()}}},watch:{loading:{handler:function(t){this.ifLoading(t)},deep:!1},option:{handler:function(t){var e=this;e.instance.setOption(t,e.notMerge,e.lazyUpdate)},deep:!0},group:{handler:function(t){this.instance.group=t},deep:!1}},methods:{initResize:function(t){var n=this;n.resizable&&"function"==typeof e&&(n.insResize=e({strategy:"scroll"}),n.insResize.listenTo(t,function(t){n.resize()}))},init:function(){var e=this;if(!e.instance){var n=e.$el,i=t.getInstanceByDom(n);i||(i=t.init(n,e.theme,e.initOpts)),i.group=e.group,e.instance=i,e.$emit("ready",i,t),e.$nextTick(function(){e.ifLoading(e.loading),e.update(),e.bind(),e.initResize(n)})}},bind:function(){var e=this,i=function(n){e.instance.on(n,function(i){e.$emit(n,i,e.instance,t)})};if(e._events){for(var r in e._events)if(Object.prototype.hasOwnProperty.call(e._events,r)){var o=r.toLowerCase();n.indexOf(o)>-1&&i(o)}}else for(var a=0,s=n.length;a-1&&t.instance.off(i)}}else for(var r=0,o=n.length;ro?o=t:t0?1:-1,a=i.height>0?1:-1;return{x:i.x+o*r/2,y:i.y+a*r/2,width:i.width-o*r,height:i.height-a*r}}function a(t,e,n,i,r,o,a){var s=e.getItemVisual(n,"color"),h=e.getItemVisual(n,"opacity"),f=i.getModel("itemStyle.normal"),d=i.getModel("itemStyle.emphasis").getBarItemStyle();t.setShape("r",f.get("barBorderRadius")||0),t.useStyle(l.defaults({fill:s,opacity:h},f.getBarItemStyle()));var p=a?r.height>0?"bottom":"top":r.width>0?"left":"right";c.setLabel(t.style,d,i,s,o,n,p),u.setHoverStyle(t,d)}function s(t,e){var n=t.get(h)||0;return Math.min(n,Math.abs(e.width),Math.abs(e.height))}var l=n(1),u=n(3),c=n(81),h=["itemStyle","normal","barBorderWidth"];l.extend(n(11).prototype,n(147));var f=n(2).extendChartView({type:"bar",render:function(t,e,n){return"cartesian2d"===t.get("coordinateSystem")&&this._renderOnCartesian(t,e,n),this.group},dispose:l.noop,_renderOnCartesian:function(t,e,n){var s=this.group,l=t.getData(),c=this._data,h=t.coordinateSystem,f=h.getBaseAxis(),d=f.isHorizontal(),p=t.isAnimationEnabled()?t:null;l.diff(c).add(function(e){if(l.hasValue(e)){var n=l.getItemModel(e),r=o(l,e,n),u=i(l,e,n,r,d,p);l.setItemGraphicEl(e,u),s.add(u),a(u,l,e,n,r,t,d)}}).update(function(e,n){var r=c.getItemGraphicEl(n);if(!l.hasValue(e))return void s.remove(r);var h=l.getItemModel(e),f=o(l,e,h);r?u.updateProps(r,{shape:f},p,e):r=i(l,e,h,f,d,p,!0),l.setItemGraphicEl(e,r),s.add(r),a(r,l,e,h,f,t,d)}).remove(function(t){var e=c.getItemGraphicEl(t);e&&r(t,p,e)}).execute(),this._data=l},remove:function(t,e){var n=this.group,i=this._data;t.get("animation")?i&&i.eachItemGraphicEl(function(e){r(e.dataIndex,t,e)}):n.removeAll()}});t.exports=f},function(t,e,n){var i=n(80).extend({type:"series.pictorialBar",dependencies:["grid"],defaultOption:{symbol:"circle",symbolSize:null,symbolRotate:null,symbolPosition:null,symbolOffset:null,symbolMargin:null,symbolRepeat:!1,symbolRepeatDirection:"end",symbolClip:!1,symbolBoundingData:null,symbolPatternSize:400,barGap:"-100%",progressive:0,hoverAnimation:!1},getInitialData:function(t){return t.stack=null,i.superApply(this,"getInitialData",arguments)}});t.exports=i},function(t,e,n){function i(t,e,n,i){var l=t.getItemLayout(e),u=n.get("symbolRepeat"),c=n.get("symbolClip"),h=n.get("symbolPosition")||"start",f=n.get("symbolRotate"),d=(f||0)*Math.PI/180||0,p=n.get("symbolPatternSize")||2,g=n.isAnimationEnabled(),v={dataIndex:e,layout:l,itemModel:n,symbolType:t.getItemVisual(e,"symbol")||"circle",color:t.getItemVisual(e,"color"),symbolClip:c,symbolRepeat:u,symbolRepeatDirection:n.get("symbolRepeatDirection"),symbolPatternSize:p,rotation:d,animationModel:g?n:null,hoverAnimation:g&&n.get("hoverAnimation"),z2:n.getShallow("z",!0)||0};r(n,u,l,i,v),o(t,e,l,u,c,v.boundingLength,v.pxSign,p,i,v),a(n,v.symbolScale,d,i,v);var m=v.symbolSize,y=n.get("symbolOffset");return A.isArray(y)&&(y=[D(y[0],m[0]),D(y[1],m[1])]),s(n,m,l,u,c,y,h,v.valueLineWidth,v.boundingLength,v.repeatCutLength,i,v),v}function r(t,e,n,i,r){var o=i.valueDim,a=t.get("symbolBoundingData"),s=i.coordSys.getOtherAxis(i.coordSys.getBaseAxis()),l=s.toGlobalCoord(s.dataToCoord(0)),u=r.boundingLength=null!=a?s.toGlobalCoord(s.dataToCoord(s.scale.parse(a)))-l:e?i.coordSysExtent[o.index][1-+(n[o.wh]<=0)]-l:n[o.wh];e&&(r.repeatCutLength=n[o.wh]),r.pxSign=u>0?1:u<0?-1:0}function o(t,e,n,i,r,o,a,s,l,u){var c=l.valueDim,h=l.categoryDim,f=Math.abs(n[h.wh]),d=t.getItemVisual(e,"symbolSize");A.isArray(d)?d=d.slice():(null==d&&(d="100%"),d=[d,d]),d[h.index]=D(d[h.index],f),d[c.index]=D(d[c.index],i?f:Math.abs(o)),u.symbolSize=d,(u.symbolScale=[d[0]/s,d[1]/s])[c.index]*=(l.isHorizontal?-1:1)*a}function a(t,e,n,i,r){var o=t.get(k)||0;o&&(E.attr({scale:e.slice(),rotation:n}),E.updateTransform(),o/=E.getLineScale(),o*=e[i.valueDim.index]),r.valueLineWidth=o}function s(t,e,n,i,r,o,a,s,l,u,c,h){var f=c.categoryDim,d=c.valueDim,p=h.pxSign,g=Math.max(e[d.index]+s,0),v=g;if(i){var m=Math.abs(l),y=A.retrieve(t.get("symbolMargin"),"15%")+"",x=!1;y.lastIndexOf("!")===y.length-1&&(x=!0,y=y.slice(0,y.length-1)),y=D(y,e[d.index]);var _=Math.max(g+2*y,0),b=x?0:2*y,w=C.isNumeric(i),S=w?i:M((m+b)/_);y=(m-S*g)/2/(x?S:S-1),_=g+2*y,b=x?0:2*y,w||"fixed"===i||(S=u?M((Math.abs(u)+b)/_):0),v=S*_-b,h.repeatTimes=S,h.symbolMargin=y}var T=p*(v/2),I=h.pathPosition=[];I[f.index]=n[f.wh]/2,I[d.index]="start"===a?T:"end"===a?l-T:l/2,o&&(I[0]+=o[0],I[1]+=o[1]);var L=h.bundlePosition=[];L[f.index]=n[f.xy],L[d.index]=n[d.xy];var k=h.barRectShape=A.extend({},n);k[d.wh]=p*Math.max(Math.abs(n[d.wh]),Math.abs(I[d.index]+T)),k[f.wh]=n[f.wh];var P=h.clipShape={};P[f.xy]=-n[f.xy],P[f.wh]=c.ecSize[f.wh],P[d.xy]=0,P[d.wh]=n[d.wh]}function l(t){var e=t.symbolPatternSize,n=I.createSymbol(t.symbolType,-e/2,-e/2,e,e,t.color);return n.attr({culling:!0}),"image"!==n.type&&n.setStyle({strokeNoScale:!0}),n}function u(t,e,n,i){function r(t){var e=h.slice(),i=n.pxSign,r=t;return("start"===n.symbolRepeatDirection?i>0:i<0)&&(r=d-1-t),e[f.index]=g*(r-d/2+.5)+h[f.index],{position:e,scale:n.symbolScale.slice(),rotation:n.rotation}}function o(){b(t,function(t){t.trigger("emphasis")})}function a(){b(t,function(t){t.trigger("normal")})}var s=t.__pictorialBundle,u=n.symbolSize,c=n.valueLineWidth,h=n.pathPosition,f=e.valueDim,d=n.repeatTimes||0,p=0,g=u[e.valueDim.index]+c+2*n.symbolMargin;for(b(t,function(t){t.__pictorialAnimationIndex=p,t.__pictorialRepeatTimes=d,p0)],c=t.__pictorialBarRect;L.setLabel(c.style,l,o,i,e.seriesModel,r,u),T.setHoverStyle(c,l)}function M(t){var e=Math.round(t);return Math.abs(t-e)<1e-4?e:Math.ceil(t)}var A=n(1),T=n(3),I=n(18),C=n(4),L=n(81),D=C.parsePercent,k=["itemStyle","normal","borderWidth"],P=[{xy:"x",wh:"width",index:0,posDesc:["left","right"]},{xy:"y",wh:"height",index:1,posDesc:["top","bottom"]}],E=new T.Circle,O=n(2).extendChartView({type:"pictorialBar",render:function(t,e,n){var r=this.group,o=t.getData(),a=this._data,s=t.coordinateSystem,l=s.getBaseAxis(),u=!!l.isHorizontal(),c=s.grid.getRect(),h={ecSize:{width:n.getWidth(),height:n.getHeight()},seriesModel:t,coordSys:s,coordSysExtent:[[c.x,c.x+c.width],[c.y,c.y+c.height]],isHorizontal:u,valueDim:P[+u],categoryDim:P[1-u]};return o.diff(a).add(function(t){if(o.hasValue(t)){var e=d(o,t),n=i(o,t,e,h),a=m(o,h,n);o.setItemGraphicEl(t,a),r.add(a),S(a,h,n)}}).update(function(t,e){var n=a.getItemGraphicEl(e);if(!o.hasValue(t))return void r.remove(n);var s=d(o,t),l=i(o,t,s,h),u=_(o,l);n&&u!==n.__pictorialShapeStr&&(r.remove(n),o.setItemGraphicEl(t,null),n=null),n?y(n,h,l):n=m(o,h,l,!0),o.setItemGraphicEl(t,n),n.__pictorialSymbolMeta=l,r.add(n),S(n,h,l)}).remove(function(t){var e=a.getItemGraphicEl(t);e&&x(a,t,e.__pictorialSymbolMeta.animationModel,e)}).execute(),this._data=o,this.group},dispose:A.noop,remove:function(t,e){var n=this.group,i=this._data;t.get("animation")?i&&i.eachItemGraphicEl(function(e){x(i,e.dataIndex,t,e)}):n.removeAll()}});t.exports=O},function(t,e,n){var i=n(41)([["fill","color"],["stroke","borderColor"],["lineWidth","borderWidth"],["stroke","barBorderColor"],["lineWidth","barBorderWidth"],["opacity"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["shadowColor"]]);t.exports={getBarItemStyle:function(t){var e=i.call(this,t);if(this.getBorderLineDash){var n=this.getBorderLineDash();n&&(e.lineDash=n)}return e}}},function(t,e,n){var i=n(2);n(149),n(150),i.registerVisual(n(152)),i.registerLayout(n(151))},function(t,e,n){"use strict";var i=n(1),r=n(13),o=n(43),a=r.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,o.seriesModelMixin,!0),t.exports=a},function(t,e,n){"use strict";function i(t,e,n){var i=e.getItemModel(n),r=i.getModel(u),o=e.getItemVisual(n,"color"),s=r.getItemStyle(["borderColor"]),l=t.childAt(t.whiskerIndex);l.style.set(s),l.style.stroke=o,l.dirty();var h=t.childAt(t.bodyIndex);h.style.set(s),h.style.stroke=o,h.dirty();var f=i.getModel(c).getItemStyle();a.setHoverStyle(t,f)}var r=n(1),o=n(24),a=n(3),s=n(43),l=o.extend({type:"boxplot",getStyleUpdater:function(){return i},dispose:r.noop});r.mixin(l,s.viewMixin,!0);var u=["itemStyle","normal"],c=["itemStyle","emphasis"];t.exports=l},function(t,e,n){function i(t){var e=[],n=[];return t.eachSeriesByType("boxplot",function(t){var i=t.getBaseAxis(),r=a.indexOf(n,i);r<0&&(r=n.length,n[r]=i,e[r]={axis:i,seriesModels:[]}),e[r].seriesModels.push(t)}),e}function r(t){var e,n,i=t.axis,r=t.seriesModels,o=r.length,s=t.boxWidthList=[],c=t.boxOffsetList=[],h=[];if("category"===i.type)n=i.getBandWidth();else{var f=0;u(r,function(t){f=Math.max(f,t.getData().count())}),e=i.getExtent(),Math.abs(e[1]-e[0])/f}u(r,function(t){var e=t.get("boxWidth");a.isArray(e)||(e=[e,e]),h.push([l(e[0],n)||0,l(e[1],n)||0])});var d=.8*n-2,p=d/o*.3,g=(d-p*(o-1))/o,v=g/2-d/2;u(r,function(t,e){c.push(v),v+=p+g,s.push(Math.min(Math.max(g,h[e][0]),h[e][1]))})}function o(t,e,n){var i=t.coordinateSystem,r=t.getData(),o=t.dimensions,a=t.get("layout"),s=n/2;r.each(o,function(){function t(t){var n=[];n[d]=h,n[p]=t;var r;return isNaN(h)||isNaN(t)?r=[NaN,NaN]:(r=i.dataToPoint(n),r[d]+=e),r}function n(t,e){var n=t.slice(),i=t.slice();n[d]+=s,i[d]-=s,e?x.push(n,i):x.push(i,n)}function l(t){var e=[t.slice(),t.slice()];e[0][d]-=s,e[1][d]+=s,y.push(e)}var u=arguments,c=o.length,h=u[0],f=u[c],d="horizontal"===a?0:1,p=1-d,g=t(u[3]),v=t(u[1]),m=t(u[5]),y=[[v,t(u[2])],[m,t(u[4])]];l(v),l(m),l(g);var x=[];n(y[0][1],0),n(y[1][1],1),r.setItemLayout(f,{chartLayout:a,initBaseline:g[p],median:g,bodyEnds:x,whiskerEnds:y})})}var a=n(1),s=n(4),l=s.parsePercent,u=a.each;t.exports=function(t){u(i(t),function(t){var e=t.seriesModels;e.length&&(r(t),u(e,function(e,n){o(e,t.boxOffsetList[n],t.boxWidthList[n])}))})}},function(t,e){var n=["itemStyle","normal","borderColor"];t.exports=function(t,e){var i=t.get("color");t.eachRawSeriesByType("boxplot",function(e){var r=i[e.seriesIndex%i.length],o=e.getData();o.setVisual({legendSymbol:"roundRect",color:e.get(n)||r}),t.isSeriesFiltered(e)||o.each(function(t){var e=o.getItemModel(t);o.setItemVisual(t,{color:e.get(n,!0)})})})}},function(t,e,n){var i=n(2);n(154),n(155),i.registerPreprocessor(n(158)),i.registerVisual(n(157)),i.registerLayout(n(156))},function(t,e,n){"use strict";var i=n(1),r=n(13),o=n(43),a=n(6),s=a.encodeHTML,l=a.addCommas,u=r.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}},barMaxWidth:null,barMinWidth:null,barWidth:null,animationUpdate:!1,animationEasing:"linear",animationDuration:300},getShadowDim:function(){return"open"},formatTooltip:function(t,e){var n=i.map(this.valueDimensions,function(e){return s(e+": "+l(this.getData().get(e,t)))},this).join("
"),r=[];return null!=this.name&&r.push(s(this.name)),null!=n&&r.push(n),r.join("
")},brushSelector:function(t,e){return e.rect(t.brushRect)}});i.mixin(u,o.seriesModelMixin,!0),t.exports=u},function(t,e,n){"use strict";function i(t,e,n){var i=e.getItemModel(n),r=i.getModel(u),o=e.getItemVisual(n,"color"),s=e.getItemVisual(n,"borderColor")||o,l=r.getItemStyle(["color","color0","borderColor","borderColor0"]),h=t.childAt(t.whiskerIndex);h.useStyle(l),h.style.stroke=s;var f=t.childAt(t.bodyIndex);f.useStyle(l),f.style.fill=o,f.style.stroke=s;var d=i.getModel(c).getItemStyle();a.setHoverStyle(t,d)}var r=n(1),o=n(24),a=n(3),s=n(43),l=o.extend({type:"candlestick",getStyleUpdater:function(){return i},dispose:r.noop});r.mixin(l,s.viewMixin,!0);var u=["itemStyle","normal"],c=["itemStyle","emphasis"];t.exports=l},function(t,e,n){function i(t,e){var n,i=t.getBaseAxis(),a="category"===i.type?i.getBandWidth():(n=i.getExtent(),Math.abs(n[1]-n[0])/e.count()),s=o(r(t.get("barMaxWidth"),a),a),l=o(r(t.get("barMinWidth"),1),a),u=t.get("barWidth");return null!=u?o(u,a):Math.max(Math.min(a/2,s),l)}var r=n(1).retrieve,o=n(4).parsePercent;t.exports=function(t){t.eachSeriesByType("candlestick",function(t){var e=t.coordinateSystem,n=t.getData(),r=t.dimensions,o=t.get("layout"),a=i(t,n);n.each(r,function(){function t(t){var n=[];return n[f]=c,n[d]=t,isNaN(c)||isNaN(t)?[NaN,NaN]:e.dataToPoint(n)}function i(t,e){var n=t.slice(),i=t.slice();n[f]+=a/2,i[f]-=a/2,e?A.push(n,i):A.push(i,n)}function s(){var e=t(Math.min(p,g,v,m)),n=t(Math.max(p,g,v,m));return e[f]-=a/2,n[f]-=a/2,{x:e[0],y:e[1],width:d?a:n[0]-e[0],height:d?n[1]-e[1]:a}}var l=arguments,u=r.length,c=l[0],h=l[u],f="horizontal"===o?0:1,d=1-f,p=l[1],g=l[2],v=l[3],m=l[4],y=Math.min(p,g),x=Math.max(p,g),_=t(y),b=t(x),w=t(v),S=t(m),M=[[S,b],[w,_]],A=[];i(b,0),i(_,1),n.setItemLayout(h,{chartLayout:o,sign:p>g?-1:pg?b[d]:_[d],bodyEnds:A,whiskerEnds:M,brushRect:s()})},!0)})}},function(t,e){var n=["itemStyle","normal","borderColor"],i=["itemStyle","normal","borderColor0"],r=["itemStyle","normal","color"],o=["itemStyle","normal","color0"];t.exports=function(t,e){t.eachRawSeriesByType("candlestick",function(e){var a=e.getData();a.setVisual({legendSymbol:"roundRect"}),t.isSeriesFiltered(e)||a.each(function(t){var e=a.getItemModel(t),s=a.getItemLayout(t).sign;a.setItemVisual(t,{color:e.get(s>0?r:o),borderColor:e.get(s>0?n:i)})})})}},function(t,e,n){var i=n(1);t.exports=function(t){t&&i.isArray(t.series)&&i.each(t.series,function(t){i.isObject(t)&&"k"===t.type&&(t.type="candlestick")})}},function(t,e,n){var i=n(1),r=n(2);n(160),n(161),r.registerVisual(i.curry(n(32),"effectScatter","circle",null)),r.registerLayout(i.curry(n(69),"effectScatter"))},function(t,e,n){"use strict";var i=n(30),r=n(13);t.exports=r.extend({type:"series.effectScatter",dependencies:["grid","polar"],getInitialData:function(t,e){return i(t.data,this,e)},brushSelector:"point",defaultOption:{coordinateSystem:"cartesian2d", zlevel:0,z:2,legendHoverLink:!0,effectType:"ripple",progressive:0,showEffectOn:"render",rippleEffect:{period:4,scale:2.5,brushType:"fill"},symbolSize:10}})},function(t,e,n){var i=n(34),r=n(188);n(2).extendChartView({type:"effectScatter",init:function(){this._symbolDraw=new i(r)},render:function(t,e,n){var i=t.getData(),r=this._symbolDraw;r.updateData(i),this.group.add(r.group)},updateLayout:function(){this._symbolDraw.updateLayout()},remove:function(t,e){this._symbolDraw&&this._symbolDraw.remove(e)},dispose:function(){}})},function(t,e,n){var i=n(1),r=n(2);n(163),n(164),r.registerVisual(i.curry(n(72),"funnel")),r.registerLayout(n(165)),r.registerProcessor(i.curry(n(47),"funnel"))},function(t,e,n){"use strict";var i=n(10),r=n(7),o=n(17),a=n(2).extendSeriesModel({type:"series.funnel",init:function(t){a.superApply(this,"init",arguments),this.legendDataProvider=function(){return this.getRawData()},this._defaultLabelLine(t)},getInitialData:function(t,e){var n=o(["value"],t.data),r=new i(n,this);return r.initData(t.data),r},_defaultLabelLine:function(t){r.defaultEmphasis(t.labelLine,["show"]);var e=t.labelLine.normal,n=t.labelLine.emphasis;e.show=e.show&&t.label.normal.show,n.show=n.show&&t.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:{}}}});t.exports=a},function(t,e,n){function i(t,e){function n(){a.ignore=a.hoverIgnore,s.ignore=s.hoverIgnore}function i(){a.ignore=a.normalIgnore,s.ignore=s.normalIgnore}o.Group.call(this);var r=new o.Polygon,a=new o.Polyline,s=new o.Text;this.add(r),this.add(a),this.add(s),this.updateData(t,e,!0),this.on("emphasis",n).on("normal",i).on("mouseover",n).on("mouseout",i)}function r(t,e,n,i){var r=i.getModel("textStyle"),o=i.get("position"),s="inside"===o||"inner"===o||"center"===o;return{fill:r.getTextColor()||(s?"#fff":t.getItemVisual(e,"color")),textFont:r.getFont(),text:a.retrieve(t.hostModel.getFormattedLabel(e,n),t.getName(e))}}var o=n(3),a=n(1),s=i.prototype,l=["itemStyle","normal","opacity"];s.updateData=function(t,e,n){var i=this.childAt(0),r=t.hostModel,s=t.getItemModel(e),u=t.getItemLayout(e),c=t.getItemModel(e).get(l);c=null==c?1:c,i.useStyle({}),n?(i.setShape({points:u.points}),i.setStyle({opacity:0}),o.initProps(i,{style:{opacity:c}},r,e)):o.updateProps(i,{style:{opacity:c},shape:{points:u.points}},r,e);var h=s.getModel("itemStyle"),f=t.getItemVisual(e,"color");i.setStyle(a.defaults({lineJoin:"round",fill:f},h.getModel("normal").getItemStyle(["opacity"]))),i.hoverStyle=h.getModel("emphasis").getItemStyle(),this._updateLabel(t,e),o.setHoverStyle(this)},s._updateLabel=function(t,e){var n=this.childAt(1),i=this.childAt(2),a=t.hostModel,s=t.getItemModel(e),l=t.getItemLayout(e),u=l.label,c=t.getItemVisual(e,"color");o.updateProps(n,{shape:{points:u.linePoints||u.linePoints}},a,e),o.updateProps(i,{style:{x:u.x,y:u.y}},a,e),i.attr({style:{textAlign:u.textAlign,textVerticalAlign:u.verticalAlign,textFont:u.font},rotation:u.rotation,origin:[u.x,u.y],z2:10});var h=s.getModel("label.normal"),f=s.getModel("label.emphasis"),d=s.getModel("labelLine.normal"),p=s.getModel("labelLine.emphasis");i.setStyle(r(t,e,"normal",h)),i.ignore=i.normalIgnore=!h.get("show"),i.hoverIgnore=!f.get("show"),n.ignore=n.normalIgnore=!d.get("show"),n.hoverIgnore=!p.get("show"),n.setStyle({stroke:c}),n.setStyle(d.getModel("lineStyle").getLineStyle()),i.hoverStyle=r(t,e,"emphasis",f),n.hoverStyle=p.getModel("lineStyle").getLineStyle()},a.inherits(i,o.Group);var u=n(24).extend({type:"funnel",render:function(t,e,n){var r=t.getData(),o=this._data,a=this.group;r.diff(o).add(function(t){var e=new i(r,t);r.setItemGraphicEl(t,e),a.add(e)}).update(function(t,e){var n=o.getItemGraphicEl(e);n.updateData(r,t),a.add(n),r.setItemGraphicEl(t,n)}).remove(function(t){var e=o.getItemGraphicEl(t);a.remove(e)}).execute(),this._data=r},remove:function(){this.group.removeAll(),this._data=null},dispose:function(){}});t.exports=u},function(t,e,n){function i(t,e){return a.getLayoutRect(t.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()})}function r(t,e){for(var n=t.mapArray("value",function(t){return t}),i=[],r="ascending"===e,o=0,a=t.count();o=t&&(0===e?0:i[e-1][0]).4?"bottom":"middle",textAlign:P<-.4?"left":P>.4?"right":"center"},silent:!0});"auto"===z.style.fill&&z.setStyle({fill:i(k/b)}),f.add(z)}if(x.get("show")&&k!==b){for(var V=0;V<=w;V++){var P=Math.cos(A),E=Math.sin(A),B=new a.Line({shape:{x1:P*g+d,y1:E*g+p,x2:P*(g-M)+d,y2:E*(g-M)+p},silent:!0,style:L});"auto"===L.stroke&&B.setStyle({stroke:i((k+V/w)/b)}),f.add(B),A+=I}A-=I}else A+=T}},_renderPointer:function(t,e,n,i,r,u,c,h){var f=this.group,d=this._data;if(!t.get("pointer.show"))return void d.eachItemGraphicEl(function(t){f.remove(t)});var p=[+t.get("min"),+t.get("max")],g=[u,c],v=t.getData();v.diff(d).add(function(e){var n=new o({shape:{angle:u}});a.updateProps(n,{shape:{angle:s.linearMap(v.get("value",e),p,g,!0)}},t),f.add(n),v.setItemGraphicEl(e,n)}).update(function(e,n){var i=d.getItemGraphicEl(n);a.updateProps(i,{shape:{angle:s.linearMap(v.get("value",e),p,g,!0)}},t),f.add(i),v.setItemGraphicEl(e,i)}).remove(function(t){var e=d.getItemGraphicEl(t);f.remove(e)}).execute(),v.eachItemGraphicEl(function(t,e){var n=v.getItemModel(e),o=n.getModel("pointer");t.setShape({x:r.cx,y:r.cy,width:l(o.get("width"),r.r),r:l(o.get("length"),r.r)}),t.useStyle(n.getModel("itemStyle.normal").getItemStyle()),"auto"===t.style.fill&&t.setStyle("fill",i((v.get("value",e)-p[0])/(p[1]-p[0]))),a.setHoverStyle(t,n.getModel("itemStyle.emphasis").getItemStyle())}),this._data=v},_renderTitle:function(t,e,n,i,r){var o=t.getModel("title");if(o.get("show")){var s=o.getModel("textStyle"),u=o.get("offsetCenter"),c=r.cx+l(u[0],r.r),h=r.cy+l(u[1],r.r),f=new a.Text({style:{x:c,y:h,text:t.getData().getName(0),fill:s.getTextColor(),textFont:s.getFont(),textAlign:"center",textVerticalAlign:"middle"}});this.group.add(f)}},_renderDetail:function(t,e,n,i,o){var u=t.getModel("detail"),c=+t.get("min"),h=+t.get("max");if(u.get("show")){var f=u.getModel("textStyle"),d=u.get("offsetCenter"),p=o.cx+l(d[0],o.r),g=o.cy+l(d[1],o.r),v=l(u.get("width"),o.r),m=l(u.get("height"),o.r),y=t.getData().get("value",0),x=new a.Rect({shape:{x:p-v/2,y:g-m/2,width:v,height:m},style:{text:r(y,u.get("formatter")),fill:u.get("backgroundColor"),textFill:f.getTextColor(),textFont:f.getFont()}});"auto"===x.style.textFill&&x.setStyle("textFill",i(s.linearMap(y,[c,h],[0,1],!0))),x.setStyle(u.getItemStyle(["color"])),this.group.add(x)}}});t.exports=c},function(t,e,n){t.exports=n(15).extend({type:"echartsGaugePointer",shape:{angle:0,width:10,r:10,x:0,y:0},buildPath:function(t,e){var n=Math.cos,i=Math.sin,r=e.r,o=e.width,a=e.angle,s=e.x-n(a)*o*(o>=r/3?1:2),l=e.y-i(a)*o*(o>=r/3?1:2);a=e.angle-Math.PI/2,t.moveTo(s,l),t.lineTo(e.x+n(a)*o,e.y+i(a)*o),t.lineTo(e.x+n(e.angle)*r,e.y+i(e.angle)*r),t.lineTo(e.x-n(a)*o,e.y-i(a)*o),t.lineTo(s,l)}})},function(t,e,n){var i=n(2),r=n(1);n(171),n(172),n(181),i.registerProcessor(n(174)),i.registerVisual(r.curry(n(32),"graph","circle",null)),i.registerVisual(n(175)),i.registerVisual(n(178)),i.registerLayout(n(182)),i.registerLayout(n(176)),i.registerLayout(n(180)),i.registerCoordinateSystem("graphView",{create:n(177)})},function(t,e,n){"use strict";var i=n(10),r=n(1),o=n(7),a=n(11),s=n(6),l=n(87),u=n(2).extendSeriesModel({type:"series.graph",init:function(t){u.superApply(this,"init",arguments),this.legendDataProvider=function(){return this._categoriesData},this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},mergeOption:function(t){u.superApply(this,"mergeOption",arguments),this.fillDataTextStyle(t.edges||t.links),this._updateCategoriesData()},mergeDefaultAndTheme:function(t){u.superApply(this,"mergeDefaultAndTheme",arguments),o.defaultEmphasis(t.edgeLabel,o.LABEL_OPTIONS)},getInitialData:function(t,e){function n(t,n){function i(t){return t=this.parsePath(t),t&&"label"===t[0]?s:this.parentModel}t.wrapMethod("getItemModel",function(t){var e=o._categoriesModels,n=t.getShallow("category"),i=e[n];return i&&(i.parentModel=t.parentModel,t.parentModel=i),t});var r=o.getModel("edgeLabel"),s=new a({label:r.option},r.parentModel,e);n.wrapMethod("getItemModel",function(t){return t.customizeGetParent(i),t})}var i=t.edges||t.links||[],r=t.data||t.nodes||[],o=this;if(r&&i)return l(r,i,this,!0,n).data},getGraph:function(){return this.getData().graph},getEdgeData:function(){return this.getGraph().edgeData},getCategoriesData:function(){return this._categoriesData},formatTooltip:function(t,e,n){if("edge"===n){var i=this.getData(),r=this.getDataParams(t,n),o=i.graph.getEdgeByIndex(t),a=i.getName(o.node1.dataIndex),l=i.getName(o.node2.dataIndex),c=[];return null!=a&&c.push(a),null!=l&&c.push(l),c=s.encodeHTML(c.join(" > ")),r.value&&(c+=" : "+s.encodeHTML(r.value)),c}return u.superApply(this,"formatTooltip",arguments)},_updateCategoriesData:function(){var t=r.map(this.option.categories||[],function(t){return null!=t.value?t:r.extend({value:0},t)}),e=new i(["value"],this);e.initData(t),this._categoriesData=e,this._categoriesModels=e.mapArray(function(t){return e.getItemModel(t,!0)})},setZoom:function(t){this.option.zoom=t},setCenter:function(t){this.option.center=t},isAnimationEnabled:function(){return u.superCall(this,"isAnimationEnabled")&&!("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:{}}}});t.exports=u},function(t,e,n){function i(t,e){return t.getVisual("opacity")||t.getModel().get(e)}var r=n(34),o=n(57),a=n(44),s=n(3),l=n(173),u=n(1),c=["itemStyle","normal","opacity"],h=["lineStyle","normal","opacity"];n(2).extendChartView({type:"graph",init:function(t,e){var n=new r,i=new o,s=this.group,l=new a(e.getZr(),s);s.add(n.group),s.add(i.group),this._symbolDraw=n,this._lineDraw=i,this._controller=l,this._firstRender=!0},render:function(t,e,n){var i=t.coordinateSystem;this._model=t,this._nodeScaleRatio=t.get("nodeScaleRatio");var r=this._symbolDraw,o=this._lineDraw,a=this.group;if("view"===i.type){var u={position:i.position,scale:i.scale};this._firstRender?a.attr(u):s.updateProps(a,u,t)}l(t.getGraph(),this._getNodeGlobalScale(t));var c=t.getData();r.updateData(c);var h=t.getEdgeData();o.updateData(h),this._updateNodeAndLinkScale(),this._updateController(t,n),clearTimeout(this._layoutTimeout);var f=t.forceLayout,d=t.get("force.layoutAnimation");f&&this._startForceLayoutIteration(f,d),c.eachItemGraphicEl(function(e,i){var r=c.getItemModel(i);e.off("drag").off("dragend");var o=c.getItemModel(i).get("draggable");o&&e.on("drag",function(){f&&(f.warmUp(),!this._layouting&&this._startForceLayoutIteration(f,d),f.setFixed(i),c.setItemLayout(i,e.position))},this).on("dragend",function(){f&&f.setUnfixed(i)},this),e.setDraggable(o&&f),e.off("mouseover",e.__focusNodeAdjacency),e.off("mouseout",e.__unfocusNodeAdjacency),r.get("focusNodeAdjacency")&&(e.on("mouseover",e.__focusNodeAdjacency=function(){n.dispatchAction({type:"focusNodeAdjacency",seriesId:t.id,dataIndex:e.dataIndex})}),e.on("mouseout",e.__unfocusNodeAdjacency=function(){n.dispatchAction({type:"unfocusNodeAdjacency",seriesId:t.id})}))},this);var p="circular"===t.get("layout")&&t.get("circular.rotateLabel"),g=c.getLayout("cx"),v=c.getLayout("cy");c.eachItemGraphicEl(function(t,e){var n=t.getSymbolPath();if(p){var i=c.getItemLayout(e),r=Math.atan2(i[1]-v,i[0]-g);r<0&&(r=2*Math.PI+r);var o=i[0]=0?i+=g:i-=g:_>=0?i-=g:i+=g}return i}var r=n(26),o=n(5),a=[],s=[],l=[],u=r.quadraticAt,c=o.distSquare,h=Math.abs;t.exports=function(t,e){function n(t){var e=t.getVisual("symbolSize");return e instanceof Array&&(e=(e[0]+e[1])/2),e}var a=[],s=r.quadraticSubdivide,l=[[],[],[]],u=[[],[]],c=[];e/=2,t.eachEdge(function(t,r){var h=t.getLayout(),f=t.getVisual("fromSymbol"),d=t.getVisual("toSymbol");h.__original||(h.__original=[o.clone(h[0]),o.clone(h[1])],h[2]&&h.__original.push(o.clone(h[2])));var p=h.__original;if(null!=h[2]){if(o.copy(l[0],p[0]),o.copy(l[1],p[2]),o.copy(l[2],p[1]),f&&"none"!=f){var g=n(t.node1),v=i(l,p[0],g*e);s(l[0][0],l[1][0],l[2][0],v,a),l[0][0]=a[3],l[1][0]=a[4],s(l[0][1],l[1][1],l[2][1],v,a),l[0][1]=a[3],l[1][1]=a[4]}if(d&&"none"!=d){var g=n(t.node2),v=i(l,p[1],g*e);s(l[0][0],l[1][0],l[2][0],v,a),l[1][0]=a[1],l[2][0]=a[2],s(l[0][1],l[1][1],l[2][1],v,a),l[1][1]=a[1],l[2][1]=a[2]}o.copy(h[0],l[0]),o.copy(h[1],l[2]),o.copy(h[2],l[1])}else{if(o.copy(u[0],p[0]),o.copy(u[1],p[1]),o.sub(c,u[1],u[0]),o.normalize(c,c),f&&"none"!=f){var g=n(t.node1);o.scaleAndAdd(u[0],u[0],c,g*e)}if(d&&"none"!=d){var g=n(t.node2);o.scaleAndAdd(u[1],u[1],c,-g*e)}o.copy(h[0],u[0]),o.copy(h[1],u[1])}})}},function(t,e){t.exports=function(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.eachSeriesByType("graph",function(t){var n=t.getCategoriesData(),i=t.getGraph(),r=i.data,o=n.mapArray(n.getName);r.filterSelf(function(t){var n=r.getItemModel(t),i=n.getShallow("category");if(null!=i){"number"==typeof i&&(i=o[i]);for(var a=0;a0){var I=o(y)?s:l;y>0&&(y=y*A+S),_[b++]=I[T],_[b++]=I[T+1],_[b++]=I[T+2],_[b++]=I[T+3]*y*256}else b+=4}return h.putImageData(x,0,0),c},_getBrush:function(){var t=this._brushCanvas||(this._brushCanvas=r.createCanvas()),e=this.pointSize+this.blurSize,n=2*e;t.width=n,t.height=n;var i=t.getContext("2d");return i.clearRect(0,0,n,n),i.shadowOffsetX=n,i.shadowBlur=this.blurSize,i.shadowColor="#000",i.beginPath(),i.arc(-e,e,this.pointSize,0,2*Math.PI,!0),i.closePath(),i.fill(),t},_getGradient:function(t,e,n){for(var i=this._gradientPixels,r=i[n]||(i[n]=new Uint8ClampedArray(1024)),o=[],a=0,s=0;s<256;s++)e[n](s/255,!0,o),r[a++]=o[0],r[a++]=o[1],r[a++]=o[2],r[a++]=o[3];return r}},t.exports=i},function(t,e,n){var i=n(13),r=n(30);t.exports=i.extend({type:"series.heatmap",getInitialData:function(t,e){return r(t.data,this,e)},defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0}})},function(t,e,n){function i(t,e,n){var i=t[1]-t[0];e=l.map(e,function(e){return{interval:[(e.interval[0]-t[0])/i,(e.interval[1]-t[0])/i]}});var r=e.length,o=0;return function(t){for(var i=o;i=0;i--){var a=e[i].interval;if(a[0]<=t&&t<=a[1]){o=i;break}}return i>=0&&i=e[0]&&t<=e[1]}}function o(t){var e=t.dimensions;return"lng"===e[0]&&"lat"===e[1]}var a=n(3),s=n(184),l=n(1);t.exports=n(2).extendChartView({type:"heatmap",render:function(t,e,n){var i;if(e.eachComponent("visualMap",function(e){e.eachTargetSeries(function(n){n===t&&(i=e)})}),__DEV__&&!i)throw new Error("Heatmap must use with visualMap");this.group.removeAll();var r=t.coordinateSystem;"cartesian2d"===r.type?this._renderOnCartesian(r,t,n):o(r)&&this._renderOnGeo(r,t,i,n)},dispose:function(){},_renderOnCartesian:function(t,e,n){var i=t.getAxis("x"),r=t.getAxis("y"),o=this.group;if(__DEV__){if("category"!==i.type||"category"!==r.type)throw new Error("Heatmap on cartesian must have two category axes");if(!i.onBand||!r.onBand)throw new Error("Heatmap on cartesian must have two axes with boundaryGap true")}var s=i.getBandWidth(),u=r.getBandWidth(),c=e.getData(),h="itemStyle.normal",f="itemStyle.emphasis",d=e.getModel(h).getItemStyle(["color"]),p=e.getModel(f).getItemStyle(),g=e.getModel("label.normal"),v=e.getModel("label.emphasis");c.each(["x","y","z"],function(n,i,r,m){var y=c.getItemModel(m),x=t.dataToPoint([n,i]);if(!isNaN(r)){var _=new a.Rect({shape:{x:x[0]-s/2,y:x[1]-u/2,width:s,height:u},style:{fill:c.getItemVisual(m,"color"),opacity:c.getItemVisual(m,"opacity")}});c.hasItemOption&&(d=y.getModel(h).getItemStyle(["color"]),p=y.getModel(f).getItemStyle(),g=y.getModel("label.normal"),v=y.getModel("label.emphasis"));var b=e.getRawValue(m),w="-";b&&null!=b[2]&&(w=b[2]),g.getShallow("show")&&(a.setText(d,g),d.text=e.getFormattedLabel(m,"normal")||w),v.getShallow("show")&&(a.setText(p,v),p.text=e.getFormattedLabel(m,"emphasis")||w),_.setStyle(d),a.setHoverStyle(_,c.hasItemOption?p:l.extend({},p)),o.add(_),c.setItemGraphicEl(m,_)}})},_renderOnGeo:function(t,e,n,o){var l=n.targetVisuals.inRange,u=n.targetVisuals.outOfRange,c=e.getData(),h=this._hmLayer||this._hmLayer||new s;h.blurSize=e.get("blurSize"),h.pointSize=e.get("pointSize"),h.minOpacity=e.get("minOpacity"),h.maxOpacity=e.get("maxOpacity");var f=t.getViewRect().clone(),d=t.getRoamTransform().transform;f.applyTransform(d);var p=Math.max(f.x,0),g=Math.max(f.y,0),v=Math.min(f.width+f.x,o.getWidth()),m=Math.min(f.height+f.y,o.getHeight()),y=v-p,x=m-g,_=c.mapArray(["lng","lat","value"],function(e,n,i){var r=t.dataToPoint([e,n]); return r[0]-=p,r[1]-=g,r.push(i),r}),b=n.getExtent(),w="visualMap.continuous"===n.type?r(b,n.option.range):i(b,n.getPieceList(),n.option.selected);h.update(_,y,x,l.color.getNormalizer(),{inRange:l.color.getColorMapper(),outOfRange:u.color.getColorMapper()},w);var S=new a.Image({style:{width:y,height:x,x:p,y:g,image:h.canvas},silent:!0});this.group.add(S)}})},function(t,e,n){function i(t,e,n){a.call(this,t,e,n),this._lastFrame=0,this._lastFramePercent=0}var r=n(86),o=n(1),a=n(85),s=n(5),l=i.prototype;l.createLine=function(t,e,n){return new r(t,e,n)},l.updateAnimationPoints=function(t,e){this._points=e;for(var n=[0],i=0,r=1;r=0&&!(i[o]<=e);o--);o=Math.min(o,r-2)}else{for(var o=a;oe);o++);o=Math.min(o-1,r-2)}s.lerp(t.position,n[o],n[o+1],(e-i[o])/(i[o+1]-i[o]));var u=n[o+1][0]-n[o][0],c=n[o+1][1]-n[o][1];t.rotation=-Math.atan2(c,u)-Math.PI/2,this._lastFrame=o,this._lastFramePercent=e,t.ignore=!1}},o.inherits(i,a),t.exports=i},function(t,e,n){function i(t){return a.isArray(t)||(t=[+t,+t]),t}function r(t,e){t.eachChild(function(t){t.attr({z:e.z,zlevel:e.zlevel,style:{stroke:"stroke"===e.brushType?e.color:null,fill:"fill"===e.brushType?e.color:null}})})}function o(t,e){h.call(this);var n=new c(t,e),i=new h;this.add(n),this.add(i),i.beforeUpdate=function(){this.attr(n.getScale())},this.updateData(t,e)}var a=n(1),s=n(18),l=n(3),u=n(4),c=n(58),h=l.Group,f=3,d=o.prototype;d.stopEffectAnimation=function(){this.childAt(1).removeAll()},d.startEffectAnimation=function(t){for(var e=t.symbolType,n=t.color,i=this.childAt(1),o=0;o2?t.quadraticCurveTo(o[2][0],o[2][1],o[1][0],o[1][1]):t.lineTo(o[1][0],o[1][1])}},findDataIndex:function(t,e){for(var n=this.shape,i=n.segs,r=n.polyline,s=Math.max(this.style.lineWidth,1),l=0;l2){if(o.containStroke(u[0][0],u[0][1],u[2][0],u[2][1],u[1][0],u[1][1],s,t,e))return l}else if(a.containStroke(u[0][0],u[0][1],u[1][0],u[1][1],s,t,e))return l}return-1}}),l=i.prototype;l.updateData=function(t){this.group.removeAll();var e=this._lineEl,n=t.hostModel;e.setShape({segs:t.mapArray(t.getItemLayout),polyline:n.get("polyline")}),e.useStyle(n.getModel("lineStyle.normal").getLineStyle());var i=t.getVisual("color");i&&e.setStyle("stroke",i),e.setStyle("fill"),e.seriesIndex=n.seriesIndex,e.on("mousemove",function(t){e.dataIndex=null;var n=e.findDataIndex(t.offsetX,t.offsetY);n>0&&(e.dataIndex=n)}),this.group.add(e)},l.updateLayout=function(t){var e=t.getData();this._lineEl.setShape({segs:e.mapArray(e.getItemLayout)})},l.remove=function(){this.group.removeAll()},t.exports=i},function(t,e,n){function i(){this.group=new r.Group,this._symbolEl=new a({})}var r=n(3),o=n(18),a=r.extendShape({shape:{points:null,sizes:null},symbolProxy:null,buildPath:function(t,e){for(var n=e.points,i=e.sizes,r=this.symbolProxy,o=r.shape,a=0;a=0;o--){var a=i[o],s=r[o],l=a[0]-s[0]/2,u=a[1]-s[1]/2;if(t>=l&&e>=u&&t<=l+s[0]&&e<=u+s[1])return o}return-1}}),s=i.prototype;s.updateData=function(t){this.group.removeAll();var e=this._symbolEl,n=t.hostModel;e.setShape({points:t.mapArray(t.getItemLayout),sizes:t.mapArray(function(e){var n=t.getItemVisual(e,"symbolSize");return n instanceof Array||(n=[n,n]),n})}),e.symbolProxy=o.createSymbol(t.getVisual("symbol"),0,0,0,0),e.setColor=e.symbolProxy.setColor,e.useStyle(n.getModel("itemStyle.normal").getItemStyle(["color"]));var i=t.getVisual("color");i&&e.setColor(i),e.seriesIndex=n.seriesIndex,e.on("mousemove",function(t){e.dataIndex=null;var n=e.findDataIndex(t.offsetX,t.offsetY);n>0&&(e.dataIndex=n)}),this.group.add(e)},s.updateLayout=function(t){var e=t.getData();this._symbolEl.setShape({points:e.mapArray(e.getItemLayout)})},s.remove=function(){this.group.removeAll()},t.exports=i},function(t,e,n){function i(t){return isNaN(+t.cpx1)||isNaN(+t.cpy1)}var r=n(3),o=n(5),a=r.Line.prototype,s=r.BezierCurve.prototype;t.exports=r.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(t,e){(i(e)?a:s).buildPath(t,e)},pointAt:function(t){return i(this.shape)?a.pointAt.call(this,t):s.pointAt.call(this,t)},tangentAt:function(t){var e=this.shape,n=i(e)?[e.x2-e.x1,e.y2-e.y1]:s.tangentAt.call(this,t);return o.normalize(n,n)}})},function(t,e,n){function i(t,e,n,i){l.Group.call(this),this.bodyIndex,this.whiskerIndex,this.styleUpdater=n,this._createContent(t,e,i),this.updateData(t,e,i),this._seriesModel}function r(t,e,n){return s.map(t,function(t){return t=t.slice(),t[e]=n.initBaseline,t})}function o(t){var e={};return s.each(t,function(t,n){e["ends"+n]=t}),e}function a(t){this.group=new l.Group,this.styleUpdater=t}var s=n(1),l=n(3),u=n(15),c=u.extend({type:"whiskerInBox",shape:{},buildPath:function(t,e){for(var n in e)if(e.hasOwnProperty(n)&&0===n.indexOf("ends")){var i=e[n];t.moveTo(i[0][0],i[0][1]),t.lineTo(i[1][0],i[1][1])}}}),h=i.prototype;h._createContent=function(t,e,n){var i=t.getItemLayout(e),a="horizontal"===i.chartLayout?1:0,u=0;this.add(new l.Polygon({shape:{points:n?r(i.bodyEnds,a,i):i.bodyEnds},style:{strokeNoScale:!0},z2:100})),this.bodyIndex=u++;var h=s.map(i.whiskerEnds,function(t){return n?r(t,a,i):t});this.add(new c({shape:o(h),style:{strokeNoScale:!0},z2:100})),this.whiskerIndex=u++},h.updateData=function(t,e,n){var i=this._seriesModel=t.hostModel,r=t.getItemLayout(e),a=l[n?"initProps":"updateProps"];a(this.childAt(this.bodyIndex),{shape:{points:r.bodyEnds}},i,e),a(this.childAt(this.whiskerIndex),{shape:o(r.whiskerEnds)},i,e),this.styleUpdater.call(null,this,t,e)},s.inherits(i,l.Group);var f=a.prototype;f.updateData=function(t){var e=this.group,n=this._data,r=this.styleUpdater;t.diff(n).add(function(n){if(t.hasValue(n)){var o=new i(t,n,r,!0);t.setItemGraphicEl(n,o),e.add(o)}}).update(function(o,a){var s=n.getItemGraphicEl(a);return t.hasValue(o)?(s?s.updateData(t,o):s=new i(t,o,r),e.add(s),void t.setItemGraphicEl(o,s)):void e.remove(s)}).remove(function(t){var i=n.getItemGraphicEl(t);i&&e.remove(i)}).execute(),this._data=t},f.remove=function(){var t=this.group,e=this._data;this._data=null,e&&e.eachItemGraphicEl(function(e){e&&t.remove(e)})},t.exports=a},function(t,e,n){var i=n(1),r=n(2),o=r.PRIORITY;n(194),n(195),r.registerVisual(i.curry(n(32),"line","circle","line")),r.registerLayout(i.curry(n(69),"line")),r.registerProcessor(o.PROCESSOR.STATISTIC,i.curry(n(362),"line")),n(38)},function(t,e,n){"use strict";var i=n(30),r=n(13);t.exports=r.extend({type:"series.line",dependencies:["grid","polar"],getInitialData:function(t,e){if(__DEV__){var n=t.coordinateSystem;if("polar"!==n&&"cartesian2d"!==n)throw new Error("Line not support coordinateSystem besides cartesian and polar")}return i(t.data,this,e)},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(t,e,n){"use strict";function i(t,e){if(t.length===e.length){for(var n=0;ne[0]?1:-1;e[0]+=i*n,e[1]-=i*n}return e}function a(t){return t>=0?1:-1}function s(t,e){var n=t.getBaseAxis(),i=t.getOtherAxis(n),r=n.onZero?0:i.scale.getExtent()[0],o=i.dim,s="x"===o||"radius"===o?1:0;return e.mapArray([o],function(i,l){for(var u,c=e.stackedOn;c&&a(c.get(o,l))===a(i);){u=c;break}var h=[];return h[s]=e.get(n.dim,l),h[1-s]=u?u.get(o,l,!0):r,t.dataToPoint(h)},!0)}function l(t,e,n){var i=o(t.getAxis("x")),r=o(t.getAxis("y")),a=t.getBaseAxis().isHorizontal(),s=Math.min(i[0],i[1]),l=Math.min(r[0],r[1]),u=Math.max(i[0],i[1])-s,c=Math.max(r[0],r[1])-l,h=n.get("lineStyle.normal.width")||2,f=n.get("clipOverflow")?h/2:Math.max(u,c);a?(l-=f,c+=2*f):(s-=f,u+=2*f);var d=new m.Rect({shape:{x:s,y:l,width:u,height:c}});return e&&(d.shape[a?"width":"height"]=0,m.initProps(d,{shape:{width:u,height:c}},n)),d}function u(t,e,n){var i=t.getAngleAxis(),r=t.getRadiusAxis(),o=r.getExtent(),a=i.getExtent(),s=Math.PI/180,l=new m.Sector({shape:{cx:t.cx,cy:t.cy,r0:o[0],r:o[1],startAngle:-a[0]*s,endAngle:-a[1]*s,clockwise:i.inverse}});return e&&(l.shape.endAngle=-a[0]*s,m.initProps(l,{shape:{endAngle:-a[1]*s}},n)),l}function c(t,e,n){return"polar"===t.type?u(t,e,n):l(t,e,n)}function h(t,e,n){for(var i=e.getBaseAxis(),r="x"===i.dim||"radius"===i.dim?0:1,o=[],a=0;a=0;r--)if(n[r].dimension<2){i=n[r];break}if(!i||"cartesian2d"!==e.type)return void __DEV__;var o=i.dimension,a=t.dimensions[o],s=e.getAxis(a),l=d.map(i.stops,function(t){return{coord:s.toGlobalCoord(s.dataToCoord(t.value)),color:t.color}}),u=l.length,c=i.outerColors.slice();u&&l[0].coord>l[u-1].coord&&(l.reverse(),c.reverse());var h=10,f=l[0].coord-h,p=l[u-1].coord+h,g=p-f;if(g<.001)return"transparent";d.each(l,function(t){t.offset=(t.coord-f)/g}),l.push({offset:u?l[u-1].offset:.5,color:c[1]||"transparent"}),l.unshift({offset:u?l[0].offset:.5,color:c[0]||"transparent"});var v=new m.LinearGradient(0,0,0,0,l,!0);return v[a]=f,v[a+"2"]=p,v}}var d=n(1),p=n(34),g=n(58),v=n(196),m=n(3),y=n(7),x=n(88),_=n(24);t.exports=_.extend({type:"line",init:function(){var t=new m.Group,e=new p;this.group.add(e.group),this._symbolDraw=e,this._lineGroup=t},render:function(t,e,n){var o=t.coordinateSystem,a=this.group,l=t.getData(),u=t.getModel("lineStyle.normal"),p=t.getModel("areaStyle.normal"),g=l.mapArray(l.getItemLayout,!0),v="polar"===o.type,m=this._coordSys,y=this._symbolDraw,x=this._polyline,_=this._polygon,b=this._lineGroup,w=t.get("animation"),S=!p.isEmpty(),M=s(o,l),A=t.get("showSymbol"),T=A&&!v&&!t.get("showAllSymbol")&&this._getSymbolIgnoreFunc(l,o),I=this._data;I&&I.eachItemGraphicEl(function(t,e){t.__temp&&(a.remove(t),I.setItemGraphicEl(e,null))}),A||y.remove(),a.add(b);var C=!v&&t.get("step");x&&m.type===o.type&&C===this._step?(S&&!_?_=this._newPolygon(g,M,o,w):_&&!S&&(b.remove(_),_=this._polygon=null),b.setClipPath(c(o,!1,t)),A&&y.updateData(l,T),l.eachItemGraphicEl(function(t){t.stopAnimation(!0)}),i(this._stackedOnPoints,M)&&i(this._points,g)||(w?this._updateAnimation(l,M,o,n,C):(C&&(g=h(g,o,C),M=h(M,o,C)),x.setShape({points:g}),_&&_.setShape({points:g,stackedOnPoints:M})))):(A&&y.updateData(l,T),C&&(g=h(g,o,C),M=h(M,o,C)),x=this._newPolyline(g,o,w),S&&(_=this._newPolygon(g,M,o,w)),b.setClipPath(c(o,!0,t)));var L=f(l,o)||l.getVisual("color");x.useStyle(d.defaults(u.getLineStyle(),{fill:"none",stroke:L,lineJoin:"bevel"}));var D=t.get("smooth");if(D=r(t.get("smooth")),x.setShape({smooth:D,smoothMonotone:t.get("smoothMonotone"),connectNulls:t.get("connectNulls")}),_){var k=l.stackedOn,P=0;_.useStyle(d.defaults(p.getAreaStyle(),{fill:L,opacity:.7,lineJoin:"bevel"})),k&&(P=r(k.hostModel.get("smooth"))),_.setShape({smooth:D,stackedOnSmooth:P,smoothMonotone:t.get("smoothMonotone"),connectNulls:t.get("connectNulls")})}this._data=l,this._coordSys=o,this._stackedOnPoints=M,this._points=g,this._step=C},dispose:function(){},highlight:function(t,e,n,i){var r=t.getData(),o=y.queryDataIndex(r,i);if(!(o instanceof Array)&&null!=o&&o>=0){var a=r.getItemGraphicEl(o);if(!a){var s=r.getItemLayout(o);if(!s)return;a=new g(r,o),a.position=s,a.setZ(t.get("zlevel"),t.get("z")),a.ignore=isNaN(s[0])||isNaN(s[1]),a.__temp=!0,r.setItemGraphicEl(o,a),a.stopSymbolAnimation(!0),this.group.add(a)}a.highlight()}else _.prototype.highlight.call(this,t,e,n,i)},downplay:function(t,e,n,i){var r=t.getData(),o=y.queryDataIndex(r,i);if(null!=o&&o>=0){var a=r.getItemGraphicEl(o);a&&(a.__temp?(r.setItemGraphicEl(o,null),this.group.remove(a)):a.downplay())}else _.prototype.downplay.call(this,t,e,n,i)},_newPolyline:function(t){var e=this._polyline;return e&&this._lineGroup.remove(e),e=new x.Polyline({shape:{points:t},silent:!0,z2:10}),this._lineGroup.add(e),this._polyline=e,e},_newPolygon:function(t,e){var n=this._polygon;return n&&this._lineGroup.remove(n),n=new x.Polygon({shape:{points:t,stackedOnPoints:e},silent:!0}),this._lineGroup.add(n),this._polygon=n,n},_getSymbolIgnoreFunc:function(t,e){var n=e.getAxesByScale("ordinal")[0];if(n&&n.isLabelIgnored)return d.bind(n.isLabelIgnored,n)},_updateAnimation:function(t,e,n,i,r){var o=this._polyline,a=this._polygon,s=t.hostModel,l=v(this._data,t,this._stackedOnPoints,e,this._coordSys,n),u=l.current,c=l.stackedOnCurrent,f=l.next,d=l.stackedOnNext;r&&(u=h(l.current,n,r),c=h(l.stackedOnCurrent,n,r),f=h(l.next,n,r),d=h(l.stackedOnNext,n,r)),o.shape.__points=l.current,o.shape.points=u,m.updateProps(o,{shape:{points:f}},s),a&&(a.setShape({points:u,stackedOnPoints:c}),m.updateProps(a,{shape:{points:f,stackedOnPoints:d}},s));for(var p=[],g=l.status,y=0;y=0?1:-1}function i(t,e,i){for(var r,o=t.getBaseAxis(),a=t.getOtherAxis(o),s=o.onZero?0:a.scale.getExtent()[0],l=a.dim,u="x"===l||"radius"===l?1:0,c=e.stackedOn,h=e.get(l,i);c&&n(c.get(l,i))===n(h);){r=c;break}var f=[];return f[u]=e.get(o.dim,i),f[1-u]=r?r.get(l,i,!0):s,t.dataToPoint(f)}function r(t,e){var n=[];return e.diff(t).add(function(t){n.push({cmd:"+",idx:t})}).update(function(t,e){n.push({cmd:"=",idx:e,idx1:t})}).remove(function(t){n.push({cmd:"-",idx:t})}).execute(),n}t.exports=function(t,e,n,o,a,s){for(var l=r(t,e),u=[],c=[],h=[],f=[],d=[],p=[],g=[],v=s.dimensions,m=0;m "))},defaultOption:{coordinateSystem:"geo",zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],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(t,e,n){var i=n(57),r=n(85),o=n(56),a=n(86),s=n(187),l=n(189);n(2).extendChartView({type:"lines",init:function(){},render:function(t,e,n){var u=t.getData(),c=this._lineDraw,h=t.get("effect.show"),f=t.get("polyline"),d=t.get("large")&&u.count()>=t.get("largeThreshold");__DEV__,h===this._hasEffet&&f===this._isPolyline&&d===this._isLarge||(c&&c.remove(),c=this._lineDraw=d?new l:new i(f?h?s:a:h?r:o),this._hasEffet=h,this._isPolyline=f,this._isLarge=d);var p=t.get("zlevel"),g=t.get("effect.trailLength"),v=n.getZr();if(v.painter.getLayer(p).clear(!0),null!=this._lastZlevel&&v.configLayer(this._lastZlevel,{motionBlur:!1}),h&&g){if(__DEV__){var m=!1;e.eachSeries(function(e){e!==t&&e.get("zlevel")===p&&(m=!0)})}v.configLayer(p,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(g/10+.9,1),0)})}this.group.add(c.group),c.updateData(u),this._lastZlevel=p},updateLayout:function(t,e,n){this._lineDraw.updateLayout(t),n.getZr().painter.getLayer(this._lastZlevel).clear(!0)},remove:function(t,e){this._lineDraw&&this._lineDraw.remove(e,!0)},dispose:function(){}})},function(t,e){t.exports=function(t){t.eachSeriesByType("lines",function(t){var e=t.coordinateSystem,n=t.getData();n.each(function(i){var r=n.getItemModel(i),o=r.option instanceof Array?r.option:r.get("coords");if(__DEV__&&!(o instanceof Array&&o.length>0&&o[0]instanceof Array))throw new Error("Invalid coords "+JSON.stringify(o)+". Lines must have 2d coords array in data item.");var a=[];if(t.get("polyline"))for(var s=0;s"+l(i+" : "+n)},getTooltipPosition:function(t){if(null!=t){var e=this.getData().getName(t),n=this.coordinateSystem,i=n.getRegion(e);return i&&n.dataToPoint(i.center)}},setZoom:function(t){this.option.zoom=t},setCenter:function(t){this.option.center=t},defaultOption:{zlevel:0,z:2,coordinateSystem:"geo",map:"",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)"}}}});o.mixin(f,c),t.exports=f},function(t,e,n){var i=n(3),r=n(93);n(2).extendChartView({type:"map",render:function(t,e,n,i){if(!i||"mapToggleSelect"!==i.type||i.from!==this.uid){var o=this.group;if(o.removeAll(),!t.getHostGeoModel()){if(i&&"geoRoam"===i.type&&"series"===i.componentType&&i.seriesId===t.id){var a=this._mapDraw;a&&o.add(a.group)}else if(t.needsDrawMap){var a=this._mapDraw||new r(n,!0);o.add(a.group),a.draw(t,e,n,this,i),this._mapDraw=a}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;t.get("showLegendSymbol")&&e.getComponent("legend")&&this._renderSymbols(t,e,n)}}},remove:function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},dispose:function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},_renderSymbols:function(t,e,n){var r=t.originalData,o=this.group;r.each("value",function(e,n){if(!isNaN(e)){var a=r.getItemLayout(n);if(a&&a.point){var s=a.point,l=a.offset,u=new i.Circle({style:{fill:t.getData().getVisual("color")},shape:{cx:s[0]+9*l,cy:s[1],r:3},silent:!0,z2:10});if(!l){var c=t.mainSeries.getData(),h=r.getName(n),f=h,d=c.indexOfName(h),p=r.getItemModel(n),g=p.getModel("label.normal"),v=p.getModel("label.emphasis"),m=g.getModel("textStyle"),y=v.getModel("textStyle"),x=c.getItemGraphicEl(d);u.setStyle({textPosition:"bottom"});var _=function(){u.setStyle({text:v.get("show")?f:"",textFill:y.getTextColor(),textFont:y.getFont()})},b=function(){u.setStyle({text:g.get("show")?f:"",textFill:m.getTextColor(),textFont:m.getFont()})};x.on("mouseover",_).on("mouseout",b).on("emphasis",_).on("normal",b),b()}o.add(u)}}})}})},function(t,e,n){var i=n(1);t.exports=function(t){var e=[];i.each(t.series,function(t){"map"===t.type&&e.push(t)}),i.each(e,function(t){t.map=t.map||t.mapType,i.defaults(t,t.mapLocation)})}},function(t,e,n){function i(t,e){var n={},i=["value"];return r.each(t,function(t){t.each(i,function(e,i){var r=t.getName(i);n[r]=n[r]||[],isNaN(e)||n[r].push(e)})}),t[0].map(i,function(i,r){for(var o=t[0].getName(r),a=0,s=1/0,l=-(1/0),u=n[o].length,c=0;c=0?e:NaN}})}function r(t){return+t.replace("dim","")}function o(t,e){var n=0;s.each(t,function(t){var e=r(t);e>n&&(n=e)});var i=e[0];i&&i.length-1>n&&(n=i.length-1);for(var o=[],a=0;a<=n;a++)o.push("dim"+a);return o}var a=n(10),s=n(1),l=n(13),u=n(17);t.exports=l.extend({type:"series.parallel",dependencies:["parallel"],getInitialData:function(t,e){var n=e.getComponent("parallel",this.get("parallelIndex")),r=n.parallelAxisIndex,l=t.data,c=n.dimensions,h=o(c,l),f=s.map(h,function(t,n){var o=s.indexOf(c,t),a=o>=0&&e.getComponent("parallelAxis",r[o]);return a&&"category"===a.get("type")?(i(a,t,l),{name:t,type:"ordinal"}):o<0&&u.guessOrdinal(l,n)?{name:t,type:"ordinal"}:t}),d=new a(f,this);return d.initData(l),this.option.progressive&&(this.option.animation=!1),d},getRawIndicesByActiveState:function(t){var e=this.coordinateSystem,n=this.getData(),i=[];return e.eachActiveState(n,function(e,r){t===e&&i.push(n.getRawIndex(r))}),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(t,e,n){function i(t,e,n){var i=t.model,r=t.getRect(),o=new l.Rect({shape:{x:r.x,y:r.y,width:r.width,height:r.height}}),a="horizontal"===i.get("layout")?"width":"height";return o.setShape(a,0),l.initProps(o,{shape:{width:r.width,height:r.height}},e,n),o}function r(t,e,n,i){for(var r=[],o=0;o0&&"scale"!==f){var g=a.getItemLayout(0),v=Math.max(n.getWidth(),n.getHeight())/2,m=l.bind(u.removeClipPath,u);u.setClipPath(this._createClipPath(g.cx,g.cy,v,g.startAngle,g.clockwise,m,t))}this._data=a}},dispose:function(){},_createClipPath:function(t,e,n,i,r,o,a){var l=new s.Sector({shape:{cx:t,cy:e,r0:0,r:n,startAngle:i,endAngle:i,clockwise:r}});return s.initProps(l,{shape:{endAngle:i+(r?1:-1)*Math.PI*2}},a,o),l},containPoint:function(t,e){var n=e.getData(),i=n.getItemLayout(0);if(i){var r=t[0]-i.cx,o=t[1]-i.cy,a=Math.sqrt(r*r+o*o);return a<=i.r&&a>=i.r0}}});t.exports=c},function(t,e,n){"use strict";function i(t,e,n,i,r,o,a){function s(e,n,i,r){for(var o=e;oe&&o+1t[o].y+t[o].height)return void l(o,i/2);l(n-1,i/2)}function l(e,n){for(var i=e;i>=0&&(t[i].y-=n,!(i>0&&t[i].y>t[i-1].y+t[i-1].height));i--);}function u(t,e,n,i,r,o){for(var a=o>0?e?Number.MAX_VALUE:0:e?Number.MAX_VALUE:0,s=0,l=t.length;s=a&&(f=a-10),!e&&f<=a&&(f=a+10),t[s].x=n+f*o,a=f}}t.sort(function(t,e){return t.y-e.y});for(var c,h=0,f=t.length,d=[],p=[],g=0;g=n?p.push(t[g]):d.push(t[g]);u(d,!1,e,n,i,r),u(p,!0,e,n,i,r)}function r(t,e,n,r,o,a){for(var s=[],l=[],u=0;u0?"left":"right"}var D=g.getModel("textStyle").getFont(),k=g.get("rotate")?b<0?-_+Math.PI:-_:0,P=t.getFormattedLabel(n,"normal")||l.getName(n),E=o.getBoundingRect(P,D,f,"top");c=!!k,d.label={x:i,y:r,position:v,height:E.height,len:y,len2:x,linePoints:h,textAlign:f,verticalAlign:"middle",font:D,rotation:k},S||u.push(d.label)}),!c&&t.get("avoidLabelOverlap")&&r(u,a,s,e,n,i)}},function(t,e,n){var i=n(4),r=i.parsePercent,o=n(217),a=n(1),s=2*Math.PI,l=Math.PI/180;t.exports=function(t,e,n,u){e.eachSeriesByType(t,function(t){var e=t.get("center"),u=t.get("radius");a.isArray(u)||(u=[0,u]),a.isArray(e)||(e=[e,e]);var c=n.getWidth(),h=n.getHeight(),f=Math.min(c,h),d=r(e[0],c),p=r(e[1],h),g=r(u[0],f/2),v=r(u[1],f/2),m=t.getData(),y=-t.get("startAngle")*l,x=t.get("minAngle")*l,_=m.getSum("value"),b=Math.PI/(_||m.count())*2,w=t.get("clockwise"),S=t.get("roseType"),M=t.get("stillShowZeroSum"),A=m.getDataExtent("value");A[0]=0;var T=s,I=0,C=y,L=w?1:-1;if(m.each("value",function(t,e){var n;if(isNaN(t))return void m.setItemLayout(e,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:w,cx:d,cy:p,r0:g,r:S?NaN:v});n="area"!==S?0===_&&M?b:t*b:s/(m.count()||1),n"+a.map(i,function(t,n){return s(t.name+" : "+e[n])}).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}});t.exports=l},function(t,e,n){function i(t){return o.isArray(t)||(t=[+t,+t]),t}var r=n(3),o=n(1),a=n(18);t.exports=n(2).extendChartView({type:"radar",render:function(t,e,n){function s(t,e){var n=t.getItemVisual(e,"symbol")||"circle",r=t.getItemVisual(e,"color");if("none"!==n){var o=a.createSymbol(n,-.5,-.5,1,1,r);return o.attr({style:{strokeNoScale:!0},z2:100,scale:i(t.getItemVisual(e,"symbolSize"))}),o}}function l(e,n,i,o,a,l){i.removeAll();for(var u=0;u0;r--)a*=.99,f(o,a),h(o,i,n),p(o,a),h(o,i,n)}function c(t,e,n,i,r){var o=[];T.each(e,function(t){var e=t.length,n=0;T.each(t,function(t){n+=t.getLayout().value});var a=(i-(e-1)*r)/n;o.push(a)}),o.sort(function(t,e){return t-e});var a=o[0];T.each(e,function(t){T.each(t,function(t,e){t.setLayout({y:e},!0);var n=t.getLayout().value*a;t.setLayout({dy:n},!0)})}),T.each(n,function(t){var e=+t.getValue()*a;t.setLayout({dy:e},!0)})}function h(t,e,n){T.each(t,function(t){var i,r,o,a=0,s=t.length;for(t.sort(b),o=0;o0){var l=i.getLayout().y+r;i.setLayout({y:l},!0)}a=i.getLayout().y+i.getLayout().dy+e}if(r=a-e-n,r>0){var l=i.getLayout().y-r;for(i.setLayout({y:l},!0),a=i.getLayout().y,o=s-2;o>=0;--o)i=t[o],r=i.getLayout().y+i.getLayout().dy+e-a,r>0&&(l=i.getLayout().y-r,i.setLayout({y:l},!0)),a=i.getLayout().y}})}function f(t,e){T.each(t.slice().reverse(),function(t){T.each(t,function(t){if(t.outEdges.length){var n=x(t.outEdges,d)/x(t.outEdges,S),i=t.getLayout().y+(n-_(t))*e;t.setLayout({y:i},!0)}})})}function d(t){return _(t.node2)*t.getValue()}function p(t,e){T.each(t,function(t){T.each(t,function(t){if(t.inEdges.length){var n=x(t.inEdges,g)/x(t.inEdges,S),i=t.getLayout().y+(n-_(t))*e;t.setLayout({y:i},!0)}})})}function g(t){return _(t.node1)*t.getValue()}function v(t){T.each(t,function(t){t.outEdges.sort(m),t.inEdges.sort(y)}),T.each(t,function(t){var e=0,n=0;T.each(t.outEdges,function(t){t.setLayout({sy:e},!0),e+=t.getLayout().dy}),T.each(t.inEdges,function(t){t.setLayout({ty:n},!0),n+=t.getLayout().dy})})}function m(t,e){return t.node2.getLayout().y-e.node2.getLayout().y}function y(t,e){return t.node1.getLayout().y-e.node1.getLayout().y}function x(t,e){for(var n=0,i=t.length,r=-1;++re?1:t===e?0:NaN}function S(t){return t.getValue()}var M=n(8),A=n(113),T=n(1);t.exports=function(t,e,n){t.eachSeriesByType("sankey",function(t){var n=t.get("nodeWidth"),a=t.get("nodeGap"),s=i(t,e);t.layoutInfo=s;var l=s.width,u=s.height,c=t.getGraph(),h=c.nodes,f=c.edges;o(h),r(h,f,n,a,l,u,0!==h.filter(function(t){return 0===t.getLayout().value}).length?0:t.get("layoutIterations"))})}},function(t,e,n){var i=n(28),r=n(1);t.exports=function(t,e){t.eachSeriesByType("sankey",function(t){var e=t.getGraph(),n=e.nodes;n.sort(function(t,e){return t.getLayout().value-e.getLayout().value});var o=n[0].getLayout().value,a=n[n.length-1].getLayout().value;r.each(n,function(e){var n=new i({type:"color",mappingMethod:"linear",dataExtent:[o,a],visual:t.get("color")}),r=n.mapValueToVisual(e.getLayout().value);e.setVisual("color",r);var s=e.getModel(),l=s.get("itemStyle.normal.color");null!=l&&e.setVisual("color",l)})})}},function(t,e,n){var i=n(1),r=n(2);n(230),n(231),r.registerVisual(i.curry(n(32),"scatter","circle",null)),r.registerLayout(i.curry(n(69),"scatter")),n(38)},function(t,e,n){"use strict";var i=n(30),r=n(13);t.exports=r.extend({type:"series.scatter",dependencies:["grid","polar"],getInitialData:function(t,e){return i(t.data,this,e)},brushSelector:"point",defaultOption:{coordinateSystem:"cartesian2d",zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,symbolSize:10,large:!1,largeThreshold:2e3,itemStyle:{normal:{opacity:.8}}}})},function(t,e,n){var i=n(34),r=n(190);n(2).extendChartView({type:"scatter",init:function(){this._normalSymbolDraw=new i,this._largeSymbolDraw=new r},render:function(t,e,n){var i=t.getData(),r=this._largeSymbolDraw,o=this._normalSymbolDraw,a=this.group,s=t.get("large")&&i.count()>t.get("largeThreshold")?r:o;this._symbolDraw=s,s.updateData(i),a.add(s.group),a.remove(s===r?o.group:r.group)},updateLayout:function(t){this._symbolDraw.updateLayout(t)},remove:function(t,e){this._symbolDraw&&this._symbolDraw.remove(e,!0)},dispose:function(){}})},function(t,e,n){var i=n(2),r=n(1);n(97),n(233),n(234),i.registerLayout(n(235)),i.registerVisual(n(236)),i.registerProcessor(r.curry(n(47),"themeRiver"))},function(t,e,n){"use strict";var i=n(17),r=n(13),o=n(10),a=n(1),s=n(6),l=s.encodeHTML,u=n(113),c=2,h=r.extend({type:"series.themeRiver",dependencies:["singleAxis"],nameMap:null,init:function(t){h.superApply(this,"init",arguments),this.legendDataProvider=function(){return this.getRawData()}},fixData:function(t){for(var e=t.length,n=u().key(function(t){return t[2]}).entries(t),i=a.map(n,function(t){return{name:t.key,dataList:t.values}}),r=i.length,o=-1,s=-1,l=0;lo&&(o=c,s=l)}for(var h=0;h",o=0;o"}return r},defaultOption:{zlevel:0,z:2,coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{normal:{margin:4,textAlign:"right",show:!0,position:"left",textStyle:{color:"#000",fontSize:11}},emphasis:{show:!0}}}});t.exports=h},function(t,e,n){(function(e){function i(t,e,n){var i=new o.Rect({shape:{x:t.x-10,y:t.y-10,width:0,height:t.height+20}});return o.initProps(i,{shape:{width:t.width+20,height:t.height+20}},e,n),i}var r=n(88),o=n(3),a=n(1),s=n(40);t.exports=n(2).extendChartView({type:"themeRiver",init:function(){this._layers=[]},render:function(t,e,n){function l(t){return t.name}function u(e,n,s){var l=this._layers;if("remove"===e)return void f.remove(l[n]);for(var u,p=[],g=[],v=d[n].indices,m=0;ma&&(a=e),r.push(e)}for(var c=0;ca&&(a=f)}return s.y0=o,s.max=a,s}var o=n(1),a=n(4);t.exports=function(t,e){t.eachSeriesByType("themeRiver",function(t){var e=t.getData(),n=t.coordinateSystem,r={},o=n.getRect();r.rect=o;var s=t.get("boundaryGap"),l=n.getAxis();r.boundaryGap=s,"horizontal"===l.orient?(s[0]=a.parsePercent(s[0],o.height),s[1]=a.parsePercent(s[1],o.height),i(e,t,o.height-s[0]-s[1])):(s[0]=a.parsePercent(s[0],o.width),s[1]=a.parsePercent(s[1],o.width),i(e,t,o.width-s[0]-s[1])),e.setLayout("layoutInfo",r)})}},function(t,e){t.exports=function(t){t.eachSeriesByType("themeRiver",function(t){var e=t.getData(),n=t.getRawData(),i=t.get("color");e.each(function(r){var o=e.getName(r),a=i[(t.nameMap[o]-1)%i.length];n.setItemVisual(r,"color",a)})})}},function(t,e,n){var i=n(2);n(239),n(240),n(241),i.registerVisual(n(243)),i.registerLayout(n(242))},function(t,e,n){function i(t){this.group=new a.Group,t.add(this.group)}function r(t,e,n,i,r,o){var a=[[r?t:t-h,e],[t+n,e],[t+n,e+i],[r?t:t-h,e+i]];return!o&&a.splice(2,0,[t+n+h,e+i/2]),!r&&a.push([t,e+i/2]),a}function o(t,e,n){t.eventData={componentType:"series",componentSubType:"treemap",seriesIndex:e.componentIndex,seriesName:e.name,seriesType:"treemap",selfType:"breadcrumb",nodeData:{dataIndex:n&&n.dataIndex,name:n&&n.name},treePathInfo:n&&u.wrapTreePathInfo(n,e)}}var a=n(3),s=n(8),l=n(1),u=n(31),c=8,h=5;i.prototype={constructor:i,render:function(t,e,n,i){var r=t.getModel("breadcrumb"),o=this.group;if(o.removeAll(),r.get("show")&&n){var a=r.getModel("itemStyle.normal"),l=a.getModel("textStyle"),u={pos:{left:r.get("left"),right:r.get("right"),top:r.get("top"),bottom:r.get("bottom")},box:{width:e.getWidth(),height:e.getHeight()},emptyItemWidth:r.get("emptyItemWidth"),totalWidth:0,renderList:[]};this._prepare(n,u,l),this._renderContent(t,u,a,l,i),s.positionElement(o,u.pos,u.box)}},_prepare:function(t,e,n){for(var i=t;i;i=i.parentNode){var r=i.getModel().get("name"),o=n.getTextRect(r),a=Math.max(o.width+16,e.emptyItemWidth);e.totalWidth+=a+c,e.renderList.push({node:i,text:r,width:a})}},_renderContent:function(t,e,n,i,u){for(var h=0,f=e.emptyItemWidth,d=t.get("breadcrumb.height"),p=s.getAvailableSize(e.pos,e.box),g=e.totalWidth,v=e.renderList,m=v.length-1;m>=0;m--){var y=v[m],x=y.node,_=y.width,b=y.text;g>p.width&&(g-=_-f,_=f,b="");var w=new a.Polygon({shape:{points:r(h,0,_,d,m===v.length-1,0===m)},style:l.defaults(n.getItemStyle(),{lineJoin:"bevel",text:b,textFill:i.getTextColor(),textFont:i.getFont()}),z:10,onclick:l.curry(u,x)});this.group.add(w),o(w,t,x),h+=_+c}},remove:function(){this.group.removeAll()}},t.exports=i},function(t,e,n){function i(t,e){var n=0;s.each(t.children,function(t){i(t,e);var r=t.value;s.isArray(r)&&(r=r[0]),n+=r});var r=t.value;e>=0&&(s.isArray(r)?r=r[0]:t.value=new Array(e)),(null==r||isNaN(r))&&(r=n),r<0&&(r=0),e>=0?t.value[0]=r:t.value=r}function r(t,e){var n=e.get("color");if(n){t=t||[];var i;return s.each(t,function(t){var e=new l(t),n=e.get("color");(e.get("itemStyle.normal.color")||n&&"none"!==n)&&(i=!0)}),i||((t[0]||(t[0]={})).color=n.slice()),t}}var o=n(13),a=n(350),s=n(1),l=n(11),u=n(6),c=n(31),h=u.encodeHTML,f=u.addCommas;t.exports=o.extend({type:"series.treemap",layoutMode:"box",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:"▶",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:{}},visualDimension:0,visualMin:null,visualMax:null,color:[],colorAlpha:null,colorSaturation:null,colorMappingBy:"index",visibleMin:10,childrenVisibleMin:null,levels:[] },getInitialData:function(t,e){var n=t.data||[],o=t.name;null==o&&(o=t.name);var l={name:o,children:t.data},u=(n[0]||{}).value;i(l,s.isArray(u)?u.length:-1);var c=t.levels||[];return c=t.levels=r(c,e),a.createTree(l,this,c).data},optionUpdated:function(){this.resetViewRoot()},formatTooltip:function(t){var e=this.getData(),n=this.getRawValue(t),i=f(s.isArray(n)?n[0]:n);return h(e.getName(t)+": "+i)},getDataParams:function(t){var e=o.prototype.getDataParams.apply(this,arguments),n=this.getData().tree.getNodeByDataIndex(t);return e.treePathInfo=c.wrapTreePathInfo(n,this),e},setLayoutInfo:function(t){this.layoutInfo=this.layoutInfo||{},s.extend(this.layoutInfo,t)},mapIdToIndex:function(t){var e=this._idIndexMap;e||(e=this._idIndexMap={},this._idIndexMapCount=0);var n=e[t];return null==n&&(e[t]=n=this._idIndexMapCount++),n},getViewRoot:function(){return this._viewRoot},resetViewRoot:function(t){t?this._viewRoot=t:t=this._viewRoot;var e=this.getData().tree.root;t&&(t===e||e.contains(t))||(this._viewRoot=e)}})},function(t,e,n){function i(){return{nodeGroup:[],background:[],content:[]}}function r(t,e,n,i,r,l,u,c,h,f){function d(e){R.dataIndex=u.dataIndex,R.seriesIndex=t.seriesIndex;var n=T.borderWidth,i=Math.max(I-2*n,0),r=Math.max(C-2*n,0);R.culling=!0,R.setShape({x:n,y:n,width:i,height:r});var o=u.getVisual("color",!0);p(R,function(){var t={fill:o},e=u.getModel("itemStyle.emphasis").getItemStyle();g(t,e,o,i,r),R.setStyle(t),s.setHoverStyle(R,e)}),e.add(R)}function p(t,e){L?!t.invisible&&l.push(t):(e(),t.__tmWillVisible||(t.invisible=!1))}function g(e,n,i,r,o){var a=u.getModel(),s=a.get("name");if(T.isLeafRoot){var l=t.get("drillDownIcon",!0);s=l?l+" "+s:s}y(s,e,a,_,i,r,o),y(s,n,a,b,i,r,o)}function y(t,e,n,i,r,o,a){var l=n.getModel(i),u=l.getModel("textStyle");s.setText(e,l,r),e.textAlign=u.get("align"),e.textVerticalAlign=u.get("baseline");var c=u.getTextRect(t);!l.getShallow("show")||c.height>a?e.text="":c.width>o?e.text=u.get("ellipsis")?u.truncateText(t,o,null,{minChar:2}):"":e.text=t}function x(t,i,a,s){var l=null!=k&&n[t][k],u=r[t];return l?(n[t][k]=null,w(u,l,t)):L||(l=new i({z:o(a,s)}),l.__tmDepth=a,l.__tmStorageName=t,A(u,l,t)),e[t][D]=l}function w(t,e,n){(t[D]={}).old="nodeGroup"===n?e.position.slice():a.extend({},e.shape)}function A(t,e,n){var o=t[D]={},a=u.parentNode;if(a&&(!i||"drillDown"===i.direction)){var s=0,l=0,c=r.background[a.getRawIndex()];!i&&c&&c.old&&(s=c.old.width,l=c.old.height),o.old="nodeGroup"===n?[0,l]:{x:s,y:l,width:0,height:0}}o.fadein="nodeGroup"!==n}if(u){var T=u.getLayout();if(T&&T.isInView){var I=T.width,C=T.height,L=T.invisible,D=u.getRawIndex(),k=c&&c.getRawIndex(),P=x("nodeGroup",v);if(P){if(h.add(P),P.attr("position",[T.x||0,T.y||0]),P.__tmNodeWidth=I,P.__tmNodeHeight=C,T.isAboveViewRoot)return P;var E=x("background",m,f,S);E&&(E.setShape({x:0,y:0,width:I,height:C}),p(E,function(){E.setStyle("fill",u.getVisual("borderColor",!0))}),P.add(E));var O=u.viewChildren;if(!O||!O.length){var R=x("content",m,f,M);R&&d(P)}return P}}}}function o(t,e){var n=t*w+e;return(n-1)/n}var a=n(1),s=n(3),l=n(40),u=n(31),c=n(238),h=n(44),f=n(9),d=n(20),p=n(366),g=a.bind,v=s.Group,m=s.Rect,y=a.each,x=3,_=["label","normal"],b=["label","emphasis"],w=10,S=1,M=2;t.exports=n(2).extendChartView({type:"treemap",init:function(t,e){this._containerGroup,this._storage=i(),this._oldTree,this._breadcrumb,this._controller,this._state="ready",this._mayClick},render:function(t,e,n,i){var r=e.findComponents({mainType:"series",subType:"treemap",query:i});if(!(a.indexOf(r,t)<0)){this.seriesModel=t,this.api=n,this.ecModel=e;var o=u.retrieveTargetInfo(i,t),s=i&&i.type,l=t.layoutInfo,c=!this._oldTree,h=this._storage,f="treemapRootToNode"===s&&o&&h?{rootNodeGroup:h.nodeGroup[o.node.getRawIndex()],direction:i.direction}:null,d=this._giveContainerGroup(l),p=this._doRender(d,t,f);c||s&&"treemapZoomToNode"!==s&&"treemapRootToNode"!==s?p.renderFinally():this._doAnimation(d,p,t,f),this._resetController(n),this._renderBreadcrumb(t,n,o)}},_giveContainerGroup:function(t){var e=this._containerGroup;return e||(e=this._containerGroup=new v,this._initEvents(e),this.group.add(e)),e.attr("position",[t.x,t.y]),e},_doRender:function(t,e,n){function o(t,e,n,i,r){function s(t){return t.getId()}function u(a,s){var l=null!=a?t[a]:null,u=null!=s?e[s]:null,c=v(l,u,n,r);c&&o(l&&l.viewChildren||[],u&&u.viewChildren||[],c,i,r+1)}i?(e=t,y(t,function(t,e){!t.isRemoved()&&u(e,e)})):new l(e,t,s,s).add(u).update(u).remove(a.curry(u,null)).execute()}function s(t){var e=i();return t&&y(t,function(t,n){var i=e[n];y(t,function(t){t&&(i.push(t),t.__tmWillDelete=1)})}),e}function u(){y(m,function(t){y(t,function(t){t.parent&&t.parent.remove(t)})}),y(g,function(t){t.invisible=!0,t.dirty()})}var c=e.getData().tree,h=this._oldTree,f=i(),d=i(),p=this._storage,g=[],v=a.curry(r,e,d,p,n,f,g);o(c.root?[c.root]:[],h&&h.root?[h.root]:[],t,c===h||!h,0);var m=s(p);return this._oldTree=c,this._storage=d,{lastsForAnimation:f,willDeleteEls:m,renderFinally:u}},_doAnimation:function(t,e,n,i){if(n.get("animation")){var r=n.get("animationDurationUpdate"),o=n.get("animationEasing"),s=p.createWrap();y(e.willDeleteEls,function(t,e){y(t,function(t,n){if(!t.invisible){var a,l=t.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 u=0,c=0;l.__tmWillDelete||(u=l.__tmNodeWidth/2,c=l.__tmNodeHeight/2),a="nodeGroup"===e?{position:[u,c],style:{opacity:0}}:{shape:{x:u,y:c,width:0,height:0},style:{opacity:0}}}a&&s.add(t,a,r,o)}})}),y(this._storage,function(t,n){y(t,function(t,i){var l=e.lastsForAnimation[n][i],u={};l&&("nodeGroup"===n?l.old&&(u.position=t.position.slice(),t.attr("position",l.old)):(l.old&&(u.shape=a.extend({},t.shape),t.setShape(l.old)),l.fadein?(t.setStyle("opacity",0),u.style={opacity:1}):1!==t.style.opacity&&(u.style={opacity:1})),s.add(t,u,r,o))})},this),this._state="animating",s.done(g(function(){this._state="ready",e.renderFinally()},this)).start()}},_resetController:function(t){var e=this._controller;e||(e=this._controller=new h(t.getZr()),e.enable(this.seriesModel.get("roam")),e.on("pan",g(this._onPan,this)),e.on("zoom",g(this._onZoom,this)));var n=new f(0,0,t.getWidth(),t.getHeight());e.setContainsPoint(function(t,e){return n.contain(t,e)})},_clearController:function(){var t=this._controller;t&&(t.dispose(),t=null)},_onPan:function(t,e){if(this._mayClick=!1,"animating"!==this._state&&(Math.abs(t)>x||Math.abs(e)>x)){var n=this.seriesModel.getData().tree.root;if(!n)return;var i=n.getLayout();if(!i)return;this.api.dispatchAction({type:"treemapMove",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:i.x+t,y:i.y+e,width:i.width,height:i.height}})}},_onZoom:function(t,e,n){if(this._mayClick=!1,"animating"!==this._state){var i=this.seriesModel.getData().tree.root;if(!i)return;var r=i.getLayout();if(!r)return;var o=new f(r.x,r.y,r.width,r.height),a=this.seriesModel.layoutInfo;e-=a.x,n-=a.y;var s=d.create();d.translate(s,s,[-e,-n]),d.scale(s,s,[t,t]),d.translate(s,s,[e,n]),o.applyTransform(s),this.api.dispatchAction({type:"treemapRender",from:this.uid,seriesId:this.seriesModel.id,rootRect:{x:o.x,y:o.y,width:o.width,height:o.height}})}},_initEvents:function(t){function e(t){var e=this.seriesModel.get("nodeClick",!0);if(e){var n=this.findTarget(t.offsetX,t.offsetY);if(n){var i=n.node;if(i.getLayout().isLeafRoot)this._rootToNode(n);else if("zoomToNode"===e)this._zoomToNode(n);else if("link"===e){var r=i.hostTree.data.getItemModel(i.dataIndex),o=r.get("link",!0),a=r.get("target",!0)||"blank";o&&window.open(o,a)}}}}t.on("mousedown",function(t){"ready"===this._state&&(this._mayClick=!0)},this),t.on("mouseup",function(t){this._mayClick&&(this._mayClick=!1,"ready"===this._state&&e.call(this,t))},this)},_renderBreadcrumb:function(t,e,n){function i(e){"animating"!==this._state&&(u.aboveViewRoot(t.getViewRoot(),e)?this._rootToNode({node:e}):this._zoomToNode({node:e}))}n||(n=null!=t.get("leafDepth",!0)?{node:t.getViewRoot()}:this.findTarget(e.getWidth()/2,e.getHeight()/2),n||(n={node:t.getData().tree.root})),(this._breadcrumb||(this._breadcrumb=new c(this.group))).render(t,e,n.node,g(i,this))},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(t){this.api.dispatchAction({type:"treemapZoomToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},_rootToNode:function(t){this.api.dispatchAction({type:"treemapRootToNode",from:this.uid,seriesId:this.seriesModel.id,targetNode:t.node})},findTarget:function(t,e){var n;return this.seriesModel.getViewRoot().eachNode({attr:"viewChildren",order:"preorder"},function(i){var r=this._storage.background[i.getRawIndex()];if(r){var o=r.transformCoordToLocal(t,e),a=r.shape;if(!(a.x<=o[0]&&o[0]<=a.x+a.width&&a.y<=o[1]&&o[1]<=a.y+a.height))return!1;n={node:i,offsetX:o[0],offsetY:o[1]}}},this),n}})},function(t,e,n){for(var i=n(2),r=n(31),o=function(){},a=["treemapZoomToNode","treemapRender","treemapMove"],s=0;s=0;l--){var u=r["asc"===i?a-l-1:l].getValue();u/n*ea[1]&&(a[1]=e)})}else a=[NaN,NaN];return{sum:i,dataExtent:a}}function u(t,e,n){for(var i,r=0,o=1/0,a=0,s=t.length;ar&&(r=i));var l=t.area*t.area,u=e*e*n;return l?x(u*r/l,l/(u*o)):1/0}function c(t,e,n,i,r){var o=e===n.width?0:1,a=1-o,s=["x","y"],l=["width","height"],u=n[s[o]],c=e?t.area/e:0;(r||c>n[l[a]])&&(c=n[l[a]]);for(var h=0,f=t.length;hg.MAX_SAFE_INTEGER&&(u=g.MAX_SAFE_INTEGER),o=s}u=u.length||t===u[t.depth])&&i(t,c(f,x,t,e,S,h),n,s,u,h)})}else v=o(x,t),t.setVisual("color",v)}}function r(t,e,n,i){var r=d.extend({},e);return d.each(["color","colorAlpha","colorSaturation"],function(o){var a=t.get(o,!0);null==a&&n&&(a=n[o]),null==a&&(a=e[o]),null==a&&(a=i.get(o)),null!=a&&(r[o]=a)}),r}function o(t){var e=s(t,"color");if(e){var n=s(t,"colorAlpha"),i=s(t,"colorSaturation");return i&&(e=f.modifyHSL(e,null,null,i)),n&&(e=f.modifyAlpha(e,n)),e}}function a(t,e){return null!=e?f.modifyHSL(e,null,null,t):null}function s(t,e){var n=t[e];if(null!=n&&"none"!==n)return n}function l(t,e,n,i,r,o){if(o&&o.length){var a=u(e,"color")||null!=r.color&&"none"!==r.color&&(u(e,"colorAlpha")||u(e,"colorSaturation"));if(a){var s=e.get("visualMin"),l=e.get("visualMax"),c=n.dataExtent.slice();null!=s&&sc[1]&&(c[1]=l);var f=e.get("colorMappingBy"),d={type:a.name,dataExtent:c,visual:a.range};"color"!==d.type||"index"!==f&&"id"!==f?d.mappingMethod="linear":(d.mappingMethod="category",d.loop=!0);var p=new h(d);return p.__drColorMappingBy=f,p}}}function u(t,e){var n=t.get(e);return p(n)&&n.length?{name:e,range:n}:null}function c(t,e,n,i,r,o){var a=d.extend({},e);if(r){var s=r.type,l="color"===s&&r.__drColorMappingBy,u="index"===l?i:"id"===l?o.mapIdToIndex(n.getId()):n.getValue(t.get("visualDimension"));a[s]=r.mapValueToVisual(u)}return a}var h=n(28),f=n(21),d=n(1),p=d.isArray,g="itemStyle.normal";t.exports=function(t,e,n){var r={mainType:"series",subType:"treemap",query:n};t.eachComponent(r,function(t){var e=t.getData().tree,n=e.root,r=t.getModel(g);n.isRemoved()||i(n,{},d.map(e.levelModels,function(t){return t?t.get(g):null}),r,t.getViewRoot().getAncestors(),t)})}},function(t,e,n){"use strict";n(68),n(246)},function(t,e,n){"use strict";n(107),n(247)},function(t,e,n){"use strict";function i(t,e,n,i){var r=t.coordToPoint([e,i]),o=t.coordToPoint([n,i]);return{x1:r[0],y1:r[1],x2:o[0],y2:o[1]}}var r=n(1),o=n(3),a=n(11),s=["axisLine","axisLabel","axisTick","splitLine","splitArea"];n(2).extendComponentView({type:"angleAxis",render:function(t,e){if(this.group.removeAll(),t.get("show")){var n=e.getComponent("polar",t.get("polarIndex")),i=t.axis,o=n.coordinateSystem,a=o.getRadiusAxis().getExtent(),l=i.getTicksCoords();"category"!==i.type&&l.pop(),r.each(s,function(e){!t.get(e+".show")||i.isBlank()&&"axisLine"!==e||this["_"+e](t,o,l,a)},this)}},_axisLine:function(t,e,n,i){var r=t.getModel("axisLine.lineStyle"),a=new o.Circle({shape:{cx:e.cx,cy:e.cy,r:i[1]},style:r.getLineStyle(),z2:1,silent:!0});a.style.fill=null,this.group.add(a)},_axisTick:function(t,e,n,a){var s=t.getModel("axisTick"),l=(s.get("inside")?-1:1)*s.get("length"),u=r.map(n,function(t){return new o.Line({shape:i(e,a[1],a[1]+l,t)})});this.group.add(o.mergePath(u,{style:r.defaults(s.getModel("lineStyle").getLineStyle(),{stroke:t.get("axisLine.lineStyle.color")})}))},_axisLabel:function(t,e,n,i){for(var r=t.axis,s=t.get("data"),l=t.getModel("axisLabel"),u=l.getModel("textStyle"),c=t.getFormattedLabels(),h=l.get("margin"),f=r.getLabelsCoords(),d=0;dv?"left":"right",x=Math.abs(g[1]-m)/p<.3?"middle":g[1]>m?"top":"bottom",_=u;s&&s[d]&&s[d].textStyle&&(_=new a(s[d].textStyle,u)),this.group.add(new o.Text({style:{x:g[0],y:g[1],fill:_.getTextColor()||t.get("axisLine.lineStyle.color"),text:c[d],textAlign:y,textVerticalAlign:x,textFont:_.getFont()},silent:!0}))}},_splitLine:function(t,e,n,a){var s=t.getModel("splitLine"),l=s.getModel("lineStyle"),u=l.get("color"),c=0;u=u instanceof Array?u:[u];for(var h=[],f=0;f=m[1])&&(c=!1);var y=r.extend({axisLabelShow:c,strokeContainThreshold:d},g),x=new o(t,y);r.each(l,x.add,x),this._axisGroup.add(x.getGroup()),this._refreshBrushController(y,f,t,d),s.groupTransition(u,this._axisGroup,t)}}},_refreshBrushController:function(t,e,n,i){var o=n.axis,a=r.map(n.activeIntervals,function(t){return{brushType:"lineX",panelId:"pl",range:[o.dataToCoord(t[0],!0),o.dataToCoord(t[1],!0)]}}),l=o.getExtent(),u=l[1]-l[0],c=Math.min(30,.1*Math.abs(u)),h=s.BoundingRect.create({x:l[0],y:-i/2,width:u,height:i});h.x-=c,h.width+=2*c,this._brushController.mount({enableGlobalPan:!0,rotation:t.rotation,position:t.position}).setPanels([{panelId:"pl",rect:h}]).enableBrush({brushType:"lineX",brushStyle:e,removeOnClick:!0}).updateCovers(a)},_onBrush:function(t,e){var n=this.axisModel,i=n.axis,o=r.map(t,function(t){return[i.coordToData(t.range[0],!0),i.coordToData(t.range[1],!0)]});(!n.option.realtime===e.isEnd||e.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:n.id,intervals:o})},dispose:function(){this._brushController.dispose()}});t.exports=u},function(t,e,n){"use strict";function i(t,e,n){return{position:[t.cx,t.cy],rotation:n/180*Math.PI,labelDirection:-1,tickDirection:-1,nameDirection:1,labelRotation:e.getModel("axisLabel").get("rotate"),z2:1}}var r=n(1),o=n(3),a=n(35),s=["axisLine","axisLabel","axisTick","axisName"],l=["splitLine","splitArea"];n(2).extendComponentView({type:"radiusAxis",render:function(t,e){if(this.group.removeAll(),t.get("show")){var n=e.getComponent("polar",t.get("polarIndex")),o=n.coordinateSystem.getAngleAxis(),u=t.axis,c=n.coordinateSystem,h=u.getTicksCoords(),f=o.getExtent()[0],d=u.getExtent(),p=i(c,t,f),g=new a(t,p);r.each(s,g.add,g),this.group.add(g.getGroup()),r.each(l,function(e){t.get(e+".show")&&!u.isBlank()&&this["_"+e](t,c,f,d,h)},this)}},_splitLine:function(t,e,n,i,a){var s=t.getModel("splitLine"),l=s.getModel("lineStyle"),u=l.get("color"),c=0;u=u instanceof Array?u:[u];for(var h=[],f=0;f1)return!1;var f=l(n-t,r-t,i-e,o-e)/c;return!(f<0||f>1)}function s(t){return t<=1e-6&&t>=-1e-6}function l(t,e,n,i){return t*i-e*n}var u=n(122).contain,c=n(9),h={lineX:i(0),lineY:i(1),rect:{point:function(t,e,n){return n.boundingRect.contain(t[0],t[1])},rect:function(t,e,n){return n.boundingRect.intersect(t)}},polygon:{point:function(t,e,n){return n.boundingRect.contain(t[0],t[1])&&u(n.range,t[0],t[1])},rect:function(t,e,n){var i=n.range;if(i.length<=1)return!1;var r=t.x,a=t.y,s=t.width,l=t.height,h=i[0];return!!(u(i,r,a)||u(i,r+s,a)||u(i,r,a+l)||u(i,r+s,a+l)||c.create(t).contain(h[0],h[1])||o(r,a,r+s,a,i)||o(r,a,r,a+l,i)||o(r+s,a,r+s,a+l,i)||o(r,a+l,r+s,a+l,i))||void 0}}};t.exports=h},function(t,e,n){function i(t,e,n,i,o){if(o){var a=t.getZr();a[x]||(a[y]||(a[y]=r),g.createOrUpdate(a,y,n,e)(t,i))}}function r(t,e){if(!t.isDisposed()){var n=t.getZr();n[x]=!0,t.dispatchAction({type:"brushSelect",batch:e}),n[x]=!1}}function o(t,e,n,i){for(var r=n.getItemLayout(i),o=0,a=e.length;oe[0][1]&&(e[0][1]=o[0]),o[1]e[1][1]&&(e[1][1]=o[1])}return e&&u(e)}}},function(t,e,n){n(92),n(36),n(37),n(265),n(266),n(261),n(262),n(90),n(89)},function(t,e,n){function i(t,e){var n=[1/0,-(1/0)];return u(e,function(e){var i=e.getData();i&&u(e.coordDimToDataDim(t),function(t){var e=i.getDataExtent(t);e[0]n[1]&&(n[1]=e[1])})},this),n[1]0&&(t[0]=0),t[1]<0&&(t[1]=0)),t}function o(t,e){var n=t.getAxisModel(),i=t._percentWindow,r=t._valueWindow;if(i){var o=s.getPixelPrecision(r,[0,500]),a=e||0===i[0]&&100===i[1];n.setRange(a?null:+r[0].toFixed(o),a?null:+r[1].toFixed(o))}}var a=n(1),s=n(4),l=n(59),u=a.each,c=s.asc,h=function(t,e,n,i){this._dimName=t,this._axisIndex=e,this._valueWindow,this._percentWindow,this._dataExtent,this.ecModel=i,this._dataZoomModel=n};h.prototype={constructor:h,hostedBy:function(t){return this._dataZoomModel===t},getDataValueWindow:function(){return this._valueWindow.slice()},getDataPercentWindow:function(){return this._percentWindow.slice()},getTargetSeriesModels:function(){var t=[],e=this.ecModel;return e.eachSeries(function(n){if(l.isCoordSupported(n.get("coordinateSystem"))){var i=this._dimName,r=e.queryComponents({mainType:i+"Axis",index:n.get(i+"AxisIndex"),id:n.get(i+"AxisId")})[0];this._axisIndex===(r&&r.componentIndex)&&t.push(n)}},this),t},getAxisModel:function(){return this.ecModel.getComponent(this._dimName+"Axis",this._axisIndex)},getOtherAxisModel:function(){var t,e,n=this._dimName,i=this.ecModel,r=this.getAxisModel(),o="x"===n||"y"===n;o?(e="gridIndex",t="x"===n?"y":"x"):(e="polarIndex",t="angle"===n?"radius":"angle");var a;return i.eachComponent(t+"Axis",function(t){(t.get(e)||0)===(r.get(e)||0)&&(a=t)}),a},calculateDataWindow:function(t){var e=this._dataExtent,n=this.getAxisModel(),i=n.axis.scale,o=[0,100],a=[t.start,t.end],l=[];return e=e.slice(),r(e,n),u(["startValue","endValue"],function(e){l.push(null!=t[e]?i.parse(t[e]):null)}),u([0,1],function(t){var n=l[t],r=a[t];null!=r||null==n?(null==r&&(r=o[t]),n=i.parse(s.linearMap(r,o,e,!0))):r=s.linearMap(n,e,o,!0),l[t]=n,a[t]=r}),{valueWindow:c(l),percentWindow:c(a)}},reset:function(t){if(t===this._dataZoomModel){this._dataExtent=i(this._dimName,this.getTargetSeriesModels());var e=this.calculateDataWindow(t.option);this._valueWindow=e.valueWindow,this._percentWindow=e.percentWindow,o(this)}},restore:function(t){t===this._dataZoomModel&&(this._valueWindow=this._percentWindow=null,o(this,!0))},filterData:function(t){function e(t){return t>=o[0]&&t<=o[1]}if(t===this._dataZoomModel){var n=this._dimName,i=this.getTargetSeriesModels(),r=t.get("filterMode"),o=this._valueWindow,a=this.getOtherAxisModel();t.get("$fromToolbox")&&a&&"category"===a.get("type")&&(r="empty"),u(i,function(t){var i=t.getData();i&&u(t.coordDimToDataDim(n),function(n){"empty"===r?t.setData(i.map(n,function(t){return e(t)?t:NaN})):i.filterSelf(n,e)})})}}},t.exports=h},function(t,e,n){t.exports=n(36).extend({type:"dataZoom.inside",defaultOption:{disabled:!1,zoomLock:!1}})},function(t,e,n){function i(t){var e=[0,100];return!(t[0]<=e[1])&&(t[0]=e[1]),!(t[1]<=e[1])&&(t[1]=e[1]),!(t[0]>=e[0])&&(t[0]=e[0]),!(t[1]>=e[0])&&(t[1]=e[0]),t}var r=n(37),o=n(1),a=n(63),s=n(267),l=o.bind,u=r.extend({type:"dataZoom.inside",init:function(t,e){this._range},render:function(t,e,n,i){u.superApply(this,"render",arguments),s.shouldRecordRange(i,t.id)&&(this._range=t.getPercentRange()),o.each(this.getTargetCoordInfo(),function(e,i){var r=o.map(e,function(t){return s.generateCoordId(t.model)});o.each(e,function(e){var o=e.model;s.register(n,{coordId:s.generateCoordId(o),allCoordIds:r,containsPoint:function(t,e){return o.coordinateSystem.containPoint([t,e])},dataZoomId:t.id,throttleRate:t.get("throttle",!0),panGetRange:l(this._onPan,this,e,i),zoomGetRange:l(this._onZoom,this,e,i)})},this)},this)},dispose:function(){s.unregister(this.api,this.dataZoomModel.id),u.superApply(this,"dispose",arguments),this._range=null},_onPan:function(t,e,n,i,r,o,s,l,u){if(this.dataZoomModel.option.disabled)return this._range;var h=this._range.slice(),f=t.axisModels[0];if(f){var d=c[e]([o,s],[l,u],f,n,t);return a(d.signal*(h[1]-h[0])*d.pixel/d.pixelLength,h,[0,100],"rigid"),this._range=h}},_onZoom:function(t,e,n,r,o,a){var s=this.dataZoomModel.option;if(s.disabled||s.zoomLock)return this._range;var l=this._range.slice(),u=t.axisModels[0];if(u){var h=c[e](null,[o,a],u,n,t),f=(h.pixel-h.pixelStart)/h.pixelLength*(l[1]-l[0])+l[0];return r=Math.max(1/r,0),l[0]=(l[0]-f)*r+f,l[1]=(l[1]-f)*r+f,this._range=i(l)}}}),c={grid:function(t,e,n,i,r){var o=n.axis,a={},s=r.model.coordinateSystem.getRect();return t=t||[0,0],"x"===o.dim?(a.pixel=e[0]-t[0],a.pixelLength=s.width,a.pixelStart=s.x,a.signal=o.inverse?1:-1):(a.pixel=e[1]-t[1],a.pixelLength=s.height,a.pixelStart=s.y,a.signal=o.inverse?-1:1),a},polar:function(t,e,n,i,r){var o=n.axis,a={},s=r.model.coordinateSystem,l=s.getRadiusAxis().getExtent(),u=s.getAngleAxis().getExtent();return t=t?s.pointToCoord(t):[0,0],e=s.pointToCoord(e),"radiusAxis"===n.mainType?(a.pixel=e[0]-t[0],a.pixelLength=l[1]-l[0],a.pixelStart=l[0],a.signal=o.inverse?1:-1):(a.pixel=e[1]-t[1],a.pixelLength=u[1]-u[0],a.pixelStart=u[0],a.signal=o.inverse?-1:1),a},singleAxis:function(t,e,n,i,r){var o=n.axis,a=r.model.coordinateSystem.getRect(),s={};return t=t||[0,0],"horizontal"===o.orient?(s.pixel=e[0]-t[0],s.pixelLength=a.width,s.pixelStart=a.x,s.signal=o.inverse?1:-1):(s.pixel=e[1]-t[1],s.pixelLength=a.height,s.pixelStart=a.y,s.signal=o.inverse?-1:1),s}};t.exports=u},function(t,e,n){var i=n(36);t.exports=i.extend({type:"dataZoom.select"})},function(t,e,n){t.exports=n(37).extend({type:"dataZoom.select"})},function(t,e,n){var i=n(36),r=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"}}});t.exports=r},function(t,e,n){function i(t){return{x:"y",y:"x",radius:"angle",angle:"radius"}[t]}var r=n(1),o=n(3),a=n(50),s=n(37),l=o.Rect,u=n(4),c=u.linearMap,h=n(8),f=n(63),d=u.asc,p=r.bind,g=r.each,v=7,m=1,y=30,x="horizontal",_="vertical",b=5,w=["line","bar","candlestick","scatter"],S=s.extend({type:"dataZoom.slider",init:function(t,e){this._displayables={},this._orient,this._range,this._handleEnds,this._size,this._handleWidth,this._handleHeight,this._location,this._dragging,this._dataShadowInfo,this.api=e},render:function(t,e,n,i){return S.superApply(this,"render",arguments),a.createOrUpdate(this,"_dispatchZoomAction",this.dataZoomModel.get("throttle"),"fixRate"),this._orient=t.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(){S.superApply(this,"remove",arguments),a.clear(this,"_dispatchZoomAction")},dispose:function(){S.superApply(this,"dispose",arguments),a.clear(this,"_dispatchZoomAction")},_buildView:function(){var t=this.group;t.removeAll(),this._resetLocation(),this._resetInterval();var e=this._displayables.barGroup=new o.Group;this._renderBackground(),this._renderHandle(),this._renderDataShadow(),t.add(e),this._positionGroup()},_resetLocation:function(){var t=this.dataZoomModel,e=this.api,n=this._findCoordRect(),i={width:e.getWidth(),height:e.getHeight()},o=this._orient===x?{right:i.width-n.x-n.width,top:i.height-y-v,width:n.width,height:y}:{right:v,top:n.y,width:y,height:n.height},a=h.getLayoutParams(t.option);r.each(["right","top","width","height"],function(t){"ph"===a[t]&&(a[t]=o[t])});var s=h.getLayoutRect(a,i,t.padding);this._location={x:s.x,y:s.y},this._size=[s.width,s.height],this._orient===_&&this._size.reverse()},_positionGroup:function(){var t=this.group,e=this._location,n=this._orient,i=this.dataZoomModel.getFirstTargetAxisModel(),r=i&&i.get("inverse"),o=this._displayables.barGroup,a=(this._dataShadowInfo||{}).otherAxisInverse;o.attr(n!==x||r?n===x&&r?{scale:a?[-1,1]:[-1,-1]}:n!==_||r?{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=t.getBoundingRect([o]);t.attr("position",[e.x-s.x,e.y-s.y])},_getViewExtent:function(){return[0,this._size[0]]},_renderBackground:function(){var t=this.dataZoomModel,e=this._size;this._displayables.barGroup.add(new l({silent:!0,shape:{x:0,y:0,width:e[0],height:e[1]},style:{fill:t.get("backgroundColor")},z2:-40}))},_renderDataShadow:function(){var t=this._dataShadowInfo=this._prepareDataShadowInfo();if(t){var e=this._size,n=t.series,i=n.getRawData(),a=n.getShadowDim?n.getShadowDim():t.otherDim;if(null!=a){var s=i.getDataExtent(a),l=.3*(s[1]-s[0]);s=[s[0]-l,s[1]+l];var u,h=[0,e[1]],f=[0,e[0]],d=[[e[0],0],[0,0]],p=[],g=f[1]/(i.count()-1),v=0,m=Math.round(i.count()/e[0]);i.each([a],function(t,e){if(m>0&&e%m)return void(v+=g);var n=null==t||isNaN(t)||""===t,i=n?0:c(t,s,h,!0);n&&!u&&e?(d.push([d[d.length-1][0],0]),p.push([p[p.length-1][0],0])):!n&&u&&(d.push([v,0]),p.push([v,0])),d.push([v,i]),p.push([v,i]),v+=g,u=n});var y=this.dataZoomModel;this._displayables.barGroup.add(new o.Polygon({shape:{points:d},style:r.defaults({fill:y.get("dataBackgroundColor")},y.getModel("dataBackground.areaStyle").getAreaStyle()),silent:!0,z2:-20})),this._displayables.barGroup.add(new o.Polyline({shape:{points:p},style:y.getModel("dataBackground.lineStyle").getLineStyle(),silent:!0,z2:-19}))}}},_prepareDataShadowInfo:function(){var t=this.dataZoomModel,e=t.get("showDataShadow");if(e!==!1){var n,o=this.ecModel;return t.eachTargetAxis(function(a,s){var l=t.getAxisProxy(a.name,s).getTargetSeriesModels();r.each(l,function(t){if(!(n||e!==!0&&r.indexOf(w,t.get("type"))<0)){var l,u=o.getComponent(a.axis,s).axis,c=i(a.name),h=t.coordinateSystem;null!=c&&h.getOtherAxis&&(l=h.getOtherAxis(u).inverse),n={thisAxis:u,series:t,thisDim:a.name,otherDim:c,otherAxisInverse:l}}},this)},this),n}},_renderHandle:function(){var t=this._displayables,e=t.handles=[],n=t.handleLabels=[],i=this._displayables.barGroup,r=this._size,a=this.dataZoomModel;i.add(t.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(o.subPixelOptimizeRect({silent:!0,shape:{x:0,y:0,width:r[0],height:r[1]},style:{stroke:a.get("dataBackgroundColor")||a.get("borderColor"),lineWidth:m,fill:"rgba(0,0,0,0)"}})));var s=a.get("handleIcon");g([0,1],function(t){var r=o.makePath(s,{style:{strokeNoScale:!0},rectHover:!0,cursor:"vertical"===this._orient?"ns-resize":"ew-resize",draggable:!0,drift:p(this._onDragMove,this,t),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=r.getBoundingRect();this._handleHeight=u.parsePercent(a.get("handleSize"),this._size[1]),this._handleWidth=l.width/l.height*this._handleHeight,r.setStyle(a.getModel("handleStyle").getItemStyle());var c=a.get("handleColor");null!=c&&(r.style.fill=c),i.add(e[t]=r);var h=a.textStyleModel;this.group.add(n[t]=new o.Text({silent:!0,invisible:!0,style:{x:0,y:0,text:"",textVerticalAlign:"middle",textAlign:"center",fill:h.getTextColor(),textFont:h.getFont()},z2:10}))},this)},_resetInterval:function(){var t=this._range=this.dataZoomModel.getPercentRange(),e=this._getViewExtent();this._handleEnds=[c(t[0],[0,100],e,!0),c(t[1],[0,100],e,!0)]},_updateInterval:function(t,e){var n=this._handleEnds,i=this._getViewExtent();f(e,n,i,"all"===t||this.dataZoomModel.get("zoomLock")?"rigid":"cross",t),this._range=d([c(n[0],i,[0,100],!0),c(n[1],i,[0,100],!0)])},_updateView:function(t){var e=this._displayables,n=this._handleEnds,i=d(n.slice()),r=this._size;g([0,1],function(t){var i=e.handles[t],o=this._handleHeight;i.attr({scale:[o,o],position:[n[t],r[1]/2-o/2]})},this),e.filler.setShape({x:i[0],y:0,width:i[1]-i[0],height:r[1]}),this._updateDataInfo(t)},_updateDataInfo:function(t){function e(t){var e=o.getTransform(i.handles[t].parent,this.group),n=o.transformDirection(0===t?"right":"left",e),l=this._handleWidth/2+b,u=o.applyTransform([f[t]+(0===t?-l:l),this._size[1]/2],e);r[t].setStyle({x:u[0],y:u[1],textVerticalAlign:a===x?"middle":n,textAlign:a===x?n:"center",text:s[t]})}var n=this.dataZoomModel,i=this._displayables,r=i.handleLabels,a=this._orient,s=["",""];if(n.get("showDetail")){var l=n.findRepresentativeAxisProxy();if(l){var u=l.getAxisModel().axis,c=this._range,h=t?l.calculateDataWindow({start:c[0],end:c[1]}).valueWindow:l.getDataValueWindow();s=[this._formatLabel(h[0],u),this._formatLabel(h[1],u)]}}var f=d(this._handleEnds.slice());e.call(this,0),e.call(this,1)},_formatLabel:function(t,e){var n=this.dataZoomModel,i=n.get("labelFormatter"),o=n.get("labelPrecision");null!=o&&"auto"!==o||(o=e.getPixelPrecision());var a=null==t||isNaN(t)?"":"category"===e.type||"time"===e.type?e.scale.getLabel(Math.round(t)):t.toFixed(Math.min(o,20));return r.isFunction(i)?i(t,a):r.isString(i)?i.replace("{value}",a):a},_showDataInfo:function(t){t=this._dragging||t;var e=this._displayables.handleLabels;e[0].attr("invisible",!t),e[1].attr("invisible",!t)},_onDragMove:function(t,e,n){this._dragging=!0;var i=this._applyBarTransform([e,n],!0);this._updateInterval(t,i[0]);var r=this.dataZoomModel.get("realtime");this._updateView(!r),r&&r&&this._dispatchZoomAction()},_onDragEnd:function(){this._dragging=!1,this._showDataInfo(!1),this._dispatchZoomAction()},_dispatchZoomAction:function(){var t=this._range;this.api.dispatchAction({type:"dataZoom",from:this.uid,dataZoomId:this.dataZoomModel.id,start:t[0],end:t[1]})},_applyBarTransform:function(t,e){var n=this._displayables.barGroup.getLocalTransform();return o.applyTransform(t,n,e)},_findCoordRect:function(){var t;if(g(this.getTargetCoordInfo(),function(e){if(!t&&e.length){var n=e[0].model.coordinateSystem;t=n.getRect&&n.getRect()}}),!t){var e=this.api.getWidth(),n=this.api.getHeight();t={x:.2*e,y:.2*n,width:.6*e,height:.6*n}}return t}});t.exports=S},function(t,e,n){function i(t){var e=t.getZr();return e[p]||(e[p]={})}function r(t,e,n){var i=new h(t.getZr());return i.enable(),i.on("pan",d(a,n)),i.on("zoom",d(s,n)),i}function o(t){c.each(t,function(e,n){e.count||(e.controller.dispose(),delete t[n])})}function a(t,e,n,i,r,o,a){l(t,function(s){return s.panGetRange(t.controller,e,n,i,r,o,a)})}function s(t,e,n,i){l(t,function(r){return r.zoomGetRange(t.controller,e,n,i)})}function l(t,e){var n=[];c.each(t.dataZoomInfos,function(t){var i=e(t);i&&n.push({dataZoomId:t.dataZoomId,start:i[0],end:i[1]})}),t.dispatchAction(n)}function u(t,e){t.dispatchAction({type:"dataZoom",batch:e})}var c=n(1),h=n(44),f=n(50),d=c.curry,p="\0_ec_dataZoom_roams",g={register:function(t,e){var n=i(t),a=e.dataZoomId,s=e.coordId;c.each(n,function(t,n){var i=t.dataZoomInfos;i[a]&&c.indexOf(e.allCoordIds,s)<0&&(delete i[a],t.count--)}),o(n);var l=n[s];l||(l=n[s]={coordId:s,dataZoomInfos:{},count:0},l.controller=r(t,e,l),l.dispatchAction=c.curry(u,t)),l.controller.setContainsPoint(e.containsPoint),f.createOrUpdate(l,"dispatchAction",e.throttleRate,"fixRate"),!l.dataZoomInfos[a]&&l.count++,l.dataZoomInfos[a]=e},unregister:function(t,e){var n=i(t);c.each(n,function(t){t.controller.dispose();var n=t.dataZoomInfos;n[e]&&(delete n[e],t.count--)}),o(n)},shouldRecordRange:function(t,e){if(t&&"dataZoom"===t.type&&t.batch)for(var n=0,i=t.batch.length;n=0;f--)null==r[f]?r.splice(f,1):delete r[f].$action},_flatten:function(t,e,n){l.each(t,function(t){if(t){n&&(t.parentOption=n),e.push(t);var i=t.children;"group"===t.type&&i&&this._flatten(i,e,t),delete t.children}},this)},useElOptionsToUpdate:function(){var t=this._elOptionsToUpdate;return this._elOptionsToUpdate=null,t}});s.extendComponentView({type:"graphic",init:function(t,e){this._elMap={},this._lastGraphicModel},render:function(t,e,n){t!==this._lastGraphicModel&&this._clear(),this._lastGraphicModel=t,this._updateElements(t,n),this._relocate(t,n)},_updateElements:function(t,e){var n=t.useElOptionsToUpdate();if(n){var a=this._elMap,s=this.group;l.each(n,function(t){var e=t.$action,n=t.id,u=a[n],c=t.parentId,h=null!=c?a[c]:s;t.hv&&t.hv[1]&&"text"===t.type&&(t.style=l.defaults({textBaseline:"middle"},t.style),t.style.textVerticalAlign=null);var f=o(t);__DEV__&&u&&l.assert(h===u.parent,"Changing parent is not supported."),e&&"merge"!==e?"replace"===e?(r(u,a),i(n,h,f,a)):"remove"===e&&r(u,a):u?u.attr(f):i(n,h,f,a),a[n]&&(a[n].__ecGraphicWidth=t.width,a[n].__ecGraphicHeight=t.height)})}},_relocate:function(t,e){for(var n=t.option.elements,i=this.group,r=this._elMap,o=n.length-1;o>=0;o--){var a=n[o],s=r[a.id];if(s){var l=s.parent,u=l===i?{width:e.getWidth(),height:e.getHeight()}:{width:l.__ecGraphicWidth||0,height:l.__ecGraphicHeight||0};h.positionElement(s,a,u,null,{hv:a.hv,boundingMode:a.bounding})}}},_clear:function(){var t=this._elMap;l.each(t,function(e){r(e,t)}),this._elMap={}},dispose:function(){this._clear()}})},function(t,e,n){n(273),n(275),n(274),n(2).registerProcessor(n(276))},function(t,e,n){"use strict";var i=n(1),r=n(11),o=n(2).extendComponentModel({type:"legend",dependencies:["series"],layoutMode:{type:"box",ignoreSize:!0},init:function(t,e,n){this.mergeDefaultAndTheme(t,n),t.selected=t.selected||{}},mergeOption:function(t){o.superCall(this,"mergeOption",t)},optionUpdated:function(){this._updateData(this.ecModel);var t=this._data;if(t[0]&&"single"===this.get("selectedMode")){for(var e=!1,n=0;n=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}}});t.exports=o},function(t,e,n){function i(t,e){e.dispatchAction({type:"legendToggleSelect",name:t})}function r(t,e,n){var i=n.getZr().storage.getDisplayList()[0];i&&i.useHoverLayer||t.get("legendHoverLink")&&n.dispatchAction({type:"highlight",seriesName:t.name,name:e})}function o(t,e,n){var i=n.getZr().storage.getDisplayList()[0];i&&i.useHoverLayer||t.get("legendHoverLink")&&n.dispatchAction({type:"downplay",seriesName:t.name,name:e})}var a=n(1),s=n(18),l=n(3),u=n(95),c=a.curry;t.exports=n(2).extendComponentView({type:"legend",init:function(){this._symbolTypeStore={}},render:function(t,e,n){var s=this.group;if(s.removeAll(),t.get("show")){var h=t.get("selectedMode"),f=t.get("align");"auto"===f&&(f="right"===t.get("left")&&"vertical"===t.get("orient")?"right":"left");var d={};a.each(t.getData(),function(a){var u=a.get("name");if(""===u||"\n"===u)return void s.add(new l.Group({newline:!0}));var p=e.getSeriesByName(u)[0];if(!d[u]){if(p){var g=p.getData(),v=g.getVisual("color");"function"==typeof v&&(v=v(p.getDataParams(0)));var m=g.getVisual("legendSymbol")||"roundRect",y=g.getVisual("symbol");this._createItem(u,a,t,m,y,f,v,h).on("click",c(i,u,n)).on("mouseover",c(r,p,null,n)).on("mouseout",c(o,p,null,n)),d[u]=!0}else e.eachRawSeries(function(e){if(!d[u]&&e.legendDataProvider){var s=e.legendDataProvider(),l=s.indexOfName(u);if(l<0)return;var p=s.getItemVisual(l,"color");this._createItem(u,a,t,"roundRect",null,f,p,h).on("click",c(i,u,n)).on("mouseover",c(r,e,u,n)).on("mouseout",c(o,e,u,n)),d[u]=!0}},this);__DEV__&&!d[u]}},this),u.layout(s,t,n),u.addBackground(s,t)}},_createItem:function(t,e,n,i,r,o,u,c){var h=n.get("itemWidth"),f=n.get("itemHeight"),d=n.get("inactiveColor"),p=n.isSelected(t),g=new l.Group,v=e.getModel("textStyle"),m=e.get("icon"),y=e.getModel("tooltip"),x=y.parentModel;if(i=m||i,g.add(s.createSymbol(i,0,0,h,f,p?u:d)),!m&&r&&(r!==i||"none"==r)){var _=.8*f;"none"===r&&(r="circle"),g.add(s.createSymbol(r,(h-_)/2,(f-_)/2,_,_,p?u:d))}var b="left"===o?h+5:-5,w=o,S=n.get("formatter"),M=t;"string"==typeof S&&S?M=S.replace("{name}",null!=t?t:""):"function"==typeof S&&(M=S(t));var A=new l.Text({style:{text:M,x:b,y:f/2,fill:p?v.getTextColor():d,textFont:v.getFont(),textAlign:w,textVerticalAlign:"middle"}});g.add(A);var T=new l.Rect({shape:g.getBoundingRect(),invisible:!0,tooltip:y.get("show")?a.extend({content:t,formatter:x.get("formatter",!0)||function(){return t},formatterParams:{componentType:"legend",legendIndex:n.componentIndex,name:t,$vars:["name"]}},y.option):null});return g.add(T),g.eachChild(function(t){t.silent=!0}),T.silent=!c,this.group.add(g),l.setHoverStyle(g),g}})},function(t,e,n){function i(t,e,n){var i,r={},a="toggleSelected"===t;return n.eachComponent("legend",function(n){a&&null!=i?n[i?"select":"unSelect"](e.name):(n[t](e.name),i=n.isSelected(e.name));var s=n.getData();o.each(s,function(t){var e=t.get("name");if("\n"!==e&&""!==e){var i=n.isSelected(e);e in r?r[e]=r[e]&&i:r[e]=i}})}),{name:e.name,selected:r}}var r=n(2),o=n(1);r.registerAction("legendToggleSelect","legendselectchanged",o.curry(i,"toggleSelected")),r.registerAction("legendSelect","legendselected",o.curry(i,"select")),r.registerAction("legendUnSelect","legendunselected",o.curry(i,"unSelect"))},function(t,e){t.exports=function(t){var e=t.findComponents({mainType:"legend"});e&&e.length&&t.filterSeries(function(t){for(var n=0;n=0&&"number"==typeof u&&(u=+u.toFixed(v)),p.coord[f]=g.coord[f]=u,i=[p,g,{type:o,valueIndex:i.valueIndex,value:u}]}return i=[h.dataTransform(t,i[0]),h.dataTransform(t,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};n(65).extend({type:"markLine",updateLayout:function(t,e,n){e.eachSeries(function(t){var e=t.markLineModel;if(e){var i=e.getData(),r=e.__from,o=e.__to;r.each(function(e){a(r,e,!0,t,n),a(o,e,!1,t,n)}),i.each(function(t){i.setItemLayout(t,[r.getItemLayout(t),o.getItemLayout(t)])}),this.markerGroupMap[t.name].updateLayout()}},this)},renderSeries:function(t,e,n,i){function r(e,n,r){var o=e.getItemModel(n);a(e,n,r,t,i),e.setItemVisual(n,{symbolSize:o.get("symbolSize")||x[r?0:1],symbol:o.get("symbol",!0)||y[r?0:1],color:o.get("itemStyle.normal.color")||c.getVisual("color")})}var o=t.coordinateSystem,u=t.name,c=t.getData(),h=this.markerGroupMap,d=h[u];d||(d=h[u]=new f),this.group.add(d.group);var p=s(o,t,e),g=p.from,v=p.to,m=p.line;e.__from=g,e.__to=v,e.setData(m);var y=e.get("symbol"),x=e.get("symbolSize");l.isArray(y)||(y=[y,y]),"number"==typeof x&&(x=[x,x]),p.from.each(function(t){r(g,t,!0),r(v,t,!1)}),m.each(function(t){var e=m.getItemModel(t).get("lineStyle.normal.color");m.setItemVisual(t,{color:e||g.getItemVisual(t,"color")}),m.setItemLayout(t,[g.getItemLayout(t),v.getItemLayout(t)]),m.setItemVisual(t,{fromSymbolSize:g.getItemVisual(t,"symbolSize"),fromSymbol:g.getItemVisual(t,"symbol"),toSymbolSize:v.getItemVisual(t,"symbolSize"),toSymbol:v.getItemVisual(t,"symbol")})}),d.updateData(m),p.line.eachItemGraphicEl(function(t,n){t.traverse(function(t){t.dataModel=e})}),d.__keep=!0,d.group.silent=e.get("silent")||t.get("silent")}})},function(t,e,n){t.exports=n(64).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(t,e,n){function i(t,e,n){var i=e.coordinateSystem;t.each(function(r){var o,a=t.getItemModel(r),l=s.parsePercent(a.get("x"),n.getWidth()),u=s.parsePercent(a.get("y"),n.getHeight());if(isNaN(l)||isNaN(u)){if(e.getMarkerPosition)o=e.getMarkerPosition(t.getValues(t.dimensions,r));else if(i){var c=t.get(i.dimensions[0],r),h=t.get(i.dimensions[1],r);o=i.dataToPoint([c,h])}}else o=[l,u];isNaN(l)||(o[0]=l),isNaN(u)||(o[1]=u),t.setItemLayout(r,o)})}function r(t,e,n){var i;i=t?a.map(t&&t.dimensions,function(t){var n=e.getData().getDimensionInfo(e.coordDimToDataDim(t)[0])||{};return n.name=t,n}):[{name:"value",type:"float"}];var r=new l(i,n),o=a.map(n.get("data"),a.curry(u.dataTransform,e));return t&&(o=a.filter(o,a.curry(u.dataFilter,t))),r.initData(o,null,t?u.dimValueGetter:function(t){return t.value}),r}var o=n(34),a=n(1),s=n(4),l=n(10),u=n(66);n(65).extend({type:"markPoint",updateLayout:function(t,e,n){e.eachSeries(function(t){var e=t.markPointModel;e&&(i(e.getData(),t,n),this.markerGroupMap[t.name].updateLayout(e))},this)},renderSeries:function(t,e,n,a){var s=t.coordinateSystem,l=t.name,u=t.getData(),c=this.markerGroupMap,h=c[l];h||(h=c[l]=new o);var f=r(s,t,e);e.setData(f),i(e.getData(),t,a),f.each(function(t){var n=f.getItemModel(t),i=n.getShallow("symbolSize");"function"==typeof i&&(i=i(e.getRawValue(t),e.getDataParams(t))),f.setItemVisual(t,{symbolSize:i,color:n.get("itemStyle.normal.color")||u.getVisual("color"),symbol:n.getShallow("symbol")})}),h.updateData(f),this.group.add(h.group),f.eachItemGraphicEl(function(t){t.traverse(function(t){t.dataModel=e})}),h.__keep=!0,h.group.silent=e.get("silent")||t.get("silent")}})},function(t,e,n){n(109),n(251),n(248)},function(t,e,n){"use strict";n(68),n(244),n(290),n(2).extendComponentView({type:"polar"})},function(t,e,n){n(343),n(344),n(289)},function(t,e,n){var i=n(35),r=n(1),o=n(3),a=["axisLine","axisLabel","axisTick","axisName"];t.exports=n(2).extendComponentView({type:"radar",render:function(t,e,n){this.group.removeAll(),this._buildAxes(t),this._buildSplitLineAndArea(t)},_buildAxes:function(t){var e=t.coordinateSystem,n=e.getIndicatorAxes(),o=r.map(n,function(t){return new i(t.model,{position:[e.cx,e.cy],rotation:t.angle,labelDirection:-1,tickDirection:-1,nameDirection:1})});r.each(o,function(t){r.each(a,t.add,t),this.group.add(t.getGroup())},this)},_buildSplitLineAndArea:function(t){function e(t,e,n){var i=n%e.length;return t[i]=t[i]||[],i}var n=t.coordinateSystem,i=n.getIndicatorAxes();if(i.length){var a=t.get("shape"),s=t.getModel("splitLine"),l=t.getModel("splitArea"),u=s.getModel("lineStyle"),c=l.getModel("areaStyle"),h=s.get("show"),f=l.get("show"),d=u.get("color"),p=c.get("color");d=r.isArray(d)?d:[d],p=r.isArray(p)?p:[p];var g=[],v=[];if("circle"===a)for(var m=i[0].getTicksCoords(),y=n.cx,x=n.cy,_=0;_=0||"+"===n?"left":"right"},s={horizontal:n>=0||"+"===n?"top":"bottom",vertical:"middle"},l={horizontal:0,vertical:b/2},u="vertical"===r?o.height:o.width,c=t.getModel("controlStyle"),h=c.get("show"),f=h?c.get("itemSize"):0,d=h?c.get("itemGap"):0,p=f+d,g=t.get("label.normal.rotate")||0;g=g*b/180;var v,m,y,x,_=c.get("position",!0),h=c.get("show",!0),w=h&&c.get("showPlayBtn",!0),S=h&&c.get("showPrevBtn",!0),M=h&&c.get("showNextBtn",!0),A=0,T=u;return"left"===_||"bottom"===_?(w&&(v=[0,0],A+=p),S&&(m=[A,0],A+=p),M&&(y=[T-f,0],T-=p)):(w&&(v=[T-f,0],T-=p),S&&(m=[0,0],A+=p),M&&(y=[T-f,0],T-=p)),x=[A,T],t.get("inverse")&&x.reverse(),{viewRect:o,mainLength:u,orient:r,rotation:l[r],labelRotation:g,labelPosOpt:n,labelAlign:a[r],labelBaseline:s[r],playPosition:v,prevBtnPosition:m,nextBtnPosition:y,axisExtent:x,controlSize:f,controlGap:d}},_position:function(t,e){function n(t){var e=t.position;t.origin=[h[0][0]-e[0],h[1][0]-e[1]]}function i(t){return[[t.x,t.x+t.width],[t.y,t.y+t.height]]}function r(t,e,n,i,r){t[i]+=n[i][r]-e[i][r]}var o=this._mainGroup,a=this._labelGroup,s=t.viewRect;if("vertical"===t.orient){var l=g.create(),u=s.x,c=s.y+s.height;g.translate(l,l,[-u,-c]),g.rotate(l,l,-b/2),g.translate(l,l,[u,c]),s=s.clone(),s.applyTransform(l)}var h=i(s),f=i(o.getBoundingRect()),d=i(a.getBoundingRect()),p=o.position,v=a.position;v[0]=p[0]=h[0][0];var m=t.labelPosOpt;if(isNaN(m)){var y="+"===m?0:1;r(p,f,h,1,y),r(v,d,h,1,1-y)}else{var y=m>=0?0:1;r(p,f,h,1,y),v[1]=p[1]+m}o.attr("position",p),a.attr("position",v),o.rotation=a.rotation=t.rotation,n(o),n(a)},_createAxis:function(t,e){var n=e.getData(),i=e.get("axisType"),r=d.createScaleByModel(e,i),o=n.getDataExtent("value");r.setExtent(o[0],o[1]),this._customizeScale(r,n),r.niceTicks();var a=new h("value",r,t.axisExtent,i);return a.model=e,a},_customizeScale:function(t,e){t.getTicks=function(){return e.mapArray(["value"],function(t){return t})},t.getTicksLabels=function(){return s.map(this.getTicks(),t.getLabel,t)}},_createGroup:function(t){var e=this["_"+t]=new l.Group;return this.group.add(e),e},_renderAxisLine:function(t,e,n,i){var r=n.getExtent();i.get("lineStyle.show")&&e.add(new l.Line({shape:{x1:r[0],y1:0,x2:r[1],y2:0},style:s.extend({lineCap:"round"},i.getModel("lineStyle").getLineStyle()),silent:!0,z2:1}))},_renderAxisTick:function(t,e,n,i){var r=i.getData();_(n.scale.getTicks(),function(t,a){var s=n.dataToCoord(t),u=r.getItemModel(a),c=u.getModel("itemStyle.normal"),h=u.getModel("itemStyle.emphasis"),f={position:[s,0],onclick:x(this._changeTimeline,this,a)},d=o(u,c,e,f);l.setHoverStyle(d,h.getItemStyle()),u.get("tooltip")?(d.dataIndex=a,d.dataModel=i):d.dataIndex=d.dataModel=null},this)},_renderAxisLabel:function(t,e,n,i){var r=i.getModel("label.normal");if(r.get("show")){var o=i.getData(),a=n.scale.getTicks(),s=d.getFormattedLabels(n,r.get("formatter")),u=n.getLabelInterval();_(a,function(i,r){if(!n.isLabelIgnored(r,u)){var a=o.getItemModel(r),c=a.getModel("label.normal.textStyle"),h=a.getModel("label.emphasis.textStyle"),f=n.dataToCoord(i),d=new l.Text({style:{text:s[r],textAlign:t.labelAlign,textVerticalAlign:t.labelBaseline,textFont:c.getFont(),fill:c.getTextColor()},position:[f,0],rotation:t.labelRotation-t.rotation,onclick:x(this._changeTimeline,this,r),silent:!1});e.add(d),l.setHoverStyle(d,h.getItemStyle())}},this)}},_renderControl:function(t,e,n,i){function o(t,n,o,f){if(t){var d={position:t,origin:[a/2,0],rotation:f?-s:0,rectHover:!0,style:u,onclick:o},p=r(i,n,h,d);e.add(p),l.setHoverStyle(p,c)}}var a=t.controlSize,s=t.rotation,u=i.getModel("controlStyle.normal").getItemStyle(),c=i.getModel("controlStyle.emphasis").getItemStyle(),h=[0,-a/2,a,a],f=i.getPlayState(),d=i.get("inverse",!0);o(t.nextBtnPosition,"controlStyle.nextIcon",x(this._changeTimeline,this,d?"-":"+")),o(t.prevBtnPosition,"controlStyle.prevIcon",x(this._changeTimeline,this,d?"+":"-")),o(t.playPosition,"controlStyle."+(f?"stopIcon":"playIcon"),x(this._handlePlayClick,this,!f),!0)},_renderCurrentPointer:function(t,e,n,i){var r=i.getData(),s=i.getCurrentIndex(),l=r.getItemModel(s).getModel("checkpointStyle"),u=this,c={onCreate:function(t){t.draggable=!0,t.drift=x(u._handlePointerDrag,u),t.ondragend=x(u._handlePointerDragend,u),a(t,s,n,i,!0)},onUpdate:function(t){a(t,s,n,i)}};this._currentPointer=o(l,l,this._mainGroup,{},this._currentPointer,c)},_handlePlayClick:function(t){this._clearTimer(),this.api.dispatchAction({type:"timelinePlayChange",playState:t,from:this.uid})},_handlePointerDrag:function(t,e,n){this._clearTimer(),this._pointerChangeTimeline([n.offsetX,n.offsetY])},_handlePointerDragend:function(t){this._pointerChangeTimeline([t.offsetX,t.offsetY],!0)},_pointerChangeTimeline:function(t,e){var n=this._toAxisCoord(t)[0],i=this._axis,r=v.asc(i.getExtent().slice());n>r[1]&&(n=r[1]),n=e&&(t=e-1),t<0&&(t=0)),this.option.currentIndex=t},getCurrentIndex:function(){return this.option.currentIndex},isIndexMax:function(){return this.getCurrentIndex()>=this._data.count()-1},setPlayState:function(t){this.option.autoPlay=!!t},getPlayState:function(){return!!this.option.autoPlay},_initData:function(){var t=this.option,e=t.data||[],n=t.axisType,i=this._names=[];if("category"===n){var s=[];o.each(e,function(t,e){var n,r=a.getDataItemValue(t);o.isObject(t)?(n=o.clone(t),n.value=e):n=e,s.push(n),o.isString(r)||null!=r&&!isNaN(r)||(r=""),i.push(r+"")}),e=s}var l={category:"ordinal",time:"time"}[n]||"number";(this._data=new r([{name:"value",type:l}],this)).initData(e,i)},getData:function(){return this._data},getCategories:function(){if("category"===this.get("axisType"))return this._names.slice()}});t.exports=s},function(t,e,n){var i=n(71);t.exports=i.extend({type:"timeline"})},function(t,e,n){function i(t){var e=t.type,n={number:"value",time:"time"};if(n[e]&&(t.axisType=n[e],delete t.type),r(t),o(t,"controlPosition")){var i=t.controlStyle||(t.controlStyle={});o(i,"position")||(i.position=t.controlPosition),"none"!==i.position||o(i,"show")||(i.show=!1,delete i.position),delete t.controlPosition}a.each(t.data||[],function(t){a.isObject(t)&&!a.isArray(t)&&(!o(t,"value")&&o(t,"name")&&(t.value=t.name),r(t))})}function r(t){var e=t.itemStyle||(t.itemStyle={}),n=e.emphasis||(e.emphasis={}),i=t.label||t.label||{},r=i.normal||(i.normal={}),s={normal:1,emphasis:1};a.each(i,function(t,e){s[e]||o(r,e)||(r[e]=t)}),n.label&&!o(i,"emphasis")&&(i.emphasis=n.label,delete n.label)}function o(t,e){return t.hasOwnProperty(e)}var a=n(1);t.exports=function(t){var e=t&&t.timeline;a.isArray(e)||(e=e?[e]:[]),a.each(e,function(t){t&&i(t)})}},function(t,e,n){var i=n(2),r=n(1);i.registerAction({type:"timelineChange",event:"timelineChanged",update:"prepareAndUpdate"},function(t,e){var n=e.getComponent("timeline");return n&&null!=t.currentIndex&&(n.setCurrentIndex(t.currentIndex),!n.get("loop",!0)&&n.isIndexMax()&&n.setPlayState(!1)),e.resetOption("timeline"),r.defaults({currentIndex:n.option.currentIndex},t)}),i.registerAction({type:"timelinePlayChange",event:"timelinePlayChanged",update:"update"},function(t,e){var n=e.getComponent("timeline");n&&null!=t.playState&&n.setPlayState(t.playState)})},function(t,e,n){n(12).registerSubTypeDefaulter("timeline",function(){return"slider"})},function(t,e,n){"use strict";var i=n(2),r=n(3),o=n(8);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(t,e,n){if(this.group.removeAll(),t.get("show")){var i=this.group,a=t.getModel("textStyle"),s=t.getModel("subtextStyle"),l=t.get("textAlign"),u=t.get("textBaseline"),c=new r.Text({style:{text:t.get("text"),textFont:a.getFont(),fill:a.getTextColor()},z2:10}),h=c.getBoundingRect(),f=t.get("subtext"),d=new r.Text({style:{text:f,textFont:s.getFont(),fill:s.getTextColor(),y:h.height+t.get("itemGap"),textBaseline:"top"},z2:10}),p=t.get("link"),g=t.get("sublink");c.silent=!p,d.silent=!g,p&&c.on("click",function(){window.open(p,"_"+t.get("target"))}),g&&d.on("click",function(){window.open(g,"_"+t.get("subtarget"))}),i.add(c),f&&i.add(d);var v=i.getBoundingRect(),m=t.getBoxLayoutParams();m.width=v.width,m.height=v.height;var y=o.getLayoutRect(m,{width:n.getWidth(),height:n.getHeight()},t.get("padding"));l||(l=t.get("left")||t.get("right"),"middle"===l&&(l="center"),"right"===l?y.x+=y.width:"center"===l&&(y.x+=y.width/2)),u||(u=t.get("top")||t.get("bottom"),"center"===u&&(u="middle"),"bottom"===u?y.y+=y.height:"middle"===u&&(y.y+=y.height/2),u=u||"top"),i.attr("position",[y.x,y.y]);var x={textAlign:l,textVerticalAlign:u};c.setStyle(x),d.setStyle(x),v=i.getBoundingRect();var _=y.margin,b=t.getItemStyle(["color","opacity"]);b.fill=t.get("backgroundColor");var w=new r.Rect({shape:{x:v.x-_[3],y:v.y-_[0],width:v.width+_[1]+_[3],height:v.height+_[0]+_[2]},style:b,silent:!0});r.subPixelOptimizeRect(w),i.add(w)}}})},function(t,e,n){n(302),n(303),n(309),n(307),n(305),n(306),n(308)},function(t,e,n){var i=n(22),r=n(1),o=n(2).extendComponentModel({type:"toolbox",layoutMode:{type:"box",ignoreSize:!0},mergeDefaultAndTheme:function(t){o.superApply(this,"mergeDefaultAndTheme",arguments),r.each(this.option.feature,function(t,e){var n=i.get(e);n&&r.merge(t,n.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"}}}});t.exports=o},function(t,e,n){(function(e){function i(t){return 0===t.indexOf("my")}var r=n(22),o=n(1),a=n(3),s=n(11),l=n(40),u=n(95),c=n(25);t.exports=n(2).extendComponentView({type:"toolbox",render:function(t,e,n,h){function f(o,a){var l,u=y[o],c=y[a],f=v[u],p=new s(f,t,t.ecModel);if(u&&!c){if(i(u))l={model:p,onclick:p.option.onclick,featureName:u};else{var g=r.get(u);if(!g)return;l=new g(p,e,n)}m[u]=l}else{if(l=m[c],!l)return;l.model=p,l.ecModel=e,l.api=n}return!u&&c?void(l.dispose&&l.dispose(e,n)):!p.get("show")||l.unusable?void(l.remove&&l.remove(e,n)):(d(p,l,u),p.setIconStatus=function(t,e){var n=this.option,i=this.iconPaths;n.iconStatus=n.iconStatus||{},n.iconStatus[t]=e,i[t]&&i[t].trigger(e)},void(l.render&&l.render(p,e,n,h)))}function d(i,r,s){var l=i.getModel("iconStyle"),u=r.getIcons?r.getIcons():i.get("icon"),c=i.get("title")||{};if("string"==typeof u){var h=u,f=c;u={},c={},u[s]=h,c[s]=f}var d=i.iconPaths={};o.each(u,function(s,u){var h=l.getModel("normal").getItemStyle(),f=l.getModel("emphasis").getItemStyle(),v={x:-g/2,y:-g/2,width:g,height:g},m=0===s.indexOf("image://")?(v.image=s.slice(8),new a.Image({style:v})):a.makePath(s.replace("path://",""),{style:h,hoverStyle:f,rectHover:!0},v,"center");a.setHoverStyle(m),t.get("showTitle")&&(m.__title=c[u],m.on("mouseover",function(){var t=l.getModel("emphasis").getItemStyle();m.setStyle({text:c[u],textPosition:t.textPosition||"bottom",textFill:t.fill||t.stroke||"#000",textAlign:t.textAlign||"center"})}).on("mouseout",function(){m.setStyle({textFill:null})})),m.trigger(i.get("iconStatus."+u)||"normal"),p.add(m),m.on("click",o.bind(r.onclick,r,e,n,u)),d[u]=m})}var p=this.group;if(p.removeAll(),t.get("show")){var g=+t.get("itemSize"),v=t.get("feature")||{},m=this._features||(this._features={}),y=[];o.each(v,function(t,e){y.push(e)}),new l(this._featureNames||[],y).add(f).update(f).remove(o.curry(f,null)).execute(),this._featureNames=y,u.layout(p,t,n),u.addBackground(p,t),p.eachChild(function(t){var e=t.__title,i=t.hoverStyle;if(i&&e){var r=c.getBoundingRect(e,i.font),o=t.position[0]+p.position[0],a=t.position[1]+p.position[1]+g,s=!1;a+r.height>n.getHeight()&&(i.textPosition="top",s=!0);var l=s?-5-r.height:g+8;o+r.width/2>n.getWidth()?(i.textPosition=["100%",l],i.textAlign="right"):o-r.width/2<0&&(i.textPosition=[0,l],i.textAlign="left")}})}},updateView:function(t,e,n,i){o.each(this._features,function(t){t.updateView&&t.updateView(t.model,e,n,i)})},updateLayout:function(t,e,n,i){o.each(this._features,function(t){t.updateLayout&&t.updateLayout(t.model,e,n,i)})},remove:function(t,e){o.each(this._features,function(n){n.remove&&n.remove(t,e)}),this.group.removeAll()},dispose:function(t,e){o.each(this._features,function(n){n.dispose&&n.dispose(t,e)})}})}).call(e,n(117))},function(t,e,n){"use strict";function i(t,e,n){this.model=t,this.ecModel=e,this.api=n,this._brushType,this._brushMode}var r=n(22),o=n(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(t,e,n){var i,r,a;e.eachComponent({mainType:"brush"},function(t){i=t.brushType,r=t.brushOption.brushMode||"single",a|=t.areas.length}),this._brushType=i,this._brushMode=r,o.each(t.get("type",!0),function(e){t.setIconStatus(e,("keep"===e?"multiple"===r:"clear"===e?a:e===i)?"emphasis":"normal")})},a.getIcons=function(){var t=this.model,e=t.get("icon",!0),n={};return o.each(t.get("type",!0),function(t){e[t]&&(n[t]=e[t])}),n},a.onclick=function(t,e,n){var e=this.api,i=this._brushType,r=this._brushMode;"clear"===n?e.dispatchAction({type:"brush",areas:[]}):e.dispatchAction({type:"takeGlobalCursor",key:"brush",brushOption:{brushType:"keep"===n?i:i!==n&&n,brushMode:"keep"===n?"multiple"===r?"single":"multiple":r}})},r.register("brush",i),t.exports=i},function(t,e,n){function i(t){var e={},n=[],i=[];return t.eachRawSeries(function(t){var r=t.coordinateSystem;if(!r||"cartesian2d"!==r.type&&"polar"!==r.type)n.push(t);else{var o=r.getBaseAxis();if("category"===o.type){var a=o.dim+"_"+o.index;e[a]||(e[a]={categoryAxis:o,valueAxis:r.getOtherAxis(o),series:[]},i.push({axisDim:o.dim,axisIndex:o.index})),e[a].series.push(t)}else n.push(t)}}),{seriesGroupByCategoryAxis:e,other:n,meta:i}}function r(t){var e=[];return p.each(t,function(t,n){var i=t.categoryAxis,r=t.valueAxis,o=r.dim,a=[" "].concat(p.map(t.series,function(t){return t.name})),s=[i.model.getCategories()];p.each(t.series,function(t){s.push(t.getRawData().mapArray(o,function(t){return t}))});for(var l=[a.join(m)],u=0;u=0)return!0}function u(t){for(var e=t.split(/\n+/g),n=s(e.shift()).split(y),i=[],r=p.map(n,function(t){return{name:t,data:[]}}),o=0;o1?"emphasis":"normal")}function a(t,e,n,i){var o=n._isZoomActive;i&&"takeGlobalCursor"===i.type&&(o="dataZoomSelect"===i.key&&i.dataZoomSelectActive),n._isZoomActive=o,t.setIconStatus("zoom",o?"emphasis":"normal");var a=u.makeCoordInfoList(r(t.option),e),s=a.xAxisHas&&!a.yAxisHas?"lineX":!a.xAxisHas&&a.yAxisHas?"lineY":"rect";n._brushController.setPanels(u.makePanelOpts(a)).enableBrush(!!o&&{brushType:s,brushStyle:{lineWidth:0,fill:"rgba(0,0,0,0.2)"}})}var s=n(1),l=n(60),u=n(61),c=n(91),h=s.each;n(268);var f="\0_ec_\0toolbox-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 d=i.prototype;d.render=function(t,e,n,i){this.model=t,this.ecModel=e,this.api=n,a(t,e,this,i),o(t,e)},d.onclick=function(t,e,n){p[n].call(this)},d.remove=function(t,e){this._brushController.unmount()},d.dispose=function(t,e){this._brushController.dispose()};var p={zoom:function(){var t=!this._isZoomActive;this.api.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:t})},back:function(){this._dispatchZoomAction(c.pop(this.ecModel))}};d._onBrush=function(t,e){function n(t,e,n){var r=i(t,n[t],a);r&&(o[r.id]={dataZoomId:r.id,startValue:e[0],endValue:e[1]})}function i(t,e,n){var i;return n.eachComponent({mainType:"dataZoom",subType:"select"},function(r,o){var a=r.get(t+"Index");null!=a&&n.getComponent(t,a)===e&&(i=r)}),i}if(e.isEnd&&t.length){var o={},a=this.ecModel;this._brushController.updateCovers([]);var s=u.makeCoordInfoList(r(this.model.option),a),l=[];u.parseOutputRanges(t,s,a,l);var h=t[0],f=l[0],d=h.coordRange,p=h.brushType;if(f&&d)if("rect"===p)n("xAxis",d[0],f),n("yAxis",d[1],f);else{var g={lineX:"xAxis",lineY:"yAxis"};n(g[p],d,f)}c.push(a,o),this._dispatchZoomAction(o)}},d._dispatchZoomAction=function(t){var e=[];h(t,function(t,n){e.push(s.clone(t))}),e.length&&this.api.dispatchAction({type:"dataZoom",from:this.uid,batch:e})},n(22).register("dataZoom",i),n(2).registerPreprocessor(function(t){function e(t,e){if(e){var r=t+"Index",o=e[r];null==o||"all"==o||s.isArray(o)||(o=o===!1||"none"===o?[]:[o]),n(t,function(e,n){if(null==o||"all"==o||s.indexOf(o,n)!==-1){var a={type:"select",$fromToolbox:!0,id:f+t+n};a[r]=n,i.push(a)}})}}function n(e,n){var i=t[e];s.isArray(i)||(i=i?[i]:[]),h(i,n)}if(t){var i=t.dataZoom||(t.dataZoom=[]);s.isArray(i)||(t.dataZoom=i=[i]);var r=t.toolbox;if(r&&(s.isArray(r)&&(r=r[0]),r&&r.feature)){var o=r.feature.dataZoom;e("xAxis",o),e("yAxis",o)}}}),t.exports=i},function(t,e,n){"use strict";function i(t){this.model=t}var r=n(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 o=i.prototype;o.getIcons=function(){var t=this.model,e=t.get("icon"),n={};return r.each(t.get("type"),function(t){e[t]&&(n[t]=e[t])}),n};var a={line:function(t,e,n,i){if("bar"===t)return r.merge({id:e,type:"line",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},i.get("option.line")||{},!0)},bar:function(t,e,n,i){if("line"===t)return r.merge({id:e,type:"bar",data:n.get("data"),stack:n.get("stack"),markPoint:n.get("markPoint"),markLine:n.get("markLine")},i.get("option.bar")||{},!0)},stack:function(t,e,n,i){if("line"===t||"bar"===t)return r.merge({id:e,stack:"__ec_magicType_stack__"},i.get("option.stack")||{},!0)},tiled:function(t,e,n,i){if("line"===t||"bar"===t)return r.merge({id:e,stack:""},i.get("option.tiled")||{},!0)}},s=[["line","bar"],["stack","tiled"]];o.onclick=function(t,e,n){var i=this.model,o=i.get("seriesIndex."+n);if(a[n]){var l={series:[]},u=function(e){var o=e.subType,s=e.id,u=a[n](o,s,e,i);u&&(r.defaults(u,e.option),l.series.push(u));var c=e.coordinateSystem;if(c&&"cartesian2d"===c.type&&("line"===n||"bar"===n)){var h=c.getAxesByScale("ordinal")[0];if(h){var f=h.dim,d=f+"Axis",p=t.queryComponents({mainType:d,index:e.get(name+"Index"),id:e.get(name+"Id")})[0],g=p.componentIndex;l[d]=l[d]||[];for(var v=0;v<=g;v++)l[d][g]=l[d][g]||{};l[d][g].boundaryGap="bar"===n}}};r.each(s,function(t){r.indexOf(t,n)>=0&&r.each(t,function(t){i.setIconStatus(t,"normal")})}),i.setIconStatus(n,"emphasis"),t.eachComponent({mainType:"series",query:null==o?null:{seriesIndex:o}},u),e.dispatchAction({type:"changeMagicType",currentType:n,newOption:l})}},n(2).registerAction({type:"changeMagicType",event:"magicTypeChanged",update:"prepareAndUpdate"},function(t,e){e.mergeOption(t.newOption)}),n(22).register("magicType",i),t.exports=i},function(t,e,n){"use strict";function i(t){this.model=t}var r=n(91);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:"还原"},i.prototype.onclick=function(t,e,n){r.clear(t),e.dispatchAction({type:"restore",from:this.uid})},n(22).register("restore",i),n(2).registerAction({type:"restore",event:"restore",update:"prepareAndUpdate"},function(t,e){e.resetOption("recreate")}),t.exports=i},function(t,e,n){function i(t){this.model=t}var r=n(14);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=!r.canvasSupported,i.prototype.onclick=function(t,e){var n=this.model,i=n.get("name")||t.get("title.0.text")||"echarts",o=document.createElement("a"),a=n.get("type",!0)||"png";o.download=i+"."+a,o.target="_blank";var s=e.getConnectedDataURL({type:a,backgroundColor:n.get("backgroundColor",!0)||t.get("backgroundColor")||"#fff",excludeComponents:n.get("excludeComponents"),pixelRatio:n.get("pixelRatio")});if(o.href=s,"function"!=typeof MouseEvent||r.browser.ie||r.browser.edge){var l=n.get("lang"),u='';window.open().document.write(u)}else{var c=new MouseEvent("click",{view:window,bubbles:!0,cancelable:!1});o.dispatchEvent(c)}},n(22).register("saveAsImage",i),t.exports=i},function(t,e,n){n(312),n(313),n(2).registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},function(){}),n(2).registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},function(){})},function(t,e,n){function i(t){var e="cubic-bezier(0.23, 1, 0.32, 1)",n="left "+t+"s "+e+",top "+t+"s "+e;return s.map(p,function(t){return t+"transition:"+n}).join(";")}function r(t){var e=[],n=t.get("fontSize"),i=t.getTextColor();return i&&e.push("color:"+i),e.push("font:"+t.getFont()),n&&e.push("line-height:"+Math.round(3*n/2)+"px"),h(["decoration","align"],function(n){var i=t.get(n);i&&e.push("text-"+n+":"+i)}),e.join(";")}function o(t){t=t;var e=[],n=t.get("transitionDuration"),o=t.get("backgroundColor"),a=t.getModel("textStyle"),s=t.get("padding");return n&&e.push(i(n)),o&&(d.canvasSupported?e.push("background-Color:"+o):(e.push("background-Color:#"+l.toHex(o)),e.push("filter:alpha(opacity=70)"))),h(["width","color","radius"],function(n){var i="border-"+n,r=f(i),o=t.get(r);null!=o&&e.push(i+":"+o+("color"===n?"":"px"))}),e.push(r(a)),null!=s&&e.push("padding:"+c.normalizeCssArray(s).join("px ")+"px"),e.join(";")+";"}function a(t,e){var n=document.createElement("div"),i=e.getZr();this.el=n,this._x=e.getWidth()/2,this._y=e.getHeight()/2,t.appendChild(n),this._container=t,this._show=!1,this._hideTimeout;var r=this;n.onmouseenter=function(){r.enterable&&(clearTimeout(r._hideTimeout),r._show=!0),r._inContent=!0},n.onmousemove=function(e){if(e=e||window.event,!r.enterable){var n=i.handler;u.normalizeEvent(t,e,!0),n.dispatch("mousemove",e)}},n.onmouseleave=function(){r.enterable&&r._show&&r.hideLater(r._hideDelay),r._inContent=!1}}var s=n(1),l=n(21),u=n(33),c=n(6),h=s.each,f=c.toCamelCase,d=n(14),p=["","-webkit-","-moz-","-o-"];a.prototype={constructor:a,enterable:!0,update:function(){var t=this._container,e=t.currentStyle||document.defaultView.getComputedStyle(t),n=t.style;"absolute"!==n.position&&"absolute"!==e.position&&(n.position="relative")},show:function(t){clearTimeout(this._hideTimeout);var e=this.el;e.style.cssText="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+o(t)+";left:"+this._x+"px;top:"+this._y+"px;"+(t.get("extraCssText")||""),e.style.display=e.innerHTML?"block":"none",this._show=!0},setContent:function(t){var e=this.el;e.innerHTML=t,e.style.display=t?"block":"none"},moveTo:function(t,e){var n=this.el.style;n.left=t+"px",n.top=e+"px",this._x=t,this._y=e},hide:function(){this.el.style.display="none",this._show=!1},hideLater:function(t){!this._show||this._inContent&&this.enterable||(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(s.bind(this.hide,this),t)):this.hide())},isShow:function(){return this._show}},t.exports=a},function(t,e,n){n(2).extendComponentModel({type:"tooltip",defaultOption:{zlevel:0,z:8,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove",alwaysShowContent:!1,confine:!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(t,e,n){function i(t,e){if(!t||!e)return!1;var n=v.round;return n(t[0])===n(e[0])&&n(t[1])===n(e[1])}function r(t,e,n,i){return{x1:t,y1:e,x2:n,y2:i}}function o(t,e,n,i){return{x:t,y:e,width:n,height:i}}function a(t,e,n,i,r,o){return{cx:t,cy:e,r0:n,r:i,startAngle:r,endAngle:o,clockwise:!0}}function s(t,e,n,i,r){var o=n.clientWidth,a=n.clientHeight,s=20;return t+o+s>i?t-=o+s:t+=s,e+a+s>r?e-=a+s:e+=s,[t,e]}function l(t,e,n,i,r){var o=n.clientWidth,a=n.clientHeight;return t=Math.min(t+o,i)-o,e=Math.min(e+a,r)-a,t=Math.max(t,0),e=Math.max(e,0),[t,e]}function u(t,e,n){var i=n.clientWidth,r=n.clientHeight,o=5,a=0,s=0,l=e.width,u=e.height;switch(t){case"inside":a=e.x+l/2-i/2,s=e.y+u/2-r/2;break;case"top":a=e.x+l/2-i/2,s=e.y-r-o;break;case"bottom":a=e.x+l/2-i/2,s=e.y+u+o;break;case"left":a=e.x-i-o,s=e.y+u/2-r/2;break;case"right":a=e.x+l+o,s=e.y+u/2-r/2}return[a,s]}function c(t,e,n,i,r,o,a,c){var h=c.getWidth(),f=c.getHeight(),d=a&&a.getBoundingRect().clone();if(a&&d.applyTransform(a.transform),"function"==typeof t&&(t=t([e,n],o,r.el,d)),p.isArray(t))e=y(t[0],h),n=y(t[1],f);else if("string"==typeof t&&a){var g=u(t,d,r.el);e=g[0],n=g[1]}else{var g=s(e,n,r.el,h,f);e=g[0],n=g[1]}if(i){var g=l(e,n,r.el,h,f);e=g[0],n=g[1]}r.moveTo(e,n)}function h(t){var e=t.coordinateSystem,n=t.get("tooltip.trigger",!0);return!(!e||"cartesian2d"!==e.type&&"polar"!==e.type&&"singleAxis"!==e.type||"item"===n)}var f=n(311),d=n(3),p=n(1),g=n(6),v=n(4),m=n(7),y=v.parsePercent,x=n(14),_=n(11);n(2).extendComponentView({type:"tooltip",_axisPointers:{},init:function(t,e){if(!x.node){var n=new f(e.getDom(),e);this._tooltipContent=n}},render:function(t,e,n){if(!x.node){this.group.removeAll(),this._axisPointers={},this._tooltipModel=t,this._ecModel=e,this._api=n,this._lastHover={};var i=this._tooltipContent;i.update(),i.enterable=t.get("enterable"),this._alwaysShowContent=t.get("alwaysShowContent"),this._seriesGroupByAxis=this._prepareAxisTriggerData(t,e);var r=this._crossText;r&&this.group.add(r);var o=t.get("triggerOn");if(null!=this._lastX&&null!=this._lastY&&"none"!==o){var a=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){a.manuallyShowTip(t,e,n,{x:a._lastX,y:a._lastY})})}var s=this._api.getZr();s.off("click",this._tryShow),s.off("mousemove",this._mousemove),s.off("mouseout",this._hide),s.off("globalout",this._hide),"click"===o?s.on("click",this._tryShow,this):"mousemove"===o&&(s.on("mousemove",this._mousemove,this),s.on("mouseout",this._hide,this),s.on("globalout",this._hide,this))}},_mousemove:function(t){var e=this._tooltipModel.get("showDelay"),n=this;clearTimeout(this._showTimeout),e>0?this._showTimeout=setTimeout(function(){n._tryShow(t)},e):this._tryShow(t)},manuallyShowTip:function(t,e,n,i){function r(t){var e=t.getData(),n=m.queryDataIndex(e,i);if(null!=n&&!p.isArray(n)&&e.hasValue(n))return!0}if(i.from!==this.uid){var e=this._ecModel,o=i.seriesIndex,a=e.getSeriesByIndex(o),n=this._api,s="axis"===this._tooltipModel.get("trigger");if(null==i.x||null==i.y){if(s?(a&&!r(a)&&(a=null),a||e.eachSeries(function(t){h(t)&&!a&&r(t)&&(a=t)})):a=a||e.getSeriesByIndex(0),a){var l=a.getData(),u=m.queryDataIndex(l,i);if(null==u||p.isArray(u))return;var c,f,d=l.getItemGraphicEl(u),g=a.coordinateSystem;if(a.getTooltipPosition){var v=a.getTooltipPosition(u)||[];c=v[0],f=v[1]}else if(g&&g.dataToPoint){var v=g.dataToPoint(l.getValues(p.map(g.dimensions,function(t){return a.coordDimToDataDim(t)[0]}),u,!0));c=v&&v[0],f=v&&v[1]}else if(d){var y=d.getBoundingRect().clone();y.applyTransform(d.transform),c=y.x+y.width/2,f=y.y+y.height/2}null!=c&&null!=f&&this._tryShow({offsetX:c,offsetY:f,position:i.position,target:d,event:{}})}}else{var d=n.getZr().handler.findHover(i.x,i.y);this._tryShow({offsetX:i.x,offsetY:i.y,position:i.position,target:d,event:{}})}}},manuallyHideTip:function(t,e,n,i){i.from!==this.uid&&this._hide()},_prepareAxisTriggerData:function(t,e){var n={};return e.eachSeries(function(t){if(h(t)){var e,i,r=t.coordinateSystem;"cartesian2d"===r.type?(e=r.getBaseAxis(),i=e.dim+e.index):"singleAxis"===r.type?(e=r.getAxis(),i=e.dim+e.type):(e=r.getBaseAxis(),i=e.dim+r.name),n[i]=n[i]||{coordSys:[],series:[]},n[i].coordSys.push(r),n[i].series.push(t)}},this),n},_tryShow:function(t){var e=t.target,n=this._tooltipModel,i=n.get("trigger"),r=this._ecModel,o=this._api;if(n)if(this._lastX=t.offsetX,this._lastY=t.offsetY,e&&null!=e.dataIndex){var a=e.dataModel||r.getSeriesByIndex(e.seriesIndex),s=e.dataIndex,l=a.getData(),u=l.getItemModel(s);"axis"===(u.get("tooltip.trigger")||i)?this._showAxisTooltip(n,r,t):(this._ticket="",this._hideAxisPointer(),this._resetLastHover(),this._showItemTooltipContent(a,s,e.dataType,t)),o.dispatchAction({type:"showTip",from:this.uid,dataIndexInside:s,dataIndex:l.getRawIndex(s),seriesIndex:e.seriesIndex})}else if(e&&e.tooltip){var c=e.tooltip;if("string"==typeof c){var h=c;c={content:h,formatter:h}}var f=new _(c,n),d=f.get("content"),p=Math.random();this._showTooltipContent(f,d,f.get("formatterParams")||{},p,t.offsetX,t.offsetY,t.position,e,o)}else"item"===i?this._hide():this._showAxisTooltip(n,r,t),"cross"===n.get("axisPointer.type")&&o.dispatchAction({type:"showTip",from:this.uid,x:t.offsetX,y:t.offsetY})},_showAxisTooltip:function(t,e,n){var r=t.getModel("axisPointer"),o=r.get("type");if("cross"===o){var a=n.target;if(a&&null!=a.dataIndex){var s=e.getSeriesByIndex(a.seriesIndex),l=a.dataIndex;this._showItemTooltipContent(s,l,a.dataType,n)}}this._showAxisPointer();var u=!0;p.each(this._seriesGroupByAxis,function(e){var a=e.coordSys,s=a[0],l=[n.offsetX,n.offsetY];if(!s.containPoint(l))return void this._hideAxisPointer(s.name);u=!1;var c=s.dimensions,h=s.pointToData(l,!0);l=s.dataToPoint(h);var f=s.getBaseAxis(),d=r.get("axis");if("auto"===d&&(d=f.dim),f.isBlank()||p.eqNaN(l[0])||p.eqNaN(l[1]))return void this._hideAxisPointer(s.name);var g=!1,v=this._lastHover;if("cross"===o)i(v.data,h)&&(g=!0),v.data=h;else{var m=p.indexOf(c,d);v.data===h[m]&&(g=!0),v.data=h[m]}var y=t.get("animation");"cartesian2d"!==s.type||g?"polar"!==s.type||g?"singleAxis"!==s.type||g||this._showSinglePointer(r,s,d,l,y):this._showPolarPointer(r,s,d,l,y):this._showCartesianPointer(r,s,d,l,y),"cross"!==o&&this._dispatchAndShowSeriesTooltipContent(s,e.series,l,h,g,n.position)},this),this._tooltipModel.get("show")||this._hideAxisPointer(),u&&this._hide()},_showCartesianPointer:function(t,e,n,i,a){function s(n,i,o){var a="x"===n?r(i[0],o[0],i[0],o[1]):r(o[0],i[1],o[1],i[1]),s=u._getPointerElement(e,t,n,a);d.subPixelOptimizeLine({shape:a,style:s.style}),f?d.updateProps(s,{shape:a},t):s.attr({shape:a})}function l(n,i,r){var a=e.getAxis(n),s=a.getBandWidth(),l=r[1]-r[0],c="x"===n?o(i[0]-s/2,r[0],s,l):o(r[0],i[1]-s/2,l,s),h=u._getPointerElement(e,t,n,c);f?d.updateProps(h,{shape:c},t):h.attr({shape:c})}var u=this,c=t.get("type"),h=e.getBaseAxis(),f=a&&"cross"!==c&&"category"===h.type&&h.getBandWidth()>20;if("cross"===c)s("x",i,e.getAxis("y").getGlobalExtent()),s("y",i,e.getAxis("x").getGlobalExtent()),this._updateCrossText(e,i,t);else{var p=e.getAxis("x"===n?"y":"x"),g=p.getGlobalExtent();"cartesian2d"===e.type&&("line"===c?s:l)(n,i,g)}},_showSinglePointer:function(t,e,n,i,o){function a(n,i,o){var a=e.getAxis(),l=a.orient,c="horizontal"===l?r(i[0],o[0],i[0],o[1]):r(o[0],i[1],o[1],i[1]),h=s._getPointerElement(e,t,n,c);u?d.updateProps(h,{shape:c},t):h.attr({shape:c})}var s=this,l=t.get("type"),u=o&&"cross"!==l&&"category"===e.getBaseAxis().type,c=e.getRect();a(n,i,[c.y,c.y+c.height])},_showPolarPointer:function(t,e,n,i,o){function s(n,i,o){var a,s=e.pointToCoord(i);if("angle"===n){var l=e.coordToPoint([o[0],s[1]]),c=e.coordToPoint([o[1],s[1]]);a=r(l[0],l[1],c[0],c[1])}else a={cx:e.cx,cy:e.cy,r:s[0]};var h=u._getPointerElement(e,t,n,a);p?d.updateProps(h,{shape:a},t):h.attr({shape:a})}function l(n,i,r){var o,s=e.getAxis(n),l=s.getBandWidth(),c=e.pointToCoord(i),h=Math.PI/180;o="angle"===n?a(e.cx,e.cy,r[0],r[1],(-c[1]-l/2)*h,(-c[1]+l/2)*h):a(e.cx,e.cy,c[0]-l/2,c[0]+l/2,0,2*Math.PI);var f=u._getPointerElement(e,t,n,o);p?d.updateProps(f,{shape:o},t):f.attr({shape:o})}var u=this,c=t.get("type"),h=e.getAngleAxis(),f=e.getRadiusAxis(),p=o&&"cross"!==c&&"category"===e.getBaseAxis().type;if("cross"===c)s("angle",i,f.getExtent()),s("radius",i,h.getExtent()),this._updateCrossText(e,i,t);else{var g=e.getAxis("radius"===n?"angle":"radius"),v=g.getExtent();("line"===c?s:l)(n,i,v)}},_updateCrossText:function(t,e,n){var i=n.getModel("crossStyle"),r=i.getModel("textStyle"),o=this._tooltipModel,a=this._crossText;a||(a=this._crossText=new d.Text({style:{textAlign:"left",textVerticalAlign:"bottom"}}),this.group.add(a));var s=t.pointToData(e),l=t.dimensions;s=p.map(s,function(e,n){var i=t.getAxis(l[n]);return e="category"===i.type||"time"===i.type?i.scale.getLabel(e):g.addCommas(e.toFixed(i.getPixelPrecision()))}),a.setStyle({fill:r.getTextColor()||i.get("color"),textFont:r.getFont(),text:s.join(", "),x:e[0]+5,y:e[1]-5}),a.z=o.get("z"),a.zlevel=o.get("zlevel")},_getPointerElement:function(t,e,n,i){var r=this._tooltipModel,o=r.get("z"),a=r.get("zlevel"),s=this._axisPointers,l=t.name;if(s[l]=s[l]||{},s[l][n])return s[l][n];var u=e.get("type"),c=e.getModel(u+"Style"),h="shadow"===u,f=c[h?"getAreaStyle":"getLineStyle"](),p="polar"===t.type?h?"Sector":"radius"===n?"Circle":"Line":h?"Rect":"Line";h?f.stroke=null:f.fill=null;var g=s[l][n]=new d[p]({style:f,z:o,zlevel:a,silent:!0,shape:i});return this.group.add(g),g},_dispatchAndShowSeriesTooltipContent:function(t,e,n,i,r,o){var a=this._tooltipModel,s=t.getBaseAxis(),l={x:1,radius:1,single:1}[s.dim]?0:1;if(e.length){var u,h=p.map(e,function(t){return{seriesIndex:t.seriesIndex,dataIndexInside:t.getAxisTooltipDataIndex?t.getAxisTooltipDataIndex(t.coordDimToDataDim(s.dim),i,s):t.getData().indexOfNearest(t.coordDimToDataDim(s.dim)[0],i[l],!1,"category"===s.type?.5:null)}});p.each(h,function(t,n){e[n].getData().hasValue(t.dataIndexInside)&&(u=n)}),u=u||0;var f=this._lastHover,d=this._api;f.payloadBatch&&!r&&d.dispatchAction({type:"downplay",batch:f.payloadBatch}),r||(d.dispatchAction({type:"highlight",batch:h}),f.payloadBatch=h);var v=h[u].dataIndexInside;if(d.dispatchAction({type:"showTip",dataIndexInside:v,dataIndex:e[u].getData().getRawIndex(v),seriesIndex:h[u].seriesIndex,from:this.uid}),s&&a.get("showContent")&&a.get("show")){var m=p.map(e,function(t,e){return t.getDataParams(h[e].dataIndexInside)});if(r)c(o||a.get("position"),n[0],n[1],a.get("confine"),this._tooltipContent,m,null,d);else{var y=h[u].dataIndexInside,x="time"===s.type?s.scale.getLabel(i[l]):e[u].getData().getName(y),_=(x?g.encodeHTML(x)+"
":"")+p.map(e,function(t,e){return t.formatTooltip(h[e].dataIndexInside,!0)}).join("
"),b="axis_"+t.name+"_"+y;this._showTooltipContent(a,_,m,b,n[0],n[1],o,null,d)}}}},_showItemTooltipContent:function(t,e,n,i){var r=this._api,o=t.getData(n),a=o.getItemModel(e),s=a.get("tooltip",!0);"string"==typeof s&&(s={formatter:s});var l=this._tooltipModel,u=t.getModel("tooltip",l),c=new _(s,u,u.ecModel),h=t.getDataParams(e,n),f=t.formatTooltip(e,!1,n),d="item_"+t.name+"_"+e;this._showTooltipContent(c,f,h,d,i.offsetX,i.offsetY,i.position,i.target,r)},_showTooltipContent:function(t,e,n,i,r,o,a,s,l){if(this._ticket="",t.get("showContent")&&t.get("show")){var u=this._tooltipContent,h=t.get("confine"),f=t.get("formatter");a=a||t.get("position");var d=e;if(f)if("string"==typeof f)d=g.formatTpl(f,n,!0);else if("function"==typeof f){var p=this,v=i,m=function(t,e){t===p._ticket&&(u.setContent(e),c(a,r,o,h,u,n,s,l))};p._ticket=v,d=f(n,v,m)}u.show(t),u.setContent(d),c(a,r,o,h,u,n,s,l)}},_showAxisPointer:function(t){if(t){var e=this._axisPointers[t];e&&p.each(e,function(t){t.show()})}else this.group.eachChild(function(t){t.show()}),this.group.show()},_resetLastHover:function(){var t=this._lastHover;t.payloadBatch&&this._api.dispatchAction({type:"downplay",batch:t.payloadBatch}),this._lastHover={}},_hideAxisPointer:function(t){if(t){var e=this._axisPointers[t];e&&p.each(e,function(t){t.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(t,e){if(!x.node){var n=e.getZr();this._tooltipContent.hide(),n.off("click",this._tryShow),n.off("mousemove",this._mousemove),n.off("mouseout",this._hide),n.off("globalout",this._hide)}}})},function(t,e,n){n(319),n(320)},function(t,e,n){function i(t,e,n){if(n[0]===n[1])return n.slice();for(var i=200,r=(n[1]-n[0])/i,o=n[0],a=[],s=0;s<=i&&oe[1]&&e.reverse(),e[0]=Math.max(e[0],t[0]),e[1]=Math.min(e[1],t[1]))},completeVisualOption:function(){r.prototype.completeVisualOption.apply(this,arguments),o.each(this.stateList,function(t){var e=this.option.controller[t].symbolSize;e&&e[0]!==e[1]&&(e[0]=0)},this)},setSelected:function(t){this.option.range=t.slice(),this._resetRange()},getSelected:function(){var t=this.getExtent(),e=a.asc((this.get("range")||[]).slice());return e[0]>t[1]&&(e[0]=t[1]),e[1]>t[1]&&(e[1]=t[1]),e[0]=n[1]||t<=e[1])?"inRange":"outOfRange"},findTargetDataIndices:function(t){var e=[];return this.eachTargetSeries(function(n){var i=[],r=n.getData();r.each(this.getDataDimension(r),function(e,n){t[0]<=e&&e<=t[1]&&i.push(n)},!0,this),e.push({seriesId:n.id,dataIndex:i})},this),e},getVisualMeta:function(t){function e(e,n){o.push({value:e,color:t(e,n)})}for(var n=i(this,"outOfRange",this.getExtent()),r=i(this,"inRange",this.option.range.slice()),o=[],a=0,s=0,l=r.length,u=n.length;st[1])break;i.push({color:this.getControllerVisual(a,"color",e),offset:o/n})}return i.push({color:this.getControllerVisual(t[1],"color",e),offset:1}),i},_createBarPoints:function(t,e){var n=this.visualMapModel.itemSize;return[[n[0]-e[0],t[0]],[n[0],t[0]],[n[0],t[1]],[n[0]-e[1],t[1]]]},_createBarGroup:function(t){var e=this._orient,n=this.visualMapModel.get("inverse");return new u.Group("horizontal"!==e||n?"horizontal"===e&&n?{scale:"bottom"===t?[-1,1]:[1,1],rotation:-Math.PI/2}:"vertical"!==e||n?{scale:"left"===t?[1,1]:[-1,1]}:{scale:"left"===t?[1,-1]:[-1,-1]}:{scale:"bottom"===t?[1,1]:[-1,1],rotation:Math.PI/2})},_updateHandle:function(t,e){if(this._useHandle){var n=this._shapes,i=this.visualMapModel,r=n.handleThumbs,o=n.handleLabels;m([0,1],function(a){var s=r[a];s.setStyle("fill",e.handlesColor[a]),s.position[1]=t[a];var l=u.applyTransform(n.handleLabelPoints[a],u.getTransform(s,this.group));o[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",n.barGroup)})},this)}},_showIndicator:function(t,e,n,i){var r=this.visualMapModel,a=r.getExtent(),s=r.itemSize,l=[0,s[1]],c=v(t,a,l,!0),h=this._shapes,f=h.indicator;if(f){f.position[1]=c,f.attr("invisible",!1),f.setShape("points",o(!!n,i,c,s[1]));var d={convertOpacityToAlpha:!0},p=this.getControllerVisual(t,"color",d);f.setStyle("fill",p);var g=u.applyTransform(h.indicatorLabelPoint,u.getTransform(f,this.group)),m=h.indicatorLabel;m.attr("invisible",!1);var y=this._applyTransform("left",h.barGroup),x=this._orient;m.setStyle({text:(n?n:"")+r.formatValueText(e),textVerticalAlign:"horizontal"===x?y:"middle",textAlign:"horizontal"===x?"center":y,x:g[0],y:g[1]})}},_enableHoverLinkToSeries:function(){var t=this;this._shapes.barGroup.on("mousemove",function(e){if(t._hovering=!0,!t._dragging){var n=t.visualMapModel.itemSize,i=t._applyTransform([e.offsetX,e.offsetY],t._shapes.barGroup,!0,!0);i[1]=y(x(0,i[1]),n[1]),t._doHoverLinkToSeries(i[1],0<=i[0]&&i[0]<=n[0])}}).on("mouseout",function(){t._hovering=!1,!t._dragging&&t._clearHoverLinkToSeries()})},_enableHoverLinkFromSeries:function(){var t=this.api.getZr();this.visualMapModel.option.hoverLink?(t.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),t.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},_doHoverLinkToSeries:function(t,e){var n=this.visualMapModel,i=n.itemSize;if(n.option.hoverLink){var r=[0,i[1]],o=n.getExtent();t=y(x(r[0],t),r[1]);var l=a(n,o,r),u=[t-l,t+l],c=v(t,r,o,!0),h=[v(u[0],r,o,!0),v(u[1],r,o,!0)];u[0]r[1]&&(h[1]=1/0),e&&(h[0]===-(1/0)?this._showIndicator(c,h[1],"< ",l):h[1]===1/0?this._showIndicator(c,h[0],"> ",l):this._showIndicator(c,c,"≈ ",l));var f=this._hoverLinkDataIndices,d=[];(e||s(n))&&(d=this._hoverLinkDataIndices=n.findTargetDataIndices(h));var m=g.compressBatches(f,d);this._dispatchHighDown("downplay",p.convertDataIndex(m[0])),this._dispatchHighDown("highlight",p.convertDataIndex(m[1]))}},_hoverLinkFromSeriesMouseOver:function(t){var e=t.target;if(e&&null!=e.dataIndex){var n=e.dataModel||this.ecModel.getSeriesByIndex(e.seriesIndex),i=n.getData(e.dataType),r=i.getDimension(this.visualMapModel.getDataDimension(i)),o=i.get(r,e.dataIndex,!0);isNaN(o)||this._showIndicator(o,o)}},_hideIndicator:function(){var t=this._shapes;t.indicator&&t.indicator.attr("invisible",!0),t.indicatorLabel&&t.indicatorLabel.attr("invisible",!0)},_clearHoverLinkToSeries:function(){this._hideIndicator();var t=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",p.convertDataIndex(t)),t.length=0},_clearHoverLinkFromSeries:function(){this._hideIndicator();var t=this.api.getZr();t.off("mouseover",this._hoverLinkFromSeriesMouseOver),t.off("mouseout",this._hideIndicator)},_applyTransform:function(t,e,n,i){var r=u.getTransform(e,i?null:this.group);return u[c.isArray(t)?"applyTransform":"transformDirection"](t,r,n)},_dispatchHighDown:function(t,e){e&&e.length&&this.api.dispatchAction({type:t,batch:e})},dispose:function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},remove:function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()}});t.exports=b},function(t,e,n){function i(t,e){var n=t.inverse;("vertical"===t.orient?!n:n)&&e.reverse()}var r=n(98),o=n(1),a=n(28),s=n(114),l=n(4).reformIntervals,u=r.extend({type:"visualMap.piecewise",defaultOption:{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieceList:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0,showLabel:null},optionUpdated:function(t,e){u.superApply(this,"optionUpdated",arguments),this._pieceList=[],this.resetTargetSeries(),this.resetExtent();var n=this._mode=this._determineMode();c[this._mode].call(this),this._resetSelected(t,e);var i=this.option.categories;this.resetVisual(function(t,e){"categories"===n?(t.mappingMethod="category",t.categories=o.clone(i)):(t.dataExtent=this.getExtent(),t.mappingMethod="piecewise",t.pieceList=o.map(this._pieceList,function(t){var t=o.clone(t);return"inRange"!==e&&(t.visual=null),t}))})},completeVisualOption:function(){function t(t,e,n){return t&&t[e]&&(o.isObject(t[e])?t[e].hasOwnProperty(n):t[e]===n)}var e=this.option,n={},i=a.listVisualTypes(),l=this.isCategory();o.each(e.pieces,function(t){o.each(i,function(e){t.hasOwnProperty(e)&&(n[e]=1)})}),o.each(n,function(n,i){var r=0;o.each(this.stateList,function(n){r|=t(e,n,i)||t(e.target,n,i)},this),!r&&o.each(this.stateList,function(t){(e[t]||(e[t]={}))[i]=s.get(i,"inRange"===t?"active":"inactive",l)})},this),r.prototype.completeVisualOption.apply(this,arguments)},_resetSelected:function(t,e){var n=this.option,i=this._pieceList,r=(e?n:t).selected||{};if(n.selected=r,o.each(i,function(t,e){var n=this.getSelectedMapKey(t);r.hasOwnProperty(n)||(r[n]=!0)},this),"single"===n.selectedMode){var a=!1;o.each(i,function(t,e){var n=this.getSelectedMapKey(t);r[n]&&(a?r[n]=!1:a=!0)},this)}},getSelectedMapKey:function(t){return"categories"===this._mode?t.value+"":t.index+""},getPieceList:function(){return this._pieceList},_determineMode:function(){var t=this.option;return t.pieces&&t.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},setSelected:function(t){this.option.selected=o.clone(t)},getValueState:function(t){var e=a.findPieceIndex(t,this._pieceList);return null!=e&&this.option.selected[this.getSelectedMapKey(this._pieceList[e])]?"inRange":"outOfRange"},findTargetDataIndices:function(t){var e=[];return this.eachTargetSeries(function(n){var i=[],r=n.getData();r.each(this.getDataDimension(r),function(e,n){a.findPieceIndex(e,this._pieceList)===t&&i.push(n)},!0,this),e.push({seriesId:n.id,dataIndex:i})},this),e},getRepresentValue:function(t){var e;if(this.isCategory())e=t.value;else if(null!=t.value)e=t.value;else{var n=t.interval||[];e=n[0]===-(1/0)&&n[1]===1/0?0:(n[0]+n[1])/2}return e},getVisualMeta:function(t){function e(e,o){var a=r.getRepresentValue({interval:e});o||(o=r.getValueState(a));var s=t(a,o);e[0]===-(1/0)?i[0]=s:e[1]===1/0?i[1]=s:n.push({value:e[0],color:s},{value:e[1],color:s})}if(!this.isCategory()){var n=[],i=[],r=this,a=this._pieceList.slice();if(a.length){var s=a[0].interval[0];s!==-(1/0)&&a.unshift({interval:[-(1/0),s]}),s=a[a.length-1].interval[1],s!==1/0&&a.push({interval:[s,1/0]})}else a.push({interval:[-(1/0),1/0]});var l=-(1/0);return o.each(a,function(t){var n=t.interval;n&&(n[0]>l&&e([l,n[0]],"outOfRange"),e(n.slice()),l=n[1])},this),{stops:n,outerColors:i}}}}),c={splitNumber:function(){var t=this.option,e=this._pieceList,n=t.precision,i=this.getExtent(),r=t.splitNumber;r=Math.max(parseInt(r,10),1),t.splitNumber=r;for(var a=(i[1]-i[0])/r;+a.toFixed(n)!==a&&n<5;)n++;t.precision=n,a=+a.toFixed(n);var s=0;t.minOpen&&e.push({index:s++,interval:[-(1/0),i[0]],close:[0,0]});for(var u=i[0],c=s+r;ss[1],s[0]===s[1]&&l[0]&&l[1]&&(i.value=s[0])}i.visual=a.retrieveVisuals(t),e.push(i)},this),i(t,e),l(e),o.each(e,function(t){var e=t.close,n=[["<","≤"][e[1]],[">","≥"][e[0]]];t.text=t.text||this.formatValueText(null!=t.value?t.value:t.interval,!1,n)},this)}};t.exports=u},function(t,e,n){var i=n(99),r=n(1),o=n(3),a=n(18),s=n(8),l=n(100),u=i.extend({type:"visualMap.piecewise",doRender:function(){function t(t){var a=t.piece,s=new o.Group;s.onclick=r.bind(this._onItemClick,this,a),this._enableHoverLink(s,t.indexInModelPieceList);var f=n.getRepresentValue(a);if(this._createItemSymbol(s,f,[0,0,h[0],h[1]]),p){var d=this.visualMapModel.getValueState(f);s.add(new o.Text({style:{x:"right"===c?-i:h[0]+i,y:h[1]/2,text:a.text,textVerticalAlign:"middle",textAlign:c,textFont:l,fill:u,opacity:"outOfRange"===d?.5:1}}))}e.add(s)}var e=this.group;e.removeAll();var n=this.visualMapModel,i=n.get("textGap"),a=n.textStyleModel,l=a.getFont(),u=a.getTextColor(),c=this._getItemAlign(),h=n.itemSize,f=this._getViewData(),d=f.endsText,p=r.retrieve(n.get("showLabel",!0),!d);d&&this._renderEndsText(e,d[0],h,p,c),r.each(f.viewPieceList,t,this),d&&this._renderEndsText(e,d[1],h,p,c),s.box(n.get("orient"),e,n.get("itemGap")),this.renderBackground(e),this.positionGroup(e)},_enableHoverLink:function(t,e){function n(t){var n=this.visualMapModel;n.option.hoverLink&&this.api.dispatchAction({type:t,batch:l.convertDataIndex(n.findTargetDataIndices(e))})}t.on("mouseover",r.bind(n,this,"highlight")).on("mouseout",r.bind(n,this,"downplay"))},_getItemAlign:function(){var t=this.visualMapModel,e=t.option;if("vertical"===e.orient)return l.getItemAlign(t,this.api,t.itemSize);var n=e.align;return n&&"auto"!==n||(n="left"),n},_renderEndsText:function(t,e,n,i,r){if(e){var a=new o.Group,s=this.visualMapModel.textStyleModel;a.add(new o.Text({style:{x:i?"right"===r?n[0]:0:n[0]/2,y:n[1]/2,textVerticalAlign:"middle",textAlign:i?r:"center",text:e,textFont:s.getFont(),fill:s.getTextColor()}})),t.add(a)}},_getViewData:function(){var t=this.visualMapModel,e=r.map(t.getPieceList(),function(t,e){return{piece:t,indexInModelPieceList:e}}),n=t.get("text"),i=t.get("orient"),o=t.get("inverse");return("horizontal"===i?o:!o)?e.reverse():n&&(n=n.slice().reverse()),{viewPieceList:e,endsText:n}},_createItemSymbol:function(t,e,n){t.add(a.createSymbol(this.getControllerVisual(e,"symbol"),n[0],n[1],n[2],n[3],this.getControllerVisual(e,"color")))},_onItemClick:function(t){var e=this.visualMapModel,n=e.option,i=r.clone(n.selected),o=e.getSelectedMapKey(t);"single"===n.selectedMode?(i[o]=!0,r.each(i,function(t,e){i[e]=e===o})):i[o]=!i[o],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:i})}});t.exports=u},function(t,e,n){n(2).registerPreprocessor(n(101)),n(102),n(103),n(315),n(316),n(104)},function(t,e,n){n(2).registerPreprocessor(n(101)),n(102),n(103),n(317),n(318),n(104)},function(t,e,n){var i=n(1),r=n(27),o=n(325),a=function(t,e,n,i,o){r.call(this,t,e,n),this.type=i||"value",this.position=o||"bottom"};a.prototype={constructor:a,index:0,onZero:!1,model:null,isHorizontal:function(){var t=this.position;return"top"===t||"bottom"===t},getGlobalExtent:function(){var t=this.getExtent();return t[0]=this.toGlobalCoord(t[0]),t[1]=this.toGlobalCoord(t[1]),t},getLabelInterval:function(){var t=this._labelInterval;return t||(t=this._labelInterval=o(this)),t},isLabelIgnored:function(t){if("category"===this.type){var e=this.getLabelInterval();return"function"==typeof e&&!e(t,this.scale.getLabel(t))||t%(e+1)}},toLocalCoord:null,toGlobalCoord:null},i.inherits(a,r),t.exports=a},function(t,e,n){"use strict";function i(t){return this._axes[t]}var r=n(1),o=function(t){this._axes={},this._dimList=[],this.name=t||""};o.prototype={constructor:o,type:"cartesian",getAxis:function(t){return this._axes[t]},getAxes:function(){return r.map(this._dimList,i,this)},getAxesByScale:function(t){return t=t.toLowerCase(),r.filter(this.getAxes(),function(e){return e.scale.type===t})},addAxis:function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},dataToCoord:function(t){return this._dataCoordConvert(t,"dataToCoord")},coordToData:function(t){return this._dataCoordConvert(t,"coordToData")},_dataCoordConvert:function(t,e){for(var n=this._dimList,i=t instanceof Array?[]:{},r=0;r>1^-(1&a),s=s>>1^-(1&s),a+=i,s+=r,i=a,r=s,n.push([a/1024,s/1024])}return n}function o(t){for(var e=[],n=0;n=0;n--)l.asc(e[n])},getActiveState:function(t){var e=this.activeIntervals;if(!e.length)return"normal";if(null==t)return"inactive";for(var n=0,i=e.length;n=r.length&&(x=r.length-1,y=Math.max(0,Math.floor(x-m+1))),d=[y,x]}var _=p&&d&&g?function(t,e,n){var i,r=d[1]-d[0],o=(e-g*r)/(n-1-r);return i=ta[1])){var s=Math.abs(o[1]);sa;)l+=360*u;return[s,l]},coordToPoint:function(t){var e=t[0],n=t[1]/180*Math.PI;return[Math.cos(n)*e+this.cx,-Math.sin(n)*e+this.cy]}},t.exports=o},function(t,e,n){"use strict";n(338),n(2).extendComponentModel({type:"polar",dependencies:["polarAxis","angleAxis"],coordinateSystem:null,findAxisModel:function(t){var e;return this.ecModel.eachComponent(t,function(t){t.getCoordSysModel()===this&&(e=t)},this),e},defaultOption:{zlevel:0,z:0,center:["50%","50%"],radius:"80%"}})},function(t,e,n){"use strict";function i(t,e){o.call(this,"radius",t,e),this.type="category"}var r=n(1),o=n(27);i.prototype={ constructor:i,dataToRadius:o.prototype.dataToCoord,radiusToData:o.prototype.coordToData},r.inherits(i,o),t.exports=i},function(t,e,n){function i(t,e,n){o.call(this,t,e,n),this.type="value",this.angle=0,this.name="",this.model}var r=n(1),o=n(27);r.inherits(i,o),t.exports=i},function(t,e,n){function i(t,e,n){this._model=t,this.dimensions=[],this._indicatorAxes=r.map(t.getIndicatorModels(),function(t,e){var n="indicator_"+e,i=new o(n,new a);return i.name=t.get("name"),i.model=t,t.axis=i,this.dimensions.push(n),i},this),this.resize(t,n),this.cx,this.cy,this.r,this.startAngle}var r=n(1),o=n(342),a=n(48),s=n(4),l=n(16);i.prototype.getIndicatorAxes=function(){return this._indicatorAxes},i.prototype.dataToPoint=function(t,e){var n=this._indicatorAxes[e];return this.coordToPoint(n.dataToCoord(t),e)},i.prototype.coordToPoint=function(t,e){var n=this._indicatorAxes[e],i=n.angle;return[this.cx+t*Math.cos(i),this.cy-t*Math.sin(i)]},i.prototype.pointToData=function(t){var e=t[0]-this.cx,n=t[1]-this.cy,i=Math.sqrt(e*e+n*n);e/=i,n/=i;for(var r,o=Math.atan2(-n,e),a=1/0,s=-1,l=0;li[0]&&isFinite(d)&&isFinite(i[0]))}else{var p=o.getTicks().length-1;p>a&&(h=n(h));var g=Math.round((i[0]+i[1])/2/h)*h,v=Math.round(a/2);o.setExtent(s.round(g-v*h),s.round(g+(a-v)*h)),o.setInterval(h)}})},i.dimensions=[],i.create=function(t,e){var n=[];return t.eachComponent("radar",function(r){var o=new i(r,t,e);n.push(o),r.coordinateSystem=o}),t.eachSeriesByType("radar",function(t){"radar"===t.get("coordinateSystem")&&(t.coordinateSystem=n[t.get("radarIndex")||0])}),n},n(19).register("radar",i),t.exports=i},function(t,e,n){function i(t,e){return s.defaults({show:e},t)}var r=n(106),o=r.valueAxis,a=n(11),s=n(1),l=n(39),u=n(2).extendComponentModel({type:"radar",optionUpdated:function(){var t=this.get("boundaryGap"),e=this.get("splitNumber"),n=this.get("scale"),i=this.get("axisLine"),r=this.get("axisTick"),o=this.get("axisLabel"),u=this.get("name.textStyle"),c=this.get("name.show"),h=this.get("name.formatter"),f=this.get("nameGap"),d=this.get("triggerEvent"),p=s.map(this.get("indicator")||[],function(p){if(null!=p.max&&p.max>0&&!p.min?p.min=0:null!=p.min&&p.min<0&&!p.max&&(p.max=0),p=s.merge(s.clone(p),{boundaryGap:t,splitNumber:e,scale:n,axisLine:i,axisTick:r,axisLabel:o,name:p.text,nameLocation:"end",nameGap:f,nameTextStyle:u,triggerEvent:d},!1),c||(p.name=""),"string"==typeof h){var g=p.name;p.name=h.replace("{value}",null!=g?g:"")}else"function"==typeof h&&(p.name=h(p.name,p));var v=s.extend(new a(p,null,this.ecModel),l);return v.mainType="radar",v.componentIndex=this.componentIndex,v},this);this.getIndicatorModels=function(){return p}},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"}},o.axisLine),axisLabel:i(o.axisLabel,!1),axisTick:i(o.axisTick,!1),splitLine:i(o.splitLine,!0),splitArea:i(o.splitArea,!0),indicator:[]}});t.exports=u},function(t,e,n){function i(t,e){return e.type||(e.data?"category":"value")}var r=n(12),o=n(45),a=n(1),s=r.extend({type:"singleAxis",layoutMode:"box",axis:null,coordinateSystem:null,getCoordSysModel:function(){return this}}),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,n(39)),o("single",s,i,l),t.exports=s},function(t,e,n){function i(t,e,n){this.dimension="single",this.dimensions=["single"],this._axis=null,this._rect,this._init(t,e,n),this._model=t}var r=n(347),o=n(16),a=n(8);i.prototype={type:"singleAxis",constructor:i,_init:function(t,e,n){var i=this.dimension,a=new r(i,o.createScaleByModel(t),[0,0],t.get("type"),t.get("position")),s="category"===a.type;a.onBand=s&&t.get("boundaryGap"),a.inverse=t.get("inverse"),a.orient=t.get("orient"),t.axis=a,a.model=t,this._axis=a},update:function(t,e){t.eachSeries(function(t){if(t.coordinateSystem===this){var e=t.getData(),n=this.dimension;this._axis.scale.unionExtentFromData(e,t.coordDimToDataDim(n)),o.niceScaleExtent(this._axis,this._axis.model)}},this)},resize:function(t,e){this._rect=a.getLayoutRect({left:t.get("left"),top:t.get("top"),right:t.get("right"),bottom:t.get("bottom"),width:t.get("width"),height:t.get("height")},{width:e.getWidth(),height:e.getHeight()}),this._adjustAxis()},getRect:function(){return this._rect},_adjustAxis:function(){var t=this._rect,e=this._axis,n=e.isHorizontal(),i=n?[0,t.width]:[0,t.height],r=e.reverse?1:0;e.setExtent(i[r],i[1-r]),this._updateAxisTransform(e,n?t.x:t.y)},_updateAxisTransform:function(t,e){var n=t.getExtent(),i=n[0]+n[1],r=t.isHorizontal();t.toGlobalCoord=r?function(t){return t+e}:function(t){return i-t+e},t.toLocalCoord=r?function(t){return t-e}:function(t){return i-t+e}},getAxis:function(){return this._axis},getBaseAxis:function(){return this._axis},containPoint:function(t){var e=this.getRect(),n=this.getAxis();return"horizontal"===n.orient?n.contain(n.toLocalCoord(t[0]))&&t[1]>=e.y&&t[1]<=e.y+e.height:n.contain(n.toLocalCoord(t[1]))&&t[0]>=e.y&&t[0]<=e.y+e.height},pointToData:function(t){var e=this.getAxis();return[e.coordToData(e.toLocalCoord(t["horizontal"===e.orient?0:1]))]},dataToPoint:function(t){var e=this.getAxis(),n=this.getRect(),i=[],r="horizontal"===e.orient?0:1;return i[r]=e.toGlobalCoord(e.dataToCoord(+t)),i[1-r]=0===r?n.y+n.height/2:n.x+n.width/2,i}},t.exports=i},function(t,e,n){var i=n(1),r=n(27),o=n(16),a=function(t,e,n,i,o){r.call(this,t,e,n),this.type=i||"value",this.position=o||"bottom",this.orient=null,this._labelInterval=null};a.prototype={constructor:a,model:null,isHorizontal:function(){var t=this.position;return"top"===t||"bottom"===t},getLabelInterval:function(){var t=this._labelInterval;if(!t){var e=this.model,n=e.getModel("axisLabel"),r=n.get("interval");if("category"!==this.type||"auto"!==r)return t=this._labelInterval="auto"===r?0:r;t=this._labelInterval=o.getAxisLabelInterval(i.map(this.scale.getTicks(),this.dataToCoord,this),e.getFormattedLabels(),n.getModel("textStyle").getFont(),this.isHorizontal())}return t},toGlobalCoord:null,toLocalCoord:null},i.inherits(a,r),t.exports=a},function(t,e,n){function i(t,e){var n=[];return t.eachComponent("singleAxis",function(i,o){var a=new r(i,t,e);a.name="single_"+o,a.resize(i,e),i.coordinateSystem=a,n.push(a)}),t.eachSeries(function(e){if("singleAxis"===e.get("coordinateSystem")){var n=t.queryComponents({mainType:"singleAxis",index:e.get("singleAxisIndex"),id:e.get("singleAxisId")})[0];e.coordinateSystem=n&&n.coordinateSystem}}),n}var r=n(346);n(19).register("single",{create:i,dimensions:r.prototype.dimensions})},function(t,e,n){"use strict";function i(t,e){this.id=null==t?"":t,this.inEdges=[],this.outEdges=[],this.edges=[],this.hostGraph,this.dataIndex=null==e?-1:e}function r(t,e,n){this.node1=t,this.node2=e,this.dataIndex=null==n?-1:n}var o=n(1),a=function(t){this._directed=t||!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(t,e){t=t||""+e;var n=this._nodesMap;if(!n[t]){var r=new i(t,e);return r.hostGraph=this,this.nodes.push(r),n[t]=r,r}},s.getNodeByIndex=function(t){var e=this.data.getRawIndex(t);return this.nodes[e]},s.getNodeById=function(t){return this._nodesMap[t]},s.addEdge=function(t,e,n){var o=this._nodesMap,a=this._edgesMap;if("number"==typeof t&&(t=this.nodes[t]),"number"==typeof e&&(e=this.nodes[e]),t instanceof i||(t=o[t]),e instanceof i||(e=o[e]),t&&e){var s=t.id+"-"+e.id;if(!a[s]){var l=new r(t,e,n);return l.hostGraph=this,this._directed&&(t.outEdges.push(l),e.inEdges.push(l)),t.edges.push(l),t!==e&&e.edges.push(l),this.edges.push(l),a[s]=l,l}}},s.getEdgeByIndex=function(t){var e=this.edgeData.getRawIndex(t);return this.edges[e]},s.getEdge=function(t,e){t instanceof i&&(t=t.id),e instanceof i&&(e=e.id);var n=this._edgesMap;return this._directed?n[t+"-"+e]:n[t+"-"+e]||n[e+"-"+t]},s.eachNode=function(t,e){for(var n=this.nodes,i=n.length,r=0;r=0&&t.call(e,n[r],r)},s.eachEdge=function(t,e){for(var n=this.edges,i=n.length,r=0;r=0&&n[r].node1.dataIndex>=0&&n[r].node2.dataIndex>=0&&t.call(e,n[r],r)},s.breadthFirstTraverse=function(t,e,n,r){if(e instanceof i||(e=this._nodesMap[e]),e){for(var o="out"===n?"outEdges":"in"===n?"inEdges":"edges",a=0;a=0&&n.node2.dataIndex>=0});for(var r=0,o=i.length;r=0&&this[t][e].setItemVisual(this.dataIndex,n,i)},getVisual:function(n,i){return this[t][e].getItemVisual(this.dataIndex,n,i)},setLayout:function(n,i){this.dataIndex>=0&&this[t][e].setItemLayout(this.dataIndex,n,i)},getLayout:function(){return this[t][e].getItemLayout(this.dataIndex)},getGraphicEl:function(){return this[t][e].getItemGraphicEl(this.dataIndex)},getRawIndex:function(){return this[t][e].getRawIndex(this.dataIndex)}}};o.mixin(i,l("hostGraph","data")),o.mixin(r,l("hostGraph","edgeData")),a.Node=i,a.Edge=r,t.exports=a},function(t,e,n){function i(t,e){this.root,this.data,this._nodes=[],this.hostModel=t,this.levelModels=o.map(e||[],function(e){return new a(e,t,t.ecModel)})}function r(t,e){var n=e.children;t.parentNode!==e&&(n.push(t),t.parentNode=e)}var o=n(1),a=n(11),s=n(10),l=n(110),u=n(17),c=function(t,e){this.name=t||"",this.depth=0,this.height=0,this.parentNode=null,this.dataIndex=-1,this.children=[],this.viewChildren=[],this.hostTree=e};c.prototype={constructor:c,isRemoved:function(){return this.dataIndex<0},eachNode:function(t,e,n){"function"==typeof t&&(n=e,e=t,t=null),t=t||{},o.isString(t)&&(t={order:t});var i,r=t.order||"preorder",a=this[t.attr||"children"];"preorder"===r&&(i=e.call(n,this));for(var s=0;!i&&se&&(e=i.height)}this.height=e+1},getNodeById:function(t){if(this.getId()===t)return this;for(var e=0,n=this.children,i=n.length;e=0&&this.hostTree.data.setItemLayout(this.dataIndex,t,e)},getLayout:function(){return this.hostTree.data.getItemLayout(this.dataIndex)},getModel:function(t){if(!(this.dataIndex<0)){var e=this.hostTree,n=e.data.getItemModel(this.dataIndex),i=this.getLevelModel();return n.getModel(t,(i||e.hostModel).getModel(t))}},getLevelModel:function(){return(this.hostTree.levelModels||[])[this.depth]},setVisual:function(t,e){this.dataIndex>=0&&this.hostTree.data.setItemVisual(this.dataIndex,t,e)},getVisual:function(t,e){return this.hostTree.data.getItemVisual(this.dataIndex,t,e)},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(t,e,n){this.root.eachNode(t,e,n)},getNodeByDataIndex:function(t){var e=this.data.getRawIndex(t);return this._nodes[e]},getNodeByName:function(t){return this.root.getNodeByName(t)},update:function(){for(var t=this.data,e=this._nodes,n=0,i=e.length;n=0;i--)h.isIdInner(e[i])&&e.splice(i,1);t[n]=e}}),delete t[b],t},getTheme:function(){return this._theme},getComponent:function(t,e){var n=this._componentsMap[t];if(n)return n[e||0]},queryComponents:function(t){var e=t.mainType;if(!e)return[];var n=t.index,i=t.id,r=t.name,o=this._componentsMap[e];if(!o||!o.length)return[];var a;if(null!=n)v(n)||(n=[n]),a=p(g(n,function(t){return o[t]}),function(t){return!!t});else if(null!=i){var s=v(i);a=p(o,function(t){return s&&m(i,t.id)>=0||!s&&t.id===i})}else if(null!=r){var u=v(r);a=p(o,function(t){return u&&m(r,t.name)>=0||!u&&t.name===r})}else a=o;return l(a,t)},findComponents:function(t){function e(t){var e=r+"Index",n=r+"Id",i=r+"Name";return!t||null==t[e]&&null==t[n]&&null==t[i]?null:{mainType:r,index:t[e],id:t[n],name:t[i]}}function n(e){return t.filter?p(e,t.filter):e}var i=t.query,r=t.mainType,o=e(i);return n(l(o?this.queryComponents(o):this._componentsMap[r],t))},eachComponent:function(t,e,n){var i=this._componentsMap;if("function"==typeof t)n=e,e=t,d(i,function(t,i){d(t,function(t,r){e.call(n,i,t,r)})});else if(c.isString(t))d(i[t],e,n);else if(y(t)){var r=this.findComponents(t);d(r,e,n)}},getSeriesByName:function(t){return p(this._componentsMap.series,function(e){return e.name===t})},getSeriesByIndex:function(t){return this._componentsMap.series[t]},getSeriesByType:function(t){return p(this._componentsMap.series,function(e){return e.subType===t})},getSeries:function(){return this._componentsMap.series.slice()},eachSeries:function(t,e){u(this),d(this._seriesIndices,function(n){var i=this._componentsMap.series[n];t.call(e,i,n)},this)},eachRawSeries:function(t,e){d(this._componentsMap.series,t,e)},eachSeriesByType:function(t,e,n){u(this),d(this._seriesIndices,function(i){var r=this._componentsMap.series[i];r.subType===t&&e.call(n,r,i)},this)},eachRawSeriesByType:function(t,e,n){return d(this.getSeriesByType(t),e,n)},isSeriesFiltered:function(t){return u(this),c.indexOf(this._seriesIndices,t.componentIndex)<0},filterSeries:function(t,e){u(this);var n=p(this._componentsMap.series,t,e);this._seriesIndices=s(n)},restoreData:function(){var t=this._componentsMap;this._seriesIndices=s(t.series);var e=[];d(t,function(t,n){e.push(n)}),x.topologicalTravel(e,x.getAllClassMainTypes(),function(e,n){d(t[e],function(t){t.restoreData()})})}});c.mixin(w,n(112)),t.exports=w},function(t,e,n){function i(t){this._api=t,this._timelineOptions=[],this._mediaList=[],this._mediaDefault,this._currentMediaIndices=[],this._optionBackup,this._newBaseOption}function r(t,e,n){var i,r,o=[],a=[],s=t.timeline;return t.baseOption&&(r=t.baseOption),(s||t.options)&&(r=r||{},o=(t.options||[]).slice()),t.media&&(r=r||{},f(t.media,function(t){t&&t.option&&(t.query?a.push(t):i||(i=t))})),r||(r=t),r.timeline||(r.timeline=s),f([r].concat(o).concat(u.map(a,function(t){return t.option})),function(t){f(e,function(e){e(t,n)})}),{baseOption:r,timelineOptions:o,mediaDefault:i,mediaList:a}}function o(t,e,n){var i={width:e,height:n,aspectratio:e/n},r=!0;return u.each(t,function(t,e){var n=e.match(v);if(n&&n[1]&&n[2]){var o=n[1];a(i[n[2].toLowerCase()],t,o)||(r=!1)}}),r}function a(t,e,n){return"min"===n?t>=e:"max"===n?t<=e:t===e}function s(t,e){return t.join(",")===e.join(",")}function l(t,e){e=e||{},f(e,function(e,n){if(null!=e){var i=t[n];if(h.hasClass(n)){e=c.normalizeToArray(e),i=c.normalizeToArray(i);var r=c.mappingToExists(i,e);t[n]=p(r,function(t){return t.option&&t.exist?g(t.exist,t.option,!0):t.exist||t.option})}else t[n]=g(i,e,!0)}})}var u=n(1),c=n(7),h=n(12),f=u.each,d=u.clone,p=u.map,g=u.merge,v=/^(min|max)?(.+)$/;i.prototype={constructor:i,setOption:function(t,e){t=d(t,!0);var n=this._optionBackup,i=r.call(this,t,e,!n);this._newBaseOption=i.baseOption,n?(l(n.baseOption,i.baseOption),i.timelineOptions.length&&(n.timelineOptions=i.timelineOptions),i.mediaList.length&&(n.mediaList=i.mediaList),i.mediaDefault&&(n.mediaDefault=i.mediaDefault)):this._optionBackup=i},mountOption:function(t){var e=this._optionBackup;return this._timelineOptions=p(e.timelineOptions,d),this._mediaList=p(e.mediaList,d),this._mediaDefault=d(e.mediaDefault),this._currentMediaIndices=[],d(t?e.baseOption:this._newBaseOption)},getTimelineOption:function(t){var e,n=this._timelineOptions;if(n.length){var i=t.getComponent("timeline");i&&(e=d(n[i.getCurrentIndex()],!0))}return e},getMediaOption:function(t){var e=this._api.getWidth(),n=this._api.getHeight(),i=this._mediaList,r=this._mediaDefault,a=[],l=[];if(!i.length&&!r)return l;for(var u=0,c=i.length;ue&&(e=t[n]);return e},min:function(t){for(var e=1/0,n=0;n1){var h;"string"==typeof r?h=n[r]:"function"==typeof r&&(h=r),h&&(e=e.downSample(s.dim,1/c,h,i),t.setData(e))}}},this)}},function(t,e,n){function i(t,e){return h(t,c(e))}var r=n(1),o=n(49),a=n(4),s=n(48),l=o.prototype,u=s.prototype,c=a.getPrecisionSafe,h=a.round,f=Math.floor,d=Math.ceil,p=Math.pow,g=Math.log,v=o.extend({type:"log",base:10,$constructor:function(){o.apply(this,arguments),this._originalScale=new s},getTicks:function(){var t=this._originalScale,e=this._extent,n=t.getExtent();return r.map(u.getTicks.call(this),function(r){var o=a.round(p(this.base,r));return o=r===e[0]&&t.__fixMin?i(o,n[0]):o,o=r===e[1]&&t.__fixMax?i(o,n[1]):o},this)},getLabel:u.getLabel,scale:function(t){return t=l.scale.call(this,t),p(this.base,t)},setExtent:function(t,e){var n=this.base;t=g(t)/g(n),e=g(e)/g(n),u.setExtent.call(this,t,e)},getExtent:function(){var t=this.base,e=l.getExtent.call(this);e[0]=p(t,e[0]),e[1]=p(t,e[1]);var n=this._originalScale,r=n.getExtent();return n.__fixMin&&(e[0]=i(e[0],r[0])),n.__fixMax&&(e[1]=i(e[1],r[1])),e},unionExtent:function(t){this._originalScale.unionExtent(t);var e=this.base;t[0]=g(t[0])/g(e),t[1]=g(t[1])/g(e),l.unionExtent.call(this,t)},unionExtentFromData:function(t,e){this.unionExtent(t.getDataExtent(e,!0,function(t){return t>0}))},niceTicks:function(t){t=t||10;var e=this._extent,n=e[1]-e[0];if(!(n===1/0||n<=0)){var i=a.quantity(n),r=t/n*i;for(r<=.5&&(i*=10);!isNaN(i)&&Math.abs(i)<1&&Math.abs(i)>0;)i*=10;var o=[a.round(d(e[0]/i)*i),a.round(f(e[1]/i)*i)];this._interval=i,this._niceExtent=o}},niceExtent:function(t,e,n){u.niceExtent.call(this,t,e,n);var i=this._originalScale;i.__fixMin=e,i.__fixMax=n}});r.each(["contain","normalize"],function(t){v.prototype[t]=function(e){return e=g(e)/g(this.base),l[t].call(this,e)}}),v.create=function(){return new v},t.exports=v},function(t,e,n){var i=n(1),r=n(49),o=r.prototype,a=r.extend({type:"ordinal",init:function(t,e){this._data=t,this._extent=e||[0,t.length-1]},parse:function(t){return"string"==typeof t?i.indexOf(this._data,t):Math.round(t)},contain:function(t){return t=this.parse(t),o.contain.call(this,t)&&null!=this._data[t]},normalize:function(t){return o.normalize.call(this,this.parse(t))},scale:function(t){return Math.round(o.scale.call(this,t))},getTicks:function(){for(var t=[],e=this._extent,n=e[0];n<=e[1];)t.push(n),n++;return t},getLabel:function(t){return this._data[t]},count:function(){return this._extent[1]-this._extent[0]+1},unionExtentFromData:function(t,e){this.unionExtent(t.getDataExtent(e,!1))},niceTicks:i.noop,niceExtent:i.noop});a.create=function(){return new a},t.exports=a},function(t,e,n){var i=n(1),r=n(4),o=n(6),a=n(48),s=a.prototype,l=Math.ceil,u=Math.floor,c=1e3,h=6e4,f=36e5,d=864e5,p=function(t,e,n,i){for(;n>>1;t[r][2] div::-webkit-scrollbar { display: none; }\n\n",o+="."+r+" { -webkit-animation-duration: 0.1s; animation-duration: 0.1s; -webkit-animation-name: "+i+"; animation-name: "+i+"; }\n",o+="@-webkit-keyframes "+i+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }\n",o+="@keyframes "+i+" { 0% { opacity: 1; } 50% { opacity: 0; } 100% { opacity: 1; } }",n(o)}}function r(t){t.className+=" "+m+"_animation_active"}function o(t,e,n){if(t.addEventListener)t.addEventListener(e,n);else{if(!t.attachEvent)return f.error("[scroll] Don't know how to add event listeners.");t.attachEvent("on"+e,n)}}function a(t,e,n){if(t.removeEventListener)t.removeEventListener(e,n);else{if(!t.detachEvent)return f.error("[scroll] Don't know how to remove event listeners.");t.detachEvent("on"+e,n)}}function s(t){return p(t).container.childNodes[0].childNodes[0].childNodes[0]}function l(t){return p(t).container.childNodes[0].childNodes[0].childNodes[1]}function u(t,e){if(!p(t).listeners.push)throw new Error("Cannot add listener to an element that is not detectable.");p(t).listeners.push(e)}function c(t,e,n){function a(){if(t.debug){var n=Array.prototype.slice.call(arguments);if(n.unshift(g.get(e),"Scroll: "),f.log.apply)f.log.apply(null,n);else for(var i=0;i=0;r--)if(!i[r].silent&&i[r]!==n&&!i[r].ignore&&o(i[r],t,e))return i[r]}},a.each(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(t){c.prototype[t]=function(e){var n=this.findHover(e.zrX,e.zrY,null);if("mousedown"===t)this._downel=n,this._upel=n;else if("mosueup"===t)this._upel=n;else if("click"===t&&this._downel!==this._upel)return;this.dispatchToElement(n,t,e)}}),a.mixin(c,l),a.mixin(c,s),t.exports=c},function(t,e,n){function i(){return!1}function r(t,e,n,i){var r=document.createElement(e),o=n.getWidth(),a=n.getHeight(),s=r.style;return s.position="absolute",s.left=0,s.top=0,s.width=o+"px",s.height=a+"px",r.width=o*i,r.height=a*i,r.setAttribute("data-zr-dom-id",t),r}var o=n(1),a=n(52),s=n(129),l=n(128),u=function(t,e,n){var s;n=n||a.devicePixelRatio,"string"==typeof t?s=r(t,"canvas",e,n):o.isObject(t)&&(s=t,t=s.id),this.id=t,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)",l.padding=0,l.margin=0,l["border-width"]=0),this.domBack=null,this.ctxBack=null,this.painter=e,this.config=null,this.clearColor=0,this.motionBlur=!1,this.lastFrameAlpha=.7,this.dpr=n};u.prototype={constructor:u,elCount:0,__dirty:!0,initContext:function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},createBackBuffer:function(){var t=this.dpr;this.domBack=r("back-"+this.id,"canvas",this.painter,t),this.ctxBack=this.domBack.getContext("2d"),1!=t&&this.ctxBack.scale(t,t)},resize:function(t,e){var n=this.dpr,i=this.dom,r=i.style,o=this.domBack;r.width=t+"px",r.height=e+"px",i.width=t*n,i.height=e*n,o&&(o.width=t*n,o.height=e*n,1!=n&&this.ctxBack.scale(n,n))},clear:function(t){var e=this.dom,n=this.ctx,i=e.width,r=e.height,o=this.clearColor,a=this.motionBlur&&!t,u=this.lastFrameAlpha,c=this.dpr;if(a&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(e,0,0,i/c,r/c)),n.clearRect(0,0,i,r),o){var h;o.colorStops?(h=o.__canvasGradient||s.getGradient(n,o,{x:0,y:0,width:i,height:r}),o.__canvasGradient=h):o.image&&(h=l.prototype.getCanvasPattern.call(o,n)),n.save(),n.fillStyle=h||o,n.fillRect(0,0,i,r),n.restore()}if(a){var f=this.domBack;n.save(),n.globalAlpha=u,n.drawImage(f,0,0,i,r),n.restore()}}},t.exports=u},function(t,e,n){"use strict";function i(t){return parseInt(t,10)}function r(t){return!!t&&(!!t.isBuildin||"function"==typeof t.resize&&"function"==typeof t.refresh)}function o(t){t.__unusedCount++}function a(t){1==t.__unusedCount&&t.clear()}function s(t,e,n){return x.copy(t.getBoundingRect()),t.transform&&x.applyTransform(t.transform),_.width=e,_.height=n,!x.intersect(_)}function l(t,e){if(t==e)return!1;if(!t||!e||t.length!==e.length)return!0;for(var n=0;n=0&&n.splice(i,1),t.__hoverMir=null},clearHover:function(t){for(var e=this._hoverElements,n=0;n=0){if(!s){if(s=this._progressiveLayers[Math.min(u++,4)],s.ctx.save(),s.renderScope={},s&&s.__progress>s.__maxProgress){g=s.__nextIdxNotProg-1;continue}l=s.__progress,s.__dirty||(p=l),s.__progress=p+1}x===p&&this._doPaintEl(m,s,!0,s.renderScope)}else this._doPaintEl(m,i,e,a);m.__dirty=!1}}s&&n(s),o&&o.restore(),this._furtherProgressive=!1,f.each(this._progressiveLayers,function(t){t.__maxProgress>=t.__progress&&(this._furtherProgressive=!0)},this)},_doPaintEl:function(t,e,n,i){var r=e.ctx,o=t.transform;if((e.__dirty||n)&&!t.invisible&&0!==t.style.opacity&&(!o||o[0]||o[3])&&(!t.culling||!s(t,this._width,this._height))){var a=t.__clipPaths;(i.prevClipLayer!==e||l(a,i.prevElClipPaths))&&(i.prevElClipPaths&&(i.prevClipLayer.ctx.restore(),i.prevClipLayer=i.prevElClipPaths=null,i.prevEl=null),a&&(r.save(),u(a,r),i.prevClipLayer=e,i.prevElClipPaths=a)),t.beforeBrush&&t.beforeBrush(r),t.brush(r,i.prevEl||null),i.prevEl=t,t.afterBrush&&t.afterBrush(r)}},getLayer:function(t){if(this._singleCanvas)return this._layers[0];var e=this._layers[t];return e||(e=new v("zr_"+t,this,this.dpr),e.isBuildin=!0,this._layerConfig[t]&&f.merge(e,this._layerConfig[t],!0),this.insertLayer(t,e),e.initContext()),e},insertLayer:function(t,e){var n=this._layers,i=this._zlevelList,o=i.length,a=null,s=-1,l=this._domRoot;if(n[t])return void d("ZLevel "+t+" has been used already");if(!r(e))return void d("Layer of zlevel "+t+" is not valid");if(o>0&&t>i[0]){for(s=0;st);s++);a=n[i[s]]}if(i.splice(s+1,0,t),a){var u=a.dom;u.nextSibling?l.insertBefore(e.dom,u.nextSibling):l.appendChild(e.dom)}else l.firstChild?l.insertBefore(e.dom,l.firstChild):l.appendChild(e.dom);n[t]=e},eachLayer:function(t,e){var n,i,r=this._zlevelList;for(i=0;i=0){a!==g&&(a=g,l++);var m=h.__frame=l-1;if(!o){var x=Math.min(s,4);o=n[x],o||(o=n[x]=new v("progressive",this,this.dpr),o.initContext()),o.__maxProgress=0}o.__dirty=o.__dirty||h.__dirty,o.elCount++,o.__maxProgress=Math.max(o.__maxProgress,m),o.__maxProgress>=o.__progress&&(p.__dirty=!0)}else h.__frame=-1,o&&(o.__nextIdxNotProg=u,s++,o=null)}o&&(s++,o.__nextIdxNotProg=u),this.eachBuildinLayer(function(t,e){i[e]!==t.elCount&&(t.__dirty=!0)}),n.length=Math.min(s,y),f.each(n,function(t,e){r[e]!==t.elCount&&(h.__dirty=!0),t.__dirty&&(t.__progress=0)})},clear:function(){return this.eachBuildinLayer(this._clearLayer),this},_clearLayer:function(t){t.clear()},configLayer:function(t,e){if(e){var n=this._layerConfig;n[t]?f.merge(n[t],e,!0):n[t]=e;var i=this._layers[t];i&&f.merge(i,n[t],!0)}},delLayer:function(t){var e=this._layers,n=this._zlevelList,i=e[t];i&&(i.dom.parentNode.removeChild(i.dom),delete e[t],n.splice(f.indexOf(n,t),1))},resize:function(t,e){var n=this._domRoot;n.style.display="none";var i=this._opts;if(null!=t&&(i.width=t),null!=e&&(i.height=e),t=this._getSize(0),e=this._getSize(1),n.style.display="",this._width!=t||e!=this._height){n.style.width=t+"px",n.style.height=e+"px";for(var r in this._layers)this._layers.hasOwnProperty(r)&&this._layers[r].resize(t,e);f.each(this._progressiveLayers,function(n){n.resize(t,e)}),this.refresh(!0)}return this._width=t,this._height=e,this},clearLayer:function(t){var e=this._layers[t];e&&e.clear()},dispose:function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},getRenderedCanvas:function(t){if(t=t||{},this._singleCanvas)return this._layers[0].dom;var e=new v("image",this,t.pixelRatio||this.dpr);e.initContext(),e.clearColor=t.backgroundColor,e.clear();for(var n=this.storage.getDisplayList(!0),i={},r=0;r=0&&(this.delFromMap(o.id),this._roots.splice(s,1),o instanceof a&&o.delChildrenFromStorage(this)); }},addToMap:function(t){return t instanceof a&&(t.__storage=this),t.dirty(!1),this._elements[t.id]=t,this},get:function(t){return this._elements[t]},delFromMap:function(t){var e=this._elements,n=e[t];return n&&(delete e[t],n instanceof a&&(n.__storage=null)),this},dispose:function(){this._elements=this._renderList=this._roots=null},displayableSortFunc:i},t.exports=l},function(t,e,n){"use strict";var i=n(1),r=n(33).Dispatcher,o=n(120),a=n(119),s=function(t){t=t||{},this.stage=t.stage||{},this.onframe=t.onframe||function(){},this._clips=[],this._running=!1,this._time,this._pausedTime,this._pauseStart,this._paused=!1,r.call(this)};s.prototype={constructor:s,addClip:function(t){this._clips.push(t)},addAnimator:function(t){t.animation=this;for(var e=t.getClips(),n=0;n=0&&this._clips.splice(e,1)},removeAnimator:function(t){for(var e=t.getClips(),n=0;nn||f+ha&&(a+=r);var p=Math.atan2(c,u);return p<0&&(p+=r),p>=o&&p<=a||p+r>=o&&p+r<=a}}},function(t,e,n){var i=n(26);t.exports={containStroke:function(t,e,n,r,o,a,s,l,u,c,h){if(0===u)return!1;var f=u;return!(h>e+f&&h>r+f&&h>a+f&&h>l+f||ht+f&&c>n+f&&c>o+f&&c>s+f||ce&&c>i&&c>a&&c>l||c1&&r(),f=g.cubicAt(e,i,a,l,b[0]),v>1&&(d=g.cubicAt(e,i,a,l,b[1]))),p+=2==v?ye&&s>i&&s>o||s=0&&u<=1){for(var c=0,h=g.quadraticAt(e,i,o,u),f=0;fn||s<-n)return 0;var l=Math.sqrt(n*n-s*s);_[0]=-l,_[1]=l;var u=Math.abs(i-r);if(u<1e-4)return 0;if(u%y<1e-4){i=0,r=y;var c=o?1:-1;return a>=_[0]+t&&a<=_[1]+t?c:0}if(o){var l=i;i=p(r),r=p(l)}else i=p(i),r=p(r);i>r&&(r+=y);for(var h=0,f=0;f<2;f++){var d=_[f];if(d+t>a){var g=Math.atan2(s,d),c=o?1:-1;g<0&&(g=y+g),(g>=i&&g<=r||g+y>=i&&g+y<=r)&&(g>Math.PI/2&&g<1.5*Math.PI&&(c=-c),h+=c)}}return h}function l(t,e,n,r,l){for(var c=0,p=0,g=0,y=0,x=0,_=0;_1&&(n||(c+=v(p,g,y,x,r,l))),1==_&&(p=t[_],g=t[_+1],y=p,x=g),b){case u.M:y=t[_++],x=t[_++],p=y,g=x;break;case u.L:if(n){if(m(p,g,t[_],t[_+1],e,r,l))return!0}else c+=v(p,g,t[_],t[_+1],r,l)||0;p=t[_++],g=t[_++];break;case u.C:if(n){if(h.containStroke(p,g,t[_++],t[_++],t[_++],t[_++],t[_],t[_+1],e,r,l))return!0}else c+=o(p,g,t[_++],t[_++],t[_++],t[_++],t[_],t[_+1],r,l)||0;p=t[_++],g=t[_++];break;case u.Q:if(n){if(f.containStroke(p,g,t[_++],t[_++],t[_],t[_+1],e,r,l))return!0}else c+=a(p,g,t[_++],t[_++],t[_],t[_+1],r,l)||0;p=t[_++],g=t[_++];break;case u.A:var w=t[_++],S=t[_++],M=t[_++],A=t[_++],T=t[_++],I=t[_++],C=(t[_++],1-t[_++]),L=Math.cos(T)*M+w,D=Math.sin(T)*A+S;_>1?c+=v(p,g,L,D,r,l):(y=L,x=D);var k=(r-w)*A/M+w;if(n){if(d.containStroke(w,S,A,T,T+I,C,e,k,l))return!0}else c+=s(w,S,A,T,T+I,C,k,l);p=Math.cos(T+I)*M+w,g=Math.sin(T+I)*A+S;break;case u.R:y=p=t[_++],x=g=t[_++];var P=t[_++],E=t[_++],L=y+P,D=x+E;if(n){if(m(y,x,L,x,e,r,l)||m(L,x,L,D,e,r,l)||m(L,D,y,D,e,r,l)||m(y,D,y,x,e,r,l))return!0}else c+=v(L,x,L,D,r,l),c+=v(y,D,y,x,r,l);break;case u.Z:if(n){if(m(p,g,y,x,e,r,l))return!0}else c+=v(p,g,y,x,r,l);p=y,g=x}}return n||i(g,x)||(c+=v(p,g,y,x,r,l)||0),0!==c}var u=n(42).CMD,c=n(121),h=n(388),f=n(123),d=n(387),p=n(124).normalizeRadian,g=n(26),v=n(125),m=c.containStroke,y=2*Math.PI,x=1e-4,_=[-1,-1,-1],b=[-1,-1];t.exports={contain:function(t,e,n){return l(t,0,!1,e,n)},containStroke:function(t,e,n,i){return l(t,e,!0,n,i)}}},function(t,e,n){"use strict";function i(t){var e=t[1][0]-t[0][0],n=t[1][1]-t[0][1];return Math.sqrt(e*e+n*n)}function r(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}var o=n(33),a=function(){this._track=[]};a.prototype={constructor:a,recognize:function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},clear:function(){return this._track.length=0,this},_doTrack:function(t,e,n){var i=t.touches;if(i){for(var r={points:[],touches:[],target:e,event:t},a=0,s=i.length;a1&&o&&o.length>1){var s=i(o)/i(a);!isFinite(s)&&(s=1),e.pinchScale=s;var l=r(o);return e.pinchX=l[0],e.pinchY=l[1],{type:"pinch",target:t[0].target,event:e}}}}};t.exports=a},function(t,e){var n=function(){this.head=null,this.tail=null,this._len=0},i=n.prototype;i.insert=function(t){var e=new r(t);return this.insertEntry(e),e},i.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,this.tail=t):this.head=this.tail=t,this._len++},i.remove=function(t){var e=t.prev,n=t.next;e?e.next=n:this.head=n,n?n.prev=e:this.tail=e,t.next=t.prev=null,this._len--},i.len=function(){return this._len};var r=function(t){this.value=t,this.next,this.prev},o=function(t){this._list=new n,this._map={},this._maxSize=t||10},a=o.prototype;a.put=function(t,e){var n=this._list,i=this._map;if(null==i[t]){var r=n.len();if(r>=this._maxSize&&r>0){var o=n.head;n.remove(o),delete i[o.key]}var a=n.insert(e);a.key=t,i[t]=a}},a.get=function(t){var e=this._map[t],n=this._list;if(null!=e)return e!==n.tail&&(n.remove(e),n.insertEntry(e)),e.value},a.clear=function(){this._list.clear(),this._map={}},t.exports=o},function(t,e,n){function i(t){return"mousewheel"===t&&f.browser.firefox?"DOMMouseScroll":t}function r(t,e,n){var i=t._gestureMgr;"start"===n&&i.clear();var r=i.recognize(e,t.handler.findHover(e.zrX,e.zrY,null),t.dom);if("end"===n&&i.clear(),r){var o=r.type;e.gestureEvent=o,t.handler.dispatchToElement(r.target,o,r.event)}}function o(t){t._touching=!0,clearTimeout(t._touchTimer),t._touchTimer=setTimeout(function(){t._touching=!1},700)}function a(t){var e=t.pointerType;return"pen"===e||"touch"===e}function s(t){function e(t,e){return function(){if(!e._touching)return t.apply(e,arguments)}}c.each(x,function(e){t._handlers[e]=c.bind(w[e],t)}),c.each(b,function(e){t._handlers[e]=c.bind(w[e],t)}),c.each(y,function(n){t._handlers[n]=e(w[n],t)})}function l(t){function e(e,n){c.each(e,function(e){p(t,i(e),n._handlers[e])},n)}h.call(this),this.dom=t,this._touching=!1,this._touchTimer,this._gestureMgr=new d,this._handlers={},s(this),f.pointerEventsSupported?e(b,this):(f.touchEventsSupported&&e(x,this),e(y,this))}var u=n(33),c=n(1),h=n(29),f=n(14),d=n(390),p=u.addEventListener,g=u.removeEventListener,v=u.normalizeEvent,m=300,y=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],x=["touchstart","touchend","touchmove"],_={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},b=c.map(y,function(t){var e=t.replace("mouse","pointer");return _[e]?e:t}),w={mousemove:function(t){t=v(this.dom,t),this.trigger("mousemove",t)},mouseout:function(t){t=v(this.dom,t);var e=t.toElement||t.relatedTarget;if(e!=this.dom)for(;e&&9!=e.nodeType;){if(e===this.dom)return;e=e.parentNode}this.trigger("mouseout",t)},touchstart:function(t){t=v(this.dom,t),t.zrByTouch=!0,this._lastTouchMoment=new Date,r(this,t,"start"),w.mousemove.call(this,t),w.mousedown.call(this,t),o(this)},touchmove:function(t){t=v(this.dom,t),t.zrByTouch=!0,r(this,t,"change"),w.mousemove.call(this,t),o(this)},touchend:function(t){t=v(this.dom,t),t.zrByTouch=!0,r(this,t,"end"),w.mouseup.call(this,t),+new Date-this._lastTouchMomentl&&(h=n+i,n*=l/h,i*=l/h),r+o>l&&(h=r+o,r*=l/h,o*=l/h),i+r>u&&(h=i+r,i*=u/h,r*=u/h),n+o>u&&(h=n+o,n*=u/h,o*=u/h),t.moveTo(a+n,s),t.lineTo(a+l-i,s),0!==i&&t.quadraticCurveTo(a+l,s,a+l,s+i),t.lineTo(a+l,s+u-r),0!==r&&t.quadraticCurveTo(a+l,s+u,a+l-r,s+u),t.lineTo(a+o,s+u),0!==o&&t.quadraticCurveTo(a,s+u,a,s+u-o),t.lineTo(a,s+n),0!==n&&t.quadraticCurveTo(a,s,a+n,s)}}},function(t,e,n){var i=n(5),r=i.min,o=i.max,a=i.scale,s=i.distance,l=i.add;t.exports=function(t,e,n,u){var c,h,f,d,p=[],g=[],v=[],m=[];if(u){f=[1/0,1/0],d=[-(1/0),-(1/0)];for(var y=0,x=t.length;yn-2?n-1:d+1],h=t[d>n-3?n-1:d+2]);var v=p*p,m=p*v;o.push([i(u[0],g[0],c[0],h[0],p,v,m),i(u[1],g[1],c[1],h[1],p,v,m)])}return o}},function(t,e,n){t.exports=n(15).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(t,e){var n=e.cx,i=e.cy,r=Math.max(e.r,0),o=e.startAngle,a=e.endAngle,s=e.clockwise,l=Math.cos(o),u=Math.sin(o);t.moveTo(l*r+n,u*r+i),t.arc(n,i,r,o,a,!s)}})},function(t,e,n){"use strict";function i(t,e,n){var i=t.cpx2,r=t.cpy2;return null===i||null===r?[(n?h:u)(t.x1,t.cpx1,t.cpx2,t.x2,e),(n?h:u)(t.y1,t.cpy1,t.cpy2,t.y2,e)]:[(n?c:l)(t.x1,t.cpx1,t.x2,e),(n?c:l)(t.y1,t.cpy1,t.y2,e)]}var r=n(26),o=n(5),a=r.quadraticSubdivide,s=r.cubicSubdivide,l=r.quadraticAt,u=r.cubicAt,c=r.quadraticDerivativeAt,h=r.cubicDerivativeAt,f=[];t.exports=n(15).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(t,e){var n=e.x1,i=e.y1,r=e.x2,o=e.y2,l=e.cpx1,u=e.cpy1,c=e.cpx2,h=e.cpy2,d=e.percent;0!==d&&(t.moveTo(n,i),null==c||null==h?(d<1&&(a(n,l,r,d,f),l=f[1],r=f[2],a(i,u,o,d,f),u=f[1],o=f[2]),t.quadraticCurveTo(l,u,r,o)):(d<1&&(s(n,l,c,r,d,f),l=f[1],c=f[2],r=f[3],s(i,u,h,o,d,f),u=f[1],h=f[2],o=f[3]),t.bezierCurveTo(l,u,c,h,r,o)))},pointAt:function(t){return i(this.shape,t,!1)},tangentAt:function(t){var e=i(this.shape,t,!0);return o.normalize(e,e)}})},function(t,e,n){"use strict";t.exports=n(15).extend({type:"circle",shape:{cx:0,cy:0,r:0},buildPath:function(t,e,n){n&&t.moveTo(e.cx+e.r,e.cy),t.arc(e.cx,e.cy,e.r,0,2*Math.PI,!0)}})},function(t,e,n){t.exports=n(15).extend({type:"line",shape:{x1:0,y1:0,x2:0,y2:0,percent:1},style:{stroke:"#000",fill:null},buildPath:function(t,e){var n=e.x1,i=e.y1,r=e.x2,o=e.y2,a=e.percent;0!==a&&(t.moveTo(n,i),a<1&&(r=n*(1-a)+r*a,o=i*(1-a)+o*a),t.lineTo(r,o))},pointAt:function(t){var e=this.shape;return[e.x1*(1-t)+e.x2*t,e.y1*(1-t)+e.y2*t]}})},function(t,e,n){var i=n(131);t.exports=n(15).extend({type:"polygon",shape:{points:null,smooth:!1,smoothConstraint:null},buildPath:function(t,e){i.buildPath(t,e,!0)}})},function(t,e,n){var i=n(131);t.exports=n(15).extend({type:"polyline",shape:{points:null,smooth:!1,smoothConstraint:null},style:{stroke:"#000",fill:null},buildPath:function(t,e){i.buildPath(t,e,!1)}})},function(t,e,n){var i=n(395);t.exports=n(15).extend({type:"rect",shape:{r:0,x:0,y:0,width:0,height:0},buildPath:function(t,e){var n=e.x,r=e.y,o=e.width,a=e.height;e.r?i.buildPath(t,e):t.rect(n,r,o,a),t.closePath()}})},function(t,e,n){t.exports=n(15).extend({type:"ring",shape:{cx:0,cy:0,r:0,r0:0},buildPath:function(t,e){var n=e.cx,i=e.cy,r=2*Math.PI;t.moveTo(n+e.r,i),t.arc(n,i,e.r,0,r,!1),t.moveTo(n+e.r0,i),t.arc(n,i,e.r0,0,r,!0)}})},function(t,e,n){var i=n(14),r=n(15),o=[["shadowBlur",0],["shadowColor","#000"],["shadowOffsetX",0],["shadowOffsetY",0]];t.exports=r.extend({type:"sector",shape:{cx:0,cy:0,r0:0,r:0,startAngle:0,endAngle:2*Math.PI,clockwise:!0},brush:i.browser.ie&&i.browser.version>=11?function(){var t,e=this.__clipPaths,n=this.style;if(e)for(var i=0;i0&&this.animate(t,!1).when(null==i?500:i,a).delay(o||0),this}},t.exports=u},function(t,e){function n(){this.on("mousedown",this._dragStart,this),this.on("mousemove",this._drag,this),this.on("mouseup",this._dragEnd,this),this.on("globalout",this._dragEnd,this)}n.prototype={constructor:n,_dragStart:function(t){var e=t.target;e&&e.draggable&&(this._draggingTarget=e,e.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.dispatchToElement(e,"dragstart",t.event))},_drag:function(t){var e=this._draggingTarget;if(e){var n=t.offsetX,i=t.offsetY,r=n-this._x,o=i-this._y;this._x=n,this._y=i,e.drift(r,o,t),this.dispatchToElement(e,"drag",t.event);var a=this.findHover(n,i,e),s=this._dropTarget;this._dropTarget=a,e!==a&&(s&&a!==s&&this.dispatchToElement(s,"dragleave",t.event),a&&a!==s&&this.dispatchToElement(a,"dragenter",t.event))}},_dragEnd:function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.dispatchToElement(e,"dragend",t.event),this._dropTarget&&this.dispatchToElement(this._dropTarget,"drop",t.event),this._draggingTarget=null,this._dropTarget=null}},t.exports=n},function(t,e,n){function i(t,e,n,i,r,o,a,s,l,u,c){var g=l*(p/180),y=d(g)*(t-n)/2+f(g)*(e-i)/2,x=-1*f(g)*(t-n)/2+d(g)*(e-i)/2,_=y*y/(a*a)+x*x/(s*s);_>1&&(a*=h(_),s*=h(_));var b=(r===o?-1:1)*h((a*a*(s*s)-a*a*(x*x)-s*s*(y*y))/(a*a*(x*x)+s*s*(y*y)))||0,w=b*a*x/s,S=b*-s*y/a,M=(t+n)/2+d(g)*w-f(g)*S,A=(e+i)/2+f(g)*w+d(g)*S,T=m([1,0],[(y-w)/a,(x-S)/s]),I=[(y-w)/a,(x-S)/s],C=[(-1*y-w)/a,(-1*x-S)/s],L=m(I,C);v(I,C)<=-1&&(L=p),v(I,C)>=1&&(L=0),0===o&&L>0&&(L-=2*p),1===o&&L<0&&(L+=2*p),c.addData(u,M,A,a,s,T,L,g,o)}function r(t){if(!t)return[];var e,n=t.replace(/-/g," -").replace(/ /g," ").replace(/ /g,",").replace(/,,/g,",");for(e=0;e0&&""===v[0]&&v.shift();for(var m=0;m=0?parseFloat(t)/100*e:parseFloat(t):t},R=function(t,e,n){var i=a.parse(e);n=+n,isNaN(n)&&(n=1),i&&(t.color=D(i[0],i[1],i[2]),t.opacity=n*i[3])},N=function(t){var e=a.parse(t);return[D(e[0],e[1],e[2]),e[3]]},z=function(t,e,n){var i=e.fill;if(null!=i)if(i instanceof d){var r,o=0,a=[0,0],s=0,l=1,u=n.getBoundingRect(),c=u.width,h=u.height;if("linear"===i.type){r="gradient";var f=n.transform,p=[i.x*c,i.y*h],g=[i.x2*c,i.y2*h];f&&(b(p,p,f),b(g,g,f));var v=g[0]-p[0],m=g[1]-p[1];o=180*Math.atan2(v,m)/Math.PI,o<0&&(o+=360),o<1e-6&&(o=0)}else{r="gradientradial";var p=[i.x*c,i.y*h],f=n.transform,y=n.scale,x=c,w=h;a=[(p[0]-u.x)/x,(p[1]-u.y)/w],f&&b(p,p,f),x/=y[0]*M,w/=y[1]*M;var S=_(x,w);s=0/S,l=2*i.r/S-s}var A=i.colorStops.slice();A.sort(function(t,e){return t.offset-e.offset});for(var T=A.length,I=[],C=[],L=0;L=2){var P=I[0][0],E=I[1][0],O=I[0][1]*e.opacity,z=I[1][1]*e.opacity;t.type=r,t.method="none",t.focus="100%",t.angle=o,t.color=P,t.color2=E,t.colors=C.join(","),t.opacity=z,t.opacity2=O}"radial"===r&&(t.focusposition=a.join(","))}else R(t,i,e.opacity)},V=function(t,e){null!=e.lineDash&&(t.dashstyle=e.lineDash.join(" ")),null==e.stroke||e.stroke instanceof d||R(t,e.stroke,e.opacity)},B=function(t,e,n,i){var r="fill"==e,o=t.getElementsByTagName(e)[0];null!=n[e]&&"none"!==n[e]&&(r||!r&&n.lineWidth)?(t[r?"filled":"stroked"]="true",n[e]instanceof d&&P(t,o),o||(o=p.createNode(e)),r?z(o,n,i):V(o,n),k(t,o)):(t[r?"filled":"stroked"]="false",P(t,o))},F=[[],[],[]],G=function(t,e){var n,i,r,a,s,l,u=o.M,c=o.C,h=o.L,f=o.A,d=o.Q,p=[];for(a=0;a.01?G&&(H+=.0125):Math.abs(j-R)<1e-4?G&&HO?T-=.0125:T+=.0125:G&&jR?S+=.0125:S-=.0125),p.push(W,g(((O-N)*k+L)*M-A),w,g(((R-z)*P+D)*M-A),w,g(((O+N)*k+L)*M-A),w,g(((R+z)*P+D)*M-A),w,g((H*k+L)*M-A),w,g((j*P+D)*M-A),w,g((S*k+L)*M-A),w,g((T*P+D)*M-A)),s=S,l=T;break;case o.R:var $=F[0],U=F[1];$[0]=t[a++],$[1]=t[a++],U[0]=$[0]+t[a++],U[1]=$[1]+t[a++],e&&(b($,$,e),b(U,U,e)),$[0]=g($[0]*M-A),U[0]=g(U[0]*M-A),$[1]=g($[1]*M-A),U[1]=g(U[1]*M-A),p.push(" m ",$[0],w,$[1]," l ",U[0],w,$[1]," l ",U[0],w,U[1]," l ",$[0],w,U[1]); break;case o.Z:p.push(" x ")}if(n>0){p.push(i);for(var q=0;qq&&(U=0,$={});var n,i=Z.style;try{i.font=t,n=i.fontFamily.split(",")[0]}catch(t){}e={style:i.fontStyle||W,variant:i.fontVariant||W,weight:i.fontWeight||W,size:0|parseFloat(i.fontSize||12),family:n||"Microsoft YaHei"},$[t]=e,U++}return e};s.measureText=function(t,e){var n=p.doc;j||(j=n.createElement("div"),j.style.cssText="position:absolute;top:-20000px;left:0;padding:0;margin:0;border:none;white-space:pre;",p.doc.body.appendChild(j));try{j.style.font=e}catch(t){}return j.innerHTML="",j.appendChild(n.createTextNode(t)),{width:j.offsetWidth}};for(var Y=new r,J=function(t,e,n,i){var r=this.style,o=r.text;if(null!=o&&(o+=""),o){var a,l,u=r.textAlign,c=X(r.textFont),h=c.style+" "+c.variant+" "+c.weight+" "+c.size+'px "'+c.family+'"',f=r.textBaseline,d=r.textVerticalAlign;n=n||s.getBoundingRect(o,h,u,f);var v=this.transform;if(v&&!i&&(Y.copy(e),Y.applyTransform(v),e=Y),i)a=e.x,l=e.y;else{var m=r.textPosition,y=r.textDistance;if(m instanceof Array)a=e.x+O(m[0],e.width),l=e.y+O(m[1],e.height),u=u||"left",f=f||"top";else{var x=s.adjustTextPositionOnRect(m,e,n,y);a=x.x,l=x.y,u=u||x.textAlign,f=f||x.textBaseline}}if(d){switch(d){case"middle":l-=n.height/2;break;case"bottom":l-=n.height}f="top"}var _=c.size;switch(f){case"hanging":case"top":l+=_/1.75;break;case"middle":break;default:l-=_/2.25}switch(u){case"left":break;case"center":a-=n.width/2;break;case"right":a-=n.width}var S,M,A,T=p.createNode,I=this._textVmlEl;I?(A=I.firstChild,S=A.nextSibling,M=S.nextSibling):(I=T("line"),S=T("path"),M=T("textpath"),A=T("skew"),M.style["v-text-align"]="left",C(I),S.textpathok=!0,M.on=!0,I.from="0 0",I.to="1000 0.05",k(I,A),k(I,S),k(I,M),this._textVmlEl=I);var D=[a,l],P=I.style;v&&i?(b(D,D,v),A.on=!0,A.matrix=v[0].toFixed(3)+w+v[2].toFixed(3)+w+v[1].toFixed(3)+w+v[3].toFixed(3)+",0,0",A.offset=(g(D[0])||0)+","+(g(D[1])||0),A.origin="0 0",P.left="0px",P.top="0px"):(A.on=!1,P.left=g(a)+"px",P.top=g(l)+"px"),M.string=L(o);try{M.style.font=h}catch(t){}B(I,"fill",{fill:i?r.fill:r.textFill,opacity:r.opacity},this),B(I,"stroke",{stroke:i?r.stroke:r.textStroke,opacity:r.opacity,lineDash:r.lineDash},this),I.style.zIndex=E(this.zlevel,this.z,this.z2),k(t,I)}},K=function(t){P(t,this._textVmlEl),this._textVmlEl=null},Q=function(t){k(t,this._textVmlEl)},tt=[l,u,c,f,h],et=0;et=0&&(e=t.slice(i),t=t.slice(0,i));var r=t.indexOf("?");return r>=0&&(n=t.slice(r+1),t=t.slice(0,r)),{path:t,query:n,hash:e}}function _(t){return t.replace(/\/\//g,"/")}function b(t,e,n){var i=e||Object.create(null),r=n||Object.create(null);return t.forEach(function(t){w(i,r,t)}),{pathMap:i,nameMap:r}}function w(t,e,n,i,r){var o=n.path,a=n.name,s={path:S(o,i),components:n.components||{default:n.component},instances:{},name:a,parent:i,matchAs:r,redirect:n.redirect,beforeEnter:n.beforeEnter,meta:n.meta||{},props:null==n.props?{}:n.components?n.props:{default:n.props}};if(n.children&&n.children.forEach(function(n){var i=r?_(r+"/"+n.path):void 0;w(t,e,n,s,i)}),void 0!==n.alias)if(Array.isArray(n.alias))n.alias.forEach(function(r){var o={path:r,children:n.children};w(t,e,o,i,s.path)});else{var l={path:n.alias,children:n.children};w(t,e,l,i,s.path)}t[s.path]||(t[s.path]=s),a&&(e[a]||(e[a]=s))}function S(t,e){return t=t.replace(/\/$/,""),"/"===t[0]?t:null==e?t:_(e.path+"/"+t)}function M(t,e){for(var n,i=[],r=0,o=0,a="",s=e&&e.delimiter||"/";null!=(n=Ut.exec(t));){var l=n[0],u=n[1],c=n.index;if(a+=t.slice(o,c),o=c+l.length,u)a+=u[1];else{var h=t[o],f=n[2],d=n[3],p=n[4],g=n[5],v=n[6],m=n[7];a&&(i.push(a),a="");var y=null!=f&&null!=h&&h!==f,x="+"===v||"*"===v,_="?"===v||"*"===v,b=n[2]||s,w=p||g;i.push({name:d||r++,prefix:f||"",delimiter:b,optional:_,repeat:x,partial:y,asterisk:!!m,pattern:w?D(w):m?".*":"[^"+L(b)+"]+?"})}}return o-1&&(i.params[l]=e.params[l]);if(o)return i.path=B(o.path,i.params,'named route "'+r+'"'),a(o,i,n)}else if(i.path){i.params={};for(var h in u)if(j(h,i.params,i.path))return a(u[h],i,n)}return a(null,i)}function r(t,e){var r=t.redirect,o="function"==typeof r?r(l(t,e)):r;if("string"==typeof o&&(o={path:o}),!o||"object"!=typeof o)return a(null,e);var s=o,u=s.name,h=s.path,f=e.query,d=e.hash,p=e.params;if(f=s.hasOwnProperty("query")?s.query:f,d=s.hasOwnProperty("hash")?s.hash:d,p=s.hasOwnProperty("params")?s.params:p,u){c[u];return n({_normalized:!0,name:u,query:f,hash:d,params:p},void 0,e)}if(h){var g=W(h,t),v=B(g,p,'redirect route with path "'+g+'"');return n({_normalized:!0,path:v,query:f,hash:d},void 0,e)}return i(!1,"invalid redirect option: "+JSON.stringify(o)),a(null,e)}function o(t,e,i){var r=B(i,e.params,'aliased route with path "'+i+'"'),o=n({_normalized:!0,path:r});if(o){var s=o.matched,l=s[s.length-1];return e.params=o.params,a(l,e)}return a(null,e)}function a(t,e,n){return t&&t.redirect?r(t,n||e):t&&t.matchAs?o(t,e,t.matchAs):l(t,e,n)}var s=b(t),u=s.pathMap,c=s.nameMap;return{match:n,addRoutes:e}}function j(t,e,n){var i=V(t),r=i.regexp,o=i.keys,a=n.match(r);if(!a)return!1;if(!e)return!0;for(var s=1,l=a.length;s=t.length?n():t[r]?e(t[r],function(){i(r+1)}):i(r+1)};i(0)}function ot(t){if(!t)if(Vt){var e=document.querySelector("base");t=e?e.getAttribute("href"):"/"}else t="/";return"/"!==t.charAt(0)&&(t="/"+t),t.replace(/\/$/,"")}function at(t,e){var n,i=Math.max(t.length,e.length);for(n=0;n=0?e:0)+"#"+t)}function At(t,e,n){var i="hash"===n?"#"+e:e;return t?_(t+"/"+i):i}var Tt,It={name:"router-view",functional:!0,props:{name:{type:String,default:"default"}},render:function(t,e){var n=e.props,i=e.children,o=e.parent,a=e.data;a.routerView=!0;for(var s=n.name,l=o.$route,u=o._routerViewCache||(o._routerViewCache={}),c=0,h=!1;o;)o.$vnode&&o.$vnode.data.routerView&&c++,o._inactive&&(h=!0),o=o.$parent;if(a.routerViewDepth=c,h)return t(u[s],a,i);var f=l.matched[c];if(!f)return u[s]=null,t();var d=u[s]=f.components[s],p=a.hook||(a.hook={});return p.init=function(t){f.instances[s]=t.child},p.prepatch=function(t,e){f.instances[s]=e.child},p.destroy=function(t){f.instances[s]===t.child&&(f.instances[s]=void 0)},a.props=r(l,f.props&&f.props[s]),t(d,a,i)}},Ct=/[!'()*]/g,Lt=function(t){return"%"+t.charCodeAt(0).toString(16)},Dt=/%2C/g,kt=function(t){return encodeURIComponent(t).replace(Ct,Lt).replace(Dt,",")},Pt=decodeURIComponent,Et=/\/?$/,Ot=l(null,{path:"/"}),Rt=[String,Object],Nt=[String,Array],zt={name:"router-link",props:{to:{type:Rt,required:!0},tag:{type:String,default:"a"},exact:Boolean,append:Boolean,replace:Boolean,activeClass:String,event:{type:Nt,default:"click"}},render:function(t){var e=this,n=this.$router,i=this.$route,r=n.resolve(this.to,i,this.append),o=r.location,a=r.route,s=r.href,u={},c=this.activeClass||n.options.linkActiveClass||"router-link-active",f=o.path?l(null,o):a;u[c]=this.exact?h(i,f):d(i,f);var p=function(t){g(t)&&(e.replace?n.replace(o):n.push(o))},m={click:g};Array.isArray(this.event)?this.event.forEach(function(t){m[t]=p}):m[this.event]=p;var y={class:u};if("a"===this.tag)y.on=m,y.attrs={href:s};else{var x=v(this.$slots.default);if(x){x.isStatic=!1;var _=Tt.util.extend,b=x.data=_({},x.data);b.on=m;var w=x.data.attrs=_({},x.data.attrs);w.href=s}else y.on=m}return t(this.tag,y,this.$slots.default)}},Vt="undefined"!=typeof window,Bt=Array.isArray||function(t){return"[object Array]"==Object.prototype.toString.call(t)},Ft=Bt,Gt=z,Ht=M,jt=A,Wt=C,$t=N,Ut=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");Gt.parse=Ht,Gt.compile=jt,Gt.tokensToFunction=Wt,Gt.tokensToRegExp=$t;var qt=Object.create(null),Zt=Object.create(null),Xt=Object.create(null),Yt=Vt&&function(){var t=window.navigator.userAgent;return(t.indexOf("Android 2.")===-1&&t.indexOf("Android 4.0")===-1||t.indexOf("Mobile Safari")===-1||t.indexOf("Chrome")!==-1||t.indexOf("Windows Phone")!==-1)&&(window.history&&"pushState"in window.history)}(),Jt=Vt&&window.performance&&window.performance.now?window.performance:Date,Kt=Q(),Qt=function(t,e){this.router=t,this.base=ot(e),this.current=Ot,this.pending=null,this.ready=!1,this.readyCbs=[]};Qt.prototype.listen=function(t){this.cb=t},Qt.prototype.onReady=function(t){this.ready?t():this.readyCbs.push(t)},Qt.prototype.transitionTo=function(t,e,n){var i=this,r=this.router.match(t,this.current);this.confirmTransition(r,function(){i.updateRoute(r),e&&e(r),i.ensureURL(),i.ready||(i.ready=!0,i.readyCbs.forEach(function(t){t(r)}))},n)},Qt.prototype.confirmTransition=function(t,e,n){var i=this,r=this.current,o=function(){n&&n()};if(h(t,r)&&t.matched.length===r.matched.length)return this.ensureURL(),o();var a=at(this.current.matched,t.matched),s=a.updated,l=a.deactivated,u=a.activated,c=[].concat(ut(l),this.router.beforeHooks,ct(s),u.map(function(t){return t.beforeEnter}),gt(u));this.pending=t;var f=function(e,n){return i.pending!==t?o():void e(t,r,function(t){t===!1?(i.ensureURL(!0),o()):"string"==typeof t||"object"==typeof t?("object"==typeof t&&t.replace?i.replace(t):i.push(t),o()):n(t)})};rt(c,f,function(){var n=[],r=function(){return i.current===t},a=ft(u,n,r);rt(a,f,function(){return i.pending!==t?o():(i.pending=null,e(t),void(i.router.app&&i.router.app.$nextTick(function(){n.forEach(function(t){return t()})})))})})},Qt.prototype.updateRoute=function(t){var e=this.current;this.current=t,this.cb&&this.cb(t),this.router.afterHooks.forEach(function(n){n&&n(t,e)})};var te=function(t){function e(e,n){var i=this;t.call(this,e,n);var r=e.options.scrollBehavior;r&&$(),window.addEventListener("popstate",function(t){i.transitionTo(xt(i.base),function(t){r&&U(e,t,i.current,!0)})})}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.go=function(t){window.history.go(t)},e.prototype.push=function(t,e,n){var i=this;this.transitionTo(t,function(t){nt(_(i.base+t.fullPath)),U(i.router,t,i.current,!1),e&&e(t)},n)},e.prototype.replace=function(t,e,n){var i=this;this.transitionTo(t,function(t){it(_(i.base+t.fullPath)),U(i.router,t,i.current,!1),e&&e(t)},n)},e.prototype.ensureURL=function(t){if(xt(this.base)!==this.current.fullPath){var e=_(this.base+this.current.fullPath);t?nt(e):it(e)}},e.prototype.getCurrentLocation=function(){return xt(this.base)},e}(Qt),ee=function(t){function e(e,n,i){t.call(this,e,n),i&&_t(this.base)||bt()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.setupListeners=function(){var t=this;window.addEventListener("hashchange",function(){bt()&&t.transitionTo(wt(),function(t){Mt(t.fullPath)})})},e.prototype.push=function(t,e,n){this.transitionTo(t,function(t){St(t.fullPath),e&&e(t)},n)},e.prototype.replace=function(t,e,n){this.transitionTo(t,function(t){Mt(t.fullPath),e&&e(t)},n)},e.prototype.go=function(t){window.history.go(t)},e.prototype.ensureURL=function(t){var e=this.current.fullPath;wt()!==e&&(t?St(e):Mt(e))},e.prototype.getCurrentLocation=function(){return wt()},e}(Qt),ne=function(t){function e(e,n){t.call(this,e,n),this.stack=[],this.index=-1}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.push=function(t,e,n){var i=this;this.transitionTo(t,function(t){i.stack=i.stack.slice(0,i.index+1).concat(t),i.index++,e&&e(t)},n)},e.prototype.replace=function(t,e,n){var i=this;this.transitionTo(t,function(t){i.stack=i.stack.slice(0,i.index).concat(t),e&&e(t)},n)},e.prototype.go=function(t){var e=this,n=this.index+t;if(!(n<0||n>=this.stack.length)){var i=this.stack[n];this.confirmTransition(i,function(){e.index=n,e.updateRoute(i)})}},e.prototype.getCurrentLocation=function(){var t=this.stack[this.stack.length-1];return t?t.fullPath:"/"},e.prototype.ensureURL=function(){},e}(Qt),ie=function(t){void 0===t&&(t={}),this.app=null,this.apps=[],this.options=t,this.beforeHooks=[],this.afterHooks=[],this.matcher=H(t.routes||[]);var e=t.mode||"hash";switch(this.fallback="history"===e&&!Yt,this.fallback&&(e="hash"),Vt||(e="abstract"),this.mode=e,e){case"history":this.history=new te(this,t.base);break;case"hash":this.history=new ee(this,t.base,this.fallback);break;case"abstract":this.history=new ne(this,t.base)}},re={currentRoute:{}};ie.prototype.match=function(t,e,n){return this.matcher.match(t,e,n)},re.currentRoute.get=function(){return this.history&&this.history.current},ie.prototype.init=function(t){var e=this;if(this.apps.push(t),!this.app){this.app=t;var n=this.history;if(n instanceof te)n.transitionTo(n.getCurrentLocation());else if(n instanceof ee){var i=function(){n.setupListeners()};n.transitionTo(n.getCurrentLocation(),i,i)}n.listen(function(t){e.apps.forEach(function(e){e._route=t})})}},ie.prototype.beforeEach=function(t){this.beforeHooks.push(t)},ie.prototype.afterEach=function(t){this.afterHooks.push(t)},ie.prototype.onReady=function(t){this.history.onReady(t)},ie.prototype.push=function(t,e,n){this.history.push(t,e,n)},ie.prototype.replace=function(t,e,n){this.history.replace(t,e,n)},ie.prototype.go=function(t){this.history.go(t)},ie.prototype.back=function(){this.go(-1)},ie.prototype.forward=function(){this.go(1)},ie.prototype.getMatchedComponents=function(t){var e=t?this.resolve(t).route:this.currentRoute;return e?[].concat.apply([],e.matched.map(function(t){return Object.keys(t.components).map(function(e){return t.components[e]})})):[]},ie.prototype.resolve=function(t,e,n){var i=F(t,e||this.history.current,n),r=this.match(i,e),o=r.redirectedFrom||r.fullPath,a=this.history.base,s=At(a,o,this.mode);return{location:i,route:r,href:s,normalizedTo:i,resolved:r}},ie.prototype.addRoutes=function(t){this.matcher.addRoutes(t),this.history.current!==Ot&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(ie.prototype,re),ie.install=m,ie.version="2.2.1",Vt&&window.Vue&&window.Vue.use(ie),t.exports=ie},function(t,e,n){"use strict";(function(e){/*! * Vue.js v2.1.10 * (c) 2014-2017 Evan You * Released under the MIT License. */ function n(t){return null==t?"":"object"==typeof t?JSON.stringify(t,null,2):String(t)}function i(t){var e=parseFloat(t);return isNaN(e)?t:e}function r(t,e){for(var n=Object.create(null),i=t.split(","),r=0;r-1)return t.splice(n,1)}}function a(t,e){return ar.call(t,e)}function s(t){return"string"==typeof t||"number"==typeof t}function l(t){var e=Object.create(null);return function(n){var i=e[n];return i||(e[n]=t(n))}}function u(t,e){function n(n){var i=arguments.length;return i?i>1?t.apply(e,arguments):t.call(e,n):t.call(e)}return n._length=t.length,n}function c(t,e){e=e||0;for(var n=t.length-e,i=new Array(n);n--;)i[n]=t[n+e];return i}function h(t,e){for(var n in e)t[n]=e[n];return t}function f(t){return null!==t&&"object"==typeof t}function d(t){return fr.call(t)===dr}function p(t){for(var e={},n=0;n1?c(n):n;for(var i=c(arguments,1),r=0,o=n.length;r=0&&Kr[n].id>t.id;)n--;Kr.splice(Math.max(n,no)+1,0,t)}else Kr.push(t);to||(to=!0,Cr(Tt))}}function Ct(t){oo.clear(),Lt(t,oo)}function Lt(t,e){var n,i,r=Array.isArray(t);if((r||f(t))&&Object.isExtensible(t)){if(t.__ob__){var o=t.__ob__.dep.id;if(e.has(o))return;e.add(o)}if(r)for(n=t.length;n--;)Lt(t[n],e);else for(i=Object.keys(t),n=i.length;n--;)Lt(t[i[n]],e)}}function Dt(t){t._watchers=[];var e=t.$options;e.props&&kt(t,e.props),e.methods&&Rt(t,e.methods),e.data?Pt(t):I(t._data={},!0),e.computed&&Et(t,e.computed),e.watch&&Nt(t,e.watch)}function kt(t,e){var n=t.$options.propsData||{},i=t.$options._propKeys=Object.keys(e),r=!t.$parent;zr.shouldConvert=r;for(var o=function(r){var o=i[r];C(t,o,B(o,e,n,t))},a=0;a-1:t.test(e)}function Yt(t,e){for(var n in t){var i=t[n];if(i){var r=Zt(i.componentOptions);r&&!e(r)&&(Jt(i),t[n]=null)}}}function Jt(t){t&&(t.componentInstance._inactive||Mt(t.componentInstance,"deactivated"),t.componentInstance.$destroy())}function Kt(t){var e={};e.get=function(){return vr},Object.defineProperty(t,"config",e),t.util=Gr,t.set=L,t.delete=D,t.nextTick=Cr,t.options=Object.create(null),vr._assetTypes.forEach(function(e){t.options[e+"s"]=Object.create(null)}),t.options._base=t,h(t.options.components,co),Wt(t),$t(t),Ut(t),qt(t)}function Qt(t){for(var e=t.data,n=t,i=t;i.componentInstance;)i=i.componentInstance._vnode,i.data&&(e=te(i.data,e));for(;n=n.parent;)n.data&&(e=te(e,n.data));return ee(e)}function te(t,e){return{staticClass:ne(t.staticClass,e.staticClass),class:t.class?[t.class,e.class]:e.class}}function ee(t){var e=t.class,n=t.staticClass;return n||e?ne(n,ie(e)):""}function ne(t,e){return t?e?t+" "+e:t:e||""}function ie(t){var e="";if(!t)return e;if("string"==typeof t)return t;if(Array.isArray(t)){for(var n,i=0,r=t.length;i-1?Io[t]=e.constructor===window.HTMLUnknownElement||e.constructor===window.HTMLElement:Io[t]=/HTMLUnknownElement/.test(e.toString())}function ae(t){if("string"==typeof t){if(t=document.querySelector(t),!t)return document.createElement("div")}return t}function se(t,e){var n=document.createElement(t);return"select"!==t?n:(e.data&&e.data.attrs&&"multiple"in e.data.attrs&&n.setAttribute("multiple","multiple"),n)}function le(t,e){return document.createElementNS(wo[t],e)}function ue(t){return document.createTextNode(t)}function ce(t){return document.createComment(t)}function he(t,e,n){t.insertBefore(e,n)}function fe(t,e){t.removeChild(e)}function de(t,e){t.appendChild(e)}function pe(t){return t.parentNode}function ge(t){return t.nextSibling}function ve(t){return t.tagName}function me(t,e){t.textContent=e}function ye(t,e,n){t.setAttribute(e,n)}function xe(t,e){var n=t.data.ref;if(n){var i=t.context,r=t.componentInstance||t.elm,a=i.$refs;e?Array.isArray(a[n])?o(a[n],r):a[n]===r&&(a[n]=void 0):t.data.refInFor?Array.isArray(a[n])&&a[n].indexOf(r)<0?a[n].push(r):a[n]=[r]:a[n]=r}}function _e(t){return null==t}function be(t){return null!=t}function we(t,e){return t.key===e.key&&t.tag===e.tag&&t.isComment===e.isComment&&!t.data==!e.data}function Se(t,e,n){var i,r,o={};for(i=e;i<=n;++i)r=t[i].key,be(r)&&(o[r]=i);return o}function Me(t){function e(t){return new Hr(I.tagName(t).toLowerCase(),{},[],void 0,t)}function n(t,e){function n(){0===--n.listeners&&i(t)}return n.listeners=e,n}function i(t){var e=I.parentNode(t);e&&I.removeChild(e,t)}function o(t,e,n,i,r){if(t.isRootInsert=!r,!a(t,e,n,i)){var o=t.data,s=t.children,l=t.tag;be(l)?(t.elm=t.ns?I.createElementNS(t.ns,l):I.createElement(l,t),p(t),h(t,s,e),be(o)&&d(t,e),c(n,t.elm,i)):t.isComment?(t.elm=I.createComment(t.text),c(n,t.elm,i)):(t.elm=I.createTextNode(t.text),c(n,t.elm,i))}}function a(t,e,n,i){var r=t.data;if(be(r)){var o=be(t.componentInstance)&&r.keepAlive;if(be(r=r.hook)&&be(r=r.init)&&r(t,!1,n,i),be(t.componentInstance))return l(t,e),o&&u(t,e,n,i),!0}}function l(t,e){t.data.pendingInsert&&e.push.apply(e,t.data.pendingInsert),t.elm=t.componentInstance.$el,f(t)?(d(t,e),p(t)):(xe(t),e.push(t))}function u(t,e,n,i){for(var r,o=t;o.componentInstance;)if(o=o.componentInstance._vnode,be(r=o.data)&&be(r=r.transition)){for(r=0;rf?(u=_e(n[v+1])?null:n[v+1].elm,g(t,u,n,h,v,i)):h>v&&m(t,e,c,f)}function _(t,e,n,i){if(t!==e){if(e.isStatic&&t.isStatic&&e.key===t.key&&(e.isCloned||e.isOnce))return e.elm=t.elm,void(e.componentInstance=t.componentInstance);var r,o=e.data,a=be(o);a&&be(r=o.hook)&&be(r=r.prepatch)&&r(t,e);var s=e.elm=t.elm,l=t.children,u=e.children;if(a&&f(e)){for(r=0;r-1?e.split(/\s+/).forEach(function(e){return t.classList.add(e)}):t.classList.add(e);else{var n=" "+t.getAttribute("class")+" ";n.indexOf(" "+e+" ")<0&&t.setAttribute("class",(n+e).trim())}}function $e(t,e){if(e&&e.trim())if(t.classList)e.indexOf(" ")>-1?e.split(/\s+/).forEach(function(e){return t.classList.remove(e)}):t.classList.remove(e);else{for(var n=" "+t.getAttribute("class")+" ",i=" "+e+" ";n.indexOf(i)>=0;)n=n.replace(i," ");t.setAttribute("class",n.trim())}}function Ue(t){Qo(function(){Qo(t)})}function qe(t,e){(t._transitionClasses||(t._transitionClasses=[])).push(e),We(t,e)}function Ze(t,e){t._transitionClasses&&o(t._transitionClasses,e),$e(t,e)}function Xe(t,e,n){var i=Ye(t,e),r=i.type,o=i.timeout,a=i.propCount;if(!r)return n();var s=r===qo?Yo:Ko,l=0,u=function(){t.removeEventListener(s,c),n()},c=function(e){e.target===t&&++l>=a&&u()};setTimeout(function(){l0&&(n=qo,c=a,h=o.length):e===Zo?u>0&&(n=Zo,c=u,h=l.length):(c=Math.max(a,u),n=c>0?a>u?qo:Zo:null,h=n?n===qo?o.length:l.length:0);var f=n===qo&&ta.test(i[Xo+"Property"]);return{type:n,timeout:c,propCount:h,hasTransform:f}}function Je(t,e){for(;t.length1,P=n._enterCb=nn(function(){D&&(Ze(n,A),Ze(n,M)),P.cancelled?(D&&Ze(n,S),L&&L(n)):C&&C(n),n._enterCb=null});t.data.show||rt(t.data.hook||(t.data.hook={}),"insert",function(){var e=n.parentNode,i=e&&e._pending&&e._pending[t.key];i&&i.tag===t.tag&&i.elm._leaveCb&&i.elm._leaveCb(),I&&I(n,P)},"transition-insert"),T&&T(n),D&&(qe(n,S),qe(n,M),Ue(function(){qe(n,A),Ze(n,S),P.cancelled||k||Xe(n,o,P)})),t.data.show&&(e&&e(),I&&I(n,P)),D||k||P()}}}function tn(t,e){function n(){m.cancelled||(t.data.show||((i.parentNode._pending||(i.parentNode._pending={}))[t.key]=t),c&&c(i),g&&(qe(i,s),qe(i,u),Ue(function(){qe(i,l),Ze(i,s),m.cancelled||v||Xe(i,a,m)})),h&&h(i,m),g||v||m())}var i=t.elm;i._enterCb&&(i._enterCb.cancelled=!0,i._enterCb());var r=en(t.data.transition);if(!r)return e();if(!i._leaveCb&&1===i.nodeType){var o=r.css,a=r.type,s=r.leaveClass,l=r.leaveToClass,u=r.leaveActiveClass,c=r.beforeLeave,h=r.leave,f=r.afterLeave,d=r.leaveCancelled,p=r.delayLeave,g=o!==!1&&!wr,v=h&&(h._length||h.length)>1,m=i._leaveCb=nn(function(){i.parentNode&&i.parentNode._pending&&(i.parentNode._pending[t.key]=null),g&&(Ze(i,l),Ze(i,u)),m.cancelled?(g&&Ze(i,s),d&&d(i)):(e(),f&&f(i)),i._leaveCb=null});p?p(n):n()}}function en(t){if(t){if("object"==typeof t){var e={};return t.css!==!1&&h(e,ea(t.name||"v")),h(e,t),e}return"string"==typeof t?ea(t):void 0}}function nn(t){var e=!1;return function(){e||(e=!0,t())}}function rn(t,e){e.data.show||Qe(e)}function on(t,e,n){var i=e.value,r=t.multiple;if(!r||Array.isArray(i)){for(var o,a,s=0,l=t.options.length;s-1,a.selected!==o&&(a.selected=o);else if(m(sn(a),i))return void(t.selectedIndex!==s&&(t.selectedIndex=s));r||(t.selectedIndex=-1)}}function an(t,e){for(var n=0,i=e.length;n',n.innerHTML.indexOf(e)>0}function bn(t){return pa=pa||document.createElement("div"),pa.innerHTML=t,pa.textContent}function wn(t,e){return e&&(t=t.replace(ss,"\n")),t.replace(os,"<").replace(as,">").replace(ls,"&").replace(us,'"')}function Sn(t,e){function n(e){h+=e,t=t.substring(e)}function i(){var e=t.match(Aa);if(e){var i={tagName:e[1],attrs:[],start:h};n(e[0].length);for(var r,o;!(r=t.match(Ta))&&(o=t.match(wa));)n(o[0].length),i.attrs.push(o);if(r)return i.unarySlash=r[1],n(r[0].length),i.end=h,i}}function r(t){var n=t.tagName,i=t.unarySlash;u&&("p"===s&&ya(n)&&o(s),ma(n)&&s===n&&o(n));for(var r=c(n)||"html"===n&&"head"===s||!!i,a=t.attrs.length,h=new Array(a),f=0;f=0&&l[r].lowerCasedTag!==o;r--);else r=0;if(r>=0){for(var a=l.length-1;a>=r;a--)e.end&&e.end(l[a].tag,n,i);l.length=r,s=r&&l[r-1].tag}else"br"===o?e.start&&e.start(t,[],!0,n,i):"p"===o&&(e.start&&e.start(t,[],!1,n,i),e.end&&e.end(t,n,i))}for(var a,s,l=[],u=e.expectHTML,c=e.isUnaryTag||pr,h=0;t;){if(a=t,s&&is(s)){var f=s.toLowerCase(),d=rs[f]||(rs[f]=new RegExp("([\\s\\S]*?)(]*>)","i")),p=0,g=t.replace(d,function(t,n,i){return p=i.length,"script"!==f&&"style"!==f&&"noscript"!==f&&(n=n.replace(//g,"$1").replace(//g,"$1")),e.chars&&e.chars(n),""});h+=t.length-g.length,t=g,o(f,h-p,h)}else{var v=t.indexOf("<");if(0===v){if(La.test(t)){var m=t.indexOf("-->");if(m>=0){n(m+3);continue}}if(Da.test(t)){var y=t.indexOf("]>");if(y>=0){n(y+2);continue}}var x=t.match(Ca);if(x){n(x[0].length);continue}var _=t.match(Ia);if(_){var b=h;n(_[0].length),o(_[1],b,h);continue}var w=i();if(w){r(w);continue}}var S=void 0,M=void 0,A=void 0;if(v>0){for(M=t.slice(v);!(Ia.test(M)||Aa.test(M)||La.test(M)||Da.test(M)||(A=M.indexOf("<",1),A<0));)v+=A,M=t.slice(v);S=t.substring(0,v),n(v)}v<0&&(S=t,t=""),e.chars&&S&&e.chars(S)}if(t===a&&e.chars){e.chars(t);break}}o()}function Mn(t){function e(){(a||(a=[])).push(t.slice(p,r).trim()),p=r+1}var n,i,r,o,a,s=!1,l=!1,u=!1,c=!1,h=0,f=0,d=0,p=0;for(r=0;r=0&&(v=t.charAt(g)," "===v);g--);v&&/[\w$]/.test(v)||(c=!0)}}else void 0===o?(p=r+1,o=t.slice(0,r).trim()):e();if(void 0===o?o=t.slice(0,r).trim():0!==p&&e(),a)for(r=0;ra&&o.push(JSON.stringify(t.slice(a,r)));var s=Mn(i[1].trim());o.push("_s("+s+")"),a=r+i[0].length}return a=Pa}function Vn(t){return 34===t||39===t}function Bn(t){var e=1;for(Na=Ra;!zn();)if(t=Nn(),Vn(t))Fn(t);else if(91===t&&e++,93===t&&e--,0===e){za=Ra;break}}function Fn(t){for(var e=t;!zn()&&(t=Nn(),t!==e););}function Gn(t,e){Va=e.warn||In,Ba=e.getTagNamespace||pr,Fa=e.mustUseProp||pr,Ga=e.isPreTag||pr,Ha=Cn(e.modules,"preTransformNode"),ja=Cn(e.modules,"transformNode"),Wa=Cn(e.modules,"postTransformNode"),$a=e.delimiters;var n,i,r=[],o=e.preserveWhitespace!==!1,a=!1,s=!1;return Sn(t,{expectHTML:e.expectHTML,isUnaryTag:e.isUnaryTag,shouldDecodeNewlines:e.shouldDecodeNewlines,start:function(t,o,l){function u(t){}var c=i&&i.ns||Ba(t);br&&"svg"===c&&(o=oi(o));var h={type:1,tag:t,attrsList:o,attrsMap:ii(o),parent:i,children:[]};c&&(h.ns=c),ri(h)&&!Tr()&&(h.forbidden=!0);for(var f=0;f-1"+("true"===o?":("+e+")":":_q("+e+","+o+")")),Pn(t,"click","var $$a="+e+",$$el=$event.target,$$c=$$el.checked?("+o+"):("+a+");if(Array.isArray($$a)){var $$v="+(i?"_n("+r+")":r)+",$$i=_i($$a,$$v);if($$c){$$i<0&&("+e+"=$$a.concat($$v))}else{$$i>-1&&("+e+"=$$a.slice(0,$$i).concat($$a.slice($$i+1)))}}else{"+e+"=$$c}",null,!0)}function qi(t,e,n){var i=n&&n.number,r=En(t,"value")||"null";r=i?"_n("+r+")":r,Ln(t,"checked","_q("+e+","+r+")"),Pn(t,"click",Yi(e,r),null,!0)}function Zi(t,e,n){var i=t.attrsMap.type,r=n||{},o=r.lazy,a=r.number,s=r.trim,l=o||br&&"range"===i?"change":"input",u=!o&&"range"!==i,c="input"===t.tag||"textarea"===t.tag,h=c?"$event.target.value"+(s?".trim()":""):s?"(typeof $event === 'string' ? $event.trim() : $event)":"$event";h=a||"number"===i?"_n("+h+")":h;var f=Yi(e,h);c&&u&&(f="if($event.target.composing)return;"+f),Ln(t,"value",c?"_s("+e+")":"("+e+")"),Pn(t,l,f,null,!0),(s||a||"number"===i)&&Pn(t,"blur","$forceUpdate()")}function Xi(t,e,n){var i=n&&n.number,r='Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = "_value" in o ? o._value : o.value;return '+(i?"_n(val)":"val")+"})"+(null==t.attrsMap.multiple?"[0]":""),o=Yi(e,r);Pn(t,"change",o,null,!0)}function Yi(t,e){var n=Rn(t);return null===n.idx?t+"="+e:"var $$exp = "+n.exp+", $$idx = "+n.idx+";if (!Array.isArray($$exp)){"+t+"="+e+"}else{$$exp.splice($$idx, 1, "+e+")}"}function Ji(t,e){e.value&&Ln(t,"textContent","_s("+e.value+")")}function Ki(t,e){e.value&&Ln(t,"innerHTML","_s("+e.value+")")}function Qi(t,e){return e=e?h(h({},Os),e):Os,Fi(t,e)}function tr(t,e,n){var i=(e&&e.warn||Dr,e&&e.delimiters?String(e.delimiters)+t:t);if(Es[i])return Es[i];var r={},o=Qi(t,e);r.render=er(o.render);var a=o.staticRenderFns.length;r.staticRenderFns=new Array(a);for(var s=0;s0,Sr=_r&&_r.indexOf("edge/")>0,Mr=_r&&_r.indexOf("android")>0,Ar=_r&&/iphone|ipad|ipod|ios/.test(_r),Tr=function(){return void 0===ir&&(ir=!xr&&"undefined"!=typeof e&&"server"===e.process.env.VUE_ENV),ir},Ir=xr&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__,Cr=function(){function t(){i=!1;var t=n.slice(0);n.length=0;for(var e=0;e1&&(e[n[0].trim()]=n[1].trim())}}),e}),Fo=/^--/,Go=/\s*!important$/,Ho=function(t,e,n){Fo.test(e)?t.style.setProperty(e,n):Go.test(n)?t.style.setProperty(e,n.replace(Go,""),"important"):t.style[Wo(e)]=n},jo=["Webkit","Moz","ms"],Wo=l(function(t){if(fo=fo||document.createElement("div"),t=lr(t),"filter"!==t&&t in fo.style)return t;for(var e=t.charAt(0).toUpperCase()+t.slice(1),n=0;n\/=]+)/,_a=/(?:=)/,ba=[/"([^"]*)"+/.source,/'([^']*)'+/.source,/([^\s"'=<>`]+)/.source],wa=new RegExp("^\\s*"+xa.source+"(?:\\s*("+_a.source+")\\s*(?:"+ba.join("|")+"))?"),Sa="[a-zA-Z_][\\w\\-\\.]*",Ma="((?:"+Sa+"\\:)?"+Sa+")",Aa=new RegExp("^<"+Ma),Ta=/^\s*(\/?)>/,Ia=new RegExp("^<\\/"+Ma+"[^>]*>"),Ca=/^]+>/i,La=/^