67 lines
1.0 MiB
JavaScript
67 lines
1.0 MiB
JavaScript
import{c as at,I as ig,d as pI,j as dI,k as gI,a as Ce,b as X,l as yI,w as gt,e as mt,f as he,i as mI,h as Vl,m as _I,n as SI,r as na,o as ve,R as ym,T as mm,L as xI,U as _m,t as $t,P as Sm,p as bI,v as wI,q as Di,s as $h,A as xm,F as bm,x as TI,C as AI,y as CI,z as DI,E as MI,_ as II}from"./index-Dx9ODHpC.js";import{t as tr,f as Xe}from"./farsi-number-stB7JMN0.js";import{P as wm}from"./PlusCircleOutlined-46hEPOWa.js";import{T as LI}from"./TeamOutlined-D0tX_kEo.js";import{G as Tm}from"./GiftOutlined-B8oIapKF.js";var PI={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M868 545.5L536.1 163a31.96 31.96 0 00-48.3 0L156 545.5a7.97 7.97 0 006 13.2h81c4.6 0 9-2 12.1-5.5L474 300.9V864c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V300.9l218.9 252.3c3 3.5 7.4 5.5 12.1 5.5h81c6.8 0 10.5-8 6-13.2z"}}]},name:"arrow-up",theme:"outlined"};function Am(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?Object(arguments[e]):{},a=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(t).filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),a.forEach(function(n){RI(r,n,t[n])})}return r}function RI(r,e,t){return e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}var uf=function(e,t){var a=Am({},e,t.attrs);return at(ig,Am({},a,{icon:PI}),null)};uf.displayName="ArrowUpOutlined";uf.inheritAttrs=!1;var EI={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M855.7 210.8l-42.4-42.4a8.03 8.03 0 00-11.3 0L168.3 801.9a8.03 8.03 0 000 11.3l42.4 42.4c3.1 3.1 8.2 3.1 11.3 0L855.6 222c3.2-3 3.2-8.1.1-11.2zM304 448c79.4 0 144-64.6 144-144s-64.6-144-144-144-144 64.6-144 144 64.6 144 144 144zm0-216c39.7 0 72 32.3 72 72s-32.3 72-72 72-72-32.3-72-72 32.3-72 72-72zm416 344c-79.4 0-144 64.6-144 144s64.6 144 144 144 144-64.6 144-144-64.6-144-144-144zm0 216c-39.7 0-72-32.3-72-72s32.3-72 72-72 72 32.3 72 72-32.3 72-72 72z"}}]},name:"percentage",theme:"outlined"};function Cm(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?Object(arguments[e]):{},a=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(t).filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),a.forEach(function(n){kI(r,n,t[n])})}return r}function kI(r,e,t){return e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}var og=function(e,t){var a=Cm({},e,t.attrs);return at(ig,Cm({},a,{icon:EI}),null)};og.displayName="PercentageOutlined";og.inheritAttrs=!1;var OI={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M848 359.3H627.7L825.8 109c4.1-5.3.4-13-6.3-13H436c-2.8 0-5.5 1.5-6.9 4L170 547.5c-3.1 5.3.7 12 6.9 12h174.4l-89.4 357.6c-1.9 7.8 7.5 13.3 13.3 7.7L853.5 373c5.2-4.9 1.7-13.7-5.5-13.7zM378.2 732.5l60.3-241H281.1l189.6-327.4h224.6L487 427.4h211L378.2 732.5z"}}]},name:"thunderbolt",theme:"outlined"};function Dm(r){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?Object(arguments[e]):{},a=Object.keys(t);typeof Object.getOwnPropertySymbols=="function"&&(a=a.concat(Object.getOwnPropertySymbols(t).filter(function(n){return Object.getOwnPropertyDescriptor(t,n).enumerable}))),a.forEach(function(n){NI(r,n,t[n])})}return r}function NI(r,e,t){return e in r?Object.defineProperty(r,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):r[e]=t,r}var sg=function(e,t){var a=Dm({},e,t.attrs);return at(ig,Dm({},a,{icon:OI}),null)};sg.displayName="ThunderboltOutlined";sg.inheritAttrs=!1;/*! *****************************************************************************
|
||||
|
|
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 gp=function(r,e){return gp=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,a){t.__proto__=a}||function(t,a){for(var n in a)Object.prototype.hasOwnProperty.call(a,n)&&(t[n]=a[n])},gp(r,e)};function k(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");gp(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var BI=function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r}(),VI=function(){function r(){this.browser=new BI,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}(),xt=new VI;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(xt.wxa=!0,xt.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?xt.worker=!0:!xt.hasGlobalWindow||"Deno"in window?(xt.node=!0,xt.svgSupported=!0):zI(navigator.userAgent,xt);function zI(r,e){var t=e.browser,a=r.match(/Firefox\/([\d.]+)/),n=r.match(/MSIE\s([\d.]+)/)||r.match(/Trident\/.+?rv:(([\d.]+))/),i=r.match(/Edge?\/([\d.]+)/),o=/micromessenger/i.test(r);a&&(t.firefox=!0,t.version=a[1]),n&&(t.ie=!0,t.version=n[1]),i&&(t.edge=!0,t.version=i[1],t.newEdge=+i[1].split(".")[0]>18),o&&(t.weChat=!0),e.svgSupported=typeof SVGRect<"u",e.touchEventsSupported="ontouchstart"in window&&!t.ie&&!t.edge,e.pointerEventsSupported="onpointerdown"in window&&(t.edge||t.ie&&+t.version>=11),e.domSupported=typeof document<"u";var s=document.documentElement.style;e.transform3dSupported=(t.ie&&"transition"in s||t.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),e.transformSupported=e.transform3dSupported||t.ie&&+t.version>=9}var lg=12,Ew="sans-serif",en=lg+"px "+Ew,GI=20,FI=100,HI="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function WI(r){var e={};if(typeof JSON>"u")return e;for(var t=0;t<r.length;t++){var a=String.fromCharCode(t+32),n=(r.charCodeAt(t)-GI)/FI;e[a]=n}return e}var UI=WI(HI),rn={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var r,e;return function(t,a){if(!r){var n=rn.createCanvas();r=n&&n.getContext("2d")}if(r)return e!==a&&(e=r.font=a||en),r.measureText(t);t=t||"",a=a||en;var i=/((?:\d+)?\.?\d*)px/.exec(a),o=i&&+i[1]||lg,s=0;if(a.indexOf("mono")>=0)s=o*t.length;else for(var l=0;l<t.length;l++){var u=UI[t[l]];s+=u==null?o:u*o}return{width:s}}}(),loadImage:function(r,e,t){var a=new Image;return a.onload=e,a.onerror=t,a.src=r,a}},kw=Kr(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(r,e){return r["[object "+e+"]"]=!0,r},{}),Ow=Kr(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(r,e){return r["[object "+e+"Array]"]=!0,r},{}),wo=Object.prototype.toString,nh=Array.prototype,YI=nh.forEach,$I=nh.filter,ug=nh.slice,XI=nh.map,Mm=(function(){}).constructor,zl=Mm?Mm.prototype:null,fg="__proto__",ZI=2311;function Nw(){return ZI++}function hg(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];typeof console<"u"&&console.error.apply(console,r)}function nt(r){if(r==null||typeof r!="object")return r;var e=r,t=wo.call(r);if(t==="[object Array]"){if(!Cs(r)){e=[];for(var a=0,n=r.length;a<n;a++)e[a]=nt(r[a])}}else if(Ow[t]){if(!Cs(r)){var i=r.constructor;if(i.from)e=i.from(r);else{e=new i(r.length);for(var a=0,n=r.length;a<n;a++)e[a]=r[a]}}}else if(!kw[t]&&!Cs(r)&&!ho(r)){e={};for(var o in r)r.hasOwnProperty(o)&&o!==fg&&(e[o]=nt(r[o]))}return e}function vt(r,e,t){if(!rt(e)||!rt(r))return t?nt(e):r;for(var a in e)if(e.hasOwnProperty(a)&&a!==fg){var n=r[a],i=e[a];rt(i)&&rt(n)&&!F(i)&&!F(n)&&!ho(i)&&!ho(n)&&!Im(i)&&!Im(n)&&!Cs(i)&&!Cs(n)?vt(n,i,t):(t||!(a in r))
|
|||
|
|
`),i=n.length;if(i===1)return e0(n[0],e,t,a);for(var o=new pt(0,0,0,0),s=0;s<n.length;s++){var l=e0(n[s],e,t,a);s===0?o.copy(l):o.union(l)}return o}function gs(r,e,t){return t==="right"?r-=e:t==="center"&&(r-=e/2),r}function ji(r,e,t){return t==="middle"?r-=e/2:t==="bottom"&&(r-=e),r}function uh(r){return Qe("国",r)}function Lr(r,e){return typeof r=="string"?r.lastIndexOf("%")>=0?parseFloat(r)/100*e:parseFloat(r):r}function mf(r,e,t){var a=e.position||"inside",n=e.distance!=null?e.distance:5,i=t.height,o=t.width,s=i/2,l=t.x,u=t.y,f="left",h="top";if(a instanceof Array)l+=Lr(a[0],t.width),u+=Lr(a[1],t.height),f=null,h=null;else switch(a){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+=i+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+=i-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+=i-n,h="bottom";break;case"insideBottomRight":l+=o-n,u+=i-n,f="right",h="bottom";break}return r=r||{},r.x=l,r.y=u,r.align=f,r.verticalAlign=h,r}var fv="__zr_normal__",hv=Jr.concat(["ignore"]),iP=Kr(Jr,function(r,e){return r[e]=!0,r},{ignore:!1}),Pi={},oP=new pt(0,0,0,0),fh=function(){function r(e){this.id=Nw(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return r.prototype._init=function(e){this.attr(e)},r.prototype.drift=function(e,t,a){switch(this.draggable){case"horizontal":t=0;break;case"vertical":e=0;break}var n=this.transform;n||(n=this.transform=[1,0,0,1,0,0]),n[4]+=e,n[5]+=t,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(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||(this.textConfig={});var a=this.textConfig,n=a.local,i=t.innerTransformable,o=void 0,s=void 0,l=!1;i.parent=n?this:null;var u=!1;if(i.copyTransform(t),a.position!=null){var f=oP;a.layoutRect?f.copy(a.layoutRect):f.copy(this.getBoundingRect()),n||f.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(Pi,a,f):mf(Pi,a,f),i.x=Pi.x,i.y=Pi.y,o=Pi.align,s=Pi.verticalAlign;var h=a.origin;if(h&&a.rotation!=null){var v=void 0,c=void 0;h==="center"?(v=f.width*.5,c=f.height*.5):(v=Lr(h[0],f.width),c=Lr(h[1],f.height)),u=!0,i.originX=-i.x+v+(n?0:f.x),i.originY=-i.y+c+(n?0:f.y)}}a.rotation!=null&&(i.rotation=a.rotation);var p=a.offset;p&&(i.x+=p[0],i.y+=p[1],u||(i.originX=-p[0],i.originY=-p[1]));var d=a.inside==null?typeof a.position=="string"&&a.position.indexOf("inside")>=0:a.inside,g=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),y=void 0,m=void 0,_=void 0;d&&this.canBeInsideText()?(y=a.insideFill,m=a.insideStroke,(y==null||y==="auto")&&(y=this.getInsideTextFill()),(m==null||m==="auto")&&(m=this.getInsideTextStroke(y),_=!0)):(y=a.outsideFill,m=a.outsideStroke,(y==null||y==="auto")&&(y=this.getOutsideFill()),(m==null||m==="auto")&&(m=this.getOutsideStroke(y),_=!0)),y=y||"#000",(y!==g.fill||m!==g.stroke||_!==g.autoStroke||o!==g.align||s!==g.verticalAlign)&&(l=!0,g.fill=y,g.stroke=m,g.autoStroke=_,g.align=o,g.verticalAlign=s,t.setDefaultTextStyle(g)),t.__dirty|=qe,l&&t.dirtyStyle(!0)}},r.prototype.canBeInsideText=function(){return!0},r.prototype.getInsideTextFill=function(){return"#fff"},r.prototype.getInsideTextStroke=function(e){return"#000"},r.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?Vp:Bp},r.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),a=typeof t=="string"&&Je(t);a||(a=[255,255,255,1]);for(var n=a[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)a[o]=a[o]*n+(i?0:255)*(1-n);return a[3]=1,pa(a,"rgba")},r.prototype.traverse=func
|
|||
|
|
* 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 Zu={},fT={};function hP(r){delete fT[r]}function vP(r){if(!r)return!1;if(typeof r=="string")return df(r,1)<Np;if(r.colorStops){for(var e=r.colorStops,t=0,a=e.length,n=0;n<a;n++)t+=df(e[n].color,1);return t/=a,t<Np}return!1}var cP=function(){function r(e,t,a){var n=this;this._sleepAfterStill=10,this._stillFrameAccum=0,this._needsRefresh=!0,this._needsRefreshHover=!0,this._darkMode=!1,a=a||{},this.dom=t,this.id=e;var i=new ML,o=a.renderer||"canvas";Zu[o]||(o=wt(Zu)[0]),a.useDirtyRect=a.useDirtyRect==null?!1:a.useDirtyRect;var s=new Zu[o](t,i,a,e),l=a.ssr||s.ssrOnly;this.storage=i,this.painter=s;var u=!xt.node&&!xt.worker&&!l?new aP(s.getViewportRoot(),s.root):null,f=a.useCoarsePointer,h=f==null||f==="auto"?xt.touchEventsSupported:!!f,v=44,c;h&&(c=ut(a.pointerSize,v)),this.handler=new Hw(i,s,u,s.root,c),this.animation=new KL({stage:{update:l?null:function(){return n._flush(!0)}}}),l||this.animation.start()}return r.prototype.add=function(e){this._disposed||!e||(this.storage.addRoot(e),e.addSelfToZr(this),this.refresh())},r.prototype.remove=function(e){this._disposed||!e||(this.storage.delRoot(e),e.removeSelfFromZr(this),this.refresh())},r.prototype.configLayer=function(e,t){this._disposed||(this.painter.configLayer&&this.painter.configLayer(e,t),this.refresh())},r.prototype.setBackgroundColor=function(e){this._disposed||(this.painter.setBackgroundColor&&this.painter.setBackgroundColor(e),this.refresh(),this._backgroundColor=e,this._darkMode=vP(e))},r.prototype.getBackgroundColor=function(){return this._backgroundColor},r.prototype.setDarkMode=function(e){this._darkMode=e},r.prototype.isDarkMode=function(){return this._darkMode},r.prototype.refreshImmediately=function(e){this._disposed||(e||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(e){var t,a=eo();this._needsRefresh&&(t=!0,this.refreshImmediately(e)),this._needsRefreshHover&&(t=!0,this.refreshHoverImmediately());var n=eo();t?(this._stillFrameAccum=0,this.trigger("rendered",{elapsedTime:n-a})):this._sleepAfterStill>0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},r.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},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(e){this._disposed||(e=e||{},this.painter.resize(e.width,e.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(e){this._disposed||this.handler.setCursorStyle(e)},r.prototype.findHover=function(e,t){if(!this._disposed)return this.handler.findHover(e,t)},r.prototype.on=function(e,t,a){return this._disposed||this.handler.on(e,t,a),this},r.prototype.off=function(e,t){this._disposed||this.handler.off(e,t)},r.prototype.trigger=function(e,t){this._disposed||this.handler.trigger(e,t)},r.prototype.clear=function(){if(!this._disposed){for(var e=this.storage.getRoots(),t=0;t<e.length;t++)e[t]instanceof it&&e[t].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,hP(this.id))},r}();function r0(r,e){var t=new cP(Nw(),r,e);return fT[t.id]=t,t}function pP(r,e){Zu[r]=e}var zp;function dP(r){if(typeof zp=="function
|
|||
|
|
`);i=CT(t,a,n,i);for(var s=!1,l={},u=0,f=o.length;u<f;u++)DT(l,o[u],i),o[u]=l.textLine,s=s||l.isTruncated;r.text=o.join(`
|
|||
|
|
`),r.isTruncated=s}function CT(r,e,t,a){a=a||{};var n=z({},a);n.font=e,t=ut(t,"..."),n.maxIterations=ut(a.maxIterations,2);var i=n.minChar=ut(a.minChar,0);n.cnCharWidth=Qe("国",e);var o=n.ascCharWidth=Qe("a",e);n.placeholder=ut(a.placeholder,"");for(var s=r=Math.max(0,r-1),l=0;l<i&&s>=o;l++)s-=o;var u=Qe(t,e);return u>s&&(t="",u=0),s=r-u,n.ellipsis=t,n.ellipsisWidth=u,n.contentWidth=s,n.containerWidth=r,n}function DT(r,e,t){var a=t.containerWidth,n=t.font,i=t.contentWidth;if(!a){r.textLine="",r.isTruncated=!1;return}var o=Qe(e,n);if(o<=a){r.textLine=e,r.isTruncated=!1;return}for(var s=0;;s++){if(o<=i||s>=t.maxIterations){e+=t.ellipsis;break}var l=s===0?jP(e,i,t.ascCharWidth,t.cnCharWidth):o>0?Math.floor(e.length*i/o):0;e=e.substr(0,l),o=Qe(e,n)}e===""&&(e=t.placeholder),r.textLine=e,r.isTruncated=!0}function jP(r,e,t,a){for(var n=0,i=0,o=r.length;i<o&&n<e;i++){var s=r.charCodeAt(i);n+=0<=s&&s<=127?t:a}return i}function JP(r,e){r!=null&&(r+="");var t=e.overflow,a=e.padding,n=e.font,i=t==="truncate",o=uh(n),s=ut(e.lineHeight,o),l=!!e.backgroundColor,u=e.lineOverflow==="truncate",f=!1,h=e.width,v;h!=null&&(t==="break"||t==="breakAll")?v=r?MT(r,e.font,h,t==="breakAll",0).lines:[]:v=r?r.split(`
|
|||
|
|
`):[];var c=v.length*s,p=ut(e.height,c);if(c>p&&u){var d=Math.floor(p/s);f=f||v.length>d,v=v.slice(0,d)}if(r&&i&&h!=null)for(var g=CT(h,n,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),y={},m=0;m<v.length;m++)DT(y,v[m],g),v[m]=y.textLine,f=f||y.isTruncated;for(var _=p,S=0,m=0;m<v.length;m++)S=Math.max(Qe(v[m],n),S);h==null&&(h=S);var b=S;return a&&(_+=a[0]+a[2],b+=a[1]+a[3],h+=a[1]+a[3]),l&&(b=h),{lines:v,height:p,outerWidth:b,outerHeight:_,lineHeight:s,calculatedLineHeight:o,contentWidth:S,contentHeight:c,width:h,isTruncated:f}}var QP=function(){function r(){}return r}(),f0=function(){function r(e){this.tokens=[],e&&(this.tokens=e)}return r}(),tR=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 eR(r,e){var t=new tR;if(r!=null&&(r+=""),!r)return t;for(var a=e.width,n=e.height,i=e.overflow,o=(i==="break"||i==="breakAll")&&a!=null?{width:a,accumWidth:0,breakAll:i==="breakAll"}:null,s=dv.lastIndex=0,l;(l=dv.exec(r))!=null;){var u=l.index;u>s&&gv(t,r.substring(s,u),e,o),gv(t,l[2],e,o,l[1]),s=dv.lastIndex}s<r.length&&gv(t,r.substring(s,r.length),e,o);var f=[],h=0,v=0,c=e.padding,p=i==="truncate",d=e.lineOverflow==="truncate",g={};function y(V,G,W){V.width=G,V.lineHeight=W,h+=W,v=Math.max(v,G)}t:for(var m=0;m<t.lines.length;m++){for(var _=t.lines[m],S=0,b=0,x=0;x<_.tokens.length;x++){var w=_.tokens[x],T=w.styleName&&e.rich[w.styleName]||{},A=w.textPadding=T.padding,C=A?A[1]+A[3]:0,M=w.font=T.font||e.font;w.contentHeight=uh(M);var I=ut(T.height,w.contentHeight);if(w.innerHeight=I,A&&(I+=A[0]+A[2]),w.height=I,w.lineHeight=Zr(T.lineHeight,e.lineHeight,I),w.align=T&&T.align||e.align,w.verticalAlign=T&&T.verticalAlign||"middle",d&&n!=null&&h+w.lineHeight>n){var L=t.lines.length;x>0?(_.tokens=_.tokens.slice(0,x),y(_,b,S),t.lines=t.lines.slice(0,m+1)):t.lines=t.lines.slice(0,m),t.isTruncated=t.isTruncated||t.lines.length<L;break t}var P=T.width,R=P==null||P==="auto";if(typeof P=="string"&&P.charAt(P.length-1)==="%")w.percentWidth=P,f.push(w),w.contentWidth=Qe(w.text,M);else{if(R){var E=T.backgroundColor,B=E&&E.image;B&&(B=qP(B),vh(B)&&(w.width=Math.max(w.width,B.width*I/B.height)))}var N=p&&a!=null?a-b:null;N!=null&&N<w.width?!R||N<C?(w.text="",w.width=w.contentWidth=0):(KP(g,w.text,N-C,M,e.ellipsis,{minChar:e.truncateMinChar}),w.text=g.text,t.isTruncated=t.isTruncated||g.isTruncated,w.width=w.contentWidth=Qe(w.text,M)):w.contentWidth=Qe(w.text,M)}w.width+=C,b+=w.width,T&&(S=Math.max(S,w.lineHeight))}y(_,b,S)}t.outerWidth=t.width=ut(a,v),t.outerHeight=t.height=ut(n,h),t.contentHeight=h,t.contentWidth=v,c&&(t.outerWidth+=c[1]+c[3],t.outerHeight+=c[0]+c[2]);for(var m=0;m<f.length;m++){var w=f[m],O=w.percentWidth;w.width=parseInt(O,10)/100*t.width}return t}function gv(r,e,t,a,n){var i=e==="",o=n&&t.rich[n]||{},s=r.lines,l=o.font||t.font,u=!1,f,h;if(a){var v=o.padding,c=v?v[1]+v[3]:0;if(o.width!=null&&o.width!=="auto"){var p=Lr(o.width,a.width)+c;s.length>0&&p+a.accumWidth>a.width&&(f=e.split(`
|
|||
|
|
`),u=!0),a.accumWidth=p}else{var d=MT(e,l,a.width,a.breakAll,a.accumWidth);a.accumWidth=d.accumWidth+c,h=d.linesWidths,f=d.lines}}else f=e.split(`
|
|||
|
|
`);for(var g=0;g<f.length;g++){var y=f[g],m=new QP;if(m.styleName=n,m.text=y,m.isLineHolder=!y&&!i,typeof o.width=="number"?m.width=o.width:m.width=h?h[g]:Qe(y,l),!g&&!u){var _=(s[s.length-1]||(s[0]=new f0)).tokens,S=_.length;S===1&&_[0].isLineHolder?_[0]=m:(y||!S||i)&&_.push(m)}else s.push(new f0([m]))}}function rR(r){var e=r.charCodeAt(0);return e>=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var aR=Kr(",&?/;] ".split(""),function(r,e){return r[e]=!0,r},{});function nR(r){return rR(r)?!!aR[r]:!0}function MT(r,e,t,a,n){for(var i=[],o=[],s="",l="",u=0,f=0,h=0;h<r.length;h++){var v=r.charAt(h);if(v===`
|
|||
|
|
`){l&&(s+=l,f+=u),i.push(s),o.push(f),s="",l="",u=0,f=0;continue}var c=Qe(v,e),p=a?!1:!nR(v);if(i.length?f+c>t:n+f+c>t){f?(s||l)&&(p?(s||(s=l,l="",u=0,f=u),i.push(s),o.push(f-u),l+=v,u+=c,s="",f=u):(l&&(s+=l,l="",u=0),i.push(s),o.push(f),s=v,f=c)):p?(i.push(l),o.push(u),l=v,u=c):(i.push(v),o.push(c));continue}f+=c,p?(l+=v,u+=c):(l&&(s+=l,l="",u=0),s+=v)}return!i.length&&!s&&(s=r,l="",u=0),l&&(s+=l),s&&(i.push(s),o.push(f)),i.length===1&&(f+=n),{accumWidth:f,lines:i,linesWidths:o}}var Hp="__zr_style_"+Math.round(Math.random()*10),ai={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},ch={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};ai[Hp]=!0;var h0=["z","z2","invisible"],iR=["invisible"],gr=function(r){k(e,r);function e(t){return r.call(this,t)||this}return e.prototype._init=function(t){for(var a=wt(t),n=0;n<a.length;n++){var i=a[n];i==="style"?this.useStyle(t[i]):r.prototype.attrKV.call(this,i,t[i])}this.style||this.useStyle({})},e.prototype.beforeBrush=function(){},e.prototype.afterBrush=function(){},e.prototype.innerBeforeBrush=function(){},e.prototype.innerAfterBrush=function(){},e.prototype.shouldBePainted=function(t,a,n,i){var o=this.transform;if(this.ignore||this.invisible||this.style.opacity===0||this.culling&&oR(this,t,a)||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(i&&this.parent)for(var l=this.parent;l;){if(l.ignore)return!1;l=l.parent}return!0},e.prototype.contain=function(t,a){return this.rectContain(t,a)},e.prototype.traverse=function(t,a){t.call(a,this)},e.prototype.rectContain=function(t,a){var n=this.transformCoordToLocal(t,a),i=this.getBoundingRect();return i.contain(n[0],n[1])},e.prototype.getPaintRect=function(){var t=this._paintRect;if(!this._paintRect||this.__dirty){var a=this.transform,n=this.getBoundingRect(),i=this.style,o=i.shadowBlur||0,s=i.shadowOffsetX||0,l=i.shadowOffsetY||0;t=this._paintRect||(this._paintRect=new pt(0,0,0,0)),a?pt.applyTransform(t,n,a):t.copy(n),(o||s||l)&&(t.width+=o*2+Math.abs(s),t.height+=o*2+Math.abs(l),t.x=Math.min(t.x,t.x+s-o),t.y=Math.min(t.y,t.y+l-o));var u=this.dirtyRectTolerance;t.isZero()||(t.x=Math.floor(t.x-u),t.y=Math.floor(t.y-u),t.width=Math.ceil(t.width+1+u*2),t.height=Math.ceil(t.height+1+u*2))}return t},e.prototype.setPrevPaintRect=function(t){t?(this._prevPaintRect=this._prevPaintRect||new pt(0,0,0,0),this._prevPaintRect.copy(t)):this._prevPaintRect=null},e.prototype.getPrevPaintRect=function(){return this._prevPaintRect},e.prototype.animateStyle=function(t){return this.animate("style",t)},e.prototype.updateDuringAnimation=function(t){t==="style"?this.dirtyStyle():this.markRedraw()},e.prototype.attrKV=function(t,a){t!=="style"?r.prototype.attrKV.call(this,t,a):this.style?this.setStyle(a):this.useStyle(a)},e.prototype.setStyle=function(t,a){return typeof t=="string"?this.style[t]=a:z(this.style,t),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(t){t||this.markRedraw(),this.__dirty|=ps,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(this.__dirty&ps)},e.prototype.styleUpdated=function(){this.__dirty&=~ps},e.prototype.createStyle=function(t){return oh(ai,t)},e.prototype.useStyle=function(t){t[Hp]||(t=this.createStyle(t)),this.__inHover?this.__hoverStyle=t:this.style=t,this.dirtyStyle()},e.prototype.isStyleObject=function(t){return t[Hp]},e.prototype._innerSaveToNormal=function(t){r.prototype._innerSaveToNormal.call(this,t);var a=this._normalState;t.style&&!a.style&&(a.style=this._mergeStyle(this.createStyle(),this.style)),this._savePrimaryToNormal(t,a,h0)},e.prototype._applyStateObj=function(t,a,n,i,o,s){r.prototype._applyStateObj.call(this,t,a,n,i,o,s);var l=!(a&&i),u;if(a&&a.style?o?i?u=a.style:(u=this._mergeStyle(this.createStyle(),n.style),this._mergeStyle(u,a.style)):(u=this._mergeStyle(this.createStyle(),i?this.style:n.style),this._mergeStyle(u,a.style)):l&&(u=n.style),u)if(o){var f=this.style;if
|
|||
|
|
`,`
|
|||
|
|
|
|||
|
|
`,`
|
|||
|
|
|
|||
|
|
|
|||
|
|
`];function fe(r,e){return e.type=r,e}function nd(r){return r.type==="section"}function jA(r){return nd(r)?Jk:Qk}function JA(r){if(nd(r)){var e=0,t=r.blocks.length,a=t>1||t>0&&!r.noHeader;return D(r.blocks,function(n){var i=JA(n);i>=e&&(e=i+ +(a&&(!i||nd(n)&&!n.noHeader)))}),e}return 0}function Jk(r,e,t,a){var n=e.noHeader,i=tO(JA(e)),o=[],s=e.blocks||[];ke(!s||F(s)),s=s||[];var l=r.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(Z(u,l)){var f=new UA(u[l],null);s.sort(function(d,g){return f.evaluate(d.sortParam,g.sortParam)})}else l==="seriesDesc"&&s.reverse()}D(s,function(d,g){var y=e.valueFormatter,m=jA(d)(y?z(z({},r),{valueFormatter:y}):r,d,g>0?i.html:0,a);m!=null&&o.push(m)});var h=r.renderMode==="richText"?o.join(i.richText):id(a,o.join(""),n?t:i.html);if(n)return h;var v=Qp(e.header,"ordinal",r.useUTC),c=KA(a,r.renderMode).nameStyle,p=qA(a);return r.renderMode==="richText"?QA(r,v,c)+i.richText+h:id(a,'<div style="'+c+";"+p+';">'+Pe(v)+"</div>"+h,t)}function Qk(r,e,t,a){var n=r.renderMode,i=e.noName,o=e.noValue,s=!e.markerType,l=e.name,u=r.useUTC,f=e.valueFormatter||r.valueFormatter||function(S){return S=F(S)?S:[S],H(S,function(b,x){return Qp(b,F(c)?c[x]:c,u)})};if(!(i&&o)){var h=s?"":r.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||"#333",n),v=i?"":Qp(l,"ordinal",u),c=e.valueType,p=o?[]:f(e.value,e.dataIndex),d=!s||!i,g=!s&&i,y=KA(a,n),m=y.nameStyle,_=y.valueStyle;return n==="richText"?(s?"":h)+(i?"":QA(r,v,m))+(o?"":aO(r,p,d,g,_)):id(a,(s?"":h)+(i?"":eO(v,!s,m))+(o?"":rO(p,d,g,_)),t)}}function __(r,e,t,a,n,i){if(r){var o=jA(r),s={useUTC:n,renderMode:t,orderMode:a,markupStyleCreator:e,valueFormatter:r.valueFormatter};return o(s,r,0,i)}}function tO(r){return{html:Kk[r],richText:jk[r]}}function id(r,e,t){var a='<div style="clear:both"></div>',n="margin: "+t+"px 0 0",i=qA(r);return'<div style="'+n+";"+i+';">'+e+a+"</div>"}function eO(r,e,t){var a=e?"margin-left:2px":"";return'<span style="'+t+";"+a+'">'+Pe(r)+"</span>"}function rO(r,e,t,a){var n=t?"10px":"20px",i=e?"float:right;margin-left:"+n:"";return r=F(r)?r:[r],'<span style="'+i+";"+a+'">'+H(r,function(o){return Pe(o)}).join(" ")+"</span>"}function QA(r,e,t){return r.markupStyleCreator.wrapRichTextStyle(e,t)}function aO(r,e,t,a,n){var i=[n],o=a?10:20;return t&&i.push({padding:[0,0,0,o],align:"right"}),r.markupStyleCreator.wrapRichTextStyle(F(e)?e.join(" "):e,i)}function tC(r,e){var t=r.getData().getItemVisual(e,"style"),a=t[r.visualDrawType];return di(a)}function eC(r,e){var t=r.get("padding");return t??(e==="richText"?[8,10]:10)}var Gv=function(){function r(){this.richTextStyles={},this._nextStyleNameId=gT()}return r.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},r.prototype.makeTooltipMarker=function(e,t,a){var n=a==="richText"?this._generateStyleName():null,i=XE({color:t,type:e,renderMode:a,markerId:n});return Y(i)?i:(this.richTextStyles[n]=i.style,i.content)},r.prototype.wrapRichTextStyle=function(e,t){var a={};F(t)?D(t,function(i){return z(a,i)}):z(a,t);var n=this._generateStyleName();return this.richTextStyles[n]=a,"{"+n+"|"+e+"}"},r}();function rC(r){var e=r.series,t=r.dataIndex,a=r.multipleSeries,n=e.getData(),i=n.mapDimensionsAll("defaultedTooltip"),o=i.length,s=e.getRawValue(t),l=F(s),u=tC(e,t),f,h,v,c;if(o>1||l&&!o){var p=nO(s,e,t,i,u);f=p.inlineValues,h=p.inlineValueTypes,v=p.blocks,c=p.inlineValues[0]}else if(o){var d=n.getDimensionInfo(i[0]);c=f=po(n,t,i[0]),h=d.type}else c=f=l?s[0]:s;var g=bg(e),y=g&&e.name||"",m=n.getName(t),_=a?y:m;return fe("section",{header:y,noHeader:a||!g,sortParam:c,blocks:[fe("nameValue",{markerType:"item",markerColor:u,name:_,noName:!Cr(_),value:f,valueType:h,dataIndex:t})].concat(v||[])})}function nO(r,e,t,a,n){var i=e.getData(),o=Kr(r,function(h,v,c){var p=i.getDimensionInfo(c);return h=h||p&&p.tooltip!==!1&&p.displayName!=null},!1),s=[],l=[],u=[];a.length?D(a,function(h){f(po(i,t,h),h)}):D(r,f);function f(h,v){var c=i.getDimensionInfo(v);!c||c.otherDims.tooltip===!1||(o?u.push(fe("nameValue",{markerType:"subItem",mar
|
|||
|
|
`:"";function a(n){var i=n.children,o=n.tag,s=n.attrs,l=n.text;return u5(o,s)+(o!=="style"?Pe(l):l||"")+(i?""+t+H(i,function(u){return a(u)}).join(t)+t:"")+f5(o)}return a(r)}function h5(r,e,t){t=t||{};var a=t.newline?`
|
|||
|
|
`:"",n=" {"+a,i=a+"}",o=H(wt(r),function(l){return l+n+H(wt(r[l]),function(u){return u+":"+r[l][u]+";"}).join(a)+i}).join(a),s=H(wt(e),function(l){return"@keyframes "+l+n+H(wt(e[l]),function(u){return u+n+H(wt(e[l][u]),function(f){var h=e[l][u][f];return f==="d"&&(h='path("'+h+'")'),f+":"+h+";"}).join(a)+i}).join(a)+i}).join(a);return!o&&!s?"":["<![CDATA[",o,s,"]]>"].join(a)}function yd(r){return{zrId:r,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function g1(r,e,t,a){return se("svg","root",{width:r,height:e,xmlns:_D,"xmlns:xlink":SD,version:"1.1",baseProfile:"full",viewBox:a?"0 0 "+r+" "+e:!1},t)}var v5=0;function bD(){return v5++}var y1={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},Bn="transform-origin";function c5(r,e,t){var a=z({},r.shape);z(a,e),r.buildPath(t,a);var n=new mD;return n.reset(aT(r)),t.rebuildPath(n,1),n.generateStr(),n.getStr()}function p5(r,e){var t=e.originX,a=e.originY;(t||a)&&(r[Bn]=t+"px "+a+"px")}var d5={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function wD(r,e){var t=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[t]=r,t}function g5(r,e,t){var a=r.shape.paths,n={},i,o;if(D(a,function(l){var u=yd(t.zrId);u.animation=!0,Bh(l,{},u,!0);var f=u.cssAnims,h=u.cssNodes,v=wt(f),c=v.length;if(c){o=v[c-1];var p=f[o];for(var d in p){var g=p[d];n[d]=n[d]||{d:""},n[d].d+=g.d||""}for(var y in h){var m=h[y].animation;m.indexOf(o)>=0&&(i=m)}}}),!!i){e.d=!1;var s=wD(n,t);return i.replace(o,s)}}function m1(r){return Y(r)?y1[r]?"cubic-bezier("+y1[r]+")":mg(r)?r:"":""}function Bh(r,e,t,a){var n=r.animators,i=n.length,o=[];if(r instanceof Eg){var s=g5(r,e,t);if(s)o.push(s);else if(!i)return}else if(!i)return;for(var l={},u=0;u<i;u++){var f=n[u],h=[f.getMaxTime()/1e3+"s"],v=m1(f.getClip().easing),c=f.getDelay();v?h.push(v):h.push("linear"),c&&h.push(c/1e3+"s"),f.getLoop()&&h.push("infinite");var p=h.join(" ");l[p]=l[p]||[p,[]],l[p][1].push(f)}function d(m){var _=m[1],S=_.length,b={},x={},w={},T="animation-timing-function";function A(ht,J,dt){for(var q=ht.getTracks(),lt=ht.getMaxTime(),zt=0;zt<q.length;zt++){var kt=q[zt];if(kt.needsAnimate()){var Bt=kt.keyframes,Yt=kt.propName;if(dt&&(Yt=dt(Yt)),Yt)for(var ne=0;ne<Bt.length;ne++){var $e=Bt[ne],ze=Math.round($e.time/lt*100)+"%",vn=m1($e.easing),Ma=$e.rawValue;(Y(Ma)||Dt(Ma))&&(J[ze]=J[ze]||{},J[ze][Yt]=$e.rawValue,vn&&(J[ze][T]=vn))}}}}for(var C=0;C<S;C++){var M=_[C],I=M.targetName;I?I==="shape"&&A(M,x):!a&&A(M,b)}for(var L in b){var P={};lT(P,r),z(P,b[L]);var R=nT(P),E=b[L][T];w[L]=R?{transform:R}:{},p5(w[L],P),E&&(w[L][T]=E)}var B,N=!0;for(var L in x){w[L]=w[L]||{};var O=!B,E=x[L][T];O&&(B=new ta);var V=B.len();B.reset(),w[L].d=c5(r,x[L],B);var G=B.len();if(!O&&V!==G){N=!1;break}E&&(w[L][T]=E)}if(!N)for(var L in w)delete w[L].d;if(!a)for(var C=0;C<S;C++){var M=_[C],I=M.targetName;I==="style"&&A(M,w,function(q){return d5[q]})}for(var W=wt(w),j=!0,Q,C=1;C<W.length;C++){var ot=W[C-1],Pt=W[C];if(w[ot][Bn]!==w[Pt][Bn]){j=!1;break}Q=w[ot][Bn]}if(j&&Q){for(var L in w)w[L][Bn]&&delete w[L][Bn];e[Bn]=Q}if(Lt(W,function(ht){return wt(w[ht]).length>0}).length){var Ut=wD(w,t);return Ut+" "+m[0]+" both"}}for(var g in l){var s=d(l[g]);s&&o.push(s)}if(o.length){var y=t.zrId+"-cls-"+bD();t.cssNodes["."+y]={animation:o.join(",")},e.class=y}}function y5(r,e,t){if(!r.ignore)if(r.isSilent()){var a={"pointer-events":"none"};_1(a,e,t)}else{var n=r.states.emphasis&&r.sta
|
|||
|
|
`+g.message)}var n=new it;n.add(a),n.isGeoSVGGraphicRoot=!0;var i=t.width,o=t.height,s=t.viewBoxRect,l=this._boundingRect;if(!l){var u=void 0,f=void 0,h=void 0,v=void 0;if(i!=null?(u=0,h=i):s&&(u=s.x,h=s.width),o!=null?(f=0,v=o):s&&(f=s.y,v=s.height),u==null||f==null){var c=a.getBoundingRect();u==null&&(u=c.x,h=c.width),f==null&&(f=c.y,v=c.height)}l=this._boundingRect=new pt(u,f,h,v)}if(s){var p=oM(s,l);a.scaleX=a.scaleY=p.scale,a.x=p.x,a.y=p.y}n.setClipPath(new Tt({shape:l.plain()}));var d=[];return D(t.named,function(g){Ez.get(g.svgNodeTagLower)!=null&&(d.push(g),Oz(g.el))}),{root:n,boundingRect:l,named:d}},r.prototype.useGraphic=function(e){var t=this._usedGraphicMap,a=t.get(e);return a||(a=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),t.set(e,a),a)},r.prototype.freeGraphic=function(e){var t=this._usedGraphicMap,a=t.get(e);a&&(t.removeKey(e),this._freedGraphics.push(a))},r}();function Oz(r){r.silent=!1,r.isGroup&&r.traverse(function(e){e.silent=!1})}function Nz(r){var e=[],t=K();return D(r,function(a){if(a.namedFrom==null){var n=new LB(a.name,a.el);e.push(n),t.set(a.name,n)}}),{regions:e,regionsMap:t}}var Ad=[126,25],mS="南海诸岛",Vn=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]];for(var Nn=0;Nn<Vn.length;Nn++)for(var Fi=0;Fi<Vn[Nn].length;Fi++)Vn[Nn][Fi][0]/=10.5,Vn[Nn][Fi][1]/=-10.5/.75,Vn[Nn][Fi][0]+=Ad[0],Vn[Nn][Fi][1]+=Ad[1];function Bz(r,e){if(r==="china"){for(var t=0;t<e.length;t++)if(e[t].name===mS)return;e.push(new rD(mS,H(Vn,function(a){return{type:"polygon",exterior:a}}),Ad))}}var Vz={南海诸岛:[32,80],广东:[0,-10],香港:[10,5],澳门:[-10,10],天津:[5,5]};function zz(r,e){if(r==="china"){var t=Vz[e.name];if(t){var a=e.getCenter();a[0]+=t[0]/10.5,a[1]+=-t[1]/(10.5/.75),e.setCenter(a)}}}var Gz=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function Fz(r,e){r==="china"&&e.name==="台湾"&&e.geometries.push({type:"polygon",exterior:Gz[0]})}var Hz="name",Wz=function(){function r(e,t,a){this.type="geoJSON",this._parsedMap=K(),this._mapName=e,this._specialAreas=a,this._geoJSON=Yz(t)}return r.prototype.load=function(e,t){t=t||Hz;var a=this._parsedMap.get(t);if(!a){var n=this._parseToRegions(t);a=this._parsedMap.set(t,{regions:n,boundingRect:Uz(n)})}var i=K(),o=[];return D(a.regions,function(s){var l=s.name;e&&Z(e,l)&&(s=s.cloneShallow(l=e[l])),o.push(s),i.set(l,s)}),{regions:o,boundingRect:a.boundingRect||new pt(0,0,0,0),regionsMap:i}},r.prototype._parseToRegions=function(e){var t=this._mapName,a=this._geoJSON,n;try{n=a?RB(a,e):[]}catch(i){throw new Error(`Invalid geoJson format
|
|||
|
|
`+i.message)}return Bz(t,n),D(n,function(i){var o=i.name;zz(t,i),Fz(t,i);var s=this._specialAreas&&this._specialAreas[o];s&&i.transformTo(s.left,s.top,s.width,s.height)},this),n},r.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},r}();function Uz(r){for(var e,t=0;t<r.length;t++){var a=r[t].getBoundingRect();e=e||a.clone(),e.union(a)}return e}function Yz(r){return Y(r)?typeof JSON<"u"&&JSON.parse?JSON.parse(r):new Function("return ("+r+");")():r}var is=K();const wa={registerMap:function(r,e,t){if(e.svg){var a=new kz(r,e.svg);is.set(r,a)}else{var n=e.geoJson||e.geoJSON;n&&!e.features?t=e.specialAreas:n=e;var a=new Wz(r,n,t);is.set(r,a)}},getGeoResource:function(r){return is.get(r)},getMapForUser:function(r){var e=is.get(r);return e&&e.type==="geoJSON"&&e.getMapForUser()},load:function(r,e,t){var a=is.get(r);if(a)return a.load(e,t)}};var wy=["rect","circle","line","ellipse","polygon","polyline","path"],$z=K(wy),Xz=K(wy.concat(["g"])),Zz=K(wy.concat(["g"])),sM=At();function Au(r){var e=r.getItemStyle(),t=r.get("areaColor");return t!=null&&(e.fill=t),e}function _S(r){var e=r.style;e&&(e.stroke=e.stroke||e.fill,e.fill=null)}var lM=function(){function r(e){var t=new it;this.uid=Lo("ec_map_draw"),this._controller=new Ol(e.getZr()),this._controllerHost={target:t},this.group=t,t.add(this._regionsGroup=new it),t.add(this._svgGroup=new it)}return r.prototype.draw=function(e,t,a,n,i){var o=e.mainType==="geo",s=e.getData&&e.getData();o&&t.eachComponent({mainType:"series",subType:"map"},function(y){!s&&y.getHostGeoModel()===e&&(s=y.getData())});var l=e.coordinateSystem,u=this._regionsGroup,f=this.group,h=l.getTransformInfo(),v=h.raw,c=h.roam,p=!u.childAt(0)||i;p?(f.x=c.x,f.y=c.y,f.scaleX=c.scaleX,f.scaleY=c.scaleY,f.dirty()):Mt(f,c,e);var d=s&&s.getVisual("visualMeta")&&s.getVisual("visualMeta").length>0,g={api:a,geo:l,mapOrGeoModel:e,data:s,isVisualEncodedByVisualMap:d,isGeo:o,transformInfoRaw:v};l.resourceType==="geoJSON"?this._buildGeoJSON(g):l.resourceType==="geoSVG"&&this._buildSVG(g),this._updateController(e,t,a),this._updateMapSelectHandler(e,u,a,n)},r.prototype._buildGeoJSON=function(e){var t=this._regionsGroupByName=K(),a=K(),n=this._regionsGroup,i=e.transformInfoRaw,o=e.mapOrGeoModel,s=e.data,l=e.geo.projection,u=l&&l.stream;function f(c,p){return p&&(c=p(c)),c&&[c[0]*i.scaleX+i.x,c[1]*i.scaleY+i.y]}function h(c){for(var p=[],d=!u&&l&&l.project,g=0;g<c.length;++g){var y=f(c[g],d);y&&p.push(y)}return p}function v(c){return{shape:{points:h(c)}}}n.removeAll(),D(e.geo.regions,function(c){var p=c.name,d=t.get(p),g=a.get(p)||{},y=g.dataIdx,m=g.regionModel;if(!d){d=t.set(p,new it),n.add(d),y=s?s.indexOfName(p):null,m=e.isGeo?o.getRegionModel(p):s?s.getItemModel(y):null;var _=m.get("silent",!0);_!=null&&(d.silent=_),a.set(p,{dataIdx:y,regionModel:m})}var S=[],b=[];D(c.geometries,function(T){if(T.type==="polygon"){var A=[T.exterior].concat(T.interiors||[]);u&&(A=AS(A,u)),D(A,function(M){S.push(new Be(v(M)))})}else{var C=T.points;u&&(C=AS(C,u,!0)),D(C,function(M){b.push(new Ve(v(M)))})}});var x=f(c.getCenter(),l&&l.project);function w(T,A){if(T.length){var C=new Eg({culling:!0,segmentIgnoreThreshold:1,shape:{paths:T}});d.add(C),SS(e,C,y,m),xS(e,C,p,m,o,y,x),A&&(_S(C),D(C.states,_S))}}w(S),w(b,!0)}),t.each(function(c,p){var d=a.get(p),g=d.dataIdx,y=d.regionModel;bS(e,c,p,y,o,g),wS(e,c,p,y,o),TS(e,c,p,y,o)},this)},r.prototype._buildSVG=function(e){var t=e.geo.map,a=e.transformInfoRaw;this._svgGroup.x=a.x,this._svgGroup.y=a.y,this._svgGroup.scaleX=a.scaleX,this._svgGroup.scaleY=a.scaleY,this._svgResourceChanged(t)&&(this._freeSVG(),this._useSVG(t));var n=this._svgDispatcherMap=K(),i=!1;D(this._svgGraphicRecord.named,function(o){var s=o.name,l=e.mapOrGeoModel,u=e.data,f=o.svgNodeTagLower,h=o.el,v=u?u.indexOfName(s):null,c=l.getRegionModel(s);$z.get(f)!=null&&h instanceof gr&&SS(e,h,v,c),h instanceof gr&&(h.culling=!0);var p=c.get("silent",!0);if(p!=null&&(h.silent=p),h.z2EmphasisLift=0,!o.namedFrom&&(Zz.get(f)!=null&&xS(e,h,s,c,l,v,null),bS(e,h,s,c,l,v),wS(e,h,s,c,l),X
|
|||
|
|
`))}),e.join(`
|
|||
|
|
|
|||
|
|
`+Uh+`
|
|||
|
|
|
|||
|
|
`)}function o8(r){return H(r,function(e){var t=e.getRawData(),a=[e.name],n=[];return t.each(t.dimensions,function(){for(var i=arguments.length,o=arguments[i-1],s=t.getName(o),l=0;l<i-1;l++)n[l]=arguments[l];a.push((s?s+bo:"")+n.join(bo))}),a.join(`
|
|||
|
|
`)}).join(`
|
|||
|
|
|
|||
|
|
`+Uh+`
|
|||
|
|
|
|||
|
|
`)}function s8(r){var e=n8(r);return{value:Lt([i8(e.seriesGroupByCategoryAxis),o8(e.other)],function(t){return!!t.replace(/[\n\t\s]/g,"")}).join(`
|
|||
|
|
|
|||
|
|
`+Uh+`
|
|||
|
|
|
|||
|
|
`),meta:e.meta}}function Kf(r){return r.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function l8(r){var e=r.slice(0,r.indexOf(`
|
|||
|
|
`));if(e.indexOf(bo)>=0)return!0}var $d=new RegExp("["+bo+"]+","g");function u8(r){for(var e=r.split(/\n+/g),t=Kf(e.shift()).split($d),a=[],n=H(t,function(l){return{name:l,data:[]}}),i=0;i<e.length;i++){var o=Kf(e[i]).split($d);a.push(o.shift());for(var s=0;s<o.length;s++)n[s]&&(n[s].data[i]=o[s])}return{series:n,categories:a}}function f8(r){for(var e=r.split(/\n+/g),t=Kf(e.shift()),a=[],n=0;n<e.length;n++){var i=Kf(e[n]);if(i){var o=i.split($d),s="",l=void 0,u=!1;isNaN(o[0])?(u=!0,s=o[0],o=o.slice(1),a[n]={name:s,value:[]},l=a[n].value):l=a[n]=[];for(var f=0;f<o.length;f++)l.push(+o[f]);l.length===1&&(u?a[n].value=l[0]:a[n]=l[0])}}return{name:t,data:a}}function h8(r,e){var t=r.split(new RegExp(`
|
|||
|
|
*`+Uh+`
|
|||
|
|
*`,"g")),a={series:[]};return D(t,function(n,i){if(l8(n)){var o=u8(n),s=e[i],l=s.axisDim+"Axis";s&&(a[l]=a[l]||[],a[l][s.axisIndex]={data:o.categories},a.series=a.series.concat(o.series))}else{var o=f8(n);a.series.push(o)}}),a}var v8=function(r){k(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.onclick=function(t,a){setTimeout(function(){a.dispatchAction({type:"hideTip"})});var n=a.getDom(),i=this.model;this._dom&&n.removeChild(this._dom);var o=document.createElement("div");o.style.cssText="position:absolute;top:0;bottom:0;left:0;right:0;padding:5px",o.style.backgroundColor=i.get("backgroundColor")||"#fff";var s=document.createElement("h4"),l=i.get("lang")||[];s.innerHTML=l[0]||i.get("title"),s.style.cssText="margin:10px 20px",s.style.color=i.get("textColor");var u=document.createElement("div"),f=document.createElement("textarea");u.style.cssText="overflow:auto";var h=i.get("optionToContent"),v=i.get("contentToOption"),c=s8(t);if(tt(h)){var p=h(a.getOption());Y(p)?u.innerHTML=p:ho(p)&&u.appendChild(p)}else{f.readOnly=i.get("readOnly");var d=f.style;d.cssText="display:block;width:100%;height:100%;font-family:monospace;font-size:14px;line-height:1.6rem;resize:none;box-sizing:border-box;outline:none",d.color=i.get("textColor"),d.borderColor=i.get("textareaBorderColor"),d.backgroundColor=i.get("textareaColor"),f.value=c.value,u.appendChild(f)}var g=c.meta,y=document.createElement("div");y.style.cssText="position:absolute;bottom:5px;left:0;right:0";var m="float:right;margin-right:20px;border:none;cursor:pointer;padding:2px 5px;font-size:12px;border-radius:3px",_=document.createElement("div"),S=document.createElement("div");m+=";background-color:"+i.get("buttonColor"),m+=";color:"+i.get("buttonTextColor");var b=this;function x(){n.removeChild(o),b._dom=null}Tp(_,"click",x),Tp(S,"click",function(){if(v==null&&h!=null||v!=null&&h==null){x();return}var w;try{tt(v)?w=v(u,a.getOption()):w=h8(f.value,g)}catch(T){throw x(),new Error("Data view format error "+T)}w&&a.dispatchAction({type:"changeDataView",newOption:w}),x()}),_.innerHTML=l[1],S.innerHTML=l[2],S.style.cssText=_.style.cssText=m,!i.get("readOnly")&&y.appendChild(S),y.appendChild(_),o.appendChild(s),o.appendChild(u),o.appendChild(y),u.style.height=n.clientHeight-80+"px",n.appendChild(o),this._dom=o},e.prototype.remove=function(t,a){this._dom&&a.getDom().removeChild(this._dom)},e.prototype.dispose=function(t,a){this.remove(t,a)},e.getDefaultOption=function(t){var a={show:!0,readOnly:!1,optionToContent:null,contentToOption:null,icon:"M17.5,17.3H33 M17.5,17.3H33 M45.4,29.5h-28 M11.5,2v56H51V14.8L38.4,2H11.5z M38.4,2.2v12.7H51 M45.4,41.7h-28",title:t.getLocaleModel().get(["toolbox","dataView","title"]),lang:t.getLocaleModel().get(["toolbox","dataView","lang"]),backgroundColor:"#fff",textColor:"#000",textareaColor:"#fff",textareaBorderColor:"#333",buttonColor:"#c23531",buttonTextColor:"#fff"};return a},e}(hr);function c8(r,e){return H(r,function(t,a){var n=e&&e[a];if(rt(n)&&!F(n)){var i=rt(t)&&!F(t);i||(t={value:t});var o=n.name!=null&&t.name==null;return t=et(t,n),o&&delete t.name,t}else return t})}ra({type:"changeDataView",event:"dataViewChanged",update:"prepareAndUpdate"},function(r,e){var t=[];D(r.newOption.series,function(a){var n=e.getSeriesByName(a.name)[0];if(!n)t.push(z({type:"scatter"},a));else{var i=n.get("data");t.push({name:a.name,data:c8(a.data,i)})}}),e.mergeOption(et({series:t},r.newOption))});var V2=D,z2=At();function p8(r,e){var t=om(r);V2(e,function(a,n){for(var i=t.length-1;i>=0;i--){var o=t[i];if(o[n])break}if(i<0){var s=r.queryComponents({mainType:"dataZoom",subType:"select",id:n})[0];if(s){var l=s.getPercentRange();t[0][n]={dataZoomId:n,start:l[0],end:l[1]}}}}),t.push(e)}function d8(r){var e=om(r),t=e[e.length-1];e.length>1&&e.pop();var a={};return V2(t,function(n,i){for(var o=e.length-1;o>=0;o--)if(n=e[o][i],n){a[i]=n;break}}),a}function g8(r){z2(r).snapshots=null}function y8(r){return om(r).length}function om(r){var e=z2(r);return e.snapshots||(e.snapshots=[{}]),e.snapshots}var m8=function(r){k(e,r);function e(){retur
|
|||
|
|
|
|||
|
|
`:"<br/>",y=h.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(t,u)?this._updatePosition(s,c,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,y,u,Math.random()+"",o[0],o[1],c,null,v)})},e.prototype._showSeriesItemTooltip=function(t,a,n){var i=this._ecModel,o=st(a),s=o.seriesIndex,l=i.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,h=o.dataType,v=u.getData(h),c=this._renderMode,p=t.positionDefault,d=us([v.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,p?{position:p}:null),g=d.get("trigger");if(!(g!=null&&g!=="item")){var y=u.getDataParams(f,h),m=new Gv;y.marker=m.makeTooltipMarker("item",di(y.color),c);var _=c_(u.formatTooltip(f,!1,h)),S=d.get("order"),b=d.get("valueFormatter"),x=_.frag,w=x?__(b?z({valueFormatter:b},x):x,m,c,S,i.get("useUTC"),d.get("textStyle")):_.text,T="item_"+u.name+"_"+f;this._showOrMove(d,function(){this._showTooltipContent(d,w,y,T,t.offsetX,t.offsetY,t.position,t.target,m)}),n({type:"showTip",dataIndexInside:f,dataIndex:v.getRawIndex(f),seriesIndex:s,from:this.uid})}},e.prototype._showComponentItemTooltip=function(t,a,n){var i=this._renderMode==="html",o=st(a),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(Y(l)){var f=l;l={content:f,formatter:f},u=!0}u&&i&&l.content&&(l=nt(l),l.content=Pe(l.content));var h=[l],v=this._ecModel.getComponent(o.componentMainType,o.componentIndex);v&&h.push(v),h.push({formatter:l.content});var c=t.positionDefault,p=us(h,this._tooltipModel,c?{position:c}:null),d=p.get("content"),g=Math.random()+"",y=new Gv;this._showOrMove(p,function(){var m=nt(p.get("formatterParams")||{});this._showTooltipContent(p,d,m,g,t.offsetX,t.offsetY,t.position,a,y)}),n({type:"showTip",from:this.uid})},e.prototype._showTooltipContent=function(t,a,n,i,o,s,l,u,f){if(this._ticket="",!(!t.get("showContent")||!t.get("show"))){var h=this._tooltipContent;h.setEnterable(t.get("enterable"));var v=t.get("formatter");l=l||t.get("position");var c=a,p=this._getNearestPoint([o,s],n,t.get("trigger"),t.get("borderColor")),d=p.color;if(v)if(Y(v)){var g=t.ecModel.get("useUTC"),y=F(n)?n[0]:n,m=y&&y.axisType&&y.axisType.indexOf("time")>=0;c=v,m&&(c=bh(y.axisValue,c,g)),c=bA(c,n,!0)}else if(tt(v)){var _=$(function(S,b){S===this._ticket&&(h.setContent(b,f,t,d,l),this._updatePosition(t,l,o,s,h,n,u))},this);this._ticket=i,c=v(n,i,_)}else c=v;h.setContent(c,f,t,d,l),h.show(t,d),this._updatePosition(t,l,o,s,h,n,u)}},e.prototype._getNearestPoint=function(t,a,n,i){if(n==="axis"||F(a))return{color:i||(this._renderMode==="html"?"#fff":"none")};if(!F(a))return{color:i||a.color||a.borderColor}},e.prototype._updatePosition=function(t,a,n,i,o,s,l){var u=this._api.getWidth(),f=this._api.getHeight();a=a||t.get("position");var h=o.getSize(),v=t.get("align"),c=t.get("verticalAlign"),p=l&&l.getBoundingRect().clone();if(l&&p.applyTransform(l.transform),tt(a)&&(a=a([n,i],s,o.el,p,{viewSize:[u,f],contentSize:h.slice()})),F(a))n=U(a[0],u),i=U(a[1],f);else if(rt(a)){var d=a;d.width=h[0],d.height=h[1];var g=ae(d,{width:u,height:f});n=g.x,i=g.y,v=null,c=null}else if(Y(a)&&l){var y=U8(a,p,h,t.get("borderWidth"));n=y[0],i=y[1]}else{var y=H8(n,i,o,u,f,v?null:20,c?null:20);n=y[0],i=y[1]}if(v&&(n-=Lb(v)?h[0]/2:v==="right"?h[0]:0),c&&(i-=Lb(c)?h[1]/2:c==="bottom"?h[1]:0),G2(t)){var y=W8(n,i,o,u,f);n=y[0],i=y[1]}o.moveTo(n,i)},e.prototype._updateContentNotChangedOnAxis=function(t,a){var n=this._lastDataByCoordSys,i=this._cbParamsList,o=!!n&&n.length===t.length;return o&&D(n,function(s,l){var u=s.dataByAxis||[],f=t[l]||{},h=f.dataByAxis||[];o=o&&u.length===h.length,o&&D(u,function(v,c){var p=h[c]||{},d=v.seriesDataIndices||[],g=p.seriesDataIndices||[];o=o&&v.value===p.value&&v.axisType===p.axisType&&v.axisId===p.axisId&&d.length===g.length,o&&D(d,function(y,m){var _=g[m];o=o&&y.seriesIndex===_.seriesIndex&&y.dataIndex===_.dataIndex}),i&&D(v.seriesDataIndices,function(y){var m=y.seriesIndex,_=a[m],S=i[m];_&&S&&S.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=t,this._cbParamsList=a,!!o},e.prototype._hide=function(t){this._lastDataByCoordSys=null,t({type:"hideTip",from:t
|
|||
|
|
`)){var g=new Gu;g.newline=!0,u.add(g);return}var y=n.getSeriesByName(d)[0];if(!f.get(d))if(y){var m=y.getData(),_=m.getVisual("legendLineStyle")||{},S=m.getVisual("legendIcon"),b=m.getVisual("style"),x=this._createItem(y,d,p,c,a,t,_,b,S,h,i);x.on("click",$i(qb,d,null,i,v)).on("mouseover",$i(tg,y.name,null,i,v)).on("mouseout",$i(eg,y.name,null,i,v)),n.ssr&&x.eachChild(function(w){var T=st(w);T.seriesIndex=y.seriesIndex,T.dataIndex=p,T.ssrType="legend"}),f.set(d,!0)}else n.eachRawSeries(function(w){if(!f.get(d)&&w.legendVisualProvider){var T=w.legendVisualProvider;if(!T.containName(d))return;var A=T.indexOfName(d),C=T.getItemVisual(A,"style"),M=T.getItemVisual(A,"legendIcon"),I=Je(C.fill);I&&I[3]===0&&(I[3]=.2,C=z(z({},C),{fill:pa(I,"rgba")}));var L=this._createItem(w,d,p,c,a,t,{},C,M,h,i);L.on("click",$i(qb,null,d,i,v)).on("mouseover",$i(tg,null,d,i,v)).on("mouseout",$i(eg,null,d,i,v)),n.ssr&&L.eachChild(function(P){var R=st(P);R.seriesIndex=w.seriesIndex,R.dataIndex=p,R.ssrType="legend"}),f.set(d,!0)}},this)},this),o&&this._createSelector(o,a,i,s,l)},e.prototype._createSelector=function(t,a,n,i,o){var s=this.getSelectorGroup();Qd(t,function(u){var f=u.type,h=new Ct({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect",legendId:a.id})}});s.add(h);var v=a.getModel("selectorLabel"),c=a.getModel(["emphasis","selectorLabel"]);_e(h,{normal:v,emphasis:c},{defaultText:u.title}),ii(h)})},e.prototype._createItem=function(t,a,n,i,o,s,l,u,f,h,v){var c=t.visualDrawType,p=o.get("itemWidth"),d=o.get("itemHeight"),g=o.isSelected(a),y=i.get("symbolRotate"),m=i.get("symbolKeepAspect"),_=i.get("icon");f=_||f||"roundRect";var S=W7(f,i,l,u,c,g,v),b=new Gu,x=i.getModel("textStyle");if(tt(t.getLegendIcon)&&(!_||_==="inherit"))b.add(t.getLegendIcon({itemWidth:p,itemHeight:d,icon:f,iconRotate:y,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:m}));else{var w=_==="inherit"&&t.getData().getVisual("symbol")?y==="inherit"?t.getData().getVisual("symbolRotate"):y:0;b.add(U7({itemWidth:p,itemHeight:d,icon:f,iconRotate:w,itemStyle:S.itemStyle,symbolKeepAspect:m}))}var T=s==="left"?p+5:-5,A=s,C=o.get("formatter"),M=a;Y(C)&&C?M=C.replace("{name}",a??""):tt(C)&&(M=C(a));var I=g?x.getTextColor():i.get("inactiveColor");b.add(new Ct({style:Ft(x,{text:M,x:T,y:d/2,fill:I,align:A,verticalAlign:"middle"},{inheritColor:I})}));var L=new Tt({shape:b.getBoundingRect(),style:{fill:"transparent"}}),P=i.getModel("tooltip");return P.get("show")&&Si({el:L,componentModel:o,itemName:a,itemTooltipOption:P.option}),b.add(L),b.eachChild(function(R){R.silent=!0}),L.silent=!h,this.getContentGroup().add(b),ii(b),b.__legendDataIndex=n,b},e.prototype.layoutInner=function(t,a,n,i,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();si(t.get("orient"),l,t.get("itemGap"),n.width,n.height);var f=l.getBoundingRect(),h=[-f.x,-f.y];if(u.markRedraw(),l.markRedraw(),o){si("horizontal",u,t.get("selectorItemGap",!0));var v=u.getBoundingRect(),c=[-v.x,-v.y],p=t.get("selectorButtonGap",!0),d=t.getOrient().index,g=d===0?"width":"height",y=d===0?"height":"width",m=d===0?"y":"x";s==="end"?c[d]+=f[g]+p:h[d]+=v[g]+p,c[1-d]+=f[y]/2-v[y]/2,u.x=c[0],u.y=c[1],l.x=h[0],l.y=h[1];var _={x:0,y:0};return _[g]=f[g]+p+v[g],_[y]=Math.max(f[y],v[y]),_[m]=Math.min(0,v[m]+c[1-d]),_}else return l.x=h[0],l.y=h[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(Xt);function W7(r,e,t,a,n,i,o){function s(g,y){g.lineWidth==="auto"&&(g.lineWidth=y.lineWidth>0?2:0),Qd(g,function(m,_){g[_]==="inherit"&&(g[_]=y[_])})}var l=e.getModel("itemStyle"),u=l.getItemStyle(),f=r.lastIndexOf("empty",0)===0?"fill":"stroke",h=l.getShallow("decal");u.decal=!h||h==="inherit"?a.decal:go(h,o),u.fill==="inherit"&&(u.fill=a[n]),u.stroke==="inherit"&&(u.stroke=a[f]),u.opacity==="inherit"&&(u.opacity=(n==="fill"?a:t).opacity),s(u,a);var v=e.getModel("lineStyle"),c=v.getLineStyle();if(s(c,t),u.fill==="auto"&&(u.fill=a.fill),u.stroke==="aut
|
|||
|
|
`||n==="")){var i=r.isSelected(n);Z(t,n)?t[n]=t[n]&&i:t[n]=i}}),t}function $7(r){r.registerAction("legendToggleSelect","legendselectchanged",ft(hs,"toggleSelected")),r.registerAction("legendAllSelect","legendselectall",ft(hs,"allSelect")),r.registerAction("legendInverseSelect","legendinverseselect",ft(hs,"inverseSelect")),r.registerAction("legendSelect","legendselected",ft(hs,"select")),r.registerAction("legendUnSelect","legendunselected",ft(hs,"unSelect"))}function j2(r){r.registerComponentModel(Jd),r.registerComponentView(q2),r.registerProcessor(r.PRIORITY.PROCESSOR.SERIES_FILTER,Y7),r.registerSubTypeDefaulter("legend",function(){return"plain"}),$7(r)}var X7=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.setScrollDataIndex=function(t){this.option.scrollDataIndex=t},e.prototype.init=function(t,a,n){var i=Ro(t);r.prototype.init.call(this,t,a,n),jb(this,t,i)},e.prototype.mergeOption=function(t,a){r.prototype.mergeOption.call(this,t,a),jb(this,this.option,t)},e.type="legend.scroll",e.defaultOption=hn(Jd.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}),e}(Jd);function jb(r,e,t){var a=r.getOrient(),n=[1,1];n[a.index]=0,on(e,t,{type:"box",ignoreSize:!!n})}var Jb=it,sp=["width","height"],lp=["x","y"],Z7=function(r){k(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.newlineDisabled=!0,t._currentIndex=0,t}return e.prototype.init=function(){r.prototype.init.call(this),this.group.add(this._containerGroup=new Jb),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new Jb)},e.prototype.resetInner=function(){r.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},e.prototype.renderInner=function(t,a,n,i,o,s,l){var u=this;r.prototype.renderInner.call(this,t,a,n,i,o,s,l);var f=this._controllerGroup,h=a.get("pageIconSize",!0),v=F(h)?h:[h,h];p("pagePrev",0);var c=a.getModel("pageTextStyle");f.add(new Ct({name:"pageText",style:{text:"xx/xx",fill:c.getTextColor(),font:c.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),p("pageNext",1);function p(d,g){var y=d+"DataIndex",m=Tl(a.get("pageIcons",!0)[a.getOrient().name][g],{onclick:$(u._pageGo,u,y,a,i)},{x:-v[0]/2,y:-v[1]/2,width:v[0],height:v[1]});m.name=d,f.add(m)}},e.prototype.layoutInner=function(t,a,n,i,o,s){var l=this.getSelectorGroup(),u=t.getOrient().index,f=sp[u],h=lp[u],v=sp[1-u],c=lp[1-u];o&&si("horizontal",l,t.get("selectorItemGap",!0));var p=t.get("selectorButtonGap",!0),d=l.getBoundingRect(),g=[-d.x,-d.y],y=nt(n);o&&(y[f]=n[f]-d[f]-p);var m=this._layoutContentAndController(t,i,y,u,f,v,c,h);if(o){if(s==="end")g[u]+=m[f]+p;else{var _=d[f]+p;g[u]-=_,m[h]-=_}m[f]+=d[f]+p,g[1-u]+=m[c]+m[v]/2-d[v]/2,m[v]=Math.max(m[v],d[v]),m[c]=Math.min(m[c],d[c]+g[1-u]),l.x=g[0],l.y=g[1],l.markRedraw()}return m},e.prototype._layoutContentAndController=function(t,a,n,i,o,s,l,u){var f=this.getContentGroup(),h=this._containerGroup,v=this._controllerGroup;si(t.get("orient"),f,t.get("itemGap"),i?n.width:null,i?null:n.height),si("horizontal",v,t.get("pageButtonItemGap",!0));var c=f.getBoundingRect(),p=v.getBoundingRect(),d=this._showController=c[o]>n[o],g=[-c.x,-c.y];a||(g[i]=f[u]);var y=[0,0],m=[-p.x,-p.y],_=ut(t.get("pageButtonGap",!0),t.get("itemGap",!0));if(d){var S=t.get("pageButtonPosition",!0);S==="end"?m[i]+=n[o]-p[o]:y[i]+=p[o]+_}m[1-i]+=c[s]/2-p[s]/2,f.setPosition(g),h.setPosition(y),v.setPosition(m);var b={x:0,y:0};if(b[o]=d?n[o]:c[o],b[s]=Math.max(c[s],p[s]),b[l]=Math.min(0,p[l]+m[1-i]),h.__rectSize=n[o],d){var x={x:0,y:0};x[o]=Math.max(n[o]-p[o]-_,0),x[s]=b[s],h.setClipPath(new Tt({shape:x})),h.__rectSize=x[o]}else v.eachChild(fu
|
|||
|
|
<div style="text-align: right; padding: 2px 4px;">
|
|||
|
|
<div style="font-weight: 600; margin-bottom: 4px;">${x.name}</div>
|
|||
|
|
<div>تعداد: <b>${w}</b> (${T}٪)</div>
|
|||
|
|
</div>
|
|||
|
|
`}},legend:{orient:"horizontal",bottom:0,textStyle:{fontFamily:"IRANSans",color:"#475569",fontSize:11},itemWidth:10,itemHeight:10},series:[{name:"توزیع جوایز",type:"pie",radius:["45%","72%"],center:["50%","45%"],avoidLabelOverlap:!0,itemStyle:{borderRadius:6,borderColor:"#fff",borderWidth:2},label:{show:!1,position:"center"},emphasis:{label:{show:!0,fontSize:14,fontWeight:"bold",fontFamily:"IRANSans",formatter:x=>`${tr(x.percent)}٪
|
|||
|
|
${x.name}`},itemStyle:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.15)"}},data:S}]})}function v(m){m&&(navigator.clipboard.writeText(m),CI.success("کد جایزه در حافظه کپی شد"))}const c={NEW:{text:"جدید",color:"blue"},PENDING:{text:"در انتظار",color:"warning"},CONTACTED:{text:"تماس گرفتهشده",color:"cyan"},DELIVERED:{text:"تحویل داده شده",color:"success"},ACTIVE_CODE:{text:"کد فعال",color:"purple"},USED:{text:"استفاده شده",color:"green"},CANCELLED:{text:"لغو شده",color:"error"},EXPIRED:{text:"منقضی شده",color:"default"}},p={PHYSICAL:{text:"کالای فیزیکی",color:"blue"},DISCOUNT_CODE:{text:"کد تخفیف",color:"purple"},CREDIT:{text:"اعتبار",color:"cyan"},CASH:{text:"نقدی",color:"gold"},NO_PRIZE:{text:"پوچ",color:"default"},OTHER:{text:"سایر",color:"default"}},d={CLASSIC_CASINO:"کازینویی کلاسیک",NEON_CYBER:"نئونی سایبر",MINIMAL_FLAT:"مینیمال فلت",LUXURY_GOLD:"طلایی لوکس",PLAYFUL_CARTOON:"کارتونی فانتزی"},g=[{title:"کاربر برنده",key:"user",width:"22%"},{title:"کمپین",dataIndex:["campaign","title"],key:"campaign",width:"18%"},{title:"جایزه برنده شده",key:"prize",width:"22%"},{title:"کد رهگیری / جایزه",key:"code",width:"15%"},{title:"وضعیت",dataIndex:"status",key:"status",width:"11%"},{title:"زمان برد",dataIndex:"wonAt",key:"wonAt",width:"12%"}];function y(){o==null||o.resize(),s==null||s.resize()}return dI(()=>{l(),window.addEventListener("resize",y)}),gI(()=>{window.removeEventListener("resize",y),o==null||o.dispose(),s==null||s.dispose()}),(m,_)=>{const S=na("a-button"),b=na("a-card"),x=na("a-col"),w=na("a-row"),T=na("a-tag"),A=na("a-empty"),C=na("a-tooltip"),M=na("a-table"),I=na("a-spin");return ve(),Ce("div",L9,[X("div",P9,[_[8]||(_[8]=yI('<div class="header-info" data-v-b614da84><div class="title-row" data-v-b614da84><h1 class="title" data-v-b614da84>داشبورد مدیریت و مانیتورینگ</h1><span class="live-badge" data-v-b614da84><span class="pulse-dot" data-v-b614da84></span> سامانه فعال و آنلاین </span></div><p class="subtitle" data-v-b614da84>نمای جامع فعالیت کاربران، ترافیک چرخشها، وضعیت برندگان و کمپینهای جاری</p></div>',1)),X("div",R9,[at(S,{type:"primary",ghost:"",onClick:l,loading:t.value,class:"refresh-btn"},{icon:gt(()=>[at(mt(ym))]),default:gt(()=>[_[7]||(_[7]=he(" بروزرسانی دادهها ",-1))]),_:1},8,["loading"])])]),X("div",E9,[X("div",k9,[at(mt(sg),{style:{color:"#4f46e5","margin-left":"6px"}}),_[9]||(_[9]=he(" دسترسیهای سریع: ",-1))]),X("div",O9,[at(S,{type:"primary",class:"action-btn action-primary",onClick:_[0]||(_[0]=L=>mt(e).push("/campaigns/create"))},{icon:gt(()=>[at(mt(wm))]),default:gt(()=>[_[10]||(_[10]=he(" تعریف کمپین جدید ",-1))]),_:1}),at(S,{class:"action-btn",onClick:_[1]||(_[1]=L=>mt(e).push("/users"))},{icon:gt(()=>[at(mt(LI))]),default:gt(()=>[_[11]||(_[11]=he(" مدیریت کاربران ",-1))]),_:1}),at(S,{class:"action-btn",onClick:_[2]||(_[2]=L=>mt(e).push("/winners"))},{icon:gt(()=>[at(mt(mm))]),default:gt(()=>[_[12]||(_[12]=he(" مدیریت برندگان و هدایا ",-1))]),_:1}),at(S,{class:"action-btn",onClick:_[3]||(_[3]=L=>mt(e).push("/reports"))},{icon:gt(()=>[at(mt(xI))]),default:gt(()=>[_[13]||(_[13]=he(" گزارشهای تحلیلی و اکسل ",-1))]),_:1})])]),at(I,{spinning:t.value},{default:gt(()=>{var L,P,R,E,B,N;return[at(w,{gutter:[16,16],class:"kpi-row"},{default:gt(()=>[at(x,{xs:24,sm:12,md:8,xl:4},{default:gt(()=>[at(b,{bordered:!1,class:"kpi-card card-indigo"},{default:gt(()=>{var O,V,G,W;return[X("div",N9,[X("div",B9,[_[14]||(_[14]=X("span",{class:"kpi-label"},"کل کاربران",-1)),X("div",V9,[at(mt(_m))])]),X("div",z9,$t(mt(Xe)(((V=(O=a.value)==null?void 0:O.stats)==null?void 0:V.totalUsers)||0)),1),X("div",G9,[X("span",F9,[at(mt(uf),{style:{"font-size":"10px","margin-l
|