mirror of
https://github.com/kuaifan/dootask.git
synced 2026-09-26 13:56:34 +00:00
17 lines
166 KiB
JavaScript
Vendored
17 lines
166 KiB
JavaScript
Vendored
import{_ as O}from"./tslib.891692d0.js";var Mo=function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e}(),Do=function(){function e(){this.browser=new Mo,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=typeof window!="undefined"}return e}(),Dt=new Do;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(Dt.wxa=!0,Dt.touchEventsSupported=!0):typeof document=="undefined"&&typeof self!="undefined"?Dt.worker=!0:!Dt.hasGlobalWindow||"Deno"in window?(Dt.node=!0,Dt.svgSupported=!0):xo(navigator.userAgent,Dt);function xo(e,t){var r=t.browser,i=e.match(/Firefox\/([\d.]+)/),n=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),a=e.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(e);i&&(r.firefox=!0,r.version=i[1]),n&&(r.ie=!0,r.version=n[1]),a&&(r.edge=!0,r.version=a[1],r.newEdge=+a[1].split(".")[0]>18),o&&(r.weChat=!0),t.svgSupported=typeof SVGRect!="undefined",t.touchEventsSupported="ontouchstart"in window&&!r.ie&&!r.edge,t.pointerEventsSupported="onpointerdown"in window&&(r.edge||r.ie&&+r.version>=11),t.domSupported=typeof document!="undefined";var s=document.documentElement.style;t.transform3dSupported=(r.ie&&"transition"in s||r.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||r.ie&&+r.version>=9}var X=Dt,ji=12,Ao="sans-serif",tr=ji+"px "+Ao,Eo=20,Io=100,Fo="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function Oo(e){var t={};if(typeof JSON=="undefined")return t;for(var r=0;r<e.length;r++){var i=String.fromCharCode(r+32),n=(e.charCodeAt(r)-Eo)/Io;t[i]=n}return t}var Bo=Oo(Fo),jr={createCanvas:function(){return typeof document!="undefined"&&document.createElement("canvas")},measureText:function(){var e,t;return function(r,i){if(!e){var n=jr.createCanvas();e=n&&n.getContext("2d")}if(e)return t!==i&&(t=e.font=i||tr),e.measureText(r);r=r||"",i=i||tr;var a=/((?:\d+)?\.?\d*)px/.exec(i),o=a&&+a[1]||ji,s=0;if(i.indexOf("mono")>=0)s=o*r.length;else for(var h=0;h<r.length;h++){var f=Bo[r[h]];s+=f==null?o:f*o}return{width:s}}}(),loadImage:function(e,t,r){var i=new Image;return i.onload=t,i.onerror=r,i.src=e,i}},wa=$e(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(e,t){return e["[object "+t+"]"]=!0,e},{}),Ta=$e(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(e,t){return e["[object "+t+"Array]"]=!0,e},{}),te=Object.prototype.toString,Ne=Array.prototype,Ho=Ne.forEach,zo=Ne.filter,tn=Ne.slice,ko=Ne.map,hn=function(){}.constructor,ie=hn?hn.prototype:null,rn="__proto__",No=2311;function ba(){return No++}function en(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];typeof console!="undefined"&&console.error.apply(console,e)}function Tr(e){if(e==null||typeof e!="object")return e;var t=e,r=te.call(e);if(r==="[object Array]"){if(!Yr(e)){t=[];for(var i=0,n=e.length;i<n;i++)t[i]=Tr(e[i])}}else if(Ta[r]){if(!Yr(e)){var a=e.constructor;if(a.from)t=a.from(e);else{t=new a(e.length);for(var i=0,n=e.length;i<n;i++)t[i]=e[i]}}}else if(!wa[r]&&!Yr(e)&&!Ai(e)){t={};for(var o in e)e.hasOwnProperty(o)&&o!==rn&&(t[o]=Tr(e[o]))}return t}function Hr(e,t,r){if(!At(t)||!At(e))return r?Tr(t):e;for(var i in t)if(t.hasOwnProperty(i)&&i!==rn){var n=e[i],a=t[i];At(a)&&At(n)&&!Vr(a)&&!Vr(n)&&!Ai(a)&&!Ai(n)&&!un(a)&&!un(n)&&!Yr(a)&&!Yr(n)?Hr(n,a,r):(r||!(i in e))&&(e[i]=Tr(t[i]))}return e}function z(e,t){if(Object.assign)Object.assign(e,t);else for(var r in t)t.hasOwnProperty(r)&&r!==rn&&(e[r]=t[r]);return e}function rr(e,t,r){for(var i=rt(t),n=0,a=i.length;n<a;n++){var o=i[n];(r?t[o]!=null:e[o]==null)&&(e[o]=t[o])}return e}jr.createCanvas;function Tt(e,t){if(e){if(e.indexOf)return e.indexOf(t);for(var r=0,i=e.length;r<i;r++)if(e[r]===t)return r}return-1}function _u(e,t){var r=e.prototype;function i(){}i.prototype=t.prototype,e.prototype=new i;for(var n in r)r.hasOwnProperty(n)&&(e.prototype[n]=r[n]);e.prototype.constructor=e,e.superClass=t}function Ca(e,t,r){if(e="prototype"in e?e.prototype:e,t="prototype"in t?t.prototype:t,Object.getOwnPropertyNames)for(var i=Object.getOwnPropertyNames(t),n=0;n<i.length;n++){var a=i[n];a!=="constructor"&&(r?t[a]!=null:e[a]==null)&&(e[a]=t[a])}else rr(e,t,r)}function Ct(e){return!e||typeof e=="string"?!1:typeof e.length=="number"}function tt(e,t,r){if(!!(e&&t))if(e.forEach&&e.forEach===Ho)e.forEach(t,r);else if(e.length===+e.length)for(var i=0,n=e.length;i<n;i++)t.call(r,e[i],i,e);else for(var a in e)e.hasOwnProperty(a)&&t.call(r,e[a],a,e)}function br(e,t,r){if(!e)return[];if(!t)return La(e);if(e.map&&e.map===ko)return e.map(t,r);for(var i=[],n=0,a=e.length;n<a;n++)i.push(t.call(r,e[n],n,e));return i}function $e(e,t,r,i){if(!!(e&&t)){for(var n=0,a=e.length;n<a;n++)r=t.call(i,r,e[n],n,e);return r}}function fn(e,t,r){if(!e)return[];if(!t)return La(e);if(e.filter&&e.filter===zo)return e.filter(t,r);for(var i=[],n=0,a=e.length;n<a;n++)t.call(r,e[n],n,e)&&i.push(e[n]);return i}function rt(e){if(!e)return[];if(Object.keys)return Object.keys(e);var t=[];for(var r in e)e.hasOwnProperty(r)&&t.push(r);return t}function $o(e,t){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return function(){return e.apply(t,r.concat(tn.call(arguments)))}}var gu=ie&&We(ie.bind)?ie.call.bind(ie.bind):$o;function yu(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return function(){return e.apply(this,t.concat(tn.call(arguments)))}}function Vr(e){return Array.isArray?Array.isArray(e):te.call(e)==="[object Array]"}function We(e){return typeof e=="function"}function Ee(e){return typeof e=="string"}function mu(e){return te.call(e)==="[object String]"}function Le(e){return typeof e=="number"}function At(e){var t=typeof e;return t==="function"||!!e&&t==="object"}function un(e){return!!wa[te.call(e)]}function Wo(e){return!!Ta[te.call(e)]}function Ai(e){return typeof e=="object"&&typeof e.nodeType=="number"&&typeof e.ownerDocument=="object"}function Ye(e){return e.colorStops!=null}function Yo(e){return e.image!=null}function Go(e){return e!==e}function wu(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=0,i=e.length;r<i;r++)if(e[r]!=null)return e[r]}function j(e,t){return e!=null?e:t}function Se(e,t,r){return e!=null?e:t!=null?t:r}function La(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return tn.apply(e,t)}function Xo(e){if(typeof e=="number")return[e,e,e,e];var t=e.length;return t===2?[e[0],e[1],e[0],e[1]]:t===3?[e[0],e[1],e[2],e[1]]:e}function Tu(e,t){if(!e)throw new Error(t)}function zr(e){return e==null?null:typeof e.trim=="function"?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var Sa="__ec_primitive__";function bu(e){e[Sa]=!0}function Yr(e){return e[Sa]}var qo=function(){function e(){this.data={}}return e.prototype.delete=function(t){var r=this.has(t);return r&&delete this.data[t],r},e.prototype.has=function(t){return this.data.hasOwnProperty(t)},e.prototype.get=function(t){return this.data[t]},e.prototype.set=function(t,r){return this.data[t]=r,this},e.prototype.keys=function(){return rt(this.data)},e.prototype.forEach=function(t){var r=this.data;for(var i in r)r.hasOwnProperty(i)&&t(r[i],i)},e}(),Pa=typeof Map=="function";function Zo(){return Pa?new Map:new qo}var Uo=function(){function e(t){var r=Vr(t);this.data=Zo();var i=this;t instanceof e?t.each(n):t&&tt(t,n);function n(a,o){r?i.set(a,o):i.set(o,a)}}return e.prototype.hasKey=function(t){return this.data.has(t)},e.prototype.get=function(t){return this.data.get(t)},e.prototype.set=function(t,r){return this.data.set(t,r),r},e.prototype.each=function(t,r){this.data.forEach(function(i,n){t.call(r,i,n)})},e.prototype.keys=function(){var t=this.data.keys();return Pa?Array.from(t):t},e.prototype.removeKey=function(t){this.data.delete(t)},e}();function Cu(e){return new Uo(e)}function Lu(e,t){for(var r=new e.constructor(e.length+t.length),i=0;i<e.length;i++)r[i]=e[i];for(var n=e.length,i=0;i<t.length;i++)r[i+n]=t[i];return r}function Ge(e,t){var r;if(Object.create)r=Object.create(e);else{var i=function(){};i.prototype=e,r=new i}return t&&z(r,t),r}function Ra(e){var t=e.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function Su(e,t){return e.hasOwnProperty(t)}function gr(){}var Vo=180/Math.PI;function Lr(e,t){return e==null&&(e=0),t==null&&(t=0),[e,t]}function Qo(e){return[e[0],e[1]]}function ln(e,t,r){return e[0]=t[0]+r[0],e[1]=t[1]+r[1],e}function Ko(e,t,r){return e[0]=t[0]-r[0],e[1]=t[1]-r[1],e}function Jo(e){return Math.sqrt(jo(e))}function jo(e){return e[0]*e[0]+e[1]*e[1]}function Ue(e,t,r){return e[0]=t[0]*r,e[1]=t[1]*r,e}function ts(e,t){var r=Jo(t);return r===0?(e[0]=0,e[1]=0):(e[0]=t[0]/r,e[1]=t[1]/r),e}function Ei(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var rs=Ei;function es(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var yr=es;function Pu(e,t,r,i){return e[0]=t[0]+i*(r[0]-t[0]),e[1]=t[1]+i*(r[1]-t[1]),e}function Gr(e,t,r){var i=t[0],n=t[1];return e[0]=r[0]*i+r[2]*n+r[4],e[1]=r[1]*i+r[3]*n+r[5],e}function vr(e,t,r){return e[0]=Math.min(t[0],r[0]),e[1]=Math.min(t[1],r[1]),e}function cr(e,t,r){return e[0]=Math.max(t[0],r[0]),e[1]=Math.max(t[1],r[1]),e}var ir=function(){function e(t,r){this.target=t,this.topTarget=r&&r.topTarget}return e}(),is=function(){function e(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return e.prototype._dragStart=function(t){for(var r=t.target;r&&!r.draggable;)r=r.parent||r.__hostTarget;r&&(this._draggingTarget=r,r.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new ir(r,t),"dragstart",t.event))},e.prototype._drag=function(t){var r=this._draggingTarget;if(r){var i=t.offsetX,n=t.offsetY,a=i-this._x,o=n-this._y;this._x=i,this._y=n,r.drift(a,o,t),this.handler.dispatchToElement(new ir(r,t),"drag",t.event);var s=this.handler.findHover(i,n,r).target,h=this._dropTarget;this._dropTarget=s,r!==s&&(h&&s!==h&&this.handler.dispatchToElement(new ir(h,t),"dragleave",t.event),s&&s!==h&&this.handler.dispatchToElement(new ir(s,t),"dragenter",t.event))}},e.prototype._dragEnd=function(t){var r=this._draggingTarget;r&&(r.dragging=!1),this.handler.dispatchToElement(new ir(r,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new ir(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},e}(),ns=is,as=function(){function e(t){t&&(this._$eventProcessor=t)}return e.prototype.on=function(t,r,i,n){this._$handlers||(this._$handlers={});var a=this._$handlers;if(typeof r=="function"&&(n=i,i=r,r=null),!i||!t)return this;var o=this._$eventProcessor;r!=null&&o&&o.normalizeQuery&&(r=o.normalizeQuery(r)),a[t]||(a[t]=[]);for(var s=0;s<a[t].length;s++)if(a[t][s].h===i)return this;var h={h:i,query:r,ctx:n||this,callAtLast:i.zrEventfulCallAtLast},f=a[t].length-1,u=a[t][f];return u&&u.callAtLast?a[t].splice(f,0,h):a[t].push(h),this},e.prototype.isSilent=function(t){var r=this._$handlers;return!r||!r[t]||!r[t].length},e.prototype.off=function(t,r){var i=this._$handlers;if(!i)return this;if(!t)return this._$handlers={},this;if(r){if(i[t]){for(var n=[],a=0,o=i[t].length;a<o;a++)i[t][a].h!==r&&n.push(i[t][a]);i[t]=n}i[t]&&i[t].length===0&&delete i[t]}else delete i[t];return this},e.prototype.trigger=function(t){for(var r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];if(!this._$handlers)return this;var n=this._$handlers[t],a=this._$eventProcessor;if(n)for(var o=r.length,s=n.length,h=0;h<s;h++){var f=n[h];if(!(a&&a.filter&&f.query!=null&&!a.filter(t,f.query)))switch(o){case 0:f.h.call(f.ctx);break;case 1:f.h.call(f.ctx,r[0]);break;case 2:f.h.call(f.ctx,r[0],r[1]);break;default:f.h.apply(f.ctx,r);break}}return a&&a.afterTrigger&&a.afterTrigger(t),this},e.prototype.triggerWithContext=function(t){for(var r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];if(!this._$handlers)return this;var n=this._$handlers[t],a=this._$eventProcessor;if(n)for(var o=r.length,s=r[o-1],h=n.length,f=0;f<h;f++){var u=n[f];if(!(a&&a.filter&&u.query!=null&&!a.filter(t,u.query)))switch(o){case 0:u.h.call(s);break;case 1:u.h.call(s,r[0]);break;case 2:u.h.call(s,r[0],r[1]);break;default:u.h.apply(s,r.slice(1,o-1));break}}return a&&a.afterTrigger&&a.afterTrigger(t),this},e}(),Sr=as,os=Math.log(2);function Ii(e,t,r,i,n,a){var o=i+"-"+n,s=e.length;if(a.hasOwnProperty(o))return a[o];if(t===1){var h=Math.round(Math.log((1<<s)-1&~n)/os);return e[r][h]}for(var f=i|1<<r,u=r+1;i&1<<u;)u++;for(var l=0,v=0,c=0;v<s;v++){var _=1<<v;_&n||(l+=(c%2?-1:1)*e[r][v]*Ii(e,t-1,u,f,n|_,a),c++)}return a[o]=l,l}function vn(e,t){var r=[[e[0],e[1],1,0,0,0,-t[0]*e[0],-t[0]*e[1]],[0,0,0,e[0],e[1],1,-t[1]*e[0],-t[1]*e[1]],[e[2],e[3],1,0,0,0,-t[2]*e[2],-t[2]*e[3]],[0,0,0,e[2],e[3],1,-t[3]*e[2],-t[3]*e[3]],[e[4],e[5],1,0,0,0,-t[4]*e[4],-t[4]*e[5]],[0,0,0,e[4],e[5],1,-t[5]*e[4],-t[5]*e[5]],[e[6],e[7],1,0,0,0,-t[6]*e[6],-t[6]*e[7]],[0,0,0,e[6],e[7],1,-t[7]*e[6],-t[7]*e[7]]],i={},n=Ii(r,8,0,0,0,i);if(n!==0){for(var a=[],o=0;o<8;o++)for(var s=0;s<8;s++)a[s]==null&&(a[s]=0),a[s]+=((o+s)%2?-1:1)*Ii(r,7,o===0?1:0,1<<o,1<<s,i)/n*t[o];return function(h,f,u){var l=f*a[6]+u*a[7]+1;h[0]=(f*a[0]+u*a[1]+a[2])/l,h[1]=(f*a[3]+u*a[4]+a[5])/l}}}var cn="___zrEVENTSAVED",Ve=[];function Ru(e,t,r,i,n){return Fi(Ve,t,i,n,!0)&&Fi(e,r,Ve[0],Ve[1])}function Fi(e,t,r,i,n){if(t.getBoundingClientRect&&X.domSupported&&!Ma(t)){var a=t[cn]||(t[cn]={}),o=ss(t,a),s=hs(o,a,n);if(s)return s(e,r,i),!0}return!1}function ss(e,t){var r=t.markers;if(r)return r;r=t.markers=[];for(var i=["left","right"],n=["top","bottom"],a=0;a<4;a++){var o=document.createElement("div"),s=o.style,h=a%2,f=(a>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",i[h]+":0",n[f]+":0",i[1-h]+":auto",n[1-f]+":auto",""].join("!important;"),e.appendChild(o),r.push(o)}return r}function hs(e,t,r){for(var i=r?"invTrans":"trans",n=t[i],a=t.srcCoords,o=[],s=[],h=!0,f=0;f<4;f++){var u=e[f].getBoundingClientRect(),l=2*f,v=u.left,c=u.top;o.push(v,c),h=h&&a&&v===a[l]&&c===a[l+1],s.push(e[f].offsetLeft,e[f].offsetTop)}return h&&n?n:(t.srcCoords=o,t[i]=r?vn(s,o):vn(o,s))}function Ma(e){return e.nodeName.toUpperCase()==="CANVAS"}var fs=/([&<>"'])/g,us={"&":"&","<":"<",">":">",'"':""","'":"'"};function Mu(e){return e==null?"":(e+"").replace(fs,function(t,r){return us[r]})}var ls=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Qe=[],vs=X.browser.firefox&&+X.browser.version.split(".")[0]<39;function Oi(e,t,r,i){return r=r||{},i?dn(e,t,r):vs&&t.layerX!=null&&t.layerX!==t.offsetX?(r.zrX=t.layerX,r.zrY=t.layerY):t.offsetX!=null?(r.zrX=t.offsetX,r.zrY=t.offsetY):dn(e,t,r),r}function dn(e,t,r){if(X.domSupported&&e.getBoundingClientRect){var i=t.clientX,n=t.clientY;if(Ma(e)){var a=e.getBoundingClientRect();r.zrX=i-a.left,r.zrY=n-a.top;return}else if(Fi(Qe,e,i,n)){r.zrX=Qe[0],r.zrY=Qe[1];return}}r.zrX=r.zrY=0}function nn(e){return e||window.event}function lt(e,t,r){if(t=nn(t),t.zrX!=null)return t;var i=t.type,n=i&&i.indexOf("touch")>=0;if(n){var o=i!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&Oi(e,o,t,r)}else{Oi(e,t,t,r);var a=cs(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&ls.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function cs(e){var t=e.wheelDelta;if(t)return t;var r=e.deltaX,i=e.deltaY;if(r==null||i==null)return t;var n=Math.abs(i!==0?i:r),a=i>0?-1:i<0?1:r>0?-1:1;return 3*n*a}function ds(e,t,r,i){e.addEventListener(t,r,i)}function ps(e,t,r,i){e.removeEventListener(t,r,i)}var _s=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0},gs=function(){function e(){this._track=[]}return e.prototype.recognize=function(t,r,i){return this._doTrack(t,r,i),this._recognize(t)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(t,r,i){var n=t.touches;if(!!n){for(var a={points:[],touches:[],target:r,event:t},o=0,s=n.length;o<s;o++){var h=n[o],f=Oi(i,h,{});a.points.push([f.zrX,f.zrY]),a.touches.push(h)}this._track.push(a)}},e.prototype._recognize=function(t){for(var r in Ke)if(Ke.hasOwnProperty(r)){var i=Ke[r](this._track,t);if(i)return i}},e}();function pn(e){var t=e[1][0]-e[0][0],r=e[1][1]-e[0][1];return Math.sqrt(t*t+r*r)}function ys(e){return[(e[0][0]+e[1][0])/2,(e[0][1]+e[1][1])/2]}var Ke={pinch:function(e,t){var r=e.length;if(!!r){var i=(e[r-1]||{}).points,n=(e[r-2]||{}).points||i;if(n&&n.length>1&&i&&i.length>1){var a=pn(i)/pn(n);!isFinite(a)&&(a=1),t.pinchScale=a;var o=ys(i);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:e[0].target,event:t}}}}};function Xr(){return[1,0,0,1,0,0]}function ms(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function ws(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function Je(e,t,r){var i=t[0]*r[0]+t[2]*r[1],n=t[1]*r[0]+t[3]*r[1],a=t[0]*r[2]+t[2]*r[3],o=t[1]*r[2]+t[3]*r[3],s=t[0]*r[4]+t[2]*r[5]+t[4],h=t[1]*r[4]+t[3]*r[5]+t[5];return e[0]=i,e[1]=n,e[2]=a,e[3]=o,e[4]=s,e[5]=h,e}function _n(e,t,r){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+r[0],e[5]=t[5]+r[1],e}function Ts(e,t,r,i){i===void 0&&(i=[0,0]);var n=t[0],a=t[2],o=t[4],s=t[1],h=t[3],f=t[5],u=Math.sin(r),l=Math.cos(r);return e[0]=n*l+s*u,e[1]=-n*u+s*l,e[2]=a*l+h*u,e[3]=-a*u+l*h,e[4]=l*(o-i[0])+u*(f-i[1])+i[0],e[5]=l*(f-i[1])-u*(o-i[0])+i[1],e}function bs(e,t,r){var i=r[0],n=r[1];return e[0]=t[0]*i,e[1]=t[1]*n,e[2]=t[2]*i,e[3]=t[3]*n,e[4]=t[4]*i,e[5]=t[5]*n,e}function Cs(e,t){var r=t[0],i=t[2],n=t[4],a=t[1],o=t[3],s=t[5],h=r*o-a*i;return h?(h=1/h,e[0]=o*h,e[1]=-a*h,e[2]=-i*h,e[3]=r*h,e[4]=(i*s-o*n)*h,e[5]=(a*n-r*s)*h,e):null}var Ls=function(){function e(t,r){this.x=t||0,this.y=r||0}return e.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(t,r){return this.x=t,this.y=r,this},e.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},e.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},e.prototype.scale=function(t){this.x*=t,this.y*=t},e.prototype.scaleAndAdd=function(t,r){this.x+=t.x*r,this.y+=t.y*r},e.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},e.prototype.dot=function(t){return this.x*t.x+this.y*t.y},e.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},e.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},e.prototype.distance=function(t){var r=this.x-t.x,i=this.y-t.y;return Math.sqrt(r*r+i*i)},e.prototype.distanceSquare=function(t){var r=this.x-t.x,i=this.y-t.y;return r*r+i*i},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(t){if(!!t){var r=this.x,i=this.y;return this.x=t[0]*r+t[2]*i+t[4],this.y=t[1]*r+t[3]*i+t[5],this}},e.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},e.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},e.set=function(t,r,i){t.x=r,t.y=i},e.copy=function(t,r){t.x=r.x,t.y=r.y},e.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},e.lenSquare=function(t){return t.x*t.x+t.y*t.y},e.dot=function(t,r){return t.x*r.x+t.y*r.y},e.add=function(t,r,i){t.x=r.x+i.x,t.y=r.y+i.y},e.sub=function(t,r,i){t.x=r.x-i.x,t.y=r.y-i.y},e.scale=function(t,r,i){t.x=r.x*i,t.y=r.y*i},e.scaleAndAdd=function(t,r,i,n){t.x=r.x+i.x*n,t.y=r.y+i.y*n},e.lerp=function(t,r,i,n){var a=1-n;t.x=a*r.x+n*i.x,t.y=a*r.y+n*i.y},e}(),H=Ls,ne=Math.min,ae=Math.max,Ft=new H,Ot=new H,Bt=new H,Ht=new H,Dr=new H,xr=new H,Ss=function(){function e(t,r,i,n){i<0&&(t=t+i,i=-i),n<0&&(r=r+n,n=-n),this.x=t,this.y=r,this.width=i,this.height=n}return e.prototype.union=function(t){var r=ne(t.x,this.x),i=ne(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=ae(t.x+t.width,this.x+this.width)-r:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=ae(t.y+t.height,this.y+this.height)-i:this.height=t.height,this.x=r,this.y=i},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(t){var r=this,i=t.width/r.width,n=t.height/r.height,a=Xr();return _n(a,a,[-r.x,-r.y]),bs(a,a,[i,n]),_n(a,a,[t.x,t.y]),a},e.prototype.intersect=function(t,r){if(!t)return!1;t instanceof e||(t=e.create(t));var i=this,n=i.x,a=i.x+i.width,o=i.y,s=i.y+i.height,h=t.x,f=t.x+t.width,u=t.y,l=t.y+t.height,v=!(a<h||f<n||s<u||l<o);if(r){var c=1/0,_=0,y=Math.abs(a-h),d=Math.abs(f-n),p=Math.abs(s-u),g=Math.abs(l-o),m=Math.min(y,d),w=Math.min(p,g);a<h||f<n?m>_&&(_=m,y<d?H.set(xr,-y,0):H.set(xr,d,0)):m<c&&(c=m,y<d?H.set(Dr,y,0):H.set(Dr,-d,0)),s<u||l<o?w>_&&(_=w,p<g?H.set(xr,0,-p):H.set(xr,0,g)):m<c&&(c=m,p<g?H.set(Dr,0,p):H.set(Dr,0,-g))}return r&&H.copy(r,v?Dr:xr),v},e.prototype.contain=function(t,r){var i=this;return t>=i.x&&t<=i.x+i.width&&r>=i.y&&r<=i.y+i.height},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(t){e.copy(this,t)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return this.width===0||this.height===0},e.create=function(t){return new e(t.x,t.y,t.width,t.height)},e.copy=function(t,r){t.x=r.x,t.y=r.y,t.width=r.width,t.height=r.height},e.applyTransform=function(t,r,i){if(!i){t!==r&&e.copy(t,r);return}if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var n=i[0],a=i[3],o=i[4],s=i[5];t.x=r.x*n+o,t.y=r.y*a+s,t.width=r.width*n,t.height=r.height*a,t.width<0&&(t.x+=t.width,t.width=-t.width),t.height<0&&(t.y+=t.height,t.height=-t.height);return}Ft.x=Bt.x=r.x,Ft.y=Ht.y=r.y,Ot.x=Ht.x=r.x+r.width,Ot.y=Bt.y=r.y+r.height,Ft.transform(i),Ht.transform(i),Ot.transform(i),Bt.transform(i),t.x=ne(Ft.x,Ot.x,Bt.x,Ht.x),t.y=ne(Ft.y,Ot.y,Bt.y,Ht.y);var h=ae(Ft.x,Ot.x,Bt.x,Ht.x),f=ae(Ft.y,Ot.y,Bt.y,Ht.y);t.width=h-t.x,t.height=f-t.y},e}(),k=Ss,Da="silent";function Ps(e,t,r){return{type:e,event:r,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:r.zrX,offsetY:r.zrY,gestureEvent:r.gestureEvent,pinchX:r.pinchX,pinchY:r.pinchY,pinchScale:r.pinchScale,wheelDelta:r.zrDelta,zrByTouch:r.zrByTouch,which:r.which,stop:Rs}}function Rs(){_s(this.event)}var Ms=function(e){O(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.handler=null,r}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(Sr),Ar=function(){function e(t,r){this.x=t,this.y=r}return e}(),Ds=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],je=new k(0,0,0,0),xa=function(e){O(t,e);function t(r,i,n,a,o){var s=e.call(this)||this;return s._hovered=new Ar(0,0),s.storage=r,s.painter=i,s.painterRoot=a,s._pointerSize=o,n=n||new Ms,s.proxy=null,s.setHandlerProxy(n),s._draggingMgr=new ns(s),s}return t.prototype.setHandlerProxy=function(r){this.proxy&&this.proxy.dispose(),r&&(tt(Ds,function(i){r.on&&r.on(i,this[i],this)},this),r.handler=this),this.proxy=r},t.prototype.mousemove=function(r){var i=r.zrX,n=r.zrY,a=Aa(this,i,n),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var h=this._hovered=a?new Ar(i,n):this.findHover(i,n),f=h.target,u=this.proxy;u.setCursor&&u.setCursor(f?f.cursor:"default"),s&&f!==s&&this.dispatchToElement(o,"mouseout",r),this.dispatchToElement(h,"mousemove",r),f&&f!==s&&this.dispatchToElement(h,"mouseover",r)},t.prototype.mouseout=function(r){var i=r.zrEventControl;i!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",r),i!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:r})},t.prototype.resize=function(){this._hovered=new Ar(0,0)},t.prototype.dispatch=function(r,i){var n=this[r];n&&n.call(this,i)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(r){var i=this.proxy;i.setCursor&&i.setCursor(r)},t.prototype.dispatchToElement=function(r,i,n){r=r||{};var a=r.target;if(!(a&&a.silent)){for(var o="on"+i,s=Ps(i,r,n);a&&(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(i,s),a=a.__hostTarget?a.__hostTarget:a.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(i,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(h){typeof h[o]=="function"&&h[o].call(h,s),h.trigger&&h.trigger(i,s)}))}},t.prototype.findHover=function(r,i,n){var a=this.storage.getDisplayList(),o=new Ar(r,i);if(gn(a,o,r,i,n),this._pointerSize&&!o.target){for(var s=[],h=this._pointerSize,f=h/2,u=new k(r-f,i-f,h,h),l=a.length-1;l>=0;l--){var v=a[l];v!==n&&!v.ignore&&!v.ignoreCoarsePointer&&(!v.parent||!v.parent.ignoreCoarsePointer)&&(je.copy(v.getBoundingRect()),v.transform&&je.applyTransform(v.transform),je.intersect(u)&&s.push(v))}if(s.length)for(var c=4,_=Math.PI/12,y=Math.PI*2,d=0;d<f;d+=c)for(var p=0;p<y;p+=_){var g=r+d*Math.cos(p),m=i+d*Math.sin(p);if(gn(s,o,g,m,n),o.target)return o}}return o},t.prototype.processGesture=function(r,i){this._gestureMgr||(this._gestureMgr=new gs);var n=this._gestureMgr;i==="start"&&n.clear();var a=n.recognize(r,this.findHover(r.zrX,r.zrY,null).target,this.proxy.dom);if(i==="end"&&n.clear(),a){var o=a.type;r.gestureEvent=o;var s=new Ar;s.target=a.target,this.dispatchToElement(s,o,a.event)}},t}(Sr);tt(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(e){xa.prototype[e]=function(t){var r=t.zrX,i=t.zrY,n=Aa(this,r,i),a,o;if((e!=="mouseup"||!n)&&(a=this.findHover(r,i),o=a.target),e==="mousedown")this._downEl=o,this._downPoint=[t.zrX,t.zrY],this._upEl=o;else if(e==="mouseup")this._upEl=o;else if(e==="click"){if(this._downEl!==this._upEl||!this._downPoint||rs(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,e,t)}});function xs(e,t,r){if(e[e.rectHover?"rectContain":"contain"](t,r)){for(var i=e,n=void 0,a=!1;i;){if(i.ignoreClip&&(a=!0),!a){var o=i.getClipPath();if(o&&!o.contain(t,r))return!1}i.silent&&(n=!0);var s=i.__hostTarget;i=s||i.parent}return n?Da:!0}return!1}function gn(e,t,r,i,n){for(var a=e.length-1;a>=0;a--){var o=e[a],s=void 0;if(o!==n&&!o.ignore&&(s=xs(o,r,i))&&(!t.topTarget&&(t.topTarget=o),s!==Da)){t.target=o;break}}}function Aa(e,t,r){var i=e.painter;return t<0||t>i.getWidth()||r<0||r>i.getHeight()}var As=xa,Ea=32,Er=7;function Es(e){for(var t=0;e>=Ea;)t|=e&1,e>>=1;return e+t}function yn(e,t,r,i){var n=t+1;if(n===r)return 1;if(i(e[n++],e[t])<0){for(;n<r&&i(e[n],e[n-1])<0;)n++;Is(e,t,n)}else for(;n<r&&i(e[n],e[n-1])>=0;)n++;return n-t}function Is(e,t,r){for(r--;t<r;){var i=e[t];e[t++]=e[r],e[r--]=i}}function mn(e,t,r,i,n){for(i===t&&i++;i<r;i++){for(var a=e[i],o=t,s=i,h;o<s;)h=o+s>>>1,n(a,e[h])<0?s=h:o=h+1;var f=i-o;switch(f){case 3:e[o+3]=e[o+2];case 2:e[o+2]=e[o+1];case 1:e[o+1]=e[o];break;default:for(;f>0;)e[o+f]=e[o+f-1],f--}e[o]=a}}function ti(e,t,r,i,n,a){var o=0,s=0,h=1;if(a(e,t[r+n])>0){for(s=i-n;h<s&&a(e,t[r+n+h])>0;)o=h,h=(h<<1)+1,h<=0&&(h=s);h>s&&(h=s),o+=n,h+=n}else{for(s=n+1;h<s&&a(e,t[r+n-h])<=0;)o=h,h=(h<<1)+1,h<=0&&(h=s);h>s&&(h=s);var f=o;o=n-h,h=n-f}for(o++;o<h;){var u=o+(h-o>>>1);a(e,t[r+u])>0?o=u+1:h=u}return h}function ri(e,t,r,i,n,a){var o=0,s=0,h=1;if(a(e,t[r+n])<0){for(s=n+1;h<s&&a(e,t[r+n-h])<0;)o=h,h=(h<<1)+1,h<=0&&(h=s);h>s&&(h=s);var f=o;o=n-h,h=n-f}else{for(s=i-n;h<s&&a(e,t[r+n+h])>=0;)o=h,h=(h<<1)+1,h<=0&&(h=s);h>s&&(h=s),o+=n,h+=n}for(o++;o<h;){var u=o+(h-o>>>1);a(e,t[r+u])<0?h=u:o=u+1}return h}function Fs(e,t){var r=Er,i,n,a=0,o=[];i=[],n=[];function s(c,_){i[a]=c,n[a]=_,a+=1}function h(){for(;a>1;){var c=a-2;if(c>=1&&n[c-1]<=n[c]+n[c+1]||c>=2&&n[c-2]<=n[c]+n[c-1])n[c-1]<n[c+1]&&c--;else if(n[c]>n[c+1])break;u(c)}}function f(){for(;a>1;){var c=a-2;c>0&&n[c-1]<n[c+1]&&c--,u(c)}}function u(c){var _=i[c],y=n[c],d=i[c+1],p=n[c+1];n[c]=y+p,c===a-3&&(i[c+1]=i[c+2],n[c+1]=n[c+2]),a--;var g=ri(e[d],e,_,y,0,t);_+=g,y-=g,y!==0&&(p=ti(e[_+y-1],e,d,p,p-1,t),p!==0&&(y<=p?l(_,y,d,p):v(_,y,d,p)))}function l(c,_,y,d){var p=0;for(p=0;p<_;p++)o[p]=e[c+p];var g=0,m=y,w=c;if(e[w++]=e[m++],--d===0){for(p=0;p<_;p++)e[w+p]=o[g+p];return}if(_===1){for(p=0;p<d;p++)e[w+p]=e[m+p];e[w+d]=o[g];return}for(var L=r,T,b,C;;){T=0,b=0,C=!1;do if(t(e[m],o[g])<0){if(e[w++]=e[m++],b++,T=0,--d===0){C=!0;break}}else if(e[w++]=o[g++],T++,b=0,--_===1){C=!0;break}while((T|b)<L);if(C)break;do{if(T=ri(e[m],o,g,_,0,t),T!==0){for(p=0;p<T;p++)e[w+p]=o[g+p];if(w+=T,g+=T,_-=T,_<=1){C=!0;break}}if(e[w++]=e[m++],--d===0){C=!0;break}if(b=ti(o[g],e,m,d,0,t),b!==0){for(p=0;p<b;p++)e[w+p]=e[m+p];if(w+=b,m+=b,d-=b,d===0){C=!0;break}}if(e[w++]=o[g++],--_===1){C=!0;break}L--}while(T>=Er||b>=Er);if(C)break;L<0&&(L=0),L+=2}if(r=L,r<1&&(r=1),_===1){for(p=0;p<d;p++)e[w+p]=e[m+p];e[w+d]=o[g]}else{if(_===0)throw new Error;for(p=0;p<_;p++)e[w+p]=o[g+p]}}function v(c,_,y,d){var p=0;for(p=0;p<d;p++)o[p]=e[y+p];var g=c+_-1,m=d-1,w=y+d-1,L=0,T=0;if(e[w--]=e[g--],--_===0){for(L=w-(d-1),p=0;p<d;p++)e[L+p]=o[p];return}if(d===1){for(w-=_,g-=_,T=w+1,L=g+1,p=_-1;p>=0;p--)e[T+p]=e[L+p];e[w]=o[m];return}for(var b=r;;){var C=0,S=0,R=!1;do if(t(o[m],e[g])<0){if(e[w--]=e[g--],C++,S=0,--_===0){R=!0;break}}else if(e[w--]=o[m--],S++,C=0,--d===1){R=!0;break}while((C|S)<b);if(R)break;do{if(C=_-ri(o[m],e,c,_,_-1,t),C!==0){for(w-=C,g-=C,_-=C,T=w+1,L=g+1,p=C-1;p>=0;p--)e[T+p]=e[L+p];if(_===0){R=!0;break}}if(e[w--]=o[m--],--d===1){R=!0;break}if(S=d-ti(e[g],o,0,d,d-1,t),S!==0){for(w-=S,m-=S,d-=S,T=w+1,L=m+1,p=0;p<S;p++)e[T+p]=o[L+p];if(d<=1){R=!0;break}}if(e[w--]=e[g--],--_===0){R=!0;break}b--}while(C>=Er||S>=Er);if(R)break;b<0&&(b=0),b+=2}if(r=b,r<1&&(r=1),d===1){for(w-=_,g-=_,T=w+1,L=g+1,p=_-1;p>=0;p--)e[T+p]=e[L+p];e[w]=o[m]}else{if(d===0)throw new Error;for(L=w-(d-1),p=0;p<d;p++)e[L+p]=o[p]}}return{mergeRuns:h,forceMergeRuns:f,pushRun:s}}function Os(e,t,r,i){r||(r=0),i||(i=e.length);var n=i-r;if(!(n<2)){var a=0;if(n<Ea){a=yn(e,r,i,t),mn(e,r,i,r+a,t);return}var o=Fs(e,t),s=Es(n);do{if(a=yn(e,r,i,t),a<s){var h=n;h>s&&(h=s),mn(e,r,r+h,r+a,t),a=h}o.pushRun(r,a),o.mergeRuns(),n-=a,r+=a}while(n!==0);o.forceMergeRuns()}}var J=1,kr=2,ur=4,wn=!1;function ei(){wn||(wn=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Tn(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var Bs=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Tn}return e.prototype.traverse=function(t,r){for(var i=0;i<this._roots.length;i++)this._roots[i].traverse(t,r)},e.prototype.getDisplayList=function(t,r){r=r||!1;var i=this._displayList;return(t||!i.length)&&this.updateDisplayList(r),i},e.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var r=this._roots,i=this._displayList,n=0,a=r.length;n<a;n++)this._updateAndAddDisplayable(r[n],null,t);i.length=this._displayListLen,Os(i,Tn)},e.prototype._updateAndAddDisplayable=function(t,r,i){if(!(t.ignore&&!i)){t.beforeUpdate(),t.update(),t.afterUpdate();var n=t.getClipPath();if(t.ignoreClip)r=null;else if(n){r?r=r.slice():r=[];for(var a=n,o=t;a;)a.parent=o,a.updateTransform(),r.push(a),o=a,a=a.getClipPath()}if(t.childrenRef){for(var s=t.childrenRef(),h=0;h<s.length;h++){var f=s[h];t.__dirty&&(f.__dirty|=J),this._updateAndAddDisplayable(f,r,i)}t.__dirty=0}else{var u=t;r&&r.length?u.__clipPaths=r:u.__clipPaths&&u.__clipPaths.length>0&&(u.__clipPaths=[]),isNaN(u.z)&&(ei(),u.z=0),isNaN(u.z2)&&(ei(),u.z2=0),isNaN(u.zlevel)&&(ei(),u.zlevel=0),this._displayList[this._displayListLen++]=u}var l=t.getDecalElement&&t.getDecalElement();l&&this._updateAndAddDisplayable(l,r,i);var v=t.getTextGuideLine();v&&this._updateAndAddDisplayable(v,r,i);var c=t.getTextContent();c&&this._updateAndAddDisplayable(c,r,i)}},e.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},e.prototype.delRoot=function(t){if(t instanceof Array){for(var r=0,i=t.length;r<i;r++)this.delRoot(t[r]);return}var n=Tt(this._roots,t);n>=0&&this._roots.splice(n,1)},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e}(),Hs=Bs,Ia;Ia=X.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};var Bi=Ia,Pe={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return .5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return e===0?0:Math.pow(1024,e-1)},exponentialOut:function(e){return e===1?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(-Math.pow(2,-10*(e-1))+2)},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,r=.1,i=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=i/4):t=i*Math.asin(1/r)/(2*Math.PI),-(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/i)))},elasticOut:function(e){var t,r=.1,i=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=i/4):t=i*Math.asin(1/r)/(2*Math.PI),r*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/i)+1)},elasticInOut:function(e){var t,r=.1,i=.4;return e===0?0:e===1?1:(!r||r<1?(r=1,t=i/4):t=i*Math.asin(1/r)/(2*Math.PI),(e*=2)<1?-.5*(r*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/i)):r*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/i)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?.5*(e*e*((t+1)*e-t)):.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-Pe.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?Pe.bounceIn(e*2)*.5:Pe.bounceOut(e*2-1)*.5+.5}},Fa=Pe,oe=Math.pow,It=Math.sqrt,Ie=1e-8,Oa=1e-4,bn=It(3),se=1/3,bt=Lr(),ot=Lr(),mr=Lr();function Et(e){return e>-Ie&&e<Ie}function Ba(e){return e>Ie||e<-Ie}function W(e,t,r,i,n){var a=1-n;return a*a*(a*e+3*n*t)+n*n*(n*i+3*a*r)}function Cn(e,t,r,i,n){var a=1-n;return 3*(((t-e)*a+2*(r-t)*n)*a+(i-r)*n*n)}function Ha(e,t,r,i,n,a){var o=i+3*(t-r)-e,s=3*(r-t*2+e),h=3*(t-e),f=e-n,u=s*s-3*o*h,l=s*h-9*o*f,v=h*h-3*s*f,c=0;if(Et(u)&&Et(l))if(Et(s))a[0]=0;else{var _=-h/s;_>=0&&_<=1&&(a[c++]=_)}else{var y=l*l-4*u*v;if(Et(y)){var d=l/u,_=-s/o+d,p=-d/2;_>=0&&_<=1&&(a[c++]=_),p>=0&&p<=1&&(a[c++]=p)}else if(y>0){var g=It(y),m=u*s+1.5*o*(-l+g),w=u*s+1.5*o*(-l-g);m<0?m=-oe(-m,se):m=oe(m,se),w<0?w=-oe(-w,se):w=oe(w,se);var _=(-s-(m+w))/(3*o);_>=0&&_<=1&&(a[c++]=_)}else{var L=(2*u*s-3*o*l)/(2*It(u*u*u)),T=Math.acos(L)/3,b=It(u),C=Math.cos(T),_=(-s-2*b*C)/(3*o),p=(-s+b*(C+bn*Math.sin(T)))/(3*o),S=(-s+b*(C-bn*Math.sin(T)))/(3*o);_>=0&&_<=1&&(a[c++]=_),p>=0&&p<=1&&(a[c++]=p),S>=0&&S<=1&&(a[c++]=S)}}return c}function za(e,t,r,i,n){var a=6*r-12*t+6*e,o=9*t+3*i-3*e-9*r,s=3*t-3*e,h=0;if(Et(o)){if(Ba(a)){var f=-s/a;f>=0&&f<=1&&(n[h++]=f)}}else{var u=a*a-4*o*s;if(Et(u))n[0]=-a/(2*o);else if(u>0){var l=It(u),f=(-a+l)/(2*o),v=(-a-l)/(2*o);f>=0&&f<=1&&(n[h++]=f),v>=0&&v<=1&&(n[h++]=v)}}return h}function Fe(e,t,r,i,n,a){var o=(t-e)*n+e,s=(r-t)*n+t,h=(i-r)*n+r,f=(s-o)*n+o,u=(h-s)*n+s,l=(u-f)*n+f;a[0]=e,a[1]=o,a[2]=f,a[3]=l,a[4]=l,a[5]=u,a[6]=h,a[7]=i}function zs(e,t,r,i,n,a,o,s,h,f,u){var l,v=.005,c=1/0,_,y,d,p;bt[0]=h,bt[1]=f;for(var g=0;g<1;g+=.05)ot[0]=W(e,r,n,o,g),ot[1]=W(t,i,a,s,g),d=yr(bt,ot),d<c&&(l=g,c=d);c=1/0;for(var m=0;m<32&&!(v<Oa);m++)_=l-v,y=l+v,ot[0]=W(e,r,n,o,_),ot[1]=W(t,i,a,s,_),d=yr(ot,bt),_>=0&&d<c?(l=_,c=d):(mr[0]=W(e,r,n,o,y),mr[1]=W(t,i,a,s,y),p=yr(mr,bt),y<=1&&p<c?(l=y,c=p):v*=.5);return u&&(u[0]=W(e,r,n,o,l),u[1]=W(t,i,a,s,l)),It(c)}function ks(e,t,r,i,n,a,o,s,h){for(var f=e,u=t,l=0,v=1/h,c=1;c<=h;c++){var _=c*v,y=W(e,r,n,o,_),d=W(t,i,a,s,_),p=y-f,g=d-u;l+=Math.sqrt(p*p+g*g),f=y,u=d}return l}function G(e,t,r,i){var n=1-i;return n*(n*e+2*i*t)+i*i*r}function Ln(e,t,r,i){return 2*((1-i)*(t-e)+i*(r-t))}function Ns(e,t,r,i,n){var a=e-2*t+r,o=2*(t-e),s=e-i,h=0;if(Et(a)){if(Ba(o)){var f=-s/o;f>=0&&f<=1&&(n[h++]=f)}}else{var u=o*o-4*a*s;if(Et(u)){var f=-o/(2*a);f>=0&&f<=1&&(n[h++]=f)}else if(u>0){var l=It(u),f=(-o+l)/(2*a),v=(-o-l)/(2*a);f>=0&&f<=1&&(n[h++]=f),v>=0&&v<=1&&(n[h++]=v)}}return h}function ka(e,t,r){var i=e+r-2*t;return i===0?.5:(e-t)/i}function Oe(e,t,r,i,n){var a=(t-e)*i+e,o=(r-t)*i+t,s=(o-a)*i+a;n[0]=e,n[1]=a,n[2]=s,n[3]=s,n[4]=o,n[5]=r}function $s(e,t,r,i,n,a,o,s,h){var f,u=.005,l=1/0;bt[0]=o,bt[1]=s;for(var v=0;v<1;v+=.05){ot[0]=G(e,r,n,v),ot[1]=G(t,i,a,v);var c=yr(bt,ot);c<l&&(f=v,l=c)}l=1/0;for(var _=0;_<32&&!(u<Oa);_++){var y=f-u,d=f+u;ot[0]=G(e,r,n,y),ot[1]=G(t,i,a,y);var c=yr(ot,bt);if(y>=0&&c<l)f=y,l=c;else{mr[0]=G(e,r,n,d),mr[1]=G(t,i,a,d);var p=yr(mr,bt);d<=1&&p<l?(f=d,l=p):u*=.5}}return h&&(h[0]=G(e,r,n,f),h[1]=G(t,i,a,f)),It(l)}function Ws(e,t,r,i,n,a,o){for(var s=e,h=t,f=0,u=1/o,l=1;l<=o;l++){var v=l*u,c=G(e,r,n,v),_=G(t,i,a,v),y=c-s,d=_-h;f+=Math.sqrt(y*y+d*d),s=c,h=_}return f}var Ys=/cubic-bezier\(([0-9,\.e ]+)\)/;function Na(e){var t=e&&Ys.exec(e);if(t){var r=t[1].split(","),i=+zr(r[0]),n=+zr(r[1]),a=+zr(r[2]),o=+zr(r[3]);if(isNaN(i+n+a+o))return;var s=[];return function(h){return h<=0?0:h>=1?1:Ha(0,i,a,1,h,s)&&W(0,n,o,1,s[0])}}}var Gs=function(){function e(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||gr,this.ondestroy=t.ondestroy||gr,this.onrestart=t.onrestart||gr,t.easing&&this.setEasing(t.easing)}return e.prototype.step=function(t,r){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=r;return}var i=this._life,n=t-this._startTime-this._pausedTime,a=n/i;a<0&&(a=0),a=Math.min(a,1);var o=this.easingFunc,s=o?o(a):a;if(this.onframe(s),a===1)if(this.loop){var h=n%i;this._startTime=t-h,this._pausedTime=0,this.onrestart()}else return!0;return!1},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(t){this.easing=t,this.easingFunc=We(t)?t:Fa[t]||Na(t)},e}(),Xs=Gs,$a=function(){function e(t){this.value=t}return e}(),qs=function(){function e(){this._len=0}return e.prototype.insert=function(t){var r=new $a(t);return this.insertEntry(r),r},e.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},e.prototype.remove=function(t){var r=t.prev,i=t.next;r?r.next=i:this.head=i,i?i.prev=r:this.tail=r,t.next=t.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e}(),Zs=function(){function e(t){this._list=new qs,this._maxSize=10,this._map={},this._maxSize=t}return e.prototype.put=function(t,r){var i=this._list,n=this._map,a=null;if(n[t]==null){var o=i.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var h=i.head;i.remove(h),delete n[h.key],a=h.value,this._lastRemovedEntry=h}s?s.value=r:s=new $a(r),s.key=t,i.insertEntry(s),n[t]=s}return a},e.prototype.get=function(t){var r=this._map[t],i=this._list;if(r!=null)return r!==i.tail&&(i.remove(r),i.insertEntry(r)),r.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e}(),Xe=Zs,Sn={transparent:[0,0,0,0],aliceblue:[240,248,255,1],antiquewhite:[250,235,215,1],aqua:[0,255,255,1],aquamarine:[127,255,212,1],azure:[240,255,255,1],beige:[245,245,220,1],bisque:[255,228,196,1],black:[0,0,0,1],blanchedalmond:[255,235,205,1],blue:[0,0,255,1],blueviolet:[138,43,226,1],brown:[165,42,42,1],burlywood:[222,184,135,1],cadetblue:[95,158,160,1],chartreuse:[127,255,0,1],chocolate:[210,105,30,1],coral:[255,127,80,1],cornflowerblue:[100,149,237,1],cornsilk:[255,248,220,1],crimson:[220,20,60,1],cyan:[0,255,255,1],darkblue:[0,0,139,1],darkcyan:[0,139,139,1],darkgoldenrod:[184,134,11,1],darkgray:[169,169,169,1],darkgreen:[0,100,0,1],darkgrey:[169,169,169,1],darkkhaki:[189,183,107,1],darkmagenta:[139,0,139,1],darkolivegreen:[85,107,47,1],darkorange:[255,140,0,1],darkorchid:[153,50,204,1],darkred:[139,0,0,1],darksalmon:[233,150,122,1],darkseagreen:[143,188,143,1],darkslateblue:[72,61,139,1],darkslategray:[47,79,79,1],darkslategrey:[47,79,79,1],darkturquoise:[0,206,209,1],darkviolet:[148,0,211,1],deeppink:[255,20,147,1],deepskyblue:[0,191,255,1],dimgray:[105,105,105,1],dimgrey:[105,105,105,1],dodgerblue:[30,144,255,1],firebrick:[178,34,34,1],floralwhite:[255,250,240,1],forestgreen:[34,139,34,1],fuchsia:[255,0,255,1],gainsboro:[220,220,220,1],ghostwhite:[248,248,255,1],gold:[255,215,0,1],goldenrod:[218,165,32,1],gray:[128,128,128,1],green:[0,128,0,1],greenyellow:[173,255,47,1],grey:[128,128,128,1],honeydew:[240,255,240,1],hotpink:[255,105,180,1],indianred:[205,92,92,1],indigo:[75,0,130,1],ivory:[255,255,240,1],khaki:[240,230,140,1],lavender:[230,230,250,1],lavenderblush:[255,240,245,1],lawngreen:[124,252,0,1],lemonchiffon:[255,250,205,1],lightblue:[173,216,230,1],lightcoral:[240,128,128,1],lightcyan:[224,255,255,1],lightgoldenrodyellow:[250,250,210,1],lightgray:[211,211,211,1],lightgreen:[144,238,144,1],lightgrey:[211,211,211,1],lightpink:[255,182,193,1],lightsalmon:[255,160,122,1],lightseagreen:[32,178,170,1],lightskyblue:[135,206,250,1],lightslategray:[119,136,153,1],lightslategrey:[119,136,153,1],lightsteelblue:[176,196,222,1],lightyellow:[255,255,224,1],lime:[0,255,0,1],limegreen:[50,205,50,1],linen:[250,240,230,1],magenta:[255,0,255,1],maroon:[128,0,0,1],mediumaquamarine:[102,205,170,1],mediumblue:[0,0,205,1],mediumorchid:[186,85,211,1],mediumpurple:[147,112,219,1],mediumseagreen:[60,179,113,1],mediumslateblue:[123,104,238,1],mediumspringgreen:[0,250,154,1],mediumturquoise:[72,209,204,1],mediumvioletred:[199,21,133,1],midnightblue:[25,25,112,1],mintcream:[245,255,250,1],mistyrose:[255,228,225,1],moccasin:[255,228,181,1],navajowhite:[255,222,173,1],navy:[0,0,128,1],oldlace:[253,245,230,1],olive:[128,128,0,1],olivedrab:[107,142,35,1],orange:[255,165,0,1],orangered:[255,69,0,1],orchid:[218,112,214,1],palegoldenrod:[238,232,170,1],palegreen:[152,251,152,1],paleturquoise:[175,238,238,1],palevioletred:[219,112,147,1],papayawhip:[255,239,213,1],peachpuff:[255,218,185,1],peru:[205,133,63,1],pink:[255,192,203,1],plum:[221,160,221,1],powderblue:[176,224,230,1],purple:[128,0,128,1],red:[255,0,0,1],rosybrown:[188,143,143,1],royalblue:[65,105,225,1],saddlebrown:[139,69,19,1],salmon:[250,128,114,1],sandybrown:[244,164,96,1],seagreen:[46,139,87,1],seashell:[255,245,238,1],sienna:[160,82,45,1],silver:[192,192,192,1],skyblue:[135,206,235,1],slateblue:[106,90,205,1],slategray:[112,128,144,1],slategrey:[112,128,144,1],snow:[255,250,250,1],springgreen:[0,255,127,1],steelblue:[70,130,180,1],tan:[210,180,140,1],teal:[0,128,128,1],thistle:[216,191,216,1],tomato:[255,99,71,1],turquoise:[64,224,208,1],violet:[238,130,238,1],wheat:[245,222,179,1],white:[255,255,255,1],whitesmoke:[245,245,245,1],yellow:[255,255,0,1],yellowgreen:[154,205,50,1]};function qr(e){return e=Math.round(e),e<0?0:e>255?255:e}function Pn(e){return e<0?0:e>1?1:e}function ii(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?qr(parseFloat(t)/100*255):qr(parseInt(t,10))}function Zr(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?Pn(parseFloat(t)/100):Pn(parseFloat(t))}function ni(e,t,r){return r<0?r+=1:r>1&&(r-=1),r*6<1?e+(t-e)*r*6:r*2<1?t:r*3<2?e+(t-e)*(2/3-r)*6:e}function nt(e,t,r,i,n){return e[0]=t,e[1]=r,e[2]=i,e[3]=n,e}function Hi(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var Wa=new Xe(20),he=null;function nr(e,t){he&&Hi(he,t),he=Wa.put(e,he||t.slice())}function wr(e,t){if(!!e){t=t||[];var r=Wa.get(e);if(r)return Hi(t,r);e=e+"";var i=e.replace(/ /g,"").toLowerCase();if(i in Sn)return Hi(t,Sn[i]),nr(e,t),t;var n=i.length;if(i.charAt(0)==="#"){if(n===4||n===5){var a=parseInt(i.slice(1,4),16);if(!(a>=0&&a<=4095)){nt(t,0,0,0,1);return}return nt(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,n===5?parseInt(i.slice(4),16)/15:1),nr(e,t),t}else if(n===7||n===9){var a=parseInt(i.slice(1,7),16);if(!(a>=0&&a<=16777215)){nt(t,0,0,0,1);return}return nt(t,(a&16711680)>>16,(a&65280)>>8,a&255,n===9?parseInt(i.slice(7),16)/255:1),nr(e,t),t}return}var o=i.indexOf("("),s=i.indexOf(")");if(o!==-1&&s+1===n){var h=i.substr(0,o),f=i.substr(o+1,s-(o+1)).split(","),u=1;switch(h){case"rgba":if(f.length!==4)return f.length===3?nt(t,+f[0],+f[1],+f[2],1):nt(t,0,0,0,1);u=Zr(f.pop());case"rgb":if(f.length>=3)return nt(t,ii(f[0]),ii(f[1]),ii(f[2]),f.length===3?u:Zr(f[3])),nr(e,t),t;nt(t,0,0,0,1);return;case"hsla":if(f.length!==4){nt(t,0,0,0,1);return}return f[3]=Zr(f[3]),Rn(f,t),nr(e,t),t;case"hsl":if(f.length!==3){nt(t,0,0,0,1);return}return Rn(f,t),nr(e,t),t;default:return}}nt(t,0,0,0,1)}}function Rn(e,t){var r=(parseFloat(e[0])%360+360)%360/360,i=Zr(e[1]),n=Zr(e[2]),a=n<=.5?n*(i+1):n+i-n*i,o=n*2-a;return t=t||[],nt(t,qr(ni(o,a,r+1/3)*255),qr(ni(o,a,r)*255),qr(ni(o,a,r-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function Mn(e,t){var r=wr(e);if(r){for(var i=0;i<3;i++)t<0?r[i]=r[i]*(1-t)|0:r[i]=(255-r[i])*t+r[i]|0,r[i]>255?r[i]=255:r[i]<0&&(r[i]=0);return Ya(r,r.length===4?"rgba":"rgb")}}function Ya(e,t){if(!(!e||!e.length)){var r=e[0]+","+e[1]+","+e[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(r+=","+e[3]),t+"("+r+")"}}function Be(e,t){var r=wr(e);return r?(.299*r[0]+.587*r[1]+.114*r[2])*r[3]/255+(1-r[3])*t:0}var Dn=new Xe(100);function Du(e){if(Ee(e)){var t=Dn.get(e);return t||(t=Mn(e,-.1),Dn.put(e,t)),t}else if(Ye(e)){var r=z({},e);return r.colorStops=br(e.colorStops,function(i){return{offset:i.offset,color:Mn(i.color,-.1)}}),r}return e}function Us(e){return e.type==="linear"}function Vs(e){return e.type==="radial"}(function(){return X.hasGlobalWindow&&We(window.btoa)?function(e){return window.btoa(unescape(encodeURIComponent(e)))}:typeof Buffer!="undefined"?function(e){return Buffer.from(e).toString("base64")}:function(e){return null}})();var zi=Array.prototype.slice;function Pt(e,t,r){return(t-e)*r+e}function ai(e,t,r,i){for(var n=t.length,a=0;a<n;a++)e[a]=Pt(t[a],r[a],i);return e}function Qs(e,t,r,i){for(var n=t.length,a=n&&t[0].length,o=0;o<n;o++){e[o]||(e[o]=[]);for(var s=0;s<a;s++)e[o][s]=Pt(t[o][s],r[o][s],i)}return e}function fe(e,t,r,i){for(var n=t.length,a=0;a<n;a++)e[a]=t[a]+r[a]*i;return e}function xn(e,t,r,i){for(var n=t.length,a=n&&t[0].length,o=0;o<n;o++){e[o]||(e[o]=[]);for(var s=0;s<a;s++)e[o][s]=t[o][s]+r[o][s]*i}return e}function Ks(e,t){for(var r=e.length,i=t.length,n=r>i?t:e,a=Math.min(r,i),o=n[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(r,i);s++)n.push({offset:o.offset,color:o.color.slice()})}function Js(e,t,r){var i=e,n=t;if(!(!i.push||!n.push)){var a=i.length,o=n.length;if(a!==o){var s=a>o;if(s)i.length=o;else for(var h=a;h<o;h++)i.push(r===1?n[h]:zi.call(n[h]))}for(var f=i[0]&&i[0].length,h=0;h<i.length;h++)if(r===1)isNaN(i[h])&&(i[h]=n[h]);else for(var u=0;u<f;u++)isNaN(i[h][u])&&(i[h][u]=n[h][u])}}function Re(e){if(Ct(e)){var t=e.length;if(Ct(e[0])){for(var r=[],i=0;i<t;i++)r.push(zi.call(e[i]));return r}return zi.call(e)}return e}function Me(e){return e[0]=Math.floor(e[0])||0,e[1]=Math.floor(e[1])||0,e[2]=Math.floor(e[2])||0,e[3]=e[3]==null?1:e[3],"rgba("+e.join(",")+")"}function js(e){return Ct(e&&e[0])?2:1}var ue=0,De=1,Ga=2,Nr=3,ki=4,Ni=5,An=6;function En(e){return e===ki||e===Ni}function le(e){return e===De||e===Ga}var Ir=[0,0,0,0],th=function(){function e(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return e.prototype.isFinished=function(){return this._finished},e.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},e.prototype.needsAnimate=function(){return this.keyframes.length>=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(t,r,i){this._needsSort=!0;var n=this.keyframes,a=n.length,o=!1,s=An,h=r;if(Ct(r)){var f=js(r);s=f,(f===1&&!Le(r[0])||f===2&&!Le(r[0][0]))&&(o=!0)}else if(Le(r)&&!Go(r))s=ue;else if(Ee(r))if(!isNaN(+r))s=ue;else{var u=wr(r);u&&(h=u,s=Nr)}else if(Ye(r)){var l=z({},h);l.colorStops=br(r.colorStops,function(c){return{offset:c.offset,color:wr(c.color)}}),Us(r)?s=ki:Vs(r)&&(s=Ni),h=l}a===0?this.valType=s:(s!==this.valType||s===An)&&(o=!0),this.discrete=this.discrete||o;var v={time:t,value:h,rawValue:r,percent:0};return i&&(v.easing=i,v.easingFunc=We(i)?i:Fa[i]||Na(i)),n.push(v),v},e.prototype.prepare=function(t,r){var i=this.keyframes;this._needsSort&&i.sort(function(y,d){return y.time-d.time});for(var n=this.valType,a=i.length,o=i[a-1],s=this.discrete,h=le(n),f=En(n),u=0;u<a;u++){var l=i[u],v=l.value,c=o.value;l.percent=l.time/t,s||(h&&u!==a-1?Js(v,c,n):f&&Ks(v.colorStops,c.colorStops))}if(!s&&n!==Ni&&r&&this.needsAnimate()&&r.needsAnimate()&&n===r.valType&&!r._finished){this._additiveTrack=r;for(var _=i[0].value,u=0;u<a;u++)n===ue?i[u].additiveValue=i[u].value-_:n===Nr?i[u].additiveValue=fe([],i[u].value,_,-1):le(n)&&(i[u].additiveValue=n===De?fe([],i[u].value,_,-1):xn([],i[u].value,_,-1))}},e.prototype.step=function(t,r){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var i=this._additiveTrack!=null,n=i?"additiveValue":"value",a=this.valType,o=this.keyframes,s=o.length,h=this.propName,f=a===Nr,u,l=this._lastFr,v=Math.min,c,_;if(s===1)c=_=o[0];else{if(r<0)u=0;else if(r<this._lastFrP){var y=v(l+1,s-1);for(u=y;u>=0&&!(o[u].percent<=r);u--);u=v(u,s-2)}else{for(u=l;u<s&&!(o[u].percent>r);u++);u=v(u-1,s-2)}_=o[u+1],c=o[u]}if(!!(c&&_)){this._lastFr=u,this._lastFrP=r;var d=_.percent-c.percent,p=d===0?1:v((r-c.percent)/d,1);_.easingFunc&&(p=_.easingFunc(p));var g=i?this._additiveValue:f?Ir:t[h];if((le(a)||f)&&!g&&(g=this._additiveValue=[]),this.discrete)t[h]=p<1?c.rawValue:_.rawValue;else if(le(a))a===De?ai(g,c[n],_[n],p):Qs(g,c[n],_[n],p);else if(En(a)){var m=c[n],w=_[n],L=a===ki;t[h]={type:L?"linear":"radial",x:Pt(m.x,w.x,p),y:Pt(m.y,w.y,p),colorStops:br(m.colorStops,function(b,C){var S=w.colorStops[C];return{offset:Pt(b.offset,S.offset,p),color:Me(ai([],b.color,S.color,p))}}),global:w.global},L?(t[h].x2=Pt(m.x2,w.x2,p),t[h].y2=Pt(m.y2,w.y2,p)):t[h].r=Pt(m.r,w.r,p)}else if(f)ai(g,c[n],_[n],p),i||(t[h]=Me(g));else{var T=Pt(c[n],_[n],p);i?this._additiveValue=T:t[h]=T}i&&this._addToTarget(t)}}},e.prototype._addToTarget=function(t){var r=this.valType,i=this.propName,n=this._additiveValue;r===ue?t[i]=t[i]+n:r===Nr?(wr(t[i],Ir),fe(Ir,Ir,n,1),t[i]=Me(Ir)):r===De?fe(t[i],t[i],n,1):r===Ga&&xn(t[i],t[i],n,1)},e}(),rh=function(){function e(t,r,i,n){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=r,r&&n){en("Can' use additive animation on looped animation.");return}this._additiveAnimators=n,this._allowDiscrete=i}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(t){this._target=t},e.prototype.when=function(t,r,i){return this.whenWithKeys(t,r,rt(r),i)},e.prototype.whenWithKeys=function(t,r,i,n){for(var a=this._tracks,o=0;o<i.length;o++){var s=i[o],h=a[s];if(!h){h=a[s]=new th(s);var f=void 0,u=this._getAdditiveTrack(s);if(u){var l=u.keyframes,v=l[l.length-1];f=v&&v.value,u.valType===Nr&&f&&(f=Me(f))}else f=this._target[s];if(f==null)continue;t>0&&h.addKeyframe(0,Re(f),n),this._trackKeys.push(s)}h.addKeyframe(t,Re(r[s]),n)}return this._maxTime=Math.max(this._maxTime,t),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var r=t.length,i=0;i<r;i++)t[i].call(this)},e.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,r=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,r)for(var i=0;i<r.length;i++)r[i].call(this)},e.prototype._setTracksFinished=function(){for(var t=this._tracks,r=this._trackKeys,i=0;i<r.length;i++)t[r[i]].setFinished()},e.prototype._getAdditiveTrack=function(t){var r,i=this._additiveAnimators;if(i)for(var n=0;n<i.length;n++){var a=i[n].getTrack(t);a&&(r=a)}return r},e.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var r=this,i=[],n=this._maxTime||0,a=0;a<this._trackKeys.length;a++){var o=this._trackKeys[a],s=this._tracks[o],h=this._getAdditiveTrack(o),f=s.keyframes,u=f.length;if(s.prepare(n,h),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var l=f[u-1];l&&(r._target[s.propName]=l.rawValue),s.setFinished()}else i.push(s)}if(i.length||this._force){var v=new Xs({life:n,loop:this._loop,delay:this._delay||0,onframe:function(c){r._started=2;var _=r._additiveAnimators;if(_){for(var y=!1,d=0;d<_.length;d++)if(_[d]._clip){y=!0;break}y||(r._additiveAnimators=null)}for(var d=0;d<i.length;d++)i[d].step(r._target,c);var p=r._onframeCbs;if(p)for(var d=0;d<p.length;d++)p[d](r._target,c)},ondestroy:function(){r._doneCallback()}});this._clip=v,this.animation&&this.animation.addClip(v),t&&v.setEasing(t)}else this._doneCallback();return this}},e.prototype.stop=function(t){if(!!this._clip){var r=this._clip;t&&r.onframe(1),this._abortedCallback()}},e.prototype.delay=function(t){return this._delay=t,this},e.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},e.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},e.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},e.prototype.getClip=function(){return this._clip},e.prototype.getTrack=function(t){return this._tracks[t]},e.prototype.getTracks=function(){var t=this;return br(this._trackKeys,function(r){return t._tracks[r]})},e.prototype.stopTracks=function(t,r){if(!t.length||!this._clip)return!0;for(var i=this._tracks,n=this._trackKeys,a=0;a<t.length;a++){var o=i[t[a]];o&&!o.isFinished()&&(r?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,a=0;a<n.length;a++)if(!i[n[a]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},e.prototype.saveTo=function(t,r,i){if(!!t){r=r||this._trackKeys;for(var n=0;n<r.length;n++){var a=r[n],o=this._tracks[a];if(!(!o||o.isFinished())){var s=o.keyframes,h=s[i?0:s.length-1];h&&(t[a]=Re(h.rawValue))}}}},e.prototype.__changeFinalValue=function(t,r){r=r||rt(t);for(var i=0;i<r.length;i++){var n=r[i],a=this._tracks[n];if(!!a){var o=a.keyframes;if(o.length>1){var s=o.pop();a.addKeyframe(s.time,t[n]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},e}(),an=rh;function dr(){return new Date().getTime()}var eh=function(e){O(t,e);function t(r){var i=e.call(this)||this;return i._running=!1,i._time=0,i._pausedTime=0,i._pauseStart=0,i._paused=!1,r=r||{},i.stage=r.stage||{},i}return t.prototype.addClip=function(r){r.animation&&this.removeClip(r),this._head?(this._tail.next=r,r.prev=this._tail,r.next=null,this._tail=r):this._head=this._tail=r,r.animation=this},t.prototype.addAnimator=function(r){r.animation=this;var i=r.getClip();i&&this.addClip(i)},t.prototype.removeClip=function(r){if(!!r.animation){var i=r.prev,n=r.next;i?i.next=n:this._head=n,n?n.prev=i:this._tail=i,r.next=r.prev=r.animation=null}},t.prototype.removeAnimator=function(r){var i=r.getClip();i&&this.removeClip(i),r.animation=null},t.prototype.update=function(r){for(var i=dr()-this._pausedTime,n=i-this._time,a=this._head;a;){var o=a.next,s=a.step(i,n);s&&(a.ondestroy(),this.removeClip(a)),a=o}this._time=i,r||(this.trigger("frame",n),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var r=this;this._running=!0;function i(){r._running&&(Bi(i),!r._paused&&r.update())}Bi(i)},t.prototype.start=function(){this._running||(this._time=dr(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=dr(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=dr()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var r=this._head;r;){var i=r.next;r.prev=r.next=r.animation=null,r=i}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(r,i){i=i||{},this.start();var n=new an(r,i.loop);return this.addAnimator(n),n},t}(Sr),ih=eh,nh=300,oi=X.domSupported,si=function(){var e=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],r={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},i=br(e,function(n){var a=n.replace("mouse","pointer");return r.hasOwnProperty(a)?a:n});return{mouse:e,touch:t,pointer:i}}(),In={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},Fn=!1;function $i(e){var t=e.pointerType;return t==="pen"||t==="touch"}function ah(e){e.touching=!0,e.touchTimer!=null&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout(function(){e.touching=!1,e.touchTimer=null},700)}function hi(e){e&&(e.zrByTouch=!0)}function oh(e,t){return lt(e.dom,new sh(e,t),!0)}function Xa(e,t){for(var r=t,i=!1;r&&r.nodeType!==9&&!(i=r.domBelongToZr||r!==t&&r===e.painterRoot);)r=r.parentNode;return i}var sh=function(){function e(t,r){this.stopPropagation=gr,this.stopImmediatePropagation=gr,this.preventDefault=gr,this.type=r.type,this.target=this.currentTarget=t.dom,this.pointerType=r.pointerType,this.clientX=r.clientX,this.clientY=r.clientY}return e}(),vt={mousedown:function(e){e=lt(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=lt(this.dom,e);var t=this.__mayPointerCapture;t&&(e.zrX!==t[0]||e.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",e)},mouseup:function(e){e=lt(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=lt(this.dom,e);var t=e.toElement||e.relatedTarget;Xa(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){Fn=!0,e=lt(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){Fn||(e=lt(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=lt(this.dom,e),hi(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),vt.mousemove.call(this,e),vt.mousedown.call(this,e)},touchmove:function(e){e=lt(this.dom,e),hi(e),this.handler.processGesture(e,"change"),vt.mousemove.call(this,e)},touchend:function(e){e=lt(this.dom,e),hi(e),this.handler.processGesture(e,"end"),vt.mouseup.call(this,e),+new Date-+this.__lastTouchMoment<nh&&vt.click.call(this,e)},pointerdown:function(e){vt.mousedown.call(this,e)},pointermove:function(e){$i(e)||vt.mousemove.call(this,e)},pointerup:function(e){vt.mouseup.call(this,e)},pointerout:function(e){$i(e)||vt.mouseout.call(this,e)}};tt(["click","dblclick","contextmenu"],function(e){vt[e]=function(t){t=lt(this.dom,t),this.trigger(e,t)}});var Wi={pointermove:function(e){$i(e)||Wi.mousemove.call(this,e)},pointerup:function(e){Wi.mouseup.call(this,e)},mousemove:function(e){this.trigger("mousemove",e)},mouseup:function(e){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",e),t&&(e.zrEventControl="only_globalout",this.trigger("mouseout",e))}};function hh(e,t){var r=t.domHandlers;X.pointerEventsSupported?tt(si.pointer,function(i){xe(t,i,function(n){r[i].call(e,n)})}):(X.touchEventsSupported&&tt(si.touch,function(i){xe(t,i,function(n){r[i].call(e,n),ah(t)})}),tt(si.mouse,function(i){xe(t,i,function(n){n=nn(n),t.touching||r[i].call(e,n)})}))}function fh(e,t){X.pointerEventsSupported?tt(In.pointer,r):X.touchEventsSupported||tt(In.mouse,r);function r(i){function n(a){a=nn(a),Xa(e,a.target)||(a=oh(e,a),t.domHandlers[i].call(e,a))}xe(t,i,n,{capture:!0})}}function xe(e,t,r,i){e.mounted[t]=r,e.listenerOpts[t]=i,ds(e.domTarget,t,r,i)}function fi(e){var t=e.mounted;for(var r in t)t.hasOwnProperty(r)&&ps(e.domTarget,r,t[r],e.listenerOpts[r]);e.mounted={}}var On=function(){function e(t,r){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=r}return e}(),uh=function(e){O(t,e);function t(r,i){var n=e.call(this)||this;return n.__pointerCapturing=!1,n.dom=r,n.painterRoot=i,n._localHandlerScope=new On(r,vt),oi&&(n._globalHandlerScope=new On(document,Wi)),hh(n,n._localHandlerScope),n}return t.prototype.dispose=function(){fi(this._localHandlerScope),oi&&fi(this._globalHandlerScope)},t.prototype.setCursor=function(r){this.dom.style&&(this.dom.style.cursor=r||"default")},t.prototype.__togglePointerCapture=function(r){if(this.__mayPointerCapture=null,oi&&+this.__pointerCapturing^+r){this.__pointerCapturing=r;var i=this._globalHandlerScope;r?fh(this,i):fi(i)}},t}(Sr),lh=uh,qa=1;X.hasGlobalWindow&&(qa=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var He=qa,Yi=.4,Gi="#333",Xi="#ccc",vh="#eee",Bn=ms,Hn=5e-5;function zt(e){return e>Hn||e<-Hn}var kt=[],ar=[],ui=Xr(),li=Math.abs,Za=function(){function e(){}return e.prototype.getLocalTransform=function(t){return e.getLocalTransform(this,t)},e.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},e.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},e.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},e.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},e.prototype.needLocalTransform=function(){return zt(this.rotation)||zt(this.x)||zt(this.y)||zt(this.scaleX-1)||zt(this.scaleY-1)||zt(this.skewX)||zt(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,r=this.needLocalTransform(),i=this.transform;if(!(r||t)){i&&(Bn(i),this.invTransform=null);return}i=i||Xr(),r?this.getLocalTransform(i):Bn(i),t&&(r?Je(i,t,i):ws(i,t)),this.transform=i,this._resolveGlobalScaleRatio(i)},e.prototype._resolveGlobalScaleRatio=function(t){var r=this.globalScaleRatio;if(r!=null&&r!==1){this.getGlobalScale(kt);var i=kt[0]<0?-1:1,n=kt[1]<0?-1:1,a=((kt[0]-i)*r+i)/kt[0]||0,o=((kt[1]-n)*r+n)/kt[1]||0;t[0]*=a,t[1]*=a,t[2]*=o,t[3]*=o}this.invTransform=this.invTransform||Xr(),Cs(this.invTransform,t)},e.prototype.getComputedTransform=function(){for(var t=this,r=[];t;)r.push(t),t=t.parent;for(;t=r.pop();)t.updateTransform();return this.transform},e.prototype.setLocalTransform=function(t){if(!!t){var r=t[0]*t[0]+t[1]*t[1],i=t[2]*t[2]+t[3]*t[3],n=Math.atan2(t[1],t[0]),a=Math.PI/2+n-Math.atan2(t[3],t[2]);i=Math.sqrt(i)*Math.cos(a),r=Math.sqrt(r),this.skewX=a,this.skewY=0,this.rotation=-n,this.x=+t[4],this.y=+t[5],this.scaleX=r,this.scaleY=i,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(!!this.transform){var t=this.parent,r=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||Xr(),Je(ar,t.invTransform,r),r=ar);var i=this.originX,n=this.originY;(i||n)&&(ui[4]=i,ui[5]=n,Je(ar,r,ui),ar[4]-=i,ar[5]-=n,r=ar),this.setLocalTransform(r)}},e.prototype.getGlobalScale=function(t){var r=this.transform;return t=t||[],r?(t[0]=Math.sqrt(r[0]*r[0]+r[1]*r[1]),t[1]=Math.sqrt(r[2]*r[2]+r[3]*r[3]),r[0]<0&&(t[0]=-t[0]),r[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},e.prototype.transformCoordToLocal=function(t,r){var i=[t,r],n=this.invTransform;return n&&Gr(i,i,n),i},e.prototype.transformCoordToGlobal=function(t,r){var i=[t,r],n=this.transform;return n&&Gr(i,i,n),i},e.prototype.getLineScale=function(){var t=this.transform;return t&&li(t[0]-1)>1e-10&&li(t[3]-1)>1e-10?Math.sqrt(li(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){ch(this,t)},e.getLocalTransform=function(t,r){r=r||[];var i=t.originX||0,n=t.originY||0,a=t.scaleX,o=t.scaleY,s=t.anchorX,h=t.anchorY,f=t.rotation||0,u=t.x,l=t.y,v=t.skewX?Math.tan(t.skewX):0,c=t.skewY?Math.tan(-t.skewY):0;if(i||n||s||h){var _=i+s,y=n+h;r[4]=-_*a-v*y*o,r[5]=-y*o-c*_*a}else r[4]=r[5]=0;return r[0]=a,r[3]=o,r[1]=c*a,r[2]=v*o,f&&Ts(r,r,f),r[4]+=i+u,r[5]+=n+l,r},e.initDefaultProps=function(){var t=e.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0}(),e}(),Qr=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function ch(e,t){for(var r=0;r<Qr.length;r++){var i=Qr[r];e[i]=t[i]}}var zn={};function et(e,t){t=t||tr;var r=zn[t];r||(r=zn[t]=new Xe(500));var i=r.get(e);return i==null&&(i=jr.measureText(e,t).width,r.put(e,i)),i}function kn(e,t,r,i){var n=et(e,t),a=on(t),o=$r(0,n,r),s=lr(0,a,i),h=new k(o,s,n,a);return h}function dh(e,t,r,i){var n=((e||"")+"").split(`
|
|
`),a=n.length;if(a===1)return kn(n[0],t,r,i);for(var o=new k(0,0,0,0),s=0;s<n.length;s++){var h=kn(n[s],t,r,i);s===0?o.copy(h):o.union(h)}return o}function $r(e,t,r){return r==="right"?e-=t:r==="center"&&(e-=t/2),e}function lr(e,t,r){return r==="middle"?e-=t/2:r==="bottom"&&(e-=t),e}function on(e){return et("\u56FD",e)}function Kr(e,t){return typeof e=="string"?e.lastIndexOf("%")>=0?parseFloat(e)/100*t:parseFloat(e):e}function ph(e,t,r){var i=t.position||"inside",n=t.distance!=null?t.distance:5,a=r.height,o=r.width,s=a/2,h=r.x,f=r.y,u="left",l="top";if(i instanceof Array)h+=Kr(i[0],r.width),f+=Kr(i[1],r.height),u=null,l=null;else switch(i){case"left":h-=n,f+=s,u="right",l="middle";break;case"right":h+=n+o,f+=s,l="middle";break;case"top":h+=o/2,f-=n,u="center",l="bottom";break;case"bottom":h+=o/2,f+=a+n,u="center";break;case"inside":h+=o/2,f+=s,u="center",l="middle";break;case"insideLeft":h+=n,f+=s,l="middle";break;case"insideRight":h+=o-n,f+=s,u="right",l="middle";break;case"insideTop":h+=o/2,f+=n,u="center";break;case"insideBottom":h+=o/2,f+=a-n,u="center",l="bottom";break;case"insideTopLeft":h+=n,f+=n;break;case"insideTopRight":h+=o-n,f+=n,u="right";break;case"insideBottomLeft":h+=n,f+=a-n,l="bottom";break;case"insideBottomRight":h+=o-n,f+=a-n,u="right",l="bottom";break}return e=e||{},e.x=h,e.y=f,e.align=u,e.verticalAlign=l,e}var vi="__zr_normal__",ci=Qr.concat(["ignore"]),_h=$e(Qr,function(e,t){return e[t]=!0,e},{ignore:!1}),or={},gh=new k(0,0,0,0),sn=function(){function e(t){this.id=ba(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return e.prototype._init=function(t){this.attr(t)},e.prototype.drift=function(t,r,i){switch(this.draggable){case"horizontal":r=0;break;case"vertical":t=0;break}var n=this.transform;n||(n=this.transform=[1,0,0,1,0,0]),n[4]+=t,n[5]+=r,this.decomposeTransform(),this.markRedraw()},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},e.prototype.updateInnerText=function(t){var r=this._textContent;if(r&&(!r.ignore||t)){this.textConfig||(this.textConfig={});var i=this.textConfig,n=i.local,a=r.innerTransformable,o=void 0,s=void 0,h=!1;a.parent=n?this:null;var f=!1;if(a.copyTransform(r),i.position!=null){var u=gh;i.layoutRect?u.copy(i.layoutRect):u.copy(this.getBoundingRect()),n||u.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(or,i,u):ph(or,i,u),a.x=or.x,a.y=or.y,o=or.align,s=or.verticalAlign;var l=i.origin;if(l&&i.rotation!=null){var v=void 0,c=void 0;l==="center"?(v=u.width*.5,c=u.height*.5):(v=Kr(l[0],u.width),c=Kr(l[1],u.height)),f=!0,a.originX=-a.x+v+(n?0:u.x),a.originY=-a.y+c+(n?0:u.y)}}i.rotation!=null&&(a.rotation=i.rotation);var _=i.offset;_&&(a.x+=_[0],a.y+=_[1],f||(a.originX=-_[0],a.originY=-_[1]));var y=i.inside==null?typeof i.position=="string"&&i.position.indexOf("inside")>=0:i.inside,d=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),p=void 0,g=void 0,m=void 0;y&&this.canBeInsideText()?(p=i.insideFill,g=i.insideStroke,(p==null||p==="auto")&&(p=this.getInsideTextFill()),(g==null||g==="auto")&&(g=this.getInsideTextStroke(p),m=!0)):(p=i.outsideFill,g=i.outsideStroke,(p==null||p==="auto")&&(p=this.getOutsideFill()),(g==null||g==="auto")&&(g=this.getOutsideStroke(p),m=!0)),p=p||"#000",(p!==d.fill||g!==d.stroke||m!==d.autoStroke||o!==d.align||s!==d.verticalAlign)&&(h=!0,d.fill=p,d.stroke=g,d.autoStroke=m,d.align=o,d.verticalAlign=s,r.setDefaultTextStyle(d)),r.__dirty|=J,h&&r.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return"#fff"},e.prototype.getInsideTextStroke=function(t){return"#000"},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Xi:Gi},e.prototype.getOutsideStroke=function(t){var r=this.__zr&&this.__zr.getBackgroundColor(),i=typeof r=="string"&&wr(r);i||(i=[255,255,255,1]);for(var n=i[3],a=this.__zr.isDarkMode(),o=0;o<3;o++)i[o]=i[o]*n+(a?0:255)*(1-n);return i[3]=1,Ya(i,"rgba")},e.prototype.traverse=function(t,r){},e.prototype.attrKV=function(t,r){t==="textConfig"?this.setTextConfig(r):t==="textContent"?this.setTextContent(r):t==="clipPath"?this.setClipPath(r):t==="extra"?(this.extra=this.extra||{},z(this.extra,r)):this[t]=r},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(t,r){if(typeof t=="string")this.attrKV(t,r);else if(At(t))for(var i=t,n=rt(i),a=0;a<n.length;a++){var o=n[a];this.attrKV(o,t[o])}return this.markRedraw(),this},e.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var r=this._normalState,i=0;i<this.animators.length;i++){var n=this.animators[i],a=n.__fromStateTransition;if(!(n.getLoop()||a&&a!==vi)){var o=n.targetName,s=o?r[o]:r;n.saveTo(s)}}},e.prototype._innerSaveToNormal=function(t){var r=this._normalState;r||(r=this._normalState={}),t.textConfig&&!r.textConfig&&(r.textConfig=this.textConfig),this._savePrimaryToNormal(t,r,ci)},e.prototype._savePrimaryToNormal=function(t,r,i){for(var n=0;n<i.length;n++){var a=i[n];t[a]!=null&&!(a in r)&&(r[a]=this[a])}},e.prototype.hasState=function(){return this.currentStates.length>0},e.prototype.getState=function(t){return this.states[t]},e.prototype.ensureState=function(t){var r=this.states;return r[t]||(r[t]={}),r[t]},e.prototype.clearStates=function(t){this.useState(vi,!1,t)},e.prototype.useState=function(t,r,i,n){var a=t===vi,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,h=this.stateTransition;if(!(Tt(s,t)>=0&&(r||s.length===1))){var f;if(this.stateProxy&&!a&&(f=this.stateProxy(t)),f||(f=this.states&&this.states[t]),!f&&!a){en("State "+t+" not exists.");return}a||this.saveCurrentToNormalState(f);var u=!!(f&&f.hoverLayer||n);u&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,f,this._normalState,r,!i&&!this.__inHover&&h&&h.duration>0,h);var l=this._textContent,v=this._textGuide;return l&&l.useState(t,r,i,u),v&&v.useState(t,r,i,u),a?(this.currentStates=[],this._normalState={}):r?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!u&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~J),f}}},e.prototype.useStates=function(t,r,i){if(!t.length)this.clearStates();else{var n=[],a=this.currentStates,o=t.length,s=o===a.length;if(s){for(var h=0;h<o;h++)if(t[h]!==a[h]){s=!1;break}}if(s)return;for(var h=0;h<o;h++){var f=t[h],u=void 0;this.stateProxy&&(u=this.stateProxy(f,t)),u||(u=this.states[f]),u&&n.push(u)}var l=n[o-1],v=!!(l&&l.hoverLayer||i);v&&this._toggleHoverLayerFlag(!0);var c=this._mergeStates(n),_=this.stateTransition;this.saveCurrentToNormalState(c),this._applyStateObj(t.join(","),c,this._normalState,!1,!r&&!this.__inHover&&_&&_.duration>0,_);var y=this._textContent,d=this._textGuide;y&&y.useStates(t,r,v),d&&d.useStates(t,r,v),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!v&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~J)}},e.prototype.isSilent=function(){for(var t=this.silent,r=this.parent;!t&&r;){if(r.silent){t=!0;break}r=r.parent}return t},e.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var r=this.animators[t];r.targetName&&r.changeTarget(this[r.targetName])}},e.prototype.removeState=function(t){var r=Tt(this.currentStates,t);if(r>=0){var i=this.currentStates.slice();i.splice(r,1),this.useStates(i)}},e.prototype.replaceState=function(t,r,i){var n=this.currentStates.slice(),a=Tt(n,t),o=Tt(n,r)>=0;a>=0?o?n.splice(a,1):n[a]=r:i&&!o&&n.push(r),this.useStates(n)},e.prototype.toggleState=function(t,r){r?this.useState(t,!0):this.removeState(t)},e.prototype._mergeStates=function(t){for(var r={},i,n=0;n<t.length;n++){var a=t[n];z(r,a),a.textConfig&&(i=i||{},z(i,a.textConfig))}return i&&(r.textConfig=i),r},e.prototype._applyStateObj=function(t,r,i,n,a,o){var s=!(r&&n);r&&r.textConfig?(this.textConfig=z({},n?this.textConfig:i.textConfig),z(this.textConfig,r.textConfig)):s&&i.textConfig&&(this.textConfig=i.textConfig);for(var h={},f=!1,u=0;u<ci.length;u++){var l=ci[u],v=a&&_h[l];r&&r[l]!=null?v?(f=!0,h[l]=r[l]):this[l]=r[l]:s&&i[l]!=null&&(v?(f=!0,h[l]=i[l]):this[l]=i[l])}if(!a)for(var u=0;u<this.animators.length;u++){var c=this.animators[u],_=c.targetName;c.getLoop()||c.__changeFinalValue(_?(r||i)[_]:r||i)}f&&this._transitionState(t,h,o)},e.prototype._attachComponent=function(t){if(!(t.__zr&&!t.__hostTarget)&&t!==this){var r=this.__zr;r&&t.addSelfToZr(r),t.__zr=r,t.__hostTarget=this}},e.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},e.prototype.getClipPath=function(){return this._clipPath},e.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},e.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},e.prototype.getTextContent=function(){return this._textContent},e.prototype.setTextContent=function(t){var r=this._textContent;r!==t&&(r&&r!==t&&this.removeTextContent(),t.innerTransformable=new Za,this._attachComponent(t),this._textContent=t,this.markRedraw())},e.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),z(this.textConfig,t),this.markRedraw()},e.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},e.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},e.prototype.getTextGuideLine=function(){return this._textGuide},e.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},e.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},e.prototype.markRedraw=function(){this.__dirty|=J;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},e.prototype.dirty=function(){this.markRedraw()},e.prototype._toggleHoverLayerFlag=function(t){this.__inHover=t;var r=this._textContent,i=this._textGuide;r&&(r.__inHover=t),i&&(i.__inHover=t)},e.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var r=this.animators;if(r)for(var i=0;i<r.length;i++)t.animation.addAnimator(r[i]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},e.prototype.removeSelfFromZr=function(t){if(!!this.__zr){this.__zr=null;var r=this.animators;if(r)for(var i=0;i<r.length;i++)t.animation.removeAnimator(r[i]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},e.prototype.animate=function(t,r,i){var n=t?this[t]:this,a=new an(n,r,i);return t&&(a.targetName=t),this.addAnimator(a,t),a},e.prototype.addAnimator=function(t,r){var i=this.__zr,n=this;t.during(function(){n.updateDuringAnimation(r)}).done(function(){var a=n.animators,o=Tt(a,t);o>=0&&a.splice(o,1)}),this.animators.push(t),i&&i.animation.addAnimator(t),i&&i.wakeUp()},e.prototype.updateDuringAnimation=function(t){this.markRedraw()},e.prototype.stopAnimation=function(t,r){for(var i=this.animators,n=i.length,a=[],o=0;o<n;o++){var s=i[o];!t||t===s.scope?s.stop(r):a.push(s)}return this.animators=a,this},e.prototype.animateTo=function(t,r,i){di(this,t,r,i)},e.prototype.animateFrom=function(t,r,i){di(this,t,r,i,!0)},e.prototype._transitionState=function(t,r,i,n){for(var a=di(this,r,i,n),o=0;o<a.length;o++)a[o].__fromStateTransition=t},e.prototype.getBoundingRect=function(){return null},e.prototype.getPaintRect=function(){return null},e.initDefaultProps=function(){var t=e.prototype;t.type="element",t.name="",t.ignore=t.silent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=t.__inHover=!1,t.__dirty=J;function r(i,n,a,o){Object.defineProperty(t,i,{get:function(){if(!this[n]){var h=this[n]=[];s(this,h)}return this[n]},set:function(h){this[a]=h[0],this[o]=h[1],this[n]=h,s(this,h)}});function s(h,f){Object.defineProperty(f,0,{get:function(){return h[a]},set:function(u){h[a]=u}}),Object.defineProperty(f,1,{get:function(){return h[o]},set:function(u){h[o]=u}})}}Object.defineProperty&&(r("position","_legacyPos","x","y"),r("scale","_legacyScale","scaleX","scaleY"),r("origin","_legacyOrigin","originX","originY"))}(),e}();Ca(sn,Sr);Ca(sn,Za);function di(e,t,r,i,n){r=r||{};var a=[];Ua(e,"",e,t,r,i,a,n);var o=a.length,s=!1,h=r.done,f=r.aborted,u=function(){s=!0,o--,o<=0&&(s?h&&h():f&&f())},l=function(){o--,o<=0&&(s?h&&h():f&&f())};o||h&&h(),a.length>0&&r.during&&a[0].during(function(_,y){r.during(y)});for(var v=0;v<a.length;v++){var c=a[v];u&&c.done(u),l&&c.aborted(l),r.force&&c.duration(r.duration),c.start(r.easing)}return a}function pi(e,t,r){for(var i=0;i<r;i++)e[i]=t[i]}function yh(e){return Ct(e[0])}function mh(e,t,r){if(Ct(t[r]))if(Ct(e[r])||(e[r]=[]),Wo(t[r])){var i=t[r].length;e[r].length!==i&&(e[r]=new t[r].constructor(i),pi(e[r],t[r],i))}else{var n=t[r],a=e[r],o=n.length;if(yh(n))for(var s=n[0].length,h=0;h<o;h++)a[h]?pi(a[h],n[h],s):a[h]=Array.prototype.slice.call(n[h]);else pi(a,n,o);a.length=n.length}else e[r]=t[r]}function wh(e,t){return e===t||Ct(e)&&Ct(t)&&Th(e,t)}function Th(e,t){var r=e.length;if(r!==t.length)return!1;for(var i=0;i<r;i++)if(e[i]!==t[i])return!1;return!0}function Ua(e,t,r,i,n,a,o,s){for(var h=rt(i),f=n.duration,u=n.delay,l=n.additive,v=n.setToFinal,c=!At(a),_=e.animators,y=[],d=0;d<h.length;d++){var p=h[d],g=i[p];if(g!=null&&r[p]!=null&&(c||a[p]))if(At(g)&&!Ct(g)&&!Ye(g)){if(t){s||(r[p]=g,e.updateDuringAnimation(t));continue}Ua(e,p,r[p],g,n,a&&a[p],o,s)}else y.push(p);else s||(r[p]=g,e.updateDuringAnimation(t),y.push(p))}var m=y.length;if(!l&&m)for(var w=0;w<_.length;w++){var L=_[w];if(L.targetName===t){var T=L.stopTracks(y);if(T){var b=Tt(_,L);_.splice(b,1)}}}if(n.force||(y=fn(y,function(P){return!wh(i[P],r[P])}),m=y.length),m>0||n.force&&!o.length){var C=void 0,S=void 0,R=void 0;if(s){S={},v&&(C={});for(var w=0;w<m;w++){var p=y[w];S[p]=r[p],v?C[p]=i[p]:r[p]=i[p]}}else if(v){R={};for(var w=0;w<m;w++){var p=y[w];R[p]=Re(r[p]),mh(r,i,p)}}var L=new an(r,!1,!1,l?fn(_,function(M){return M.targetName===t}):null);L.targetName=t,n.scope&&(L.scope=n.scope),v&&C&&L.whenWithKeys(0,C,y),R&&L.whenWithKeys(0,R,y),L.whenWithKeys(f==null?500:f,s?S:i,y).delay(u||0),e.addAnimator(L,t),o.push(L)}}var Va=sn,Qa=function(e){O(t,e);function t(r){var i=e.call(this)||this;return i.isGroup=!0,i._children=[],i.attr(r),i}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(r){return this._children[r]},t.prototype.childOfName=function(r){for(var i=this._children,n=0;n<i.length;n++)if(i[n].name===r)return i[n]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(r){return r&&r!==this&&r.parent!==this&&(this._children.push(r),this._doAdd(r)),this},t.prototype.addBefore=function(r,i){if(r&&r!==this&&r.parent!==this&&i&&i.parent===this){var n=this._children,a=n.indexOf(i);a>=0&&(n.splice(a,0,r),this._doAdd(r))}return this},t.prototype.replace=function(r,i){var n=Tt(this._children,r);return n>=0&&this.replaceAt(i,n),this},t.prototype.replaceAt=function(r,i){var n=this._children,a=n[i];if(r&&r!==this&&r.parent!==this&&r!==a){n[i]=r,a.parent=null;var o=this.__zr;o&&a.removeSelfFromZr(o),this._doAdd(r)}return this},t.prototype._doAdd=function(r){r.parent&&r.parent.remove(r),r.parent=this;var i=this.__zr;i&&i!==r.__zr&&r.addSelfToZr(i),i&&i.refresh()},t.prototype.remove=function(r){var i=this.__zr,n=this._children,a=Tt(n,r);return a<0?this:(n.splice(a,1),r.parent=null,i&&r.removeSelfFromZr(i),i&&i.refresh(),this)},t.prototype.removeAll=function(){for(var r=this._children,i=this.__zr,n=0;n<r.length;n++){var a=r[n];i&&a.removeSelfFromZr(i),a.parent=null}return r.length=0,this},t.prototype.eachChild=function(r,i){for(var n=this._children,a=0;a<n.length;a++){var o=n[a];r.call(i,o,a)}return this},t.prototype.traverse=function(r,i){for(var n=0;n<this._children.length;n++){var a=this._children[n],o=r.call(i,a);a.isGroup&&!o&&a.traverse(r,i)}return this},t.prototype.addSelfToZr=function(r){e.prototype.addSelfToZr.call(this,r);for(var i=0;i<this._children.length;i++){var n=this._children[i];n.addSelfToZr(r)}},t.prototype.removeSelfFromZr=function(r){e.prototype.removeSelfFromZr.call(this,r);for(var i=0;i<this._children.length;i++){var n=this._children[i];n.removeSelfFromZr(r)}},t.prototype.getBoundingRect=function(r){for(var i=new k(0,0,0,0),n=r||this._children,a=[],o=null,s=0;s<n.length;s++){var h=n[s];if(!(h.ignore||h.invisible)){var f=h.getBoundingRect(),u=h.getLocalTransform(a);u?(k.applyTransform(i,f,u),o=o||i.clone(),o.union(i)):(o=o||f.clone(),o.union(f))}}return o||i},t}(Va);Qa.prototype.type="group";var bh=Qa;/*!
|
|
* ZRender, a high performance 2d drawing library.
|
|
*
|
|
* Copyright (c) 2013, Baidu Inc.
|
|
* All rights reserved.
|
|
*
|
|
* LICENSE
|
|
* https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
|
|
*/var Ae={},Ka={};function Ch(e){delete Ka[e]}function Lh(e){if(!e)return!1;if(typeof e=="string")return Be(e,1)<Yi;if(e.colorStops){for(var t=e.colorStops,r=0,i=t.length,n=0;n<i;n++)r+=Be(t[n].color,1);return r/=i,r<Yi}return!1}var Sh=function(){function e(t,r,i){var n=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,i=i||{},this.dom=r,this.id=t;var a=new Hs,o=i.renderer||"canvas";Ae[o]||(o=rt(Ae)[0]),i.useDirtyRect=i.useDirtyRect==null?!1:i.useDirtyRect;var s=new Ae[o](r,a,i,t),h=i.ssr||s.ssrOnly;this.storage=a,this.painter=s;var f=!X.node&&!X.worker&&!h?new lh(s.getViewportRoot(),s.root):null,u=i.useCoarsePointer,l=u==null||u==="auto"?X.touchEventsSupported:!!u,v=44,c;l&&(c=j(i.pointerSize,v)),this.handler=new As(a,s,f,s.root,c),this.animation=new ih({stage:{update:h?null:function(){return n._flush(!0)}}}),h||this.animation.start()}return e.prototype.add=function(t){this._disposed||!t||(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},e.prototype.remove=function(t){this._disposed||!t||(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},e.prototype.configLayer=function(t,r){this._disposed||(this.painter.configLayer&&this.painter.configLayer(t,r),this.refresh())},e.prototype.setBackgroundColor=function(t){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=Lh(t))},e.prototype.getBackgroundColor=function(){return this._backgroundColor},e.prototype.setDarkMode=function(t){this._darkMode=t},e.prototype.isDarkMode=function(){return this._darkMode},e.prototype.refreshImmediately=function(t){this._disposed||(t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},e.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},e.prototype.flush=function(){this._disposed||this._flush(!1)},e.prototype._flush=function(t){var r,i=dr();this._needsRefresh&&(r=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(r=!0,this.refreshHoverImmediately());var n=dr();r?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:n-i})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},e.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},e.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},e.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},e.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},e.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},e.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},e.prototype.findHover=function(t,r){if(!this._disposed)return this.handler.findHover(t,r)},e.prototype.on=function(t,r,i){return this._disposed||this.handler.on(t,r,i),this},e.prototype.off=function(t,r){this._disposed||this.handler.off(t,r)},e.prototype.trigger=function(t,r){this._disposed||this.handler.trigger(t,r)},e.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),r=0;r<t.length;r++)t[r]instanceof bh&&t[r].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},e.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,Ch(this.id))},e}();function xu(e,t){var r=new Sh(ba(),e,t);return Ka[r.id]=r,r}function Au(e,t){Ae[e]=t}var qi=new Xe(50);function Ph(e){if(typeof e=="string"){var t=qi.get(e);return t&&t.image}else return e}function Ja(e,t,r,i,n){if(e)if(typeof e=="string"){if(t&&t.__zrImageSrc===e||!r)return t;var a=qi.get(e),o={hostEl:r,cb:i,cbPayload:n};return a?(t=a.image,!qe(t)&&a.pending.push(o)):(t=jr.loadImage(e,Nn,Nn),t.__zrImageSrc=e,qi.put(e,t.__cachedImgObj={image:t,pending:[o]})),t}else return e;else return t}function Nn(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<e.pending.length;t++){var r=e.pending[t],i=r.cb;i&&i(this,r.cbPayload),r.hostEl.dirty()}e.pending.length=0}function qe(e){return e&&e.width&&e.height}var _i=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function Rh(e,t,r,i,n,a){if(!r){e.text="",e.isTruncated=!1;return}var o=(t+"").split(`
|
|
`);a=ja(r,i,n,a);for(var s=!1,h={},f=0,u=o.length;f<u;f++)to(h,o[f],a),o[f]=h.textLine,s=s||h.isTruncated;e.text=o.join(`
|
|
`),e.isTruncated=s}function ja(e,t,r,i){i=i||{};var n=z({},i);n.font=t,r=j(r,"..."),n.maxIterations=j(i.maxIterations,2);var a=n.minChar=j(i.minChar,0);n.cnCharWidth=et("\u56FD",t);var o=n.ascCharWidth=et("a",t);n.placeholder=j(i.placeholder,"");for(var s=e=Math.max(0,e-1),h=0;h<a&&s>=o;h++)s-=o;var f=et(r,t);return f>s&&(r="",f=0),s=e-f,n.ellipsis=r,n.ellipsisWidth=f,n.contentWidth=s,n.containerWidth=e,n}function to(e,t,r){var i=r.containerWidth,n=r.font,a=r.contentWidth;if(!i){e.textLine="",e.isTruncated=!1;return}var o=et(t,n);if(o<=i){e.textLine=t,e.isTruncated=!1;return}for(var s=0;;s++){if(o<=a||s>=r.maxIterations){t+=r.ellipsis;break}var h=s===0?Mh(t,a,r.ascCharWidth,r.cnCharWidth):o>0?Math.floor(t.length*a/o):0;t=t.substr(0,h),o=et(t,n)}t===""&&(t=r.placeholder),e.textLine=t,e.isTruncated=!0}function Mh(e,t,r,i){for(var n=0,a=0,o=e.length;a<o&&n<t;a++){var s=e.charCodeAt(a);n+=0<=s&&s<=127?r:i}return a}function Dh(e,t){e!=null&&(e+="");var r=t.overflow,i=t.padding,n=t.font,a=r==="truncate",o=on(n),s=j(t.lineHeight,o),h=!!t.backgroundColor,f=t.lineOverflow==="truncate",u=!1,l=t.width,v;l!=null&&(r==="break"||r==="breakAll")?v=e?ro(e,t.font,l,r==="breakAll",0).lines:[]:v=e?e.split(`
|
|
`):[];var c=v.length*s,_=j(t.height,c);if(c>_&&f){var y=Math.floor(_/s);u=u||v.length>y,v=v.slice(0,y)}if(e&&a&&l!=null)for(var d=ja(l,n,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),p={},g=0;g<v.length;g++)to(p,v[g],d),v[g]=p.textLine,u=u||p.isTruncated;for(var m=_,w=0,g=0;g<v.length;g++)w=Math.max(et(v[g],n),w);l==null&&(l=w);var L=w;return i&&(m+=i[0]+i[2],L+=i[1]+i[3],l+=i[1]+i[3]),h&&(L=l),{lines:v,height:_,outerWidth:L,outerHeight:m,lineHeight:s,calculatedLineHeight:o,contentWidth:w,contentHeight:c,width:l,isTruncated:u}}var xh=function(){function e(){}return e}(),$n=function(){function e(t){this.tokens=[],t&&(this.tokens=t)}return e}(),Ah=function(){function e(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return e}();function Eh(e,t){var r=new Ah;if(e!=null&&(e+=""),!e)return r;for(var i=t.width,n=t.height,a=t.overflow,o=(a==="break"||a==="breakAll")&&i!=null?{width:i,accumWidth:0,breakAll:a==="breakAll"}:null,s=_i.lastIndex=0,h;(h=_i.exec(e))!=null;){var f=h.index;f>s&&gi(r,e.substring(s,f),t,o),gi(r,h[2],t,o,h[1]),s=_i.lastIndex}s<e.length&&gi(r,e.substring(s,e.length),t,o);var u=[],l=0,v=0,c=t.padding,_=a==="truncate",y=t.lineOverflow==="truncate",d={};function p(ct,it,$){ct.width=it,ct.lineHeight=$,l+=$,v=Math.max(v,it)}t:for(var g=0;g<r.lines.length;g++){for(var m=r.lines[g],w=0,L=0,T=0;T<m.tokens.length;T++){var b=m.tokens[T],C=b.styleName&&t.rich[b.styleName]||{},S=b.textPadding=C.padding,R=S?S[1]+S[3]:0,P=b.font=C.font||t.font;b.contentHeight=on(P);var M=j(C.height,b.contentHeight);if(b.innerHeight=M,S&&(M+=S[0]+S[2]),b.height=M,b.lineHeight=Se(C.lineHeight,t.lineHeight,M),b.align=C&&C.align||t.align,b.verticalAlign=C&&C.verticalAlign||"middle",y&&n!=null&&l+b.lineHeight>n){var F=r.lines.length;T>0?(m.tokens=m.tokens.slice(0,T),p(m,L,w),r.lines=r.lines.slice(0,g+1)):r.lines=r.lines.slice(0,g),r.isTruncated=r.isTruncated||r.lines.length<F;break t}var D=C.width,B=D==null||D==="auto";if(typeof D=="string"&&D.charAt(D.length-1)==="%")b.percentWidth=D,u.push(b),b.contentWidth=et(b.text,P);else{if(B){var x=C.backgroundColor,N=x&&x.image;N&&(N=Ph(N),qe(N)&&(b.width=Math.max(b.width,N.width*M/N.height)))}var V=_&&i!=null?i-L:null;V!=null&&V<b.width?!B||V<R?(b.text="",b.width=b.contentWidth=0):(Rh(d,b.text,V-R,P,t.ellipsis,{minChar:t.truncateMinChar}),b.text=d.text,r.isTruncated=r.isTruncated||d.isTruncated,b.width=b.contentWidth=et(b.text,P)):b.contentWidth=et(b.text,P)}b.width+=R,L+=b.width,C&&(w=Math.max(w,b.lineHeight))}p(m,L,w)}r.outerWidth=r.width=j(i,v),r.outerHeight=r.height=j(n,l),r.contentHeight=l,r.contentWidth=v,c&&(r.outerWidth+=c[1]+c[3],r.outerHeight+=c[0]+c[2]);for(var g=0;g<u.length;g++){var b=u[g],Lt=b.percentWidth;b.width=parseInt(Lt,10)/100*r.width}return r}function gi(e,t,r,i,n){var a=t==="",o=n&&r.rich[n]||{},s=e.lines,h=o.font||r.font,f=!1,u,l;if(i){var v=o.padding,c=v?v[1]+v[3]:0;if(o.width!=null&&o.width!=="auto"){var _=Kr(o.width,i.width)+c;s.length>0&&_+i.accumWidth>i.width&&(u=t.split(`
|
|
`),f=!0),i.accumWidth=_}else{var y=ro(t,h,i.width,i.breakAll,i.accumWidth);i.accumWidth=y.accumWidth+c,l=y.linesWidths,u=y.lines}}else u=t.split(`
|
|
`);for(var d=0;d<u.length;d++){var p=u[d],g=new xh;if(g.styleName=n,g.text=p,g.isLineHolder=!p&&!a,typeof o.width=="number"?g.width=o.width:g.width=l?l[d]:et(p,h),!d&&!f){var m=(s[s.length-1]||(s[0]=new $n)).tokens,w=m.length;w===1&&m[0].isLineHolder?m[0]=g:(p||!w||a)&&m.push(g)}else s.push(new $n([g]))}}function Ih(e){var t=e.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var Fh=$e(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function Oh(e){return Ih(e)?!!Fh[e]:!0}function ro(e,t,r,i,n){for(var a=[],o=[],s="",h="",f=0,u=0,l=0;l<e.length;l++){var v=e.charAt(l);if(v===`
|
|
`){h&&(s+=h,u+=f),a.push(s),o.push(u),s="",h="",f=0,u=0;continue}var c=et(v,t),_=i?!1:!Oh(v);if(a.length?u+c>r:n+u+c>r){u?(s||h)&&(_?(s||(s=h,h="",f=0,u=f),a.push(s),o.push(u-f),h+=v,f+=c,s="",u=f):(h&&(s+=h,h="",f=0),a.push(s),o.push(u),s=v,u=c)):_?(a.push(h),o.push(f),h=v,f=c):(a.push(v),o.push(c));continue}u+=c,_?(h+=v,f+=c):(h&&(s+=h,h="",f=0),s+=v)}return!a.length&&!s&&(s=e,h="",f=0),h&&(s+=h),s&&(a.push(s),o.push(u)),a.length===1&&(u+=n),{accumWidth:u,lines:a,linesWidths:o}}var Zi="__zr_style_"+Math.round(Math.random()*10),jt={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Ze={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};jt[Zi]=!0;var Wn=["z","z2","invisible"],Bh=["invisible"],Hh=function(e){O(t,e);function t(r){return e.call(this,r)||this}return t.prototype._init=function(r){for(var i=rt(r),n=0;n<i.length;n++){var a=i[n];a==="style"?this.useStyle(r[a]):e.prototype.attrKV.call(this,a,r[a])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(r,i,n,a){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&zh(this,r,i)||o&&!o[0]&&!o[3])return!1;if(n&&this.__clipPaths){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(a&&this.parent)for(var h=this.parent;h;){if(h.ignore)return!1;h=h.parent}return!0},t.prototype.contain=function(r,i){return this.rectContain(r,i)},t.prototype.traverse=function(r,i){r.call(i,this)},t.prototype.rectContain=function(r,i){var n=this.transformCoordToLocal(r,i),a=this.getBoundingRect();return a.contain(n[0],n[1])},t.prototype.getPaintRect=function(){var r=this._paintRect;if(!this._paintRect||this.__dirty){var i=this.transform,n=this.getBoundingRect(),a=this.style,o=a.shadowBlur||0,s=a.shadowOffsetX||0,h=a.shadowOffsetY||0;r=this._paintRect||(this._paintRect=new k(0,0,0,0)),i?k.applyTransform(r,n,i):r.copy(n),(o||s||h)&&(r.width+=o*2+Math.abs(s),r.height+=o*2+Math.abs(h),r.x=Math.min(r.x,r.x+s-o),r.y=Math.min(r.y,r.y+h-o));var f=this.dirtyRectTolerance;r.isZero()||(r.x=Math.floor(r.x-f),r.y=Math.floor(r.y-f),r.width=Math.ceil(r.width+1+f*2),r.height=Math.ceil(r.height+1+f*2))}return r},t.prototype.setPrevPaintRect=function(r){r?(this._prevPaintRect=this._prevPaintRect||new k(0,0,0,0),this._prevPaintRect.copy(r)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(r){return this.animate("style",r)},t.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(r,i){r!=="style"?e.prototype.attrKV.call(this,r,i):this.style?this.setStyle(i):this.useStyle(i)},t.prototype.setStyle=function(r,i){return typeof r=="string"?this.style[r]=i:z(this.style,r),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(r){r||this.markRedraw(),this.__dirty|=kr,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&kr)},t.prototype.styleUpdated=function(){this.__dirty&=~kr},t.prototype.createStyle=function(r){return Ge(jt,r)},t.prototype.useStyle=function(r){r[Zi]||(r=this.createStyle(r)),this.__inHover?this.__hoverStyle=r:this.style=r,this.dirtyStyle()},t.prototype.isStyleObject=function(r){return r[Zi]},t.prototype._innerSaveToNormal=function(r){e.prototype._innerSaveToNormal.call(this,r);var i=this._normalState;r.style&&!i.style&&(i.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(r,i,Wn)},t.prototype._applyStateObj=function(r,i,n,a,o,s){e.prototype._applyStateObj.call(this,r,i,n,a,o,s);var h=!(i&&a),f;if(i&&i.style?o?a?f=i.style:(f=this._mergeStyle(this.createStyle(),n.style),this._mergeStyle(f,i.style)):(f=this._mergeStyle(this.createStyle(),a?this.style:n.style),this._mergeStyle(f,i.style)):h&&(f=n.style),f)if(o){var u=this.style;if(this.style=this.createStyle(h?{}:u),h)for(var l=rt(u),v=0;v<l.length;v++){var c=l[v];c in f&&(f[c]=f[c],this.style[c]=u[c])}for(var _=rt(f),v=0;v<_.length;v++){var c=_[v];this.style[c]=this.style[c]}this._transitionState(r,{style:f},s,this.getAnimationStyleProps())}else this.useStyle(f);for(var y=this.__inHover?Bh:Wn,v=0;v<y.length;v++){var c=y[v];i&&i[c]!=null?this[c]=i[c]:h&&n[c]!=null&&(this[c]=n[c])}},t.prototype._mergeStates=function(r){for(var i=e.prototype._mergeStates.call(this,r),n,a=0;a<r.length;a++){var o=r[a];o.style&&(n=n||{},this._mergeStyle(n,o.style))}return n&&(i.style=n),i},t.prototype._mergeStyle=function(r,i){return z(r,i),r},t.prototype.getAnimationStyleProps=function(){return Ze},t.initDefaultProps=function(){var r=t.prototype;r.type="displayable",r.invisible=!1,r.z=0,r.z2=0,r.zlevel=0,r.culling=!1,r.cursor="pointer",r.rectHover=!1,r.incremental=!1,r._rect=null,r.dirtyRectTolerance=0,r.__dirty=J|kr}(),t}(Va),yi=new k(0,0,0,0),mi=new k(0,0,0,0);function zh(e,t,r){return yi.copy(e.getBoundingRect()),e.transform&&yi.applyTransform(e.transform),mi.width=t,mi.height=r,!yi.intersect(mi)}var re=Hh,st=Math.min,ht=Math.max,wi=Math.sin,Ti=Math.cos,Nt=Math.PI*2,ve=Lr(),ce=Lr(),de=Lr();function Yn(e,t,r,i,n,a){n[0]=st(e,r),n[1]=st(t,i),a[0]=ht(e,r),a[1]=ht(t,i)}var Gn=[],Xn=[];function kh(e,t,r,i,n,a,o,s,h,f){var u=za,l=W,v=u(e,r,n,o,Gn);h[0]=1/0,h[1]=1/0,f[0]=-1/0,f[1]=-1/0;for(var c=0;c<v;c++){var _=l(e,r,n,o,Gn[c]);h[0]=st(_,h[0]),f[0]=ht(_,f[0])}v=u(t,i,a,s,Xn);for(var c=0;c<v;c++){var y=l(t,i,a,s,Xn[c]);h[1]=st(y,h[1]),f[1]=ht(y,f[1])}h[0]=st(e,h[0]),f[0]=ht(e,f[0]),h[0]=st(o,h[0]),f[0]=ht(o,f[0]),h[1]=st(t,h[1]),f[1]=ht(t,f[1]),h[1]=st(s,h[1]),f[1]=ht(s,f[1])}function Nh(e,t,r,i,n,a,o,s){var h=ka,f=G,u=ht(st(h(e,r,n),1),0),l=ht(st(h(t,i,a),1),0),v=f(e,r,n,u),c=f(t,i,a,l);o[0]=st(e,n,v),o[1]=st(t,a,c),s[0]=ht(e,n,v),s[1]=ht(t,a,c)}function $h(e,t,r,i,n,a,o,s,h){var f=vr,u=cr,l=Math.abs(n-a);if(l%Nt<1e-4&&l>1e-4){s[0]=e-r,s[1]=t-i,h[0]=e+r,h[1]=t+i;return}if(ve[0]=Ti(n)*r+e,ve[1]=wi(n)*i+t,ce[0]=Ti(a)*r+e,ce[1]=wi(a)*i+t,f(s,ve,ce),u(h,ve,ce),n=n%Nt,n<0&&(n=n+Nt),a=a%Nt,a<0&&(a=a+Nt),n>a&&!o?a+=Nt:n<a&&o&&(n+=Nt),o){var v=a;a=n,n=v}for(var c=0;c<a;c+=Math.PI/2)c>n&&(de[0]=Ti(c)*r+e,de[1]=wi(c)*i+t,f(s,de,s),u(h,de,h))}var I={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},$t=[],Wt=[],gt=[],Rt=[],yt=[],mt=[],bi=Math.min,Ci=Math.max,Yt=Math.cos,Gt=Math.sin,St=Math.abs,Ui=Math.PI,xt=Ui*2,Li=typeof Float32Array!="undefined",Fr=[];function Si(e){var t=Math.round(e/Ui*1e8)/1e8;return t%2*Ui}function Wh(e,t){var r=Si(e[0]);r<0&&(r+=xt);var i=r-e[0],n=e[1];n+=i,!t&&n-r>=xt?n=r+xt:t&&r-n>=xt?n=r-xt:!t&&r>n?n=r+(xt-Si(r-n)):t&&r<n&&(n=r-(xt-Si(n-r))),e[0]=r,e[1]=n}var Cr=function(){function e(t){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,t&&(this._saveData=!1),this._saveData&&(this.data=[])}return e.prototype.increaseVersion=function(){this._version++},e.prototype.getVersion=function(){return this._version},e.prototype.setScale=function(t,r,i){i=i||0,i>0&&(this._ux=St(i/He/t)||0,this._uy=St(i/He/r)||0)},e.prototype.setDPR=function(t){this.dpr=t},e.prototype.setContext=function(t){this._ctx=t},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(t,r){return this._drawPendingPt(),this.addData(I.M,t,r),this._ctx&&this._ctx.moveTo(t,r),this._x0=t,this._y0=r,this._xi=t,this._yi=r,this},e.prototype.lineTo=function(t,r){var i=St(t-this._xi),n=St(r-this._yi),a=i>this._ux||n>this._uy;if(this.addData(I.L,t,r),this._ctx&&a&&this._ctx.lineTo(t,r),a)this._xi=t,this._yi=r,this._pendingPtDist=0;else{var o=i*i+n*n;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=r,this._pendingPtDist=o)}return this},e.prototype.bezierCurveTo=function(t,r,i,n,a,o){return this._drawPendingPt(),this.addData(I.C,t,r,i,n,a,o),this._ctx&&this._ctx.bezierCurveTo(t,r,i,n,a,o),this._xi=a,this._yi=o,this},e.prototype.quadraticCurveTo=function(t,r,i,n){return this._drawPendingPt(),this.addData(I.Q,t,r,i,n),this._ctx&&this._ctx.quadraticCurveTo(t,r,i,n),this._xi=i,this._yi=n,this},e.prototype.arc=function(t,r,i,n,a,o){this._drawPendingPt(),Fr[0]=n,Fr[1]=a,Wh(Fr,o),n=Fr[0],a=Fr[1];var s=a-n;return this.addData(I.A,t,r,i,i,n,s,0,o?0:1),this._ctx&&this._ctx.arc(t,r,i,n,a,o),this._xi=Yt(a)*i+t,this._yi=Gt(a)*i+r,this},e.prototype.arcTo=function(t,r,i,n,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,r,i,n,a),this},e.prototype.rect=function(t,r,i,n){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,r,i,n),this.addData(I.R,t,r,i,n),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(I.Z);var t=this._ctx,r=this._x0,i=this._y0;return t&&t.closePath(),this._xi=r,this._yi=i,this},e.prototype.fill=function(t){t&&t.fill(),this.toStatic()},e.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(t){var r=t.length;!(this.data&&this.data.length===r)&&Li&&(this.data=new Float32Array(r));for(var i=0;i<r;i++)this.data[i]=t[i];this._len=r},e.prototype.appendPath=function(t){t instanceof Array||(t=[t]);for(var r=t.length,i=0,n=this._len,a=0;a<r;a++)i+=t[a].len();Li&&this.data instanceof Float32Array&&(this.data=new Float32Array(n+i));for(var a=0;a<r;a++)for(var o=t[a].data,s=0;s<o.length;s++)this.data[n++]=o[s];this._len=n},e.prototype.addData=function(t,r,i,n,a,o,s,h,f){if(!!this._saveData){var u=this.data;this._len+arguments.length>u.length&&(this._expandData(),u=this.data);for(var l=0;l<arguments.length;l++)u[this._len++]=arguments[l]}},e.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],r=0;r<this._len;r++)t[r]=this.data[r];this.data=t}},e.prototype.toStatic=function(){if(!!this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,Li&&this._len>11&&(this.data=new Float32Array(t)))}},e.prototype.getBoundingRect=function(){gt[0]=gt[1]=yt[0]=yt[1]=Number.MAX_VALUE,Rt[0]=Rt[1]=mt[0]=mt[1]=-Number.MAX_VALUE;var t=this.data,r=0,i=0,n=0,a=0,o;for(o=0;o<this._len;){var s=t[o++],h=o===1;switch(h&&(r=t[o],i=t[o+1],n=r,a=i),s){case I.M:r=n=t[o++],i=a=t[o++],yt[0]=n,yt[1]=a,mt[0]=n,mt[1]=a;break;case I.L:Yn(r,i,t[o],t[o+1],yt,mt),r=t[o++],i=t[o++];break;case I.C:kh(r,i,t[o++],t[o++],t[o++],t[o++],t[o],t[o+1],yt,mt),r=t[o++],i=t[o++];break;case I.Q:Nh(r,i,t[o++],t[o++],t[o],t[o+1],yt,mt),r=t[o++],i=t[o++];break;case I.A:var f=t[o++],u=t[o++],l=t[o++],v=t[o++],c=t[o++],_=t[o++]+c;o+=1;var y=!t[o++];h&&(n=Yt(c)*l+f,a=Gt(c)*v+u),$h(f,u,l,v,c,_,y,yt,mt),r=Yt(_)*l+f,i=Gt(_)*v+u;break;case I.R:n=r=t[o++],a=i=t[o++];var d=t[o++],p=t[o++];Yn(n,a,n+d,a+p,yt,mt);break;case I.Z:r=n,i=a;break}vr(gt,gt,yt),cr(Rt,Rt,mt)}return o===0&&(gt[0]=gt[1]=Rt[0]=Rt[1]=0),new k(gt[0],gt[1],Rt[0]-gt[0],Rt[1]-gt[1])},e.prototype._calculateLength=function(){var t=this.data,r=this._len,i=this._ux,n=this._uy,a=0,o=0,s=0,h=0;this._pathSegLen||(this._pathSegLen=[]);for(var f=this._pathSegLen,u=0,l=0,v=0;v<r;){var c=t[v++],_=v===1;_&&(a=t[v],o=t[v+1],s=a,h=o);var y=-1;switch(c){case I.M:a=s=t[v++],o=h=t[v++];break;case I.L:{var d=t[v++],p=t[v++],g=d-a,m=p-o;(St(g)>i||St(m)>n||v===r-1)&&(y=Math.sqrt(g*g+m*m),a=d,o=p);break}case I.C:{var w=t[v++],L=t[v++],d=t[v++],p=t[v++],T=t[v++],b=t[v++];y=ks(a,o,w,L,d,p,T,b,10),a=T,o=b;break}case I.Q:{var w=t[v++],L=t[v++],d=t[v++],p=t[v++];y=Ws(a,o,w,L,d,p,10),a=d,o=p;break}case I.A:var C=t[v++],S=t[v++],R=t[v++],P=t[v++],M=t[v++],F=t[v++],D=F+M;v+=1,_&&(s=Yt(M)*R+C,h=Gt(M)*P+S),y=Ci(R,P)*bi(xt,Math.abs(F)),a=Yt(D)*R+C,o=Gt(D)*P+S;break;case I.R:{s=a=t[v++],h=o=t[v++];var B=t[v++],x=t[v++];y=B*2+x*2;break}case I.Z:{var g=s-a,m=h-o;y=Math.sqrt(g*g+m*m),a=s,o=h;break}}y>=0&&(f[l++]=y,u+=y)}return this._pathLen=u,u},e.prototype.rebuildPath=function(t,r){var i=this.data,n=this._ux,a=this._uy,o=this._len,s,h,f,u,l,v,c=r<1,_,y,d=0,p=0,g,m=0,w,L;if(c&&(this._pathSegLen||this._calculateLength(),_=this._pathSegLen,y=this._pathLen,g=r*y,!g))return;t:for(var T=0;T<o;){var b=i[T++],C=T===1;switch(C&&(f=i[T],u=i[T+1],s=f,h=u),b!==I.L&&m>0&&(t.lineTo(w,L),m=0),b){case I.M:s=f=i[T++],h=u=i[T++],t.moveTo(f,u);break;case I.L:{l=i[T++],v=i[T++];var S=St(l-f),R=St(v-u);if(S>n||R>a){if(c){var P=_[p++];if(d+P>g){var M=(g-d)/P;t.lineTo(f*(1-M)+l*M,u*(1-M)+v*M);break t}d+=P}t.lineTo(l,v),f=l,u=v,m=0}else{var F=S*S+R*R;F>m&&(w=l,L=v,m=F)}break}case I.C:{var D=i[T++],B=i[T++],x=i[T++],N=i[T++],V=i[T++],Lt=i[T++];if(c){var P=_[p++];if(d+P>g){var M=(g-d)/P;Fe(f,D,x,V,M,$t),Fe(u,B,N,Lt,M,Wt),t.bezierCurveTo($t[1],Wt[1],$t[2],Wt[2],$t[3],Wt[3]);break t}d+=P}t.bezierCurveTo(D,B,x,N,V,Lt),f=V,u=Lt;break}case I.Q:{var D=i[T++],B=i[T++],x=i[T++],N=i[T++];if(c){var P=_[p++];if(d+P>g){var M=(g-d)/P;Oe(f,D,x,M,$t),Oe(u,B,N,M,Wt),t.quadraticCurveTo($t[1],Wt[1],$t[2],Wt[2]);break t}d+=P}t.quadraticCurveTo(D,B,x,N),f=x,u=N;break}case I.A:var ct=i[T++],it=i[T++],$=i[T++],dt=i[T++],pt=i[T++],er=i[T++],Pr=i[T++],Rr=!i[T++],ee=$>dt?$:dt,ft=St($-dt)>.001,Z=pt+er,A=!1;if(c){var P=_[p++];d+P>g&&(Z=pt+er*(g-d)/P,A=!0),d+=P}if(ft&&t.ellipse?t.ellipse(ct,it,$,dt,Pr,pt,Z,Rr):t.arc(ct,it,ee,pt,Z,Rr),A)break t;C&&(s=Yt(pt)*$+ct,h=Gt(pt)*dt+it),f=Yt(Z)*$+ct,u=Gt(Z)*dt+it;break;case I.R:s=f=i[T],h=u=i[T+1],l=i[T++],v=i[T++];var E=i[T++],Mr=i[T++];if(c){var P=_[p++];if(d+P>g){var _t=g-d;t.moveTo(l,v),t.lineTo(l+bi(_t,E),v),_t-=E,_t>0&&t.lineTo(l+E,v+bi(_t,Mr)),_t-=Mr,_t>0&&t.lineTo(l+Ci(E-_t,0),v+Mr),_t-=E,_t>0&&t.lineTo(l,v+Ci(Mr-_t,0));break t}d+=P}t.rect(l,v,E,Mr);break;case I.Z:if(c){var P=_[p++];if(d+P>g){var M=(g-d)/P;t.lineTo(f*(1-M)+s*M,u*(1-M)+h*M);break t}d+=P}t.closePath(),f=s,u=h}}},e.prototype.clone=function(){var t=new e,r=this.data;return t.data=r.slice?r.slice():Array.prototype.slice.call(r),t._len=this._len,t},e.CMD=I,e.initDefaultProps=function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),e}();function sr(e,t,r,i,n,a,o){if(n===0)return!1;var s=n,h=0,f=e;if(o>t+s&&o>i+s||o<t-s&&o<i-s||a>e+s&&a>r+s||a<e-s&&a<r-s)return!1;if(e!==r)h=(t-i)/(e-r),f=(e*i-r*t)/(e-r);else return Math.abs(a-e)<=s/2;var u=h*a-o+f,l=u*u/(h*h+1);return l<=s/2*s/2}function Yh(e,t,r,i,n,a,o,s,h,f,u){if(h===0)return!1;var l=h;if(u>t+l&&u>i+l&&u>a+l&&u>s+l||u<t-l&&u<i-l&&u<a-l&&u<s-l||f>e+l&&f>r+l&&f>n+l&&f>o+l||f<e-l&&f<r-l&&f<n-l&&f<o-l)return!1;var v=zs(e,t,r,i,n,a,o,s,f,u,null);return v<=l/2}function Gh(e,t,r,i,n,a,o,s,h){if(o===0)return!1;var f=o;if(h>t+f&&h>i+f&&h>a+f||h<t-f&&h<i-f&&h<a-f||s>e+f&&s>r+f&&s>n+f||s<e-f&&s<r-f&&s<n-f)return!1;var u=$s(e,t,r,i,n,a,s,h,null);return u<=f/2}var qn=Math.PI*2;function pe(e){return e%=qn,e<0&&(e+=qn),e}var Or=Math.PI*2;function Xh(e,t,r,i,n,a,o,s,h){if(o===0)return!1;var f=o;s-=e,h-=t;var u=Math.sqrt(s*s+h*h);if(u-f>r||u+f<r)return!1;if(Math.abs(i-n)%Or<1e-4)return!0;if(a){var l=i;i=pe(n),n=pe(l)}else i=pe(i),n=pe(n);i>n&&(n+=Or);var v=Math.atan2(h,s);return v<0&&(v+=Or),v>=i&&v<=n||v+Or>=i&&v+Or<=n}function Xt(e,t,r,i,n,a){if(a>t&&a>i||a<t&&a<i||i===t)return 0;var o=(a-t)/(i-t),s=i<t?1:-1;(o===1||o===0)&&(s=i<t?.5:-.5);var h=o*(r-e)+e;return h===n?1/0:h>n?s:0}var Mt=Cr.CMD,qt=Math.PI*2,qh=1e-4;function Zh(e,t){return Math.abs(e-t)<qh}var U=[-1,-1,-1],at=[-1,-1];function Uh(){var e=at[0];at[0]=at[1],at[1]=e}function Vh(e,t,r,i,n,a,o,s,h,f){if(f>t&&f>i&&f>a&&f>s||f<t&&f<i&&f<a&&f<s)return 0;var u=Ha(t,i,a,s,f,U);if(u===0)return 0;for(var l=0,v=-1,c=void 0,_=void 0,y=0;y<u;y++){var d=U[y],p=d===0||d===1?.5:1,g=W(e,r,n,o,d);g<h||(v<0&&(v=za(t,i,a,s,at),at[1]<at[0]&&v>1&&Uh(),c=W(t,i,a,s,at[0]),v>1&&(_=W(t,i,a,s,at[1]))),v===2?d<at[0]?l+=c<t?p:-p:d<at[1]?l+=_<c?p:-p:l+=s<_?p:-p:d<at[0]?l+=c<t?p:-p:l+=s<c?p:-p)}return l}function Qh(e,t,r,i,n,a,o,s){if(s>t&&s>i&&s>a||s<t&&s<i&&s<a)return 0;var h=Ns(t,i,a,s,U);if(h===0)return 0;var f=ka(t,i,a);if(f>=0&&f<=1){for(var u=0,l=G(t,i,a,f),v=0;v<h;v++){var c=U[v]===0||U[v]===1?.5:1,_=G(e,r,n,U[v]);_<o||(U[v]<f?u+=l<t?c:-c:u+=a<l?c:-c)}return u}else{var c=U[0]===0||U[0]===1?.5:1,_=G(e,r,n,U[0]);return _<o?0:a<t?c:-c}}function Kh(e,t,r,i,n,a,o,s){if(s-=t,s>r||s<-r)return 0;var h=Math.sqrt(r*r-s*s);U[0]=-h,U[1]=h;var f=Math.abs(i-n);if(f<1e-4)return 0;if(f>=qt-1e-4){i=0,n=qt;var u=a?1:-1;return o>=U[0]+e&&o<=U[1]+e?u:0}if(i>n){var l=i;i=n,n=l}i<0&&(i+=qt,n+=qt);for(var v=0,c=0;c<2;c++){var _=U[c];if(_+e>o){var y=Math.atan2(s,_),u=a?1:-1;y<0&&(y=qt+y),(y>=i&&y<=n||y+qt>=i&&y+qt<=n)&&(y>Math.PI/2&&y<Math.PI*1.5&&(u=-u),v+=u)}}return v}function eo(e,t,r,i,n){for(var a=e.data,o=e.len(),s=0,h=0,f=0,u=0,l=0,v,c,_=0;_<o;){var y=a[_++],d=_===1;switch(y===Mt.M&&_>1&&(r||(s+=Xt(h,f,u,l,i,n))),d&&(h=a[_],f=a[_+1],u=h,l=f),y){case Mt.M:u=a[_++],l=a[_++],h=u,f=l;break;case Mt.L:if(r){if(sr(h,f,a[_],a[_+1],t,i,n))return!0}else s+=Xt(h,f,a[_],a[_+1],i,n)||0;h=a[_++],f=a[_++];break;case Mt.C:if(r){if(Yh(h,f,a[_++],a[_++],a[_++],a[_++],a[_],a[_+1],t,i,n))return!0}else s+=Vh(h,f,a[_++],a[_++],a[_++],a[_++],a[_],a[_+1],i,n)||0;h=a[_++],f=a[_++];break;case Mt.Q:if(r){if(Gh(h,f,a[_++],a[_++],a[_],a[_+1],t,i,n))return!0}else s+=Qh(h,f,a[_++],a[_++],a[_],a[_+1],i,n)||0;h=a[_++],f=a[_++];break;case Mt.A:var p=a[_++],g=a[_++],m=a[_++],w=a[_++],L=a[_++],T=a[_++];_+=1;var b=!!(1-a[_++]);v=Math.cos(L)*m+p,c=Math.sin(L)*w+g,d?(u=v,l=c):s+=Xt(h,f,v,c,i,n);var C=(i-p)*w/m+p;if(r){if(Xh(p,g,w,L,L+T,b,t,C,n))return!0}else s+=Kh(p,g,w,L,L+T,b,C,n);h=Math.cos(L+T)*m+p,f=Math.sin(L+T)*w+g;break;case Mt.R:u=h=a[_++],l=f=a[_++];var S=a[_++],R=a[_++];if(v=u+S,c=l+R,r){if(sr(u,l,v,l,t,i,n)||sr(v,l,v,c,t,i,n)||sr(v,c,u,c,t,i,n)||sr(u,c,u,l,t,i,n))return!0}else s+=Xt(v,l,v,c,i,n),s+=Xt(u,c,u,l,i,n);break;case Mt.Z:if(r){if(sr(h,f,u,l,t,i,n))return!0}else s+=Xt(h,f,u,l,i,n);h=u,f=l;break}}return!r&&!Zh(f,l)&&(s+=Xt(h,f,u,l,i,n)||0),s!==0}function Jh(e,t,r){return eo(e,0,!1,t,r)}function jh(e,t,r,i){return eo(e,t,!0,r,i)}var io=rr({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},jt),tf={style:rr({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},Ze.style)},Pi=Qr.concat(["invisible","culling","z","z2","zlevel","parent"]),rf=function(e){O(t,e);function t(r){return e.call(this,r)||this}return t.prototype.update=function(){var r=this;e.prototype.update.call(this);var i=this.style;if(i.decal){var n=this._decalEl=this._decalEl||new t;n.buildPath===t.prototype.buildPath&&(n.buildPath=function(h){r.buildPath(h,r.shape)}),n.silent=!0;var a=n.style;for(var o in i)a[o]!==i[o]&&(a[o]=i[o]);a.fill=i.fill?i.decal:null,a.decal=null,a.shadowColor=null,i.strokeFirst&&(a.stroke=null);for(var s=0;s<Pi.length;++s)n[Pi[s]]=this[Pi[s]];n.__dirty|=J}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(r){var i=rt(r);this.shape=this.getDefaultShape();var n=this.getDefaultStyle();n&&this.useStyle(n);for(var a=0;a<i.length;a++){var o=i[a],s=r[o];o==="style"?this.style?z(this.style,s):this.useStyle(s):o==="shape"?z(this.shape,s):e.prototype.attrKV.call(this,o,s)}this.style||this.useStyle({})},t.prototype.getDefaultStyle=function(){return null},t.prototype.getDefaultShape=function(){return{}},t.prototype.canBeInsideText=function(){return this.hasFill()},t.prototype.getInsideTextFill=function(){var r=this.style.fill;if(r!=="none"){if(Ee(r)){var i=Be(r,0);return i>.5?Gi:i>.2?vh:Xi}else if(r)return Xi}return Gi},t.prototype.getInsideTextStroke=function(r){var i=this.style.fill;if(Ee(i)){var n=this.__zr,a=!!(n&&n.isDarkMode()),o=Be(r,0)<Yi;if(a===o)return i}},t.prototype.buildPath=function(r,i,n){},t.prototype.pathUpdated=function(){this.__dirty&=~ur},t.prototype.getUpdatedPathProxy=function(r){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,r),this.path},t.prototype.createPathProxy=function(){this.path=new Cr(!1)},t.prototype.hasStroke=function(){var r=this.style,i=r.stroke;return!(i==null||i==="none"||!(r.lineWidth>0))},t.prototype.hasFill=function(){var r=this.style,i=r.fill;return i!=null&&i!=="none"},t.prototype.getBoundingRect=function(){var r=this._rect,i=this.style,n=!r;if(n){var a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||this.__dirty&ur)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),r=o.getBoundingRect()}if(this._rect=r,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=r.clone());if(this.__dirty||n){s.copy(r);var h=i.strokeNoScale?this.getLineScale():1,f=i.lineWidth;if(!this.hasFill()){var u=this.strokeContainThreshold;f=Math.max(f,u==null?4:u)}h>1e-10&&(s.width+=f/h,s.height+=f/h,s.x-=f/h/2,s.y-=f/h/2)}return s}return r},t.prototype.contain=function(r,i){var n=this.transformCoordToLocal(r,i),a=this.getBoundingRect(),o=this.style;if(r=n[0],i=n[1],a.contain(r,i)){var s=this.path;if(this.hasStroke()){var h=o.lineWidth,f=o.strokeNoScale?this.getLineScale():1;if(f>1e-10&&(this.hasFill()||(h=Math.max(h,this.strokeContainThreshold)),jh(s,h/f,r,i)))return!0}if(this.hasFill())return Jh(s,r,i)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=ur,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(r){return this.animate("shape",r)},t.prototype.updateDuringAnimation=function(r){r==="style"?this.dirtyStyle():r==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(r,i){r==="shape"?this.setShape(i):e.prototype.attrKV.call(this,r,i)},t.prototype.setShape=function(r,i){var n=this.shape;return n||(n=this.shape={}),typeof r=="string"?n[r]=i:z(n,r),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&ur)},t.prototype.createStyle=function(r){return Ge(io,r)},t.prototype._innerSaveToNormal=function(r){e.prototype._innerSaveToNormal.call(this,r);var i=this._normalState;r.shape&&!i.shape&&(i.shape=z({},this.shape))},t.prototype._applyStateObj=function(r,i,n,a,o,s){e.prototype._applyStateObj.call(this,r,i,n,a,o,s);var h=!(i&&a),f;if(i&&i.shape?o?a?f=i.shape:(f=z({},n.shape),z(f,i.shape)):(f=z({},a?this.shape:n.shape),z(f,i.shape)):h&&(f=n.shape),f)if(o){this.shape=z({},this.shape);for(var u={},l=rt(f),v=0;v<l.length;v++){var c=l[v];typeof f[c]=="object"?this.shape[c]=f[c]:u[c]=f[c]}this._transitionState(r,{shape:u},s)}else this.shape=f,this.dirtyShape()},t.prototype._mergeStates=function(r){for(var i=e.prototype._mergeStates.call(this,r),n,a=0;a<r.length;a++){var o=r[a];o.shape&&(n=n||{},this._mergeStyle(n,o.shape))}return n&&(i.shape=n),i},t.prototype.getAnimationStyleProps=function(){return tf},t.prototype.isZeroArea=function(){return!1},t.extend=function(r){var i=function(a){O(o,a);function o(s){var h=a.call(this,s)||this;return r.init&&r.init.call(h,s),h}return o.prototype.getDefaultStyle=function(){return Tr(r.style)},o.prototype.getDefaultShape=function(){return Tr(r.shape)},o}(t);for(var n in r)typeof r[n]=="function"&&(i.prototype[n]=r[n]);return i},t.initDefaultProps=function(){var r=t.prototype;r.type="path",r.strokeContainThreshold=5,r.segmentIgnoreThreshold=0,r.subPixelOptimize=!1,r.autoBatch=!1,r.__dirty=J|kr|ur}(),t}(re),q=rf,ef=rr({strokeFirst:!0,font:tr,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},io),no=function(e){O(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.hasStroke=function(){var r=this.style,i=r.stroke;return i!=null&&i!=="none"&&r.lineWidth>0},t.prototype.hasFill=function(){var r=this.style,i=r.fill;return i!=null&&i!=="none"},t.prototype.createStyle=function(r){return Ge(ef,r)},t.prototype.setBoundingRect=function(r){this._rect=r},t.prototype.getBoundingRect=function(){var r=this.style;if(!this._rect){var i=r.text;i!=null?i+="":i="";var n=dh(i,r.font,r.textAlign,r.textBaseline);if(n.x+=r.x||0,n.y+=r.y||0,this.hasStroke()){var a=r.lineWidth;n.x-=a/2,n.y-=a/2,n.width+=a,n.height+=a}this._rect=n}return this._rect},t.initDefaultProps=function(){var r=t.prototype;r.dirtyRectTolerance=10}(),t}(re);no.prototype.type="tspan";var Vi=no,nf=rr({x:0,y:0},jt),af={style:rr({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},Ze.style)};function of(e){return!!(e&&typeof e!="string"&&e.width&&e.height)}var ao=function(e){O(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(r){return Ge(nf,r)},t.prototype._getSize=function(r){var i=this.style,n=i[r];if(n!=null)return n;var a=of(i.image)?i.image:this.__image;if(!a)return 0;var o=r==="width"?"height":"width",s=i[o];return s==null?a[r]:a[r]/a[o]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return af},t.prototype.getBoundingRect=function(){var r=this.style;return this._rect||(this._rect=new k(r.x||0,r.y||0,this.getWidth(),this.getHeight())),this._rect},t}(re);ao.prototype.type="image";var oo=ao;function sf(e,t){var r=t.x,i=t.y,n=t.width,a=t.height,o=t.r,s,h,f,u;n<0&&(r=r+n,n=-n),a<0&&(i=i+a,a=-a),typeof o=="number"?s=h=f=u=o:o instanceof Array?o.length===1?s=h=f=u=o[0]:o.length===2?(s=f=o[0],h=u=o[1]):o.length===3?(s=o[0],h=u=o[1],f=o[2]):(s=o[0],h=o[1],f=o[2],u=o[3]):s=h=f=u=0;var l;s+h>n&&(l=s+h,s*=n/l,h*=n/l),f+u>n&&(l=f+u,f*=n/l,u*=n/l),h+f>a&&(l=h+f,h*=a/l,f*=a/l),s+u>a&&(l=s+u,s*=a/l,u*=a/l),e.moveTo(r+s,i),e.lineTo(r+n-h,i),h!==0&&e.arc(r+n-h,i+h,h,-Math.PI/2,0),e.lineTo(r+n,i+a-f),f!==0&&e.arc(r+n-f,i+a-f,f,0,Math.PI/2),e.lineTo(r+u,i+a),u!==0&&e.arc(r+u,i+a-u,u,Math.PI/2,Math.PI),e.lineTo(r,i+s),s!==0&&e.arc(r+s,i+s,s,Math.PI,Math.PI*1.5)}var pr=Math.round;function hf(e,t,r){if(!!t){var i=t.x1,n=t.x2,a=t.y1,o=t.y2;e.x1=i,e.x2=n,e.y1=a,e.y2=o;var s=r&&r.lineWidth;return s&&(pr(i*2)===pr(n*2)&&(e.x1=e.x2=_r(i,s,!0)),pr(a*2)===pr(o*2)&&(e.y1=e.y2=_r(a,s,!0))),e}}function ff(e,t,r){if(!!t){var i=t.x,n=t.y,a=t.width,o=t.height;e.x=i,e.y=n,e.width=a,e.height=o;var s=r&&r.lineWidth;return s&&(e.x=_r(i,s,!0),e.y=_r(n,s,!0),e.width=Math.max(_r(i+a,s,!1)-e.x,a===0?0:1),e.height=Math.max(_r(n+o,s,!1)-e.y,o===0?0:1)),e}}function _r(e,t,r){if(!t)return e;var i=pr(e*2);return(i+pr(t))%2===0?i/2:(i+(r?1:-1))/2}var uf=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),lf={},so=function(e){O(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new uf},t.prototype.buildPath=function(r,i){var n,a,o,s;if(this.subPixelOptimize){var h=ff(lf,i,this.style);n=h.x,a=h.y,o=h.width,s=h.height,h.r=i.r,i=h}else n=i.x,a=i.y,o=i.width,s=i.height;i.r?sf(r,i):r.rect(n,a,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(q);so.prototype.type="rect";var vf=so,Zn={fill:"#000"},Un=2,cf={style:rr({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},Ze.style)},ho=function(e){O(t,e);function t(r){var i=e.call(this)||this;return i.type="text",i._children=[],i._defaultStyle=Zn,i.attr(r),i}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var r=0;r<this._children.length;r++){var i=this._children[r];i.zlevel=this.zlevel,i.z=this.z,i.z2=this.z2,i.culling=this.culling,i.cursor=this.cursor,i.invisible=this.invisible}},t.prototype.updateTransform=function(){var r=this.innerTransformable;r?(r.updateTransform(),r.transform&&(this.transform=r.transform)):e.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(r){var i=this.innerTransformable;return i?i.getLocalTransform(r):e.prototype.getLocalTransform.call(this,r)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),e.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){this._childCursor=0,yf(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(r){e.prototype.addSelfToZr.call(this,r);for(var i=0;i<this._children.length;i++)this._children[i].__zr=r},t.prototype.removeSelfFromZr=function(r){e.prototype.removeSelfFromZr.call(this,r);for(var i=0;i<this._children.length;i++)this._children[i].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var r=new k(0,0,0,0),i=this._children,n=[],a=null,o=0;o<i.length;o++){var s=i[o],h=s.getBoundingRect(),f=s.getLocalTransform(n);f?(r.copy(h),r.applyTransform(f),a=a||r.clone(),a.union(r)):(a=a||h.clone(),a.union(h))}this._rect=a||r}return this._rect},t.prototype.setDefaultTextStyle=function(r){this._defaultStyle=r||Zn},t.prototype.setTextContent=function(r){},t.prototype._mergeStyle=function(r,i){if(!i)return r;var n=i.rich,a=r.rich||n&&{};return z(r,i),n&&a?(this._mergeRich(a,n),r.rich=a):a&&(r.rich=a),r},t.prototype._mergeRich=function(r,i){for(var n=rt(i),a=0;a<n.length;a++){var o=n[a];r[o]=r[o]||{},z(r[o],i[o])}},t.prototype.getAnimationStyleProps=function(){return cf},t.prototype._getOrCreateChild=function(r){var i=this._children[this._childCursor];return(!i||!(i instanceof r))&&(i=new r),this._children[this._childCursor++]=i,i.__zr=this.__zr,i.parent=this,i},t.prototype._updatePlainTexts=function(){var r=this.style,i=r.font||tr,n=r.padding,a=ra(r),o=Dh(a,r),s=Ri(r),h=!!r.backgroundColor,f=o.outerHeight,u=o.outerWidth,l=o.contentWidth,v=o.lines,c=o.lineHeight,_=this._defaultStyle;this.isTruncated=!!o.isTruncated;var y=r.x||0,d=r.y||0,p=r.align||_.align||"left",g=r.verticalAlign||_.verticalAlign||"top",m=y,w=lr(d,o.contentHeight,g);if(s||n){var L=$r(y,u,p),T=lr(d,f,g);s&&this._renderBackground(r,r,L,T,u,f)}w+=c/2,n&&(m=ta(y,p,n),g==="top"?w+=n[0]:g==="bottom"&&(w-=n[2]));for(var b=0,C=!1,S=jn("fill"in r?r.fill:(C=!0,_.fill)),R=Jn("stroke"in r?r.stroke:!h&&(!_.autoStroke||C)?(b=Un,_.stroke):null),P=r.textShadowBlur>0,M=r.width!=null&&(r.overflow==="truncate"||r.overflow==="break"||r.overflow==="breakAll"),F=o.calculatedLineHeight,D=0;D<v.length;D++){var B=this._getOrCreateChild(Vi),x=B.createStyle();B.useStyle(x),x.text=v[D],x.x=m,x.y=w,p&&(x.textAlign=p),x.textBaseline="middle",x.opacity=r.opacity,x.strokeFirst=!0,P&&(x.shadowBlur=r.textShadowBlur||0,x.shadowColor=r.textShadowColor||"transparent",x.shadowOffsetX=r.textShadowOffsetX||0,x.shadowOffsetY=r.textShadowOffsetY||0),x.stroke=R,x.fill=S,R&&(x.lineWidth=r.lineWidth||b,x.lineDash=r.lineDash,x.lineDashOffset=r.lineDashOffset||0),x.font=i,Qn(x,r),w+=c,M&&B.setBoundingRect(new k($r(x.x,l,x.textAlign),lr(x.y,F,x.textBaseline),l,F))}},t.prototype._updateRichTexts=function(){var r=this.style,i=ra(r),n=Eh(i,r),a=n.width,o=n.outerWidth,s=n.outerHeight,h=r.padding,f=r.x||0,u=r.y||0,l=this._defaultStyle,v=r.align||l.align,c=r.verticalAlign||l.verticalAlign;this.isTruncated=!!n.isTruncated;var _=$r(f,o,v),y=lr(u,s,c),d=_,p=y;h&&(d+=h[3],p+=h[0]);var g=d+a;Ri(r)&&this._renderBackground(r,r,_,y,o,s);for(var m=!!r.backgroundColor,w=0;w<n.lines.length;w++){for(var L=n.lines[w],T=L.tokens,b=T.length,C=L.lineHeight,S=L.width,R=0,P=d,M=g,F=b-1,D=void 0;R<b&&(D=T[R],!D.align||D.align==="left");)this._placeToken(D,r,C,p,P,"left",m),S-=D.width,P+=D.width,R++;for(;F>=0&&(D=T[F],D.align==="right");)this._placeToken(D,r,C,p,M,"right",m),S-=D.width,M-=D.width,F--;for(P+=(a-(P-d)-(g-M)-S)/2;R<=F;)D=T[R],this._placeToken(D,r,C,p,P+D.width/2,"center",m),P+=D.width,R++;p+=C}},t.prototype._placeToken=function(r,i,n,a,o,s,h){var f=i.rich[r.styleName]||{};f.text=r.text;var u=r.verticalAlign,l=a+n/2;u==="top"?l=a+r.height/2:u==="bottom"&&(l=a+n-r.height/2);var v=!r.isLineHolder&&Ri(f);v&&this._renderBackground(f,i,s==="right"?o-r.width:s==="center"?o-r.width/2:o,l-r.height/2,r.width,r.height);var c=!!f.backgroundColor,_=r.textPadding;_&&(o=ta(o,s,_),l-=r.height/2-_[0]-r.innerHeight/2);var y=this._getOrCreateChild(Vi),d=y.createStyle();y.useStyle(d);var p=this._defaultStyle,g=!1,m=0,w=jn("fill"in f?f.fill:"fill"in i?i.fill:(g=!0,p.fill)),L=Jn("stroke"in f?f.stroke:"stroke"in i?i.stroke:!c&&!h&&(!p.autoStroke||g)?(m=Un,p.stroke):null),T=f.textShadowBlur>0||i.textShadowBlur>0;d.text=r.text,d.x=o,d.y=l,T&&(d.shadowBlur=f.textShadowBlur||i.textShadowBlur||0,d.shadowColor=f.textShadowColor||i.textShadowColor||"transparent",d.shadowOffsetX=f.textShadowOffsetX||i.textShadowOffsetX||0,d.shadowOffsetY=f.textShadowOffsetY||i.textShadowOffsetY||0),d.textAlign=s,d.textBaseline="middle",d.font=r.font||tr,d.opacity=Se(f.opacity,i.opacity,1),Qn(d,f),L&&(d.lineWidth=Se(f.lineWidth,i.lineWidth,m),d.lineDash=j(f.lineDash,i.lineDash),d.lineDashOffset=i.lineDashOffset||0,d.stroke=L),w&&(d.fill=w);var b=r.contentWidth,C=r.contentHeight;y.setBoundingRect(new k($r(d.x,b,d.textAlign),lr(d.y,C,d.textBaseline),b,C))},t.prototype._renderBackground=function(r,i,n,a,o,s){var h=r.backgroundColor,f=r.borderWidth,u=r.borderColor,l=h&&h.image,v=h&&!l,c=r.borderRadius,_=this,y,d;if(v||r.lineHeight||f&&u){y=this._getOrCreateChild(vf),y.useStyle(y.createStyle()),y.style.fill=null;var p=y.shape;p.x=n,p.y=a,p.width=o,p.height=s,p.r=c,y.dirtyShape()}if(v){var g=y.style;g.fill=h||null,g.fillOpacity=j(r.fillOpacity,1)}else if(l){d=this._getOrCreateChild(oo),d.onload=function(){_.dirtyStyle()};var m=d.style;m.image=h.image,m.x=n,m.y=a,m.width=o,m.height=s}if(f&&u){var g=y.style;g.lineWidth=f,g.stroke=u,g.strokeOpacity=j(r.strokeOpacity,1),g.lineDash=r.borderDash,g.lineDashOffset=r.borderDashOffset||0,y.strokeContainThreshold=0,y.hasFill()&&y.hasStroke()&&(g.strokeFirst=!0,g.lineWidth*=2)}var w=(y||d).style;w.shadowBlur=r.shadowBlur||0,w.shadowColor=r.shadowColor||"transparent",w.shadowOffsetX=r.shadowOffsetX||0,w.shadowOffsetY=r.shadowOffsetY||0,w.opacity=Se(r.opacity,i.opacity,1)},t.makeFont=function(r){var i="";return gf(r)&&(i=[r.fontStyle,r.fontWeight,_f(r.fontSize),r.fontFamily||"sans-serif"].join(" ")),i&&zr(i)||r.textFont||r.font},t}(re),df={left:!0,right:1,center:1},pf={top:1,bottom:1,middle:1},Vn=["fontStyle","fontWeight","fontSize","fontFamily"];function _f(e){return typeof e=="string"&&(e.indexOf("px")!==-1||e.indexOf("rem")!==-1||e.indexOf("em")!==-1)?e:isNaN(+e)?ji+"px":e+"px"}function Qn(e,t){for(var r=0;r<Vn.length;r++){var i=Vn[r],n=t[i];n!=null&&(e[i]=n)}}function gf(e){return e.fontSize!=null||e.fontFamily||e.fontWeight}function yf(e){return Kn(e),tt(e.rich,Kn),e}function Kn(e){if(e){e.font=ho.makeFont(e);var t=e.align;t==="middle"&&(t="center"),e.align=t==null||df[t]?t:"left";var r=e.verticalAlign;r==="center"&&(r="middle"),e.verticalAlign=r==null||pf[r]?r:"top";var i=e.padding;i&&(e.padding=Xo(e.padding))}}function Jn(e,t){return e==null||t<=0||e==="transparent"||e==="none"?null:e.image||e.colorStops?"#000":e}function jn(e){return e==null||e==="none"?null:e.image||e.colorStops?"#000":e}function ta(e,t,r){return t==="right"?e-r[1]:t==="center"?e+r[3]/2-r[1]/2:e+r[3]}function ra(e){var t=e.text;return t!=null&&(t+=""),t}function Ri(e){return!!(e.backgroundColor||e.lineHeight||e.borderWidth&&e.borderColor)}var Eu=ho,hr=Cr.CMD,mf=[[],[],[]],ea=Math.sqrt,wf=Math.atan2;function Tf(e,t){if(!!t){var r=e.data,i=e.len(),n,a,o,s,h,f,u=hr.M,l=hr.C,v=hr.L,c=hr.R,_=hr.A,y=hr.Q;for(o=0,s=0;o<i;){switch(n=r[o++],s=o,a=0,n){case u:a=1;break;case v:a=1;break;case l:a=3;break;case y:a=2;break;case _:var d=t[4],p=t[5],g=ea(t[0]*t[0]+t[1]*t[1]),m=ea(t[2]*t[2]+t[3]*t[3]),w=wf(-t[1]/m,t[0]/g);r[o]*=g,r[o++]+=d,r[o]*=m,r[o++]+=p,r[o++]*=g,r[o++]*=m,r[o++]+=w,r[o++]+=w,o+=2,s=o;break;case c:f[0]=r[o++],f[1]=r[o++],Gr(f,f,t),r[s++]=f[0],r[s++]=f[1],f[0]+=r[o++],f[1]+=r[o++],Gr(f,f,t),r[s++]=f[0],r[s++]=f[1]}for(h=0;h<a;h++){var L=mf[h];L[0]=r[o++],L[1]=r[o++],Gr(L,L,t),r[s++]=L[0],r[s++]=L[1]}}e.increaseVersion()}}var Mi=Math.sqrt,_e=Math.sin,ge=Math.cos,Br=Math.PI;function ia(e){return Math.sqrt(e[0]*e[0]+e[1]*e[1])}function Qi(e,t){return(e[0]*t[0]+e[1]*t[1])/(ia(e)*ia(t))}function na(e,t){return(e[0]*t[1]<e[1]*t[0]?-1:1)*Math.acos(Qi(e,t))}function aa(e,t,r,i,n,a,o,s,h,f,u){var l=h*(Br/180),v=ge(l)*(e-r)/2+_e(l)*(t-i)/2,c=-1*_e(l)*(e-r)/2+ge(l)*(t-i)/2,_=v*v/(o*o)+c*c/(s*s);_>1&&(o*=Mi(_),s*=Mi(_));var y=(n===a?-1:1)*Mi((o*o*(s*s)-o*o*(c*c)-s*s*(v*v))/(o*o*(c*c)+s*s*(v*v)))||0,d=y*o*c/s,p=y*-s*v/o,g=(e+r)/2+ge(l)*d-_e(l)*p,m=(t+i)/2+_e(l)*d+ge(l)*p,w=na([1,0],[(v-d)/o,(c-p)/s]),L=[(v-d)/o,(c-p)/s],T=[(-1*v-d)/o,(-1*c-p)/s],b=na(L,T);if(Qi(L,T)<=-1&&(b=Br),Qi(L,T)>=1&&(b=0),b<0){var C=Math.round(b/Br*1e6)/1e6;b=Br*2+C%2*Br}u.addData(f,g,m,o,s,w,b,l,a)}var bf=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,Cf=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Lf(e){var t=new Cr;if(!e)return t;var r=0,i=0,n=r,a=i,o,s=Cr.CMD,h=e.match(bf);if(!h)return t;for(var f=0;f<h.length;f++){for(var u=h[f],l=u.charAt(0),v=void 0,c=u.match(Cf)||[],_=c.length,y=0;y<_;y++)c[y]=parseFloat(c[y]);for(var d=0;d<_;){var p=void 0,g=void 0,m=void 0,w=void 0,L=void 0,T=void 0,b=void 0,C=r,S=i,R=void 0,P=void 0;switch(l){case"l":r+=c[d++],i+=c[d++],v=s.L,t.addData(v,r,i);break;case"L":r=c[d++],i=c[d++],v=s.L,t.addData(v,r,i);break;case"m":r+=c[d++],i+=c[d++],v=s.M,t.addData(v,r,i),n=r,a=i,l="l";break;case"M":r=c[d++],i=c[d++],v=s.M,t.addData(v,r,i),n=r,a=i,l="L";break;case"h":r+=c[d++],v=s.L,t.addData(v,r,i);break;case"H":r=c[d++],v=s.L,t.addData(v,r,i);break;case"v":i+=c[d++],v=s.L,t.addData(v,r,i);break;case"V":i=c[d++],v=s.L,t.addData(v,r,i);break;case"C":v=s.C,t.addData(v,c[d++],c[d++],c[d++],c[d++],c[d++],c[d++]),r=c[d-2],i=c[d-1];break;case"c":v=s.C,t.addData(v,c[d++]+r,c[d++]+i,c[d++]+r,c[d++]+i,c[d++]+r,c[d++]+i),r+=c[d-2],i+=c[d-1];break;case"S":p=r,g=i,R=t.len(),P=t.data,o===s.C&&(p+=r-P[R-4],g+=i-P[R-3]),v=s.C,C=c[d++],S=c[d++],r=c[d++],i=c[d++],t.addData(v,p,g,C,S,r,i);break;case"s":p=r,g=i,R=t.len(),P=t.data,o===s.C&&(p+=r-P[R-4],g+=i-P[R-3]),v=s.C,C=r+c[d++],S=i+c[d++],r+=c[d++],i+=c[d++],t.addData(v,p,g,C,S,r,i);break;case"Q":C=c[d++],S=c[d++],r=c[d++],i=c[d++],v=s.Q,t.addData(v,C,S,r,i);break;case"q":C=c[d++]+r,S=c[d++]+i,r+=c[d++],i+=c[d++],v=s.Q,t.addData(v,C,S,r,i);break;case"T":p=r,g=i,R=t.len(),P=t.data,o===s.Q&&(p+=r-P[R-4],g+=i-P[R-3]),r=c[d++],i=c[d++],v=s.Q,t.addData(v,p,g,r,i);break;case"t":p=r,g=i,R=t.len(),P=t.data,o===s.Q&&(p+=r-P[R-4],g+=i-P[R-3]),r+=c[d++],i+=c[d++],v=s.Q,t.addData(v,p,g,r,i);break;case"A":m=c[d++],w=c[d++],L=c[d++],T=c[d++],b=c[d++],C=r,S=i,r=c[d++],i=c[d++],v=s.A,aa(C,S,r,i,T,b,m,w,L,v,t);break;case"a":m=c[d++],w=c[d++],L=c[d++],T=c[d++],b=c[d++],C=r,S=i,r+=c[d++],i+=c[d++],v=s.A,aa(C,S,r,i,T,b,m,w,L,v,t);break}}(l==="z"||l==="Z")&&(v=s.Z,t.addData(v),r=n,i=a),o=v}return t.toStatic(),t}var fo=function(e){O(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.applyTransform=function(r){},t}(q);function uo(e){return e.setData!=null}function lo(e,t){var r=Lf(e),i=z({},t);return i.buildPath=function(n){if(uo(n)){n.setData(r.data);var a=n.getContext();a&&n.rebuildPath(a,1)}else{var a=n;r.rebuildPath(a,1)}},i.applyTransform=function(n){Tf(r,n),this.dirtyShape()},i}function Iu(e,t){return new fo(lo(e,t))}function Fu(e,t){var r=lo(e,t),i=function(n){O(a,n);function a(o){var s=n.call(this,o)||this;return s.applyTransform=r.applyTransform,s.buildPath=r.buildPath,s}return a}(fo);return i}function Ou(e,t){for(var r=[],i=e.length,n=0;n<i;n++){var a=e[n];r.push(a.getUpdatedPathProxy(!0))}var o=new q(t);return o.createPathProxy(),o.buildPath=function(s){if(uo(s)){s.appendPath(r);var h=s.getContext();h&&s.rebuildPath(h,1)}},o}var Sf=function(){function e(){this.cx=0,this.cy=0,this.r=0}return e}(),vo=function(e){O(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new Sf},t.prototype.buildPath=function(r,i){r.moveTo(i.cx+i.r,i.cy),r.arc(i.cx,i.cy,i.r,0,Math.PI*2)},t}(q);vo.prototype.type="circle";var Bu=vo,Pf=function(){function e(){this.cx=0,this.cy=0,this.rx=0,this.ry=0}return e}(),co=function(e){O(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new Pf},t.prototype.buildPath=function(r,i){var n=.5522848,a=i.cx,o=i.cy,s=i.rx,h=i.ry,f=s*n,u=h*n;r.moveTo(a-s,o),r.bezierCurveTo(a-s,o-u,a-f,o-h,a,o-h),r.bezierCurveTo(a+f,o-h,a+s,o-u,a+s,o),r.bezierCurveTo(a+s,o+u,a+f,o+h,a,o+h),r.bezierCurveTo(a-f,o+h,a-s,o+u,a-s,o),r.closePath()},t}(q);co.prototype.type="ellipse";var Hu=co,po=Math.PI,Di=po*2,Zt=Math.sin,fr=Math.cos,Rf=Math.acos,Y=Math.atan2,oa=Math.abs,Ur=Math.sqrt,Wr=Math.max,wt=Math.min,ut=1e-4;function Mf(e,t,r,i,n,a,o,s){var h=r-e,f=i-t,u=o-n,l=s-a,v=l*h-u*f;if(!(v*v<ut))return v=(u*(t-a)-l*(e-n))/v,[e+v*h,t+v*f]}function ye(e,t,r,i,n,a,o){var s=e-r,h=t-i,f=(o?a:-a)/Ur(s*s+h*h),u=f*h,l=-f*s,v=e+u,c=t+l,_=r+u,y=i+l,d=(v+_)/2,p=(c+y)/2,g=_-v,m=y-c,w=g*g+m*m,L=n-a,T=v*y-_*c,b=(m<0?-1:1)*Ur(Wr(0,L*L*w-T*T)),C=(T*m-g*b)/w,S=(-T*g-m*b)/w,R=(T*m+g*b)/w,P=(-T*g+m*b)/w,M=C-d,F=S-p,D=R-d,B=P-p;return M*M+F*F>D*D+B*B&&(C=R,S=P),{cx:C,cy:S,x0:-u,y0:-l,x1:C*(n/L-1),y1:S*(n/L-1)}}function Df(e){var t;if(Vr(e)){var r=e.length;if(!r)return e;r===1?t=[e[0],e[0],0,0]:r===2?t=[e[0],e[0],e[1],e[1]]:r===3?t=e.concat(e[2]):t=e}else t=[e,e,e,e];return t}function xf(e,t){var r,i=Wr(t.r,0),n=Wr(t.r0||0,0),a=i>0,o=n>0;if(!(!a&&!o)){if(a||(i=n,n=0),n>i){var s=i;i=n,n=s}var h=t.startAngle,f=t.endAngle;if(!(isNaN(h)||isNaN(f))){var u=t.cx,l=t.cy,v=!!t.clockwise,c=oa(f-h),_=c>Di&&c%Di;if(_>ut&&(c=_),!(i>ut))e.moveTo(u,l);else if(c>Di-ut)e.moveTo(u+i*fr(h),l+i*Zt(h)),e.arc(u,l,i,h,f,!v),n>ut&&(e.moveTo(u+n*fr(f),l+n*Zt(f)),e.arc(u,l,n,f,h,v));else{var y=void 0,d=void 0,p=void 0,g=void 0,m=void 0,w=void 0,L=void 0,T=void 0,b=void 0,C=void 0,S=void 0,R=void 0,P=void 0,M=void 0,F=void 0,D=void 0,B=i*fr(h),x=i*Zt(h),N=n*fr(f),V=n*Zt(f),Lt=c>ut;if(Lt){var ct=t.cornerRadius;ct&&(r=Df(ct),y=r[0],d=r[1],p=r[2],g=r[3]);var it=oa(i-n)/2;if(m=wt(it,p),w=wt(it,g),L=wt(it,y),T=wt(it,d),S=b=Wr(m,w),R=C=Wr(L,T),(b>ut||C>ut)&&(P=i*fr(f),M=i*Zt(f),F=n*fr(h),D=n*Zt(h),c<po)){var $=Mf(B,x,F,D,P,M,N,V);if($){var dt=B-$[0],pt=x-$[1],er=P-$[0],Pr=M-$[1],Rr=1/Zt(Rf((dt*er+pt*Pr)/(Ur(dt*dt+pt*pt)*Ur(er*er+Pr*Pr)))/2),ee=Ur($[0]*$[0]+$[1]*$[1]);S=wt(b,(i-ee)/(Rr+1)),R=wt(C,(n-ee)/(Rr-1))}}}if(!Lt)e.moveTo(u+B,l+x);else if(S>ut){var ft=wt(p,S),Z=wt(g,S),A=ye(F,D,B,x,i,ft,v),E=ye(P,M,N,V,i,Z,v);e.moveTo(u+A.cx+A.x0,l+A.cy+A.y0),S<b&&ft===Z?e.arc(u+A.cx,l+A.cy,S,Y(A.y0,A.x0),Y(E.y0,E.x0),!v):(ft>0&&e.arc(u+A.cx,l+A.cy,ft,Y(A.y0,A.x0),Y(A.y1,A.x1),!v),e.arc(u,l,i,Y(A.cy+A.y1,A.cx+A.x1),Y(E.cy+E.y1,E.cx+E.x1),!v),Z>0&&e.arc(u+E.cx,l+E.cy,Z,Y(E.y1,E.x1),Y(E.y0,E.x0),!v))}else e.moveTo(u+B,l+x),e.arc(u,l,i,h,f,!v);if(!(n>ut)||!Lt)e.lineTo(u+N,l+V);else if(R>ut){var ft=wt(y,R),Z=wt(d,R),A=ye(N,V,P,M,n,-Z,v),E=ye(B,x,F,D,n,-ft,v);e.lineTo(u+A.cx+A.x0,l+A.cy+A.y0),R<C&&ft===Z?e.arc(u+A.cx,l+A.cy,R,Y(A.y0,A.x0),Y(E.y0,E.x0),!v):(Z>0&&e.arc(u+A.cx,l+A.cy,Z,Y(A.y0,A.x0),Y(A.y1,A.x1),!v),e.arc(u,l,n,Y(A.cy+A.y1,A.cx+A.x1),Y(E.cy+E.y1,E.cx+E.x1),v),ft>0&&e.arc(u+E.cx,l+E.cy,ft,Y(E.y1,E.x1),Y(E.y0,E.x0),!v))}else e.lineTo(u+N,l+V),e.arc(u,l,n,f,h,v)}e.closePath()}}}var Af=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0,this.cornerRadius=0}return e}(),_o=function(e){O(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new Af},t.prototype.buildPath=function(r,i){xf(r,i)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(q);_o.prototype.type="sector";var zu=_o,Ef=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),go=function(e){O(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new Ef},t.prototype.buildPath=function(r,i){var n=i.cx,a=i.cy,o=Math.PI*2;r.moveTo(n+i.r,a),r.arc(n,a,i.r,0,o,!1),r.moveTo(n+i.r0,a),r.arc(n,a,i.r0,0,o,!0)},t}(q);go.prototype.type="ring";var ku=go;function If(e,t,r,i){var n=[],a=[],o=[],s=[],h,f,u,l;if(i){u=[1/0,1/0],l=[-1/0,-1/0];for(var v=0,c=e.length;v<c;v++)vr(u,u,e[v]),cr(l,l,e[v]);vr(u,u,i[0]),cr(l,l,i[1])}for(var v=0,c=e.length;v<c;v++){var _=e[v];if(r)h=e[v?v-1:c-1],f=e[(v+1)%c];else if(v===0||v===c-1){n.push(Qo(e[v]));continue}else h=e[v-1],f=e[v+1];Ko(a,f,h),Ue(a,a,t);var y=Ei(_,h),d=Ei(_,f),p=y+d;p!==0&&(y/=p,d/=p),Ue(o,a,-y),Ue(s,a,d);var g=ln([],_,o),m=ln([],_,s);i&&(cr(g,g,u),vr(g,g,l),cr(m,m,u),vr(m,m,l)),n.push(g),n.push(m)}return r&&n.push(n.shift()),n}function yo(e,t,r){var i=t.smooth,n=t.points;if(n&&n.length>=2){if(i){var a=If(n,i,r,t.smoothConstraint);e.moveTo(n[0][0],n[0][1]);for(var o=n.length,s=0;s<(r?o:o-1);s++){var h=a[s*2],f=a[s*2+1],u=n[(s+1)%o];e.bezierCurveTo(h[0],h[1],f[0],f[1],u[0],u[1])}}else{e.moveTo(n[0][0],n[0][1]);for(var s=1,l=n.length;s<l;s++)e.lineTo(n[s][0],n[s][1])}r&&e.closePath()}}var Ff=function(){function e(){this.points=null,this.smooth=0,this.smoothConstraint=null}return e}(),mo=function(e){O(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultShape=function(){return new Ff},t.prototype.buildPath=function(r,i){yo(r,i,!0)},t}(q);mo.prototype.type="polygon";var Nu=mo,Of=function(){function e(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return e}(),wo=function(e){O(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Of},t.prototype.buildPath=function(r,i){yo(r,i,!1)},t}(q);wo.prototype.type="polyline";var $u=wo,Bf={},Hf=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return e}(),To=function(e){O(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Hf},t.prototype.buildPath=function(r,i){var n,a,o,s;if(this.subPixelOptimize){var h=hf(Bf,i,this.style);n=h.x1,a=h.y1,o=h.x2,s=h.y2}else n=i.x1,a=i.y1,o=i.x2,s=i.y2;var f=i.percent;f!==0&&(r.moveTo(n,a),f<1&&(o=n*(1-f)+o*f,s=a*(1-f)+s*f),r.lineTo(o,s))},t.prototype.pointAt=function(r){var i=this.shape;return[i.x1*(1-r)+i.x2*r,i.y1*(1-r)+i.y2*r]},t}(q);To.prototype.type="line";var Wu=To,Q=[],zf=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return e}();function sa(e,t,r){var i=e.cpx2,n=e.cpy2;return i!=null||n!=null?[(r?Cn:W)(e.x1,e.cpx1,e.cpx2,e.x2,t),(r?Cn:W)(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(r?Ln:G)(e.x1,e.cpx1,e.x2,t),(r?Ln:G)(e.y1,e.cpy1,e.y2,t)]}var bo=function(e){O(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new zf},t.prototype.buildPath=function(r,i){var n=i.x1,a=i.y1,o=i.x2,s=i.y2,h=i.cpx1,f=i.cpy1,u=i.cpx2,l=i.cpy2,v=i.percent;v!==0&&(r.moveTo(n,a),u==null||l==null?(v<1&&(Oe(n,h,o,v,Q),h=Q[1],o=Q[2],Oe(a,f,s,v,Q),f=Q[1],s=Q[2]),r.quadraticCurveTo(h,f,o,s)):(v<1&&(Fe(n,h,u,o,v,Q),h=Q[1],u=Q[2],o=Q[3],Fe(a,f,l,s,v,Q),f=Q[1],l=Q[2],s=Q[3]),r.bezierCurveTo(h,f,u,l,o,s)))},t.prototype.pointAt=function(r){return sa(this.shape,r,!1)},t.prototype.tangentAt=function(r){var i=sa(this.shape,r,!0);return ts(i,i)},t}(q);bo.prototype.type="bezier-curve";var Yu=bo,kf=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return e}(),Co=function(e){O(t,e);function t(r){return e.call(this,r)||this}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new kf},t.prototype.buildPath=function(r,i){var n=i.cx,a=i.cy,o=Math.max(i.r,0),s=i.startAngle,h=i.endAngle,f=i.clockwise,u=Math.cos(s),l=Math.sin(s);r.moveTo(u*o+n,l*o+a),r.arc(n,a,o,s,h,!f)},t}(q);Co.prototype.type="arc";var Gu=Co,Nf=function(e){O(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.type="compound",r}return t.prototype._updatePathDirty=function(){for(var r=this.shape.paths,i=this.shapeChanged(),n=0;n<r.length;n++)i=i||r[n].shapeChanged();i&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var r=this.shape.paths||[],i=this.getGlobalScale(),n=0;n<r.length;n++)r[n].path||r[n].createPathProxy(),r[n].path.setScale(i[0],i[1],r[n].segmentIgnoreThreshold)},t.prototype.buildPath=function(r,i){for(var n=i.paths||[],a=0;a<n.length;a++)n[a].buildPath(r,n[a].shape,!0)},t.prototype.afterBrush=function(){for(var r=this.shape.paths||[],i=0;i<r.length;i++)r[i].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),q.prototype.getBoundingRect.call(this)},t}(q),Xu=Nf,$f=function(){function e(t){this.colorStops=t||[]}return e.prototype.addColorStop=function(t,r){this.colorStops.push({offset:t,color:r})},e}(),Lo=$f,Wf=function(e){O(t,e);function t(r,i,n,a,o,s){var h=e.call(this,o)||this;return h.x=r==null?0:r,h.y=i==null?0:i,h.x2=n==null?1:n,h.y2=a==null?0:a,h.type="linear",h.global=s||!1,h}return t}(Lo),qu=Wf,Yf=function(e){O(t,e);function t(r,i,n,a,o){var s=e.call(this,a)||this;return s.x=r==null?.5:r,s.y=i==null?.5:i,s.r=n==null?.5:n,s.type="radial",s.global=o||!1,s}return t}(Lo),Zu=Yf,Ut=[0,0],Vt=[0,0],me=new H,we=new H,Gf=function(){function e(t,r){this._corners=[],this._axes=[],this._origin=[0,0];for(var i=0;i<4;i++)this._corners[i]=new H;for(var i=0;i<2;i++)this._axes[i]=new H;t&&this.fromBoundingRect(t,r)}return e.prototype.fromBoundingRect=function(t,r){var i=this._corners,n=this._axes,a=t.x,o=t.y,s=a+t.width,h=o+t.height;if(i[0].set(a,o),i[1].set(s,o),i[2].set(s,h),i[3].set(a,h),r)for(var f=0;f<4;f++)i[f].transform(r);H.sub(n[0],i[1],i[0]),H.sub(n[1],i[3],i[0]),n[0].normalize(),n[1].normalize();for(var f=0;f<2;f++)this._origin[f]=n[f].dot(i[0])},e.prototype.intersect=function(t,r){var i=!0,n=!r;return me.set(1/0,1/0),we.set(0,0),!this._intersectCheckOneSide(this,t,me,we,n,1)&&(i=!1,n)||!this._intersectCheckOneSide(t,this,me,we,n,-1)&&(i=!1,n)||n||H.copy(r,i?me:we),i},e.prototype._intersectCheckOneSide=function(t,r,i,n,a,o){for(var s=!0,h=0;h<2;h++){var f=this._axes[h];if(this._getProjMinMaxOnAxis(h,t._corners,Ut),this._getProjMinMaxOnAxis(h,r._corners,Vt),Ut[1]<Vt[0]||Ut[0]>Vt[1]){if(s=!1,a)return s;var u=Math.abs(Vt[0]-Ut[1]),l=Math.abs(Ut[0]-Vt[1]);Math.min(u,l)>n.len()&&(u<l?H.scale(n,f,-u*o):H.scale(n,f,l*o))}else if(i){var u=Math.abs(Vt[0]-Ut[1]),l=Math.abs(Ut[0]-Vt[1]);Math.min(u,l)<i.len()&&(u<l?H.scale(i,f,u*o):H.scale(i,f,-l*o))}}return s},e.prototype._getProjMinMaxOnAxis=function(t,r,i){for(var n=this._axes[t],a=this._origin,o=r[0].dot(n)+a[t],s=o,h=o,f=1;f<r.length;f++){var u=r[f].dot(n)+a[t];s=Math.min(u,s),h=Math.max(u,h)}i[0]=s,i[1]=h},e}(),Uu=Gf,Xf=[],qf=function(e){O(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.notClear=!0,r.incremental=!0,r._displayables=[],r._temporaryDisplayables=[],r._cursor=0,r}return t.prototype.traverse=function(r,i){r.call(i,this)},t.prototype.useStyle=function(){this.style={}},t.prototype.getCursor=function(){return this._cursor},t.prototype.innerAfterBrush=function(){this._cursor=this._displayables.length},t.prototype.clearDisplaybles=function(){this._displayables=[],this._temporaryDisplayables=[],this._cursor=0,this.markRedraw(),this.notClear=!1},t.prototype.clearTemporalDisplayables=function(){this._temporaryDisplayables=[]},t.prototype.addDisplayable=function(r,i){i?this._temporaryDisplayables.push(r):this._displayables.push(r),this.markRedraw()},t.prototype.addDisplayables=function(r,i){i=i||!1;for(var n=0;n<r.length;n++)this.addDisplayable(r[n],i)},t.prototype.getDisplayables=function(){return this._displayables},t.prototype.getTemporalDisplayables=function(){return this._temporaryDisplayables},t.prototype.eachPendingDisplayable=function(r){for(var i=this._cursor;i<this._displayables.length;i++)r&&r(this._displayables[i]);for(var i=0;i<this._temporaryDisplayables.length;i++)r&&r(this._temporaryDisplayables[i])},t.prototype.update=function(){this.updateTransform();for(var r=this._cursor;r<this._displayables.length;r++){var i=this._displayables[r];i.parent=this,i.update(),i.parent=null}for(var r=0;r<this._temporaryDisplayables.length;r++){var i=this._temporaryDisplayables[r];i.parent=this,i.update(),i.parent=null}},t.prototype.getBoundingRect=function(){if(!this._rect){for(var r=new k(1/0,1/0,-1/0,-1/0),i=0;i<this._displayables.length;i++){var n=this._displayables[i],a=n.getBoundingRect().clone();n.needLocalTransform()&&a.applyTransform(n.getLocalTransform(Xf)),r.union(a)}this._rect=r}return this._rect},t.prototype.contain=function(r,i){var n=this.transformCoordToLocal(r,i),a=this.getBoundingRect();if(a.contain(n[0],n[1]))for(var o=0;o<this._displayables.length;o++){var s=this._displayables[o];if(s.contain(r,i))return!0}return!1},t}(re),Vu=qf,Zf=Math.round(Math.random()*9),Uf=typeof Object.defineProperty=="function",Vf=function(){function e(){this._id="__ec_inner_"+Zf++}return e.prototype.get=function(t){return this._guard(t)[this._id]},e.prototype.set=function(t,r){var i=this._guard(t);return Uf?Object.defineProperty(i,this._id,{value:r,enumerable:!1,configurable:!0}):i[this._id]=r,this},e.prototype.delete=function(t){return this.has(t)?(delete this._guard(t)[this._id],!0):!1},e.prototype.has=function(t){return!!this._guard(t)[this._id]},e.prototype._guard=function(t){if(t!==Object(t))throw TypeError("Value of WeakMap is not a non-null object.");return t},e}(),Qu=Vf;function Kt(e){return isFinite(e)}function Qf(e,t,r){var i=t.x==null?0:t.x,n=t.x2==null?1:t.x2,a=t.y==null?0:t.y,o=t.y2==null?0:t.y2;t.global||(i=i*r.width+r.x,n=n*r.width+r.x,a=a*r.height+r.y,o=o*r.height+r.y),i=Kt(i)?i:0,n=Kt(n)?n:1,a=Kt(a)?a:0,o=Kt(o)?o:0;var s=e.createLinearGradient(i,a,n,o);return s}function Kf(e,t,r){var i=r.width,n=r.height,a=Math.min(i,n),o=t.x==null?.5:t.x,s=t.y==null?.5:t.y,h=t.r==null?.5:t.r;t.global||(o=o*i+r.x,s=s*n+r.y,h=h*a),o=Kt(o)?o:.5,s=Kt(s)?s:.5,h=h>=0&&Kt(h)?h:.5;var f=e.createRadialGradient(o,s,0,o,s,h);return f}function Ki(e,t,r){for(var i=t.type==="radial"?Kf(e,t,r):Qf(e,t,r),n=t.colorStops,a=0;a<n.length;a++)i.addColorStop(n[a].offset,n[a].color);return i}function Jf(e,t){if(e===t||!e&&!t)return!1;if(!e||!t||e.length!==t.length)return!0;for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!0;return!1}function Te(e){return parseInt(e,10)}function be(e,t,r){var i=["width","height"][t],n=["clientWidth","clientHeight"][t],a=["paddingLeft","paddingTop"][t],o=["paddingRight","paddingBottom"][t];if(r[i]!=null&&r[i]!=="auto")return parseFloat(r[i]);var s=document.defaultView.getComputedStyle(e);return(e[n]||Te(s[i])||Te(e.style[i]))-(Te(s[a])||0)-(Te(s[o])||0)|0}function jf(e,t){return!e||e==="solid"||!(t>0)?null:e==="dashed"?[4*t,2*t]:e==="dotted"?[t]:Le(e)?[e]:Vr(e)?e:null}function So(e){var t=e.style,r=t.lineDash&&t.lineWidth>0&&jf(t.lineDash,t.lineWidth),i=t.lineDashOffset;if(r){var n=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;n&&n!==1&&(r=br(r,function(a){return a/n}),i/=n)}return[r,i]}var tu=new Cr(!0);function ze(e){var t=e.stroke;return!(t==null||t==="none"||!(e.lineWidth>0))}function ha(e){return typeof e=="string"&&e!=="none"}function ke(e){var t=e.fill;return t!=null&&t!=="none"}function fa(e,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var r=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=r}else e.fill()}function ua(e,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var r=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=r}else e.stroke()}function Ji(e,t,r){var i=Ja(t.image,t.__image,r);if(qe(i)){var n=e.createPattern(i,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&n&&n.setTransform){var a=new DOMMatrix;a.translateSelf(t.x||0,t.y||0),a.rotateSelf(0,0,(t.rotation||0)*Vo),a.scaleSelf(t.scaleX||1,t.scaleY||1),n.setTransform(a)}return n}}function ru(e,t,r,i){var n,a=ze(r),o=ke(r),s=r.strokePercent,h=s<1,f=!t.path;(!t.silent||h)&&f&&t.createPathProxy();var u=t.path||tu,l=t.__dirty;if(!i){var v=r.fill,c=r.stroke,_=o&&!!v.colorStops,y=a&&!!c.colorStops,d=o&&!!v.image,p=a&&!!c.image,g=void 0,m=void 0,w=void 0,L=void 0,T=void 0;(_||y)&&(T=t.getBoundingRect()),_&&(g=l?Ki(e,v,T):t.__canvasFillGradient,t.__canvasFillGradient=g),y&&(m=l?Ki(e,c,T):t.__canvasStrokeGradient,t.__canvasStrokeGradient=m),d&&(w=l||!t.__canvasFillPattern?Ji(e,v,t):t.__canvasFillPattern,t.__canvasFillPattern=w),p&&(L=l||!t.__canvasStrokePattern?Ji(e,c,t):t.__canvasStrokePattern,t.__canvasStrokePattern=w),_?e.fillStyle=g:d&&(w?e.fillStyle=w:o=!1),y?e.strokeStyle=m:p&&(L?e.strokeStyle=L:a=!1)}var b=t.getGlobalScale();u.setScale(b[0],b[1],t.segmentIgnoreThreshold);var C,S;e.setLineDash&&r.lineDash&&(n=So(t),C=n[0],S=n[1]);var R=!0;(f||l&ur)&&(u.setDPR(e.dpr),h?u.setContext(null):(u.setContext(e),R=!1),u.reset(),t.buildPath(u,t.shape,i),u.toStatic(),t.pathUpdated()),R&&u.rebuildPath(e,h?s:1),C&&(e.setLineDash(C),e.lineDashOffset=S),i||(r.strokeFirst?(a&&ua(e,r),o&&fa(e,r)):(o&&fa(e,r),a&&ua(e,r))),C&&e.setLineDash([])}function eu(e,t,r){var i=t.__image=Ja(r.image,t.__image,t,t.onload);if(!(!i||!qe(i))){var n=r.x||0,a=r.y||0,o=t.getWidth(),s=t.getHeight(),h=i.width/i.height;if(o==null&&s!=null?o=s*h:s==null&&o!=null?s=o/h:o==null&&s==null&&(o=i.width,s=i.height),r.sWidth&&r.sHeight){var f=r.sx||0,u=r.sy||0;e.drawImage(i,f,u,r.sWidth,r.sHeight,n,a,o,s)}else if(r.sx&&r.sy){var f=r.sx,u=r.sy,l=o-f,v=s-u;e.drawImage(i,f,u,l,v,n,a,o,s)}else e.drawImage(i,n,a,o,s)}}function iu(e,t,r){var i,n=r.text;if(n!=null&&(n+=""),n){e.font=r.font||tr,e.textAlign=r.textAlign,e.textBaseline=r.textBaseline;var a=void 0,o=void 0;e.setLineDash&&r.lineDash&&(i=So(t),a=i[0],o=i[1]),a&&(e.setLineDash(a),e.lineDashOffset=o),r.strokeFirst?(ze(r)&&e.strokeText(n,r.x,r.y),ke(r)&&e.fillText(n,r.x,r.y)):(ke(r)&&e.fillText(n,r.x,r.y),ze(r)&&e.strokeText(n,r.x,r.y)),a&&e.setLineDash([])}}var la=["shadowBlur","shadowOffsetX","shadowOffsetY"],va=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function Po(e,t,r,i,n){var a=!1;if(!i&&(r=r||{},t===r))return!1;if(i||t.opacity!==r.opacity){K(e,n),a=!0;var o=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(o)?jt.opacity:o}(i||t.blend!==r.blend)&&(a||(K(e,n),a=!0),e.globalCompositeOperation=t.blend||jt.blend);for(var s=0;s<la.length;s++){var h=la[s];(i||t[h]!==r[h])&&(a||(K(e,n),a=!0),e[h]=e.dpr*(t[h]||0))}return(i||t.shadowColor!==r.shadowColor)&&(a||(K(e,n),a=!0),e.shadowColor=t.shadowColor||jt.shadowColor),a}function ca(e,t,r,i,n){var a=Jr(t,n.inHover),o=i?null:r&&Jr(r,n.inHover)||{};if(a===o)return!1;var s=Po(e,a,o,i,n);if((i||a.fill!==o.fill)&&(s||(K(e,n),s=!0),ha(a.fill)&&(e.fillStyle=a.fill)),(i||a.stroke!==o.stroke)&&(s||(K(e,n),s=!0),ha(a.stroke)&&(e.strokeStyle=a.stroke)),(i||a.opacity!==o.opacity)&&(s||(K(e,n),s=!0),e.globalAlpha=a.opacity==null?1:a.opacity),t.hasStroke()){var h=a.lineWidth,f=h/(a.strokeNoScale&&t.getLineScale?t.getLineScale():1);e.lineWidth!==f&&(s||(K(e,n),s=!0),e.lineWidth=f)}for(var u=0;u<va.length;u++){var l=va[u],v=l[0];(i||a[v]!==o[v])&&(s||(K(e,n),s=!0),e[v]=a[v]||l[1])}return s}function nu(e,t,r,i,n){return Po(e,Jr(t,n.inHover),r&&Jr(r,n.inHover),i,n)}function Ro(e,t){var r=t.transform,i=e.dpr||1;r?e.setTransform(i*r[0],i*r[1],i*r[2],i*r[3],i*r[4],i*r[5]):e.setTransform(i,0,0,i,0,0)}function au(e,t,r){for(var i=!1,n=0;n<e.length;n++){var a=e[n];i=i||a.isZeroArea(),Ro(t,a),t.beginPath(),a.buildPath(t,a.shape),t.clip()}r.allClipped=i}function ou(e,t){return e&&t?e[0]!==t[0]||e[1]!==t[1]||e[2]!==t[2]||e[3]!==t[3]||e[4]!==t[4]||e[5]!==t[5]:!(!e&&!t)}var da=1,pa=2,_a=3,ga=4;function su(e){var t=ke(e),r=ze(e);return!(e.lineDash||!(+t^+r)||t&&typeof e.fill!="string"||r&&typeof e.stroke!="string"||e.strokePercent<1||e.strokeOpacity<1||e.fillOpacity<1)}function K(e,t){t.batchFill&&e.fill(),t.batchStroke&&e.stroke(),t.batchFill="",t.batchStroke=""}function Jr(e,t){return t&&e.__hoverStyle||e.style}function hu(e,t){Jt(e,t,{inHover:!1,viewWidth:0,viewHeight:0},!0)}function Jt(e,t,r,i){var n=t.transform;if(!t.shouldBePainted(r.viewWidth,r.viewHeight,!1,!1)){t.__dirty&=~J,t.__isRendered=!1;return}var a=t.__clipPaths,o=r.prevElClipPaths,s=!1,h=!1;if((!o||Jf(a,o))&&(o&&o.length&&(K(e,r),e.restore(),h=s=!0,r.prevElClipPaths=null,r.allClipped=!1,r.prevEl=null),a&&a.length&&(K(e,r),e.save(),au(a,e,r),s=!0),r.prevElClipPaths=a),r.allClipped){t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(),t.innerBeforeBrush();var f=r.prevEl;f||(h=s=!0);var u=t instanceof q&&t.autoBatch&&su(t.style);s||ou(n,f.transform)?(K(e,r),Ro(e,t)):u||K(e,r);var l=Jr(t,r.inHover);t instanceof q?(r.lastDrawType!==da&&(h=!0,r.lastDrawType=da),ca(e,t,f,h,r),(!u||!r.batchFill&&!r.batchStroke)&&e.beginPath(),ru(e,t,l,u),u&&(r.batchFill=l.fill||"",r.batchStroke=l.stroke||"")):t instanceof Vi?(r.lastDrawType!==_a&&(h=!0,r.lastDrawType=_a),ca(e,t,f,h,r),iu(e,t,l)):t instanceof oo?(r.lastDrawType!==pa&&(h=!0,r.lastDrawType=pa),nu(e,t,f,h,r),eu(e,t,l)):t.getTemporalDisplayables&&(r.lastDrawType!==ga&&(h=!0,r.lastDrawType=ga),fu(e,t,r)),u&&i&&K(e,r),t.innerAfterBrush(),t.afterBrush&&t.afterBrush(),r.prevEl=t,t.__dirty=0,t.__isRendered=!0}function fu(e,t,r){var i=t.getDisplayables(),n=t.getTemporalDisplayables();e.save();var a={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:r.viewWidth,viewHeight:r.viewHeight,inHover:r.inHover},o,s;for(o=t.getCursor(),s=i.length;o<s;o++){var h=i[o];h.beforeBrush&&h.beforeBrush(),h.innerBeforeBrush(),Jt(e,h,a,o===s-1),h.innerAfterBrush(),h.afterBrush&&h.afterBrush(),a.prevEl=h}for(var f=0,u=n.length;f<u;f++){var h=n[f];h.beforeBrush&&h.beforeBrush(),h.innerBeforeBrush(),Jt(e,h,a,f===u-1),h.innerAfterBrush(),h.afterBrush&&h.afterBrush(),a.prevEl=h}t.clearTemporalDisplayables(),t.notClear=!0,e.restore()}function ya(e,t,r){var i=jr.createCanvas(),n=t.getWidth(),a=t.getHeight(),o=i.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=n+"px",o.height=a+"px",i.setAttribute("data-zr-dom-id",e)),i.width=n*r,i.height=a*r,i}var uu=function(e){O(t,e);function t(r,i,n){var a=e.call(this)||this;a.motionBlur=!1,a.lastFrameAlpha=.7,a.dpr=1,a.virtual=!1,a.config={},a.incremental=!1,a.zlevel=0,a.maxRepaintRectCount=5,a.__dirty=!0,a.__firstTimePaint=!0,a.__used=!1,a.__drawIndex=0,a.__startIndex=0,a.__endIndex=0,a.__prevStartIndex=null,a.__prevEndIndex=null;var o;n=n||He,typeof r=="string"?o=ya(r,i,n):At(r)&&(o=r,r=o.id),a.id=r,a.dom=o;var s=o.style;return s&&(Ra(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),a.painter=i,a.dpr=n,a}return t.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},t.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},t.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},t.prototype.setUnpainted=function(){this.__firstTimePaint=!0},t.prototype.createBackBuffer=function(){var r=this.dpr;this.domBack=ya("back-"+this.id,this.painter,r),this.ctxBack=this.domBack.getContext("2d"),r!==1&&this.ctxBack.scale(r,r)},t.prototype.createRepaintRects=function(r,i,n,a){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,h=!1,f=new k(0,0,0,0);function u(g){if(!(!g.isFinite()||g.isZero()))if(o.length===0){var m=new k(0,0,0,0);m.copy(g),o.push(m)}else{for(var w=!1,L=1/0,T=0,b=0;b<o.length;++b){var C=o[b];if(C.intersect(g)){var S=new k(0,0,0,0);S.copy(C),S.union(g),o[b]=S,w=!0;break}else if(h){f.copy(g),f.union(C);var R=g.width*g.height,P=C.width*C.height,M=f.width*f.height,F=M-R-P;F<L&&(L=F,T=b)}}if(h&&(o[T].union(g),w=!0),!w){var m=new k(0,0,0,0);m.copy(g),o.push(m)}h||(h=o.length>=s)}}for(var l=this.__startIndex;l<this.__endIndex;++l){var v=r[l];if(v){var c=v.shouldBePainted(n,a,!0,!0),_=v.__isRendered&&(v.__dirty&J||!c)?v.getPrevPaintRect():null;_&&u(_);var y=c&&(v.__dirty&J||!v.__isRendered)?v.getPaintRect():null;y&&u(y)}}for(var l=this.__prevStartIndex;l<this.__prevEndIndex;++l){var v=i[l],c=v&&v.shouldBePainted(n,a,!0,!0);if(v&&(!c||!v.__zr)&&v.__isRendered){var _=v.getPrevPaintRect();_&&u(_)}}var d;do{d=!1;for(var l=0;l<o.length;){if(o[l].isZero()){o.splice(l,1);continue}for(var p=l+1;p<o.length;)o[l].intersect(o[p])?(d=!0,o[l].union(o[p]),o.splice(p,1)):p++;l++}}while(d);return this._paintRects=o,o},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(r,i){var n=this.dpr,a=this.dom,o=a.style,s=this.domBack;o&&(o.width=r+"px",o.height=i+"px"),a.width=r*n,a.height=i*n,s&&(s.width=r*n,s.height=i*n,n!==1&&this.ctxBack.scale(n,n))},t.prototype.clear=function(r,i,n){var a=this.dom,o=this.ctx,s=a.width,h=a.height;i=i||this.clearColor;var f=this.motionBlur&&!r,u=this.lastFrameAlpha,l=this.dpr,v=this;f&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(a,0,0,s/l,h/l));var c=this.domBack;function _(y,d,p,g){if(o.clearRect(y,d,p,g),i&&i!=="transparent"){var m=void 0;if(Ye(i)){var w=i.global||i.__width===p&&i.__height===g;m=w&&i.__canvasGradient||Ki(o,i,{x:0,y:0,width:p,height:g}),i.__canvasGradient=m,i.__width=p,i.__height=g}else Yo(i)&&(i.scaleX=i.scaleX||l,i.scaleY=i.scaleY||l,m=Ji(o,i,{dirty:function(){v.setUnpainted(),v.painter.refresh()}}));o.save(),o.fillStyle=m||i,o.fillRect(y,d,p,g),o.restore()}f&&(o.save(),o.globalAlpha=u,o.drawImage(c,y,d,p,g),o.restore())}!n||f?_(0,0,s,h):n.length&&tt(n,function(y){_(y.x*l,y.y*l,y.width*l,y.height*l)})},t}(Sr),xi=uu,ma=1e5,Qt=314159,Ce=.01,lu=.001;function vu(e){return e?e.__builtin__?!0:!(typeof e.resize!="function"||typeof e.refresh!="function"):!1}function cu(e,t){var r=document.createElement("div");return r.style.cssText=["position:relative","width:"+e+"px","height:"+t+"px","padding:0","margin:0","border-width:0"].join(";")+";",r}var du=function(){function e(t,r,i,n){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var a=!t.nodeName||t.nodeName.toUpperCase()==="CANVAS";this._opts=i=z({},i||{}),this.dpr=i.devicePixelRatio||He,this._singleCanvas=a,this.root=t;var o=t.style;o&&(Ra(t),t.innerHTML=""),this.storage=r;var s=this._zlevelList;this._prevDisplayList=[];var h=this._layers;if(a){var u=t,l=u.width,v=u.height;i.width!=null&&(l=i.width),i.height!=null&&(v=i.height),this.dpr=i.devicePixelRatio||1,u.width=l*this.dpr,u.height=v*this.dpr,this._width=l,this._height=v;var c=new xi(u,this,this.dpr);c.__builtin__=!0,c.initContext(),h[Qt]=c,c.zlevel=Qt,s.push(Qt),this._domRoot=t}else{this._width=be(t,0,i),this._height=be(t,1,i);var f=this._domRoot=cu(this._width,this._height);t.appendChild(f)}}return e.prototype.getType=function(){return"canvas"},e.prototype.isSingleCanvas=function(){return this._singleCanvas},e.prototype.getViewportRoot=function(){return this._domRoot},e.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},e.prototype.refresh=function(t){var r=this.storage.getDisplayList(!0),i=this._prevDisplayList,n=this._zlevelList;this._redrawId=Math.random(),this._paintList(r,i,t,this._redrawId);for(var a=0;a<n.length;a++){var o=n[a],s=this._layers[o];if(!s.__builtin__&&s.refresh){var h=a===0?this._backgroundColor:null;s.refresh(h)}}return this._opts.useDirtyRect&&(this._prevDisplayList=r.slice()),this},e.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},e.prototype._paintHoverList=function(t){var r=t.length,i=this._hoverlayer;if(i&&i.clear(),!!r){for(var n={inHover:!0,viewWidth:this._width,viewHeight:this._height},a,o=0;o<r;o++){var s=t[o];s.__inHover&&(i||(i=this._hoverlayer=this.getLayer(ma)),a||(a=i.ctx,a.save()),Jt(a,s,n,o===r-1))}a&&a.restore()}},e.prototype.getHoverLayer=function(){return this.getLayer(ma)},e.prototype.paintOne=function(t,r){hu(t,r)},e.prototype._paintList=function(t,r,i,n){if(this._redrawId===n){i=i||!1,this._updateLayerStatus(t);var a=this._doPaintList(t,r,i),o=a.finished,s=a.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),s&&this._paintHoverList(t),o)this.eachLayer(function(f){f.afterBrush&&f.afterBrush()});else{var h=this;Bi(function(){h._paintList(t,r,i,n)})}}},e.prototype._compositeManually=function(){var t=this.getLayer(Qt).ctx,r=this._domRoot.width,i=this._domRoot.height;t.clearRect(0,0,r,i),this.eachBuiltinLayer(function(n){n.virtual&&t.drawImage(n.dom,0,0,r,i)})},e.prototype._doPaintList=function(t,r,i){for(var n=this,a=[],o=this._opts.useDirtyRect,s=0;s<this._zlevelList.length;s++){var h=this._zlevelList[s],f=this._layers[h];f.__builtin__&&f!==this._hoverlayer&&(f.__dirty||i)&&a.push(f)}for(var u=!0,l=!1,v=function(y){var d=a[y],p=d.ctx,g=o&&d.createRepaintRects(t,r,c._width,c._height),m=i?d.__startIndex:d.__drawIndex,w=!i&&d.incremental&&Date.now,L=w&&Date.now(),T=d.zlevel===c._zlevelList[0]?c._backgroundColor:null;if(d.__startIndex===d.__endIndex)d.clear(!1,T,g);else if(m===d.__startIndex){var b=t[m];(!b.incremental||!b.notClear||i)&&d.clear(!1,T,g)}m===-1&&(console.error("For some unknown reason. drawIndex is -1"),m=d.__startIndex);var C,S=function(F){var D={inHover:!1,allClipped:!1,prevEl:null,viewWidth:n._width,viewHeight:n._height};for(C=m;C<d.__endIndex;C++){var B=t[C];if(B.__inHover&&(l=!0),n._doPaintEl(B,d,o,F,D,C===d.__endIndex-1),w){var x=Date.now()-L;if(x>15)break}}D.prevElClipPaths&&p.restore()};if(g)if(g.length===0)C=d.__endIndex;else for(var R=c.dpr,P=0;P<g.length;++P){var M=g[P];p.save(),p.beginPath(),p.rect(M.x*R,M.y*R,M.width*R,M.height*R),p.clip(),S(M),p.restore()}else p.save(),S(),p.restore();d.__drawIndex=C,d.__drawIndex<d.__endIndex&&(u=!1)},c=this,_=0;_<a.length;_++)v(_);return X.wxa&&tt(this._layers,function(y){y&&y.ctx&&y.ctx.draw&&y.ctx.draw()}),{finished:u,needsRefreshHover:l}},e.prototype._doPaintEl=function(t,r,i,n,a,o){var s=r.ctx;if(i){var h=t.getPaintRect();(!n||h&&h.intersect(n))&&(Jt(s,t,a,o),t.setPrevPaintRect(h))}else Jt(s,t,a,o)},e.prototype.getLayer=function(t,r){this._singleCanvas&&!this._needsManuallyCompositing&&(t=Qt);var i=this._layers[t];return i||(i=new xi("zr_"+t,this,this.dpr),i.zlevel=t,i.__builtin__=!0,this._layerConfig[t]?Hr(i,this._layerConfig[t],!0):this._layerConfig[t-Ce]&&Hr(i,this._layerConfig[t-Ce],!0),r&&(i.virtual=r),this.insertLayer(t,i),i.initContext()),i},e.prototype.insertLayer=function(t,r){var i=this._layers,n=this._zlevelList,a=n.length,o=this._domRoot,s=null,h=-1;if(!i[t]&&!!vu(r)){if(a>0&&t>n[0]){for(h=0;h<a-1&&!(n[h]<t&&n[h+1]>t);h++);s=i[n[h]]}if(n.splice(h+1,0,t),i[t]=r,!r.virtual)if(s){var f=s.dom;f.nextSibling?o.insertBefore(r.dom,f.nextSibling):o.appendChild(r.dom)}else o.firstChild?o.insertBefore(r.dom,o.firstChild):o.appendChild(r.dom);r.painter||(r.painter=this)}},e.prototype.eachLayer=function(t,r){for(var i=this._zlevelList,n=0;n<i.length;n++){var a=i[n];t.call(r,this._layers[a],a)}},e.prototype.eachBuiltinLayer=function(t,r){for(var i=this._zlevelList,n=0;n<i.length;n++){var a=i[n],o=this._layers[a];o.__builtin__&&t.call(r,o,a)}},e.prototype.eachOtherLayer=function(t,r){for(var i=this._zlevelList,n=0;n<i.length;n++){var a=i[n],o=this._layers[a];o.__builtin__||t.call(r,o,a)}},e.prototype.getLayers=function(){return this._layers},e.prototype._updateLayerStatus=function(t){this.eachBuiltinLayer(function(l,v){l.__dirty=l.__used=!1});function r(l){a&&(a.__endIndex!==l&&(a.__dirty=!0),a.__endIndex=l)}if(this._singleCanvas)for(var i=1;i<t.length;i++){var n=t[i];if(n.zlevel!==t[i-1].zlevel||n.incremental){this._needsManuallyCompositing=!0;break}}var a=null,o=0,s,h;for(h=0;h<t.length;h++){var n=t[h],f=n.zlevel,u=void 0;s!==f&&(s=f,o=0),n.incremental?(u=this.getLayer(f+lu,this._needsManuallyCompositing),u.incremental=!0,o=1):u=this.getLayer(f+(o>0?Ce:0),this._needsManuallyCompositing),u.__builtin__||en("ZLevel "+f+" has been used by unkown layer "+u.id),u!==a&&(u.__used=!0,u.__startIndex!==h&&(u.__dirty=!0),u.__startIndex=h,u.incremental?u.__drawIndex=-1:u.__drawIndex=h,r(h),a=u),n.__dirty&J&&!n.__inHover&&(u.__dirty=!0,u.incremental&&u.__drawIndex<0&&(u.__drawIndex=h))}r(h),this.eachBuiltinLayer(function(l,v){!l.__used&&l.getElementCount()>0&&(l.__dirty=!0,l.__startIndex=l.__endIndex=l.__drawIndex=0),l.__dirty&&l.__drawIndex<0&&(l.__drawIndex=l.__startIndex)})},e.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},e.prototype._clearLayer=function(t){t.clear()},e.prototype.setBackgroundColor=function(t){this._backgroundColor=t,tt(this._layers,function(r){r.setUnpainted()})},e.prototype.configLayer=function(t,r){if(r){var i=this._layerConfig;i[t]?Hr(i[t],r,!0):i[t]=r;for(var n=0;n<this._zlevelList.length;n++){var a=this._zlevelList[n];if(a===t||a===t+Ce){var o=this._layers[a];Hr(o,i[t],!0)}}}},e.prototype.delLayer=function(t){var r=this._layers,i=this._zlevelList,n=r[t];!n||(n.dom.parentNode.removeChild(n.dom),delete r[t],i.splice(Tt(i,t),1))},e.prototype.resize=function(t,r){if(this._domRoot.style){var i=this._domRoot;i.style.display="none";var n=this._opts,a=this.root;if(t!=null&&(n.width=t),r!=null&&(n.height=r),t=be(a,0,n),r=be(a,1,n),i.style.display="",this._width!==t||r!==this._height){i.style.width=t+"px",i.style.height=r+"px";for(var o in this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(t,r);this.refresh(!0)}this._width=t,this._height=r}else{if(t==null||r==null)return;this._width=t,this._height=r,this.getLayer(Qt).resize(t,r)}return this},e.prototype.clearLayer=function(t){var r=this._layers[t];r&&r.clear()},e.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},e.prototype.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._layers[Qt].dom;var r=new xi("image",this,t.pixelRatio||this.dpr);r.initContext(),r.clear(!1,t.backgroundColor||this._backgroundColor);var i=r.ctx;if(t.pixelRatio<=this.dpr){this.refresh();var n=r.dom.width,a=r.dom.height;this.eachLayer(function(l){l.__builtin__?i.drawImage(l.dom,0,0,n,a):l.renderToCanvas&&(i.save(),l.renderToCanvas(i),i.restore())})}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},s=this.storage.getDisplayList(!0),h=0,f=s.length;h<f;h++){var u=s[h];Jt(i,u,o,h===f-1)}return r.dom},e.prototype.getWidth=function(){return this._width},e.prototype.getHeight=function(){return this._height},e}(),Ku=du;export{zr as $,Cs as A,Gr as B,rr as C,Su as D,Fu as E,Bu as F,Hu as G,Nu as H,$u as I,vf as J,Yu as K,Wu as L,Gu as M,bh as N,Eu as O,q as P,Vu as Q,ku as R,zu as S,Za as T,Xu as U,qu as V,Zu as W,k as X,Uu as Y,oo as Z,H as _,Vr as a,Hr as a0,Tr as a1,Ca as a2,Mu as a3,Xo as a4,yu as a5,Wo as a6,fn as a7,gu as a8,bu as a9,Ru as aA,Lu as aa,gr as ab,ph as ac,Qu as ad,Xe as ae,jr as af,hu as ag,Sr as ah,xu as ai,Os as aj,La as ak,Au as al,rs as am,Pu as an,Kr as ao,Wh as ap,Se as aq,wu as ar,Ts as as,Ku as at,_s as au,_n as av,dh as aw,Xr as ax,Ai as ay,lt as az,Tt as b,Cu as c,Tu as d,tt as e,X as f,At as g,Le as h,Ee as i,mu as j,_u as k,z as l,br as m,We as n,Ct as o,rt as p,Du as q,$e as r,j as s,Iu as t,Ou as u,hf as v,ff as w,_r as x,ms as y,Je as z};
|