mirror of
https://github.com/silenty4ng/k5web
synced 2025-01-26 05:32:04 +00:00
56 lines
574 KiB
JavaScript
56 lines
574 KiB
JavaScript
|
import{d as G_,s as Ia,i as Pa,t as H_,c as Ti,g as W_,w as Ra,a as Jh,o as U_,b as Y_,h as jh,n as $_,e as Z_,u as X_}from"./arco.b087a425.js";/*! *****************************************************************************
|
||
|
Copyright (c) Microsoft Corporation.
|
||
|
|
||
|
Permission to use, copy, modify, and/or distribute this software for any
|
||
|
purpose with or without fee is hereby granted.
|
||
|
|
||
|
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
||
|
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
||
|
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
||
|
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
||
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
||
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||
|
PERFORMANCE OF THIS SOFTWARE.
|
||
|
***************************************************************************** */var Iu=function(r,t){return Iu=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])},Iu(r,t)};function N(r,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Iu(r,t);function e(){this.constructor=r}r.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}var q_=function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r}(),K_=function(){function r(){this.browser=new q_,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}(),Qr=new K_;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(Qr.wxa=!0,Qr.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?Qr.worker=!0:typeof navigator>"u"||navigator.userAgent.indexOf("Node.js")===0?(Qr.node=!0,Qr.svgSupported=!0):Q_(navigator.userAgent,Qr);function Q_(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),t.domSupported=typeof document<"u";var s=document.documentElement.style;t.transform3dSupported=(e.ie&&"transition"in s||e.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||e.ie&&+e.version>=9}const j=Qr;var Ff=12,J_="sans-serif",si=Ff+"px "+J_,j_=20,t1=100,e1="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function r1(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)-j_)/t1;t[i]=n}return t}var i1=r1(e1),gi={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var r,t;return function(e,i){if(!r){var n=gi.createCanvas();r=n&&n.getContext("2d")}if(r)return t!==i&&(t=r.font=i||si),r.measureText(e);e=e||"",i=i||si;var a=/((?:\d+)?\.?\d*)px/.exec(i),o=a&&+a[1]||Ff,s=0;if(i.indexOf("mono")>=0)s=o*e.length;else for(var l=0;l<e.length;l++){var u=i1[e[l]];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}},og=je(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(r,t){return r["[object "+t+"]"]=!0,r},{}),sg=je(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(r,t){return r["[object "+t+"Array]"]=!0,r},{}),Ta=Object.prototype.toString,Ss=Array.prototype,n1=Ss.forEach,a1=Ss.filter,Vf=Ss.slice,o1=Ss.map,tv=function(){}.constructor,Ea=tv?tv.prototype:null,Gf="__proto__",s1=2311;function lg(){return s1++}function Hf(){for(var r=[],t=0;t<arguments.length;t++)r[t]=arguments[t];typeof console<"u"&&console.error.apply(console,r)}function tt(r){if(r==null||typeof r!="object")return r;var t=r,e=Ta.call(r);if(e==="[object Array]"){if(!Kn(r)){t=[];for(var i=0,n=r.length;i<n;i++)t[i]=tt(r[i])}}else if(sg[e]){if(!Kn(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(!og[e]&&!Kn(r)&&!fa(r)){t={};for(var o in r)r.hasOwnProperty(o)&&o!==Gf&&(t[o]=tt(r[o]))}return t}function nt(r,t,e){if(!Y(t)||!Y(r))return e?tt(t):r;for(var i in t)if(t.hasOwnProperty(i)&&i!==Gf){var n=r[i],a=t[i];Y(a)&&Y(n)&&!F(a)&&!F(n)&&!fa(a)&&!fa(n)&&!ev(a)&&!ev(n)&&!Kn(a)
|
||
|
`),a=n.length;if(a===1)return Iv(n[0],t,e,i);for(var o=new ut(0,0,0,0),s=0;s<n.length;s++){var l=Iv(n[s],t,e,i);s===0?o.copy(l):o.union(l)}return o}function Hn(r,t,e){return e==="right"?r-=t:e==="center"&&(r-=t/2),r}function Gi(r,t,e){return e==="middle"?r-=t/2:e==="bottom"&&(r-=t),r}function Qf(r){return ne("\u56FD",r)}function Ar(r,t){return typeof r=="string"?r.lastIndexOf("%")>=0?parseFloat(r)/100*t:parseFloat(r):r}function qo(r,t,e){var i=t.position||"inside",n=t.distance!=null?t.distance:5,a=e.height,o=e.width,s=a/2,l=e.x,u=e.y,f="left",h="top";if(i instanceof Array)l+=Ar(i[0],e.width),u+=Ar(i[1],e.height),f=null,h=null;else switch(i){case"left":l-=n,u+=s,f="right",h="middle";break;case"right":l+=n+o,u+=s,h="middle";break;case"top":l+=o/2,u-=n,f="center",h="bottom";break;case"bottom":l+=o/2,u+=a+n,f="center";break;case"inside":l+=o/2,u+=s,f="center",h="middle";break;case"insideLeft":l+=n,u+=s,h="middle";break;case"insideRight":l+=o-n,u+=s,f="right",h="middle";break;case"insideTop":l+=o/2,u+=n,f="center";break;case"insideBottom":l+=o/2,u+=a-n,f="center",h="bottom";break;case"insideTopLeft":l+=n,u+=n;break;case"insideTopRight":l+=o-n,u+=n,f="right";break;case"insideBottomLeft":l+=n,u+=a-n,h="bottom";break;case"insideBottomRight":l+=o-n,u+=a-n,f="right",h="bottom";break}return r=r||{},r.x=l,r.y=u,r.align=f,r.verticalAlign=h,r}var ml="__zr_normal__",_l=Ge.concat(["ignore"]),IS=je(Ge,function(r,t){return r[t]=!0,r},{ignore:!1}),Di={},PS=new ut(0,0,0,0),Jf=function(){function r(t){this.id=lg(),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,l=!1;a.parent=n?this:null;var u=!1;if(a.copyTransform(e),i.position!=null){var f=PS;i.layoutRect?f.copy(i.layoutRect):f.copy(this.getBoundingRect()),n||f.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Di,i,f):qo(Di,i,f),a.x=Di.x,a.y=Di.y,o=Di.align,s=Di.verticalAlign;var h=i.origin;if(h&&i.rotation!=null){var c=void 0,v=void 0;h==="center"?(c=f.width*.5,v=f.height*.5):(c=Ar(h[0],f.width),v=Ar(h[1],f.height)),u=!0,a.originX=-a.x+c+(n?0:f.x),a.originY=-a.y+v+(n?0:f.y)}}i.rotation!=null&&(a.rotation=i.rotation);var d=i.offset;d&&(a.x+=d[0],a.y+=d[1],u||(a.originX=-d[0],a.originY=-d[1]));var g=i.inside==null?typeof i.position=="string"&&i.position.indexOf("inside")>=0:i.inside,p=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),y=void 0,m=void 0,_=void 0;g&&this.canBeInsideText()?(y=i.insideFill,m=i.insideStroke,(y==null||y==="auto")&&(y=this.getInsideTextFill()),(m==null||m==="auto")&&(m=this.getInsideTextStroke(y),_=!0)):(y=i.outsideFill,m=i.outsideStroke,(y==null||y==="auto")&&(y=this.getOutsideFill()),(m==null||m==="auto")&&(m=this.getOutsideStroke(y),_=!0)),y=y||"#000",(y!==p.fill||m!==p.stroke||_!==p.autoStroke||o!==p.align||s!==p.verticalAlign)&&(l=!0,p.fill=y,p.stroke=m,p.autoStroke=_,p.align=o,p.verticalAlign=s,e.setDefaultTextStyle(p)),e.__dirty|=ie,l&&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()?qu:Xu},r.prototype.getOutsideStroke=function(t){var e=this.__zr&&this.__zr.getBackgroundColor(),i=typeof e=="string"&&Qe(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,bs(i,"rgba")},r.prototype.traverse=f
|
||
|
* ZRender, a high performance 2d drawing library.
|
||
|
*
|
||
|
* Copyright (c) 2013, Baidu Inc.
|
||
|
* All rights reserved.
|
||
|
*
|
||
|
* LICENSE
|
||
|
* https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
|
||
|
*/var Po={},Eg={};function BS(r){delete Eg[r]}function NS(r){if(!r)return!1;if(typeof r=="string")return Zo(r,1)<Zu;if(r.colorStops){for(var t=r.colorStops,e=0,i=t.length,n=0;n<i;n++)e+=Zo(t[n].color,1);return e/=i,e<Zu}return!1}var zS=function(){function r(t,e,i){var n=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,i=i||{},this.dom=e,this.id=t;var a=new j1,o=i.renderer||"canvas";Po[o]||(o=ht(Po)[0]),i.useDirtyRect=i.useDirtyRect==null?!1:i.useDirtyRect;var s=new Po[o](e,a,i,t),l=i.ssr||s.ssrOnly;this.storage=a,this.painter=s;var u=!j.node&&!j.worker&&!l?new AS(s.getViewportRoot(),s.root):null,f=i.useCoarsePointer,h=f==null||f==="auto"?j.touchEventsSupported:!!f,c=44,v;h&&(v=et(i.pointerSize,c)),this.handler=new X1(a,s,u,s.root,v),this.animation=new _S({stage:{update:l?null:function(){return n._flush(!0)}}}),l||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=NS(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||(t||this.animation.update(!0),this._needsRefresh=!1,this.painter.refresh(),this._needsRefresh=!1)},r.prototype.refresh=function(){this._disposed||(this._needsRefresh=!0,this.animation.start())},r.prototype.flush=function(){this._disposed||this._flush(!1)},r.prototype._flush=function(t){var e,i=Yi();this._needsRefresh&&(e=!0,this.refreshImmediately(t)),this._needsRefreshHover&&(e=!0,this.refreshHoverImmediately());var n=Yi();e?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:n-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._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},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 bt&&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,BS(this.id))},r}();function Pv(r,t){var e=new zS(lg(),r,t);return Eg[e.id]=e,e}function FS(r,t){Po[r]=t}var Rv=1e-4,kg=20;function VS(r){return r.replac
|
||
|
`);n=Zg(t,e,i,n);for(var o=0,s=a.length;o<s;o++)a[o]=Xg(a[o],n);return a.join(`
|
||
|
`)}function Zg(r,t,e,i){i=i||{};var n=B({},i);n.font=t,e=et(e,"..."),n.maxIterations=et(i.maxIterations,2);var a=n.minChar=et(i.minChar,0);n.cnCharWidth=ne("\u56FD",t);var o=n.ascCharWidth=ne("a",t);n.placeholder=et(i.placeholder,"");for(var s=r=Math.max(0,r-1),l=0;l<a&&s>=o;l++)s-=o;var u=ne(e,t);return u>s&&(e="",u=0),s=r-u,n.ellipsis=e,n.ellipsisWidth=u,n.contentWidth=s,n.containerWidth=r,n}function Xg(r,t){var e=t.containerWidth,i=t.font,n=t.contentWidth;if(!e)return"";var a=ne(r,i);if(a<=e)return r;for(var o=0;;o++){if(a<=n||o>=t.maxIterations){r+=t.ellipsis;break}var s=o===0?xx(r,n,t.ascCharWidth,t.cnCharWidth):a>0?Math.floor(r.length*n/a):0;r=r.substr(0,s),a=ne(r,i)}return r===""&&(r=t.placeholder),r}function xx(r,t,e,i){for(var n=0,a=0,o=r.length;a<o&&n<t;a++){var s=r.charCodeAt(a);n+=0<=s&&s<=127?e:i}return a}function bx(r,t){r!=null&&(r+="");var e=t.overflow,i=t.padding,n=t.font,a=e==="truncate",o=Qf(n),s=et(t.lineHeight,o),l=!!t.backgroundColor,u=t.lineOverflow==="truncate",f=t.width,h;f!=null&&(e==="break"||e==="breakAll")?h=r?qg(r,t.font,f,e==="breakAll",0).lines:[]:h=r?r.split(`
|
||
|
`):[];var c=h.length*s,v=et(t.height,c);if(c>v&&u){var d=Math.floor(v/s);h=h.slice(0,d)}if(r&&a&&f!=null)for(var g=Zg(f,n,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),p=0;p<h.length;p++)h[p]=Xg(h[p],g);for(var y=v,m=0,p=0;p<h.length;p++)m=Math.max(ne(h[p],n),m);f==null&&(f=m);var _=m;return i&&(y+=i[0]+i[2],_+=i[1]+i[3],f+=i[1]+i[3]),l&&(_=f),{lines:h,height:v,outerWidth:_,outerHeight:y,lineHeight:s,calculatedLineHeight:o,contentWidth:m,contentHeight:c,width:f}}var Tx=function(){function r(){}return r}(),Nv=function(){function r(t){this.tokens=[],t&&(this.tokens=t)}return r}(),Cx=function(){function r(){this.width=0,this.height=0,this.contentWidth=0,this.contentHeight=0,this.outerWidth=0,this.outerHeight=0,this.lines=[]}return r}();function Mx(r,t){var e=new Cx;if(r!=null&&(r+=""),!r)return e;for(var i=t.width,n=t.height,a=t.overflow,o=(a==="break"||a==="breakAll")&&i!=null?{width:i,accumWidth:0,breakAll:a==="breakAll"}:null,s=bl.lastIndex=0,l;(l=bl.exec(r))!=null;){var u=l.index;u>s&&Tl(e,r.substring(s,u),t,o),Tl(e,l[2],t,o,l[1]),s=bl.lastIndex}s<r.length&&Tl(e,r.substring(s,r.length),t,o);var f=[],h=0,c=0,v=t.padding,d=a==="truncate",g=t.lineOverflow==="truncate";function p(k,O,z){k.width=O,k.lineHeight=z,h+=z,c=Math.max(c,O)}t:for(var y=0;y<e.lines.length;y++){for(var m=e.lines[y],_=0,S=0,w=0;w<m.tokens.length;w++){var x=m.tokens[w],b=x.styleName&&t.rich[x.styleName]||{},T=x.textPadding=b.padding,M=T?T[1]+T[3]:0,L=x.font=b.font||t.font;x.contentHeight=Qf(L);var C=et(b.height,x.contentHeight);if(x.innerHeight=C,T&&(C+=T[0]+T[2]),x.height=C,x.lineHeight=qn(b.lineHeight,t.lineHeight,C),x.align=b&&b.align||t.align,x.verticalAlign=b&&b.verticalAlign||"middle",g&&n!=null&&h+x.lineHeight>n){w>0?(m.tokens=m.tokens.slice(0,w),p(m,S,_),e.lines=e.lines.slice(0,y+1)):e.lines=e.lines.slice(0,y);break t}var D=b.width,I=D==null||D==="auto";if(typeof D=="string"&&D.charAt(D.length-1)==="%")x.percentWidth=D,f.push(x),x.contentWidth=ne(x.text,L);else{if(I){var R=b.backgroundColor,P=R&&R.image;P&&(P=_x(P),Cs(P)&&(x.width=Math.max(x.width,P.width*C/P.height)))}var E=d&&i!=null?i-S:null;E!=null&&E<x.width?!I||E<M?(x.text="",x.width=x.contentWidth=0):(x.text=Sx(x.text,E-M,L,t.ellipsis,{minChar:t.truncateMinChar}),x.width=x.contentWidth=ne(x.text,L)):x.contentWidth=ne(x.text,L)}x.width+=M,S+=x.width,b&&(_=Math.max(_,x.lineHeight))}p(m,S,_)}e.outerWidth=e.width=et(i,c),e.outerHeight=e.height=et(n,h),e.contentHeight=h,e.contentWidth=c,v&&(e.outerWidth+=v[1]+v[3],e.outerHeight+=v[0]+v[2]);for(var y=0;y<f.length;y++){var x=f[y],V=x.percentWidth;x.width=parseInt(V,10)/100*e.width}return e}function Tl(r,t,e,i,n){var a=t==="",o=n&&e.rich[n]||{},s=r.lines,l=o.font||e.font,u=!1,f,h;if(i){var c=o.padding,v=c?c[1]+c[3]:0;if(o.width!=null&&o.width!=="auto"){var d=Ar(o.width,i.width)+v;s.length>0&&d+i.accumWidth>i.width&&(f=t.split(`
|
||
|
`),u=!0),i.accumWidth=d}else{var g=qg(t,l,i.width,i.breakAll,i.accumWidth);i.accumWidth=g.accumWidth+v,h=g.linesWidths,f=g.lines}}else f=t.split(`
|
||
|
`);for(var p=0;p<f.length;p++){var y=f[p],m=new Tx;if(m.styleName=n,m.text=y,m.isLineHolder=!y&&!a,typeof o.width=="number"?m.width=o.width:m.width=h?h[p]:ne(y,l),!p&&!u){var _=(s[s.length-1]||(s[0]=new Nv)).tokens,S=_.length;S===1&&_[0].isLineHolder?_[0]=m:(y||!S||a)&&_.push(m)}else s.push(new Nv([m]))}}function Ax(r){var t=r.charCodeAt(0);return t>=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var Dx=je(",&?/;] ".split(""),function(r,t){return r[t]=!0,r},{});function Lx(r){return Ax(r)?!!Dx[r]:!0}function qg(r,t,e,i,n){for(var a=[],o=[],s="",l="",u=0,f=0,h=0;h<r.length;h++){var c=r.charAt(h);if(c===`
|
||
|
`){l&&(s+=l,f+=u),a.push(s),o.push(f),s="",l="",u=0,f=0;continue}var v=ne(c,t),d=i?!1:!Lx(c);if(a.length?f+v>e:n+f+v>e){f?(s||l)&&(d?(s||(s=l,l="",u=0,f=u),a.push(s),o.push(f-u),l+=c,u+=v,s="",f=u):(l&&(s+=l,l="",u=0),a.push(s),o.push(f),s=c,f=v)):d?(a.push(l),o.push(u),l=c,u=v):(a.push(c),o.push(v));continue}f+=v,d?(l+=c,u+=v):(l&&(s+=l,l="",u=0),s+=c)}return!a.length&&!s&&(s=r,l="",u=0),l&&(s+=l),s&&(a.push(s),o.push(f)),a.length===1&&(f+=n),{accumWidth:f,lines:a,linesWidths:o}}var Ju="__zr_style_"+Math.round(Math.random()*10),ri={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Ms={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};ri[Ju]=!0;var zv=["z","z2","invisible"],Ix=["invisible"],Px=function(r){N(t,r);function t(e){return r.call(this,e)||this}return t.prototype._init=function(e){for(var i=ht(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(){},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&&Rx(this,e,i)||o&&!o[0]&&!o[3])return!1;if(n&&this.__clipPaths){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(a&&this.parent)for(var l=this.parent;l;){if(l.ignore)return!1;l=l.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,l=a.shadowOffsetY||0;e=this._paintRect||(this._paintRect=new ut(0,0,0,0)),i?ut.applyTransform(e,n,i):e.copy(n),(o||s||l)&&(e.width+=o*2+Math.abs(s),e.height+=o*2+Math.abs(l),e.x=Math.min(e.x,e.x+s-o),e.y=Math.min(e.y,e.y+l-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 ut(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:B(this.style,e),this.dirtyStyle(),this},t.prototype.dirtyStyle=function(e){e||this.markRedraw(),this.__dirty|=Vn,this._rect&&(this._rect=null)},t.prototype.dirty=function(){this.dirtyStyle()},t.prototype.styleChanged=function(){return!!(this.__dirty&Vn)},t.prototype.styleUpdated=function(){this.__dirty&=~Vn},t.prototype.createStyle=function(e){return ws(ri,e)},t.prototype.useStyle=function(e){e[Ju]||(e=this.createStyle(e)),this.__inHover?this.__hoverStyle=e:this.style=e,this.dirtyStyle()},t.prototype.isStyleObject=function(e){return e[Ju]},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,zv)},t.prototype._applyStateObj=function(e,i,n,a,o,s){r.prototype._applyStateObj.call(this,e,i,n,a,o,s);var l=!(i&&a),u;if(i&&i.style?o?a?u=i.style:(u=this._mergeStyle(this.createStyle(),n.style),this._mergeStyle(u,i.style)):(u=this._mergeStyle(this.createStyle(),a?this.style:n.style),this._mergeStyle(u,i.style)):l&&(u=n.style),u)if(o){var f=this.style;if
|
||
|
`,`
|
||
|
|
||
|
`,`
|
||
|
|
||
|
|
||
|
`];function di(r,t){return t.type=r,t}function vf(r){return r.type==="section"}function Am(r){return vf(r)?JT:jT}function Dm(r){if(vf(r)){var t=0,e=r.blocks.length,i=e>1||e>0&&!r.noHeader;return A(r.blocks,function(n){var a=Dm(n);a>=t&&(t=a+ +(i&&(!a||vf(n)&&!n.noHeader)))}),t}return 0}function JT(r,t,e,i){var n=t.noHeader,a=tC(Dm(t)),o=[],s=t.blocks||[];tr(!s||F(s)),s=s||[];var l=r.orderMode;if(t.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(Q(u,l)){var f=new BT(u[l],null);s.sort(function(d,g){return f.evaluate(d.sortParam,g.sortParam)})}else l==="seriesDesc"&&s.reverse()}A(s,function(d,g){var p=t.valueFormatter,y=Am(d)(p?B(B({},r),{valueFormatter:p}):r,d,g>0?a.html:0,i);y!=null&&o.push(y)});var h=r.renderMode==="richText"?o.join(a.richText):cf(o.join(""),n?e:a.html);if(n)return h;var c=uf(t.header,"ordinal",r.useUTC),v=Mm(i,r.renderMode).nameStyle;return r.renderMode==="richText"?Lm(r,c,v)+a.richText+h:cf('<div style="'+v+";"+Cm+';">'+re(c)+"</div>"+h,e)}function jT(r,t,e,i){var n=r.renderMode,a=t.noName,o=t.noValue,s=!t.markerType,l=t.name,u=r.useUTC,f=t.valueFormatter||r.valueFormatter||function(S){return S=F(S)?S:[S],G(S,function(w,x){return uf(w,F(v)?v[x]:v,u)})};if(!(a&&o)){var h=s?"":r.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",n),c=a?"":uf(l,"ordinal",u),v=t.valueType,d=o?[]:f(t.value,t.dataIndex),g=!s||!a,p=!s&&a,y=Mm(i,n),m=y.nameStyle,_=y.valueStyle;return n==="richText"?(s?"":h)+(a?"":Lm(r,c,m))+(o?"":iC(r,d,g,p,_)):cf((s?"":h)+(a?"":eC(c,!s,m))+(o?"":rC(d,g,p,_)),e)}}function Xc(r,t,e,i,n,a){if(!!r){var o=Am(r),s={useUTC:n,renderMode:e,orderMode:i,markupStyleCreator:t,valueFormatter:r.valueFormatter};return o(s,r,0,a)}}function tC(r){return{html:KT[r],richText:QT[r]}}function cf(r,t){var e='<div style="clear:both"></div>',i="margin: "+t+"px 0 0";return'<div style="'+i+";"+Cm+';">'+r+e+"</div>"}function eC(r,t,e){var i=t?"margin-left:2px":"";return'<span style="'+e+";"+i+'">'+re(r)+"</span>"}function rC(r,t,e,i){var n=e?"10px":"20px",a=t?"float:right;margin-left:"+n:"";return r=F(r)?r:[r],'<span style="'+a+";"+i+'">'+G(r,function(o){return re(o)}).join(" ")+"</span>"}function Lm(r,t,e){return r.markupStyleCreator.wrapRichTextStyle(t,e)}function iC(r,t,e,i,n){var a=[n],o=i?10:20;return e&&a.push({padding:[0,0,0,o],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(F(t)?t.join(" "):t,a)}function Im(r,t){var e=r.getData().getItemVisual(t,"style"),i=e[r.visualDrawType];return hi(i)}function Pm(r,t){var e=r.get("padding");return e!=null?e:t==="richText"?[8,10]:10}var Xl=function(){function r(){this.richTextStyles={},this._nextStyleNameId=zg()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(t,e,i){var n=i==="richText"?this._generateStyleName():null,a=Yb({color:e,type:t,renderMode:i,markerId:n});return H(a)?a:(this.richTextStyles[n]=a.style,a.content)},r.prototype.wrapRichTextStyle=function(t,e){var i={};F(e)?A(e,function(a){return B(i,a)}):B(i,e);var n=this._generateStyleName();return this.richTextStyles[n]=i,"{"+n+"|"+t+"}"},r}();function nC(r){var t=r.series,e=r.dataIndex,i=r.multipleSeries,n=t.getData(),a=n.mapDimensionsAll("defaultedTooltip"),o=a.length,s=t.getRawValue(e),l=F(s),u=Im(t,e),f,h,c,v;if(o>1||l&&!o){var d=aC(s,t,e,a,u);f=d.inlineValues,h=d.inlineValueTypes,c=d.blocks,v=d.inlineValues[0]}else if(o){var g=n.getDimensionInfo(a[0]);v=f=nn(n,e,a[0]),h=g.type}else v=f=l?s[0]:s;var p=th(t),y=p&&t.name||"",m=n.getName(e),_=i?y:m;return di("section",{header:y,noHeader:i||!p,sortParam:v,blocks:[di("nameValue",{markerType:"item",markerColor:u,name:_,noName:!Fe(_),value:f,valueType:h,dataIndex:e})].concat(c||[])})}function aC(r,t,e,i,n){var a=t.getData(),o=je(r,function(h,c,v){var d=a.getDimensionInfo(v);return h=h||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],l=[],u=[];i.length?A(i,function(h){f(nn(a,e,h),h)}):A(r,f);function f(h,c){var v=a.getDimensionInfo(c);!v||v.otherDims.tooltip===!1||(o?u.push(di("nameValue",{markerType:"subItem",markerColor:n,name
|
||
|
|
||
|
`:"<br/>",y=h.join(p);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(e,u)?this._updatePosition(s,v,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,y,u,Math.random()+"",o[0],o[1],v,null,c)})},t.prototype._showSeriesItemTooltip=function(e,i,n){var a=this._ecModel,o=lt(i),s=o.seriesIndex,l=a.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,h=o.dataType,c=u.getData(h),v=this._renderMode,d=e.positionDefault,g=kn([c.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),p=g.get("trigger");if(!(p!=null&&p!=="item")){var y=u.getDataParams(f,h),m=new Xl;y.marker=m.makeTooltipMarker("item",hi(y.color),v);var _=Wc(u.formatTooltip(f,!1,h)),S=g.get("order"),w=g.get("valueFormatter"),x=_.frag,b=x?Xc(w?B({valueFormatter:w},x):x,m,v,S,a.get("useUTC"),g.get("textStyle")):_.text,T="item_"+u.name+"_"+f;this._showOrMove(g,function(){this._showTooltipContent(g,b,y,T,e.offsetX,e.offsetY,e.position,e.target,m)}),n({type:"showTip",dataIndexInside:f,dataIndex:c.getRawIndex(f),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,i,n){var a=this._renderMode==="html",o=lt(i),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(H(l)){var f=l;l={content:f,formatter:f},u=!0}u&&a&&l.content&&(l=tt(l),l.content=re(l.content));var h=[l],c=this._ecModel.getComponent(o.componentMainType,o.componentIndex);c&&h.push(c),h.push({formatter:l.content});var v=e.positionDefault,d=kn(h,this._tooltipModel,v?{position:v}:null),g=d.get("content"),p=Math.random()+"",y=new Xl;this._showOrMove(d,function(){var m=tt(d.get("formatterParams")||{});this._showTooltipContent(d,g,m,p,e.offsetX,e.offsetY,e.position,i,y)}),n({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,i,n,a,o,s,l,u,f){if(this._ticket="",!(!e.get("showContent")||!e.get("show"))){var h=this._tooltipContent;h.setEnterable(e.get("enterable"));var c=e.get("formatter");l=l||e.get("position");var v=i,d=this._getNearestPoint([o,s],n,e.get("trigger"),e.get("borderColor")),g=d.color;if(c)if(H(c)){var p=e.ecModel.get("useUTC"),y=F(n)?n[0]:n,m=y&&y.axisType&&y.axisType.indexOf("time")>=0;v=c,m&&(v=Ns(y.axisValue,v,p)),v=rm(v,n,!0)}else if(K(c)){var _=$(function(S,w){S===this._ticket&&(h.setContent(w,f,e,g,l),this._updatePosition(e,l,o,s,h,n,u))},this);this._ticket=a,v=c(n,a,_)}else v=c;h.setContent(v,f,e,g,l),h.show(e,g),this._updatePosition(e,l,o,s,h,n,u)}},t.prototype._getNearestPoint=function(e,i,n,a){if(n==="axis"||F(i))return{color:a||(this._renderMode==="html"?"#fff":"none")};if(!F(i))return{color:a||i.color||i.borderColor}},t.prototype._updatePosition=function(e,i,n,a,o,s,l){var u=this._api.getWidth(),f=this._api.getHeight();i=i||e.get("position");var h=o.getSize(),c=e.get("align"),v=e.get("verticalAlign"),d=l&&l.getBoundingRect().clone();if(l&&d.applyTransform(l.transform),K(i)&&(i=i([n,a],s,o.el,d,{viewSize:[u,f],contentSize:h.slice()})),F(i))n=st(i[0],u),a=st(i[1],f);else if(Y(i)){var g=i;g.width=h[0],g.height=h[1];var p=vi(g,{width:u,height:f});n=p.x,a=p.y,c=null,v=null}else if(H(i)&&l){var y=K2(i,d,h,e.get("borderWidth"));n=y[0],a=y[1]}else{var y=X2(n,a,o,u,f,c?null:20,v?null:20);n=y[0],a=y[1]}if(c&&(n-=qp(c)?h[0]/2:c==="right"?h[0]:0),v&&(a-=qp(v)?h[1]/2:v==="bottom"?h[1]:0),L_(e)){var y=q2(n,a,o,u,f);n=y[0],a=y[1]}o.moveTo(n,a)},t.prototype._updateContentNotChangedOnAxis=function(e,i){var n=this._lastDataByCoordSys,a=this._cbParamsList,o=!!n&&n.length===e.length;return o&&A(n,function(s,l){var u=s.dataByAxis||[],f=e[l]||{},h=f.dataByAxis||[];o=o&&u.length===h.length,o&&A(u,function(c,v){var d=h[v]||{},g=c.seriesDataIndices||[],p=d.seriesDataIndices||[];o=o&&c.value===d.value&&c.axisType===d.axisType&&c.axisId===d.axisId&&g.length===p.length,o&&A(g,function(y,m){var _=p[m];o=o&&y.seriesIndex===_.seriesIndex&&y.dataIndex===_.dataIndex}),a&&A(c.seriesDataIndices,function(y){var m=y.seriesIndex,_=i[m],S=a[m];_&&S&&S.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=i,!!o},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:th
|
||
|
`)){var p=new bo;p.newline=!0,u.add(p);return}var y=n.getSeriesByName(g)[0];if(!f.get(g))if(y){var m=y.getData(),_=m.getVisual("legendLineStyle")||{},S=m.getVisual("legendIcon"),w=m.getVisual("style"),x=this._createItem(y,g,d,v,i,e,_,w,S,h,a);x.on("click",Fi(Kp,g,null,a,c)).on("mouseover",Fi(Of,y.name,null,a,c)).on("mouseout",Fi(Bf,y.name,null,a,c)),n.ssr&&x.eachChild(function(b){var T=lt(b);T.seriesIndex=y.seriesIndex,T.dataIndex=d,T.ssrType="legend"}),f.set(g,!0)}else n.eachRawSeries(function(b){if(!f.get(g)&&b.legendVisualProvider){var T=b.legendVisualProvider;if(!T.containName(g))return;var M=T.indexOfName(g),L=T.getItemVisual(M,"style"),C=T.getItemVisual(M,"legendIcon"),D=Qe(L.fill);D&&D[3]===0&&(D[3]=.2,L=B(B({},L),{fill:bs(D,"rgba")}));var I=this._createItem(b,g,d,v,i,e,{},L,C,h,a);I.on("click",Fi(Kp,null,g,a,c)).on("mouseover",Fi(Of,null,g,a,c)).on("mouseout",Fi(Bf,null,g,a,c)),n.ssr&&I.eachChild(function(R){var P=lt(R);P.seriesIndex=b.seriesIndex,P.dataIndex=d,P.ssrType="legend"}),f.set(g,!0)}},this)},this),o&&this._createSelector(o,i,a,s,l)},t.prototype._createSelector=function(e,i,n,a,o){var s=this.getSelectorGroup();kf(e,function(u){var f=u.type,h=new Dt({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect"})}});s.add(h);var c=i.getModel("selectorLabel"),v=i.getModel(["emphasis","selectorLabel"]);ln(h,{normal:c,emphasis:v},{defaultText:u.title}),es(h)})},t.prototype._createItem=function(e,i,n,a,o,s,l,u,f,h,c){var v=e.visualDrawType,d=o.get("itemWidth"),g=o.get("itemHeight"),p=o.isSelected(i),y=a.get("symbolRotate"),m=a.get("symbolKeepAspect"),_=a.get("icon");f=_||f||"roundRect";var S=rP(f,a,l,u,v,p,c),w=new bo,x=a.getModel("textStyle");if(K(e.getLegendIcon)&&(!_||_==="inherit"))w.add(e.getLegendIcon({itemWidth:d,itemHeight:g,icon:f,iconRotate:y,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:m}));else{var b=_==="inherit"&&e.getData().getVisual("symbol")?y==="inherit"?e.getData().getVisual("symbolRotate"):y:0;w.add(iP({itemWidth:d,itemHeight:g,icon:f,iconRotate:b,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:m}))}var T=s==="left"?d+5:-5,M=s,L=o.get("formatter"),C=i;H(L)&&L?C=L.replace("{name}",i!=null?i:""):K(L)&&(C=L(i));var D=p?x.getTextColor():a.get("inactiveColor");w.add(new Dt({style:fi(x,{text:C,x:T,y:g/2,fill:D,align:M,verticalAlign:"middle"},{inheritColor:D})}));var I=new _t({shape:w.getBoundingRect(),style:{fill:"transparent"}}),R=a.getModel("tooltip");return R.get("show")&&Ps({el:I,componentModel:o,itemName:i,itemTooltipOption:R.option}),w.add(I),w.eachChild(function(P){P.silent=!0}),I.silent=!h,this.getContentGroup().add(w),es(w),w.__legendDataIndex=n,w},t.prototype.layoutInner=function(e,i,n,a,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();aa(e.get("orient"),l,e.get("itemGap"),n.width,n.height);var f=l.getBoundingRect(),h=[-f.x,-f.y];if(u.markRedraw(),l.markRedraw(),o){aa("horizontal",u,e.get("selectorItemGap",!0));var c=u.getBoundingRect(),v=[-c.x,-c.y],d=e.get("selectorButtonGap",!0),g=e.getOrient().index,p=g===0?"width":"height",y=g===0?"height":"width",m=g===0?"y":"x";s==="end"?v[g]+=f[p]+d:h[g]+=c[p]+d,v[1-g]+=f[y]/2-c[y]/2,u.x=v[0],u.y=v[1],l.x=h[0],l.y=h[1];var _={x:0,y:0};return _[p]=f[p]+d+c[p],_[y]=Math.max(f[y],c[y]),_[m]=Math.min(0,c[m]+v[1-g]),_}else return l.x=h[0],l.y=h[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t}(Ce);function rP(r,t,e,i,n,a,o){function s(p,y){p.lineWidth==="auto"&&(p.lineWidth=y.lineWidth>0?2:0),kf(p,function(m,_){p[_]==="inherit"&&(p[_]=y[_])})}var l=t.getModel("itemStyle"),u=l.getItemStyle(),f=r.lastIndexOf("empty",0)===0?"fill":"stroke",h=l.getShallow("decal");u.decal=!h||h==="inherit"?i.decal:mf(h,o),u.fill==="inherit"&&(u.fill=i[n]),u.stroke==="inherit"&&(u.stroke=i[f]),u.opacity==="inherit"&&(u.opacity=(n==="fill"?i:e).opacity),s(u,i);var c=t.getModel("lineStyle"),v=c.getLineStyle();if(s(v,e),u.fill==="auto"&&(u.fill=i.fill),u.
|
||
|
`||u==="")){var f=o.isSelected(u);i.hasOwnProperty(u)?i[u]=i[u]&&f:i[u]=f}})}),r==="allSelect"||r==="inverseSelect"?{selected:i}:{name:t.name,selected:i}}function aP(r){r.registerAction("legendToggleSelect","legendselectchanged",yt(On,"toggleSelected")),r.registerAction("legendAllSelect","legendselectall",yt(On,"allSelect")),r.registerAction("legendInverseSelect","legendinverseselect",yt(On,"inverseSelect")),r.registerAction("legendSelect","legendselected",yt(On,"select")),r.registerAction("legendUnSelect","legendunselected",yt(On,"unSelect"))}function O_(r){r.registerComponentModel(Ef),r.registerComponentView(k_),r.registerProcessor(r.PRIORITY.PROCESSOR.SERIES_FILTER,nP),r.registerSubTypeDefaulter("legend",function(){return"plain"}),aP(r)}var oP=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.setScrollDataIndex=function(e){this.option.scrollDataIndex=e},t.prototype.init=function(e,i,n){var a=La(e);r.prototype.init.call(this,e,i,n),Qp(this,e,a)},t.prototype.mergeOption=function(e,i){r.prototype.mergeOption.call(this,e,i),Qp(this,this.option,e)},t.type="legend.scroll",t.defaultOption=Bs(Ef.defaultOption,{scrollDataIndex:0,pageButtonItemGap:5,pageButtonGap:null,pageButtonPosition:"end",pageFormatter:"{current}/{total}",pageIcons:{horizontal:["M0,0L12,-10L12,10z","M0,0L-12,-10L-12,10z"],vertical:["M0,0L20,0L10,-20z","M0,0L20,0L10,20z"]},pageIconColor:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),t}(Ef);function Qp(r,t,e){var i=r.getOrient(),n=[1,1];n[i.index]=0,ci(t,e,{type:"box",ignoreSize:!!n})}const sP=oP;var Jp=bt,bu=["width","height"],Tu=["x","y"],lP=function(r){N(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.newlineDisabled=!0,e._currentIndex=0,e}return t.prototype.init=function(){r.prototype.init.call(this),this.group.add(this._containerGroup=new Jp),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new Jp)},t.prototype.resetInner=function(){r.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(e,i,n,a,o,s,l){var u=this;r.prototype.renderInner.call(this,e,i,n,a,o,s,l);var f=this._controllerGroup,h=i.get("pageIconSize",!0),c=F(h)?h:[h,h];d("pagePrev",0);var v=i.getModel("pageTextStyle");f.add(new Dt({name:"pageText",style:{text:"xx/xx",fill:v.getTextColor(),font:v.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),d("pageNext",1);function d(g,p){var y=g+"DataIndex",m=vh(i.get("pageIcons",!0)[i.getOrient().name][p],{onclick:$(u._pageGo,u,y,i,a)},{x:-c[0]/2,y:-c[1]/2,width:c[0],height:c[1]});m.name=g,f.add(m)}},t.prototype.layoutInner=function(e,i,n,a,o,s){var l=this.getSelectorGroup(),u=e.getOrient().index,f=bu[u],h=Tu[u],c=bu[1-u],v=Tu[1-u];o&&aa("horizontal",l,e.get("selectorItemGap",!0));var d=e.get("selectorButtonGap",!0),g=l.getBoundingRect(),p=[-g.x,-g.y],y=tt(n);o&&(y[f]=n[f]-g[f]-d);var m=this._layoutContentAndController(e,a,y,u,f,c,v,h);if(o){if(s==="end")p[u]+=m[f]+d;else{var _=g[f]+d;p[u]-=_,m[h]-=_}m[f]+=g[f]+d,p[1-u]+=m[v]+m[c]/2-g[c]/2,m[c]=Math.max(m[c],g[c]),m[v]=Math.min(m[v],g[v]+p[1-u]),l.x=p[0],l.y=p[1],l.markRedraw()}return m},t.prototype._layoutContentAndController=function(e,i,n,a,o,s,l,u){var f=this.getContentGroup(),h=this._containerGroup,c=this._controllerGroup;aa(e.get("orient"),f,e.get("itemGap"),a?n.width:null,a?null:n.height),aa("horizontal",c,e.get("pageButtonItemGap",!0));var v=f.getBoundingRect(),d=c.getBoundingRect(),g=this._showController=v[o]>n[o],p=[-v.x,-v.y];i||(p[a]=f[u]);var y=[0,0],m=[-d.x,-d.y],_=et(e.get("pageButtonGap",!0),e.get("itemGap",!0));if(g){var S=e.get("pageButtonPosition",!0);S==="end"?m[a]+=n[o]-d[o]:y[a]+=d[o]+_}m[1-a]+=v[s]/2-d[s]/2,f.setPosition(p),h.setPosition(y),c.setPosition(m);var w={x:0,y:0};if(w[o]=g?n[o]:v[o],w[s]=Math.max(v[s],d[s]),w[l]=Math.min(0,d[l]+m[1-a]),h.__rectSize=n[o],g){var x={x:0,y:0};x[o]=Math
|
||
|
.vue-echarts-inner{flex-grow:1;min-width:0;width:auto!important;height:auto!important}
|
||
|
`,{});var KP=function(){if(zn!=null)return zn;if(typeof HTMLElement>"u"||typeof customElements>"u")return zn=!1;try{new Function("tag",`class EChartsElement extends HTMLElement {
|
||
|
__dispose = null;
|
||
|
|
||
|
disconnectedCallback() {
|
||
|
if (this.__dispose) {
|
||
|
this.__dispose();
|
||
|
this.__dispose = null;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
if (customElements.get(tag) == null) {
|
||
|
customElements.define(tag, EChartsElement);
|
||
|
}
|
||
|
`)(z_)}catch{return zn=!1}return zn=!0}(),QP="ecTheme",JP="ecInitOptions",jP="ecUpdateOptions",ag=/(^&?~?!?)native:/,hR=G_({name:"echarts",props:Be(Be({option:Object,theme:{type:[Object,String]},initOptions:Object,updateOptions:Object,group:String,manualUpdate:Boolean},$P),qP),emits:{},inheritAttrs:!1,setup:function(r,t){var e=t.attrs,i=Ia(),n=Ia(),a=Ia(),o=Ia(),s=Pa(QP,null),l=Pa(JP,null),u=Pa(jP,null),f=H_(r),h=f.autoresize,c=f.manualUpdate,v=f.loading,d=f.loadingOptions,g=Ti(function(){return o.value||r.option||null}),p=Ti(function(){return r.theme||Co(s,{})}),y=Ti(function(){return r.initOptions||Co(l,{})}),m=Ti(function(){return r.updateOptions||Co(u,{})}),_=Ti(function(){return function(C){var D={};for(var I in C)ig(I)||(D[I]=C[I]);return D}(e)}),S={},w=W_().proxy.$listeners,x={};function b(C){if(n.value){var D=a.value=EM(n.value,p.value,y.value);r.group&&(D.group=r.group),Object.keys(x).forEach(function(R){var P=x[R];if(P){var E=R.toLowerCase();E.charAt(0)==="~"&&(E=E.substring(1),P.__once__=!0);var V=D;if(E.indexOf("zr:")===0&&(V=D.getZr(),E=E.substring(3)),P.__once__){delete P.__once__;var k=P;P=function(){for(var O=[],z=0;z<arguments.length;z++)O[z]=arguments[z];k.apply(void 0,O),V.off(E,P)}}V.on(E,P)}}),h.value?$_(function(){D&&!D.isDisposed()&&D.resize(),I()}):I()}function I(){var R=C||g.value;R&&D.setOption(R,m.value)}}function T(){a.value&&(a.value.dispose(),a.value=void 0)}w?Object.keys(w).forEach(function(C){ag.test(C)?S[C.replace(ag,"$1")]=w[C]:x[C]=w[C]}):Object.keys(e).filter(function(C){return ig(C)}).forEach(function(C){var D=C.charAt(2).toLowerCase()+C.slice(3);if(D.indexOf("native:")!==0)D.substring(D.length-4)==="Once"&&(D="~".concat(D.substring(0,D.length-4))),x[D]=e[C];else{var I="on".concat(D.charAt(7).toUpperCase()).concat(D.slice(8));S[I]=e[C]}});var M=null;Ra(c,function(C){typeof M=="function"&&(M(),M=null),C||(M=Ra(function(){return r.option},function(D,I){D&&(a.value?a.value.setOption(D,Be({notMerge:D!==I},m.value)):b())},{deep:!0}))},{immediate:!0}),Ra([p,y],function(){T(),b()},{deep:!0}),Jh(function(){r.group&&a.value&&(a.value.group=r.group)});var L=YP(a);return function(C,D,I){var R=Pa(XP,{}),P=Ti(function(){return Be(Be({},Co(R,{})),I==null?void 0:I.value)});Jh(function(){var E=C.value;E&&(D.value?E.showLoading(P.value):E.hideLoading())})}(a,v,d),function(C,D,I){var R=null;Ra([I,C,D],function(P,E,V){var k=P[0],O=P[1],z=P[2];if(k&&O&&z){var W=z===!0?{}:z,U=W.throttle,J=U===void 0?100:U,ot=W.onResize,St=function(){O.resize(),ot==null||ot()};R=J?$s(St,J):St,FP(k,R)}V(function(){k&&R&&VP(k,R)})})}(a,h,n),U_(function(){b()}),Y_(function(){KP&&i.value?i.value.__dispose=T:T()}),Be({chart:a,root:i,inner:n,setOption:function(C,D){r.manualUpdate&&(o.value=C),a.value?a.value.setOption(C,D||{}):b(C)},nonEventAttrs:_,nativeListeners:S},L)},render:function(){var r=Be(Be({},this.nonEventAttrs),this.nativeListeners);return r.ref="root",r.class=r.class?["echarts"].concat(r.class):"echarts",jh(z_,r,[jh("div",{ref:"inner",class:"vue-echarts-inner"})])}});export{hR as H,iR as a,rR as b,nR as c,aR as d,oR as e,lR as f,uR as g,fR as h,eR as i,sR as j,He as u};
|