Socket
Socket
Sign inDemoInstall

vue3-calendar-heatmap

Package Overview
Dependencies
23
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.0-beta.1 to 2.0.0

6

dist/src/components/CalendarHeatmap.vue.d.ts

@@ -37,3 +37,3 @@ import { PropType } from 'vue';

noDataText: {
type: StringConstructor;
type: (BooleanConstructor | StringConstructor)[];
default: null;

@@ -414,3 +414,3 @@ };

vertical: boolean;
noDataText: string;
noDataText: string | boolean;
round: number;

@@ -428,5 +428,5 @@ } & {

vertical: boolean;
noDataText: string;
noDataText: string | boolean;
round: number;
}>;
export default _default;

@@ -1,1 +0,1 @@

var Di=Object.defineProperty;var pr=Object.getOwnPropertySymbols;var Ti=Object.prototype.hasOwnProperty,_i=Object.prototype.propertyIsEnumerable;var _t=(U,u,S)=>u in U?Di(U,u,{enumerable:!0,configurable:!0,writable:!0,value:S}):U[u]=S,xt=(U,u)=>{for(var S in u||(u={}))Ti.call(u,S)&&_t(U,S,u[S]);if(pr)for(var S of pr(u))_i.call(u,S)&&_t(U,S,u[S]);return U};var Q=(U,u,S)=>(_t(U,typeof u!="symbol"?u+"":u,S),S);(function(U,u){typeof exports=="object"&&typeof module!="undefined"?u(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],u):(U=typeof globalThis!="undefined"?globalThis:U||self,u(U.CalendarHeatmap={},U.Vue))})(this,function(U,u){"use strict";const pe=class{constructor(t,r,i){Q(this,"startDate");Q(this,"endDate");Q(this,"max");Q(this,"_values");Q(this,"_firstFullWeekOfMonths");Q(this,"_activities");Q(this,"_calendar");this.endDate=this.parseDate(t),this.max=i||Math.ceil(Math.max(...r.map(a=>a.count))/5*4),this.startDate=this.shiftDate(t,-pe.DAYS_IN_ONE_YEAR),this._values=r}set values(t){this.max=Math.ceil(Math.max(...t.map(r=>r.count))/5*4),this._values=t,this._firstFullWeekOfMonths=void 0,this._calendar=void 0,this._activities=void 0}get values(){return this._values}get activities(){if(!this._activities){this._activities=new Map;for(let t=0,r=this.values.length;t<r;t++)this._activities.set(this.keyDayParser(this.values[t].date),{count:this.values[t].count,colorIndex:this.getColorIndex(this.values[t].count)})}return this._activities}get weekCount(){return this.getDaysCount()/pe.DAYS_IN_WEEK}get calendar(){if(!this._calendar){let t=this.shiftDate(this.startDate,-this.getCountEmptyDaysAtStart());t=new Date(t.getFullYear(),t.getMonth(),t.getDate()),this._calendar=new Array(this.weekCount);for(let r=0,i=this._calendar.length;r<i;r++){this._calendar[r]=new Array(pe.DAYS_IN_WEEK);for(let a=0;a<pe.DAYS_IN_WEEK;a++){const o=this.activities.get(this.keyDayParser(t));this._calendar[r][a]={date:new Date(t.valueOf()),count:o?o.count:void 0,colorIndex:o?o.colorIndex:0},t.setDate(t.getDate()+1)}}}return this._calendar}get firstFullWeekOfMonths(){if(!this._firstFullWeekOfMonths){const t=this.calendar;this._firstFullWeekOfMonths=[];for(let r=1,i=t.length;r<i;r++){const a=t[r-1][0].date,o=t[r][0].date;(a.getFullYear()<o.getFullYear()||a.getMonth()<o.getMonth())&&this._firstFullWeekOfMonths.push({value:o.getMonth(),index:r})}}return this._firstFullWeekOfMonths}getColorIndex(t){return t==null?0:t<=0?1:t>=this.max?5:Math.ceil(t*100/this.max*.03)+1}getCountEmptyDaysAtStart(){return this.startDate.getDay()}getCountEmptyDaysAtEnd(){return pe.DAYS_IN_WEEK-1-this.endDate.getDay()}getDaysCount(){return pe.DAYS_IN_ONE_YEAR+1+this.getCountEmptyDaysAtStart()+this.getCountEmptyDaysAtEnd()}shiftDate(t,r){const i=new Date(t);return i.setDate(i.getDate()+r),i}parseDate(t){return t instanceof Date?t:new Date(t)}keyDayParser(t){const r=this.parseDate(t);return String(r.getFullYear())+String(r.getMonth()).padStart(2,"0")+String(r.getDate()).padStart(2,"0")}};let S=pe;Q(S,"DEFAULT_RANGE_COLOR",["#ebedf0","#dae2ef","#c0ddf9","#73b3f3","#3886e1","#17459e"]),Q(S,"DEFAULT_LOCALE",{months:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],days:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],on:"on",less:"Less",more:"More"}),Q(S,"DEFAULT_TOOLTIP_UNIT","contributions"),Q(S,"DAYS_IN_ONE_YEAR",365),Q(S,"DAYS_IN_WEEK",7),Q(S,"SQUARE_SIZE",10);var j="top",q="bottom",z="right",V="left",ct="auto",Le=[j,q,z,V],Oe="start",Me="end",dr="clippingParents",Rt="viewport",$e="popper",vr="reference",Ct=Le.reduce(function(e,t){return e.concat([t+"-"+Oe,t+"-"+Me])},[]),It=[].concat(Le,[ct]).reduce(function(e,t){return e.concat([t,t+"-"+Oe,t+"-"+Me])},[]),hr="beforeRead",mr="read",gr="afterRead",yr="beforeMain",br="main",Er="afterMain",wr="beforeWrite",Or="write",Sr="afterWrite",Ar=[hr,mr,gr,yr,br,Er,wr,Or,Sr];function re(e){return e?(e.nodeName||"").toLowerCase():null}function J(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Se(e){var t=J(e).Element;return e instanceof t||e instanceof Element}function X(e){var t=J(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function kt(e){if(typeof ShadowRoot=="undefined")return!1;var t=J(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Dr(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var i=t.styles[r]||{},a=t.attributes[r]||{},o=t.elements[r];!X(o)||!re(o)||(Object.assign(o.style,i),Object.keys(a).forEach(function(s){var c=a[s];c===!1?o.removeAttribute(s):o.setAttribute(s,c===!0?"":c)}))})}function Tr(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(i){var a=t.elements[i],o=t.attributes[i]||{},s=Object.keys(t.styles.hasOwnProperty(i)?t.styles[i]:r[i]),c=s.reduce(function(f,v){return f[v]="",f},{});!X(a)||!re(a)||(Object.assign(a.style,c),Object.keys(o).forEach(function(f){a.removeAttribute(f)}))})}}var Bt={name:"applyStyles",enabled:!0,phase:"write",fn:Dr,effect:Tr,requires:["computeStyles"]};function ne(e){return e.split("-")[0]}var he=Math.max,Ze=Math.min,Ae=Math.round;function De(e,t){t===void 0&&(t=!1);var r=e.getBoundingClientRect(),i=1,a=1;if(X(e)&&t){var o=e.offsetHeight,s=e.offsetWidth;s>0&&(i=Ae(r.width)/s||1),o>0&&(a=Ae(r.height)/o||1)}return{width:r.width/i,height:r.height/a,top:r.top/a,right:r.right/i,bottom:r.bottom/a,left:r.left/i,x:r.left/i,y:r.top/a}}function ft(e){var t=De(e),r=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:i}}function Lt(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&kt(r)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function ie(e){return J(e).getComputedStyle(e)}function _r(e){return["table","td","th"].indexOf(re(e))>=0}function fe(e){return((Se(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ye(e){return re(e)==="html"?e:e.assignedSlot||e.parentNode||(kt(e)?e.host:null)||fe(e)}function Mt(e){return!X(e)||ie(e).position==="fixed"?null:e.offsetParent}function xr(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,r=navigator.userAgent.indexOf("Trident")!==-1;if(r&&X(e)){var i=ie(e);if(i.position==="fixed")return null}for(var a=Ye(e);X(a)&&["html","body"].indexOf(re(a))<0;){var o=ie(a);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return a;a=a.parentNode}return null}function Ue(e){for(var t=J(e),r=Mt(e);r&&_r(r)&&ie(r).position==="static";)r=Mt(r);return r&&(re(r)==="html"||re(r)==="body"&&ie(r).position==="static")?t:r||xr(e)||t}function pt(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Pe(e,t,r){return he(e,Ze(t,r))}function Rr(e,t,r){var i=Pe(e,t,r);return i>r?r:i}function $t(){return{top:0,right:0,bottom:0,left:0}}function Ut(e){return Object.assign({},$t(),e)}function Pt(e,t){return t.reduce(function(r,i){return r[i]=e,r},{})}var Cr=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,Ut(typeof t!="number"?t:Pt(t,Le))};function Ir(e){var t,r=e.state,i=e.name,a=e.options,o=r.elements.arrow,s=r.modifiersData.popperOffsets,c=ne(r.placement),f=pt(c),v=[V,z].indexOf(c)>=0,p=v?"height":"width";if(!(!o||!s)){var A=Cr(a.padding,r),x=ft(o),w=f==="y"?j:V,E=f==="y"?q:z,D=r.rects.reference[p]+r.rects.reference[f]-s[f]-r.rects.popper[p],O=s[f]-r.rects.reference[f],y=Ue(o),_=y?f==="y"?y.clientHeight||0:y.clientWidth||0:0,B=D/2-O/2,n=A[w],m=_-x[p]-A[E],d=_/2-x[p]/2+B,T=Pe(n,d,m),I=f;r.modifiersData[i]=(t={},t[I]=T,t.centerOffset=T-d,t)}}function kr(e){var t=e.state,r=e.options,i=r.element,a=i===void 0?"[data-popper-arrow]":i;a!=null&&(typeof a=="string"&&(a=t.elements.popper.querySelector(a),!a)||!Lt(t.elements.popper,a)||(t.elements.arrow=a))}var Br={name:"arrow",enabled:!0,phase:"main",fn:Ir,effect:kr,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Te(e){return e.split("-")[1]}var Lr={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Mr(e){var t=e.x,r=e.y,i=window,a=i.devicePixelRatio||1;return{x:Ae(t*a)/a||0,y:Ae(r*a)/a||0}}function Nt(e){var t,r=e.popper,i=e.popperRect,a=e.placement,o=e.variation,s=e.offsets,c=e.position,f=e.gpuAcceleration,v=e.adaptive,p=e.roundOffsets,A=e.isFixed,x=p===!0?Mr(s):typeof p=="function"?p(s):s,w=x.x,E=w===void 0?0:w,D=x.y,O=D===void 0?0:D,y=s.hasOwnProperty("x"),_=s.hasOwnProperty("y"),B=V,n=j,m=window;if(v){var d=Ue(r),T="clientHeight",I="clientWidth";if(d===J(r)&&(d=fe(r),ie(d).position!=="static"&&c==="absolute"&&(T="scrollHeight",I="scrollWidth")),d=d,a===j||(a===V||a===z)&&o===Me){n=q;var M=A&&m.visualViewport?m.visualViewport.height:d[T];O-=M-i.height,O*=f?1:-1}if(a===V||(a===j||a===q)&&o===Me){B=z;var $=A&&m.visualViewport?m.visualViewport.width:d[I];E-=$-i.width,E*=f?1:-1}}var k=Object.assign({position:c},v&&Lr);if(f){var C;return Object.assign({},k,(C={},C[n]=_?"0":"",C[B]=y?"0":"",C.transform=(m.devicePixelRatio||1)<=1?"translate("+E+"px, "+O+"px)":"translate3d("+E+"px, "+O+"px, 0)",C))}return Object.assign({},k,(t={},t[n]=_?O+"px":"",t[B]=y?E+"px":"",t.transform="",t))}function $r(e){var t=e.state,r=e.options,i=r.gpuAcceleration,a=i===void 0?!0:i,o=r.adaptive,s=o===void 0?!0:o,c=r.roundOffsets,f=c===void 0?!0:c,v={placement:ne(t.placement),variation:Te(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Nt(Object.assign({},v,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:f})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Nt(Object.assign({},v,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:f})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var Ur={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:$r,data:{}},qe={passive:!0};function Pr(e){var t=e.state,r=e.instance,i=e.options,a=i.scroll,o=a===void 0?!0:a,s=i.resize,c=s===void 0?!0:s,f=J(t.elements.popper),v=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&v.forEach(function(p){p.addEventListener("scroll",r.update,qe)}),c&&f.addEventListener("resize",r.update,qe),function(){o&&v.forEach(function(p){p.removeEventListener("scroll",r.update,qe)}),c&&f.removeEventListener("resize",r.update,qe)}}var Nr={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Pr,data:{}},Fr={left:"right",right:"left",bottom:"top",top:"bottom"};function ze(e){return e.replace(/left|right|bottom|top/g,function(t){return Fr[t]})}var Wr={start:"end",end:"start"};function Ft(e){return e.replace(/start|end/g,function(t){return Wr[t]})}function dt(e){var t=J(e),r=t.pageXOffset,i=t.pageYOffset;return{scrollLeft:r,scrollTop:i}}function vt(e){return De(fe(e)).left+dt(e).scrollLeft}function jr(e){var t=J(e),r=fe(e),i=t.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;return i&&(a=i.width,o=i.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(s=i.offsetLeft,c=i.offsetTop)),{width:a,height:o,x:s+vt(e),y:c}}function Vr(e){var t,r=fe(e),i=dt(e),a=(t=e.ownerDocument)==null?void 0:t.body,o=he(r.scrollWidth,r.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),s=he(r.scrollHeight,r.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),c=-i.scrollLeft+vt(e),f=-i.scrollTop;return ie(a||r).direction==="rtl"&&(c+=he(r.clientWidth,a?a.clientWidth:0)-o),{width:o,height:s,x:c,y:f}}function ht(e){var t=ie(e),r=t.overflow,i=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+a+i)}function Wt(e){return["html","body","#document"].indexOf(re(e))>=0?e.ownerDocument.body:X(e)&&ht(e)?e:Wt(Ye(e))}function Ne(e,t){var r;t===void 0&&(t=[]);var i=Wt(e),a=i===((r=e.ownerDocument)==null?void 0:r.body),o=J(i),s=a?[o].concat(o.visualViewport||[],ht(i)?i:[]):i,c=t.concat(s);return a?c:c.concat(Ne(Ye(s)))}function mt(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Hr(e){var t=De(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}function jt(e,t){return t===Rt?mt(jr(e)):Se(t)?Hr(t):mt(Vr(fe(e)))}function Qr(e){var t=Ne(Ye(e)),r=["absolute","fixed"].indexOf(ie(e).position)>=0,i=r&&X(e)?Ue(e):e;return Se(i)?t.filter(function(a){return Se(a)&&Lt(a,i)&&re(a)!=="body"&&(r?ie(a).position!=="static":!0)}):[]}function Zr(e,t,r){var i=t==="clippingParents"?Qr(e):[].concat(t),a=[].concat(i,[r]),o=a[0],s=a.reduce(function(c,f){var v=jt(e,f);return c.top=he(v.top,c.top),c.right=Ze(v.right,c.right),c.bottom=Ze(v.bottom,c.bottom),c.left=he(v.left,c.left),c},jt(e,o));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function Vt(e){var t=e.reference,r=e.element,i=e.placement,a=i?ne(i):null,o=i?Te(i):null,s=t.x+t.width/2-r.width/2,c=t.y+t.height/2-r.height/2,f;switch(a){case j:f={x:s,y:t.y-r.height};break;case q:f={x:s,y:t.y+t.height};break;case z:f={x:t.x+t.width,y:c};break;case V:f={x:t.x-r.width,y:c};break;default:f={x:t.x,y:t.y}}var v=a?pt(a):null;if(v!=null){var p=v==="y"?"height":"width";switch(o){case Oe:f[v]=f[v]-(t[p]/2-r[p]/2);break;case Me:f[v]=f[v]+(t[p]/2-r[p]/2);break}}return f}function Fe(e,t){t===void 0&&(t={});var r=t,i=r.placement,a=i===void 0?e.placement:i,o=r.boundary,s=o===void 0?dr:o,c=r.rootBoundary,f=c===void 0?Rt:c,v=r.elementContext,p=v===void 0?$e:v,A=r.altBoundary,x=A===void 0?!1:A,w=r.padding,E=w===void 0?0:w,D=Ut(typeof E!="number"?E:Pt(E,Le)),O=p===$e?vr:$e,y=e.rects.popper,_=e.elements[x?O:p],B=Zr(Se(_)?_:_.contextElement||fe(e.elements.popper),s,f),n=De(e.elements.reference),m=Vt({reference:n,element:y,strategy:"absolute",placement:a}),d=mt(Object.assign({},y,m)),T=p===$e?d:n,I={top:B.top-T.top+D.top,bottom:T.bottom-B.bottom+D.bottom,left:B.left-T.left+D.left,right:T.right-B.right+D.right},M=e.modifiersData.offset;if(p===$e&&M){var $=M[a];Object.keys(I).forEach(function(k){var C=[z,q].indexOf(k)>=0?1:-1,P=[j,q].indexOf(k)>=0?"y":"x";I[k]+=$[P]*C})}return I}function Yr(e,t){t===void 0&&(t={});var r=t,i=r.placement,a=r.boundary,o=r.rootBoundary,s=r.padding,c=r.flipVariations,f=r.allowedAutoPlacements,v=f===void 0?It:f,p=Te(i),A=p?c?Ct:Ct.filter(function(E){return Te(E)===p}):Le,x=A.filter(function(E){return v.indexOf(E)>=0});x.length===0&&(x=A);var w=x.reduce(function(E,D){return E[D]=Fe(e,{placement:D,boundary:a,rootBoundary:o,padding:s})[ne(D)],E},{});return Object.keys(w).sort(function(E,D){return w[E]-w[D]})}function qr(e){if(ne(e)===ct)return[];var t=ze(e);return[Ft(e),t,Ft(t)]}function zr(e){var t=e.state,r=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var a=r.mainAxis,o=a===void 0?!0:a,s=r.altAxis,c=s===void 0?!0:s,f=r.fallbackPlacements,v=r.padding,p=r.boundary,A=r.rootBoundary,x=r.altBoundary,w=r.flipVariations,E=w===void 0?!0:w,D=r.allowedAutoPlacements,O=t.options.placement,y=ne(O),_=y===O,B=f||(_||!E?[ze(O)]:qr(O)),n=[O].concat(B).reduce(function(se,te){return se.concat(ne(te)===ct?Yr(t,{placement:te,boundary:p,rootBoundary:A,padding:v,flipVariations:E,allowedAutoPlacements:D}):te)},[]),m=t.rects.reference,d=t.rects.popper,T=new Map,I=!0,M=n[0],$=0;$<n.length;$++){var k=n[$],C=ne(k),P=Te(k)===Oe,Z=[j,q].indexOf(C)>=0,Y=Z?"width":"height",N=Fe(t,{placement:k,boundary:p,rootBoundary:A,altBoundary:x,padding:v}),F=Z?P?z:V:P?q:j;m[Y]>d[Y]&&(F=ze(F));var g=ze(F),H=[];if(o&&H.push(N[C]<=0),c&&H.push(N[F]<=0,N[g]<=0),H.every(function(se){return se})){M=k,I=!1;break}T.set(k,H)}if(I)for(var K=E?3:1,ye=function(te){var le=n.find(function(Re){var ue=T.get(Re);if(ue)return ue.slice(0,te).every(function(Ce){return Ce})});if(le)return M=le,"break"},oe=K;oe>0;oe--){var be=ye(oe);if(be==="break")break}t.placement!==M&&(t.modifiersData[i]._skip=!0,t.placement=M,t.reset=!0)}}var Xr={name:"flip",enabled:!0,phase:"main",fn:zr,requiresIfExists:["offset"],data:{_skip:!1}};function Ht(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function Qt(e){return[j,z,q,V].some(function(t){return e[t]>=0})}function Kr(e){var t=e.state,r=e.name,i=t.rects.reference,a=t.rects.popper,o=t.modifiersData.preventOverflow,s=Fe(t,{elementContext:"reference"}),c=Fe(t,{altBoundary:!0}),f=Ht(s,i),v=Ht(c,a,o),p=Qt(f),A=Qt(v);t.modifiersData[r]={referenceClippingOffsets:f,popperEscapeOffsets:v,isReferenceHidden:p,hasPopperEscaped:A},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":A})}var Gr={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Kr};function Jr(e,t,r){var i=ne(e),a=[V,j].indexOf(i)>=0?-1:1,o=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,s=o[0],c=o[1];return s=s||0,c=(c||0)*a,[V,z].indexOf(i)>=0?{x:c,y:s}:{x:s,y:c}}function en(e){var t=e.state,r=e.options,i=e.name,a=r.offset,o=a===void 0?[0,0]:a,s=It.reduce(function(p,A){return p[A]=Jr(A,t.rects,o),p},{}),c=s[t.placement],f=c.x,v=c.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=f,t.modifiersData.popperOffsets.y+=v),t.modifiersData[i]=s}var tn={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:en};function rn(e){var t=e.state,r=e.name;t.modifiersData[r]=Vt({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var nn={name:"popperOffsets",enabled:!0,phase:"read",fn:rn,data:{}};function an(e){return e==="x"?"y":"x"}function on(e){var t=e.state,r=e.options,i=e.name,a=r.mainAxis,o=a===void 0?!0:a,s=r.altAxis,c=s===void 0?!1:s,f=r.boundary,v=r.rootBoundary,p=r.altBoundary,A=r.padding,x=r.tether,w=x===void 0?!0:x,E=r.tetherOffset,D=E===void 0?0:E,O=Fe(t,{boundary:f,rootBoundary:v,padding:A,altBoundary:p}),y=ne(t.placement),_=Te(t.placement),B=!_,n=pt(y),m=an(n),d=t.modifiersData.popperOffsets,T=t.rects.reference,I=t.rects.popper,M=typeof D=="function"?D(Object.assign({},t.rects,{placement:t.placement})):D,$=typeof M=="number"?{mainAxis:M,altAxis:M}:Object.assign({mainAxis:0,altAxis:0},M),k=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,C={x:0,y:0};if(!!d){if(o){var P,Z=n==="y"?j:V,Y=n==="y"?q:z,N=n==="y"?"height":"width",F=d[n],g=F+O[Z],H=F-O[Y],K=w?-I[N]/2:0,ye=_===Oe?T[N]:I[N],oe=_===Oe?-I[N]:-T[N],be=t.elements.arrow,se=w&&be?ft(be):{width:0,height:0},te=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:$t(),le=te[Z],Re=te[Y],ue=Pe(0,T[N],se[N]),Ce=B?T[N]/2-K-ue-le-$.mainAxis:ye-ue-le-$.mainAxis,de=B?-T[N]/2+K+ue+Re+$.mainAxis:oe+ue+Re+$.mainAxis,Ie=t.elements.arrow&&Ue(t.elements.arrow),Je=Ie?n==="y"?Ie.clientTop||0:Ie.clientLeft||0:0,We=(P=k==null?void 0:k[n])!=null?P:0,et=F+Ce-We-Je,tt=F+de-We,je=Pe(w?Ze(g,et):g,F,w?he(H,tt):H);d[n]=je,C[n]=je-F}if(c){var Ve,rt=n==="x"?j:V,nt=n==="x"?q:z,ce=d[m],ve=m==="y"?"height":"width",He=ce+O[rt],Ee=ce-O[nt],Qe=[j,V].indexOf(y)!==-1,it=(Ve=k==null?void 0:k[m])!=null?Ve:0,at=Qe?He:ce-T[ve]-I[ve]-it+$.altAxis,ot=Qe?ce+T[ve]+I[ve]-it-$.altAxis:Ee,st=w&&Qe?Rr(at,ce,ot):Pe(w?at:He,ce,w?ot:Ee);d[m]=st,C[m]=st-ce}t.modifiersData[i]=C}}var sn={name:"preventOverflow",enabled:!0,phase:"main",fn:on,requiresIfExists:["offset"]};function ln(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function un(e){return e===J(e)||!X(e)?dt(e):ln(e)}function cn(e){var t=e.getBoundingClientRect(),r=Ae(t.width)/e.offsetWidth||1,i=Ae(t.height)/e.offsetHeight||1;return r!==1||i!==1}function fn(e,t,r){r===void 0&&(r=!1);var i=X(t),a=X(t)&&cn(t),o=fe(t),s=De(e,a),c={scrollLeft:0,scrollTop:0},f={x:0,y:0};return(i||!i&&!r)&&((re(t)!=="body"||ht(o))&&(c=un(t)),X(t)?(f=De(t,!0),f.x+=t.clientLeft,f.y+=t.clientTop):o&&(f.x=vt(o))),{x:s.left+c.scrollLeft-f.x,y:s.top+c.scrollTop-f.y,width:s.width,height:s.height}}function pn(e){var t=new Map,r=new Set,i=[];e.forEach(function(o){t.set(o.name,o)});function a(o){r.add(o.name);var s=[].concat(o.requires||[],o.requiresIfExists||[]);s.forEach(function(c){if(!r.has(c)){var f=t.get(c);f&&a(f)}}),i.push(o)}return e.forEach(function(o){r.has(o.name)||a(o)}),i}function dn(e){var t=pn(e);return Ar.reduce(function(r,i){return r.concat(t.filter(function(a){return a.phase===i}))},[])}function vn(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function hn(e){var t=e.reduce(function(r,i){var a=r[i.name];return r[i.name]=a?Object.assign({},a,i,{options:Object.assign({},a.options,i.options),data:Object.assign({},a.data,i.data)}):i,r},{});return Object.keys(t).map(function(r){return t[r]})}var Zt={placement:"bottom",modifiers:[],strategy:"absolute"};function Yt(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(i){return!(i&&typeof i.getBoundingClientRect=="function")})}function mn(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,i=r===void 0?[]:r,a=t.defaultOptions,o=a===void 0?Zt:a;return function(c,f,v){v===void 0&&(v=o);var p={placement:"bottom",orderedModifiers:[],options:Object.assign({},Zt,o),modifiersData:{},elements:{reference:c,popper:f},attributes:{},styles:{}},A=[],x=!1,w={state:p,setOptions:function(y){var _=typeof y=="function"?y(p.options):y;D(),p.options=Object.assign({},o,p.options,_),p.scrollParents={reference:Se(c)?Ne(c):c.contextElement?Ne(c.contextElement):[],popper:Ne(f)};var B=dn(hn([].concat(i,p.options.modifiers)));return p.orderedModifiers=B.filter(function(n){return n.enabled}),E(),w.update()},forceUpdate:function(){if(!x){var y=p.elements,_=y.reference,B=y.popper;if(!!Yt(_,B)){p.rects={reference:fn(_,Ue(B),p.options.strategy==="fixed"),popper:ft(B)},p.reset=!1,p.placement=p.options.placement,p.orderedModifiers.forEach(function($){return p.modifiersData[$.name]=Object.assign({},$.data)});for(var n=0;n<p.orderedModifiers.length;n++){if(p.reset===!0){p.reset=!1,n=-1;continue}var m=p.orderedModifiers[n],d=m.fn,T=m.options,I=T===void 0?{}:T,M=m.name;typeof d=="function"&&(p=d({state:p,options:I,name:M,instance:w})||p)}}}},update:vn(function(){return new Promise(function(O){w.forceUpdate(),O(p)})}),destroy:function(){D(),x=!0}};if(!Yt(c,f))return w;w.setOptions(v).then(function(O){!x&&v.onFirstUpdate&&v.onFirstUpdate(O)});function E(){p.orderedModifiers.forEach(function(O){var y=O.name,_=O.options,B=_===void 0?{}:_,n=O.effect;if(typeof n=="function"){var m=n({state:p,name:y,instance:w,options:B}),d=function(){};A.push(m||d)}})}function D(){A.forEach(function(O){return O()}),A=[]}return w}}var gn=[Nr,nn,Ur,Bt,tn,Xr,sn,Br,Gr],yn=mn({defaultModifiers:gn}),bn="tippy-box",qt="tippy-content",En="tippy-backdrop",zt="tippy-arrow",Xt="tippy-svg-arrow",me={passive:!0,capture:!0},Kt=function(){return document.body};function gt(e,t,r){if(Array.isArray(e)){var i=e[t];return i==null?Array.isArray(r)?r[t]:r:i}return e}function yt(e,t){var r={}.toString.call(e);return r.indexOf("[object")===0&&r.indexOf(t+"]")>-1}function Gt(e,t){return typeof e=="function"?e.apply(void 0,t):e}function Jt(e,t){if(t===0)return e;var r;return function(i){clearTimeout(r),r=setTimeout(function(){e(i)},t)}}function wn(e,t){var r=Object.assign({},e);return t.forEach(function(i){delete r[i]}),r}function On(e){return e.split(/\s+/).filter(Boolean)}function ge(e){return[].concat(e)}function er(e,t){e.indexOf(t)===-1&&e.push(t)}function Sn(e){return e.filter(function(t,r){return e.indexOf(t)===r})}function An(e){return e.split("-")[0]}function Xe(e){return[].slice.call(e)}function tr(e){return Object.keys(e).reduce(function(t,r){return e[r]!==void 0&&(t[r]=e[r]),t},{})}function _e(){return document.createElement("div")}function Ke(e){return["Element","Fragment"].some(function(t){return yt(e,t)})}function Dn(e){return yt(e,"NodeList")}function Tn(e){return yt(e,"MouseEvent")}function _n(e){return!!(e&&e._tippy&&e._tippy.reference===e)}function xn(e){return Ke(e)?[e]:Dn(e)?Xe(e):Array.isArray(e)?e:Xe(document.querySelectorAll(e))}function bt(e,t){e.forEach(function(r){r&&(r.style.transitionDuration=t+"ms")})}function rr(e,t){e.forEach(function(r){r&&r.setAttribute("data-state",t)})}function Rn(e){var t,r=ge(e),i=r[0];return i!=null&&(t=i.ownerDocument)!=null&&t.body?i.ownerDocument:document}function Cn(e,t){var r=t.clientX,i=t.clientY;return e.every(function(a){var o=a.popperRect,s=a.popperState,c=a.props,f=c.interactiveBorder,v=An(s.placement),p=s.modifiersData.offset;if(!p)return!0;var A=v==="bottom"?p.top.y:0,x=v==="top"?p.bottom.y:0,w=v==="right"?p.left.x:0,E=v==="left"?p.right.x:0,D=o.top-i+A>f,O=i-o.bottom-x>f,y=o.left-r+w>f,_=r-o.right-E>f;return D||O||y||_})}function Et(e,t,r){var i=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(a){e[i](a,r)})}function nr(e,t){for(var r=t;r;){var i;if(e.contains(r))return!0;r=r.getRootNode==null||(i=r.getRootNode())==null?void 0:i.host}return!1}var ae={isTouch:!1},ir=0;function In(){ae.isTouch||(ae.isTouch=!0,window.performance&&document.addEventListener("mousemove",ar))}function ar(){var e=performance.now();e-ir<20&&(ae.isTouch=!1,document.removeEventListener("mousemove",ar)),ir=e}function kn(){var e=document.activeElement;if(_n(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}function Bn(){document.addEventListener("touchstart",In,me),window.addEventListener("blur",kn)}var Ln=typeof window!="undefined"&&typeof document!="undefined",Mn=Ln?!!window.msCrypto:!1,$n={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},Un={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},ee=Object.assign({appendTo:Kt,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},$n,Un),Pn=Object.keys(ee),Nn=function(t){var r=Object.keys(t);r.forEach(function(i){ee[i]=t[i]})};function or(e){var t=e.plugins||[],r=t.reduce(function(i,a){var o=a.name,s=a.defaultValue;if(o){var c;i[o]=e[o]!==void 0?e[o]:(c=ee[o])!=null?c:s}return i},{});return Object.assign({},e,r)}function Fn(e,t){var r=t?Object.keys(or(Object.assign({},ee,{plugins:t}))):Pn,i=r.reduce(function(a,o){var s=(e.getAttribute("data-tippy-"+o)||"").trim();if(!s)return a;if(o==="content")a[o]=s;else try{a[o]=JSON.parse(s)}catch{a[o]=s}return a},{});return i}function sr(e,t){var r=Object.assign({},t,{content:Gt(t.content,[e])},t.ignoreAttributes?{}:Fn(e,t.plugins));return r.aria=Object.assign({},ee.aria,r.aria),r.aria={expanded:r.aria.expanded==="auto"?t.interactive:r.aria.expanded,content:r.aria.content==="auto"?t.interactive?null:"describedby":r.aria.content},r}var Wn=function(){return"innerHTML"};function wt(e,t){e[Wn()]=t}function lr(e){var t=_e();return e===!0?t.className=zt:(t.className=Xt,Ke(e)?t.appendChild(e):wt(t,e)),t}function ur(e,t){Ke(t.content)?(wt(e,""),e.appendChild(t.content)):typeof t.content!="function"&&(t.allowHTML?wt(e,t.content):e.textContent=t.content)}function Ot(e){var t=e.firstElementChild,r=Xe(t.children);return{box:t,content:r.find(function(i){return i.classList.contains(qt)}),arrow:r.find(function(i){return i.classList.contains(zt)||i.classList.contains(Xt)}),backdrop:r.find(function(i){return i.classList.contains(En)})}}function cr(e){var t=_e(),r=_e();r.className=bn,r.setAttribute("data-state","hidden"),r.setAttribute("tabindex","-1");var i=_e();i.className=qt,i.setAttribute("data-state","hidden"),ur(i,e.props),t.appendChild(r),r.appendChild(i),a(e.props,e.props);function a(o,s){var c=Ot(t),f=c.box,v=c.content,p=c.arrow;s.theme?f.setAttribute("data-theme",s.theme):f.removeAttribute("data-theme"),typeof s.animation=="string"?f.setAttribute("data-animation",s.animation):f.removeAttribute("data-animation"),s.inertia?f.setAttribute("data-inertia",""):f.removeAttribute("data-inertia"),f.style.maxWidth=typeof s.maxWidth=="number"?s.maxWidth+"px":s.maxWidth,s.role?f.setAttribute("role",s.role):f.removeAttribute("role"),(o.content!==s.content||o.allowHTML!==s.allowHTML)&&ur(v,e.props),s.arrow?p?o.arrow!==s.arrow&&(f.removeChild(p),f.appendChild(lr(s.arrow))):f.appendChild(lr(s.arrow)):p&&f.removeChild(p)}return{popper:t,onUpdate:a}}cr.$$tippy=!0;var jn=1,Ge=[],St=[];function Vn(e,t){var r=sr(e,Object.assign({},ee,or(tr(t)))),i,a,o,s=!1,c=!1,f=!1,v=!1,p,A,x,w=[],E=Jt(et,r.interactiveDebounce),D,O=jn++,y=null,_=Sn(r.plugins),B={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},n={id:O,reference:e,popper:_e(),popperInstance:y,props:r,state:B,plugins:_,clearDelayTimeouts:at,setProps:ot,setContent:st,show:bi,hide:Ei,hideWithInteractivity:wi,enable:Qe,disable:it,unmount:Oi,destroy:Si};if(!r.render)return n;var m=r.render(n),d=m.popper,T=m.onUpdate;d.setAttribute("data-tippy-root",""),d.id="tippy-"+n.id,n.popper=d,e._tippy=n,d._tippy=n;var I=_.map(function(l){return l.fn(n)}),M=e.hasAttribute("aria-expanded");return Ie(),K(),F(),g("onCreate",[n]),r.showOnCreate&&He(),d.addEventListener("mouseenter",function(){n.props.interactive&&n.state.isVisible&&n.clearDelayTimeouts()}),d.addEventListener("mouseleave",function(){n.props.interactive&&n.props.trigger.indexOf("mouseenter")>=0&&Z().addEventListener("mousemove",E)}),n;function $(){var l=n.props.touch;return Array.isArray(l)?l:[l,0]}function k(){return $()[0]==="hold"}function C(){var l;return!!((l=n.props.render)!=null&&l.$$tippy)}function P(){return D||e}function Z(){var l=P().parentNode;return l?Rn(l):document}function Y(){return Ot(d)}function N(l){return n.state.isMounted&&!n.state.isVisible||ae.isTouch||p&&p.type==="focus"?0:gt(n.props.delay,l?0:1,ee.delay)}function F(l){l===void 0&&(l=!1),d.style.pointerEvents=n.props.interactive&&!l?"":"none",d.style.zIndex=""+n.props.zIndex}function g(l,h,b){if(b===void 0&&(b=!0),I.forEach(function(R){R[l]&&R[l].apply(R,h)}),b){var L;(L=n.props)[l].apply(L,h)}}function H(){var l=n.props.aria;if(!!l.content){var h="aria-"+l.content,b=d.id,L=ge(n.props.triggerTarget||e);L.forEach(function(R){var W=R.getAttribute(h);if(n.state.isVisible)R.setAttribute(h,W?W+" "+b:b);else{var G=W&&W.replace(b,"").trim();G?R.setAttribute(h,G):R.removeAttribute(h)}})}}function K(){if(!(M||!n.props.aria.expanded)){var l=ge(n.props.triggerTarget||e);l.forEach(function(h){n.props.interactive?h.setAttribute("aria-expanded",n.state.isVisible&&h===P()?"true":"false"):h.removeAttribute("aria-expanded")})}}function ye(){Z().removeEventListener("mousemove",E),Ge=Ge.filter(function(l){return l!==E})}function oe(l){if(!(ae.isTouch&&(f||l.type==="mousedown"))){var h=l.composedPath&&l.composedPath()[0]||l.target;if(!(n.props.interactive&&nr(d,h))){if(ge(n.props.triggerTarget||e).some(function(b){return nr(b,h)})){if(ae.isTouch||n.state.isVisible&&n.props.trigger.indexOf("click")>=0)return}else g("onClickOutside",[n,l]);n.props.hideOnClick===!0&&(n.clearDelayTimeouts(),n.hide(),c=!0,setTimeout(function(){c=!1}),n.state.isMounted||le())}}}function be(){f=!0}function se(){f=!1}function te(){var l=Z();l.addEventListener("mousedown",oe,!0),l.addEventListener("touchend",oe,me),l.addEventListener("touchstart",se,me),l.addEventListener("touchmove",be,me)}function le(){var l=Z();l.removeEventListener("mousedown",oe,!0),l.removeEventListener("touchend",oe,me),l.removeEventListener("touchstart",se,me),l.removeEventListener("touchmove",be,me)}function Re(l,h){Ce(l,function(){!n.state.isVisible&&d.parentNode&&d.parentNode.contains(d)&&h()})}function ue(l,h){Ce(l,h)}function Ce(l,h){var b=Y().box;function L(R){R.target===b&&(Et(b,"remove",L),h())}if(l===0)return h();Et(b,"remove",A),Et(b,"add",L),A=L}function de(l,h,b){b===void 0&&(b=!1);var L=ge(n.props.triggerTarget||e);L.forEach(function(R){R.addEventListener(l,h,b),w.push({node:R,eventType:l,handler:h,options:b})})}function Ie(){k()&&(de("touchstart",We,{passive:!0}),de("touchend",tt,{passive:!0})),On(n.props.trigger).forEach(function(l){if(l!=="manual")switch(de(l,We),l){case"mouseenter":de("mouseleave",tt);break;case"focus":de(Mn?"focusout":"blur",je);break;case"focusin":de("focusout",je);break}})}function Je(){w.forEach(function(l){var h=l.node,b=l.eventType,L=l.handler,R=l.options;h.removeEventListener(b,L,R)}),w=[]}function We(l){var h,b=!1;if(!(!n.state.isEnabled||Ve(l)||c)){var L=((h=p)==null?void 0:h.type)==="focus";p=l,D=l.currentTarget,K(),!n.state.isVisible&&Tn(l)&&Ge.forEach(function(R){return R(l)}),l.type==="click"&&(n.props.trigger.indexOf("mouseenter")<0||s)&&n.props.hideOnClick!==!1&&n.state.isVisible?b=!0:He(l),l.type==="click"&&(s=!b),b&&!L&&Ee(l)}}function et(l){var h=l.target,b=P().contains(h)||d.contains(h);if(!(l.type==="mousemove"&&b)){var L=ve().concat(d).map(function(R){var W,G=R._tippy,ke=(W=G.popperInstance)==null?void 0:W.state;return ke?{popperRect:R.getBoundingClientRect(),popperState:ke,props:r}:null}).filter(Boolean);Cn(L,l)&&(ye(),Ee(l))}}function tt(l){var h=Ve(l)||n.props.trigger.indexOf("click")>=0&&s;if(!h){if(n.props.interactive){n.hideWithInteractivity(l);return}Ee(l)}}function je(l){n.props.trigger.indexOf("focusin")<0&&l.target!==P()||n.props.interactive&&l.relatedTarget&&d.contains(l.relatedTarget)||Ee(l)}function Ve(l){return ae.isTouch?k()!==l.type.indexOf("touch")>=0:!1}function rt(){nt();var l=n.props,h=l.popperOptions,b=l.placement,L=l.offset,R=l.getReferenceClientRect,W=l.moveTransition,G=C()?Ot(d).arrow:null,ke=R?{getBoundingClientRect:R,contextElement:R.contextElement||P()}:e,fr={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(lt){var Be=lt.state;if(C()){var Ai=Y(),Tt=Ai.box;["placement","reference-hidden","escaped"].forEach(function(ut){ut==="placement"?Tt.setAttribute("data-placement",Be.placement):Be.attributes.popper["data-popper-"+ut]?Tt.setAttribute("data-"+ut,""):Tt.removeAttribute("data-"+ut)}),Be.attributes.popper={}}}},we=[{name:"offset",options:{offset:L}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!W}},fr];C()&&G&&we.push({name:"arrow",options:{element:G,padding:3}}),we.push.apply(we,(h==null?void 0:h.modifiers)||[]),n.popperInstance=yn(ke,d,Object.assign({},h,{placement:b,onFirstUpdate:x,modifiers:we}))}function nt(){n.popperInstance&&(n.popperInstance.destroy(),n.popperInstance=null)}function ce(){var l=n.props.appendTo,h,b=P();n.props.interactive&&l===Kt||l==="parent"?h=b.parentNode:h=Gt(l,[b]),h.contains(d)||h.appendChild(d),n.state.isMounted=!0,rt()}function ve(){return Xe(d.querySelectorAll("[data-tippy-root]"))}function He(l){n.clearDelayTimeouts(),l&&g("onTrigger",[n,l]),te();var h=N(!0),b=$(),L=b[0],R=b[1];ae.isTouch&&L==="hold"&&R&&(h=R),h?i=setTimeout(function(){n.show()},h):n.show()}function Ee(l){if(n.clearDelayTimeouts(),g("onUntrigger",[n,l]),!n.state.isVisible){le();return}if(!(n.props.trigger.indexOf("mouseenter")>=0&&n.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(l.type)>=0&&s)){var h=N(!1);h?a=setTimeout(function(){n.state.isVisible&&n.hide()},h):o=requestAnimationFrame(function(){n.hide()})}}function Qe(){n.state.isEnabled=!0}function it(){n.hide(),n.state.isEnabled=!1}function at(){clearTimeout(i),clearTimeout(a),cancelAnimationFrame(o)}function ot(l){if(!n.state.isDestroyed){g("onBeforeUpdate",[n,l]),Je();var h=n.props,b=sr(e,Object.assign({},h,tr(l),{ignoreAttributes:!0}));n.props=b,Ie(),h.interactiveDebounce!==b.interactiveDebounce&&(ye(),E=Jt(et,b.interactiveDebounce)),h.triggerTarget&&!b.triggerTarget?ge(h.triggerTarget).forEach(function(L){L.removeAttribute("aria-expanded")}):b.triggerTarget&&e.removeAttribute("aria-expanded"),K(),F(),T&&T(h,b),n.popperInstance&&(rt(),ve().forEach(function(L){requestAnimationFrame(L._tippy.popperInstance.forceUpdate)})),g("onAfterUpdate",[n,l])}}function st(l){n.setProps({content:l})}function bi(){var l=n.state.isVisible,h=n.state.isDestroyed,b=!n.state.isEnabled,L=ae.isTouch&&!n.props.touch,R=gt(n.props.duration,0,ee.duration);if(!(l||h||b||L)&&!P().hasAttribute("disabled")&&(g("onShow",[n],!1),n.props.onShow(n)!==!1)){if(n.state.isVisible=!0,C()&&(d.style.visibility="visible"),F(),te(),n.state.isMounted||(d.style.transition="none"),C()){var W=Y(),G=W.box,ke=W.content;bt([G,ke],0)}x=function(){var we;if(!(!n.state.isVisible||v)){if(v=!0,d.offsetHeight,d.style.transition=n.props.moveTransition,C()&&n.props.animation){var Dt=Y(),lt=Dt.box,Be=Dt.content;bt([lt,Be],R),rr([lt,Be],"visible")}H(),K(),er(St,n),(we=n.popperInstance)==null||we.forceUpdate(),g("onMount",[n]),n.props.animation&&C()&&ue(R,function(){n.state.isShown=!0,g("onShown",[n])})}},ce()}}function Ei(){var l=!n.state.isVisible,h=n.state.isDestroyed,b=!n.state.isEnabled,L=gt(n.props.duration,1,ee.duration);if(!(l||h||b)&&(g("onHide",[n],!1),n.props.onHide(n)!==!1)){if(n.state.isVisible=!1,n.state.isShown=!1,v=!1,s=!1,C()&&(d.style.visibility="hidden"),ye(),le(),F(!0),C()){var R=Y(),W=R.box,G=R.content;n.props.animation&&(bt([W,G],L),rr([W,G],"hidden"))}H(),K(),n.props.animation?C()&&Re(L,n.unmount):n.unmount()}}function wi(l){Z().addEventListener("mousemove",E),er(Ge,E),E(l)}function Oi(){n.state.isVisible&&n.hide(),!!n.state.isMounted&&(nt(),ve().forEach(function(l){l._tippy.unmount()}),d.parentNode&&d.parentNode.removeChild(d),St=St.filter(function(l){return l!==n}),n.state.isMounted=!1,g("onHidden",[n]))}function Si(){n.state.isDestroyed||(n.clearDelayTimeouts(),n.unmount(),Je(),delete e._tippy,n.state.isDestroyed=!0,g("onDestroy",[n]))}}function xe(e,t){t===void 0&&(t={});var r=ee.plugins.concat(t.plugins||[]);Bn();var i=Object.assign({},t,{plugins:r}),a=xn(e),o=a.reduce(function(s,c){var f=c&&Vn(c,i);return f&&s.push(f),s},[]);return Ke(e)?o[0]:o}xe.defaultProps=ee,xe.setDefaultProps=Nn,xe.currentInput=ae;var Hn=Object.assign({},Bt,{effect:function(t){var r=t.state,i={popper:{position:r.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(r.elements.popper.style,i.popper),r.styles=i,r.elements.arrow&&Object.assign(r.elements.arrow.style,i.arrow)}}),Qn=function(t,r){var i;r===void 0&&(r={});var a=t,o=[],s=[],c,f=r.overrides,v=[],p=!1;function A(){s=a.map(function(n){return ge(n.props.triggerTarget||n.reference)}).reduce(function(n,m){return n.concat(m)},[])}function x(){o=a.map(function(n){return n.reference})}function w(n){a.forEach(function(m){n?m.enable():m.disable()})}function E(n){return a.map(function(m){var d=m.setProps;return m.setProps=function(T){d(T),m.reference===c&&n.setProps(T)},function(){m.setProps=d}})}function D(n,m){var d=s.indexOf(m);if(m!==c){c=m;var T=(f||[]).concat("content").reduce(function(I,M){return I[M]=a[d].props[M],I},{});n.setProps(Object.assign({},T,{getReferenceClientRect:typeof T.getReferenceClientRect=="function"?T.getReferenceClientRect:function(){var I;return(I=o[d])==null?void 0:I.getBoundingClientRect()}}))}}w(!1),x(),A();var O={fn:function(){return{onDestroy:function(){w(!0)},onHidden:function(){c=null},onClickOutside:function(d){d.props.showOnCreate&&!p&&(p=!0,c=null)},onShow:function(d){d.props.showOnCreate&&!p&&(p=!0,D(d,o[0]))},onTrigger:function(d,T){D(d,T.currentTarget)}}}},y=xe(_e(),Object.assign({},wn(r,["overrides"]),{plugins:[O].concat(r.plugins||[]),triggerTarget:s,popperOptions:Object.assign({},r.popperOptions,{modifiers:[].concat(((i=r.popperOptions)==null?void 0:i.modifiers)||[],[Hn])})})),_=y.show;y.show=function(n){if(_(),!c&&n==null)return D(y,o[0]);if(!(c&&n==null)){if(typeof n=="number")return o[n]&&D(y,o[n]);if(a.indexOf(n)>=0){var m=n.reference;return D(y,m)}if(o.indexOf(n)>=0)return D(y,n)}},y.showNext=function(){var n=o[0];if(!c)return y.show(0);var m=o.indexOf(c);y.show(o[m+1]||n)},y.showPrevious=function(){var n=o[o.length-1];if(!c)return y.show(n);var m=o.indexOf(c),d=o[m-1]||n;y.show(d)};var B=y.setProps;return y.setProps=function(n){f=n.overrides||f,B(n)},y.setInstances=function(n){w(!0),v.forEach(function(m){return m()}),a=n,w(!1),x(),A(),v=E(y),y.setProps({triggerTarget:s})},v=E(y),y};xe.setDefaultProps({render:cr});var xi="",Ri="",Ci="",Zn=(e,t)=>{const r=e.__vccOpts||e;for(const[i,a]of t)r[i]=a;return r};const Yn=u.defineComponent({name:"CalendarHeatmap",props:{endDate:{required:!0},max:{type:Number},rangeColor:{type:Array,default:S.DEFAULT_RANGE_COLOR},values:{type:Array,required:!0},locale:{type:Object},tooltip:{type:Boolean,default:!0},tooltipUnit:{type:String,default:S.DEFAULT_TOOLTIP_UNIT},tooltipFormatter:{type:Function},vertical:{type:Boolean,default:!1},noDataText:{type:String,default:null},round:{type:Number,default:0}},emits:["dayClick"],setup(e){const t=S.SQUARE_SIZE/5,r=S.SQUARE_SIZE+t,i=Math.ceil(S.SQUARE_SIZE*2.5),a=r*3,o=S.SQUARE_SIZE+S.SQUARE_SIZE/2,s=S.SQUARE_SIZE+S.SQUARE_SIZE/2,c=`translate(${i}, ${o})`,f=u.ref(null),v=u.ref(new Date),p=u.ref(new S(e.endDate,e.values,e.max)),A=u.ref(0),x=u.ref(0),w=u.ref("0 0 0 0"),E=u.ref("0 0 0 0"),D=u.ref(""),O=u.ref(""),y=u.ref(""),_=u.ref({}),{values:B,tooltipUnit:n,tooltipFormatter:m,noDataText:d,max:T,rangeColor:I,vertical:M,locale:$}=u.toRefs(e);let k,C;function P(){k=xe(Array.from(f.value.querySelectorAll(".vch__day__square[data-tippy-content]"))),C?C.setInstances(k):C=Qn(k,{moveTransition:"transform 0.1s ease-out",allowHTML:!0})}function Z(g){if(e.tooltip)return g.count!==void 0?e.tooltipFormatter?e.tooltipFormatter(g,e.tooltipUnit):`<b>${g.count} ${e.tooltipUnit}</b> ${_.value.on} ${_.value.months[g.date.getMonth()]} ${g.date.getDate()}, ${g.date.getFullYear()}`:e.noDataText?`${e.noDataText}`:`<b>No ${e.tooltipUnit}</b> ${_.value.on} ${_.value.months[g.date.getMonth()]} ${g.date.getDate()}, ${g.date.getFullYear()}`}function Y(g){return e.vertical?`translate(0, ${r*p.value.weekCount-(g+1)*r})`:`translate(${g*r}, 0)`}function N(g){return e.vertical?`translate(${g*r}, 0)`:`translate(0, ${g*r})`}function F(g){return e.vertical?{x:3,y:r*p.value.weekCount-r*g.index-r/4}:{x:r*g.index,y:r-t}}return u.watch(M,g=>{g?(A.value=i+r*S.DAYS_IN_WEEK+a,x.value=o+r*p.value.weekCount+t,D.value=`translate(${i}, 0)`,O.value=`translate(0, ${o})`):(A.value=i+r*p.value.weekCount+t,x.value=o+r*S.DAYS_IN_WEEK,D.value=`translate(0, ${o})`,O.value=`translate(${i}, 0)`)},{immediate:!0}),u.watch([A,x],([g,H])=>w.value=` 0 0 ${g} ${H}`,{immediate:!0}),u.watch([A,x,I],([g,H,K])=>{y.value=M.value?`translate(${i+r*S.DAYS_IN_WEEK}, ${o})`:`translate(${g-r*K.length-30}, ${H-s})`},{immediate:!0}),u.watch($,g=>_.value=g?xt(xt({},S.DEFAULT_LOCALE),g):S.DEFAULT_LOCALE,{immediate:!0}),u.watch(I,g=>E.value=`0 0 ${S.SQUARE_SIZE*(g.length+1)} ${S.SQUARE_SIZE}`,{immediate:!0}),u.watch([B,n,m,d,T,I],()=>{p.value=new S(e.endDate,e.values,e.max),k==null||k.map(g=>g.destroy()),u.nextTick(P)}),u.onMounted(P),u.onBeforeUnmount(()=>{C==null||C.destroy(),k==null||k.map(g=>g.destroy())}),{SQUARE_BORDER_SIZE:t,SQUARE_SIZE:r,LEFT_SECTION_WIDTH:i,RIGHT_SECTION_WIDTH:a,TOP_SECTION_HEIGHT:o,BOTTOM_SECTION_HEIGHT:s,svg:f,heatmap:p,now:v,width:A,height:x,viewbox:w,daysLabelWrapperTransform:D,monthsLabelWrapperTransform:O,yearWrapperTransform:c,legendWrapperTransform:y,lo:_,legendViewbox:E,tooltipOptions:Z,getWeekPosition:Y,getDayPosition:N,getMonthLabelPosition:F}}}),qn={class:"vch__container"},zn=["viewBox"],Xn=["transform"],Kn=["x","y"],Gn=["transform"],Jn=["x","y"],ei=["x","y"],ti=["x","y"],ri=["transform"],ni=["x"],ii=["rx","ry","width","height","x","y"],ai=["x","y"],oi=["transform"],si=["transform"],li=["rx","ry","transform","width","height","data-tippy-content","onClick"],ui={class:"vch__legend"},ci={class:"vch__legend-left"},fi={class:"vch__legend-right"},pi={class:"vch__legend"},di=["viewBox","height"],vi={class:"vch__legend__wrapper"},hi=["rx","ry","width","height","x"];function mi(e,t,r,i,a,o){return u.openBlock(),u.createElementBlock("div",qn,[(u.openBlock(),u.createElementBlock("svg",{class:"vch__wrapper",ref:"svg",viewBox:e.viewbox},[u.createElementVNode("g",{class:"vch__months__labels__wrapper",transform:e.monthsLabelWrapperTransform},[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(e.heatmap.firstFullWeekOfMonths,(s,c)=>(u.openBlock(),u.createElementBlock("text",{class:"vch__month__label",key:c,x:e.getMonthLabelPosition(s).x,y:e.getMonthLabelPosition(s).y},u.toDisplayString(e.lo.months[s.value]),9,Kn))),128))],8,Xn),u.createElementVNode("g",{class:"vch__days__labels__wrapper",transform:e.daysLabelWrapperTransform},[u.createElementVNode("text",{class:"vch__day__label",x:e.vertical?e.SQUARE_SIZE:0,y:e.vertical?e.SQUARE_SIZE-e.SQUARE_BORDER_SIZE:20},u.toDisplayString(e.lo.days[1]),9,Jn),u.createElementVNode("text",{class:"vch__day__label",x:e.vertical?e.SQUARE_SIZE*3:0,y:e.vertical?e.SQUARE_SIZE-e.SQUARE_BORDER_SIZE:44},u.toDisplayString(e.lo.days[3]),9,ei),u.createElementVNode("text",{class:"vch__day__label",x:e.vertical?e.SQUARE_SIZE*5:0,y:e.vertical?e.SQUARE_SIZE-e.SQUARE_BORDER_SIZE:69},u.toDisplayString(e.lo.days[5]),9,ti)],8,Gn),e.vertical?(u.openBlock(),u.createElementBlock("g",{key:0,class:"vch__legend__wrapper",transform:e.legendWrapperTransform},[u.createElementVNode("text",{x:e.SQUARE_SIZE*1.25,y:"8"},u.toDisplayString(e.lo.less),9,ni),(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(e.rangeColor,(s,c)=>(u.openBlock(),u.createElementBlock("rect",{key:c,rx:e.round,ry:e.round,style:u.normalizeStyle({fill:s}),width:e.SQUARE_SIZE-e.SQUARE_BORDER_SIZE,height:e.SQUARE_SIZE-e.SQUARE_BORDER_SIZE,x:e.SQUARE_SIZE*1.75,y:e.SQUARE_SIZE*(c+1)},null,12,ii))),128)),u.createElementVNode("text",{x:e.SQUARE_SIZE*1.25,y:e.SQUARE_SIZE*(e.rangeColor.length+2)-e.SQUARE_BORDER_SIZE},u.toDisplayString(e.lo.more),9,ai)],8,ri)):u.createCommentVNode("",!0),u.createElementVNode("g",{class:"vch__year__wrapper",transform:e.yearWrapperTransform},[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(e.heatmap.calendar,(s,c)=>(u.openBlock(),u.createElementBlock("g",{class:"vch__month__wrapper",key:c,transform:e.getWeekPosition(c)},[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(s,(f,v)=>(u.openBlock(),u.createElementBlock(u.Fragment,{key:v},[f.date<e.now?(u.openBlock(),u.createElementBlock("rect",{key:0,class:"vch__day__square",rx:e.round,ry:e.round,transform:e.getDayPosition(v),width:e.SQUARE_SIZE-e.SQUARE_BORDER_SIZE,height:e.SQUARE_SIZE-e.SQUARE_BORDER_SIZE,style:u.normalizeStyle({fill:e.rangeColor[f.colorIndex]}),"data-tippy-content":e.tooltipOptions(f),onClick:p=>e.$emit("dayClick",f)},null,12,li)):u.createCommentVNode("",!0)],64))),128))],8,si))),128))],8,oi)],8,zn)),u.createElementVNode("div",ui,[u.renderSlot(e.$slots,"legend",{},()=>[u.createElementVNode("div",ci,[u.renderSlot(e.$slots,"vch__legend-left")]),u.createElementVNode("div",fi,[u.renderSlot(e.$slots,"legend-right",{},()=>[u.createElementVNode("div",pi,[u.createElementVNode("div",null,u.toDisplayString(e.lo.less),1),e.vertical?u.createCommentVNode("",!0):(u.openBlock(),u.createElementBlock("svg",{key:0,class:"vch__external-legend-wrapper",viewBox:e.legendViewbox,height:e.SQUARE_SIZE-e.SQUARE_BORDER_SIZE},[u.createElementVNode("g",vi,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(e.rangeColor,(s,c)=>(u.openBlock(),u.createElementBlock("rect",{key:c,rx:e.round,ry:e.round,style:u.normalizeStyle({fill:s}),width:e.SQUARE_SIZE-e.SQUARE_BORDER_SIZE,height:e.SQUARE_SIZE-e.SQUARE_BORDER_SIZE,x:e.SQUARE_SIZE*c},null,12,hi))),128))])],8,di)),u.createElementVNode("div",null,u.toDisplayString(e.lo.more),1)])])])])])])}var At=Zn(Yn,[["render",mi]]);function gi(e){e.component(At.name,At)}var yi={install:gi};U.CalendarHeatmap=At,U.Heatmap=S,U.default=yi,Object.defineProperty(U,"__esModule",{value:!0}),U[Symbol.toStringTag]="Module"});
var Di=Object.defineProperty;var pr=Object.getOwnPropertySymbols;var Ti=Object.prototype.hasOwnProperty,_i=Object.prototype.propertyIsEnumerable;var _t=(U,u,S)=>u in U?Di(U,u,{enumerable:!0,configurable:!0,writable:!0,value:S}):U[u]=S,xt=(U,u)=>{for(var S in u||(u={}))Ti.call(u,S)&&_t(U,S,u[S]);if(pr)for(var S of pr(u))_i.call(u,S)&&_t(U,S,u[S]);return U};var Q=(U,u,S)=>(_t(U,typeof u!="symbol"?u+"":u,S),S);(function(U,u){typeof exports=="object"&&typeof module!="undefined"?u(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],u):(U=typeof globalThis!="undefined"?globalThis:U||self,u(U.CalendarHeatmap={},U.Vue))})(this,function(U,u){"use strict";const pe=class{constructor(t,r,i){Q(this,"startDate");Q(this,"endDate");Q(this,"max");Q(this,"_values");Q(this,"_firstFullWeekOfMonths");Q(this,"_activities");Q(this,"_calendar");this.endDate=this.parseDate(t),this.max=i||Math.ceil(Math.max(...r.map(a=>a.count))/5*4),this.startDate=this.shiftDate(t,-pe.DAYS_IN_ONE_YEAR),this._values=r}set values(t){this.max=Math.ceil(Math.max(...t.map(r=>r.count))/5*4),this._values=t,this._firstFullWeekOfMonths=void 0,this._calendar=void 0,this._activities=void 0}get values(){return this._values}get activities(){if(!this._activities){this._activities=new Map;for(let t=0,r=this.values.length;t<r;t++)this._activities.set(this.keyDayParser(this.values[t].date),{count:this.values[t].count,colorIndex:this.getColorIndex(this.values[t].count)})}return this._activities}get weekCount(){return this.getDaysCount()/pe.DAYS_IN_WEEK}get calendar(){if(!this._calendar){let t=this.shiftDate(this.startDate,-this.getCountEmptyDaysAtStart());t=new Date(t.getFullYear(),t.getMonth(),t.getDate()),this._calendar=new Array(this.weekCount);for(let r=0,i=this._calendar.length;r<i;r++){this._calendar[r]=new Array(pe.DAYS_IN_WEEK);for(let a=0;a<pe.DAYS_IN_WEEK;a++){const o=this.activities.get(this.keyDayParser(t));this._calendar[r][a]={date:new Date(t.valueOf()),count:o?o.count:void 0,colorIndex:o?o.colorIndex:0},t.setDate(t.getDate()+1)}}}return this._calendar}get firstFullWeekOfMonths(){if(!this._firstFullWeekOfMonths){const t=this.calendar;this._firstFullWeekOfMonths=[];for(let r=1,i=t.length;r<i;r++){const a=t[r-1][0].date,o=t[r][0].date;(a.getFullYear()<o.getFullYear()||a.getMonth()<o.getMonth())&&this._firstFullWeekOfMonths.push({value:o.getMonth(),index:r})}}return this._firstFullWeekOfMonths}getColorIndex(t){return t==null?0:t<=0?1:t>=this.max?5:Math.ceil(t*100/this.max*.03)+1}getCountEmptyDaysAtStart(){return this.startDate.getDay()}getCountEmptyDaysAtEnd(){return pe.DAYS_IN_WEEK-1-this.endDate.getDay()}getDaysCount(){return pe.DAYS_IN_ONE_YEAR+1+this.getCountEmptyDaysAtStart()+this.getCountEmptyDaysAtEnd()}shiftDate(t,r){const i=new Date(t);return i.setDate(i.getDate()+r),i}parseDate(t){return t instanceof Date?t:new Date(t)}keyDayParser(t){const r=this.parseDate(t);return String(r.getFullYear())+String(r.getMonth()).padStart(2,"0")+String(r.getDate()).padStart(2,"0")}};let S=pe;Q(S,"DEFAULT_RANGE_COLOR",["#ebedf0","#dae2ef","#c0ddf9","#73b3f3","#3886e1","#17459e"]),Q(S,"DEFAULT_LOCALE",{months:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],days:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],on:"on",less:"Less",more:"More"}),Q(S,"DEFAULT_TOOLTIP_UNIT","contributions"),Q(S,"DAYS_IN_ONE_YEAR",365),Q(S,"DAYS_IN_WEEK",7),Q(S,"SQUARE_SIZE",10);var j="top",q="bottom",z="right",V="left",ct="auto",Le=[j,q,z,V],Oe="start",Me="end",dr="clippingParents",Rt="viewport",$e="popper",vr="reference",Ct=Le.reduce(function(e,t){return e.concat([t+"-"+Oe,t+"-"+Me])},[]),It=[].concat(Le,[ct]).reduce(function(e,t){return e.concat([t,t+"-"+Oe,t+"-"+Me])},[]),hr="beforeRead",mr="read",gr="afterRead",yr="beforeMain",br="main",Er="afterMain",wr="beforeWrite",Or="write",Sr="afterWrite",Ar=[hr,mr,gr,yr,br,Er,wr,Or,Sr];function re(e){return e?(e.nodeName||"").toLowerCase():null}function J(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Se(e){var t=J(e).Element;return e instanceof t||e instanceof Element}function X(e){var t=J(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Bt(e){if(typeof ShadowRoot=="undefined")return!1;var t=J(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Dr(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var i=t.styles[r]||{},a=t.attributes[r]||{},o=t.elements[r];!X(o)||!re(o)||(Object.assign(o.style,i),Object.keys(a).forEach(function(s){var c=a[s];c===!1?o.removeAttribute(s):o.setAttribute(s,c===!0?"":c)}))})}function Tr(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(i){var a=t.elements[i],o=t.attributes[i]||{},s=Object.keys(t.styles.hasOwnProperty(i)?t.styles[i]:r[i]),c=s.reduce(function(f,v){return f[v]="",f},{});!X(a)||!re(a)||(Object.assign(a.style,c),Object.keys(o).forEach(function(f){a.removeAttribute(f)}))})}}var kt={name:"applyStyles",enabled:!0,phase:"write",fn:Dr,effect:Tr,requires:["computeStyles"]};function ne(e){return e.split("-")[0]}var he=Math.max,Ze=Math.min,Ae=Math.round;function De(e,t){t===void 0&&(t=!1);var r=e.getBoundingClientRect(),i=1,a=1;if(X(e)&&t){var o=e.offsetHeight,s=e.offsetWidth;s>0&&(i=Ae(r.width)/s||1),o>0&&(a=Ae(r.height)/o||1)}return{width:r.width/i,height:r.height/a,top:r.top/a,right:r.right/i,bottom:r.bottom/a,left:r.left/i,x:r.left/i,y:r.top/a}}function ft(e){var t=De(e),r=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:i}}function Lt(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&Bt(r)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function ie(e){return J(e).getComputedStyle(e)}function _r(e){return["table","td","th"].indexOf(re(e))>=0}function fe(e){return((Se(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ye(e){return re(e)==="html"?e:e.assignedSlot||e.parentNode||(Bt(e)?e.host:null)||fe(e)}function Mt(e){return!X(e)||ie(e).position==="fixed"?null:e.offsetParent}function xr(e){var t=navigator.userAgent.toLowerCase().indexOf("firefox")!==-1,r=navigator.userAgent.indexOf("Trident")!==-1;if(r&&X(e)){var i=ie(e);if(i.position==="fixed")return null}for(var a=Ye(e);X(a)&&["html","body"].indexOf(re(a))<0;){var o=ie(a);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return a;a=a.parentNode}return null}function Ue(e){for(var t=J(e),r=Mt(e);r&&_r(r)&&ie(r).position==="static";)r=Mt(r);return r&&(re(r)==="html"||re(r)==="body"&&ie(r).position==="static")?t:r||xr(e)||t}function pt(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Pe(e,t,r){return he(e,Ze(t,r))}function Rr(e,t,r){var i=Pe(e,t,r);return i>r?r:i}function $t(){return{top:0,right:0,bottom:0,left:0}}function Ut(e){return Object.assign({},$t(),e)}function Pt(e,t){return t.reduce(function(r,i){return r[i]=e,r},{})}var Cr=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,Ut(typeof t!="number"?t:Pt(t,Le))};function Ir(e){var t,r=e.state,i=e.name,a=e.options,o=r.elements.arrow,s=r.modifiersData.popperOffsets,c=ne(r.placement),f=pt(c),v=[V,z].indexOf(c)>=0,p=v?"height":"width";if(!(!o||!s)){var A=Cr(a.padding,r),x=ft(o),w=f==="y"?j:V,E=f==="y"?q:z,D=r.rects.reference[p]+r.rects.reference[f]-s[f]-r.rects.popper[p],O=s[f]-r.rects.reference[f],y=Ue(o),_=y?f==="y"?y.clientHeight||0:y.clientWidth||0:0,k=D/2-O/2,n=A[w],m=_-x[p]-A[E],d=_/2-x[p]/2+k,T=Pe(n,d,m),I=f;r.modifiersData[i]=(t={},t[I]=T,t.centerOffset=T-d,t)}}function Br(e){var t=e.state,r=e.options,i=r.element,a=i===void 0?"[data-popper-arrow]":i;a!=null&&(typeof a=="string"&&(a=t.elements.popper.querySelector(a),!a)||!Lt(t.elements.popper,a)||(t.elements.arrow=a))}var kr={name:"arrow",enabled:!0,phase:"main",fn:Ir,effect:Br,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Te(e){return e.split("-")[1]}var Lr={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Mr(e){var t=e.x,r=e.y,i=window,a=i.devicePixelRatio||1;return{x:Ae(t*a)/a||0,y:Ae(r*a)/a||0}}function Nt(e){var t,r=e.popper,i=e.popperRect,a=e.placement,o=e.variation,s=e.offsets,c=e.position,f=e.gpuAcceleration,v=e.adaptive,p=e.roundOffsets,A=e.isFixed,x=p===!0?Mr(s):typeof p=="function"?p(s):s,w=x.x,E=w===void 0?0:w,D=x.y,O=D===void 0?0:D,y=s.hasOwnProperty("x"),_=s.hasOwnProperty("y"),k=V,n=j,m=window;if(v){var d=Ue(r),T="clientHeight",I="clientWidth";if(d===J(r)&&(d=fe(r),ie(d).position!=="static"&&c==="absolute"&&(T="scrollHeight",I="scrollWidth")),d=d,a===j||(a===V||a===z)&&o===Me){n=q;var M=A&&m.visualViewport?m.visualViewport.height:d[T];O-=M-i.height,O*=f?1:-1}if(a===V||(a===j||a===q)&&o===Me){k=z;var $=A&&m.visualViewport?m.visualViewport.width:d[I];E-=$-i.width,E*=f?1:-1}}var B=Object.assign({position:c},v&&Lr);if(f){var C;return Object.assign({},B,(C={},C[n]=_?"0":"",C[k]=y?"0":"",C.transform=(m.devicePixelRatio||1)<=1?"translate("+E+"px, "+O+"px)":"translate3d("+E+"px, "+O+"px, 0)",C))}return Object.assign({},B,(t={},t[n]=_?O+"px":"",t[k]=y?E+"px":"",t.transform="",t))}function $r(e){var t=e.state,r=e.options,i=r.gpuAcceleration,a=i===void 0?!0:i,o=r.adaptive,s=o===void 0?!0:o,c=r.roundOffsets,f=c===void 0?!0:c,v={placement:ne(t.placement),variation:Te(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Nt(Object.assign({},v,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:f})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Nt(Object.assign({},v,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:f})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var Ur={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:$r,data:{}},qe={passive:!0};function Pr(e){var t=e.state,r=e.instance,i=e.options,a=i.scroll,o=a===void 0?!0:a,s=i.resize,c=s===void 0?!0:s,f=J(t.elements.popper),v=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&v.forEach(function(p){p.addEventListener("scroll",r.update,qe)}),c&&f.addEventListener("resize",r.update,qe),function(){o&&v.forEach(function(p){p.removeEventListener("scroll",r.update,qe)}),c&&f.removeEventListener("resize",r.update,qe)}}var Nr={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:Pr,data:{}},Fr={left:"right",right:"left",bottom:"top",top:"bottom"};function ze(e){return e.replace(/left|right|bottom|top/g,function(t){return Fr[t]})}var Wr={start:"end",end:"start"};function Ft(e){return e.replace(/start|end/g,function(t){return Wr[t]})}function dt(e){var t=J(e),r=t.pageXOffset,i=t.pageYOffset;return{scrollLeft:r,scrollTop:i}}function vt(e){return De(fe(e)).left+dt(e).scrollLeft}function jr(e){var t=J(e),r=fe(e),i=t.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;return i&&(a=i.width,o=i.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(s=i.offsetLeft,c=i.offsetTop)),{width:a,height:o,x:s+vt(e),y:c}}function Vr(e){var t,r=fe(e),i=dt(e),a=(t=e.ownerDocument)==null?void 0:t.body,o=he(r.scrollWidth,r.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),s=he(r.scrollHeight,r.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),c=-i.scrollLeft+vt(e),f=-i.scrollTop;return ie(a||r).direction==="rtl"&&(c+=he(r.clientWidth,a?a.clientWidth:0)-o),{width:o,height:s,x:c,y:f}}function ht(e){var t=ie(e),r=t.overflow,i=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+a+i)}function Wt(e){return["html","body","#document"].indexOf(re(e))>=0?e.ownerDocument.body:X(e)&&ht(e)?e:Wt(Ye(e))}function Ne(e,t){var r;t===void 0&&(t=[]);var i=Wt(e),a=i===((r=e.ownerDocument)==null?void 0:r.body),o=J(i),s=a?[o].concat(o.visualViewport||[],ht(i)?i:[]):i,c=t.concat(s);return a?c:c.concat(Ne(Ye(s)))}function mt(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Hr(e){var t=De(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}function jt(e,t){return t===Rt?mt(jr(e)):Se(t)?Hr(t):mt(Vr(fe(e)))}function Qr(e){var t=Ne(Ye(e)),r=["absolute","fixed"].indexOf(ie(e).position)>=0,i=r&&X(e)?Ue(e):e;return Se(i)?t.filter(function(a){return Se(a)&&Lt(a,i)&&re(a)!=="body"&&(r?ie(a).position!=="static":!0)}):[]}function Zr(e,t,r){var i=t==="clippingParents"?Qr(e):[].concat(t),a=[].concat(i,[r]),o=a[0],s=a.reduce(function(c,f){var v=jt(e,f);return c.top=he(v.top,c.top),c.right=Ze(v.right,c.right),c.bottom=Ze(v.bottom,c.bottom),c.left=he(v.left,c.left),c},jt(e,o));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function Vt(e){var t=e.reference,r=e.element,i=e.placement,a=i?ne(i):null,o=i?Te(i):null,s=t.x+t.width/2-r.width/2,c=t.y+t.height/2-r.height/2,f;switch(a){case j:f={x:s,y:t.y-r.height};break;case q:f={x:s,y:t.y+t.height};break;case z:f={x:t.x+t.width,y:c};break;case V:f={x:t.x-r.width,y:c};break;default:f={x:t.x,y:t.y}}var v=a?pt(a):null;if(v!=null){var p=v==="y"?"height":"width";switch(o){case Oe:f[v]=f[v]-(t[p]/2-r[p]/2);break;case Me:f[v]=f[v]+(t[p]/2-r[p]/2);break}}return f}function Fe(e,t){t===void 0&&(t={});var r=t,i=r.placement,a=i===void 0?e.placement:i,o=r.boundary,s=o===void 0?dr:o,c=r.rootBoundary,f=c===void 0?Rt:c,v=r.elementContext,p=v===void 0?$e:v,A=r.altBoundary,x=A===void 0?!1:A,w=r.padding,E=w===void 0?0:w,D=Ut(typeof E!="number"?E:Pt(E,Le)),O=p===$e?vr:$e,y=e.rects.popper,_=e.elements[x?O:p],k=Zr(Se(_)?_:_.contextElement||fe(e.elements.popper),s,f),n=De(e.elements.reference),m=Vt({reference:n,element:y,strategy:"absolute",placement:a}),d=mt(Object.assign({},y,m)),T=p===$e?d:n,I={top:k.top-T.top+D.top,bottom:T.bottom-k.bottom+D.bottom,left:k.left-T.left+D.left,right:T.right-k.right+D.right},M=e.modifiersData.offset;if(p===$e&&M){var $=M[a];Object.keys(I).forEach(function(B){var C=[z,q].indexOf(B)>=0?1:-1,P=[j,q].indexOf(B)>=0?"y":"x";I[B]+=$[P]*C})}return I}function Yr(e,t){t===void 0&&(t={});var r=t,i=r.placement,a=r.boundary,o=r.rootBoundary,s=r.padding,c=r.flipVariations,f=r.allowedAutoPlacements,v=f===void 0?It:f,p=Te(i),A=p?c?Ct:Ct.filter(function(E){return Te(E)===p}):Le,x=A.filter(function(E){return v.indexOf(E)>=0});x.length===0&&(x=A);var w=x.reduce(function(E,D){return E[D]=Fe(e,{placement:D,boundary:a,rootBoundary:o,padding:s})[ne(D)],E},{});return Object.keys(w).sort(function(E,D){return w[E]-w[D]})}function qr(e){if(ne(e)===ct)return[];var t=ze(e);return[Ft(e),t,Ft(t)]}function zr(e){var t=e.state,r=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var a=r.mainAxis,o=a===void 0?!0:a,s=r.altAxis,c=s===void 0?!0:s,f=r.fallbackPlacements,v=r.padding,p=r.boundary,A=r.rootBoundary,x=r.altBoundary,w=r.flipVariations,E=w===void 0?!0:w,D=r.allowedAutoPlacements,O=t.options.placement,y=ne(O),_=y===O,k=f||(_||!E?[ze(O)]:qr(O)),n=[O].concat(k).reduce(function(se,te){return se.concat(ne(te)===ct?Yr(t,{placement:te,boundary:p,rootBoundary:A,padding:v,flipVariations:E,allowedAutoPlacements:D}):te)},[]),m=t.rects.reference,d=t.rects.popper,T=new Map,I=!0,M=n[0],$=0;$<n.length;$++){var B=n[$],C=ne(B),P=Te(B)===Oe,Z=[j,q].indexOf(C)>=0,Y=Z?"width":"height",N=Fe(t,{placement:B,boundary:p,rootBoundary:A,altBoundary:x,padding:v}),F=Z?P?z:V:P?q:j;m[Y]>d[Y]&&(F=ze(F));var g=ze(F),H=[];if(o&&H.push(N[C]<=0),c&&H.push(N[F]<=0,N[g]<=0),H.every(function(se){return se})){M=B,I=!1;break}T.set(B,H)}if(I)for(var K=E?3:1,ye=function(te){var le=n.find(function(Re){var ue=T.get(Re);if(ue)return ue.slice(0,te).every(function(Ce){return Ce})});if(le)return M=le,"break"},oe=K;oe>0;oe--){var be=ye(oe);if(be==="break")break}t.placement!==M&&(t.modifiersData[i]._skip=!0,t.placement=M,t.reset=!0)}}var Xr={name:"flip",enabled:!0,phase:"main",fn:zr,requiresIfExists:["offset"],data:{_skip:!1}};function Ht(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function Qt(e){return[j,z,q,V].some(function(t){return e[t]>=0})}function Kr(e){var t=e.state,r=e.name,i=t.rects.reference,a=t.rects.popper,o=t.modifiersData.preventOverflow,s=Fe(t,{elementContext:"reference"}),c=Fe(t,{altBoundary:!0}),f=Ht(s,i),v=Ht(c,a,o),p=Qt(f),A=Qt(v);t.modifiersData[r]={referenceClippingOffsets:f,popperEscapeOffsets:v,isReferenceHidden:p,hasPopperEscaped:A},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":A})}var Gr={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Kr};function Jr(e,t,r){var i=ne(e),a=[V,j].indexOf(i)>=0?-1:1,o=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,s=o[0],c=o[1];return s=s||0,c=(c||0)*a,[V,z].indexOf(i)>=0?{x:c,y:s}:{x:s,y:c}}function en(e){var t=e.state,r=e.options,i=e.name,a=r.offset,o=a===void 0?[0,0]:a,s=It.reduce(function(p,A){return p[A]=Jr(A,t.rects,o),p},{}),c=s[t.placement],f=c.x,v=c.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=f,t.modifiersData.popperOffsets.y+=v),t.modifiersData[i]=s}var tn={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:en};function rn(e){var t=e.state,r=e.name;t.modifiersData[r]=Vt({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}var nn={name:"popperOffsets",enabled:!0,phase:"read",fn:rn,data:{}};function an(e){return e==="x"?"y":"x"}function on(e){var t=e.state,r=e.options,i=e.name,a=r.mainAxis,o=a===void 0?!0:a,s=r.altAxis,c=s===void 0?!1:s,f=r.boundary,v=r.rootBoundary,p=r.altBoundary,A=r.padding,x=r.tether,w=x===void 0?!0:x,E=r.tetherOffset,D=E===void 0?0:E,O=Fe(t,{boundary:f,rootBoundary:v,padding:A,altBoundary:p}),y=ne(t.placement),_=Te(t.placement),k=!_,n=pt(y),m=an(n),d=t.modifiersData.popperOffsets,T=t.rects.reference,I=t.rects.popper,M=typeof D=="function"?D(Object.assign({},t.rects,{placement:t.placement})):D,$=typeof M=="number"?{mainAxis:M,altAxis:M}:Object.assign({mainAxis:0,altAxis:0},M),B=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,C={x:0,y:0};if(!!d){if(o){var P,Z=n==="y"?j:V,Y=n==="y"?q:z,N=n==="y"?"height":"width",F=d[n],g=F+O[Z],H=F-O[Y],K=w?-I[N]/2:0,ye=_===Oe?T[N]:I[N],oe=_===Oe?-I[N]:-T[N],be=t.elements.arrow,se=w&&be?ft(be):{width:0,height:0},te=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:$t(),le=te[Z],Re=te[Y],ue=Pe(0,T[N],se[N]),Ce=k?T[N]/2-K-ue-le-$.mainAxis:ye-ue-le-$.mainAxis,de=k?-T[N]/2+K+ue+Re+$.mainAxis:oe+ue+Re+$.mainAxis,Ie=t.elements.arrow&&Ue(t.elements.arrow),Je=Ie?n==="y"?Ie.clientTop||0:Ie.clientLeft||0:0,We=(P=B==null?void 0:B[n])!=null?P:0,et=F+Ce-We-Je,tt=F+de-We,je=Pe(w?Ze(g,et):g,F,w?he(H,tt):H);d[n]=je,C[n]=je-F}if(c){var Ve,rt=n==="x"?j:V,nt=n==="x"?q:z,ce=d[m],ve=m==="y"?"height":"width",He=ce+O[rt],Ee=ce-O[nt],Qe=[j,V].indexOf(y)!==-1,it=(Ve=B==null?void 0:B[m])!=null?Ve:0,at=Qe?He:ce-T[ve]-I[ve]-it+$.altAxis,ot=Qe?ce+T[ve]+I[ve]-it-$.altAxis:Ee,st=w&&Qe?Rr(at,ce,ot):Pe(w?at:He,ce,w?ot:Ee);d[m]=st,C[m]=st-ce}t.modifiersData[i]=C}}var sn={name:"preventOverflow",enabled:!0,phase:"main",fn:on,requiresIfExists:["offset"]};function ln(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function un(e){return e===J(e)||!X(e)?dt(e):ln(e)}function cn(e){var t=e.getBoundingClientRect(),r=Ae(t.width)/e.offsetWidth||1,i=Ae(t.height)/e.offsetHeight||1;return r!==1||i!==1}function fn(e,t,r){r===void 0&&(r=!1);var i=X(t),a=X(t)&&cn(t),o=fe(t),s=De(e,a),c={scrollLeft:0,scrollTop:0},f={x:0,y:0};return(i||!i&&!r)&&((re(t)!=="body"||ht(o))&&(c=un(t)),X(t)?(f=De(t,!0),f.x+=t.clientLeft,f.y+=t.clientTop):o&&(f.x=vt(o))),{x:s.left+c.scrollLeft-f.x,y:s.top+c.scrollTop-f.y,width:s.width,height:s.height}}function pn(e){var t=new Map,r=new Set,i=[];e.forEach(function(o){t.set(o.name,o)});function a(o){r.add(o.name);var s=[].concat(o.requires||[],o.requiresIfExists||[]);s.forEach(function(c){if(!r.has(c)){var f=t.get(c);f&&a(f)}}),i.push(o)}return e.forEach(function(o){r.has(o.name)||a(o)}),i}function dn(e){var t=pn(e);return Ar.reduce(function(r,i){return r.concat(t.filter(function(a){return a.phase===i}))},[])}function vn(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function hn(e){var t=e.reduce(function(r,i){var a=r[i.name];return r[i.name]=a?Object.assign({},a,i,{options:Object.assign({},a.options,i.options),data:Object.assign({},a.data,i.data)}):i,r},{});return Object.keys(t).map(function(r){return t[r]})}var Zt={placement:"bottom",modifiers:[],strategy:"absolute"};function Yt(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(i){return!(i&&typeof i.getBoundingClientRect=="function")})}function mn(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,i=r===void 0?[]:r,a=t.defaultOptions,o=a===void 0?Zt:a;return function(c,f,v){v===void 0&&(v=o);var p={placement:"bottom",orderedModifiers:[],options:Object.assign({},Zt,o),modifiersData:{},elements:{reference:c,popper:f},attributes:{},styles:{}},A=[],x=!1,w={state:p,setOptions:function(y){var _=typeof y=="function"?y(p.options):y;D(),p.options=Object.assign({},o,p.options,_),p.scrollParents={reference:Se(c)?Ne(c):c.contextElement?Ne(c.contextElement):[],popper:Ne(f)};var k=dn(hn([].concat(i,p.options.modifiers)));return p.orderedModifiers=k.filter(function(n){return n.enabled}),E(),w.update()},forceUpdate:function(){if(!x){var y=p.elements,_=y.reference,k=y.popper;if(!!Yt(_,k)){p.rects={reference:fn(_,Ue(k),p.options.strategy==="fixed"),popper:ft(k)},p.reset=!1,p.placement=p.options.placement,p.orderedModifiers.forEach(function($){return p.modifiersData[$.name]=Object.assign({},$.data)});for(var n=0;n<p.orderedModifiers.length;n++){if(p.reset===!0){p.reset=!1,n=-1;continue}var m=p.orderedModifiers[n],d=m.fn,T=m.options,I=T===void 0?{}:T,M=m.name;typeof d=="function"&&(p=d({state:p,options:I,name:M,instance:w})||p)}}}},update:vn(function(){return new Promise(function(O){w.forceUpdate(),O(p)})}),destroy:function(){D(),x=!0}};if(!Yt(c,f))return w;w.setOptions(v).then(function(O){!x&&v.onFirstUpdate&&v.onFirstUpdate(O)});function E(){p.orderedModifiers.forEach(function(O){var y=O.name,_=O.options,k=_===void 0?{}:_,n=O.effect;if(typeof n=="function"){var m=n({state:p,name:y,instance:w,options:k}),d=function(){};A.push(m||d)}})}function D(){A.forEach(function(O){return O()}),A=[]}return w}}var gn=[Nr,nn,Ur,kt,tn,Xr,sn,kr,Gr],yn=mn({defaultModifiers:gn}),bn="tippy-box",qt="tippy-content",En="tippy-backdrop",zt="tippy-arrow",Xt="tippy-svg-arrow",me={passive:!0,capture:!0},Kt=function(){return document.body};function gt(e,t,r){if(Array.isArray(e)){var i=e[t];return i==null?Array.isArray(r)?r[t]:r:i}return e}function yt(e,t){var r={}.toString.call(e);return r.indexOf("[object")===0&&r.indexOf(t+"]")>-1}function Gt(e,t){return typeof e=="function"?e.apply(void 0,t):e}function Jt(e,t){if(t===0)return e;var r;return function(i){clearTimeout(r),r=setTimeout(function(){e(i)},t)}}function wn(e,t){var r=Object.assign({},e);return t.forEach(function(i){delete r[i]}),r}function On(e){return e.split(/\s+/).filter(Boolean)}function ge(e){return[].concat(e)}function er(e,t){e.indexOf(t)===-1&&e.push(t)}function Sn(e){return e.filter(function(t,r){return e.indexOf(t)===r})}function An(e){return e.split("-")[0]}function Xe(e){return[].slice.call(e)}function tr(e){return Object.keys(e).reduce(function(t,r){return e[r]!==void 0&&(t[r]=e[r]),t},{})}function _e(){return document.createElement("div")}function Ke(e){return["Element","Fragment"].some(function(t){return yt(e,t)})}function Dn(e){return yt(e,"NodeList")}function Tn(e){return yt(e,"MouseEvent")}function _n(e){return!!(e&&e._tippy&&e._tippy.reference===e)}function xn(e){return Ke(e)?[e]:Dn(e)?Xe(e):Array.isArray(e)?e:Xe(document.querySelectorAll(e))}function bt(e,t){e.forEach(function(r){r&&(r.style.transitionDuration=t+"ms")})}function rr(e,t){e.forEach(function(r){r&&r.setAttribute("data-state",t)})}function Rn(e){var t,r=ge(e),i=r[0];return i!=null&&(t=i.ownerDocument)!=null&&t.body?i.ownerDocument:document}function Cn(e,t){var r=t.clientX,i=t.clientY;return e.every(function(a){var o=a.popperRect,s=a.popperState,c=a.props,f=c.interactiveBorder,v=An(s.placement),p=s.modifiersData.offset;if(!p)return!0;var A=v==="bottom"?p.top.y:0,x=v==="top"?p.bottom.y:0,w=v==="right"?p.left.x:0,E=v==="left"?p.right.x:0,D=o.top-i+A>f,O=i-o.bottom-x>f,y=o.left-r+w>f,_=r-o.right-E>f;return D||O||y||_})}function Et(e,t,r){var i=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(a){e[i](a,r)})}function nr(e,t){for(var r=t;r;){var i;if(e.contains(r))return!0;r=r.getRootNode==null||(i=r.getRootNode())==null?void 0:i.host}return!1}var ae={isTouch:!1},ir=0;function In(){ae.isTouch||(ae.isTouch=!0,window.performance&&document.addEventListener("mousemove",ar))}function ar(){var e=performance.now();e-ir<20&&(ae.isTouch=!1,document.removeEventListener("mousemove",ar)),ir=e}function Bn(){var e=document.activeElement;if(_n(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}function kn(){document.addEventListener("touchstart",In,me),window.addEventListener("blur",Bn)}var Ln=typeof window!="undefined"&&typeof document!="undefined",Mn=Ln?!!window.msCrypto:!1,$n={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},Un={allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999},ee=Object.assign({appendTo:Kt,aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},$n,Un),Pn=Object.keys(ee),Nn=function(t){var r=Object.keys(t);r.forEach(function(i){ee[i]=t[i]})};function or(e){var t=e.plugins||[],r=t.reduce(function(i,a){var o=a.name,s=a.defaultValue;if(o){var c;i[o]=e[o]!==void 0?e[o]:(c=ee[o])!=null?c:s}return i},{});return Object.assign({},e,r)}function Fn(e,t){var r=t?Object.keys(or(Object.assign({},ee,{plugins:t}))):Pn,i=r.reduce(function(a,o){var s=(e.getAttribute("data-tippy-"+o)||"").trim();if(!s)return a;if(o==="content")a[o]=s;else try{a[o]=JSON.parse(s)}catch{a[o]=s}return a},{});return i}function sr(e,t){var r=Object.assign({},t,{content:Gt(t.content,[e])},t.ignoreAttributes?{}:Fn(e,t.plugins));return r.aria=Object.assign({},ee.aria,r.aria),r.aria={expanded:r.aria.expanded==="auto"?t.interactive:r.aria.expanded,content:r.aria.content==="auto"?t.interactive?null:"describedby":r.aria.content},r}var Wn=function(){return"innerHTML"};function wt(e,t){e[Wn()]=t}function lr(e){var t=_e();return e===!0?t.className=zt:(t.className=Xt,Ke(e)?t.appendChild(e):wt(t,e)),t}function ur(e,t){Ke(t.content)?(wt(e,""),e.appendChild(t.content)):typeof t.content!="function"&&(t.allowHTML?wt(e,t.content):e.textContent=t.content)}function Ot(e){var t=e.firstElementChild,r=Xe(t.children);return{box:t,content:r.find(function(i){return i.classList.contains(qt)}),arrow:r.find(function(i){return i.classList.contains(zt)||i.classList.contains(Xt)}),backdrop:r.find(function(i){return i.classList.contains(En)})}}function cr(e){var t=_e(),r=_e();r.className=bn,r.setAttribute("data-state","hidden"),r.setAttribute("tabindex","-1");var i=_e();i.className=qt,i.setAttribute("data-state","hidden"),ur(i,e.props),t.appendChild(r),r.appendChild(i),a(e.props,e.props);function a(o,s){var c=Ot(t),f=c.box,v=c.content,p=c.arrow;s.theme?f.setAttribute("data-theme",s.theme):f.removeAttribute("data-theme"),typeof s.animation=="string"?f.setAttribute("data-animation",s.animation):f.removeAttribute("data-animation"),s.inertia?f.setAttribute("data-inertia",""):f.removeAttribute("data-inertia"),f.style.maxWidth=typeof s.maxWidth=="number"?s.maxWidth+"px":s.maxWidth,s.role?f.setAttribute("role",s.role):f.removeAttribute("role"),(o.content!==s.content||o.allowHTML!==s.allowHTML)&&ur(v,e.props),s.arrow?p?o.arrow!==s.arrow&&(f.removeChild(p),f.appendChild(lr(s.arrow))):f.appendChild(lr(s.arrow)):p&&f.removeChild(p)}return{popper:t,onUpdate:a}}cr.$$tippy=!0;var jn=1,Ge=[],St=[];function Vn(e,t){var r=sr(e,Object.assign({},ee,or(tr(t)))),i,a,o,s=!1,c=!1,f=!1,v=!1,p,A,x,w=[],E=Jt(et,r.interactiveDebounce),D,O=jn++,y=null,_=Sn(r.plugins),k={isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},n={id:O,reference:e,popper:_e(),popperInstance:y,props:r,state:k,plugins:_,clearDelayTimeouts:at,setProps:ot,setContent:st,show:bi,hide:Ei,hideWithInteractivity:wi,enable:Qe,disable:it,unmount:Oi,destroy:Si};if(!r.render)return n;var m=r.render(n),d=m.popper,T=m.onUpdate;d.setAttribute("data-tippy-root",""),d.id="tippy-"+n.id,n.popper=d,e._tippy=n,d._tippy=n;var I=_.map(function(l){return l.fn(n)}),M=e.hasAttribute("aria-expanded");return Ie(),K(),F(),g("onCreate",[n]),r.showOnCreate&&He(),d.addEventListener("mouseenter",function(){n.props.interactive&&n.state.isVisible&&n.clearDelayTimeouts()}),d.addEventListener("mouseleave",function(){n.props.interactive&&n.props.trigger.indexOf("mouseenter")>=0&&Z().addEventListener("mousemove",E)}),n;function $(){var l=n.props.touch;return Array.isArray(l)?l:[l,0]}function B(){return $()[0]==="hold"}function C(){var l;return!!((l=n.props.render)!=null&&l.$$tippy)}function P(){return D||e}function Z(){var l=P().parentNode;return l?Rn(l):document}function Y(){return Ot(d)}function N(l){return n.state.isMounted&&!n.state.isVisible||ae.isTouch||p&&p.type==="focus"?0:gt(n.props.delay,l?0:1,ee.delay)}function F(l){l===void 0&&(l=!1),d.style.pointerEvents=n.props.interactive&&!l?"":"none",d.style.zIndex=""+n.props.zIndex}function g(l,h,b){if(b===void 0&&(b=!0),I.forEach(function(R){R[l]&&R[l].apply(R,h)}),b){var L;(L=n.props)[l].apply(L,h)}}function H(){var l=n.props.aria;if(!!l.content){var h="aria-"+l.content,b=d.id,L=ge(n.props.triggerTarget||e);L.forEach(function(R){var W=R.getAttribute(h);if(n.state.isVisible)R.setAttribute(h,W?W+" "+b:b);else{var G=W&&W.replace(b,"").trim();G?R.setAttribute(h,G):R.removeAttribute(h)}})}}function K(){if(!(M||!n.props.aria.expanded)){var l=ge(n.props.triggerTarget||e);l.forEach(function(h){n.props.interactive?h.setAttribute("aria-expanded",n.state.isVisible&&h===P()?"true":"false"):h.removeAttribute("aria-expanded")})}}function ye(){Z().removeEventListener("mousemove",E),Ge=Ge.filter(function(l){return l!==E})}function oe(l){if(!(ae.isTouch&&(f||l.type==="mousedown"))){var h=l.composedPath&&l.composedPath()[0]||l.target;if(!(n.props.interactive&&nr(d,h))){if(ge(n.props.triggerTarget||e).some(function(b){return nr(b,h)})){if(ae.isTouch||n.state.isVisible&&n.props.trigger.indexOf("click")>=0)return}else g("onClickOutside",[n,l]);n.props.hideOnClick===!0&&(n.clearDelayTimeouts(),n.hide(),c=!0,setTimeout(function(){c=!1}),n.state.isMounted||le())}}}function be(){f=!0}function se(){f=!1}function te(){var l=Z();l.addEventListener("mousedown",oe,!0),l.addEventListener("touchend",oe,me),l.addEventListener("touchstart",se,me),l.addEventListener("touchmove",be,me)}function le(){var l=Z();l.removeEventListener("mousedown",oe,!0),l.removeEventListener("touchend",oe,me),l.removeEventListener("touchstart",se,me),l.removeEventListener("touchmove",be,me)}function Re(l,h){Ce(l,function(){!n.state.isVisible&&d.parentNode&&d.parentNode.contains(d)&&h()})}function ue(l,h){Ce(l,h)}function Ce(l,h){var b=Y().box;function L(R){R.target===b&&(Et(b,"remove",L),h())}if(l===0)return h();Et(b,"remove",A),Et(b,"add",L),A=L}function de(l,h,b){b===void 0&&(b=!1);var L=ge(n.props.triggerTarget||e);L.forEach(function(R){R.addEventListener(l,h,b),w.push({node:R,eventType:l,handler:h,options:b})})}function Ie(){B()&&(de("touchstart",We,{passive:!0}),de("touchend",tt,{passive:!0})),On(n.props.trigger).forEach(function(l){if(l!=="manual")switch(de(l,We),l){case"mouseenter":de("mouseleave",tt);break;case"focus":de(Mn?"focusout":"blur",je);break;case"focusin":de("focusout",je);break}})}function Je(){w.forEach(function(l){var h=l.node,b=l.eventType,L=l.handler,R=l.options;h.removeEventListener(b,L,R)}),w=[]}function We(l){var h,b=!1;if(!(!n.state.isEnabled||Ve(l)||c)){var L=((h=p)==null?void 0:h.type)==="focus";p=l,D=l.currentTarget,K(),!n.state.isVisible&&Tn(l)&&Ge.forEach(function(R){return R(l)}),l.type==="click"&&(n.props.trigger.indexOf("mouseenter")<0||s)&&n.props.hideOnClick!==!1&&n.state.isVisible?b=!0:He(l),l.type==="click"&&(s=!b),b&&!L&&Ee(l)}}function et(l){var h=l.target,b=P().contains(h)||d.contains(h);if(!(l.type==="mousemove"&&b)){var L=ve().concat(d).map(function(R){var W,G=R._tippy,Be=(W=G.popperInstance)==null?void 0:W.state;return Be?{popperRect:R.getBoundingClientRect(),popperState:Be,props:r}:null}).filter(Boolean);Cn(L,l)&&(ye(),Ee(l))}}function tt(l){var h=Ve(l)||n.props.trigger.indexOf("click")>=0&&s;if(!h){if(n.props.interactive){n.hideWithInteractivity(l);return}Ee(l)}}function je(l){n.props.trigger.indexOf("focusin")<0&&l.target!==P()||n.props.interactive&&l.relatedTarget&&d.contains(l.relatedTarget)||Ee(l)}function Ve(l){return ae.isTouch?B()!==l.type.indexOf("touch")>=0:!1}function rt(){nt();var l=n.props,h=l.popperOptions,b=l.placement,L=l.offset,R=l.getReferenceClientRect,W=l.moveTransition,G=C()?Ot(d).arrow:null,Be=R?{getBoundingClientRect:R,contextElement:R.contextElement||P()}:e,fr={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(lt){var ke=lt.state;if(C()){var Ai=Y(),Tt=Ai.box;["placement","reference-hidden","escaped"].forEach(function(ut){ut==="placement"?Tt.setAttribute("data-placement",ke.placement):ke.attributes.popper["data-popper-"+ut]?Tt.setAttribute("data-"+ut,""):Tt.removeAttribute("data-"+ut)}),ke.attributes.popper={}}}},we=[{name:"offset",options:{offset:L}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!W}},fr];C()&&G&&we.push({name:"arrow",options:{element:G,padding:3}}),we.push.apply(we,(h==null?void 0:h.modifiers)||[]),n.popperInstance=yn(Be,d,Object.assign({},h,{placement:b,onFirstUpdate:x,modifiers:we}))}function nt(){n.popperInstance&&(n.popperInstance.destroy(),n.popperInstance=null)}function ce(){var l=n.props.appendTo,h,b=P();n.props.interactive&&l===Kt||l==="parent"?h=b.parentNode:h=Gt(l,[b]),h.contains(d)||h.appendChild(d),n.state.isMounted=!0,rt()}function ve(){return Xe(d.querySelectorAll("[data-tippy-root]"))}function He(l){n.clearDelayTimeouts(),l&&g("onTrigger",[n,l]),te();var h=N(!0),b=$(),L=b[0],R=b[1];ae.isTouch&&L==="hold"&&R&&(h=R),h?i=setTimeout(function(){n.show()},h):n.show()}function Ee(l){if(n.clearDelayTimeouts(),g("onUntrigger",[n,l]),!n.state.isVisible){le();return}if(!(n.props.trigger.indexOf("mouseenter")>=0&&n.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(l.type)>=0&&s)){var h=N(!1);h?a=setTimeout(function(){n.state.isVisible&&n.hide()},h):o=requestAnimationFrame(function(){n.hide()})}}function Qe(){n.state.isEnabled=!0}function it(){n.hide(),n.state.isEnabled=!1}function at(){clearTimeout(i),clearTimeout(a),cancelAnimationFrame(o)}function ot(l){if(!n.state.isDestroyed){g("onBeforeUpdate",[n,l]),Je();var h=n.props,b=sr(e,Object.assign({},h,tr(l),{ignoreAttributes:!0}));n.props=b,Ie(),h.interactiveDebounce!==b.interactiveDebounce&&(ye(),E=Jt(et,b.interactiveDebounce)),h.triggerTarget&&!b.triggerTarget?ge(h.triggerTarget).forEach(function(L){L.removeAttribute("aria-expanded")}):b.triggerTarget&&e.removeAttribute("aria-expanded"),K(),F(),T&&T(h,b),n.popperInstance&&(rt(),ve().forEach(function(L){requestAnimationFrame(L._tippy.popperInstance.forceUpdate)})),g("onAfterUpdate",[n,l])}}function st(l){n.setProps({content:l})}function bi(){var l=n.state.isVisible,h=n.state.isDestroyed,b=!n.state.isEnabled,L=ae.isTouch&&!n.props.touch,R=gt(n.props.duration,0,ee.duration);if(!(l||h||b||L)&&!P().hasAttribute("disabled")&&(g("onShow",[n],!1),n.props.onShow(n)!==!1)){if(n.state.isVisible=!0,C()&&(d.style.visibility="visible"),F(),te(),n.state.isMounted||(d.style.transition="none"),C()){var W=Y(),G=W.box,Be=W.content;bt([G,Be],0)}x=function(){var we;if(!(!n.state.isVisible||v)){if(v=!0,d.offsetHeight,d.style.transition=n.props.moveTransition,C()&&n.props.animation){var Dt=Y(),lt=Dt.box,ke=Dt.content;bt([lt,ke],R),rr([lt,ke],"visible")}H(),K(),er(St,n),(we=n.popperInstance)==null||we.forceUpdate(),g("onMount",[n]),n.props.animation&&C()&&ue(R,function(){n.state.isShown=!0,g("onShown",[n])})}},ce()}}function Ei(){var l=!n.state.isVisible,h=n.state.isDestroyed,b=!n.state.isEnabled,L=gt(n.props.duration,1,ee.duration);if(!(l||h||b)&&(g("onHide",[n],!1),n.props.onHide(n)!==!1)){if(n.state.isVisible=!1,n.state.isShown=!1,v=!1,s=!1,C()&&(d.style.visibility="hidden"),ye(),le(),F(!0),C()){var R=Y(),W=R.box,G=R.content;n.props.animation&&(bt([W,G],L),rr([W,G],"hidden"))}H(),K(),n.props.animation?C()&&Re(L,n.unmount):n.unmount()}}function wi(l){Z().addEventListener("mousemove",E),er(Ge,E),E(l)}function Oi(){n.state.isVisible&&n.hide(),!!n.state.isMounted&&(nt(),ve().forEach(function(l){l._tippy.unmount()}),d.parentNode&&d.parentNode.removeChild(d),St=St.filter(function(l){return l!==n}),n.state.isMounted=!1,g("onHidden",[n]))}function Si(){n.state.isDestroyed||(n.clearDelayTimeouts(),n.unmount(),Je(),delete e._tippy,n.state.isDestroyed=!0,g("onDestroy",[n]))}}function xe(e,t){t===void 0&&(t={});var r=ee.plugins.concat(t.plugins||[]);kn();var i=Object.assign({},t,{plugins:r}),a=xn(e),o=a.reduce(function(s,c){var f=c&&Vn(c,i);return f&&s.push(f),s},[]);return Ke(e)?o[0]:o}xe.defaultProps=ee,xe.setDefaultProps=Nn,xe.currentInput=ae;var Hn=Object.assign({},kt,{effect:function(t){var r=t.state,i={popper:{position:r.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(r.elements.popper.style,i.popper),r.styles=i,r.elements.arrow&&Object.assign(r.elements.arrow.style,i.arrow)}}),Qn=function(t,r){var i;r===void 0&&(r={});var a=t,o=[],s=[],c,f=r.overrides,v=[],p=!1;function A(){s=a.map(function(n){return ge(n.props.triggerTarget||n.reference)}).reduce(function(n,m){return n.concat(m)},[])}function x(){o=a.map(function(n){return n.reference})}function w(n){a.forEach(function(m){n?m.enable():m.disable()})}function E(n){return a.map(function(m){var d=m.setProps;return m.setProps=function(T){d(T),m.reference===c&&n.setProps(T)},function(){m.setProps=d}})}function D(n,m){var d=s.indexOf(m);if(m!==c){c=m;var T=(f||[]).concat("content").reduce(function(I,M){return I[M]=a[d].props[M],I},{});n.setProps(Object.assign({},T,{getReferenceClientRect:typeof T.getReferenceClientRect=="function"?T.getReferenceClientRect:function(){var I;return(I=o[d])==null?void 0:I.getBoundingClientRect()}}))}}w(!1),x(),A();var O={fn:function(){return{onDestroy:function(){w(!0)},onHidden:function(){c=null},onClickOutside:function(d){d.props.showOnCreate&&!p&&(p=!0,c=null)},onShow:function(d){d.props.showOnCreate&&!p&&(p=!0,D(d,o[0]))},onTrigger:function(d,T){D(d,T.currentTarget)}}}},y=xe(_e(),Object.assign({},wn(r,["overrides"]),{plugins:[O].concat(r.plugins||[]),triggerTarget:s,popperOptions:Object.assign({},r.popperOptions,{modifiers:[].concat(((i=r.popperOptions)==null?void 0:i.modifiers)||[],[Hn])})})),_=y.show;y.show=function(n){if(_(),!c&&n==null)return D(y,o[0]);if(!(c&&n==null)){if(typeof n=="number")return o[n]&&D(y,o[n]);if(a.indexOf(n)>=0){var m=n.reference;return D(y,m)}if(o.indexOf(n)>=0)return D(y,n)}},y.showNext=function(){var n=o[0];if(!c)return y.show(0);var m=o.indexOf(c);y.show(o[m+1]||n)},y.showPrevious=function(){var n=o[o.length-1];if(!c)return y.show(n);var m=o.indexOf(c),d=o[m-1]||n;y.show(d)};var k=y.setProps;return y.setProps=function(n){f=n.overrides||f,k(n)},y.setInstances=function(n){w(!0),v.forEach(function(m){return m()}),a=n,w(!1),x(),A(),v=E(y),y.setProps({triggerTarget:s})},v=E(y),y};xe.setDefaultProps({render:cr});var xi="",Ri="",Ci="",Zn=(e,t)=>{const r=e.__vccOpts||e;for(const[i,a]of t)r[i]=a;return r};const Yn=u.defineComponent({name:"CalendarHeatmap",props:{endDate:{required:!0},max:{type:Number},rangeColor:{type:Array,default:S.DEFAULT_RANGE_COLOR},values:{type:Array,required:!0},locale:{type:Object},tooltip:{type:Boolean,default:!0},tooltipUnit:{type:String,default:S.DEFAULT_TOOLTIP_UNIT},tooltipFormatter:{type:Function},vertical:{type:Boolean,default:!1},noDataText:{type:[Boolean,String],default:null},round:{type:Number,default:0}},emits:["dayClick"],setup(e){const t=S.SQUARE_SIZE/5,r=S.SQUARE_SIZE+t,i=Math.ceil(S.SQUARE_SIZE*2.5),a=r*3,o=S.SQUARE_SIZE+S.SQUARE_SIZE/2,s=S.SQUARE_SIZE+S.SQUARE_SIZE/2,c=`translate(${i}, ${o})`,f=u.ref(null),v=u.ref(new Date),p=u.ref(new S(e.endDate,e.values,e.max)),A=u.ref(0),x=u.ref(0),w=u.ref("0 0 0 0"),E=u.ref("0 0 0 0"),D=u.ref(""),O=u.ref(""),y=u.ref(""),_=u.ref({}),{values:k,tooltipUnit:n,tooltipFormatter:m,noDataText:d,max:T,rangeColor:I,vertical:M,locale:$}=u.toRefs(e);let B,C;function P(){B=xe(Array.from(f.value.querySelectorAll(".vch__day__square[data-tippy-content]"))),C?C.setInstances(B):C=Qn(B,{moveTransition:"transform 0.1s ease-out",allowHTML:!0})}function Z(g){if(e.tooltip){if(g.count!==void 0)return e.tooltipFormatter?e.tooltipFormatter(g,e.tooltipUnit):`<b>${g.count} ${e.tooltipUnit}</b> ${_.value.on} ${_.value.months[g.date.getMonth()]} ${g.date.getDate()}, ${g.date.getFullYear()}`;if(e.noDataText)return`${e.noDataText}`;if(e.noDataText!==!1)return`<b>No ${e.tooltipUnit}</b> ${_.value.on} ${_.value.months[g.date.getMonth()]} ${g.date.getDate()}, ${g.date.getFullYear()}`}}function Y(g){return e.vertical?`translate(0, ${r*p.value.weekCount-(g+1)*r})`:`translate(${g*r}, 0)`}function N(g){return e.vertical?`translate(${g*r}, 0)`:`translate(0, ${g*r})`}function F(g){return e.vertical?{x:3,y:r*p.value.weekCount-r*g.index-r/4}:{x:r*g.index,y:r-t}}return u.watch(M,g=>{g?(A.value=i+r*S.DAYS_IN_WEEK+a,x.value=o+r*p.value.weekCount+t,D.value=`translate(${i}, 0)`,O.value=`translate(0, ${o})`):(A.value=i+r*p.value.weekCount+t,x.value=o+r*S.DAYS_IN_WEEK,D.value=`translate(0, ${o})`,O.value=`translate(${i}, 0)`)},{immediate:!0}),u.watch([A,x],([g,H])=>w.value=` 0 0 ${g} ${H}`,{immediate:!0}),u.watch([A,x,I],([g,H,K])=>{y.value=M.value?`translate(${i+r*S.DAYS_IN_WEEK}, ${o})`:`translate(${g-r*K.length-30}, ${H-s})`},{immediate:!0}),u.watch($,g=>_.value=g?xt(xt({},S.DEFAULT_LOCALE),g):S.DEFAULT_LOCALE,{immediate:!0}),u.watch(I,g=>E.value=`0 0 ${S.SQUARE_SIZE*(g.length+1)} ${S.SQUARE_SIZE}`,{immediate:!0}),u.watch([k,n,m,d,T,I],()=>{p.value=new S(e.endDate,e.values,e.max),B==null||B.map(g=>g.destroy()),u.nextTick(P)}),u.onMounted(P),u.onBeforeUnmount(()=>{C==null||C.destroy(),B==null||B.map(g=>g.destroy())}),{SQUARE_BORDER_SIZE:t,SQUARE_SIZE:r,LEFT_SECTION_WIDTH:i,RIGHT_SECTION_WIDTH:a,TOP_SECTION_HEIGHT:o,BOTTOM_SECTION_HEIGHT:s,svg:f,heatmap:p,now:v,width:A,height:x,viewbox:w,daysLabelWrapperTransform:D,monthsLabelWrapperTransform:O,yearWrapperTransform:c,legendWrapperTransform:y,lo:_,legendViewbox:E,tooltipOptions:Z,getWeekPosition:Y,getDayPosition:N,getMonthLabelPosition:F}}}),qn={class:"vch__container"},zn=["viewBox"],Xn=["transform"],Kn=["x","y"],Gn=["transform"],Jn=["x","y"],ei=["x","y"],ti=["x","y"],ri=["transform"],ni=["x"],ii=["rx","ry","width","height","x","y"],ai=["x","y"],oi=["transform"],si=["transform"],li=["rx","ry","transform","width","height","data-tippy-content","onClick"],ui={class:"vch__legend"},ci={class:"vch__legend-left"},fi={class:"vch__legend-right"},pi={class:"vch__legend"},di=["viewBox","height"],vi={class:"vch__legend__wrapper"},hi=["rx","ry","width","height","x"];function mi(e,t,r,i,a,o){return u.openBlock(),u.createElementBlock("div",qn,[(u.openBlock(),u.createElementBlock("svg",{class:"vch__wrapper",ref:"svg",viewBox:e.viewbox},[u.createElementVNode("g",{class:"vch__months__labels__wrapper",transform:e.monthsLabelWrapperTransform},[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(e.heatmap.firstFullWeekOfMonths,(s,c)=>(u.openBlock(),u.createElementBlock("text",{class:"vch__month__label",key:c,x:e.getMonthLabelPosition(s).x,y:e.getMonthLabelPosition(s).y},u.toDisplayString(e.lo.months[s.value]),9,Kn))),128))],8,Xn),u.createElementVNode("g",{class:"vch__days__labels__wrapper",transform:e.daysLabelWrapperTransform},[u.createElementVNode("text",{class:"vch__day__label",x:e.vertical?e.SQUARE_SIZE:0,y:e.vertical?e.SQUARE_SIZE-e.SQUARE_BORDER_SIZE:20},u.toDisplayString(e.lo.days[1]),9,Jn),u.createElementVNode("text",{class:"vch__day__label",x:e.vertical?e.SQUARE_SIZE*3:0,y:e.vertical?e.SQUARE_SIZE-e.SQUARE_BORDER_SIZE:44},u.toDisplayString(e.lo.days[3]),9,ei),u.createElementVNode("text",{class:"vch__day__label",x:e.vertical?e.SQUARE_SIZE*5:0,y:e.vertical?e.SQUARE_SIZE-e.SQUARE_BORDER_SIZE:69},u.toDisplayString(e.lo.days[5]),9,ti)],8,Gn),e.vertical?(u.openBlock(),u.createElementBlock("g",{key:0,class:"vch__legend__wrapper",transform:e.legendWrapperTransform},[u.createElementVNode("text",{x:e.SQUARE_SIZE*1.25,y:"8"},u.toDisplayString(e.lo.less),9,ni),(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(e.rangeColor,(s,c)=>(u.openBlock(),u.createElementBlock("rect",{key:c,rx:e.round,ry:e.round,style:u.normalizeStyle({fill:s}),width:e.SQUARE_SIZE-e.SQUARE_BORDER_SIZE,height:e.SQUARE_SIZE-e.SQUARE_BORDER_SIZE,x:e.SQUARE_SIZE*1.75,y:e.SQUARE_SIZE*(c+1)},null,12,ii))),128)),u.createElementVNode("text",{x:e.SQUARE_SIZE*1.25,y:e.SQUARE_SIZE*(e.rangeColor.length+2)-e.SQUARE_BORDER_SIZE},u.toDisplayString(e.lo.more),9,ai)],8,ri)):u.createCommentVNode("",!0),u.createElementVNode("g",{class:"vch__year__wrapper",transform:e.yearWrapperTransform},[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(e.heatmap.calendar,(s,c)=>(u.openBlock(),u.createElementBlock("g",{class:"vch__month__wrapper",key:c,transform:e.getWeekPosition(c)},[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(s,(f,v)=>(u.openBlock(),u.createElementBlock(u.Fragment,{key:v},[f.date<e.now?(u.openBlock(),u.createElementBlock("rect",{key:0,class:"vch__day__square",rx:e.round,ry:e.round,transform:e.getDayPosition(v),width:e.SQUARE_SIZE-e.SQUARE_BORDER_SIZE,height:e.SQUARE_SIZE-e.SQUARE_BORDER_SIZE,style:u.normalizeStyle({fill:e.rangeColor[f.colorIndex]}),"data-tippy-content":e.tooltipOptions(f),onClick:p=>e.$emit("dayClick",f)},null,12,li)):u.createCommentVNode("",!0)],64))),128))],8,si))),128))],8,oi)],8,zn)),u.createElementVNode("div",ui,[u.renderSlot(e.$slots,"legend",{},()=>[u.createElementVNode("div",ci,[u.renderSlot(e.$slots,"vch__legend-left")]),u.createElementVNode("div",fi,[u.renderSlot(e.$slots,"legend-right",{},()=>[u.createElementVNode("div",pi,[u.createElementVNode("div",null,u.toDisplayString(e.lo.less),1),e.vertical?u.createCommentVNode("",!0):(u.openBlock(),u.createElementBlock("svg",{key:0,class:"vch__external-legend-wrapper",viewBox:e.legendViewbox,height:e.SQUARE_SIZE-e.SQUARE_BORDER_SIZE},[u.createElementVNode("g",vi,[(u.openBlock(!0),u.createElementBlock(u.Fragment,null,u.renderList(e.rangeColor,(s,c)=>(u.openBlock(),u.createElementBlock("rect",{key:c,rx:e.round,ry:e.round,style:u.normalizeStyle({fill:s}),width:e.SQUARE_SIZE-e.SQUARE_BORDER_SIZE,height:e.SQUARE_SIZE-e.SQUARE_BORDER_SIZE,x:e.SQUARE_SIZE*c},null,12,hi))),128))])],8,di)),u.createElementVNode("div",null,u.toDisplayString(e.lo.more),1)])])])])])])}var At=Zn(Yn,[["render",mi]]);function gi(e){e.component(At.name,At)}var yi={install:gi};U.CalendarHeatmap=At,U.Heatmap=S,U.default=yi,Object.defineProperty(U,"__esModule",{value:!0}),U[Symbol.toStringTag]="Module"});
{
"name": "vue3-calendar-heatmap",
"version": "2.0.0-beta.1",
"version": "2.0.0",
"description": "A lightweight calendar heatmap Vue 3 component built on SVG, inspired by julienr114's vue-calendar-heatmap ans github's contribution calendar graph",

@@ -5,0 +5,0 @@ "keywords": [

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc