UNPKG

mingfu-ui

Version:

基于elementPlus表格进行二次封装的组件库

14 lines (12 loc) 679 kB
(function(ht,D){typeof exports=="object"&&typeof module!="undefined"?D(exports,require("vue"),require("axios"),require("element-plus"),require("@popperjs/core")):typeof define=="function"&&define.amd?define(["exports","vue","axios","element-plus","@popperjs/core"],D):(ht=typeof globalThis!="undefined"?globalThis:ht||self,D(ht.MingFuUi={},ht.Vue,ht.axios,ht.ElementPlus,ht["@popperjs/core"]))})(this,function(ht,D,_t,Ar,wo){var Qn,go;"use strict";var OR=Object.defineProperty,RR=Object.defineProperties;var BR=Object.getOwnPropertyDescriptors;var vw=Object.getOwnPropertySymbols;var VR=Object.prototype.hasOwnProperty,FR=Object.prototype.propertyIsEnumerable;var dw=(ht,D,_t)=>D in ht?OR(ht,D,{enumerable:!0,configurable:!0,writable:!0,value:_t}):ht[D]=_t,he=(ht,D)=>{for(var _t in D||(D={}))VR.call(D,_t)&&dw(ht,_t,D[_t]);if(vw)for(var _t of vw(D))FR.call(D,_t)&&dw(ht,_t,D[_t]);return ht},_o=(ht,D)=>RR(ht,BR(D));var pw=(ht,D,_t)=>{if(!D.has(ht))throw TypeError("Cannot "+_t)};var qi=(ht,D,_t)=>(pw(ht,D,"read from private field"),_t?_t.call(ht):D.get(ht)),Sv=(ht,D,_t)=>{if(D.has(ht))throw TypeError("Cannot add the same private member more than once");D instanceof WeakSet?D.add(ht):D.set(ht,_t)},gw=(ht,D,_t,Ar)=>(pw(ht,D,"write to private field"),Ar?Ar.call(ht,_t):D.set(ht,_t),_t);var So=(ht,D,_t)=>new Promise((Ar,wo)=>{var Ki=fr=>{try{Qi(_t.next(fr))}catch(Pe){wo(Pe)}},V=fr=>{try{Qi(_t.throw(fr))}catch(Pe){wo(Pe)}},Qi=fr=>fr.done?Ar(fr.value):Promise.resolve(fr.value).then(Ki,V);Qi((_t=_t.apply(ht,D)).next())});/*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */var Ki=function(r,t){return Ki=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])},Ki(r,t)};function V(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Ki(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}var Qi=function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r}(),fr=function(){function r(){this.browser=new Qi,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 r}(),Pe=new fr;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(Pe.wxa=!0,Pe.touchEventsSupported=!0):typeof document=="undefined"&&typeof self!="undefined"?Pe.worker=!0:typeof navigator=="undefined"?(Pe.node=!0,Pe.svgSupported=!0):mw(navigator.userAgent,Pe);function mw(r,t){var e=t.browser,n=r.match(/Firefox\/([\d.]+)/),i=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),a=r.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(r);n&&(e.firefox=!0,e.version=n[1]),i&&(e.ie=!0,e.version=i[1]),a&&(e.edge=!0,e.version=a[1],e.newEdge=+a[1].split(".")[0]>18),o&&(e.weChat=!0),t.svgSupported=typeof SVGRect!="undefined",t.touchEventsSupported="ontouchstart"in window&&!e.ie&&!e.edge,t.pointerEventsSupported="onpointerdown"in window&&(e.edge||e.ie&&+e.version>=11),t.domSupported=typeof document!="undefined";var s=document.documentElement.style;t.transform3dSupported=(e.ie&&"transition"in s||e.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||e.ie&&+e.version>=9}const ut=Pe;var ql=12,yw="sans-serif",nn=ql+"px "+yw,_w=20,Sw=100,ww="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function bw(r){var t={};if(typeof JSON=="undefined")return t;for(var e=0;e<r.length;e++){var n=String.fromCharCode(e+32),i=(r.charCodeAt(e)-_w)/Sw;t[n]=i}return t}var xw=bw(ww),jn={createCanvas:function(){return typeof document!="undefined"&&document.createElement("canvas")},measureText:function(){var r,t;return function(e,n){if(!r){var i=jn.createCanvas();r=i&&i.getContext("2d")}if(r)return t!==n&&(t=r.font=n||nn),r.measureText(e);e=e||"",n=n||nn;var a=/(\d+)px/.exec(n),o=a&&+a[1]||ql,s=0;if(n.indexOf("mono")>=0)s=o*e.length;else for(var l=0;l<e.length;l++){var u=xw[e[l]];s+=u==null?o:u*o}return{width:s}}}(),loadImage:function(r,t,e){var n=new Image;return n.onload=t,n.onerror=e,n.src=r,n}},wv=Lr(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(r,t){return r["[object "+t+"]"]=!0,r},{}),bv=Lr(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(r,t){return r["[object "+t+"Array]"]=!0,r},{}),Jn=Object.prototype.toString,bo=Array.prototype,Tw=bo.forEach,Cw=bo.filter,Kl=bo.slice,Dw=bo.map,xv=function(){}.constructor,xo=xv?xv.prototype:null,Ql="__proto__",Mw=2311;function Tv(){return Mw++}function Er(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];typeof console!="undefined"&&console.error.apply(console,r)}function at(r){if(r==null||typeof r!="object")return r;var t=r,e=Jn.call(r);if(e==="[object Array]"){if(!Ji(r)){t=[];for(var n=0,i=r.length;n<i;n++)t[n]=at(r[n])}}else if(bv[e]){if(!Ji(r)){var a=r.constructor;if(a.from)t=a.from(r);else{t=new a(r.length);for(var n=0,i=r.length;n<i;n++)t[n]=r[n]}}}else if(!wv[e]&&!Ji(r)&&!ti(r)){t={};for(var o in r)r.hasOwnProperty(o)&&o!==Ql&&(t[o]=at(r[o]))}return t}function ot(r,t,e){if(!Z(t)||!Z(r))return e?at(t):r;for(var n in t)if(t.hasOwnProperty(n)&&n!==Ql){var i=r[n],a=t[n];Z(a)&&Z(i)&&!G(a)&&!G(i)&&!ti(a)&&!ti(i)&&!Cv(a)&&!Cv(i)&&!Ji(a)&&!Ji(i)?ot(i,a,e):(e||!(n in r))&&(r[n]=at(t[n]))}return r}function Aw(r,t){for(var e=r[0],n=1,i=r.length;n<i;n++)e=ot(e,r[n],t);return e}function F(r,t){if(Object.assign)Object.assign(r,t);else for(var e in t)t.hasOwnProperty(e)&&e!==Ql&&(r[e]=t[e]);return r}function st(r,t,e){for(var n=Dt(t),i=0;i<n.length;i++){var a=n[i];(e?t[a]!=null:r[a]==null)&&(r[a]=t[a])}return r}function ct(r,t){if(r){if(r.indexOf)return r.indexOf(t);for(var e=0,n=r.length;e<n;e++)if(r[e]===t)return e}return-1}function Ew(r,t){var e=r.prototype;function n(){}n.prototype=t.prototype,r.prototype=new n;for(var i in e)e.hasOwnProperty(i)&&(r.prototype[i]=e[i]);r.prototype.constructor=r,r.superClass=t}function ke(r,t,e){if(r="prototype"in r?r.prototype:r,t="prototype"in t?t.prototype:t,Object.getOwnPropertyNames)for(var n=Object.getOwnPropertyNames(t),i=0;i<n.length;i++){var a=n[i];a!=="constructor"&&(e?t[a]!=null:r[a]==null)&&(r[a]=t[a])}else st(r,t,e)}function qt(r){return!r||typeof r=="string"?!1:typeof r.length=="number"}function E(r,t,e){if(r&&t)if(r.forEach&&r.forEach===Tw)r.forEach(t,e);else if(r.length===+r.length)for(var n=0,i=r.length;n<i;n++)t.call(e,r[n],n,r);else for(var a in r)r.hasOwnProperty(a)&&t.call(e,r[a],a,r)}function H(r,t,e){if(!r)return[];if(!t)return jl(r);if(r.map&&r.map===Dw)return r.map(t,e);for(var n=[],i=0,a=r.length;i<a;i++)n.push(t.call(e,r[i],i,r));return n}function Lr(r,t,e,n){if(r&&t){for(var i=0,a=r.length;i<a;i++)e=t.call(n,e,r[i],i,r);return e}}function Mt(r,t,e){if(!r)return[];if(!t)return jl(r);if(r.filter&&r.filter===Cw)return r.filter(t,e);for(var n=[],i=0,a=r.length;i<a;i++)t.call(e,r[i],i,r)&&n.push(r[i]);return n}function Dt(r){if(!r)return[];if(Object.keys)return Object.keys(r);var t=[];for(var e in r)r.hasOwnProperty(e)&&t.push(e);return t}function Lw(r,t){for(var e=[],n=2;n<arguments.length;n++)e[n-2]=arguments[n];return function(){return r.apply(t,e.concat(Kl.call(arguments)))}}var Tt=xo&&Y(xo.bind)?xo.call.bind(xo.bind):Lw;function lt(r){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];return function(){return r.apply(this,t.concat(Kl.call(arguments)))}}function G(r){return Array.isArray?Array.isArray(r):Jn.call(r)==="[object Array]"}function Y(r){return typeof r=="function"}function U(r){return typeof r=="string"}function To(r){return Jn.call(r)==="[object String]"}function yt(r){return typeof r=="number"}function Z(r){var t=typeof r;return t==="function"||!!r&&t==="object"}function Cv(r){return!!wv[Jn.call(r)]}function re(r){return!!bv[Jn.call(r)]}function ti(r){return typeof r=="object"&&typeof r.nodeType=="number"&&typeof r.ownerDocument=="object"}function Co(r){return r.colorStops!=null}function Iw(r){return r.image!=null}function Dv(r){return Jn.call(r)==="[object RegExp]"}function ji(r){return r!==r}function me(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];for(var e=0,n=r.length;e<n;e++)if(r[e]!=null)return r[e]}function ft(r,t){return r!=null?r:t}function an(r,t,e){return r!=null?r:t!=null?t:e}function jl(r){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];return Kl.apply(r,t)}function Mv(r){if(typeof r=="number")return[r,r,r,r];var t=r.length;return t===2?[r[0],r[1],r[0],r[1]]:t===3?[r[0],r[1],r[2],r[1]]:r}function J(r,t){if(!r)throw new Error(t)}function Ue(r){return r==null?null:typeof r.trim=="function"?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var Av="__ec_primitive__";function Do(r){r[Av]=!0}function Ji(r){return r[Av]}var Pw=function(){function r(){this.data={}}return r.prototype.delete=function(t){var e=this.has(t);return e&&delete this.data[t],e},r.prototype.has=function(t){return this.data.hasOwnProperty(t)},r.prototype.get=function(t){return this.data[t]},r.prototype.set=function(t,e){return this.data[t]=e,this},r.prototype.keys=function(){return Dt(this.data)},r.prototype.forEach=function(t){var e=this.data;for(var n in e)e.hasOwnProperty(n)&&t(e[n],n)},r}(),Ev=typeof Map=="function";function kw(){return Ev?new Map:new Pw}var Nw=function(){function r(t){var e=G(t);this.data=kw();var n=this;t instanceof r?t.each(i):t&&E(t,i);function i(a,o){e?n.set(a,o):n.set(o,a)}}return r.prototype.hasKey=function(t){return this.data.has(t)},r.prototype.get=function(t){return this.data.get(t)},r.prototype.set=function(t,e){return this.data.set(t,e),e},r.prototype.each=function(t,e){this.data.forEach(function(n,i){t.call(e,n,i)})},r.prototype.keys=function(){var t=this.data.keys();return Ev?Array.from(t):t},r.prototype.removeKey=function(t){this.data.delete(t)},r}();function rt(r){return new Nw(r)}function Ow(r,t){for(var e=new r.constructor(r.length+t.length),n=0;n<r.length;n++)e[n]=r[n];for(var i=r.length,n=0;n<t.length;n++)e[n+i]=t[n];return e}function Mo(r,t){var e;if(Object.create)e=Object.create(r);else{var n=function(){};n.prototype=r,e=new n}return t&&F(e,t),e}function Lv(r){var t=r.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function hr(r,t){return r.hasOwnProperty(t)}function Kt(){}var Rw=180/Math.PI;function ei(r,t){return r==null&&(r=0),t==null&&(t=0),[r,t]}function Bw(r){return[r[0],r[1]]}function Iv(r,t,e){return r[0]=t[0]+e[0],r[1]=t[1]+e[1],r}function Pv(r,t,e){return r[0]=t[0]-e[0],r[1]=t[1]-e[1],r}function Vw(r){return Math.sqrt(Fw(r))}function Fw(r){return r[0]*r[0]+r[1]*r[1]}function Jl(r,t,e){return r[0]=t[0]*e,r[1]=t[1]*e,r}function tu(r,t){var e=Vw(t);return e===0?(r[0]=0,r[1]=0):(r[0]=t[0]/e,r[1]=t[1]/e),r}function eu(r,t){return Math.sqrt((r[0]-t[0])*(r[0]-t[0])+(r[1]-t[1])*(r[1]-t[1]))}var ru=eu;function zw(r,t){return(r[0]-t[0])*(r[0]-t[0])+(r[1]-t[1])*(r[1]-t[1])}var ri=zw;function Ao(r,t,e,n){return r[0]=t[0]+n*(e[0]-t[0]),r[1]=t[1]+n*(e[1]-t[1]),r}function ye(r,t,e){var n=t[0],i=t[1];return r[0]=e[0]*n+e[2]*i+e[4],r[1]=e[1]*n+e[3]*i+e[5],r}function ni(r,t,e){return r[0]=Math.min(t[0],e[0]),r[1]=Math.min(t[1],e[1]),r}function ii(r,t,e){return r[0]=Math.max(t[0],e[0]),r[1]=Math.max(t[1],e[1]),r}var ai=function(){function r(t,e){this.target=t,this.topTarget=e&&e.topTarget}return r}(),Gw=function(){function r(t){this.handler=t,t.on("mousedown",this._dragStart,this),t.on("mousemove",this._drag,this),t.on("mouseup",this._dragEnd,this)}return r.prototype._dragStart=function(t){for(var e=t.target;e&&!e.draggable;)e=e.parent||e.__hostTarget;e&&(this._draggingTarget=e,e.dragging=!0,this._x=t.offsetX,this._y=t.offsetY,this.handler.dispatchToElement(new ai(e,t),"dragstart",t.event))},r.prototype._drag=function(t){var e=this._draggingTarget;if(e){var n=t.offsetX,i=t.offsetY,a=n-this._x,o=i-this._y;this._x=n,this._y=i,e.drift(a,o,t),this.handler.dispatchToElement(new ai(e,t),"drag",t.event);var s=this.handler.findHover(n,i,e).target,l=this._dropTarget;this._dropTarget=s,e!==s&&(l&&s!==l&&this.handler.dispatchToElement(new ai(l,t),"dragleave",t.event),s&&s!==l&&this.handler.dispatchToElement(new ai(s,t),"dragenter",t.event))}},r.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new ai(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new ai(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},r}();const Hw=Gw;var Ww=function(){function r(t){t&&(this._$eventProcessor=t)}return r.prototype.on=function(t,e,n,i){this._$handlers||(this._$handlers={});var a=this._$handlers;if(typeof e=="function"&&(i=n,n=e,e=null),!n||!t)return this;var o=this._$eventProcessor;e!=null&&o&&o.normalizeQuery&&(e=o.normalizeQuery(e)),a[t]||(a[t]=[]);for(var s=0;s<a[t].length;s++)if(a[t][s].h===n)return this;var l={h:n,query:e,ctx:i||this,callAtLast:n.zrEventfulCallAtLast},u=a[t].length-1,f=a[t][u];return f&&f.callAtLast?a[t].splice(u,0,l):a[t].push(l),this},r.prototype.isSilent=function(t){var e=this._$handlers;return!e||!e[t]||!e[t].length},r.prototype.off=function(t,e){var n=this._$handlers;if(!n)return this;if(!t)return this._$handlers={},this;if(e){if(n[t]){for(var i=[],a=0,o=n[t].length;a<o;a++)n[t][a].h!==e&&i.push(n[t][a]);n[t]=i}n[t]&&n[t].length===0&&delete n[t]}else delete n[t];return this},r.prototype.trigger=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[t],a=this._$eventProcessor;if(i)for(var o=e.length,s=i.length,l=0;l<s;l++){var u=i[l];if(!(a&&a.filter&&u.query!=null&&!a.filter(t,u.query)))switch(o){case 0:u.h.call(u.ctx);break;case 1:u.h.call(u.ctx,e[0]);break;case 2:u.h.call(u.ctx,e[0],e[1]);break;default:u.h.apply(u.ctx,e);break}}return a&&a.afterTrigger&&a.afterTrigger(t),this},r.prototype.triggerWithContext=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];if(!this._$handlers)return this;var i=this._$handlers[t],a=this._$eventProcessor;if(i)for(var o=e.length,s=e[o-1],l=i.length,u=0;u<l;u++){var f=i[u];if(!(a&&a.filter&&f.query!=null&&!a.filter(t,f.query)))switch(o){case 0:f.h.call(s);break;case 1:f.h.call(s,e[0]);break;case 2:f.h.call(s,e[0],e[1]);break;default:f.h.apply(s,e.slice(1,o-1));break}}return a&&a.afterTrigger&&a.afterTrigger(t),this},r}();const Ne=Ww;var $w=Math.log(2);function nu(r,t,e,n,i,a){var o=n+"-"+i,s=r.length;if(a.hasOwnProperty(o))return a[o];if(t===1){var l=Math.round(Math.log((1<<s)-1&~i)/$w);return r[e][l]}for(var u=n|1<<e,f=e+1;n&1<<f;)f++;for(var h=0,v=0,c=0;v<s;v++){var d=1<<v;d&i||(h+=(c%2?-1:1)*r[e][v]*nu(r,t-1,f,u,i|d,a),c++)}return a[o]=h,h}function kv(r,t){var e=[[r[0],r[1],1,0,0,0,-t[0]*r[0],-t[0]*r[1]],[0,0,0,r[0],r[1],1,-t[1]*r[0],-t[1]*r[1]],[r[2],r[3],1,0,0,0,-t[2]*r[2],-t[2]*r[3]],[0,0,0,r[2],r[3],1,-t[3]*r[2],-t[3]*r[3]],[r[4],r[5],1,0,0,0,-t[4]*r[4],-t[4]*r[5]],[0,0,0,r[4],r[5],1,-t[5]*r[4],-t[5]*r[5]],[r[6],r[7],1,0,0,0,-t[6]*r[6],-t[6]*r[7]],[0,0,0,r[6],r[7],1,-t[7]*r[6],-t[7]*r[7]]],n={},i=nu(e,8,0,0,0,n);if(i!==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)*nu(e,7,o===0?1:0,1<<o,1<<s,n)/i*t[o];return function(l,u,f){var h=u*a[6]+f*a[7]+1;l[0]=(u*a[0]+f*a[1]+a[2])/h,l[1]=(u*a[3]+f*a[4]+a[5])/h}}}var Nv="___zrEVENTSAVED",iu=[];function Uw(r,t,e,n,i){return au(iu,t,n,i,!0)&&au(r,e,iu[0],iu[1])}function au(r,t,e,n,i){if(t.getBoundingClientRect&&ut.domSupported&&!Ov(t)){var a=t[Nv]||(t[Nv]={}),o=Yw(t,a),s=Xw(o,a,i);if(s)return s(r,e,n),!0}return!1}function Yw(r,t){var e=t.markers;if(e)return e;e=t.markers=[];for(var n=["left","right"],i=["top","bottom"],a=0;a<4;a++){var o=document.createElement("div"),s=o.style,l=a%2,u=(a>>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",i[u]+":0",n[1-l]+":auto",i[1-u]+":auto",""].join("!important;"),r.appendChild(o),e.push(o)}return e}function Xw(r,t,e){for(var n=e?"invTrans":"trans",i=t[n],a=t.srcCoords,o=[],s=[],l=!0,u=0;u<4;u++){var f=r[u].getBoundingClientRect(),h=2*u,v=f.left,c=f.top;o.push(v,c),l=l&&a&&v===a[h]&&c===a[h+1],s.push(r[u].offsetLeft,r[u].offsetTop)}return l&&i?i:(t.srcCoords=o,t[n]=e?kv(s,o):kv(o,s))}function Ov(r){return r.nodeName.toUpperCase()==="CANVAS"}var Zw=/([&<>"'])/g,qw={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function _e(r){return r==null?"":(r+"").replace(Zw,function(t,e){return qw[e]})}var Kw=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,ou=[],Qw=ut.browser.firefox&&+ut.browser.version.split(".")[0]<39;function su(r,t,e,n){return e=e||{},n?Rv(r,t,e):Qw&&t.layerX!=null&&t.layerX!==t.offsetX?(e.zrX=t.layerX,e.zrY=t.layerY):t.offsetX!=null?(e.zrX=t.offsetX,e.zrY=t.offsetY):Rv(r,t,e),e}function Rv(r,t,e){if(ut.domSupported&&r.getBoundingClientRect){var n=t.clientX,i=t.clientY;if(Ov(r)){var a=r.getBoundingClientRect();e.zrX=n-a.left,e.zrY=i-a.top;return}else if(au(ou,r,n,i)){e.zrX=ou[0],e.zrY=ou[1];return}}e.zrX=e.zrY=0}function lu(r){return r||window.event}function Se(r,t,e){if(t=lu(t),t.zrX!=null)return t;var n=t.type,i=n&&n.indexOf("touch")>=0;if(i){var o=n!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&su(r,o,t,e)}else{su(r,t,t,e);var a=jw(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&Kw.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function jw(r){var t=r.wheelDelta;if(t)return t;var e=r.deltaX,n=r.deltaY;if(e==null||n==null)return t;var i=Math.abs(n!==0?n:e),a=n>0?-1:n<0?1:e>0?-1:1;return 3*i*a}function uu(r,t,e,n){r.addEventListener(t,e,n)}function Jw(r,t,e,n){r.removeEventListener(t,e,n)}var Bv=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0},tb=function(){function r(){this._track=[]}return r.prototype.recognize=function(t,e,n){return this._doTrack(t,e,n),this._recognize(t)},r.prototype.clear=function(){return this._track.length=0,this},r.prototype._doTrack=function(t,e,n){var i=t.touches;if(i){for(var a={points:[],touches:[],target:e,event:t},o=0,s=i.length;o<s;o++){var l=i[o],u=su(n,l,{});a.points.push([u.zrX,u.zrY]),a.touches.push(l)}this._track.push(a)}},r.prototype._recognize=function(t){for(var e in fu)if(fu.hasOwnProperty(e)){var n=fu[e](this._track,t);if(n)return n}},r}();function Vv(r){var t=r[1][0]-r[0][0],e=r[1][1]-r[0][1];return Math.sqrt(t*t+e*e)}function eb(r){return[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]}var fu={pinch:function(r,t){var e=r.length;if(e){var n=(r[e-1]||{}).points,i=(r[e-2]||{}).points||n;if(i&&i.length>1&&n&&n.length>1){var a=Vv(n)/Vv(i);!isFinite(a)&&(a=1),t.pinchScale=a;var o=eb(n);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:r[0].target,event:t}}}}};function ta(){return[1,0,0,1,0,0]}function hu(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function rb(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r[4]=t[4],r[5]=t[5],r}function oi(r,t,e){var n=t[0]*e[0]+t[2]*e[1],i=t[1]*e[0]+t[3]*e[1],a=t[0]*e[2]+t[2]*e[3],o=t[1]*e[2]+t[3]*e[3],s=t[0]*e[4]+t[2]*e[5]+t[4],l=t[1]*e[4]+t[3]*e[5]+t[5];return r[0]=n,r[1]=i,r[2]=a,r[3]=o,r[4]=s,r[5]=l,r}function cu(r,t,e){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r[4]=t[4]+e[0],r[5]=t[5]+e[1],r}function vu(r,t,e){var n=t[0],i=t[2],a=t[4],o=t[1],s=t[3],l=t[5],u=Math.sin(e),f=Math.cos(e);return r[0]=n*f+o*u,r[1]=-n*u+o*f,r[2]=i*f+s*u,r[3]=-i*u+f*s,r[4]=f*a+u*l,r[5]=f*l-u*a,r}function nb(r,t,e){var n=e[0],i=e[1];return r[0]=t[0]*n,r[1]=t[1]*i,r[2]=t[2]*n,r[3]=t[3]*i,r[4]=t[4]*n,r[5]=t[5]*i,r}function Eo(r,t){var e=t[0],n=t[2],i=t[4],a=t[1],o=t[3],s=t[5],l=e*o-a*n;return l?(l=1/l,r[0]=o*l,r[1]=-a*l,r[2]=-n*l,r[3]=e*l,r[4]=(n*s-o*i)*l,r[5]=(a*i-e*s)*l,r):null}var ib=function(){function r(t,e){this.x=t||0,this.y=e||0}return r.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},r.prototype.clone=function(){return new r(this.x,this.y)},r.prototype.set=function(t,e){return this.x=t,this.y=e,this},r.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},r.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},r.prototype.scale=function(t){this.x*=t,this.y*=t},r.prototype.scaleAndAdd=function(t,e){this.x+=t.x*e,this.y+=t.y*e},r.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},r.prototype.dot=function(t){return this.x*t.x+this.y*t.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 t=this.len();return this.x/=t,this.y/=t,this},r.prototype.distance=function(t){var e=this.x-t.x,n=this.y-t.y;return Math.sqrt(e*e+n*n)},r.prototype.distanceSquare=function(t){var e=this.x-t.x,n=this.y-t.y;return e*e+n*n},r.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},r.prototype.transform=function(t){if(t){var e=this.x,n=this.y;return this.x=t[0]*e+t[2]*n+t[4],this.y=t[1]*e+t[3]*n+t[5],this}},r.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},r.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},r.set=function(t,e,n){t.x=e,t.y=n},r.copy=function(t,e){t.x=e.x,t.y=e.y},r.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},r.lenSquare=function(t){return t.x*t.x+t.y*t.y},r.dot=function(t,e){return t.x*e.x+t.y*e.y},r.add=function(t,e,n){t.x=e.x+n.x,t.y=e.y+n.y},r.sub=function(t,e,n){t.x=e.x-n.x,t.y=e.y-n.y},r.scale=function(t,e,n){t.x=e.x*n,t.y=e.y*n},r.scaleAndAdd=function(t,e,n,i){t.x=e.x+n.x*i,t.y=e.y+n.y*i},r.lerp=function(t,e,n,i){var a=1-i;t.x=a*e.x+i*n.x,t.y=a*e.y+i*n.y},r}();const K=ib;var Lo=Math.min,Io=Math.max,on=new K,sn=new K,ln=new K,un=new K,ea=new K,ra=new K,ab=function(){function r(t,e,n,i){n<0&&(t=t+n,n=-n),i<0&&(e=e+i,i=-i),this.x=t,this.y=e,this.width=n,this.height=i}return r.prototype.union=function(t){var e=Lo(t.x,this.x),n=Lo(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Io(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=Io(t.y+t.height,this.y+this.height)-n:this.height=t.height,this.x=e,this.y=n},r.prototype.applyTransform=function(t){r.applyTransform(this,this,t)},r.prototype.calculateTransform=function(t){var e=this,n=t.width/e.width,i=t.height/e.height,a=ta();return cu(a,a,[-e.x,-e.y]),nb(a,a,[n,i]),cu(a,a,[t.x,t.y]),a},r.prototype.intersect=function(t,e){if(!t)return!1;t instanceof r||(t=r.create(t));var n=this,i=n.x,a=n.x+n.width,o=n.y,s=n.y+n.height,l=t.x,u=t.x+t.width,f=t.y,h=t.y+t.height,v=!(a<l||u<i||s<f||h<o);if(e){var c=1/0,d=0,g=Math.abs(a-l),p=Math.abs(u-i),m=Math.abs(s-f),y=Math.abs(h-o),_=Math.min(g,p),S=Math.min(m,y);a<l||u<i?_>d&&(d=_,g<p?K.set(ra,-g,0):K.set(ra,p,0)):_<c&&(c=_,g<p?K.set(ea,g,0):K.set(ea,-p,0)),s<f||h<o?S>d&&(d=S,m<y?K.set(ra,0,-m):K.set(ra,0,y)):_<c&&(c=_,m<y?K.set(ea,0,m):K.set(ea,0,-y))}return e&&K.copy(e,v?ea:ra),v},r.prototype.contain=function(t,e){var n=this;return t>=n.x&&t<=n.x+n.width&&e>=n.y&&e<=n.y+n.height},r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height)},r.prototype.copy=function(t){r.copy(this,t)},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(t){return new r(t.x,t.y,t.width,t.height)},r.copy=function(t,e){t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height},r.applyTransform=function(t,e,n){if(!n){t!==e&&r.copy(t,e);return}if(n[1]<1e-5&&n[1]>-1e-5&&n[2]<1e-5&&n[2]>-1e-5){var i=n[0],a=n[3],o=n[4],s=n[5];t.x=e.x*i+o,t.y=e.y*a+s,t.width=e.width*i,t.height=e.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}on.x=ln.x=e.x,on.y=un.y=e.y,sn.x=un.x=e.x+e.width,sn.y=ln.y=e.y+e.height,on.transform(n),un.transform(n),sn.transform(n),ln.transform(n),t.x=Lo(on.x,sn.x,ln.x,un.x),t.y=Lo(on.y,sn.y,ln.y,un.y);var l=Io(on.x,sn.x,ln.x,un.x),u=Io(on.y,sn.y,ln.y,un.y);t.width=l-t.x,t.height=u-t.y},r}();const gt=ab;var Fv="silent";function ob(r,t,e){return{type:r,event:e,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:e.zrX,offsetY:e.zrY,gestureEvent:e.gestureEvent,pinchX:e.pinchX,pinchY:e.pinchY,pinchScale:e.pinchScale,wheelDelta:e.zrDelta,zrByTouch:e.zrByTouch,which:e.which,stop:sb}}function sb(){Bv(this.event)}var lb=function(r){V(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.handler=null,e}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(Ne),na=function(){function r(t,e){this.x=t,this.y=e}return r}(),ub=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],du=new gt(0,0,0,0),zv=function(r){V(t,r);function t(e,n,i,a,o){var s=r.call(this)||this;return s._hovered=new na(0,0),s.storage=e,s.painter=n,s.painterRoot=a,s._pointerSize=o,i=i||new lb,s.proxy=null,s.setHandlerProxy(i),s._draggingMgr=new Hw(s),s}return t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(E(ub,function(n){e.on&&e.on(n,this[n],this)},this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var n=e.zrX,i=e.zrY,a=Hv(this,n,i),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var l=this._hovered=a?new na(n,i):this.findHover(n,i),u=l.target,f=this.proxy;f.setCursor&&f.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",e),this.dispatchToElement(l,"mousemove",e),u&&u!==s&&this.dispatchToElement(l,"mouseover",e)},t.prototype.mouseout=function(e){var n=e.zrEventControl;n!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",e),n!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:e})},t.prototype.resize=function(){this._hovered=new na(0,0)},t.prototype.dispatch=function(e,n){var i=this[e];i&&i.call(this,n)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var n=this.proxy;n.setCursor&&n.setCursor(e)},t.prototype.dispatchToElement=function(e,n,i){e=e||{};var a=e.target;if(!(a&&a.silent)){for(var o="on"+n,s=ob(n,e,i);a&&(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(n,s),a=a.__hostTarget?a.__hostTarget:a.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)}))}},t.prototype.findHover=function(e,n,i){var a=this.storage.getDisplayList(),o=new na(e,n);if(Gv(a,o,e,n,i),this._pointerSize&&!o.target){for(var s=[],l=this._pointerSize,u=l/2,f=new gt(e-u,n-u,l,l),h=a.length-1;h>=0;h--){var v=a[h];v!==i&&!v.ignore&&!v.ignoreCoarsePointer&&(!v.parent||!v.parent.ignoreCoarsePointer)&&(du.copy(v.getBoundingRect()),v.transform&&du.applyTransform(v.transform),du.intersect(f)&&s.push(v))}if(s.length)for(var c=4,d=Math.PI/12,g=Math.PI*2,p=0;p<u;p+=c)for(var m=0;m<g;m+=d){var y=e+p*Math.cos(m),_=n+p*Math.sin(m);if(Gv(s,o,y,_,i),o.target)return o}}return o},t.prototype.processGesture=function(e,n){this._gestureMgr||(this._gestureMgr=new tb);var i=this._gestureMgr;n==="start"&&i.clear();var a=i.recognize(e,this.findHover(e.zrX,e.zrY,null).target,this.proxy.dom);if(n==="end"&&i.clear(),a){var o=a.type;e.gestureEvent=o;var s=new na;s.target=a.target,this.dispatchToElement(s,o,a.event)}},t}(Ne);E(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(r){zv.prototype[r]=function(t){var e=t.zrX,n=t.zrY,i=Hv(this,e,n),a,o;if((r!=="mouseup"||!i)&&(a=this.findHover(e,n),o=a.target),r==="mousedown")this._downEl=o,this._downPoint=[t.zrX,t.zrY],this._upEl=o;else if(r==="mouseup")this._upEl=o;else if(r==="click"){if(this._downEl!==this._upEl||!this._downPoint||ru(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,r,t)}});function fb(r,t,e){if(r[r.rectHover?"rectContain":"contain"](t,e)){for(var n=r,i=void 0,a=!1;n;){if(n.ignoreClip&&(a=!0),!a){var o=n.getClipPath();if(o&&!o.contain(t,e))return!1;n.silent&&(i=!0)}var s=n.__hostTarget;n=s||n.parent}return i?Fv:!0}return!1}function Gv(r,t,e,n,i){for(var a=r.length-1;a>=0;a--){var o=r[a],s=void 0;if(o!==i&&!o.ignore&&(s=fb(o,e,n))&&(!t.topTarget&&(t.topTarget=o),s!==Fv)){t.target=o;break}}}function Hv(r,t,e){var n=r.painter;return t<0||t>n.getWidth()||e<0||e>n.getHeight()}const hb=zv;var Wv=32,ia=7;function cb(r){for(var t=0;r>=Wv;)t|=r&1,r>>=1;return r+t}function $v(r,t,e,n){var i=t+1;if(i===e)return 1;if(n(r[i++],r[t])<0){for(;i<e&&n(r[i],r[i-1])<0;)i++;vb(r,t,i)}else for(;i<e&&n(r[i],r[i-1])>=0;)i++;return i-t}function vb(r,t,e){for(e--;t<e;){var n=r[t];r[t++]=r[e],r[e--]=n}}function Uv(r,t,e,n,i){for(n===t&&n++;n<e;n++){for(var a=r[n],o=t,s=n,l;o<s;)l=o+s>>>1,i(a,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]=a}}function pu(r,t,e,n,i,a){var o=0,s=0,l=1;if(a(r,t[e+i])>0){for(s=n-i;l<s&&a(r,t[e+i+l])>0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}else{for(s=i+1;l<s&&a(r,t[e+i-l])<=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=i-l,l=i-u}for(o++;o<l;){var f=o+(l-o>>>1);a(r,t[e+f])>0?o=f+1:l=f}return l}function gu(r,t,e,n,i,a){var o=0,s=0,l=1;if(a(r,t[e+i])<0){for(s=i+1;l<s&&a(r,t[e+i-l])<0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s);var u=o;o=i-l,l=i-u}else{for(s=n-i;l<s&&a(r,t[e+i+l])>=0;)o=l,l=(l<<1)+1,l<=0&&(l=s);l>s&&(l=s),o+=i,l+=i}for(o++;o<l;){var f=o+(l-o>>>1);a(r,t[e+f])<0?l=f:o=f+1}return l}function db(r,t){var e=ia,n,i,a=0;r.length;var o=[];n=[],i=[];function s(c,d){n[a]=c,i[a]=d,a+=1}function l(){for(;a>1;){var c=a-2;if(c>=1&&i[c-1]<=i[c]+i[c+1]||c>=2&&i[c-2]<=i[c]+i[c-1])i[c-1]<i[c+1]&&c--;else if(i[c]>i[c+1])break;f(c)}}function u(){for(;a>1;){var c=a-2;c>0&&i[c-1]<i[c+1]&&c--,f(c)}}function f(c){var d=n[c],g=i[c],p=n[c+1],m=i[c+1];i[c]=g+m,c===a-3&&(n[c+1]=n[c+2],i[c+1]=i[c+2]),a--;var y=gu(r[p],r,d,g,0,t);d+=y,g-=y,g!==0&&(m=pu(r[d+g-1],r,p,m,m-1,t),m!==0&&(g<=m?h(d,g,p,m):v(d,g,p,m)))}function h(c,d,g,p){var m=0;for(m=0;m<d;m++)o[m]=r[c+m];var y=0,_=g,S=c;if(r[S++]=r[_++],--p===0){for(m=0;m<d;m++)r[S+m]=o[y+m];return}if(d===1){for(m=0;m<p;m++)r[S+m]=r[_+m];r[S+p]=o[y];return}for(var b=e,w,x,T;;){w=0,x=0,T=!1;do if(t(r[_],o[y])<0){if(r[S++]=r[_++],x++,w=0,--p===0){T=!0;break}}else if(r[S++]=o[y++],w++,x=0,--d===1){T=!0;break}while((w|x)<b);if(T)break;do{if(w=gu(r[_],o,y,d,0,t),w!==0){for(m=0;m<w;m++)r[S+m]=o[y+m];if(S+=w,y+=w,d-=w,d<=1){T=!0;break}}if(r[S++]=r[_++],--p===0){T=!0;break}if(x=pu(o[y],r,_,p,0,t),x!==0){for(m=0;m<x;m++)r[S+m]=r[_+m];if(S+=x,_+=x,p-=x,p===0){T=!0;break}}if(r[S++]=o[y++],--d===1){T=!0;break}b--}while(w>=ia||x>=ia);if(T)break;b<0&&(b=0),b+=2}if(e=b,e<1&&(e=1),d===1){for(m=0;m<p;m++)r[S+m]=r[_+m];r[S+p]=o[y]}else{if(d===0)throw new Error;for(m=0;m<d;m++)r[S+m]=o[y+m]}}function v(c,d,g,p){var m=0;for(m=0;m<p;m++)o[m]=r[g+m];var y=c+d-1,_=p-1,S=g+p-1,b=0,w=0;if(r[S--]=r[y--],--d===0){for(b=S-(p-1),m=0;m<p;m++)r[b+m]=o[m];return}if(p===1){for(S-=d,y-=d,w=S+1,b=y+1,m=d-1;m>=0;m--)r[w+m]=r[b+m];r[S]=o[_];return}for(var x=e;;){var T=0,M=0,A=!1;do if(t(o[_],r[y])<0){if(r[S--]=r[y--],T++,M=0,--d===0){A=!0;break}}else if(r[S--]=o[_--],M++,T=0,--p===1){A=!0;break}while((T|M)<x);if(A)break;do{if(T=d-gu(o[_],r,c,d,d-1,t),T!==0){for(S-=T,y-=T,d-=T,w=S+1,b=y+1,m=T-1;m>=0;m--)r[w+m]=r[b+m];if(d===0){A=!0;break}}if(r[S--]=o[_--],--p===1){A=!0;break}if(M=p-pu(r[y],o,0,p,p-1,t),M!==0){for(S-=M,_-=M,p-=M,w=S+1,b=_+1,m=0;m<M;m++)r[w+m]=o[b+m];if(p<=1){A=!0;break}}if(r[S--]=r[y--],--d===0){A=!0;break}x--}while(T>=ia||M>=ia);if(A)break;x<0&&(x=0),x+=2}if(e=x,e<1&&(e=1),p===1){for(S-=d,y-=d,w=S+1,b=y+1,m=d-1;m>=0;m--)r[w+m]=r[b+m];r[S]=o[_]}else{if(p===0)throw new Error;for(b=S-(p-1),m=0;m<p;m++)r[b+m]=o[m]}}return{mergeRuns:l,forceMergeRuns:u,pushRun:s}}function Po(r,t,e,n){e||(e=0),n||(n=r.length);var i=n-e;if(!(i<2)){var a=0;if(i<Wv){a=$v(r,e,n,t),Uv(r,e,n,e+a,t);return}var o=db(r,t),s=cb(i);do{if(a=$v(r,e,n,t),a<s){var l=i;l>s&&(l=s),Uv(r,e,e+l,e+a,t),a=l}o.pushRun(e,a),o.mergeRuns(),i-=a,e+=a}while(i!==0);o.forceMergeRuns()}}var ce=1,aa=2,si=4,Yv=!1;function mu(){Yv||(Yv=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Xv(r,t){return r.zlevel===t.zlevel?r.z===t.z?r.z2-t.z2:r.z-t.z:r.zlevel-t.zlevel}var pb=function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Xv}return r.prototype.traverse=function(t,e){for(var n=0;n<this._roots.length;n++)this._roots[n].traverse(t,e)},r.prototype.getDisplayList=function(t,e){e=e||!1;var n=this._displayList;return(t||!n.length)&&this.updateDisplayList(e),n},r.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var e=this._roots,n=this._displayList,i=0,a=e.length;i<a;i++)this._updateAndAddDisplayable(e[i],null,t);n.length=this._displayListLen,Po(n,Xv)},r.prototype._updateAndAddDisplayable=function(t,e,n){if(!(t.ignore&&!n)){t.beforeUpdate(),t.update(),t.afterUpdate();var i=t.getClipPath();if(t.ignoreClip)e=null;else if(i){e?e=e.slice():e=[];for(var a=i,o=t;a;)a.parent=o,a.updateTransform(),e.push(a),o=a,a=a.getClipPath()}if(t.childrenRef){for(var s=t.childrenRef(),l=0;l<s.length;l++){var u=s[l];t.__dirty&&(u.__dirty|=ce),this._updateAndAddDisplayable(u,e,n)}t.__dirty=0}else{var f=t;e&&e.length?f.__clipPaths=e:f.__clipPaths&&f.__clipPaths.length>0&&(f.__clipPaths=[]),isNaN(f.z)&&(mu(),f.z=0),isNaN(f.z2)&&(mu(),f.z2=0),isNaN(f.zlevel)&&(mu(),f.zlevel=0),this._displayList[this._displayListLen++]=f}var h=t.getDecalElement&&t.getDecalElement();h&&this._updateAndAddDisplayable(h,e,n);var v=t.getTextGuideLine();v&&this._updateAndAddDisplayable(v,e,n);var c=t.getTextContent();c&&this._updateAndAddDisplayable(c,e,n)}},r.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},r.prototype.delRoot=function(t){if(t instanceof Array){for(var e=0,n=t.length;e<n;e++)this.delRoot(t[e]);return}var i=ct(this._roots,t);i>=0&&this._roots.splice(i,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}();const gb=pb;var Zv;Zv=ut.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};const yu=Zv;var ko={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 t,e=.1,n=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=n/4):t=n*Math.asin(1/e)/(2*Math.PI),-(e*Math.pow(2,10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/n)))},elasticOut:function(r){var t,e=.1,n=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=n/4):t=n*Math.asin(1/e)/(2*Math.PI),e*Math.pow(2,-10*r)*Math.sin((r-t)*(2*Math.PI)/n)+1)},elasticInOut:function(r){var t,e=.1,n=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=n/4):t=n*Math.asin(1/e)/(2*Math.PI),(r*=2)<1?-.5*(e*Math.pow(2,10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/n)):e*Math.pow(2,-10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/n)*.5+1)},backIn:function(r){var t=1.70158;return r*r*((t+1)*r-t)},backOut:function(r){var t=1.70158;return--r*r*((t+1)*r+t)+1},backInOut:function(r){var t=2.5949095;return(r*=2)<1?.5*(r*r*((t+1)*r-t)):.5*((r-=2)*r*((t+1)*r+t)+2)},bounceIn:function(r){return 1-ko.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?ko.bounceIn(r*2)*.5:ko.bounceOut(r*2-1)*.5+.5}};const qv=ko;var No=Math.pow,Ir=Math.sqrt,Oo=1e-8,Kv=1e-4,Qv=Ir(3),Ro=1/3,Ye=ei(),we=ei(),li=ei();function Pr(r){return r>-Oo&&r<Oo}function jv(r){return r>Oo||r<-Oo}function Rt(r,t,e,n,i){var a=1-i;return a*a*(a*r+3*i*t)+i*i*(i*n+3*a*e)}function Jv(r,t,e,n,i){var a=1-i;return 3*(((t-r)*a+2*(e-t)*i)*a+(n-e)*i*i)}function Bo(r,t,e,n,i,a){var o=n+3*(t-e)-r,s=3*(e-t*2+r),l=3*(t-r),u=r-i,f=s*s-3*o*l,h=s*l-9*o*u,v=l*l-3*s*u,c=0;if(Pr(f)&&Pr(h))if(Pr(s))a[0]=0;else{var d=-l/s;d>=0&&d<=1&&(a[c++]=d)}else{var g=h*h-4*f*v;if(Pr(g)){var p=h/f,d=-s/o+p,m=-p/2;d>=0&&d<=1&&(a[c++]=d),m>=0&&m<=1&&(a[c++]=m)}else if(g>0){var y=Ir(g),_=f*s+1.5*o*(-h+y),S=f*s+1.5*o*(-h-y);_<0?_=-No(-_,Ro):_=No(_,Ro),S<0?S=-No(-S,Ro):S=No(S,Ro);var d=(-s-(_+S))/(3*o);d>=0&&d<=1&&(a[c++]=d)}else{var b=(2*f*s-3*o*h)/(2*Ir(f*f*f)),w=Math.acos(b)/3,x=Ir(f),T=Math.cos(w),d=(-s-2*x*T)/(3*o),m=(-s+x*(T+Qv*Math.sin(w)))/(3*o),M=(-s+x*(T-Qv*Math.sin(w)))/(3*o);d>=0&&d<=1&&(a[c++]=d),m>=0&&m<=1&&(a[c++]=m),M>=0&&M<=1&&(a[c++]=M)}}return c}function td(r,t,e,n,i){var a=6*e-12*t+6*r,o=9*t+3*n-3*r-9*e,s=3*t-3*r,l=0;if(Pr(o)){if(jv(a)){var u=-s/a;u>=0&&u<=1&&(i[l++]=u)}}else{var f=a*a-4*o*s;if(Pr(f))i[0]=-a/(2*o);else if(f>0){var h=Ir(f),u=(-a+h)/(2*o),v=(-a-h)/(2*o);u>=0&&u<=1&&(i[l++]=u),v>=0&&v<=1&&(i[l++]=v)}}return l}function kr(r,t,e,n,i,a){var o=(t-r)*i+r,s=(e-t)*i+t,l=(n-e)*i+e,u=(s-o)*i+o,f=(l-s)*i+s,h=(f-u)*i+u;a[0]=r,a[1]=o,a[2]=u,a[3]=h,a[4]=h,a[5]=f,a[6]=l,a[7]=n}function ed(r,t,e,n,i,a,o,s,l,u,f){var h,v=.005,c=1/0,d,g,p,m;Ye[0]=l,Ye[1]=u;for(var y=0;y<1;y+=.05)we[0]=Rt(r,e,i,o,y),we[1]=Rt(t,n,a,s,y),p=ri(Ye,we),p<c&&(h=y,c=p);c=1/0;for(var _=0;_<32&&!(v<Kv);_++)d=h-v,g=h+v,we[0]=Rt(r,e,i,o,d),we[1]=Rt(t,n,a,s,d),p=ri(we,Ye),d>=0&&p<c?(h=d,c=p):(li[0]=Rt(r,e,i,o,g),li[1]=Rt(t,n,a,s,g),m=ri(li,Ye),g<=1&&m<c?(h=g,c=m):v*=.5);return f&&(f[0]=Rt(r,e,i,o,h),f[1]=Rt(t,n,a,s,h)),Ir(c)}function mb(r,t,e,n,i,a,o,s,l){for(var u=r,f=t,h=0,v=1/l,c=1;c<=l;c++){var d=c*v,g=Rt(r,e,i,o,d),p=Rt(t,n,a,s,d),m=g-u,y=p-f;h+=Math.sqrt(m*m+y*y),u=g,f=p}return h}function $t(r,t,e,n){var i=1-n;return i*(i*r+2*n*t)+n*n*e}function rd(r,t,e,n){return 2*((1-n)*(t-r)+n*(e-t))}function yb(r,t,e,n,i){var a=r-2*t+e,o=2*(t-r),s=r-n,l=0;if(Pr(a)){if(jv(o)){var u=-s/o;u>=0&&u<=1&&(i[l++]=u)}}else{var f=o*o-4*a*s;if(Pr(f)){var u=-o/(2*a);u>=0&&u<=1&&(i[l++]=u)}else if(f>0){var h=Ir(f),u=(-o+h)/(2*a),v=(-o-h)/(2*a);u>=0&&u<=1&&(i[l++]=u),v>=0&&v<=1&&(i[l++]=v)}}return l}function nd(r,t,e){var n=r+e-2*t;return n===0?.5:(r-t)/n}function Vo(r,t,e,n,i){var a=(t-r)*n+r,o=(e-t)*n+t,s=(o-a)*n+a;i[0]=r,i[1]=a,i[2]=s,i[3]=s,i[4]=o,i[5]=e}function id(r,t,e,n,i,a,o,s,l){var u,f=.005,h=1/0;Ye[0]=o,Ye[1]=s;for(var v=0;v<1;v+=.05){we[0]=$t(r,e,i,v),we[1]=$t(t,n,a,v);var c=ri(Ye,we);c<h&&(u=v,h=c)}h=1/0;for(var d=0;d<32&&!(f<Kv);d++){var g=u-f,p=u+f;we[0]=$t(r,e,i,g),we[1]=$t(t,n,a,g);var c=ri(we,Ye);if(g>=0&&c<h)u=g,h=c;else{li[0]=$t(r,e,i,p),li[1]=$t(t,n,a,p);var m=ri(li,Ye);p<=1&&m<h?(u=p,h=m):f*=.5}}return l&&(l[0]=$t(r,e,i,u),l[1]=$t(t,n,a,u)),Ir(h)}function _b(r,t,e,n,i,a,o){for(var s=r,l=t,u=0,f=1/o,h=1;h<=o;h++){var v=h*f,c=$t(r,e,i,v),d=$t(t,n,a,v),g=c-s,p=d-l;u+=Math.sqrt(g*g+p*p),s=c,l=d}return u}var Sb=/cubic-bezier\(([0-9,\.e ]+)\)/;function ad(r){var t=r&&Sb.exec(r);if(t){var e=t[1].split(","),n=+Ue(e[0]),i=+Ue(e[1]),a=+Ue(e[2]),o=+Ue(e[3]);if(isNaN(n+i+a+o))return;var s=[];return function(l){return l<=0?0:l>=1?1:Bo(0,n,a,1,l,s)&&Rt(0,i,o,1,s[0])}}}var wb=function(){function r(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||Kt,this.ondestroy=t.ondestroy||Kt,this.onrestart=t.onrestart||Kt,t.easing&&this.setEasing(t.easing)}return r.prototype.step=function(t,e){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=e;return}var n=this._life,i=t-this._startTime-this._pausedTime,a=i/n;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 l=i%n;this._startTime=t-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(t){this.easing=t,this.easingFunc=Y(t)?t:qv[t]||ad(t)},r}();const bb=wb;var od=function(){function r(t){this.value=t}return r}(),xb=function(){function r(){this._len=0}return r.prototype.insert=function(t){var e=new od(t);return this.insertEntry(e),e},r.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++},r.prototype.remove=function(t){var e=t.prev,n=t.next;e?e.next=n:this.head=n,n?n.prev=e:this.tail=e,t.next=t.prev=null,this._len--},r.prototype.len=function(){return this._len},r.prototype.clear=function(){this.head=this.tail=null,this._len=0},r}(),Tb=function(){function r(t){this._list=new xb,this._maxSize=10,this._map={},this._maxSize=t}return r.prototype.put=function(t,e){var n=this._list,i=this._map,a=null;if(i[t]==null){var o=n.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var l=n.head;n.remove(l),delete i[l.key],a=l.value,this._lastRemovedEntry=l}s?s.value=e:s=new od(e),s.key=t,n.insertEntry(s),i[t]=s}return a},r.prototype.get=function(t){var e=this._map[t],n=this._list;if(e!=null)return e!==n.tail&&(n.remove(e),n.insertEntry(e)),e.value},r.prototype.clear=function(){this._list.clear(),this._map={}},r.prototype.len=function(){return this._list.len()},r}();const oa=Tb;var sd={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 Nr(r){return r=Math.round(r),r<0?0:r>255?255:r}function Fo(r){return r<0?0:r>1?1:r}function _u(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?Nr(parseFloat(t)/100*255):Nr(parseInt(t,10))}function sa(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?Fo(parseFloat(t)/100):Fo(parseFloat(t))}function Su(r,t,e){return e<0?e+=1:e>1&&(e-=1),e*6<1?r+(t-r)*e*6:e*2<1?t:e*3<2?r+(t-r)*(2/3-e)*6:r}function zo(r,t,e){return r+(t-r)*e}function be(r,t,e,n,i){return r[0]=t,r[1]=e,r[2]=n,r[3]=i,r}function wu(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r}var ld=new oa(20),Go=null;function ui(r,t){Go&&wu(Go,t),Go=ld.put(r,Go||t.slice())}function Xe(r,t){if(r){t=t||[];var e=ld.get(r);if(e)return wu(t,e);r=r+"";var n=r.replace(/ /g,"").toLowerCase();if(n in sd)return wu(t,sd[n]),ui(r,t),t;var i=n.length;if(n.charAt(0)==="#"){if(i===4||i===5){var a=parseInt(n.slice(1,4),16);if(!(a>=0&&a<=4095)){be(t,0,0,0,1);return}return be(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,i===5?parseInt(n.slice(4),16)/15:1),ui(r,t),t}else if(i===7||i===9){var a=parseInt(n.slice(1,7),16);if(!(a>=0&&a<=16777215)){be(t,0,0,0,1);return}return be(t,(a&16711680)>>16,(a&65280)>>8,a&255,i===9?parseInt(n.slice(7),16)/255:1),ui(r,t),t}return}var o=n.indexOf("("),s=n.indexOf(")");if(o!==-1&&s+1===i){var l=n.substr(0,o),u=n.substr(o+1,s-(o+1)).split(","),f=1;switch(l){case"rgba":if(u.length!==4)return u.length===3?be(t,+u[0],+u[1],+u[2],1):be(t,0,0,0,1);f=sa(u.pop());case"rgb":if(u.length>=3)return be(t,_u(u[0]),_u(u[1]),_u(u[2]),u.length===3?f:sa(u[3])),ui(r,t),t;be(t,0,0,0,1);return;case"hsla":if(u.length!==4){be(t,0,0,0,1);return}return u[3]=sa(u[3]),ud(u,t),ui(r,t),t;case"hsl":if(u.length!==3){be(t,0,0,0,1);return}return ud(u,t),ui(r,t),t;default:return}}be(t,0,0,0,1)}}function ud(r,t){var e=(parseFloat(r[0])%360+360)%360/360,n=sa(r[1]),i=sa(r[2]),a=i<=.5?i*(n+1):i+n-i*n,o=i*2-a;return t=t||[],be(t,Nr(Su(o,a,e+1/3)*255),Nr(Su(o,a,e)*255),Nr(Su(o,a,e-1/3)*255),1),r.length===4&&(t[3]=r[3]),t}function fd(r,t){var e=Xe(r);if(e){for(var n=0;n<3;n++)t<0?e[n]=e[n]*(1-t)|0:e[n]=(255-e[n])*t+e[n]|0,e[n]>255?e[n]=255:e[n]<0&&(e[n]=0);return la(e,e.length===4?"rgba":"rgb")}}function Cb(r,t,e){if(!(!(t&&t.length)||!(r>=0&&r<=1))){var n=r*(t.length-1),i=Math.floor(n),a=Math.ceil(n),o=Xe(t[i]),s=Xe(t[a]),l=n-i,u=la([Nr(zo(o[0],s[0],l)),Nr(zo(o[1],s[1],l)),Nr(zo(o[2],s[2],l)),Fo(zo(o[3],s[3],l))],"rgba");return e?{color:u,leftIndex:i,rightIndex:a,value:n}:u}}function hd(r,t){var e=Xe(r);if(e&&t!=null)return e[3]=Fo(t),la(e,"rgba")}function la(r,t){if(!(!r||!r.length)){var e=r[0]+","+r[1]+","+r[2];return(t===