scope360-core 0.0.124 → 0.0.126
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.
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
`)>-1?t.split(`
|
|
34
34
|
`):t}function Qx(t,e){const{element:n,datasetIndex:r,index:s}=e,i=t.getDatasetMeta(r).controller,{label:a,value:l}=i.getLabelAndValue(s);return{chart:t,label:a,parsed:i.getParsed(s),raw:t.data.datasets[r].data[s],formattedValue:l,dataset:i.getDataset(),dataIndex:s,datasetIndex:r,element:n}}function _m(t,e){const n=t.chart.ctx,{body:r,footer:s,title:i}=t,{boxWidth:a,boxHeight:l}=e,c=rn(e.bodyFont),d=rn(e.titleFont),u=rn(e.footerFont),h=i.length,f=s.length,m=r.length,g=gn(e.padding);let p=g.height,_=0,y=r.reduce((S,M)=>S+M.before.length+M.lines.length+M.after.length,0);if(y+=t.beforeBody.length+t.afterBody.length,h&&(p+=h*d.lineHeight+(h-1)*e.titleSpacing+e.titleMarginBottom),y){const S=e.displayColors?Math.max(l,c.lineHeight):c.lineHeight;p+=m*S+(y-m)*c.lineHeight+(y-1)*e.bodySpacing}f&&(p+=e.footerMarginTop+f*u.lineHeight+(f-1)*e.footerSpacing);let C=0;const k=function(S){_=Math.max(_,n.measureText(S).width+C)};return n.save(),n.font=d.string,Re(t.title,k),n.font=c.string,Re(t.beforeBody.concat(t.afterBody),k),C=e.displayColors?a+2+e.boxPadding:0,Re(r,S=>{Re(S.before,k),Re(S.lines,k),Re(S.after,k)}),C=0,n.font=u.string,Re(t.footer,k),n.restore(),_+=g.width,{width:_,height:p}}function Jx(t,e){const{y:n,height:r}=e;return n<r/2?"top":n>t.height-r/2?"bottom":"center"}function eM(t,e,n,r){const{x:s,width:i}=r,a=n.caretSize+n.caretPadding;if(t==="left"&&s+i+a>e.width||t==="right"&&s-i-a<0)return!0}function tM(t,e,n,r){const{x:s,width:i}=n,{width:a,chartArea:{left:l,right:c}}=t;let d="center";return r==="center"?d=s<=(l+c)/2?"left":"right":s<=i/2?d="left":s>=a-i/2&&(d="right"),eM(d,t,e,n)&&(d="center"),d}function ym(t,e,n){const r=n.yAlign||e.yAlign||Jx(t,n);return{xAlign:n.xAlign||e.xAlign||tM(t,e,n,r),yAlign:r}}function nM(t,e){let{x:n,width:r}=t;return e==="right"?n-=r:e==="center"&&(n-=r/2),n}function rM(t,e,n){let{y:r,height:s}=t;return e==="top"?r+=n:e==="bottom"?r-=s+n:r-=s/2,r}function wm(t,e,n,r){const{caretSize:s,caretPadding:i,cornerRadius:a}=t,{xAlign:l,yAlign:c}=n,d=s+i,{topLeft:u,topRight:h,bottomLeft:f,bottomRight:m}=So(a);let g=nM(e,l);const p=rM(e,c,d);return c==="center"?l==="left"?g+=d:l==="right"&&(g-=d):l==="left"?g-=Math.max(u,f)+s:l==="right"&&(g+=Math.max(h,m)+s),{x:pn(g,0,r.width-e.width),y:pn(p,0,r.height-e.height)}}function dl(t,e,n){const r=gn(n.padding);return e==="center"?t.x+t.width/2:e==="right"?t.x+t.width-r.right:t.x+r.left}function bm(t){return Qn([],yr(t))}function sM(t,e,n){return Jr(t,{tooltip:e,tooltipItems:n,type:"tooltip"})}function km(t,e){const n=e&&e.dataset&&e.dataset.tooltip&&e.dataset.tooltip.callbacks;return n?t.override(n):t}const Cm={beforeTitle:mr,title(t){if(t.length>0){const e=t[0],n=e.chart.data.labels,r=n?n.length:0;if(this&&this.options&&this.options.mode==="dataset")return e.dataset.label||"";if(e.label)return e.label;if(r>0&&e.dataIndex<r)return n[e.dataIndex]}return""},afterTitle:mr,beforeBody:mr,beforeLabel:mr,label(t){if(this&&this.options&&this.options.mode==="dataset")return t.label+": "+t.formattedValue||t.formattedValue;let e=t.dataset.label||"";e&&(e+=": ");const n=t.formattedValue;return Ze(n)||(e+=n),e},labelColor(t){const n=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{borderColor:n.borderColor,backgroundColor:n.backgroundColor,borderWidth:n.borderWidth,borderDash:n.borderDash,borderDashOffset:n.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(t){const n=t.chart.getDatasetMeta(t.datasetIndex).controller.getStyle(t.dataIndex);return{pointStyle:n.pointStyle,rotation:n.rotation}},afterLabel:mr,afterBody:mr,beforeFooter:mr,footer:mr,afterFooter:mr};function Ht(t,e,n,r){const s=t[e].call(n,r);return typeof s>"u"?Cm[e].call(n,r):s}class Du extends Bs{constructor(e){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=e.chart,this.options=e.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(e){this.options=e,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const e=this._cachedAnimations;if(e)return e;const n=this.chart,r=this.options.setContext(this.getContext()),s=r.enabled&&n.options.animation&&r.animations,i=new M2(this.chart,s);return s._cacheable&&(this._cachedAnimations=Object.freeze(i)),i}getContext(){return this.$context||(this.$context=sM(this.chart.getContext(),this,this._tooltipItems))}getTitle(e,n){const{callbacks:r}=n,s=Ht(r,"beforeTitle",this,e),i=Ht(r,"title",this,e),a=Ht(r,"afterTitle",this,e);let l=[];return l=Qn(l,yr(s)),l=Qn(l,yr(i)),l=Qn(l,yr(a)),l}getBeforeBody(e,n){return bm(Ht(n.callbacks,"beforeBody",this,e))}getBody(e,n){const{callbacks:r}=n,s=[];return Re(e,i=>{const a={before:[],lines:[],after:[]},l=km(r,i);Qn(a.before,yr(Ht(l,"beforeLabel",this,i))),Qn(a.lines,Ht(l,"label",this,i)),Qn(a.after,yr(Ht(l,"afterLabel",this,i))),s.push(a)}),s}getAfterBody(e,n){return bm(Ht(n.callbacks,"afterBody",this,e))}getFooter(e,n){const{callbacks:r}=n,s=Ht(r,"beforeFooter",this,e),i=Ht(r,"footer",this,e),a=Ht(r,"afterFooter",this,e);let l=[];return l=Qn(l,yr(s)),l=Qn(l,yr(i)),l=Qn(l,yr(a)),l}_createItems(e){const n=this._active,r=this.chart.data,s=[],i=[],a=[];let l=[],c,d;for(c=0,d=n.length;c<d;++c)l.push(Qx(this.chart,n[c]));return e.filter&&(l=l.filter((u,h,f)=>e.filter(u,h,f,r))),e.itemSort&&(l=l.sort((u,h)=>e.itemSort(u,h,r))),Re(l,u=>{const h=km(e.callbacks,u);s.push(Ht(h,"labelColor",this,u)),i.push(Ht(h,"labelPointStyle",this,u)),a.push(Ht(h,"labelTextColor",this,u))}),this.labelColors=s,this.labelPointStyles=i,this.labelTextColors=a,this.dataPoints=l,l}update(e,n){const r=this.options.setContext(this.getContext()),s=this._active;let i,a=[];if(!s.length)this.opacity!==0&&(i={opacity:0});else{const l=Ro[r.position].call(this,s,this._eventPosition);a=this._createItems(r),this.title=this.getTitle(a,r),this.beforeBody=this.getBeforeBody(a,r),this.body=this.getBody(a,r),this.afterBody=this.getAfterBody(a,r),this.footer=this.getFooter(a,r);const c=this._size=_m(this,r),d=Object.assign({},l,c),u=ym(this.chart,r,d),h=wm(r,d,u,this.chart);this.xAlign=u.xAlign,this.yAlign=u.yAlign,i={opacity:1,x:h.x,y:h.y,width:c.width,height:c.height,caretX:l.x,caretY:l.y}}this._tooltipItems=a,this.$context=void 0,i&&this._resolveAnimations().update(this,i),e&&r.external&&r.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(e,n,r,s){const i=this.getCaretPosition(e,r,s);n.lineTo(i.x1,i.y1),n.lineTo(i.x2,i.y2),n.lineTo(i.x3,i.y3)}getCaretPosition(e,n,r){const{xAlign:s,yAlign:i}=this,{caretSize:a,cornerRadius:l}=r,{topLeft:c,topRight:d,bottomLeft:u,bottomRight:h}=So(l),{x:f,y:m}=e,{width:g,height:p}=n;let _,y,C,k,S,M;return i==="center"?(S=m+p/2,s==="left"?(_=f,y=_-a,k=S+a,M=S-a):(_=f+g,y=_+a,k=S-a,M=S+a),C=_):(s==="left"?y=f+Math.max(c,u)+a:s==="right"?y=f+g-Math.max(d,h)-a:y=this.caretX,i==="top"?(k=m,S=k-a,_=y-a,C=y+a):(k=m+p,S=k+a,_=y+a,C=y-a),M=k),{x1:_,x2:y,x3:C,y1:k,y2:S,y3:M}}drawTitle(e,n,r){const s=this.title,i=s.length;let a,l,c;if(i){const d=pu(r.rtl,this.x,this.width);for(e.x=dl(this,r.titleAlign,r),n.textAlign=d.textAlign(r.titleAlign),n.textBaseline="middle",a=rn(r.titleFont),l=r.titleSpacing,n.fillStyle=r.titleColor,n.font=a.string,c=0;c<i;++c)n.fillText(s[c],d.x(e.x),e.y+a.lineHeight/2),e.y+=a.lineHeight+l,c+1===i&&(e.y+=r.titleMarginBottom-l)}}_drawColorBox(e,n,r,s,i){const a=this.labelColors[r],l=this.labelPointStyles[r],{boxHeight:c,boxWidth:d}=i,u=rn(i.bodyFont),h=dl(this,"left",i),f=s.x(h),m=c<u.lineHeight?(u.lineHeight-c)/2:0,g=n.y+m;if(i.usePointStyle){const p={radius:Math.min(d,c)/2,pointStyle:l.pointStyle,rotation:l.rotation,borderWidth:1},_=s.leftForLtr(f,d)+d/2,y=g+c/2;e.strokeStyle=i.multiKeyBackground,e.fillStyle=i.multiKeyBackground,ou(e,p,_,y),e.strokeStyle=a.borderColor,e.fillStyle=a.backgroundColor,ou(e,p,_,y)}else{e.lineWidth=ve(a.borderWidth)?Math.max(...Object.values(a.borderWidth)):a.borderWidth||1,e.strokeStyle=a.borderColor,e.setLineDash(a.borderDash||[]),e.lineDashOffset=a.borderDashOffset||0;const p=s.leftForLtr(f,d),_=s.leftForLtr(s.xPlus(f,1),d-2),y=So(a.borderRadius);Object.values(y).some(C=>C!==0)?(e.beginPath(),e.fillStyle=i.multiKeyBackground,cu(e,{x:p,y:g,w:d,h:c,radius:y}),e.fill(),e.stroke(),e.fillStyle=a.backgroundColor,e.beginPath(),cu(e,{x:_,y:g+1,w:d-2,h:c-2,radius:y}),e.fill()):(e.fillStyle=i.multiKeyBackground,e.fillRect(p,g,d,c),e.strokeRect(p,g,d,c),e.fillStyle=a.backgroundColor,e.fillRect(_,g+1,d-2,c-2))}e.fillStyle=this.labelTextColors[r]}drawBody(e,n,r){const{body:s}=this,{bodySpacing:i,bodyAlign:a,displayColors:l,boxHeight:c,boxWidth:d,boxPadding:u}=r,h=rn(r.bodyFont);let f=h.lineHeight,m=0;const g=pu(r.rtl,this.x,this.width),p=function(O){n.fillText(O,g.x(e.x+m),e.y+f/2),e.y+=f+i},_=g.textAlign(a);let y,C,k,S,M,D,v;for(n.textAlign=a,n.textBaseline="middle",n.font=h.string,e.x=dl(this,_,r),n.fillStyle=r.bodyColor,Re(this.beforeBody,p),m=l&&_!=="right"?a==="center"?d/2+u:d+2+u:0,S=0,D=s.length;S<D;++S){for(y=s[S],C=this.labelTextColors[S],n.fillStyle=C,Re(y.before,p),k=y.lines,l&&k.length&&(this._drawColorBox(n,e,S,g,r),f=Math.max(h.lineHeight,c)),M=0,v=k.length;M<v;++M)p(k[M]),f=h.lineHeight;Re(y.after,p)}m=0,f=h.lineHeight,Re(this.afterBody,p),e.y-=i}drawFooter(e,n,r){const s=this.footer,i=s.length;let a,l;if(i){const c=pu(r.rtl,this.x,this.width);for(e.x=dl(this,r.footerAlign,r),e.y+=r.footerMarginTop,n.textAlign=c.textAlign(r.footerAlign),n.textBaseline="middle",a=rn(r.footerFont),n.fillStyle=r.footerColor,n.font=a.string,l=0;l<i;++l)n.fillText(s[l],c.x(e.x),e.y+a.lineHeight/2),e.y+=a.lineHeight+r.footerSpacing}}drawBackground(e,n,r,s){const{xAlign:i,yAlign:a}=this,{x:l,y:c}=e,{width:d,height:u}=r,{topLeft:h,topRight:f,bottomLeft:m,bottomRight:g}=So(s.cornerRadius);n.fillStyle=s.backgroundColor,n.strokeStyle=s.borderColor,n.lineWidth=s.borderWidth,n.beginPath(),n.moveTo(l+h,c),a==="top"&&this.drawCaret(e,n,r,s),n.lineTo(l+d-f,c),n.quadraticCurveTo(l+d,c,l+d,c+f),a==="center"&&i==="right"&&this.drawCaret(e,n,r,s),n.lineTo(l+d,c+u-g),n.quadraticCurveTo(l+d,c+u,l+d-g,c+u),a==="bottom"&&this.drawCaret(e,n,r,s),n.lineTo(l+m,c+u),n.quadraticCurveTo(l,c+u,l,c+u-m),a==="center"&&i==="left"&&this.drawCaret(e,n,r,s),n.lineTo(l,c+h),n.quadraticCurveTo(l,c,l+h,c),n.closePath(),n.fill(),s.borderWidth>0&&n.stroke()}_updateAnimationTarget(e){const n=this.chart,r=this.$animations,s=r&&r.x,i=r&&r.y;if(s||i){const a=Ro[e.position].call(this,this._active,this._eventPosition);if(!a)return;const l=this._size=_m(this,e),c=Object.assign({},a,this._size),d=ym(n,e,c),u=wm(e,c,d,n);(s._to!==u.x||i._to!==u.y)&&(this.xAlign=d.xAlign,this.yAlign=d.yAlign,this.width=l.width,this.height=l.height,this.caretX=a.x,this.caretY=a.y,this._resolveAnimations().update(this,u))}}_willRender(){return!!this.opacity}draw(e){const n=this.options.setContext(this.getContext());let r=this.opacity;if(!r)return;this._updateAnimationTarget(n);const s={width:this.width,height:this.height},i={x:this.x,y:this.y};r=Math.abs(r)<.001?0:r;const a=gn(n.padding),l=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;n.enabled&&l&&(e.save(),e.globalAlpha=r,this.drawBackground(i,e,s,n),Zk(e,n.textDirection),i.y+=a.top,this.drawTitle(i,e,n),this.drawBody(i,e,n),this.drawFooter(i,e,n),Uk(e,n.textDirection),e.restore())}getActiveElements(){return this._active||[]}setActiveElements(e,n){const r=this._active,s=e.map(({datasetIndex:l,index:c})=>{const d=this.chart.getDatasetMeta(l);if(!d)throw new Error("Cannot find a dataset at index "+l);return{datasetIndex:l,element:d.data[c],index:c}}),i=!Ia(r,s),a=this._positionChanged(s,n);(i||a)&&(this._active=s,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(e,n,r=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const s=this.options,i=this._active||[],a=this._getActiveElements(e,i,n,r),l=this._positionChanged(a,e),c=n||!Ia(a,i)||l;return c&&(this._active=a,(s.enabled||s.external)&&(this._eventPosition={x:e.x,y:e.y},this.update(!0,n))),c}_getActiveElements(e,n,r,s){const i=this.options;if(e.type==="mouseout")return[];if(!s)return n.filter(l=>this.chart.data.datasets[l.datasetIndex]&&this.chart.getDatasetMeta(l.datasetIndex).controller.getParsed(l.index)!==void 0);const a=this.chart.getElementsAtEventForMode(e,i.mode,i,r);return i.reverse&&a.reverse(),a}_positionChanged(e,n){const{caretX:r,caretY:s,options:i}=this,a=Ro[i.position].call(this,e,n);return a!==!1&&(r!==a.x||s!==a.y)}}W(Du,"positioners",Ro);var iM={id:"tooltip",_element:Du,positioners:Ro,afterInit(t,e,n){n&&(t.tooltip=new Du({chart:t,options:n}))},beforeUpdate(t,e,n){t.tooltip&&t.tooltip.initialize(n)},reset(t,e,n){t.tooltip&&t.tooltip.initialize(n)},afterDraw(t){const e=t.tooltip;if(e&&e._willRender()){const n={tooltip:e};if(t.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0})===!1)return;e.draw(t.ctx),t.notifyPlugins("afterTooltipDraw",n)}},afterEvent(t,e){if(t.tooltip){const n=e.replay;t.tooltip.handleEvent(e.event,n,e.inChartArea)&&(e.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(t,e)=>e.bodyFont.size,boxWidth:(t,e)=>e.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:Cm},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:t=>t!=="filter"&&t!=="itemSort"&&t!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};const oM=(t,e,n,r)=>(typeof e=="string"?(n=t.push(e)-1,r.unshift({index:n,label:e})):isNaN(e)&&(n=null),n);function aM(t,e,n,r){const s=t.indexOf(e);if(s===-1)return oM(t,e,n,r);const i=t.lastIndexOf(e);return s!==i?n:s}const lM=(t,e)=>t===null?null:pn(Math.round(t),0,e);function xm(t){const e=this.getLabels();return t>=0&&t<e.length?e[t]:t}class ul extends As{constructor(e){super(e),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(e){const n=this._addedLabels;if(n.length){const r=this.getLabels();for(const{index:s,label:i}of n)r[s]===i&&r.splice(s,1);this._addedLabels=[]}super.init(e)}parse(e,n){if(Ze(e))return null;const r=this.getLabels();return n=isFinite(n)&&r[n]===e?n:aM(r,e,Ae(n,e),this._addedLabels),lM(n,r.length-1)}determineDataLimits(){const{minDefined:e,maxDefined:n}=this.getUserBounds();let{min:r,max:s}=this.getMinMax(!0);this.options.bounds==="ticks"&&(e||(r=0),n||(s=this.getLabels().length-1)),this.min=r,this.max=s}buildTicks(){const e=this.min,n=this.max,r=this.options.offset,s=[];let i=this.getLabels();i=e===0&&n===i.length-1?i:i.slice(e,n+1),this._valueRange=Math.max(i.length-(r?0:1),1),this._startValue=this.min-(r?.5:0);for(let a=e;a<=n;a++)s.push({value:a});return s}getLabelForValue(e){return xm.call(this,e)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(e){return typeof e!="number"&&(e=this.parse(e)),e===null?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getPixelForTick(e){const n=this.ticks;return e<0||e>n.length-1?null:this.getPixelForValue(n[e].value)}getValueForPixel(e){return Math.round(this._startValue+this.getDecimalForPixel(e)*this._valueRange)}getBasePixel(){return this.bottom}}W(ul,"id","category"),W(ul,"defaults",{ticks:{callback:xm}});function cM(t,e){const n=[],{bounds:s,step:i,min:a,max:l,precision:c,count:d,maxTicks:u,maxDigits:h,includeBounds:f}=t,m=i||1,g=u-1,{min:p,max:_}=e,y=!Ze(a),C=!Ze(l),k=!Ze(d),S=(_-p)/(h+1);let M=j0((_-p)/g/m)*m,D,v,O,E;if(M<1e-14&&!y&&!C)return[{value:p},{value:_}];E=Math.ceil(_/M)-Math.floor(p/M),E>g&&(M=j0(E*M/g/m)*m),Ze(c)||(D=Math.pow(10,c),M=Math.ceil(M*D)/D),s==="ticks"?(v=Math.floor(p/M)*M,O=Math.ceil(_/M)*M):(v=p,O=_),y&&C&&i&&Fb((l-a)/i,M/1e3)?(E=Math.round(Math.min((l-a)/M,u)),M=(l-a)/E,v=a,O=l):k?(v=y?a:v,O=C?l:O,E=d-1,M=(O-v)/E):(E=(O-v)/M,Co(E,Math.round(E),M/1e3)?E=Math.round(E):E=Math.ceil(E));const I=Math.max(U0(M),U0(v));D=Math.pow(10,Ze(c)?I:c),v=Math.round(v*D)/D,O=Math.round(O*D)/D;let j=0;for(y&&(f&&v!==a?(n.push({value:a}),v<a&&j++,Co(Math.round((v+j*M)*D)/D,a,Mm(a,S,t))&&j++):v<a&&j++);j<E;++j){const $=Math.round((v+j*M)*D)/D;if(C&&$>l)break;n.push({value:$})}return C&&f&&O!==l?n.length&&Co(n[n.length-1].value,l,Mm(l,S,t))?n[n.length-1].value=l:n.push({value:l}):(!C||O===l)&&n.push({value:O}),n}function Mm(t,e,{horizontal:n,minRotation:r}){const s=Qr(r),i=(n?Math.sin(s):Math.cos(s))||.001,a=.75*e*(""+t).length;return Math.min(e/i,a)}class hl extends As{constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(e,n){return Ze(e)||(typeof e=="number"||e instanceof Number)&&!isFinite(+e)?null:+e}handleTickRangeOptions(){const{beginAtZero:e}=this.options,{minDefined:n,maxDefined:r}=this.getUserBounds();let{min:s,max:i}=this;const a=c=>s=n?s:c,l=c=>i=r?i:c;if(e){const c=wi(s),d=wi(i);c<0&&d<0?l(0):c>0&&d>0&&a(0)}if(s===i){let c=i===0?1:Math.abs(i*.05);l(i+c),e||a(s-c)}this.min=s,this.max=i}getTickLimit(){const e=this.options.ticks;let{maxTicksLimit:n,stepSize:r}=e,s;return r?(s=Math.ceil(this.max/r)-Math.floor(this.min/r)+1,s>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${r} would result generating up to ${s} ticks. Limiting to 1000.`),s=1e3)):(s=this.computeTickLimit(),n=n||11),n&&(s=Math.min(n,s)),s}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const e=this.options,n=e.ticks;let r=this.getTickLimit();r=Math.max(2,r);const s={maxTicks:r,bounds:e.bounds,min:e.min,max:e.max,precision:n.precision,step:n.stepSize,count:n.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:n.minRotation||0,includeBounds:n.includeBounds!==!1},i=this._range||this,a=cM(s,i);return e.bounds==="ticks"&&Z0(a,this,"value"),e.reverse?(a.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),a}configure(){const e=this.ticks;let n=this.min,r=this.max;if(super.configure(),this.options.offset&&e.length){const s=(r-n)/Math.max(e.length-1,1)/2;n-=s,r+=s}this._startValue=n,this._endValue=r,this._valueRange=r-n}getLabelForValue(e){return ru(e,this.chart.options.locale,this.options.ticks.format)}}class fl extends hl{determineDataLimits(){const{min:e,max:n}=this.getMinMax(!0);this.min=it(e)?e:0,this.max=it(n)?n:1,this.handleTickRangeOptions()}computeTickLimit(){const e=this.isHorizontal(),n=e?this.width:this.height,r=Qr(this.options.ticks.minRotation),s=(e?Math.sin(r):Math.cos(r))||.001,i=this._resolveTickFontOptions(0);return Math.ceil(n/Math.min(40,i.lineHeight/s))}getPixelForValue(e){return e===null?NaN:this.getPixelForDecimal((e-this._startValue)/this._valueRange)}getValueForPixel(e){return this._startValue+this.getDecimalForPixel(e)*this._valueRange}}W(fl,"id","linear"),W(fl,"defaults",{ticks:{callback:Za.formatters.numeric}});const Fo=t=>Math.floor(Xr(t)),Rs=(t,e)=>Math.pow(10,Fo(t)+e);function vm(t){return t/Math.pow(10,Fo(t))===1}function Sm(t,e,n){const r=Math.pow(10,n),s=Math.floor(t/r);return Math.ceil(e/r)-s}function dM(t,e){const n=e-t;let r=Fo(n);for(;Sm(t,e,r)>10;)r++;for(;Sm(t,e,r)<10;)r--;return Math.min(r,Fo(t))}function uM(t,{min:e,max:n}){e=Jt(t.min,e);const r=[],s=Fo(e);let i=dM(e,n),a=i<0?Math.pow(10,Math.abs(i)):1;const l=Math.pow(10,i),c=s>i?Math.pow(10,s):0,d=Math.round((e-c)*a)/a,u=Math.floor((e-c)/l/10)*l*10;let h=Math.floor((d-u)/Math.pow(10,i)),f=Jt(t.min,Math.round((c+u+h*Math.pow(10,i))*a)/a);for(;f<n;)r.push({value:f,major:vm(f),significand:h}),h>=10?h=h<15?15:20:h++,h>=20&&(i++,h=2,a=i>=0?1:a),f=Math.round((c+u+h*Math.pow(10,i))*a)/a;const m=Jt(t.max,f);return r.push({value:m,major:vm(m),significand:h}),r}class Tm extends As{constructor(e){super(e),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(e,n){const r=hl.prototype.parse.apply(this,[e,n]);if(r===0){this._zero=!0;return}return it(r)&&r>0?r:null}determineDataLimits(){const{min:e,max:n}=this.getMinMax(!0);this.min=it(e)?Math.max(0,e):null,this.max=it(n)?Math.max(0,n):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!it(this._userMin)&&(this.min=e===Rs(this.min,0)?Rs(this.min,-1):Rs(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:e,maxDefined:n}=this.getUserBounds();let r=this.min,s=this.max;const i=l=>r=e?r:l,a=l=>s=n?s:l;r===s&&(r<=0?(i(1),a(10)):(i(Rs(r,-1)),a(Rs(s,1)))),r<=0&&i(Rs(s,-1)),s<=0&&a(Rs(r,1)),this.min=r,this.max=s}buildTicks(){const e=this.options,n={min:this._userMin,max:this._userMax},r=uM(n,this);return e.bounds==="ticks"&&Z0(r,this,"value"),e.reverse?(r.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),r}getLabelForValue(e){return e===void 0?"0":ru(e,this.chart.options.locale,this.options.ticks.format)}configure(){const e=this.min;super.configure(),this._startValue=Xr(e),this._valueRange=Xr(this.max)-Xr(e)}getPixelForValue(e){return(e===void 0||e===0)&&(e=this.min),e===null||isNaN(e)?NaN:this.getPixelForDecimal(e===this.min?0:(Xr(e)-this._startValue)/this._valueRange)}getValueForPixel(e){const n=this.getDecimalForPixel(e);return Math.pow(10,this._startValue+n*this._valueRange)}}W(Tm,"id","logarithmic"),W(Tm,"defaults",{ticks:{callback:Za.formatters.logarithmic,major:{enabled:!0}}});function Ou(t){const e=t.ticks;if(e.display&&t.display){const n=gn(e.backdropPadding);return Ae(e.font&&e.font.size,mt.font.size)+n.height}return 0}function hM(t,e,n){return n=tt(n)?n:[n],{w:ok(t,e.string,n),h:n.length*e.lineHeight}}function Dm(t,e,n,r,s){return t===r||t===s?{start:e-n/2,end:e+n/2}:t<r||t>s?{start:e-n,end:e}:{start:e,end:e+n}}function fM(t){const e={l:t.left+t._padding.left,r:t.right-t._padding.right,t:t.top+t._padding.top,b:t.bottom-t._padding.bottom},n=Object.assign({},e),r=[],s=[],i=t._pointLabels.length,a=t.options.pointLabels,l=a.centerPointLabels?vt/i:0;for(let c=0;c<i;c++){const d=a.setContext(t.getPointLabelContext(c));s[c]=d.padding;const u=t.getPointPosition(c,t.drawingArea+s[c],l),h=rn(d.font),f=hM(t.ctx,h,t._pointLabels[c]);r[c]=f;const m=nn(t.getIndexAngle(c)+l),g=Math.round(Qd(m)),p=Dm(g,u.x,f.w,0,180),_=Dm(g,u.y,f.h,90,270);mM(n,e,m,p,_)}t.setCenterPoint(e.l-n.l,n.r-e.r,e.t-n.t,n.b-e.b),t._pointLabelItems=_M(t,r,s)}function mM(t,e,n,r,s){const i=Math.abs(Math.sin(n)),a=Math.abs(Math.cos(n));let l=0,c=0;r.start<e.l?(l=(e.l-r.start)/i,t.l=Math.min(t.l,e.l-l)):r.end>e.r&&(l=(r.end-e.r)/i,t.r=Math.max(t.r,e.r+l)),s.start<e.t?(c=(e.t-s.start)/a,t.t=Math.min(t.t,e.t-c)):s.end>e.b&&(c=(s.end-e.b)/a,t.b=Math.max(t.b,e.b+c))}function pM(t,e,n){const r=t.drawingArea,{extra:s,additionalAngle:i,padding:a,size:l}=n,c=t.getPointPosition(e,r+s+a,i),d=Math.round(Qd(nn(c.angle+tn))),u=bM(c.y,l.h,d),h=yM(d),f=wM(c.x,l.w,h);return{visible:!0,x:c.x,y:u,textAlign:h,left:f,top:u,right:f+l.w,bottom:u+l.h}}function gM(t,e){if(!e)return!0;const{left:n,top:r,right:s,bottom:i}=t;return!(pr({x:n,y:r},e)||pr({x:n,y:i},e)||pr({x:s,y:r},e)||pr({x:s,y:i},e))}function _M(t,e,n){const r=[],s=t._pointLabels.length,i=t.options,{centerPointLabels:a,display:l}=i.pointLabels,c={extra:Ou(i)/2,additionalAngle:a?vt/s:0};let d;for(let u=0;u<s;u++){c.padding=n[u],c.size=e[u];const h=pM(t,u,c);r.push(h),l==="auto"&&(h.visible=gM(h,d),h.visible&&(d=h))}return r}function yM(t){return t===0||t===180?"center":t<180?"left":"right"}function wM(t,e,n){return n==="right"?t-=e:n==="center"&&(t-=e/2),t}function bM(t,e,n){return n===90||n===270?t-=e/2:(n>270||n<90)&&(t-=e),t}function kM(t,e,n){const{left:r,top:s,right:i,bottom:a}=n,{backdropColor:l}=e;if(!Ze(l)){const c=So(e.borderRadius),d=gn(e.backdropPadding);t.fillStyle=l;const u=r-d.left,h=s-d.top,f=i-r+d.width,m=a-s+d.height;Object.values(c).some(g=>g!==0)?(t.beginPath(),cu(t,{x:u,y:h,w:f,h:m,radius:c}),t.fill()):t.fillRect(u,h,f,m)}}function CM(t,e){const{ctx:n,options:{pointLabels:r}}=t;for(let s=e-1;s>=0;s--){const i=t._pointLabelItems[s];if(!i.visible)continue;const a=r.setContext(t.getPointLabelContext(s));kM(n,a,i);const l=rn(a.font),{x:c,y:d,textAlign:u}=i;qa(n,t._pointLabels[s],c,d+l.lineHeight/2,l,{color:a.color,textAlign:u,textBaseline:"middle"})}}function Om(t,e,n,r){const{ctx:s}=t;if(n)s.arc(t.xCenter,t.yCenter,e,0,en);else{let i=t.getPointPosition(0,e);s.moveTo(i.x,i.y);for(let a=1;a<r;a++)i=t.getPointPosition(a,e),s.lineTo(i.x,i.y)}}function xM(t,e,n,r,s){const i=t.ctx,a=e.circular,{color:l,lineWidth:c}=e;!a&&!r||!l||!c||n<0||(i.save(),i.strokeStyle=l,i.lineWidth=c,i.setLineDash(s.dash),i.lineDashOffset=s.dashOffset,i.beginPath(),Om(t,n,a,r),i.closePath(),i.stroke(),i.restore())}function MM(t,e,n){return Jr(t,{label:n,index:e,type:"pointLabel"})}class ml extends hl{constructor(e){super(e),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){const e=this._padding=gn(Ou(this.options)/2),n=this.width=this.maxWidth-e.width,r=this.height=this.maxHeight-e.height;this.xCenter=Math.floor(this.left+n/2+e.left),this.yCenter=Math.floor(this.top+r/2+e.top),this.drawingArea=Math.floor(Math.min(n,r)/2)}determineDataLimits(){const{min:e,max:n}=this.getMinMax(!1);this.min=it(e)&&!isNaN(e)?e:0,this.max=it(n)&&!isNaN(n)?n:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/Ou(this.options))}generateTickLabels(e){hl.prototype.generateTickLabels.call(this,e),this._pointLabels=this.getLabels().map((n,r)=>{const s=ot(this.options.pointLabels.callback,[n,r],this);return s||s===0?s:""}).filter((n,r)=>this.chart.getDataVisibility(r))}fit(){const e=this.options;e.display&&e.pointLabels.display?fM(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(e,n,r,s){this.xCenter+=Math.floor((e-n)/2),this.yCenter+=Math.floor((r-s)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(e,n,r,s))}getIndexAngle(e){const n=en/(this._pointLabels.length||1),r=this.options.startAngle||0;return nn(e*n+Qr(r))}getDistanceFromCenterForValue(e){if(Ze(e))return NaN;const n=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-e)*n:(e-this.min)*n}getValueForDistanceFromCenter(e){if(Ze(e))return NaN;const n=e/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-n:this.min+n}getPointLabelContext(e){const n=this._pointLabels||[];if(e>=0&&e<n.length){const r=n[e];return MM(this.getContext(),e,r)}}getPointPosition(e,n,r=0){const s=this.getIndexAngle(e)-tn+r;return{x:Math.cos(s)*n+this.xCenter,y:Math.sin(s)*n+this.yCenter,angle:s}}getPointPositionForValue(e,n){return this.getPointPosition(e,this.getDistanceFromCenterForValue(n))}getBasePosition(e){return this.getPointPositionForValue(e||0,this.getBaseValue())}getPointLabelPosition(e){const{left:n,top:r,right:s,bottom:i}=this._pointLabelItems[e];return{left:n,top:r,right:s,bottom:i}}drawBackground(){const{backgroundColor:e,grid:{circular:n}}=this.options;if(e){const r=this.ctx;r.save(),r.beginPath(),Om(this,this.getDistanceFromCenterForValue(this._endValue),n,this._pointLabels.length),r.closePath(),r.fillStyle=e,r.fill(),r.restore()}}drawGrid(){const e=this.ctx,n=this.options,{angleLines:r,grid:s,border:i}=n,a=this._pointLabels.length;let l,c,d;if(n.pointLabels.display&&CM(this,a),s.display&&this.ticks.forEach((u,h)=>{if(h!==0||h===0&&this.min<0){c=this.getDistanceFromCenterForValue(u.value);const f=this.getContext(h),m=s.setContext(f),g=i.setContext(f);xM(this,m,c,a,g)}}),r.display){for(e.save(),l=a-1;l>=0;l--){const u=r.setContext(this.getPointLabelContext(l)),{color:h,lineWidth:f}=u;!f||!h||(e.lineWidth=f,e.strokeStyle=h,e.setLineDash(u.borderDash),e.lineDashOffset=u.borderDashOffset,c=this.getDistanceFromCenterForValue(n.ticks.reverse?this.min:this.max),d=this.getPointPosition(l,c),e.beginPath(),e.moveTo(this.xCenter,this.yCenter),e.lineTo(d.x,d.y),e.stroke())}e.restore()}}drawBorder(){}drawLabels(){const e=this.ctx,n=this.options,r=n.ticks;if(!r.display)return;const s=this.getIndexAngle(0);let i,a;e.save(),e.translate(this.xCenter,this.yCenter),e.rotate(s),e.textAlign="center",e.textBaseline="middle",this.ticks.forEach((l,c)=>{if(c===0&&this.min>=0&&!n.reverse)return;const d=r.setContext(this.getContext(c)),u=rn(d.font);if(i=this.getDistanceFromCenterForValue(this.ticks[c].value),d.showLabelBackdrop){e.font=u.string,a=e.measureText(l.label).width,e.fillStyle=d.backdropColor;const h=gn(d.backdropPadding);e.fillRect(-a/2-h.left,-i-u.size/2-h.top,a+h.width,u.size+h.height)}qa(e,l.label,0,-i,u,{color:d.color,strokeColor:d.textStrokeColor,strokeWidth:d.textStrokeWidth})}),e.restore()}drawTitle(){}}W(ml,"id","radialLinear"),W(ml,"defaults",{display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:Za.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(e){return e},padding:5,centerPointLabels:!1}}),W(ml,"defaultRoutes",{"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"}),W(ml,"descriptors",{angleLines:{_fallback:"grid"}});const pl={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},Yt=Object.keys(pl);function Em(t,e){return t-e}function $m(t,e){if(Ze(e))return null;const n=t._adapter,{parser:r,round:s,isoWeekday:i}=t._parseOpts;let a=e;return typeof r=="function"&&(a=r(a)),it(a)||(a=typeof r=="string"?n.parse(a,r):n.parse(a)),a===null?null:(s&&(a=s==="week"&&(xo(i)||i===!0)?n.startOf(a,"isoWeek",i):n.startOf(a,s)),+a)}function Pm(t,e,n,r){const s=Yt.length;for(let i=Yt.indexOf(t);i<s-1;++i){const a=pl[Yt[i]],l=a.steps?a.steps:Number.MAX_SAFE_INTEGER;if(a.common&&Math.ceil((n-e)/(l*a.size))<=r)return Yt[i]}return Yt[s-1]}function vM(t,e,n,r,s){for(let i=Yt.length-1;i>=Yt.indexOf(n);i--){const a=Yt[i];if(pl[a].common&&t._adapter.diff(s,r,a)>=e-1)return a}return Yt[n?Yt.indexOf(n):0]}function SM(t){for(let e=Yt.indexOf(t)+1,n=Yt.length;e<n;++e)if(pl[Yt[e]].common)return Yt[e]}function Lm(t,e,n){if(!n)t[e]=!0;else if(n.length){const{lo:r,hi:s}=eu(n,e),i=n[r]>=e?n[r]:n[s];t[i]=!0}}function TM(t,e,n,r){const s=t._adapter,i=+s.startOf(e[0].value,r),a=e[e.length-1].value;let l,c;for(l=i;l<=a;l=+s.add(l,1,r))c=n[l],c>=0&&(e[c].major=!0);return e}function Vm(t,e,n){const r=[],s={},i=e.length;let a,l;for(a=0;a<i;++a)l=e[a],s[l]=a,r.push({value:l,major:!1});return i===0||!n?r:TM(t,r,s,n)}class gl extends As{constructor(e){super(e),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(e,n={}){const r=e.time||(e.time={}),s=this._adapter=new mC._date(e.adapters.date);s.init(n),ko(r.displayFormats,s.formats()),this._parseOpts={parser:r.parser,round:r.round,isoWeekday:r.isoWeekday},super.init(e),this._normalized=n.normalized}parse(e,n){return e===void 0?null:$m(this,e)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const e=this.options,n=this._adapter,r=e.time.unit||"day";let{min:s,max:i,minDefined:a,maxDefined:l}=this.getUserBounds();function c(d){!a&&!isNaN(d.min)&&(s=Math.min(s,d.min)),!l&&!isNaN(d.max)&&(i=Math.max(i,d.max))}(!a||!l)&&(c(this._getLabelBounds()),(e.bounds!=="ticks"||e.ticks.source!=="labels")&&c(this.getMinMax(!1))),s=it(s)&&!isNaN(s)?s:+n.startOf(Date.now(),r),i=it(i)&&!isNaN(i)?i:+n.endOf(Date.now(),r)+1,this.min=Math.min(s,i-1),this.max=Math.max(s+1,i)}_getLabelBounds(){const e=this.getLabelTimestamps();let n=Number.POSITIVE_INFINITY,r=Number.NEGATIVE_INFINITY;return e.length&&(n=e[0],r=e[e.length-1]),{min:n,max:r}}buildTicks(){const e=this.options,n=e.time,r=e.ticks,s=r.source==="labels"?this.getLabelTimestamps():this._generate();e.bounds==="ticks"&&s.length&&(this.min=this._userMin||s[0],this.max=this._userMax||s[s.length-1]);const i=this.min,a=this.max,l=Wb(s,i,a);return this._unit=n.unit||(r.autoSkip?Pm(n.minUnit,this.min,this.max,this._getLabelCapacity(i)):vM(this,l.length,n.minUnit,this.min,this.max)),this._majorUnit=!r.major.enabled||this._unit==="year"?void 0:SM(this._unit),this.initOffsets(s),e.reverse&&l.reverse(),Vm(this,l,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(e=>+e.value))}initOffsets(e=[]){let n=0,r=0,s,i;this.options.offset&&e.length&&(s=this.getDecimalForValue(e[0]),e.length===1?n=1-s:n=(this.getDecimalForValue(e[1])-s)/2,i=this.getDecimalForValue(e[e.length-1]),e.length===1?r=i:r=(i-this.getDecimalForValue(e[e.length-2]))/2);const a=e.length<3?.5:.25;n=pn(n,0,a),r=pn(r,0,a),this._offsets={start:n,end:r,factor:1/(n+1+r)}}_generate(){const e=this._adapter,n=this.min,r=this.max,s=this.options,i=s.time,a=i.unit||Pm(i.minUnit,n,r,this._getLabelCapacity(n)),l=Ae(s.ticks.stepSize,1),c=a==="week"?i.isoWeekday:!1,d=xo(c)||c===!0,u={};let h=n,f,m;if(d&&(h=+e.startOf(h,"isoWeek",c)),h=+e.startOf(h,d?"day":a),e.diff(r,n,a)>1e5*l)throw new Error(n+" and "+r+" are too far apart with stepSize of "+l+" "+a);const g=s.ticks.source==="data"&&this.getDataTimestamps();for(f=h,m=0;f<r;f=+e.add(f,l,a),m++)Lm(u,f,g);return(f===r||s.bounds==="ticks"||m===1)&&Lm(u,f,g),Object.keys(u).sort(Em).map(p=>+p)}getLabelForValue(e){const n=this._adapter,r=this.options.time;return r.tooltipFormat?n.format(e,r.tooltipFormat):n.format(e,r.displayFormats.datetime)}format(e,n){const s=this.options.time.displayFormats,i=this._unit,a=n||s[i];return this._adapter.format(e,a)}_tickFormatFunction(e,n,r,s){const i=this.options,a=i.ticks.callback;if(a)return ot(a,[e,n,r],this);const l=i.time.displayFormats,c=this._unit,d=this._majorUnit,u=c&&l[c],h=d&&l[d],f=r[n],m=d&&h&&f&&f.major;return this._adapter.format(e,s||(m?h:u))}generateTickLabels(e){let n,r,s;for(n=0,r=e.length;n<r;++n)s=e[n],s.label=this._tickFormatFunction(s.value,n,e)}getDecimalForValue(e){return e===null?NaN:(e-this.min)/(this.max-this.min)}getPixelForValue(e){const n=this._offsets,r=this.getDecimalForValue(e);return this.getPixelForDecimal((n.start+r)*n.factor)}getValueForPixel(e){const n=this._offsets,r=this.getDecimalForPixel(e)/n.factor-n.end;return this.min+r*(this.max-this.min)}_getLabelSize(e){const n=this.options.ticks,r=this.ctx.measureText(e).width,s=Qr(this.isHorizontal()?n.maxRotation:n.minRotation),i=Math.cos(s),a=Math.sin(s),l=this._resolveTickFontOptions(0).size;return{w:r*i+l*a,h:r*a+l*i}}_getLabelCapacity(e){const n=this.options.time,r=n.displayFormats,s=r[n.unit]||r.millisecond,i=this._tickFormatFunction(e,0,Vm(this,[e],this._majorUnit),s),a=this._getLabelSize(i),l=Math.floor(this.isHorizontal()?this.width/a.w:this.height/a.h)-1;return l>0?l:1}getDataTimestamps(){let e=this._cache.data||[],n,r;if(e.length)return e;const s=this.getMatchingVisibleMetas();if(this._normalized&&s.length)return this._cache.data=s[0].controller.getAllParsedValues(this);for(n=0,r=s.length;n<r;++n)e=e.concat(s[n].controller.getAllParsedValues(this));return this._cache.data=this.normalize(e)}getLabelTimestamps(){const e=this._cache.labels||[];let n,r;if(e.length)return e;const s=this.getLabels();for(n=0,r=s.length;n<r;++n)e.push($m(this,s[n]));return this._cache.labels=this._normalized?e:this.normalize(e)}normalize(e){return Zb(e.sort(Em))}}W(gl,"id","time"),W(gl,"defaults",{bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}});function _l(t,e,n){let r=0,s=t.length-1,i,a,l,c;n?(e>=t[r].pos&&e<=t[s].pos&&({lo:r,hi:s}=Os(t,"pos",e)),{pos:i,time:l}=t[r],{pos:a,time:c}=t[s]):(e>=t[r].time&&e<=t[s].time&&({lo:r,hi:s}=Os(t,"time",e)),{time:i,pos:l}=t[r],{time:a,pos:c}=t[s]);const d=a-i;return d?l+(c-l)*(e-i)/d:l}class Nm extends gl{constructor(e){super(e),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const e=this._getTimestampsForTable(),n=this._table=this.buildLookupTable(e);this._minPos=_l(n,this.min),this._tableRange=_l(n,this.max)-this._minPos,super.initOffsets(e)}buildLookupTable(e){const{min:n,max:r}=this,s=[],i=[];let a,l,c,d,u;for(a=0,l=e.length;a<l;++a)d=e[a],d>=n&&d<=r&&s.push(d);if(s.length<2)return[{time:n,pos:0},{time:r,pos:1}];for(a=0,l=s.length;a<l;++a)u=s[a+1],c=s[a-1],d=s[a],Math.round((u+c)/2)!==d&&i.push({time:d,pos:a/(l-1)});return i}_generate(){const e=this.min,n=this.max;let r=super.getDataTimestamps();return(!r.includes(e)||!r.length)&&r.splice(0,0,e),(!r.includes(n)||r.length===1)&&r.push(n),r.sort((s,i)=>s-i)}_getTimestampsForTable(){let e=this._cache.all||[];if(e.length)return e;const n=this.getDataTimestamps(),r=this.getLabelTimestamps();return n.length&&r.length?e=this.normalize(n.concat(r)):e=n.length?n:r,e=this._cache.all=e,e}getDecimalForValue(e){return(_l(this._table,e)-this._minPos)/this._tableRange}getValueForPixel(e){const n=this._offsets,r=this.getDecimalForPixel(e)/n.factor-n.end;return _l(this._table,r*this._tableRange+this._minPos,!0)}}W(Nm,"id","timeseries"),W(Nm,"defaults",gl.defaults);const Bm={data:{type:Object,required:!0},options:{type:Object,default:()=>({})},plugins:{type:Array,default:()=>[]},datasetIdKey:{type:String,default:"label"},updateMode:{type:String,default:void 0}},DM={type:{type:String,required:!0},destroyDelay:{type:Number,default:0},...Bm,...{ariaLabel:{type:String},ariaDescribedby:{type:String}}},OM=o.version[0]==="2"?(t,e)=>Object.assign(t,{attrs:e}):(t,e)=>Object.assign(t,e);function Ci(t){return o.isProxy(t)?o.toRaw(t):t}function EM(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:t;return o.isProxy(e)?new Proxy(t,{}):t}function $M(t,e){const n=t.options;n&&e&&Object.assign(n,e)}function Am(t,e){t.labels=e}function Rm(t,e,n){const r=[];t.datasets=e.map(s=>{const i=t.datasets.find(a=>a[n]===s[n]);return!i||!s.data||r.includes(i)?{...s}:(r.push(i),Object.assign(i,s),i)})}function PM(t,e){const n={labels:[],datasets:[]};return Am(n,t.labels),Rm(n,t.datasets,e),n}const LM=o.defineComponent({props:DM,setup(t,e){let{expose:n,slots:r}=e;const s=o.ref(null),i=o.shallowRef(null);n({chart:i});const a=()=>{if(!s.value)return;const{type:d,data:u,options:h,plugins:f,datasetIdKey:m}=t,g=PM(u,m),p=EM(g,u);i.value=new Bo(s.value,{type:d,data:p,options:{...h},plugins:f})},l=()=>{const d=o.toRaw(i.value);d&&(t.destroyDelay>0?setTimeout(()=>{d.destroy(),i.value=null},t.destroyDelay):(d.destroy(),i.value=null))},c=d=>{d.update(t.updateMode)};return o.onMounted(a),o.onUnmounted(l),o.watch([()=>t.options,()=>t.data],(d,u)=>{let[h,f]=d,[m,g]=u;const p=o.toRaw(i.value);if(!p)return;let _=!1;if(h){const y=Ci(h),C=Ci(m);y&&y!==C&&($M(p,y),_=!0)}if(f){const y=Ci(f.labels),C=Ci(g.labels),k=Ci(f.datasets),S=Ci(g.datasets);y!==C&&(Am(p.config.data,y),_=!0),k&&k!==S&&(Rm(p.config.data,k,t.datasetIdKey),_=!0)}_&&o.nextTick(()=>{c(p)})},{deep:!0}),()=>o.h("canvas",{role:"img",ariaLabel:t.ariaLabel,ariaDescribedby:t.ariaDescribedby,ref:s},[o.h("p",{},[r.default?r.default():""])])}});function VM(t,e){return Bo.register(e),o.defineComponent({props:Bm,setup(n,r){let{expose:s}=r;const i=o.shallowRef(null),a=l=>{i.value=l==null?void 0:l.chart};return s({chart:i}),()=>o.h(LM,OM({ref:a},{type:t,...n}))}})}const Fm=VM("line",el),NM={class:"chart-container"},Eu={__name:"LineChart",props:{data:{type:Array,required:!0},dataType:{type:String,required:!0},ticksCallback:{type:Function,default:t=>t},borderColor:{type:String,default:"#007AFF"},gradient:{type:Object,default:{height:450,startColor:"rgba(0, 122, 255, 0.1)",endColor:"rgba(0, 122, 255, 0)"}}},setup(t){Bo.register(ul,fl,Ao,_r,iM,gm);const e=t,n=d=>{const u=new Set,h=[];let f=[];switch(e.dataType){case"balanceChartData":f=d.map(g=>(u.add(g.date),g.balance));break;case"performanceChartData":f=d.map(g=>(u.add(g.date),g.pnl/g.pnl_to_deposit*100));break}return h.push({data:f}),{labels:Array.from(u),datasets:h}},r=o.computed(()=>n(e.data)),s=d=>{const h=d.chart.ctx.createLinearGradient(0,0,0,e.gradient.height);return h.addColorStop(0,e.gradient.startColor),h.addColorStop(1,e.gradient.endColor),h},i=(d,u)=>{let h=document.querySelector(`#${d}-${e.dataType}`);return h||(h=document.createElement("div"),h.classList.add(d),h.setAttribute("id",`${d}-${e.dataType}`),u.canvas.parentNode.appendChild(h)),h},a=d=>{const{chart:u,tooltip:h}=d,f=i("chart-tooltip",u);if(h.opacity===0){f.style.opacity=String(0);return}if(h.body){const p=h.title||[],_=h.body.map(C=>C.lines),y=document.createElement("div");for(y.classList.add("chart-tooltip-middle"),y.innerHTML=`<div class="chart-tooltip-content">
|
|
35
35
|
${e.dataType==="balanceChartData"?`$${Q1(_[0])}`:`${Q1(_[0])}%`}
|
|
36
|
-
<span> | ${J1(p[0])}, ${K6(p[0])}</span></div>`;f.firstChild;)f.firstChild.remove();f.appendChild(y)}const{offsetLeft:m,offsetTop:g}=u.canvas;f.style.opacity=String(1),f.style.left=m+h.caretX+"px",f.style.top=g+h.caretY+"px"},l=d=>{const{chart:u}=d,h=i("chart-line",u);u.canvas.addEventListener("mousemove",function(f){const m=u.canvas.getBoundingClientRect(),g=f.clientX-m.left;h.style.left=g+"px",h.style.display="flex"}),u.canvas.addEventListener("mouseout",function(){h.style.display="none"})},c=o.ref({responsive:!0,maintainAspectRatio:!1,animation:{duration:1500},scales:{x:{ticks:{callback:function(d){return J1(this.getLabelForValue(d)).slice(0,3)},color:"#8E8E93",font:{size:14,weight:400,family:"'SF Pro Display', sans-serif"},padding:15,align:"end"},grid:{display:!1},border:{color:"#EDEDED"}},y:{ticks:{callback:function(d){return e.ticksCallback(d)},color:"#8E8E93",font:{size:14,weight:400,family:"'SF Pro Display', sans-serif"},padding:15},grid:{color:"#EDEDED",drawTicks:!1},border:{display:!1,dash:[4,4],dashOffset:1}}},plugins:{tooltip:{enabled:!1,position:"nearest",external:a},legend:!1},elements:{line:{backgroundColor:d=>s(d),tension:.3,borderWidth:2,borderColor:e.borderColor,fill:"start",spanGaps:!0},point:{pointStyle:"circle",pointRadius:1,pointHoverRadius:8,pointBackgroundColor:e.borderColor,pointBorderWidth:0,pointHoverBorderWidth:3,pointBorderColor:"#fff",pointHoverBorderColor:"#fff",pointHitRadius:50}},onHover:l});return(d,u)=>(o.openBlock(),o.createElementBlock("div",NM,[o.createVNode(o.unref(Fm),{data:r.value,options:c.value},null,8,["data","options"])]))}},Im={__name:"SimpleLineChart",props:{data:{type:Array,required:!0},borderColor:{type:String,default:"#56B683"},gradient:{type:Object,default:{height:200,startColor:"rgba(86, 182, 131, 0.1)",endColor:"rgba(86, 182, 131, 0)"}}},setup(t){Bo.register(ul,fl,Ao,_r,gm);const e=t,n=a=>{const l=new Set,c=[],d=a.map(h=>(l.add(h.date),h.balance));return c.push({data:d}),{labels:Array.from(l),datasets:c}},r=o.computed(()=>n(e.data)),s=a=>{const c=a.chart.ctx.createLinearGradient(0,0,0,e.gradient.height);return c.addColorStop(0,e.gradient.startColor),c.addColorStop(1,e.gradient.endColor),c},i=o.ref({responsive:!0,maintainAspectRatio:!1,animation:{duration:1500},interaction:{mode:"index",intersect:!1},scales:{x:{display:!1},y:{display:!1}},plugins:{tooltip:!1,legend:!1},elements:{line:{backgroundColor:a=>s(a),tension:.3,borderWidth:1,borderColor:e.borderColor,fill:"start",spanGaps:!0},point:{pointStyle:!1}}});return(a,l)=>(o.openBlock(),o.createBlock(o.unref(Fm),{data:r.value,options:i.value},null,8,["data","options"]))}},BM=t=>(o.pushScopeId("data-v-aade6a2a"),t=t(),o.popScopeId(),t),AM={class:"account-balance-widget"},RM={class:"account-balance-widget__top"},FM={class:"account-balance-widget__title-wrapper"},IM=BM(()=>o.createElementVNode("div",{class:"account-balance-widget__title"},"Account Balance",-1)),zM=De({__name:"AccountBalanceWidget",props:{balanceChartData:{type:Array,default:[]},isShare:{type:Boolean,default:!1}},setup(t){const e=o.ref("week"),n=r=>r>=1e3||r<=-1e3?Nt(r/1e3,2)+"k":Nt(r,2);return(r,s)=>(o.openBlock(),o.createElementBlock("div",AM,[o.createElementVNode("div",RM,[o.createElementVNode("div",FM,[IM,o.createVNode(o.unref(fn),{alternative:""},{default:o.withCtx(()=>[o.createTextVNode("Reflects your deposit growth over the previous date. One of the most reliable indicator of profit for a trader. ")]),_:1})]),t.isShare?o.createCommentVNode("",!0):(o.openBlock(),o.createBlock(o.unref(Ys),{key:0,modelValue:e.value,"onUpdate:modelValue":s[0]||(s[0]=i=>e.value=i),onOnChange:s[1]||(s[1]=i=>r.$emit("onChange",e.value))},null,8,["modelValue"]))]),o.createVNode(o.unref(Eu),{data:t.balanceChartData,"data-type":"balanceChartData","ticks-callback":n},null,8,["data"])]))}},[["__scopeId","data-v-aade6a2a"]]),zm=t=>(o.pushScopeId("data-v-8cc75a8e"),t=t(),o.popScopeId(),t),HM={class:"balance-widget"},YM={class:"balance-part"},WM={class:"balance-part__top"},jM={class:"balance-part__title-wrapper"},ZM=zm(()=>o.createElementVNode("div",{class:"balance-part__title"},"Balance",-1)),UM={class:"balance-part__content"},qM={class:"balance-part__content__wrapper"},GM={class:"balance-part__content__count"},KM={class:"balance-part__content__bitcoin"},XM={key:0,class:"devider"},QM={key:1,class:"personal-target-part"},JM={class:"personal-target-part__top"},ev={class:"personal-target-part__title-wrapper"},tv=zm(()=>o.createElementVNode("div",{class:"personal-target-part__title"},"Personal target",-1)),nv={class:"personal-target-part__content"},rv={class:"personal-target-part__content__current"},sv={class:"personal-target-part__content__from"},iv=De({__name:"BalanceWidget",props:{BTC:{type:Number,default:0},USDT:{type:Number,default:0},delta:{type:Number,default:0},balanceChartData:{type:Array,default:[]},currentProfit:{type:Number,default:0},profit:{type:Number,default:0},drawdown:{type:Number,default:0},isPercentage:Boolean,isShare:{type:Boolean,default:!1}},emits:["switchModal"],setup(t,{emit:e}){const n=e,r=t,s=o.ref(!1),i=o.computed(()=>s.value?"****":r.BTC),a=o.computed(()=>s.value?"****":r.USDT),l=()=>{s.value=!s.value};return(c,d)=>(o.openBlock(),o.createElementBlock("div",HM,[o.createElementVNode("div",YM,[o.createElementVNode("div",WM,[o.createElementVNode("div",jM,[ZM,o.createVNode(o.unref(fn),{alternative:""},{default:o.withCtx(()=>[o.createTextVNode("Reflects your deposit size in $ and btc equivalent and growth over the previous date. One of the most reliable indicator of profit for a trader.")]),_:1})]),t.isShare?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",{key:0,class:"balance-part__visibility-switcher",onClick:l},[o.withDirectives(o.createVNode(o.unref(Ne),{icon:"eye"},null,512),[[o.vShow,s.value]]),o.withDirectives(o.createVNode(o.unref(Ne),{icon:"eye-slash"},null,512),[[o.vShow,!s.value]])]))]),o.createElementVNode("div",UM,[o.createElementVNode("div",qM,[o.createElementVNode("div",GM,o.toDisplayString(o.unref(ln)(a.value)),1),t.delta?(o.openBlock(),o.createBlock(o.unref(Il),{key:0,"is-hidden":s.value,percentage:"",delta:t.delta},null,8,["is-hidden","delta"])):o.createCommentVNode("",!0)]),o.createElementVNode("div",KM,"= "+o.toDisplayString(i.value)+" BTC",1)]),o.createVNode(o.unref(Im),{class:"balance-part__chart",data:t.balanceChartData},null,8,["data"])]),t.isShare?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",XM)),t.isShare?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",QM,[o.createElementVNode("div",JM,[o.createElementVNode("div",ev,[tv,o.createVNode(o.unref(fn),{alternative:""},{default:o.withCtx(()=>[o.createTextVNode(" This widget allows you to set a personal profit goal expressed in $ for a certain period ")]),_:1})]),o.createElementVNode("div",{class:"balance-part__modal-switcher",onClick:d[0]||(d[0]=u=>n("switchModal"))},[o.createVNode(o.unref(Ne),{icon:"settings"})])]),o.createElementVNode("div",nv,[o.createElementVNode("div",rv,o.toDisplayString(o.unref(ln)(t.currentProfit,{isPercentage:t.isPercentage,isFixed:!0})),1),o.createElementVNode("div",sv,"/ "+o.toDisplayString(o.unref(ln)(t.profit,{isPercentage:t.isPercentage,isFixed:!0})),1)]),o.createVNode(o.unref(Hp),{"current-profit":t.currentProfit,drawdown:t.drawdown,profit:t.profit,"is-percentage":t.isPercentage},null,8,["current-profit","drawdown","profit","is-percentage"])]))]))}},[["__scopeId","data-v-8cc75a8e"]]),yl=t=>(o.pushScopeId("data-v-5903c480"),t=t(),o.popScopeId(),t),ov={class:"calendar-widget"},av={class:"calendar-widget__calendar"},lv={class:"calendar-widget__top"},cv={class:"calendar-widget__title-wrapper"},dv=yl(()=>o.createElementVNode("div",{class:"calendar-widget__title"},"Calendar",-1)),uv={class:"stat-calendar"},hv={class:"stat-calendar__week-days"},fv={key:0,class:"stat-calendar__row-wrapper"},mv={class:"stat-calendar__row"},pv=["onClick"],gv=yl(()=>o.createElementVNode("div",{class:"calendar-widget__divider"},null,-1)),_v={key:0,class:"calendar-widget__day"},yv={class:"calendar-widget__day__title"},wv={class:"calendar-widget__day__content"},bv={class:"calendar-widget__point"},kv={class:"calendar-widget__point__title"},Cv=yl(()=>o.createElementVNode("div",{class:"calendar-widget__point__line"},null,-1)),xv={class:"calendar-widget__day__trades"},Mv={class:"calendar-widget__point"},vv={class:"calendar-widget__point__title"},Sv=yl(()=>o.createElementVNode("div",{class:"calendar-widget__point__line"},null,-1)),Tv=De({__name:"CalendarWidget",props:{rows:Array,dailyStatData:Object,currentDate:Date,calendarPointsTop:Array,calendarPointsBottom:Array,isCurrentDate:Function,isCurrentDay:Function},emits:["setNewDate","chooseMonth"],setup(t,{emit:e}){const n=["Su","Mo","Tu","We","Th","Fr","Sa"],r=o.ref(null),s=o.ref(null),i=e,a=l=>{r.value=l.year,s.value=l.month,i("chooseMonth",l)};return o.nextTick(()=>{const l=new Date;r.value=l.getFullYear(),s.value=l.getMonth()}),(l,c)=>{var d,u;return o.openBlock(),o.createElementBlock("div",ov,[o.createElementVNode("div",av,[o.createElementVNode("div",lv,[o.createElementVNode("div",cv,[dv,o.createVNode(o.unref(fn),{alternative:""},{default:o.withCtx(()=>[o.createTextVNode("Displays profitable days on green, losing days in red and trading days without significant profit or loss in blue. Also when you click on a specific date, more detailed information about trading day is displayed. ")]),_:1})]),t.currentDate?(o.openBlock(),o.createBlock(o.unref(zp),{key:0,"current-date":t.currentDate,onOnChange:a,year:r.value,"onUpdate:year":c[0]||(c[0]=h=>r.value=h),month:s.value,"onUpdate:month":c[1]||(c[1]=h=>s.value=h)},null,8,["current-date","year","month"])):o.createCommentVNode("",!0)]),o.createElementVNode("div",uv,[o.createElementVNode("div",hv,[(o.openBlock(),o.createElementBlock(o.Fragment,null,o.renderList(n,(h,f)=>o.createElementVNode("div",{class:o.normalizeClass(["stat-calendar__week-day",{"-current":t.isCurrentDay(f)}])},o.toDisplayString(h),3)),64))]),t.rows?(o.openBlock(),o.createElementBlock("div",fv,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.rows,h=>(o.openBlock(),o.createElementBlock("div",mv,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(h,f=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["stat-calendar__day",{"-empty":!f.date,"-current":t.isCurrentDate(f.date),"-positive":f.win,"-negative":f.win===!1}]),onClick:m=>i("setNewDate",f.date)},o.toDisplayString(f.date?f.date:""),11,pv))),256))]))),256))])):o.createCommentVNode("",!0)])]),gv,t.dailyStatData&&!t.dailyStatData.isNull?(o.openBlock(),o.createElementBlock("div",_v,[o.createElementVNode("div",yv,o.toDisplayString(t.currentDate.getDate()+" "+t.currentDate.toLocaleString("en-us",{month:"long"})),1),o.createElementVNode("div",wv,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.calendarPointsTop,h=>(o.openBlock(),o.createElementBlock("div",bv,[o.createElementVNode("div",kv,o.toDisplayString(h.title),1),Cv,o.createElementVNode("div",{class:o.normalizeClass(["calendar-widget__point__value",h.class?h.class:""])},o.toDisplayString(h.value),3)]))),256)),o.createVNode(o.unref(L0),{long:(d=t.dailyStatData)==null?void 0:d.long_count,short:(u=t.dailyStatData)==null?void 0:u.short_count},null,8,["long","short"]),o.createElementVNode("div",xv,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.calendarPointsBottom,h=>(o.openBlock(),o.createElementBlock("div",Mv,[o.createElementVNode("div",vv,o.toDisplayString(h.title),1),Sv,o.createVNode(o.unref(Il),{"is-positive":h.isPositive,"is-negative":h.isNegative,delta:h.value},null,8,["is-positive","is-negative","delta"])]))),256))])])])):(o.openBlock(),o.createBlock(o.unref(jd),{key:1,class:"-empty"}))])}}},[["__scopeId","data-v-5903c480"]]),$u=t=>(o.pushScopeId("data-v-a2323720"),t=t(),o.popScopeId(),t),Dv={class:"commission-widget"},Ov={class:"commission-widget__content"},Ev={class:"commission-widget__top"},$v={class:"commission-widget__title-wrapper"},Pv=$u(()=>o.createElementVNode("div",{class:"commission-widget__title"},"Commissions and Fees",-1)),Lv={class:"commission-widget__info"},Vv={class:"commission-widget__total-wrapper"},Nv=$u(()=>o.createElementVNode("div",{class:"commission-widget__total-wrapper__title"},"Total",-1)),Bv={class:"commission-widget__total-wrapper__total"},Av={class:"commission-widget__total-wrapper__value"},Rv={class:"commission-widget__points"},Fv={class:"commission-widget__point"},Iv={class:"commission-widget__point__title"},zv=$u(()=>o.createElementVNode("div",{class:"commission-widget__point__line"},null,-1)),Hv=De({__name:"CommissionsFeesWidget",props:{commission:Number,commissionPoints:Array},emits:["onChange"],setup(t,{emit:e}){const n=o.ref("week"),r=e;return(s,i)=>(o.openBlock(),o.createElementBlock("div",Dv,[o.createElementVNode("div",Ov,[o.createElementVNode("div",Ev,[o.createElementVNode("div",$v,[Pv,o.createVNode(o.unref(fn),{alternative:""},{default:o.withCtx(()=>[o.createTextVNode("The amount of total commissions and fees for the selected previous period including the current date. This widget also shows commission to profit ratio in $/% and average amount of fees per trade. ")]),_:1})]),o.createVNode(o.unref(Ys),{modelValue:n.value,"onUpdate:modelValue":i[0]||(i[0]=a=>n.value=a),onOnChange:i[1]||(i[1]=a=>r("onChange",n.value))},null,8,["modelValue"])]),o.createElementVNode("div",Lv,[o.createElementVNode("div",Vv,[Nv,o.createElementVNode("div",Bv,[o.createElementVNode("div",Av," $"+o.toDisplayString(o.unref(Nt)(t.commission)),1)])]),o.createElementVNode("div",Rv,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.commissionPoints,(a,l)=>(o.openBlock(),o.createElementBlock("div",Fv,[o.createElementVNode("div",Iv,o.toDisplayString(a.title),1),zv,o.createElementVNode("div",{class:o.normalizeClass(["commission-widget__point__value",a.class?a.class:""])},o.toDisplayString(a.value),3)]))),256))])])])]))}},[["__scopeId","data-v-a2323720"]]),Yv=t=>(o.pushScopeId("data-v-db6b817e"),t=t(),o.popScopeId(),t),Wv={class:"performance-widget"},jv={class:"performance-widget__top"},Zv={class:"performance-widget__title-wrapper"},Uv=Yv(()=>o.createElementVNode("div",{class:"performance-widget__title"},"Performance (cumulative)",-1)),qv=De({__name:"PerformanceWidget",props:{performanceChartData:{type:Array,default:[]},isShare:{type:Boolean,default:!1}},setup(t){const e=o.ref("week"),n=r=>Nt(r,2)+"%";return(r,s)=>(o.openBlock(),o.createElementBlock("div",Wv,[o.createElementVNode("div",jv,[o.createElementVNode("div",Zv,[Uv,o.createVNode(o.unref(fn),{alternative:""},{default:o.withCtx(()=>[o.createTextVNode("The amount of profit for the selected previous period including the current date. This widget shows the growth or loss of the deposit in %. The widget is available as a line graph. ")]),_:1})]),t.isShare?o.createCommentVNode("",!0):(o.openBlock(),o.createBlock(o.unref(Ys),{key:0,modelValue:e.value,"onUpdate:modelValue":s[0]||(s[0]=i=>e.value=i),onOnChange:s[1]||(s[1]=i=>r.$emit("onChange",e.value))},null,8,["modelValue"]))]),o.createVNode(o.unref(Eu),{data:t.performanceChartData,"data-type":"performanceChartData","ticks-callback":n},null,8,["data"])]))}},[["__scopeId","data-v-db6b817e"]]),Pu=t=>(o.pushScopeId("data-v-e6201bf9"),t=t(),o.popScopeId(),t),Gv={class:"return-widget"},Kv={class:"return-widget__content"},Xv={class:"return-widget__top"},Qv={class:"return-widget__title-wrapper"},Jv=Pu(()=>o.createElementVNode("div",{class:"return-widget__title"},"Return",-1)),eS={class:"return-widget__info"},tS={class:"return-widget__total-wrapper"},nS=Pu(()=>o.createElementVNode("div",{class:"return-widget__total-wrapper__title"},"Total",-1)),rS={class:"return-widget__total-wrapper__total"},sS={class:"return-widget__points"},iS={class:"return-widget__point"},oS={class:"return-widget__point__title"},aS=Pu(()=>o.createElementVNode("div",{class:"return-widget__point__line"},null,-1)),lS=["innerHTML"],cS=De({__name:"ReturnWidget",props:{returnData:Object,isShare:{type:Boolean,default:!1}},emits:["onChange"],setup(t,{emit:e}){const n=o.ref("week"),r=e,s=t,i=o.computed(()=>s.returnData?s.returnData.profit_factor:0),a=o.computed(()=>s.returnData?s.returnData.return_period:0),l=o.computed(()=>[{title:"Average return per trade",value:c.value||0,options:{isPlus:!0,isFixed:!0},class:c.value>=0?"-win":"-loss"},{title:"Daily return",value:d.value||0,options:{isPlus:!0,isFixed:!0},class:d.value>=0?"-win":"-loss"},{title:"Return on winners",value:u.value||0},{title:"Return on losers",value:h.value||0}]),c=o.computed(()=>s.returnData&&s.returnData.avarage_total_return),d=o.computed(()=>s.returnData&&s.returnData.daily),u=o.computed(()=>s.returnData&&s.returnData.win),h=o.computed(()=>s.returnData&&s.returnData.lose),f=o.computed(()=>s.returnData&&s.returnData.period_balance_change_rate),m=o.computed(()=>s.returnPeriod>0),g=o.computed(()=>s.returnPeriod<0),p=o.computed(()=>i.value>0?"-positive":"-negative"),_=o.computed(()=>i.value>0?`Your profit factor is ${Nt(i.value,2)}. <br /> You earn ${ln(i.value)} on every $1 loss.`:`Your profit factor is ${Nt(i.value,2)}. <br/> You loss ${ln(Math.abs(i.value))} on every $1 earn. `);return(y,C)=>(o.openBlock(),o.createElementBlock("div",Gv,[o.createElementVNode("div",Kv,[o.createElementVNode("div",Xv,[o.createElementVNode("div",Qv,[Jv,o.createVNode(o.unref(fn),{alternative:""},{default:o.withCtx(()=>[o.createTextVNode("The amount of profit in $ and % for the selected previous period including the current date. This widget also shows the amount of profit and loss separately. ")]),_:1})]),t.isShare?o.createCommentVNode("",!0):(o.openBlock(),o.createBlock(o.unref(Ys),{key:0,modelValue:n.value,"onUpdate:modelValue":C[0]||(C[0]=k=>n.value=k),onOnChange:C[1]||(C[1]=k=>r("onChange",n.value))},null,8,["modelValue"]))]),o.createElementVNode("div",eS,[o.createElementVNode("div",tS,[nS,o.createElementVNode("div",rS,[o.createElementVNode("div",{class:o.normalizeClass(["return-widget__total-wrapper__value",{"-positive":m.value,"-negative":g.value}])},o.toDisplayString(o.unref(ln)(a.value,{isPlus:!0,isFixed:!0})),3),f.value?(o.openBlock(),o.createBlock(o.unref(Il),{key:0,percentage:"",delta:f.value},null,8,["delta"])):o.createCommentVNode("",!0)])]),o.createElementVNode("div",sS,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(l.value,k=>(o.openBlock(),o.createElementBlock("div",iS,[o.createElementVNode("div",oS,o.toDisplayString(k.title),1),aS,o.createElementVNode("div",{class:o.normalizeClass(["return-widget__point__value",k.class?k.class:""])},o.toDisplayString(o.unref(ln)(k.value,k.options)),3)]))),256))])])]),i.value?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(["return-widget__profit",p.value])},[o.createVNode(o.unref(Ne),{icon:"tip",class:"return-widget__profit__icon"}),o.createElementVNode("div",{class:"return-widget__profit__text",innerHTML:_.value},null,8,lS)],2)):o.createCommentVNode("",!0)]))}},[["__scopeId","data-v-e6201bf9"]]),Hm=t=>(o.pushScopeId("data-v-60161694"),t=t(),o.popScopeId(),t),dS={class:"top-positions-widget"},uS={class:"top-positions-widget__top"},hS={class:"top-positions-widget__title-wrapper"},fS=Hm(()=>o.createElementVNode("div",{class:"top-positions-widget__title"},"Top-3 Positions",-1)),mS={key:0,class:"top-positions-widget__returns"},pS={class:"top-positions-widget__return"},gS={class:"top-positions-widget__return__left"},_S=Hm(()=>o.createElementVNode("div",{class:"top-positions-widget__return__line"},null,-1)),yS={class:"top-positions-widget__return__pair"},wS={class:"top-positions-widget__return__right"},bS={class:"top-positions-widget__return__pnl"},kS=De({__name:"TopPositionsWidget",props:{topPositions:{type:Array,default:[]}},emits:["onChange"],setup(t,{emit:e}){const n=o.ref("week"),r=e;return(s,i)=>(o.openBlock(),o.createElementBlock("div",dS,[o.createElementVNode("div",uS,[o.createElementVNode("div",hS,[fS,o.createVNode(o.unref(fn),{alternative:""},{default:o.withCtx(()=>[o.createTextVNode("Displays 3 most profitable trades of the selected period. You can also see the trading pair and trade profit to balance ratio. ")]),_:1})]),o.createVNode(o.unref(Ys),{modelValue:n.value,"onUpdate:modelValue":i[0]||(i[0]=a=>n.value=a),onOnChange:i[1]||(i[1]=a=>r("onChange",n.value))},null,8,["modelValue"])]),t.topPositions&&t.topPositions.length?(o.openBlock(),o.createElementBlock("div",mS,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.topPositions,a=>(o.openBlock(),o.createElementBlock("div",pS,[o.createElementVNode("div",gS,[_S,o.createElementVNode("div",yS,o.toDisplayString(o.unref(X6)(a.pair)),1)]),o.createElementVNode("div",wS,[o.createElementVNode("div",bS,o.toDisplayString(o.unref(ln)(a.pnl,{isFixed:!0,isPlus:!0})),1),o.createElementVNode("div",{class:o.normalizeClass(["top-positions-widget__return__roi",a.roi<0?"-negative":"-positive"])},[o.createVNode(o.unref(Ne),{icon:"bxs_up-arrow"}),o.createElementVNode("span",null,o.toDisplayString(o.unref(ln)(a.roi,{isPercentage:!0,isFixed:!0})),1)],2)])]))),256))])):(o.openBlock(),o.createBlock(o.unref(jd),{key:1,title:"No more pair",subtitle:"No data available for the specified period",icon:"coins-add"}))]))}},[["__scopeId","data-v-60161694"]]),Lu=t=>(o.pushScopeId("data-v-7b67b5c8"),t=t(),o.popScopeId(),t),CS={class:"trade-widget"},xS={class:"trade-widget__content"},MS={class:"trade-widget__top"},vS={class:"trade-widget__title-wrapper"},SS=Lu(()=>o.createElementVNode("div",{class:"trade-widget__title"},"Trades Performance",-1)),TS={class:"trade-widget__info"},DS={class:"trade-widget__total-wrapper"},OS=Lu(()=>o.createElementVNode("div",{class:"trade-widget__total-wrapper__title"},"Total",-1)),ES={class:"trade-widget__total-wrapper__total"},$S={class:"trade-widget__total-wrapper__value"},PS={class:"trade-widget__points"},LS={class:"trade-widget__point"},VS={class:"trade-widget__point__title"},NS=Lu(()=>o.createElementVNode("div",{class:"trade-widget__point__line"},null,-1)),BS=De({__name:"TradePerformanceWidget",props:{totalTrades:Number,tradePoints:Array},emits:["onChange"],setup(t,{emit:e}){const n=o.ref("week"),r=e;return(s,i)=>(o.openBlock(),o.createElementBlock("div",CS,[o.createElementVNode("div",xS,[o.createElementVNode("div",MS,[o.createElementVNode("div",vS,[SS,o.createVNode(o.unref(fn),{alternative:""},{default:o.withCtx(()=>[o.createTextVNode("This widget displays number of total winning & trades. Also it indicates the average number of trades for selected period. ")]),_:1})]),o.createVNode(o.unref(Ys),{modelValue:n.value,"onUpdate:modelValue":i[0]||(i[0]=a=>n.value=a),onOnChange:i[1]||(i[1]=a=>r("onChange",n.value))},null,8,["modelValue"])]),o.createElementVNode("div",TS,[o.createElementVNode("div",DS,[OS,o.createElementVNode("div",ES,[o.createElementVNode("div",$S,o.toDisplayString(t.totalTrades),1)])]),o.createElementVNode("div",PS,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.tradePoints,a=>(o.openBlock(),o.createElementBlock("div",LS,[o.createElementVNode("div",VS,o.toDisplayString(a.title),1),NS,o.createElementVNode("div",{class:o.normalizeClass(["trade-widget__point__value",a.class?a.class:""])},o.toDisplayString(a.value),3)]))),256))])])])]))}},[["__scopeId","data-v-7b67b5c8"]]),Vu=t=>(o.pushScopeId("data-v-e97f83dc"),t=t(),o.popScopeId(),t),AS={class:"winrate-widget"},RS={class:"winrate-widget__winrate"},FS={class:"winrate-widget__title-wrapper"},IS=Vu(()=>o.createElementVNode("div",{class:"winrate-widget__title"},"Winrate",-1)),zS={class:"winrate-widget__chart"},HS={class:"winrate-widget__data"},YS={class:"winrate-widget__data_value"},WS=Vu(()=>o.createElementVNode("div",{class:"winrate-widget__data_title"},"Winrate",-1)),jS={class:"winrate-widget__average-rr"},ZS={class:"winrate-widget__title-wrapper"},US=Vu(()=>o.createElementVNode("div",{class:"winrate-widget__title"},"Average RR",-1)),qS=De({__name:"WinrateWidget",props:{winrate:{type:Number,default:0},minRR:{type:Number,default:0},averageRR:{type:Number,default:0},maxRR:{type:Number,default:0}},setup(t){return(e,n)=>(o.openBlock(),o.createElementBlock("div",AS,[o.createElementVNode("div",RS,[o.createElementVNode("div",FS,[IS,o.createVNode(o.unref(fn),{alternative:""},{default:o.withCtx(()=>[o.createTextVNode("This widget displays the percentage of successful trades and the average RR. ")]),_:1})]),o.createElementVNode("div",zS,[o.renderSlot(e.$slots,"roundSlider",{},void 0,!0),o.createElementVNode("div",HS,[o.createElementVNode("div",YS,o.toDisplayString(o.unref(Nt)(t.winrate,2))+"%",1),WS])])]),o.createElementVNode("div",jS,[o.createElementVNode("div",ZS,[US,o.createVNode(o.unref(fn),{alternative:""},{default:o.withCtx(()=>[o.createTextVNode("The risk/reward ratio - marks the prospective reward a trader can earn for every dollar they risk on a trade. ")]),_:1})]),o.createVNode(o.unref(Ym),{avg:t.averageRR,min:t.minRR,max:t.maxRR},null,8,["avg","min","max"])])]))}},[["__scopeId","data-v-e97f83dc"]]),GS=t=>(o.pushScopeId("data-v-2f6cbb5e"),t=t(),o.popScopeId(),t),KS={class:"average-rr-line-container"},XS={class:"average-rr-line"},QS={key:0,class:"average-rr-line__progress"},JS=[GS(()=>o.createElementVNode("div",{class:"average-rr-line__dot"},null,-1))],eT={class:"coefficients"},tT={class:"coefficients__value -min"},nT={class:"coefficients__value -avg"},rT={class:"coefficients__value -max"},Ym=De({__name:"AverageRRLine",props:{min:{type:Number,default:0},avg:{type:Number,default:0},max:{type:Number,default:0}},setup(t){return(e,n)=>(o.openBlock(),o.createElementBlock("div",KS,[o.createElementVNode("div",XS,[t.avg&&t.max?(o.openBlock(),o.createElementBlock("div",QS,JS)):o.createCommentVNode("",!0)]),o.createElementVNode("div",eT,[o.createElementVNode("div",tT,o.toDisplayString(t.min),1),o.createElementVNode("div",nT,o.toDisplayString(o.unref(Nt)(t.avg)),1),o.createElementVNode("div",rT,o.toDisplayString(o.unref(Nt)(t.max)),1)])]))}},[["__scopeId","data-v-2f6cbb5e"]]);//! moment.js
|
|
36
|
+
<span> | ${J1(p[0])}, ${K6(p[0])}</span></div>`;f.firstChild;)f.firstChild.remove();f.appendChild(y)}const{offsetLeft:m,offsetTop:g}=u.canvas;f.style.opacity=String(1),f.style.left=m+h.caretX+"px",f.style.top=g+h.caretY+"px"},l=d=>{const{chart:u}=d,h=i("chart-line",u);u.canvas.addEventListener("mousemove",function(f){const m=u.canvas.getBoundingClientRect(),g=f.clientX-m.left;h.style.left=g+"px",h.style.display="flex"}),u.canvas.addEventListener("mouseout",function(){h.style.display="none"})},c=o.ref({responsive:!0,maintainAspectRatio:!1,animation:{duration:1500},scales:{x:{ticks:{callback:function(d){return J1(this.getLabelForValue(d)).slice(0,3)},color:"#8E8E93",font:{size:14,weight:400,family:"'SF Pro Display', sans-serif"},padding:15,align:"end"},grid:{display:!1},border:{color:"#EDEDED"}},y:{ticks:{callback:function(d){return e.ticksCallback(d)},color:"#8E8E93",font:{size:14,weight:400,family:"'SF Pro Display', sans-serif"},padding:15},grid:{color:"#EDEDED",drawTicks:!1},border:{display:!1,dash:[4,4],dashOffset:1}}},plugins:{tooltip:{enabled:!1,position:"nearest",external:a},legend:!1},elements:{line:{backgroundColor:d=>s(d),tension:.3,borderWidth:2,borderColor:e.borderColor,fill:"start",spanGaps:!0},point:{pointStyle:"circle",pointRadius:1,pointHoverRadius:8,pointBackgroundColor:e.borderColor,pointBorderWidth:0,pointHoverBorderWidth:3,pointBorderColor:"#fff",pointHoverBorderColor:"#fff",pointHitRadius:50}},onHover:l});return(d,u)=>(o.openBlock(),o.createElementBlock("div",NM,[o.createVNode(o.unref(Fm),{data:r.value,options:c.value},null,8,["data","options"])]))}},Im={__name:"SimpleLineChart",props:{data:{type:Array,required:!0},borderColor:{type:String,default:"#56B683"},gradient:{type:Object,default:{height:200,startColor:"rgba(86, 182, 131, 0.1)",endColor:"rgba(86, 182, 131, 0)"}}},setup(t){Bo.register(ul,fl,Ao,_r,gm);const e=t,n=a=>{const l=new Set,c=[],d=a.map(h=>(l.add(h.date),h.balance));return c.push({data:d}),{labels:Array.from(l),datasets:c}},r=o.computed(()=>n(e.data)),s=a=>{const c=a.chart.ctx.createLinearGradient(0,0,0,e.gradient.height);return c.addColorStop(0,e.gradient.startColor),c.addColorStop(1,e.gradient.endColor),c},i=o.ref({responsive:!0,maintainAspectRatio:!1,animation:{duration:1500},interaction:{mode:"index",intersect:!1},scales:{x:{display:!1},y:{display:!1}},plugins:{tooltip:!1,legend:!1},elements:{line:{backgroundColor:a=>s(a),tension:.3,borderWidth:1,borderColor:e.borderColor,fill:"start",spanGaps:!0},point:{pointStyle:!1}}});return(a,l)=>(o.openBlock(),o.createBlock(o.unref(Fm),{data:r.value,options:i.value},null,8,["data","options"]))}},BM=t=>(o.pushScopeId("data-v-aade6a2a"),t=t(),o.popScopeId(),t),AM={class:"account-balance-widget"},RM={class:"account-balance-widget__top"},FM={class:"account-balance-widget__title-wrapper"},IM=BM(()=>o.createElementVNode("div",{class:"account-balance-widget__title"},"Account Balance",-1)),zM=De({__name:"AccountBalanceWidget",props:{balanceChartData:{type:Array,default:[]},isShare:{type:Boolean,default:!1}},setup(t){const e=o.ref("week"),n=r=>r>=1e3||r<=-1e3?Nt(r/1e3,2)+"k":Nt(r,2);return(r,s)=>(o.openBlock(),o.createElementBlock("div",AM,[o.createElementVNode("div",RM,[o.createElementVNode("div",FM,[IM,o.createVNode(o.unref(fn),{alternative:""},{default:o.withCtx(()=>[o.createTextVNode("Reflects your deposit growth over the previous date. One of the most reliable indicator of profit for a trader. ")]),_:1})]),t.isShare?o.createCommentVNode("",!0):(o.openBlock(),o.createBlock(o.unref(Ys),{key:0,modelValue:e.value,"onUpdate:modelValue":s[0]||(s[0]=i=>e.value=i),onOnChange:s[1]||(s[1]=i=>r.$emit("onChange",e.value))},null,8,["modelValue"]))]),o.createVNode(o.unref(Eu),{data:t.balanceChartData,"data-type":"balanceChartData","ticks-callback":n},null,8,["data"])]))}},[["__scopeId","data-v-aade6a2a"]]),zm=t=>(o.pushScopeId("data-v-8cc75a8e"),t=t(),o.popScopeId(),t),HM={class:"balance-widget"},YM={class:"balance-part"},WM={class:"balance-part__top"},jM={class:"balance-part__title-wrapper"},ZM=zm(()=>o.createElementVNode("div",{class:"balance-part__title"},"Balance",-1)),UM={class:"balance-part__content"},qM={class:"balance-part__content__wrapper"},GM={class:"balance-part__content__count"},KM={class:"balance-part__content__bitcoin"},XM={key:0,class:"devider"},QM={key:1,class:"personal-target-part"},JM={class:"personal-target-part__top"},ev={class:"personal-target-part__title-wrapper"},tv=zm(()=>o.createElementVNode("div",{class:"personal-target-part__title"},"Personal target",-1)),nv={class:"personal-target-part__content"},rv={class:"personal-target-part__content__current"},sv={class:"personal-target-part__content__from"},iv=De({__name:"BalanceWidget",props:{BTC:{type:Number,default:0},USDT:{type:Number,default:0},delta:{type:Number,default:0},balanceChartData:{type:Array,default:[]},currentProfit:{type:Number,default:0},profit:{type:Number,default:0},drawdown:{type:Number,default:0},isPercentage:Boolean,isShare:{type:Boolean,default:!1}},emits:["switchModal"],setup(t,{emit:e}){const n=e,r=t,s=o.ref(!1),i=o.computed(()=>s.value?"****":r.BTC),a=o.computed(()=>s.value?"****":r.USDT),l=()=>{s.value=!s.value};return(c,d)=>(o.openBlock(),o.createElementBlock("div",HM,[o.createElementVNode("div",YM,[o.createElementVNode("div",WM,[o.createElementVNode("div",jM,[ZM,o.createVNode(o.unref(fn),{alternative:""},{default:o.withCtx(()=>[o.createTextVNode("Reflects your deposit size in $ and btc equivalent and growth over the previous date. One of the most reliable indicator of profit for a trader.")]),_:1})]),t.isShare?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",{key:0,class:"balance-part__visibility-switcher",onClick:l},[o.withDirectives(o.createVNode(o.unref(Ne),{icon:"eye"},null,512),[[o.vShow,s.value]]),o.withDirectives(o.createVNode(o.unref(Ne),{icon:"eye-slash"},null,512),[[o.vShow,!s.value]])]))]),o.createElementVNode("div",UM,[o.createElementVNode("div",qM,[o.createElementVNode("div",GM,o.toDisplayString(o.unref(ln)(a.value)),1),t.delta?(o.openBlock(),o.createBlock(o.unref(Il),{key:0,"is-hidden":s.value,percentage:"",delta:t.delta},null,8,["is-hidden","delta"])):o.createCommentVNode("",!0)]),o.createElementVNode("div",KM,"= "+o.toDisplayString(i.value)+" BTC",1)]),o.createVNode(o.unref(Im),{class:"balance-part__chart",data:t.balanceChartData},null,8,["data"])]),t.isShare?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",XM)),t.isShare?o.createCommentVNode("",!0):(o.openBlock(),o.createElementBlock("div",QM,[o.createElementVNode("div",JM,[o.createElementVNode("div",ev,[tv,o.createVNode(o.unref(fn),{alternative:""},{default:o.withCtx(()=>[o.createTextVNode(" This widget allows you to set a personal profit goal expressed in $ for a certain period ")]),_:1})]),o.createElementVNode("div",{class:"balance-part__modal-switcher",onClick:d[0]||(d[0]=u=>n("switchModal"))},[o.createVNode(o.unref(Ne),{icon:"settings"})])]),o.createElementVNode("div",nv,[o.createElementVNode("div",rv,o.toDisplayString(o.unref(ln)(t.currentProfit,{isPercentage:t.isPercentage,isFixed:!0})),1),o.createElementVNode("div",sv,"/ "+o.toDisplayString(o.unref(ln)(t.profit,{isPercentage:t.isPercentage,isFixed:!0})),1)]),o.createVNode(o.unref(Hp),{"current-profit":t.currentProfit,drawdown:t.drawdown,profit:t.profit,"is-percentage":t.isPercentage},null,8,["current-profit","drawdown","profit","is-percentage"])]))]))}},[["__scopeId","data-v-8cc75a8e"]]),yl=t=>(o.pushScopeId("data-v-5903c480"),t=t(),o.popScopeId(),t),ov={class:"calendar-widget"},av={class:"calendar-widget__calendar"},lv={class:"calendar-widget__top"},cv={class:"calendar-widget__title-wrapper"},dv=yl(()=>o.createElementVNode("div",{class:"calendar-widget__title"},"Calendar",-1)),uv={class:"stat-calendar"},hv={class:"stat-calendar__week-days"},fv={key:0,class:"stat-calendar__row-wrapper"},mv={class:"stat-calendar__row"},pv=["onClick"],gv=yl(()=>o.createElementVNode("div",{class:"calendar-widget__divider"},null,-1)),_v={key:0,class:"calendar-widget__day"},yv={class:"calendar-widget__day__title"},wv={class:"calendar-widget__day__content"},bv={class:"calendar-widget__point"},kv={class:"calendar-widget__point__title"},Cv=yl(()=>o.createElementVNode("div",{class:"calendar-widget__point__line"},null,-1)),xv={class:"calendar-widget__day__trades"},Mv={class:"calendar-widget__point"},vv={class:"calendar-widget__point__title"},Sv=yl(()=>o.createElementVNode("div",{class:"calendar-widget__point__line"},null,-1)),Tv=De({__name:"CalendarWidget",props:{rows:Array,dailyStatData:Object,currentDate:Date,calendarPointsTop:Array,calendarPointsBottom:Array,isCurrentDate:Function,isCurrentDay:Function},emits:["setNewDate","chooseMonth"],setup(t,{emit:e}){const n=["Su","Mo","Tu","We","Th","Fr","Sa"],r=o.ref(null),s=o.ref(null),i=e,a=l=>{r.value=l.year,s.value=l.month,i("chooseMonth",l)};return o.nextTick(()=>{const l=new Date;r.value=l.getFullYear(),s.value=l.getMonth()}),(l,c)=>{var d,u;return o.openBlock(),o.createElementBlock("div",ov,[o.createElementVNode("div",av,[o.createElementVNode("div",lv,[o.createElementVNode("div",cv,[dv,o.createVNode(o.unref(fn),{alternative:""},{default:o.withCtx(()=>[o.createTextVNode("Displays profitable days on green, losing days in red and trading days without significant profit or loss in blue. Also when you click on a specific date, more detailed information about trading day is displayed. ")]),_:1})]),t.currentDate?(o.openBlock(),o.createBlock(o.unref(zp),{key:0,"current-date":t.currentDate,onOnChange:a,year:r.value,"onUpdate:year":c[0]||(c[0]=h=>r.value=h),month:s.value,"onUpdate:month":c[1]||(c[1]=h=>s.value=h)},null,8,["current-date","year","month"])):o.createCommentVNode("",!0)]),o.createElementVNode("div",uv,[o.createElementVNode("div",hv,[(o.openBlock(),o.createElementBlock(o.Fragment,null,o.renderList(n,(h,f)=>o.createElementVNode("div",{class:o.normalizeClass(["stat-calendar__week-day",{"-current":t.isCurrentDay(f)}])},o.toDisplayString(h),3)),64))]),t.rows?(o.openBlock(),o.createElementBlock("div",fv,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.rows,h=>(o.openBlock(),o.createElementBlock("div",mv,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(h,f=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["stat-calendar__day",{"-empty":!f.date,"-current":t.isCurrentDate(f.date),"-positive":f.win,"-negative":f.win===!1}]),onClick:m=>i("setNewDate",f.date)},o.toDisplayString(f.date?f.date:""),11,pv))),256))]))),256))])):o.createCommentVNode("",!0)])]),gv,t.dailyStatData&&!t.dailyStatData.isNull?(o.openBlock(),o.createElementBlock("div",_v,[o.createElementVNode("div",yv,o.toDisplayString(t.currentDate.getDate()+" "+t.currentDate.toLocaleString("en-us",{month:"long"})),1),o.createElementVNode("div",wv,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.calendarPointsTop,h=>(o.openBlock(),o.createElementBlock("div",bv,[o.createElementVNode("div",kv,o.toDisplayString(h.title),1),Cv,o.createElementVNode("div",{class:o.normalizeClass(["calendar-widget__point__value",h.class?h.class:""])},o.toDisplayString(h.value),3)]))),256)),o.createVNode(o.unref(L0),{long:(d=t.dailyStatData)==null?void 0:d.long_count,short:(u=t.dailyStatData)==null?void 0:u.short_count},null,8,["long","short"]),o.createElementVNode("div",xv,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.calendarPointsBottom,h=>(o.openBlock(),o.createElementBlock("div",Mv,[o.createElementVNode("div",vv,o.toDisplayString(h.title),1),Sv,o.createVNode(o.unref(Il),{"is-positive":h.isPositive,"is-negative":h.isNegative,delta:h.value},null,8,["is-positive","is-negative","delta"])]))),256))])])])):(o.openBlock(),o.createBlock(o.unref(jd),{key:1,class:"-empty"}))])}}},[["__scopeId","data-v-5903c480"]]),$u=t=>(o.pushScopeId("data-v-a2323720"),t=t(),o.popScopeId(),t),Dv={class:"commission-widget"},Ov={class:"commission-widget__content"},Ev={class:"commission-widget__top"},$v={class:"commission-widget__title-wrapper"},Pv=$u(()=>o.createElementVNode("div",{class:"commission-widget__title"},"Commissions and Fees",-1)),Lv={class:"commission-widget__info"},Vv={class:"commission-widget__total-wrapper"},Nv=$u(()=>o.createElementVNode("div",{class:"commission-widget__total-wrapper__title"},"Total",-1)),Bv={class:"commission-widget__total-wrapper__total"},Av={class:"commission-widget__total-wrapper__value"},Rv={class:"commission-widget__points"},Fv={class:"commission-widget__point"},Iv={class:"commission-widget__point__title"},zv=$u(()=>o.createElementVNode("div",{class:"commission-widget__point__line"},null,-1)),Hv=De({__name:"CommissionsFeesWidget",props:{commission:Number,commissionPoints:Array},emits:["onChange"],setup(t,{emit:e}){const n=o.ref("week"),r=e;return(s,i)=>(o.openBlock(),o.createElementBlock("div",Dv,[o.createElementVNode("div",Ov,[o.createElementVNode("div",Ev,[o.createElementVNode("div",$v,[Pv,o.createVNode(o.unref(fn),{alternative:""},{default:o.withCtx(()=>[o.createTextVNode("The amount of total commissions and fees for the selected previous period including the current date. This widget also shows commission to profit ratio in $/% and average amount of fees per trade. ")]),_:1})]),o.createVNode(o.unref(Ys),{modelValue:n.value,"onUpdate:modelValue":i[0]||(i[0]=a=>n.value=a),onOnChange:i[1]||(i[1]=a=>r("onChange",n.value))},null,8,["modelValue"])]),o.createElementVNode("div",Lv,[o.createElementVNode("div",Vv,[Nv,o.createElementVNode("div",Bv,[o.createElementVNode("div",Av," $"+o.toDisplayString(o.unref(Nt)(t.commission)),1)])]),o.createElementVNode("div",Rv,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.commissionPoints,(a,l)=>(o.openBlock(),o.createElementBlock("div",Fv,[o.createElementVNode("div",Iv,o.toDisplayString(a.title),1),zv,o.createElementVNode("div",{class:o.normalizeClass(["commission-widget__point__value",a.class?a.class:""])},o.toDisplayString(a.value),3)]))),256))])])])]))}},[["__scopeId","data-v-a2323720"]]),Yv=t=>(o.pushScopeId("data-v-db6b817e"),t=t(),o.popScopeId(),t),Wv={class:"performance-widget"},jv={class:"performance-widget__top"},Zv={class:"performance-widget__title-wrapper"},Uv=Yv(()=>o.createElementVNode("div",{class:"performance-widget__title"},"Performance (cumulative)",-1)),qv=De({__name:"PerformanceWidget",props:{performanceChartData:{type:Array,default:[]},isShare:{type:Boolean,default:!1}},setup(t){const e=o.ref("week"),n=r=>Nt(r,2)+"%";return(r,s)=>(o.openBlock(),o.createElementBlock("div",Wv,[o.createElementVNode("div",jv,[o.createElementVNode("div",Zv,[Uv,o.createVNode(o.unref(fn),{alternative:""},{default:o.withCtx(()=>[o.createTextVNode("The amount of profit for the selected previous period including the current date. This widget shows the growth or loss of the deposit in %. The widget is available as a line graph. ")]),_:1})]),t.isShare?o.createCommentVNode("",!0):(o.openBlock(),o.createBlock(o.unref(Ys),{key:0,modelValue:e.value,"onUpdate:modelValue":s[0]||(s[0]=i=>e.value=i),onOnChange:s[1]||(s[1]=i=>r.$emit("onChange",e.value))},null,8,["modelValue"]))]),o.createVNode(o.unref(Eu),{data:t.performanceChartData,"data-type":"performanceChartData","ticks-callback":n},null,8,["data"])]))}},[["__scopeId","data-v-db6b817e"]]),Pu=t=>(o.pushScopeId("data-v-20e94928"),t=t(),o.popScopeId(),t),Gv={class:"return-widget"},Kv={class:"return-widget__content"},Xv={class:"return-widget__top"},Qv={class:"return-widget__title-wrapper"},Jv=Pu(()=>o.createElementVNode("div",{class:"return-widget__title"},"Return",-1)),eS={class:"return-widget__info"},tS={class:"return-widget__total-wrapper"},nS=Pu(()=>o.createElementVNode("div",{class:"return-widget__total-wrapper__title"},"Total",-1)),rS={class:"return-widget__total-wrapper__total"},sS={class:"return-widget__points"},iS={class:"return-widget__point"},oS={class:"return-widget__point__title"},aS=Pu(()=>o.createElementVNode("div",{class:"return-widget__point__line"},null,-1)),lS=["innerHTML"],cS=De({__name:"ReturnWidget",props:{returnData:Object,isShare:{type:Boolean,default:!1}},emits:["onChange"],setup(t,{emit:e}){const n=o.ref("week"),r=e,s=t,i=o.computed(()=>s.returnData?s.returnData.profit_factor:0),a=o.computed(()=>s.returnData?s.returnData.return_period:0),l=o.computed(()=>[{title:"Average return per trade",value:c.value||0,options:{isPlus:!0,isFixed:!0},class:c.value>=0?"-win":"-loss"},{title:"Daily return",value:d.value||0,options:{isPlus:!0,isFixed:!0},class:d.value>=0?"-win":"-loss"},{title:"Return on winners",value:u.value||0},{title:"Return on losers",value:h.value||0}]),c=o.computed(()=>s.returnData&&s.returnData.avarage_total_return),d=o.computed(()=>s.returnData&&s.returnData.daily),u=o.computed(()=>s.returnData&&s.returnData.win),h=o.computed(()=>s.returnData&&s.returnData.lose),f=o.computed(()=>s.returnData&&s.returnData.period_balance_change_rate),m=o.computed(()=>a.value>0),g=o.computed(()=>a.value<0),p=o.computed(()=>i.value>0?"-positive":"-negative"),_=o.computed(()=>i.value>0?`Your profit factor is ${Nt(i.value,2)}. <br /> You earn ${ln(i.value)} on every $1 loss.`:`Your profit factor is ${Nt(i.value,2)}. <br/> You loss ${ln(Math.abs(i.value))} on every $1 earn. `);return(y,C)=>(o.openBlock(),o.createElementBlock("div",Gv,[o.createElementVNode("div",Kv,[o.createElementVNode("div",Xv,[o.createElementVNode("div",Qv,[Jv,o.createVNode(o.unref(fn),{alternative:""},{default:o.withCtx(()=>[o.createTextVNode("The amount of profit in $ and % for the selected previous period including the current date. This widget also shows the amount of profit and loss separately. ")]),_:1})]),t.isShare?o.createCommentVNode("",!0):(o.openBlock(),o.createBlock(o.unref(Ys),{key:0,modelValue:n.value,"onUpdate:modelValue":C[0]||(C[0]=k=>n.value=k),onOnChange:C[1]||(C[1]=k=>r("onChange",n.value))},null,8,["modelValue"]))]),o.createElementVNode("div",eS,[o.createElementVNode("div",tS,[nS,o.createElementVNode("div",rS,[o.createElementVNode("div",{class:o.normalizeClass(["return-widget__total-wrapper__value",{"-positive":m.value,"-negative":g.value}])},o.toDisplayString(o.unref(ln)(a.value,{isPlus:!0,isFixed:!0})),3),f.value?(o.openBlock(),o.createBlock(o.unref(Il),{key:0,percentage:"",delta:f.value},null,8,["delta"])):o.createCommentVNode("",!0)])]),o.createElementVNode("div",sS,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(l.value,k=>(o.openBlock(),o.createElementBlock("div",iS,[o.createElementVNode("div",oS,o.toDisplayString(k.title),1),aS,o.createElementVNode("div",{class:o.normalizeClass(["return-widget__point__value",k.class?k.class:""])},o.toDisplayString(o.unref(ln)(k.value,k.options)),3)]))),256))])])]),i.value?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(["return-widget__profit",p.value])},[o.createVNode(o.unref(Ne),{icon:"tip",class:"return-widget__profit__icon"}),o.createElementVNode("div",{class:"return-widget__profit__text",innerHTML:_.value},null,8,lS)],2)):o.createCommentVNode("",!0)]))}},[["__scopeId","data-v-20e94928"]]),Hm=t=>(o.pushScopeId("data-v-60161694"),t=t(),o.popScopeId(),t),dS={class:"top-positions-widget"},uS={class:"top-positions-widget__top"},hS={class:"top-positions-widget__title-wrapper"},fS=Hm(()=>o.createElementVNode("div",{class:"top-positions-widget__title"},"Top-3 Positions",-1)),mS={key:0,class:"top-positions-widget__returns"},pS={class:"top-positions-widget__return"},gS={class:"top-positions-widget__return__left"},_S=Hm(()=>o.createElementVNode("div",{class:"top-positions-widget__return__line"},null,-1)),yS={class:"top-positions-widget__return__pair"},wS={class:"top-positions-widget__return__right"},bS={class:"top-positions-widget__return__pnl"},kS=De({__name:"TopPositionsWidget",props:{topPositions:{type:Array,default:[]}},emits:["onChange"],setup(t,{emit:e}){const n=o.ref("week"),r=e;return(s,i)=>(o.openBlock(),o.createElementBlock("div",dS,[o.createElementVNode("div",uS,[o.createElementVNode("div",hS,[fS,o.createVNode(o.unref(fn),{alternative:""},{default:o.withCtx(()=>[o.createTextVNode("Displays 3 most profitable trades of the selected period. You can also see the trading pair and trade profit to balance ratio. ")]),_:1})]),o.createVNode(o.unref(Ys),{modelValue:n.value,"onUpdate:modelValue":i[0]||(i[0]=a=>n.value=a),onOnChange:i[1]||(i[1]=a=>r("onChange",n.value))},null,8,["modelValue"])]),t.topPositions&&t.topPositions.length?(o.openBlock(),o.createElementBlock("div",mS,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.topPositions,a=>(o.openBlock(),o.createElementBlock("div",pS,[o.createElementVNode("div",gS,[_S,o.createElementVNode("div",yS,o.toDisplayString(o.unref(X6)(a.pair)),1)]),o.createElementVNode("div",wS,[o.createElementVNode("div",bS,o.toDisplayString(o.unref(ln)(a.pnl,{isFixed:!0,isPlus:!0})),1),o.createElementVNode("div",{class:o.normalizeClass(["top-positions-widget__return__roi",a.roi<0?"-negative":"-positive"])},[o.createVNode(o.unref(Ne),{icon:"bxs_up-arrow"}),o.createElementVNode("span",null,o.toDisplayString(o.unref(ln)(a.roi,{isPercentage:!0,isFixed:!0})),1)],2)])]))),256))])):(o.openBlock(),o.createBlock(o.unref(jd),{key:1,title:"No more pair",subtitle:"No data available for the specified period",icon:"coins-add"}))]))}},[["__scopeId","data-v-60161694"]]),Lu=t=>(o.pushScopeId("data-v-7b67b5c8"),t=t(),o.popScopeId(),t),CS={class:"trade-widget"},xS={class:"trade-widget__content"},MS={class:"trade-widget__top"},vS={class:"trade-widget__title-wrapper"},SS=Lu(()=>o.createElementVNode("div",{class:"trade-widget__title"},"Trades Performance",-1)),TS={class:"trade-widget__info"},DS={class:"trade-widget__total-wrapper"},OS=Lu(()=>o.createElementVNode("div",{class:"trade-widget__total-wrapper__title"},"Total",-1)),ES={class:"trade-widget__total-wrapper__total"},$S={class:"trade-widget__total-wrapper__value"},PS={class:"trade-widget__points"},LS={class:"trade-widget__point"},VS={class:"trade-widget__point__title"},NS=Lu(()=>o.createElementVNode("div",{class:"trade-widget__point__line"},null,-1)),BS=De({__name:"TradePerformanceWidget",props:{totalTrades:Number,tradePoints:Array},emits:["onChange"],setup(t,{emit:e}){const n=o.ref("week"),r=e;return(s,i)=>(o.openBlock(),o.createElementBlock("div",CS,[o.createElementVNode("div",xS,[o.createElementVNode("div",MS,[o.createElementVNode("div",vS,[SS,o.createVNode(o.unref(fn),{alternative:""},{default:o.withCtx(()=>[o.createTextVNode("This widget displays number of total winning & trades. Also it indicates the average number of trades for selected period. ")]),_:1})]),o.createVNode(o.unref(Ys),{modelValue:n.value,"onUpdate:modelValue":i[0]||(i[0]=a=>n.value=a),onOnChange:i[1]||(i[1]=a=>r("onChange",n.value))},null,8,["modelValue"])]),o.createElementVNode("div",TS,[o.createElementVNode("div",DS,[OS,o.createElementVNode("div",ES,[o.createElementVNode("div",$S,o.toDisplayString(t.totalTrades),1)])]),o.createElementVNode("div",PS,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(t.tradePoints,a=>(o.openBlock(),o.createElementBlock("div",LS,[o.createElementVNode("div",VS,o.toDisplayString(a.title),1),NS,o.createElementVNode("div",{class:o.normalizeClass(["trade-widget__point__value",a.class?a.class:""])},o.toDisplayString(a.value),3)]))),256))])])])]))}},[["__scopeId","data-v-7b67b5c8"]]),Vu=t=>(o.pushScopeId("data-v-e97f83dc"),t=t(),o.popScopeId(),t),AS={class:"winrate-widget"},RS={class:"winrate-widget__winrate"},FS={class:"winrate-widget__title-wrapper"},IS=Vu(()=>o.createElementVNode("div",{class:"winrate-widget__title"},"Winrate",-1)),zS={class:"winrate-widget__chart"},HS={class:"winrate-widget__data"},YS={class:"winrate-widget__data_value"},WS=Vu(()=>o.createElementVNode("div",{class:"winrate-widget__data_title"},"Winrate",-1)),jS={class:"winrate-widget__average-rr"},ZS={class:"winrate-widget__title-wrapper"},US=Vu(()=>o.createElementVNode("div",{class:"winrate-widget__title"},"Average RR",-1)),qS=De({__name:"WinrateWidget",props:{winrate:{type:Number,default:0},minRR:{type:Number,default:0},averageRR:{type:Number,default:0},maxRR:{type:Number,default:0}},setup(t){return(e,n)=>(o.openBlock(),o.createElementBlock("div",AS,[o.createElementVNode("div",RS,[o.createElementVNode("div",FS,[IS,o.createVNode(o.unref(fn),{alternative:""},{default:o.withCtx(()=>[o.createTextVNode("This widget displays the percentage of successful trades and the average RR. ")]),_:1})]),o.createElementVNode("div",zS,[o.renderSlot(e.$slots,"roundSlider",{},void 0,!0),o.createElementVNode("div",HS,[o.createElementVNode("div",YS,o.toDisplayString(o.unref(Nt)(t.winrate,2))+"%",1),WS])])]),o.createElementVNode("div",jS,[o.createElementVNode("div",ZS,[US,o.createVNode(o.unref(fn),{alternative:""},{default:o.withCtx(()=>[o.createTextVNode("The risk/reward ratio - marks the prospective reward a trader can earn for every dollar they risk on a trade. ")]),_:1})]),o.createVNode(o.unref(Ym),{avg:t.averageRR,min:t.minRR,max:t.maxRR},null,8,["avg","min","max"])])]))}},[["__scopeId","data-v-e97f83dc"]]),GS=t=>(o.pushScopeId("data-v-2f6cbb5e"),t=t(),o.popScopeId(),t),KS={class:"average-rr-line-container"},XS={class:"average-rr-line"},QS={key:0,class:"average-rr-line__progress"},JS=[GS(()=>o.createElementVNode("div",{class:"average-rr-line__dot"},null,-1))],eT={class:"coefficients"},tT={class:"coefficients__value -min"},nT={class:"coefficients__value -avg"},rT={class:"coefficients__value -max"},Ym=De({__name:"AverageRRLine",props:{min:{type:Number,default:0},avg:{type:Number,default:0},max:{type:Number,default:0}},setup(t){return(e,n)=>(o.openBlock(),o.createElementBlock("div",KS,[o.createElementVNode("div",XS,[t.avg&&t.max?(o.openBlock(),o.createElementBlock("div",QS,JS)):o.createCommentVNode("",!0)]),o.createElementVNode("div",eT,[o.createElementVNode("div",tT,o.toDisplayString(t.min),1),o.createElementVNode("div",nT,o.toDisplayString(o.unref(Nt)(t.avg)),1),o.createElementVNode("div",rT,o.toDisplayString(o.unref(Nt)(t.max)),1)])]))}},[["__scopeId","data-v-2f6cbb5e"]]);//! moment.js
|
|
37
37
|
//! version : 2.30.1
|
|
38
38
|
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
|
|
39
39
|
//! license : MIT
|
|
@@ -42,7 +42,7 @@ var Wm;function re(){return Wm.apply(null,arguments)}function sT(t){Wm=t}functio
|
|
|
42
42
|
[`+i+"] ";for(a in arguments[0])Ee(arguments[0],a)&&(s+=a+": "+arguments[0][a]+", ");s=s.slice(0,-2)}else s=arguments[i];r.push(s)}Um(t+`
|
|
43
43
|
Arguments: `+Array.prototype.slice.call(r).join("")+`
|
|
44
44
|
`+new Error().stack),n=!1}return e.apply(this,arguments)},e)}var qm={};function Gm(t,e){re.deprecationHandler!=null&&re.deprecationHandler(t,e),qm[t]||(Um(e),qm[t]=!0)}re.suppressDeprecationWarnings=!1,re.deprecationHandler=null;function er(t){return typeof Function<"u"&&t instanceof Function||Object.prototype.toString.call(t)==="[object Function]"}function oT(t){var e,n;for(n in t)Ee(t,n)&&(e=t[n],er(e)?this[n]=e:this["_"+n]=e);this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function Iu(t,e){var n=es({},t),r;for(r in e)Ee(e,r)&&(Fs(t[r])&&Fs(e[r])?(n[r]={},es(n[r],t[r]),es(n[r],e[r])):e[r]!=null?n[r]=e[r]:delete n[r]);for(r in t)Ee(t,r)&&!Ee(e,r)&&Fs(t[r])&&(n[r]=es({},n[r]));return n}function zu(t){t!=null&&this.set(t)}var Hu;Object.keys?Hu=Object.keys:Hu=function(t){var e,n=[];for(e in t)Ee(t,e)&&n.push(e);return n};var aT={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function lT(t,e,n){var r=this._calendar[t]||this._calendar.sameElse;return er(r)?r.call(e,n):r}function tr(t,e,n){var r=""+Math.abs(t),s=e-r.length,i=t>=0;return(i?n?"+":"":"-")+Math.pow(10,Math.max(0,s)).toString().substr(1)+r}var Yu=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,bl=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Wu={},xi={};function oe(t,e,n,r){var s=r;typeof r=="string"&&(s=function(){return this[r]()}),t&&(xi[t]=s),e&&(xi[e[0]]=function(){return tr(s.apply(this,arguments),e[1],e[2])}),n&&(xi[n]=function(){return this.localeData().ordinal(s.apply(this,arguments),t)})}function cT(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function dT(t){var e=t.match(Yu),n,r;for(n=0,r=e.length;n<r;n++)xi[e[n]]?e[n]=xi[e[n]]:e[n]=cT(e[n]);return function(s){var i="",a;for(a=0;a<r;a++)i+=er(e[a])?e[a].call(s,t):e[a];return i}}function kl(t,e){return t.isValid()?(e=Km(e,t.localeData()),Wu[e]=Wu[e]||dT(e),Wu[e](t)):t.localeData().invalidDate()}function Km(t,e){var n=5;function r(s){return e.longDateFormat(s)||s}for(bl.lastIndex=0;n>=0&&bl.test(t);)t=t.replace(bl,r),bl.lastIndex=0,n-=1;return t}var uT={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function hT(t){var e=this._longDateFormat[t],n=this._longDateFormat[t.toUpperCase()];return e||!n?e:(this._longDateFormat[t]=n.match(Yu).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[t])}var fT="Invalid date";function mT(){return this._invalidDate}var pT="%d",gT=/\d{1,2}/;function _T(t){return this._ordinal.replace("%d",t)}var yT={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function wT(t,e,n,r){var s=this._relativeTime[n];return er(s)?s(t,e,n,r):s.replace(/%d/i,t)}function bT(t,e){var n=this._relativeTime[t>0?"future":"past"];return er(n)?n(e):n.replace(/%s/i,e)}var Xm={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function yn(t){return typeof t=="string"?Xm[t]||Xm[t.toLowerCase()]:void 0}function ju(t){var e={},n,r;for(r in t)Ee(t,r)&&(n=yn(r),n&&(e[n]=t[r]));return e}var kT={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function CT(t){var e=[],n;for(n in t)Ee(t,n)&&e.push({unit:n,priority:kT[n]});return e.sort(function(r,s){return r.priority-s.priority}),e}var Qm=/\d/,sn=/\d\d/,Jm=/\d{3}/,Zu=/\d{4}/,Cl=/[+-]?\d{6}/,Ue=/\d\d?/,ep=/\d\d\d\d?/,tp=/\d\d\d\d\d\d?/,xl=/\d{1,3}/,Uu=/\d{1,4}/,Ml=/[+-]?\d{1,6}/,Mi=/\d+/,vl=/[+-]?\d+/,xT=/Z|[+-]\d\d:?\d\d/gi,Sl=/Z|[+-]\d\d(?::?\d\d)?/gi,MT=/[+-]?\d+(\.\d{1,3})?/,Ho=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,vi=/^[1-9]\d?/,qu=/^([1-9]\d|\d)/,Tl;Tl={};function se(t,e,n){Tl[t]=er(e)?e:function(r,s){return r&&n?n:e}}function vT(t,e){return Ee(Tl,t)?Tl[t](e._strict,e._locale):new RegExp(ST(t))}function ST(t){return br(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,n,r,s,i){return n||r||s||i}))}function br(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function wn(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function ke(t){var e=+t,n=0;return e!==0&&isFinite(e)&&(n=wn(e)),n}var Gu={};function Ie(t,e){var n,r=e,s;for(typeof t=="string"&&(t=[t]),wr(e)&&(r=function(i,a){a[e]=ke(i)}),s=t.length,n=0;n<s;n++)Gu[t[n]]=r}function Yo(t,e){Ie(t,function(n,r,s,i){s._w=s._w||{},e(n,s._w,s,i)})}function TT(t,e,n){e!=null&&Ee(Gu,t)&&Gu[t](e,n._a,n,t)}function Dl(t){return t%4===0&&t%100!==0||t%400===0}var $t=0,kr=1,nr=2,bt=3,Ln=4,Cr=5,Is=6,DT=7,OT=8;oe("Y",0,0,function(){var t=this.year();return t<=9999?tr(t,4):"+"+t}),oe(0,["YY",2],0,function(){return this.year()%100}),oe(0,["YYYY",4],0,"year"),oe(0,["YYYYY",5],0,"year"),oe(0,["YYYYYY",6,!0],0,"year"),se("Y",vl),se("YY",Ue,sn),se("YYYY",Uu,Zu),se("YYYYY",Ml,Cl),se("YYYYYY",Ml,Cl),Ie(["YYYYY","YYYYYY"],$t),Ie("YYYY",function(t,e){e[$t]=t.length===2?re.parseTwoDigitYear(t):ke(t)}),Ie("YY",function(t,e){e[$t]=re.parseTwoDigitYear(t)}),Ie("Y",function(t,e){e[$t]=parseInt(t,10)});function Wo(t){return Dl(t)?366:365}re.parseTwoDigitYear=function(t){return ke(t)+(ke(t)>68?1900:2e3)};var np=Si("FullYear",!0);function ET(){return Dl(this.year())}function Si(t,e){return function(n){return n!=null?(rp(this,t,n),re.updateOffset(this,e),this):jo(this,t)}}function jo(t,e){if(!t.isValid())return NaN;var n=t._d,r=t._isUTC;switch(e){case"Milliseconds":return r?n.getUTCMilliseconds():n.getMilliseconds();case"Seconds":return r?n.getUTCSeconds():n.getSeconds();case"Minutes":return r?n.getUTCMinutes():n.getMinutes();case"Hours":return r?n.getUTCHours():n.getHours();case"Date":return r?n.getUTCDate():n.getDate();case"Day":return r?n.getUTCDay():n.getDay();case"Month":return r?n.getUTCMonth():n.getMonth();case"FullYear":return r?n.getUTCFullYear():n.getFullYear();default:return NaN}}function rp(t,e,n){var r,s,i,a,l;if(!(!t.isValid()||isNaN(n))){switch(r=t._d,s=t._isUTC,e){case"Milliseconds":return void(s?r.setUTCMilliseconds(n):r.setMilliseconds(n));case"Seconds":return void(s?r.setUTCSeconds(n):r.setSeconds(n));case"Minutes":return void(s?r.setUTCMinutes(n):r.setMinutes(n));case"Hours":return void(s?r.setUTCHours(n):r.setHours(n));case"Date":return void(s?r.setUTCDate(n):r.setDate(n));case"FullYear":break;default:return}i=n,a=t.month(),l=t.date(),l=l===29&&a===1&&!Dl(i)?28:l,s?r.setUTCFullYear(i,a,l):r.setFullYear(i,a,l)}}function $T(t){return t=yn(t),er(this[t])?this[t]():this}function PT(t,e){if(typeof t=="object"){t=ju(t);var n=CT(t),r,s=n.length;for(r=0;r<s;r++)this[n[r].unit](t[n[r].unit])}else if(t=yn(t),er(this[t]))return this[t](e);return this}function LT(t,e){return(t%e+e)%e}var pt;Array.prototype.indexOf?pt=Array.prototype.indexOf:pt=function(t){var e;for(e=0;e<this.length;++e)if(this[e]===t)return e;return-1};function Ku(t,e){if(isNaN(t)||isNaN(e))return NaN;var n=LT(e,12);return t+=(e-n)/12,n===1?Dl(t)?29:28:31-n%7%2}oe("M",["MM",2],"Mo",function(){return this.month()+1}),oe("MMM",0,0,function(t){return this.localeData().monthsShort(this,t)}),oe("MMMM",0,0,function(t){return this.localeData().months(this,t)}),se("M",Ue,vi),se("MM",Ue,sn),se("MMM",function(t,e){return e.monthsShortRegex(t)}),se("MMMM",function(t,e){return e.monthsRegex(t)}),Ie(["M","MM"],function(t,e){e[kr]=ke(t)-1}),Ie(["MMM","MMMM"],function(t,e,n,r){var s=n._locale.monthsParse(t,r,n._strict);s!=null?e[kr]=s:_e(n).invalidMonth=t});var VT="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),sp="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),ip=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,NT=Ho,BT=Ho;function AT(t,e){return t?$n(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||ip).test(e)?"format":"standalone"][t.month()]:$n(this._months)?this._months:this._months.standalone}function RT(t,e){return t?$n(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[ip.test(e)?"format":"standalone"][t.month()]:$n(this._monthsShort)?this._monthsShort:this._monthsShort.standalone}function FT(t,e,n){var r,s,i,a=t.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],r=0;r<12;++r)i=Jn([2e3,r]),this._shortMonthsParse[r]=this.monthsShort(i,"").toLocaleLowerCase(),this._longMonthsParse[r]=this.months(i,"").toLocaleLowerCase();return n?e==="MMM"?(s=pt.call(this._shortMonthsParse,a),s!==-1?s:null):(s=pt.call(this._longMonthsParse,a),s!==-1?s:null):e==="MMM"?(s=pt.call(this._shortMonthsParse,a),s!==-1?s:(s=pt.call(this._longMonthsParse,a),s!==-1?s:null)):(s=pt.call(this._longMonthsParse,a),s!==-1?s:(s=pt.call(this._shortMonthsParse,a),s!==-1?s:null))}function IT(t,e,n){var r,s,i;if(this._monthsParseExact)return FT.call(this,t,e,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),r=0;r<12;r++){if(s=Jn([2e3,r]),n&&!this._longMonthsParse[r]&&(this._longMonthsParse[r]=new RegExp("^"+this.months(s,"").replace(".","")+"$","i"),this._shortMonthsParse[r]=new RegExp("^"+this.monthsShort(s,"").replace(".","")+"$","i")),!n&&!this._monthsParse[r]&&(i="^"+this.months(s,"")+"|^"+this.monthsShort(s,""),this._monthsParse[r]=new RegExp(i.replace(".",""),"i")),n&&e==="MMMM"&&this._longMonthsParse[r].test(t))return r;if(n&&e==="MMM"&&this._shortMonthsParse[r].test(t))return r;if(!n&&this._monthsParse[r].test(t))return r}}function op(t,e){if(!t.isValid())return t;if(typeof e=="string"){if(/^\d+$/.test(e))e=ke(e);else if(e=t.localeData().monthsParse(e),!wr(e))return t}var n=e,r=t.date();return r=r<29?r:Math.min(r,Ku(t.year(),n)),t._isUTC?t._d.setUTCMonth(n,r):t._d.setMonth(n,r),t}function ap(t){return t!=null?(op(this,t),re.updateOffset(this,!0),this):jo(this,"Month")}function zT(){return Ku(this.year(),this.month())}function HT(t){return this._monthsParseExact?(Ee(this,"_monthsRegex")||lp.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(Ee(this,"_monthsShortRegex")||(this._monthsShortRegex=NT),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)}function YT(t){return this._monthsParseExact?(Ee(this,"_monthsRegex")||lp.call(this),t?this._monthsStrictRegex:this._monthsRegex):(Ee(this,"_monthsRegex")||(this._monthsRegex=BT),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)}function lp(){function t(c,d){return d.length-c.length}var e=[],n=[],r=[],s,i,a,l;for(s=0;s<12;s++)i=Jn([2e3,s]),a=br(this.monthsShort(i,"")),l=br(this.months(i,"")),e.push(a),n.push(l),r.push(l),r.push(a);e.sort(t),n.sort(t),r.sort(t),this._monthsRegex=new RegExp("^("+r.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+e.join("|")+")","i")}function WT(t,e,n,r,s,i,a){var l;return t<100&&t>=0?(l=new Date(t+400,e,n,r,s,i,a),isFinite(l.getFullYear())&&l.setFullYear(t)):l=new Date(t,e,n,r,s,i,a),l}function Zo(t){var e,n;return t<100&&t>=0?(n=Array.prototype.slice.call(arguments),n[0]=t+400,e=new Date(Date.UTC.apply(null,n)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t)):e=new Date(Date.UTC.apply(null,arguments)),e}function Ol(t,e,n){var r=7+e-n,s=(7+Zo(t,0,r).getUTCDay()-e)%7;return-s+r-1}function cp(t,e,n,r,s){var i=(7+n-r)%7,a=Ol(t,r,s),l=1+7*(e-1)+i+a,c,d;return l<=0?(c=t-1,d=Wo(c)+l):l>Wo(t)?(c=t+1,d=l-Wo(t)):(c=t,d=l),{year:c,dayOfYear:d}}function Uo(t,e,n){var r=Ol(t.year(),e,n),s=Math.floor((t.dayOfYear()-r-1)/7)+1,i,a;return s<1?(a=t.year()-1,i=s+xr(a,e,n)):s>xr(t.year(),e,n)?(i=s-xr(t.year(),e,n),a=t.year()+1):(a=t.year(),i=s),{week:i,year:a}}function xr(t,e,n){var r=Ol(t,e,n),s=Ol(t+1,e,n);return(Wo(t)-r+s)/7}oe("w",["ww",2],"wo","week"),oe("W",["WW",2],"Wo","isoWeek"),se("w",Ue,vi),se("ww",Ue,sn),se("W",Ue,vi),se("WW",Ue,sn),Yo(["w","ww","W","WW"],function(t,e,n,r){e[r.substr(0,1)]=ke(t)});function jT(t){return Uo(t,this._week.dow,this._week.doy).week}var ZT={dow:0,doy:6};function UT(){return this._week.dow}function qT(){return this._week.doy}function GT(t){var e=this.localeData().week(this);return t==null?e:this.add((t-e)*7,"d")}function KT(t){var e=Uo(this,1,4).week;return t==null?e:this.add((t-e)*7,"d")}oe("d",0,"do","day"),oe("dd",0,0,function(t){return this.localeData().weekdaysMin(this,t)}),oe("ddd",0,0,function(t){return this.localeData().weekdaysShort(this,t)}),oe("dddd",0,0,function(t){return this.localeData().weekdays(this,t)}),oe("e",0,0,"weekday"),oe("E",0,0,"isoWeekday"),se("d",Ue),se("e",Ue),se("E",Ue),se("dd",function(t,e){return e.weekdaysMinRegex(t)}),se("ddd",function(t,e){return e.weekdaysShortRegex(t)}),se("dddd",function(t,e){return e.weekdaysRegex(t)}),Yo(["dd","ddd","dddd"],function(t,e,n,r){var s=n._locale.weekdaysParse(t,r,n._strict);s!=null?e.d=s:_e(n).invalidWeekday=t}),Yo(["d","e","E"],function(t,e,n,r){e[r]=ke(t)});function XT(t,e){return typeof t!="string"?t:isNaN(t)?(t=e.weekdaysParse(t),typeof t=="number"?t:null):parseInt(t,10)}function QT(t,e){return typeof t=="string"?e.weekdaysParse(t)%7||7:isNaN(t)?null:t}function Xu(t,e){return t.slice(e,7).concat(t.slice(0,e))}var JT="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),dp="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),eD="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),tD=Ho,nD=Ho,rD=Ho;function sD(t,e){var n=$n(this._weekdays)?this._weekdays:this._weekdays[t&&t!==!0&&this._weekdays.isFormat.test(e)?"format":"standalone"];return t===!0?Xu(n,this._week.dow):t?n[t.day()]:n}function iD(t){return t===!0?Xu(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort}function oD(t){return t===!0?Xu(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin}function aD(t,e,n){var r,s,i,a=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)i=Jn([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(i,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(i,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(i,"").toLocaleLowerCase();return n?e==="dddd"?(s=pt.call(this._weekdaysParse,a),s!==-1?s:null):e==="ddd"?(s=pt.call(this._shortWeekdaysParse,a),s!==-1?s:null):(s=pt.call(this._minWeekdaysParse,a),s!==-1?s:null):e==="dddd"?(s=pt.call(this._weekdaysParse,a),s!==-1||(s=pt.call(this._shortWeekdaysParse,a),s!==-1)?s:(s=pt.call(this._minWeekdaysParse,a),s!==-1?s:null)):e==="ddd"?(s=pt.call(this._shortWeekdaysParse,a),s!==-1||(s=pt.call(this._weekdaysParse,a),s!==-1)?s:(s=pt.call(this._minWeekdaysParse,a),s!==-1?s:null)):(s=pt.call(this._minWeekdaysParse,a),s!==-1||(s=pt.call(this._weekdaysParse,a),s!==-1)?s:(s=pt.call(this._shortWeekdaysParse,a),s!==-1?s:null))}function lD(t,e,n){var r,s,i;if(this._weekdaysParseExact)return aD.call(this,t,e,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(s=Jn([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(s,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(s,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(s,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(i="^"+this.weekdays(s,"")+"|^"+this.weekdaysShort(s,"")+"|^"+this.weekdaysMin(s,""),this._weekdaysParse[r]=new RegExp(i.replace(".",""),"i")),n&&e==="dddd"&&this._fullWeekdaysParse[r].test(t))return r;if(n&&e==="ddd"&&this._shortWeekdaysParse[r].test(t))return r;if(n&&e==="dd"&&this._minWeekdaysParse[r].test(t))return r;if(!n&&this._weekdaysParse[r].test(t))return r}}function cD(t){if(!this.isValid())return t!=null?this:NaN;var e=jo(this,"Day");return t!=null?(t=XT(t,this.localeData()),this.add(t-e,"d")):e}function dD(t){if(!this.isValid())return t!=null?this:NaN;var e=(this.day()+7-this.localeData()._week.dow)%7;return t==null?e:this.add(t-e,"d")}function uD(t){if(!this.isValid())return t!=null?this:NaN;if(t!=null){var e=QT(t,this.localeData());return this.day(this.day()%7?e:e-7)}else return this.day()||7}function hD(t){return this._weekdaysParseExact?(Ee(this,"_weekdaysRegex")||Qu.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(Ee(this,"_weekdaysRegex")||(this._weekdaysRegex=tD),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)}function fD(t){return this._weekdaysParseExact?(Ee(this,"_weekdaysRegex")||Qu.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(Ee(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=nD),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function mD(t){return this._weekdaysParseExact?(Ee(this,"_weekdaysRegex")||Qu.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(Ee(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=rD),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Qu(){function t(u,h){return h.length-u.length}var e=[],n=[],r=[],s=[],i,a,l,c,d;for(i=0;i<7;i++)a=Jn([2e3,1]).day(i),l=br(this.weekdaysMin(a,"")),c=br(this.weekdaysShort(a,"")),d=br(this.weekdays(a,"")),e.push(l),n.push(c),r.push(d),s.push(l),s.push(c),s.push(d);e.sort(t),n.sort(t),r.sort(t),s.sort(t),this._weekdaysRegex=new RegExp("^("+s.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+e.join("|")+")","i")}function Ju(){return this.hours()%12||12}function pD(){return this.hours()||24}oe("H",["HH",2],0,"hour"),oe("h",["hh",2],0,Ju),oe("k",["kk",2],0,pD),oe("hmm",0,0,function(){return""+Ju.apply(this)+tr(this.minutes(),2)}),oe("hmmss",0,0,function(){return""+Ju.apply(this)+tr(this.minutes(),2)+tr(this.seconds(),2)}),oe("Hmm",0,0,function(){return""+this.hours()+tr(this.minutes(),2)}),oe("Hmmss",0,0,function(){return""+this.hours()+tr(this.minutes(),2)+tr(this.seconds(),2)});function up(t,e){oe(t,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)})}up("a",!0),up("A",!1);function hp(t,e){return e._meridiemParse}se("a",hp),se("A",hp),se("H",Ue,qu),se("h",Ue,vi),se("k",Ue,vi),se("HH",Ue,sn),se("hh",Ue,sn),se("kk",Ue,sn),se("hmm",ep),se("hmmss",tp),se("Hmm",ep),se("Hmmss",tp),Ie(["H","HH"],bt),Ie(["k","kk"],function(t,e,n){var r=ke(t);e[bt]=r===24?0:r}),Ie(["a","A"],function(t,e,n){n._isPm=n._locale.isPM(t),n._meridiem=t}),Ie(["h","hh"],function(t,e,n){e[bt]=ke(t),_e(n).bigHour=!0}),Ie("hmm",function(t,e,n){var r=t.length-2;e[bt]=ke(t.substr(0,r)),e[Ln]=ke(t.substr(r)),_e(n).bigHour=!0}),Ie("hmmss",function(t,e,n){var r=t.length-4,s=t.length-2;e[bt]=ke(t.substr(0,r)),e[Ln]=ke(t.substr(r,2)),e[Cr]=ke(t.substr(s)),_e(n).bigHour=!0}),Ie("Hmm",function(t,e,n){var r=t.length-2;e[bt]=ke(t.substr(0,r)),e[Ln]=ke(t.substr(r))}),Ie("Hmmss",function(t,e,n){var r=t.length-4,s=t.length-2;e[bt]=ke(t.substr(0,r)),e[Ln]=ke(t.substr(r,2)),e[Cr]=ke(t.substr(s))});function gD(t){return(t+"").toLowerCase().charAt(0)==="p"}var _D=/[ap]\.?m?\.?/i,yD=Si("Hours",!0);function wD(t,e,n){return t>11?n?"pm":"PM":n?"am":"AM"}var fp={calendar:aT,longDateFormat:uT,invalidDate:fT,ordinal:pT,dayOfMonthOrdinalParse:gT,relativeTime:yT,months:VT,monthsShort:sp,week:ZT,weekdays:JT,weekdaysMin:eD,weekdaysShort:dp,meridiemParse:_D},Ke={},qo={},Go;function bD(t,e){var n,r=Math.min(t.length,e.length);for(n=0;n<r;n+=1)if(t[n]!==e[n])return n;return r}function mp(t){return t&&t.toLowerCase().replace("_","-")}function kD(t){for(var e=0,n,r,s,i;e<t.length;){for(i=mp(t[e]).split("-"),n=i.length,r=mp(t[e+1]),r=r?r.split("-"):null;n>0;){if(s=El(i.slice(0,n).join("-")),s)return s;if(r&&r.length>=n&&bD(i,r)>=n-1)break;n--}e++}return Go}function CD(t){return!!(t&&t.match("^[^/\\\\]*$"))}function El(t){var e=null,n;if(Ke[t]===void 0&&typeof module<"u"&&module&&module.exports&&CD(t))try{e=Go._abbr,n=require,n("./locale/"+t),ts(e)}catch{Ke[t]=null}return Ke[t]}function ts(t,e){var n;return t&&(Wt(e)?n=Mr(t):n=e1(t,e),n?Go=n:typeof console<"u"&&console.warn&&console.warn("Locale "+t+" not found. Did you forget to load it?")),Go._abbr}function e1(t,e){if(e!==null){var n,r=fp;if(e.abbr=t,Ke[t]!=null)Gm("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=Ke[t]._config;else if(e.parentLocale!=null)if(Ke[e.parentLocale]!=null)r=Ke[e.parentLocale]._config;else if(n=El(e.parentLocale),n!=null)r=n._config;else return qo[e.parentLocale]||(qo[e.parentLocale]=[]),qo[e.parentLocale].push({name:t,config:e}),null;return Ke[t]=new zu(Iu(r,e)),qo[t]&&qo[t].forEach(function(s){e1(s.name,s.config)}),ts(t),Ke[t]}else return delete Ke[t],null}function xD(t,e){if(e!=null){var n,r,s=fp;Ke[t]!=null&&Ke[t].parentLocale!=null?Ke[t].set(Iu(Ke[t]._config,e)):(r=El(t),r!=null&&(s=r._config),e=Iu(s,e),r==null&&(e.abbr=t),n=new zu(e),n.parentLocale=Ke[t],Ke[t]=n),ts(t)}else Ke[t]!=null&&(Ke[t].parentLocale!=null?(Ke[t]=Ke[t].parentLocale,t===ts()&&ts(t)):Ke[t]!=null&&delete Ke[t]);return Ke[t]}function Mr(t){var e;if(t&&t._locale&&t._locale._abbr&&(t=t._locale._abbr),!t)return Go;if(!$n(t)){if(e=El(t),e)return e;t=[t]}return kD(t)}function MD(){return Hu(Ke)}function t1(t){var e,n=t._a;return n&&_e(t).overflow===-2&&(e=n[kr]<0||n[kr]>11?kr:n[nr]<1||n[nr]>Ku(n[$t],n[kr])?nr:n[bt]<0||n[bt]>24||n[bt]===24&&(n[Ln]!==0||n[Cr]!==0||n[Is]!==0)?bt:n[Ln]<0||n[Ln]>59?Ln:n[Cr]<0||n[Cr]>59?Cr:n[Is]<0||n[Is]>999?Is:-1,_e(t)._overflowDayOfYear&&(e<$t||e>nr)&&(e=nr),_e(t)._overflowWeeks&&e===-1&&(e=DT),_e(t)._overflowWeekday&&e===-1&&(e=OT),_e(t).overflow=e),t}var vD=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,SD=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,TD=/Z|[+-]\d\d(?::?\d\d)?/,$l=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],n1=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],DD=/^\/?Date\((-?\d+)/i,OD=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,ED={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function pp(t){var e,n,r=t._i,s=vD.exec(r)||SD.exec(r),i,a,l,c,d=$l.length,u=n1.length;if(s){for(_e(t).iso=!0,e=0,n=d;e<n;e++)if($l[e][1].exec(s[1])){a=$l[e][0],i=$l[e][2]!==!1;break}if(a==null){t._isValid=!1;return}if(s[3]){for(e=0,n=u;e<n;e++)if(n1[e][1].exec(s[3])){l=(s[2]||" ")+n1[e][0];break}if(l==null){t._isValid=!1;return}}if(!i&&l!=null){t._isValid=!1;return}if(s[4])if(TD.exec(s[4]))c="Z";else{t._isValid=!1;return}t._f=a+(l||"")+(c||""),s1(t)}else t._isValid=!1}function $D(t,e,n,r,s,i){var a=[PD(t),sp.indexOf(e),parseInt(n,10),parseInt(r,10),parseInt(s,10)];return i&&a.push(parseInt(i,10)),a}function PD(t){var e=parseInt(t,10);return e<=49?2e3+e:e<=999?1900+e:e}function LD(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,"")}function VD(t,e,n){if(t){var r=dp.indexOf(t),s=new Date(e[0],e[1],e[2]).getDay();if(r!==s)return _e(n).weekdayMismatch=!0,n._isValid=!1,!1}return!0}function ND(t,e,n){if(t)return ED[t];if(e)return 0;var r=parseInt(n,10),s=r%100,i=(r-s)/100;return i*60+s}function gp(t){var e=OD.exec(LD(t._i)),n;if(e){if(n=$D(e[4],e[3],e[2],e[5],e[6],e[7]),!VD(e[1],n,t))return;t._a=n,t._tzm=ND(e[8],e[9],e[10]),t._d=Zo.apply(null,t._a),t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),_e(t).rfc2822=!0}else t._isValid=!1}function BD(t){var e=DD.exec(t._i);if(e!==null){t._d=new Date(+e[1]);return}if(pp(t),t._isValid===!1)delete t._isValid;else return;if(gp(t),t._isValid===!1)delete t._isValid;else return;t._strict?t._isValid=!1:re.createFromInputFallback(t)}re.createFromInputFallback=_n("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(t){t._d=new Date(t._i+(t._useUTC?" UTC":""))});function Ti(t,e,n){return t??e??n}function AD(t){var e=new Date(re.now());return t._useUTC?[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()]:[e.getFullYear(),e.getMonth(),e.getDate()]}function r1(t){var e,n,r=[],s,i,a;if(!t._d){for(s=AD(t),t._w&&t._a[nr]==null&&t._a[kr]==null&&RD(t),t._dayOfYear!=null&&(a=Ti(t._a[$t],s[$t]),(t._dayOfYear>Wo(a)||t._dayOfYear===0)&&(_e(t)._overflowDayOfYear=!0),n=Zo(a,0,t._dayOfYear),t._a[kr]=n.getUTCMonth(),t._a[nr]=n.getUTCDate()),e=0;e<3&&t._a[e]==null;++e)t._a[e]=r[e]=s[e];for(;e<7;e++)t._a[e]=r[e]=t._a[e]==null?e===2?1:0:t._a[e];t._a[bt]===24&&t._a[Ln]===0&&t._a[Cr]===0&&t._a[Is]===0&&(t._nextDay=!0,t._a[bt]=0),t._d=(t._useUTC?Zo:WT).apply(null,r),i=t._useUTC?t._d.getUTCDay():t._d.getDay(),t._tzm!=null&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[bt]=24),t._w&&typeof t._w.d<"u"&&t._w.d!==i&&(_e(t).weekdayMismatch=!0)}}function RD(t){var e,n,r,s,i,a,l,c,d;e=t._w,e.GG!=null||e.W!=null||e.E!=null?(i=1,a=4,n=Ti(e.GG,t._a[$t],Uo(qe(),1,4).year),r=Ti(e.W,1),s=Ti(e.E,1),(s<1||s>7)&&(c=!0)):(i=t._locale._week.dow,a=t._locale._week.doy,d=Uo(qe(),i,a),n=Ti(e.gg,t._a[$t],d.year),r=Ti(e.w,d.week),e.d!=null?(s=e.d,(s<0||s>6)&&(c=!0)):e.e!=null?(s=e.e+i,(e.e<0||e.e>6)&&(c=!0)):s=i),r<1||r>xr(n,i,a)?_e(t)._overflowWeeks=!0:c!=null?_e(t)._overflowWeekday=!0:(l=cp(n,r,s,i,a),t._a[$t]=l.year,t._dayOfYear=l.dayOfYear)}re.ISO_8601=function(){},re.RFC_2822=function(){};function s1(t){if(t._f===re.ISO_8601){pp(t);return}if(t._f===re.RFC_2822){gp(t);return}t._a=[],_e(t).empty=!0;var e=""+t._i,n,r,s,i,a,l=e.length,c=0,d,u;for(s=Km(t._f,t._locale).match(Yu)||[],u=s.length,n=0;n<u;n++)i=s[n],r=(e.match(vT(i,t))||[])[0],r&&(a=e.substr(0,e.indexOf(r)),a.length>0&&_e(t).unusedInput.push(a),e=e.slice(e.indexOf(r)+r.length),c+=r.length),xi[i]?(r?_e(t).empty=!1:_e(t).unusedTokens.push(i),TT(i,r,t)):t._strict&&!r&&_e(t).unusedTokens.push(i);_e(t).charsLeftOver=l-c,e.length>0&&_e(t).unusedInput.push(e),t._a[bt]<=12&&_e(t).bigHour===!0&&t._a[bt]>0&&(_e(t).bigHour=void 0),_e(t).parsedDateParts=t._a.slice(0),_e(t).meridiem=t._meridiem,t._a[bt]=FD(t._locale,t._a[bt],t._meridiem),d=_e(t).era,d!==null&&(t._a[$t]=t._locale.erasConvertYear(d,t._a[$t])),r1(t),t1(t)}function FD(t,e,n){var r;return n==null?e:t.meridiemHour!=null?t.meridiemHour(e,n):(t.isPM!=null&&(r=t.isPM(n),r&&e<12&&(e+=12),!r&&e===12&&(e=0)),e)}function ID(t){var e,n,r,s,i,a,l=!1,c=t._f.length;if(c===0){_e(t).invalidFormat=!0,t._d=new Date(NaN);return}for(s=0;s<c;s++)i=0,a=!1,e=Fu({},t),t._useUTC!=null&&(e._useUTC=t._useUTC),e._f=t._f[s],s1(e),Au(e)&&(a=!0),i+=_e(e).charsLeftOver,i+=_e(e).unusedTokens.length*10,_e(e).score=i,l?i<r&&(r=i,n=e):(r==null||i<r||a)&&(r=i,n=e,a&&(l=!0));es(t,n||e)}function zD(t){if(!t._d){var e=ju(t._i),n=e.day===void 0?e.date:e.day;t._a=jm([e.year,e.month,n,e.hour,e.minute,e.second,e.millisecond],function(r){return r&&parseInt(r,10)}),r1(t)}}function HD(t){var e=new zo(t1(_p(t)));return e._nextDay&&(e.add(1,"d"),e._nextDay=void 0),e}function _p(t){var e=t._i,n=t._f;return t._locale=t._locale||Mr(t._l),e===null||n===void 0&&e===""?wl({nullInput:!0}):(typeof e=="string"&&(t._i=e=t._locale.preparse(e)),Pn(e)?new zo(t1(e)):(Io(e)?t._d=e:$n(n)?ID(t):n?s1(t):YD(t),Au(t)||(t._d=null),t))}function YD(t){var e=t._i;Wt(e)?t._d=new Date(re.now()):Io(e)?t._d=new Date(e.valueOf()):typeof e=="string"?BD(t):$n(e)?(t._a=jm(e.slice(0),function(n){return parseInt(n,10)}),r1(t)):Fs(e)?zD(t):wr(e)?t._d=new Date(e):re.createFromInputFallback(t)}function yp(t,e,n,r,s){var i={};return(e===!0||e===!1)&&(r=e,e=void 0),(n===!0||n===!1)&&(r=n,n=void 0),(Fs(t)&&Nu(t)||$n(t)&&t.length===0)&&(t=void 0),i._isAMomentObject=!0,i._useUTC=i._isUTC=s,i._l=n,i._i=t,i._f=e,i._strict=r,HD(i)}function qe(t,e,n,r){return yp(t,e,n,r,!1)}var WD=_n("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=qe.apply(null,arguments);return this.isValid()&&t.isValid()?t<this?this:t:wl()}),jD=_n("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var t=qe.apply(null,arguments);return this.isValid()&&t.isValid()?t>this?this:t:wl()});function wp(t,e){var n,r;if(e.length===1&&$n(e[0])&&(e=e[0]),!e.length)return qe();for(n=e[0],r=1;r<e.length;++r)(!e[r].isValid()||e[r][t](n))&&(n=e[r]);return n}function ZD(){var t=[].slice.call(arguments,0);return wp("isBefore",t)}function UD(){var t=[].slice.call(arguments,0);return wp("isAfter",t)}var qD=function(){return Date.now?Date.now():+new Date},Ko=["year","quarter","month","week","day","hour","minute","second","millisecond"];function GD(t){var e,n=!1,r,s=Ko.length;for(e in t)if(Ee(t,e)&&!(pt.call(Ko,e)!==-1&&(t[e]==null||!isNaN(t[e]))))return!1;for(r=0;r<s;++r)if(t[Ko[r]]){if(n)return!1;parseFloat(t[Ko[r]])!==ke(t[Ko[r]])&&(n=!0)}return!0}function KD(){return this._isValid}function XD(){return Vn(NaN)}function Pl(t){var e=ju(t),n=e.year||0,r=e.quarter||0,s=e.month||0,i=e.week||e.isoWeek||0,a=e.day||0,l=e.hour||0,c=e.minute||0,d=e.second||0,u=e.millisecond||0;this._isValid=GD(e),this._milliseconds=+u+d*1e3+c*6e4+l*1e3*60*60,this._days=+a+i*7,this._months=+s+r*3+n*12,this._data={},this._locale=Mr(),this._bubble()}function Ll(t){return t instanceof Pl}function i1(t){return t<0?Math.round(-1*t)*-1:Math.round(t)}function QD(t,e,n){var r=Math.min(t.length,e.length),s=Math.abs(t.length-e.length),i=0,a;for(a=0;a<r;a++)(n&&t[a]!==e[a]||!n&&ke(t[a])!==ke(e[a]))&&i++;return i+s}function bp(t,e){oe(t,0,0,function(){var n=this.utcOffset(),r="+";return n<0&&(n=-n,r="-"),r+tr(~~(n/60),2)+e+tr(~~n%60,2)})}bp("Z",":"),bp("ZZ",""),se("Z",Sl),se("ZZ",Sl),Ie(["Z","ZZ"],function(t,e,n){n._useUTC=!0,n._tzm=o1(Sl,t)});var JD=/([\+\-]|\d\d)/gi;function o1(t,e){var n=(e||"").match(t),r,s,i;return n===null?null:(r=n[n.length-1]||[],s=(r+"").match(JD)||["-",0,0],i=+(s[1]*60)+ke(s[2]),i===0?0:s[0]==="+"?i:-i)}function a1(t,e){var n,r;return e._isUTC?(n=e.clone(),r=(Pn(t)||Io(t)?t.valueOf():qe(t).valueOf())-n.valueOf(),n._d.setTime(n._d.valueOf()+r),re.updateOffset(n,!1),n):qe(t).local()}function l1(t){return-Math.round(t._d.getTimezoneOffset())}re.updateOffset=function(){};function eO(t,e,n){var r=this._offset||0,s;if(!this.isValid())return t!=null?this:NaN;if(t!=null){if(typeof t=="string"){if(t=o1(Sl,t),t===null)return this}else Math.abs(t)<16&&!n&&(t=t*60);return!this._isUTC&&e&&(s=l1(this)),this._offset=t,this._isUTC=!0,s!=null&&this.add(s,"m"),r!==t&&(!e||this._changeInProgress?Mp(this,Vn(t-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,re.updateOffset(this,!0),this._changeInProgress=null)),this}else return this._isUTC?r:l1(this)}function tO(t,e){return t!=null?(typeof t!="string"&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()}function nO(t){return this.utcOffset(0,t)}function rO(t){return this._isUTC&&(this.utcOffset(0,t),this._isUTC=!1,t&&this.subtract(l1(this),"m")),this}function sO(){if(this._tzm!=null)this.utcOffset(this._tzm,!1,!0);else if(typeof this._i=="string"){var t=o1(xT,this._i);t!=null?this.utcOffset(t):this.utcOffset(0,!0)}return this}function iO(t){return this.isValid()?(t=t?qe(t).utcOffset():0,(this.utcOffset()-t)%60===0):!1}function oO(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function aO(){if(!Wt(this._isDSTShifted))return this._isDSTShifted;var t={},e;return Fu(t,this),t=_p(t),t._a?(e=t._isUTC?Jn(t._a):qe(t._a),this._isDSTShifted=this.isValid()&&QD(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function lO(){return this.isValid()?!this._isUTC:!1}function cO(){return this.isValid()?this._isUTC:!1}function kp(){return this.isValid()?this._isUTC&&this._offset===0:!1}var dO=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,uO=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Vn(t,e){var n=t,r=null,s,i,a;return Ll(t)?n={ms:t._milliseconds,d:t._days,M:t._months}:wr(t)||!isNaN(+t)?(n={},e?n[e]=+t:n.milliseconds=+t):(r=dO.exec(t))?(s=r[1]==="-"?-1:1,n={y:0,d:ke(r[nr])*s,h:ke(r[bt])*s,m:ke(r[Ln])*s,s:ke(r[Cr])*s,ms:ke(i1(r[Is]*1e3))*s}):(r=uO.exec(t))?(s=r[1]==="-"?-1:1,n={y:zs(r[2],s),M:zs(r[3],s),w:zs(r[4],s),d:zs(r[5],s),h:zs(r[6],s),m:zs(r[7],s),s:zs(r[8],s)}):n==null?n={}:typeof n=="object"&&("from"in n||"to"in n)&&(a=hO(qe(n.from),qe(n.to)),n={},n.ms=a.milliseconds,n.M=a.months),i=new Pl(n),Ll(t)&&Ee(t,"_locale")&&(i._locale=t._locale),Ll(t)&&Ee(t,"_isValid")&&(i._isValid=t._isValid),i}Vn.fn=Pl.prototype,Vn.invalid=XD;function zs(t,e){var n=t&&parseFloat(t.replace(",","."));return(isNaN(n)?0:n)*e}function Cp(t,e){var n={};return n.months=e.month()-t.month()+(e.year()-t.year())*12,t.clone().add(n.months,"M").isAfter(e)&&--n.months,n.milliseconds=+e-+t.clone().add(n.months,"M"),n}function hO(t,e){var n;return t.isValid()&&e.isValid()?(e=a1(e,t),t.isBefore(e)?n=Cp(t,e):(n=Cp(e,t),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function xp(t,e){return function(n,r){var s,i;return r!==null&&!isNaN(+r)&&(Gm(e,"moment()."+e+"(period, number) is deprecated. Please use moment()."+e+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),i=n,n=r,r=i),s=Vn(n,r),Mp(this,s,t),this}}function Mp(t,e,n,r){var s=e._milliseconds,i=i1(e._days),a=i1(e._months);t.isValid()&&(r=r??!0,a&&op(t,jo(t,"Month")+a*n),i&&rp(t,"Date",jo(t,"Date")+i*n),s&&t._d.setTime(t._d.valueOf()+s*n),r&&re.updateOffset(t,i||a))}var fO=xp(1,"add"),mO=xp(-1,"subtract");function vp(t){return typeof t=="string"||t instanceof String}function pO(t){return Pn(t)||Io(t)||vp(t)||wr(t)||_O(t)||gO(t)||t===null||t===void 0}function gO(t){var e=Fs(t)&&!Nu(t),n=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],s,i,a=r.length;for(s=0;s<a;s+=1)i=r[s],n=n||Ee(t,i);return e&&n}function _O(t){var e=$n(t),n=!1;return e&&(n=t.filter(function(r){return!wr(r)&&vp(t)}).length===0),e&&n}function yO(t){var e=Fs(t)&&!Nu(t),n=!1,r=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],s,i;for(s=0;s<r.length;s+=1)i=r[s],n=n||Ee(t,i);return e&&n}function wO(t,e){var n=t.diff(e,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"}function bO(t,e){arguments.length===1&&(arguments[0]?pO(arguments[0])?(t=arguments[0],e=void 0):yO(arguments[0])&&(e=arguments[0],t=void 0):(t=void 0,e=void 0));var n=t||qe(),r=a1(n,this).startOf("day"),s=re.calendarFormat(this,r)||"sameElse",i=e&&(er(e[s])?e[s].call(this,n):e[s]);return this.format(i||this.localeData().calendar(s,this,qe(n)))}function kO(){return new zo(this)}function CO(t,e){var n=Pn(t)?t:qe(t);return this.isValid()&&n.isValid()?(e=yn(e)||"millisecond",e==="millisecond"?this.valueOf()>n.valueOf():n.valueOf()<this.clone().startOf(e).valueOf()):!1}function xO(t,e){var n=Pn(t)?t:qe(t);return this.isValid()&&n.isValid()?(e=yn(e)||"millisecond",e==="millisecond"?this.valueOf()<n.valueOf():this.clone().endOf(e).valueOf()<n.valueOf()):!1}function MO(t,e,n,r){var s=Pn(t)?t:qe(t),i=Pn(e)?e:qe(e);return this.isValid()&&s.isValid()&&i.isValid()?(r=r||"()",(r[0]==="("?this.isAfter(s,n):!this.isBefore(s,n))&&(r[1]===")"?this.isBefore(i,n):!this.isAfter(i,n))):!1}function vO(t,e){var n=Pn(t)?t:qe(t),r;return this.isValid()&&n.isValid()?(e=yn(e)||"millisecond",e==="millisecond"?this.valueOf()===n.valueOf():(r=n.valueOf(),this.clone().startOf(e).valueOf()<=r&&r<=this.clone().endOf(e).valueOf())):!1}function SO(t,e){return this.isSame(t,e)||this.isAfter(t,e)}function TO(t,e){return this.isSame(t,e)||this.isBefore(t,e)}function DO(t,e,n){var r,s,i;if(!this.isValid())return NaN;if(r=a1(t,this),!r.isValid())return NaN;switch(s=(r.utcOffset()-this.utcOffset())*6e4,e=yn(e),e){case"year":i=Vl(this,r)/12;break;case"month":i=Vl(this,r);break;case"quarter":i=Vl(this,r)/3;break;case"second":i=(this-r)/1e3;break;case"minute":i=(this-r)/6e4;break;case"hour":i=(this-r)/36e5;break;case"day":i=(this-r-s)/864e5;break;case"week":i=(this-r-s)/6048e5;break;default:i=this-r}return n?i:wn(i)}function Vl(t,e){if(t.date()<e.date())return-Vl(e,t);var n=(e.year()-t.year())*12+(e.month()-t.month()),r=t.clone().add(n,"months"),s,i;return e-r<0?(s=t.clone().add(n-1,"months"),i=(e-r)/(r-s)):(s=t.clone().add(n+1,"months"),i=(e-r)/(s-r)),-(n+i)||0}re.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",re.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";function OO(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")}function EO(t){if(!this.isValid())return null;var e=t!==!0,n=e?this.clone().utc():this;return n.year()<0||n.year()>9999?kl(n,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):er(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",kl(n,"Z")):kl(n,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function $O(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t="moment",e="",n,r,s,i;return this.isLocal()||(t=this.utcOffset()===0?"moment.utc":"moment.parseZone",e="Z"),n="["+t+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",s="-MM-DD[T]HH:mm:ss.SSS",i=e+'[")]',this.format(n+r+s+i)}function PO(t){t||(t=this.isUtc()?re.defaultFormatUtc:re.defaultFormat);var e=kl(this,t);return this.localeData().postformat(e)}function LO(t,e){return this.isValid()&&(Pn(t)&&t.isValid()||qe(t).isValid())?Vn({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function VO(t){return this.from(qe(),t)}function NO(t,e){return this.isValid()&&(Pn(t)&&t.isValid()||qe(t).isValid())?Vn({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()}function BO(t){return this.to(qe(),t)}function Sp(t){var e;return t===void 0?this._locale._abbr:(e=Mr(t),e!=null&&(this._locale=e),this)}var Tp=_n("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(t){return t===void 0?this.localeData():this.locale(t)});function Dp(){return this._locale}var Nl=1e3,Di=60*Nl,Bl=60*Di,Op=(365*400+97)*24*Bl;function Oi(t,e){return(t%e+e)%e}function Ep(t,e,n){return t<100&&t>=0?new Date(t+400,e,n)-Op:new Date(t,e,n).valueOf()}function $p(t,e,n){return t<100&&t>=0?Date.UTC(t+400,e,n)-Op:Date.UTC(t,e,n)}function AO(t){var e,n;if(t=yn(t),t===void 0||t==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?$p:Ep,t){case"year":e=n(this.year(),0,1);break;case"quarter":e=n(this.year(),this.month()-this.month()%3,1);break;case"month":e=n(this.year(),this.month(),1);break;case"week":e=n(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":e=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":e=n(this.year(),this.month(),this.date());break;case"hour":e=this._d.valueOf(),e-=Oi(e+(this._isUTC?0:this.utcOffset()*Di),Bl);break;case"minute":e=this._d.valueOf(),e-=Oi(e,Di);break;case"second":e=this._d.valueOf(),e-=Oi(e,Nl);break}return this._d.setTime(e),re.updateOffset(this,!0),this}function RO(t){var e,n;if(t=yn(t),t===void 0||t==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?$p:Ep,t){case"year":e=n(this.year()+1,0,1)-1;break;case"quarter":e=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":e=n(this.year(),this.month()+1,1)-1;break;case"week":e=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":e=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":e=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":e=this._d.valueOf(),e+=Bl-Oi(e+(this._isUTC?0:this.utcOffset()*Di),Bl)-1;break;case"minute":e=this._d.valueOf(),e+=Di-Oi(e,Di)-1;break;case"second":e=this._d.valueOf(),e+=Nl-Oi(e,Nl)-1;break}return this._d.setTime(e),re.updateOffset(this,!0),this}function FO(){return this._d.valueOf()-(this._offset||0)*6e4}function IO(){return Math.floor(this.valueOf()/1e3)}function zO(){return new Date(this.valueOf())}function HO(){var t=this;return[t.year(),t.month(),t.date(),t.hour(),t.minute(),t.second(),t.millisecond()]}function YO(){var t=this;return{years:t.year(),months:t.month(),date:t.date(),hours:t.hours(),minutes:t.minutes(),seconds:t.seconds(),milliseconds:t.milliseconds()}}function WO(){return this.isValid()?this.toISOString():null}function jO(){return Au(this)}function ZO(){return es({},_e(this))}function UO(){return _e(this).overflow}function qO(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}oe("N",0,0,"eraAbbr"),oe("NN",0,0,"eraAbbr"),oe("NNN",0,0,"eraAbbr"),oe("NNNN",0,0,"eraName"),oe("NNNNN",0,0,"eraNarrow"),oe("y",["y",1],"yo","eraYear"),oe("y",["yy",2],0,"eraYear"),oe("y",["yyy",3],0,"eraYear"),oe("y",["yyyy",4],0,"eraYear"),se("N",c1),se("NN",c1),se("NNN",c1),se("NNNN",iE),se("NNNNN",oE),Ie(["N","NN","NNN","NNNN","NNNNN"],function(t,e,n,r){var s=n._locale.erasParse(t,r,n._strict);s?_e(n).era=s:_e(n).invalidEra=t}),se("y",Mi),se("yy",Mi),se("yyy",Mi),se("yyyy",Mi),se("yo",aE),Ie(["y","yy","yyy","yyyy"],$t),Ie(["yo"],function(t,e,n,r){var s;n._locale._eraYearOrdinalRegex&&(s=t.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?e[$t]=n._locale.eraYearOrdinalParse(t,s):e[$t]=parseInt(t,10)});function GO(t,e){var n,r,s,i=this._eras||Mr("en")._eras;for(n=0,r=i.length;n<r;++n){switch(typeof i[n].since){case"string":s=re(i[n].since).startOf("day"),i[n].since=s.valueOf();break}switch(typeof i[n].until){case"undefined":i[n].until=1/0;break;case"string":s=re(i[n].until).startOf("day").valueOf(),i[n].until=s.valueOf();break}}return i}function KO(t,e,n){var r,s,i=this.eras(),a,l,c;for(t=t.toUpperCase(),r=0,s=i.length;r<s;++r)if(a=i[r].name.toUpperCase(),l=i[r].abbr.toUpperCase(),c=i[r].narrow.toUpperCase(),n)switch(e){case"N":case"NN":case"NNN":if(l===t)return i[r];break;case"NNNN":if(a===t)return i[r];break;case"NNNNN":if(c===t)return i[r];break}else if([a,l,c].indexOf(t)>=0)return i[r]}function XO(t,e){var n=t.since<=t.until?1:-1;return e===void 0?re(t.since).year():re(t.since).year()+(e-t.offset)*n}function QO(){var t,e,n,r=this.localeData().eras();for(t=0,e=r.length;t<e;++t)if(n=this.clone().startOf("day").valueOf(),r[t].since<=n&&n<=r[t].until||r[t].until<=n&&n<=r[t].since)return r[t].name;return""}function JO(){var t,e,n,r=this.localeData().eras();for(t=0,e=r.length;t<e;++t)if(n=this.clone().startOf("day").valueOf(),r[t].since<=n&&n<=r[t].until||r[t].until<=n&&n<=r[t].since)return r[t].narrow;return""}function eE(){var t,e,n,r=this.localeData().eras();for(t=0,e=r.length;t<e;++t)if(n=this.clone().startOf("day").valueOf(),r[t].since<=n&&n<=r[t].until||r[t].until<=n&&n<=r[t].since)return r[t].abbr;return""}function tE(){var t,e,n,r,s=this.localeData().eras();for(t=0,e=s.length;t<e;++t)if(n=s[t].since<=s[t].until?1:-1,r=this.clone().startOf("day").valueOf(),s[t].since<=r&&r<=s[t].until||s[t].until<=r&&r<=s[t].since)return(this.year()-re(s[t].since).year())*n+s[t].offset;return this.year()}function nE(t){return Ee(this,"_erasNameRegex")||d1.call(this),t?this._erasNameRegex:this._erasRegex}function rE(t){return Ee(this,"_erasAbbrRegex")||d1.call(this),t?this._erasAbbrRegex:this._erasRegex}function sE(t){return Ee(this,"_erasNarrowRegex")||d1.call(this),t?this._erasNarrowRegex:this._erasRegex}function c1(t,e){return e.erasAbbrRegex(t)}function iE(t,e){return e.erasNameRegex(t)}function oE(t,e){return e.erasNarrowRegex(t)}function aE(t,e){return e._eraYearOrdinalRegex||Mi}function d1(){var t=[],e=[],n=[],r=[],s,i,a,l,c,d=this.eras();for(s=0,i=d.length;s<i;++s)a=br(d[s].name),l=br(d[s].abbr),c=br(d[s].narrow),e.push(a),t.push(l),n.push(c),r.push(a),r.push(l),r.push(c);this._erasRegex=new RegExp("^("+r.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+e.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+t.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+n.join("|")+")","i")}oe(0,["gg",2],0,function(){return this.weekYear()%100}),oe(0,["GG",2],0,function(){return this.isoWeekYear()%100});function Al(t,e){oe(0,[t,t.length],0,e)}Al("gggg","weekYear"),Al("ggggg","weekYear"),Al("GGGG","isoWeekYear"),Al("GGGGG","isoWeekYear"),se("G",vl),se("g",vl),se("GG",Ue,sn),se("gg",Ue,sn),se("GGGG",Uu,Zu),se("gggg",Uu,Zu),se("GGGGG",Ml,Cl),se("ggggg",Ml,Cl),Yo(["gggg","ggggg","GGGG","GGGGG"],function(t,e,n,r){e[r.substr(0,2)]=ke(t)}),Yo(["gg","GG"],function(t,e,n,r){e[r]=re.parseTwoDigitYear(t)});function lE(t){return Pp.call(this,t,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)}function cE(t){return Pp.call(this,t,this.isoWeek(),this.isoWeekday(),1,4)}function dE(){return xr(this.year(),1,4)}function uE(){return xr(this.isoWeekYear(),1,4)}function hE(){var t=this.localeData()._week;return xr(this.year(),t.dow,t.doy)}function fE(){var t=this.localeData()._week;return xr(this.weekYear(),t.dow,t.doy)}function Pp(t,e,n,r,s){var i;return t==null?Uo(this,r,s).year:(i=xr(t,r,s),e>i&&(e=i),mE.call(this,t,e,n,r,s))}function mE(t,e,n,r,s){var i=cp(t,e,n,r,s),a=Zo(i.year,0,i.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}oe("Q",0,"Qo","quarter"),se("Q",Qm),Ie("Q",function(t,e){e[kr]=(ke(t)-1)*3});function pE(t){return t==null?Math.ceil((this.month()+1)/3):this.month((t-1)*3+this.month()%3)}oe("D",["DD",2],"Do","date"),se("D",Ue,vi),se("DD",Ue,sn),se("Do",function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient}),Ie(["D","DD"],nr),Ie("Do",function(t,e){e[nr]=ke(t.match(Ue)[0])});var Lp=Si("Date",!0);oe("DDD",["DDDD",3],"DDDo","dayOfYear"),se("DDD",xl),se("DDDD",Jm),Ie(["DDD","DDDD"],function(t,e,n){n._dayOfYear=ke(t)});function gE(t){var e=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return t==null?e:this.add(t-e,"d")}oe("m",["mm",2],0,"minute"),se("m",Ue,qu),se("mm",Ue,sn),Ie(["m","mm"],Ln);var _E=Si("Minutes",!1);oe("s",["ss",2],0,"second"),se("s",Ue,qu),se("ss",Ue,sn),Ie(["s","ss"],Cr);var yE=Si("Seconds",!1);oe("S",0,0,function(){return~~(this.millisecond()/100)}),oe(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),oe(0,["SSS",3],0,"millisecond"),oe(0,["SSSS",4],0,function(){return this.millisecond()*10}),oe(0,["SSSSS",5],0,function(){return this.millisecond()*100}),oe(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),oe(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),oe(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),oe(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),se("S",xl,Qm),se("SS",xl,sn),se("SSS",xl,Jm);var ns,Vp;for(ns="SSSS";ns.length<=9;ns+="S")se(ns,Mi);function wE(t,e){e[Is]=ke(("0."+t)*1e3)}for(ns="S";ns.length<=9;ns+="S")Ie(ns,wE);Vp=Si("Milliseconds",!1),oe("z",0,0,"zoneAbbr"),oe("zz",0,0,"zoneName");function bE(){return this._isUTC?"UTC":""}function kE(){return this._isUTC?"Coordinated Universal Time":""}var Q=zo.prototype;Q.add=fO,Q.calendar=bO,Q.clone=kO,Q.diff=DO,Q.endOf=RO,Q.format=PO,Q.from=LO,Q.fromNow=VO,Q.to=NO,Q.toNow=BO,Q.get=$T,Q.invalidAt=UO,Q.isAfter=CO,Q.isBefore=xO,Q.isBetween=MO,Q.isSame=vO,Q.isSameOrAfter=SO,Q.isSameOrBefore=TO,Q.isValid=jO,Q.lang=Tp,Q.locale=Sp,Q.localeData=Dp,Q.max=jD,Q.min=WD,Q.parsingFlags=ZO,Q.set=PT,Q.startOf=AO,Q.subtract=mO,Q.toArray=HO,Q.toObject=YO,Q.toDate=zO,Q.toISOString=EO,Q.inspect=$O,typeof Symbol<"u"&&Symbol.for!=null&&(Q[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),Q.toJSON=WO,Q.toString=OO,Q.unix=IO,Q.valueOf=FO,Q.creationData=qO,Q.eraName=QO,Q.eraNarrow=JO,Q.eraAbbr=eE,Q.eraYear=tE,Q.year=np,Q.isLeapYear=ET,Q.weekYear=lE,Q.isoWeekYear=cE,Q.quarter=Q.quarters=pE,Q.month=ap,Q.daysInMonth=zT,Q.week=Q.weeks=GT,Q.isoWeek=Q.isoWeeks=KT,Q.weeksInYear=hE,Q.weeksInWeekYear=fE,Q.isoWeeksInYear=dE,Q.isoWeeksInISOWeekYear=uE,Q.date=Lp,Q.day=Q.days=cD,Q.weekday=dD,Q.isoWeekday=uD,Q.dayOfYear=gE,Q.hour=Q.hours=yD,Q.minute=Q.minutes=_E,Q.second=Q.seconds=yE,Q.millisecond=Q.milliseconds=Vp,Q.utcOffset=eO,Q.utc=nO,Q.local=rO,Q.parseZone=sO,Q.hasAlignedHourOffset=iO,Q.isDST=oO,Q.isLocal=lO,Q.isUtcOffset=cO,Q.isUtc=kp,Q.isUTC=kp,Q.zoneAbbr=bE,Q.zoneName=kE,Q.dates=_n("dates accessor is deprecated. Use date instead.",Lp),Q.months=_n("months accessor is deprecated. Use month instead",ap),Q.years=_n("years accessor is deprecated. Use year instead",np),Q.zone=_n("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",tO),Q.isDSTShifted=_n("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",aO);function CE(t){return qe(t*1e3)}function xE(){return qe.apply(null,arguments).parseZone()}function Np(t){return t}var $e=zu.prototype;$e.calendar=lT,$e.longDateFormat=hT,$e.invalidDate=mT,$e.ordinal=_T,$e.preparse=Np,$e.postformat=Np,$e.relativeTime=wT,$e.pastFuture=bT,$e.set=oT,$e.eras=GO,$e.erasParse=KO,$e.erasConvertYear=XO,$e.erasAbbrRegex=rE,$e.erasNameRegex=nE,$e.erasNarrowRegex=sE,$e.months=AT,$e.monthsShort=RT,$e.monthsParse=IT,$e.monthsRegex=YT,$e.monthsShortRegex=HT,$e.week=jT,$e.firstDayOfYear=qT,$e.firstDayOfWeek=UT,$e.weekdays=sD,$e.weekdaysMin=oD,$e.weekdaysShort=iD,$e.weekdaysParse=lD,$e.weekdaysRegex=hD,$e.weekdaysShortRegex=fD,$e.weekdaysMinRegex=mD,$e.isPM=gD,$e.meridiem=wD;function Rl(t,e,n,r){var s=Mr(),i=Jn().set(r,e);return s[n](i,t)}function Bp(t,e,n){if(wr(t)&&(e=t,t=void 0),t=t||"",e!=null)return Rl(t,e,n,"month");var r,s=[];for(r=0;r<12;r++)s[r]=Rl(t,r,n,"month");return s}function u1(t,e,n,r){typeof t=="boolean"?(wr(e)&&(n=e,e=void 0),e=e||""):(e=t,n=e,t=!1,wr(e)&&(n=e,e=void 0),e=e||"");var s=Mr(),i=t?s._week.dow:0,a,l=[];if(n!=null)return Rl(e,(n+i)%7,r,"day");for(a=0;a<7;a++)l[a]=Rl(e,(a+i)%7,r,"day");return l}function ME(t,e){return Bp(t,e,"months")}function vE(t,e){return Bp(t,e,"monthsShort")}function SE(t,e,n){return u1(t,e,n,"weekdays")}function TE(t,e,n){return u1(t,e,n,"weekdaysShort")}function DE(t,e,n){return u1(t,e,n,"weekdaysMin")}ts("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10,n=ke(t%100/10)===1?"th":e===1?"st":e===2?"nd":e===3?"rd":"th";return t+n}}),re.lang=_n("moment.lang is deprecated. Use moment.locale instead.",ts),re.langData=_n("moment.langData is deprecated. Use moment.localeData instead.",Mr);var vr=Math.abs;function OE(){var t=this._data;return this._milliseconds=vr(this._milliseconds),this._days=vr(this._days),this._months=vr(this._months),t.milliseconds=vr(t.milliseconds),t.seconds=vr(t.seconds),t.minutes=vr(t.minutes),t.hours=vr(t.hours),t.months=vr(t.months),t.years=vr(t.years),this}function Ap(t,e,n,r){var s=Vn(e,n);return t._milliseconds+=r*s._milliseconds,t._days+=r*s._days,t._months+=r*s._months,t._bubble()}function EE(t,e){return Ap(this,t,e,1)}function $E(t,e){return Ap(this,t,e,-1)}function Rp(t){return t<0?Math.floor(t):Math.ceil(t)}function PE(){var t=this._milliseconds,e=this._days,n=this._months,r=this._data,s,i,a,l,c;return t>=0&&e>=0&&n>=0||t<=0&&e<=0&&n<=0||(t+=Rp(h1(n)+e)*864e5,e=0,n=0),r.milliseconds=t%1e3,s=wn(t/1e3),r.seconds=s%60,i=wn(s/60),r.minutes=i%60,a=wn(i/60),r.hours=a%24,e+=wn(a/24),c=wn(Fp(e)),n+=c,e-=Rp(h1(c)),l=wn(n/12),n%=12,r.days=e,r.months=n,r.years=l,this}function Fp(t){return t*4800/146097}function h1(t){return t*146097/4800}function LE(t){if(!this.isValid())return NaN;var e,n,r=this._milliseconds;if(t=yn(t),t==="month"||t==="quarter"||t==="year")switch(e=this._days+r/864e5,n=this._months+Fp(e),t){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(e=this._days+Math.round(h1(this._months)),t){case"week":return e/7+r/6048e5;case"day":return e+r/864e5;case"hour":return e*24+r/36e5;case"minute":return e*1440+r/6e4;case"second":return e*86400+r/1e3;case"millisecond":return Math.floor(e*864e5)+r;default:throw new Error("Unknown unit "+t)}}function Sr(t){return function(){return this.as(t)}}var Ip=Sr("ms"),VE=Sr("s"),NE=Sr("m"),BE=Sr("h"),AE=Sr("d"),RE=Sr("w"),FE=Sr("M"),IE=Sr("Q"),zE=Sr("y"),HE=Ip;function YE(){return Vn(this)}function WE(t){return t=yn(t),this.isValid()?this[t+"s"]():NaN}function Hs(t){return function(){return this.isValid()?this._data[t]:NaN}}var jE=Hs("milliseconds"),ZE=Hs("seconds"),UE=Hs("minutes"),qE=Hs("hours"),GE=Hs("days"),KE=Hs("months"),XE=Hs("years");function QE(){return wn(this.days()/7)}var Tr=Math.round,Ei={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function JE(t,e,n,r,s){return s.relativeTime(e||1,!!n,t,r)}function e$(t,e,n,r){var s=Vn(t).abs(),i=Tr(s.as("s")),a=Tr(s.as("m")),l=Tr(s.as("h")),c=Tr(s.as("d")),d=Tr(s.as("M")),u=Tr(s.as("w")),h=Tr(s.as("y")),f=i<=n.ss&&["s",i]||i<n.s&&["ss",i]||a<=1&&["m"]||a<n.m&&["mm",a]||l<=1&&["h"]||l<n.h&&["hh",l]||c<=1&&["d"]||c<n.d&&["dd",c];return n.w!=null&&(f=f||u<=1&&["w"]||u<n.w&&["ww",u]),f=f||d<=1&&["M"]||d<n.M&&["MM",d]||h<=1&&["y"]||["yy",h],f[2]=e,f[3]=+t>0,f[4]=r,JE.apply(null,f)}function t$(t){return t===void 0?Tr:typeof t=="function"?(Tr=t,!0):!1}function n$(t,e){return Ei[t]===void 0?!1:e===void 0?Ei[t]:(Ei[t]=e,t==="s"&&(Ei.ss=e-1),!0)}function r$(t,e){if(!this.isValid())return this.localeData().invalidDate();var n=!1,r=Ei,s,i;return typeof t=="object"&&(e=t,t=!1),typeof t=="boolean"&&(n=t),typeof e=="object"&&(r=Object.assign({},Ei,e),e.s!=null&&e.ss==null&&(r.ss=e.s-1)),s=this.localeData(),i=e$(this,!n,r,s),n&&(i=s.pastFuture(+this,i)),s.postformat(i)}var f1=Math.abs;function $i(t){return(t>0)-(t<0)||+t}function Fl(){if(!this.isValid())return this.localeData().invalidDate();var t=f1(this._milliseconds)/1e3,e=f1(this._days),n=f1(this._months),r,s,i,a,l=this.asSeconds(),c,d,u,h;return l?(r=wn(t/60),s=wn(r/60),t%=60,r%=60,i=wn(n/12),n%=12,a=t?t.toFixed(3).replace(/\.?0+$/,""):"",c=l<0?"-":"",d=$i(this._months)!==$i(l)?"-":"",u=$i(this._days)!==$i(l)?"-":"",h=$i(this._milliseconds)!==$i(l)?"-":"",c+"P"+(i?d+i+"Y":"")+(n?d+n+"M":"")+(e?u+e+"D":"")+(s||r||t?"T":"")+(s?h+s+"H":"")+(r?h+r+"M":"")+(t?h+a+"S":"")):"P0D"}var Se=Pl.prototype;Se.isValid=KD,Se.abs=OE,Se.add=EE,Se.subtract=$E,Se.as=LE,Se.asMilliseconds=Ip,Se.asSeconds=VE,Se.asMinutes=NE,Se.asHours=BE,Se.asDays=AE,Se.asWeeks=RE,Se.asMonths=FE,Se.asQuarters=IE,Se.asYears=zE,Se.valueOf=HE,Se._bubble=PE,Se.clone=YE,Se.get=WE,Se.milliseconds=jE,Se.seconds=ZE,Se.minutes=UE,Se.hours=qE,Se.days=GE,Se.weeks=QE,Se.months=KE,Se.years=XE,Se.humanize=r$,Se.toISOString=Fl,Se.toString=Fl,Se.toJSON=Fl,Se.locale=Sp,Se.localeData=Dp,Se.toIsoString=_n("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Fl),Se.lang=Tp,oe("X",0,0,"unix"),oe("x",0,0,"valueOf"),se("x",vl),se("X",MT),Ie("X",function(t,e,n){n._d=new Date(parseFloat(t)*1e3)}),Ie("x",function(t,e,n){n._d=new Date(ke(t))});//! moment.js
|
|
45
|
-
re.version="2.30.1",sT(qe),re.fn=Q,re.min=ZD,re.max=UD,re.now=qD,re.utc=Jn,re.unix=CE,re.months=ME,re.isDate=Io,re.locale=ts,re.invalid=wl,re.duration=Vn,re.isMoment=Pn,re.weekdays=SE,re.parseZone=xE,re.localeData=Mr,re.isDuration=Ll,re.monthsShort=vE,re.weekdaysMin=DE,re.defineLocale=e1,re.updateLocale=xD,re.locales=MD,re.weekdaysShort=TE,re.normalizeUnits=yn,re.relativeTimeRounding=t$,re.relativeTimeThreshold=n$,re.calendarFormat=wO,re.prototype=Q,re.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const s$={class:"calendar-dropdown"},i$={class:"calendar-dropdown__outer__left"},o$={class:"calendar-dropdown__outer__current"},a$={key:0,class:"calendar-dropdown__inner"},l$={class:"calendar-dropdown__year-switcher"},c$={class:"calendar-dropdown__year-switcher__year"},d$={class:"calendar-dropdown__months"},u$={class:"calendar-dropdown__month-container"},h$=["onClick"],zp=De({__name:"CalendarDropdown",props:o.mergeModels({currentDate:{type:Date}},{year:{},yearModifiers:{},month:{},monthModifiers:{}}),emits:o.mergeModels("onChange",["update:year","update:month"]),setup(t,{emit:e}){const n=e,r=t,s=o.useModel(t,"year"),i=o.useModel(t,"month"),a=re.months(),l=o.ref(!1),c=()=>{l.value=!l.value},d=f=>s.value===r.currentDate.getFullYear()&&f===r.currentDate.getMonth(),u=f=>s.value<r.currentDate.getFullYear()||s.value===r.currentDate.getFullYear()&&f<r.currentDate.getMonth(),h=f=>{n("onChange",{month:f,year:s.value}),c()};return(f,m)=>(o.openBlock(),o.createElementBlock("div",s$,[o.createElementVNode("div",{class:o.normalizeClass(["calendar-dropdown__outer",{"-active":l.value}]),onClick:c},[o.createElementVNode("div",i$,[o.createVNode(o.unref(Ne),{icon:"calendar"}),o.createElementVNode("span",o$,o.toDisplayString(o.unref(a)[i.value]+" "+s.value),1)]),o.createVNode(o.unref(Ne),{class:o.normalizeClass(["calendar-dropdown__outer__switcher",{"-active":l.value}]),icon:"chevron-down-small"},null,8,["class"])],2),l.value?(o.openBlock(),o.createElementBlock("div",a$,[o.createElementVNode("div",l$,[o.createVNode(o.unref(ha),{size:"lg",view:"secondary",icon:"chevron-left",onClick:m[0]||(m[0]=g=>s.value--)}),o.createElementVNode("div",c$,o.toDisplayString(s.value),1),o.createVNode(o.unref(ha),{size:"lg",view:"secondary",icon:"chevron-right",onClick:m[1]||(m[1]=g=>s.value++)})]),o.createElementVNode("div",d$,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(a),(g,p)=>(o.openBlock(),o.createElementBlock("div",u$,[o.createElementVNode("div",{class:o.normalizeClass(["calendar-dropdown__month",{"-active":d(p),"-past":u(p)}]),onClick:_=>h(p)},o.toDisplayString(g),11,h$)]))),256))])])):o.createCommentVNode("",!0)]))}},[["__scopeId","data-v-97075c93"]]),f$={class:"period-dropdown"},m$={class:"period-dropdown__outer__left"},p$={class:"period-dropdown__outer__current"},g$={key:0,class:"period-dropdown__inner"},_$=["onClick"],Ys=De({__name:"PeriodDropdown",props:{modelValue:{},modelModifiers:{}},emits:o.mergeModels("onChange",["update:modelValue"]),setup(t,{emit:e}){const n=e,r=o.useModel(t,"modelValue",{get(c){return s.find(d=>d.id===c)}}),s=[{name:"7 days",short:"7d",id:"week"},{name:"Month",short:"30d",id:"month"},{name:"Quarter",short:"90d",id:"quarter"},{name:"All time",short:"All",id:"all"}],i=o.ref(!1),a=()=>{i.value=!i.value},l=c=>{r.value=c,n("onChange"),a()};return(c,d)=>(o.openBlock(),o.createElementBlock("div",f$,[o.createElementVNode("div",{class:o.normalizeClass(["period-dropdown__outer",{"-active":i.value}]),onClick:a},[o.createElementVNode("div",m$,[o.createVNode(o.unref(Ne),{icon:"clock"}),o.createElementVNode("span",p$,o.toDisplayString(r.value.short),1)]),o.createVNode(o.unref(Ne),{class:o.normalizeClass(["period-dropdown__outer__switcher",{"-active":i.value}]),icon:"chevron-down-small"},null,8,["class"])],2),i.value?(o.openBlock(),o.createElementBlock("div",g$,[(o.openBlock(),o.createElementBlock(o.Fragment,null,o.renderList(s,u=>o.createElementVNode("div",{class:o.normalizeClass(["period-dropdown__option",{"-active":u.id===r.value.id}]),onClick:h=>l(u.id)},[o.createTextVNode(o.toDisplayString(u.name)+" ",1),u.id===r.value.id?(o.openBlock(),o.createBlock(o.unref(Ne),{key:0,icon:"checked"})):o.createCommentVNode("",!0)],10,_$)),64))])):o.createCommentVNode("",!0)]))}},[["__scopeId","data-v-76a97d26"]]),y$={class:"progress-line-container"},w$={class:"progress-line"},b$={class:"progress-line__part"},k$={class:"progress-digits"},C$={class:"progress-digits__value"},x$={class:"progress-digits__value"},M$={class:"progress-digits__value"},Hp=De({__name:"ProgressLine",props:{drawdown:Number,profit:Number,currentProfit:Number,isPercentage:Boolean},setup(t){const e=t,n=o.computed(()=>e.currentProfit>0?Nt(e.currentProfit/e.profit*100):e.currentProfit<0?Nt(e.currentProfit/e.drawdown*100):0),r=a=>{if(!e.profit||!e.currentProfit)return 0;if(a>4){const l=a-5,c=25*l,d=25*(l+1);return n.value>d?100:n.value<c?0:(n.value-c)*4}else{const l=100-25*a,c=100-25*(a-1);return-n.value>c?100:-n.value<l?0:(-n.value-l)*4}},s=a=>{const l=e.currentProfit>0?a-1:a;return a===5?e.currentProfit!==0:r(l)===100},i=o.computed(()=>Math.abs(n.value)>100?n.value<0?"0%":"100%":e.currentProfit>0?`calc(${50+n.value/2}% - 88px)`:e.currentProfit<0?50+n.value/2+"%":"50%");return(a,l)=>(o.openBlock(),o.createElementBlock("div",y$,[o.createElementVNode("div",{class:"progress-badge",style:o.normalizeStyle({left:i.value})},o.toDisplayString(n.value)+"% finished",5),o.createElementVNode("div",w$,[(o.openBlock(),o.createElementBlock(o.Fragment,null,o.renderList(9,c=>o.createElementVNode("div",b$,[o.createElementVNode("div",{class:o.normalizeClass(["progress-line__dot",{"-positive":s(c)}])},null,2),c!==9?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(["progress-line__line",{"-negative-line":c<5}])},[o.createElementVNode("div",{class:"progress-line__progress",style:o.normalizeStyle({width:`${r(c)}%`})},null,4)],2)):o.createCommentVNode("",!0)])),64))]),o.createElementVNode("div",k$,[o.createElementVNode("div",C$,"-"+o.toDisplayString(o.unref(ln)(t.drawdown,{isPercentage:t.isPercentage,isFixed:!0})),1),o.createElementVNode("div",x$,o.toDisplayString(o.unref(ln)(0,{isPercentage:t.isPercentage,isFixed:!0})),1),o.createElementVNode("div",M$," +"+o.toDisplayString(o.unref(ln)(t.profit,{isPercentage:t.isPercentage,isFixed:!0})),1)])]))}},[["__scopeId","data-v-44f0a07a"]]),v$={class:"widget-chips__text"},Il=De({__name:"WidgetChips",props:{delta:Number,isHidden:Boolean,percentage:Boolean,isNegative:Boolean,isPositive:Boolean},setup(t){const e=t,n=o.computed(()=>e.isHidden?"****":Math.abs(e.delta)+(e.percentage?"%":""));return(r,s)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["widget-chips",t.delta>0&&!t.isNegative||t.isPositive?"-positive":"-negative"])},[o.createVNode(o.unref(Ne),{icon:"bxs_up-arrow",class:"widget-chips__icon"}),o.createElementVNode("div",v$,o.toDisplayString(n.value),1)],2))}},[["__scopeId","data-v-1b121ea0"]]);/*! js-cookie v3.0.5 | MIT */function zl(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)t[r]=n[r]}return t}var S$={read:function(t){return t[0]==='"'&&(t=t.slice(1,-1)),t.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(t){return encodeURIComponent(t).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function m1(t,e){function n(s,i,a){if(!(typeof document>"u")){a=zl({},e,a),typeof a.expires=="number"&&(a.expires=new Date(Date.now()+a.expires*864e5)),a.expires&&(a.expires=a.expires.toUTCString()),s=encodeURIComponent(s).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var l="";for(var c in a)a[c]&&(l+="; "+c,a[c]!==!0&&(l+="="+a[c].split(";")[0]));return document.cookie=s+"="+t.write(i,s)+l}}function r(s){if(!(typeof document>"u"||arguments.length&&!s)){for(var i=document.cookie?document.cookie.split("; "):[],a={},l=0;l<i.length;l++){var c=i[l].split("="),d=c.slice(1).join("=");try{var u=decodeURIComponent(c[0]);if(a[u]=t.read(d,u),s===u)break}catch{}}return s?a[s]:a}}return Object.create({set:n,get:r,remove:function(s,i){n(s,"",zl({},i,{expires:-1}))},withAttributes:function(s){return m1(this.converter,zl({},this.attributes,s))},withConverter:function(s){return m1(zl({},this.converter,s),this.attributes)}},{attributes:{value:Object.freeze(e)},converter:{value:Object.freeze(t)}})}var Pi=m1(S$,{path:"/"});class on{static setItem(e,n,r=Date.now()+31449600){Pi.set(e,n,{domain:window.location.hostname==="localhost"?"localhost":".scope360.io",expires:new Date(r*1e3),secure:!0,sameSite:"strict"})}static getItem(e){return Pi.get(e)}static removeItem(e){Pi.remove(e,{domain:window.location.hostname==="localhost"?"localhost":".scope360.io"})}static clear(){const e=Object.keys(Pi.get());for(const n of e)Pi.remove(n,{domain:window.location.hostname==="localhost"?"localhost":".scope360.io"})}static getAll(){return Pi.get()}}function Yp(t,e){return function(){return t.apply(e,arguments)}}const{toString:T$}=Object.prototype,{getPrototypeOf:p1}=Object,Hl=(t=>e=>{const n=T$.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),rr=t=>(t=t.toLowerCase(),e=>Hl(e)===t),Yl=t=>e=>typeof e===t,{isArray:Li}=Array,Xo=Yl("undefined");function D$(t){return t!==null&&!Xo(t)&&t.constructor!==null&&!Xo(t.constructor)&&bn(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const Wp=rr("ArrayBuffer");function O$(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&Wp(t.buffer),e}const E$=Yl("string"),bn=Yl("function"),jp=Yl("number"),Wl=t=>t!==null&&typeof t=="object",$$=t=>t===!0||t===!1,jl=t=>{if(Hl(t)!=="object")return!1;const e=p1(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},P$=rr("Date"),L$=rr("File"),V$=rr("Blob"),N$=rr("FileList"),B$=t=>Wl(t)&&bn(t.pipe),A$=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||bn(t.append)&&((e=Hl(t))==="formdata"||e==="object"&&bn(t.toString)&&t.toString()==="[object FormData]"))},R$=rr("URLSearchParams"),F$=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Qo(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let r,s;if(typeof t!="object"&&(t=[t]),Li(t))for(r=0,s=t.length;r<s;r++)e.call(null,t[r],r,t);else{const i=n?Object.getOwnPropertyNames(t):Object.keys(t),a=i.length;let l;for(r=0;r<a;r++)l=i[r],e.call(null,t[l],l,t)}}function Zp(t,e){e=e.toLowerCase();const n=Object.keys(t);let r=n.length,s;for(;r-- >0;)if(s=n[r],e===s.toLowerCase())return s;return null}const Up=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,qp=t=>!Xo(t)&&t!==Up;function g1(){const{caseless:t}=qp(this)&&this||{},e={},n=(r,s)=>{const i=t&&Zp(e,s)||s;jl(e[i])&&jl(r)?e[i]=g1(e[i],r):jl(r)?e[i]=g1({},r):Li(r)?e[i]=r.slice():e[i]=r};for(let r=0,s=arguments.length;r<s;r++)arguments[r]&&Qo(arguments[r],n);return e}const I$=(t,e,n,{allOwnKeys:r}={})=>(Qo(e,(s,i)=>{n&&bn(s)?t[i]=Yp(s,n):t[i]=s},{allOwnKeys:r}),t),z$=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),H$=(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},Y$=(t,e,n,r)=>{let s,i,a;const l={};if(e=e||{},t==null)return e;do{for(s=Object.getOwnPropertyNames(t),i=s.length;i-- >0;)a=s[i],(!r||r(a,t,e))&&!l[a]&&(e[a]=t[a],l[a]=!0);t=n!==!1&&p1(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},W$=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const r=t.indexOf(e,n);return r!==-1&&r===n},j$=t=>{if(!t)return null;if(Li(t))return t;let e=t.length;if(!jp(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},Z$=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&p1(Uint8Array)),U$=(t,e)=>{const r=(t&&t[Symbol.iterator]).call(t);let s;for(;(s=r.next())&&!s.done;){const i=s.value;e.call(t,i[0],i[1])}},q$=(t,e)=>{let n;const r=[];for(;(n=t.exec(e))!==null;)r.push(n);return r},G$=rr("HTMLFormElement"),K$=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),Gp=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),X$=rr("RegExp"),Kp=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};Qo(n,(s,i)=>{let a;(a=e(s,i,t))!==!1&&(r[i]=a||s)}),Object.defineProperties(t,r)},Q$=t=>{Kp(t,(e,n)=>{if(bn(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=t[n];if(bn(r)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},J$=(t,e)=>{const n={},r=s=>{s.forEach(i=>{n[i]=!0})};return Li(t)?r(t):r(String(t).split(e)),n},eP=()=>{},tP=(t,e)=>(t=+t,Number.isFinite(t)?t:e),_1="abcdefghijklmnopqrstuvwxyz",Xp="0123456789",Qp={DIGIT:Xp,ALPHA:_1,ALPHA_DIGIT:_1+_1.toUpperCase()+Xp},nP=(t=16,e=Qp.ALPHA_DIGIT)=>{let n="";const{length:r}=e;for(;t--;)n+=e[Math.random()*r|0];return n};function rP(t){return!!(t&&bn(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const sP=t=>{const e=new Array(10),n=(r,s)=>{if(Wl(r)){if(e.indexOf(r)>=0)return;if(!("toJSON"in r)){e[s]=r;const i=Li(r)?[]:{};return Qo(r,(a,l)=>{const c=n(a,s+1);!Xo(c)&&(i[l]=c)}),e[s]=void 0,i}}return r};return n(t,0)},iP=rr("AsyncFunction"),Y={isArray:Li,isArrayBuffer:Wp,isBuffer:D$,isFormData:A$,isArrayBufferView:O$,isString:E$,isNumber:jp,isBoolean:$$,isObject:Wl,isPlainObject:jl,isUndefined:Xo,isDate:P$,isFile:L$,isBlob:V$,isRegExp:X$,isFunction:bn,isStream:B$,isURLSearchParams:R$,isTypedArray:Z$,isFileList:N$,forEach:Qo,merge:g1,extend:I$,trim:F$,stripBOM:z$,inherits:H$,toFlatObject:Y$,kindOf:Hl,kindOfTest:rr,endsWith:W$,toArray:j$,forEachEntry:U$,matchAll:q$,isHTMLForm:G$,hasOwnProperty:Gp,hasOwnProp:Gp,reduceDescriptors:Kp,freezeMethods:Q$,toObjectSet:J$,toCamelCase:K$,noop:eP,toFiniteNumber:tP,findKey:Zp,global:Up,isContextDefined:qp,ALPHABET:Qp,generateString:nP,isSpecCompliantForm:rP,toJSONObject:sP,isAsyncFn:iP,isThenable:t=>t&&(Wl(t)||bn(t))&&bn(t.then)&&bn(t.catch)};function Te(t,e,n,r,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),r&&(this.request=r),s&&(this.response=s)}Y.inherits(Te,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:Y.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Jp=Te.prototype,e3={};["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(t=>{e3[t]={value:t}}),Object.defineProperties(Te,e3),Object.defineProperty(Jp,"isAxiosError",{value:!0}),Te.from=(t,e,n,r,s,i)=>{const a=Object.create(Jp);return Y.toFlatObject(t,a,function(c){return c!==Error.prototype},l=>l!=="isAxiosError"),Te.call(a,t.message,e,n,r,s),a.cause=t,a.name=t.name,i&&Object.assign(a,i),a};const oP=null;function y1(t){return Y.isPlainObject(t)||Y.isArray(t)}function t3(t){return Y.endsWith(t,"[]")?t.slice(0,-2):t}function n3(t,e,n){return t?t.concat(e).map(function(s,i){return s=t3(s),!n&&i?"["+s+"]":s}).join(n?".":""):e}function aP(t){return Y.isArray(t)&&!t.some(y1)}const lP=Y.toFlatObject(Y,{},null,function(e){return/^is[A-Z]/.test(e)});function Zl(t,e,n){if(!Y.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=Y.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,_){return!Y.isUndefined(_[p])});const r=n.metaTokens,s=n.visitor||u,i=n.dots,a=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&Y.isSpecCompliantForm(e);if(!Y.isFunction(s))throw new TypeError("visitor must be a function");function d(g){if(g===null)return"";if(Y.isDate(g))return g.toISOString();if(!c&&Y.isBlob(g))throw new Te("Blob is not supported. Use a Buffer instead.");return Y.isArrayBuffer(g)||Y.isTypedArray(g)?c&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function u(g,p,_){let y=g;if(g&&!_&&typeof g=="object"){if(Y.endsWith(p,"{}"))p=r?p:p.slice(0,-2),g=JSON.stringify(g);else if(Y.isArray(g)&&aP(g)||(Y.isFileList(g)||Y.endsWith(p,"[]"))&&(y=Y.toArray(g)))return p=t3(p),y.forEach(function(k,S){!(Y.isUndefined(k)||k===null)&&e.append(a===!0?n3([p],S,i):a===null?p:p+"[]",d(k))}),!1}return y1(g)?!0:(e.append(n3(_,p,i),d(g)),!1)}const h=[],f=Object.assign(lP,{defaultVisitor:u,convertValue:d,isVisitable:y1});function m(g,p){if(!Y.isUndefined(g)){if(h.indexOf(g)!==-1)throw Error("Circular reference detected in "+p.join("."));h.push(g),Y.forEach(g,function(y,C){(!(Y.isUndefined(y)||y===null)&&s.call(e,y,Y.isString(C)?C.trim():C,p,f))===!0&&m(y,p?p.concat(C):[C])}),h.pop()}}if(!Y.isObject(t))throw new TypeError("data must be an object");return m(t),e}function r3(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(r){return e[r]})}function w1(t,e){this._pairs=[],t&&Zl(t,this,e)}const s3=w1.prototype;s3.append=function(e,n){this._pairs.push([e,n])},s3.toString=function(e){const n=e?function(r){return e.call(this,r,r3)}:r3;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function cP(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function i3(t,e,n){if(!e)return t;const r=n&&n.encode||cP,s=n&&n.serialize;let i;if(s?i=s(e,n):i=Y.isURLSearchParams(e)?e.toString():new w1(e,n).toString(r),i){const a=t.indexOf("#");a!==-1&&(t=t.slice(0,a)),t+=(t.indexOf("?")===-1?"?":"&")+i}return t}class o3{constructor(){this.handlers=[]}use(e,n,r){return this.handlers.push({fulfilled:e,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){Y.forEach(this.handlers,function(r){r!==null&&e(r)})}}const a3={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},dP={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:w1,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},l3=typeof window<"u"&&typeof document<"u",uP=(t=>l3&&["ReactNative","NativeScript","NS"].indexOf(t)<0)(typeof navigator<"u"&&navigator.product),hP=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",sr={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:l3,hasStandardBrowserEnv:uP,hasStandardBrowserWebWorkerEnv:hP},Symbol.toStringTag,{value:"Module"})),...dP};function fP(t,e){return Zl(t,new sr.classes.URLSearchParams,Object.assign({visitor:function(n,r,s,i){return sr.isNode&&Y.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},e))}function mP(t){return Y.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function pP(t){const e={},n=Object.keys(t);let r;const s=n.length;let i;for(r=0;r<s;r++)i=n[r],e[i]=t[i];return e}function c3(t){function e(n,r,s,i){let a=n[i++];if(a==="__proto__")return!0;const l=Number.isFinite(+a),c=i>=n.length;return a=!a&&Y.isArray(s)?s.length:a,c?(Y.hasOwnProp(s,a)?s[a]=[s[a],r]:s[a]=r,!l):((!s[a]||!Y.isObject(s[a]))&&(s[a]=[]),e(n,r,s[a],i)&&Y.isArray(s[a])&&(s[a]=pP(s[a])),!l)}if(Y.isFormData(t)&&Y.isFunction(t.entries)){const n={};return Y.forEachEntry(t,(r,s)=>{e(mP(r),s,n,0)}),n}return null}function gP(t,e,n){if(Y.isString(t))try{return(e||JSON.parse)(t),Y.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(t)}const b1={transitional:a3,adapter:["xhr","http"],transformRequest:[function(e,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,i=Y.isObject(e);if(i&&Y.isHTMLForm(e)&&(e=new FormData(e)),Y.isFormData(e))return s?JSON.stringify(c3(e)):e;if(Y.isArrayBuffer(e)||Y.isBuffer(e)||Y.isStream(e)||Y.isFile(e)||Y.isBlob(e))return e;if(Y.isArrayBufferView(e))return e.buffer;if(Y.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let l;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return fP(e,this.formSerializer).toString();if((l=Y.isFileList(e))||r.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return Zl(l?{"files[]":e}:e,c&&new c,this.formSerializer)}}return i||s?(n.setContentType("application/json",!1),gP(e)):e}],transformResponse:[function(e){const n=this.transitional||b1.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(e&&Y.isString(e)&&(r&&!this.responseType||s)){const a=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(e)}catch(l){if(a)throw l.name==="SyntaxError"?Te.from(l,Te.ERR_BAD_RESPONSE,this,null,this.response):l}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:sr.classes.FormData,Blob:sr.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Y.forEach(["delete","get","head","post","put","patch"],t=>{b1.headers[t]={}});const k1=b1,_P=Y.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"]),yP=t=>{const e={};let n,r,s;return t&&t.split(`
|
|
45
|
+
re.version="2.30.1",sT(qe),re.fn=Q,re.min=ZD,re.max=UD,re.now=qD,re.utc=Jn,re.unix=CE,re.months=ME,re.isDate=Io,re.locale=ts,re.invalid=wl,re.duration=Vn,re.isMoment=Pn,re.weekdays=SE,re.parseZone=xE,re.localeData=Mr,re.isDuration=Ll,re.monthsShort=vE,re.weekdaysMin=DE,re.defineLocale=e1,re.updateLocale=xD,re.locales=MD,re.weekdaysShort=TE,re.normalizeUnits=yn,re.relativeTimeRounding=t$,re.relativeTimeThreshold=n$,re.calendarFormat=wO,re.prototype=Q,re.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const s$={class:"calendar-dropdown"},i$={class:"calendar-dropdown__outer__left"},o$={class:"calendar-dropdown__outer__current"},a$={key:0,class:"calendar-dropdown__inner"},l$={class:"calendar-dropdown__year-switcher"},c$={class:"calendar-dropdown__year-switcher__year"},d$={class:"calendar-dropdown__months"},u$={class:"calendar-dropdown__month-container"},h$=["onClick"],zp=De({__name:"CalendarDropdown",props:o.mergeModels({currentDate:{type:Date}},{year:{},yearModifiers:{},month:{},monthModifiers:{}}),emits:o.mergeModels("onChange",["update:year","update:month"]),setup(t,{emit:e}){const n=e,r=t,s=o.useModel(t,"year"),i=o.useModel(t,"month"),a=re.months(),l=o.ref(!1),c=()=>{l.value=!l.value},d=f=>s.value===r.currentDate.getFullYear()&&f===r.currentDate.getMonth(),u=f=>s.value<r.currentDate.getFullYear()||s.value===r.currentDate.getFullYear()&&f<r.currentDate.getMonth(),h=f=>{n("onChange",{month:f,year:s.value}),c()};return(f,m)=>(o.openBlock(),o.createElementBlock("div",s$,[o.createElementVNode("div",{class:o.normalizeClass(["calendar-dropdown__outer",{"-active":l.value}]),onClick:c},[o.createElementVNode("div",i$,[o.createVNode(o.unref(Ne),{icon:"calendar"}),o.createElementVNode("span",o$,o.toDisplayString(o.unref(a)[i.value]+" "+s.value),1)]),o.createVNode(o.unref(Ne),{class:o.normalizeClass(["calendar-dropdown__outer__switcher",{"-active":l.value}]),icon:"chevron-down-small"},null,8,["class"])],2),l.value?(o.openBlock(),o.createElementBlock("div",a$,[o.createElementVNode("div",l$,[o.createVNode(o.unref(ha),{size:"lg",view:"secondary",icon:"chevron-left",onClick:m[0]||(m[0]=g=>s.value--)}),o.createElementVNode("div",c$,o.toDisplayString(s.value),1),o.createVNode(o.unref(ha),{size:"lg",view:"secondary",icon:"chevron-right",onClick:m[1]||(m[1]=g=>s.value++)})]),o.createElementVNode("div",d$,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(a),(g,p)=>(o.openBlock(),o.createElementBlock("div",u$,[o.createElementVNode("div",{class:o.normalizeClass(["calendar-dropdown__month",{"-active":d(p),"-past":u(p)}]),onClick:_=>h(p)},o.toDisplayString(g),11,h$)]))),256))])])):o.createCommentVNode("",!0)]))}},[["__scopeId","data-v-97075c93"]]),f$={class:"period-dropdown"},m$={class:"period-dropdown__outer__left"},p$={class:"period-dropdown__outer__current"},g$={key:0,class:"period-dropdown__inner"},_$=["onClick"],Ys=De({__name:"PeriodDropdown",props:{modelValue:{},modelModifiers:{}},emits:o.mergeModels("onChange",["update:modelValue"]),setup(t,{emit:e}){const n=e,r=o.useModel(t,"modelValue",{get(c){return s.find(d=>d.id===c)}}),s=[{name:"7 days",short:"7d",id:"week"},{name:"Month",short:"30d",id:"month"},{name:"Quarter",short:"90d",id:"quarter"},{name:"All time",short:"All",id:"all"}],i=o.ref(!1),a=()=>{i.value=!i.value},l=c=>{r.value=c,n("onChange"),a()};return(c,d)=>(o.openBlock(),o.createElementBlock("div",f$,[o.createElementVNode("div",{class:o.normalizeClass(["period-dropdown__outer",{"-active":i.value}]),onClick:a},[o.createElementVNode("div",m$,[o.createVNode(o.unref(Ne),{icon:"clock"}),o.createElementVNode("span",p$,o.toDisplayString(r.value.short),1)]),o.createVNode(o.unref(Ne),{class:o.normalizeClass(["period-dropdown__outer__switcher",{"-active":i.value}]),icon:"chevron-down-small"},null,8,["class"])],2),i.value?(o.openBlock(),o.createElementBlock("div",g$,[(o.openBlock(),o.createElementBlock(o.Fragment,null,o.renderList(s,u=>o.createElementVNode("div",{class:o.normalizeClass(["period-dropdown__option",{"-active":u.id===r.value.id}]),onClick:h=>l(u.id)},[o.createTextVNode(o.toDisplayString(u.name)+" ",1),u.id===r.value.id?(o.openBlock(),o.createBlock(o.unref(Ne),{key:0,icon:"checked"})):o.createCommentVNode("",!0)],10,_$)),64))])):o.createCommentVNode("",!0)]))}},[["__scopeId","data-v-76a97d26"]]),y$={class:"progress-line-container"},w$={class:"progress-line"},b$={class:"progress-line__part"},k$={class:"progress-digits"},C$={class:"progress-digits__value"},x$={class:"progress-digits__value"},M$={class:"progress-digits__value"},Hp=De({__name:"ProgressLine",props:{drawdown:Number,profit:Number,currentProfit:Number,isPercentage:Boolean},setup(t){const e=t,n=o.computed(()=>e.currentProfit>0?Nt(e.currentProfit/e.profit*100):e.currentProfit<0?Nt(e.currentProfit/e.drawdown*100):0),r=a=>{if(!e.profit||!e.currentProfit)return 0;if(a>4){const l=a-5,c=25*l,d=25*(l+1);return n.value>d?100:n.value<c?0:(n.value-c)*4}else{const l=100-25*a,c=100-25*(a-1);return-n.value>c?100:-n.value<l?0:(-n.value-l)*4}},s=a=>{const l=e.currentProfit>0?a-1:a;return a===5?e.currentProfit!==0:r(l)===100},i=o.computed(()=>Math.abs(n.value)>100?n.value<0?"0%":"calc(100% - 88px)":e.currentProfit>0?`calc(${50+n.value/2}% - 88px)`:e.currentProfit<0?50+n.value/2+"%":"50%");return(a,l)=>(o.openBlock(),o.createElementBlock("div",y$,[o.createElementVNode("div",{class:"progress-badge",style:o.normalizeStyle({left:i.value})},o.toDisplayString(n.value)+"% finished",5),o.createElementVNode("div",w$,[(o.openBlock(),o.createElementBlock(o.Fragment,null,o.renderList(9,c=>o.createElementVNode("div",b$,[o.createElementVNode("div",{class:o.normalizeClass(["progress-line__dot",{"-positive":s(c)}])},null,2),c!==9?(o.openBlock(),o.createElementBlock("div",{key:0,class:o.normalizeClass(["progress-line__line",{"-negative-line":c<5}])},[o.createElementVNode("div",{class:"progress-line__progress",style:o.normalizeStyle({width:`${r(c)}%`})},null,4)],2)):o.createCommentVNode("",!0)])),64))]),o.createElementVNode("div",k$,[o.createElementVNode("div",C$,"-"+o.toDisplayString(o.unref(ln)(t.drawdown,{isPercentage:t.isPercentage,isFixed:!0})),1),o.createElementVNode("div",x$,o.toDisplayString(o.unref(ln)(0,{isPercentage:t.isPercentage,isFixed:!0})),1),o.createElementVNode("div",M$," +"+o.toDisplayString(o.unref(ln)(t.profit,{isPercentage:t.isPercentage,isFixed:!0})),1)])]))}},[["__scopeId","data-v-c6fbd53e"]]),v$={class:"widget-chips__text"},Il=De({__name:"WidgetChips",props:{delta:Number,isHidden:Boolean,percentage:Boolean,isNegative:Boolean,isPositive:Boolean},setup(t){const e=t,n=o.computed(()=>e.isHidden?"****":Math.abs(e.delta)+(e.percentage?"%":""));return(r,s)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["widget-chips",t.delta>0&&!t.isNegative||t.isPositive?"-positive":"-negative"])},[o.createVNode(o.unref(Ne),{icon:"bxs_up-arrow",class:"widget-chips__icon"}),o.createElementVNode("div",v$,o.toDisplayString(n.value),1)],2))}},[["__scopeId","data-v-1b121ea0"]]);/*! js-cookie v3.0.5 | MIT */function zl(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)t[r]=n[r]}return t}var S$={read:function(t){return t[0]==='"'&&(t=t.slice(1,-1)),t.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(t){return encodeURIComponent(t).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function m1(t,e){function n(s,i,a){if(!(typeof document>"u")){a=zl({},e,a),typeof a.expires=="number"&&(a.expires=new Date(Date.now()+a.expires*864e5)),a.expires&&(a.expires=a.expires.toUTCString()),s=encodeURIComponent(s).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var l="";for(var c in a)a[c]&&(l+="; "+c,a[c]!==!0&&(l+="="+a[c].split(";")[0]));return document.cookie=s+"="+t.write(i,s)+l}}function r(s){if(!(typeof document>"u"||arguments.length&&!s)){for(var i=document.cookie?document.cookie.split("; "):[],a={},l=0;l<i.length;l++){var c=i[l].split("="),d=c.slice(1).join("=");try{var u=decodeURIComponent(c[0]);if(a[u]=t.read(d,u),s===u)break}catch{}}return s?a[s]:a}}return Object.create({set:n,get:r,remove:function(s,i){n(s,"",zl({},i,{expires:-1}))},withAttributes:function(s){return m1(this.converter,zl({},this.attributes,s))},withConverter:function(s){return m1(zl({},this.converter,s),this.attributes)}},{attributes:{value:Object.freeze(e)},converter:{value:Object.freeze(t)}})}var Pi=m1(S$,{path:"/"});class on{static setItem(e,n,r=Date.now()+31449600){Pi.set(e,n,{domain:window.location.hostname==="localhost"?"localhost":".scope360.io",expires:new Date(r*1e3),secure:!0,sameSite:"strict"})}static getItem(e){return Pi.get(e)}static removeItem(e){Pi.remove(e,{domain:window.location.hostname==="localhost"?"localhost":".scope360.io"})}static clear(){const e=Object.keys(Pi.get());for(const n of e)Pi.remove(n,{domain:window.location.hostname==="localhost"?"localhost":".scope360.io"})}static getAll(){return Pi.get()}}function Yp(t,e){return function(){return t.apply(e,arguments)}}const{toString:T$}=Object.prototype,{getPrototypeOf:p1}=Object,Hl=(t=>e=>{const n=T$.call(e);return t[n]||(t[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),rr=t=>(t=t.toLowerCase(),e=>Hl(e)===t),Yl=t=>e=>typeof e===t,{isArray:Li}=Array,Xo=Yl("undefined");function D$(t){return t!==null&&!Xo(t)&&t.constructor!==null&&!Xo(t.constructor)&&bn(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const Wp=rr("ArrayBuffer");function O$(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&Wp(t.buffer),e}const E$=Yl("string"),bn=Yl("function"),jp=Yl("number"),Wl=t=>t!==null&&typeof t=="object",$$=t=>t===!0||t===!1,jl=t=>{if(Hl(t)!=="object")return!1;const e=p1(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},P$=rr("Date"),L$=rr("File"),V$=rr("Blob"),N$=rr("FileList"),B$=t=>Wl(t)&&bn(t.pipe),A$=t=>{let e;return t&&(typeof FormData=="function"&&t instanceof FormData||bn(t.append)&&((e=Hl(t))==="formdata"||e==="object"&&bn(t.toString)&&t.toString()==="[object FormData]"))},R$=rr("URLSearchParams"),F$=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Qo(t,e,{allOwnKeys:n=!1}={}){if(t===null||typeof t>"u")return;let r,s;if(typeof t!="object"&&(t=[t]),Li(t))for(r=0,s=t.length;r<s;r++)e.call(null,t[r],r,t);else{const i=n?Object.getOwnPropertyNames(t):Object.keys(t),a=i.length;let l;for(r=0;r<a;r++)l=i[r],e.call(null,t[l],l,t)}}function Zp(t,e){e=e.toLowerCase();const n=Object.keys(t);let r=n.length,s;for(;r-- >0;)if(s=n[r],e===s.toLowerCase())return s;return null}const Up=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,qp=t=>!Xo(t)&&t!==Up;function g1(){const{caseless:t}=qp(this)&&this||{},e={},n=(r,s)=>{const i=t&&Zp(e,s)||s;jl(e[i])&&jl(r)?e[i]=g1(e[i],r):jl(r)?e[i]=g1({},r):Li(r)?e[i]=r.slice():e[i]=r};for(let r=0,s=arguments.length;r<s;r++)arguments[r]&&Qo(arguments[r],n);return e}const I$=(t,e,n,{allOwnKeys:r}={})=>(Qo(e,(s,i)=>{n&&bn(s)?t[i]=Yp(s,n):t[i]=s},{allOwnKeys:r}),t),z$=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),H$=(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},Y$=(t,e,n,r)=>{let s,i,a;const l={};if(e=e||{},t==null)return e;do{for(s=Object.getOwnPropertyNames(t),i=s.length;i-- >0;)a=s[i],(!r||r(a,t,e))&&!l[a]&&(e[a]=t[a],l[a]=!0);t=n!==!1&&p1(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},W$=(t,e,n)=>{t=String(t),(n===void 0||n>t.length)&&(n=t.length),n-=e.length;const r=t.indexOf(e,n);return r!==-1&&r===n},j$=t=>{if(!t)return null;if(Li(t))return t;let e=t.length;if(!jp(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},Z$=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&p1(Uint8Array)),U$=(t,e)=>{const r=(t&&t[Symbol.iterator]).call(t);let s;for(;(s=r.next())&&!s.done;){const i=s.value;e.call(t,i[0],i[1])}},q$=(t,e)=>{let n;const r=[];for(;(n=t.exec(e))!==null;)r.push(n);return r},G$=rr("HTMLFormElement"),K$=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,s){return r.toUpperCase()+s}),Gp=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),X$=rr("RegExp"),Kp=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};Qo(n,(s,i)=>{let a;(a=e(s,i,t))!==!1&&(r[i]=a||s)}),Object.defineProperties(t,r)},Q$=t=>{Kp(t,(e,n)=>{if(bn(t)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=t[n];if(bn(r)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},J$=(t,e)=>{const n={},r=s=>{s.forEach(i=>{n[i]=!0})};return Li(t)?r(t):r(String(t).split(e)),n},eP=()=>{},tP=(t,e)=>(t=+t,Number.isFinite(t)?t:e),_1="abcdefghijklmnopqrstuvwxyz",Xp="0123456789",Qp={DIGIT:Xp,ALPHA:_1,ALPHA_DIGIT:_1+_1.toUpperCase()+Xp},nP=(t=16,e=Qp.ALPHA_DIGIT)=>{let n="";const{length:r}=e;for(;t--;)n+=e[Math.random()*r|0];return n};function rP(t){return!!(t&&bn(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const sP=t=>{const e=new Array(10),n=(r,s)=>{if(Wl(r)){if(e.indexOf(r)>=0)return;if(!("toJSON"in r)){e[s]=r;const i=Li(r)?[]:{};return Qo(r,(a,l)=>{const c=n(a,s+1);!Xo(c)&&(i[l]=c)}),e[s]=void 0,i}}return r};return n(t,0)},iP=rr("AsyncFunction"),Y={isArray:Li,isArrayBuffer:Wp,isBuffer:D$,isFormData:A$,isArrayBufferView:O$,isString:E$,isNumber:jp,isBoolean:$$,isObject:Wl,isPlainObject:jl,isUndefined:Xo,isDate:P$,isFile:L$,isBlob:V$,isRegExp:X$,isFunction:bn,isStream:B$,isURLSearchParams:R$,isTypedArray:Z$,isFileList:N$,forEach:Qo,merge:g1,extend:I$,trim:F$,stripBOM:z$,inherits:H$,toFlatObject:Y$,kindOf:Hl,kindOfTest:rr,endsWith:W$,toArray:j$,forEachEntry:U$,matchAll:q$,isHTMLForm:G$,hasOwnProperty:Gp,hasOwnProp:Gp,reduceDescriptors:Kp,freezeMethods:Q$,toObjectSet:J$,toCamelCase:K$,noop:eP,toFiniteNumber:tP,findKey:Zp,global:Up,isContextDefined:qp,ALPHABET:Qp,generateString:nP,isSpecCompliantForm:rP,toJSONObject:sP,isAsyncFn:iP,isThenable:t=>t&&(Wl(t)||bn(t))&&bn(t.then)&&bn(t.catch)};function Te(t,e,n,r,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),r&&(this.request=r),s&&(this.response=s)}Y.inherits(Te,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:Y.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Jp=Te.prototype,e3={};["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(t=>{e3[t]={value:t}}),Object.defineProperties(Te,e3),Object.defineProperty(Jp,"isAxiosError",{value:!0}),Te.from=(t,e,n,r,s,i)=>{const a=Object.create(Jp);return Y.toFlatObject(t,a,function(c){return c!==Error.prototype},l=>l!=="isAxiosError"),Te.call(a,t.message,e,n,r,s),a.cause=t,a.name=t.name,i&&Object.assign(a,i),a};const oP=null;function y1(t){return Y.isPlainObject(t)||Y.isArray(t)}function t3(t){return Y.endsWith(t,"[]")?t.slice(0,-2):t}function n3(t,e,n){return t?t.concat(e).map(function(s,i){return s=t3(s),!n&&i?"["+s+"]":s}).join(n?".":""):e}function aP(t){return Y.isArray(t)&&!t.some(y1)}const lP=Y.toFlatObject(Y,{},null,function(e){return/^is[A-Z]/.test(e)});function Zl(t,e,n){if(!Y.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,n=Y.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(p,_){return!Y.isUndefined(_[p])});const r=n.metaTokens,s=n.visitor||u,i=n.dots,a=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&Y.isSpecCompliantForm(e);if(!Y.isFunction(s))throw new TypeError("visitor must be a function");function d(g){if(g===null)return"";if(Y.isDate(g))return g.toISOString();if(!c&&Y.isBlob(g))throw new Te("Blob is not supported. Use a Buffer instead.");return Y.isArrayBuffer(g)||Y.isTypedArray(g)?c&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function u(g,p,_){let y=g;if(g&&!_&&typeof g=="object"){if(Y.endsWith(p,"{}"))p=r?p:p.slice(0,-2),g=JSON.stringify(g);else if(Y.isArray(g)&&aP(g)||(Y.isFileList(g)||Y.endsWith(p,"[]"))&&(y=Y.toArray(g)))return p=t3(p),y.forEach(function(k,S){!(Y.isUndefined(k)||k===null)&&e.append(a===!0?n3([p],S,i):a===null?p:p+"[]",d(k))}),!1}return y1(g)?!0:(e.append(n3(_,p,i),d(g)),!1)}const h=[],f=Object.assign(lP,{defaultVisitor:u,convertValue:d,isVisitable:y1});function m(g,p){if(!Y.isUndefined(g)){if(h.indexOf(g)!==-1)throw Error("Circular reference detected in "+p.join("."));h.push(g),Y.forEach(g,function(y,C){(!(Y.isUndefined(y)||y===null)&&s.call(e,y,Y.isString(C)?C.trim():C,p,f))===!0&&m(y,p?p.concat(C):[C])}),h.pop()}}if(!Y.isObject(t))throw new TypeError("data must be an object");return m(t),e}function r3(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(r){return e[r]})}function w1(t,e){this._pairs=[],t&&Zl(t,this,e)}const s3=w1.prototype;s3.append=function(e,n){this._pairs.push([e,n])},s3.toString=function(e){const n=e?function(r){return e.call(this,r,r3)}:r3;return this._pairs.map(function(s){return n(s[0])+"="+n(s[1])},"").join("&")};function cP(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function i3(t,e,n){if(!e)return t;const r=n&&n.encode||cP,s=n&&n.serialize;let i;if(s?i=s(e,n):i=Y.isURLSearchParams(e)?e.toString():new w1(e,n).toString(r),i){const a=t.indexOf("#");a!==-1&&(t=t.slice(0,a)),t+=(t.indexOf("?")===-1?"?":"&")+i}return t}class o3{constructor(){this.handlers=[]}use(e,n,r){return this.handlers.push({fulfilled:e,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){Y.forEach(this.handlers,function(r){r!==null&&e(r)})}}const a3={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},dP={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:w1,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},l3=typeof window<"u"&&typeof document<"u",uP=(t=>l3&&["ReactNative","NativeScript","NS"].indexOf(t)<0)(typeof navigator<"u"&&navigator.product),hP=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",sr={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:l3,hasStandardBrowserEnv:uP,hasStandardBrowserWebWorkerEnv:hP},Symbol.toStringTag,{value:"Module"})),...dP};function fP(t,e){return Zl(t,new sr.classes.URLSearchParams,Object.assign({visitor:function(n,r,s,i){return sr.isNode&&Y.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},e))}function mP(t){return Y.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function pP(t){const e={},n=Object.keys(t);let r;const s=n.length;let i;for(r=0;r<s;r++)i=n[r],e[i]=t[i];return e}function c3(t){function e(n,r,s,i){let a=n[i++];if(a==="__proto__")return!0;const l=Number.isFinite(+a),c=i>=n.length;return a=!a&&Y.isArray(s)?s.length:a,c?(Y.hasOwnProp(s,a)?s[a]=[s[a],r]:s[a]=r,!l):((!s[a]||!Y.isObject(s[a]))&&(s[a]=[]),e(n,r,s[a],i)&&Y.isArray(s[a])&&(s[a]=pP(s[a])),!l)}if(Y.isFormData(t)&&Y.isFunction(t.entries)){const n={};return Y.forEachEntry(t,(r,s)=>{e(mP(r),s,n,0)}),n}return null}function gP(t,e,n){if(Y.isString(t))try{return(e||JSON.parse)(t),Y.trim(t)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(t)}const b1={transitional:a3,adapter:["xhr","http"],transformRequest:[function(e,n){const r=n.getContentType()||"",s=r.indexOf("application/json")>-1,i=Y.isObject(e);if(i&&Y.isHTMLForm(e)&&(e=new FormData(e)),Y.isFormData(e))return s?JSON.stringify(c3(e)):e;if(Y.isArrayBuffer(e)||Y.isBuffer(e)||Y.isStream(e)||Y.isFile(e)||Y.isBlob(e))return e;if(Y.isArrayBufferView(e))return e.buffer;if(Y.isURLSearchParams(e))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let l;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return fP(e,this.formSerializer).toString();if((l=Y.isFileList(e))||r.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return Zl(l?{"files[]":e}:e,c&&new c,this.formSerializer)}}return i||s?(n.setContentType("application/json",!1),gP(e)):e}],transformResponse:[function(e){const n=this.transitional||b1.transitional,r=n&&n.forcedJSONParsing,s=this.responseType==="json";if(e&&Y.isString(e)&&(r&&!this.responseType||s)){const a=!(n&&n.silentJSONParsing)&&s;try{return JSON.parse(e)}catch(l){if(a)throw l.name==="SyntaxError"?Te.from(l,Te.ERR_BAD_RESPONSE,this,null,this.response):l}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:sr.classes.FormData,Blob:sr.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Y.forEach(["delete","get","head","post","put","patch"],t=>{b1.headers[t]={}});const k1=b1,_P=Y.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"]),yP=t=>{const e={};let n,r,s;return t&&t.split(`
|
|
46
46
|
`).forEach(function(a){s=a.indexOf(":"),n=a.substring(0,s).trim().toLowerCase(),r=a.substring(s+1).trim(),!(!n||e[n]&&_P[n])&&(n==="set-cookie"?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)}),e},d3=Symbol("internals");function Jo(t){return t&&String(t).trim().toLowerCase()}function Ul(t){return t===!1||t==null?t:Y.isArray(t)?t.map(Ul):String(t)}function wP(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(t);)e[r[1]]=r[2];return e}const bP=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function C1(t,e,n,r,s){if(Y.isFunction(r))return r.call(this,e,n);if(s&&(e=n),!!Y.isString(e)){if(Y.isString(r))return e.indexOf(r)!==-1;if(Y.isRegExp(r))return r.test(e)}}function kP(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,n,r)=>n.toUpperCase()+r)}function CP(t,e){const n=Y.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(t,r+n,{value:function(s,i,a){return this[r].call(this,e,s,i,a)},configurable:!0})})}class ql{constructor(e){e&&this.set(e)}set(e,n,r){const s=this;function i(l,c,d){const u=Jo(c);if(!u)throw new Error("header name must be a non-empty string");const h=Y.findKey(s,u);(!h||s[h]===void 0||d===!0||d===void 0&&s[h]!==!1)&&(s[h||c]=Ul(l))}const a=(l,c)=>Y.forEach(l,(d,u)=>i(d,u,c));return Y.isPlainObject(e)||e instanceof this.constructor?a(e,n):Y.isString(e)&&(e=e.trim())&&!bP(e)?a(yP(e),n):e!=null&&i(n,e,r),this}get(e,n){if(e=Jo(e),e){const r=Y.findKey(this,e);if(r){const s=this[r];if(!n)return s;if(n===!0)return wP(s);if(Y.isFunction(n))return n.call(this,s,r);if(Y.isRegExp(n))return n.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,n){if(e=Jo(e),e){const r=Y.findKey(this,e);return!!(r&&this[r]!==void 0&&(!n||C1(this,this[r],r,n)))}return!1}delete(e,n){const r=this;let s=!1;function i(a){if(a=Jo(a),a){const l=Y.findKey(r,a);l&&(!n||C1(r,r[l],l,n))&&(delete r[l],s=!0)}}return Y.isArray(e)?e.forEach(i):i(e),s}clear(e){const n=Object.keys(this);let r=n.length,s=!1;for(;r--;){const i=n[r];(!e||C1(this,this[i],i,e,!0))&&(delete this[i],s=!0)}return s}normalize(e){const n=this,r={};return Y.forEach(this,(s,i)=>{const a=Y.findKey(r,i);if(a){n[a]=Ul(s),delete n[i];return}const l=e?kP(i):String(i).trim();l!==i&&delete n[i],n[l]=Ul(s),r[l]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const n=Object.create(null);return Y.forEach(this,(r,s)=>{r!=null&&r!==!1&&(n[s]=e&&Y.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,n])=>e+": "+n).join(`
|
|
47
47
|
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...n){const r=new this(e);return n.forEach(s=>r.set(s)),r}static accessor(e){const r=(this[d3]=this[d3]={accessors:{}}).accessors,s=this.prototype;function i(a){const l=Jo(a);r[l]||(CP(s,a),r[l]=!0)}return Y.isArray(e)?e.forEach(i):i(e),this}}ql.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),Y.reduceDescriptors(ql.prototype,({value:t},e)=>{let n=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(r){this[n]=r}}}),Y.freezeMethods(ql);const Dr=ql;function x1(t,e){const n=this||k1,r=e||n,s=Dr.from(r.headers);let i=r.data;return Y.forEach(t,function(l){i=l.call(n,i,s.normalize(),e?e.status:void 0)}),s.normalize(),i}function u3(t){return!!(t&&t.__CANCEL__)}function ea(t,e,n){Te.call(this,t??"canceled",Te.ERR_CANCELED,e,n),this.name="CanceledError"}Y.inherits(ea,Te,{__CANCEL__:!0});function xP(t,e,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?t(n):e(new Te("Request failed with status code "+n.status,[Te.ERR_BAD_REQUEST,Te.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const MP=sr.hasStandardBrowserEnv?{write(t,e,n,r,s,i){const a=[t+"="+encodeURIComponent(e)];Y.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),Y.isString(r)&&a.push("path="+r),Y.isString(s)&&a.push("domain="+s),i===!0&&a.push("secure"),document.cookie=a.join("; ")},read(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function vP(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function SP(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function h3(t,e){return t&&!vP(e)?SP(t,e):e}const TP=sr.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function s(i){let a=i;return e&&(n.setAttribute("href",a),a=n.href),n.setAttribute("href",a),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=s(window.location.href),function(a){const l=Y.isString(a)?s(a):a;return l.protocol===r.protocol&&l.host===r.host}}():function(){return function(){return!0}}();function DP(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function OP(t,e){t=t||10;const n=new Array(t),r=new Array(t);let s=0,i=0,a;return e=e!==void 0?e:1e3,function(c){const d=Date.now(),u=r[i];a||(a=d),n[s]=c,r[s]=d;let h=i,f=0;for(;h!==s;)f+=n[h++],h=h%t;if(s=(s+1)%t,s===i&&(i=(i+1)%t),d-a<e)return;const m=u&&d-u;return m?Math.round(f*1e3/m):void 0}}function f3(t,e){let n=0;const r=OP(50,250);return s=>{const i=s.loaded,a=s.lengthComputable?s.total:void 0,l=i-n,c=r(l),d=i<=a;n=i;const u={loaded:i,total:a,progress:a?i/a:void 0,bytes:l,rate:c||void 0,estimated:c&&a&&d?(a-i)/c:void 0,event:s};u[e?"download":"upload"]=!0,t(u)}}const M1={http:oP,xhr:typeof XMLHttpRequest<"u"&&function(t){return new Promise(function(n,r){let s=t.data;const i=Dr.from(t.headers).normalize();let{responseType:a,withXSRFToken:l}=t,c;function d(){t.cancelToken&&t.cancelToken.unsubscribe(c),t.signal&&t.signal.removeEventListener("abort",c)}let u;if(Y.isFormData(s)){if(sr.hasStandardBrowserEnv||sr.hasStandardBrowserWebWorkerEnv)i.setContentType(!1);else if((u=i.getContentType())!==!1){const[p,..._]=u?u.split(";").map(y=>y.trim()).filter(Boolean):[];i.setContentType([p||"multipart/form-data",..._].join("; "))}}let h=new XMLHttpRequest;if(t.auth){const p=t.auth.username||"",_=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";i.set("Authorization","Basic "+btoa(p+":"+_))}const f=h3(t.baseURL,t.url);h.open(t.method.toUpperCase(),i3(f,t.params,t.paramsSerializer),!0),h.timeout=t.timeout;function m(){if(!h)return;const p=Dr.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders()),y={data:!a||a==="text"||a==="json"?h.responseText:h.response,status:h.status,statusText:h.statusText,headers:p,config:t,request:h};xP(function(k){n(k),d()},function(k){r(k),d()},y),h=null}if("onloadend"in h?h.onloadend=m:h.onreadystatechange=function(){!h||h.readyState!==4||h.status===0&&!(h.responseURL&&h.responseURL.indexOf("file:")===0)||setTimeout(m)},h.onabort=function(){h&&(r(new Te("Request aborted",Te.ECONNABORTED,t,h)),h=null)},h.onerror=function(){r(new Te("Network Error",Te.ERR_NETWORK,t,h)),h=null},h.ontimeout=function(){let _=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded";const y=t.transitional||a3;t.timeoutErrorMessage&&(_=t.timeoutErrorMessage),r(new Te(_,y.clarifyTimeoutError?Te.ETIMEDOUT:Te.ECONNABORTED,t,h)),h=null},sr.hasStandardBrowserEnv&&(l&&Y.isFunction(l)&&(l=l(t)),l||l!==!1&&TP(f))){const p=t.xsrfHeaderName&&t.xsrfCookieName&&MP.read(t.xsrfCookieName);p&&i.set(t.xsrfHeaderName,p)}s===void 0&&i.setContentType(null),"setRequestHeader"in h&&Y.forEach(i.toJSON(),function(_,y){h.setRequestHeader(y,_)}),Y.isUndefined(t.withCredentials)||(h.withCredentials=!!t.withCredentials),a&&a!=="json"&&(h.responseType=t.responseType),typeof t.onDownloadProgress=="function"&&h.addEventListener("progress",f3(t.onDownloadProgress,!0)),typeof t.onUploadProgress=="function"&&h.upload&&h.upload.addEventListener("progress",f3(t.onUploadProgress)),(t.cancelToken||t.signal)&&(c=p=>{h&&(r(!p||p.type?new ea(null,t,h):p),h.abort(),h=null)},t.cancelToken&&t.cancelToken.subscribe(c),t.signal&&(t.signal.aborted?c():t.signal.addEventListener("abort",c)));const g=DP(f);if(g&&sr.protocols.indexOf(g)===-1){r(new Te("Unsupported protocol "+g+":",Te.ERR_BAD_REQUEST,t));return}h.send(s||null)})}};Y.forEach(M1,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const m3=t=>`- ${t}`,EP=t=>Y.isFunction(t)||t===null||t===!1,p3={getAdapter:t=>{t=Y.isArray(t)?t:[t];const{length:e}=t;let n,r;const s={};for(let i=0;i<e;i++){n=t[i];let a;if(r=n,!EP(n)&&(r=M1[(a=String(n)).toLowerCase()],r===void 0))throw new Te(`Unknown adapter '${a}'`);if(r)break;s[a||"#"+i]=r}if(!r){const i=Object.entries(s).map(([l,c])=>`adapter ${l} `+(c===!1?"is not supported by the environment":"is not available in the build"));let a=e?i.length>1?`since :
|
|
48
48
|
`+i.map(m3).join(`
|