mirror of
https://gitee.com/chu1204505056/vue-admin-beautiful.git
synced 2025-05-05 22:06:33 +08:00
7 lines
61 KiB
JavaScript
7 lines
61 KiB
JavaScript
/*!
|
|
* build: vue-admin-better
|
|
* vue-admin-beautiful.com
|
|
* https://gitee.com/chu1204505056/vue-admin-better
|
|
* time: 2022-2-26 00:26:40
|
|
*/
|
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["vab-chunk-020089fc"],{"1ce9":function(t,e,i){"use strict";var r;r="undefined"!==typeof window&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)},e["a"]=r},"2a50":function(t,e,i){"use strict";var r=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"echarts"})},n=[],a=(i("89a8"),i("1a91"),i("c93c"),i("acc0"),i("8ea3"),i("be2d")),o=i("c81a"),s=i.n(o),h=i("b456"),l=["theme","initOptions","autoresize"],u=["manualUpdate","watchShallow"],c={props:{options:Object,theme:[String,Object],initOptions:Object,group:String,autoresize:Boolean,watchShallow:Boolean,manualUpdate:Boolean},data:function(){return{lastArea:0}},watch:{group:function(t){this.chart.group=t}},methods:{mergeOptions:function(t,e,i){this.manualUpdate&&(this.manualOptions=t),this.chart?this.delegateMethod("setOption",t,e,i):this.init(t)},appendData:function(t){this.delegateMethod("appendData",t)},resize:function(t){this.delegateMethod("resize",t)},dispatchAction:function(t){this.delegateMethod("dispatchAction",t)},convertToPixel:function(t,e){return this.delegateMethod("convertToPixel",t,e)},convertFromPixel:function(t,e){return this.delegateMethod("convertFromPixel",t,e)},containPixel:function(t,e){return this.delegateMethod("containPixel",t,e)},showLoading:function(t,e){this.delegateMethod("showLoading",t,e)},hideLoading:function(){this.delegateMethod("hideLoading")},getDataURL:function(t){return this.delegateMethod("getDataURL",t)},getConnectedDataURL:function(t){return this.delegateMethod("getConnectedDataURL",t)},clear:function(){this.delegateMethod("clear")},dispose:function(){this.delegateMethod("dispose")},delegateMethod:function(t){var e;this.chart||this.init();for(var i=arguments.length,r=new Array(i>1?i-1:0),n=1;n<i;n++)r[n-1]=arguments[n];return(e=this.chart)[t].apply(e,r)},delegateGet:function(t){return this.chart||this.init(),this.chart[t]()},getArea:function(){return this.$el.offsetWidth*this.$el.offsetHeight},init:function(t){var e=this;if(!this.chart){var i=a["a"].init(this.$el,this.theme,this.initOptions);this.group&&(i.group=this.group),i.setOption(t||this.manualOptions||this.options||{},!0),Object.keys(this.$listeners).forEach((function(t){var r=e.$listeners[t];0===t.indexOf("zr:")?i.getZr().on(t.slice(3),r):i.on(t,r)})),this.autoresize&&(this.lastArea=this.getArea(),this.__resizeHandler=s()((function(){0===e.lastArea?(e.mergeOptions({},!0),e.resize(),e.mergeOptions(e.options||e.manualOptions||{},!0)):e.resize(),e.lastArea=e.getArea()}),100,{leading:!0}),Object(h["a"])(this.$el,this.__resizeHandler)),Object.defineProperties(this,{width:{configurable:!0,get:function(){return e.delegateGet("getWidth")}},height:{configurable:!0,get:function(){return e.delegateGet("getHeight")}},isDisposed:{configurable:!0,get:function(){return!!e.delegateGet("isDisposed")}},computedOptions:{configurable:!0,get:function(){return e.delegateGet("getOption")}}}),this.chart=i}},initOptionsWatcher:function(){var t=this;this.__unwatchOptions&&(this.__unwatchOptions(),this.__unwatchOptions=null),this.manualUpdate||(this.__unwatchOptions=this.$watch("options",(function(e,i){!t.chart&&e?t.init():t.chart.setOption(e,e!==i)}),{deep:!this.watchShallow}))},destroy:function(){this.autoresize&&Object(h["b"])(this.$el,this.__resizeHandler),this.dispose(),this.chart=null},refresh:function(){this.chart&&(this.destroy(),this.init())}},created:function(){var t=this;this.initOptionsWatcher(),l.forEach((function(e){t.$watch(e,(function(){t.refresh()}),{deep:!0})})),u.forEach((function(e){t.$watch(e,(function(){t.initOptionsWatcher(),t.refresh()}))}))},mounted:function(){this.options&&this.init()},activated:function(){this.autoresize&&this.chart&&this.chart.resize()},destroyed:function(){this.chart&&this.destroy()},connect:function(t){"string"!==typeof t&&(t=t.map((function(t){return t.chart}))),a["a"].connect(t)},disconnect:function(t){a["a"].disConnect(t)},registerMap:function(t,e,i){a["a"].registerMap(t,e,i)},registerTheme:function(t,e){a["a"].registerTheme(t,e)},graphic:a["a"].graphic},p=c,d=(i("a376"),i("cba8")),f=Object(d["a"])(p,r,n,!1,null,null,null);e["a"]=f.exports},"47fc":function(t,e,i){"use strict";var r=i("cdbd"),n=i("4de9"),a=i("1ce9"),o=i("a755"),s=function(t){function e(e){var i=t.call(this)||this;return i._running=!1,i._time=0,i._pausedTime=0,i._pauseStart=0,i._paused=!1,e=e||{},i.stage=e.stage||{},i.onframe=e.onframe||function(){},i}return Object(r["b"])(e,t),e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._clipsHead?(this._clipsTail.next=t,t.prev=this._clipsTail,t.next=null,this._clipsTail=t):this._clipsHead=this._clipsTail=t,t.animation=this},e.prototype.addAnimator=function(t){t.animation=this;var e=t.getClip();e&&this.addClip(e)},e.prototype.removeClip=function(t){if(t.animation){var e=t.prev,i=t.next;e?e.next=i:this._clipsHead=i,i?i.prev=e:this._clipsTail=e,t.next=t.prev=t.animation=null}},e.prototype.removeAnimator=function(t){var e=t.getClip();e&&this.removeClip(e),t.animation=null},e.prototype.update=function(t){var e=(new Date).getTime()-this._pausedTime,i=e-this._time,r=this._clipsHead;while(r){var n=r.next,a=r.step(e,i);a?(r.ondestroy&&r.ondestroy(),this.removeClip(r),r=n):r=n}this._time=e,t||(this.onframe(i),this.trigger("frame",i),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;function e(){t._running&&(Object(a["a"])(e),!t._paused&&t.update())}this._running=!0,Object(a["a"])(e)},e.prototype.start=function(){this._running||(this._time=(new Date).getTime(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=(new Date).getTime(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=(new Date).getTime()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){var t=this._clipsHead;while(t){var e=t.next;t.prev=t.next=t.animation=null,t=e}this._clipsHead=this._clipsTail=null},e.prototype.isFinished=function(){return null==this._clipsHead},e.prototype.animate=function(t,e){e=e||{},this.start();var i=new o["b"](t,e.loop);return this.addAnimator(i),i},e}(n["a"]);e["a"]=s},"9d21":function(t,e,i){"use strict";function r(t,e,i){var r=null==e.x?0:e.x,n=null==e.x2?1:e.x2,a=null==e.y?0:e.y,o=null==e.y2?0:e.y2;e.global||(r=r*i.width+i.x,n=n*i.width+i.x,a=a*i.height+i.y,o=o*i.height+i.y),r=isNaN(r)?0:r,n=isNaN(n)?1:n,a=isNaN(a)?0:a,o=isNaN(o)?0:o;var s=t.createLinearGradient(r,a,n,o);return s}function n(t,e,i){var r=i.width,n=i.height,a=Math.min(r,n),o=null==e.x?.5:e.x,s=null==e.y?.5:e.y,h=null==e.r?.5:e.r;e.global||(o=o*r+i.x,s=s*n+i.y,h*=a);var l=t.createRadialGradient(o,s,0,o,s,h);return l}function a(t,e,i){for(var a="radial"===e.type?n(t,e,i):r(t,e,i),o=e.colorStops,s=0;s<o.length;s++)a.addColorStop(o[s].offset,o[s].color);return a}function o(t,e){if(t===e||!t&&!e)return!1;if(!t||!e||t.length!==e.length)return!0;for(var i=0;i<t.length;i++)if(t[i]!==e[i])return!0;return!1}i.d(e,"a",(function(){return a})),i.d(e,"b",(function(){return o}))},"9dbb":function(t,e,i){},a376:function(t,e,i){"use strict";i("9dbb")},a755:function(t,e,i){"use strict";i.d(e,"c",(function(){return u})),i.d(e,"a",(function(){return x}));var r={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,i=.1,r=.4;return 0===t?0:1===t?1:(!i||i<1?(i=1,e=r/4):e=r*Math.asin(1/i)/(2*Math.PI),-i*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/r))},elasticOut:function(t){var e,i=.1,r=.4;return 0===t?0:1===t?1:(!i||i<1?(i=1,e=r/4):e=r*Math.asin(1/i)/(2*Math.PI),i*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/r)+1)},elasticInOut:function(t){var e,i=.1,r=.4;return 0===t?0:1===t?1:(!i||i<1?(i=1,e=r/4):e=r*Math.asin(1/i)/(2*Math.PI),(t*=2)<1?i*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/r)*-.5:i*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/r)*.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-r.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*r.bounceIn(2*t):.5*r.bounceOut(2*t-1)+.5}},n=r,a=function(){function t(t){this._initialized=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=t.life||1e3,this._delay=t.delay||0,this.loop=null!=t.loop&&t.loop,this.gap=t.gap||0,this.easing=t.easing||"linear",this.onframe=t.onframe,this.ondestroy=t.ondestroy,this.onrestart=t.onrestart}return t.prototype.step=function(t,e){if(this._initialized||(this._startTime=t+this._delay,this._initialized=!0),!this._paused){var i=(t-this._startTime-this._pausedTime)/this._life;i<0&&(i=0),i=Math.min(i,1);var r=this.easing,a="string"===typeof r?n[r]:r,o="function"===typeof a?a(i):i;if(this.onframe&&this.onframe(o),1===i){if(!this.loop)return!0;this._restart(t),this.onrestart&&this.onrestart()}return!1}this._pausedTime+=e},t.prototype._restart=function(t){var e=(t-this._startTime-this._pausedTime)%this._life;this._startTime=t-e+this.gap,this._pausedTime=0},t.prototype.pause=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t}(),o=a,s=i("463e"),h=i("6b42"),l=Array.prototype.slice;function u(t,e,i){return(e-t)*i+t}function c(t,e,i){return i>.5?e:t}function p(t,e,i,r){for(var n=e.length,a=0;a<n;a++)t[a]=u(e[a],i[a],r)}function d(t,e,i,r){for(var n=e.length,a=n&&e[0].length,o=0;o<n;o++){t[o]||(t[o]=[]);for(var s=0;s<a;s++)t[o][s]=u(e[o][s],i[o][s],r)}}function f(t,e,i,r){for(var n=e.length,a=0;a<n;a++)t[a]=e[a]+i[a]*r;return t}function _(t,e,i,r){for(var n=e.length,a=n&&e[0].length,o=0;o<n;o++){t[o]||(t[o]=[]);for(var s=0;s<a;s++)t[o][s]=e[o][s]+i[o][s]*r}return t}function v(t,e,i){var r=t,n=e;if(r.push&&n.push){var a=r.length,o=n.length;if(a!==o){var s=a>o;if(s)r.length=o;else for(var h=a;h<o;h++)r.push(1===i?n[h]:l.call(n[h]))}var u=r[0]&&r[0].length;for(h=0;h<r.length;h++)if(1===i)isNaN(r[h])&&(r[h]=n[h]);else for(var c=0;c<u;c++)isNaN(r[h][c])&&(r[h][c]=n[h][c])}}function g(t,e){var i=t.length;if(i!==e.length)return!1;for(var r=0;r<i;r++)if(t[r]!==e[r])return!1;return!0}function y(t,e,i,r,n,a,o){var s=.5*(i-t),h=.5*(r-e);return(2*(e-i)+s+h)*o+(-3*(e-i)-2*s-h)*a+s*n+e}function m(t,e,i,r,n,a,o,s){for(var h=e.length,l=0;l<h;l++)t[l]=y(e[l],i[l],r[l],n[l],a,o,s)}function b(t,e,i,r,n,a,o,s){for(var h=e.length,l=e[0].length,u=0;u<h;u++){t[u]||(t[1]=[]);for(var c=0;c<l;c++)t[u][c]=y(e[u][c],i[u][c],r[u][c],n[u][c],a,o,s)}}function x(t){if(Object(h["u"])(t)){var e=t.length;if(Object(h["u"])(t[0])){for(var i=[],r=0;r<e;r++)i.push(l.call(t[r]));return i}return l.call(t)}return t}function w(t){return t[0]=Math.floor(t[0]),t[1]=Math.floor(t[1]),t[2]=Math.floor(t[2]),"rgba("+t.join(",")+")"}function T(t){return Object(h["u"])(t&&t[0])?2:1}var C=[0,0,0,0],k=function(){function t(t){this.keyframes=[],this.maxTime=0,this.arrDim=0,this.interpolable=!0,this._needsSort=!1,this._isAllValueEqual=!0,this._lastFrame=0,this._lastFramePercent=0,this.propName=t}return t.prototype.isFinished=function(){return this._finished},t.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},t.prototype.needsAnimate=function(){return!this._isAllValueEqual&&this.keyframes.length>=2&&this.interpolable},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(t,e){t>=this.maxTime?this.maxTime=t:this._needsSort=!0;var i=this.keyframes,r=i.length;if(this.interpolable)if(Object(h["u"])(e)){var n=T(e);if(r>0&&this.arrDim!==n)return void(this.interpolable=!1);if(1===n&&"number"!==typeof e[0]||2===n&&"number"!==typeof e[0][0])return void(this.interpolable=!1);if(r>0){var a=i[r-1];this._isAllValueEqual&&(1===n&&g(e,a.value)||(this._isAllValueEqual=!1))}this.arrDim=n}else{if(this.arrDim>0)return void(this.interpolable=!1);if("string"===typeof e){var o=s["f"](e);o?(e=o,this.isValueColor=!0):this.interpolable=!1}else if("number"!==typeof e)return void(this.interpolable=!1);if(this._isAllValueEqual&&r>0){a=i[r-1];(this.isValueColor&&!g(a.value,e)||a.value!==e)&&(this._isAllValueEqual=!1)}}var l={time:t,value:e,percent:0};return this.keyframes.push(l),l},t.prototype.prepare=function(t){var e=this.keyframes;this._needsSort&&e.sort((function(t,e){return t.time-e.time}));for(var i=this.arrDim,r=e.length,n=e[r-1],a=0;a<r;a++)e[a].percent=e[a].time/this.maxTime,i>0&&a!==r-1&&v(e[a].value,n.value,i);if(t&&this.needsAnimate()&&t.needsAnimate()&&i===t.arrDim&&this.isValueColor===t.isValueColor&&!t._finished){this._additiveTrack=t;var o=e[0].value;for(a=0;a<r;a++)0===i?this.isValueColor?e[a].additiveValue=f([],e[a].value,o,-1):e[a].additiveValue=e[a].value-o:1===i?e[a].additiveValue=f([],e[a].value,o,-1):2===i&&(e[a].additiveValue=_([],e[a].value,o,-1))}},t.prototype.step=function(t,e){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var i,r=null!=this._additiveTrack,n=r?"additiveValue":"value",a=this.keyframes,o=this.keyframes.length,s=this.propName,h=this.arrDim,l=this.isValueColor;if(e<0)i=0;else if(e<this._lastFramePercent){var f=Math.min(this._lastFrame+1,o-1);for(i=f;i>=0;i--)if(a[i].percent<=e)break;i=Math.min(i,o-2)}else{for(i=this._lastFrame;i<o;i++)if(a[i].percent>e)break;i=Math.min(i-1,o-2)}var _=a[i+1],v=a[i];if(v&&_){this._lastFrame=i,this._lastFramePercent=e;var g=_.percent-v.percent;if(0!==g){var x=(e-v.percent)/g,T=r?this._additiveValue:l?C:t[s];if((h>0||l)&&!T&&(T=this._additiveValue=[]),this.useSpline){var k=a[i][n],O=a[0===i?i:i-1][n],S=a[i>o-2?o-1:i+1][n],L=a[i>o-3?o-1:i+2][n];if(h>0)1===h?m(T,O,k,S,L,x,x*x,x*x*x):b(T,O,k,S,L,x,x*x,x*x*x);else if(l)m(T,O,k,S,L,x,x*x,x*x*x),r||(t[s]=w(T));else{var z=void 0;z=this.interpolable?y(O,k,S,L,x,x*x,x*x*x):S,r?this._additiveValue=z:t[s]=z}}else if(h>0)1===h?p(T,v[n],_[n],x):d(T,v[n],_[n],x);else if(l)p(T,v[n],_[n],x),r||(t[s]=w(T));else{z=void 0;z=this.interpolable?u(v[n],_[n],x):c(v[n],_[n],x),r?this._additiveValue=z:t[s]=z}r&&this._addToTarget(t)}}}},t.prototype._addToTarget=function(t){var e=this.arrDim,i=this.propName,r=this._additiveValue;0===e?this.isValueColor?(s["f"](t[i],C),f(C,C,r,1),t[i]=w(C)):t[i]=t[i]+r:1===e?f(t[i],t[i],r,1):2===e&&_(t[i],t[i],r,1)},t}(),O=function(){function t(t,e,i){this._tracks={},this._trackKeys=[],this._delay=0,this._maxTime=0,this._paused=!1,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&i?Object(h["G"])("Can' use additive animation on looped animation."):this._additiveAnimators=i}return t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(t){this._target=t},t.prototype.when=function(t,e){return this.whenWithKeys(t,e,Object(h["F"])(e))},t.prototype.whenWithKeys=function(t,e,i){for(var r=this._tracks,n=0;n<i.length;n++){var a=i[n],o=r[a];if(!o){o=r[a]=new k(a);var s=void 0,h=this._getAdditiveTrack(a);if(h){var l=h.keyframes[h.keyframes.length-1];s=l&&l.value,h.isValueColor&&s&&(s=w(s))}else s=this._target[a];if(null==s)continue;0!==t&&o.addKeyframe(0,x(s)),this._trackKeys.push(a)}o.addKeyframe(t,x(e[a]))}return this._maxTime=Math.max(this._maxTime,t),this},t.prototype.pause=function(){this._clip.pause(),this._paused=!0},t.prototype.resume=function(){this._clip.resume(),this._paused=!1},t.prototype.isPaused=function(){return!!this._paused},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneList;if(t)for(var e=t.length,i=0;i<e;i++)t[i].call(this)},t.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,e=this._abortedList;if(t&&t.removeClip(this._clip),this._clip=null,e)for(var i=0;i<e.length;i++)e[i].call(this)},t.prototype._setTracksFinished=function(){for(var t=this._tracks,e=this._trackKeys,i=0;i<e.length;i++)t[e[i]].setFinished()},t.prototype._getAdditiveTrack=function(t){var e,i=this._additiveAnimators;if(i)for(var r=0;r<i.length;r++){var n=i[r].getTrack(t);n&&(e=n)}return e},t.prototype.start=function(t,e){if(!(this._started>0)){this._started=1;for(var i=this,r=[],n=0;n<this._trackKeys.length;n++){var a=this._trackKeys[n],s=this._tracks[a],h=this._getAdditiveTrack(a),l=s.keyframes;if(s.prepare(h),s.needsAnimate())r.push(s);else if(!s.interpolable){var u=l[l.length-1];u&&(i._target[s.propName]=u.value)}}if(r.length||e){var c=new o({life:this._maxTime,loop:this._loop,delay:this._delay,onframe:function(t){i._started=2;var e=i._additiveAnimators;if(e){for(var n=!1,a=0;a<e.length;a++)if(e[a]._clip){n=!0;break}n||(i._additiveAnimators=null)}for(a=0;a<r.length;a++)r[a].step(i._target,t);var o=i._onframeList;if(o)for(a=0;a<o.length;a++)o[a](i._target,t)},ondestroy:function(){i._doneCallback()}});this._clip=c,this.animation&&this.animation.addClip(c),t&&"spline"!==t&&(c.easing=t)}else this._doneCallback();return this}},t.prototype.stop=function(t){if(this._clip){var e=this._clip;t&&e.onframe(1),this._abortedCallback()}},t.prototype.delay=function(t){return this._delay=t,this},t.prototype.during=function(t){return t&&(this._onframeList||(this._onframeList=[]),this._onframeList.push(t)),this},t.prototype.done=function(t){return t&&(this._doneList||(this._doneList=[]),this._doneList.push(t)),this},t.prototype.aborted=function(t){return t&&(this._abortedList||(this._abortedList=[]),this._abortedList.push(t)),this},t.prototype.getClip=function(){return this._clip},t.prototype.getTrack=function(t){return this._tracks[t]},t.prototype.stopTracks=function(t,e){if(!t.length||!this._clip)return!0;for(var i=this._tracks,r=this._trackKeys,n=0;n<t.length;n++){var a=i[t[n]];a&&(e?a.step(this._target,1):1===this._started&&a.step(this._target,0),a.setFinished())}var o=!0;for(n=0;n<r.length;n++)if(!i[r[n]].isFinished()){o=!1;break}return o&&this._abortedCallback(),o},t.prototype.saveFinalToTarget=function(t,e){if(t){e=e||this._trackKeys;for(var i=0;i<e.length;i++){var r=e[i],n=this._tracks[r];if(n&&!n.isFinished()){var a=n.keyframes,o=a[a.length-1];if(o){var s=x(o.value);n.isValueColor&&(s=w(s)),t[r]=s}}}}},t.prototype.__changeFinalValue=function(t,e){e=e||Object(h["F"])(t);for(var i=0;i<e.length;i++){var r=e[i],n=this._tracks[r];if(n){var a=n.keyframes;if(a.length>1){var o=a.pop();n.addKeyframe(o.time,t[r]),n.prepare(n.getAdditiveTrack())}}}},t}();e["b"]=O},ad25:function(t,e,i){"use strict";var r=i("cdbd"),n=i("6b42"),a=i("4f73"),o=i("d52a"),s=i("4de9"),h=i("32fb"),l=i("fc6d"),u="silent";function c(t,e,i){return{type:t,event:i,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:i.zrX,offsetY:i.zrY,gestureEvent:i.gestureEvent,pinchX:i.pinchX,pinchY:i.pinchY,pinchScale:i.pinchScale,wheelDelta:i.zrDelta,zrByTouch:i.zrByTouch,which:i.which,stop:p}}function p(){h["g"](this.event)}var d=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.handler=null,e}return Object(r["b"])(e,t),e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(s["a"]),f=function(){function t(t,e){this.x=t,this.y=e}return t}(),_=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],v=function(t){function e(e,i,r,n){var a=t.call(this)||this;return a._hovered=new f(0,0),a.storage=e,a.painter=i,a.painterRoot=n,r=r||new d,a.proxy=null,a.setHandlerProxy(r),a._draggingMgr=new o["a"](a),a}return Object(r["b"])(e,t),e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(n["k"](_,(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,i=t.zrY,r=y(this,e,i),n=this._hovered,a=n.target;a&&!a.__zr&&(n=this.findHover(n.x,n.y),a=n.target);var o=this._hovered=r?new f(e,i):this.findHover(e,i),s=o.target,h=this.proxy;h.setCursor&&h.setCursor(s?s.cursor:"default"),a&&s!==a&&this.dispatchToElement(n,"mouseout",t),this.dispatchToElement(o,"mousemove",t),s&&s!==a&&this.dispatchToElement(o,"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 f(0,0)},e.prototype.dispatch=function(t,e){var i=this[t];i&&i.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,i){t=t||{};var r=t.target;if(!r||!r.silent){var n="on"+e,a=c(e,t,i);while(r)if(r[n]&&(a.cancelBubble=!!r[n].call(r,a)),r.trigger(e,a),r=r.__hostTarget?r.__hostTarget:r.parent,a.cancelBubble)break;a.cancelBubble||(this.trigger(e,a),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer((function(t){"function"===typeof t[n]&&t[n].call(t,a),t.trigger&&t.trigger(e,a)})))}},e.prototype.findHover=function(t,e,i){for(var r=this.storage.getDisplayList(),n=new f(t,e),a=r.length-1;a>=0;a--){var o=void 0;if(r[a]!==i&&!r[a].ignore&&(o=g(r[a],t,e))&&(!n.topTarget&&(n.topTarget=r[a]),o!==u)){n.target=r[a];break}}return n},e.prototype.processGesture=function(t,e){this._gestureMgr||(this._gestureMgr=new l["a"]);var i=this._gestureMgr;"start"===e&&i.clear();var r=i.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if("end"===e&&i.clear(),r){var n=r.type;t.gestureEvent=n;var a=new f;a.target=r.target,this.dispatchToElement(a,n,r.event)}},e}(s["a"]);function g(t,e,i){if(t[t.rectHover?"rectContain":"contain"](e,i)){var r=t,n=void 0,a=!1;while(r){if(r.ignoreClip&&(a=!0),!a){var o=r.getClipPath();if(o&&!o.contain(e,i))return!1;r.silent&&(n=!0)}var s=r.__hostTarget;r=s||r.parent}return!n||u}return!1}function y(t,e,i){var r=t.painter;return e<0||e>r.getWidth()||i<0||i>r.getHeight()}n["k"](["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],(function(t){v.prototype[t]=function(e){var i,r,n=e.zrX,o=e.zrY,s=y(this,n,o);if("mouseup"===t&&s||(i=this.findHover(n,o),r=i.target),"mousedown"===t)this._downEl=r,this._downPoint=[e.zrX,e.zrY],this._upEl=r;else if("mouseup"===t)this._upEl=r;else if("click"===t){if(this._downEl!==this._upEl||!this._downPoint||a["f"](this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(i,t,e)}})),e["a"]=v},da1f:function(t,e,i){"use strict";i.d(e,"c",(function(){return b})),i.d(e,"b",(function(){return F})),i.d(e,"a",(function(){return E}));var r=i("2a27"),n=i("e4c4"),a=i("3df9"),o=i("9d21"),s=i("1f89"),h=i("0068"),l=i("ad28"),u=i("83d1"),c=i("6b42"),p=i("ff2a"),d=i("fd45"),f=i("1608"),_=new n["a"](!0);function v(t){var e=t.stroke;return!(null==e||"none"===e||!(t.lineWidth>0))}function g(t){var e=t.fill;return null!=e&&"none"!==e}function y(t,e){if(null!=e.fillOpacity&&1!==e.fillOpacity){var i=t.globalAlpha;t.globalAlpha=e.fillOpacity*e.opacity,t.fill(),t.globalAlpha=i}else t.fill()}function m(t,e){if(null!=e.strokeOpacity&&1!==e.strokeOpacity){var i=t.globalAlpha;t.globalAlpha=e.strokeOpacity*e.opacity,t.stroke(),t.globalAlpha=i}else t.stroke()}function b(t,e,i){var r=Object(a["a"])(e.image,e.__image,i);if(Object(a["c"])(r)){var n=t.createPattern(r,e.repeat||"repeat");if("function"===typeof DOMMatrix){var o=new DOMMatrix;o.rotateSelf(0,0,(e.rotation||0)/Math.PI*180),o.scaleSelf(e.scaleX||1,e.scaleY||1),o.translateSelf(e.x||0,e.y||0),n.setTransform(o)}return n}}function x(t,e,i,r){var n=v(i),a=g(i),h=i.strokePercent,l=h<1,u=!e.path;e.silent&&!l||!u||e.createPathProxy();var d=e.path||_;if(!r){var f=i.fill,x=i.stroke,w=a&&!!f.colorStops,T=n&&!!x.colorStops,C=a&&!!f.image,k=n&&!!x.image,O=void 0,S=void 0,L=void 0,z=void 0,P=void 0;(w||T)&&(P=e.getBoundingRect()),w&&(O=e.__dirty?Object(o["a"])(t,f,P):e.__canvasFillGradient,e.__canvasFillGradient=O),T&&(S=e.__dirty?Object(o["a"])(t,x,P):e.__canvasStrokeGradient,e.__canvasStrokeGradient=S),C&&(L=e.__dirty||!e.__canvasFillPattern?b(t,f,e):e.__canvasFillPattern,e.__canvasFillPattern=L),k&&(z=e.__dirty||!e.__canvasStrokePattern?b(t,x,e):e.__canvasStrokePattern,e.__canvasStrokePattern=L),w?t.fillStyle=O:C&&(L?t.fillStyle=L:a=!1),T?t.strokeStyle=S:k&&(z?t.strokeStyle=z:n=!1)}var A=i.lineDash&&i.lineWidth>0&&Object(p["a"])(i.lineDash,i.lineWidth),R=i.lineDashOffset,I=!!t.setLineDash,D=e.getGlobalScale();if(d.setScale(D[0],D[1],e.segmentIgnoreThreshold),A){var B=i.strokeNoScale&&e.getLineScale?e.getLineScale():1;B&&1!==B&&(A=Object(c["H"])(A,(function(t){return t/B})),R/=B)}var j=!0;(u||e.__dirty&s["b"].SHAPE_CHANGED_BIT||A&&!I&&n)&&(d.setDPR(t.dpr),l?d.setContext(null):(d.setContext(t),j=!1),d.reset(),A&&!I&&(d.setLineDash(A),d.setLineDashOffset(R)),e.buildPath(d,e.shape,r),d.toStatic(),e.pathUpdated()),j&&d.rebuildPath(t,l?h:1),A&&I&&(t.setLineDash(A),t.lineDashOffset=R),r||(i.strokeFirst?(n&&m(t,i),a&&y(t,i)):(a&&y(t,i),n&&m(t,i))),A&&I&&t.setLineDash([])}function w(t,e,i){var r=e.__image=Object(a["a"])(i.image,e.__image,e,e.onload);if(r&&Object(a["c"])(r)){var n=i.x||0,o=i.y||0,s=e.getWidth(),h=e.getHeight(),l=r.width/r.height;if(null==s&&null!=h?s=h*l:null==h&&null!=s?h=s/l:null==s&&null==h&&(s=r.width,h=r.height),i.sWidth&&i.sHeight){var u=i.sx||0,c=i.sy||0;t.drawImage(r,u,c,i.sWidth,i.sHeight,n,o,s,h)}else if(i.sx&&i.sy){u=i.sx,c=i.sy;var p=s-u,d=h-c;t.drawImage(r,u,c,p,d,n,o,s,h)}else t.drawImage(r,n,o,s,h)}}function T(t,e,i){var r=i.text;if(null!=r&&(r+=""),r){t.font=i.font||u["a"],t.textAlign=i.textAlign,t.textBaseline=i.textBaseline;var n=void 0;if(t.setLineDash){var a=i.lineDash&&i.lineWidth>0&&Object(p["a"])(i.lineDash,i.lineWidth),o=i.lineDashOffset;if(a){var s=i.strokeNoScale&&e.getLineScale?e.getLineScale():1;s&&1!==s&&(a=Object(c["H"])(a,(function(t){return t/s})),o/=s),t.setLineDash(a),t.lineDashOffset=o,n=!0}}i.strokeFirst?(v(i)&&t.strokeText(r,i.x,i.y),g(i)&&t.fillText(r,i.x,i.y)):(g(i)&&t.fillText(r,i.x,i.y),v(i)&&t.strokeText(r,i.x,i.y)),n&&t.setLineDash([])}}var C=["shadowBlur","shadowOffsetX","shadowOffsetY"],k=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function O(t,e,i,n,a){var o=!1;if(!n&&(i=i||{},e===i))return!1;(n||e.opacity!==i.opacity)&&(o||(M(t,a),o=!0),t.globalAlpha=null==e.opacity?r["b"].opacity:e.opacity),(n||e.blend!==i.blend)&&(o||(M(t,a),o=!0),t.globalCompositeOperation=e.blend||r["b"].blend);for(var s=0;s<C.length;s++){var h=C[s];(n||e[h]!==i[h])&&(o||(M(t,a),o=!0),t[h]=t.dpr*(e[h]||0))}return(n||e.shadowColor!==i.shadowColor)&&(o||(M(t,a),o=!0),t.shadowColor=e.shadowColor||r["b"].shadowColor),o}function S(t,e,i,r,n){var a=H(e,n.inHover),o=r?null:i&&H(i,n.inHover)||{};if(a===o)return!1;var s=O(t,a,o,r,n);if((r||a.fill!==o.fill)&&(s||(M(t,n),s=!0),t.fillStyle=a.fill),(r||a.stroke!==o.stroke)&&(s||(M(t,n),s=!0),t.strokeStyle=a.stroke),(r||a.opacity!==o.opacity)&&(s||(M(t,n),s=!0),t.globalAlpha=null==a.opacity?1:a.opacity),e.hasStroke()){var h=a.lineWidth,l=h/(a.strokeNoScale&&e&&e.getLineScale?e.getLineScale():1);t.lineWidth!==l&&(s||(M(t,n),s=!0),t.lineWidth=l)}for(var u=0;u<k.length;u++){var c=k[u],p=c[0];(r||a[p]!==o[p])&&(s||(M(t,n),s=!0),t[p]=a[p]||c[1])}return s}function L(t,e,i,r,n){return O(t,H(e,n.inHover),i&&H(i,n.inHover),r,n)}function z(t,e){var i=e.transform,r=t.dpr||1;i?t.setTransform(r*i[0],r*i[1],r*i[2],r*i[3],r*i[4],r*i[5]):t.setTransform(r,0,0,r,0,0)}function P(t,e,i){for(var r=!1,n=0;n<t.length;n++){var a=t[n];r=r||a.isZeroArea(),z(e,a),e.beginPath(),a.buildPath(e,a.shape),e.clip()}i.allClipped=r}function A(t,e){return t&&e?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&&!e)}var R=1,I=2,D=3,B=4;function j(t){var e=g(t),i=v(t);return!(t.lineDash||!(+e^+i)||e&&"string"!==typeof t.fill||i&&"string"!==typeof t.stroke||t.strokePercent<1||t.strokeOpacity<1||t.fillOpacity<1)}function M(t,e){e.batchFill&&t.fill(),e.batchStroke&&t.stroke(),e.batchFill="",e.batchStroke=""}function H(t,e){return e&&t.__hoverStyle||t.style}function F(t,e){E(t,e,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function E(t,e,i,r){var n=e.transform;if(!e.shouldBePainted(i.viewWidth,i.viewHeight,!1,!1))return e.__dirty&=~d["a"].REDARAW_BIT,void(e.__isRendered=!1);var a=e.__clipPaths,u=i.prevElClipPaths,c=!1,p=!1;if(u&&!Object(o["b"])(a,u)||(u&&u.length&&(M(t,i),t.restore(),p=c=!0,i.prevElClipPaths=null,i.allClipped=!1,i.prevEl=null),a&&a.length&&(M(t,i),t.save(),P(a,t,i),c=!0),i.prevElClipPaths=a),i.allClipped)e.__isRendered=!1;else{e.beforeBrush&&e.beforeBrush(),e.innerBeforeBrush();var _=i.prevEl;_||(p=c=!0);var v=e instanceof s["b"]&&e.autoBatch&&j(e.style);c||A(n,_.transform)?(M(t,i),z(t,e)):v||M(t,i);var g=H(e,i.inHover);e instanceof s["b"]?(i.lastDrawType!==R&&(p=!0,i.lastDrawType=R),S(t,e,_,p,i),v&&(i.batchFill||i.batchStroke)||t.beginPath(),x(t,e,g,v),v&&(i.batchFill=g.fill||"",i.batchStroke=g.stroke||"")):e instanceof l["a"]?(i.lastDrawType!==D&&(p=!0,i.lastDrawType=D),S(t,e,_,p,i),T(t,e,g)):e instanceof h["a"]?(i.lastDrawType!==I&&(p=!0,i.lastDrawType=I),L(t,e,_,p,i),w(t,e,g)):e instanceof f["a"]&&(i.lastDrawType!==B&&(p=!0,i.lastDrawType=B),W(t,e,i)),v&&r&&M(t,i),e.innerAfterBrush(),e.afterBrush&&e.afterBrush(),i.prevEl=e,e.__dirty=0,e.__isRendered=!0}}function W(t,e,i){var r=e.getDisplayables(),n=e.getTemporalDisplayables();t.save();var a,o,s={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:i.viewWidth,viewHeight:i.viewHeight,inHover:i.inHover};for(a=e.getCursor(),o=r.length;a<o;a++){var h=r[a];h.beforeBrush&&h.beforeBrush(),h.innerBeforeBrush(),E(t,h,s,a===o-1),h.innerAfterBrush(),h.afterBrush&&h.afterBrush(),s.prevEl=h}for(var l=0,u=n.length;l<u;l++){h=n[l];h.beforeBrush&&h.beforeBrush(),h.innerBeforeBrush(),E(t,h,s,l===u-1),h.innerAfterBrush(),h.afterBrush&&h.afterBrush(),s.prevEl=h}e.clearTemporalDisplayables(),e.notClear=!0,t.restore()}},ef98:function(t,e,i){"use strict";var r=i("909c"),n=i("6b42"),a=i("cdbd"),o=i("4de9"),s=i("fd45"),h=i("9d21"),l=i("da1f"),u=i("c451");function c(){return!1}function p(t,e,i){var r=n["f"](),a=e.getWidth(),o=e.getHeight(),s=r.style;return s&&(s.position="absolute",s.left="0",s.top="0",s.width=a+"px",s.height=o+"px",r.setAttribute("data-zr-dom-id",t)),r.width=a*i,r.height=o*i,r}var d=function(t){function e(e,i,a){var o,s=t.call(this)||this;s.motionBlur=!1,s.lastFrameAlpha=.7,s.dpr=1,s.virtual=!1,s.config={},s.incremental=!1,s.zlevel=0,s.maxRepaintRectCount=5,s.__dirty=!0,s.__firstTimePaint=!0,s.__used=!1,s.__drawIndex=0,s.__startIndex=0,s.__endIndex=0,s.__prevStartIndex=null,s.__prevEndIndex=null,a=a||r["e"],"string"===typeof e?o=p(e,i,a):n["z"](e)&&(o=e,e=o.id),s.id=e,s.dom=o;var h=o.style;return h&&(o.onselectstart=c,h.webkitUserSelect="none",h.userSelect="none",h.webkitTapHighlightColor="rgba(0,0,0,0)",h["-webkit-touch-callout"]="none",h.padding="0",h.margin="0",h.borderWidth="0"),s.domBack=null,s.ctxBack=null,s.painter=i,s.config=null,s.dpr=a,s}return Object(a["b"])(e,t),e.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},e.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},e.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},e.prototype.setUnpainted=function(){this.__firstTimePaint=!0},e.prototype.createBackBuffer=function(){var t=this.dpr;this.domBack=p("back-"+this.id,this.painter,t),this.ctxBack=this.domBack.getContext("2d"),1!==t&&this.ctxBack.scale(t,t)},e.prototype.createRepaintRects=function(t,e,i,r){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var n,a=[],o=this.maxRepaintRectCount,h=!1,l=new u["a"](0,0,0,0);function c(t){if(t.isFinite()&&!t.isZero())if(0===a.length){var e=new u["a"](0,0,0,0);e.copy(t),a.push(e)}else{for(var i=!1,r=1/0,n=0,s=0;s<a.length;++s){var c=a[s];if(c.intersect(t)){var p=new u["a"](0,0,0,0);p.copy(c),p.union(t),a[s]=p,i=!0;break}if(h){l.copy(t),l.union(c);var d=t.width*t.height,f=c.width*c.height,_=l.width*l.height,v=_-d-f;v<r&&(r=v,n=s)}}if(h&&(a[n].union(t),i=!0),!i){e=new u["a"](0,0,0,0);e.copy(t),a.push(e)}h||(h=a.length>=o)}}for(var p=this.__startIndex;p<this.__endIndex;++p){var d=t[p];if(d){var f=d.shouldBePainted(i,r,!0,!0),_=d.__isRendered&&(d.__dirty&s["a"].REDARAW_BIT||!f)?d.getPrevPaintRect():null;_&&c(_);var v=f&&(d.__dirty&s["a"].REDARAW_BIT||!d.__isRendered)?d.getPaintRect():null;v&&c(v)}}for(p=this.__prevStartIndex;p<this.__prevEndIndex;++p){d=e[p],f=d.shouldBePainted(i,r,!0,!0);if(d&&(!f||!d.__zr)&&d.__isRendered){_=d.getPrevPaintRect();_&&c(_)}}do{n=!1;for(p=0;p<a.length;)if(a[p].isZero())a.splice(p,1);else{for(var g=p+1;g<a.length;)a[p].intersect(a[g])?(n=!0,a[p].union(a[g]),a.splice(g,1)):g++;p++}}while(n);return this._paintRects=a,a},e.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},e.prototype.resize=function(t,e){var i=this.dpr,r=this.dom,n=r.style,a=this.domBack;n&&(n.width=t+"px",n.height=e+"px"),r.width=t*i,r.height=e*i,a&&(a.width=t*i,a.height=e*i,1!==i&&this.ctxBack.scale(i,i))},e.prototype.clear=function(t,e,i){var r=this.dom,a=this.ctx,o=r.width,s=r.height;e=e||this.clearColor;var u=this.motionBlur&&!t,c=this.lastFrameAlpha,p=this.dpr,d=this;u&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(r,0,0,o/p,s/p));var f=this.domBack;function _(t,i,r,o){if(a.clearRect(t,i,r,o),e&&"transparent"!==e){var s=void 0;n["x"](e)?(s=e.__canvasGradient||Object(h["a"])(a,e,{x:0,y:0,width:r,height:o}),e.__canvasGradient=s):n["A"](e)&&(s=Object(l["c"])(a,e,{dirty:function(){d.setUnpainted(),d.__painter.refresh()}})),a.save(),a.fillStyle=s||e,a.fillRect(t,i,r,o),a.restore()}u&&(a.save(),a.globalAlpha=c,a.drawImage(f,t,i,r,o),a.restore())}!i||u?_(0,0,o,s):i.length&&n["k"](i,(function(t){_(t.x*p,t.y*p,t.width*p,t.height*p)}))},e}(o["a"]),f=d,_=i("1ce9"),v=i("0068"),g=i("8f0b"),y=1e5,m=314159,b=.01,x=.001;function w(t){return parseInt(t,10)}function T(t){return!!t&&(!!t.__builtin__||"function"===typeof t.resize&&"function"===typeof t.refresh)}function C(t,e){var i=document.createElement("div");return i.style.cssText=["position:relative","width:"+t+"px","height:"+e+"px","padding:0","margin:0","border-width:0"].join(";")+";",i}var k=function(){function t(t,e,i,a){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var o=!t.nodeName||"CANVAS"===t.nodeName.toUpperCase();this._opts=i=n["m"]({},i||{}),this.dpr=i.devicePixelRatio||r["e"],this._singleCanvas=o,this.root=t;var s=t.style;s&&(s.webkitTapHighlightColor="transparent",s.webkitUserSelect="none",s.userSelect="none",s["-webkit-touch-callout"]="none",t.innerHTML=""),this.storage=e;var h=this._zlevelList;this._prevDisplayList=[];var l=this._layers;if(o){var u=t,c=u.width,p=u.height;null!=i.width&&(c=i.width),null!=i.height&&(p=i.height),this.dpr=i.devicePixelRatio||1,u.width=c*this.dpr,u.height=p*this.dpr,this._width=c,this._height=p;var d=new f(u,this,this.dpr);d.__builtin__=!0,d.initContext(),l[m]=d,d.zlevel=m,h.push(m),this._domRoot=t}else{this._width=this._getSize(0),this._height=this._getSize(1);var _=this._domRoot=C(this._width,this._height);t.appendChild(_)}}return t.prototype.getType=function(){return"canvas"},t.prototype.isSingleCanvas=function(){return this._singleCanvas},t.prototype.getViewportRoot=function(){return this._domRoot},t.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},t.prototype.refresh=function(t){var e=this.storage.getDisplayList(!0),i=this._prevDisplayList,r=this._zlevelList;this._redrawId=Math.random(),this._paintList(e,i,t,this._redrawId);for(var n=0;n<r.length;n++){var a=r[n],o=this._layers[a];if(!o.__builtin__&&o.refresh){var s=0===n?this._backgroundColor:null;o.refresh(s)}}return this._opts.useDirtyRect&&(this._prevDisplayList=e.slice()),this},t.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},t.prototype._paintHoverList=function(t){var e=t.length,i=this._hoverlayer;if(i&&i.clear(),e){for(var r,n={inHover:!0,viewWidth:this._width,viewHeight:this._height},a=0;a<e;a++){var o=t[a];o.__inHover&&(i||(i=this._hoverlayer=this.getLayer(y)),r||(r=i.ctx,r.save()),Object(l["a"])(r,o,n,a===e-1))}r&&r.restore()}},t.prototype.getHoverLayer=function(){return this.getLayer(y)},t.prototype.paintOne=function(t,e){Object(l["b"])(t,e)},t.prototype._paintList=function(t,e,i,r){if(this._redrawId===r){i=i||!1,this._updateLayerStatus(t);var n=this._doPaintList(t,e,i),a=n.finished,o=n.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),o&&this._paintHoverList(t),a)this.eachLayer((function(t){t.afterBrush&&t.afterBrush()}));else{var s=this;Object(_["a"])((function(){s._paintList(t,e,i,r)}))}}},t.prototype._compositeManually=function(){var t=this.getLayer(m).ctx,e=this._domRoot.width,i=this._domRoot.height;t.clearRect(0,0,e,i),this.eachBuiltinLayer((function(r){r.virtual&&t.drawImage(r.dom,0,0,e,i)}))},t.prototype._doPaintList=function(t,e,i){for(var r=this,a=[],o=this._opts.useDirtyRect,s=0;s<this._zlevelList.length;s++){var h=this._zlevelList[s],l=this._layers[h];l.__builtin__&&l!==this._hoverlayer&&(l.__dirty||i)&&a.push(l)}for(var u=!0,c=!1,p=function(n){var s=a[n],h=s.ctx,l=o&&s.createRepaintRects(t,e,d._width,d._height);h.save();var p,f=i?s.__startIndex:s.__drawIndex,_=!i&&s.incremental&&Date.now,v=_&&Date.now(),g=s.zlevel===d._zlevelList[0]?d._backgroundColor:null;if(s.__startIndex===s.__endIndex)s.clear(!1,g,l);else if(f===s.__startIndex){var y=t[f];y.incremental&&y.notClear&&!i||s.clear(!1,g,l)}-1===f&&(console.error("For some unknown reason. drawIndex is -1"),f=s.__startIndex);var m=function(e){var i={inHover:!1,allClipped:!1,prevEl:null,viewWidth:r._width,viewHeight:r._height};for(p=f;p<s.__endIndex;p++){var n=t[p];if(n.__inHover&&(c=!0),r._doPaintEl(n,s,o,e,i,p===s.__endIndex-1),_){var a=Date.now()-v;if(a>15)break}}i.prevElClipPaths&&h.restore()};if(l)if(0===l.length)p=s.__endIndex;else for(var b=d.dpr,x=0;x<l.length;++x){var w=l[x];h.save(),h.beginPath(),h.rect(w.x*b,w.y*b,w.width*b,w.height*b),h.clip(),m(w),h.restore()}else h.save(),m(),h.restore();s.__drawIndex=p,s.__drawIndex<s.__endIndex&&(u=!1)},d=this,f=0;f<a.length;f++)p(f);return g["a"].wxa&&n["k"](this._layers,(function(t){t&&t.ctx&&t.ctx.draw&&t.ctx.draw()})),{finished:u,needsRefreshHover:c}},t.prototype._doPaintEl=function(t,e,i,r,n,a){var o=e.ctx;if(i){var s=t.getPaintRect();(!r||s&&s.intersect(r))&&(Object(l["a"])(o,t,n,a),t.setPrevPaintRect(s))}else Object(l["a"])(o,t,n,a)},t.prototype.getLayer=function(t,e){this._singleCanvas&&!this._needsManuallyCompositing&&(t=m);var i=this._layers[t];return i||(i=new f("zr_"+t,this,this.dpr),i.zlevel=t,i.__builtin__=!0,this._layerConfig[t]?n["I"](i,this._layerConfig[t],!0):this._layerConfig[t-b]&&n["I"](i,this._layerConfig[t-b],!0),e&&(i.virtual=e),this.insertLayer(t,i),i.initContext()),i},t.prototype.insertLayer=function(t,e){var i=this._layers,r=this._zlevelList,a=r.length,o=this._domRoot,s=null,h=-1;if(i[t])n["G"]("ZLevel "+t+" has been used already");else if(T(e)){if(a>0&&t>r[0]){for(h=0;h<a-1;h++)if(r[h]<t&&r[h+1]>t)break;s=i[r[h]]}if(r.splice(h+1,0,t),i[t]=e,!e.virtual)if(s){var l=s.dom;l.nextSibling?o.insertBefore(e.dom,l.nextSibling):o.appendChild(e.dom)}else o.firstChild?o.insertBefore(e.dom,o.firstChild):o.appendChild(e.dom);e.__painter=this}else n["G"]("Layer of zlevel "+t+" is not valid")},t.prototype.eachLayer=function(t,e){for(var i=this._zlevelList,r=0;r<i.length;r++){var n=i[r];t.call(e,this._layers[n],n)}},t.prototype.eachBuiltinLayer=function(t,e){for(var i=this._zlevelList,r=0;r<i.length;r++){var n=i[r],a=this._layers[n];a.__builtin__&&t.call(e,a,n)}},t.prototype.eachOtherLayer=function(t,e){for(var i=this._zlevelList,r=0;r<i.length;r++){var n=i[r],a=this._layers[n];a.__builtin__||t.call(e,a,n)}},t.prototype.getLayers=function(){return this._layers},t.prototype._updateLayerStatus=function(t){function e(t){h&&(h.__endIndex!==t&&(h.__dirty=!0),h.__endIndex=t)}if(this.eachBuiltinLayer((function(t,e){t.__dirty=t.__used=!1})),this._singleCanvas)for(var i=1;i<t.length;i++){var r=t[i];if(r.zlevel!==t[i-1].zlevel||r.incremental){this._needsManuallyCompositing=!0;break}}var a,o,h=null,l=0;for(o=0;o<t.length;o++){r=t[o];var u=r.zlevel,c=void 0;a!==u&&(a=u,l=0),r.incremental?(c=this.getLayer(u+x,this._needsManuallyCompositing),c.incremental=!0,l=1):c=this.getLayer(u+(l>0?b:0),this._needsManuallyCompositing),c.__builtin__||n["G"]("ZLevel "+u+" has been used by unkown layer "+c.id),c!==h&&(c.__used=!0,c.__startIndex!==o&&(c.__dirty=!0),c.__startIndex=o,c.incremental?c.__drawIndex=-1:c.__drawIndex=o,e(o),h=c),r.__dirty&s["a"].REDARAW_BIT&&!r.__inHover&&(c.__dirty=!0,c.incremental&&c.__drawIndex<0&&(c.__drawIndex=o))}e(o),this.eachBuiltinLayer((function(t,e){!t.__used&&t.getElementCount()>0&&(t.__dirty=!0,t.__startIndex=t.__endIndex=t.__drawIndex=0),t.__dirty&&t.__drawIndex<0&&(t.__drawIndex=t.__startIndex)}))},t.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},t.prototype._clearLayer=function(t){t.clear()},t.prototype.setBackgroundColor=function(t){this._backgroundColor=t,n["k"](this._layers,(function(t){t.setUnpainted()}))},t.prototype.configLayer=function(t,e){if(e){var i=this._layerConfig;i[t]?n["I"](i[t],e,!0):i[t]=e;for(var r=0;r<this._zlevelList.length;r++){var a=this._zlevelList[r];if(a===t||a===t+b){var o=this._layers[a];n["I"](o,i[t],!0)}}}},t.prototype.delLayer=function(t){var e=this._layers,i=this._zlevelList,r=e[t];r&&(r.dom.parentNode.removeChild(r.dom),delete e[t],i.splice(n["r"](i,t),1))},t.prototype.resize=function(t,e){if(this._domRoot.style){var i=this._domRoot;i.style.display="none";var r=this._opts;if(null!=t&&(r.width=t),null!=e&&(r.height=e),t=this._getSize(0),e=this._getSize(1),i.style.display="",this._width!==t||e!==this._height){for(var n in i.style.width=t+"px",i.style.height=e+"px",this._layers)this._layers.hasOwnProperty(n)&&this._layers[n].resize(t,e);this.refresh(!0)}this._width=t,this._height=e}else{if(null==t||null==e)return;this._width=t,this._height=e,this.getLayer(m).resize(t,e)}return this},t.prototype.clearLayer=function(t){var e=this._layers[t];e&&e.clear()},t.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},t.prototype.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._layers[m].dom;var e=new f("image",this,t.pixelRatio||this.dpr);e.initContext(),e.clear(!1,t.backgroundColor||this._backgroundColor);var i=e.ctx;if(t.pixelRatio<=this.dpr){this.refresh();var r=e.dom.width,n=e.dom.height;this.eachLayer((function(t){t.__builtin__?i.drawImage(t.dom,0,0,r,n):t.renderToCanvas&&(i.save(),t.renderToCanvas(i),i.restore())}))}else for(var a={inHover:!1,viewWidth:this._width,viewHeight:this._height},o=this.storage.getDisplayList(!0),s=0,h=o.length;s<h;s++){var u=o[s];Object(l["a"])(i,u,a,s===h-1)}return e.dom},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t.prototype._getSize=function(t){var e=this._opts,i=["width","height"][t],r=["clientWidth","clientHeight"][t],n=["paddingLeft","paddingTop"][t],a=["paddingRight","paddingBottom"][t];if(null!=e[i]&&"auto"!==e[i])return parseFloat(e[i]);var o=this.root,s=document.defaultView.getComputedStyle(o);return(o[r]||w(s[i])||w(o.style[i]))-(w(s[n])||0)-(w(s[a])||0)|0},t.prototype.pathToImage=function(t,e){e=e||this.dpr;var i=document.createElement("canvas"),r=i.getContext("2d"),a=t.getBoundingRect(),o=t.style,s=o.shadowBlur*e,h=o.shadowOffsetX*e,u=o.shadowOffsetY*e,c=t.hasStroke()?o.lineWidth:0,p=Math.max(c/2,-h+s),d=Math.max(c/2,h+s),f=Math.max(c/2,-u+s),_=Math.max(c/2,u+s),g=a.width+p+d,y=a.height+f+_;i.width=g*e,i.height=y*e,r.scale(e,e),r.clearRect(0,0,g,y),r.dpr=e;var m={x:t.x,y:t.y,scaleX:t.scaleX,scaleY:t.scaleY,rotation:t.rotation,originX:t.originX,originY:t.originY};t.x=p-a.x,t.y=f-a.y,t.rotation=0,t.scaleX=1,t.scaleY=1,t.updateTransform(),t&&Object(l["a"])(r,t,{inHover:!1,viewWidth:this._width,viewHeight:this._height},!0);var b=new v["a"]({style:{x:0,y:0,image:i}});return n["m"](t,m),b},t}();e["a"]=k},f656:function(t,e,i){"use strict";var r=i("6b42"),n=i("8f0b"),a=i("fd45"),o=i("6285"),s=!1;function h(){s||(s=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function l(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var u=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=l}return t.prototype.traverse=function(t,e){for(var i=0;i<this._roots.length;i++)this._roots[i].traverse(t,e)},t.prototype.getDisplayList=function(t,e){e=e||!1;var i=this._displayList;return!t&&i.length||this.updateDisplayList(e),i},t.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var e=this._roots,i=this._displayList,r=0,a=e.length;r<a;r++)this._updateAndAddDisplayable(e[r],null,t);i.length=this._displayListLen,n["a"].canvasSupported&&Object(o["a"])(i,l)},t.prototype._updateAndAddDisplayable=function(t,e,i){if(!t.ignore||i){t.beforeUpdate(),t.update(),t.afterUpdate();var r=t.getClipPath();if(t.ignoreClip)e=null;else if(r){e=e?e.slice():[];var n=r,o=t;while(n)n.parent=o,n.updateTransform(),e.push(n),o=n,n=n.getClipPath()}if(t.childrenRef){for(var s=t.childrenRef(),l=0;l<s.length;l++){var u=s[l];t.__dirty&&(u.__dirty|=a["a"].REDARAW_BIT),this._updateAndAddDisplayable(u,e,i)}t.__dirty=0}else{var c=t;e&&e.length?c.__clipPaths=e:c.__clipPaths&&c.__clipPaths.length>0&&(c.__clipPaths=[]),isNaN(c.z)&&(h(),c.z=0),isNaN(c.z2)&&(h(),c.z2=0),isNaN(c.zlevel)&&(h(),c.zlevel=0),this._displayList[this._displayListLen++]=c}var p=t.getDecalElement&&t.getDecalElement();p&&this._updateAndAddDisplayable(p,e,i);var d=t.getTextGuideLine();d&&this._updateAndAddDisplayable(d,e,i);var f=t.getTextContent();f&&this._updateAndAddDisplayable(f,e,i)}},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,i=t.length;e<i;e++)this.delRoot(t[e]);else{var n=r["r"](this._roots,t);n>=0&&this._roots.splice(n,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}();e["a"]=u},fd45:function(t,e,i){"use strict";var r=i("92f1"),n=i("a755"),a=i("c451"),o=i("4de9"),s=i("83d1"),h=i("6b42"),l=i("909c"),u=i("463e"),c=i("8f0b"),p="__zr_normal__",d=["x","y","scaleX","scaleY","originX","originY","rotation","ignore"],f={x:!0,y:!0,scaleX:!0,scaleY:!0,originX:!0,originY:!0,rotation:!0,ignore:!1},_={},v=new a["a"](0,0,0,0),g=function(){function t(t){this.id=Object(h["p"])(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return t.prototype._init=function(t){this.attr(t)},t.prototype.drift=function(t,e,i){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0;break}var r=this.transform;r||(r=this.transform=[1,0,0,1,0,0]),r[4]+=t,r[5]+=e,this.decomposeTransform(),this.markRedraw()},t.prototype.beforeUpdate=function(){},t.prototype.afterUpdate=function(){},t.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},t.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var i=this.textConfig,r=i.local,n=e.attachedTransform,a=void 0,o=void 0,h=!1;n.parent=r?this:null;var l=!1;if(n.x=e.x,n.y=e.y,n.originX=e.originX,n.originY=e.originY,n.rotation=e.rotation,n.scaleX=e.scaleX,n.scaleY=e.scaleY,null!=i.position){var u=v;i.layoutRect?u.copy(i.layoutRect):u.copy(this.getBoundingRect()),r||u.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(_,i,u):Object(s["d"])(_,i,u),n.x=_.x,n.y=_.y,a=_.align,o=_.verticalAlign;var c=i.origin;if(c&&null!=i.rotation){var p=void 0,d=void 0;"center"===c?(p=.5*u.width,d=.5*u.height):(p=Object(s["h"])(c[0],u.width),d=Object(s["h"])(c[1],u.height)),l=!0,n.originX=-n.x+p+(r?0:u.x),n.originY=-n.y+d+(r?0:u.y)}}null!=i.rotation&&(n.rotation=i.rotation);var f=i.offset;f&&(n.x+=f[0],n.y+=f[1],l||(n.originX=-f[0],n.originY=-f[1]));var g=null==i.inside?"string"===typeof i.position&&i.position.indexOf("inside")>=0:i.inside,y=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),m=void 0,b=void 0,x=void 0;g&&this.canBeInsideText()?(m=i.insideFill,b=i.insideStroke,null!=m&&"auto"!==m||(m=this.getInsideTextFill()),null!=b&&"auto"!==b||(b=this.getInsideTextStroke(m),x=!0)):(m=i.outsideFill,b=i.outsideStroke,null!=m&&"auto"!==m||(m=this.getOutsideFill()),null!=b&&"auto"!==b||(b=this.getOutsideStroke(m),x=!0)),m=m||"#000",m===y.fill&&b===y.stroke&&x===y.autoStroke&&a===y.align&&o===y.verticalAlign||(h=!0,y.fill=m,y.stroke=b,y.autoStroke=x,y.align=a,y.verticalAlign=o,e.setDefaultTextStyle(y)),h&&e.dirtyStyle(),e.markRedraw()}},t.prototype.canBeInsideText=function(){return!0},t.prototype.getInsideTextFill=function(){return"#fff"},t.prototype.getInsideTextStroke=function(t){return"#000"},t.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?l["d"]:l["a"]},t.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),i="string"===typeof e&&Object(u["f"])(e);i||(i=[255,255,255,1]);for(var r=i[3],n=this.__zr.isDarkMode(),a=0;a<3;a++)i[a]=i[a]*r+(n?0:255)*(1-r);return i[3]=1,Object(u["g"])(i,"rgba")},t.prototype.traverse=function(t,e){},t.prototype.attrKV=function(t,e){"textConfig"===t?this.setTextConfig(e):"textContent"===t?this.setTextContent(e):"clipPath"===t?this.setClipPath(e):"extra"===t?(this.extra=this.extra||{},Object(h["m"])(this.extra,e)):this[t]=e},t.prototype.hide=function(){this.ignore=!0,this.markRedraw()},t.prototype.show=function(){this.ignore=!1,this.markRedraw()},t.prototype.attr=function(t,e){if("string"===typeof t)this.attrKV(t,e);else if(Object(h["z"])(t))for(var i=t,r=Object(h["F"])(i),n=0;n<r.length;n++){var a=r[n];this.attrKV(a,t[a])}return this.markRedraw(),this},t.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var e=this._normalState,i=0;i<this.animators.length;i++){var r=this.animators[i],n=r.__fromStateTransition;if(!n||n===p){var a=r.targetName,o=a?e[a]:e;r.saveFinalToTarget(o)}}},t.prototype._innerSaveToNormal=function(t){var e=this._normalState;e||(e=this._normalState={}),t.textConfig&&!e.textConfig&&(e.textConfig=this.textConfig),this._savePrimaryToNormal(t,e,d)},t.prototype._savePrimaryToNormal=function(t,e,i){for(var r=0;r<i.length;r++){var n=i[r];null==t[n]||n in e||(e[n]=this[n])}},t.prototype.hasState=function(){return this.currentStates.length>0},t.prototype.getState=function(t){return this.states[t]},t.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},t.prototype.clearStates=function(t){this.useState(p,!1,t)},t.prototype.useState=function(e,i,r){var n=e===p,a=this.hasState();if(a||!n){var o=this.currentStates,s=this.stateTransition;if(!(Object(h["r"])(o,e)>=0)||!i&&1!==o.length){var l;if(this.stateProxy&&!n&&(l=this.stateProxy(e)),l||(l=this.states&&this.states[e]),l||n){n||this.saveCurrentToNormalState(l);var u=!(!l||!l.hoverLayer);return u&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,l,this._normalState,i,!r&&!this.__inHover&&s&&s.duration>0,s),this._textContent&&this._textContent.useState(e,i),this._textGuide&&this._textGuide.useState(e,i),n?(this.currentStates=[],this._normalState={}):i?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!u&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~t.REDARAW_BIT),l}Object(h["G"])("State "+e+" not exists.")}}},t.prototype.useStates=function(e,i){if(e.length){var r=[],n=this.currentStates,a=e.length,o=a===n.length;if(o)for(var s=0;s<a;s++)if(e[s]!==n[s]){o=!1;break}if(o)return;for(s=0;s<a;s++){var h=e[s],l=void 0;this.stateProxy&&(l=this.stateProxy(h,e)),l||(l=this.states[h]),l&&r.push(l)}var u=!(!r[a-1]||!r[a-1].hoverLayer);u&&this._toggleHoverLayerFlag(!0);var c=this._mergeStates(r),p=this.stateTransition;this.saveCurrentToNormalState(c),this._applyStateObj(e.join(","),c,this._normalState,!1,!i&&!this.__inHover&&p&&p.duration>0,p),this._textContent&&this._textContent.useStates(e),this._textGuide&&this._textGuide.useStates(e),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!u&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~t.REDARAW_BIT)}else this.clearStates()},t.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var e=this.animators[t];e.targetName&&e.changeTarget(this[e.targetName])}},t.prototype.removeState=function(t){var e=Object(h["r"])(this.currentStates,t);if(e>=0){var i=this.currentStates.slice();i.splice(e,1),this.useStates(i)}},t.prototype.replaceState=function(t,e,i){var r=this.currentStates.slice(),n=Object(h["r"])(r,t),a=Object(h["r"])(r,e)>=0;n>=0?a?r.splice(n,1):r[n]=e:i&&!a&&r.push(e),this.useStates(r)},t.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},t.prototype._mergeStates=function(t){for(var e,i={},r=0;r<t.length;r++){var n=t[r];Object(h["m"])(i,n),n.textConfig&&(e=e||{},Object(h["m"])(e,n.textConfig))}return e&&(i.textConfig=e),i},t.prototype._applyStateObj=function(t,e,i,r,n,a){var o=!(e&&r);e&&e.textConfig?(this.textConfig=Object(h["m"])({},r?this.textConfig:i.textConfig),Object(h["m"])(this.textConfig,e.textConfig)):o&&i.textConfig&&(this.textConfig=i.textConfig);for(var s={},l=!1,u=0;u<d.length;u++){var c=d[u],p=n&&f[c];e&&null!=e[c]?p?(l=!0,s[c]=e[c]):this[c]=e[c]:o&&null!=i[c]&&(p?(l=!0,s[c]=i[c]):this[c]=i[c])}if(!n)for(u=0;u<this.animators.length;u++){var _=this.animators[u],v=_.targetName;_.__changeFinalValue(v?(e||i)[v]:e||i)}l&&this._transitionState(t,s,a)},t.prototype._attachComponent=function(t){if(t.__zr&&!t.__hostTarget)throw new Error("Text element has been added to zrender.");if(t===this)throw new Error("Recursive component attachment.");var e=this.__zr;e&&t.addSelfToZr(e),t.__zr=e,t.__hostTarget=this},t.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},t.prototype.getClipPath=function(){return this._clipPath},t.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},t.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},t.prototype.getTextContent=function(){return this._textContent},t.prototype.setTextContent=function(t){var e=this._textContent;if(e!==t){if(e&&e!==t&&this.removeTextContent(),t.__zr&&!t.__hostTarget)throw new Error("Text element has been added to zrender.");t.attachedTransform=new r["a"],this._attachComponent(t),this._textContent=t,this.markRedraw()}},t.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),Object(h["m"])(this.textConfig,t),this.markRedraw()},t.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.attachedTransform=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},t.prototype.getTextGuideLine=function(){return this._textGuide},t.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},t.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},t.prototype.markRedraw=function(){this.__dirty|=t.REDARAW_BIT;var e=this.__zr;e&&(this.__inHover?e.refreshHover():e.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},t.prototype.dirty=function(){this.markRedraw()},t.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var e=this._textContent,i=this._textGuide;e&&(e.__inHover=t),i&&(i.__inHover=t)},t.prototype.addSelfToZr=function(t){this.__zr=t;var e=this.animators;if(e)for(var i=0;i<e.length;i++)t.animation.addAnimator(e[i]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)},t.prototype.removeSelfFromZr=function(t){this.__zr=null;var e=this.animators;if(e)for(var i=0;i<e.length;i++)t.animation.removeAnimator(e[i]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)},t.prototype.animate=function(t,e){var i=t?this[t]:this;if(i){var r=new n["b"](i,e);return this.addAnimator(r,t),r}Object(h["G"])('Property "'+t+'" is not existed in element '+this.id)},t.prototype.addAnimator=function(t,e){var i=this.__zr,r=this;t.during((function(){r.updateDuringAnimation(e)})).done((function(){var e=r.animators,i=Object(h["r"])(e,t);i>=0&&e.splice(i,1)})),this.animators.push(t),i&&i.animation.addAnimator(t),i&&i.wakeUp()},t.prototype.updateDuringAnimation=function(t){this.markRedraw()},t.prototype.stopAnimation=function(t,e){for(var i=this.animators,r=i.length,n=[],a=0;a<r;a++){var o=i[a];t&&t!==o.scope?n.push(o):o.stop(e)}return this.animators=n,this},t.prototype.animateTo=function(t,e,i){y(this,t,e,i)},t.prototype.animateFrom=function(t,e,i){y(this,t,e,i,!0)},t.prototype._transitionState=function(t,e,i,r){for(var n=y(this,e,i,r),a=0;a<n.length;a++)n[a].__fromStateTransition=t},t.prototype.getBoundingRect=function(){return null},t.prototype.getPaintRect=function(){return null},t.REDARAW_BIT=1,t.initDefaultProps=function(){var e=t.prototype;e.type="element",e.name="",e.ignore=!1,e.silent=!1,e.isGroup=!1,e.draggable=!1,e.dragging=!1,e.ignoreClip=!1,e.__inHover=!1,e.__dirty=t.REDARAW_BIT;var i={};function r(t,e,r){i[t+e+r]||(console.warn("DEPRECATED: '"+t+"' has been deprecated. use '"+e+"', '"+r+"' instead"),i[t+e+r]=!0)}function n(t,i,n,a){function o(t,e){Object.defineProperty(e,0,{get:function(){return t[n]},set:function(e){t[n]=e}}),Object.defineProperty(e,1,{get:function(){return t[a]},set:function(e){t[a]=e}})}Object.defineProperty(e,t,{get:function(){if(r(t,n,a),!this[i]){var e=this[i]=[];o(this,e)}return this[i]},set:function(e){r(t,n,a),this[n]=e[0],this[a]=e[1],this[i]=e,o(this,e)}})}Object.defineProperty&&(!c["a"].browser.ie||c["a"].browser.version>8)&&(n("position","_legacyPos","x","y"),n("scale","_legacyScale","scaleX","scaleY"),n("origin","_legacyOrigin","originX","originY"))}(),t}();function y(t,e,i,r,n){i=i||{};var a=[];w(t,"",t,e,i,r,a,n);var o=a.length,s=!1,h=i.done,l=i.aborted,u=function(){s=!0,o--,o<=0&&(s?h&&h():l&&l())},c=function(){o--,o<=0&&(s?h&&h():l&&l())};o||h&&h(),a.length>0&&i.during&&a[0].during((function(t,e){i.during(e)}));for(var p=0;p<a.length;p++){var d=a[p];u&&d.done(u),c&&d.aborted(c),d.start(i.easing,i.force)}return a}function m(t,e,i){for(var r=0;r<i;r++)t[r]=e[r]}function b(t){return Object(h["u"])(t[0])}function x(t,e,i){if(Object(h["u"])(e[i]))if(Object(h["u"])(t[i])||(t[i]=[]),Object(h["E"])(e[i])){var r=e[i].length;t[i].length!==r&&(t[i]=new e[i].constructor(r),m(t[i],e[i],r))}else{var n=e[i],a=t[i],o=n.length;if(b(n))for(var s=n[0].length,l=0;l<o;l++)a[l]?m(a[l],n[l],s):a[l]=Array.prototype.slice.call(n[l]);else m(a,n,o);a.length=n.length}else t[i]=e[i]}function w(t,e,i,r,a,o,s,l){for(var u=[],c=[],p=Object(h["F"])(r),d=a.duration,f=a.delay,_=a.additive,v=a.setToFinal,g=!Object(h["z"])(o),y=0;y<p.length;y++){var m=p[y];if(null!=i[m]&&null!=r[m]&&(g||o[m]))if(Object(h["z"])(r[m])&&!Object(h["u"])(r[m])){if(e){l||(i[m]=r[m],t.updateDuringAnimation(e));continue}w(t,m,i[m],r[m],a,o&&o[m],s,l)}else u.push(m),c.push(m);else l||(i[m]=r[m],t.updateDuringAnimation(e),c.push(m))}var b=u.length;if(b>0||a.force&&!s.length){for(var T=t.animators,C=[],k=0;k<T.length;k++)T[k].targetName===e&&C.push(T[k]);if(!_&&C.length)for(k=0;k<C.length;k++){var O=C[k].stopTracks(c);if(O){var S=Object(h["r"])(T,C[k]);T.splice(S,1)}}var L=void 0,z=void 0,P=void 0;if(l){z={},v&&(L={});for(k=0;k<b;k++){m=u[k];z[m]=i[m],v?L[m]=r[m]:i[m]=r[m]}}else if(v){P={};for(k=0;k<b;k++){m=u[k];P[m]=Object(n["a"])(i[m]),x(i,r,m)}}var A=new n["b"](i,!1,_?C:null);A.targetName=e,a.scope&&(A.scope=a.scope),v&&L&&A.whenWithKeys(0,L,u),P&&A.whenWithKeys(0,P,u),A.whenWithKeys(null==d?500:d,l?z:r,u).delay(f||0),t.addAnimator(A,e),s.push(A)}}Object(h["K"])(g,o["a"]),Object(h["K"])(g,r["a"]),e["a"]=g}}]); |