dpchart
Version:
Create your graph based of eCharts
1 lines • 1.35 MB
JavaScript
var kre=(_,x)=>()=>(_&&(x=_(_=0)),x);var mi=(_,x)=>()=>(x||_((x={exports:{}}).exports,x),x.exports);var Ft=kre(()=>{});var YB=mi((Bg,WB)=>{Ft();(function(_,x){typeof Bg=="object"&&typeof WB<"u"?x(Bg):typeof define=="function"&&define.amd?define(["exports"],x):(_=typeof globalThis<"u"?globalThis:_||self,x(_.echarts={}))})(Bg,(function(_){"use strict";var x=function(r,e){return x=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])},x(r,e)};function w(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");x(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var A=(function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r})(),O=(function(){function r(){this.browser=new A,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<"u"}return r})(),k=new O;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(k.wxa=!0,k.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?k.worker=!0:!k.hasGlobalWindow||"Deno"in window||typeof navigator<"u"&&typeof navigator.userAgent=="string"&&navigator.userAgent.indexOf("Node.js")>-1?(k.node=!0,k.svgSupported=!0):V(navigator.userAgent,k);function V(r,e){var t=e.browser,n=r.match(/Firefox\/([\d.]+)/),a=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),i=r.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(r);n&&(t.firefox=!0,t.version=n[1]),a&&(t.ie=!0,t.version=a[1]),i&&(t.edge=!0,t.version=i[1],t.newEdge=+i[1].split(".")[0]>18),o&&(t.weChat=!0),e.svgSupported=typeof SVGRect<"u",e.touchEventsSupported="ontouchstart"in window&&!t.ie&&!t.edge,e.pointerEventsSupported="onpointerdown"in window&&(t.edge||t.ie&&+t.version>=11);var s=e.domSupported=typeof document<"u";if(s){var l=document.documentElement.style;e.transform3dSupported=(t.ie&&"transition"in l||t.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in l)&&!("OTransition"in l),e.transformSupported=e.transform3dSupported||t.ie&&+t.version>=9}}var U=12,W="sans-serif",K=U+"px "+W,q=20,Z=100,ce="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function te(r){var e={};if(typeof JSON>"u")return e;for(var t=0;t<r.length;t++){var n=String.fromCharCode(t+32),a=(r.charCodeAt(t)-q)/Z;e[n]=a}return e}var ve=te(ce),ae={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:(function(){var r,e;return function(t,n){if(!r){var a=ae.createCanvas();r=a&&a.getContext("2d")}if(r)return e!==n&&(e=r.font=n||K),r.measureText(t);t=t||"",n=n||K;var i=/((?:\d+)?\.?\d*)px/.exec(n),o=i&&+i[1]||U,s=0;if(n.indexOf("mono")>=0)s=o*t.length;else for(var l=0;l<t.length;l++){var u=ve[t[l]];s+=u==null?o:u*o}return{width:s}}})(),loadImage:function(r,e,t){var n=new Image;return n.onload=e,n.onerror=t,n.src=r,n},getTime:function(){return Date.now?Date.now():+new Date}};function ue(r){for(var e in ae)ae.hasOwnProperty(e)&&r[e]&&(ae[e]=r[e])}var be=Cr(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(r,e){return r["[object "+e+"]"]=!0,r},{}),De=Cr(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(r,e){return r["[object "+e+"Array]"]=!0,r},{}),ye=Object.prototype.toString,Ae=Array.prototype,ze=Ae.forEach,Ue=Ae.filter,Rt=Ae.slice,It=Ae.map,We=function(){}.constructor,$e=We?We.prototype:null,qe="__proto__",nt=2311,it=Math.pow(2,53)-1;function Je(){return nt>=it&&(nt=0),nt++}function Qe(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];typeof console<"u"&&console.error.apply(console,r)}function ie(r){if(r==null||typeof r!="object")return r;var e=r,t=ye.call(r);if(t==="[object Array]"){if(!tl(r)){e=[];for(var n=0,a=r.length;n<a;n++)e[n]=ie(r[n])}}else if(De[t]){if(!tl(r)){var i=r.constructor;if(i.from)e=i.from(r);else{e=new i(r.length);for(var n=0,a=r.length;n<a;n++)e[n]=r[n]}}}else if(!be[t]&&!tl(r)&&!_i(r)){e={};for(var o in r)r.hasOwnProperty(o)&&o!==qe&&(e[o]=ie(r[o]))}return e}function Se(r,e,t){if(!fe(e)||!fe(r))return t?ie(e):r;for(var n in e)if(e.hasOwnProperty(n)&&n!==qe){var a=r[n],i=e[n];fe(i)&&fe(a)&&!Q(i)&&!Q(a)&&!_i(i)&&!_i(a)&&!lo(i)&&!lo(a)&&!tl(i)&&!tl(a)?Se(a,i,t):(t||!(n in r))&&(r[n]=ie(e[n]))}return r}function wt(r,e){for(var t=r[0],n=1,a=r.length;n<a;n++)t=Se(t,r[n],e);return t}function Y(r,e){if(Object.assign)Object.assign(r,e);else for(var t in e)e.hasOwnProperty(t)&&t!==qe&&(r[t]=e[t]);return r}function Gt(r,e,t){r=r||{};for(var n=0;n<t.length;n++){var a=t[n];r[a]=e[a]}return r}function Ce(r,e,t){for(var n=Xe(e),a=0,i=n.length;a<i;a++){var o=n[a];(t?e[o]!=null:r[o]==null)&&(r[o]=e[o])}return r}var Rr=ae.createCanvas;function ke(r,e){if(r){if(r.indexOf)return r.indexOf(e);for(var t=0,n=r.length;t<n;t++)if(r[t]===e)return t}return-1}function Wr(r,e){var t=r.prototype;function n(){}n.prototype=e.prototype,r.prototype=new n;for(var a in t)t.hasOwnProperty(a)&&(r.prototype[a]=t[a]);r.prototype.constructor=r,r.superClass=e}function kt(r,e,t){if(r="prototype"in r?r.prototype:r,e="prototype"in e?e.prototype:e,Object.getOwnPropertyNames)for(var n=Object.getOwnPropertyNames(e),a=0;a<n.length;a++){var i=n[a];i!=="constructor"&&(t?e[i]!=null:r[i]==null)&&(r[i]=e[i])}else Ce(r,e,t)}function Bt(r){return!r||typeof r=="string"?!1:typeof r.length=="number"}function I(r,e,t){if(r&&e)if(r.forEach&&r.forEach===ze)r.forEach(e,t);else if(r.length===+r.length)for(var n=0,a=r.length;n<a;n++)e.call(t,r[n],n,r);else for(var i in r)r.hasOwnProperty(i)&&e.call(t,r[i],i,r)}function ee(r,e,t){if(!r)return[];if(!e)return mv(r);if(r.map&&r.map===It)return r.map(e,t);for(var n=[],a=0,i=r.length;a<i;a++)n.push(e.call(t,r[a],a,r));return n}function Cr(r,e,t,n){if(r&&e){for(var a=0,i=r.length;a<i;a++)t=e.call(n,t,r[a],a,r);return t}}function ot(r,e,t){if(!r)return[];if(!e)return mv(r);if(r.filter&&r.filter===Ue)return r.filter(e,t);for(var n=[],a=0,i=r.length;a<i;a++)e.call(t,r[a],a,r)&&n.push(r[a]);return n}function Yr(r,e,t){if(r&&e){for(var n=0,a=r.length;n<a;n++)if(e.call(t,r[n],n,r))return r[n]}}function Xe(r){if(!r)return[];if(Object.keys)return Object.keys(r);var e=[];for(var t in r)r.hasOwnProperty(t)&&e.push(t);return e}function Hu(r,e){for(var t=[],n=2;n<arguments.length;n++)t[n-2]=arguments[n];return function(){return r.apply(e,t.concat(Rt.call(arguments)))}}var he=$e&&ge($e.bind)?$e.call.bind($e.bind):Hu;function Oe(r){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];return function(){return r.apply(this,e.concat(Rt.call(arguments)))}}function Q(r){return Array.isArray?Array.isArray(r):ye.call(r)==="[object Array]"}function ge(r){return typeof r=="function"}function se(r){return typeof r=="string"}function kr(r){return ye.call(r)==="[object String]"}function Ge(r){return typeof r=="number"}function fe(r){var e=typeof r;return e==="function"||!!r&&e==="object"}function lo(r){return!!be[ye.call(r)]}function Tr(r){return!!De[ye.call(r)]}function _i(r){return typeof r=="object"&&typeof r.nodeType=="number"&&typeof r.ownerDocument=="object"}function Uu(r){return r.colorStops!=null}function Rx(r){return r.image!=null}function zg(r){return ye.call(r)==="[object RegExp]"}function nr(r){return r!==r}function ar(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];for(var t=0,n=r.length;t<n;t++)if(r[t]!=null)return r[t]}function _e(r,e){return r??e}function Dr(r,e,t){return r??e??t}function mv(r){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];return Rt.apply(r,e)}function Wu(r){if(typeof r=="number")return[r,r,r,r];var e=r.length;return e===2?[r[0],r[1],r[0],r[1]]:e===3?[r[0],r[1],r[2],r[1]]:r}function re(r,e){if(!r)throw new Error(e)}function Qr(r){return r==null?null:typeof r.trim=="function"?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var kx="__ec_primitive__";function Yu(r){r[kx]=!0}function tl(r){return r[kx]}var rz=(function(){function r(){this.data={}}return r.prototype.delete=function(e){var t=this.has(e);return t&&delete this.data[e],t},r.prototype.has=function(e){return this.data.hasOwnProperty(e)},r.prototype.get=function(e){return this.data[e]},r.prototype.set=function(e,t){return this.data[e]=t,this},r.prototype.keys=function(){return Xe(this.data)},r.prototype.forEach=function(e){var t=this.data;for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)},r})(),Ox=typeof Map=="function";function nz(){return Ox?new Map:new rz}var Nx=(function(){function r(e){var t=Q(e);this.data=nz();var n=this;e instanceof r?e.each(a):e&&I(e,a);function a(i,o){t?n.set(i,o):n.set(o,i)}}return r.prototype.hasKey=function(e){return this.data.has(e)},r.prototype.get=function(e){return this.data.get(e)},r.prototype.set=function(e,t){return this.data.set(e,t),t},r.prototype.each=function(e,t){this.data.forEach(function(n,a){e.call(t,n,a)})},r.prototype.keys=function(){var e=this.data.keys();return Ox?Array.from(e):e},r.prototype.removeKey=function(e){this.data.delete(e)},r})();function pe(r){return new Nx(r)}function rl(r,e){for(var t=new r.constructor(r.length+e.length),n=0;n<r.length;n++)t[n]=r[n];for(var a=r.length,n=0;n<e.length;n++)t[n+a]=e[n];return t}function $u(r,e){var t;if(Object.create)t=Object.create(r);else{var n=function(){};n.prototype=r,t=new n}return e&&Y(t,e),t}function Vg(r){var e=r.style;e.webkitUserSelect="none",e.userSelect="none",e.webkitTapHighlightColor="rgba(0,0,0,0)",e["-webkit-touch-callout"]="none"}function me(r,e){return r.hasOwnProperty(e)}function Ot(){}var qu=180/Math.PI,az=Number.EPSILON||Math.pow(2,-52),iz=Object.freeze({__proto__:null,guid:Je,logError:Qe,clone:ie,merge:Se,mergeAll:wt,extend:Y,assignProps:Gt,defaults:Ce,createCanvas:Rr,indexOf:ke,inherits:Wr,mixin:kt,isArrayLike:Bt,each:I,map:ee,reduce:Cr,filter:ot,find:Yr,keys:Xe,bind:he,curry:Oe,isArray:Q,isFunction:ge,isString:se,isStringSafe:kr,isNumber:Ge,isObject:fe,isBuiltInObject:lo,isTypedArray:Tr,isDom:_i,isGradientObject:Uu,isImagePatternObject:Rx,isRegExp:zg,eqNaN:nr,retrieve:ar,retrieve2:_e,retrieve3:Dr,slice:mv,normalizeCssArray:Wu,assert:re,trim:Qr,setAsPrimitive:Yu,isPrimitive:tl,HashMap:Nx,createHashMap:pe,concatArray:rl,createObject:$u,disableUserSelect:Vg,hasOwn:me,noop:Ot,RADIAN_TO_DEGREE:qu,EPSILON:az});function bi(r,e){return r==null&&(r=0),e==null&&(e=0),[r,e]}function gr(r,e){return r[0]=e[0],r[1]=e[1],r}function Jn(r){return[r[0],r[1]]}function za(r,e,t){return r[0]=e,r[1]=t,r}function Fg(r,e,t){return r[0]=e[0]+t[0],r[1]=e[1]+t[1],r}function yv(r,e,t,n){return r[0]=e[0]+t[0]*n,r[1]=e[1]+t[1]*n,r}function Si(r,e,t){return r[0]=e[0]-t[0],r[1]=e[1]-t[1],r}function Xu(r){return Math.sqrt(Gg(r))}var oz=Xu;function Gg(r){return r[0]*r[0]+r[1]*r[1]}var sz=Gg;function lz(r,e,t){return r[0]=e[0]*t[0],r[1]=e[1]*t[1],r}function uz(r,e,t){return r[0]=e[0]/t[0],r[1]=e[1]/t[1],r}function cz(r,e){return r[0]*e[0]+r[1]*e[1]}function Zu(r,e,t){return r[0]=e[0]*t,r[1]=e[1]*t,r}function uo(r,e){var t=Xu(e);return t===0?(r[0]=0,r[1]=0):(r[0]=e[0]/t,r[1]=e[1]/t),r}function _v(r,e){return Math.sqrt((r[0]-e[0])*(r[0]-e[0])+(r[1]-e[1])*(r[1]-e[1]))}var Va=_v;function Bx(r,e){return(r[0]-e[0])*(r[0]-e[0])+(r[1]-e[1])*(r[1]-e[1])}var xi=Bx;function fz(r,e){return r[0]=-e[0],r[1]=-e[1],r}function ju(r,e,t,n){return r[0]=e[0]+n*(t[0]-e[0]),r[1]=e[1]+n*(t[1]-e[1]),r}function Nt(r,e,t){var n=e[0],a=e[1];return r[0]=t[0]*n+t[2]*a+t[4],r[1]=t[1]*n+t[3]*a+t[5],r}function Fa(r,e,t){return r[0]=Math.min(e[0],t[0]),r[1]=Math.min(e[1],t[1]),r}function Ga(r,e,t){return r[0]=Math.max(e[0],t[0]),r[1]=Math.max(e[1],t[1]),r}var vz=Object.freeze({__proto__:null,create:bi,copy:gr,clone:Jn,set:za,add:Fg,scaleAndAdd:yv,sub:Si,len:Xu,length:oz,lenSquare:Gg,lengthSquare:sz,mul:lz,div:uz,dot:cz,scale:Zu,normalize:uo,distance:_v,dist:Va,distanceSquare:Bx,distSquare:xi,negate:fz,lerp:ju,applyTransform:Nt,min:Fa,max:Ga}),nl=(function(){function r(e,t){this.target=e,this.topTarget=t&&t.topTarget}return r})(),hz=(function(){function r(e){this.handler=e,e.on("mousedown",this._dragStart,this),e.on("mousemove",this._drag,this),e.on("mouseup",this._dragEnd,this)}return r.prototype._dragStart=function(e){for(var t=e.target;t&&!t.draggable;)t=t.parent||t.__hostTarget;t&&(this._draggingTarget=t,t.dragging=!0,this._x=e.offsetX,this._y=e.offsetY,this.handler.dispatchToElement(new nl(t,e),"dragstart",e.event))},r.prototype._drag=function(e){var t=this._draggingTarget;if(t){var n=e.offsetX,a=e.offsetY,i=n-this._x,o=a-this._y;this._x=n,this._y=a,t.drift(i,o,e),this.handler.dispatchToElement(new nl(t,e),"drag",e.event);var s=this.handler.findHover(n,a,t).target,l=this._dropTarget;this._dropTarget=s,t!==s&&(l&&s!==l&&this.handler.dispatchToElement(new nl(l,e),"dragleave",e.event),s&&s!==l&&this.handler.dispatchToElement(new nl(s,e),"dragenter",e.event))}},r.prototype._dragEnd=function(e){var t=this._draggingTarget;t&&(t.dragging=!1),this.handler.dispatchToElement(new nl(t,e),"dragend",e.event),this._dropTarget&&this.handler.dispatchToElement(new nl(this._dropTarget,e),"drop",e.event),this._draggingTarget=null,this._dropTarget=null},r})(),hn=(function(){function r(e){e&&(this._$eventProcessor=e)}return r.prototype.on=function(e,t,n,a){this._$handlers||(this._$handlers={});var i=this._$handlers;if(typeof t=="function"&&(a=n,n=t,t=null),!n||!e)return this;var o=this._$eventProcessor;t!=null&&o&&o.normalizeQuery&&(t=o.normalizeQuery(t)),i[e]||(i[e]=[]);for(var s=0;s<i[e].length;s++)if(i[e][s].h===n)return this;var l={h:n,query:t,ctx:a||this,callAtLast:n.zrEventfulCallAtLast},u=i[e].length-1,c=i[e][u];return c&&c.callAtLast?i[e].splice(u,0,l):i[e].push(l),this},r.prototype.isSilent=function(e){var t=this._$handlers;return!t||!t[e]||!t[e].length},r.prototype.off=function(e,t){var n=this._$handlers;if(!n)return this;if(!e)return this._$handlers={},this;if(t){if(n[e]){for(var a=[],i=0,o=n[e].length;i<o;i++)n[e][i].h!==t&&a.push(n[e][i]);n[e]=a}n[e]&&n[e].length===0&&delete n[e]}else delete n[e];return this},r.prototype.trigger=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!this._$handlers)return this;var a=this._$handlers[e],i=this._$eventProcessor;if(a)for(var o=t.length,s=a.length,l=0;l<s;l++){var u=a[l];if(!(i&&i.filter&&u.query!=null&&!i.filter(e,u.query)))switch(o){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,t[0]);break;case 2:u.h.call(u.ctx,t[0],t[1]);break;default:u.h.apply(u.ctx,t);break}}return i&&i.afterTrigger&&i.afterTrigger(e),this},r.prototype.triggerWithContext=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!this._$handlers)return this;var a=this._$handlers[e],i=this._$eventProcessor;if(a)for(var o=t.length,s=t[o-1],l=a.length,u=0;u<l;u++){var c=a[u];if(!(i&&i.filter&&c.query!=null&&!i.filter(e,c.query)))switch(o){case 0:c.h.call(s);break;case 1:c.h.call(s,t[0]);break;case 2:c.h.call(s,t[0],t[1]);break;default:c.h.apply(s,t.slice(1,o-1));break}}return i&&i.afterTrigger&&i.afterTrigger(e),this},r})(),dz=Math.log(2);function Hg(r,e,t,n,a,i){var o=n+"-"+a,s=r.length;if(i.hasOwnProperty(o))return i[o];if(e===1){var l=Math.round(Math.log((1<<s)-1&~a)/dz);return r[t][l]}for(var u=n|1<<t,c=t+1;n&1<<c;)c++;for(var f=0,v=0,h=0;v<s;v++){var d=1<<v;d&a||(f+=(h%2?-1:1)*r[t][v]*Hg(r,e-1,c,u,a|d,i),h++)}return i[o]=f,f}function zx(r,e){var t=[[r[0],r[1],1,0,0,0,-e[0]*r[0],-e[0]*r[1]],[0,0,0,r[0],r[1],1,-e[1]*r[0],-e[1]*r[1]],[r[2],r[3],1,0,0,0,-e[2]*r[2],-e[2]*r[3]],[0,0,0,r[2],r[3],1,-e[3]*r[2],-e[3]*r[3]],[r[4],r[5],1,0,0,0,-e[4]*r[4],-e[4]*r[5]],[0,0,0,r[4],r[5],1,-e[5]*r[4],-e[5]*r[5]],[r[6],r[7],1,0,0,0,-e[6]*r[6],-e[6]*r[7]],[0,0,0,r[6],r[7],1,-e[7]*r[6],-e[7]*r[7]]],n={},a=Hg(t,8,0,0,0,n);if(a!==0){for(var i=[],o=0;o<8;o++)for(var s=0;s<8;s++)i[s]==null&&(i[s]=0),i[s]+=((o+s)%2?-1:1)*Hg(t,7,o===0?1:0,1<<o,1<<s,n)/a*e[o];return function(l,u,c){var f=u*i[6]+c*i[7]+1;l[0]=(u*i[0]+c*i[1]+i[2])/f,l[1]=(u*i[3]+c*i[4]+i[5])/f}}}var bv="___zrEVENTSAVED",Ug=[];function pz(r,e,t,n,a){return Wg(Ug,e,n,a,!0)&&Wg(r,t,Ug[0],Ug[1])}function gz(r,e){r&&t(r),e&&t(e);function t(n){var a=n[bv];a&&(a.clearMarkers&&a.clearMarkers(),delete n[bv])}}function Wg(r,e,t,n,a){if(e.getBoundingClientRect&&k.domSupported&&!Vx(e)){var i=e[bv]||(e[bv]={}),o=mz(e,i),s=yz(o,i,a);if(s)return s(r,t,n),!0}return!1}function mz(r,e){var t=e.markers;if(t)return t;t=e.markers=[];for(var n=["left","right"],a=["top","bottom"],i=0;i<4;i++){var o=document.createElement("div"),s=o.style,l=i%2,u=(i>>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",n[l]+":0",a[u]+":0",n[1-l]+":auto",a[1-u]+":auto",""].join("!important;"),r.appendChild(o),t.push(o)}return e.clearMarkers=function(){I(t,function(c){c.parentNode&&c.parentNode.removeChild(c)})},t}function yz(r,e,t){for(var n=t?"invTrans":"trans",a=e[n],i=e.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var c=r[u].getBoundingClientRect(),f=2*u,v=c.left,h=c.top;o.push(v,h),l=l&&i&&v===i[f]&&h===i[f+1],s.push(r[u].offsetLeft,r[u].offsetTop)}return l&&a?a:(e.srcCoords=o,e[n]=t?zx(s,o):zx(o,s))}function Vx(r){return r.nodeName.toUpperCase()==="CANVAS"}var _z=/([&<>"'])/g,bz={"&":"&","<":"<",">":">",'"':""","'":"'"};function mr(r){return r==null?"":(r+"").replace(_z,function(e,t){return bz[t]})}var Sz=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Yg=[],xz=k.browser.firefox&&+k.browser.version.split(".")[0]<39;function $g(r,e,t,n){return t=t||{},n?Fx(r,e,t):xz&&e.layerX!=null&&e.layerX!==e.offsetX?(t.zrX=e.layerX,t.zrY=e.layerY):e.offsetX!=null?(t.zrX=e.offsetX,t.zrY=e.offsetY):Fx(r,e,t),t}function Fx(r,e,t){if(k.domSupported&&r.getBoundingClientRect){var n=e.clientX,a=e.clientY;if(Vx(r)){var i=r.getBoundingClientRect();t.zrX=n-i.left,t.zrY=a-i.top;return}else if(Wg(Yg,r,n,a)){t.zrX=Yg[0],t.zrY=Yg[1];return}}t.zrX=t.zrY=0}function qg(r){return r||window.event}function dn(r,e,t){if(e=qg(e),e.zrX!=null)return e;var n=e.type,a=n&&n.indexOf("touch")>=0;if(a){var o=n!=="touchend"?e.targetTouches[0]:e.changedTouches[0];o&&$g(r,o,e,t)}else{$g(r,e,e,t);var i=wz(e);e.zrDelta=i?i/120:-(e.detail||0)/3}var s=e.button;return e.which==null&&s!==void 0&&Sz.test(e.type)&&(e.which=s&1?1:s&2?3:s&4?2:0),e}function wz(r){var e=r.wheelDelta;if(e)return e;var t=r.deltaX,n=r.deltaY;if(t==null||n==null)return e;var a=Math.abs(n!==0?n:t),i=n>0?-1:n<0?1:t>0?-1:1;return 3*a*i}function Xg(r,e,t,n){r.addEventListener(e,t,n)}function Cz(r,e,t,n){r.removeEventListener(e,t,n)}var Ha=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0};function Gx(r){return r.which===2||r.which===3}var Tz=(function(){function r(){this._track=[]}return r.prototype.recognize=function(e,t,n){return this._doTrack(e,t,n),this._recognize(e)},r.prototype.clear=function(){return this._track.length=0,this},r.prototype._doTrack=function(e,t,n){var a=e.touches;if(a){for(var i={points:[],touches:[],target:t,event:e},o=0,s=a.length;o<s;o++){var l=a[o],u=$g(n,l,{});i.points.push([u.zrX,u.zrY]),i.touches.push(l)}this._track.push(i)}},r.prototype._recognize=function(e){for(var t in Zg)if(Zg.hasOwnProperty(t)){var n=Zg[t](this._track,e);if(n)return n}},r})();function Hx(r){var e=r[1][0]-r[0][0],t=r[1][1]-r[0][1];return Math.sqrt(e*e+t*t)}function Dz(r){return[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]}var Zg={pinch:function(r,e){var t=r.length;if(t){var n=(r[t-1]||{}).points,a=(r[t-2]||{}).points||n;if(a&&a.length>1&&n&&n.length>1){var i=Hx(n)/Hx(a);!isFinite(i)&&(i=1),e.pinchScale=i;var o=Dz(n);return e.pinchX=o[0],e.pinchY=o[1],{type:"pinch",target:r[0].target,event:e}}}}};function At(){return[1,0,0,1,0,0]}function co(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function wi(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4],r[5]=e[5],r}function en(r,e,t){var n=e[0]*t[0]+e[2]*t[1],a=e[1]*t[0]+e[3]*t[1],i=e[0]*t[2]+e[2]*t[3],o=e[1]*t[2]+e[3]*t[3],s=e[0]*t[4]+e[2]*t[5]+e[4],l=e[1]*t[4]+e[3]*t[5]+e[5];return r[0]=n,r[1]=a,r[2]=i,r[3]=o,r[4]=s,r[5]=l,r}function kn(r,e,t){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r[4]=e[4]+t[0],r[5]=e[5]+t[1],r}function Ua(r,e,t,n){n===void 0&&(n=[0,0]);var a=e[0],i=e[2],o=e[4],s=e[1],l=e[3],u=e[5],c=Math.sin(t),f=Math.cos(t);return r[0]=a*f+s*c,r[1]=-a*c+s*f,r[2]=i*f+l*c,r[3]=-i*c+f*l,r[4]=f*(o-n[0])+c*(u-n[1])+n[0],r[5]=f*(u-n[1])-c*(o-n[0])+n[1],r}function Sv(r,e,t){var n=t[0],a=t[1];return r[0]=e[0]*n,r[1]=e[1]*a,r[2]=e[2]*n,r[3]=e[3]*a,r[4]=e[4]*n,r[5]=e[5]*a,r}function tn(r,e){var t=e[0],n=e[2],a=e[4],i=e[1],o=e[3],s=e[5],l=t*o-i*n;return l?(l=1/l,r[0]=o*l,r[1]=-i*l,r[2]=-n*l,r[3]=t*l,r[4]=(n*s-o*a)*l,r[5]=(i*a-t*s)*l,r):null}function Ux(r){var e=At();return wi(e,r),e}var Az=Object.freeze({__proto__:null,create:At,identity:co,copy:wi,mul:en,translate:kn,rotate:Ua,scale:Sv,invert:tn,clone:Ux}),Pe=(function(){function r(e,t){this.x=e||0,this.y=t||0}return r.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this},r.prototype.clone=function(){return new r(this.x,this.y)},r.prototype.set=function(e,t){return this.x=e,this.y=t,this},r.prototype.equal=function(e){return e.x===this.x&&e.y===this.y},r.prototype.add=function(e){return this.x+=e.x,this.y+=e.y,this},r.prototype.scale=function(e){this.x*=e,this.y*=e},r.prototype.scaleAndAdd=function(e,t){this.x+=e.x*t,this.y+=e.y*t},r.prototype.sub=function(e){return this.x-=e.x,this.y-=e.y,this},r.prototype.dot=function(e){return this.x*e.x+this.y*e.y},r.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},r.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},r.prototype.normalize=function(){var e=this.len();return this.x/=e,this.y/=e,this},r.prototype.distance=function(e){var t=this.x-e.x,n=this.y-e.y;return Math.sqrt(t*t+n*n)},r.prototype.distanceSquare=function(e){var t=this.x-e.x,n=this.y-e.y;return t*t+n*n},r.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},r.prototype.transform=function(e){if(e){var t=this.x,n=this.y;return this.x=e[0]*t+e[2]*n+e[4],this.y=e[1]*t+e[3]*n+e[5],this}},r.prototype.toArray=function(e){return e[0]=this.x,e[1]=this.y,e},r.prototype.fromArray=function(e){this.x=e[0],this.y=e[1]},r.set=function(e,t,n){e.x=t,e.y=n},r.copy=function(e,t){e.x=t.x,e.y=t.y},r.len=function(e){return Math.sqrt(e.x*e.x+e.y*e.y)},r.lenSquare=function(e){return e.x*e.x+e.y*e.y},r.dot=function(e,t){return e.x*t.x+e.y*t.y},r.add=function(e,t,n){e.x=t.x+n.x,e.y=t.y+n.y},r.sub=function(e,t,n){e.x=t.x-n.x,e.y=t.y-n.y},r.scale=function(e,t,n){e.x=t.x*n,e.y=t.y*n},r.scaleAndAdd=function(e,t,n,a){e.x=t.x+n.x*a,e.y=t.y+n.y*a},r.lerp=function(e,t,n,a){var i=1-a;e.x=i*t.x+a*n.x,e.y=i*t.y+a*n.y},r})(),fo=Math.min,al=Math.max,jg=Math.abs,Wx=["x","y"],Mz=["width","height"],vo=new Pe,ho=new Pe,po=new Pe,go=new Pe,rn=Xx(),Ku=rn.minTv,Kg=rn.maxTv,Ju=[0,0],Le=(function(){function r(e,t,n,a){Jg(this,e,t,n,a)}return r.set=function(e,t,n,a,i){return a<0&&(t=t+a,a=-a),i<0&&(n=n+i,i=-i),e.x=t,e.y=n,e.width=a,e.height=i,e},r.prototype.union=function(e){var t=fo(e.x,this.x),n=fo(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=al(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=al(e.y+e.height,this.y+this.height)-n:this.height=e.height,this.x=t,this.y=n},r.prototype.applyTransform=function(e){r.applyTransform(this,this,e)},r.prototype.calculateTransform=function(e){return Yx(At(),this,e)},r.prototype.intersect=function(e,t,n){return r.intersect(this,e,t,n)},r.intersect=function(e,t,n,a){n&&Pe.set(n,0,0);var i=a&&a.outIntersectRect||null,o=a&&a.clamp;if(i&&(i.x=i.y=i.width=i.height=NaN),!e||!t)return!1;e instanceof r||(e=Jg(Iz,e.x,e.y,e.width,e.height)),t instanceof r||(t=Jg(Pz,t.x,t.y,t.width,t.height));var s=!!n;rn.reset(a,s);var l=rn.touchThreshold,u=e.x+l,c=e.x+e.width-l,f=e.y+l,v=e.y+e.height-l,h=t.x+l,d=t.x+t.width-l,p=t.y+l,g=t.y+t.height-l;if(u>c||f>v||h>d||p>g)return!1;var m=!(c<h||d<u||v<p||g<f);return(s||i)&&(Ju[0]=1/0,Ju[1]=0,qx(u,c,h,d,0,s,i,o),qx(f,v,p,g,1,s,i,o),s&&Pe.copy(n,m?rn.useDir?rn.dirMinTv:Ku:Kg)),m},r.contain=function(e,t,n){return t>=e.x&&t<=e.x+e.width&&n>=e.y&&n<=e.y+e.height},r.prototype.contain=function(e,t){return r.contain(this,e,t)},r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height)},r.prototype.copy=function(e){il(this,e)},r.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},r.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},r.prototype.isZero=function(){return this.width===0||this.height===0},r.create=function(e){return new r(e?e.x:0,e?e.y:0,e?e.width:0,e?e.height:0)},r.copy=function(e,t){return e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height,e},r.applyTransform=function(e,t,n){if(!n){e!==t&&il(e,t);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var a=n[0],i=n[3],o=n[4],s=n[5];e.x=t.x*a+o,e.y=t.y*i+s,e.width=t.width*a,e.height=t.height*i,e.width<0&&(e.x+=e.width,e.width=-e.width),e.height<0&&(e.y+=e.height,e.height=-e.height);return}vo.x=po.x=t.x,vo.y=go.y=t.y,ho.x=go.x=t.x+t.width,ho.y=po.y=t.y+t.height,vo.transform(n),go.transform(n),ho.transform(n),po.transform(n),e.x=fo(vo.x,ho.x,po.x,go.x),e.y=fo(vo.y,ho.y,po.y,go.y);var l=al(vo.x,ho.x,po.x,go.x),u=al(vo.y,ho.y,po.y,go.y);e.width=l-e.x,e.height=u-e.y},r.calculateTransform=function(e,t,n){var a=n.width/t.width,i=n.height/t.height;return e=co(e||[]),kn(e,e,za(Qg,-t.x,-t.y)),Sv(e,e,za(Qg,a,i)),kn(e,e,za(Qg,n.x,n.y)),e},r})(),xv=Le.create,Jg=Le.set,il=Le.copy,Yx=Le.calculateTransform,$x=Le.applyTransform,Lz=Le.contain,Iz=new Le(0,0,0,0),Pz=new Le(0,0,0,0),Qg=[];function qx(r,e,t,n,a,i,o,s){var l=jg(e-t),u=jg(n-r),c=fo(l,u),f=Wx[a],v=Wx[1-a],h=Mz[a];e<t||n<r?l<u?(i&&(Kg[f]=-l),s&&(o[f]=e,o[h]=0)):(i&&(Kg[f]=u),s&&(o[f]=r,o[h]=0)):(o&&(o[f]=al(r,t),o[h]=fo(e,n)-o[f]),i&&(c<Ju[0]||rn.useDir)&&(Ju[0]=fo(c,Ju[0]),(l<u||!rn.bidirectional)&&(Ku[f]=l,Ku[v]=0,rn.useDir&&rn.calcDirMTV()),(l>=u||!rn.bidirectional)&&(Ku[f]=-u,Ku[v]=0,rn.useDir&&rn.calcDirMTV())))}function Xx(){var r=0,e=new Pe,t=new Pe,n={minTv:new Pe,maxTv:new Pe,useDir:!1,dirMinTv:new Pe,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(i,o){n.touchThreshold=0,i&&i.touchThreshold!=null&&(n.touchThreshold=al(0,i.touchThreshold)),n.negativeSize=!1,o&&(n.minTv.set(1/0,1/0),n.maxTv.set(0,0),n.useDir=!1,i&&i.direction!=null&&(n.useDir=!0,n.dirMinTv.copy(n.minTv),t.copy(n.minTv),r=i.direction,n.bidirectional=i.bidirectional==null||!!i.bidirectional,n.bidirectional||e.set(Math.cos(r),Math.sin(r))))},calcDirMTV:function(){var i=n.minTv,o=n.dirMinTv,s=i.y*i.y+i.x*i.x,l=Math.sin(r),u=Math.cos(r),c=l*i.y+u*i.x;if(a(c)){a(i.x)&&a(i.y)&&o.set(0,0);return}if(t.x=s*u/c,t.y=s*l/c,a(t.x)&&a(t.y)){o.set(0,0);return}(n.bidirectional||e.dot(t)>0)&&t.len()<o.len()&&o.copy(t)}};function a(i){return jg(i)<1e-10}return n}var Zx="silent";function Ez(r,e,t){return{type:r,event:t,target:e.target,topTarget:e.topTarget,cancelBubble:!1,offsetX:t.zrX,offsetY:t.zrY,gestureEvent:t.gestureEvent,pinchX:t.pinchX,pinchY:t.pinchY,pinchScale:t.pinchScale,wheelDelta:t.zrDelta,zrByTouch:t.zrByTouch,which:t.which,stop:Rz}}function Rz(){Ha(this.event)}var kz=(function(r){w(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.handler=null,t}return e.prototype.dispose=function(){},e.prototype.setCursor=function(){},e})(hn),Qu=(function(){function r(e,t){this.x=e,this.y=t}return r})(),Oz=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],em=new Le(0,0,0,0),jx=(function(r){w(e,r);function e(t,n,a,i,o){var s=r.call(this)||this;return s._hovered=new Qu(0,0),s.storage=t,s.painter=n,s.painterRoot=i,s._pointerSize=o,a=a||new kz,s.proxy=null,s.setHandlerProxy(a),s._draggingMgr=new hz(s),s}return e.prototype.setHandlerProxy=function(t){this.proxy&&this.proxy.dispose(),t&&(I(Oz,function(n){t.on&&t.on(n,this[n],this)},this),t.handler=this),this.proxy=t},e.prototype.mousemove=function(t){var n=t.zrX,a=t.zrY,i=Jx(this,n,a),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=i?new Qu(n,a):this.findHover(n,a),u=l.target,c=this.proxy;c.setCursor&&c.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",t),this.dispatchToElement(l,"mousemove",t),u&&u!==s&&this.dispatchToElement(l,"mouseover",t)},e.prototype.mouseout=function(t){var n=t.zrEventControl;n!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",t),n!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:t})},e.prototype.resize=function(){this._hovered=new Qu(0,0)},e.prototype.dispatch=function(t,n){var a=this[t];a&&a.call(this,n)},e.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},e.prototype.setCursorStyle=function(t){var n=this.proxy;n.setCursor&&n.setCursor(t)},e.prototype.dispatchToElement=function(t,n,a){t=t||{};var i=t.target;if(!(i&&i.silent)){for(var o="on"+n,s=Ez(n,t,a);i&&(i[o]&&(s.cancelBubble=!!i[o].call(i,s)),i.trigger(n,s),i=i.__hostTarget?i.__hostTarget:i.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(n,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(l){typeof l[o]=="function"&&l[o].call(l,s),l.trigger&&l.trigger(n,s)}))}},e.prototype.findHover=function(t,n,a){var i=this.storage.getDisplayList(),o=new Qu(t,n);if(Kx(i,o,t,n,a),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,c=new Le(t-u,n-u,l,l),f=i.length-1;f>=0;f--){var v=i[f];v!==a&&!v.ignore&&!v.ignoreCoarsePointer&&(!v.parent||!v.parent.ignoreCoarsePointer)&&(em.copy(v.getBoundingRect()),v.transform&&em.applyTransform(v.transform),em.intersect(c)&&s.push(v))}if(s.length)for(var h=4,d=Math.PI/12,p=Math.PI*2,g=0;g<u;g+=h)for(var m=0;m<p;m+=d){var y=t+g*Math.cos(m),b=n+g*Math.sin(m);if(Kx(s,o,y,b,a),o.target)return o}}return o},e.prototype.processGesture=function(t,n){this._gestureMgr||(this._gestureMgr=new Tz);var a=this._gestureMgr;n==="start"&&a.clear();var i=a.recognize(t,this.findHover(t.zrX,t.zrY,null).target,this.proxy.dom);if(n==="end"&&a.clear(),i){var o=i.type;t.gestureEvent=o;var s=new Qu;s.target=i.target,this.dispatchToElement(s,o,i.event)}},e})(hn);I(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(r){jx.prototype[r]=function(e){var t=e.zrX,n=e.zrY,a=Jx(this,t,n),i,o;if((r!=="mouseup"||!a)&&(i=this.findHover(t,n),o=i.target),r==="mousedown")this._downEl=o,this._downPoint=[e.zrX,e.zrY],this._upEl=o;else if(r==="mouseup")this._upEl=o;else if(r==="click"){if(this._downEl!==this._upEl||!this._downPoint||Va(this._downPoint,[e.zrX,e.zrY])>4)return;this._downPoint=null}this.dispatchToElement(i,r,e)}});function Nz(r,e,t){if(r[r.rectHover?"rectContain":"contain"](e,t)){for(var n=r,a=void 0,i=!1;n;){if(n.ignoreClip&&(i=!0),!i){var o=n.getClipPath();if(o&&!o.contain(e,t))return!1}n.silent&&(a=!0);var s=n.__hostTarget;n=s?n.ignoreHostSilent?null:s:n.parent}return a?Zx:!0}return!1}function Kx(r,e,t,n,a){for(var i=r.length-1;i>=0;i--){var o=r[i],s=void 0;if(o!==a&&!o.ignore&&(s=Nz(o,t,n))&&(!e.topTarget&&(e.topTarget=o),s!==Zx)){e.target=o;break}}}function Jx(r,e,t){var n=r.painter;return e<0||e>n.getWidth()||t<0||t>n.getHeight()}var Qx=32,ec=7;function Bz(r){for(var e=0;r>=Qx;)e|=r&1,r>>=1;return r+e}function ew(r,e,t,n){var a=e+1;if(a===t)return 1;if(n(r[a++],r[e])<0){for(;a<t&&n(r[a],r[a-1])<0;)a++;zz(r,e,a)}else for(;a<t&&n(r[a],r[a-1])>=0;)a++;return a-e}function zz(r,e,t){for(t--;e<t;){var n=r[e];r[e++]=r[t],r[t--]=n}}function tw(r,e,t,n,a){for(n===e&&n++;n<t;n++){for(var i=r[n],o=e,s=n,l;o<s;)l=o+s>>>1,a(i,r[l])<0?s=l:o=l+1;var u=n-o;switch(u){case 3:r[o+3]=r[o+2];case 2:r[o+2]=r[o+1];case 1:r[o+1]=r[o];break;default:for(;u>0;)r[o+u]=r[o+u-1],u--}r[o]=i}}function tm(r,e,t,n,a,i){var o=0,s=0,l=1;if(i(r,e[t+a])>0){for(s=n-a;l<s&&i(r,e[t+a+l])>0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}else{for(s=a+1;l<s&&i(r,e[t+a-l])<=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=a-l,l=a-u}for(o++;o<l;){var c=o+(l-o>>>1);i(r,e[t+c])>0?o=c+1:l=c}return l}function rm(r,e,t,n,a,i){var o=0,s=0,l=1;if(i(r,e[t+a])<0){for(s=a+1;l<s&&i(r,e[t+a-l])<0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=a-l,l=a-u}else{for(s=n-a;l<s&&i(r,e[t+a+l])>=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=a,l+=a}for(o++;o<l;){var c=o+(l-o>>>1);i(r,e[t+c])<0?l=c:o=c+1}return l}function Vz(r,e){var t=ec,n,a,i=0,o=[];n=[],a=[];function s(h,d){n[i]=h,a[i]=d,i+=1}function l(){for(;i>1;){var h=i-2;if(h>=1&&a[h-1]<=a[h]+a[h+1]||h>=2&&a[h-2]<=a[h]+a[h-1])a[h-1]<a[h+1]&&h--;else if(a[h]>a[h+1])break;c(h)}}function u(){for(;i>1;){var h=i-2;h>0&&a[h-1]<a[h+1]&&h--,c(h)}}function c(h){var d=n[h],p=a[h],g=n[h+1],m=a[h+1];a[h]=p+m,h===i-3&&(n[h+1]=n[h+2],a[h+1]=a[h+2]),i--;var y=rm(r[g],r,d,p,0,e);d+=y,p-=y,p!==0&&(m=tm(r[d+p-1],r,g,m,m-1,e),m!==0&&(p<=m?f(d,p,g,m):v(d,p,g,m)))}function f(h,d,p,g){var m=0;for(m=0;m<d;m++)o[m]=r[h+m];var y=0,b=p,S=h;if(r[S++]=r[b++],--g===0){for(m=0;m<d;m++)r[S+m]=o[y+m];return}if(d===1){for(m=0;m<g;m++)r[S+m]=r[b+m];r[S+g]=o[y];return}for(var C=t,T,D,L;;){T=0,D=0,L=!1;do if(e(r[b],o[y])<0){if(r[S++]=r[b++],D++,T=0,--g===0){L=!0;break}}else if(r[S++]=o[y++],T++,D=0,--d===1){L=!0;break}while((T|D)<C);if(L)break;do{if(T=rm(r[b],o,y,d,0,e),T!==0){for(m=0;m<T;m++)r[S+m]=o[y+m];if(S+=T,y+=T,d-=T,d<=1){L=!0;break}}if(r[S++]=r[b++],--g===0){L=!0;break}if(D=tm(o[y],r,b,g,0,e),D!==0){for(m=0;m<D;m++)r[S+m]=r[b+m];if(S+=D,b+=D,g-=D,g===0){L=!0;break}}if(r[S++]=o[y++],--d===1){L=!0;break}C--}while(T>=ec||D>=ec);if(L)break;C<0&&(C=0),C+=2}if(t=C,t<1&&(t=1),d===1){for(m=0;m<g;m++)r[S+m]=r[b+m];r[S+g]=o[y]}else{if(d===0)throw new Error;for(m=0;m<d;m++)r[S+m]=o[y+m]}}function v(h,d,p,g){var m=0;for(m=0;m<g;m++)o[m]=r[p+m];var y=h+d-1,b=g-1,S=p+g-1,C=0,T=0;if(r[S--]=r[y--],--d===0){for(C=S-(g-1),m=0;m<g;m++)r[C+m]=o[m];return}if(g===1){for(S-=d,y-=d,T=S+1,C=y+1,m=d-1;m>=0;m--)r[T+m]=r[C+m];r[S]=o[b];return}for(var D=t;;){var L=0,M=0,P=!1;do if(e(o[b],r[y])<0){if(r[S--]=r[y--],L++,M=0,--d===0){P=!0;break}}else if(r[S--]=o[b--],M++,L=0,--g===1){P=!0;break}while((L|M)<D);if(P)break;do{if(L=d-rm(o[b],r,h,d,d-1,e),L!==0){for(S-=L,y-=L,d-=L,T=S+1,C=y+1,m=L-1;m>=0;m--)r[T+m]=r[C+m];if(d===0){P=!0;break}}if(r[S--]=o[b--],--g===1){P=!0;break}if(M=g-tm(r[y],o,0,g,g-1,e),M!==0){for(S-=M,b-=M,g-=M,T=S+1,C=b+1,m=0;m<M;m++)r[T+m]=o[C+m];if(g<=1){P=!0;break}}if(r[S--]=r[y--],--d===0){P=!0;break}D--}while(L>=ec||M>=ec);if(P)break;D<0&&(D=0),D+=2}if(t=D,t<1&&(t=1),g===1){for(S-=d,y-=d,T=S+1,C=y+1,m=d-1;m>=0;m--)r[T+m]=r[C+m];r[S]=o[b]}else{if(g===0)throw new Error;for(C=S-(g-1),m=0;m<g;m++)r[C+m]=o[m]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function wv(r,e,t,n){t||(t=0),n||(n=r.length);var a=n-t;if(!(a<2)){var i=0;if(a<Qx){i=ew(r,t,n,e),tw(r,t,n,t+i,e);return}var o=Vz(r,e),s=Bz(a);do{if(i=ew(r,t,n,e),i<s){var l=a;l>s&&(l=s),tw(r,t,t+l,t+i,e),i=l}o.pushRun(t,i),o.mergeRuns(),a-=i,t+=i}while(a!==0);o.forceMergeRuns()}}var $r=1,tc=2,ol=4,rw=!1;function nm(){rw||(rw=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function nw(r,e){return r.zlevel===e.zlevel?r.z===e.z?r.z2-e.z2:r.z-e.z:r.zlevel-e.zlevel}var Fz=(function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=nw}return r.prototype.traverse=function(e,t){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(e,t)},r.prototype.getDisplayList=function(e,t){t=t||!1;var n=this._displayList;return(e||!n.length)&&this.updateDisplayList(t),n},r.prototype.updateDisplayList=function(e){this._displayListLen=0;for(var t=this._roots,n=this._displayList,a=0,i=t.length;a<i;a++)this._updateAndAddDisplayable(t[a],null,e);n.length=this._displayListLen,wv(n,nw)},r.prototype._updateAndAddDisplayable=function(e,t,n){if(!(e.ignore&&!n)){e.beforeUpdate(),e.update(),e.afterUpdate();var a=e.getClipPath(),i=t&&t.length,o=0,s=e.__clipPaths;if(!e.ignoreClip&&(i||a)){if(s||(s=e.__clipPaths=[]),i)for(var l=0;l<t.length;l++)s[o++]=t[l];for(var u=a,c=e;u;)u.parent=c,u.updateTransform(),s[o++]=u,c=u,u=u.getClipPath()}if(s&&(s.length=o),e.childrenRef){for(var f=e.childrenRef(),v=0;v<f.length;v++){var h=f[v];e.__dirty&&(h.__dirty|=$r),this._updateAndAddDisplayable(h,s,n)}e.__dirty=0}else{var d=e;isNaN(d.z)&&(nm(),d.z=0),isNaN(d.z2)&&(nm(),d.z2=0),isNaN(d.zlevel)&&(nm(),d.zlevel=0),this._displayList[this._displayListLen++]=d}var p=e.getDecalElement&&e.getDecalElement();p&&this._updateAndAddDisplayable(p,s,n);var g=e.getTextGuideLine();g&&this._updateAndAddDisplayable(g,s,n);var m=e.getTextContent();m&&this._updateAndAddDisplayable(m,s,n)}},r.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},r.prototype.delRoot=function(e){if(e instanceof Array){for(var t=0,n=e.length;t<n;t++)this.delRoot(e[t]);return}var a=ke(this._roots,e);a>=0&&this._roots.splice(a,1)},r.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},r.prototype.getRoots=function(){return this._roots},r.prototype.dispose=function(){this._displayList=null,this._roots=null},r})(),aw;aw=k.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};var am=aw,rc={linear:function(r){return r},quadraticIn:function(r){return r*r},quadraticOut:function(r){return r*(2-r)},quadraticInOut:function(r){return(r*=2)<1?.5*r*r:-.5*(--r*(r-2)-1)},cubicIn:function(r){return r*r*r},cubicOut:function(r){return--r*r*r+1},cubicInOut:function(r){return(r*=2)<1?.5*r*r*r:.5*((r-=2)*r*r+2)},quarticIn:function(r){return r*r*r*r},quarticOut:function(r){return 1- --r*r*r*r},quarticInOut:function(r){return(r*=2)<1?.5*r*r*r*r:-.5*((r-=2)*r*r*r-2)},quinticIn:function(r){return r*r*r*r*r},quinticOut:function(r){return--r*r*r*r*r+1},quinticInOut:function(r){return(r*=2)<1?.5*r*r*r*r*r:.5*((r-=2)*r*r*r*r+2)},sinusoidalIn:function(r){return 1-Math.cos(r*Math.PI/2)},sinusoidalOut:function(r){return Math.sin(r*Math.PI/2)},sinusoidalInOut:function(r){return .5*(1-Math.cos(Math.PI*r))},exponentialIn:function(r){return r===0?0:Math.pow(1024,r-1)},exponentialOut:function(r){return r===1?1:1-Math.pow(2,-10*r)},exponentialInOut:function(r){return r===0?0:r===1?1:(r*=2)<1?.5*Math.pow(1024,r-1):.5*(-Math.pow(2,-10*(r-1))+2)},circularIn:function(r){return 1-Math.sqrt(1-r*r)},circularOut:function(r){return Math.sqrt(1- --r*r)},circularInOut:function(r){return(r*=2)<1?-.5*(Math.sqrt(1-r*r)-1):.5*(Math.sqrt(1-(r-=2)*r)+1)},elasticIn:function(r){var e,t=.1,n=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=n/4):e=n*Math.asin(1/t)/(2*Math.PI),-(t*Math.pow(2,10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/n)))},elasticOut:function(r){var e,t=.1,n=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=n/4):e=n*Math.asin(1/t)/(2*Math.PI),t*Math.pow(2,-10*r)*Math.sin((r-e)*(2*Math.PI)/n)+1)},elasticInOut:function(r){var e,t=.1,n=.4;return r===0?0:r===1?1:(!t||t<1?(t=1,e=n/4):e=n*Math.asin(1/t)/(2*Math.PI),(r*=2)<1?-.5*(t*Math.pow(2,10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/n)):t*Math.pow(2,-10*(r-=1))*Math.sin((r-e)*(2*Math.PI)/n)*.5+1)},backIn:function(r){var e=1.70158;return r*r*((e+1)*r-e)},backOut:function(r){var e=1.70158;return--r*r*((e+1)*r+e)+1},backInOut:function(r){var e=2.5949095;return(r*=2)<1?.5*(r*r*((e+1)*r-e)):.5*((r-=2)*r*((e+1)*r+e)+2)},bounceIn:function(r){return 1-rc.bounceOut(1-r)},bounceOut:function(r){return r<1/2.75?7.5625*r*r:r<2/2.75?7.5625*(r-=1.5/2.75)*r+.75:r<2.5/2.75?7.5625*(r-=2.25/2.75)*r+.9375:7.5625*(r-=2.625/2.75)*r+.984375},bounceInOut:function(r){return r<.5?rc.bounceIn(r*2)*.5:rc.bounceOut(r*2-1)*.5+.5}},Cv=Math.pow,Ci=Math.sqrt,Tv=1e-8,iw=1e-4,ow=Ci(3),Dv=1/3,Qn=bi(),pn=bi(),sl=bi();function Ti(r){return r>-Tv&&r<Tv}function sw(r){return r>Tv||r<-Tv}function ir(r,e,t,n,a){var i=1-a;return i*i*(i*r+3*a*e)+a*a*(a*n+3*i*t)}function lw(r,e,t,n,a){var i=1-a;return 3*(((e-r)*i+2*(t-e)*a)*i+(n-t)*a*a)}function Av(r,e,t,n,a,i){var o=n+3*(e-t)-r,s=3*(t-e*2+r),l=3*(e-r),u=r-a,c=s*s-3*o*l,f=s*l-9*o*u,v=l*l-3*s*u,h=0;if(Ti(c)&&Ti(f))if(Ti(s))i[0]=0;else{var d=-l/s;d>=0&&d<=1&&(i[h++]=d)}else{var p=f*f-4*c*v;if(Ti(p)){var g=f/c,d=-s/o+g,m=-g/2;d>=0&&d<=1&&(i[h++]=d),m>=0&&m<=1&&(i[h++]=m)}else if(p>0){var y=Ci(p),b=c*s+1.5*o*(-f+y),S=c*s+1.5*o*(-f-y);b<0?b=-Cv(-b,Dv):b=Cv(b,Dv),S<0?S=-Cv(-S,Dv):S=Cv(S,Dv);var d=(-s-(b+S))/(3*o);d>=0&&d<=1&&(i[h++]=d)}else{var C=(2*c*s-3*o*f)/(2*Ci(c*c*c)),T=Math.acos(C)/3,D=Ci(c),L=Math.cos(T),d=(-s-2*D*L)/(3*o),m=(-s+D*(L+ow*Math.sin(T)))/(3*o),M=(-s+D*(L-ow*Math.sin(T)))/(3*o);d>=0&&d<=1&&(i[h++]=d),m>=0&&m<=1&&(i[h++]=m),M>=0&&M<=1&&(i[h++]=M)}}return h}function uw(r,e,t,n,a){var i=6*t-12*e+6*r,o=9*e+3*n-3*r-9*t,s=3*e-3*r,l=0;if(Ti(o)){if(sw(i)){var u=-s/i;u>=0&&u<=1&&(a[l++]=u)}}else{var c=i*i-4*o*s;if(Ti(c))a[0]=-i/(2*o);else if(c>0){var f=Ci(c),u=(-i+f)/(2*o),v=(-i-f)/(2*o);u>=0&&u<=1&&(a[l++]=u),v>=0&&v<=1&&(a[l++]=v)}}return l}function Di(r,e,t,n,a,i){var o=(e-r)*a+r,s=(t-e)*a+e,l=(n-t)*a+t,u=(s-o)*a+o,c=(l-s)*a+s,f=(c-u)*a+u;i[0]=r,i[1]=o,i[2]=u,i[3]=f,i[4]=f,i[5]=c,i[6]=l,i[7]=n}function cw(r,e,t,n,a,i,o,s,l,u,c){var f,v=.005,h=1/0,d,p,g,m;Qn[0]=l,Qn[1]=u;for(var y=0;y<1;y+=.05)pn[0]=ir(r,t,a,o,y),pn[1]=ir(e,n,i,s,y),g=xi(Qn,pn),g<h&&(f=y,h=g);h=1/0;for(var b=0;b<32&&!(v<iw);b++)d=f-v,p=f+v,pn[0]=ir(r,t,a,o,d),pn[1]=ir(e,n,i,s,d),g=xi(pn,Qn),d>=0&&g<h?(f=d,h=g):(sl[0]=ir(r,t,a,o,p),sl[1]=ir(e,n,i,s,p),m=xi(sl,Qn),p<=1&&m<h?(f=p,h=m):v*=.5);return c&&(c[0]=ir(r,t,a,o,f),c[1]=ir(e,n,i,s,f)),Ci(h)}function Gz(r,e,t,n,a,i,o,s,l){for(var u=r,c=e,f=0,v=1/l,h=1;h<=l;h++){var d=h*v,p=ir(r,t,a,o,d),g=ir(e,n,i,s,d),m=p-u,y=g-c;f+=Math.sqrt(m*m+y*y),u=p,c=g}return f}function cr(r,e,t,n){var a=1-n;return a*(a*r+2*n*e)+n*n*t}function im(r,e,t,n){return 2*((1-n)*(e-r)+n*(t-e))}function Hz(r,e,t,n,a){var i=r-2*e+t,o=2*(e-r),s=r-n,l=0;if(Ti(i)){if(sw(o)){var u=-s/o;u>=0&&u<=1&&(a[l++]=u)}}else{var c=o*o-4*i*s;if(Ti(c)){var u=-o/(2*i);u>=0&&u<=1&&(a[l++]=u)}else if(c>0){var f=Ci(c),u=(-o+f)/(2*i),v=(-o-f)/(2*i);u>=0&&u<=1&&(a[l++]=u),v>=0&&v<=1&&(a[l++]=v)}}return l}function fw(r,e,t){var n=r+t-2*e;return n===0?.5:(r-e)/n}function nc(r,e,t,n,a){var i=(e-r)*n+r,o=(t-e)*n+e,s=(o-i)*n+i;a[0]=r,a[1]=i,a[2]=s,a[3]=s,a[4]=o,a[5]=t}function vw(r,e,t,n,a,i,o,s,l){var u,c=.005,f=1/0;Qn[0]=o,Qn[1]=s;for(var v=0;v<1;v+=.05){pn[0]=cr(r,t,a,v),pn[1]=cr(e,n,i,v);var h=xi(Qn,pn);h<f&&(u=v,f=h)}f=1/0;for(var d=0;d<32&&!(c<iw);d++){var p=u-c,g=u+c;pn[0]=cr(r,t,a,p),pn[1]=cr(e,n,i,p);var h=xi(pn,Qn);if(p>=0&&h<f)u=p,f=h;else{sl[0]=cr(r,t,a,g),sl[1]=cr(e,n,i,g);var m=xi(sl,Qn);g<=1&&m<f?(u=g,f=m):c*=.5}}return l&&(l[0]=cr(r,t,a,u),l[1]=cr(e,n,i,u)),Ci(f)}function Uz(r,e,t,n,a,i,o){for(var s=r,l=e,u=0,c=1/o,f=1;f<=o;f++){var v=f*c,h=cr(r,t,a,v),d=cr(e,n,i,v),p=h-s,g=d-l;u+=Math.sqrt(p*p+g*g),s=h,l=d}return u}var Wz=/cubic-bezier\(([0-9,\.e ]+)\)/;function om(r){var e=r&&Wz.exec(r);if(e){var t=e[1].split(","),n=+Qr(t[0]),a=+Qr(t[1]),i=+Qr(t[2]),o=+Qr(t[3]);if(isNaN(n+a+i+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:Av(0,n,i,1,l,s)&&ir(0,a,o,1,s[0])}}}var Yz=(function(){function r(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||Ot,this.ondestroy=e.ondestroy||Ot,this.onrestart=e.onrestart||Ot,e.easing&&this.setEasing(e.easing)}return r.prototype.step=function(e,t){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),this._paused){this._pausedTime+=t;return}var n=this._life,a=e-this._startTime-this._pausedTime,i=a/n;i<0&&(i=0),i=Math.min(i,1);var o=this.easingFunc,s=o?o(i):i;if(this.onframe(s),i===1)if(this.loop){var l=a%n;this._startTime=e-l,this._pausedTime=0,this.onrestart()}else return!0;return!1},r.prototype.pause=function(){this._paused=!0},r.prototype.resume=function(){this._paused=!1},r.prototype.setEasing=function(e){this.easing=e,this.easingFunc=ge(e)?e:rc[e]||om(e)},r})(),hw=(function(){function r(e){this.value=e}return r})(),$z=(function(){function r(){this._len=0}return r.prototype.insert=function(e){var t=new hw(e);return this.insertEntry(t),t},r.prototype.insertEntry=function(e){this.head?(this.tail.next=e,e.prev=this.tail,e.next=null,this.tail=e):this.head=this.tail=e,this._len++},r.prototype.remove=function(e){var t=e.prev,n=e.next;t?t.next=n:this.head=n,n?n.prev=t:this.tail=t,e.next=e.prev=null,this._len--},r.prototype.len=function(){return this._len},r.prototype.clear=function(){this.head=this.tail=null,this._len=0},r})(),ll=(function(){function r(e){this._list=new $z,this._maxSize=10,this._map={},this._maxSize=e}return r.prototype.put=function(e,t){var n=this._list,a=this._map,i=null;if(a[e]==null){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=n.head;n.remove(l),delete a[l.key],i=l.value,this._lastRemovedEntry=l}s?s.value=t:s=new hw(t),s.key=e,n.insertEntry(s),a[e]=s}return i},r.prototype.get=function(e){var t=this._map[e],n=this._list;if(t!=null)return t!==n.tail&&(n.remove(t),n.insertEntry(t)),t.value},r.prototype.clear=function(){this._list.clear(),this._map={}},r.prototype.len=function(){return this._list.len()},r})(),dw={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 On(r){return r=Math.round(r),r<0?0:r>255?255:r}function qz(r){return r=Math.round(r),r<0?0:r>360?360:r}function ac(r){return r<0?0:r>1?1:r}function Mv(r){var e=r;return e.length&&e.charAt(e.length-1)==="%"?On(parseFloat(e)/100*255):On(parseInt(e,10))}function Wa(r){var e=r;return e.length&&e.charAt(e.length-1)==="%"?ac(parseFloat(e)/100):ac(parseFloat(e))}function sm(r,e,t){return t<0?t+=1:t>1&&(t-=1),t*6<1?r+(e-r)*t*6:t*2<1?e:t*3<2?r+(e-r)*(2/3-t)*6:r}function Ai(r,e,t){return r+(e-r)*t}function gn(r,e,t,n,a){return r[0]=e,r[1]=t,r[2]=n,r[3]=a,r}function lm(r,e){return r[0]=e[0],r[1]=e[1],r[2]=e[2],r[3]=e[3],r}var pw=new ll(20),Lv=null;function ul(r,e){Lv&&lm(Lv,e),Lv=pw.put(r,Lv||e.slice())}function Ar(r,e){if(r){e=e||[];var t=pw.get(r);if(t)return lm(e