vendor: 10,870 bytes, line 1
1import{o as e,s as t}from"./BBIAI9wy.js";import{D as n,E as r,En as i,Ht as a,Kt as o,L as s,Lt as c,On as l,Qn as u,Rt as d,_ as f,b as p,bt as m,ct as h,er as g,et as _,ft as v,g as y,gt as b,it as x,k as S,mt as C,nr as w,o as T,qt as E,rt as ee,tr as te,tt as ne,v as D,vn as O,w as re,wt as k,xt as A,y as j}from"./DBq4UlV4.js";import{T as ie,n as ae}from"./DDzKkIae.js";import{Y as oe,it as se,rt as ce}from"./DL1hgTN2.js";import{t as M}from"./Bqa3kkUF.js";import{o as le}from"./3FtsECbs.js";import{t as ue}from"./CApSLFii.js";import{t as de}from"./D7cWE4pD.js";import{t as N}from"./DRmuhYbg.js";import{v as fe}from"./BuRK5XfC.js";import{m as pe,t as me}from"./CZZGf5zV.js";import{t as P}from"./23EHjX0X.js";import{a as F}from"./_jdc5lMN.js";import{t as he}from"./BiYzl5Mm.js";import{n as ge,r as _e,t as ve}from"./DBZYD4DO.js";import{t as ye}from"./CYc_Z0yP.js";import{a as I,t as L,u as be}from"./DMDtrnFO.js";import{t as xe}from"./DwUppD9h.js";import{r as R,t as z}from"./DGcMk5Ld.js";import{D as Se,O as Ce,d as we,i as Te,k as B,n as Ee,t as De}from"#entry";import{n as Oe,t as ke}from"./DUIRXsz9.js";import{t as Ae}from"./CmRNHWz4.js";import{t as je}from"./BMASbIAl.js";import{t as Me}from"./DxswRBYr.js";import{t as Ne}from"./HhxmoQZO.js";import{n as Pe}from"./DGFIZG4N.js";import{n as Fe,r as Ie,t as Le}from"./DNUa3Lov.js";function Re(e,t){return e-t*Math.floor(e/t)}var ze=1721426;function V(e,t,n,r){t=Be(e,t);let i=t-1,a=-2;return n<=2?a=0:H(t)&&(a=-1),1721425+365*i+Math.floor(i/4)-Math.floor(i/100)+Math.floor(i/400)+Math.floor((367*n-362)/12+a+r)}function H(e){return e%4==0&&(e%100!=0||e%400==0)}function Be(e,t){return e===`BC`?1-t:t}function Ve(e){let t=`AD`;return e<=0&&(t=`BC`,e=1-e),[t,e]}var He={standard:[31,28,31,30,31,30,31,31,30,31,30,31],leapyear:[31,29,31,30,31,30,31,31,30,31,30,31]},U=class{fromJulianDay(e){let t=e,n=t-ze,r=Math.floor(n/146097),i=Re(n,146097),a=Math.floor(i/36524),o=Re(i,36524),s=Math.floor(o/1461),c=Re(o,1461),l=Math.floor(c/365),[u,d]=Ve(r*400+a*100+s*4+l+ +(a!==4&&l!==4)),f=t-V(u,d,1,1),p=2;t<V(u,d,3,1)?p=0:H(d)&&(p=1);let m=Math.floor(((f+p)*12+373)/367);return new It(u,d,m,t-V(u,d,m,1)+1)}toJulianDay(e){return V(e.era,e.year,e.month,e.day)}getDaysInMonth(e){return He[H(e.year)?`leapyear`:`standard`][e.month-1]}getMonthsInYear(e){return 12}getDaysInYear(e){return H(e.year)?366:365}getMaximumMonthsInYear(){return 12}getMaximumDaysInMonth(){return 31}getYearsInEra(e){return 9999}getEras(){return[`BC`,`AD`]}isInverseEra(e){return e.era===`BC`}balanceDate(e){e.year<=0&&(e.era=e.era===`BC`?`AD`:`BC`,e.year=1-e.year)}constructor(){this.identifier=`gregory`}};function Ue(e,t){return e.isEqual?.(t)??t.isEqual?.(e)??e.identifier===t.identifier}function We(e){return K(Date.now(),e)}function Ge(e){return st(We(e))}function Ke(e,t){return e.calendar.toJulianDay(e)-t.calendar.toJulianDay(t)}function qe(e,t){return Je(e)-Je(t)}function Je(e){return e.hour*36e5+e.minute*6e4+e.second*1e3+e.millisecond}var Ye=null,Xe=!1;function Ze(){return Ye??=new Intl.DateTimeFormat().resolvedOptions().timeZone,Ye}function Qe(){return Xe}function W(e){return e=J(e,new U),$e(Be(e.era,e.year),e.month,e.day,e.hour,e.minute,e.second,e.millisecond)}function $e(e,t,n,r,i,a,o){let s=new Date;return s.setUTCHours(r,i,a,o),s.setUTCFullYear(e,t-1,n),s.getTime()}function et(e,t){if(t===`UTC`)return 0;if(e>0&&t===Ze()&&!Qe())return new Date(e).getTimezoneOffset()*-6e4;let{year:n,month:r,day:i,hour:a,minute:o,second:s}=nt(e,t);return $e(n,r,i,a,o,s,0)-Math.floor(e/1e3)*1e3}var tt=new Map;function nt(e,t){let n=tt.get(t);n||(n=new Intl.DateTimeFormat(`en-US`,{timeZone:t,hour12:!1,era:`short`,year:`numeric`,month:`numeric`,day:`numeric`,hour:`numeric`,minute:`numeric`,second:`numeric`}),tt.set(t,n));let r=n.formatToParts(new Date(e)),i={};for(let e of r)e.type!==`literal`&&(i[e.type]=e.value);return{year:i.era===`BC`||i.era===`B`?-i.year+1:+i.year,month:+i.month,day:+i.day,hour:i.hour===`24`?0:+i.hour,minute:+i.minute,second:+i.second}}var rt=864e5;function it(e,t,n,r){return(n===r?[n]:[n,r]).filter(n=>at(e,t,n))}function at(e,t,n){let r=nt(n,t);return e.year===r.year&&e.month===r.month&&e.day===r.day&&e.hour===r.hour&&e.minute===r.minute&&e.second===r.second}function G(e,t,n=`compatible`){let r=q(e);if(t===`UTC`)return W(r);if(t===Ze()&&n===`compatible`&&!Qe()){r=J(r,new U);let e=new Date,t=Be(r.era,r.year);return e.setFullYear(t,r.month-1,r.day),e.setHours(r.hour,r.minute,r.second,r.millisecond),e.getTime()}let i=W(r),a=et(i-rt,t),o=et(i+rt,t),s=it(r,t,i-a,i-o);if(s.length===1)return s[0];if(s.length>1)switch(n){case`compatible`:case`earlier`:return s[0];case`later`:return s[s.length-1];case`reject`:throw RangeError(`Multiple possible absolute times found`)}switch(n){case`earlier`:return Math.min(i-a,i-o);case`compatible`:case`later`:return Math.max(i-a,i-o);case`reject`:throw RangeError(`No such absolute time found`)}}function ot(e,t,n=`compatible`){return new Date(G(e,t,n))}function K(e,t){let n=et(e,t),r=new Date(e+n),i=r.getUTCFullYear(),a=r.getUTCMonth()+1,o=r.getUTCDate(),s=r.getUTCHours(),c=r.getUTCMinutes(),l=r.getUTCSeconds(),u=r.getUTCMilliseconds();return new Rt(i<1?`BC`:`AD`,i<1?-i+1:i,a,o,t,n,s,c,l,u)}function st(e){return new It(e.calendar,e.era,e.year,e.month,e.day)}function q(e,t){let n=0,r=0,i=0,a=0;if(`timeZone`in e)({hour:n,minute:r,second:i,millisecond:a}=e);else if(`hour`in e&&!t)return e;return t&&({hour:n,minute:r,second:i,millisecond:a}=t),new Lt(e.calendar,e.era,e.year,e.month,e.day,n,r,i,a)}function J(e,t){if(Ue(e.calendar,t))return e;let n=t.fromJulianDay(e.calendar.toJulianDay(e)),r=e.copy();return r.calendar=t,r.era=n.era,r.year=n.year,r.month=n.month,r.day=n.day,X(r),r}function ct(e,t,n){return e instanceof Rt?e.timeZone===t?e:ut(e,t):K(G(e,t,n),t)}function lt(e){let t=W(e)-e.offset;return new Date(t)}function ut(e,t){return J(K(W(e)-e.offset,t),e.calendar)}var Y=36e5;function dt(e,t){let n=e.copy(),r=`hour`in n?Ct(n,t):0;ft(n,t.years||0),n.calendar.balanceYearMonth&&n.calendar.balanceYearMonth(n,e),n.month+=t.months||0,pt(n),ht(n),n.day+=(t.weeks||0)*7,n.day+=t.days||0,n.day+=r,mt(n),n.calendar.balanceDate&&n.calendar.balanceDate(n),n.year<1&&(n.year=1,n.month=1,n.day=1);let i=n.calendar.getYearsInEra(n);if(n.year>i){let e=n.calendar.isInverseEra?.(n);n.year=i,n.month=e?1:n.calendar.getMonthsInYear(n),n.day=e?1:n.calendar.getDaysInMonth(n)}n.month<1&&(n.month=1,n.day=1);let a=n.calendar.getMonthsInYear(n);return n.month>a&&(n.month=a,n.day=n.calendar.getDaysInMonth(n)),n.day=Math.max(1,Math.min(n.calendar.getDaysInMonth(n),n.day)),n}function ft(e,t){e.calendar.isInverseEra?.(e)&&(t=-t),e.year+=t}function pt(e){for(;e.month<1;)ft(e,-1),e.month+=e.calendar.getMonthsInYear(e);let t=0;for(;e.month>(t=e.calendar.getMonthsInYear(e));)e.month-=t,ft(e,1)}function mt(e){for(;e.day<1;)e.month--,pt(e),e.day+=e.calendar.getDaysInMonth(e);for(;e.day>e.calendar.getDaysInMonth(e);)e.day-=e.calendar.getDaysInMonth(e),e.month++,pt(e)}function ht(e){e.month=Math.max(1,Math.min(e.calendar.getMonthsInYear(e),e.month)),e.day=Math.max(1,Math.min(e.calendar.getDaysInMonth(e),e.day))}function X(e){e.calendar.constrainDate&&e.calendar.constrainDate(e),e.year=Math.max(1,Math.min(e.calendar.getYearsInEra(e),e.year)),ht(e)}function gt(e){let t={};for(let n in e)typeof e[n]==`number`&&(t[n]=-e[n]);return t}function _t(e,t){return dt(e,gt(t))}function vt(e,t){let n=e.copy();return t.era!=null&&(n.era=t.era),t.year!=null&&(n.year=t.year),t.month!=null&&(n.month=t.month),t.day!=null&&(n.day=t.day),X(n),n}function yt(e,t){let n=e.copy();return t.hour!=null&&(n.hour=t.hour),t.minute!=null&&(n.minute=t.minute),t.second!=null&&(n.second=t.second),t.millisecond!=null&&(n.millisecond=t.millisecond),xt(n),n}function bt(e){e.second+=Math.floor(e.millisecond/1e3),e.millisecond=St(e.millisecond,1e3),e.minute+=Math.floor(e.second/60),e.second=St(e.second,60),e.hour+=Math.floor(e.minute/60),e.minute=St(e.minute,60);let t=Math.floor(e.hour/24);return e.hour=St(e.hour,24),t}function xt(e){e.millisecond=Math.max(0,Math.min(e.millisecond,999)),e.second=Math.max(0,Math.min(e.second,59)),e.minute=Math.max(0,Math.min(e.minute,59)),e.hour=Math.max(0,Math.min(e.hour,23))}function St(e,t){let n=e%t;return n<0&&(n+=t),n}function Ct(e,t){return e.hour+=t.hours||0,e.minute+=t.minutes||0,e.second+=t.seconds||0,e.millisecond+=t.milliseconds||0,bt(e)}function wt(e,t,n,r){let i=e.copy();switch(t){case`era`:{let t=e.calendar.getEras(),a=t.indexOf(e.era);if(a<0)throw Error(`Invalid era: `+e.era);a=Z(a,n,0,t.length-1,r?.round),i.era=t[a],X(i);break}case`year`:i.calendar.isInverseEra?.(i)&&(n=-n),i.year=Z(e.year,n,-1/0,9999,r?.round),i.year===-1/0&&(i.year=1),i.calendar.balanceYearMonth&&i.calendar.balanceYearMonth(i,e);break;case`month`:i.month=Z(e.month,n,1,e.calendar.getMonthsInYear(e),r?.round);break;case`day`:i.day=Z(e.day,n,1,e.calendar.getDaysInMonth(e),r?.round);break;default:throw Error(`Unsupported field `+t)}return e.calendar.balanceDate&&e.calendar.balanceDate(i),X(i),i}function Tt(e,t,n,r){let i=e.copy();switch(t){case`hour`:{let t=e.hour,a=0,o=23;if(r?.hourCycle===12){let e=t>=12;a=e?12:0,o=e?23:11}i.hour=Z(t,n,a,o,r?.round);break}case`minute`:i.minute=Z(e.minute,n,0,59,r?.round);break;case`second`:i.second=Z(e.second,n,0,59,r?.round);break;case`millisecond`:i.millisecond=Z(e.millisecond,n,0,999,r?.round);break;default:throw Error(`Unsupported field `+t)}return i}function Z(e,t,n,r,i=!1){if(i){e+=Math.sign(t),e<n&&(e=r);let i=Math.abs(t);e=t>0?Math.ceil(e/i)*i:Math.floor(e/i)*i,e>r&&(e=n)}else e+=t,e<n?e=r-(n-e-1):e>r&&(e=n+(e-r-1));return e}function Et(e,t){let n;return n=t.years!=null&&t.years!==0||t.months!=null&&t.months!==0||t.weeks!=null&&t.weeks!==0||t.days!=null&&t.days!==0?G(dt(q(e),{years:t.years,months:t.months,weeks:t.weeks,days:t.days}),e.timeZone):W(e)-e.offset,n+=t.milliseconds||0,n+=(t.seconds||0)*1e3,n+=(t.minutes||0)*6e4,n+=(t.hours||0)*36e5,J(K(n,e.timeZone),e.calendar)}function Dt(e,t){return Et(e,gt(t))}function Ot(e,t,n,r){switch(t){case`hour`:{let t=0,i=23;if(r?.hourCycle===12){let n=e.hour>=12;t=n?12:0,i=n?23:11}let a=q(e),o=J(yt(a,{hour:t}),new U),s=[G(o,e.timeZone,`earlier`),G(o,e.timeZone,`later`)].filter(t=>K(t,e.timeZone).day===o.day)[0],c=J(yt(a,{hour:i}),new U),l=[G(c,e.timeZone,`earlier`),G(c,e.timeZone,`later`)].filter(t=>K(t,e.timeZone).day===c.day).pop(),u=W(e)-e.offset,d=Math.floor(u/Y),f=u%Y;return u=Z(d,n,Math.floor(s/Y),Math.floor(l/Y),r?.round)*Y+f,J(K(u,e.timeZone),e.calendar)}case`minute`:case`second`:case`millisecond`:return Tt(e,t,n,r);case`era`:case`year`:case`month`:case`day`:return J(K(G(wt(q(e),t,n,r),e.timeZone),e.timeZone),e.calendar);default:throw Error(`Unsupported field `+t)}}function kt(e,t,n){let r=q(e),i=yt(vt(r,t),t);return i.compare(r)===0?e:J(K(G(i,e.timeZone,n),e.timeZone),e.calendar)}function At(e){return`${String(e.hour).padStart(2,`0`)}
1:${String(e.minute).padStart(2,`0`)}:${String(e.second).padStart(2,`0`)}${e.millisecond?String(e.millisecond/1e3).slice(1):``}`}function jt(e){let t=J(e,new U),n;return n=t.era===`BC`?t.year===1?`0000`:`-`+String(Math.abs(1-t.year)).padStart(6,`00`):String(t.year).padStart(4,`0`),`${n}-${String(t.month).padStart(2,`0`)}-${String(t.day).padStart(2,`0`)}`}function Mt(e){return`${jt(e)}T${At(e)}`}function Nt(e){let t=Math.sign(e)<0?`-`:`+`;e=Math.abs(e);let n=Math.floor(e/36e5),r=Math.floor(e%36e5/6e4),i=Math.floor(e%36e5%6e4/1e3),a=`${t}${String(n).padStart(2,`0`)}:${String(r).padStart(2,`0`)}`;return i!==0&&(a+=`:${String(i).padStart(2,`0`)}`),a}function Pt(e){return`${Mt(e)}${Nt(e.offset)}[${e.timeZone}]`}function Ft(e){let t=typeof e[0]==`object`?e.shift():new U,n;if(typeof e[0]==`string`)n=e.shift();else{let e=t.getEras();n=e[e.length-1]}let r=e.shift(),i=e.shift(),a=e.shift();return[t,n,r,i,a]}var It=class e{constructor(...e){let[t,n,r,i,a]=Ft(e);this.calendar=t,this.era=n,this.year=r,this.month=i,this.day=a,X(this)}copy(){return this.era?new e(this.calendar,this.era,this.year,this.month,this.day):new e(this.calendar,this.year,this.month,this.day)}add(e){return dt(this,e)}subtract(e){return _t(this,e)}set(e){return vt(this,e)}cycle(e,t,n){return wt(this,e,t,n)}toDate(e){return ot(this,e)}toString(){return jt(this)}compare(e){return Ke(this,e)}},Lt=class e{constructor(...e){let[t,n,r,i,a]=Ft(e);this.calendar=t,this.era=n,this.year=r,this.month=i,this.day=a,this.hour=e.shift()||0,this.minute=e.shift()||0,this.second=e.shift()||0,this.millisecond=e.shift()||0,X(this)}copy(){return this.era?new e(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new e(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(e){return dt(this,e)}subtract(e){return _t(this,e)}set(e){return vt(yt(this,e),e)}cycle(e,t,n){switch(e){case`era`:case`year`:case`month`:case`day`:return wt(this,e,t,n);default:return Tt(this,e,t,n)}}toDate(e,t){return ot(this,e,t)}toString(){return Mt(this)}compare(e){let t=Ke(this,e);return t===0?qe(this,q(e)):t}},Rt=class e{constructor(...e){let[t,n,r,i,a]=Ft(e),o=e.shift(),s=e.shift();this.calendar=t,this.era=n,this.year=r,this.month=i,this.day=a,this.timeZone=o,this.offset=s,this.hour=e.shift()||0,this.minute=e.shift()||0,this.second=e.shift()||0,this.millisecond=e.shift()||0,X(this)}copy(){return this.era?new e(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new e(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(e){return Et(this,e)}subtract(e){return Dt(this,e)}set(e,t){return kt(this,e,t)}cycle(e,t,n){return Ot(this,e,t,n)}toDate(){return lt(this)}toString(){return Pt(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(e){return this.toDate().getTime()-ct(e,this.timeZone).toDate().getTime()}},zt=new Map,Q=class{constructor(e,t={}){this.formatter=Vt(e,t),this.options=t}format(e){return this.formatter.format(e)}formatToParts(e){return this.formatter.formatToParts(e)}formatRange(e,t){if(typeof this.formatter.formatRange==`function`)return this.formatter.formatRange(e,t);if(t<e)throw RangeError(`End date must be >= start date`);return`${this.formatter.format(e)} \u{2013} ${this.formatter.format(t)}`}formatRangeToParts(e,t){if(typeof this.formatter.formatRangeToParts==`function`)return this.formatter.formatRangeToParts(e,t);if(t<e)throw RangeError(`End date must be >= start date`);let n=this.formatter.formatToParts(e),r=this.formatter.formatToParts(t);return[...n.map(e=>({...e,source:`startRange`})),{type:`literal`,value:` â `,source:`shared`},...r.map(e=>({...e,source:`endRange`}))]}resolvedOptions(){let e=this.formatter.resolvedOptions();return Gt()&&(this.resolvedHourCycle||=Kt(e.locale,this.options),e.hourCycle=this.resolvedHourCycle,e.hour12=this.resolvedHourCycle===`h11`||this.resolvedHourCycle===`h12`),e.calendar===`ethiopic-amete-alem`&&(e.calendar=`ethioaa`),e}},Bt={true:{ja:`h11`},false:{}};
1function Vt(e,t={}){if(typeof t.hour12==`boolean`&&Ut()){t={...t};let n=Bt[String(t.hour12)][e.split(`-`)[0]],r=t.hour12?`h12`:`h23`;t.hourCycle=n??r,delete t.hour12}let n=e+(t?Object.entries(t).sort((e,t)=>e[0]<t[0]?-1:1).join():``);if(zt.has(n))return zt.get(n);let r=new Intl.DateTimeFormat(e,t);return zt.set(n,r),r}var Ht=null;function Ut(){return Ht??=new Intl.DateTimeFormat(`en-US`,{hour:`numeric`,hour12:!1}).format(new Date(2020,2,3,0))===`24`,Ht}var Wt=null;function Gt(){return Wt??=new Intl.DateTimeFormat(`fr`,{hour:`numeric`,hour12:!1}).resolvedOptions().hourCycle===`h12`,Wt}function Kt(e,t){if(!t.timeStyle&&!t.hour)return;e=e.replace(/(-u-)?-nu-[a-zA-Z0-9]+/,``),e+=(e.includes(`-u-`)?``:`-u`)+`-nu-latn`;let n=Vt(e,{...t,timeZone:void 0}),r=parseInt(n.formatToParts(new Date(2020,2,3,0)).find(e=>e.type===`hour`).value,10),i=parseInt(n.formatToParts(new Date(2020,2,3,23)).find(e=>e.type===`hour`).value,10);if(r===0&&i===23)return`h23`;if(r===24&&i===23)return`h24`;if(r===0&&i===11)return`h11`;if(r===12&&i===11)return`h12`;throw Error(`Unexpected hour cycle result`)}function $(e,t=Ze()){return Jt(e)?e.toDate():e.toDate(t)}function qt(e){return e instanceof Lt}function Jt(e){return e instanceof Rt}function Yt(e){return qt(e)||Jt(e)}function Xt(e,t={}){let n=O(e);function r(){return n.value}function i(e){n.value=e}function a(e,r){return new Q(n.value,{...t,...r}).format(e)}function o(e,t=!0){return Yt(e)&&t?a($(e),{dateStyle:`long`,timeStyle:`long`}):a($(e),{dateStyle:`long`})}function s(e,r={}){return new Q(n.value,{...t,month:`long`,year:`numeric`,...r}).format(e)}function c(e,r={}){return new Q(n.value,{...t,month:`long`,...r}).format(e)}function l(){let e=Ge(Ze());return[1,2,3,4,5,6,7,8,9,10,11,12].map(t=>({label:c($(e.set({month:t}))),value:t}))}function u(e,r={}){return new Q(n.value,{...t,year:`numeric`,...r}).format(e)}function d(e,r){return Jt(e)?new Q(n.value,{...t,...r,timeZone:e.timeZone}).formatToParts($(e)):new Q(n.value,{...t,...r}).formatToParts($(e))}function f(e,r=`narrow`){return new Q(n.value,{...t,weekday:r}).format(e)}function p(e){let r=new Q(n.value,{...t,hour:`numeric`,minute:`numeric`}).formatToParts(e).find(e=>e.type===`dayPeriod`)?.value;return r===`PM`||r===`pm`||r===`p.m.`?`PM`:`AM`}let m={year:`numeric`,month:`numeric`,day:`numeric`,hour:`numeric`,minute:`numeric`,second:`numeric`};function h(e,t,n={}){let r=d(e,{...m,...n}).find(e=>e.type===t);return r?r.value:``}return{setLocale:i,getLocale:r,fullMonth:c,fullYear:u,fullMonthAndYear:s,toParts:d,custom:a,part:h,dayPeriod:p,selectedDate:o,dayOfWeek:f,getMonths:l}}var Zt=Object.assign(S({__name:`CategoriesBadges`,props:{categoriesStems:{},size:{default:`md`},disabled:{type:Boolean,default:!1}},setup(e){let t=e,n=t.categoriesStems?Ne(t.categoriesStems):Ne();return(t,i)=>{let a=Te;return C(!0),p(T,null,m(l(n),t=>(C(),D(a,{key:t.path,to:e.disabled?void 0:t.path,variant:`subtle`,color:`neutral`,size:e.size},{default:E(()=>[r(w(t.title),1)]),_:2},1032,[`to`,`size`]))),128)}}}),{__name:`CategoriesBadges`}),Qt={slots:{root:`inline-flex flex-row-reverse justify-end`,base:`relative rounded-full ring-bg first:me-0`},variants:{size:{"3xs":{base:`ring -me-0.5`},"2xs":{base:`ring -me-0.5`},xs:{base:`ring -me-0.5`},sm:{base:`ring-2 -me-1.5`},md:{base:`ring-2 -me-1.5`},lg:{base:`ring-2 -me-1.5`},xl:{base:`ring-3 -me-2`},"2xl":{base:`ring-3 -me-2`},"3xl":{base:`ring-3 -me-2`}},color:{primary:``,secondary:``,success:``,info:``,warning:``,error:``,neutral:``}},defaultVariants:{size:`md`,color:`neutral`}},$t={__name:`UAvatarGroup`,props:{as:{type:null,required:!1},size:{type:null,required:!1},color:{type:null,required:!1},max:{type:[Number,String],required:!1},class:{type:null,required:!1},ui:{type:Object,required:!1}},setup(e){let t=e,n=c(),r=N(`avatarGroup`,t),i=M(),a=y(()=>L({extend:Qt,...i.ui?.avatarGroup||{}})({size:r.size,color:r.color})),o=y(()=>typeof r.max==`string`?Number.parseInt(r.max,10):r.max),s=y(()=>{let e=n.default?.();return e?.length&&(e=e.flatMap(e=>typeof e.type==`symbol`?typeof e.children==`string`?void 0:e.children:e).filter(Boolean)),e||[]}),d=y(()=>s.value.length?!o.value||o.value<=0?[...s.value].reverse():[...s.value].slice(0,o.value).reverse():[]),f=y(()=>s.value.length?s.value.length-d.value.length:0);return b(R,y(()=>({size:r.size,color:r.color}))),(e,t)=>(C(),D(l(P),{as:l(r).as,"data-slot":`root`,class:u(a.value.root({class:[l(r).ui?.root,l(r).class]}))},{default:E(()=>[f.value>0?(C(),D(z,{key:0,text:`+${f.value}`,"data-slot":`base`,class:u(a.value.base({class:l(r).ui?.base}))},null,8,[`text`,`class`])):j(``,!0),(C(!0),p(T,null,m(d.value,(e,t)=>(C(),D(k(e),{key:t,"data-slot":`base`,class:u(a.value.base({class:l(r).ui?.base}))},null,8,[`class`]))),128))]),_:1},8,[`as`,`class`]))}},en={slots:{root:`relative group/blog-post flex flex-col rounded-lg overflow-hidden`,header:`relative overflow-hidden aspect-[16/9] w-full pointer-events-none`,body:`min-w-0 flex-1 flex flex-col`,footer
1:``,image:`object-cover object-top w-full h-full`,title:`text-xl text-pretty font-semibold text-highlighted`,description:`mt-1 text-base text-pretty`,authors:`pt-4 mt-auto flex flex-wrap gap-x-3 gap-y-1.5`,avatar:``,meta:`flex items-center gap-2 mb-2`,date:`text-sm`,badge:``},variants:{orientation:{horizontal:{root:`lg:grid lg:grid-cols-2 lg:items-center gap-x-8`,body:`justify-center p-4 sm:p-6 lg:px-0`},vertical:{root:`flex flex-col`,body:`p-4 sm:p-6`}},variant:{outline:{root:`bg-default ring ring-default`,date:`text-toned`,description:`text-muted`},soft:{root:`bg-elevated/50`,date:`text-muted`,description:`text-toned`},subtle:{root:`bg-elevated/50 ring ring-default`,date:`text-muted`,description:`text-toned`},ghost:{date:`text-toned`,description:`text-muted`,header:`shadow-lg rounded-lg`},naked:{root:`p-0 sm:p-0`,date:`text-toned`,description:`text-muted`,header:`shadow-lg rounded-lg`}},to:{true:{root:[`outline-primary/25 has-[>a:focus-visible]:outline-3`,`transition`],image:`transform transition-transform ease-out motion-reduce:transition-none group-hover/blog-post:scale-110`,avatar:`inline-flex transform transition-transform ease-out motion-reduce:transition-none hover:scale-115 rounded-full outline-primary/25 focus-visible:outline-3`}},image:{true:``}},compoundVariants:[{variant:`outline`,to:!0,class:{root:`hover:bg-elevated/50`}},{variant:`soft`,to:!0,class:{root:`hover:bg-elevated`}},{variant:`subtle`,to:!0,class:{root:`hover:bg-elevated hover:ring-accented`}},{variant:[`outline`,`subtle`],to:!0,class:{root:`has-[>a:focus-visible]:ring-primary`}},{variant:`ghost`,to:!0,class:{root:`hover:bg-elevated/50`,header:[`group-hover/blog-post:shadow-none`,`transition-[box-shadow,border-radius] ease-out`]}},{variant:`ghost`,to:!0,orientation:`vertical`,class:{header:`group-hover/blog-post:rounded-b-none`}},{variant:`ghost`,to:!0,orientation:`horizontal`,class:{header:`group-hover/blog-post:rounded-e-none`}},{orientation:`vertical`,image:!1,variant:`naked`,class:{body:`p-0 sm:p-0`}}],defaultVariants:{variant:`outline`}},tn=[`datetime`],nn=Object.assign({inheritAttrs:!1},{__name:`UBlogPost`,props:{as:{type:null,required:!1,default:`article`},title:{type:String,required:!1},description:{type:String,required:!1},date:{type:[String,Date],required:!1},badge:{type:[String,Object],required:!1},authors:{type:Array,required:!1},image:{type:[String,Object],required:!1},orientation:{type:null,required:!1,default:`vertical`},variant:{type:null,required:!1},to:{type:null,required:!1},target:{type:[String,Object,null],required:!1},onClick:{type:Function,required:!1},class:{type:null,required:!1},ui:{type:Object,required:!1}},setup(e){let t=e,i=c(),a=N(`blogPost`,t),{locale:o}=we(),s=M(),d=Xt(o.value.code),h=je(),v=y(()=>L({extend:en,...s.ui?.blogPost||{}})({orientation:a.orientation,variant:a.variant,image:!!a.image,to:!!a.to||!!a.onClick})),b=y(()=>{if(a.date)try{return d.custom(new Date(a.date),{dateStyle:`medium`,timeZone:`UTC`})}catch{return a.date}}),x=y(()=>{if(a.date)try{return new Date(a.date).toISOString()}catch{return}}),S=y(()=>(i.title&&I(i.title())||a.title||`Post link`).trim());return(e,t)=>(C(),D(l(P),_({as:l(a).as},l(a).to?{}:e.$attrs,{"data-orientation":l(a).orientation,"data-slot":e.$attrs[`data-slot`]??`root`,class:v.value.root({class:[l(a).ui?.root,l(a).class]}),onClick:l(a).onClick}),{default:E(()=>[l(a).to?(C(),D(de,_({key:0,"aria-label":S.value},{to:l(a).to,target:l(a).target,...e.$attrs,"data-slot":void 0},{class:l(h)(`focus:outline-none absolute inset-0`),raw:``}),null,16,[`aria-label`,`class`])):j(``,!0),l(a).image||i.header?(C(),p(`div`,{key:1,"data-slot":`header`,class:u(v.value.header({class:l(a).ui?.header}))},[A(e.$slots,`header`,{ui:v.value},()=>[(C(),D(k(l(ue)),_(typeof l(a).image==`string`?{src:l(a).image,alt:l(a).title}:{alt:l(a).title,...l(a).image},{"data-slot":`image`,class:v.value.image({class:l(a).ui?.image,to:!!l(a).to})}),null,16,[`class`]))])],2)):j(``,!0),f(`div`,{"data-slot":`body`,class:u(v.value.body({class:l(a).ui?.body}))},[A(e.$slots,`body`,{},()=>[b.value||i.date||l(a).badge||i.badge?(C(),p(`div`,{key:0,"data-slot":`meta`,class:u(v.value.meta({class:l(a).ui?.meta}))},[A(e.$slots,`badge`,{},()=>[l(a).badge?(C(),D(Ae,_({key:0,color:`neutral`,variant:`subtle`},typeof l(a).badge==`string`?{label:l(a).badge}:l(a).badge,{"data-slot":`badge`,class:v.value.badge({class:l(a).ui?.badge})}),null,16,[`class`])):j(``,!0)]),b.value||i.date?(C(),p(`time`,{key:0,datetime:x.value,"data-slot":`date`,class:u(v.value.date({class:l(a).ui?.date}))},[A(e.$slots,`date`,{},()=>[r(w(b.value),1)])],10,tn)):j(``,!0)],2)):j(``,!0),l(a).title||i.title?(C(),p(`h2`,{key:1,"data-slot":`title`,class:u(v.value.title({class:l(a).ui?.title}))},[A(e.$slots,`title`,{},()=>[r(w(l(a).title),1)])],2)):j(``,!0),l(a).description||i.description?(C(),p(`div`,{key:2,"data-slot":`description`,class:u(v.value.description({class:l(a).ui?.description}))},[A(e.$slots,`description`,{},()=>[r(w(l(a).description),1)])],2)):j(``,!0),l(a).authors?.length||i.authors?(C(),p(`div`,{key:3,"data-slot":`authors`,class:u(v.value.authors({class:l(a).ui?.authors}))},[A(e.$slots,`authors`,{ui:v.value},()=>[l(a).authors?.length?(C(),p(T,{key:0},[l(a).authors.length>1?(C(),D($t,{key:0},{default:E(()=>[(C(!0),p(T,null,m(l(a).authors,(e,t)=>(C(),D(de,{key:t,to:e.to,target:e.target,"data-slot":`avatar`,class:u(v.value.avatar({class:l(a).ui?.avatar,to:!!e.to})),raw:``},{default:E(()=>[n(z,_({ref_for:!0},e.avatar),null,16)]),_:2},1032,[`to`,`target`,`class`]))),128))]),_:1})):(C(),D(Pe,g(_({key:1},l(a).authors[0])),null,16))],64)):j(``,!0)])],2)):j(``,!0)])],2),i.footer?(C(),p(`div`,{key:2,"data-slot":`footer`,class:u(v.value.footer({class:l(a).ui?.footer}))},[A(e.$slots,`footer`)],2)):j(``,!0)]),_:3},16,[`as`,`data-orientation`,`data-slot`,`class`,`onClick`]))}}),rn={base:`flex flex-col gap-8 lg:gap-y-16`,variants:{orientation:{horizontal:`sm:grid sm:grid-cols-2 lg:grid-cols-3`,vertical:``}}},an={__name:`UBlogPosts`,props:{as:{type:null,required:!1},posts:{type:Array,required:!1},orientation:{type:null,required:!1,default:`horizontal`},class:{type:null,required:!1},ui:{type:Object,required:!1}},setup(e){let t=e,n=c(),r=N(`blogPosts`,t),i=()=>be(n,[`default`]),a=M(),o=y(()=>L({extend:rn,...a.ui?.blogPosts||{}}));return(e,t)=>(C(),D(l(P),{as:l(r).as,"data-orientation":l(r).orientation,class:u(o.value({orientation:l(r).orientation,class:[l(r).ui?.base,l(r).class]}))},{default:E(()=>[A(e.$slots,`default`,{},()=>[(C(!0),p(T,null,m(l(r).posts,(t,n)=>(C(),D(nn,_({key:n,orientation:l(r).orientation===`vertical`?`horizontal`:`vertical`},{ref_for:!0},t),re({_:2},[m(i(),(n,r)=>({name:r,fn:E(n=>[A(e.$slots,r,_({ref_for:!0},n,{post:t}))])}))]),1040,[`orientation`]))),128))])]),_:3},8,[`as`,`data-orientation`,`class`]))}},on={class:`max-w-3xl mx-auto py-8 px-4`},sn={class:`mb-8`},cn={class:`text-4xl font-bold`},ln={key:1,class:`flex flex-wrap gap-2 my-10`},un={key:0,class:`mb-8 prose dark:prose-invert`},dn={key:2,class:`text-center text-gray-500 py-8`},fn=Object.assign(S({__name:`BlogCategory`,props:{category:{}},async setup(e){let i,a,s=e;t();let c=y(()=>s.category?.path?.split(`/`).pop()),{data:u}=([i,a]=o(()=>le(()=>`blog-articles-list-${c.value||`all`}`,async()=>{let e=Me(`blogArticles`).order(`id`,`DESC`).select(`path`,`title`,`description`,`thumbnail`,`published`,`categories`);return c.value&&(e=e.where(`categories`,`LIKE`,`%${c.value}%`)),e.all()},`$ZMVhLHbACd`)),i=await i,a(),i),d=y(()=>s.category?.title||`Blog`),h=y(()=>
1{if(u.value?.length)return u.value.map(e=>e.title).join(`, `)});return(t,i)=>{let a=B,o=Ce,s=Se,g=Te,_=Zt,v=Oe,y=nn,b=an;return C(),p(T,null,[n(s,null,{default:E(()=>[n(a,null,{default:E(()=>[r(w(l(d)),1)]),_:1}),n(o,{name:`description`,content:l(h)},null,8,[`content`]),n(o,{property:`og:title`,content:l(d)},null,8,[`content`]),n(o,{property:`og:description`,content:l(h)},null,8,[`content`]),n(o,{property:`og:type`,content:`website`})]),_:1}),f(`div`,on,[f(`header`,sn,[l(c)?(C(),D(g,{key:0,color:`neutral`,variant:`link`,"leading-icon":`i-streamline-interface-arrows-left-arrow-keyboard-left`,to:`/blog`},{default:E(()=>[...i[0]||=[r(`VÅ¡echny Älánky`,-1)]]),_:1})):j(``,!0),f(`h1`,cn,w(l(d)),1),e.category?j(``,!0):(C(),p(`div`,ln,[n(_,{class:`mt-4`})]))]),e.category?.body?(C(),p(`div`,un,[n(v,{value:e.category},null,8,[`value`])])):j(``,!0),l(u)?.length?(C(),D(b,{key:1,orientation:`vertical`},{default:E(()=>[(C(!0),p(T,null,m(l(u),e=>(C(),D(y,{key:e.path,title:e.title,description:e.description,image:e.thumbnail?{src:e.thumbnail,sizes:`xs:100vw sm:320px`,width:480,height:270,format:`webp`,loading:`lazy`}:`data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAIAAACQd1PeAAAAD0lEQVR4AQEEAPv/AMzMzATMAmVMDHrmAAAAAElFTkSuQmCC`,date:e.published,to:e.path,orientation:`horizontal`,variant:`naked`,ui:{root:`overflow-visible`,header:`border border-gray-600/10`,meta:`flex-wrap`}},{badge:E(()=>[e.categories?(C(),D(_,{key:0,"categories-stems":e.categories,size:`xs`,disabled:``},null,8,[`categories-stems`])):j(``,!0)]),_:2},1032,[`title`,`description`,`image`,`date`,`to`]))),128))]),_:1})):(C(),p(`p`,dn,`Žádné Älánky`))])],64)}}}),{__name:`PageBlogCategory`}),pn=[`datetime`,`title`],mn={__name:`NuxtTime`,props:{locale:{type:String,required:!1},datetime:{type:[String,Number,Date],required:!0},localeMatcher:{type:String,required:!1},weekday:{type:String,required:!1},era:{type:String,required:!1},year:{type:String,required:!1},month:{type:String,required:!1},day:{type:String,required:!1},hour:{type:String,required:!1},minute:{type:String,required:!1},second:{type:String,required:!1},timeZoneName:{type:String,required:!1},formatMatcher:{type:String,required:!1},hour12:{type:Boolean,required:!1,default:void 0},timeZone:{type:String,required:!1},calendar:{type:String,required:!1},dayPeriod:{type:String,required:!1},numberingSystem:{type:String,required:!1},dateStyle:{type:String,required:!1},timeStyle:{type:String,required:!1},hourCycle:{type:String,required:!1},relative:{type:Boolean,required:!1},numeric:{type:String,required:!1},relativeStyle:{type:String,required:!1},title:{type:[Boolean,String],required:!1}},setup(t){let n=t,r=s()?.vnode.el,i=r?.getAttribute(`datetime`),a=r?.getAttribute(`data-locale`),o=e(),c=y(()=>{let e=n.datetime;return i&&o.isHydrating?new Date(i):n.datetime?new Date(e):new Date}),l=O(o.isHydrating&&window._nuxtTimeNow?new Date(window._nuxtTimeNow):new Date);if(n.relative){let e=setInterval(()=>{l.value=new Date},1e3);x(()=>clearInterval(e))}let u=y(()=>{let{locale:e,relative:t,relativeStyle:r,...i}=n;return t?new Intl.RelativeTimeFormat(a??e,{...i,style:r}):new Intl.DateTimeFormat(a??e,i)}),d=y(()=>{if(f.value)return c.value.toString();if(!n.relative)return u.value.format(c.value);let e=(c.value.getTime()-l.value.getTime())/1e3,t=[{unit:`second`,seconds:1,threshold:60},{unit:`minute`,seconds:60,threshold:60},{unit:`hour`,seconds:3600,threshold:24},{unit:`day`,seconds:86400,threshold:30},{unit:`month`,seconds:2592e3,threshold:12},{unit:`year`,seconds:31536e3,threshold:1/0}],{unit:r,seconds:i}=t.find(({seconds:t,threshold:n})=>Math.abs(e/t)<n)||t[t.length-1],a=e/i;return u.value.format(Math.round(a),r)}),f=y(()=>Number.isNaN(c.value.getTime())),m=y(()=>f.value?void 0:c.value.toISOString()),h=y(()=>n.title===!0?m.value:typeof n.title==`string`?n.title:void 0),g={};return(e,t)=>(C(),p(`time`,_(g,{datetime:m.value,title:h.value}),w(d.value),17,pn))}},hn={slots:{root:`rounded-lg overflow-hidden`,header:`p-4 sm:px-6`,title:`text-highlighted font-semibold`,description:`mt-1 text-muted text-sm`,body:`p-4 sm:p-6`,footer:`p-4 sm:px-6`},variants:{variant:{solid:{root:`bg-inverted text-inverted`,title:`text-inverted`,description:`text-dimmed`},outline:{root:`bg-default ring ring-default divide-y divide-default`},soft:{root:`bg-elevated/50 divide-y divide-default`},subtle:{root:`bg-elevated/50 ring ring-default divide-y divide-default`}}},defaultVariants:{variant:`outline`}},gn={__name:`UCard`,props:{as:{type:null,required:!1},title:{type:String,required:!1},description:{type:String,required:!1},variant:{type:null,required:!1},class:{type:null,required:!1},ui:{type:Object,required:!1}},setup(e){let t=e,n=c(),i=N(`card`,t),a=M(),o=y(()=>L({extend:hn,...a.ui?.card||{}})({variant:i.variant}));return(e,t)=>(C(),D(l(P),{as:l(i).as,"data-slot":`root`,class:u(o.value.root({class:[l(i).ui?.root,l(i).class]}))},{default:E(()=>[n.header||l(i).title||n.title||l(i).description||n.description?(C(),p(`div`,{key:0,"data-slot":`header`,class:u(o.value.header({class:l(i).ui?.header}))},[A(e.$slots,`header`,{},()=>[l(i).title||n.title?(C(),p(`div`,{key:0,"data-slot":`title`,class:u(o.value.title({class:l(i).ui?.title}))},[A(e.$slots,`title`,{},()=>[r(w(l(i).title),1)])],2)):j(``,!0),l(i).description||n.description?(C(),p(`div`,{key:1,"data-slot":`description`,class:u(o.value.description({class:l(i).ui?.description}))},[A(e.$slots,`description`,{},()=>[r(w(l(i).description),1)])],2)):j(``,!0)])],2)):j(``,!0),n.default?(C(),p(`div`,{key:1,"data-slot":`body`,class:u(o.value.body({class:l(i).ui?.body}))},[A(e.$slots,`default`)],2)):j(``,!0),n.footer?(C(),p(`div`,{key:2,"data-slot":`footer`,class:u(o.value.footer({class:l(i).ui?.footer}))},[A(e.$slots,`footer`)],2)):j(``,!0)]),_:3},8,[`as`,`class`]))}},_n={key:0,class:`absolute right-4 top-3 text-xs tabular-nums text-muted`,"aria-live":`off`},vn=[`src`],yn={class:`flex flex-wrap items-center gap-3`},bn={key:`label`,class:`font-medium`},xn={class:`text-muted`},Sn={key:`controls`,class:`flex items-center gap-1`},Cn=Object.assign(De(S({__name:`AudioPlayer`,props:{src:{},title:{},cover:{}},setup(e){let t=d(`audio`),i=O(0),a=O(0),o=O(!1),s=O(!1);function c(e){if(!Number.isFinite(e)||e<0)return`--:--`;let t=Math.floor(e),n=String(t%60).padStart(2,`0`);return`${Math.floor(t/60)}:${n}`}let u=y(()=>c(i.value)),m=y(()=>c(a.value));function g(e){t.value&&Number.isFinite(t.value.duration)&&(t.value.currentTime=Math.min(Math.max(t.value.currentTime+e,0),t.value.duration))}async function _(){if(t.value){if(t.value.paused){await t.value.play();return}t.value.pause()}}function v(){`mediaSession`in navigator&&(navigator.mediaSession.metadata=new Media
1Metadata({title:e.title,artist:`Jednadvacet`,artwork:[{src:new URL(e.cover,window.location.origin).href}]}),navigator.mediaSession.setActionHandler(`play`,()=>t.value?.play()),navigator.mediaSession.setActionHandler(`pause`,()=>t.value?.pause()),navigator.mediaSession.setActionHandler(`seekbackward`,e=>g(-(e.seekOffset??15))),navigator.mediaSession.setActionHandler(`seekforward`,e=>g(e.seekOffset??30)))}function b(){i.value=t.value?.currentTime??0}function x(){a.value=t.value?.duration??0}function S(){o.value=!0,s.value=!0,v(),`mediaSession`in navigator&&(navigator.mediaSession.playbackState=`playing`)}function T(){o.value=!1,`mediaSession`in navigator&&(navigator.mediaSession.playbackState=`paused`)}return h(x),(c,d)=>{let h=Ee,v=Te,y=gn;return C(),D(y,{variant:`soft`,class:`relative overflow-hidden`},{default:E(()=>[n(h,{"model-value":l(i),max:l(a)||1,size:`xs`,class:`absolute inset-x-0 top-0`},null,8,[`model-value`,`max`]),l(s)?(C(),p(`span`,_n,w(l(u))+` / `+w(l(m)),1)):j(``,!0),f(`audio`,{ref_key:`audio`,ref:t,src:e.src,preload:`metadata`,onDurationchange:x,onTimeupdate:b,onPlay:S,onPause:T,onEnded:T},null,40,vn),f(`div`,yn,[n(v,{icon:l(o)?`i-lucide-pause`:`i-lucide-play`,"aria-label":l(o)?`Pozastavit audio verzi`:`PÅehrát audio verzi`,onClick:_},null,8,[`icon`,`aria-label`]),n(ae,{name:`audio-controls`,mode:`out-in`},{default:E(()=>[l(s)?(C(),p(`div`,Sn,[n(v,{icon:`i-lucide-rewind`,label:`15 s`,color:`neutral`,variant:`ghost`,size:`xs`,"aria-label":`Vrátit o 15 sekund`,onClick:d[0]||=e=>g(-15)}),n(v,{icon:`i-lucide-fast-forward`,label:`30 s`,color:`neutral`,variant:`ghost`,size:`xs`,"aria-label":`Posunout o 30 sekund`,onClick:d[1]||=e=>g(30)})])):(C(),p(`span`,bn,[d[2]||=r(`Audio verze `,-1),f(`span`,xn,w(l(m)),1)]))]),_:1})])]),_:1})}}}),[[`__scopeId`,`data-v-3791dd59`]]),{__name:`AudioPlayer`});function wn(){let e=O(),t=O([]),n=O([]);function r(e){let n=new Set(t.value),r=!1;for(let t of e){let e=t.target.id;e&&(t.isIntersecting?n.has(e)||(n.add(e),r=!0):n.delete(e)&&(r=!0))}r&&(t.value=[...n])}function i(n){e.value&&(e.value.disconnect(),t.value=[],n.forEach(t=>e.value.observe(t)))}return a(t,(e,t)=>{e.length===0?n.value=t:n.value=e}),ee(()=>e.value=new IntersectionObserver(r)),x(()=>e.value?.disconnect()),{visibleHeadings:t,activeHeadings:n,updateHeadings:i}}function Tn(e,t={}){let{arrivedState:n}=pe(e);return{style:y(()=>{let r=i(e),a=i(t.orientation)??`vertical`,[o,s]=a===`horizontal`?[`left`,`right`]:[`top`,`bottom`],c=!n[o],l=!n[s];if(!c&&!l||!(r&&(a===`horizontal`?r.scrollWidth>r.clientWidth:r.scrollHeight>r.clientHeight)))return;let u=`${i(t.size)??24}px`,d=a===`horizontal`?`90deg`:`180deg`;return c&&l?{maskImage:`linear-gradient(${d}, transparent, #000 ${u}, #000 calc(100% - ${u}), transparent)`}:c?{maskImage:`linear-gradient(${d}, transparent, #000 ${u})`}:{maskImage:`linear-gradient(${d}, #000, #000 calc(100% - ${u}), transparent)`}}),isOverflowing:y(()=>{n.top,n.bottom,n.left,n.right;let r=i(e);return r?(i(t.orientation)??`vertical`)===`horizontal`?r.scrollWidth>r.clientWidth:r.scrollHeight>r.clientHeight:!1}),arrivedState:n}}var En={slots:{root:`sticky top-(--ui-header-height) z-10 bg-default/75 lg:bg-[initial] backdrop-blur-sm -mx-4 px-4 sm:px-6 sm:-mx-6 lg:ms-0 flex flex-col overflow-y-auto max-h-[calc(100vh-var(--ui-header-height))]`,container:`pt-4 sm:pt-6 pb-2.5 sm:pb-4.5 lg:py-8 border-b border-dashed border-default lg:border-0 flex flex-col lg:min-h-0`,top:`lg:shrink-0`,bottom:`hidden lg:flex lg:flex-col lg:shrink-0 gap-6`,trigger:`group text-sm font-semibold flex-1 flex items-center gap-1.5 py-1.5 -mt-1.5 rounded-sm outline-primary/25 focus-visible:outline-3 lg:shrink-0`,title:`truncate`,trailing:`ms-auto inline-flex gap-1.5 items-center`,trailingIcon:`size-5 transform transition-transform duration-200 ease-out motion-reduce:transition-none shrink-0 group-data-[state=open]:rotate-180 lg:hidden`,content:`relative data-[state=open]:animate-[collapsible-down_200ms_var(--ease-out)] data-[state=closed]:animate-[collapsible-up_200ms_var(--ease-out)] data-[state=closed]:overflow-hidden focus:outline-none lg:min-h-[min(var(--list-height,8rem),8rem)] lg:overflow-y-auto lg:scrollbar-none`,list:`min-w-0`,listWithChildren:`ms-3`,item:`min-w-0`,itemWithChildren:``,link:`group relative text-sm flex items-center rounded-sm outline-primary/25 focus-visible:outline-3 py-1`,linkText:`truncate`,indicator:``,indicatorLine:``,indicatorActive:``},variants:{color:{primary:``,secondary:``,success:``,info:``,warning:``,error:``,neutral:``},highlightColor:{primary:{indicatorActive:`bg-primary`},secondary:{indicatorActive:`bg-secondary`},success:{indicatorActive:`bg-success`},info:{indicatorActive:`bg-info`},warning:{indicatorActive:`bg-warning`},error:{indicatorActive:`bg-error`},neutral:{indicatorActive:`bg-inverted`}},active:{false:{link:[`text-muted hover:text-default`,`transition-colors`]}},highlight:{true:``},highlightVariant:{straight:``,circuit:``},body:{true:{bottom:`mt-6`}}},compoundVariants:[{color:`primary`,active:!0,class:{link:`text-primary`}},{color:`secondary`,active:!0,class:{link:`text-secondary`}},{color:`success`,active:!0,class:{link:`text-success`}},{color:`info`,active:!0,class:{link:`text-info`}},{color:`warning`,active:!0,class:{link:`text-warning`}},{color:`error`,active:!0,class:{link:`text-error`}},{color:`neutral`,active:!0,class:{link:`text-highlighted`}},{highlight:!0,highlightVariant:`straight`,class:{list:`ms-2.5 ps-4 border-s border-default`,item:`-ms-px`,indicator:`absolute ms-2.5 transition-[translate,height] duration-200 ease-out motion-reduce:transition-none h-(--indicator-size) translate-y-(--indicator-position) w-px rounded-full`,indicatorLine:`hidden`,indicatorActive:`w-full h-full`}},{highlight:!0,highlightVariant:`circuit`,class:{list:`ps-6.5`,item:`-ms-px`,itemWithChildren:`ps-px`,indicator:`absolute ms-2.5 start-0 top-0 rtl:-scale-x-100`,indicatorLine:`absolute inset-0 bg-(--ui-border)`,indicatorActive:`absolute w-full h-(--indicator-size) translate-y-(--indicator-position) transition-[translate,height] duration-200 ease-out motion-reduce:transition-none`}}],defaultVariants:{color:`primary`,highlightColor:`primary`,highlightVariant:`straight`}},Dn=[`href`,`onClick`],On=Object.assign({inheritAttrs:!1},{__name:`UContentToc`,props:{as:{type:null,required:!1,default:`nav`},trailingIcon:{type:null,required:!1},title:{type:String,required:!1},color:{type:null,required:!1},highlight:{type:Boolean,required:!1},highlightColor:{type:null,required:!1},highlightVariant:{type:null,required:!1},links:{type:Array,required:!1},class:{type:null,required:!1},ui:{type:Object,required:!1},defaultOpen:{type:Boolean,required:!1},open:{type:Boolean,required:!1}},emits:[`update:open`,`move`],setup(t,{emit:i}){let o=t,s=i,h=c(),g=N(`contentToc`,o),b=he(fe(g,`as`,`open`,`defaultOpen`),s),{t:x}=we(),S=se(),ee=M(),{activeHeadings:O,updateHeadings:re}=wn(),k=je(),ae=d(`contentRef`),{style:oe}=Tn(ae),[ce,le]=me({props:{links:Array,level:Number}}),[ue,de]=me(),[pe,P]=me(),F=y(()=>L({extend:En,...ee.ui?.contentToc||{}})({color:g.color,highlight:g.highlight,highlightVariant:g.highlightVariant,highlightColor:g.highlightColor||g.color}));function ye(e){let t=encodeURIComponent(e);S.push(`#${t}`),s(`move`,e)}function I(e){return e.flatMap(e=>[e,...e.children?I(e.children):[]])}
1function be(e,t=0){return e.flatMap(e=>[{link:e,level:t},...e.children?be(e.children,t+1):[]])}let R=1.75,z=y(()=>O.value?.length?I(g.links||[]).findIndex(e=>O.value.includes(e.id)):-1),Se=y(()=>({"--list-height":`${I(g.links||[]).length*R}rem`})),Ce=y(()=>{if(O.value?.length)return{"--indicator-size":`${R*O.value.length}rem`,"--indicator-position":z.value>=0?`${z.value*R}rem`:`0rem`}});a(z,e=>{let t=ae.value;e<0||!t||ne(()=>{let n=t.querySelectorAll(`a[data-slot="link"]`)[e];if(!n)return;let r=t.getBoundingClientRect(),i=n.getBoundingClientRect(),a=i.top-r.top+t.scrollTop;t.scrollTo({top:a-t.clientHeight/2+i.height/2,behavior:`smooth`})})});let Te=y(()=>{if(!g.highlight||g.highlightVariant!==`circuit`||!g.links?.length)return;let e=be(g.links),t=e.length*28,n=.5,r=``,i=n,a=0;e.forEach((t,o)=>{let s=t.level>0?10.5:n,c=a+28;o===0&&(r+=`M${s} ${a}`,i=s),s!==i&&(r+=` L${s} ${a+6}`,i=s),r+=` L${i} ${c-(o<e.length-1&&e[o+1]?.level!==t.level?6:0)}`,a=c});let o=encodeURIComponent(`<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 ${t}'><path d='${r}' stroke='black' stroke-width='1' fill='none'/></svg>`);return{width:`0.75rem`,height:`${e.length*R}rem`,maskImage:`url("data:image/svg+xml,${o}")`}}),B=e();function Ee(){let e=I(g.links||[]);if(!e.length){re([]);return}let t=e.map(e=>`#${CSS.escape(e.id)}`).join(`, `),n=Array.from(document.querySelectorAll(t));re(n)}let De=B.hooks.hook(`page:loading:end`,Ee),Oe=B.hooks.hook(`page:transition:finish`,Ee);return v(()=>{De(),Oe()}),(e,t)=>(C(),p(T,null,[n(l(ce),null,{default:E(({links:t,level:n})=>[f(`ul`,{class:u(n>0?F.value.listWithChildren({class:l(g).ui?.listWithChildren}):F.value.list({class:l(g).ui?.list}))},[(C(!0),p(T,null,m(t,(t,r)=>(C(),p(`li`,{key:r,class:u(t.children&&t.children.length>0?F.value.itemWithChildren({class:[l(g).ui?.itemWithChildren,t.ui?.itemWithChildren]}):F.value.item({class:[l(g).ui?.item,t.ui?.item]}))},[f(`a`,{href:`#${t.id}`,"data-slot":`link`,class:u(F.value.link({class:[l(g).ui?.link,t.ui?.link,t.class],active:l(O).includes(t.id)})),onClick:ie(e=>ye(t.id),[`prevent`])},[A(e.$slots,`link`,{link:t},()=>[f(`span`,{"data-slot":`linkText`,class:u(F.value.linkText({class:[l(g).ui?.linkText,t.ui?.linkText]}))},w(t.text),3)])],10,Dn),t.children?.length?(C(),D(l(le),{key:0,links:t.children,level:n+1},null,8,[`links`,`level`])):j(``,!0)],2))),128))],2)]),_:3}),n(l(ue),null,{default:E(({open:t})=>[A(e.$slots,`leading`,{open:t,ui:F.value}),f(`span`,{"data-slot":`title`,class:u(F.value.title({class:l(g).ui?.title}))},[A(e.$slots,`default`,{open:t},()=>[r(w(l(g).title||l(x)(`contentToc.title`)),1)])],2),f(`span`,{"data-slot":`trailing`,class:u(F.value.trailing({class:l(g).ui?.trailing}))},[A(e.$slots,`trailing`,{open:t,ui:F.value},()=>[n(xe,{name:l(g).trailingIcon||l(ee).ui.icons.chevronDown,"data-slot":`trailingIcon`,class:u(F.value.trailingIcon({class:l(g).ui?.trailingIcon}))},null,8,[`name`,`class`])])],2)]),_:3}),n(l(pe),null,{default:E(()=>[l(g).highlight?(C(),p(`div`,{key:0,"data-slot":`indicator`,class:u(F.value.indicator({class:l(g).ui?.indicator})),style:te({...Ce.value,...Te.value||{}})},[f(`div`,{"data-slot":`indicatorLine`,class:u(F.value.indicatorLine({class:l(g).ui?.indicatorLine}))},null,2),Ce.value?(C(),p(`div`,{key:0,"data-slot":`indicatorActive`,class:u(F.value.indicatorActive({class:l(g).ui?.indicatorActive}))},null,2)):j(``,!0)],6)):j(``,!0),A(e.$slots,`content`,{links:l(g).links},()=>[n(l(le),{links:l(g).links,level:0},null,8,[`links`])])]),_:3}),n(l(_e),_({"data-slot":`root`},{...l(b),...e.$attrs},{"default-open":l(g).defaultOpen,class:F.value.root({class:[l(g).ui?.root,l(g).class]})}),{default:E(({open:t})=>[f(`div`,{"data-slot":`container`,class:u(F.value.container({class:l(g).ui?.container}))},[h.top?(C(),p(`div`,{key:0,"data-slot":`top`,class:u(F.value.top({class:l(g).ui?.top}))},[A(e.$slots,`top`,{links:l(g).links})],2)):j(``,!0),l(g).links?.length?(C(),p(T,{key:1},[n(l(ve),{"data-slot":`trigger`,class:u(F.value.trigger({class:[l(g).ui?.trigger,l(k)(`lg:hidden`)]}))},{default:E(()=>[n(l(de),{open:t},null,8,[`open`])]),_:2},1032,[`class`]),n(l(ge),{"data-slot":`content`,class:u(F.value.content({class:[l(g).ui?.content,l(k)(`lg:hidden`)
1]}))},{default:E(()=>[n(l(P))]),_:1},8,[`class`]),f(`p`,{"data-slot":`trigger`,class:u(F.value.trigger({class:[l(g).ui?.trigger,l(k)(`hidden lg:flex`)]}))},[n(l(de),{open:t},null,8,[`open`])],2),f(`div`,{ref_key:`contentRef`,ref:ae,"data-slot":`content`,class:u(F.value.content({class:[l(g).ui?.content,l(k)(`hidden lg:flex`)]})),style:te([Se.value,l(oe)])},[n(l(P))],6)],64)):j(``,!0),h.bottom?(C(),p(`div`,{key:2,"data-slot":`bottom`,class:u(F.value.bottom({class:l(g).ui?.bottom,body:!!h.top||!!l(g).links?.length}))},[A(e.$slots,`bottom`,{links:l(g).links})],2)):j(``,!0)],2)]),_:3},16,[`default-open`,`class`])],64))}}),kn={class:`flex flex-wrap items-center gap-2 mb-5`},An={key:1,class:`authors space-y-4`},jn=Object.assign(S({__name:`BlogArticle`,props:{article:{}},setup(e){return t(),(t,i)=>{let a=B,o=Ce,s=Se,c=ue,l=Zt,u=mn,d=Ie,h=Cn,g=On,_=Oe,v=ye,y=ke,b=Fe,x=Le,S=F;return C(),p(T,null,[n(s,null,{default:E(()=>[n(a,null,{default:E(()=>[r(w(e.article.title),1)]),_:1}),n(o,{name:`description`,content:e.article.description},null,8,[`content`]),n(o,{property:`og:title`,content:e.article.title},null,8,[`content`]),n(o,{property:`og:description`,content:e.article.description},null,8,[`content`]),n(o,{property:`og:image`,content:e.article.thumbnail},null,8,[`content`]),n(o,{property:`og:type`,content:`article`})]),_:1}),n(c,{src:e.article.thumbnail,alt:e.article.title,sizes:`xs:100vw sm:100vw md:100vw lg:100vw xl:100vw xxl:100vw`,width:`1280`,height:`720`,format:`webp`,quality:80,class:`mt-[calc(-1*var(--ui-header-height))] -mb-10 w-full aspect-video max-h-[60vh] object-cover`},null,8,[`src`,`alt`]),i[1]||=f(`div`,{class:`bg-default rounded-t-4xl h-20 -mb-18 z-40 relative`},null,-1),n(S,{class:`relative z-40`},{default:E(()=>[n(x,null,{right:E(()=>[n(g,{links:e.article.body?.toc?.links,ui:{root:`max-lg:hidden`}},null,8,[`links`])]),left:E(()=>[...i[0]||=[f(`div`,null,null,-1)]]),default:E(()=>[n(d,{title:e.article.title},re({_:2},[e.article.categories?.length?{name:`description`,fn:E(()=>[f(`div`,kn,[n(l,{"categories-stems":e.article.categories},null,8,[`categories-stems`]),e.article.published?(C(),D(u,{key:0,datetime:e.article.published},null,8,[`datetime`])):j(``,!0)]),r(` `+w(e.article.description),1)]),key:`0`}:void 0]),1032,[`title`]),e.article.audio?(C(),D(h,{key:0,src:e.article.audio,title:e.article.title,cover:e.article.thumbnail},null,8,[`src`,`title`,`cover`])):j(``,!0),n(g,{links:e.article.body?.toc?.links,ui:{root:`lg:hidden`}},null,8,[`links`]),n(b,null,{default:E(()=>[n(_,{value:e.article,class:`prose dark:prose-invert`},null,8,[`value`]),e.article.authors?.length?(C(),D(v,{key:0,class:`my-6`})):j(``,!0),e.article.authors?.length?(C(),p(`div`,An,[(C(!0),p(T,null,m(e.article.authors,e=>(C(),D(y,{key:e,slug:e},null,8,[`slug`]))),128))])):j(``,!0)]),_:1})]),_:1})]),_:1})],64)}}}),{__name:`PageBlogArticle`}),Mn=S({__name:`[[slug]]`,async setup(e){let t,n,{path:r,params:{slug:i}}=ce(),{data:a}=([t,n]=o(async()=>le(`blog-${i||`index`}`,async()=>{if(!i)return{type:`index`};let e=await Me(`blogCategories`).path(r).first();if(e)return{type:`category`,category:e};let t=await Me(`blogArticles`).path(r).first();return t?{type:`article`,article:t}:null})),t=await t,n(),t);if(!a.value)throw oe({statusCode:404,statusMessage:`Page not found`,fatal:!0});return(e,t)=>{let n=fn,r=jn;return l(a)?.type===`index`?(C(),D(n,{key:0})):l(a)?.type===`category`?(C(),D(n,{key:1,category:l(a).category},null,8,[`category`])):l(a)?.type===`article`?(C(),D(r,{key:2,article:l(a).article},null,8,[`article`])):j(``,!0)}}});export{Mn as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.