From 3d5a95d7e1af59cf61a8b6999ac44124a4d214db Mon Sep 17 00:00:00 2001 From: Lukasz Raczylo Date: Wed, 10 Dec 2025 21:41:36 +0000 Subject: [PATCH] fixup! Fix tests. --- .gitignore | 2 +- .../site/dist/assets/chart-BR_H7_9u.js | 18 +++++++++++++ .../site/dist/assets/index-0FJP5bbM.js | 25 +++++++++++++++++++ .../site/dist/assets/index-BItowgpY.css | 1 + internal/generator/site/dist/index.html | 18 +++++++++++++ 5 files changed, 63 insertions(+), 1 deletion(-) create mode 100644 internal/generator/site/dist/assets/chart-BR_H7_9u.js create mode 100644 internal/generator/site/dist/assets/index-0FJP5bbM.js create mode 100644 internal/generator/site/dist/assets/index-BItowgpY.css create mode 100644 internal/generator/site/dist/index.html diff --git a/.gitignore b/.gitignore index 923940b..6c66f7c 100644 --- a/.gitignore +++ b/.gitignore @@ -2,7 +2,7 @@ node_modules/ git-velocity .repos/ .cache/ -dist/ +/dist/ web/dist/ web/public/data config.yaml diff --git a/internal/generator/site/dist/assets/chart-BR_H7_9u.js b/internal/generator/site/dist/assets/chart-BR_H7_9u.js new file mode 100644 index 0000000..446d864 --- /dev/null +++ b/internal/generator/site/dist/assets/chart-BR_H7_9u.js @@ -0,0 +1,18 @@ +var yo=Object.defineProperty;var vo=(i,t,e)=>t in i?yo(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e;var M=(i,t,e)=>vo(i,typeof t!="symbol"?t+"":t,e);/*! + * @kurkle/color v0.3.4 + * https://github.com/kurkle/color#readme + * (c) 2024 Jukka Kurkela + * Released under the MIT License + */function ve(i){return i+.5|0}const bt=(i,t,e)=>Math.max(Math.min(i,e),t);function ie(i){return bt(ve(i*2.55),0,255)}function Mt(i){return bt(ve(i*255),0,255)}function ft(i){return bt(ve(i/2.55)/100,0,1)}function Qi(i){return bt(ve(i*100),0,100)}const it={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},vi=[..."0123456789ABCDEF"],Mo=i=>vi[i&15],ko=i=>vi[(i&240)>>4]+vi[i&15],Se=i=>(i&240)>>4===(i&15),So=i=>Se(i.r)&&Se(i.g)&&Se(i.b)&&Se(i.a);function wo(i){var t=i.length,e;return i[0]==="#"&&(t===4||t===5?e={r:255&it[i[1]]*17,g:255&it[i[2]]*17,b:255&it[i[3]]*17,a:t===5?it[i[4]]*17:255}:(t===7||t===9)&&(e={r:it[i[1]]<<4|it[i[2]],g:it[i[3]]<<4|it[i[4]],b:it[i[5]]<<4|it[i[6]],a:t===9?it[i[7]]<<4|it[i[8]]:255})),e}const Po=(i,t)=>i<255?t(i):"";function Do(i){var t=So(i)?Mo:ko;return i?"#"+t(i.r)+t(i.g)+t(i.b)+Po(i.a,t):void 0}const Oo=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function Mn(i,t,e){const s=t*Math.min(e,1-e),n=(o,a=(o+i/30)%12)=>e-s*Math.max(Math.min(a-3,9-a,1),-1);return[n(0),n(8),n(4)]}function Ao(i,t,e){const s=(n,o=(n+i/60)%6)=>e-e*t*Math.max(Math.min(o,4-o,1),0);return[s(5),s(3),s(1)]}function Co(i,t,e){const s=Mn(i,1,.5);let n;for(t+e>1&&(n=1/(t+e),t*=n,e*=n),n=0;n<3;n++)s[n]*=1-t-e,s[n]+=t;return s}function To(i,t,e,s,n){return i===n?(t-e)/s+(t.5?h/(2-o-a):h/(o+a),l=To(e,s,n,h,o),l=l*60+.5),[l|0,c||0,r]}function Bi(i,t,e,s){return(Array.isArray(t)?i(t[0],t[1],t[2]):i(t,e,s)).map(Mt)}function Vi(i,t,e){return Bi(Mn,i,t,e)}function Lo(i,t,e){return Bi(Co,i,t,e)}function Ro(i,t,e){return Bi(Ao,i,t,e)}function kn(i){return(i%360+360)%360}function Eo(i){const t=Oo.exec(i);let e=255,s;if(!t)return;t[5]!==s&&(e=t[6]?ie(+t[5]):Mt(+t[5]));const n=kn(+t[2]),o=+t[3]/100,a=+t[4]/100;return t[1]==="hwb"?s=Lo(n,o,a):t[1]==="hsv"?s=Ro(n,o,a):s=Vi(n,o,a),{r:s[0],g:s[1],b:s[2],a:e}}function Io(i,t){var e=zi(i);e[0]=kn(e[0]+t),e=Vi(e),i.r=e[0],i.g=e[1],i.b=e[2]}function Fo(i){if(!i)return;const t=zi(i),e=t[0],s=Qi(t[1]),n=Qi(t[2]);return i.a<255?`hsla(${e}, ${s}%, ${n}%, ${ft(i.a)})`:`hsl(${e}, ${s}%, ${n}%)`}const ts={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},es={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function zo(){const i={},t=Object.keys(es),e=Object.keys(ts);let s,n,o,a,r;for(s=0;s>16&255,o>>8&255,o&255]}return i}let we;function Bo(i){we||(we=zo(),we.transparent=[0,0,0,0]);const t=we[i.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:t.length===4?t[3]:255}}const Vo=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function Wo(i){const t=Vo.exec(i);let e=255,s,n,o;if(t){if(t[7]!==s){const a=+t[7];e=t[8]?ie(a):bt(a*255,0,255)}return s=+t[1],n=+t[3],o=+t[5],s=255&(t[2]?ie(s):bt(s,0,255)),n=255&(t[4]?ie(n):bt(n,0,255)),o=255&(t[6]?ie(o):bt(o,0,255)),{r:s,g:n,b:o,a:e}}}function No(i){return i&&(i.a<255?`rgba(${i.r}, ${i.g}, ${i.b}, ${ft(i.a)})`:`rgb(${i.r}, ${i.g}, ${i.b})`)}const ri=i=>i<=.0031308?i*12.92:Math.pow(i,1/2.4)*1.055-.055,jt=i=>i<=.04045?i/12.92:Math.pow((i+.055)/1.055,2.4);function Ho(i,t,e){const s=jt(ft(i.r)),n=jt(ft(i.g)),o=jt(ft(i.b));return{r:Mt(ri(s+e*(jt(ft(t.r))-s))),g:Mt(ri(n+e*(jt(ft(t.g))-n))),b:Mt(ri(o+e*(jt(ft(t.b))-o))),a:i.a+e*(t.a-i.a)}}function Pe(i,t,e){if(i){let s=zi(i);s[t]=Math.max(0,Math.min(s[t]+s[t]*e,t===0?360:1)),s=Vi(s),i.r=s[0],i.g=s[1],i.b=s[2]}}function Sn(i,t){return i&&Object.assign(t||{},i)}function is(i){var t={r:0,g:0,b:0,a:255};return Array.isArray(i)?i.length>=3&&(t={r:i[0],g:i[1],b:i[2],a:255},i.length>3&&(t.a=Mt(i[3]))):(t=Sn(i,{r:0,g:0,b:0,a:1}),t.a=Mt(t.a)),t}function jo(i){return i.charAt(0)==="r"?Wo(i):Eo(i)}class fe{constructor(t){if(t instanceof fe)return t;const e=typeof t;let s;e==="object"?s=is(t):e==="string"&&(s=wo(t)||Bo(t)||jo(t)),this._rgb=s,this._valid=!!s}get valid(){return this._valid}get rgb(){var t=Sn(this._rgb);return t&&(t.a=ft(t.a)),t}set rgb(t){this._rgb=is(t)}rgbString(){return this._valid?No(this._rgb):void 0}hexString(){return this._valid?Do(this._rgb):void 0}hslString(){return this._valid?Fo(this._rgb):void 0}mix(t,e){if(t){const s=this.rgb,n=t.rgb;let o;const a=e===o?.5:e,r=2*a-1,l=s.a-n.a,c=((r*l===-1?r:(r+l)/(1+r*l))+1)/2;o=1-c,s.r=255&c*s.r+o*n.r+.5,s.g=255&c*s.g+o*n.g+.5,s.b=255&c*s.b+o*n.b+.5,s.a=a*s.a+(1-a)*n.a,this.rgb=s}return this}interpolate(t,e){return t&&(this._rgb=Ho(this._rgb,t._rgb,e)),this}clone(){return new fe(this.rgb)}alpha(t){return this._rgb.a=Mt(t),this}clearer(t){const e=this._rgb;return e.a*=1-t,this}greyscale(){const t=this._rgb,e=ve(t.r*.3+t.g*.59+t.b*.11);return t.r=t.g=t.b=e,this}opaquer(t){const e=this._rgb;return e.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return Pe(this._rgb,2,t),this}darken(t){return Pe(this._rgb,2,-t),this}saturate(t){return Pe(this._rgb,1,t),this}desaturate(t){return Pe(this._rgb,1,-t),this}rotate(t){return Io(this._rgb,t),this}}/*! + * Chart.js v4.5.1 + * https://www.chartjs.org + * (c) 2025 Chart.js Contributors + * Released under the MIT License + */function ht(){}const $o=(()=>{let i=0;return()=>i++})();function C(i){return i==null}function V(i){if(Array.isArray&&Array.isArray(i))return!0;const t=Object.prototype.toString.call(i);return t.slice(0,7)==="[object"&&t.slice(-6)==="Array]"}function T(i){return i!==null&&Object.prototype.toString.call(i)==="[object Object]"}function N(i){return(typeof i=="number"||i instanceof Number)&&isFinite(+i)}function et(i,t){return N(i)?i:t}function D(i,t){return typeof i>"u"?t:i}const Yo=(i,t)=>typeof i=="string"&&i.endsWith("%")?parseFloat(i)/100:+i/t,wn=(i,t)=>typeof i=="string"&&i.endsWith("%")?parseFloat(i)/100*t:+i;function F(i,t,e){if(i&&typeof i.call=="function")return i.apply(e,t)}function E(i,t,e,s){let n,o,a;if(V(i))for(o=i.length,n=0;ni,x:i=>i.x,y:i=>i.y};function Ko(i){const t=i.split("."),e=[];let s="";for(const n of t)s+=n,s.endsWith("\\")?s=s.slice(0,-1)+".":(e.push(s),s="");return e}function qo(i){const t=Ko(i);return e=>{for(const s of t){if(s==="")break;e=e&&e[s]}return e}}function kt(i,t){return(ss[t]||(ss[t]=qo(t)))(i)}function Wi(i){return i.charAt(0).toUpperCase()+i.slice(1)}const pe=i=>typeof i<"u",St=i=>typeof i=="function",ns=(i,t)=>{if(i.size!==t.size)return!1;for(const e of i)if(!t.has(e))return!1;return!0};function Go(i){return i.type==="mouseup"||i.type==="click"||i.type==="contextmenu"}const R=Math.PI,z=2*R,Zo=z+R,Ke=Number.POSITIVE_INFINITY,Jo=R/180,j=R/2,Ot=R/4,os=R*2/3,xt=Math.log10,ct=Math.sign;function ce(i,t,e){return Math.abs(i-t)n-o).pop(),t}function ta(i){return typeof i=="symbol"||typeof i=="object"&&i!==null&&!(Symbol.toPrimitive in i||"toString"in i||"valueOf"in i)}function Xt(i){return!ta(i)&&!isNaN(parseFloat(i))&&isFinite(i)}function ea(i,t){const e=Math.round(i);return e-t<=i&&e+t>=i}function Dn(i,t,e){let s,n,o;for(s=0,n=i.length;sl&&c=Math.min(t,e)-s&&i<=Math.max(t,e)+s}function Hi(i,t,e){e=e||(a=>i[a]1;)o=n+s>>1,e(o)?n=o:s=o;return{lo:n,hi:s}}const pt=(i,t,e,s)=>Hi(i,e,s?n=>{const o=i[n][t];return oi[n][t]Hi(i,e,s=>i[s][t]>=e);function oa(i,t,e){let s=0,n=i.length;for(;ss&&i[n-1]>e;)n--;return s>0||n{const s="_onData"+Wi(e),n=i[e];Object.defineProperty(i,e,{configurable:!0,enumerable:!1,value(...o){const a=n.apply(this,o);return i._chartjs.listeners.forEach(r=>{typeof r[s]=="function"&&r[s](...o)}),a}})})}function ls(i,t){const e=i._chartjs;if(!e)return;const s=e.listeners,n=s.indexOf(t);n!==-1&&s.splice(n,1),!(s.length>0)&&(An.forEach(o=>{delete i[o]}),delete i._chartjs)}function Cn(i){const t=new Set(i);return t.size===i.length?i:Array.from(t)}const Tn=function(){return typeof window>"u"?function(i){return i()}:window.requestAnimationFrame}();function Ln(i,t){let e=[],s=!1;return function(...n){e=n,s||(s=!0,Tn.call(window,()=>{s=!1,i.apply(t,e)}))}}function ra(i,t){let e;return function(...s){return t?(clearTimeout(e),e=setTimeout(i,t,s)):i.apply(this,s),t}}const ji=i=>i==="start"?"left":i==="end"?"right":"center",K=(i,t,e)=>i==="start"?t:i==="end"?e:(t+e)/2,la=(i,t,e,s)=>i===(s?"left":"right")?e:i==="center"?(t+e)/2:t;function Rn(i,t,e){const s=t.length;let n=0,o=s;if(i._sorted){const{iScale:a,vScale:r,_parsed:l}=i,c=i.dataset&&i.dataset.options?i.dataset.options.spanGaps:null,h=a.axis,{min:d,max:u,minDefined:f,maxDefined:g}=a.getUserBounds();if(f){if(n=Math.min(pt(l,h,d).lo,e?s:pt(t,h,a.getPixelForValue(d)).lo),c){const p=l.slice(0,n+1).reverse().findIndex(m=>!C(m[r.axis]));n-=Math.max(0,p)}n=Y(n,0,s-1)}if(g){let p=Math.max(pt(l,a.axis,u,!0).hi+1,e?0:pt(t,h,a.getPixelForValue(u),!0).hi+1);if(c){const m=l.slice(p-1).findIndex(b=>!C(b[r.axis]));p+=Math.max(0,m)}o=Y(p,n,s)-n}else o=s-n}return{start:n,count:o}}function En(i){const{xScale:t,yScale:e,_scaleRanges:s}=i,n={xmin:t.min,xmax:t.max,ymin:e.min,ymax:e.max};if(!s)return i._scaleRanges=n,!0;const o=s.xmin!==t.min||s.xmax!==t.max||s.ymin!==e.min||s.ymax!==e.max;return Object.assign(s,n),o}const De=i=>i===0||i===1,cs=(i,t,e)=>-(Math.pow(2,10*(i-=1))*Math.sin((i-t)*z/e)),hs=(i,t,e)=>Math.pow(2,-10*i)*Math.sin((i-t)*z/e)+1,he={linear:i=>i,easeInQuad:i=>i*i,easeOutQuad:i=>-i*(i-2),easeInOutQuad:i=>(i/=.5)<1?.5*i*i:-.5*(--i*(i-2)-1),easeInCubic:i=>i*i*i,easeOutCubic:i=>(i-=1)*i*i+1,easeInOutCubic:i=>(i/=.5)<1?.5*i*i*i:.5*((i-=2)*i*i+2),easeInQuart:i=>i*i*i*i,easeOutQuart:i=>-((i-=1)*i*i*i-1),easeInOutQuart:i=>(i/=.5)<1?.5*i*i*i*i:-.5*((i-=2)*i*i*i-2),easeInQuint:i=>i*i*i*i*i,easeOutQuint:i=>(i-=1)*i*i*i*i+1,easeInOutQuint:i=>(i/=.5)<1?.5*i*i*i*i*i:.5*((i-=2)*i*i*i*i+2),easeInSine:i=>-Math.cos(i*j)+1,easeOutSine:i=>Math.sin(i*j),easeInOutSine:i=>-.5*(Math.cos(R*i)-1),easeInExpo:i=>i===0?0:Math.pow(2,10*(i-1)),easeOutExpo:i=>i===1?1:-Math.pow(2,-10*i)+1,easeInOutExpo:i=>De(i)?i:i<.5?.5*Math.pow(2,10*(i*2-1)):.5*(-Math.pow(2,-10*(i*2-1))+2),easeInCirc:i=>i>=1?i:-(Math.sqrt(1-i*i)-1),easeOutCirc:i=>Math.sqrt(1-(i-=1)*i),easeInOutCirc:i=>(i/=.5)<1?-.5*(Math.sqrt(1-i*i)-1):.5*(Math.sqrt(1-(i-=2)*i)+1),easeInElastic:i=>De(i)?i:cs(i,.075,.3),easeOutElastic:i=>De(i)?i:hs(i,.075,.3),easeInOutElastic(i){return De(i)?i:i<.5?.5*cs(i*2,.1125,.45):.5+.5*hs(i*2-1,.1125,.45)},easeInBack(i){return i*i*((1.70158+1)*i-1.70158)},easeOutBack(i){return(i-=1)*i*((1.70158+1)*i+1.70158)+1},easeInOutBack(i){let t=1.70158;return(i/=.5)<1?.5*(i*i*(((t*=1.525)+1)*i-t)):.5*((i-=2)*i*(((t*=1.525)+1)*i+t)+2)},easeInBounce:i=>1-he.easeOutBounce(1-i),easeOutBounce(i){return i<1/2.75?7.5625*i*i:i<2/2.75?7.5625*(i-=1.5/2.75)*i+.75:i<2.5/2.75?7.5625*(i-=2.25/2.75)*i+.9375:7.5625*(i-=2.625/2.75)*i+.984375},easeInOutBounce:i=>i<.5?he.easeInBounce(i*2)*.5:he.easeOutBounce(i*2-1)*.5+.5};function $i(i){if(i&&typeof i=="object"){const t=i.toString();return t==="[object CanvasPattern]"||t==="[object CanvasGradient]"}return!1}function ds(i){return $i(i)?i:new fe(i)}function li(i){return $i(i)?i:new fe(i).saturate(.5).darken(.1).hexString()}const ca=["x","y","borderWidth","radius","tension"],ha=["color","borderColor","backgroundColor"];function da(i){i.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),i.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>t!=="onProgress"&&t!=="onComplete"&&t!=="fn"}),i.set("animations",{colors:{type:"color",properties:ha},numbers:{type:"number",properties:ca}}),i.describe("animations",{_fallback:"animation"}),i.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>t|0}}}})}function ua(i){i.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const us=new Map;function fa(i,t){t=t||{};const e=i+JSON.stringify(t);let s=us.get(e);return s||(s=new Intl.NumberFormat(i,t),us.set(e,s)),s}function Me(i,t,e){return fa(t,e).format(i)}const In={values(i){return V(i)?i:""+i},numeric(i,t,e){if(i===0)return"0";const s=this.chart.options.locale;let n,o=i;if(e.length>1){const c=Math.max(Math.abs(e[0].value),Math.abs(e[e.length-1].value));(c<1e-4||c>1e15)&&(n="scientific"),o=ga(i,e)}const a=xt(Math.abs(o)),r=isNaN(a)?1:Math.max(Math.min(-1*Math.floor(a),20),0),l={notation:n,minimumFractionDigits:r,maximumFractionDigits:r};return Object.assign(l,this.options.ticks.format),Me(i,s,l)},logarithmic(i,t,e){if(i===0)return"0";const s=e[t].significand||i/Math.pow(10,Math.floor(xt(i)));return[1,2,3,5,10,15].includes(s)||t>.8*e.length?In.numeric.call(this,i,t,e):""}};function ga(i,t){let e=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;return Math.abs(e)>=1&&i!==Math.floor(i)&&(e=i-Math.floor(i)),e}var ti={formatters:In};function pa(i){i.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,e)=>e.lineWidth,tickColor:(t,e)=>e.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:ti.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),i.route("scale.ticks","color","","color"),i.route("scale.grid","color","","borderColor"),i.route("scale.border","color","","borderColor"),i.route("scale.title","color","","color"),i.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&t!=="callback"&&t!=="parser",_indexable:t=>t!=="borderDash"&&t!=="tickBorderDash"&&t!=="dash"}),i.describe("scales",{_fallback:"scale"}),i.describe("scale.ticks",{_scriptable:t=>t!=="backdropPadding"&&t!=="callback",_indexable:t=>t!=="backdropPadding"})}const Bt=Object.create(null),ki=Object.create(null);function de(i,t){if(!t)return i;const e=t.split(".");for(let s=0,n=e.length;ss.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(s,n)=>li(n.backgroundColor),this.hoverBorderColor=(s,n)=>li(n.borderColor),this.hoverColor=(s,n)=>li(n.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t),this.apply(e)}set(t,e){return ci(this,t,e)}get(t){return de(this,t)}describe(t,e){return ci(ki,t,e)}override(t,e){return ci(Bt,t,e)}route(t,e,s,n){const o=de(this,t),a=de(this,s),r="_"+e;Object.defineProperties(o,{[r]:{value:o[e],writable:!0},[e]:{enumerable:!0,get(){const l=this[r],c=a[n];return T(l)?Object.assign({},c,l):D(l,c)},set(l){this[r]=l}}})}apply(t){t.forEach(e=>e(this))}}var W=new ma({_scriptable:i=>!i.startsWith("on"),_indexable:i=>i!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[da,ua,pa]);function ba(i){return!i||C(i.size)||C(i.family)?null:(i.style?i.style+" ":"")+(i.weight?i.weight+" ":"")+i.size+"px "+i.family}function qe(i,t,e,s,n){let o=t[n];return o||(o=t[n]=i.measureText(n).width,e.push(n)),o>s&&(s=o),s}function xa(i,t,e,s){s=s||{};let n=s.data=s.data||{},o=s.garbageCollect=s.garbageCollect||[];s.font!==t&&(n=s.data={},o=s.garbageCollect=[],s.font=t),i.save(),i.font=t;let a=0;const r=e.length;let l,c,h,d,u;for(l=0;le.length){for(l=0;l0&&i.stroke()}}function mt(i,t,e){return e=e||.5,!t||i&&i.x>t.left-e&&i.xt.top-e&&i.y0&&o.strokeColor!=="";let l,c;for(i.save(),i.font=n.string,va(i,o),l=0;l+i||0;function Yi(i,t){const e={},s=T(t),n=s?Object.keys(t):t,o=T(i)?s?a=>D(i[a],i[t[a]]):a=>i[a]:()=>i;for(const a of n)e[a]=Da(o(a));return e}function zn(i){return Yi(i,{top:"y",right:"x",bottom:"y",left:"x"})}function Ft(i){return Yi(i,["topLeft","topRight","bottomLeft","bottomRight"])}function Z(i){const t=zn(i);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function $(i,t){i=i||{},t=t||W.font;let e=D(i.size,t.size);typeof e=="string"&&(e=parseInt(e,10));let s=D(i.style,t.style);s&&!(""+s).match(wa)&&(console.warn('Invalid font style specified: "'+s+'"'),s=void 0);const n={family:D(i.family,t.family),lineHeight:Pa(D(i.lineHeight,t.lineHeight),e),size:e,style:s,weight:D(i.weight,t.weight),string:""};return n.string=ba(n),n}function se(i,t,e,s){let n,o,a;for(n=0,o=i.length;ne&&r===0?0:r+l;return{min:a(s,-Math.abs(o)),max:a(n,o)}}function wt(i,t){return Object.assign(Object.create(i),t)}function Xi(i,t=[""],e,s,n=()=>i[0]){const o=e||i;typeof s>"u"&&(s=Nn("_fallback",i));const a={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:i,_rootScopes:o,_fallback:s,_getTarget:n,override:r=>Xi([r,...i],t,o,s)};return new Proxy(a,{deleteProperty(r,l){return delete r[l],delete r._keys,delete i[0][l],!0},get(r,l){return Vn(r,l,()=>Fa(l,t,i,r))},getOwnPropertyDescriptor(r,l){return Reflect.getOwnPropertyDescriptor(r._scopes[0],l)},getPrototypeOf(){return Reflect.getPrototypeOf(i[0])},has(r,l){return ps(r).includes(l)},ownKeys(r){return ps(r)},set(r,l,c){const h=r._storage||(r._storage=n());return r[l]=h[l]=c,delete r._keys,!0}})}function Ut(i,t,e,s){const n={_cacheable:!1,_proxy:i,_context:t,_subProxy:e,_stack:new Set,_descriptors:Bn(i,s),setContext:o=>Ut(i,o,e,s),override:o=>Ut(i.override(o),t,e,s)};return new Proxy(n,{deleteProperty(o,a){return delete o[a],delete i[a],!0},get(o,a,r){return Vn(o,a,()=>Ca(o,a,r))},getOwnPropertyDescriptor(o,a){return o._descriptors.allKeys?Reflect.has(i,a)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(i,a)},getPrototypeOf(){return Reflect.getPrototypeOf(i)},has(o,a){return Reflect.has(i,a)},ownKeys(){return Reflect.ownKeys(i)},set(o,a,r){return i[a]=r,delete o[a],!0}})}function Bn(i,t={scriptable:!0,indexable:!0}){const{_scriptable:e=t.scriptable,_indexable:s=t.indexable,_allKeys:n=t.allKeys}=i;return{allKeys:n,scriptable:e,indexable:s,isScriptable:St(e)?e:()=>e,isIndexable:St(s)?s:()=>s}}const Aa=(i,t)=>i?i+Wi(t):t,Ui=(i,t)=>T(t)&&i!=="adapters"&&(Object.getPrototypeOf(t)===null||t.constructor===Object);function Vn(i,t,e){if(Object.prototype.hasOwnProperty.call(i,t)||t==="constructor")return i[t];const s=e();return i[t]=s,s}function Ca(i,t,e){const{_proxy:s,_context:n,_subProxy:o,_descriptors:a}=i;let r=s[t];return St(r)&&a.isScriptable(t)&&(r=Ta(t,r,i,e)),V(r)&&r.length&&(r=La(t,r,i,a.isIndexable)),Ui(t,r)&&(r=Ut(r,n,o&&o[t],a)),r}function Ta(i,t,e,s){const{_proxy:n,_context:o,_subProxy:a,_stack:r}=e;if(r.has(i))throw new Error("Recursion detected: "+Array.from(r).join("->")+"->"+i);r.add(i);let l=t(o,a||s);return r.delete(i),Ui(i,l)&&(l=Ki(n._scopes,n,i,l)),l}function La(i,t,e,s){const{_proxy:n,_context:o,_subProxy:a,_descriptors:r}=e;if(typeof o.index<"u"&&s(i))return t[o.index%t.length];if(T(t[0])){const l=t,c=n._scopes.filter(h=>h!==l);t=[];for(const h of l){const d=Ki(c,n,i,h);t.push(Ut(d,o,a&&a[i],r))}}return t}function Wn(i,t,e){return St(i)?i(t,e):i}const Ra=(i,t)=>i===!0?t:typeof i=="string"?kt(t,i):void 0;function Ea(i,t,e,s,n){for(const o of t){const a=Ra(e,o);if(a){i.add(a);const r=Wn(a._fallback,e,n);if(typeof r<"u"&&r!==e&&r!==s)return r}else if(a===!1&&typeof s<"u"&&e!==s)return null}return!1}function Ki(i,t,e,s){const n=t._rootScopes,o=Wn(t._fallback,e,s),a=[...i,...n],r=new Set;r.add(s);let l=gs(r,a,e,o||e,s);return l===null||typeof o<"u"&&o!==e&&(l=gs(r,a,o,l,s),l===null)?!1:Xi(Array.from(r),[""],n,o,()=>Ia(t,e,s))}function gs(i,t,e,s,n){for(;e;)e=Ea(i,t,e,s,n);return e}function Ia(i,t,e){const s=i._getTarget();t in s||(s[t]={});const n=s[t];return V(n)&&T(e)?e:n||{}}function Fa(i,t,e,s){let n;for(const o of t)if(n=Nn(Aa(o,i),e),typeof n<"u")return Ui(i,n)?Ki(e,s,i,n):n}function Nn(i,t){for(const e of t){if(!e)continue;const s=e[i];if(typeof s<"u")return s}}function ps(i){let t=i._keys;return t||(t=i._keys=za(i._scopes)),t}function za(i){const t=new Set;for(const e of i)for(const s of Object.keys(e).filter(n=>!n.startsWith("_")))t.add(s);return Array.from(t)}function Hn(i,t,e,s){const{iScale:n}=i,{key:o="r"}=this._parsing,a=new Array(s);let r,l,c,h;for(r=0,l=s;rti==="x"?"y":"x";function Va(i,t,e,s){const n=i.skip?t:i,o=t,a=e.skip?t:e,r=Mi(o,n),l=Mi(a,o);let c=r/(r+l),h=l/(r+l);c=isNaN(c)?0:c,h=isNaN(h)?0:h;const d=s*c,u=s*h;return{previous:{x:o.x-d*(a.x-n.x),y:o.y-d*(a.y-n.y)},next:{x:o.x+u*(a.x-n.x),y:o.y+u*(a.y-n.y)}}}function Wa(i,t,e){const s=i.length;let n,o,a,r,l,c=Kt(i,0);for(let h=0;h!c.skip)),t.cubicInterpolationMode==="monotone")Ha(i,n);else{let c=s?i[i.length-1]:i[0];for(o=0,a=i.length;oi.ownerDocument.defaultView.getComputedStyle(i,null);function Ya(i,t){return si(i).getPropertyValue(t)}const Xa=["top","right","bottom","left"];function zt(i,t,e){const s={};e=e?"-"+e:"";for(let n=0;n<4;n++){const o=Xa[n];s[o]=parseFloat(i[t+"-"+o+e])||0}return s.width=s.left+s.right,s.height=s.top+s.bottom,s}const Ua=(i,t,e)=>(i>0||t>0)&&(!e||!e.shadowRoot);function Ka(i,t){const e=i.touches,s=e&&e.length?e[0]:i,{offsetX:n,offsetY:o}=s;let a=!1,r,l;if(Ua(n,o,i.target))r=n,l=o;else{const c=t.getBoundingClientRect();r=s.clientX-c.left,l=s.clientY-c.top,a=!0}return{x:r,y:l,box:a}}function Lt(i,t){if("native"in i)return i;const{canvas:e,currentDevicePixelRatio:s}=t,n=si(e),o=n.boxSizing==="border-box",a=zt(n,"padding"),r=zt(n,"border","width"),{x:l,y:c,box:h}=Ka(i,e),d=a.left+(h&&r.left),u=a.top+(h&&r.top);let{width:f,height:g}=t;return o&&(f-=a.width+r.width,g-=a.height+r.height),{x:Math.round((l-d)/f*e.width/s),y:Math.round((c-u)/g*e.height/s)}}function qa(i,t,e){let s,n;if(t===void 0||e===void 0){const o=i&&Gi(i);if(!o)t=i.clientWidth,e=i.clientHeight;else{const a=o.getBoundingClientRect(),r=si(o),l=zt(r,"border","width"),c=zt(r,"padding");t=a.width-c.width-l.width,e=a.height-c.height-l.height,s=Ge(r.maxWidth,o,"clientWidth"),n=Ge(r.maxHeight,o,"clientHeight")}}return{width:t,height:e,maxWidth:s||Ke,maxHeight:n||Ke}}const _t=i=>Math.round(i*10)/10;function Ga(i,t,e,s){const n=si(i),o=zt(n,"margin"),a=Ge(n.maxWidth,i,"clientWidth")||Ke,r=Ge(n.maxHeight,i,"clientHeight")||Ke,l=qa(i,t,e);let{width:c,height:h}=l;if(n.boxSizing==="content-box"){const u=zt(n,"border","width"),f=zt(n,"padding");c-=f.width+u.width,h-=f.height+u.height}return c=Math.max(0,c-o.width),h=Math.max(0,s?c/s:h-o.height),c=_t(Math.min(c,a,l.maxWidth)),h=_t(Math.min(h,r,l.maxHeight)),c&&!h&&(h=_t(c/2)),(t!==void 0||e!==void 0)&&s&&l.height&&h>l.height&&(h=l.height,c=_t(Math.floor(h*s))),{width:c,height:h}}function ms(i,t,e){const s=t||1,n=_t(i.height*s),o=_t(i.width*s);i.height=_t(i.height),i.width=_t(i.width);const a=i.canvas;return a.style&&(e||!a.style.height&&!a.style.width)&&(a.style.height=`${i.height}px`,a.style.width=`${i.width}px`),i.currentDevicePixelRatio!==s||a.height!==n||a.width!==o?(i.currentDevicePixelRatio=s,a.height=n,a.width=o,i.ctx.setTransform(s,0,0,s,0,0),!0):!1}const Za=function(){let i=!1;try{const t={get passive(){return i=!0,!1}};qi()&&(window.addEventListener("test",null,t),window.removeEventListener("test",null,t))}catch{}return i}();function bs(i,t){const e=Ya(i,t),s=e&&e.match(/^(\d+)(\.\d+)?px$/);return s?+s[1]:void 0}function Rt(i,t,e,s){return{x:i.x+e*(t.x-i.x),y:i.y+e*(t.y-i.y)}}function Ja(i,t,e,s){return{x:i.x+e*(t.x-i.x),y:s==="middle"?e<.5?i.y:t.y:s==="after"?e<1?i.y:t.y:e>0?t.y:i.y}}function Qa(i,t,e,s){const n={x:i.cp2x,y:i.cp2y},o={x:t.cp1x,y:t.cp1y},a=Rt(i,n,e),r=Rt(n,o,e),l=Rt(o,t,e),c=Rt(a,r,e),h=Rt(r,l,e);return Rt(c,h,e)}const tr=function(i,t){return{x(e){return i+i+t-e},setWidth(e){t=e},textAlign(e){return e==="center"?e:e==="right"?"left":"right"},xPlus(e,s){return e-s},leftForLtr(e,s){return e-s}}},er=function(){return{x(i){return i},setWidth(i){},textAlign(i){return i},xPlus(i,t){return i+t},leftForLtr(i,t){return i}}};function Yt(i,t,e){return i?tr(t,e):er()}function $n(i,t){let e,s;(t==="ltr"||t==="rtl")&&(e=i.canvas.style,s=[e.getPropertyValue("direction"),e.getPropertyPriority("direction")],e.setProperty("direction",t,"important"),i.prevTextDirection=s)}function Yn(i,t){t!==void 0&&(delete i.prevTextDirection,i.canvas.style.setProperty("direction",t[0],t[1]))}function Xn(i){return i==="angle"?{between:me,compare:ia,normalize:q}:{between:gt,compare:(t,e)=>t-e,normalize:t=>t}}function xs({start:i,end:t,count:e,loop:s,style:n}){return{start:i%e,end:t%e,loop:s&&(t-i+1)%e===0,style:n}}function ir(i,t,e){const{property:s,start:n,end:o}=e,{between:a,normalize:r}=Xn(s),l=t.length;let{start:c,end:h,loop:d}=i,u,f;if(d){for(c+=l,h+=l,u=0,f=l;ul(n,v,b)&&r(n,v)!==0,_=()=>r(o,b)===0||l(o,v,b),k=()=>p||y(),S=()=>!p||_();for(let w=h,P=h;w<=d;++w)x=t[w%a],!x.skip&&(b=c(x[s]),b!==v&&(p=l(b,n,o),m===null&&k()&&(m=r(b,n)===0?w:P),m!==null&&S()&&(g.push(xs({start:m,end:w,loop:u,count:a,style:f})),m=null),P=w,v=b));return m!==null&&g.push(xs({start:m,end:d,loop:u,count:a,style:f})),g}function Kn(i,t){const e=[],s=i.segments;for(let n=0;nn&&i[o%t].skip;)o--;return o%=t,{start:n,end:o}}function nr(i,t,e,s){const n=i.length,o=[];let a=t,r=i[t],l;for(l=t+1;l<=e;++l){const c=i[l%n];c.skip||c.stop?r.skip||(s=!1,o.push({start:t%n,end:(l-1)%n,loop:s}),t=a=c.stop?l:null):(a=l,r.skip&&(t=l)),r=c}return a!==null&&o.push({start:t%n,end:a%n,loop:s}),o}function or(i,t){const e=i.points,s=i.options.spanGaps,n=e.length;if(!n)return[];const o=!!i._loop,{start:a,end:r}=sr(e,n,o,s);if(s===!0)return _s(i,[{start:a,end:r,loop:o}],e,t);const l=rr({chart:t,initial:e.initial,numSteps:a,currentStep:Math.min(s-e.start,a)}))}_refresh(){this._request||(this._running=!0,this._request=Tn.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let e=0;this._charts.forEach((s,n)=>{if(!s.running||!s.items.length)return;const o=s.items;let a=o.length-1,r=!1,l;for(;a>=0;--a)l=o[a],l._active?(l._total>s.duration&&(s.duration=l._total),l.tick(t),r=!0):(o[a]=o[o.length-1],o.pop());r&&(n.draw(),this._notify(n,s,t,"progress")),o.length||(s.running=!1,this._notify(n,s,t,"complete"),s.initial=!1),e+=o.length}),this._lastDate=t,e===0&&(this._running=!1)}_getAnims(t){const e=this._charts;let s=e.get(t);return s||(s={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},e.set(t,s)),s}listen(t,e,s){this._getAnims(t).listeners[e].push(s)}add(t,e){!e||!e.length||this._getAnims(t).items.push(...e)}has(t){return this._getAnims(t).items.length>0}start(t){const e=this._charts.get(t);e&&(e.running=!0,e.start=Date.now(),e.duration=e.items.reduce((s,n)=>Math.max(s,n._duration),0),this._refresh())}running(t){if(!this._running)return!1;const e=this._charts.get(t);return!(!e||!e.running||!e.items.length)}stop(t){const e=this._charts.get(t);if(!e||!e.items.length)return;const s=e.items;let n=s.length-1;for(;n>=0;--n)s[n].cancel();e.items=[],this._notify(t,e,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var dt=new cr;const vs="transparent",hr={boolean(i,t,e){return e>.5?t:i},color(i,t,e){const s=ds(i||vs),n=s.valid&&ds(t||vs);return n&&n.valid?n.mix(s,e).hexString():t},number(i,t,e){return i+(t-i)*e}};class dr{constructor(t,e,s,n){const o=e[s];n=se([t.to,n,o,t.from]);const a=se([t.from,o,n]);this._active=!0,this._fn=t.fn||hr[t.type||typeof a],this._easing=he[t.easing]||he.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=e,this._prop=s,this._from=a,this._to=n,this._promises=void 0}active(){return this._active}update(t,e,s){if(this._active){this._notify(!1);const n=this._target[this._prop],o=s-this._start,a=this._duration-o;this._start=s,this._duration=Math.floor(Math.max(a,t.duration)),this._total+=o,this._loop=!!t.loop,this._to=se([t.to,e,n,t.from]),this._from=se([t.from,n,e])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const e=t-this._start,s=this._duration,n=this._prop,o=this._from,a=this._loop,r=this._to;let l;if(this._active=o!==r&&(a||e1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[n]=this._fn(o,r,l)}wait(){const t=this._promises||(this._promises=[]);return new Promise((e,s)=>{t.push({res:e,rej:s})})}_notify(t){const e=t?"res":"rej",s=this._promises||[];for(let n=0;n{const o=t[n];if(!T(o))return;const a={};for(const r of e)a[r]=o[r];(V(o.properties)&&o.properties||[n]).forEach(r=>{(r===n||!s.has(r))&&s.set(r,a)})})}_animateOptions(t,e){const s=e.options,n=fr(t,s);if(!n)return[];const o=this._createAnimations(n,s);return s.$shared&&ur(t.options.$animations,s).then(()=>{t.options=s},()=>{}),o}_createAnimations(t,e){const s=this._properties,n=[],o=t.$animations||(t.$animations={}),a=Object.keys(e),r=Date.now();let l;for(l=a.length-1;l>=0;--l){const c=a[l];if(c.charAt(0)==="$")continue;if(c==="options"){n.push(...this._animateOptions(t,e));continue}const h=e[c];let d=o[c];const u=s.get(c);if(d)if(u&&d.active()){d.update(u,h,r);continue}else d.cancel();if(!u||!u.duration){t[c]=h;continue}o[c]=d=new dr(u,t,c,h),n.push(d)}return n}update(t,e){if(this._properties.size===0){Object.assign(t,e);return}const s=this._createAnimations(t,e);if(s.length)return dt.add(this._chart,s),!0}}function ur(i,t){const e=[],s=Object.keys(t);for(let n=0;n0||!e&&o<0)return n.index}return null}function ws(i,t){const{chart:e,_cachedMeta:s}=i,n=e._stacks||(e._stacks={}),{iScale:o,vScale:a,index:r}=s,l=o.axis,c=a.axis,h=br(o,a,s),d=t.length;let u;for(let f=0;fe[s].axis===t).shift()}function yr(i,t){return wt(i,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}function vr(i,t,e){return wt(i,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:e,index:t,mode:"default",type:"data"})}function Zt(i,t){const e=i.controller.index,s=i.vScale&&i.vScale.axis;if(s){t=t||i._parsed;for(const n of t){const o=n._stacks;if(!o||o[s]===void 0||o[s][e]===void 0)return;delete o[s][e],o[s]._visualValues!==void 0&&o[s]._visualValues[e]!==void 0&&delete o[s]._visualValues[e]}}}const ui=i=>i==="reset"||i==="none",Ps=(i,t)=>t?i:Object.assign({},i),Mr=(i,t,e)=>i&&!t.hidden&&t._stacked&&{keys:Zn(e,!0),values:null};class ot{constructor(t,e){this.chart=t,this._ctx=t.ctx,this.index=e,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=hi(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&Zt(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,e=this._cachedMeta,s=this.getDataset(),n=(d,u,f,g)=>d==="x"?u:d==="r"?g:f,o=e.xAxisID=D(s.xAxisID,di(t,"x")),a=e.yAxisID=D(s.yAxisID,di(t,"y")),r=e.rAxisID=D(s.rAxisID,di(t,"r")),l=e.indexAxis,c=e.iAxisID=n(l,o,a,r),h=e.vAxisID=n(l,a,o,r);e.xScale=this.getScaleForId(o),e.yScale=this.getScaleForId(a),e.rScale=this.getScaleForId(r),e.iScale=this.getScaleForId(c),e.vScale=this.getScaleForId(h)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const e=this._cachedMeta;return t===e.iScale?e.vScale:e.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&ls(this._data,this),t._stacked&&Zt(t)}_dataCheck(){const t=this.getDataset(),e=t.data||(t.data=[]),s=this._data;if(T(e)){const n=this._cachedMeta;this._data=mr(e,n)}else if(s!==e){if(s){ls(s,this);const n=this._cachedMeta;Zt(n),n._parsed=[]}e&&Object.isExtensible(e)&&aa(e,this),this._syncList=[],this._data=e}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const e=this._cachedMeta,s=this.getDataset();let n=!1;this._dataCheck();const o=e._stacked;e._stacked=hi(e.vScale,e),e.stack!==s.stack&&(n=!0,Zt(e),e.stack=s.stack),this._resyncElements(t),(n||o!==e._stacked)&&(ws(this,e._parsed),e._stacked=hi(e.vScale,e))}configure(){const t=this.chart.config,e=t.datasetScopeKeys(this._type),s=t.getOptionScopes(this.getDataset(),e,!0);this.options=t.createResolver(s,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,e){const{_cachedMeta:s,_data:n}=this,{iScale:o,_stacked:a}=s,r=o.axis;let l=t===0&&e===n.length?!0:s._sorted,c=t>0&&s._parsed[t-1],h,d,u;if(this._parsing===!1)s._parsed=n,s._sorted=!0,u=n;else{V(n[t])?u=this.parseArrayData(s,n,t,e):T(n[t])?u=this.parseObjectData(s,n,t,e):u=this.parsePrimitiveData(s,n,t,e);const f=()=>d[r]===null||c&&d[r]p||d=0;--u)if(!g()){this.updateRangeFromParsed(c,t,f,l);break}}return c}getAllParsedValues(t){const e=this._cachedMeta._parsed,s=[];let n,o,a;for(n=0,o=e.length;n=0&&tthis.getContext(s,n,e),p=c.resolveNamedOptions(u,f,g,d);return p.$shared&&(p.$shared=l,o[a]=Object.freeze(Ps(p,l))),p}_resolveAnimations(t,e,s){const n=this.chart,o=this._cachedDataOpts,a=`animation-${e}`,r=o[a];if(r)return r;let l;if(n.options.animation!==!1){const h=this.chart.config,d=h.datasetAnimationScopeKeys(this._type,e),u=h.getOptionScopes(this.getDataset(),d);l=h.createResolver(u,this.getContext(t,s,e))}const c=new Gn(n,l&&l.animations);return l&&l._cacheable&&(o[a]=Object.freeze(c)),c}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,e){return!e||ui(t)||this.chart._animationsDisabled}_getSharedOptions(t,e){const s=this.resolveDataElementOptions(t,e),n=this._sharedOptions,o=this.getSharedOptions(s),a=this.includeOptions(e,o)||o!==n;return this.updateSharedOptions(o,e,s),{sharedOptions:o,includeOptions:a}}updateElement(t,e,s,n){ui(n)?Object.assign(t,s):this._resolveAnimations(e,n).update(t,s)}updateSharedOptions(t,e,s){t&&!ui(e)&&this._resolveAnimations(void 0,e).update(t,s)}_setStyle(t,e,s,n){t.active=n;const o=this.getStyle(e,n);this._resolveAnimations(e,s,n).update(t,{options:!n&&this.getSharedOptions(o)||o})}removeHoverStyle(t,e,s){this._setStyle(t,s,"active",!1)}setHoverStyle(t,e,s){this._setStyle(t,s,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const e=this._data,s=this._cachedMeta.data;for(const[r,l,c]of this._syncList)this[r](l,c);this._syncList=[];const n=s.length,o=e.length,a=Math.min(o,n);a&&this.parse(0,a),o>n?this._insertElements(n,o-n,t):o{for(c.length+=e,r=c.length-1;r>=a;r--)c[r]=c[r-e]};for(l(o),r=t;rn-o))}return i._cache.$bar}function Sr(i){const t=i.iScale,e=kr(t,i.type);let s=t._length,n,o,a,r;const l=()=>{a===32767||a===-32768||(pe(r)&&(s=Math.min(s,Math.abs(a-r)||s)),r=a)};for(n=0,o=e.length;n0?n[i-1]:null,r=iMath.abs(r)&&(l=r,c=a),t[e.axis]=c,t._custom={barStart:l,barEnd:c,start:n,end:o,min:a,max:r}}function Jn(i,t,e,s){return V(i)?Dr(i,t,e,s):t[e.axis]=e.parse(i,s),t}function Ds(i,t,e,s){const n=i.iScale,o=i.vScale,a=n.getLabels(),r=n===o,l=[];let c,h,d,u;for(c=e,h=e+s;c=e?1:-1)}function Ar(i){let t,e,s,n,o;return i.horizontal?(t=i.base>i.x,e="left",s="right"):(t=i.baseh.controller.options.grouped),o=s.options.stacked,a=[],r=this._cachedMeta.controller.getParsed(e),l=r&&r[s.axis],c=h=>{const d=h._parsed.find(f=>f[s.axis]===l),u=d&&d[h.vScale.axis];if(C(u)||isNaN(u))return!0};for(const h of n)if(!(e!==void 0&&c(h))&&((o===!1||a.indexOf(h.stack)===-1||o===void 0&&h.stack===void 0)&&a.push(h.stack),h.index===t))break;return a.length||a.push(void 0),a}_getStackCount(t){return this._getStacks(void 0,t).length}_getAxisCount(){return this._getAxis().length}getFirstScaleIdForIndexAxis(){const t=this.chart.scales,e=this.chart.options.indexAxis;return Object.keys(t).filter(s=>t[s].axis===e).shift()}_getAxis(){const t={},e=this.getFirstScaleIdForIndexAxis();for(const s of this.chart.data.datasets)t[D(this.chart.options.indexAxis==="x"?s.xAxisID:s.yAxisID,e)]=!0;return Object.keys(t)}_getStackIndex(t,e,s){const n=this._getStacks(t,s),o=e!==void 0?n.indexOf(e):-1;return o===-1?n.length-1:o}_getRuler(){const t=this.options,e=this._cachedMeta,s=e.iScale,n=[];let o,a;for(o=0,a=e.data.length;o=0;--s)e=Math.max(e,t[s].size(this.resolveDataElementOptions(s))/2);return e>0&&e}getLabelAndValue(t){const e=this._cachedMeta,s=this.chart.data.labels||[],{xScale:n,yScale:o}=e,a=this.getParsed(t),r=n.getLabelForValue(a.x),l=o.getLabelForValue(a.y),c=a._custom;return{label:s[t]||"",value:"("+r+", "+l+(c?", "+c:"")+")"}}update(t){const e=this._cachedMeta.data;this.updateElements(e,0,e.length,t)}updateElements(t,e,s,n){const o=n==="reset",{iScale:a,vScale:r}=this._cachedMeta,{sharedOptions:l,includeOptions:c}=this._getSharedOptions(e,n),h=a.axis,d=r.axis;for(let u=e;ume(v,r,l,!0)?1:Math.max(y,y*e,_,_*e),g=(v,y,_)=>me(v,r,l,!0)?-1:Math.min(y,y*e,_,_*e),p=f(0,c,d),m=f(j,h,u),b=g(R,c,d),x=g(R+j,h,u);s=(p-b)/2,n=(m-x)/2,o=-(p+b)/2,a=-(m+x)/2}return{ratioX:s,ratioY:n,offsetX:o,offsetY:a}}class It extends ot{constructor(t,e){super(t,e),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,e){const s=this.getDataset().data,n=this._cachedMeta;if(this._parsing===!1)n._parsed=s;else{let o=l=>+s[l];if(T(s[t])){const{key:l="value"}=this._parsing;o=c=>+kt(s[c],l)}let a,r;for(a=t,r=t+e;a0&&!isNaN(t)?z*(Math.abs(t)/e):0}getLabelAndValue(t){const e=this._cachedMeta,s=this.chart,n=s.data.labels||[],o=Me(e._parsed[t],s.options.locale);return{label:n[t]||"",value:o}}getMaxBorderWidth(t){let e=0;const s=this.chart;let n,o,a,r,l;if(!t){for(n=0,o=s.data.datasets.length;nt!=="spacing",_indexable:t=>t!=="spacing"&&!t.startsWith("borderDash")&&!t.startsWith("hoverBorderDash")}),M(It,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data,{labels:{pointStyle:s,textAlign:n,color:o,useBorderRadius:a,borderRadius:r}}=t.legend.options;return e.labels.length&&e.datasets.length?e.labels.map((l,c)=>{const d=t.getDatasetMeta(0).controller.getStyle(c);return{text:l,fillStyle:d.backgroundColor,fontColor:o,hidden:!t.getDataVisibility(c),lineDash:d.borderDash,lineDashOffset:d.borderDashOffset,lineJoin:d.borderJoinStyle,lineWidth:d.borderWidth,strokeStyle:d.borderColor,textAlign:n,pointStyle:s,borderRadius:a&&(r||d.borderRadius),index:c}}):[]}},onClick(t,e,s){s.chart.toggleDataVisibility(e.index),s.chart.update()}}}});class Ve extends ot{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const e=this._cachedMeta,{dataset:s,data:n=[],_dataset:o}=e,a=this.chart._animationsDisabled;let{start:r,count:l}=Rn(e,n,a);this._drawStart=r,this._drawCount=l,En(e)&&(r=0,l=n.length),s._chart=this.chart,s._datasetIndex=this.index,s._decimated=!!o._decimated,s.points=n;const c=this.resolveDatasetElementOptions(t);this.options.showLine||(c.borderWidth=0),c.segment=this.options.segment,this.updateElement(s,void 0,{animated:!a,options:c},t),this.updateElements(n,r,l,t)}updateElements(t,e,s,n){const o=n==="reset",{iScale:a,vScale:r,_stacked:l,_dataset:c}=this._cachedMeta,{sharedOptions:h,includeOptions:d}=this._getSharedOptions(e,n),u=a.axis,f=r.axis,{spanGaps:g,segment:p}=this.options,m=Xt(g)?g:Number.POSITIVE_INFINITY,b=this.chart._animationsDisabled||o||n==="none",x=e+s,v=t.length;let y=e>0&&this.getParsed(e-1);for(let _=0;_=x){S.skip=!0;continue}const w=this.getParsed(_),P=C(w[f]),O=S[u]=a.getPixelForValue(w[u],_),A=S[f]=o||P?r.getBasePixel():r.getPixelForValue(l?this.applyStack(r,w,l):w[f],_);S.skip=isNaN(O)||isNaN(A)||P,S.stop=_>0&&Math.abs(w[u]-y[u])>m,p&&(S.parsed=w,S.raw=c.data[_]),d&&(S.options=h||this.resolveDataElementOptions(_,k.active?"active":n)),b||this.updateElement(k,_,S,n),y=w}}getMaxOverflow(){const t=this._cachedMeta,e=t.dataset,s=e.options&&e.options.borderWidth||0,n=t.data||[];if(!n.length)return s;const o=n[0].size(this.resolveDataElementOptions(0)),a=n[n.length-1].size(this.resolveDataElementOptions(n.length-1));return Math.max(s,o,a)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}M(Ve,"id","line"),M(Ve,"defaults",{datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1}),M(Ve,"overrides",{scales:{_index_:{type:"category"},_value_:{type:"linear"}}});class ue extends ot{constructor(t,e){super(t,e),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){const e=this._cachedMeta,s=this.chart,n=s.data.labels||[],o=Me(e._parsed[t].r,s.options.locale);return{label:n[t]||"",value:o}}parseObjectData(t,e,s,n){return Hn.bind(this)(t,e,s,n)}update(t){const e=this._cachedMeta.data;this._updateRadius(),this.updateElements(e,0,e.length,t)}getMinMax(){const t=this._cachedMeta,e={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return t.data.forEach((s,n)=>{const o=this.getParsed(n).r;!isNaN(o)&&this.chart.getDataVisibility(n)&&(oe.max&&(e.max=o))}),e}_updateRadius(){const t=this.chart,e=t.chartArea,s=t.options,n=Math.min(e.right-e.left,e.bottom-e.top),o=Math.max(n/2,0),a=Math.max(s.cutoutPercentage?o/100*s.cutoutPercentage:1,0),r=(o-a)/t.getVisibleDatasetCount();this.outerRadius=o-r*this.index,this.innerRadius=this.outerRadius-r}updateElements(t,e,s,n){const o=n==="reset",a=this.chart,l=a.options.animation,c=this._cachedMeta.rScale,h=c.xCenter,d=c.yCenter,u=c.getIndexAngle(0)-.5*R;let f=u,g;const p=360/this.countVisibleElements();for(g=0;g{!isNaN(this.getParsed(n).r)&&this.chart.getDataVisibility(n)&&e++}),e}_computeAngle(t,e,s){return this.chart.getDataVisibility(t)?nt(this.resolveDataElementOptions(t,e).angle||s):0}}M(ue,"id","polarArea"),M(ue,"defaults",{dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0}),M(ue,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:s,color:n}}=t.legend.options;return e.labels.map((o,a)=>{const l=t.getDatasetMeta(0).controller.getStyle(a);return{text:o,fillStyle:l.backgroundColor,strokeStyle:l.borderColor,fontColor:n,lineWidth:l.borderWidth,pointStyle:s,hidden:!t.getDataVisibility(a),index:a}})}return[]}},onClick(t,e,s){s.chart.toggleDataVisibility(e.index),s.chart.update()}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}});class wi extends It{}M(wi,"id","pie"),M(wi,"defaults",{cutout:0,rotation:0,circumference:360,radius:"100%"});class We extends ot{getLabelAndValue(t){const e=this._cachedMeta.vScale,s=this.getParsed(t);return{label:e.getLabels()[t],value:""+e.getLabelForValue(s[e.axis])}}parseObjectData(t,e,s,n){return Hn.bind(this)(t,e,s,n)}update(t){const e=this._cachedMeta,s=e.dataset,n=e.data||[],o=e.iScale.getLabels();if(s.points=n,t!=="resize"){const a=this.resolveDatasetElementOptions(t);this.options.showLine||(a.borderWidth=0);const r={_loop:!0,_fullLoop:o.length===n.length,options:a};this.updateElement(s,void 0,r,t)}this.updateElements(n,0,n.length,t)}updateElements(t,e,s,n){const o=this._cachedMeta.rScale,a=n==="reset";for(let r=e;r0&&this.getParsed(e-1);for(let y=e;y0&&Math.abs(k[f]-v[f])>b,m&&(S.parsed=k,S.raw=c.data[y]),u&&(S.options=d||this.resolveDataElementOptions(y,_.active?"active":n)),x||this.updateElement(_,y,S,n),v=k}this.updateSharedOptions(d,n,h)}getMaxOverflow(){const t=this._cachedMeta,e=t.data||[];if(!this.options.showLine){let r=0;for(let l=e.length-1;l>=0;--l)r=Math.max(r,e[l].size(this.resolveDataElementOptions(l))/2);return r>0&&r}const s=t.dataset,n=s.options&&s.options.borderWidth||0;if(!e.length)return n;const o=e[0].size(this.resolveDataElementOptions(0)),a=e[e.length-1].size(this.resolveDataElementOptions(e.length-1));return Math.max(n,o,a)/2}}M(Ne,"id","scatter"),M(Ne,"defaults",{datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1}),M(Ne,"overrides",{interaction:{mode:"point"},scales:{x:{type:"linear"},y:{type:"linear"}}});var Er=Object.freeze({__proto__:null,BarController:ze,BubbleController:Be,DoughnutController:It,LineController:Ve,PieController:wi,PolarAreaController:ue,RadarController:We,ScatterController:Ne});function Ct(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class Zi{constructor(t){M(this,"options");this.options=t||{}}static override(t){Object.assign(Zi.prototype,t)}init(){}formats(){return Ct()}parse(){return Ct()}format(){return Ct()}add(){return Ct()}diff(){return Ct()}startOf(){return Ct()}endOf(){return Ct()}}var Ir={_date:Zi};function Fr(i,t,e,s){const{controller:n,data:o,_sorted:a}=i,r=n._cachedMeta.iScale,l=i.dataset&&i.dataset.options?i.dataset.options.spanGaps:null;if(r&&t===r.axis&&t!=="r"&&a&&o.length){const c=r._reversePixels?na:pt;if(s){if(n._sharedOptions){const h=o[0],d=typeof h.getRange=="function"&&h.getRange(t);if(d){const u=c(o,t,e-d),f=c(o,t,e+d);return{lo:u.lo,hi:f.hi}}}}else{const h=c(o,t,e);if(l){const{vScale:d}=n._cachedMeta,{_parsed:u}=i,f=u.slice(0,h.lo+1).reverse().findIndex(p=>!C(p[d.axis]));h.lo-=Math.max(0,f);const g=u.slice(h.hi).findIndex(p=>!C(p[d.axis]));h.hi+=Math.max(0,g)}return h}}return{lo:0,hi:o.length-1}}function ni(i,t,e,s,n){const o=i.getSortedVisibleDatasetMetas(),a=e[t];for(let r=0,l=o.length;r{l[a]&&l[a](t[e],n)&&(o.push({element:l,datasetIndex:c,index:h}),r=r||l.inRange(t.x,t.y,n))}),s&&!r?[]:o}var Wr={modes:{index(i,t,e,s){const n=Lt(t,i),o=e.axis||"x",a=e.includeInvisible||!1,r=e.intersect?gi(i,n,o,s,a):pi(i,n,o,!1,s,a),l=[];return r.length?(i.getSortedVisibleDatasetMetas().forEach(c=>{const h=r[0].index,d=c.data[h];d&&!d.skip&&l.push({element:d,datasetIndex:c.index,index:h})}),l):[]},dataset(i,t,e,s){const n=Lt(t,i),o=e.axis||"xy",a=e.includeInvisible||!1;let r=e.intersect?gi(i,n,o,s,a):pi(i,n,o,!1,s,a);if(r.length>0){const l=r[0].datasetIndex,c=i.getDatasetMeta(l).data;r=[];for(let h=0;he.pos===t)}function Ts(i,t){return i.filter(e=>Qn.indexOf(e.pos)===-1&&e.box.axis===t)}function Qt(i,t){return i.sort((e,s)=>{const n=t?s:e,o=t?e:s;return n.weight===o.weight?n.index-o.index:n.weight-o.weight})}function Nr(i){const t=[];let e,s,n,o,a,r;for(e=0,s=(i||[]).length;ec.box.fullSize),!0),s=Qt(Jt(t,"left"),!0),n=Qt(Jt(t,"right")),o=Qt(Jt(t,"top"),!0),a=Qt(Jt(t,"bottom")),r=Ts(t,"x"),l=Ts(t,"y");return{fullSize:e,leftAndTop:s.concat(o),rightAndBottom:n.concat(l).concat(a).concat(r),chartArea:Jt(t,"chartArea"),vertical:s.concat(n).concat(l),horizontal:o.concat(a).concat(r)}}function Ls(i,t,e,s){return Math.max(i[e],t[e])+Math.max(i[s],t[s])}function to(i,t){i.top=Math.max(i.top,t.top),i.left=Math.max(i.left,t.left),i.bottom=Math.max(i.bottom,t.bottom),i.right=Math.max(i.right,t.right)}function Yr(i,t,e,s){const{pos:n,box:o}=e,a=i.maxPadding;if(!T(n)){e.size&&(i[n]-=e.size);const d=s[e.stack]||{size:0,count:1};d.size=Math.max(d.size,e.horizontal?o.height:o.width),e.size=d.size/d.count,i[n]+=e.size}o.getPadding&&to(a,o.getPadding());const r=Math.max(0,t.outerWidth-Ls(a,i,"left","right")),l=Math.max(0,t.outerHeight-Ls(a,i,"top","bottom")),c=r!==i.w,h=l!==i.h;return i.w=r,i.h=l,e.horizontal?{same:c,other:h}:{same:h,other:c}}function Xr(i){const t=i.maxPadding;function e(s){const n=Math.max(t[s]-i[s],0);return i[s]+=n,n}i.y+=e("top"),i.x+=e("left"),e("right"),e("bottom")}function Ur(i,t){const e=t.maxPadding;function s(n){const o={left:0,top:0,right:0,bottom:0};return n.forEach(a=>{o[a]=Math.max(t[a],e[a])}),o}return s(i?["left","right"]:["top","bottom"])}function ne(i,t,e,s){const n=[];let o,a,r,l,c,h;for(o=0,a=i.length,c=0;o{typeof p.beforeLayout=="function"&&p.beforeLayout()});const h=l.reduce((p,m)=>m.box.options&&m.box.options.display===!1?p:p+1,0)||1,d=Object.freeze({outerWidth:t,outerHeight:e,padding:n,availableWidth:o,availableHeight:a,vBoxMaxWidth:o/2/h,hBoxMaxHeight:a/2}),u=Object.assign({},n);to(u,Z(s));const f=Object.assign({maxPadding:u,w:o,h:a,x:n.left,y:n.top},n),g=jr(l.concat(c),d);ne(r.fullSize,f,d,g),ne(l,f,d,g),ne(c,f,d,g)&&ne(l,f,d,g),Xr(f),Rs(r.leftAndTop,f,d,g),f.x+=f.w,f.y+=f.h,Rs(r.rightAndBottom,f,d,g),i.chartArea={left:f.left,top:f.top,right:f.left+f.w,bottom:f.top+f.h,height:f.h,width:f.w},E(r.chartArea,p=>{const m=p.box;Object.assign(m,i.chartArea),m.update(f.w,f.h,{left:0,top:0,right:0,bottom:0})})}};class eo{acquireContext(t,e){}releaseContext(t){return!1}addEventListener(t,e,s){}removeEventListener(t,e,s){}getDevicePixelRatio(){return 1}getMaximumSize(t,e,s,n){return e=Math.max(0,e||t.width),s=s||t.height,{width:e,height:Math.max(0,n?Math.floor(e/n):s)}}isAttached(t){return!0}updateConfig(t){}}class Kr extends eo{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const He="$chartjs",qr={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},Es=i=>i===null||i==="";function Gr(i,t){const e=i.style,s=i.getAttribute("height"),n=i.getAttribute("width");if(i[He]={initial:{height:s,width:n,style:{display:e.display,height:e.height,width:e.width}}},e.display=e.display||"block",e.boxSizing=e.boxSizing||"border-box",Es(n)){const o=bs(i,"width");o!==void 0&&(i.width=o)}if(Es(s))if(i.style.height==="")i.height=i.width/(t||2);else{const o=bs(i,"height");o!==void 0&&(i.height=o)}return i}const io=Za?{passive:!0}:!1;function Zr(i,t,e){i&&i.addEventListener(t,e,io)}function Jr(i,t,e){i&&i.canvas&&i.canvas.removeEventListener(t,e,io)}function Qr(i,t){const e=qr[i.type]||i.type,{x:s,y:n}=Lt(i,t);return{type:e,chart:t,native:i,x:s!==void 0?s:null,y:n!==void 0?n:null}}function Ze(i,t){for(const e of i)if(e===t||e.contains(t))return!0}function tl(i,t,e){const s=i.canvas,n=new MutationObserver(o=>{let a=!1;for(const r of o)a=a||Ze(r.addedNodes,s),a=a&&!Ze(r.removedNodes,s);a&&e()});return n.observe(document,{childList:!0,subtree:!0}),n}function el(i,t,e){const s=i.canvas,n=new MutationObserver(o=>{let a=!1;for(const r of o)a=a||Ze(r.removedNodes,s),a=a&&!Ze(r.addedNodes,s);a&&e()});return n.observe(document,{childList:!0,subtree:!0}),n}const xe=new Map;let Is=0;function so(){const i=window.devicePixelRatio;i!==Is&&(Is=i,xe.forEach((t,e)=>{e.currentDevicePixelRatio!==i&&t()}))}function il(i,t){xe.size||window.addEventListener("resize",so),xe.set(i,t)}function sl(i){xe.delete(i),xe.size||window.removeEventListener("resize",so)}function nl(i,t,e){const s=i.canvas,n=s&&Gi(s);if(!n)return;const o=Ln((r,l)=>{const c=n.clientWidth;e(r,l),c{const l=r[0],c=l.contentRect.width,h=l.contentRect.height;c===0&&h===0||o(c,h)});return a.observe(n),il(i,o),a}function mi(i,t,e){e&&e.disconnect(),t==="resize"&&sl(i)}function ol(i,t,e){const s=i.canvas,n=Ln(o=>{i.ctx!==null&&e(Qr(o,i))},i);return Zr(s,t,n),n}class al extends eo{acquireContext(t,e){const s=t&&t.getContext&&t.getContext("2d");return s&&s.canvas===t?(Gr(t,e),s):null}releaseContext(t){const e=t.canvas;if(!e[He])return!1;const s=e[He].initial;["height","width"].forEach(o=>{const a=s[o];C(a)?e.removeAttribute(o):e.setAttribute(o,a)});const n=s.style||{};return Object.keys(n).forEach(o=>{e.style[o]=n[o]}),e.width=e.width,delete e[He],!0}addEventListener(t,e,s){this.removeEventListener(t,e);const n=t.$proxies||(t.$proxies={}),a={attach:tl,detach:el,resize:nl}[e]||ol;n[e]=a(t,e,s)}removeEventListener(t,e){const s=t.$proxies||(t.$proxies={}),n=s[e];if(!n)return;({attach:mi,detach:mi,resize:mi}[e]||Jr)(t,e,n),s[e]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,e,s,n){return Ga(t,e,s,n)}isAttached(t){const e=t&&Gi(t);return!!(e&&e.isConnected)}}function rl(i){return!qi()||typeof OffscreenCanvas<"u"&&i instanceof OffscreenCanvas?Kr:al}class at{constructor(){M(this,"x");M(this,"y");M(this,"active",!1);M(this,"options");M(this,"$animations")}tooltipPosition(t){const{x:e,y:s}=this.getProps(["x","y"],t);return{x:e,y:s}}hasValue(){return Xt(this.x)&&Xt(this.y)}getProps(t,e){const s=this.$animations;if(!e||!s)return this;const n={};return t.forEach(o=>{n[o]=s[o]&&s[o].active()?s[o]._to:this[o]}),n}}M(at,"defaults",{}),M(at,"defaultRoutes");function ll(i,t){const e=i.options.ticks,s=cl(i),n=Math.min(e.maxTicksLimit||s,s),o=e.major.enabled?dl(t):[],a=o.length,r=o[0],l=o[a-1],c=[];if(a>n)return ul(t,c,o,a/n),c;const h=hl(o,t,n);if(a>0){let d,u;const f=a>1?Math.round((l-r)/(a-1)):null;for(Te(t,c,h,C(f)?0:r-f,r),d=0,u=a-1;dn)return l}return Math.max(n,1)}function dl(i){const t=[];let e,s;for(e=0,s=i.length;ei==="left"?"right":i==="right"?"left":i,Fs=(i,t,e)=>t==="top"||t==="left"?i[t]+e:i[t]-e,zs=(i,t)=>Math.min(t||i,i);function Bs(i,t){const e=[],s=i.length/t,n=i.length;let o=0;for(;oa+r)))return l}function ml(i,t){E(i,e=>{const s=e.gc,n=s.length/2;let o;if(n>t){for(o=0;os?s:e,s=n&&e>s?e:s,{min:et(e,et(s,e)),max:et(s,et(e,s))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(t))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){F(this.options.beforeUpdate,[this])}update(t,e,s){const{beginAtZero:n,grace:o,ticks:a}=this.options,r=a.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=e,this._margins=s=Object.assign({left:0,right:0,top:0,bottom:0},s),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+s.left+s.right:this.height+s.top+s.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=Oa(this,o,n),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=r=o||s<=1||!this.isHorizontal()){this.labelRotation=n;return}const h=this._getLabelSizes(),d=h.widest.width,u=h.highest.height,f=Y(this.chart.width-d,0,this.maxWidth);r=t.offset?this.maxWidth/s:f/(s-1),d+6>r&&(r=f/(s-(t.offset?.5:1)),l=this.maxHeight-te(t.grid)-e.padding-Vs(t.title,this.chart.options.font),c=Math.sqrt(d*d+u*u),a=Ni(Math.min(Math.asin(Y((h.highest.height+6)/r,-1,1)),Math.asin(Y(l/c,-1,1))-Math.asin(Y(u/c,-1,1)))),a=Math.max(n,Math.min(o,a))),this.labelRotation=a}afterCalculateLabelRotation(){F(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){F(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:e,options:{ticks:s,title:n,grid:o}}=this,a=this._isVisible(),r=this.isHorizontal();if(a){const l=Vs(n,e.options.font);if(r?(t.width=this.maxWidth,t.height=te(o)+l):(t.height=this.maxHeight,t.width=te(o)+l),s.display&&this.ticks.length){const{first:c,last:h,widest:d,highest:u}=this._getLabelSizes(),f=s.padding*2,g=nt(this.labelRotation),p=Math.cos(g),m=Math.sin(g);if(r){const b=s.mirror?0:m*d.width+p*u.height;t.height=Math.min(this.maxHeight,t.height+b+f)}else{const b=s.mirror?0:p*d.width+m*u.height;t.width=Math.min(this.maxWidth,t.width+b+f)}this._calculatePadding(c,h,m,p)}}this._handleMargins(),r?(this.width=this._length=e.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=e.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,e,s,n){const{ticks:{align:o,padding:a},position:r}=this.options,l=this.labelRotation!==0,c=r!=="top"&&this.axis==="x";if(this.isHorizontal()){const h=this.getPixelForTick(0)-this.left,d=this.right-this.getPixelForTick(this.ticks.length-1);let u=0,f=0;l?c?(u=n*t.width,f=s*e.height):(u=s*t.height,f=n*e.width):o==="start"?f=e.width:o==="end"?u=t.width:o!=="inner"&&(u=t.width/2,f=e.width/2),this.paddingLeft=Math.max((u-h+a)*this.width/(this.width-h),0),this.paddingRight=Math.max((f-d+a)*this.width/(this.width-d),0)}else{let h=e.height/2,d=t.height/2;o==="start"?(h=0,d=t.height):o==="end"&&(h=e.height,d=0),this.paddingTop=h+a,this.paddingBottom=d+a}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){F(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:e}=this.options;return e==="top"||e==="bottom"||t==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){this.beforeTickToLabelConversion(),this.generateTickLabels(t);let e,s;for(e=0,s=t.length;e({width:a[P]||0,height:r[P]||0});return{first:w(0),last:w(e-1),widest:w(k),highest:w(S),widths:a,heights:r}}getLabelForValue(t){return t}getPixelForValue(t,e){return NaN}getValueForPixel(t){}getPixelForTick(t){const e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const e=this._startPixel+t*this._length;return sa(this._alignToPixels?At(this.chart,e,0):e)}getDecimalForPixel(t){const e=(t-this._startPixel)/this._length;return this._reversePixels?1-e:e}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:e}=this;return t<0&&e<0?e:t>0&&e>0?t:0}getContext(t){const e=this.ticks||[];if(t>=0&&tr*n?r/s:l/n:l*n0}_computeGridLineItems(t){const e=this.axis,s=this.chart,n=this.options,{grid:o,position:a,border:r}=n,l=o.offset,c=this.isHorizontal(),d=this.ticks.length+(l?1:0),u=te(o),f=[],g=r.setContext(this.getContext()),p=g.display?g.width:0,m=p/2,b=function(B){return At(s,B,p)};let x,v,y,_,k,S,w,P,O,A,L,X;if(a==="top")x=b(this.bottom),S=this.bottom-u,P=x-m,A=b(t.top)+m,X=t.bottom;else if(a==="bottom")x=b(this.top),A=t.top,X=b(t.bottom)-m,S=x+m,P=this.top+u;else if(a==="left")x=b(this.right),k=this.right-u,w=x-m,O=b(t.left)+m,L=t.right;else if(a==="right")x=b(this.left),O=t.left,L=b(t.right)-m,k=x+m,w=this.left+u;else if(e==="x"){if(a==="center")x=b((t.top+t.bottom)/2+.5);else if(T(a)){const B=Object.keys(a)[0],H=a[B];x=b(this.chart.scales[B].getPixelForValue(H))}A=t.top,X=t.bottom,S=x+m,P=S+u}else if(e==="y"){if(a==="center")x=b((t.left+t.right)/2);else if(T(a)){const B=Object.keys(a)[0],H=a[B];x=b(this.chart.scales[B].getPixelForValue(H))}k=x-m,w=k-u,O=t.left,L=t.right}const tt=D(n.ticks.maxTicksLimit,d),I=Math.max(1,Math.ceil(d/tt));for(v=0;v0&&(Dt-=Pt/2);break}ke={left:Dt,top:Gt,width:Pt+Ht.width,height:qt+Ht.height,color:I.backdropColor}}m.push({label:y,font:P,textOffset:L,options:{rotation:p,color:H,strokeColor:st,strokeWidth:U,textAlign:Nt,textBaseline:X,translation:[_,k],backdrop:ke}})}return m}_getXAxisLabelAlignment(){const{position:t,ticks:e}=this.options;if(-nt(this.labelRotation))return t==="top"?"left":"right";let n="center";return e.align==="start"?n="left":e.align==="end"?n="right":e.align==="inner"&&(n="inner"),n}_getYAxisLabelAlignment(t){const{position:e,ticks:{crossAlign:s,mirror:n,padding:o}}=this.options,a=this._getLabelSizes(),r=t+o,l=a.widest.width;let c,h;return e==="left"?n?(h=this.right+o,s==="near"?c="left":s==="center"?(c="center",h+=l/2):(c="right",h+=l)):(h=this.right-r,s==="near"?c="right":s==="center"?(c="center",h-=l/2):(c="left",h=this.left)):e==="right"?n?(h=this.left+o,s==="near"?c="right":s==="center"?(c="center",h-=l/2):(c="left",h-=l)):(h=this.left+r,s==="near"?c="left":s==="center"?(c="center",h+=l/2):(c="right",h=this.right)):c="right",{textAlign:c,x:h}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,e=this.options.position;if(e==="left"||e==="right")return{top:0,left:this.left,bottom:t.height,right:this.right};if(e==="top"||e==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:t.width}}drawBackground(){const{ctx:t,options:{backgroundColor:e},left:s,top:n,width:o,height:a}=this;e&&(t.save(),t.fillStyle=e,t.fillRect(s,n,o,a),t.restore())}getLineWidthForValue(t){const e=this.options.grid;if(!this._isVisible()||!e.display)return 0;const n=this.ticks.findIndex(o=>o.value===t);return n>=0?e.setContext(this.getContext(n)).lineWidth:0}drawGrid(t){const e=this.options.grid,s=this.ctx,n=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let o,a;const r=(l,c,h)=>{!h.width||!h.color||(s.save(),s.lineWidth=h.width,s.strokeStyle=h.color,s.setLineDash(h.borderDash||[]),s.lineDashOffset=h.borderDashOffset,s.beginPath(),s.moveTo(l.x,l.y),s.lineTo(c.x,c.y),s.stroke(),s.restore())};if(e.display)for(o=0,a=n.length;o{this.draw(o)}}]:[{z:s,draw:o=>{this.drawBackground(),this.drawGrid(o),this.drawTitle()}},{z:n,draw:()=>{this.drawBorder()}},{z:e,draw:o=>{this.drawLabels(o)}}]}getMatchingVisibleMetas(t){const e=this.chart.getSortedVisibleDatasetMetas(),s=this.axis+"AxisID",n=[];let o,a;for(o=0,a=e.length;o{const s=e.split("."),n=s.pop(),o=[i].concat(s).join("."),a=t[e].split("."),r=a.pop(),l=a.join(".");W.route(o,n,l,r)})}function kl(i){return"id"in i&&"defaults"in i}class Sl{constructor(){this.controllers=new Le(ot,"datasets",!0),this.elements=new Le(at,"elements"),this.plugins=new Le(Object,"plugins"),this.scales=new Le(Wt,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,e,s){[...e].forEach(n=>{const o=s||this._getRegistryForType(n);s||o.isForType(n)||o===this.plugins&&n.id?this._exec(t,o,n):E(n,a=>{const r=s||this._getRegistryForType(a);this._exec(t,r,a)})})}_exec(t,e,s){const n=Wi(t);F(s["before"+n],[],s),e[t](s),F(s["after"+n],[],s)}_getRegistryForType(t){for(let e=0;eo.filter(r=>!a.some(l=>r.plugin.id===l.plugin.id));this._notify(n(e,s),t,"stop"),this._notify(n(s,e),t,"start")}}function Pl(i){const t={},e=[],s=Object.keys(lt.plugins.items);for(let o=0;o1&&Ws(i[0].toLowerCase());if(s)return s}throw new Error(`Cannot determine type of '${i}' axis. Please provide 'axis' or 'position' option.`)}function Ns(i,t,e){if(e[t+"AxisID"]===i)return{axis:t}}function Rl(i,t){if(t.data&&t.data.datasets){const e=t.data.datasets.filter(s=>s.xAxisID===i||s.yAxisID===i);if(e.length)return Ns(i,"x",e[0])||Ns(i,"y",e[0])}return{}}function El(i,t){const e=Bt[i.type]||{scales:{}},s=t.scales||{},n=Pi(i.type,t),o=Object.create(null);return Object.keys(s).forEach(a=>{const r=s[a];if(!T(r))return console.error(`Invalid scale configuration for scale: ${a}`);if(r._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${a}`);const l=Di(a,r,Rl(a,i),W.scales[r.type]),c=Tl(l,n),h=e.scales||{};o[a]=le(Object.create(null),[{axis:l},r,h[l],h[c]])}),i.data.datasets.forEach(a=>{const r=a.type||i.type,l=a.indexAxis||Pi(r,t),h=(Bt[r]||{}).scales||{};Object.keys(h).forEach(d=>{const u=Cl(d,l),f=a[u+"AxisID"]||u;o[f]=o[f]||Object.create(null),le(o[f],[{axis:u},s[f],h[d]])})}),Object.keys(o).forEach(a=>{const r=o[a];le(r,[W.scales[r.type],W.scale])}),o}function no(i){const t=i.options||(i.options={});t.plugins=D(t.plugins,{}),t.scales=El(i,t)}function oo(i){return i=i||{},i.datasets=i.datasets||[],i.labels=i.labels||[],i}function Il(i){return i=i||{},i.data=oo(i.data),no(i),i}const Hs=new Map,ao=new Set;function Re(i,t){let e=Hs.get(i);return e||(e=t(),Hs.set(i,e),ao.add(e)),e}const ee=(i,t,e)=>{const s=kt(t,e);s!==void 0&&i.add(s)};class Fl{constructor(t){this._config=Il(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=oo(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),no(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return Re(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,e){return Re(`${t}.transition.${e}`,()=>[[`datasets.${t}.transitions.${e}`,`transitions.${e}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,e){return Re(`${t}-${e}`,()=>[[`datasets.${t}.elements.${e}`,`datasets.${t}`,`elements.${e}`,""]])}pluginScopeKeys(t){const e=t.id,s=this.type;return Re(`${s}-plugin-${e}`,()=>[[`plugins.${e}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,e){const s=this._scopeCache;let n=s.get(t);return(!n||e)&&(n=new Map,s.set(t,n)),n}getOptionScopes(t,e,s){const{options:n,type:o}=this,a=this._cachedScopes(t,s),r=a.get(e);if(r)return r;const l=new Set;e.forEach(h=>{t&&(l.add(t),h.forEach(d=>ee(l,t,d))),h.forEach(d=>ee(l,n,d)),h.forEach(d=>ee(l,Bt[o]||{},d)),h.forEach(d=>ee(l,W,d)),h.forEach(d=>ee(l,ki,d))});const c=Array.from(l);return c.length===0&&c.push(Object.create(null)),ao.has(e)&&a.set(e,c),c}chartOptionScopes(){const{options:t,type:e}=this;return[t,Bt[e]||{},W.datasets[e]||{},{type:e},W,ki]}resolveNamedOptions(t,e,s,n=[""]){const o={$shared:!0},{resolver:a,subPrefixes:r}=js(this._resolverCache,t,n);let l=a;if(Bl(a,e)){o.$shared=!1,s=St(s)?s():s;const c=this.createResolver(t,s,r);l=Ut(a,s,c)}for(const c of e)o[c]=l[c];return o}createResolver(t,e,s=[""],n){const{resolver:o}=js(this._resolverCache,t,s);return T(e)?Ut(o,e,void 0,n):o}}function js(i,t,e){let s=i.get(t);s||(s=new Map,i.set(t,s));const n=e.join();let o=s.get(n);return o||(o={resolver:Xi(t,e),subPrefixes:e.filter(r=>!r.toLowerCase().includes("hover"))},s.set(n,o)),o}const zl=i=>T(i)&&Object.getOwnPropertyNames(i).some(t=>St(i[t]));function Bl(i,t){const{isScriptable:e,isIndexable:s}=Bn(i);for(const n of t){const o=e(n),a=s(n),r=(a||o)&&i[n];if(o&&(St(r)||zl(r))||a&&V(r))return!0}return!1}var Vl="4.5.1";const Wl=["top","bottom","left","right","chartArea"];function $s(i,t){return i==="top"||i==="bottom"||Wl.indexOf(i)===-1&&t==="x"}function Ys(i,t){return function(e,s){return e[i]===s[i]?e[t]-s[t]:e[i]-s[i]}}function Xs(i){const t=i.chart,e=t.options.animation;t.notifyPlugins("afterRender"),F(e&&e.onComplete,[i],t)}function Nl(i){const t=i.chart,e=t.options.animation;F(e&&e.onProgress,[i],t)}function ro(i){return qi()&&typeof i=="string"?i=document.getElementById(i):i&&i.length&&(i=i[0]),i&&i.canvas&&(i=i.canvas),i}const je={},Us=i=>{const t=ro(i);return Object.values(je).filter(e=>e.canvas===t).pop()};function Hl(i,t,e){const s=Object.keys(i);for(const n of s){const o=+n;if(o>=t){const a=i[n];delete i[n],(e>0||o>t)&&(i[o+e]=a)}}}function jl(i,t,e,s){return!e||i.type==="mouseout"?null:s?t:i}class Et{static register(...t){lt.add(...t),Ks()}static unregister(...t){lt.remove(...t),Ks()}constructor(t,e){const s=this.config=new Fl(e),n=ro(t),o=Us(n);if(o)throw new Error("Canvas is already in use. Chart with ID '"+o.id+"' must be destroyed before the canvas with ID '"+o.canvas.id+"' can be reused.");const a=s.createResolver(s.chartOptionScopes(),this.getContext());this.platform=new(s.platform||rl(n)),this.platform.updateConfig(s);const r=this.platform.acquireContext(n,a.aspectRatio),l=r&&r.canvas,c=l&&l.height,h=l&&l.width;if(this.id=$o(),this.ctx=r,this.canvas=l,this.width=h,this.height=c,this._options=a,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new wl,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=ra(d=>this.update(d),a.resizeDelay||0),this._dataChanges=[],je[this.id]=this,!r||!l){console.error("Failed to create chart: can't acquire context from the given item");return}dt.listen(this,"complete",Xs),dt.listen(this,"progress",Nl),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:e},width:s,height:n,_aspectRatio:o}=this;return C(t)?e&&o?o:n?s/n:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return lt}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():ms(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return fs(this.canvas,this.ctx),this}stop(){return dt.stop(this),this}resize(t,e){dt.running(this)?this._resizeBeforeDraw={width:t,height:e}:this._resize(t,e)}_resize(t,e){const s=this.options,n=this.canvas,o=s.maintainAspectRatio&&this.aspectRatio,a=this.platform.getMaximumSize(n,t,e,o),r=s.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=a.width,this.height=a.height,this._aspectRatio=this.aspectRatio,ms(this,r,!0)&&(this.notifyPlugins("resize",{size:a}),F(s.onResize,[this,a],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){const e=this.options.scales||{};E(e,(s,n)=>{s.id=n})}buildOrUpdateScales(){const t=this.options,e=t.scales,s=this.scales,n=Object.keys(s).reduce((a,r)=>(a[r]=!1,a),{});let o=[];e&&(o=o.concat(Object.keys(e).map(a=>{const r=e[a],l=Di(a,r),c=l==="r",h=l==="x";return{options:r,dposition:c?"chartArea":h?"bottom":"left",dtype:c?"radialLinear":h?"category":"linear"}}))),E(o,a=>{const r=a.options,l=r.id,c=Di(l,r),h=D(r.type,a.dtype);(r.position===void 0||$s(r.position,c)!==$s(a.dposition))&&(r.position=a.dposition),n[l]=!0;let d=null;if(l in s&&s[l].type===h)d=s[l];else{const u=lt.getScale(h);d=new u({id:l,type:h,ctx:this.ctx,chart:this}),s[d.id]=d}d.init(r,t)}),E(n,(a,r)=>{a||delete s[r]}),E(s,a=>{G.configure(this,a,a.options),G.addBox(this,a)})}_updateMetasets(){const t=this._metasets,e=this.data.datasets.length,s=t.length;if(t.sort((n,o)=>n.index-o.index),s>e){for(let n=e;ne.length&&delete this._stacks,t.forEach((s,n)=>{e.filter(o=>o===s._dataset).length===0&&this._destroyDatasetMeta(n)})}buildOrUpdateControllers(){const t=[],e=this.data.datasets;let s,n;for(this._removeUnreferencedMetasets(),s=0,n=e.length;s{this.getDatasetMeta(e).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const e=this.config;e.update();const s=this._options=e.createResolver(e.chartOptionScopes(),this.getContext()),n=this._animationsDisabled=!s.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0})===!1)return;const o=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let a=0;for(let c=0,h=this.data.datasets.length;c{c.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(Ys("z","_idx"));const{_active:r,_lastEvent:l}=this;l?this._eventHandler(l,!0):r.length&&this._updateHoverStyles(r,r,!0),this.render()}_updateScales(){E(this.scales,t=>{G.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,e=new Set(Object.keys(this._listeners)),s=new Set(t.events);(!ns(e,s)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,e=this._getUniformDataChanges()||[];for(const{method:s,start:n,count:o}of e){const a=s==="_removeElements"?-o:o;Hl(t,n,a)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const e=this.data.datasets.length,s=o=>new Set(t.filter(a=>a[0]===o).map((a,r)=>r+","+a.splice(1).join(","))),n=s(0);for(let o=1;oo.split(",")).map(o=>({method:o[1],start:+o[2],count:+o[3]}))}_updateLayout(t){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;G.update(this,this.width,this.height,t);const e=this.chartArea,s=e.width<=0||e.height<=0;this._layers=[],E(this.boxes,n=>{s&&n.position==="chartArea"||(n.configure&&n.configure(),this._layers.push(...n._layers()))},this),this._layers.forEach((n,o)=>{n._idx=o}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})!==!1){for(let e=0,s=this.data.datasets.length;e=0;--e)this._drawDataset(t[e]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const e=this.ctx,s={meta:t,index:t.index,cancelable:!0},n=qn(this,t);this.notifyPlugins("beforeDatasetDraw",s)!==!1&&(n&&ei(e,n),t.controller.draw(),n&&ii(e),s.cancelable=!1,this.notifyPlugins("afterDatasetDraw",s))}isPointInArea(t){return mt(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,e,s,n){const o=Wr.modes[e];return typeof o=="function"?o(this,t,s,n):[]}getDatasetMeta(t){const e=this.data.datasets[t],s=this._metasets;let n=s.filter(o=>o&&o._dataset===e).pop();return n||(n={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:e&&e.order||0,index:t,_dataset:e,_parsed:[],_sorted:!1},s.push(n)),n}getContext(){return this.$context||(this.$context=wt(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const e=this.data.datasets[t];if(!e)return!1;const s=this.getDatasetMeta(t);return typeof s.hidden=="boolean"?!s.hidden:!e.hidden}setDatasetVisibility(t,e){const s=this.getDatasetMeta(t);s.hidden=!e}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,e,s){const n=s?"show":"hide",o=this.getDatasetMeta(t),a=o.controller._resolveAnimations(void 0,n);pe(e)?(o.data[e].hidden=!s,this.update()):(this.setDatasetVisibility(t,s),a.update(o,{visible:s}),this.update(r=>r.datasetIndex===t?n:void 0))}hide(t,e){this._updateVisibility(t,e,!1)}show(t,e){this._updateVisibility(t,e,!0)}_destroyDatasetMeta(t){const e=this._metasets[t];e&&e.controller&&e.controller._destroy(),delete this._metasets[t]}_stop(){let t,e;for(this.stop(),dt.remove(this),t=0,e=this.data.datasets.length;t{e.addEventListener(this,o,a),t[o]=a},n=(o,a,r)=>{o.offsetX=a,o.offsetY=r,this._eventHandler(o)};E(this.options.events,o=>s(o,n))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,e=this.platform,s=(l,c)=>{e.addEventListener(this,l,c),t[l]=c},n=(l,c)=>{t[l]&&(e.removeEventListener(this,l,c),delete t[l])},o=(l,c)=>{this.canvas&&this.resize(l,c)};let a;const r=()=>{n("attach",r),this.attached=!0,this.resize(),s("resize",o),s("detach",a)};a=()=>{this.attached=!1,n("resize",o),this._stop(),this._resize(0,0),s("attach",r)},e.isAttached(this.canvas)?r():a()}unbindEvents(){E(this._listeners,(t,e)=>{this.platform.removeEventListener(this,e,t)}),this._listeners={},E(this._responsiveListeners,(t,e)=>{this.platform.removeEventListener(this,e,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,e,s){const n=s?"set":"remove";let o,a,r,l;for(e==="dataset"&&(o=this.getDatasetMeta(t[0].datasetIndex),o.controller["_"+n+"DatasetHoverStyle"]()),r=0,l=t.length;r{const r=this.getDatasetMeta(o);if(!r)throw new Error("No dataset found at index "+o);return{datasetIndex:o,element:r.data[a],index:a}});!Xe(s,e)&&(this._active=s,this._lastEvent=null,this._updateHoverStyles(s,e))}notifyPlugins(t,e,s){return this._plugins.notify(this,t,e,s)}isPluginEnabled(t){return this._plugins._cache.filter(e=>e.plugin.id===t).length===1}_updateHoverStyles(t,e,s){const n=this.options.hover,o=(l,c)=>l.filter(h=>!c.some(d=>h.datasetIndex===d.datasetIndex&&h.index===d.index)),a=o(e,t),r=s?t:o(t,e);a.length&&this.updateHoverStyle(a,n.mode,!1),r.length&&n.mode&&this.updateHoverStyle(r,n.mode,!0)}_eventHandler(t,e){const s={event:t,replay:e,cancelable:!0,inChartArea:this.isPointInArea(t)},n=a=>(a.options.events||this.options.events).includes(t.native.type);if(this.notifyPlugins("beforeEvent",s,n)===!1)return;const o=this._handleEvent(t,e,s.inChartArea);return s.cancelable=!1,this.notifyPlugins("afterEvent",s,n),(o||s.changed)&&this.render(),this}_handleEvent(t,e,s){const{_active:n=[],options:o}=this,a=e,r=this._getActiveElements(t,n,s,a),l=Go(t),c=jl(t,this._lastEvent,s,l);s&&(this._lastEvent=null,F(o.onHover,[t,r,this],this),l&&F(o.onClick,[t,r,this],this));const h=!Xe(r,n);return(h||e)&&(this._active=r,this._updateHoverStyles(r,n,e)),this._lastEvent=c,h}_getActiveElements(t,e,s,n){if(t.type==="mouseout")return[];if(!s)return e;const o=this.options.hover;return this.getElementsAtEventForMode(t,o.mode,o,n)}}M(Et,"defaults",W),M(Et,"instances",je),M(Et,"overrides",Bt),M(Et,"registry",lt),M(Et,"version",Vl),M(Et,"getChart",Us);function Ks(){return E(Et.instances,i=>i._plugins.invalidate())}function $l(i,t,e){const{startAngle:s,x:n,y:o,outerRadius:a,innerRadius:r,options:l}=t,{borderWidth:c,borderJoinStyle:h}=l,d=Math.min(c/a,q(s-e));if(i.beginPath(),i.arc(n,o,a-c/2,s+d/2,e-d/2),r>0){const u=Math.min(c/r,q(s-e));i.arc(n,o,r+c/2,e-u/2,s+u/2,!0)}else{const u=Math.min(c/2,a*q(s-e));if(h==="round")i.arc(n,o,u,e-R/2,s+R/2,!0);else if(h==="bevel"){const f=2*u*u,g=-f*Math.cos(e+R/2)+n,p=-f*Math.sin(e+R/2)+o,m=f*Math.cos(s+R/2)+n,b=f*Math.sin(s+R/2)+o;i.lineTo(g,p),i.lineTo(m,b)}}i.closePath(),i.moveTo(0,0),i.rect(0,0,i.canvas.width,i.canvas.height),i.clip("evenodd")}function Yl(i,t,e){const{startAngle:s,pixelMargin:n,x:o,y:a,outerRadius:r,innerRadius:l}=t;let c=n/r;i.beginPath(),i.arc(o,a,r,s-c,e+c),l>n?(c=n/l,i.arc(o,a,l,e+c,s-c,!0)):i.arc(o,a,n,e+j,s-j),i.closePath(),i.clip()}function Xl(i){return Yi(i,["outerStart","outerEnd","innerStart","innerEnd"])}function Ul(i,t,e,s){const n=Xl(i.options.borderRadius),o=(e-t)/2,a=Math.min(o,s*t/2),r=l=>{const c=(e-Math.min(o,l))*s/2;return Y(l,0,Math.min(o,c))};return{outerStart:r(n.outerStart),outerEnd:r(n.outerEnd),innerStart:Y(n.innerStart,0,a),innerEnd:Y(n.innerEnd,0,a)}}function $t(i,t,e,s){return{x:e+i*Math.cos(t),y:s+i*Math.sin(t)}}function Je(i,t,e,s,n,o){const{x:a,y:r,startAngle:l,pixelMargin:c,innerRadius:h}=t,d=Math.max(t.outerRadius+s+e-c,0),u=h>0?h+s+e+c:0;let f=0;const g=n-l;if(s){const I=h>0?h-s:0,B=d>0?d-s:0,H=(I+B)/2,st=H!==0?g*H/(H+s):g;f=(g-st)/2}const p=Math.max(.001,g*d-e/R)/d,m=(g-p)/2,b=l+m+f,x=n-m-f,{outerStart:v,outerEnd:y,innerStart:_,innerEnd:k}=Ul(t,u,d,x-b),S=d-v,w=d-y,P=b+v/S,O=x-y/w,A=u+_,L=u+k,X=b+_/A,tt=x-k/L;if(i.beginPath(),o){const I=(P+O)/2;if(i.arc(a,r,d,P,I),i.arc(a,r,d,I,O),y>0){const U=$t(w,O,a,r);i.arc(U.x,U.y,y,O,x+j)}const B=$t(L,x,a,r);if(i.lineTo(B.x,B.y),k>0){const U=$t(L,tt,a,r);i.arc(U.x,U.y,k,x+j,tt+Math.PI)}const H=(x-k/u+(b+_/u))/2;if(i.arc(a,r,u,x-k/u,H,!0),i.arc(a,r,u,H,b+_/u,!0),_>0){const U=$t(A,X,a,r);i.arc(U.x,U.y,_,X+Math.PI,b-j)}const st=$t(S,b,a,r);if(i.lineTo(st.x,st.y),v>0){const U=$t(S,P,a,r);i.arc(U.x,U.y,v,b-j,P)}}else{i.moveTo(a,r);const I=Math.cos(P)*d+a,B=Math.sin(P)*d+r;i.lineTo(I,B);const H=Math.cos(O)*d+a,st=Math.sin(O)*d+r;i.lineTo(H,st)}i.closePath()}function Kl(i,t,e,s,n){const{fullCircles:o,startAngle:a,circumference:r}=t;let l=t.endAngle;if(o){Je(i,t,e,s,l,n);for(let c=0;c=R&&f===0&&h!=="miter"&&$l(i,t,p),o||(Je(i,t,e,s,p,n),i.stroke())}class oe extends at{constructor(e){super();M(this,"circumference");M(this,"endAngle");M(this,"fullCircles");M(this,"innerRadius");M(this,"outerRadius");M(this,"pixelMargin");M(this,"startAngle");this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,e&&Object.assign(this,e)}inRange(e,s,n){const o=this.getProps(["x","y"],n),{angle:a,distance:r}=On(o,{x:e,y:s}),{startAngle:l,endAngle:c,innerRadius:h,outerRadius:d,circumference:u}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],n),f=(this.options.spacing+this.options.borderWidth)/2,g=D(u,c-l),p=me(a,l,c)&&l!==c,m=g>=z||p,b=gt(r,h+f,d+f);return m&&b}getCenterPoint(e){const{x:s,y:n,startAngle:o,endAngle:a,innerRadius:r,outerRadius:l}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],e),{offset:c,spacing:h}=this.options,d=(o+a)/2,u=(r+l+h+c)/2;return{x:s+Math.cos(d)*u,y:n+Math.sin(d)*u}}tooltipPosition(e){return this.getCenterPoint(e)}draw(e){const{options:s,circumference:n}=this,o=(s.offset||0)/4,a=(s.spacing||0)/2,r=s.circular;if(this.pixelMargin=s.borderAlign==="inner"?.33:0,this.fullCircles=n>z?Math.floor(n/z):0,n===0||this.innerRadius<0||this.outerRadius<0)return;e.save();const l=(this.startAngle+this.endAngle)/2;e.translate(Math.cos(l)*o,Math.sin(l)*o);const c=1-Math.sin(Math.min(R,n||0)),h=o*c;e.fillStyle=s.backgroundColor,e.strokeStyle=s.borderColor,Kl(e,this,h,a,r),ql(e,this,h,a,r),e.restore()}}M(oe,"id","arc"),M(oe,"defaults",{borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0,selfJoin:!1}),M(oe,"defaultRoutes",{backgroundColor:"backgroundColor"}),M(oe,"descriptors",{_scriptable:!0,_indexable:e=>e!=="borderDash"});function lo(i,t,e=t){i.lineCap=D(e.borderCapStyle,t.borderCapStyle),i.setLineDash(D(e.borderDash,t.borderDash)),i.lineDashOffset=D(e.borderDashOffset,t.borderDashOffset),i.lineJoin=D(e.borderJoinStyle,t.borderJoinStyle),i.lineWidth=D(e.borderWidth,t.borderWidth),i.strokeStyle=D(e.borderColor,t.borderColor)}function Gl(i,t,e){i.lineTo(e.x,e.y)}function Zl(i){return i.stepped?_a:i.tension||i.cubicInterpolationMode==="monotone"?ya:Gl}function co(i,t,e={}){const s=i.length,{start:n=0,end:o=s-1}=e,{start:a,end:r}=t,l=Math.max(n,a),c=Math.min(o,r),h=nr&&o>r;return{count:s,start:l,loop:t.loop,ilen:c(a+(c?r-y:y))%o,v=()=>{p!==m&&(i.lineTo(h,m),i.lineTo(h,p),i.lineTo(h,b))};for(l&&(f=n[x(0)],i.moveTo(f.x,f.y)),u=0;u<=r;++u){if(f=n[x(u)],f.skip)continue;const y=f.x,_=f.y,k=y|0;k===g?(_m&&(m=_),h=(d*h+y)/++d):(v(),i.lineTo(y,_),g=k,d=0,p=m=_),b=_}v()}function Oi(i){const t=i.options,e=t.borderDash&&t.borderDash.length;return!i._decimated&&!i._loop&&!t.tension&&t.cubicInterpolationMode!=="monotone"&&!t.stepped&&!e?Ql:Jl}function tc(i){return i.stepped?Ja:i.tension||i.cubicInterpolationMode==="monotone"?Qa:Rt}function ec(i,t,e,s){let n=t._path;n||(n=t._path=new Path2D,t.path(n,e,s)&&n.closePath()),lo(i,t.options),i.stroke(n)}function ic(i,t,e,s){const{segments:n,options:o}=t,a=Oi(t);for(const r of n)lo(i,o,r.style),i.beginPath(),a(i,t,r,{start:e,end:e+s-1})&&i.closePath(),i.stroke()}const sc=typeof Path2D=="function";function nc(i,t,e,s){sc&&!t.options.segment?ec(i,t,e,s):ic(i,t,e,s)}class yt extends at{constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,e){const s=this.options;if((s.tension||s.cubicInterpolationMode==="monotone")&&!s.stepped&&!this._pointsUpdated){const n=s.spanGaps?this._loop:this._fullLoop;$a(this._points,s,t,n,e),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=or(this,this.options.segment))}first(){const t=this.segments,e=this.points;return t.length&&e[t[0].start]}last(){const t=this.segments,e=this.points,s=t.length;return s&&e[t[s-1].end]}interpolate(t,e){const s=this.options,n=t[e],o=this.points,a=Kn(this,{property:e,start:n,end:n});if(!a.length)return;const r=[],l=tc(s);let c,h;for(c=0,h=a.length;ct!=="borderDash"&&t!=="fill"});function qs(i,t,e,s){const n=i.options,{[e]:o}=i.getProps([e],s);return Math.abs(t-o)i.replace("rgb(","rgba(").replace(")",", 0.5)"));function uo(i){return Ai[i%Ai.length]}function fo(i){return Gs[i%Gs.length]}function dc(i,t){return i.borderColor=uo(t),i.backgroundColor=fo(t),++t}function uc(i,t){return i.backgroundColor=i.data.map(()=>uo(t++)),t}function fc(i,t){return i.backgroundColor=i.data.map(()=>fo(t++)),t}function gc(i){let t=0;return(e,s)=>{const n=i.getDatasetMeta(s).controller;n instanceof It?t=uc(e,t):n instanceof ue?t=fc(e,t):n&&(t=dc(e,t))}}function Zs(i){let t;for(t in i)if(i[t].borderColor||i[t].backgroundColor)return!0;return!1}function pc(i){return i&&(i.borderColor||i.backgroundColor)}function mc(){return W.borderColor!=="rgba(0,0,0,0.1)"||W.backgroundColor!=="rgba(0,0,0,0.1)"}var bc={id:"colors",defaults:{enabled:!0,forceOverride:!1},beforeLayout(i,t,e){if(!e.enabled)return;const{data:{datasets:s},options:n}=i.config,{elements:o}=n,a=Zs(s)||pc(n)||o&&Zs(o)||mc();if(!e.forceOverride&&a)return;const r=gc(i);s.forEach(r)}};function xc(i,t,e,s,n){const o=n.samples||s;if(o>=e)return i.slice(t,t+e);const a=[],r=(e-2)/(o-2);let l=0;const c=t+e-1;let h=t,d,u,f,g,p;for(a[l++]=i[h],d=0;df&&(f=g,u=i[x],p=x);a[l++]=u,h=p}return a[l++]=i[c],a}function _c(i,t,e,s){let n=0,o=0,a,r,l,c,h,d,u,f,g,p;const m=[],b=t+e-1,x=i[t].x,y=i[b].x-x;for(a=t;ap&&(p=c,u=a),n=(o*n+r.x)/++o;else{const k=a-1;if(!C(d)&&!C(u)){const S=Math.min(d,u),w=Math.max(d,u);S!==f&&S!==k&&m.push({...i[S],x:n}),w!==f&&w!==k&&m.push({...i[w],x:n})}a>0&&k!==f&&m.push(i[k]),m.push(r),h=_,o=0,g=p=c,d=u=f=a}}return m}function go(i){if(i._decimated){const t=i._data;delete i._decimated,delete i._data,Object.defineProperty(i,"data",{configurable:!0,enumerable:!0,writable:!0,value:t})}}function Js(i){i.data.datasets.forEach(t=>{go(t)})}function yc(i,t){const e=t.length;let s=0,n;const{iScale:o}=i,{min:a,max:r,minDefined:l,maxDefined:c}=o.getUserBounds();return l&&(s=Y(pt(t,o.axis,a).lo,0,e-1)),c?n=Y(pt(t,o.axis,r).hi+1,s,e)-s:n=e-s,{start:s,count:n}}var vc={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(i,t,e)=>{if(!e.enabled){Js(i);return}const s=i.width;i.data.datasets.forEach((n,o)=>{const{_data:a,indexAxis:r}=n,l=i.getDatasetMeta(o),c=a||n.data;if(se([r,i.options.indexAxis])==="y"||!l.controller.supportsDecimation)return;const h=i.scales[l.xAxisID];if(h.type!=="linear"&&h.type!=="time"||i.options.parsing)return;let{start:d,count:u}=yc(l,c);const f=e.threshold||4*s;if(u<=f){go(n);return}C(a)&&(n._data=c,delete n.data,Object.defineProperty(n,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(p){this._data=p}}));let g;switch(e.algorithm){case"lttb":g=xc(c,d,u,s,e);break;case"min-max":g=_c(c,d,u,s);break;default:throw new Error(`Unsupported decimation algorithm '${e.algorithm}'`)}n._decimated=g})},destroy(i){Js(i)}};function Mc(i,t,e){const s=i.segments,n=i.points,o=t.points,a=[];for(const r of s){let{start:l,end:c}=r;c=oi(l,c,n);const h=Ci(e,n[l],n[c],r.loop);if(!t.segments){a.push({source:r,target:h,start:n[l],end:n[c]});continue}const d=Kn(t,h);for(const u of d){const f=Ci(e,o[u.start],o[u.end],u.loop),g=Un(r,n,f);for(const p of g)a.push({source:p,target:u,start:{[e]:Qs(h,f,"start",Math.max)},end:{[e]:Qs(h,f,"end",Math.min)}})}}return a}function Ci(i,t,e,s){if(s)return;let n=t[i],o=e[i];return i==="angle"&&(n=q(n),o=q(o)),{property:i,start:n,end:o}}function kc(i,t){const{x:e=null,y:s=null}=i||{},n=t.points,o=[];return t.segments.forEach(({start:a,end:r})=>{r=oi(a,r,n);const l=n[a],c=n[r];s!==null?(o.push({x:l.x,y:s}),o.push({x:c.x,y:s})):e!==null&&(o.push({x:e,y:l.y}),o.push({x:e,y:c.y}))}),o}function oi(i,t,e){for(;t>i;t--){const s=e[t];if(!isNaN(s.x)&&!isNaN(s.y))break}return t}function Qs(i,t,e,s){return i&&t?s(i[e],t[e]):i?i[e]:t?t[e]:0}function po(i,t){let e=[],s=!1;return V(i)?(s=!0,e=i):e=kc(i,t),e.length?new yt({points:e,options:{tension:0},_loop:s,_fullLoop:s}):null}function tn(i){return i&&i.fill!==!1}function Sc(i,t,e){let n=i[t].fill;const o=[t];let a;if(!e)return n;for(;n!==!1&&o.indexOf(n)===-1;){if(!N(n))return n;if(a=i[n],!a)return!1;if(a.visible)return n;o.push(n),n=a.fill}return!1}function wc(i,t,e){const s=Ac(i);if(T(s))return isNaN(s.value)?!1:s;let n=parseFloat(s);return N(n)&&Math.floor(n)===n?Pc(s[0],t,n,e):["origin","start","end","stack","shape"].indexOf(s)>=0&&s}function Pc(i,t,e,s){return(i==="-"||i==="+")&&(e=t+e),e===t||e<0||e>=s?!1:e}function Dc(i,t){let e=null;return i==="start"?e=t.bottom:i==="end"?e=t.top:T(i)?e=t.getPixelForValue(i.value):t.getBasePixel&&(e=t.getBasePixel()),e}function Oc(i,t,e){let s;return i==="start"?s=e:i==="end"?s=t.options.reverse?t.min:t.max:T(i)?s=i.value:s=t.getBaseValue(),s}function Ac(i){const t=i.options,e=t.fill;let s=D(e&&e.target,e);return s===void 0&&(s=!!t.backgroundColor),s===!1||s===null?!1:s===!0?"origin":s}function Cc(i){const{scale:t,index:e,line:s}=i,n=[],o=s.segments,a=s.points,r=Tc(t,e);r.push(po({x:null,y:t.bottom},s));for(let l=0;l=0;--a){const r=n[a].$filler;r&&(r.line.updateControlPoints(o,r.axis),s&&r.fill&&_i(i.ctx,r,o))}},beforeDatasetsDraw(i,t,e){if(e.drawTime!=="beforeDatasetsDraw")return;const s=i.getSortedVisibleDatasetMetas();for(let n=s.length-1;n>=0;--n){const o=s[n].$filler;tn(o)&&_i(i.ctx,o,i.chartArea)}},beforeDatasetDraw(i,t,e){const s=t.meta.$filler;!tn(s)||e.drawTime!=="beforeDatasetDraw"||_i(i.ctx,s,i.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const on=(i,t)=>{let{boxHeight:e=t,boxWidth:s=t}=i;return i.usePointStyle&&(e=Math.min(e,t),s=i.pointStyleWidth||Math.min(s,t)),{boxWidth:s,boxHeight:e,itemHeight:Math.max(t,e)}},Hc=(i,t)=>i!==null&&t!==null&&i.datasetIndex===t.datasetIndex&&i.index===t.index;class an extends at{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,e,s){this.maxWidth=t,this.maxHeight=e,this._margins=s,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let e=F(t.generateLabels,[this.chart],this)||[];t.filter&&(e=e.filter(s=>t.filter(s,this.chart.data))),t.sort&&(e=e.sort((s,n)=>t.sort(s,n,this.chart.data))),this.options.reverse&&e.reverse(),this.legendItems=e}fit(){const{options:t,ctx:e}=this;if(!t.display){this.width=this.height=0;return}const s=t.labels,n=$(s.font),o=n.size,a=this._computeTitleHeight(),{boxWidth:r,itemHeight:l}=on(s,o);let c,h;e.font=n.string,this.isHorizontal()?(c=this.maxWidth,h=this._fitRows(a,o,r,l)+10):(h=this.maxHeight,c=this._fitCols(a,n,r,l)+10),this.width=Math.min(c,t.maxWidth||this.maxWidth),this.height=Math.min(h,t.maxHeight||this.maxHeight)}_fitRows(t,e,s,n){const{ctx:o,maxWidth:a,options:{labels:{padding:r}}}=this,l=this.legendHitBoxes=[],c=this.lineWidths=[0],h=n+r;let d=t;o.textAlign="left",o.textBaseline="middle";let u=-1,f=-h;return this.legendItems.forEach((g,p)=>{const m=s+e/2+o.measureText(g.text).width;(p===0||c[c.length-1]+m+2*r>a)&&(d+=h,c[c.length-(p>0?0:1)]=0,f+=h,u++),l[p]={left:0,top:f,row:u,width:m,height:n},c[c.length-1]+=m+r}),d}_fitCols(t,e,s,n){const{ctx:o,maxHeight:a,options:{labels:{padding:r}}}=this,l=this.legendHitBoxes=[],c=this.columnSizes=[],h=a-t;let d=r,u=0,f=0,g=0,p=0;return this.legendItems.forEach((m,b)=>{const{itemWidth:x,itemHeight:v}=jc(s,e,o,m,n);b>0&&f+v+2*r>h&&(d+=u+r,c.push({width:u,height:f}),g+=u+r,p++,u=f=0),l[b]={left:g,top:f,col:p,width:x,height:v},u=Math.max(u,x),f+=v+r}),d+=u,c.push({width:u,height:f}),d}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:e,options:{align:s,labels:{padding:n},rtl:o}}=this,a=Yt(o,this.left,this.width);if(this.isHorizontal()){let r=0,l=K(s,this.left+n,this.right-this.lineWidths[r]);for(const c of e)r!==c.row&&(r=c.row,l=K(s,this.left+n,this.right-this.lineWidths[r])),c.top+=this.top+t+n,c.left=a.leftForLtr(a.x(l),c.width),l+=c.width+n}else{let r=0,l=K(s,this.top+t+n,this.bottom-this.columnSizes[r].height);for(const c of e)c.col!==r&&(r=c.col,l=K(s,this.top+t+n,this.bottom-this.columnSizes[r].height)),c.top=l,c.left+=this.left+n,c.left=a.leftForLtr(a.x(c.left),c.width),l+=c.height+n}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const t=this.ctx;ei(t,this),this._draw(),ii(t)}}_draw(){const{options:t,columnSizes:e,lineWidths:s,ctx:n}=this,{align:o,labels:a}=t,r=W.color,l=Yt(t.rtl,this.left,this.width),c=$(a.font),{padding:h}=a,d=c.size,u=d/2;let f;this.drawTitle(),n.textAlign=l.textAlign("left"),n.textBaseline="middle",n.lineWidth=.5,n.font=c.string;const{boxWidth:g,boxHeight:p,itemHeight:m}=on(a,d),b=function(k,S,w){if(isNaN(g)||g<=0||isNaN(p)||p<0)return;n.save();const P=D(w.lineWidth,1);if(n.fillStyle=D(w.fillStyle,r),n.lineCap=D(w.lineCap,"butt"),n.lineDashOffset=D(w.lineDashOffset,0),n.lineJoin=D(w.lineJoin,"miter"),n.lineWidth=P,n.strokeStyle=D(w.strokeStyle,r),n.setLineDash(D(w.lineDash,[])),a.usePointStyle){const O={radius:p*Math.SQRT2/2,pointStyle:w.pointStyle,rotation:w.rotation,borderWidth:P},A=l.xPlus(k,g/2),L=S+u;Fn(n,O,A,L,a.pointStyleWidth&&g)}else{const O=S+Math.max((d-p)/2,0),A=l.leftForLtr(k,g),L=Ft(w.borderRadius);n.beginPath(),Object.values(L).some(X=>X!==0)?be(n,{x:A,y:O,w:g,h:p,radius:L}):n.rect(A,O,g,p),n.fill(),P!==0&&n.stroke()}n.restore()},x=function(k,S,w){Vt(n,w.text,k,S+m/2,c,{strikethrough:w.hidden,textAlign:l.textAlign(w.textAlign)})},v=this.isHorizontal(),y=this._computeTitleHeight();v?f={x:K(o,this.left+h,this.right-s[0]),y:this.top+h+y,line:0}:f={x:this.left+h,y:K(o,this.top+y+h,this.bottom-e[0].height),line:0},$n(this.ctx,t.textDirection);const _=m+h;this.legendItems.forEach((k,S)=>{n.strokeStyle=k.fontColor,n.fillStyle=k.fontColor;const w=n.measureText(k.text).width,P=l.textAlign(k.textAlign||(k.textAlign=a.textAlign)),O=g+u+w;let A=f.x,L=f.y;l.setWidth(this.width),v?S>0&&A+O+h>this.right&&(L=f.y+=_,f.line++,A=f.x=K(o,this.left+h,this.right-s[f.line])):S>0&&L+_>this.bottom&&(A=f.x=A+e[f.line].width+h,f.line++,L=f.y=K(o,this.top+y+h,this.bottom-e[f.line].height));const X=l.x(A);if(b(X,L,k),A=la(P,A+g+u,v?A+O:this.right,t.rtl),x(l.x(A),L,k),v)f.x+=O+h;else if(typeof k.text!="string"){const tt=c.lineHeight;f.y+=bo(k,tt)+h}else f.y+=_}),Yn(this.ctx,t.textDirection)}drawTitle(){const t=this.options,e=t.title,s=$(e.font),n=Z(e.padding);if(!e.display)return;const o=Yt(t.rtl,this.left,this.width),a=this.ctx,r=e.position,l=s.size/2,c=n.top+l;let h,d=this.left,u=this.width;if(this.isHorizontal())u=Math.max(...this.lineWidths),h=this.top+c,d=K(t.align,d,this.right-u);else{const g=this.columnSizes.reduce((p,m)=>Math.max(p,m.height),0);h=c+K(t.align,this.top,this.bottom-g-t.labels.padding-this._computeTitleHeight())}const f=K(r,d,d+u);a.textAlign=o.textAlign(ji(r)),a.textBaseline="middle",a.strokeStyle=e.color,a.fillStyle=e.color,a.font=s.string,Vt(a,e.text,f,h,s)}_computeTitleHeight(){const t=this.options.title,e=$(t.font),s=Z(t.padding);return t.display?e.lineHeight+s.height:0}_getLegendItemAt(t,e){let s,n,o;if(gt(t,this.left,this.right)&>(e,this.top,this.bottom)){for(o=this.legendHitBoxes,s=0;so.length>a.length?o:a)),t+e.size/2+s.measureText(n).width}function Yc(i,t,e){let s=i;return typeof t.text!="string"&&(s=bo(t,e)),s}function bo(i,t){const e=i.text?i.text.length:0;return t*e}function Xc(i,t){return!!((i==="mousemove"||i==="mouseout")&&(t.onHover||t.onLeave)||t.onClick&&(i==="click"||i==="mouseup"))}var Uc={id:"legend",_element:an,start(i,t,e){const s=i.legend=new an({ctx:i.ctx,options:e,chart:i});G.configure(i,s,e),G.addBox(i,s)},stop(i){G.removeBox(i,i.legend),delete i.legend},beforeUpdate(i,t,e){const s=i.legend;G.configure(i,s,e),s.options=e},afterUpdate(i){const t=i.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(i,t){t.replay||i.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(i,t,e){const s=t.datasetIndex,n=e.chart;n.isDatasetVisible(s)?(n.hide(s),t.hidden=!0):(n.show(s),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:i=>i.chart.options.color,boxWidth:40,padding:10,generateLabels(i){const t=i.data.datasets,{labels:{usePointStyle:e,pointStyle:s,textAlign:n,color:o,useBorderRadius:a,borderRadius:r}}=i.legend.options;return i._getSortedDatasetMetas().map(l=>{const c=l.controller.getStyle(e?0:void 0),h=Z(c.borderWidth);return{text:t[l.index].label,fillStyle:c.backgroundColor,fontColor:o,hidden:!l.visible,lineCap:c.borderCapStyle,lineDash:c.borderDash,lineDashOffset:c.borderDashOffset,lineJoin:c.borderJoinStyle,lineWidth:(h.width+h.height)/4,strokeStyle:c.borderColor,pointStyle:s||c.pointStyle,rotation:c.rotation,textAlign:n||c.textAlign,borderRadius:a&&(r||c.borderRadius),datasetIndex:l.index}},this)}},title:{color:i=>i.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:i=>!i.startsWith("on"),labels:{_scriptable:i=>!["generateLabels","filter","sort"].includes(i)}}};class Ji extends at{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,e){const s=this.options;if(this.left=0,this.top=0,!s.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=t,this.height=this.bottom=e;const n=V(s.text)?s.text.length:1;this._padding=Z(s.padding);const o=n*$(s.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=o:this.width=o}isHorizontal(){const t=this.options.position;return t==="top"||t==="bottom"}_drawArgs(t){const{top:e,left:s,bottom:n,right:o,options:a}=this,r=a.align;let l=0,c,h,d;return this.isHorizontal()?(h=K(r,s,o),d=e+t,c=o-s):(a.position==="left"?(h=s+t,d=K(r,n,e),l=R*-.5):(h=o-t,d=K(r,e,n),l=R*.5),c=n-e),{titleX:h,titleY:d,maxWidth:c,rotation:l}}draw(){const t=this.ctx,e=this.options;if(!e.display)return;const s=$(e.font),o=s.lineHeight/2+this._padding.top,{titleX:a,titleY:r,maxWidth:l,rotation:c}=this._drawArgs(o);Vt(t,e.text,0,0,s,{color:e.color,maxWidth:l,rotation:c,textAlign:ji(e.align),textBaseline:"middle",translation:[a,r]})}}function Kc(i,t){const e=new Ji({ctx:i.ctx,options:t,chart:i});G.configure(i,e,t),G.addBox(i,e),i.titleBlock=e}var qc={id:"title",_element:Ji,start(i,t,e){Kc(i,e)},stop(i){const t=i.titleBlock;G.removeBox(i,t),delete i.titleBlock},beforeUpdate(i,t,e){const s=i.titleBlock;G.configure(i,s,e),s.options=e},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const Ee=new WeakMap;var Gc={id:"subtitle",start(i,t,e){const s=new Ji({ctx:i.ctx,options:e,chart:i});G.configure(i,s,e),G.addBox(i,s),Ee.set(i,s)},stop(i){G.removeBox(i,Ee.get(i)),Ee.delete(i)},beforeUpdate(i,t,e){const s=Ee.get(i);G.configure(i,s,e),s.options=e},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const ae={average(i){if(!i.length)return!1;let t,e,s=new Set,n=0,o=0;for(t=0,e=i.length;tr+l)/s.size,y:n/o}},nearest(i,t){if(!i.length)return!1;let e=t.x,s=t.y,n=Number.POSITIVE_INFINITY,o,a,r;for(o=0,a=i.length;o-1?i.split(` +`):i}function Zc(i,t){const{element:e,datasetIndex:s,index:n}=t,o=i.getDatasetMeta(s).controller,{label:a,value:r}=o.getLabelAndValue(n);return{chart:i,label:a,parsed:o.getParsed(n),raw:i.data.datasets[s].data[n],formattedValue:r,dataset:o.getDataset(),dataIndex:n,datasetIndex:s,element:e}}function rn(i,t){const e=i.chart.ctx,{body:s,footer:n,title:o}=i,{boxWidth:a,boxHeight:r}=t,l=$(t.bodyFont),c=$(t.titleFont),h=$(t.footerFont),d=o.length,u=n.length,f=s.length,g=Z(t.padding);let p=g.height,m=0,b=s.reduce((y,_)=>y+_.before.length+_.lines.length+_.after.length,0);if(b+=i.beforeBody.length+i.afterBody.length,d&&(p+=d*c.lineHeight+(d-1)*t.titleSpacing+t.titleMarginBottom),b){const y=t.displayColors?Math.max(r,l.lineHeight):l.lineHeight;p+=f*y+(b-f)*l.lineHeight+(b-1)*t.bodySpacing}u&&(p+=t.footerMarginTop+u*h.lineHeight+(u-1)*t.footerSpacing);let x=0;const v=function(y){m=Math.max(m,e.measureText(y).width+x)};return e.save(),e.font=c.string,E(i.title,v),e.font=l.string,E(i.beforeBody.concat(i.afterBody),v),x=t.displayColors?a+2+t.boxPadding:0,E(s,y=>{E(y.before,v),E(y.lines,v),E(y.after,v)}),x=0,e.font=h.string,E(i.footer,v),e.restore(),m+=g.width,{width:m,height:p}}function Jc(i,t){const{y:e,height:s}=t;return ei.height-s/2?"bottom":"center"}function Qc(i,t,e,s){const{x:n,width:o}=s,a=e.caretSize+e.caretPadding;if(i==="left"&&n+o+a>t.width||i==="right"&&n-o-a<0)return!0}function th(i,t,e,s){const{x:n,width:o}=e,{width:a,chartArea:{left:r,right:l}}=i;let c="center";return s==="center"?c=n<=(r+l)/2?"left":"right":n<=o/2?c="left":n>=a-o/2&&(c="right"),Qc(c,i,t,e)&&(c="center"),c}function ln(i,t,e){const s=e.yAlign||t.yAlign||Jc(i,e);return{xAlign:e.xAlign||t.xAlign||th(i,t,e,s),yAlign:s}}function eh(i,t){let{x:e,width:s}=i;return t==="right"?e-=s:t==="center"&&(e-=s/2),e}function ih(i,t,e){let{y:s,height:n}=i;return t==="top"?s+=e:t==="bottom"?s-=n+e:s-=n/2,s}function cn(i,t,e,s){const{caretSize:n,caretPadding:o,cornerRadius:a}=i,{xAlign:r,yAlign:l}=e,c=n+o,{topLeft:h,topRight:d,bottomLeft:u,bottomRight:f}=Ft(a);let g=eh(t,r);const p=ih(t,l,c);return l==="center"?r==="left"?g+=c:r==="right"&&(g-=c):r==="left"?g-=Math.max(h,u)+n:r==="right"&&(g+=Math.max(d,f)+n),{x:Y(g,0,s.width-t.width),y:Y(p,0,s.height-t.height)}}function Ie(i,t,e){const s=Z(e.padding);return t==="center"?i.x+i.width/2:t==="right"?i.x+i.width-s.right:i.x+s.left}function hn(i){return rt([],ut(i))}function sh(i,t,e){return wt(i,{tooltip:t,tooltipItems:e,type:"tooltip"})}function dn(i,t){const e=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return e?i.override(e):i}const xo={beforeTitle:ht,title(i){if(i.length>0){const t=i[0],e=t.chart.data.labels,s=e?e.length:0;if(this&&this.options&&this.options.mode==="dataset")return t.dataset.label||"";if(t.label)return t.label;if(s>0&&t.dataIndex"u"?xo[t].call(e,s):n}class Ti extends at{constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const e=this.chart,s=this.options.setContext(this.getContext()),n=s.enabled&&e.options.animation&&s.animations,o=new Gn(this.chart,n);return n._cacheable&&(this._cachedAnimations=Object.freeze(o)),o}getContext(){return this.$context||(this.$context=sh(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,e){const{callbacks:s}=e,n=J(s,"beforeTitle",this,t),o=J(s,"title",this,t),a=J(s,"afterTitle",this,t);let r=[];return r=rt(r,ut(n)),r=rt(r,ut(o)),r=rt(r,ut(a)),r}getBeforeBody(t,e){return hn(J(e.callbacks,"beforeBody",this,t))}getBody(t,e){const{callbacks:s}=e,n=[];return E(t,o=>{const a={before:[],lines:[],after:[]},r=dn(s,o);rt(a.before,ut(J(r,"beforeLabel",this,o))),rt(a.lines,J(r,"label",this,o)),rt(a.after,ut(J(r,"afterLabel",this,o))),n.push(a)}),n}getAfterBody(t,e){return hn(J(e.callbacks,"afterBody",this,t))}getFooter(t,e){const{callbacks:s}=e,n=J(s,"beforeFooter",this,t),o=J(s,"footer",this,t),a=J(s,"afterFooter",this,t);let r=[];return r=rt(r,ut(n)),r=rt(r,ut(o)),r=rt(r,ut(a)),r}_createItems(t){const e=this._active,s=this.chart.data,n=[],o=[],a=[];let r=[],l,c;for(l=0,c=e.length;lt.filter(h,d,u,s))),t.itemSort&&(r=r.sort((h,d)=>t.itemSort(h,d,s))),E(r,h=>{const d=dn(t.callbacks,h);n.push(J(d,"labelColor",this,h)),o.push(J(d,"labelPointStyle",this,h)),a.push(J(d,"labelTextColor",this,h))}),this.labelColors=n,this.labelPointStyles=o,this.labelTextColors=a,this.dataPoints=r,r}update(t,e){const s=this.options.setContext(this.getContext()),n=this._active;let o,a=[];if(!n.length)this.opacity!==0&&(o={opacity:0});else{const r=ae[s.position].call(this,n,this._eventPosition);a=this._createItems(s),this.title=this.getTitle(a,s),this.beforeBody=this.getBeforeBody(a,s),this.body=this.getBody(a,s),this.afterBody=this.getAfterBody(a,s),this.footer=this.getFooter(a,s);const l=this._size=rn(this,s),c=Object.assign({},r,l),h=ln(this.chart,s,c),d=cn(s,c,h,this.chart);this.xAlign=h.xAlign,this.yAlign=h.yAlign,o={opacity:1,x:d.x,y:d.y,width:l.width,height:l.height,caretX:r.x,caretY:r.y}}this._tooltipItems=a,this.$context=void 0,o&&this._resolveAnimations().update(this,o),t&&s.external&&s.external.call(this,{chart:this.chart,tooltip:this,replay:e})}drawCaret(t,e,s,n){const o=this.getCaretPosition(t,s,n);e.lineTo(o.x1,o.y1),e.lineTo(o.x2,o.y2),e.lineTo(o.x3,o.y3)}getCaretPosition(t,e,s){const{xAlign:n,yAlign:o}=this,{caretSize:a,cornerRadius:r}=s,{topLeft:l,topRight:c,bottomLeft:h,bottomRight:d}=Ft(r),{x:u,y:f}=t,{width:g,height:p}=e;let m,b,x,v,y,_;return o==="center"?(y=f+p/2,n==="left"?(m=u,b=m-a,v=y+a,_=y-a):(m=u+g,b=m+a,v=y-a,_=y+a),x=m):(n==="left"?b=u+Math.max(l,h)+a:n==="right"?b=u+g-Math.max(c,d)-a:b=this.caretX,o==="top"?(v=f,y=v-a,m=b-a,x=b+a):(v=f+p,y=v+a,m=b+a,x=b-a),_=v),{x1:m,x2:b,x3:x,y1:v,y2:y,y3:_}}drawTitle(t,e,s){const n=this.title,o=n.length;let a,r,l;if(o){const c=Yt(s.rtl,this.x,this.width);for(t.x=Ie(this,s.titleAlign,s),e.textAlign=c.textAlign(s.titleAlign),e.textBaseline="middle",a=$(s.titleFont),r=s.titleSpacing,e.fillStyle=s.titleColor,e.font=a.string,l=0;lx!==0)?(t.beginPath(),t.fillStyle=o.multiKeyBackground,be(t,{x:p,y:g,w:c,h:l,radius:b}),t.fill(),t.stroke(),t.fillStyle=a.backgroundColor,t.beginPath(),be(t,{x:m,y:g+1,w:c-2,h:l-2,radius:b}),t.fill()):(t.fillStyle=o.multiKeyBackground,t.fillRect(p,g,c,l),t.strokeRect(p,g,c,l),t.fillStyle=a.backgroundColor,t.fillRect(m,g+1,c-2,l-2))}t.fillStyle=this.labelTextColors[s]}drawBody(t,e,s){const{body:n}=this,{bodySpacing:o,bodyAlign:a,displayColors:r,boxHeight:l,boxWidth:c,boxPadding:h}=s,d=$(s.bodyFont);let u=d.lineHeight,f=0;const g=Yt(s.rtl,this.x,this.width),p=function(w){e.fillText(w,g.x(t.x+f),t.y+u/2),t.y+=u+o},m=g.textAlign(a);let b,x,v,y,_,k,S;for(e.textAlign=a,e.textBaseline="middle",e.font=d.string,t.x=Ie(this,m,s),e.fillStyle=s.bodyColor,E(this.beforeBody,p),f=r&&m!=="right"?a==="center"?c/2+h:c+2+h:0,y=0,k=n.length;y0&&e.stroke()}_updateAnimationTarget(t){const e=this.chart,s=this.$animations,n=s&&s.x,o=s&&s.y;if(n||o){const a=ae[t.position].call(this,this._active,this._eventPosition);if(!a)return;const r=this._size=rn(this,t),l=Object.assign({},a,this._size),c=ln(e,t,l),h=cn(t,l,c,e);(n._to!==h.x||o._to!==h.y)&&(this.xAlign=c.xAlign,this.yAlign=c.yAlign,this.width=r.width,this.height=r.height,this.caretX=a.x,this.caretY=a.y,this._resolveAnimations().update(this,h))}}_willRender(){return!!this.opacity}draw(t){const e=this.options.setContext(this.getContext());let s=this.opacity;if(!s)return;this._updateAnimationTarget(e);const n={width:this.width,height:this.height},o={x:this.x,y:this.y};s=Math.abs(s)<.001?0:s;const a=Z(e.padding),r=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;e.enabled&&r&&(t.save(),t.globalAlpha=s,this.drawBackground(o,t,n,e),$n(t,e.textDirection),o.y+=a.top,this.drawTitle(o,t,e),this.drawBody(o,t,e),this.drawFooter(o,t,e),Yn(t,e.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,e){const s=this._active,n=t.map(({datasetIndex:r,index:l})=>{const c=this.chart.getDatasetMeta(r);if(!c)throw new Error("Cannot find a dataset at index "+r);return{datasetIndex:r,element:c.data[l],index:l}}),o=!Xe(s,n),a=this._positionChanged(n,e);(o||a)&&(this._active=n,this._eventPosition=e,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,e,s=!0){if(e&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const n=this.options,o=this._active||[],a=this._getActiveElements(t,o,e,s),r=this._positionChanged(a,t),l=e||!Xe(a,o)||r;return l&&(this._active=a,(n.enabled||n.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,e))),l}_getActiveElements(t,e,s,n){const o=this.options;if(t.type==="mouseout")return[];if(!n)return e.filter(r=>this.chart.data.datasets[r.datasetIndex]&&this.chart.getDatasetMeta(r.datasetIndex).controller.getParsed(r.index)!==void 0);const a=this.chart.getElementsAtEventForMode(t,o.mode,o,s);return o.reverse&&a.reverse(),a}_positionChanged(t,e){const{caretX:s,caretY:n,options:o}=this,a=ae[o.position].call(this,t,e);return a!==!1&&(s!==a.x||n!==a.y)}}M(Ti,"positioners",ae);var nh={id:"tooltip",_element:Ti,positioners:ae,afterInit(i,t,e){e&&(i.tooltip=new Ti({chart:i,options:e}))},beforeUpdate(i,t,e){i.tooltip&&i.tooltip.initialize(e)},reset(i,t,e){i.tooltip&&i.tooltip.initialize(e)},afterDraw(i){const t=i.tooltip;if(t&&t._willRender()){const e={tooltip:t};if(i.notifyPlugins("beforeTooltipDraw",{...e,cancelable:!0})===!1)return;t.draw(i.ctx),i.notifyPlugins("afterTooltipDraw",e)}},afterEvent(i,t){if(i.tooltip){const e=t.replay;i.tooltip.handleEvent(t.event,e,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(i,t)=>t.bodyFont.size,boxWidth:(i,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:xo},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:i=>i!=="filter"&&i!=="itemSort"&&i!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]},oh=Object.freeze({__proto__:null,Colors:bc,Decimation:vc,Filler:Nc,Legend:Uc,SubTitle:Gc,Title:qc,Tooltip:nh});const ah=(i,t,e,s)=>(typeof t=="string"?(e=i.push(t)-1,s.unshift({index:e,label:t})):isNaN(t)&&(e=null),e);function rh(i,t,e,s){const n=i.indexOf(t);if(n===-1)return ah(i,t,e,s);const o=i.lastIndexOf(t);return n!==o?e:n}const lh=(i,t)=>i===null?null:Y(Math.round(i),0,t);function un(i){const t=this.getLabels();return i>=0&&ie.length-1?null:this.getPixelForValue(e[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}M(Li,"id","category"),M(Li,"defaults",{ticks:{callback:un}});function ch(i,t){const e=[],{bounds:n,step:o,min:a,max:r,precision:l,count:c,maxTicks:h,maxDigits:d,includeBounds:u}=i,f=o||1,g=h-1,{min:p,max:m}=t,b=!C(a),x=!C(r),v=!C(c),y=(m-p)/(d+1);let _=as((m-p)/g/f)*f,k,S,w,P;if(_<1e-14&&!b&&!x)return[{value:p},{value:m}];P=Math.ceil(m/_)-Math.floor(p/_),P>g&&(_=as(P*_/g/f)*f),C(l)||(k=Math.pow(10,l),_=Math.ceil(_*k)/k),n==="ticks"?(S=Math.floor(p/_)*_,w=Math.ceil(m/_)*_):(S=p,w=m),b&&x&&o&&ea((r-a)/o,_/1e3)?(P=Math.round(Math.min((r-a)/_,h)),_=(r-a)/P,S=a,w=r):v?(S=b?a:S,w=x?r:w,P=c-1,_=(w-S)/P):(P=(w-S)/_,ce(P,Math.round(P),_/1e3)?P=Math.round(P):P=Math.ceil(P));const O=Math.max(rs(_),rs(S));k=Math.pow(10,C(l)?O:l),S=Math.round(S*k)/k,w=Math.round(w*k)/k;let A=0;for(b&&(u&&S!==a?(e.push({value:a}),Sr)break;e.push({value:L})}return x&&u&&w!==r?e.length&&ce(e[e.length-1].value,r,fn(r,y,i))?e[e.length-1].value=r:e.push({value:r}):(!x||w===r)&&e.push({value:w}),e}function fn(i,t,{horizontal:e,minRotation:s}){const n=nt(s),o=(e?Math.sin(n):Math.cos(n))||.001,a=.75*t*(""+i).length;return Math.min(t/o,a)}class Qe extends Wt{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,e){return C(t)||(typeof t=="number"||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:e,maxDefined:s}=this.getUserBounds();let{min:n,max:o}=this;const a=l=>n=e?n:l,r=l=>o=s?o:l;if(t){const l=ct(n),c=ct(o);l<0&&c<0?r(0):l>0&&c>0&&a(0)}if(n===o){let l=o===0?1:Math.abs(o*.05);r(o+l),t||a(n-l)}this.min=n,this.max=o}getTickLimit(){const t=this.options.ticks;let{maxTicksLimit:e,stepSize:s}=t,n;return s?(n=Math.ceil(this.max/s)-Math.floor(this.min/s)+1,n>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${s} would result generating up to ${n} ticks. Limiting to 1000.`),n=1e3)):(n=this.computeTickLimit(),e=e||11),e&&(n=Math.min(e,n)),n}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,e=t.ticks;let s=this.getTickLimit();s=Math.max(2,s);const n={maxTicks:s,bounds:t.bounds,min:t.min,max:t.max,precision:e.precision,step:e.stepSize,count:e.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:e.minRotation||0,includeBounds:e.includeBounds!==!1},o=this._range||this,a=ch(n,o);return t.bounds==="ticks"&&Dn(a,this,"value"),t.reverse?(a.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),a}configure(){const t=this.ticks;let e=this.min,s=this.max;if(super.configure(),this.options.offset&&t.length){const n=(s-e)/Math.max(t.length-1,1)/2;e-=n,s+=n}this._startValue=e,this._endValue=s,this._valueRange=s-e}getLabelForValue(t){return Me(t,this.chart.options.locale,this.options.ticks.format)}}class Ri extends Qe{determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=N(t)?t:0,this.max=N(e)?e:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),e=t?this.width:this.height,s=nt(this.options.ticks.minRotation),n=(t?Math.sin(s):Math.cos(s))||.001,o=this._resolveTickFontOptions(0);return Math.ceil(e/Math.min(40,o.lineHeight/n))}getPixelForValue(t){return t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}M(Ri,"id","linear"),M(Ri,"defaults",{ticks:{callback:ti.formatters.numeric}});const _e=i=>Math.floor(xt(i)),Tt=(i,t)=>Math.pow(10,_e(i)+t);function gn(i){return i/Math.pow(10,_e(i))===1}function pn(i,t,e){const s=Math.pow(10,e),n=Math.floor(i/s);return Math.ceil(t/s)-n}function hh(i,t){const e=t-i;let s=_e(e);for(;pn(i,t,s)>10;)s++;for(;pn(i,t,s)<10;)s--;return Math.min(s,_e(i))}function dh(i,{min:t,max:e}){t=et(i.min,t);const s=[],n=_e(t);let o=hh(t,e),a=o<0?Math.pow(10,Math.abs(o)):1;const r=Math.pow(10,o),l=n>o?Math.pow(10,n):0,c=Math.round((t-l)*a)/a,h=Math.floor((t-l)/r/10)*r*10;let d=Math.floor((c-h)/Math.pow(10,o)),u=et(i.min,Math.round((l+h+d*Math.pow(10,o))*a)/a);for(;u=10?d=d<15?15:20:d++,d>=20&&(o++,d=2,a=o>=0?1:a),u=Math.round((l+h+d*Math.pow(10,o))*a)/a;const f=et(i.max,u);return s.push({value:f,major:gn(f),significand:d}),s}class Ei extends Wt{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,e){const s=Qe.prototype.parse.apply(this,[t,e]);if(s===0){this._zero=!0;return}return N(s)&&s>0?s:null}determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=N(t)?Math.max(0,t):null,this.max=N(e)?Math.max(0,e):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!N(this._userMin)&&(this.min=t===Tt(this.min,0)?Tt(this.min,-1):Tt(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let s=this.min,n=this.max;const o=r=>s=t?s:r,a=r=>n=e?n:r;s===n&&(s<=0?(o(1),a(10)):(o(Tt(s,-1)),a(Tt(n,1)))),s<=0&&o(Tt(n,-1)),n<=0&&a(Tt(s,1)),this.min=s,this.max=n}buildTicks(){const t=this.options,e={min:this._userMin,max:this._userMax},s=dh(e,this);return t.bounds==="ticks"&&Dn(s,this,"value"),t.reverse?(s.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),s}getLabelForValue(t){return t===void 0?"0":Me(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=xt(t),this._valueRange=xt(this.max)-xt(t)}getPixelForValue(t){return(t===void 0||t===0)&&(t=this.min),t===null||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(xt(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const e=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+e*this._valueRange)}}M(Ei,"id","logarithmic"),M(Ei,"defaults",{ticks:{callback:ti.formatters.logarithmic,major:{enabled:!0}}});function Ii(i){const t=i.ticks;if(t.display&&i.display){const e=Z(t.backdropPadding);return D(t.font&&t.font.size,W.font.size)+e.height}return 0}function uh(i,t,e){return e=V(e)?e:[e],{w:xa(i,t.string,e),h:e.length*t.lineHeight}}function mn(i,t,e,s,n){return i===s||i===n?{start:t-e/2,end:t+e/2}:in?{start:t-e,end:t}:{start:t,end:t+e}}function fh(i){const t={l:i.left+i._padding.left,r:i.right-i._padding.right,t:i.top+i._padding.top,b:i.bottom-i._padding.bottom},e=Object.assign({},t),s=[],n=[],o=i._pointLabels.length,a=i.options.pointLabels,r=a.centerPointLabels?R/o:0;for(let l=0;lt.r&&(r=(s.end-t.r)/o,i.r=Math.max(i.r,t.r+r)),n.startt.b&&(l=(n.end-t.b)/a,i.b=Math.max(i.b,t.b+l))}function ph(i,t,e){const s=i.drawingArea,{extra:n,additionalAngle:o,padding:a,size:r}=e,l=i.getPointPosition(t,s+n+a,o),c=Math.round(Ni(q(l.angle+j))),h=yh(l.y,r.h,c),d=xh(c),u=_h(l.x,r.w,d);return{visible:!0,x:l.x,y:h,textAlign:d,left:u,top:h,right:u+r.w,bottom:h+r.h}}function mh(i,t){if(!t)return!0;const{left:e,top:s,right:n,bottom:o}=i;return!(mt({x:e,y:s},t)||mt({x:e,y:o},t)||mt({x:n,y:s},t)||mt({x:n,y:o},t))}function bh(i,t,e){const s=[],n=i._pointLabels.length,o=i.options,{centerPointLabels:a,display:r}=o.pointLabels,l={extra:Ii(o)/2,additionalAngle:a?R/n:0};let c;for(let h=0;h270||e<90)&&(i-=t),i}function vh(i,t,e){const{left:s,top:n,right:o,bottom:a}=e,{backdropColor:r}=t;if(!C(r)){const l=Ft(t.borderRadius),c=Z(t.backdropPadding);i.fillStyle=r;const h=s-c.left,d=n-c.top,u=o-s+c.width,f=a-n+c.height;Object.values(l).some(g=>g!==0)?(i.beginPath(),be(i,{x:h,y:d,w:u,h:f,radius:l}),i.fill()):i.fillRect(h,d,u,f)}}function Mh(i,t){const{ctx:e,options:{pointLabels:s}}=i;for(let n=t-1;n>=0;n--){const o=i._pointLabelItems[n];if(!o.visible)continue;const a=s.setContext(i.getPointLabelContext(n));vh(e,a,o);const r=$(a.font),{x:l,y:c,textAlign:h}=o;Vt(e,i._pointLabels[n],l,c+r.lineHeight/2,r,{color:a.color,textAlign:h,textBaseline:"middle"})}}function _o(i,t,e,s){const{ctx:n}=i;if(e)n.arc(i.xCenter,i.yCenter,t,0,z);else{let o=i.getPointPosition(0,t);n.moveTo(o.x,o.y);for(let a=1;a{const n=F(this.options.pointLabels.callback,[e,s],this);return n||n===0?n:""}).filter((e,s)=>this.chart.getDataVisibility(s))}fit(){const t=this.options;t.display&&t.pointLabels.display?fh(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,e,s,n){this.xCenter+=Math.floor((t-e)/2),this.yCenter+=Math.floor((s-n)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,e,s,n))}getIndexAngle(t){const e=z/(this._pointLabels.length||1),s=this.options.startAngle||0;return q(t*e+nt(s))}getDistanceFromCenterForValue(t){if(C(t))return NaN;const e=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*e:(t-this.min)*e}getValueForDistanceFromCenter(t){if(C(t))return NaN;const e=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-e:this.min+e}getPointLabelContext(t){const e=this._pointLabels||[];if(t>=0&&t{if(d!==0||d===0&&this.min<0){l=this.getDistanceFromCenterForValue(h.value);const u=this.getContext(d),f=n.setContext(u),g=o.setContext(u);kh(this,f,l,a,g)}}),s.display){for(t.save(),r=a-1;r>=0;r--){const h=s.setContext(this.getPointLabelContext(r)),{color:d,lineWidth:u}=h;!u||!d||(t.lineWidth=u,t.strokeStyle=d,t.setLineDash(h.borderDash),t.lineDashOffset=h.borderDashOffset,l=this.getDistanceFromCenterForValue(e.reverse?this.min:this.max),c=this.getPointPosition(r,l),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(c.x,c.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const t=this.ctx,e=this.options,s=e.ticks;if(!s.display)return;const n=this.getIndexAngle(0);let o,a;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(n),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach((r,l)=>{if(l===0&&this.min>=0&&!e.reverse)return;const c=s.setContext(this.getContext(l)),h=$(c.font);if(o=this.getDistanceFromCenterForValue(this.ticks[l].value),c.showLabelBackdrop){t.font=h.string,a=t.measureText(r.label).width,t.fillStyle=c.backdropColor;const d=Z(c.backdropPadding);t.fillRect(-a/2-d.left,-o-h.size/2-d.top,a+d.width,h.size+d.height)}Vt(t,r.label,0,-o,h,{color:c.color,strokeColor:c.textStrokeColor,strokeWidth:c.textStrokeWidth})}),t.restore()}drawTitle(){}}M(re,"id","radialLinear"),M(re,"defaults",{display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:ti.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(t){return t},padding:5,centerPointLabels:!1}}),M(re,"defaultRoutes",{"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"}),M(re,"descriptors",{angleLines:{_fallback:"grid"}});const ai={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},Q=Object.keys(ai);function bn(i,t){return i-t}function xn(i,t){if(C(t))return null;const e=i._adapter,{parser:s,round:n,isoWeekday:o}=i._parseOpts;let a=t;return typeof s=="function"&&(a=s(a)),N(a)||(a=typeof s=="string"?e.parse(a,s):e.parse(a)),a===null?null:(n&&(a=n==="week"&&(Xt(o)||o===!0)?e.startOf(a,"isoWeek",o):e.startOf(a,n)),+a)}function _n(i,t,e,s){const n=Q.length;for(let o=Q.indexOf(i);o=Q.indexOf(e);o--){const a=Q[o];if(ai[a].common&&i._adapter.diff(n,s,a)>=t-1)return a}return Q[e?Q.indexOf(e):0]}function Ph(i){for(let t=Q.indexOf(i)+1,e=Q.length;t=t?e[s]:e[n];i[o]=!0}}function Dh(i,t,e,s){const n=i._adapter,o=+n.startOf(t[0].value,s),a=t[t.length-1].value;let r,l;for(r=o;r<=a;r=+n.add(r,1,s))l=e[r],l>=0&&(t[l].major=!0);return t}function vn(i,t,e){const s=[],n={},o=t.length;let a,r;for(a=0;a+t.value))}initOffsets(t=[]){let e=0,s=0,n,o;this.options.offset&&t.length&&(n=this.getDecimalForValue(t[0]),t.length===1?e=1-n:e=(this.getDecimalForValue(t[1])-n)/2,o=this.getDecimalForValue(t[t.length-1]),t.length===1?s=o:s=(o-this.getDecimalForValue(t[t.length-2]))/2);const a=t.length<3?.5:.25;e=Y(e,0,a),s=Y(s,0,a),this._offsets={start:e,end:s,factor:1/(e+1+s)}}_generate(){const t=this._adapter,e=this.min,s=this.max,n=this.options,o=n.time,a=o.unit||_n(o.minUnit,e,s,this._getLabelCapacity(e)),r=D(n.ticks.stepSize,1),l=a==="week"?o.isoWeekday:!1,c=Xt(l)||l===!0,h={};let d=e,u,f;if(c&&(d=+t.startOf(d,"isoWeek",l)),d=+t.startOf(d,c?"day":a),t.diff(s,e,a)>1e5*r)throw new Error(e+" and "+s+" are too far apart with stepSize of "+r+" "+a);const g=n.ticks.source==="data"&&this.getDataTimestamps();for(u=d,f=0;u+p)}getLabelForValue(t){const e=this._adapter,s=this.options.time;return s.tooltipFormat?e.format(t,s.tooltipFormat):e.format(t,s.displayFormats.datetime)}format(t,e){const n=this.options.time.displayFormats,o=this._unit,a=e||n[o];return this._adapter.format(t,a)}_tickFormatFunction(t,e,s,n){const o=this.options,a=o.ticks.callback;if(a)return F(a,[t,e,s],this);const r=o.time.displayFormats,l=this._unit,c=this._majorUnit,h=l&&r[l],d=c&&r[c],u=s[e],f=c&&d&&u&&u.major;return this._adapter.format(t,n||(f?d:h))}generateTickLabels(t){let e,s,n;for(e=0,s=t.length;e0?r:1}getDataTimestamps(){let t=this._cache.data||[],e,s;if(t.length)return t;const n=this.getMatchingVisibleMetas();if(this._normalized&&n.length)return this._cache.data=n[0].controller.getAllParsedValues(this);for(e=0,s=n.length;e=i[s].pos&&t<=i[n].pos&&({lo:s,hi:n}=pt(i,"pos",t)),{pos:o,time:r}=i[s],{pos:a,time:l}=i[n]):(t>=i[s].time&&t<=i[n].time&&({lo:s,hi:n}=pt(i,"time",t)),{time:o,pos:r}=i[s],{time:a,pos:l}=i[n]);const c=a-o;return c?r+(l-r)*(t-o)/c:r}class Fi extends ye{constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),e=this._table=this.buildLookupTable(t);this._minPos=Fe(e,this.min),this._tableRange=Fe(e,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:e,max:s}=this,n=[],o=[];let a,r,l,c,h;for(a=0,r=t.length;a=e&&c<=s&&n.push(c);if(n.length<2)return[{time:e,pos:0},{time:s,pos:1}];for(a=0,r=n.length;an-o)}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const e=this.getDataTimestamps(),s=this.getLabelTimestamps();return e.length&&s.length?t=this.normalize(e.concat(s)):t=e.length?e:s,t=this._cache.all=t,t}getDecimalForValue(t){return(Fe(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const e=this._offsets,s=this.getDecimalForPixel(t)/e.factor-e.end;return Fe(this._table,s*this._tableRange+this._minPos,!0)}}M(Fi,"id","timeseries"),M(Fi,"defaults",ye.defaults);var Oh=Object.freeze({__proto__:null,CategoryScale:Li,LinearScale:Ri,LogarithmicScale:Ei,RadialLinearScale:re,TimeScale:ye,TimeSeriesScale:Fi});const Ch=[Er,hc,oh,Oh];export{Et as C,Ch as r}; diff --git a/internal/generator/site/dist/assets/index-0FJP5bbM.js b/internal/generator/site/dist/assets/index-0FJP5bbM.js new file mode 100644 index 0000000..e92ea41 --- /dev/null +++ b/internal/generator/site/dist/assets/index-0FJP5bbM.js @@ -0,0 +1,25 @@ +import{C as rr,r as $i}from"./chart-BR_H7_9u.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))s(r);new MutationObserver(r=>{for(const o of r)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&s(i)}).observe(document,{childList:!0,subtree:!0});function n(r){const o={};return r.integrity&&(o.integrity=r.integrity),r.referrerPolicy&&(o.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?o.credentials="include":r.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function s(r){if(r.ep)return;r.ep=!0;const o=n(r);fetch(r.href,o)}})();/** +* @vue/shared v3.5.25 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/function Is(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const ue={},qt=[],rt=()=>{},Xr=()=>!1,Vn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Ns=e=>e.startsWith("onUpdate:"),Pe=Object.assign,Ms=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Pi=Object.prototype.hasOwnProperty,re=(e,t)=>Pi.call(e,t),G=Array.isArray,Kt=e=>kn(e)==="[object Map]",Bn=e=>kn(e)==="[object Set]",or=e=>kn(e)==="[object Date]",K=e=>typeof e=="function",pe=e=>typeof e=="string",Ke=e=>typeof e=="symbol",fe=e=>e!==null&&typeof e=="object",Zr=e=>(fe(e)||K(e))&&K(e.then)&&K(e.catch),eo=Object.prototype.toString,kn=e=>eo.call(e),Ti=e=>kn(e).slice(8,-1),to=e=>kn(e)==="[object Object]",Ds=e=>pe(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,ln=Is(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Hn=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Oi=/-\w/g,Ge=Hn(e=>e.replace(Oi,t=>t.slice(1).toUpperCase())),Ii=/\B([A-Z])/g,Lt=Hn(e=>e.replace(Ii,"-$1").toLowerCase()),Un=Hn(e=>e.charAt(0).toUpperCase()+e.slice(1)),ns=Hn(e=>e?`on${Un(e)}`:""),Rt=(e,t)=>!Object.is(e,t),Pn=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},Ni=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let ir;const Gn=()=>ir||(ir=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function St(e){if(G(e)){const t={};for(let n=0;n{if(n){const s=n.split(Di);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function J(e){let t="";if(pe(e))t=e;else if(G(e))for(let n=0;nqn(n,t))}const oo=e=>!!(e&&e.__v_isRef===!0),R=e=>pe(e)?e:e==null?"":G(e)||fe(e)&&(e.toString===eo||!K(e.toString))?oo(e)?R(e.value):JSON.stringify(e,io,2):String(e),io=(e,t)=>oo(t)?io(e,t.value):Kt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,r],o)=>(n[ss(s,o)+" =>"]=r,n),{})}:Bn(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>ss(n))}:Ke(t)?ss(t):fe(t)&&!G(t)&&!to(t)?String(t):t,ss=(e,t="")=>{var n;return Ke(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/** +* @vue/reactivity v3.5.25 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let Le;class Hi{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Le,!t&&Le&&(this.index=(Le.scopes||(Le.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t0&&--this._on===0&&(Le=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let n,s;for(n=0,s=this.effects.length;n0)return;if(cn){let t=cn;for(cn=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;an;){let t=an;for(an=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(s){e||(e=s)}t=n}}if(e)throw e}function uo(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function fo(e){let t,n=e.depsTail,s=n;for(;s;){const r=s.prevDep;s.version===-1?(s===n&&(n=r),Fs(s),Gi(s)):t=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=r}e.deps=t,e.depsTail=n}function vs(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(ho(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function ho(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===gn)||(e.globalVersion=gn,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!vs(e))))return;e.flags|=2;const t=e.dep,n=he,s=qe;he=e,qe=!0;try{uo(e);const r=e.fn(e._value);(t.version===0||Rt(r,e._value))&&(e.flags|=128,e._value=r,t.version++)}catch(r){throw t.version++,r}finally{he=n,qe=s,fo(e),e.flags&=-3}}function Fs(e,t=!1){const{dep:n,prevSub:s,nextSub:r}=e;if(s&&(s.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=s,e.nextSub=void 0),n.subs===e&&(n.subs=s,!s&&n.computed)){n.computed.flags&=-5;for(let o=n.computed.deps;o;o=o.nextDep)Fs(o,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Gi(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let qe=!0;const mo=[];function dt(){mo.push(qe),qe=!1}function ht(){const e=mo.pop();qe=e===void 0?!0:e}function lr(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=he;he=void 0;try{t()}finally{he=n}}}let gn=0;class qi{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Vs{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!he||!qe||he===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==he)n=this.activeLink=new qi(he,this),he.deps?(n.prevDep=he.depsTail,he.depsTail.nextDep=n,he.depsTail=n):he.deps=he.depsTail=n,go(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const s=n.nextDep;s.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=s),n.prevDep=he.depsTail,n.nextDep=void 0,he.depsTail.nextDep=n,he.depsTail=n,he.deps===n&&(he.deps=s)}return n}trigger(t){this.version++,gn++,this.notify(t)}notify(t){Ls();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{js()}}}function go(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let s=t.deps;s;s=s.nextDep)go(s)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const xs=new WeakMap,Nt=Symbol(""),bs=Symbol(""),pn=Symbol("");function Se(e,t,n){if(qe&&he){let s=xs.get(e);s||xs.set(e,s=new Map);let r=s.get(n);r||(s.set(n,r=new Vs),r.map=s,r.key=n),r.track()}}function ut(e,t,n,s,r,o){const i=xs.get(e);if(!i){gn++;return}const l=a=>{a&&a.trigger()};if(Ls(),t==="clear")i.forEach(l);else{const a=G(e),c=a&&Ds(n);if(a&&n==="length"){const u=Number(s);i.forEach((h,g)=>{(g==="length"||g===pn||!Ke(g)&&g>=u)&&l(h)})}else switch((n!==void 0||i.has(void 0))&&l(i.get(n)),c&&l(i.get(pn)),t){case"add":a?c&&l(i.get("length")):(l(i.get(Nt)),Kt(e)&&l(i.get(bs)));break;case"delete":a||(l(i.get(Nt)),Kt(e)&&l(i.get(bs)));break;case"set":Kt(e)&&l(i.get(Nt));break}}js()}function Ht(e){const t=se(e);return t===e?t:(Se(t,"iterate",pn),He(e)?t:t.map(We))}function Kn(e){return Se(e=se(e),"iterate",pn),e}function _t(e,t){return mt(e)?Mt(e)?Yt(We(t)):Yt(t):We(t)}const Ki={__proto__:null,[Symbol.iterator](){return os(this,Symbol.iterator,e=>_t(this,e))},concat(...e){return Ht(this).concat(...e.map(t=>G(t)?Ht(t):t))},entries(){return os(this,"entries",e=>(e[1]=_t(this,e[1]),e))},every(e,t){return lt(this,"every",e,t,void 0,arguments)},filter(e,t){return lt(this,"filter",e,t,n=>n.map(s=>_t(this,s)),arguments)},find(e,t){return lt(this,"find",e,t,n=>_t(this,n),arguments)},findIndex(e,t){return lt(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return lt(this,"findLast",e,t,n=>_t(this,n),arguments)},findLastIndex(e,t){return lt(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return lt(this,"forEach",e,t,void 0,arguments)},includes(...e){return is(this,"includes",e)},indexOf(...e){return is(this,"indexOf",e)},join(e){return Ht(this).join(e)},lastIndexOf(...e){return is(this,"lastIndexOf",e)},map(e,t){return lt(this,"map",e,t,void 0,arguments)},pop(){return nn(this,"pop")},push(...e){return nn(this,"push",e)},reduce(e,...t){return ar(this,"reduce",e,t)},reduceRight(e,...t){return ar(this,"reduceRight",e,t)},shift(){return nn(this,"shift")},some(e,t){return lt(this,"some",e,t,void 0,arguments)},splice(...e){return nn(this,"splice",e)},toReversed(){return Ht(this).toReversed()},toSorted(e){return Ht(this).toSorted(e)},toSpliced(...e){return Ht(this).toSpliced(...e)},unshift(...e){return nn(this,"unshift",e)},values(){return os(this,"values",e=>_t(this,e))}};function os(e,t,n){const s=Kn(e),r=s[t]();return s!==e&&!He(e)&&(r._next=r.next,r.next=()=>{const o=r._next();return o.done||(o.value=n(o.value)),o}),r}const Wi=Array.prototype;function lt(e,t,n,s,r,o){const i=Kn(e),l=i!==e&&!He(e),a=i[t];if(a!==Wi[t]){const h=a.apply(e,o);return l?We(h):h}let c=n;i!==e&&(l?c=function(h,g){return n.call(this,_t(e,h),g,e)}:n.length>2&&(c=function(h,g){return n.call(this,h,g,e)}));const u=a.call(i,c,s);return l&&r?r(u):u}function ar(e,t,n,s){const r=Kn(e);let o=n;return r!==e&&(He(e)?n.length>3&&(o=function(i,l,a){return n.call(this,i,l,a,e)}):o=function(i,l,a){return n.call(this,i,_t(e,l),a,e)}),r[t](o,...s)}function is(e,t,n){const s=se(e);Se(s,"iterate",pn);const r=s[t](...n);return(r===-1||r===!1)&&Us(n[0])?(n[0]=se(n[0]),s[t](...n)):r}function nn(e,t,n=[]){dt(),Ls();const s=se(e)[t].apply(e,n);return js(),ht(),s}const zi=Is("__proto__,__v_isRef,__isVue"),po=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Ke));function Ji(e){Ke(e)||(e=String(e));const t=se(this);return Se(t,"has",e),t.hasOwnProperty(e)}class yo{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,s){if(n==="__v_skip")return t.__v_skip;const r=this._isReadonly,o=this._isShallow;if(n==="__v_isReactive")return!r;if(n==="__v_isReadonly")return r;if(n==="__v_isShallow")return o;if(n==="__v_raw")return s===(r?o?ol:_o:o?bo:xo).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const i=G(t);if(!r){let a;if(i&&(a=Ki[n]))return a;if(n==="hasOwnProperty")return Ji}const l=Reflect.get(t,n,Ae(t)?t:s);if((Ke(n)?po.has(n):zi(n))||(r||Se(t,"get",n),o))return l;if(Ae(l)){const a=i&&Ds(n)?l:l.value;return r&&fe(a)?ws(a):a}return fe(l)?r?ws(l):Wn(l):l}}class vo extends yo{constructor(t=!1){super(!1,t)}set(t,n,s,r){let o=t[n];const i=G(t)&&Ds(n);if(!this._isShallow){const c=mt(o);if(!He(s)&&!mt(s)&&(o=se(o),s=se(s)),!i&&Ae(o)&&!Ae(s))return c||(o.value=s),!0}const l=i?Number(n)e,En=e=>Reflect.getPrototypeOf(e);function el(e,t,n){return function(...s){const r=this.__v_raw,o=se(r),i=Kt(o),l=e==="entries"||e===Symbol.iterator&&i,a=e==="keys"&&i,c=r[e](...s),u=n?_s:t?Yt:We;return!t&&Se(o,"iterate",a?bs:Nt),{next(){const{value:h,done:g}=c.next();return g?{value:h,done:g}:{value:l?[u(h[0]),u(h[1])]:u(h),done:g}},[Symbol.iterator](){return this}}}}function An(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function tl(e,t){const n={get(r){const o=this.__v_raw,i=se(o),l=se(r);e||(Rt(r,l)&&Se(i,"get",r),Se(i,"get",l));const{has:a}=En(i),c=t?_s:e?Yt:We;if(a.call(i,r))return c(o.get(r));if(a.call(i,l))return c(o.get(l));o!==i&&o.get(r)},get size(){const r=this.__v_raw;return!e&&Se(se(r),"iterate",Nt),r.size},has(r){const o=this.__v_raw,i=se(o),l=se(r);return e||(Rt(r,l)&&Se(i,"has",r),Se(i,"has",l)),r===l?o.has(r):o.has(r)||o.has(l)},forEach(r,o){const i=this,l=i.__v_raw,a=se(l),c=t?_s:e?Yt:We;return!e&&Se(a,"iterate",Nt),l.forEach((u,h)=>r.call(o,c(u),c(h),i))}};return Pe(n,e?{add:An("add"),set:An("set"),delete:An("delete"),clear:An("clear")}:{add(r){!t&&!He(r)&&!mt(r)&&(r=se(r));const o=se(this);return En(o).has.call(o,r)||(o.add(r),ut(o,"add",r,r)),this},set(r,o){!t&&!He(o)&&!mt(o)&&(o=se(o));const i=se(this),{has:l,get:a}=En(i);let c=l.call(i,r);c||(r=se(r),c=l.call(i,r));const u=a.call(i,r);return i.set(r,o),c?Rt(o,u)&&ut(i,"set",r,o):ut(i,"add",r,o),this},delete(r){const o=se(this),{has:i,get:l}=En(o);let a=i.call(o,r);a||(r=se(r),a=i.call(o,r)),l&&l.call(o,r);const c=o.delete(r);return a&&ut(o,"delete",r,void 0),c},clear(){const r=se(this),o=r.size!==0,i=r.clear();return o&&ut(r,"clear",void 0,void 0),i}}),["keys","values","entries",Symbol.iterator].forEach(r=>{n[r]=el(r,e,t)}),n}function Bs(e,t){const n=tl(e,t);return(s,r,o)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?s:Reflect.get(re(n,r)&&r in s?n:s,r,o)}const nl={get:Bs(!1,!1)},sl={get:Bs(!1,!0)},rl={get:Bs(!0,!1)};const xo=new WeakMap,bo=new WeakMap,_o=new WeakMap,ol=new WeakMap;function il(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function ll(e){return e.__v_skip||!Object.isExtensible(e)?0:il(Ti(e))}function Wn(e){return mt(e)?e:Hs(e,!1,Qi,nl,xo)}function wo(e){return Hs(e,!1,Zi,sl,bo)}function ws(e){return Hs(e,!0,Xi,rl,_o)}function Hs(e,t,n,s,r){if(!fe(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=ll(e);if(o===0)return e;const i=r.get(e);if(i)return i;const l=new Proxy(e,o===2?s:n);return r.set(e,l),l}function Mt(e){return mt(e)?Mt(e.__v_raw):!!(e&&e.__v_isReactive)}function mt(e){return!!(e&&e.__v_isReadonly)}function He(e){return!!(e&&e.__v_isShallow)}function Us(e){return e?!!e.__v_raw:!1}function se(e){const t=e&&e.__v_raw;return t?se(t):e}function al(e){return!re(e,"__v_skip")&&Object.isExtensible(e)&&no(e,"__v_skip",!0),e}const We=e=>fe(e)?Wn(e):e,Yt=e=>fe(e)?ws(e):e;function Ae(e){return e?e.__v_isRef===!0:!1}function ke(e){return ko(e,!1)}function cl(e){return ko(e,!0)}function ko(e,t){return Ae(e)?e:new ul(e,t)}class ul{constructor(t,n){this.dep=new Vs,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:se(t),this._value=n?t:We(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,s=this.__v_isShallow||He(t)||mt(t);t=s?t:se(t),Rt(t,n)&&(this._rawValue=t,this._value=s?t:We(t),this.dep.trigger())}}function N(e){return Ae(e)?e.value:e}const fl={get:(e,t,n)=>t==="__v_raw"?e:N(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const r=e[t];return Ae(r)&&!Ae(n)?(r.value=n,!0):Reflect.set(e,t,n,s)}};function Co(e){return Mt(e)?e:new Proxy(e,fl)}class dl{constructor(t,n,s){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Vs(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=gn-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=s}notify(){if(this.flags|=16,!(this.flags&8)&&he!==this)return co(this,!0),!0}get value(){const t=this.dep.track();return ho(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function hl(e,t,n=!1){let s,r;return K(e)?s=e:(s=e.get,r=e.set),new dl(s,r,n)}const $n={},In=new WeakMap;let Tt;function ml(e,t=!1,n=Tt){if(n){let s=In.get(n);s||In.set(n,s=[]),s.push(e)}}function gl(e,t,n=ue){const{immediate:s,deep:r,once:o,scheduler:i,augmentJob:l,call:a}=n,c=j=>r?j:He(j)||r===!1||r===0?ft(j,1):ft(j);let u,h,g,y,S=!1,P=!1;if(Ae(e)?(h=()=>e.value,S=He(e)):Mt(e)?(h=()=>c(e),S=!0):G(e)?(P=!0,S=e.some(j=>Mt(j)||He(j)),h=()=>e.map(j=>{if(Ae(j))return j.value;if(Mt(j))return c(j);if(K(j))return a?a(j,2):j()})):K(e)?t?h=a?()=>a(e,2):e:h=()=>{if(g){dt();try{g()}finally{ht()}}const j=Tt;Tt=u;try{return a?a(e,3,[y]):e(y)}finally{Tt=j}}:h=rt,t&&r){const j=h,ee=r===!0?1/0:r;h=()=>ft(j(),ee)}const B=Ui(),$=()=>{u.stop(),B&&B.active&&Ms(B.effects,u)};if(o&&t){const j=t;t=(...ee)=>{j(...ee),$()}}let D=P?new Array(e.length).fill($n):$n;const F=j=>{if(!(!(u.flags&1)||!u.dirty&&!j))if(t){const ee=u.run();if(r||S||(P?ee.some((ye,me)=>Rt(ye,D[me])):Rt(ee,D))){g&&g();const ye=Tt;Tt=u;try{const me=[ee,D===$n?void 0:P&&D[0]===$n?[]:D,y];D=ee,a?a(t,3,me):t(...me)}finally{Tt=ye}}}else u.run()};return l&&l(F),u=new lo(h),u.scheduler=i?()=>i(F,!1):F,y=j=>ml(j,!1,u),g=u.onStop=()=>{const j=In.get(u);if(j){if(a)a(j,4);else for(const ee of j)ee();In.delete(u)}},t?s?F(!0):D=u.run():i?i(F.bind(null,!0),!0):u.run(),$.pause=u.pause.bind(u),$.resume=u.resume.bind(u),$.stop=$,$}function ft(e,t=1/0,n){if(t<=0||!fe(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,Ae(e))ft(e.value,t,n);else if(G(e))for(let s=0;s{ft(s,t,n)});else if(to(e)){for(const s in e)ft(e[s],t,n);for(const s of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,s)&&ft(e[s],t,n)}return e}/** +* @vue/runtime-core v3.5.25 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/function Cn(e,t,n,s){try{return s?e(...s):e()}catch(r){zn(r,t,n)}}function ot(e,t,n,s){if(K(e)){const r=Cn(e,t,n,s);return r&&Zr(r)&&r.catch(o=>{zn(o,t,n)}),r}if(G(e)){const r=[];for(let o=0;o>>1,r=Ie[s],o=yn(r);o=yn(n)?Ie.push(e):Ie.splice(yl(t),0,e),e.flags|=1,Eo()}}function Eo(){Nn||(Nn=Ro.then($o))}function vl(e){G(e)?Wt.push(...e):wt&&e.id===-1?wt.splice(Ut+1,0,e):e.flags&1||(Wt.push(e),e.flags|=1),Eo()}function cr(e,t,n=nt+1){for(;nyn(n)-yn(s));if(Wt.length=0,wt){wt.push(...t);return}for(wt=t,Ut=0;Ute.id==null?e.flags&2?-1:1/0:e.id;function $o(e){try{for(nt=0;nt{s._d&&jn(-1);const o=Mn(t);let i;try{i=e(...r)}finally{Mn(o),s._d&&jn(1)}return i};return s._n=!0,s._c=!0,s._d=!0,s}function xl(e,t){if(we===null)return e;const n=Xn(we),s=e.dirs||(e.dirs=[]);for(let r=0;re.__isTeleport,wl=Symbol("_leaveCb");function qs(e,t){e.shapeFlag&6&&e.component?(e.transition=t,qs(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function To(e,t){return K(e)?Pe({name:e.name},t,{setup:e}):e}function Oo(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}const Dn=new WeakMap;function un(e,t,n,s,r=!1){if(G(e)){e.forEach((S,P)=>un(S,t&&(G(t)?t[P]:t),n,s,r));return}if(zt(s)&&!r){s.shapeFlag&512&&s.type.__asyncResolved&&s.component.subTree.component&&un(e,t,n,s.component.subTree);return}const o=s.shapeFlag&4?Xn(s.component):s.el,i=r?null:o,{i:l,r:a}=e,c=t&&t.r,u=l.refs===ue?l.refs={}:l.refs,h=l.setupState,g=se(h),y=h===ue?Xr:S=>re(g,S);if(c!=null&&c!==a){if(ur(t),pe(c))u[c]=null,y(c)&&(h[c]=null);else if(Ae(c)){c.value=null;const S=t;S.k&&(u[S.k]=null)}}if(K(a))Cn(a,l,12,[i,u]);else{const S=pe(a),P=Ae(a);if(S||P){const B=()=>{if(e.f){const $=S?y(a)?h[a]:u[a]:a.value;if(r)G($)&&Ms($,o);else if(G($))$.includes(o)||$.push(o);else if(S)u[a]=[o],y(a)&&(h[a]=u[a]);else{const D=[o];a.value=D,e.k&&(u[e.k]=D)}}else S?(u[a]=i,y(a)&&(h[a]=i)):P&&(a.value=i,e.k&&(u[e.k]=i))};if(i){const $=()=>{B(),Dn.delete(e)};$.id=-1,Dn.set(e,$),Fe($,n)}else ur(e),B()}}}function ur(e){const t=Dn.get(e);t&&(t.flags|=8,Dn.delete(e))}Gn().requestIdleCallback;Gn().cancelIdleCallback;const zt=e=>!!e.type.__asyncLoader,Io=e=>e.type.__isKeepAlive;function kl(e,t){No(e,"a",t)}function Cl(e,t){No(e,"da",t)}function No(e,t,n=Ee){const s=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(Jn(t,s,n),n){let r=n.parent;for(;r&&r.parent;)Io(r.parent.vnode)&&Rl(s,t,n,r),r=r.parent}}function Rl(e,t,n,s){const r=Jn(t,e,s,!0);Mo(()=>{Ms(s[t],r)},n)}function Jn(e,t,n=Ee,s=!1){if(n){const r=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...i)=>{dt();const l=Rn(n),a=ot(t,n,e,i);return l(),ht(),a});return s?r.unshift(o):r.push(o),o}}const pt=e=>(t,n=Ee)=>{(!bn||e==="sp")&&Jn(e,(...s)=>t(...s),n)},Sl=pt("bm"),jt=pt("m"),El=pt("bu"),Al=pt("u"),$l=pt("bum"),Mo=pt("um"),Pl=pt("sp"),Tl=pt("rtg"),Ol=pt("rtc");function Il(e,t=Ee){Jn("ec",e,t)}const Do="components";function Nl(e,t){return jo(Do,e,!0,t)||e}const Lo=Symbol.for("v-ndc");function Ml(e){return pe(e)?jo(Do,e,!1)||e:e||Lo}function jo(e,t,n=!0,s=!1){const r=we||Ee;if(r){const o=r.type;{const l=ka(o,!1);if(l&&(l===t||l===Ge(t)||l===Un(Ge(t))))return o}const i=fr(r[e]||o[e],t)||fr(r.appContext[e],t);return!i&&s?o:i}}function fr(e,t){return e&&(e[t]||e[Ge(t)]||e[Un(Ge(t))])}function xe(e,t,n,s){let r;const o=n,i=G(e);if(i||pe(e)){const l=i&&Mt(e);let a=!1,c=!1;l&&(a=!He(e),c=mt(e),e=Kn(e)),r=new Array(e.length);for(let u=0,h=e.length;ut(l,a,void 0,o));else{const l=Object.keys(e);r=new Array(l.length);for(let a=0,c=l.length;a0;return t!=="default"&&(n.name=t),v(),ie(Y,null,[M("slot",n,s&&s())],c?-2:64)}let o=e[t];o&&o._c&&(o._d=!1),v();const i=o&&Fo(o(n)),l=n.key||i&&i.key,a=ie(Y,{key:(l&&!Ke(l)?l:`_${t}`)+(!i&&s?"_fb":"")},i||(s?s():[]),i&&e._===1?64:-2);return a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),o&&o._c&&(o._d=!0),a}function Fo(e){return e.some(t=>xn(t)?!(t.type===gt||t.type===Y&&!Fo(t.children)):!0)?e:null}const ks=e=>e?oi(e)?Xn(e):ks(e.parent):null,fn=Pe(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>ks(e.parent),$root:e=>ks(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>Bo(e),$forceUpdate:e=>e.f||(e.f=()=>{Gs(e.update)}),$nextTick:e=>e.n||(e.n=So.bind(e.proxy)),$watch:e=>Kl.bind(e)}),ls=(e,t)=>e!==ue&&!e.__isScriptSetup&&re(e,t),Dl={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:s,data:r,props:o,accessCache:i,type:l,appContext:a}=e;if(t[0]!=="$"){const g=i[t];if(g!==void 0)switch(g){case 1:return s[t];case 2:return r[t];case 4:return n[t];case 3:return o[t]}else{if(ls(s,t))return i[t]=1,s[t];if(r!==ue&&re(r,t))return i[t]=2,r[t];if(re(o,t))return i[t]=3,o[t];if(n!==ue&&re(n,t))return i[t]=4,n[t];Cs&&(i[t]=0)}}const c=fn[t];let u,h;if(c)return t==="$attrs"&&Se(e.attrs,"get",""),c(e);if((u=l.__cssModules)&&(u=u[t]))return u;if(n!==ue&&re(n,t))return i[t]=4,n[t];if(h=a.config.globalProperties,re(h,t))return h[t]},set({_:e},t,n){const{data:s,setupState:r,ctx:o}=e;return ls(r,t)?(r[t]=n,!0):s!==ue&&re(s,t)?(s[t]=n,!0):re(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:r,props:o,type:i}},l){let a;return!!(n[l]||e!==ue&&l[0]!=="$"&&re(e,l)||ls(t,l)||re(o,l)||re(s,l)||re(fn,l)||re(r.config.globalProperties,l)||(a=i.__cssModules)&&a[l])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:re(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function dr(e){return G(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let Cs=!0;function Ll(e){const t=Bo(e),n=e.proxy,s=e.ctx;Cs=!1,t.beforeCreate&&hr(t.beforeCreate,e,"bc");const{data:r,computed:o,methods:i,watch:l,provide:a,inject:c,created:u,beforeMount:h,mounted:g,beforeUpdate:y,updated:S,activated:P,deactivated:B,beforeDestroy:$,beforeUnmount:D,destroyed:F,unmounted:j,render:ee,renderTracked:ye,renderTriggered:me,errorCaptured:Ce,serverPrefetch:yt,expose:Je,inheritAttrs:vt,components:Et,directives:Ye,filters:en}=t;if(c&&jl(c,s,null),i)for(const ae in i){const te=i[ae];K(te)&&(s[ae]=te.bind(n))}if(r){const ae=r.call(n,n);fe(ae)&&(e.data=Wn(ae))}if(Cs=!0,o)for(const ae in o){const te=o[ae],it=K(te)?te.bind(n,n):K(te.get)?te.get.bind(n,n):rt,xt=!K(te)&&K(te.set)?te.set.bind(n):rt,Qe=oe({get:it,set:xt});Object.defineProperty(s,ae,{enumerable:!0,configurable:!0,get:()=>Qe.value,set:Ne=>Qe.value=Ne})}if(l)for(const ae in l)Vo(l[ae],s,n,ae);if(a){const ae=K(a)?a.call(n):a;Reflect.ownKeys(ae).forEach(te=>{dn(te,ae[te])})}u&&hr(u,e,"c");function be(ae,te){G(te)?te.forEach(it=>ae(it.bind(n))):te&&ae(te.bind(n))}if(be(Sl,h),be(jt,g),be(El,y),be(Al,S),be(kl,P),be(Cl,B),be(Il,Ce),be(Ol,ye),be(Tl,me),be($l,D),be(Mo,j),be(Pl,yt),G(Je))if(Je.length){const ae=e.exposed||(e.exposed={});Je.forEach(te=>{Object.defineProperty(ae,te,{get:()=>n[te],set:it=>n[te]=it,enumerable:!0})})}else e.exposed||(e.exposed={});ee&&e.render===rt&&(e.render=ee),vt!=null&&(e.inheritAttrs=vt),Et&&(e.components=Et),Ye&&(e.directives=Ye),yt&&Oo(e)}function jl(e,t,n=rt){G(e)&&(e=Rs(e));for(const s in e){const r=e[s];let o;fe(r)?"default"in r?o=$e(r.from||s,r.default,!0):o=$e(r.from||s):o=$e(r),Ae(o)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>o.value,set:i=>o.value=i}):t[s]=o}}function hr(e,t,n){ot(G(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function Vo(e,t,n,s){let r=s.includes(".")?Go(n,s):()=>n[s];if(pe(e)){const o=t[e];K(o)&&Ue(r,o)}else if(K(e))Ue(r,e.bind(n));else if(fe(e))if(G(e))e.forEach(o=>Vo(o,t,n,s));else{const o=K(e.handler)?e.handler.bind(n):t[e.handler];K(o)&&Ue(r,o,e)}}function Bo(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:r,optionsCache:o,config:{optionMergeStrategies:i}}=e.appContext,l=o.get(t);let a;return l?a=l:!r.length&&!n&&!s?a=t:(a={},r.length&&r.forEach(c=>Ln(a,c,i,!0)),Ln(a,t,i)),fe(t)&&o.set(t,a),a}function Ln(e,t,n,s=!1){const{mixins:r,extends:o}=t;o&&Ln(e,o,n,!0),r&&r.forEach(i=>Ln(e,i,n,!0));for(const i in t)if(!(s&&i==="expose")){const l=Fl[i]||n&&n[i];e[i]=l?l(e[i],t[i]):t[i]}return e}const Fl={data:mr,props:gr,emits:gr,methods:on,computed:on,beforeCreate:Te,created:Te,beforeMount:Te,mounted:Te,beforeUpdate:Te,updated:Te,beforeDestroy:Te,beforeUnmount:Te,destroyed:Te,unmounted:Te,activated:Te,deactivated:Te,errorCaptured:Te,serverPrefetch:Te,components:on,directives:on,watch:Bl,provide:mr,inject:Vl};function mr(e,t){return t?e?function(){return Pe(K(e)?e.call(this,this):e,K(t)?t.call(this,this):t)}:t:e}function Vl(e,t){return on(Rs(e),Rs(t))}function Rs(e){if(G(e)){const t={};for(let n=0;n1)return n&&K(t)?t.call(s&&s.proxy):t}}const Gl=Symbol.for("v-scx"),ql=()=>$e(Gl);function Ue(e,t,n){return Uo(e,t,n)}function Uo(e,t,n=ue){const{immediate:s,deep:r,flush:o,once:i}=n,l=Pe({},n),a=t&&s||!t&&o!=="post";let c;if(bn){if(o==="sync"){const y=ql();c=y.__watcherHandles||(y.__watcherHandles=[])}else if(!a){const y=()=>{};return y.stop=rt,y.resume=rt,y.pause=rt,y}}const u=Ee;l.call=(y,S,P)=>ot(y,u,S,P);let h=!1;o==="post"?l.scheduler=y=>{Fe(y,u&&u.suspense)}:o!=="sync"&&(h=!0,l.scheduler=(y,S)=>{S?y():Gs(y)}),l.augmentJob=y=>{t&&(y.flags|=4),h&&(y.flags|=2,u&&(y.id=u.uid,y.i=u))};const g=gl(e,t,l);return bn&&(c?c.push(g):a&&g()),g}function Kl(e,t,n){const s=this.proxy,r=pe(e)?e.includes(".")?Go(s,e):()=>s[e]:e.bind(s,s);let o;K(t)?o=t:(o=t.handler,n=t);const i=Rn(this),l=Uo(r,o.bind(s),n);return i(),l}function Go(e,t){const n=t.split(".");return()=>{let s=e;for(let r=0;rt==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Ge(t)}Modifiers`]||e[`${Lt(t)}Modifiers`];function zl(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||ue;let r=n;const o=t.startsWith("update:"),i=o&&Wl(s,t.slice(7));i&&(i.trim&&(r=n.map(u=>pe(u)?u.trim():u)),i.number&&(r=n.map(Ni)));let l,a=s[l=ns(t)]||s[l=ns(Ge(t))];!a&&o&&(a=s[l=ns(Lt(t))]),a&&ot(a,e,6,r);const c=s[l+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,ot(c,e,6,r)}}const Jl=new WeakMap;function qo(e,t,n=!1){const s=n?Jl:t.emitsCache,r=s.get(e);if(r!==void 0)return r;const o=e.emits;let i={},l=!1;if(!K(e)){const a=c=>{const u=qo(c,t,!0);u&&(l=!0,Pe(i,u))};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!o&&!l?(fe(e)&&s.set(e,null),null):(G(o)?o.forEach(a=>i[a]=null):Pe(i,o),fe(e)&&s.set(e,i),i)}function Yn(e,t){return!e||!Vn(t)?!1:(t=t.slice(2).replace(/Once$/,""),re(e,t[0].toLowerCase()+t.slice(1))||re(e,Lt(t))||re(e,t))}function pr(e){const{type:t,vnode:n,proxy:s,withProxy:r,propsOptions:[o],slots:i,attrs:l,emit:a,render:c,renderCache:u,props:h,data:g,setupState:y,ctx:S,inheritAttrs:P}=e,B=Mn(e);let $,D;try{if(n.shapeFlag&4){const j=r||s,ee=j;$=st(c.call(ee,j,u,h,y,g,S)),D=l}else{const j=t;$=st(j.length>1?j(h,{attrs:l,slots:i,emit:a}):j(h,null)),D=t.props?l:Yl(l)}}catch(j){hn.length=0,zn(j,e,1),$=M(gt)}let F=$;if(D&&P!==!1){const j=Object.keys(D),{shapeFlag:ee}=F;j.length&&ee&7&&(o&&j.some(Ns)&&(D=Ql(D,o)),F=Qt(F,D,!1,!0))}return n.dirs&&(F=Qt(F,null,!1,!0),F.dirs=F.dirs?F.dirs.concat(n.dirs):n.dirs),n.transition&&qs(F,n.transition),$=F,Mn(B),$}const Yl=e=>{let t;for(const n in e)(n==="class"||n==="style"||Vn(n))&&((t||(t={}))[n]=e[n]);return t},Ql=(e,t)=>{const n={};for(const s in e)(!Ns(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function Xl(e,t,n){const{props:s,children:r,component:o}=e,{props:i,children:l,patchFlag:a}=t,c=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return s?yr(s,i,c):!!i;if(a&8){const u=t.dynamicProps;for(let h=0;hObject.create(Ko),zo=e=>Object.getPrototypeOf(e)===Ko;function ea(e,t,n,s=!1){const r={},o=Wo();e.propsDefaults=Object.create(null),Jo(e,t,r,o);for(const i in e.propsOptions[0])i in r||(r[i]=void 0);n?e.props=s?r:wo(r):e.type.props?e.props=r:e.props=o,e.attrs=o}function ta(e,t,n,s){const{props:r,attrs:o,vnode:{patchFlag:i}}=e,l=se(r),[a]=e.propsOptions;let c=!1;if((s||i>0)&&!(i&16)){if(i&8){const u=e.vnode.dynamicProps;for(let h=0;h{a=!0;const[g,y]=Yo(h,t,!0);Pe(i,g),y&&l.push(...y)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!o&&!a)return fe(e)&&s.set(e,qt),qt;if(G(o))for(let u=0;ue==="_"||e==="_ctx"||e==="$stable",Ws=e=>G(e)?e.map(st):[st(e)],sa=(e,t,n)=>{if(t._n)return t;const s=Z((...r)=>Ws(t(...r)),n);return s._c=!1,s},Qo=(e,t,n)=>{const s=e._ctx;for(const r in e){if(Ks(r))continue;const o=e[r];if(K(o))t[r]=sa(r,o,s);else if(o!=null){const i=Ws(o);t[r]=()=>i}}},Xo=(e,t)=>{const n=Ws(t);e.slots.default=()=>n},Zo=(e,t,n)=>{for(const s in t)(n||!Ks(s))&&(e[s]=t[s])},ra=(e,t,n)=>{const s=e.slots=Wo();if(e.vnode.shapeFlag&32){const r=t._;r?(Zo(s,t,n),n&&no(s,"_",r,!0)):Qo(t,s)}else t&&Xo(e,t)},oa=(e,t,n)=>{const{vnode:s,slots:r}=e;let o=!0,i=ue;if(s.shapeFlag&32){const l=t._;l?n&&l===1?o=!1:Zo(r,t,n):(o=!t.$stable,Qo(t,r)),i=t}else t&&(Xo(e,t),i={default:1});if(o)for(const l in r)!Ks(l)&&i[l]==null&&delete r[l]},Fe=ua;function ia(e){return la(e)}function la(e,t){const n=Gn();n.__VUE__=!0;const{insert:s,remove:r,patchProp:o,createElement:i,createText:l,createComment:a,setText:c,setElementText:u,parentNode:h,nextSibling:g,setScopeId:y=rt,insertStaticContent:S}=e,P=(d,m,p,b=null,w=null,x=null,T=void 0,A=null,E=!!m.dynamicChildren)=>{if(d===m)return;d&&!sn(d,m)&&(b=_(d),Ne(d,w,x,!0),d=null),m.patchFlag===-2&&(E=!1,m.dynamicChildren=null);const{type:C,ref:U,shapeFlag:I}=m;switch(C){case Qn:B(d,m,p,b);break;case gt:$(d,m,p,b);break;case cs:d==null&&D(m,p,b,T);break;case Y:Et(d,m,p,b,w,x,T,A,E);break;default:I&1?ee(d,m,p,b,w,x,T,A,E):I&6?Ye(d,m,p,b,w,x,T,A,E):(I&64||I&128)&&C.process(d,m,p,b,w,x,T,A,E,V)}U!=null&&w?un(U,d&&d.ref,x,m||d,!m):U==null&&d&&d.ref!=null&&un(d.ref,null,x,d,!0)},B=(d,m,p,b)=>{if(d==null)s(m.el=l(m.children),p,b);else{const w=m.el=d.el;m.children!==d.children&&c(w,m.children)}},$=(d,m,p,b)=>{d==null?s(m.el=a(m.children||""),p,b):m.el=d.el},D=(d,m,p,b)=>{[d.el,d.anchor]=S(d.children,m,p,b,d.el,d.anchor)},F=({el:d,anchor:m},p,b)=>{let w;for(;d&&d!==m;)w=g(d),s(d,p,b),d=w;s(m,p,b)},j=({el:d,anchor:m})=>{let p;for(;d&&d!==m;)p=g(d),r(d),d=p;r(m)},ee=(d,m,p,b,w,x,T,A,E)=>{if(m.type==="svg"?T="svg":m.type==="math"&&(T="mathml"),d==null)ye(m,p,b,w,x,T,A,E);else{const C=d.el&&d.el._isVueCE?d.el:null;try{C&&C._beginPatch(),yt(d,m,w,x,T,A,E)}finally{C&&C._endPatch()}}},ye=(d,m,p,b,w,x,T,A)=>{let E,C;const{props:U,shapeFlag:I,transition:H,dirs:q}=d;if(E=d.el=i(d.type,x,U&&U.is,U),I&8?u(E,d.children):I&16&&Ce(d.children,E,null,b,w,as(d,x),T,A),q&&$t(d,null,b,"created"),me(E,d,d.scopeId,T,b),U){for(const de in U)de!=="value"&&!ln(de)&&o(E,de,null,U[de],x,b);"value"in U&&o(E,"value",null,U.value,x),(C=U.onVnodeBeforeMount)&&tt(C,b,d)}q&&$t(d,null,b,"beforeMount");const X=aa(w,H);X&&H.beforeEnter(E),s(E,m,p),((C=U&&U.onVnodeMounted)||X||q)&&Fe(()=>{C&&tt(C,b,d),X&&H.enter(E),q&&$t(d,null,b,"mounted")},w)},me=(d,m,p,b,w)=>{if(p&&y(d,p),b)for(let x=0;x{for(let C=E;C{const A=m.el=d.el;let{patchFlag:E,dynamicChildren:C,dirs:U}=m;E|=d.patchFlag&16;const I=d.props||ue,H=m.props||ue;let q;if(p&&Pt(p,!1),(q=H.onVnodeBeforeUpdate)&&tt(q,p,m,d),U&&$t(m,d,p,"beforeUpdate"),p&&Pt(p,!0),(I.innerHTML&&H.innerHTML==null||I.textContent&&H.textContent==null)&&u(A,""),C?Je(d.dynamicChildren,C,A,p,b,as(m,w),x):T||te(d,m,A,null,p,b,as(m,w),x,!1),E>0){if(E&16)vt(A,I,H,p,w);else if(E&2&&I.class!==H.class&&o(A,"class",null,H.class,w),E&4&&o(A,"style",I.style,H.style,w),E&8){const X=m.dynamicProps;for(let de=0;de{q&&tt(q,p,m,d),U&&$t(m,d,p,"updated")},b)},Je=(d,m,p,b,w,x,T)=>{for(let A=0;A{if(m!==p){if(m!==ue)for(const x in m)!ln(x)&&!(x in p)&&o(d,x,m[x],null,w,b);for(const x in p){if(ln(x))continue;const T=p[x],A=m[x];T!==A&&x!=="value"&&o(d,x,A,T,w,b)}"value"in p&&o(d,"value",m.value,p.value,w)}},Et=(d,m,p,b,w,x,T,A,E)=>{const C=m.el=d?d.el:l(""),U=m.anchor=d?d.anchor:l("");let{patchFlag:I,dynamicChildren:H,slotScopeIds:q}=m;q&&(A=A?A.concat(q):q),d==null?(s(C,p,b),s(U,p,b),Ce(m.children||[],p,U,w,x,T,A,E)):I>0&&I&64&&H&&d.dynamicChildren?(Je(d.dynamicChildren,H,p,w,x,T,A),(m.key!=null||w&&m===w.subTree)&&ei(d,m,!0)):te(d,m,p,U,w,x,T,A,E)},Ye=(d,m,p,b,w,x,T,A,E)=>{m.slotScopeIds=A,d==null?m.shapeFlag&512?w.ctx.activate(m,p,b,T,E):en(m,p,b,w,x,T,E):Ft(d,m,E)},en=(d,m,p,b,w,x,T)=>{const A=d.component=ya(d,b,w);if(Io(d)&&(A.ctx.renderer=V),xa(A,!1,T),A.asyncDep){if(w&&w.registerDep(A,be,T),!d.el){const E=A.subTree=M(gt);$(null,E,m,p),d.placeholder=E.el}}else be(A,d,m,p,w,x,T)},Ft=(d,m,p)=>{const b=m.component=d.component;if(Xl(d,m,p))if(b.asyncDep&&!b.asyncResolved){ae(b,m,p);return}else b.next=m,b.update();else m.el=d.el,b.vnode=m},be=(d,m,p,b,w,x,T)=>{const A=()=>{if(d.isMounted){let{next:I,bu:H,u:q,parent:X,vnode:de}=d;{const Ze=ti(d);if(Ze){I&&(I.el=de.el,ae(d,I,T)),Ze.asyncDep.then(()=>{d.isUnmounted||A()});return}}let le=I,Me;Pt(d,!1),I?(I.el=de.el,ae(d,I,T)):I=de,H&&Pn(H),(Me=I.props&&I.props.onVnodeBeforeUpdate)&&tt(Me,X,I,de),Pt(d,!0);const De=pr(d),Xe=d.subTree;d.subTree=De,P(Xe,De,h(Xe.el),_(Xe),d,w,x),I.el=De.el,le===null&&Zl(d,De.el),q&&Fe(q,w),(Me=I.props&&I.props.onVnodeUpdated)&&Fe(()=>tt(Me,X,I,de),w)}else{let I;const{el:H,props:q}=m,{bm:X,m:de,parent:le,root:Me,type:De}=d,Xe=zt(m);Pt(d,!1),X&&Pn(X),!Xe&&(I=q&&q.onVnodeBeforeMount)&&tt(I,le,m),Pt(d,!0);{Me.ce&&Me.ce._def.shadowRoot!==!1&&Me.ce._injectChildStyle(De);const Ze=d.subTree=pr(d);P(null,Ze,p,b,d,w,x),m.el=Ze.el}if(de&&Fe(de,w),!Xe&&(I=q&&q.onVnodeMounted)){const Ze=m;Fe(()=>tt(I,le,Ze),w)}(m.shapeFlag&256||le&&zt(le.vnode)&&le.vnode.shapeFlag&256)&&d.a&&Fe(d.a,w),d.isMounted=!0,m=p=b=null}};d.scope.on();const E=d.effect=new lo(A);d.scope.off();const C=d.update=E.run.bind(E),U=d.job=E.runIfDirty.bind(E);U.i=d,U.id=d.uid,E.scheduler=()=>Gs(U),Pt(d,!0),C()},ae=(d,m,p)=>{m.component=d;const b=d.vnode.props;d.vnode=m,d.next=null,ta(d,m.props,b,p),oa(d,m.children,p),dt(),cr(d),ht()},te=(d,m,p,b,w,x,T,A,E=!1)=>{const C=d&&d.children,U=d?d.shapeFlag:0,I=m.children,{patchFlag:H,shapeFlag:q}=m;if(H>0){if(H&128){xt(C,I,p,b,w,x,T,A,E);return}else if(H&256){it(C,I,p,b,w,x,T,A,E);return}}q&8?(U&16&&Be(C,w,x),I!==C&&u(p,I)):U&16?q&16?xt(C,I,p,b,w,x,T,A,E):Be(C,w,x,!0):(U&8&&u(p,""),q&16&&Ce(I,p,b,w,x,T,A,E))},it=(d,m,p,b,w,x,T,A,E)=>{d=d||qt,m=m||qt;const C=d.length,U=m.length,I=Math.min(C,U);let H;for(H=0;HU?Be(d,w,x,!0,!1,I):Ce(m,p,b,w,x,T,A,E,I)},xt=(d,m,p,b,w,x,T,A,E)=>{let C=0;const U=m.length;let I=d.length-1,H=U-1;for(;C<=I&&C<=H;){const q=d[C],X=m[C]=E?kt(m[C]):st(m[C]);if(sn(q,X))P(q,X,p,null,w,x,T,A,E);else break;C++}for(;C<=I&&C<=H;){const q=d[I],X=m[H]=E?kt(m[H]):st(m[H]);if(sn(q,X))P(q,X,p,null,w,x,T,A,E);else break;I--,H--}if(C>I){if(C<=H){const q=H+1,X=qH)for(;C<=I;)Ne(d[C],w,x,!0),C++;else{const q=C,X=C,de=new Map;for(C=X;C<=H;C++){const je=m[C]=E?kt(m[C]):st(m[C]);je.key!=null&&de.set(je.key,C)}let le,Me=0;const De=H-X+1;let Xe=!1,Ze=0;const tn=new Array(De);for(C=0;C=De){Ne(je,w,x,!0);continue}let et;if(je.key!=null)et=de.get(je.key);else for(le=X;le<=H;le++)if(tn[le-X]===0&&sn(je,m[le])){et=le;break}et===void 0?Ne(je,w,x,!0):(tn[et-X]=C+1,et>=Ze?Ze=et:Xe=!0,P(je,m[et],p,null,w,x,T,A,E),Me++)}const tr=Xe?ca(tn):qt;for(le=tr.length-1,C=De-1;C>=0;C--){const je=X+C,et=m[je],nr=m[je+1],sr=je+1{const{el:x,type:T,transition:A,children:E,shapeFlag:C}=d;if(C&6){Qe(d.component.subTree,m,p,b);return}if(C&128){d.suspense.move(m,p,b);return}if(C&64){T.move(d,m,p,V);return}if(T===Y){s(x,m,p);for(let I=0;IA.enter(x),w);else{const{leave:I,delayLeave:H,afterLeave:q}=A,X=()=>{d.ctx.isUnmounted?r(x):s(x,m,p)},de=()=>{x._isLeaving&&x[wl](!0),I(x,()=>{X(),q&&q()})};H?H(x,X,de):de()}else s(x,m,p)},Ne=(d,m,p,b=!1,w=!1)=>{const{type:x,props:T,ref:A,children:E,dynamicChildren:C,shapeFlag:U,patchFlag:I,dirs:H,cacheIndex:q}=d;if(I===-2&&(w=!1),A!=null&&(dt(),un(A,null,p,d,!0),ht()),q!=null&&(m.renderCache[q]=void 0),U&256){m.ctx.deactivate(d);return}const X=U&1&&H,de=!zt(d);let le;if(de&&(le=T&&T.onVnodeBeforeUnmount)&&tt(le,m,d),U&6)At(d.component,p,b);else{if(U&128){d.suspense.unmount(p,b);return}X&&$t(d,null,m,"beforeUnmount"),U&64?d.type.remove(d,m,p,V,b):C&&!C.hasOnce&&(x!==Y||I>0&&I&64)?Be(C,m,p,!1,!0):(x===Y&&I&384||!w&&U&16)&&Be(E,m,p),b&&Vt(d)}(de&&(le=T&&T.onVnodeUnmounted)||X)&&Fe(()=>{le&&tt(le,m,d),X&&$t(d,null,m,"unmounted")},p)},Vt=d=>{const{type:m,el:p,anchor:b,transition:w}=d;if(m===Y){Bt(p,b);return}if(m===cs){j(d);return}const x=()=>{r(p),w&&!w.persisted&&w.afterLeave&&w.afterLeave()};if(d.shapeFlag&1&&w&&!w.persisted){const{leave:T,delayLeave:A}=w,E=()=>T(p,x);A?A(d.el,x,E):E()}else x()},Bt=(d,m)=>{let p;for(;d!==m;)p=g(d),r(d),d=p;r(m)},At=(d,m,p)=>{const{bum:b,scope:w,job:x,subTree:T,um:A,m:E,a:C}=d;xr(E),xr(C),b&&Pn(b),w.stop(),x&&(x.flags|=8,Ne(T,d,m,p)),A&&Fe(A,m),Fe(()=>{d.isUnmounted=!0},m)},Be=(d,m,p,b=!1,w=!1,x=0)=>{for(let T=x;T{if(d.shapeFlag&6)return _(d.component.subTree);if(d.shapeFlag&128)return d.suspense.next();const m=g(d.anchor||d.el),p=m&&m[bl];return p?g(p):m};let L=!1;const O=(d,m,p)=>{d==null?m._vnode&&Ne(m._vnode,null,null,!0):P(m._vnode||null,d,m,null,null,null,p),m._vnode=d,L||(L=!0,cr(),Ao(),L=!1)},V={p:P,um:Ne,m:Qe,r:Vt,mt:en,mc:Ce,pc:te,pbc:Je,n:_,o:e};return{render:O,hydrate:void 0,createApp:Ul(O)}}function as({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function Pt({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function aa(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function ei(e,t,n=!1){const s=e.children,r=t.children;if(G(s)&&G(r))for(let o=0;o>1,e[n[l]]0&&(t[s]=n[o-1]),n[o]=s)}}for(o=n.length,i=n[o-1];o-- >0;)n[o]=i,i=t[i];return n}function ti(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:ti(t)}function xr(e){if(e)for(let t=0;te.__isSuspense;function ua(e,t){t&&t.pendingBranch?G(e)?t.effects.push(...e):t.effects.push(e):vl(e)}const Y=Symbol.for("v-fgt"),Qn=Symbol.for("v-txt"),gt=Symbol.for("v-cmt"),cs=Symbol.for("v-stc"),hn=[];let Ve=null;function v(e=!1){hn.push(Ve=e?null:[])}function fa(){hn.pop(),Ve=hn[hn.length-1]||null}let vn=1;function jn(e,t=!1){vn+=e,e<0&&Ve&&t&&(Ve.hasOnce=!0)}function si(e){return e.dynamicChildren=vn>0?Ve||qt:null,fa(),vn>0&&Ve&&Ve.push(e),e}function k(e,t,n,s,r,o){return si(f(e,t,n,s,r,o,!0))}function ie(e,t,n,s,r){return si(M(e,t,n,s,r,!0))}function xn(e){return e?e.__v_isVNode===!0:!1}function sn(e,t){return e.type===t.type&&e.key===t.key}const ri=({key:e})=>e??null,Tn=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?pe(e)||Ae(e)||K(e)?{i:we,r:e,k:t,f:!!n}:e:null);function f(e,t=null,n=null,s=0,r=null,o=e===Y?0:1,i=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&ri(t),ref:t&&Tn(t),scopeId:Po,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:s,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:we};return l?(zs(a,n),o&128&&e.normalize(a)):n&&(a.shapeFlag|=pe(n)?8:16),vn>0&&!i&&Ve&&(a.patchFlag>0||o&6)&&a.patchFlag!==32&&Ve.push(a),a}const M=da;function da(e,t=null,n=null,s=0,r=null,o=!1){if((!e||e===Lo)&&(e=gt),xn(e)){const l=Qt(e,t,!0);return n&&zs(l,n),vn>0&&!o&&Ve&&(l.shapeFlag&6?Ve[Ve.indexOf(e)]=l:Ve.push(l)),l.patchFlag=-2,l}if(Ca(e)&&(e=e.__vccOpts),t){t=ha(t);let{class:l,style:a}=t;l&&!pe(l)&&(t.class=J(l)),fe(a)&&(Us(a)&&!G(a)&&(a=Pe({},a)),t.style=St(a))}const i=pe(e)?1:ni(e)?128:_l(e)?64:fe(e)?4:K(e)?2:0;return f(e,t,n,s,r,i,o,!0)}function ha(e){return e?Us(e)||zo(e)?Pe({},e):e:null}function Qt(e,t,n=!1,s=!1){const{props:r,ref:o,patchFlag:i,children:l,transition:a}=e,c=t?ma(r||{},t):r,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&ri(c),ref:t&&t.ref?n&&o?G(o)?o.concat(Tn(t)):[o,Tn(t)]:Tn(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Y?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:a,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Qt(e.ssContent),ssFallback:e.ssFallback&&Qt(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return a&&s&&qs(u,a.clone(u)),u}function ce(e=" ",t=0){return M(Qn,null,e,t)}function W(e="",t=!1){return t?(v(),ie(gt,null,e)):M(gt,null,e)}function st(e){return e==null||typeof e=="boolean"?M(gt):G(e)?M(Y,null,e.slice()):xn(e)?kt(e):M(Qn,null,String(e))}function kt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Qt(e)}function zs(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(G(t))n=16;else if(typeof t=="object")if(s&65){const r=t.default;r&&(r._c&&(r._d=!1),zs(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!zo(t)?t._ctx=we:r===3&&we&&(we.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else K(t)?(t={default:t,_ctx:we},n=32):(t=String(t),s&64?(n=16,t=[ce(t)]):n=8);e.children=t,e.shapeFlag|=n}function ma(...e){const t={};for(let n=0;nEe||we;let Fn,Es;{const e=Gn(),t=(n,s)=>{let r;return(r=e[n])||(r=e[n]=[]),r.push(s),o=>{r.length>1?r.forEach(i=>i(o)):r[0](o)}};Fn=t("__VUE_INSTANCE_SETTERS__",n=>Ee=n),Es=t("__VUE_SSR_SETTERS__",n=>bn=n)}const Rn=e=>{const t=Ee;return Fn(e),e.scope.on(),()=>{e.scope.off(),Fn(t)}},br=()=>{Ee&&Ee.scope.off(),Fn(null)};function oi(e){return e.vnode.shapeFlag&4}let bn=!1;function xa(e,t=!1,n=!1){t&&Es(t);const{props:s,children:r}=e.vnode,o=oi(e);ea(e,s,o,t),ra(e,r,n||t);const i=o?ba(e,t):void 0;return t&&Es(!1),i}function ba(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Dl);const{setup:s}=n;if(s){dt();const r=e.setupContext=s.length>1?wa(e):null,o=Rn(e),i=Cn(s,e,0,[e.props,r]),l=Zr(i);if(ht(),o(),(l||e.sp)&&!zt(e)&&Oo(e),l){if(i.then(br,br),t)return i.then(a=>{_r(e,a)}).catch(a=>{zn(a,e,0)});e.asyncDep=i}else _r(e,i)}else ii(e)}function _r(e,t,n){K(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:fe(t)&&(e.setupState=Co(t)),ii(e)}function ii(e,t,n){const s=e.type;e.render||(e.render=s.render||rt);{const r=Rn(e);dt();try{Ll(e)}finally{ht(),r()}}}const _a={get(e,t){return Se(e,"get",""),e[t]}};function wa(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,_a),slots:e.slots,emit:e.emit,expose:t}}function Xn(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Co(al(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in fn)return fn[n](e)},has(t,n){return n in t||n in fn}})):e.proxy}function ka(e,t=!0){return K(e)?e.displayName||e.name:e.name||t&&e.__name}function Ca(e){return K(e)&&"__vccOpts"in e}const oe=(e,t)=>hl(e,t,bn);function li(e,t,n){try{jn(-1);const s=arguments.length;return s===2?fe(t)&&!G(t)?xn(t)?M(e,null,[t]):M(e,t):M(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&xn(n)&&(n=[n]),M(e,t,n))}finally{jn(1)}}const Ra="3.5.25";/** +* @vue/runtime-dom v3.5.25 +* (c) 2018-present Yuxi (Evan) You and Vue contributors +* @license MIT +**/let As;const wr=typeof window<"u"&&window.trustedTypes;if(wr)try{As=wr.createPolicy("vue",{createHTML:e=>e})}catch{}const ai=As?e=>As.createHTML(e):e=>e,Sa="http://www.w3.org/2000/svg",Ea="http://www.w3.org/1998/Math/MathML",ct=typeof document<"u"?document:null,kr=ct&&ct.createElement("template"),Aa={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const r=t==="svg"?ct.createElementNS(Sa,e):t==="mathml"?ct.createElementNS(Ea,e):n?ct.createElement(e,{is:n}):ct.createElement(e);return e==="select"&&s&&s.multiple!=null&&r.setAttribute("multiple",s.multiple),r},createText:e=>ct.createTextNode(e),createComment:e=>ct.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>ct.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,r,o){const i=n?n.previousSibling:t.lastChild;if(r&&(r===o||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===o||!(r=r.nextSibling)););else{kr.innerHTML=ai(s==="svg"?`${e}`:s==="mathml"?`${e}`:e);const l=kr.content;if(s==="svg"||s==="mathml"){const a=l.firstChild;for(;a.firstChild;)l.appendChild(a.firstChild);l.removeChild(a)}t.insertBefore(l,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},$a=Symbol("_vtc");function Pa(e,t,n){const s=e[$a];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Cr=Symbol("_vod"),Ta=Symbol("_vsh"),Oa=Symbol(""),Ia=/(?:^|;)\s*display\s*:/;function Na(e,t,n){const s=e.style,r=pe(n);let o=!1;if(n&&!r){if(t)if(pe(t))for(const i of t.split(";")){const l=i.slice(0,i.indexOf(":")).trim();n[l]==null&&On(s,l,"")}else for(const i in t)n[i]==null&&On(s,i,"");for(const i in n)i==="display"&&(o=!0),On(s,i,n[i])}else if(r){if(t!==n){const i=s[Oa];i&&(n+=";"+i),s.cssText=n,o=Ia.test(n)}}else t&&e.removeAttribute("style");Cr in e&&(e[Cr]=o?s.display:"",e[Ta]&&(s.display="none"))}const Rr=/\s*!important$/;function On(e,t,n){if(G(n))n.forEach(s=>On(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=Ma(e,t);Rr.test(n)?e.setProperty(Lt(s),n.replace(Rr,""),"important"):e[s]=n}}const Sr=["Webkit","Moz","ms"],us={};function Ma(e,t){const n=us[t];if(n)return n;let s=Ge(t);if(s!=="filter"&&s in e)return us[t]=s;s=Un(s);for(let r=0;rfs||(Fa.then(()=>fs=0),fs=Date.now());function Ba(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;ot(Ha(s,n.value),t,5,[s])};return n.value=e,n.attached=Va(),n}function Ha(e,t){if(G(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(s=>r=>!r._stopped&&s&&s(r))}else return t}const Or=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Ua=(e,t,n,s,r,o)=>{const i=r==="svg";t==="class"?Pa(e,s,i):t==="style"?Na(e,n,s):Vn(t)?Ns(t)||La(e,t,n,s,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Ga(e,t,s,i))?($r(e,t,s),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Ar(e,t,s,i,o,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!pe(s))?$r(e,Ge(t),s,o,t):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),Ar(e,t,s,i))};function Ga(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&Or(t)&&K(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return Or(t)&&pe(n)?!1:t in e}const Ir=e=>{const t=e.props["onUpdate:modelValue"]||!1;return G(t)?n=>Pn(t,n):t},ds=Symbol("_assign"),qa={deep:!0,created(e,t,n){e[ds]=Ir(n),ci(e,"change",()=>{const s=e._modelValue,r=Ka(e),o=e.checked,i=e[ds];if(G(s)){const l=ro(s,r),a=l!==-1;if(o&&!a)i(s.concat(r));else if(!o&&a){const c=[...s];c.splice(l,1),i(c)}}else if(Bn(s)){const l=new Set(s);o?l.add(r):l.delete(r),i(l)}else i(ui(e,o))})},mounted:Nr,beforeUpdate(e,t,n){e[ds]=Ir(n),Nr(e,t,n)}};function Nr(e,{value:t,oldValue:n},s){e._modelValue=t;let r;if(G(t))r=ro(t,s.props.value)>-1;else if(Bn(t))r=t.has(s.props.value);else{if(t===n)return;r=qn(t,ui(e,!0))}e.checked!==r&&(e.checked=r)}function Ka(e){return"_value"in e?e._value:e.value}function ui(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const Wa=["ctrl","shift","alt","meta"],za={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>Wa.some(n=>e[`${n}Key`]&&!t.includes(n))},Js=(e,t)=>{const n=e._withMods||(e._withMods={}),s=t.join(".");return n[s]||(n[s]=(r,...o)=>{for(let i=0;i{const t=Ya().createApp(...e),{mount:n}=t;return t.mount=s=>{const r=Za(s);if(!r)return;const o=t._component;!K(o)&&!o.render&&!o.template&&(o.template=r.innerHTML),r.nodeType===1&&(r.textContent="");const i=n(r,!1,Xa(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),i},t};function Xa(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Za(e){return pe(e)?document.querySelector(e):e}/*! + * vue-router v4.6.3 + * (c) 2025 Eduardo San Martin Morote + * @license MIT + */const Gt=typeof document<"u";function fi(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function ec(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&fi(e.default)}const ne=Object.assign;function hs(e,t){const n={};for(const s in t){const r=t[s];n[s]=ze(r)?r.map(e):e(r)}return n}const mn=()=>{},ze=Array.isArray;function Dr(e,t){const n={};for(const s in e)n[s]=s in t?t[s]:e[s];return n}const di=/#/g,tc=/&/g,nc=/\//g,sc=/=/g,rc=/\?/g,hi=/\+/g,oc=/%5B/g,ic=/%5D/g,mi=/%5E/g,lc=/%60/g,gi=/%7B/g,ac=/%7C/g,pi=/%7D/g,cc=/%20/g;function Ys(e){return e==null?"":encodeURI(""+e).replace(ac,"|").replace(oc,"[").replace(ic,"]")}function uc(e){return Ys(e).replace(gi,"{").replace(pi,"}").replace(mi,"^")}function $s(e){return Ys(e).replace(hi,"%2B").replace(cc,"+").replace(di,"%23").replace(tc,"%26").replace(lc,"`").replace(gi,"{").replace(pi,"}").replace(mi,"^")}function fc(e){return $s(e).replace(sc,"%3D")}function dc(e){return Ys(e).replace(di,"%23").replace(rc,"%3F")}function hc(e){return dc(e).replace(nc,"%2F")}function _n(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const mc=/\/$/,gc=e=>e.replace(mc,"");function ms(e,t,n="/"){let s,r={},o="",i="";const l=t.indexOf("#");let a=t.indexOf("?");return a=l>=0&&a>l?-1:a,a>=0&&(s=t.slice(0,a),o=t.slice(a,l>0?l:t.length),r=e(o.slice(1))),l>=0&&(s=s||t.slice(0,l),i=t.slice(l,t.length)),s=xc(s??t,n),{fullPath:s+o+i,path:s,query:r,hash:_n(i)}}function pc(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Lr(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function yc(e,t,n){const s=t.matched.length-1,r=n.matched.length-1;return s>-1&&s===r&&Xt(t.matched[s],n.matched[r])&&yi(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Xt(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function yi(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!vc(e[n],t[n]))return!1;return!0}function vc(e,t){return ze(e)?jr(e,t):ze(t)?jr(t,e):e===t}function jr(e,t){return ze(t)?e.length===t.length&&e.every((n,s)=>n===t[s]):e.length===1&&e[0]===t}function xc(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),s=e.split("/"),r=s[s.length-1];(r===".."||r===".")&&s.push("");let o=n.length-1,i,l;for(i=0;i1&&o--;else break;return n.slice(0,o).join("/")+"/"+s.slice(i).join("/")}const bt={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let Ps=function(e){return e.pop="pop",e.push="push",e}({}),gs=function(e){return e.back="back",e.forward="forward",e.unknown="",e}({});function bc(e){if(!e)if(Gt){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),gc(e)}const _c=/^[^#]+#/;function wc(e,t){return e.replace(_c,"#")+t}function kc(e,t){const n=document.documentElement.getBoundingClientRect(),s=e.getBoundingClientRect();return{behavior:t.behavior,left:s.left-n.left-(t.left||0),top:s.top-n.top-(t.top||0)}}const Zn=()=>({left:window.scrollX,top:window.scrollY});function Cc(e){let t;if("el"in e){const n=e.el,s=typeof n=="string"&&n.startsWith("#"),r=typeof n=="string"?s?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!r)return;t=kc(r,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function Fr(e,t){return(history.state?history.state.position-t:-1)+e}const Ts=new Map;function Rc(e,t){Ts.set(e,t)}function Sc(e){const t=Ts.get(e);return Ts.delete(e),t}function Ec(e){return typeof e=="string"||e&&typeof e=="object"}function vi(e){return typeof e=="string"||typeof e=="symbol"}let ge=function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e}({});const xi=Symbol("");ge.MATCHER_NOT_FOUND+"",ge.NAVIGATION_GUARD_REDIRECT+"",ge.NAVIGATION_ABORTED+"",ge.NAVIGATION_CANCELLED+"",ge.NAVIGATION_DUPLICATED+"";function Zt(e,t){return ne(new Error,{type:e,[xi]:!0},t)}function at(e,t){return e instanceof Error&&xi in e&&(t==null||!!(e.type&t))}const Ac=["params","query","hash"];function $c(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const n of Ac)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}function Pc(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let s=0;sr&&$s(r)):[s&&$s(s)]).forEach(r=>{r!==void 0&&(t+=(t.length?"&":"")+n,r!=null&&(t+="="+r))})}return t}function Tc(e){const t={};for(const n in e){const s=e[n];s!==void 0&&(t[n]=ze(s)?s.map(r=>r==null?null:""+r):s==null?s:""+s)}return t}const Oc=Symbol(""),Br=Symbol(""),Qs=Symbol(""),Xs=Symbol(""),Os=Symbol("");function rn(){let e=[];function t(s){return e.push(s),()=>{const r=e.indexOf(s);r>-1&&e.splice(r,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Ct(e,t,n,s,r,o=i=>i()){const i=s&&(s.enterCallbacks[r]=s.enterCallbacks[r]||[]);return()=>new Promise((l,a)=>{const c=g=>{g===!1?a(Zt(ge.NAVIGATION_ABORTED,{from:n,to:t})):g instanceof Error?a(g):Ec(g)?a(Zt(ge.NAVIGATION_GUARD_REDIRECT,{from:t,to:g})):(i&&s.enterCallbacks[r]===i&&typeof g=="function"&&i.push(g),l())},u=o(()=>e.call(s&&s.instances[r],t,n,c));let h=Promise.resolve(u);e.length<3&&(h=h.then(c)),h.catch(g=>a(g))})}function ps(e,t,n,s,r=o=>o()){const o=[];for(const i of e)for(const l in i.components){let a=i.components[l];if(!(t!=="beforeRouteEnter"&&!i.instances[l]))if(fi(a)){const c=(a.__vccOpts||a)[t];c&&o.push(Ct(c,n,s,i,l,r))}else{let c=a();o.push(()=>c.then(u=>{if(!u)throw new Error(`Couldn't resolve component "${l}" at "${i.path}"`);const h=ec(u)?u.default:u;i.mods[l]=u,i.components[l]=h;const g=(h.__vccOpts||h)[t];return g&&Ct(g,n,s,i,l,r)()}))}}return o}function Ic(e,t){const n=[],s=[],r=[],o=Math.max(t.matched.length,e.matched.length);for(let i=0;iXt(c,l))?s.push(l):n.push(l));const a=e.matched[i];a&&(t.matched.find(c=>Xt(c,a))||r.push(a))}return[n,s,r]}/*! + * vue-router v4.6.3 + * (c) 2025 Eduardo San Martin Morote + * @license MIT + */let Nc=()=>location.protocol+"//"+location.host;function bi(e,t){const{pathname:n,search:s,hash:r}=t,o=e.indexOf("#");if(o>-1){let i=r.includes(e.slice(o))?e.slice(o).length:1,l=r.slice(i);return l[0]!=="/"&&(l="/"+l),Lr(l,"")}return Lr(n,e)+s+r}function Mc(e,t,n,s){let r=[],o=[],i=null;const l=({state:g})=>{const y=bi(e,location),S=n.value,P=t.value;let B=0;if(g){if(n.value=y,t.value=g,i&&i===S){i=null;return}B=P?g.position-P.position:0}else s(y);r.forEach($=>{$(n.value,S,{delta:B,type:Ps.pop,direction:B?B>0?gs.forward:gs.back:gs.unknown})})};function a(){i=n.value}function c(g){r.push(g);const y=()=>{const S=r.indexOf(g);S>-1&&r.splice(S,1)};return o.push(y),y}function u(){if(document.visibilityState==="hidden"){const{history:g}=window;if(!g.state)return;g.replaceState(ne({},g.state,{scroll:Zn()}),"")}}function h(){for(const g of o)g();o=[],window.removeEventListener("popstate",l),window.removeEventListener("pagehide",u),document.removeEventListener("visibilitychange",u)}return window.addEventListener("popstate",l),window.addEventListener("pagehide",u),document.addEventListener("visibilitychange",u),{pauseListeners:a,listen:c,destroy:h}}function Hr(e,t,n,s=!1,r=!1){return{back:e,current:t,forward:n,replaced:s,position:window.history.length,scroll:r?Zn():null}}function Dc(e){const{history:t,location:n}=window,s={value:bi(e,n)},r={value:t.state};r.value||o(s.value,{back:null,current:s.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(a,c,u){const h=e.indexOf("#"),g=h>-1?(n.host&&document.querySelector("base")?e:e.slice(h))+a:Nc()+e+a;try{t[u?"replaceState":"pushState"](c,"",g),r.value=c}catch(y){console.error(y),n[u?"replace":"assign"](g)}}function i(a,c){o(a,ne({},t.state,Hr(r.value.back,a,r.value.forward,!0),c,{position:r.value.position}),!0),s.value=a}function l(a,c){const u=ne({},r.value,t.state,{forward:a,scroll:Zn()});o(u.current,u,!0),o(a,ne({},Hr(s.value,a,null),{position:u.position+1},c),!1),s.value=a}return{location:s,state:r,push:l,replace:i}}function Lc(e){e=bc(e);const t=Dc(e),n=Mc(e,t.state,t.location,t.replace);function s(o,i=!0){i||n.pauseListeners(),history.go(o)}const r=ne({location:"",base:e,go:s,createHref:wc.bind(null,e)},t,n);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>t.state.value}),r}function jc(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),Lc(e)}let Ot=function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e}({});var ve=function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e}(ve||{});const Fc={type:Ot.Static,value:""},Vc=/[a-zA-Z0-9_]/;function Bc(e){if(!e)return[[]];if(e==="/")return[[Fc]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(y){throw new Error(`ERR (${n})/"${c}": ${y}`)}let n=ve.Static,s=n;const r=[];let o;function i(){o&&r.push(o),o=[]}let l=0,a,c="",u="";function h(){c&&(n===ve.Static?o.push({type:Ot.Static,value:c}):n===ve.Param||n===ve.ParamRegExp||n===ve.ParamRegExpEnd?(o.length>1&&(a==="*"||a==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),o.push({type:Ot.Param,value:c,regexp:u,repeatable:a==="*"||a==="+",optional:a==="*"||a==="?"})):t("Invalid state to consume buffer"),c="")}function g(){c+=a}for(;lt.length?t.length===1&&t[0]===Oe.Static+Oe.Segment?1:-1:0}function _i(e,t){let n=0;const s=e.score,r=t.score;for(;n0&&t[t.length-1]<0}const Kc={strict:!1,end:!0,sensitive:!1};function Wc(e,t,n){const s=Gc(Bc(e.path),n),r=ne(s,{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf==!t.record.aliasOf&&t.children.push(r),r}function zc(e,t){const n=[],s=new Map;t=Dr(Kc,t);function r(h){return s.get(h)}function o(h,g,y){const S=!y,P=Kr(h);P.aliasOf=y&&y.record;const B=Dr(t,h),$=[P];if("alias"in h){const j=typeof h.alias=="string"?[h.alias]:h.alias;for(const ee of j)$.push(Kr(ne({},P,{components:y?y.record.components:P.components,path:ee,aliasOf:y?y.record:P})))}let D,F;for(const j of $){const{path:ee}=j;if(g&&ee[0]!=="/"){const ye=g.record.path,me=ye[ye.length-1]==="/"?"":"/";j.path=g.record.path+(ee&&me+ee)}if(D=Wc(j,g,B),y?y.alias.push(D):(F=F||D,F!==D&&F.alias.push(D),S&&h.name&&!Wr(D)&&i(h.name)),wi(D)&&a(D),P.children){const ye=P.children;for(let me=0;me{i(F)}:mn}function i(h){if(vi(h)){const g=s.get(h);g&&(s.delete(h),n.splice(n.indexOf(g),1),g.children.forEach(i),g.alias.forEach(i))}else{const g=n.indexOf(h);g>-1&&(n.splice(g,1),h.record.name&&s.delete(h.record.name),h.children.forEach(i),h.alias.forEach(i))}}function l(){return n}function a(h){const g=Qc(h,n);n.splice(g,0,h),h.record.name&&!Wr(h)&&s.set(h.record.name,h)}function c(h,g){let y,S={},P,B;if("name"in h&&h.name){if(y=s.get(h.name),!y)throw Zt(ge.MATCHER_NOT_FOUND,{location:h});B=y.record.name,S=ne(qr(g.params,y.keys.filter(F=>!F.optional).concat(y.parent?y.parent.keys.filter(F=>F.optional):[]).map(F=>F.name)),h.params&&qr(h.params,y.keys.map(F=>F.name))),P=y.stringify(S)}else if(h.path!=null)P=h.path,y=n.find(F=>F.re.test(P)),y&&(S=y.parse(P),B=y.record.name);else{if(y=g.name?s.get(g.name):n.find(F=>F.re.test(g.path)),!y)throw Zt(ge.MATCHER_NOT_FOUND,{location:h,currentLocation:g});B=y.record.name,S=ne({},g.params,h.params),P=y.stringify(S)}const $=[];let D=y;for(;D;)$.unshift(D.record),D=D.parent;return{name:B,path:P,params:S,matched:$,meta:Yc($)}}e.forEach(h=>o(h));function u(){n.length=0,s.clear()}return{addRoute:o,resolve:c,removeRoute:i,clearRoutes:u,getRoutes:l,getRecordMatcher:r}}function qr(e,t){const n={};for(const s of t)s in e&&(n[s]=e[s]);return n}function Kr(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:Jc(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function Jc(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const s in e.components)t[s]=typeof n=="object"?n[s]:n;return t}function Wr(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Yc(e){return e.reduce((t,n)=>ne(t,n.meta),{})}function Qc(e,t){let n=0,s=t.length;for(;n!==s;){const o=n+s>>1;_i(e,t[o])<0?s=o:n=o+1}const r=Xc(e);return r&&(s=t.lastIndexOf(r,s-1)),s}function Xc(e){let t=e;for(;t=t.parent;)if(wi(t)&&_i(e,t)===0)return t}function wi({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function zr(e){const t=$e(Qs),n=$e(Xs),s=oe(()=>{const a=N(e.to);return t.resolve(a)}),r=oe(()=>{const{matched:a}=s.value,{length:c}=a,u=a[c-1],h=n.matched;if(!u||!h.length)return-1;const g=h.findIndex(Xt.bind(null,u));if(g>-1)return g;const y=Jr(a[c-2]);return c>1&&Jr(u)===y&&h[h.length-1].path!==y?h.findIndex(Xt.bind(null,a[c-2])):g}),o=oe(()=>r.value>-1&&nu(n.params,s.value.params)),i=oe(()=>r.value>-1&&r.value===n.matched.length-1&&yi(n.params,s.value.params));function l(a={}){if(tu(a)){const c=t[N(e.replace)?"replace":"push"](N(e.to)).catch(mn);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>c),c}return Promise.resolve()}return{route:s,href:oe(()=>s.value.href),isActive:o,isExactActive:i,navigate:l}}function Zc(e){return e.length===1?e[0]:e}const eu=To({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:zr,setup(e,{slots:t}){const n=Wn(zr(e)),{options:s}=$e(Qs),r=oe(()=>({[Yr(e.activeClass,s.linkActiveClass,"router-link-active")]:n.isActive,[Yr(e.exactActiveClass,s.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&Zc(t.default(n));return e.custom?o:li("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:r.value},o)}}}),Re=eu;function tu(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function nu(e,t){for(const n in t){const s=t[n],r=e[n];if(typeof s=="string"){if(s!==r)return!1}else if(!ze(r)||r.length!==s.length||s.some((o,i)=>o!==r[i]))return!1}return!0}function Jr(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Yr=(e,t,n)=>e??t??n,su=To({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const s=$e(Os),r=oe(()=>e.route||s.value),o=$e(Br,0),i=oe(()=>{let c=N(o);const{matched:u}=r.value;let h;for(;(h=u[c])&&!h.components;)c++;return c}),l=oe(()=>r.value.matched[i.value]);dn(Br,oe(()=>i.value+1)),dn(Oc,l),dn(Os,r);const a=ke();return Ue(()=>[a.value,l.value,e.name],([c,u,h],[g,y,S])=>{u&&(u.instances[h]=c,y&&y!==u&&c&&c===g&&(u.leaveGuards.size||(u.leaveGuards=y.leaveGuards),u.updateGuards.size||(u.updateGuards=y.updateGuards))),c&&u&&(!y||!Xt(u,y)||!g)&&(u.enterCallbacks[h]||[]).forEach(P=>P(c))},{flush:"post"}),()=>{const c=r.value,u=e.name,h=l.value,g=h&&h.components[u];if(!g)return Qr(n.default,{Component:g,route:c});const y=h.props[u],S=y?y===!0?c.params:typeof y=="function"?y(c):y:null,B=li(g,ne({},S,t,{onVnodeUnmounted:$=>{$.component.isUnmounted&&(h.instances[u]=null)},ref:a}));return Qr(n.default,{Component:B,route:c})||B}}});function Qr(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const ru=su;function ou(e){const t=zc(e.routes,e),n=e.parseQuery||Pc,s=e.stringifyQuery||Vr,r=e.history,o=rn(),i=rn(),l=rn(),a=cl(bt);let c=bt;Gt&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=hs.bind(null,_=>""+_),h=hs.bind(null,hc),g=hs.bind(null,_n);function y(_,L){let O,V;return vi(_)?(O=t.getRecordMatcher(_),V=L):V=_,t.addRoute(V,O)}function S(_){const L=t.getRecordMatcher(_);L&&t.removeRoute(L)}function P(){return t.getRoutes().map(_=>_.record)}function B(_){return!!t.getRecordMatcher(_)}function $(_,L){if(L=ne({},L||a.value),typeof _=="string"){const p=ms(n,_,L.path),b=t.resolve({path:p.path},L),w=r.createHref(p.fullPath);return ne(p,b,{params:g(b.params),hash:_n(p.hash),redirectedFrom:void 0,href:w})}let O;if(_.path!=null)O=ne({},_,{path:ms(n,_.path,L.path).path});else{const p=ne({},_.params);for(const b in p)p[b]==null&&delete p[b];O=ne({},_,{params:h(p)}),L.params=h(L.params)}const V=t.resolve(O,L),Q=_.hash||"";V.params=u(g(V.params));const d=pc(s,ne({},_,{hash:uc(Q),path:V.path})),m=r.createHref(d);return ne({fullPath:d,hash:Q,query:s===Vr?Tc(_.query):_.query||{}},V,{redirectedFrom:void 0,href:m})}function D(_){return typeof _=="string"?ms(n,_,a.value.path):ne({},_)}function F(_,L){if(c!==_)return Zt(ge.NAVIGATION_CANCELLED,{from:L,to:_})}function j(_){return me(_)}function ee(_){return j(ne(D(_),{replace:!0}))}function ye(_,L){const O=_.matched[_.matched.length-1];if(O&&O.redirect){const{redirect:V}=O;let Q=typeof V=="function"?V(_,L):V;return typeof Q=="string"&&(Q=Q.includes("?")||Q.includes("#")?Q=D(Q):{path:Q},Q.params={}),ne({query:_.query,hash:_.hash,params:Q.path!=null?{}:_.params},Q)}}function me(_,L){const O=c=$(_),V=a.value,Q=_.state,d=_.force,m=_.replace===!0,p=ye(O,V);if(p)return me(ne(D(p),{state:typeof p=="object"?ne({},Q,p.state):Q,force:d,replace:m}),L||O);const b=O;b.redirectedFrom=L;let w;return!d&&yc(s,V,O)&&(w=Zt(ge.NAVIGATION_DUPLICATED,{to:b,from:V}),Qe(V,V,!0,!1)),(w?Promise.resolve(w):Je(b,V)).catch(x=>at(x)?at(x,ge.NAVIGATION_GUARD_REDIRECT)?x:xt(x):te(x,b,V)).then(x=>{if(x){if(at(x,ge.NAVIGATION_GUARD_REDIRECT))return me(ne({replace:m},D(x.to),{state:typeof x.to=="object"?ne({},Q,x.to.state):Q,force:d}),L||b)}else x=Et(b,V,!0,m,Q);return vt(b,V,x),x})}function Ce(_,L){const O=F(_,L);return O?Promise.reject(O):Promise.resolve()}function yt(_){const L=Bt.values().next().value;return L&&typeof L.runWithContext=="function"?L.runWithContext(_):_()}function Je(_,L){let O;const[V,Q,d]=Ic(_,L);O=ps(V.reverse(),"beforeRouteLeave",_,L);for(const p of V)p.leaveGuards.forEach(b=>{O.push(Ct(b,_,L))});const m=Ce.bind(null,_,L);return O.push(m),Be(O).then(()=>{O=[];for(const p of o.list())O.push(Ct(p,_,L));return O.push(m),Be(O)}).then(()=>{O=ps(Q,"beforeRouteUpdate",_,L);for(const p of Q)p.updateGuards.forEach(b=>{O.push(Ct(b,_,L))});return O.push(m),Be(O)}).then(()=>{O=[];for(const p of d)if(p.beforeEnter)if(ze(p.beforeEnter))for(const b of p.beforeEnter)O.push(Ct(b,_,L));else O.push(Ct(p.beforeEnter,_,L));return O.push(m),Be(O)}).then(()=>(_.matched.forEach(p=>p.enterCallbacks={}),O=ps(d,"beforeRouteEnter",_,L,yt),O.push(m),Be(O))).then(()=>{O=[];for(const p of i.list())O.push(Ct(p,_,L));return O.push(m),Be(O)}).catch(p=>at(p,ge.NAVIGATION_CANCELLED)?p:Promise.reject(p))}function vt(_,L,O){l.list().forEach(V=>yt(()=>V(_,L,O)))}function Et(_,L,O,V,Q){const d=F(_,L);if(d)return d;const m=L===bt,p=Gt?history.state:{};O&&(V||m?r.replace(_.fullPath,ne({scroll:m&&p&&p.scroll},Q)):r.push(_.fullPath,Q)),a.value=_,Qe(_,L,O,m),xt()}let Ye;function en(){Ye||(Ye=r.listen((_,L,O)=>{if(!At.listening)return;const V=$(_),Q=ye(V,At.currentRoute.value);if(Q){me(ne(Q,{replace:!0,force:!0}),V).catch(mn);return}c=V;const d=a.value;Gt&&Rc(Fr(d.fullPath,O.delta),Zn()),Je(V,d).catch(m=>at(m,ge.NAVIGATION_ABORTED|ge.NAVIGATION_CANCELLED)?m:at(m,ge.NAVIGATION_GUARD_REDIRECT)?(me(ne(D(m.to),{force:!0}),V).then(p=>{at(p,ge.NAVIGATION_ABORTED|ge.NAVIGATION_DUPLICATED)&&!O.delta&&O.type===Ps.pop&&r.go(-1,!1)}).catch(mn),Promise.reject()):(O.delta&&r.go(-O.delta,!1),te(m,V,d))).then(m=>{m=m||Et(V,d,!1),m&&(O.delta&&!at(m,ge.NAVIGATION_CANCELLED)?r.go(-O.delta,!1):O.type===Ps.pop&&at(m,ge.NAVIGATION_ABORTED|ge.NAVIGATION_DUPLICATED)&&r.go(-1,!1)),vt(V,d,m)}).catch(mn)}))}let Ft=rn(),be=rn(),ae;function te(_,L,O){xt(_);const V=be.list();return V.length?V.forEach(Q=>Q(_,L,O)):console.error(_),Promise.reject(_)}function it(){return ae&&a.value!==bt?Promise.resolve():new Promise((_,L)=>{Ft.add([_,L])})}function xt(_){return ae||(ae=!_,en(),Ft.list().forEach(([L,O])=>_?O(_):L()),Ft.reset()),_}function Qe(_,L,O,V){const{scrollBehavior:Q}=e;if(!Gt||!Q)return Promise.resolve();const d=!O&&Sc(Fr(_.fullPath,0))||(V||!O)&&history.state&&history.state.scroll||null;return So().then(()=>Q(_,L,d)).then(m=>m&&Cc(m)).catch(m=>te(m,_,L))}const Ne=_=>r.go(_);let Vt;const Bt=new Set,At={currentRoute:a,listening:!0,addRoute:y,removeRoute:S,clearRoutes:t.clearRoutes,hasRoute:B,getRoutes:P,resolve:$,options:e,push:j,replace:ee,go:Ne,back:()=>Ne(-1),forward:()=>Ne(1),beforeEach:o.add,beforeResolve:i.add,afterEach:l.add,onError:be.add,isReady:it,install(_){_.component("RouterLink",Re),_.component("RouterView",ru),_.config.globalProperties.$router=At,Object.defineProperty(_.config.globalProperties,"$route",{enumerable:!0,get:()=>N(a)}),Gt&&!Vt&&a.value===bt&&(Vt=!0,j(r.location).catch(V=>{}));const L={};for(const V in bt)Object.defineProperty(L,V,{get:()=>a.value[V],enumerable:!0});_.provide(Qs,At),_.provide(Xs,wo(L)),_.provide(Os,a);const O=_.unmount;Bt.add(_),_.unmount=function(){Bt.delete(_),Bt.size<1&&(c=bt,Ye&&Ye(),Ye=null,a.value=bt,Vt=!1,ae=!1),O()}}};function Be(_){return _.reduce((L,O)=>L.then(()=>yt(O)),Promise.resolve())}return At}function es(e){return $e(Xs)}const iu=["aria-label"],lu={key:0,class:"fas fa-moon text-purple-400"},au={key:1,class:"fas fa-sun text-yellow-500"},cu={__name:"ThemeToggle",setup(e){const t=ke(!1);jt(()=>{const r=localStorage.getItem("theme"),o=window.matchMedia("(prefers-color-scheme: dark)").matches;t.value=r==="dark"||!r&&o,n(),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",i=>{localStorage.getItem("theme")||(t.value=i.matches,n())})}),Ue(t,()=>{n(),localStorage.setItem("theme",t.value?"dark":"light")});function n(){t.value?document.documentElement.classList.add("dark"):document.documentElement.classList.remove("dark")}function s(){t.value=!t.value}return(r,o)=>(v(),k("button",{onClick:s,class:"p-2 rounded-lg hover:bg-gray-200 dark:hover:bg-gray-700 transition","aria-label":t.value?"Switch to light mode":"Switch to dark mode"},[t.value?(v(),k("i",lu)):(v(),k("i",au))],8,iu))}},uu={class:"sticky top-0 z-50 glass shadow-modern"},fu={class:"container mx-auto px-4"},du={class:"flex items-center justify-between h-16"},hu={class:"hidden md:flex items-center space-x-6"},mu={class:"flex items-center space-x-4"},gu={key:0,class:"md:hidden py-4 border-t border-gray-200 dark:border-gray-700"},pu={class:"flex flex-col space-y-3"},yu={__name:"Navbar",setup(e){const t=es(),n=$e("globalData"),s=ke(!1),r=oe(()=>{var o;return((o=n.value)==null?void 0:o.Repositories)||[]});return(o,i)=>(v(),k("nav",uu,[f("div",fu,[f("div",du,[M(N(Re),{to:"/",class:"flex items-center space-x-2"},{default:Z(()=>[...i[4]||(i[4]=[f("i",{class:"fas fa-rocket text-2xl gradient-text"},null,-1),f("span",{class:"text-xl font-bold gradient-text"},"Git Velocity",-1)])]),_:1}),f("div",hu,[M(N(Re),{to:"/",class:J(N(t).path==="/"?"nav-link-active":"nav-link")},{default:Z(()=>[...i[5]||(i[5]=[ce(" Dashboard ",-1)])]),_:1},8,["class"]),M(N(Re),{to:"/leaderboard",class:J(N(t).path==="/leaderboard"?"nav-link-active":"nav-link")},{default:Z(()=>[...i[6]||(i[6]=[ce(" Leaderboard ",-1)])]),_:1},8,["class"]),(v(!0),k(Y,null,xe(r.value,l=>(v(),ie(N(Re),{key:`${l.Owner}/${l.Name}`,to:`/repos/${l.Owner}/${l.Name}`,class:J(N(t).path.includes(`/repos/${l.Owner}/${l.Name}`)?"nav-link-active":"nav-link")},{default:Z(()=>[ce(R(l.Name),1)]),_:2},1032,["to","class"]))),128))]),f("div",mu,[M(cu),f("button",{onClick:i[0]||(i[0]=l=>s.value=!s.value),class:"md:hidden p-2 rounded-lg hover:bg-gray-200 dark:hover:bg-gray-700 transition"},[...i[7]||(i[7]=[f("i",{class:"fas fa-bars text-gray-700 dark:text-gray-200"},null,-1)])])])]),s.value?(v(),k("div",gu,[f("div",pu,[M(N(Re),{to:"/",onClick:i[1]||(i[1]=l=>s.value=!1),class:J(N(t).path==="/"?"nav-link-active":"nav-link")},{default:Z(()=>[...i[8]||(i[8]=[ce(" Dashboard ",-1)])]),_:1},8,["class"]),M(N(Re),{to:"/leaderboard",onClick:i[2]||(i[2]=l=>s.value=!1),class:J(N(t).path==="/leaderboard"?"nav-link-active":"nav-link")},{default:Z(()=>[...i[9]||(i[9]=[ce(" Leaderboard ",-1)])]),_:1},8,["class"]),(v(!0),k(Y,null,xe(r.value,l=>(v(),ie(N(Re),{key:`${l.Owner}/${l.Name}`,to:`/repos/${l.Owner}/${l.Name}`,onClick:i[3]||(i[3]=a=>s.value=!1),class:J(N(t).path.includes(`/repos/${l.Owner}/${l.Name}`)?"nav-link-active":"nav-link")},{default:Z(()=>[ce(R(l.Name),1)]),_:2},1032,["to","class"]))),128))])])):W("",!0)])]))}},vu={class:"py-8 px-4 mt-16 border-t border-gray-200 dark:border-gray-700"},xu={class:"container mx-auto text-center"},bu={key:0,class:"text-sm text-gray-400 dark:text-gray-500 mt-2"},_u={__name:"Footer",setup(e){const t=$e("globalData"),n=oe(()=>{var s;return(s=t.value)!=null&&s.GeneratedAt?new Date(t.value.GeneratedAt).toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"}):""});return(s,r)=>(v(),k("footer",vu,[f("div",xu,[r[0]||(r[0]=f("p",{class:"text-gray-500 dark:text-gray-400"},[ce(" Generated by "),f("a",{href:"https://github.com/lukaszraczylo/git-velocity",class:"text-primary-500 hover:text-primary-600",target:"_blank",rel:"noopener noreferrer"}," Git Velocity ")],-1)),n.value?(v(),k("p",bu,R(n.value),1)):W("",!0)])]))}},wu={class:"min-h-screen flex flex-col"},ku={class:"flex-1"},Cu={key:0,class:"flex items-center justify-center min-h-[60vh]"},Ru={key:1,class:"flex items-center justify-center min-h-[60vh]"},Su={class:"text-center"},Eu={class:"text-gray-600 dark:text-gray-400"},Au={__name:"App",setup(e){const t=ke(null),n=ke(!0),s=ke(null);return dn("globalData",t),jt(async()=>{try{const r=await fetch("./data/global.json");if(!r.ok)throw new Error("Failed to load data");t.value=await r.json()}catch(r){s.value=r.message}finally{n.value=!1}}),(r,o)=>{const i=Nl("router-view");return v(),k("div",wu,[M(yu),f("main",ku,[n.value?(v(),k("div",Cu,[...o[0]||(o[0]=[f("div",{class:"text-center"},[f("i",{class:"fas fa-spinner fa-spin text-4xl text-primary-500 mb-4"}),f("p",{class:"text-gray-600 dark:text-gray-400"},"Loading dashboard...")],-1)])])):s.value?(v(),k("div",Ru,[f("div",Su,[o[1]||(o[1]=f("i",{class:"fas fa-exclamation-triangle text-4xl text-red-500 mb-4"},null,-1)),f("p",Eu,R(s.value),1)])])):(v(),ie(i,{key:2}))]),M(_u)])}}};function z(e){return e==null?"0":e>=1e6?(e/1e6).toFixed(1)+"M":e>=1e3?(e/1e3).toFixed(1)+"K":String(e)}function $u(e){return e==null?"-":e<1?Math.round(e*60)+"m":e<24?e.toFixed(1)+"h":(e/24).toFixed(1)+"d"}function ys(e){return e?new Date(e).toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"}):""}function Pu(e){return e==null?"0%":e.toFixed(1)+"%"}function ki(e){return e?e.toLowerCase().replace(/\s+/g,"-").replace(/_/g,"-").replace(/[^a-z0-9-]/g,""):""}const Tu={class:"flex items-center justify-between"},Ou={class:"text-sm text-gray-500 dark:text-gray-400 mt-1"},_e={__name:"StatCard",props:{value:{type:[Number,String],required:!0},label:{type:String,required:!0},icon:{type:String,default:""},iconColor:{type:String,default:"text-gray-500"},valueClass:{type:String,default:"gradient-text"},delay:{type:String,default:"0s"}},setup(e){return(t,n)=>(v(),k("div",{class:"card animate-fade-in-up",style:St({animationDelay:e.delay})},[f("div",Tu,[f("div",null,[f("div",{class:J(["text-3xl font-bold",e.valueClass])},R(typeof e.value=="number"?N(z)(e.value):e.value),3),f("div",Ou,R(e.label),1)]),e.icon?(v(),k("div",{key:0,class:J(["text-3xl opacity-50",e.iconColor])},[f("i",{class:J(e.icon)},null,2)],2)):W("",!0)])],4))}},Iu=["src","alt"],Sn={__name:"Avatar",props:{src:{type:String,default:""},name:{type:String,required:!0},size:{type:String,default:"md"}},setup(e){const t=e,n={sm:"w-8 h-8 text-xs",md:"w-10 h-10 text-sm",lg:"w-14 h-14 text-xl",xl:"w-16 h-16 text-2xl","2xl":"w-32 h-32 text-4xl"},s=oe(()=>t.name.charAt(0).toUpperCase()),r=oe(()=>n[t.size]||n.md);return(o,i)=>e.src?(v(),k("img",{key:0,src:e.src,alt:e.name,class:J([r.value,"rounded-full"])},null,10,Iu)):(v(),k("div",{key:1,class:J([r.value,"rounded-full bg-gradient-to-br from-primary-500 to-accent-500 flex items-center justify-center text-white font-bold"])},R(s.value),3))}},Ci={__name:"RankBadge",props:{rank:{type:Number,required:!0},size:{type:String,default:"md"}},setup(e){const t=e,n={sm:"w-6 h-6 text-xs",md:"w-8 h-8 text-sm"},s=oe(()=>t.rank===1?"rank-1":t.rank===2?"rank-2":t.rank===3?"rank-3":"bg-gray-200 dark:bg-gray-700 text-gray-600 dark:text-gray-300"),r=oe(()=>n[t.size]||n.md);return(o,i)=>(v(),k("span",{class:J([[r.value,s.value,{"text-white":e.rank<=3}],"inline-flex items-center justify-center rounded-full font-bold"])},R(e.rank),3))}},Nu={class:"inline-flex flex-col items-center gap-2"},Mu=["title"],Du={class:"absolute bottom-full left-1/2 -translate-x-1/2 mb-3 px-3 py-2 bg-gray-900 dark:bg-gray-800 text-white text-xs rounded-xl opacity-0 group-hover/badge:opacity-100 transition-all duration-200 pointer-events-none whitespace-nowrap z-50 shadow-xl border border-white/10"},Lu={class:"font-bold text-sm"},ju={class:"text-gray-300 text-[11px] mt-0.5"},Fu={key:0,class:"text-[11px] font-medium text-gray-600 dark:text-gray-400 text-center leading-tight",style:{"max-width":"72px","word-wrap":"break-word"}},wn={__name:"AchievementBadge",props:{achievementId:{type:String,required:!0},size:{type:String,default:"md"},showLabel:{type:Boolean,default:!1}},setup(e){const t={1:"from-stone-400 to-stone-500",2:"from-green-400 to-emerald-500",3:"from-blue-400 to-indigo-500",4:"from-purple-400 to-violet-500",5:"from-yellow-400 to-amber-500",6:"from-orange-400 to-red-500",7:"from-red-500 to-rose-600",8:"from-pink-500 to-fuchsia-600",9:"from-cyan-400 to-teal-500",10:"from-emerald-400 to-cyan-500",11:"from-violet-500 to-purple-600"},n=l=>{const a=[1,10,25,50,100,250,500,1e3,5e3,1e4,25e3];for(let c=a.length-1;c>=0;c--)if(l>=a[c])return c+1;return 1},s=l=>{const a=l.match(/(\d+)$/);return a?parseInt(a[1],10):l==="first-commit"||l==="pr-opener"||l==="reviewer"?1:50},r={"first-commit":{name:"Hello World",description:"Made your first commit",icon:"fa-baby"},"commit-10":{name:"Seedling",description:"Made 10 commits",icon:"fa-seedling"},"commit-25":{name:"Momentum",description:"Made 25 commits",icon:"fa-wind"},"commit-50":{name:"Trailblazer",description:"Made 50 commits",icon:"fa-hiking"},"commit-100":{name:"Centurion",description:"Made 100 commits",icon:"fa-shield-halved"},"commit-250":{name:"Relentless",description:"Made 250 commits",icon:"fa-bolt-lightning"},"commit-500":{name:"Unstoppable",description:"Made 500 commits",icon:"fa-meteor"},"commit-1000":{name:"Grandmaster",description:"Made 1000 commits",icon:"fa-chess-king"},"commit-5000":{name:"Titan",description:"Made 5000 commits",icon:"fa-mountain-sun"},"commit-10000":{name:"Immortal",description:"Made 10000 commits",icon:"fa-dragon"},"commit-25000":{name:"Ascended",description:"Made 25000 commits",icon:"fa-infinity"},"pr-opener":{name:"First Blood",description:"Opened your first pull request",icon:"fa-flag-checkered"},"pr-10":{name:"Collaborator",description:"Opened 10 pull requests",icon:"fa-handshake"},"pr-25":{name:"Integrator",description:"Opened 25 pull requests",icon:"fa-code-branch"},"pr-50":{name:"Architect",description:"Opened 50 pull requests",icon:"fa-building"},"pr-100":{name:"Vanguard",description:"Opened 100 pull requests",icon:"fa-rocket"},reviewer:{name:"Watchful Eye",description:"Reviewed your first pull request",icon:"fa-eye"},"reviewer-10":{name:"Sentinel",description:"Reviewed 10 pull requests",icon:"fa-shield"},"reviewer-25":{name:"Gatekeeper",description:"Reviewed 25 pull requests",icon:"fa-dungeon"},"reviewer-50":{name:"Oracle",description:"Reviewed 50 pull requests",icon:"fa-hat-wizard"},"reviewer-100":{name:"Sage",description:"Reviewed 100 pull requests",icon:"fa-book-skull"},"speed-demon":{name:"Lightning Rod",description:"Average review response under 1 hour",icon:"fa-bolt"},"quick-responder":{name:"Flash",description:"Average review response under 4 hours",icon:"fa-gauge-high"},commentator:{name:"Wordsmith",description:"Left 50 PR review comments",icon:"fa-feather-pointed"},"lines-1000":{name:"Scribe",description:"Added 1000 lines of code",icon:"fa-scroll"},"lines-10000":{name:"Novelist",description:"Added 10000 lines of code",icon:"fa-book"},"lines-100000":{name:"Encyclopedia",description:"Added 100000 lines of code",icon:"fa-landmark"},cleaner:{name:"Pruner",description:"Deleted 1000 lines of code",icon:"fa-scissors"},refactorer:{name:"Surgeon",description:"Deleted 10000 lines of code",icon:"fa-syringe"},annihilator:{name:"Annihilator",description:"Deleted 100000 lines of code",icon:"fa-explosion"},"multi-repo":{name:"Nomad",description:"Contributed to 5 repositories",icon:"fa-compass"},"multi-repo-10":{name:"Explorer",description:"Contributed to 10 repositories",icon:"fa-map"},"team-player":{name:"Ambassador",description:"Reviewed PRs from 10 different contributors",icon:"fa-users"},"team-player-25":{name:"Diplomat",description:"Reviewed PRs from 25 different contributors",icon:"fa-globe"},"big-pr":{name:"Heavyweight",description:"Merged a PR with 1000+ lines",icon:"fa-dumbbell"},"mega-pr":{name:"Colossus",description:"Merged a PR with 5000+ lines",icon:"fa-monument"},"small-pr-10":{name:"Minimalist",description:"Merged 10 PRs under 100 lines",icon:"fa-compress"},"small-pr-50":{name:"Atomic",description:"Merged 50 PRs under 100 lines",icon:"fa-atom"},"perfect-pr-5":{name:"Sharpshooter",description:"5 PRs merged without changes requested",icon:"fa-bullseye"},"perfect-pr-25":{name:"Perfectionist",description:"25 PRs merged without changes requested",icon:"fa-gem"},"perfect-pr-100":{name:"Immaculate",description:"100 PRs merged without changes requested",icon:"fa-crown"},"streak-7":{name:"Hot Streak",description:"7 day contribution streak",icon:"fa-fire"},"streak-30":{name:"Ironclad",description:"30 day contribution streak",icon:"fa-link"},"streak-90":{name:"Unbreakable",description:"90 day contribution streak",icon:"fa-diamond"},"early-bird":{name:"Dawn Patrol",description:"50 commits before 9am",icon:"fa-sun"},"night-owl":{name:"Nighthawk",description:"50 commits after 9pm",icon:"fa-moon"},nosferatu:{name:"Vampire",description:"25 commits between midnight and 4am",icon:"fa-ghost"},"weekend-warrior":{name:"No Days Off",description:"25 weekend commits",icon:"fa-calendar-xmark"},"active-30":{name:"Reliable",description:"Active on 30 different days",icon:"fa-calendar-check"},"active-100":{name:"Stalwart",description:"Active on 100 different days",icon:"fa-tower-observation"},"active-365":{name:"Eternal",description:"Active on 365 different days",icon:"fa-sun-plant-wilt"}},o=l=>{const a=r[l]||{name:l,description:"",icon:"fa-medal"},c=s(l),u=n(c),h=t[u]||"from-gray-400 to-gray-500";return{...a,gradient:h,tier:u,threshold:c}},i={sm:{wrapper:"w-9 h-9",icon:"text-sm",radius:"rounded-lg"},md:{wrapper:"w-11 h-11",icon:"text-base",radius:"rounded-xl"},lg:{wrapper:"w-14 h-14",icon:"text-lg",radius:"rounded-xl"}};return(l,a)=>(v(),k("div",Nu,[f("div",{class:"relative group/badge",title:o(e.achievementId).name},[f("div",{class:J(["flex items-center justify-center bg-gradient-to-br shadow-lg hover:scale-105 hover:shadow-xl transition-all duration-200 cursor-pointer",[i[e.size].wrapper,i[e.size].radius,o(e.achievementId).gradient]])},[f("i",{class:J(["fas text-white drop-shadow-sm",[o(e.achievementId).icon,i[e.size].icon]])},null,2)],2),f("div",Du,[f("div",Lu,R(o(e.achievementId).name),1),f("div",ju,R(o(e.achievementId).description),1),a[0]||(a[0]=f("div",{class:"absolute top-full left-1/2 -translate-x-1/2 border-[6px] border-transparent border-t-gray-900 dark:border-t-gray-800"},null,-1))])],8,Mu),e.showLabel?(v(),k("span",Fu,R(o(e.achievementId).name),1)):W("",!0)]))}},Vu={class:"flex items-center space-x-4"},Bu={class:"relative"},Hu={class:"flex-1"},Uu={class:"font-semibold text-gray-800 dark:text-white group-hover:text-primary-500 transition-colors"},Gu={class:"text-sm text-gray-500 dark:text-gray-400"},qu={key:0,class:"text-xs text-accent-500"},Ku={class:"text-right"},Wu={class:"text-2xl font-bold gradient-text"},zu={key:0,class:"mt-4 flex flex-wrap gap-1.5"},Ju={key:0,class:"inline-flex items-center justify-center w-8 h-8 rounded-lg bg-gray-200 dark:bg-gray-700 text-gray-600 dark:text-gray-300 text-xs font-bold"},Yu={__name:"ContributorCard",props:{contributor:{type:Object,required:!0},rank:{type:Number,default:0},showRank:{type:Boolean,default:!0},featured:{type:Boolean,default:!1}},setup(e){return(t,n)=>(v(),ie(N(Re),{to:{name:"contributor",params:{login:e.contributor.login}},class:J(["card animate-fade-in-up block cursor-pointer hover:shadow-lg transition-shadow",e.featured&&e.rank===1?"ring-2 ring-yellow-400":""])},{default:Z(()=>{var s,r;return[f("div",Vu,[f("div",Bu,[M(Sn,{src:e.contributor.avatar_url,name:e.contributor.login,size:e.featured?"xl":"lg"},null,8,["src","name","size"]),e.showRank&&e.rank>0?(v(),ie(Ci,{key:0,rank:e.rank,size:"sm",class:"absolute -top-1 -right-1"},null,8,["rank"])):W("",!0)]),f("div",Hu,[f("h3",Uu,R(e.contributor.name||e.contributor.login),1),f("p",Gu,[f("span",{class:"hover:text-primary-500 transition-colors",onClick:n[0]||(n[0]=Js(o=>t.window.open(`https://github.com/${e.contributor.login}`,"_blank"),["stop","prevent"]))},[ce(" @"+R(e.contributor.login)+" ",1),n[1]||(n[1]=f("i",{class:"fas fa-external-link-alt text-xs ml-0.5 opacity-50"},null,-1))])]),e.contributor.team?(v(),k("p",qu,R(e.contributor.team),1)):W("",!0)]),f("div",Ku,[f("div",Wu,R(N(z)(((s=e.contributor.score)==null?void 0:s.total)||e.contributor.score||0)),1),n[2]||(n[2]=f("div",{class:"text-xs text-gray-500 dark:text-gray-400"},"points",-1))])]),(r=e.contributor.achievements)!=null&&r.length?(v(),k("div",zu,[(v(!0),k(Y,null,xe(e.contributor.achievements.slice(0,6),o=>(v(),ie(wn,{key:o,"achievement-id":o,size:"sm"},null,8,["achievement-id"]))),128)),e.contributor.achievements.length>6?(v(),k("span",Ju," +"+R(e.contributor.achievements.length-6),1)):W("",!0)])):W("",!0)]}),_:1},8,["to","class"]))}},Qu={class:"flex items-center justify-between mb-4"},Xu={class:"font-semibold text-gray-800 dark:text-white group-hover:text-primary-500 transition"},Zu={class:"text-sm text-gray-500 dark:text-gray-400 mb-4"},ef={class:"grid grid-cols-3 gap-4 text-center"},tf={class:"text-lg font-semibold text-gray-800 dark:text-white"},nf={class:"text-lg font-semibold text-gray-800 dark:text-white"},sf={class:"text-lg font-semibold text-gray-800 dark:text-white"},rf={__name:"RepoCard",props:{repo:{type:Object,required:!0}},setup(e){return(t,n)=>(v(),ie(N(Re),{to:`/repos/${e.repo.owner}/${e.repo.name}`,class:"card hover:shadow-lg transition group"},{default:Z(()=>[f("div",Qu,[f("h3",Xu,R(e.repo.name),1),n[0]||(n[0]=f("i",{class:"fas fa-arrow-right text-gray-400 group-hover:text-primary-500 transition"},null,-1))]),f("p",Zu,R(e.repo.owner)+"/"+R(e.repo.name),1),f("div",ef,[f("div",null,[f("div",tf,R(N(z)(e.repo.total_commits)),1),n[1]||(n[1]=f("div",{class:"text-xs text-gray-500 dark:text-gray-400"},"Commits",-1))]),f("div",null,[f("div",nf,R(N(z)(e.repo.total_prs)),1),n[2]||(n[2]=f("div",{class:"text-xs text-gray-500 dark:text-gray-400"},"PRs",-1))]),f("div",null,[f("div",sf,R(e.repo.active_contributors),1),n[3]||(n[3]=f("div",{class:"text-xs text-gray-500 dark:text-gray-400"},"Contributors",-1))])])]),_:1},8,["to"]))}},of={class:"flex items-center justify-between mb-4"},lf={class:"font-semibold text-gray-800 dark:text-white group-hover:text-primary-500 transition"},af={class:"flex items-center space-x-2 mb-4"},cf={key:0,class:"w-8 h-8 rounded-full bg-gray-200 dark:bg-gray-700 flex items-center justify-center text-gray-600 dark:text-gray-300 text-xs font-bold"},uf={class:"grid grid-cols-2 gap-4 text-center"},ff={class:"text-lg font-semibold gradient-text"},df={class:"text-lg font-semibold text-gray-800 dark:text-white"},hf={__name:"TeamCard",props:{team:{type:Object,required:!0}},setup(e){return(t,n)=>(v(),ie(N(Re),{to:`/teams/${N(ki)(e.team.name)}`,class:"card hover:shadow-lg transition group"},{default:Z(()=>{var s,r;return[f("div",of,[f("h3",lf,R(e.team.name),1),f("span",{class:"w-3 h-3 rounded-full",style:St({backgroundColor:e.team.color||"#8b5cf6"})},null,4)]),f("div",af,[(v(!0),k(Y,null,xe((e.team.members||[]).slice(0,5),(o,i)=>(v(),ie(Sn,{key:o,name:o,size:"sm"},null,8,["name"]))),128)),(((s=e.team.members)==null?void 0:s.length)||0)>5?(v(),k("span",cf," +"+R(e.team.members.length-5),1)):W("",!0)]),f("div",uf,[f("div",null,[f("div",ff,R(N(z)(e.team.total_score)),1),n[0]||(n[0]=f("div",{class:"text-xs text-gray-500 dark:text-gray-400"},"Total Score",-1))]),f("div",null,[f("div",df,R(((r=e.team.members)==null?void 0:r.length)||0),1),n[1]||(n[1]=f("div",{class:"text-xs text-gray-500 dark:text-gray-400"},"Members",-1))])])]}),_:1},8,["to"]))}},mf={class:"text-2xl font-bold text-gray-800 dark:text-white mb-6"},It={__name:"SectionHeader",props:{title:{type:String,required:!0},icon:{type:String,default:""},iconColor:{type:String,default:"text-primary-500"}},setup(e){return(t,n)=>(v(),k("h2",mf,[e.icon?(v(),k("i",{key:0,class:J([[e.icon,e.iconColor],"mr-2"])},null,2)):W("",!0),ce(R(e.title)+" ",1),Dt(t.$slots,"suffix")]))}},gf=(e,t)=>{const n=e.__vccOpts||e;for(const[s,r]of t)n[s]=r;return n},pf={key:0,class:"flex items-center justify-center h-full"},yf={__name:"VelocityChart",props:{timeline:{type:Object,required:!0},height:{type:String,default:"300px"},showScore:{type:Boolean,default:!1}},setup(e){rr.register(...$i);const t=e,n=ke(null);let s=null;const r=oe(()=>{var c;return(c=t.timeline)!=null&&c.series?t.timeline.series.filter(u=>t.showScore||u.name!=="Score"):[]}),o=oe(()=>{var c;return!((c=t.timeline)!=null&&c.labels)||!r.value.length?{labels:[],datasets:[]}:{labels:t.timeline.labels,datasets:r.value.map(u=>({label:u.name,data:u.data,borderColor:u.color,backgroundColor:u.color+"20",fill:!0,tension:.4,pointRadius:3,pointHoverRadius:5}))}}),i={responsive:!0,maintainAspectRatio:!1,interaction:{mode:"index",intersect:!1},plugins:{legend:{position:"top",labels:{usePointStyle:!0,padding:20,font:{size:12}}},tooltip:{backgroundColor:"rgba(0, 0, 0, 0.8)",padding:12,titleFont:{size:14},bodyFont:{size:13},callbacks:{label:c=>`${c.dataset.label}: ${c.parsed.y.toLocaleString()}`}}},scales:{x:{grid:{display:!1},ticks:{font:{size:11}}},y:{beginAtZero:!0,grid:{color:"rgba(0, 0, 0, 0.05)"},ticks:{font:{size:11},callback:c=>c>=1e3?(c/1e3).toFixed(1)+"k":c}}}};function l(){if(!n.value||!o.value.labels.length)return;s&&s.destroy();const c=n.value.getContext("2d");s=new rr(c,{type:"line",data:o.value,options:i})}function a(){s?(s.data=o.value,s.update()):l()}return jt(()=>{l()}),Ue(()=>t.timeline,()=>{a()},{deep:!0}),Ue(()=>t.showScore,()=>{a()}),(c,u)=>{var h,g;return v(),k("div",{class:"velocity-chart",style:St({height:e.height})},[f("canvas",{ref_key:"chartRef",ref:n},null,512),(g=(h=e.timeline)==null?void 0:h.labels)!=null&&g.length?W("",!0):(v(),k("div",pf,[...u[0]||(u[0]=[f("p",{class:"text-gray-400"},"No velocity data available",-1)])]))],4)}}},vf=gf(yf,[["__scopeId","data-v-401bbb13"]]),xf={class:"py-16 px-4"},bf={class:"container mx-auto text-center animate-fade-in-up"},_f={class:"flex flex-col items-center space-y-2 mt-4 text-sm text-gray-500 dark:text-gray-400"},wf={key:0},kf={key:0},Cf={key:1},Rf={key:2},Sf={key:1},Ef={key:0,class:"py-8 px-4"},Af={class:"container mx-auto"},$f={class:"card"},Pf={class:"flex items-center justify-between mb-6"},Tf={class:"flex items-center space-x-2 text-sm text-gray-600 dark:text-gray-400 cursor-pointer"},Of={class:"py-8 px-4"},If={class:"container mx-auto"},Nf={class:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-6 gap-4"},Mf={class:"py-8 px-4"},Df={class:"container mx-auto"},Lf={class:"grid md:grid-cols-3 gap-6"},jf={class:"mt-6 text-center"},Ff={class:"py-8 px-4"},Vf={class:"container mx-auto"},Bf={class:"grid md:grid-cols-2 lg:grid-cols-3 gap-6"},Hf={key:1,class:"py-8 px-4"},Uf={class:"container mx-auto"},Gf={class:"grid md:grid-cols-2 lg:grid-cols-3 gap-6"},qf={__name:"Dashboard",setup(e){const t=$e("globalData"),n=oe(()=>t.value||{}),s=oe(()=>{var a;return((a=n.value.leaderboard)==null?void 0:a.slice(0,3))||[]}),r=oe(()=>n.value.repositories||[]),o=oe(()=>n.value.teams||[]),i=oe(()=>n.value.velocity_timeline),l=ke(!1);return(a,c)=>{var u,h;return v(),k("div",null,[f("header",xf,[f("div",bf,[c[4]||(c[4]=f("h1",{class:"text-4xl md:text-6xl font-bold mb-4"},[f("span",{class:"gradient-text"},"Git Velocity")],-1)),c[5]||(c[5]=f("p",{class:"text-xl text-gray-600 dark:text-gray-300 max-w-2xl mx-auto"}," Celebrate your team's achievements and contributions with beautiful insights. ",-1)),f("div",_f,[(u=n.value.period)!=null&&u.start||(h=n.value.period)!=null&&h.end?(v(),k("p",wf,[c[1]||(c[1]=f("i",{class:"fas fa-calendar-alt mr-1 text-primary-500"},null,-1)),c[2]||(c[2]=f("span",{class:"font-medium"},"Period:",-1)),n.value.period.start?(v(),k("span",kf,R(N(ys)(n.value.period.start)),1)):W("",!0),n.value.period.start&&n.value.period.end?(v(),k("span",Cf," — ")):W("",!0),n.value.period.end?(v(),k("span",Rf,R(N(ys)(n.value.period.end)),1)):W("",!0)])):W("",!0),n.value.generated_at?(v(),k("p",Sf,[c[3]||(c[3]=f("i",{class:"fas fa-clock mr-1"},null,-1)),ce(" Generated on "+R(N(ys)(n.value.generated_at)),1)])):W("",!0)])])]),i.value?(v(),k("section",Ef,[f("div",Af,[f("div",$f,[f("div",Pf,[M(It,{title:"Velocity Timeline",icon:"fas fa-chart-line","icon-color":"text-primary-500"}),f("label",Tf,[xl(f("input",{type:"checkbox","onUpdate:modelValue":c[0]||(c[0]=g=>l.value=g),class:"rounded border-gray-300 text-primary-500 focus:ring-primary-500"},null,512),[[qa,l.value]]),c[6]||(c[6]=f("span",null,"Show Score",-1))])]),M(vf,{timeline:i.value,"show-score":l.value,height:"320px"},null,8,["timeline","show-score"])])])])):W("",!0),f("section",Of,[f("div",If,[f("div",Nf,[M(_e,{value:n.value.total_contributors||0,label:"Contributors",delay:"0s"},null,8,["value"]),M(_e,{value:n.value.total_commits||0,label:"Commits",delay:"0.1s"},null,8,["value"]),M(_e,{value:n.value.total_prs||0,label:"Pull Requests",delay:"0.2s"},null,8,["value"]),M(_e,{value:n.value.total_reviews||0,label:"Reviews",delay:"0.3s"},null,8,["value"]),M(_e,{value:"+"+N(z)(n.value.total_lines_added||0),label:"Lines Added","value-class":"text-green-500",delay:"0.4s"},null,8,["value"]),M(_e,{value:"-"+N(z)(n.value.total_lines_deleted||0),label:"Lines Deleted","value-class":"text-red-500",delay:"0.5s"},null,8,["value"])])])]),f("section",Mf,[f("div",Df,[M(It,{title:"Top Contributors",icon:"fas fa-trophy","icon-color":"text-yellow-500"}),f("div",Lf,[(v(!0),k(Y,null,xe(s.value,(g,y)=>(v(),ie(Yu,{key:g.login,contributor:g,rank:y+1,featured:""},null,8,["contributor","rank"]))),128))]),f("div",jf,[M(N(Re),{to:"/leaderboard",class:"btn-primary"},{default:Z(()=>[...c[7]||(c[7]=[ce(" View Full Leaderboard ",-1),f("i",{class:"fas fa-arrow-right ml-2"},null,-1)])]),_:1})])])]),f("section",Ff,[f("div",Vf,[M(It,{title:"Repositories",icon:"fas fa-code-branch","icon-color":"text-accent-500"}),f("div",Bf,[(v(!0),k(Y,null,xe(r.value,g=>(v(),ie(rf,{key:`${g.owner}/${g.name}`,repo:g},null,8,["repo"]))),128))])])]),o.value.length?(v(),k("section",Hf,[f("div",Uf,[M(It,{title:"Teams",icon:"fas fa-users","icon-color":"text-blue-500"}),f("div",Gf,[(v(!0),k(Y,null,xe(o.value,g=>(v(),ie(hf,{key:g.name,team:g},null,8,["team"]))),128))])])])):W("",!0)])}}},Kf={class:"flex items-center space-x-2 text-sm text-gray-500 dark:text-gray-400 mb-6"},Wf={key:2,class:"fas fa-chevron-right text-xs"},zf={__name:"Breadcrumb",props:{items:{type:Array,required:!0}},setup(e){return(t,n)=>(v(),k("div",Kf,[(v(!0),k(Y,null,xe(e.items,(s,r)=>(v(),k(Y,{key:r},[s.to?(v(),ie(N(Re),{key:0,to:s.to,class:"hover:text-primary-500"},{default:Z(()=>[ce(R(s.label),1)]),_:2},1032,["to"])):(v(),k("span",{key:1,class:J(r===e.items.length-1?"text-gray-800 dark:text-white":"")},R(s.label),3)),r[]},centered:{type:Boolean,default:!1}},setup(e){return(t,n)=>(v(),k("header",Jf,[f("div",{class:J(["container mx-auto",{"text-center":e.centered}])},[e.breadcrumbs.length?(v(),ie(zf,{key:0,items:e.breadcrumbs},null,8,["items"])):W("",!0),f("div",{class:J(["flex items-center",e.centered?"justify-center":""])},[Dt(t.$slots,"prefix"),f("h1",Yf,[e.icon?(v(),k("i",{key:0,class:J([[e.icon,e.iconColor],"mr-3"])},null,2)):W("",!0),f("span",Qf,R(e.title),1)])],2),e.subtitle||t.$slots.subtitle?(v(),k("p",Xf,[Dt(t.$slots,"subtitle",{},()=>[ce(R(e.subtitle),1)])])):W("",!0),Dt(t.$slots,"extra")],2)]))}},Zf={class:"card overflow-hidden p-0"},ed={class:"w-full"},td={class:"bg-gray-50 dark:bg-gray-800/50"},nd={class:"divide-y divide-gray-200 dark:divide-gray-700"},sd=["onClick"],rd={key:0,class:"text-center py-12"},od={class:"text-gray-500 dark:text-gray-400"},Ri={__name:"DataTable",props:{columns:{type:Array,required:!0},items:{type:Array,default:()=>[]},emptyIcon:{type:String,default:"fas fa-inbox"},emptyMessage:{type:String,default:"No data found"},rowClass:{type:String,default:"hover:bg-gray-50 dark:hover:bg-gray-800/30 transition"},clickableRows:{type:Boolean,default:!1}},emits:["row-click"],setup(e){const t=n=>{switch(n){case"center":return"text-center";case"right":return"text-right";default:return"text-left"}};return(n,s)=>(v(),k("div",Zf,[f("table",ed,[f("thead",td,[f("tr",null,[(v(!0),k(Y,null,xe(e.columns,r=>(v(),k("th",{key:r.key,class:J(["px-6 py-4 text-xs font-semibold text-gray-500 dark:text-gray-400 uppercase tracking-wider",t(r.align),r.headerClass])},R(r.label),3))),128))])]),f("tbody",nd,[(v(!0),k(Y,null,xe(e.items,(r,o)=>(v(),k("tr",{key:r.id||r.login||o,class:J([e.rowClass,{"cursor-pointer":e.clickableRows}]),onClick:i=>e.clickableRows&&n.$emit("row-click",r)},[(v(!0),k(Y,null,xe(e.columns,i=>(v(),k("td",{key:i.key,class:J(["px-6 py-4",t(i.align),i.class])},[Dt(n.$slots,i.key,{item:r,index:o},()=>[ce(R(r[i.key]),1)])],2))),128))],10,sd))),128))])]),e.items.length?W("",!0):(v(),k("div",rd,[f("i",{class:J([e.emptyIcon,"text-4xl text-gray-300 dark:text-gray-600 mb-4"])},null,2),f("p",od,R(e.emptyMessage),1)]))]))}},id={class:"font-medium text-gray-800 dark:text-white group-hover:text-primary-500 transition-colors"},ld={class:"text-sm"},ad=["href"],cd={key:1,class:"text-gray-500 dark:text-gray-400"},Si={__name:"ContributorRow",props:{contributor:{type:Object,required:!0},showGithubLink:{type:Boolean,default:!1},columns:{type:Array,default:()=>["commits","prs","reviews","lines","score"]}},setup(e){return(t,n)=>(v(),ie(N(Re),{to:{name:"contributor",params:{login:e.contributor.login}},class:"flex items-center space-x-3"},{default:Z(()=>[M(Sn,{src:e.contributor.avatar_url,name:e.contributor.login,class:"ring-2 ring-transparent group-hover:ring-primary-500 transition-all"},null,8,["src","name"]),f("div",null,[f("div",id,R(e.contributor.name||e.contributor.login),1),f("div",ld,[e.showGithubLink?(v(),k("a",{key:0,href:`https://github.com/${e.contributor.login}`,target:"_blank",rel:"noopener noreferrer",class:"text-gray-500 dark:text-gray-400 hover:text-primary-500 transition-colors",onClick:n[0]||(n[0]=Js(()=>{},["stop"]))},[ce(" @"+R(e.contributor.login)+" ",1),n[1]||(n[1]=f("i",{class:"fas fa-external-link-alt text-xs ml-1 opacity-50"},null,-1))],8,ad)):(v(),k("span",cd," @"+R(e.contributor.login),1))])])]),_:1},8,["to"]))}},ud={class:"py-8 px-4"},fd={class:"container mx-auto max-w-5xl"},dd={class:"flex flex-wrap gap-1.5 max-w-[180px]"},hd={key:0,class:"text-gray-400 text-sm"},md={class:"hidden md:table-cell"},gd={key:0,class:"inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-purple-100 dark:bg-purple-900/30 text-purple-800 dark:text-purple-300"},pd={key:1,class:"text-gray-400"},yd={class:"hidden sm:table-cell"},vd={key:0,class:"text-sm text-gray-600 dark:text-gray-300"},xd={key:1,class:"text-gray-400"},bd={class:"text-lg font-bold gradient-text"},_d={__name:"Leaderboard",setup(e){const t=$e("globalData"),n=oe(()=>{var o;return((o=t.value)==null?void 0:o.leaderboard)||[]}),s=[{key:"rank",label:"Rank",align:"left"},{key:"contributor",label:"Contributor",align:"left"},{key:"achievements",label:"Achievements",align:"left"},{key:"team",label:"Team",align:"left",headerClass:"hidden md:table-cell"},{key:"category",label:"Best At",align:"left",headerClass:"hidden sm:table-cell"},{key:"score",label:"Score",align:"right"}],r=o=>({Commits:"fas fa-code-commit text-green-500",PRs:"fas fa-code-pull-request text-blue-500",Reviews:"fas fa-eye text-purple-500",Comments:"fas fa-comment text-orange-500"})[o]||"";return(o,i)=>(v(),k("div",null,[M(ts,{title:"Leaderboard",subtitle:"Top contributors ranked by their velocity score",icon:"fas fa-trophy","icon-color":"text-yellow-500",centered:""}),f("section",ud,[f("div",fd,[M(Ri,{columns:s,items:n.value,"empty-icon":"fas fa-users","empty-message":"No contributors found","row-class":"hover:bg-gray-50 dark:hover:bg-gray-800/30 transition group"},{rank:Z(({item:l})=>[M(Ci,{rank:l.rank},null,8,["rank"])]),contributor:Z(({item:l})=>[M(Si,{contributor:l,"show-github-link":""},null,8,["contributor"])]),achievements:Z(({item:l})=>[f("div",dd,[(v(!0),k(Y,null,xe((l.achievements||[]).slice(0,6),a=>(v(),ie(wn,{key:a,"achievement-id":a,size:"sm"},null,8,["achievement-id"]))),128)),(l.achievements||[]).length?W("",!0):(v(),k("span",hd,"-"))])]),team:Z(({item:l})=>[f("td",md,[l.team?(v(),k("span",gd,R(l.team),1)):(v(),k("span",pd,"-"))])]),category:Z(({item:l})=>[f("td",yd,[l.top_category?(v(),k("span",vd,[f("i",{class:J([r(l.top_category),"mr-1"])},null,2),ce(" "+R(l.top_category),1)])):(v(),k("span",xd,"-"))])]),score:Z(({item:l})=>[f("span",bd,R(N(z)(l.score)),1)]),_:1},8,["items"])])])]))}},wd={class:"flex items-center justify-center min-h-[60vh]"},kd={class:"text-center"},Cd={class:"text-gray-600 dark:text-gray-400"},Zs={__name:"LoadingState",props:{message:{type:String,default:"Loading..."}},setup(e){return(t,n)=>(v(),k("div",wd,[f("div",kd,[n[0]||(n[0]=f("i",{class:"fas fa-spinner fa-spin text-4xl text-primary-500 mb-4"},null,-1)),f("p",Cd,R(e.message),1)])]))}},Rd={class:"flex items-center justify-center min-h-[60vh]"},Sd={class:"text-center"},Ed={class:"text-gray-600 dark:text-gray-400"},er={__name:"ErrorState",props:{message:{type:String,default:"An error occurred"},icon:{type:String,default:"fas fa-exclamation-triangle"}},setup(e){return(t,n)=>(v(),k("div",Rd,[f("div",Sd,[f("i",{class:J([e.icon,"text-4xl text-red-500 mb-4"])},null,2),f("p",Ed,R(e.message),1),Dt(t.$slots,"actions")])]))}},Ad=["href"],$d={key:0,class:"fas fa-external-link-alt text-xs ml-1 opacity-50"},Ei={__name:"GithubLink",props:{url:{type:String,required:!0},label:{type:String,default:""},showIcon:{type:Boolean,default:!0}},setup(e){return(t,n)=>(v(),k("a",{href:e.url,target:"_blank",rel:"noopener noreferrer",class:"hover:text-primary-500 transition-colors",onClick:n[0]||(n[0]=Js(()=>{},["stop"]))},[Dt(t.$slots,"default",{},()=>[ce(R(e.label),1)]),e.showIcon?(v(),k("i",$d)):W("",!0)],8,Ad))}},Pd={class:"py-8 px-4"},Td={class:"container mx-auto"},Od={class:"grid grid-cols-2 md:grid-cols-4 gap-4"},Id={class:"py-8 px-4"},Nd={class:"container mx-auto"},Md={class:"text-gray-800 dark:text-white"},Dd={class:"text-gray-800 dark:text-white"},Ld={class:"text-gray-800 dark:text-white"},jd={class:"text-green-500"},Fd={class:"text-red-500"},Vd={class:"text-lg font-bold gradient-text"},Bd={__name:"Repository",setup(e){const t=es(),n=ke(null),s=ke(!0),r=ke(null),o=oe(()=>{var a;return[{label:"Dashboard",to:"/"},{label:"Repositories"},{label:((a=n.value)==null?void 0:a.name)||t.params.name}]}),i=[{key:"contributor",label:"Contributor",align:"left"},{key:"commits",label:"Commits",align:"center"},{key:"prs",label:"PRs",align:"center"},{key:"reviews",label:"Reviews",align:"center"},{key:"lines",label:"Lines +/-",align:"center"},{key:"score",label:"Score",align:"right"}];async function l(){s.value=!0,r.value=null;try{const a=await fetch(`./data/repos/${t.params.owner}/${t.params.name}/metrics.json`);if(!a.ok)throw new Error("Repository not found");n.value=await a.json()}catch(a){r.value=a.message}finally{s.value=!1}}return jt(l),Ue(()=>t.params,l),(a,c)=>(v(),k("div",null,[s.value?(v(),ie(Zs,{key:0,message:"Loading repository..."})):r.value?(v(),ie(er,{key:1,message:r.value},null,8,["message"])):n.value?(v(),k(Y,{key:2},[M(ts,{title:n.value.name,icon:"fas fa-code-branch","icon-color":"text-accent-500",breadcrumbs:o.value},{subtitle:Z(()=>[M(Ei,{url:`https://github.com/${n.value.owner}/${n.value.name}`},{default:Z(()=>[ce(R(n.value.owner)+"/"+R(n.value.name),1)]),_:1},8,["url"])]),_:1},8,["title","breadcrumbs"]),f("section",Pd,[f("div",Td,[f("div",Od,[M(_e,{value:n.value.total_commits,label:"Commits",icon:"fas fa-code-commit","icon-color":"text-green-500"},null,8,["value"]),M(_e,{value:n.value.total_prs,label:"Pull Requests",icon:"fas fa-code-pull-request","icon-color":"text-blue-500"},null,8,["value"]),M(_e,{value:n.value.total_reviews,label:"Reviews",icon:"fas fa-eye","icon-color":"text-purple-500"},null,8,["value"]),M(_e,{value:n.value.active_contributors,label:"Contributors",icon:"fas fa-users","icon-color":"text-orange-500"},null,8,["value"])])])]),f("section",Id,[f("div",Nd,[M(It,{title:"Contributors",icon:"fas fa-users","icon-color":"text-blue-500"}),M(Ri,{columns:i,items:n.value.contributors,"empty-icon":"fas fa-users","empty-message":"No contributors found","row-class":"hover:bg-gray-50 dark:hover:bg-gray-800/30 transition group"},{contributor:Z(({item:u})=>[M(Si,{contributor:u},null,8,["contributor"])]),commits:Z(({item:u})=>[f("span",Md,R(N(z)(u.commit_count)),1)]),prs:Z(({item:u})=>[f("span",Dd,R(N(z)(u.prs_opened)),1)]),reviews:Z(({item:u})=>[f("span",Ld,R(N(z)(u.reviews_given)),1)]),lines:Z(({item:u})=>[f("span",jd,"+"+R(N(z)(u.lines_added)),1),c[0]||(c[0]=f("span",{class:"text-gray-400 mx-1"},"/",-1)),f("span",Fd,"-"+R(N(z)(u.lines_deleted)),1)]),score:Z(({item:u})=>{var h;return[f("span",Vd,R(N(z)(((h=u.score)==null?void 0:h.total)||0)),1)]}),_:1},8,["items"])])])],64)):W("",!0)]))}},Hd={class:"flex items-center space-x-4 mb-4"},Ud={class:"font-semibold text-gray-800 dark:text-white"},Gd={class:"text-sm text-gray-500 dark:text-gray-400"},qd={class:"grid grid-cols-3 gap-4 text-center mb-4"},Kd={class:"text-lg font-semibold text-gray-800 dark:text-white"},Wd={class:"text-lg font-semibold text-gray-800 dark:text-white"},zd={class:"text-lg font-semibold text-gray-800 dark:text-white"},Jd={class:"flex items-center justify-between pt-4 border-t border-gray-200 dark:border-gray-700"},Yd={class:"text-xl font-bold gradient-text"},Qd={key:0,class:"mt-4 flex flex-wrap gap-2"},Xd={key:0,class:"inline-flex items-center justify-center w-8 h-8 rounded-lg bg-gray-200 dark:bg-gray-700 text-gray-600 dark:text-gray-300 text-xs font-bold"},Zd={__name:"MemberCard",props:{member:{type:Object,required:!0},linkToProfile:{type:Boolean,default:!0}},setup(e){return(t,n)=>(v(),ie(Ml(e.linkToProfile?N(Re):"div"),{to:e.linkToProfile?{name:"contributor",params:{login:e.member.login}}:void 0,class:J(["card block",{"hover:shadow-lg transition cursor-pointer":e.linkToProfile}])},{default:Z(()=>{var s,r;return[f("div",Hd,[M(Sn,{src:e.member.avatar_url,name:e.member.login,size:"lg"},null,8,["src","name"]),f("div",null,[f("h3",Ud,R(e.member.name||e.member.login),1),f("p",Gd,"@"+R(e.member.login),1)])]),f("div",qd,[f("div",null,[f("div",Kd,R(N(z)(e.member.commit_count)),1),n[0]||(n[0]=f("div",{class:"text-xs text-gray-500 dark:text-gray-400"},"Commits",-1))]),f("div",null,[f("div",Wd,R(N(z)(e.member.prs_opened)),1),n[1]||(n[1]=f("div",{class:"text-xs text-gray-500 dark:text-gray-400"},"PRs",-1))]),f("div",null,[f("div",zd,R(N(z)(e.member.reviews_given)),1),n[2]||(n[2]=f("div",{class:"text-xs text-gray-500 dark:text-gray-400"},"Reviews",-1))])]),f("div",Jd,[n[3]||(n[3]=f("span",{class:"text-sm text-gray-500 dark:text-gray-400"},"Score",-1)),f("span",Yd,R(N(z)(((s=e.member.score)==null?void 0:s.total)||0)),1)]),(r=e.member.achievements)!=null&&r.length?(v(),k("div",Qd,[(v(!0),k(Y,null,xe(e.member.achievements.slice(0,4),o=>(v(),ie(wn,{key:o,"achievement-id":o,size:"sm"},null,8,["achievement-id"]))),128)),e.member.achievements.length>4?(v(),k("span",Xd," +"+R(e.member.achievements.length-4),1)):W("",!0)])):W("",!0)]}),_:1},8,["to","class"]))}},eh={class:"py-8 px-4"},th={class:"container mx-auto"},nh={class:"grid grid-cols-2 md:grid-cols-4 gap-4"},sh={class:"py-8 px-4"},rh={class:"container mx-auto"},oh={class:"grid md:grid-cols-2 lg:grid-cols-3 gap-6"},ih={__name:"Team",setup(e){const t=es(),n=$e("globalData"),s=ke(null),r=ke(!0),o=ke(null),i=oe(()=>{var a;return[{label:"Dashboard",to:"/"},{label:"Teams"},{label:((a=s.value)==null?void 0:a.name)||t.params.slug}]});function l(){var u;r.value=!0,o.value=null;const c=(((u=n.value)==null?void 0:u.teams)||[]).find(h=>ki(h.name)===t.params.slug);c?s.value=c:o.value="Team not found",r.value=!1}return jt(l),Ue(()=>t.params,l),Ue(n,l),(a,c)=>{var u,h,g,y;return v(),k("div",null,[r.value?(v(),ie(Zs,{key:0,message:"Loading team..."})):o.value?(v(),ie(er,{key:1,message:o.value},null,8,["message"])):s.value?(v(),k(Y,{key:2},[M(ts,{title:s.value.name,breadcrumbs:i.value,subtitle:`${((u=s.value.members)==null?void 0:u.length)||0} team members`},{prefix:Z(()=>[f("div",{class:"w-4 h-4 rounded-full mr-4",style:St({backgroundColor:s.value.color||"#8b5cf6"})},null,4)]),_:1},8,["title","breadcrumbs","subtitle"]),f("section",eh,[f("div",th,[f("div",nh,[M(_e,{value:s.value.total_score,label:"Total Score",icon:"fas fa-star","icon-color":"text-yellow-500"},null,8,["value"]),M(_e,{value:((h=s.value.aggregated_metrics)==null?void 0:h.commit_count)||0,label:"Commits",icon:"fas fa-code-commit","icon-color":"text-green-500"},null,8,["value"]),M(_e,{value:((g=s.value.aggregated_metrics)==null?void 0:g.prs_merged)||0,label:"PRs Merged",icon:"fas fa-code-merge","icon-color":"text-purple-500"},null,8,["value"]),M(_e,{value:((y=s.value.aggregated_metrics)==null?void 0:y.reviews_given)||0,label:"Reviews",icon:"fas fa-eye","icon-color":"text-blue-500"},null,8,["value"])])])]),f("section",sh,[f("div",rh,[M(It,{title:"Team Members",icon:"fas fa-users","icon-color":"text-blue-500"}),f("div",oh,[(v(!0),k(Y,null,xe(s.value.member_metrics,S=>(v(),ie(Zd,{key:S.login,member:S},null,8,["member"]))),128))])])])],64)):W("",!0)])}}},lh={class:"space-y-3"},ah={class:"flex items-start justify-between mb-3"},ch={class:"flex items-center space-x-3"},uh={class:"text-sm font-semibold text-gray-800 dark:text-white"},fh={class:"flex items-center space-x-2 text-xs text-gray-500 dark:text-gray-400"},dh={class:"font-medium"},hh={class:"text-right"},mh={class:"text-gray-500 dark:text-gray-400 font-medium"},gh={class:"text-xs text-gray-500 dark:text-gray-400 mt-0.5"},ph={class:"h-2.5 bg-gray-200 dark:bg-gray-700 rounded-full overflow-hidden"},yh={class:"flex items-center justify-between mt-1.5"},vh={class:"flex items-center space-x-1"},xh=["title"],bh={key:0,class:"text-[10px] text-gray-400"},_h={key:0,class:"text-center text-xs text-gray-500 dark:text-gray-400 pt-2"},wh={key:1,class:"text-center py-8 text-gray-500 dark:text-gray-400"},kh={__name:"AchievementProgress",props:{contributor:{type:Object,required:!0},showEarned:{type:Boolean,default:!1},maxDisplay:{type:Number,default:6}},setup(e){const t=e,n=[1,10,25,50,100,250,500,1e3,5e3,1e4,25e3],s={1:"from-stone-400 to-stone-500",2:"from-green-400 to-emerald-500",3:"from-blue-400 to-indigo-500",4:"from-purple-400 to-violet-500",5:"from-yellow-400 to-amber-500",6:"from-orange-400 to-red-500",7:"from-red-500 to-rose-600",8:"from-pink-500 to-fuchsia-600",9:"from-cyan-400 to-teal-500",10:"from-emerald-400 to-cyan-500",11:"from-violet-500 to-purple-600"},r={1:"bg-stone-500",2:"bg-green-500",3:"bg-blue-500",4:"bg-purple-500",5:"bg-yellow-500",6:"bg-orange-500",7:"bg-red-500",8:"bg-pink-500",9:"bg-cyan-500",10:"bg-emerald-500",11:"bg-violet-500"},o=[{category:"Commits",icon:"fa-code-commit",iconColor:"text-green-500",getValue:u=>u.commit_count||0,achievements:[{id:"first-commit",threshold:1,name:"First Steps"},{id:"commit-10",threshold:10,name:"Getting Started"},{id:"commit-25",threshold:25,name:"Warming Up"},{id:"commit-50",threshold:50,name:"On A Roll"},{id:"commit-100",threshold:100,name:"Committed"},{id:"commit-250",threshold:250,name:"Dedicated"},{id:"commit-500",threshold:500,name:"Code Machine"},{id:"commit-1000",threshold:1e3,name:"Code Warrior"},{id:"commit-5000",threshold:5e3,name:"Legendary"},{id:"commit-10000",threshold:1e4,name:"Mythical"},{id:"commit-25000",threshold:25e3,name:"Transcendent"}]},{category:"Pull Requests",icon:"fa-code-pull-request",iconColor:"text-blue-500",getValue:u=>u.prs_opened||0,achievements:[{id:"pr-opener",threshold:1,name:"PR Pioneer"},{id:"pr-10",threshold:10,name:"Pull Request Pro"},{id:"pr-25",threshold:25,name:"PR Regular"},{id:"pr-50",threshold:50,name:"Merge Master"},{id:"pr-100",threshold:100,name:"PR Champion"}]},{category:"Reviews",icon:"fa-eye",iconColor:"text-purple-500",getValue:u=>u.reviews_given||0,achievements:[{id:"reviewer",threshold:1,name:"Code Reviewer"},{id:"reviewer-10",threshold:10,name:"Review Starter"},{id:"reviewer-25",threshold:25,name:"Review Regular"},{id:"reviewer-50",threshold:50,name:"Review Expert"},{id:"reviewer-100",threshold:100,name:"Review Guru"}]},{category:"Lines Added",icon:"fa-plus",iconColor:"text-emerald-500",getValue:u=>u.lines_added||0,achievements:[{id:"lines-1000",threshold:1e3,name:"Thousand Lines"},{id:"lines-10000",threshold:1e4,name:"Ten Thousand"}]},{category:"Lines Deleted",icon:"fa-minus",iconColor:"text-red-500",getValue:u=>u.lines_deleted||0,achievements:[{id:"cleaner",threshold:1e3,name:"Code Cleaner"},{id:"refactorer",threshold:1e4,name:"Refactoring Champion"}]},{category:"Small PRs",icon:"fa-compress",iconColor:"text-cyan-500",getValue:u=>u.small_pr_count||0,achievements:[{id:"small-pr-10",threshold:10,name:"Small PR Advocate"},{id:"small-pr-50",threshold:50,name:"Atomic Commits Hero"}]},{category:"Perfect PRs",icon:"fa-gem",iconColor:"text-pink-500",getValue:u=>u.perfect_prs||0,achievements:[{id:"perfect-pr-5",threshold:5,name:"Clean Code"},{id:"perfect-pr-25",threshold:25,name:"Flawless"}]},{category:"Active Days",icon:"fa-calendar-check",iconColor:"text-orange-500",getValue:u=>u.active_days||0,achievements:[{id:"active-30",threshold:30,name:"Consistent Contributor"},{id:"active-100",threshold:100,name:"Dedicated Developer"}]},{category:"Streak",icon:"fa-fire",iconColor:"text-amber-500",getValue:u=>u.longest_streak||0,achievements:[{id:"streak-7",threshold:7,name:"Week Warrior"},{id:"streak-30",threshold:30,name:"Month Master"}]}],i=u=>{for(let h=n.length-1;h>=0;h--)if(u>=n[h])return h+1;return 1},l=u=>u.map(h=>({threshold:h.threshold,name:h.name,tier:i(h.threshold)})),a=oe(()=>{const u=new Set(t.contributor.achievements||[]),h=[];for(const g of o){const y=g.getValue(t.contributor);let S=null,P=null;const B=l(g.achievements);for(const Ce of g.achievements)y>=Ce.threshold?P=Ce:S||(S=Ce);if(!S)continue;const $=P?P.threshold:0,D=S.threshold-$,F=y-$,j=Math.min(100,Math.max(0,Math.round(F/D*100))),ee=i(S.threshold),ye=B.findIndex(Ce=>Ce.threshold===S.threshold),me=B.length;h.push({category:g.category,icon:g.icon,iconColor:g.iconColor,currentValue:y,target:S.threshold,name:S.name,id:S.id,progress:j,tier:ee,tierIndex:ye+1,totalTiers:me,allTiers:B,gradient:s[ee],progressColor:r[ee],isClose:j>=75,remaining:S.threshold-y,isEarned:u.has(S.id)})}return h.sort((g,y)=>y.progress-g.progress),h.slice(0,t.maxDisplay)}),c=oe(()=>{new Set(t.contributor.achievements||[]);let u=0;for(const h of o){const g=h.getValue(t.contributor);for(const y of h.achievements)g(v(),k("div",lh,[(v(!0),k(Y,null,xe(a.value,g=>(v(),k("div",{key:g.id,class:"bg-gray-50 dark:bg-gray-800/50 rounded-xl p-4 hover:bg-gray-100 dark:hover:bg-gray-800 transition-colors"},[f("div",ah,[f("div",ch,[f("div",{class:J(["w-10 h-10 rounded-lg bg-gradient-to-br flex items-center justify-center shadow-md",g.gradient])},[f("i",{class:J(["fas text-white text-sm",g.icon])},null,2)],2),f("div",null,[f("div",uh,R(g.name),1),f("div",fh,[f("span",null,R(g.category),1),h[0]||(h[0]=f("span",{class:"text-gray-300 dark:text-gray-600"},"•",-1)),f("span",dh,"Tier "+R(g.tierIndex)+"/"+R(g.totalTiers),1)])])]),f("div",hh,[f("div",{class:J(["text-sm font-bold",g.isClose?"text-green-500":"text-gray-700 dark:text-gray-200"])},[ce(R(N(z)(g.currentValue))+" ",1),h[1]||(h[1]=f("span",{class:"text-gray-400 dark:text-gray-500 font-normal"},"/",-1)),f("span",mh,R(N(z)(g.target)),1)],2),f("div",gh,R(g.remaining>0?`${N(z)(g.remaining)} to go`:"Ready to claim!"),1)])]),f("div",ph,[f("div",{class:J(["h-full rounded-full transition-all duration-500 ease-out",g.progressColor]),style:St({width:`${g.progress}%`})},null,6)]),f("div",yh,[f("div",vh,[(v(!0),k(Y,null,xe(g.allTiers.slice(0,5),(y,S)=>(v(),k("span",{key:y.threshold,class:J(["w-1.5 h-1.5 rounded-full",S5?(v(),k("span",bh,"+"+R(g.totalTiers-5),1)):W("",!0)]),f("span",{class:J(["text-xs font-semibold",g.isClose?"text-green-500":"text-gray-400 dark:text-gray-500"])},R(g.progress)+"% ",3)])]))),128)),c.value>0?(v(),k("div",_h," +"+R(c.value)+" more achievements to unlock ",1)):W("",!0),a.value.length?W("",!0):(v(),k("div",wh,[...h[2]||(h[2]=[f("div",{class:"w-16 h-16 mx-auto mb-3 rounded-2xl bg-gradient-to-br from-yellow-400 to-amber-500 flex items-center justify-center shadow-lg"},[f("i",{class:"fas fa-trophy text-2xl text-white"})],-1),f("p",{class:"font-medium text-gray-700 dark:text-gray-300"},"All achievements unlocked!",-1),f("p",{class:"text-sm mt-1"},"You're a legend!",-1)])]))]))}},Ch={class:"py-12 px-4"},Rh={class:"container mx-auto"},Sh={class:"flex flex-col md:flex-row items-center md:items-start space-y-4 md:space-y-0 md:space-x-8"},Eh={class:"text-center md:text-left"},Ah={class:"text-4xl font-bold gradient-text"},$h={class:"text-xl text-gray-500 dark:text-gray-400 mt-1"},Ph={class:"flex items-center justify-center md:justify-start space-x-4 mt-4"},Th={class:"score-card rounded-lg px-4 py-2"},Oh={class:"text-2xl font-bold gradient-text ml-2"},Ih={key:0,class:"text-sm text-gray-500 dark:text-gray-400"},Nh={key:0},Mh={key:0,class:"mt-6 flex flex-wrap justify-center md:justify-start gap-3"},Dh={class:"py-8 px-4"},Lh={class:"container mx-auto"},jh={class:"grid grid-cols-2 md:grid-cols-4 gap-4"},Fh={class:"py-8 px-4"},Vh={class:"container mx-auto"},Bh={class:"grid md:grid-cols-2 gap-6"},Hh={class:"card"},Uh={class:"space-y-4"},Gh={class:"flex items-center justify-between"},qh={class:"text-green-500 font-semibold"},Kh={class:"flex items-center justify-between"},Wh={class:"text-red-500 font-semibold"},zh={class:"flex items-center justify-between"},Jh={class:"text-gray-800 dark:text-white font-semibold"},Yh={key:0,class:"flex items-center justify-between"},Qh={class:"text-gray-800 dark:text-white font-semibold"},Xh={class:"card"},Zh={class:"space-y-4"},em={class:"flex items-center justify-between"},tm={class:"text-gray-800 dark:text-white font-semibold"},nm={class:"flex items-center justify-between"},sm={class:"text-green-500 font-semibold"},rm={class:"flex items-center justify-between"},om={class:"text-orange-500 font-semibold"},im={class:"flex items-center justify-between"},lm={class:"text-gray-800 dark:text-white font-semibold"},am={key:0,class:"flex items-center justify-between"},cm={class:"text-gray-800 dark:text-white font-semibold"},um={key:0,class:"py-8 px-4"},fm={class:"container mx-auto"},dm={class:"card"},hm={class:"grid grid-cols-2 md:grid-cols-5 gap-4"},mm={class:"text-center p-4 rounded-lg bg-gray-50 dark:bg-gray-800/50"},gm={class:"text-2xl font-bold text-green-500"},pm={class:"text-center p-4 rounded-lg bg-gray-50 dark:bg-gray-800/50"},ym={class:"text-2xl font-bold text-blue-500"},vm={class:"text-center p-4 rounded-lg bg-gray-50 dark:bg-gray-800/50"},xm={class:"text-2xl font-bold text-purple-500"},bm={class:"text-center p-4 rounded-lg bg-gray-50 dark:bg-gray-800/50"},_m={class:"text-2xl font-bold text-orange-500"},wm={class:"text-center p-4 rounded-lg bg-gray-50 dark:bg-gray-800/50"},km={class:"text-2xl font-bold text-yellow-500"},Cm={class:"py-8 px-4"},Rm={class:"container mx-auto"},Sm={class:"grid md:grid-cols-2 gap-6"},Em={key:0,class:"card"},Am={class:"flex items-center justify-between mb-6"},$m={class:"px-2.5 py-1 rounded-full bg-gradient-to-r from-yellow-400 to-amber-500 text-white text-sm font-bold shadow-md"},Pm={class:"grid grid-cols-4 sm:grid-cols-5 gap-3"},Tm={class:"card"},Om={key:1,class:"py-8 px-4"},Im={class:"container mx-auto"},Nm={class:"flex flex-wrap gap-2"},Mm={__name:"Contributor",setup(e){const t=es(),n=$e("globalData"),s=ke(null),r=ke(!0),o=ke(null),i=oe(()=>{var a;return[{label:"Dashboard",to:"/"},{label:"Contributors"},{label:((a=s.value)==null?void 0:a.login)||t.params.login}]});async function l(){var c,u,h,g,y;r.value=!0,o.value=null;const a=t.params.login;try{const S=await fetch(`./data/contributors/${a}.json`);if(S.ok){const P=await S.json(),$=(((c=n.value)==null?void 0:c.leaderboard)||[]).find(D=>D.login===a);$&&(P.score={total:$.score,rank:$.rank,breakdown:(u=P.score)==null?void 0:u.breakdown},P.achievements=$.achievements),s.value=P}else{let B=(((h=n.value)==null?void 0:h.leaderboard)||[]).find($=>$.login===a);if(!B){const $=((g=n.value)==null?void 0:g.repositories)||[];for(const D of $){const F=(y=D.contributors)==null?void 0:y.find(j=>j.login===a);if(F){B=F;break}}}B?s.value=B:o.value="Contributor not found"}}catch(S){o.value=`Failed to load contributor: ${S.message}`}r.value=!1}return jt(l),Ue(()=>t.params,l),Ue(n,l),(a,c)=>{var u,h,g,y,S,P,B;return v(),k("div",null,[r.value?(v(),ie(Zs,{key:0,message:"Loading contributor..."})):o.value?(v(),ie(er,{key:1,message:o.value},null,8,["message"])):s.value?(v(),k(Y,{key:2},[f("header",Ch,[f("div",Rh,[M(ts,{breadcrumbs:i.value,title:""},null,8,["breadcrumbs"]),f("div",Sh,[M(Sn,{src:s.value.avatar_url,name:s.value.login,size:"2xl",class:"shadow-modern"},null,8,["src","name"]),f("div",Eh,[f("h1",Ah,R(s.value.name||s.value.login),1),f("p",$h,[M(Ei,{url:`https://github.com/${s.value.login}`},{default:Z(()=>[ce(" @"+R(s.value.login),1)]),_:1},8,["url"])]),f("div",Ph,[f("div",Th,[c[0]||(c[0]=f("span",{class:"text-sm text-gray-500 dark:text-gray-400"},"Score:",-1)),f("span",Oh,R(N(z)(((u=s.value.score)==null?void 0:u.total)||s.value.score||0)),1)]),(h=s.value.score)!=null&&h.rank?(v(),k("div",Ih,[ce(" Rank #"+R(s.value.score.rank)+" ",1),(g=s.value.score)!=null&&g.percentile_rank?(v(),k("span",Nh," (Top "+R(N(Pu)(s.value.score.percentile_rank))+") ",1)):W("",!0)])):W("",!0)]),(y=s.value.achievements)!=null&&y.length?(v(),k("div",Mh,[(v(!0),k(Y,null,xe(s.value.achievements,$=>(v(),ie(wn,{key:$,"achievement-id":$,size:"lg","show-label":""},null,8,["achievement-id"]))),128))])):W("",!0)])])])]),f("section",Dh,[f("div",Lh,[f("div",jh,[M(_e,{value:s.value.commit_count||0,label:"Commits",icon:"fas fa-code-commit","icon-color":"text-green-500"},null,8,["value"]),M(_e,{value:s.value.prs_opened||0,label:"PRs Opened",icon:"fas fa-code-pull-request","icon-color":"text-blue-500"},null,8,["value"]),M(_e,{value:s.value.prs_merged||0,label:"PRs Merged",icon:"fas fa-code-merge","icon-color":"text-purple-500"},null,8,["value"]),M(_e,{value:s.value.reviews_given||0,label:"Reviews Given",icon:"fas fa-eye","icon-color":"text-orange-500"},null,8,["value"])])])]),f("section",Fh,[f("div",Vh,[f("div",Bh,[f("div",Hh,[c[5]||(c[5]=f("h3",{class:"text-lg font-semibold text-gray-800 dark:text-white mb-4"},[f("i",{class:"fas fa-code text-green-500 mr-2"}),ce("Code Contributions ")],-1)),f("div",Uh,[f("div",Gh,[c[1]||(c[1]=f("span",{class:"text-gray-600 dark:text-gray-300"},"Lines Added",-1)),f("span",qh," +"+R(N(z)(s.value.lines_added||0)),1)]),f("div",Kh,[c[2]||(c[2]=f("span",{class:"text-gray-600 dark:text-gray-300"},"Lines Deleted",-1)),f("span",Wh," -"+R(N(z)(s.value.lines_deleted||0)),1)]),f("div",zh,[c[3]||(c[3]=f("span",{class:"text-gray-600 dark:text-gray-300"},"Files Changed",-1)),f("span",Jh,R(N(z)(s.value.files_changed||0)),1)]),s.value.avg_pr_size?(v(),k("div",Yh,[c[4]||(c[4]=f("span",{class:"text-gray-600 dark:text-gray-300"},"Avg PR Size",-1)),f("span",Qh,R(N(z)(Math.round(s.value.avg_pr_size)))+" lines ",1)])):W("",!0)])]),f("div",Xh,[c[11]||(c[11]=f("h3",{class:"text-lg font-semibold text-gray-800 dark:text-white mb-4"},[f("i",{class:"fas fa-comments text-purple-500 mr-2"}),ce("Review Activity ")],-1)),f("div",Zh,[f("div",em,[c[6]||(c[6]=f("span",{class:"text-gray-600 dark:text-gray-300"},"Reviews Given",-1)),f("span",tm,R(N(z)(s.value.reviews_given||0)),1)]),f("div",nm,[c[7]||(c[7]=f("span",{class:"text-gray-600 dark:text-gray-300"},"Approvals",-1)),f("span",sm,R(N(z)(s.value.approvals_given||0)),1)]),f("div",rm,[c[8]||(c[8]=f("span",{class:"text-gray-600 dark:text-gray-300"},"Changes Requested",-1)),f("span",om,R(N(z)(s.value.changes_requested||0)),1)]),f("div",im,[c[9]||(c[9]=f("span",{class:"text-gray-600 dark:text-gray-300"},"Review Comments",-1)),f("span",lm,R(N(z)(s.value.review_comments||0)),1)]),s.value.avg_review_time_hours?(v(),k("div",am,[c[10]||(c[10]=f("span",{class:"text-gray-600 dark:text-gray-300"},"Avg Review Time",-1)),f("span",cm,R(N($u)(s.value.avg_review_time_hours)),1)])):W("",!0)])])])])]),(S=s.value.score)!=null&&S.breakdown?(v(),k("section",um,[f("div",fm,[f("div",dm,[c[17]||(c[17]=f("h3",{class:"text-lg font-semibold text-gray-800 dark:text-white mb-4"},[f("i",{class:"fas fa-chart-pie gradient-text mr-2"}),ce("Score Breakdown ")],-1)),f("div",hm,[f("div",mm,[f("div",gm,R(N(z)(s.value.score.breakdown.commits||0)),1),c[12]||(c[12]=f("div",{class:"text-xs text-gray-500 dark:text-gray-400 mt-1"},"Commits",-1))]),f("div",pm,[f("div",ym,R(N(z)(s.value.score.breakdown.prs||0)),1),c[13]||(c[13]=f("div",{class:"text-xs text-gray-500 dark:text-gray-400 mt-1"},"PRs",-1))]),f("div",vm,[f("div",xm,R(N(z)(s.value.score.breakdown.reviews||0)),1),c[14]||(c[14]=f("div",{class:"text-xs text-gray-500 dark:text-gray-400 mt-1"},"Reviews",-1))]),f("div",bm,[f("div",_m,R(N(z)(s.value.score.breakdown.line_changes||0)),1),c[15]||(c[15]=f("div",{class:"text-xs text-gray-500 dark:text-gray-400 mt-1"},"Line Changes",-1))]),f("div",wm,[f("div",km,R(N(z)(s.value.score.breakdown.response_bonus||0)),1),c[16]||(c[16]=f("div",{class:"text-xs text-gray-500 dark:text-gray-400 mt-1"},"Response Bonus",-1))])])])])])):W("",!0),f("section",Cm,[f("div",Rm,[f("div",Sm,[(P=s.value.achievements)!=null&&P.length?(v(),k("div",Em,[f("div",Am,[c[18]||(c[18]=f("h3",{class:"text-lg font-semibold text-gray-800 dark:text-white"},[f("i",{class:"fas fa-award gradient-text mr-2"}),ce("Achievements Earned ")],-1)),f("span",$m,R(s.value.achievements.length),1)]),f("div",Pm,[(v(!0),k(Y,null,xe(s.value.achievements,$=>(v(),k("div",{key:$,class:"flex flex-col items-center p-2 rounded-xl bg-gray-50 dark:bg-gray-800/50 hover:bg-gray-100 dark:hover:bg-gray-800 transition-colors"},[M(wn,{"achievement-id":$,size:"md","show-label":""},null,8,["achievement-id"])]))),128))])])):W("",!0),f("div",Tm,[c[19]||(c[19]=f("h3",{class:"text-lg font-semibold text-gray-800 dark:text-white mb-6"},[f("i",{class:"fas fa-chart-line text-primary-500 mr-2"}),ce("Next Achievements ")],-1)),M(kh,{contributor:s.value,"max-display":6},null,8,["contributor"])])])])]),(B=s.value.repositories_contributed)!=null&&B.length?(v(),k("section",Om,[f("div",Im,[M(It,{title:`Contributed to ${s.value.repositories_contributed.length} Repositories`,icon:"fas fa-folder-tree","icon-color":"text-blue-500"},null,8,["title"]),f("div",Nm,[(v(!0),k(Y,null,xe(s.value.repositories_contributed,$=>(v(),ie(N(Re),{key:$,to:`/repos/${$}`,class:"inline-flex items-center px-3 py-1.5 rounded-full text-sm bg-gray-100 dark:bg-gray-800 text-gray-700 dark:text-gray-300 hover:bg-primary-100 dark:hover:bg-primary-900/30 hover:text-primary-700 dark:hover:text-primary-300 transition-colors"},{default:Z(()=>[c[20]||(c[20]=f("i",{class:"fas fa-code-branch text-gray-400 mr-2"},null,-1)),ce(" "+R($),1)]),_:2},1032,["to"]))),128))])])])):W("",!0)],64)):W("",!0)])}}},Dm=[{path:"/",name:"dashboard",component:qf},{path:"/leaderboard",name:"leaderboard",component:_d},{path:"/repos/:owner/:name",name:"repository",component:Bd},{path:"/teams/:slug",name:"team",component:ih},{path:"/contributors/:login",name:"contributor",component:Mm}],Lm=ou({history:jc(),routes:Dm,scrollBehavior(){return{top:0}}}),Ai=Qa(Au);Ai.use(Lm);Ai.mount("#app"); diff --git a/internal/generator/site/dist/assets/index-BItowgpY.css b/internal/generator/site/dist/assets/index-BItowgpY.css new file mode 100644 index 0000000..1f43b76 --- /dev/null +++ b/internal/generator/site/dist/assets/index-BItowgpY.css @@ -0,0 +1 @@ +*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:Inter,sans-serif;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:JetBrains Mono,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.glass{border-width:1px;border-color:#fff3;background-color:#ffffffb3;--tw-backdrop-blur: blur(12px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.glass:is(.dark *){border-color:#ffffff1a;background-color:#111827b3}.gradient-text{background-image:linear-gradient(to right,var(--tw-gradient-stops));--tw-gradient-from: #f472b6 var(--tw-gradient-from-position);--tw-gradient-to: rgb(244 114 182 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to: #c084fc var(--tw-gradient-to-position);-webkit-background-clip:text;background-clip:text;color:transparent}.shadow-modern{box-shadow:0 10px 40px -10px #00000026}.dark .shadow-modern{box-shadow:0 10px 40px -10px #0006}.score-card{border-width:1px;border-color:#f472b633;background-image:linear-gradient(to right,var(--tw-gradient-stops));--tw-gradient-from: rgb(244 114 182 / .1) var(--tw-gradient-from-position);--tw-gradient-to: rgb(244 114 182 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to: rgb(192 132 252 / .1) var(--tw-gradient-to-position)}.dark .score-card{border-color:#f472b61a;--tw-gradient-from: rgb(244 114 182 / .05) var(--tw-gradient-from-position);--tw-gradient-to: rgb(244 114 182 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to: rgb(192 132 252 / .05) var(--tw-gradient-to-position)}.rank-1{background-image:linear-gradient(to right,var(--tw-gradient-stops));--tw-gradient-from: #facc15 var(--tw-gradient-from-position);--tw-gradient-to: rgb(250 204 21 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to: #f59e0b var(--tw-gradient-to-position)}.rank-2{background-image:linear-gradient(to right,var(--tw-gradient-stops));--tw-gradient-from: #94a3b8 var(--tw-gradient-from-position);--tw-gradient-to: rgb(148 163 184 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to: #64748b var(--tw-gradient-to-position)}.rank-3{background-image:linear-gradient(to right,var(--tw-gradient-stops));--tw-gradient-from: #d97706 var(--tw-gradient-from-position);--tw-gradient-to: rgb(217 119 6 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to: #b45309 var(--tw-gradient-to-position)}.btn-primary{box-shadow:0 10px 40px -10px #00000026}.dark .btn-primary{box-shadow:0 10px 40px -10px #0006}.btn-primary{display:inline-flex;align-items:center;border-radius:.5rem;background-image:linear-gradient(to right,var(--tw-gradient-stops));--tw-gradient-from: #ec4899 var(--tw-gradient-from-position);--tw-gradient-to: rgb(236 72 153 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to: #a855f7 var(--tw-gradient-to-position);padding:.75rem 1.5rem;font-weight:500;--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1));transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.btn-primary:hover{--tw-gradient-from: #db2777 var(--tw-gradient-from-position);--tw-gradient-to: rgb(219 39 119 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to: #9333ea var(--tw-gradient-to-position)}.card{border-width:1px;border-color:#fff3;background-color:#ffffffb3;--tw-backdrop-blur: blur(12px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.card:is(.dark *){border-color:#ffffff1a;background-color:#111827b3}.card{box-shadow:0 10px 40px -10px #00000026}.dark .card{box-shadow:0 10px 40px -10px #0006}.card{border-radius:.75rem;padding:1.5rem}.nav-link{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity, 1));transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.nav-link:hover{--tw-text-opacity: 1;color:rgb(236 72 153 / var(--tw-text-opacity, 1))}.nav-link:is(.dark *){--tw-text-opacity: 1;color:rgb(229 231 235 / var(--tw-text-opacity, 1))}.nav-link:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(244 114 182 / var(--tw-text-opacity, 1))}.nav-link-active{font-weight:500;--tw-text-opacity: 1;color:rgb(236 72 153 / var(--tw-text-opacity, 1))}.pointer-events-none{pointer-events:none}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.-right-1{right:-.25rem}.-top-1{top:-.25rem}.bottom-full{bottom:100%}.left-1\/2{left:50%}.top-0{top:0}.top-full{top:100%}.z-50{z-index:50}.mx-1{margin-left:.25rem;margin-right:.25rem}.mx-auto{margin-left:auto;margin-right:auto}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}.ml-0\.5{margin-left:.125rem}.ml-1{margin-left:.25rem}.ml-2{margin-left:.5rem}.mr-1{margin-right:.25rem}.mr-2{margin-right:.5rem}.mr-3{margin-right:.75rem}.mr-4{margin-right:1rem}.mt-0\.5{margin-top:.125rem}.mt-1{margin-top:.25rem}.mt-1\.5{margin-top:.375rem}.mt-16{margin-top:4rem}.mt-2{margin-top:.5rem}.mt-4{margin-top:1rem}.mt-6{margin-top:1.5rem}.block{display:block}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.hidden{display:none}.h-1\.5{height:.375rem}.h-10{height:2.5rem}.h-11{height:2.75rem}.h-14{height:3.5rem}.h-16{height:4rem}.h-2\.5{height:.625rem}.h-3{height:.75rem}.h-32{height:8rem}.h-4{height:1rem}.h-6{height:1.5rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-full{height:100%}.min-h-\[60vh\]{min-height:60vh}.min-h-screen{min-height:100vh}.w-1\.5{width:.375rem}.w-10{width:2.5rem}.w-11{width:2.75rem}.w-14{width:3.5rem}.w-16{width:4rem}.w-3{width:.75rem}.w-32{width:8rem}.w-4{width:1rem}.w-6{width:1.5rem}.w-8{width:2rem}.w-9{width:2.25rem}.w-full{width:100%}.max-w-2xl{max-width:42rem}.max-w-5xl{max-width:64rem}.max-w-\[180px\]{max-width:180px}.flex-1{flex:1 1 0%}.-translate-x-1\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.cursor-pointer{cursor:pointer}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1\.5{gap:.375rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.75rem * var(--tw-space-x-reverse));margin-left:calc(.75rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-6>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1.5rem * var(--tw-space-x-reverse));margin-left:calc(1.5rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}.divide-gray-200>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(229 231 235 / var(--tw-divide-opacity, 1))}.overflow-hidden{overflow:hidden}.scroll-smooth{scroll-behavior:smooth}.whitespace-nowrap{white-space:nowrap}.rounded{border-radius:.25rem}.rounded-2xl{border-radius:1rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:.5rem}.rounded-xl{border-radius:.75rem}.border{border-width:1px}.border-\[6px\]{border-width:6px}.border-t{border-top-width:1px}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1))}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1))}.border-transparent{border-color:transparent}.border-white\/10{border-color:#ffffff1a}.border-t-gray-900{--tw-border-opacity: 1;border-top-color:rgb(17 24 39 / var(--tw-border-opacity, 1))}.bg-blue-500{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity, 1))}.bg-cyan-500{--tw-bg-opacity: 1;background-color:rgb(6 182 212 / var(--tw-bg-opacity, 1))}.bg-emerald-500{--tw-bg-opacity: 1;background-color:rgb(16 185 129 / var(--tw-bg-opacity, 1))}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1))}.bg-gray-200{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity, 1))}.bg-gray-300{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity, 1))}.bg-gray-50{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1))}.bg-gray-900{--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity, 1))}.bg-green-500{--tw-bg-opacity: 1;background-color:rgb(34 197 94 / var(--tw-bg-opacity, 1))}.bg-orange-500{--tw-bg-opacity: 1;background-color:rgb(249 115 22 / var(--tw-bg-opacity, 1))}.bg-pink-500{--tw-bg-opacity: 1;background-color:rgb(236 72 153 / var(--tw-bg-opacity, 1))}.bg-purple-100{--tw-bg-opacity: 1;background-color:rgb(243 232 255 / var(--tw-bg-opacity, 1))}.bg-purple-500{--tw-bg-opacity: 1;background-color:rgb(168 85 247 / var(--tw-bg-opacity, 1))}.bg-red-500{--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity, 1))}.bg-stone-500{--tw-bg-opacity: 1;background-color:rgb(120 113 108 / var(--tw-bg-opacity, 1))}.bg-violet-500{--tw-bg-opacity: 1;background-color:rgb(139 92 246 / var(--tw-bg-opacity, 1))}.bg-yellow-500{--tw-bg-opacity: 1;background-color:rgb(234 179 8 / var(--tw-bg-opacity, 1))}.bg-gradient-to-br{background-image:linear-gradient(to bottom right,var(--tw-gradient-stops))}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.from-blue-400{--tw-gradient-from: #60a5fa var(--tw-gradient-from-position);--tw-gradient-to: rgb(96 165 250 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-cyan-400{--tw-gradient-from: #22d3ee var(--tw-gradient-from-position);--tw-gradient-to: rgb(34 211 238 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-emerald-400{--tw-gradient-from: #34d399 var(--tw-gradient-from-position);--tw-gradient-to: rgb(52 211 153 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-gray-400{--tw-gradient-from: #9ca3af var(--tw-gradient-from-position);--tw-gradient-to: rgb(156 163 175 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-gray-50{--tw-gradient-from: #f9fafb var(--tw-gradient-from-position);--tw-gradient-to: rgb(249 250 251 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-green-400{--tw-gradient-from: #4ade80 var(--tw-gradient-from-position);--tw-gradient-to: rgb(74 222 128 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-orange-400{--tw-gradient-from: #fb923c var(--tw-gradient-from-position);--tw-gradient-to: rgb(251 146 60 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-pink-500,.from-primary-500{--tw-gradient-from: #ec4899 var(--tw-gradient-from-position);--tw-gradient-to: rgb(236 72 153 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-purple-400{--tw-gradient-from: #c084fc var(--tw-gradient-from-position);--tw-gradient-to: rgb(192 132 252 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-red-500{--tw-gradient-from: #ef4444 var(--tw-gradient-from-position);--tw-gradient-to: rgb(239 68 68 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-stone-400{--tw-gradient-from: #a8a29e var(--tw-gradient-from-position);--tw-gradient-to: rgb(168 162 158 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-violet-500{--tw-gradient-from: #8b5cf6 var(--tw-gradient-from-position);--tw-gradient-to: rgb(139 92 246 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-yellow-400{--tw-gradient-from: #facc15 var(--tw-gradient-from-position);--tw-gradient-to: rgb(250 204 21 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.to-accent-500{--tw-gradient-to: #a855f7 var(--tw-gradient-to-position)}.to-amber-500{--tw-gradient-to: #f59e0b var(--tw-gradient-to-position)}.to-cyan-500{--tw-gradient-to: #06b6d4 var(--tw-gradient-to-position)}.to-emerald-500{--tw-gradient-to: #10b981 var(--tw-gradient-to-position)}.to-fuchsia-600{--tw-gradient-to: #c026d3 var(--tw-gradient-to-position)}.to-gray-100{--tw-gradient-to: #f3f4f6 var(--tw-gradient-to-position)}.to-gray-500{--tw-gradient-to: #6b7280 var(--tw-gradient-to-position)}.to-indigo-500{--tw-gradient-to: #6366f1 var(--tw-gradient-to-position)}.to-purple-600{--tw-gradient-to: #9333ea var(--tw-gradient-to-position)}.to-red-500{--tw-gradient-to: #ef4444 var(--tw-gradient-to-position)}.to-rose-600{--tw-gradient-to: #e11d48 var(--tw-gradient-to-position)}.to-stone-500{--tw-gradient-to: #78716c var(--tw-gradient-to-position)}.to-teal-500{--tw-gradient-to: #14b8a6 var(--tw-gradient-to-position)}.to-violet-500{--tw-gradient-to: #8b5cf6 var(--tw-gradient-to-position)}.p-0{padding:0}.p-2{padding:.5rem}.p-4{padding:1rem}.px-2\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-12{padding-top:3rem;padding-bottom:3rem}.py-16{padding-top:4rem;padding-bottom:4rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-8{padding-top:2rem;padding-bottom:2rem}.pr-10{padding-right:2.5rem}.pt-2{padding-top:.5rem}.pt-4{padding-top:1rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.font-sans{font-family:Inter,sans-serif}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-\[10px\]{font-size:10px}.text-\[11px\]{font-size:11px}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.leading-tight{line-height:1.25}.tracking-wider{letter-spacing:.05em}.text-accent-500{--tw-text-opacity: 1;color:rgb(168 85 247 / var(--tw-text-opacity, 1))}.text-amber-500{--tw-text-opacity: 1;color:rgb(245 158 11 / var(--tw-text-opacity, 1))}.text-blue-500{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity, 1))}.text-cyan-500{--tw-text-opacity: 1;color:rgb(6 182 212 / var(--tw-text-opacity, 1))}.text-emerald-500{--tw-text-opacity: 1;color:rgb(16 185 129 / var(--tw-text-opacity, 1))}.text-gray-300{--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity, 1))}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity, 1))}.text-gray-800{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity, 1))}.text-green-500{--tw-text-opacity: 1;color:rgb(34 197 94 / var(--tw-text-opacity, 1))}.text-orange-500{--tw-text-opacity: 1;color:rgb(249 115 22 / var(--tw-text-opacity, 1))}.text-pink-500,.text-primary-500{--tw-text-opacity: 1;color:rgb(236 72 153 / var(--tw-text-opacity, 1))}.text-purple-400{--tw-text-opacity: 1;color:rgb(192 132 252 / var(--tw-text-opacity, 1))}.text-purple-500{--tw-text-opacity: 1;color:rgb(168 85 247 / var(--tw-text-opacity, 1))}.text-purple-800{--tw-text-opacity: 1;color:rgb(107 33 168 / var(--tw-text-opacity, 1))}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity, 1))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.text-yellow-500{--tw-text-opacity: 1;color:rgb(234 179 8 / var(--tw-text-opacity, 1))}.opacity-0{opacity:0}.opacity-50{opacity:.5}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.ring-2{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-transparent{--tw-ring-color: transparent}.ring-yellow-400{--tw-ring-opacity: 1;--tw-ring-color: rgb(250 204 21 / var(--tw-ring-opacity, 1))}.drop-shadow-sm{--tw-drop-shadow: drop-shadow(0 1px 1px rgb(0 0 0 / .05));filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-shadow{transition-property:box-shadow;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.duration-500{transition-duration:.5s}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.animate-fade-in-up{animation:fadeInUp .6s ease-out}@keyframes fadeInUp{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}.hover\:scale-105:hover{--tw-scale-x: 1.05;--tw-scale-y: 1.05;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.hover\:bg-gray-100:hover{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1))}.hover\:bg-gray-200:hover{--tw-bg-opacity: 1;background-color:rgb(229 231 235 / var(--tw-bg-opacity, 1))}.hover\:bg-gray-50:hover{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1))}.hover\:bg-primary-100:hover{--tw-bg-opacity: 1;background-color:rgb(252 231 243 / var(--tw-bg-opacity, 1))}.hover\:text-primary-500:hover{--tw-text-opacity: 1;color:rgb(236 72 153 / var(--tw-text-opacity, 1))}.hover\:text-primary-600:hover{--tw-text-opacity: 1;color:rgb(219 39 119 / var(--tw-text-opacity, 1))}.hover\:text-primary-700:hover{--tw-text-opacity: 1;color:rgb(190 24 93 / var(--tw-text-opacity, 1))}.hover\:shadow-lg:hover{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.hover\:shadow-xl:hover{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.focus\:ring-primary-500:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(236 72 153 / var(--tw-ring-opacity, 1))}.group:hover .group-hover\:text-primary-500{--tw-text-opacity: 1;color:rgb(236 72 153 / var(--tw-text-opacity, 1))}.group\/badge:hover .group-hover\/badge\:opacity-100{opacity:1}.group:hover .group-hover\:ring-primary-500{--tw-ring-opacity: 1;--tw-ring-color: rgb(236 72 153 / var(--tw-ring-opacity, 1))}.dark\:divide-gray-700:is(.dark *)>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(55 65 81 / var(--tw-divide-opacity, 1))}.dark\:border-gray-700:is(.dark *){--tw-border-opacity: 1;border-color:rgb(55 65 81 / var(--tw-border-opacity, 1))}.dark\:border-t-gray-800:is(.dark *){--tw-border-opacity: 1;border-top-color:rgb(31 41 55 / var(--tw-border-opacity, 1))}.dark\:bg-gray-600:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity, 1))}.dark\:bg-gray-700:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity, 1))}.dark\:bg-gray-800:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity, 1))}.dark\:bg-gray-800\/50:is(.dark *){background-color:#1f293780}.dark\:bg-purple-900\/30:is(.dark *){background-color:#581c874d}.dark\:from-gray-900:is(.dark *){--tw-gradient-from: #111827 var(--tw-gradient-from-position);--tw-gradient-to: rgb(17 24 39 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.dark\:to-gray-800:is(.dark *){--tw-gradient-to: #1f2937 var(--tw-gradient-to-position)}.dark\:text-gray-200:is(.dark *){--tw-text-opacity: 1;color:rgb(229 231 235 / var(--tw-text-opacity, 1))}.dark\:text-gray-300:is(.dark *){--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity, 1))}.dark\:text-gray-400:is(.dark *){--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.dark\:text-gray-500:is(.dark *){--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.dark\:text-gray-600:is(.dark *){--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}.dark\:text-purple-300:is(.dark *){--tw-text-opacity: 1;color:rgb(216 180 254 / var(--tw-text-opacity, 1))}.dark\:text-white:is(.dark *){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.dark\:hover\:bg-gray-700:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity, 1))}.dark\:hover\:bg-gray-800:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity, 1))}.dark\:hover\:bg-gray-800\/30:hover:is(.dark *){background-color:#1f29374d}.dark\:hover\:bg-primary-900\/30:hover:is(.dark *){background-color:#8318434d}.dark\:hover\:text-primary-300:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(249 168 212 / var(--tw-text-opacity, 1))}@media (min-width: 640px){.sm\:table-cell{display:table-cell}.sm\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}}@media (min-width: 768px){.md\:flex{display:flex}.md\:table-cell{display:table-cell}.md\:hidden{display:none}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.md\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.md\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.md\:flex-row{flex-direction:row}.md\:items-start{align-items:flex-start}.md\:justify-start{justify-content:flex-start}.md\:space-x-8>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(2rem * var(--tw-space-x-reverse));margin-left:calc(2rem * calc(1 - var(--tw-space-x-reverse)))}.md\:space-y-0>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(0px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0px * var(--tw-space-y-reverse))}.md\:text-left{text-align:left}.md\:text-6xl{font-size:3.75rem;line-height:1}}@media (min-width: 1024px){.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}}.velocity-chart[data-v-401bbb13]{position:relative;width:100%} diff --git a/internal/generator/site/dist/index.html b/internal/generator/site/dist/index.html new file mode 100644 index 0000000..90cf9ad --- /dev/null +++ b/internal/generator/site/dist/index.html @@ -0,0 +1,18 @@ + + + + + + Git Velocity + + + + + + + + + +
+ +