2026-06-23 12:51:15 +03:30
|
|
|
|
import{o as Me,c as ir,M as mR,d as ID,h as ca,a as Z,F as Cn,n as Dn,j as Ut,i as Vl,w as Ar,b as Ae,t as ne,N as PD,I as ie,g as re,v as _R,L as cn,O as SR,x as Ra,y as Do,e as V_,P as vm,_ as vn}from"./index-1bce333c.js";import{_ as xR}from"./button.vue_vue_type_style_index_0_lang-27efd666.js";import{_ as wR}from"./BasicSelect.vue_vue_type_style_index_0_lang-97f0f357.js";import{_ as bR}from"./_plugin-vue_export-helper-3f2269c4.js";import{T as zl}from"./shallowequal-1541c82f.js";import{I as z_}from"./Icon-6341c6d7.js";import{_ as Ao}from"./InputDatePicker.vue_vue_type_script_setup_true_lang-8c5b0512.js";import{m as We,a as Ea}from"./useDataTime-7ae4955d.js";import{u as TR}from"./usePrice-bc935b83.js";import"./lodash-7eda9a39.js";import"./fa_IR-7585613a.js";import"./toArray-4db0bbfe.js";import"./vnode-aeac980e.js";import"./FormItemContext-3ee2389e.js";import"./pickAttrs-fbeac5f6.js";import"./useState-3936625c.js";const CR={},DR={class:"bg-gradient"};function AR(r,e){return Me(),ir("div",DR,[mR(r.$slots,"default")])}const Gl=bR(CR,[["render",AR]]),G_="/assets/users4-80585f51.svg",F_="/assets/users3-3a96ddd8.svg",Th="/assets/users5-1dc3f500.svg",MR="/assets/users2-8002992a.svg",LR={class:"grid grid-cols-1 md:grid-cols-4 gap-3"},IR={class:"flex"},PR=["src","alt"],kR={class:"flex flex-col justify-between w-full mr-2"},RR={class:"text-base font-bold"},ER={class:"flex items-center justify-end"},OR={class:"text-base font-bold"},NR={class:"mr-1"},BR={class:"grid grid-cols-1 md:grid-cols-4 gap-3 mt-3"},VR={class:"flex"},zR=["src","alt"],GR={class:"flex flex-col justify-between w-full mr-2"},FR={class:"text-base font-bold"},HR={class:"flex items-center justify-end"},WR={class:"text-base font-bold"},$R={class:"mr-1"},UR=ID({__name:"Header",props:{statistics:{}},setup(r){const e=r,t=ca(()=>{var i,o,s,l;return[{title:"تعداد کاربران",alt:"sales-number",image:MR,value:((i=e.statistics.count_sale_order)==null?void 0:i.toLocaleString("fa-IR"))||"0",unit:"Ù†Ù�ر"},{title:"کاربران جدید 7 روز گذشته",alt:"new-users-last-7-days",image:Th,value:((o=e.statistics.new_users_last_7_days)==null?void 0:o.toLocaleString("fa-IR"))||"0",unit:"Ù†Ù�ر"},{title:"کاربران Ù�عال این Ù‡Ù�ته",alt:"active-users-saturday-to-friday",image:F_,value:((s=e.statistics.active_users_saturday_to_friday)==null?void 0:s.toLocaleString("fa-IR"))||"0",unit:"Ù†Ù�ر"},{title:"کاربران Ù�عال این ماه",alt:"active-users-jalali-month",image:G_,value:((l=e.statistics.active_users_jalali_month)==null?void 0:l.toLocaleString("fa-IR"))||"0",unit:"Ù†Ù�ر"}]}),a=ca(()=>{var i,o,s;return[{title:"کاربران جدید امروز",alt:"customers",image:Th,value:e.statistics.new_customer,unit:"Ù†Ù�ر"},{title:"کاربران جدید 30 روز گذشته",alt:"new-users-last-30-days",image:Th,value:((i=e.statistics.new_users_last_30_days)==null?void 0:i.toLocaleString("fa-IR"))||"0",unit:"Ù†Ù�ر"},{title:"کاربران Ù�عال Ù‡Ù�ته گذشته",alt:"active-users-last-week",image:F_,value:((o=e.statistics.active_users_last_week)==null?void 0:o.toLocaleString("fa-IR"))||"0",unit:"Ù†Ù�ر"},{title:"کاربران Ù�عال ماه گذشته",alt:"active-users-last-month",image:G_,value:((s=e.statistics.active_users_last_month)==null?void 0:s.toLocaleString("fa-IR"))||"0",unit:"Ù†Ù�ر"}]}),n=i=>({"تعداد کاربران":"این عدد تعداد Ú©Ù„ کاربران ثبت‌نام شده در سیستم از اول تا ØØ§Ù„ا را نشان می‌دهد","کاربران جدید 7 روز گذشته":"این عدد تعداد کاربرانی است Ú©Ù‡ در 7 روز گذشته ثبت‌نام کرده‌اند","کاربران Ù�عال این Ù‡Ù�ته":"این عدد تعداد کاربرانی است Ú©Ù‡ در این Ù‡Ù�ته (از شنبه تا جمعه) ØØ¯Ø§Ù‚Ù„ یک بازدید از یک قسمت از اپ داشته‌اند","کاربران Ù�عال این ماه":"این عدد تعداد کاربرانی است Ú©Ù‡ در ماه جاری (شمسی) ØØ¯Ø§Ù‚Ù„ یک بازدید از یک قسمت از اپ دØ
|
2026-06-07 18:09:42 +03:30
|
|
|
|
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.
|
2026-06-15 11:54:19 +03:30
|
|
|
|
***************************************************************************** */var eg=function(r,e){return eg=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])},eg(r,e)};function N(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");eg(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var jR=function(){function r(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return r}(),JR=function(){function r(){this.browser=new jR,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}(),wn=new JR;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(wn.wxa=!0,wn.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?wn.worker=!0:!wn.hasGlobalWindow||"Deno"in window||typeof navigator<"u"&&typeof navigator.userAgent=="string"&&navigator.userAgent.indexOf("Node.js")>-1?(wn.node=!0,wn.svgSupported=!0):QR(navigator.userAgent,wn);function QR(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);var s=e.domSupported=typeof document<"u";if(s){var l=document.documentElement.style;e.transform3dSupported=(t.ie&&"transition"in l||t.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in l)&&!("OTransition"in l),e.transformSupported=e.transform3dSupported||t.ie&&+t.version>=9}}const Ft=wn;var hm=12,kD="sans-serif",Ka=hm+"px "+kD,tE=20,eE=100,rE="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function aE(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)-tE)/eE;e[a]=n}return e}var nE=aE(rE),qr={createCanvas:function(){return typeof document<"u"&&document.createElement("canvas")},measureText:function(){var r,e;return function(t,a){if(!r){var n=qr.createCanvas();r=n&&n.getContext("2d")}if(r)return e!==a&&(e=r.font=a||Ka),r.measureText(t);t=t||"",a=a||Ka;var i=/((?:\d+)?\.?\d*)px/.exec(a),o=i&&+i[1]||hm,s=0;if(a.indexOf("mono")>=0)s=o*t.length;else for(var l=0;l<t.length;l++){var u=nE[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}},RD=Da(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(r,e){return r["[object "+e+"]"]=!0,r},{}),ED=Da(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(r,e){return r["[object "+e+"Array]"]=!0,r},{}),Is=Object.prototype.toString,Bv=Array.prototype,iE=Bv.forEach,oE=Bv.filter,dm=Bv.slice,sE=Bv.map,H_=function(){}.constructor,Xu=H_?H_.prototype:null,pm="__proto__",lE=2311;function OD(){return lE++}function gm(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];typeof console<"u"&&console.error.apply(console,r)}function vt(r){if(r==null||typeof r!="object")return r;var e=r,t=Is.call(r);if(t==="[object Array]"){if(!Fl(r)){e=[];for(var a=0,n=r.length;a<n;a++)e[a]=vt(r[a])}}else if(ED[t]){if(!Fl(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(!RD[t]&&!Fl(r)&&!gs(r)){e={};for(var o in r)r.hasOwnProperty(o)&&o!==pm&&(e[o]=vt(r[o]))}return e}function At(r,e,t){if(!mt(e)||!mt(r))return t?vt(e):r;for(var a in e)if(e.hasOwnProperty(a)&
|
|
|
|
|
|
`),i=n.length;if(i===1)return g1(n[0],e,t,a);for(var o=new _t(0,0,0,0),s=0;s<n.length;s++){var l=g1(n[s],e,t,a);s===0?o.copy(l):o.union(l)}return o}function ms(r,e,t,a){return t==="right"?a?r+=e:r-=e:t==="center"&&(a?r+=e/2:r-=e/2),r}function Xi(r,e,t,a){return t==="middle"?a?r+=e/2:r-=e/2:t==="bottom"&&(a?r+=e:r-=e),r}function Pu(r){return Ta(r).stWideCharWidth}function jr(r,e){return typeof r=="string"?r.lastIndexOf("%")>=0?parseFloat(r)/100*e:parseFloat(r):r}function Gc(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",c="top";if(a instanceof Array)l+=jr(a[0],t.width),u+=jr(a[1],t.height),f=null,c=null;else switch(a){case"left":l-=n,u+=s,f="right",c="middle";break;case"right":l+=n+o,u+=s,c="middle";break;case"top":l+=o/2,u-=n,f="center",c="bottom";break;case"bottom":l+=o/2,u+=i+n,f="center";break;case"inside":l+=o/2,u+=s,f="center",c="middle";break;case"insideLeft":l+=n,u+=s,c="middle";break;case"insideRight":l+=o-n,u+=s,f="right",c="middle";break;case"insideTop":l+=o/2,u+=n,f="center";break;case"insideBottom":l+=o/2,u+=i-n,f="center",c="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,c="bottom";break;case"insideBottomRight":l+=o-n,u+=i-n,f="right",c="bottom";break}return r=r||{},r.x=l,r.y=u,r.align=f,r.verticalAlign=c,r}var Wh="__zr_normal__",$h=Ma.concat(["ignore"]),kO=Da(Ma,function(r,e){return r[e]=!0,r},{ignore:!1}),Po={},RO=new _t(0,0,0,0),af=[],Dm=function(){function r(e){this.id=OD(),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;i.copyTransform(t);var f=a.position!=null,c=a.autoOverflowArea,v=void 0;if((c||f)&&(v=RO,a.layoutRect?v.copy(a.layoutRect):v.copy(this.getBoundingRect()),n||v.applyTransform(this.transform)),f){this.calculateTextPosition?this.calculateTextPosition(Po,a,v):Gc(Po,a,v),i.x=Po.x,i.y=Po.y,o=Po.align,s=Po.verticalAlign;var h=a.origin;if(h&&a.rotation!=null){var d=void 0,p=void 0;h==="center"?(d=v.width*.5,p=v.height*.5):(d=jr(h[0],v.width),p=jr(h[1],v.height)),u=!0,i.originX=-i.x+d+(n?0:v.x),i.originY=-i.y+p+(n?0:v.y)}}a.rotation!=null&&(i.rotation=a.rotation);var g=a.offset;g&&(i.x+=g[0],i.y+=g[1],u||(i.originX=-g[0],i.originY=-g[1]));var y=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={});if(c){var m=y.overflowRect=y.overflowRect||new _t(0,0,0,0);i.getLocalTransform(af),Kr(af,af),_t.copy(m,v),m.applyTransform(af)}else y.overflowRect=null;var _=a.inside==null?typeof a.position=="string"&&a.position.indexOf("inside")>=0:a.inside,S=void 0,x=void 0,w=void 0;_&&this.canBeInsideText()?(S=a.insideFill,x=a.insideStroke,(S==null||S==="auto")&&(S=this.getInsideTextFill()),(x==null||x==="auto")&&(x=this.getInsideTextStroke(S),w=!0)):(S=a.outsideFill,x=a.outsideStroke,(S==null||S==="auto")&&(S=this.getOutsideFill()),(x==null||x==="auto")&&(x=this.getOutsideStroke(S),w=!0)),S=S||"#000",(S!==y.fill||x!==y.stroke||w!==y.autoStroke||o!==y.align||s!==y.verticalAlign)&&(l=!0,y.fill=S,y.stroke=x,y.autoStroke=w,y.align=o,y.verticalAlign=s,t.setDefaultTextStyle(y)),t.__dirty|=dr,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()?Dg:Cg},r.prototype.getOutsid
|
2026-06-07 18:09:42 +03:30
|
|
|
|
* 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
|
2026-06-15 11:54:19 +03:30
|
|
|
|
*/var yc={},dA={};function VO(r){delete dA[r]}function zO(r){if(!r)return!1;if(typeof r=="string")return Nc(r,1)<Tg;if(r.colorStops){for(var e=r.colorStops,t=0,a=e.length,n=0;n<a;n++)t+=Nc(e[n].color,1);return t/=a,t<Tg}return!1}var GO=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 qE,o=a.renderer||"canvas";yc[o]||(o=Rt(yc)[0]),a.useDirtyRect=a.useDirtyRect==null?!1:a.useDirtyRect;var s=new yc[o](t,i,a,e),l=a.ssr||s.ssrOnly;this.storage=i,this.painter=s;var u=!Ft.node&&!Ft.worker&&!l?new MO(s.getViewportRoot(),s.root):null,f=a.useCoarsePointer,c=f==null||f==="auto"?Ft.touchEventsSupported:!!f,v=44,h;c&&(h=st(a.pointerSize,v)),this.handler=new $E(i,s,u,s.root,h),this.animation=new SO({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=zO(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=is();this._needsRefresh&&(t=!0,this.refreshImmediately(e)),this._needsRefreshHover&&(t=!0,this.refreshHoverImmediately());var n=is();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 ht&&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,VO(this.id))},r}();function y1(r,e){var t=new GO(OD(),r,e);return dA[t.id]=t,t}function FO(r,e){yc[r]=e}var Ag;function HO(r){if(typeof Ag=="function
|
|
|
|
|
|
`);i=PA(t,a,n,i);for(var s=!1,l={},u=0,f=o.length;u<f;u++)kA(l,o[u],i),o[u]=l.textLine,s=s||l.isTruncated;r.text=o.join(`
|
|
|
|
|
|
`),r.isTruncated=s}function PA(r,e,t,a){a=a||{};var n=F({},a);t=st(t,"..."),n.maxIterations=st(a.maxIterations,2);var i=n.minChar=st(a.minChar,0),o=n.fontMeasureInfo=Ta(e),s=o.asciiCharWidth;n.placeholder=st(a.placeholder,"");for(var l=r=Math.max(0,r-1),u=0;u<i&&l>=s;u++)l-=s;var f=Ca(o,t);return f>l&&(t="",f=0),l=r-f,n.ellipsis=t,n.ellipsisWidth=f,n.contentWidth=l,n.containerWidth=r,n}function kA(r,e,t){var a=t.containerWidth,n=t.contentWidth,i=t.fontMeasureInfo;if(!a){r.textLine="",r.isTruncated=!1;return}var o=Ca(i,e);if(o<=a){r.textLine=e,r.isTruncated=!1;return}for(var s=0;;s++){if(o<=n||s>=t.maxIterations){e+=t.ellipsis;break}var l=s===0?MN(e,n,i):o>0?Math.floor(e.length*n/o):0;e=e.substr(0,l),o=Ca(i,e)}e===""&&(e=t.placeholder),r.textLine=e,r.isTruncated=!0}function MN(r,e,t){for(var a=0,n=0,i=r.length;n<i&&a<e;n++)a+=fA(t,r.charCodeAt(n));return n}function LN(r,e,t,a){var n=km(r),i=e.overflow,o=e.padding,s=o?o[1]+o[3]:0,l=o?o[0]+o[2]:0,u=e.font,f=i==="truncate",c=Pu(u),v=st(e.lineHeight,c),h=e.lineOverflow==="truncate",d=!1,p=e.width;p==null&&t!=null&&(p=t-s);var g=e.height;g==null&&a!=null&&(g=a-l);var y;p!=null&&(i==="break"||i==="breakAll")?y=n?RA(n,e.font,p,i==="breakAll",0).lines:[]:y=n?n.split(`
|
|
|
|
|
|
`):[];var m=y.length*v;if(g==null&&(g=m),m>g&&h){var _=Math.floor(g/v);d=d||y.length>_,y=y.slice(0,_),m=y.length*v}if(n&&f&&p!=null)for(var S=PA(p,u,e.ellipsis,{minChar:e.truncateMinChar,placeholder:e.placeholder}),x={},w=0;w<y.length;w++)kA(x,y[w],S),y[w]=x.textLine,d=d||x.isTruncated;for(var b=g,T=0,C=Ta(u),w=0;w<y.length;w++)T=Math.max(Ca(C,y[w]),T);p==null&&(p=T);var A=p;return b+=l,A+=s,{lines:y,height:g,outerWidth:A,outerHeight:b,lineHeight:v,calculatedLineHeight:c,contentWidth:T,contentHeight:m,width:p,isTruncated:d}}var IN=function(){function r(){}return r}(),D1=function(){function r(e){this.tokens=[],e&&(this.tokens=e)}return r}(),PN=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 kN(r,e,t,a,n){var i=new PN,o=km(r);if(!o)return i;var s=e.padding,l=s?s[1]+s[3]:0,u=s?s[0]+s[2]:0,f=e.width;f==null&&t!=null&&(f=t-l);var c=e.height;c==null&&a!=null&&(c=a-u);for(var v=e.overflow,h=(v==="break"||v==="breakAll")&&f!=null?{width:f,accumWidth:0,breakAll:v==="breakAll"}:null,d=qh.lastIndex=0,p;(p=qh.exec(o))!=null;){var g=p.index;g>d&&Kh(i,o.substring(d,g),e,h),Kh(i,p[2],e,h,p[1]),d=qh.lastIndex}d<o.length&&Kh(i,o.substring(d,o.length),e,h);var y=[],m=0,_=0,S=v==="truncate",x=e.lineOverflow==="truncate",w={};function b(kt,zt,St){kt.width=zt,kt.lineHeight=St,m+=St,_=Math.max(_,zt)}t:for(var T=0;T<i.lines.length;T++){for(var C=i.lines[T],A=0,M=0,I=0;I<C.tokens.length;I++){var L=C.tokens[I],P=L.styleName&&e.rich[L.styleName]||{},R=L.textPadding=P.padding,k=R?R[1]+R[3]:0,O=L.font=P.font||e.font;L.contentHeight=Pu(O);var E=st(P.height,L.contentHeight);if(L.innerHeight=E,R&&(E+=R[0]+R[2]),L.height=E,L.lineHeight=yr(P.lineHeight,e.lineHeight,E),L.align=P&&P.align||n,L.verticalAlign=P&&P.verticalAlign||"middle",x&&c!=null&&m+L.lineHeight>c){var B=i.lines.length;I>0?(C.tokens=C.tokens.slice(0,I),b(C,M,A),i.lines=i.lines.slice(0,T+1)):i.lines=i.lines.slice(0,T),i.isTruncated=i.isTruncated||i.lines.length<B;break t}var G=P.width,H=G==null||G==="auto";if(typeof G=="string"&&G.charAt(G.length-1)==="%")L.percentWidth=G,y.push(L),L.contentWidth=Ca(Ta(O),L.text);else{if(H){var W=P.backgroundColor,K=W&&W.image;K&&(K=DN(K),Yv(K)&&(L.width=Math.max(L.width,K.width*E/K.height)))}var at=S&&f!=null?f-M:null;at!=null&&at<L.width?!H||at<k?(L.text="",L.width=L.contentWidth=0):(AN(w,L.text,at-k,O,e.ellipsis,{minChar:e.truncateMinChar}),L.text=w.text,i.isTruncated=i.isTruncated||w.isTruncated,L.width=L.contentWidth=Ca(Ta(O),L.text)):L.contentWidth=Ca(Ta(O),L.text)}L.width+=k,M+=L.width,P&&(A=Math.max(A,L.lineHeight))}b(C,M,A)}i.outerWidth=i.width=st(f,_),i.outerHeight=i.height=st(c,m),i.contentHeight=m,i.contentWidth=_,i.outerWidth+=l,i.outerHeight+=u;for(var T=0;T<y.length;T++){var L=y[T],dt=L.percentWidth;L.width=parseInt(dt,10)/100*i.width}return i}function Kh(r,e,t,a,n){var i=e==="",o=n&&t.rich[n]||{},s=r.lines,l=o.font||t.font,u=!1,f,c;if(a){var v=o.padding,h=v?v[1]+v[3]:0;if(o.width!=null&&o.width!=="auto"){var d=jr(o.width,a.width)+h;s.length>0&&d+a.accumWidth>a.width&&(f=e.split(`
|
|
|
|
|
|
`),u=!0),a.accumWidth=d}else{var p=RA(e,l,a.width,a.breakAll,a.accumWidth);a.accumWidth=p.accumWidth+h,c=p.linesWidths,f=p.lines}}f||(f=e.split(`
|
|
|
|
|
|
`));for(var g=Ta(l),y=0;y<f.length;y++){var m=f[y],_=new IN;if(_.styleName=n,_.text=m,_.isLineHolder=!m&&!i,typeof o.width=="number"?_.width=o.width:_.width=c?c[y]:Ca(g,m),!y&&!u){var S=(s[s.length-1]||(s[0]=new D1)).tokens,x=S.length;x===1&&S[0].isLineHolder?S[0]=_:(m||!x||i)&&S.push(_)}else s.push(new D1([_]))}}function RN(r){var e=r.charCodeAt(0);return e>=32&&e<=591||e>=880&&e<=4351||e>=4608&&e<=5119||e>=7680&&e<=8303}var EN=Da(",&?/;] ".split(""),function(r,e){return r[e]=!0,r},{});function ON(r){return RN(r)?!!EN[r]:!0}function RA(r,e,t,a,n){for(var i=[],o=[],s="",l="",u=0,f=0,c=Ta(e),v=0;v<r.length;v++){var h=r.charAt(v);if(h===`
|
|
|
|
|
|
`){l&&(s+=l,f+=u),i.push(s),o.push(f),s="",l="",u=0,f=0;continue}var d=fA(c,h.charCodeAt(0)),p=a?!1:!ON(h);if(i.length?f+d>t:n+f+d>t){f?(s||l)&&(p?(s||(s=l,l="",u=0,f=u),i.push(s),o.push(f-u),l+=h,u+=d,s="",f=u):(l&&(s+=l,l="",u=0),i.push(s),o.push(f),s=h,f=d)):p?(i.push(l),o.push(u),l=h,u=d):(i.push(h),o.push(d));continue}f+=d,p?(l+=h,u+=d):(l&&(s+=l,l="",u=0),s+=h)}return l&&(s+=l),s&&(i.push(s),o.push(f)),i.length===1&&(f+=n),{accumWidth:f,lines:i,linesWidths:o}}function A1(r,e,t,a,n,i){if(r.baseX=t,r.baseY=a,r.outerWidth=r.outerHeight=null,!!e){var o=e.width*2,s=e.height*2;_t.set(M1,ms(t,o,n),Xi(a,s,i),o,s),_t.intersect(e,M1,null,L1);var l=L1.outIntersectRect;r.outerWidth=l.width,r.outerHeight=l.height,r.baseX=ms(l.x,l.width,n,!0),r.baseY=Xi(l.y,l.height,i,!0)}}var M1=new _t(0,0,0,0),L1={outIntersectRect:{},clamp:!0};function km(r){return r!=null?r+="":r=""}function NN(r){var e=km(r.text),t=r.font,a=Ca(Ta(t),e),n=Pu(t);return Ig(r,a,n,null)}function Ig(r,e,t,a){var n=new _t(ms(r.x||0,e,r.textAlign),Xi(r.y||0,t,r.textBaseline),e,t),i=a??(EA(r)?r.lineWidth:0);return i>0&&(n.x-=i/2,n.y-=i/2,n.width+=i,n.height+=i),n}function EA(r){var e=r.stroke;return e!=null&&e!=="none"&&r.lineWidth>0}var Pg="__zr_style_"+Math.round(Math.random()*10),qi={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},Zv={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};qi[Pg]=!0;var I1=["z","z2","invisible"],BN=["invisible"],VN=function(r){N(e,r);function e(t){return r.call(this,t)||this}return e.prototype._init=function(t){for(var a=Rt(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&&zN(this,t,a)||o&&!o[0]&&!o[3])return!1;if(n&&this.__clipPaths&&this.__clipPaths.length){for(var s=0;s<this.__clipPaths.length;++s)if(this.__clipPaths[s].isZeroArea())return!1}if(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 _t(0,0,0,0)),a?_t.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 _t(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:F(this.style,t),this.dirtyStyle(),this},e.prototype.dirtyStyle=function(t){t||this.markRedraw(),this.__dirty|=Dl,this._rect&&(this._rect=null)},e.prototype.dirty=function(){this.dirtyStyle()},e.prototype.styleChanged=function(){return!!(this.__dirty&Dl)},e.prototype.styleUpdated=function(){this.__dirty&=~Dl},e.prototype.createStyle=function(t){return Gv(qi,t)},e.prototype
|
2026-06-07 18:09:42 +03:30
|
|
|
|
`,`
|
|
|
|
|
|
|
|
|
|
|
|
`,`
|
|
|
|
|
|
|
|
|
|
|
|
|
2026-06-15 11:54:19 +03:30
|
|
|
|
`];function me(r,e){return e.type=r,e}function Jg(r){return r.type==="section"}function D2(r){return Jg(r)?t5:e5}function A2(r){if(Jg(r)){var e=0,t=r.blocks.length,a=t>1||t>0&&!r.noHeader;return D(r.blocks,function(n){var i=A2(n);i>=e&&(e=i+ +(a&&(!i||Jg(n)&&!n.noHeader)))}),e}return 0}function t5(r,e,t,a){var n=e.noHeader,i=r5(A2(e)),o=[],s=e.blocks||[];Xe(!s||U(s)),s=s||[];var l=r.orderMode;if(e.sortBlocks&&l){s=s.slice();var u={valueAsc:"asc",valueDesc:"desc"};if(nt(u,l)){var f=new _2(u[l],null);s.sort(function(p,g){return f.evaluate(p.sortParam,g.sortParam)})}else l==="seriesDesc"&&s.reverse()}D(s,function(p,g){var y=e.valueFormatter,m=D2(p)(y?F(F({},r),{valueFormatter:y}):r,p,g>0?i.html:0,a);m!=null&&o.push(m)});var c=r.renderMode==="richText"?o.join(i.richText):Qg(a,o.join(""),n?t:i.html);if(n)return c;var v=Yg(e.header,"ordinal",r.useUTC),h=C2(a,r.renderMode).nameStyle,d=T2(a);return r.renderMode==="richText"?M2(r,v,h)+i.richText+c:Qg(a,'<div style="'+h+";"+d+';">'+Ue(v)+"</div>"+c,t)}function e5(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=U(S)?S:[S],Y(S,function(x,w){return Yg(x,U(h)?h[w]:h,u)})};if(!(i&&o)){var c=s?"":r.markupStyleCreator.makeTooltipMarker(e.markerType,e.markerColor||V.color.secondary,n),v=i?"":Yg(l,"ordinal",u),h=e.valueType,d=o?[]:f(e.value,e.dataIndex),p=!s||!i,g=!s&&i,y=C2(a,n),m=y.nameStyle,_=y.valueStyle;return n==="richText"?(s?"":c)+(i?"":M2(r,v,m))+(o?"":i5(r,d,p,g,_)):Qg(a,(s?"":c)+(i?"":a5(v,!s,m))+(o?"":n5(d,p,g,_)),t)}}function VS(r,e,t,a,n,i){if(r){var o=D2(r),s={useUTC:n,renderMode:t,orderMode:a,markupStyleCreator:e,valueFormatter:r.valueFormatter};return o(s,r,0,i)}}function r5(r){return{html:Jz[r],richText:Qz[r]}}function Qg(r,e,t){var a='<div style="clear:both"></div>',n="margin: "+t+"px 0 0",i=T2(r);return'<div style="'+n+";"+i+';">'+e+a+"</div>"}function a5(r,e,t){var a=e?"margin-left:2px":"";return'<span style="'+t+";"+a+'">'+Ue(r)+"</span>"}function n5(r,e,t,a){var n=t?"10px":"20px",i=e?"float:right;margin-left:"+n:"";return r=U(r)?r:[r],'<span style="'+i+";"+a+'">'+Y(r,function(o){return Ue(o)}).join(" ")+"</span>"}function M2(r,e,t){return r.markupStyleCreator.wrapRichTextStyle(e,t)}function i5(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(U(e)?e.join(" "):e,i)}function L2(r,e){var t=r.getData().getItemVisual(e,"style"),a=t[r.visualDrawType];return uo(a)}function I2(r,e){var t=r.get("padding");return t??(e==="richText"?[8,10]:10)}var Sd=function(){function r(){this.richTextStyles={},this._nextStyleNameId=SA()}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=HV({color:t,type:e,renderMode:a,markerId:n});return Q(i)?i:(this.richTextStyles[n]=i.style,i.content)},r.prototype.wrapRichTextStyle=function(e,t){var a={};U(t)?D(t,function(i){return F(a,i)}):F(a,t);var n=this._generateStyleName();return this.richTextStyles[n]=a,"{"+n+"|"+e+"}"},r}();function P2(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=U(s),u=L2(e,t),f,c,v,h;if(o>1||l&&!o){var d=o5(s,e,t,i,u);f=d.inlineValues,c=d.inlineValueTypes,v=d.blocks,h=d.inlineValues[0]}else if(o){var p=n.getDimensionInfo(i[0]);h=f=Ss(n,t,i[0]),c=p.type}else h=f=l?s[0]:s;var g=Mm(e),y=g&&e.name||"",m=n.getName(t),_=a?y:m;return me("section",{header:y,noHeader:a||!g,sortParam:h,blocks:[me("nameValue",{markerType:"item",markerColor:u,name:_,noName:!Er(_),value:f,valueType:c,dataIndex:t})].concat(v||[])})}function o5(r,e,t,a,n){var i=e.getData(),o=Da(r,function(c,v,h){var d=i.getDimensionInfo(h);return c=c||d&&d.tooltip!==!1&&d.displayName!=null},!1),s=[],l=[],u=[];a.length?D(a,function(c){f(Ss(i,t,c),c)}):D(r,f);function f(c,v){var h=i.getDimensionInfo(v);!h||h.otherDims.tooltip===!1||(o?u.push(me("nameValue",{markerType:"
|
|
|
|
|
|
`:"";function a(n){var i=n.children,o=n.tag,s=n.attrs,l=n.text;return IF(o,s)+(o!=="style"?Ue(l):l||"")+(i?""+t+Y(i,function(u){return a(u)}).join(t)+t:"")+PF(o)}return a(r)}function kF(r,e,t){t=t||{};var a=t.newline?`
|
|
|
|
|
|
`:"",n=" {"+a,i=a+"}",o=Y(Rt(r),function(l){return l+n+Y(Rt(r[l]),function(u){return u+":"+r[l][u]+";"}).join(a)+i}).join(a),s=Y(Rt(e),function(l){return"@keyframes "+l+n+Y(Rt(e[l]),function(u){return u+n+Y(Rt(e[l][u]),function(f){var c=e[l][u][f];return f==="d"&&(c='path("'+c+'")'),f+":"+c+";"}).join(a)+i}).join(a)+i}).join(a);return!o&&!s?"":["<![CDATA[",o,s,"]]>"].join(a)}function my(r){return{zrId:r,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function Nx(r,e,t,a){return Ie("svg","root",{width:r,height:e,xmlns:tI,"xmlns:xlink":eI,version:"1.1",baseProfile:"full",viewBox:a?"0 0 "+r+" "+e:!1},t)}var RF=0;function aI(){return RF++}var Bx={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"},Li="transform-origin";function EF(r,e,t){var a=F({},r.shape);F(a,e),r.buildPath(t,a);var n=new QL;return n.reset(iA(r)),t.rebuildPath(n,1),n.generateStr(),n.getStr()}function OF(r,e){var t=e.originX,a=e.originY;(t||a)&&(r[Li]=t+"px "+a+"px")}var NF={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function nI(r,e){var t=e.zrId+"-ani-"+e.cssAnimIdx++;return e.cssAnims[t]=r,t}function BF(r,e,t){var a=r.shape.paths,n={},i,o;if(D(a,function(l){var u=my(t.zrId);u.animation=!0,dh(l,{},u,!0);var f=u.cssAnims,c=u.cssNodes,v=Rt(f),h=v.length;if(h){o=v[h-1];var d=f[o];for(var p in d){var g=d[p];n[p]=n[p]||{d:""},n[p].d+=g.d||""}for(var y in c){var m=c[y].animation;m.indexOf(o)>=0&&(i=m)}}}),!!i){e.d=!1;var s=nI(n,t);return i.replace(o,s)}}function Vx(r){return Q(r)?Bx[r]?"cubic-bezier("+Bx[r]+")":bm(r)?r:"":""}function dh(r,e,t,a){var n=r.animators,i=n.length,o=[];if(r instanceof eh){var s=BF(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],c=[f.getMaxTime()/1e3+"s"],v=Vx(f.getClip().easing),h=f.getDelay();v?c.push(v):c.push("linear"),h&&c.push(h/1e3+"s"),f.getLoop()&&c.push("infinite");var d=c.join(" ");l[d]=l[d]||[d,[]],l[d][1].push(f)}function p(m){var _=m[1],S=_.length,x={},w={},b={},T="animation-timing-function";function C(St,ut,$){for(var z=St.getTracks(),j=St.getMaxTime(),ot=0;ot<z.length;ot++){var X=z[ot];if(X.needsAnimate()){var lt=X.keyframes,ct=X.propName;if($&&(ct=$(ct)),ct)for(var Dt=0;Dt<lt.length;Dt++){var et=lt[Dt],rt=Math.round(et.time/j*100)+"%",q=Vx(et.easing),bt=et.rawValue;(Q(bt)||Et(bt))&&(ut[rt]=ut[rt]||{},ut[rt][ct]=et.rawValue,q&&(ut[rt][T]=q))}}}}for(var A=0;A<S;A++){var M=_[A],I=M.targetName;I?I==="shape"&&C(M,w):!a&&C(M,x)}for(var L in x){var P={};zc(P,r),F(P,x[L]);var R=oA(P),k=x[L][T];b[L]=R?{transform:R}:{},OF(b[L],P),k&&(b[L][T]=k)}var O,E=!0;for(var L in w){b[L]=b[L]||{};var B=!O,k=w[L][T];B&&(O=new La);var G=O.len();O.reset(),b[L].d=EF(r,w[L],O);var H=O.len();if(!B&&G!==H){E=!1;break}k&&(b[L][T]=k)}if(!E)for(var L in b)delete b[L].d;if(!a)for(var A=0;A<S;A++){var M=_[A],I=M.targetName;I==="style"&&C(M,b,function(z){return NF[z]})}for(var W=Rt(b),K=!0,at,A=1;A<W.length;A++){var dt=W[A-1],kt=W[A];if(b[dt][Li]!==b[kt][Li]){K=!1;break}at=b[dt][Li]}if(K&&at){for(var L in b)b[L][Li]&&delete b[L][Li];e[Li]=at}if($t(W,function(St){return Rt(b[St]).length>0}).length){var zt=nI(b,t);return zt+" "+m[0]+" both"}}for(var g in l){var s=p(l[g]);s&&o.push(s)}if(o.length){var y=t.zrId+"-cls-"+aI();t.cssNodes["."+y]={animation:o.join(",")},e.class=y}}function VF(r,e,t){if(!r.ignore)if(r.isSilent()){var a={"pointer-events":"none"};zx(a,e,t,!0)}else{var n=r.states.emphasis&&r.sta
|
|
|
|
|
|
`+g.message)}var n=new ht;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,c=void 0,v=void 0;if(i!=null?(u=0,c=i):s&&(u=s.x,c=s.width),o!=null?(f=0,v=o):s&&(f=s.y,v=s.height),u==null||f==null){var h=a.getBoundingRect();u==null&&(u=h.x,c=h.width),f==null&&(f=h.y,v=h.height)}l=this._boundingRect=new _t(u,f,c,v)}if(s){var d=rP(s,l);a.scaleX=a.scaleY=d.scale,a.x=d.x,a.y=d.y}n.setClipPath(new Lt({shape:l.plain()}));var p=[];return D(t.named,function(g){e9.get(g.svgNodeTagLower)!=null&&(p.push(g),a9(g.el))}),{root:n,boundingRect:l,named:p}},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 a9(r){r.silent=!1,r.isGroup&&r.traverse(function(e){e.silent=!1})}function n9(r){var e=[],t=it();return D(r,function(a){if(a.namedFrom==null){var n=new HG(a.name,a.el);e.push(n),t.set(a.name,n)}}),{regions:e,regionsMap:t}}var Ly=[126,25],Ww="�海诸岛",Ii=[[[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 Mi=0;Mi<Ii.length;Mi++)for(var Wo=0;Wo<Ii[Mi].length;Wo++)Ii[Mi][Wo][0]/=10.5,Ii[Mi][Wo][1]/=-10.5/.75,Ii[Mi][Wo][0]+=Ly[0],Ii[Mi][Wo][1]+=Ly[1];function i9(r,e){if(r==="china"){for(var t=0;t<e.length;t++)if(e[t].name===Ww)return;e.push(new BL(Ww,Y(Ii,function(a){return{type:"polygon",exterior:a}}),Ly))}}var o9={�海诸岛:[32,80],广东:[0,-10],香港:[10,5],澳门:[-10,10],天津:[5,5]};function s9(r,e){if(r==="china"){var t=o9[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 l9=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function u9(r,e){r==="china"&&e.name==="�湾"&&e.geometries.push({type:"polygon",exterior:l9[0]})}var f9="name",c9=function(){function r(e,t,a){this.type="geoJSON",this._parsedMap=it(),this._mapName=e,this._specialAreas=a,this._geoJSON=h9(t)}return r.prototype.load=function(e,t){t=t||f9;var a=this._parsedMap.get(t);if(!a){var n=this._parseToRegions(t);a=this._parsedMap.set(t,{regions:n,boundingRect:v9(n)})}var i=it(),o=[];return D(a.regions,function(s){var l=s.name;e&&nt(e,l)&&(s=s.cloneShallow(l=e[l])),o.push(s),i.set(l,s)}),{regions:o,boundingRect:a.boundingRect||new _t(0,0,0,0),regionsMap:i}},r.prototype._parseToRegions=function(e){var t=this._mapName,a=this._geoJSON,n;try{n=a?$G(a,e):[]}catch(i){throw new Error(`Invalid geoJson format
|
|
|
|
|
|
`+i.message)}return i9(t,n),D(n,function(i){var o=i.name;s9(t,i),u9(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 v9(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 h9(r){return Q(r)?typeof JSON<"u"&&JSON.parse?JSON.parse(r):new Function("return ("+r+");")():r}var dl=it();const an={registerMap:function(r,e,t){if(e.svg){var a=new r9(r,e.svg);dl.set(r,a)}else{var n=e.geoJson||e.geoJSON;n&&!e.features?t=e.specialAreas:n=e;var a=new c9(r,n,t);dl.set(r,a)}},getGeoResource:function(r){return dl.get(r)},getMapForUser:function(r){var e=dl.get(r);return e&&e.type==="geoJSON"&&e.getMapForUser()},load:function(r,e,t){var a=dl.get(r);if(a)return a.load(e,t)}};var F0=["rect","circle","line","ellipse","polygon","polyline","path"],d9=it(F0),p9=it(F0.concat(["g"])),g9=it(F0.concat(["g"])),aP=It();function Ff(r){var e=r.getItemStyle(),t=r.get("areaColor");return t!=null&&(e.fill=t),e}function $w(r){var e=r.style;e&&(e.stroke=e.stroke||e.fill,e.fill=null)}var y9=function(){function r(e){var t=this.group=new ht,a=this._transformGroup=new ht;t.add(a),this.uid=Vs("ec_map_draw"),this._controller=new To(e.getZr()),this._controllerHost={target:a},a.add(this._regionsGroup=new ht),a.add(this._svgGroup=new ht)}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(_){!s&&_.getHostGeoModel()===e&&(s=_.getData())});var l=e.coordinateSystem,u=this._regionsGroup,f=this._transformGroup,c=l.getTransformInfo(),v=c.raw,h=c.roam,d=!u.childAt(0)||i,p=e.getShallow("clip",!0),g;p?(g=l.getViewRect().clone(),this.group.setClipPath(new Lt({shape:g.clone()}))):this.group.removeClipPath(),d?(f.x=h.x,f.y=h.y,f.scaleX=h.scaleX,f.scaleY=h.scaleY,f.dirty()):Bt(f,h,e);var y=s&&s.getVisual("visualMeta")&&s.getVisual("visualMeta").length>0,m={api:a,geo:l,mapOrGeoModel:e,data:s,isVisualEncodedByVisualMap:y,isGeo:o,transformInfoRaw:v};l.resourceType==="geoJSON"?this._buildGeoJSON(m):l.resourceType==="geoSVG"&&this._buildSVG(m),this._updateController(e,g,t,a),this._updateMapSelectHandler(e,u,a,n)},r.prototype._buildGeoJSON=function(e){var t=this._regionsGroupByName=it(),a=it(),n=this._regionsGroup,i=e.transformInfoRaw,o=e.mapOrGeoModel,s=e.data,l=e.geo.projection,u=l&&l.stream;function f(h,d){return d&&(h=d(h)),h&&[h[0]*i.scaleX+i.x,h[1]*i.scaleY+i.y]}function c(h){for(var d=[],p=!u&&l&&l.project,g=0;g<h.length;++g){var y=f(h[g],p);y&&d.push(y)}return d}function v(h){return{shape:{points:c(h)}}}n.removeAll(),D(e.geo.regions,function(h){var d=h.name,p=t.get(d),g=a.get(d)||{},y=g.dataIdx,m=g.regionModel;if(!p){p=t.set(d,new ht),n.add(p),y=s?s.indexOfName(d):null,m=e.isGeo?o.getRegionModel(d):s?s.getItemModel(y):null;var _=m.get("silent",!0);_!=null&&(p.silent=_),a.set(d,{dataIdx:y,regionModel:m})}var S=[],x=[];D(h.geometries,function(T){if(T.type==="polygon"){var C=[T.exterior].concat(T.interiors||[]);u&&(C=Kw(C,u)),D(C,function(M){S.push(new ar(v(M)))})}else{var A=T.points;u&&(A=Kw(A,u,!0)),D(A,function(M){x.push(new qe(v(M)))})}});var w=f(h.getCenter(),l&&l.project);function b(T,C){if(T.length){var A=new eh({culling:!0,segmentIgnoreThreshold:1,shape:{paths:T}});p.add(A),Uw(e,A,y,m),Yw(e,A,d,m,o,y,w),C&&($w(A),D(A.states,$w))}}b(S),b(x,!0)}),t.each(function(h,d){var p=a.get(d),g=p.dataIdx,y=p.regionModel;Zw(e,h,d,y,o,g),Xw(e,h,d,y,o),qw(e,h,d,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=it(),i=!1;D(this._svgGraphicRecord.named,function(o){var s=o.name,l=e.mapOrGeoModel,u=e.data,f=o.svgNodeTagLower,c=o.el,v=u?u.indexOfName(s):null,h=l.getRegionModel(s);d9.get(f)!=null&&c instanceof Br&&Uw(e,
|
2026-06-07 18:09:42 +03:30
|
|
|
|
`))}),e.join(`
|
|
|
|
|
|
|
|
|
|
|
|
`+bh+`
|
|
|
|
|
|
|
2026-06-15 11:54:19 +03:30
|
|
|
|
`)}function Gq(r){return Y(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+Ls:"")+n.join(Ls))}),a.join(`
|
2026-06-07 18:09:42 +03:30
|
|
|
|
`)}).join(`
|
|
|
|
|
|
|
|
|
|
|
|
`+bh+`
|
|
|
|
|
|
|
2026-06-15 11:54:19 +03:30
|
|
|
|
`)}function Fq(r){var e=Vq(r);return{value:$t([zq(e.seriesGroupByCategoryAxis),Gq(e.other)],function(t){return!!t.replace(/[\n\t\s]/g,"")}).join(`
|
2026-06-07 18:09:42 +03:30
|
|
|
|
|
|
|
|
|
|
`+bh+`
|
|
|
|
|
|
|
2026-06-15 11:54:19 +03:30
|
|
|
|
`),meta:e.meta}}function Mv(r){return r.replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function Hq(r){var e=r.slice(0,r.indexOf(`
|
|
|
|
|
|
`));if(e.indexOf(Ls)>=0)return!0}var jy=new RegExp("["+Ls+"]+","g");function Wq(r){for(var e=r.split(/\n+/g),t=Mv(e.shift()).split(jy),a=[],n=Y(t,function(l){return{name:l,data:[]}}),i=0;i<e.length;i++){var o=Mv(e[i]).split(jy);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 $q(r){for(var e=r.split(/\n+/g),t=Mv(e.shift()),a=[],n=0;n<e.length;n++){var i=Mv(e[n]);if(i){var o=i.split(jy),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 Uq(r,e){var t=r.split(new RegExp(`
|
2026-06-07 18:09:42 +03:30
|
|
|
|
*`+bh+`
|
2026-06-15 11:54:19 +03:30
|
|
|
|
*`,"g")),a={series:[]};return D(t,function(n,i){if(Hq(n)){var o=Wq(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=$q(n);a.series.push(o)}}),a}var Yq=function(r){N(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")||V.color.neutral00;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 c=i.get("optionToContent"),v=i.get("contentToOption"),h=Fq(t);if(ft(c)){var d=c(a.getOption());Q(d)?u.innerHTML=d:gs(d)&&u.appendChild(d)}else{f.readOnly=i.get("readOnly");var p=f.style;p.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",p.color=i.get("textColor"),p.borderColor=i.get("textareaBorderColor"),p.backgroundColor=i.get("textareaColor"),f.value=h.value,u.appendChild(f)}var g=h.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 x=this;function w(){n.removeChild(o),x._dom=null}ug(_,"click",w),ug(S,"click",function(){if(v==null&&c!=null||v!=null&&c==null){w();return}var b;try{ft(v)?b=v(u,a.getOption()):b=Uq(f.value,g)}catch(T){throw w(),new Error("Data view format error "+T)}b&&a.dispatchAction({type:"changeDataView",newOption:b}),w()}),_.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:V.color.background,textColor:V.color.primary,textareaColor:V.color.background,textareaBorderColor:V.color.border,buttonColor:V.color.accent50,buttonTextColor:V.color.neutral00};return a},e}(Pr);function Zq(r,e){return Y(r,function(t,a){var n=e&&e[a];if(mt(n)&&!U(n)){var i=mt(t)&&!U(t);i||(t={value:t});var o=n.name!=null&&t.name==null;return t=yt(t,n),o&&delete t.name,t}else return t})}ka({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(F({type:"scatter"},a));else{var i=n.get("data");t.push({name:a.name,data:Zq(a.data,i)})}}),e.mergeOption(yt({series:t},r.newOption))});const Xq=Yq;var Fk=D,Hk=It();function qq(r,e){var t=A_(r);Fk(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 Kq(r){var e=A_(r),t=e[e.length-1];e.length>1&&e.pop();var a={};return Fk(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 jq(r){Hk(r).snapshots=null}function Jq(r){return A_(r).length}function A_(r){var e=Hk(r);return e.snap
|
2026-06-07 18:09:42 +03:30
|
|
|
|
|
2026-06-15 11:54:19 +03:30
|
|
|
|
`:"<br/>",y=c.join(g);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(t,u)?this._updatePosition(s,h,o[0],o[1],this._tooltipContent,u):this._showTooltipContent(s,y,u,Math.random()+"",o[0],o[1],h,null,v)})},e.prototype._showSeriesItemTooltip=function(t,a,n){var i=this._ecModel,o=xt(a),s=o.seriesIndex,l=i.getSeriesByIndex(s),u=o.dataModel||l,f=o.dataIndex,c=o.dataType,v=u.getData(c),h=this._renderMode,d=t.positionDefault,p=Sl([v.getItemModel(f),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),g=p.get("trigger");if(!(g!=null&&g!=="item")){var y=u.getDataParams(f,c),m=new Sd;y.marker=m.makeTooltipMarker("item",uo(y.color),h);var _=kS(u.formatTooltip(f,!1,c)),S=p.get("order"),x=p.get("valueFormatter"),w=_.frag,b=w?VS(x?F({valueFormatter:x},w):w,m,h,S,i.get("useUTC"),p.get("textStyle")):_.text,T="item_"+u.name+"_"+f;this._showOrMove(p,function(){this._showTooltipContent(p,b,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=xt(a),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(Q(l)){var f=l;l={content:f,formatter:f},u=!0}u&&i&&l.content&&(l=vt(l),l.content=Ue(l.content));var c=[l],v=this._ecModel.getComponent(o.componentMainType,o.componentIndex);v&&c.push(v),c.push({formatter:l.content});var h=t.positionDefault,d=Sl(c,this._tooltipModel,h?{position:h}:null),p=d.get("content"),g=Math.random()+"",y=new Sd;this._showOrMove(d,function(){var m=vt(d.get("formatterParams")||{});this._showTooltipContent(d,p,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 c=this._tooltipContent;c.setEnterable(t.get("enterable"));var v=t.get("formatter");l=l||t.get("position");var h=a,d=this._getNearestPoint([o,s],n,t.get("trigger"),t.get("borderColor"),t.get("defaultBorderColor",!0)),p=d.color;if(v)if(Q(v)){var g=t.ecModel.get("useUTC"),y=U(n)?n[0]:n,m=y&&y.axisType&&y.axisType.indexOf("time")>=0;h=v,m&&(h=ih(y.axisValue,h,g)),h=HM(h,n,!0)}else if(ft(v)){var _=tt(function(S,x){S===this._ticket&&(c.setContent(x,f,t,p,l),this._updatePosition(t,l,o,s,c,n,u))},this);this._ticket=i,h=v(n,i,_)}else h=v;c.setContent(h,f,t,p,l),c.show(t,p),this._updatePosition(t,l,o,s,c,n,u)}},e.prototype._getNearestPoint=function(t,a,n,i,o){if(n==="axis"||U(a))return{color:i||o};if(!U(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 c=o.getSize(),v=t.get("align"),h=t.get("verticalAlign"),d=l&&l.getBoundingRect().clone();if(l&&d.applyTransform(l.transform),ft(a)&&(a=a([n,i],s,o.el,d,{viewSize:[u,f],contentSize:c.slice()})),U(a))n=J(a[0],u),i=J(a[1],f);else if(mt(a)){var p=a;p.width=c[0],p.height=c[1];var g=Qt(p,{width:u,height:f});n=g.x,i=g.y,v=null,h=null}else if(Q(a)&&l){var y=PK(a,d,c,t.get("borderWidth"));n=y[0],i=y[1]}else{var y=LK(n,i,o,u,f,v?null:20,h?null:20);n=y[0],i=y[1]}if(v&&(n-=xC(v)?c[0]/2:v==="right"?c[0]:0),h&&(i-=xC(h)?c[1]/2:h==="bottom"?c[1]:0),Wk(t)){var y=IK(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]||{},c=f.dataByAxis||[];o=o&&u.length===c.length,o&&D(u,function(v,h){var d=c[h]||{},p=v.seriesDataIndices||[],g=d.seriesDataIndices||[];o=o&&v.value===d.value&&v.axisType===d.axisType&&v.axisId===d.axisId&&p.length===g.length,o&&D(p,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:this.ui
|
|
|
|
|
|
`)){var m=new lc;m.newline=!0,u.add(m);return}var _=n.getSeriesByName(y)[0];if(!f.get(y))if(_){var S=_.getData(),x=S.getVisual("legendLineStyle")||{},w=S.getVisual("legendIcon"),b=S.getVisual("style"),T=this._createItem(_,y,p,d,a,t,x,b,w,c,i);T.on("click",Ko(GC,y,null,i,h)).on("mouseover",Ko(im,_.name,null,i,h)).on("mouseout",Ko(om,_.name,null,i,h)),n.ssr&&T.eachChild(function(C){var A=xt(C);A.seriesIndex=_.seriesIndex,A.dataIndex=p,A.ssrType="legend"}),v&&T.eachChild(function(C){g.packEventData(C,a,_,p,y)}),f.set(y,!0)}else n.eachRawSeries(function(C){var A=this;if(!f.get(y)&&C.legendVisualProvider){var M=C.legendVisualProvider;if(!M.containName(y))return;var I=M.indexOfName(y),L=M.getItemVisual(I,"style"),P=M.getItemVisual(I,"legendIcon"),R=ur(L.fill);R&&R[3]===0&&(R[3]=.2,L=F(F({},L),{fill:ba(R,"rgba")}));var k=this._createItem(C,y,p,d,a,t,{},L,P,c,i);k.on("click",Ko(GC,null,y,i,h)).on("mouseover",Ko(im,null,y,i,h)).on("mouseout",Ko(om,null,y,i,h)),n.ssr&&k.eachChild(function(O){var E=xt(O);E.seriesIndex=C.seriesIndex,E.dataIndex=p,E.ssrType="legend"}),v&&k.eachChild(function(O){A.packEventData(O,a,C,p,y)}),f.set(y,!0)}},this)},this),o&&this._createSelector(o,a,i,s,l)},e.prototype.packEventData=function(t,a,n,i,o){var s={componentType:"legend",componentIndex:a.componentIndex,dataIndex:i,value:o,seriesIndex:n.seriesIndex};xt(t).eventData=s},e.prototype._createSelector=function(t,a,n,i,o){var s=this.getSelectorGroup();nm(t,function(u){var f=u.type,c=new Nt({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){n.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect",legendId:a.id})}});s.add(c);var v=a.getModel("selectorLabel"),h=a.getModel(["emphasis","selectorLabel"]);Pe(c,{normal:v,emphasis:h},{defaultText:u.title}),ji(c)})},e.prototype._createItem=function(t,a,n,i,o,s,l,u,f,c,v){var h=t.visualDrawType,d=o.get("itemWidth"),p=o.get("itemHeight"),g=o.isSelected(a),y=i.get("symbolRotate"),m=i.get("symbolKeepAspect"),_=i.get("icon");f=_||f||"roundRect";var S=Xj(f,i,l,u,h,g,v),x=new lc,w=i.getModel("textStyle");if(ft(t.getLegendIcon)&&(!_||_==="inherit"))x.add(t.getLegendIcon({itemWidth:d,itemHeight:p,icon:f,iconRotate:y,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:m}));else{var b=_==="inherit"&&t.getData().getVisual("symbol")?y==="inherit"?t.getData().getVisual("symbolRotate"):y:0;x.add(qj({itemWidth:d,itemHeight:p,icon:f,iconRotate:b,itemStyle:S.itemStyle,lineStyle:S.lineStyle,symbolKeepAspect:m}))}var T=s==="left"?d+5:-5,C=s,A=o.get("formatter"),M=a;Q(A)&&A?M=A.replace("{name}",a??""):ft(A)&&(M=A(a));var I=g?w.getTextColor():i.get("inactiveColor");x.add(new Nt({style:Xt(w,{text:M,x:T,y:p/2,fill:I,align:C,verticalAlign:"middle"},{inheritColor:I})}));var L=new Lt({shape:x.getBoundingRect(),style:{fill:"transparent"}}),P=i.getModel("tooltip");return P.get("show")&&sn({el:L,componentModel:o,itemName:a,itemTooltipOption:P.option}),x.add(L),x.eachChild(function(R){R.silent=!0}),L.silent=!c,this.getContentGroup().add(x),ji(x),x.__legendDataIndex=n,x},e.prototype.layoutInner=function(t,a,n,i,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();Qi(t.get("orient"),l,t.get("itemGap"),n.width,n.height);var f=l.getBoundingRect(),c=[-f.x,-f.y];if(u.markRedraw(),l.markRedraw(),o){Qi("horizontal",u,t.get("selectorItemGap",!0));var v=u.getBoundingRect(),h=[-v.x,-v.y],d=t.get("selectorButtonGap",!0),p=t.getOrient().index,g=p===0?"width":"height",y=p===0?"height":"width",m=p===0?"y":"x";s==="end"?h[p]+=f[g]+d:c[p]+=v[g]+d,h[1-p]+=f[y]/2-v[y]/2,u.x=h[0],u.y=h[1],l.x=c[0],l.y=c[1];var _={x:0,y:0};return _[g]=f[g]+d+v[g],_[y]=Math.max(f[y],v[y]),_[m]=Math.min(0,v[m]+h[1-p]),_}else return l.x=c[0],l.y=c[1],this.group.getBoundingRect()},e.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},e.type="legend.plain",e}(oe);function Xj(r,e,t,a,n,i,o){function s(g,y){g.lineWidth==="auto"&&(g.lineWidth=y.lineWidth>0?2:0),nm(g,function(m,_){g[_]==="inherit"&&(g[_]=y[_])})}var l=e.getModel("itemStyle"),u=l.getItemStyle(),f=r.lastIndexOf("empty",0)===0?"fill":"s
|
2026-06-17 14:02:02 +03:30
|
|
|
|
`||n==="")){var i=r.isSelected(n);nt(t,n)?t[n]=t[n]&&i:t[n]=i}}),t}function jj(r){r.registerAction("legendToggleSelect","legendselectchanged",Tt(wl,"toggleSelected")),r.registerAction("legendAllSelect","legendselectall",Tt(wl,"allSelect")),r.registerAction("legendInverseSelect","legendinverseselect",Tt(wl,"inverseSelect")),r.registerAction("legendSelect","legendselected",Tt(wl,"select")),r.registerAction("legendUnSelect","legendunselected",Tt(wl,"unSelect"))}function eR(r){r.registerComponentModel(am),r.registerComponentView(tR),r.registerProcessor(r.PRIORITY.PROCESSOR.SERIES_FILTER,Kj),r.registerSubTypeDefaulter("legend",function(){return"plain"}),jj(r)}var Jj=function(r){N(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=mo(t);r.prototype.init.call(this,t,a,n),HC(this,t,i)},e.prototype.mergeOption=function(t,a){r.prototype.mergeOption.call(this,t,a),HC(this,this.option,t)},e.type="legend.scroll",e.defaultOption=ri(am.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:V.color.accent50,pageIconInactiveColor:V.color.accent10,pageIconSize:15,pageTextStyle:{color:V.color.tertiary},animationDurationUpdate:800}),e}(am);function HC(r,e,t){var a=r.getOrient(),n=[1,1];n[a.index]=0,Ia(e,t,{type:"box",ignoreSize:!!n})}const Qj=Jj;var WC=ht,Yp=["width","height"],Zp=["x","y"],tJ=function(r){N(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 WC),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new WC)},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,c=a.get("pageIconSize",!0),v=U(c)?c:[c,c];d("pagePrev",0);var h=a.getModel("pageTextStyle");f.add(new Nt({name:"pageText",style:{text:"xx/xx",fill:h.getTextColor(),font:h.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),d("pageNext",1);function d(p,g){var y=p+"DataIndex",m=Eu(a.get("pageIcons",!0)[a.getOrient().name][g],{onclick:tt(u._pageGo,u,y,a,i)},{x:-v[0]/2,y:-v[1]/2,width:v[0],height:v[1]});m.name=p,f.add(m)}},e.prototype.layoutInner=function(t,a,n,i,o,s){var l=this.getSelectorGroup(),u=t.getOrient().index,f=Yp[u],c=Zp[u],v=Yp[1-u],h=Zp[1-u];o&&Qi("horizontal",l,t.get("selectorItemGap",!0));var d=t.get("selectorButtonGap",!0),p=l.getBoundingRect(),g=[-p.x,-p.y],y=vt(n);o&&(y[f]=n[f]-p[f]-d);var m=this._layoutContentAndController(t,i,y,u,f,v,h,c);if(o){if(s==="end")g[u]+=m[f]+d;else{var _=p[f]+d;g[u]-=_,m[c]-=_}m[f]+=p[f]+d,g[1-u]+=m[h]+m[v]/2-p[v]/2,m[v]=Math.max(m[v],p[v]),m[h]=Math.min(m[h],p[h]+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(),c=this._containerGroup,v=this._controllerGroup;Qi(t.get("orient"),f,t.get("itemGap"),i?n.width:null,i?null:n.height),Qi("horizontal",v,t.get("pageButtonItemGap",!0));var h=f.getBoundingRect(),d=v.getBoundingRect(),p=this._showController=h[o]>n[o],g=[-h.x,-h.y];a||(g[i]=f[u]);var y=[0,0],m=[-d.x,-d.y],_=st(t.get("pageButtonGap",!0),t.get("itemGap",!0));if(p){var S=t.get("pageButtonPosition",!0);S==="end"?m[i]+=n[o]-d[o]:y[i]+=d[o]+_}m[1-i]+=h[s]/2-d[s]/2,f.setPosition(g),c.setPosition(y),v.setPosition(m);var x={x:0,y:0};if(x[o]=p?n[o]:h[o],x[s]=Math.max(h[s],d[s]),x[l]=Math.min(0,d[l]+m[1-i]),c.__rectSize=n[o],p){var w={x:0,y:0};w[o]=Math.max(n[o]-d[o]-_,0),w[s]=x[s],c.setClipPath(new Lt({shape:w
|
2026-06-15 11:54:19 +03:30
|
|
|
|
<div style="font-weight: bold; margin-bottom: 4px;">${Dt[0].name}</div>`;return Dt.forEach(rt=>{et+=`<div style="color: ${rt.color}; margin-top: 4px;">
|
2026-06-07 18:09:42 +03:30
|
|
|
|
${rt.seriesName}: <span style="color: #fff; font-weight: bold;">${rt.value.toLocaleString("fa-IR")}</span>
|
2026-06-16 18:24:48 +03:30
|
|
|
|
</div>`}),et+="</div>",et}},legend:{data:["همه شرکت کنندگان","واجدین شرایط"],top:10,right:10,textStyle:{color:"#6B7280",fontSize:12,fontFamily:"iran-sans"}},grid:{left:"5%",right:"5%",bottom:"10%",top:"15%",containLabel:!0},xAxis:{type:"category",data:$,boundaryGap:!1,axisLine:{lineStyle:{color:"#E5E7EB",width:1}},axisTick:{show:!1},axisLabel:{color:"#6B7280",fontSize:11,fontFamily:"iran-sans",rotate:n.value==="daily"||n.value==="weekly"||n.value==="monthly"?45:0,margin:12},splitLine:{show:!1}},yAxis:{type:"value",axisLine:{show:!1},axisTick:{show:!1},axisLabel:{color:"#6B7280",fontSize:11,fontFamily:"iran-sans",formatter:Dt=>Math.round(Dt).toLocaleString("fa-IR")},minInterval:1,scale:!1,splitLine:{lineStyle:{color:"#F3F4F6",type:"dashed",width:1}}},series:[{name:"همه شرکت کنندگان",type:"line",smooth:!0,symbol:"circle",symbolSize:6,showSymbol:!1,data:z,areaStyle:{color:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:"rgba(239, 68, 68, 0.4)"},{offset:1,color:"rgba(239, 68, 68, 0.05)"}]}},lineStyle:{width:3,color:"#EF4444"},itemStyle:{color:"#EF4444",borderColor:"#fff",borderWidth:2}},{name:"واجدین شرایط",type:"line",smooth:!0,symbol:"circle",symbolSize:6,showSymbol:!1,data:j,areaStyle:{color:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:"rgba(34, 197, 94, 0.4)"},{offset:1,color:"rgba(34, 197, 94, 0.05)"}]}},lineStyle:{width:3,color:"#22C55E"},itemStyle:{color:"#22C55E",borderColor:"#fff",borderWidth:2}}]};return lt.setOption(ct,!0),lt},B=async()=>{try{const $=await ZR(10);p.value.count_sale_order=$.usersStats.total,p.value.new_customer=$.usersStats.today,p.value.count_order=$.activeUsersSummary.active_users_week,p.value.active_users_week=$.activeUsersSummary.active_users_week,p.value.active_users_last_week=$.activeUsersSummary.active_users_last_week,p.value.active_users_last_month=$.activeUsersSummary.active_users_last_month,p.value.total_sale=String($.activeUsersSummary.active_users_month),p.value.active_users_saturday_to_friday=$.activeUsersSummary.active_users_week,p.value.active_users_jalali_month=$.activeUsersSummary.active_users_month,A.value=$.latestUsers||[],C.value=$.latestLotteryWinners||[],p.value.total_story_views=$.storyViewsSummary.total_story_views,p.value.unique_story_viewers=$.storyViewsSummary.unique_story_viewers,p.value.latest_story_views=$.storyViewsSummary.latest_story_views,M.value=$.storyViewsSummary.story_views_stats||[],p.value.total_competition_participants=$.competitionSummary.total_competition_participants,p.value.eligible_competition_participants=$.competitionSummary.eligible_competition_participants,p.value.latest_competition_participants=$.competitionSummary.latest_competition_participants,p.value.latest_competition_eligible_participants=$.competitionSummary.latest_competition_eligible_participants,p.value.new_users_last_7_days=$.newUsersLast7Days,p.value.new_users_last_30_days=$.newUsersLast30Days,p.value.today_unique_story_viewers=$.todayUniqueStoryViewers,p.value.this_week_story_views=$.storyViews.story_view_week,p.value.today_total_story_views=$.storyViews.story_view_last_week,p.value.this_month_jalali_story_views=$.storyViews.story_view_month,p.value.total_story_viewers=$.storyViews.uniqAllStoryView}catch{}if(!e.value)try{const $=await YR();p.value={...p.value,...$}}catch{}},G=$=>{const z=i.value.indexOf($);z>-1?i.value.length>1&&i.value.splice(z,1):i.value.push($),K()},H=$=>{const z=o.value.indexOf($);z>-1?o.value.length>1&&o.value.splice(z,1):o.value.push($),dt()},W=$=>({"بازدید همه قصه ها":"این عدد آمار بازدیدکنندگان همه قصه‌ها از اول تا ØØ§Ù„ا را نشان می‌دهد","بازدید کننده امروز قصه ها":"این عدد تعداد کاربران Ù…Ù†ØØµØ± به Ù�ردی است Ú©Ù‡ امروز ØØ¯Ø§Ù‚Ù„ یک قصه را دیده‌اند","بازدید Ù�عال این Ù‡Ù�ته قصه ها":"این عدد بازدید نهایی همه قصه‌ها در Ù‡Ù�ته گذشته است"," بازدید Ù�عال این ماه قصه
|
2026-06-15 11:54:19 +03:30
|
|
|
|
<div style="font-weight: bold; margin-bottom: 4px;">${et[0].name}</div>`;return et.forEach(q=>{rt+=`<div style="color: ${q.color}; margin-top: 4px;">
|
|
|
|
|
|
${q.seriesName}: <span style="color: #fff; font-weight: bold;">${q.value.toLocaleString("fa-IR")}</span>
|
|
|
|
|
|
</div>`}),rt+="</div>",rt}},legend:{data:z.map(et=>et.name),top:10,right:10,textStyle:{color:"#6B7280",fontSize:12,fontFamily:"iran-sans"}},grid:{left:"5%",right:"5%",bottom:"10%",top:"15%",containLabel:!0},xAxis:{type:"category",data:$,boundaryGap:!1,axisLine:{lineStyle:{color:"#E5E7EB",width:1}},axisTick:{show:!1},axisLabel:{color:"#6B7280",fontSize:11,fontFamily:"iran-sans",rotate:a.value==="daily"||a.value==="weekly"||a.value==="monthly"?45:0,margin:12},splitLine:{show:!1}},yAxis:{type:"value",axisLine:{show:!1},axisTick:{show:!1},axisLabel:{color:"#6B7280",fontSize:11,fontFamily:"iran-sans",formatter:et=>Math.round(et).toLocaleString("fa-IR")},minInterval:1,scale:!1,splitLine:{lineStyle:{color:"#F3F4F6",type:"dashed",width:1}}},series:ct};return X.setOption(Dt,!0),X},dt=async()=>{try{const $=new Date().toISOString().split("T")[0],z=o.value.map(async et=>{const rt={type:t.value,date:$,statType:et};u.value&&f.value&&(rt.startDate=u.value,rt.endDate=f.value,delete rt.date);const q=await XR(rt);return{statType:et,data:q||[]}}),j=await Promise.all(z);let ot=[];const X={};o.value.forEach(et=>{X[et]=[]});const lt=new Set;if(j.forEach(({data:et})=>{t.value==="hourly"?et.forEach(rt=>{if(rt.hour!==void 0)lt.add(String(rt.hour));else if(rt.day){const q=Number(rt.hour)||0;lt.add(`${rt.day}_${q}`)}}):et.forEach(rt=>{const q=rt.day||"";q&<.add(q)})}),t.value==="hourly")for(let et=0;et<=24;et++){const rt=et===24?"24:00":`${et.toString().padStart(2,"0")}:00`;ot.push(rt)}else Array.from(lt).sort().forEach(rt=>{if(t.value==="daily")ot.push(Ea(rt));else if(t.value==="weekly")try{const q=new Date(rt+"T00:00:00"),bt=new Date(q);bt.setDate(q.getDate()+5);const Gt=Ea(rt)+" تا "+Ea(bt.toISOString().split("T")[0]);ot.push(Gt)}catch{ot.push(rt)}else if(t.value==="monthly"){const[q,bt]=rt.split("-"),Gt=`${q}/${bt}`;ot.push(Gt)}});j.forEach(({statType:et,data:rt})=>{const q={};t.value==="hourly"?et==="total_views"?rt.forEach(bt=>{const Gt=Number(bt.hour)||0,ee=Number((bt==null?void 0:bt.views)||0),se=String(Gt);q[se]=(q[se]||0)+ee}):rt.forEach(bt=>{const Gt=bt.day||"",ee=Number(bt.hour)||0,se=`${Gt}_${ee}`,un=Number((bt==null?void 0:bt.views)||0);q[se]=un}):rt.forEach(bt=>{const Gt=bt.day||"",ee=Number((bt==null?void 0:bt.views)||0);et==="total_views"?q[Gt]=(q[Gt]||0)+ee:q[Gt]=ee}),ot.forEach(bt=>{let Gt=bt;if(t.value==="daily")Gt=We(bt,"jYYYY/jMM/jDD").format("YYYY-MM-DD");else if(t.value==="weekly"){const se=bt.split(" تا ");Gt=We(se[0],"jYYYY/jMM/jDD").format("YYYY-MM-DD")}else if(t.value==="monthly")Gt=We(bt,"jYYYY/jMM").format("YYYY-MM");else if(t.value==="hourly")if(et==="total_views")Gt=String(parseInt(bt.split(":")[0]));else{const se=parseInt(bt.split(":")[0]);Gt=Object.keys(q).find(fn=>fn.endsWith(`_${se}`))||String(se)}const ee=q[Gt]||0;X[et].push(Math.round(ee))})});const ct=o.value.map(et=>({name:et==="cumulative_viewers"?"آمار بازدید کننده تجمیعی همه قصه ها":et==="total_views"?"آمار بازدید همه قصه ها":"آمار بازدید کننده همه قصه ها",data:X[et]||[],color:et==="cumulative_viewers"?"#3B82F6":et==="total_views"?"#F97316":"#22C55E"}));if(await cn(),!S.value){setTimeout(()=>{if(S.value){const et=kt(ot,ct,S.value,b);et&&(b=et)}},100);return}const Dt=kt(ot,ct,S.value,b);Dt&&(b=Dt)}catch{if(await cn(),S.value){const z=kt([],[],S.value,b);z&&(b=z)}}},kt=($,z,j,ot)=>{if(!j)return ot;let X=ot;X||(X=Md(j));const lt={backgroundColor:"transparent",tooltip:{trigger:"axis",backgroundColor:"rgba(0, 0, 0, 0.8)",borderColor:"#3B82F6",borderWidth:1,textStyle:{color:"#fff",fontSize:12,fontFamily:"iran-sans"},axisPointer:{type:"line",lineStyle:{color:"#3B82F6",width:1,type:"dashed"},shadowStyle:{color:"rgba(59, 130, 246, 0.1)"}},formatter:ct=>{let Dt=`<div style="padding: 8px;">
|
|
|
|
|
|
<div style="font-weight: bold; margin-bottom: 4px;">${ct[0].name}</div>`;return ct.forEach(et=>{Dt+=`<div style="color: ${et.color}; margin-top: 4px;">
|
|
|
|
|
|
${et.seriesName}: <span style="color: #fff; font-weight: bold;">${et.value.toLocaleString("fa-IR")}</span>
|
2026-06-23 12:51:15 +03:30
|
|
|
|
</div>`}),Dt+="</div>",Dt}},legend:{data:z.map(ct=>ct.name),top:10,right:10,textStyle:{color:"#6B7280",fontSize:12,fontFamily:"iran-sans"}},grid:{left:"5%",right:"5%",bottom:"10%",top:"15%",containLabel:!0},xAxis:{type:"category",data:$,boundaryGap:!1,axisLine:{lineStyle:{color:"#E5E7EB",width:1}},axisTick:{show:!1},axisLabel:{color:"#6B7280",fontSize:11,fontFamily:"iran-sans",rotate:t.value==="daily"||t.value==="weekly"||t.value==="monthly"?45:0,margin:12},splitLine:{show:!1}},yAxis:{type:"value",axisLine:{show:!1},axisTick:{show:!1},axisLabel:{color:"#6B7280",fontSize:11,fontFamily:"iran-sans",formatter:ct=>Math.round(ct).toLocaleString("fa-IR")},minInterval:1,scale:!1,splitLine:{lineStyle:{color:"#F3F4F6",type:"dashed",width:1}}},series:z.map(ct=>({name:ct.name,type:"line",smooth:!0,symbol:"circle",symbolSize:6,showSymbol:!1,data:ct.data,areaStyle:{color:{type:"linear",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:`${ct.color}40`},{offset:1,color:`${ct.color}0D`}]}},lineStyle:{width:3,color:ct.color,shadowColor:`${ct.color}80`,shadowBlur:10,shadowOffsetY:5},itemStyle:{color:ct.color,borderColor:"#fff",borderWidth:2,shadowBlur:8,shadowColor:`${ct.color}80`},emphasis:{focus:"series",itemStyle:{color:ct.color,borderColor:"#fff",borderWidth:3,shadowBlur:12,shadowColor:`${ct.color}CC`}},animation:!0,animationDuration:1e3,animationEasing:"cubicOut"}))};return X.setOption(lt,!0),X},zt=async()=>{var $,z;try{const j=new Date().toISOString().split("T")[0],ot={type:n.value,date:j};c.value&&v.value&&(ot.startDate=c.value,ot.endDate=v.value,delete ot.date);const X=await KR(ot);m.value=X||[];let lt=[],ct=[],Dt=[];if(n.value==="hourly"){const rt={};m.value.forEach(q=>{const bt=Number(q.hour)||0;rt[bt]={total:Number((q==null?void 0:q.totalParticipants)||0),eligible:Number((q==null?void 0:q.eligibleParticipants)||0)}});for(let q=0;q<=24;q++){const bt=q===24?"24:00":`${q.toString().padStart(2,"0")}:00`;lt.push(bt),ct.push((($=rt[q])==null?void 0:$.total)||0),Dt.push(((z=rt[q])==null?void 0:z.eligible)||0)}}else if(n.value==="daily"){const rt={};m.value.forEach(q=>{const bt=q.day||"";rt[bt]={total:Number((q==null?void 0:q.totalParticipants)||0),eligible:Number((q==null?void 0:q.eligibleParticipants)||0)}}),Object.keys(rt).sort().forEach(q=>{const bt=Ea(q);lt.push(bt),ct.push(rt[q].total),Dt.push(rt[q].eligible)})}else if(n.value==="weekly"){const rt={};m.value.forEach(q=>{const bt=q.day||"";rt[bt]={total:Number((q==null?void 0:q.totalParticipants)||0),eligible:Number((q==null?void 0:q.eligibleParticipants)||0)}}),Object.keys(rt).sort().forEach(q=>{try{const bt=new Date(q+"T00:00:00"),Gt=new Date(bt);Gt.setDate(bt.getDate()+5);const ee=Ea(q)+" تا "+Ea(Gt.toISOString().split("T")[0]);lt.push(ee),ct.push(rt[q].total),Dt.push(rt[q].eligible)}catch{lt.push(q),ct.push(rt[q].total),Dt.push(rt[q].eligible)}})}else if(n.value==="monthly"){const rt={};m.value.forEach(q=>{const bt=q.day||"";rt[bt]={total:Number((q==null?void 0:q.totalParticipants)||0),eligible:Number((q==null?void 0:q.eligibleParticipants)||0)}}),Object.keys(rt).sort().forEach(q=>{const[bt,Gt]=q.split("-"),ee=`${bt}/${Gt}`;lt.push(ee),ct.push(rt[q].total),Dt.push(rt[q].eligible)})}if(await cn(),!x.value){setTimeout(()=>{if(x.value){const rt=E(lt,ct,Dt,x.value,T);rt&&(T=rt)}},100);return}const et=E(lt,ct,Dt,x.value,T);et&&(T=et)}catch{if(await cn(),x.value){const ot=E([],[],[],x.value,T);ot&&(T=ot)}}};_R(async()=>{await B(),await cn(),await K(),await dt(),await cn(),await new Promise($=>setTimeout($,100)),await zt(),window.addEventListener("resize",()=>{w&&w.resize(),b&&b.resize(),T&&T.resize()})}),SR(()=>{w&&(w.dispose(),w=null),b&&(b.dispose(),b=null),T&&(T.dispose(),T=null)});async function St(){if(C.value.length===0){const{message:$}=await vn(()=>import("./index-1a524cca.js"),["assets/index-1a524cca.js","assets/index-a87160dc.js","assets/index-1bce333c.js","assets/index-f59f1398.css","assets/vnode-aeac980e.js","assets/_plugin-vue_export-helper-3f2269c4.js","assets/shallowequal-1541c82f.js","assets/index-5c225384.js","assets/Col-9a22bf06.js","assets/button.vue_vue_t
|