@opengis/bi 1.0.10 → 1.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/bi.umd.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(k,Ie){typeof exports=="object"&&typeof module<"u"?module.exports=Ie(require("vue")):typeof define=="function"&&define.amd?define(["vue"],Ie):(k=typeof globalThis<"u"?globalThis:k||self,k.bi=Ie(k.Vue))})(this,function(k){"use strict";var
|
|
1
|
+
(function(k,Ie){typeof exports=="object"&&typeof module<"u"?module.exports=Ie(require("vue")):typeof define=="function"&&define.amd?define(["vue"],Ie):(k=typeof globalThis<"u"?globalThis:k||self,k.bi=Ie(k.Vue))})(this,function(k){"use strict";var cj=Object.defineProperty;var fj=(k,Ie,N)=>Ie in k?cj(k,Ie,{enumerable:!0,configurable:!0,writable:!0,value:N}):k[Ie]=N;var Ut=(k,Ie,N)=>fj(k,typeof Ie!="symbol"?Ie+"":Ie,N);/*! *****************************************************************************
|
|
2
2
|
Copyright (c) Microsoft Corporation.
|
|
3
3
|
|
|
4
4
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
@@ -71,7 +71,7 @@ echarts.use([`+E+"]);":"Unknown series "+A))}return}if(f==="tooltip"){if(_){proc
|
|
|
71
71
|
`,"Illegal config:",c,`.
|
|
72
72
|
`)),Pt(n));var m=v?WS(v):null;v&&!m&&(process.env.NODE_ENV!=="production"&&(n=ke("Invalid parser name "+v+`.
|
|
73
73
|
`,"Illegal config:",c,`.
|
|
74
|
-
`)),Pt(n)),i.push({dimIdx:y.index,parser:m,comparator:new US(h,p)})});var o=e.sourceFormat;o!==Ce&&o!==_r&&(process.env.NODE_ENV!=="production"&&(n='sourceFormat "'+o+'" is not supported yet'),Pt(n));for(var s=[],l=0,u=e.count();l<u;l++)s.push(e.getRawDataItem(l));return s.sort(function(c,f){for(var h=0;h<i.length;h++){var v=i[h],p=e.retrieveValueFromItem(c,v.dimIdx),d=e.retrieveValueFromItem(f,v.dimIdx);v.parser&&(p=v.parser(p),d=v.parser(d));var g=v.comparator.evaluate(p,d);if(g!==0)return g}return 0}),{data:s}}};function dY(r){r.registerTransform(vY),r.registerTransform(pY)}var gY=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="dataset",t}return e.prototype.init=function(t,n,a){r.prototype.init.call(this,t,n,a),this._sourceManager=new jS(this),JS(this)},e.prototype.mergeOption=function(t,n){r.prototype.mergeOption.call(this,t,n),JS(this)},e.prototype.optionUpdated=function(){this._sourceManager.dirty()},e.prototype.getSourceManager=function(){return this._sourceManager},e.type="dataset",e.defaultOption={seriesLayoutBy:sn},e}(bt),yY=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="dataset",t}return e.type="dataset",e}(Yt);function mY(r){r.registerComponentModel(gY),r.registerComponentView(yY)}var gn=nn.CMD;function ns(r,e){return Math.abs(r-e)<1e-5}function i0(r){var e=r.data,t=r.len(),n=[],a,i=0,o=0,s=0,l=0;function u(I,L){a&&a.length>2&&n.push(a),a=[I,L]}function c(I,L,P,R){ns(I,P)&&ns(L,R)||a.push(I,L,P,R,P,R)}function f(I,L,P,R,V,O){var B=Math.abs(L-I),W=Math.tan(B/4)*4/3,$=L<I?-1:1,Z=Math.cos(I),Q=Math.sin(I),nt=Math.cos(L),yt=Math.sin(L),Tt=Z*V+P,mt=Q*O+R,it=nt*V+P,_t=yt*O+R,ft=V*W*$,J=O*W*$;a.push(Tt-ft*Q,mt+J*Z,it+ft*yt,_t-J*nt,it,_t)}for(var h,v,p,d,g=0;g<t;){var y=e[g++],m=g===1;switch(m&&(i=e[g],o=e[g+1],s=i,l=o,(y===gn.L||y===gn.C||y===gn.Q)&&(a=[s,l])),y){case gn.M:i=s=e[g++],o=l=e[g++],u(s,l);break;case gn.L:h=e[g++],v=e[g++],c(i,o,h,v),i=h,o=v;break;case gn.C:a.push(e[g++],e[g++],e[g++],e[g++],i=e[g++],o=e[g++]);break;case gn.Q:h=e[g++],v=e[g++],p=e[g++],d=e[g++],a.push(i+2/3*(h-i),o+2/3*(v-o),p+2/3*(h-p),d+2/3*(v-d),p,d),i=p,o=d;break;case gn.A:var _=e[g++],x=e[g++],b=e[g++],S=e[g++],w=e[g++],T=e[g++]+w;g+=1;var D=!e[g++];h=Math.cos(w)*b+_,v=Math.sin(w)*S+x,m?(s=h,l=v,u(s,l)):c(i,o,h,v),i=Math.cos(T)*b+_,o=Math.sin(T)*S+x;for(var M=(D?-1:1)*Math.PI/2,A=w;D?A>T:A<T;A+=M){var E=D?Math.max(A+M,T):Math.min(A+M,T);f(A,E,_,x,b,S)}break;case gn.R:s=i=e[g++],l=o=e[g++],h=s+e[g++],v=l+e[g++],u(h,l),c(h,l,h,v),c(h,v,s,v),c(s,v,s,l),c(s,l,h,l);break;case gn.Z:a&&c(i,o,s,l),i=s,o=l;break}}return a&&a.length>2&&n.push(a),n}function o0(r,e,t,n,a,i,o,s,l,u){if(ns(r,t)&&ns(e,n)&&ns(a,o)&&ns(i,s)){l.push(o,s);return}var c=2/u,f=c*c,h=o-r,v=s-e,p=Math.sqrt(h*h+v*v);h/=p,v/=p;var d=t-r,g=n-e,y=a-o,m=i-s,_=d*d+g*g,x=y*y+m*m;if(_<f&&x<f){l.push(o,s);return}var b=h*d+v*g,S=-h*y-v*m,w=_-b*b,T=x-S*S;if(w<f&&b>=0&&T<f&&S>=0){l.push(o,s);return}var D=[],M=[];qn(r,t,a,o,.5,D),qn(e,n,i,s,.5,M),o0(D[0],M[0],D[1],M[1],D[2],M[2],D[3],M[3],l,u),o0(D[4],M[4],D[5],M[5],D[6],M[6],D[7],M[7],l,u)}function _Y(r,e){var t=i0(r),n=[];e=e||1;for(var a=0;a<t.length;a++){var i=t[a],o=[],s=i[0],l=i[1];o.push(s,l);for(var u=2;u<i.length;){var c=i[u++],f=i[u++],h=i[u++],v=i[u++],p=i[u++],d=i[u++];o0(s,l,c,f,h,v,p,d,o,e),s=p,l=d}n.push(o)}return n}function fI(r,e,t){var n=r[e],a=r[1-e],i=Math.abs(n/a),o=Math.ceil(Math.sqrt(i*t)),s=Math.floor(t/o);s===0&&(s=1,o=t);for(var l=[],u=0;u<o;u++)l.push(s);var c=o*s,f=t-c;if(f>0)for(var u=0;u<f;u++)l[u%o]+=1;return l}function hI(r,e,t){for(var n=r.r0,a=r.r,i=r.startAngle,o=r.endAngle,s=Math.abs(o-i),l=s*a,u=a-n,c=l>Math.abs(u),f=fI([l,u],c?0:1,e),h=(c?s:u)/f.length,v=0;v<f.length;v++)for(var p=(c?u:s)/f[v],d=0;d<f[v];d++){var g={};c?(g.startAngle=i+h*v,g.endAngle=i+h*(v+1),g.r0=n+p*d,g.r=n+p*(d+1)):(g.startAngle=i+p*d,g.endAngle=i+p*(d+1),g.r0=n+h*v,g.r=n+h*(v+1)),g.clockwise=r.clockwise,g.cx=r.cx,g.cy=r.cy,t.push(g)}}function xY(r,e,t){for(var n=r.width,a=r.height,i=n>a,o=fI([n,a],i?0:1,e),s=i?"width":"height",l=i?"height":"width",u=i?"x":"y",c=i?"y":"x",f=r[s]/o.length,h=0;h<o.length;h++)for(var v=r[l]/o[h],p=0;p<o[h];p++){var d={};d[u]=h*f,d[c]=p*v,d[s]=f,d[l]=v,d.x+=r.x,d.y+=r.y,t.push(d)}}function vI(r,e,t,n){return r*n-t*e}function SY(r,e,t,n,a,i,o,s){var l=t-r,u=n-e,c=o-a,f=s-i,h=vI(c,f,l,u);if(Math.abs(h)<1e-6)return null;var v=r-a,p=e-i,d=vI(v,p,c,f)/h;return d<0||d>1?null:new ct(d*l+r,d*u+e)}function bY(r,e,t){var n=new ct;ct.sub(n,t,e),n.normalize();var a=new ct;ct.sub(a,r,e);var i=a.dot(n);return i}function as(r,e){var t=r[r.length-1];t&&t[0]===e[0]&&t[1]===e[1]||r.push(e)}function wY(r,e,t){for(var n=r.length,a=[],i=0;i<n;i++){var o=r[i],s=r[(i+1)%n],l=SY(o[0],o[1],s[0],s[1],e.x,e.y,t.x,t.y);l&&a.push({projPt:bY(l,e,t),pt:l,idx:i})}if(a.length<2)return[{points:r},{points:r}];a.sort(function(g,y){return g.projPt-y.projPt});var u=a[0],c=a[a.length-1];if(c.idx<u.idx){var f=u;u=c,c=f}for(var h=[u.pt.x,u.pt.y],v=[c.pt.x,c.pt.y],p=[h],d=[v],i=u.idx+1;i<=c.idx;i++)as(p,r[i].slice());as(p,v),as(p,h);for(var i=c.idx+1;i<=u.idx+n;i++)as(d,r[i%n].slice());return as(d,h),as(d,v),[{points:p},{points:d}]}function pI(r){var e=r.points,t=[],n=[];nc(e,t,n);var a=new pt(t[0],t[1],n[0]-t[0],n[1]-t[1]),i=a.width,o=a.height,s=a.x,l=a.y,u=new ct,c=new ct;return i>o?(u.x=c.x=s+i/2,u.y=l,c.y=l+o):(u.y=c.y=l+o/2,u.x=s,c.x=s+i),wY(e,u,c)}function bh(r,e,t,n){if(t===1)n.push(e);else{var a=Math.floor(t/2),i=r(e);bh(r,i[0],a,n),bh(r,i[1],t-a,n)}return n}function TY(r,e){for(var t=[],n=0;n<e;n++)t.push(Ep(r));return t}function DY(r,e){e.setStyle(r.style),e.z=r.z,e.z2=r.z2,e.zlevel=r.zlevel}function CY(r){for(var e=[],t=0;t<r.length;)e.push([r[t++],r[t++]]);return e}function AY(r,e){var t=[],n=r.shape,a;switch(r.type){case"rect":xY(n,e,t),a=Ct;break;case"sector":hI(n,e,t),a=Oe;break;case"circle":hI({r0:0,r:n.r,startAngle:0,endAngle:Math.PI*2,cx:n.cx,cy:n.cy},e,t),a=Oe;break;default:var i=r.getComputedTransform(),o=i?Math.sqrt(Math.max(i[0]*i[0]+i[1]*i[1],i[2]*i[2]+i[3]*i[3])):1,s=G(_Y(r.getUpdatedPathProxy(),o),function(y){return CY(y)}),l=s.length;if(l===0)bh(pI,{points:s[0]},e,t);else if(l===e)for(var u=0;u<l;u++)t.push({points:s[u]});else{var c=0,f=G(s,function(y){var m=[],_=[];nc(y,m,_);var x=(_[1]-m[1])*(_[0]-m[0]);return c+=x,{poly:y,area:x}});f.sort(function(y,m){return m.area-y.area});for(var h=e,u=0;u<l;u++){var v=f[u];if(h<=0)break;var p=u===l-1?h:Math.ceil(v.area/c*e);p<0||(bh(pI,{points:v.poly},p,t),h-=p)}}a=Ve;break}if(!a)return TY(r,e);for(var d=[],u=0;u<t.length;u++){var g=new a;g.setShape(t[u]),DY(r,g),d.push(g)}return d}function MY(r,e){var t=r.length,n=e.length;if(t===n)return[r,e];for(var a=[],i=[],o=t<n?r:e,s=Math.min(t,n),l=Math.abs(n-t)/6,u=(s-2)/6,c=Math.ceil(l/u)+1,f=[o[0],o[1]],h=l,v=2;v<s;){var p=o[v-2],d=o[v-1],g=o[v++],y=o[v++],m=o[v++],_=o[v++],x=o[v++],b=o[v++];if(h<=0){f.push(g,y,m,_,x,b);continue}for(var S=Math.min(h,c-1)+1,w=1;w<=S;w++){var T=w/S;qn(p,g,m,x,T,a),qn(d,y,_,b,T,i),p=a[3],d=i[3],f.push(a[1],i[1],a[2],i[2],p,d),g=a[5],y=i[5],m=a[6],_=i[6]}h-=S-1}return o===r?[f,e]:[r,f]}function dI(r,e){for(var t=r.length,n=r[t-2],a=r[t-1],i=[],o=0;o<e.length;)i[o++]=n,i[o++]=a;return i}function EY(r,e){for(var t,n,a,i=[],o=[],s=0;s<Math.max(r.length,e.length);s++){var l=r[s],u=e[s],c=void 0,f=void 0;l?u?(t=MY(l,u),c=t[0],f=t[1],n=c,a=f):(f=dI(a||l,l),c=l):(c=dI(n||u,u),f=u),i.push(c),o.push(f)}return[i,o]}function gI(r){for(var e=0,t=0,n=0,a=r.length,i=0,o=a-2;i<a;o=i,i+=2){var s=r[o],l=r[o+1],u=r[i],c=r[i+1],f=s*c-u*l;e+=f,t+=(s+u)*f,n+=(l+c)*f}return e===0?[r[0]||0,r[1]||0]:[t/e/3,n/e/3,e]}function IY(r,e,t,n){for(var a=(r.length-2)/6,i=1/0,o=0,s=r.length,l=s-2,u=0;u<a;u++){for(var c=u*6,f=0,h=0;h<s;h+=2){var v=h===0?c:(c+h-2)%l+2,p=r[v]-t[0],d=r[v+1]-t[1],g=e[h]-n[0],y=e[h+1]-n[1],m=g-p,_=y-d;f+=m*m+_*_}f<i&&(i=f,o=u)}return o}function LY(r){for(var e=[],t=r.length,n=0;n<t;n+=2)e[n]=r[t-n-2],e[n+1]=r[t-n-1];return e}function PY(r,e,t,n){for(var a=[],i,o=0;o<r.length;o++){var s=r[o],l=e[o],u=gI(s),c=gI(l);i==null&&(i=u[2]<0!=c[2]<0);var f=[],h=[],v=0,p=1/0,d=[],g=s.length;i&&(s=LY(s));for(var y=IY(s,l,u,c)*6,m=g-2,_=0;_<m;_+=2){var x=(y+_)%m+2;f[_+2]=s[x]-u[0],f[_+3]=s[x+1]-u[1]}f[0]=s[y]-u[0],f[1]=s[y+1]-u[1];for(var b=n/t,S=-n/2;S<=n/2;S+=b){for(var w=Math.sin(S),T=Math.cos(S),D=0,_=0;_<s.length;_+=2){var M=f[_],A=f[_+1],E=l[_]-c[0],I=l[_+1]-c[1],L=E*T-I*w,P=E*w+I*T;d[_]=L,d[_+1]=P;var R=L-M,V=P-A;D+=R*R+V*V}if(D<p){p=D,v=S;for(var O=0;O<d.length;O++)h[O]=d[O]}}a.push({from:f,to:h,fromCp:u,toCp:c,rotation:-v})}return a}function wh(r){return r.__isCombineMorphing}var yI="__mOriginal_";function Th(r,e,t){var n=yI+e,a=r[n]||r[e];r[n]||(r[n]=r[e]);var i=t.replace,o=t.after,s=t.before;r[e]=function(){var l=arguments,u;return s&&s.apply(this,l),i?u=i.apply(this,l):u=a.apply(this,l),o&&o.apply(this,l),u}}function nu(r,e){var t=yI+e;r[t]&&(r[e]=r[t],r[t]=null)}function mI(r,e){for(var t=0;t<r.length;t++)for(var n=r[t],a=0;a<n.length;){var i=n[a],o=n[a+1];n[a++]=e[0]*i+e[2]*o+e[4],n[a++]=e[1]*i+e[3]*o+e[5]}}function _I(r,e){var t=r.getUpdatedPathProxy(),n=e.getUpdatedPathProxy(),a=EY(i0(t),i0(n)),i=a[0],o=a[1],s=r.getComputedTransform(),l=e.getComputedTransform();function u(){this.transform=null}s&&mI(i,s),l&&mI(o,l),Th(e,"updateTransform",{replace:u}),e.transform=null;var c=PY(i,o,10,Math.PI),f=[];Th(e,"buildPath",{replace:function(h){for(var v=e.__morphT,p=1-v,d=[],g=0;g<c.length;g++){var y=c[g],m=y.from,_=y.to,x=y.rotation*v,b=y.fromCp,S=y.toCp,w=Math.sin(x),T=Math.cos(x);wu(d,b,S,v);for(var D=0;D<m.length;D+=2){var M=m[D],A=m[D+1],E=_[D],I=_[D+1],L=M*p+E*v,P=A*p+I*v;f[D]=L*T-P*w+d[0],f[D+1]=L*w+P*T+d[1]}var R=f[0],V=f[1];h.moveTo(R,V);for(var D=2;D<m.length;){var E=f[D++],I=f[D++],O=f[D++],B=f[D++],W=f[D++],$=f[D++];R===E&&V===I&&O===W&&B===$?h.lineTo(W,$):h.bezierCurveTo(E,I,O,B,W,$),R=W,V=$}}}})}function s0(r,e,t){if(!r||!e)return e;var n=t.done,a=t.during;_I(r,e),e.__morphT=0;function i(){nu(e,"buildPath"),nu(e,"updateTransform"),e.__morphT=-1,e.createPathProxy(),e.dirtyShape()}return e.animateTo({__morphT:1},rt({during:function(o){e.dirtyShape(),a&&a(o)},done:function(){i(),n&&n()}},t)),e}function kY(r,e,t,n,a,i){var o=16;r=a===t?0:Math.round(32767*(r-t)/(a-t)),e=i===n?0:Math.round(32767*(e-n)/(i-n));for(var s=0,l,u=(1<<o)/2;u>0;u/=2){var c=0,f=0;(r&u)>0&&(c=1),(e&u)>0&&(f=1),s+=u*u*(3*c^f),f===0&&(c===1&&(r=u-1-r,e=u-1-e),l=r,r=e,e=l)}return s}function Dh(r){var e=1/0,t=1/0,n=-1/0,a=-1/0,i=G(r,function(s){var l=s.getBoundingRect(),u=s.getComputedTransform(),c=l.x+l.width/2+(u?u[4]:0),f=l.y+l.height/2+(u?u[5]:0);return e=Math.min(c,e),t=Math.min(f,t),n=Math.max(c,n),a=Math.max(f,a),[c,f]}),o=G(i,function(s,l){return{cp:s,z:kY(s[0],s[1],e,t,n,a),path:r[l]}});return o.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function xI(r){return AY(r.path,r.count)}function l0(){return{fromIndividuals:[],toIndividuals:[],count:0}}function RY(r,e,t){var n=[];function a(b){for(var S=0;S<b.length;S++){var w=b[S];wh(w)?a(w.childrenRef()):w instanceof xt&&n.push(w)}}a(r);var i=n.length;if(!i)return l0();var o=t.dividePath||xI,s=o({path:e,count:i});if(s.length!==i)return console.error("Invalid morphing: unmatched splitted path"),l0();n=Dh(n),s=Dh(s);for(var l=t.done,u=t.during,c=t.individualDelay,f=new bn,h=0;h<i;h++){var v=n[h],p=s[h];p.parent=e,p.copyTransform(f),c||_I(v,p)}e.__isCombineMorphing=!0,e.childrenRef=function(){return s};function d(b){for(var S=0;S<s.length;S++)s[S].addSelfToZr(b)}Th(e,"addSelfToZr",{after:function(b){d(b)}}),Th(e,"removeSelfFromZr",{after:function(b){for(var S=0;S<s.length;S++)s[S].removeSelfFromZr(b)}});function g(){e.__isCombineMorphing=!1,e.__morphT=-1,e.childrenRef=null,nu(e,"addSelfToZr"),nu(e,"removeSelfFromZr")}var y=s.length;if(c)for(var m=y,_=function(){m--,m===0&&(g(),l&&l())},h=0;h<y;h++){var x=c?rt({delay:(t.delay||0)+c(h,y,n[h],s[h]),done:_},t):t;s0(n[h],s[h],x)}else e.__morphT=0,e.animateTo({__morphT:1},rt({during:function(b){for(var S=0;S<y;S++){var w=s[S];w.__morphT=e.__morphT,w.dirtyShape()}u&&u(b)},done:function(){g();for(var b=0;b<r.length;b++)nu(r[b],"updateTransform");l&&l()}},t));return e.__zr&&d(e.__zr),{fromIndividuals:n,toIndividuals:s,count:y}}function NY(r,e,t){var n=e.length,a=[],i=t.dividePath||xI;function o(v){for(var p=0;p<v.length;p++){var d=v[p];wh(d)?o(d.childrenRef()):d instanceof xt&&a.push(d)}}if(wh(r)){o(r.childrenRef());var s=a.length;if(s<n)for(var l=0,u=s;u<n;u++)a.push(Ep(a[l++%s]));a.length=n}else{a=i({path:r,count:n});for(var c=r.getComputedTransform(),u=0;u<a.length;u++)a[u].setLocalTransform(c);if(a.length!==n)return console.error("Invalid morphing: unmatched splitted path"),l0()}a=Dh(a),e=Dh(e);for(var f=t.individualDelay,u=0;u<n;u++){var h=f?rt({delay:(t.delay||0)+f(u,n,a[u],e[u])},t):t;s0(a[u],e[u],h)}return{fromIndividuals:a,toIndividuals:e,count:e.length}}function SI(r){return F(r[0])}function bI(r,e){for(var t=[],n=r.length,a=0;a<n;a++)t.push({one:r[a],many:[]});for(var a=0;a<e.length;a++){var i=e[a].length,o=void 0;for(o=0;o<i;o++)t[o%n].many.push(e[a][o])}for(var s=0,a=n-1;a>=0;a--)if(!t[a].many.length){var l=t[s].many;if(l.length<=1)if(s)s=0;else return t;var i=l.length,u=Math.ceil(i/2);t[a].many=l.slice(u,i),t[s].many=l.slice(0,u),s++}return t}var OY={clone:function(r){for(var e=[],t=1-Math.pow(1-r.path.style.opacity,1/r.count),n=0;n<r.count;n++){var a=Ep(r.path);a.setStyle("opacity",t),e.push(a)}return e},split:null};function u0(r,e,t,n,a,i){if(!r.length||!e.length)return;var o=fo("update",n,a);if(!(o&&o.duration>0))return;var s=n.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,c;SI(r)&&(u=r,c=e),SI(e)&&(u=e,c=r);function f(y,m,_,x,b){var S=y.many,w=y.one;if(S.length===1&&!b){var T=m?S[0]:w,D=m?w:S[0];if(wh(T))f({many:[T],one:D},!0,_,x,!0);else{var M=s?rt({delay:s(_,x)},l):l;s0(T,D,M),i(T,D,T,D,M)}}else for(var A=rt({dividePath:OY[t],individualDelay:s&&function(V,O,B,W){return s(V+_,x)}},l),E=m?RY(S,w,A):NY(w,S,A),I=E.fromIndividuals,L=E.toIndividuals,P=I.length,R=0;R<P;R++){var M=s?rt({delay:s(R,P)},l):l;i(I[R],L[R],m?S[R]:y.one,m?y.one:S[R],M)}}for(var h=u?u===r:r.length>e.length,v=u?bI(c,u):bI(h?e:r,[h?r:e]),p=0,d=0;d<v.length;d++)p+=v[d].many.length;for(var g=0,d=0;d<v.length;d++)f(v[d],h,g,p),g+=v[d].many.length}function zi(r){if(!r)return[];if(F(r)){for(var e=[],t=0;t<r.length;t++)e.push(zi(r[t]));return e}var n=[];return r.traverse(function(a){a instanceof xt&&!a.disableMorphing&&!a.invisible&&!a.ignore&&n.push(a)}),n}var wI=1e4,VY=0,TI=1,DI=2,BY=Dt();function zY(r,e){for(var t=r.dimensions,n=0;n<t.length;n++){var a=r.getDimensionInfo(t[n]);if(a&&a.otherDims[e]===0)return t[n]}}function FY(r,e,t){var n=r.getDimensionInfo(t),a=n&&n.ordinalMeta;if(n){var i=r.get(n.name,e);return a&&a.categories[i]||i+""}}function CI(r,e,t,n){var a=n?"itemChildGroupId":"itemGroupId",i=zY(r,a);if(i){var o=FY(r,e,i);return o}var s=r.getRawDataItem(e),l=n?"childGroupId":"groupId";if(s&&s[l])return s[l]+"";if(!n)return t||r.getId(e)}function AI(r){var e=[];return C(r,function(t){var n=t.data,a=t.dataGroupId;if(n.count()>wI){process.env.NODE_ENV!=="production"&&Xt("Universal transition is disabled on large data > 10k.");return}for(var i=n.getIndices(),o=0;o<i.length;o++)e.push({data:n,groupId:CI(n,o,a,!1),childGroupId:CI(n,o,a,!0),divide:t.divide,dataIndex:o})}),e}function c0(r,e,t){r.traverse(function(n){n instanceof xt&&$t(n,{style:{opacity:0}},e,{dataIndex:t,isFrom:!0})})}function f0(r){if(r.parent){var e=r.getComputedTransform();r.setLocalTransform(e),r.parent.remove(r)}}function is(r){r.stopAnimation(),r.isGroup&&r.traverse(function(e){e.stopAnimation()})}function GY(r,e,t){var n=fo("update",t,e);n&&r.traverse(function(a){if(a instanceof pr){var i=RN(a);i&&a.animateFrom({style:i},n)}})}function HY(r,e){var t=r.length;if(t!==e.length)return!1;for(var n=0;n<t;n++){var a=r[n],i=e[n];if(a.data.getId(a.dataIndex)!==i.data.getId(i.dataIndex))return!1}return!0}function MI(r,e,t){var n=AI(r),a=AI(e);function i(_,x,b,S,w){(b||_)&&x.animateFrom({style:b&&b!==_?z(z({},b.style),_.style):_.style},w)}var o=!1,s=VY,l=K(),u=K();n.forEach(function(_){_.groupId&&l.set(_.groupId,!0),_.childGroupId&&u.set(_.childGroupId,!0)});for(var c=0;c<a.length;c++){var f=a[c].groupId;if(u.get(f)){s=TI;break}var h=a[c].childGroupId;if(h&&l.get(h)){s=DI;break}}function v(_,x){return function(b){var S=b.data,w=b.dataIndex;return x?S.getId(w):_?s===TI?b.childGroupId:b.groupId:s===DI?b.childGroupId:b.groupId}}var p=HY(n,a),d={};if(!p)for(var c=0;c<a.length;c++){var g=a[c],y=g.data.getItemGraphicEl(g.dataIndex);y&&(d[y.id]=!0)}function m(_,x){var b=n[x],S=a[_],w=S.data.hostModel,T=b.data.getItemGraphicEl(b.dataIndex),D=S.data.getItemGraphicEl(S.dataIndex);if(T===D){D&&GY(D,S.dataIndex,w);return}T&&d[T.id]||D&&(is(D),T?(is(T),f0(T),o=!0,u0(zi(T),zi(D),S.divide,w,_,i)):c0(D,w,_))}new Pn(n,a,v(!0,p),v(!1,p),null,"multiple").update(m).updateManyToOne(function(_,x){var b=a[_],S=b.data,w=S.hostModel,T=S.getItemGraphicEl(b.dataIndex),D=Nt(G(x,function(M){return n[M].data.getItemGraphicEl(n[M].dataIndex)}),function(M){return M&&M!==T&&!d[M.id]});T&&(is(T),D.length?(C(D,function(M){is(M),f0(M)}),o=!0,u0(zi(D),zi(T),b.divide,w,_,i)):c0(T,w,b.dataIndex))}).updateOneToMany(function(_,x){var b=n[x],S=b.data.getItemGraphicEl(b.dataIndex);if(!(S&&d[S.id])){var w=Nt(G(_,function(D){return a[D].data.getItemGraphicEl(a[D].dataIndex)}),function(D){return D&&D!==S}),T=a[_[0]].data.hostModel;w.length&&(C(w,function(D){return is(D)}),S?(is(S),f0(S),o=!0,u0(zi(S),zi(w),b.divide,T,_[0],i)):C(w,function(D){return c0(D,T,_[0])}))}}).updateManyToMany(function(_,x){new Pn(x,_,function(b){return n[b].data.getId(n[b].dataIndex)},function(b){return a[b].data.getId(a[b].dataIndex)}).update(function(b,S){m(_[b],x[S])}).execute()}).execute(),o&&C(e,function(_){var x=_.data,b=x.hostModel,S=b&&t.getViewOfSeriesModel(b),w=fo("update",b,0);S&&b.isAnimationEnabled()&&w&&w.duration>0&&S.group.traverse(function(T){T instanceof xt&&!T.animators.length&&T.animateFrom({style:{opacity:0}},w)})})}function EI(r){var e=r.getModel("universalTransition").get("seriesKey");return e||r.id}function II(r){return F(r)?r.sort().join(","):r}function wa(r){if(r.hostModel)return r.hostModel.getModel("universalTransition").get("divideShape")}function WY(r,e){var t=K(),n=K(),a=K();C(r.oldSeries,function(o,s){var l=r.oldDataGroupIds[s],u=r.oldData[s],c=EI(o),f=II(c);n.set(f,{dataGroupId:l,data:u}),F(c)&&C(c,function(h){a.set(h,{key:f,dataGroupId:l,data:u})})});function i(o){t.get(o)&&Xt("Duplicated seriesKey in universalTransition "+o)}return C(e.updatedSeries,function(o){if(o.isUniversalTransitionEnabled()&&o.isAnimationEnabled()){var s=o.get("dataGroupId"),l=o.getData(),u=EI(o),c=II(u),f=n.get(c);if(f)process.env.NODE_ENV!=="production"&&i(c),t.set(c,{oldSeries:[{dataGroupId:f.dataGroupId,divide:wa(f.data),data:f.data}],newSeries:[{dataGroupId:s,divide:wa(l),data:l}]});else if(F(u)){process.env.NODE_ENV!=="production"&&i(c);var h=[];C(u,function(d){var g=n.get(d);g.data&&h.push({dataGroupId:g.dataGroupId,divide:wa(g.data),data:g.data})}),h.length&&t.set(c,{oldSeries:h,newSeries:[{dataGroupId:s,data:l,divide:wa(l)}]})}else{var v=a.get(u);if(v){var p=t.get(v.key);p||(p={oldSeries:[{dataGroupId:v.dataGroupId,data:v.data,divide:wa(v.data)}],newSeries:[]},t.set(v.key,p)),p.newSeries.push({dataGroupId:s,data:l,divide:wa(l)})}}}}),t}function LI(r,e){for(var t=0;t<r.length;t++){var n=e.seriesIndex!=null&&e.seriesIndex===r[t].seriesIndex||e.seriesId!=null&&e.seriesId===r[t].id;if(n)return t}}function $Y(r,e,t,n){var a=[],i=[];C(Ot(r.from),function(o){var s=LI(e.oldSeries,o);s>=0&&a.push({dataGroupId:e.oldDataGroupIds[s],data:e.oldData[s],divide:wa(e.oldData[s]),groupIdDim:o.dimension})}),C(Ot(r.to),function(o){var s=LI(t.updatedSeries,o);if(s>=0){var l=t.updatedSeries[s].getData();i.push({dataGroupId:e.oldDataGroupIds[s],data:l,divide:wa(l),groupIdDim:o.dimension})}}),a.length>0&&i.length>0&&MI(a,i,n)}function UY(r){r.registerUpdateLifecycle("series:beforeupdate",function(e,t,n){C(Ot(n.seriesTransition),function(a){C(Ot(a.to),function(i){for(var o=n.updatedSeries,s=0;s<o.length;s++)(i.seriesIndex!=null&&i.seriesIndex===o[s].seriesIndex||i.seriesId!=null&&i.seriesId===o[s].id)&&(o[s][Hc]=!0)})})}),r.registerUpdateLifecycle("series:transition",function(e,t,n){var a=BY(t);if(a.oldSeries&&n.updatedSeries&&n.optionChanged){var i=n.seriesTransition;if(i)C(Ot(i),function(v){$Y(v,a,n,t)});else{var o=WY(a,n);C(o.keys(),function(v){var p=o.get(v);MI(p.oldSeries,p.newSeries,t)})}C(n.updatedSeries,function(v){v[Hc]&&(v[Hc]=!1)})}for(var s=e.getSeries(),l=a.oldSeries=[],u=a.oldDataGroupIds=[],c=a.oldData=[],f=0;f<s.length;f++){var h=s[f].getData();h.count()<wI&&(l.push(s[f]),u.push(s[f].get("dataGroupId")),c.push(h))}})}gt([rF]),gt([j5]),gt([bF,VF,ZF,C3,V3,wG,jG,R4,rH,lH,yH,fW,OW,ZW,u$,v$,w$,I$,G$,Z$,nU,zU]),gt(a6),gt(I6),gt(TC),gt(W6),gt(UA),gt(Z6),gt(r8),gt(W8),gt(l7),gt(Xl),gt(D7),gt(M7),gt(B7),gt(U7),gt(j7),gt(n9),gt(v9),gt(L9),gt(B2),gt(H2),gt(j9),gt(aI),gt(oI),gt(rY),gt(dY),gt(mY),gt(UY),gt(y5);function Fi(r){return new Intl.NumberFormat("en",{notation:"compact"}).format(r)}function h0(r){const[e,t,n]=r.split("T")[0].split("-");return`${n}.${t}.${e}`}function YY(r){return Intl.NumberFormat("ua").format(r)}function PI(r){let e=`
|
|
74
|
+
`)),Pt(n)),i.push({dimIdx:y.index,parser:m,comparator:new US(h,p)})});var o=e.sourceFormat;o!==Ce&&o!==_r&&(process.env.NODE_ENV!=="production"&&(n='sourceFormat "'+o+'" is not supported yet'),Pt(n));for(var s=[],l=0,u=e.count();l<u;l++)s.push(e.getRawDataItem(l));return s.sort(function(c,f){for(var h=0;h<i.length;h++){var v=i[h],p=e.retrieveValueFromItem(c,v.dimIdx),d=e.retrieveValueFromItem(f,v.dimIdx);v.parser&&(p=v.parser(p),d=v.parser(d));var g=v.comparator.evaluate(p,d);if(g!==0)return g}return 0}),{data:s}}};function dY(r){r.registerTransform(vY),r.registerTransform(pY)}var gY=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="dataset",t}return e.prototype.init=function(t,n,a){r.prototype.init.call(this,t,n,a),this._sourceManager=new jS(this),JS(this)},e.prototype.mergeOption=function(t,n){r.prototype.mergeOption.call(this,t,n),JS(this)},e.prototype.optionUpdated=function(){this._sourceManager.dirty()},e.prototype.getSourceManager=function(){return this._sourceManager},e.type="dataset",e.defaultOption={seriesLayoutBy:sn},e}(bt),yY=function(r){N(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type="dataset",t}return e.type="dataset",e}(Yt);function mY(r){r.registerComponentModel(gY),r.registerComponentView(yY)}var gn=nn.CMD;function ns(r,e){return Math.abs(r-e)<1e-5}function i0(r){var e=r.data,t=r.len(),n=[],a,i=0,o=0,s=0,l=0;function u(I,L){a&&a.length>2&&n.push(a),a=[I,L]}function c(I,L,P,R){ns(I,P)&&ns(L,R)||a.push(I,L,P,R,P,R)}function f(I,L,P,R,V,O){var B=Math.abs(L-I),W=Math.tan(B/4)*4/3,$=L<I?-1:1,Z=Math.cos(I),Q=Math.sin(I),nt=Math.cos(L),yt=Math.sin(L),Tt=Z*V+P,mt=Q*O+R,it=nt*V+P,_t=yt*O+R,ft=V*W*$,J=O*W*$;a.push(Tt-ft*Q,mt+J*Z,it+ft*yt,_t-J*nt,it,_t)}for(var h,v,p,d,g=0;g<t;){var y=e[g++],m=g===1;switch(m&&(i=e[g],o=e[g+1],s=i,l=o,(y===gn.L||y===gn.C||y===gn.Q)&&(a=[s,l])),y){case gn.M:i=s=e[g++],o=l=e[g++],u(s,l);break;case gn.L:h=e[g++],v=e[g++],c(i,o,h,v),i=h,o=v;break;case gn.C:a.push(e[g++],e[g++],e[g++],e[g++],i=e[g++],o=e[g++]);break;case gn.Q:h=e[g++],v=e[g++],p=e[g++],d=e[g++],a.push(i+2/3*(h-i),o+2/3*(v-o),p+2/3*(h-p),d+2/3*(v-d),p,d),i=p,o=d;break;case gn.A:var _=e[g++],x=e[g++],b=e[g++],S=e[g++],w=e[g++],T=e[g++]+w;g+=1;var D=!e[g++];h=Math.cos(w)*b+_,v=Math.sin(w)*S+x,m?(s=h,l=v,u(s,l)):c(i,o,h,v),i=Math.cos(T)*b+_,o=Math.sin(T)*S+x;for(var M=(D?-1:1)*Math.PI/2,A=w;D?A>T:A<T;A+=M){var E=D?Math.max(A+M,T):Math.min(A+M,T);f(A,E,_,x,b,S)}break;case gn.R:s=i=e[g++],l=o=e[g++],h=s+e[g++],v=l+e[g++],u(h,l),c(h,l,h,v),c(h,v,s,v),c(s,v,s,l),c(s,l,h,l);break;case gn.Z:a&&c(i,o,s,l),i=s,o=l;break}}return a&&a.length>2&&n.push(a),n}function o0(r,e,t,n,a,i,o,s,l,u){if(ns(r,t)&&ns(e,n)&&ns(a,o)&&ns(i,s)){l.push(o,s);return}var c=2/u,f=c*c,h=o-r,v=s-e,p=Math.sqrt(h*h+v*v);h/=p,v/=p;var d=t-r,g=n-e,y=a-o,m=i-s,_=d*d+g*g,x=y*y+m*m;if(_<f&&x<f){l.push(o,s);return}var b=h*d+v*g,S=-h*y-v*m,w=_-b*b,T=x-S*S;if(w<f&&b>=0&&T<f&&S>=0){l.push(o,s);return}var D=[],M=[];qn(r,t,a,o,.5,D),qn(e,n,i,s,.5,M),o0(D[0],M[0],D[1],M[1],D[2],M[2],D[3],M[3],l,u),o0(D[4],M[4],D[5],M[5],D[6],M[6],D[7],M[7],l,u)}function _Y(r,e){var t=i0(r),n=[];e=e||1;for(var a=0;a<t.length;a++){var i=t[a],o=[],s=i[0],l=i[1];o.push(s,l);for(var u=2;u<i.length;){var c=i[u++],f=i[u++],h=i[u++],v=i[u++],p=i[u++],d=i[u++];o0(s,l,c,f,h,v,p,d,o,e),s=p,l=d}n.push(o)}return n}function fI(r,e,t){var n=r[e],a=r[1-e],i=Math.abs(n/a),o=Math.ceil(Math.sqrt(i*t)),s=Math.floor(t/o);s===0&&(s=1,o=t);for(var l=[],u=0;u<o;u++)l.push(s);var c=o*s,f=t-c;if(f>0)for(var u=0;u<f;u++)l[u%o]+=1;return l}function hI(r,e,t){for(var n=r.r0,a=r.r,i=r.startAngle,o=r.endAngle,s=Math.abs(o-i),l=s*a,u=a-n,c=l>Math.abs(u),f=fI([l,u],c?0:1,e),h=(c?s:u)/f.length,v=0;v<f.length;v++)for(var p=(c?u:s)/f[v],d=0;d<f[v];d++){var g={};c?(g.startAngle=i+h*v,g.endAngle=i+h*(v+1),g.r0=n+p*d,g.r=n+p*(d+1)):(g.startAngle=i+p*d,g.endAngle=i+p*(d+1),g.r0=n+h*v,g.r=n+h*(v+1)),g.clockwise=r.clockwise,g.cx=r.cx,g.cy=r.cy,t.push(g)}}function xY(r,e,t){for(var n=r.width,a=r.height,i=n>a,o=fI([n,a],i?0:1,e),s=i?"width":"height",l=i?"height":"width",u=i?"x":"y",c=i?"y":"x",f=r[s]/o.length,h=0;h<o.length;h++)for(var v=r[l]/o[h],p=0;p<o[h];p++){var d={};d[u]=h*f,d[c]=p*v,d[s]=f,d[l]=v,d.x+=r.x,d.y+=r.y,t.push(d)}}function vI(r,e,t,n){return r*n-t*e}function SY(r,e,t,n,a,i,o,s){var l=t-r,u=n-e,c=o-a,f=s-i,h=vI(c,f,l,u);if(Math.abs(h)<1e-6)return null;var v=r-a,p=e-i,d=vI(v,p,c,f)/h;return d<0||d>1?null:new ct(d*l+r,d*u+e)}function bY(r,e,t){var n=new ct;ct.sub(n,t,e),n.normalize();var a=new ct;ct.sub(a,r,e);var i=a.dot(n);return i}function as(r,e){var t=r[r.length-1];t&&t[0]===e[0]&&t[1]===e[1]||r.push(e)}function wY(r,e,t){for(var n=r.length,a=[],i=0;i<n;i++){var o=r[i],s=r[(i+1)%n],l=SY(o[0],o[1],s[0],s[1],e.x,e.y,t.x,t.y);l&&a.push({projPt:bY(l,e,t),pt:l,idx:i})}if(a.length<2)return[{points:r},{points:r}];a.sort(function(g,y){return g.projPt-y.projPt});var u=a[0],c=a[a.length-1];if(c.idx<u.idx){var f=u;u=c,c=f}for(var h=[u.pt.x,u.pt.y],v=[c.pt.x,c.pt.y],p=[h],d=[v],i=u.idx+1;i<=c.idx;i++)as(p,r[i].slice());as(p,v),as(p,h);for(var i=c.idx+1;i<=u.idx+n;i++)as(d,r[i%n].slice());return as(d,h),as(d,v),[{points:p},{points:d}]}function pI(r){var e=r.points,t=[],n=[];nc(e,t,n);var a=new pt(t[0],t[1],n[0]-t[0],n[1]-t[1]),i=a.width,o=a.height,s=a.x,l=a.y,u=new ct,c=new ct;return i>o?(u.x=c.x=s+i/2,u.y=l,c.y=l+o):(u.y=c.y=l+o/2,u.x=s,c.x=s+i),wY(e,u,c)}function bh(r,e,t,n){if(t===1)n.push(e);else{var a=Math.floor(t/2),i=r(e);bh(r,i[0],a,n),bh(r,i[1],t-a,n)}return n}function TY(r,e){for(var t=[],n=0;n<e;n++)t.push(Ep(r));return t}function DY(r,e){e.setStyle(r.style),e.z=r.z,e.z2=r.z2,e.zlevel=r.zlevel}function CY(r){for(var e=[],t=0;t<r.length;)e.push([r[t++],r[t++]]);return e}function AY(r,e){var t=[],n=r.shape,a;switch(r.type){case"rect":xY(n,e,t),a=Ct;break;case"sector":hI(n,e,t),a=Oe;break;case"circle":hI({r0:0,r:n.r,startAngle:0,endAngle:Math.PI*2,cx:n.cx,cy:n.cy},e,t),a=Oe;break;default:var i=r.getComputedTransform(),o=i?Math.sqrt(Math.max(i[0]*i[0]+i[1]*i[1],i[2]*i[2]+i[3]*i[3])):1,s=G(_Y(r.getUpdatedPathProxy(),o),function(y){return CY(y)}),l=s.length;if(l===0)bh(pI,{points:s[0]},e,t);else if(l===e)for(var u=0;u<l;u++)t.push({points:s[u]});else{var c=0,f=G(s,function(y){var m=[],_=[];nc(y,m,_);var x=(_[1]-m[1])*(_[0]-m[0]);return c+=x,{poly:y,area:x}});f.sort(function(y,m){return m.area-y.area});for(var h=e,u=0;u<l;u++){var v=f[u];if(h<=0)break;var p=u===l-1?h:Math.ceil(v.area/c*e);p<0||(bh(pI,{points:v.poly},p,t),h-=p)}}a=Ve;break}if(!a)return TY(r,e);for(var d=[],u=0;u<t.length;u++){var g=new a;g.setShape(t[u]),DY(r,g),d.push(g)}return d}function MY(r,e){var t=r.length,n=e.length;if(t===n)return[r,e];for(var a=[],i=[],o=t<n?r:e,s=Math.min(t,n),l=Math.abs(n-t)/6,u=(s-2)/6,c=Math.ceil(l/u)+1,f=[o[0],o[1]],h=l,v=2;v<s;){var p=o[v-2],d=o[v-1],g=o[v++],y=o[v++],m=o[v++],_=o[v++],x=o[v++],b=o[v++];if(h<=0){f.push(g,y,m,_,x,b);continue}for(var S=Math.min(h,c-1)+1,w=1;w<=S;w++){var T=w/S;qn(p,g,m,x,T,a),qn(d,y,_,b,T,i),p=a[3],d=i[3],f.push(a[1],i[1],a[2],i[2],p,d),g=a[5],y=i[5],m=a[6],_=i[6]}h-=S-1}return o===r?[f,e]:[r,f]}function dI(r,e){for(var t=r.length,n=r[t-2],a=r[t-1],i=[],o=0;o<e.length;)i[o++]=n,i[o++]=a;return i}function EY(r,e){for(var t,n,a,i=[],o=[],s=0;s<Math.max(r.length,e.length);s++){var l=r[s],u=e[s],c=void 0,f=void 0;l?u?(t=MY(l,u),c=t[0],f=t[1],n=c,a=f):(f=dI(a||l,l),c=l):(c=dI(n||u,u),f=u),i.push(c),o.push(f)}return[i,o]}function gI(r){for(var e=0,t=0,n=0,a=r.length,i=0,o=a-2;i<a;o=i,i+=2){var s=r[o],l=r[o+1],u=r[i],c=r[i+1],f=s*c-u*l;e+=f,t+=(s+u)*f,n+=(l+c)*f}return e===0?[r[0]||0,r[1]||0]:[t/e/3,n/e/3,e]}function IY(r,e,t,n){for(var a=(r.length-2)/6,i=1/0,o=0,s=r.length,l=s-2,u=0;u<a;u++){for(var c=u*6,f=0,h=0;h<s;h+=2){var v=h===0?c:(c+h-2)%l+2,p=r[v]-t[0],d=r[v+1]-t[1],g=e[h]-n[0],y=e[h+1]-n[1],m=g-p,_=y-d;f+=m*m+_*_}f<i&&(i=f,o=u)}return o}function LY(r){for(var e=[],t=r.length,n=0;n<t;n+=2)e[n]=r[t-n-2],e[n+1]=r[t-n-1];return e}function PY(r,e,t,n){for(var a=[],i,o=0;o<r.length;o++){var s=r[o],l=e[o],u=gI(s),c=gI(l);i==null&&(i=u[2]<0!=c[2]<0);var f=[],h=[],v=0,p=1/0,d=[],g=s.length;i&&(s=LY(s));for(var y=IY(s,l,u,c)*6,m=g-2,_=0;_<m;_+=2){var x=(y+_)%m+2;f[_+2]=s[x]-u[0],f[_+3]=s[x+1]-u[1]}f[0]=s[y]-u[0],f[1]=s[y+1]-u[1];for(var b=n/t,S=-n/2;S<=n/2;S+=b){for(var w=Math.sin(S),T=Math.cos(S),D=0,_=0;_<s.length;_+=2){var M=f[_],A=f[_+1],E=l[_]-c[0],I=l[_+1]-c[1],L=E*T-I*w,P=E*w+I*T;d[_]=L,d[_+1]=P;var R=L-M,V=P-A;D+=R*R+V*V}if(D<p){p=D,v=S;for(var O=0;O<d.length;O++)h[O]=d[O]}}a.push({from:f,to:h,fromCp:u,toCp:c,rotation:-v})}return a}function wh(r){return r.__isCombineMorphing}var yI="__mOriginal_";function Th(r,e,t){var n=yI+e,a=r[n]||r[e];r[n]||(r[n]=r[e]);var i=t.replace,o=t.after,s=t.before;r[e]=function(){var l=arguments,u;return s&&s.apply(this,l),i?u=i.apply(this,l):u=a.apply(this,l),o&&o.apply(this,l),u}}function nu(r,e){var t=yI+e;r[t]&&(r[e]=r[t],r[t]=null)}function mI(r,e){for(var t=0;t<r.length;t++)for(var n=r[t],a=0;a<n.length;){var i=n[a],o=n[a+1];n[a++]=e[0]*i+e[2]*o+e[4],n[a++]=e[1]*i+e[3]*o+e[5]}}function _I(r,e){var t=r.getUpdatedPathProxy(),n=e.getUpdatedPathProxy(),a=EY(i0(t),i0(n)),i=a[0],o=a[1],s=r.getComputedTransform(),l=e.getComputedTransform();function u(){this.transform=null}s&&mI(i,s),l&&mI(o,l),Th(e,"updateTransform",{replace:u}),e.transform=null;var c=PY(i,o,10,Math.PI),f=[];Th(e,"buildPath",{replace:function(h){for(var v=e.__morphT,p=1-v,d=[],g=0;g<c.length;g++){var y=c[g],m=y.from,_=y.to,x=y.rotation*v,b=y.fromCp,S=y.toCp,w=Math.sin(x),T=Math.cos(x);wu(d,b,S,v);for(var D=0;D<m.length;D+=2){var M=m[D],A=m[D+1],E=_[D],I=_[D+1],L=M*p+E*v,P=A*p+I*v;f[D]=L*T-P*w+d[0],f[D+1]=L*w+P*T+d[1]}var R=f[0],V=f[1];h.moveTo(R,V);for(var D=2;D<m.length;){var E=f[D++],I=f[D++],O=f[D++],B=f[D++],W=f[D++],$=f[D++];R===E&&V===I&&O===W&&B===$?h.lineTo(W,$):h.bezierCurveTo(E,I,O,B,W,$),R=W,V=$}}}})}function s0(r,e,t){if(!r||!e)return e;var n=t.done,a=t.during;_I(r,e),e.__morphT=0;function i(){nu(e,"buildPath"),nu(e,"updateTransform"),e.__morphT=-1,e.createPathProxy(),e.dirtyShape()}return e.animateTo({__morphT:1},rt({during:function(o){e.dirtyShape(),a&&a(o)},done:function(){i(),n&&n()}},t)),e}function kY(r,e,t,n,a,i){var o=16;r=a===t?0:Math.round(32767*(r-t)/(a-t)),e=i===n?0:Math.round(32767*(e-n)/(i-n));for(var s=0,l,u=(1<<o)/2;u>0;u/=2){var c=0,f=0;(r&u)>0&&(c=1),(e&u)>0&&(f=1),s+=u*u*(3*c^f),f===0&&(c===1&&(r=u-1-r,e=u-1-e),l=r,r=e,e=l)}return s}function Dh(r){var e=1/0,t=1/0,n=-1/0,a=-1/0,i=G(r,function(s){var l=s.getBoundingRect(),u=s.getComputedTransform(),c=l.x+l.width/2+(u?u[4]:0),f=l.y+l.height/2+(u?u[5]:0);return e=Math.min(c,e),t=Math.min(f,t),n=Math.max(c,n),a=Math.max(f,a),[c,f]}),o=G(i,function(s,l){return{cp:s,z:kY(s[0],s[1],e,t,n,a),path:r[l]}});return o.sort(function(s,l){return s.z-l.z}).map(function(s){return s.path})}function xI(r){return AY(r.path,r.count)}function l0(){return{fromIndividuals:[],toIndividuals:[],count:0}}function RY(r,e,t){var n=[];function a(b){for(var S=0;S<b.length;S++){var w=b[S];wh(w)?a(w.childrenRef()):w instanceof xt&&n.push(w)}}a(r);var i=n.length;if(!i)return l0();var o=t.dividePath||xI,s=o({path:e,count:i});if(s.length!==i)return console.error("Invalid morphing: unmatched splitted path"),l0();n=Dh(n),s=Dh(s);for(var l=t.done,u=t.during,c=t.individualDelay,f=new bn,h=0;h<i;h++){var v=n[h],p=s[h];p.parent=e,p.copyTransform(f),c||_I(v,p)}e.__isCombineMorphing=!0,e.childrenRef=function(){return s};function d(b){for(var S=0;S<s.length;S++)s[S].addSelfToZr(b)}Th(e,"addSelfToZr",{after:function(b){d(b)}}),Th(e,"removeSelfFromZr",{after:function(b){for(var S=0;S<s.length;S++)s[S].removeSelfFromZr(b)}});function g(){e.__isCombineMorphing=!1,e.__morphT=-1,e.childrenRef=null,nu(e,"addSelfToZr"),nu(e,"removeSelfFromZr")}var y=s.length;if(c)for(var m=y,_=function(){m--,m===0&&(g(),l&&l())},h=0;h<y;h++){var x=c?rt({delay:(t.delay||0)+c(h,y,n[h],s[h]),done:_},t):t;s0(n[h],s[h],x)}else e.__morphT=0,e.animateTo({__morphT:1},rt({during:function(b){for(var S=0;S<y;S++){var w=s[S];w.__morphT=e.__morphT,w.dirtyShape()}u&&u(b)},done:function(){g();for(var b=0;b<r.length;b++)nu(r[b],"updateTransform");l&&l()}},t));return e.__zr&&d(e.__zr),{fromIndividuals:n,toIndividuals:s,count:y}}function NY(r,e,t){var n=e.length,a=[],i=t.dividePath||xI;function o(v){for(var p=0;p<v.length;p++){var d=v[p];wh(d)?o(d.childrenRef()):d instanceof xt&&a.push(d)}}if(wh(r)){o(r.childrenRef());var s=a.length;if(s<n)for(var l=0,u=s;u<n;u++)a.push(Ep(a[l++%s]));a.length=n}else{a=i({path:r,count:n});for(var c=r.getComputedTransform(),u=0;u<a.length;u++)a[u].setLocalTransform(c);if(a.length!==n)return console.error("Invalid morphing: unmatched splitted path"),l0()}a=Dh(a),e=Dh(e);for(var f=t.individualDelay,u=0;u<n;u++){var h=f?rt({delay:(t.delay||0)+f(u,n,a[u],e[u])},t):t;s0(a[u],e[u],h)}return{fromIndividuals:a,toIndividuals:e,count:e.length}}function SI(r){return F(r[0])}function bI(r,e){for(var t=[],n=r.length,a=0;a<n;a++)t.push({one:r[a],many:[]});for(var a=0;a<e.length;a++){var i=e[a].length,o=void 0;for(o=0;o<i;o++)t[o%n].many.push(e[a][o])}for(var s=0,a=n-1;a>=0;a--)if(!t[a].many.length){var l=t[s].many;if(l.length<=1)if(s)s=0;else return t;var i=l.length,u=Math.ceil(i/2);t[a].many=l.slice(u,i),t[s].many=l.slice(0,u),s++}return t}var OY={clone:function(r){for(var e=[],t=1-Math.pow(1-r.path.style.opacity,1/r.count),n=0;n<r.count;n++){var a=Ep(r.path);a.setStyle("opacity",t),e.push(a)}return e},split:null};function u0(r,e,t,n,a,i){if(!r.length||!e.length)return;var o=fo("update",n,a);if(!(o&&o.duration>0))return;var s=n.getModel("universalTransition").get("delay"),l=Object.assign({setToFinal:!0},o),u,c;SI(r)&&(u=r,c=e),SI(e)&&(u=e,c=r);function f(y,m,_,x,b){var S=y.many,w=y.one;if(S.length===1&&!b){var T=m?S[0]:w,D=m?w:S[0];if(wh(T))f({many:[T],one:D},!0,_,x,!0);else{var M=s?rt({delay:s(_,x)},l):l;s0(T,D,M),i(T,D,T,D,M)}}else for(var A=rt({dividePath:OY[t],individualDelay:s&&function(V,O,B,W){return s(V+_,x)}},l),E=m?RY(S,w,A):NY(w,S,A),I=E.fromIndividuals,L=E.toIndividuals,P=I.length,R=0;R<P;R++){var M=s?rt({delay:s(R,P)},l):l;i(I[R],L[R],m?S[R]:y.one,m?y.one:S[R],M)}}for(var h=u?u===r:r.length>e.length,v=u?bI(c,u):bI(h?e:r,[h?r:e]),p=0,d=0;d<v.length;d++)p+=v[d].many.length;for(var g=0,d=0;d<v.length;d++)f(v[d],h,g,p),g+=v[d].many.length}function zi(r){if(!r)return[];if(F(r)){for(var e=[],t=0;t<r.length;t++)e.push(zi(r[t]));return e}var n=[];return r.traverse(function(a){a instanceof xt&&!a.disableMorphing&&!a.invisible&&!a.ignore&&n.push(a)}),n}var wI=1e4,VY=0,TI=1,DI=2,BY=Dt();function zY(r,e){for(var t=r.dimensions,n=0;n<t.length;n++){var a=r.getDimensionInfo(t[n]);if(a&&a.otherDims[e]===0)return t[n]}}function FY(r,e,t){var n=r.getDimensionInfo(t),a=n&&n.ordinalMeta;if(n){var i=r.get(n.name,e);return a&&a.categories[i]||i+""}}function CI(r,e,t,n){var a=n?"itemChildGroupId":"itemGroupId",i=zY(r,a);if(i){var o=FY(r,e,i);return o}var s=r.getRawDataItem(e),l=n?"childGroupId":"groupId";if(s&&s[l])return s[l]+"";if(!n)return t||r.getId(e)}function AI(r){var e=[];return C(r,function(t){var n=t.data,a=t.dataGroupId;if(n.count()>wI){process.env.NODE_ENV!=="production"&&Xt("Universal transition is disabled on large data > 10k.");return}for(var i=n.getIndices(),o=0;o<i.length;o++)e.push({data:n,groupId:CI(n,o,a,!1),childGroupId:CI(n,o,a,!0),divide:t.divide,dataIndex:o})}),e}function c0(r,e,t){r.traverse(function(n){n instanceof xt&&$t(n,{style:{opacity:0}},e,{dataIndex:t,isFrom:!0})})}function f0(r){if(r.parent){var e=r.getComputedTransform();r.setLocalTransform(e),r.parent.remove(r)}}function is(r){r.stopAnimation(),r.isGroup&&r.traverse(function(e){e.stopAnimation()})}function GY(r,e,t){var n=fo("update",t,e);n&&r.traverse(function(a){if(a instanceof pr){var i=RN(a);i&&a.animateFrom({style:i},n)}})}function HY(r,e){var t=r.length;if(t!==e.length)return!1;for(var n=0;n<t;n++){var a=r[n],i=e[n];if(a.data.getId(a.dataIndex)!==i.data.getId(i.dataIndex))return!1}return!0}function MI(r,e,t){var n=AI(r),a=AI(e);function i(_,x,b,S,w){(b||_)&&x.animateFrom({style:b&&b!==_?z(z({},b.style),_.style):_.style},w)}var o=!1,s=VY,l=K(),u=K();n.forEach(function(_){_.groupId&&l.set(_.groupId,!0),_.childGroupId&&u.set(_.childGroupId,!0)});for(var c=0;c<a.length;c++){var f=a[c].groupId;if(u.get(f)){s=TI;break}var h=a[c].childGroupId;if(h&&l.get(h)){s=DI;break}}function v(_,x){return function(b){var S=b.data,w=b.dataIndex;return x?S.getId(w):_?s===TI?b.childGroupId:b.groupId:s===DI?b.childGroupId:b.groupId}}var p=HY(n,a),d={};if(!p)for(var c=0;c<a.length;c++){var g=a[c],y=g.data.getItemGraphicEl(g.dataIndex);y&&(d[y.id]=!0)}function m(_,x){var b=n[x],S=a[_],w=S.data.hostModel,T=b.data.getItemGraphicEl(b.dataIndex),D=S.data.getItemGraphicEl(S.dataIndex);if(T===D){D&&GY(D,S.dataIndex,w);return}T&&d[T.id]||D&&(is(D),T?(is(T),f0(T),o=!0,u0(zi(T),zi(D),S.divide,w,_,i)):c0(D,w,_))}new Pn(n,a,v(!0,p),v(!1,p),null,"multiple").update(m).updateManyToOne(function(_,x){var b=a[_],S=b.data,w=S.hostModel,T=S.getItemGraphicEl(b.dataIndex),D=Nt(G(x,function(M){return n[M].data.getItemGraphicEl(n[M].dataIndex)}),function(M){return M&&M!==T&&!d[M.id]});T&&(is(T),D.length?(C(D,function(M){is(M),f0(M)}),o=!0,u0(zi(D),zi(T),b.divide,w,_,i)):c0(T,w,b.dataIndex))}).updateOneToMany(function(_,x){var b=n[x],S=b.data.getItemGraphicEl(b.dataIndex);if(!(S&&d[S.id])){var w=Nt(G(_,function(D){return a[D].data.getItemGraphicEl(a[D].dataIndex)}),function(D){return D&&D!==S}),T=a[_[0]].data.hostModel;w.length&&(C(w,function(D){return is(D)}),S?(is(S),f0(S),o=!0,u0(zi(S),zi(w),b.divide,T,_[0],i)):C(w,function(D){return c0(D,T,_[0])}))}}).updateManyToMany(function(_,x){new Pn(x,_,function(b){return n[b].data.getId(n[b].dataIndex)},function(b){return a[b].data.getId(a[b].dataIndex)}).update(function(b,S){m(_[b],x[S])}).execute()}).execute(),o&&C(e,function(_){var x=_.data,b=x.hostModel,S=b&&t.getViewOfSeriesModel(b),w=fo("update",b,0);S&&b.isAnimationEnabled()&&w&&w.duration>0&&S.group.traverse(function(T){T instanceof xt&&!T.animators.length&&T.animateFrom({style:{opacity:0}},w)})})}function EI(r){var e=r.getModel("universalTransition").get("seriesKey");return e||r.id}function II(r){return F(r)?r.sort().join(","):r}function wa(r){if(r.hostModel)return r.hostModel.getModel("universalTransition").get("divideShape")}function WY(r,e){var t=K(),n=K(),a=K();C(r.oldSeries,function(o,s){var l=r.oldDataGroupIds[s],u=r.oldData[s],c=EI(o),f=II(c);n.set(f,{dataGroupId:l,data:u}),F(c)&&C(c,function(h){a.set(h,{key:f,dataGroupId:l,data:u})})});function i(o){t.get(o)&&Xt("Duplicated seriesKey in universalTransition "+o)}return C(e.updatedSeries,function(o){if(o.isUniversalTransitionEnabled()&&o.isAnimationEnabled()){var s=o.get("dataGroupId"),l=o.getData(),u=EI(o),c=II(u),f=n.get(c);if(f)process.env.NODE_ENV!=="production"&&i(c),t.set(c,{oldSeries:[{dataGroupId:f.dataGroupId,divide:wa(f.data),data:f.data}],newSeries:[{dataGroupId:s,divide:wa(l),data:l}]});else if(F(u)){process.env.NODE_ENV!=="production"&&i(c);var h=[];C(u,function(d){var g=n.get(d);g.data&&h.push({dataGroupId:g.dataGroupId,divide:wa(g.data),data:g.data})}),h.length&&t.set(c,{oldSeries:h,newSeries:[{dataGroupId:s,data:l,divide:wa(l)}]})}else{var v=a.get(u);if(v){var p=t.get(v.key);p||(p={oldSeries:[{dataGroupId:v.dataGroupId,data:v.data,divide:wa(v.data)}],newSeries:[]},t.set(v.key,p)),p.newSeries.push({dataGroupId:s,data:l,divide:wa(l)})}}}}),t}function LI(r,e){for(var t=0;t<r.length;t++){var n=e.seriesIndex!=null&&e.seriesIndex===r[t].seriesIndex||e.seriesId!=null&&e.seriesId===r[t].id;if(n)return t}}function $Y(r,e,t,n){var a=[],i=[];C(Ot(r.from),function(o){var s=LI(e.oldSeries,o);s>=0&&a.push({dataGroupId:e.oldDataGroupIds[s],data:e.oldData[s],divide:wa(e.oldData[s]),groupIdDim:o.dimension})}),C(Ot(r.to),function(o){var s=LI(t.updatedSeries,o);if(s>=0){var l=t.updatedSeries[s].getData();i.push({dataGroupId:e.oldDataGroupIds[s],data:l,divide:wa(l),groupIdDim:o.dimension})}}),a.length>0&&i.length>0&&MI(a,i,n)}function UY(r){r.registerUpdateLifecycle("series:beforeupdate",function(e,t,n){C(Ot(n.seriesTransition),function(a){C(Ot(a.to),function(i){for(var o=n.updatedSeries,s=0;s<o.length;s++)(i.seriesIndex!=null&&i.seriesIndex===o[s].seriesIndex||i.seriesId!=null&&i.seriesId===o[s].id)&&(o[s][Hc]=!0)})})}),r.registerUpdateLifecycle("series:transition",function(e,t,n){var a=BY(t);if(a.oldSeries&&n.updatedSeries&&n.optionChanged){var i=n.seriesTransition;if(i)C(Ot(i),function(v){$Y(v,a,n,t)});else{var o=WY(a,n);C(o.keys(),function(v){var p=o.get(v);MI(p.oldSeries,p.newSeries,t)})}C(n.updatedSeries,function(v){v[Hc]&&(v[Hc]=!1)})}for(var s=e.getSeries(),l=a.oldSeries=[],u=a.oldDataGroupIds=[],c=a.oldData=[],f=0;f<s.length;f++){var h=s[f].getData();h.count()<wI&&(l.push(s[f]),u.push(s[f].get("dataGroupId")),c.push(h))}})}gt([rF]),gt([j5]),gt([bF,VF,ZF,C3,V3,wG,jG,R4,rH,lH,yH,fW,OW,ZW,u$,v$,w$,I$,G$,Z$,nU,zU]),gt(a6),gt(I6),gt(TC),gt(W6),gt(UA),gt(Z6),gt(r8),gt(W8),gt(l7),gt(Xl),gt(D7),gt(M7),gt(B7),gt(U7),gt(j7),gt(n9),gt(v9),gt(L9),gt(B2),gt(H2),gt(j9),gt(aI),gt(oI),gt(rY),gt(dY),gt(mY),gt(UY),gt(y5);function Fi(r){return new Intl.NumberFormat("en",{notation:"compact"}).format(r)}function h0(r){const[e,t,n]=r.split("T")[0].split("-");return`${n}.${t}.${e}`}function YY(r){return Intl.NumberFormat("ua").format(r)}const ZY={show_label:!1,show_legend:!1,label:null,legend:null,colors:null,color:"#5470c6"};function PI(r){let e=`
|
|
75
75
|
<div
|
|
76
76
|
class='ms-0.5 mb-2 px-2 py-1 bg-white border border-gray-200 text-gray-800 rounded-lg shadow-md min-w-[180px]'>
|
|
77
77
|
<div class=" flex p-2 justify-between font-semibold !text-sm !bg-white border-b !border-gray-200 text-gray-800 rounded-t-lg">
|
|
@@ -83,12 +83,12 @@ echarts.use([`+E+"]);":"Unknown series "+A))}return}if(f==="tooltip"){if(_){proc
|
|
|
83
83
|
<div class='ml-2'> ${t.seriesName} </div>
|
|
84
84
|
</div>
|
|
85
85
|
<div class="mr-[10px]"> ${Fi(t.value)} </div>
|
|
86
|
-
</div>`}),e+="</div>",e}function v0(r){const e={label:{show:r==null?void 0:r.show_label,...r.label},legend:r!=null&&r.show_legend?{...r==null?void 0:r.legend}:null,barWidth:"70%",grid:{borderColor:"#e5e7eb"}};return(r!=null&&r.colors||r!=null&&r.color)&&(e.color=(r==null?void 0:r.colors)||(r==null?void 0:r.color)),e}function kI(r){return{color:"#9ca3af",fontSize:13,fontFamily:"Inter, ui-sans-serif",fontWeight:400,name:r==null?void 0:r.label,formatter:r==null?void 0:r.formatter,margin:r==null?void 0:r.margin}}function RI(r){return{color:"#9ca3af",fontSize:13,fontFamily:"Inter, ui-sans-serif",fontWeight:400,name:r==null?void 0:r.label,formatter:(r==null?void 0:r.formatter)||function(e){return Fi(e)},margin:r==null?void 0:r.margin}}const me=(r,e)=>{const t=r.__vccOpts||r;for(const[n,a]of e)t[n]=a;return t},ZY={props:["source","dimensions","title","dimensionsType","style","name"],data(){return{myChartvt:null,label:null}},computed:{uniqueID(){return`vt-${this.name}-chart`}},async mounted(){const{series:r,xs:e,ys:t}=this.prepareData();r&&this.initChart(r,e,t)},methods:{prepareData(){var r,e,t,n;try{const a=this.dimensions||Object.keys((r=this.source)==null?void 0:r[0]),i=Array.from(new Set(this.source.map(f=>f[a[0]])));let o;((e=this.dimensionsType)==null?void 0:e[0])==="date"||a[0].includes("date")?o=i.map(f=>h0(f)):o=[...i];let s,l;(t=this.style)!=null&&t.horizontal?l=[...o]:s=[...o];const u=Array.from(new Set(this.source.map(f=>f[a[1]])));let c;return(n=this.style)!=null&&n.stack?c=a.slice(1).map((h,v)=>({name:h,type:"bar",stack:"a",data:this.source.filter(p=>parseFloat(p[h])).map(p=>parseFloat(p[h]))})):c=[{name:this.title||this.name,type:"bar",data:u,stack:"a"}],{series:c,xs:s,ys:l}}catch(a){console.error(a)}},async initChart(r,e,t){try{const n=document.getElementById(this.uniqueID),a=zd(n),i={tooltip:{trigger:"axis",axisPointer:{type:"shadow"},appendToBody:!0,backgroundColor:"transparent",shadowColor:"transparent",borderColor:"transparent",formatter:o=>PI(o)},xAxis:{data:e,axisLabel:{...kI()}},yAxis:{data:t,axisLabel:{...RI()}},series:r,...v0(this.style)};a.setOption(i),a.resize(),window.addEventListener("resize",()=>{a.resize()})}catch(n){console.error(n)}}}},XY=["id"];function qY(r,e,t,n,a,i){return k.openBlock(),k.createElementBlock("div",{id:i.uniqueID,class:"min-h-[300px] h-full w-full"},null,8,XY)}const Ch=me(ZY,[["render",qY]]),KY=Object.freeze(Object.defineProperty({__proto__:null,default:Ch},Symbol.toStringTag,{value:"Module"}));function NI(r,e){return function(){return r.apply(e,arguments)}}const{toString:jY}=Object.prototype,{getPrototypeOf:p0}=Object,Ah=(r=>e=>{const t=jY.call(e);return r[t]||(r[t]=t.slice(8,-1).toLowerCase())})(Object.create(null)),Yr=r=>(r=r.toLowerCase(),e=>Ah(e)===r),Mh=r=>e=>typeof e===r,{isArray:os}=Array,au=Mh("undefined");function JY(r){return r!==null&&!au(r)&&r.constructor!==null&&!au(r.constructor)&&or(r.constructor.isBuffer)&&r.constructor.isBuffer(r)}const OI=Yr("ArrayBuffer");function QY(r){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(r):e=r&&r.buffer&&OI(r.buffer),e}const tZ=Mh("string"),or=Mh("function"),VI=Mh("number"),Eh=r=>r!==null&&typeof r=="object",eZ=r=>r===!0||r===!1,Ih=r=>{if(Ah(r)!=="object")return!1;const e=p0(r);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in r)&&!(Symbol.iterator in r)},rZ=Yr("Date"),nZ=Yr("File"),aZ=Yr("Blob"),iZ=Yr("FileList"),oZ=r=>Eh(r)&&or(r.pipe),sZ=r=>{let e;return r&&(typeof FormData=="function"&&r instanceof FormData||or(r.append)&&((e=Ah(r))==="formdata"||e==="object"&&or(r.toString)&&r.toString()==="[object FormData]"))},lZ=Yr("URLSearchParams"),[uZ,cZ,fZ,hZ]=["ReadableStream","Request","Response","Headers"].map(Yr),vZ=r=>r.trim?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function iu(r,e,{allOwnKeys:t=!1}={}){if(r===null||typeof r>"u")return;let n,a;if(typeof r!="object"&&(r=[r]),os(r))for(n=0,a=r.length;n<a;n++)e.call(null,r[n],n,r);else{const i=t?Object.getOwnPropertyNames(r):Object.keys(r),o=i.length;let s;for(n=0;n<o;n++)s=i[n],e.call(null,r[s],s,r)}}function BI(r,e){e=e.toLowerCase();const t=Object.keys(r);let n=t.length,a;for(;n-- >0;)if(a=t[n],e===a.toLowerCase())return a;return null}const Gi=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,zI=r=>!au(r)&&r!==Gi;function d0(){const{caseless:r}=zI(this)&&this||{},e={},t=(n,a)=>{const i=r&&BI(e,a)||a;Ih(e[i])&&Ih(n)?e[i]=d0(e[i],n):Ih(n)?e[i]=d0({},n):os(n)?e[i]=n.slice():e[i]=n};for(let n=0,a=arguments.length;n<a;n++)arguments[n]&&iu(arguments[n],t);return e}const pZ=(r,e,t,{allOwnKeys:n}={})=>(iu(e,(a,i)=>{t&&or(a)?r[i]=NI(a,t):r[i]=a},{allOwnKeys:n}),r),dZ=r=>(r.charCodeAt(0)===65279&&(r=r.slice(1)),r),gZ=(r,e,t,n)=>{r.prototype=Object.create(e.prototype,n),r.prototype.constructor=r,Object.defineProperty(r,"super",{value:e.prototype}),t&&Object.assign(r.prototype,t)},yZ=(r,e,t,n)=>{let a,i,o;const s={};if(e=e||{},r==null)return e;do{for(a=Object.getOwnPropertyNames(r),i=a.length;i-- >0;)o=a[i],(!n||n(o,r,e))&&!s[o]&&(e[o]=r[o],s[o]=!0);r=t!==!1&&p0(r)}while(r&&(!t||t(r,e))&&r!==Object.prototype);return e},mZ=(r,e,t)=>{r=String(r),(t===void 0||t>r.length)&&(t=r.length),t-=e.length;const n=r.indexOf(e,t);return n!==-1&&n===t},_Z=r=>{if(!r)return null;if(os(r))return r;let e=r.length;if(!VI(e))return null;const t=new Array(e);for(;e-- >0;)t[e]=r[e];return t},xZ=(r=>e=>r&&e instanceof r)(typeof Uint8Array<"u"&&p0(Uint8Array)),SZ=(r,e)=>{const n=(r&&r[Symbol.iterator]).call(r);let a;for(;(a=n.next())&&!a.done;){const i=a.value;e.call(r,i[0],i[1])}},bZ=(r,e)=>{let t;const n=[];for(;(t=r.exec(e))!==null;)n.push(t);return n},wZ=Yr("HTMLFormElement"),TZ=r=>r.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,n,a){return n.toUpperCase()+a}),FI=(({hasOwnProperty:r})=>(e,t)=>r.call(e,t))(Object.prototype),DZ=Yr("RegExp"),GI=(r,e)=>{const t=Object.getOwnPropertyDescriptors(r),n={};iu(t,(a,i)=>{let o;(o=e(a,i,r))!==!1&&(n[i]=o||a)}),Object.defineProperties(r,n)},CZ=r=>{GI(r,(e,t)=>{if(or(r)&&["arguments","caller","callee"].indexOf(t)!==-1)return!1;const n=r[t];if(or(n)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+t+"'")})}})},AZ=(r,e)=>{const t={},n=a=>{a.forEach(i=>{t[i]=!0})};return os(r)?n(r):n(String(r).split(e)),t},MZ=()=>{},EZ=(r,e)=>r!=null&&Number.isFinite(r=+r)?r:e,g0="abcdefghijklmnopqrstuvwxyz",HI="0123456789",WI={DIGIT:HI,ALPHA:g0,ALPHA_DIGIT:g0+g0.toUpperCase()+HI},IZ=(r=16,e=WI.ALPHA_DIGIT)=>{let t="";const{length:n}=e;for(;r--;)t+=e[Math.random()*n|0];return t};function LZ(r){return!!(r&&or(r.append)&&r[Symbol.toStringTag]==="FormData"&&r[Symbol.iterator])}const PZ=r=>{const e=new Array(10),t=(n,a)=>{if(Eh(n)){if(e.indexOf(n)>=0)return;if(!("toJSON"in n)){e[a]=n;const i=os(n)?[]:{};return iu(n,(o,s)=>{const l=t(o,a+1);!au(l)&&(i[s]=l)}),e[a]=void 0,i}}return n};return t(r,0)},kZ=Yr("AsyncFunction"),RZ=r=>r&&(Eh(r)||or(r))&&or(r.then)&&or(r.catch),$I=((r,e)=>r?setImmediate:e?((t,n)=>(Gi.addEventListener("message",({source:a,data:i})=>{a===Gi&&i===t&&n.length&&n.shift()()},!1),a=>{n.push(a),Gi.postMessage(t,"*")}))(`axios@${Math.random()}`,[]):t=>setTimeout(t))(typeof setImmediate=="function",or(Gi.postMessage)),NZ=typeof queueMicrotask<"u"?queueMicrotask.bind(Gi):typeof process<"u"&&process.nextTick||$I,H={isArray:os,isArrayBuffer:OI,isBuffer:JY,isFormData:sZ,isArrayBufferView:QY,isString:tZ,isNumber:VI,isBoolean:eZ,isObject:Eh,isPlainObject:Ih,isReadableStream:uZ,isRequest:cZ,isResponse:fZ,isHeaders:hZ,isUndefined:au,isDate:rZ,isFile:nZ,isBlob:aZ,isRegExp:DZ,isFunction:or,isStream:oZ,isURLSearchParams:lZ,isTypedArray:xZ,isFileList:iZ,forEach:iu,merge:d0,extend:pZ,trim:vZ,stripBOM:dZ,inherits:gZ,toFlatObject:yZ,kindOf:Ah,kindOfTest:Yr,endsWith:mZ,toArray:_Z,forEachEntry:SZ,matchAll:bZ,isHTMLForm:wZ,hasOwnProperty:FI,hasOwnProp:FI,reduceDescriptors:GI,freezeMethods:CZ,toObjectSet:AZ,toCamelCase:TZ,noop:MZ,toFiniteNumber:EZ,findKey:BI,global:Gi,isContextDefined:zI,ALPHABET:WI,generateString:IZ,isSpecCompliantForm:LZ,toJSONObject:PZ,isAsyncFn:kZ,isThenable:RZ,setImmediate:$I,asap:NZ};function At(r,e,t,n,a){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=r,this.name="AxiosError",e&&(this.code=e),t&&(this.config=t),n&&(this.request=n),a&&(this.response=a,this.status=a.status?a.status:null)}H.inherits(At,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:H.toJSONObject(this.config),code:this.code,status:this.status}}});const UI=At.prototype,YI={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(r=>{YI[r]={value:r}}),Object.defineProperties(At,YI),Object.defineProperty(UI,"isAxiosError",{value:!0}),At.from=(r,e,t,n,a,i)=>{const o=Object.create(UI);return H.toFlatObject(r,o,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),At.call(o,r.message,e,t,n,a),o.cause=r,o.name=r.name,i&&Object.assign(o,i),o};const OZ=null;function y0(r){return H.isPlainObject(r)||H.isArray(r)}function ZI(r){return H.endsWith(r,"[]")?r.slice(0,-2):r}function XI(r,e,t){return r?r.concat(e).map(function(a,i){return a=ZI(a),!t&&i?"["+a+"]":a}).join(t?".":""):e}function VZ(r){return H.isArray(r)&&!r.some(y0)}const BZ=H.toFlatObject(H,{},null,function(e){return/^is[A-Z]/.test(e)});function Lh(r,e,t){if(!H.isObject(r))throw new TypeError("target must be an object");e=e||new FormData,t=H.toFlatObject(t,{metaTokens:!0,dots:!1,indexes:!1},!1,function(d,g){return!H.isUndefined(g[d])});const n=t.metaTokens,a=t.visitor||c,i=t.dots,o=t.indexes,l=(t.Blob||typeof Blob<"u"&&Blob)&&H.isSpecCompliantForm(e);if(!H.isFunction(a))throw new TypeError("visitor must be a function");function u(p){if(p===null)return"";if(H.isDate(p))return p.toISOString();if(!l&&H.isBlob(p))throw new At("Blob is not supported. Use a Buffer instead.");return H.isArrayBuffer(p)||H.isTypedArray(p)?l&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function c(p,d,g){let y=p;if(p&&!g&&typeof p=="object"){if(H.endsWith(d,"{}"))d=n?d:d.slice(0,-2),p=JSON.stringify(p);else if(H.isArray(p)&&VZ(p)||(H.isFileList(p)||H.endsWith(d,"[]"))&&(y=H.toArray(p)))return d=ZI(d),y.forEach(function(_,x){!(H.isUndefined(_)||_===null)&&e.append(o===!0?XI([d],x,i):o===null?d:d+"[]",u(_))}),!1}return y0(p)?!0:(e.append(XI(g,d,i),u(p)),!1)}const f=[],h=Object.assign(BZ,{defaultVisitor:c,convertValue:u,isVisitable:y0});function v(p,d){if(!H.isUndefined(p)){if(f.indexOf(p)!==-1)throw Error("Circular reference detected in "+d.join("."));f.push(p),H.forEach(p,function(y,m){(!(H.isUndefined(y)||y===null)&&a.call(e,y,H.isString(m)?m.trim():m,d,h))===!0&&v(y,d?d.concat(m):[m])}),f.pop()}}if(!H.isObject(r))throw new TypeError("data must be an object");return v(r),e}function qI(r){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(r).replace(/[!'()~]|%20|%00/g,function(n){return e[n]})}function m0(r,e){this._pairs=[],r&&Lh(r,this,e)}const KI=m0.prototype;KI.append=function(e,t){this._pairs.push([e,t])},KI.toString=function(e){const t=e?function(n){return e.call(this,n,qI)}:qI;return this._pairs.map(function(a){return t(a[0])+"="+t(a[1])},"").join("&")};function zZ(r){return encodeURIComponent(r).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function jI(r,e,t){if(!e)return r;const n=t&&t.encode||zZ,a=t&&t.serialize;let i;if(a?i=a(e,t):i=H.isURLSearchParams(e)?e.toString():new m0(e,t).toString(n),i){const o=r.indexOf("#");o!==-1&&(r=r.slice(0,o)),r+=(r.indexOf("?")===-1?"?":"&")+i}return r}class JI{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){H.forEach(this.handlers,function(n){n!==null&&e(n)})}}const QI={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},FZ={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:m0,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},_0=typeof window<"u"&&typeof document<"u",x0=typeof navigator=="object"&&navigator||void 0,GZ=_0&&(!x0||["ReactNative","NativeScript","NS"].indexOf(x0.product)<0),HZ=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",WZ=_0&&window.location.href||"http://localhost",Ke={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:_0,hasStandardBrowserEnv:GZ,hasStandardBrowserWebWorkerEnv:HZ,navigator:x0,origin:WZ},Symbol.toStringTag,{value:"Module"})),...FZ};function $Z(r,e){return Lh(r,new Ke.classes.URLSearchParams,Object.assign({visitor:function(t,n,a,i){return Ke.isNode&&H.isBuffer(t)?(this.append(n,t.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},e))}function UZ(r){return H.matchAll(/\w+|\[(\w*)]/g,r).map(e=>e[0]==="[]"?"":e[1]||e[0])}function YZ(r){const e={},t=Object.keys(r);let n;const a=t.length;let i;for(n=0;n<a;n++)i=t[n],e[i]=r[i];return e}function tL(r){function e(t,n,a,i){let o=t[i++];if(o==="__proto__")return!0;const s=Number.isFinite(+o),l=i>=t.length;return o=!o&&H.isArray(a)?a.length:o,l?(H.hasOwnProp(a,o)?a[o]=[a[o],n]:a[o]=n,!s):((!a[o]||!H.isObject(a[o]))&&(a[o]=[]),e(t,n,a[o],i)&&H.isArray(a[o])&&(a[o]=YZ(a[o])),!s)}if(H.isFormData(r)&&H.isFunction(r.entries)){const t={};return H.forEachEntry(r,(n,a)=>{e(UZ(n),a,t,0)}),t}return null}function ZZ(r,e,t){if(H.isString(r))try{return(e||JSON.parse)(r),H.trim(r)}catch(n){if(n.name!=="SyntaxError")throw n}return(0,JSON.stringify)(r)}const ou={transitional:QI,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",a=n.indexOf("application/json")>-1,i=H.isObject(e);if(i&&H.isHTMLForm(e)&&(e=new FormData(e)),H.isFormData(e))return a?JSON.stringify(tL(e)):e;if(H.isArrayBuffer(e)||H.isBuffer(e)||H.isStream(e)||H.isFile(e)||H.isBlob(e)||H.isReadableStream(e))return e;if(H.isArrayBufferView(e))return e.buffer;if(H.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let s;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return $Z(e,this.formSerializer).toString();if((s=H.isFileList(e))||n.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Lh(s?{"files[]":e}:e,l&&new l,this.formSerializer)}}return i||a?(t.setContentType("application/json",!1),ZZ(e)):e}],transformResponse:[function(e){const t=this.transitional||ou.transitional,n=t&&t.forcedJSONParsing,a=this.responseType==="json";if(H.isResponse(e)||H.isReadableStream(e))return e;if(e&&H.isString(e)&&(n&&!this.responseType||a)){const o=!(t&&t.silentJSONParsing)&&a;try{return JSON.parse(e)}catch(s){if(o)throw s.name==="SyntaxError"?At.from(s,At.ERR_BAD_RESPONSE,this,null,this.response):s}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ke.classes.FormData,Blob:Ke.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};H.forEach(["delete","get","head","post","put","patch"],r=>{ou.headers[r]={}});const XZ=H.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),qZ=r=>{const e={};let t,n,a;return r&&r.split(`
|
|
87
|
-
`).forEach(function(o){a=o.indexOf(":"),t=o.substring(0,a).trim().toLowerCase(),n=o.substring(a+1).trim(),!(!t||e[t]&&
|
|
88
|
-
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach(a=>n.set(a)),n}static accessor(e){const n=(this[eL]=this[eL]={accessors:{}}).accessors,a=this.prototype;function i(o){const s=su(o);n[s]||(QZ(a,o),n[s]=!0)}return H.isArray(e)?e.forEach(i):i(e),this}}je.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),H.reduceDescriptors(je.prototype,({value:r},e)=>{let t=e[0].toUpperCase()+e.slice(1);return{get:()=>r,set(n){this[t]=n}}}),H.freezeMethods(je);function b0(r,e){const t=this||ou,n=e||t,a=je.from(n.headers);let i=n.data;return H.forEach(r,function(s){i=s.call(t,i,a.normalize(),e?e.status:void 0)}),a.normalize(),i}function rL(r){return!!(r&&r.__CANCEL__)}function ss(r,e,t){At.call(this,r??"canceled",At.ERR_CANCELED,e,t),this.name="CanceledError"}H.inherits(ss,At,{__CANCEL__:!0});function nL(r,e,t){const n=t.config.validateStatus;!t.status||!n||n(t.status)?r(t):e(new At("Request failed with status code "+t.status,[At.ERR_BAD_REQUEST,At.ERR_BAD_RESPONSE][Math.floor(t.status/100)-4],t.config,t.request,t))}function tX(r){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(r);return e&&e[1]||""}function eX(r,e){r=r||10;const t=new Array(r),n=new Array(r);let a=0,i=0,o;return e=e!==void 0?e:1e3,function(l){const u=Date.now(),c=n[i];o||(o=u),t[a]=l,n[a]=u;let f=i,h=0;for(;f!==a;)h+=t[f++],f=f%r;if(a=(a+1)%r,a===i&&(i=(i+1)%r),u-o<e)return;const v=c&&u-c;return v?Math.round(h*1e3/v):void 0}}function rX(r,e){let t=0,n=1e3/e,a,i;const o=(u,c=Date.now())=>{t=c,a=null,i&&(clearTimeout(i),i=null),r.apply(null,u)};return[(...u)=>{const c=Date.now(),f=c-t;f>=n?o(u,c):(a=u,i||(i=setTimeout(()=>{i=null,o(a)},n-f)))},()=>a&&o(a)]}const kh=(r,e,t=3)=>{let n=0;const a=eX(50,250);return rX(i=>{const o=i.loaded,s=i.lengthComputable?i.total:void 0,l=o-n,u=a(l),c=o<=s;n=o;const f={loaded:o,total:s,progress:s?o/s:void 0,bytes:l,rate:u||void 0,estimated:u&&s&&c?(s-o)/u:void 0,event:i,lengthComputable:s!=null,[e?"download":"upload"]:!0};r(f)},t)},aL=(r,e)=>{const t=r!=null;return[n=>e[0]({lengthComputable:t,total:r,loaded:n}),e[1]]},iL=r=>(...e)=>H.asap(()=>r(...e)),nX=Ke.hasStandardBrowserEnv?function(){const e=Ke.navigator&&/(msie|trident)/i.test(Ke.navigator.userAgent),t=document.createElement("a");let n;function a(i){let o=i;return e&&(t.setAttribute("href",o),o=t.href),t.setAttribute("href",o),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:t.pathname.charAt(0)==="/"?t.pathname:"/"+t.pathname}}return n=a(window.location.href),function(o){const s=H.isString(o)?a(o):o;return s.protocol===n.protocol&&s.host===n.host}}():function(){return function(){return!0}}(),aX=Ke.hasStandardBrowserEnv?{write(r,e,t,n,a,i){const o=[r+"="+encodeURIComponent(e)];H.isNumber(t)&&o.push("expires="+new Date(t).toGMTString()),H.isString(n)&&o.push("path="+n),H.isString(a)&&o.push("domain="+a),i===!0&&o.push("secure"),document.cookie=o.join("; ")},read(r){const e=document.cookie.match(new RegExp("(^|;\\s*)("+r+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(r){this.write(r,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function iX(r){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(r)}function oX(r,e){return e?r.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):r}function oL(r,e){return r&&!iX(e)?oX(r,e):e}const sL=r=>r instanceof je?{...r}:r;function Hi(r,e){e=e||{};const t={};function n(u,c,f){return H.isPlainObject(u)&&H.isPlainObject(c)?H.merge.call({caseless:f},u,c):H.isPlainObject(c)?H.merge({},c):H.isArray(c)?c.slice():c}function a(u,c,f){if(H.isUndefined(c)){if(!H.isUndefined(u))return n(void 0,u,f)}else return n(u,c,f)}function i(u,c){if(!H.isUndefined(c))return n(void 0,c)}function o(u,c){if(H.isUndefined(c)){if(!H.isUndefined(u))return n(void 0,u)}else return n(void 0,c)}function s(u,c,f){if(f in e)return n(u,c);if(f in r)return n(void 0,u)}const l={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:s,headers:(u,c)=>a(sL(u),sL(c),!0)};return H.forEach(Object.keys(Object.assign({},r,e)),function(c){const f=l[c]||a,h=f(r[c],e[c],c);H.isUndefined(h)&&f!==s||(t[c]=h)}),t}const lL=r=>{const e=Hi({},r);let{data:t,withXSRFToken:n,xsrfHeaderName:a,xsrfCookieName:i,headers:o,auth:s}=e;e.headers=o=je.from(o),e.url=jI(oL(e.baseURL,e.url),r.params,r.paramsSerializer),s&&o.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")));let l;if(H.isFormData(t)){if(Ke.hasStandardBrowserEnv||Ke.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if((l=o.getContentType())!==!1){const[u,...c]=l?l.split(";").map(f=>f.trim()).filter(Boolean):[];o.setContentType([u||"multipart/form-data",...c].join("; "))}}if(Ke.hasStandardBrowserEnv&&(n&&H.isFunction(n)&&(n=n(e)),n||n!==!1&&nX(e.url))){const u=a&&i&&aX.read(i);u&&o.set(a,u)}return e},sX=typeof XMLHttpRequest<"u"&&function(r){return new Promise(function(t,n){const a=lL(r);let i=a.data;const o=je.from(a.headers).normalize();let{responseType:s,onUploadProgress:l,onDownloadProgress:u}=a,c,f,h,v,p;function d(){v&&v(),p&&p(),a.cancelToken&&a.cancelToken.unsubscribe(c),a.signal&&a.signal.removeEventListener("abort",c)}let g=new XMLHttpRequest;g.open(a.method.toUpperCase(),a.url,!0),g.timeout=a.timeout;function y(){if(!g)return;const _=je.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders()),b={data:!s||s==="text"||s==="json"?g.responseText:g.response,status:g.status,statusText:g.statusText,headers:_,config:r,request:g};nL(function(w){t(w),d()},function(w){n(w),d()},b),g=null}"onloadend"in g?g.onloadend=y:g.onreadystatechange=function(){!g||g.readyState!==4||g.status===0&&!(g.responseURL&&g.responseURL.indexOf("file:")===0)||setTimeout(y)},g.onabort=function(){g&&(n(new At("Request aborted",At.ECONNABORTED,r,g)),g=null)},g.onerror=function(){n(new At("Network Error",At.ERR_NETWORK,r,g)),g=null},g.ontimeout=function(){let x=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const b=a.transitional||QI;a.timeoutErrorMessage&&(x=a.timeoutErrorMessage),n(new At(x,b.clarifyTimeoutError?At.ETIMEDOUT:At.ECONNABORTED,r,g)),g=null},i===void 0&&o.setContentType(null),"setRequestHeader"in g&&H.forEach(o.toJSON(),function(x,b){g.setRequestHeader(b,x)}),H.isUndefined(a.withCredentials)||(g.withCredentials=!!a.withCredentials),s&&s!=="json"&&(g.responseType=a.responseType),u&&([h,p]=kh(u,!0),g.addEventListener("progress",h)),l&&g.upload&&([f,v]=kh(l),g.upload.addEventListener("progress",f),g.upload.addEventListener("loadend",v)),(a.cancelToken||a.signal)&&(c=_=>{g&&(n(!_||_.type?new ss(null,r,g):_),g.abort(),g=null)},a.cancelToken&&a.cancelToken.subscribe(c),a.signal&&(a.signal.aborted?c():a.signal.addEventListener("abort",c)));const m=tX(a.url);if(m&&Ke.protocols.indexOf(m)===-1){n(new At("Unsupported protocol "+m+":",At.ERR_BAD_REQUEST,r));return}g.send(i||null)})},lX=(r,e)=>{const{length:t}=r=r?r.filter(Boolean):[];if(e||t){let n=new AbortController,a;const i=function(u){if(!a){a=!0,s();const c=u instanceof Error?u:this.reason;n.abort(c instanceof At?c:new ss(c instanceof Error?c.message:c))}};let o=e&&setTimeout(()=>{o=null,i(new At(`timeout ${e} of ms exceeded`,At.ETIMEDOUT))},e);const s=()=>{r&&(o&&clearTimeout(o),o=null,r.forEach(u=>{u.unsubscribe?u.unsubscribe(i):u.removeEventListener("abort",i)}),r=null)};r.forEach(u=>u.addEventListener("abort",i));const{signal:l}=n;return l.unsubscribe=()=>H.asap(s),l}},uX=function*(r,e){let t=r.byteLength;if(t<e){yield r;return}let n=0,a;for(;n<t;)a=n+e,yield r.slice(n,a),n=a},cX=async function*(r,e){for await(const t of fX(r))yield*uX(t,e)},fX=async function*(r){if(r[Symbol.asyncIterator]){yield*r;return}const e=r.getReader();try{for(;;){const{done:t,value:n}=await e.read();if(t)break;yield n}}finally{await e.cancel()}},uL=(r,e,t,n)=>{const a=cX(r,e);let i=0,o,s=l=>{o||(o=!0,n&&n(l))};return new ReadableStream({async pull(l){try{const{done:u,value:c}=await a.next();if(u){s(),l.close();return}let f=c.byteLength;if(t){let h=i+=f;t(h)}l.enqueue(new Uint8Array(c))}catch(u){throw s(u),u}},cancel(l){return s(l),a.return()}},{highWaterMark:2})},Rh=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",cL=Rh&&typeof ReadableStream=="function",hX=Rh&&(typeof TextEncoder=="function"?(r=>e=>r.encode(e))(new TextEncoder):async r=>new Uint8Array(await new Response(r).arrayBuffer())),fL=(r,...e)=>{try{return!!r(...e)}catch{return!1}},vX=cL&&fL(()=>{let r=!1;const e=new Request(Ke.origin,{body:new ReadableStream,method:"POST",get duplex(){return r=!0,"half"}}).headers.has("Content-Type");return r&&!e}),hL=64*1024,w0=cL&&fL(()=>H.isReadableStream(new Response("").body)),Nh={stream:w0&&(r=>r.body)};Rh&&(r=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!Nh[e]&&(Nh[e]=H.isFunction(r[e])?t=>t[e]():(t,n)=>{throw new At(`Response type '${e}' is not supported`,At.ERR_NOT_SUPPORT,n)})})})(new Response);const pX=async r=>{if(r==null)return 0;if(H.isBlob(r))return r.size;if(H.isSpecCompliantForm(r))return(await new Request(Ke.origin,{method:"POST",body:r}).arrayBuffer()).byteLength;if(H.isArrayBufferView(r)||H.isArrayBuffer(r))return r.byteLength;if(H.isURLSearchParams(r)&&(r=r+""),H.isString(r))return(await hX(r)).byteLength},dX=async(r,e)=>{const t=H.toFiniteNumber(r.getContentLength());return t??pX(e)},T0={http:OZ,xhr:sX,fetch:Rh&&(async r=>{let{url:e,method:t,data:n,signal:a,cancelToken:i,timeout:o,onDownloadProgress:s,onUploadProgress:l,responseType:u,headers:c,withCredentials:f="same-origin",fetchOptions:h}=lL(r);u=u?(u+"").toLowerCase():"text";let v=lX([a,i&&i.toAbortSignal()],o),p;const d=v&&v.unsubscribe&&(()=>{v.unsubscribe()});let g;try{if(l&&vX&&t!=="get"&&t!=="head"&&(g=await dX(c,n))!==0){let b=new Request(e,{method:"POST",body:n,duplex:"half"}),S;if(H.isFormData(n)&&(S=b.headers.get("content-type"))&&c.setContentType(S),b.body){const[w,T]=aL(g,kh(iL(l)));n=uL(b.body,hL,w,T)}}H.isString(f)||(f=f?"include":"omit");const y="credentials"in Request.prototype;p=new Request(e,{...h,signal:v,method:t.toUpperCase(),headers:c.normalize().toJSON(),body:n,duplex:"half",credentials:y?f:void 0});let m=await fetch(p);const _=w0&&(u==="stream"||u==="response");if(w0&&(s||_&&d)){const b={};["status","statusText","headers"].forEach(D=>{b[D]=m[D]});const S=H.toFiniteNumber(m.headers.get("content-length")),[w,T]=s&&aL(S,kh(iL(s),!0))||[];m=new Response(uL(m.body,hL,w,()=>{T&&T(),d&&d()}),b)}u=u||"text";let x=await Nh[H.findKey(Nh,u)||"text"](m,r);return!_&&d&&d(),await new Promise((b,S)=>{nL(b,S,{data:x,headers:je.from(m.headers),status:m.status,statusText:m.statusText,config:r,request:p})})}catch(y){throw d&&d(),y&&y.name==="TypeError"&&/fetch/i.test(y.message)?Object.assign(new At("Network Error",At.ERR_NETWORK,r,p),{cause:y.cause||y}):At.from(y,y&&y.code,r,p)}})};H.forEach(T0,(r,e)=>{if(r){try{Object.defineProperty(r,"name",{value:e})}catch{}Object.defineProperty(r,"adapterName",{value:e})}});const vL=r=>`- ${r}`,gX=r=>H.isFunction(r)||r===null||r===!1,pL={getAdapter:r=>{r=H.isArray(r)?r:[r];const{length:e}=r;let t,n;const a={};for(let i=0;i<e;i++){t=r[i];let o;if(n=t,!gX(t)&&(n=T0[(o=String(t)).toLowerCase()],n===void 0))throw new At(`Unknown adapter '${o}'`);if(n)break;a[o||"#"+i]=n}if(!n){const i=Object.entries(a).map(([s,l])=>`adapter ${s} `+(l===!1?"is not supported by the environment":"is not available in the build"));let o=e?i.length>1?`since :
|
|
86
|
+
</div>`}),e+="</div>",e}function v0(r=ZY){const e={label:{show:r==null?void 0:r.show_label,...r.label||{}},legend:r!=null&&r.show_legend?{...r.legend||{}}:null,barWidth:"70%",grid:{borderColor:"#e5e7eb"}};return(r!=null&&r.colors||r!=null&&r.color)&&(e.color=(r==null?void 0:r.colors)||(r==null?void 0:r.color)),e}function kI(r){return{color:"#9ca3af",fontSize:13,fontFamily:"Inter, ui-sans-serif",fontWeight:400,name:r==null?void 0:r.label,formatter:r==null?void 0:r.formatter,margin:r==null?void 0:r.margin}}function RI(r){return{color:"#9ca3af",fontSize:13,fontFamily:"Inter, ui-sans-serif",fontWeight:400,name:r==null?void 0:r.label,formatter:(r==null?void 0:r.formatter)||function(e){return Fi(e)},margin:r==null?void 0:r.margin}}const me=(r,e)=>{const t=r.__vccOpts||r;for(const[n,a]of e)t[n]=a;return t},XY={props:["source","dimensions","title","dimensionsType","style","name"],data(){return{myChartvt:null,label:null}},computed:{uniqueID(){return`vt-${this.name}-chart`}},async mounted(){const{series:r,xs:e,ys:t}=this.prepareData();r&&this.initChart(r,e,t)},methods:{prepareData(){var r,e,t,n;try{const a=this.dimensions||Object.keys((r=this.source)==null?void 0:r[0]),i=Array.from(new Set(this.source.map(f=>f[a[0]])));let o;((e=this.dimensionsType)==null?void 0:e[0])==="date"||a[0].includes("date")?o=i.map(f=>h0(f)):o=[...i];let s,l;(t=this.style)!=null&&t.horizontal?l=[...o]:s=[...o];const u=Array.from(new Set(this.source.map(f=>f[a[1]])));let c;return(n=this.style)!=null&&n.stack?c=a.slice(1).map((h,v)=>({name:h,type:"bar",stack:"a",data:this.source.filter(p=>parseFloat(p[h])).map(p=>parseFloat(p[h]))})):c=[{name:this.title||this.name,type:"bar",data:u,stack:"a"}],{series:c,xs:s,ys:l}}catch(a){console.error(a)}},async initChart(r,e,t){try{const n=document.getElementById(this.uniqueID),a=zd(n),i={tooltip:{trigger:"axis",axisPointer:{type:"shadow"},appendToBody:!0,backgroundColor:"transparent",shadowColor:"transparent",borderColor:"transparent",formatter:o=>PI(o)},xAxis:{data:e,axisLabel:{...kI()}},yAxis:{data:t,axisLabel:{...RI()}},series:r,...v0(this.style)};a.setOption(i),a.resize(),window.addEventListener("resize",()=>{a.resize()})}catch(n){console.error(n)}}}},qY=["id"];function KY(r,e,t,n,a,i){return k.openBlock(),k.createElementBlock("div",{id:i.uniqueID,class:"min-h-[300px] h-full w-full"},null,8,qY)}const Ch=me(XY,[["render",KY]]),jY=Object.freeze(Object.defineProperty({__proto__:null,default:Ch},Symbol.toStringTag,{value:"Module"}));function NI(r,e){return function(){return r.apply(e,arguments)}}const{toString:JY}=Object.prototype,{getPrototypeOf:p0}=Object,Ah=(r=>e=>{const t=JY.call(e);return r[t]||(r[t]=t.slice(8,-1).toLowerCase())})(Object.create(null)),Yr=r=>(r=r.toLowerCase(),e=>Ah(e)===r),Mh=r=>e=>typeof e===r,{isArray:os}=Array,au=Mh("undefined");function QY(r){return r!==null&&!au(r)&&r.constructor!==null&&!au(r.constructor)&&or(r.constructor.isBuffer)&&r.constructor.isBuffer(r)}const OI=Yr("ArrayBuffer");function tZ(r){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(r):e=r&&r.buffer&&OI(r.buffer),e}const eZ=Mh("string"),or=Mh("function"),VI=Mh("number"),Eh=r=>r!==null&&typeof r=="object",rZ=r=>r===!0||r===!1,Ih=r=>{if(Ah(r)!=="object")return!1;const e=p0(r);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in r)&&!(Symbol.iterator in r)},nZ=Yr("Date"),aZ=Yr("File"),iZ=Yr("Blob"),oZ=Yr("FileList"),sZ=r=>Eh(r)&&or(r.pipe),lZ=r=>{let e;return r&&(typeof FormData=="function"&&r instanceof FormData||or(r.append)&&((e=Ah(r))==="formdata"||e==="object"&&or(r.toString)&&r.toString()==="[object FormData]"))},uZ=Yr("URLSearchParams"),[cZ,fZ,hZ,vZ]=["ReadableStream","Request","Response","Headers"].map(Yr),pZ=r=>r.trim?r.trim():r.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function iu(r,e,{allOwnKeys:t=!1}={}){if(r===null||typeof r>"u")return;let n,a;if(typeof r!="object"&&(r=[r]),os(r))for(n=0,a=r.length;n<a;n++)e.call(null,r[n],n,r);else{const i=t?Object.getOwnPropertyNames(r):Object.keys(r),o=i.length;let s;for(n=0;n<o;n++)s=i[n],e.call(null,r[s],s,r)}}function BI(r,e){e=e.toLowerCase();const t=Object.keys(r);let n=t.length,a;for(;n-- >0;)if(a=t[n],e===a.toLowerCase())return a;return null}const Gi=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,zI=r=>!au(r)&&r!==Gi;function d0(){const{caseless:r}=zI(this)&&this||{},e={},t=(n,a)=>{const i=r&&BI(e,a)||a;Ih(e[i])&&Ih(n)?e[i]=d0(e[i],n):Ih(n)?e[i]=d0({},n):os(n)?e[i]=n.slice():e[i]=n};for(let n=0,a=arguments.length;n<a;n++)arguments[n]&&iu(arguments[n],t);return e}const dZ=(r,e,t,{allOwnKeys:n}={})=>(iu(e,(a,i)=>{t&&or(a)?r[i]=NI(a,t):r[i]=a},{allOwnKeys:n}),r),gZ=r=>(r.charCodeAt(0)===65279&&(r=r.slice(1)),r),yZ=(r,e,t,n)=>{r.prototype=Object.create(e.prototype,n),r.prototype.constructor=r,Object.defineProperty(r,"super",{value:e.prototype}),t&&Object.assign(r.prototype,t)},mZ=(r,e,t,n)=>{let a,i,o;const s={};if(e=e||{},r==null)return e;do{for(a=Object.getOwnPropertyNames(r),i=a.length;i-- >0;)o=a[i],(!n||n(o,r,e))&&!s[o]&&(e[o]=r[o],s[o]=!0);r=t!==!1&&p0(r)}while(r&&(!t||t(r,e))&&r!==Object.prototype);return e},_Z=(r,e,t)=>{r=String(r),(t===void 0||t>r.length)&&(t=r.length),t-=e.length;const n=r.indexOf(e,t);return n!==-1&&n===t},xZ=r=>{if(!r)return null;if(os(r))return r;let e=r.length;if(!VI(e))return null;const t=new Array(e);for(;e-- >0;)t[e]=r[e];return t},SZ=(r=>e=>r&&e instanceof r)(typeof Uint8Array<"u"&&p0(Uint8Array)),bZ=(r,e)=>{const n=(r&&r[Symbol.iterator]).call(r);let a;for(;(a=n.next())&&!a.done;){const i=a.value;e.call(r,i[0],i[1])}},wZ=(r,e)=>{let t;const n=[];for(;(t=r.exec(e))!==null;)n.push(t);return n},TZ=Yr("HTMLFormElement"),DZ=r=>r.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,n,a){return n.toUpperCase()+a}),FI=(({hasOwnProperty:r})=>(e,t)=>r.call(e,t))(Object.prototype),CZ=Yr("RegExp"),GI=(r,e)=>{const t=Object.getOwnPropertyDescriptors(r),n={};iu(t,(a,i)=>{let o;(o=e(a,i,r))!==!1&&(n[i]=o||a)}),Object.defineProperties(r,n)},AZ=r=>{GI(r,(e,t)=>{if(or(r)&&["arguments","caller","callee"].indexOf(t)!==-1)return!1;const n=r[t];if(or(n)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+t+"'")})}})},MZ=(r,e)=>{const t={},n=a=>{a.forEach(i=>{t[i]=!0})};return os(r)?n(r):n(String(r).split(e)),t},EZ=()=>{},IZ=(r,e)=>r!=null&&Number.isFinite(r=+r)?r:e,g0="abcdefghijklmnopqrstuvwxyz",HI="0123456789",WI={DIGIT:HI,ALPHA:g0,ALPHA_DIGIT:g0+g0.toUpperCase()+HI},LZ=(r=16,e=WI.ALPHA_DIGIT)=>{let t="";const{length:n}=e;for(;r--;)t+=e[Math.random()*n|0];return t};function PZ(r){return!!(r&&or(r.append)&&r[Symbol.toStringTag]==="FormData"&&r[Symbol.iterator])}const kZ=r=>{const e=new Array(10),t=(n,a)=>{if(Eh(n)){if(e.indexOf(n)>=0)return;if(!("toJSON"in n)){e[a]=n;const i=os(n)?[]:{};return iu(n,(o,s)=>{const l=t(o,a+1);!au(l)&&(i[s]=l)}),e[a]=void 0,i}}return n};return t(r,0)},RZ=Yr("AsyncFunction"),NZ=r=>r&&(Eh(r)||or(r))&&or(r.then)&&or(r.catch),$I=((r,e)=>r?setImmediate:e?((t,n)=>(Gi.addEventListener("message",({source:a,data:i})=>{a===Gi&&i===t&&n.length&&n.shift()()},!1),a=>{n.push(a),Gi.postMessage(t,"*")}))(`axios@${Math.random()}`,[]):t=>setTimeout(t))(typeof setImmediate=="function",or(Gi.postMessage)),OZ=typeof queueMicrotask<"u"?queueMicrotask.bind(Gi):typeof process<"u"&&process.nextTick||$I,H={isArray:os,isArrayBuffer:OI,isBuffer:QY,isFormData:lZ,isArrayBufferView:tZ,isString:eZ,isNumber:VI,isBoolean:rZ,isObject:Eh,isPlainObject:Ih,isReadableStream:cZ,isRequest:fZ,isResponse:hZ,isHeaders:vZ,isUndefined:au,isDate:nZ,isFile:aZ,isBlob:iZ,isRegExp:CZ,isFunction:or,isStream:sZ,isURLSearchParams:uZ,isTypedArray:SZ,isFileList:oZ,forEach:iu,merge:d0,extend:dZ,trim:pZ,stripBOM:gZ,inherits:yZ,toFlatObject:mZ,kindOf:Ah,kindOfTest:Yr,endsWith:_Z,toArray:xZ,forEachEntry:bZ,matchAll:wZ,isHTMLForm:TZ,hasOwnProperty:FI,hasOwnProp:FI,reduceDescriptors:GI,freezeMethods:AZ,toObjectSet:MZ,toCamelCase:DZ,noop:EZ,toFiniteNumber:IZ,findKey:BI,global:Gi,isContextDefined:zI,ALPHABET:WI,generateString:LZ,isSpecCompliantForm:PZ,toJSONObject:kZ,isAsyncFn:RZ,isThenable:NZ,setImmediate:$I,asap:OZ};function At(r,e,t,n,a){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=r,this.name="AxiosError",e&&(this.code=e),t&&(this.config=t),n&&(this.request=n),a&&(this.response=a,this.status=a.status?a.status:null)}H.inherits(At,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:H.toJSONObject(this.config),code:this.code,status:this.status}}});const UI=At.prototype,YI={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(r=>{YI[r]={value:r}}),Object.defineProperties(At,YI),Object.defineProperty(UI,"isAxiosError",{value:!0}),At.from=(r,e,t,n,a,i)=>{const o=Object.create(UI);return H.toFlatObject(r,o,function(l){return l!==Error.prototype},s=>s!=="isAxiosError"),At.call(o,r.message,e,t,n,a),o.cause=r,o.name=r.name,i&&Object.assign(o,i),o};const VZ=null;function y0(r){return H.isPlainObject(r)||H.isArray(r)}function ZI(r){return H.endsWith(r,"[]")?r.slice(0,-2):r}function XI(r,e,t){return r?r.concat(e).map(function(a,i){return a=ZI(a),!t&&i?"["+a+"]":a}).join(t?".":""):e}function BZ(r){return H.isArray(r)&&!r.some(y0)}const zZ=H.toFlatObject(H,{},null,function(e){return/^is[A-Z]/.test(e)});function Lh(r,e,t){if(!H.isObject(r))throw new TypeError("target must be an object");e=e||new FormData,t=H.toFlatObject(t,{metaTokens:!0,dots:!1,indexes:!1},!1,function(d,g){return!H.isUndefined(g[d])});const n=t.metaTokens,a=t.visitor||c,i=t.dots,o=t.indexes,l=(t.Blob||typeof Blob<"u"&&Blob)&&H.isSpecCompliantForm(e);if(!H.isFunction(a))throw new TypeError("visitor must be a function");function u(p){if(p===null)return"";if(H.isDate(p))return p.toISOString();if(!l&&H.isBlob(p))throw new At("Blob is not supported. Use a Buffer instead.");return H.isArrayBuffer(p)||H.isTypedArray(p)?l&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function c(p,d,g){let y=p;if(p&&!g&&typeof p=="object"){if(H.endsWith(d,"{}"))d=n?d:d.slice(0,-2),p=JSON.stringify(p);else if(H.isArray(p)&&BZ(p)||(H.isFileList(p)||H.endsWith(d,"[]"))&&(y=H.toArray(p)))return d=ZI(d),y.forEach(function(_,x){!(H.isUndefined(_)||_===null)&&e.append(o===!0?XI([d],x,i):o===null?d:d+"[]",u(_))}),!1}return y0(p)?!0:(e.append(XI(g,d,i),u(p)),!1)}const f=[],h=Object.assign(zZ,{defaultVisitor:c,convertValue:u,isVisitable:y0});function v(p,d){if(!H.isUndefined(p)){if(f.indexOf(p)!==-1)throw Error("Circular reference detected in "+d.join("."));f.push(p),H.forEach(p,function(y,m){(!(H.isUndefined(y)||y===null)&&a.call(e,y,H.isString(m)?m.trim():m,d,h))===!0&&v(y,d?d.concat(m):[m])}),f.pop()}}if(!H.isObject(r))throw new TypeError("data must be an object");return v(r),e}function qI(r){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(r).replace(/[!'()~]|%20|%00/g,function(n){return e[n]})}function m0(r,e){this._pairs=[],r&&Lh(r,this,e)}const KI=m0.prototype;KI.append=function(e,t){this._pairs.push([e,t])},KI.toString=function(e){const t=e?function(n){return e.call(this,n,qI)}:qI;return this._pairs.map(function(a){return t(a[0])+"="+t(a[1])},"").join("&")};function FZ(r){return encodeURIComponent(r).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function jI(r,e,t){if(!e)return r;const n=t&&t.encode||FZ,a=t&&t.serialize;let i;if(a?i=a(e,t):i=H.isURLSearchParams(e)?e.toString():new m0(e,t).toString(n),i){const o=r.indexOf("#");o!==-1&&(r=r.slice(0,o)),r+=(r.indexOf("?")===-1?"?":"&")+i}return r}class JI{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){H.forEach(this.handlers,function(n){n!==null&&e(n)})}}const QI={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},GZ={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:m0,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},_0=typeof window<"u"&&typeof document<"u",x0=typeof navigator=="object"&&navigator||void 0,HZ=_0&&(!x0||["ReactNative","NativeScript","NS"].indexOf(x0.product)<0),WZ=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",$Z=_0&&window.location.href||"http://localhost",Ke={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:_0,hasStandardBrowserEnv:HZ,hasStandardBrowserWebWorkerEnv:WZ,navigator:x0,origin:$Z},Symbol.toStringTag,{value:"Module"})),...GZ};function UZ(r,e){return Lh(r,new Ke.classes.URLSearchParams,Object.assign({visitor:function(t,n,a,i){return Ke.isNode&&H.isBuffer(t)?(this.append(n,t.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},e))}function YZ(r){return H.matchAll(/\w+|\[(\w*)]/g,r).map(e=>e[0]==="[]"?"":e[1]||e[0])}function ZZ(r){const e={},t=Object.keys(r);let n;const a=t.length;let i;for(n=0;n<a;n++)i=t[n],e[i]=r[i];return e}function tL(r){function e(t,n,a,i){let o=t[i++];if(o==="__proto__")return!0;const s=Number.isFinite(+o),l=i>=t.length;return o=!o&&H.isArray(a)?a.length:o,l?(H.hasOwnProp(a,o)?a[o]=[a[o],n]:a[o]=n,!s):((!a[o]||!H.isObject(a[o]))&&(a[o]=[]),e(t,n,a[o],i)&&H.isArray(a[o])&&(a[o]=ZZ(a[o])),!s)}if(H.isFormData(r)&&H.isFunction(r.entries)){const t={};return H.forEachEntry(r,(n,a)=>{e(YZ(n),a,t,0)}),t}return null}function XZ(r,e,t){if(H.isString(r))try{return(e||JSON.parse)(r),H.trim(r)}catch(n){if(n.name!=="SyntaxError")throw n}return(0,JSON.stringify)(r)}const ou={transitional:QI,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",a=n.indexOf("application/json")>-1,i=H.isObject(e);if(i&&H.isHTMLForm(e)&&(e=new FormData(e)),H.isFormData(e))return a?JSON.stringify(tL(e)):e;if(H.isArrayBuffer(e)||H.isBuffer(e)||H.isStream(e)||H.isFile(e)||H.isBlob(e)||H.isReadableStream(e))return e;if(H.isArrayBufferView(e))return e.buffer;if(H.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let s;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return UZ(e,this.formSerializer).toString();if((s=H.isFileList(e))||n.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return Lh(s?{"files[]":e}:e,l&&new l,this.formSerializer)}}return i||a?(t.setContentType("application/json",!1),XZ(e)):e}],transformResponse:[function(e){const t=this.transitional||ou.transitional,n=t&&t.forcedJSONParsing,a=this.responseType==="json";if(H.isResponse(e)||H.isReadableStream(e))return e;if(e&&H.isString(e)&&(n&&!this.responseType||a)){const o=!(t&&t.silentJSONParsing)&&a;try{return JSON.parse(e)}catch(s){if(o)throw s.name==="SyntaxError"?At.from(s,At.ERR_BAD_RESPONSE,this,null,this.response):s}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ke.classes.FormData,Blob:Ke.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};H.forEach(["delete","get","head","post","put","patch"],r=>{ou.headers[r]={}});const qZ=H.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),KZ=r=>{const e={};let t,n,a;return r&&r.split(`
|
|
87
|
+
`).forEach(function(o){a=o.indexOf(":"),t=o.substring(0,a).trim().toLowerCase(),n=o.substring(a+1).trim(),!(!t||e[t]&&qZ[t])&&(t==="set-cookie"?e[t]?e[t].push(n):e[t]=[n]:e[t]=e[t]?e[t]+", "+n:n)}),e},eL=Symbol("internals");function su(r){return r&&String(r).trim().toLowerCase()}function Ph(r){return r===!1||r==null?r:H.isArray(r)?r.map(Ph):String(r)}function jZ(r){const e=Object.create(null),t=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=t.exec(r);)e[n[1]]=n[2];return e}const JZ=r=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(r.trim());function S0(r,e,t,n,a){if(H.isFunction(n))return n.call(this,e,t);if(a&&(e=t),!!H.isString(e)){if(H.isString(n))return e.indexOf(n)!==-1;if(H.isRegExp(n))return n.test(e)}}function QZ(r){return r.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}function tX(r,e){const t=H.toCamelCase(" "+e);["get","set","has"].forEach(n=>{Object.defineProperty(r,n+t,{value:function(a,i,o){return this[n].call(this,e,a,i,o)},configurable:!0})})}class je{constructor(e){e&&this.set(e)}set(e,t,n){const a=this;function i(s,l,u){const c=su(l);if(!c)throw new Error("header name must be a non-empty string");const f=H.findKey(a,c);(!f||a[f]===void 0||u===!0||u===void 0&&a[f]!==!1)&&(a[f||l]=Ph(s))}const o=(s,l)=>H.forEach(s,(u,c)=>i(u,c,l));if(H.isPlainObject(e)||e instanceof this.constructor)o(e,t);else if(H.isString(e)&&(e=e.trim())&&!JZ(e))o(KZ(e),t);else if(H.isHeaders(e))for(const[s,l]of e.entries())i(l,s,n);else e!=null&&i(t,e,n);return this}get(e,t){if(e=su(e),e){const n=H.findKey(this,e);if(n){const a=this[n];if(!t)return a;if(t===!0)return jZ(a);if(H.isFunction(t))return t.call(this,a,n);if(H.isRegExp(t))return t.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=su(e),e){const n=H.findKey(this,e);return!!(n&&this[n]!==void 0&&(!t||S0(this,this[n],n,t)))}return!1}delete(e,t){const n=this;let a=!1;function i(o){if(o=su(o),o){const s=H.findKey(n,o);s&&(!t||S0(n,n[s],s,t))&&(delete n[s],a=!0)}}return H.isArray(e)?e.forEach(i):i(e),a}clear(e){const t=Object.keys(this);let n=t.length,a=!1;for(;n--;){const i=t[n];(!e||S0(this,this[i],i,e,!0))&&(delete this[i],a=!0)}return a}normalize(e){const t=this,n={};return H.forEach(this,(a,i)=>{const o=H.findKey(n,i);if(o){t[o]=Ph(a),delete t[i];return}const s=e?QZ(i):String(i).trim();s!==i&&delete t[i],t[s]=Ph(a),n[s]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return H.forEach(this,(n,a)=>{n!=null&&n!==!1&&(t[a]=e&&H.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join(`
|
|
88
|
+
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach(a=>n.set(a)),n}static accessor(e){const n=(this[eL]=this[eL]={accessors:{}}).accessors,a=this.prototype;function i(o){const s=su(o);n[s]||(tX(a,o),n[s]=!0)}return H.isArray(e)?e.forEach(i):i(e),this}}je.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),H.reduceDescriptors(je.prototype,({value:r},e)=>{let t=e[0].toUpperCase()+e.slice(1);return{get:()=>r,set(n){this[t]=n}}}),H.freezeMethods(je);function b0(r,e){const t=this||ou,n=e||t,a=je.from(n.headers);let i=n.data;return H.forEach(r,function(s){i=s.call(t,i,a.normalize(),e?e.status:void 0)}),a.normalize(),i}function rL(r){return!!(r&&r.__CANCEL__)}function ss(r,e,t){At.call(this,r??"canceled",At.ERR_CANCELED,e,t),this.name="CanceledError"}H.inherits(ss,At,{__CANCEL__:!0});function nL(r,e,t){const n=t.config.validateStatus;!t.status||!n||n(t.status)?r(t):e(new At("Request failed with status code "+t.status,[At.ERR_BAD_REQUEST,At.ERR_BAD_RESPONSE][Math.floor(t.status/100)-4],t.config,t.request,t))}function eX(r){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(r);return e&&e[1]||""}function rX(r,e){r=r||10;const t=new Array(r),n=new Array(r);let a=0,i=0,o;return e=e!==void 0?e:1e3,function(l){const u=Date.now(),c=n[i];o||(o=u),t[a]=l,n[a]=u;let f=i,h=0;for(;f!==a;)h+=t[f++],f=f%r;if(a=(a+1)%r,a===i&&(i=(i+1)%r),u-o<e)return;const v=c&&u-c;return v?Math.round(h*1e3/v):void 0}}function nX(r,e){let t=0,n=1e3/e,a,i;const o=(u,c=Date.now())=>{t=c,a=null,i&&(clearTimeout(i),i=null),r.apply(null,u)};return[(...u)=>{const c=Date.now(),f=c-t;f>=n?o(u,c):(a=u,i||(i=setTimeout(()=>{i=null,o(a)},n-f)))},()=>a&&o(a)]}const kh=(r,e,t=3)=>{let n=0;const a=rX(50,250);return nX(i=>{const o=i.loaded,s=i.lengthComputable?i.total:void 0,l=o-n,u=a(l),c=o<=s;n=o;const f={loaded:o,total:s,progress:s?o/s:void 0,bytes:l,rate:u||void 0,estimated:u&&s&&c?(s-o)/u:void 0,event:i,lengthComputable:s!=null,[e?"download":"upload"]:!0};r(f)},t)},aL=(r,e)=>{const t=r!=null;return[n=>e[0]({lengthComputable:t,total:r,loaded:n}),e[1]]},iL=r=>(...e)=>H.asap(()=>r(...e)),aX=Ke.hasStandardBrowserEnv?function(){const e=Ke.navigator&&/(msie|trident)/i.test(Ke.navigator.userAgent),t=document.createElement("a");let n;function a(i){let o=i;return e&&(t.setAttribute("href",o),o=t.href),t.setAttribute("href",o),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:t.pathname.charAt(0)==="/"?t.pathname:"/"+t.pathname}}return n=a(window.location.href),function(o){const s=H.isString(o)?a(o):o;return s.protocol===n.protocol&&s.host===n.host}}():function(){return function(){return!0}}(),iX=Ke.hasStandardBrowserEnv?{write(r,e,t,n,a,i){const o=[r+"="+encodeURIComponent(e)];H.isNumber(t)&&o.push("expires="+new Date(t).toGMTString()),H.isString(n)&&o.push("path="+n),H.isString(a)&&o.push("domain="+a),i===!0&&o.push("secure"),document.cookie=o.join("; ")},read(r){const e=document.cookie.match(new RegExp("(^|;\\s*)("+r+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(r){this.write(r,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function oX(r){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(r)}function sX(r,e){return e?r.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):r}function oL(r,e){return r&&!oX(e)?sX(r,e):e}const sL=r=>r instanceof je?{...r}:r;function Hi(r,e){e=e||{};const t={};function n(u,c,f){return H.isPlainObject(u)&&H.isPlainObject(c)?H.merge.call({caseless:f},u,c):H.isPlainObject(c)?H.merge({},c):H.isArray(c)?c.slice():c}function a(u,c,f){if(H.isUndefined(c)){if(!H.isUndefined(u))return n(void 0,u,f)}else return n(u,c,f)}function i(u,c){if(!H.isUndefined(c))return n(void 0,c)}function o(u,c){if(H.isUndefined(c)){if(!H.isUndefined(u))return n(void 0,u)}else return n(void 0,c)}function s(u,c,f){if(f in e)return n(u,c);if(f in r)return n(void 0,u)}const l={url:i,method:i,data:i,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:s,headers:(u,c)=>a(sL(u),sL(c),!0)};return H.forEach(Object.keys(Object.assign({},r,e)),function(c){const f=l[c]||a,h=f(r[c],e[c],c);H.isUndefined(h)&&f!==s||(t[c]=h)}),t}const lL=r=>{const e=Hi({},r);let{data:t,withXSRFToken:n,xsrfHeaderName:a,xsrfCookieName:i,headers:o,auth:s}=e;e.headers=o=je.from(o),e.url=jI(oL(e.baseURL,e.url),r.params,r.paramsSerializer),s&&o.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")));let l;if(H.isFormData(t)){if(Ke.hasStandardBrowserEnv||Ke.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if((l=o.getContentType())!==!1){const[u,...c]=l?l.split(";").map(f=>f.trim()).filter(Boolean):[];o.setContentType([u||"multipart/form-data",...c].join("; "))}}if(Ke.hasStandardBrowserEnv&&(n&&H.isFunction(n)&&(n=n(e)),n||n!==!1&&aX(e.url))){const u=a&&i&&iX.read(i);u&&o.set(a,u)}return e},lX=typeof XMLHttpRequest<"u"&&function(r){return new Promise(function(t,n){const a=lL(r);let i=a.data;const o=je.from(a.headers).normalize();let{responseType:s,onUploadProgress:l,onDownloadProgress:u}=a,c,f,h,v,p;function d(){v&&v(),p&&p(),a.cancelToken&&a.cancelToken.unsubscribe(c),a.signal&&a.signal.removeEventListener("abort",c)}let g=new XMLHttpRequest;g.open(a.method.toUpperCase(),a.url,!0),g.timeout=a.timeout;function y(){if(!g)return;const _=je.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders()),b={data:!s||s==="text"||s==="json"?g.responseText:g.response,status:g.status,statusText:g.statusText,headers:_,config:r,request:g};nL(function(w){t(w),d()},function(w){n(w),d()},b),g=null}"onloadend"in g?g.onloadend=y:g.onreadystatechange=function(){!g||g.readyState!==4||g.status===0&&!(g.responseURL&&g.responseURL.indexOf("file:")===0)||setTimeout(y)},g.onabort=function(){g&&(n(new At("Request aborted",At.ECONNABORTED,r,g)),g=null)},g.onerror=function(){n(new At("Network Error",At.ERR_NETWORK,r,g)),g=null},g.ontimeout=function(){let x=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const b=a.transitional||QI;a.timeoutErrorMessage&&(x=a.timeoutErrorMessage),n(new At(x,b.clarifyTimeoutError?At.ETIMEDOUT:At.ECONNABORTED,r,g)),g=null},i===void 0&&o.setContentType(null),"setRequestHeader"in g&&H.forEach(o.toJSON(),function(x,b){g.setRequestHeader(b,x)}),H.isUndefined(a.withCredentials)||(g.withCredentials=!!a.withCredentials),s&&s!=="json"&&(g.responseType=a.responseType),u&&([h,p]=kh(u,!0),g.addEventListener("progress",h)),l&&g.upload&&([f,v]=kh(l),g.upload.addEventListener("progress",f),g.upload.addEventListener("loadend",v)),(a.cancelToken||a.signal)&&(c=_=>{g&&(n(!_||_.type?new ss(null,r,g):_),g.abort(),g=null)},a.cancelToken&&a.cancelToken.subscribe(c),a.signal&&(a.signal.aborted?c():a.signal.addEventListener("abort",c)));const m=eX(a.url);if(m&&Ke.protocols.indexOf(m)===-1){n(new At("Unsupported protocol "+m+":",At.ERR_BAD_REQUEST,r));return}g.send(i||null)})},uX=(r,e)=>{const{length:t}=r=r?r.filter(Boolean):[];if(e||t){let n=new AbortController,a;const i=function(u){if(!a){a=!0,s();const c=u instanceof Error?u:this.reason;n.abort(c instanceof At?c:new ss(c instanceof Error?c.message:c))}};let o=e&&setTimeout(()=>{o=null,i(new At(`timeout ${e} of ms exceeded`,At.ETIMEDOUT))},e);const s=()=>{r&&(o&&clearTimeout(o),o=null,r.forEach(u=>{u.unsubscribe?u.unsubscribe(i):u.removeEventListener("abort",i)}),r=null)};r.forEach(u=>u.addEventListener("abort",i));const{signal:l}=n;return l.unsubscribe=()=>H.asap(s),l}},cX=function*(r,e){let t=r.byteLength;if(t<e){yield r;return}let n=0,a;for(;n<t;)a=n+e,yield r.slice(n,a),n=a},fX=async function*(r,e){for await(const t of hX(r))yield*cX(t,e)},hX=async function*(r){if(r[Symbol.asyncIterator]){yield*r;return}const e=r.getReader();try{for(;;){const{done:t,value:n}=await e.read();if(t)break;yield n}}finally{await e.cancel()}},uL=(r,e,t,n)=>{const a=fX(r,e);let i=0,o,s=l=>{o||(o=!0,n&&n(l))};return new ReadableStream({async pull(l){try{const{done:u,value:c}=await a.next();if(u){s(),l.close();return}let f=c.byteLength;if(t){let h=i+=f;t(h)}l.enqueue(new Uint8Array(c))}catch(u){throw s(u),u}},cancel(l){return s(l),a.return()}},{highWaterMark:2})},Rh=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",cL=Rh&&typeof ReadableStream=="function",vX=Rh&&(typeof TextEncoder=="function"?(r=>e=>r.encode(e))(new TextEncoder):async r=>new Uint8Array(await new Response(r).arrayBuffer())),fL=(r,...e)=>{try{return!!r(...e)}catch{return!1}},pX=cL&&fL(()=>{let r=!1;const e=new Request(Ke.origin,{body:new ReadableStream,method:"POST",get duplex(){return r=!0,"half"}}).headers.has("Content-Type");return r&&!e}),hL=64*1024,w0=cL&&fL(()=>H.isReadableStream(new Response("").body)),Nh={stream:w0&&(r=>r.body)};Rh&&(r=>{["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!Nh[e]&&(Nh[e]=H.isFunction(r[e])?t=>t[e]():(t,n)=>{throw new At(`Response type '${e}' is not supported`,At.ERR_NOT_SUPPORT,n)})})})(new Response);const dX=async r=>{if(r==null)return 0;if(H.isBlob(r))return r.size;if(H.isSpecCompliantForm(r))return(await new Request(Ke.origin,{method:"POST",body:r}).arrayBuffer()).byteLength;if(H.isArrayBufferView(r)||H.isArrayBuffer(r))return r.byteLength;if(H.isURLSearchParams(r)&&(r=r+""),H.isString(r))return(await vX(r)).byteLength},gX=async(r,e)=>{const t=H.toFiniteNumber(r.getContentLength());return t??dX(e)},T0={http:VZ,xhr:lX,fetch:Rh&&(async r=>{let{url:e,method:t,data:n,signal:a,cancelToken:i,timeout:o,onDownloadProgress:s,onUploadProgress:l,responseType:u,headers:c,withCredentials:f="same-origin",fetchOptions:h}=lL(r);u=u?(u+"").toLowerCase():"text";let v=uX([a,i&&i.toAbortSignal()],o),p;const d=v&&v.unsubscribe&&(()=>{v.unsubscribe()});let g;try{if(l&&pX&&t!=="get"&&t!=="head"&&(g=await gX(c,n))!==0){let b=new Request(e,{method:"POST",body:n,duplex:"half"}),S;if(H.isFormData(n)&&(S=b.headers.get("content-type"))&&c.setContentType(S),b.body){const[w,T]=aL(g,kh(iL(l)));n=uL(b.body,hL,w,T)}}H.isString(f)||(f=f?"include":"omit");const y="credentials"in Request.prototype;p=new Request(e,{...h,signal:v,method:t.toUpperCase(),headers:c.normalize().toJSON(),body:n,duplex:"half",credentials:y?f:void 0});let m=await fetch(p);const _=w0&&(u==="stream"||u==="response");if(w0&&(s||_&&d)){const b={};["status","statusText","headers"].forEach(D=>{b[D]=m[D]});const S=H.toFiniteNumber(m.headers.get("content-length")),[w,T]=s&&aL(S,kh(iL(s),!0))||[];m=new Response(uL(m.body,hL,w,()=>{T&&T(),d&&d()}),b)}u=u||"text";let x=await Nh[H.findKey(Nh,u)||"text"](m,r);return!_&&d&&d(),await new Promise((b,S)=>{nL(b,S,{data:x,headers:je.from(m.headers),status:m.status,statusText:m.statusText,config:r,request:p})})}catch(y){throw d&&d(),y&&y.name==="TypeError"&&/fetch/i.test(y.message)?Object.assign(new At("Network Error",At.ERR_NETWORK,r,p),{cause:y.cause||y}):At.from(y,y&&y.code,r,p)}})};H.forEach(T0,(r,e)=>{if(r){try{Object.defineProperty(r,"name",{value:e})}catch{}Object.defineProperty(r,"adapterName",{value:e})}});const vL=r=>`- ${r}`,yX=r=>H.isFunction(r)||r===null||r===!1,pL={getAdapter:r=>{r=H.isArray(r)?r:[r];const{length:e}=r;let t,n;const a={};for(let i=0;i<e;i++){t=r[i];let o;if(n=t,!yX(t)&&(n=T0[(o=String(t)).toLowerCase()],n===void 0))throw new At(`Unknown adapter '${o}'`);if(n)break;a[o||"#"+i]=n}if(!n){const i=Object.entries(a).map(([s,l])=>`adapter ${s} `+(l===!1?"is not supported by the environment":"is not available in the build"));let o=e?i.length>1?`since :
|
|
89
89
|
`+i.map(vL).join(`
|
|
90
|
-
`):" "+vL(i[0]):"as no adapter specified";throw new At("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return n},adapters:T0};function D0(r){if(r.cancelToken&&r.cancelToken.throwIfRequested(),r.signal&&r.signal.aborted)throw new ss(null,r)}function dL(r){return D0(r),r.headers=je.from(r.headers),r.data=b0.call(r,r.transformRequest),["post","put","patch"].indexOf(r.method)!==-1&&r.headers.setContentType("application/x-www-form-urlencoded",!1),pL.getAdapter(r.adapter||ou.adapter)(r).then(function(n){return D0(r),n.data=b0.call(r,r.transformResponse,n),n.headers=je.from(n.headers),n},function(n){return rL(n)||(D0(r),n&&n.response&&(n.response.data=b0.call(r,r.transformResponse,n.response),n.response.headers=je.from(n.response.headers))),Promise.reject(n)})}const gL="1.7.7",C0={};["object","boolean","number","function","string","symbol"].forEach((r,e)=>{C0[r]=function(n){return typeof n===r||"a"+(e<1?"n ":" ")+r}});const yL={};C0.transitional=function(e,t,n){function a(i,o){return"[Axios v"+gL+"] Transitional option '"+i+"'"+o+(n?". "+n:"")}return(i,o,s)=>{if(e===!1)throw new At(a(o," has been removed"+(t?" in "+t:"")),At.ERR_DEPRECATED);return t&&!yL[o]&&(yL[o]=!0,console.warn(a(o," has been deprecated since v"+t+" and will be removed in the near future"))),e?e(i,o,s):!0}};function
|
|
91
|
-
`+i):n.stack=i}catch{}}throw n}}_request(e,t){typeof e=="string"?(t=t||{},t.url=e):t=e||{},t=Hi(this.defaults,t);const{transitional:n,paramsSerializer:a,headers:i}=t;n!==void 0&&A0.assertOptions(n,{silentJSONParsing:Ta.transitional(Ta.boolean),forcedJSONParsing:Ta.transitional(Ta.boolean),clarifyTimeoutError:Ta.transitional(Ta.boolean)},!1),a!=null&&(H.isFunction(a)?t.paramsSerializer={serialize:a}:A0.assertOptions(a,{encode:Ta.function,serialize:Ta.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let o=i&&H.merge(i.common,i[t.method]);i&&H.forEach(["delete","get","head","post","put","patch","common"],p=>{delete i[p]}),t.headers=je.concat(o,i);const s=[];let l=!0;this.interceptors.request.forEach(function(d){typeof d.runWhen=="function"&&d.runWhen(t)===!1||(l=l&&d.synchronous,s.unshift(d.fulfilled,d.rejected))});const u=[];this.interceptors.response.forEach(function(d){u.push(d.fulfilled,d.rejected)});let c,f=0,h;if(!l){const p=[dL.bind(this),void 0];for(p.unshift.apply(p,s),p.push.apply(p,u),h=p.length,c=Promise.resolve(t);f<h;)c=c.then(p[f++],p[f++]);return c}h=s.length;let v=t;for(f=0;f<h;){const p=s[f++],d=s[f++];try{v=p(v)}catch(g){d.call(this,g);break}}try{c=dL.call(this,v)}catch(p){return Promise.reject(p)}for(f=0,h=u.length;f<h;)c=c.then(u[f++],u[f++]);return c}getUri(e){e=Hi(this.defaults,e);const t=oL(e.baseURL,e.url);return jI(t,e.params,e.paramsSerializer)}}H.forEach(["delete","get","head","options"],function(e){Wi.prototype[e]=function(t,n){return this.request(Hi(n||{},{method:e,url:t,data:(n||{}).data}))}}),H.forEach(["post","put","patch"],function(e){function t(n){return function(i,o,s){return this.request(Hi(s||{},{method:e,headers:n?{"Content-Type":"multipart/form-data"}:{},url:i,data:o}))}}Wi.prototype[e]=t(),Wi.prototype[e+"Form"]=t(!0)});class M0{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(i){t=i});const n=this;this.promise.then(a=>{if(!n._listeners)return;let i=n._listeners.length;for(;i-- >0;)n._listeners[i](a);n._listeners=null}),this.promise.then=a=>{let i;const o=new Promise(s=>{n.subscribe(s),i=s}).then(a);return o.cancel=function(){n.unsubscribe(i)},o},e(function(i,o,s){n.reason||(n.reason=new ss(i,o,s),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);t!==-1&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=n=>{e.abort(n)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new M0(function(a){e=a}),cancel:e}}}function mX(r){return function(t){return r.apply(null,t)}}function _X(r){return H.isObject(r)&&r.isAxiosError===!0}const E0={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(E0).forEach(([r,e])=>{E0[e]=r});function mL(r){const e=new Wi(r),t=NI(Wi.prototype.request,e);return H.extend(t,Wi.prototype,e,{allOwnKeys:!0}),H.extend(t,e,null,{allOwnKeys:!0}),t.create=function(a){return mL(Hi(r,a))},t}const Jt=mL(ou);Jt.Axios=Wi,Jt.CanceledError=ss,Jt.CancelToken=M0,Jt.isCancel=rL,Jt.VERSION=gL,Jt.toFormData=Lh,Jt.AxiosError=At,Jt.Cancel=Jt.CanceledError,Jt.all=function(e){return Promise.all(e)},Jt.spread=mX,Jt.isAxiosError=_X,Jt.mergeConfig=Hi,Jt.AxiosHeaders=je,Jt.formToJSON=r=>tL(H.isHTMLForm(r)?new FormData(r):r),Jt.getAdapter=pL.getAdapter,Jt.HttpStatusCode=E0,Jt.default=Jt;function xX(r){return Math.abs(r=Math.round(r))>=1e21?r.toLocaleString("en").replace(/,/g,""):r.toString(10)}function Oh(r,e){if((t=(r=e?r.toExponential(e-1):r.toExponential()).indexOf("e"))<0)return null;var t,n=r.slice(0,t);return[n.length>1?n[0]+n.slice(2):n,+r.slice(t+1)]}function SX(r){return r=Oh(Math.abs(r)),r?r[1]:NaN}function bX(r,e){return function(t,n){for(var a=t.length,i=[],o=0,s=r[0],l=0;a>0&&s>0&&(l+s+1>n&&(s=Math.max(1,n-l)),i.push(t.substring(a-=s,a+s)),!((l+=s+1)>n));)s=r[o=(o+1)%r.length];return i.reverse().join(e)}}function wX(r){return function(e){return e.replace(/[0-9]/g,function(t){return r[+t]})}}var TX=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function I0(r){if(!(e=TX.exec(r)))throw new Error("invalid format: "+r);var e;return new L0({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}I0.prototype=L0.prototype;function L0(r){this.fill=r.fill===void 0?" ":r.fill+"",this.align=r.align===void 0?">":r.align+"",this.sign=r.sign===void 0?"-":r.sign+"",this.symbol=r.symbol===void 0?"":r.symbol+"",this.zero=!!r.zero,this.width=r.width===void 0?void 0:+r.width,this.comma=!!r.comma,this.precision=r.precision===void 0?void 0:+r.precision,this.trim=!!r.trim,this.type=r.type===void 0?"":r.type+""}L0.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function DX(r){t:for(var e=r.length,t=1,n=-1,a;t<e;++t)switch(r[t]){case".":n=a=t;break;case"0":n===0&&(n=t),a=t;break;default:if(!+r[t])break t;n>0&&(n=0);break}return n>0?r.slice(0,n)+r.slice(a+1):r}var _L;function CX(r,e){var t=Oh(r,e);if(!t)return r+"";var n=t[0],a=t[1],i=a-(_L=Math.max(-8,Math.min(8,Math.floor(a/3)))*3)+1,o=n.length;return i===o?n:i>o?n+new Array(i-o+1).join("0"):i>0?n.slice(0,i)+"."+n.slice(i):"0."+new Array(1-i).join("0")+Oh(r,Math.max(0,e+i-1))[0]}function xL(r,e){var t=Oh(r,e);if(!t)return r+"";var n=t[0],a=t[1];return a<0?"0."+new Array(-a).join("0")+n:n.length>a+1?n.slice(0,a+1)+"."+n.slice(a+1):n+new Array(a-n.length+2).join("0")}const SL={"%":(r,e)=>(r*100).toFixed(e),b:r=>Math.round(r).toString(2),c:r=>r+"",d:xX,e:(r,e)=>r.toExponential(e),f:(r,e)=>r.toFixed(e),g:(r,e)=>r.toPrecision(e),o:r=>Math.round(r).toString(8),p:(r,e)=>xL(r*100,e),r:xL,s:CX,X:r=>Math.round(r).toString(16).toUpperCase(),x:r=>Math.round(r).toString(16)};function bL(r){return r}var wL=Array.prototype.map,TL=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function AX(r){var e=r.grouping===void 0||r.thousands===void 0?bL:bX(wL.call(r.grouping,Number),r.thousands+""),t=r.currency===void 0?"":r.currency[0]+"",n=r.currency===void 0?"":r.currency[1]+"",a=r.decimal===void 0?".":r.decimal+"",i=r.numerals===void 0?bL:wX(wL.call(r.numerals,String)),o=r.percent===void 0?"%":r.percent+"",s=r.minus===void 0?"−":r.minus+"",l=r.nan===void 0?"NaN":r.nan+"";function u(f){f=I0(f);var h=f.fill,v=f.align,p=f.sign,d=f.symbol,g=f.zero,y=f.width,m=f.comma,_=f.precision,x=f.trim,b=f.type;b==="n"?(m=!0,b="g"):SL[b]||(_===void 0&&(_=12),x=!0,b="g"),(g||h==="0"&&v==="=")&&(g=!0,h="0",v="=");var S=d==="$"?t:d==="#"&&/[boxX]/.test(b)?"0"+b.toLowerCase():"",w=d==="$"?n:/[%p]/.test(b)?o:"",T=SL[b],D=/[defgprs%]/.test(b);_=_===void 0?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,_)):Math.max(0,Math.min(20,_));function M(A){var E=S,I=w,L,P,R;if(b==="c")I=T(A)+I,A="";else{A=+A;var V=A<0||1/A<0;if(A=isNaN(A)?l:T(Math.abs(A),_),x&&(A=DX(A)),V&&+A==0&&p!=="+"&&(V=!1),E=(V?p==="("?p:s:p==="-"||p==="("?"":p)+E,I=(b==="s"?TL[8+_L/3]:"")+I+(V&&p==="("?")":""),D){for(L=-1,P=A.length;++L<P;)if(R=A.charCodeAt(L),48>R||R>57){I=(R===46?a+A.slice(L+1):A.slice(L))+I,A=A.slice(0,L);break}}}m&&!g&&(A=e(A,1/0));var O=E.length+A.length+I.length,B=O<y?new Array(y-O+1).join(h):"";switch(m&&g&&(A=e(B+A,B.length?y-I.length:1/0),B=""),v){case"<":A=E+A+I+B;break;case"=":A=E+B+A+I;break;case"^":A=B.slice(0,O=B.length>>1)+E+A+I+B.slice(O);break;default:A=B+E+A+I;break}return i(A)}return M.toString=function(){return f+""},M}function c(f,h){var v=u((f=I0(f),f.type="f",f)),p=Math.max(-8,Math.min(8,Math.floor(SX(h)/3)))*3,d=Math.pow(10,-p),g=TL[8+p/3];return function(y){return v(d*y)+g}}return{format:u,formatPrefix:c}}var Vh,P0;MX({thousands:",",grouping:[3],currency:["$",""]});function MX(r){return Vh=AX(r),P0=Vh.format,Vh.formatPrefix,Vh}const k0={props:{type:[String],showLegend:{type:Boolean,default:!0},legend:{type:Object,default:()=>({show:!0,orient:"vertical",right:null,left:null,x:null,y:null})},dataset:{type:Object,default:()=>({source:[],dimensions:[]})},height:{type:Number,default:()=>250},api:{type:String,default:()=>""},settings:{type:Object,default:()=>{}},options:{type:Object,default:()=>{}}},data(){return{style:{},chartState:null}},methods:{async getDataByApi(){try{const r=await Jt.get(this.api),{data:e}=r;return e}catch(r){console.error(r)}},async initChart(r={}){var a;const e=this.$refs.chart;this.chartState||(this.chartState=window.echarts.init(e));const t=await this.getDataset(),n=await{color:["#01a0c0","#3d466f","#48b983","#ff6f42","rgb(102, 102, 102)","rgb(224, 67, 85)","rgb(252, 199, 0)","rgb(168, 104, 183)","rgb(163, 143, 121)"],legend:{show:this.legend.show,orient:this.legend.orient,right:this.legend.right,left:this.legend.left,x:this.legend.x,y:this.legend.y},...this.options,...typeof r=="function"?r(t):r,dataZoom:[{type:"inside",start:0,end:100},{type:"slider",show:!1,start:0,end:20}],tooltip:{trigger:"item",appendToBody:!0,backgroundColor:"transparent",borderColor:"transparent",extraCssText:"box-shadow: none;",...r==null?void 0:r.tooltip,...(a=this.options)==null?void 0:a.tooltip,formatter:i=>{const o=Array.isArray(i)?i:[i],s=f=>(f==null?void 0:f.color)||(f==null?void 0:f.borderColor)||"",l=f=>{const h=f.data[f.seriesName];return h?P0(".2s")(h):f.value},u=f=>(f==null?void 0:f.seriesName)||(f==null?void 0:f.name)||"",c=(f,h)=>h.seriesType==="pie"?f+=`<div><strong class="vs-chart-tooltip__head-value">${P0(".2s")(Object.values(h.data).at(-1))} </strong> | ${h.percent}%</div>`:f+=`
|
|
90
|
+
`):" "+vL(i[0]):"as no adapter specified";throw new At("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return n},adapters:T0};function D0(r){if(r.cancelToken&&r.cancelToken.throwIfRequested(),r.signal&&r.signal.aborted)throw new ss(null,r)}function dL(r){return D0(r),r.headers=je.from(r.headers),r.data=b0.call(r,r.transformRequest),["post","put","patch"].indexOf(r.method)!==-1&&r.headers.setContentType("application/x-www-form-urlencoded",!1),pL.getAdapter(r.adapter||ou.adapter)(r).then(function(n){return D0(r),n.data=b0.call(r,r.transformResponse,n),n.headers=je.from(n.headers),n},function(n){return rL(n)||(D0(r),n&&n.response&&(n.response.data=b0.call(r,r.transformResponse,n.response),n.response.headers=je.from(n.response.headers))),Promise.reject(n)})}const gL="1.7.7",C0={};["object","boolean","number","function","string","symbol"].forEach((r,e)=>{C0[r]=function(n){return typeof n===r||"a"+(e<1?"n ":" ")+r}});const yL={};C0.transitional=function(e,t,n){function a(i,o){return"[Axios v"+gL+"] Transitional option '"+i+"'"+o+(n?". "+n:"")}return(i,o,s)=>{if(e===!1)throw new At(a(o," has been removed"+(t?" in "+t:"")),At.ERR_DEPRECATED);return t&&!yL[o]&&(yL[o]=!0,console.warn(a(o," has been deprecated since v"+t+" and will be removed in the near future"))),e?e(i,o,s):!0}};function mX(r,e,t){if(typeof r!="object")throw new At("options must be an object",At.ERR_BAD_OPTION_VALUE);const n=Object.keys(r);let a=n.length;for(;a-- >0;){const i=n[a],o=e[i];if(o){const s=r[i],l=s===void 0||o(s,i,r);if(l!==!0)throw new At("option "+i+" must be "+l,At.ERR_BAD_OPTION_VALUE);continue}if(t!==!0)throw new At("Unknown option "+i,At.ERR_BAD_OPTION)}}const A0={assertOptions:mX,validators:C0},Ta=A0.validators;class Wi{constructor(e){this.defaults=e,this.interceptors={request:new JI,response:new JI}}async request(e,t){try{return await this._request(e,t)}catch(n){if(n instanceof Error){let a;Error.captureStackTrace?Error.captureStackTrace(a={}):a=new Error;const i=a.stack?a.stack.replace(/^.+\n/,""):"";try{n.stack?i&&!String(n.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(n.stack+=`
|
|
91
|
+
`+i):n.stack=i}catch{}}throw n}}_request(e,t){typeof e=="string"?(t=t||{},t.url=e):t=e||{},t=Hi(this.defaults,t);const{transitional:n,paramsSerializer:a,headers:i}=t;n!==void 0&&A0.assertOptions(n,{silentJSONParsing:Ta.transitional(Ta.boolean),forcedJSONParsing:Ta.transitional(Ta.boolean),clarifyTimeoutError:Ta.transitional(Ta.boolean)},!1),a!=null&&(H.isFunction(a)?t.paramsSerializer={serialize:a}:A0.assertOptions(a,{encode:Ta.function,serialize:Ta.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();let o=i&&H.merge(i.common,i[t.method]);i&&H.forEach(["delete","get","head","post","put","patch","common"],p=>{delete i[p]}),t.headers=je.concat(o,i);const s=[];let l=!0;this.interceptors.request.forEach(function(d){typeof d.runWhen=="function"&&d.runWhen(t)===!1||(l=l&&d.synchronous,s.unshift(d.fulfilled,d.rejected))});const u=[];this.interceptors.response.forEach(function(d){u.push(d.fulfilled,d.rejected)});let c,f=0,h;if(!l){const p=[dL.bind(this),void 0];for(p.unshift.apply(p,s),p.push.apply(p,u),h=p.length,c=Promise.resolve(t);f<h;)c=c.then(p[f++],p[f++]);return c}h=s.length;let v=t;for(f=0;f<h;){const p=s[f++],d=s[f++];try{v=p(v)}catch(g){d.call(this,g);break}}try{c=dL.call(this,v)}catch(p){return Promise.reject(p)}for(f=0,h=u.length;f<h;)c=c.then(u[f++],u[f++]);return c}getUri(e){e=Hi(this.defaults,e);const t=oL(e.baseURL,e.url);return jI(t,e.params,e.paramsSerializer)}}H.forEach(["delete","get","head","options"],function(e){Wi.prototype[e]=function(t,n){return this.request(Hi(n||{},{method:e,url:t,data:(n||{}).data}))}}),H.forEach(["post","put","patch"],function(e){function t(n){return function(i,o,s){return this.request(Hi(s||{},{method:e,headers:n?{"Content-Type":"multipart/form-data"}:{},url:i,data:o}))}}Wi.prototype[e]=t(),Wi.prototype[e+"Form"]=t(!0)});class M0{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(i){t=i});const n=this;this.promise.then(a=>{if(!n._listeners)return;let i=n._listeners.length;for(;i-- >0;)n._listeners[i](a);n._listeners=null}),this.promise.then=a=>{let i;const o=new Promise(s=>{n.subscribe(s),i=s}).then(a);return o.cancel=function(){n.unsubscribe(i)},o},e(function(i,o,s){n.reason||(n.reason=new ss(i,o,s),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);t!==-1&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=n=>{e.abort(n)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new M0(function(a){e=a}),cancel:e}}}function _X(r){return function(t){return r.apply(null,t)}}function xX(r){return H.isObject(r)&&r.isAxiosError===!0}const E0={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(E0).forEach(([r,e])=>{E0[e]=r});function mL(r){const e=new Wi(r),t=NI(Wi.prototype.request,e);return H.extend(t,Wi.prototype,e,{allOwnKeys:!0}),H.extend(t,e,null,{allOwnKeys:!0}),t.create=function(a){return mL(Hi(r,a))},t}const Jt=mL(ou);Jt.Axios=Wi,Jt.CanceledError=ss,Jt.CancelToken=M0,Jt.isCancel=rL,Jt.VERSION=gL,Jt.toFormData=Lh,Jt.AxiosError=At,Jt.Cancel=Jt.CanceledError,Jt.all=function(e){return Promise.all(e)},Jt.spread=_X,Jt.isAxiosError=xX,Jt.mergeConfig=Hi,Jt.AxiosHeaders=je,Jt.formToJSON=r=>tL(H.isHTMLForm(r)?new FormData(r):r),Jt.getAdapter=pL.getAdapter,Jt.HttpStatusCode=E0,Jt.default=Jt;function SX(r){return Math.abs(r=Math.round(r))>=1e21?r.toLocaleString("en").replace(/,/g,""):r.toString(10)}function Oh(r,e){if((t=(r=e?r.toExponential(e-1):r.toExponential()).indexOf("e"))<0)return null;var t,n=r.slice(0,t);return[n.length>1?n[0]+n.slice(2):n,+r.slice(t+1)]}function bX(r){return r=Oh(Math.abs(r)),r?r[1]:NaN}function wX(r,e){return function(t,n){for(var a=t.length,i=[],o=0,s=r[0],l=0;a>0&&s>0&&(l+s+1>n&&(s=Math.max(1,n-l)),i.push(t.substring(a-=s,a+s)),!((l+=s+1)>n));)s=r[o=(o+1)%r.length];return i.reverse().join(e)}}function TX(r){return function(e){return e.replace(/[0-9]/g,function(t){return r[+t]})}}var DX=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function I0(r){if(!(e=DX.exec(r)))throw new Error("invalid format: "+r);var e;return new L0({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}I0.prototype=L0.prototype;function L0(r){this.fill=r.fill===void 0?" ":r.fill+"",this.align=r.align===void 0?">":r.align+"",this.sign=r.sign===void 0?"-":r.sign+"",this.symbol=r.symbol===void 0?"":r.symbol+"",this.zero=!!r.zero,this.width=r.width===void 0?void 0:+r.width,this.comma=!!r.comma,this.precision=r.precision===void 0?void 0:+r.precision,this.trim=!!r.trim,this.type=r.type===void 0?"":r.type+""}L0.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function CX(r){t:for(var e=r.length,t=1,n=-1,a;t<e;++t)switch(r[t]){case".":n=a=t;break;case"0":n===0&&(n=t),a=t;break;default:if(!+r[t])break t;n>0&&(n=0);break}return n>0?r.slice(0,n)+r.slice(a+1):r}var _L;function AX(r,e){var t=Oh(r,e);if(!t)return r+"";var n=t[0],a=t[1],i=a-(_L=Math.max(-8,Math.min(8,Math.floor(a/3)))*3)+1,o=n.length;return i===o?n:i>o?n+new Array(i-o+1).join("0"):i>0?n.slice(0,i)+"."+n.slice(i):"0."+new Array(1-i).join("0")+Oh(r,Math.max(0,e+i-1))[0]}function xL(r,e){var t=Oh(r,e);if(!t)return r+"";var n=t[0],a=t[1];return a<0?"0."+new Array(-a).join("0")+n:n.length>a+1?n.slice(0,a+1)+"."+n.slice(a+1):n+new Array(a-n.length+2).join("0")}const SL={"%":(r,e)=>(r*100).toFixed(e),b:r=>Math.round(r).toString(2),c:r=>r+"",d:SX,e:(r,e)=>r.toExponential(e),f:(r,e)=>r.toFixed(e),g:(r,e)=>r.toPrecision(e),o:r=>Math.round(r).toString(8),p:(r,e)=>xL(r*100,e),r:xL,s:AX,X:r=>Math.round(r).toString(16).toUpperCase(),x:r=>Math.round(r).toString(16)};function bL(r){return r}var wL=Array.prototype.map,TL=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function MX(r){var e=r.grouping===void 0||r.thousands===void 0?bL:wX(wL.call(r.grouping,Number),r.thousands+""),t=r.currency===void 0?"":r.currency[0]+"",n=r.currency===void 0?"":r.currency[1]+"",a=r.decimal===void 0?".":r.decimal+"",i=r.numerals===void 0?bL:TX(wL.call(r.numerals,String)),o=r.percent===void 0?"%":r.percent+"",s=r.minus===void 0?"−":r.minus+"",l=r.nan===void 0?"NaN":r.nan+"";function u(f){f=I0(f);var h=f.fill,v=f.align,p=f.sign,d=f.symbol,g=f.zero,y=f.width,m=f.comma,_=f.precision,x=f.trim,b=f.type;b==="n"?(m=!0,b="g"):SL[b]||(_===void 0&&(_=12),x=!0,b="g"),(g||h==="0"&&v==="=")&&(g=!0,h="0",v="=");var S=d==="$"?t:d==="#"&&/[boxX]/.test(b)?"0"+b.toLowerCase():"",w=d==="$"?n:/[%p]/.test(b)?o:"",T=SL[b],D=/[defgprs%]/.test(b);_=_===void 0?6:/[gprs]/.test(b)?Math.max(1,Math.min(21,_)):Math.max(0,Math.min(20,_));function M(A){var E=S,I=w,L,P,R;if(b==="c")I=T(A)+I,A="";else{A=+A;var V=A<0||1/A<0;if(A=isNaN(A)?l:T(Math.abs(A),_),x&&(A=CX(A)),V&&+A==0&&p!=="+"&&(V=!1),E=(V?p==="("?p:s:p==="-"||p==="("?"":p)+E,I=(b==="s"?TL[8+_L/3]:"")+I+(V&&p==="("?")":""),D){for(L=-1,P=A.length;++L<P;)if(R=A.charCodeAt(L),48>R||R>57){I=(R===46?a+A.slice(L+1):A.slice(L))+I,A=A.slice(0,L);break}}}m&&!g&&(A=e(A,1/0));var O=E.length+A.length+I.length,B=O<y?new Array(y-O+1).join(h):"";switch(m&&g&&(A=e(B+A,B.length?y-I.length:1/0),B=""),v){case"<":A=E+A+I+B;break;case"=":A=E+B+A+I;break;case"^":A=B.slice(0,O=B.length>>1)+E+A+I+B.slice(O);break;default:A=B+E+A+I;break}return i(A)}return M.toString=function(){return f+""},M}function c(f,h){var v=u((f=I0(f),f.type="f",f)),p=Math.max(-8,Math.min(8,Math.floor(bX(h)/3)))*3,d=Math.pow(10,-p),g=TL[8+p/3];return function(y){return v(d*y)+g}}return{format:u,formatPrefix:c}}var Vh,P0;EX({thousands:",",grouping:[3],currency:["$",""]});function EX(r){return Vh=MX(r),P0=Vh.format,Vh.formatPrefix,Vh}const k0={props:{type:[String],showLegend:{type:Boolean,default:!0},legend:{type:Object,default:()=>({show:!0,orient:"vertical",right:null,left:null,x:null,y:null})},dataset:{type:Object,default:()=>({source:[],dimensions:[]})},height:{type:Number,default:()=>250},api:{type:String,default:()=>""},settings:{type:Object,default:()=>{}},options:{type:Object,default:()=>{}}},data(){return{style:{},chartState:null}},methods:{async getDataByApi(){try{const r=await Jt.get(this.api),{data:e}=r;return e}catch(r){console.error(r)}},async initChart(r={}){var a;const e=this.$refs.chart;this.chartState||(this.chartState=window.echarts.init(e));const t=await this.getDataset(),n=await{color:["#01a0c0","#3d466f","#48b983","#ff6f42","rgb(102, 102, 102)","rgb(224, 67, 85)","rgb(252, 199, 0)","rgb(168, 104, 183)","rgb(163, 143, 121)"],legend:{show:this.legend.show,orient:this.legend.orient,right:this.legend.right,left:this.legend.left,x:this.legend.x,y:this.legend.y},...this.options,...typeof r=="function"?r(t):r,dataZoom:[{type:"inside",start:0,end:100},{type:"slider",show:!1,start:0,end:20}],tooltip:{trigger:"item",appendToBody:!0,backgroundColor:"transparent",borderColor:"transparent",extraCssText:"box-shadow: none;",...r==null?void 0:r.tooltip,...(a=this.options)==null?void 0:a.tooltip,formatter:i=>{const o=Array.isArray(i)?i:[i],s=f=>(f==null?void 0:f.color)||(f==null?void 0:f.borderColor)||"",l=f=>{const h=f.data[f.seriesName];return h?P0(".2s")(h):f.value},u=f=>(f==null?void 0:f.seriesName)||(f==null?void 0:f.name)||"",c=(f,h)=>h.seriesType==="pie"?f+=`<div><strong class="vs-chart-tooltip__head-value">${P0(".2s")(Object.values(h.data).at(-1))} </strong> | ${h.percent}%</div>`:f+=`
|
|
92
92
|
<div class="vs-chart-tooltip__item">
|
|
93
93
|
<span class="vs-chart-tooltip__color" style="background-color: ${s(h)};">
|
|
94
94
|
</span>
|
|
@@ -105,13 +105,13 @@ echarts.use([`+E+"]);":"Unknown series "+A))}return}if(f==="tooltip"){if(_){proc
|
|
|
105
105
|
</div>
|
|
106
106
|
<div class="vs-chart-tooltip__body">${o.reduce(c,"")}</div>
|
|
107
107
|
</div>
|
|
108
|
-
`}},dataset:t};window.addEventListener("resize",this.resizeChart),await this.chartState.setOption(n)},async getDataset(){return this.api?await this.getDataByApi():this.dataset},resizeChart(){const r=this.$refs.chart.parentElement,e=this.height||250,t=r.clientWidth,n={height:e,width:t};this.chartState.resize(n)}}},
|
|
108
|
+
`}},dataset:t};window.addEventListener("resize",this.resizeChart),await this.chartState.setOption(n)},async getDataset(){return this.api?await this.getDataByApi():this.dataset},resizeChart(){const r=this.$refs.chart.parentElement,e=this.height||250,t=r.clientWidth,n={height:e,width:t};this.chartState.resize(n)}}},IX={mixins:[k0],components:{VsBar:Ch},props:{api:String},data(){return{dimensions:[]}},async mounted(){const r=await this.getDataset();console.log("1111",r),this.dimensions=(r==null?void 0:r.dimensions)||[]}},LX={class:"flex flex-col bg-white border border-gray-200 rounded-xl"},PX={class:"py-4 px-5 space-y-4 flex justify-center"};function kX(r,e,t,n,a,i){const o=k.resolveComponent("VsBar");return k.openBlock(),k.createElementBlock("div",LX,[k.createElementVNode("div",PX,[k.createVNode(o,{api:t.api,height:250,legendLeft:0},null,8,["api"])])])}const DL=me(IX,[["render",kX]]),RX={props:["source","dimensions","name","style"],data(){return{myChartvt:null}},async mounted(){const{series:r}=this.prepareData();r&&this.initChart(r)},computed:{uniqueID(){return`vt-donat-${this.name}-chart`}},methods:{buildTooltipForDonut(r,e){const{name:t,value:n,percent:a}=r;return`
|
|
109
109
|
<div style="background-color:${e[0]};font-size: 12px; font-family: Helvetica, Arial, sans-serif;color:#ffff; padding:5px; border-radius:5px; ![box-shadow:none]">
|
|
110
110
|
${t}: ${Fi(n)} (${a}%)
|
|
111
|
-
</div>`},prepareData(){var r,e;try{const t=Array.from(new Set(this.source.map(u=>u[this.dimensions[0]]))),n=Array.from(new Set(this.source.map(u=>u[this.dimensions[1]]))),a=t.map((u,c)=>({name:u,value:n[c]})),i=((r=this.style)==null?void 0:r.innerRadius)||"45%",o=(e=this.style)==null?void 0:e.outerRadius;return{series:[{name:"Total Revenue",type:"pie",radius:[i,o],center:["50%","50%"],label:{show:!1,position:"center"},labelLine:{show:!1},data:a}]}}catch(t){console.error(t)}},async initChart(r){try{const e=document.getElementById(this.uniqueID),t=zd(e),n={tooltip:{trigger:"item",formatter:a=>this.buildTooltipForDonut(a,[a.color]),borderWidth:0,appendToBody:!0,borderColor:"transparent",textStyle:{color:"#000"},padding:[10,15],shadowColor:"transparent",backgroundColor:"transparent"},series:r,...v0(this.style)};t.setOption(n),t.resize(),window.addEventListener("resize",()=>{t.resize()})}catch(e){console.error(e)}}}},RX=["id"];function NX(r,e,t,n,a,i){return k.openBlock(),k.createElementBlock("div",{id:i.uniqueID,class:"h-full"},null,8,RX)}const Bh=me(kX,[["render",NX]]),OX=Object.freeze(Object.defineProperty({__proto__:null,default:Bh},Symbol.toStringTag,{value:"Module"})),VX={mixins:[k0],components:{VsPie:Bh},props:{api:String,title:String},data(){return{data:{},chartColors:["#01a0c0","#3d466f","#48b983","#ff6f42","rgb(102, 102, 102)","rgb(224, 67, 85)","rgb(252, 199, 0)","rgb(168, 104, 183)","rgb(163, 143, 121)"]}},async mounted(){this.data=await this.getDataset()},methods:{async getDataset(){return this.api?await this.getDataByApi():this.dataset},async getDataByApi(){try{return(await Jt.get(this.api)).data}catch(r){console.error(r)}}}},BX={class:"flex flex-col bg-white border border-gray-200 shadow-sm rounded-xl"},zX={key:0,class:"p-5 pb-4 grid grid-cols-2 items-center gap-x-4"},FX={class:"inline-block font-semibold text-gray-800"},GX={class:"h-full p-5 pt-0 space-y-4"},HX={class:"h-[297px] flex justify-center w-full"},WX={class:"text-sm"},$X={class:"text-sm text-gray-800"};function UX(r,e,t,n,a,i){var s;const o=k.resolveComponent("VsPie");return k.openBlock(),k.createElementBlock("div",BX,[t.title?(k.openBlock(),k.createElementBlock("div",zX,[k.createElementVNode("div",null,[k.createElementVNode("h2",FX,k.toDisplayString(t.title),1)])])):k.createCommentVNode("",!0),k.createElementVNode("div",GX,[k.createElementVNode("div",HX,[k.createVNode(o,{api:t.api,showLegend:!1},null,8,["api"])]),k.createElementVNode("ul",null,[(k.openBlock(!0),k.createElementBlock(k.Fragment,null,k.renderList((s=a.data)==null?void 0:s.source,(l,u)=>{var c,f,h,v;return k.openBlock(),k.createElementBlock("li",{key:"item-"+u,class:"py-3 grid grid-cols-2 justify-between items-center gap-x-4 border-b last:border-b-0 border-gray-200"},[(k.openBlock(),k.createElementBlock("div",{key:"item-"+l.category+"-"+r.dimensionIndex,class:"flex items-center"},[k.createElementVNode("span",{class:"flex-shrink-0 w-2.5 h-2.5 inline-block rounded-sm me-2.5",style:k.normalizeStyle({backgroundColor:a.chartColors[u%a.chartColors.length]})},null,4),k.createElementVNode("span",WX,k.toDisplayString(l[(f=(c=a.data)==null?void 0:c.dimensions)==null?void 0:f[0]]),1)])),(k.openBlock(),k.createElementBlock("div",{key:"item-"+l.category+"-"+r.dimensionIndex,class:"flex items-center justify-end"},[k.createElementVNode("span",$X,k.toDisplayString(l[(v=(h=a.data)==null?void 0:h.dimensions)==null?void 0:v[1]]),1)]))])}),128))])])])}const CL=me(VX,[["render",UX]]),YX={props:["source","dimensions","title","dimensionsType","style","name"],data(){return{myChartvt:null}},computed:{uniqueID(){return`vt-${this.name}-chart`}},async mounted(){const{series:r,xs:e}=this.prepareData();r&&this.initChart(r,e)},methods:{prepareData(){var r;try{const e=Array.from(new Set(this.source.map(i=>i[this.dimensions[0]])));let t;this.dimensionsType[0]==="date"?t=e.map(i=>h0(i)):t=[...e];const n=this.source.map(i=>parseFloat(i[this.dimensions[1]]));let a;return(r=this.style)!=null&&r.stack?a=this.dimensions.slice(1).map((o,s)=>({name:o,type:"line",stack:"a",data:this.source.filter(l=>parseFloat(l[o])).map(l=>parseFloat(l[o]))})):a=[{name:this.title,type:"line",data:n,stack:"a"}],{series:a,xs:t}}catch(e){console.error(e)}},async initChart(r,e){try{const t=document.getElementById(this.uniqueID),n=zd(t),a={tooltip:{trigger:"axis",axisPointer:{type:"shadow"},appendToBody:!0,formatter:i=>PI(i)},xAxis:{data:e,axisLabel:{...kI()}},yAxis:{type:"value",axisLabel:{...RI()}},series:r,...v0(this.style)};n.setOption(a),window.addEventListener("resize",()=>{n.resize()})}catch(t){console.error(t)}}}},ZX=["id"];function XX(r,e,t,n,a,i){return k.openBlock(),k.createElementBlock("div",{id:i.uniqueID,class:"min-h-[300px] h-full w-full"},null,8,ZX)}const AL=me(YX,[["render",XX]]),qX={mixins:[k0]},KX={class:"mb-2 xl:mb-5 grid sm:grid-cols-2 lg:grid-cols-4 gap-2 xl:gap-5"},jX={class:"flex flex-col p-5 bg-white border border-gray-200 shadow-[0_4px_6px_0px_rgba(0,0,0,0.03)] rounded-xl dark:bg-neutral-800 dark:border-neutral-700"},JX={class:"space-y-4"},QX={class:"grid grid-cols-2 gap-x-2"};function tq(r,e,t,n,a,i){const o=k.resolveComponent("VsLine");return k.openBlock(),k.createElementBlock("div",KX,[k.createElementVNode("div",jX,[k.createElementVNode("div",JX,[k.createElementVNode("div",QX,[e[0]||(e[0]=k.createElementVNode("div",{class:"text-2xl font-semibold text-gray-800 dark:text-neutral-200"},"17,482",-1)),k.createVNode(o,{api:r.api,dataset:r.dataset,options:r.options,seriesOptions:r.seriesOptions,showLegend:r.showLegend},null,8,["api","dataset","options","seriesOptions","showLegend"])]),e[1]||(e[1]=k.createStaticVNode('<div class="flex items-center gap-x-2"><span class="py-1 px-1.5 inline-flex items-center gap-x-1 text-xs bg-gray-100 text-gray-800 rounded-md dark:bg-neutral-500/20 dark:text-neutral-400"><svg class="flex-shrink-0 size-3" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="22 7 13.5 15.5 8.5 10.5 2 17"></polyline><polyline points="16 7 22 7 22 13"></polyline></svg> 37.3% </span><p class="text-xs text-gray-500 dark:text-neutral-400">from 12,142</p></div>',1))])])])}const ML=me(qX,[["render",tq]]),eq={props:["source","dimensions"],data(){return{restDimensions:[],sumValue:0}},mounted(){this.prepareData()},methods:{prepareData(){const r=this.source.map(e=>{var t;return parseFloat(e[(t=this.dimensions)==null?void 0:t[1]])});this.sumValue=r.reduce((e,t)=>e+t,0),this.source.forEach(e=>{e.color=this.randomColor()})},formattedValue(r){const e=parseFloat(r);return Fi(e)},randomColor(){const r="0123456789ABCDEF";let e="#";for(let t=0;t<6;t++)e+=r[Math.floor(Math.random()*16)];return e}}},rq={class:"flex flex-col bg-white border border-gray-200 shadow-sm rounded-xl pb-4"},nq={class:"h-full p-5"},aq={class:"h-full flex flex-col justify-between space-y-4"},iq={class:"space-y-4"},oq={class:"flex gap-x-1 w-full h-2.5 rounded-full overflow-hidden"},sq={class:"py-2 grid grid-cols-2 justify-between items-center gap-x-4"},lq={class:"flex items-center"},uq={class:"text-sm text-gray-800"},cq={class:"text-end"},fq={class:"text-sm text-gray-500"};function hq(r,e,t,n,a,i){return k.openBlock(),k.createElementBlock("div",rq,[k.createElementVNode("div",nq,[k.createElementVNode("div",aq,[k.createElementVNode("div",iq,[k.createElementVNode("div",oq,[(k.openBlock(!0),k.createElementBlock(k.Fragment,null,k.renderList(t.source,o=>(k.openBlock(),k.createElementBlock("div",{class:k.normalizeClass(["flex flex-col justify-center overflow-hidden text-xs text-white text-center whitespace-nowrap",`bg-[${o.color}]`]),style:k.normalizeStyle({width:`${parseFloat(o[t.dimensions[1]])/a.sumValue*100}%`}),role:"progressbar","aria-valuenow":"42","aria-valuemin":"0","aria-valuemax":"100"},null,6))),256))]),k.createElementVNode("ul",null,[(k.openBlock(!0),k.createElementBlock(k.Fragment,null,k.renderList(t.source,o=>(k.openBlock(),k.createElementBlock("li",sq,[k.createElementVNode("div",lq,[k.createElementVNode("span",{class:k.normalizeClass(["shrink-0 size-2.5 inline-block rounded-sm me-2.5",`bg-[${o.color}]`])},null,2),k.createElementVNode("span",uq,k.toDisplayString(o[t.dimensions[0]]),1)]),k.createElementVNode("div",cq,[k.createElementVNode("span",fq,k.toDisplayString(i.formattedValue(o[t.dimensions[1]])),1)])]))),256))])])])])])}const EL=me(eq,[["render",hq]]),vq={props:["source","dimensions"],data(){return{restDimensions:[],maxValue:0}},mounted(){this.prepareData()},methods:{prepareData(){const r=this.source.map(e=>{var t;return parseFloat(e[(t=this.dimensions)==null?void 0:t[1]])});this.maxValue=Math.max(...r)},formattedValue(r){return Fi(r)}}},pq={class:"flex flex-col bg-white border border-gray-200 shadow-sm rounded-xl"},dq={class:"px-5 grid grid-cols-2 items-center gap-x-4 border border-0"},gq={class:"inline-block font-semibold text-gray-800 border-0 border-white"},yq={class:"h-full p-5 pt-0 space-y-4"},mq={class:"space-y-4"},_q={class:"flex justify-between items-center gap-x-2"},xq={class:"w-full grid grid-cols-2 items-center gap-x-2"},Sq={class:"text-sm text-gray-800"},bq={class:"flex justify-end",role:"progressbar","aria-valuenow":"100","aria-valuemin":"0","aria-valuemax":"100"},wq={class:"min-w-[60px] text-end"},Tq={class:"text-sm text-gray-500"};function Dq(r,e,t,n,a,i){return k.openBlock(),k.createElementBlock("div",pq,[k.createElementVNode("div",dq,[k.createElementVNode("div",null,[k.createElementVNode("h2",gq,k.toDisplayString(t.dimensions[0]),1)])]),k.createElementVNode("div",yq,[k.createElementVNode("ul",mq,[(k.openBlock(!0),k.createElementBlock(k.Fragment,null,k.renderList(t.source,(o,s)=>(k.openBlock(),k.createElementBlock("li",_q,[k.createElementVNode("div",xq,[k.createElementVNode("span",Sq,k.toDisplayString(o[t.dimensions[0]]),1),k.createElementVNode("div",bq,[k.createElementVNode("div",{class:"h-1.5 flex flex-col justify-center overflow-hidden bg-indigo-500 rounded-full text-xs text-white text-center whitespace-nowrap",style:k.normalizeStyle({width:`${parseFloat(o[t.dimensions[1]])/a.maxValue*100}%`})},null,4)])]),k.createElementVNode("div",wq,[k.createElementVNode("span",Tq,k.toDisplayString(o[t.dimensions[1]]),1)])]))),256))])])])}const IL=me(vq,[["render",Dq]]),Cq={props:["source","dimensions"],data(){return{restDimensions:[],maxValue:0}},mounted(){this.prepareData()},methods:{prepareData(){var e;const r=this.source.map(t=>{var n;return t[(n=this.dimensions)==null?void 0:n[1]]});this.maxValue=Math.max(...r),this.restDimensions=(e=this.dimensions)==null?void 0:e.filter((t,n)=>n!==0)},formattedValue(r){return Fi(r)}}},Aq={class:"list-bar h-full p-3"},Mq={class:"flex justify-between items-center pb-2 pl-2 flex gap-x-2"},Eq={class:"inline-block font-medium text-xs uppercase text-gray-800"},Iq={class:"space-y-2 custom-scrollbar h-[calc(100%-20px)]"},Lq={class:"relative w-full truncate"},Pq={class:"relative z-[1] block py-1 px-2 w-full text-sm truncate text-gray-800"},kq={class:"text-sm text-gray-500"};function Rq(r,e,t,n,a,i){return k.openBlock(),k.createElementBlock("div",Aq,[k.createElementVNode("div",Mq,[(k.openBlock(!0),k.createElementBlock(k.Fragment,null,k.renderList(t.dimensions,(o,s)=>(k.openBlock(),k.createElementBlock("div",{key:s},[k.createElementVNode("h3",Eq,k.toDisplayString(o),1)]))),128))]),k.createElementVNode("ul",Iq,[(k.openBlock(!0),k.createElementBlock(k.Fragment,null,k.renderList(t.source,(o,s)=>(k.openBlock(),k.createElementBlock("li",{class:"flex justify-between items-center gap-x-2 w-full",key:s},[k.createElementVNode("div",Lq,[k.createElementVNode("span",Pq,k.toDisplayString(o[t.dimensions[0]]),1),k.createElementVNode("div",{class:"absolute inset-y-0 start-0 bg-indigo-100 h-full rounded",style:k.normalizeStyle({width:`${o[t.dimensions[1]]/a.maxValue*100}%`})},null,4)]),(k.openBlock(!0),k.createElementBlock(k.Fragment,null,k.renderList(a.restDimensions,(l,u)=>(k.openBlock(),k.createElementBlock("div",{class:"w-20 text-end",key:u},[k.createElementVNode("span",kq,k.toDisplayString(i.formattedValue(o[l])),1)]))),128))]))),128))])])}const R0=me(Cq,[["render",Rq]]),Nq=Object.freeze(Object.defineProperty({__proto__:null,default:R0},Symbol.toStringTag,{value:"Module"})),Oq={bar:k.defineAsyncComponent(()=>Promise.resolve().then(()=>KY)),number:k.defineAsyncComponent(()=>Promise.resolve().then(()=>DK)),text:k.defineAsyncComponent(()=>Promise.resolve().then(()=>lj)),listbar:k.defineAsyncComponent(()=>Promise.resolve().then(()=>Nq)),pie:k.defineAsyncComponent(()=>Promise.resolve().then(()=>OX))},Vq={},Bq={type:"button",class:"hs-tooltip-toggle flex justify-center items-center gap-x-3 size-8 text-sm text-gray-600 hover:bg-gray-100 rounded-full disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-gray-100 dark:text-neutral-400 dark:hover:bg-neutral-700 dark:focus:bg-neutral-700 dark:hover:text-neutral-200 dark:focus:text-neutral-200"};function zq(r,e,t,n,a,i){return k.openBlock(),k.createElementBlock("button",Bq,[k.renderSlot(r.$slots,"default")])}const Fq=me(Vq,[["render",zq]]),Gq={},Hq={class:"shrink-0 size-4",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"#9E9E9E",stroke:"#9E9E9E","stroke-width":"2","stroke-linecap":"#9E9E9E","stroke-linejoin":"#9E9E9E"};function Wq(r,e){return k.openBlock(),k.createElementBlock("svg",Hq,e[0]||(e[0]=[k.createElementVNode("circle",{cx:"12",cy:"12",r:"1"},null,-1),k.createElementVNode("circle",{cx:"12",cy:"5",r:"1"},null,-1),k.createElementVNode("circle",{cx:"12",cy:"19",r:"1"},null,-1)]))}const $q={components:{menuIcon:me(Gq,[["render",Wq]])},props:{name:{type:String,default:"Referral Traffic"}},data(){return{options:[{label:"Force refresh",emit:"refresh"},{label:"Fetched a few seconds ago",emit:"fetch"},{label:"Enter fullscreen",emit:"fullscreen"},{label:"Edit chart",emit:"edit"},{label:"View as table",emit:"view:tble"},{label:"View query",emit:"view:query"},{label:"Share",emit:"share"},{label:"Dowloand",emit:"dowloand"}],menuIsOpen:!1}},methods:{toggleDropdown(){this.menuIsOpen=!this.menuIsOpen}}},Uq={key:0,class:"right-1 duration absolute z-10 bg-white rounded-xl shadow-[0_10px_40px_10px_rgba(0,0,0,0.08)]",role:"menu","aria-orientation":"vertical","aria-labelledby":"hs-pro-dbrrtchmd"},Yq={class:"p-1 w-[168px]"},Zq=["onClick"];function Xq(r,e,t,n,a,i){const o=k.resolveComponent("menuIcon");return k.openBlock(),k.createElementBlock("div",null,[k.createElementVNode("button",{type:"button",onClick:e[0]||(e[0]=(...s)=>i.toggleDropdown&&i.toggleDropdown(...s)),class:"h-[36px] w-[36px] inline-flex justify-center items-center gap-x-2 rounded-lg border border-transparent text-gray-500 hover:bg-gray-100 focus:outline-none focus:bg-gray-100 disabled:opacity-50 disabled:pointer-events-none","aria-haspopup":"menu","aria-expanded":"false","aria-label":"Dropdown"},[k.createVNode(o,{class:"h-[16px] w-[16px]"})]),a.menuIsOpen?(k.openBlock(),k.createElementBlock("div",Uq,[k.createElementVNode("div",Yq,[(k.openBlock(!0),k.createElementBlock(k.Fragment,null,k.renderList(a.options,s=>(k.openBlock(),k.createElementBlock("button",{type:"button",onClick:l=>r.$emits(s.emit),class:"w-full flex items-center py-1.5 pl-2 rounded-lg text-[13px] text-gray-800 hover:bg-gray-100 disabled:opacity-50 focus:outline-none focus:bg-gray-100 disabled:pointer-events-none"},k.toDisplayString(s.label),9,Zq))),256))])])):k.createCommentVNode("",!0)])}const qq={components:{VsMenu:me($q,[["render",Xq]]),VsSmallButton:Fq},props:{dashboardId:{type:String,default:""},widgetName:{type:String,default:""},source:{type:Array},dimensions:{type:Array},dimensionsType:{type:Array},title:{type:String},type:{type:String}},data(){return{widget:null}},mounted(){!this.source&&!this.dimensions&&this.getData()},watch:{widgetName(){this.getData()}},methods:{async getData(){var r;try{const e=this.dashboardId?`/api/bi-data?dashboard=${this.dashboardId}&widget=${this.widgetName}`:`/api/bi-data?&widget=${this.widgetName}`,t=await Jt.get(e);this.widget=t.data,this.text=((r=t.data)==null?void 0:r.title)||(this==null?void 0:this.widgetName)||"title",this.widget.name=this.widgetName}catch(e){console.error(e)}},handleClick(){this.$emit("clicked",this.widget)}}},Kq={class:"text-[16px] mb-[4px] flex max-w-full items-center min-h-0 flex justify-between max-h-[50px]"},jq={class:"text-gray-800 nline-block font-semibold font-[24px]"},Jq={class:"w-full h-[calc(100%-50px)]"};function Qq(r,e,t,n,a,i){var o,s,l,u,c;return k.openBlock(),k.createElementBlock("div",{onClick:e[0]||(e[0]=f=>i.handleClick()),class:"relative select-auto rounded-xl p-4 border border-gray-200 box-border bg-white"},[k.createElementVNode("div",Kq,[k.createElementVNode("div",null,[k.createElementVNode("span",jq,k.toDisplayString(r.text),1)])]),k.createElementVNode("div",Jq,[k.renderSlot(r.$slots,"default",{source:t.source||((o=a.widget)==null?void 0:o.source)||a.widget,dimensions:t.dimensions||((s=a.widget)==null?void 0:s.dimensions),title:(l=a.widget)==null?void 0:l.title,dimensionsType:t.dimensionsType||((u=a.widget)==null?void 0:u.dimensionsType),type:t.type||((c=a.widget)==null?void 0:c.type)})])])}const LL=me(qq,[["render",Qq]]),tK={},eK={class:"w-full flex justify-center"};function rK(r,e,t,n,a,i){return k.openBlock(),k.createElementBlock("div",eK,e[0]||(e[0]=[k.createStaticVNode('<div class="text-center p-4 bg-white rounded-lg shadow-md"><svg xmlns="http://www.w3.org/2000/svg" class="h-16 w-16 text-gray-400" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"></path><path d="M9 12l2 2l4 -4"></path></svg><h3 class="text-2xl font-medium text-gray-900">No data available at this time</h3><p class="mt-2 text-gray-500">Information will be available soon</p></div>',1)]))}const nK={props:["id","info","editable"],components:{VsWidget:LL,VsNoData:me(tK,[["render",rK]]),...Oq},emits:["update:info"],data(){return{widgets:[],panels:[],error:!1,selectedPanel:""}},async mounted(){var r,e;this.selectedPanel=((e=(r=this.$route)==null?void 0:r.params)==null?void 0:e.widget)||"",await this.fetchData()},methods:{columnClass(r){const e=(r==null?void 0:r.col)||12;return{2:"md:w-1/4 sm:w-full",3:"md:w-1/4 sm:w-full",4:"md:w-1/3 sm:w-full",6:"md:w-1/2 sm:w-full",8:"md:w-3/4 sm:w-full",10:"md:w-1/3 sm:w-full"}[e]||"w-full"},async fetchData(){try{const r=await Jt.get(`/api/bi-dashboard/${this.id}`);this.error=!1;const e=r.data;this.widgets=e.widgets||[],this.panels=e.panels||[],e.name=this.id,this.$emit("update:info",e),this.selectedPanel&&this.fillWidgetWithData(this.selectedPanel)}catch(r){console.error(r),this.error=!0,this.$emit("update:info",null)}},getTypeByName(r){const e=this.widgets.find(t=>t.name===r);return(e==null?void 0:e.type)||"text"},getStyleByName(r){const e=this.widgets.find(t=>t.name===r);return(e==null?void 0:e.style)||{}},handleClick(r){this.editable&&(this.selectedPanel=(r==null?void 0:r.name)||r),this.fillWidgetWithData((r==null?void 0:r.name)||r)},fillWidgetWithData(r){const e=this.widgets.find(t=>t.name===r);if(e){const t={...e,name:r};this.$emit("clicked",t)}}}},aK={class:"container mx-auto"},iK={class:"flex flex-wrap mx-[-15px]"};function oK(r,e,t,n,a,i){const o=k.resolveComponent("VsNoData"),s=k.resolveComponent("VsWidget");return k.openBlock(),k.createElementBlock("div",aK,[k.createElementVNode("div",iK,[a.error?(k.openBlock(),k.createBlock(o,{key:0,class:"col-span-12"})):(k.openBlock(!0),k.createElementBlock(k.Fragment,{key:1},k.renderList(a.panels,(l,u)=>{var c;return k.openBlock(),k.createElementBlock("div",{key:u,class:k.normalizeClass([[i.columnClass(l)],"h-[400px] px-[7.5px] mb-[15px]"])},[(c=l.widgets)!=null&&c.length?(k.openBlock(!0),k.createElementBlock(k.Fragment,{key:0},k.renderList(l.widgets,f=>(k.openBlock(),k.createBlock(s,{key:f,dashboardId:t.id,widgetName:f,class:k.normalizeClass(["mb-[15px]",{"border border-blue-500 border-2":a.selectedPanel===f}]),onClicked:h=>i.handleClick(f)},{default:k.withCtx(({source:h,dimensions:v,dimensionsType:p,title:d})=>[h?(k.openBlock(),k.createBlock(k.resolveDynamicComponent(i.getTypeByName(f)),{key:0,source:h,dimensions:v,dimensionsType:p,style:k.normalizeStyle(i.getStyleByName(f)),name:f,title:d},null,8,["source","dimensions","dimensionsType","style","name","title"])):k.createCommentVNode("",!0)]),_:2},1032,["dashboardId","widgetName","class","onClicked"]))),128)):(k.openBlock(),k.createBlock(s,{key:1,dashboardId:t.id,widgetName:l.widget,class:k.normalizeClass(["h-[400px]",{"border border-blue-500 border-2":a.selectedPanel===l.widget}]),onClicked:f=>i.handleClick(l.widget)},{default:k.withCtx(({source:f,dimensions:h,dimensionsType:v,title:p})=>[f?(k.openBlock(),k.createBlock(k.resolveDynamicComponent(i.getTypeByName(l.widget)),{key:0,source:f,dimensions:h,dimensionsType:v,style:k.normalizeStyle(i.getStyleByName(l.widget)),name:l.widget,title:p},null,8,["source","dimensions","dimensionsType","style","name","title"])):k.createCommentVNode("",!0)]),_:2},1032,["dashboardId","widgetName","class","onClicked"]))],2)}),128))])])}const PL=me(nK,[["render",oK]]),sK={props:["source","dimensions","dimensionsType"],data(){return{values:null,xs:null,products:null}},mounted(){this.prepareData()},methods:{prepareData(){try{const r=Array.from(new Set(this.source.map(e=>e[this.dimensions[0]])));this.dimensionsType[0]==="date"?this.xs=r.map(e=>h0(e)):this.xs=[...r],this.products=this.dimensions.filter((e,t)=>t!=0),this.values=this.products.map((e,t)=>({name:e,type:"bar",stack:"a",data:this.source.filter(n=>parseFloat(n[e])).map(n=>Fi(parseFloat(n[e])))}))}catch(r){console.error(r)}}}},lK={class:"p-5 h-full space-y-4 flex flex-col bg-white shadow-sm rounded-xl custom-scrollbar"},uK={class:"overflow-x-auto [&::-webkit-scrollbar]:h-2 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-track]:bg-gray-100 [&::-webkit-scrollbar-thumb]:bg-gray-300"},cK={class:"min-w-full inline-block align-middle"},fK={class:"min-w-full divide-y divide-gray-200"},hK={class:"space-x-2"},vK={scope:"col",class:"xl:min-w-[220px] min-w-48"},pK={class:"py-2.5 text-text-start flex items-center gap-x-1 text-sm font-normal text-gray-500"},dK={class:"divide-y divide-gray-200"},gK={class:"size-px whitespace-nowrap py-3"},yK={class:"flex items-center gap-x-3"},mK={class:"text-sm font-medium text-gray-800"},_K={class:"size-px whitespace-nowrap py-3"},xK={class:"text-sm text-gray-600"};function SK(r,e,t,n,a,i){return k.openBlock(),k.createElementBlock("div",lK,[k.createElementVNode("div",uK,[k.createElementVNode("div",cK,[k.createElementVNode("table",fK,[k.createElementVNode("thead",null,[k.createElementVNode("tr",hK,[e[0]||(e[0]=k.createElementVNode("th",{scope:"col",class:"min-w-[200px]"},[k.createElementVNode("div",{class:"py-2.5 text-text-start flex items-center gap-x-1 text-sm font-normal text-gray-500"})],-1)),(k.openBlock(!0),k.createElementBlock(k.Fragment,null,k.renderList(a.xs,o=>(k.openBlock(),k.createElementBlock("th",vK,[k.createElementVNode("div",pK,k.toDisplayString(o),1)]))),256))])]),(k.openBlock(!0),k.createElementBlock(k.Fragment,null,k.renderList(a.values,o=>(k.openBlock(),k.createElementBlock("tbody",dK,[k.createElementVNode("tr",null,[k.createElementVNode("td",gK,[k.createElementVNode("div",yK,[k.createElementVNode("span",mK,k.toDisplayString(o.name),1)])]),(k.openBlock(!0),k.createElementBlock(k.Fragment,null,k.renderList(a.xs,(s,l)=>(k.openBlock(),k.createElementBlock("td",_K,[k.createElementVNode("span",xK,k.toDisplayString(o.data[l]),1)]))),256))])]))),256))])])])])}const kL=me(sK,[["render",SK]]),RL={install:r=>{r.component("VsBar",Ch),r.component("VsBarChart",DL),r.component("VsLine",AL),r.component("VsPie",Bh),r.component("VsKpi",ML),r.component("VsStat",EL),r.component("VsDashboard",PL),r.component("VsWidget",LL),r.component("VsPieChart",CL),r.component("VsProgressBar",IL),r.component("VsListBar",R0),r.component("VsPivotTable",kL)},components:{VsBar:Ch,VsBarChart:DL,VsLine:AL,VsPie:Bh,VsKpi:ML,VsStat:EL,VsDashboard:PL,VsPieChart:CL,VsProgressBar:IL,VsListBar:R0,VsPivotTable:kL}};typeof window<"u"&&(window.v3bi=RL);const bK={props:["source","dimensions"],data(){return{number:""}},computed:{formattedNumber(){return YY(this.number)}},mounted(){this.getNumber()},methods:{async getNumber(){try{this.number=this.source[0][this.dimensions[0]]}catch(r){console.error(r)}}}},wK={class:"font-[Inter,_Helvetica,_Arial] p-4 w-full text-[28px] pt-[10px] min-h-[130px] border-0"};function TK(r,e,t,n,a,i){return k.openBlock(),k.createElementBlock("div",wK," $"+k.toDisplayString(i.formattedNumber),1)}const DK=Object.freeze(Object.defineProperty({__proto__:null,default:me(bK,[["render",TK]])},Symbol.toStringTag,{value:"Module"}));function N0(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let $i=N0();function NL(r){$i=r}const OL=/[&<>"']/,CK=new RegExp(OL.source,"g"),VL=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,AK=new RegExp(VL.source,"g"),MK={"&":"&","<":"<",">":">",'"':""","'":"'"},BL=r=>MK[r];function sr(r,e){if(e){if(OL.test(r))return r.replace(CK,BL)}else if(VL.test(r))return r.replace(AK,BL);return r}const EK=/(^|[^\[])\^/g;function Wt(r,e){let t=typeof r=="string"?r:r.source;e=e||"";const n={replace:(a,i)=>{let o=typeof i=="string"?i:i.source;return o=o.replace(EK,"$1"),t=t.replace(a,o),n},getRegex:()=>new RegExp(t,e)};return n}function zL(r){try{r=encodeURI(r).replace(/%25/g,"%")}catch{return null}return r}const lu={exec:()=>null};function FL(r,e){const t=r.replace(/\|/g,(i,o,s)=>{let l=!1,u=o;for(;--u>=0&&s[u]==="\\";)l=!l;return l?"|":" |"}),n=t.split(/ \|/);let a=0;if(n[0].trim()||n.shift(),n.length>0&&!n[n.length-1].trim()&&n.pop(),e)if(n.length>e)n.splice(e);else for(;n.length<e;)n.push("");for(;a<n.length;a++)n[a]=n[a].trim().replace(/\\\|/g,"|");return n}function uu(r,e,t){const n=r.length;if(n===0)return"";let a=0;for(;a<n;){const i=r.charAt(n-a-1);if(i===e&&!t)a++;else if(i!==e&&t)a++;else break}return r.slice(0,n-a)}function IK(r,e){if(r.indexOf(e[1])===-1)return-1;let t=0;for(let n=0;n<r.length;n++)if(r[n]==="\\")n++;else if(r[n]===e[0])t++;else if(r[n]===e[1]&&(t--,t<0))return n;return-1}function GL(r,e,t,n){const a=e.href,i=e.title?sr(e.title):null,o=r[1].replace(/\\([\[\]])/g,"$1");if(r[0].charAt(0)!=="!"){n.state.inLink=!0;const s={type:"link",raw:t,href:a,title:i,text:o,tokens:n.inlineTokens(o)};return n.state.inLink=!1,s}return{type:"image",raw:t,href:a,title:i,text:sr(o)}}function LK(r,e){const t=r.match(/^(\s+)(?:```)/);if(t===null)return e;const n=t[1];return e.split(`
|
|
111
|
+
</div>`},prepareData(){var r,e;try{const t=Array.from(new Set(this.source.map(u=>u[this.dimensions[0]]))),n=Array.from(new Set(this.source.map(u=>u[this.dimensions[1]]))),a=t.map((u,c)=>({name:u,value:n[c]})),i=((r=this.style)==null?void 0:r.innerRadius)||"45%",o=(e=this.style)==null?void 0:e.outerRadius;return{series:[{name:"Total Revenue",type:"pie",radius:[i,o],center:["50%","50%"],label:{show:!1,position:"center"},labelLine:{show:!1},data:a}]}}catch(t){console.error(t)}},async initChart(r){try{const e=document.getElementById(this.uniqueID),t=zd(e),n={tooltip:{trigger:"item",formatter:a=>this.buildTooltipForDonut(a,[a.color]),borderWidth:0,appendToBody:!0,borderColor:"transparent",textStyle:{color:"#000"},padding:[10,15],shadowColor:"transparent",backgroundColor:"transparent"},series:r,...v0(this.style)};t.setOption(n),t.resize(),window.addEventListener("resize",()=>{t.resize()})}catch(e){console.error(e)}}}},NX=["id"];function OX(r,e,t,n,a,i){return k.openBlock(),k.createElementBlock("div",{id:i.uniqueID,class:"h-full"},null,8,NX)}const Bh=me(RX,[["render",OX]]),VX=Object.freeze(Object.defineProperty({__proto__:null,default:Bh},Symbol.toStringTag,{value:"Module"})),BX={mixins:[k0],components:{VsPie:Bh},props:{api:String,title:String},data(){return{data:{},chartColors:["#01a0c0","#3d466f","#48b983","#ff6f42","rgb(102, 102, 102)","rgb(224, 67, 85)","rgb(252, 199, 0)","rgb(168, 104, 183)","rgb(163, 143, 121)"]}},async mounted(){this.data=await this.getDataset()},methods:{async getDataset(){return this.api?await this.getDataByApi():this.dataset},async getDataByApi(){try{return(await Jt.get(this.api)).data}catch(r){console.error(r)}}}},zX={class:"flex flex-col bg-white border border-gray-200 shadow-sm rounded-xl"},FX={key:0,class:"p-5 pb-4 grid grid-cols-2 items-center gap-x-4"},GX={class:"inline-block font-semibold text-gray-800"},HX={class:"h-full p-5 pt-0 space-y-4"},WX={class:"h-[297px] flex justify-center w-full"},$X={class:"text-sm"},UX={class:"text-sm text-gray-800"};function YX(r,e,t,n,a,i){var s;const o=k.resolveComponent("VsPie");return k.openBlock(),k.createElementBlock("div",zX,[t.title?(k.openBlock(),k.createElementBlock("div",FX,[k.createElementVNode("div",null,[k.createElementVNode("h2",GX,k.toDisplayString(t.title),1)])])):k.createCommentVNode("",!0),k.createElementVNode("div",HX,[k.createElementVNode("div",WX,[k.createVNode(o,{api:t.api,showLegend:!1},null,8,["api"])]),k.createElementVNode("ul",null,[(k.openBlock(!0),k.createElementBlock(k.Fragment,null,k.renderList((s=a.data)==null?void 0:s.source,(l,u)=>{var c,f,h,v;return k.openBlock(),k.createElementBlock("li",{key:"item-"+u,class:"py-3 grid grid-cols-2 justify-between items-center gap-x-4 border-b last:border-b-0 border-gray-200"},[(k.openBlock(),k.createElementBlock("div",{key:"item-"+l.category+"-"+r.dimensionIndex,class:"flex items-center"},[k.createElementVNode("span",{class:"flex-shrink-0 w-2.5 h-2.5 inline-block rounded-sm me-2.5",style:k.normalizeStyle({backgroundColor:a.chartColors[u%a.chartColors.length]})},null,4),k.createElementVNode("span",$X,k.toDisplayString(l[(f=(c=a.data)==null?void 0:c.dimensions)==null?void 0:f[0]]),1)])),(k.openBlock(),k.createElementBlock("div",{key:"item-"+l.category+"-"+r.dimensionIndex,class:"flex items-center justify-end"},[k.createElementVNode("span",UX,k.toDisplayString(l[(v=(h=a.data)==null?void 0:h.dimensions)==null?void 0:v[1]]),1)]))])}),128))])])])}const CL=me(BX,[["render",YX]]),ZX={props:["source","dimensions","title","dimensionsType","style","name"],data(){return{myChartvt:null}},computed:{uniqueID(){return`vt-${this.name}-chart`}},async mounted(){const{series:r,xs:e}=this.prepareData();r&&this.initChart(r,e)},methods:{prepareData(){var r;try{const e=Array.from(new Set(this.source.map(i=>i[this.dimensions[0]])));let t;this.dimensionsType[0]==="date"?t=e.map(i=>h0(i)):t=[...e];const n=this.source.map(i=>parseFloat(i[this.dimensions[1]]));let a;return(r=this.style)!=null&&r.stack?a=this.dimensions.slice(1).map((o,s)=>({name:o,type:"line",stack:"a",data:this.source.filter(l=>parseFloat(l[o])).map(l=>parseFloat(l[o]))})):a=[{name:this.title,type:"line",data:n,stack:"a"}],{series:a,xs:t}}catch(e){console.error(e)}},async initChart(r,e){try{const t=document.getElementById(this.uniqueID),n=zd(t),a={tooltip:{trigger:"axis",axisPointer:{type:"shadow"},appendToBody:!0,formatter:i=>PI(i)},xAxis:{data:e,axisLabel:{...kI()}},yAxis:{type:"value",axisLabel:{...RI()}},series:r,...v0(this.style)};n.setOption(a),window.addEventListener("resize",()=>{n.resize()})}catch(t){console.error(t)}}}},XX=["id"];function qX(r,e,t,n,a,i){return k.openBlock(),k.createElementBlock("div",{id:i.uniqueID,class:"min-h-[300px] h-full w-full"},null,8,XX)}const AL=me(ZX,[["render",qX]]),KX={mixins:[k0]},jX={class:"mb-2 xl:mb-5 grid sm:grid-cols-2 lg:grid-cols-4 gap-2 xl:gap-5"},JX={class:"flex flex-col p-5 bg-white border border-gray-200 shadow-[0_4px_6px_0px_rgba(0,0,0,0.03)] rounded-xl dark:bg-neutral-800 dark:border-neutral-700"},QX={class:"space-y-4"},tq={class:"grid grid-cols-2 gap-x-2"};function eq(r,e,t,n,a,i){const o=k.resolveComponent("VsLine");return k.openBlock(),k.createElementBlock("div",jX,[k.createElementVNode("div",JX,[k.createElementVNode("div",QX,[k.createElementVNode("div",tq,[e[0]||(e[0]=k.createElementVNode("div",{class:"text-2xl font-semibold text-gray-800 dark:text-neutral-200"},"17,482",-1)),k.createVNode(o,{api:r.api,dataset:r.dataset,options:r.options,seriesOptions:r.seriesOptions,showLegend:r.showLegend},null,8,["api","dataset","options","seriesOptions","showLegend"])]),e[1]||(e[1]=k.createStaticVNode('<div class="flex items-center gap-x-2"><span class="py-1 px-1.5 inline-flex items-center gap-x-1 text-xs bg-gray-100 text-gray-800 rounded-md dark:bg-neutral-500/20 dark:text-neutral-400"><svg class="flex-shrink-0 size-3" xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="22 7 13.5 15.5 8.5 10.5 2 17"></polyline><polyline points="16 7 22 7 22 13"></polyline></svg> 37.3% </span><p class="text-xs text-gray-500 dark:text-neutral-400">from 12,142</p></div>',1))])])])}const ML=me(KX,[["render",eq]]),rq={props:["source","dimensions"],data(){return{restDimensions:[],sumValue:0}},mounted(){this.prepareData()},methods:{prepareData(){const r=this.source.map(e=>{var t;return parseFloat(e[(t=this.dimensions)==null?void 0:t[1]])});this.sumValue=r.reduce((e,t)=>e+t,0),this.source.forEach(e=>{e.color=this.randomColor()})},formattedValue(r){const e=parseFloat(r);return Fi(e)},randomColor(){const r="0123456789ABCDEF";let e="#";for(let t=0;t<6;t++)e+=r[Math.floor(Math.random()*16)];return e}}},nq={class:"flex flex-col bg-white border border-gray-200 shadow-sm rounded-xl pb-4"},aq={class:"h-full p-5"},iq={class:"h-full flex flex-col justify-between space-y-4"},oq={class:"space-y-4"},sq={class:"flex gap-x-1 w-full h-2.5 rounded-full overflow-hidden"},lq={class:"py-2 grid grid-cols-2 justify-between items-center gap-x-4"},uq={class:"flex items-center"},cq={class:"text-sm text-gray-800"},fq={class:"text-end"},hq={class:"text-sm text-gray-500"};function vq(r,e,t,n,a,i){return k.openBlock(),k.createElementBlock("div",nq,[k.createElementVNode("div",aq,[k.createElementVNode("div",iq,[k.createElementVNode("div",oq,[k.createElementVNode("div",sq,[(k.openBlock(!0),k.createElementBlock(k.Fragment,null,k.renderList(t.source,o=>(k.openBlock(),k.createElementBlock("div",{class:k.normalizeClass(["flex flex-col justify-center overflow-hidden text-xs text-white text-center whitespace-nowrap",`bg-[${o.color}]`]),style:k.normalizeStyle({width:`${parseFloat(o[t.dimensions[1]])/a.sumValue*100}%`}),role:"progressbar","aria-valuenow":"42","aria-valuemin":"0","aria-valuemax":"100"},null,6))),256))]),k.createElementVNode("ul",null,[(k.openBlock(!0),k.createElementBlock(k.Fragment,null,k.renderList(t.source,o=>(k.openBlock(),k.createElementBlock("li",lq,[k.createElementVNode("div",uq,[k.createElementVNode("span",{class:k.normalizeClass(["shrink-0 size-2.5 inline-block rounded-sm me-2.5",`bg-[${o.color}]`])},null,2),k.createElementVNode("span",cq,k.toDisplayString(o[t.dimensions[0]]),1)]),k.createElementVNode("div",fq,[k.createElementVNode("span",hq,k.toDisplayString(i.formattedValue(o[t.dimensions[1]])),1)])]))),256))])])])])])}const EL=me(rq,[["render",vq]]),pq={props:["source","dimensions"],data(){return{restDimensions:[],maxValue:0}},mounted(){this.prepareData()},methods:{prepareData(){const r=this.source.map(e=>{var t;return parseFloat(e[(t=this.dimensions)==null?void 0:t[1]])});this.maxValue=Math.max(...r)},formattedValue(r){return Fi(r)}}},dq={class:"flex flex-col bg-white border border-gray-200 shadow-sm rounded-xl"},gq={class:"px-5 grid grid-cols-2 items-center gap-x-4 border border-0"},yq={class:"inline-block font-semibold text-gray-800 border-0 border-white"},mq={class:"h-full p-5 pt-0 space-y-4"},_q={class:"space-y-4"},xq={class:"flex justify-between items-center gap-x-2"},Sq={class:"w-full grid grid-cols-2 items-center gap-x-2"},bq={class:"text-sm text-gray-800"},wq={class:"flex justify-end",role:"progressbar","aria-valuenow":"100","aria-valuemin":"0","aria-valuemax":"100"},Tq={class:"min-w-[60px] text-end"},Dq={class:"text-sm text-gray-500"};function Cq(r,e,t,n,a,i){return k.openBlock(),k.createElementBlock("div",dq,[k.createElementVNode("div",gq,[k.createElementVNode("div",null,[k.createElementVNode("h2",yq,k.toDisplayString(t.dimensions[0]),1)])]),k.createElementVNode("div",mq,[k.createElementVNode("ul",_q,[(k.openBlock(!0),k.createElementBlock(k.Fragment,null,k.renderList(t.source,(o,s)=>(k.openBlock(),k.createElementBlock("li",xq,[k.createElementVNode("div",Sq,[k.createElementVNode("span",bq,k.toDisplayString(o[t.dimensions[0]]),1),k.createElementVNode("div",wq,[k.createElementVNode("div",{class:"h-1.5 flex flex-col justify-center overflow-hidden bg-indigo-500 rounded-full text-xs text-white text-center whitespace-nowrap",style:k.normalizeStyle({width:`${parseFloat(o[t.dimensions[1]])/a.maxValue*100}%`})},null,4)])]),k.createElementVNode("div",Tq,[k.createElementVNode("span",Dq,k.toDisplayString(o[t.dimensions[1]]),1)])]))),256))])])])}const IL=me(pq,[["render",Cq]]),Aq={props:["source","dimensions"],data(){return{restDimensions:[],maxValue:0}},mounted(){this.prepareData()},methods:{prepareData(){var e;const r=this.source.map(t=>{var n;return t[(n=this.dimensions)==null?void 0:n[1]]});this.maxValue=Math.max(...r),this.restDimensions=(e=this.dimensions)==null?void 0:e.filter((t,n)=>n!==0)},formattedValue(r){return Fi(r)}}},Mq={class:"list-bar h-full p-3"},Eq={class:"flex justify-between items-center pb-2 pl-2 flex gap-x-2"},Iq={class:"inline-block font-medium text-xs uppercase text-gray-800"},Lq={class:"space-y-2 custom-scrollbar h-[calc(100%-20px)]"},Pq={class:"relative w-full truncate"},kq={class:"relative z-[1] block py-1 px-2 w-full text-sm truncate text-gray-800"},Rq={class:"text-sm text-gray-500"};function Nq(r,e,t,n,a,i){return k.openBlock(),k.createElementBlock("div",Mq,[k.createElementVNode("div",Eq,[(k.openBlock(!0),k.createElementBlock(k.Fragment,null,k.renderList(t.dimensions,(o,s)=>(k.openBlock(),k.createElementBlock("div",{key:s},[k.createElementVNode("h3",Iq,k.toDisplayString(o),1)]))),128))]),k.createElementVNode("ul",Lq,[(k.openBlock(!0),k.createElementBlock(k.Fragment,null,k.renderList(t.source,(o,s)=>(k.openBlock(),k.createElementBlock("li",{class:"flex justify-between items-center gap-x-2 w-full",key:s},[k.createElementVNode("div",Pq,[k.createElementVNode("span",kq,k.toDisplayString(o[t.dimensions[0]]),1),k.createElementVNode("div",{class:"absolute inset-y-0 start-0 bg-indigo-100 h-full rounded",style:k.normalizeStyle({width:`${o[t.dimensions[1]]/a.maxValue*100}%`})},null,4)]),(k.openBlock(!0),k.createElementBlock(k.Fragment,null,k.renderList(a.restDimensions,(l,u)=>(k.openBlock(),k.createElementBlock("div",{class:"w-20 text-end",key:u},[k.createElementVNode("span",Rq,k.toDisplayString(i.formattedValue(o[l])),1)]))),128))]))),128))])])}const R0=me(Aq,[["render",Nq]]),Oq=Object.freeze(Object.defineProperty({__proto__:null,default:R0},Symbol.toStringTag,{value:"Module"})),Vq={bar:k.defineAsyncComponent(()=>Promise.resolve().then(()=>jY)),number:k.defineAsyncComponent(()=>Promise.resolve().then(()=>CK)),text:k.defineAsyncComponent(()=>Promise.resolve().then(()=>uj)),listbar:k.defineAsyncComponent(()=>Promise.resolve().then(()=>Oq)),pie:k.defineAsyncComponent(()=>Promise.resolve().then(()=>VX))},Bq={},zq={type:"button",class:"hs-tooltip-toggle flex justify-center items-center gap-x-3 size-8 text-sm text-gray-600 hover:bg-gray-100 rounded-full disabled:opacity-50 disabled:pointer-events-none focus:outline-none focus:bg-gray-100 dark:text-neutral-400 dark:hover:bg-neutral-700 dark:focus:bg-neutral-700 dark:hover:text-neutral-200 dark:focus:text-neutral-200"};function Fq(r,e,t,n,a,i){return k.openBlock(),k.createElementBlock("button",zq,[k.renderSlot(r.$slots,"default")])}const Gq=me(Bq,[["render",Fq]]),Hq={},Wq={class:"shrink-0 size-4",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"#9E9E9E",stroke:"#9E9E9E","stroke-width":"2","stroke-linecap":"#9E9E9E","stroke-linejoin":"#9E9E9E"};function $q(r,e){return k.openBlock(),k.createElementBlock("svg",Wq,e[0]||(e[0]=[k.createElementVNode("circle",{cx:"12",cy:"12",r:"1"},null,-1),k.createElementVNode("circle",{cx:"12",cy:"5",r:"1"},null,-1),k.createElementVNode("circle",{cx:"12",cy:"19",r:"1"},null,-1)]))}const Uq={components:{menuIcon:me(Hq,[["render",$q]])},props:{name:{type:String,default:"Referral Traffic"}},data(){return{options:[{label:"Force refresh",emit:"refresh"},{label:"Fetched a few seconds ago",emit:"fetch"},{label:"Enter fullscreen",emit:"fullscreen"},{label:"Edit chart",emit:"edit"},{label:"View as table",emit:"view:tble"},{label:"View query",emit:"view:query"},{label:"Share",emit:"share"},{label:"Dowloand",emit:"dowloand"}],menuIsOpen:!1}},methods:{toggleDropdown(){this.menuIsOpen=!this.menuIsOpen}}},Yq={key:0,class:"right-1 duration absolute z-10 bg-white rounded-xl shadow-[0_10px_40px_10px_rgba(0,0,0,0.08)]",role:"menu","aria-orientation":"vertical","aria-labelledby":"hs-pro-dbrrtchmd"},Zq={class:"p-1 w-[168px]"},Xq=["onClick"];function qq(r,e,t,n,a,i){const o=k.resolveComponent("menuIcon");return k.openBlock(),k.createElementBlock("div",null,[k.createElementVNode("button",{type:"button",onClick:e[0]||(e[0]=(...s)=>i.toggleDropdown&&i.toggleDropdown(...s)),class:"h-[36px] w-[36px] inline-flex justify-center items-center gap-x-2 rounded-lg border border-transparent text-gray-500 hover:bg-gray-100 focus:outline-none focus:bg-gray-100 disabled:opacity-50 disabled:pointer-events-none","aria-haspopup":"menu","aria-expanded":"false","aria-label":"Dropdown"},[k.createVNode(o,{class:"h-[16px] w-[16px]"})]),a.menuIsOpen?(k.openBlock(),k.createElementBlock("div",Yq,[k.createElementVNode("div",Zq,[(k.openBlock(!0),k.createElementBlock(k.Fragment,null,k.renderList(a.options,s=>(k.openBlock(),k.createElementBlock("button",{type:"button",onClick:l=>r.$emits(s.emit),class:"w-full flex items-center py-1.5 pl-2 rounded-lg text-[13px] text-gray-800 hover:bg-gray-100 disabled:opacity-50 focus:outline-none focus:bg-gray-100 disabled:pointer-events-none"},k.toDisplayString(s.label),9,Xq))),256))])])):k.createCommentVNode("",!0)])}const Kq={components:{VsMenu:me(Uq,[["render",qq]]),VsSmallButton:Gq},props:{dashboardId:{type:String,default:""},widgetName:{type:String,default:""},source:{type:Array},dimensions:{type:Array},dimensionsType:{type:Array},title:{type:String},type:{type:String}},data(){return{widget:null}},mounted(){!this.source&&!this.dimensions&&this.getData()},watch:{widgetName(){this.getData()}},methods:{async getData(){var r;try{const e=this.dashboardId?`/api/bi-data?dashboard=${this.dashboardId}&widget=${this.widgetName}`:`/api/bi-data?&widget=${this.widgetName}`,t=await Jt.get(e);this.widget=t.data,this.text=((r=t.data)==null?void 0:r.title)||(this==null?void 0:this.widgetName)||"title",this.widget.name=this.widgetName}catch(e){console.error(e)}},handleClick(){this.$emit("clicked",this.widget)}}},jq={class:"text-[16px] mb-[4px] flex max-w-full items-center min-h-0 flex justify-between max-h-[50px]"},Jq={class:"text-gray-800 nline-block font-semibold font-[24px]"},Qq={class:"w-full h-[calc(100%-50px)]"};function tK(r,e,t,n,a,i){var o,s,l,u,c;return k.openBlock(),k.createElementBlock("div",{onClick:e[0]||(e[0]=f=>i.handleClick()),class:"relative select-auto rounded-xl p-4 border border-gray-200 box-border bg-white"},[k.createElementVNode("div",jq,[k.createElementVNode("div",null,[k.createElementVNode("span",Jq,k.toDisplayString(r.text),1)])]),k.createElementVNode("div",Qq,[k.renderSlot(r.$slots,"default",{source:t.source||((o=a.widget)==null?void 0:o.source)||a.widget,dimensions:t.dimensions||((s=a.widget)==null?void 0:s.dimensions),title:(l=a.widget)==null?void 0:l.title,dimensionsType:t.dimensionsType||((u=a.widget)==null?void 0:u.dimensionsType),type:t.type||((c=a.widget)==null?void 0:c.type)})])])}const LL=me(Kq,[["render",tK]]),eK={},rK={class:"w-full flex justify-center"};function nK(r,e,t,n,a,i){return k.openBlock(),k.createElementBlock("div",rK,e[0]||(e[0]=[k.createStaticVNode('<div class="text-center p-4 bg-white rounded-lg shadow-md"><svg xmlns="http://www.w3.org/2000/svg" class="h-16 w-16 text-gray-400" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"></path><path d="M9 12l2 2l4 -4"></path></svg><h3 class="text-2xl font-medium text-gray-900">No data available at this time</h3><p class="mt-2 text-gray-500">Information will be available soon</p></div>',1)]))}const aK={props:["id","info","editable"],components:{VsWidget:LL,VsNoData:me(eK,[["render",nK]]),...Vq},emits:["update:info"],data(){return{widgets:[],panels:[],error:!1,selectedPanel:""}},async mounted(){var r,e;this.selectedPanel=((e=(r=this.$route)==null?void 0:r.params)==null?void 0:e.widget)||"",await this.fetchData()},methods:{columnClass(r){const e=(r==null?void 0:r.col)||12;return{2:"md:w-1/4 sm:w-full",3:"md:w-1/4 sm:w-full",4:"md:w-1/3 sm:w-full",6:"md:w-1/2 sm:w-full",8:"md:w-3/4 sm:w-full",10:"md:w-1/3 sm:w-full"}[e]||"w-full"},async fetchData(){try{const r=await Jt.get(`/api/bi-dashboard/${this.id}`);this.error=!1;const e=r.data;this.widgets=e.widgets||[],this.panels=e.panels||[],e.name=this.id,this.$emit("update:info",e),this.selectedPanel&&this.fillWidgetWithData(this.selectedPanel)}catch(r){console.error(r),this.error=!0,this.$emit("update:info",null)}},getTypeByName(r){const e=this.widgets.find(t=>t.name===r);return(e==null?void 0:e.type)||"text"},getStyleByName(r){const e=this.widgets.find(t=>t.name===r);return(e==null?void 0:e.style)||{}},handleClick(r){this.editable&&(this.selectedPanel=(r==null?void 0:r.name)||r),this.fillWidgetWithData((r==null?void 0:r.name)||r)},fillWidgetWithData(r){const e=this.widgets.find(t=>t.name===r);if(e){const t={...e,name:r};this.$emit("clicked",t)}}}},iK={class:"container mx-auto"},oK={class:"flex flex-wrap mx-[-15px]"};function sK(r,e,t,n,a,i){const o=k.resolveComponent("VsNoData"),s=k.resolveComponent("VsWidget");return k.openBlock(),k.createElementBlock("div",iK,[k.createElementVNode("div",oK,[a.error?(k.openBlock(),k.createBlock(o,{key:0,class:"col-span-12"})):(k.openBlock(!0),k.createElementBlock(k.Fragment,{key:1},k.renderList(a.panels,(l,u)=>{var c;return k.openBlock(),k.createElementBlock("div",{key:u,class:k.normalizeClass([[i.columnClass(l)],"h-[400px] px-[7.5px] mb-[15px]"])},[(c=l.widgets)!=null&&c.length?(k.openBlock(!0),k.createElementBlock(k.Fragment,{key:0},k.renderList(l.widgets,f=>(k.openBlock(),k.createBlock(s,{key:f,dashboardId:t.id,widgetName:f,class:k.normalizeClass(["mb-[15px]",{"border border-blue-500 border-2":a.selectedPanel===f}]),onClicked:h=>i.handleClick(f)},{default:k.withCtx(({source:h,dimensions:v,dimensionsType:p,title:d})=>[h?(k.openBlock(),k.createBlock(k.resolveDynamicComponent(i.getTypeByName(f)),{key:0,source:h,dimensions:v,dimensionsType:p,style:k.normalizeStyle(i.getStyleByName(f)),name:f,title:d},null,8,["source","dimensions","dimensionsType","style","name","title"])):k.createCommentVNode("",!0)]),_:2},1032,["dashboardId","widgetName","class","onClicked"]))),128)):(k.openBlock(),k.createBlock(s,{key:1,dashboardId:t.id,widgetName:l.widget,class:k.normalizeClass(["h-[400px]",{"border border-blue-500 border-2":a.selectedPanel===l.widget}]),onClicked:f=>i.handleClick(l.widget)},{default:k.withCtx(({source:f,dimensions:h,dimensionsType:v,title:p})=>[f?(k.openBlock(),k.createBlock(k.resolveDynamicComponent(i.getTypeByName(l.widget)),{key:0,source:f,dimensions:h,dimensionsType:v,style:k.normalizeStyle(i.getStyleByName(l.widget)),name:l.widget,title:p},null,8,["source","dimensions","dimensionsType","style","name","title"])):k.createCommentVNode("",!0)]),_:2},1032,["dashboardId","widgetName","class","onClicked"]))],2)}),128))])])}const PL=me(aK,[["render",sK]]),lK={props:["source","dimensions","dimensionsType"],data(){return{values:null,xs:null,products:null}},mounted(){this.prepareData()},methods:{prepareData(){try{const r=Array.from(new Set(this.source.map(e=>e[this.dimensions[0]])));this.dimensionsType[0]==="date"?this.xs=r.map(e=>h0(e)):this.xs=[...r],this.products=this.dimensions.filter((e,t)=>t!=0),this.values=this.products.map((e,t)=>({name:e,type:"bar",stack:"a",data:this.source.filter(n=>parseFloat(n[e])).map(n=>Fi(parseFloat(n[e])))}))}catch(r){console.error(r)}}}},uK={class:"p-5 h-full space-y-4 flex flex-col bg-white shadow-sm rounded-xl custom-scrollbar"},cK={class:"overflow-x-auto [&::-webkit-scrollbar]:h-2 [&::-webkit-scrollbar-thumb]:rounded-full [&::-webkit-scrollbar-track]:bg-gray-100 [&::-webkit-scrollbar-thumb]:bg-gray-300"},fK={class:"min-w-full inline-block align-middle"},hK={class:"min-w-full divide-y divide-gray-200"},vK={class:"space-x-2"},pK={scope:"col",class:"xl:min-w-[220px] min-w-48"},dK={class:"py-2.5 text-text-start flex items-center gap-x-1 text-sm font-normal text-gray-500"},gK={class:"divide-y divide-gray-200"},yK={class:"size-px whitespace-nowrap py-3"},mK={class:"flex items-center gap-x-3"},_K={class:"text-sm font-medium text-gray-800"},xK={class:"size-px whitespace-nowrap py-3"},SK={class:"text-sm text-gray-600"};function bK(r,e,t,n,a,i){return k.openBlock(),k.createElementBlock("div",uK,[k.createElementVNode("div",cK,[k.createElementVNode("div",fK,[k.createElementVNode("table",hK,[k.createElementVNode("thead",null,[k.createElementVNode("tr",vK,[e[0]||(e[0]=k.createElementVNode("th",{scope:"col",class:"min-w-[200px]"},[k.createElementVNode("div",{class:"py-2.5 text-text-start flex items-center gap-x-1 text-sm font-normal text-gray-500"})],-1)),(k.openBlock(!0),k.createElementBlock(k.Fragment,null,k.renderList(a.xs,o=>(k.openBlock(),k.createElementBlock("th",pK,[k.createElementVNode("div",dK,k.toDisplayString(o),1)]))),256))])]),(k.openBlock(!0),k.createElementBlock(k.Fragment,null,k.renderList(a.values,o=>(k.openBlock(),k.createElementBlock("tbody",gK,[k.createElementVNode("tr",null,[k.createElementVNode("td",yK,[k.createElementVNode("div",mK,[k.createElementVNode("span",_K,k.toDisplayString(o.name),1)])]),(k.openBlock(!0),k.createElementBlock(k.Fragment,null,k.renderList(a.xs,(s,l)=>(k.openBlock(),k.createElementBlock("td",xK,[k.createElementVNode("span",SK,k.toDisplayString(o.data[l]),1)]))),256))])]))),256))])])])])}const kL=me(lK,[["render",bK]]),RL={install:r=>{r.component("VsBar",Ch),r.component("VsBarChart",DL),r.component("VsLine",AL),r.component("VsPie",Bh),r.component("VsKpi",ML),r.component("VsStat",EL),r.component("VsDashboard",PL),r.component("VsWidget",LL),r.component("VsPieChart",CL),r.component("VsProgressBar",IL),r.component("VsListBar",R0),r.component("VsPivotTable",kL)},components:{VsBar:Ch,VsBarChart:DL,VsLine:AL,VsPie:Bh,VsKpi:ML,VsStat:EL,VsDashboard:PL,VsPieChart:CL,VsProgressBar:IL,VsListBar:R0,VsPivotTable:kL}};typeof window<"u"&&(window.v3bi=RL);const wK={props:["source","dimensions"],data(){return{number:""}},computed:{formattedNumber(){return YY(this.number)}},mounted(){this.getNumber()},methods:{async getNumber(){try{this.number=this.source[0][this.dimensions[0]]}catch(r){console.error(r)}}}},TK={class:"font-[Inter,_Helvetica,_Arial] p-4 w-full text-[28px] pt-[10px] min-h-[130px] border-0"};function DK(r,e,t,n,a,i){return k.openBlock(),k.createElementBlock("div",TK," $"+k.toDisplayString(i.formattedNumber),1)}const CK=Object.freeze(Object.defineProperty({__proto__:null,default:me(wK,[["render",DK]])},Symbol.toStringTag,{value:"Module"}));function N0(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}let $i=N0();function NL(r){$i=r}const OL=/[&<>"']/,AK=new RegExp(OL.source,"g"),VL=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,MK=new RegExp(VL.source,"g"),EK={"&":"&","<":"<",">":">",'"':""","'":"'"},BL=r=>EK[r];function sr(r,e){if(e){if(OL.test(r))return r.replace(AK,BL)}else if(VL.test(r))return r.replace(MK,BL);return r}const IK=/(^|[^\[])\^/g;function Wt(r,e){let t=typeof r=="string"?r:r.source;e=e||"";const n={replace:(a,i)=>{let o=typeof i=="string"?i:i.source;return o=o.replace(IK,"$1"),t=t.replace(a,o),n},getRegex:()=>new RegExp(t,e)};return n}function zL(r){try{r=encodeURI(r).replace(/%25/g,"%")}catch{return null}return r}const lu={exec:()=>null};function FL(r,e){const t=r.replace(/\|/g,(i,o,s)=>{let l=!1,u=o;for(;--u>=0&&s[u]==="\\";)l=!l;return l?"|":" |"}),n=t.split(/ \|/);let a=0;if(n[0].trim()||n.shift(),n.length>0&&!n[n.length-1].trim()&&n.pop(),e)if(n.length>e)n.splice(e);else for(;n.length<e;)n.push("");for(;a<n.length;a++)n[a]=n[a].trim().replace(/\\\|/g,"|");return n}function uu(r,e,t){const n=r.length;if(n===0)return"";let a=0;for(;a<n;){const i=r.charAt(n-a-1);if(i===e&&!t)a++;else if(i!==e&&t)a++;else break}return r.slice(0,n-a)}function LK(r,e){if(r.indexOf(e[1])===-1)return-1;let t=0;for(let n=0;n<r.length;n++)if(r[n]==="\\")n++;else if(r[n]===e[0])t++;else if(r[n]===e[1]&&(t--,t<0))return n;return-1}function GL(r,e,t,n){const a=e.href,i=e.title?sr(e.title):null,o=r[1].replace(/\\([\[\]])/g,"$1");if(r[0].charAt(0)!=="!"){n.state.inLink=!0;const s={type:"link",raw:t,href:a,title:i,text:o,tokens:n.inlineTokens(o)};return n.state.inLink=!1,s}return{type:"image",raw:t,href:a,title:i,text:sr(o)}}function PK(r,e){const t=r.match(/^(\s+)(?:```)/);if(t===null)return e;const n=t[1];return e.split(`
|
|
112
112
|
`).map(a=>{const i=a.match(/^\s+/);if(i===null)return a;const[o]=i;return o.length>=n.length?a.slice(n.length):a}).join(`
|
|
113
113
|
`)}class zh{constructor(e){Ut(this,"options");Ut(this,"rules");Ut(this,"lexer");this.options=e||$i}space(e){const t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){const t=this.rules.block.code.exec(e);if(t){const n=t[0].replace(/^(?: {1,4}| {0,3}\t)/gm,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?n:uu(n,`
|
|
114
|
-
`)}}}fences(e){const t=this.rules.block.fences.exec(e);if(t){const n=t[0],a=
|
|
114
|
+
`)}}}fences(e){const t=this.rules.block.fences.exec(e);if(t){const n=t[0],a=PK(n,t[3]||"");return{type:"code",raw:n,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:a}}}heading(e){const t=this.rules.block.heading.exec(e);if(t){let n=t[2].trim();if(/#$/.test(n)){const a=uu(n,"#");(this.options.pedantic||!a||/ $/.test(a))&&(n=a.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(e){const t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:uu(t[0],`
|
|
115
115
|
`)}}blockquote(e){const t=this.rules.block.blockquote.exec(e);if(t){let n=uu(t[0],`
|
|
116
116
|
`).split(`
|
|
117
117
|
`),a="",i="";const o=[];for(;n.length>0;){let s=!1;const l=[];let u;for(u=0;u<n.length;u++)if(/^ {0,3}>/.test(n[u]))l.push(n[u]),s=!0;else if(!s)l.push(n[u]);else break;n=n.slice(u);const c=l.join(`
|
|
@@ -132,8 +132,8 @@ ${f}`:f;const h=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.block
|
|
|
132
132
|
`+h}!v&&!h.trim()&&(v=!0),u+=S+`
|
|
133
133
|
`,e=e.substring(S.length+1),f=w.slice(p)}}i.loose||(s?i.loose=!0:/\n[ \t]*\n[ \t]*$/.test(u)&&(s=!0));let d=null,g;this.options.gfm&&(d=/^\[[ xX]\] /.exec(c),d&&(g=d[0]!=="[ ] ",c=c.replace(/^\[[ xX]\] +/,""))),i.items.push({type:"list_item",raw:u,task:!!d,checked:g,loose:!1,text:c,tokens:[]}),i.raw+=u}i.items[i.items.length-1].raw=i.items[i.items.length-1].raw.trimEnd(),i.items[i.items.length-1].text=i.items[i.items.length-1].text.trimEnd(),i.raw=i.raw.trimEnd();for(let l=0;l<i.items.length;l++)if(this.lexer.state.top=!1,i.items[l].tokens=this.lexer.blockTokens(i.items[l].text,[]),!i.loose){const u=i.items[l].tokens.filter(f=>f.type==="space"),c=u.length>0&&u.some(f=>/\n.*\n/.test(f.raw));i.loose=c}if(i.loose)for(let l=0;l<i.items.length;l++)i.items[l].loose=!0;return i}}html(e){const t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:t[1]==="pre"||t[1]==="script"||t[1]==="style",text:t[0]}}def(e){const t=this.rules.block.def.exec(e);if(t){const n=t[1].toLowerCase().replace(/\s+/g," "),a=t[2]?t[2].replace(/^<(.*)>$/,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",i=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:n,raw:t[0],href:a,title:i}}}table(e){const t=this.rules.block.table.exec(e);if(!t||!/[:|]/.test(t[2]))return;const n=FL(t[1]),a=t[2].replace(/^\||\| *$/g,"").split("|"),i=t[3]&&t[3].trim()?t[3].replace(/\n[ \t]*$/,"").split(`
|
|
134
134
|
`):[],o={type:"table",raw:t[0],header:[],align:[],rows:[]};if(n.length===a.length){for(const s of a)/^ *-+: *$/.test(s)?o.align.push("right"):/^ *:-+: *$/.test(s)?o.align.push("center"):/^ *:-+ *$/.test(s)?o.align.push("left"):o.align.push(null);for(let s=0;s<n.length;s++)o.header.push({text:n[s],tokens:this.lexer.inline(n[s]),header:!0,align:o.align[s]});for(const s of i)o.rows.push(FL(s,o.header.length).map((l,u)=>({text:l,tokens:this.lexer.inline(l),header:!1,align:o.align[u]})));return o}}lheading(e){const t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:t[2].charAt(0)==="="?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){const t=this.rules.block.paragraph.exec(e);if(t){const n=t[1].charAt(t[1].length-1)===`
|
|
135
|
-
`?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:n,tokens:this.lexer.inline(n)}}}text(e){const t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){const t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:sr(t[1])}}tag(e){const t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&/^<a /i.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){const t=this.rules.inline.link.exec(e);if(t){const n=t[2].trim();if(!this.options.pedantic&&/^</.test(n)){if(!/>$/.test(n))return;const o=uu(n.slice(0,-1),"\\");if((n.length-o.length)%2===0)return}else{const o=
|
|
136
|
-
]`).replace("lheading",WL).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},YL=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,
|
|
135
|
+
`?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:n,tokens:this.lexer.inline(n)}}}text(e){const t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){const t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:sr(t[1])}}tag(e){const t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&/^<a /i.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&/^<\/a>/i.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){const t=this.rules.inline.link.exec(e);if(t){const n=t[2].trim();if(!this.options.pedantic&&/^</.test(n)){if(!/>$/.test(n))return;const o=uu(n.slice(0,-1),"\\");if((n.length-o.length)%2===0)return}else{const o=LK(t[2],"()");if(o>-1){const l=(t[0].indexOf("!")===0?5:4)+t[1].length+o;t[2]=t[2].substring(0,o),t[0]=t[0].substring(0,l).trim(),t[3]=""}}let a=t[2],i="";if(this.options.pedantic){const o=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(a);o&&(a=o[1],i=o[3])}else i=t[3]?t[3].slice(1,-1):"";return a=a.trim(),/^</.test(a)&&(this.options.pedantic&&!/>$/.test(n)?a=a.slice(1):a=a.slice(1,-1)),GL(t,{href:a&&a.replace(this.rules.inline.anyPunctuation,"$1"),title:i&&i.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){const a=(n[2]||n[1]).replace(/\s+/g," "),i=t[a.toLowerCase()];if(!i){const o=n[0].charAt(0);return{type:"text",raw:o,text:o}}return GL(n,i,n[0],this.lexer)}}emStrong(e,t,n=""){let a=this.rules.inline.emStrongLDelim.exec(e);if(!a||a[3]&&n.match(/[\p{L}\p{N}]/u))return;if(!(a[1]||a[2]||"")||!n||this.rules.inline.punctuation.exec(n)){const o=[...a[0]].length-1;let s,l,u=o,c=0;const f=a[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(f.lastIndex=0,t=t.slice(-1*e.length+o);(a=f.exec(t))!=null;){if(s=a[1]||a[2]||a[3]||a[4]||a[5]||a[6],!s)continue;if(l=[...s].length,a[3]||a[4]){u+=l;continue}else if((a[5]||a[6])&&o%3&&!((o+l)%3)){c+=l;continue}if(u-=l,u>0)continue;l=Math.min(l,l+u+c);const h=[...a[0]][0].length,v=e.slice(0,o+a.index+h+l);if(Math.min(o,l)%2){const d=v.slice(1,-1);return{type:"em",raw:v,text:d,tokens:this.lexer.inlineTokens(d)}}const p=v.slice(2,-2);return{type:"strong",raw:v,text:p,tokens:this.lexer.inlineTokens(p)}}}}codespan(e){const t=this.rules.inline.code.exec(e);if(t){let n=t[2].replace(/\n/g," ");const a=/[^ ]/.test(n),i=/^ /.test(n)&&/ $/.test(n);return a&&i&&(n=n.substring(1,n.length-1)),n=sr(n,!0),{type:"codespan",raw:t[0],text:n}}}br(e){const t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){const t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e){const t=this.rules.inline.autolink.exec(e);if(t){let n,a;return t[2]==="@"?(n=sr(t[1]),a="mailto:"+n):(n=sr(t[1]),a=n),{type:"link",raw:t[0],text:n,href:a,tokens:[{type:"text",raw:n,text:n}]}}}url(e){var n;let t;if(t=this.rules.inline.url.exec(e)){let a,i;if(t[2]==="@")a=sr(t[0]),i="mailto:"+a;else{let o;do o=t[0],t[0]=((n=this.rules.inline._backpedal.exec(t[0]))==null?void 0:n[0])??"";while(o!==t[0]);a=sr(t[0]),t[1]==="www."?i="http://"+t[0]:i=t[0]}return{type:"link",raw:t[0],text:a,href:i,tokens:[{type:"text",raw:a,text:a}]}}}inlineText(e){const t=this.rules.inline.text.exec(e);if(t){let n;return this.lexer.state.inRawBlock?n=t[0]:n=sr(t[0]),{type:"text",raw:t[0],text:n}}}}const kK=/^(?:[ \t]*(?:\n|$))+/,RK=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,NK=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,cu=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,OK=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,HL=/(?:[*+-]|\d{1,9}[.)])/,WL=Wt(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,HL).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).getRegex(),O0=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,VK=/^[^\n]+/,V0=/(?!\s*\])(?:\\.|[^\[\]\\])+/,BK=Wt(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",V0).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),zK=Wt(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,HL).getRegex(),Fh="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",B0=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,FK=Wt("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",B0).replace("tag",Fh).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),$L=Wt(O0).replace("hr",cu).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Fh).getRegex(),z0={blockquote:Wt(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",$L).getRegex(),code:RK,def:BK,fences:NK,heading:OK,hr:cu,html:FK,lheading:WL,list:zK,newline:kK,paragraph:$L,table:lu,text:VK},UL=Wt("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",cu).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Fh).getRegex(),GK={...z0,table:UL,paragraph:Wt(O0).replace("hr",cu).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",UL).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",Fh).getRegex()},HK={...z0,html:Wt(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",B0).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:lu,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Wt(O0).replace("hr",cu).replace("heading",` *#{1,6} *[^
|
|
136
|
+
]`).replace("lheading",WL).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},YL=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,WK=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,ZL=/^( {2,}|\\)\n(?!\s*$)/,$K=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,fu="\\p{P}\\p{S}",UK=Wt(/^((?![*_])[\spunctuation])/,"u").replace(/punctuation/g,fu).getRegex(),YK=/\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g,ZK=Wt(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,fu).getRegex(),XK=Wt("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])","gu").replace(/punct/g,fu).getRegex(),qK=Wt("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,fu).getRegex(),KK=Wt(/\\([punct])/,"gu").replace(/punct/g,fu).getRegex(),jK=Wt(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),JK=Wt(B0).replace("(?:-->|$)","-->").getRegex(),QK=Wt("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",JK).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Gh=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,tj=Wt(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",Gh).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),XL=Wt(/^!?\[(label)\]\[(ref)\]/).replace("label",Gh).replace("ref",V0).getRegex(),qL=Wt(/^!?\[(ref)\](?:\[\])?/).replace("ref",V0).getRegex(),ej=Wt("reflink|nolink(?!\\()","g").replace("reflink",XL).replace("nolink",qL).getRegex(),F0={_backpedal:lu,anyPunctuation:KK,autolink:jK,blockSkip:YK,br:ZL,code:WK,del:lu,emStrongLDelim:ZK,emStrongRDelimAst:XK,emStrongRDelimUnd:qK,escape:YL,link:tj,nolink:qL,punctuation:UK,reflink:XL,reflinkSearch:ej,tag:QK,text:$K,url:lu},rj={...F0,link:Wt(/^!?\[(label)\]\((.*?)\)/).replace("label",Gh).getRegex(),reflink:Wt(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Gh).getRegex()},G0={...F0,escape:Wt(YL).replace("])","~|])").getRegex(),url:Wt(/^((?:ftp|https?):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/,"i").replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,text:/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/},nj={...G0,br:Wt(ZL).replace("{2,}","*").getRegex(),text:Wt(G0.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Hh={normal:z0,gfm:GK,pedantic:HK},hu={normal:F0,gfm:G0,breaks:nj,pedantic:rj};class Er{constructor(e){Ut(this,"tokens");Ut(this,"options");Ut(this,"state");Ut(this,"tokenizer");Ut(this,"inlineQueue");this.tokens=[],this.tokens.links=Object.create(null),this.options=e||$i,this.options.tokenizer=this.options.tokenizer||new zh,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};const t={block:Hh.normal,inline:hu.normal};this.options.pedantic?(t.block=Hh.pedantic,t.inline=hu.pedantic):this.options.gfm&&(t.block=Hh.gfm,this.options.breaks?t.inline=hu.breaks:t.inline=hu.gfm),this.tokenizer.rules=t}static get rules(){return{block:Hh,inline:hu}}static lex(e,t){return new Er(t).lex(e)}static lexInline(e,t){return new Er(t).inlineTokens(e)}lex(e){e=e.replace(/\r\n|\r/g,`
|
|
137
137
|
`),this.blockTokens(e,this.tokens);for(let t=0;t<this.inlineQueue.length;t++){const n=this.inlineQueue[t];this.inlineTokens(n.src,n.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[],n=!1){this.options.pedantic&&(e=e.replace(/\t/g," ").replace(/^ +$/gm,""));let a,i,o;for(;e;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(s=>(a=s.call({lexer:this},e,t))?(e=e.substring(a.raw.length),t.push(a),!0):!1))){if(a=this.tokenizer.space(e)){e=e.substring(a.raw.length),a.raw.length===1&&t.length>0?t[t.length-1].raw+=`
|
|
138
138
|
`:t.push(a);continue}if(a=this.tokenizer.code(e)){e=e.substring(a.raw.length),i=t[t.length-1],i&&(i.type==="paragraph"||i.type==="text")?(i.raw+=`
|
|
139
139
|
`+a.raw,i.text+=`
|
|
@@ -162,5 +162,5 @@ ${this.parser.parse(e)}</blockquote>
|
|
|
162
162
|
${e}</tr>
|
|
163
163
|
`}tablecell(e){const t=this.parser.parseInline(e.tokens),n=e.header?"th":"td";return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>
|
|
164
164
|
`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${e}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){const a=this.parser.parseInline(n),i=zL(e);if(i===null)return a;e=i;let o='<a href="'+e+'"';return t&&(o+=' title="'+t+'"'),o+=">"+a+"</a>",o}image({href:e,title:t,text:n}){const a=zL(e);if(a===null)return n;e=a;let i=`<img src="${e}" alt="${n}"`;return t&&(i+=` title="${t}"`),i+=">",i}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):e.text}}class H0{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}}class Ir{constructor(e){Ut(this,"options");Ut(this,"renderer");Ut(this,"textRenderer");this.options=e||$i,this.options.renderer=this.options.renderer||new Wh,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new H0}static parse(e,t){return new Ir(t).parse(e)}static parseInline(e,t){return new Ir(t).parseInline(e)}parse(e,t=!0){let n="";for(let a=0;a<e.length;a++){const i=e[a];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[i.type]){const s=i,l=this.options.extensions.renderers[s.type].call({parser:this},s);if(l!==!1||!["space","hr","heading","code","table","blockquote","list","html","paragraph","text"].includes(s.type)){n+=l||"";continue}}const o=i;switch(o.type){case"space":{n+=this.renderer.space(o);continue}case"hr":{n+=this.renderer.hr(o);continue}case"heading":{n+=this.renderer.heading(o);continue}case"code":{n+=this.renderer.code(o);continue}case"table":{n+=this.renderer.table(o);continue}case"blockquote":{n+=this.renderer.blockquote(o);continue}case"list":{n+=this.renderer.list(o);continue}case"html":{n+=this.renderer.html(o);continue}case"paragraph":{n+=this.renderer.paragraph(o);continue}case"text":{let s=o,l=this.renderer.text(s);for(;a+1<e.length&&e[a+1].type==="text";)s=e[++a],l+=`
|
|
165
|
-
`+this.renderer.text(s);t?n+=this.renderer.paragraph({type:"paragraph",raw:l,text:l,tokens:[{type:"text",raw:l,text:l}]}):n+=l;continue}default:{const s='Token with "'+o.type+'" type was not found.';if(this.options.silent)return console.error(s),"";throw new Error(s)}}}return n}parseInline(e,t){t=t||this.renderer;let n="";for(let a=0;a<e.length;a++){const i=e[a];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[i.type]){const s=this.options.extensions.renderers[i.type].call({parser:this},i);if(s!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(i.type)){n+=s||"";continue}}const o=i;switch(o.type){case"escape":{n+=t.text(o);break}case"html":{n+=t.html(o);break}case"link":{n+=t.link(o);break}case"image":{n+=t.image(o);break}case"strong":{n+=t.strong(o);break}case"em":{n+=t.em(o);break}case"codespan":{n+=t.codespan(o);break}case"br":{n+=t.br(o);break}case"del":{n+=t.del(o);break}case"text":{n+=t.text(o);break}default:{const s='Token with "'+o.type+'" type was not found.';if(this.options.silent)return console.error(s),"";throw new Error(s)}}}return n}}class vu{constructor(e){Ut(this,"options");Ut(this,"block");this.options=e||$i}preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}provideLexer(){return this.block?Er.lex:Er.lexInline}provideParser(){return this.block?Ir.parse:Ir.parseInline}}Ut(vu,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens"]));class
|
|
166
|
-
Please report this to https://github.com/markedjs/marked.`,e){const a="<p>An error occurred:</p><pre>"+sr(n.message+"",!0)+"</pre>";return t?Promise.resolve(a):a}if(t)return Promise.reject(n);throw n}}}const Ui=new
|
|
165
|
+
`+this.renderer.text(s);t?n+=this.renderer.paragraph({type:"paragraph",raw:l,text:l,tokens:[{type:"text",raw:l,text:l}]}):n+=l;continue}default:{const s='Token with "'+o.type+'" type was not found.';if(this.options.silent)return console.error(s),"";throw new Error(s)}}}return n}parseInline(e,t){t=t||this.renderer;let n="";for(let a=0;a<e.length;a++){const i=e[a];if(this.options.extensions&&this.options.extensions.renderers&&this.options.extensions.renderers[i.type]){const s=this.options.extensions.renderers[i.type].call({parser:this},i);if(s!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(i.type)){n+=s||"";continue}}const o=i;switch(o.type){case"escape":{n+=t.text(o);break}case"html":{n+=t.html(o);break}case"link":{n+=t.link(o);break}case"image":{n+=t.image(o);break}case"strong":{n+=t.strong(o);break}case"em":{n+=t.em(o);break}case"codespan":{n+=t.codespan(o);break}case"br":{n+=t.br(o);break}case"del":{n+=t.del(o);break}case"text":{n+=t.text(o);break}default:{const s='Token with "'+o.type+'" type was not found.';if(this.options.silent)return console.error(s),"";throw new Error(s)}}}return n}}class vu{constructor(e){Ut(this,"options");Ut(this,"block");this.options=e||$i}preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}provideLexer(){return this.block?Er.lex:Er.lexInline}provideParser(){return this.block?Ir.parse:Ir.parseInline}}Ut(vu,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens"]));class aj{constructor(...e){Ut(this,"defaults",N0());Ut(this,"options",this.setOptions);Ut(this,"parse",this.parseMarkdown(!0));Ut(this,"parseInline",this.parseMarkdown(!1));Ut(this,"Parser",Ir);Ut(this,"Renderer",Wh);Ut(this,"TextRenderer",H0);Ut(this,"Lexer",Er);Ut(this,"Tokenizer",zh);Ut(this,"Hooks",vu);this.use(...e)}walkTokens(e,t){var a,i;let n=[];for(const o of e)switch(n=n.concat(t.call(this,o)),o.type){case"table":{const s=o;for(const l of s.header)n=n.concat(this.walkTokens(l.tokens,t));for(const l of s.rows)for(const u of l)n=n.concat(this.walkTokens(u.tokens,t));break}case"list":{const s=o;n=n.concat(this.walkTokens(s.items,t));break}default:{const s=o;(i=(a=this.defaults.extensions)==null?void 0:a.childTokens)!=null&&i[s.type]?this.defaults.extensions.childTokens[s.type].forEach(l=>{const u=s[l].flat(1/0);n=n.concat(this.walkTokens(u,t))}):s.tokens&&(n=n.concat(this.walkTokens(s.tokens,t)))}}return n}use(...e){const t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(n=>{const a={...n};if(a.async=this.defaults.async||a.async||!1,n.extensions&&(n.extensions.forEach(i=>{if(!i.name)throw new Error("extension name required");if("renderer"in i){const o=t.renderers[i.name];o?t.renderers[i.name]=function(...s){let l=i.renderer.apply(this,s);return l===!1&&(l=o.apply(this,s)),l}:t.renderers[i.name]=i.renderer}if("tokenizer"in i){if(!i.level||i.level!=="block"&&i.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");const o=t[i.level];o?o.unshift(i.tokenizer):t[i.level]=[i.tokenizer],i.start&&(i.level==="block"?t.startBlock?t.startBlock.push(i.start):t.startBlock=[i.start]:i.level==="inline"&&(t.startInline?t.startInline.push(i.start):t.startInline=[i.start]))}"childTokens"in i&&i.childTokens&&(t.childTokens[i.name]=i.childTokens)}),a.extensions=t),n.renderer){const i=this.defaults.renderer||new Wh(this.defaults);for(const o in n.renderer){if(!(o in i))throw new Error(`renderer '${o}' does not exist`);if(["options","parser"].includes(o))continue;const s=o,l=n.renderer[s],u=i[s];i[s]=(...c)=>{let f=l.apply(i,c);return f===!1&&(f=u.apply(i,c)),f||""}}a.renderer=i}if(n.tokenizer){const i=this.defaults.tokenizer||new zh(this.defaults);for(const o in n.tokenizer){if(!(o in i))throw new Error(`tokenizer '${o}' does not exist`);if(["options","rules","lexer"].includes(o))continue;const s=o,l=n.tokenizer[s],u=i[s];i[s]=(...c)=>{let f=l.apply(i,c);return f===!1&&(f=u.apply(i,c)),f}}a.tokenizer=i}if(n.hooks){const i=this.defaults.hooks||new vu;for(const o in n.hooks){if(!(o in i))throw new Error(`hook '${o}' does not exist`);if(["options","block"].includes(o))continue;const s=o,l=n.hooks[s],u=i[s];vu.passThroughHooks.has(o)?i[s]=c=>{if(this.defaults.async)return Promise.resolve(l.call(i,c)).then(h=>u.call(i,h));const f=l.call(i,c);return u.call(i,f)}:i[s]=(...c)=>{let f=l.apply(i,c);return f===!1&&(f=u.apply(i,c)),f}}a.hooks=i}if(n.walkTokens){const i=this.defaults.walkTokens,o=n.walkTokens;a.walkTokens=function(s){let l=[];return l.push(o.call(this,s)),i&&(l=l.concat(i.call(this,s))),l}}this.defaults={...this.defaults,...a}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return Er.lex(e,t??this.defaults)}parser(e,t){return Ir.parse(e,t??this.defaults)}parseMarkdown(e){return(n,a)=>{const i={...a},o={...this.defaults,...i},s=this.onError(!!o.silent,!!o.async);if(this.defaults.async===!0&&i.async===!1)return s(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof n>"u"||n===null)return s(new Error("marked(): input parameter is undefined or null"));if(typeof n!="string")return s(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(n)+", string expected"));o.hooks&&(o.hooks.options=o,o.hooks.block=e);const l=o.hooks?o.hooks.provideLexer():e?Er.lex:Er.lexInline,u=o.hooks?o.hooks.provideParser():e?Ir.parse:Ir.parseInline;if(o.async)return Promise.resolve(o.hooks?o.hooks.preprocess(n):n).then(c=>l(c,o)).then(c=>o.hooks?o.hooks.processAllTokens(c):c).then(c=>o.walkTokens?Promise.all(this.walkTokens(c,o.walkTokens)).then(()=>c):c).then(c=>u(c,o)).then(c=>o.hooks?o.hooks.postprocess(c):c).catch(s);try{o.hooks&&(n=o.hooks.preprocess(n));let c=l(n,o);o.hooks&&(c=o.hooks.processAllTokens(c)),o.walkTokens&&this.walkTokens(c,o.walkTokens);let f=u(c,o);return o.hooks&&(f=o.hooks.postprocess(f)),f}catch(c){return s(c)}}}onError(e,t){return n=>{if(n.message+=`
|
|
166
|
+
Please report this to https://github.com/markedjs/marked.`,e){const a="<p>An error occurred:</p><pre>"+sr(n.message+"",!0)+"</pre>";return t?Promise.resolve(a):a}if(t)return Promise.reject(n);throw n}}}const Ui=new aj;function Ht(r,e){return Ui.parse(r,e)}Ht.options=Ht.setOptions=function(r){return Ui.setOptions(r),Ht.defaults=Ui.defaults,NL(Ht.defaults),Ht},Ht.getDefaults=N0,Ht.defaults=$i,Ht.use=function(...r){return Ui.use(...r),Ht.defaults=Ui.defaults,NL(Ht.defaults),Ht},Ht.walkTokens=function(r,e){return Ui.walkTokens(r,e)},Ht.parseInline=Ui.parseInline,Ht.Parser=Ir,Ht.parser=Ir.parse,Ht.Renderer=Wh,Ht.TextRenderer=H0,Ht.Lexer=Er,Ht.lexer=Er.lex,Ht.Tokenizer=zh,Ht.Hooks=vu,Ht.parse=Ht,Ht.options,Ht.setOptions,Ht.use,Ht.walkTokens,Ht.parseInline,Ir.parse,Er.lex;const ij={props:["source"],data(){return{markedText:null}},mounted(){try{this.markedText=Ht(this.source)}catch(r){console.error(r)}}},oj={class:"relative select-auto h-full py-4 rounded-xl p-4 box-border bg-white custom-scrollbar"},sj=["innerHTML"];function lj(r,e,t,n,a,i){return k.openBlock(),k.createElementBlock("div",oj,[a.markedText?(k.openBlock(),k.createElementBlock("div",{key:0,innerHTML:a.markedText},null,8,sj)):k.createCommentVNode("",!0)])}const uj=Object.freeze(Object.defineProperty({__proto__:null,default:me(ij,[["render",lj]])},Symbol.toStringTag,{value:"Module"}));return RL});
|