@kubex/zinc 1.1.32 → 1.1.34

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. package/dist/chunks/zn.4YKYUIHS.js +3 -0
  2. package/dist/chunks/zn.6RARZYEJ.js +22 -0
  3. package/dist/chunks/zn.7VCR5ZZL.js +1 -0
  4. package/dist/chunks/zn.AI3T35DX.js +1 -0
  5. package/dist/chunks/zn.CU5HCKLN.js +1 -0
  6. package/dist/chunks/zn.EHO4QQOL.js +1 -0
  7. package/dist/chunks/zn.GBBMMHHG.js +8 -0
  8. package/dist/chunks/zn.GRJSS6IO.js +1 -0
  9. package/dist/chunks/zn.HPUEBV7K.js +1 -0
  10. package/dist/chunks/zn.J2JOUV3V.js +8 -0
  11. package/dist/chunks/zn.NKUIXDNI.js +1 -0
  12. package/dist/chunks/zn.S4ZVBYAS.js +3 -0
  13. package/dist/chunks/zn.UBLZO6CI.js +1 -0
  14. package/dist/chunks/zn.XO7QERPZ.js +716 -0
  15. package/dist/chunks/zn.ZGI3WHSG.js +4 -0
  16. package/dist/custom-elements.json +134 -75
  17. package/dist/vscode.html-custom-data.json +11 -11
  18. package/dist/web-types.json +23 -23
  19. package/dist/zn.d.ts +21 -0
  20. package/dist/zn.min.js +1309 -2041
  21. package/index.html +1 -1
  22. package/package.json +3 -3
  23. package/scripts/build.js +10 -5
  24. package/src/components/chart/chart.component.ts +20 -27
  25. package/src/components/chart/echarts-loader.ts +30 -0
  26. package/src/components/editor/modules/emoji/emoji-mart-loader.ts +28 -0
  27. package/src/components/editor/modules/emoji/emoji.ts +3 -9
  28. package/src/components/editor/modules/emoji/headless/headless-emoji.ts +2 -9
  29. package/src/components/icon/icon.component.ts +34 -2
  30. package/src/components/icon-picker/icon-picker.component.ts +35 -35
  31. package/src/components/settings-container/settings-container.scss +2 -2
  32. package/src/components/simple-chart/simple-chart.component.ts +15 -6
  33. package/src/zinc-autoloader.ts +0 -2
  34. package/tsconfig.json +2 -1
@@ -0,0 +1 @@
1
+ import{$d as R,Lc as O,N as E,Pc as w,X as d,be as U,de as F,ee as V,sa as D,vc as N}from"./zn.GBBMMHHG.js";import{R as y,p as x,q as C,w as M,x as h,y as I}from"./zn.J2JOUV3V.js";var B=(function(){function r(e){this.coordSysDims=[],this.axisMap=y(),this.categoryAxisMap=y(),this.coordSysName=e}return r})();function _(r){var e=r.get("coordinateSystem"),t=new B(e),o=T[e];if(o)return o(r,t,t.axisMap,t.categoryAxisMap),t}var T={cartesian2d:function(r,e,t,o){var i=r.getReferringComponents("xAxis",d).models[0],n=r.getReferringComponents("yAxis",d).models[0];e.coordSysDims=["x","y"],t.set("x",i),t.set("y",n),m(i)&&(o.set("x",i),e.firstCategoryDimIndex=0),m(n)&&(o.set("y",n),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},singleAxis:function(r,e,t,o){var i=r.getReferringComponents("singleAxis",d).models[0];e.coordSysDims=["single"],t.set("single",i),m(i)&&(o.set("single",i),e.firstCategoryDimIndex=0)},polar:function(r,e,t,o){var i=r.getReferringComponents("polar",d).models[0],n=i.findAxisModel("radiusAxis"),a=i.findAxisModel("angleAxis");e.coordSysDims=["radius","angle"],t.set("radius",n),t.set("angle",a),m(n)&&(o.set("radius",n),e.firstCategoryDimIndex=0),m(a)&&(o.set("angle",a),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=1))},geo:function(r,e,t,o){e.coordSysDims=["lng","lat"]},parallel:function(r,e,t,o){var i=r.ecModel,n=i.getComponent("parallel",r.get("parallelIndex")),a=e.coordSysDims=n.dimensions.slice();x(n.parallelAxisIndex,function(l,s){var f=i.getComponent("parallelAxis",l),c=a[s];t.set(c,f),m(f)&&(o.set(c,f),e.firstCategoryDimIndex==null&&(e.firstCategoryDimIndex=s))})},matrix:function(r,e,t,o){var i=r.getReferringComponents("matrix",d).models[0];e.coordSysDims=["x","y"];var n=i.getDimensionModel("x"),a=i.getDimensionModel("y");t.set("x",n),t.set("y",a),o.set("x",n),o.set("y",a)}};function m(r){return r.get("type")==="category"}function j(r,e){var t=r.get("coordinateSystem"),o=N.get(t),i;return e&&e.coordSysDims&&(i=C(e.coordSysDims,function(n){var a={name:n},l=e.axisMap.get(n);if(l){var s=l.get("type");a.type=R(s)}return a})),i||(i=o&&(o.getDimensionsInfo?o.getDimensionsInfo():o.dimensions.slice())||["x","y"]),i}function H(r,e,t){var o,i;return t&&x(r,function(n,a){var l=n.coordDim,s=t.categoryAxisMap.get(l);s&&(o==null&&(o=a),n.ordinalMeta=s.getOrdinalMeta(),e&&(n.createInvertedIndices=!0)),n.otherDims.itemName!=null&&(i=!0)}),!i&&o!=null&&(r[o].otherDims.itemName=0),o}function L(r,e,t){t=t||{};var o=e.getSourceManager(),i,n=!1;r?(n=!0,i=w(r)):(i=o.getSource(),n=i.sourceFormat===D);var a=_(e),l=j(e,a),s=t.useEncodeDefaulter,f=I(s)?s:s?M(O,l,e):null,c={coordDimensions:l,generateCoord:t.generateCoord,encodeDefine:e.getEncode(),encodeDefaulter:f,canOmitUnusedDimensions:!n},g=F(i,c),p=H(g.dimensions,t.createInvertedIndices,a),v=n?null:o.getSharedDataStore(g),z=V(e,{schema:g,store:v}),u=new U(g,e);u.setCalculationInfo(z);var G=p!=null&&q(i)?function(b,k,S,A){return A===p?S:this.defaultDimValueGetter(b,k,S,A)}:null;return u.hasItemOption=!1,u.initData(n?i:v,null,G),u}function q(r){if(r.sourceFormat===D){var e=J(r.data||[]);return!h(E(e))}}function J(r){for(var e=0;e<r.length&&r[e]==null;)e++;return r[e]}var se=L;export{se as a};
@@ -0,0 +1,8 @@
1
+ import{b as Kr}from"./zn.UBLZO6CI.js";var xs=(function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r})(),Ts=(function(){function r(){this.browser=new xs,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})(),Bt=new Ts;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(Bt.wxa=!0,Bt.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?Bt.worker=!0:!Bt.hasGlobalWindow||"Deno"in window||typeof navigator<"u"&&typeof navigator.userAgent=="string"&&navigator.userAgent.indexOf("Node.js")>-1?(Bt.node=!0,Bt.svgSupported=!0):ws(navigator.userAgent,Bt);function ws(r,t){var e=t.browser,i=r.match(/Firefox\/([\d.]+)/),n=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),a=r.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(r);i&&(e.firefox=!0,e.version=i[1]),n&&(e.ie=!0,e.version=n[1]),a&&(e.edge=!0,e.version=a[1],e.newEdge=+a[1].split(".")[0]>18),o&&(e.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!e.ie&&!e.edge,t.pointerEventsSupported="onpointerdown"in window&&(e.edge||e.ie&&+e.version>=11);var s=t.domSupported=typeof document<"u";if(s){var f=document.documentElement.style;t.transform3dSupported=(e.ie&&"transition"in f||e.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in f)&&!("OTransition"in f),t.transformSupported=t.transform3dSupported||e.ie&&+e.version>=9}}var I=Bt;var Se=12,bs="sans-serif",rt=Se+"px "+bs,Ss=20,Cs=100,Ps="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function Es(r){var t={};if(typeof JSON>"u")return t;for(var e=0;e<r.length;e++){var i=String.fromCharCode(e+32),n=(r.charCodeAt(e)-Ss)/Cs;t[i]=n}return t}var Rs=Es(Ps),K={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:(function(){var r,t;return function(e,i){if(!r){var n=K.createCanvas();r=n&&n.getContext("2d")}if(r)return t!==i&&(t=r.font=i||rt),r.measureText(e);e=e||"",i=i||rt;var a=/((?:\d+)?\.?\d*)px/.exec(i),o=a&&+a[1]||Se,s=0;if(i.indexOf("mono")>=0)s=o*e.length;else for(var f=0;f<e.length;f++){var u=Rs[e[f]];s+=u==null?o:u*o}return{width:s}}})(),loadImage:function(r,t,e){var i=new Image;return i.onload=t,i.onerror=e,i.src=r,i},getTime:function(){return Date.now?Date.now():+new Date}};function Ih(r){for(var t in K)K.hasOwnProperty(t)&&r[t]&&(K[t]=r[t])}var Or={};Kr(Or,{EPSILON:()=>js,HashMap:()=>ea,RADIAN_TO_DEGREE:()=>ar,assert:()=>Xs,assignProps:()=>xi,bind:()=>Ns,clone:()=>Ht,concatArray:()=>Ks,createCanvas:()=>Fs,createHashMap:()=>Vs,createObject:()=>Pt,curry:()=>zs,defaults:()=>et,disableUserSelect:()=>Qs,each:()=>z,eqNaN:()=>wi,extend:()=>O,filter:()=>Me,find:()=>Bs,guid:()=>Qr,hasOwn:()=>$s,indexOf:()=>Q,inherits:()=>Is,isArray:()=>Mr,isArrayLike:()=>$,isBuiltInObject:()=>_i,isDom:()=>Pe,isFunction:()=>_t,isGradientObject:()=>ir,isImagePatternObject:()=>Ws,isNumber:()=>er,isObject:()=>Ct,isPrimitive:()=>Rr,isRegExp:()=>Gs,isString:()=>Nt,isStringSafe:()=>Ys,isTypedArray:()=>Ti,keys:()=>B,logError:()=>$r,map:()=>ht,merge:()=>yi,mergeAll:()=>As,mixin:()=>Re,noop:()=>Et,normalizeCssArray:()=>Si,reduce:()=>rr,retrieve:()=>Us,retrieve2:()=>H,retrieve3:()=>nr,setAsPrimitive:()=>qs,slice:()=>bi,trim:()=>zt});var jn=rr(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(r,t){return r["[object "+t+"]"]=!0,r},{}),Jn=rr(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(r,t){return r["[object "+t+"Array]"]=!0,r},{}),Lr=Object.prototype.toString,Ee=Array.prototype,Ms=Ee.forEach,Ls=Ee.filter,mi=Ee.slice,Os=Ee.map,$n=function(){}.constructor,Ce=$n?$n.prototype:null,gi="__proto__",di=2311,Ds=Math.pow(2,53)-1;function Qr(){return di>=Ds&&(di=0),di++}function $r(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];typeof console<"u"&&console.error.apply(console,r)}function Ht(r){if(r==null||typeof r!="object")return r;var t=r,e=Lr.call(r);if(e==="[object Array]"){if(!Rr(r)){t=[];for(var i=0,n=r.length;i<n;i++)t[i]=Ht(r[i])}}else if(Jn[e]){if(!Rr(r)){var a=r.constructor;if(a.from)t=a.from(r);else{t=new a(r.length);for(var i=0,n=r.length;i<n;i++)t[i]=r[i]}}}else if(!jn[e]&&!Rr(r)&&!Pe(r)){t={};for(var o in r)r.hasOwnProperty(o)&&o!==gi&&(t[o]=Ht(r[o]))}return t}function yi(r,t,e){if(!Ct(t)||!Ct(r))return e?Ht(t):r;for(var i in t)if(t.hasOwnProperty(i)&&i!==gi){var n=r[i],a=t[i];Ct(a)&&Ct(n)&&!Mr(a)&&!Mr(n)&&!Pe(a)&&!Pe(n)&&!_i(a)&&!_i(n)&&!Rr(a)&&!Rr(n)?yi(n,a,e):(e||!(i in r))&&(r[i]=Ht(t[i]))}return r}function As(r,t){for(var e=r[0],i=1,n=r.length;i<n;i++)e=yi(e,r[i],t);return e}function O(r,t){if(Object.assign)Object.assign(r,t);else for(var e in t)t.hasOwnProperty(e)&&e!==gi&&(r[e]=t[e]);return r}function xi(r,t,e){r=r||{};for(var i=0;i<e.length;i++){var n=e[i];r[n]=t[n]}return r}function et(r,t,e){for(var i=B(t),n=0,a=i.length;n<a;n++){var o=i[n];(e?t[o]!=null:r[o]==null)&&(r[o]=t[o])}return r}var Fs=K.createCanvas;function Q(r,t){if(r){if(r.indexOf)return r.indexOf(t);for(var e=0,i=r.length;e<i;e++)if(r[e]===t)return e}return-1}function Is(r,t){var e=r.prototype;function i(){}i.prototype=t.prototype,r.prototype=new i;for(var n in e)e.hasOwnProperty(n)&&(r.prototype[n]=e[n]);r.prototype.constructor=r,r.superClass=t}function Re(r,t,e){if(r="prototype"in r?r.prototype:r,t="prototype"in t?t.prototype:t,Object.getOwnPropertyNames)for(var i=Object.getOwnPropertyNames(t),n=0;n<i.length;n++){var a=i[n];a!=="constructor"&&(e?t[a]!=null:r[a]==null)&&(r[a]=t[a])}else et(r,t,e)}function $(r){return!r||typeof r=="string"?!1:typeof r.length=="number"}function z(r,t,e){if(r&&t)if(r.forEach&&r.forEach===Ms)r.forEach(t,e);else if(r.length===+r.length)for(var i=0,n=r.length;i<n;i++)t.call(e,r[i],i,r);else for(var a in r)r.hasOwnProperty(a)&&t.call(e,r[a],a,r)}function ht(r,t,e){if(!r)return[];if(!t)return bi(r);if(r.map&&r.map===Os)return r.map(t,e);for(var i=[],n=0,a=r.length;n<a;n++)i.push(t.call(e,r[n],n,r));return i}function rr(r,t,e,i){if(r&&t){for(var n=0,a=r.length;n<a;n++)e=t.call(i,e,r[n],n,r);return e}}function Me(r,t,e){if(!r)return[];if(!t)return bi(r);if(r.filter&&r.filter===Ls)return r.filter(t,e);for(var i=[],n=0,a=r.length;n<a;n++)t.call(e,r[n],n,r)&&i.push(r[n]);return i}function Bs(r,t,e){if(r&&t){for(var i=0,n=r.length;i<n;i++)if(t.call(e,r[i],i,r))return r[i]}}function B(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 Hs(r,t){for(var e=[],i=2;i<arguments.length;i++)e[i-2]=arguments[i];return function(){return r.apply(t,e.concat(mi.call(arguments)))}}var Ns=Ce&&_t(Ce.bind)?Ce.call.bind(Ce.bind):Hs;function zs(r){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];return function(){return r.apply(this,t.concat(mi.call(arguments)))}}function Mr(r){return Array.isArray?Array.isArray(r):Lr.call(r)==="[object Array]"}function _t(r){return typeof r=="function"}function Nt(r){return typeof r=="string"}function Ys(r){return Lr.call(r)==="[object String]"}function er(r){return typeof r=="number"}function Ct(r){var t=typeof r;return t==="function"||!!r&&t==="object"}function _i(r){return!!jn[Lr.call(r)]}function Ti(r){return!!Jn[Lr.call(r)]}function Pe(r){return typeof r=="object"&&typeof r.nodeType=="number"&&typeof r.ownerDocument=="object"}function ir(r){return r.colorStops!=null}function Ws(r){return r.image!=null}function Gs(r){return Lr.call(r)==="[object RegExp]"}function wi(r){return r!==r}function Us(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];for(var e=0,i=r.length;e<i;e++)if(r[e]!=null)return r[e]}function H(r,t){return r??t}function nr(r,t,e){return r??t??e}function bi(r){for(var t=[],e=1;e<arguments.length;e++)t[e-1]=arguments[e];return mi.apply(r,t)}function Si(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 Xs(r,t){if(!r)throw new Error(t)}function zt(r){return r==null?null:typeof r.trim=="function"?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}var ta="__ec_primitive__";function qs(r){r[ta]=!0}function Rr(r){return r[ta]}var ks=(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 B(this.data)},r.prototype.forEach=function(t){var e=this.data;for(var i in e)e.hasOwnProperty(i)&&t(e[i],i)},r})(),ra=typeof Map=="function";function Zs(){return ra?new Map:new ks}var ea=(function(){function r(t){var e=Mr(t);this.data=Zs();var i=this;t instanceof r?t.each(n):t&&z(t,n);function n(a,o){e?i.set(a,o):i.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(i,n){t.call(e,i,n)})},r.prototype.keys=function(){var t=this.data.keys();return ra?Array.from(t):t},r.prototype.removeKey=function(t){this.data.delete(t)},r})();function Vs(r){return new ea(r)}function Ks(r,t){for(var e=new r.constructor(r.length+t.length),i=0;i<r.length;i++)e[i]=r[i];for(var n=r.length,i=0;i<t.length;i++)e[i+n]=t[i];return e}function Pt(r,t){var e;if(Object.create)e=Object.create(r);else{var i=function(){};i.prototype=r,e=new i}return t&&O(e,t),e}function Qs(r){var t=r.style;t.webkitUserSelect="none",t.userSelect="none",t.webkitTapHighlightColor="rgba(0,0,0,0)",t["-webkit-touch-callout"]="none"}function $s(r,t){return r.hasOwnProperty(t)}function Et(){}var ar=180/Math.PI,js=Number.EPSILON||Math.pow(2,-52);var Dr={};Kr(Dr,{add:()=>rf,applyTransform:()=>Le,clone:()=>tf,copy:()=>Js,create:()=>Rt,dist:()=>Ei,distSquare:()=>Yt,distance:()=>ia,distanceSquare:()=>na,div:()=>ff,dot:()=>uf,len:()=>Ci,lenSquare:()=>Pi,length:()=>af,lengthSquare:()=>of,lerp:()=>vf,max:()=>te,min:()=>Jr,mul:()=>sf,negate:()=>pf,normalize:()=>lf,scale:()=>hf,scaleAndAdd:()=>ef,set:()=>jr,sub:()=>nf});function Rt(r,t){return r==null&&(r=0),t==null&&(t=0),[r,t]}function Js(r,t){return r[0]=t[0],r[1]=t[1],r}function tf(r){return[r[0],r[1]]}function jr(r,t,e){return r[0]=t,r[1]=e,r}function rf(r,t,e){return r[0]=t[0]+e[0],r[1]=t[1]+e[1],r}function ef(r,t,e,i){return r[0]=t[0]+e[0]*i,r[1]=t[1]+e[1]*i,r}function nf(r,t,e){return r[0]=t[0]-e[0],r[1]=t[1]-e[1],r}function Ci(r){return Math.sqrt(Pi(r))}var af=Ci;function Pi(r){return r[0]*r[0]+r[1]*r[1]}var of=Pi;function sf(r,t,e){return r[0]=t[0]*e[0],r[1]=t[1]*e[1],r}function ff(r,t,e){return r[0]=t[0]/e[0],r[1]=t[1]/e[1],r}function uf(r,t){return r[0]*t[0]+r[1]*t[1]}function hf(r,t,e){return r[0]=t[0]*e,r[1]=t[1]*e,r}function lf(r,t){var e=Ci(t);return e===0?(r[0]=0,r[1]=0):(r[0]=t[0]/e,r[1]=t[1]/e),r}function ia(r,t){return Math.sqrt((r[0]-t[0])*(r[0]-t[0])+(r[1]-t[1])*(r[1]-t[1]))}var Ei=ia;function na(r,t){return(r[0]-t[0])*(r[0]-t[0])+(r[1]-t[1])*(r[1]-t[1])}var Yt=na;function pf(r,t){return r[0]=-t[0],r[1]=-t[1],r}function vf(r,t,e,i){return r[0]=t[0]+i*(e[0]-t[0]),r[1]=t[1]+i*(e[1]-t[1]),r}function Le(r,t,e){var i=t[0],n=t[1];return r[0]=e[0]*i+e[2]*n+e[4],r[1]=e[1]*i+e[3]*n+e[5],r}function Jr(r,t,e){return r[0]=Math.min(t[0],e[0]),r[1]=Math.min(t[1],e[1]),r}function te(r,t,e){return r[0]=Math.max(t[0],e[0]),r[1]=Math.max(t[1],e[1]),r}var Li={};Kr(Li,{clone:()=>cf,copy:()=>Oe,create:()=>Mt,identity:()=>re,invert:()=>ie,mul:()=>ee,rotate:()=>Ri,scale:()=>Mi,translate:()=>De});function Mt(){return[1,0,0,1,0,0]}function re(r){return r[0]=1,r[1]=0,r[2]=0,r[3]=1,r[4]=0,r[5]=0,r}function Oe(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 ee(r,t,e){var i=t[0]*e[0]+t[2]*e[1],n=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],f=t[1]*e[4]+t[3]*e[5]+t[5];return r[0]=i,r[1]=n,r[2]=a,r[3]=o,r[4]=s,r[5]=f,r}function De(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 Ri(r,t,e,i){i===void 0&&(i=[0,0]);var n=t[0],a=t[2],o=t[4],s=t[1],f=t[3],u=t[5],h=Math.sin(e),l=Math.cos(e);return r[0]=n*l+s*h,r[1]=-n*h+s*l,r[2]=a*l+f*h,r[3]=-a*h+l*f,r[4]=l*(o-i[0])+h*(u-i[1])+i[0],r[5]=l*(u-i[1])-h*(o-i[0])+i[1],r}function Mi(r,t,e){var i=e[0],n=e[1];return r[0]=t[0]*i,r[1]=t[1]*n,r[2]=t[2]*i,r[3]=t[3]*n,r[4]=t[4]*i,r[5]=t[5]*n,r}function ie(r,t){var e=t[0],i=t[2],n=t[4],a=t[1],o=t[3],s=t[5],f=e*o-a*i;return f?(f=1/f,r[0]=o*f,r[1]=-a*f,r[2]=-i*f,r[3]=e*f,r[4]=(i*s-o*n)*f,r[5]=(a*n-e*s)*f,r):null}function cf(r){var t=Mt();return Oe(t,r),t}var la={};Kr(la,{fastLerp:()=>ua,fastMapToColor:()=>xf,lerp:()=>ha,lift:()=>Fi,liftColor:()=>Cf,lum:()=>or,mapToColor:()=>Tf,modifyAlpha:()=>bf,modifyHSL:()=>wf,parse:()=>Y,parseCssFloat:()=>Ut,parseCssInt:()=>Fe,random:()=>Sf,stringify:()=>Xt,toHex:()=>yf});var aa=(function(){function r(t){this.value=t}return r})();var df=(function(){function r(){this._len=0}return r.prototype.insert=function(t){var e=new aa(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,i=t.next;e?e.next=i:this.head=i,i?i.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})();var _f=(function(){function r(t){this._list=new df,this._maxSize=10,this._map={},this._maxSize=t}return r.prototype.put=function(t,e){var i=this._list,n=this._map,a=null;if(n[t]==null){var o=i.len(),s=this._lastRemovedEntry;if(o>=this._maxSize&&o>0){var f=i.head;i.remove(f),delete n[f.key],a=f.value,this._lastRemovedEntry=f}s?s.value=e:s=new aa(e),s.key=t,i.insertEntry(s),n[t]=s}return a},r.prototype.get=function(t){var e=this._map[t],i=this._list;if(e!=null)return e!==i.tail&&(i.remove(e),i.insertEntry(e)),e.value},r.prototype.clear=function(){this._list.clear(),this._map={}},r.prototype.len=function(){return this._list.len()},r})(),Wt=_f;var oa={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 lt(r){return r=Math.round(r),r<0?0:r>255?255:r}function mf(r){return r=Math.round(r),r<0?0:r>360?360:r}function ne(r){return r<0?0:r>1?1:r}function Fe(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?lt(parseFloat(t)/100*255):lt(parseInt(t,10))}function Ut(r){var t=r;return t.length&&t.charAt(t.length-1)==="%"?ne(parseFloat(t)/100):ne(parseFloat(t))}function Oi(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 Gt(r,t,e){return r+(t-r)*e}function it(r,t,e,i,n){return r[0]=t,r[1]=e,r[2]=i,r[3]=n,r}function Di(r,t){return r[0]=t[0],r[1]=t[1],r[2]=t[2],r[3]=t[3],r}var fa=new Wt(20),Ae=null;function Ar(r,t){Ae&&Di(Ae,t),Ae=fa.put(r,Ae||t.slice())}function Y(r,t){if(r){t=t||[];var e=fa.get(r);if(e)return Di(t,e);r=r+"";var i=r.replace(/ /g,"").toLowerCase();if(i in oa)return Di(t,oa[i]),Ar(r,t),t;var n=i.length;if(i.charAt(0)==="#"){if(n===4||n===5){var a=parseInt(i.slice(1,4),16);if(!(a>=0&&a<=4095)){it(t,0,0,0,1);return}return it(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,n===5?parseInt(i.slice(4),16)/15:1),Ar(r,t),t}else if(n===7||n===9){var a=parseInt(i.slice(1,7),16);if(!(a>=0&&a<=16777215)){it(t,0,0,0,1);return}return it(t,(a&16711680)>>16,(a&65280)>>8,a&255,n===9?parseInt(i.slice(7),16)/255:1),Ar(r,t),t}return}var o=i.indexOf("("),s=i.indexOf(")");if(o!==-1&&s+1===n){var f=i.substr(0,o),u=i.substr(o+1,s-(o+1)).split(","),h=1;switch(f){case"rgba":if(u.length!==4)return u.length===3?it(t,+u[0],+u[1],+u[2],1):it(t,0,0,0,1);h=Ut(u.pop());case"rgb":if(u.length>=3)return it(t,Fe(u[0]),Fe(u[1]),Fe(u[2]),u.length===3?h:Ut(u[3])),Ar(r,t),t;it(t,0,0,0,1);return;case"hsla":if(u.length!==4){it(t,0,0,0,1);return}return u[3]=Ut(u[3]),Ai(u,t),Ar(r,t),t;case"hsl":if(u.length!==3){it(t,0,0,0,1);return}return Ai(u,t),Ar(r,t),t;default:return}}it(t,0,0,0,1)}}function Ai(r,t){var e=(parseFloat(r[0])%360+360)%360/360,i=Ut(r[1]),n=Ut(r[2]),a=n<=.5?n*(i+1):n+i-n*i,o=n*2-a;return t=t||[],it(t,lt(Oi(o,a,e+1/3)*255),lt(Oi(o,a,e)*255),lt(Oi(o,a,e-1/3)*255),1),r.length===4&&(t[3]=r[3]),t}function gf(r){if(r){var t=r[0]/255,e=r[1]/255,i=r[2]/255,n=Math.min(t,e,i),a=Math.max(t,e,i),o=a-n,s=(a+n)/2,f,u;if(o===0)f=0,u=0;else{s<.5?u=o/(a+n):u=o/(2-a-n);var h=((a-t)/6+o/2)/o,l=((a-e)/6+o/2)/o,p=((a-i)/6+o/2)/o;t===a?f=p-l:e===a?f=1/3+h-p:i===a&&(f=2/3+l-h),f<0&&(f+=1),f>1&&(f-=1)}var c=[f*360,u,s];return r[3]!=null&&c.push(r[3]),c}}function Fi(r,t){var e=Y(r);if(e){for(var i=0;i<3;i++)t<0?e[i]=e[i]*(1-t)|0:e[i]=(255-e[i])*t+e[i]|0,e[i]>255?e[i]=255:e[i]<0&&(e[i]=0);return Xt(e,e.length===4?"rgba":"rgb")}}function yf(r){var t=Y(r);if(t)return((1<<24)+(t[0]<<16)+(t[1]<<8)+ +t[2]).toString(16).slice(1)}function ua(r,t,e){if(!(!(t&&t.length)||!(r>=0&&r<=1))){e=e||[];var i=r*(t.length-1),n=Math.floor(i),a=Math.ceil(i),o=t[n],s=t[a],f=i-n;return e[0]=lt(Gt(o[0],s[0],f)),e[1]=lt(Gt(o[1],s[1],f)),e[2]=lt(Gt(o[2],s[2],f)),e[3]=ne(Gt(o[3],s[3],f)),e}}var xf=ua;function ha(r,t,e){if(!(!(t&&t.length)||!(r>=0&&r<=1))){var i=r*(t.length-1),n=Math.floor(i),a=Math.ceil(i),o=Y(t[n]),s=Y(t[a]),f=i-n,u=Xt([lt(Gt(o[0],s[0],f)),lt(Gt(o[1],s[1],f)),lt(Gt(o[2],s[2],f)),ne(Gt(o[3],s[3],f))],"rgba");return e?{color:u,leftIndex:n,rightIndex:a,value:i}:u}}var Tf=ha;function wf(r,t,e,i){var n=Y(r);if(r)return n=gf(n),t!=null&&(n[0]=mf(_t(t)?t(n[0]):t)),e!=null&&(n[1]=Ut(_t(e)?e(n[1]):e)),i!=null&&(n[2]=Ut(_t(i)?i(n[2]):i)),Xt(Ai(n),"rgba")}function bf(r,t){var e=Y(r);if(e&&t!=null)return e[3]=ne(t),Xt(e,"rgba")}function Xt(r,t){if(!(!r||!r.length)){var e=r[0]+","+r[1]+","+r[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(e+=","+r[3]),t+"("+e+")"}}function or(r,t){var e=Y(r);return e?(.299*e[0]+.587*e[1]+.114*e[2])*e[3]/255+(1-e[3])*t:0}function Sf(){return Xt([Math.round(Math.random()*255),Math.round(Math.random()*255),Math.round(Math.random()*255)],"rgb")}var sa=new Wt(100);function Cf(r){if(Nt(r)){var t=sa.get(r);return t||(t=Fi(r,-.1),sa.put(r,t)),t}else if(ir(r)){var e=O({},r);return e.colorStops=ht(r.colorStops,function(i){return{offset:i.offset,color:Fi(i.color,-.1)}}),e}return r}var Bu={};Kr(Bu,{dispose:()=>Mu,disposeAll:()=>Lu,getElementSSRData:()=>Au,getInstance:()=>Ou,init:()=>Ru,registerPainter:()=>Du,registerSSRDataGetter:()=>Fu,version:()=>Iu});var Ii=function(r,t){return Ii=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,i){e.__proto__=i}||function(e,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])},Ii(r,t)};function F(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Ii(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}var Fr=(function(){function r(t,e){this.target=t,this.topTarget=e&&e.topTarget}return r})(),Pf=(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 Fr(e,t),"dragstart",t.event))},r.prototype._drag=function(t){var e=this._draggingTarget;if(e){var i=t.offsetX,n=t.offsetY,a=i-this._x,o=n-this._y;this._x=i,this._y=n,e.drift(a,o,t),this.handler.dispatchToElement(new Fr(e,t),"drag",t.event);var s=this.handler.findHover(i,n,e).target,f=this._dropTarget;this._dropTarget=s,e!==s&&(f&&s!==f&&this.handler.dispatchToElement(new Fr(f,t),"dragleave",t.event),s&&s!==f&&this.handler.dispatchToElement(new Fr(s,t),"dragenter",t.event))}},r.prototype._dragEnd=function(t){var e=this._draggingTarget;e&&(e.dragging=!1),this.handler.dispatchToElement(new Fr(e,t),"dragend",t.event),this._dropTarget&&this.handler.dispatchToElement(new Fr(this._dropTarget,t),"drop",t.event),this._draggingTarget=null,this._dropTarget=null},r})(),pa=Pf;var Ef=(function(){function r(t){t&&(this._$eventProcessor=t)}return r.prototype.on=function(t,e,i,n){this._$handlers||(this._$handlers={});var a=this._$handlers;if(typeof e=="function"&&(n=i,i=e,e=null),!i||!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===i)return this;var f={h:i,query:e,ctx:n||this,callAtLast:i.zrEventfulCallAtLast},u=a[t].length-1,h=a[t][u];return h&&h.callAtLast?a[t].splice(u,0,f):a[t].push(f),this},r.prototype.isSilent=function(t){var e=this._$handlers;return!e||!e[t]||!e[t].length},r.prototype.off=function(t,e){var i=this._$handlers;if(!i)return this;if(!t)return this._$handlers={},this;if(e){if(i[t]){for(var n=[],a=0,o=i[t].length;a<o;a++)i[t][a].h!==e&&n.push(i[t][a]);i[t]=n}i[t]&&i[t].length===0&&delete i[t]}else delete i[t];return this},r.prototype.trigger=function(t){for(var e=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];if(!this._$handlers)return this;var n=this._$handlers[t],a=this._$eventProcessor;if(n)for(var o=e.length,s=n.length,f=0;f<s;f++){var u=n[f];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=[],i=1;i<arguments.length;i++)e[i-1]=arguments[i];if(!this._$handlers)return this;var n=this._$handlers[t],a=this._$eventProcessor;if(n)for(var o=e.length,s=e[o-1],f=n.length,u=0;u<f;u++){var h=n[u];if(!(a&&a.filter&&h.query!=null&&!a.filter(t,h.query)))switch(o){case 0:h.h.call(s);break;case 1:h.h.call(s,e[0]);break;case 2:h.h.call(s,e[0],e[1]);break;default:h.h.apply(s,e.slice(1,o-1));break}}return a&&a.afterTrigger&&a.afterTrigger(t),this},r})(),Lt=Ef;var Rf=Math.log(2);function Bi(r,t,e,i,n,a){var o=i+"-"+n,s=r.length;if(a.hasOwnProperty(o))return a[o];if(t===1){var f=Math.round(Math.log((1<<s)-1&~n)/Rf);return r[e][f]}for(var u=i|1<<e,h=e+1;i&1<<h;)h++;for(var l=0,p=0,c=0;p<s;p++){var v=1<<p;v&n||(l+=(c%2?-1:1)*r[e][p]*Bi(r,t-1,h,u,n|v,a),c++)}return a[o]=l,l}function Hi(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]]],i={},n=Bi(e,8,0,0,0,i);if(n!==0){for(var a=[],o=0;o<8;o++)for(var s=0;s<8;s++)a[s]==null&&(a[s]=0),a[s]+=((o+s)%2?-1:1)*Bi(e,7,o===0?1:0,1<<o,1<<s,i)/n*t[o];return function(f,u,h){var l=u*a[6]+h*a[7]+1;f[0]=(u*a[0]+h*a[1]+a[2])/l,f[1]=(u*a[3]+h*a[4]+a[5])/l}}}var Ie="___zrEVENTSAVED",Ni=[];function Vh(r,t,e,i,n){return Be(Ni,t,i,n,!0)&&Be(r,e,Ni[0],Ni[1])}function Kh(r,t){r&&e(r),t&&e(t);function e(i){var n=i[Ie];n&&(n.clearMarkers&&n.clearMarkers(),delete i[Ie])}}function Be(r,t,e,i,n){if(t.getBoundingClientRect&&I.domSupported&&!zi(t)){var a=t[Ie]||(t[Ie]={}),o=Mf(t,a),s=Lf(o,a,n);if(s)return s(r,e,i),!0}return!1}function Mf(r,t){var e=t.markers;if(e)return e;e=t.markers=[];for(var i=["left","right"],n=["top","bottom"],a=0;a<4;a++){var o=document.createElement("div"),s=o.style,f=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",i[f]+":0",n[u]+":0",i[1-f]+":auto",n[1-u]+":auto",""].join("!important;"),r.appendChild(o),e.push(o)}return t.clearMarkers=function(){z(e,function(h){h.parentNode&&h.parentNode.removeChild(h)})},e}function Lf(r,t,e){for(var i=e?"invTrans":"trans",n=t[i],a=t.srcCoords,o=[],s=[],f=!0,u=0;u<4;u++){var h=r[u].getBoundingClientRect(),l=2*u,p=h.left,c=h.top;o.push(p,c),f=f&&a&&p===a[l]&&c===a[l+1],s.push(r[u].offsetLeft,r[u].offsetTop)}return f&&n?n:(t.srcCoords=o,t[i]=e?Hi(s,o):Hi(o,s))}function zi(r){return r.nodeName.toUpperCase()==="CANVAS"}var Of=/([&<>"'])/g,Df={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"};function Qh(r){return r==null?"":(r+"").replace(Of,function(t,e){return Df[e]})}var Af=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,Yi=[],Ff=I.browser.firefox&&+I.browser.version.split(".")[0]<39;function He(r,t,e,i){return e=e||{},i?va(r,t,e):Ff&&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):va(r,t,e),e}function va(r,t,e){if(I.domSupported&&r.getBoundingClientRect){var i=t.clientX,n=t.clientY;if(zi(r)){var a=r.getBoundingClientRect();e.zrX=i-a.left,e.zrY=n-a.top;return}else if(Be(Yi,r,i,n)){e.zrX=Yi[0],e.zrY=Yi[1];return}}e.zrX=e.zrY=0}function Ne(r){return r||window.event}function nt(r,t,e){if(t=Ne(t),t.zrX!=null)return t;var i=t.type,n=i&&i.indexOf("touch")>=0;if(n){var o=i!=="touchend"?t.targetTouches[0]:t.changedTouches[0];o&&He(r,o,t,e)}else{He(r,t,t,e);var a=If(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var s=t.button;return t.which==null&&s!==void 0&&Af.test(t.type)&&(t.which=s&1?1:s&2?3:s&4?2:0),t}function If(r){var t=r.wheelDelta;if(t)return t;var e=r.deltaX,i=r.deltaY;if(e==null||i==null)return t;var n=Math.abs(i!==0?i:e),a=i>0?-1:i<0?1:e>0?-1:1;return 3*n*a}function ca(r,t,e,i){r.addEventListener(t,e,i)}function da(r,t,e,i){r.removeEventListener(t,e,i)}var _a=function(r){r.preventDefault(),r.stopPropagation(),r.cancelBubble=!0};function tl(r){return r.which===2||r.which===3}var ya=(function(){function r(){this._track=[]}return r.prototype.recognize=function(t,e,i){return this._doTrack(t,e,i),this._recognize(t)},r.prototype.clear=function(){return this._track.length=0,this},r.prototype._doTrack=function(t,e,i){var n=t.touches;if(n){for(var a={points:[],touches:[],target:e,event:t},o=0,s=n.length;o<s;o++){var f=n[o],u=He(i,f,{});a.points.push([u.zrX,u.zrY]),a.touches.push(f)}this._track.push(a)}},r.prototype._recognize=function(t){for(var e in Wi)if(Wi.hasOwnProperty(e)){var i=Wi[e](this._track,t);if(i)return i}},r})();function ga(r){var t=r[1][0]-r[0][0],e=r[1][1]-r[0][1];return Math.sqrt(t*t+e*e)}function Bf(r){return[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]}var Wi={pinch:function(r,t){var e=r.length;if(e){var i=(r[e-1]||{}).points,n=(r[e-2]||{}).points||i;if(n&&n.length>1&&i&&i.length>1){var a=ga(i)/ga(n);!isFinite(a)&&(a=1),t.pinchScale=a;var o=Bf(i);return t.pinchX=o[0],t.pinchY=o[1],{type:"pinch",target:r[0].target,event:t}}}}};var Hf=(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,i=this.y-t.y;return Math.sqrt(e*e+i*i)},r.prototype.distanceSquare=function(t){var e=this.x-t.x,i=this.y-t.y;return e*e+i*i},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,i=this.y;return this.x=t[0]*e+t[2]*i+t[4],this.y=t[1]*e+t[3]*i+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,i){t.x=e,t.y=i},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,i){t.x=e.x+i.x,t.y=e.y+i.y},r.sub=function(t,e,i){t.x=e.x-i.x,t.y=e.y-i.y},r.scale=function(t,e,i){t.x=e.x*i,t.y=e.y*i},r.scaleAndAdd=function(t,e,i,n){t.x=e.x+i.x*n,t.y=e.y+i.y*n},r.lerp=function(t,e,i,n){var a=1-n;t.x=a*e.x+n*i.x,t.y=a*e.y+n*i.y},r})(),at=Hf;var lr=Math.min,Ir=Math.max,Xi=Math.abs,xa=["x","y"],Nf=["width","height"],sr=new at,fr=new at,ur=new at,hr=new at,j=Gf(),ae=j.minTv,qi=j.maxTv,oe=[0,0],Ot=(function(){function r(t,e,i,n){Gi(this,t,e,i,n)}return r.set=function(t,e,i,n,a){return n<0&&(e=e+n,n=-n),a<0&&(i=i+a,a=-a),t.x=e,t.y=i,t.width=n,t.height=a,t},r.prototype.union=function(t){var e=lr(t.x,this.x),i=lr(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Ir(t.x+t.width,this.x+this.width)-e:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=Ir(t.y+t.height,this.y+this.height)-i:this.height=t.height,this.x=e,this.y=i},r.prototype.applyTransform=function(t){r.applyTransform(this,this,t)},r.prototype.calculateTransform=function(t){return zf(Mt(),this,t)},r.prototype.intersect=function(t,e,i){return r.intersect(this,t,e,i)},r.intersect=function(t,e,i,n){i&&at.set(i,0,0);var a=n&&n.outIntersectRect||null,o=n&&n.clamp;if(a&&(a.x=a.y=a.width=a.height=NaN),!t||!e)return!1;t instanceof r||(t=Gi(Yf,t.x,t.y,t.width,t.height)),e instanceof r||(e=Gi(Wf,e.x,e.y,e.width,e.height));var s=!!i;j.reset(n,s);var f=j.touchThreshold,u=t.x+f,h=t.x+t.width-f,l=t.y+f,p=t.y+t.height-f,c=e.x+f,v=e.x+e.width-f,m=e.y+f,_=e.y+e.height-f;if(u>h||l>p||c>v||m>_)return!1;var d=!(h<c||v<u||p<m||_<l);return(s||a)&&(oe[0]=1/0,oe[1]=0,wa(u,h,c,v,0,s,a,o),wa(l,p,m,_,1,s,a,o),s&&at.copy(i,d?j.useDir?j.dirMinTv:ae:qi)),d},r.contain=function(t,e,i){return e>=t.x&&e<=t.x+t.width&&i>=t.y&&i<=t.y+t.height},r.prototype.contain=function(t,e){return r.contain(this,t,e)},r.prototype.clone=function(){return new r(this.x,this.y,this.width,this.height)},r.prototype.copy=function(t){Ta(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?t.x:0,t?t.y:0,t?t.width:0,t?t.height:0)},r.copy=function(t,e){return t.x=e.x,t.y=e.y,t.width=e.width,t.height=e.height,t},r.applyTransform=function(t,e,i){if(!i){t!==e&&Ta(t,e);return}if(i[1]<1e-5&&i[1]>-1e-5&&i[2]<1e-5&&i[2]>-1e-5){var n=i[0],a=i[3],o=i[4],s=i[5];t.x=e.x*n+o,t.y=e.y*a+s,t.width=e.width*n,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}sr.x=ur.x=e.x,sr.y=hr.y=e.y,fr.x=hr.x=e.x+e.width,fr.y=ur.y=e.y+e.height,sr.transform(i),hr.transform(i),fr.transform(i),ur.transform(i),t.x=lr(sr.x,fr.x,ur.x,hr.x),t.y=lr(sr.y,fr.y,ur.y,hr.y);var f=Ir(sr.x,fr.x,ur.x,hr.x),u=Ir(sr.y,fr.y,ur.y,hr.y);t.width=f-t.x,t.height=u-t.y},r.calculateTransform=function(t,e,i){var n=i.width/e.width,a=i.height/e.height;return t=re(t||[]),De(t,t,jr(Ui,-e.x,-e.y)),Mi(t,t,jr(Ui,n,a)),De(t,t,jr(Ui,i.x,i.y)),t},r})(),nl=Ot.create,Gi=Ot.set,Ta=Ot.copy,zf=Ot.calculateTransform,al=Ot.applyTransform,ol=Ot.contain,Yf=new Ot(0,0,0,0),Wf=new Ot(0,0,0,0),Ui=[];function wa(r,t,e,i,n,a,o,s){var f=Xi(t-e),u=Xi(i-r),h=lr(f,u),l=xa[n],p=xa[1-n],c=Nf[n];t<e||i<r?f<u?(a&&(qi[l]=-f),s&&(o[l]=t,o[c]=0)):(a&&(qi[l]=u),s&&(o[l]=r,o[c]=0)):(o&&(o[l]=Ir(r,e),o[c]=lr(t,i)-o[l]),a&&(h<oe[0]||j.useDir)&&(oe[0]=lr(h,oe[0]),(f<u||!j.bidirectional)&&(ae[l]=f,ae[p]=0,j.useDir&&j.calcDirMTV()),(f>=u||!j.bidirectional)&&(ae[l]=-u,ae[p]=0,j.useDir&&j.calcDirMTV())))}function Gf(){var r=0,t=new at,e=new at,i={minTv:new at,maxTv:new at,useDir:!1,dirMinTv:new at,touchThreshold:0,bidirectional:!0,negativeSize:!1,reset:function(a,o){i.touchThreshold=0,a&&a.touchThreshold!=null&&(i.touchThreshold=Ir(0,a.touchThreshold)),i.negativeSize=!1,o&&(i.minTv.set(1/0,1/0),i.maxTv.set(0,0),i.useDir=!1,a&&a.direction!=null&&(i.useDir=!0,i.dirMinTv.copy(i.minTv),e.copy(i.minTv),r=a.direction,i.bidirectional=a.bidirectional==null||!!a.bidirectional,i.bidirectional||t.set(Math.cos(r),Math.sin(r))))},calcDirMTV:function(){var a=i.minTv,o=i.dirMinTv,s=a.y*a.y+a.x*a.x,f=Math.sin(r),u=Math.cos(r),h=f*a.y+u*a.x;if(n(h)){n(a.x)&&n(a.y)&&o.set(0,0);return}if(e.x=s*u/h,e.y=s*f/h,n(e.x)&&n(e.y)){o.set(0,0);return}(i.bidirectional||t.dot(e)>0)&&e.len()<o.len()&&o.copy(e)}};function n(a){return Xi(a)<1e-10}return i}var D=Ot;var Sa="silent";function Uf(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:Xf}}function Xf(){_a(this.event)}var qf=(function(r){F(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})(Lt),se=(function(){function r(t,e){this.x=t,this.y=e}return r})(),kf=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],ki=new D(0,0,0,0),Ca=(function(r){F(t,r);function t(e,i,n,a,o){var s=r.call(this)||this;return s._hovered=new se(0,0),s.storage=e,s.painter=i,s.painterRoot=a,s._pointerSize=o,n=n||new qf,s.proxy=null,s.setHandlerProxy(n),s._draggingMgr=new pa(s),s}return t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(z(kf,function(i){e.on&&e.on(i,this[i],this)},this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var i=e.zrX,n=e.zrY,a=Pa(this,i,n),o=this._hovered,s=o.target;s&&!s.__zr&&(o=this.findHover(o.x,o.y),s=o.target);var f=this._hovered=a?new se(i,n):this.findHover(i,n),u=f.target,h=this.proxy;h.setCursor&&h.setCursor(u?u.cursor:"default"),s&&u!==s&&this.dispatchToElement(o,"mouseout",e),this.dispatchToElement(f,"mousemove",e),u&&u!==s&&this.dispatchToElement(f,"mouseover",e)},t.prototype.mouseout=function(e){var i=e.zrEventControl;i!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",e),i!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:e})},t.prototype.resize=function(){this._hovered=new se(0,0)},t.prototype.dispatch=function(e,i){var n=this[e];n&&n.call(this,i)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var i=this.proxy;i.setCursor&&i.setCursor(e)},t.prototype.dispatchToElement=function(e,i,n){e=e||{};var a=e.target;if(!(a&&a.silent)){for(var o="on"+i,s=Uf(i,e,n);a&&(a[o]&&(s.cancelBubble=!!a[o].call(a,s)),a.trigger(i,s),a=a.__hostTarget?a.__hostTarget:a.parent,!s.cancelBubble););s.cancelBubble||(this.trigger(i,s),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(f){typeof f[o]=="function"&&f[o].call(f,s),f.trigger&&f.trigger(i,s)}))}},t.prototype.findHover=function(e,i,n){var a=this.storage.getDisplayList(),o=new se(e,i);if(ba(a,o,e,i,n),this._pointerSize&&!o.target){for(var s=[],f=this._pointerSize,u=f/2,h=new D(e-u,i-u,f,f),l=a.length-1;l>=0;l--){var p=a[l];p!==n&&!p.ignore&&!p.ignoreCoarsePointer&&(!p.parent||!p.parent.ignoreCoarsePointer)&&(ki.copy(p.getBoundingRect()),p.transform&&ki.applyTransform(p.transform),ki.intersect(h)&&s.push(p))}if(s.length)for(var c=4,v=Math.PI/12,m=Math.PI*2,_=0;_<u;_+=c)for(var d=0;d<m;d+=v){var g=e+_*Math.cos(d),T=i+_*Math.sin(d);if(ba(s,o,g,T,n),o.target)return o}}return o},t.prototype.processGesture=function(e,i){this._gestureMgr||(this._gestureMgr=new ya);var n=this._gestureMgr;i==="start"&&n.clear();var a=n.recognize(e,this.findHover(e.zrX,e.zrY,null).target,this.proxy.dom);if(i==="end"&&n.clear(),a){var o=a.type;e.gestureEvent=o;var s=new se;s.target=a.target,this.dispatchToElement(s,o,a.event)}},t})(Lt);z(["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(r){Ca.prototype[r]=function(t){var e=t.zrX,i=t.zrY,n=Pa(this,e,i),a,o;if((r!=="mouseup"||!n)&&(a=this.findHover(e,i),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||Ei(this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(a,r,t)}});function Zf(r,t,e){if(r[r.rectHover?"rectContain":"contain"](t,e)){for(var i=r,n=void 0,a=!1;i;){if(i.ignoreClip&&(a=!0),!a){var o=i.getClipPath();if(o&&!o.contain(t,e))return!1}i.silent&&(n=!0);var s=i.__hostTarget;i=s?i.ignoreHostSilent?null:s:i.parent}return n?Sa:!0}return!1}function ba(r,t,e,i,n){for(var a=r.length-1;a>=0;a--){var o=r[a],s=void 0;if(o!==n&&!o.ignore&&(s=Zf(o,e,i))&&(!t.topTarget&&(t.topTarget=o),s!==Sa)){t.target=o;break}}}function Pa(r,t,e){var i=r.painter;return t<0||t>i.getWidth()||e<0||e>i.getHeight()}var Ea=Ca;var La=32,fe=7;function Vf(r){for(var t=0;r>=La;)t|=r&1,r>>=1;return r+t}function Ra(r,t,e,i){var n=t+1;if(n===e)return 1;if(i(r[n++],r[t])<0){for(;n<e&&i(r[n],r[n-1])<0;)n++;Kf(r,t,n)}else for(;n<e&&i(r[n],r[n-1])>=0;)n++;return n-t}function Kf(r,t,e){for(e--;t<e;){var i=r[t];r[t++]=r[e],r[e--]=i}}function Ma(r,t,e,i,n){for(i===t&&i++;i<e;i++){for(var a=r[i],o=t,s=i,f;o<s;)f=o+s>>>1,n(a,r[f])<0?s=f:o=f+1;var u=i-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 Zi(r,t,e,i,n,a){var o=0,s=0,f=1;if(a(r,t[e+n])>0){for(s=i-n;f<s&&a(r,t[e+n+f])>0;)o=f,f=(f<<1)+1,f<=0&&(f=s);f>s&&(f=s),o+=n,f+=n}else{for(s=n+1;f<s&&a(r,t[e+n-f])<=0;)o=f,f=(f<<1)+1,f<=0&&(f=s);f>s&&(f=s);var u=o;o=n-f,f=n-u}for(o++;o<f;){var h=o+(f-o>>>1);a(r,t[e+h])>0?o=h+1:f=h}return f}function Vi(r,t,e,i,n,a){var o=0,s=0,f=1;if(a(r,t[e+n])<0){for(s=n+1;f<s&&a(r,t[e+n-f])<0;)o=f,f=(f<<1)+1,f<=0&&(f=s);f>s&&(f=s);var u=o;o=n-f,f=n-u}else{for(s=i-n;f<s&&a(r,t[e+n+f])>=0;)o=f,f=(f<<1)+1,f<=0&&(f=s);f>s&&(f=s),o+=n,f+=n}for(o++;o<f;){var h=o+(f-o>>>1);a(r,t[e+h])<0?f=h:o=h+1}return f}function Qf(r,t){var e=fe,i,n,a=0,o=[];i=[],n=[];function s(c,v){i[a]=c,n[a]=v,a+=1}function f(){for(;a>1;){var c=a-2;if(c>=1&&n[c-1]<=n[c]+n[c+1]||c>=2&&n[c-2]<=n[c]+n[c-1])n[c-1]<n[c+1]&&c--;else if(n[c]>n[c+1])break;h(c)}}function u(){for(;a>1;){var c=a-2;c>0&&n[c-1]<n[c+1]&&c--,h(c)}}function h(c){var v=i[c],m=n[c],_=i[c+1],d=n[c+1];n[c]=m+d,c===a-3&&(i[c+1]=i[c+2],n[c+1]=n[c+2]),a--;var g=Vi(r[_],r,v,m,0,t);v+=g,m-=g,m!==0&&(d=Zi(r[v+m-1],r,_,d,d-1,t),d!==0&&(m<=d?l(v,m,_,d):p(v,m,_,d)))}function l(c,v,m,_){var d=0;for(d=0;d<v;d++)o[d]=r[c+d];var g=0,T=m,y=c;if(r[y++]=r[T++],--_===0){for(d=0;d<v;d++)r[y+d]=o[g+d];return}if(v===1){for(d=0;d<_;d++)r[y+d]=r[T+d];r[y+_]=o[g];return}for(var w=e,x,C,b;;){x=0,C=0,b=!1;do if(t(r[T],o[g])<0){if(r[y++]=r[T++],C++,x=0,--_===0){b=!0;break}}else if(r[y++]=o[g++],x++,C=0,--v===1){b=!0;break}while((x|C)<w);if(b)break;do{if(x=Vi(r[T],o,g,v,0,t),x!==0){for(d=0;d<x;d++)r[y+d]=o[g+d];if(y+=x,g+=x,v-=x,v<=1){b=!0;break}}if(r[y++]=r[T++],--_===0){b=!0;break}if(C=Zi(o[g],r,T,_,0,t),C!==0){for(d=0;d<C;d++)r[y+d]=r[T+d];if(y+=C,T+=C,_-=C,_===0){b=!0;break}}if(r[y++]=o[g++],--v===1){b=!0;break}w--}while(x>=fe||C>=fe);if(b)break;w<0&&(w=0),w+=2}if(e=w,e<1&&(e=1),v===1){for(d=0;d<_;d++)r[y+d]=r[T+d];r[y+_]=o[g]}else{if(v===0)throw new Error;for(d=0;d<v;d++)r[y+d]=o[g+d]}}function p(c,v,m,_){var d=0;for(d=0;d<_;d++)o[d]=r[m+d];var g=c+v-1,T=_-1,y=m+_-1,w=0,x=0;if(r[y--]=r[g--],--v===0){for(w=y-(_-1),d=0;d<_;d++)r[w+d]=o[d];return}if(_===1){for(y-=v,g-=v,x=y+1,w=g+1,d=v-1;d>=0;d--)r[x+d]=r[w+d];r[y]=o[T];return}for(var C=e;;){var b=0,P=0,M=!1;do if(t(o[T],r[g])<0){if(r[y--]=r[g--],b++,P=0,--v===0){M=!0;break}}else if(r[y--]=o[T--],P++,b=0,--_===1){M=!0;break}while((b|P)<C);if(M)break;do{if(b=v-Vi(o[T],r,c,v,v-1,t),b!==0){for(y-=b,g-=b,v-=b,x=y+1,w=g+1,d=b-1;d>=0;d--)r[x+d]=r[w+d];if(v===0){M=!0;break}}if(r[y--]=o[T--],--_===1){M=!0;break}if(P=_-Zi(r[g],o,0,_,_-1,t),P!==0){for(y-=P,T-=P,_-=P,x=y+1,w=T+1,d=0;d<P;d++)r[x+d]=o[w+d];if(_<=1){M=!0;break}}if(r[y--]=r[g--],--v===0){M=!0;break}C--}while(b>=fe||P>=fe);if(M)break;C<0&&(C=0),C+=2}if(e=C,e<1&&(e=1),_===1){for(y-=v,g-=v,x=y+1,w=g+1,d=v-1;d>=0;d--)r[x+d]=r[w+d];r[y]=o[T]}else{if(_===0)throw new Error;for(w=y-(_-1),d=0;d<_;d++)r[w+d]=o[d]}}return{mergeRuns:f,forceMergeRuns:u,pushRun:s}}function Ki(r,t,e,i){e||(e=0),i||(i=r.length);var n=i-e;if(!(n<2)){var a=0;if(n<La){a=Ra(r,e,i,t),Ma(r,e,i,e+a,t);return}var o=Qf(r,t),s=Vf(n);do{if(a=Ra(r,e,i,t),a<s){var f=n;f>s&&(f=s),Ma(r,e,e+f,e+a,t),a=f}o.pushRun(e,a),o.mergeRuns(),n-=a,e+=a}while(n!==0);o.forceMergeRuns()}}var W=1,pr=2,qt=4;var Oa=!1;function Qi(){Oa||(Oa=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function Da(r,t){return r.zlevel===t.zlevel?r.z===t.z?r.z2-t.z2:r.z-t.z:r.zlevel-t.zlevel}var $f=(function(){function r(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=Da}return r.prototype.traverse=function(t,e){for(var i=0;i<this._roots.length;i++)this._roots[i].traverse(t,e)},r.prototype.getDisplayList=function(t,e){e=e||!1;var i=this._displayList;return(t||!i.length)&&this.updateDisplayList(e),i},r.prototype.updateDisplayList=function(t){this._displayListLen=0;for(var e=this._roots,i=this._displayList,n=0,a=e.length;n<a;n++)this._updateAndAddDisplayable(e[n],null,t);i.length=this._displayListLen,Ki(i,Da)},r.prototype._updateAndAddDisplayable=function(t,e,i){if(!(t.ignore&&!i)){t.beforeUpdate(),t.update(),t.afterUpdate();var n=t.getClipPath(),a=e&&e.length,o=0,s=t.__clipPaths;if(!t.ignoreClip&&(a||n)){if(s||(s=t.__clipPaths=[]),a)for(var f=0;f<e.length;f++)s[o++]=e[f];for(var u=n,h=t;u;)u.parent=h,u.updateTransform(),s[o++]=u,h=u,u=u.getClipPath()}if(s&&(s.length=o),t.childrenRef){for(var l=t.childrenRef(),p=0;p<l.length;p++){var c=l[p];t.__dirty&&(c.__dirty|=W),this._updateAndAddDisplayable(c,s,i)}t.__dirty=0}else{var v=t;isNaN(v.z)&&(Qi(),v.z=0),isNaN(v.z2)&&(Qi(),v.z2=0),isNaN(v.zlevel)&&(Qi(),v.zlevel=0),this._displayList[this._displayListLen++]=v}var m=t.getDecalElement&&t.getDecalElement();m&&this._updateAndAddDisplayable(m,s,i);var _=t.getTextGuideLine();_&&this._updateAndAddDisplayable(_,s,i);var d=t.getTextContent();d&&this._updateAndAddDisplayable(d,s,i)}},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,i=t.length;e<i;e++)this.delRoot(t[e]);return}var n=Q(this._roots,t);n>=0&&this._roots.splice(n,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})(),Aa=$f;var Fa;Fa=I.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(r){return setTimeout(r,16)};var $i=Fa;var ze={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,i=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=i/4):t=i*Math.asin(1/e)/(2*Math.PI),-(e*Math.pow(2,10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/i)))},elasticOut:function(r){var t,e=.1,i=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=i/4):t=i*Math.asin(1/e)/(2*Math.PI),e*Math.pow(2,-10*r)*Math.sin((r-t)*(2*Math.PI)/i)+1)},elasticInOut:function(r){var t,e=.1,i=.4;return r===0?0:r===1?1:(!e||e<1?(e=1,t=i/4):t=i*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)/i)):e*Math.pow(2,-10*(r-=1))*Math.sin((r-t)*(2*Math.PI)/i)*.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-ze.bounceOut(1-r)},bounceOut:function(r){return r<.36363636363636365?7.5625*r*r:r<.7272727272727273?7.5625*(r-=.5454545454545454)*r+.75:r<.9090909090909091?7.5625*(r-=.8181818181818182)*r+.9375:7.5625*(r-=.9545454545454546)*r+.984375},bounceInOut:function(r){return r<.5?ze.bounceIn(r*2)*.5:ze.bounceOut(r*2-1)*.5+.5}},Ye=ze;var We=Math.pow,Zt=Math.sqrt,Ue=1e-8,Ba=1e-4,Ia=Zt(3),Ge=1/3,mt=Rt(),ot=Rt(),Br=Rt();function kt(r){return r>-Ue&&r<Ue}function Ha(r){return r>Ue||r<-Ue}function N(r,t,e,i,n){var a=1-n;return a*a*(a*r+3*n*t)+n*n*(n*i+3*a*e)}function bl(r,t,e,i,n){var a=1-n;return 3*(((t-r)*a+2*(e-t)*n)*a+(i-e)*n*n)}function Xe(r,t,e,i,n,a){var o=i+3*(t-e)-r,s=3*(e-t*2+r),f=3*(t-r),u=r-n,h=s*s-3*o*f,l=s*f-9*o*u,p=f*f-3*s*u,c=0;if(kt(h)&&kt(l))if(kt(s))a[0]=0;else{var v=-f/s;v>=0&&v<=1&&(a[c++]=v)}else{var m=l*l-4*h*p;if(kt(m)){var _=l/h,v=-s/o+_,d=-_/2;v>=0&&v<=1&&(a[c++]=v),d>=0&&d<=1&&(a[c++]=d)}else if(m>0){var g=Zt(m),T=h*s+1.5*o*(-l+g),y=h*s+1.5*o*(-l-g);T<0?T=-We(-T,Ge):T=We(T,Ge),y<0?y=-We(-y,Ge):y=We(y,Ge);var v=(-s-(T+y))/(3*o);v>=0&&v<=1&&(a[c++]=v)}else{var w=(2*h*s-3*o*l)/(2*Zt(h*h*h)),x=Math.acos(w)/3,C=Zt(h),b=Math.cos(x),v=(-s-2*C*b)/(3*o),d=(-s+C*(b+Ia*Math.sin(x)))/(3*o),P=(-s+C*(b-Ia*Math.sin(x)))/(3*o);v>=0&&v<=1&&(a[c++]=v),d>=0&&d<=1&&(a[c++]=d),P>=0&&P<=1&&(a[c++]=P)}}return c}function qe(r,t,e,i,n){var a=6*e-12*t+6*r,o=9*t+3*i-3*r-9*e,s=3*t-3*r,f=0;if(kt(o)){if(Ha(a)){var u=-s/a;u>=0&&u<=1&&(n[f++]=u)}}else{var h=a*a-4*o*s;if(kt(h))n[0]=-a/(2*o);else if(h>0){var l=Zt(h),u=(-a+l)/(2*o),p=(-a-l)/(2*o);u>=0&&u<=1&&(n[f++]=u),p>=0&&p<=1&&(n[f++]=p)}}return f}function ji(r,t,e,i,n,a){var o=(t-r)*n+r,s=(e-t)*n+t,f=(i-e)*n+e,u=(s-o)*n+o,h=(f-s)*n+s,l=(h-u)*n+u;a[0]=r,a[1]=o,a[2]=u,a[3]=l,a[4]=l,a[5]=h,a[6]=f,a[7]=i}function Na(r,t,e,i,n,a,o,s,f,u,h){var l,p=.005,c=1/0,v,m,_,d;mt[0]=f,mt[1]=u;for(var g=0;g<1;g+=.05)ot[0]=N(r,e,n,o,g),ot[1]=N(t,i,a,s,g),_=Yt(mt,ot),_<c&&(l=g,c=_);c=1/0;for(var T=0;T<32&&!(p<Ba);T++)v=l-p,m=l+p,ot[0]=N(r,e,n,o,v),ot[1]=N(t,i,a,s,v),_=Yt(ot,mt),v>=0&&_<c?(l=v,c=_):(Br[0]=N(r,e,n,o,m),Br[1]=N(t,i,a,s,m),d=Yt(Br,mt),m<=1&&d<c?(l=m,c=d):p*=.5);return h&&(h[0]=N(r,e,n,o,l),h[1]=N(t,i,a,s,l)),Zt(c)}function za(r,t,e,i,n,a,o,s,f){for(var u=r,h=t,l=0,p=1/f,c=1;c<=f;c++){var v=c*p,m=N(r,e,n,o,v),_=N(t,i,a,s,v),d=m-u,g=_-h;l+=Math.sqrt(d*d+g*g),u=m,h=_}return l}function G(r,t,e,i){var n=1-i;return n*(n*r+2*i*t)+i*i*e}function Sl(r,t,e,i){return 2*((1-i)*(t-r)+i*(e-t))}function Ya(r,t,e,i,n){var a=r-2*t+e,o=2*(t-r),s=r-i,f=0;if(kt(a)){if(Ha(o)){var u=-s/o;u>=0&&u<=1&&(n[f++]=u)}}else{var h=o*o-4*a*s;if(kt(h)){var u=-o/(2*a);u>=0&&u<=1&&(n[f++]=u)}else if(h>0){var l=Zt(h),u=(-o+l)/(2*a),p=(-o-l)/(2*a);u>=0&&u<=1&&(n[f++]=u),p>=0&&p<=1&&(n[f++]=p)}}return f}function ke(r,t,e){var i=r+e-2*t;return i===0?.5:(r-t)/i}function Ji(r,t,e,i,n){var a=(t-r)*i+r,o=(e-t)*i+t,s=(o-a)*i+a;n[0]=r,n[1]=a,n[2]=s,n[3]=s,n[4]=o,n[5]=e}function Wa(r,t,e,i,n,a,o,s,f){var u,h=.005,l=1/0;mt[0]=o,mt[1]=s;for(var p=0;p<1;p+=.05){ot[0]=G(r,e,n,p),ot[1]=G(t,i,a,p);var c=Yt(mt,ot);c<l&&(u=p,l=c)}l=1/0;for(var v=0;v<32&&!(h<Ba);v++){var m=u-h,_=u+h;ot[0]=G(r,e,n,m),ot[1]=G(t,i,a,m);var c=Yt(ot,mt);if(m>=0&&c<l)u=m,l=c;else{Br[0]=G(r,e,n,_),Br[1]=G(t,i,a,_);var d=Yt(Br,mt);_<=1&&d<l?(u=_,l=d):h*=.5}}return f&&(f[0]=G(r,e,n,u),f[1]=G(t,i,a,u)),Zt(l)}function Ga(r,t,e,i,n,a,o){for(var s=r,f=t,u=0,h=1/o,l=1;l<=o;l++){var p=l*h,c=G(r,e,n,p),v=G(t,i,a,p),m=c-s,_=v-f;u+=Math.sqrt(m*m+_*_),s=c,f=v}return u}var jf=/cubic-bezier\(([0-9,\.e ]+)\)/;function Ze(r){var t=r&&jf.exec(r);if(t){var e=t[1].split(","),i=+zt(e[0]),n=+zt(e[1]),a=+zt(e[2]),o=+zt(e[3]);if(isNaN(i+n+a+o))return;var s=[];return function(f){return f<=0?0:f>=1?1:Xe(0,i,a,1,f,s)&&N(0,n,o,1,s[0])}}}var Jf=(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||Et,this.ondestroy=t.ondestroy||Et,this.onrestart=t.onrestart||Et,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 i=this._life,n=t-this._startTime-this._pausedTime,a=n/i;a<0&&(a=0),a=Math.min(a,1);var o=this.easingFunc,s=o?o(a):a;if(this.onframe(s),a===1)if(this.loop){var f=n%i;this._startTime=t-f,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=_t(t)?t:Ye[t]||Ze(t)},r})(),Ua=Jf;var Ke=Math.round;function Il(r){var t;if(!r||r==="transparent")r="none";else if(typeof r=="string"&&r.indexOf("rgba")>-1){var e=Y(r);e&&(r="rgb("+e[0]+","+e[1]+","+e[2]+")",t=e[3])}return{color:r,opacity:t??1}}var Xa=1e-4;function Bl(r){return r<Xa&&r>-Xa}function Ve(r){return Ke(r*1e3)/1e3}function qa(r){return Ke(r*1e4)/1e4}function Hl(r){return"matrix("+Ve(r[0])+","+Ve(r[1])+","+Ve(r[2])+","+Ve(r[3])+","+qa(r[4])+","+qa(r[5])+")"}var Nl={left:"start",right:"end",center:"middle",middle:"middle"};function zl(r,t,e){return e==="top"?r+=t/2:e==="bottom"&&(r-=t/2),r}function Yl(r){return r&&(r.shadowBlur||r.shadowOffsetX||r.shadowOffsetY)}function Wl(r){var t=r.style,e=r.getGlobalScale();return[t.shadowColor,(t.shadowBlur||0).toFixed(2),(t.shadowOffsetX||0).toFixed(2),(t.shadowOffsetY||0).toFixed(2),e[0],e[1]].join(",")}function tu(r){return r&&!!r.image}function ru(r){return r&&!!r.svgElement}function Gl(r){return tu(r)||ru(r)}function ka(r){return r.type==="linear"}function Za(r){return r.type==="radial"}function Ul(r){return r&&(r.type==="linear"||r.type==="radial")}function Xl(r){return"url(#"+r+")"}function ql(r){var t=r.getGlobalScale(),e=Math.max(t[0],t[1]);return Math.max(Math.ceil(Math.log(e)/Math.log(10)),1)}function kl(r){var t=r.x||0,e=r.y||0,i=(r.rotation||0)*ar,n=H(r.scaleX,1),a=H(r.scaleY,1),o=r.skewX||0,s=r.skewY||0,f=[];return(t||e)&&f.push("translate("+t+"px,"+e+"px)"),i&&f.push("rotate("+i+")"),(n!==1||a!==1)&&f.push("scale("+n+","+a+")"),(o||s)&&f.push("skew("+Ke(o*ar)+"deg, "+Ke(s*ar)+"deg)"),f.join(" ")}var Zl=(function(){return typeof Buffer<"u"&&typeof Buffer.from=="function"?function(r){return Buffer.from(r).toString("base64")}:typeof btoa=="function"&&typeof unescape=="function"&&typeof encodeURIComponent=="function"?function(r){return btoa(unescape(encodeURIComponent(r)))}:function(r){return null}})();var en=Array.prototype.slice;function Dt(r,t,e){return(t-r)*e+r}function rn(r,t,e,i){for(var n=t.length,a=0;a<n;a++)r[a]=Dt(t[a],e[a],i);return r}function eu(r,t,e,i){for(var n=t.length,a=n&&t[0].length,o=0;o<n;o++){r[o]||(r[o]=[]);for(var s=0;s<a;s++)r[o][s]=Dt(t[o][s],e[o][s],i)}return r}function Qe(r,t,e,i){for(var n=t.length,a=0;a<n;a++)r[a]=t[a]+e[a]*i;return r}function Va(r,t,e,i){for(var n=t.length,a=n&&t[0].length,o=0;o<n;o++){r[o]||(r[o]=[]);for(var s=0;s<a;s++)r[o][s]=t[o][s]+e[o][s]*i}return r}function iu(r,t){for(var e=r.length,i=t.length,n=e>i?t:r,a=Math.min(e,i),o=n[a-1]||{color:[0,0,0,0],offset:0},s=a;s<Math.max(e,i);s++)n.push({offset:o.offset,color:o.color.slice()})}function nu(r,t,e){var i=r,n=t;if(!(!i.push||!n.push)){var a=i.length,o=n.length;if(a!==o){var s=a>o;if(s)i.length=o;else for(var f=a;f<o;f++)i.push(e===1?n[f]:en.call(n[f]))}for(var u=i[0]&&i[0].length,f=0;f<i.length;f++)if(e===1)isNaN(i[f])&&(i[f]=n[f]);else for(var h=0;h<u;h++)isNaN(i[f][h])&&(i[f][h]=n[f][h])}}function le(r){if($(r)){var t=r.length;if($(r[0])){for(var e=[],i=0;i<t;i++)e.push(en.call(r[i]));return e}return en.call(r)}return r}function Je(r){return r[0]=Math.floor(r[0])||0,r[1]=Math.floor(r[1])||0,r[2]=Math.floor(r[2])||0,r[3]=r[3]==null?1:r[3],"rgba("+r.join(",")+")"}function au(r){return $(r&&r[0])?2:1}var $e=0,ti=1,$a=2,he=3,nn=4,an=5,Ka=6;function Qa(r){return r===nn||r===an}function je(r){return r===ti||r===$a}var ue=[0,0,0,0],ou=(function(){function r(t){this.keyframes=[],this.discrete=!1,this._invalid=!1,this._needsSort=!1,this._lastFr=0,this._lastFrP=0,this.propName=t}return r.prototype.isFinished=function(){return this._finished},r.prototype.setFinished=function(){this._finished=!0,this._additiveTrack&&this._additiveTrack.setFinished()},r.prototype.needsAnimate=function(){return this.keyframes.length>=1},r.prototype.getAdditiveTrack=function(){return this._additiveTrack},r.prototype.addKeyframe=function(t,e,i){this._needsSort=!0;var n=this.keyframes,a=n.length,o=!1,s=Ka,f=e;if($(e)){var u=au(e);s=u,(u===1&&!er(e[0])||u===2&&!er(e[0][0]))&&(o=!0)}else if(er(e)&&!wi(e))s=$e;else if(Nt(e))if(!isNaN(+e))s=$e;else{var h=Y(e);h&&(f=h,s=he)}else if(ir(e)){var l=O({},f);l.colorStops=ht(e.colorStops,function(c){return{offset:c.offset,color:Y(c.color)}}),ka(e)?s=nn:Za(e)&&(s=an),f=l}a===0?this.valType=s:(s!==this.valType||s===Ka)&&(o=!0),this.discrete=this.discrete||o;var p={time:t,value:f,rawValue:e,percent:0};return i&&(p.easing=i,p.easingFunc=_t(i)?i:Ye[i]||Ze(i)),n.push(p),p},r.prototype.prepare=function(t,e){var i=this.keyframes;this._needsSort&&i.sort(function(m,_){return m.time-_.time});for(var n=this.valType,a=i.length,o=i[a-1],s=this.discrete,f=je(n),u=Qa(n),h=0;h<a;h++){var l=i[h],p=l.value,c=o.value;l.percent=l.time/t,s||(f&&h!==a-1?nu(p,c,n):u&&iu(p.colorStops,c.colorStops))}if(!s&&n!==an&&e&&this.needsAnimate()&&e.needsAnimate()&&n===e.valType&&!e._finished){this._additiveTrack=e;for(var v=i[0].value,h=0;h<a;h++)n===$e?i[h].additiveValue=i[h].value-v:n===he?i[h].additiveValue=Qe([],i[h].value,v,-1):je(n)&&(i[h].additiveValue=n===ti?Qe([],i[h].value,v,-1):Va([],i[h].value,v,-1))}},r.prototype.step=function(t,e){if(!this._finished){this._additiveTrack&&this._additiveTrack._finished&&(this._additiveTrack=null);var i=this._additiveTrack!=null,n=i?"additiveValue":"value",a=this.valType,o=this.keyframes,s=o.length,f=this.propName,u=a===he,h,l=this._lastFr,p=Math.min,c,v;if(s===1)c=v=o[0];else{if(e<0)h=0;else if(e<this._lastFrP){var m=p(l+1,s-1);for(h=m;h>=0&&!(o[h].percent<=e);h--);h=p(h,s-2)}else{for(h=l;h<s&&!(o[h].percent>e);h++);h=p(h-1,s-2)}v=o[h+1],c=o[h]}if(c&&v){this._lastFr=h,this._lastFrP=e;var _=v.percent-c.percent,d=_===0?1:p((e-c.percent)/_,1);v.easingFunc&&(d=v.easingFunc(d));var g=i?this._additiveValue:u?ue:t[f];if((je(a)||u)&&!g&&(g=this._additiveValue=[]),this.discrete)t[f]=d<1?c.rawValue:v.rawValue;else if(je(a))a===ti?rn(g,c[n],v[n],d):eu(g,c[n],v[n],d);else if(Qa(a)){var T=c[n],y=v[n],w=a===nn;t[f]={type:w?"linear":"radial",x:Dt(T.x,y.x,d),y:Dt(T.y,y.y,d),colorStops:ht(T.colorStops,function(C,b){var P=y.colorStops[b];return{offset:Dt(C.offset,P.offset,d),color:Je(rn([],C.color,P.color,d))}}),global:y.global},w?(t[f].x2=Dt(T.x2,y.x2,d),t[f].y2=Dt(T.y2,y.y2,d)):t[f].r=Dt(T.r,y.r,d)}else if(u)rn(g,c[n],v[n],d),i||(t[f]=Je(g));else{var x=Dt(c[n],v[n],d);i?this._additiveValue=x:t[f]=x}i&&this._addToTarget(t)}}},r.prototype._addToTarget=function(t){var e=this.valType,i=this.propName,n=this._additiveValue;e===$e?t[i]=t[i]+n:e===he?(Y(t[i],ue),Qe(ue,ue,n,1),t[i]=Je(ue)):e===ti?Qe(t[i],t[i],n,1):e===$a&&Va(t[i],t[i],n,1)},r})(),su=(function(){function r(t,e,i,n){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=e,e&&n){$r("Can' use additive animation on looped animation.");return}this._additiveAnimators=n,this._allowDiscrete=i}return r.prototype.getMaxTime=function(){return this._maxTime},r.prototype.getDelay=function(){return this._delay},r.prototype.getLoop=function(){return this._loop},r.prototype.getTarget=function(){return this._target},r.prototype.changeTarget=function(t){this._target=t},r.prototype.when=function(t,e,i){return this.whenWithKeys(t,e,B(e),i)},r.prototype.whenWithKeys=function(t,e,i,n){for(var a=this._tracks,o=0;o<i.length;o++){var s=i[o],f=a[s];if(!f){f=a[s]=new ou(s);var u=void 0,h=this._getAdditiveTrack(s);if(h){var l=h.keyframes,p=l[l.length-1];u=p&&p.value,h.valType===he&&u&&(u=Je(u))}else u=this._target[s];if(u==null)continue;t>0&&f.addKeyframe(0,le(u),n),this._trackKeys.push(s)}f.addKeyframe(t,le(e[s]),n)}return this._maxTime=Math.max(this._maxTime,t),this},r.prototype.pause=function(){this._clip.pause(),this._paused=!0},r.prototype.resume=function(){this._clip.resume(),this._paused=!1},r.prototype.isPaused=function(){return!!this._paused},r.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},r.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var e=t.length,i=0;i<e;i++)t[i].call(this)},r.prototype._abortedCallback=function(){this._setTracksFinished();var t=this.animation,e=this._abortedCbs;if(t&&t.removeClip(this._clip),this._clip=null,e)for(var i=0;i<e.length;i++)e[i].call(this)},r.prototype._setTracksFinished=function(){for(var t=this._tracks,e=this._trackKeys,i=0;i<e.length;i++)t[e[i]].setFinished()},r.prototype._getAdditiveTrack=function(t){var e,i=this._additiveAnimators;if(i)for(var n=0;n<i.length;n++){var a=i[n].getTrack(t);a&&(e=a)}return e},r.prototype.start=function(t){if(!(this._started>0)){this._started=1;for(var e=this,i=[],n=this._maxTime||0,a=0;a<this._trackKeys.length;a++){var o=this._trackKeys[a],s=this._tracks[o],f=this._getAdditiveTrack(o),u=s.keyframes,h=u.length;if(s.prepare(n,f),s.needsAnimate())if(!this._allowDiscrete&&s.discrete){var l=u[h-1];l&&(e._target[s.propName]=l.rawValue),s.setFinished()}else i.push(s)}if(i.length||this._force){var p=new Ua({life:n,loop:this._loop,delay:this._delay||0,onframe:function(c){e._started=2;var v=e._additiveAnimators;if(v){for(var m=!1,_=0;_<v.length;_++)if(v[_]._clip){m=!0;break}m||(e._additiveAnimators=null)}for(var _=0;_<i.length;_++)i[_].step(e._target,c);var d=e._onframeCbs;if(d)for(var _=0;_<d.length;_++)d[_](e._target,c)},ondestroy:function(){e._doneCallback()}});this._clip=p,this.animation&&this.animation.addClip(p),t&&p.setEasing(t)}else this._doneCallback();return this}},r.prototype.stop=function(t){if(this._clip){var e=this._clip;t&&e.onframe(1),this._abortedCallback()}},r.prototype.delay=function(t){return this._delay=t,this},r.prototype.during=function(t){return t&&(this._onframeCbs||(this._onframeCbs=[]),this._onframeCbs.push(t)),this},r.prototype.done=function(t){return t&&(this._doneCbs||(this._doneCbs=[]),this._doneCbs.push(t)),this},r.prototype.aborted=function(t){return t&&(this._abortedCbs||(this._abortedCbs=[]),this._abortedCbs.push(t)),this},r.prototype.getClip=function(){return this._clip},r.prototype.getTrack=function(t){return this._tracks[t]},r.prototype.getTracks=function(){var t=this;return ht(this._trackKeys,function(e){return t._tracks[e]})},r.prototype.stopTracks=function(t,e){if(!t.length||!this._clip)return!0;for(var i=this._tracks,n=this._trackKeys,a=0;a<t.length;a++){var o=i[t[a]];o&&!o.isFinished()&&(e?o.step(this._target,1):this._started===1&&o.step(this._target,0),o.setFinished())}for(var s=!0,a=0;a<n.length;a++)if(!i[n[a]].isFinished()){s=!1;break}return s&&this._abortedCallback(),s},r.prototype.saveTo=function(t,e,i){if(t){e=e||this._trackKeys;for(var n=0;n<e.length;n++){var a=e[n],o=this._tracks[a];if(!(!o||o.isFinished())){var s=o.keyframes,f=s[i?0:s.length-1];f&&(t[a]=le(f.rawValue))}}}},r.prototype.__changeFinalValue=function(t,e){e=e||B(t);for(var i=0;i<e.length;i++){var n=e[i],a=this._tracks[n];if(a){var o=a.keyframes;if(o.length>1){var s=o.pop();a.addKeyframe(s.time,t[n]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},r})(),pe=su;function vr(){return new Date().getTime()}var fu=(function(r){F(t,r);function t(e){var i=r.call(this)||this;return i._running=!1,i._time=0,i._pausedTime=0,i._pauseStart=0,i._paused=!1,e=e||{},i.stage=e.stage||{},i}return t.prototype.addClip=function(e){e.animation&&this.removeClip(e),this._head?(this._tail.next=e,e.prev=this._tail,e.next=null,this._tail=e):this._head=this._tail=e,e.animation=this},t.prototype.addAnimator=function(e){e.animation=this;var i=e.getClip();i&&this.addClip(i)},t.prototype.removeClip=function(e){if(e.animation){var i=e.prev,n=e.next;i?i.next=n:this._head=n,n?n.prev=i:this._tail=i,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var i=e.getClip();i&&this.removeClip(i),e.animation=null},t.prototype.update=function(e){for(var i=vr()-this._pausedTime,n=i-this._time,a=this._head;a;){var o=a.next,s=a.step(i,n);s&&(a.ondestroy(),this.removeClip(a)),a=o}this._time=i,e||(this.trigger("frame",n),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;this._running=!0;function i(){e._running&&($i(i),!e._paused&&e.update())}$i(i)},t.prototype.start=function(){this._running||(this._time=vr(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=vr(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=vr()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var e=this._head;e;){var i=e.next;e.prev=e.next=e.animation=null,e=i}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(e,i){i=i||{},this.start();var n=new pe(e,i.loop);return this.addAnimator(n),n},t})(Lt),ja=fu;var uu=300,on=I.domSupported,sn=(function(){var r=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],e={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},i=ht(r,function(n){var a=n.replace("mouse","pointer");return e.hasOwnProperty(a)?a:n});return{mouse:r,touch:t,pointer:i}})(),Ja={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},to=!1;function hn(r){var t=r.pointerType;return t==="pen"||t==="touch"}function hu(r){r.touching=!0,r.touchTimer!=null&&(clearTimeout(r.touchTimer),r.touchTimer=null),r.touchTimer=setTimeout(function(){r.touching=!1,r.touchTimer=null},700)}function fn(r){r&&(r.zrByTouch=!0)}function lu(r,t){return nt(r.dom,new pu(r,t),!0)}function eo(r,t){for(var e=t,i=!1;e&&e.nodeType!==9&&!(i=e.domBelongToZr||e!==t&&e===r.painterRoot);)e=e.parentNode;return i}var pu=(function(){function r(t,e){this.stopPropagation=Et,this.stopImmediatePropagation=Et,this.preventDefault=Et,this.type=e.type,this.target=this.currentTarget=t.dom,this.pointerType=e.pointerType,this.clientX=e.clientX,this.clientY=e.clientY}return r})(),pt={mousedown:function(r){r=nt(this.dom,r),this.__mayPointerCapture=[r.zrX,r.zrY],this.trigger("mousedown",r)},mousemove:function(r){r=nt(this.dom,r);var t=this.__mayPointerCapture;t&&(r.zrX!==t[0]||r.zrY!==t[1])&&this.__togglePointerCapture(!0),this.trigger("mousemove",r)},mouseup:function(r){r=nt(this.dom,r),this.__togglePointerCapture(!1),this.trigger("mouseup",r)},mouseout:function(r){r=nt(this.dom,r);var t=r.toElement||r.relatedTarget;eo(this,t)||(this.__pointerCapturing&&(r.zrEventControl="no_globalout"),this.trigger("mouseout",r))},wheel:function(r){to=!0,r=nt(this.dom,r),this.trigger("mousewheel",r)},mousewheel:function(r){to||(r=nt(this.dom,r),this.trigger("mousewheel",r))},touchstart:function(r){r=nt(this.dom,r),fn(r),this.__lastTouchMoment=new Date,this.handler.processGesture(r,"start"),pt.mousemove.call(this,r),pt.mousedown.call(this,r)},touchmove:function(r){r=nt(this.dom,r),fn(r),this.handler.processGesture(r,"change"),pt.mousemove.call(this,r)},touchend:function(r){r=nt(this.dom,r),fn(r),this.handler.processGesture(r,"end"),pt.mouseup.call(this,r),+new Date-+this.__lastTouchMoment<uu&&pt.click.call(this,r)},pointerdown:function(r){pt.mousedown.call(this,r)},pointermove:function(r){hn(r)||pt.mousemove.call(this,r)},pointerup:function(r){pt.mouseup.call(this,r)},pointerout:function(r){hn(r)||pt.mouseout.call(this,r)}};z(["click","dblclick","contextmenu"],function(r){pt[r]=function(t){t=nt(this.dom,t),this.trigger(r,t)}});var ln={pointermove:function(r){hn(r)||ln.mousemove.call(this,r)},pointerup:function(r){ln.mouseup.call(this,r)},mousemove:function(r){this.trigger("mousemove",r)},mouseup:function(r){var t=this.__pointerCapturing;this.__togglePointerCapture(!1),this.trigger("mouseup",r),t&&(r.zrEventControl="only_globalout",this.trigger("mouseout",r))}};function vu(r,t){var e=t.domHandlers;I.pointerEventsSupported?z(sn.pointer,function(i){ri(t,i,function(n){e[i].call(r,n)})}):(I.touchEventsSupported&&z(sn.touch,function(i){ri(t,i,function(n){e[i].call(r,n),hu(t)})}),z(sn.mouse,function(i){ri(t,i,function(n){n=Ne(n),t.touching||e[i].call(r,n)})}))}function cu(r,t){I.pointerEventsSupported?z(Ja.pointer,e):I.touchEventsSupported||z(Ja.mouse,e);function e(i){function n(a){a=Ne(a),eo(r,a.target)||(a=lu(r,a),t.domHandlers[i].call(r,a))}ri(t,i,n,{capture:!0})}}function ri(r,t,e,i){r.mounted[t]=e,r.listenerOpts[t]=i,ca(r.domTarget,t,e,i)}function un(r){var t=r.mounted;for(var e in t)t.hasOwnProperty(e)&&da(r.domTarget,e,t[e],r.listenerOpts[e]);r.mounted={}}var ro=(function(){function r(t,e){this.mounted={},this.listenerOpts={},this.touching=!1,this.domTarget=t,this.domHandlers=e}return r})(),du=(function(r){F(t,r);function t(e,i){var n=r.call(this)||this;return n.__pointerCapturing=!1,n.dom=e,n.painterRoot=i,n._localHandlerScope=new ro(e,pt),on&&(n._globalHandlerScope=new ro(document,ln)),vu(n,n._localHandlerScope),n}return t.prototype.dispose=function(){un(this._localHandlerScope),on&&un(this._globalHandlerScope)},t.prototype.setCursor=function(e){this.dom.style&&(this.dom.style.cursor=e||"default")},t.prototype.__togglePointerCapture=function(e){if(this.__mayPointerCapture=null,on&&+this.__pointerCapturing^+e){this.__pointerCapturing=e;var i=this._globalHandlerScope;e?cu(this,i):un(i)}},t})(Lt),io=du;var no=1;I.hasGlobalWindow&&(no=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var pn=no,ve=.4,ce="#333",de="#ccc",ao="#eee";var oo=re,so=5e-5;function cr(r){return r>so||r<-so}var dr=[],Hr=[],vn=Mt(),cn=Math.abs,dn=(function(){function r(){}return r.prototype.getLocalTransform=function(t){return _u(this,t)},r.prototype.setPosition=function(t){this.x=t[0],this.y=t[1]},r.prototype.setScale=function(t){this.scaleX=t[0],this.scaleY=t[1]},r.prototype.setSkew=function(t){this.skewX=t[0],this.skewY=t[1]},r.prototype.setOrigin=function(t){this.originX=t[0],this.originY=t[1]},r.prototype.needLocalTransform=function(){return cr(this.rotation)||cr(this.x)||cr(this.y)||cr(this.scaleX-1)||cr(this.scaleY-1)||cr(this.skewX)||cr(this.skewY)},r.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,e=this.needLocalTransform(),i=this.transform;if(!(e||t)){i&&(oo(i),this.invTransform=null);return}i=i||Mt(),e?this.getLocalTransform(i):oo(i),t&&(e?ee(i,t,i):Oe(i,t)),this.transform=i,this._resolveGlobalScaleRatio(i),this.invTransform=this.invTransform||Mt(),ie(this.invTransform,i)},r.prototype._resolveGlobalScaleRatio=function(t){var e=this.globalScaleRatio;if(e!=null&&e!==1){this.getGlobalScale(dr);var i=dr[0]<0?-1:1,n=dr[1]<0?-1:1,a=((dr[0]-i)*e+i)/dr[0]||0,o=((dr[1]-n)*e+n)/dr[1]||0;t[0]*=a,t[1]*=a,t[2]*=o,t[3]*=o}},r.prototype.getComputedTransform=function(){for(var t=this,e=[];t;)e.push(t),t=t.parent;for(;t=e.pop();)t.updateTransform();return this.transform},r.prototype.setLocalTransform=function(t){if(t){var e=t[0]*t[0]+t[1]*t[1],i=t[2]*t[2]+t[3]*t[3],n=Math.atan2(t[1],t[0]),a=Math.PI/2+n-Math.atan2(t[3],t[2]);i=Math.sqrt(i)*Math.cos(a),e=Math.sqrt(e),this.skewX=a,this.skewY=0,this.rotation=-n,this.x=+t[4],this.y=+t[5],this.scaleX=e,this.scaleY=i,this.originX=0,this.originY=0}},r.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,e=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||Mt(),ee(Hr,t.invTransform,e),e=Hr);var i=this.originX,n=this.originY;(i||n)&&(vn[4]=i,vn[5]=n,ee(Hr,e,vn),Hr[4]-=i,Hr[5]-=n,e=Hr),this.setLocalTransform(e)}},r.prototype.getGlobalScale=function(t){var e=this.transform;return t=t||[],e?(t[0]=Math.sqrt(e[0]*e[0]+e[1]*e[1]),t[1]=Math.sqrt(e[2]*e[2]+e[3]*e[3]),e[0]<0&&(t[0]=-t[0]),e[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},r.prototype.transformCoordToLocal=function(t,e){var i=[t,e],n=this.invTransform;return n&&Le(i,i,n),i},r.prototype.transformCoordToGlobal=function(t,e){var i=[t,e],n=this.transform;return n&&Le(i,i,n),i},r.prototype.getLineScale=function(){var t=this.transform;return t&&cn(t[0]-1)>1e-10&&cn(t[3]-1)>1e-10?Math.sqrt(cn(t[0]*t[3]-t[2]*t[1])):1},r.prototype.copyTransform=function(t){mu(this,t)},r.getLocalTransform=function(t,e){e=e||[];var i=t.originX||0,n=t.originY||0,a=t.scaleX,o=t.scaleY,s=t.anchorX,f=t.anchorY,u=t.rotation||0,h=t.x,l=t.y,p=t.skewX?Math.tan(t.skewX):0,c=t.skewY?Math.tan(-t.skewY):0;if(i||n||s||f){var v=i+s,m=n+f;e[4]=-v*a-p*m*o,e[5]=-m*o-c*v*a}else e[4]=e[5]=0;return e[0]=a,e[3]=o,e[1]=c*a,e[2]=p*o,u&&Ri(e,e,u),e[4]+=i+h,e[5]+=n+l,e},r.initDefaultProps=(function(){var t=r.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0})(),r})(),_u=dn.getLocalTransform;function cp(){return new dn}var Nr=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function mu(r,t){return xi(r,t,Nr)}var _n=dn;function vt(r){ei||(ei=new Wt(100)),r=r||rt;var t=ei.get(r);return t||(t={font:r,strWidthCache:new Wt(500),asciiWidthMap:null,asciiWidthMapTried:!1,stWideCharWidth:K.measureText("\u56FD",r).width,asciiCharWidth:K.measureText("a",r).width},ei.put(r,t)),t}var ei;function gu(r){if(!(mn>=fo)){r=r||rt;for(var t=[],e=+new Date,i=0;i<=127;i++)t[i]=K.measureText(String.fromCharCode(i),r).width;var n=+new Date-e;return n>16?mn=fo:n>2&&mn++,t}}var mn=0,fo=5;function gn(r,t){return r.asciiWidthMapTried||(r.asciiWidthMap=gu(r.font),r.asciiWidthMapTried=!0),0<=t&&t<=127?r.asciiWidthMap!=null?r.asciiWidthMap[t]:r.asciiCharWidth:r.stWideCharWidth}function ct(r,t){var e=r.strWidthCache,i=e.get(t);return i==null&&(i=K.measureText(t,r.font).width,e.put(t,i)),i}function uo(r,t,e,i){var n=ct(vt(t),r),a=_e(t),o=Vt(0,n,e),s=At(0,a,i),f=new D(o,s,n,a);return f}function yp(r,t,e,i){var n=((r||"")+"").split(`
2
+ `),a=n.length;if(a===1)return uo(n[0],t,e,i);for(var o=new D(0,0,0,0),s=0;s<n.length;s++){var f=uo(n[s],t,e,i);s===0?o.copy(f):o.union(f)}return o}function Vt(r,t,e,i){return e==="right"?i?r+=t:r-=t:e==="center"&&(i?r+=t/2:r-=t/2),r}function At(r,t,e,i){return e==="middle"?i?r+=t/2:r-=t/2:e==="bottom"&&(i?r+=t:r-=t),r}function _e(r){return vt(r).stWideCharWidth}function _r(r,t){return typeof r=="string"?r.lastIndexOf("%")>=0?parseFloat(r)/100*t:parseFloat(r):r}function ho(r,t,e){var i=t.position||"inside",n=t.distance!=null?t.distance:5,a=e.height,o=e.width,s=a/2,f=e.x,u=e.y,h="left",l="top";if(i instanceof Array)f+=_r(i[0],e.width),u+=_r(i[1],e.height),h=null,l=null;else switch(i){case"left":f-=n,u+=s,h="right",l="middle";break;case"right":f+=n+o,u+=s,l="middle";break;case"top":f+=o/2,u-=n,h="center",l="bottom";break;case"bottom":f+=o/2,u+=a+n,h="center";break;case"inside":f+=o/2,u+=s,h="center",l="middle";break;case"insideLeft":f+=n,u+=s,l="middle";break;case"insideRight":f+=o-n,u+=s,h="right",l="middle";break;case"insideTop":f+=o/2,u+=n,h="center";break;case"insideBottom":f+=o/2,u+=a-n,h="center",l="bottom";break;case"insideTopLeft":f+=n,u+=n;break;case"insideTopRight":f+=o-n,u+=n,h="right";break;case"insideBottomLeft":f+=n,u+=a-n,l="bottom";break;case"insideBottomRight":f+=o-n,u+=a-n,h="right",l="bottom";break}return r=r||{},r.x=f,r.y=u,r.align=h,r.verticalAlign=l,r}var yn="__zr_normal__",xn=Nr.concat(["ignore"]),yu=rr(Nr,function(r,t){return r[t]=!0,r},{ignore:!1}),zr={},xu=new D(0,0,0,0),ii=[],ni=0,Yr=1,bn=(function(){function r(t){this.id=Qr(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return r.prototype._init=function(t){this.attr(t)},r.prototype.drift=function(t,e,i){switch(this.draggable){case"horizontal":e=0;break;case"vertical":t=0;break}var n=this.transform;n||(n=this.transform=[1,0,0,1,0,0]),n[4]+=t,n[5]+=e,this.decomposeTransform(),this.markRedraw()},r.prototype.beforeUpdate=function(){},r.prototype.afterUpdate=function(){},r.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},r.prototype.updateInnerText=function(t){var e=this._textContent;if(e&&(!e.ignore||t)){this.textConfig||(this.textConfig={});var i=this.textConfig,n=i.local,a=e.innerTransformable,o=void 0,s=void 0,f=!1;a.parent=n?this:null;var u=!1;a.copyTransform(e);var h=i.position!=null,l=i.autoOverflowArea,p=void 0;if((l||h)&&(p=xu,i.layoutRect?p.copy(i.layoutRect):p.copy(this.getBoundingRect()),n||p.applyTransform(this.transform)),h){this.calculateTextPosition?this.calculateTextPosition(zr,i,p):ho(zr,i,p),a.x=zr.x,a.y=zr.y,o=zr.align,s=zr.verticalAlign;var c=i.origin;if(c&&i.rotation!=null){var v=void 0,m=void 0;c==="center"?(v=p.width*.5,m=p.height*.5):(v=_r(c[0],p.width),m=_r(c[1],p.height)),u=!0,a.originX=-a.x+v+(n?0:p.x),a.originY=-a.y+m+(n?0:p.y)}}i.rotation!=null&&(a.rotation=i.rotation);var _=i.offset;_&&(a.x+=_[0],a.y+=_[1],u||(a.originX=-_[0],a.originY=-_[1]));var d=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={});if(l){var g=d.overflowRect=d.overflowRect||new D(0,0,0,0);a.getLocalTransform(ii),ie(ii,ii),D.copy(g,p),g.applyTransform(ii)}else d.overflowRect=null;var T=i.inside==null?typeof i.position=="string"&&i.position.indexOf("inside")>=0:i.inside,y=void 0,w=void 0,x=void 0;T&&this.canBeInsideText()?(y=i.insideFill,w=i.insideStroke,(y==null||y==="auto")&&(y=this.getInsideTextFill()),(w==null||w==="auto")&&(w=this.getInsideTextStroke(y),x=!0)):(y=i.outsideFill,w=i.outsideStroke,(y==null||y==="auto")&&(y=this.getOutsideFill()),(w==null||w==="auto")&&(w=this.getOutsideStroke(y),x=!0)),y=y||"#000",(y!==d.fill||w!==d.stroke||x!==d.autoStroke||o!==d.align||s!==d.verticalAlign)&&(f=!0,d.fill=y,d.stroke=w,d.autoStroke=x,d.align=o,d.verticalAlign=s,e.setDefaultTextStyle(d)),e.__dirty|=W,f&&e.dirtyStyle(!0)}},r.prototype.canBeInsideText=function(){return!0},r.prototype.getInsideTextFill=function(){return"#fff"},r.prototype.getInsideTextStroke=function(t){return"#000"},r.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?de:ce},r.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),i=typeof e=="string"&&Y(e);i||(i=[255,255,255,1]);for(var n=i[3],a=this.__zr.isDarkMode(),o=0;o<3;o++)i[o]=i[o]*n+(a?0:255)*(1-n);return i[3]=1,Xt(i,"rgba")},r.prototype.traverse=function(t,e){},r.prototype.attrKV=function(t,e){t==="textConfig"?this.setTextConfig(e):t==="textContent"?this.setTextContent(e):t==="clipPath"?this.setClipPath(e):t==="extra"?(this.extra=this.extra||{},O(this.extra,e)):this[t]=e},r.prototype.hide=function(){this.ignore=!0,this.markRedraw()},r.prototype.show=function(){this.ignore=!1,this.markRedraw()},r.prototype.attr=function(t,e){if(typeof t=="string")this.attrKV(t,e);else if(Ct(t))for(var i=t,n=B(i),a=0;a<n.length;a++){var o=n[a];this.attrKV(o,t[o])}return this.markRedraw(),this},r.prototype.saveCurrentToNormalState=function(t){this._innerSaveToNormal(t);for(var e=this._normalState,i=0;i<this.animators.length;i++){var n=this.animators[i],a=n.__fromStateTransition;if(!(n.getLoop()||a&&a!==yn)){var o=n.targetName,s=o?e[o]:e;n.saveTo(s)}}},r.prototype._innerSaveToNormal=function(t){var e=this._normalState;e||(e=this._normalState={}),t.textConfig&&!e.textConfig&&(e.textConfig=this.textConfig),this._savePrimaryToNormal(t,e,xn)},r.prototype._savePrimaryToNormal=function(t,e,i){for(var n=0;n<i.length;n++){var a=i[n];t[a]!=null&&!(a in e)&&(e[a]=this[a])}},r.prototype.hasState=function(){return this.currentStates.length>0},r.prototype.getState=function(t){return this.states[t]},r.prototype.ensureState=function(t){var e=this.states;return e[t]||(e[t]={}),e[t]},r.prototype.clearStates=function(t){this.useState(yn,!1,t)},r.prototype.useState=function(t,e,i,n){var a=t===yn,o=this.hasState();if(!(!o&&a)){var s=this.currentStates,f=this.stateTransition;if(!(Q(s,t)>=0&&(e||s.length===1))){var u;if(this.stateProxy&&!a&&(u=this.stateProxy(t)),u||(u=this.states&&this.states[t]),!u&&!a){$r("State "+t+" not exists.");return}a||this.saveCurrentToNormalState(u);var h=this._textContent,l=lo(this,h,u,n);l&&!this.__inHover&&(this.__inHover=l),this._applyStateObj(t,u,this._normalState,e,vo(this,i,f),f);var p=this._textGuide;return h&&h.useState(t,e,i,!!l),p&&p.useState(t,e,i,!!l),a?(this.currentStates=[],this._normalState={}):e?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!l&&this.__inHover&&(this.__inHover=ni,this.__dirty&=~W),u}}},r.prototype.useStates=function(t,e,i){if(!t.length)this.clearStates();else{var n=[],a=this.currentStates,o=t.length,s=o===a.length;if(s){for(var f=0;f<o;f++)if(t[f]!==a[f]){s=!1;break}}if(s)return;for(var f=0;f<o;f++){var u=t[f],h=void 0;this.stateProxy&&(h=this.stateProxy(u,t)),h||(h=this.states[u]),h&&n.push(h)}var l=n[o-1],p=this._textContent,c=lo(this,p,l,i);c&&!this.__inHover&&(this.__inHover=c);var v=this._mergeStates(n),m=this.stateTransition;this.saveCurrentToNormalState(v),this._applyStateObj(t.join(","),v,this._normalState,!1,vo(this,e,m),m);var _=this._textGuide;p&&p.useStates(t,e,!!c),_&&_.useStates(t,e,!!c),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!c&&this.__inHover&&(this.__inHover=ni,this.__dirty&=~W)}},r.prototype.isSilent=function(){for(var t=this;t;){if(t.silent)return!0;var e=t.__hostTarget;t=e?t.ignoreHostSilent?null:e:t.parent}return!1},r.prototype._updateAnimationTargets=function(){for(var t=0;t<this.animators.length;t++){var e=this.animators[t];e.targetName&&e.changeTarget(this[e.targetName])}},r.prototype.removeState=function(t){var e=Q(this.currentStates,t);if(e>=0){var i=this.currentStates.slice();i.splice(e,1),this.useStates(i)}},r.prototype.replaceState=function(t,e,i){var n=this.currentStates.slice(),a=Q(n,t),o=Q(n,e)>=0;a>=0?o?n.splice(a,1):n[a]=e:i&&!o&&n.push(e),this.useStates(n)},r.prototype.toggleState=function(t,e){e?this.useState(t,!0):this.removeState(t)},r.prototype._mergeStates=function(t){for(var e={},i,n=0;n<t.length;n++){var a=t[n];O(e,a),a.textConfig&&(i=i||{},O(i,a.textConfig))}return i&&(e.textConfig=i),e},r.prototype._applyStateObj=function(t,e,i,n,a,o){if(this.__inHover!==Yr){var s=!(e&&n);e&&e.textConfig?(this.textConfig=O({},n?this.textConfig:i.textConfig),O(this.textConfig,e.textConfig)):s&&i.textConfig&&(this.textConfig=i.textConfig);for(var f={},u=!1,h=0;h<xn.length;h++){var l=xn[h],p=a&&yu[l];e&&e[l]!=null?p?(u=!0,f[l]=e[l]):this[l]=e[l]:s&&i[l]!=null&&(p?(u=!0,f[l]=i[l]):this[l]=i[l])}if(!a)for(var h=0;h<this.animators.length;h++){var c=this.animators[h],v=c.targetName;c.getLoop()||c.__changeFinalValue(v?(e||i)[v]:e||i)}u&&this._transitionState(t,f,o)}},r.prototype._attachComponent=function(t){if(!(t.__zr&&!t.__hostTarget)&&t!==this){var e=this.__zr;e&&t.addSelfToZr(e),t.__zr=e,t.__hostTarget=this}},r.prototype._detachComponent=function(t){t.__zr&&t.removeSelfFromZr(t.__zr),t.__zr=null,t.__hostTarget=null},r.prototype.getClipPath=function(){return this._clipPath},r.prototype.setClipPath=function(t){this._clipPath&&this._clipPath!==t&&this.removeClipPath(),this._attachComponent(t),this._clipPath=t,this.markRedraw()},r.prototype.removeClipPath=function(){var t=this._clipPath;t&&(this._detachComponent(t),this._clipPath=null,this.markRedraw())},r.prototype.getTextContent=function(){return this._textContent},r.prototype.setTextContent=function(t){var e=this._textContent;e!==t&&(e&&e!==t&&this.removeTextContent(),t.innerTransformable=new _n,this._attachComponent(t),this._textContent=t,this.markRedraw())},r.prototype.setTextConfig=function(t){this.textConfig||(this.textConfig={}),O(this.textConfig,t),this.markRedraw()},r.prototype.removeTextConfig=function(){this.textConfig=null,this.markRedraw()},r.prototype.removeTextContent=function(){var t=this._textContent;t&&(t.innerTransformable=null,this._detachComponent(t),this._textContent=null,this._innerTextDefaultStyle=null,this.markRedraw())},r.prototype.getTextGuideLine=function(){return this._textGuide},r.prototype.setTextGuideLine=function(t){this._textGuide&&this._textGuide!==t&&this.removeTextGuideLine(),this._attachComponent(t),this._textGuide=t,this.markRedraw()},r.prototype.removeTextGuideLine=function(){var t=this._textGuide;t&&(this._detachComponent(t),this._textGuide=null,this.markRedraw())},r.prototype.markRedraw=function(){this.__dirty|=W;var t=this.__zr;t&&(this.__inHover?t.refreshHover():t.refresh()),this.__hostTarget&&this.__hostTarget.markRedraw()},r.prototype.dirty=function(){this.markRedraw()},r.prototype.addSelfToZr=function(t){if(this.__zr!==t){this.__zr=t;var e=this.animators;if(e)for(var i=0;i<e.length;i++)t.animation.addAnimator(e[i]);this._clipPath&&this._clipPath.addSelfToZr(t),this._textContent&&this._textContent.addSelfToZr(t),this._textGuide&&this._textGuide.addSelfToZr(t)}},r.prototype.removeSelfFromZr=function(t){if(this.__zr){this.__zr=null;var e=this.animators;if(e)for(var i=0;i<e.length;i++)t.animation.removeAnimator(e[i]);this._clipPath&&this._clipPath.removeSelfFromZr(t),this._textContent&&this._textContent.removeSelfFromZr(t),this._textGuide&&this._textGuide.removeSelfFromZr(t)}},r.prototype.animate=function(t,e,i){var n=t?this[t]:this,a=new pe(n,e,i);return t&&(a.targetName=t),this.addAnimator(a,t),a},r.prototype.addAnimator=function(t,e){var i=this.__zr,n=this;t.during(function(){n.updateDuringAnimation(e)}).done(function(){var a=n.animators,o=Q(a,t);o>=0&&a.splice(o,1)}),this.animators.push(t),i&&i.animation.addAnimator(t),i&&i.wakeUp()},r.prototype.updateDuringAnimation=function(t){this.markRedraw()},r.prototype.stopAnimation=function(t,e){for(var i=this.animators,n=i.length,a=[],o=0;o<n;o++){var s=i[o];!t||t===s.scope?s.stop(e):a.push(s)}return this.animators=a,this},r.prototype.animateTo=function(t,e,i){Tn(this,t,e,i)},r.prototype.animateFrom=function(t,e,i){Tn(this,t,e,i,!0)},r.prototype._transitionState=function(t,e,i,n){for(var a=Tn(this,e,i,n),o=0;o<a.length;o++)a[o].__fromStateTransition=t},r.prototype.getBoundingRect=function(){return null},r.prototype.getPaintRect=function(){return null},r.initDefaultProps=(function(){var t=r.prototype;t.type="element",t.name="",t.ignore=t.silent=t.ignoreHostSilent=t.isGroup=t.draggable=t.dragging=t.ignoreClip=!1,t.__inHover=ni,t.__dirty=W;var e={};function i(a,o,s){e[a+o+s]||(console.warn("DEPRECATED: '"+a+"' has been deprecated. use '"+o+"', '"+s+"' instead"),e[a+o+s]=!0)}function n(a,o,s,f){Object.defineProperty(t,a,{get:function(){if(!this[o]){var h=this[o]=[];u(this,h)}return this[o]},set:function(h){this[s]=h[0],this[f]=h[1],this[o]=h,u(this,h)}});function u(h,l){Object.defineProperty(l,0,{get:function(){return h[s]},set:function(p){h[s]=p}}),Object.defineProperty(l,1,{get:function(){return h[f]},set:function(p){h[f]=p}})}}Object.defineProperty&&(n("position","_legacyPos","x","y"),n("scale","_legacyScale","scaleX","scaleY"),n("origin","_legacyOrigin","originX","originY"))})(),r})();Re(bn,Lt);Re(bn,_n);function Tn(r,t,e,i,n){e=e||{};var a=[];co(r,"",r,t,e,i,a,n);var o=a.length,s=!1,f=e.done,u=e.aborted,h=function(){s=!0,o--,o<=0&&(s?f&&f():u&&u())},l=function(){o--,o<=0&&(s?f&&f():u&&u())};o||f&&f(),a.length>0&&e.during&&a[0].during(function(v,m){e.during(m)});for(var p=0;p<a.length;p++){var c=a[p];h&&c.done(h),l&&c.aborted(l),e.force&&c.duration(e.duration),c.start(e.easing)}return a}function wn(r,t,e){for(var i=0;i<e;i++)r[i]=t[i]}function Tu(r){return $(r[0])}function wu(r,t,e){if($(t[e]))if($(r[e])||(r[e]=[]),Ti(t[e])){var i=t[e].length;r[e].length!==i&&(r[e]=new t[e].constructor(i),wn(r[e],t[e],i))}else{var n=t[e],a=r[e],o=n.length;if(Tu(n))for(var s=n[0].length,f=0;f<o;f++)a[f]?wn(a[f],n[f],s):a[f]=Array.prototype.slice.call(n[f]);else wn(a,n,o);a.length=n.length}else r[e]=t[e]}function bu(r,t){return r===t||$(r)&&$(t)&&Su(r,t)}function Su(r,t){var e=r.length;if(e!==t.length)return!1;for(var i=0;i<e;i++)if(r[i]!==t[i])return!1;return!0}function co(r,t,e,i,n,a,o,s){for(var f=B(i),u=n.duration,h=n.delay,l=n.additive,p=n.setToFinal,c=!Ct(a),v=r.animators,m=[],_=0;_<f.length;_++){var d=f[_],g=i[d];if(g!=null&&e[d]!=null&&(c||a[d]))if(Ct(g)&&!$(g)&&!ir(g)){if(t){s||(e[d]=g,r.updateDuringAnimation(t));continue}co(r,d,e[d],g,n,a&&a[d],o,s)}else m.push(d);else s||(e[d]=g,r.updateDuringAnimation(t),m.push(d))}var T=m.length;if(!l&&T)for(var y=0;y<v.length;y++){var w=v[y];if(w.targetName===t){var x=w.stopTracks(m);if(x){var C=Q(v,w);v.splice(C,1)}}}if(n.force||(m=Me(m,function(R){return!bu(i[R],e[R])}),T=m.length),T>0||n.force&&!o.length){var b=void 0,P=void 0,M=void 0;if(s){P={},p&&(b={});for(var y=0;y<T;y++){var d=m[y];P[d]=e[d],p?b[d]=i[d]:e[d]=i[d]}}else if(p){M={};for(var y=0;y<T;y++){var d=m[y];M[d]=le(e[d]),wu(e,i,d)}}var w=new pe(e,!1,!1,l?Me(v,function(L){return L.targetName===t}):null);w.targetName=t,n.scope&&(w.scope=n.scope),p&&b&&w.whenWithKeys(0,b,m),M&&w.whenWithKeys(0,M,m),w.whenWithKeys(u??500,s?P:i,m).delay(h||0),r.addAnimator(w,t),o.push(w)}}function lo(r,t,e,i){return!(e&&e.hoverLayer||i)||po(r)||t&&po(t)?ni:Yr}function po(r){return r.type==="text"||r.type==="tspan"}function vo(r,t,e){return!t&&!r.__inHover&&e&&e.duration>0}var ai=bn;var _o=(function(r){F(t,r);function t(e){var i=r.call(this)||this;return i.isGroup=!0,i._children=[],i.attr(e),i}return t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(e){return this._children[e]},t.prototype.childOfName=function(e){for(var i=this._children,n=0;n<i.length;n++)if(i[n].name===e)return i[n]},t.prototype.childCount=function(){return this._children.length},t.prototype.add=function(e){return e&&e!==this&&e.parent!==this&&(this._children.push(e),this._doAdd(e)),this},t.prototype.addBefore=function(e,i){if(e&&e!==this&&e.parent!==this&&i&&i.parent===this){var n=this._children,a=n.indexOf(i);a>=0&&(n.splice(a,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,i){var n=Q(this._children,e);return n>=0&&this.replaceAt(i,n),this},t.prototype.replaceAt=function(e,i){var n=this._children,a=n[i];if(e&&e!==this&&e.parent!==this&&e!==a){n[i]=e,a.parent=null;var o=this.__zr;o&&a.removeSelfFromZr(o),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var i=this.__zr;i&&i!==e.__zr&&e.addSelfToZr(i),i&&i.refresh()},t.prototype.remove=function(e){var i=this.__zr,n=this._children,a=Q(n,e);return a<0?this:(n.splice(a,1),e.parent=null,i&&e.removeSelfFromZr(i),i&&i.refresh(),this)},t.prototype.removeAll=function(){for(var e=this._children,i=this.__zr,n=0;n<e.length;n++){var a=e[n];i&&a.removeSelfFromZr(i),a.parent=null}return e.length=0,this},t.prototype.eachChild=function(e,i){for(var n=this._children,a=0;a<n.length;a++){var o=n[a];e.call(i,o,a)}return this},t.prototype.traverse=function(e,i){for(var n=0;n<this._children.length;n++){var a=this._children[n],o=e.call(i,a);a.isGroup&&!o&&a.traverse(e,i)}return this},t.prototype.addSelfToZr=function(e){r.prototype.addSelfToZr.call(this,e);for(var i=0;i<this._children.length;i++){var n=this._children[i];n.addSelfToZr(e)}},t.prototype.removeSelfFromZr=function(e){r.prototype.removeSelfFromZr.call(this,e);for(var i=0;i<this._children.length;i++){var n=this._children[i];n.removeSelfFromZr(e)}},t.prototype.getBoundingRect=function(e){for(var i=new D(0,0,0,0),n=e||this._children,a=[],o=null,s=0;s<n.length;s++){var f=n[s];if(!(f.ignore||f.invisible)){var u=f.getBoundingRect(),h=f.getLocalTransform(a);h?(D.applyTransform(i,u,h),o=o||i.clone(),o.union(i)):(o=o||u.clone(),o.union(u))}}return o||i},t})(ai);_o.prototype.type="group";var mo=_o;var oi={},mr={};function Cu(r){delete mr[r]}function Pu(r){if(!r)return!1;if(typeof r=="string")return or(r,1)<ve;if(r.colorStops){for(var t=r.colorStops,e=0,i=t.length,n=0;n<i;n++)e+=or(t[n].color,1);return e/=i,e<ve}return!1}var Eu=(function(){function r(t,e,i){var n=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!1,this._darkMode=!1,i=i||{},this.dom=e,this.id=t;var a=new Aa,o=i.renderer||"canvas";oi[o]||(o=B(oi)[0]),i.useDirtyRect=i.useDirtyRect==null?!1:i.useDirtyRect;var s=new oi[o](e,a,i,t),f=i.ssr||s.ssrOnly;this.storage=a,this.painter=s;var u=!I.node&&!I.worker&&!f?new io(s.getViewportRoot(),s.root):null,h=i.useCoarsePointer,l=h==null||h==="auto"?I.touchEventsSupported:!!h,p=44,c;l&&(c=H(i.pointerSize,p)),this.handler=new Ea(a,s,u,s.root,c),this.animation=new ja({stage:{update:f?null:function(){return n._flush(!1)}}}),f||this.animation.start()}return r.prototype.add=function(t){this._disposed||!t||(this.storage.addRoot(t),t.addSelfToZr(this),this.refresh())},r.prototype.remove=function(t){this._disposed||!t||(this.storage.delRoot(t),t.removeSelfFromZr(this),this.refresh())},r.prototype.configLayer=function(t,e){this._disposed||(this.painter.configLayer&&this.painter.configLayer(t,e),this.refresh())},r.prototype.setBackgroundColor=function(t){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(t),this.refresh(),this._backgroundColor=t,this._darkMode=Pu(t))},r.prototype.getBackgroundColor=function(){return this._backgroundColor},r.prototype.setDarkMode=function(t){this._darkMode=t},r.prototype.isDarkMode=function(){return this._darkMode},r.prototype.refreshImmediately=function(t){this._disposed||this._refresh({animUpdate:!t,refresh:!0,refreshHover:!1})},r.prototype._refresh=function(t){t.animUpdate&&this.animation.update(!0),this._needsRefresh=this._needsRefreshHover=!1,this.painter.refresh({refresh:t.refresh,refreshHover:t.refreshHover}),this._needsRefresh=this._needsRefreshHover=!1},r.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},r.prototype.flush=function(){this._disposed||this._flush(!0)},r.prototype._flush=function(t){var e,i=vr(),n=this._needsRefresh,a=this._needsRefreshHover;(n||a)&&(e=!0,this._refresh({animUpdate:t,refresh:n,refreshHover:a}));var o=vr();e?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:o-i})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},r.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},r.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},r.prototype.refreshHover=function(){this._needsRefreshHover=!0},r.prototype.refreshHoverImmediately=function(){this._disposed||this._refresh({animUpdate:!1,refresh:!1,refreshHover:!0})},r.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},r.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},r.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},r.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},r.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},r.prototype.findHover=function(t,e){if(!this._disposed)return this.handler.findHover(t,e)},r.prototype.on=function(t,e,i){return this._disposed||this.handler.on(t,e,i),this},r.prototype.off=function(t,e){this._disposed||this.handler.off(t,e)},r.prototype.trigger=function(t,e){this._disposed||this.handler.trigger(t,e)},r.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),e=0;e<t.length;e++)t[e]instanceof mo&&t[e].removeSelfFromZr(this);this.storage.delAllRoots(),this.painter.clear()}},r.prototype.dispose=function(){this._disposed||(this.animation.stop(),this.clear(),this.storage.dispose(),this.painter.dispose(),this.handler.dispose(),this.animation=this.storage=this.painter=this.handler=null,this._disposed=!0,Cu(this.id))},r})();function Ru(r,t){var e=new Eu(Qr(),r,t);return mr[e.id]=e,e}function Mu(r){r.dispose()}function Lu(){for(var r in mr)mr.hasOwnProperty(r)&&mr[r].dispose();mr={}}function Ou(r){return mr[r]}function Du(r,t){oi[r]=t}var Sn;function Au(r){if(typeof Sn=="function")return Sn(r)}function Fu(r){Sn=r}var Iu="6.1.0";var En="__zr_style_"+Math.round(Math.random()*10),gt={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},gr={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};gt[En]=!0;var go=["z","z2","invisible"],Hu=["invisible"],Nu=(function(r){F(t,r);function t(e){return r.call(this,e)||this}return t.prototype._init=function(e){for(var i=B(e),n=0;n<i.length;n++){var a=i[n];a==="style"?this.useStyle(e[a]):r.prototype.attrKV.call(this,a,e[a])}this.style||this.useStyle({})},t.prototype.beforeBrush=function(e){},t.prototype.afterBrush=function(){},t.prototype.innerBeforeBrush=function(){},t.prototype.innerAfterBrush=function(){},t.prototype.shouldBePainted=function(e,i,n,a){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&zu(this,e,i)||o&&!o[0]&&!o[3])return!1;if(n&&this.__clipPaths&&this.__clipPaths.length){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(a&&this.parent)for(var f=this.parent;f;){if(f.ignore)return!1;f=f.parent}return!0},t.prototype.contain=function(e,i){return this.rectContain(e,i)},t.prototype.traverse=function(e,i){e.call(i,this)},t.prototype.rectContain=function(e,i){var n=this.transformCoordToLocal(e,i),a=this.getBoundingRect();return a.contain(n[0],n[1])},t.prototype.getPaintRect=function(){var e=this._paintRect;if(!this._paintRect||this.__dirty){var i=this.transform,n=this.getBoundingRect(),a=this.style,o=a.shadowBlur||0,s=a.shadowOffsetX||0,f=a.shadowOffsetY||0;e=this._paintRect||(this._paintRect=new D(0,0,0,0)),i?D.applyTransform(e,n,i):e.copy(n),(o||s||f)&&(e.width+=o*2+Math.abs(s),e.height+=o*2+Math.abs(f),e.x=Math.min(e.x,e.x+s-o),e.y=Math.min(e.y,e.y+f-o));var u=this.dirtyRectTolerance;e.isZero()||(e.x=Math.floor(e.x-u),e.y=Math.floor(e.y-u),e.width=Math.ceil(e.width+1+u*2),e.height=Math.ceil(e.height+1+u*2))}return e},t.prototype.setPrevPaintRect=function(e){e?(this._prevPaintRect=this._prevPaintRect||new D(0,0,0,0),this._prevPaintRect.copy(e)):this._prevPaintRect=null},t.prototype.getPrevPaintRect=function(){return this._prevPaintRect},t.prototype.animateStyle=function(e){return this.animate("style",e)},t.prototype.updateDuringAnimation=function(e){e==="style"?this.dirtyStyle():this.markRedraw()},t.prototype.attrKV=function(e,i){e!=="style"?r.prototype.attrKV.call(this,e,i):this.style?this.setStyle(i):this.useStyle(i)},t.prototype.setStyle=function(e,i){return typeof e=="string"?this.style[e]=i:O(this.style,e),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(e){e||this.markRedraw(),this.__dirty|=pr,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&pr)},t.prototype.styleUpdated=function(){this.__dirty&=~pr},t.prototype.createStyle=function(e){return Pt(gt,e)},t.prototype.useStyle=function(e){e[En]||(e=this.createStyle(e)),this.style=e,this.dirtyStyle()},t.prototype._useHoverStyle=function(e){this.__hoverStyle=e},t.prototype.isStyleObject=function(e){return e[En]},t.prototype._innerSaveToNormal=function(e){r.prototype._innerSaveToNormal.call(this,e);var i=this._normalState;e.style&&!i.style&&(i.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(e,i,go)},t.prototype._applyStateObj=function(e,i,n,a,o,s){r.prototype._applyStateObj.call(this,e,i,n,a,o,s);var f=!(i&&a),u=this.__inHover===Yr,h;if(i&&i.style?o?a?h=i.style:(h=this._mergeStyle(this.createStyle(),n.style),this._mergeStyle(h,i.style)):(h=this._mergeStyle(this.createStyle(),a?this.style:n.style),this._mergeStyle(h,i.style)):f&&(h=n.style),h)if(o){var l=this.style;if(this.style=this.createStyle(f?{}:l),f)for(var p=B(l),c=0;c<p.length;c++){var v=p[c];v in h&&(h[v]=h[v],this.style[v]=l[v])}for(var m=B(h),c=0;c<m.length;c++){var v=m[c];this.style[v]=this.style[v]}this._transitionState(e,{style:h},s,this.getAnimationStyleProps())}else u?this._useHoverStyle(h):this.useStyle(h);if(!u)for(var _=this.__inHover?Hu:go,c=0;c<_.length;c++){var v=_[c];i&&i[v]!=null?this[v]=i[v]:f&&n[v]!=null&&(this[v]=n[v])}},t.prototype._mergeStates=function(e){for(var i=r.prototype._mergeStates.call(this,e),n,a=0;a<e.length;a++){var o=e[a];o.style&&(n=n||{},this._mergeStyle(n,o.style))}return n&&(i.style=n),i},t.prototype._mergeStyle=function(e,i){return O(e,i),e},t.prototype.getAnimationStyleProps=function(){return gr},t.initDefaultProps=(function(){var e=t.prototype;e.type="displayable",e.invisible=!1,e.z=0,e.z2=0,e.zlevel=0,e.culling=!1,e.cursor="pointer",e.rectHover=!1,e.incremental=0,e._rect=null,e.dirtyRectTolerance=0,e.__dirty=W|pr})(),t})(ai),Cn=new D(0,0,0,0),Pn=new D(0,0,0,0);function zu(r,t,e){return Cn.copy(r.getBoundingRect()),r.transform&&Cn.applyTransform(r.transform),Pn.width=t,Pn.height=e,!Cn.intersect(Pn)}var Kt=Nu;var k=Math.min,Z=Math.max,Rn=Math.sin,Mn=Math.cos,yr=Math.PI*2,si=Rt(),fi=Rt(),ui=Rt();function Qp(r,t,e){if(r.length!==0){for(var i=r[0],n=i[0],a=i[0],o=i[1],s=i[1],f=1;f<r.length;f++)i=r[f],n=k(n,i[0]),a=Z(a,i[0]),o=k(o,i[1]),s=Z(s,i[1]);t[0]=n,t[1]=o,e[0]=a,e[1]=s}}function Ln(r,t,e,i,n,a){n[0]=k(r,e),n[1]=k(t,i),a[0]=Z(r,e),a[1]=Z(t,i)}var yo=[],xo=[];function To(r,t,e,i,n,a,o,s,f,u){var h=qe,l=N,p=h(r,e,n,o,yo);f[0]=1/0,f[1]=1/0,u[0]=-1/0,u[1]=-1/0;for(var c=0;c<p;c++){var v=l(r,e,n,o,yo[c]);f[0]=k(v,f[0]),u[0]=Z(v,u[0])}p=h(t,i,a,s,xo);for(var c=0;c<p;c++){var m=l(t,i,a,s,xo[c]);f[1]=k(m,f[1]),u[1]=Z(m,u[1])}f[0]=k(r,f[0]),u[0]=Z(r,u[0]),f[0]=k(o,f[0]),u[0]=Z(o,u[0]),f[1]=k(t,f[1]),u[1]=Z(t,u[1]),f[1]=k(s,f[1]),u[1]=Z(s,u[1])}function wo(r,t,e,i,n,a,o,s){var f=ke,u=G,h=Z(k(f(r,e,n),1),0),l=Z(k(f(t,i,a),1),0),p=u(r,e,n,h),c=u(t,i,a,l);o[0]=k(r,n,p),o[1]=k(t,a,c),s[0]=Z(r,n,p),s[1]=Z(t,a,c)}function bo(r,t,e,i,n,a,o,s,f){var u=Jr,h=te,l=Math.abs(n-a);if(l%yr<1e-4&&l>1e-4){s[0]=r-e,s[1]=t-i,f[0]=r+e,f[1]=t+i;return}if(si[0]=Mn(n)*e+r,si[1]=Rn(n)*i+t,fi[0]=Mn(a)*e+r,fi[1]=Rn(a)*i+t,u(s,si,fi),h(f,si,fi),n=n%yr,n<0&&(n=n+yr),a=a%yr,a<0&&(a=a+yr),n>a&&!o?a+=yr:n<a&&o&&(n+=yr),o){var p=a;a=n,n=p}for(var c=0;c<a;c+=Math.PI/2)c>n&&(ui[0]=Mn(c)*e+r,ui[1]=Rn(c)*i+t,u(s,ui,s),h(f,ui,f))}var A={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},xr=[],Tr=[],yt=[],Qt=[],xt=[],Tt=[],On=Math.min,Dn=Math.max,wr=Math.cos,br=Math.sin,Ft=Math.abs,In=Math.PI,$t=In*2,An=typeof Float32Array<"u",me=[];function Fn(r){var t=Math.round(r/In*1e8)/1e8;return t%2*In}function Yu(r,t){var e=Fn(r[0]);e<0&&(e+=$t);var i=e-r[0],n=r[1];n+=i,!t&&n-e>=$t?n=e+$t:t&&e-n>=$t?n=e-$t:!t&&e>n?n=e+($t-Fn(e-n)):t&&e<n&&(n=e-($t-Fn(n-e))),r[0]=e,r[1]=n}var Wu=(function(){function r(t){this.dpr=1,this._xi=0,this._yi=0,this._x0=0,this._y0=0,this._len=0,t&&(this._saveData=!1),this._saveData&&(this.data=[])}return r.prototype.increaseVersion=function(){this._version++},r.prototype.getVersion=function(){return this._version},r.prototype.setScale=function(t,e,i){i=i||0,i>0&&(this._ux=Ft(i/pn/t)||0,this._uy=Ft(i/pn/e)||0)},r.prototype.setDPR=function(t){this.dpr=t},r.prototype.setContext=function(t){this._ctx=t},r.prototype.getContext=function(){return this._ctx},r.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},r.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},r.prototype.moveTo=function(t,e){return this._drawPendingPt(),this.addData(A.M,t,e),this._ctx&&this._ctx.moveTo(t,e),this._x0=t,this._y0=e,this._xi=t,this._yi=e,this},r.prototype.lineTo=function(t,e){var i=Ft(t-this._xi),n=Ft(e-this._yi),a=i>this._ux||n>this._uy;if(this.addData(A.L,t,e),this._ctx&&a&&this._ctx.lineTo(t,e),a)this._xi=t,this._yi=e,this._pendingPtDist=0;else{var o=i*i+n*n;o>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=e,this._pendingPtDist=o)}return this},r.prototype.bezierCurveTo=function(t,e,i,n,a,o){return this._drawPendingPt(),this.addData(A.C,t,e,i,n,a,o),this._ctx&&this._ctx.bezierCurveTo(t,e,i,n,a,o),this._xi=a,this._yi=o,this},r.prototype.quadraticCurveTo=function(t,e,i,n){return this._drawPendingPt(),this.addData(A.Q,t,e,i,n),this._ctx&&this._ctx.quadraticCurveTo(t,e,i,n),this._xi=i,this._yi=n,this},r.prototype.arc=function(t,e,i,n,a,o){this._drawPendingPt(),me[0]=n,me[1]=a,Yu(me,o),n=me[0],a=me[1];var s=a-n;return this.addData(A.A,t,e,i,i,n,s,0,o?0:1),this._ctx&&this._ctx.arc(t,e,i,n,a,o),this._xi=wr(a)*i+t,this._yi=br(a)*i+e,this},r.prototype.arcTo=function(t,e,i,n,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,e,i,n,a),this},r.prototype.rect=function(t,e,i,n){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,e,i,n),this.addData(A.R,t,e,i,n),this},r.prototype.closePath=function(){this._drawPendingPt(),this.addData(A.Z);var t=this._ctx,e=this._x0,i=this._y0;return t&&t.closePath(),this._xi=e,this._yi=i,this},r.prototype.fill=function(t){t&&t.fill(),this.toStatic()},r.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},r.prototype.len=function(){return this._len},r.prototype.setData=function(t){if(this._saveData){var e=t.length;!(this.data&&this.data.length===e)&&An&&(this.data=new Float32Array(e));for(var i=0;i<e;i++)this.data[i]=t[i];this._len=e}},r.prototype.appendPath=function(t){if(this._saveData){t instanceof Array||(t=[t]);for(var e=t.length,i=0,n=this._len,a=0;a<e;a++)i+=t[a].len();var o=this.data;if(An&&(o instanceof Float32Array||!o)&&(this.data=new Float32Array(n+i),n>0&&o))for(var s=0;s<n;s++)this.data[s]=o[s];for(var a=0;a<e;a++)for(var f=t[a].data,s=0;s<f.length;s++)this.data[n++]=f[s];this._len=n}},r.prototype.addData=function(t,e,i,n,a,o,s,f,u){if(this._saveData){var h=this.data;this._len+arguments.length>h.length&&(this._expandData(),h=this.data);for(var l=0;l<arguments.length;l++)h[this._len++]=arguments[l]}},r.prototype._drawPendingPt=function(){this._pendingPtDist>0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},r.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],e=0;e<this._len;e++)t[e]=this.data[e];this.data=t}},r.prototype.toStatic=function(){if(this._saveData){this._drawPendingPt();var t=this.data;t instanceof Array&&(t.length=this._len,An&&this._len>11&&(this.data=new Float32Array(t)))}},r.prototype.getBoundingRect=function(){yt[0]=yt[1]=xt[0]=xt[1]=Number.MAX_VALUE,Qt[0]=Qt[1]=Tt[0]=Tt[1]=-Number.MAX_VALUE;var t=this.data,e=0,i=0,n=0,a=0,o;for(o=0;o<this._len;){var s=t[o++],f=o===1;switch(f&&(e=t[o],i=t[o+1],n=e,a=i),s){case A.M:e=n=t[o++],i=a=t[o++],xt[0]=n,xt[1]=a,Tt[0]=n,Tt[1]=a;break;case A.L:Ln(e,i,t[o],t[o+1],xt,Tt),e=t[o++],i=t[o++];break;case A.C:To(e,i,t[o++],t[o++],t[o++],t[o++],t[o],t[o+1],xt,Tt),e=t[o++],i=t[o++];break;case A.Q:wo(e,i,t[o++],t[o++],t[o],t[o+1],xt,Tt),e=t[o++],i=t[o++];break;case A.A:var u=t[o++],h=t[o++],l=t[o++],p=t[o++],c=t[o++],v=t[o++]+c;o+=1;var m=!t[o++];f&&(n=wr(c)*l+u,a=br(c)*p+h),bo(u,h,l,p,c,v,m,xt,Tt),e=wr(v)*l+u,i=br(v)*p+h;break;case A.R:n=e=t[o++],a=i=t[o++];var _=t[o++],d=t[o++];Ln(n,a,n+_,a+d,xt,Tt);break;case A.Z:e=n,i=a;break}Jr(yt,yt,xt),te(Qt,Qt,Tt)}return o===0&&(yt[0]=yt[1]=Qt[0]=Qt[1]=0),new D(yt[0],yt[1],Qt[0]-yt[0],Qt[1]-yt[1])},r.prototype._calculateLength=function(){var t=this.data,e=this._len,i=this._ux,n=this._uy,a=0,o=0,s=0,f=0;this._pathSegLen||(this._pathSegLen=[]);for(var u=this._pathSegLen,h=0,l=0,p=0;p<e;){var c=t[p++],v=p===1;v&&(a=t[p],o=t[p+1],s=a,f=o);var m=-1;switch(c){case A.M:a=s=t[p++],o=f=t[p++];break;case A.L:{var _=t[p++],d=t[p++],g=_-a,T=d-o;(Ft(g)>i||Ft(T)>n||p===e-1)&&(m=Math.sqrt(g*g+T*T),a=_,o=d);break}case A.C:{var y=t[p++],w=t[p++],_=t[p++],d=t[p++],x=t[p++],C=t[p++];m=za(a,o,y,w,_,d,x,C,10),a=x,o=C;break}case A.Q:{var y=t[p++],w=t[p++],_=t[p++],d=t[p++];m=Ga(a,o,y,w,_,d,10),a=_,o=d;break}case A.A:var b=t[p++],P=t[p++],M=t[p++],R=t[p++],L=t[p++],E=t[p++],S=E+L;p+=1,v&&(s=wr(L)*M+b,f=br(L)*R+P),m=Dn(M,R)*On($t,Math.abs(E)),a=wr(S)*M+b,o=br(S)*R+P;break;case A.R:{s=a=t[p++],f=o=t[p++];var q=t[p++],J=t[p++];m=q*2+J*2;break}case A.Z:{var g=s-a,T=f-o;m=Math.sqrt(g*g+T*T),a=s,o=f;break}}m>=0&&(u[l++]=m,h+=m)}return this._pathLen=h,h},r.prototype.rebuildPath=function(t,e){var i=this.data,n=this._ux,a=this._uy,o=this._len,s,f,u,h,l,p,c=e<1,v,m,_=0,d=0,g,T=0,y,w;if(!(c&&(this._pathSegLen||this._calculateLength(),v=this._pathSegLen,m=this._pathLen,g=e*m,!g)))t:for(var x=0;x<o;){var C=i[x++],b=x===1;switch(b&&(u=i[x],h=i[x+1],s=u,f=h),C!==A.L&&T>0&&(t.lineTo(y,w),T=0),C){case A.M:s=u=i[x++],f=h=i[x++],t.moveTo(u,h);break;case A.L:{l=i[x++],p=i[x++];var P=Ft(l-u),M=Ft(p-h);if(P>n||M>a){if(c){var R=v[d++];if(_+R>g){var L=(g-_)/R;t.lineTo(u*(1-L)+l*L,h*(1-L)+p*L);break t}_+=R}t.lineTo(l,p),u=l,h=p,T=0}else{var E=P*P+M*M;E>T&&(y=l,w=p,T=E)}break}case A.C:{var S=i[x++],q=i[x++],J=i[x++],tt=i[x++],bt=i[x++],qr=i[x++];if(c){var R=v[d++];if(_+R>g){var L=(g-_)/R;ji(u,S,J,bt,L,xr),ji(h,q,tt,qr,L,Tr),t.bezierCurveTo(xr[1],Tr[1],xr[2],Tr[2],xr[3],Tr[3]);break t}_+=R}t.bezierCurveTo(S,q,J,tt,bt,qr),u=bt,h=qr;break}case A.Q:{var S=i[x++],q=i[x++],J=i[x++],tt=i[x++];if(c){var R=v[d++];if(_+R>g){var L=(g-_)/R;Ji(u,S,J,L,xr),Ji(h,q,tt,L,Tr),t.quadraticCurveTo(xr[1],Tr[1],xr[2],Tr[2]);break t}_+=R}t.quadraticCurveTo(S,q,J,tt),u=J,h=tt;break}case A.A:var ft=i[x++],tr=i[x++],St=i[x++],V=i[x++],ut=i[x++],Te=i[x++],we=i[x++],kr=!i[x++],be=St>V?St:V,ys=Ft(St-V)>.001,Zr=ut+Te,Qn=!1;if(c){var R=v[d++];_+R>g&&(Zr=ut+Te*(g-_)/R,Qn=!0),_+=R}if(ys&&t.ellipse?t.ellipse(ft,tr,St,V,we,ut,Zr,kr):t.arc(ft,tr,be,ut,Zr,kr),Qn)break t;b&&(s=wr(ut)*St+ft,f=br(ut)*V+tr),u=wr(Zr)*St+ft,h=br(Zr)*V+tr;break;case A.R:s=u=i[x],f=h=i[x+1],l=i[x++],p=i[x++];var Er=i[x++],Vr=i[x++];if(c){var R=v[d++];if(_+R>g){var dt=g-_;t.moveTo(l,p),t.lineTo(l+On(dt,Er),p),dt-=Er,dt>0&&t.lineTo(l+Er,p+On(dt,Vr)),dt-=Vr,dt>0&&t.lineTo(l+Dn(Er-dt,0),p+Vr),dt-=Er,dt>0&&t.lineTo(l,p+Dn(Vr-dt,0));break t}_+=R}t.rect(l,p,Er,Vr);break;case A.Z:if(c){var R=v[d++];if(_+R>g){var L=(g-_)/R;t.lineTo(u*(1-L)+s*L,h*(1-L)+f*L);break t}_+=R}t.closePath(),u=s,h=f}}},r.prototype.clone=function(){var t=new r,e=this.data;return t.data=e.slice?e.slice():Array.prototype.slice.call(e),t._len=this._len,t},r.prototype.canSave=function(){return!!this._saveData},r.CMD=A,r.initDefaultProps=(function(){var t=r.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0})(),r})(),Wr=Wu;var Bn=new Wt(50);function Co(r){if(typeof r=="string"){var t=Bn.get(r);return t&&t.image}else return r}function Hn(r,t,e,i,n){if(r)if(typeof r=="string"){if(t&&t.__zrImageSrc===r||!e)return t;var a=Bn.get(r),o={hostEl:e,cb:i,cbPayload:n};return a?(t=a.image,!Gr(t)&&a.pending.push(o)):(t=K.loadImage(r,So,So),t.__zrImageSrc=r,Bn.put(r,t.__cachedImgObj={image:t,pending:[o]})),t}else return r;else return t}function So(){var r=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t<r.pending.length;t++){var e=r.pending[t],i=e.cb;i&&i(this,e.cbPayload),e.hostEl.dirty()}r.pending.length=0}function Gr(r){return r&&r.width&&r.height}function Sr(r){return isFinite(r)}function Uu(r,t,e){var i=t.x==null?0:t.x,n=t.x2==null?1:t.x2,a=t.y==null?0:t.y,o=t.y2==null?0:t.y2;t.global||(i=i*e.width+e.x,n=n*e.width+e.x,a=a*e.height+e.y,o=o*e.height+e.y),i=Sr(i)?i:0,n=Sr(n)?n:1,a=Sr(a)?a:0,o=Sr(o)?o:0;var s=r.createLinearGradient(i,a,n,o);return s}function Xu(r,t,e){var i=e.width,n=e.height,a=Math.min(i,n),o=t.x==null?.5:t.x,s=t.y==null?.5:t.y,f=t.r==null?.5:t.r;t.global||(o=o*i+e.x,s=s*n+e.y,f=f*a),o=Sr(o)?o:.5,s=Sr(s)?s:.5,f=f>=0&&Sr(f)?f:.5;var u=r.createRadialGradient(o,s,0,o,s,f);return u}function Nn(r,t,e){for(var i=t.type==="radial"?Xu(r,t,e):Uu(r,t,e),n=t.colorStops,a=0;a<n.length;a++)i.addColorStop(n[a].offset,n[a].color);return i}function Po(r,t){if(r===t||!r&&!t)return!1;if(!r||!t||r.length!==t.length)return!0;for(var e=0;e<r.length;e++)if(r[e]!==t[e])return!0;return!1}function hi(r){return parseInt(r,10)}function av(r,t,e){var i=["width","height"][t],n=["clientWidth","clientHeight"][t],a=["paddingLeft","paddingTop"][t],o=["paddingRight","paddingBottom"][t];if(e[i]!=null&&e[i]!=="auto")return parseFloat(e[i]);var s=document.defaultView.getComputedStyle(r);return(r[n]||hi(s[i])||hi(r.style[i]))-(hi(s[a])||0)-(hi(s[o])||0)||0}function Cr(r,t,e,i,n,a,o){if(n===0)return!1;var s=n,f=0,u=r;if(o>t+s&&o>i+s||o<t-s&&o<i-s||a>r+s&&a>e+s||a<r-s&&a<e-s)return!1;if(r!==e)f=(t-i)/(r-e),u=(r*i-e*t)/(r-e);else return Math.abs(a-r)<=s/2;var h=f*a-o+u,l=h*h/(f*f+1);return l<=s/2*s/2}function Eo(r,t,e,i,n,a,o,s,f,u,h){if(f===0)return!1;var l=f;if(h>t+l&&h>i+l&&h>a+l&&h>s+l||h<t-l&&h<i-l&&h<a-l&&h<s-l||u>r+l&&u>e+l&&u>n+l&&u>o+l||u<r-l&&u<e-l&&u<n-l&&u<o-l)return!1;var p=Na(r,t,e,i,n,a,o,s,u,h,null);return p<=l/2}function Ro(r,t,e,i,n,a,o,s,f){if(o===0)return!1;var u=o;if(f>t+u&&f>i+u&&f>a+u||f<t-u&&f<i-u&&f<a-u||s>r+u&&s>e+u&&s>n+u||s<r-u&&s<e-u&&s<n-u)return!1;var h=Wa(r,t,e,i,n,a,s,f,null);return h<=u/2}var Mo=Math.PI*2;function ge(r){return r%=Mo,r<0&&(r+=Mo),r}var ye=Math.PI*2;function Lo(r,t,e,i,n,a,o,s,f){if(o===0)return!1;var u=o;s-=r,f-=t;var h=Math.sqrt(s*s+f*f);if(h-u>e||h+u<e)return!1;if(Math.abs(i-n)%ye<1e-4)return!0;if(a){var l=i;i=ge(n),n=ge(l)}else i=ge(i),n=ge(n);i>n&&(n+=ye);var p=Math.atan2(f,s);return p<0&&(p+=ye),p>=i&&p<=n||p+ye>=i&&p+ye<=n}function It(r,t,e,i,n,a){if(a>t&&a>i||a<t&&a<i||i===t)return 0;var o=(a-t)/(i-t),s=i<t?1:-1;(o===1||o===0)&&(s=i<t?.5:-.5);var f=o*(e-r)+r;return f===n?1/0:f>n?s:0}var jt=Wr.CMD,Pr=Math.PI*2,Ku=1e-4;function Qu(r,t){return Math.abs(r-t)<Ku}var U=[-1,-1,-1],st=[-1,-1];function $u(){var r=st[0];st[0]=st[1],st[1]=r}function ju(r,t,e,i,n,a,o,s,f,u){if(u>t&&u>i&&u>a&&u>s||u<t&&u<i&&u<a&&u<s)return 0;var h=Xe(t,i,a,s,u,U);if(h===0)return 0;for(var l=0,p=-1,c=void 0,v=void 0,m=0;m<h;m++){var _=U[m],d=_===0||_===1?.5:1,g=N(r,e,n,o,_);g<f||(p<0&&(p=qe(t,i,a,s,st),st[1]<st[0]&&p>1&&$u(),c=N(t,i,a,s,st[0]),p>1&&(v=N(t,i,a,s,st[1]))),p===2?_<st[0]?l+=c<t?d:-d:_<st[1]?l+=v<c?d:-d:l+=s<v?d:-d:_<st[0]?l+=c<t?d:-d:l+=s<c?d:-d)}return l}function Ju(r,t,e,i,n,a,o,s){if(s>t&&s>i&&s>a||s<t&&s<i&&s<a)return 0;var f=Ya(t,i,a,s,U);if(f===0)return 0;var u=ke(t,i,a);if(u>=0&&u<=1){for(var h=0,l=G(t,i,a,u),p=0;p<f;p++){var c=U[p]===0||U[p]===1?.5:1,v=G(r,e,n,U[p]);v<o||(U[p]<u?h+=l<t?c:-c:h+=a<l?c:-c)}return h}else{var c=U[0]===0||U[0]===1?.5:1,v=G(r,e,n,U[0]);return v<o?0:a<t?c:-c}}function th(r,t,e,i,n,a,o,s){if(s-=t,s>e||s<-e)return 0;var f=Math.sqrt(e*e-s*s);U[0]=-f,U[1]=f;var u=Math.abs(i-n);if(u<1e-4)return 0;if(u>=Pr-1e-4){i=0,n=Pr;var h=a?1:-1;return o>=U[0]+r&&o<=U[1]+r?h:0}if(i>n){var l=i;i=n,n=l}i<0&&(i+=Pr,n+=Pr);for(var p=0,c=0;c<2;c++){var v=U[c];if(v+r>o){var m=Math.atan2(s,v),h=a?1:-1;m<0&&(m=Pr+m),(m>=i&&m<=n||m+Pr>=i&&m+Pr<=n)&&(m>Math.PI/2&&m<Math.PI*1.5&&(h=-h),p+=h)}}return p}function Oo(r,t,e,i,n){for(var a=r.data,o=r.len(),s=0,f=0,u=0,h=0,l=0,p,c,v=0;v<o;){var m=a[v++],_=v===1;switch(m===jt.M&&v>1&&(e||(s+=It(f,u,h,l,i,n))),_&&(f=a[v],u=a[v+1],h=f,l=u),m){case jt.M:h=a[v++],l=a[v++],f=h,u=l;break;case jt.L:if(e){if(Cr(f,u,a[v],a[v+1],t,i,n))return!0}else s+=It(f,u,a[v],a[v+1],i,n)||0;f=a[v++],u=a[v++];break;case jt.C:if(e){if(Eo(f,u,a[v++],a[v++],a[v++],a[v++],a[v],a[v+1],t,i,n))return!0}else s+=ju(f,u,a[v++],a[v++],a[v++],a[v++],a[v],a[v+1],i,n)||0;f=a[v++],u=a[v++];break;case jt.Q:if(e){if(Ro(f,u,a[v++],a[v++],a[v],a[v+1],t,i,n))return!0}else s+=Ju(f,u,a[v++],a[v++],a[v],a[v+1],i,n)||0;f=a[v++],u=a[v++];break;case jt.A:var d=a[v++],g=a[v++],T=a[v++],y=a[v++],w=a[v++],x=a[v++];v+=1;var C=!!(1-a[v++]);p=Math.cos(w)*T+d,c=Math.sin(w)*y+g,_?(h=p,l=c):s+=It(f,u,p,c,i,n);var b=(i-d)*y/T+d;if(e){if(Lo(d,g,y,w,w+x,C,t,b,n))return!0}else s+=th(d,g,y,w,w+x,C,b,n);f=Math.cos(w+x)*T+d,u=Math.sin(w+x)*y+g;break;case jt.R:h=f=a[v++],l=u=a[v++];var P=a[v++],M=a[v++];if(p=h+P,c=l+M,e){if(Cr(h,l,p,l,t,i,n)||Cr(p,l,p,c,t,i,n)||Cr(p,c,h,c,t,i,n)||Cr(h,c,h,l,t,i,n))return!0}else s+=It(p,l,p,c,i,n),s+=It(h,c,h,l,i,n);break;case jt.Z:if(e){if(Cr(f,u,h,l,t,i,n))return!0}else s+=It(f,u,h,l,i,n);f=h,u=l;break}}return!e&&!Qu(u,l)&&(s+=It(f,u,h,l,i,n)||0),s!==0}function Do(r,t,e){return Oo(r,0,!1,t,e)}function Ao(r,t,e,i){return Oo(r,t,!0,e,i)}var Yn=et({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},gt),eh={style:et({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},gr.style)},zn=Nr.concat(["invisible","culling","z","z2","zlevel","parent"]),ih=(function(r){F(t,r);function t(e){return r.call(this,e)||this}return t.prototype.update=function(){var e=this;r.prototype.update.call(this);var i=this.style;if(i.decal){var n=this._decalEl=this._decalEl||new t;n.buildPath===t.prototype.buildPath&&(n.buildPath=function(f){e.buildPath(f,e.shape)}),n.silent=!0;var a=n.style;for(var o in i)a[o]!==i[o]&&(a[o]=i[o]);a.fill=i.fill?i.decal:null,a.decal=null,a.shadowColor=null,i.strokeFirst&&(a.stroke=null);for(var s=0;s<zn.length;++s)n[zn[s]]=this[zn[s]];n.__dirty|=W}else this._decalEl&&(this._decalEl=null)},t.prototype.getDecalElement=function(){return this._decalEl},t.prototype._init=function(e){var i=B(e);this.shape=this.getDefaultShape();var n=this.getDefaultStyle();n&&this.useStyle(n);for(var a=0;a<i.length;a++){var o=i[a],s=e[o];o==="style"?this.style?O(this.style,s):this.useStyle(s):o==="shape"?O(this.shape,s):r.prototype.attrKV.call(this,o,s)}this.style||this.useStyle({})},t.prototype.getDefaultStyle=function(){return null},t.prototype.getDefaultShape=function(){return{}},t.prototype.canBeInsideText=function(){return this.hasFill()},t.prototype.getInsideTextFill=function(){var e=this.style.fill;if(e!=="none"){if(Nt(e)){var i=or(e,0);return i>.5?ce:i>.2?ao:de}else if(e)return de}return ce},t.prototype.getInsideTextStroke=function(e){var i=this.style.fill;if(Nt(i)){var n=this.__zr,a=!!(n&&n.isDarkMode()),o=or(e,0)<ve;if(a===o)return i}},t.prototype.buildPath=function(e,i,n){},t.prototype.pathUpdated=function(){this.__dirty&=~qt},t.prototype.getUpdatedPathProxy=function(e){return!this.path&&this.createPathProxy(),this.path.beginPath(),this.buildPath(this.path,this.shape,e),this.path},t.prototype.createPathProxy=function(){this.path=new Wr(!1)},t.prototype.hasStroke=function(){var e=this.style,i=e.stroke;return!(i==null||i==="none"||!(e.lineWidth>0))},t.prototype.hasFill=function(){var e=this.style,i=e.fill;return i!=null&&i!=="none"},t.prototype.getBoundingRect=function(){var e=this._rect,i=this.style,n=!e;if(n){var a=!1;this.path||(a=!0,this.createPathProxy());var o=this.path;(a||this.__dirty&qt)&&(o.beginPath(),this.buildPath(o,this.shape,!1),this.pathUpdated()),e=o.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var s=this._rectStroke||(this._rectStroke=e.clone());if(this.__dirty||n){s.copy(e);var f=i.strokeNoScale?this.getLineScale():1,u=i.lineWidth;if(!this.hasFill()){var h=this.strokeContainThreshold;u=Math.max(u,h??4)}f>1e-10&&(s.width+=u/f,s.height+=u/f,s.x-=u/f/2,s.y-=u/f/2)}return s}return e},t.prototype.contain=function(e,i){var n=this.transformCoordToLocal(e,i),a=this.getBoundingRect(),o=this.style;if(e=n[0],i=n[1],a.contain(e,i)){var s=this.path;if(this.hasStroke()){var f=o.lineWidth,u=o.strokeNoScale?this.getLineScale():1;if(u>1e-10&&(this.hasFill()||(f=Math.max(f,this.strokeContainThreshold)),Ao(s,f/u,e,i)))return!0}if(this.hasFill())return Do(s,e,i)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=qt,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(e){return this.animate("shape",e)},t.prototype.updateDuringAnimation=function(e){e==="style"?this.dirtyStyle():e==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(e,i){e==="shape"?this.setShape(i):r.prototype.attrKV.call(this,e,i)},t.prototype.setShape=function(e,i){var n=this.shape;return n||(n=this.shape={}),typeof e=="string"?n[e]=i:O(n,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&qt)},t.prototype.createStyle=function(e){return Pt(Yn,e)},t.prototype._innerSaveToNormal=function(e){r.prototype._innerSaveToNormal.call(this,e);var i=this._normalState;e.shape&&!i.shape&&(i.shape=O({},this.shape))},t.prototype._applyStateObj=function(e,i,n,a,o,s){if(r.prototype._applyStateObj.call(this,e,i,n,a,o,s),this.__inHover!==Yr){var f=!(i&&a),u;if(i&&i.shape?o?a?u=i.shape:(u=O({},n.shape),O(u,i.shape)):(u=O({},a?this.shape:n.shape),O(u,i.shape)):f&&(u=n.shape),u)if(o){this.shape=O({},this.shape);for(var h={},l=B(u),p=0;p<l.length;p++){var c=l[p];typeof u[c]=="object"?this.shape[c]=u[c]:h[c]=u[c]}this._transitionState(e,{shape:h},s)}else this.shape=u,this.dirtyShape()}},t.prototype._mergeStates=function(e){for(var i=r.prototype._mergeStates.call(this,e),n,a=0;a<e.length;a++){var o=e[a];o.shape&&(n=n||{},this._mergeStyle(n,o.shape))}return n&&(i.shape=n),i},t.prototype.getAnimationStyleProps=function(){return eh},t.prototype.isZeroArea=function(){return!1},t.extend=function(e){var i=(function(a){F(o,a);function o(s){var f=a.call(this,s)||this;return e.init&&e.init.call(f,s),f}return o.prototype.getDefaultStyle=function(){return Ht(e.style)},o.prototype.getDefaultShape=function(){return Ht(e.shape)},o})(t);for(var n in e)typeof e[n]=="function"&&(i.prototype[n]=e[n]);return i},t.initDefaultProps=(function(){var e=t.prototype;e.type="path",e.strokeContainThreshold=5,e.segmentIgnoreThreshold=0,e.subPixelOptimize=!1,e.autoBatch=!1,e.__dirty=W|pr|qt})(),t})(Kt),Jt=ih;var nh=et({x:0,y:0},gt),ah={style:et({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},gr.style)};function oh(r){return!!(r&&typeof r!="string"&&r.width&&r.height)}var Fo=(function(r){F(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.createStyle=function(e){return Pt(nh,e)},t.prototype._getSize=function(e){var i=this.style,n=i[e];if(n!=null)return n;var a=oh(i.image)?i.image:this.__image;if(!a)return 0;var o=e==="width"?"height":"width",s=i[o];return s==null?a[e]:a[e]/a[o]*s},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return ah},t.prototype.getBoundingRect=function(){var e=this.style;return this._rect||(this._rect=new D(e.x||0,e.y||0,this.getWidth(),this.getHeight())),this._rect},t})(Kt);Fo.prototype.type="image";var li=Fo;var Wn=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function Ov(r,t,e,i,n){var a={};return No(a,r,t,e,i,n),a.text}function No(r,t,e,i,n,a){if(!e){r.text="",r.isTruncated=!1;return}var o=(t+"").split(`
3
+ `);a=zo(e,i,n,a);for(var s=!1,f={},u=0,h=o.length;u<h;u++)Yo(f,o[u],a),o[u]=f.textLine,s=s||f.isTruncated;r.text=o.join(`
4
+ `),r.isTruncated=s}function zo(r,t,e,i){i=i||{};var n=O({},i);e=H(e,"..."),n.maxIterations=H(i.maxIterations,2);var a=n.minChar=H(i.minChar,0),o=n.fontMeasureInfo=vt(t),s=o.asciiCharWidth;n.placeholder=H(i.placeholder,"");for(var f=r=Math.max(0,r-1),u=0;u<a&&f>=s;u++)f-=s;var h=ct(o,e);return h>f&&(e="",h=0),f=r-h,n.ellipsis=e,n.ellipsisWidth=h,n.contentWidth=f,n.containerWidth=r,n}function Yo(r,t,e){var i=e.containerWidth,n=e.contentWidth,a=e.fontMeasureInfo;if(!i){r.textLine="",r.isTruncated=!1;return}var o=ct(a,t);if(o<=i){r.textLine=t,r.isTruncated=!1;return}for(var s=0;;s++){if(o<=n||s>=e.maxIterations){t+=e.ellipsis;break}var f=s===0?sh(t,n,a):o>0?Math.floor(t.length*n/o):0;t=t.substr(0,f),o=ct(a,t)}t===""&&(t=e.placeholder),r.textLine=t,r.isTruncated=!0}function sh(r,t,e){for(var i=0,n=0,a=r.length;n<a&&i<t;n++)i+=gn(e,r.charCodeAt(n));return n}function Wo(r,t,e,i){var n=Xn(r),a=t.overflow,o=t.padding,s=o?o[1]+o[3]:0,f=o?o[0]+o[2]:0,u=t.font,h=a==="truncate",l=_e(u),p=H(t.lineHeight,l),c=t.lineOverflow==="truncate",v=!1,m=t.width;m==null&&e!=null&&(m=e-s);var _=t.height;_==null&&i!=null&&(_=i-f);var d;m!=null&&(a==="break"||a==="breakAll")?d=n?Uo(n,t.font,m,a==="breakAll",0).lines:[]:d=n?n.split(`
5
+ `):[];var g=d.length*p;if(_==null&&(_=g),g>_&&c){var T=Math.floor(_/p);v=v||d.length>T,d=d.slice(0,T),g=d.length*p}if(n&&h&&m!=null)for(var y=zo(m,u,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),w={},x=0;x<d.length;x++)Yo(w,d[x],y),d[x]=w.textLine,v=v||w.isTruncated;for(var C=_,b=0,P=vt(u),x=0;x<d.length;x++)b=Math.max(ct(P,d[x]),b);m==null&&(m=b);var M=m;return C+=f,M+=s,{lines:d,height:_,outerWidth:M,outerHeight:C,lineHeight:p,calculatedLineHeight:l,contentWidth:b,contentHeight:g,width:m,isTruncated:v}}var fh=(function(){function r(){}return r})(),Io=(function(){function r(t){this.tokens=[],t&&(this.tokens=t)}return r})(),uh=(function(){function r(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[],this.isTruncated=!1}return r})();function Go(r,t,e,i,n){var a=new uh,o=Xn(r);if(!o)return a;var s=t.padding,f=s?s[1]+s[3]:0,u=s?s[0]+s[2]:0,h=t.width;h==null&&e!=null&&(h=e-f);var l=t.height;l==null&&i!=null&&(l=i-u);for(var p=t.overflow,c=(p==="break"||p==="breakAll")&&h!=null?{width:h,accumWidth:0,breakAll:p==="breakAll"}:null,v=Wn.lastIndex=0,m;(m=Wn.exec(o))!=null;){var _=m.index;_>v&&Gn(a,o.substring(v,_),t,c),Gn(a,m[2],t,c,m[1]),v=Wn.lastIndex}v<o.length&&Gn(a,o.substring(v,o.length),t,c);var d=[],g=0,T=0,y=p==="truncate",w=t.lineOverflow==="truncate",x={};function C(we,kr,be){we.width=kr,we.lineHeight=be,g+=be,T=Math.max(T,kr)}t:for(var b=0;b<a.lines.length;b++){for(var P=a.lines[b],M=0,R=0,L=0;L<P.tokens.length;L++){var E=P.tokens[L],S=E.styleName&&t.rich[E.styleName]||{},q=E.textPadding=S.padding,J=q?q[1]+q[3]:0,tt=E.font=S.font||t.font;E.contentHeight=_e(tt);var bt=H(S.height,E.contentHeight);if(E.innerHeight=bt,q&&(bt+=q[0]+q[2]),E.height=bt,E.lineHeight=nr(S.lineHeight,t.lineHeight,bt),E.align=S&&S.align||n,E.verticalAlign=S&&S.verticalAlign||"middle",w&&l!=null&&g+E.lineHeight>l){var qr=a.lines.length;L>0?(P.tokens=P.tokens.slice(0,L),C(P,R,M),a.lines=a.lines.slice(0,b+1)):a.lines=a.lines.slice(0,b),a.isTruncated=a.isTruncated||a.lines.length<qr;break t}var ft=S.width,tr=ft==null||ft==="auto";if(typeof ft=="string"&&ft.charAt(ft.length-1)==="%")E.percentWidth=ft,d.push(E),E.contentWidth=ct(vt(tt),E.text);else{if(tr){var St=S.backgroundColor,V=St&&St.image;V&&(V=Co(V),Gr(V)&&(E.width=Math.max(E.width,V.width*bt/V.height)))}var ut=y&&h!=null?h-R:null;ut!=null&&ut<E.width?!tr||ut<J?(E.text="",E.width=E.contentWidth=0):(No(x,E.text,ut-J,tt,t.ellipsis,{minChar:t.truncateMinChar}),E.text=x.text,a.isTruncated=a.isTruncated||x.isTruncated,E.width=E.contentWidth=ct(vt(tt),E.text)):E.contentWidth=ct(vt(tt),E.text)}E.width+=J,R+=E.width,S&&(M=Math.max(M,E.lineHeight))}C(P,R,M)}a.outerWidth=a.width=H(h,T),a.outerHeight=a.height=H(l,g),a.contentHeight=g,a.contentWidth=T,a.outerWidth+=f,a.outerHeight+=u;for(var b=0;b<d.length;b++){var E=d[b],Te=E.percentWidth;E.width=parseInt(Te,10)/100*a.width}return a}function Gn(r,t,e,i,n){var a=t==="",o=n&&e.rich[n]||{},s=r.lines,f=o.font||e.font,u=!1,h,l;if(i){var p=o.padding,c=p?p[1]+p[3]:0;if(o.width!=null&&o.width!=="auto"){var v=_r(o.width,i.width)+c;s.length>0&&v+i.accumWidth>i.width&&(h=t.split(`
6
+ `),u=!0),i.accumWidth=v}else{var m=Uo(t,f,i.width,i.breakAll,i.accumWidth);i.accumWidth=m.accumWidth+c,l=m.linesWidths,h=m.lines}}h||(h=t.split(`
7
+ `));for(var _=vt(f),d=0;d<h.length;d++){var g=h[d],T=new fh;if(T.styleName=n,T.text=g,T.isLineHolder=!g&&!a,typeof o.width=="number"?T.width=o.width:T.width=l?l[d]:ct(_,g),!d&&!u){var y=(s[s.length-1]||(s[0]=new Io)).tokens,w=y.length;w===1&&y[0].isLineHolder?y[0]=T:(g||!w||a)&&y.push(T)}else s.push(new Io([T]))}}function hh(r){var t=r.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var lh=rr(",&?/;] ".split(""),function(r,t){return r[t]=!0,r},{});function ph(r){return hh(r)?!!lh[r]:!0}function Uo(r,t,e,i,n){for(var a=[],o=[],s="",f="",u=0,h=0,l=vt(t),p=0;p<r.length;p++){var c=r.charAt(p);if(c===`
8
+ `){f&&(s+=f,h+=u),a.push(s),o.push(h),s="",f="",u=0,h=0;continue}var v=gn(l,c.charCodeAt(0)),m=i?!1:!ph(c);if(a.length?h+v>e:n+h+v>e){h?(s||f)&&(m?(s||(s=f,f="",u=0,h=u),a.push(s),o.push(h-u),f+=c,u+=v,s="",h=u):(f&&(s+=f,f="",u=0),a.push(s),o.push(h),s=c,h=v)):m?(a.push(f),o.push(u),f=c,u=v):(a.push(c),o.push(v));continue}h+=v,m?(f+=c,u+=v):(f&&(s+=f,f="",u=0),s+=c)}return f&&(s+=f),s&&(a.push(s),o.push(h)),a.length===1&&(h+=n),{accumWidth:h,lines:a,linesWidths:o}}function Un(r,t,e,i,n,a){if(r.baseX=e,r.baseY=i,r.outerWidth=r.outerHeight=null,!!t){var o=t.width*2,s=t.height*2;D.set(Bo,Vt(e,o,n),At(i,s,a),o,s),D.intersect(t,Bo,null,Ho);var f=Ho.outIntersectRect;r.outerWidth=f.width,r.outerHeight=f.height,r.baseX=Vt(f.x,f.width,n,!0),r.baseY=At(f.y,f.height,a,!0)}}var Bo=new D(0,0,0,0),Ho={outIntersectRect:{},clamp:!0};function Xn(r){return r!=null?r+="":r=""}function Xo(r){var t=Xn(r.text),e=r.font,i=ct(vt(e),t),n=_e(e);return pi(r,i,n,null)}function pi(r,t,e,i){var n=new D(Vt(r.x||0,t,r.textAlign),At(r.y||0,e,r.textBaseline),t,e),a=i??(qn(r)?r.lineWidth:0);return a>0&&(n.x-=a/2,n.y-=a/2,n.width+=a,n.height+=a),n}function qn(r){var t=r.stroke;return t!=null&&t!=="none"&&r.lineWidth>0}var vh=et({strokeFirst:!0,font:rt,x:0,y:0,textAlign:"left",textBaseline:"top",miterLimit:2},Yn),qo=(function(r){F(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.hasStroke=function(){return qn(this.style)},t.prototype.hasFill=function(){var e=this.style,i=e.fill;return i!=null&&i!=="none"},t.prototype.createStyle=function(e){return Pt(vh,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){return this._rect||(this._rect=Xo(this.style)),this._rect},t.initDefaultProps=(function(){var e=t.prototype;e.dirtyRectTolerance=10})(),t})(Kt);qo.prototype.type="tspan";var xe=qo;function ch(r,t){return!r||r==="solid"||!(t>0)?null:r==="dashed"?[4*t,2*t]:r==="dotted"?[t]:er(r)?[r]:Mr(r)?r:null}function kn(r){var t=r.style,e=t.lineDash&&t.lineWidth>0&&ch(t.lineDash,t.lineWidth),i=t.lineDashOffset;if(e){var n=t.strokeNoScale&&r.getLineScale?r.getLineScale():1;n&&n!==1&&(e=ht(e,function(a){return a/n}),i/=n)}return[e,i]}var dh=new Wr(!0);function vi(r){var t=r.stroke;return!(t==null||t==="none"||!(r.lineWidth>0))}function ko(r){return typeof r=="string"&&r!=="none"}function ci(r){var t=r.fill;return t!=null&&t!=="none"}function Zo(r,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var e=r.globalAlpha;r.globalAlpha=t.fillOpacity*t.opacity,r.fill(),r.globalAlpha=e}else r.fill()}function Vo(r,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var e=r.globalAlpha;r.globalAlpha=t.strokeOpacity*t.opacity,r.stroke(),r.globalAlpha=e}else r.stroke()}function Ko(r,t,e){var i=Hn(t.image,t.__image,e);if(Gr(i)){var n=r.createPattern(i,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&n&&n.setTransform){var a=new DOMMatrix;a.translateSelf(t.x||0,t.y||0),a.rotateSelf(0,0,(t.rotation||0)*ar),a.scaleSelf(t.scaleX||1,t.scaleY||1),n.setTransform(a)}return n}}function _h(r,t,e,i,n){var a,o=vi(e),s=ci(e),f=e.strokePercent,u=f<1,h=!t.path;(!t.silent||u)&&h&&t.createPathProxy();var l=t.path||dh,p=t.__dirty;if(!i){var c=e.fill,v=e.stroke,m=s&&!!c.colorStops,_=o&&!!v.colorStops,d=s&&!!c.image,g=o&&!!v.image,T=void 0,y=void 0,w=void 0,x=void 0,C=void 0;(m||_)&&(C=t.getBoundingRect()),m&&(T=p?Nn(r,c,C):t.__canvasFillGradient,t.__canvasFillGradient=T),_&&(y=p?Nn(r,v,C):t.__canvasStrokeGradient,t.__canvasStrokeGradient=y),d&&(w=p||!t.__canvasFillPattern?Ko(r,c,t):t.__canvasFillPattern,t.__canvasFillPattern=w),g&&(x=p||!t.__canvasStrokePattern?Ko(r,v,t):t.__canvasStrokePattern,t.__canvasStrokePattern=x),m?r.fillStyle=T:d&&(w?r.fillStyle=w:s=!1),_?r.strokeStyle=y:g&&(x?r.strokeStyle=x:o=!1)}var b=t.getGlobalScale();l.setScale(b[0],b[1],t.segmentIgnoreThreshold);var P,M;r.setLineDash&&e.lineDash&&(a=kn(t),P=a[0],M=a[1]);var R=!0;(h||p&qt)&&(l.setDPR(r.dpr),u?l.setContext(null):(l.setContext(r),R=!1),l.reset(),t.buildPath(l,t.shape,i),l.toStatic(),t.pathUpdated()),R&&l.rebuildPath(r,u?f:1),P&&(r.setLineDash(P),r.lineDashOffset=M),i?(n.batchFill=s,n.batchStroke=o):e.strokeFirst?(o&&Vo(r,e),s&&Zo(r,e)):(s&&Zo(r,e),o&&Vo(r,e)),P&&r.setLineDash([])}function mh(r,t,e){var i=t.__image=Hn(e.image,t.__image,t,t.onload);if(!(!i||!Gr(i))){var n=e.x||0,a=e.y||0,o=t.getWidth(),s=t.getHeight(),f=i.width/i.height;if(o==null&&s!=null?o=s*f:s==null&&o!=null?s=o/f:o==null&&s==null&&(o=i.width,s=i.height),e.sWidth&&e.sHeight){var u=e.sx||0,h=e.sy||0;r.drawImage(i,u,h,e.sWidth,e.sHeight,n,a,o,s)}else if(e.sx&&e.sy){var u=e.sx,h=e.sy,l=o-u,p=s-h;r.drawImage(i,u,h,l,p,n,a,o,s)}else r.drawImage(i,n,a,o,s)}}function gh(r,t,e){var i,n=e.text;if(n!=null&&(n+=""),n){r.font=e.font||rt,r.textAlign=e.textAlign,r.textBaseline=e.textBaseline;var a=void 0,o=void 0;r.setLineDash&&e.lineDash&&(i=kn(t),a=i[0],o=i[1]),a&&(r.setLineDash(a),r.lineDashOffset=o),e.strokeFirst?(vi(e)&&r.strokeText(n,e.x,e.y),ci(e)&&r.fillText(n,e.x,e.y)):(ci(e)&&r.fillText(n,e.x,e.y),vi(e)&&r.strokeText(n,e.x,e.y)),a&&r.setLineDash([])}}var Qo=["shadowBlur","shadowOffsetX","shadowOffsetY"],$o=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function is(r,t,e,i,n){var a=!1;if(!i&&(e=e||{},t===e))return!1;if(i||t.opacity!==e.opacity){X(r,n),a=!0;var o=Math.max(Math.min(t.opacity,1),0);r.globalAlpha=isNaN(o)?gt.opacity:o}(i||t.blend!==e.blend)&&(a||(X(r,n),a=!0),r.globalCompositeOperation=t.blend||gt.blend);for(var s=0;s<Qo.length;s++){var f=Qo[s];(i||t[f]!==e[f])&&(a||(X(r,n),a=!0),r[f]=r.dpr*(t[f]||0))}return(i||t.shadowColor!==e.shadowColor)&&(a||(X(r,n),a=!0),r.shadowColor=t.shadowColor||gt.shadowColor),a}function jo(r,t,e,i,n){var a=t.style,o=i?null:e&&e.style||{};if(a===o)return!1;var s=is(r,a,o,i,n);if((i||a.fill!==o.fill)&&(s||(X(r,n),s=!0),ko(a.fill)&&(r.fillStyle=a.fill)),(i||a.stroke!==o.stroke)&&(s||(X(r,n),s=!0),ko(a.stroke)&&(r.strokeStyle=a.stroke)),(i||a.opacity!==o.opacity)&&(s||(X(r,n),s=!0),r.globalAlpha=a.opacity==null?1:a.opacity),t.hasStroke()){var f=a.lineWidth,u=f/(a.strokeNoScale&&t.getLineScale?t.getLineScale():1);r.lineWidth!==u&&(s||(X(r,n),s=!0),r.lineWidth=u)}for(var h=0;h<$o.length;h++){var l=$o[h],p=l[0];(i||a[p]!==o[p])&&(s||(X(r,n),s=!0),r[p]=a[p]||l[1])}return s}function yh(r,t,e,i,n){return is(r,t.style,e&&e.style,i,n)}function ns(r,t){var e=t.transform,i=r.dpr||1;e?r.setTransform(i*e[0],i*e[1],i*e[2],i*e[3],i*e[4],i*e[5]):r.setTransform(i,0,0,i,0,0)}function xh(r,t,e){for(var i=!1,n=0;n<r.length;n++){var a=r[n];i=i||a.isZeroArea(),ns(t,a),t.beginPath(),a.buildPath(t,a.shape),t.clip()}e.allClipped=i}function Th(r,t){return r&&t?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&&!t)}var Jo=1,ts=2,rs=3,es=4;function wh(r){var t=ci(r),e=vi(r);return!(r.lineDash||!(+t^+e)||t&&typeof r.fill!="string"||e&&typeof r.stroke!="string"||r.strokePercent<1||r.strokeOpacity<1||r.fillOpacity<1)}function X(r,t){t.batchFill&&(t.batchFill=!1,r.fill()),t.batchStroke&&(t.batchStroke=!1,r.stroke())}function Jv(r,t){var e={inHover:!1,viewWidth:0,viewHeight:0,beforeBrushParam:{}};Zn(r,t,e),Vn(r,e)}function Zn(r,t,e){var i=t.transform;if(!t.shouldBePainted(e.viewWidth,e.viewHeight,!1,!1)){t.__dirty&=~W,t.__isRendered=!1;return}var n=t.__clipPaths,a=e.prevElClipPaths,o=t.style,s=!1,f=!1;if((!a||Po(n,a))&&(a&&(X(r,e),r.restore(),f=s=!0,e.prevElClipPaths=null,e.allClipped=!1,e.prevEl=null),n&&n.length&&(X(r,e),r.save(),xh(n,r,e),s=!0,e.prevElClipPaths=n)),e.allClipped){t.__dirty&=~W,t.__isRendered=!1;return}t.beforeBrush&&t.beforeBrush(e.beforeBrushParam),t.innerBeforeBrush();var u=e.prevEl;u||(f=s=!0);var h=t instanceof Jt&&t.autoBatch&&wh(o);s||Th(i,u.transform)?(X(r,e),ns(r,t)):h||X(r,e),t instanceof Jt?(e.lastDrawType!==Jo&&(f=!0,e.lastDrawType=Jo),jo(r,t,u,f,e),(!h||!e.batchFill&&!e.batchStroke)&&r.beginPath(),_h(r,t,o,h,e)):t instanceof xe?(e.lastDrawType!==rs&&(f=!0,e.lastDrawType=rs),jo(r,t,u,f,e),gh(r,t,o)):t instanceof li?(e.lastDrawType!==ts&&(f=!0,e.lastDrawType=ts),yh(r,t,u,f,e),mh(r,t,o)):t.getTemporalDisplayables&&(e.lastDrawType!==es&&(f=!0,e.lastDrawType=es),bh(r,t,e)),t.innerAfterBrush(),t.afterBrush&&(h&&X(r,e),t.afterBrush()),e.prevEl=t,t.__dirty=0,t.__isRendered=!0}function Vn(r,t){X(r,t),t.prevElClipPaths&&r.restore()}function bh(r,t,e){var i=t.getDisplayables(),n=t.getTemporalDisplayables();r.save();var a={prevElClipPaths:null,prevEl:null,allClipped:!1,viewWidth:e.viewWidth,viewHeight:e.viewHeight,inHover:e.inHover,beforeBrushParam:{}},o,s;for(o=t.getCursor(),s=i.length;o<s;o++){var f=i[o];f.beforeBrush&&f.beforeBrush(e.beforeBrushParam),f.innerBeforeBrush(),Zn(r,f,a),f.innerAfterBrush(),f.afterBrush&&f.afterBrush(),a.prevEl=f}Vn(r,a);for(var u=0,h=n.length;u<h;u++){var f=n[u];f.beforeBrush&&f.beforeBrush(e.beforeBrushParam),f.innerBeforeBrush(),Zn(r,f,a),f.innerAfterBrush(),f.afterBrush&&f.afterBrush(),a.prevEl=f}Vn(r,a),t.clearTemporalDisplayables(),t.notClear=!0,r.restore()}function as(r,t){var e=t.x,i=t.y,n=t.width,a=t.height,o=t.r,s,f,u,h;n<0&&(e=e+n,n=-n),a<0&&(i=i+a,a=-a),typeof o=="number"?s=f=u=h=o:o instanceof Array?o.length===1?s=f=u=h=o[0]:o.length===2?(s=u=o[0],f=h=o[1]):o.length===3?(s=o[0],f=h=o[1],u=o[2]):(s=o[0],f=o[1],u=o[2],h=o[3]):s=f=u=h=0;var l;s+f>n&&(l=s+f,s*=n/l,f*=n/l),u+h>n&&(l=u+h,u*=n/l,h*=n/l),f+u>a&&(l=f+u,f*=a/l,u*=a/l),s+h>a&&(l=s+h,s*=a/l,h*=a/l),r.moveTo(e+s,i),r.lineTo(e+n-f,i),f!==0&&r.arc(e+n-f,i+f,f,-Math.PI/2,0),r.lineTo(e+n,i+a-u),u!==0&&r.arc(e+n-u,i+a-u,u,0,Math.PI/2),r.lineTo(e+h,i+a),h!==0&&r.arc(e+h,i+a-h,h,Math.PI/2,Math.PI),r.lineTo(e,i+s),s!==0&&r.arc(e+s,i+s,s,Math.PI,Math.PI*1.5),r.closePath()}var Ur=Math.round;function rc(r,t,e){if(t){var i=t.x1,n=t.x2,a=t.y1,o=t.y2;r.x1=i,r.x2=n,r.y1=a,r.y2=o;var s=e&&e.lineWidth;return s&&(Ur(i*2)===Ur(n*2)&&(r.x1=r.x2=Xr(i,s,!0)),Ur(a*2)===Ur(o*2)&&(r.y1=r.y2=Xr(a,s,!0))),r}}function os(r,t,e){if(t){var i=t.x,n=t.y,a=t.width,o=t.height;r.x=i,r.y=n,r.width=a,r.height=o;var s=e&&e.lineWidth;return s&&(r.x=Xr(i,s,!0),r.y=Xr(n,s,!0),r.width=Math.max(Xr(i+a,s,!1)-r.x,a===0?0:1),r.height=Math.max(Xr(n+o,s,!1)-r.y,o===0?0:1)),r}}function Xr(r,t,e){if(!t)return r;var i=Ur(r*2);return(i+Ur(t))%2===0?i/2:(i+(e?1:-1))/2}var Ch=(function(){function r(){this.x=0,this.y=0,this.width=0,this.height=0}return r})();var Ph={},ss=(function(r){F(t,r);function t(e){return r.call(this,e)||this}return t.prototype.getDefaultShape=function(){return new Ch},t.prototype.buildPath=function(e,i){var n,a,o,s;if(this.subPixelOptimize){var f=os(Ph,i,this.style);n=f.x,a=f.y,o=f.width,s=f.height,f.r=i.r,i=f}else n=i.x,a=i.y,o=i.width,s=i.height;i.r?as(e,i):e.rect(n,a,o,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t})(Jt);ss.prototype.type="rect";var fs=ss;var us={fill:"#000"},hs=2,wt={},Eh={style:et({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},gr.style)},gs=(function(r){F(t,r);function t(e){var i=r.call(this)||this;return i.type="text",i._children=[],i._defaultStyle=us,i.attr(e),i}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){r.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var e=0;e<this._children.length;e++){var i=this._children[e];i.zlevel=this.zlevel,i.z=this.z,i.z2=this.z2,i.culling=this.culling,i.cursor=this.cursor,i.invisible=this.invisible}},t.prototype.updateTransform=function(){var e=this.innerTransformable;e?(e.updateTransform(),e.transform&&(this.transform=e.transform)):r.prototype.updateTransform.call(this)},t.prototype.getLocalTransform=function(e){var i=this.innerTransformable;return i?i.getLocalTransform(e):r.prototype.getLocalTransform.call(this,e)},t.prototype.getComputedTransform=function(){return this.__hostTarget&&(this.__hostTarget.getComputedTransform(),this.__hostTarget.updateInnerText(!0)),r.prototype.getComputedTransform.call(this)},t.prototype._updateSubTexts=function(){this._childCursor=0,Dh(this.style),this.style.rich?this._updateRichTexts():this._updatePlainTexts(),this._children.length=this._childCursor,this.styleUpdated()},t.prototype.addSelfToZr=function(e){r.prototype.addSelfToZr.call(this,e);for(var i=0;i<this._children.length;i++)this._children[i].__zr=e},t.prototype.removeSelfFromZr=function(e){r.prototype.removeSelfFromZr.call(this,e);for(var i=0;i<this._children.length;i++)this._children[i].__zr=null},t.prototype.getBoundingRect=function(){if(this.styleChanged()&&this._updateSubTexts(),!this._rect){for(var e=new D(0,0,0,0),i=this._children,n=[],a=null,o=0;o<i.length;o++){var s=i[o],f=s.getBoundingRect(),u=s.getLocalTransform(n);u?(e.copy(f),e.applyTransform(u),a=a||e.clone(),a.union(e)):(a=a||f.clone(),a.union(f))}this._rect=a||e}return this._rect},t.prototype.setDefaultTextStyle=function(e){this._defaultStyle=e||us},t.prototype.setTextContent=function(e){},t.prototype._mergeStyle=function(e,i){if(!i)return e;var n=i.rich,a=e.rich||n&&{};return O(e,i),n&&a?(this._mergeRich(a,n),e.rich=a):a&&(e.rich=a),e},t.prototype._mergeRich=function(e,i){for(var n=B(i),a=0;a<n.length;a++){var o=n[a];e[o]=e[o]||{},O(e[o],i[o])}},t.prototype.getAnimationStyleProps=function(){return Eh},t.prototype._getOrCreateChild=function(e){var i=this._children[this._childCursor];return(!i||!(i instanceof e))&&(i=new e),this._children[this._childCursor++]=i,i.__zr=this.__zr,i.parent=this,i},t.prototype._updatePlainTexts=function(){var e=this.style,i=e.font||rt,n=e.padding,a=this._defaultStyle,o=e.x||0,s=e.y||0,f=e.align||a.align||"left",u=e.verticalAlign||a.verticalAlign||"top";Un(wt,a.overflowRect,o,s,f,u),o=wt.baseX,s=wt.baseY;var h=ms(e),l=Wo(h,e,wt.outerWidth,wt.outerHeight),p=Kn(e),c=!!e.backgroundColor,v=l.outerHeight,m=l.outerWidth,_=l.lines,d=l.lineHeight;this.isTruncated=!!l.isTruncated;var g=o,T=At(s,l.contentHeight,u);if(p||n){var y=Vt(o,m,f),w=At(s,v,u);p&&this._renderBackground(e,e,y,w,m,v)}T+=d/2,n&&(g=_s(o,f,n),u==="top"?T+=n[0]:u==="bottom"&&(T-=n[2]));for(var x=0,C=!1,b=!1,P=ds("fill"in e?e.fill:(b=!0,a.fill)),M=cs("stroke"in e?e.stroke:!c&&(!a.autoStroke||b)?(x=hs,C=!0,a.stroke):null),R=e.textShadowBlur>0,L=0;L<_.length;L++){var E=this._getOrCreateChild(xe),S=E.createStyle();E.useStyle(S),S.text=_[L],S.x=g,S.y=T,f&&(S.textAlign=f),S.textBaseline="middle",S.opacity=e.opacity,S.strokeFirst=!0,R&&(S.shadowBlur=e.textShadowBlur||0,S.shadowColor=e.textShadowColor||"transparent",S.shadowOffsetX=e.textShadowOffsetX||0,S.shadowOffsetY=e.textShadowOffsetY||0),S.stroke=M,S.fill=P,M&&(S.lineWidth=e.lineWidth||x,S.lineDash=e.lineDash,S.lineDashOffset=e.lineDashOffset||0),S.font=i,ps(S,e),T+=d,E.setBoundingRect(pi(S,l.contentWidth,l.calculatedLineHeight,C?0:null))}},t.prototype._updateRichTexts=function(){var e=this.style,i=this._defaultStyle,n=e.align||i.align,a=e.verticalAlign||i.verticalAlign,o=e.x||0,s=e.y||0;Un(wt,i.overflowRect,o,s,n,a),o=wt.baseX,s=wt.baseY;var f=ms(e),u=Go(f,e,wt.outerWidth,wt.outerHeight,n),h=u.width,l=u.outerWidth,p=u.outerHeight,c=e.padding;this.isTruncated=!!u.isTruncated;var v=Vt(o,l,n),m=At(s,p,a),_=v,d=m;c&&(_+=c[3],d+=c[0]);var g=_+h;Kn(e)&&this._renderBackground(e,e,v,m,l,p);for(var T=!!e.backgroundColor,y=0;y<u.lines.length;y++){for(var w=u.lines[y],x=w.tokens,C=x.length,b=w.lineHeight,P=w.width,M=0,R=_,L=g,E=C-1,S=void 0;M<C&&(S=x[M],!S.align||S.align==="left");)this._placeToken(S,e,b,d,R,"left",T),P-=S.width,R+=S.width,M++;for(;E>=0&&(S=x[E],S.align==="right");)this._placeToken(S,e,b,d,L,"right",T),P-=S.width,L-=S.width,E--;for(R+=(h-(R-_)-(g-L)-P)/2;M<=E;)S=x[M],this._placeToken(S,e,b,d,R+S.width/2,"center",T),R+=S.width,M++;d+=b}},t.prototype._placeToken=function(e,i,n,a,o,s,f){var u=i.rich[e.styleName]||{};u.text=e.text;var h=e.verticalAlign,l=a+n/2;h==="top"?l=a+e.height/2:h==="bottom"&&(l=a+n-e.height/2);var p=!e.isLineHolder&&Kn(u);p&&this._renderBackground(u,i,s==="right"?o-e.width:s==="center"?o-e.width/2:o,l-e.height/2,e.width,e.height);var c=!!u.backgroundColor,v=e.textPadding;v&&(o=_s(o,s,v),l-=e.height/2-v[0]-e.innerHeight/2);var m=this._getOrCreateChild(xe),_=m.createStyle();m.useStyle(_);var d=this._defaultStyle,g=!1,T=0,y=!1,w=ds("fill"in u?u.fill:"fill"in i?i.fill:(g=!0,d.fill)),x=cs("stroke"in u?u.stroke:"stroke"in i?i.stroke:!c&&!f&&(!d.autoStroke||g)?(T=hs,y=!0,d.stroke):null),C=u.textShadowBlur>0||i.textShadowBlur>0;_.text=e.text,_.x=o,_.y=l,C&&(_.shadowBlur=u.textShadowBlur||i.textShadowBlur||0,_.shadowColor=u.textShadowColor||i.textShadowColor||"transparent",_.shadowOffsetX=u.textShadowOffsetX||i.textShadowOffsetX||0,_.shadowOffsetY=u.textShadowOffsetY||i.textShadowOffsetY||0),_.textAlign=s,_.textBaseline="middle",_.font=e.font||rt,_.opacity=nr(u.opacity,i.opacity,1),ps(_,u),x&&(_.lineWidth=nr(u.lineWidth,i.lineWidth,T),_.lineDash=H(u.lineDash,i.lineDash),_.lineDashOffset=i.lineDashOffset||0,_.stroke=x),w&&(_.fill=w),m.setBoundingRect(pi(_,e.contentWidth,e.contentHeight,y?0:null))},t.prototype._renderBackground=function(e,i,n,a,o,s){var f=e.backgroundColor,u=e.borderWidth,h=e.borderColor,l=f&&f.image,p=f&&!l,c=e.borderRadius,v=this,m,_;if(p||e.lineHeight||u&&h){m=this._getOrCreateChild(fs),m.useStyle(m.createStyle()),m.style.fill=null;var d=m.shape;d.x=n,d.y=a,d.width=o,d.height=s,d.r=c,m.dirtyShape()}if(p){var g=m.style;g.fill=f||null,g.fillOpacity=H(e.fillOpacity,1)}else if(l){_=this._getOrCreateChild(li),_.onload=function(){v.dirtyStyle()};var T=_.style;T.image=f.image,T.x=n,T.y=a,T.width=o,T.height=s}if(u&&h){var g=m.style;g.lineWidth=u,g.stroke=h,g.strokeOpacity=H(e.strokeOpacity,1),g.lineDash=e.borderDash,g.lineDashOffset=e.borderDashOffset||0,m.strokeContainThreshold=0,m.hasFill()&&m.hasStroke()&&(g.strokeFirst=!0,g.lineWidth*=2)}var y=(m||_).style;y.shadowBlur=e.shadowBlur||0,y.shadowColor=e.shadowColor||"transparent",y.shadowOffsetX=e.shadowOffsetX||0,y.shadowOffsetY=e.shadowOffsetY||0,y.opacity=nr(e.opacity,i.opacity,1)},t.makeFont=function(e){var i="";return Oh(e)&&(i=[e.fontStyle,e.fontWeight,Lh(e.fontSize),e.fontFamily||"sans-serif"].join(" ")),i&&zt(i)||e.textFont||e.font},t})(Kt),Rh={left:!0,right:1,center:1},Mh={top:1,bottom:1,middle:1},ls=["fontStyle","fontWeight","fontSize","fontFamily"];function Lh(r){return typeof r=="string"&&(r.indexOf("px")!==-1||r.indexOf("rem")!==-1||r.indexOf("em")!==-1)?r:isNaN(+r)?Se+"px":r+"px"}function ps(r,t){for(var e=0;e<ls.length;e++){var i=ls[e],n=t[i];n!=null&&(r[i]=n)}}function Oh(r){return r.fontSize!=null||r.fontFamily||r.fontWeight}function Dh(r){return vs(r),z(r.rich,vs),r}function vs(r){if(r){r.font=gs.makeFont(r);var t=r.align;t==="middle"&&(t="center"),r.align=t==null||Rh[t]?t:"left";var e=r.verticalAlign;e==="center"&&(e="middle"),r.verticalAlign=e==null||Mh[e]?e:"top";var i=r.padding;i&&(r.padding=Si(r.padding))}}function cs(r,t){return r==null||t<=0||r==="transparent"||r==="none"?null:r.image||r.colorStops?"#000":r}function ds(r){return r==null||r==="none"?null:r.image||r.colorStops?"#000":r}function _s(r,t,e){return t==="right"?r-e[1]:t==="center"?r+e[3]/2-e[1]/2:r+e[3]}function ms(r){var t=r.text;return t!=null&&(t+=""),t}function Kn(r){return!!(r.backgroundColor||r.lineHeight||r.borderWidth&&r.borderColor)}var mc=gs;var Ah=(function(r){F(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="compound",e}return t.prototype._updatePathDirty=function(){for(var e=this.shape.paths,i=this.shapeChanged(),n=0;n<e.length;n++)i=i||e[n].shapeChanged();i&&this.dirtyShape()},t.prototype.beforeBrush=function(){this._updatePathDirty();for(var e=this.shape.paths||[],i=this.getGlobalScale(),n=0;n<e.length;n++)e[n].path||e[n].createPathProxy(),e[n].path.setScale(i[0],i[1],e[n].segmentIgnoreThreshold)},t.prototype.buildPath=function(e,i){for(var n=i.paths||[],a=0;a<n.length;a++)n[a].buildPath(e,n[a].shape,!0)},t.prototype.afterBrush=function(){for(var e=this.shape.paths||[],i=0;i<e.length;i++)e[i].pathUpdated()},t.prototype.getBoundingRect=function(){return this._updatePathDirty.call(this),Jt.prototype.getBoundingRect.call(this)},t})(Jt),Tc=Ah;var bc=0,Sc=1,Cc=2,Pc=1,Ec=0;export{I as a,bs as b,rt as c,K as d,Ih as e,$r as f,Ht as g,yi as h,As as i,O as j,et as k,Q as l,Is as m,Re as n,$ as o,z as p,ht as q,rr as r,Me as s,Bs as t,B as u,Ns as v,zs as w,Mr as x,_t as y,Nt as z,Ys as A,er as B,Ct as C,Ti as D,Pe as E,ir as F,Ws as G,Gs as H,wi as I,Us as J,H as K,nr as L,bi as M,Si as N,Xs as O,zt as P,qs as Q,Vs as R,Ks as S,Qs as T,$s as U,Et as V,Or as W,F as X,Rt as Y,Js as Z,tf as _,jr as $,rf as aa,ef as ba,nf as ca,Ci as da,hf as ea,lf as fa,ia as ga,Ei as ha,Yt as ia,vf as ja,Le as ka,Jr as la,te as ma,Dr as na,Lt as oa,Vh as pa,Kh as qa,Qh as ra,nt as sa,ca as ta,_a as ua,tl as va,Mt as wa,re as xa,Oe as ya,ee as za,De as Aa,Ri as Ba,Mi as Ca,ie as Da,cf as Ea,Li as Fa,at as Ga,nl as Ha,Ta as Ia,zf as Ja,al as Ka,ol as La,Gf as Ma,D as Na,Ki as Oa,W as Pa,$i as Qa,N as Ra,bl as Sa,Xe as Ta,ji as Ua,G as Va,Sl as Wa,Ji as Xa,Ze as Ya,Wt as Za,Ut as _a,Y as $a,Fi as ab,ua as bb,ha as cb,wf as db,bf as eb,Xt as fb,Cf as gb,la as hb,Il as ib,Bl as jb,qa as kb,Hl as lb,Nl as mb,zl as nb,Yl as ob,Wl as pb,tu as qb,Gl as rb,ka as sb,Za as tb,Ul as ub,Xl as vb,ql as wb,kl as xb,Zl as yb,le as zb,pn as Ab,_u as Bb,cp as Cb,Nr as Db,mu as Eb,_n as Fb,yp as Gb,_e as Hb,_r as Ib,ho as Jb,mo as Kb,Ru as Lb,Du as Mb,Au as Nb,Fu as Ob,Bu as Pb,Hn as Qb,Ov as Rb,Kt as Sb,Qp as Tb,Yu as Ub,Wr as Vb,Cr as Wb,Ro as Xb,ge as Yb,It as Zb,Yn as _b,Jt as $b,xe as ac,li as bc,rc as cc,os as dc,Xr as ec,fs as fc,Lh as gc,Oh as hc,mc as ic,Tc as jc,bc as kc,Sc as lc,Cc as mc,Pc as nc,Ec as oc,Nn as pc,av as qc,kn as rc,Ko as sc,Jv as tc,Zn as uc,Vn as vc};