beehole-store-server
Version:
www.bee-hole.com
16 lines (14 loc) • 1.05 MB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1d7d97ec"],{"22d1":function(t,e,n){"use strict";var i=function(){function t(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return t}(),r=function(){function t(){this.browser=new i,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}return t}(),o=new r;function a(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}"object"===typeof wx&&"function"===typeof wx.getSystemInfoSync?(o.wxa=!0,o.touchEventsSupported=!0):"undefined"===typeof document&&"undefined"!==typeof self?o.worker=!0:"undefined"===typeof navigator?(o.node=!0,o.svgSupported=!0):a(navigator.userAgent,o),e["a"]=o},"313e":function(t,e,n){"use strict";n.d(e,"b",(function(){return v_})),n.d(e,"a",(function(){return r}));var i={};n.r(i),n.d(i,"updateProps",(function(){return Yl})),n.d(i,"initProps",(function(){return Xl})),n.d(i,"removeElement",(function(){return Zl})),n.d(i,"removeElementWithFadeOut",(function(){return Kl})),n.d(i,"isElementRemoved",(function(){return Ul})),n.d(i,"extendShape",(function(){return hy})),n.d(i,"extendPath",(function(){return dy})),n.d(i,"registerShape",(function(){return fy})),n.d(i,"getShapeClass",(function(){return gy})),n.d(i,"makePath",(function(){return yy})),n.d(i,"makeImage",(function(){return vy})),n.d(i,"mergePath",(function(){return xy})),n.d(i,"resizePath",(function(){return _y})),n.d(i,"subPixelOptimizeLine",(function(){return by})),n.d(i,"subPixelOptimizeRect",(function(){return wy})),n.d(i,"subPixelOptimize",(function(){return Sy})),n.d(i,"getTransform",(function(){return My})),n.d(i,"applyTransform",(function(){return Iy})),n.d(i,"transformDirection",(function(){return Oy})),n.d(i,"groupTransition",(function(){return ky})),n.d(i,"clipPointsByRect",(function(){return Dy})),n.d(i,"clipRectByRect",(function(){return Ay})),n.d(i,"createIcon",(function(){return Ly})),n.d(i,"linePolygonIntersect",(function(){return Py})),n.d(i,"lineLineIntersect",(function(){return jy})),n.d(i,"setTooltipConfig",(function(){return zy})),n.d(i,"traverseElements",(function(){return Vy})),n.d(i,"Group",(function(){return Ii})),n.d(i,"Image",(function(){return $a})),n.d(i,"Text",(function(){return Is})),n.d(i,"Circle",(function(){return tg})),n.d(i,"Ellipse",(function(){return ig})),n.d(i,"Sector",(function(){return bg})),n.d(i,"Ring",(function(){return Mg})),n.d(i,"Polygon",(function(){return kg})),n.d(i,"Polyline",(function(){return Lg})),n.d(i,"Rect",(function(){return ss})),n.d(i,"Line",(function(){return Ng})),n.d(i,"BezierCurve",(function(){return Fg})),n.d(i,"Arc",(function(){return Wg})),n.d(i,"IncrementalDisplayable",(function(){return sy})),n.d(i,"CompoundPath",(function(){return Xg})),n.d(i,"LinearGradient",(function(){return Kg})),n.d(i,"RadialGradient",(function(){return $g})),n.d(i,"BoundingRect",(function(){return Dt})),n.d(i,"OrientedBoundingRect",(function(){return ry})),n.d(i,"Point",(function(){return _t})),n.d(i,"Path",(function(){return Wa}));var r={};n.r(r),n.d(r,"extendShape",(function(){return hy})),n.d(r,"extendPath",(function(){return dy})),n.d(r,"makePath",(function(){return yy})),n.d(r,"makeImage",(function(){return vy})),n.d(r,"mergePath",(function(){return xy})),n.d(r,"resizePath",(function(){return _y})),n.d(r,"createIcon",(function(){return Ly})),n.d(r,"updateProps",(function(){return Yl})),n.d(r,"initProps",(function(){return Xl})),n.d(r,"getTransform",(function(){return My})),n.d(r,"clipPointsByRect",(function(){return Dy})),n.d(r,"clipRectByRect",(function(){return Ay})),n.d(r,"registerShape",(function(){return fy})),n.d(r,"getShapeClass",(function(){return gy})),n.d(r,"Group",(function(){return Ii})),n.d(r,"Image",(function(){return $a})),n.d(r,"Text",(function(){return Is})),n.d(r,"Circle",(function(){return tg})),n.d(r,"Ellipse",(function(){return ig})),n.d(r,"Sector",(function(){return bg})),n.d(r,"Ring",(function(){return Mg})),n.d(r,"Polygon",(function(){return kg})),n.d(r,"Polyline",(function(){return Lg})),n.d(r,"Rect",(function(){return ss})),n.d(r,"Line",(function(){return Ng})),n.d(r,"BezierCurve",(function(){return Fg})),n.d(r,"Arc",(function(){return Wg})),n.d(r,"IncrementalDisplayable",(function(){return sy})),n.d(r,"CompoundPath",(function(){return Xg})),n.d(r,"LinearGradient",(function(){return Kg})),n.d(r,"RadialGradient",(function(){return $g})),n.d(r,"BoundingRect",(function(){return Dt}));
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
var o=function(t,e){return o=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])},o(t,e)};function a(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}o(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}Object.create;Object.create;var s=n("22d1"),l=n("6d8b"),u=function(t,e){return u=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])},u(t,e)};function c(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}u(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}Object.create;Object.create;function h(t,e){return null==t&&(t=0),null==e&&(e=0),[t,e]}function p(t,e){return t[0]=e[0],t[1]=e[1],t}function d(t){return[t[0],t[1]]}function f(t,e,n){return t[0]=e,t[1]=n,t}function g(t,e,n){return t[0]=e[0]+n[0],t[1]=e[1]+n[1],t}function y(t,e,n,i){return t[0]=e[0]+n[0]*i,t[1]=e[1]+n[1]*i,t}function v(t,e,n){return t[0]=e[0]-n[0],t[1]=e[1]-n[1],t}function m(t){return Math.sqrt(x(t))}function x(t){return t[0]*t[0]+t[1]*t[1]}function _(t,e,n){return t[0]=e[0]*n,t[1]=e[1]*n,t}function b(t,e){var n=m(e);return 0===n?(t[0]=0,t[1]=0):(t[0]=e[0]/n,t[1]=e[1]/n),t}function w(t,e){return Math.sqrt((t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1]))}var S=w;function M(t,e){return(t[0]-e[0])*(t[0]-e[0])+(t[1]-e[1])*(t[1]-e[1])}var I=M;function O(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 C(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 T(t,e,n){return t[0]=Math.min(e[0],n[0]),t[1]=Math.min(e[1],n[1]),t}function k(t,e,n){return t[0]=Math.max(e[0],n[0]),t[1]=Math.max(e[1],n[1]),t}var D=function(){function t(t,e){this.target=t,this.topTarget=e&&e.topTarget}return t}(),A=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){var e=t.target;while(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 D(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 D(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 D(s,t),"dragleave",t.event),a&&a!==s&&this.handler.dispatchToElement(new D(a,t),"dragenter",t.event))}},t.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new D(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new D(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},t}(),L=A,P=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);break}}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));break}}return r&&r.afterTrigger&&r.afterTrigger(t),this},t}(),j=P,R=Math.log(2);function N(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)/R);return t[n][l]}var u=i|1<<n,c=n+1;while(i&1<<c)c++;for(var h=0,p=0,d=0;p<s;p++){var f=1<<p;f&r||(h+=(d%2?-1:1)*t[n][p]*N(t,e-1,c,u,r|f,o),d++)}return o[a]=h,h}function z(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=N(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)*N(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 E="___zrEVENTSAVED",V=[];function B(t,e,n,i,r){return F(V,e,i,r,!0)&&F(t,n,V[0],V[1])}function F(t,e,n,i,r){if(e.getBoundingClientRect&&s["a"].domSupported&&!W(e)){var o=e[E]||(e[E]={}),a=G(e,o),l=H(a,o,r);if(l)return l(t,n,i),!0}return!1}function G(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=a.style,l=o%2,u=(o>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[l]+":0",r[u]+":0",i[1-l]+":auto",r[1-u]+":auto",""].join("!important;"),t.appendChild(a),n.push(a)}return n}function H(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 c=t[u].getBoundingClientRect(),h=2*u,p=c.left,d=c.top;a.push(p,d),l=l&&o&&p===o[h]&&d===o[h+1],s.push(t[u].offsetLeft,t[u].offsetTop)}return l&&r?r:(e.srcCoords=a,e[i]=n?z(s,a):z(a,s))}function W(t){return"CANVAS"===t.nodeName.toUpperCase()}var Y=/([&<>"'])/g,X={"&":"&","<":"<",">":">",'"':""","'":"'"};function U(t){return null==t?"":(t+"").replace(Y,(function(t,e){return X[e]}))}var Z=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,q=[],K=s["a"].browser.firefox&&+s["a"].browser.version.split(".")[0]<39;function Q(t,e,n,i){return n=n||{},i?$(t,e,n):K&&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):$(t,e,n),n}function $(t,e,n){if(s["a"].domSupported&&t.getBoundingClientRect){var i=e.clientX,r=e.clientY;if(W(t)){var o=t.getBoundingClientRect();return n.zrX=i-o.left,void(n.zrY=r-o.top)}if(F(q,t,i,r))return n.zrX=q[0],void(n.zrY=q[1])}n.zrX=n.zrY=0}function J(t){return t||window.event}function tt(t,e,n){if(e=J(e),null!=e.zrX)return e;var i=e.type,r=i&&i.indexOf("touch")>=0;if(r){var o="touchend"!==i?e.targetTouches[0]:e.changedTouches[0];o&&Q(t,o,e,n)}else{Q(t,e,e,n);var a=et(e);e.zrDelta=a?a/120:-(e.detail||0)/3}var s=e.button;return null==e.which&&void 0!==s&&Z.test(e.type)&&(e.which=1&s?1:2&s?3:4&s?2:0),e}function et(t){var e=t.wheelDelta;if(e)return e;var n=t.deltaX,i=t.deltaY;if(null==n||null==i)return e;var r=0!==i?Math.abs(i):Math.abs(n),o=i>0?-1:i<0?1:n>0?-1:1;return 3*r*o}function nt(t,e,n,i){t.addEventListener(e,n,i)}function it(t,e,n,i){t.removeEventListener(e,n,i)}var rt=function(t){t.preventDefault(),t.stopPropagation(),t.cancelBubble=!0};function ot(t){return 2===t.which||3===t.which}var at=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=Q(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 ut)if(ut.hasOwnProperty(e)){var n=ut[e](this._track,t);if(n)return n}},t}();function st(t){var e=t[1][0]-t[0][0],n=t[1][1]-t[0][1];return Math.sqrt(e*e+n*n)}function lt(t){return[(t[0][0]+t[1][0])/2,(t[0][1]+t[1][1])/2]}var ut={pinch:function(t,e){var n=t.length;if(n){var i=(t[n-1]||{}).points,r=(t[n-2]||{}).points||i;if(r&&r.length>1&&i&&i.length>1){var o=st(i)/st(r);!isFinite(o)&&(o=1),e.pinchScale=o;var a=lt(i);return e.pinchX=a[0],e.pinchY=a[1],{type:"pinch",target:t[0].target,event:e}}}}};function ct(){return[1,0,0,1,0,0]}function ht(t){return t[0]=1,t[1]=0,t[2]=0,t[3]=1,t[4]=0,t[5]=0,t}function pt(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 dt(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 ft(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 gt(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),c=Math.cos(n);return t[0]=i*c+a*u,t[1]=-i*u+a*c,t[2]=r*c+s*u,t[3]=-r*u+c*s,t[4]=c*o+u*l,t[5]=c*l-u*o,t}function yt(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 vt(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 mt(t){var e=ct();return pt(e,t),e}var xt=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}(),_t=xt,bt=Math.min,wt=Math.max,St=new _t,Mt=new _t,It=new _t,Ot=new _t,Ct=new _t,Tt=new _t,kt=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=bt(t.x,this.x),n=bt(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=wt(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=wt(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=ct();return ft(r,r,[-e.x,-e.y]),yt(r,r,[n,i]),ft(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,c=e.y,h=e.y+e.height,p=!(o<l||u<r||s<c||h<a);if(n){var d=1/0,f=0,g=Math.abs(o-l),y=Math.abs(u-r),v=Math.abs(s-c),m=Math.abs(h-a),x=Math.min(g,y),_=Math.min(v,m);o<l||u<r?x>f&&(f=x,g<y?_t.set(Tt,-g,0):_t.set(Tt,y,0)):x<d&&(d=x,g<y?_t.set(Ct,g,0):_t.set(Ct,-y,0)),s<c||h<a?_>f&&(f=_,v<m?_t.set(Tt,0,-v):_t.set(Tt,0,m)):x<d&&(d=x,v<m?_t.set(Ct,0,v):_t.set(Ct,0,-m))}return n&&_t.copy(n,p?Ct:Tt),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))}St.x=It.x=n.x,St.y=Ot.y=n.y,Mt.x=Ot.x=n.x+n.width,Mt.y=It.y=n.y+n.height,St.transform(i),Ot.transform(i),Mt.transform(i),It.transform(i),e.x=bt(St.x,Mt.x,It.x,Ot.x),e.y=bt(St.y,Mt.y,It.y,Ot.y);var l=wt(St.x,Mt.x,It.x,Ot.x),u=wt(St.y,Mt.y,It.y,Ot.y);e.width=l-e.x,e.height=u-e.y}else e!==n&&t.copy(e,n)},t}(),Dt=kt,At="silent";function Lt(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:Pt}}function Pt(){rt(this.event)}var jt=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.handler=null,e}return c(e,t),e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e}(j),Rt=function(){function t(t,e){this.x=t,this.y=e}return t}(),Nt=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],zt=new Dt(0,0,0,0),Et=function(t){function e(e,n,i,r,o){var a=t.call(this)||this;return a._hovered=new Rt(0,0),a.storage=e,a.painter=n,a.painterRoot=r,a._pointerSize=o,i=i||new jt,a.proxy=null,a.setHandlerProxy(i),a._draggingMgr=new L(a),a}return c(e,t),e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(l["k"](Nt,(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=Ft(this,e,n),r=this._hovered,o=r.target;o&&!o.__zr&&(r=this.findHover(r.x,r.y),o=r.target);var a=this._hovered=i?new Rt(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 Rt(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){t=t||{};var i=t.target;if(!i||!i.silent){var r="on"+e,o=Lt(e,t,n);while(i)if(i[r]&&(o.cancelBubble=!!i[r].call(i,o)),i.trigger(e,o),i=i.__hostTarget?i.__hostTarget:i.parent,o.cancelBubble)break;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 Rt(t,e);if(Bt(i,r,t,e,n),this._pointerSize&&!r.target){for(var o=[],a=this._pointerSize,s=a/2,l=new Dt(t-s,e-s,a,a),u=i.length-1;u>=0;u--){var c=i[u];c===n||c.ignore||c.ignoreCoarsePointer||c.parent&&c.parent.ignoreCoarsePointer||(zt.copy(c.getBoundingRect()),c.transform&&zt.applyTransform(c.transform),zt.intersect(l)&&o.push(c))}if(o.length)for(var h=4,p=Math.PI/12,d=2*Math.PI,f=0;f<s;f+=h)for(var g=0;g<d;g+=p){var y=t+f*Math.cos(g),v=e+f*Math.sin(g);if(Bt(o,r,y,v,n),r.target)return r}}return r},e.prototype.processGesture=function(t,e){this._gestureMgr||(this._gestureMgr=new at);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 Rt;o.target=i.target,this.dispatchToElement(o,r,i.event)}},e}(j);function Vt(t,e,n){if(t[t.rectHover?"rectContain":"contain"](e,n)){var i=t,r=void 0,o=!1;while(i){if(i.ignoreClip&&(o=!0),!o){var a=i.getClipPath();if(a&&!a.contain(e,n))return!1;i.silent&&(r=!0)}var s=i.__hostTarget;i=s||i.parent}return!r||At}return!1}function Bt(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=Vt(a,n,i))&&(!e.topTarget&&(e.topTarget=a),s!==At)){e.target=a;break}}}function Ft(t,e,n){var i=t.painter;return e<0||e>i.getWidth()||n<0||n>i.getHeight()}l["k"](["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],(function(t){Et.prototype[t]=function(e){var n,i,r=e.zrX,o=e.zrY,a=Ft(this,r,o);if("mouseup"===t&&a||(n=this.findHover(r,o),i=n.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||S(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,t,e)}}));var Gt=Et,Ht=32,Wt=7;function Yt(t){var e=0;while(t>=Ht)e|=1&t,t>>=1;return t+e}function Xt(t,e,n,i){var r=e+1;if(r===n)return 1;if(i(t[r++],t[e])<0){while(r<n&&i(t[r],t[r-1])<0)r++;Ut(t,e,r)}else while(r<n&&i(t[r],t[r-1])>=0)r++;return r-e}function Ut(t,e,n){n--;while(e<n){var i=t[e];t[e++]=t[n],t[n--]=i}}function Zt(t,e,n,i,r){for(i===e&&i++;i<n;i++){var o,a=t[i],s=e,l=i;while(s<l)o=s+l>>>1,r(a,t[o])<0?l=o:s=o+1;var u=i-s;switch(u){case 3:t[s+3]=t[s+2];case 2:t[s+2]=t[s+1];case 1:t[s+1]=t[s];break;default:while(u>0)t[s+u]=t[s+u-1],u--}t[s]=a}}function qt(t,e,n,i,r,o){var a=0,s=0,l=1;if(o(t,e[n+r])>0){s=i-r;while(l<s&&o(t,e[n+r+l])>0)a=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}else{s=r+1;while(l<s&&o(t,e[n+r-l])<=0)a=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s);var u=a;a=r-l,l=r-u}a++;while(a<l){var c=a+(l-a>>>1);o(t,e[n+c])>0?a=c+1:l=c}return l}function Kt(t,e,n,i,r,o){var a=0,s=0,l=1;if(o(t,e[n+r])<0){s=r+1;while(l<s&&o(t,e[n+r-l])<0)a=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s);var u=a;a=r-l,l=r-u}else{s=i-r;while(l<s&&o(t,e[n+r+l])>=0)a=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s),a+=r,l+=r}a++;while(a<l){var c=a+(l-a>>>1);o(t,e[n+c])<0?l=c:a=c+1}return l}function Qt(t,e){var n,i,r=Wt,o=0,a=0;o=t.length;var s=[];function l(t,e){n[a]=t,i[a]=e,a+=1}function u(){while(a>1){var t=a-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;h(t)}}function c(){while(a>1){var t=a-2;t>0&&i[t-1]<i[t+1]&&t--,h(t)}}function h(r){var o=n[r],s=i[r],l=n[r+1],u=i[r+1];i[r]=s+u,r===a-3&&(n[r+1]=n[r+2],i[r+1]=i[r+2]),a--;var c=Kt(t[l],t,o,s,0,e);o+=c,s-=c,0!==s&&(u=qt(t[o+s-1],t,l,u,u-1,e),0!==u&&(s<=u?p(o,s,l,u):d(o,s,l,u)))}function p(n,i,o,a){var l=0;for(l=0;l<i;l++)s[l]=t[n+l];var u=0,c=o,h=n;if(t[h++]=t[c++],0!==--a)if(1!==i){var p,d,f,g=r;while(1){p=0,d=0,f=!1;do{if(e(t[c],s[u])<0){if(t[h++]=t[c++],d++,p=0,0===--a){f=!0;break}}else if(t[h++]=s[u++],p++,d=0,1===--i){f=!0;break}}while((p|d)<g);if(f)break;do{if(p=Kt(t[c],s,u,i,0,e),0!==p){for(l=0;l<p;l++)t[h+l]=s[u+l];if(h+=p,u+=p,i-=p,i<=1){f=!0;break}}if(t[h++]=t[c++],0===--a){f=!0;break}if(d=qt(s[u],t,c,a,0,e),0!==d){for(l=0;l<d;l++)t[h+l]=t[c+l];if(h+=d,c+=d,a-=d,0===a){f=!0;break}}if(t[h++]=s[u++],1===--i){f=!0;break}g--}while(p>=Wt||d>=Wt);if(f)break;g<0&&(g=0),g+=2}if(r=g,r<1&&(r=1),1===i){for(l=0;l<a;l++)t[h+l]=t[c+l];t[h+a]=s[u]}else{if(0===i)throw new Error;for(l=0;l<i;l++)t[h+l]=s[u+l]}}else{for(l=0;l<a;l++)t[h+l]=t[c+l];t[h+a]=s[u]}else for(l=0;l<i;l++)t[h+l]=s[u+l]}function d(n,i,o,a){var l=0;for(l=0;l<a;l++)s[l]=t[o+l];var u=n+i-1,c=a-1,h=o+a-1,p=0,d=0;if(t[h--]=t[u--],0!==--i)if(1!==a){var f=r;while(1){var g=0,y=0,v=!1;do{if(e(s[c],t[u])<0){if(t[h--]=t[u--],g++,y=0,0===--i){v=!0;break}}else if(t[h--]=s[c--],y++,g=0,1===--a){v=!0;break}}while((g|y)<f);if(v)break;do{if(g=i-Kt(s[c],t,n,i,i-1,e),0!==g){for(h-=g,u-=g,i-=g,d=h+1,p=u+1,l=g-1;l>=0;l--)t[d+l]=t[p+l];if(0===i){v=!0;break}}if(t[h--]=s[c--],1===--a){v=!0;break}if(y=a-qt(t[u],s,0,a,a-1,e),0!==y){for(h-=y,c-=y,a-=y,d=h+1,p=c+1,l=0;l<y;l++)t[d+l]=s[p+l];if(a<=1){v=!0;break}}if(t[h--]=t[u--],0===--i){v=!0;break}f--}while(g>=Wt||y>=Wt);if(v)break;f<0&&(f=0),f+=2}if(r=f,r<1&&(r=1),1===a){for(h-=i,u-=i,d=h+1,p=u+1,l=i-1;l>=0;l--)t[d+l]=t[p+l];t[h]=s[c]}else{if(0===a)throw new Error;for(p=h-(a-1),l=0;l<a;l++)t[p+l]=s[l]}}else{for(h-=i,u-=i,d=h+1,p=u+1,l=i-1;l>=0;l--)t[d+l]=t[p+l];t[h]=s[c]}else for(p=h-(a-1),l=0;l<a;l++)t[p+l]=s[l]}return o<120?5:o<1542?10:o<119151?19:40,n=[],i=[],{mergeRuns:u,forceMergeRuns:c,pushRun:l}}function $t(t,e,n,i){n||(n=0),i||(i=t.length);var r=i-n;if(!(r<2)){var o=0;if(r<Ht)return o=Xt(t,n,i,e),void Zt(t,n,i,n+o,e);var a=Qt(t,e),s=Yt(r);do{if(o=Xt(t,n,i,e),o<s){var l=r;l>s&&(l=s),Zt(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 Jt=1,te=2,ee=4,ne=!1;function ie(){ne||(ne=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function re(t,e){return t.zlevel===e.zlevel?t.z===e.z?t.z2-e.z2:t.z-e.z:t.zlevel-e.zlevel}var oe,ae=function(){function t(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=re}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,$t(n,re)},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():[];var r=i,o=t;while(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|=Jt),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)&&(ie(),u.z=0),isNaN(u.z2)&&(ie(),u.z2=0),isNaN(u.zlevel)&&(ie(),u.zlevel=0),this._displayList[this._displayListLen++]=u}var c=t.getDecalElement&&t.getDecalElement();c&&this._updateAndAddDisplayable(c,e,n);var h=t.getTextGuideLine();h&&this._updateAndAddDisplayable(h,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=l["r"](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}(),se=ae;oe=s["a"].hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(t){return setTimeout(t,16)};var le=oe,ue={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,i=.4;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=i/4):e=i*Math.asin(1/n)/(2*Math.PI),-n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i))},elasticOut:function(t){var e,n=.1,i=.4;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=i/4):e=i*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*t)*Math.sin((t-e)*(2*Math.PI)/i)+1)},elasticInOut:function(t){var e,n=.1,i=.4;return 0===t?0:1===t?1:(!n||n<1?(n=1,e=i/4):e=i*Math.asin(1/n)/(2*Math.PI),(t*=2)<1?n*Math.pow(2,10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i)*-.5:n*Math.pow(2,-10*(t-=1))*Math.sin((t-e)*(2*Math.PI)/i)*.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-ue.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*ue.bounceIn(2*t):.5*ue.bounceOut(2*t-1)+.5}},ce=ue,he=Math.pow,pe=Math.sqrt,de=1e-8,fe=1e-4,ge=pe(3),ye=1/3,ve=h(),me=h(),xe=h();function _e(t){return t>-de&&t<de}function be(t){return t>de||t<-de}function we(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 Se(t,e,n,i,r){var o=1-r;return 3*(((e-t)*o+2*(n-e)*r)*o+(i-n)*r*r)}function Me(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,c=s*s-3*a*l,h=s*l-9*a*u,p=l*l-3*s*u,d=0;if(_e(c)&&_e(h))if(_e(s))o[0]=0;else{var f=-l/s;f>=0&&f<=1&&(o[d++]=f)}else{var g=h*h-4*c*p;if(_e(g)){var y=h/c,v=(f=-s/a+y,-y/2);f>=0&&f<=1&&(o[d++]=f),v>=0&&v<=1&&(o[d++]=v)}else if(g>0){var m=pe(g),x=c*s+1.5*a*(-h+m),_=c*s+1.5*a*(-h-m);x=x<0?-he(-x,ye):he(x,ye),_=_<0?-he(-_,ye):he(_,ye);f=(-s-(x+_))/(3*a);f>=0&&f<=1&&(o[d++]=f)}else{var b=(2*c*s-3*a*h)/(2*pe(c*c*c)),w=Math.acos(b)/3,S=pe(c),M=Math.cos(w),I=(f=(-s-2*S*M)/(3*a),v=(-s+S*(M+ge*Math.sin(w)))/(3*a),(-s+S*(M-ge*Math.sin(w)))/(3*a));f>=0&&f<=1&&(o[d++]=f),v>=0&&v<=1&&(o[d++]=v),I>=0&&I<=1&&(o[d++]=I)}}return d}function Ie(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(_e(a)){if(be(o)){var u=-s/o;u>=0&&u<=1&&(r[l++]=u)}}else{var c=o*o-4*a*s;if(_e(c))r[0]=-o/(2*a);else if(c>0){var h=pe(c),p=(u=(-o+h)/(2*a),(-o-h)/(2*a));u>=0&&u<=1&&(r[l++]=u),p>=0&&p<=1&&(r[l++]=p)}}return l}function Oe(t,e,n,i,r,o){var a=(e-t)*r+t,s=(n-e)*r+e,l=(i-n)*r+n,u=(s-a)*r+a,c=(l-s)*r+s,h=(c-u)*r+u;o[0]=t,o[1]=a,o[2]=u,o[3]=h,o[4]=h,o[5]=c,o[6]=l,o[7]=i}function Ce(t,e,n,i,r,o,a,s,l,u,c){var h,p,d,f,g,y=.005,v=1/0;ve[0]=l,ve[1]=u;for(var m=0;m<1;m+=.05)me[0]=we(t,n,r,a,m),me[1]=we(e,i,o,s,m),f=I(ve,me),f<v&&(h=m,v=f);v=1/0;for(var x=0;x<32;x++){if(y<fe)break;p=h-y,d=h+y,me[0]=we(t,n,r,a,p),me[1]=we(e,i,o,s,p),f=I(me,ve),p>=0&&f<v?(h=p,v=f):(xe[0]=we(t,n,r,a,d),xe[1]=we(e,i,o,s,d),g=I(xe,ve),d<=1&&g<v?(h=d,v=g):y*=.5)}return c&&(c[0]=we(t,n,r,a,h),c[1]=we(e,i,o,s,h)),pe(v)}function Te(t,e,n,i,r,o,a,s,l){for(var u=t,c=e,h=0,p=1/l,d=1;d<=l;d++){var f=d*p,g=we(t,n,r,a,f),y=we(e,i,o,s,f),v=g-u,m=y-c;h+=Math.sqrt(v*v+m*m),u=g,c=y}return h}function ke(t,e,n,i){var r=1-i;return r*(r*t+2*i*e)+i*i*n}function De(t,e,n,i){return 2*((1-i)*(e-t)+i*(n-e))}function Ae(t,e,n,i,r){var o=t-2*e+n,a=2*(e-t),s=t-i,l=0;if(_e(o)){if(be(a)){var u=-s/a;u>=0&&u<=1&&(r[l++]=u)}}else{var c=a*a-4*o*s;if(_e(c)){u=-a/(2*o);u>=0&&u<=1&&(r[l++]=u)}else if(c>0){var h=pe(c),p=(u=(-a+h)/(2*o),(-a-h)/(2*o));u>=0&&u<=1&&(r[l++]=u),p>=0&&p<=1&&(r[l++]=p)}}return l}function Le(t,e,n){var i=t+n-2*e;return 0===i?.5:(t-e)/i}function Pe(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 je(t,e,n,i,r,o,a,s,l){var u,c=.005,h=1/0;ve[0]=a,ve[1]=s;for(var p=0;p<1;p+=.05){me[0]=ke(t,n,r,p),me[1]=ke(e,i,o,p);var d=I(ve,me);d<h&&(u=p,h=d)}h=1/0;for(var f=0;f<32;f++){if(c<fe)break;var g=u-c,y=u+c;me[0]=ke(t,n,r,g),me[1]=ke(e,i,o,g);d=I(me,ve);if(g>=0&&d<h)u=g,h=d;else{xe[0]=ke(t,n,r,y),xe[1]=ke(e,i,o,y);var v=I(xe,ve);y<=1&&v<h?(u=y,h=v):c*=.5}}return l&&(l[0]=ke(t,n,r,u),l[1]=ke(e,i,o,u)),pe(h)}function Re(t,e,n,i,r,o,a){for(var s=t,l=e,u=0,c=1/a,h=1;h<=a;h++){var p=h*c,d=ke(t,n,r,p),f=ke(e,i,o,p),g=d-s,y=f-l;u+=Math.sqrt(g*g+y*y),s=d,l=f}return u}var Ne=/cubic-bezier\(([0-9,\.e ]+)\)/;function ze(t){var e=t&&Ne.exec(t);if(e){var n=e[1].split(","),i=+Object(l["T"])(n[0]),r=+Object(l["T"])(n[1]),o=+Object(l["T"])(n[2]),a=+Object(l["T"])(n[3]);if(isNaN(i+r+o+a))return;var s=[];return function(t){return t<=0?0:t>=1?1:Me(0,i,o,1,t,s)&&we(0,r,a,1,s[0])}}}var Ee=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||l["L"],this.ondestroy=t.ondestroy||l["L"],this.onrestart=t.onrestart||l["L"],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=function(){this._paused=!0},t.prototype.resume=function(){this._paused=!1},t.prototype.setEasing=function(t){this.easing=t,this.easingFunc=Object(l["w"])(t)?t:ce[t]||ze(t)},t}(),Ve=Ee,Be=n("41ef"),Fe=n("7a29"),Ge=Array.prototype.slice;function He(t,e,n){return(e-t)*n+t}function We(t,e,n,i){for(var r=e.length,o=0;o<r;o++)t[o]=He(e[o],n[o],i);return t}function Ye(t,e,n,i){for(var r=e.length,o=r&&e[0].length,a=0;a<r;a++){t[a]||(t[a]=[]);for(var s=0;s<o;s++)t[a][s]=He(e[a][s],n[a][s],i)}return t}function Xe(t,e,n,i){for(var r=e.length,o=0;o<r;o++)t[o]=e[o]+n[o]*i;return t}function Ue(t,e,n,i){for(var r=e.length,o=r&&e[0].length,a=0;a<r;a++){t[a]||(t[a]=[]);for(var s=0;s<o;s++)t[a][s]=e[a][s]+n[a][s]*i}return t}function Ze(t,e){for(var n=t.length,i=e.length,r=n>i?e:t,o=Math.min(n,i),a=r[o-1]||{color:[0,0,0,0],offset:0},s=o;s<Math.max(n,i);s++)r.push({offset:a.offset,color:a.color.slice()})}function qe(t,e,n){var i=t,r=e;if(i.push&&r.push){var o=i.length,a=r.length;if(o!==a){var s=o>a;if(s)i.length=a;else for(var l=o;l<a;l++)i.push(1===n?r[l]:Ge.call(r[l]))}var u=i[0]&&i[0].length;for(l=0;l<i.length;l++)if(1===n)isNaN(i[l])&&(i[l]=r[l]);else for(var c=0;c<u;c++)isNaN(i[l][c])&&(i[l][c]=r[l][c])}}function Ke(t){if(Object(l["u"])(t)){var e=t.length;if(Object(l["u"])(t[0])){for(var n=[],i=0;i<e;i++)n.push(Ge.call(t[i]));return n}return Ge.call(t)}return t}function Qe(t){return t[0]=Math.floor(t[0])||0,t[1]=Math.floor(t[1])||0,t[2]=Math.floor(t[2])||0,t[3]=null==t[3]?1:t[3],"rgba("+t.join(",")+")"}function $e(t){return Object(l["u"])(t&&t[0])?2:1}var Je=0,tn=1,en=2,nn=3,rn=4,on=5,an=6;function sn(t){return t===rn||t===on}function ln(t){return t===tn||t===en}var un=[0,0,0,0],cn=function(){function t(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=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.keyframes.length>=1},t.prototype.getAdditiveTrack=function(){return this._additiveTrack},t.prototype.addKeyframe=function(t,e,n){this._needsSort=!0;var i=this.keyframes,r=i.length,o=!1,a=an,s=e;if(Object(l["u"])(e)){var u=$e(e);a=u,(1===u&&!Object(l["z"])(e[0])||2===u&&!Object(l["z"])(e[0][0]))&&(o=!0)}else if(Object(l["z"])(e)&&!Object(l["l"])(e))a=Je;else if(Object(l["C"])(e))if(isNaN(+e)){var c=Be["g"](e);c&&(s=c,a=nn)}else a=Je;else if(Object(l["x"])(e)){var h=Object(l["m"])({},s);h.colorStops=Object(l["H"])(e.colorStops,(function(t){return{offset:t.offset,color:Be["g"](t.color)}})),Object(Fe["m"])(e)?a=rn:Object(Fe["o"])(e)&&(a=on),s=h}0===r?this.valType=a:a===this.valType&&a!==an||(o=!0),this.discrete=this.discrete||o;var p={time:t,value:s,rawValue:e,percent:0};return n&&(p.easing=n,p.easingFunc=Object(l["w"])(n)?n:ce[n]||ze(n)),i.push(p),p},t.prototype.prepare=function(t,e){var n=this.keyframes;this._needsSort&&n.sort((function(t,e){return t.time-e.time}));for(var i=this.valType,r=n.length,o=n[r-1],a=this.discrete,s=ln(i),l=sn(i),u=0;u<r;u++){var c=n[u],h=c.value,p=o.value;c.percent=c.time/t,a||(s&&u!==r-1?qe(h,p,i):l&&Ze(h.colorStops,p.colorStops))}if(!a&&i!==on&&e&&this.needsAnimate()&&e.needsAnimate()&&i===e.valType&&!e._finished){this._additiveTrack=e;var d=n[0].value;for(u=0;u<r;u++)i===Je?n[u].additiveValue=n[u].value-d:i===nn?n[u].additiveValue=Xe([],n[u].value,d,-1):ln(i)&&(n[u].additiveValue=i===tn?Xe([],n[u].value,d,-1):Ue([],n[u].value,d,-1))}},t.prototype.step=function(t,e){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var n,i,r,o=null!=this._additiveTrack,a=o?"additiveValue":"value",s=this.valType,u=this.keyframes,c=u.length,h=this.propName,p=s===nn,d=this._lastFr,f=Math.min;if(1===c)i=r=u[0];else{if(e<0)n=0;else if(e<this._lastFrP){var g=f(d+1,c-1);for(n=g;n>=0;n--)if(u[n].percent<=e)break;n=f(n,c-2)}else{for(n=d;n<c;n++)if(u[n].percent>e)break;n=f(n-1,c-2)}r=u[n+1],i=u[n]}if(i&&r){this._lastFr=n,this._lastFrP=e;var y=r.percent-i.percent,v=0===y?1:f((e-i.percent)/y,1);r.easingFunc&&(v=r.easingFunc(v));var m=o?this._additiveValue:p?un:t[h];if(!ln(s)&&!p||m||(m=this._additiveValue=[]),this.discrete)t[h]=v<1?i.rawValue:r.rawValue;else if(ln(s))s===tn?We(m,i[a],r[a],v):Ye(m,i[a],r[a],v);else if(sn(s)){var x=i[a],_=r[a],b=s===rn;t[h]={type:b?"linear":"radial",x:He(x.x,_.x,v),y:He(x.y,_.y,v),colorStops:Object(l["H"])(x.colorStops,(function(t,e){var n=_.colorStops[e];return{offset:He(t.offset,n.offset,v),color:Qe(We([],t.color,n.color,v))}})),global:_.global},b?(t[h].x2=He(x.x2,_.x2,v),t[h].y2=He(x.y2,_.y2,v)):t[h].r=He(x.r,_.r,v)}else if(p)We(m,i[a],r[a],v),o||(t[h]=Qe(m));else{var w=He(i[a],r[a],v);o?this._additiveValue=w:t[h]=w}o&&this._addToTarget(t)}}},t.prototype._addToTarget=function(t){var e=this.valType,n=this.propName,i=this._additiveValue;e===Je?t[n]=t[n]+i:e===nn?(Be["g"](t[n],un),Xe(un,un,i,1),t[n]=Qe(un)):e===tn?Xe(t[n],t[n],i,1):e===en&&Ue(t[n],t[n],i,1)},t}(),hn=function(){function t(t,e,n,i){this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&i?Object(l["G"])("Can' use additive animation on looped animation."):(this._additiveAnimators=i,this._allowDiscrete=n)}return t.prototype.getMaxTime=function(){return this._maxTime},t.prototype.getDelay=function(){return this._delay},t.prototype.getLoop=function(){return this._loop},t.prototype.getTarget=function(){return this._target},t.prototype.changeTarget=function(t){this._target=t},t.prototype.when=function(t,e,n){return this.whenWithKeys(t,e,Object(l["F"])(e),n)},t.prototype.whenWithKeys=function(t,e,n,i){for(var r=this._tracks,o=0;o<n.length;o++){var a=n[o],s=r[a];if(!s){s=r[a]=new cn(a);var l=void 0,u=this._getAdditiveTrack(a);if(u){var c=u.keyframes,h=c[c.length-1];l=h&&h.value,u.valType===nn&&l&&(l=Qe(l))}else l=this._target[a];if(null==l)continue;t>0&&s.addKeyframe(0,Ke(l),i),this._trackKeys.push(a)}s.addKeyframe(t,Ke(e[a]),i)}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.duration=function(t){return this._maxTime=t,this._force=!0,this},t.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,n=0;n<e;n++)t[n].call(this)},t.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,e=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,e)for(var n=0;n<e.length;n++)e[n].call(this)},t.prototype._setTracksFinished=function(){for(var t=this._tracks,e=this._trackKeys,n=0;n<e.length;n++)t[e[n]].setFinished()},t.prototype._getAdditiveTrack=function(t){var e,n=this._additiveAnimators;if(n)for(var i=0;i<n.length;i++){var r=n[i].getTrack(t);r&&(e=r)}return e},t.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var e=this,n=[],i=this._maxTime||0,r=0;r<this._trackKeys.length;r++){var o=this._trackKeys[r],a=this._tracks[o],s=this._getAdditiveTrack(o),l=a.keyframes,u=l.length;if(a.prepare(i,s),a.needsAnimate())if(!this._allowDiscrete&&a.discrete){var c=l[u-1];c&&(e._target[a.propName]=c.rawValue),a.setFinished()}else n.push(a)}if(n.length||this._force){var h=new Ve({life:i,loop:this._loop,delay:this._delay||0,onframe:function(t){e._started=2;var i=e._additiveAnimators;if(i){for(var r=!1,o=0;o<i.length;o++)if(i[o]._clip){r=!0;break}r||(e._additiveAnimators=null)}for(o=0;o<n.length;o++)n[o].step(e._target,t);var a=e._onframeCbs;if(a)for(o=0;o<a.length;o++)a[o](e._target,t)},ondestroy:function(){e._doneCallback()}});this._clip=h,this.animation&&this.animation.addClip(h),t&&h.setEasing(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._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},t.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},t.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},t.prototype.getClip=function(){return this._clip},t.prototype.getTrack=function(t){return this._tracks[t]},t.prototype.getTracks=function(){var t=this;return Object(l["H"])(this._trackKeys,(function(e){return t._tracks[e]}))},t.prototype.stopTracks=function(t,e){if(!t.length||!this._clip)return!0;for(var n=this._tracks,i=this._trackKeys,r=0;r<t.length;r++){var o=n[t[r]];o&&!o.isFinished()&&(e?o.step(this._target,1):1===this._started&&o.step(this._target,0),o.setFinished())}var a=!0;for(r=0;r<i.length;r++)if(!n[i[r]].isFinished()){a=!1;break}return a&&this._abortedCallback(),a},t.prototype.saveTo=function(t,e,n){if(t){e=e||this._trackKeys;for(var i=0;i<e.length;i++){var r=e[i],o=this._tracks[r];if(o&&!o.isFinished()){var a=o.keyframes,s=a[n?0:a.length-1];s&&(t[r]=Ke(s.rawValue))}}}},t.prototype.__changeFinalValue=function(t,e){e=e||Object(l["F"])(t);for(var n=0;n<e.length;n++){var i=e[n],r=this._tracks[i];if(r){var o=r.keyframes;if(o.length>1){var a=o.pop();r.addKeyframe(a.time,t[i]),r.prepare(this._maxTime,r.getAdditiveTrack())}}}},t}(),pn=hn;function dn(){return(new Date).getTime()}var fn=function(t){function e(e){var n=t.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,e=e||{},n.stage=e.stage||{},n}return c(e,t),e.prototype.addClip=function(t){t.animation&&this.removeClip(t),this._head?(this._tail.next=t,t.prev=this._tail,t.next=null,this._tail=t):this._head=this._tail=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,n=t.next;e?e.next=n:this._head=n,n?n.prev=e:this._tail=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=dn()-this._pausedTime,n=e-this._time,i=this._head;while(i){var r=i.next,o=i.step(e,n);o?(i.ondestroy(),this.removeClip(i),i=r):i=r}this._time=e,t||(this.trigger("frame",n),this.stage.update&&this.stage.update())},e.prototype._startLoop=function(){var t=this;function e(){t._running&&(le(e),!t._paused&&t.update())}this._running=!0,le(e)},e.prototype.start=function(){this._running||(this._time=dn(),this._pausedTime=0,this._startLoop())},e.prototype.stop=function(){this._running=!1},e.prototype.pause=function(){this._paused||(this._pauseStart=dn(),this._paused=!0)},e.prototype.resume=function(){this._paused&&(this._pausedTime+=dn()-this._pauseStart,this._paused=!1)},e.prototype.clear=function(){var t=this._head;while(t){var e=t.next;t.prev=t.next=t.animation=null,t=e}this._head=this._tail=null},e.prototype.isFinished=function(){return null==this._head},e.prototype.animate=function(t,e){e=e||{},this.start();var n=new pn(t,e.loop);return this.addAnimator(n),n},e}(j),gn=fn,yn=300,vn=s["a"].domSupported,mn=function(){var t=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],e=["touchstart","touchend","touchmove"],n={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},i=l["H"](t,(function(t){var e=t.replace("mouse","pointer");return n.hasOwnProperty(e)?e:t}));return{mouse:t,touch:e,pointer:i}}(),xn={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},_n=!1;function bn(t){var e=t.pointerType;return"pen"===e||"touch"===e}function wn(t){t.touching=!0,null!=t.touchTimer&&(clearTimeout(t.touchTimer),t.touchTimer=null),t.touchTimer=setT