UNPKG

slog-cdn

Version:
2 lines 1.03 MB
/*! github.com/apache/echarts/tree/5.4.3 */ const echarts=function(){"use strict";var t={d:function(e,n){for(var i in n)t.o(n,i)&&!t.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:n[i]})},o:function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r:function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};t.d(e,{default:function(){return JU}});var n={};t.r(n),t.d(n,{HashMap:function(){return Lt},RADIAN_TO_DEGREE:function(){return Vt},assert:function(){return Mt},bind:function(){return rt},clone:function(){return W},concatArray:function(){return Ot},createCanvas:function(){return Z},createHashMap:function(){return Pt},createObject:function(){return Rt},curry:function(){return ot},defaults:function(){return U},disableUserSelect:function(){return Nt},each:function(){return J},eqNaN:function(){return mt},extend:function(){return X},filter:function(){return et},find:function(){return nt},guid:function(){return F},hasOwn:function(){return Et},indexOf:function(){return j},inherits:function(){return q},isArray:function(){return at},isArrayLike:function(){return $},isBuiltInObject:function(){return pt},isDom:function(){return ft},isFunction:function(){return st},isGradientObject:function(){return gt},isImagePatternObject:function(){return yt},isNumber:function(){return ht},isObject:function(){return ct},isPrimitive:function(){return Dt},isRegExp:function(){return vt},isString:function(){return lt},isStringSafe:function(){return ut},isTypedArray:function(){return dt},keys:function(){return it},logError:function(){return G},map:function(){return Q},merge:function(){return H},mergeAll:function(){return Y},mixin:function(){return K},noop:function(){return zt},normalizeCssArray:function(){return St},reduce:function(){return tt},retrieve:function(){return xt},retrieve2:function(){return _t},retrieve3:function(){return bt},setAsPrimitive:function(){return Ct},slice:function(){return wt},trim:function(){return It}});var i={};t.r(i),t.d(i,{add:function(){return Ht},applyTransform:function(){return se},clone:function(){return Gt},copy:function(){return Ft},create:function(){return Bt},dist:function(){return ne},distSquare:function(){return re},distance:function(){return ee},distanceSquare:function(){return ie},div:function(){return $t},dot:function(){return Jt},len:function(){return Ut},lenSquare:function(){return jt},length:function(){return Zt},lengthSquare:function(){return qt},lerp:function(){return ae},max:function(){return ue},min:function(){return le},mul:function(){return Kt},negate:function(){return oe},normalize:function(){return te},scale:function(){return Qt},scaleAndAdd:function(){return Yt},set:function(){return Wt},sub:function(){return Xt}});var r={};t.r(r),t.d(r,{clone:function(){return Ue},copy:function(){return Fe},create:function(){return Ve},identity:function(){return Be},invert:function(){return Xe},mul:function(){return Ge},rotate:function(){return He},scale:function(){return Ye},translate:function(){return We}});var o={};t.r(o),t.d(o,{fastLerp:function(){return Ti},fastMapToColor:function(){return Ci},lerp:function(){return Di},lift:function(){return Mi},lum:function(){return Oi},mapToColor:function(){return Ai},modifyAlpha:function(){return Li},modifyHSL:function(){return ki},parse:function(){return wi},random:function(){return Ri},stringify:function(){return Pi},toHex:function(){return Ii}});var a={};t.r(a),t.d(a,{dispose:function(){return xo},disposeAll:function(){return _o},getInstance:function(){return bo},init:function(){return mo},registerPainter:function(){return wo},version:function(){return So}});var s={};t.r(s),t.d(s,{Arc:function(){return Zg},BezierCurve:function(){return Yg},BoundingRect:function(){return on},Circle:function(){return sg},CompoundPath:function(){return qg},Ellipse:function(){return hg},Group:function(){return fo},Image:function(){return gl},IncrementalDisplayable:function(){return sy},Line:function(){return Bg},LinearGradient:function(){return $g},OrientedBoundingRect:function(){return ry},Path:function(){return ll},Point:function(){return je},Polygon:function(){return Pg},Polyline:function(){return Ng},RadialGradient:function(){return Jg},Rect:function(){return Sl},Ring:function(){return Dg},Sector:function(){return Ig},Text:function(){return Bl},applyTransform:function(){return Iy},clipPointsByRect:function(){return Ay},clipRectByRect:function(){return ky},createIcon:function(){return Ly},extendPath:function(){return dy},extendShape:function(){return cy},getShapeClass:function(){return gy},getTransform:function(){return My},groupTransition:function(){return Dy},initProps:function(){return ju},isElementRemoved:function(){return qu},lineLineIntersect:function(){return Oy},linePolygonIntersect:function(){return Py},makeImage:function(){return vy},makePath:function(){return yy},mergePath:function(){return xy},registerShape:function(){return fy},removeElement:function(){return Ku},removeElementWithFadeOut:function(){return Ju},resizePath:function(){return _y},setTooltipConfig:function(){return Ny},subPixelOptimize:function(){return Sy},subPixelOptimizeLine:function(){return by},subPixelOptimizeRect:function(){return wy},transformDirection:function(){return Ty},traverseElements:function(){return zy},updateProps:function(){return Zu}});var l={};t.r(l),t.d(l,{createDimensions:function(){return H_},createList:function(){return hw},createScale:function(){return pw},createSymbol:function(){return nm},createTextStyle:function(){return fw},dataStack:function(){return cw},enableHoverEmphasis:function(){return Ru},getECData:function(){return Fl},getLayoutRect:function(){return Oc},mixinAxisModelCommonMethods:function(){return dw}});var u={};t.r(u),t.d(u,{MAX_SAFE_INTEGER:function(){return Eo},asc:function(){return Ao},getPercentWithPrecision:function(){return Oo},getPixelPrecision:function(){return Po},getPrecision:function(){return ko},getPrecisionSafe:function(){return Lo},isNumeric:function(){return Zo},isRadianAroundZero:function(){return Vo},linearMap:function(){return To},nice:function(){return Ho},numericToNumber:function(){return Uo},parseDate:function(){return Fo},quantile:function(){return Yo},quantity:function(){return Go},quantityExponent:function(){return Wo},reformIntervals:function(){return Xo},remRadian:function(){return zo},round:function(){return Do}});var h={};t.r(h),t.d(h,{format:function(){return Qh},parse:function(){return Fo}});var c={};t.r(c),t.d(c,{Arc:function(){return Zg},BezierCurve:function(){return Yg},BoundingRect:function(){return on},Circle:function(){return sg},CompoundPath:function(){return qg},Ellipse:function(){return hg},Group:function(){return fo},Image:function(){return gl},IncrementalDisplayable:function(){return sy},Line:function(){return Bg},LinearGradient:function(){return $g},Polygon:function(){return Pg},Polyline:function(){return Ng},RadialGradient:function(){return Jg},Rect:function(){return Sl},Ring:function(){return Dg},Sector:function(){return Ig},Text:function(){return Bl},clipPointsByRect:function(){return Ay},clipRectByRect:function(){return ky},createIcon:function(){return Ly},extendPath:function(){return dy},extendShape:function(){return cy},getShapeClass:function(){return gy},getTransform:function(){return My},initProps:function(){return ju},makeImage:function(){return vy},makePath:function(){return yy},mergePath:function(){return xy},registerShape:function(){return fy},resizePath:function(){return _y},updateProps:function(){return Zu}});var p={};t.r(p),t.d(p,{addCommas:function(){return yc},capitalFirst:function(){return Ic},encodeHTML:function(){return Me},formatTime:function(){return Mc},formatTpl:function(){return wc},getTextRect:function(){return Aw},getTooltipMarker:function(){return Sc},normalizeCssArray:function(){return mc},toCamelCase:function(){return vc},truncateText:function(){return Ga}});var d={};t.r(d),t.d(d,{bind:function(){return rt},clone:function(){return W},curry:function(){return ot},defaults:function(){return U},each:function(){return J},extend:function(){return X},filter:function(){return et},indexOf:function(){return j},inherits:function(){return q},isArray:function(){return at},isFunction:function(){return st},isObject:function(){return ct},isString:function(){return lt},map:function(){return Q},merge:function(){return H},reduce:function(){return tt}});var f={};t.r(f),t.d(f,{Axis:function(){return Fw},ChartView:function(){return Uy},ComponentModel:function(){return Gc},ComponentView:function(){return zf},List:function(){return W_},Model:function(){return Ah},PRIORITY:function(){return Zm},SeriesModel:function(){return Nf},color:function(){return o},connect:function(){return Fx},dataTool:function(){return h_},dependencies:function(){return Gm},disConnect:function(){return Wx},disconnect:function(){return Gx},dispose:function(){return Hx},env:function(){return b},extendChartView:function(){return Yw},extendComponentModel:function(){return Gw},extendComponentView:function(){return Ww},extendSeriesModel:function(){return Hw},format:function(){return p},getCoordinateSystemDimensions:function(){return t_},getInstanceByDom:function(){return Yx},getInstanceById:function(){return Xx},getMap:function(){return l_},graphic:function(){return c},helper:function(){return l},init:function(){return Bx},innerDrawElementOnCanvas:function(){return Dm},matrix:function(){return r},number:function(){return u},parseGeoJSON:function(){return Dw},parseGeoJson:function(){return Dw},registerAction:function(){return Jx},registerCoordinateSystem:function(){return Qx},registerLayout:function(){return e_},registerLoading:function(){return o_},registerLocale:function(){return Bh},registerMap:function(){return s_},registerPostInit:function(){return qx},registerPostUpdate:function(){return Kx},registerPreprocessor:function(){return Zx},registerProcessor:function(){return jx},registerTheme:function(){return Ux},registerTransform:function(){return u_},registerUpdateLifecycle:function(){return $x},registerVisual:function(){return n_},setCanvasCreator:function(){return a_},setPlatformAPI:function(){return C},throttle:function(){return Ky},time:function(){return h},use:function(){return d_},util:function(){return d},vector:function(){return i},version:function(){return Fm},zrUtil:function(){return n},zrender:function(){return a}});var g=function(t,e){return g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])},g(t,e)};function y(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function n(){this.constructor=t}g(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}Object.create,Object.create;var v=function(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1},m=new function(){this.browser=new v,this.node=!1,this.wxa=!1,this.worker=!1,this.svgSupported=!1,this.touchEventsSupported=!1,this.pointerEventsSupported=!1,this.domSupported=!1,this.transformSupported=!1,this.transform3dSupported=!1,this.hasGlobalWindow="undefined"!=typeof window};"object"==typeof wx&&"function"==typeof wx.getSystemInfoSync?(m.wxa=!0,m.touchEventsSupported=!0):"undefined"==typeof document&&"undefined"!=typeof self?m.worker=!0:"undefined"==typeof navigator?(m.node=!0,m.svgSupported=!0):function(t,e){var n=e.browser,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);i&&(n.firefox=!0,n.version=i[1]),r&&(n.ie=!0,n.version=r[1]),o&&(n.edge=!0,n.version=o[1],n.newEdge=+o[1].split(".")[0]>18),a&&(n.weChat=!0),e.svgSupported="undefined"!=typeof SVGRect,e.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,e.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),e.domSupported="undefined"!=typeof document;var s=document.documentElement.style;e.transform3dSupported=(n.ie&&"transition"in s||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||n.ie&&+n.version>=9}(navigator.userAgent,m);var x,_,b=m,w=12,S="sans-serif",M=w+"px "+S,I=function(t){var e={};if("undefined"==typeof JSON)return e;for(var n=0;n<95;n++){var i=String.fromCharCode(n+32),r=(t.charCodeAt(n)-20)/100;e[i]=r}return e}("007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N"),T={createCanvas:function(){return"undefined"!=typeof document&&document.createElement("canvas")},measureText:function(t,e){if(!x){var n=T.createCanvas();x=n&&n.getContext("2d")}if(x)return _!==e&&(_=x.font=e||M),x.measureText(t);t=t||"";var i=/(\d+)px/.exec(e=e||M),r=i&&+i[1]||w,o=0;if(e.indexOf("mono")>=0)o=r*t.length;else for(var a=0;a<t.length;a++){var s=I[t[a]];o+=null==s?r:s*r}return{width:o}},loadImage:function(t,e,n){var i=new Image;return i.onload=e,i.onerror=n,i.src=t,i}};function C(t){for(var e in T)t[e]&&(T[e]=t[e])}var D=tt(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],(function(t,e){return t["[object "+e+"]"]=!0,t}),{}),A=tt(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],(function(t,e){return t["[object "+e+"Array]"]=!0,t}),{}),k=Object.prototype.toString,L=Array.prototype,P=L.forEach,O=L.filter,R=L.slice,N=L.map,E=function(){}.constructor,z=E?E.prototype:null,V="__proto__",B=2311;function F(){return B++}function G(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];"undefined"!=typeof console&&console.error.apply(console,t)}function W(t){if(null==t||"object"!=typeof t)return t;var e=t,n=k.call(t);if("[object Array]"===n){if(!Dt(t)){e=[];for(var i=0,r=t.length;i<r;i++)e[i]=W(t[i])}}else if(A[n]){if(!Dt(t)){var o=t.constructor;if(o.from)e=o.from(t);else for(e=new o(t.length),i=0,r=t.length;i<r;i++)e[i]=t[i]}}else if(!D[n]&&!Dt(t)&&!ft(t))for(var a in e={},t)t.hasOwnProperty(a)&&a!==V&&(e[a]=W(t[a]));return e}function H(t,e,n){if(!ct(e)||!ct(t))return n?W(e):t;for(var i in e)if(e.hasOwnProperty(i)&&i!==V){var r=t[i],o=e[i];!ct(o)||!ct(r)||at(o)||at(r)||ft(o)||ft(r)||pt(o)||pt(r)||Dt(o)||Dt(r)?!n&&i in t||(t[i]=W(e[i])):H(r,o,n)}return t}function Y(t,e){for(var n=t[0],i=1,r=t.length;i<r;i++)n=H(n,t[i],e);return n}function X(t,e){if(Object.assign)Object.assign(t,e);else for(var n in e)e.hasOwnProperty(n)&&n!==V&&(t[n]=e[n]);return t}function U(t,e,n){for(var i=it(e),r=0;r<i.length;r++){var o=i[r];(n?null!=e[o]:null==t[o])&&(t[o]=e[o])}return t}var Z=T.createCanvas;function j(t,e){if(t){if(t.indexOf)return t.indexOf(e);for(var n=0,i=t.length;n<i;n++)if(t[n]===e)return n}return-1}function q(t,e){var n=t.prototype;function i(){}for(var r in i.prototype=e.prototype,t.prototype=new i,n)n.hasOwnProperty(r)&&(t.prototype[r]=n[r]);t.prototype.constructor=t,t.superClass=e}function K(t,e,n){if(t="prototype"in t?t.prototype:t,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var i=Object.getOwnPropertyNames(e),r=0;r<i.length;r++){var o=i[r];"constructor"!==o&&(n?null!=e[o]:null==t[o])&&(t[o]=e[o])}else U(t,e,n)}function $(t){return!!t&&"string"!=typeof t&&"number"==typeof t.length}function J(t,e,n){if(t&&e)if(t.forEach&&t.forEach===P)t.forEach(e,n);else if(t.length===+t.length)for(var i=0,r=t.length;i<r;i++)e.call(n,t[i],i,t);else for(var o in t)t.hasOwnProperty(o)&&e.call(n,t[o],o,t)}function Q(t,e,n){if(!t)return[];if(!e)return wt(t);if(t.map&&t.map===N)return t.map(e,n);for(var i=[],r=0,o=t.length;r<o;r++)i.push(e.call(n,t[r],r,t));return i}function tt(t,e,n,i){if(t&&e){for(var r=0,o=t.length;r<o;r++)n=e.call(i,n,t[r],r,t);return n}}function et(t,e,n){if(!t)return[];if(!e)return wt(t);if(t.filter&&t.filter===O)return t.filter(e,n);for(var i=[],r=0,o=t.length;r<o;r++)e.call(n,t[r],r,t)&&i.push(t[r]);return i}function nt(t,e,n){if(t&&e)for(var i=0,r=t.length;i<r;i++)if(e.call(n,t[i],i,t))return t[i]}function it(t){if(!t)return[];if(Object.keys)return Object.keys(t);var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(n);return e}var rt=z&&st(z.bind)?z.call.bind(z.bind):function(t,e){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];return function(){return t.apply(e,n.concat(R.call(arguments)))}};function ot(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return function(){return t.apply(this,e.concat(R.call(arguments)))}}function at(t){return Array.isArray?Array.isArray(t):"[object Array]"===k.call(t)}function st(t){return"function"==typeof t}function lt(t){return"string"==typeof t}function ut(t){return"[object String]"===k.call(t)}function ht(t){return"number"==typeof t}function ct(t){var e=typeof t;return"function"===e||!!t&&"object"===e}function pt(t){return!!D[k.call(t)]}function dt(t){return!!A[k.call(t)]}function ft(t){return"object"==typeof t&&"number"==typeof t.nodeType&&"object"==typeof t.ownerDocument}function gt(t){return null!=t.colorStops}function yt(t){return null!=t.image}function vt(t){return"[object RegExp]"===k.call(t)}function mt(t){return t!=t}function xt(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n=0,i=t.length;n<i;n++)if(null!=t[n])return t[n]}function _t(t,e){return null!=t?t:e}function bt(t,e,n){return null!=t?t:null!=e?e:n}function wt(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return R.apply(t,e)}function St(t){if("number"==typeof t)return[t,t,t,t];var e=t.length;return 2===e?[t[0],t[1],t[0],t[1]]:3===e?[t[0],t[1],t[2],t[1]]:t}function Mt(t,e){if(!t)throw new Error(e)}function It(t){return null==t?null:"function"==typeof t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var Tt="__ec_primitive__";function Ct(t){t[Tt]=!0}function Dt(t){return t[Tt]}var At=function(){function t(){this.data={}}return t.prototype.delete=function(t){var e=this.has(t);return e&&delete this.data[t],e},t.prototype.has=function(t){return this.data.hasOwnProperty(t)},t.prototype.get=function(t){return this.data[t]},t.prototype.set=function(t,e){return this.data[t]=e,this},t.prototype.keys=function(){return it(this.data)},t.prototype.forEach=function(t){var e=this.data;for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)},t}(),kt="function"==typeof Map,Lt=function(){function t(e){var n=at(e);this.data=kt?new Map:new At;var i=this;function r(t,e){n?i.set(t,e):i.set(e,t)}e instanceof t?e.each(r):e&&J(e,r)}return t.prototype.hasKey=function(t){return this.data.has(t)},t.prototype.get=function(t){return this.data.get(t)},t.prototype.set=function(t,e){return this.data.set(t,e),e},t.prototype.each=function(t,e){this.data.forEach((function(n,i){t.call(e,n,i)}))},t.prototype.keys=function(){var t=this.data.keys();return kt?Array.from(t):t},t.prototype.removeKey=function(t){this.data.delete(t)},t}();function Pt(t){return new Lt(t)}function Ot(t,e){for(var n=new t.constructor(t.length+e.length),i=0;i<t.length;i++)n[i]=t[i];var r=t.length;for(i=0;i<e.length;i++)n[i+r]=e[i];return n}function Rt(t,e){var n;if(Object.create)n=Object.create(t);else{var i=function(){};i.prototype=t,n=new i}return e&&X(n,e),n}function Nt(t){var e=t.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function Et(t,e){return t.hasOwnProperty(e)}function zt(){}var Vt=180/Math.PI;function Bt(t,e){return null==t&&(t=0),null==e&&(e=0),[t,e]}function Ft(t,e){return t[0]=e[0],t[1]=e[1],t}function Gt(t){return[t[0],t[1]]}function Wt(t,e,n){return t[0]=e,t[1]=n,t}function Ht(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function Yt(t,e,n,i){return t[0]=e[0]+n[0]*i,t[1]=e[1]+n[1]*i,t}function Xt(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function Ut(t){return Math.sqrt(jt(t))}var Zt=Ut;function jt(t){return t[0]*t[0]+t[1]*t[1]}var qt=jt;function Kt(t,e,n){return t[0]=e[0]*n[0],t[1]=e[1]*n[1],t}function $t(t,e,n){return t[0]=e[0]/n[0],t[1]=e[1]/n[1],t}function Jt(t,e){return t[0]*e[0]+t[1]*e[1]}function Qt(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function te(t,e){var n=Ut(e);return 0===n?(t[0]=0,t[1]=0):(t[0]=e[0]/n,t[1]=e[1]/n),t}function ee(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var ne=ee;function ie(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var re=ie;function oe(t,e){return t[0]=-e[0],t[1]=-e[1],t}function ae(t,e,n,i){return t[0]=e[0]+i*(n[0]-e[0]),t[1]=e[1]+i*(n[1]-e[1]),t}function se(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}function le(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function ue(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}var he=function(t,e){this.target=t,this.topTarget=e&&e.topTarget},ce=function(){function t(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return t.prototype._dragStart=function(t){for(var e=t.target;e&&!e.draggable;)e=e.parent||e.__hostTarget;e&&(this._draggingTarget=e,e.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new he(e,t),"dragstart",t.event))},t.prototype._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.handler.dispatchToElement(new he(e,t),"drag",t.event);var a=this.handler.findHover(n,i,e).target,s=this._dropTarget;this._dropTarget=a,e!==a&&(s&&a!==s&&this.handler.dispatchToElement(new he(s,t),"dragleave",t.event),a&&a!==s&&this.handler.dispatchToElement(new he(a,t),"dragenter",t.event))}},t.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new he(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new he(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},t}(),pe=ce,de=function(){function t(t){t&&(this._$eventProcessor=t)}return t.prototype.on=function(t,e,n,i){this._$handlers||(this._$handlers={});var r=this._$handlers;if("function"==typeof e&&(i=n,n=e,e=null),!n||!t)return this;var o=this._$eventProcessor;null!=e&&o&&o.normalizeQuery&&(e=o.normalizeQuery(e)),r[t]||(r[t]=[]);for(var a=0;a<r[t].length;a++)if(r[t][a].h===n)return this;var s={h:n,query:e,ctx:i||this,callAtLast:n.zrEventfulCallAtLast},l=r[t].length-1,u=r[t][l];return u&&u.callAtLast?r[t].splice(l,0,s):r[t].push(s),this},t.prototype.isSilent=function(t){var e=this._$handlers;return!e||!e[t]||!e[t].length},t.prototype.off=function(t,e){var n=this._$handlers;if(!n)return this;if(!t)return this._$handlers={},this;if(e){if(n[t]){for(var i=[],r=0,o=n[t].length;r<o;r++)n[t][r].h!==e&&i.push(n[t][r]);n[t]=i}n[t]&&0===n[t].length&&delete n[t]}else delete n[t];return this},t.prototype.trigger=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[t],r=this._$eventProcessor;if(i)for(var o=e.length,a=i.length,s=0;s<a;s++){var l=i[s];if(!r||!r.filter||null==l.query||r.filter(t,l.query))switch(o){case 0:l.h.call(l.ctx);break;case 1:l.h.call(l.ctx,e[0]);break;case 2:l.h.call(l.ctx,e[0],e[1]);break;default:l.h.apply(l.ctx,e)}}return r&&r.afterTrigger&&r.afterTrigger(t),this},t.prototype.triggerWithContext=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[t],r=this._$eventProcessor;if(i)for(var o=e.length,a=e[o-1],s=i.length,l=0;l<s;l++){var u=i[l];if(!r||!r.filter||null==u.query||r.filter(t,u.query))switch(o){case 0:u.h.call(a);break;case 1:u.h.call(a,e[0]);break;case 2:u.h.call(a,e[0],e[1]);break;default:u.h.apply(a,e.slice(1,o-1))}}return r&&r.afterTrigger&&r.afterTrigger(t),this},t}(),fe=de,ge=Math.log(2);function ye(t,e,n,i,r,o){var a=i+"-"+r,s=t.length;if(o.hasOwnProperty(a))return o[a];if(1===e){var l=Math.round(Math.log((1<<s)-1&~r)/ge);return t[n][l]}for(var u=i|1<<n,h=n+1;i&1<<h;)h++;for(var c=0,p=0,d=0;p<s;p++){var f=1<<p;f&r||(c+=(d%2?-1:1)*t[n][p]*ye(t,e-1,h,u,r|f,o),d++)}return o[a]=c,c}function ve(t,e){var n=[[t[0],t[1],1,0,0,0,-e[0]*t[0],-e[0]*t[1]],[0,0,0,t[0],t[1],1,-e[1]*t[0],-e[1]*t[1]],[t[2],t[3],1,0,0,0,-e[2]*t[2],-e[2]*t[3]],[0,0,0,t[2],t[3],1,-e[3]*t[2],-e[3]*t[3]],[t[4],t[5],1,0,0,0,-e[4]*t[4],-e[4]*t[5]],[0,0,0,t[4],t[5],1,-e[5]*t[4],-e[5]*t[5]],[t[6],t[7],1,0,0,0,-e[6]*t[6],-e[6]*t[7]],[0,0,0,t[6],t[7],1,-e[7]*t[6],-e[7]*t[7]]],i={},r=ye(n,8,0,0,0,i);if(0!==r){for(var o=[],a=0;a<8;a++)for(var s=0;s<8;s++)null==o[s]&&(o[s]=0),o[s]+=((a+s)%2?-1:1)*ye(n,7,0===a?1:0,1<<a,1<<s,i)/r*e[a];return function(t,e,n){var i=e*o[6]+n*o[7]+1;t[0]=(e*o[0]+n*o[1]+o[2])/i,t[1]=(e*o[3]+n*o[4]+o[5])/i}}}var me="___zrEVENTSAVED",xe=[];function _e(t,e,n,i,r){if(e.getBoundingClientRect&&b.domSupported&&!be(e)){var o=e[me]||(e[me]={}),a=function(t,e){var n=e.markers;if(n)return n;n=e.markers=[];for(var i=["left","right"],r=["top","bottom"],o=0;o<4;o++){var a=document.createElement("div"),s=o%2,l=(o>>1)%2;a.style.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[s]+":0",r[l]+":0",i[1-s]+":auto",r[1-l]+":auto",""].join("!important;"),t.appendChild(a),n.push(a)}return n}(e,o),s=function(t,e,n){for(var i=n?"invTrans":"trans",r=e[i],o=e.srcCoords,a=[],s=[],l=!0,u=0;u<4;u++){var h=t[u].getBoundingClientRect(),c=2*u,p=h.left,d=h.top;a.push(p,d),l=l&&o&&p===o[c]&&d===o[c+1],s.push(t[u].offsetLeft,t[u].offsetTop)}return l&&r?r:(e.srcCoords=a,e[i]=n?ve(s,a):ve(a,s))}(a,o,r);if(s)return s(t,n,i),!0}return!1}function be(t){return"CANVAS"===t.nodeName.toUpperCase()}var we=/([&<>"'])/g,Se={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function Me(t){return null==t?"":(t+"").replace(we,(function(t,e){return Se[e]}))}var Ie=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Te=[],Ce=b.browser.firefox&&+b.browser.version.split(".")[0]<39;function De(t,e,n,i){return n=n||{},i?Ae(t,e,n):Ce&&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):Ae(t,e,n),n}function Ae(t,e,n){if(b.domSupported&&t.getBoundingClientRect){var i=e.clientX,r=e.clientY;if(be(t)){var o=t.getBoundingClientRect();return n.zrX=i-o.left,void(n.zrY=r-o.top)}if(_e(Te,t,i,r))return n.zrX=Te[0],void(n.zrY=Te[1])}n.zrX=n.zrY=0}function ke(t){return t||window.event}function Le(t,e,n){if(null!=(e=ke(e)).zrX)return e;var i=e.type;if(i&&i.indexOf("touch")>=0){var r="touchend"!==i?e.targetTouches[0]:e.changedTouches[0];r&&De(t,r,e,n)}else{De(t,e,e,n);var o=function(t){var e=t.wheelDelta;if(e)return e;var n=t.deltaX,i=t.deltaY;return null==n||null==i?e:3*(0!==i?Math.abs(i):Math.abs(n))*(i>0?-1:i<0?1:n>0?-1:1)}(e);e.zrDelta=o?o/120:-(e.detail||0)/3}var a=e.button;return null==e.which&&void 0!==a&&Ie.test(e.type)&&(e.which=1&a?1:2&a?3:4&a?2:0),e}function Pe(t,e,n,i){t.addEventListener(e,n,i)}var Oe=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0};function Re(t){return 2===t.which||3===t.which}var Ne=function(){function t(){this._track=[]}return t.prototype.recognize=function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},t.prototype.clear=function(){return this._track.length=0,this},t.prototype._doTrack=function(t,e,n){var i=t.touches;if(i){for(var r={points:[],touches:[],target:e,event:t},o=0,a=i.length;o<a;o++){var s=i[o],l=De(n,s,{});r.points.push([l.zrX,l.zrY]),r.touches.push(s)}this._track.push(r)}},t.prototype._recognize=function(t){for(var e in ze)if(ze.hasOwnProperty(e)){var n=ze[e](this._track,t);if(n)return n}},t}();function Ee(t){var e=t[1][0]-t[0][0],n=t[1][1]-t[0][1];return Math.sqrt(e*e+n*n)}var ze={pinch:function(t,e){var n=t.length;if(n){var i,r=(t[n-1]||{}).points,o=(t[n-2]||{}).points||r;if(o&&o.length>1&&r&&r.length>1){var a=Ee(r)/Ee(o);!isFinite(a)&&(a=1),e.pinchScale=a;var s=[((i=r)[0][0]+i[1][0])/2,(i[0][1]+i[1][1])/2];return e.pinchX=s[0],e.pinchY=s[1],{type:"pinch",target:t[0].target,event:e}}}}};function Ve(){return[1,0,0,1,0,0]}function Be(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function Fe(t,e){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4],t[5]=e[5],t}function Ge(t,e,n){var i=e[0]*n[0]+e[2]*n[1],r=e[1]*n[0]+e[3]*n[1],o=e[0]*n[2]+e[2]*n[3],a=e[1]*n[2]+e[3]*n[3],s=e[0]*n[4]+e[2]*n[5]+e[4],l=e[1]*n[4]+e[3]*n[5]+e[5];return t[0]=i,t[1]=r,t[2]=o,t[3]=a,t[4]=s,t[5]=l,t}function We(t,e,n){return t[0]=e[0],t[1]=e[1],t[2]=e[2],t[3]=e[3],t[4]=e[4]+n[0],t[5]=e[5]+n[1],t}function He(t,e,n){var i=e[0],r=e[2],o=e[4],a=e[1],s=e[3],l=e[5],u=Math.sin(n),h=Math.cos(n);return t[0]=i*h+a*u,t[1]=-i*u+a*h,t[2]=r*h+s*u,t[3]=-r*u+h*s,t[4]=h*o+u*l,t[5]=h*l-u*o,t}function Ye(t,e,n){var i=n[0],r=n[1];return t[0]=e[0]*i,t[1]=e[1]*r,t[2]=e[2]*i,t[3]=e[3]*r,t[4]=e[4]*i,t[5]=e[5]*r,t}function Xe(t,e){var n=e[0],i=e[2],r=e[4],o=e[1],a=e[3],s=e[5],l=n*a-o*i;return l?(l=1/l,t[0]=a*l,t[1]=-o*l,t[2]=-i*l,t[3]=n*l,t[4]=(i*s-a*r)*l,t[5]=(o*r-n*s)*l,t):null}function Ue(t){var e=[1,0,0,1,0,0];return Fe(e,t),e}var Ze=function(){function t(t,e){this.x=t||0,this.y=e||0}return t.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},t.prototype.clone=function(){return new t(this.x,this.y)},t.prototype.set=function(t,e){return this.x=t,this.y=e,this},t.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},t.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},t.prototype.scale=function(t){this.x*=t,this.y*=t},t.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},t.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},t.prototype.dot=function(t){return this.x*t.x+this.y*t.y},t.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},t.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},t.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},t.prototype.distance=function(t){var e=this.x-t.x,n=this.y-t.y;return Math.sqrt(e*e+n*n)},t.prototype.distanceSquare=function(t){var e=this.x-t.x,n=this.y-t.y;return e*e+n*n},t.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},t.prototype.transform=function(t){if(t){var e=this.x,n=this.y;return this.x=t[0]*e+t[2]*n+t[4],this.y=t[1]*e+t[3]*n+t[5],this}},t.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},t.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},t.set=function(t,e,n){t.x=e,t.y=n},t.copy=function(t,e){t.x=e.x,t.y=e.y},t.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},t.lenSquare=function(t){return t.x*t.x+t.y*t.y},t.dot=function(t,e){return t.x*e.x+t.y*e.y},t.add=function(t,e,n){t.x=e.x+n.x,t.y=e.y+n.y},t.sub=function(t,e,n){t.x=e.x-n.x,t.y=e.y-n.y},t.scale=function(t,e,n){t.x=e.x*n,t.y=e.y*n},t.scaleAndAdd=function(t,e,n,i){t.x=e.x+n.x*i,t.y=e.y+n.y*i},t.lerp=function(t,e,n,i){var r=1-i;t.x=r*e.x+i*n.x,t.y=r*e.y+i*n.y},t}(),je=Ze,qe=Math.min,Ke=Math.max,$e=new je,Je=new je,Qe=new je,tn=new je,en=new je,nn=new je,rn=function(){function t(t,e,n,i){n<0&&(t+=n,n=-n),i<0&&(e+=i,i=-i),this.x=t,this.y=e,this.width=n,this.height=i}return t.prototype.union=function(t){var e=qe(t.x,this.x),n=qe(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Ke(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=Ke(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=e,this.y=n},t.prototype.applyTransform=function(e){t.applyTransform(this,this,e)},t.prototype.calculateTransform=function(t){var e=this,n=t.width/e.width,i=t.height/e.height,r=[1,0,0,1,0,0];return We(r,r,[-e.x,-e.y]),Ye(r,r,[n,i]),We(r,r,[t.x,t.y]),r},t.prototype.intersect=function(e,n){if(!e)return!1;e instanceof t||(e=t.create(e));var i=this,r=i.x,o=i.x+i.width,a=i.y,s=i.y+i.height,l=e.x,u=e.x+e.width,h=e.y,c=e.y+e.height,p=!(o<l||u<r||s<h||c<a);if(n){var d=1/0,f=0,g=Math.abs(o-l),y=Math.abs(u-r),v=Math.abs(s-h),m=Math.abs(c-a),x=Math.min(g,y),_=Math.min(v,m);o<l||u<r?x>f&&(f=x,g<y?je.set(nn,-g,0):je.set(nn,y,0)):x<d&&(d=x,g<y?je.set(en,g,0):je.set(en,-y,0)),s<h||c<a?_>f&&(f=_,v<m?je.set(nn,0,-v):je.set(nn,0,m)):x<d&&(d=x,v<m?je.set(en,0,v):je.set(en,0,-m))}return n&&je.copy(n,p?en:nn),p},t.prototype.contain=function(t,e){var n=this;return t>=n.x&&t<=n.x+n.width&&e>=n.y&&e<=n.y+n.height},t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copy=function(e){t.copy(this,e)},t.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},t.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},t.prototype.isZero=function(){return 0===this.width||0===this.height},t.create=function(e){return new t(e.x,e.y,e.width,e.height)},t.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},t.applyTransform=function(e,n,i){if(i){if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var r=i[0],o=i[3],a=i[4],s=i[5];return e.x=n.x*r+a,e.y=n.y*o+s,e.width=n.width*r,e.height=n.height*o,e.width<0&&(e.x+=e.width,e.width=-e.width),void(e.height<0&&(e.y+=e.height,e.height=-e.height))}$e.x=Qe.x=n.x,$e.y=tn.y=n.y,Je.x=tn.x=n.x+n.width,Je.y=Qe.y=n.y+n.height,$e.transform(i),tn.transform(i),Je.transform(i),Qe.transform(i),e.x=qe($e.x,Je.x,Qe.x,tn.x),e.y=qe($e.y,Je.y,Qe.y,tn.y);var l=Ke($e.x,Je.x,Qe.x,tn.x),u=Ke($e.y,Je.y,Qe.y,tn.y);e.width=l-e.x,e.height=u-e.y}else e!==n&&t.copy(e,n)},t}(),on=rn,an="silent";function sn(){Oe(this.event)}var ln=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.handler=null,e}return y(e,t),e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(fe),un=function(t,e){this.x=t,this.y=e},hn=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],cn=new on(0,0,0,0),pn=function(t){function e(e,n,i,r,o){var a=t.call(this)||this;return a._hovered=new un(0,0),a.storage=e,a.painter=n,a.painterRoot=r,a._pointerSize=o,i=i||new ln,a.proxy=null,a.setHandlerProxy(i),a._draggingMgr=new pe(a),a}return y(e,t),e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(J(hn,(function(e){t.on&&t.on(e,this[e],this)}),this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var e=t.zrX,n=t.zrY,i=gn(this,e,n),r=this._hovered,o=r.target;o&&!o.__zr&&(o=(r=this.findHover(r.x,r.y)).target);var a=this._hovered=i?new un(e,n):this.findHover(e,n),s=a.target,l=this.proxy;l.setCursor&&l.setCursor(s?s.cursor:"default"),o&&s!==o&&this.dispatchToElement(r,"mouseout",t),this.dispatchToElement(a,"mousemove",t),s&&s!==o&&this.dispatchToElement(a,"mouseover",t)},e.prototype.mouseout=function(t){var e=t.zrEventControl;"only_globalout"!==e&&this.dispatchToElement(this._hovered,"mouseout",t),"no_globalout"!==e&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new un(0,0)},e.prototype.dispatch=function(t,e){var n=this[t];n&&n.call(this,e)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var e=this.proxy;e.setCursor&&e.setCursor(t)},e.prototype.dispatchToElement=function(t,e,n){var i=(t=t||{}).target;if(!i||!i.silent){for(var r="on"+e,o=function(t,e,n){return{type:t,event:n,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:sn}}(e,t,n);i&&(i[r]&&(o.cancelBubble=!!i[r].call(i,o)),i.trigger(e,o),i=i.__hostTarget?i.__hostTarget:i.parent,!o.cancelBubble););o.cancelBubble||(this.trigger(e,o),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer((function(t){"function"==typeof t[r]&&t[r].call(t,o),t.trigger&&t.trigger(e,o)})))}},e.prototype.findHover=function(t,e,n){var i=this.storage.getDisplayList(),r=new un(t,e);if(fn(i,r,t,e,n),this._pointerSize&&!r.target){for(var o=[],a=this._pointerSize,s=a/2,l=new on(t-s,e-s,a,a),u=i.length-1;u>=0;u--){var h=i[u];h===n||h.ignore||h.ignoreCoarsePointer||h.parent&&h.parent.ignoreCoarsePointer||(cn.copy(h.getBoundingRect()),h.transform&&cn.applyTransform(h.transform),cn.intersect(l)&&o.push(h))}if(o.length)for(var c=Math.PI/12,p=2*Math.PI,d=0;d<s;d+=4)for(var f=0;f<p;f+=c)if(fn(o,r,t+d*Math.cos(f),e+d*Math.sin(f),n),r.target)return r}return r},e.prototype.processGesture=function(t,e){this._gestureMgr||(this._gestureMgr=new Ne);var n=this._gestureMgr;"start"===e&&n.clear();var i=n.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if("end"===e&&n.clear(),i){var r=i.type;t.gestureEvent=r;var o=new un;o.target=i.target,this.dispatchToElement(o,r,i.event)}},e}(fe);function dn(t,e,n){if(t[t.rectHover?"rectContain":"contain"](e,n)){for(var i=t,r=void 0,o=!1;i;){if(i.ignoreClip&&(o=!0),!o){var a=i.getClipPath();if(a&&!a.contain(e,n))return!1;i.silent&&(r=!0)}i=i.__hostTarget||i.parent}return!r||an}return!1}function fn(t,e,n,i,r){for(var o=t.length-1;o>=0;o--){var a=t[o],s=void 0;if(a!==r&&!a.ignore&&(s=dn(a,n,i))&&(!e.topTarget&&(e.topTarget=a),s!==an)){e.target=a;break}}}function gn(t,e,n){var i=t.painter;return e<0||e>i.getWidth()||n<0||n>i.getHeight()}J(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],(function(t){pn.prototype[t]=function(e){var n,i,r=e.zrX,o=e.zrY,a=gn(this,r,o);if("mouseup"===t&&a||(i=(n=this.findHover(r,o)).target),"mousedown"===t)this._downEl=i,this._downPoint=[e.zrX,e.zrY],this._upEl=i;else if("mouseup"===t)this._upEl=i;else if("click"===t){if(this._downEl!==this._upEl||!this._downPoint||ne(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,t,e)}}));var yn=pn,vn=7;function mn(t,e,n,i){var r=e+1;if(r===n)return 1;if(i(t[r++],t[e])<0){for(;r<n&&i(t[r],t[r-1])<0;)r++;!function(t,e,n){for(n--;e<n;){var i=t[e];t[e++]=t[n],t[n--]=i}}(t,e,r)}else for(;r<n&&i(t[r],t[r-1])>=0;)r++;return r-e}function xn(t,e,n,i,r){for(i===e&&i++;i<n;i++){for(var o,a=t[i],s=e,l=i;s<l;)r(a,t[o=s+l>>>1])<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 _n(t,e,n,i,r,o){var a=0,s=0,l=1;if(o(t,e[n+r])>0){for(s=i-r;l<s&&o(t,e[n+r+l])>0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}else{for(s=r+1;l<s&&o(t,e[n+r-l])<=0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s);var u=a;a=r-l,l=r-u}for(a++;a<l;){var h=a+(l-a>>>1);o(t,e[n+h])>0?a=h+1:l=h}return l}function bn(t,e,n,i,r,o){var a=0,s=0,l=1;if(o(t,e[n+r])<0){for(s=r+1;l<s&&o(t,e[n+r-l])<0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s);var u=a;a=r-l,l=r-u}else{for(s=i-r;l<s&&o(t,e[n+r+l])>=0;)a=l,(l=1+(l<<1))<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}for(a++;a<l;){var h=a+(l-a>>>1);o(t,e[n+h])<0?l=h:a=h+1}return l}function wn(t,e,n,i){n||(n=0),i||(i=t.length);var r=i-n;if(!(r<2)){var o=0;if(r<32)xn(t,n,i,n+(o=mn(t,n,i,e)),e);else{var a=function(t,e){var n,i,r=vn,o=0;t.length;var a=[];function s(s){var l=n[s],u=i[s],h=n[s+1],c=i[s+1];i[s]=u+c,s===o-3&&(n[s+1]=n[s+2],i[s+1]=i[s+2]),o--;var p=bn(t[h],t,l,u,0,e);l+=p,0!=(u-=p)&&0!==(c=_n(t[l+u-1],t,h,c,c-1,e))&&(u<=c?function(n,i,o,s){var l=0;for(l=0;l<i;l++)a[l]=t[n+l];var u=0,h=o,c=n;if(t[c++]=t[h++],0!=--s)if(1!==i){for(var p,d,f,g=r;;){p=0,d=0,f=!1;do{if(e(t[h],a[u])<0){if(t[c++]=t[h++],d++,p=0,0==--s){f=!0;break}}else if(t[c++]=a[u++],p++,d=0,1==--i){f=!0;break}}while((p|d)<g);if(f)break;do{if(0!==(p=bn(t[h],a,u,i,0,e))){for(l=0;l<p;l++)t[c+l]=a[u+l];if(c+=p,u+=p,(i-=p)<=1){f=!0;break}}if(t[c++]=t[h++],0==--s){f=!0;break}if(0!==(d=_n(a[u],t,h,s,0,e))){for(l=0;l<d;l++)t[c+l]=t[h+l];if(c+=d,h+=d,0==(s-=d)){f=!0;break}}if(t[c++]=a[u++],1==--i){f=!0;break}g--}while(p>=vn||d>=vn);if(f)break;g<0&&(g=0),g+=2}if((r=g)<1&&(r=1),1===i){for(l=0;l<s;l++)t[c+l]=t[h+l];t[c+s]=a[u]}else{if(0===i)throw new Error;for(l=0;l<i;l++)t[c+l]=a[u+l]}}else{for(l=0;l<s;l++)t[c+l]=t[h+l];t[c+s]=a[u]}else for(l=0;l<i;l++)t[c+l]=a[u+l]}(l,u,h,c):function(n,i,o,s){var l=0;for(l=0;l<s;l++)a[l]=t[o+l];var u=n+i-1,h=s-1,c=o+s-1,p=0,d=0;if(t[c--]=t[u--],0!=--i)if(1!==s){for(var f=r;;){var g=0,y=0,v=!1;do{if(e(a[h],t[u])<0){if(t[c--]=t[u--],g++,y=0,0==--i){v=!0;break}}else if(t[c--]=a[h--],y++,g=0,1==--s){v=!0;break}}while((g|y)<f);if(v)break;do{if(0!=(g=i-bn(a[h],t,n,i,i-1,e))){for(i-=g,d=1+(c-=g),p=1+(u-=g),l=g-1;l>=0;l--)t[d+l]=t[p+l];if(0===i){v=!0;break}}if(t[c--]=a[h--],1==--s){v=!0;break}if(0!=(y=s-_n(t[u],a,0,s,s-1,e))){for(s-=y,d=1+(c-=y),p=1+(h-=y),l=0;l<y;l++)t[d+l]=a[p+l];if(s<=1){v=!0;break}}if(t[c--]=t[u--],0==--i){v=!0;break}f--}while(g>=vn||y>=vn);if(v)break;f<0&&(f=0),f+=2}if((r=f)<1&&(r=1),1===s){for(d=1+(c-=i),p=1+(u-=i),l=i-1;l>=0;l--)t[d+l]=t[p+l];t[c]=a[h]}else{if(0===s)throw new Error;for(p=c-(s-1),l=0;l<s;l++)t[p+l]=a[l]}}else{for(d=1+(c-=i),p=1+(u-=i),l=i-1;l>=0;l--)t[d+l]=t[p+l];t[c]=a[h]}else for(p=c-(s-1),l=0;l<s;l++)t[p+l]=a[l]}(l,u,h,c))}return n=[],i=[],{mergeRuns:function(){for(;o>1;){var t=o-2;if(t>=1&&i[t-1]<=i[t]+i[t+1]||t>=2&&i[t-2]<=i[t]+i[t-1])i[t-1]<i[t+1]&&t--;else if(i[t]>i[t+1])break;s(t)}},forceMergeRuns:function(){for(;o>1;){var t=o-2;t>0&&i[t-1]<i[t+1]&&t--,s(t)}},pushRun:function(t,e){n[o]=t,i[o]=e,o+=1}}}(t,e),s=function(t){for(var e=0;t>=32;)e|=1&t,t>>=1;return t+e}(r);do{if((o=mn(t,n,i,e))<s){var l=r;l>s&&(l=s),xn(t,n,n+l,n+o,e),o=l}a.pushRun(n,o),a.mergeRuns(),r-=o,n+=o}while(0!==r);a.forceMergeRuns()}}}var Sn=1,Mn=4,In=!1;function Tn(){In||(In=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Cn(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var Dn=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Cn}return t.prototype.traverse=function(t,e){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(t,e)},t.prototype.getDisplayList=function(t,e){e=e||!1;var n=this._displayList;return!t&&n.length||this.updateDisplayList(e),n},t.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var e=this._roots,n=this._displayList,i=0,r=e.length;i<r;i++)this._updateAndAddDisplayable(e[i],null,t);n.length=this._displayListLen,wn(n,Cn)},t.prototype._updateAndAddDisplayable=function(t,e,n){if(!t.ignore||n){t.beforeUpdate(),t.update(),t.afterUpdate();var i=t.getClipPath();if(t.ignoreClip)e=null;else if(i){e=e?e.slice():[];for(var r=i,o=t;r;)r.parent=o,r.updateTransform(),e.push(r),o=r,r=r.getClipPath()}if(t.childrenRef){for(var a=t.childrenRef(),s=0;s<a.length;s++){var l=a[s];t.__dirty&&(l.__dirty|=Sn),this._updateAndAddDisplayable(l,e,n)}t.__dirty=0}else{var u=t;e&&e.length?u.__clipPaths=e:u.__clipPaths&&u.__clipPaths.length>0&&(u.__clipPaths=[]),isNaN(u.z)&&(Tn(),u.z=0),isNaN(u.z2)&&(Tn(),u.z2=0),isNaN(u.zlevel)&&(Tn(),u.zlevel=0),this._displayList[this._displayListLen++]=u}var h=t.getDecalElement&&t.getDecalElement();h&&this._updateAndAddDisplayable(h,e,n);var c=t.getTextGuideLine();c&&this._updateAndAddDisplayable(c,e,n);var p=t.getTextContent();p&&this._updateAndAddDisplayable(p,e,n)}},t.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},t.prototype.delRoot=function(t){if(t instanceof Array)for(var e=0,n=t.length;e<n;e++)this.delRoot(t[e]);else{var i=j(this._roots,t);i>=0&&this._roots.splice(i,1)}},t.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},t.prototype.getRoots=function(){return this._roots},t.prototype.dispose=function(){this._displayList=null,this._roots=null},t}(),An=Dn,kn=b.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)},Ln={linear:function(t){return t},quadraticIn:function(t){return t*t},quadraticOut:function(t){return t*(2-t)},quadraticInOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)},cubicIn:function(t){return t*t*t},cubicOut:function(t){return--t*t*t+1},cubicInOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)},quarticIn:function(t){return t*t*t*t},quarticOut:function(t){return 1- --t*t*t*t},quarticInOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)},quinticIn:function(t){return t*t*t*t*t},quinticOut:function(t){return--t*t*t*t*t+1},quinticInOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)},sinusoidalIn:function(t){return 1-Math.cos(t*Math.PI/2)},sinusoidalOut:function(t){return Math.sin(t*Math.PI/2)},sinusoidalInOut:function(t){return.5*(1-Math.cos(Math.PI*t))},exponentialIn:function(t){return 0===t?0:Math.pow(1024,t-1)},exponentialOut:function(t){return 1===t?1:1-Math.pow(2,-10*t)},exponentialInOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(2-Math.pow(2,-10*(t-1)))},circularIn:function(t){return 1-Math.sqrt(1-t*t)},circularOut:function(t){return Math.sqrt(1- --t*t)},circularInOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)},elasticIn:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),-n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4))},elasticOut:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/.4)+1)},elasticInOut:function(t){var e,n=.1;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=.1):e=.4*Math.asin(1/n)/(2*Math.PI),(t*=2)<1?n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4)*-.5:n*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/.4)*.5+1)},backIn:function(t){var e=1.70158;return t*t*((e+1)*t-e)},backOut:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},backInOut:function(t){var e=2.5949095;return(t*=2)<1?t*t*((e+1)*t-e)*.5:.5*((t-=2)*t*((e+1)*t+e)+2)},bounceIn:function(t){return 1-Ln.bounceOut(1-t)},bounceOut:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},bounceInOut:function(t){return t<.5?.5*Ln.bounceIn(2*t):.5*Ln.bounceOut(2*t-1)+.5}},Pn=Ln,On=Math.pow,Rn=Math.sqrt,Nn=1e-8,En=1e-4,zn=Rn(3),Vn=1/3,Bn=Bt(),Fn=Bt(),Gn=Bt();function Wn(t){return t>-Nn&&t<Nn}function Hn(t){return t>Nn||t<-Nn}function Yn(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 Xn(t,e,n,i,r){var o=1-r;return 3*(((e-t)*o+2*(n-e)*r)*o+(i-n)*r*r)}function Un(t,e,n,i,r,o){var a=i+3*(e-n)-t,s=3*(n-2*e+t),l=3*(e-t),u=t-r,h=s*s-3*a*l,c=s*l-9*a*u,p=l*l-3*s*u,d=0;if(Wn(h)&&Wn(c))Wn(s)?o[0]=0:(M=-l/s)>=0&&M<=1&&(o[d++]=M);else{var f=c*c-4*h*p;if(Wn(f)){var g=c/h,y=-g/2;(M=-s/a+g)>=0&&M<=1&&(o[d++]=M),y>=0&&y<=1&&(o[d++]=y)}else if(f>0){var v=Rn(f),m=h*s+1.5*a*(-c+v),x=h*s+1.5*a*(-c-v);(M=(-s-((m=m<0?-On(-m,Vn):On(m,Vn))+(x=x<0?-On(-x,Vn):On(x,Vn))))/(3*a))>=0&&M<=1&&(o[d++]=M)}else{var _=(2*h*s-3*a*c)/(2*Rn(h*h*h)),b=Math.acos(_)/3,w=Rn(h),S=Math.cos(b),M=(-s-2*w*S)/(3*a),I=(y=(-s+w*(S+zn*Math.sin(b)))/(3*a),(-s+w*(S-zn*Math.sin(b)))/(3*a));M>=0&&M<=1&&(o[d++]=M),y>=0&&y<=1&&(o[d++]=y),I>=0&&I<=1&&(o[d++]=I)}}return d}function Zn(t,e,n,i,r){var o=6*n-12*e+6*t,a=9*e+3*i-3*t-9*n,s=3*e-3*t,l=0;if(Wn(a))Hn(o)&&(h=-s/o)>=0&&h<=1&&(r[l++]=h);else{var u=o*o-4*a*s;if(Wn(u))r[0]=-o/(2*a);else if(u>0){var h,c=Rn(u),p=(-o-c)/(2*a);(h=(-o+c)/(2*a))>=0&&h<=1&&(r[l++]=h),p>=0&&p<=1&&(r[l++]=p)}}return l}function jn(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,h=(l-s)*r+s,c=(h-u)*r+u;o[0]=t,o[1]=a,o[2]=u,o[3]=c,o[4]=c,o[5]=h,o[6]=l,o[7]=i}function qn(t,e,n,i,r,o,a,s,l,u,h){var c,p,d,f,g,y=.005,v=1/0;Bn[0]=l,Bn[1]=u;for(var m=0;m<1;m+=.05)Fn[0]=Yn(t,n,r,a,m),Fn[1]=Yn(e,i,o,s,m),(f=re(Bn,Fn))<v&&(c=m,v=f);v=1/0;for(var x=0;x<32&&!(y<En);x++)p=c-y,d=c+y,Fn[0]=Yn(t,n,r,a,p),Fn[1]=Yn(e,i,o,s,p),f=re(Fn,Bn),p>=0&&f<v?(c=p,v=f):(Gn[0]=Yn(t,n,r,a,d),Gn[1]=Yn(e,i,o,s,d),g=re(Gn,Bn),d<=1&&g<v?(c=d,v=g):y*=.5);return h&&(h[0]=Yn(t,n,r,a,c),h[1]=Yn(e,i,o,s,c)),Rn(v)}function Kn(t,e,n,i,r,o,a,s,l){for(var u=t,h=e,c=0,p=1/l,d=1;d<=l;d++){var f=d*p,g=Yn(t,n,r,a,f),y=Yn(e,i,o,s,f),v=g-u,m=y-h;c+=Math.sqrt(v*v+m*m),u=g,h=y}return c}function $n(t,e,n,i){var r=1-i;return r*(r*t+2*i*e)+i*i*n}function Jn(t,e,n,i){return 2*((1-i)*(e-t)+i*(n-e))}function Qn(t,e,n){var i=t+n-2*e;return 0===i?.5:(t-e)/i}function ti(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 ei(t,e,n,i,r,o,a,s,l){var u,h=.005,c=1/0;Bn[0]=a,Bn[1]=s;for(var p=0;p<1;p+=.05)Fn[0]=$n(t,n,r,p),Fn[1]=$n(e,i,o,p),(y=re(Bn,Fn))<c&&(u=p,c=y);c=1/0;for(var d=0;d<32&&!(h<En);d++){var f=u-h,g=u+h;Fn[0]=$n(t,n,r,f),Fn[1]=$n(e,i,o,f);var y=re(Fn,Bn);if(f>=0&&y<c)u=f,c=y;else{Gn[0]=$n(t,n,r,g),Gn[1]=$n(e,i,o,g);var v=re(Gn,Bn);g<=1&&v<c?(u=g,c=v):h*=.5}}return l&&(l[0]=$n(t,n,r,u),l[1]=$n(e,i,o,u)),Rn(c)}function ni(t,e,n,i,r,o,a){for(var s=t,l=e,u=0,h=1/a,c=1;c<=a;c++){var p=c*h,d=$n(t,n,r,p),f=$n(e,i,o,p),g=d-s,y=f-l;u+=Math.sqrt(g*g+y*y),s=d,l=f}return u}var ii=/cubic-bezier\(([0-9,\.e ]+)\)/;function ri(t){var e=t&&ii.exec(t);if(e){var n=e[1].split(","),i=+It(n[0]),r=+It(n[1]),o=+It(n[2]),a=+It(n[3]);if(isNaN(i+r+o+a))return;var s=[];return function(t){return t<=0?0:t>=1?1:Un(0,i,o,1,t,s)&&Yn(0,r,a,1,s[0])}}}var oi=function(){function t(t){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=t.loop||!1,this.onframe=t.onframe||zt,this.ondestroy=t.ondestroy||zt,this.onrestart=t.onrestart||zt,t.easing&&this.setEasing(t.easing)}return t.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),!this._paused){var n=this._life,i=t-this._startTime-this._pausedTime,r=i/n;r<0&&(r=0),r=Math.min(r,1);var o=this.easingFunc,a=o?o(r):r;if(this.onframe(a),1===r){if(!this.loop)return!0;var s=i%n;this._startTime=t-s,this._pausedTime=0,this.onrestart()}return!1}this._pausedTime+=e},t.prototype.pause=functi