Files
git-velocity/internal/generator/site/dist/assets/index-R3eb927Q.js
T

2 lines
154 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import{C as rr,r as Oi}from"./chart-Bcjh2pZL.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)}})();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:"),$e=Object.assign,Ms=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Ii=Object.prototype.hasOwnProperty,re=(e,t)=>Ii.call(e,t),U=Array.isArray,Wt=e=>kn(e)==="[object Map]",Hn=e=>kn(e)==="[object Set]",or=e=>kn(e)==="[object Date]",K=e=>typeof e=="function",pe=e=>typeof e=="string",We=e=>typeof e=="symbol",de=e=>e!==null&&typeof e=="object",Zr=e=>(de(e)||K(e))&&K(e.then)&&K(e.catch),eo=Object.prototype.toString,kn=e=>eo.call(e),Ni=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"),Bn=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},Mi=/-\w/g,Ge=Bn(e=>e.replace(Mi,t=>t.slice(1).toUpperCase())),Di=/\B([A-Z])/g,Lt=Bn(e=>e.replace(Di,"-$1").toLowerCase()),Un=Bn(e=>e.charAt(0).toUpperCase()+e.slice(1)),ns=Bn(e=>e?`on${Un(e)}`:""),Ct=(e,t)=>!Object.is(e,t),$n=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},no=(e,t,n,s=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},Li=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(U(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],r=pe(s)?Hi(s):St(s);if(r)for(const o in r)t[o]=r[o]}return t}else if(pe(e)||de(e))return e}const ji=/;(?![^(]*\))/g,Fi=/:([^]+)/,Vi=/\/\*[^]*?\*\//g;function Hi(e){const t={};return e.replace(Vi,"").split(ji).forEach(n=>{if(n){const s=n.split(Fi);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function J(e){let t="";if(pe(e))t=e;else if(U(e))for(let n=0;n<e.length;n++){const s=J(e[n]);s&&(t+=s+" ")}else if(de(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const Bi="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Ui=Is(Bi);function so(e){return!!e||e===""}function Gi(e,t){if(e.length!==t.length)return!1;let n=!0;for(let s=0;n&&s<e.length;s++)n=qn(e[s],t[s]);return n}function qn(e,t){if(e===t)return!0;let n=or(e),s=or(t);if(n||s)return n&&s?e.getTime()===t.getTime():!1;if(n=We(e),s=We(t),n||s)return e===t;if(n=U(e),s=U(t),n||s)return n&&s?Gi(e,t):!1;if(n=de(e),s=de(t),n||s){if(!n||!s)return!1;const r=Object.keys(e).length,o=Object.keys(t).length;if(r!==o)return!1;for(const i in e){const l=e.hasOwnProperty(i),a=t.hasOwnProperty(i);if(l&&!a||!l&&a||!qn(e[i],t[i]))return!1}}return String(e)===String(t)}function ro(e,t){return e.findIndex(n=>qn(n,t))}const oo=e=>!!(e&&e.__v_isRef===!0),k=e=>pe(e)?e:e==null?"":U(e)||de(e)&&(e.toString===eo||!K(e.toString))?oo(e)?k(e.value):JSON.stringify(e,io,2):String(e),io=(e,t)=>oo(t)?io(e,t.value):Wt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,r],o)=>(n[ss(s,o)+" =>"]=r,n),{})}:Hn(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>ss(n))}:We(t)?ss(t):de(t)&&!U(t)&&!to(t)?String(t):t,ss=(e,t="")=>{var n;return We(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};let Le;class qi{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;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=Le;try{return Le=this,t()}finally{Le=n}}}on(){++this._on===1&&(this.prevScope=Le,Le=this)}off(){this._on>0&&--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;n<s;n++)this.effects[n].stop();for(this.effects.length=0,n=0,s=this.cleanups.length;n<s;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,s=this.scopes.length;n<s;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0}}}function Wi(){return Le}let me;const rs=new WeakSet;class lo{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Le&&Le.active&&Le.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,rs.has(this)&&(rs.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||co(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,lr(this),uo(this);const t=me,n=qe;me=this,qe=!0;try{return this.fn()}finally{fo(this),me=t,qe=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Fs(t);this.deps=this.depsTail=void 0,lr(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?rs.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){ys(this)&&this.run()}get dirty(){return ys(this)}}let ao=0,an,cn;function co(e,t=!1){if(e.flags|=8,t){e.next=cn,cn=e;return}e.next=an,an=e}function Ls(){ao++}function js(){if(--ao>0)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),Ki(s)):t=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=r}e.deps=t,e.depsTail=n}function ys(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(mo(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function mo(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||!ys(e))))return;e.flags|=2;const t=e.dep,n=me,s=qe;me=e,qe=!0;try{uo(e);const r=e.fn(e._value);(t.version===0||Ct(r,e._value))&&(e.flags|=128,e._value=r,t.version++)}catch(r){throw t.version++,r}finally{me=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 Ki(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 ho=[];function ft(){ho.push(qe),qe=!1}function mt(){const e=ho.pop();qe=e===void 0?!0:e}function lr(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=me;me=void 0;try{t()}finally{me=n}}}let gn=0;class zi{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(!me||!qe||me===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==me)n=this.activeLink=new zi(me,this),me.deps?(n.prevDep=me.depsTail,me.depsTail.nextDep=n,me.depsTail=n):me.deps=me.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=me.depsTail,n.nextDep=void 0,me.depsTail.nextDep=n,me.depsTail=n,me.deps===n&&(me.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&&me){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=U(e),c=a&&Ds(n);if(a&&n==="length"){const u=Number(s);i.forEach((m,g)=>{(g==="length"||g===pn||!We(g)&&g>=u)&&l(m)})}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)),Wt(e)&&l(i.get(bs)));break;case"delete":a||(l(i.get(Nt)),Wt(e)&&l(i.get(bs)));break;case"set":Wt(e)&&l(i.get(Nt));break}}js()}function Bt(e){const t=se(e);return t===e?t:(Se(t,"iterate",pn),Be(e)?t:t.map(Ke))}function Wn(e){return Se(e=se(e),"iterate",pn),e}function _t(e,t){return ht(e)?Mt(e)?Qt(Ke(t)):Qt(t):Ke(t)}const Ji={__proto__:null,[Symbol.iterator](){return os(this,Symbol.iterator,e=>_t(this,e))},concat(...e){return Bt(this).concat(...e.map(t=>U(t)?Bt(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 Bt(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 Bt(this).toReversed()},toSorted(e){return Bt(this).toSorted(e)},toSpliced(...e){return Bt(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=Wn(e),r=s[t]();return s!==e&&!Be(e)&&(r._next=r.next,r.next=()=>{const o=r._next();return o.done||(o.value=n(o.value)),o}),r}const Qi=Array.prototype;function lt(e,t,n,s,r,o){const i=Wn(e),l=i!==e&&!Be(e),a=i[t];if(a!==Qi[t]){const m=a.apply(e,o);return l?Ke(m):m}let c=n;i!==e&&(l?c=function(m,g){return n.call(this,_t(e,m),g,e)}:n.length>2&&(c=function(m,g){return n.call(this,m,g,e)}));const u=a.call(i,c,s);return l&&r?r(u):u}function ar(e,t,n,s){const r=Wn(e);let o=n;return r!==e&&(Be(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=[]){ft(),Ls();const s=se(e)[t].apply(e,n);return js(),mt(),s}const Yi=Is("__proto__,__v_isRef,__isVue"),po=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(We));function Xi(e){We(e)||(e=String(e));const t=se(this);return Se(t,"has",e),t.hasOwnProperty(e)}class vo{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?al:_o:o?bo:xo).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const i=U(t);if(!r){let a;if(i&&(a=Ji[n]))return a;if(n==="hasOwnProperty")return Xi}const l=Reflect.get(t,n,Ee(t)?t:s);if((We(n)?po.has(n):Yi(n))||(r||Se(t,"get",n),o))return l;if(Ee(l)){const a=i&&Ds(n)?l:l.value;return r&&de(a)?ws(a):a}return de(l)?r?ws(l):Kn(l):l}}class yo extends vo{constructor(t=!1){super(!1,t)}set(t,n,s,r){let o=t[n];const i=U(t)&&Ds(n);if(!this._isShallow){const c=ht(o);if(!Be(s)&&!ht(s)&&(o=se(o),s=se(s)),!i&&Ee(o)&&!Ee(s))return c||(o.value=s),!0}const l=i?Number(n)<t.length:re(t,n),a=Reflect.set(t,n,s,Ee(t)?t:r);return t===se(r)&&(l?Ct(s,o)&&ut(t,"set",n,s):ut(t,"add",n,s)),a}deleteProperty(t,n){const s=re(t,n);t[n];const r=Reflect.deleteProperty(t,n);return r&&s&&ut(t,"delete",n,void 0),r}has(t,n){const s=Reflect.has(t,n);return(!We(n)||!po.has(n))&&Se(t,"has",n),s}ownKeys(t){return Se(t,"iterate",U(t)?"length":Nt),Reflect.ownKeys(t)}}class Zi extends vo{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const el=new yo,tl=new Zi,nl=new yo(!0);const _s=e=>e,An=e=>Reflect.getPrototypeOf(e);function sl(e,t,n){return function(...s){const r=this.__v_raw,o=se(r),i=Wt(o),l=e==="entries"||e===Symbol.iterator&&i,a=e==="keys"&&i,c=r[e](...s),u=n?_s:t?Qt:Ke;return!t&&Se(o,"iterate",a?bs:Nt),{next(){const{value:m,done:g}=c.next();return g?{value:m,done:g}:{value:l?[u(m[0]),u(m[1])]:u(m),done:g}},[Symbol.iterator](){return this}}}}function En(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function rl(e,t){const n={get(r){const o=this.__v_raw,i=se(o),l=se(r);e||(Ct(r,l)&&Se(i,"get",r),Se(i,"get",l));const{has:a}=An(i),c=t?_s:e?Qt:Ke;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||(Ct(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?Qt:Ke;return!e&&Se(a,"iterate",Nt),l.forEach((u,m)=>r.call(o,c(u),c(m),i))}};return $e(n,e?{add:En("add"),set:En("set"),delete:En("delete"),clear:En("clear")}:{add(r){!t&&!Be(r)&&!ht(r)&&(r=se(r));const o=se(this);return An(o).has.call(o,r)||(o.add(r),ut(o,"add",r,r)),this},set(r,o){!t&&!Be(o)&&!ht(o)&&(o=se(o));const i=se(this),{has:l,get:a}=An(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?Ct(o,u)&&ut(i,"set",r,o):ut(i,"add",r,o),this},delete(r){const o=se(this),{has:i,get:l}=An(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]=sl(r,e,t)}),n}function Hs(e,t){const n=rl(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 ol={get:Hs(!1,!1)},il={get:Hs(!1,!0)},ll={get:Hs(!0,!1)};const xo=new WeakMap,bo=new WeakMap,_o=new WeakMap,al=new WeakMap;function cl(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function ul(e){return e.__v_skip||!Object.isExtensible(e)?0:cl(Ni(e))}function Kn(e){return ht(e)?e:Bs(e,!1,el,ol,xo)}function wo(e){return Bs(e,!1,nl,il,bo)}function ws(e){return Bs(e,!0,tl,ll,_o)}function Bs(e,t,n,s,r){if(!de(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=ul(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 ht(e)?Mt(e.__v_raw):!!(e&&e.__v_isReactive)}function ht(e){return!!(e&&e.__v_isReadonly)}function Be(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 dl(e){return!re(e,"__v_skip")&&Object.isExtensible(e)&&no(e,"__v_skip",!0),e}const Ke=e=>de(e)?Kn(e):e,Qt=e=>de(e)?ws(e):e;function Ee(e){return e?e.__v_isRef===!0:!1}function ke(e){return ko(e,!1)}function fl(e){return ko(e,!0)}function ko(e,t){return Ee(e)?e:new ml(e,t)}class ml{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:Ke(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,s=this.__v_isShallow||Be(t)||ht(t);t=s?t:se(t),Ct(t,n)&&(this._rawValue=t,this._value=s?t:Ke(t),this.dep.trigger())}}function P(e){return Ee(e)?e.value:e}const hl={get:(e,t,n)=>t==="__v_raw"?e:P(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const r=e[t];return Ee(r)&&!Ee(n)?(r.value=n,!0):Reflect.set(e,t,n,s)}};function Ro(e){return Mt(e)?e:new Proxy(e,hl)}class gl{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)&&me!==this)return co(this,!0),!0}get value(){const t=this.dep.track();return mo(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function pl(e,t,n=!1){let s,r;return K(e)?s=e:(s=e.get,r=e.set),new gl(s,r,n)}const Pn={},In=new WeakMap;let Tt;function vl(e,t=!1,n=Tt){if(n){let s=In.get(n);s||In.set(n,s=[]),s.push(e)}}function yl(e,t,n=ue){const{immediate:s,deep:r,once:o,scheduler:i,augmentJob:l,call:a}=n,c=L=>r?L:Be(L)||r===!1||r===0?dt(L,1):dt(L);let u,m,g,v,S=!1,I=!1;if(Ee(e)?(m=()=>e.value,S=Be(e)):Mt(e)?(m=()=>c(e),S=!0):U(e)?(I=!0,S=e.some(L=>Mt(L)||Be(L)),m=()=>e.map(L=>{if(Ee(L))return L.value;if(Mt(L))return c(L);if(K(L))return a?a(L,2):L()})):K(e)?t?m=a?()=>a(e,2):e:m=()=>{if(g){ft();try{g()}finally{mt()}}const L=Tt;Tt=u;try{return a?a(e,3,[v]):e(v)}finally{Tt=L}}:m=rt,t&&r){const L=m,ee=r===!0?1/0:r;m=()=>dt(L(),ee)}const W=Wi(),j=()=>{u.stop(),W&&W.active&&Ms(W.effects,u)};if(o&&t){const L=t;t=(...ee)=>{L(...ee),j()}}let D=I?new Array(e.length).fill(Pn):Pn;const V=L=>{if(!(!(u.flags&1)||!u.dirty&&!L))if(t){const ee=u.run();if(r||S||(I?ee.some((ve,he)=>Ct(ve,D[he])):Ct(ee,D))){g&&g();const ve=Tt;Tt=u;try{const he=[ee,D===Pn?void 0:I&&D[0]===Pn?[]:D,v];D=ee,a?a(t,3,he):t(...he)}finally{Tt=ve}}}else u.run()};return l&&l(V),u=new lo(m),u.scheduler=i?()=>i(V,!1):V,v=L=>vl(L,!1,u),g=u.onStop=()=>{const L=In.get(u);if(L){if(a)a(L,4);else for(const ee of L)ee();In.delete(u)}},t?s?V(!0):D=u.run():i?i(V.bind(null,!0),!0):u.run(),j.pause=u.pause.bind(u),j.resume=u.resume.bind(u),j.stop=j,j}function dt(e,t=1/0,n){if(t<=0||!de(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,Ee(e))dt(e.value,t,n);else if(U(e))for(let s=0;s<e.length;s++)dt(e[s],t,n);else if(Hn(e)||Wt(e))e.forEach(s=>{dt(s,t,n)});else if(to(e)){for(const s in e)dt(e[s],t,n);for(const s of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,s)&&dt(e[s],t,n)}return e}function Rn(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=Rn(e,t,n,s);return r&&Zr(r)&&r.catch(o=>{zn(o,t,n)}),r}if(U(e)){const r=[];for(let o=0;o<e.length;o++)r.push(ot(e[o],t,n,s));return r}}function zn(e,t,n,s=!0){const r=t?t.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:i}=t&&t.appContext.config||ue;if(t){let l=t.parent;const a=t.proxy,c=`https://vuejs.org/error-reference/#runtime-${n}`;for(;l;){const u=l.ec;if(u){for(let m=0;m<u.length;m++)if(u[m](e,a,c)===!1)return}l=l.parent}if(o){ft(),Rn(o,null,10,[e,a,c]),mt();return}}xl(e,n,r,s,i)}function xl(e,t,n,s=!0,r=!1){if(r)throw e;console.error(e)}const Ie=[];let nt=-1;const Kt=[];let wt=null,Ut=0;const Co=Promise.resolve();let Nn=null;function So(e){const t=Nn||Co;return e?t.then(this?e.bind(this):e):t}function bl(e){let t=nt+1,n=Ie.length;for(;t<n;){const s=t+n>>>1,r=Ie[s],o=vn(r);o<e||o===e&&r.flags&2?t=s+1:n=s}return t}function Gs(e){if(!(e.flags&1)){const t=vn(e),n=Ie[Ie.length-1];!n||!(e.flags&2)&&t>=vn(n)?Ie.push(e):Ie.splice(bl(t),0,e),e.flags|=1,Ao()}}function Ao(){Nn||(Nn=Co.then(Po))}function _l(e){U(e)?Kt.push(...e):wt&&e.id===-1?wt.splice(Ut+1,0,e):e.flags&1||(Kt.push(e),e.flags|=1),Ao()}function cr(e,t,n=nt+1){for(;n<Ie.length;n++){const s=Ie[n];if(s&&s.flags&2){if(e&&s.id!==e.uid)continue;Ie.splice(n,1),n--,s.flags&4&&(s.flags&=-2),s(),s.flags&4||(s.flags&=-2)}}}function Eo(e){if(Kt.length){const t=[...new Set(Kt)].sort((n,s)=>vn(n)-vn(s));if(Kt.length=0,wt){wt.push(...t);return}for(wt=t,Ut=0;Ut<wt.length;Ut++){const n=wt[Ut];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}wt=null,Ut=0}}const vn=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Po(e){try{for(nt=0;nt<Ie.length;nt++){const t=Ie[nt];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),Rn(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;nt<Ie.length;nt++){const t=Ie[nt];t&&(t.flags&=-2)}nt=-1,Ie.length=0,Eo(),Nn=null,(Ie.length||Kt.length)&&Po()}}let we=null,$o=null;function Mn(e){const t=we;return we=e,$o=e&&e.type.__scopeId||null,t}function Z(e,t=we,n){if(!t||e._n)return e;const s=(...r)=>{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 wl(e,t){if(we===null)return e;const n=Xn(we),s=e.dirs||(e.dirs=[]);for(let r=0;r<t.length;r++){let[o,i,l,a=ue]=t[r];o&&(K(o)&&(o={mounted:o,updated:o}),o.deep&&dt(i),s.push({dir:o,instance:n,value:i,oldValue:void 0,arg:l,modifiers:a}))}return e}function Pt(e,t,n,s){const r=e.dirs,o=t&&t.dirs;for(let i=0;i<r.length;i++){const l=r[i];o&&(l.oldValue=o[i].value);let a=l.dir[s];a&&(ft(),ot(a,n,8,[e.el,l,e,t]),mt())}}const kl=Symbol("_vte"),Rl=e=>e.__isTeleport,Cl=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)?$e({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(U(e)){e.forEach((S,I)=>un(S,t&&(U(t)?t[I]: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,m=l.setupState,g=se(m),v=m===ue?Xr:S=>re(g,S);if(c!=null&&c!==a){if(ur(t),pe(c))u[c]=null,v(c)&&(m[c]=null);else if(Ee(c)){c.value=null;const S=t;S.k&&(u[S.k]=null)}}if(K(a))Rn(a,l,12,[i,u]);else{const S=pe(a),I=Ee(a);if(S||I){const W=()=>{if(e.f){const j=S?v(a)?m[a]:u[a]:a.value;if(r)U(j)&&Ms(j,o);else if(U(j))j.includes(o)||j.push(o);else if(S)u[a]=[o],v(a)&&(m[a]=u[a]);else{const D=[o];a.value=D,e.k&&(u[e.k]=D)}}else S?(u[a]=i,v(a)&&(m[a]=i)):I&&(a.value=i,e.k&&(u[e.k]=i))};if(i){const j=()=>{W(),Dn.delete(e)};j.id=-1,Dn.set(e,j),Fe(j,n)}else ur(e),W()}}}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 Sl(e,t){No(e,"a",t)}function Al(e,t){No(e,"da",t)}function No(e,t,n=Ae){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)&&El(s,t,n,r),r=r.parent}}function El(e,t,n,s){const r=Jn(t,e,s,!0);Mo(()=>{Ms(s[t],r)},n)}function Jn(e,t,n=Ae,s=!1){if(n){const r=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...i)=>{ft();const l=Cn(n),a=ot(t,n,e,i);return l(),mt(),a});return s?r.unshift(o):r.push(o),o}}const pt=e=>(t,n=Ae)=>{(!bn||e==="sp")&&Jn(e,(...s)=>t(...s),n)},Pl=pt("bm"),jt=pt("m"),$l=pt("bu"),Tl=pt("u"),Ol=pt("bum"),Mo=pt("um"),Il=pt("sp"),Nl=pt("rtg"),Ml=pt("rtc");function Dl(e,t=Ae){Jn("ec",e,t)}const Do="components";function Ll(e,t){return jo(Do,e,!0,t)||e}const Lo=Symbol.for("v-ndc");function jl(e){return pe(e)?jo(Do,e,!1)||e:e||Lo}function jo(e,t,n=!0,s=!1){const r=we||Ae;if(r){const o=r.type;{const l=Sa(o,!1);if(l&&(l===t||l===Ge(t)||l===Un(Ge(t))))return o}const i=dr(r[e]||o[e],t)||dr(r.appContext[e],t);return!i&&s?o:i}}function dr(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=U(e);if(i||pe(e)){const l=i&&Mt(e);let a=!1,c=!1;l&&(a=!Be(e),c=ht(e),e=Wn(e)),r=new Array(e.length);for(let u=0,m=e.length;u<m;u++)r[u]=t(a?c?Qt(Ke(e[u])):Ke(e[u]):e[u],u,void 0,o)}else if(typeof e=="number"){r=new Array(e);for(let l=0;l<e;l++)r[l]=t(l+1,l,void 0,o)}else if(de(e))if(e[Symbol.iterator])r=Array.from(e,(l,a)=>t(l,a,void 0,o));else{const l=Object.keys(e);r=new Array(l.length);for(let a=0,c=l.length;a<c;a++){const u=l[a];r[a]=t(e[u],u,a,o)}}else r=[];return r}function Dt(e,t,n={},s,r){if(we.ce||we.parent&&zt(we.parent)&&we.parent.ce){const c=Object.keys(n).length>0;return t!=="default"&&(n.name=t),y(),ie(Q,null,[N("slot",n,s&&s())],c?-2:64)}let o=e[t];o&&o._c&&(o._d=!1),y();const i=o&&Fo(o(n)),l=n.key||i&&i.key,a=ie(Q,{key:(l&&!We(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===Q&&!Fo(t.children)):!0)?e:null}const ks=e=>e?oi(e)?Xn(e):ks(e.parent):null,dn=$e(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=>Ho(e),$forceUpdate:e=>e.f||(e.f=()=>{Gs(e.update)}),$nextTick:e=>e.n||(e.n=So.bind(e.proxy)),$watch:e=>Jl.bind(e)}),ls=(e,t)=>e!==ue&&!e.__isScriptSetup&&re(e,t),Fl={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];Rs&&(i[t]=0)}}const c=dn[t];let u,m;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(m=a.config.globalProperties,re(m,t))return m[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(dn,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 fr(e){return U(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let Rs=!0;function Vl(e){const t=Ho(e),n=e.proxy,s=e.ctx;Rs=!1,t.beforeCreate&&mr(t.beforeCreate,e,"bc");const{data:r,computed:o,methods:i,watch:l,provide:a,inject:c,created:u,beforeMount:m,mounted:g,beforeUpdate:v,updated:S,activated:I,deactivated:W,beforeDestroy:j,beforeUnmount:D,destroyed:V,unmounted:L,render:ee,renderTracked:ve,renderTriggered:he,errorCaptured:Re,serverPrefetch:vt,expose:Je,inheritAttrs:yt,components:At,directives:Qe,filters:en}=t;if(c&&Hl(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);de(ae)&&(e.data=Kn(ae))}if(Rs=!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,Ye=oe({get:it,set:xt});Object.defineProperty(s,ae,{enumerable:!0,configurable:!0,get:()=>Ye.value,set:Ne=>Ye.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=>{fn(te,ae[te])})}u&&mr(u,e,"c");function be(ae,te){U(te)?te.forEach(it=>ae(it.bind(n))):te&&ae(te.bind(n))}if(be(Pl,m),be(jt,g),be($l,v),be(Tl,S),be(Sl,I),be(Al,W),be(Dl,Re),be(Ml,ve),be(Nl,he),be(Ol,D),be(Mo,L),be(Il,vt),U(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),yt!=null&&(e.inheritAttrs=yt),At&&(e.components=At),Qe&&(e.directives=Qe),vt&&Oo(e)}function Hl(e,t,n=rt){U(e)&&(e=Cs(e));for(const s in e){const r=e[s];let o;de(r)?"default"in r?o=Pe(r.from||s,r.default,!0):o=Pe(r.from||s):o=Pe(r),Ee(o)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>o.value,set:i=>o.value=i}):t[s]=o}}function mr(e,t,n){ot(U(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(de(e))if(U(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 Ho(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)),de(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=Bl[i]||n&&n[i];e[i]=l?l(e[i],t[i]):t[i]}return e}const Bl={data:hr,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:Gl,provide:hr,inject:Ul};function hr(e,t){return t?e?function(){return $e(K(e)?e.call(this,this):e,K(t)?t.call(this,this):t)}:t:e}function Ul(e,t){return on(Cs(e),Cs(t))}function Cs(e){if(U(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Te(e,t){return e?[...new Set([].concat(e,t))]:t}function on(e,t){return e?$e(Object.create(null),e,t):t}function gr(e,t){return e?U(e)&&U(t)?[...new Set([...e,...t])]:$e(Object.create(null),fr(e),fr(t??{})):t}function Gl(e,t){if(!e)return t;if(!t)return e;const n=$e(Object.create(null),e);for(const s in t)n[s]=Te(e[s],t[s]);return n}function Bo(){return{app:null,config:{isNativeTag:Xr,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let ql=0;function Wl(e,t){return function(s,r=null){K(s)||(s=$e({},s)),r!=null&&!de(r)&&(r=null);const o=Bo(),i=new WeakSet,l=[];let a=!1;const c=o.app={_uid:ql++,_component:s,_props:r,_container:null,_context:o,_instance:null,version:Ea,get config(){return o.config},set config(u){},use(u,...m){return i.has(u)||(u&&K(u.install)?(i.add(u),u.install(c,...m)):K(u)&&(i.add(u),u(c,...m))),c},mixin(u){return o.mixins.includes(u)||o.mixins.push(u),c},component(u,m){return m?(o.components[u]=m,c):o.components[u]},directive(u,m){return m?(o.directives[u]=m,c):o.directives[u]},mount(u,m,g){if(!a){const v=c._ceVNode||N(s,r);return v.appContext=o,g===!0?g="svg":g===!1&&(g=void 0),e(v,u,g),a=!0,c._container=u,u.__vue_app__=c,Xn(v.component)}},onUnmount(u){l.push(u)},unmount(){a&&(ot(l,c._instance,16),e(null,c._container),delete c._container.__vue_app__)},provide(u,m){return o.provides[u]=m,c},runWithContext(u){const m=Jt;Jt=c;try{return u()}finally{Jt=m}}};return c}}let Jt=null;function fn(e,t){if(Ae){let n=Ae.provides;const s=Ae.parent&&Ae.parent.provides;s===n&&(n=Ae.provides=Object.create(s)),n[e]=t}}function Pe(e,t,n=!1){const s=_a();if(s||Jt){let r=Jt?Jt._context.provides:s?s.parent==null||s.ce?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides:void 0;if(r&&e in r)return r[e];if(arguments.length>1)return n&&K(t)?t.call(s&&s.proxy):t}}const Kl=Symbol.for("v-scx"),zl=()=>Pe(Kl);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=$e({},n),a=t&&s||!t&&o!=="post";let c;if(bn){if(o==="sync"){const v=zl();c=v.__watcherHandles||(v.__watcherHandles=[])}else if(!a){const v=()=>{};return v.stop=rt,v.resume=rt,v.pause=rt,v}}const u=Ae;l.call=(v,S,I)=>ot(v,u,S,I);let m=!1;o==="post"?l.scheduler=v=>{Fe(v,u&&u.suspense)}:o!=="sync"&&(m=!0,l.scheduler=(v,S)=>{S?v():Gs(v)}),l.augmentJob=v=>{t&&(v.flags|=4),m&&(v.flags|=2,u&&(v.id=u.uid,v.i=u))};const g=yl(e,t,l);return bn&&(c?c.push(g):a&&g()),g}function Jl(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=Cn(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;r<n.length&&s;r++)s=s[n[r]];return s}}const Ql=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Ge(t)}Modifiers`]||e[`${Lt(t)}Modifiers`];function Yl(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||ue;let r=n;const o=t.startsWith("update:"),i=o&&Ql(s,t.slice(7));i&&(i.trim&&(r=n.map(u=>pe(u)?u.trim():u)),i.number&&(r=n.map(Li)));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 Xl=new WeakMap;function qo(e,t,n=!1){const s=n?Xl: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,$e(i,u))};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!o&&!l?(de(e)&&s.set(e,null),null):(U(o)?o.forEach(a=>i[a]=null):$e(i,o),de(e)&&s.set(e,i),i)}function Qn(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:m,data:g,setupState:v,ctx:S,inheritAttrs:I}=e,W=Mn(e);let j,D;try{if(n.shapeFlag&4){const L=r||s,ee=L;j=st(c.call(ee,L,u,m,v,g,S)),D=l}else{const L=t;j=st(L.length>1?L(m,{attrs:l,slots:i,emit:a}):L(m,null)),D=t.props?l:Zl(l)}}catch(L){mn.length=0,zn(L,e,1),j=N(gt)}let V=j;if(D&&I!==!1){const L=Object.keys(D),{shapeFlag:ee}=V;L.length&&ee&7&&(o&&L.some(Ns)&&(D=ea(D,o)),V=Yt(V,D,!1,!0))}return n.dirs&&(V=Yt(V,null,!1,!0),V.dirs=V.dirs?V.dirs.concat(n.dirs):n.dirs),n.transition&&qs(V,n.transition),j=V,Mn(W),j}const Zl=e=>{let t;for(const n in e)(n==="class"||n==="style"||Vn(n))&&((t||(t={}))[n]=e[n]);return t},ea=(e,t)=>{const n={};for(const s in e)(!Ns(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function ta(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?vr(s,i,c):!!i;if(a&8){const u=t.dynamicProps;for(let m=0;m<u.length;m++){const g=u[m];if(i[g]!==s[g]&&!Qn(c,g))return!0}}}else return(r||l)&&(!l||!l.$stable)?!0:s===i?!1:s?i?vr(s,i,c):!0:!!i;return!1}function vr(e,t,n){const s=Object.keys(t);if(s.length!==Object.keys(e).length)return!0;for(let r=0;r<s.length;r++){const o=s[r];if(t[o]!==e[o]&&!Qn(n,o))return!0}return!1}function na({vnode:e,parent:t},n){for(;t;){const s=t.subTree;if(s.suspense&&s.suspense.activeBranch===e&&(s.el=e.el),s===e)(e=t.vnode).el=n,t=t.parent;else break}}const Wo={},Ko=()=>Object.create(Wo),zo=e=>Object.getPrototypeOf(e)===Wo;function sa(e,t,n,s=!1){const r={},o=Ko();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 ra(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 m=0;m<u.length;m++){let g=u[m];if(Qn(e.emitsOptions,g))continue;const v=t[g];if(a)if(re(o,g))v!==o[g]&&(o[g]=v,c=!0);else{const S=Ge(g);r[S]=Ss(a,l,S,v,e,!1)}else v!==o[g]&&(o[g]=v,c=!0)}}}else{Jo(e,t,r,o)&&(c=!0);let u;for(const m in l)(!t||!re(t,m)&&((u=Lt(m))===m||!re(t,u)))&&(a?n&&(n[m]!==void 0||n[u]!==void 0)&&(r[m]=Ss(a,l,m,void 0,e,!0)):delete r[m]);if(o!==l)for(const m in o)(!t||!re(t,m))&&(delete o[m],c=!0)}c&&ut(e.attrs,"set","")}function Jo(e,t,n,s){const[r,o]=e.propsOptions;let i=!1,l;if(t)for(let a in t){if(ln(a))continue;const c=t[a];let u;r&&re(r,u=Ge(a))?!o||!o.includes(u)?n[u]=c:(l||(l={}))[u]=c:Qn(e.emitsOptions,a)||(!(a in s)||c!==s[a])&&(s[a]=c,i=!0)}if(o){const a=se(n),c=l||ue;for(let u=0;u<o.length;u++){const m=o[u];n[m]=Ss(r,a,m,c[m],e,!re(c,m))}}return i}function Ss(e,t,n,s,r,o){const i=e[n];if(i!=null){const l=re(i,"default");if(l&&s===void 0){const a=i.default;if(i.type!==Function&&!i.skipFactory&&K(a)){const{propsDefaults:c}=r;if(n in c)s=c[n];else{const u=Cn(r);s=c[n]=a.call(null,t),u()}}else s=a;r.ce&&r.ce._setProp(n,s)}i[0]&&(o&&!l?s=!1:i[1]&&(s===""||s===Lt(n))&&(s=!0))}return s}const oa=new WeakMap;function Qo(e,t,n=!1){const s=n?oa:t.propsCache,r=s.get(e);if(r)return r;const o=e.props,i={},l=[];let a=!1;if(!K(e)){const u=m=>{a=!0;const[g,v]=Qo(m,t,!0);$e(i,g),v&&l.push(...v)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!o&&!a)return de(e)&&s.set(e,qt),qt;if(U(o))for(let u=0;u<o.length;u++){const m=Ge(o[u]);yr(m)&&(i[m]=ue)}else if(o)for(const u in o){const m=Ge(u);if(yr(m)){const g=o[u],v=i[m]=U(g)||K(g)?{type:g}:$e({},g),S=v.type;let I=!1,W=!0;if(U(S))for(let j=0;j<S.length;++j){const D=S[j],V=K(D)&&D.name;if(V==="Boolean"){I=!0;break}else V==="String"&&(W=!1)}else I=K(S)&&S.name==="Boolean";v[0]=I,v[1]=W,(I||re(v,"default"))&&l.push(m)}}const c=[i,l];return de(e)&&s.set(e,c),c}function yr(e){return e[0]!=="$"&&!ln(e)}const Ws=e=>e==="_"||e==="_ctx"||e==="$stable",Ks=e=>U(e)?e.map(st):[st(e)],ia=(e,t,n)=>{if(t._n)return t;const s=Z((...r)=>Ks(t(...r)),n);return s._c=!1,s},Yo=(e,t,n)=>{const s=e._ctx;for(const r in e){if(Ws(r))continue;const o=e[r];if(K(o))t[r]=ia(r,o,s);else if(o!=null){const i=Ks(o);t[r]=()=>i}}},Xo=(e,t)=>{const n=Ks(t);e.slots.default=()=>n},Zo=(e,t,n)=>{for(const s in t)(n||!Ws(s))&&(e[s]=t[s])},la=(e,t,n)=>{const s=e.slots=Ko();if(e.vnode.shapeFlag&32){const r=t._;r?(Zo(s,t,n),n&&no(s,"_",r,!0)):Yo(t,s)}else t&&Xo(e,t)},aa=(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,Yo(t,r)),i=t}else t&&(Xo(e,t),i={default:1});if(o)for(const l in r)!Ws(l)&&i[l]==null&&delete r[l]},Fe=ma;function ca(e){return ua(e)}function ua(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:m,nextSibling:g,setScopeId:v=rt,insertStaticContent:S}=e,I=(f,h,p,b=null,w=null,x=null,$=void 0,E=null,A=!!h.dynamicChildren)=>{if(f===h)return;f&&!sn(f,h)&&(b=_(f),Ne(f,w,x,!0),f=null),h.patchFlag===-2&&(A=!1,h.dynamicChildren=null);const{type:C,ref:B,shapeFlag:O}=h;switch(C){case Yn:W(f,h,p,b);break;case gt:j(f,h,p,b);break;case cs:f==null&&D(h,p,b,$);break;case Q:At(f,h,p,b,w,x,$,E,A);break;default:O&1?ee(f,h,p,b,w,x,$,E,A):O&6?Qe(f,h,p,b,w,x,$,E,A):(O&64||O&128)&&C.process(f,h,p,b,w,x,$,E,A,F)}B!=null&&w?un(B,f&&f.ref,x,h||f,!h):B==null&&f&&f.ref!=null&&un(f.ref,null,x,f,!0)},W=(f,h,p,b)=>{if(f==null)s(h.el=l(h.children),p,b);else{const w=h.el=f.el;h.children!==f.children&&c(w,h.children)}},j=(f,h,p,b)=>{f==null?s(h.el=a(h.children||""),p,b):h.el=f.el},D=(f,h,p,b)=>{[f.el,f.anchor]=S(f.children,h,p,b,f.el,f.anchor)},V=({el:f,anchor:h},p,b)=>{let w;for(;f&&f!==h;)w=g(f),s(f,p,b),f=w;s(h,p,b)},L=({el:f,anchor:h})=>{let p;for(;f&&f!==h;)p=g(f),r(f),f=p;r(h)},ee=(f,h,p,b,w,x,$,E,A)=>{if(h.type==="svg"?$="svg":h.type==="math"&&($="mathml"),f==null)ve(h,p,b,w,x,$,E,A);else{const C=f.el&&f.el._isVueCE?f.el:null;try{C&&C._beginPatch(),vt(f,h,w,x,$,E,A)}finally{C&&C._endPatch()}}},ve=(f,h,p,b,w,x,$,E)=>{let A,C;const{props:B,shapeFlag:O,transition:H,dirs:G}=f;if(A=f.el=i(f.type,x,B&&B.is,B),O&8?u(A,f.children):O&16&&Re(f.children,A,null,b,w,as(f,x),$,E),G&&Pt(f,null,b,"created"),he(A,f,f.scopeId,$,b),B){for(const fe in B)fe!=="value"&&!ln(fe)&&o(A,fe,null,B[fe],x,b);"value"in B&&o(A,"value",null,B.value,x),(C=B.onVnodeBeforeMount)&&tt(C,b,f)}G&&Pt(f,null,b,"beforeMount");const X=da(w,H);X&&H.beforeEnter(A),s(A,h,p),((C=B&&B.onVnodeMounted)||X||G)&&Fe(()=>{C&&tt(C,b,f),X&&H.enter(A),G&&Pt(f,null,b,"mounted")},w)},he=(f,h,p,b,w)=>{if(p&&v(f,p),b)for(let x=0;x<b.length;x++)v(f,b[x]);if(w){let x=w.subTree;if(h===x||ni(x.type)&&(x.ssContent===h||x.ssFallback===h)){const $=w.vnode;he(f,$,$.scopeId,$.slotScopeIds,w.parent)}}},Re=(f,h,p,b,w,x,$,E,A=0)=>{for(let C=A;C<f.length;C++){const B=f[C]=E?kt(f[C]):st(f[C]);I(null,B,h,p,b,w,x,$,E)}},vt=(f,h,p,b,w,x,$)=>{const E=h.el=f.el;let{patchFlag:A,dynamicChildren:C,dirs:B}=h;A|=f.patchFlag&16;const O=f.props||ue,H=h.props||ue;let G;if(p&&$t(p,!1),(G=H.onVnodeBeforeUpdate)&&tt(G,p,h,f),B&&Pt(h,f,p,"beforeUpdate"),p&&$t(p,!0),(O.innerHTML&&H.innerHTML==null||O.textContent&&H.textContent==null)&&u(E,""),C?Je(f.dynamicChildren,C,E,p,b,as(h,w),x):$||te(f,h,E,null,p,b,as(h,w),x,!1),A>0){if(A&16)yt(E,O,H,p,w);else if(A&2&&O.class!==H.class&&o(E,"class",null,H.class,w),A&4&&o(E,"style",O.style,H.style,w),A&8){const X=h.dynamicProps;for(let fe=0;fe<X.length;fe++){const le=X[fe],Me=O[le],De=H[le];(De!==Me||le==="value")&&o(E,le,Me,De,w,p)}}A&1&&f.children!==h.children&&u(E,h.children)}else!$&&C==null&&yt(E,O,H,p,w);((G=H.onVnodeUpdated)||B)&&Fe(()=>{G&&tt(G,p,h,f),B&&Pt(h,f,p,"updated")},b)},Je=(f,h,p,b,w,x,$)=>{for(let E=0;E<h.length;E++){const A=f[E],C=h[E],B=A.el&&(A.type===Q||!sn(A,C)||A.shapeFlag&198)?m(A.el):p;I(A,C,B,null,b,w,x,$,!0)}},yt=(f,h,p,b,w)=>{if(h!==p){if(h!==ue)for(const x in h)!ln(x)&&!(x in p)&&o(f,x,h[x],null,w,b);for(const x in p){if(ln(x))continue;const $=p[x],E=h[x];$!==E&&x!=="value"&&o(f,x,E,$,w,b)}"value"in p&&o(f,"value",h.value,p.value,w)}},At=(f,h,p,b,w,x,$,E,A)=>{const C=h.el=f?f.el:l(""),B=h.anchor=f?f.anchor:l("");let{patchFlag:O,dynamicChildren:H,slotScopeIds:G}=h;G&&(E=E?E.concat(G):G),f==null?(s(C,p,b),s(B,p,b),Re(h.children||[],p,B,w,x,$,E,A)):O>0&&O&64&&H&&f.dynamicChildren?(Je(f.dynamicChildren,H,p,w,x,$,E),(h.key!=null||w&&h===w.subTree)&&ei(f,h,!0)):te(f,h,p,B,w,x,$,E,A)},Qe=(f,h,p,b,w,x,$,E,A)=>{h.slotScopeIds=E,f==null?h.shapeFlag&512?w.ctx.activate(h,p,b,$,A):en(h,p,b,w,x,$,A):Ft(f,h,A)},en=(f,h,p,b,w,x,$)=>{const E=f.component=ba(f,b,w);if(Io(f)&&(E.ctx.renderer=F),wa(E,!1,$),E.asyncDep){if(w&&w.registerDep(E,be,$),!f.el){const A=E.subTree=N(gt);j(null,A,h,p),f.placeholder=A.el}}else be(E,f,h,p,w,x,$)},Ft=(f,h,p)=>{const b=h.component=f.component;if(ta(f,h,p))if(b.asyncDep&&!b.asyncResolved){ae(b,h,p);return}else b.next=h,b.update();else h.el=f.el,b.vnode=h},be=(f,h,p,b,w,x,$)=>{const E=()=>{if(f.isMounted){let{next:O,bu:H,u:G,parent:X,vnode:fe}=f;{const Ze=ti(f);if(Ze){O&&(O.el=fe.el,ae(f,O,$)),Ze.asyncDep.then(()=>{f.isUnmounted||E()});return}}let le=O,Me;$t(f,!1),O?(O.el=fe.el,ae(f,O,$)):O=fe,H&&$n(H),(Me=O.props&&O.props.onVnodeBeforeUpdate)&&tt(Me,X,O,fe),$t(f,!0);const De=pr(f),Xe=f.subTree;f.subTree=De,I(Xe,De,m(Xe.el),_(Xe),f,w,x),O.el=De.el,le===null&&na(f,De.el),G&&Fe(G,w),(Me=O.props&&O.props.onVnodeUpdated)&&Fe(()=>tt(Me,X,O,fe),w)}else{let O;const{el:H,props:G}=h,{bm:X,m:fe,parent:le,root:Me,type:De}=f,Xe=zt(h);$t(f,!1),X&&$n(X),!Xe&&(O=G&&G.onVnodeBeforeMount)&&tt(O,le,h),$t(f,!0);{Me.ce&&Me.ce._def.shadowRoot!==!1&&Me.ce._injectChildStyle(De);const Ze=f.subTree=pr(f);I(null,Ze,p,b,f,w,x),h.el=Ze.el}if(fe&&Fe(fe,w),!Xe&&(O=G&&G.onVnodeMounted)){const Ze=h;Fe(()=>tt(O,le,Ze),w)}(h.shapeFlag&256||le&&zt(le.vnode)&&le.vnode.shapeFlag&256)&&f.a&&Fe(f.a,w),f.isMounted=!0,h=p=b=null}};f.scope.on();const A=f.effect=new lo(E);f.scope.off();const C=f.update=A.run.bind(A),B=f.job=A.runIfDirty.bind(A);B.i=f,B.id=f.uid,A.scheduler=()=>Gs(B),$t(f,!0),C()},ae=(f,h,p)=>{h.component=f;const b=f.vnode.props;f.vnode=h,f.next=null,ra(f,h.props,b,p),aa(f,h.children,p),ft(),cr(f),mt()},te=(f,h,p,b,w,x,$,E,A=!1)=>{const C=f&&f.children,B=f?f.shapeFlag:0,O=h.children,{patchFlag:H,shapeFlag:G}=h;if(H>0){if(H&128){xt(C,O,p,b,w,x,$,E,A);return}else if(H&256){it(C,O,p,b,w,x,$,E,A);return}}G&8?(B&16&&He(C,w,x),O!==C&&u(p,O)):B&16?G&16?xt(C,O,p,b,w,x,$,E,A):He(C,w,x,!0):(B&8&&u(p,""),G&16&&Re(O,p,b,w,x,$,E,A))},it=(f,h,p,b,w,x,$,E,A)=>{f=f||qt,h=h||qt;const C=f.length,B=h.length,O=Math.min(C,B);let H;for(H=0;H<O;H++){const G=h[H]=A?kt(h[H]):st(h[H]);I(f[H],G,p,null,w,x,$,E,A)}C>B?He(f,w,x,!0,!1,O):Re(h,p,b,w,x,$,E,A,O)},xt=(f,h,p,b,w,x,$,E,A)=>{let C=0;const B=h.length;let O=f.length-1,H=B-1;for(;C<=O&&C<=H;){const G=f[C],X=h[C]=A?kt(h[C]):st(h[C]);if(sn(G,X))I(G,X,p,null,w,x,$,E,A);else break;C++}for(;C<=O&&C<=H;){const G=f[O],X=h[H]=A?kt(h[H]):st(h[H]);if(sn(G,X))I(G,X,p,null,w,x,$,E,A);else break;O--,H--}if(C>O){if(C<=H){const G=H+1,X=G<B?h[G].el:b;for(;C<=H;)I(null,h[C]=A?kt(h[C]):st(h[C]),p,X,w,x,$,E,A),C++}}else if(C>H)for(;C<=O;)Ne(f[C],w,x,!0),C++;else{const G=C,X=C,fe=new Map;for(C=X;C<=H;C++){const je=h[C]=A?kt(h[C]):st(h[C]);je.key!=null&&fe.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;C++)tn[C]=0;for(C=G;C<=O;C++){const je=f[C];if(Me>=De){Ne(je,w,x,!0);continue}let et;if(je.key!=null)et=fe.get(je.key);else for(le=X;le<=H;le++)if(tn[le-X]===0&&sn(je,h[le])){et=le;break}et===void 0?Ne(je,w,x,!0):(tn[et-X]=C+1,et>=Ze?Ze=et:Xe=!0,I(je,h[et],p,null,w,x,$,E,A),Me++)}const tr=Xe?fa(tn):qt;for(le=tr.length-1,C=De-1;C>=0;C--){const je=X+C,et=h[je],nr=h[je+1],sr=je+1<B?nr.el||nr.placeholder:b;tn[C]===0?I(null,et,p,sr,w,x,$,E,A):Xe&&(le<0||C!==tr[le]?Ye(et,p,sr,2):le--)}}},Ye=(f,h,p,b,w=null)=>{const{el:x,type:$,transition:E,children:A,shapeFlag:C}=f;if(C&6){Ye(f.component.subTree,h,p,b);return}if(C&128){f.suspense.move(h,p,b);return}if(C&64){$.move(f,h,p,F);return}if($===Q){s(x,h,p);for(let O=0;O<A.length;O++)Ye(A[O],h,p,b);s(f.anchor,h,p);return}if($===cs){V(f,h,p);return}if(b!==2&&C&1&&E)if(b===0)E.beforeEnter(x),s(x,h,p),Fe(()=>E.enter(x),w);else{const{leave:O,delayLeave:H,afterLeave:G}=E,X=()=>{f.ctx.isUnmounted?r(x):s(x,h,p)},fe=()=>{x._isLeaving&&x[Cl](!0),O(x,()=>{X(),G&&G()})};H?H(x,X,fe):fe()}else s(x,h,p)},Ne=(f,h,p,b=!1,w=!1)=>{const{type:x,props:$,ref:E,children:A,dynamicChildren:C,shapeFlag:B,patchFlag:O,dirs:H,cacheIndex:G}=f;if(O===-2&&(w=!1),E!=null&&(ft(),un(E,null,p,f,!0),mt()),G!=null&&(h.renderCache[G]=void 0),B&256){h.ctx.deactivate(f);return}const X=B&1&&H,fe=!zt(f);let le;if(fe&&(le=$&&$.onVnodeBeforeUnmount)&&tt(le,h,f),B&6)Et(f.component,p,b);else{if(B&128){f.suspense.unmount(p,b);return}X&&Pt(f,null,h,"beforeUnmount"),B&64?f.type.remove(f,h,p,F,b):C&&!C.hasOnce&&(x!==Q||O>0&&O&64)?He(C,h,p,!1,!0):(x===Q&&O&384||!w&&B&16)&&He(A,h,p),b&&Vt(f)}(fe&&(le=$&&$.onVnodeUnmounted)||X)&&Fe(()=>{le&&tt(le,h,f),X&&Pt(f,null,h,"unmounted")},p)},Vt=f=>{const{type:h,el:p,anchor:b,transition:w}=f;if(h===Q){Ht(p,b);return}if(h===cs){L(f);return}const x=()=>{r(p),w&&!w.persisted&&w.afterLeave&&w.afterLeave()};if(f.shapeFlag&1&&w&&!w.persisted){const{leave:$,delayLeave:E}=w,A=()=>$(p,x);E?E(f.el,x,A):A()}else x()},Ht=(f,h)=>{let p;for(;f!==h;)p=g(f),r(f),f=p;r(h)},Et=(f,h,p)=>{const{bum:b,scope:w,job:x,subTree:$,um:E,m:A,a:C}=f;xr(A),xr(C),b&&$n(b),w.stop(),x&&(x.flags|=8,Ne($,f,h,p)),E&&Fe(E,h),Fe(()=>{f.isUnmounted=!0},h)},He=(f,h,p,b=!1,w=!1,x=0)=>{for(let $=x;$<f.length;$++)Ne(f[$],h,p,b,w)},_=f=>{if(f.shapeFlag&6)return _(f.component.subTree);if(f.shapeFlag&128)return f.suspense.next();const h=g(f.anchor||f.el),p=h&&h[kl];return p?g(p):h};let M=!1;const T=(f,h,p)=>{f==null?h._vnode&&Ne(h._vnode,null,null,!0):I(h._vnode||null,f,h,null,null,null,p),h._vnode=f,M||(M=!0,cr(),Eo(),M=!1)},F={p:I,um:Ne,m:Ye,r:Vt,mt:en,mc:Re,pc:te,pbc:Je,n:_,o:e};return{render:T,hydrate:void 0,createApp:Wl(T)}}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 $t({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function da(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function ei(e,t,n=!1){const s=e.children,r=t.children;if(U(s)&&U(r))for(let o=0;o<s.length;o++){const i=s[o];let l=r[o];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=r[o]=kt(r[o]),l.el=i.el),!n&&l.patchFlag!==-2&&ei(i,l)),l.type===Yn&&l.patchFlag!==-1&&(l.el=i.el),l.type===gt&&!l.el&&(l.el=i.el)}}function fa(e){const t=e.slice(),n=[0];let s,r,o,i,l;const a=e.length;for(s=0;s<a;s++){const c=e[s];if(c!==0){if(r=n[n.length-1],e[r]<c){t[s]=r,n.push(s);continue}for(o=0,i=n.length-1;o<i;)l=o+i>>1,e[n[l]]<c?o=l+1:i=l;c<e[n[o]]&&(o>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;t<e.length;t++)e[t].flags|=8}const ni=e=>e.__isSuspense;function ma(e,t){t&&t.pendingBranch?U(e)?t.effects.push(...e):t.effects.push(e):_l(e)}const Q=Symbol.for("v-fgt"),Yn=Symbol.for("v-txt"),gt=Symbol.for("v-cmt"),cs=Symbol.for("v-stc"),mn=[];let Ve=null;function y(e=!1){mn.push(Ve=e?null:[])}function ha(){mn.pop(),Ve=mn[mn.length-1]||null}let yn=1;function jn(e,t=!1){yn+=e,e<0&&Ve&&t&&(Ve.hasOnce=!0)}function si(e){return e.dynamicChildren=yn>0?Ve||qt:null,ha(),yn>0&&Ve&&Ve.push(e),e}function R(e,t,n,s,r,o){return si(d(e,t,n,s,r,o,!0))}function ie(e,t,n,s,r){return si(N(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)||Ee(e)||K(e)?{i:we,r:e,k:t,f:!!n}:e:null);function d(e,t=null,n=null,s=0,r=null,o=e===Q?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:$o,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),yn>0&&!i&&Ve&&(a.patchFlag>0||o&6)&&a.patchFlag!==32&&Ve.push(a),a}const N=ga;function ga(e,t=null,n=null,s=0,r=null,o=!1){if((!e||e===Lo)&&(e=gt),xn(e)){const l=Yt(e,t,!0);return n&&zs(l,n),yn>0&&!o&&Ve&&(l.shapeFlag&6?Ve[Ve.indexOf(e)]=l:Ve.push(l)),l.patchFlag=-2,l}if(Aa(e)&&(e=e.__vccOpts),t){t=pa(t);let{class:l,style:a}=t;l&&!pe(l)&&(t.class=J(l)),de(a)&&(Us(a)&&!U(a)&&(a=$e({},a)),t.style=St(a))}const i=pe(e)?1:ni(e)?128:Rl(e)?64:de(e)?4:K(e)?2:0;return d(e,t,n,s,r,i,o,!0)}function pa(e){return e?Us(e)||zo(e)?$e({},e):e:null}function Yt(e,t,n=!1,s=!1){const{props:r,ref:o,patchFlag:i,children:l,transition:a}=e,c=t?va(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?U(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!==Q?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&&Yt(e.ssContent),ssFallback:e.ssFallback&&Yt(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 N(Yn,null,e,t)}function q(e="",t=!1){return t?(y(),ie(gt,null,e)):N(gt,null,e)}function st(e){return e==null||typeof e=="boolean"?N(gt):U(e)?N(Q,null,e.slice()):xn(e)?kt(e):N(Yn,null,String(e))}function kt(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Yt(e)}function zs(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(U(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 va(...e){const t={};for(let n=0;n<e.length;n++){const s=e[n];for(const r in s)if(r==="class")t.class!==s.class&&(t.class=J([t.class,s.class]));else if(r==="style")t.style=St([t.style,s.style]);else if(Vn(r)){const o=t[r],i=s[r];i&&o!==i&&!(U(o)&&o.includes(i))&&(t[r]=o?[].concat(o,i):i)}else r!==""&&(t[r]=s[r])}return t}function tt(e,t,n,s=null){ot(e,t,7,[n,s])}const ya=Bo();let xa=0;function ba(e,t,n){const s=e.type,r=(t?t.appContext:e.appContext)||ya,o={uid:xa++,vnode:e,type:s,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new qi(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(r.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Qo(s,r),emitsOptions:qo(s,r),emit:null,emitted:null,propsDefaults:ue,inheritAttrs:s.inheritAttrs,ctx:ue,data:ue,props:ue,attrs:ue,slots:ue,refs:ue,setupState:ue,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return o.ctx={_:o},o.root=t?t.root:o,o.emit=Yl.bind(null,o),e.ce&&e.ce(o),o}let Ae=null;const _a=()=>Ae||we;let Fn,As;{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=>Ae=n),As=t("__VUE_SSR_SETTERS__",n=>bn=n)}const Cn=e=>{const t=Ae;return Fn(e),e.scope.on(),()=>{e.scope.off(),Fn(t)}},br=()=>{Ae&&Ae.scope.off(),Fn(null)};function oi(e){return e.vnode.shapeFlag&4}let bn=!1;function wa(e,t=!1,n=!1){t&&As(t);const{props:s,children:r}=e.vnode,o=oi(e);sa(e,s,o,t),la(e,r,n||t);const i=o?ka(e,t):void 0;return t&&As(!1),i}function ka(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Fl);const{setup:s}=n;if(s){ft();const r=e.setupContext=s.length>1?Ca(e):null,o=Cn(e),i=Rn(s,e,0,[e.props,r]),l=Zr(i);if(mt(),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:de(t)&&(e.setupState=Ro(t)),ii(e)}function ii(e,t,n){const s=e.type;e.render||(e.render=s.render||rt);{const r=Cn(e);ft();try{Vl(e)}finally{mt(),r()}}}const Ra={get(e,t){return Se(e,"get",""),e[t]}};function Ca(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,Ra),slots:e.slots,emit:e.emit,expose:t}}function Xn(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Ro(dl(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in dn)return dn[n](e)},has(t,n){return n in t||n in dn}})):e.proxy}function Sa(e,t=!0){return K(e)?e.displayName||e.name:e.name||t&&e.__name}function Aa(e){return K(e)&&"__vccOpts"in e}const oe=(e,t)=>pl(e,t,bn);function li(e,t,n){try{jn(-1);const s=arguments.length;return s===2?de(t)&&!U(t)?xn(t)?N(e,null,[t]):N(e,t):N(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&xn(n)&&(n=[n]),N(e,t,n))}finally{jn(1)}}const Ea="3.5.25";let Es;const wr=typeof window<"u"&&window.trustedTypes;if(wr)try{Es=wr.createPolicy("vue",{createHTML:e=>e})}catch{}const ai=Es?e=>Es.createHTML(e):e=>e,Pa="http://www.w3.org/2000/svg",$a="http://www.w3.org/1998/Math/MathML",ct=typeof document<"u"?document:null,kr=ct&&ct.createElement("template"),Ta={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(Pa,e):t==="mathml"?ct.createElementNS($a,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"?`<svg>${e}</svg>`:s==="mathml"?`<math>${e}</math>`: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]}},Oa=Symbol("_vtc");function Ia(e,t,n){const s=e[Oa];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const Rr=Symbol("_vod"),Na=Symbol("_vsh"),Ma=Symbol(""),Da=/(?:^|;)\s*display\s*:/;function La(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[Ma];i&&(n+=";"+i),s.cssText=n,o=Da.test(n)}}else t&&e.removeAttribute("style");Rr in e&&(e[Rr]=o?s.display:"",e[Na]&&(s.display="none"))}const Cr=/\s*!important$/;function On(e,t,n){if(U(n))n.forEach(s=>On(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=ja(e,t);Cr.test(n)?e.setProperty(Lt(s),n.replace(Cr,""),"important"):e[s]=n}}const Sr=["Webkit","Moz","ms"],us={};function ja(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;r<Sr.length;r++){const o=Sr[r]+s;if(o in e)return us[t]=o}return t}const Ar="http://www.w3.org/1999/xlink";function Er(e,t,n,s,r,o=Ui(t)){s&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(Ar,t.slice(6,t.length)):e.setAttributeNS(Ar,t,n):n==null||o&&!so(n)?e.removeAttribute(t):e.setAttribute(t,o?"":We(n)?String(n):n)}function Pr(e,t,n,s,r){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?ai(n):n);return}const o=e.tagName;if(t==="value"&&o!=="PROGRESS"&&!o.includes("-")){const l=o==="OPTION"?e.getAttribute("value")||"":e.value,a=n==null?e.type==="checkbox"?"on":"":String(n);(l!==a||!("_value"in e))&&(e.value=a),n==null&&e.removeAttribute(t),e._value=n;return}let i=!1;if(n===""||n==null){const l=typeof e[t];l==="boolean"?n=so(n):n==null&&l==="string"?(n="",i=!0):l==="number"&&(n=0,i=!0)}try{e[t]=n}catch{}i&&e.removeAttribute(r||t)}function ci(e,t,n,s){e.addEventListener(t,n,s)}function Fa(e,t,n,s){e.removeEventListener(t,n,s)}const $r=Symbol("_vei");function Va(e,t,n,s,r=null){const o=e[$r]||(e[$r]={}),i=o[t];if(s&&i)i.value=s;else{const[l,a]=Ha(t);if(s){const c=o[t]=Ga(s,r);ci(e,l,c,a)}else i&&(Fa(e,l,i,a),o[t]=void 0)}}const Tr=/(?:Once|Passive|Capture)$/;function Ha(e){let t;if(Tr.test(e)){t={};let s;for(;s=e.match(Tr);)e=e.slice(0,e.length-s[0].length),t[s[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Lt(e.slice(2)),t]}let ds=0;const Ba=Promise.resolve(),Ua=()=>ds||(Ba.then(()=>ds=0),ds=Date.now());function Ga(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;ot(qa(s,n.value),t,5,[s])};return n.value=e,n.attached=Ua(),n}function qa(e,t){if(U(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,Wa=(e,t,n,s,r,o)=>{const i=r==="svg";t==="class"?Ia(e,s,i):t==="style"?La(e,n,s):Vn(t)?Ns(t)||Va(e,t,n,s,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Ka(e,t,s,i))?(Pr(e,t,s),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Er(e,t,s,i,o,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!pe(s))?Pr(e,Ge(t),s,o,t):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),Er(e,t,s,i))};function Ka(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 U(t)?n=>$n(t,n):t},fs=Symbol("_assign"),za={deep:!0,created(e,t,n){e[fs]=Ir(n),ci(e,"change",()=>{const s=e._modelValue,r=Ja(e),o=e.checked,i=e[fs];if(U(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(Hn(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[fs]=Ir(n),Nr(e,t,n)}};function Nr(e,{value:t,oldValue:n},s){e._modelValue=t;let r;if(U(t))r=ro(t,s.props.value)>-1;else if(Hn(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 Ja(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 Qa=["ctrl","shift","alt","meta"],Ya={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)=>Qa.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<t.length;i++){const l=Ya[t[i]];if(l&&l(r,t))return}return e(r,...o)}))},Xa=$e({patchProp:Wa},Ta);let Mr;function Za(){return Mr||(Mr=ca(Xa))}const ec=((...e)=>{const t=Za().createApp(...e),{mount:n}=t;return t.mount=s=>{const r=nc(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,tc(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),i},t});function tc(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function nc(e){return pe(e)?document.querySelector(e):e}const Gt=typeof document<"u";function di(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function sc(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&di(e.default)}const ne=Object.assign;function ms(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 hn=()=>{},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 fi=/#/g,rc=/&/g,oc=/\//g,ic=/=/g,lc=/\?/g,mi=/\+/g,ac=/%5B/g,cc=/%5D/g,hi=/%5E/g,uc=/%60/g,gi=/%7B/g,dc=/%7C/g,pi=/%7D/g,fc=/%20/g;function Qs(e){return e==null?"":encodeURI(""+e).replace(dc,"|").replace(ac,"[").replace(cc,"]")}function mc(e){return Qs(e).replace(gi,"{").replace(pi,"}").replace(hi,"^")}function Ps(e){return Qs(e).replace(mi,"%2B").replace(fc,"+").replace(fi,"%23").replace(rc,"%26").replace(uc,"`").replace(gi,"{").replace(pi,"}").replace(hi,"^")}function hc(e){return Ps(e).replace(ic,"%3D")}function gc(e){return Qs(e).replace(fi,"%23").replace(lc,"%3F")}function pc(e){return gc(e).replace(oc,"%2F")}function _n(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const vc=/\/$/,yc=e=>e.replace(vc,"");function hs(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=wc(s??t,n),{fullPath:s+o+i,path:s,query:r,hash:_n(i)}}function xc(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 bc(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])&&vi(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 vi(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!_c(e[n],t[n]))return!1;return!0}function _c(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 wc(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;i<s.length;i++)if(l=s[i],l!==".")if(l==="..")o>1&&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 $s=(function(e){return e.pop="pop",e.push="push",e})({}),gs=(function(e){return e.back="back",e.forward="forward",e.unknown="",e})({});function kc(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),yc(e)}const Rc=/^[^#]+#/;function Cc(e,t){return e.replace(Rc,"#")+t}function Sc(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 Ac(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=Sc(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 Ec(e,t){Ts.set(e,t)}function Pc(e){const t=Ts.get(e);return Ts.delete(e),t}function $c(e){return typeof e=="string"||e&&typeof e=="object"}function yi(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 Tc=["params","query","hash"];function Oc(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const n of Tc)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}function Ic(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let s=0;s<n.length;++s){const r=n[s].replace(mi," "),o=r.indexOf("="),i=_n(o<0?r:r.slice(0,o)),l=o<0?null:_n(r.slice(o+1));if(i in t){let a=t[i];ze(a)||(a=t[i]=[a]),a.push(l)}else t[i]=l}return t}function Vr(e){let t="";for(let n in e){const s=e[n];if(n=hc(n),s==null){s!==void 0&&(t+=(t.length?"&":"")+n);continue}(ze(s)?s.map(r=>r&&Ps(r)):[s&&Ps(s)]).forEach(r=>{r!==void 0&&(t+=(t.length?"&":"")+n,r!=null&&(t+="="+r))})}return t}function Nc(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 Mc=Symbol(""),Hr=Symbol(""),Ys=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 Rt(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):$c(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 m=Promise.resolve(u);e.length<3&&(m=m.then(c)),m.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(di(a)){const c=(a.__vccOpts||a)[t];c&&o.push(Rt(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 m=sc(u)?u.default:u;i.mods[l]=u,i.components[l]=m;const g=(m.__vccOpts||m)[t];return g&&Rt(g,n,s,i,l,r)()}))}}return o}function Dc(e,t){const n=[],s=[],r=[],o=Math.max(t.matched.length,e.matched.length);for(let i=0;i<o;i++){const l=t.matched[i];l&&(e.matched.find(c=>Xt(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]}let Lc=()=>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 jc(e,t,n,s){let r=[],o=[],i=null;const l=({state:g})=>{const v=bi(e,location),S=n.value,I=t.value;let W=0;if(g){if(n.value=v,t.value=g,i&&i===S){i=null;return}W=I?g.position-I.position:0}else s(v);r.forEach(j=>{j(n.value,S,{delta:W,type:$s.pop,direction:W?W>0?gs.forward:gs.back:gs.unknown})})};function a(){i=n.value}function c(g){r.push(g);const v=()=>{const S=r.indexOf(g);S>-1&&r.splice(S,1)};return o.push(v),v}function u(){if(document.visibilityState==="hidden"){const{history:g}=window;if(!g.state)return;g.replaceState(ne({},g.state,{scroll:Zn()}),"")}}function m(){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:m}}function Br(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 Fc(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 m=e.indexOf("#"),g=m>-1?(n.host&&document.querySelector("base")?e:e.slice(m))+a:Lc()+e+a;try{t[u?"replaceState":"pushState"](c,"",g),r.value=c}catch(v){console.error(v),n[u?"replace":"assign"](g)}}function i(a,c){o(a,ne({},t.state,Br(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({},Br(s.value,a,null),{position:u.position+1},c),!1),s.value=a}return{location:s,state:r,push:l,replace:i}}function Vc(e){e=kc(e);const t=Fc(e),n=jc(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:Cc.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 Hc(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),Vc(e)}let Ot=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e})({});var ye=(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})(ye||{});const Bc={type:Ot.Static,value:""},Uc=/[a-zA-Z0-9_]/;function Gc(e){if(!e)return[[]];if(e==="/")return[[Bc]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(v){throw new Error(`ERR (${n})/"${c}": ${v}`)}let n=ye.Static,s=n;const r=[];let o;function i(){o&&r.push(o),o=[]}let l=0,a,c="",u="";function m(){c&&(n===ye.Static?o.push({type:Ot.Static,value:c}):n===ye.Param||n===ye.ParamRegExp||n===ye.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(;l<e.length;){if(a=e[l++],a==="\\"&&n!==ye.ParamRegExp){s=n,n=ye.EscapeNext;continue}switch(n){case ye.Static:a==="/"?(c&&m(),i()):a===":"?(m(),n=ye.Param):g();break;case ye.EscapeNext:g(),n=s;break;case ye.Param:a==="("?n=ye.ParamRegExp:Uc.test(a)?g():(m(),n=ye.Static,a!=="*"&&a!=="?"&&a!=="+"&&l--);break;case ye.ParamRegExp:a===")"?u[u.length-1]=="\\"?u=u.slice(0,-1)+a:n=ye.ParamRegExpEnd:u+=a;break;case ye.ParamRegExpEnd:m(),n=ye.Static,a!=="*"&&a!=="?"&&a!=="+"&&l--,u="";break;default:t("Unknown state");break}}return n===ye.ParamRegExp&&t(`Unfinished custom RegExp for param "${c}"`),m(),i(),r}const Ur="[^/]+?",qc={sensitive:!1,strict:!1,start:!0,end:!0};var Oe=(function(e){return e[e._multiplier=10]="_multiplier",e[e.Root=90]="Root",e[e.Segment=40]="Segment",e[e.SubSegment=30]="SubSegment",e[e.Static=40]="Static",e[e.Dynamic=20]="Dynamic",e[e.BonusCustomRegExp=10]="BonusCustomRegExp",e[e.BonusWildcard=-50]="BonusWildcard",e[e.BonusRepeatable=-20]="BonusRepeatable",e[e.BonusOptional=-8]="BonusOptional",e[e.BonusStrict=.7000000000000001]="BonusStrict",e[e.BonusCaseSensitive=.25]="BonusCaseSensitive",e})(Oe||{});const Wc=/[.+*?^${}()[\]/\\]/g;function Kc(e,t){const n=ne({},qc,t),s=[];let r=n.start?"^":"";const o=[];for(const c of e){const u=c.length?[]:[Oe.Root];n.strict&&!c.length&&(r+="/");for(let m=0;m<c.length;m++){const g=c[m];let v=Oe.Segment+(n.sensitive?Oe.BonusCaseSensitive:0);if(g.type===Ot.Static)m||(r+="/"),r+=g.value.replace(Wc,"\\$&"),v+=Oe.Static;else if(g.type===Ot.Param){const{value:S,repeatable:I,optional:W,regexp:j}=g;o.push({name:S,repeatable:I,optional:W});const D=j||Ur;if(D!==Ur){v+=Oe.BonusCustomRegExp;try{`${D}`}catch(L){throw new Error(`Invalid custom RegExp for param "${S}" (${D}): `+L.message)}}let V=I?`((?:${D})(?:/(?:${D}))*)`:`(${D})`;m||(V=W&&c.length<2?`(?:/${V})`:"/"+V),W&&(V+="?"),r+=V,v+=Oe.Dynamic,W&&(v+=Oe.BonusOptional),I&&(v+=Oe.BonusRepeatable),D===".*"&&(v+=Oe.BonusWildcard)}u.push(v)}s.push(u)}if(n.strict&&n.end){const c=s.length-1;s[c][s[c].length-1]+=Oe.BonusStrict}n.strict||(r+="/?"),n.end?r+="$":n.strict&&!r.endsWith("/")&&(r+="(?:/|$)");const i=new RegExp(r,n.sensitive?"":"i");function l(c){const u=c.match(i),m={};if(!u)return null;for(let g=1;g<u.length;g++){const v=u[g]||"",S=o[g-1];m[S.name]=v&&S.repeatable?v.split("/"):v}return m}function a(c){let u="",m=!1;for(const g of e){(!m||!u.endsWith("/"))&&(u+="/"),m=!1;for(const v of g)if(v.type===Ot.Static)u+=v.value;else if(v.type===Ot.Param){const{value:S,repeatable:I,optional:W}=v,j=S in c?c[S]:"";if(ze(j)&&!I)throw new Error(`Provided param "${S}" is an array but it is not repeatable (* or + modifiers)`);const D=ze(j)?j.join("/"):j;if(!D)if(W)g.length<2&&(u.endsWith("/")?u=u.slice(0,-1):m=!0);else throw new Error(`Missing required param "${S}"`);u+=D}}return u||"/"}return{re:i,score:s,keys:o,parse:l,stringify:a}}function zc(e,t){let n=0;for(;n<e.length&&n<t.length;){const s=t[n]-e[n];if(s)return s;n++}return e.length<t.length?e.length===1&&e[0]===Oe.Static+Oe.Segment?-1:1:e.length>t.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(;n<s.length&&n<r.length;){const o=zc(s[n],r[n]);if(o)return o;n++}if(Math.abs(r.length-s.length)===1){if(Gr(s))return 1;if(Gr(r))return-1}return r.length-s.length}function Gr(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const Jc={strict:!1,end:!0,sensitive:!1};function Qc(e,t,n){const s=Kc(Gc(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 Yc(e,t){const n=[],s=new Map;t=Dr(Jc,t);function r(m){return s.get(m)}function o(m,g,v){const S=!v,I=Wr(m);I.aliasOf=v&&v.record;const W=Dr(t,m),j=[I];if("alias"in m){const L=typeof m.alias=="string"?[m.alias]:m.alias;for(const ee of L)j.push(Wr(ne({},I,{components:v?v.record.components:I.components,path:ee,aliasOf:v?v.record:I})))}let D,V;for(const L of j){const{path:ee}=L;if(g&&ee[0]!=="/"){const ve=g.record.path,he=ve[ve.length-1]==="/"?"":"/";L.path=g.record.path+(ee&&he+ee)}if(D=Qc(L,g,W),v?v.alias.push(D):(V=V||D,V!==D&&V.alias.push(D),S&&m.name&&!Kr(D)&&i(m.name)),wi(D)&&a(D),I.children){const ve=I.children;for(let he=0;he<ve.length;he++)o(ve[he],D,v&&v.children[he])}v=v||D}return V?()=>{i(V)}:hn}function i(m){if(yi(m)){const g=s.get(m);g&&(s.delete(m),n.splice(n.indexOf(g),1),g.children.forEach(i),g.alias.forEach(i))}else{const g=n.indexOf(m);g>-1&&(n.splice(g,1),m.record.name&&s.delete(m.record.name),m.children.forEach(i),m.alias.forEach(i))}}function l(){return n}function a(m){const g=eu(m,n);n.splice(g,0,m),m.record.name&&!Kr(m)&&s.set(m.record.name,m)}function c(m,g){let v,S={},I,W;if("name"in m&&m.name){if(v=s.get(m.name),!v)throw Zt(ge.MATCHER_NOT_FOUND,{location:m});W=v.record.name,S=ne(qr(g.params,v.keys.filter(V=>!V.optional).concat(v.parent?v.parent.keys.filter(V=>V.optional):[]).map(V=>V.name)),m.params&&qr(m.params,v.keys.map(V=>V.name))),I=v.stringify(S)}else if(m.path!=null)I=m.path,v=n.find(V=>V.re.test(I)),v&&(S=v.parse(I),W=v.record.name);else{if(v=g.name?s.get(g.name):n.find(V=>V.re.test(g.path)),!v)throw Zt(ge.MATCHER_NOT_FOUND,{location:m,currentLocation:g});W=v.record.name,S=ne({},g.params,m.params),I=v.stringify(S)}const j=[];let D=v;for(;D;)j.unshift(D.record),D=D.parent;return{name:W,path:I,params:S,matched:j,meta:Zc(j)}}e.forEach(m=>o(m));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 Wr(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:Xc(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 Xc(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 Kr(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Zc(e){return e.reduce((t,n)=>ne(t,n.meta),{})}function eu(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=tu(e);return r&&(s=t.lastIndexOf(r,s-1)),s}function tu(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=Pe(Ys),n=Pe(Xs),s=oe(()=>{const a=P(e.to);return t.resolve(a)}),r=oe(()=>{const{matched:a}=s.value,{length:c}=a,u=a[c-1],m=n.matched;if(!u||!m.length)return-1;const g=m.findIndex(Xt.bind(null,u));if(g>-1)return g;const v=Jr(a[c-2]);return c>1&&Jr(u)===v&&m[m.length-1].path!==v?m.findIndex(Xt.bind(null,a[c-2])):g}),o=oe(()=>r.value>-1&&ou(n.params,s.value.params)),i=oe(()=>r.value>-1&&r.value===n.matched.length-1&&vi(n.params,s.value.params));function l(a={}){if(ru(a)){const c=t[P(e.replace)?"replace":"push"](P(e.to)).catch(hn);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 nu(e){return e.length===1?e[0]:e}const su=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=Kn(zr(e)),{options:s}=Pe(Ys),r=oe(()=>({[Qr(e.activeClass,s.linkActiveClass,"router-link-active")]:n.isActive,[Qr(e.exactActiveClass,s.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&nu(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)}}}),Ce=su;function ru(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 ou(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 Qr=(e,t,n)=>e??t??n,iu=To({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const s=Pe(Os),r=oe(()=>e.route||s.value),o=Pe(Hr,0),i=oe(()=>{let c=P(o);const{matched:u}=r.value;let m;for(;(m=u[c])&&!m.components;)c++;return c}),l=oe(()=>r.value.matched[i.value]);fn(Hr,oe(()=>i.value+1)),fn(Mc,l),fn(Os,r);const a=ke();return Ue(()=>[a.value,l.value,e.name],([c,u,m],[g,v,S])=>{u&&(u.instances[m]=c,v&&v!==u&&c&&c===g&&(u.leaveGuards.size||(u.leaveGuards=v.leaveGuards),u.updateGuards.size||(u.updateGuards=v.updateGuards))),c&&u&&(!v||!Xt(u,v)||!g)&&(u.enterCallbacks[m]||[]).forEach(I=>I(c))},{flush:"post"}),()=>{const c=r.value,u=e.name,m=l.value,g=m&&m.components[u];if(!g)return Yr(n.default,{Component:g,route:c});const v=m.props[u],S=v?v===!0?c.params:typeof v=="function"?v(c):v:null,W=li(g,ne({},S,t,{onVnodeUnmounted:j=>{j.component.isUnmounted&&(m.instances[u]=null)},ref:a}));return Yr(n.default,{Component:W,route:c})||W}}});function Yr(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const lu=iu;function au(e){const t=Yc(e.routes,e),n=e.parseQuery||Ic,s=e.stringifyQuery||Vr,r=e.history,o=rn(),i=rn(),l=rn(),a=fl(bt);let c=bt;Gt&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=ms.bind(null,_=>""+_),m=ms.bind(null,pc),g=ms.bind(null,_n);function v(_,M){let T,F;return yi(_)?(T=t.getRecordMatcher(_),F=M):F=_,t.addRoute(F,T)}function S(_){const M=t.getRecordMatcher(_);M&&t.removeRoute(M)}function I(){return t.getRoutes().map(_=>_.record)}function W(_){return!!t.getRecordMatcher(_)}function j(_,M){if(M=ne({},M||a.value),typeof _=="string"){const p=hs(n,_,M.path),b=t.resolve({path:p.path},M),w=r.createHref(p.fullPath);return ne(p,b,{params:g(b.params),hash:_n(p.hash),redirectedFrom:void 0,href:w})}let T;if(_.path!=null)T=ne({},_,{path:hs(n,_.path,M.path).path});else{const p=ne({},_.params);for(const b in p)p[b]==null&&delete p[b];T=ne({},_,{params:m(p)}),M.params=m(M.params)}const F=t.resolve(T,M),Y=_.hash||"";F.params=u(g(F.params));const f=xc(s,ne({},_,{hash:mc(Y),path:F.path})),h=r.createHref(f);return ne({fullPath:f,hash:Y,query:s===Vr?Nc(_.query):_.query||{}},F,{redirectedFrom:void 0,href:h})}function D(_){return typeof _=="string"?hs(n,_,a.value.path):ne({},_)}function V(_,M){if(c!==_)return Zt(ge.NAVIGATION_CANCELLED,{from:M,to:_})}function L(_){return he(_)}function ee(_){return L(ne(D(_),{replace:!0}))}function ve(_,M){const T=_.matched[_.matched.length-1];if(T&&T.redirect){const{redirect:F}=T;let Y=typeof F=="function"?F(_,M):F;return typeof Y=="string"&&(Y=Y.includes("?")||Y.includes("#")?Y=D(Y):{path:Y},Y.params={}),ne({query:_.query,hash:_.hash,params:Y.path!=null?{}:_.params},Y)}}function he(_,M){const T=c=j(_),F=a.value,Y=_.state,f=_.force,h=_.replace===!0,p=ve(T,F);if(p)return he(ne(D(p),{state:typeof p=="object"?ne({},Y,p.state):Y,force:f,replace:h}),M||T);const b=T;b.redirectedFrom=M;let w;return!f&&bc(s,F,T)&&(w=Zt(ge.NAVIGATION_DUPLICATED,{to:b,from:F}),Ye(F,F,!0,!1)),(w?Promise.resolve(w):Je(b,F)).catch(x=>at(x)?at(x,ge.NAVIGATION_GUARD_REDIRECT)?x:xt(x):te(x,b,F)).then(x=>{if(x){if(at(x,ge.NAVIGATION_GUARD_REDIRECT))return he(ne({replace:h},D(x.to),{state:typeof x.to=="object"?ne({},Y,x.to.state):Y,force:f}),M||b)}else x=At(b,F,!0,h,Y);return yt(b,F,x),x})}function Re(_,M){const T=V(_,M);return T?Promise.reject(T):Promise.resolve()}function vt(_){const M=Ht.values().next().value;return M&&typeof M.runWithContext=="function"?M.runWithContext(_):_()}function Je(_,M){let T;const[F,Y,f]=Dc(_,M);T=ps(F.reverse(),"beforeRouteLeave",_,M);for(const p of F)p.leaveGuards.forEach(b=>{T.push(Rt(b,_,M))});const h=Re.bind(null,_,M);return T.push(h),He(T).then(()=>{T=[];for(const p of o.list())T.push(Rt(p,_,M));return T.push(h),He(T)}).then(()=>{T=ps(Y,"beforeRouteUpdate",_,M);for(const p of Y)p.updateGuards.forEach(b=>{T.push(Rt(b,_,M))});return T.push(h),He(T)}).then(()=>{T=[];for(const p of f)if(p.beforeEnter)if(ze(p.beforeEnter))for(const b of p.beforeEnter)T.push(Rt(b,_,M));else T.push(Rt(p.beforeEnter,_,M));return T.push(h),He(T)}).then(()=>(_.matched.forEach(p=>p.enterCallbacks={}),T=ps(f,"beforeRouteEnter",_,M,vt),T.push(h),He(T))).then(()=>{T=[];for(const p of i.list())T.push(Rt(p,_,M));return T.push(h),He(T)}).catch(p=>at(p,ge.NAVIGATION_CANCELLED)?p:Promise.reject(p))}function yt(_,M,T){l.list().forEach(F=>vt(()=>F(_,M,T)))}function At(_,M,T,F,Y){const f=V(_,M);if(f)return f;const h=M===bt,p=Gt?history.state:{};T&&(F||h?r.replace(_.fullPath,ne({scroll:h&&p&&p.scroll},Y)):r.push(_.fullPath,Y)),a.value=_,Ye(_,M,T,h),xt()}let Qe;function en(){Qe||(Qe=r.listen((_,M,T)=>{if(!Et.listening)return;const F=j(_),Y=ve(F,Et.currentRoute.value);if(Y){he(ne(Y,{replace:!0,force:!0}),F).catch(hn);return}c=F;const f=a.value;Gt&&Ec(Fr(f.fullPath,T.delta),Zn()),Je(F,f).catch(h=>at(h,ge.NAVIGATION_ABORTED|ge.NAVIGATION_CANCELLED)?h:at(h,ge.NAVIGATION_GUARD_REDIRECT)?(he(ne(D(h.to),{force:!0}),F).then(p=>{at(p,ge.NAVIGATION_ABORTED|ge.NAVIGATION_DUPLICATED)&&!T.delta&&T.type===$s.pop&&r.go(-1,!1)}).catch(hn),Promise.reject()):(T.delta&&r.go(-T.delta,!1),te(h,F,f))).then(h=>{h=h||At(F,f,!1),h&&(T.delta&&!at(h,ge.NAVIGATION_CANCELLED)?r.go(-T.delta,!1):T.type===$s.pop&&at(h,ge.NAVIGATION_ABORTED|ge.NAVIGATION_DUPLICATED)&&r.go(-1,!1)),yt(F,f,h)}).catch(hn)}))}let Ft=rn(),be=rn(),ae;function te(_,M,T){xt(_);const F=be.list();return F.length?F.forEach(Y=>Y(_,M,T)):console.error(_),Promise.reject(_)}function it(){return ae&&a.value!==bt?Promise.resolve():new Promise((_,M)=>{Ft.add([_,M])})}function xt(_){return ae||(ae=!_,en(),Ft.list().forEach(([M,T])=>_?T(_):M()),Ft.reset()),_}function Ye(_,M,T,F){const{scrollBehavior:Y}=e;if(!Gt||!Y)return Promise.resolve();const f=!T&&Pc(Fr(_.fullPath,0))||(F||!T)&&history.state&&history.state.scroll||null;return So().then(()=>Y(_,M,f)).then(h=>h&&Ac(h)).catch(h=>te(h,_,M))}const Ne=_=>r.go(_);let Vt;const Ht=new Set,Et={currentRoute:a,listening:!0,addRoute:v,removeRoute:S,clearRoutes:t.clearRoutes,hasRoute:W,getRoutes:I,resolve:j,options:e,push:L,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",Ce),_.component("RouterView",lu),_.config.globalProperties.$router=Et,Object.defineProperty(_.config.globalProperties,"$route",{enumerable:!0,get:()=>P(a)}),Gt&&!Vt&&a.value===bt&&(Vt=!0,L(r.location).catch(F=>{}));const M={};for(const F in bt)Object.defineProperty(M,F,{get:()=>a.value[F],enumerable:!0});_.provide(Ys,Et),_.provide(Xs,wo(M)),_.provide(Os,a);const T=_.unmount;Ht.add(_),_.unmount=function(){Ht.delete(_),Ht.size<1&&(c=bt,Qe&&Qe(),Qe=null,a.value=bt,Vt=!1,ae=!1),T()}}};function He(_){return _.reduce((M,T)=>M.then(()=>vt(T)),Promise.resolve())}return Et}function es(e){return Pe(Xs)}const cu=["aria-label"],uu={key:0,class:"fas fa-moon text-purple-400"},du={key:1,class:"fas fa-sun text-yellow-500"},fu={__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)=>(y(),R("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?(y(),R("i",uu)):(y(),R("i",du))],8,cu))}},mu={class:"sticky top-0 z-50 glass shadow-modern"},hu={class:"container mx-auto px-4"},gu={class:"flex items-center justify-between h-16"},pu={class:"hidden md:flex items-center space-x-6"},vu={class:"flex items-center space-x-4"},yu={key:0,class:"md:hidden py-4 border-t border-gray-200 dark:border-gray-700"},xu={class:"flex flex-col space-y-3"},bu={__name:"Navbar",setup(e){const t=es(),n=Pe("globalData"),s=ke(!1),r=oe(()=>n.value?.Repositories||[]);return(o,i)=>(y(),R("nav",mu,[d("div",hu,[d("div",gu,[N(P(Ce),{to:"/",class:"flex items-center space-x-2"},{default:Z(()=>[...i[4]||(i[4]=[d("i",{class:"fas fa-rocket text-2xl gradient-text"},null,-1),d("span",{class:"text-xl font-bold gradient-text"},"Git Velocity",-1)])]),_:1}),d("div",pu,[N(P(Ce),{to:"/",class:J(P(t).path==="/"?"nav-link-active":"nav-link")},{default:Z(()=>[...i[5]||(i[5]=[ce(" Dashboard ",-1)])]),_:1},8,["class"]),N(P(Ce),{to:"/leaderboard",class:J(P(t).path==="/leaderboard"?"nav-link-active":"nav-link")},{default:Z(()=>[...i[6]||(i[6]=[ce(" Leaderboard ",-1)])]),_:1},8,["class"]),(y(!0),R(Q,null,xe(r.value,l=>(y(),ie(P(Ce),{key:`${l.Owner}/${l.Name}`,to:`/repos/${l.Owner}/${l.Name}`,class:J(P(t).path.includes(`/repos/${l.Owner}/${l.Name}`)?"nav-link-active":"nav-link")},{default:Z(()=>[ce(k(l.Name),1)]),_:2},1032,["to","class"]))),128))]),d("div",vu,[N(fu),d("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]=[d("i",{class:"fas fa-bars text-gray-700 dark:text-gray-200"},null,-1)])])])]),s.value?(y(),R("div",yu,[d("div",xu,[N(P(Ce),{to:"/",onClick:i[1]||(i[1]=l=>s.value=!1),class:J(P(t).path==="/"?"nav-link-active":"nav-link")},{default:Z(()=>[...i[8]||(i[8]=[ce(" Dashboard ",-1)])]),_:1},8,["class"]),N(P(Ce),{to:"/leaderboard",onClick:i[2]||(i[2]=l=>s.value=!1),class:J(P(t).path==="/leaderboard"?"nav-link-active":"nav-link")},{default:Z(()=>[...i[9]||(i[9]=[ce(" Leaderboard ",-1)])]),_:1},8,["class"]),(y(!0),R(Q,null,xe(r.value,l=>(y(),ie(P(Ce),{key:`${l.Owner}/${l.Name}`,to:`/repos/${l.Owner}/${l.Name}`,onClick:i[3]||(i[3]=a=>s.value=!1),class:J(P(t).path.includes(`/repos/${l.Owner}/${l.Name}`)?"nav-link-active":"nav-link")},{default:Z(()=>[ce(k(l.Name),1)]),_:2},1032,["to","class"]))),128))])])):q("",!0)])]))}},_u={class:"py-8 px-4 mt-16 border-t border-gray-200 dark:border-gray-700"},wu={class:"container mx-auto text-center"},ku={key:0,class:"text-sm text-gray-400 dark:text-gray-500 mt-2"},Ru={__name:"Footer",setup(e){const t=Pe("globalData"),n=oe(()=>t.value?.GeneratedAt?new Date(t.value.GeneratedAt).toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"}):"");return(s,r)=>(y(),R("footer",_u,[d("div",wu,[r[0]||(r[0]=d("p",{class:"text-gray-500 dark:text-gray-400"},[ce(" Generated by "),d("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?(y(),R("p",ku,k(n.value),1)):q("",!0)])]))}},Cu={class:"min-h-screen flex flex-col"},Su={class:"flex-1"},Au={key:0,class:"flex items-center justify-center min-h-[60vh]"},Eu={key:1,class:"flex items-center justify-center min-h-[60vh]"},Pu={class:"text-center"},$u={class:"text-gray-600 dark:text-gray-400"},Tu={__name:"App",setup(e){const t=ke(null),n=ke(!0),s=ke(null);return fn("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=Ll("router-view");return y(),R("div",Cu,[N(bu),d("main",Su,[n.value?(y(),R("div",Au,[...o[0]||(o[0]=[d("div",{class:"text-center"},[d("i",{class:"fas fa-spinner fa-spin text-4xl text-primary-500 mb-4"}),d("p",{class:"text-gray-600 dark:text-gray-400"},"Loading dashboard...")],-1)])])):s.value?(y(),R("div",Eu,[d("div",Pu,[o[1]||(o[1]=d("i",{class:"fas fa-exclamation-triangle text-4xl text-red-500 mb-4"},null,-1)),d("p",$u,k(s.value),1)])])):(y(),ie(i,{key:2}))]),N(Ru)])}}};function z(e){return e==null?"0":e>=1e6?(e/1e6).toFixed(1)+"M":e>=1e3?(e/1e3).toFixed(1)+"K":String(e)}function Ou(e){return e==null?"-":e<1?Math.round(e*60)+"m":e<24?e.toFixed(1)+"h":(e/24).toFixed(1)+"d"}function vs(e){return e?new Date(e).toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"}):""}function Iu(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 Nu={class:"flex items-center justify-between"},Mu={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)=>(y(),R("div",{class:"card animate-fade-in-up",style:St({animationDelay:e.delay})},[d("div",Nu,[d("div",null,[d("div",{class:J(["text-3xl font-bold",e.valueClass])},k(typeof e.value=="number"?P(z)(e.value):e.value),3),d("div",Mu,k(e.label),1)]),e.icon?(y(),R("div",{key:0,class:J(["text-3xl opacity-50",e.iconColor])},[d("i",{class:J(e.icon)},null,2)],2)):q("",!0)])],4))}},Du=["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?(y(),R("img",{key:0,src:e.src,alt:e.name,class:J([r.value,"rounded-full"])},null,10,Du)):(y(),R("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"])},k(s.value),3))}},Ri={__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)=>(y(),R("span",{class:J([[r.value,s.value,{"text-white":e.rank<=3}],"inline-flex items-center justify-center rounded-full font-bold"])},k(e.rank),3))}},Lu={class:"inline-flex flex-col items-center gap-2"},ju=["title"],Fu={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"},Vu={class:"font-bold text-sm"},Hu={class:"text-gray-300 text-[11px] mt-0.5"},Bu={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):50},r={"commit-1":{name:"First Steps",description:"Made your first commit",icon:"fa-baby"},"commit-10":{name:"Getting Started",description:"Made 10 commits",icon:"fa-seedling"},"commit-50":{name:"Contributor",description:"Made 50 commits",icon:"fa-code"},"commit-100":{name:"Committed",description:"Made 100 commits",icon:"fa-fire"},"commit-500":{name:"Code Machine",description:"Made 500 commits",icon:"fa-robot"},"commit-1000":{name:"Code Warrior",description:"Made 1000 commits",icon:"fa-crown"},"pr-1":{name:"PR Pioneer",description:"Opened your first pull request",icon:"fa-code-pull-request"},"pr-10":{name:"PR Regular",description:"Opened 10 pull requests",icon:"fa-code-branch"},"pr-25":{name:"PR Pro",description:"Opened 25 pull requests",icon:"fa-code-compare"},"pr-50":{name:"Merge Master",description:"Opened 50 pull requests",icon:"fa-code-merge"},"pr-100":{name:"PR Champion",description:"Opened 100 pull requests",icon:"fa-trophy"},"pr-250":{name:"PR Legend",description:"Opened 250 pull requests",icon:"fa-medal"},"review-1":{name:"First Review",description:"Reviewed your first pull request",icon:"fa-magnifying-glass"},"review-10":{name:"Reviewer",description:"Reviewed 10 pull requests",icon:"fa-eye"},"review-25":{name:"Review Regular",description:"Reviewed 25 pull requests",icon:"fa-glasses"},"review-50":{name:"Review Expert",description:"Reviewed 50 pull requests",icon:"fa-user-check"},"review-100":{name:"Review Guru",description:"Reviewed 100 pull requests",icon:"fa-user-graduate"},"review-250":{name:"Review Master",description:"Reviewed 250 pull requests",icon:"fa-award"},"comment-10":{name:"Commentator",description:"Left 10 PR review comments",icon:"fa-comment"},"comment-50":{name:"Feedback Giver",description:"Left 50 PR review comments",icon:"fa-comments"},"comment-100":{name:"Code Critic",description:"Left 100 PR review comments",icon:"fa-comment-dots"},"comment-250":{name:"Feedback Expert",description:"Left 250 PR review comments",icon:"fa-message"},"comment-500":{name:"Comment Champion",description:"Left 500 PR review comments",icon:"fa-scroll"},"lines-added-100":{name:"First Hundred",description:"Added 100 lines of code",icon:"fa-plus"},"lines-added-1000":{name:"Thousand Lines",description:"Added 1000 lines of code",icon:"fa-layer-group"},"lines-added-5000":{name:"Five Thousand",description:"Added 5000 lines of code",icon:"fa-cubes"},"lines-added-10000":{name:"Ten Thousand",description:"Added 10000 lines of code",icon:"fa-mountain"},"lines-added-50000":{name:"Code Mountain",description:"Added 50000 lines of code",icon:"fa-mountain-sun"},"lines-deleted-100":{name:"Tidying Up",description:"Deleted 100 lines of code",icon:"fa-eraser"},"lines-deleted-500":{name:"Spring Cleaning",description:"Deleted 500 lines of code",icon:"fa-broom"},"lines-deleted-1000":{name:"Code Cleaner",description:"Deleted 1000 lines of code",icon:"fa-trash-can"},"lines-deleted-5000":{name:"Refactoring Hero",description:"Deleted 5000 lines of code",icon:"fa-recycle"},"lines-deleted-10000":{name:"Deletion Master",description:"Deleted 10000 lines of code",icon:"fa-dumpster-fire"},"review-time-24h":{name:"Same Day Reviewer",description:"Average review response under 24 hours",icon:"fa-clock"},"review-time-4h":{name:"Quick Responder",description:"Average review response under 4 hours",icon:"fa-stopwatch"},"review-time-1h":{name:"Speed Demon",description:"Average review response under 1 hour",icon:"fa-bolt"},"repo-2":{name:"Multi-Repo",description:"Contributed to 2 repositories",icon:"fa-folder"},"repo-5":{name:"Repo Explorer",description:"Contributed to 5 repositories",icon:"fa-folder-tree"},"repo-10":{name:"Repo Master",description:"Contributed to 10 repositories",icon:"fa-network-wired"},"reviewees-3":{name:"Helpful Colleague",description:"Reviewed PRs from 3 different contributors",icon:"fa-user-group"},"reviewees-10":{name:"Team Player",description:"Reviewed PRs from 10 different contributors",icon:"fa-people-group"},"reviewees-25":{name:"Community Pillar",description:"Reviewed PRs from 25 different contributors",icon:"fa-people-roof"},"large-pr-500":{name:"Big Change",description:"Merged a PR with 500+ lines changed",icon:"fa-expand"},"large-pr-1000":{name:"Heavy Lifter",description:"Merged a PR with 1000+ lines changed",icon:"fa-weight-hanging"},"large-pr-5000":{name:"Mega Merge",description:"Merged a PR with 5000+ lines changed",icon:"fa-dumbbell"},"small-pr-5":{name:"Small Changes",description:"Merged 5 PRs under 100 lines",icon:"fa-compress"},"small-pr-10":{name:"Small PR Advocate",description:"Merged 10 PRs under 100 lines",icon:"fa-minimize"},"small-pr-25":{name:"Atomic Commits",description:"Merged 25 PRs under 100 lines",icon:"fa-atom"},"small-pr-50":{name:"Micro PR Master",description:"Merged 50 PRs under 100 lines",icon:"fa-microchip"},"perfect-pr-1":{name:"First Try",description:"1 PR merged without changes requested",icon:"fa-check"},"perfect-pr-5":{name:"Clean Code",description:"5 PRs merged without changes requested",icon:"fa-check-double"},"perfect-pr-10":{name:"Quality Author",description:"10 PRs merged without changes requested",icon:"fa-circle-check"},"perfect-pr-25":{name:"Flawless",description:"25 PRs merged without changes requested",icon:"fa-gem"},"active-7":{name:"Week Active",description:"Active on 7 different days",icon:"fa-calendar-day"},"active-30":{name:"Month Active",description:"Active on 30 different days",icon:"fa-calendar-week"},"active-60":{name:"Consistent Contributor",description:"Active on 60 different days",icon:"fa-chart-line"},"active-100":{name:"Dedicated Developer",description:"Active on 100 different days",icon:"fa-fire-flame-curved"},"streak-3":{name:"Getting Rolling",description:"3 day contribution streak",icon:"fa-forward"},"streak-7":{name:"Week Warrior",description:"7 day contribution streak",icon:"fa-calendar-week"},"streak-14":{name:"Two Week Streak",description:"14 day contribution streak",icon:"fa-fire"},"streak-30":{name:"Month Master",description:"30 day contribution streak",icon:"fa-calendar-check"},"workweek-3":{name:"Work Week Start",description:"3 consecutive weekday streak",icon:"fa-briefcase"},"workweek-5":{name:"Full Work Week",description:"5 consecutive weekday streak",icon:"fa-building"},"workweek-10":{name:"Two Week Grind",description:"10 consecutive weekday streak",icon:"fa-business-time"},"workweek-20":{name:"Month of Mondays",description:"20 consecutive weekday streak",icon:"fa-landmark"},"earlybird-10":{name:"Early Riser",description:"10 commits before 9am",icon:"fa-mug-hot"},"earlybird-25":{name:"Morning Person",description:"25 commits before 9am",icon:"fa-cloud-sun"},"earlybird-50":{name:"Early Bird",description:"50 commits before 9am",icon:"fa-sun"},"earlybird-100":{name:"Dawn Warrior",description:"100 commits before 9am",icon:"fa-sunrise"},"nightowl-10":{name:"Late Worker",description:"10 commits after 9pm",icon:"fa-cloud-moon"},"nightowl-25":{name:"Evening Coder",description:"25 commits after 9pm",icon:"fa-moon"},"nightowl-50":{name:"Night Owl",description:"50 commits after 9pm",icon:"fa-star"},"nightowl-100":{name:"Nocturnal",description:"100 commits after 9pm",icon:"fa-star-and-crescent"},"midnight-5":{name:"Night Shift",description:"5 commits between midnight and 4am",icon:"fa-ghost"},"midnight-10":{name:"Insomniac",description:"10 commits between midnight and 4am",icon:"fa-bed"},"midnight-25":{name:"Nosferatu",description:"25 commits between midnight and 4am",icon:"fa-skull"},"midnight-50":{name:"Vampire Coder",description:"50 commits between midnight and 4am",icon:"fa-skull-crossbones"},"weekend-5":{name:"Weekend Work",description:"5 weekend commits",icon:"fa-couch"},"weekend-10":{name:"Weekend Regular",description:"10 weekend commits",icon:"fa-house-laptop"},"weekend-25":{name:"Weekend Warrior",description:"25 weekend commits",icon:"fa-gamepad"},"weekend-50":{name:"No Days Off",description:"50 weekend commits",icon:"fa-person-running"},"ooh-10":{name:"Extra Hours",description:"10 commits outside 9am-5pm",icon:"fa-clock-rotate-left"},"ooh-25":{name:"Flexible Schedule",description:"25 commits outside 9am-5pm",icon:"fa-user-clock"},"ooh-50":{name:"Off-Hours Hero",description:"50 commits outside 9am-5pm",icon:"fa-hourglass-half"},"ooh-100":{name:"Time Bender",description:"100 commits outside 9am-5pm",icon:"fa-infinity"},"docs-100":{name:"Documenter",description:"Added 100 lines of comments/docs",icon:"fa-file-lines"},"docs-500":{name:"Technical Writer",description:"Added 500 lines of comments/docs",icon:"fa-book"},"docs-1000":{name:"Documentation Hero",description:"Added 1000 lines of comments/docs",icon:"fa-book-open"},"docs-2500":{name:"Knowledge Keeper",description:"Added 2500 lines of comments/docs",icon:"fa-scroll"},"docs-5000":{name:"Code Historian",description:"Added 5000 lines of comments/docs",icon:"fa-landmark"},"docs-del-50":{name:"Comment Trimmer",description:"Removed 50 lines of outdated comments",icon:"fa-scissors"},"docs-del-200":{name:"Cleanup Crew",description:"Removed 200 lines of outdated comments",icon:"fa-broom"},"docs-del-500":{name:"Dead Code Hunter",description:"Removed 500 lines of outdated comments",icon:"fa-skull-crossbones"},"docs-del-1000":{name:"Comment Surgeon",description:"Removed 1000 lines of outdated comments",icon:"fa-user-doctor"},"docs-del-2500":{name:"Noise Eliminator",description:"Removed 2500 lines of outdated comments",icon:"fa-volume-xmark"}},o=l=>{const a=r[l]||{name:l,description:"",icon:"fa-medal"},c=s(l),u=n(c),m=t[u]||"from-gray-400 to-gray-500";return{...a,gradient:m,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)=>(y(),R("div",Lu,[d("div",{class:"relative group/badge",title:o(e.achievementId).name},[d("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]])},[d("i",{class:J(["fas text-white drop-shadow-sm",[o(e.achievementId).icon,i[e.size].icon]])},null,2)],2),d("div",Fu,[d("div",Vu,k(o(e.achievementId).name),1),d("div",Hu,k(o(e.achievementId).description),1),a[0]||(a[0]=d("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,ju),e.showLabel?(y(),R("span",Bu,k(o(e.achievementId).name),1)):q("",!0)]))}},Uu={class:"flex items-center space-x-4"},Gu={class:"relative"},qu={class:"flex-1"},Wu={class:"font-semibold text-gray-800 dark:text-white group-hover:text-primary-500 transition-colors"},Ku={class:"text-sm text-gray-500 dark:text-gray-400"},zu={key:0,class:"text-xs text-accent-500"},Ju={class:"text-right"},Qu={class:"text-2xl font-bold gradient-text"},Yu={key:0,class:"mt-4 flex flex-wrap gap-1.5"},Xu={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"},Zu={__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)=>(y(),ie(P(Ce),{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(()=>[d("div",Uu,[d("div",Gu,[N(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?(y(),ie(Ri,{key:0,rank:e.rank,size:"sm",class:"absolute -top-1 -right-1"},null,8,["rank"])):q("",!0)]),d("div",qu,[d("h3",Wu,k(e.contributor.name||e.contributor.login),1),d("p",Ku,[d("span",{class:"hover:text-primary-500 transition-colors",onClick:n[0]||(n[0]=Js(s=>t.window.open(`https://github.com/${e.contributor.login}`,"_blank"),["stop","prevent"]))},[ce(" @"+k(e.contributor.login)+" ",1),n[1]||(n[1]=d("i",{class:"fas fa-external-link-alt text-xs ml-0.5 opacity-50"},null,-1))])]),e.contributor.team?(y(),R("p",zu,k(e.contributor.team),1)):q("",!0)]),d("div",Ju,[d("div",Qu,k(P(z)(e.contributor.score?.total||e.contributor.score||0)),1),n[2]||(n[2]=d("div",{class:"text-xs text-gray-500 dark:text-gray-400"},"points",-1))])]),e.contributor.achievements?.length?(y(),R("div",Yu,[(y(!0),R(Q,null,xe(e.contributor.achievements.slice(0,6),s=>(y(),ie(wn,{key:s,"achievement-id":s,size:"sm"},null,8,["achievement-id"]))),128)),e.contributor.achievements.length>6?(y(),R("span",Xu," +"+k(e.contributor.achievements.length-6),1)):q("",!0)])):q("",!0)]),_:1},8,["to","class"]))}},ed={class:"flex items-center justify-between mb-4"},td={class:"font-semibold text-gray-800 dark:text-white group-hover:text-primary-500 transition"},nd={class:"text-sm text-gray-500 dark:text-gray-400 mb-4"},sd={class:"grid grid-cols-3 gap-4 text-center"},rd={class:"text-lg font-semibold text-gray-800 dark:text-white"},od={class:"text-lg font-semibold text-gray-800 dark:text-white"},id={class:"text-lg font-semibold text-gray-800 dark:text-white"},ld={__name:"RepoCard",props:{repo:{type:Object,required:!0}},setup(e){return(t,n)=>(y(),ie(P(Ce),{to:`/repos/${e.repo.owner}/${e.repo.name}`,class:"card hover:shadow-lg transition group"},{default:Z(()=>[d("div",ed,[d("h3",td,k(e.repo.name),1),n[0]||(n[0]=d("i",{class:"fas fa-arrow-right text-gray-400 group-hover:text-primary-500 transition"},null,-1))]),d("p",nd,k(e.repo.owner)+"/"+k(e.repo.name),1),d("div",sd,[d("div",null,[d("div",rd,k(P(z)(e.repo.total_commits)),1),n[1]||(n[1]=d("div",{class:"text-xs text-gray-500 dark:text-gray-400"},"Commits",-1))]),d("div",null,[d("div",od,k(P(z)(e.repo.total_prs)),1),n[2]||(n[2]=d("div",{class:"text-xs text-gray-500 dark:text-gray-400"},"PRs",-1))]),d("div",null,[d("div",id,k(e.repo.active_contributors),1),n[3]||(n[3]=d("div",{class:"text-xs text-gray-500 dark:text-gray-400"},"Contributors",-1))])])]),_:1},8,["to"]))}},ad={class:"flex items-center justify-between mb-4"},cd={class:"font-semibold text-gray-800 dark:text-white group-hover:text-primary-500 transition"},ud={class:"flex items-center space-x-2 mb-4"},dd={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"},fd={class:"grid grid-cols-2 gap-4 text-center"},md={class:"text-lg font-semibold gradient-text"},hd={class:"text-lg font-semibold text-gray-800 dark:text-white"},gd={__name:"TeamCard",props:{team:{type:Object,required:!0}},setup(e){return(t,n)=>(y(),ie(P(Ce),{to:`/teams/${P(ki)(e.team.name)}`,class:"card hover:shadow-lg transition group"},{default:Z(()=>[d("div",ad,[d("h3",cd,k(e.team.name),1),d("span",{class:"w-3 h-3 rounded-full",style:St({backgroundColor:e.team.color||"#8b5cf6"})},null,4)]),d("div",ud,[(y(!0),R(Q,null,xe((e.team.members||[]).slice(0,5),(s,r)=>(y(),ie(Sn,{key:s,name:s,size:"sm"},null,8,["name"]))),128)),(e.team.members?.length||0)>5?(y(),R("span",dd," +"+k(e.team.members.length-5),1)):q("",!0)]),d("div",fd,[d("div",null,[d("div",md,k(P(z)(e.team.total_score)),1),n[0]||(n[0]=d("div",{class:"text-xs text-gray-500 dark:text-gray-400"},"Total Score",-1))]),d("div",null,[d("div",hd,k(e.team.members?.length||0),1),n[1]||(n[1]=d("div",{class:"text-xs text-gray-500 dark:text-gray-400"},"Members",-1))])])]),_:1},8,["to"]))}},pd={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)=>(y(),R("h2",pd,[e.icon?(y(),R("i",{key:0,class:J([[e.icon,e.iconColor],"mr-2"])},null,2)):q("",!0),ce(k(e.title)+" ",1),Dt(t.$slots,"suffix")]))}},vd=(e,t)=>{const n=e.__vccOpts||e;for(const[s,r]of t)n[s]=r;return n},yd={key:0,class:"flex items-center justify-center h-full"},xd={__name:"VelocityChart",props:{timeline:{type:Object,required:!0},height:{type:String,default:"300px"},showScore:{type:Boolean,default:!1}},setup(e){rr.register(...Oi);const t=e,n=ke(null);let s=null;const r=oe(()=>t.timeline?.series?t.timeline.series.filter(c=>t.showScore||c.name!=="Score"):[]),o=oe(()=>!t.timeline?.labels||!r.value.length?{labels:[],datasets:[]}:{labels:t.timeline.labels,datasets:r.value.map(c=>({label:c.name,data:c.data,borderColor:c.color,backgroundColor:c.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)=>(y(),R("div",{class:"velocity-chart",style:St({height:e.height})},[d("canvas",{ref_key:"chartRef",ref:n},null,512),e.timeline?.labels?.length?q("",!0):(y(),R("div",yd,[...u[0]||(u[0]=[d("p",{class:"text-gray-400"},"No velocity data available",-1)])]))],4))}},bd=vd(xd,[["__scopeId","data-v-401bbb13"]]),_d={class:"py-16 px-4"},wd={class:"container mx-auto text-center animate-fade-in-up"},kd={class:"flex flex-col items-center space-y-2 mt-4 text-sm text-gray-500 dark:text-gray-400"},Rd={key:0},Cd={key:0},Sd={key:1},Ad={key:2},Ed={key:1},Pd={key:0,class:"py-8 px-4"},$d={class:"container mx-auto"},Td={class:"card"},Od={class:"flex items-center justify-between mb-6"},Id={class:"flex items-center space-x-2 text-sm text-gray-600 dark:text-gray-400 cursor-pointer"},Nd={class:"py-8 px-4"},Md={class:"container mx-auto"},Dd={class:"grid grid-cols-2 md:grid-cols-3 lg:grid-cols-6 gap-4"},Ld={class:"py-8 px-4"},jd={class:"container mx-auto"},Fd={class:"grid md:grid-cols-3 gap-6"},Vd={class:"mt-6 text-center"},Hd={class:"py-8 px-4"},Bd={class:"container mx-auto"},Ud={class:"grid md:grid-cols-2 lg:grid-cols-3 gap-6"},Gd={key:1,class:"py-8 px-4"},qd={class:"container mx-auto"},Wd={class:"grid md:grid-cols-2 lg:grid-cols-3 gap-6"},Kd={__name:"Dashboard",setup(e){const t=Pe("globalData"),n=oe(()=>t.value||{}),s=oe(()=>n.value.leaderboard?.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)=>(y(),R("div",null,[d("header",_d,[d("div",wd,[c[4]||(c[4]=d("h1",{class:"text-4xl md:text-6xl font-bold mb-4"},[d("span",{class:"gradient-text"},"Git Velocity")],-1)),c[5]||(c[5]=d("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)),d("div",kd,[n.value.period?.start||n.value.period?.end?(y(),R("p",Rd,[c[1]||(c[1]=d("i",{class:"fas fa-calendar-alt mr-1 text-primary-500"},null,-1)),c[2]||(c[2]=d("span",{class:"font-medium"},"Period:",-1)),n.value.period.start?(y(),R("span",Cd,k(P(vs)(n.value.period.start)),1)):q("",!0),n.value.period.start&&n.value.period.end?(y(),R("span",Sd," — ")):q("",!0),n.value.period.end?(y(),R("span",Ad,k(P(vs)(n.value.period.end)),1)):q("",!0)])):q("",!0),n.value.generated_at?(y(),R("p",Ed,[c[3]||(c[3]=d("i",{class:"fas fa-clock mr-1"},null,-1)),ce(" Generated on "+k(P(vs)(n.value.generated_at)),1)])):q("",!0)])])]),i.value?(y(),R("section",Pd,[d("div",$d,[d("div",Td,[d("div",Od,[N(It,{title:"Velocity Timeline",icon:"fas fa-chart-line","icon-color":"text-primary-500"}),d("label",Id,[wl(d("input",{type:"checkbox","onUpdate:modelValue":c[0]||(c[0]=u=>l.value=u),class:"rounded border-gray-300 text-primary-500 focus:ring-primary-500"},null,512),[[za,l.value]]),c[6]||(c[6]=d("span",null,"Show Score",-1))])]),N(bd,{timeline:i.value,"show-score":l.value,height:"320px"},null,8,["timeline","show-score"])])])])):q("",!0),d("section",Nd,[d("div",Md,[d("div",Dd,[N(_e,{value:n.value.total_contributors||0,label:"Contributors",delay:"0s"},null,8,["value"]),N(_e,{value:n.value.total_commits||0,label:"Commits",delay:"0.1s"},null,8,["value"]),N(_e,{value:n.value.total_prs||0,label:"Pull Requests",delay:"0.2s"},null,8,["value"]),N(_e,{value:n.value.total_reviews||0,label:"Reviews",delay:"0.3s"},null,8,["value"]),N(_e,{value:"+"+P(z)(n.value.total_lines_added||0),label:"Lines Added","value-class":"text-green-500",delay:"0.4s"},null,8,["value"]),N(_e,{value:"-"+P(z)(n.value.total_lines_deleted||0),label:"Lines Deleted","value-class":"text-red-500",delay:"0.5s"},null,8,["value"])])])]),d("section",Ld,[d("div",jd,[N(It,{title:"Top Contributors",icon:"fas fa-trophy","icon-color":"text-yellow-500"}),d("div",Fd,[(y(!0),R(Q,null,xe(s.value,(u,m)=>(y(),ie(Zu,{key:u.login,contributor:u,rank:m+1,featured:""},null,8,["contributor","rank"]))),128))]),d("div",Vd,[N(P(Ce),{to:"/leaderboard",class:"btn-primary"},{default:Z(()=>[...c[7]||(c[7]=[ce(" View Full Leaderboard ",-1),d("i",{class:"fas fa-arrow-right ml-2"},null,-1)])]),_:1})])])]),d("section",Hd,[d("div",Bd,[N(It,{title:"Repositories",icon:"fas fa-code-branch","icon-color":"text-accent-500"}),d("div",Ud,[(y(!0),R(Q,null,xe(r.value,u=>(y(),ie(ld,{key:`${u.owner}/${u.name}`,repo:u},null,8,["repo"]))),128))])])]),o.value.length?(y(),R("section",Gd,[d("div",qd,[N(It,{title:"Teams",icon:"fas fa-users","icon-color":"text-blue-500"}),d("div",Wd,[(y(!0),R(Q,null,xe(o.value,u=>(y(),ie(gd,{key:u.name,team:u},null,8,["team"]))),128))])])])):q("",!0)]))}},zd={class:"flex items-center space-x-2 text-sm text-gray-500 dark:text-gray-400 mb-6"},Jd={key:2,class:"fas fa-chevron-right text-xs"},Qd={__name:"Breadcrumb",props:{items:{type:Array,required:!0}},setup(e){return(t,n)=>(y(),R("div",zd,[(y(!0),R(Q,null,xe(e.items,(s,r)=>(y(),R(Q,{key:r},[s.to?(y(),ie(P(Ce),{key:0,to:s.to,class:"hover:text-primary-500"},{default:Z(()=>[ce(k(s.label),1)]),_:2},1032,["to"])):(y(),R("span",{key:1,class:J(r===e.items.length-1?"text-gray-800 dark:text-white":"")},k(s.label),3)),r<e.items.length-1?(y(),R("i",Jd)):q("",!0)],64))),128))]))}},Yd={class:"py-12 px-4"},Xd={class:"text-4xl font-bold mb-4"},Zd={class:"gradient-text"},ef={key:1,class:"text-gray-600 dark:text-gray-300"},ts={__name:"PageHeader",props:{title:{type:String,required:!0},subtitle:{type:String,default:""},icon:{type:String,default:""},iconColor:{type:String,default:"text-primary-500"},breadcrumbs:{type:Array,default:()=>[]},centered:{type:Boolean,default:!1}},setup(e){return(t,n)=>(y(),R("header",Yd,[d("div",{class:J(["container mx-auto",{"text-center":e.centered}])},[e.breadcrumbs.length?(y(),ie(Qd,{key:0,items:e.breadcrumbs},null,8,["items"])):q("",!0),d("div",{class:J(["flex items-center",e.centered?"justify-center":""])},[Dt(t.$slots,"prefix"),d("h1",Xd,[e.icon?(y(),R("i",{key:0,class:J([[e.icon,e.iconColor],"mr-3"])},null,2)):q("",!0),d("span",Zd,k(e.title),1)])],2),e.subtitle||t.$slots.subtitle?(y(),R("p",ef,[Dt(t.$slots,"subtitle",{},()=>[ce(k(e.subtitle),1)])])):q("",!0),Dt(t.$slots,"extra")],2)]))}},tf={class:"card overflow-hidden p-0"},nf={class:"w-full"},sf={class:"bg-gray-50 dark:bg-gray-800/50"},rf={class:"divide-y divide-gray-200 dark:divide-gray-700"},of=["onClick"],lf={key:0,class:"text-center py-12"},af={class:"text-gray-500 dark:text-gray-400"},Ci={__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)=>(y(),R("div",tf,[d("table",nf,[d("thead",sf,[d("tr",null,[(y(!0),R(Q,null,xe(e.columns,r=>(y(),R("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])},k(r.label),3))),128))])]),d("tbody",rf,[(y(!0),R(Q,null,xe(e.items,(r,o)=>(y(),R("tr",{key:r.id||r.login||o,class:J([e.rowClass,{"cursor-pointer":e.clickableRows}]),onClick:i=>e.clickableRows&&n.$emit("row-click",r)},[(y(!0),R(Q,null,xe(e.columns,i=>(y(),R("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(k(r[i.key]),1)])],2))),128))],10,of))),128))])]),e.items.length?q("",!0):(y(),R("div",lf,[d("i",{class:J([e.emptyIcon,"text-4xl text-gray-300 dark:text-gray-600 mb-4"])},null,2),d("p",af,k(e.emptyMessage),1)]))]))}},cf={class:"font-medium text-gray-800 dark:text-white group-hover:text-primary-500 transition-colors"},uf={class:"text-sm"},df=["href"],ff={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)=>(y(),ie(P(Ce),{to:{name:"contributor",params:{login:e.contributor.login}},class:"flex items-center space-x-3"},{default:Z(()=>[N(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"]),d("div",null,[d("div",cf,k(e.contributor.name||e.contributor.login),1),d("div",uf,[e.showGithubLink?(y(),R("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(" @"+k(e.contributor.login)+" ",1),n[1]||(n[1]=d("i",{class:"fas fa-external-link-alt text-xs ml-1 opacity-50"},null,-1))],8,df)):(y(),R("span",ff," @"+k(e.contributor.login),1))])])]),_:1},8,["to"]))}},Ai={commit:["commit-1","commit-10","commit-50","commit-100","commit-500","commit-1000"],pr:["pr-1","pr-10","pr-25","pr-50","pr-100","pr-250"],review:["review-1","review-10","review-25","review-50","review-100","review-250"],comment:["comment-10","comment-50","comment-100","comment-250","comment-500"],"lines-added":["lines-added-100","lines-added-1000","lines-added-5000","lines-added-10000","lines-added-50000"],"lines-deleted":["lines-deleted-100","lines-deleted-500","lines-deleted-1000","lines-deleted-5000","lines-deleted-10000"],"review-time":["review-time-24h","review-time-4h","review-time-1h"],repo:["repo-2","repo-5","repo-10"],reviewees:["reviewees-3","reviewees-10","reviewees-25"],"large-pr":["large-pr-500","large-pr-1000","large-pr-5000"],"small-pr":["small-pr-5","small-pr-10","small-pr-25","small-pr-50"],"perfect-pr":["perfect-pr-1","perfect-pr-5","perfect-pr-10","perfect-pr-25"],active:["active-7","active-30","active-60","active-100"],streak:["streak-3","streak-7","streak-14","streak-30"],workweek:["workweek-3","workweek-5","workweek-10","workweek-20"],earlybird:["earlybird-10","earlybird-25","earlybird-50","earlybird-100"],nightowl:["nightowl-10","nightowl-25","nightowl-50","nightowl-100"],midnight:["midnight-5","midnight-10","midnight-25","midnight-50"],weekend:["weekend-5","weekend-10","weekend-25","weekend-50"],ooh:["ooh-10","ooh-25","ooh-50","ooh-100"],docs:["docs-100","docs-500","docs-1000","docs-2500","docs-5000"],"docs-del":["docs-del-50","docs-del-200","docs-del-500","docs-del-1000","docs-del-2500"]};function Ei(e){for(const[t,n]of Object.entries(Ai))if(n.includes(e))return t;return null}function mf(e){const t=Ei(e);return t?Ai[t].indexOf(e):-1}function Pi(e){if(!e||!e.length)return[];const t={};for(const n of e){const s=Ei(n);if(!s){t[n]={id:n,tier:-1};continue}const r=mf(n);(!t[s]||r>t[s].tier)&&(t[s]={id:n,tier:r})}return Object.values(t).sort((n,s)=>s.tier-n.tier).map(n=>n.id)}const hf={class:"py-8 px-4"},gf={class:"container mx-auto max-w-5xl"},pf={class:"flex flex-wrap gap-1.5 max-w-[280px]"},vf={key:0,class:"text-gray-400 text-sm"},yf={class:"hidden md:table-cell"},xf={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"},bf={key:1,class:"text-gray-400"},_f={class:"hidden sm:table-cell"},wf={key:0,class:"text-sm text-gray-600 dark:text-gray-300"},kf={key:1,class:"text-gray-400"},Rf={class:"text-lg font-bold gradient-text"},Cf={__name:"Leaderboard",setup(e){const t=Pe("globalData"),n=oe(()=>t.value?.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)=>(y(),R("div",null,[N(ts,{title:"Leaderboard",subtitle:"Top contributors ranked by their velocity score",icon:"fas fa-trophy","icon-color":"text-yellow-500",centered:""}),d("section",hf,[d("div",gf,[N(Ci,{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})=>[N(Ri,{rank:l.rank},null,8,["rank"])]),contributor:Z(({item:l})=>[N(Si,{contributor:l,"show-github-link":""},null,8,["contributor"])]),achievements:Z(({item:l})=>[d("div",pf,[(y(!0),R(Q,null,xe(P(Pi)(l.achievements),a=>(y(),ie(wn,{key:a,"achievement-id":a,size:"sm"},null,8,["achievement-id"]))),128)),(l.achievements||[]).length?q("",!0):(y(),R("span",vf,"-"))])]),team:Z(({item:l})=>[d("td",yf,[l.team?(y(),R("span",xf,k(l.team),1)):(y(),R("span",bf,"-"))])]),category:Z(({item:l})=>[d("td",_f,[l.top_category?(y(),R("span",wf,[d("i",{class:J([r(l.top_category),"mr-1"])},null,2),ce(" "+k(l.top_category),1)])):(y(),R("span",kf,"-"))])]),score:Z(({item:l})=>[d("span",Rf,k(P(z)(l.score)),1)]),_:1},8,["items"])])])]))}},Sf={class:"flex items-center justify-center min-h-[60vh]"},Af={class:"text-center"},Ef={class:"text-gray-600 dark:text-gray-400"},Zs={__name:"LoadingState",props:{message:{type:String,default:"Loading..."}},setup(e){return(t,n)=>(y(),R("div",Sf,[d("div",Af,[n[0]||(n[0]=d("i",{class:"fas fa-spinner fa-spin text-4xl text-primary-500 mb-4"},null,-1)),d("p",Ef,k(e.message),1)])]))}},Pf={class:"flex items-center justify-center min-h-[60vh]"},$f={class:"text-center"},Tf={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)=>(y(),R("div",Pf,[d("div",$f,[d("i",{class:J([e.icon,"text-4xl text-red-500 mb-4"])},null,2),d("p",Tf,k(e.message),1),Dt(t.$slots,"actions")])]))}},Of=["href"],If={key:0,class:"fas fa-external-link-alt text-xs ml-1 opacity-50"},$i={__name:"GithubLink",props:{url:{type:String,required:!0},label:{type:String,default:""},showIcon:{type:Boolean,default:!0}},setup(e){return(t,n)=>(y(),R("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(k(e.label),1)]),e.showIcon?(y(),R("i",If)):q("",!0)],8,Of))}},Nf={class:"py-8 px-4"},Mf={class:"container mx-auto"},Df={class:"grid grid-cols-2 md:grid-cols-4 gap-4"},Lf={class:"py-8 px-4"},jf={class:"container mx-auto"},Ff={class:"text-gray-800 dark:text-white"},Vf={class:"text-gray-800 dark:text-white"},Hf={class:"text-gray-800 dark:text-white"},Bf={class:"text-green-500"},Uf={class:"text-red-500"},Gf={class:"text-lg font-bold gradient-text"},qf={__name:"Repository",setup(e){const t=es(),n=ke(null),s=ke(!0),r=ke(null),o=oe(()=>[{label:"Dashboard",to:"/"},{label:"Repositories"},{label:n.value?.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)=>(y(),R("div",null,[s.value?(y(),ie(Zs,{key:0,message:"Loading repository..."})):r.value?(y(),ie(er,{key:1,message:r.value},null,8,["message"])):n.value?(y(),R(Q,{key:2},[N(ts,{title:n.value.name,icon:"fas fa-code-branch","icon-color":"text-accent-500",breadcrumbs:o.value},{subtitle:Z(()=>[N($i,{url:`https://github.com/${n.value.owner}/${n.value.name}`},{default:Z(()=>[ce(k(n.value.owner)+"/"+k(n.value.name),1)]),_:1},8,["url"])]),_:1},8,["title","breadcrumbs"]),d("section",Nf,[d("div",Mf,[d("div",Df,[N(_e,{value:n.value.total_commits,label:"Commits",icon:"fas fa-code-commit","icon-color":"text-green-500"},null,8,["value"]),N(_e,{value:n.value.total_prs,label:"Pull Requests",icon:"fas fa-code-pull-request","icon-color":"text-blue-500"},null,8,["value"]),N(_e,{value:n.value.total_reviews,label:"Reviews",icon:"fas fa-eye","icon-color":"text-purple-500"},null,8,["value"]),N(_e,{value:n.value.active_contributors,label:"Contributors",icon:"fas fa-users","icon-color":"text-orange-500"},null,8,["value"])])])]),d("section",Lf,[d("div",jf,[N(It,{title:"Contributors",icon:"fas fa-users","icon-color":"text-blue-500"}),N(Ci,{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})=>[N(Si,{contributor:u},null,8,["contributor"])]),commits:Z(({item:u})=>[d("span",Ff,k(P(z)(u.commit_count)),1)]),prs:Z(({item:u})=>[d("span",Vf,k(P(z)(u.prs_opened)),1)]),reviews:Z(({item:u})=>[d("span",Hf,k(P(z)(u.reviews_given)),1)]),lines:Z(({item:u})=>[d("span",Bf,"+"+k(P(z)(u.lines_added)),1),c[0]||(c[0]=d("span",{class:"text-gray-400 mx-1"},"/",-1)),d("span",Uf,"-"+k(P(z)(u.lines_deleted)),1)]),score:Z(({item:u})=>[d("span",Gf,k(P(z)(u.score?.total||0)),1)]),_:1},8,["items"])])])],64)):q("",!0)]))}},Wf={class:"flex items-center space-x-4 mb-4"},Kf={class:"font-semibold text-gray-800 dark:text-white"},zf={class:"text-sm text-gray-500 dark:text-gray-400"},Jf={class:"grid grid-cols-3 gap-4 text-center mb-4"},Qf={class:"text-lg font-semibold text-gray-800 dark:text-white"},Yf={class:"text-lg font-semibold text-gray-800 dark:text-white"},Xf={class:"text-lg font-semibold text-gray-800 dark:text-white"},Zf={class:"flex items-center justify-between pt-4 border-t border-gray-200 dark:border-gray-700"},e0={class:"text-xl font-bold gradient-text"},t0={key:0,class:"mt-4 flex flex-wrap gap-2"},n0={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"},s0={__name:"MemberCard",props:{member:{type:Object,required:!0},linkToProfile:{type:Boolean,default:!0}},setup(e){return(t,n)=>(y(),ie(jl(e.linkToProfile?P(Ce):"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(()=>[d("div",Wf,[N(Sn,{src:e.member.avatar_url,name:e.member.login,size:"lg"},null,8,["src","name"]),d("div",null,[d("h3",Kf,k(e.member.name||e.member.login),1),d("p",zf,"@"+k(e.member.login),1)])]),d("div",Jf,[d("div",null,[d("div",Qf,k(P(z)(e.member.commit_count)),1),n[0]||(n[0]=d("div",{class:"text-xs text-gray-500 dark:text-gray-400"},"Commits",-1))]),d("div",null,[d("div",Yf,k(P(z)(e.member.prs_opened)),1),n[1]||(n[1]=d("div",{class:"text-xs text-gray-500 dark:text-gray-400"},"PRs",-1))]),d("div",null,[d("div",Xf,k(P(z)(e.member.reviews_given)),1),n[2]||(n[2]=d("div",{class:"text-xs text-gray-500 dark:text-gray-400"},"Reviews",-1))])]),d("div",Zf,[n[3]||(n[3]=d("span",{class:"text-sm text-gray-500 dark:text-gray-400"},"Score",-1)),d("span",e0,k(P(z)(e.member.score?.total||0)),1)]),e.member.achievements?.length?(y(),R("div",t0,[(y(!0),R(Q,null,xe(e.member.achievements.slice(0,4),s=>(y(),ie(wn,{key:s,"achievement-id":s,size:"sm"},null,8,["achievement-id"]))),128)),e.member.achievements.length>4?(y(),R("span",n0," +"+k(e.member.achievements.length-4),1)):q("",!0)])):q("",!0)]),_:1},8,["to","class"]))}},r0={class:"py-8 px-4"},o0={class:"container mx-auto"},i0={class:"grid grid-cols-2 md:grid-cols-4 gap-4"},l0={class:"py-8 px-4"},a0={class:"container mx-auto"},c0={class:"grid md:grid-cols-2 lg:grid-cols-3 gap-6"},u0={__name:"Team",setup(e){const t=es(),n=Pe("globalData"),s=ke(null),r=ke(!0),o=ke(null),i=oe(()=>[{label:"Dashboard",to:"/"},{label:"Teams"},{label:s.value?.name||t.params.slug}]);function l(){r.value=!0,o.value=null;const c=(n.value?.teams||[]).find(u=>ki(u.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)=>(y(),R("div",null,[r.value?(y(),ie(Zs,{key:0,message:"Loading team..."})):o.value?(y(),ie(er,{key:1,message:o.value},null,8,["message"])):s.value?(y(),R(Q,{key:2},[N(ts,{title:s.value.name,breadcrumbs:i.value,subtitle:`${s.value.members?.length||0} team members`},{prefix:Z(()=>[d("div",{class:"w-4 h-4 rounded-full mr-4",style:St({backgroundColor:s.value.color||"#8b5cf6"})},null,4)]),_:1},8,["title","breadcrumbs","subtitle"]),d("section",r0,[d("div",o0,[d("div",i0,[N(_e,{value:s.value.total_score,label:"Total Score",icon:"fas fa-star","icon-color":"text-yellow-500"},null,8,["value"]),N(_e,{value:s.value.aggregated_metrics?.commit_count||0,label:"Commits",icon:"fas fa-code-commit","icon-color":"text-green-500"},null,8,["value"]),N(_e,{value:s.value.aggregated_metrics?.prs_merged||0,label:"PRs Merged",icon:"fas fa-code-merge","icon-color":"text-purple-500"},null,8,["value"]),N(_e,{value:s.value.aggregated_metrics?.reviews_given||0,label:"Reviews",icon:"fas fa-eye","icon-color":"text-blue-500"},null,8,["value"])])])]),d("section",l0,[d("div",a0,[N(It,{title:"Team Members",icon:"fas fa-users","icon-color":"text-blue-500"}),d("div",c0,[(y(!0),R(Q,null,xe(s.value.member_metrics,u=>(y(),ie(s0,{key:u.login,member:u},null,8,["member"]))),128))])])])],64)):q("",!0)]))}},d0={class:"space-y-3"},f0={class:"flex items-start justify-between mb-3"},m0={class:"flex items-center space-x-3"},h0={class:"text-sm font-semibold text-gray-800 dark:text-white"},g0={class:"flex items-center space-x-2 text-xs text-gray-500 dark:text-gray-400"},p0={class:"font-medium"},v0={class:"text-right"},y0={class:"text-gray-500 dark:text-gray-400 font-medium"},x0={class:"text-xs text-gray-500 dark:text-gray-400 mt-0.5"},b0={class:"h-2.5 bg-gray-200 dark:bg-gray-700 rounded-full overflow-hidden"},_0={class:"flex items-center justify-between mt-1.5"},w0={class:"flex items-center space-x-1"},k0=["title"],R0={key:0,class:"text-[10px] text-gray-400"},C0={key:0,class:"text-center text-xs text-gray-500 dark:text-gray-400 pt-2"},S0={key:1,class:"text-center py-8 text-gray-500 dark:text-gray-400"},A0={__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 m=n.length-1;m>=0;m--)if(u>=n[m])return m+1;return 1},l=u=>u.map(m=>({threshold:m.threshold,name:m.name,tier:i(m.threshold)})),a=oe(()=>{const u=new Set(t.contributor.achievements||[]),m=[];for(const g of o){const v=g.getValue(t.contributor);let S=null,I=null;const W=l(g.achievements);for(const Re of g.achievements)v>=Re.threshold?I=Re:S||(S=Re);if(!S)continue;const j=I?I.threshold:0,D=S.threshold-j,V=v-j,L=Math.min(100,Math.max(0,Math.round(V/D*100))),ee=i(S.threshold),ve=W.findIndex(Re=>Re.threshold===S.threshold),he=W.length;m.push({category:g.category,icon:g.icon,iconColor:g.iconColor,currentValue:v,target:S.threshold,name:S.name,id:S.id,progress:L,tier:ee,tierIndex:ve+1,totalTiers:he,allTiers:W,gradient:s[ee],progressColor:r[ee],isClose:L>=75,remaining:S.threshold-v,isEarned:u.has(S.id)})}return m.sort((g,v)=>v.progress-g.progress),m.slice(0,t.maxDisplay)}),c=oe(()=>{new Set(t.contributor.achievements||[]);let u=0;for(const m of o){const g=m.getValue(t.contributor);for(const v of m.achievements)g<v.threshold&&u++}return Math.max(0,u-t.maxDisplay)});return(u,m)=>(y(),R("div",d0,[(y(!0),R(Q,null,xe(a.value,g=>(y(),R("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"},[d("div",f0,[d("div",m0,[d("div",{class:J(["w-10 h-10 rounded-lg bg-gradient-to-br flex items-center justify-center shadow-md",g.gradient])},[d("i",{class:J(["fas text-white text-sm",g.icon])},null,2)],2),d("div",null,[d("div",h0,k(g.name),1),d("div",g0,[d("span",null,k(g.category),1),m[0]||(m[0]=d("span",{class:"text-gray-300 dark:text-gray-600"},"•",-1)),d("span",p0,"Tier "+k(g.tierIndex)+"/"+k(g.totalTiers),1)])])]),d("div",v0,[d("div",{class:J(["text-sm font-bold",g.isClose?"text-green-500":"text-gray-700 dark:text-gray-200"])},[ce(k(P(z)(g.currentValue))+" ",1),m[1]||(m[1]=d("span",{class:"text-gray-400 dark:text-gray-500 font-normal"},"/",-1)),d("span",y0,k(P(z)(g.target)),1)],2),d("div",x0,k(g.remaining>0?`${P(z)(g.remaining)} to go`:"Ready to claim!"),1)])]),d("div",b0,[d("div",{class:J(["h-full rounded-full transition-all duration-500 ease-out",g.progressColor]),style:St({width:`${g.progress}%`})},null,6)]),d("div",_0,[d("div",w0,[(y(!0),R(Q,null,xe(g.allTiers.slice(0,5),(v,S)=>(y(),R("span",{key:v.threshold,class:J(["w-1.5 h-1.5 rounded-full",S<g.tierIndex?"bg-green-500":"bg-gray-300 dark:bg-gray-600"]),title:`Tier ${S+1}: ${v.name} (${P(z)(v.threshold)})`},null,10,k0))),128)),g.totalTiers>5?(y(),R("span",R0,"+"+k(g.totalTiers-5),1)):q("",!0)]),d("span",{class:J(["text-xs font-semibold",g.isClose?"text-green-500":"text-gray-400 dark:text-gray-500"])},k(g.progress)+"% ",3)])]))),128)),c.value>0?(y(),R("div",C0," +"+k(c.value)+" more achievements to unlock ",1)):q("",!0),a.value.length?q("",!0):(y(),R("div",S0,[...m[2]||(m[2]=[d("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"},[d("i",{class:"fas fa-trophy text-2xl text-white"})],-1),d("p",{class:"font-medium text-gray-700 dark:text-gray-300"},"All achievements unlocked!",-1),d("p",{class:"text-sm mt-1"},"You're a legend!",-1)])]))]))}},E0={class:"py-12 px-4"},P0={class:"container mx-auto"},$0={class:"flex flex-col md:flex-row items-center md:items-start space-y-4 md:space-y-0 md:space-x-8"},T0={class:"text-center md:text-left"},O0={class:"text-4xl font-bold gradient-text"},I0={class:"text-xl text-gray-500 dark:text-gray-400 mt-1"},N0={class:"flex items-center justify-center md:justify-start space-x-4 mt-4"},M0={class:"score-card rounded-lg px-4 py-2"},D0={class:"text-2xl font-bold gradient-text ml-2"},L0={key:0,class:"text-sm text-gray-500 dark:text-gray-400"},j0={key:0},F0={key:0,class:"mt-6 flex flex-wrap justify-center md:justify-start gap-3"},V0={class:"py-8 px-4"},H0={class:"container mx-auto"},B0={class:"grid grid-cols-2 md:grid-cols-4 gap-4"},U0={class:"py-8 px-4"},G0={class:"container mx-auto"},q0={class:"grid md:grid-cols-2 gap-6"},W0={class:"card"},K0={class:"space-y-4"},z0={class:"flex items-center justify-between"},J0={class:"text-green-500 font-semibold"},Q0={class:"flex items-center justify-between"},Y0={class:"text-red-500 font-semibold"},X0={key:0,class:"flex items-center justify-between"},Z0={class:"text-emerald-500 font-semibold"},em={key:1,class:"flex items-center justify-between"},tm={class:"text-rose-500 font-semibold"},nm={key:2,class:"flex items-center justify-between"},sm={class:"text-cyan-500 font-semibold"},rm={key:3,class:"flex items-center justify-between"},om={class:"text-amber-500 font-semibold"},im={class:"flex items-center justify-between"},lm={class:"text-gray-800 dark:text-white font-semibold"},am={key:4,class:"flex items-center justify-between"},cm={class:"text-gray-800 dark:text-white font-semibold"},um={class:"card"},dm={class:"space-y-4"},fm={class:"flex items-center justify-between"},mm={class:"text-gray-800 dark:text-white font-semibold"},hm={class:"flex items-center justify-between"},gm={class:"text-green-500 font-semibold"},pm={class:"flex items-center justify-between"},vm={class:"text-orange-500 font-semibold"},ym={class:"flex items-center justify-between"},xm={class:"text-gray-800 dark:text-white font-semibold"},bm={key:0,class:"flex items-center justify-between"},_m={class:"text-gray-800 dark:text-white font-semibold"},wm={key:0,class:"py-8 px-4"},km={class:"container mx-auto"},Rm={class:"card"},Cm={class:"grid grid-cols-2 md:grid-cols-4 lg:grid-cols-7 gap-4"},Sm={class:"text-center p-4 rounded-lg bg-gray-50 dark:bg-gray-800/50"},Am={class:"text-2xl font-bold text-green-500"},Em={class:"text-xs text-gray-400 dark:text-gray-500"},Pm={class:"text-center p-4 rounded-lg bg-gray-50 dark:bg-gray-800/50"},$m={class:"text-2xl font-bold text-blue-500"},Tm={class:"text-xs text-gray-400 dark:text-gray-500"},Om={class:"text-center p-4 rounded-lg bg-gray-50 dark:bg-gray-800/50"},Im={class:"text-2xl font-bold text-purple-500"},Nm={class:"text-xs text-gray-400 dark:text-gray-500"},Mm={class:"text-center p-4 rounded-lg bg-gray-50 dark:bg-gray-800/50"},Dm={class:"text-2xl font-bold text-pink-500"},Lm={class:"text-xs text-gray-400 dark:text-gray-500"},jm={class:"text-center p-4 rounded-lg bg-gray-50 dark:bg-gray-800/50"},Fm={class:"text-2xl font-bold text-orange-500"},Vm={class:"text-center p-4 rounded-lg bg-gray-50 dark:bg-gray-800/50"},Hm={class:"text-2xl font-bold text-yellow-500"},Bm={class:"text-center p-4 rounded-lg bg-gray-50 dark:bg-gray-800/50"},Um={class:"text-2xl font-bold text-indigo-500"},Gm={class:"text-xs text-gray-400 dark:text-gray-500"},qm={class:"py-8 px-4"},Wm={class:"container mx-auto"},Km={class:"grid md:grid-cols-2 gap-6"},zm={key:0,class:"card"},Jm={class:"flex items-center justify-between mb-6"},Qm={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"},Ym={class:"grid grid-cols-4 sm:grid-cols-5 gap-3"},Xm={class:"card"},Zm={key:1,class:"py-8 px-4"},eh={class:"container mx-auto"},th={class:"flex flex-wrap gap-2"},nh={__name:"Contributor",setup(e){const t=es(),n=Pe("globalData"),s=ke(null),r=ke(!0),o=ke(null),i=oe(()=>[{label:"Dashboard",to:"/"},{label:"Contributors"},{label:s.value?.login||t.params.login}]);async function l(){r.value=!0,o.value=null;const a=t.params.login;try{const c=await fetch(`./data/contributors/${a}.json`);if(c.ok){const u=await c.json(),g=(n.value?.leaderboard||[]).find(v=>v.login===a);g&&(u.score={total:g.score,rank:g.rank,breakdown:u.score?.breakdown},u.achievements=g.achievements),s.value=u}else{let m=(n.value?.leaderboard||[]).find(g=>g.login===a);if(!m){const g=n.value?.repositories||[];for(const v of g){const S=v.contributors?.find(I=>I.login===a);if(S){m=S;break}}}m?s.value=m:o.value="Contributor not found"}}catch(c){o.value=`Failed to load contributor: ${c.message}`}r.value=!1}return jt(l),Ue(()=>t.params,l),Ue(n,l),(a,c)=>(y(),R("div",null,[r.value?(y(),ie(Zs,{key:0,message:"Loading contributor..."})):o.value?(y(),ie(er,{key:1,message:o.value},null,8,["message"])):s.value?(y(),R(Q,{key:2},[d("header",E0,[d("div",P0,[N(ts,{breadcrumbs:i.value,title:""},null,8,["breadcrumbs"]),d("div",$0,[N(Sn,{src:s.value.avatar_url,name:s.value.login,size:"2xl",class:"shadow-modern"},null,8,["src","name"]),d("div",T0,[d("h1",O0,k(s.value.name||s.value.login),1),d("p",I0,[N($i,{url:`https://github.com/${s.value.login}`},{default:Z(()=>[ce(" @"+k(s.value.login),1)]),_:1},8,["url"])]),d("div",N0,[d("div",M0,[c[0]||(c[0]=d("span",{class:"text-sm text-gray-500 dark:text-gray-400"},"Score:",-1)),d("span",D0,k(P(z)(s.value.score?.total||s.value.score||0)),1)]),s.value.score?.rank?(y(),R("div",L0,[ce(" Rank #"+k(s.value.score.rank)+" ",1),s.value.score?.percentile_rank?(y(),R("span",j0," (Top "+k(P(Iu)(s.value.score.percentile_rank))+") ",1)):q("",!0)])):q("",!0)]),s.value.achievements?.length?(y(),R("div",F0,[(y(!0),R(Q,null,xe(P(Pi)(s.value.achievements),u=>(y(),ie(wn,{key:u,"achievement-id":u,size:"lg","show-label":""},null,8,["achievement-id"]))),128))])):q("",!0)])])])]),d("section",V0,[d("div",H0,[d("div",B0,[N(_e,{value:s.value.commit_count||0,label:"Commits",icon:"fas fa-code-commit","icon-color":"text-green-500"},null,8,["value"]),N(_e,{value:s.value.prs_opened||0,label:"PRs Opened",icon:"fas fa-code-pull-request","icon-color":"text-blue-500"},null,8,["value"]),N(_e,{value:s.value.prs_merged||0,label:"PRs Merged",icon:"fas fa-code-merge","icon-color":"text-purple-500"},null,8,["value"]),N(_e,{value:s.value.reviews_given||0,label:"Reviews Given",icon:"fas fa-eye","icon-color":"text-orange-500"},null,8,["value"])])])]),d("section",U0,[d("div",G0,[d("div",q0,[d("div",W0,[c[9]||(c[9]=d("h3",{class:"text-lg font-semibold text-gray-800 dark:text-white mb-4"},[d("i",{class:"fas fa-code text-green-500 mr-2"}),ce("Code Contributions ")],-1)),d("div",K0,[d("div",z0,[c[1]||(c[1]=d("span",{class:"text-gray-600 dark:text-gray-300"},"Lines Added",-1)),d("span",J0," +"+k(P(z)(s.value.lines_added||0)),1)]),d("div",Q0,[c[2]||(c[2]=d("span",{class:"text-gray-600 dark:text-gray-300"},"Lines Deleted",-1)),d("span",Y0," -"+k(P(z)(s.value.lines_deleted||0)),1)]),s.value.meaningful_lines_added!==void 0?(y(),R("div",X0,[c[3]||(c[3]=d("span",{class:"text-gray-600 dark:text-gray-300"},"Meaningful Lines Added",-1)),d("span",Z0," +"+k(P(z)(s.value.meaningful_lines_added||0)),1)])):q("",!0),s.value.meaningful_lines_deleted!==void 0?(y(),R("div",em,[c[4]||(c[4]=d("span",{class:"text-gray-600 dark:text-gray-300"},"Meaningful Lines Deleted",-1)),d("span",tm," -"+k(P(z)(s.value.meaningful_lines_deleted||0)),1)])):q("",!0),s.value.comment_lines_added!==void 0?(y(),R("div",nm,[c[5]||(c[5]=d("span",{class:"text-gray-600 dark:text-gray-300"},"Comment Lines Added",-1)),d("span",sm," +"+k(P(z)(s.value.comment_lines_added||0)),1)])):q("",!0),s.value.comment_lines_deleted!==void 0?(y(),R("div",rm,[c[6]||(c[6]=d("span",{class:"text-gray-600 dark:text-gray-300"},"Comment Lines Deleted",-1)),d("span",om," -"+k(P(z)(s.value.comment_lines_deleted||0)),1)])):q("",!0),d("div",im,[c[7]||(c[7]=d("span",{class:"text-gray-600 dark:text-gray-300"},"Files Changed",-1)),d("span",lm,k(P(z)(s.value.files_changed||0)),1)]),s.value.avg_pr_size?(y(),R("div",am,[c[8]||(c[8]=d("span",{class:"text-gray-600 dark:text-gray-300"},"Avg PR Size",-1)),d("span",cm,k(P(z)(Math.round(s.value.avg_pr_size)))+" lines ",1)])):q("",!0)])]),d("div",um,[c[15]||(c[15]=d("h3",{class:"text-lg font-semibold text-gray-800 dark:text-white mb-4"},[d("i",{class:"fas fa-comments text-purple-500 mr-2"}),ce("Review Activity ")],-1)),d("div",dm,[d("div",fm,[c[10]||(c[10]=d("span",{class:"text-gray-600 dark:text-gray-300"},"Reviews Given",-1)),d("span",mm,k(P(z)(s.value.reviews_given||0)),1)]),d("div",hm,[c[11]||(c[11]=d("span",{class:"text-gray-600 dark:text-gray-300"},"Approvals",-1)),d("span",gm,k(P(z)(s.value.approvals_given||0)),1)]),d("div",pm,[c[12]||(c[12]=d("span",{class:"text-gray-600 dark:text-gray-300"},"Changes Requested",-1)),d("span",vm,k(P(z)(s.value.changes_requested||0)),1)]),d("div",ym,[c[13]||(c[13]=d("span",{class:"text-gray-600 dark:text-gray-300"},"Review Comments",-1)),d("span",xm,k(P(z)(s.value.review_comments||0)),1)]),s.value.avg_review_time_hours?(y(),R("div",bm,[c[14]||(c[14]=d("span",{class:"text-gray-600 dark:text-gray-300"},"Avg Review Time",-1)),d("span",_m,k(P(Ou)(s.value.avg_review_time_hours)),1)])):q("",!0)])])])])]),s.value.score?.breakdown?(y(),R("section",wm,[d("div",km,[d("div",Rm,[c[25]||(c[25]=d("h3",{class:"text-lg font-semibold text-gray-800 dark:text-white mb-4"},[d("i",{class:"fas fa-chart-pie gradient-text mr-2"}),ce("Score Breakdown ")],-1)),d("div",Cm,[d("div",Sm,[d("div",Am,k(P(z)(s.value.score.breakdown.commits||0)),1),c[16]||(c[16]=d("div",{class:"text-xs text-gray-500 dark:text-gray-400 mt-1"},"Commits",-1)),d("div",Em,k(s.value.commit_count||0)+" × 10 pts",1)]),d("div",Pm,[d("div",$m,k(P(z)(s.value.score.breakdown.prs||0)),1),c[17]||(c[17]=d("div",{class:"text-xs text-gray-500 dark:text-gray-400 mt-1"},"PRs",-1)),d("div",Tm,k(s.value.prs_opened||0)+" opened + "+k(s.value.prs_merged||0)+" merged",1)]),d("div",Om,[d("div",Im,k(P(z)(s.value.score.breakdown.reviews||0)),1),c[18]||(c[18]=d("div",{class:"text-xs text-gray-500 dark:text-gray-400 mt-1"},"Reviews",-1)),d("div",Nm,k(s.value.reviews_given||0)+" × 30 pts",1)]),d("div",Mm,[d("div",Dm,k(P(z)(s.value.score.breakdown.comments||0)),1),c[19]||(c[19]=d("div",{class:"text-xs text-gray-500 dark:text-gray-400 mt-1"},"Comments",-1)),d("div",Lm,k(s.value.review_comments||0)+" × 5 pts",1)]),d("div",jm,[d("div",Fm,k(P(z)(s.value.score.breakdown.line_changes||0)),1),c[20]||(c[20]=d("div",{class:"text-xs text-gray-500 dark:text-gray-400 mt-1"},"Line Changes",-1)),c[21]||(c[21]=d("div",{class:"text-xs text-gray-400 dark:text-gray-500"},"meaningful lines × 0.1 pts",-1))]),d("div",Vm,[d("div",Hm,k(P(z)(s.value.score.breakdown.response_bonus||0)),1),c[22]||(c[22]=d("div",{class:"text-xs text-gray-500 dark:text-gray-400 mt-1"},"Response Bonus",-1)),c[23]||(c[23]=d("div",{class:"text-xs text-gray-400 dark:text-gray-500"},"fast review bonus",-1))]),d("div",Bm,[d("div",Um,k(P(z)(s.value.score.breakdown.out_of_hours||0)),1),c[24]||(c[24]=d("div",{class:"text-xs text-gray-500 dark:text-gray-400 mt-1"},"Out of Hours",-1)),d("div",Gm,k(s.value.out_of_hours_count||0)+" × 2 pts",1)])])])])])):q("",!0),d("section",qm,[d("div",Wm,[d("div",Km,[s.value.achievements?.length?(y(),R("div",zm,[d("div",Jm,[c[26]||(c[26]=d("h3",{class:"text-lg font-semibold text-gray-800 dark:text-white"},[d("i",{class:"fas fa-award gradient-text mr-2"}),ce("Achievements Earned ")],-1)),d("span",Qm,k(s.value.achievements.length),1)]),d("div",Ym,[(y(!0),R(Q,null,xe(s.value.achievements,u=>(y(),R("div",{key:u,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"},[N(wn,{"achievement-id":u,size:"md","show-label":""},null,8,["achievement-id"])]))),128))])])):q("",!0),d("div",Xm,[c[27]||(c[27]=d("h3",{class:"text-lg font-semibold text-gray-800 dark:text-white mb-6"},[d("i",{class:"fas fa-chart-line text-primary-500 mr-2"}),ce("Next Achievements ")],-1)),N(A0,{contributor:s.value,"max-display":6},null,8,["contributor"])])])])]),s.value.repositories_contributed?.length?(y(),R("section",Zm,[d("div",eh,[N(It,{title:`Contributed to ${s.value.repositories_contributed.length} Repositories`,icon:"fas fa-folder-tree","icon-color":"text-blue-500"},null,8,["title"]),d("div",th,[(y(!0),R(Q,null,xe(s.value.repositories_contributed,u=>(y(),ie(P(Ce),{key:u,to:`/repos/${u}`,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[28]||(c[28]=d("i",{class:"fas fa-code-branch text-gray-400 mr-2"},null,-1)),ce(" "+k(u),1)]),_:2},1032,["to"]))),128))])])])):q("",!0)],64)):q("",!0)]))}},sh=[{path:"/",name:"dashboard",component:Kd},{path:"/leaderboard",name:"leaderboard",component:Cf},{path:"/repos/:owner/:name",name:"repository",component:qf},{path:"/teams/:slug",name:"team",component:u0},{path:"/contributors/:login",name:"contributor",component:nh}],rh=au({history:Hc(),routes:sh,scrollBehavior(){return{top:0}}}),Ti=ec(Tu);Ti.use(rh);Ti.mount("#app");